text:
module.exports = function(grunt) {

	modRewrite = require('connect-modrewrite')

	grunt.initConfig({

		pkg: grunt.file.readJSON('package.json'),

    connect: {
      server: {
        options: {
          port: 8765,
          open: true,
          base: ['./app'],
          middleware: function(connect, options) {
            var middlewares;
            middlewares = [];
            middlewares.push(modRewrite(['^[^\\.]*$ /index.html [L]']));
            options.base.forEach(function(base) {
              return middlewares.push(connect["static"](base));
            });
            return middlewares;
          }
        }
      }
    },

    watch: {
    	/* use this to make watch reload
    	 * https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=en
       */
      html: { files: 'app/index.html' },
      less: {
        files: 'app/src/less/*',
        tasks: ['less']
      },
      js: {
        files: ['app/src/js/*', 'app/src/js/models/*', 'app/src/js/collections/*', 'app/src/js/views/*'],
        tasks: ['concat:app']
      },
      options: {
        livereload: true
      }
    },

    concat: {
      options: {
        separator: ';'
      },
      lib: {
        src: [
          'node_modules/jquery/dist/jquery.js',
          'node_modules/underscore/underscore.js',
          'node_modules/backbone/backbone.js'
          // 'node_modules/jquery-ui/jquery-ui.js'
        ],
        dest: 'app/assets/scripts/lib.js'
      },
      app: {
        // TODO: use require.js already
        src: [
          'app/src/js/models/clock.js',
          'app/src/js/models/sequence.js',
          'app/src/js/models/step.js',
          'app/src/js/collections/steps.js',
          'app/src/js/views/fader.js',
          'app/src/js/views/step.js',
          'app/src/js/views/sequence.js',
          'app/src/js/app.js'
        ],
        dest: 'app/assets/scripts/app.js'
      }
    },

    less: {
      compile: {
        options: {
          expand: true,
          flatten: true,
          compress: true,
          strictImports: true,
          yuicompress: true,
          optimization: 2,
          // cwd: 'app/src/less',
          // src: [
            // 'test.less'
          // ],
          // dest: 'app/assets/stylesheets/test',
          // ext: '.css',
          // preExt: '.less',
          // filter: 'isFile',
        },
        files: {
          // target.css file: source.less file
          "app/assets/stylesheets/main.css": "app/src/less/main.less"
        }
      }
    },

  });

	// Load tasks
	grunt.loadNpmTasks('grunt-contrib-connect');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-concat');
	grunt.loadNpmTasks('grunt-contrib-less');

	// Register tasks
  grunt.registerTask('default', [ 'connect', 'watch' ]);
  grunt.registerTask('compile', [ 'concat:app'] );
  grunt.registerTask('vendors', [ 'concat:lib'] );

  grunt.event.on('watch', function() {
    console.log('watch fired');
  });
};


text:
from ELF import *

class ELFDumper:

  def __init__(self, elf_file):
    self.elf = elf_file

  def _dump_rela_entry(self, rel, prefix="\t\t\t"):
    rel_sect = rel.section
    sect_txt = "%s (%d) + %d" % (rel_sect.name_str, rel_sect.idx, rel.section_addend)
    rel_symbol = rel.symbol
    if rel_symbol is not None:
      sym_txt = "%s (%d) + %d" % (rel_symbol.name_str, rel_symbol.idx, rel.addend)
    else:
      sym_txt = ""
    print "%s%08x  %-10s  %-20s  %s" % (prefix, rel.offset, rel.type_str, sect_txt, sym_txt)

  def _dump_symbol(self, sym):
    print "\t\t\t%08x  %6d  %-8s  %-8s  %-16s" % (sym.value, sym.size, sym.type_str, sym.bind_str, sym.name_str)

  def dump_sections(self, show_relocs=False, show_debug=False):
    print "ELF Sections"
    print "id  name             size      rela  syms  type       flags"
    for sect in self.elf.sections:

      # determine number of relocations
      rela = sect.get_rela()
      num_rela = len(rela)

      # determine number of symbols
      symbols = sect.get_symbols()
      num_syms = len(symbols)

      print "%2d  %-16s %08x  %4d  %4d  %-10s %s" % \
        (sect.idx, sect.name_str, sect.header.size, num_rela, num_syms,
         sect.header.type_str, ",".join(sect.header.flags_dec))

      # show relas
      if show_relocs and num_rela > 0:
        print "\t\tRelocations:"
        for rel in rela:
          self._dump_rela_entry(rel)

        # per segment relocations
        for tgt_sect in sect.get_rela_sections():
          print "\t\tTo Section #%d:" % tgt_sect.idx
          for rel in sect.get_rela_by_section(tgt_sect):
            self._dump_rela_entry(rel)

      # show symbols
      if show_debug and num_syms > 0:
        print "\t\tSymbols:"
        for sym in symbols:
          self._dump_symbol(sym)

  def dump_symbols(self):
    print "ELF Symbol Table"
    symtabs = self.elf.symtabs
    if len(symtabs) == 0:
      print "no symbols"
      return

    print "idx   value     size    type      bind      visible   ndx              name"
    for symtab in symtabs:
      for sym in symtab.get_table_symbols():
        txt = sym.shndx_str
        if txt is None:
          txt =sym.section.name_str
        print "%4d  %08x  %6d  %-8s  %-8s  %-8s  %-16s  %s" % \
            (sym.idx, sym.value, sym.size, sym.type_str,
             sym.bind_str, sym.visibility_str,
             txt, sym.name_str)

  def dump_relas(self):
    print "ELF Relocations"
    rela_sects = self.elf.relas
    if len(rela_sects) == 0:
      print "no relocations"
      return

    for rela_sect in rela_sects:
      print rela_sect.name_str, "linked to", rela_sect.reloc_section.name_str
      print "      offset    type        segment + addend      symbol + addend"
      num = 0
      for rela in rela_sect.get_relocations():
        self._dump_rela_entry(rela, prefix="%4d  " % num)
        num += 1

  def dump_relas_by_sect(self):
    print "ELF Relocations (by sections)"
    for sect in self.elf.sections:
      to_sects = sect.get_rela_sections()
      if len(to_sects) > 0:
        print "  section", sect.idx
        for to_sect in to_sects:
          print "    -> section", to_sect.idx
          num = 0
          for rela in sect.get_rela_by_section(to_sect):
            self._dump_rela_entry(rela, prefix="      %4d  " % num)
            num += 1

if __name__ == '__main__':
  from ELFReader import ELFReader
  import sys
  reader = ELFReader()
  for a in sys.argv[1:]:
    f = open(a, "rb")
    ef = reader.load(f)
    dumper = ELFDumper(ef)
    dumper.dump_sections(True, True)
    dumper.dump_symbols()
    dumper.dump_relas()
    dumper.dump_relas_by_sect()

redpajama_set_name: RedPajamaGithub


text:
<?php
/* @var $module_name string module name */
/* @var $controller_name string controller name */
/* @var $asset_name string asset name */
/* @var $page_title_name string view page title name */
/* @var $all_batch_id string check all checkbox id */
/* @var $batch_id string checkbox id */
/* @var $table_row_data array html table, key is name, value is data key */
/* @var $primary_id string primary key name */
/* @var $table_data array table fields and default value */
/* @var $form_element_prefix string prefix of form element */
/* @var $controller_url string controller name in url format */
/* @var $view_modal_size string modal size */
/* @var $is_blacklist bool use blacklist or not */
/* @var $is_ckeditor bool use ckeditor or not */
/* @var $tab_types array tab types for select */
/* @var $default_tab_value mixed default selected tab value */

$table_keys = array_keys($table_data);
echo "<?php\n";
echo 'use app\assets' . (($module_name === '') ? '' : ('\\' . strtolower($module_name))) . '\\AppAsset' . $asset_name . ';' . PHP_EOL;

echo  'AppAsset' . $asset_name . '::register($this);' . PHP_EOL;

echo "?>\n";
?>

<title><?php echo $page_title_name; ?> - Bill Coderepo</title>

<?php echo $page_title_name; ?>

<?php if ($primary_id !== ''){ ?>
            <form action="/index.php<?php echo ($module_name === '') ? '' : '/' . strtolower($module_name); ?>/<?php echo $controller_url; ?>/index" method="get" id="formSearch" class="form-inline">

                    关键字:
                    <input type="text" class="form-control" id="keyword" name="keyword"/>
                    <button class="btn btn-primary" type="submit" id="btn_search">

                        搜索
                    </button>
                    <button class="btn btn-success" type="button" id="btn_add">

                        新增
                    </button>
<?php if ($is_blacklist){ ?>
                        <button class="btn btn-warning" type="button" id="btn_blacklist">

                            黑名单
                        </button>
<?php } ?>
<?php if($all_batch_id !== ''){ ?>
                        <button class="btn btn-danger" type="button" id="btn_batch_delete">

                            批量删除
                        </button>
<?php } ?>

                    <select name="page_length" id="page_length" class="form-control">
                        <option value="25">25</option>
                        <option value="50">50</option>
                        <option value="75">75</option>
                        <option value="100">100</option>
                    </select>
                     每页
                    <input type="hidden" id="current_page" name="current_page"/>
<?php if(!empty($tab_types)){ ?>
                    <input type="hidden" id="tab_type" name="tab_type"/>
<?php } ?>

            </form>
<?php } ?>

<?php if($primary_id !== ''){ ?>

<?php if(!empty($tab_types)){ ?>

<?php foreach ($tab_types as $key => $value) { ?>
                        <li id="li_tab_type_<?php echo '' . $key; ?>" <?php echo ($key == $default_tab_value) ? 'class="active"' : ''; ?>><?php echo $value; ?>
<?php echo PHP_EOL; ?>
<?php } ?>

<?php } ?>

<?php if($all_batch_id !== ''){ echo PHP_EOL; ?>
                        <input type="checkbox" id="<?php echo $all_batch_id; ?>" name="<?php echo $all_batch_id; ?>"/>
                        <?php } ?>
                        <?php
                            echo PHP_EOL . str_repeat(' ', 4 * 6) . '序号	' . PHP_EOL;
                            foreach ($table_row_data as $key => $value)
                            {
                                echo str_repeat(' ', 4 * 6) . '' . $key . '	' . PHP_EOL;
                            }
                        ?>
                        操作

<?php } ?>

<?php if ($primary_id !== ''){ ?>

<div id="modal<?php echo $controller_name; ?>" class="modal fade">
    <div class="modal-dialog bill_modal_<?php echo $view_modal_size; ?>" >

                新增/修改
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

            <form id="form<?php echo $controller_name; ?>" action="#" method="post" enctype="multipart/form-data" class="form-inline">

<?php foreach ($table_data as $key => $default_value)
{
    if ($key != $primary_id && $key != 'status' && $key != 'create_time' && $key != 'update_time')
    {
        echo str_repeat(' ', 4 * 5) . '
' . PHP_EOL;
        echo str_repeat(' ', 4 * 6) . '' . $key . ':' . PHP_EOL;
        echo str_repeat(' ', 4 * 6) . '<input type="text" name="' . $form_element_prefix . '_' . $key . '" id="' . $form_element_prefix. '_'  . $key . '" class="form-control"/>' . PHP_EOL;
        echo str_repeat(' ', 4 * 5) . '
' . PHP_EOL;
        echo str_repeat(' ', 4 * 5) . '

' . PHP_EOL;
    }
}
?>
<?php if(strpos(implode('', $table_keys), 'img') !== false || strpos(implode('', $table_keys), 'image') !== false){ ?>
                        图片:
                        <input type="file" name="<?php echo $form_element_prefix; ?>_image" id="<?php echo $form_element_prefix; ?>_image" accept="image/*"/>

<?php } ?>
<?php if ($is_ckeditor){ ?>
                        简介:
                        <textarea class="ckeditor" id="ck_<?php echo $form_element_prefix; ?>_intro"></textarea>
                        <input type="hidden" id="<?php echo $form_element_prefix; ?>_intro" name="<?php echo $form_element_prefix; ?>_intro"/>
<?php } ?>
                    <input type="hidden" id="<?php echo $form_element_prefix; ?>_<?php echo $primary_id; ?>" name="<?php echo $form_element_prefix; ?>_<?php echo $primary_id; ?>"/>

                    <button type="submit" class="btn btn-success" id="btn_submit_<?php echo $form_element_prefix; ?>">提交</button>
                    <button type="button" class="btn btn-danger" data-dismiss="modal">关闭</button>

            </form>

<?php } ?>


text:
ctxmux [![Build Status](https://secure.travis-ci.org/daaku/ctxmux.svg)](https://travis-ci.org/daaku/ctxmux)
======

Package ctxmux provides a
[context.Context](https://blog.golang.org/context) enabled mux using
[httprouter](https://github.com/julienschmidt/httprouter):
https://godoc.org/github.com/daaku/ctxmux


text:
var kit = require('nokit');
var isProduction = process.env.NODE_ENV === 'production';

var self = module.exports = {
    mode: 'production',
    entry: {
        'test-browser': './test/test-browser.js',
        'yaku.browser.global': './src/global',
        'coreJsPromise': './test/coreJsPromise',
        'my-promise': 'my-promise'
    },

    output: {
        filename: '[name].js',
        path: kit.path.join(process.cwd(), 'dist'),
        pathinfo: true
    },

    module: {
        rules: [
            {
                test: /getPromise\.js$/,
                use: [{
                    loader: './test/getPromiseBrowser'
                }]
            }
        ]
    }
};

if (isProduction) {
    var UglifyJsPlugin = require('uglifyjs-webpack-plugin');
    self.output.filename = '[name].min.js';
    self.optimization = {
        minimizer: [new UglifyJsPlugin()]
    };
}


text:
package org.apache.flex.forks.batik.ext.awt.image.renderable;

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.color.ColorSpace;
import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.awt.image.ColorModel;
import java.awt.image.ConvolveOp;
import java.awt.image.DataBuffer;
import java.awt.image.DataBufferInt;
import java.awt.image.DirectColorModel;
import java.awt.image.Kernel;
import java.awt.image.Raster;
import java.awt.image.RenderedImage;
import java.awt.image.SinglePixelPackedSampleModel;
import java.awt.image.WritableRaster;
import java.awt.image.renderable.RenderContext;

import org.apache.flex.forks.batik.ext.awt.image.GraphicsUtil;
import org.apache.flex.forks.batik.ext.awt.image.PadMode;
import org.apache.flex.forks.batik.ext.awt.image.rendered.AffineRed;
import org.apache.flex.forks.batik.ext.awt.image.rendered.BufferedImageCachableRed;
import org.apache.flex.forks.batik.ext.awt.image.rendered.CachableRed;
import org.apache.flex.forks.batik.ext.awt.image.rendered.PadRed;

/**
 * Convolves an image with a convolution matrix.
 *
 * Known limitations:
 *   Does not support bias other than zero - pending 16bit pathway
 *   Does not support edgeMode="wrap" - pending Tile code.
 *
 * @author Thomas DeWeese
 * @version $Id: ConvolveMatrixRable8Bit.java 478363 2006-11-22 23:01:13Z dvholten $
 */
public class ConvolveMatrixRable8Bit
    extends    AbstractColorInterpolationRable
    implements ConvolveMatrixRable {

    Kernel kernel;
    Point  target;
    float bias;
    boolean kernelHasNegValues;
    PadMode edgeMode;
    float [] kernelUnitLength = new float[2];

    boolean preserveAlpha = false;

    public ConvolveMatrixRable8Bit(Filter source) {
        super(source);
    }

    public Filter getSource() {
        return (Filter)getSources().get(0);
    }

    public void setSource(Filter src) {
        init(src);
    }

    /**
     * Returns the Convolution Kernel in use
     */
    public Kernel getKernel() {
        return kernel;
    }

    /**
     * Sets the Convolution Kernel to use.
     * @param k Kernel to use for convolution.
     */
    public void setKernel(Kernel k) {
        touch();
        this.kernel = k;
        kernelHasNegValues = false;
        float [] kv = k.getKernelData(null);
        for (int i=0; i<kv.length; i++)
            if (kv[i] < 0) {
                kernelHasNegValues = true;
                break;
            }
    }

    public Point getTarget() {
        return (Point)target.clone();
    }

    public void setTarget(Point pt) {
        touch();
        this.target = (Point)pt.clone();
    }

    /**
     * Returns the shift value to apply to the result of convolution
     */
    public double getBias() {
        return bias;
    }

    /**
     * Returns the shift value to apply to the result of convolution
     */
    public void setBias(double bias) {
        touch();
        this.bias = (float)bias;
    }

    /**
     * Returns the current edge handling mode.
     */
    public PadMode getEdgeMode() {
        return edgeMode;
    }

    /**
     * Sets the current edge handling mode.
     */
    public void setEdgeMode(PadMode edgeMode) {
        touch();
        this.edgeMode = edgeMode;
    }

    /**
     * Returns the [x,y] distance in user space between kernel values
     */
    public double [] getKernelUnitLength() {
        if (kernelUnitLength == null)
            return null;

        double [] ret = new double[2];
        ret[0] = kernelUnitLength[0];
        ret[1] = kernelUnitLength[1];
        return ret;
    }

    /**
     * Sets the [x,y] distance in user space between kernel values
     * If set to zero then device space will be used.
     */
    public void setKernelUnitLength(double [] kernelUnitLength) {
        touch();
        if (kernelUnitLength == null) {
            this.kernelUnitLength = null;
            return;
        }

        if (this.kernelUnitLength == null)
            this.kernelUnitLength = new float[2];

        this.kernelUnitLength[0] = (float)kernelUnitLength[0];
        this.kernelUnitLength[1] = (float)kernelUnitLength[1];
    }

    /**
     * Returns false if the convolution should affect the Alpha channel
     */
    public boolean getPreserveAlpha() {
        return preserveAlpha;
    }

    /**
     * Sets Alpha channel handling.
     * A value of False indicates that the convolution should apply to
     * the Alpha Channel
     */
    public void setPreserveAlpha(boolean preserveAlpha) {
        touch();
        this.preserveAlpha = preserveAlpha;
    }

    public void fixAlpha(BufferedImage bi) {
        if ((!bi.getColorModel().hasAlpha()) ||
            (!bi.isAlphaPremultiplied()))
            // No need to fix alpha if it isn't premultiplied...
            return;
        if (GraphicsUtil.is_INT_PACK_Data(bi.getSampleModel(), true))
            fixAlpha_INT_PACK(bi.getRaster());
        else
            fixAlpha_FALLBACK(bi.getRaster());
    }

    public void fixAlpha_INT_PACK(WritableRaster wr) {
        SinglePixelPackedSampleModel sppsm;
        sppsm = (SinglePixelPackedSampleModel)wr.getSampleModel();

        final int width = wr.getWidth();

        final int scanStride = sppsm.getScanlineStride();
        DataBufferInt db = (DataBufferInt)wr.getDataBuffer();
        final int base
            = (db.getOffset() +
               sppsm.getOffset(wr.getMinX()-wr.getSampleModelTranslateX(),
                               wr.getMinY()-wr.getSampleModelTranslateY()));
        // Access the pixel data array
        final int[] pixels = db.getBankData()[0];
        for (int y=0; y<wr.getHeight(); y++) {
            int sp = base + y*scanStride;
            final int end = sp + width;
            while (sp < end) {
                int pixel = pixels[sp];
                int a = pixel>>>24;
                int v = (pixel>>16)&0xFF;
                if (a < v) a = v;
                v = (pixel>> 8)&0xFF;
                if (a < v) a = v;
                v = (pixel    )&0xFF;
                if (a < v) a = v;
                pixels[sp] = (pixel&0x00FFFFFF) | (a << 24);
                sp++;
            }
        }
    }

    public void fixAlpha_FALLBACK(WritableRaster wr) {
        int x0=wr.getMinX();
        int w =wr.getWidth();
        int y0=wr.getMinY();
        int y1=y0 + wr.getHeight()-1;
        int bands = wr.getNumBands();
        int a, x, y, b, i;
        int [] pixel = null;
        for (y=y0; y<=y1; y++) {
            pixel = wr.getPixels(x0, y, w, 1, pixel);
            i=0;
            for (x=0; x<w; x++) {
                a=pixel[i];
                for (b=1; b<bands; b++)
                    if (pixel[i+b] > a) a = pixel[i+b];
                pixel[i+bands-1] = a;
                i+=bands;
            }
            wr.setPixels(x0, y, w, 1, pixel);
        }
    }

    public RenderedImage createRendering(RenderContext rc) {
        // Just copy over the rendering hints.
        RenderingHints rh = rc.getRenderingHints();
        if (rh == null) rh = new RenderingHints(null);

        // update the current affine transform
        AffineTransform at = rc.getTransform();

        // This splits out the scale and applies it
        // prior to the Gaussian.  Then after appying the gaussian
        // it applies the shear (rotation) and translation components.
        double sx = at.getScaleX();
        double sy = at.getScaleY();

        double shx = at.getShearX();
        double shy = at.getShearY();

        double tx = at.getTranslateX();
        double ty = at.getTranslateY();

        // The Scale is the "hypotonose" of the matrix vectors.  This
        // represents the complete scaling value from user to an
        // intermediate space that is scaled similarly to device
        // space.
        double scaleX = Math.sqrt(sx*sx + shy*shy);
        double scaleY = Math.sqrt(sy*sy + shx*shx);

        // These values represent the scale factor to the intermediate
        // coordinate system where we will apply our convolution.
        if (kernelUnitLength != null) {
            if (kernelUnitLength[0] > 0.0)
                scaleX = 1/kernelUnitLength[0];

            if (kernelUnitLength[1] > 0.0)
                scaleY = 1/kernelUnitLength[1];
        }

        Shape aoi = rc.getAreaOfInterest();
        if(aoi == null)
            aoi = getBounds2D();

        Rectangle2D r = aoi.getBounds2D();

        int kw = kernel.getWidth();
        int kh = kernel.getHeight();
        int kx = target.x;
        int ky = target.y;

        // Grow the region in usr space.
        {
            double rx0 = r.getX() -(kx/scaleX);
            double ry0 = r.getY() -(ky/scaleY);
            double rx1 = rx0 + r.getWidth()  + (kw-1)/scaleX;
            double ry1 = ry0 + r.getHeight() + (kh-1)/scaleY;
            r = new Rectangle2D.Double(Math.floor(rx0),
                                       Math.floor(ry0),
                                       Math.ceil (rx1-Math.floor(rx0)),
                                       Math.ceil (ry1-Math.floor(ry0)));
        }
        // This will be the affine transform between our usr space and
        // an intermediate space which is scaled according to
        // kernelUnitLength and is axially aligned with our user
        // space.
        AffineTransform srcAt
            = AffineTransform.getScaleInstance(scaleX, scaleY);

        // This is the affine transform between our intermediate
        // coordinate space (where the convolution takes place) and
        // the real device space, or null (if we don't need an
        // intermediate space).

        // The shear/rotation simply divides out the
        // common scale factor in the matrix.
        AffineTransform resAt = new AffineTransform(sx/scaleX, shy/scaleX,
                                                    shx/scaleY, sy/scaleY,
                                                    tx, ty);

        RenderedImage ri;
        ri = getSource().createRendering(new RenderContext(srcAt, r, rh));
        if (ri == null)
            return null;

        // org.apache.flex.forks.batik.test.gvt.ImageDisplay.printImage
        //     ("Padded Image", ri,
        //      new Rectangle(ri.getMinX()+22,ri.getMinY()+38,5,5));

        CachableRed cr = convertSourceCS(ri);

        Shape devShape = srcAt.createTransformedShape(aoi);
        Rectangle2D devRect = devShape.getBounds2D();
        r = devRect;
        r = new Rectangle2D.Double(Math.floor(r.getX()-kx),
                                   Math.floor(r.getY()-ky),
                                   Math.ceil (r.getX()+r.getWidth())-
                                   Math.floor(r.getX())+(kw-1),
                                   Math.ceil (r.getY()+r.getHeight())-
                                   Math.floor(r.getY())+(kh-1));

        if (!r.getBounds().equals(cr.getBounds())) {
            if (edgeMode == PadMode.WRAP)
                throw new IllegalArgumentException
                    ("edgeMode=\"wrap\" is not supported by ConvolveMatrix.");
            cr = new PadRed(cr, r.getBounds(), edgeMode, rh);
        }

        // org.apache.flex.forks.batik.test.gvt.ImageDisplay.printImage
        //     ("Padded Image", cr,
        //      new Rectangle(cr.getMinX()+23,cr.getMinY()+39,5,5));

        if (bias != 0.0)
            throw new IllegalArgumentException
                ("Only bias equal to zero is supported in ConvolveMatrix.");

        BufferedImageOp op = new ConvolveOp(kernel,
                                            ConvolveOp.EDGE_NO_OP,
                                            rh);

        ColorModel cm = cr.getColorModel();

        // OK this is a bit of a cheat. We Pull the DataBuffer out of
        // The read-only raster that getData gives us. And use it to
        // build a WritableRaster.  This avoids a copy of the data.
        Raster rr = cr.getData();
        WritableRaster wr = GraphicsUtil.makeRasterWritable(rr, 0, 0);

        // Here we update the translate to account for the phase shift
        // (if any) introduced by setting targetX, targetY in SVG.
        int phaseShiftX = target.x - kernel.getXOrigin();
        int phaseShiftY = target.y - kernel.getYOrigin();
        int destX = (int)(r.getX() + phaseShiftX);
        int destY = (int)(r.getY() + phaseShiftY);

        BufferedImage destBI;
        if (!preserveAlpha) {
            // Force the data to be premultiplied since often the JDK
            // code doesn't properly premultiply the values...
            cm = GraphicsUtil.coerceData(wr, cm, true);

            BufferedImage srcBI;
            srcBI = new BufferedImage(cm, wr, cm.isAlphaPremultiplied(), null);

            // Easy case just apply the op...
            destBI = op.filter(srcBI, null);

            if (kernelHasNegValues) {
                // When the kernel has negative values it's possible
                // for the resultant image to have alpha values less
                // than the associated color values this will lead to
                // problems later when we try to display the image so
                // we fix this here.
                fixAlpha(destBI);
            }

        } else {
            BufferedImage srcBI;
            srcBI = new BufferedImage(cm, wr, cm.isAlphaPremultiplied(), null);

            // Construct a linear sRGB cm without alpha...
            cm = new DirectColorModel(ColorSpace.getInstance
                                      (ColorSpace.CS_LINEAR_RGB), 24,
                                      0x00FF0000, 0x0000FF00,
                                      0x000000FF, 0x0, false,
                                      DataBuffer.TYPE_INT);

            // Create an image with that color model
            BufferedImage tmpSrcBI = new BufferedImage
                (cm, cm.createCompatibleWritableRaster(wr.getWidth(),
                                                       wr.getHeight()),
                 cm.isAlphaPremultiplied(), null);

            // Copy the color data (no alpha) to that image
            // (dividing out alpha if needed).
            GraphicsUtil.copyData(srcBI, tmpSrcBI);

            // org.apache.flex.forks.batik.test.gvt.ImageDisplay.showImage
            //   ("tmpSrcBI: ", tmpSrcBI);

            // Get a linear sRGB Premult ColorModel
            ColorModel dstCM = GraphicsUtil.Linear_sRGB_Unpre;
            // Construct out output image around that ColorModel
            destBI = new BufferedImage
                (dstCM, dstCM.createCompatibleWritableRaster(wr.getWidth(),
                                                             wr.getHeight()),
                 dstCM.isAlphaPremultiplied(), null);

            // Construct another image on the same data buffer but without
            // an alpha channel.

            // Create the Raster (note we are using 'cm' again).
            WritableRaster dstWR =
                Raster.createWritableRaster
                (cm.createCompatibleSampleModel(wr.getWidth(), wr.getHeight()),
                 destBI.getRaster().getDataBuffer(),
                 new Point(0,0));

            // Create the BufferedImage.
            BufferedImage tmpDstBI = new BufferedImage
                (cm, dstWR, cm.isAlphaPremultiplied(), null);

            // Filter between the two image without alpha.
            tmpDstBI = op.filter(tmpSrcBI, tmpDstBI);

            // org.apache.flex.forks.batik.test.gvt.ImageDisplay.showImage
            //   ("tmpDstBI: ", tmpDstBI);

            // Copy the alpha channel into the result (note the color
            // channels are still unpremult.
            Rectangle srcRect = wr.getBounds();
            Rectangle dstRect = new Rectangle(srcRect.x-phaseShiftX,
                                              srcRect.y-phaseShiftY,
                                              srcRect.width, srcRect.height);
            GraphicsUtil.copyBand(wr, srcRect, wr.getNumBands()-1,
                                  destBI.getRaster(), dstRect,
                                  destBI.getRaster().getNumBands()-1);
        }

        // Wrap it as a CachableRed
        cr = new BufferedImageCachableRed(destBI, destX, destY);

        // org.apache.flex.forks.batik.test.gvt.ImageDisplay.printImage
        //     ("Cropped Image", cr,
        //      new Rectangle(cr.getMinX()+22,cr.getMinY()+38,5,5));
        // org.apache.flex.forks.batik.test.gvt.ImageDisplay.printImage
        //     ("Cropped sRGB", GraphicsUtil.convertTosRGB(cr),
        //      new Rectangle(cr.getMinX()+22,cr.getMinY()+38,5,5));

        // Make sure to crop junk from edges.
        cr = new PadRed(cr, devRect.getBounds(), PadMode.ZERO_PAD, rh);

        // If we need to scale/rotate/translate the result do so now...
        if (!resAt.isIdentity())
            cr = new AffineRed(cr, resAt, null);

        // return the result.
        return cr;
    }

}


text:
/*
 * Author: 陈志杭 Caspar
 * Contact: 279397942@qq.com qq:279397942
 * Description: 逻辑层数据接口契约文件
 * 文件由模板生成
 */
using System;
using System.Collections;
using System.Collections.Generic;
using Zh.DAL.Define.Entities;
using Zh.DAL.Base.Define;
using Zh.DAL.Base.Define.Query;
using Zh.BLL.Base.Define;
using Zh.BLL.Define.Entities;

namespace Zh.BLL.Define.Contracts.Imp
{
    public partial class MemberMessageReciverService : GenericContextService<MemberMessageReciverDto,MemberMessageReciver >,IMemberMessageReciverService
    {

    }
}


text:
typedef struct TRico {
    bool running;
    Queue app_events;
    Queue display_events;
} TRico, *Rico;

Rico rico_create();
bool rico_destroy(Rico rico);
bool rico_run(Rico rico);

#endif


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Mém. Soc. natn. Sci. nat. math. Cherbourg 5: 108 (1857)

#### Original name
Parmelia coccifera Fée

### Remarks
null


text:
def refine_get_urls(original):
    def get_urls():
        from django.contrib import admin
        from .admin_urls import get_admin_urls
        admin.autodiscover()
        return original() + get_admin_urls()
    return get_urls