text:
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
using OmniSharp.MSBuild.Logging;
using MSB = Microsoft.Build;

namespace OmniSharp.MSBuild.Notification
{
    public class ProjectLoadedEventArgs
    {
        public ProjectId Id { get; }
        public MSB.Execution.ProjectInstance ProjectInstance { get; }
        public ImmutableArray<MSBuildDiagnostic> Diagnostics { get; }
        public bool IsReload { get; }

        public ProjectLoadedEventArgs(
            ProjectId id,
            MSB.Execution.ProjectInstance projectInstance,
            ImmutableArray<MSBuildDiagnostic> diagnostics,
            bool isReload)
        {
            Id = id;
            ProjectInstance = projectInstance;
            Diagnostics = diagnostics;
            IsReload = isReload;
        }
    }
}


text:
class CreateArticlesTagsTable < ActiveRecord::Migration
  def change
    create_table :articles_tags, id: false do |t|
      t.references :article
      t.references :tag
    end

    add_index :articles_tags, [:article_id, :tag_id]
  end
end

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Users;

use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
use Users\Model\Users;
use Users\Model\UsersTable;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;

class Module implements AutoloaderProviderInterface, ConfigProviderInterface
{
    public function getAutoloaderConfig()
    {
        return array(
            'Zend\Loader\ClassMapAutoloader' => array(
                __DIR__ . '/autoload_classmap.php',
            ),
            'Zend\Loader\StandardAutoloader' => array(
                'namespaces' => array(
                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                ),
            ),
        );
    }

    public function getConfig()
    {
        return include __DIR__ . '/config/module.config.php';
    }

    public function getServiceConfig()
    {
        return array(
            'factories' => array(
                'Users\Model\UsersTable' => function ($sm) {
                    $tableGateway = $sm->get('UsersTableGateway');
                    $table = new UsersTable($tableGateway);
                    return $table;
                },
                'UsersTableGateway' => function ($sm) {
                    $dbAdapter = $sm->get('Zend\Db\Adapter\Adapter');
                    $resultSetPrototype = new ResultSet();
                    $resultSetPrototype->setArrayObjectPrototype(new Users());
                    return new TableGateway('users', $dbAdapter, null, $resultSetPrototype);
                },
            ),
        );
    }
}


text: CKEDITOR.plugins.setLang("selectall","ug",{toolbar:"ھەممىنى تاللا"});


text:
/* This is a PNG image file loading framework */

#include "SDL_image.h"

#if !(defined(__APPLE__) || defined(SDL_IMAGE_USE_WIC_BACKEND)) || defined(SDL_IMAGE_USE_COMMON_BACKEND)

#ifdef LOAD_PNG

#define USE_LIBPNG

/*=============================================================================
        File: SDL_png.c
     Purpose: A PNG loader and saver for the SDL library
    Revision:
  Created by: Philippe Lavoie          (2 November 1998)
              lavoie@zeus.genie.uottawa.ca
 Modified by:

 Copyright notice:
          Copyright (C) 1998 Philippe Lavoie

          This library is free software; you can redistribute it and/or
          modify it under the terms of the GNU Library General Public
          License as published by the Free Software Foundation; either
          version 2 of the License, or (at your option) any later version.

          This library is distributed in the hope that it will be useful,
          but WITHOUT ANY WARRANTY; without even the implied warranty of
          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
          Library General Public License for more details.

          You should have received a copy of the GNU Library General Public
          License along with this library; if not, write to the Free
          Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

    Comments: The load and save routine are basically the ones you can find
             in the example.c file from the libpng distribution.

  Changes:
    5/17/99 - Modified to use the new SDL data sources - Sam Lantinga

=============================================================================*/

#include "SDL_endian.h"

#ifdef macintosh
#define MACOS
#endif
#include <png.h>

/* Check for the older version of libpng */
#if (PNG_LIBPNG_VER_MAJOR == 1)
#if (PNG_LIBPNG_VER_MINOR < 5)
#define LIBPNG_VERSION_12
typedef png_bytep png_const_bytep;
#endif
#if (PNG_LIBPNG_VER_MINOR < 6)
typedef png_structp png_const_structrp;
typedef png_infop png_const_inforp;
typedef png_structp png_structrp;
typedef png_infop png_inforp;
typedef const png_color * png_const_colorp;
#endif
#endif

static struct {
    int loaded;
    void *handle;
    png_infop (*png_create_info_struct) (png_const_structrp png_ptr);
    png_structp (*png_create_read_struct) (png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn);
    void (*png_destroy_read_struct) (png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr);
    png_uint_32 (*png_get_IHDR) (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_method, int *compression_method, int *filter_method);
    png_voidp (*png_get_io_ptr) (png_const_structrp png_ptr);
    png_byte (*png_get_channels) (png_const_structrp png_ptr, png_const_inforp info_ptr);
    png_uint_32 (*png_get_PLTE) (png_const_structrp png_ptr, png_inforp info_ptr, png_colorp *palette, int *num_palette);
    png_uint_32 (*png_get_tRNS) (png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *trans, int *num_trans, png_color_16p *trans_values);
    png_uint_32 (*png_get_valid) (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 flag);
    void (*png_read_image) (png_structrp png_ptr, png_bytepp image);
    void (*png_read_info) (png_structrp png_ptr, png_inforp info_ptr);
    void (*png_read_update_info) (png_structrp png_ptr, png_inforp info_ptr);
    void (*png_set_expand) (png_structrp png_ptr);
    void (*png_set_gray_to_rgb) (png_structrp png_ptr);
    void (*png_set_packing) (png_structrp png_ptr);
    void (*png_set_read_fn) (png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr read_data_fn);
    void (*png_set_strip_16) (png_structrp png_ptr);
    int (*png_set_interlace_handling) (png_structrp png_ptr);
    int (*png_sig_cmp) (png_const_bytep sig, png_size_t start, png_size_t num_to_check);
#ifndef LIBPNG_VERSION_12
    jmp_buf* (*png_set_longjmp_fn) (png_structrp, png_longjmp_ptr, size_t);
#endif
    png_structp (*png_create_write_struct) (png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn);
    void (*png_destroy_write_struct) (png_structpp png_ptr_ptr, png_infopp info_ptr_ptr);
    void (*png_set_write_fn) (png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr write_data_fn, png_flush_ptr output_flush_fn);
    void (*png_set_IHDR) (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type);
    void (*png_write_info) (png_structrp png_ptr, png_const_inforp info_ptr);
    void (*png_set_rows) (png_const_structrp png_ptr, png_inforp info_ptr, png_bytepp row_pointers);
    void (*png_write_png) (png_structrp png_ptr, png_inforp info_ptr, int transforms, png_voidp params);
    void (*png_set_PLTE) (png_structrp png_ptr, png_inforp info_ptr, png_const_colorp palette, int num_palette);
} lib;

#ifdef LOAD_PNG_DYNAMIC
#define FUNCTION_LOADER(FUNC, SIG) \
    lib.FUNC = (SIG) SDL_LoadFunction(lib.handle, #FUNC); \
    if (lib.FUNC == NULL) { SDL_UnloadObject(lib.handle); return -1; }
#else
#define FUNCTION_LOADER(FUNC, SIG) \
    lib.FUNC = FUNC;
#endif

int IMG_InitPNG()
{
    if ( lib.loaded == 0 ) {
#ifdef LOAD_PNG_DYNAMIC
        lib.handle = SDL_LoadObject(LOAD_PNG_DYNAMIC);
        if ( lib.handle == NULL ) {
            return -1;
        }
#endif
        FUNCTION_LOADER(png_create_info_struct, png_infop (*) (png_const_structrp png_ptr))
        FUNCTION_LOADER(png_create_read_struct, png_structp (*) (png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn))
        FUNCTION_LOADER(png_destroy_read_struct, void (*) (png_structpp png_ptr_ptr, png_infopp info_ptr_ptr, png_infopp end_info_ptr_ptr))
        FUNCTION_LOADER(png_get_IHDR, png_uint_32 (*) (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_method, int *compression_method, int *filter_method))
        FUNCTION_LOADER(png_get_io_ptr, png_voidp (*) (png_const_structrp png_ptr))
        FUNCTION_LOADER(png_get_channels, png_byte (*) (png_const_structrp png_ptr, png_const_inforp info_ptr))
        FUNCTION_LOADER(png_get_PLTE, png_uint_32 (*) (png_const_structrp png_ptr, png_inforp info_ptr, png_colorp *palette, int *num_palette))
        FUNCTION_LOADER(png_get_tRNS, png_uint_32 (*) (png_const_structrp png_ptr, png_inforp info_ptr, png_bytep *trans, int *num_trans, png_color_16p *trans_values))
        FUNCTION_LOADER(png_get_valid, png_uint_32 (*) (png_const_structrp png_ptr, png_const_inforp info_ptr, png_uint_32 flag))
        FUNCTION_LOADER(png_read_image, void (*) (png_structrp png_ptr, png_bytepp image))
        FUNCTION_LOADER(png_read_info, void (*) (png_structrp png_ptr, png_inforp info_ptr))
        FUNCTION_LOADER(png_read_update_info, void (*) (png_structrp png_ptr, png_inforp info_ptr))
        FUNCTION_LOADER(png_set_expand, void (*) (png_structrp png_ptr))
        FUNCTION_LOADER(png_set_gray_to_rgb, void (*) (png_structrp png_ptr))
        FUNCTION_LOADER(png_set_packing, void (*) (png_structrp png_ptr))
        FUNCTION_LOADER(png_set_read_fn, void (*) (png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr read_data_fn))
        FUNCTION_LOADER(png_set_strip_16, void (*) (png_structrp png_ptr))
        FUNCTION_LOADER(png_set_interlace_handling, int (*) (png_structrp png_ptr))
        FUNCTION_LOADER(png_sig_cmp, int (*) (png_const_bytep sig, png_size_t start, png_size_t num_to_check))
#ifndef LIBPNG_VERSION_12
        FUNCTION_LOADER(png_set_longjmp_fn, jmp_buf* (*) (png_structrp, png_longjmp_ptr, size_t))
#endif
        FUNCTION_LOADER(png_create_write_struct, png_structp (*) (png_const_charp user_png_ver, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warn_fn))
        FUNCTION_LOADER(png_destroy_write_struct, void (*) (png_structpp png_ptr_ptr, png_infopp info_ptr_ptr))
        FUNCTION_LOADER(png_set_write_fn, void (*) (png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr write_data_fn, png_flush_ptr output_flush_fn))
        FUNCTION_LOADER(png_set_IHDR, void (*) (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type))
        FUNCTION_LOADER(png_write_info, void (*) (png_structrp png_ptr, png_const_inforp info_ptr))
        FUNCTION_LOADER(png_set_rows, void (*) (png_const_structrp png_ptr, png_inforp info_ptr, png_bytepp row_pointers))
        FUNCTION_LOADER(png_write_png, void (*) (png_structrp png_ptr, png_inforp info_ptr, int transforms, png_voidp params))
        FUNCTION_LOADER(png_set_PLTE, void (*) (png_structrp png_ptr, png_inforp info_ptr, png_const_colorp palette, int num_palette))
    }
    ++lib.loaded;

    return 0;
}
void IMG_QuitPNG()
{
    if ( lib.loaded == 0 ) {
        return;
    }
    if ( lib.loaded == 1 ) {
#ifdef LOAD_PNG_DYNAMIC
        SDL_UnloadObject(lib.handle);
#endif
    }
    --lib.loaded;
}

/* See if an image is contained in a data source */
int IMG_isPNG(SDL_RWops *src)
{
    Sint64 start;
    int is_PNG;
    Uint8 magic[4];

    if ( !src ) {
        return 0;
    }

    start = SDL_RWtell(src);
    is_PNG = 0;
    if ( SDL_RWread(src, magic, 1, sizeof(magic)) == sizeof(magic) ) {
        if ( magic[0] == 0x89 &&
             magic[1] == 'P' &&
             magic[2] == 'N' &&
             magic[3] == 'G' ) {
            is_PNG = 1;
        }
    }
    SDL_RWseek(src, start, RW_SEEK_SET);
    return(is_PNG);
}

/* Load a PNG type image from an SDL datasource */
static void png_read_data(png_structp ctx, png_bytep area, png_size_t size)
{
    SDL_RWops *src;

    src = (SDL_RWops *)lib.png_get_io_ptr(ctx);
    SDL_RWread(src, area, size, 1);
}
SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)
{
    Sint64 start;
    const char *error;
    SDL_Surface *volatile surface;
    png_structp png_ptr;
    png_infop info_ptr;
    png_uint_32 width, height;
    int bit_depth, color_type, interlace_type, num_channels;
    Uint32 Rmask;
    Uint32 Gmask;
    Uint32 Bmask;
    Uint32 Amask;
    SDL_Palette *palette;
    png_bytep *volatile row_pointers;
    int row, i;
    int ckey = -1;
    png_color_16 *transv;

    if ( !src ) {
        /* The error message has been set in SDL_RWFromFile */
        return NULL;
    }
    start = SDL_RWtell(src);

    if ( (IMG_Init(IMG_INIT_PNG) & IMG_INIT_PNG) == 0 ) {
        return NULL;
    }

    /* Initialize the data we will clean up when we're done */
    error = NULL;
    png_ptr = NULL; info_ptr = NULL; row_pointers = NULL; surface = NULL;

    /* Create the PNG loading context structure */
    png_ptr = lib.png_create_read_struct(PNG_LIBPNG_VER_STRING,
                      NULL,NULL,NULL);
    if (png_ptr == NULL){
        error = "Couldn't allocate memory for PNG file or incompatible PNG dll";
        goto done;
    }

     /* Allocate/initialize the memory for image information.  REQUIRED. */
    info_ptr = lib.png_create_info_struct(png_ptr);
    if (info_ptr == NULL) {
        error = "Couldn't create image information for PNG file";
        goto done;
    }

    /* Set error handling if you are using setjmp/longjmp method (this is
     * the normal method of doing things with libpng).  REQUIRED unless you
     * set up your own error handlers in png_create_read_struct() earlier.
     */
#ifndef LIBPNG_VERSION_12
    if ( setjmp(*lib.png_set_longjmp_fn(png_ptr, longjmp, sizeof (jmp_buf))) )
#else
    if ( setjmp(png_ptr->jmpbuf) )
#endif
    {
        error = "Error reading the PNG file.";
        goto done;
    }

    /* Set up the input control */
    lib.png_set_read_fn(png_ptr, src, png_read_data);

    /* Read PNG header info */
    lib.png_read_info(png_ptr, info_ptr);
    lib.png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth,
            &color_type, &interlace_type, NULL, NULL);

    /* tell libpng to strip 16 bit/color files down to 8 bits/color */
    lib.png_set_strip_16(png_ptr);

    /* tell libpng to de-interlace (if the image is interlaced) */
    lib.png_set_interlace_handling(png_ptr);

    /* Extract multiple pixels with bit depths of 1, 2, and 4 from a single
     * byte into separate bytes (useful for paletted and grayscale images).
     */
    lib.png_set_packing(png_ptr);

    /* scale greyscale values to the range 0..255 */
    if (color_type == PNG_COLOR_TYPE_GRAY)
        lib.png_set_expand(png_ptr);

    /* For images with a single "transparent colour", set colour key;
       if more than one index has transparency, or if partially transparent
       entries exist, use full alpha channel */
    if (lib.png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) {
        int num_trans;
        Uint8 *trans;
        lib.png_get_tRNS(png_ptr, info_ptr, &trans, &num_trans, &transv);
        if (color_type == PNG_COLOR_TYPE_PALETTE) {
            /* Check if all tRNS entries are opaque except one */
            int j, t = -1;
            for (j = 0; j < num_trans; j++) {
                if (trans[j] == 0) {
                    if (t >= 0) {
                        break;
                    }
                    t = j;
                } else if (trans[j] != 255) {
                    break;
                }
            }
            if (j == num_trans) {
                /* exactly one transparent index */
                ckey = t;
            } else {
                /* more than one transparent index, or translucency */
                lib.png_set_expand(png_ptr);
            }
        } else {
            ckey = 0; /* actual value will be set later */
        }
    }

    if ( color_type == PNG_COLOR_TYPE_GRAY_ALPHA )
        lib.png_set_gray_to_rgb(png_ptr);

    lib.png_read_update_info(png_ptr, info_ptr);

    lib.png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth,
            &color_type, &interlace_type, NULL, NULL);

    /* Allocate the SDL surface to hold the image */
    Rmask = Gmask = Bmask = Amask = 0 ;
    num_channels = lib.png_get_channels(png_ptr, info_ptr);
    if ( num_channels >= 3 ) {
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
        Rmask = 0x000000FF;
        Gmask = 0x0000FF00;
        Bmask = 0x00FF0000;
        Amask = (num_channels == 4) ? 0xFF000000 : 0;
#else
        int s = (num_channels == 4) ? 0 : 8;
        Rmask = 0xFF000000 >> s;
        Gmask = 0x00FF0000 >> s;
        Bmask = 0x0000FF00 >> s;
        Amask = 0x000000FF >> s;
#endif
    }
    surface = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height,
            bit_depth*num_channels, Rmask,Gmask,Bmask,Amask);
    if ( surface == NULL ) {
        error = SDL_GetError();
        goto done;
    }

    if (ckey != -1) {
        if (color_type != PNG_COLOR_TYPE_PALETTE) {
            /* FIXME: Should these be truncated or shifted down? */
            ckey = SDL_MapRGB(surface->format,
                         (Uint8)transv->red,
                         (Uint8)transv->green,
                         (Uint8)transv->blue);
        }
        SDL_SetColorKey(surface, SDL_TRUE, ckey);
    }

    /* Create the array of pointers to image data */
    row_pointers = (png_bytep*) SDL_malloc(sizeof(png_bytep)*height);
    if (!row_pointers) {
        error = "Out of memory";
        goto done;
    }
    for (row = 0; row < (int)height; row++) {
        row_pointers[row] = (png_bytep)
                (Uint8 *)surface->pixels + row*surface->pitch;
    }

    /* Read the entire image in one go */
    lib.png_read_image(png_ptr, row_pointers);

    /* and we're done!  (png_read_end() can be omitted if no processing of
     * post-IDAT text/time/etc. is desired)
     * In some cases it can't read PNG's created by some popular programs (ACDSEE),
     * we do not want to process comments, so we omit png_read_end

    lib.png_read_end(png_ptr, info_ptr);
    */

    /* Load the palette, if any */
    palette = surface->format->palette;
    if ( palette ) {
        int png_num_palette;
        png_colorp png_palette;
        lib.png_get_PLTE(png_ptr, info_ptr, &png_palette, &png_num_palette);
        if (color_type == PNG_COLOR_TYPE_GRAY) {
            palette->ncolors = 256;
            for (i = 0; i < 256; i++) {
                palette->colors[i].r = (Uint8)i;
                palette->colors[i].g = (Uint8)i;
                palette->colors[i].b = (Uint8)i;
            }
        } else if (png_num_palette > 0 ) {
            palette->ncolors = png_num_palette;
            for ( i=0; i<png_num_palette; ++i ) {
                palette->colors[i].b = png_palette[i].blue;
                palette->colors[i].g = png_palette[i].green;
                palette->colors[i].r = png_palette[i].red;
            }
        }
    }

done:   /* Clean up and return */
    if ( png_ptr ) {
        lib.png_destroy_read_struct(&png_ptr,
                                info_ptr ? &info_ptr : (png_infopp)0,
                                (png_infopp)0);
    }
    if ( row_pointers ) {
        SDL_free(row_pointers);
    }
    if ( error ) {
        SDL_RWseek(src, start, RW_SEEK_SET);
        if ( surface ) {
            SDL_FreeSurface(surface);
            surface = NULL;
        }
        IMG_SetError("%s", error);
    }
    return(surface);
}

#else

int IMG_InitPNG()
{
    IMG_SetError("PNG images are not supported");
    return(-1);
}

void IMG_QuitPNG()
{
}

/* See if an image is contained in a data source */
int IMG_isPNG(SDL_RWops *src)
{
    return(0);
}

/* Load a PNG type image from an SDL datasource */
SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)
{
    return(NULL);
}

#endif /* LOAD_PNG */

#endif /* !defined(__APPLE__) || defined(SDL_IMAGE_USE_COMMON_BACKEND) */

/* We'll always have PNG save support */
#define SAVE_PNG

#ifdef SAVE_PNG

int IMG_SavePNG(SDL_Surface *surface, const char *file)
{
    SDL_RWops *dst = SDL_RWFromFile(file, "wb");
    if (dst) {
        return IMG_SavePNG_RW(surface, dst, 1);
    } else {
        return -1;
    }
}

#if SDL_BYTEORDER == SDL_LIL_ENDIAN
static const Uint32 png_format = SDL_PIXELFORMAT_ABGR8888;
#else
static const Uint32 png_format = SDL_PIXELFORMAT_RGBA8888;
#endif

#ifdef USE_LIBPNG

static void png_write_data(png_structp png_ptr, png_bytep src, png_size_t size)
{
    SDL_RWops *dst = (SDL_RWops *)lib.png_get_io_ptr(png_ptr);
    SDL_RWwrite(dst, src, size, 1);
}

static void png_flush_data(png_structp png_ptr)
{
}

static int IMG_SavePNG_RW_libpng(SDL_Surface *surface, SDL_RWops *dst, int freedst)
{
    if (dst) {
        png_structp png_ptr;
        png_infop info_ptr;
        png_colorp color_ptr = NULL;
        SDL_Surface *source = surface;
        SDL_Palette *palette;
        int png_color_type = PNG_COLOR_TYPE_RGB_ALPHA;

        png_ptr = lib.png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
        if (png_ptr == NULL) {
            SDL_SetError("Couldn't allocate memory for PNG file or incompatible PNG dll");
            return -1;
        }

        info_ptr = lib.png_create_info_struct(png_ptr);
        if (info_ptr == NULL) {
            lib.png_destroy_write_struct(&png_ptr, NULL);
            SDL_SetError("Couldn't create image information for PNG file");
            return -1;
        }

#ifndef LIBPNG_VERSION_12
        if (setjmp(*lib.png_set_longjmp_fn(png_ptr, longjmp, sizeof (jmp_buf))))
#else
        if (setjmp(png_ptr->jmpbuf))
#endif
        {
            lib.png_destroy_write_struct(&png_ptr, &info_ptr);
            SDL_SetError("Error writing the PNG file.");
            return -1;
        }

        palette = surface->format->palette;
        if (palette) {
            const int ncolors = palette->ncolors;
            int i;

            color_ptr = SDL_malloc(sizeof(png_colorp) * ncolors);
            if (color_ptr == NULL)
            {
                lib.png_destroy_write_struct(&png_ptr, &info_ptr);
                SDL_SetError("Couldn't create palette for PNG file");
                return -1;
            }
            for (i = 0; i < ncolors; i++) {
                color_ptr[i].red = palette->colors[i].r;
                color_ptr[i].green = palette->colors[i].g;
                color_ptr[i].blue = palette->colors[i].b;
            }
            lib.png_set_PLTE(png_ptr, info_ptr, color_ptr, ncolors);
            png_color_type = PNG_COLOR_TYPE_PALETTE;
        }
        else if (surface->format->format != png_format) {
            source = SDL_ConvertSurfaceFormat(surface, png_format, 0);
        }

        lib.png_set_write_fn(png_ptr, dst, png_write_data, png_flush_data);

        lib.png_set_IHDR(png_ptr, info_ptr, surface->w, surface->h,
                         8, png_color_type, PNG_INTERLACE_NONE,
                         PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);

        if (source) {
            png_bytep *row_pointers;
            int row;

            row_pointers = (png_bytep *) SDL_malloc(sizeof(png_bytep) * source->h);
            if (!row_pointers) {
                lib.png_destroy_write_struct(&png_ptr, &info_ptr);
                SDL_SetError("Out of memory");
                return -1;
            }
            for (row = 0; row < (int)source->h; row++) {
                row_pointers[row] = (png_bytep) (Uint8 *) source->pixels + row * source->pitch;
            }

            lib.png_set_rows(png_ptr, info_ptr, row_pointers);
            lib.png_write_png(png_ptr, info_ptr, PNG_TRANSFORM_IDENTITY, NULL);

            SDL_free(row_pointers);
            if (source != surface) {
                SDL_FreeSurface(source);
            }
        }
        lib.png_destroy_write_struct(&png_ptr, &info_ptr);
        if (color_ptr) {
            SDL_free(color_ptr);
        }
        if (freedst) {
            SDL_RWclose(dst);
        }
    } else {
        SDL_SetError("Passed NULL dst");
        return -1;
    }
    return 0;
}

#endif /* USE_LIBPNG */

/* Replace C runtime functions with SDL C runtime functions for building on Windows */
#define MINIZ_NO_STDIO
#define MINIZ_NO_TIME
#define MINIZ_SDL_MALLOC
#define MZ_ASSERT(x) SDL_assert(x)
#undef memset
#define memset  SDL_memset
#define strlen  SDL_strlen

#include "miniz.h"

static int IMG_SavePNG_RW_miniz(SDL_Surface *surface, SDL_RWops *dst, int freedst)
{
    int result = -1;

    if (dst) {
        size_t size = 0;
        void *png = NULL;

        if (surface->format->format == png_format) {
            png = tdefl_write_image_to_png_file_in_memory(surface->pixels, surface->w, surface->h, surface->format->BytesPerPixel, surface->pitch, &size);
        } else {
            SDL_Surface *cvt = SDL_ConvertSurfaceFormat(surface, png_format, 0);
            if (cvt) {
                png = tdefl_write_image_to_png_file_in_memory(cvt->pixels, cvt->w, cvt->h, cvt->format->BytesPerPixel, cvt->pitch, &size);
                SDL_FreeSurface(cvt);
            }
        }
        if (png) {
            if (SDL_RWwrite(dst, png, size, 1)) {
                result = 0;
            }
            SDL_free(png);
        } else {
            SDL_SetError("Failed to convert and save image");
        }
        if (freedst) {
            SDL_RWclose(dst);
        }
    } else {
        SDL_SetError("Passed NULL dst");
    }
    return result;
}

int IMG_SavePNG_RW(SDL_Surface *surface, SDL_RWops *dst, int freedst)
{
    static int (*rw_func)(SDL_Surface *surface, SDL_RWops *dst, int freedst);

    if (!rw_func)
    {
#ifdef USE_LIBPNG
        if (IMG_Init(IMG_INIT_PNG)) {
            rw_func = IMG_SavePNG_RW_libpng;
        } else
#endif
            rw_func = IMG_SavePNG_RW_miniz;
    }

    return rw_func(surface, dst, freedst);
}

#endif /* SAVE_PNG */


text:
<?php
use Filestack\FilestackClient;
use Filestack\FilestackSecurity;
use Filestack\Filelink;
use Filestack\FilestackException;

$test_api_key = 'YOUR_FILESTACK_API_KEY';
$test_secret = 'YOUR_FILESTACK_SECURITY_SECRET';
$test_filepath = __DIR__ . '/../tests/testfiles/calvinandhobbes.jpg';

# Filestack client examples
$security = new FilestackSecurity($test_secret);
$client = new FilestackClient($test_api_key, $security);

// upload a file
$filelink = null;

try {
    $filelink = $client->upload($test_filepath);
    var_dump($filelink);
} catch (FilestackException $e) {
    echo $e->getMessage();
    echo $e->getCode();
}

// get metadata of file
$fields = [];
$metadata = $client->getMetaData($filelink->url(), $fields);
var_dump($metadata);

// get content of a file
$content = $client->getContent($filelink->url());

// save file to local drive
$filepath = __DIR__ . '/../tests/testfiles/' . $metadata['filename'];
file_put_contents($filepath, $content);

// download a file
$destination = __DIR__ . '/../tests/testfiles/my-custom-filename.jpg';
$result = $client->download($filelink->url(), $destination);
var_dump($result);

// overwrite a file
$filelink2 = $client->overwrite($test_filepath, $filelink->handle);
var_dump($filelink2);

// deleting a file
$client->delete($filelink->handle);


text:
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <!-- The main content view -->

    <FrameLayout
        android:layout_height="wrap_content"
        android:layout_width="wrap_content">

        <include
            layout="@layout/empty_document_grid"
            android:id="@+id/empty_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <com.renard.ocr.FancyGridView
            android:id="@+id/gridview"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:choiceMode="none"
            android:drawSelectorOnTop="false"
            android:horizontalSpacing="@dimen/grid_spacing"
            android:listSelector="@android:color/transparent"
            android:scrollingCache="true"
            android:verticalSpacing="@dimen/grid_spacing" />
    </FrameLayout>

    <!-- The navigation drawer -->
    <ListView
        android:id="@+id/left_drawer"
        android:layout_width="210dp"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:choiceMode="singleChoice"
        android:background="@color/bright_foreground_holo_dark" />

</android.support.v4.widget.DrawerLayout><!-- From: file:/C:/Users/12125/Desktop/OCR/textfairy/app/src/main/res/layout/activity_document_grid.xml -->


text:
from xml.etree import ElementTree

def tostring(dude):
    aux="---------------\n"
    aux+="ID: "+str(dude.find("./id").text)+"\n"
    aux+="First Name: "+str(dude.find("first_name").text)+"\n"
    aux+="Last Name: "+str(dude.find("last_name").text)+"\n"
    aux+="Company: "+str(dude.find("company").text)+"\n"
    aux+="E-mail: "+str(dude.find("email").text)+"\n"
    aux+="IP Address: "+str(dude.find("ip_address").text)+"\n"
    aux+="Phone Number: "+str(dude.find("phone_number").text)+"\n"
    aux+="---------------\n"
    return aux

def even_id(people):
    print("People with an even numbered id\n")
    for person in people:
        if int(person.find("./id").text)%2==0:
            print(tostring(person))

def spec_email(people):
    print("People whose email ends with '.gov' or '.edu'\n")
    for person in people:
        email=person.find("./email").text
        if str(email[-4:])==".gov" or str(email[-4:])==".edu":
            print(tostring(person))

def change_ip(root):
    new=root
    for ip in new.iter("ip_address"):
        ip.text="127.0.0.1"
    new_xml=ElementTree.ElementTree(new)
    with open("updated.xml", "wb") as f:
        new_xml.write(f)
    print("Updated data saved in a xml file (updated.xml)")

if __name__ == "__main__":

    with open('sample.xml', 'rt') as f:
        tree = ElementTree.parse(f)

    root=tree.getroot()
    people=root.findall("./person")

    even_id(people)
    spec_email(people)
    change_ip(root)


text:
<?xml version="1.0" encoding="utf-8" ?>
<manifest xmlns="http://schemas.microsoft.com/wlw/manifest/weblog">
	<options>
		<clientType>Metaweblog</clientType>
		<supportsPostAsDraft>Yes</supportsPostAsDraft>
		<supportsFileUpload>Yes</supportsFileUpload>
		<supportsCategories>Yes</supportsCategories>
		<supportsCustomDate>Yes</supportsCustomDate>
		<supportsCommentPolicy>Yes</supportsCommentPolicy>
		<supportsExcerpt>Yes</supportsExcerpt>
		<supportsNewCategories>Yes</supportsNewCategories>
		<supportsNewCategoriesInline>Yes</supportsNewCategoriesInline>
		<supportsMultipleCategories>Yes</supportsMultipleCategories>
		<supportsHierarchicalCategories>No</supportsHierarchicalCategories>
		<supportsKeywords>Yes</supportsKeywords>
		<supportsPingPolicy>No</supportsPingPolicy>
		<supportsAuthor>No</supportsAuthor>
		<supportsSlug>Yes</supportsSlug>
		<supportsPassword>No</supportsPassword>
		<supportsTrackbacks>No</supportsTrackbacks>
		<supportsPages>Yes</supportsPages>
		<supportsPageParent>Yes</supportsPageParent>
		<supportsPageOrder>No</supportsPageOrder>

		<!--additional live writer options-->
		<supportsEmptyTitles>No</supportsEmptyTitles>
		<requiresHtmlTitles>No</requiresHtmlTitles>
		<requiresXHTML>Yes</requiresXHTML>
		<supportsScripts>Yes</supportsScripts>
		<supportsEmbeds>No</supportsEmbeds>
		<characterSet>UTF-8</characterSet>
		<maxCategoryNameLength>140</maxCategoryNameLength>
		<supportsAutoUpdate>Yes</supportsAutoUpdate>
		<fileUploadNameFormat>{FileName}</fileUploadNameFormat>
	</options>
	<weblog>
		<serviceName>FunnelWeb</serviceName>
		<imageUrl>Content/Images/favicon.ico</imageUrl>
		<homepageLinkText>View your blog</homepageLinkText>
		<adminLinkText>Manage your blog</adminLinkText>
		<adminUrl><![CDATA[{blog-homepage-url}/Admin]]></adminUrl>
	</weblog>
</manifest>


text:
VERSION ?= 1.2.0

# CHANNELS define the bundle channels used in the bundle.
# Add a new line here if you would like to change its default config. (E.g CHANNELS = "candidate,fast,stable")
# To re-generate a bundle for other specific channels without changing the standard setup, you can:
# - use the CHANNELS as arg of the bundle target (e.g make bundle CHANNELS=candidate,fast,stable)
# - use environment variables to overwrite this value (e.g export CHANNELS="candidate,fast,stable")
ifneq ($(origin CHANNELS), undefined)
BUNDLE_CHANNELS := --channels=$(CHANNELS)
endif

# DEFAULT_CHANNEL defines the default channel used in the bundle.
# Add a new line here if you would like to change its default config. (E.g DEFAULT_CHANNEL = "stable")
# To re-generate a bundle for any other default channel without changing the default setup, you can:
# - use the DEFAULT_CHANNEL as arg of the bundle target (e.g make bundle DEFAULT_CHANNEL=stable)
# - use environment variables to overwrite this value (e.g export DEFAULT_CHANNEL="stable")
ifneq ($(origin DEFAULT_CHANNEL), undefined)
BUNDLE_DEFAULT_CHANNEL := --default-channel=$(DEFAULT_CHANNEL)
endif
BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)

# IMAGE_TAG_BASE defines the docker.io namespace and part of the image name for remote images.
# This variable is used to construct full image tags for bundle and catalog images.
#
# For example, running 'make bundle-build bundle-push catalog-build catalog-push' will build and push both
# acme.org/acme-operator-bundle:$VERSION and acme.org/acme-operator-catalog:$VERSION.
IMAGE_TAG_BASE ?= quay.io/kiegroup/kogito-source

# BUNDLE_IMG defines the image:tag used for the bundle.
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>)
BUNDLE_IMG ?= $(IMAGE_TAG_BASE)-bundle:v$(VERSION)

# Image URL to use all building/pushing image targets
IMG ?= gcr.io/knative-releases/knative.dev/eventing-kogito/cmd/controller:v$(VERSION)
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.22

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif

# Setting SHELL to bash allows bash commands to be executed by recipes.
# This is a requirement for 'setup-envtest.sh' in the test target.
# Options are set to exit when a recipe line exits non-zero or a piped command fails.
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec

.PHONY: all
all: build

##@ General

# The help target prints out all targets with their descriptions organized
# beneath their categories. The categories are represented by '##@' and the
# target descriptions by '##'. The awk commands is responsible for reading the
# entire set of makefiles included in this invocation, looking for lines of the
# file as xyz: ## something, and then pretty-format the target and help. Then,
# if there's a line with ##@ something, that gets pretty-printed as a category.
# More info on the usage of ANSI control characters for terminal formatting:
# https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters
# More info on the awk command:
# http://linuxcommand.org/lc3_adv_awk.php

.PHONY: help
help: ## Display this help.
	@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n  make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf "  \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

##@ Development

#.PHONY: manifests
#manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
#	$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases

#.PHONY: generate
#generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
#	$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."

#.PHONY: fmt
#fmt: ## Run go fmt against code.
#	go fmt ./...

#.PHONY: vet
#vet: ## Run go vet against code.
#	go vet ./...

#.PHONY: test
#test: manifests generate fmt vet envtest ## Run tests.
#	KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out

##@ Build

#.PHONY: build
#build: generate fmt vet ## Build manager binary.
#	go build -o bin/manager main.go

#.PHONY: run
#run: manifests generate fmt vet ## Run a controller from your host.
#	go run ./main.go

.PHONY: docker-build
docker-build: ## test ## Build docker image with the manager.
	docker build -t ${IMG} .

.PHONY: docker-push
docker-push: ## Push docker image with the manager.
	docker push ${IMG}

##@ Deployment

ifndef ignore-not-found
  ignore-not-found = false
endif

#.PHONY: install
#install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.
#	$(KUSTOMIZE) build config/crd | kubectl apply -f -

#.PHONY: uninstall
#uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
#	$(KUSTOMIZE) build config/crd | kubectl delete --ignore-not-found=$(ignore-not-found) -f -

#.PHONY: deploy
#deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
#	cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
#	$(KUSTOMIZE) build config/default | kubectl apply -f -

#.PHONY: undeploy
#undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
#	$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -

#CONTROLLER_GEN = $(shell pwd)/bin/controller-gen
#.PHONY: controller-gen
#controller-gen: ## Download controller-gen locally if necessary.
#	$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/controller-gen@v0.7.0)

KUSTOMIZE = $(shell pwd)/bin/kustomize
.PHONY: kustomize
kustomize: ## Download kustomize locally if necessary.
	$(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/v3@v3.8.7)

#ENVTEST = $(shell pwd)/bin/setup-envtest
#.PHONY: envtest
#envtest: ## Download envtest-setup locally if necessary.
#	$(call go-get-tool,$(ENVTEST),sigs.k8s.io/controller-runtime/tools/setup-envtest@latest)

# go-get-tool will 'go get' any package $2 and install it to $1.
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
define go-get-tool
@[ -f $(1) ] || { \
set -e ;\
TMP_DIR=$$(mktemp -d) ;\
cd $$TMP_DIR ;\
go mod init tmp ;\
echo "Downloading $(2)" ;\
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
rm -rf $$TMP_DIR ;\
}
endef

.PHONY: bundle
bundle: kustomize ## Generate bundle manifests and metadata, then validate generated files.
	operator-sdk generate kustomize manifests --apis-dir pkg/apis --input-dir=./config/olm/manifests --output-dir=./config/olm/manifests --package=eventing-kogito
	## Required objects to deploy the source
	curl -LO https://github.com/knative-sandbox/eventing-kogito/releases/download/knative-v$(VERSION)/kogito.yaml
	mv kogito.yaml tmp/
	## Additional permissions required by the addressable resolver
	curl -LO https://raw.githubusercontent.com/knative/eventing/knative-v$(VERSION)/config/core/roles/addressable-resolvers-clusterrole.yaml
	mv addressable-resolvers-clusterrole.yaml tmp/
	cp config/olm/rbac/addressable-resolvers-clusterrolebinding.yaml tmp/
	## Configure CSV with additional patches
	$(KUSTOMIZE) build config/olm/manifests --output tmp/eventing-kogito.clusterserviceversion.yaml
	$(KUSTOMIZE) build config/olm/scorecard --output bundle/tests/scorecard/config.yaml
	## Apply kustomizations to the installer
	cp tmp/kogito.yaml config/olm/installer/
	cd config/olm/installer && $(KUSTOMIZE) edit set image gcr.io/knative-releases/knative.dev/eventing-kogito/cmd/controller=$(IMG)
	$(KUSTOMIZE) build config/olm/installer --output tmp/kogito.yaml
	rm config/olm/installer/kogito.yaml
	operator-sdk generate bundle --kustomize-dir=config/olm/manifests --input-dir tmp --output-dir bundle --package eventing-kogito -q --overwrite --metadata=false --manifests=true --version $(VERSION) $(BUNDLE_METADATA_OPTS)
	sed -i'.original' -e 's/{VERSION}/$(VERSION)/g' bundle/manifests/eventing-kogito.clusterserviceversion.yaml
	rm bundle/manifests/eventing-kogito.clusterserviceversion.yaml.original # keep sed compatibility with macos and linux
	operator-sdk bundle validate ./bundle

## See how to run with OLM locally: https://sdk.operatorframework.io/docs/olm-integration/tutorial-bundle/

.PHONY: bundle-build
bundle-build: ## Build the bundle image.
	docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .

.PHONY: bundle-push
bundle-push: ## Push the bundle image.
	$(MAKE) docker-push IMG=$(BUNDLE_IMG)

.PHONY: opm
OPM = ./bin/opm
opm: ## Download opm locally if necessary.
ifeq (,$(wildcard $(OPM)))
ifeq (,$(shell which opm 2>/dev/null))
	@{ \
	set -e ;\
	mkdir -p $(dir $(OPM)) ;\
	OS=$(shell go env GOOS) && ARCH=$(shell go env GOARCH) && \
	curl -sSLo $(OPM) https://github.com/operator-framework/operator-registry/releases/download/v1.19.1/$${OS}-$${ARCH}-opm ;\
	chmod +x $(OPM) ;\
	}
else
OPM = $(shell which opm)
endif
endif

# A comma-separated list of bundle images (e.g. make catalog-build BUNDLE_IMGS=example.com/operator-bundle:v0.1.0,example.com/operator-bundle:v0.2.0).
# These images MUST exist in a registry and be pull-able.
BUNDLE_IMGS ?= $(BUNDLE_IMG)

# The image tag given to the resulting catalog image (e.g. make catalog-build CATALOG_IMG=example.com/operator-catalog:v0.2.0).
CATALOG_IMG ?= $(IMAGE_TAG_BASE)-catalog:v$(VERSION)

# Set CATALOG_BASE_IMG to an existing catalog image tag to add $BUNDLE_IMGS to that image.
ifneq ($(origin CATALOG_BASE_IMG), undefined)
FROM_INDEX_OPT := --from-index $(CATALOG_BASE_IMG)
endif

# Build a catalog image by adding bundle images to an empty catalog using the operator package manager tool, 'opm'.
# This recipe invokes 'opm' in 'semver' bundle add mode. For more information on add modes, see:
# https://github.com/operator-framework/community-operators/blob/7f1438c/docs/packaging-operator.md#updating-your-existing-operator
.PHONY: catalog-build
catalog-build: opm ## Build a catalog image.
	$(OPM) index add --container-tool docker --mode semver --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT)

# Push the catalog image.
.PHONY: catalog-push
catalog-push: ## Push a catalog image.
	$(MAKE) docker-push IMG=$(CATALOG_IMG)

olm-tests:
	./hack/ci/run-olm-tests.sh


text:
<?
//$getstoseeall is the IP address who gets to see the hidden relays as well.
$getstoseeall = '???';

//$prefix is a prefix attached to every username. For example, for Reddit
//communities, the prefix would be /u/.
$prefix = '/u/';

//$community is the name of the community in which this relay is played.
$community = 'Our Cool Subreddit';

//$host is the name of the person who runs the website.
$host = 'Mr. Meyer';

//$danger is to warn users of an ongoing reprogramming situation and a prospect
//of bugs
//$danger = 1;

//the next variables are texts to show when some piece of information is missing
$nolang = '?';
$noby = '?';
$notext = '(text not entered)';
$notransl = '(translation not entered)';
$nogloss = '(gloss not entered)';
$noglossary = '(glossary not entered)';
$nogrammar = '(grammar not entered)';
$noipa = '(no IPA entered)';


text:
<?php

/*
 * parses the config and populates some defaults
 */

function parse_config() {
    $cfg = $GLOBALS['dw_config'];

    // check that email adresses are set
    if (!isset($cfg['email']))
        $cfg['email'] = array();

    if (!isset($cfg['email']['admin']))
        $cfg['email']['admin'] = 'admin@' . $cfg['domain'];

    if (!isset($cfg['email']['log']))
        $cfg['email']['log'] = 'admin@' . $cfg['domain'];

    if (!isset($cfg['email']['pwd_reset']))
        $cfg['email']['pwd_reset'] = 'password-reset@' . $cfg['domain'];

    if (!isset($cfg['email']['activate']))
        $cfg['email']['activate'] = 'activate@' . $cfg['domain'];

    if (!isset($cfg['email']['invite']))
        $cfg['email']['invite'] = 'invite@' . $cfg['domain'];

    if (!isset($cfg['email']['error']))
        $cfg['email']['error'] = 'error@' . $cfg['domain'];

    $GLOBALS['dw_config'] = $cfg;
}


text:
#include "fsl_soc_src.h"

/* Component ID definition, used by tools. */
#ifndef FSL_COMPONENT_ID
#define FSL_COMPONENT_ID "platform.drivers.soc_src"
#endif

/*******************************************************************************
 * Definitions
 ******************************************************************************/
#define SRC_GLOBAL_SYSTEM_RESET_BEHAVIOR_MASK (0x3U)
#define SRC_GLOBAL_SYSTEM_RESET_BEHAVIOR_CONFIG(resetSource, resetMode) \
    ((uint32_t)(resetMode) << (uint32_t)(resetSource))

#define SRC_SLICE_CTRL_SW_RESET_MASK (0x1U)

/*******************************************************************************
 * Prototypes
 ******************************************************************************/

/*******************************************************************************
 * Variables
 ******************************************************************************/

/*******************************************************************************
 * Code
 ******************************************************************************/

/*!
 * brief Release related core reset operation.
 *
 * The core reset will be held until boot core to release it.
 *
 * param base SRC peripheral base address.
 * param coreName The name of the reset core to be released.
 */
void SRC_ReleaseCoreReset(SRC_Type *base, src_core_name_t coreName)
{
    uint32_t coreMaskArray[] = {SRC_SCR_BT_RELEASE_M7_MASK, SRC_SCR_BT_RELEASE_M4_MASK};
    uint32_t regValue;

    regValue = base->SCR;

    if ((regValue & coreMaskArray[((uint32_t)coreName) - 1UL]) == 0UL)
    {
        base->SCR |= coreMaskArray[((uint32_t)coreName) - 1UL];
    }
}

/*!
 * brief Sets the reset mode of global system reset source.
 *
 * This function sets the selected mode of the input global system reset sources. This function will return as soon as
 * the reset if finished.
 *
 * param base SRC peripheral base address.
 * param resetSource The global system reset source. See @ref src_global_system_reset_source_t for more details.
 * param resetMode The reset mode of each reset source. See @ref src_global_system_reset_mode_t for more details.
 */
void SRC_SetGlobalSystemResetMode(SRC_Type *base,
                                  src_global_system_reset_source_t resetSource,
                                  src_global_system_reset_mode_t resetMode)
{
    uint32_t regValue;

    regValue = base->SRMR;
    regValue &= ~SRC_GLOBAL_SYSTEM_RESET_BEHAVIOR_CONFIG(resetSource, SRC_GLOBAL_SYSTEM_RESET_BEHAVIOR_MASK);
    regValue |= SRC_GLOBAL_SYSTEM_RESET_BEHAVIOR_CONFIG(resetSource, resetMode);

    base->SRMR = regValue;
}

/*!
 * brief Asserts software reset for the selected slice.
 *
 * param base SRC peripheral base address.
 * param sliceName The selected reset slice. See @ref src_reset_slice_name_t for more details.
 */
void SRC_AssertSliceSoftwareReset(SRC_Type *base, src_reset_slice_name_t sliceName)
{
    uint32_t regAddress;
    uint32_t sliceStatusRegAddress;

    regAddress            = SRC_GET_SLICE_REGISTER_ADDRESS(base, sliceName, SRC_SLICE_CONTROL_REGISTER_OFFSET);
    sliceStatusRegAddress = SRC_GET_SLICE_REGISTER_ADDRESS(base, sliceName, SRC_SLICE_STATUS_REGISTER_OFFSET);

    *(volatile uint32_t *)regAddress |= SRC_SLICE_CTRL_SW_RESET_MASK;

    while (((*(volatile uint32_t *)sliceStatusRegAddress) & SRC_SLICE_STAT_UNDER_RST_MASK) != 0UL)
    {
        ;
    }
}

/*!
 * brief Locks the value of SETPOINT_MODE and DOMAIN_MODE for the selected reset slice.
 *
 * param base SRC peripheral base address.
 * param sliceName The selected reset slice. See @ref src_reset_slice_name_t for more details.
 */
void SRC_LockSliceMode(SRC_Type *base, src_reset_slice_name_t sliceName)
{
    uint32_t authenticationRegAddress;

    authenticationRegAddress =
        SRC_GET_SLICE_REGISTER_ADDRESS(base, sliceName, SRC_SLICE_AUTHENTICATION_REGISTER_OFFSET);

    *(volatile uint32_t *)authenticationRegAddress |= SRC_SLICE_AUTHEN_LOCK_MODE_MASK;
}

/*!
 * brief Sets setpoint configuration for the selected reset slice.
 *
 * param base SRC peripheral base address.
 * param sliceName The selected reset slice. See @ref src_reset_slice_name_t for more details.
 * param setPointConfig The logic OR'ed value of @ref _src_setpoint_selection. When the system in the selected setpoint
 * slice reset will be assert.
 */
void SRC_SetSliceSetPointConfig(SRC_Type *base, src_reset_slice_name_t sliceName, uint32_t setpointConfig)
{
    uint32_t setpointConfigRegAddress;

    setpointConfigRegAddress =
        SRC_GET_SLICE_REGISTER_ADDRESS(base, sliceName, SRC_SLICE_SETPOINT_CONFIG_REGISTER_OFFSET);

    if (setpointConfig != 0UL)
    {
        *(volatile uint32_t *)setpointConfigRegAddress = setpointConfig;
    }
}

/*!
 * brief Sets domain mode configuration for the selected reset slice.
 *
 * param base SRC peripheral base address.
 * param sliceName The selected reset slice. See src_reset_slice_name_t for more details.
 * param domainConfig The logic OR'ed value of _src_domain_mode_selection.
 */
void SRC_SetSliceDomainModeConfig(SRC_Type *base, src_reset_slice_name_t sliceName, uint32_t domainConfig)
{
    uint32_t domainConfigRegAddress;

    domainConfigRegAddress = SRC_GET_SLICE_REGISTER_ADDRESS(base, sliceName, SRC_SLICE_DOMAIN_CONFIG_REGISTER_OFFSET);

    if (domainConfig != 0UL)
    {
        *(volatile uint32_t *)domainConfigRegAddress = domainConfig;
    }
}

/*!
 * brief Gets the reset state of the selected slice.
 *
 * param base SRC peripheral base address.
 * param sliceName The selected slice. See @ref src_reset_slice_name_t for more details.
 * retval kSRC_SliceResetInProcess The reset is in process.
 * retval kSRC_SliceResetFinished  The reset is finished.
 */
src_slice_reset_state_t SRC_GetSliceResetState(SRC_Type *base, src_reset_slice_name_t sliceName)
{
    uint32_t statusRegAddress;
    src_slice_reset_state_t ret;

    statusRegAddress = SRC_GET_SLICE_REGISTER_ADDRESS(base, sliceName, SRC_SLICE_STATUS_REGISTER_OFFSET);

    if (((*(uint32_t *)statusRegAddress) & SRC_SLICE_STAT_UNDER_RST_MASK) != 0UL)
    {
        ret = kSRC_SliceResetInProcess;
    }
    else
    {
        ret = kSRC_SliceResetFinished;
    }

    return ret;
}


text:
Datatypes
=========

Although configuration are text files, all values are not interpreted as strings. See below values that will be casted into their corresponding PHP type :

* true, false
* null
* integers
* floats (. as separator)

.. warning::

   Rendering of these values could be not satisfying in some cases.
   See :ref:`formatters` chapter for dealing with this issue.

.. _lists:

Lists
-----

A variable can also be a list of values. List are surrounded by square brackets and values must be separated by commas.

Examples :

.. code-block:: yaml

    [variables]
    servers:
        dev = [value1, value2, value3]
        staging = [1, null, true, false, 2]
        prod = [singleValue]

.. note::
    List can **not** be nested

While hydrating, a line which refers to a list variable will be duplicated for each value of the list.

Exemple 1 :

.. code-block:: yaml

    # system.yml-dist
    servers:
        - <%servers%>

.. code-block:: yaml

    # system.yml
    servers:
        - value1
        - value2
        - value3

Exemple 2 :

.. code-block:: ini

    # system.ini-dist
    servers[] = <%servers%>

.. code-block:: ini

    # system.ini
    servers[] = value1
    servers[] = value2
    servers[] = value3

.. _karma:list:

Controlling list hydratation
----------------------------

While dealing with lists, if default hydratation policy doesn't fit your needs, you can override it with **karma:list** directive.

.. code-block:: php

    <?php // system.php-dist

    $serverList = array(<% karma:list var=servers delimiter=", " %>);

.. code-block:: ini

    # system.ini-dist
    serverList = <% karma:list var=servers delimiter="|" %>

This directive injects all the values inlined and separed by delimiter string (if provided).

.. note::

   The **delimiter** parameter is optional

Examples above will generate this files :

.. code-block:: php

    <?php // system.php

    $serverList = array(value1, value2, value3);

.. code-block:: ini

    # system.ini
    serverList = value1|value2|value3

It's also possible to define wrapping strings. These strings are inserted **only if the list contains at least one value**.
The wrapper expects 2 values : the prefix and the suffix. The syntax is ``wrapper="<prefix>":"<suffix>"``.

.. code-block:: yaml

    # system.yml-dist
    serverList: <% karma:list var=servers delimiter=", " wrapper="[":"]" %>

This example will generate this file :

.. code-block:: yaml

    # system.yml
    serverList: [value1, value2, value3]

If the list is empty, the generated file will be :

.. code-block:: yaml

    # system.yml
    serverList:

If you need to generate wrapping strings even if the list is empty, you have to write it this way :

.. code-block:: yaml

    # system.yml-dist
    serverList: {<% karma:list var=servers delimiter=", " %>}

.. note::

   The **wrapper** parameter is optional.

.. warning::

   You must respect the parameter order : **var**, then **delimiter**, then **wrapper**.

   **var** is always mandatory. You can use **wrapper** without defining **delimiter**.

.. note::

   Of course, the **karma:list** directive supports formatters


text:
package org.projectomakase.omakase.rest.exception;

import com.fasterxml.jackson.core.JsonParseException;
import org.projectomakase.omakase.rest.response.Responses;
import org.jboss.logging.Logger;

import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;

/**
 * @author Richard Lucas
 */
public class JsonParseExceptionMapper implements ExceptionMapper<JsonParseException> {

    private static final Logger LOGGER = Logger.getLogger(JsonParseExceptionMapper.class);

    @Override
    public Response toResponse(JsonParseException exception) {
        return Responses.errorResponse(Response.status(Response.Status.BAD_REQUEST).build(), exception.getMessage(), exception, LOGGER.isInfoEnabled());
    }
}


text:
namespace Spyder.Client.Common
{
    public enum MixerBus
    {
        Preview,
        Program
    }
}


text:
// Copyright 2021 Phyronnaz

#pragma once

#include "CoreMinimal.h"
#include "VoxelEnums.h"
#include "VoxelIntBox.h"
#include "VoxelPlaceableItemManager.generated.h"

template<typename T>
class TVoxelDataItemWrapper;

class FVoxelCoordinatesProvider;
class UVoxelGeneratorCache;
class UVoxelLineBatchComponent;
class UVoxelGeneratorInstanceWrapper;

class FVoxelData;
class FVoxelGeneratorCache;
struct FVoxelDataItem;

USTRUCT(BlueprintType)
struct FVoxelDataItemConstructionInfo
{
	GENERATED_BODY()

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Voxel")
	UVoxelGeneratorInstanceWrapper* Generator = nullptr;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Voxel")
	FVoxelIntBox Bounds;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Voxel")
	TArray<float> Parameters;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Voxel", meta = (Bitmask, BitmaskEnum = EVoxel32BitMask))
	int32 Mask = uint32(-1);

	bool operator==(const FVoxelDataItemConstructionInfo& Other) const
	{
		return
			Generator == Other.Generator &&
			Bounds == Other.Bounds &&
			Parameters == Other.Parameters &&
			Mask == Other.Mask;
	}
	friend uint32 GetTypeHash(const FVoxelDataItemConstructionInfo& Info)
	{
		return
			HashCombine(
				HashCombine(
					HashCombine(
						GetTypeHash(Info.Generator),
						GetTypeHash(Info.Bounds)),
					GetTypeHash(Info.Parameters.Num())),
				GetTypeHash(Info.Mask));
	}
};

UCLASS(EditInlineNew, Blueprintable, BlueprintType)
class VOXEL_API UVoxelPlaceableItemManager : public UObject
{
	GENERATED_BODY()

public:
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config")
	bool bEnableDebug = true;

	// If true, will show all the data items bounds
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Config", meta = (EditCondition = bEnableDebug))
	bool bDebugBounds = false;

public:
	// Do not call this directly: call the respective Add Data Item instead!
	UFUNCTION(BlueprintCallable, Category = "Voxel Placeable Item Manager")
	void AddDataItem(FVoxelDataItemConstructionInfo Info); // Important: parameter must not change names! See UK2Node_AddDataItem

	/**
	 * Draws a line in the world & in the voxel graph preview
	 * @param	Start		The start position in voxels
	 * @param	End			The end position in voxels
	 * @param	Color		The color
	 */
	UFUNCTION(BlueprintCallable, Category = "Voxel Placeable Item Manager")
	void DrawDebugLine(
		FVector Start,
		FVector End,
		FLinearColor Color = FLinearColor::Red);

	/**
	 * Draws a point in the world & in the voxel graph preview
	 * @param	Position	The position in voxels
	 * @param	Color		The color
	 */
	UFUNCTION(BlueprintCallable, Category = "Voxel Placeable Item Manager")
	void DrawDebugPoint(
		FVector Position,
		FLinearColor Color = FLinearColor::Green);

	UFUNCTION(BlueprintCallable, Category = "Voxel Placeable Item Manager")
	UVoxelGeneratorCache* GetGeneratorCache() const
	{
		ensure(GeneratorCache); // SetGeneratorCache should have been called
		return GeneratorCache;
	}

public:
	UFUNCTION(BlueprintNativeEvent, Category = "Voxel Placeable Item Manager")
	void OnGenerate();

	UFUNCTION(BlueprintNativeEvent, Category = "Voxel Placeable Item Manager")
	void OnClear();

	virtual void OnGenerate_Implementation() {}
	virtual void OnClear_Implementation() {}

public:
	using FVoxelDataItemPtr = TVoxelWeakPtr<const TVoxelDataItemWrapper<FVoxelDataItem>>;

	void Generate();
	void Clear();
	void ApplyToData(
		FVoxelData& Data,
		TMap<FVoxelDataItemConstructionInfo, FVoxelDataItemPtr>* OutItems = nullptr);

	const TArray<FVoxelDataItemConstructionInfo>& GetDataItemInfos() const { return DataItemInfos; }

	void SetGeneratorCache(const TVoxelSharedRef<FVoxelGeneratorCache>& NewGeneratorCache);
	void ResetGeneratorCache();

private:
	// Transient as otherwise it's serialized in the graph preview settings
	UPROPERTY(Transient)
	TArray<FVoxelDataItemConstructionInfo> DataItemInfos;

	UPROPERTY(Transient)
	UVoxelGeneratorCache* GeneratorCache = nullptr;

public:
	struct FDebugLine
	{
		FVector Start;
		FVector End;
		FLinearColor Color;
	};
	struct FDebugPoint
	{
		FVector Position;
		FLinearColor Color;
	};

	const TArray<FDebugLine>& GetDebugLines() const { return DebugLines; }
	const TArray<FDebugPoint>& GetDebugPoints() const { return DebugPoints; }

	void DrawDebug(
		const FVoxelCoordinatesProvider& CoordinatesProvider,
		UVoxelLineBatchComponent& LineBatchComponent);

private:
	TArray<FDebugLine> DebugLines;
	TArray<FDebugPoint> DebugPoints;
};


text:
@interface Stuff : NSObject

@property (nonatomic, strong) NSString* myFirstString;
@property (nonatomic, strong) NSString* mySecondString;

@end


text:
package edi.parser.common.impl;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import edi.parser.common.CodedEnum;
import edi.parser.common.EnumAdapter;
import edi.parser.engine.CustomizableAdapter;
import edi.parser.engine.EnchancedAdapter;
import edi.parser.engine.ParseException;
import edi.parser.engine.ParserBuildException;
import edi.parser.engine.SegmentReader;
import edi.parser.util.CollectionUtil;
import edi.parser.util.Predicate;

import org.apache.log4j.Logger;

public class EnumAdapterImpl implements EnchancedAdapter, CustomizableAdapter {
    private static final Logger LOG = Logger.getLogger(EnumAdapterImpl.class);

    private Pattern regExp;

    private Class enumClass;

    private Method valuesMethod;

    public Object deserialize(String data) throws ParseException {
        return null;
    }

    public String serialize(Object object) throws ParseException {
        // TODO Auto-generated method stub
        return null;
    }

    public Object deserialize(SegmentReader segmentReader) throws ParseException {
        String data = segmentReader.readUnparsedData();
        Matcher m = regExp.matcher(data);
        if (m.find() && m.start() == 0) {
            String code = m.group();
            Object res = findByCode(code);
            if (res != null) {
                segmentReader.setReadedCharsCount(code.length());
                LOG.debug("Parsed: " + code);
                return res;
            }
        }
        return null;
    }

    private CodedEnum findByCode(final String code) {
        CodedEnum[] values;
        try {
            values = (CodedEnum[]) valuesMethod.invoke(null);
        } catch (Exception e) {
            throw new ParseException("Can't invoke method " + valuesMethod, e);
        }
        return CollectionUtil.findFirst(Arrays.asList(values), new Predicate<CodedEnum>() {
            public boolean evaluate(CodedEnum object) {
                return code.equals(object.getCode());
            }

        });

    }

    public void setField(Field field) throws Exception {
        EnumAdapter annot = field.getAnnotation(EnumAdapter.class);
        if (annot == null) {
            throw new ParserBuildException("No annotation @EnumAdapter on field " + field);
        }
        enumClass = field.getType();
        regExp = Pattern.compile(annot.regexp());
        valuesMethod = enumClass.getMethod("values", new Class[] {});
        if (!enumClass.isEnum() || !CodedEnum.class.isAssignableFrom(enumClass)) {
            throw new ParserBuildException("Incorrect enum class[not impleemtn CodedEnum or is not enum], class = " + enumClass);
        }
    }

}


text:
FOUNDATION_EXPORT double KEYExtension_macOSVersionNumber;

//! Project version string for KEYExtension-macOS.
FOUNDATION_EXPORT const unsigned char KEYExtension_macOSVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <KEYExtension_macOS/PublicHeader.h>


text:
package com.heys.dating.impl.app;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.google.appengine.labs.repackaged.com.google.common.collect.Lists;
import com.googlecode.objectify.Key;
import com.googlecode.objectify.Ref;
import com.heys.dating.member.Member;
import com.heys.dating.message.MessageLeaf;
import com.heys.dating.message.ThreadLeaf;
import com.heys.dating.message.Message;
import com.heys.dating.message.MessageTransformer;
import com.heys.dating.message.Thread;
import com.heys.dating.message.dto.MessageDTO;
import com.heys.dating.message.dto.ParticipantDTO;
import com.heys.dating.message.dto.ThreadDTO;
import com.heys.dating.message.dto.ThreadListDTO;
import com.heys.dating.message.dto.ThreadPreviewDTO;

@Service
public class MessageTransformerImpl implements MessageTransformer {

	@Override
	public ThreadDTO transformThread(final Thread thread,
			final Iterable<MessageLeaf> memberMessages,
			final Map<Key<Message>, Message> messageMap,
			final Map<Key<Member>, Member> memberMap,
			final Map<Key<Member>, String> profileMap,
			final Map<Key<Member>, Long> pictureMap) {
		final String subject = thread.getSubject();
		final Date startDate = thread.getStartDate();
		final List<ParticipantDTO> participants = Lists.newArrayList();
		for (final Member member : memberMap.values()) {
			final Key<Member> memberKey = Key.create(member);
			final Long id = member.getId();
			final String login = member.getLogin();
			final String profileVanity = profileMap.get(memberKey);
			final Long pictureId = pictureMap.get(memberKey);

			participants.add(new ParticipantDTO(id, login, profileVanity,
					pictureId));
		}
		final List<MessageDTO> messages = Lists.newArrayList();
		for (final MessageLeaf memberMessage : memberMessages) {
			final Message message = messageMap.get(memberMessage.getMessage());
			final Long participantId = memberMap.get(message.getSender())
					.getId();
			final String text = message.getText();
			final Date sentTime = message.getSentTimestamp();
			final Date readTime = message.getReadTimestamp();
			final List<String> pictureUrls = Lists.newArrayList();
			messages.add(new MessageDTO(participantId, text, sentTime,
					readTime, pictureUrls));
		}
		return new ThreadDTO(subject, startDate, participants, messages);
	}

	@Override
	public ThreadListDTO transformThreadList(
			final Iterable<ThreadLeaf> memberThreads,
			final Map<Key<Thread>, Thread> threadMap,
			final Map<Key<Message>, Message> messageMap,
			final Map<Key<Member>, Member> senderMap) {
		final List<ThreadPreviewDTO> threadPreviews = Lists.newArrayList();
		for (final ThreadLeaf memberThread : memberThreads) {
			final ThreadPreviewDTO threadPreviewDto = new ThreadPreviewDTO();
			threadPreviews.add(threadPreviewDto);

			final Thread thread = threadMap.get(memberThread.getThread());
			final Message message = messageMap.get(memberThread
					.getLastMessage());
			final Member sender = senderMap.get(message.getSender());
			final List<String> participants = Lists.newArrayList();
			for (final Ref<Member> participant : thread.getActiveParticipants()) {
				participants.add(participant.get().getLogin());
			}

			threadPreviewDto.setThreadId(thread.getId());
			threadPreviewDto.setSubject(thread.getSubject());
			threadPreviewDto.setLastSender(sender.getLogin());
			threadPreviewDto.setLastMessage(message.getText());
			threadPreviewDto.setUnread(memberThread.isUnread());
			threadPreviewDto.setParticipants(participants);
			threadPreviewDto.setLastUpdated(memberThread.getLastUpdate());
		}
		return new ThreadListDTO(threadPreviews);
	}

}


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
	style="@style/fill" android:orientation="vertical">
</LinearLayout>


text:
OpenExchangeRates
=================

Thin Go wrapper for [OpenExchangeRates](https://openexchangerates.org/)'s API.

## Install

    go get github.com/mvillalba/go-openexchangerates/oxr

## Usage

See oxrdemo/main.go for usage examples.

## TODO

 * Test, test, test.

## Donate

Did you find this project useful and would like to contribute to its continued
development? Feel free to donate through any of the following options:

Bitcoin: **1Jr5qJoDpHpCCn9YppiDMGBAmthhZfpUWs**

[![Flattr this](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=mvillalba&url=https%3A%2F%2Fgithub.com%2Fmvillalba%2Fgo-openexchangerates%2F)

[![Gratipay](https://img.shields.io/gratipay/mvillalba.svg)](https://gratipay.com/mvillalba/)

[![Tip for next commit](https://tip4commit.com/projects/1109.svg)](https://tip4commit.com/github/mvillalba/openexchangerates)


text:
using System.Windows;

namespace Sample
{
    public partial class ShellWindow : Window
    {
        public ShellWindow()
        {
            InitializeComponent();
        }
    }
}


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

<title>Uses of Class org.codehaus.jackson.type.TypeReference (Jackson JSON Processor)</title>
<meta name="date" content="2013-07-14">
<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

Next

Frames

No Frames

All Classes

Uses of Class
org.codehaus.jackson.type.TypeReference

Packages that use TypeReference

Package
Description

org.codehaus.jackson

Main public API classes of the core streaming JSON
 processor: most importantly JsonFactory
 used for constructing
 JSON parser (JsonParser)
 and generator
 (JsonParser)
 instances.

org.codehaus.jackson.map

Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser

org.codehaus.jackson.map.type

Package that contains concrete implementations of
 JavaType, as
 well as the factory (TypeFactory) for
 constructing instances from various input data types
 (like Class, Type)
 and programmatically (for structured types, arrays,
 Lists and Maps).

org.codehaus.jackson.type

Contains classes needed for type introspection, mostly used by data binding
 functionality.

Uses of TypeReference in org.codehaus.jackson

Methods in org.codehaus.jackson with parameters of type TypeReference

Modifier and Type
Method and Description

abstract <T> T
ObjectCodec.readValue(JsonParser jp,
         TypeReference<?> valueTypeRef)

Method to deserialize JSON content into a Java type, reference
 to which is passed as argument.

<T> T
JsonParser.readValueAs(TypeReference<?> valueTypeRef)

Method to deserialize JSON content into a Java type, reference
 to which is passed as argument.

abstract <T> Iterator<T>
ObjectCodec.readValues(JsonParser jp,
          TypeReference<?> valueTypeRef)

Method for reading sequence of Objects from parser stream,
 all with same specified value type.

<T> Iterator<T>
JsonParser.readValuesAs(TypeReference<?> valueTypeRef)

Method for reading sequence of Objects from parser stream,
 all with same specified value type.

Uses of TypeReference in org.codehaus.jackson.map

Methods in org.codehaus.jackson.map with parameters of type TypeReference

Modifier and Type
Method and Description

JavaType
MapperConfig.constructType(TypeReference<?> valueTypeRef)

Helper method that will construct JavaType for given
 type reference
 This is a simple short-cut for:

<T> T
ObjectMapper.convertValue(Object fromValue,
            TypeReference toValueTypeRef)

ObjectReader
ObjectMapper.reader(TypeReference<?> type)

Factory method for constructing ObjectReader that will
 read or update instances of specified type

<T> T
ObjectMapper.readValue(byte[] src,
         int offset,
         int len,
         TypeReference valueTypeRef)

<T> T
ObjectMapper.readValue(byte[] src,
         TypeReference valueTypeRef)

<T> T
ObjectMapper.readValue(File src,
         TypeReference valueTypeRef)

<T> T
ObjectMapper.readValue(InputStream src,
         TypeReference valueTypeRef)

<T> T
ObjectMapper.readValue(JsonNode root,
         TypeReference valueTypeRef)

Convenience method for converting results from given JSON tree into given
 value type.

<T> T
ObjectReader.readValue(JsonParser jp,
         TypeReference<?> valueTypeRef)

Convenience method that binds content read using given parser, using
 configuration of this reader, except that expected value type
 is specified with the call (instead of currently configured root type).

<T> T
ObjectMapper.readValue(JsonParser jp,
         TypeReference<?> valueTypeRef)

Method to deserialize JSON content into a Java type, reference
 to which is passed as argument.

<T> T
ObjectMapper.readValue(JsonParser jp,
         TypeReference<?> valueTypeRef,
         DeserializationConfig cfg)

Method to deserialize JSON content into a Java type, reference
 to which is passed as argument.

<T> T
ObjectMapper.readValue(Reader src,
         TypeReference valueTypeRef)

<T> T
ObjectMapper.readValue(String content,
         TypeReference valueTypeRef)

<T> T
ObjectMapper.readValue(URL src,
         TypeReference valueTypeRef)

<T> Iterator<T>
ObjectReader.readValues(JsonParser jp,
          TypeReference<?> valueTypeRef)

Convenience method that is equivalent to:

<T> MappingIterator<T>
ObjectMapper.readValues(JsonParser jp,
          TypeReference<?> valueTypeRef)

Method for reading sequence of Objects from parser stream.

ObjectWriter
ObjectMapper.typedWriter(TypeReference<?> rootType)

Deprecated.

Since 1.9, use ObjectMapper.writerWithType(TypeReference) instead.

ObjectWriter
ObjectWriter.withType(TypeReference<?> rootType)

ObjectReader
ObjectReader.withType(TypeReference<?> valueTypeRef)

Method for constructing a new reader instance that is configured
 to data bind into specified type.

ObjectWriter
ObjectMapper.writerWithType(TypeReference<?> rootType)

Factory method for constructing ObjectWriter that will
 serialize objects using specified root type, instead of actual
 runtime type of value.

Uses of TypeReference in org.codehaus.jackson.map.type

Methods in org.codehaus.jackson.map.type with parameters of type TypeReference

Modifier and Type
Method and Description

JavaType
TypeFactory.constructType(TypeReference<?> typeRef)

static JavaType
TypeFactory.fromTypeReference(TypeReference<?> ref)

Deprecated.

Use TypeFactory.type(Type) instead

static JavaType
TypeFactory.type(TypeReference<?> ref)

Deprecated.

Uses of TypeReference in org.codehaus.jackson.type

Methods in org.codehaus.jackson.type with parameters of type TypeReference

Modifier and Type
Method and Description

int
TypeReference.compareTo(TypeReference<T> o)

The only reason we define this method (and require implementation
 of Comparable) is to prevent constructing a
 reference without type information.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes


text:
package org.rest.client.dom.error;

/**
 * 	The string did not match the expected pattern.
 * @author Pawel Psztyc
 *
 */
public class SyntaxError extends DOMError {
	protected SyntaxError(){}
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php
include_once (dirname ( __FILE__ ) . "/../lib/include_js_css.php");
include_once (dirname ( __FILE__ ) . "/../database/config.php");

$objIncludeJsCSS = new IncludeJSCSS ();
?>

<meta charset="UTF-8">
<meta name="Generator" content="">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo(CConfig::SNC_SITE_NAME);?> Features: Test Scheduling And Monitoring</title>
<?php
$objIncludeJsCSS->IncludeMipcatCSS ( "../" );
$objIncludeJsCSS->IncludeIconFontCSS ( "../" );
$objIncludeJsCSS->CommonIncludeCSS ( "../" );
$objIncludeJsCSS->CommonIncludeJS ( "../" );
?>

	<?php
	include_once (dirname ( __FILE__ ) . "/../lib/header.php");
	?>

					  Test Design & Management
					Result Analytics

Test Scheduling & Monitoring

							<?php echo(CConfig::SNC_SITE_NAME);?>'s Test Scheduling & Monitoring
							feature, helps you scheduling the test in few clicks by selecting
							test, date, time, time zone and candidates. While designing this
							feature we kept in mind about your valuable time and on-the-fly
							scheduling.

 Are you thinking of revoking test after
							scheduling and before it has started? We still have an option for
							you - whereby you could click on “Manage Scheduled
									Tests”, to make the necessary changes. After the
							test has been revoked we will provide a complete reimbursement
							for the test (per user), that was charged to you during
							scheduling.

 We have catered our features in a way
							that it would replicate real life scenarios, we have come across
							scenarios where test admin would require to monitor and conclude
							test at their end (similar to snatching answer sheet, if you
							found something mischievous), and yes we have that feature
							implemented as well, “Monitor Active Tests”.

 We also have provision to check back how many of
							scheduled candidates have finished test and how many are still
							need to attempt the test for particular test schedule, you can do
							so by checking “View Scheduled Tests”.

		<?php
		include ("../lib/footer.php");
		?>