text:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JumpCarGUI.java
 *
 * Created on Feb 6, 2010, 9:47:10 PM
 */

package nbeckman.jumpcar;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
import java.util.List;
import java.util.Vector;

/**
 * The GUI panel for the application. This code was created in netbeans, and was
 * auto-generated.
 *
 * @author Nels E. Beckman
 */
public final class JumpCarGUI extends javax.swing.JPanel {

	private static final long serialVersionUID = -3048443314609712421L;

	private final List<Car> cars;

	/** Creates new form JumpCarGUI */
    public JumpCarGUI(List<Car> cars) {
    	this.cars = cars;
    	initComponents();
    	entryWasSelected((Car)jComboBox1.getSelectedItem());
    }

    private static DecimalFormat df = new DecimalFormat("#.##");

    private void entryWasSelected(Car car) {
    	makeLabel.setText(car.getMake());
    	modelLabel.setText(car.getModel());
    	yearLabel.setText(car.getYear());
    	speedLabel.setText(car.getSpeed().toString());
    	lengthLabel.setText(df.format(car.getLengthInFeet()) + " ft");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        makeLabel = new javax.swing.JLabel();
        modelLabel = new javax.swing.JLabel();
        yearLabel = new javax.swing.JLabel();
        speedLabel = new javax.swing.JLabel();
        lengthLabel = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        inputHeightField = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        responseLabel = new javax.swing.JLabel();
        outputSpeedLabel = new javax.swing.JLabel();
        outputSpeed = new javax.swing.JLabel();
        outputSpeedLabel2 = new javax.swing.JLabel();
        outputJumpLabel = new javax.swing.JLabel();
        outputJump = new javax.swing.JLabel();
        outputJumpLabel2 = new javax.swing.JLabel();

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Car"));

        Vector<Car> vec_car = new Vector<Car>(cars);
        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(vec_car));
        jComboBox1.setToolTipText("Select a car to jump over.");

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel1.setText("Make:");

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel2.setText("Model:");

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel3.setText("Year:");

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel4.setText("Top Speed:");

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel5.setText("Length:");

        makeLabel.setText("");

        modelLabel.setText("");

        yearLabel.setText("");

        speedLabel.setText("");

        lengthLabel.setText("");

        jComboBox1.addActionListener(new ActionListener(){

			@Override
			public void actionPerformed(ActionEvent arg0) {
				entryWasSelected((Car)jComboBox1.getSelectedItem());
			}});

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel3)
                            .addComponent(jLabel4)
                            .addComponent(jLabel2)
                            .addComponent(jLabel1)
                            .addComponent(jLabel5))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lengthLabel)
                            .addComponent(speedLabel)
                            .addComponent(yearLabel)
                            .addComponent(modelLabel)
                            .addComponent(makeLabel)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addGap(76, 76, 76)
                        .addComponent(jComboBox1, 0, 378, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(makeLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(modelLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(yearLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(speedLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(lengthLabel))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("You"));

        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel6.setText("How high can you jump?");

        inputHeightField.setText("  36");
        inputHeightField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });

        jLabel12.setText("inches");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel6)
                .addGap(10, 10, 10)
                .addComponent(inputHeightField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel12)
                .addContainerGap(215, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inputHeightField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6)
                    .addComponent(jLabel12))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Results"));

        jButton1.setText("Tell me!");

        responseLabel.setText("...");

        outputSpeedLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        outputSpeedLabel.setText("Tell your friend to drive:");
        outputSpeedLabel.setVisible(false);

        outputSpeed.setText("");
        outputSpeed.setVisible(false);

        outputSpeedLabel2.setText("mph");
        outputSpeedLabel2.setVisible(false);

        outputJumpLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        outputJumpLabel.setText("And then jump:");
        outputJumpLabel.setVisible(false);

        outputJump.setText("");
        outputJump.setVisible(false);

        outputJumpLabel2.setText("feet in front of the car");
        outputJumpLabel2.setVisible(false);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jButton1)
                        .addGap(18, 18, 18)
                        .addComponent(responseLabel))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(outputJumpLabel)
                            .addComponent(outputSpeedLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(outputSpeed)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(outputSpeedLabel2))
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(outputJump)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(outputJumpLabel2)))))
                .addContainerGap(159, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(responseLabel))
                .addGap(18, 18, 18)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(outputSpeedLabel)
                    .addComponent(outputSpeed)
                    .addComponent(outputSpeedLabel2))
                .addGap(18, 18, 18)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(outputJumpLabel)
                    .addComponent(outputJump)
                    .addComponent(outputJumpLabel2))
                .addContainerGap(54, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel speedLabel;
    private javax.swing.JLabel lengthLabel;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel responseLabel;
    private javax.swing.JLabel outputSpeedLabel;
    private javax.swing.JLabel outputSpeed;
    private javax.swing.JLabel outputSpeedLabel2;
    private javax.swing.JLabel outputJumpLabel;
    private javax.swing.JLabel outputJump;
    private javax.swing.JLabel outputJumpLabel2;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel makeLabel;
    private javax.swing.JLabel modelLabel;
    private javax.swing.JLabel yearLabel;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JTextField inputHeightField;
    // End of variables declaration

}


text:
const fs = require('fs');

module.exports = {
    parseVersion : parseVersion
};

const parseString = require('xml2js').parseString;
// return the version number from `pom.xml` file
function parseVersion() {
    let version = null;
    const pomXml = fs.readFileSync('pom.xml', 'utf8');
    parseString(pomXml, (err, result) => {
        if (result.project.version && result.project.version[0]) {
            version = result.project.version[0];
        } else if (result.project.parent && result.project.parent[0] && result.project.parent[0].version && result.project.parent[0].version[0]) {
            version = result.project.parent[0].version[0];
        }
    });
    if (version === null) {
        throw new Error('pom.xml is malformed. No version is defined');
    }
    return version;
}

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE html>

    <meta charset="utf-8" />
    <title>Simple Blog System Project</title>
	<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />

Welcome to the Simple Blog System.

This project was created as part of the ASP Web Forms Course @ Telerik Academy 2015 - 2016

The system consists of:

Sample pages showing basic nav between Home, About, and Contact.

Theming using Bootstrap

Authentication, if selected, shows how to register and sign in

ASP.NET features managed using NuGet

Customize app

Get started with ASP.NET Web Forms

Change the site's theme

Add more libraries using NuGet

Configure authentication

Customize information about the website users

Get information from social providers

Add HTTP services using ASP.NET Web API

Secure the Web API

Add real-time web with ASP.NET SignalR

Add components using Scaffolding

Test app with Browser Link

Share your project

© Telerik Academy 2016


text:
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.
// ----------------------------------------------------------------------------------

using System.Collections.Generic;
using Microsoft.Azure.Commands.Insights.Autoscale;
using Microsoft.Azure.Management.Monitor;
using Microsoft.Azure.Management.Monitor.Models;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Azure.OData;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Moq;
using System;
using System.Management.Automation;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Microsoft.Azure.Commands.ScenarioTest;

namespace Microsoft.Azure.Commands.Insights.Test.Autoscale
{
    public class GetAzureRmAutoscaleHistoryTests
    {
        private readonly GetAzureRmAutoscaleHistoryCommand cmdlet;
        private readonly Mock<MonitorClient> MonitorClientMock;
        private readonly Mock<IActivityLogsOperations> insightsEventOperationsMock;
        private Mock<ICommandRuntime> commandRuntimeMock;
        private AzureOperationResponse<IPage<EventData>> response;
        private AzureOperationResponse<IPage<EventData>> finalResponse;
        private ODataQuery<EventData> filter;
        private string selected;
        private string nextLink;

        public GetAzureRmAutoscaleHistoryTests(Xunit.Abstractions.ITestOutputHelper output)
        {
            ServiceManagemenet.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagemenet.Common.Models.XunitTracingInterceptor(output));
            TestExecutionHelpers.SetUpSessionAndProfile();
            insightsEventOperationsMock = new Mock<IActivityLogsOperations>();
            MonitorClientMock = new Mock<MonitorClient>();
            commandRuntimeMock = new Mock<ICommandRuntime>();
            cmdlet = new GetAzureRmAutoscaleHistoryCommand()
            {
                CommandRuntime = commandRuntimeMock.Object,
                MonitorClient = MonitorClientMock.Object
            };

            response = Test.Utilities.InitializeResponse();
            finalResponse = Utilities.InitializeFinalResponse();

            insightsEventOperationsMock.Setup(f => f.ListWithHttpMessagesAsync(It.IsAny<ODataQuery<EventData>>(), It.IsAny<string>(), It.IsAny<Dictionary<string, List<string>>>(), It.IsAny<CancellationToken>()))
                .Returns(Task.FromResult<AzureOperationResponse<IPage<EventData>>>(response))
                .Callback((ODataQuery<EventData> f, string s, Dictionary<string, List<string>> headers, CancellationToken t) =>
                {
                    filter = f;
                    selected = s;
                });

            insightsEventOperationsMock.Setup(f => f.ListNextWithHttpMessagesAsync(It.IsAny<string>(), It.IsAny<Dictionary<string, List<string>>>(), It.IsAny<CancellationToken>()))
                .Returns(Task.FromResult<AzureOperationResponse<IPage<EventData>>>(finalResponse))
                .Callback((string next, Dictionary<string, List<string>> headers, CancellationToken t) =>
                {
                    nextLink = next;
                });

            MonitorClientMock.SetupGet(f => f.ActivityLogs).Returns(this.insightsEventOperationsMock.Object);
        }

        [Fact]
        [Trait(Category.AcceptanceType, Category.CheckIn)]
        public void GetAutoscaleHistoryCommandParametersProcessing()
        {
            var startDate = DateTime.Now.AddSeconds(-1);

            Test.Utilities.ExecuteVerifications(
                cmdlet: cmdlet,
                insinsightsEventOperationsMockightsClientMock: this.insightsEventOperationsMock,
                requiredFieldName: "resourceType",
                requiredFieldValue: GetAzureRmAutoscaleHistoryCommand.AutoscaleResourceType,
                filter: ref this.filter,
                startDate: startDate,
                nextLink: ref this.nextLink);
        }
    }
}


text:
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.
// ----------------------------------------------------------------------------------

using System.Management.Automation;
using Microsoft.Azure.Commands.KeyVault.Models;
using Microsoft.Azure.KeyVault.Models;

namespace Microsoft.Azure.Commands.KeyVault
{
    [Cmdlet("Undo", ResourceManager.Common.AzureRMConstants.AzurePrefix + "KeyVaultCertificateRemoval",SupportsShouldProcess = true,DefaultParameterSetName = DefaultParameterSet)]
    [OutputType(typeof(PSKeyVaultCertificate))]
    public class UndoAzureKeyVaultCertificateRemoval : KeyVaultCmdletBase
    {
        #region Parameter Set Names

        private const string DefaultParameterSet = "Default";
        private const string InputObjectParameterSet = "InputObject";

        #endregion

        #region Input Parameter Definitions

        /// <summary>
        /// Vault name
        /// </summary>
        [Parameter( Mandatory = true,
            Position = 0,
            ParameterSetName = DefaultParameterSet,
            HelpMessage = "Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment." )]
        [ValidateNotNullOrEmpty]
        public string VaultName { get; set; }

        /// <summary>
        /// Secret name
        /// </summary>
        [Parameter( Mandatory = true,
            Position = 1,
            ParameterSetName = DefaultParameterSet,
            HelpMessage = "Certificate name. Cmdlet constructs the FQDN of a certificate from vault name, currently selected environment and certificate name." )]
        [ValidateNotNullOrEmpty]
        [Alias( Constants.CertificateName )]
        public string Name { get; set; }

        /// <summary>
        /// Certificate object
        /// </summary>
        [Parameter(Mandatory = true,
                   Position = 0,
                   ParameterSetName = InputObjectParameterSet,
                   ValueFromPipeline = true,
                   HelpMessage = "Deleted Certificate object")]
        [ValidateNotNullOrEmpty]
        public PSDeletedKeyVaultCertificateIdentityItem InputObject { get; set; }

        #endregion

        public override void ExecuteCmdlet()
        {
            if (InputObject != null)
            {
                VaultName = InputObject.VaultName;
                Name = InputObject.Name;
            }

            if ( ShouldProcess( Name, Properties.Resources.RecoverCertificate ) )
            {
                PSKeyVaultCertificate certificate = DataServiceClient.RecoverCertificate(VaultName, Name);
                WriteObject( certificate );
            }
        }
    }
}


text:
package com.amazonaws.services.simpleemail.model.transform;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.amazonaws.AmazonClientException;
import com.amazonaws.Request;
import com.amazonaws.DefaultRequest;
import com.amazonaws.internal.ListWithAutoConstructFlag;
import com.amazonaws.services.simpleemail.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazonaws.util.StringUtils;

/**
 * Set Receipt Rule Position Request Marshaller
 */
public class SetReceiptRulePositionRequestMarshaller implements Marshaller<Request<SetReceiptRulePositionRequest>, SetReceiptRulePositionRequest> {

    public Request<SetReceiptRulePositionRequest> marshall(SetReceiptRulePositionRequest setReceiptRulePositionRequest) {

        if (setReceiptRulePositionRequest == null) {
            throw new AmazonClientException("Invalid argument passed to marshall(...)");
        }

        Request<SetReceiptRulePositionRequest> request = new DefaultRequest<SetReceiptRulePositionRequest>(setReceiptRulePositionRequest, "AmazonSimpleEmailService");
        request.addParameter("Action", "SetReceiptRulePosition");
        request.addParameter("Version", "2010-12-01");

        if (setReceiptRulePositionRequest.getRuleSetName() != null) {
            request.addParameter("RuleSetName", StringUtils.fromString(setReceiptRulePositionRequest.getRuleSetName()));
        }
        if (setReceiptRulePositionRequest.getRuleName() != null) {
            request.addParameter("RuleName", StringUtils.fromString(setReceiptRulePositionRequest.getRuleName()));
        }
        if (setReceiptRulePositionRequest.getAfter() != null) {
            request.addParameter("After", StringUtils.fromString(setReceiptRulePositionRequest.getAfter()));
        }

        return request;
    }
}


text:
module.exports = function (grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        concat: {
            css: {
                src: [
                    'bower_components/bootstrap/dist/css/bootstrap.css',
                    //'public/css/bootswatch.slate.bootstrap.css',
                    'bower_components/fontawesome/css/font-awesome.css',
                    'bower_components/dropzone/downloads/css/dropzone.css',
                    'bower_components/rainbow/themes/github.css',
                    'bower_components/codemirror/lib/codemirror.css',
                    'public/css/styles.css'
                ],
                dest: 'dist/css/styles.css'
            },
            js: {
                src: [
                    'bower_components/jquery/dist/jquery.js',
                    'bower_components/setimmediate2/setimmediate.js',
                    'bower_components/jquery-form/jquery.form.js',
                    'bower_components/bootstrap/dist/js/bootstrap.js',
                    'bower_components/dropzone/downloads/dropzone.js',
                    'bower_components/rainbow/js/rainbow.js',
                    'bower_components/rainbow/js/language/generic.js',
                    'bower_components/rainbow/js/language/javascript.js',
                    'bower_components/codemirror/lib/codemirror.js',
                    'bower_components/codemirror/mode/javascript/javascript.js',
                    'public/js/page.js',
                    'public/js/lazyimages.js'
                ],
                dest: 'dist/js/scripts.js'
            }
        },
        cssmin: {
            css: {
                files: {
                    'dist/css/styles.min.css': 'dist/css/styles.css'
                }
            }
        },
        uglify: {
            js: {
                options: {
                    sourceMap: true
                },
                files: {
                    'dist/js/scripts.min.js': 'dist/js/scripts.js'
                }
            }
        },
        copy: {
            images: {
                expand: true,
                filter: 'isFile',
                cwd: 'public/images/',
                src: '*',
                dest: 'dist/images/'
            },
            bootstrapfonts: {
                expand: true,
                filter: 'isFile',
                cwd: 'bower_components/bootstrap/dist/fonts/',
                src: '*',
                dest: 'dist/fonts/'
            },
            fontawesomefonts: {
                expand: true,
                filter: 'isFile',
                cwd: 'bower_components/fontawesome/fonts/',
                src: '*',
                dest: 'dist/fonts/'
            },
            dropzoneimages: {
                expand: true,
                filter: 'isFile',
                cwd: 'bower_components/dropzone/downloads/images/',
                src: '*',
                dest: 'dist/images/'
            }
        }
    });

    require('load-grunt-tasks')(grunt);
    grunt.registerTask('default', [
                    'concat:css',
                    'concat:js',
                    'cssmin:css',
                    'uglify:js',
                    'copy:images',
                    'copy:bootstrapfonts',
                    'copy:fontawesomefonts',
                    'copy:dropzoneimages']);
};


text:
<?php

namespace Icewind\SMB\Native;

use Icewind\SMB\AbstractServer;
use Icewind\SMB\Exception\AuthenticationException;
use Icewind\SMB\Exception\InvalidHostException;
use Icewind\SMB\IAuth;
use Icewind\SMB\IOptions;
use Icewind\SMB\IShare;
use Icewind\SMB\ISystem;
use Icewind\SMB\ITimeZoneProvider;

class NativeServer extends AbstractServer {
	/**
	 * @var NativeState
	 */
	protected $state;

	public function __construct(string $host, IAuth $auth, ISystem $system, ITimeZoneProvider $timeZoneProvider, IOptions $options) {
		parent::__construct($host, $auth, $system, $timeZoneProvider, $options);
		$this->state = new NativeState();
	}

	protected function connect(): void {
		$this->state->init($this->getAuth(), $this->getOptions());
	}

	/**
	 * @return IShare[]
	 * @throws AuthenticationException
	 * @throws InvalidHostException
	 */
	public function listShares(): array {
		$this->connect();
		$shares = [];
		$dh = $this->state->opendir('smb://' . $this->getHost());
		while ($share = $this->state->readdir($dh, '')) {
			if ($share['type'] === 'file share') {
				$shares[] = $this->getShare($share['name']);
			}
		}
		$this->state->closedir($dh, '');
		return $shares;
	}

	public function getShare(string $name): IShare {
		return new NativeShare($this, $name);
	}

	/**
	 * Check if the smbclient php extension is available
	 *
	 * @param ISystem $system
	 * @return bool
	 */
	public static function available(ISystem $system): bool {
		return $system->libSmbclientAvailable();
	}
}


text:
package org.apache.beam.sdk.transforms;

import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkNotNull;
import static org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkState;

import org.apache.beam.sdk.annotations.Experimental;
import org.apache.beam.sdk.annotations.Experimental.Kind;
import org.apache.beam.sdk.transforms.Contextful.Fn;
import org.apache.beam.sdk.transforms.WithFailures.ExceptionElement;
import org.apache.beam.sdk.transforms.display.DisplayData;
import org.apache.beam.sdk.transforms.display.HasDisplayData;
import org.apache.beam.sdk.values.PCollection;
import org.apache.beam.sdk.values.PCollectionTuple;
import org.apache.beam.sdk.values.TupleTag;
import org.apache.beam.sdk.values.TupleTagList;
import org.apache.beam.sdk.values.TypeDescriptor;
import org.apache.beam.sdk.values.TypeDescriptors;
import org.checkerframework.checker.nullness.qual.Nullable;

/** {@code PTransform}s for mapping a simple function over the elements of a {@link PCollection}. */
@SuppressWarnings({
  "nullness" // TODO(https://github.com/apache/beam/issues/20497)
})
public class MapElements<InputT, OutputT>
    extends PTransform<PCollection<? extends InputT>, PCollection<OutputT>> {
  private final transient @Nullable TypeDescriptor<InputT> inputType;
  private final transient @Nullable TypeDescriptor<OutputT> outputType;
  private final transient @Nullable Object originalFnForDisplayData;
  private final @Nullable Contextful<Fn<InputT, OutputT>> fn;

  private MapElements(
      @Nullable Contextful<Fn<InputT, OutputT>> fn,
      @Nullable Object originalFnForDisplayData,
      @Nullable TypeDescriptor<InputT> inputType,
      TypeDescriptor<OutputT> outputType) {
    this.fn = fn;
    this.originalFnForDisplayData = originalFnForDisplayData;
    this.inputType = inputType;
    this.outputType = outputType;
  }

  /**
   * For {@code InferableFunction<InputT, OutputT>} {@code fn}, returns a {@code PTransform} that
   * takes an input {@code PCollection<InputT>} and returns a {@code PCollection<OutputT>}
   * containing {@code fn.apply(v)} for every element {@code v} in the input.
   *
   *
{@link InferableFunction} has the advantage of providing type descriptor information, but it
   * is generally more convenient to specify output type via {@link #into(TypeDescriptor)}, and
   * provide the mapping as a lambda expression to {@link #via(ProcessFunction)}.
   *
   *
Example usage:
   *
   *
{@code
   * PCollection<String> words = ...;
   * PCollection<Integer> wordsPerLine = words.apply(MapElements.via(
   *     new InferableFunction<String, Integer>() {
   *       public Integer apply(String word) throws Exception {
   *         return word.length();
   *       }
   *     }));
   * }

   */
  public static <InputT, OutputT> MapElements<InputT, OutputT> via(
      final InferableFunction<InputT, OutputT> fn) {
    return new MapElements<>(
        Contextful.fn(fn), fn, fn.getInputTypeDescriptor(), fn.getOutputTypeDescriptor());
  }

  /** Binary compatibility adapter for {@link #via(InferableFunction)}. */
  public static <InputT, OutputT> MapElements<InputT, OutputT> via(
      final SimpleFunction<InputT, OutputT> fn) {
    return via((InferableFunction<InputT, OutputT>) fn);
  }

  /**
   * Returns a new {@link MapElements} transform with the given type descriptor for the output type,
   * but the mapping function yet to be specified using {@link #via(ProcessFunction)}.
   */
  public static <OutputT> MapElements<?, OutputT> into(final TypeDescriptor<OutputT> outputType) {
    return new MapElements<>(null, null, null, outputType);
  }

  /**
   * For a {@code ProcessFunction<InputT, OutputT>} {@code fn} and output type descriptor, returns a
   * {@code PTransform} that takes an input {@code PCollection<InputT>} and returns a {@code
   * PCollection<OutputT>} containing {@code fn.apply(v)} for every element {@code v} in the input.
   *
   *
Example usage:
   *
   *
{@code
   * PCollection<Integer> wordLengths = words.apply(
   *     MapElements.into(TypeDescriptors.integers())
   *                .via((String word) -> word.length()));
   * }

   */
  public <NewInputT> MapElements<NewInputT, OutputT> via(ProcessFunction<NewInputT, OutputT> fn) {
    return new MapElements<>(Contextful.fn(fn), fn, TypeDescriptors.inputOf(fn), outputType);
  }

  /** Binary compatibility adapter for {@link #via(ProcessFunction)}. */
  public <NewInputT> MapElements<NewInputT, OutputT> via(
      SerializableFunction<NewInputT, OutputT> fn) {
    return via((ProcessFunction<NewInputT, OutputT>) fn);
  }

  /** Like {@link #via(ProcessFunction)}, but supports access to context, such as side inputs. */
  @Experimental(Kind.CONTEXTFUL)
  public <NewInputT> MapElements<NewInputT, OutputT> via(Contextful<Fn<NewInputT, OutputT>> fn) {
    return new MapElements<>(
        fn, fn.getClosure(), TypeDescriptors.inputOf(fn.getClosure()), outputType);
  }

  @Override
  public PCollection<OutputT> expand(PCollection<? extends InputT> input) {
    checkNotNull(fn, "Must specify a function on MapElements using .via()");
    return input.apply(
        "Map",
        ParDo.of(
                new DoFn<InputT, OutputT>() {
                  @ProcessElement
                  public void processElement(
                      @Element InputT element, OutputReceiver<OutputT> receiver, ProcessContext c)
                      throws Exception {
                    receiver.output(
                        fn.getClosure().apply(element, Fn.Context.wrapProcessContext(c)));
                  }

                  @Override
                  public void populateDisplayData(DisplayData.Builder builder) {
                    builder.delegate(MapElements.this);
                  }

                  @Override
                  public TypeDescriptor<InputT> getInputTypeDescriptor() {
                    return inputType;
                  }

                  @Override
                  public TypeDescriptor<OutputT> getOutputTypeDescriptor() {
                    checkState(
                        outputType != null,
                        "%s output type descriptor was null; "
                            + "this probably means that getOutputTypeDescriptor() was called after "
                            + "serialization/deserialization, but it is only available prior to "
                            + "serialization, for constructing a pipeline and inferring coders",
                        MapElements.class.getSimpleName());
                    return outputType;
                  }
                })
            .withSideInputs(fn.getRequirements().getSideInputs()));
  }

  @Override
  public void populateDisplayData(DisplayData.Builder builder) {
    super.populateDisplayData(builder);
    builder.add(DisplayData.item("class", originalFnForDisplayData.getClass()));
    if (originalFnForDisplayData instanceof HasDisplayData) {
      builder.include("fn", (HasDisplayData) originalFnForDisplayData);
    }
  }

  /**
   * Returns a new {@link MapWithFailures} transform that catches exceptions raised while mapping
   * elements, with the given type descriptor used for the failure collection but the exception
   * handler yet to be specified using {@link MapWithFailures#exceptionsVia(ProcessFunction)}.
   *
   *
See {@link WithFailures} documentation for usage patterns of the returned {@link
   * WithFailures.Result}.
   */
  @Experimental(Kind.WITH_EXCEPTIONS)
  public <NewFailureT> MapWithFailures<InputT, OutputT, NewFailureT> exceptionsInto(
      TypeDescriptor<NewFailureT> failureTypeDescriptor) {
    return new MapWithFailures<>(
        fn, originalFnForDisplayData, inputType, outputType, null, failureTypeDescriptor);
  }

  /**
   * Returns a new {@link MapWithFailures} transform that catches exceptions raised while mapping
   * elements, passing the raised exception instance and the input element being processed through
   * the given {@code exceptionHandler} and emitting the result to a failure collection.
   *
   *
This method takes advantage of the type information provided by {@link InferableFunction},
   * meaning that a call to {@link #exceptionsInto(TypeDescriptor)} may not be necessary.
   *
   *
See {@link WithFailures} documentation for usage patterns of the returned {@link
   * WithFailures.Result}.
   *
   *
Example usage:
   *
   *
{@code
   * Result<PCollection<String>, String>> result = words.apply(
   *     MapElements
   *         .into(TypeDescriptors.integers())
   *         .via((String word) -> 1 / word.length)  // Could throw ArithmeticException
   *         .exceptionsVia(new WithFailures.ExceptionAsMapHandler<String>() {}));
   * PCollection<Integer> output = result.output();
   * PCollection<String> failures = result.failures();
   * }

   */
  @Experimental(Kind.WITH_EXCEPTIONS)
  public <FailureT> MapWithFailures<InputT, OutputT, FailureT> exceptionsVia(
      InferableFunction<ExceptionElement<InputT>, FailureT> exceptionHandler) {
    return new MapWithFailures<>(
        fn,
        originalFnForDisplayData,
        inputType,
        outputType,
        exceptionHandler,
        exceptionHandler.getOutputTypeDescriptor());
  }

  /** A {@code PTransform} that adds exception handling to {@link MapElements}. */
  @Experimental(Kind.WITH_EXCEPTIONS)
  public static class MapWithFailures<InputT, OutputT, FailureT>
      extends PTransform<PCollection<InputT>, WithFailures.Result<PCollection<OutputT>, FailureT>> {

    private final transient TypeDescriptor<InputT> inputType;
    private final transient TypeDescriptor<OutputT> outputType;
    private final transient @Nullable TypeDescriptor<FailureT> failureType;
    private final transient Object originalFnForDisplayData;
    private final Contextful<Fn<InputT, OutputT>> fn;
    private final @Nullable ProcessFunction<ExceptionElement<InputT>, FailureT> exceptionHandler;

    MapWithFailures(
        Contextful<Fn<InputT, OutputT>> fn,
        Object originalFnForDisplayData,
        TypeDescriptor<InputT> inputType,
        TypeDescriptor<OutputT> outputType,
        @Nullable ProcessFunction<ExceptionElement<InputT>, FailureT> exceptionHandler,
        @Nullable TypeDescriptor<FailureT> failureType) {
      this.fn = fn;
      this.originalFnForDisplayData = originalFnForDisplayData;
      this.inputType = inputType;
      this.outputType = outputType;
      this.exceptionHandler = exceptionHandler;
      this.failureType = failureType;
    }

    /**
     * Returns a {@code PTransform} that catches exceptions raised while mapping elements, passing
     * the raised exception instance and the input element being processed through the given {@code
     * exceptionHandler} and emitting the result to a failure collection.
     *
     *
Example usage:
     *
     *
{@code
     * Result<PCollection<Integer>, String> result = words.apply(
     *     MapElements
     *         .into(TypeDescriptors.integers())
     *         .via((String word) -> 1 / word.length())  // Could throw ArithmeticException
     *         .exceptionsInto(TypeDescriptors.strings())
     *         .exceptionsVia((ExceptionElement<String> ee) -> ee.exception().getMessage()));
     * PCollection<Integer> output = result.output();
     * PCollection<String> failures = result.failures();
     * }

     */
    public MapWithFailures<InputT, OutputT, FailureT> exceptionsVia(
        ProcessFunction<ExceptionElement<InputT>, FailureT> exceptionHandler) {
      return new MapWithFailures<>(
          fn, originalFnForDisplayData, inputType, outputType, exceptionHandler, failureType);
    }

    @Override
    public WithFailures.Result<PCollection<OutputT>, FailureT> expand(PCollection<InputT> input) {
      checkArgument(exceptionHandler != null, ".exceptionsVia() is required");
      MapFn doFn = new MapFn();
      PCollectionTuple tuple =
          input.apply(
              MapWithFailures.class.getSimpleName(),
              ParDo.of(doFn)
                  .withOutputTags(doFn.outputTag, TupleTagList.of(doFn.failureTag))
                  .withSideInputs(this.fn.getRequirements().getSideInputs()));
      return WithFailures.Result.of(tuple, doFn.outputTag, doFn.failureTag);
    }

    @Override
    public void populateDisplayData(DisplayData.Builder builder) {
      super.populateDisplayData(builder);
      builder.add(DisplayData.item("class", originalFnForDisplayData.getClass()));
      if (originalFnForDisplayData instanceof HasDisplayData) {
        builder.include("fn", (HasDisplayData) originalFnForDisplayData);
      }
      builder.add(DisplayData.item("exceptionHandler.class", exceptionHandler.getClass()));
      if (exceptionHandler instanceof HasDisplayData) {
        builder.include("exceptionHandler", (HasDisplayData) exceptionHandler);
      }
    }

    /** A concrete TupleTag that allows coder inference based on failureType. */
    private class FailureTag extends TupleTag<FailureT> {
      @Override
      public TypeDescriptor<FailureT> getTypeDescriptor() {
        return failureType;
      }
    }

    /** A DoFn implementation that handles exceptions and outputs a secondary failure collection. */
    private class MapFn extends DoFn<InputT, OutputT> {

      final TupleTag<OutputT> outputTag = new TupleTag<OutputT>() {};
      final TupleTag<FailureT> failureTag = new FailureTag();

      @ProcessElement
      public void processElement(@Element InputT element, MultiOutputReceiver r, ProcessContext c)
          throws Exception {
        boolean exceptionWasThrown = false;
        OutputT result = null;
        try {
          result = fn.getClosure().apply(c.element(), Fn.Context.wrapProcessContext(c));
        } catch (Exception e) {
          exceptionWasThrown = true;
          ExceptionElement<InputT> exceptionElement = ExceptionElement.of(element, e);
          r.get(failureTag).output(exceptionHandler.apply(exceptionElement));
        }
        // We make sure our output occurs outside the try block, since runners may implement
        // fusion by having output() directly call the body of another DoFn, potentially catching
        // exceptions unrelated to this transform.
        if (!exceptionWasThrown) {
          r.get(outputTag).output(result);
        }
      }

      @Override
      public void populateDisplayData(DisplayData.Builder builder) {
        builder.delegate(MapWithFailures.this);
      }

      @Override
      public TypeDescriptor<InputT> getInputTypeDescriptor() {
        return inputType;
      }

      @Override
      public TypeDescriptor<OutputT> getOutputTypeDescriptor() {
        checkState(
            outputType != null,
            "%s output type descriptor was null; "
                + "this probably means that getOutputTypeDescriptor() was called after "
                + "serialization/deserialization, but it is only available prior to "
                + "serialization, for constructing a pipeline and inferring coders",
            MapWithFailures.class.getSimpleName());
        return outputType;
      }
    }
  }
}


text:
package com.networknt.eventuate.todolist.command;

import java.util.List;

public class DeleteTodosCommand implements TodoCommand {
    private List<String> ids;

    public DeleteTodosCommand() {
    }

    public DeleteTodosCommand(List<String> ids) {
        this.ids = ids;
    }

    public List<String> getIds() {
        return ids;
    }
}


text:
package com.pushsignal.dao;

import java.util.Set;

import org.springframework.dao.DataAccessException;

import com.pushsignal.domain.Trigger;
import com.pushsignal.domain.User;

public interface TriggerDAO extends JpaDao<Trigger> {

	Trigger findTriggerByPrimaryKey(long triggerId) throws DataAccessException;

	Set<Trigger> findActiveTriggersForUser(User user) throws DataAccessException;

	Set<Trigger> findActiveTriggersForUser(int startResult, int maxRows,	User user) throws DataAccessException;
}


text:
ACCEPTED

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

#### Published in
Karstenia 42(2): 45 (2002)

#### Original name
Armillaria ambrosii Bres.

### Remarks
null


text:
package ij.plugin;
import ij.*;
import ij.gui.*;
import java.awt.*;

/** This plugin implements the Edit/Options/Arrow Tool command. */
public class ArrowToolOptions implements PlugIn, DialogListener {
	private String colorName;
	private static GenericDialog gd;
	private static final String LOC_KEY = "arrows.loc";

 	public void run(String arg) {
 		if (gd!=null && gd.isVisible())
 			gd.toFront();
 		else
			arrowToolOptions();
	}

	void arrowToolOptions() {
		if (!Toolbar.getToolName().equals("arrow"))
			IJ.setTool("arrow");
		double width = Arrow.getDefaultWidth();
		double headSize = Arrow.getDefaultHeadSize();
		Color color = Toolbar.getForegroundColor();
		colorName = Colors.getColorName(color, "red");
		int style = Arrow.getDefaultStyle();
		gd = new NonBlockingGenericDialog("Arrow Tool");
		gd.addSlider("Width:", 1, 50, (int)width);
		gd.addSlider("Size:", 0, 50, headSize);
		gd.addChoice("Color:", Colors.colors, colorName);
		gd.addChoice("Style:", Arrow.styles, Arrow.styles[style]);
		gd.addCheckbox("Outline", Arrow.getDefaultOutline());
		gd.addCheckbox("Double head", Arrow.getDefaultDoubleHeaded());
		gd.addCheckbox("Keep after adding to overlay", Prefs.keepArrowSelections);
		gd.addDialogListener(this);
		Point loc = Prefs.getLocation(LOC_KEY);
		if (loc!=null) {
			gd.centerDialog(false);
			gd.setLocation (loc);
		}
		gd.showDialog();
		Prefs.saveLocation(LOC_KEY, gd.getLocation());
	}

	public boolean dialogItemChanged(GenericDialog gd, AWTEvent e) {
		double width2 = gd.getNextNumber();
		double headSize2 = gd.getNextNumber();
		String colorName2 = gd.getNextChoice();
		int style2 = gd.getNextChoiceIndex();
		boolean outline2 = gd.getNextBoolean();
		boolean doubleHeaded2 = gd.getNextBoolean();
		Prefs.keepArrowSelections = gd.getNextBoolean();
		if (colorName!=null && !colorName2.equals(colorName)) {
			Color color = Colors.getColor(colorName2, Color.black);
			Toolbar.setForegroundColor(color);
		}
		colorName = colorName2;
		Arrow.setDefaultWidth(width2);
		Arrow.setDefaultHeadSize(headSize2);
		Arrow.setDefaultStyle(style2);
		Arrow.setDefaultOutline(outline2);
		Arrow.setDefaultDoubleHeaded(doubleHeaded2);
		ImagePlus imp = WindowManager.getCurrentImage();
		if (imp==null) return true;
		Roi roi = imp.getRoi();
		if (roi==null) return true;
		if (roi instanceof Arrow) {
			Arrow arrow = (Arrow)roi;
			roi.setStrokeWidth((float)width2);
			arrow.setHeadSize(headSize2);
			arrow.setStyle(style2);
			arrow.setOutline(outline2);
			arrow.setDoubleHeaded(doubleHeaded2);
			imp.draw();
		}
		Prefs.set(Arrow.STYLE_KEY, style2);
		Prefs.set(Arrow.WIDTH_KEY, width2);
		Prefs.set(Arrow.SIZE_KEY, headSize2);
		Prefs.set(Arrow.OUTLINE_KEY, outline2);
		Prefs.set(Arrow.DOUBLE_HEADED_KEY, doubleHeaded2);
		return true;
	}

}


text:
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Encog.Engine.Network.Activation
{
    [TestClass]
    public class TestActivationTANH
    {
        [TestMethod]
        public void TestTANH()
        {
            var activation = new ActivationTANH();
            Assert.IsTrue(activation.HasDerivative);

            var clone = (ActivationTANH) activation.Clone();
            Assert.IsNotNull(clone);

            double[] input = {0.0};

            activation.ActivationFunction(input, 0, 1);

            Assert.AreEqual(0.0, input[0], 0.1);

            // test derivative, should throw an error
            input[0] = activation.DerivativeFunction(input[0],input[0]);
            Assert.AreEqual(1.0, input[0], 0.1);
        }
    }
}


text:
!(function () {
  'use strict';

  var pageX;
  var pageY;
  var slider;
  var deltaX;
  var deltaY;
  var offsetX;
  var lastSlide;
  var startTime;
  var resistance;
  var sliderWidth;
  var slideNumber;
  var isScrolling;
  var scrollableArea;
  var startedMoving;

  var transformPrefix   = window.RATCHET.getBrowserCapabilities.prefix;
  var transformProperty = window.RATCHET.getBrowserCapabilities.transform;

  var getSlider = function (target) {
    var i;
    var sliders = document.querySelectorAll('.slider > .slide-group');

    for (; target && target !== document; target = target.parentNode) {
      for (i = sliders.length; i--;) {
        if (sliders[i] === target) {
          return target;
        }
      }
    }
  };

  var getScroll = function () {
    var translate3d = slider.style[transformProperty].match(/translate3d\(([^,]*)/);
    var ret = translate3d ? translate3d[1] : 0;
    return parseInt(ret, 10);
  };

  var setSlideNumber = function (offset) {
    var round = offset ? (deltaX < 0 ? 'ceil' : 'floor') : 'round';
    slideNumber = Math[round](getScroll() / (scrollableArea / slider.children.length));
    slideNumber += offset;
    slideNumber = Math.min(slideNumber, 0);
    slideNumber = Math.max(-(slider.children.length - 1), slideNumber);
  };

  var onTouchStart = function (e) {
    slider = getSlider(e.target);

    if (!slider) {
      return;
    }

    var firstItem  = slider.querySelector('.slide');

    scrollableArea = firstItem.offsetWidth * slider.children.length;
    isScrolling    = undefined;
    sliderWidth    = slider.offsetWidth;
    resistance     = 1;
    lastSlide      = -(slider.children.length - 1);
    startTime      = +new Date();
    pageX          = e.touches[0].pageX;
    pageY          = e.touches[0].pageY;
    deltaX         = 0;
    deltaY         = 0;

    setSlideNumber(0);

    slider.style[transformPrefix + 'transition-duration'] = 0;
  };

  var onTouchMove = function (e) {
    if (e.touches.length > 1 || !slider) {
      return; // Exit if a pinch || no slider
    }

    // adjust the starting position if we just started to avoid jumpage
    if (!startedMoving) {
      pageX += (e.touches[0].pageX - pageX) - 1;
    }

    deltaX = e.touches[0].pageX - pageX;
    deltaY = e.touches[0].pageY - pageY;
    pageX  = e.touches[0].pageX;
    pageY  = e.touches[0].pageY;

    if (typeof isScrolling === 'undefined' && startedMoving) {
      isScrolling = Math.abs(deltaY) > Math.abs(deltaX);
    }

    if (isScrolling) {
      return;
    }

    offsetX = (deltaX / resistance) + getScroll();

    e.preventDefault();

    resistance = slideNumber === 0         && deltaX > 0 ? (pageX / sliderWidth) + 1.25 :
                 slideNumber === lastSlide && deltaX < 0 ? (Math.abs(pageX) / sliderWidth) + 1.25 : 1;

    slider.style[transformProperty] = 'translate3d(' + offsetX + 'px,0,0)';

    // started moving
    startedMoving = true;
  };

  var onTouchEnd = function (e) {
    if (!slider || isScrolling) {
      return;
    }

    // we're done moving
    startedMoving = false;

    setSlideNumber((+new Date()) - startTime < 1000 && Math.abs(deltaX) > 15 ? (deltaX < 0 ? -1 : 1) : 0);

    offsetX = slideNumber * sliderWidth;

    slider.style[transformPrefix + 'transition-duration'] = '.2s';
    slider.style[transformProperty] = 'translate3d(' + offsetX + 'px,0,0)';

    e = new CustomEvent('slide', {
      detail: { slideNumber: Math.abs(slideNumber) },
      bubbles: true,
      cancelable: true
    });

    slider.parentNode.dispatchEvent(e);
  };

  window.addEventListener('touchstart', onTouchStart);
  window.addEventListener('touchmove', onTouchMove);
  window.addEventListener('touchend', onTouchEnd);

}());


text:
using BeyondEarthApp.Common.TypeMapping;
using BeyondEarthApp.Data.Exceptions;
using BeyondEarthApp.Data.QueryProcessors;
using BeyondEarthApp.Web.Api.LinkServices;
using BeyondEarthApp.Web.Api.Models;

namespace BeyondEarthApp.Web.Api.InquiryProcessing
{
    public class BuildingByIdProcessor : IBuildingByIdProcessor
    {
        private readonly IAutoMapper _autoMapper;
        private readonly IBuildingLinkService _buildingLinkService;
        private readonly IBuildingByIdQueryProcessor _buildingByIdQueryProcessor;

        public BuildingByIdProcessor(
            IAutoMapper autoMapper,
            IBuildingLinkService buildingLinkService,
            IBuildingByIdQueryProcessor buildingByIdQueryProcessor)
        {
            _autoMapper = autoMapper;
            _buildingLinkService = buildingLinkService;
            _buildingByIdQueryProcessor = buildingByIdQueryProcessor;
        }

        public Building GetBuilding(long buildingId)
        {
            var buildingEntity = _buildingByIdQueryProcessor.GetBuilding(buildingId);

            if (buildingEntity == null)
            {
                throw new RootObjectNotFoundException("Building not found");
            }

            var building = _autoMapper.Map<Building>(buildingEntity);

            _buildingLinkService.AddLinks(building);

            return building;
        }
    }
}


text:
IUP-SYS Rust
=============

[![Build Status](https://travis-ci.org/dcampbell24/rust-iup-sys.svg)](https://travis-ci.org/dcampbell24/rust-iup-sys)
[![Crates.io](https://img.shields.io/crates/v/iup-sys.svg)](https://crates.io/crates/iup-sys)

These are low level Rust bindings to [IUP](http://webserver2.tecgraf.puc-rio.br/iup/).
Bindings to CD and IM are not included.

Installation
-------------

To use this library you must install IUP. Installing CD and/or IM is optional. See [download tips][2] for more information.

[2]: http://www.tecgraf.puc-rio.br/iup/en/download_tips.html

After installing IUP, add this crate as a dependecny in your Cargo.toml file:
``` toml
[dependencies]
iup-sys = "0.0"
```

License
--------

This project is licensed under the MIT license. See LICENSE for the full license
and LICENSE-TECGRAF for the license of the IUP library this library binds to.

build.rs
--------
It's assumed, that dynamic libraries are used for IUP (, CD, IM, FTGL, WebKit), i.e. .dll on Windows or .so on *nix,
otherwise the detection mechanism provided by build.rs won't work and build.rs must be removed (or replaced at Your discretion).

To make a long story short, the rationale of build.rs is: For supported versions You'll get from this IUP binding what You installed "binary-wise".

So far, this binding was a translation of iup.h only and referring to that, the sentence above means: Within the range of IUP library
binary versions 3.19 up to current 3.29 (supported ones), lib.rs matches exactly that installed binary version's header file iup.h.
This is important, as some iup.h functions changed their signature in the past. Outside that range (same as when
build.rs gets removed), the iup.h binding represents library binary version 3.29, but with the signatures offending
ABI-compatibility being inaccessible.

As probably known, some of IUP's other header file's functions extend/call into CD and/or IM library binaries or have
other prerequisites (namely the WebKit installation on Linux/Gtk for using [IupWebBrowser](https://webserver2.tecgraf.puc-rio.br/iup/en/ctrl/iupweb.html)),
therefore support will be different for those.

Since this binding's version 0.0.4, header files beyond iup.h are supported, **if** the IUP library binary is version 3.29
or later **and** the respective prerequisites (if there are any) are installed:
E.g. the additional controls of iupcontrols.h like IupMatrix are accessible only if CD is installed, or
IupPlot is accessible only if CD is installed and the installation of IUP-supplied ftgl library was detected.

Thus my recommendation is to install all of IUP, CD and IM pre-built binaries in most recent versions: It's easy on Linux using the bash script: Run
sudo ./install && ldconfig
from within the extracted "Linux Libraries" tarball folders.
(If there is sufficient demand, I can also include building those from sources by build.rs).
'build.rs' will care for everything else like configuring the binding based on detection results, linking required binaries and pushing it's detection findings to a
dependent crate. There is file dependent_example_build.rs, an example how crates depending on iup-sys can pick up detection findings in their build.rs.

'build.rs' expects, that (shared) library binaries to detect/link/load will be found by the respective tool.
If that doesn't work, one of the possible solutions is to adapt 'build.rs' accordingly: E.g. for Windows import libraries, there is a section in the end of build.rs:
Adapt paths.

There is one problem remaining about libftgl.so on *nix:
FTGL is a cross-platform Open Source library that uses Freetype2 to simplify rendering fonts in OpenGL applications.
It is NEEDED by libiupglcontrols.so and libiup_plot.so (IupGLButton etc., IupPlot).
Distros provide a libftgl-dev package with a libftgl.so, and so does the IUP "Linux Libraries" tarball, and they differ,
thus IUP's variant doesn't get installed by the 'install' script.
If You want to use those controls, then copy IUP's libftgl.so to a location where it will be found by dlopen,
and located in the search path before libftgl-dev's provided libftgl.so location, e.g. by uninstalling the libftgl-dev package.

I recommend to touch build.rs - so that it gets reevaluated - whenever something gets changed referring to IUP and related libraries installation or upon first use
and run cargo run -vv. This will print details about what gets detected.


text:
<!DOCTYPE html>

        <meta charset="utf-8">
        <title>Page Not Found :(</title>
        <link rel="stylesheet" href="css/404.css">

Not found :(

Sorry, but the page you were trying to view does not exist.

It looks like this was the result of either:

a mistyped address

an out-of-date link


text:
<!doctypehtml>

<meta charset="UTF-8">

<marquee scrolldelay="11">Il web 2.0</marquee>

        Social

Home page social

Facebook

Google+

Instagram

Tumblr

Twitter

Snapchat

Crediti

        OS mobili

Home Page OS mobili

Origini

iOS vs Android

Crediti

        Streaming

Home Page Streaming

Che cos'è lo streaming

Caratteristiche

Vantaggi

Crediti

        Multiplayer

Home Page Multiplayer

Come Funziona?

Come viene sfruttata l'idea?

Il Futuro?

Credit

 Fù fondato negli Usa da Mark Zuckerberg insieme a degli amici il 4 febbraio 2004.

Il social network viene ribattezzato ufficialmente Facebook nel 2005.

Mark Zuckerberg crea Facebook quando è ancora studente presso l’università di Harvard.

Inizialmente Facebook lo usavano solamente gli studenti dell’università di Harvard.

Facebook si diffonde rapidamente nel mondo delle università nel periodo tra il 2004 e il 2005.

Successivamente si diffonde anche nel mondo delle superiori fino ad arrivare al giorno d’oggi dove tutte le persone possono utilizzare Facebook.

La registrazione è gratuita, per l’ iscrizione a Facebook l’utente non deve sostenere alcun costo o abbonamento, questa fu una delle tante caratteristiche che distingue il progetto di Zuckerberg da altri precedenti progetti simili.

 Per registrarsi era sufficiente inserire un indirizzo email.

Altra caratteristica che consente a Facebook di crescere rapidamente è la possibilità degli utenti di creare delle community personalizzate limitando le possibilità di contatto soltanto agli utenti e alle persone conosciute.

Questa caratteristica spinge gli utenti a dichiarare il proprio nome e cognome reale sul social network al fine di agevolare il riconoscimento da parte di amici e parenti.

Mark Zuckerberg

Università di Harvard


text:
@ParametersAreNonnullByDefault
package org.zalando.opentracing.proxy.listen.scope;

import javax.annotation.ParametersAreNonnullByDefault;


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

namespace FormulaBit1
{
    class FormulaBit1
    {
        class Car
        {
            public int vSpeed = 0;
            public int hSpeed = 0;
            public int currRow = 0;
            public int currCol = 0;
            public int stepsCount = 1;
            public bool changeDirection = false;
            public bool isSuccessful = false;
            public List<string> directionLog = new List<string>();
            public List<int> stepsBetweenDirectionChange = new List<int>();

            public Car(int vPos, int hPos, int vSpd, int hSpd)
            {
                this.currRow = vPos;
                this.currCol = hPos;
                this.vSpeed = vSpd;
                this.hSpeed = hSpd;
            }

            public Car(int vPos, int hPos)
            {
                this.currRow = vPos;
                this.currCol = hPos;
            }
        }

        static void Main()
        {
            //build the track
            string[] bitTrack = new string[8];
            for (int row = 0; row < bitTrack.Length; row++)
            {
                bitTrack[row] = Convert.ToString(
                    int.Parse(Console.ReadLine()), 2).PadLeft(8, '0');
            }
            //start by moving South
            //@top right corner of the trach
            Car car5 = new Car(0, bitTrack.Length - 1); // seb vettel ftw
            car5.vSpeed = 1;
            car5.directionLog.Add("south");
            car5.stepsBetweenDirectionChange.Add(0);
            //check if starting position is 0
            if (bitTrack[car5.currRow][car5.currCol] != '0')
            {
                Console.WriteLine("No {0}", car5.stepsCount);
            }
            //get moving
            while (true)
            {
                //if current position is exit = win
                if (car5.currRow == 7 && car5.currCol == 0)
                {
                    car5.isSuccessful = true;
                    break;
                }

                //check if next position out of bounds
                if (car5.currRow + car5.vSpeed < 0 ||
                      car5.currRow + car5.vSpeed > bitTrack.Length - 1 ||
                      car5.currCol + car5.hSpeed < 0 ||
                      car5.currCol + car5.hSpeed > bitTrack.Length - 1)
                {
                    car5.changeDirection = true;
                }
                //check if the next step in the current direction is free ( == 0 )
                else if (bitTrack[car5.currRow + car5.vSpeed][
                    car5.currCol + car5.hSpeed] == '0')
                {
                    car5.currRow += car5.vSpeed;
                    car5.currCol += car5.hSpeed;
                    car5.stepsCount++;
                    car5.changeDirection = false;
                }
                else
                {
                    car5.changeDirection = true;
                }

                if (car5.changeDirection == true) //change direction of travel
                {
                    //if new direction is not viable -> game over
                    if (car5.stepsCount == car5.stepsBetweenDirectionChange[
                        car5.stepsBetweenDirectionChange.Count - 1])
                    {
                        car5.isSuccessful = false;
                        break;
                    }
                    //change direction
                    switch (car5.directionLog[car5.directionLog.Count - 1])
                    {
                        case "south": //switch to west
                            car5.vSpeed = 0;
                            car5.hSpeed = -1;
                            car5.directionLog.Add("west");
                            car5.stepsBetweenDirectionChange.Add(car5.stepsCount);
                            break;
                        case "north": //switch to west
                            car5.vSpeed = 0;
                            car5.hSpeed = -1;
                            car5.directionLog.Add("west");
                            car5.stepsBetweenDirectionChange.Add(car5.stepsCount);
                            break;
                        case "west": //switch check previous direction
                            if (car5.directionLog[car5.directionLog.Count - 2]
                                == "south") //if south switch to north
                            {
                                car5.vSpeed = -1;
                                car5.hSpeed = 0;
                                car5.directionLog.Add("north");
                                car5.stepsBetweenDirectionChange.Add(car5.stepsCount);
                            }
                            else //else switch to south
                            {
                                car5.vSpeed = 1;
                                car5.hSpeed = 0;
                                car5.directionLog.Add("south");
                                car5.stepsBetweenDirectionChange.Add(car5.stepsCount);
                            }
                            break;
                    }
                }
            }
            if (car5.isSuccessful)
            {
                Console.WriteLine("{0} {1}",
                    car5.stepsCount, car5.directionLog.Count - 2);
            }
            else
            {
                Console.WriteLine("No {0}", car5.stepsCount);
            }
        }
    }
}


text:
#ifndef SMALLCHANGE_SMTOOLTIPKIT_H
#define SMALLCHANGE_SMTOOLTIPKIT_H

#include <Inventor/nodekits/SoSubKit.h>
#include <Inventor/nodekits/SoBaseKit.h>
#include <Inventor/fields/SoSFBool.h>
#include <Inventor/fields/SoSFTime.h>
#include <Inventor/fields/SoSFInt32.h>
#include <Inventor/fields/SoSFVec2s.h>
#include <Inventor/fields/SoMFString.h>
#include <Inventor/SbVec2f.h>
#include <SmallChange/basic.h>

class SmTooltipKitP;
class SoSensor;
class SoPickedPoint;
class SbViewportRegion;

class SMALLCHANGE_DLL_API SmTooltipKit : public SoBaseKit {
  typedef SoBaseKit inherited;

  SO_KIT_HEADER(SmTooltipKit);

  SO_KIT_CATALOG_ENTRY_HEADER(topSeparator);
  SO_KIT_CATALOG_ENTRY_HEADER(resetTransform);
  SO_KIT_CATALOG_ENTRY_HEADER(position);
  SO_KIT_CATALOG_ENTRY_HEADER(depthBuffer);
  SO_KIT_CATALOG_ENTRY_HEADER(lightModel);
  SO_KIT_CATALOG_ENTRY_HEADER(camera);
  SO_KIT_CATALOG_ENTRY_HEADER(texture);
  SO_KIT_CATALOG_ENTRY_HEADER(shapeHints);
  SO_KIT_CATALOG_ENTRY_HEADER(pickStyle);
  SO_KIT_CATALOG_ENTRY_HEADER(materialBinding);
  SO_KIT_CATALOG_ENTRY_HEADER(backgroundColor);
  SO_KIT_CATALOG_ENTRY_HEADER(justification);
  SO_KIT_CATALOG_ENTRY_HEADER(backgroundShape);
  SO_KIT_CATALOG_ENTRY_HEADER(textColor);
  SO_KIT_CATALOG_ENTRY_HEADER(textShape);

public:
  SmTooltipKit(void);
  static void initClass(void);

  virtual void GLRender(SoGLRenderAction * action);
  virtual void handleEvent(SoHandleEventAction * action);
  virtual void getBoundingBox(SoGetBoundingBoxAction * action);
  virtual void search(SoSearchAction * action);
  virtual void callback(SoCallbackAction * action);
  virtual void getMatrix(SoGetMatrixAction * action);
  virtual void pick(SoPickAction * action);
  virtual void rayPick(SoRayPickAction * action);
  virtual void audioRender(SoAudioRenderAction * action);
  virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);

protected:
  virtual ~SmTooltipKit();
  virtual SbBool affectsState(void) const;

public:

  void setPickedPoint(const SoPickedPoint * pp, const SbViewportRegion & vp);
  void setPickedPosition(const SbVec2f & pos, const SbViewportRegion & vp);
  void setViewportRegion(const SbViewportRegion & vp);

  SoSFBool autoTrigger;
  SoSFTime autoTriggerTime;
  SoSFBool isActive;
  SoMFString description;
  SoSFInt32 frameSize;
  SoSFVec2s offset;

private:

  void updateBackground(void);

  static void tooltip_changed_cb(void * closure, SoSensor * s);
  static void alarm_cb(void * closure, SoSensor * s);
  friend class SmTooltipKitP;
  SmTooltipKitP * pimpl;
};

#endif // SMALLCHANGE_SMTOOLTIPKIT_H


text:
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable disable

using System.Collections.Immutable;
using System.Diagnostics;
using Microsoft.CodeAnalysis.CSharp.Symbols;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Roslyn.Utilities;

namespace Microsoft.CodeAnalysis.CSharp
{
    internal abstract partial class MemberSemanticModel
    {
        /// <summary>
        /// Allows asking semantic questions about a TypeSyntax (or its descendants) within a member, that did not appear in the original source code.
        /// Typically, an instance is obtained by a call to SemanticModel.TryGetSpeculativeSemanticModel.
        /// </summary>
        private sealed class SpeculativeMemberSemanticModel : MemberSemanticModel
        {
            /// <summary>
            /// Creates a speculative SemanticModel for a TypeSyntax node at a position within an existing MemberSemanticModel.
            /// </summary>
            public SpeculativeMemberSemanticModel(SyntaxTreeSemanticModel parentSemanticModel, Symbol owner, TypeSyntax root, Binder rootBinder, NullableWalker.SnapshotManager snapshotManagerOpt, ImmutableDictionary<Symbol, Symbol> parentRemappedSymbolsOpt, int position)
                : base(root, owner, rootBinder, containingSemanticModelOpt: null, parentSemanticModelOpt: parentSemanticModel, snapshotManagerOpt, parentRemappedSymbolsOpt, speculatedPosition: position)
            {
            }

            protected override NullableWalker.SnapshotManager GetSnapshotManager()
            {
                // In this override, current nullability state cannot influence anything of speculatively bound expressions.
                return _parentSnapshotManagerOpt;
            }

            protected override BoundNode RewriteNullableBoundNodesWithSnapshots(
                BoundNode boundRoot,
                Binder binder,
                DiagnosticBag diagnostics,
                bool createSnapshots,
                out NullableWalker.SnapshotManager snapshotManager,
                ref ImmutableDictionary<Symbol, Symbol> remappedSymbols)
            {
                Debug.Assert(boundRoot.Syntax is TypeSyntax);
                return NullableWalker.AnalyzeAndRewrite(Compilation, MemberSymbol as MethodSymbol, boundRoot, binder, initialState: null, diagnostics, createSnapshots: false, out snapshotManager, ref remappedSymbols);
            }

            protected override void AnalyzeBoundNodeNullability(BoundNode boundRoot, Binder binder, DiagnosticBag diagnostics, bool createSnapshots)
            {
                NullableWalker.AnalyzeWithoutRewrite(Compilation, MemberSymbol as MethodSymbol, boundRoot, binder, diagnostics, createSnapshots);
            }

            internal override bool TryGetSpeculativeSemanticModelCore(SyntaxTreeSemanticModel parentModel, int position, ConstructorInitializerSyntax constructorInitializer, out SemanticModel speculativeModel)
            {
                throw ExceptionUtilities.Unreachable;
            }

            internal override bool TryGetSpeculativeSemanticModelCore(SyntaxTreeSemanticModel parentModel, int position, PrimaryConstructorBaseTypeSyntax constructorInitializer, out SemanticModel speculativeModel)
            {
                throw ExceptionUtilities.Unreachable;
            }

            internal override bool TryGetSpeculativeSemanticModelCore(SyntaxTreeSemanticModel parentModel, int position, EqualsValueClauseSyntax initializer, out SemanticModel speculativeModel)
            {
                throw ExceptionUtilities.Unreachable;
            }

            internal override bool TryGetSpeculativeSemanticModelCore(SyntaxTreeSemanticModel parentModel, int position, ArrowExpressionClauseSyntax expressionBody, out SemanticModel speculativeModel)
            {
                throw ExceptionUtilities.Unreachable;
            }

            internal override bool TryGetSpeculativeSemanticModelCore(SyntaxTreeSemanticModel parentModel, int position, StatementSyntax statement, out SemanticModel speculativeModel)
            {
                throw ExceptionUtilities.Unreachable;
            }

            internal override bool TryGetSpeculativeSemanticModelForMethodBodyCore(SyntaxTreeSemanticModel parentModel, int position, BaseMethodDeclarationSyntax method, out SemanticModel speculativeModel)
            {
                throw ExceptionUtilities.Unreachable;
            }

            internal override bool TryGetSpeculativeSemanticModelForMethodBodyCore(SyntaxTreeSemanticModel parentModel, int position, AccessorDeclarationSyntax accessor, out SemanticModel speculativeModel)
            {
                throw ExceptionUtilities.Unreachable;
            }
        }
    }
}