text:
using System;
using UIKit;
using ObjCRuntime;

#if __TVOS__
namespace SkiaSharp.Views.tvOS
#elif __WATCHOS__
namespace SkiaSharp.Views.watchOS
#elif __IOS__
namespace SkiaSharp.Views.iOS
#endif
{
	public static class iOSExtensions
	{
		// UIColor

		public static SKColor ToSKColor(this UIColor color)
		{
			nfloat r, g, b, a;
			color.GetRGBA(out r, out g, out b, out a);
			return new SKColor((byte)(r * 255), (byte)(g * 255), (byte)(b * 255), (byte)(a * 255));
		}

		public static SKColorF ToSKColorF(this UIColor color)
		{
			nfloat r, g, b, a;
			color.GetRGBA(out r, out g, out b, out a);
			return new SKColorF((float)r, (float)g, (float)b, (float)a);
		}

		public static UIColor ToUIColor(this SKColor color) =>
			UIColor.FromRGBA(color.Red, color.Green, color.Blue, color.Alpha);

		public static UIColor ToUIColor(this SKColorF color) =>
			UIColor.FromRGBA(color.Red, color.Green, color.Blue, color.Alpha);

		// UIImage

		public static SKImage ToSKImage(this UIImage uiImage)
		{
			var cgImage = uiImage.CGImage;
			if (cgImage != null)
			{
				return cgImage.ToSKImage();
			}
#if !__WATCHOS__
			var ciImage = uiImage.CIImage;
			if (ciImage != null)
			{
				return ciImage.ToSKImage();
			}
#endif
			return null;
		}

		public static SKBitmap ToSKBitmap(this UIImage uiImage)
		{
			var cgImage = uiImage.CGImage;
			if (cgImage != null)
			{
				return cgImage.ToSKBitmap();
			}
#if !__WATCHOS__
			var ciImage = uiImage.CIImage;
			if (ciImage != null)
			{
				return ciImage.ToSKBitmap();
			}
#endif
			return null;
		}

		public static bool ToSKPixmap(this UIImage uiImage, SKPixmap pixmap)
		{
			var cgImage = uiImage.CGImage;
			if (cgImage != null)
			{
				cgImage.ToSKPixmap(pixmap);
				return true;
			}
#if !__WATCHOS__
			var ciImage = uiImage.CIImage;
			if (ciImage != null)
			{
				ciImage.ToSKPixmap(pixmap);
				return true;
			}
#endif
			return false;
		}

		public static UIImage ToUIImage(this SKPicture skiaPicture, SKSizeI dimensions, nfloat scale, UIImageOrientation orientation)
		{
			var cgImage = skiaPicture.ToCGImage(dimensions);
			return new UIImage(cgImage, scale, orientation);
		}

		public static UIImage ToUIImage(this SKPicture skiaPicture, SKSizeI dimensions)
		{
			var cgImage = skiaPicture.ToCGImage(dimensions);
			return new UIImage(cgImage);
		}

		public static UIImage ToUIImage(this SKImage skiaImage)
		{
			var cgImage = skiaImage.ToCGImage();
			return new UIImage(cgImage);
		}

		public static UIImage ToUIImage(this SKPixmap skiaPixmap, nfloat scale, UIImageOrientation orientation)
		{
			var cgImage = skiaPixmap.ToCGImage();
			return new UIImage(cgImage, scale, orientation);
		}

		public static UIImage ToUIImage(this SKPixmap skiaPixmap)
		{
			var cgImage = skiaPixmap.ToCGImage();
			return new UIImage(cgImage);
		}

		public static UIImage ToUIImage(this SKBitmap skiaBitmap, nfloat scale, UIImageOrientation orientation)
		{
			var cgImage = skiaBitmap.ToCGImage();
			return new UIImage(cgImage, scale, orientation);
		}

		public static UIImage ToUIImage(this SKBitmap skiaBitmap)
		{
			var cgImage = skiaBitmap.ToCGImage();
			return new UIImage(cgImage);
		}

	}
}


text:
/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {

}

ol {
    margin: 0;
}

.secondary-text {
    color: #ccc;
    font-family: "futura-pt","Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 5px;
}

hr {
    margin-bottom: 42px;
    margin-left: 25px;
    margin-right: 25px;
}

.content {
    max-width: 670px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    color: #000;
    line-height: 25px;
    padding-top: 53px;
}

.row {
    margin-bottom: 40px;
}

.row.label {
    margin-bottom: 25px;
}

.top {
    background: #000;
    width: 100%;
    height: 90px;
    line-height: 90px;
    text-align: center;
}

.top img {
    margin: 0 auto;
    width: 46px;
    height: 48px;
}

h1 {
    font-family: "futura-pt","Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 36px;
    text-align: center;
    margin-bottom: 55px;
    line-height: 1.2em;
}

h1 a, h1 a:visited, a:hover {
    color: #000;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 3px solid #000;
    text-decoration: none;
    line-height: 0.75em;
}

.section-label {
    font-family: "futura-pt","Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 17px;
    border-bottom: 1px solid #000;
    display: inline-block;
    margin: 0 0 0 40px;
}

.name-list {
    list-style: none;
}

.footer {
    width: 100%;
    text-align: center;
    background: #000;
    height: 50px;
    line-height: 50px;
    margin-top: 80px;
}

.footer a {
    color: #fff;
}

.footer canvas {
    width: 200px;
    height: 200px;
}

#team {
    margin-bottom: 35px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="utf-8"?>
<!--
 ~ Copyright (c) 2009-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 ~
 ~ 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <parent>
        <groupId>org.wso2.carbon.data</groupId>
        <artifactId>data-services</artifactId>
        <version>4.4.35-SNAPSHOT</version>
	    <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>org.wso2.carbon.dataservices.google.tokengen</artifactId>
    <!--<version>4.3.0-SNAPSHOT</version>-->
    <packaging>bundle</packaging>
    <name>WSO2 Carbon - Data Services Token generation</name>
    <url>http://wso2.org</url>
    <description>WSO2 Data Services Token generation bundle</description>

    <dependencies>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.ui</artifactId>
        </dependency>

        <dependency>
            <groupId>org.wso2.orbit.com.google.api-client</groupId>
            <artifactId>google-api-client</artifactId>
        </dependency>

        <dependency>
            <groupId>org.wso2.orbit.com.google.oauth-client</groupId>
            <artifactId>google-oauth-client</artifactId>
        </dependency>

        <dependency>
            <groupId>org.wso2.orbit.com.google.http-client</groupId>
            <artifactId>google-http-client</artifactId>
        </dependency>

        <dependency>
            <groupId>com.hp.hpl.jena.wso2</groupId>
            <artifactId>arq</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.data</groupId>
            <artifactId>org.wso2.carbon.dataservices.common</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${project.artifactId}</Bundle-Name>
                        <Private-Package>
                            org.wso2.carbon.dataservices.google.tokengen.servlet.internal
                        </Private-Package>
                        <Export-Package>
                            !org.wso2.carbon.dataservices.google.tokengen.servlet.internal,
                            org.wso2.carbon.dataservices.google.tokengen.servlet;version="${project.version}",
                            org.wso2.carbon.dataservices.google.tokengen.servlet.util;version="${project.version}"
                        </Export-Package>
                        <Carbon-Component>UIBundle</Carbon-Component>
                        <!--<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>-->
                        <Import-Package>
                            !org.wso2.carbon.dataservices.google.*,
                            org.apache.commons.logging;version="${carbon.commons.logging.imp.pkg.version}",
                            org.wso2.carbon.dataservices.common;version="${dataservices.imp.pkg.version}",
                            com.hp.hpl.jena.sparql.lib.org.json;version="${jena-arq.orbit.imp.pkg.version}",
                            com.google.api.client.auth.oauth2;version="${google-oauth-client.orbit.imp.pkg.version}",
                            com.google.api.client.googleapis.auth.oauth2;version="${google-api-client.orbit.imp.pkg.version}",
                            com.google.api.client.http;version="${google-http-client.orbit.imp.pkg.version}",
                            com.google.api.client.http.javanet;version="${google-http-client.orbit.imp.pkg.version}",
                            com.google.api.client.json;version="${google-http-client.orbit.imp.pkg.version}",
                            com.google.api.client.json.jackson2;version="${google-http-client.orbit.imp.pkg.version}",
                            com.google.api.client.util;version="${google-http-client.orbit.imp.pkg.version}",
                            com.google.api.client.util.escape;version="${google-http-client.orbit.imp.pkg.version}",
                            com.google.api.client.repackaged.com.google.common.base;version="${google-http-client.orbit.imp.pkg.version}",
                            com.google.api.client.extensions.java6.auth.oauth2;version="${google-oauth-client.orbit.imp.pkg.version}",
                            com.google.api.client.util.store;version="${google-http-client.orbit.imp.pkg.version}",
                            org.osgi.framework;version="${osgi.imp.pkg.version}",
                            org.osgi.service.component;version="${osgi.service.imp.pkg.version}",
                            com.hazelcast.core;version="${hazelcast.orbit.imp.pkg.version}",
                            javax.servlet.*
                            <!--*;resolution:=optional-->
                        </Import-Package>
                        <!--<DynamicImport-Package>*</DynamicImport-Package>-->
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>


text:
PREFIX := /usr/local
VERSION := 0.0.1

deb:
	mkdir -p target/build$(PREFIX)/bin
	cp bin/* target/build$(PREFIX)/bin
	fpm -p target -C target/build -s dir -t deb -n marathon-cli -v $(VERSION) -a all -d curl .

clean:
	rm -rf target

install:
	cp bin/marathon-cli $(DESTDIR)$(PREFIX)/bin/marathon-cli

uninstall:
	rm $(DESTDIR)$(PREFIX)/bin/marathon-cli

.PHONY: deb clean install uninstall


text:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MonitoringActivity" >
    <TextView
        android:id="@+id/text_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_marginTop="17dp"
        android:text="Monitoring Events:" />

    <EditText
        android:id="@+id/monitoringText"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_below="@+id/text_view"
        android:layout_marginTop="36dp"
        android:ems="10"
        android:gravity="left|top"
        android:inputType="textMultiLine" >
        <requestFocus />
    </EditText>

    <Button
        android:id="@+id/Button01"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:onClick="onRangingClicked"
        android:layout_below="@+id/monitoringText"
        android:text="Start Ranging" />

</RelativeLayout>


text:
import sys

import py

import tracebin

class TestSerialization(object):
    def test_recorder(self, serializer_cls):
        with tracebin.record() as recorder:
            pass

        serializer = serializer_cls(recorder)
        data = serializer.get_data()
        assert data.viewkeys() == {"traces", "aborts", "runtime", "stdout", "stderr", "options", "calls"}
        assert data["calls"] is None
        dump = serializer.dump()
        assert data == serializer_cls.load(dump)

    def test_trace(self, serializer_cls):
        with tracebin.record() as recorder:
            for i in xrange(1500):
                pass

        serializer = serializer_cls(recorder)
        serializer.dump()

    def test_abort(self, serializer_cls):
        with tracebin.record() as recorder:
            for i in xrange(1500):
                sys.exc_info()

        serializer = serializer_cls(recorder)
        serializer.dump()

    def test_calls(self, serializer_cls):
        def f():
            pass
        def main():
            f()
            f()
            f()

        with tracebin.record(profile=True) as recorder:
            main()

        serializer = serializer_cls(recorder)
        dump = serializer.dump()
        data = serializer.load(dump)

        assert len(data["calls"]) == 3
        assert len(data["calls"][1]["subcalls"]) == 3


text:
/**
 * 搜索页面组件
 * @author VenDream
 * @since 2018-9-12
 */

import React, { Component } from 'react';

import SearchBox from 'containers/search-box';
import IllustWaterfall from 'containers/illust-waterfall';
import './search.less';

interface SearchProps {}

export default class Search extends Component<SearchProps> {
  renderSearchBox() {
    return <SearchBox />;
  }

  renderIllustWaterfall() {
    return <IllustWaterfall column={2} gutter={20} />;
  }

  render() {
    return (
      <div className="page search">
        {this.renderSearchBox()}
        {this.renderIllustWaterfall()}
      </div>
    );
  }
}


text:
using Microsoft.AspNetCore.Mvc.Localization;
using Microsoft.Extensions.Localization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DotNetBlog.Core.Model.Setting
{
    public class SettingModel
    {

        #region Default(s)

        public const string DefaultHost = "http://dotnetblog.com";
        public const string DefaultTitle = "DotNetBlog";
        public const string DefaultTheme = "default";
        public const int DefaultTopicPerPage = 10;
        public const bool DefaultOnlyShowSummary = false;
        public const string DefaultSmtpEmailAddress = "name@example.com";
        public const string DefaultSmtpServer = "mail.example.com";
        public const string DefaultSmtpUser = "username";
        public const string DefaultSmtpPassword = "password";
        public const int DefaultSmtpPort = 25;
        public const bool DefaultSmtpEnableSSL = false;
        public const bool DefaultSendEmailWhenComment = true;
        public const bool DefaultAllowComment = true;
        public const bool DefaultVerifyComment = true;
        public const bool DefaultTrustAuthenticatedCommentUser = true;
        public const bool DefaultEnableCommentWebSite = true;
        public const int DefaultCloseCommentDays = 0;
        public const string DefaultErrorPageTitle = "Sorry the system has made an error";
        public const string DefaultErrorPageContent = "Request page is wrong please try again later";
        public const string DefaultHeaderScript = "";
        public const string DefaultFooterScript = "";

        #endregion

        #region Properties and Constractor

        internal Dictionary<string, string> Settings { get; set; }

        internal IStringLocalizer<SettingModel> L { get; set; }

        public SettingModel(Dictionary<string, string> settings, IStringLocalizer<SettingModel> localizer)
        {
            Settings = settings;
            L = localizer;
        }

        /// <summary>
        /// 博客的URL地址
        /// </summary>
        public string Host
        {
            get
            {
                return GetStringValue(nameof(Host), L[DefaultHost].Value);
            }
            set
            {
                SetValue(nameof(Host), value);
            }
        }

        /// <summary>
        /// 站点名称
        /// </summary>
        public string Title
        {
            get
            {
                return GetStringValue(nameof(Title), L[DefaultTitle].Value);
            }
            set
            {
                SetValue(nameof(Title), value);
            }
        }

        /// <summary>
        /// 站点摘要
        /// </summary>
        public string Description
        {
            get
            {
                return GetStringValue(nameof(Description), "");
            }
            set
            {
                SetValue(nameof(Description), value);
            }
        }

        /// <summary>
        /// Selected language
        /// </summary>
        public string Language
        {
            get
            {
                return GetStringValue(nameof(Language), "en-GB");
            }
            set
            {
                SetValue(nameof(Language), value);
            }
        }
        /// <summary>
        /// Selected Theme
        /// </summary>
        public string Theme
        {
            get
            {
                return GetStringValue(nameof(Theme), DefaultTheme);
            }
            set
            {
                SetValue(nameof(Theme), value);
            }
        }
        /// <summary>
        /// 每页文章数
        /// </summary>
        public int TopicsPerPage
        {
            get
            {
                return GetIntValue(nameof(TopicsPerPage), DefaultTopicPerPage);
            }
            set
            {
                SetValue(nameof(TopicsPerPage), value.ToString());
            }
        }

        /// <summary>
        /// 仅仅显示文章摘要
        /// </summary>
        public bool OnlyShowSummary
        {
            get
            {
                return GetBooleanValue(nameof(OnlyShowSummary), DefaultOnlyShowSummary);
            }
            set
            {
                SetValue(nameof(OnlyShowSummary), value.ToString());
            }
        }

        /// <summary>
        /// 发送邮件的Email地址
        /// </summary>
        public string SmtpEmailAddress
        {
            get
            {
                return GetStringValue(nameof(SmtpEmailAddress), L[DefaultSmtpEmailAddress].Value);
            }
            set
            {
                SetValue(nameof(SmtpEmailAddress), value);
            }
        }

        /// <summary>
        /// SMTP服务器
        /// </summary>
        public string SmtpServer
        {
            get
            {
                return GetStringValue(nameof(SmtpServer), L[DefaultSmtpServer].Value);
            }
            set
            {
                SetValue(nameof(SmtpServer), value);
            }
        }

        /// <summary>
        /// SMTP服务器用户名
        /// </summary>
        public string SmtpUser
        {
            get
            {
                return GetStringValue(nameof(SmtpUser), L[DefaultSmtpUser].Value);
            }
            set
            {
                SetValue(nameof(SmtpUser), value);
            }
        }

        /// <summary>
        /// SMTP服务器密码
        /// </summary>
        public string SmtpPassword
        {
            get
            {
                return GetStringValue(nameof(SmtpPassword), L[DefaultSmtpPassword].Value);
            }
            set
            {
                SetValue(nameof(SmtpPassword), value);
            }
        }

        /// <summary>
        /// SMTP服务器端口
        /// </summary>
        public int SmtpPort
        {
            get
            {
                return GetIntValue(nameof(SmtpPort), DefaultSmtpPort);
            }
            set
            {
                SetValue(nameof(SmtpPort), value.ToString());
            }
        }

        /// <summary>
        /// SMTP服务器是否使用SSL
        /// </summary>
        public bool SmtpEnableSSL
        {
            get
            {
                return GetBooleanValue(nameof(SmtpEnableSSL), DefaultSmtpEnableSSL);
            }
            set
            {
                SetValue(nameof(SmtpEnableSSL), value.ToString());
            }
        }

        /// <summary>
        /// 发送评论邮件
        /// </summary>
        public bool SendEmailWhenComment
        {
            get
            {
                return GetBooleanValue(nameof(SendEmailWhenComment), DefaultSendEmailWhenComment);
            }
            set
            {
                SetValue(nameof(SendEmailWhenComment), value.ToString());
            }
        }

        /// <summary>
        /// 是否允许评论
        /// </summary>
        public bool AllowComment
        {
            get
            {
                return GetBooleanValue(nameof(AllowComment), DefaultAllowComment);
            }
            set
            {
                SetValue(nameof(AllowComment), value.ToString());
            }
        }

        /// <summary>
        /// 是否审核评论
        /// </summary>
        public bool VerifyComment
        {
            get
            {
                return GetBooleanValue(nameof(VerifyComment), DefaultVerifyComment);
            }
            set
            {
                SetValue(nameof(VerifyComment), value.ToString());
            }
        }

        /// <summary>
        /// 信任通过审核的评论用户
        /// </summary>
        public bool TrustAuthenticatedCommentUser
        {
            get
            {
                return GetBooleanValue(nameof(TrustAuthenticatedCommentUser), DefaultTrustAuthenticatedCommentUser);
            }
            set
            {
                SetValue(nameof(TrustAuthenticatedCommentUser), value.ToString());
            }
        }

        /// <summary>
        /// 在评论中启用网站
        /// </summary>
        public bool EnableCommentWebSite
        {
            get
            {
                return GetBooleanValue(nameof(EnableCommentWebSite), true);
            }
            set
            {
                SetValue(nameof(EnableCommentWebSite), value.ToString());
            }
        }

        /// <summary>
        /// 自动关闭评论
        /// </summary>
        public int CloseCommentDays
        {
            get
            {
                return GetIntValue(nameof(CloseCommentDays), 0);
            }
            set
            {
                SetValue(nameof(CloseCommentDays), value.ToString());
            }
        }

        /// <summary>
        /// 错误页面标题
        /// </summary>
        public string ErrorPageTitle
        {
            get
            {
                return GetStringValue(nameof(ErrorPageTitle), L[DefaultErrorPageTitle].Value);
            }
            set
            {
                SetValue(nameof(ErrorPageTitle), value.ToString());
            }
        }

        /// <summary>
        /// 错误页面内容
        /// </summary>
        public string ErrorPageContent
        {
            get
            {
                return GetStringValue(nameof(ErrorPageContent), L[DefaultErrorPageContent].Value);
            }
            set
            {
                SetValue(nameof(ErrorPageContent), value.ToString());
            }
        }

        /// <summary>
        /// 顶部区域脚本
        /// </summary>
        public string HeaderScript
        {
            get
            {
                return GetStringValue(nameof(HeaderScript), string.Empty);
            }
            set
            {
                SetValue(nameof(HeaderScript), value.ToString());
            }
        }

        /// <summary>
        /// 底部区域脚本
        /// </summary>
        public string FooterScript
        {
            get
            {
                return GetStringValue(nameof(FooterScript), DefaultFooterScript);
            }
            set
            {
                SetValue(nameof(FooterScript), value.ToString());
            }
        }

        #endregion

        #region Private Methods

        private string GetStringValue(string key, string defaultValue)
        {
            if (Settings.ContainsKey(key))
            {
                return Settings[key];
            }
            else
            {
                return defaultValue;
            }
        }

        private int GetIntValue(string key, int defaultValue)
        {
            int result;

            if (Settings.ContainsKey(key))
            {
                if (!int.TryParse(Settings[key], out result))
                {
                    result = defaultValue;
                }
            }
            else
            {
                result = defaultValue;
            }

            return result;
        }

        private bool GetBooleanValue(string key, bool defaultValue)
        {
            bool result;

            if (Settings.ContainsKey(key))
            {
                if (!bool.TryParse(Settings[key], out result))
                {
                    result = defaultValue;
                }
            }
            else
            {
                result = defaultValue;
            }

            return result;
        }

        private void SetValue(string key, string value)
        {
            Settings[key] = value;
        }

        #endregion
    }
}


text:
<?php

// autoload_static.php @generated by Composer

namespace Composer\Autoload;

class ComposerStaticInitf41899563bf3c4efb8c3b80cadc4f6c8
{
    public static $files = array (
        'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
        'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
        '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',
    );

    public static $prefixLengthsPsr4 = array (
        'P' =>
        array (
            'Psr\\Log\\' => 8,
            'Psr\\Http\\Message\\' => 17,
            'Psr\\Cache\\' => 10,
        ),
        'M' =>
        array (
            'Monolog\\' => 8,
        ),
        'G' =>
        array (
            'GuzzleHttp\\Psr7\\' => 16,
            'GuzzleHttp\\Promise\\' => 19,
            'GuzzleHttp\\' => 11,
            'Google\\Cloud\\' => 13,
            'Google\\Auth\\' => 12,
        ),
        'F' =>
        array (
            'Firebase\\JWT\\' => 13,
        ),
    );

    public static $prefixDirsPsr4 = array (
        'Psr\\Log\\' =>
        array (
            0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
        ),
        'Psr\\Http\\Message\\' =>
        array (
            0 => __DIR__ . '/..' . '/psr/http-message/src',
        ),
        'Psr\\Cache\\' =>
        array (
            0 => __DIR__ . '/..' . '/psr/cache/src',
        ),
        'Monolog\\' =>
        array (
            0 => __DIR__ . '/..' . '/monolog/monolog/src/Monolog',
        ),
        'GuzzleHttp\\Psr7\\' =>
        array (
            0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src',
        ),
        'GuzzleHttp\\Promise\\' =>
        array (
            0 => __DIR__ . '/..' . '/guzzlehttp/promises/src',
        ),
        'GuzzleHttp\\' =>
        array (
            0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src',
        ),
        'Google\\Cloud\\' =>
        array (
            0 => __DIR__ . '/..' . '/google/cloud/src',
        ),
        'Google\\Auth\\' =>
        array (
            0 => __DIR__ . '/..' . '/google/auth/src',
        ),
        'Firebase\\JWT\\' =>
        array (
            0 => __DIR__ . '/..' . '/firebase/php-jwt/src',
        ),
    );

    public static $prefixesPsr0 = array (
        'R' =>
        array (
            'Rize\\UriTemplate' =>
            array (
                0 => __DIR__ . '/..' . '/rize/uri-template/src',
            ),
        ),
    );

    public static $classMap = array (
        'Google\\Auth\\ApplicationDefaultCredentials' => __DIR__ . '/..' . '/google/auth/src/ApplicationDefaultCredentials.php',
        'Google\\Auth\\CacheTrait' => __DIR__ . '/..' . '/google/auth/src/CacheTrait.php',
        'Google\\Auth\\Cache\\InvalidArgumentException' => __DIR__ . '/..' . '/google/auth/src/Cache/InvalidArgumentException.php',
        'Google\\Auth\\Cache\\Item' => __DIR__ . '/..' . '/google/auth/src/Cache/Item.php',
        'Google\\Auth\\Cache\\MemoryCacheItemPool' => __DIR__ . '/..' . '/google/auth/src/Cache/MemoryCacheItemPool.php',
        'Google\\Auth\\CredentialsLoader' => __DIR__ . '/..' . '/google/auth/src/CredentialsLoader.php',
        'Google\\Auth\\Credentials\\AppIdentityCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/AppIdentityCredentials.php',
        'Google\\Auth\\Credentials\\GCECredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/GCECredentials.php',
        'Google\\Auth\\Credentials\\IAMCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/IAMCredentials.php',
        'Google\\Auth\\Credentials\\ServiceAccountCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/ServiceAccountCredentials.php',
        'Google\\Auth\\Credentials\\ServiceAccountJwtAccessCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php',
        'Google\\Auth\\Credentials\\UserRefreshCredentials' => __DIR__ . '/..' . '/google/auth/src/Credentials/UserRefreshCredentials.php',
        'Google\\Auth\\FetchAuthTokenCache' => __DIR__ . '/..' . '/google/auth/src/FetchAuthTokenCache.php',
        'Google\\Auth\\FetchAuthTokenInterface' => __DIR__ . '/..' . '/google/auth/src/FetchAuthTokenInterface.php',
        'Google\\Auth\\HttpHandler\\Guzzle5HttpHandler' => __DIR__ . '/..' . '/google/auth/src/HttpHandler/Guzzle5HttpHandler.php',
        'Google\\Auth\\HttpHandler\\Guzzle6HttpHandler' => __DIR__ . '/..' . '/google/auth/src/HttpHandler/Guzzle6HttpHandler.php',
        'Google\\Auth\\HttpHandler\\HttpHandlerFactory' => __DIR__ . '/..' . '/google/auth/src/HttpHandler/HttpHandlerFactory.php',
        'Google\\Auth\\Middleware\\AuthTokenMiddleware' => __DIR__ . '/..' . '/google/auth/src/Middleware/AuthTokenMiddleware.php',
        'Google\\Auth\\Middleware\\ScopedAccessTokenMiddleware' => __DIR__ . '/..' . '/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php',
        'Google\\Auth\\Middleware\\SimpleMiddleware' => __DIR__ . '/..' . '/google/auth/src/Middleware/SimpleMiddleware.php',
        'Google\\Auth\\OAuth2' => __DIR__ . '/..' . '/google/auth/src/OAuth2.php',
        'Google\\Auth\\Subscriber\\AuthTokenSubscriber' => __DIR__ . '/..' . '/google/auth/src/Subscriber/AuthTokenSubscriber.php',
        'Google\\Auth\\Subscriber\\ScopedAccessTokenSubscriber' => __DIR__ . '/..' . '/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php',
        'Google\\Auth\\Subscriber\\SimpleSubscriber' => __DIR__ . '/..' . '/google/auth/src/Subscriber/SimpleSubscriber.php',
    );

    public static function getInitializer(ClassLoader $loader)
    {
        return \Closure::bind(function () use ($loader) {
            $loader->prefixLengthsPsr4 = ComposerStaticInitf41899563bf3c4efb8c3b80cadc4f6c8::$prefixLengthsPsr4;
            $loader->prefixDirsPsr4 = ComposerStaticInitf41899563bf3c4efb8c3b80cadc4f6c8::$prefixDirsPsr4;
            $loader->prefixesPsr0 = ComposerStaticInitf41899563bf3c4efb8c3b80cadc4f6c8::$prefixesPsr0;
            $loader->classMap = ComposerStaticInitf41899563bf3c4efb8c3b80cadc4f6c8::$classMap;

        }, null, ClassLoader::class);
    }
}


text:
/**********************************************************************
 **********************************************************************
 **********************************************************************
 *** COPYRIGHT (c) 1997-1998 Eastman Kodak Company.                 ***
 *** As  an unpublished  work pursuant to Title 17 of the United    ***
 *** States Code.  All rights reserved.                             ***
 **********************************************************************
 **********************************************************************
 **********************************************************************/

package com.sun.image.codec.jpeg;

/** Class to encapsulate the JPEG quantization tables.
 *

 * Note that the classes in the com.sun.image.codec.jpeg package are not
 * part of the core Java APIs.  They are a part of Sun's JDK and JRE
 * distributions.  Although other licensees may choose to distribute these
 * classes, developers cannot depend on their availability in non-Sun
 * implementations.  We expect that equivalent functionality will eventually
 * be available in a core API or standard extension.
 *

 */
public class JPEGQTable {

        /** Quantization step for each coefficient in zig-zag order */
        private int quantval[];

        /** The number of coefficients in a DCT block */
        private static final byte QTABLESIZE = 64;

        /**
         * This is the sample luminance quantization table given in the
         * JPEG spec section K.1, expressed in zigzag order. The spec says
         * that the values given produce "good" quality, and when divided
         * by 2, "very good" quality.
         */
        public static final JPEGQTable StdLuminance = new JPEGQTable();
        static {
                int [] lumVals = {
                        16,   11,  12,  14,  12,  10,  16,  14,
                        13,   14,  18,  17,  16,  19,  24,  40,
                        26,   24,  22,  22,  24,  49,  35,  37,
                        29,   40,  58,  51,  61,  60,  57,  51,
                        56,   55,  64,  72,  92,  78,  64,  68,
                        87,   69,  55,  56,  80, 109,  81,  87,
                        95,   98, 103, 104, 103,  62,  77, 113,
                        121, 112, 100, 120,  92, 101, 103,  99
                };

                StdLuminance.quantval = lumVals;
        }

        /**
         * This is the sample luminance quantization table given in the
         * JPEG spec section K.1, expressed in zigzag order. The spec says
         * that the values given produce "good" quality, and when divided
         * by 2, "very good" quality.
         */
        public static final JPEGQTable StdChrominance = new JPEGQTable();
        static {
                int [] chromVals = {
                        17,  18,  18,  24,  21,  24,  47,  26,
                        26,  47,  99,  66,  56,  66,  99,  99,
                        99,  99,  99,  99,  99,  99,  99,  99,
                        99,  99,  99,  99,  99,  99,  99,  99,
                        99,  99,  99,  99,  99,  99,  99,  99,
                        99,  99,  99,  99,  99,  99,  99,  99,
                        99,  99,  99,  99,  99,  99,  99,  99,
                        99,  99,  99,  99,  99,  99,  99,  99
                };
                StdChrominance.quantval = chromVals;
        }

        /**
         * Constructs an empty quantization table. This is used to create
         * the Std Q-Tables.
         */
        private JPEGQTable() {
                quantval = new int[QTABLESIZE];
        }

        /**
         * Constructs an quantization table from the array that was
         * passed.  The coefficents must be in zig-zag order. The array
         * must be of length 64.
         *  @param table the quantization table (this is copied).
         */
        public JPEGQTable( int table[] ) {
                if ( table.length != QTABLESIZE ) {
                        throw new IllegalArgumentException
                                ("Quantization table is the wrong size.");
                } else {
                        quantval = new int[QTABLESIZE];
                        System.arraycopy( table, 0, quantval, 0, QTABLESIZE );
                }
        }

        /**
         * Returns the current quantization table as an array of ints in
         * zig zag order.
         *  @return A copy of the contained quantization table.
         */
        public int[] getTable() {
                int[] table = new int[QTABLESIZE];
                System.arraycopy( quantval, 0, table, 0, QTABLESIZE );
                return table;
        }

        /**
         * Returns a new Quantization table where the values are
         * multiplied by scaleFactor and then clamped to the range
         * 1..32767 (or to 1..255 if forceBaseline is 'true').

         * Values less than one tend to improve the quality level of the
         * table, and values greater than one degrade the quality level of
         * the table.

         * @param scaleFactor the multiplication factor for the table
         * @param forceBaseline if true the values will be clamped
         * to the range  [1 .. 255]
         * @return A new Q-Table that is a linear multiple of this Q-Table
         */
        public JPEGQTable getScaledInstance(float scaleFactor,
                                                                                boolean forceBaseline ) {
                long  max    = (forceBaseline)?255L:32767L;
                int []ret    = new int[QTABLESIZE];

                for (int i=0; i<QTABLESIZE; i++ ) {
                        long holder = (long)((quantval[i] * scaleFactor) + 0.5);

                        // limit to valid range
                        if (holder <= 0L) holder = 1L;

                        // Max quantizer for 12 bits
                        if (holder > max ) holder = max;

                        ret[i] = (int)holder;
                }
                return new JPEGQTable(ret);
        }
}


text:
FactoryGirl.define do
  factory :note do
    title { Faker::Lorem.sentence }
    body { Faker::Hacker.say_something_smart }

    factory :note_with_associations do
      notebook
    end
  end
end


text:
"""
    library
"""
from __future__ import absolute_import, division, print_function
import logging
import os
from PySide import QtGui, QtCore
from mcedit2.util.directories import getUserSchematicsDirectory
from mcedit2.widgets.layout import Column

log = logging.getLogger(__name__)

class LibraryTreeModel(QtGui.QFileSystemModel):
    def columnCount(self, *args, **kwargs):
        return 1

class LibraryWidget(QtGui.QWidget):
    def __init__(self):
        super(LibraryWidget, self).__init__()

        self.folderPath = getUserSchematicsDirectory()
        if not os.path.exists(self.folderPath):
            os.makedirs(self.folderPath)

        self.treeView = QtGui.QTreeView()
        self.model = LibraryTreeModel()
        self.model.setRootPath(self.folderPath)
        self.treeView.setModel(self.model)
        self.treeView.setRootIndex(self.model.index(self.folderPath))

        self.treeView.doubleClicked.connect(self.itemDoubleClicked)

        openLibraryButton = QtGui.QPushButton("Open Schematics Folder")
        openLibraryButton.clicked.connect(self.openFolder)

        self.setLayout(Column(self.treeView, openLibraryButton))

    def openFolder(self):
        QtGui.QDesktopServices.openUrl(QtCore.QUrl.fromLocalFile(self.folderPath))

    def itemDoubleClicked(self, index):
        filename = self.model.filePath(index)
        self.doubleClicked.emit(filename)

    doubleClicked = QtCore.Signal(str)


text:
      <a href="<?php echo $prefix;?>index.php" class="navbar-brand">
        Logo

All Styles

<a href="<?php echo $prefix;?>product">Heels

<a href="<?php echo $prefix;?>product">Flats

<a href="<?php echo $prefix;?>product">Baby

<a href="<?php echo $prefix;?>product">Mens

<a href="<?php echo $prefix;?>product">Accessories

<a href="<?php echo $prefix;?>product" class="sale">Sale


text:
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.cxf.jaxws;

import java.net.URISyntaxException;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import org.apache.camel.spi.EndpointUriFactory;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
public class CxfEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {

    private static final String BASE = ":beanId:address";

    private static final Set<String> PROPERTY_NAMES;
    private static final Set<String> SECRET_PROPERTY_NAMES;
    private static final Set<String> MULTI_VALUE_PREFIXES;
    static {
        Set<String> props = new HashSet<>(37);
        props.add("address");
        props.add("allowStreaming");
        props.add("beanId");
        props.add("bindingId");
        props.add("bridgeErrorHandler");
        props.add("bus");
        props.add("continuationTimeout");
        props.add("cookieHandler");
        props.add("cxfBinding");
        props.add("cxfConfigurer");
        props.add("dataFormat");
        props.add("defaultBus");
        props.add("defaultOperationName");
        props.add("defaultOperationNamespace");
        props.add("exceptionHandler");
        props.add("exchangePattern");
        props.add("headerFilterStrategy");
        props.add("hostnameVerifier");
        props.add("lazyStartProducer");
        props.add("loggingFeatureEnabled");
        props.add("loggingSizeLimit");
        props.add("mergeProtocolHeaders");
        props.add("mtomEnabled");
        props.add("password");
        props.add("portName");
        props.add("properties");
        props.add("publishedEndpointUrl");
        props.add("serviceClass");
        props.add("serviceName");
        props.add("skipFaultLogging");
        props.add("skipPayloadMessagePartCheck");
        props.add("sslContextParameters");
        props.add("synchronous");
        props.add("username");
        props.add("wrapped");
        props.add("wrappedStyle");
        props.add("wsdlURL");
        PROPERTY_NAMES = Collections.unmodifiableSet(props);
        Set<String> secretProps = new HashSet<>(2);
        secretProps.add("password");
        secretProps.add("username");
        SECRET_PROPERTY_NAMES = Collections.unmodifiableSet(secretProps);
        Set<String> prefixes = new HashSet<>(1);
        prefixes.add("properties.");
        MULTI_VALUE_PREFIXES = Collections.unmodifiableSet(prefixes);
    }

    @Override
    public boolean isEnabled(String scheme) {
        return "cxf".equals(scheme);
    }

    @Override
    public String buildUri(String scheme, Map<String, Object> properties, boolean encode) throws URISyntaxException {
        String syntax = scheme + BASE;
        String uri = syntax;

        Map<String, Object> copy = new HashMap<>(properties);

        uri = buildPathParameter(syntax, uri, "beanId", null, false, copy);
        uri = buildPathParameter(syntax, uri, "address", null, false, copy);
        uri = buildQueryParameters(uri, copy, encode);
        return uri;
    }

    @Override
    public Set<String> propertyNames() {
        return PROPERTY_NAMES;
    }

    @Override
    public Set<String> secretPropertyNames() {
        return SECRET_PROPERTY_NAMES;
    }

    @Override
    public Set<String> multiValuePrefixes() {
        return MULTI_VALUE_PREFIXES;
    }

    @Override
    public boolean isLenientProperties() {
        return false;
    }
}


text:
<resources>
    <!-- Default screen margins, per the Android Design guidelines. -->
    <dimen name="activity_horizontal_margin">16dp</dimen>
    <dimen name="activity_vertical_margin">16dp</dimen>

    <dimen name="text_normal_size">18sp</dimen>
    <dimen name="text_small_size">16sp</dimen>
    <dimen name="fab_margin">16dp</dimen>

</resources>


text:
@interface SelectedCase : NSObject {
    NSString * caseID;
    int times;
}

@property (nonatomic, retain) NSString * caseID;
@property (nonatomic, assign) int times;
@end

@interface SelectedClass : NSObject {
    NSString * testClassName;
    NSMutableArray *selectedCases;
    int times;
}

@property (nonatomic, retain) NSString * testClassName;
@property (nonatomic, retain) NSMutableArray *selectedCases;
@property (nonatomic, assign) int times;
@end

@interface CaseSelectorParser : NSObject <NSXMLParserDelegate> {
    NSMutableArray *testClasses;
    NSMutableString *currentProperty;
    SelectedCase *currentCase;
    SelectedClass *currentClass;
    NSDictionary *currentClassAttributes;
    NSDictionary *currentCaseAttributes;
}

@property (nonatomic, retain) NSMutableArray *testClasses;
@property (nonatomic, retain) NSMutableString *currentProperty;
@property (nonatomic, retain) SelectedClass *currentClass;
@property (nonatomic, retain) SelectedCase *currentCase;
@property (nonatomic, retain) NSDictionary *currentClassAttributes;
@property (nonatomic, retain) NSDictionary *currentCaseAttributes;

-(void)parseCaseSelector:(NSData *)data parseError:(NSError **)err;

@end


text:
using System.Management.Automation.Internal;
using System.Globalization;
using System.Diagnostics;
using System.Text;
using System.Collections.ObjectModel;

namespace System.Management.Automation.Help
{
    /// <summary>
    /// Represents each supported culture.
    /// </summary>
    internal class CultureSpecificUpdatableHelp
    {
        /// <summary>
        /// Class constructor.
        /// </summary>
        /// <param name="culture">Culture info.</param>
        /// <param name="version">Version info.</param>
        internal CultureSpecificUpdatableHelp(CultureInfo culture, Version version)
        {
            Debug.Assert(version != null);
            Debug.Assert(culture != null);

            Culture = culture;
            Version = version;
        }

        /// <summary>
        /// Culture version.
        /// </summary>
        internal Version Version { get; set; }

        /// <summary>
        /// Supported culture.
        /// </summary>
        internal CultureInfo Culture { get; set; }
    }

    /// <summary>
    /// This class represents the HelpInfo metadata XML.
    /// </summary>
    internal class UpdatableHelpInfo
    {
        /// <summary>
        /// Class constructor.
        /// </summary>
        /// <param name="unresolvedUri">Unresolved help content URI.</param>
        /// <param name="cultures">Supported UI cultures.</param>
        internal UpdatableHelpInfo(string unresolvedUri, CultureSpecificUpdatableHelp[] cultures)
        {
            Debug.Assert(cultures != null);

            UnresolvedUri = unresolvedUri;
            HelpContentUriCollection = new Collection<UpdatableHelpUri>();
            UpdatableHelpItems = cultures;
        }

        /// <summary>
        /// Unresolved URI.
        /// </summary>
        internal string UnresolvedUri { get; }

        /// <summary>
        /// Link to the actual help content.
        /// </summary>
        internal Collection<UpdatableHelpUri> HelpContentUriCollection { get; }

        /// <summary>
        /// Supported UI cultures.
        /// </summary>
        internal CultureSpecificUpdatableHelp[] UpdatableHelpItems { get; }

        /// <summary>
        /// Checks if the other HelpInfo has a newer version.
        /// </summary>
        /// <param name="helpInfo">HelpInfo object to check.</param>
        /// <param name="culture">Culture to check.</param>
        /// <returns>True if the other HelpInfo is newer, false if not.</returns>
        internal bool IsNewerVersion(UpdatableHelpInfo helpInfo, CultureInfo culture)
        {
            Debug.Assert(helpInfo != null);

            Version v1 = helpInfo.GetCultureVersion(culture);
            Version v2 = GetCultureVersion(culture);

            Debug.Assert(v1 != null);

            if (v2 == null)
            {
                return true;
            }

            return v1 > v2; ;
        }

        /// <summary>
        /// Checks if a culture is supported.
        /// </summary>
        /// <param name="culture">Culture to check.</param>
        /// <returns>True if supported, false if not.</returns>
        internal bool IsCultureSupported(CultureInfo culture)
        {
            Debug.Assert(culture != null);

            foreach (CultureSpecificUpdatableHelp updatableHelpItem in UpdatableHelpItems)
            {
                if (string.Compare(updatableHelpItem.Culture.Name, culture.Name,
                    StringComparison.OrdinalIgnoreCase) == 0)
                {
                    return true;
                }
            }

            return false;
        }

        /// <summary>
        /// Gets a string representation of the supported cultures.
        /// </summary>
        /// <returns>Supported cultures in string.</returns>
        internal string GetSupportedCultures()
        {
            if (UpdatableHelpItems.Length == 0)
            {
                return StringUtil.Format(HelpDisplayStrings.None);
            }

            StringBuilder sb = new StringBuilder();

            for (int i = 0; i < UpdatableHelpItems.Length; i++)
            {
                sb.Append(UpdatableHelpItems[i].Culture.Name);

                if (i != (UpdatableHelpItems.Length - 1))
                {
                    sb.Append(" | ");
                }
            }

            return sb.ToString();
        }

        /// <summary>
        /// Gets the culture version.
        /// </summary>
        /// <param name="culture">Culture info.</param>
        /// <returns>Culture version.</returns>
        internal Version GetCultureVersion(CultureInfo culture)
        {
            foreach (CultureSpecificUpdatableHelp updatableHelpItem in UpdatableHelpItems)
            {
                if (string.Compare(updatableHelpItem.Culture.Name, culture.Name,
                    StringComparison.OrdinalIgnoreCase) == 0)
                {
                    return updatableHelpItem.Version;
                }
            }

            return null;
        }
    }
}


text:
#region Usings

using System;
using System.Text;
using System.Collections.Generic;
using System.Text.RegularExpressions;

using de.ahzf.Illias.Commons;

#endregion

namespace de.ahzf.Styx
{

    public class FixLineBreaksPipe : AbstractPipe<String, String>
    {

        #region Data

        private readonly Regex         StartOfNewLineRegExpr;
        private          Boolean       IgnoreFirstLineMatch;
        private readonly StringBuilder FixedLine;
        private readonly String        NewLineSeperator;

        #endregion

        #region Constructor(s)

        #region FixLineBreaksPipe(StartOfNewLineRegExpr, NewLineSeperator, IEnumerable = null, IEnumerator = null)

        /// <summary>
        /// Sometimes there are unwanted new line characters within CSV files.
        /// This pipe tries to detect real new lines based on the given regular expression
        /// and concatenates the dangling lines using the given NewLineSeperator.
        /// </summary>
        /// <param name="StartOfNewLineRegExpr">A regular expression detecting real new lines.</param>
        /// <param name="NewLineSeperator">The new line seperator between the prior dangling lines.</param>
        /// <param name="IEnumerable">An enumeration of lines.</param>
        /// <param name="IEnumerator">An enumerator of lines.</param>
        public FixLineBreaksPipe(Regex StartOfNewLineRegExpr, String NewLineSeperator, IEnumerable<String> IEnumerable = null, IEnumerator<String> IEnumerator = null)
            : base(IEnumerable, IEnumerator)
        {

            #region Initial checks

            if (StartOfNewLineRegExpr == null)
                throw new ArgumentNullException("StartOfNewLineRegExpr", "The parameter 'StartOfNewLineRegExpr' must not be null!");

            if (NewLineSeperator == null)
                throw new ArgumentNullException("NewLineSeperator", "The parameter 'NewLineSeperator' must not be null!");

            #endregion

            this.StartOfNewLineRegExpr = StartOfNewLineRegExpr;
            this.IgnoreFirstLineMatch  = true;
            this.FixedLine             = new StringBuilder();
            this.NewLineSeperator      = NewLineSeperator;

        }

        #endregion

        #region FixLineBreaksPipe(StartOfNewLineRegExprString, NewLineSeperator, IEnumerable = null, IEnumerator = null)

        /// <summary>
        /// Sometimes there are unwanted new line characters within CSV files.
        /// This pipe tries to detect real new lines based on the given regular expression
        /// and concatenates the dangling lines using the given NewLineSeperator.
        /// </summary>
        /// <param name="StartOfNewLineRegExprString">A regular expression detecting real new lines.</param>
        /// <param name="NewLineSeperator">The new line seperator between the prior dangling lines.</param>
        /// <param name="IEnumerable">An enumeration of lines.</param>
        /// <param name="IEnumerator">An enumerator of lines.</param>
        public FixLineBreaksPipe(String StartOfNewLineRegExprString, String NewLineSeperator, IEnumerable<String> IEnumerable = null, IEnumerator<String> IEnumerator = null)
            : base(IEnumerable, IEnumerator)
        {

            #region Initial checks

            if (StartOfNewLineRegExprString.IsNullOrEmpty())
                throw new ArgumentNullException("StartOfNewLineRegExprString", "The parameter 'StartOfNewLineRegExprString' must not be null!");

            if (NewLineSeperator == null)
                throw new ArgumentNullException("NewLineSeperator", "The parameter 'NewLineSeperator' must not be null!");

            #endregion

            this.StartOfNewLineRegExpr = new Regex(StartOfNewLineRegExprString);
            this.IgnoreFirstLineMatch  = true;
            this.FixedLine             = new StringBuilder();
            this.NewLineSeperator      = NewLineSeperator;

        }

        #endregion

        #endregion

        #region MoveNext()

        /// <summary>
        /// Advances the enumerator to the next element of the collection.
        /// </summary>
        /// <returns>
        /// True if the enumerator was successfully advanced to the next
        /// element; false if the enumerator has passed the end of the
        /// collection.
        /// </returns>
        public override Boolean MoveNext()
        {

            if (_InternalEnumerator == null)
                return false;

            while (_InternalEnumerator.MoveNext())
            {

                if (this.StartOfNewLineRegExpr.IsMatch(_InternalEnumerator.Current))
                {

                    if (this.IgnoreFirstLineMatch)
                    {
                        this.IgnoreFirstLineMatch = false;
                        this.FixedLine.Append(_InternalEnumerator.Current).Append(this.NewLineSeperator);
                    }

                    else
                    {
                        _CurrentElement = this.FixedLine.ToString();
                        this.FixedLine.Clear();
                        this.FixedLine.Append(_InternalEnumerator.Current).Append(this.NewLineSeperator);
                        return true;
                    }

                }

                else
                    this.FixedLine.Append(_InternalEnumerator.Current).Append(this.NewLineSeperator);

            }

            return false;

        }

        #endregion

        #region ToString()

        /// <summary>
        /// A string representation of this pipe.
        /// </summary>
        public override String ToString()
        {
            return base.ToString() + "<" + _InternalEnumerator.Current + ">";
        }

        #endregion

    }

}


text:
<?php

class Octopus_Html_Page_DefaultUrlifier {

    private $app;

    public function __construct($app = null) {
        $this->app = $app;
    }

    public function getUrlForFile($file, Octopus_Html_Page $page) {

        $app = $this->app ? $this->app : Octopus_App::singleton();
        if (!$app) return $file;

        $root = $app->ROOT_DIR;

        $mtime = '';
        if (is_file($file)) {
            $mtime = @filemtime($file);
            $mtime = $mtime ? "?$mtime" : '';
        }

        if (starts_with($file, $root)) {
            $file = substr($file, strlen($root));
            $file = start_in('/', $file);
        }

        // HACK: When installed locally, SoleCMS defines ROOT_DIR as
        // /whatever/core/ and SITE_DIR as /whatever/sites/site, not
        // /whatever/core/sites/site, so stripping ROOT_DIR off SITE_DIR
        // fails.
        if (defined('SG_VERSION')) {
            $root = preg_replace('#/core/$#', '/', $root, -1, $count);
            if ($count > 0 && starts_with($file, $root, false, $remainder)) {
                return $app->URL_BASE . $remainder . $mtime;
            }
        }

        // Fall back to just URL_BASE/file
        return $app->URL_BASE . ltrim($file, '/') . $mtime;

    }

}


text:
require_relative '../../../spec_helper'

require Arachni::Options.instance.dir['lib'] + 'rpc/server/output'

describe Arachni::UI::Output do
    before( :all ) do
        @opts = Arachni::Options.instance
        @out  = Arachni::UI::Output
        @out.mute
        @@msg = 'This is a @msg!'

        @logfile = @opts.dir['logs'] + 'output_spec.log'

        @e = Exception.new( 'Stuff' )
        @e.set_backtrace( [ 'backtrace line1', 'backtrace line2' ] )
    end

    after( :all ) { File.delete( @logfile ) }

    context 'when buffering the messages' do
        it 'should not hold more than 30 messages by default' do
            50.times { @out.print_error( @msg ) }
            @out.flush_buffer.size == 30
        end

        describe '#uncap_buffer' do
            it 'should remove the buffer limits' do
                @out.uncap_buffer
                500.times { @out.print_error( @msg ) }
                @out.flush_buffer.size == 500
            end
        end

        describe '#set_buffer_cap' do
            it 'should set a buffer limit' do
                @out.set_buffer_cap( 50 )
                500.times { @out.print_error( @msg ) }
                @out.flush_buffer.size == 50
            end
        end

        describe '#print_error' do
            it 'should log an error' do
                @out.print_error( @msg )
                @out.flush_buffer.first.should == { error: @msg }
            end
        end

        describe '#print_error_backtrace' do
            it 'should log the backtrace from the provided exception' do
                @out.print_error_backtrace( @e )
                @out.flush_buffer.should == @e.backtrace.map { |l| { error: l } }
            end
        end

        describe '#print_bad' do
            it 'should log a bad msg' do
                @out.print_bad( @msg )
                @out.flush_buffer.first.should == { bad: @msg }
            end
        end

        context 'when only_positives is disabled' do

            describe '#only_positives?' do
                it 'should return true' do
                    @out.only_positives?.should be_false
                end
            end

            describe '#print_status' do
                it 'should log a status msg' do
                    @out.print_status( @msg )
                    @out.flush_buffer.first.should == { status: @msg }
                end
            end

            describe '#print_info' do
                it 'should log an informational msg' do
                    @out.print_info( @msg )
                    @out.flush_buffer.first.should == { info: @msg }
                end
            end

            describe '#print_line' do
                it 'should log a regular msg' do
                    @out.print_line( @msg )
                    @out.flush_buffer.first.should == { line: @msg }
                end
            end
        end

        context 'when only_positives is enabled' do
            before( :all ) { @out.only_positives }

            describe '#only_positives?' do
                it 'should return true' do
                    @out.only_positives?.should be_true
                end
            end

            describe '#print_status' do
                it 'should log a status msg' do
                    @out.print_status( @msg )
                    @out.flush_buffer.should be_empty
                end
            end

            describe '#print_info' do
                it 'should log an informational msg' do
                    @out.print_info( @msg )
                    @out.flush_buffer.should be_empty
                end
            end

            describe '#print_line' do
                it 'should log a regular msg' do
                    @out.print_line( @msg )
                    @out.flush_buffer.should be_empty
                end
            end
        end

        describe '#print_ok' do
            it 'should log an OK (successful) msg' do
                @out.print_ok( @msg )
                @out.flush_buffer.first.should == { ok: @msg }
            end
        end

        context 'with disabled verbosity' do
            describe '#verbose?' do
                it 'should return false' do
                    @out.verbose?.should be_false
                end
            end

            describe '#print_verbose' do
                it 'should log an OK (successful) msg' do
                    @out.print_verbose( @msg )
                    @out.flush_buffer.should be_empty
                end
            end
        end

        context 'with enabled verbosity' do
            before { @out.verbose }

            describe '#verbose?' do
                it 'should return true' do
                    @out.verbose?.should be_true
                end
            end

            describe '#print_verbose' do
                it 'should log a verbose msg' do
                    @out.print_verbose( @msg )
                    @out.flush_buffer.first.should == { verbose: @msg }
                end
            end
        end

        context 'when debugging is disabled' do

            describe '#debug?' do
                it 'should return false' do
                    @out.debug?.should be_false
                end
            end

            describe '#print_debug' do
                it 'should not log anything' do
                    @out.print_debug( @msg )
                    @out.flush_buffer.should be_empty
                end
            end

            describe '#print_debug_pp' do
                it 'should not log anything' do
                    @out.print_debug_pp( @msg )
                    @out.flush_buffer.should be_empty
                end
            end

            describe '#print_debug_backtrace' do
                it 'should not log anything' do
                    @out.print_debug_backtrace( @e )
                    @out.flush_buffer.should be_empty
                end
            end
        end

        context 'when debugging is enabled' do
            before( :all ) { @out.debug }

            describe '#debug?' do
                it 'should return true' do
                    @out.debug?.should be_true
                end
            end

            describe '#print_debug' do
                it 'should not log anything' do
                    @out.print_debug( @msg )
                    @out.flush_buffer.should be_empty
                end
            end

            describe '#print_debug_pp' do
                it 'should not log anything' do
                    @out.print_debug_pp( @msg )
                    @out.flush_buffer.should be_empty
                end
            end

            describe '#print_debug_backtrace' do
                it 'should not log anything' do
                    @out.print_debug_backtrace( @e )
                    @out.flush_buffer.should be_empty
                end
            end
        end
    end

    context 'when rerouting messages to a logfile' do
        before( :all ) do
            @out.reset_output_options
            @out.reroute_to_file( @logfile )
        end

        it 'output should be sent to the file' do
            @out.print_line( 'blah' )
            @out.flush_buffer.should be_empty
            IO.read( @logfile ).split( "\n" ).size == 1
        end
    end
end


text:
<?php

declare(strict_types=1);

namespace Auth0\SDK\Contract\Token;

/**
 * Interface ValidatorInterface
 */
interface ValidatorInterface
{
    /**
     * Validate the 'aud' claim.
     *
     * @param array<string> $expects An array of allowed values for the 'aud' claim. Successful if ANY match.
     *
     * @throws \Auth0\SDK\Exception\InvalidTokenException When claim validation fails.
     */
    public function audience(
        array $expects
    ): self;

    /**
     * Validate the 'auth_time' claim.
     *
     * @param int      $maxAge Maximum window of time in seconds since the 'auth_time' to accept the token.
     * @param int      $leeway Leeway in seconds to allow during time calculations.
     * @param int|null $now    Optional. Unix timestamp representing the current point in time to use for time calculations.
     *
     * @throws \Auth0\SDK\Exception\InvalidTokenException When claim validation fails.
     */
    public function authTime(
        int $maxAge,
        int $leeway = 60,
        ?int $now = null
    ): self;

    /**
     * Validate the 'azp' claim.
     *
     * @param array<string> $expects An array of allowed values for the 'azp' claim. Successful if ANY match.
     *
     * @throws \Auth0\SDK\Exception\InvalidTokenException When claim validation fails.
     */
    public function authorizedParty(
        array $expects
    ): self;

    /**
     * Validate the 'exp' claim.
     *
     * @param int      $leeway Leeway in seconds to allow during time calculations.
     * @param int|null $now    Optional. Unix timestamp representing the current point in time to use for time calculations.
     *
     * @throws \Auth0\SDK\Exception\InvalidTokenException When claim validation fails.
     */
    public function expiration(
        int $leeway = 60,
        ?int $now = null
    ): self;

    /**
     * Validate the 'iat' claim is present.
     *
     * @throws \Auth0\SDK\Exception\InvalidTokenException When claim validation fails.
     */
    public function issued(): self;

    /**
     * Validate the 'iss' claim.
     *
     * @param string $expects The value to compare with the claim.
     *
     * @throws \Auth0\SDK\Exception\InvalidTokenException When claim validation fails.
     */
    public function issuer(
        string $expects
    ): self;

    /**
     * Validate the 'nonce' claim.
     *
     * @param string $expects The value to compare with the claim.
     *
     * @throws \Auth0\SDK\Exception\InvalidTokenException When claim validation fails.
     */
    public function nonce(
        string $expects
    ): self;

    /**
     * Validate the 'org_id' claim.
     *
     * @param array<string> $expects An array of allowed values for the 'org_id' claim. Successful if ANY match.
     *
     * @throws \Auth0\SDK\Exception\InvalidTokenException When claim validation fails.
     */
    public function organization(
        array $expects
    ): self;

    /**
     * Validate the 'sub' claim is present.
     *
     * @throws \Auth0\SDK\Exception\InvalidTokenException When claim validation fails.
     */
    public function subject(): self;
}


text: default_app_config = 'froide.guide.apps.GuideConfig'


text:
using Ode.NET;
using System.Runtime.InteropServices;

namespace Drawstuff.NET
{
#if dDOUBLE
    using dReal = System.Double;
#else

    using dReal = System.Single;

#endif

    public static class ds
    {
        public const int VERSION = 2;

        [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
        public delegate void CallbackFunction(int arg);

        public enum Texture
        {
            None,
            Wood
        }

        [DllImport("drawstuff", EntryPoint = "dsDrawBox")]
        public static extern void DrawBox(ref d.Vector3 pos, ref d.Matrix3 R, ref d.Vector3 sides);

        [DllImport("drawstuff", EntryPoint = "dsDrawCapsule")]
        public static extern void DrawCapsule(ref d.Vector3 pos, ref d.Matrix3 R, dReal length, dReal radius);

        [DllImport("drawstuff", EntryPoint = "dsDrawConvex")]
        public static extern void DrawConvex(ref d.Vector3 pos, ref d.Matrix3 R, dReal[] planes, int planeCount, dReal[] points, int pointCount, int[] polygons);

        [DllImport("drawstuff", EntryPoint = "dsSetColor")]
        public static extern void SetColor(float red, float green, float blue);

        [DllImport("drawstuff", EntryPoint = "dsSetTexture")]
        public static extern void SetTexture(Texture texture);

        [DllImport("drawstuff", EntryPoint = "dsSetViewpoint")]
        public static extern void SetViewpoint(ref d.Vector3 xyz, ref d.Vector3 hpr);

        [DllImport("drawstuff", EntryPoint = "dsSimulationLoop")]
        public static extern void SimulationLoop(int argc, string[] argv, int window_width, int window_height, ref Functions fn);

        [StructLayout(LayoutKind.Sequential)]
        public struct Functions
        {
            public int version;
            public CallbackFunction start;
            public CallbackFunction step;
            public CallbackFunction command;
            public CallbackFunction stop;
            public string path_to_textures;
        }
    }
}


text:
using System.Linq;
using System.Threading.Tasks;

using set.web.Data.Entities;
using set.web.Helpers;

namespace set.web.Data.Services
{
    public class DomainObjectService : BaseService, IDomainObjectService
    {
        public Task<bool> Create(string name, string updatedBy)
        {
            var user = Context.Users.FirstOrDefault(x => x.Id == updatedBy);
            if (user == null) return Task.FromResult(false);

            var model = new DomainObject { Name = name, CreatedBy = user.Id };

            Context.DomainObjects.Add(model);

            return Task.FromResult(Context.SaveChanges() > 0);
        }

        public Task<PagedList<DomainObject>> GetDomainObjects(int pageNumber)
        {
            if (pageNumber < 1)
            {
                pageNumber = 1;
            }

            var query = Context.Set<DomainObject>();

            var count = query.Count();
            var items = query.OrderByDescending(x => x.Id).Skip(ConstHelper.PageSize * (pageNumber - 1)).Take(ConstHelper.PageSize).ToList();

            return Task.FromResult(new PagedList<DomainObject>(pageNumber, ConstHelper.PageSize, count, items));
        }

        public Task<DomainObject> Get(string id)
        {
            return Task.FromResult(Context.Set<DomainObject>().Find(id));
        }
    }

    public interface IDomainObjectService
    {
        Task<bool> Create(string name, string updatedBy);

        Task<PagedList<DomainObject>> GetDomainObjects(int pageNumber);

        Task<DomainObject> Get(string id);
    }
}


text:
using UnityEngine;
using UnityEditor;

using System;
using System.Linq;
using System.Collections.Generic;

using Model=UnityEngine.AssetGraph.DataModel.Version2;

namespace UnityEngine.AssetGraph {
	[Serializable]
    public class NodeGUI : ScriptableObject {

		[SerializeField] private int m_nodeWindowId;
		[SerializeField] private Rect m_baseRect;

		[SerializeField] private Model.NodeData m_data;
		[SerializeField] private Model.ConfigGraph m_graph;

		[SerializeField] private string m_nodeSyle;

        [SerializeField] private AssetGraphController m_controller;
        [SerializeField] private List<string> m_errors = new List<string>();

		/*
			show error on node functions.
		*/
		private bool m_hasErrors = false;
		/*
					show progress on node functions(unused. due to mainthread synchronization problem.)
			can not update any visual on Editor while building AssetBundles through AssetBundleGraph.
		*/
		private float m_progress;
		private bool m_running;

		/*
		 * Properties
		 */
		public string Name {
			get {
				return m_data.Name;
			}
			set {
				m_data.Name = value;
                this.name = value;
			}
		}

		public string Id {
			get {
				return m_data.Id;
			}
		}

		public Model.NodeData Data {
			get {
				return m_data;
			}
		}

		public Rect Region {
			get {
				return m_baseRect;
			}
		}

		public Model.ConfigGraph ParentGraph {
			get {
				return m_graph;
			}
		}

        public AssetGraphController Controller {
            get {
                return m_controller;
            }
        }

        public List<string> Errors {
            get {
                return m_errors;
            }
        }

		public void ResetErrorStatus () {
			m_hasErrors = false;
			UpdateErrors(new List<string>());
		}

		public void AppendErrorSources (List<string> errors) {
			this.m_hasErrors = true;
			UpdateErrors(errors);
		}

		public int WindowId {
			get {
				return m_nodeWindowId;
			}

			set {
				m_nodeWindowId = value;
			}
		}

        public void OnUndoObject(AssetGraphController c) {
            m_data.ResetInstance ();
            m_controller = c;
        }

        public static NodeGUI CreateNodeGUI(AssetGraphController c, Model.NodeData data) {

            var newNode = ScriptableObject.CreateInstance<NodeGUI> ();
            newNode.Init (c, data);
            return newNode;
        }

        private void Init (AssetGraphController c, Model.NodeData data) {
			m_nodeWindowId = 0;
            m_controller = c;
            m_graph = m_controller.TargetGraph;
			m_data = data;
            name = m_data.Name;

			m_baseRect = new Rect(m_data.X, m_data.Y, Model.Settings.GUI.NODE_BASE_WIDTH, Model.Settings.GUI.NODE_BASE_HEIGHT);

			m_nodeSyle = data.Operation.Object.InactiveStyle;
		}

		public NodeGUI Duplicate (AssetGraphController controller, float newX, float newY) {
			var data = m_data.Duplicate();
			data.X = newX;
			data.Y = newY;
            return CreateNodeGUI (controller, data);
		}

		public void SetActive (bool active) {
			if(active) {
				Selection.activeObject = this;
				m_nodeSyle = m_data.Operation.Object.ActiveStyle;
			} else {
				m_nodeSyle = m_data.Operation.Object.InactiveStyle;
			}
		}

        public void UpdateErrors (List<string> errorsSource) {
            m_errors = errorsSource;
        }

		private void RefreshConnectionPos (float yOffset) {
			for (int i = 0; i < m_data.InputPoints.Count; i++) {
				var point = m_data.InputPoints[i];
				point.UpdateRegion(this, yOffset, i, m_data.InputPoints.Count);
			}

			for (int i = 0; i < m_data.OutputPoints.Count; i++) {
				var point = m_data.OutputPoints[i];
				point.UpdateRegion(this, yOffset, i, m_data.OutputPoints.Count);
			}
		}

		private bool IsValidInputConnectionPoint(Model.ConnectionPointData point) {
			return m_data.Operation.Object.IsValidInputConnectionPoint(point);
		}

		/**
			retrieve mouse events for this node in this GraphEditor window.
		*/
		private void HandleNodeMouseEvent () {
			switch (Event.current.type) {

			/*
					handling release of mouse drag from this node to another node.
					this node doesn't know about where the other node is. the master only knows.
					only emit event.
				*/
			case EventType.Ignore: {
					NodeGUIUtility.NodeEventHandler(new NodeEvent(NodeEvent.EventType.EVENT_CONNECTING_END, this, Event.current.mousePosition, null));
					break;
				}

				/*
					check if the mouse-down point is over one of the connectionPoint in this node.
					then emit event.
				*/
			case EventType.MouseDown: {
					Model.ConnectionPointData result = IsOverConnectionPoint(Event.current.mousePosition);

					if (result != null) {
						NodeGUIUtility.NodeEventHandler(new NodeEvent(NodeEvent.EventType.EVENT_CONNECTING_BEGIN, this, Event.current.mousePosition, result));
						break;
					} else {
						NodeGUIUtility.NodeEventHandler(new NodeEvent(NodeEvent.EventType.EVENT_NODE_CLICKED,
							this, Event.current.mousePosition, null));
					}
					break;
				}
			}

			/*
				retrieve mouse events for this node in|out of this GraphTool window.
			*/
			switch (Event.current.rawType) {
			case EventType.MouseUp: {
					bool eventSent = false;
					// send EVENT_CONNECTION_ESTABLISHED event if MouseUp performed on ConnectionPoint
					Action<Model.ConnectionPointData> raiseEventIfHit = (Model.ConnectionPointData point) => {
						// Only one connectionPoint can send NodeEvent.
						if(eventSent) {
							return;
						}

						// If InputConnectionPoint is not valid at this moment, ignore
						if(!IsValidInputConnectionPoint(point)) {
							return;
						}

						if (point.Region.Contains(Event.current.mousePosition)) {
							NodeGUIUtility.NodeEventHandler(
								new NodeEvent(NodeEvent.EventType.EVENT_CONNECTION_ESTABLISHED,
									this, Event.current.mousePosition, point));
							eventSent = true;
							return;
						}
					};
					m_data.InputPoints.ForEach(raiseEventIfHit);
					m_data.OutputPoints.ForEach(raiseEventIfHit);
					break;
				}
			}

			/*
				right click to open Context menu
			*/
			if (Event.current.type == EventType.ContextClick || (Event.current.type == EventType.MouseUp && Event.current.button == 1))
			{
				var menu = new GenericMenu();

				Data.Operation.Object.OnContextMenuGUI(menu);

				menu.AddItem(
					new GUIContent("Delete"),
					false,
					() => {
						NodeGUIUtility.NodeEventHandler(new NodeEvent(NodeEvent.EventType.EVENT_NODE_DELETE, this, Vector2.zero, null));
					}
				);
				menu.ShowAsContext();
				Event.current.Use();
			}
		}

		public void DrawConnectionInputPointMark (NodeEvent eventSource, bool justConnecting) {
			var defaultPointTex = NodeGUIUtility.pointMark;
			var lastColor = GUI.color;

			bool shouldDrawEnable =
				!( eventSource != null && eventSource.eventSourceNode != null &&
					!Model.ConnectionData.CanConnect(eventSource.eventSourceNode.Data, m_data)
				);

			bool shouldDrawWithEnabledColor =
				shouldDrawEnable && justConnecting &&
				eventSource != null &&
				eventSource.eventSourceNode.Id != this.Id &&
				eventSource.point.IsOutput;

			foreach (var point in m_data.InputPoints) {
				if(IsValidInputConnectionPoint(point)) {
					if(shouldDrawWithEnabledColor) {
						GUI.color = Model.Settings.GUI.COLOR_CAN_CONNECT;
					} else {
						GUI.color = (justConnecting) ? Model.Settings.GUI.COLOR_CAN_NOT_CONNECT : Model.Settings.GUI.COLOR_CONNECTED;
					}

					GUI.DrawTexture(point.GetGlobalPointRegion(this), defaultPointTex);
					GUI.color = lastColor;
				}
			}
		}

		public void DrawConnectionOutputPointMark (NodeEvent eventSource, bool justConnecting, Event current) {
			var defaultPointTex = NodeGUIUtility.pointMark;
			var lastColor = GUI.color;

			bool shouldDrawEnable =
				!( eventSource != null && eventSource.eventSourceNode != null &&
					!Model.ConnectionData.CanConnect(m_data, eventSource.eventSourceNode.Data)
				);

			bool shouldDrawWithEnabledColor =
				shouldDrawEnable && justConnecting
				&& eventSource != null
				&& eventSource.eventSourceNode.Id != this.Id
				&& eventSource.point.IsInput;

			var globalMousePosition = current.mousePosition;

			foreach (var point in m_data.OutputPoints) {
				var pointRegion = point.GetGlobalPointRegion(this);

				if(shouldDrawWithEnabledColor) {
					GUI.color = Model.Settings.GUI.COLOR_CAN_CONNECT;
				} else {
					GUI.color = (justConnecting) ? Model.Settings.GUI.COLOR_CAN_NOT_CONNECT : Model.Settings.GUI.COLOR_CONNECTED;
				}
				GUI.DrawTexture(
					pointRegion,
					defaultPointTex
				);
				GUI.color = lastColor;

				// eventPosition is contained by outputPointRect.
				if (pointRegion.Contains(globalMousePosition)) {
					if (current.type == EventType.MouseDown) {
						NodeGUIUtility.NodeEventHandler(
							new NodeEvent(NodeEvent.EventType.EVENT_CONNECTING_BEGIN, this, current.mousePosition, point));
					}
				}
			}
		}

		public void DrawNode () {
			GUIStyle s = NodeGUIUtility.nodeSkin.FindStyle(m_nodeSyle);
			GUI.Window(m_nodeWindowId, m_baseRect, DrawThisNode, string.Empty,  s);
		}

		private void DrawThisNode(int id) {
			UpdateNodeRect ();
			HandleNodeMouseEvent ();
			DrawNodeContents();
		}

		private void DrawNodeContents () {
			var oldColor = GUI.color;
			var textColor = (EditorGUIUtility.isProSkin)? Color.black : oldColor;
			var style = new GUIStyle(EditorStyles.label);
			style.alignment = TextAnchor.MiddleCenter;

			var connectionNodeStyleOutput = new GUIStyle(EditorStyles.label);
			connectionNodeStyleOutput.alignment = TextAnchor.MiddleRight;

			var connectionNodeStyleInput = new GUIStyle(EditorStyles.label);
			connectionNodeStyleInput.alignment = TextAnchor.MiddleLeft;

			var titleHeight = style.CalcSize(new GUIContent(Name)).y + Model.Settings.GUI.NODE_TITLE_HEIGHT_MARGIN;
			var nodeTitleRect = new Rect(0, 0, m_baseRect.width, titleHeight);
			GUI.color = textColor;
			GUI.Label(nodeTitleRect, Name, style);
			GUI.color = oldColor;

			if (m_running) {
				EditorGUI.ProgressBar(new Rect(10f, m_baseRect.height - 20f, m_baseRect.width - 20f, 10f), m_progress, string.Empty);
			}
			if (m_hasErrors) {
				GUIStyle errorStyle = new GUIStyle("CN EntryError");
				errorStyle.alignment = TextAnchor.MiddleCenter;
				var labelSize = GUI.skin.label.CalcSize(new GUIContent(Name));
				EditorGUI.LabelField(new Rect((nodeTitleRect.width - labelSize.x )/2.0f - 28f, (nodeTitleRect.height-labelSize.y)/2.0f - 7f, 20f, 20f), string.Empty, errorStyle);
			}

			// draw & update connectionPoint button interface.
			Action<Model.ConnectionPointData> drawConnectionPoint = (Model.ConnectionPointData point) =>
			{
				var label = point.Label;
				if( label != Model.Settings.DEFAULT_INPUTPOINT_LABEL &&
					label != Model.Settings.DEFAULT_OUTPUTPOINT_LABEL)
				{
					var region = point.Region;
					// if point is output node, then label position offset is minus. otherwise plus.
					var xOffset = (point.IsOutput) ? - m_baseRect.width : Model.Settings.GUI.INPUT_POINT_WIDTH;
					var labelStyle = (point.IsOutput) ? connectionNodeStyleOutput : connectionNodeStyleInput;
					var labelRect = new Rect(region.x + xOffset, region.y - (region.height/2), m_baseRect.width, region.height*2);

					GUI.color = textColor;
					GUI.Label(labelRect, label, labelStyle);
					GUI.color = oldColor;
				}
				GUI.backgroundColor = Color.clear;
				Texture2D tex = (point.IsInput)? NodeGUIUtility.inputPointBG : NodeGUIUtility.outputPointBG;
				GUI.Button(point.Region, tex, "AnimationKeyframeBackground");
			};
			m_data.InputPoints.ForEach(drawConnectionPoint);
			m_data.OutputPoints.ForEach(drawConnectionPoint);

			GUIStyle catStyle = new GUIStyle("WhiteMiniLabel");
			catStyle.alignment = TextAnchor.LowerRight;
			var categoryRect = new Rect(2f, m_baseRect.height - 14f, m_baseRect.width - 4f, 16f);
			GUI.Label(categoryRect, m_data.Operation.Object.Category, catStyle);
		}

		public void UpdateNodeRect () {
			// UpdateNodeRect will be called outside OnGUI(), so it use inacurate but simple way to calcurate label width
			// instead of CalcSize()

			float labelWidth = GUI.skin.label.CalcSize(new GUIContent(this.Name)).x;
			float outputLabelWidth = 0f;
			float inputLabelWidth = 0f;

			if(m_data.InputPoints.Count > 0) {
				var inputLabels = m_data.InputPoints.OrderByDescending(p => p.Label.Length).Select(p => p.Label);
				if (inputLabels.Any()) {
					inputLabelWidth = GUI.skin.label.CalcSize(new GUIContent(inputLabels.First())).x;
				}
			}

			if(m_data.OutputPoints.Count > 0) {
				var outputLabels = m_data.OutputPoints.OrderByDescending(p => p.Label.Length).Select(p => p.Label);
				if (outputLabels.Any()) {
					outputLabelWidth = GUI.skin.label.CalcSize(new GUIContent(outputLabels.First())).x;
				}
			}

			var titleHeight = GUI.skin.label.CalcSize(new GUIContent(Name)).y + Model.Settings.GUI.NODE_TITLE_HEIGHT_MARGIN;

			// update node height by number of output connectionPoint.
			var nPoints = Mathf.Max(m_data.OutputPoints.Count, m_data.InputPoints.Count);
			this.m_baseRect = new Rect(m_baseRect.x, m_baseRect.y,
				m_baseRect.width,
				Model.Settings.GUI.NODE_BASE_HEIGHT + titleHeight + (Model.Settings.GUI.FILTER_OUTPUT_SPAN * Mathf.Max(0, (nPoints - 1)))
			);

			var newWidth = Mathf.Max(Model.Settings.GUI.NODE_BASE_WIDTH, outputLabelWidth + inputLabelWidth + Model.Settings.GUI.NODE_WIDTH_MARGIN);
			newWidth = Mathf.Max(newWidth, labelWidth + Model.Settings.GUI.NODE_WIDTH_MARGIN);
			m_baseRect = new Rect(m_baseRect.x, m_baseRect.y, newWidth, m_baseRect.height);

			RefreshConnectionPos(titleHeight);
		}

		private Model.ConnectionPointData IsOverConnectionPoint (Vector2 touchedPoint) {

			foreach(var p in m_data.InputPoints) {
				var region = p.Region;

				if(!IsValidInputConnectionPoint(p)) {
					continue;
				}

				if (region.x <= touchedPoint.x &&
					touchedPoint.x <= region.x + region.width &&
					region.y <= touchedPoint.y &&
					touchedPoint.y <= region.y + region.height
				) {
					return p;
				}
			}

			foreach(var p in m_data.OutputPoints) {
				var region = p.Region;
				if (region.x <= touchedPoint.x &&
					touchedPoint.x <= region.x + region.width &&
					region.y <= touchedPoint.y &&
					touchedPoint.y <= region.y + region.height
				) {
					return p;
				}
			}

			return null;
		}

		public Rect GetRect () {
			return m_baseRect;
		}

		public Vector2 GetPos () {
			return m_baseRect.position;
		}

		public int GetX () {
			return (int)m_baseRect.x;
		}

		public int GetY () {
			return (int)m_baseRect.y;
		}

		public int GetRightPos () {
			return (int)(m_baseRect.x + m_baseRect.width);
		}

		public int GetBottomPos () {
			return (int)(m_baseRect.y + m_baseRect.height);
		}

		public void SetPos (Vector2 position) {
			m_baseRect.position = position;
			m_data.X = position.x;
			m_data.Y = position.y;
		}

		public void MoveBy (Vector2 distance) {
			m_baseRect.position = m_baseRect.position + distance;
			m_data.X = m_data.X + distance.x;
			m_data.Y = m_data.Y + distance.y;
		}

		public void SetProgress (float val) {
			m_progress = val;
		}

		public void ShowProgress () {
			m_running = true;
		}

		public void HideProgress () {
			m_running = false;
		}

		public bool Conitains (Vector2 globalPos) {
			if (m_baseRect.Contains(globalPos)) {
				return true;
			}
			foreach (var point in m_data.OutputPoints) {
				if (point.GetGlobalPointRegion(this).Contains(globalPos)) {
					return true;
				}
			}
			return false;
		}

		public Model.ConnectionPointData FindConnectionPointByPosition (Vector2 globalPos) {

			foreach (var point in m_data.InputPoints) {
				if(!IsValidInputConnectionPoint(point)) {
					continue;
				}

				if (point.GetGlobalRegion(this).Contains(globalPos) ||
					point.GetGlobalPointRegion(this).Contains(globalPos))
				{
					return point;
				}
			}

			foreach (var point in m_data.OutputPoints) {
				if (point.GetGlobalRegion(this).Contains(globalPos) ||
					point.GetGlobalPointRegion(this).Contains(globalPos))
				{
					return point;
				}
			}

			return null;
		}

		public static void ShowTypeNamesMenu (string current, List<string> contents, Action<string> ExistSelected) {
			var menu = new GenericMenu();

			for (var i = 0; i < contents.Count; i++) {
				var type = contents[i];
				var selected = false;
				if (type == current) selected = true;

				menu.AddItem(
					new GUIContent(type),
					selected,
					() => {
						ExistSelected(type);
					}
				);
			}
			menu.ShowAsContext();
		}

		public static void ShowFilterKeyTypeMenu (string current, Action<string> Selected) {
			var menu = new GenericMenu();

			menu.AddDisabledItem(new GUIContent(current));

			menu.AddSeparator(string.Empty);

            var guiNames = FilterTypeUtility.GetFilterGUINames ();

            for (var i = 0; i < guiNames.Count; i++) {
                var name = guiNames[i];
				if (name == current) continue;

				menu.AddItem(
					new GUIContent(name),
					false,
					() => {
						Selected(name);
					}
				);
			}
			menu.ShowAsContext();
		}
	}
}


text:
<?php

require("private.php");

?>

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<title>eWebEditor在线编辑器 - 后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<frameset cols="150,*" framespacing="0" border="0" frameborder="0">
  <frame name="menu" src="menu.php" scrolling="yes">
  <frame name="main" src="main.php" scrolling="yes">
  <noframes>

此网页使用了框架,但您的浏览器不支持框架

  </noframes>
</frameset>


text:
export default {
  collectionPath: process.env.COLLECTION_PATH || "extractedText",
};


text:
var express = require('express');
var router = express.Router();

router.get('/', function(req, res, next) {
  res.render("eliminarProducto");
});

module.exports = router;


text:
require 'justdial/version'
require 'justdial/search'
require 'justdial/provider'
require 'justdial/exceptions'

module JustDial
  class Client
    def initialize(url, auth_tokens={})
      @url = url
      @auth_tokens = auth_tokens
    end

    def search(params={})
      search = Search.new(@url, @auth_tokens)
      search.execute(params)
    end
  end
end


text:
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>W30392_text</title>
        <link rel="stylesheet" type="text/css" href="style.css" />

                «

    <p class="styleSans430.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">nan-um n muuthnmmln mummy-a IMl-lvnflmhmmamdmlhmn ur M mu. NW1IJOE1IA Sudan 1' T.153N.. R.100w.. 5th EM. WIIlIInI County. ND
mam mu .2 MI mum anal-u Ih-l a. cum. In. mm. man In
~ Ind. Ind Ir- ol Vim-Ila" optimum in m with th- nwimunu of Am om
Id ASTM 02.22.
All "I I'll." M D! mm" to n" "-16.1
cam—nun hu- h- m-mu-u nun-val u 0-.- n my > " proctor lllh moluvlu mum awn-n ~21. u 395 of
Want—ml awn-Human-"
' Hanover Federal 5300 13-14 7T
on "5th ..
¥ ' I NW1MNE1/4 Sect! J53N.. n.1obw

u . 4 on m . ' WWYIMIDCWI'HMIGI Luna: «a
Ina

    <p class="styleSans173.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">

    <p class="styleSans20.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">

    <p class="styleSans25.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">

    <p class="styleSans2.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">


text:
cask "kitty" do
  version "0.26.4"
  sha256 "1f5fca141ce1b171dee4f342c0647b14c9c3af430a061eb203ee8572c81acdec"

  url "https://github.com/kovidgoyal/kitty/releases/download/v#{version}/kitty-#{version}.dmg"
  name "kitty"
  desc "GPU-based terminal emulator"
  homepage "https://github.com/kovidgoyal/kitty"

  depends_on macos: ">= :sierra"

  app "kitty.app"
  # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
  shimscript = "#{staged_path}/kitty.wrapper.sh"
  binary shimscript, target: "kitty"

  preflight do
    File.write shimscript, <<~EOS
      #!/bin/sh
      exec '#{appdir}/kitty.app/Contents/MacOS/kitty' "$@"
    EOS
  end

  zap trash: [
    "~/.config/kitty",
    "~/Library/Caches/kitty",
    "~/Library/Preferences/kitty",
    "~/Library/Preferences/net.kovidgoyal.kitty.plist",
    "~/Library/Saved Application State/net.kovidgoyal.kitty.savedState",
  ]
end


text:
void TypeInfoOf<ForeignPointer>::gCollect(GC gc, RichNode from, StableNode& to) const {
  assert(from.type() == type());
  to.make<ForeignPointer>(gc->vm, gc, from.access<ForeignPointer>());
}

void TypeInfoOf<ForeignPointer>::gCollect(GC gc, RichNode from, UnstableNode& to) const {
  assert(from.type() == type());
  to.make<ForeignPointer>(gc->vm, gc, from.access<ForeignPointer>());
}

void TypeInfoOf<ForeignPointer>::sClone(SC sc, RichNode from, StableNode& to) const {
  assert(from.type() == type());
  to.init(sc->vm, from);
}

void TypeInfoOf<ForeignPointer>::sClone(SC sc, RichNode from, UnstableNode& to) const {
  assert(from.type() == type());
  to.init(sc->vm, from);
}

template <class T>
inline
std::shared_ptr<T>  TypedRichNode<ForeignPointer>::value() {
  return _self.access<ForeignPointer>().value<T>();
}

inline
std::shared_ptr<void>  TypedRichNode<ForeignPointer>::getVoidPointer() {
  return _self.access<ForeignPointer>().getVoidPointer();
}

inline
const std::type_info &  TypedRichNode<ForeignPointer>::pointerType() {
  return _self.access<ForeignPointer>().pointerType();
}

template <class T>
inline
bool  TypedRichNode<ForeignPointer>::isPointer() {
  return _self.access<ForeignPointer>().isPointer<T>();
}