text:
<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content after
 *
 * @package Syntax
 */
?>

		<?php if ( has_nav_menu( 'secondary' ) ) : ?>

				<?php wp_nav_menu( array( 'theme_location' => 'secondary', 'depth' => 1 ) ); ?>

		<?php endif; ?>

			<?php _e( 'Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License.', 'syntax' ); ?>

<?php wp_footer(); ?>


text:
using UnityEngine;
using UnityEditor;
using System.Collections;

[CanEditMultipleObjects]
[CustomEditor(typeof(tk2dUIHoverItem))]
public class tk2dUIHoverItemEditor : tk2dUIBaseItemControlEditor
{
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        tk2dUIHoverItem hoverBtn = (tk2dUIHoverItem)target;

        hoverBtn.overStateGO = tk2dUICustomEditorGUILayout.SceneObjectField("Over State GameObject", hoverBtn.overStateGO,target);
        hoverBtn.outStateGO = tk2dUICustomEditorGUILayout.SceneObjectField("Out State GameObject", hoverBtn.outStateGO,target);

        BeginMessageGUI();
        methodBindingUtil.MethodBinding( "On Toggle Hover", typeof(tk2dUIHoverItem), hoverBtn.SendMessageTarget, ref hoverBtn.SendMessageOnToggleHoverMethodName );
        EndMessageGUI();

        if (GUI.changed)
        {
            tk2dUtil.SetDirty(hoverBtn);
        }
    }

}

redpajama_set_name: RedPajamaGithub


text:
zlsa.atc.Options = Fiber.extend(function (base) {
  return {
    init: function () {
      this._options = {};
      this.addOption({
        name: 'controlMethod',
        defaultValue: 'classic',
        description: 'Control Method',
        type: 'select',
        data: [['Classic', 'classic'],
               ['Arrow Keys', 'arrows']]
      });
      this.addOption({
        name: 'drawProjectedPaths',
        defaultValue: 'selected',
        description: 'Draw aircraft projected path',
        type: 'select',
        data: [['Always', 'always'],
               ['Selected', 'selected'],
               ['Never', 'never']]
      });
      this.addOption({
        name: 'simplifySpeeds',
        defaultValue: 'yes',
        description: 'Use simplified airspeeds',
        help: 'Controls use of a simplified calculation which results in'
          + ' aircraft always moving across the ground at the speed assigned.'
          + ' In reality aircraft will move faster as they increase altitude.',
        type: 'select',
        data: [['Yes', 'yes'],
               ['No', 'no']]
      });
      this.addOption({
        name: 'softCeiling',
        defaultValue: 'no',
        description: 'Allow departures via climb',
        help: 'Normally aircraft depart the airspace by flying beyond'
          + ' the horizontal bounds.  If set to yes, aircraft may also'
          + ' depart the airspace by climbing above it.',
        type: 'select',
        data: [['Yes', 'yes'],
               ['No', 'no']],
      });
    },
    addOption: function(data) {
      this._options[data.name] = data;
      if ('zlsa.atc.option.'+data.name in localStorage)
        this[data.name] = localStorage['zlsa.atc.option.'+data.name];
      else
        this[data.name] = data.defaultValue;
    },
    getDescriptions: function() {
      return this._options;
    },
    get: function(name) {
      return this[name];
    },
    set: function(name, value) {
      localStorage['zlsa.atc.option.'+name] = value;
      this[name] = value;
      return value;
    },
  };
});

function game_init_pre() {
  prop.game={};

  prop.game.paused=true;
  prop.game.focused=true;

  prop.game.speedup=1;

  prop.game.frequency=1;

  prop.game.time=0;
  prop.game.delta=0;

  prop.game.timeouts=[];

  $(window).blur(function() {
    prop.game.focused=false;
  });

  $(window).focus(function() {
    prop.game.focused=true;
  });

  prop.game.last_score = 0;
  prop.game.score = {
    arrival: 0,
    departure: 0,

    windy_landing: 0,
    windy_takeoff: 0,

    failed_arrival: 0,
    failed_departure: 0,

    warning: 0,
    hit: 0,

    abort: {
      landing: 0,
      taxi: 0
    },

    violation: 0,
    restrictions: 0
  };

  prop.game.option = new zlsa.atc.Options();
}

function game_get_score() {
  var score = 0;
  score += prop.game.score.arrival * 10;
  score += prop.game.score.departure * 10;

  score -= prop.game.score.windy_landing * 0.5;
  score -= prop.game.score.windy_takeoff * 0.5;

  score -= prop.game.score.failed_arrival * 20;
  score -= prop.game.score.failed_departure * 2;

  score -= prop.game.score.warning * 5;
  score -= prop.game.score.hit * 50;

  score -= prop.game.score.abort.landing * 5;
  score -= prop.game.score.abort.taxi * 2;

  score -= prop.game.score.violation;
  score -= prop.game.score.restrictions * 10;

  return score;
}

function game_get_weighted_score() {
  var score = game_get_score();
  score     = score / (game_time() / 60);
  score    *= 500;
  return score;
}

function game_timewarp_toggle() {
  if(prop.game.speedup == 5) {
    prop.game.speedup = 1;
    $(".fast-forwards").removeClass("speed-5");
    $(".fast-forwards").prop("title", "Set time warp to 2");
  } else if(prop.game.speedup == 1){
    prop.game.speedup = 2;
    $(".fast-forwards").addClass("speed-2");
    $(".fast-forwards").prop("title", "Set time warp to 5");
  }else {
    prop.game.speedup = 5;
    $(".fast-forwards").removeClass("speed-2");
    $(".fast-forwards").addClass("speed-5");
    $(".fast-forwards").prop("title", "Reset time warp");
  }
}

function game_pause() {
  prop.game.paused = true;
  $(".pause-toggle").addClass("active");
  $(".pause-toggle").attr("title", "Resume simulation");
  $("html").addClass("paused");
}

function game_unpause() {
  prop.game.paused = false;
  $(".pause-toggle").removeClass("active");
  $(".pause-toggle").attr("title", "Pause simulation");
  $("html").removeClass("paused");
}

function game_pause_toggle() {
  if(prop.game.paused) {
    game_unpause();
  } else {
    game_pause();
  }
}

function game_paused() {
  return !prop.game.focused || prop.game.paused;
}

function game_time() {
  return prop.game.time;
}

function game_delta() {
  return prop.game.delta;
}

function game_speedup() {
  if(game_paused()) return 0;
  return prop.game.speedup;
}

function game_timeout(func, delay, that, data) {
  var to = [func, game_time()+delay, data, delay, false, that];
  prop.game.timeouts.push(to);
  return to;
}

function game_interval(func, delay, that, data) {
  var to = [func, game_time()+delay, data, delay, true, that];
  prop.game.timeouts.push(to);
  return to;
}

function game_clear_timeout(to) {
  prop.game.timeouts.splice(prop.game.timeouts.indexOf(to), 1);
}

function game_update_pre() {
  var score = game_get_score();
  if (score != prop.game.last_score) {
    $("#score").text(round(score));
    if(score < -0.51)
      $("#score").addClass("negative");
    else
      $("#score").removeClass("negative");
    prop.game.last_score = score;
  }

  prop.game.delta=Math.min(delta()*prop.game.speedup, 100);
  if(game_paused()) {
    prop.game.delta=0;
  } else {
    $("html").removeClass("paused");
  }
  prop.game.time+=prop.game.delta;
  for(var i=prop.game.timeouts.length-1;i>=0;i--) {
    var remove  = false;
    var timeout = prop.game.timeouts[i];
    if(game_time() > timeout[1]) {
      timeout[0].call(timeout[5], timeout[2]);
      if(timeout[4]) {
        timeout[1] += timeout[3];
      } else {
        remove=true;
      }
    }
    if(remove) {
      prop.game.timeouts.splice(i, 1);
      i-=1;
    }
  }
}

function game_complete() {
  prop.game.paused=false;
}


text:
<?xml version="1.0"?>
<project name="ohk" default="nfo" basedir="">
  <target name="i">
    <echo>Oh Ok...</echo>
  </target>

  <target name="nfo" depends="i">
    <echo>So after all new tools gotta do Ant. :(</echo>
  </target>
</project>


text:
#include <boost/test/unit_test.hpp>

#include "Werk/Version.hpp"

BOOST_AUTO_TEST_SUITE(VersionTest)

BOOST_AUTO_TEST_CASE(TestGetVersion)
{
	//Version must be set
	const char *version = werk::getVersion();
	BOOST_REQUIRE(version != nullptr);

	//Version should be a valid Git hash, i.e. a 40 character hexidecimal string
	const size_t length = std::strlen(version);
	BOOST_CHECK_EQUAL(length, 40);
	for (size_t i = 0; i < 40; ++i) {
		BOOST_CHECK(std::isxdigit(version[i]));
	}
}

BOOST_AUTO_TEST_SUITE_END()


text:
@interface UIColor (SZRandom)

+ (UIColor *)sz_RandomColor;

@end


text:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Zilla_create extends Root_Controller
{
    public $permissions;
    public $message;
    public $controller_url;
    public $current_action;
    function __construct()
    {
        parent::__construct();
        $this->message='';
        $this->permissions=Menu_helper::get_permission('basic_setup/Zilla_create');
        $this->controller_url='basic_setup/Zilla_create';
        $this->load->model("basic_setup/Zilla_create_model");
        $this->lang->load("basic_setup", $this->get_language());
    }

    public function index($action='list',$id=0)
    {
        $this->current_action=$action;

        if($action=='list')
        {
            $this->system_list();
        }
        elseif($action=='add')
        {
            $this->system_add();
        }
        elseif($action=='batch_edit')
        {
            $this->system_batch_edit();
        }
        elseif($action=='edit')
        {
            $this->system_edit($id);
        }
        elseif($action=='save')
        {
            $this->system_save();
        }
        elseif($action=='batch_details')
        {
            $this->system_batch_details();
        }
        elseif($action=='batch_delete')
        {
            $this->system_batch_delete();
        }
        else
        {
            $this->system_list();
        }
    }

    private function system_list()
    {
        if($this->permissions['list'])
        {
            $this->current_action='list';
            $ajax['status']=true;
            $ajax['system_content'][]=array("id"=>"#system_wrapper_top_menu","html"=>$this->load_view("top_menu","",true));
            $ajax['system_content'][]=array("id"=>"#system_wrapper","html"=>$this->load_view("basic_setup/zilla_create/list","",true));

            if($this->message)
            {
                $ajax['system_message']=$this->message;
            }
            $ajax['system_page_url']=$this->get_encoded_url('basic_setup/Zilla_create');
            $ajax['system_page_title']=$this->lang->line("ZILLA_CREATE_TITLE");
            $this->jsonReturn($ajax);
        }
        else
        {
            $ajax['system_message']=$this->lang->line("YOU_DONT_HAVE_ACCESS");
            $this->jsonReturn($ajax);
        }
    }

    private function system_add()
    {

        if($this->permissions['add'])
        {

            $this->current_action='add';
            $ajax['status']=true;
            $data=array();

            $data['title']=$this->lang->line("ZILLA_CREATE_TITLE");

            $data['ZillaInfo'] = array
            (
                'id'=>0,
                'zillaname'=>'',
                'divid'=>'',
                'visible'=>1,
            );
            $data['divisions']=Query_helper::get_info($this->config->item('table_divisions'),array('divid value', 'divname text'), array());
            $ajax['system_content'][]=array("id"=>"#system_wrapper_top_menu","html"=>$this->load_view("top_menu","",true));
            $ajax['system_content'][]=array("id"=>"#system_wrapper","html"=>$this->load_view("basic_setup/zilla_create/add_edit",$data,true));

            if($this->message)
            {
                $ajax['system_message']=$this->message;
            }

            $ajax['system_page_url']=$this->get_encoded_url('basic_setup/Zilla_create/index/add');
            $this->jsonReturn($ajax);
        }
        else
        {
            $ajax['system_message']=$this->lang->line("YOU_DONT_HAVE_ACCESS");
            $this->jsonReturn($ajax);
        }
    }

    private function system_edit($id)
    {
        if($this->permissions['edit'])
        {
            $this->current_action='edit';
            $ajax['status']=true;
            $data=array();

            $data['title']=$this->lang->line("ZILLA_CREATE_TITLE");

            $data['ZillaInfo']=Query_helper::get_info($this->config->item('table_zillas'),'*',array('id ='.$id),1);

            $data['divisions']=Query_helper::get_info($this->config->item('table_divisions'),array('divid value', 'divname text'), array());

            $ajax['system_content'][]=array("id"=>"#system_wrapper_top_menu","html"=>$this->load_view("top_menu","",true));
            $ajax['system_content'][]=array("id"=>"#system_wrapper","html"=>$this->load_view("basic_setup/zilla_create/add_edit",$data,true));
            if($this->message)
            {
                $ajax['system_message']=$this->message;
            }
            $ajax['system_page_url']=$this->get_encoded_url('basic_setup/zilla_create/index/edit/'.$id);
            $this->jsonReturn($ajax);
        }
        else
        {
            $ajax['status']=true;
            $ajax['system_message']=$this->lang->line("YOU_DONT_HAVE_ACCESS");
            $this->jsonReturn($ajax);
        }
    }

    private function system_save()
    {
        $user=User_helper::get_user();
        $id = $this->input->post("id");
        if($id>0)
        {
            if(!$this->permissions['edit'])
            {
                $ajax['status']=false;
                $ajax['system_message']=$this->lang->line("YOU_DONT_HAVE_ACCESS");
                $this->jsonReturn($ajax);
                die();
            }
        }
        else
        {
            if(!$this->permissions['add'])
            {
                $ajax['status']=false;
                $ajax['system_message']=$this->lang->line("YOU_DONT_HAVE_ACCESS");
                $this->jsonReturn($ajax);
                die();
            }
        }

        if(!$this->check_validation())
        {
            $ajax['status']=false;
            $ajax['system_message']=$this->message;
            $this->jsonReturn($ajax);
        }
        else
        {
            $zilla_detail = $this->input->post('zilla_detail');

            if($id>0)
            {
                //$zilla_detail['update_by']=$user->id;
                //$zilla_detail['update_date']=time();

                $this->db->trans_start();  //DB Transaction Handle START

                Query_helper::update($this->config->item('table_zillas'),$zilla_detail,array("id = ".$id));

                $this->db->trans_complete();   //DB Transaction Handle END

                if ($this->db->trans_status() === TRUE)
                {
                    $this->message=$this->lang->line("MSG_UPDATE_SUCCESS");
                    $save_and_new=$this->input->post('system_save_new_status');
                    if($save_and_new==1)
                    {
                        $this->system_add();
                    }
                    else
                    {
                        $this->system_list();
                    }
                }
                else
                {
                    $ajax['status']=false;
                    $ajax['system_message']=$this->lang->line("MSG_UPDATE_FAIL");
                    $this->jsonReturn($ajax);
                }
            }
            else
            {
                //$zilla_detail['create_by']=$user->id;
                //$zilla_detail['create_date']=time();
                $divid=$zilla_detail['divid'];
                $zillas=Query_helper::get_info($this->config->item('table_zillas'),array('MAX(zillaid) as max_zilla_id'), array("divid = ".$divid));
                if(strlen($zillas[0]['max_zilla_id']+1)==1)
                {
                    $zillaid="0".($zillas[0]['max_zilla_id']+1);
                }
                else
                {
                    $zillaid=$zillas[0]['max_zilla_id']+1;
                }

                $zilla_detail['zillaid']=$zillaid;

                $this->db->trans_start();  //DB Transaction Handle START

                Query_helper::add($this->config->item('table_zillas'),$zilla_detail);

                $this->db->trans_complete();   //DB Transaction Handle END

                if ($this->db->trans_status() === TRUE)
                {
                    $this->message=$this->lang->line("MSG_CREATE_SUCCESS");
                    $save_and_new=$this->input->post('system_save_new_status');
                    if($save_and_new==1)
                    {
                        $this->system_add();
                    }
                    else
                    {
                        $this->system_list();
                    }
                }
                else
                {
                    $ajax['status']=false;
                    $ajax['system_message']=$this->lang->line("MSG_CREATE_FAIL");
                    $this->jsonReturn($ajax);
                }
            }
        }
    }

    private function system_batch_edit()
    {
        $selected_ids=$this->input->post('selected_ids');
        $this->system_edit($selected_ids[0]);
    }

    private function system_batch_delete()
    {
        if($this->permissions['delete'])
        {
            $user=User_helper::get_user();
            $selected_ids=$this->input->post('selected_ids');
            $this->db->trans_start();  //DB Transaction Handle START
            foreach($selected_ids as $id)
            {
                Query_helper::update($this->config->item('table_divisions'),array('status'=>99,'update_by'=>$user->id,'update_date'=>time()),array("id = ".$id));
            }
            $this->db->trans_complete();   //DB Transaction Handle END

            if ($this->db->trans_status() === TRUE)
            {
                $this->message=$this->lang->line("MSG_DELETE_SUCCESS");
                $this->system_list();
            }
            else
            {
                $ajax['status']=false;
                $ajax['system_message']=$this->lang->line("MSG_DELETE_FAIL");
                $this->jsonReturn($ajax);
            }
        }
        else
        {
            $ajax['status']=false;
            $ajax['system_message']=$this->lang->line("YOU_DONT_HAVE_ACCESS");
            $this->jsonReturn($ajax);
        }
    }

    private function check_validation()
    {

        $this->load->library('form_validation');
        /*
        $table_name =$this->config->item('table_divisions');
        if (!$this->db->table_exists($table_name))
        {
            $this->message = $this->lang->line('TABLE_NOT_AVAILABLE');
            return false;
        }
        */
        //        if($this->Zilla_create_model->check_existence($this->input->post("zilla_detail[zillaname]"),$this->input->post('divid'), "zillaname"))
        //        {
        //            $this->message = $this->lang->line('ZILLA_NAME_BN_EXISTS');
        //            return false;
        //        }

        $this->form_validation->set_rules('zilla_detail[divid]',$this->lang->line('DIVISION_NAME'),'required');
        $this->form_validation->set_rules('zilla_detail[zillaname]',$this->lang->line('ZILLA_NAME_BN'),'required');
        $this->form_validation->set_rules('zilla_detail[visible]',$this->lang->line('STATUS'),'required');

        if($this->form_validation->run() == FALSE)
        {
            $this->message=validation_errors();
            return false;
        }
        return true;
    }

    public function get_list()
    {
        $divisions = array();
        if($this->permissions['list'])
        {
            $divisions = $this->Zilla_create_model->get_record_list();
        }
        $this->jsonReturn($divisions);
    }

}


text:
<!--
 * @license
 * Copyright (c) 2015 MediaMath Inc. All rights reserved.
 * This code may only be used under the BSD style license found at http://mediamath.github.io/strand/LICENSE.txt

-->
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../shared/behaviors/syncable.html"/>

<dom-module id="mm-sync">
	<link rel="import" href="mm-sync.css" type="css"/>
	<template>
		<content id="content" select="*"></content>
	</template>
	<script src="mm-sync.js"></script>
</dom-module>


text:
window.addEventListener("load",initPage,false);

function initPage(){
	var now = new Date();
	var expireDate = new Date();
	expireDate.setMonth(expireDate.getMonth()+6);

	var hitCt = parseInt(cookieVal("pageHit"));
	hitCt++;

	var lastVisit = cookieVal("pageVisit");
	//首先将字符串pageVisit传递给cookieVal()函数,从而寻找名
	//为pageVisit的cookie.它返回一个值,然后将这个值存储在
	//lastVisit中。
	if(lastVisit == 0){
		lastVisit = "";
	}

	document.cookie = "pageHit="+ hitCt+"+expires="+expireDate.toGMTString();
	document.cookie = "pageVisit=" +now + "expires="+expireDate.toGMTString();

	var outMsg = "You have visited this page "+hitCt +" times.";
	if(lastVisit != ""){
		outMsg +="<br>Your last visit was "+ lastVisit;
		//ourMsg变量存储要向站点访问者显示的消息。
	}

	document.getElementById("cookieData").innerHTML = outMsg;
}

function cookieVal(cookieName){
	var thisCookie = document.cookie.split("; ");

	for(var i=0;i<thisCookie.length;i++){
		if(cookieName == thisCookie[i].split("=")[0]){
			return thisCookie[i].split("=")[1];
		}
	}
	return 0;
}


text:
// Originally from UpdatedComponentTests/StandardValidation/SOAP/Test-IDL/SOAP_RequestTypes_Boolean_Mandatory_NotSet_DetailedFaults.xls;
package uk.co.exemel.disco.tests.updatedcomponenttests.standardvalidation.soap.testidl;

import uk.co.exemel.testing.utils.disco.misc.XMLHelpers;
import uk.co.exemel.testing.utils.disco.assertions.AssertionUtils;
import uk.co.exemel.testing.utils.disco.beans.HttpCallBean;
import uk.co.exemel.testing.utils.disco.beans.HttpResponseBean;
import uk.co.exemel.testing.utils.disco.enums.DiscoMessageProtocolResponseTypeEnum;
import uk.co.exemel.testing.utils.disco.helpers.DiscoHelpers;
import uk.co.exemel.testing.utils.disco.manager.AccessLogRequirement;
import uk.co.exemel.testing.utils.disco.manager.DiscoManager;

import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import org.w3c.dom.Document;

import java.sql.Timestamp;
import java.util.Map;

import static org.testng.AssertJUnit.assertTrue;

/**
 * Ensure that when a SOAP request is received, the correct Detailed Fault Message is returned when detailed faults are enabled and the request has a missing mandatory Boolean parameter
 */
public class SOAPRequestTypesBooleanMandatoryNotSetDetailedFaultsTest {
    @Test(dataProvider = "SchemaValidationEnabled")
    public void doTest(boolean schemaValidationEnabled) throws Exception {
        DiscoHelpers helpers = new DiscoHelpers();
        try {
            DiscoManager discoManager = DiscoManager.getInstance();
            helpers.setSOAPSchemaValidationEnabled(schemaValidationEnabled);
            // Create the SOAP request as an XML Document (with a missing mandatory boolean parameter)
            XMLHelpers xMLHelpers1 = new XMLHelpers();
            Document createAsDocument2 = xMLHelpers1.getXMLObjectFromString("<BoolOperationRequest><headerParam>true</headerParam><message><bodyParameter>true</bodyParameter></message></BoolOperationRequest>");
            // Set up the Http Call Bean to make the request
            DiscoManager discoManager2 = DiscoManager.getInstance();
            HttpCallBean getNewHttpCallBean3 = discoManager2.getNewHttpCallBean("87.248.113.14");
            DiscoManager discoManager3 = discoManager2;
            // Enable Detailed Faults
            discoManager3.setDiscoFaultControllerJMXMBeanAttrbiute("DetailedFaults", "true");

            getNewHttpCallBean3.setServiceName("Baseline");

            getNewHttpCallBean3.setVersion("v2");
            // Set the created SOAP request as the PostObject
            getNewHttpCallBean3.setPostObjectForRequestType(createAsDocument2, "SOAP");
            // Get current time for getting log entries later

            Timestamp getTimeAsTimeStamp9 = new Timestamp(System.currentTimeMillis());
            // Make the SOAP call to the operation
            discoManager3.makeSoapDiscoHTTPCalls(getNewHttpCallBean3);
            // Check the response is as expected
            HttpResponseBean response5 = getNewHttpCallBean3.getResponseObjectsByEnum(DiscoMessageProtocolResponseTypeEnum.SOAP);

            Map<String, String> map5 = helpers.convertFaultObjectToMap(response5);
            AssertionUtils.multiAssertEquals("soapenv:Client", map5.get("faultCode"));
            AssertionUtils.multiAssertEquals("DSC-0018", map5.get("faultString"));
            if (schemaValidationEnabled) {
                AssertionUtils.multiAssertEquals("org.xml.sax.SAXParseException; cvc-complex-type.2.4.b: The content of element 'bas:BoolOperationRequest' is not complete. One of '{\"http://www.betfair.com/servicetypes/v2/Baseline/\":queryParam}' is expected.", map5.get("faultMessage"));
                assertTrue(map5.get("faultTrace"),map5.get("faultTrace").startsWith("org.xml.sax.SAXParseException"));
            }
            else {
                AssertionUtils.multiAssertEquals("Mandatory attributes not defined for parameter 'queryParam'", map5.get("faultMessage"));
            }
            // generalHelpers.pauseTest(500L);
            // Check the log entries are as expected

            DiscoHelpers discoHelpers9 = new DiscoHelpers();
            String JavaVersion = discoHelpers9.getJavaVersion();

            DiscoManager discoManager10 = DiscoManager.getInstance();
            discoManager10.verifyAccessLogEntriesAfterDate(getTimeAsTimeStamp9, new AccessLogRequirement("87.248.113.14", "/BaselineService/v2", "BadRequest"));
            // Reset the Detailed Faults attribute for other tests
            discoManager3.setDiscoFaultControllerJMXMBeanAttrbiute("DetailedFaults", "false");
        } finally {
            helpers.setSOAPSchemaValidationEnabled(true);
        }
    }

    @DataProvider(name = "SchemaValidationEnabled")
    public Object[][] versions() {
        return new Object[][]{
                {true}
                , {false}
        };
    }

}


text:
/**
 * @file lv_app.h
 *
 */

#ifndef LV_APP_H
#define LV_APP_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#include "lvgl/lvgl.h"

#if LV_APP_ENABLE != 0

/*********************
 *      DEFINES
 *********************/
/*Check dependencies*/
#if LV_OBJ_FREE_P == 0
#error "lv_app: Free pointer is required for application. Enable it lv_conf.h: LV_OBJ_FREE_P 1"
#endif

#if LV_OBJ_FREE_NUM == 0
#error "lv_app: Free number is required for application. Enable it lv_conf.h: LV_OBJ_FREE_NUM 1"
#endif

#if DM_CUSTOM == 0 && DM_MEM_SIZE < (2 * 1024)
#error "lv_app: not enough dynamic memory. Increase it in misc_conf.h: DM_MEM_SIZE"
#endif

/**********************
 *      TYPEDEFS
 **********************/
typedef enum
{
	LV_APP_MODE_NONE 	 = 0x0000,
	LV_APP_MODE_NOT_LIST = 0x0001,		/*Do not list the application*/
	LV_APP_MODE_NO_SC_TITLE = 0x0002,	/*No short cut title*/
}lv_app_mode_t;

typedef enum
{
	LV_APP_COM_TYPE_CHAR,   /*Stream of characters. Not '\0' terminated*/
	LV_APP_COM_TYPE_INT,    /*Stream of 'int32_t' numbers*/
	LV_APP_COM_TYPE_LOG,    /*String about an event to log*/
    LV_APP_COM_TYPE_TRIG,   /*A trigger to do some specific action (data is ignored)*/
    LV_APP_COM_TYPE_INV,    /*Invalid type*/
    LV_APP_COM_TYPE_NUM,    /*Indicates the number of com. types*/
}lv_app_com_type_t;

struct __LV_APP_DSC_T;

typedef struct
{
	const struct __LV_APP_DSC_T * dsc;
	char * name;
	lv_obj_t * sc;
	lv_obj_t * sc_title;
	lv_obj_t * win;
    lv_obj_t * conf_win;
	void * app_data;
	void * sc_data;
	void * win_data;
}lv_app_inst_t;

typedef struct __LV_APP_DSC_T
{
	const char * name;
	lv_app_mode_t mode;
	void (*app_run)(lv_app_inst_t *, void *);
	void (*app_close) (lv_app_inst_t *);
	void (*com_rec) (lv_app_inst_t *, lv_app_inst_t *, lv_app_com_type_t, const void *, uint32_t);
	void (*sc_open) (lv_app_inst_t *, lv_obj_t *);
	void (*sc_close) (lv_app_inst_t *);
	void (*win_open) (lv_app_inst_t *, lv_obj_t *);
	void (*win_close) (lv_app_inst_t *);
    void (*conf_open) (lv_app_inst_t *, lv_obj_t * );
	uint16_t app_data_size;
	uint16_t sc_data_size;
	uint16_t win_data_size;
}lv_app_dsc_t;

typedef struct {
	lv_style_t menu;
    lv_style_t menu_btn_rel;
    lv_style_t menu_btn_pr;
    lv_style_t sc_rel;
    lv_style_t sc_pr;
    lv_style_t sc_send_rel;
    lv_style_t sc_send_pr;
    lv_style_t sc_rec_rel;
    lv_style_t sc_rec_pr;
    lv_style_t sc_title;
    lv_style_t win_header;
    lv_style_t win_scrl;
    lv_style_t win_cbtn_rel;
    lv_style_t win_cbtn_pr;
}lv_app_style_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/

/**
 * Initialize the application system
 */
void lv_app_init(void);

/**
 * Get screen of the applications
 */
lv_obj_t * lv_scr_app(void);

/**
 * Allocate a new application descriptor
 * @return pointer to an lv_app_dsc_t pointer. Save here a pointer to an app. dsc.
 * E.g. *dsc = &my_app_dsc;
 */
lv_app_dsc_t ** lv_app_add_dsc(void);

/**
 * Run an application according to 'app_dsc'
 * @param app_dsc pointer to an application descriptor
 * @param conf pointer to an application specific configuration structure or NULL if unused
 * @return pointer to the opened application or NULL if any error occurred
 */
lv_app_inst_t * lv_app_run(const lv_app_dsc_t * app_dsc, void * conf);

/**
 * Close a running application. Close the Window and the Shortcut too if opened.
 * @param app pointer to an application
 */
void lv_app_close(lv_app_inst_t * app);

/**
 * Open a shortcut for an application
 * @param app pointer to an application
 * @return pointer to the shortcut
 */
lv_obj_t * lv_app_sc_open(lv_app_inst_t * app);

/**
 * Close the shortcut of an application
 * @param app pointer to an application
 */
void lv_app_sc_close(lv_app_inst_t * app);

/**
 * Open the application in a window
 * @param app pointer to an application
 * @return pointer to the shortcut
 */
lv_obj_t * lv_app_win_open(lv_app_inst_t * app);

/**
 * Close the window of an application
 * @param app pointer to an application
 */
void lv_app_win_close(lv_app_inst_t * app);

/**
 * Send data to other applications
 * @param app_send pointer to the application which is sending the message
 * @param type type of data from 'lv_app_com_type_t' enum
 * @param data pointer to the sent data
 * @param size length of 'data' in bytes
 * @return number application which were received the message
 */
uint16_t lv_app_com_send(lv_app_inst_t * app_send, lv_app_com_type_t type , const void * data, uint32_t size);

/**
 * Test an application communication connection
 * @param sender pointer to an application which sends data
 * @param receiver pointer to an application which receives data
 * @return false: no connection, true: there is connection
 */
bool lv_app_con_check(lv_app_inst_t * sender, lv_app_inst_t * receiver);

/**
 * Create a new connection between two applications
 * @param sender pointer to a data sender application
 * @param receiver pointer to a data receiver application
 */
void lv_app_con_set(lv_app_inst_t * sender, lv_app_inst_t * receiver);

/**
 * Delete a communication connection
 * @param sender pointer to a data sender application or NULL to be true for all sender
 * @param receiver pointer to a data receiver application  or NULL to be true for all receiver
 */
void lv_app_con_del(lv_app_inst_t * sender, lv_app_inst_t * receiver);

/**
 * Get the application descriptor from its name
 * @param name name of the app. dsc.
 * @return pointer to the app. dsc.
 */
const lv_app_dsc_t * lv_app_dsc_get(const char * name);

/**
 * Rename an application
 * @param app pointer to an application
 * @param name a string with the new name
 */
void lv_app_rename(lv_app_inst_t * app, const char * name);

/**
 * Get the window object from an object located on the window
 * @param obj pointer to an object on the window
 * @return pointer to the window of 'obj'
 */
lv_obj_t * lv_app_win_get_from_obj(lv_obj_t * obj);

/**
 * Read the list of the running applications. (Get he next element)
 * @param prev the previous application (at the first call give NULL to get the first application)
 * @param dsc pointer to an application descriptor to filer the applications (NULL to do not filter)
 * @return pointer to the next running application or NULL if no more
 */
lv_app_inst_t * lv_app_get_next(lv_app_inst_t * prev, lv_app_dsc_t * dsc);

/**
 * Read the list of applications descriptors. (Get he next element)
 * @param prev the previous application descriptors(at the first call give NULL to get the first)
 * @return pointer to the next application descriptors or NULL if no more
 */
lv_app_dsc_t ** lv_app_dsc_get_next(lv_app_dsc_t ** prev);

/**
 * Get a pointer to the application style structure. If modified then 'lv_app_refr_style' should be called
 * @return pointer to the application style structure
 */
lv_app_style_t * lv_app_style_get(void);

/**********************
 *      MACROS
 **********************/

/**********************
 *   POST-INCLUDES
 *********************/
#include "lvgl/lv_app/lv_app_util/lv_app_kb.h"
#include "lvgl/lv_app/lv_app_util/lv_app_fsel.h"
#include "lvgl/lv_app/lv_app_util/lv_app_notice.h"

#include "lvgl/lv_appx/lv_app_example.h"
#include "lvgl/lv_appx/lv_app_phantom.h"
#include "lvgl/lv_appx/lv_app_sysmon.h"
#include "lvgl/lv_appx/lv_app_terminal.h"
#include "lvgl/lv_appx/lv_app_files.h"
#include "lvgl/lv_appx/lv_app_wifi.h"
#include "lvgl/lv_appx/lv_app_gsm.h"
#include "lvgl/lv_appx/lv_app_ethernet.h"
#include "lvgl/lv_appx/lv_app_benchmark.h"

#endif /*LV_APP_ENABLE*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*LV_APP_H*/


text:
package jenkins.plugins.Ibvc;

import hudson.AbortException;
import hudson.EnvVars;
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.scm.ChangeLogParser;
import hudson.scm.SCM;
import hudson.scm.SCMDescriptor;
import hudson.scm.SCMRevisionState;
import hudson.Proc;
import hudson.Launcher.ProcStarter;
import java.io.File;
import java.io.IOException;
import java.lang.InterruptedException;
import net.sf.json.JSONObject;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.StaplerRequest;
import java.util.ArrayList;
import java.util.Map;
import hudson.model.AbstractBuild;
import hudson.model.Queue;
import hudson.model.Result;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.Collection;

public class IbvcSCMPlugin extends SCM {

    private final String ibvcConfig_;
    private final String sfvcRevision_;
    private final String addiotinalArguments_;
    private final Collection<IbvcParameter> parameters_;
    private final boolean ibvcCleanCheckout_;

    private String bestMatchSfvcRev_ = null;
    private String bestMatchIbvcRev_ = null;

    @DataBoundConstructor
    public IbvcSCMPlugin(
        String ibvcConfig
		, String sfvcRevision
		, boolean ibvcCleanCheckout
		, String addiotinalArguments
		, Collection<IbvcParameter> parameters
		)
    {
    	if(ibvcConfig.length() > 0){
		    File file1 = new File(ibvcConfig);
		    ibvcConfig = file1.getPath();
    	}

	    ibvcConfig_ = ibvcConfig;
		sfvcRevision_ = sfvcRevision;
		ibvcCleanCheckout_ = ibvcCleanCheckout;
		addiotinalArguments_ = addiotinalArguments;
		parameters_ = parameters;
    }

	public String getIbvcConfig(){
		return ibvcConfig_;
	}
	public String getSfvcRevision(){
		return sfvcRevision_;
	}
	public boolean isIbvcCleanCheckout(){
		return ibvcCleanCheckout_;
	}
	public String getAddiotinalArguments(){
		return addiotinalArguments_;
	}
	public Collection<IbvcParameter> getParameters(){
		return parameters_;
	}

	/**
	 * Set environment variables for the build that can be used by subsequent steps
	 *  <p>
	 *  IBVC_CONFIG: Path of ibvc.config parameter
	 *  IBVC_TARGET_SFVC_REV: Requested SFVC target revision
	 *  IBVC_PARAM_name: IBVC custom parameter name and value
	 *  IBVC_BEST_MATCH_SFVC_REV: Detected best-match SFVC revision
	 *  IBVC_BEST_MATCH_IBVC_REV: Detected best-match IBVC revision
	 *
	 */
	@Override
	public void buildEnvVars(AbstractBuild<?,?> build, Map<String,String> env){

    	if(!env.containsKey("IBVC_CONFIG")){
    		env.put("IBVC_CONFIG", ibvcConfig_);
    	}

    	if((sfvcRevision_ != null) && (sfvcRevision_.length() > 0) && !env.containsKey("IBVC_TARGET_SFVC_REV")){
    		env.put("IBVC_TARGET_SFVC_REV", sfvcRevision_);
    	}

    	if(parameters_ != null){
	    	for(IbvcParameter prm : parameters_){
	    		String k = String.format("IBVC_PARAM_%s", prm.getName());
	    		if(!env.containsKey(k)){
	    			env.put(k, prm.getValue());
	    		}
	    	}
    	}

    	if((bestMatchIbvcRev_ != null) && (bestMatchIbvcRev_.length() > 0)){
    		env.put("IBVC_BEST_MATCH_IBVC_REV", bestMatchIbvcRev_);
    	}

    	if((bestMatchSfvcRev_ != null) && (bestMatchSfvcRev_.length() > 0)){
    		env.put("IBVC_BEST_MATCH_SFVC_REV", bestMatchSfvcRev_);
    	}
    }

	/**
	 * Launch IBVC with parameters
	 * IBVC out and err are streamed to console log
	 * Exit code is parsed to check IBVC result
	 * On successful exit, IBVC out is parsed to detect best-match IBVC and SFVC revisions.
	 * Revisions are kept to later be set in build environment variables.
	 *
	 */
    @Override
    public void checkout(
        Run<?,?> build,
        Launcher launcher,
        FilePath workspace,
        TaskListener listener,
        File changelogFile,
        SCMRevisionState baseline
		) throws IOException, InterruptedException
    {
	    if (build.getParent() instanceof Queue.FlyweightTask){
	        listener.getLogger().println( Messages.Skipping_FlyweightTask());
	        return;
	    }

	    final EnvVars vars = build.getEnvironment(listener);

    	// Detect home, license file from node properties
		String ibvcPath = vars.expand(Util.nodeIbvcPath(build));
		String ibvcLic = vars.expand(Util.nodeLicensePath(build));

		ArrayList<String> args = new ArrayList<String>();
        ProcStarter ps = launcher.new ProcStarter();

        // Build command line
		args.add(ibvcPath);

		if(ibvcConfig_.length() > 0){
		    args.add("--ibvc-config");
			args.add(vars.expand(ibvcConfig_));
		}

		if( ibvcLic.length() > 0){
			args.add("--lic-file");
			args.add(vars.expand(ibvcLic));
		}

		if( sfvcRevision_.length() > 0){
			args.add("--sfvc-revision");
			args.add(vars.expand(sfvcRevision_));
		}

		if (ibvcCleanCheckout_){
			args.add("--ibvc-clean-checkout");
		}

		if( addiotinalArguments_.length() > 0){
			args.add(vars.expand(addiotinalArguments_));
		}

		if( parameters_ != null){
			for( IbvcParameter p : parameters_){
				args.add( "--param-" + vars.expand(p.getName()));
				args.add( vars.expand(p.getValue()));
			}
		}

        ps.cmds(args);
        ps.stderr(listener.getLogger());
        ps.stdout(listener.getLogger());

        try {
        	Proc ibPrc = launcher.launch(ps);
        	int ibExitCode = ibPrc.join();

        	// Analyze exit code.
        	switch( ibExitCode){
        	case 0:
    	        listener.getLogger().println( Messages.IBVC_finished_successfully());
    	        break;

			default:
				build.setResult(Result.FAILURE);
				throw new AbortException(Messages.IBVC_terminated_with_errors());
        	}

		} catch (IOException e) {
	        listener.getLogger().println( e.getMessage());
			throw e;
		} catch (InterruptedException e) {
	        listener.getLogger().println( String.format( "%s: %s", Messages.IBVC_failed_to_finish_properly(), e.getMessage()));
			throw e;
		}

        // We get here after successful checkout. Parsing best-match
        Pattern regex = Pattern.compile(".*Checking out IBVC revision (?<IBVC>\\w+) and SFVC revision (?<SFVC>\\w+)$");
        for( String line : build.getLog(10000)){
        	Matcher m = regex.matcher(line);
        	if(m.matches()){
        		bestMatchIbvcRev_ = m.group("IBVC");
        		bestMatchSfvcRev_ = m.group("SFVC");

    	        listener.getLogger().println( String.format(
    	        		"Will write IBVC_BEST_MATCH_SFVC_REV='%s' and IBVC_BEST_MATCH_IBVC_REV='%s' to build environment"
    	        		, bestMatchSfvcRev_
    	        		, bestMatchIbvcRev_));
        		break;
        	}
        }
	}

    @Override
    public ChangeLogParser createChangeLogParser() {
		return null;
    }

    @Extension
    public static final class DescriptorImpl extends SCMDescriptor<IbvcSCMPlugin> {
        public DescriptorImpl() {
			super(IbvcSCMPlugin.class, null);
			load();
        }

        @Override
        public SCM newInstance(StaplerRequest req, JSONObject formData) throws FormException {
            IbvcSCMPlugin scm = (IbvcSCMPlugin) super.newInstance(req, formData);
            return scm;
        }

        @Override
        public boolean configure(StaplerRequest req, JSONObject formData) throws FormException {
            save();
            return true;
        }

        @Override
        public String getDisplayName() {
            return Messages.IBVC();
        }
    }
}


text:
/*
 * Modified by the GTK+ Team and others 1997-1999.  See the AUTHORS
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
 */

#ifndef __GTK_SEPARATOR_H__
#define __GTK_SEPARATOR_H__

#include <gdk/gdk.h>
#include <gtk/gtkwidget.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#define GTK_TYPE_SEPARATOR                  (gtk_separator_get_type ())
#define GTK_SEPARATOR(obj)                  (GTK_CHECK_CAST ((obj), GTK_TYPE_SEPARATOR, GtkSeparator))
#define GTK_SEPARATOR_CLASS(klass)          (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SEPARATOR, GtkSeparatorClass))
#define GTK_IS_SEPARATOR(obj)               (GTK_CHECK_TYPE ((obj), GTK_TYPE_SEPARATOR))
#define GTK_IS_SEPARATOR_CLASS(klass)       (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SEPARATOR))

typedef struct _GtkSeparator       GtkSeparator;
typedef struct _GtkSeparatorClass  GtkSeparatorClass;

struct _GtkSeparator
{
  GtkWidget widget;
};

struct _GtkSeparatorClass
{
  GtkWidgetClass parent_class;
};

GtkType  gtk_separator_get_type (void);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __GTK_SEPARATOR_H__ */


text:
(function (root, factory) {
  if (typeof exports === 'object') {
    factory(exports);
  } else if (typeof define === 'function' && define.amd) {
    define(['exports'], factory);
  } else {
    factory(root);
  }
} (this, function (exports) {

    function Callout(options) {
        this._initialize(options);
    }

    Callout.prototype = {

        start : function() {
            this._fireEvent('beforestart');
            this._introJs.start();
            this._render();
        },

        exit : function() {
            this._introJs.exit();
            this._exit();
        },

        step : function(stepNo) {
            if( stepNo ) this._startFromStepNumber(stepNo);
            else return this._introJs._currentStep;
        },

        _initialize : function(options) {

            this._options = $.extend(options,{
                isSubMenuEvent : false,
                exitDueToGoToMenu : false,
                showBullets : options.showBullets || false,
                tooltipClass : 'callout',
                tooltipPosition : options.tooltipPosition || 'bottom',
                showStepNumbers : options.showStepNumbers || false,
                scrollToElement : options.scrollToElement || false,
                events : options.events || {},
                nextLabel: options.nextLabel || 'Got it',
                doneLabel: options.doneLabel || 'Done'
            });

            this._introJs = introJs();
            this._setOptions(this._options);
            this._bind();
        },

        _render : function() {
            this._renderSubMenu();
        },

        _bind : function(){
            this._introJs.onchange(this._prepareView.bind(this));
            this._introJs.onafterchange(this._onRender.bind(this));
            this._introJs.onexit(this._exit.bind(this));
            this._introJs.oncomplete(this._complete.bind(this));
        },

        _fireEvent : function(event) {
            try {
                this._options.events[event].call(this, event);
            } catch (e) {
                console.warn(event + ' handler is undefined');
            }
        },

        _startFromStepNumber : function(stepNo) {
            if(stepNo === 0){
                this._options.isSubMenuEvent = true;
                this._introJs.start();
            } else {
                this._introJs.goToStep(stepNo).start();
            }
            this._renderSubMenu();
        },

        _setOptions : function(options,value) {
            if(options && typeof options == "object")
                this._introJs.setOptions(options);
            else if(typeof options == "string" && value != undefined)
                this._introJs.setOption(options,value);
        },

        _onRender : function(targetElement) {
            var self = this._introJs,
                instance = this;

            this._options.exitDueToGoToMenu = false;
            instance._hideSubMenu();
            $('.callout .introjs-button').each(function(i,btn){
                var $btn = $(btn);
                if($btn.hasClass('introjs-disabled')) $btn.hide();

                if(self._introItems && self._currentStep!==0){
                    if($btn.hasClass('introjs-skipbutton')) $btn.html('').addClass('callout-icon-cross');
                }

            });

            var $skipBtn = $('.introjs-skipbutton'),
                $nextBtn = $('.introjs-nextbutton'),
                $currentStepBtn = $('.callout .introjs-current-step .introjs-button').remove();

            $currentStepBtn = $('
'+
                                        ''+
                                            ''+
                                                parseInt(self._currentStep+1) +' of '+ parseInt(self._introItems.length) +
                                                ''+
                                            ''+
                                        ''+
                                    '
');

            $('.callout .introjs-tooltipbuttons').after($currentStepBtn);

            $currentStepBtn.on('click', '.introjs-button',function(e){
                e.stopPropagation();
                e.preventDefault();
                instance._toggleGoToStepMenu();
            });

            if(self._introItems && self._introItems.length == self._currentStep+1 ){
                $skipBtn.removeClass('callout-icon-cross');
                $skipBtn.html(this._options.doneLabel).addClass('last');
                $currentStepBtn.show();
            } else{
                $skipBtn.removeClass('last');
                $skipBtn.html('').addClass('callout-icon-cross');
                $currentStepBtn.show();
                $nextBtn.css({display:'block'}).text(this._options.nextLabel);
            }

            $('.callout').off('mousedown click mouseup').on('mousedown click mouseup',function(e){
                e.stopPropagation();
                e.preventDefault();
            });

            this._fireEvent('onafterchange');

        },

        _renderSubMenu : function() {

            var $container = $('.introjs-tooltipReferenceLayer .introjs-tooltip');
            $container.find('.introjs-gotoStep').remove();
            var $subMenu = $('
'+
                                '
'+
                                    '

'+
                                '
'+
                            '
');

            this._introJs._introItems.forEach(function(item,index){
                if(!item.introShort) throw "introShort should be defined";
                $subMenu.find('tbody').append(''+
                    '
'+
                            ''+ this._padZero(parseInt(index+1))+'	' +
                            ''+item.introShort+'	'+
                    '
');

            }.bind(this));

            $container.append($subMenu);

            $subMenu.css({
                top : $('.introjs-tooltip.callout').outerHeight() + 2,
                right : $('.introjs-tooltip.callout').css('right')
            });

            $subMenu.off('click').on('click', 'tr', function(e){
                e.stopPropagation();
                e.preventDefault();
                this._goToStepMenu.call(this,parseInt($(e.target).parents('tr').attr('index')));
            }.bind(this));

            this._$subMenu = $subMenu;
        },

        _hideSubMenu : function() {
            this._$subMenu && this._$subMenu.addClass('hide');
        },

        _toggleGoToStepMenu : function() {
            this._$subMenu.toggleClass('hide');
            this._$subMenu.css({
                top : $('.introjs-tooltip.callout').outerHeight() + 2,
                right : $('.introjs-tooltip.callout').css('right')
            });
            this._$subMenu.find('tr').removeClass('active').eq(this._introJs._currentStep).addClass('active');
        },

        _complete : function() {
            this._fireEvent('complete');
        },

        _goToStepMenu : function(currentStep) {
            this._options.exitDueToGoToMenu = true;
            this._introJs.exit();
            this._startFromStepNumber(currentStep);
        },

        _prepareView : function() {
            var intro = this._introJs;
            try {
                intro._introItems[intro._currentStep].prepareView(intro._introItems[intro._currentStep],intro._direction);
            } catch (e) {
                console.warn('prepare view is undefined for ' + intro._currentStep);
            }
        },

        _exit : function() {
            if(this._options.exitDueToGoToMenu){
                this._options.exitDueToGoToMenu = false;
                return;
            }
            this._fireEvent('exit');
        },

        _padZero : function(num) {
            return num < 10 ? '0' + num : num;
        }

    };

    var callout = function(options){
        return new Callout(options);
    };

    exports.callout = callout;
    return callout;

}));


text:
package cn.iflyapi.blog.dao;

import cn.iflyapi.blog.entity.Article;
import cn.iflyapi.blog.entity.ArticleExample;
import cn.iflyapi.blog.entity.ArticleWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ArticleMapper {
    long countByExample(ArticleExample example);

    int deleteByExample(ArticleExample example);

    int deleteByPrimaryKey(Long articleId);

    int insert(ArticleWithBLOBs record);

    int insertSelective(ArticleWithBLOBs record);

    List<ArticleWithBLOBs> selectByExampleWithBLOBs(ArticleExample example);

    List<Article> selectByExample(ArticleExample example);

    ArticleWithBLOBs selectByPrimaryKey(Long articleId);

    int updateByExampleSelective(@Param("record") ArticleWithBLOBs record, @Param("example") ArticleExample example);

    int updateByExampleWithBLOBs(@Param("record") ArticleWithBLOBs record, @Param("example") ArticleExample example);

    int updateByExample(@Param("record") Article record, @Param("example") ArticleExample example);

    int updateByPrimaryKeySelective(ArticleWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(ArticleWithBLOBs record);

    int updateByPrimaryKey(Article record);
}


text:
int main(int, char**)
{
    using year_month = std::chrono::year_month;

    static_assert(std::is_trivially_copyable_v<year_month>, "");
    static_assert(std::is_standard_layout_v<year_month>, "");

  return 0;
}


text:
        ×

        Load a Youtube Video
        <input class="audio_url" type="text"><button class="load_audio">Load</button>

        <button class="play dismiss"></button>
        <input class="length" type="text" disabled>

            ×

                <input class="start_time" type="text" disabled>

                <input class="current_time" type="text" disabled>

                <input class="end_time" type="text" disabled>


text:
var Views = {};

Views._layouts = {};
Views.defineLayout = function(layoutId, definition){
	Views._layouts[layoutId] = uki(definition);
};
Views.renderLayout = function(layoutId) {
	Views._layouts[layoutId].attachTo(document.getElementById("layout"), "1000 1000");
};

Views._partials = {};
Views.definePartial = function(partialId, definition){
    Views._partials[partialId] = uki(definition);
};
Views.renderPartial = function(containerId, partialId){
	Views._partials[partialId].attachTo( $(containerId).get(0) ).layout()
};


text:
class NCApiError(Exception):
    pass


text:
package boofcv.alg.distort.pinhole;

import boofcv.struct.distort.Point2Transform2_F64;
import georegression.geometry.GeometryMath_F64;
import georegression.struct.point.Point2D_F64;
import org.ejml.data.DenseMatrix64F;
import org.ejml.ops.CommonOps;

/**
 * Converts an image pixel coordinate into a normalized pixel coordinate using the
 * camera's intrinsic parameters.  Lens distortion must have already been removed.
 *
 * @author Peter Abeles
 */
public class PinholePtoN_F64 implements Point2Transform2_F64 {

	// inverse of camera calibration matrix
	protected DenseMatrix64F K_inv = new DenseMatrix64F(3,3);

	public void set(/**/double fx, /**/double fy, /**/double skew, /**/double cx, /**/double cy ) {

		K_inv.set(0,0,fx);
		K_inv.set(1,1,fy);
		K_inv.set(0,1,skew);
		K_inv.set(0,2,cx);
		K_inv.set(1,2,cy);
		K_inv.set(2,2,1);

		CommonOps.invert(K_inv);
	}

	@Override
	public void compute(double x, double y, Point2D_F64 out) {
		out.set(x,y);

		GeometryMath_F64.mult(K_inv, out, out);
	}
}


text:
import math
import time

import rospy
from std_msgs.msg import Float64

rospy.init_node('cosine_wave')
pub = rospy.Publisher('cos', Float64, queue_size=1)
while not rospy.is_shutdown():
    msg = Float64()
    msg.data = math.cos(4*time.time())
    pub.publish(msg)
    time.sleep(0.1)


text:
using System;
using System.Data;
using System.Data.SqlClient;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using Trinity.BouwNet.Contracts;

namespace Trinity
{

    public delegate void LoggingEventHandler(object sender, LoggingEventArgs e);

    //TODO Rewrite
    public class LoggingService
    {

        public event LoggingEventHandler SentToLog;

        public static LoggingService LogService
        {
            get;
            set;
        }

        public static string ConnectionString { get; set; }
        public static string EventLogDestination;
        public static string TraceLogDestination;
        public static string HtmlLogDestination;
        public static bool WriteToEventLog;
        public static bool WriteToTraceLog;
        public static bool WriteToHtmlLog;

        public static string ErrorLog
        {
            get { return _errorLog; }
        }

        public string LogName
        { get; set; }

        public static LogType LoggType = LogType.Information;
        private static string _errorLog;

        private static HtmlLogWriter HtmlLogWriter;

        //TODO make with real service website
        public static void SendInfoToLog(string message)
        {

            SendToLog(LogService.LogName, message, LogType.Information);
        }
        public static void SendWarningToLog(string message)
        {
            SendToLog(LogService.LogName, message, LogType.Warning);
        }
        public static void SendErrorToLog(string message)
        {
            SendToLog(LogService.LogName, message, LogType.Error);
        }

        public static void SendErrorToLog(Exception e)
        {
            SendToLog(LogService.LogName, e.ToString(), LogType.Error);
        }

        public static void SendToLog(string message, LogType errorType)
        {
            SendToLog(LogService.LogName, message, LogType.Information);
        }

        public static void SendToLog(Exception error)
        {
            SendToLog(LogService.LogName, error.ToString(), LogType.Error);
        }

        public static void SendToLog(string log, string message, LogType errorType)
        {
            try
            {

                bool InsertToLog = false;
                switch (LoggType)
                {
                    case LogType.Error:
                        if (errorType == LogType.Error)
                            InsertToLog = true;
                        break;
                    case LogType.Warning:
                        if (errorType == LogType.Warning)
                            InsertToLog = true;
                        if (errorType == LogType.Error)
                            InsertToLog = true;

                        break;
                    case LogType.Information:
                        InsertToLog = true;
                        break;
                    default:
                        throw new ArgumentOutOfRangeException("errorType");
                }

                if (InsertToLog)
                {
                    _errorLog += $"{log} - {message} - {errorType.ToString()}" + Environment.NewLine;

                    if (LogService != null)
                        LogService.OnSentToLog(new LoggingEventArgs()
                        {
                            Log = log,
                            LogType = errorType,
                            Message = message,
                            UserName = Environment.UserName,
                        });
                    if (string.IsNullOrEmpty(ConnectionString) == false)
                    {
                        try
                        {
                            using (var conn = new SqlConnection(ConnectionString))
                            {
                                using (var cmd = new SqlCommand("INSERT INTO [dbo].[ErrorLog]([Message],[LogName],[EventType],[InsertDate],[InsertBy])VALUES(@Message, @Logname, @EventType, @InsertDate, @InsertBy)", conn))
                                {
                                    cmd.Parameters.Add("@Message", SqlDbType.NVarChar).Value = message;
                                    cmd.Parameters.Add("@Logname", SqlDbType.VarChar, 50).Value = log;
                                    cmd.Parameters.Add("@EventType", SqlDbType.VarChar, 50).Value = Enum.GetName(typeof(LogType), errorType);
                                    cmd.Parameters.Add("@InsertDate", SqlDbType.DateTime).Value = DateTime.Now;
                                    cmd.Parameters.Add("@InsertBy", SqlDbType.VarChar, 50).Value = Environment.UserName;
                                    // open connection, execute INSERT, close connection
                                    conn.Open();
                                    cmd.ExecuteNonQuery();
                                    conn.Close();
                                }
                            }
                        }
                        catch (Exception e)
                        {
                            LogToEventLog(log, e.ToString(), LogType.Error);
                            LogToEventLog(log, message, errorType);
                        }

                    }
                    if (WriteToEventLog)
                    {
                        LogToEventLog(log, message, errorType);
                    }
                    if (WriteToHtmlLog)
                    {
                        //TODO Extend to slow now
                        //  LogTotHtmlLog(log, message, errorType);
                    }
                    if (WriteToTraceLog)
                    {
                        LogToTraceLog(log, message, errorType);
                    }
                }

            }
            catch (Exception exception2)
            {
                LogToEventLog(log, exception2.ToString(), LogType.Error);
                LogToEventLog(log, message, errorType);
            }
        }

        private static void LogToEventLog(string log, string message, LogType errorType)
        {
            try
            {
                if (string.IsNullOrEmpty(EventLogDestination))
                    EventLogDestination = "TrinityOrm";

                if (!EventLog.SourceExists(log))
                {
                    EventLog.CreateEventSource(log, EventLogDestination);
                }
                if (errorType <= LoggType)
                {
                    switch (errorType)
                    {
                        case LogType.Information:
                            EventLog.WriteEntry(log, message, EventLogEntryType.Information);
                            break;
                        case LogType.Warning:
                            EventLog.WriteEntry(log, message, EventLogEntryType.Warning);
                            break;
                        case LogType.Error:
                            EventLog.WriteEntry(log, message, EventLogEntryType.Error);
                            break;
                    }
                }

            }
            catch (Exception e)
            {
                LogToTraceLog(log, e.ToString(), LogType.Error);
                LogToTraceLog(log, message, errorType);
            }

        }

        private static void LogTotHtmlLog(string log, string message, LogType errorType)
        {
            if (HtmlLogWriter == null)
            {
                HtmlLogWriter = new HtmlLogWriter();
            }

            if (string.IsNullOrEmpty(HtmlLogDestination))
            {
                HtmlLogDestination = @"c:\Temp";
            }

            HtmlLogWriter.LogLogDestination = HtmlLogDestination;
            HtmlLogWriter.LogName = "TrinityOrmLog.html";
            HtmlLogWriter.Log(log, message, errorType);
        }

        private static void LogToTraceLog(string log, string message, LogType errorType)
        {
            if (string.IsNullOrEmpty(TraceLogDestination))
            {
                TraceLogDestination = @"c:\Temp";
            }

            if (Directory.Exists(TraceLogDestination) == false)
            {
                Directory.CreateDirectory(TraceLogDestination);
            }

            var logTo = Path.Combine(TraceLogDestination, "TrinityOrmLog.log");

            if (Trace.Listeners.Count == 0)
                Trace.Listeners.Add(new TextWriterTraceListener(logTo, log));
            Trace.WriteLine(message, errorType.ToString());
            Trace.Flush();
        }

        public static void SendToLog(string log, Exception error)
        {
            SendToLog(log, error.ToString(), LogType.Error);
        }

        protected virtual void OnSentToLog(LoggingEventArgs e)
        {
            SentToLog?.Invoke(this, e);

        }

        public static void SendToLog(ResultList result)
        {
            if (result.HasErrors)
            {
                SendToLog(LogService.LogName, result.Error, LogType.Error);
            }
            else
            {
                SendToLog(LogService.LogName, result.ToString(), LogType.Information);
            }

        }
    }
}


text:
<?php
$strQuery = sprintf("select count(*) as cnt from record where user_seq=%d and test_seq=%d and testing_time is null",$intMemberSeq,$intTestsSeq);
?>


text:
using System.Collections.Generic;

using Newtonsoft.Json;

using Pixiv.Attributes;

namespace Pixiv.Models
{
    public class PointSummary : ApiResponse
    {
#pragma warning disable CS8618 // Null 非許容フィールドは初期化されていません。null 許容として宣言することを検討してください。

        [ApiVersion]
        [MarkedAs("7.7.7")]
        [JsonProperty("expirations")]
        public IEnumerable<ApiResponse> Expirations { get; set; }

        [ApiVersion]
        [MarkedAs("7.7.7")]
        [JsonProperty("per_service_balances")]
        public IEnumerable<ApiResponse> PerServiceBalances { get; set; }

#pragma warning restore CS8618 // Null 非許容フィールドは初期化されていません。null 許容として宣言することを検討してください。
    }
}


text:
* Add {doc}`/connector/mariadb`. ({issue}`10046`)
* Improve performance of queries that contain `JOIN` and `UNION` clauses. ({issue}`11935`)
* Improve performance of queries that contain `GROUP BY` clauses. ({issue}`12095`)
* Fail `DROP TABLE IF EXISTS` when deleted entity is not a table. Previously the
  statement did not delete anything. ({issue}`11555`)
* Fail `DROP VIEW IF EXISTS` when deleted entity is not a view. Previously the
  statement did not delete anything. ({issue}`11555`)
* Fail `DROP MATERIALIZED VIEW IF EXISTS` when deleted entity is not a
  materialized view. Previously the statement did not delete anything.
  ({issue}`11555`)

## Web UI

* Group information about tasks by stage. ({issue}`12099`)
* Show aggregated statistics for failed tasks of queries that are executed with
  `retry-policy` set to `TASK`. ({issue}`12099`)
* Fix reporting of `physical input read time`. ({issue}`12135`)

## Delta Lake connector

* Add support for Google Cloud Storage. ({issue}`12144`)
* Fix failure when reading from `information_schema.columns` when non-Delta
  tables are present in the metastore. ({issue}`12122`)

## Iceberg connector

* Add support for {doc}`/sql/delete` with arbitrary predicates. ({issue}`11886`)
* Improve compatibility when Glue storage properties are used. ({issue}`12164`)
* Prevent data loss when queries modify a table concurrently when Glue catalog
  is used. ({issue}`11713`)
* Enable commit retries when conflicts occur writing a transaction to a Hive Metastore. ({issue}`12419`)
* Always return the number of deleted rows for {doc}`/sql/delete` statements. ({issue}`12055`)

## Pinot connector

* Add support for Pinot 0.10. ({issue}`11475`)

## Redis connector

* Improve performance when reading data from Redis. ({issue}`12108`)

## SQL Server connector

* Properly apply snapshot isolation to all connections when it is enabled. ({issue}`11662`)


text:
#ifndef TUPLE_H
#define TUPLE_H
#include "Expression.h"
#include <string>
#include "ast-decl.h"

SWALLOW_NS_BEGIN

class TypeNode;
class SWALLOW_EXPORT Tuple : public Expression
{
public:
    Tuple();
    ~Tuple();
public:
    virtual void accept(NodeVisitor* visitor);
public:
    void add(const PatternPtr& pattern);
    int numElements();
    PatternPtr getElement(int i);

    TypeNodePtr getDeclaredType();
    void setDeclaredType(const TypeNodePtr& type);

    std::vector<PatternPtr>::iterator begin(){return elements.begin();}
    std::vector<PatternPtr>::iterator end(){return elements.end();}

private:
    TypeNodePtr declaredType;
    std::vector<PatternPtr> elements;
};

SWALLOW_NS_END

#endif//TUPLE_H


text:
/*
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program; if not, write to the Free Software
 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/*
 * XRFFSaver.java
 * Copyright (C) 2006 University of Waikato, Hamilton, New Zealand
 *
 */

package weka.core.converters;

import weka.core.Capabilities;
import weka.core.Instances;
import weka.core.Option;
import weka.core.RevisionUtils;
import weka.core.SingleIndex;
import weka.core.Utils;
import weka.core.Capabilities.Capability;
import weka.core.xml.XMLInstances;

import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Enumeration;
import java.util.Vector;
import java.util.zip.GZIPOutputStream;

/**

 * Writes to a destination that is in the XML version of the ARFF format. The data can be compressed with gzip, in order to save space.
 *

 *

 * Valid options are:

 *
 *
 -i <the input file>
 *  The input file

 *
 *
 -o <the output file>
 *  The output file

 *
 *
 -C <class index>
 *  The class index (first and last are valid as well).
 *  (default: last)

 *
 *
 -compress
 *  Compresses the data (uses '.xrff.gz' as extension instead of '.xrff')
 *  (default: off)

 *

 *
 * @author FracPete (fracpete at waikato dot ac dot nz)
 * @version $Revision: 1.5 $
 * @see Saver
 */
public class XRFFSaver
  extends AbstractFileSaver
  implements BatchConverter {

  /** for serialization */
  private static final long serialVersionUID = -7226404765213522043L;

  /** the class index */
  protected SingleIndex m_ClassIndex = new SingleIndex();

  /** the generated XML document */
  protected XMLInstances m_XMLInstances;

  /** whether to compress the output */
  protected boolean m_CompressOutput = false;

  /**
   * Constructor
   */
  public XRFFSaver(){
    resetOptions();
  }

  /**
   * Returns a string describing this Saver
   *
   * @return 		a description of the Saver suitable for
   * 			displaying in the explorer/experimenter gui
   */
  public String globalInfo() {
    return
        "Writes to a destination that is in the XML version of the ARFF format. "
      + "The data can be compressed with gzip, in order to save space.";
  }

  /**
   * Returns an enumeration describing the available options.
   *
   * @return an enumeration of all the available options.
   */
  public Enumeration listOptions() {
    Vector      result;

    result = new Vector();

    Enumeration en = super.listOptions();
    while (en.hasMoreElements())
      result.addElement(en.nextElement());

    result.addElement(
        new Option(
            "\tThe class index (first and last are valid as well).\n"
            + "\t(default: last)",
            "C", 1, "-C <class index>"));

    result.addElement(
        new Option(
            "\tCompresses the data (uses '"
            + XRFFLoader.FILE_EXTENSION_COMPRESSED
            + "' as extension instead of '"
            + XRFFLoader.FILE_EXTENSION + "')\n"
            + "\t(default: off)",
            "compress", 0, "-compress"));

    return result.elements();
  }

  /**
   * returns the options of the current setup
   *
   * @return		the current options
   */
  public String[] getOptions(){
    int       	i;
    Vector    	result;
    String[]  	options;

    result = new Vector();

    if (getClassIndex().length() != 0) {
      result.add("-C");
      result.add(getClassIndex());
    }

    if (getCompressOutput())
      result.add("-compress");

    options = super.getOptions();
    for (i = 0; i < options.length; i++)
      result.add(options[i]);

    return (String[]) result.toArray(new String[result.size()]);
  }

  /**
   * Parses the options for this object.

   *

   * Valid options are:

   *
   *
 -i <the input file>
   *  The input file

   *
   *
 -o <the output file>
   *  The output file

   *
   *
 -C <class index>
   *  The class index (first and last are valid as well).
   *  (default: last)

   *
   *
 -compress
   *  Compresses the data (uses '.xrff.gz' as extension instead of '.xrff')
   *  (default: off)

   *

   *
   * @param options	the options to use
   * @throws Exception	if setting of options fails
   */
  public void setOptions(String[] options) throws Exception {
    String	tmpStr;

    tmpStr = Utils.getOption('C', options);
    if (tmpStr.length() != 0)
      setClassIndex(tmpStr);
    else
      setClassIndex("last");

    setCompressOutput(Utils.getFlag("compress", options));

    super.setOptions(options);
  }

  /**
   * Returns a description of the file type.
   *
   * @return a short file description
   */
  public String getFileDescription() {
    return "XRFF data files";
  }

  /**
   * Gets all the file extensions used for this type of file
   *
   * @return the file extensions
   */
  public String[] getFileExtensions() {
    return new String[]{XRFFLoader.FILE_EXTENSION, XRFFLoader.FILE_EXTENSION_COMPRESSED};
  }

  /**
   * Sets the destination file.
   *
   * @param outputFile the destination file.
   * @throws IOException throws an IOException if file cannot be set
   */
  public void setFile(File outputFile) throws IOException  {
    if (outputFile.getAbsolutePath().endsWith(XRFFLoader.FILE_EXTENSION_COMPRESSED))
      setCompressOutput(true);

    super.setFile(outputFile);
  }

  /**
   * Resets the Saver
   */
  public void resetOptions() {
    super.resetOptions();

    if (getCompressOutput())
      setFileExtension(XRFFLoader.FILE_EXTENSION_COMPRESSED);
    else
      setFileExtension(XRFFLoader.FILE_EXTENSION);

    try {
      m_XMLInstances = new XMLInstances();
    }
    catch (Exception e) {
      m_XMLInstances = null;
    }
  }

  /**
   * Returns the tip text for this property
   *
   * @return 		tip text for this property suitable for
   * 			displaying in the explorer/experimenter gui
   */
  public String classIndexTipText() {
    return "Sets the class index (\"first\" and \"last\" are valid values)";
  }

  /**
   * Get the index of the class attribute.
   *
   * @return 		the index of the class attribute
   */
  public String getClassIndex() {
    return m_ClassIndex.getSingleIndex();
  }

  /**
   * Sets index of the class attribute.
   *
   * @param value 	the index of the class attribute
   */
  public void setClassIndex(String value) {
    m_ClassIndex.setSingleIndex(value);
  }

  /**
   * Returns the tip text for this property
   *
   * @return 		tip text for this property suitable for
   * 			displaying in the explorer/experimenter gui
   */
  public String compressOutputTipText() {
    return "Optional compression of the output data";
  }

  /**
   * Gets whether the output data is compressed.
   *
   * @return 		true if the output data is compressed
   */
  public boolean getCompressOutput() {
    return m_CompressOutput;
  }

  /**
   * Sets whether to compress the output.
   *
   * @param value 	if truee the output will be compressed
   */
  public void setCompressOutput(boolean value) {
    m_CompressOutput = value;
  }

  /**
   * Returns the Capabilities of this saver.
   *
   * @return            the capabilities of this object
   * @see               Capabilities
   */
  public Capabilities getCapabilities() {
    Capabilities result = super.getCapabilities();

    // attributes
    result.enableAllAttributes();
    result.enable(Capability.MISSING_VALUES);

    // class
    result.enableAllClasses();
    result.enable(Capability.MISSING_CLASS_VALUES);
    result.enable(Capability.NO_CLASS);

    return result;
  }

  /**
   * Sets instances that should be stored.
   *
   * @param instances 	the instances
   */
  public void setInstances(Instances instances) {
    if (m_ClassIndex.getSingleIndex().length() != 0) {
      m_ClassIndex.setUpper(instances.numAttributes() - 1);
      instances.setClassIndex(m_ClassIndex.getIndex());
    }

    super.setInstances(instances);
  }

  /**
   * Sets the destination output stream.
   *
   * @param output 		the output stream.
   * @throws IOException 	throws an IOException if destination cannot be set
   */
  public void setDestination(OutputStream output) throws IOException {
    if (getCompressOutput())
      super.setDestination(new GZIPOutputStream(output));
    else
      super.setDestination(output);
  }

  /**
   * Writes a Batch of instances
   *
   * @throws IOException 	throws IOException if saving in batch mode
   * 				is not possible
   */
  public void writeBatch() throws IOException {
    if (getInstances() == null)
      throw new IOException("No instances to save");

    if (getRetrieval() == INCREMENTAL)
      throw new IOException("Batch and incremental saving cannot be mixed.");

    setRetrieval(BATCH);
    setWriteMode(WRITE);

    // generate XML
    m_XMLInstances.setInstances(getInstances());

    if ((retrieveFile() == null) && (getWriter() == null)) {
      System.out.println(Thread.currentThread().getStackTrace()[1].getClassName() +m_XMLInstances.toString());
      setWriteMode(WAIT);
    }
    else {
      PrintWriter outW = new PrintWriter(getWriter());
      outW.println(m_XMLInstances.toString());
      outW.flush();
      outW.close();
      setWriteMode(WAIT);
      outW = null;
      resetWriter();
      setWriteMode(CANCEL);
    }
  }

  /**
   * Returns the revision string.
   *
   * @return		the revision
   */
  public String getRevision() {
    return RevisionUtils.extract("$Revision: 1.5 $");
  }

  /**
   * Main method.
   *
   * @param args 	should contain the options of a Saver.
   */
  public static void main(String[] args) {
    runFileSaver(new XRFFSaver(), args);
  }
}


text:
"""
Module for serializable representations of repository metadata.
"""

from xobj import xobj

import conary

class XDocManager(xobj.Document):
    """
    Base class that implements simple freeze/thaw methods.
    """

    data = str
    freeze = xobj.Document.toxml

    @classmethod
    def thaw(cls, xml):
        """
        Deserialize an xml string into a DocManager instance.
        """

        return xobj.parse(xml, documentClass=cls)

    @classmethod
    def fromfile(cls, fn):
        """
        Deserialize from file.
        """

        return xobj.parsef(fn, documentClass=cls)

    def tofile(self, fn):
        """
        Save model to file name.
        """

        fObj = open(fn, 'w')
        xml = self.toxml()
        fObj.write(xml)
        fObj.close()

class XDictItem(object):
    """
    Object to represent key/value pairs.
    """

    key = str
    value = str

    def __init__(self, key=None, value=None):
        self.key = key
        self.value = value

    def __hash__(self):
        return hash(self.key)

    def __cmp__(self, other):
        if type(other) in (str, unicode):
            return cmp(self.key, other)
        else:
            return cmp(self.key, other.key)

class XDict(object):
    """
    String based xobj dict implementation.
    """

    items = [ XDictItem ]

    def __init__(self):
        self.items = []
        self._itemClass = self.__class__.__dict__['items'][0]

    def __setitem__(self, key, value):
        item = self._itemClass(key, value)
        if item in self.items:
            idx = self.items.index(item)
            self.items[idx] = item
        else:
            self.items.append(item)

    def __getitem__(self, key):
        if key in self.items:
            idx = self.items.index(key)
            return self.items[idx].value
        raise KeyError, key

    def __contains__(self, key):
        return key in self.items

class XItemList(object):
    """
    List of items.
    """

    items = None

    def __init__(self):
        self.items = []
        self._itemClass = self.__class__.__dict__['items'][0]

class XHashableItem(object):
    """
    Base class for hashable items.
    """

    @property
    def key(self):
        raise NotImplementedError

    def __hash__(self):
        return hash(self.key)

    def __cmp__(self, other):
        return cmp(self.key, other.key)

class XPackageItem(XHashableItem):
    """
    Object to represent package data required for group builds with the
    managed group factory.
    """

    name = str
    version = str
    flavor = str
    byDefault = int
    use = str
    source = str

    def __init__(self, name=None, version=None, flavor=None, byDefault=None,
        use=None, source=None):

        self.name = name
        self.source = source

        if byDefault in (True, False):
            self.byDefault = int(byDefault)
        else:
            self.byDefault = byDefault

        if use in (True, False):
            self.use = int(use)
        else:
            self.use = use

        if isinstance(version, conary.versions.Version):
            self.version = version.freeze()
        else:
            self.version = version

        if isinstance(flavor, conary.deps.deps.Flavor):
            self.flavor = flavor.freeze()
        else:
            self.flavor = flavor

    @property
    def key(self):
        return (self.name, self.flavor, self.use)

class XPackageData(XItemList):
    """
    Mapping of package name to package group data.
    """

    items = [ XPackageItem ]

class XPackageDoc(XDocManager):
    """
    Document class for group data.
    """

    data = XPackageData

class XGroup(XHashableItem):
    """
    Group file info.
    """

    name = str
    filename = str
    byDefault = int
    depCheck = int
    checkPathConflicts = int

    def __init__(self, name=None, filename=None, byDefault=True, depCheck=True,
        checkPathConflicts=False):
        self.name = name
        self.filename = filename
        self.byDefault = byDefault and 1 or 0
        self.depCheck = depCheck and 1 or 0
        self.checkPathConflicts = checkPathConflicts and 1 or 0

    @property
    def key(self):
        return self.name

class XGroupList(XItemList):
    """
    List of file names to load as groups.
    """

    items = [ XGroup ]

class XGroupDoc(XDocManager):
    """
    Document for managing group.xml.
    """

    data = XGroupList


text:
#ifndef VICE_UIMENU_H
#define VICE_UIMENU_H

#include "ui.h"
#include "../x11menu.h"

typedef enum {
    CB_NORMAL ,
    CB_REFRESH
} ui_menu_cb_status;

typedef struct {
    void* value;
    ui_menu_cb_status status;
} ui_menu_cb_obj;

extern struct ui_menu_entry_s ui_menu_separator[];

extern int ui_menu_init();
extern void ui_menu_set_sensitive(GtkWidget *w, int flag);
extern void ui_menu_set_tick(GtkWidget *w, int flag);
extern int ui_menu_any_open(void);
extern void ui_menu_update_all(void);
extern void ui_menu_update_all_GTK(void);

#ifndef GNOME_MENUS
extern void ui_menu_create(GtkWidget *w, GtkAccelGroup *accel, const char *menu_name, ui_menu_entry_t *list);
#else
extern GnomeUIInfo* ui_menu_create(const char *menu_name, ...);
#endif

/* ------------------------------------------------------------------------- */

/* These are the callbacks for the toggle and radio menus (the ones with a
   checkmark on the left).  If call_data is NULL, they simply set/unset the
   checkmark according to the value of the corrisponding resource.  If not
   NULL, they set the value of the corresponding resource before doing so.
   For this reason, to update the checkmarks, we simply have to call all the
   callbacks with a NULL `call_data' parameter.  */

#define UI_MENU_DEFINE_TOGGLE(resource)                                        \
    static void toggle_##resource(GtkWidget *w, ui_callback_data_t event_data) \
    {                                                                          \
        _ui_menu_toggle_helper(w, event_data, #resource);                      \
    }

#define UI_MENU_DEFINE_RADIO(resource)                                        \
    static void radio_##resource(GtkWidget *w, ui_callback_data_t event_data) \
    {                                                                         \
        _ui_menu_radio_helper(w, event_data, #resource);                      \
    }

#define UI_MENU_DEFINE_STRING_RADIO(resource)                                 \
    static void radio_##resource(GtkWidget *w, ui_callback_data_t event_data) \
    {                                                                         \
        _ui_menu_string_radio_helper(w, event_data, #resource);               \
    }

#define UI_MENU_DEFINE_TOGGLE_COND(name, res, comp) \
static UI_CALLBACK(toggle_##name)                   \
{                                                   \
    int val;                                        \
                                                    \
    resources_get_int(#res, &val);                  \
                                                    \
    if (comp(val)) {                                \
        ui_menu_set_sensitive(w, TRUE);             \
    } else {                                        \
        ui_menu_set_sensitive(w, FALSE);            \
    }                                               \
                                                    \
    _ui_menu_toggle_helper(w, event_data, #name);   \
}

/* Private helper functions for toggle and radio menu items.  */
extern void _ui_menu_toggle_helper(GtkWidget *w, ui_callback_data_t event_data, const char *resource_name);
extern void _ui_menu_radio_helper(GtkWidget *w, ui_callback_data_t event_data, const char *resource_name);
extern void _ui_menu_string_radio_helper(GtkWidget *w, ui_callback_data_t event_data, const char *resource_name);

#endif /* _UIMENU_H */


text:
const gulp = require('gulp');
const htmlmin = require('gulp-htmlmin');
const Elixir = require('laravel-elixir');
const Task = Elixir.Task;

Elixir.extend('compressHtml', function(message) {
    new Task('compressHtml', function() {
        const opts = {
            collapseWhitespace:    true,
            removeAttributeQuotes: true,
            removeComments:        true,
            minifyJS:              true
        };

        return gulp.src('./storage/framework/views/*')
            .pipe(htmlmin(opts))
            .pipe(gulp.dest('./storage/framework/views/'))
    }).watch('./storage/framework/views/*')
});


text:
using System.IO;
using EnvDTE;
using Typewriter.CodeModel.Implementation;
using Typewriter.Metadata.Providers;
using Xunit;
using File = Typewriter.CodeModel.File;

[assembly: CollectionBehavior(DisableTestParallelization = true)]

namespace Typewriter.Tests.TestInfrastructure
{
    public abstract class TestBase
    {
        protected readonly DTE dte;
        protected readonly IMetadataProvider metadataProvider;

        protected readonly bool isRoslyn;
        protected readonly bool isCodeDom;

        protected TestBase(ITestFixture fixture)
        {
            this.dte = fixture.Dte;
            this.metadataProvider = fixture.Provider;

            this.isRoslyn = fixture is RoslynFixture;
            this.isCodeDom = fixture is CodeDomFixture;
        }

        protected string SolutionDirectory => Path.Combine(new FileInfo(dte.Solution.FileName).Directory?.FullName, "src");

        protected ProjectItem GetProjectItem(string path)
        {
            return dte.Solution.FindProjectItem(Path.Combine(SolutionDirectory, path));
        }

        protected string GetFileContents(string path)
        {
            return System.IO.File.ReadAllText(Path.Combine(SolutionDirectory, path));
        }

        protected File GetFile(string path)
        {
            var metadata = metadataProvider.GetFile(Path.Combine(SolutionDirectory, path));
            return new FileImpl(metadata);
        }
    }
}


text:
Rails.application.routes.draw do
  resources :people, except: [:edit, :new]
  resources :products, only: [:index, :show]
end


text:
import React, {Component} from 'react';
import Wiki2Container from 'components/pages/Wiki2/container'

class Wiki0Route extends Component {

  render() {
    const {params:{level0, id}} = this.props

    return (
      <Wiki2Container {...{level0, id}}/>
    )
  }
}

export default Wiki0Route;


text:
<?php $this->setTitle($post->name); ?>

<?php echo $post->name; ?>

		<?php echo $this->link('Edit Post',['action'=>'edit', 'params'=>['sulg'=>$post->slug]],['class'=>'btn-warning']); ?>

<?php echo $post->content; ?>

		<?php if (isset($post->tags)): ?>

			<?php foreach ($post->tags as $tag): ?>
				<?php echo $tag; ?>
			<?php endforeach ?>

		<?php endif ?>

<?php
$post_id = $post->_id->__toString();
echo $this->elementFromView(['namespace'=>'App','controller'=>'Message','action'=>'add','params'=>['posts_id'=>$post_id]]);
echo $this->elementFromView(['namespace'=>'App','controller'=>'Message','action'=>'index','params'=>['page'=>1,'posts_id'=>$post_id]]);
?>

	see more

<?php $this->startScript() ?>

<?php $this->stopScript() ?>