text:
<?php
use pgb_liv\php_ms\Core\AminoAcidMono;
use pgb_liv\php_ms\Core\Tolerance;
use pgb_liv\php_ms\Constant\MoleculeConstants;

set_time_limit(120);

define('TOLERANCE', 500);

function addEntry($obsMass, $result)
{
    $entry = array();
    $entry['mass'] = $result['mass'];
    $entry['delta_ppm'] = Tolerance::getDifferencePpm($obsMass, $result['mass']);
    $entry['delta_da'] = $obsMass - $result['mass'];
    $entry['sequence'] = '';
    $entry['modification'] = '&nbsp';
    $entry['nl'] = '&nbsp';

    ksort($result['aa']);
    foreach ($result['aa'] as $key => $value) {
        $entry['sequence'] .= str_pad('', $value, $key);
    }

    if (isset($result['mod'])) {
        $entry['modification'] = $result['mod'];
    }

    if (isset($result['nl'])) {
        $entry['nl'] = $result['nl'];
    }

    return $entry;
}

function sortPpm($a, $b)
{
    if ($a['delta_ppm'] == $b['delta_ppm']) {
        if ($a['sequence'] == $b['sequence']) {
            if ($a['modification'] == $b['modification']) {
                return 0;
            }

            return $a['modification'] > $b['modification'] ? 1 : 0;
        }

        return $a['sequence'] > $b['sequence'] ? 1 : 0;
    }

    return abs($a['delta_ppm']) > abs($b['delta_ppm']) ? 1 : 0;
}

function isModAllowed(array $sequence, array $modification)
{
    if (! empty($sequence)) {
        return true;
    }

    foreach (array_keys($sequence['aa']) as $aa) {
        if (isset($modification['specificity'][$aa])) {
            return true;
        }
    }

    return false;
}

function addAA($sequence, $residue, $mass)
{
    if ($sequence == null) {
        $sequence = array(
            'mass' => 0,
            'aa' => array()
        );
    }

    if (! isset($sequence['aa'][$residue])) {
        $sequence['aa'][$residue] = 0;
    }

    $sequence['aa'][$residue] ++;
    $sequence['mass'] += $mass;

    return $sequence;
}

function addMod($sequence, $name, $mass)
{
    if ($sequence == null) {
        $sequence = array(
            'mass' => 0,
            'aa' => array()
        );
    }

    $sequence['mod'] = $name;
    $sequence['mass'] += $mass;

    return $sequence;
}

function addNl($sequence, $name, $mass)
{
    $sequence['nl'] = $name;
    $sequence['mass'] -= $mass;

    return $sequence;
}

function getAA(array $aminoAcids, Tolerance $tolerance, $obsMass, $sequence = null)
{
    global $modifications, $nlAllowed;

    if ($sequence == null) {
        $sequence = array(
            'mass' => 0,
            'aa' => array()
        );
    }

    $resultSet = array();

    foreach ($modifications as $key => $modification) {
        if (! isModAllowed($sequence, $modification)) {
            continue;
        }

        if ($tolerance->isTolerable($obsMass, $modification['mass'])) {
            $entry = addMod($sequence, $key, $modification['mass']);
            $resultSet[] = $entry;
        } elseif ($nlAllowed && $tolerance->isTolerable($obsMass, $modification['mass'] - MoleculeConstants::WATER_MASS)) {
            $entry = addMod($sequence, $key, $modification['mass']);
            $entry = addNl($entry, 'H2O', MoleculeConstants::WATER_MASS);

            $resultSet[] = $entry;
        } elseif ($nlAllowed && $tolerance->isTolerable($obsMass, $modification['mass'] - MoleculeConstants::AMONIA_MASS)) {
            $entry = addMod($sequence, $key, $modification['mass']);
            $entry = addNl($entry, 'NH3', MoleculeConstants::AMONIA_MASS);

            $resultSet[] = $entry;
        }
    }

    foreach ($aminoAcids as $residue => $expMass) {
        if ($tolerance->isTolerable($obsMass, $expMass)) {
            $entry = addAA($sequence, $residue, $expMass);
            $resultSet[] = $entry;
        } elseif ($nlAllowed && $tolerance->isTolerable($obsMass, $expMass - MoleculeConstants::WATER_MASS)) {
            $entry = addAA($sequence, $residue, $expMass);
            $entry = addNl($entry, 'H2O', MoleculeConstants::WATER_MASS);

            $resultSet[] = $entry;
        } elseif ($nlAllowed && $tolerance->isTolerable($obsMass, $expMass - MoleculeConstants::AMONIA_MASS)) {
            $entry = addAA($sequence, $residue, $expMass);
            $entry = addNl($entry, 'NH3', MoleculeConstants::AMONIA_MASS);

            $resultSet[] = $entry;
        } elseif ($obsMass > $expMass) {
            $entry = addAA($sequence, $residue, $expMass);

            $sub = getAA($aminoAcids, $tolerance, $obsMass - $expMass, $entry);

            foreach ($sub as $entry) {
                $resultSet[] = $entry;
            }
        }
    }

    return $resultSet;
}

$mass = 128.09;
$ptmAllowed = 0;
$nlAllowed = 0;

if (isset($_POST['mass'])) {
    $mass = (float) $_POST['mass'];
}

if (isset($_POST['ptmAllowed']) && $_POST['ptmAllowed']) {
    $ptmAllowed = 1;
}

if (isset($_POST['nlAllowed']) && $_POST['nlAllowed']) {
    $nlAllowed = 1;
}

$modifications = array();

if ($ptmAllowed) {
    $xml = new SimpleXMLElement('http://www.unimod.org/xml/unimod.xml', null, true, 'umod', true);
    foreach ($xml->modifications->mod as $modification) {
        $fullName = (string) $modification->attributes()['full_name'];

        if (strpos($fullName, 'substitution') !== false) {
            continue;
        }

        $key = (string) $modification->attributes()['title'];

        $modifications[$key] = array();
        $modifications[$key]['mass'] = (string) $modification->delta->attributes()['mono_mass'];

        $modifications[$key]['composition'] = '';
        foreach ($modification->delta->element as $element) {
            $modifications[$key]['composition'] .= (string) $element->attributes()['symbol'];
            $modifications[$key]['composition'] .= (string) $element->attributes()['number'];
        }

        $modifications[$key]['specificity'] = array();
        foreach ($modification->specificity as $specificity) {
            $modifications[$key]['specificity'][(string) $specificity->attributes()['site']] = 1;
        }
    }
}

$tolerance = new Tolerance(TOLERANCE, Tolerance::PPM);
?>

Sequence Predictor

This tool will attempt to predict the possible sequence molecule for
    a specified mass. You can toggle on modifications (Unimod) and
    neutral losses (H2O, NH3). Sequences should be considered as the
    collection of amino acids present as no ordering of the chain can be
    predicted with this tool.

<form method="post" action="?page=sequence_predict">
    <fieldset>
         Mass <input type="text" name="mass"
            id="mass" value="<?php echo $mass; ?>" />Da

    </fieldset>
    <fieldset>
         Modifications <input
            type="checkbox" name="ptmAllowed" id="ptmAllowed"
            <?php echo $ptmAllowed ? 'checked="checked" ' : '' ?>
            value="1" />

    </fieldset>
    <fieldset>
         Neutral Loss <input
            type="checkbox" name="nlAllowed" id="nlAllowed"
            <?php echo $nlAllowed ? 'checked="checked" ' : '' ?>
            value="1" />

    </fieldset>
    <fieldset>
        <input type="submit" value="Search" />
    </fieldset>
</form>

<?php
if (empty($_POST)) {
    return;
}

$aa = new AminoAcidMono();
$reflection = new ReflectionClass($aa);
$aminoAcids = $reflection->getConstants();
$aminoAcids['J'] = $aminoAcids['I'];
unset($aminoAcids['I']);
unset($aminoAcids['L']);

$results = getAA($aminoAcids, $tolerance, $mass);

$resultOutput = array();
foreach ($results as $result) {
    $resultOutput[] = addEntry($mass, $result);
}

uasort($resultOutput, 'sortPpm');
?>

            #
            Sequence
            Modification
            Loss
            Mass (Da)
            Delta (ppm)
            Delta (mDa)

<?php
$count = 1;

$lastEntry = array(
    'sequence' => '',
    'modification' => '',
    'nl' => ''
);
foreach ($resultOutput as $entry) {

    if ($entry['sequence'] == $lastEntry['sequence'] && $entry['modification'] == $lastEntry['modification'] &&
        $entry['nl'] == $lastEntry['nl']) {
        continue;
    }

    echo '
';

    echo '' . $count ++ . '	';
    echo '' . $entry['sequence'] . '	';
    echo '' . $entry['modification'] . '	';
    echo '' . $entry['nl'] . '	';
    echo '' . round($entry['mass'], 4) . '	';
    echo '' . round($entry['delta_ppm'], 2) . '	';
    echo '' . round($entry['delta_da'] * 1000, 2) . '	';

    echo '
';

    $lastEntry = $entry;
}
?>


text:
from util.tipo import tipo
class S_END_CHANGE_USER_APPEARANCE(object):

    def __init__(self, tracker, time, direction, opcode, data):
        print(str(type(self)).split('.')[3]+'('+str(len(data))+'): '+ str(data.get_array_hex(1))[1:-1])
        ok = data.read(tipo.byte)
        unk = data.read(tipo.byte)

redpajama_set_name: RedPajamaGithub


text:
FROM maven:3.5.3-jdk-10-slim as maven
WORKDIR /armeria
COPY src src
COPY pom.xml pom.xml
RUN mvn compile assembly:single -q

FROM openjdk:10-jre-slim
WORKDIR /armeria
COPY --from=maven /armeria/target/hello-1.0-SNAPSHOT-jar-with-dependencies.jar app.jar
CMD ["java", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-XX:+AggressiveOpts", "-jar", "app.jar"]


text:
package uk.ac.ed.ph.snuggletex;

import uk.ac.ed.ph.snuggletex.testutil.TestUtilities;
import uk.ac.ed.ph.snuggletex.utilities.MessageFormatter;

import java.util.Arrays;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

import junit.framework.Assert;

import org.junit.Test;

/**
 * Base for tests that expect specific errors to be recorded.
 *
 * @author  David McKain
 * @version $Revision: 742 $
 */
public abstract class ErrorTestBase {

    private static final Logger logger = Logger.getLogger(ErrorTestBase.class.getName());

    private final String inputLaTeX;
    private final String expectedErrorCodeStrings;

    protected ErrorTestBase(final String inputLaTeX, final String expectedErrorCodeStrings) {
        this.inputLaTeX = inputLaTeX;
        this.expectedErrorCodeStrings = expectedErrorCodeStrings;
    }

    protected SnuggleSession createSnuggleSession() {
        return new SnuggleEngine().createSession();
    }

    @Test
    public void runTest() throws Throwable {
        /* Parse document and build XML */
        SnuggleSession session = createSnuggleSession();
        try {
            session.parseInput(new SnuggleInput(TestUtilities.massageInputLaTeX(inputLaTeX)));
            session.buildXMLString();
        }
        catch (Exception e) {
            logger.log(Level.WARNING, "Parsing failed unexpectedly on input " + inputLaTeX, e);
            throw e;
        }
        /* Extract list of error codes */
        List<InputError> errors = session.getErrors();
        String[] actualErrorCodes = new String[errors.size()];
        for (int i=0; i<actualErrorCodes.length; i++) {
            actualErrorCodes[i] = errors.get(i).getErrorCode().getName();
        }

        /* We allow a single wildcard (...) at the end of the expectedErrorCodeStrings to denote
         * 'any other stuff afterwards'.
         */
        String expectedErrorCodeData = expectedErrorCodeStrings.trim();
        boolean isWildcard = false;
        if (expectedErrorCodeData.endsWith("...")) {
            isWildcard = true;
            expectedErrorCodeData = expectedErrorCodeData.substring(0, expectedErrorCodeData.length()-3);
        }
        String[] expectedErrorCodes = expectedErrorCodeData.split(",\\s*");

        /* Now check things */
        if (!compare(expectedErrorCodes, actualErrorCodes, isWildcard)) {
            StringBuilder messageBuilder = new StringBuilder("Test failed!\nInput was: ").append(inputLaTeX)
                .append("\nExpected error codes were: ").append(Arrays.toString(expectedErrorCodes))
                .append("\nActual error codes were:   ").append(Arrays.toString(actualErrorCodes));
            for (int i=0; i<errors.size(); i++) {
                messageBuilder.append("\nError ").append(i+1)
                    .append(" was: ")
                    .append(MessageFormatter.formatErrorAsString(errors.get(i)));
            }
            logger.warning(messageBuilder.toString());
            Assert.fail("Failed on " + inputLaTeX);
        }
    }

    private boolean compare(String[] expected, String[] actual, boolean expectedWildcard) {
        if (!expectedWildcard) {
            return Arrays.equals(expected, actual);
        }
        /* Wildcard case */
        if (actual.length < expected.length) {
            return false;
        }
        for (int i=0; i<expected.length; i++) {
            if (!expected[i].equals(actual[i])) {
                return false;
            }
        }
        return true;
    }
}


text:
#import "NSObject.h"

// Not exported
@interface _UIGestureRecognizerTransformAnalyzer : NSObject
{
    double _lowPassTranslationMagnitudeDelta;
    double _lowPassScaleDelta;
    double _lowPassRotationDelta;
    double _translationWeight;
    double _pinchingWeight;
    double _rotationWeight;
    int _dominantComponent;
}

@property(readonly, nonatomic) int dominantComponent; // @synthesize dominantComponent=_dominantComponent;
@property(nonatomic) double rotationWeight; // @synthesize rotationWeight=_rotationWeight;
@property(nonatomic) double pinchingWeight; // @synthesize pinchingWeight=_pinchingWeight;
@property(nonatomic) double translationWeight; // @synthesize translationWeight=_translationWeight;
- (void)analyzeTouches:(id)arg1;
- (void)reset;
- (id)init;

@end


text:
/**
 * Provide the WeightedEmitter class as an export.
 *
 * @author Orgun109uk <orgun109uk@gmail.com>
 */

module.exports = require('./lib/WeightedEmitter');


text:
// [WriteFile Name=RealisticLightingAndShadows, Category=Scenes]
// [Legal]
// Copyright 2020 Esri.

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0

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

#ifdef PCH_BUILD
#include "pch.hpp"
#endif // PCH_BUILD

#include "RealisticLightingAndShadows.h"

#include "ArcGISTiledElevationSource.h"
#include "Scene.h"
#include "SceneQuickView.h"
#include "ArcGISSceneLayer.h"

#include <QUrl>
#include <QDateTime>
#include <QDate>
#include <QTime>
#include <QTimeZone>

#include <cmath>

using namespace Esri::ArcGISRuntime;

RealisticLightingAndShadows::RealisticLightingAndShadows(QObject* parent /* = nullptr */):
  QObject(parent),
  m_scene(new Scene(BasemapStyle::ArcGISTopographic, this))
{
  // create a new elevation source from Terrain3D REST service
  ArcGISTiledElevationSource* elevationSource = new ArcGISTiledElevationSource(
        QUrl("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"), this);

  // add the elevation source to the scene to display elevation
  m_scene->baseSurface()->elevationSources()->append(elevationSource);

  // add 3D building shells with a scene layer
  ArcGISSceneLayer* scenelayer = new ArcGISSceneLayer(
        QUrl("https://tiles.arcgis.com/tiles/P3ePLMYs2RVChkJx/arcgis/rest/services/DevA_BuildingShells/SceneServer/layers/0"), this);

  m_scene->operationalLayers()->append(scenelayer);
}

RealisticLightingAndShadows::~RealisticLightingAndShadows() = default;

void RealisticLightingAndShadows::init()
{
  // Register classes for QML
  qmlRegisterType<SceneQuickView>("Esri.Samples", 1, 0, "SceneView");
  qmlRegisterType<RealisticLightingAndShadows>("Esri.Samples", 1, 0, "RealisticLightingAndShadowsSample");
}

SceneQuickView* RealisticLightingAndShadows::sceneView() const
{
  return m_sceneView;
}

// Set the view (created in QML)
void RealisticLightingAndShadows::setSceneView(SceneQuickView* sceneView)
{
  if (!sceneView || sceneView == m_sceneView)
    return;

  m_sceneView = sceneView;
  m_sceneView->setArcGISScene(m_scene);

  // add camera and set scene viewpoint
  const Camera camera(45.54605153789073, -122.69033380511073, 941.0002111233771, 162.58544227544266, 60.0,0.0);
  m_sceneView->setViewpointCamera(camera, 0);

  // set atmosphere effect to realistic
  m_sceneView->setAtmosphereEffect(AtmosphereEffect::Realistic);

  // set the sun time to the calendar
  setSunTimeFromValue(8.5);

  // add sun lighting
  m_sceneView->setSunLighting(LightingMode::LightAndShadows);

  emit sceneViewChanged();
}

void RealisticLightingAndShadows::setSunTimeFromValue(double sunTimeValue)
{
  if (!m_sceneView)
    return;

  // convert a double from 0.0 to 23.99 into hours and minutes
  double remainder = std::fmod(sunTimeValue, 1);
  int minute = remainder * 60;
  int hour = sunTimeValue - remainder;

  const QTime selectedTime = QTime(hour, minute);

  // set a calendar with a date, time, and timezone
  const QDateTime sunTime(QDate(2018, 8, 10), selectedTime, QTimeZone(-25200));
  // To represent the PST time zone during daylight savings time (-7 hours), we use the number of seconds of offset.
  // 3600 seconds/hour * -7 hours = -25,200 seconds.

  // set the sun time to the calendar
  m_sceneView->setSunTime(sunTime);

  // trigger the time in the settings column to update
  emit sunTimeChanged(selectedTime.toString("h:mm ap"));
}

void RealisticLightingAndShadows::setLightingMode(int lightingModeValue)
{
  if (!m_sceneView)
    return;

  if (lightingModeValue == 0)
  {
    m_sceneView->setSunLighting(LightingMode::NoLight);
  }
  else if (lightingModeValue == 1)
  {
    m_sceneView->setSunLighting(LightingMode::Light);
  }
  else
  {
    m_sceneView->setSunLighting(LightingMode::LightAndShadows);
  }
}


text:
---
ID: 3474
post_title: 'WhatsApp Share – New Way to Social Engagement'
author: Kushal Jayswal
post_date: 2015-03-22 08:59:52
post_excerpt: ""
layout: post
permalink: >
  http://teckstack.com/whatsapp-share-button
published: true
quality_blog_tip_done1:
  - 'no'
quality_blog_tip_done2:
  - 'no'
quality_blog_tip_done3:
  - 'no'
quality_blog_tip_done4:
  - 'no'
quality_blog_tip_done5:
  - 'no'
quality_blog_tip_done6:
  - 'no'
quality_blog_tip_done7:
  - 'no'
quality_blog_tip_done8:
  - 'no'
quality_blog_tip_done9:
  - 'no'
quality_blog_tip_done10:
  - 'no'
quality_blog_tip_done11:
  - 'no'
quality_blog_tip_done12:
  - 'no'
quality_blog_tip_done13:
  - 'no'
quality_blog_tip_done14:
  - 'no'
quality_blog_tip_done15:
  - 'no'
quality_blog_tip_done16:
  - 'no'
quality_blog_tip_done17:
  - 'no'
quality_blog_tip_done18:
  - 'no'
quality_blog_tip_done19:
  - 'no'
quality_blog_tip_done20:
  - 'no'
quality_blog_tip_done21:
  - 'no'
quality_blog_tip_done22:
  - 'no'
quality_blog_tip_done23:
  - 'no'
quality_blog_tip_done24:
  - 'no'
quality_blog_tip_done25:
  - 'no'
mentions:
  - 'a:0:{}'
views:
  - "4188"
dsq_thread_id:
  - "3616466209"
wbounce_status:
  - default
post_views_count:
  - "10"
ac_is_copyprotect:
  - "1"
ac_is_advanced_tracking:
  - "1"
ac_postid:
  - 1K-yDEqkY8A.text
ac_is_process:
  - "1"
ac_embedid:
  - 0vkRGzrdZj9
vortex_system_likes:
  - "0"
vortex_system_dislikes:
  - "0"
---

Frankly speaking, I am not a big fan of WhatsApp. But while I came to know that it crosses 700 million users and the most popular application, I changed my mind and in curiosity, I started googling on it. It's all wonderful but as a developer, we should think on the other side too and today we will discuss on it.

See Demo or Fork on Github.

A Small Story

Social sharing is a key to success for any blog and I noticed, almost all blogs with social sharing buttons. Facebook & Twitter are the most preferred options, comparing to others like Google+, Pinterest, LinkedIn, etc. But yet I couldn't see even a single blog having WhatsApp sharing button.

Further mobile and tablet users are increasing day-by-day and lets keep in mind, the demand for responsive web design (more than native apps), adding one more button - WhatsApp Share - to your collection of social sharing widget wouldn't be that difficult! Agree? Moreover this article pushed me even more to this direction.

The Mindset

From above story, requirement seems pretty simple to add a social share button which shares your article's link directly to WhatsApp application. If you write, read or develop blogs then getting this need is not new. This will be similar to what you do while integrate Facebook or Twitter share button for a blog.

Another need is to show this button only for portable devices (i.e.: iPhone, Android, Tablet, etc.). We need to manipulate through jQuery. And I have written plugin code with some configurable options.

Here is a site provides code snippet to integrate WhatsApp sharing button which will be visible in devices. They have been written pure JavaScript code and as jQuery has larger community, I will follow jQuery. Lets start coding...

Initial Code

(function ($) {
	$('.wa_btn').on("click", function(e) {
		if(devices) ) {
			//do something
		}else{
			alert("This button will work only in mobile device.");
		}
	});
}( jQuery ));

As you can see in above code, we have two blocks - IF and ELSE. We are trying to integrate WhatsApp share button for portable devices only. And in the ELSE block we try to throw alert to user possibly. All will be happened on click of element having class - .wa_btn. But as discussed, I have taken approach for a plugin. So forget about static class and follow below code now.

Full Plugin Code Fork on Github

(function ( $ ) {
 	 $.fn.wsBtn = function(options) {

		// Configuration
		var settings = $.extend({
			// These are the defaults.
			message			: "This button fires only in devices.",
			bgColor			: "#090",
			container		: ".post",
			target			: "h2"
		}, options );

		this.each(function(){
			// Variables
			var el 			= $(this);
			var box			= el.find(settings.container);
			var targetTo	= box.find(settings.target);
			var aTag		= targetTo.find('a');
			var devices		= /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);

			if(aTag && devices){
				// appending WhatsApp Sharing button to container
				box.append(" Share");
			}
			/*else{
				boxes.on("click",".wa_btn", function() {
					alert(settings.message);
				});
			}*/
			box.on('click','.wa_btn',function(){
				var url 	= $(this).parent(box).find(aTag).attr('href');
				var txt		= $(this).parent(box).find(targetTo).text();
				var wmsg	= encodeURIComponent(txt)+" - "+encodeURIComponent(url);
				var wurl	= 'whatsapp://send?text='+wmsg;

				$(this).attr('href',wurl);
				$(this).attr('data-href',url);
				$(this).attr('data-text',txt);

			});

		});
    };

}( jQuery ));

We are done with the script now. If you are familiar with Skype URIs then var wurl = "whatsapp://send?text="+wmsg; won't hesitate you. But let me know in comment if you are not getting anything or have better idea.

Sample HTML

<div class="posts">
    <div class="post">
        <h2><a href="http://teckstack.com/how-to-configure-sass-for-html-projects">How to Configure SASS for HTML Projects</a></h2>

        <p>SASS is booming the world with giving super powers to CSS and if you don't know about it, you must gain your knowledge as a front end developer. The configuration for SASS is so simple but I observed that people avoids it or leave it to core developers. As I opine, when we can do more in less time, we should definitely go for it!</p>

    </div>
</div>

As you can notice in above code, there is nothing for WhatsApp button as that will be appended dynamically.

See Demo or Fork on Github.

Conclusion

If you are a blogger, you should integrate WhatsApp share button. This would give you extra traffic which will be converted revenue for you. Also this will be displayed for portable devices for now, so if you want to suggest your blog to any friend through WhatsApp, you don't need to go to browser address bar to do so. Just share on a single click.

Please add comments to show your reaction to this post.

Image Artist: Kinjal Jayswal (Mehta)


text:
.class public Lcom/google/android/mms/pdu/RetrieveConf;
.super Lcom/google/android/mms/pdu/MultimediaMessagePdu;
.source "RetrieveConf.java"

# direct methods
.method public constructor <init>()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/mms/InvalidHeaderValueException;
        }
    .end annotation

    .prologue
    .line 35
    invoke-direct {p0}, Lcom/google/android/mms/pdu/MultimediaMessagePdu;-><init>()V

    .line 36
    const/16 v0, 0x84

    invoke-virtual {p0, v0}, Lcom/google/android/mms/pdu/GenericPdu;->setMessageType(I)V

    .line 37
    return-void
.end method

.method constructor <init>(Lcom/google/android/mms/pdu/PduHeaders;)V
    .locals 0
    .parameter "headers"

    .prologue
    .line 45
    invoke-direct {p0, p1}, Lcom/google/android/mms/pdu/MultimediaMessagePdu;-><init>(Lcom/google/android/mms/pdu/PduHeaders;)V

    .line 46
    return-void
.end method

.method constructor <init>(Lcom/google/android/mms/pdu/PduHeaders;Lcom/google/android/mms/pdu/PduBody;)V
    .locals 0
    .parameter "headers"
    .parameter "body"

    .prologue
    .line 55
    invoke-direct {p0, p1, p2}, Lcom/google/android/mms/pdu/MultimediaMessagePdu;-><init>(Lcom/google/android/mms/pdu/PduHeaders;Lcom/google/android/mms/pdu/PduBody;)V

    .line 56
    return-void
.end method

# virtual methods
.method public addCc(Lcom/google/android/mms/pdu/EncodedStringValue;)V
    .locals 2
    .parameter "value"

    .prologue
    .line 74
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x82

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->appendEncodedStringValue(Lcom/google/android/mms/pdu/EncodedStringValue;I)V

    .line 75
    return-void
.end method

.method public getCc()[Lcom/google/android/mms/pdu/EncodedStringValue;
    .locals 2

    .prologue
    .line 64
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x82

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getEncodedStringValues(I)[Lcom/google/android/mms/pdu/EncodedStringValue;

    move-result-object v0

    return-object v0
.end method

.method public getContentType()[B
    .locals 2

    .prologue
    .line 83
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x84

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getTextString(I)[B

    move-result-object v0

    return-object v0
.end method

.method public getDeliveryReport()I
    .locals 2

    .prologue
    .line 102
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x86

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getOctet(I)I

    move-result v0

    return v0
.end method

.method public getFrom()Lcom/google/android/mms/pdu/EncodedStringValue;
    .locals 2

    .prologue
    .line 123
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x89

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getEncodedStringValue(I)Lcom/google/android/mms/pdu/EncodedStringValue;

    move-result-object v0

    return-object v0
.end method

.method public getMessageClass()[B
    .locals 2

    .prologue
    .line 144
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x8a

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getTextString(I)[B

    move-result-object v0

    return-object v0
.end method

.method public getMessageId()[B
    .locals 2

    .prologue
    .line 163
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x8b

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getTextString(I)[B

    move-result-object v0

    return-object v0
.end method

.method public getReadReport()I
    .locals 2

    .prologue
    .line 182
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x90

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getOctet(I)I

    move-result v0

    return v0
.end method

.method public getRetrieveStatus()I
    .locals 2

    .prologue
    .line 201
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x99

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getOctet(I)I

    move-result v0

    return v0
.end method

.method public getRetrieveText()Lcom/google/android/mms/pdu/EncodedStringValue;
    .locals 2

    .prologue
    .line 220
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x9a

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getEncodedStringValue(I)Lcom/google/android/mms/pdu/EncodedStringValue;

    move-result-object v0

    return-object v0
.end method

.method public getTransactionId()[B
    .locals 2

    .prologue
    .line 239
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x98

    invoke-virtual {v0, v1}, Lcom/google/android/mms/pdu/PduHeaders;->getTextString(I)[B

    move-result-object v0

    return-object v0
.end method

.method public setContentType([B)V
    .locals 2
    .parameter "value"

    .prologue
    .line 93
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x84

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->setTextString([BI)V

    .line 94
    return-void
.end method

.method public setDeliveryReport(I)V
    .locals 2
    .parameter "value"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/mms/InvalidHeaderValueException;
        }
    .end annotation

    .prologue
    .line 112
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x86

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->setOctet(II)V

    .line 113
    return-void
.end method

.method public setFrom(Lcom/google/android/mms/pdu/EncodedStringValue;)V
    .locals 2
    .parameter "value"

    .prologue
    .line 133
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x89

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->setEncodedStringValue(Lcom/google/android/mms/pdu/EncodedStringValue;I)V

    .line 134
    return-void
.end method

.method public setMessageClass([B)V
    .locals 2
    .parameter "value"

    .prologue
    .line 154
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x8a

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->setTextString([BI)V

    .line 155
    return-void
.end method

.method public setMessageId([B)V
    .locals 2
    .parameter "value"

    .prologue
    .line 173
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x8b

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->setTextString([BI)V

    .line 174
    return-void
.end method

.method public setReadReport(I)V
    .locals 2
    .parameter "value"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/mms/InvalidHeaderValueException;
        }
    .end annotation

    .prologue
    .line 192
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x90

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->setOctet(II)V

    .line 193
    return-void
.end method

.method public setRetrieveStatus(I)V
    .locals 2
    .parameter "value"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/mms/InvalidHeaderValueException;
        }
    .end annotation

    .prologue
    .line 211
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x99

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->setOctet(II)V

    .line 212
    return-void
.end method

.method public setRetrieveText(Lcom/google/android/mms/pdu/EncodedStringValue;)V
    .locals 2
    .parameter "value"

    .prologue
    .line 230
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x9a

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->setEncodedStringValue(Lcom/google/android/mms/pdu/EncodedStringValue;I)V

    .line 231
    return-void
.end method

.method public setTransactionId([B)V
    .locals 2
    .parameter "value"

    .prologue
    .line 249
    iget-object v0, p0, Lcom/google/android/mms/pdu/GenericPdu;->mPduHeaders:Lcom/google/android/mms/pdu/PduHeaders;

    const/16 v1, 0x98

    invoke-virtual {v0, p1, v1}, Lcom/google/android/mms/pdu/PduHeaders;->setTextString([BI)V

    .line 250
    return-void
.end method


text:
package workflow

import (
	"context"

	"github.com/go-gorp/gorp"
	"github.com/ovh/cds/engine/api/database/gorpmapping"
	"github.com/ovh/cds/engine/api/integration"
	"github.com/ovh/cds/sdk"
)

// AddWorkflowIntegration link a project integration on a workflow
func AddWorkflowIntegration(db gorp.SqlExecutor, integ *sdk.WorkflowProjectIntegration) error {
	dbInteg := dbWorkflowProjectIntegration(*integ)
	if err := gorpmapping.Insert(db, &dbInteg); err != nil {
		return err
	}
	integ.ID = dbInteg.ID
	return nil
}

// LoadWorkflowIntegrationsByWorkflowID load workflow integrations by workflowid
func LoadWorkflowIntegrationsByWorkflowID(ctx context.Context, db gorp.SqlExecutor, id int64) ([]sdk.WorkflowProjectIntegration, error) {
	query := gorpmapping.NewQuery(`
		SELECT workflow_project_integration.*
		FROM workflow_project_integration
		WHERE workflow_project_integration.workflow_id = $1
	`).Args(id)
	return loadAll(ctx, db, query)
}

// RemoveIntegrationFromWorkflow remove a project integration on a workflow
func RemoveIntegrationFromWorkflow(db gorp.SqlExecutor, workflowInteg sdk.WorkflowProjectIntegration) error {
	dbInteg := dbWorkflowProjectIntegration(workflowInteg)
	return gorpmapping.Delete(db, &dbInteg)
}

// DeleteIntegrationsFromWorkflow remove a project integration on a workflow
func DeleteIntegrationsFromWorkflow(db gorp.SqlExecutor, workflowID int64) error {
	query := "DELETE FROM workflow_project_integration WHERE workflow_id = $1"
	if _, err := db.Exec(query, workflowID); err != nil {
		return sdk.WithStack(err)
	}
	return nil
}

func loadAll(ctx context.Context, db gorp.SqlExecutor, query gorpmapping.Query) ([]sdk.WorkflowProjectIntegration, error) {
	var integDB []dbWorkflowProjectIntegration
	if err := gorpmapping.GetAll(ctx, db, query, &integDB); err != nil {
		return nil, err
	}
	var integrations = make([]sdk.WorkflowProjectIntegration, 0, len(integDB))
	for _, workflowInteg := range integDB {
		pi, err := integration.LoadProjectIntegrationByID(ctx, db, workflowInteg.ProjectIntegrationID)
		if err != nil {
			return nil, err
		}
		pi.Blur()
		workflowInteg.ProjectIntegration = *pi
		integrations = append(integrations, sdk.WorkflowProjectIntegration(workflowInteg))
	}
	return integrations, nil
}


text:
package org.apache.maven.plugin.javadoc.resolver;

import org.apache.maven.plugin.javadoc.options.JavadocOptions;

import java.io.File;

/**
 *
 */
public class JavadocBundle
{

    private final File resourcesDirectory;

    private final JavadocOptions options;

    /**
     * @param options {@link JavadocOptions}
     * @param resourcesDirectory The resources directory.
     */
    public JavadocBundle( final JavadocOptions options, final File resourcesDirectory )
    {
        this.options = options;
        this.resourcesDirectory = resourcesDirectory;
    }

    /**
     * @return {@link #resourcesDirectory}
     */
    public File getResourcesDirectory()
    {
        return resourcesDirectory;
    }

    /**
     * @return {@link #options}
     */
    public JavadocOptions getOptions()
    {
        return options;
    }

}


text:
package com.lenox.beyondj.ha.management;

import com.lenox.beyond.launch.DeploymentManagement;
import org.apache.commons.lang3.Validate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author nickk
 */

public class ConsulServiceManagementDelegate {

    public static final String SERVICE_MANAGEMENT_REQUEST = "service-management-request";

    public ConsulServiceManagementDelegate(String configFile) throws Exception {

        Validate.notBlank(configFile, "configFile must not be blank");
    }

    public void advise(DeploymentManagement deploymentManagement) {
    }

    public String getLocalEndpoint() {
        return null;
    }

    private static Logger LOG = LoggerFactory.getLogger(ConsulServiceManagementDelegate.class);
}


text:
namespace blink {

class CompositorProxy;
class DOMArrayBuffer;
class DOMArrayBufferView;
class DOMSharedArrayBuffer;
class File;
class FileList;
class ImageData;
class StaticBitmapImage;

typedef Vector<WTF::ArrayBufferContents, 1> ArrayBufferContentsArray;
typedef Vector<RefPtr<StaticBitmapImage>, 1> ImageBitmapContentsArray;

// V8ObjectMap is a map from V8 objects to arbitrary values of type T.
// V8 objects (or handles to V8 objects) cannot be used as keys in ordinary wtf::HashMaps;
// this class should be used instead. GCObject must be a subtype of v8::Object.
// Suggested usage:
//     V8ObjectMap<v8::Object, int> map;
//     v8::Local<v8::Object> obj = ...;
//     map.set(obj, 42);
template<typename GCObject, typename T>
class V8ObjectMap {
    STACK_ALLOCATED();
public:
    bool contains(const v8::Local<GCObject>& handle)
    {
        return m_map.contains(*handle);
    }

    bool tryGet(const v8::Local<GCObject>& handle, T* valueOut)
    {
        typename HandleToT::iterator result = m_map.find(*handle);
        if (result != m_map.end()) {
            *valueOut = result->value;
            return true;
        }
        return false;
    }

    void set(const v8::Local<GCObject>& handle, const T& value)
    {
        m_map.set(*handle, value);
    }

private:
    // This implementation uses GetIdentityHash(), which sets a hidden property on the object containing
    // a random integer (or returns the one that had been previously set). This ensures that the table
    // never needs to be rebuilt across garbage collections at the expense of doing additional allocation
    // and making more round trips into V8. Note that since GetIdentityHash() is defined only on
    // v8::Objects, this V8ObjectMap cannot be used to map v8::Strings to T (because the public V8 API
    // considers a v8::String to be a v8::Primitive).

    // If V8 exposes a way to get at the address of the object held by a handle, then we can produce
    // an alternate implementation that does not need to do any V8-side allocation; however, it will
    // need to rehash after every garbage collection because a key object may have been moved.
    template<typename G>
    struct V8HandlePtrHash {
        STATIC_ONLY(V8HandlePtrHash);
        static v8::Local<G> unsafeHandleFromRawValue(const G* value)
        {
            const v8::Local<G>* handle = reinterpret_cast<const v8::Local<G>*>(&value);
            return *handle;
        }

        static unsigned hash(const G* key)
        {
            return static_cast<unsigned>(unsafeHandleFromRawValue(key)->GetIdentityHash());
        }
        static bool equal(const G* a, const G* b)
        {
            return unsafeHandleFromRawValue(a) == unsafeHandleFromRawValue(b);
        }
        // For HashArg.
        static const bool safeToCompareToEmptyOrDeleted = false;
    };

    typedef WTF::HashMap<GCObject*, T, V8HandlePtrHash<GCObject>> HandleToT;
    HandleToT m_map;
};

// SerializedScriptValueWriter is responsible for serializing primitive types and storing
// information used to reconstruct composite types.
class CORE_EXPORT SerializedScriptValueWriter {
    STACK_ALLOCATED();
    WTF_MAKE_NONCOPYABLE(SerializedScriptValueWriter);
public:
    typedef UChar BufferValueType;

    SerializedScriptValueWriter()
        : m_position(0)
    {
    }

protected:
    friend class ScriptValueSerializer;

    String takeWireString();

    // Write functions for primitive types.
    void writeUndefined();
    void writeNull();
    void writeTrue();
    void writeFalse();
    void writeBooleanObject(bool value);
    void writeOneByteString(v8::Local<v8::String>&);
    void writeUCharString(v8::Local<v8::String>&);
    void writeStringObject(const char* data, int length);
    void writeWebCoreString(const String&);
    void writeVersion();
    void writeInt32(int32_t value);
    void writeUint32(uint32_t value);
    void writeDate(double numberValue);
    void writeNumber(double number);
    void writeNumberObject(double number);
    void writeBlob(const String& uuid, const String& type, unsigned long long size);
    void writeBlobIndex(int blobIndex);
    void writeCompositorProxy(const CompositorProxy&);
    void writeFile(const File&);
    void writeFileIndex(int blobIndex);
    void writeFileList(const FileList&);
    void writeFileListIndex(const Vector<int>& blobIndices);
    void writeArrayBuffer(const DOMArrayBuffer&);
    void writeArrayBufferView(const DOMArrayBufferView&);
    void doWriteImageData(uint32_t width, uint32_t height, const uint8_t* pixelData, uint32_t pixelDataLength);
    void writeImageData(uint32_t width, uint32_t height, const uint8_t* pixelData, uint32_t pixelDataLength);
    void writeImageBitmap(uint32_t width, uint32_t height, uint32_t isOriginClean, uint32_t isPremultiplied, const uint8_t* pixelData, uint32_t pixelDataLength);
    void writeRegExp(v8::Local<v8::String> pattern, v8::RegExp::Flags);
    void writeTransferredMessagePort(uint32_t index);
    void writeTransferredArrayBuffer(uint32_t index);
    void writeTransferredImageBitmap(uint32_t index);
    void writeTransferredOffscreenCanvas(uint32_t index, uint32_t width, uint32_t height, uint32_t canvasId, uint32_t clientId, uint32_t localId, uint64_t nonce);
    void writeTransferredSharedArrayBuffer(uint32_t index);
    void writeObjectReference(uint32_t reference);
    void writeObject(uint32_t numProperties);
    void writeSparseArray(uint32_t numProperties, uint32_t length);
    void writeDenseArray(uint32_t numProperties, uint32_t length);
    void writeReferenceCount(uint32_t numberOfReferences);
    void writeGenerateFreshObject();
    void writeGenerateFreshSparseArray(uint32_t length);
    void writeGenerateFreshDenseArray(uint32_t length);
    void writeGenerateFreshMap();
    void writeGenerateFreshSet();
    void writeMap(uint32_t length);
    void writeSet(uint32_t length);

    void doWriteFile(const File&);
    void doWriteArrayBuffer(const DOMArrayBuffer&);
    void doWriteString(const char* data, int length);
    void doWriteWebCoreString(const String&);
    int bytesNeededToWireEncode(uint32_t value);

    template<class T>
    void doWriteUintHelper(T value)
    {
        while (true) {
            uint8_t b = (value & SerializedScriptValue::varIntMask);
            value >>= SerializedScriptValue::varIntShift;
            if (!value) {
                append(b);
                break;
            }
            append(b | (1 << SerializedScriptValue::varIntShift));
        }
    }

    void doWriteUint32(uint32_t value);
    void doWriteUint64(uint64_t value);
    void doWriteNumber(double number);
    void append(SerializationTag);
    void append(uint8_t b);
    void append(const uint8_t* data, int length);
    void ensureSpace(unsigned extra);
    void fillHole();
    uint8_t* byteAt(int position);
    int v8StringWriteOptions();

private:
    Vector<BufferValueType> m_buffer;
    unsigned m_position;
};

class CORE_EXPORT ScriptValueSerializer {
    STACK_ALLOCATED();
    WTF_MAKE_NONCOPYABLE(ScriptValueSerializer);
protected:
    class StateBase;
    enum class Status {
        Success,
        InputError,
        DataCloneError,
        JSException
    };

public:
    ScriptValueSerializer(SerializedScriptValueWriter&, WebBlobInfoArray*, ScriptState*);
    v8::Isolate* isolate() { return m_scriptState->isolate(); }
    v8::Local<v8::Context> context() { return m_scriptState->context(); }

    PassRefPtr<SerializedScriptValue> serialize(v8::Local<v8::Value>, Transferables*, ExceptionState&);

    static String serializeWTFString(const String&);
    static String serializeNullValue();

protected:
    class StateBase {
        USING_FAST_MALLOC(StateBase);
        WTF_MAKE_NONCOPYABLE(StateBase);
    public:
        virtual ~StateBase() { }

        // Link to the next state to form a stack.
        StateBase* nextState() { return m_next; }

        // Composite object we're processing in this state.
        v8::Local<v8::Value> composite() { return m_composite; }

        // Serializes (a part of) the current composite and returns
        // the next state to process or null when this is the final
        // state.
        virtual StateBase* advance(ScriptValueSerializer&) = 0;

    protected:
        StateBase(v8::Local<v8::Value> composite, StateBase* next)
            : m_composite(composite)
            , m_next(next)
        {
        }

    private:
        v8::Local<v8::Value> m_composite;
        StateBase* m_next;
    };

    // Dummy state that is used to signal serialization errors.
    class ErrorState final : public StateBase {
    public:
        ErrorState()
            : StateBase(v8Undefined(), 0)
        {
        }

        StateBase* advance(ScriptValueSerializer&) override
        {
            delete this;
            return 0;
        }
    };

    template <typename T>
    class State : public StateBase {
    public:
        v8::Local<T> composite() { return v8::Local<T>::Cast(StateBase::composite()); }

    protected:
        State(v8::Local<T> composite, StateBase* next)
            : StateBase(composite, next)
        {
        }
    };

    class AbstractObjectState : public State<v8::Object> {
    public:
        AbstractObjectState(v8::Local<v8::Object> object, StateBase* next)
            : State<v8::Object>(object, next)
            , m_index(0)
            , m_numSerializedProperties(0)
        {
        }

    protected:
        virtual StateBase* objectDone(unsigned numProperties, ScriptValueSerializer&) = 0;

        StateBase* serializeProperties(ScriptValueSerializer&);
        v8::Local<v8::Array> m_propertyNames;

    private:
        unsigned m_index;
        unsigned m_numSerializedProperties;
    };

    class ObjectState final : public AbstractObjectState {
    public:
        ObjectState(v8::Local<v8::Object> object, StateBase* next)
            : AbstractObjectState(object, next)
        {
        }

        StateBase* advance(ScriptValueSerializer&) override;

    protected:
        StateBase* objectDone(unsigned numProperties, ScriptValueSerializer&) override;
    };

    class DenseArrayState final : public AbstractObjectState {
    public:
        DenseArrayState(v8::Local<v8::Array> array, v8::Local<v8::Array> propertyNames, StateBase* next, v8::Isolate* isolate)
            : AbstractObjectState(array, next)
            , m_arrayIndex(0)
            , m_arrayLength(array->Length())
        {
            m_propertyNames = v8::Local<v8::Array>::New(isolate, propertyNames);
        }

        StateBase* advance(ScriptValueSerializer&) override;

    protected:
        StateBase* objectDone(unsigned numProperties, ScriptValueSerializer&) override;

    private:
        uint32_t m_arrayIndex;
        uint32_t m_arrayLength;
    };

    class SparseArrayState final : public AbstractObjectState {
    public:
        SparseArrayState(v8::Local<v8::Array> array, v8::Local<v8::Array> propertyNames, StateBase* next, v8::Isolate* isolate)
            : AbstractObjectState(array, next)
        {
            m_propertyNames = v8::Local<v8::Array>::New(isolate, propertyNames);
        }

        StateBase* advance(ScriptValueSerializer&) override;

    protected:
        StateBase* objectDone(unsigned numProperties, ScriptValueSerializer&) override;
    };

    template <typename T>
    class CollectionState : public State<T> {
    public:
        CollectionState(v8::Local<T> collection, StateBase* next)
            : State<T>(collection, next)
            , m_entries(collection->AsArray())
            , m_index(0)
            , m_length(m_entries->Length())
        {
        }

        StateBase* advance(ScriptValueSerializer&) override;

    private:
        v8::Local<v8::Array> m_entries;
        uint32_t m_index;
        uint32_t m_length;
    };

    typedef CollectionState<v8::Map> MapState;
    typedef CollectionState<v8::Set> SetState;

    virtual StateBase* doSerializeObject(v8::Local<v8::Object>, StateBase* next);

    // Marks object as having been visited by the serializer and assigns it a unique object reference ID.
    // An object may only be greyed once.
    void greyObject(const v8::Local<v8::Object>&);

    StateBase* handleError(Status errorStatus, const String& message, StateBase*);

    SerializedScriptValueWriter& writer() { return m_writer; }

private:
    StateBase* doSerialize(v8::Local<v8::Value>, StateBase* next);
    StateBase* doSerializeArrayBuffer(v8::Local<v8::Value> arrayBuffer, StateBase* next);
    void transferData(Transferables*, ExceptionState&, SerializedScriptValue*);

    StateBase* checkException(StateBase*);
    StateBase* writeObject(uint32_t numProperties, StateBase*);
    StateBase* writeSparseArray(uint32_t numProperties, uint32_t length, StateBase*);
    StateBase* writeDenseArray(uint32_t numProperties, uint32_t length, StateBase*);

    template <typename T> StateBase* writeCollection(uint32_t length, StateBase*);

    StateBase* push(StateBase* state)
    {
        ASSERT(state);
        ++m_depth;
        return checkComposite(state) ? state : handleError(Status::InputError, "Value being cloned is either cyclic or too deeply nested.", state);
    }

    StateBase* pop(StateBase* state)
    {
        ASSERT(state);
        --m_depth;
        StateBase* next = state->nextState();
        delete state;
        return next;
    }

    bool checkComposite(StateBase* top);
    void writeString(v8::Local<v8::Value>);
    void writeStringObject(v8::Local<v8::Value>);
    void writeNumberObject(v8::Local<v8::Value>);
    void writeBooleanObject(v8::Local<v8::Value>);
    StateBase* writeBlob(v8::Local<v8::Value>, StateBase* next);
    StateBase* writeCompositorProxy(v8::Local<v8::Value>, StateBase* next);
    StateBase* writeFile(v8::Local<v8::Value>, StateBase* next);
    StateBase* writeFileList(v8::Local<v8::Value>, StateBase* next);
    void writeImageData(v8::Local<v8::Value>);
    StateBase* writeAndGreyImageBitmap(v8::Local<v8::Object>, StateBase* next);
    void writeRegExp(v8::Local<v8::Value>);
    StateBase* writeAndGreyArrayBufferView(v8::Local<v8::Object>, StateBase* next);
    StateBase* writeAndGreyArrayBuffer(v8::Local<v8::Object>, StateBase* next);
    StateBase* writeTransferredOffscreenCanvas(v8::Local<v8::Value>, uint32_t index, StateBase* next);
    StateBase* writeTransferredSharedArrayBuffer(v8::Local<v8::Value>, uint32_t index, StateBase* next);
    static bool shouldSerializeDensely(uint32_t length, uint32_t propertyCount);

    StateBase* startArrayState(v8::Local<v8::Array>, StateBase* next);
    StateBase* startObjectState(v8::Local<v8::Object>, StateBase* next);
    StateBase* startMapState(v8::Local<v8::Map>, StateBase* next);
    StateBase* startSetState(v8::Local<v8::Set>, StateBase* next);

    bool appendBlobInfo(const String& uuid, const String& type, unsigned long long size, int* index);
    bool appendFileInfo(const File*, int* index);

    void copyTransferables(const Transferables&);

    RefPtr<ScriptState> m_scriptState;
    SerializedScriptValueWriter& m_writer;
    v8::TryCatch m_tryCatch;
    int m_depth;
    Status m_status;
    String m_errorMessage;
    typedef V8ObjectMap<v8::Object, uint32_t> ObjectPool;
    ObjectPool m_objectPool;
    ObjectPool m_transferredMessagePorts;
    ObjectPool m_transferredArrayBuffers;
    ObjectPool m_transferredImageBitmaps;
    ObjectPool m_transferredOffscreenCanvas;
    uint32_t m_nextObjectReference;
    WebBlobInfoArray* m_blobInfo;
    BlobDataHandleMap* m_blobDataHandles;

    // Counts of object types encountered while serializing the object graph.
    int m_primitiveCount = 0;
    int m_jsObjectCount = 0;
    int m_domWrapperCount = 0;
};

class ScriptValueDeserializer;

// SerializedScriptValueReader is responsible for deserializing primitive types and
// restoring information about saved objects of composite types.
class CORE_EXPORT SerializedScriptValueReader {
    STACK_ALLOCATED();
    WTF_MAKE_NONCOPYABLE(SerializedScriptValueReader);
public:
    SerializedScriptValueReader(const uint8_t* buffer, int length, const WebBlobInfoArray* blobInfo, BlobDataHandleMap& blobDataHandles, ScriptState* scriptState)
        : m_scriptState(scriptState)
        , m_buffer(buffer)
        , m_length(length)
        , m_position(0)
        , m_version(0)
        , m_blobInfo(blobInfo)
        , m_blobDataHandles(blobDataHandles)
    {
        ASSERT(!(reinterpret_cast<size_t>(buffer) & 1));
        ASSERT(length >= 0);
    }

    bool isEof() const { return m_position >= m_length; }

    ScriptState* getScriptState() const { return m_scriptState.get(); }

    virtual bool read(v8::Local<v8::Value>*, ScriptValueDeserializer&);
    bool readVersion(uint32_t& version);
    void setVersion(uint32_t);

protected:
    v8::Isolate* isolate() const { return m_scriptState->isolate(); }
    v8::Local<v8::Context> context() const { return m_scriptState->context(); }
    unsigned length() const { return m_length; }
    unsigned position() const { return m_position; }

    const uint8_t* allocate(uint32_t size)
    {
        const uint8_t* allocated = m_buffer + m_position;
        m_position += size;
        return allocated;
    }

    bool readWithTag(SerializationTag, v8::Local<v8::Value>*, ScriptValueDeserializer&);

    bool readTag(SerializationTag*);
    bool readWebCoreString(String*);
    bool readUint32(v8::Local<v8::Value>*);

    bool doReadUint32(uint32_t* value);

private:
    void undoReadTag();
    bool readArrayBufferViewSubTag(ArrayBufferViewSubTag*);
    bool readString(v8::Local<v8::Value>*);
    bool readUCharString(v8::Local<v8::Value>*);
    bool readStringObject(v8::Local<v8::Value>*);
    bool readInt32(v8::Local<v8::Value>*);
    bool readDate(v8::Local<v8::Value>*);
    bool readNumber(v8::Local<v8::Value>*);
    bool readNumberObject(v8::Local<v8::Value>*);
    bool doReadImageDataProperties(uint32_t* width, uint32_t* height, uint32_t* pixelDataLength);
    bool readImageData(v8::Local<v8::Value>*);
    bool readImageBitmap(v8::Local<v8::Value>*);
    bool readCompositorProxy(v8::Local<v8::Value>*);
    DOMArrayBuffer* doReadArrayBuffer();
    bool readArrayBuffer(v8::Local<v8::Value>*);
    bool readArrayBufferView(v8::Local<v8::Value>*, ScriptValueDeserializer&);
    bool readRegExp(v8::Local<v8::Value>*);
    bool readBlob(v8::Local<v8::Value>*, bool isIndexed);
    bool readFile(v8::Local<v8::Value>*, bool isIndexed);
    bool readFileList(v8::Local<v8::Value>*, bool isIndexed);
    File* readFileHelper();
    File* readFileIndexHelper();

    template<class T>
    bool doReadUintHelper(T* value)
    {
        *value = 0;
        uint8_t currentByte;
        int shift = 0;
        do {
            if (m_position >= m_length)
                return false;
            currentByte = m_buffer[m_position++];
            *value |= ((currentByte & SerializedScriptValue::varIntMask) << shift);
            shift += SerializedScriptValue::varIntShift;
        } while (currentByte & (1 << SerializedScriptValue::varIntShift));
        return true;
    }

    bool doReadUint64(uint64_t* value);
    bool doReadNumber(double* number);
    PassRefPtr<BlobDataHandle> getOrCreateBlobDataHandle(const String& uuid, const String& type, long long size = -1);

    RefPtr<ScriptState> m_scriptState;
    const uint8_t* m_buffer;
    const unsigned m_length;
    unsigned m_position;
    uint32_t m_version;
    const WebBlobInfoArray* m_blobInfo;
    const BlobDataHandleMap& m_blobDataHandles;
};

class CORE_EXPORT ScriptValueDeserializer {
    STACK_ALLOCATED();
    WTF_MAKE_NONCOPYABLE(ScriptValueDeserializer);
public:
    ScriptValueDeserializer(SerializedScriptValueReader& reader, MessagePortArray* messagePorts, ArrayBufferContentsArray* arrayBufferContents, ImageBitmapContentsArray* imageBitmapContents)
        : m_reader(reader)
        , m_transferredMessagePorts(messagePorts)
        , m_arrayBufferContents(arrayBufferContents)
        , m_imageBitmapContents(imageBitmapContents)
        , m_arrayBuffers(arrayBufferContents ? arrayBufferContents->size() : 0)
        , m_imageBitmaps(imageBitmapContents ? imageBitmapContents->size() : 0)
        , m_version(0)
    {
    }

    v8::Local<v8::Value> deserialize();
    bool newSparseArray(uint32_t);
    bool newDenseArray(uint32_t length);
    bool newMap();
    bool newSet();
    bool consumeTopOfStack(v8::Local<v8::Value>*);
    bool newObject();
    bool completeObject(uint32_t numProperties, v8::Local<v8::Value>*);
    bool completeSparseArray(uint32_t numProperties, uint32_t length, v8::Local<v8::Value>*);
    bool completeDenseArray(uint32_t numProperties, uint32_t length, v8::Local<v8::Value>*);
    bool completeMap(uint32_t length, v8::Local<v8::Value>*);
    bool completeSet(uint32_t length, v8::Local<v8::Value>*);
    void pushObjectReference(const v8::Local<v8::Value>&);
    bool tryGetTransferredMessagePort(uint32_t index, v8::Local<v8::Value>*);
    bool tryGetTransferredArrayBuffer(uint32_t index, v8::Local<v8::Value>*);
    bool tryGetTransferredImageBitmap(uint32_t index, v8::Local<v8::Value>*);
    bool tryGetTransferredOffscreenCanvas(uint32_t index, uint32_t width, uint32_t height, uint32_t canvasId, uint32_t clientId, uint32_t localId, uint64_t nonce, v8::Local<v8::Value>*);
    bool tryGetTransferredSharedArrayBuffer(uint32_t index, v8::Local<v8::Value>*);
    bool tryGetObjectFromObjectReference(uint32_t reference, v8::Local<v8::Value>*);
    uint32_t objectReferenceCount();

protected:
    SerializedScriptValueReader& reader() { return m_reader; }
    virtual bool read(v8::Local<v8::Value>*);

private:
    bool initializeObject(v8::Local<v8::Object>, uint32_t numProperties, v8::Local<v8::Value>*);
    bool doDeserialize();
    void push(v8::Local<v8::Value> value) { m_stack.append(value); };
    void pop(unsigned length)
    {
        ASSERT(length <= m_stack.size());
        m_stack.shrink(m_stack.size() - length);
    }
    unsigned stackDepth() const { return m_stack.size(); }

    v8::Local<v8::Value> element(unsigned index);
    void openComposite(const v8::Local<v8::Value>&);
    bool closeComposite(v8::Local<v8::Value>*);

    SerializedScriptValueReader& m_reader;
    Vector<v8::Local<v8::Value>> m_stack;
    Vector<v8::Local<v8::Value>> m_objectPool;
    Vector<uint32_t> m_openCompositeReferenceStack;
    MessagePortArray* m_transferredMessagePorts;
    ArrayBufferContentsArray* m_arrayBufferContents;
    ImageBitmapContentsArray* m_imageBitmapContents;
    Vector<v8::Local<v8::Value>> m_arrayBuffers;
    Vector<v8::Local<v8::Value>> m_imageBitmaps;
    uint32_t m_version;
};

} // namespace blink

#endif // ScriptValueSerializer_h


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. licenses this file to you under the Apache License,
  ~ Version 2.0 (the "License"); you may not use this file except
  ~ in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:jaxrs="http://cxf.apache.org/jaxrs"
       xmlns="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="
         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
         http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">

    <jaxrs:server id="services" address="/">
        <jaxrs:serviceBeans>
            <ref bean="certificateServiceBean"/>
            <ref bean="swaggerResource"/>
        </jaxrs:serviceBeans>

        <jaxrs:providers>
            <ref bean="jsonProvider"/>
            <ref bean="errorHandler"/>
            <ref bean="swaggerWriter"/>
        </jaxrs:providers>
    </jaxrs:server>

    <bean id="swaggerWriter" class="io.swagger.jaxrs.listing.SwaggerSerializers"/>
    <bean id="swaggerResource" class="io.swagger.jaxrs.listing.ApiListingResource"/>

    <bean id="swaggerConfig" class="io.swagger.jaxrs.config.BeanConfig">
        <property name="resourcePackage" value="org.wso2.carbon.certificate.mgt.cert.jaxrs.api"/>
        <property name="version" value="1.0.0"/>
        <property name="host" value="localhost:9443"/>
        <property name="schemes" value="https" />
        <property name="basePath" value="/api-certificate-mgt-v1.0"/>
        <property name="title" value="Certificate Management Admin Service API Definitions"/>
        <property name="contact" value="dev@wso2.org"/>
        <property name="license" value="Apache 2.0"/>
        <property name="licenseUrl" value="http://www.apache.org/licenses/LICENSE-2.0.html"/>
        <property name="scan" value="true"/>
    </bean>

    <bean id="certificateServiceBean" class="org.wso2.carbon.certificate.mgt.cert.jaxrs.api.impl.CertificateManagementAdminServiceImpl"/>
    <bean id="jsonProvider" class="org.wso2.carbon.certificate.mgt.cert.jaxrs.api.common.GsonMessageBodyHandler"/>
    <bean id="errorHandler" class="org.wso2.carbon.certificate.mgt.cert.jaxrs.api.common.ErrorHandler"/>

</beans>


text:
/**
 *
 */
package org.reclipse.behavior.specification.ui.util;

import org.fujaba.commons.utils.Class2EClassRegistry;
import org.reclipse.behavior.specification.BehavioralpatternPackage;
import org.reclipse.behavior.specification.impl.BPAnyObjectImpl;
import org.reclipse.behavior.specification.impl.BPAssignmentImpl;
import org.reclipse.behavior.specification.impl.BPEachFragmentImpl;
import org.reclipse.behavior.specification.impl.BPMessageImpl;
import org.reclipse.behavior.specification.impl.BPObjectImpl;
import org.reclipse.behavior.specification.impl.BPSetObjectImpl;
import org.reclipse.behavior.specification.impl.BehavioralPatternImpl;

import de.uni_paderborn.basicSequenceDiagram.BasicSequenceDiagramPackage;
import de.uni_paderborn.basicSequenceDiagram.impl.AlternativeFragmentImpl;
import de.uni_paderborn.basicSequenceDiagram.impl.LifelineImpl;
import de.uni_paderborn.basicSequenceDiagram.impl.LoopFragmentImpl;
import de.uni_paderborn.basicSequenceDiagram.impl.OptionalFragmentImpl;

/**
 * @author mcp
 * @author Last editor: $Author$
 * @version $Revision$ $Date$
 *
 */
public abstract class ModelRegistrator
{
   public static void initialize()
   {
      BehavioralpatternPackage bpPack = BehavioralpatternPackage.eINSTANCE;
      Class2EClassRegistry.registerClass(BehavioralPatternImpl.class, bpPack.getBehavioralPattern());
      Class2EClassRegistry.registerClass(BPObjectImpl.class, bpPack.getBPObject());
      Class2EClassRegistry.registerClass(BPAnyObjectImpl.class, bpPack.getBPAnyObject());
      Class2EClassRegistry.registerClass(BPSetObjectImpl.class, bpPack.getBPSetObject());
      Class2EClassRegistry.registerClass(BPMessageImpl.class, bpPack.getBPMessage());
      Class2EClassRegistry.registerClass(BPAssignmentImpl.class, bpPack.getBPAssignment());
      Class2EClassRegistry.registerClass(BPEachFragmentImpl.class, bpPack.getBPEachFragment());
      BasicSequenceDiagramPackage bsPack = BasicSequenceDiagramPackage.eINSTANCE;
      Class2EClassRegistry.registerClass(LifelineImpl.class, bsPack.getLifeline());
      Class2EClassRegistry.registerClass(AlternativeFragmentImpl.class, bsPack.getAlternativeFragment());
      Class2EClassRegistry.registerClass(LoopFragmentImpl.class, bsPack.getLoopFragment());
      Class2EClassRegistry.registerClass(OptionalFragmentImpl.class, bsPack.getOptionalFragment());
   }
}


text:
<?php

namespace App\Album\Factory\Action;

use App\Album\Action\IndexAction;
use Interop\Container\ContainerInterface;
use Zend\Expressive\Template\TemplateRendererInterface;
use App\Album\Service\AlbumServiceInterface;

class IndexActionFactory
{
    /**
     * @param ContainerInterface $container
     * @return IndexAction
     */
    public function __invoke(ContainerInterface $container)
    {
        $template = ($container->has(TemplateRendererInterface::class))
            ? $container->get(TemplateRendererInterface::class)
            : null;

        $albumService = $container->get(AlbumServiceInterface::class);

        return new IndexAction($template, $albumService);
    }
}


text:
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace treeview
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : Form
	{
		public MainForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();

			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}

	}
}


text:
<!DOCTYPE html>

        <meta charset="utf-8">
        <title></title>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/bootstrap.min.css">
        <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/home.css">
        <link href="assets/font-awesome/css/font-awesome.min.css" rel="stylesheet">
        <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">

          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            Toggle navigation

          </button>
          <a class="navbar-brand" href="<?php echo site_url('User/userHome') ?>" style="font-size: 25px;">STUDENTMATE

              <img src="<?php echo base_url() ?>assets/images/logoNew.png" alt="logo" class="logo">

<a href="<?php echo site_url("User/userHome") ?>"> Home

<a href="<?php echo site_url("User/userAccommodation") ?>"> Accomodation

 Scholarships

 Clubs

 Timetable

               Messages 7

7 New Messages

                    John Smith:
                    Hey there, I wanted to ask you something...
                     4:34 PM

                    John Smith:
                    Hey there, I wanted to ask you something...
                     4:34 PM

                    John Smith:
                    Hey there, I wanted to ask you something...
                     4:34 PM

View Inbox 7

             <?php echo $_SESSION['username'];?>

<a href="<?php echo site_url('Users/userProfile') ?>"> Profile

<a href="<?php echo base_url(); ?>"> Log Out

NEW RECRUITEMENTS FOR CLUBS AND SOCIETIES

 Select a club and register

        <?php if (count($records)): ?>

        <?php foreach ($records as $row): ?>

 <?php echo $row->clubname; ?>

Registrations are open until
                <?php echo date('F d, Y', strtotime($row->clubdate)); ?> @ <?php echo date('h:m A',strtotime($row->clubtime)); ?>

                <a href="<?php echo site_url('User/joinClubs'); ?>" class="btn btn-primary" role="button">Enter

        <?php endforeach; ?>

        <?php else: ?>

Still no registrtions for clubs

        <?php endif ?>

&copy StudentMate 2017


text:
package com.gl.daily.practice.algorithms.base;

import org.junit.Assert;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;

/**
 * ExpressionUtils Tester.
 *
 * @author George
 * @version 1.0
 * @since
Jul 26, 2017

 */
public class ExpressionUtilsTest {

    @Before
    public void before() throws Exception {
    }

    @After
    public void after() throws Exception {
    }

    @Test
    public void testFixLeftBracketsCase() throws Exception {
        String ori = "17+29)*3-4)*58-60)))";
        String cur = ExpressionUtils.fixLeftBrackets(ori);
        Assert.assertEquals("((17 + 29) * ((3 - 4) * (58 - 60)))", cur);
    }

    @Test
    public void testInfix2Postfix() throws Exception {
        String ori = "12+23)*34-45)*56-67)))";
        String cur = ExpressionUtils.infix2Postfix(ori);
        Assert.assertEquals("((12 23 +) ((34 45 -) (56 67 -) *) *)", cur);
    }

    @Test
    public void testEvaluate() throws Exception {
        String ori = "12+23)*4)-3)";
        String cur = ExpressionUtils.evaluateExpression(ori);
        Assert.assertEquals("137", cur);
    }

    @Test
    public void testIsNumber() {
        char c = '0';
        Assert.assertTrue(ExpressionUtils.isNumber(c));
    }

    @Test
    public void testIsNotNumber() {
        char c = 'a';
        Assert.assertFalse(ExpressionUtils.isNumber(c));
    }

    @Test
    public void testIsSymbol() {
        char c = '+';
        Assert.assertTrue(ExpressionUtils.isSymbol(c));
    }

    @Test
    public void testIsNotSymbol() {
        char c = '(';
        Assert.assertFalse(ExpressionUtils.isSymbol(c));
    }

}


text:
#include <aws/lexv2-models/model/DescribeSlotRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>

#include <utility>

using namespace Aws::LexModelsV2::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;

DescribeSlotRequest::DescribeSlotRequest() :
    m_slotIdHasBeenSet(false),
    m_botIdHasBeenSet(false),
    m_botVersionHasBeenSet(false),
    m_localeIdHasBeenSet(false),
    m_intentIdHasBeenSet(false)
{
}

Aws::String DescribeSlotRequest::SerializePayload() const
{
  return {};
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Elench. fung. (Halle) 81 (1783)

#### Original name
Agaricus hispidus Batsch

### Remarks
null


text:
@import UIKit;

#import "WMFAnalyticsLogging.h"

@class MWKSite;
@class MWKDataStore;
@class MWKSavedPageList;
@class MWKHistoryList;

NS_ASSUME_NONNULL_BEGIN

@interface WMFExploreViewController : UITableViewController<WMFAnalyticsViewNameProviding>

@property (nonatomic, strong) MWKDataStore* dataStore;

- (void)showSettings;

@end

NS_ASSUME_NONNULL_END


text:
package config

import (
	"log"
	"os"
	"reflect"
	"strconv"

	"github.com/mitchellh/mapstructure"
)

// StringToFileModeFunc returns a function that converts strings to os.FileMode
// value. This is designed to be used with mapstructure for parsing out a
// filemode value.
func StringToFileModeFunc() mapstructure.DecodeHookFunc {
	return func(
		f reflect.Type,
		t reflect.Type,
		data interface{}) (interface{}, error) {
		if f.Kind() != reflect.String {
			return data, nil
		}
		if t != reflect.TypeOf(os.FileMode(0)) {
			return data, nil
		}

		// Convert it by parsing
		v, err := strconv.ParseUint(data.(string), 8, 12)
		if err != nil {
			return data, err
		}
		return os.FileMode(v), nil
	}
}

// StringToWaitDurationHookFunc returns a function that converts strings to wait
// value. This is designed to be used with mapstructure for parsing out a wait
// value.
func StringToWaitDurationHookFunc() mapstructure.DecodeHookFunc {
	return func(
		f reflect.Type,
		t reflect.Type,
		data interface{}) (interface{}, error) {
		if f.Kind() != reflect.String {
			return data, nil
		}
		if t != reflect.TypeOf(WaitConfig{}) {
			return data, nil
		}

		// Convert it by parsing
		return ParseWaitConfig(data.(string))
	}
}

// ConsulStringToStructFunc checks if the value set for the key should actually
// be a struct and sets the appropriate value in the struct. This is for
// backwards-compatability with older versions of Consul Template.
func ConsulStringToStructFunc() mapstructure.DecodeHookFunc {
	return func(
		f reflect.Type,
		t reflect.Type,
		data interface{}) (interface{}, error) {
		if t == reflect.TypeOf(ConsulConfig{}) && f.Kind() == reflect.String {
			log.Println("[WARN] consul now accepts a stanza instead of a string. " +
				"Update your configuration files and change consul = \"\" to " +
				"consul { } instead.")
			return &ConsulConfig{
				Address: String(data.(string)),
			}, nil
		}

		return data, nil
	}
}


text:
<?xml version="1.0"?>
<!--

-->
<config>
    <acl>
        <resources>
            <admin>
                <children>
                    <system>
                        <children>
                            <config>
                                <children>
                                    <translation translate="title" module="translation">
                                        <title>Translation</title>
                                    </translation>
                                </children>
                            </config>
                            <tools>
                                <children>
                                    <translation translate="title" module="translation">
                                        <title>Translation</title>
                                        <sort_order>100</sort_order>
                                        <children>
                                            <module translate="title" module="translation">
                                                <title>Modules</title>
                                                <sort_order>10</sort_order>
                                            </module>
                                            <operations translate="title" module="translation">
                                                <title>Operations</title>
                                                <sort_order>20</sort_order>
                                            </operations>
                                        </children>
                                    </translation>
                                </children>
                            </tools>
                        </children>
                    </system>
                </children>
            </admin>
        </resources>
    </acl>
    <menu>
        <system>
            <children>
                <tools>
                    <children>
                        <translation translate="title" module="translation">
                            <title>Translation</title>
                            <sort_order>100</sort_order>
                            <children>
                                <module translate="title" module="translation">
                                    <title>Modules</title>
                                    <action>adminhtml/translation_module</action>
                                    <sort_order>10</sort_order>
                                </module>
                                <operation translate="title" module="translation">
                                     <title>Operations</title>
                                     <action>adminhtml/translation_operation</action>
                                     <sort_order>20</sort_order>
                                 </operation>
                            </children>
                        </translation>
                    </children>
                </tools>
            </children>
        </system>
    </menu>
</config>


text:
<!DOCTYPE html>
<!--
 Copyright 2019 Google LLC

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

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

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>EME Encryption Scheme Polyfill - load with script tag</title>
    <script src="../../dist/eme-encryption-scheme-polyfill.js"></script>
    <script>
      function testLoader() {
        return typeof EncryptionSchemePolyfills != 'undefined' &&
               checkDefinition(EncryptionSchemePolyfills);
      }
    </script>
    <script src="test-load.js"></script>
  </head>
  <body></body>
</html>


text:
phpiredis command
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
<?php
require_once('connect.inc');
$test = '';

$host = '127.0.0.1';
if (!$link = my_phpiredis_connect($host))
        printf("[001] Cannot connect to the server using host=%s\n",
                $host);

phpiredis_command($link, 'DEL test');
phpiredis_command($link, 'SET test 1');
var_dump(phpiredis_command($link, 'GET test'));
?>
--EXPECTF--
string(1) "1"


text:
class incoherentVMCrossSection : public photonNucleusCrossSection {

public:

	incoherentVMCrossSection(const inputParameters& input, const beamBeamSystem& bbsystem);
	~incoherentVMCrossSection();

	void crossSectionCalculation(const double bwnormsave);

private:

	double _Ep;
	double _gamma1;
	double _gamma2;
	double _narrowYmax;
	double _narrowYmin;
	int    _narrowNumY;

};

#endif  // INCOHERENTVMCROSSSECTION_H


text:
package leap.orm.query;

import leap.core.exception.TooManyRecordsException;
import leap.core.jdbc.ResultSetReader;
import leap.core.jdbc.SimpleScalarReader;
import leap.core.jdbc.SimpleScalarsReader;
import leap.core.value.Scalar;
import leap.core.value.Scalars;
import leap.orm.dao.Dao;
import leap.orm.mapping.EntityMapping;
import leap.orm.reader.ResultSetReaders;
import leap.orm.sql.SqlClause;
import leap.orm.sql.SqlCommand;

import java.util.List;

public class DefaultEntityQuery<T> extends AbstractQuery<T> implements EntityQuery<T> {

	protected final SqlCommand         command;
	protected final Class<? extends T> resultClass;

	public DefaultEntityQuery(Dao dao, EntityMapping em, SqlCommand command, Class<T> targetType) {
		this(dao,em,command,targetType,targetType);
	}

	public DefaultEntityQuery(Dao dao, EntityMapping em, SqlCommand command, Class<T> targetType, Class<? extends T> resultClass) {
	    super(dao, targetType, em);
	    this.command     = command;
	    this.resultClass = resultClass;
    }

	@Override
    public EntityMapping getEntityMapping() {
	    return em;
    }

	@Override
    public long count() {
	    return command.executeCount(this, params());
    }

	@Override
    protected QueryResult<T> executeQuery(QueryContext qc) {
		ResultSetReader<List<T>> reader = ResultSetReaders.forListEntity(dao.getOrmContext(), qc, em, targetType, resultClass);

	    return new DefaultQueryResult<T>(command.toString(),command.executeQuery(qc, params(), reader));
    }

	@Override
	protected <R> R executeQuery(QueryContext context, ResultSetReader<R> reader) {
		return command.executeQuery(context, params(), reader);
	}

	@Override
    protected Scalar executeQueryForScalar(QueryContext context) throws TooManyRecordsException {
	    return command.executeQuery(context, params(), ResultSetReaders.forScalar(context.getOrmContext()));
    }

	@Override
    protected Scalars executeQueryForScalars(QueryContext context) throws TooManyRecordsException {
	    return command.executeQuery(context, params(), ResultSetReaders.forScalars(context.getOrmContext()));
    }

	@Override
	public SqlClause getSqlClause() {
		return command.getSqlClause();
	}
}


text:
/**
 * @file NearExitArrivalTest.cpp
 * @brief Unit tests for NearExitArrival class
 *
 * @author Michael Albers
 */

#include "gtest/gtest.h"
#include "Actor.h"
#include "EigenHelper.h"
#include "Exit.h"
#include "NearExitArrival.h"
#include "FindExitSensor.h"
#include "Sensable.h"
#include "TestUtils.h"

GTEST_TEST(NearExitArrivalTest, class)
{
}


text:
/*
 * File:   sensor-main.c
 * Author: Anton Tachev
 * Description: The main function SM-SPI-STMP02 configurates STPM 34 IC and
 * get energy parameters such as:
 * -Active Energy&Power;
 * -Reactive Energy&Power
 * -Apparent Energy&Power
 * -Fundamental Energy, ph1 Currents&Voltages, ph2 Currents&Voltages
 * Created on:    24.02.2017
 */
/*----------------SPI 2 module identification---------------------------------*/
/* SCK2 - pin2 RE6
 * SDI2 - pin5 RG7
 * SDO2 - pin 6 RG8
 * SCS - pin 9 RG9
 * Enable(EN) - pin 45 RD11
 */

#include <stdio.h>
#include <stdlib.h>
#include <plib.h>
#include <p32xxxx.h>
#include <proc/p32mx795f512h.h>
#include "relay.h"
//#include "STPM-define.h"

/*----------------Function prototypes -----------------------------------------*/

void Init_STPM34(int chnSel,unsigned int port,unsigned int _bits);        //function prototype are defined in STPM34_header.h
void SPI_Init();
void Delay(void);
void ReadFrame(unsigned short address, uint32_t * buffer,int port,int bits);
void SendFrame(char readAdd,char writeAdd, char dataLSB,char dataMSB,int port,int bits);
void FrameDelay(void);
//void GetParams(unsigned int port, unsigned _bits, int *buffer);
void GetParamsEnergyPH1(unsigned int port, unsigned _bits,int *buffer, relay_t activeRelay,int i);
void GetParamsEnergyPH2(unsigned int port, unsigned _bits,int *buffer, relay_t activeRelay,int i);
void GetParamsPowerPH1(unsigned int port, unsigned _bits,int *buffer, relay_t activeRelay,int i);
void GetParamspowerPH2(unsigned int port, unsigned _bits,int *buffer, relay_t activeRelay,int i);
// configuration settings
//#pragma config FPLLMUL = MUL_15,FPLLODIV = DIV_4
#pragma config FPLLMUL = MUL_20, FPLLIDIV = DIV_2, FPLLODIV = DIV_1, FWDTEN = OFF //FPLLMUL = MUL_15=60Mz,FPLLMUL = MUL_20=80Mhz

//#pragma config POSCMOD = XT, FNOSC = PRIPLL, FPBDIV = DIV_1
#pragma config FNOSC=FRCPLL,POSCMOD=OFF,ICESEL=ICS_PGx1,FPBDIV= DIV_4// old 8 - periphelal clock=20Mhz(FPBDIV)
/*-------------Global Variables--------------------------------------*/
int i,j,k;
int delayValue;
int chnSel=6;                           //the number of sensor IC  20/04/2017
int chnNum=6;
unsigned int port;
unsigned int _bits;
static uint32_t *tempbuff;
uint32_t clearBuffer;
int cs;
/*-------------------------------------------------------------------*/
/*----------Energy Parameter's buffers area--------------------------*/
uint32_t buf1[10];              //contains energy params for Channels 1&2
uint32_t buf2[10];              //contains energy params for Channels 3&4
uint32_t buf3[10];              //contains energy params for Channels 5&6
uint32_t buf4[10];              //contains energy params for Channels 7&8
uint32_t buf5[10];              //contains energy params for Channels 9&10
int main()
  {

  /* configure the proper PB frequency and the number of wait states */
   SYSTEMConfigWaitStatesAndPB(80000000L);
   CheKseg0CacheOn();                           // enable the cache for the best performance
   RtccShutdown();                              //enable RC13&RC14 as a I/O
   mT2ClearIntFlag();
 /*---------------------------------------------*/

   SPI_Init();              //initialize SPI INPUT/OUTPUTS

   SelectSPI(1);            // select SPI interface communication/1,2,3,4,5/
   SelectSPI(2);
   SelectSPI(3);
   SelectSPI(4);
   SelectSPI(5);

 //  while(chnNum--)
 //  {
  //     chnSel--;
     Init_STPM34(1,port,_bits);       //initialize  Sensors STPM34 - 3
     Init_STPM34(2,port,_bits);       //initialize  Sensors STPM34 - 2
     Init_STPM34(3,port,_bits);       //initialize  Sensors STPM34 - 3
     Init_STPM34(4,port,_bits);       //initialize  Sensors STPM34 - 4
     Init_STPM34(5,port,_bits);       //initialize  Sensors STPM34 - 5
 //  }

         activeRelayArr[0].relayPort1=IOPORT_F;
         activeRelayArr[0].relayPin1=BIT_1;
         activeRelayArr[0].relayPort2=IOPORT_F;
         activeRelayArr[0].relayPin2=BIT_0;

         activeRelayArr[1].relayPort1=IOPORT_D;
         activeRelayArr[1].relayPin1=BIT_7;
         activeRelayArr[1].relayPort2=IOPORT_D;
         activeRelayArr[1].relayPin2=BIT_6;

         activeRelayArr[2].relayPort1=IOPORT_D;
         activeRelayArr[2].relayPin1=BIT_5;
         activeRelayArr[2].relayPort2=IOPORT_D;
         activeRelayArr[2].relayPin2=BIT_4;

         activeRelayArr[3].relayPort1=IOPORT_C;
         activeRelayArr[3].relayPin1=BIT_14;
         activeRelayArr[3].relayPort2=IOPORT_C;
         activeRelayArr[3].relayPin2=BIT_13;

         activeRelayArr[4].relayPort1=IOPORT_B;
         activeRelayArr[4].relayPin1=BIT_8;
         activeRelayArr[4].relayPort2=IOPORT_B;
         activeRelayArr[4].relayPin2=BIT_7;

   while(1)
   {
       /*
       _bits=BIT_9;                         //CS1 active
       port=IOPORT_G;                       //IOPORT_G=0x05
       i=0;
       GetParamsEnergyPH1(port,_bits,buf1, activeRelayArr[0],i);         // select params from Chn1$2
       GetParamsEnergyPH2(port,_bits,buf1, activeRelayArr[0],i);

       _bits=BIT_5;                         //CS2 active
       port=IOPORT_B;
       i=1;
       GetParamsEnergyPH1(port,_bits,buf1, activeRelayArr[0],i);         // select params from Chn3$4
       GetParamsEnergyPH2(port,_bits,buf1, activeRelayArr[0],i);

       _bits=BIT_4;                                     //CS3 active
       port=IOPORT_B;
       i=2;
       GetParamsEnergyPH1(port,_bits,buf1, activeRelayArr[0],i);         // select params from Chn5$6
       GetParamsEnergyPH2(port,_bits,buf1, activeRelayArr[0],i);
     */
       SelectSPI(4);
       _bits=BIT_2;                                 //CS4 active
       port=IOPORT_B;
       i=0;
       GetParamsEnergyPH1(port,_bits,buf1, activeRelayArr[0],i);         // select params from Chn7$8
     //  GetParamsEnergyPH2(port,_bits,buf1, activeRelayArr[0],i);

      SelectSPI(5);
     _bits=BIT_3;                                  //CS5 active
      port=IOPORT_B;
      i=1;
      GetParamsEnergyPH1(port,_bits,buf1, activeRelayArr[0],i);         // select params from Chn9$10
    //  GetParamsEnergyPH2(port,_bits,buf1, activeRelayArr[0],i);

   }
}


text:
namespace ClipboardTranslator
{
	partial class MainWindow
	{
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Windows 窗体设计器生成的代码

		/// <summary>
		/// 设计器支持所需的方法 - 不要
		/// 使用代码编辑器修改此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
			this.mainNotifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
			this.notifyIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
			this.menuConfig = new System.Windows.Forms.ToolStripMenuItem();
			this.menuQuit = new System.Windows.Forms.ToolStripMenuItem();
			this.result = new System.Windows.Forms.Label();
			this.menuShowHide = new System.Windows.Forms.ToolStripMenuItem();
			this.notifyIconMenu.SuspendLayout();
			this.SuspendLayout();
			//
			// mainNotifyIcon
			//
			this.mainNotifyIcon.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
			this.mainNotifyIcon.BalloonTipText = "AAA";
			this.mainNotifyIcon.BalloonTipTitle = "BBB";
			this.mainNotifyIcon.ContextMenuStrip = this.notifyIconMenu;
			this.mainNotifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("mainNotifyIcon.Icon")));
			this.mainNotifyIcon.Text = "Dict.CN";
			this.mainNotifyIcon.Visible = true;
			//
			// notifyIconMenu
			//
			this.notifyIconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.menuConfig,
            this.menuShowHide,
            this.menuQuit});
			this.notifyIconMenu.Name = "notifyIconMenu";
			this.notifyIconMenu.ShowImageMargin = false;
			this.notifyIconMenu.Size = new System.Drawing.Size(118, 70);
			//
			// menuConfig
			//
			this.menuConfig.Name = "menuConfig";
			this.menuConfig.Size = new System.Drawing.Size(117, 22);
			this.menuConfig.Text = "Configure...";
			this.menuConfig.Click += new System.EventHandler(this.onOpenConfig);
			//
			// menuQuit
			//
			this.menuQuit.Name = "menuQuit";
			this.menuQuit.Size = new System.Drawing.Size(117, 22);
			this.menuQuit.Text = "Quit";
			this.menuQuit.Click += new System.EventHandler(this.menuQuit_Click);
			//
			// result
			//
			this.result.AutoSize = true;
			this.result.Location = new System.Drawing.Point(0, 0);
			this.result.Name = "result";
			this.result.Size = new System.Drawing.Size(47, 12);
			this.result.TabIndex = 2;
			this.result.Text = "Dict.CN";
			this.result.MouseDown += new System.Windows.Forms.MouseEventHandler(this.MainWindow_MouseDown);
			this.result.MouseUp += new System.Windows.Forms.MouseEventHandler(this.MainWindow_MouseUp);
			//
			// menuShowHide
			//
			this.menuShowHide.Name = "menuShowHide";
			this.menuShowHide.Size = new System.Drawing.Size(117, 22);
			this.menuShowHide.Text = "Hide";
			this.menuShowHide.Click += new System.EventHandler(this.menuShowHide_Click);
			//
			// MainWindow
			//
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.BackColor = System.Drawing.Color.Silver;
			this.ClientSize = new System.Drawing.Size(100, 20);
			this.ContextMenuStrip = this.notifyIconMenu;
			this.ControlBox = false;
			this.Controls.Add(this.result);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.MinimumSize = new System.Drawing.Size(100, 20);
			this.Name = "MainWindow";
			this.Opacity = 0.9D;
			this.ShowIcon = false;
			this.ShowInTaskbar = false;
			this.Text = "Dict.CN";
			this.TopMost = true;
			this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainWindow_FormClosed);
			this.Load += new System.EventHandler(this.MainWindow_Load);
			this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.MainWindow_MouseDown);
			this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.MainWindow_MouseUp);
			this.notifyIconMenu.ResumeLayout(false);
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.NotifyIcon mainNotifyIcon;
		private System.Windows.Forms.ContextMenuStrip notifyIconMenu;
		private System.Windows.Forms.ToolStripMenuItem menuQuit;
		private System.Windows.Forms.Label result;
		private System.Windows.Forms.ToolStripMenuItem menuConfig;
		private System.Windows.Forms.ToolStripMenuItem menuShowHide;
	}
}


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

namespace Poseidon.Caller.WinformCaller
{
    using Poseidon.Base.Framework;
    using Poseidon.Caller.Facade;
    using Poseidon.Core.BL;
    using Poseidon.Core.DL;

    /// <summary>
    /// 组织业务访问服务类
    /// </summary>
    internal class OrganizationService : AbstractLocalService<Organization>, IOrganizationService
    {
        #region Field
        /// <summary>
        /// 业务类对象
        /// </summary>
        private OrganizationBusiness bl = null;
        #endregion //Field

        #region Constructor
        /// <summary>
        /// 组织业务访问服务类
        /// </summary>
        public OrganizationService() : base(BusinessFactory<OrganizationBusiness>.Instance)
        {
            this.bl = this.baseBL as OrganizationBusiness;
        }
        #endregion //Constructor

        #region Method
        /// <summary>
        /// 根据模型类型查找组织
        /// </summary>
        /// <param name="modelType">模型类型</param>
        /// <returns></returns>
        public IEnumerable<Organization> FindByModelType(string modelType)
        {
            return this.bl.FindByModelType(modelType);
        }

        /// <summary>
        /// 根据ID查找组织
        /// </summary>
        /// <param name="organizationIds">组织ID列表</param>
        /// <returns></returns>
        public IEnumerable<Organization> FindWithIds(List<string> organizationIds)
        {
            return this.bl.FindWithIds(organizationIds);
        }
        #endregion //Method
    }
}