//--
// <copyright file="BuildObject.cs" company="Microsoft Corporation">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//--

namespace NuBuild
{
    using System;
    using System.Diagnostics;
    using System.IO;
    using System.Linq;
    using System.Xml;

    /// <summary>
    /// An abstract identifier for "nouns" (i.e. the things that verbs operate
    /// on -- both verb outputs and dependencies are BuildObjects).
    /// </summary>
    /// <remarks>
    /// Note that sometimes the code and/or comments about the code refer to
    /// BuildObjects as if they are the concrete thing that they identify as
    /// opposed to just being the abstract identifier for that thing.  This is
    /// probably okay, as there should be just one concrete instance of any
    /// particular abstract build object during a given run of the system.
    /// </remarks>
    public class BuildObject
    {
        /// <summary>
        /// The XML element name for this object.
        /// </summary>
        public const string XmlTag = "BuildObject";

        /// <summary>
        /// Path to this object as stored in the local filesystem, relative to
        /// the IronRoot (i.e. begins with "src", "obj", etc.).
        /// </summary>
        /// <remarks>
        /// This string is expected to be normalized to have consistent casing.
        /// </remarks>
        protected string path;

        /// <summary>
        /// Whether this object is considered "trusted" for verification
        /// purposes.
        /// </summary>
        private bool isTrusted;

        /// <summary>
        /// The filename of this object, without the file extension.
        /// </summary>
        private string filenameWithoutExtension;

        /// <summary>
        /// The filename extension for this object.
        /// </summary>
        private string filenameExtension;

        /// <summary>
        /// Initializes a new instance of the BuildObject class.
        /// </summary>
        /// <param name="path">
        /// Relative path to this object in the local filesystem.
        /// </param>
        /// <param name="isTrusted">
        /// Whether this object is considered "trusted" for verification
        /// purposes.
        /// </param>
        public BuildObject(string path, bool isTrusted = false)
        {
            // ToDo: Fix VSSolutionVerb and/or IronfleetTestDriver.sln to work in "src" tree without hitting below Assert.  Then re-instate below Assert.
            ////Util.Assert(!path.StartsWith(BuildEngine.theEngine.getSrcRoot(), StringComparison.OrdinalIgnoreCase));
            this.path = BuildEngine.theEngine.normalizeIronPath(path);
            this.isTrusted = isTrusted;
        }

        /// <summary>
        /// Initializes a new instance of the BuildObject class.
        /// </summary>
        /// <param name="path">
        /// Relative path to this object in the local filesystem.
        /// </param>
        protected BuildObject(string path)
        {
            this.path = BuildEngine.theEngine.normalizeIronPath(path);
        }

        /// <summary>
        /// Gets or sets a value indicating whether this object is considered
        /// "trusted" for verification purposes.
        /// </summary>
        /// <remarks>
        /// REVIEW: Giving build objects properties like this is dangerous,
        /// as they are supposed to be just abstract ids.  Two equivalent
        /// (per Equals() below) build objects could be created, and should
        /// reference the same bag of bits, yet have different properties!
        /// </remarks>
        public bool IsTrusted
        {
            get { return this.isTrusted; }
            protected set { this.isTrusted = value; }
        }

        /// <summary>
        /// Gets the relative path for this instance.
        /// </summary>
        /// <remarks>
        /// TODO: Replace this with a property ("RelativePath"?) that is
        /// public get and protected set.  And change this.path from
        /// protected to private.
        /// </remarks>
        /// <returns>The relative path for this instance.</returns>
        public string getRelativePath()
        {
            return this.path;
        }

        /// <summary>
        /// Returns a string that represents this instance.
        /// </summary>
        /// <returns>A string that represents this instance.</returns>
        public override string ToString()
        {
            return this.path;
        }

        /// <summary>
        /// Gets the directory information for this instance.
        /// </summary>
        /// <returns>The directory information for this instance.</returns>
        public string getDirPath()
        {
            return Path.GetDirectoryName(this.path);
        }

        /// <summary>
        /// Gets the file name and extension for this instance.
        /// </summary>
        /// <returns>The file name and extension for this instance.</returns>
        public string getFileName()
        {
            return Path.GetFileName(this.path);
        }

        /// <summary>
        /// Gets the file name (sans extension) for this instance.
        /// </summary>
        /// <returns>The file name (sans extension) for this instance.</returns>
        public string getFileNameWithoutExtension()
        {
            this.splitExtension();
            return this.filenameWithoutExtension;
        }

        /// <summary>
        /// Gets the file extension for this instance.
        /// </summary>
        /// <returns>The file extension for this instance.</returns>
        public string getExtension()
        {
            this.splitExtension();
            return this.filenameExtension;
        }

        /// <summary>
        /// Determines whether this instance and another specified BuildObject
        /// object have the same value (identity?).  Really, the same path.
        /// </summary>
        /// <param name="obj">The object to compare to this instance.</param>
        /// <returns>
        /// True if the given object is equivalent to this instance,
        /// false otherwise.
        /// </returns>
        public override bool Equals(object obj)
        {
            BuildObject other = obj as BuildObject;
            if (other != null)
            {
                return this.path.Equals(other.path, StringComparison.Ordinal);
            }
            else
            {
                return false;
            }
        }

        /// <summary>
        /// Returns the hash code for this instance.
        /// </summary>
        /// <remarks>
        /// Note that equivalent (as in .Equals returns true) instances
        /// will have the same hash code.
        /// </remarks>
        /// <returns>The hash code for this instance.</returns>
        public override int GetHashCode()
        {
            return this.path.GetHashCode();
        }

        /// <summary>
        /// Creates a new instance based on this one, but with the given
        /// extension, and guaranteed to be in the obj directory.
        /// </summary>
        /// <param name="extension">Extension to give new instance.</param>
        /// <returns>A new instance.</returns>
        public BuildObject makeOutputObject(string extension)
        {
            return new BuildObject(this.mashedPathname(BuildEngine.theEngine.getObjRoot(), extension));
        }

        /// <summary>
        /// Creates a new instance based on this one, but for the given
        /// appLabel (REVIEW: what does this mean?), with the given
        /// extension, and guaranteed to be in the obj directory.
        /// </summary>
        /// <param name="appLabel">The app label to use.</param>
        /// <param name="extension">Extension to give new instance.</param>
        /// <returns>A new instance.</returns>
        public BuildObject makeLabeledOutputObject(string appLabel, string extension)
        {
            string appSpecificPrefix =
                appLabel == null
                ? BuildEngine.theEngine.getObjRoot()
                : Path.Combine(BuildEngine.theEngine.getObjRoot(), appLabel);

            // REVIEW: Ordinal vs. OrdinalIgnoreCase.
            if (this.path.StartsWith(appSpecificPrefix, StringComparison.OrdinalIgnoreCase))
            {
                // Input is already in the correct subtree; don't nest subtrees.
                return this.makeOutputObject(extension);
            }
            else
            {
                // Input is coming from elsewhere; give it a parallel location under app-specific subtree.
                return new BuildObject(this.mashedPathname(appSpecificPrefix, extension));
            }
        }

        /// <summary>
        /// Creates a new VirtualBuildObject based on this instance, but with
        /// a path modified to be virtual and have the given extension.
        /// </summary>
        /// <param name="extension">
        /// Filename extension to give the new object.
        /// </param>
        /// <returns>A new VirtualBuildObject.</returns>
        public BuildObject makeVirtualObject(string extension)
        {
            return new VirtualBuildObject(this.mashedPathname(BuildEngine.theEngine.getVirtualRoot(), extension));
        }

        /// <summary>
        /// Helper function to read an XML element (not a full document)
        /// representing a BuildObject.
        /// </summary>
        /// <remarks>
        /// Note that the XmlReader is expected to be positioned in the XML
        /// document such that the current node is a BuildObject element.
        /// </remarks>
        /// <param name="xr">The XmlReader object to read from.</param>
        /// <returns>
        /// A new BuildObject corresponding to the XML representation read.
        /// </returns>
        public static BuildObject ReadXml(XmlReader xr)
        {
            Util.Assert(xr.Name.Equals(XmlTag));
            string relativePath = xr.ReadElementContentAsString();
            return new BuildObject(relativePath);
        }

        /// <summary>
        /// Helper function to write an XML element (not a full document)
        /// representing this BuildObject.
        /// </summary>
        /// <param name="xw">The XmlWriter object to write to.</param>
        public void WriteXml(XmlWriter xw)
        {
            xw.WriteStartElement(XmlTag);
            xw.WriteString(this.path);
            xw.WriteEndElement();
        }

        /// <summary>
        /// Splits the filename of this object into its separate base and
        /// extension components.
        /// </summary>
        private void splitExtension()
        {
            if (this.filenameWithoutExtension == null)
            {
                string filename = this.getFileName();
                int dot = filename.IndexOf('.');
                if (dot < 0)
                {
                    this.filenameWithoutExtension = filename;
                    this.filenameExtension = null;
                }
                else
                {
                    this.filenameExtension = filename.Substring(dot);

                    // TODO: This is a (possibly brittle) workaround for dfy .s
                    // and .i, which aren't part of the file type, they're part
                    // of the name. Sorta.
                    if (DafnyTransformBaseVerb.DAFNY_LONG_EXTNS.Contains(this.filenameExtension))
                    {
                        dot += 2;
                        this.filenameExtension = filename.Substring(dot);
                    }

                    this.filenameWithoutExtension = filename.Substring(0, dot);
                }
            }
        }

        /// <summary>
        /// Combines the provided root path and extension with this
        /// instance's relative path and munged (for DafnySpec/CC) filename.
        /// </summary>
        /// <param name="root">The desired root path.</param>
        /// <param name="extension">The desired extension.</param>
        /// <returns>A combined pathname.</returns>
        private string mashedPathname(string root, string extension)
        {
            string filename = this.getFileNameWithoutExtension();

            // Remap dafny filenames so resulting objects have correctly-parsed extns.
            filename = Util.dafnySpecMungeName(filename);

            return Path.Combine(root, this.getDirRelativeToSrcOrObj(), filename + extension);
        }

        /// <summary>
        /// Strips off the initial 'src\' or 'obj\' from the path.
        /// </summary>
        /// <returns>
        /// The directory containing this object, relative to the source or
        /// object directory.
        /// </returns>
        private string getDirRelativeToSrcOrObj()
        {
            string dirname = this.getDirPath();
            int slash = dirname.IndexOf('\\');
            Util.Assert(slash >= 0);
            return dirname.Substring(slash + 1);
        }
    }
}

{'repo_name': 'microsoft/Ironclad', 'stars': '183', 'repo_language': 'C#', 'file_name': 'Microsoft.WindowsAzure.Management.Storage.xml', 'mime_type': 'text/xml', 'hash': -7941685819898506121, 'source_dataset': 'data'}


diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl
index eb51d76e058..04612394c53 100644
--- a/kernel/timeconst.pl
+++ b/kernel/timeconst.pl
@@ -370,7 +370,7 @@ if ($hz eq '--can') {
 	}

 	@val = @{$canned_values{$hz}};
-	if (!defined(@val)) {
+	if (!@val) {
 		@val = compute_values($hz);
 	}
 	output($hz, @val);

{'repo_name': 'postmarketOS/pmbootstrap', 'stars': '992', 'repo_language': 'Shell', 'file_name': 'travis_script.sh', 'mime_type': 'text/x-shellscript', 'hash': -9206868097173585277, 'source_dataset': 'data'}


import { expect } from 'chai';
import createMixins from './createMixins';
import createMuiTheme from './createMuiTheme';

describe('createMixins', () => {
  it('should be able add other mixins', () => {
    const theme = createMuiTheme();
    const mixins = createMixins(theme.breakpoints, theme.spacing, { test: { display: 'block' } });

    expect(mixins.test).to.deep.equal({
      display: 'block',
    });
  });
});

{'repo_name': 'mui-org/material-ui', 'stars': '59328', 'repo_language': 'JavaScript', 'file_name': 'config.yml', 'mime_type': 'text/plain', 'hash': -5357279373389398925, 'source_dataset': 'data'}


/*
Copyright The Pharmer Authors.

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.
*/
package cloud

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"regexp"
	"strings"

	api "pharmer.dev/pharmer/apis/v1alpha1"

	"github.com/pkg/errors"
	core "k8s.io/api/core/v1"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	versionutil "k8s.io/apimachinery/pkg/util/version"
	"k8s.io/client-go/kubernetes"
)

var (
	kubeReleaseBucketURL  = "https://dl.k8s.io"
	kubeReleaseRegex      = regexp.MustCompile(`^v?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)([-0-9a-zA-Z_\.+]*)?$`)
	kubeReleaseLabelRegex = regexp.MustCompile(`^[[:lower:]]+(-[-\w_\.]+)?$`)
	kubeBucketPrefixes    = regexp.MustCompile(`^((release|ci|ci-cross)/)?([-\w_\.+]+)$`)
)

// KubernetesReleaseVersion is helper function that can fetch
// available version information from release servers based on
// label names, like "stable" or "latest".
//
// If argument is already semantic version string, it
// will return same string.
//
// In case of labels, it tries to fetch from release
// servers and then return actual semantic version.
//
// Available names on release servers:
//  stable      (latest stable release)
//  stable-1    (latest stable release in 1.x)
//  stable-1.0  (and similarly 1.1, 1.2, 1.3, ...)
//  latest      (latest release, including alpha/beta)
//  latest-1    (latest release in 1.x, including alpha/beta)
//  latest-1.0  (and similarly 1.1, 1.2, 1.3, ...)
func KubernetesReleaseVersion(version string) (string, error) {
	if kubeReleaseRegex.MatchString(version) {
		if strings.HasPrefix(version, "v") {
			return version, nil
		}
		return "v" + version, nil
	}

	bucketURL, versionLabel, err := splitVersion(version)
	if err != nil {
		return "", err
	}
	if kubeReleaseLabelRegex.MatchString(versionLabel) {
		url := fmt.Sprintf("%s/%s.txt", bucketURL, versionLabel)
		body, err := FetchFromURL(url)
		if err != nil {
			return "", err
		}
		// Re-validate received version and return.
		return KubernetesReleaseVersion(body)
	}
	return "", errors.Errorf("version %q doesn't match patterns for neither semantic version nor labels (stable, latest, ...)", version)
}

// Internal helper: split version parts,
// Return base URL and cleaned-up version
func splitVersion(version string) (string, string, error) {
	var urlSuffix string
	subs := kubeBucketPrefixes.FindAllStringSubmatch(version, 1)
	if len(subs) != 1 || len(subs[0]) != 4 {
		return "", "", errors.Errorf("invalid version %q", version)
	}

	switch {
	case strings.HasPrefix(subs[0][2], "ci"):
		// Special case. CI images populated only by ci-cross area
		urlSuffix = "ci-cross"
	default:
		urlSuffix = "release"
	}
	url := fmt.Sprintf("%s/%s", kubeReleaseBucketURL, urlSuffix)
	return url, subs[0][3], nil
}

// Internal helper: return content of URL
func FetchFromURL(url string) (string, error) {
	resp, err := http.Get(url)
	if err != nil {
		return "", errors.Errorf("unable to get URL %q: %s", url, err.Error())
	}
	defer resp.Body.Close()
	if resp.StatusCode != http.StatusOK {
		return "", errors.Errorf("unable to fetch file. URL: %q Status: %v", url, resp.Status)
	}
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return "", errors.Errorf("unable to read content of URL %q: %s", url, err.Error())
	}
	return strings.TrimSpace(string(body)), nil
}

// Easy to implement a fake variant of this interface for unit testing
type VersionGetter interface {
	// IsUpgradeRequested returns true if Cluster.spec.kubernetesVersion is different from version reported from Cluster.
	IsUpgradeRequested() (bool, error)
	// ClusterVersion should return the version of the Cluster i.e. the API Server version
	ClusterVersion() (string, *versionutil.Version, error)
	// MasterKubeadmVersion should return the version of the kubeadm CLI
	KubeadmVersion() (string, *versionutil.Version, error)
	// GetKubeDNSVersion returns the right kube-dns version for a specific k8s version
	DeployedDNSAddon() (string, string, error)
	// VersionFromCILabel should resolve CI labels like `latest`, `stable`, `stable-1.8`, etc. to real versions
	VersionFromCILabel(string, string) (string, *versionutil.Version, error)
	// KubeletVersions should return a map with a version and a number that describes how many kubelets there are for that version
	KubeletVersions() (map[string]uint32, error)
}

// KubeVersionGetter handles the version-fetching mechanism from external sources
type KubeVersionGetter struct {
	client  kubernetes.Interface
	cluster *api.Cluster
}

// NewKubeVersionGetter returns a new instance of KubeVersionGetter
func NewKubeVersionGetter(client kubernetes.Interface, cluster *api.Cluster) VersionGetter {
	return &KubeVersionGetter{
		client:  client,
		cluster: cluster,
	}
}

// IsUpgradeRequested returns true if Cluster.spec.kubernetesVersion is different from version reported from Cluster.
func (g *KubeVersionGetter) IsUpgradeRequested() (bool, error) {
	if g.cluster.Status.Phase == api.ClusterReady {
		cur, _, err := g.ClusterVersion()
		if err != nil {
			return false, err
		}

		requested, err := versionutil.ParseSemantic(g.cluster.ClusterConfig().KubernetesVersion)
		if err != nil {
			return false, err
		}
		// Compare compares v against a version string (which will be parsed as either Semantic
		// or non-Semantic depending on v). On success it returns -1 if v is less than other, 1 if
		// it is greater than other, or 0 if they are equal.
		check, err := requested.Compare(cur)
		if err != nil {
			return false, err
		}
		return check > 0, nil
	}
	return false, nil
}

// ClusterVersion gets API server version
func (g *KubeVersionGetter) ClusterVersion() (string, *versionutil.Version, error) {
	clusterVersionInfo, err := g.client.Discovery().ServerVersion()
	if err != nil {
		return "", nil, errors.Errorf("Couldn't fetch Cluster version from the API Server: %v", err)
	}
	fmt.Println(fmt.Sprintf("[upgrade/versions] Cluster version: %s", clusterVersionInfo.String()))

	clusterVersion, err := versionutil.ParseSemantic(clusterVersionInfo.String())
	if err != nil {
		return "", nil, errors.Errorf("Couldn't parse Cluster version: %v", err)
	}
	return clusterVersionInfo.String(), clusterVersion, nil
}

// DeployedDNSAddon returns the type of DNS addon currently deployed
func (g *KubeVersionGetter) DeployedDNSAddon() (string, string, error) {
	deploymentsClient := g.client.AppsV1().Deployments(metav1.NamespaceSystem)
	deployments, err := deploymentsClient.List(metav1.ListOptions{LabelSelector: "k8s-app=kube-dns"})
	if err != nil {
		return "", "", fmt.Errorf("couldn't retrieve DNS addon deployments: %v", err)
	}

	switch len(deployments.Items) {
	case 0:
		return "", "", nil
	case 1:
		addonName := deployments.Items[0].Name
		addonImage := deployments.Items[0].Spec.Template.Spec.Containers[0].Image
		addonImageParts := strings.Split(addonImage, ":")
		addonVersion := addonImageParts[len(addonImageParts)-1]
		return addonName, addonVersion, nil
	default:
		return "", "", fmt.Errorf("multiple DNS addon deployments found: %v", deployments.Items)
	}
}

// MasterKubeadmVersion gets kubeadm version
func (g *KubeVersionGetter) KubeadmVersion() (string, *versionutil.Version, error) {
	selector, err := metav1.LabelSelectorAsSelector(&metav1.LabelSelector{
		MatchExpressions: []metav1.LabelSelectorRequirement{
			{
				Key:      api.RoleMasterKey,
				Operator: metav1.LabelSelectorOpExists,
			},
		},
	})
	if err != nil {
		return "", nil, err
	}
	nodes, err := g.client.CoreV1().Nodes().List(metav1.ListOptions{
		LabelSelector: selector.String(),
	})
	if err != nil {
		return "", nil, errors.Errorf("couldn't list master instances in Cluster, Reason: %s", err)
	}
	if len(nodes.Items) == 0 {
		return "", nil, errors.Errorf("couldn't list master instances in Cluster")
	}
	verStr, found := nodes.Items[0].Annotations[api.KubeadmVersionKey]
	if !found {
		return "", nil, errors.Errorf("master instance %s is missing annotation %s", nodes.Items[0].Name, api.KubeadmVersionKey)
	}
	kubeadmVersion, err := versionutil.ParseSemantic(verStr)
	if err != nil {
		return "", nil, errors.Errorf("couldn't parse kubeadm version: %v", err)
	}
	fmt.Println(fmt.Sprintf("[upgrade/versions] kubeadm version: %s", verStr))

	return verStr, kubeadmVersion, nil
}

// VersionFromCILabel resolves a version label like "latest" or "stable" to an actual version using the public Kubernetes CI uploads
func (g *KubeVersionGetter) VersionFromCILabel(ciVersionLabel, description string) (string, *versionutil.Version, error) {
	versionStr, err := KubernetesReleaseVersion(ciVersionLabel)
	if err != nil {
		return "", nil, errors.Errorf("Couldn't fetch latest %s version from the internet: %v", description, err)
	}

	if description != "" {
		fmt.Println(fmt.Sprintf("[upgrade/versions] Latest %s: %s", description, versionStr))
	}

	ver, err := versionutil.ParseSemantic(versionStr)
	if err != nil {
		return "", nil, errors.Errorf("Couldn't parse latest %s version: %v", description, err)
	}
	return versionStr, ver, nil
}

// KubeletVersions gets the versions of the kubelets in the Cluster
func (g *KubeVersionGetter) KubeletVersions() (map[string]uint32, error) {
	nodes, err := g.client.CoreV1().Nodes().List(metav1.ListOptions{})
	if err != nil {
		return nil, errors.Errorf("couldn't list all nodes in Cluster")
	}
	return computeKubeletVersions(nodes.Items), nil
}

// computeKubeletVersions returns a string-int map that describes how many nodes are of a specific version
func computeKubeletVersions(nodes []core.Node) map[string]uint32 {
	kubeletVersions := map[string]uint32{}
	for _, node := range nodes {
		kver := node.Status.NodeInfo.KubeletVersion
		if _, found := kubeletVersions[kver]; !found {
			kubeletVersions[kver] = 1
			continue
		}
		kubeletVersions[kver]++
	}
	return kubeletVersions
}

func getBranchFromVersion(version string) string {
	v := versionutil.MustParseGeneric(version)
	return fmt.Sprintf("%d.%d", v.Major(), v.Minor())
}

func patchVersionBranchExists(clusterVersion, stableVersion *versionutil.Version) bool {
	return stableVersion.AtLeast(clusterVersion)
}

func patchUpgradePossible(clusterVersion, patchVersion *versionutil.Version) bool {
	return clusterVersion.LessThan(patchVersion)
}

func minorUpgradePossibleWithPatchRelease(stableVersion, patchVersion *versionutil.Version) bool {
	return patchVersion.LessThan(stableVersion)
}

{'repo_name': 'pharmer/pharmer', 'stars': '191', 'repo_language': 'Go', 'file_name': 'get_options.go', 'mime_type': 'text/plain', 'hash': 6668079096823238272, 'source_dataset': 'data'}


# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

CORE_DEPTH = ../..

MODULE = nss

CSRCS = signver.c	\
        pk7print.c	\
	$(NULL)

REQUIRES = dbm seccmd

PROGRAM = signver

PACKAGE_FILES = README.txt signedForm.html signedForm.pl form.pl
ifeq ($(subst /,_,$(shell uname -s)),WINNT)
PACKAGE_FILES += signedForm.nt.pl signver.exe
else
PACKAGE_FILES += signver
endif

ARCHIVE_NAME  = signver

{'repo_name': 'Feodor2/Mypal', 'stars': '149', 'repo_language': 'None', 'file_name': 'moz.build', 'mime_type': 'text/plain', 'hash': -7387687074383188419, 'source_dataset': 'data'}


<?xml version="1.0" encoding="utf-8"?>
<ArrayOfDVBCTuning>
  <!--Created on 2013-08-19 15:50-->
  <DVBCTuning>
    <!--Transponder ID 101-->
    <!--TV: [0] TV West [1] Nederland 1 [2] Nederland 2 [3] Nederland 3 [72] TV West-->
    <!--Radio: [801] Radio 1 [802] Radio 2 [803] Radio 3 [804] Radio 4 [805] Radio 5 [806] Radio 6 [808] Fun X [851] Radio West-->
    <Frequency>538000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 102-->
    <!--TV: [0] TV Rijnmond [0] Omroep Brabant [17] Één [18] Canvas [22] Nickelodeon [43] BravaNL [73] TV Rijnmond [76] Omroep Brabant-->
    <!--Radio: [831] Studio Brussel [832] MNM [833] VRT Radio1 [834] VRT Radio2 [835] Klara [837] FIP [852] Radio Rijnmond-->
    <Frequency>554000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 103-->
    <!--TV: [6] SBS 6 [8] Veronica/DisneyXD [9] NET5 [10] RTL8 [14] Kindernet/Comedy Central-->
    <!--Radio: [807] Concertzender [809] 538 [810] Sky Radio [812] Veronica Radio [813] Radio 10 Gold-->
    <Frequency>642000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 104-->
    <!--TV: [4] RTL4 [5] RTL5 [7] RTL7 [509] Net5 HD-->
    <!--Radio: [825] Efteling Radio [839] WDR 3 [840] WDR 4 [842] BBC Radio 1 [843] BBC Radio 2 [844] BBC Radio 3 [845] BBC Radio 4 [846] BBC World Service-->
    <Frequency>658000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 105-->
    <!--TV: [23] Pebble TV [31] CNN International [36] BBC World [37] euronews [46] Best 24 [57] Xite [335] TRT Turk-->
    <!--Radio: -->
    <Frequency>778000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 106-->
    <!--TV: [30] Journaal 24 [33] VH1 Classic [34] BBC One [35] BBC Two [42] Mezzo [232] RTM1 [995] GoedTV-->
    <!--Radio: [880] Radio Capelle-->
    <Frequency>570000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 107-->
    <!--TV: [0] TV Utrecht [0] TV Noord-Holland [15] Discovery Channel [28] TLC [32] 192TV [41] TV5 Monde [68] Gemeente Westland TV [74] TV Noord-Holland [75] TV Utrecht [231] TV Polonia-->
    <!--Radio: -->
    <Frequency>682000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 108-->
    <!--TV: [19] Showroom [25] MTV NL [38] Das Erste [39] ZDF [49] Family7-->
    <!--Radio: [838] NDR Kultur [841] Deutsche Welle-->
    <Frequency>706000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 109-->
    <!--TV: [26] Eurosport 2 [29] MGM Movie Channel [44] Cultura 24 [71] AT5 [538] ARD Das Erste HD-->
    <!--Radio: -->
    <Frequency>650000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 110-->
    <!--TV: [40] ARTE [117] NostalgieNet [210] Bloomberg Television [217] 3SAT [227] RTBF La Deux [326] ATV-->
    <!--Radio: -->
    <Frequency>730000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 111-->
    <!--TV: [99] Playboy TV [107] BBC Entertainment [215] WDR [322] FOX Sports 5 Eredivisie [323] Eredivisie Live Extra3 [327] STV [328] Haberturk-->
    <!--Radio: [901] XLnt Opera [902] XLnt Operette [903] XLnt Classical [905] XLnt Crooners [906] XLnt Chill Out [907] XLnt Lounge [908] XLnt France [910] XLnt Relipop [911] XLnt Salsa [912] XLnt Italia [913] XLnt Reggae [914] XLnt Turk [916] XLnt Motown [917] XLnt Classic Jazz [918] XLnt Jazz [919] XLnt Blues [920] XLnt Filmmuziek [921] XLnt Party-->
    <Frequency>674000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 112-->
    <!--TV: [311] Sport1 Select [312] Sport1 Voetbal [313] Sport1 Golf [314] Sport1 Tennis [315] Sport1 Extra 1 [316] Sport1 Extra 2-->
    <!--Radio: -->
    <Frequency>738000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 113-->
    <!--TV: [87] Extreme Sports [90] Fashion TV [135] Fine Living Network [137] CBS Reality [139] Motors TV [204] Nautical Channel [325] Euro D [329] CNN Turk-->
    <!--Radio: [922] XLnt Espana [923] XLnt Rock 'n Roll [924] XLnt Hip Hop [925] XLnt R&B [926] XLnt Trance [927] XLnt Dance [928] XLnt Jack FM [929] XLnt Classic Rock [930] XLnt Hard Rock [931] XLnt Alternative Rock [932] XLnt Rock [934] XLnt New Age [935] XLnt Love Songs-->
    <Frequency>786000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 114-->
    <!--TV: [118] Holland Doc 24 [149] Hustler TV [248] Private Spice [338] Set Asia [350] X-MO [501] Nederland 1 HD-->
    <!--Radio: -->
    <Frequency>306000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 115-->
    <!--TV: [0] HOS [0] RTV9 [0] LOOK TV [12] WOS [66] Regio TV InfoThuis-->
    <!--Radio: [869] Radio Schiedam [870] ZOS Radio [872] Radio 90 FM [874] Gouwe Stad Radio [876] WOS Radio [877] HOS Radio [878] ZAP!FM-->
    <Frequency>546000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 116-->
    <!--TV: [106] Comedy Central Family [211] BBC Three/CBBC [212] BBC Four/Cbeebies [320] FOX Sports 1 Eredivisie [321] FOX Sports 3 Eredivisie-->
    <!--Radio: -->
    <Frequency>842000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 117-->
    <!--TV: [301] Film1 Premiere [302] Film1 Action [303] Film1 Family [304] Film1 Sundance [305] Film1 Series-->
    <!--Radio: -->
    <Frequency>530000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 118-->
    <!--TV: [84] Omroep Flevoland [86] TCM [89] Baby TV [114] Travel Channel [209] CNBC Europe [239] Phoenix CNE-->
    <!--Radio: [811] Q Music [819] City FM [820] Arrow Rock [823] BNR Nieuwsradio [824] 100%NL [854] Radio M Utrecht [857] Radio Flevoland [864] Den Haag FM [871] Radio 9 [873] VLOH-->
    <Frequency>698000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 119-->
    <!--TV: [92] JCTV [94] TBN Europe [95] The Church Channel [104] 13th Street [111] Disc. Science [112] Disc. World [113] Investigation Discovery [122] Boomerang-->
    <!--Radio: [855] Omroep Brabant Radio [866] Radio Decibel-->
    <Frequency>714000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 120-->
    <!--TV: [123] Nick Jr [126] RTL Telekids [414] BravaHDTV [528] TLC HD-->
    <!--Radio: [814] Slam! FM [821] Sublime FM [822] Classic FM [853] Radio Noord Holland [867] Rick FM [868] Radio Aalsmeer-->
    <Frequency>666000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 121-->
    <!--TV: [103] RTL Crime [115] History [124] Nick Toons [125] Nick Hits [130] SLAM!TV [330] TGRT EU [331] EuroStar-->
    <!--Radio: -->
    <Frequency>634000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 122-->
    <!--TV: [81] TV Gelderland [108] Syfy [134] Out TV [205] MTV Rocks [208] FOX News Channel [209] VH1 [225] France 3 [230] RAI Uno [238] CCTV9 [249] Dorcel TV-->
    <!--Radio: [856] Radio Gelderland-->
    <Frequency>626000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 123-->
    <!--TV: [119] ducktv [132] RTL Lounge [216] NDR [218] Sat1 [219] ProSieben [226] La Une [235] MBC [236] RTM5 Al Maghribiya-->
    <!--Radio: -->
    <Frequency>690000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 124-->
    <!--TV: [55] Caiway Evenementenkanaal [129] MTV Brand New [148] Dusk! [334] NTV [411] myZen.tv [419] BBC Two HD-->
    <!--Radio: -->
    <Frequency>834000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 125-->
    <!--TV: [306] Film1 Premiere HD [310] Sport1 Select HD-->
    <!--Radio: -->
    <Frequency>222000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 126-->
    <!--TV: [27] Nat Geo Wild [85] Politiek 24 [88] Lite TV [91] TV Oranje [121] Zappelin/Zapp [224] France 2 [237] Kaze TV [324] Kral TV-->
    <!--Radio: -->
    <Frequency>618000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 127-->
    <!--TV: [24] 24Kitchen [93] EWTN [96] Food Network Channel [233] Al Jazeera [333] Planet Turk [413] NGC HD-->
    <!--Radio: [904] XLnt Country [909] XLnt Arabian Nights [915] XLnt NL Luisterlied [933] XLnt Dance Classics [950] XLnt Nederpop Gold [951] XLnt Nederpop [952] XLnt Piratenhits [953] XLnt Comedy [954] XLnt Kiddo FM [955] XLnt Kleuterliedjes [956] XLnt Oldies [957] XLnt Today's Pop [958] XLnt Easy Listening [959] XLnt Hits [960] Xlnt Seasons [961] XLnt Nostalgie [962] XLnt Schlager [963] XLnt Musical [964] XLnt Skihut-->
    <Frequency>746000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 128-->
    <!--TV: [21] Cartoon Network [120] JimJam [133] E! Pop of Culture [223] France 24 [412] Discovery Channel HD [416] Nat Geo Wild HD-->
    <!--Radio: -->
    <Frequency>754000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 129-->
    <!--TV: [77] Omrop Fryslan [80] TV Drenthe [82] L1 [83] Omroep Zeeland [229] TVE Internaçional [520] FOX Sports 1 Eredivisie HD-->
    <!--Radio: [858] Omroep Zeeland Radio [859] Omrop Fryslan Radio [862] Radio Drenthe [863] L1 Radio-->
    <Frequency>794000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 130-->
    <!--TV: [234] Al Jazeera Kids [417] History HD [522] FOX Sports 5 Eredivisie HD-->
    <!--Radio: -->
    <Frequency>802000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 131-->
    <!--TV: [20] FOX [105] FOXLife [214] SWR Fernsehen [220] RTL Television [240] NHK World [422] MTV Live HD-->
    <!--Radio: -->
    <Frequency>810000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 132-->
    <!--TV: [136] Horse & Country [423] FTV HD [428] Mezzo Live HD [513] Eurosport HD-->
    <!--Radio: -->
    <Frequency>610000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 133-->
    <!--TV: [101] 101 TV [102] Humor TV 24 [502] Nederland 2 HD [503] Nederland 3 HD-->
    <!--Radio: -->
    <Frequency>354000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 134-->
    <!--TV: [404] RTL4 HD [405] RTL5 HD [519] Caiway Informatie HD-->
    <!--Radio: -->
    <Frequency>586000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 135-->
    <!--TV: [54] Caiway informatie SD [517] Een HD [518] Canvas HD [521] FOX Sports 3 Eredivisie HD-->
    <!--Radio: -->
    <Frequency>578000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 136-->
    <!--TV: [13] Eurosport [16] NGC [507] RTL7 HD [510] RTL8 HD-->
    <!--Radio: -->
    <Frequency>826000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 137-->
    <!--TV: [78] TV Oost [79] TV Noord [421] Food Network Channel HD [448] Penthouse HD-->
    <!--Radio: [860] Radio Noord [861] Radio Oost-->
    <Frequency>322000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 138-->
    <!--TV: [50] Ketnet [506] SBS6 HD [508] Veronica/DisneyXD HD-->
    <!--Radio: -->
    <Frequency>330000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 139-->
    <!--TV: [222] Mediaset Italia [415] Animal Planet HD [523] Eredivisie Live Extra3 HD [620] FOX HD-->
    <!--Radio: -->
    <Frequency>338000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 140-->
    <!--TV: [539] ZDF HD [540] Arte HD [766] Beek TV-->
    <!--Radio: -->
    <Frequency>346000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 141-->
    <!--TV: [317] Test 317 [318] Test 318 [319] Test 319 [519] 24Kitchen HD-->
    <!--Radio: -->
    <Frequency>370000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 142-->
    <!--TV: [449] Penthouse HD1 [450] Penthouse HD2-->
    <!--Radio: -->
    <Frequency>378000</Frequency>
    <ModulationType>Mod256Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 143-->
    <!--TV: [410] BBC One HD-->
    <!--Radio: -->
    <Frequency>386000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 144-->
    <!--TV: [340] STAR Plus [341] STAR Gold [342] Star Jalsha [343] STAR One-->
    <!--Radio: -->
    <Frequency>850000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 145-->
    <!--TV: -->
    <!--Radio: -->
    <Frequency>274000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6875</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 146-->
    <!--TV: -->
    <!--Radio: -->
    <Frequency>282000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6875</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 147-->
    <!--TV: -->
    <!--Radio: -->
    <Frequency>290000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6875</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 148-->
    <!--TV: -->
    <!--Radio: -->
    <Frequency>298000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6875</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 161-->
    <!--TV: -->
    <!--Radio: -->
    <Frequency>165000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
  <DVBCTuning>
    <!--Transponder ID 199-->
    <!--TV: [60] XLnt iRadio Hits [61] XLnt iRadio NL [62] XLnt iRadio Easy Listening [63] XLnt iRadio Rock [64] XLnt iRadio Oldies [65] Xlnt iRadio Klassiek [996] CAIW Melding [997] CAIW Testbeeld-->
    <!--Radio: -->
    <Frequency>165000</Frequency>
    <ModulationType>Mod64Qam</ModulationType>
    <SymbolRate>6900</SymbolRate>
  </DVBCTuning>
</ArrayOfDVBCTuning>

{'repo_name': 'MediaPortal/MediaPortal-1', 'stars': '211', 'repo_language': 'C#', 'file_name': 'MediaPortal_font.txt', 'mime_type': 'text/plain', 'hash': -396983807764367675, 'source_dataset': 'data'}


<annotation>
    <folder>less_selected</folder>
    <filename>videoplayback0108.jpg</filename>
    <size>
        <width>1000</width>
        <height>563</height>
    </size>
    <segmented>0</segmented>
    <object>
        <name>Tie Fighter</name>
        <bndbox>
            <xmin>154</xmin>
            <ymin>278</ymin>
            <xmax>167</xmax>
            <ymax>292</ymax>
        </bndbox>
    </object>
    <object>
        <name>Tie Fighter</name>
        <bndbox>
            <xmin>129</xmin>
            <ymin>261</ymin>
            <xmax>140</xmax>
            <ymax>270</ymax>
        </bndbox>
    </object>
</annotation>

{'repo_name': 'bourdakos1/Custom-Object-Detection', 'stars': '328', 'repo_language': 'None', 'file_name': 'videoplayback5346.xml', 'mime_type': 'text/plain', 'hash': -463098078389286620, 'source_dataset': 'data'}


# CVS $Revision: $ $Author: $ -- Mon Feb 22 22:56:28 2016 -- reformated by PCGen PrettyLST v6.06.00
AGESET:0|Adulthood
#RACENAME:Human%		CLASS:Barbarian,Rogue,Sorcerer[BASEAGEADD:1d4]|Bard,Fighter,Paladin,Ranger[BASEAGEADD:1d6]|Cleric,Druid,Monk,Wizard[BASEAGEADD:2d6]
RACENAME:Human%		SEX:Male[BASEHT:58|HTDIEROLL:2d10|BASEWT:120|WTDIEROLL:2d4|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]Female[BASEHT:53|HTDIEROLL:2d10|BASEWT:85|WTDIEROLL:2d4|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]
RACENAME:Human%		BASEAGE:15	MAXAGE:34	AGEDIEROLL:5d4	HAIR:Blond|Brown	EYES:Blue	SKINTONE:Tanned|Pasty

#RACENAME:Dwarf%		CLASS:Barbarian,Rogue,Sorcerer[BASEAGEADD:3d6]|Bard,Fighter,Paladin,Ranger[BASEAGEADD:5d6]|Cleric,Druid,Monk,Wizard[BASEAGEADD:7d6]
RACENAME:Dwarf%		SEX:Male[BASEHT:45|HTDIEROLL:2d4|BASEWT:130|WTDIEROLL:2d6|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]Female[BASEHT:43|HTDIEROLL:2d4|BASEWT:100|WTDIEROLL:2d6|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]
RACENAME:Dwarf%		BASEAGE:40	MAXAGE:124	AGEDIEROLL:4d20+1d4	HAIR:Blond|Brown|Bald|Gray	EYES:Blue|Black|Brown|Gray	SKINTONE:Tanned|Pasty|Fair|Gray

#RACENAME:Elf%		CLASS:Barbarian,Rogue,Sorcerer[BASEAGEADD:4d6]|Bard,Fighter,Paladin,Ranger[BASEAGEADD:6d6]|Cleric,Druid,Monk,Wizard[BASEAGEADD:10d6]
RACENAME:Elf%		SEX:Male[BASEHT:53|HTDIEROLL:2d6|BASEWT:85|WTDIEROLL:1d6|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]Female[BASEHT:53|HTDIEROLL:2d6|BASEWT:80|WTDIEROLL:1d6|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]
RACENAME:Elf%		BASEAGE:110	MAXAGE:174	AGEDIEROLL:8d8	HAIR:White|Pale Yellow|Silver-White|Black|Blue|Golden Blonde|Copper|Brown	EYES:Violet|Silver|Pink|Pale Blue|Gold-flecked Green|Gold-flecked Blue|Green|Gold|Brown|Hazel	SKINTONE:Obsidian|Fair|Tanned|Pasty|Bronze|Dark Brown|Copper

#RACENAME:Gnome%		CLASS:Barbarian,Rogue,Sorcerer[BASEAGEADD:4d6]|Bard,Fighter,Paladin,Ranger[BASEAGEADD:6d6]|Cleric,Druid,Monk,Wizard[BASEAGEADD:9d6]
RACENAME:Gnome%		SEX:Male[BASEHT:36|HTDIEROLL:2d4|BASEWT:40|WTDIEROLL:1d1|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]Female[BASEHT:34|HTDIEROLL:2d4|BASEWT:35|WTDIEROLL:1d1|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]
RACENAME:Gnome%		BASEAGE:40	MAXAGE:99	AGEDIEROLL:10d6	HAIR:Gray|Bald|Blonde|Brown|Black|Red	EYES:Blue|Gray|Black|Brown|Hazel|Green	SKINTONE:Tanned|Pasty|Gray|Fair|Pale

#RACENAME:Half-Elf%	CLASS:Barbarian,Rogue,Sorcerer[BASEAGEADD:1d6]|Bard,Fighter,Paladin,Ranger[BASEAGEADD:2d6]|Cleric,Druid,Monk,Wizard[BASEAGEADD:3d6]
RACENAME:Half-Elf%	SEX:Male[BASEHT:55|HTDIEROLL:2d8|BASEWT:100|WTDIEROLL:2d4|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]Female[BASEHT:53|HTDIEROLL:2d8|BASEWT:80|WTDIEROLL:2d4|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]
RACENAME:Half-Elf%	BASEAGE:20	MAXAGE:61	AGEDIEROLL:7d6	HAIR:White|Pale Yellow|Silver-White|Black|Blue|Golden Blonde|Copper|Brown	EYES:Violet|Silver|Pink|Pale Blue|Gold-flecked Green|Gold-flecked Blue|Green|Gold|Brown|Hazel	SKINTONE:Obsidian|Fair|Tanned|Pasty|Bronze|Dark Brown|Copper

#RACENAME:Half-Orc%	CLASS:Barbarian,Rogue,Sorcerer[BASEAGEADD:1d4]|Bard,Fighter,Paladin,Ranger[BASEAGEADD:1d6]|Cleric,Druid,Monk,Wizard[BASEAGEADD:2d6]
RACENAME:Half-Orc%	SEX:Male[BASEHT:58|HTDIEROLL:2d10|BASEWT:130|WTDIEROLL:2d4|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]Female[BASEHT:52|HTDIEROLL:2d10|BASEWT:90|WTDIEROLL:2d4|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]
RACENAME:Half-Orc%	BASEAGE:14	MAXAGE:29	AGEDIEROLL:4d4	HAIR:Black	EYES:Black|Green	SKINTONE:Light Green|Dark Green|Tanned

#RACENAME:Halfling%	CLASS:Barbarian,Rogue,Sorcerer[BASEAGEADD:2d4]|Bard,Fighter,Paladin,Ranger[BASEAGEADD:3d6]|Cleric,Druid,Monk,Wizard[BASEAGEADD:4d6]
RACENAME:Halfling%	SEX:Male[BASEHT:32|HTDIEROLL:2d4|BASEWT:30|WTDIEROLL:1d1|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]Female[BASEHT:30|HTDIEROLL:2d4|BASEWT:30|WTDIEROLL:1d1|TOTALWT:BASEWT+(HTDIEROLL*WTDIEROLL)]
RACENAME:Halfling%	BASEAGE:20	MAXAGE:49	AGEDIEROLL:5d6	HAIR:Blond|Brown|Black|Red|White|Gray	EYES:Blue|Green|Black|Brown|Hazel|Gray	SKINTONE:Tanned|Pasty|Brown|Pale|Fair

# Unused
#AGESET:1|Middle Age
#AGESET:2|Old
#AGESET:3|Venerable

AGESET:1|Middle Age
#	BONUS:STAT|STR,CON,DEX|-1	BONUS:STAT|INT,WIS,CHA|1
RACENAME:Human%		BASEAGE:35	MAXAGE:52	AGEDIEROLL:3d6
RACENAME:Dwarf%		BASEAGE:125	MAXAGE:187	AGEDIEROLL:(7d8+1d6)
RACENAME:Elf%		BASEAGE:175	MAXAGE:262	AGEDIEROLL:11d8
RACENAME:Gnome%		BASEAGE:100	MAXAGE:149	AGEDIEROLL:(8d6+1)
RACENAME:Half-Elf%	BASEAGE:62	MAXAGE:92	AGEDIEROLL:5d6
RACENAME:Half-Orc%	BASEAGE:30	MAXAGE:44	AGEDIEROLL:(1d10+1d4)
RACENAME:Halfling%	BASEAGE:50	MAXAGE:74	AGEDIEROLL:4d6

AGESET:2|Old
#	BONUS:STAT|STR,CON,DEX|-3	BONUS:STAT|INT,WIS,CHA|2
RACENAME:Human%		BASEAGE:53	MAXAGE:69	AGEDIEROLL:4d4+1
RACENAME:Dwarf%		BASEAGE:188	MAXAGE:249	AGEDIEROLL:10d6+1
RACENAME:Elf%		BASEAGE:263	MAXAGE:349	AGEDIEROLL:10d8+1d6
RACENAME:Gnome%		BASEAGE:150	MAXAGE:199	AGEDIEROLL:8d6+1
RACENAME:Half-Elf%	BASEAGE:93	MAXAGE:124	AGEDIEROLL:5d6+1
RACENAME:Half-Orc%	BASEAGE:45	MAXAGE:59	AGEDIEROLL:1d10+1d4
RACENAME:Halfling%	BASEAGE:75	MAXAGE:99	AGEDIEROLL:6d4

AGESET:3|Venerable
#	BONUS:STAT|STR,CON,DEX|-6	BONUS:STAT|INT,WIS,CHA|3
RACENAME:Human%		BASEAGE:70	MAXAGE:110	AGEDIEROLL:4d10
RACENAME:Dwarf%		BASEAGE:250	MAXAGE:450	AGEDIEROLL:2d100
RACENAME:Elf%		BASEAGE:350	MAXAGE:750	AGEDIEROLL:4d100
RACENAME:Gnome%		BASEAGE:200	MAXAGE:500	AGEDIEROLL:3d100
RACENAME:Half-Elf%	BASEAGE:125	MAXAGE:185	AGEDIEROLL:6d10
RACENAME:Half-Orc%	BASEAGE:60	MAXAGE:80	AGEDIEROLL:5d4
RACENAME:Halfling%	BASEAGE:100	MAXAGE:200	AGEDIEROLL:5d20

{'repo_name': 'BahamutDragon/pcgen', 'stars': '240', 'repo_language': 'XSLT', 'file_name': 'k_profs_weapon.lst', 'mime_type': 'text/plain', 'hash': 6537367574404884445, 'source_dataset': 'data'}


//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by jni4net. See http://jni4net.sourceforge.net/
//     Runtime Version:2.0.50727.4952
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace org.drools.@event.knowledgebase {

    #region Component Designer generated code
    [global::net.sf.jni4net.attributes.JavaInterfaceAttribute()]
    public partial interface AfterKnowledgePackageRemovedEvent : global::org.drools.@event.knowledgebase.KnowledgeBaseEvent {

        [global::net.sf.jni4net.attributes.JavaMethodAttribute("()Lorg/drools/definition/KnowledgePackage;")]
        global::org.drools.definition.KnowledgePackage getKnowledgePackage();
    }
    #endregion

    #region Component Designer generated code
    public partial class AfterKnowledgePackageRemovedEvent_ {

        public static global::java.lang.Class _class {
            get {
                return global::org.drools.@event.knowledgebase.@__AfterKnowledgePackageRemovedEvent.staticClass;
            }
        }
    }
    #endregion

    #region Component Designer generated code
    [global::net.sf.jni4net.attributes.JavaProxyAttribute(typeof(global::org.drools.@event.knowledgebase.AfterKnowledgePackageRemovedEvent), typeof(global::org.drools.@event.knowledgebase.AfterKnowledgePackageRemovedEvent_))]
    [global::net.sf.jni4net.attributes.ClrWrapperAttribute(typeof(global::org.drools.@event.knowledgebase.AfterKnowledgePackageRemovedEvent), typeof(global::org.drools.@event.knowledgebase.AfterKnowledgePackageRemovedEvent_))]
    internal sealed partial class @__AfterKnowledgePackageRemovedEvent : global::java.lang.Object, global::org.drools.@event.knowledgebase.AfterKnowledgePackageRemovedEvent {

        internal new static global::java.lang.Class staticClass;

        internal static global::net.sf.jni4net.jni.MethodId _getKnowledgeBase0;

        internal static global::net.sf.jni4net.jni.MethodId _getKnowledgePackage1;

        private @__AfterKnowledgePackageRemovedEvent(global::net.sf.jni4net.jni.JNIEnv @__env) :
                base(@__env) {
        }

        private static void InitJNI(global::net.sf.jni4net.jni.JNIEnv @__env, java.lang.Class @__class) {
            global::org.drools.@event.knowledgebase.@__AfterKnowledgePackageRemovedEvent.staticClass = @__class;
            global::org.drools.@event.knowledgebase.@__AfterKnowledgePackageRemovedEvent._getKnowledgeBase0 = @__env.GetMethodID(global::org.drools.@event.knowledgebase.@__AfterKnowledgePackageRemovedEvent.staticClass, "getKnowledgeBase", "()Lorg/drools/KnowledgeBase;");
            global::org.drools.@event.knowledgebase.@__AfterKnowledgePackageRemovedEvent._getKnowledgePackage1 = @__env.GetMethodID(global::org.drools.@event.knowledgebase.@__AfterKnowledgePackageRemovedEvent.staticClass, "getKnowledgePackage", "()Lorg/drools/definition/KnowledgePackage;");
        }

        public global::org.drools.KnowledgeBase getKnowledgeBase() {
            global::net.sf.jni4net.jni.JNIEnv @__env = this.Env;
            using(new global::net.sf.jni4net.jni.LocalFrame(@__env, 10)){
            return global::net.sf.jni4net.utils.Convertor.FullJ2C<global::org.drools.KnowledgeBase>(@__env, @__env.CallObjectMethodPtr(this, global::org.drools.@event.knowledgebase.@__AfterKnowledgePackageRemovedEvent._getKnowledgeBase0));
            }
        }

        public global::org.drools.definition.KnowledgePackage getKnowledgePackage() {
            global::net.sf.jni4net.jni.JNIEnv @__env = this.Env;
            using(new global::net.sf.jni4net.jni.LocalFrame(@__env, 10)){
            return global::net.sf.jni4net.utils.Convertor.FullJ2C<global::org.drools.definition.KnowledgePackage>(@__env, @__env.CallObjectMethodPtr(this, global::org.drools.@event.knowledgebase.@__AfterKnowledgePackageRemovedEvent._getKnowledgePackage1));
            }
        }

        private static global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> @__Init(global::net.sf.jni4net.jni.JNIEnv @__env, global::java.lang.Class @__class) {
            global::System.Type @__type = typeof(__AfterKnowledgePackageRemovedEvent);
            global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> methods = new global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod>();
            methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getKnowledgeBase", "getKnowledgeBase0", "()Lorg/drools/KnowledgeBase;"));
            methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getKnowledgePackage", "getKnowledgePackage1", "()Lorg/drools/definition/KnowledgePackage;"));
            return methods;
        }

        private static global::net.sf.jni4net.utils.JniHandle getKnowledgeBase0(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) {
            // ()Lorg/drools/KnowledgeBase;
            // ()Lorg/drools/KnowledgeBase;
            global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
            global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle);
            try {
            global::org.drools.@event.knowledgebase.AfterKnowledgePackageRemovedEvent @__real = global::net.sf.jni4net.utils.Convertor.FullJ2C<global::org.drools.@event.knowledgebase.AfterKnowledgePackageRemovedEvent>(@__env, @__obj);
            @__return = global::net.sf.jni4net.utils.Convertor.FullC2J<global::org.drools.KnowledgeBase>(@__env, ((global::org.drools.@event.knowledgebase.KnowledgeBaseEvent)(@__real)).getKnowledgeBase());
            }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);}
            return @__return;
        }

        private static global::net.sf.jni4net.utils.JniHandle getKnowledgePackage1(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) {
            // ()Lorg/drools/definition/KnowledgePackage;
            // ()Lorg/drools/definition/KnowledgePackage;
            global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
            global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle);
            try {
            global::org.drools.@event.knowledgebase.AfterKnowledgePackageRemovedEvent @__real = global::net.sf.jni4net.utils.Convertor.FullJ2C<global::org.drools.@event.knowledgebase.AfterKnowledgePackageRemovedEvent>(@__env, @__obj);
            @__return = global::net.sf.jni4net.utils.Convertor.FullC2J<global::org.drools.definition.KnowledgePackage>(@__env, @__real.getKnowledgePackage());
            }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);}
            return @__return;
        }

        new internal sealed class ContructionHelper : global::net.sf.jni4net.utils.IConstructionHelper {

            public global::net.sf.jni4net.jni.IJvmProxy CreateProxy(global::net.sf.jni4net.jni.JNIEnv @__env) {
                return new global::org.drools.@event.knowledgebase.@__AfterKnowledgePackageRemovedEvent(@__env);
            }
        }
    }
    #endregion
}

{'repo_name': 'jni4net/jni4net', 'stars': '255', 'repo_language': 'C#', 'file_name': 'JavaInstanceFields.cs', 'mime_type': 'text/plain', 'hash': 3465627481707503158, 'source_dataset': 'data'}


package pers.husen.highdsa.common.exception.cache;

import pers.husen.highdsa.common.exception.HighdsaException;

/**
 * @Desc mybatis redis缓存异常
 *
 * @Author 何明胜
 *
 * @Created at 2018年4月1日 下午11:22:50
 *
 * @Version 1.0.0
 */
public class MybatisRedisCacheException extends HighdsaException {

	private static final long serialVersionUID = 7613399559863282306L;

	public MybatisRedisCacheException() {
		super();
	}

	/**
	 * @param errorCode
	 * @param message
	 * @param cause
	 * @param enableSuppression
	 * @param writableStackTrace
	 */
	public MybatisRedisCacheException(int errorCode, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(errorCode, message, cause, enableSuppression, writableStackTrace);
	}

	/**
	 * @param errorCode
	 * @param message
	 * @param cause
	 */
	public MybatisRedisCacheException(int errorCode, String message, Throwable cause) {
		super(errorCode, message, cause);
	}

	/**
	 * @param errorCode
	 * @param message
	 */
	public MybatisRedisCacheException(int errorCode, String message) {
		super(errorCode, message);
	}

	/**
	 * @param errorCode
	 * @param cause
	 */
	public MybatisRedisCacheException(int errorCode, Throwable cause) {
		super(errorCode, cause);
	}

	/**
	 * @param message
	 * @param cause
	 * @param enableSuppression
	 * @param writableStackTrace
	 */
	public MybatisRedisCacheException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	/**
	 * @param message
	 * @param cause
	 */
	public MybatisRedisCacheException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * @param message
	 */
	public MybatisRedisCacheException(String message) {
		super(message);
	}

	/**
	 * @param cause
	 */
	public MybatisRedisCacheException(Throwable cause) {
		super(cause);
	}
}

{'repo_name': 'Huomen/highdsa', 'stars': '372', 'repo_language': 'Java', 'file_name': 'Main.java', 'mime_type': 'text/plain', 'hash': -3787665438990591416, 'source_dataset': 'data'}


#pragma once

#include "UIlib.h"
#define _WTL_NO_CSTRING
#define _WTL_NO_WTYPES

class CWTLEdit:
		public DuiLib::CControlUI,
		public CSkinEdit
{
public:
	CWTLEdit(void);
	~CWTLEdit(void);

	void DoInit();
	//void DoUninit
	virtual LPCTSTR GetClass() const;
	virtual LPVOID GetInterface(LPCTSTR pstrName);
	virtual UINT GetControlFlags() const;

	virtual void SetPos(RECT rc);
	virtual void SetVisible(bool bVisible = true);

	virtual void DoEvent(DuiLib::TEventUI& event);
	virtual void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
	//////////////////////////////////////////////////////////////////////////
	virtual LRESULT SendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam );
	virtual void	SetFocus();
};

{'repo_name': 'ZhanLang/jcfs', 'stars': '103', 'repo_language': 'C++', 'file_name': 'JCDeskMsc.h', 'mime_type': 'text/x-c', 'hash': 404481094985511978, 'source_dataset': 'data'}


/*******************************************************************************
 * Copyright 2019 T-Mobile USA, Inc.
 *
 * 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.
 * See the LICENSE file for additional language around disclaimer of warranties.
 * Trademark Disclaimer: Neither the name of "T-Mobile, USA" nor the names of
 * its contributors may be used to endorse or promote products derived from this
 * software without specific prior written permission.
 ******************************************************************************/
package com.tmobile.kardio.dao;

import com.tmobile.kardio.bean.AvailabilityData;

import java.text.ParseException;
import java.util.List;

/**
 * Interface to access data in regards to availability aercentage
 */
public interface AvailabilityPercentageDao {

    /**
     * Get all availability percentage list
     *
     * @param environment
     * @param interval
     * @return List<AvailabilityData>
     * @throws ParseException
     */
    public List<AvailabilityData> getAllAvailabilityPercentage(String environment, String interval,String platform, String region) throws ParseException;

}

{'repo_name': 'tmobile/kardio', 'stars': '111', 'repo_language': 'Java', 'file_name': 'application.properties', 'mime_type': 'text/plain', 'hash': 4394937994135592672, 'source_dataset': 'data'}


/* ====================================================================
 * Copyright (c) 1996-2000 Carnegie Mellon University.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The names "Sphinx" and "Carnegie Mellon" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. To obtain permission, contact
 *    sphinx@cs.cmu.edu.
 *
 * 4. Products derived from this software may not be called "Sphinx"
 *    nor may "Sphinx" appear in their names without prior written
 *    permission of Carnegie Mellon University. To obtain permission,
 *    contact sphinx@cs.cmu.edu.
 *
 * 5. Redistributions of any form whatsoever must retain the following
 *    acknowledgment:
 *    "This product includes software developed by Carnegie
 *    Mellon University (http://www.speech.cs.cmu.edu/)."
 *
 * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
 * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
 * NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * ====================================================================
 *
 */

/*
 * glist.h -- Module for maintaining a generic, linear linked-list structure.
 *
 *
 * HISTORY
 *
 * 09-Mar-1999	M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University
 * 		Added glist_chkdup_*().
 *
 * 13-Feb-1999	M K Ravishankar (rkm@cs.cmu.edu) at Carnegie Mellon University
 * 		Created from earlier version.
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

#include "glist.h"
#include "ckd_alloc.h"

glist_t glist_add_ptr (glist_t g, void *ptr)
{
    gnode_t *gn;

    gn = (gnode_t *) mymalloc (sizeof(gnode_t));
    gn->data.ptr = ptr;
    gn->next = g;
    return ((glist_t) gn);	/* Return the new head of the list */
}

glist_t glist_add_int32 (glist_t g, int32 val)
{
    gnode_t *gn;

    gn = (gnode_t *) mymalloc (sizeof(gnode_t));
    gn->data.int32 = val;
    gn->next = g;
    return ((glist_t) gn);	/* Return the new head of the list */
}

glist_t glist_add_uint32 (glist_t g, uint32 val)
{
    gnode_t *gn;

    gn = (gnode_t *) mymalloc (sizeof(gnode_t));
    gn->data.uint32 = val;
    gn->next = g;
    return ((glist_t) gn);	/* Return the new head of the list */
}

glist_t glist_add_float32 (glist_t g, float32 val)
{
    gnode_t *gn;

    gn = (gnode_t *) mymalloc (sizeof(gnode_t));
    gn->data.float32 = val;
    gn->next = g;
    return ((glist_t) gn);	/* Return the new head of the list */
}

glist_t glist_add_float64 (glist_t g, float64 val)
{
    gnode_t *gn;

    gn = (gnode_t *) mymalloc (sizeof(gnode_t));
    gn->data.float64 = val;
    gn->next = g;
    return ((glist_t) gn);	/* Return the new head of the list */
}

int32 glist_chkdup_ptr (glist_t g, void *val)
{
    gnode_t *gn;

    for (gn = g; gn; gn = gnode_next(gn))
	if (gnode_ptr(gn) == val)
	    return 1;

    return 0;
}

int32 glist_chkdup_int32 (glist_t g, int32 val)
{
    gnode_t *gn;

    for (gn = g; gn; gn = gnode_next(gn))
	if (gnode_int32(gn) == val)
	    return 1;

    return 0;
}

int32 glist_chkdup_uint32 (glist_t g, uint32 val)
{
    gnode_t *gn;

    for (gn = g; gn; gn = gnode_next(gn))
	if (gnode_uint32(gn) == val)
	    return 1;

    return 0;
}

int32 glist_chkdup_float32 (glist_t g, float32 val)
{
    gnode_t *gn;

    for (gn = g; gn; gn = gnode_next(gn))
	if (gnode_float32(gn) == val)
	    return 1;

    return 0;
}

int32 glist_chkdup_float64 (glist_t g, float64 val)
{
    gnode_t *gn;

    for (gn = g; gn; gn = gnode_next(gn))
	if (gnode_float64(gn) == val)
	    return 1;

    return 0;
}

void glist_apply_ptr (glist_t g, void (*func)(void *))
{
    gnode_t *gn;

    for (gn = g; gn; gn = gn->next)
	(*func)(gn->data.ptr);
}

void glist_apply_int32 (glist_t g, void (*func)(int32))
{
    gnode_t *gn;

    for (gn = g; gn; gn = gn->next)
	(*func)(gn->data.int32);
}

void glist_apply_uint32 (glist_t g, void (*func)(uint32))
{
    gnode_t *gn;

    for (gn = g; gn; gn = gn->next)
	(*func)(gn->data.uint32);
}

void glist_apply_float32 (glist_t g, void (*func)(float32))
{
    gnode_t *gn;

    for (gn = g; gn; gn = gn->next)
	(*func)(gn->data.float32);
}

void glist_apply_float64 (glist_t g, void (*func)(float64))
{
    gnode_t *gn;

    for (gn = g; gn; gn = gn->next)
	(*func)(gn->data.float64);
}

void glist_free (glist_t g)
{
    gnode_t *gn;

    while (g) {
	gn = g;
	g = gn->next;
	myfree((char *)gn, sizeof(gnode_t));
    }
}

void glist_myfree (glist_t g, int32 datasize)
{
    gnode_t *gn;

    while (g) {
	gn = g;
	g = gn->next;
	myfree((char *)(gn->data.ptr), datasize);
	myfree((char *)gn, sizeof(gnode_t));
    }
}

int32 glist_count (glist_t g)
{
    gnode_t *gn;
    int32 n;

    for (gn = g, n = 0; gn; gn = gn->next, n++);
    return n;
}

gnode_t *glist_tail (glist_t g)
{
    gnode_t *gn;

    if (! g)
	return NULL;

    for (gn = g; gn->next; gn = gn->next);
    return gn;
}

glist_t glist_reverse (glist_t g)
{
    gnode_t *gn, *nextgn;
    gnode_t *rev;

    rev = NULL;
    for (gn = g; gn; gn = nextgn) {
	nextgn = gn->next;

	gn->next = rev;
	rev = gn;
    }

    return rev;
}

{'repo_name': 'cjac/cmusphinx', 'stars': '109', 'repo_language': 'C', 'file_name': 'sphinxman_manual.html', 'mime_type': 'text/html', 'hash': -671489493800693949, 'source_dataset': 'data'}


/*
 *
 * Copyright 2015, Google Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 *
 *     * Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above
 * copyright notice, this list of conditions and the following disclaimer
 * in the documentation and/or other materials provided with the
 * distribution.
 *     * Neither the name of Google Inc. nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */

#ifndef GRPC_CORE_LIB_IOMGR_TCP_SERVER_H
#define GRPC_CORE_LIB_IOMGR_TCP_SERVER_H

#include <grpc/grpc.h>

#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/endpoint.h"
#include "src/core/lib/iomgr/resolve_address.h"

/* Forward decl of grpc_tcp_server */
typedef struct grpc_tcp_server grpc_tcp_server;

typedef struct grpc_tcp_server_acceptor {
  /* grpc_tcp_server_cb functions share a ref on from_server that is valid
     until the function returns. */
  grpc_tcp_server *from_server;
  /* Indices that may be passed to grpc_tcp_server_port_fd(). */
  unsigned port_index;
  unsigned fd_index;
} grpc_tcp_server_acceptor;

/* Called for newly connected TCP connections.
   Takes ownership of acceptor. */
typedef void (*grpc_tcp_server_cb)(grpc_exec_ctx *exec_ctx, void *arg,
                                   grpc_endpoint *ep,
                                   grpc_pollset *accepting_pollset,
                                   grpc_tcp_server_acceptor *acceptor);

/* Create a server, initially not bound to any ports. The caller owns one ref.
   If shutdown_complete is not NULL, it will be used by
   grpc_tcp_server_unref() when the ref count reaches zero. */
grpc_error *grpc_tcp_server_create(grpc_exec_ctx *exec_ctx,
                                   grpc_closure *shutdown_complete,
                                   const grpc_channel_args *args,
                                   grpc_tcp_server **server);

/* Start listening to bound ports */
void grpc_tcp_server_start(grpc_exec_ctx *exec_ctx, grpc_tcp_server *server,
                           grpc_pollset **pollsets, size_t pollset_count,
                           grpc_tcp_server_cb on_accept_cb, void *cb_arg);

/* Add a port to the server, returning the newly allocated port on success, or
   -1 on failure.

   The :: and 0.0.0.0 wildcard addresses are treated identically, accepting
   both IPv4 and IPv6 connections, but :: is the preferred style.  This usually
   creates one socket, but possibly two on systems which support IPv6,
   but not dualstack sockets. */
/* TODO(ctiller): deprecate this, and make grpc_tcp_server_add_ports to handle
                  all of the multiple socket port matching logic in one place */
grpc_error *grpc_tcp_server_add_port(grpc_tcp_server *s,
                                     const grpc_resolved_address *addr,
                                     int *out_port);

/* Number of fds at the given port_index, or 0 if port_index is out of
   bounds. */
unsigned grpc_tcp_server_port_fd_count(grpc_tcp_server *s, unsigned port_index);

/* Returns the file descriptor of the Mth (fd_index) listening socket of the Nth
   (port_index) call to add_port() on this server, or -1 if the indices are out
   of bounds. The file descriptor remains owned by the server, and will be
   cleaned up when the ref count reaches zero. */
int grpc_tcp_server_port_fd(grpc_tcp_server *s, unsigned port_index,
                            unsigned fd_index);

/* Ref s and return s. */
grpc_tcp_server *grpc_tcp_server_ref(grpc_tcp_server *s);

/* shutdown_starting is called when ref count has reached zero and the server is
   about to be destroyed. The server will be deleted after it returns. Calling
   grpc_tcp_server_ref() from it has no effect. */
void grpc_tcp_server_shutdown_starting_add(grpc_tcp_server *s,
                                           grpc_closure *shutdown_starting);

/* If the refcount drops to zero, enqueue calls on exec_ctx to
   shutdown_listeners and delete s. */
void grpc_tcp_server_unref(grpc_exec_ctx *exec_ctx, grpc_tcp_server *s);

/* Shutdown the fds of listeners. */
void grpc_tcp_server_shutdown_listeners(grpc_exec_ctx *exec_ctx,
                                        grpc_tcp_server *s);

#endif /* GRPC_CORE_LIB_IOMGR_TCP_SERVER_H */

{'repo_name': 'tartanguru/alexa-assistant', 'stars': '396', 'repo_language': 'JavaScript', 'file_name': 'latlng.proto', 'mime_type': 'text/html', 'hash': -360953297267694103, 'source_dataset': 'data'}


/*
 * Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available.
 *
 * Copyright (C) 2019 THL A29 Limited, a Tencent company.  All rights reserved.
 *
 * BK-CI 蓝鲸持续集成平台 is licensed under the MIT license.
 *
 * A copy of the MIT License is included in this file.
 *
 *
 * Terms of the MIT License:
 * ---------------------------------------------------
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
 * modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
 * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.tencent.devops.store.pojo.atom

import io.swagger.annotations.ApiModel

@ApiModel("插件市场-首页标签")
data class MarketMainItemLabel(
    val key: String,
    val label: String
)

{'repo_name': 'Tencent/bk-ci', 'stars': '1167', 'repo_language': 'Kotlin', 'file_name': 'application.yml', 'mime_type': 'text/plain', 'hash': -7872742563438278429, 'source_dataset': 'data'}


{'repo_name': 'everettjf/Yolo', 'stars': '227', 'repo_language': 'Objective-C', 'file_name': 'header.h', 'mime_type': 'text/plain', 'hash': 3390439036591579807, 'source_dataset': 'data'}


<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="rustdoc">
    <meta name="description" content="API documentation for the Rust `clone` mod in crate `std`.">
    <meta name="keywords" content="rust, rustlang, rust-lang, clone">

    <title>std::clone - Rust</title>

    <link rel="stylesheet" type="text/css" href="../../rustdoc.css">
    <link rel="stylesheet" type="text/css" href="../../main.css">

    <link rel="shortcut icon" href="https://doc.rust-lang.org/favicon.ico">

std

        <form class="search-form js-only">

                <input class="search-input" name="search"
                       autocomplete="off"
                       placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
                       type="search">

        </form>

Module std::<wbr>clone

                [−]

        [src]

The Clone trait for types that cannot be 'implicitly copied'

In Rust, some simple types are "implicitly copyable" and when you
assign them or pass them as arguments, the receiver will get a copy,
leaving the original value in place. These types do not require
allocation to copy and do not have finalizers (i.e. they do not
contain owned boxes or implement Drop), so the compiler considers
them cheap and safe to copy. For other types copies must be made
explicitly, by convention implementing the Clone trait and calling
the clone method.

Traits

                        Clone

A common trait for cloning an object.

Help

Keyboard Shortcuts

?

Show this help dialog

S

Focus the search field

⇤

Move up in search results

⇥

Move down in search results

⏎

Go to active search result

Search Tricks

                    Prefix searches with a type followed by a colon (e.g.
                    fn:) to restrict the search to a given type.

                    Accepted types are: fn, mod,
                    struct, enum,
                    trait, type, macro,
                    and const.

                    Search functions by type signature (e.g.
                    vec -> usize)

{'repo_name': 'rust-lang-ja/the-rust-programming-language-ja', 'stars': '349', 'repo_language': 'HTML', 'file_name': 'main.css', 'mime_type': 'text/plain', 'hash': -8741292488230097854, 'source_dataset': 'data'}


{'repo_name': 'Swiftam/book-node-mongodb-backbone', 'stars': '282', 'repo_language': 'JavaScript', 'file_name': 'resetPasswordSuccess.jade', 'mime_type': 'text/plain', 'hash': 4285614906515319874, 'source_dataset': 'data'}


*socket_recv* -- Receives data from a connected socket

  int socket_recv(resource socket, string buf, int len, int flags)~

The |socket_recv| function receives {len} bytes of data in {buf} from
{socket}. |socket_recv| can be used to gather data from connected sockets.
Additionally, one or more flags can be specified to modify the behaviour of
the function.

{buf} is passed by reference, so it must be specified as a variable in the
argument list. Data read from {socket} by |socket_recv| will be returned in
{buf}.

{socket} The {socket} must be a socket resource previously created by
socket_create().

{buf} The data received will be fetched to the variable specified with {buf}.
If an error occurs, if the connection is reset, or if no data is available,
{buf} will be set to NULL.

{len} Up to {len} bytes will be fetched from remote host.

{flags} The value of {flags} can be any combination of the following flags,
joined with the binary OR (|) operator.

Possible values for {flags} Flag Description MSG_OOB Process out-of-band data.
MSG_PEEK Receive data from the beginning of the receive queue without removing
it from the queue. MSG_WAITALL Block until at least {len} are received.
However, if a signal is caught or the remote host disconnects, the function
may return less data. MSG_DONTWAIT With this flag set, the function returns
even if it would normally have blocked.

|socket_recv| returns the number of bytes received, or FALSE if there was an
error. The actual error code can be retrieved by calling |socket_last_error|.
This error code may be passed to |socket_strerror| to get a textual
explanation of the error.

|socket_recv| example This example is a simple rewrite of the first example
from to use |socket_recv|.

<?php >
  error_reporting(E_ALL);

  echo "
TCP/IP Connection
\n";

  /* Get the port for the WWW service. */
  $service_port = getservbyname('www', 'tcp');

  /* Get the IP address for the target host. */
  $address = gethostbyname('www.example.com');

  /* Create a TCP/IP socket. */
  $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
  if ($socket === false) {
      echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n";
  } else {
      echo "OK.\n";
  }

  echo "Attempting to connect to '$address' on port '$service_port'...";
  $result = socket_connect($socket, $address, $service_port);
  if ($result === false) {
      echo "socket_connect() failed.\nReason: ($result) " . socket_strerror(socket_last_error($socket)) . "\n";
  } else {
      echo "OK.\n";
  }

  $in = "HEAD / HTTP/1.1\r\n";
  $in .= "Host: www.example.com\r\n";
  $in .= "Connection: Close\r\n\r\n";
  $out = '';

  echo "Sending HTTP HEAD request...";
  socket_write($socket, $in, strlen($in));
  echo "OK.\n";

  echo "Reading response:\n\n";
  $buf = 'This is my buffer.';
  if (false !== ($bytes = socket_recv($socket, $buf, 2048, MSG_WAITALL))) {
      echo "Read $bytes bytes from socket_recv(). Closing socket...";
  } else {
      echo "socket_recv() failed; reason: " . socket_strerror(socket_last_error($socket)) . "\n";
  }
  socket_close($socket);

  echo $buf . "\n";
  echo "OK.\n\n";
?>

The above example will produce something like:

TCP/IP Connection

  OK.
  Attempting to connect to '208.77.188.166' on port '80'...OK.
  Sending HTTP HEAD request...OK.
  Reading response:

  Closing socket...HTTP/1.1 200 OK
  Date: Mon, 14 Sep 2009 08:56:36 GMT
  Server: Apache/2.2.3 (Red Hat)
  Last-Modified: Tue, 15 Nov 2005 13:24:10 GMT
  ETag: "b80f4-1b6-80bfd280"
  Accept-Ranges: bytes
  Content-Length: 438
  Connection: close
  Content-Type: text/html; charset=UTF-8

  OK.

vim:ft=help:

{'repo_name': 'spf13/PIV', 'stars': '256', 'repo_language': 'VimL', 'file_name': 'php.vim', 'mime_type': 'text/plain', 'hash': 5193101011345701263, 'source_dataset': 'data'}


//--------------------------------------------------------------------------------------
// Copyright 2013 Intel Corporation
// All Rights Reserved
//
// Permission is granted to use, copy, distribute and prepare derivative works of this
// software for any purpose and without fee, provided, that the above copyright notice
// and this statement appear in all copies.  Intel makes no representations about the
// suitability of this software for any purpose.  THIS SOFTWARE IS PROVIDED "AS IS."
// INTEL SPECIFICALLY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, AND ALL LIABILITY,
// INCLUDING CONSEQUENTIAL AND OTHER INDIRECT DAMAGES, FOR THE USE OF THIS SOFTWARE,
// INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PROPRIETARY RIGHTS, AND INCLUDING THE
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  Intel does not
// assume any responsibility for any errors which may appear in this software nor any
// responsibility to update it.
//--------------------------------------------------------------------------------------
#ifndef __CPUTPERFTASKMARKER_H__
#define __CPUTPERFTASKMARKER_H__

#include "CPUT.h"

#ifdef CPUT_GPA_INSTRUMENTATION

// GPA instrumentation helper class - only available in profile build
// Allows you to easily add 'task markers' to certain events
//-----------------------------------------------------------------------------
class CPUTPerfTaskMarker
{
public:
    CPUTPerfTaskMarker(DWORD color, wchar_t *pString);
    ~CPUTPerfTaskMarker();
private:

};
#endif

#endif // #ifndef __CPUTPERFTASKMARKER_H__

{'repo_name': 'QianMo/GPU-Pro-Books-Source-Code', 'stars': '261', 'repo_language': 'GLSL', 'file_name': 'project.pbxproj', 'mime_type': 'text/plain', 'hash': 7145190693376725661, 'source_dataset': 'data'}


# basic_json::erase

```cpp
// (1)
iterator erase(iterator pos);
const_iterator erase(const_iterator pos);

// (2)
iterator erase(iterator first, iterator last);
const_iterator erase(const_iterator first, const_iterator last);

// (3)
size_type erase(const typename object_t::key_type& key);

// (4)
void erase(const size_type idx);
```

1. Removes an element from a JSON value specified by iterator `pos`. The iterator `pos` must be valid and
   dereferenceable. Thus the `end()` iterator (which is valid, but is not dereferenceable) cannot be used as a value for
   `pos`.

    If called on a primitive type other than `#!json null`, the resulting JSON value will be `#!json null`.

2. Remove an element range specified by `[first; last)` from a JSON value. The iterator `first` does not need to be
   dereferenceable if `first == last`: erasing an empty range is a no-op.

    If called on a primitive type other than `#!json null`, the resulting JSON value will be `#!json null`.

3. Removes an element from a JSON object by key.

4. Removes an element from a JSON array by index.

## Parameters

`pos` (in)
:   iterator to the element to remove

`first` (in)
:   iterator to the beginning of the range to remove

`last` (in)
:   iterator past the end of the range to remove

`key` (in)
:   object key of the elements to remove

`idx` (in)
:   array index of the element to remove

## Return value

1. Iterator following the last removed element. If the iterator `pos` refers to the last element, the `end()` iterator
   is returned.
2. Iterator following the last removed element. If the iterator `last` refers to the last element, the `end()` iterator
   is returned.
3. Number of elements removed. If `ObjectType` is the default `std::map` type, the return value will always be `0`
   (`key` was not found) or `1` (`key` was found).
4. /

## Exceptions

1. The function can throw the following exceptions:
    - Throws [`type_error.307`](../../home/exceptions.md#jsonexceptiontype_error307) if called on a `null` value;
      example: `"cannot use erase() with null"`
    - Throws [`invalid_iterator.202`](../../home/exceptions.md#jsonexceptioninvalid_iterator202) if called on an
      iterator which does not belong to the current JSON value; example: `"iterator does not fit current value"`
    - Throws [`invalid_iterator.205`](../../home/exceptions.md#jsonexceptioninvalid_iterator205) if called on a
      primitive type with invalid iterator (i.e., any iterator which is not `begin()`); example: `"iterator out of
      range"`
2. The function can throw thw following exceptions:
    - Throws [`type_error.307`](../../home/exceptions.md#jsonexceptiontype_error307) if called on a `null` value;
      example: `"cannot use erase() with null"`
    - Throws [`invalid_iterator.203`](../../home/exceptions.md#jsonexceptioninvalid_iterator203) if called on iterators
      which does not belong to the current JSON value; example: `"iterators do not fit current value"`
    - Throws [`invalid_iterator.204`](../../home/exceptions.md#jsonexceptioninvalid_iterator204) if called on a
      primitive type with invalid iterators (i.e., if `first != begin()` and `last != end()`); example: `"iterators out
      of range"`
3. The function can throw thw following exceptions:
    - Throws [`type_error.307`](../../home/exceptions.md#jsonexceptiontype_error307) when called on a type other than
      JSON object; example: `"cannot use erase() with null"`
4. The function can throw thw following exceptions:
    - Throws [`type_error.307`](../../home/exceptions.md#jsonexceptiontype_error307) when called on a type other than
      JSON object; example: `"cannot use erase() with null"`
    - Throws [`out_of_range.401`](../../home/exceptions.md#jsonexceptionout_of_range401) when `idx >= size()`; example:
      `"array index 17 is out of range"`

## Exception safety

Strong exception safety: if an exception occurs, the original value stays intact.

## Complexity

1. The complexity depends on the type:
       - objects: amortized constant
       - arrays: linear in distance between `pos` and the end of the container
       - strings and binary: linear in the length of the member
       - other types: constant
2. The complexity depends on the type:
       - objects: `log(size()) + std::distance(first, last)`
       - arrays: linear in the distance between `first` and `last`, plus linear
         in the distance between `last` and end of the container
       - strings and binary: linear in the length of the member
       - other types: constant
3. `log(size()) + count(key)`
4. Linear in distance between `idx` and the end of the container.

## Notes

1. Invalidates iterators and references at or after the point of the
   erase, including the `end()` iterator.
2. /
3. References and iterators to the erased elements are invalidated. Other references and iterators are not affected.
4. /

## Example

??? example

    The example shows the effect of `erase()` for different JSON types using an iterator.

    ```cpp
    --8<-- "examples/erase__IteratorType.cpp"
    ```

    Output:

    ```json
    --8<-- "examples/erase__IteratorType.output"
    ```

??? example

    The example shows the effect of `erase()` for different JSON types using an iterator range.

    ```cpp
    --8<-- "examples/erase__IteratorType_IteratorType.cpp"
    ```

    Output:

    ```json
    --8<-- "examples/erase__IteratorType_IteratorType.output"
    ```

??? example

    The example shows the effect of `erase()` for different JSON types using an object key.

    ```cpp
    --8<-- "examples/erase__key_type.cpp"
    ```

    Output:

    ```json
    --8<-- "examples/erase__key_type.output"
    ```

??? example

    The example shows the effect of `erase()` using an array index.

    ```cpp
    --8<-- "examples/erase__size_type.cpp"
    ```

    Output:

    ```json
    --8<-- "examples/erase__size_type.output"
    ```

## Version history

- Added in version 1.0.0.
- Added support for binary types in version 3.8.0.

{'repo_name': 'nlohmann/json', 'stars': '19464', 'repo_language': 'C++', 'file_name': 'main.cpp', 'mime_type': 'text/x-c++', 'hash': 1607200800453251068, 'source_dataset': 'data'}


//
//  ConfettiLayer.swift
//  Confetti
//
//  Created by Or on 04/10/2016.
//  Copyright © 2016 Or. All rights reserved.
//

import Foundation
import UIKit
import CoreMotion

///Manages ShapeViews on a certain designated UIView
class ConfettiLayer {

    let view:UIView
    var timer:Timer? = nil

    var motionManager = CMMotionManager()

    //UIDynamic animator and different Behaviors
    var animator:UIDynamicAnimator
    var itemBehavior = UIDynamicItemBehavior()
    var collisions = UICollisionBehavior()

    // TODO: create a struct to represent the layer state
    // Initial layer state
    var baseVelocity = CGPoint(x:0,y:200.0)
    var calculatedVelocity:CGPoint
    var totalTilt = 1.0

    ///The depth that will be simulated by this layer
    var depth:Double

    /**
     Initializes a new confetti layer on a designated view.
     - Parameters:
        - view: The target view where the confetti will be added
        - depth: Simulates depth feeling using size and speed. Default = 1.0
     */
    init(view aView:UIView, depth aDepth:Double = 1.0) {
        view = aView
        animator = UIDynamicAnimator(referenceView: view)
        calculatedVelocity = baseVelocity
        depth = aDepth
        baseVelocity = CGPoint(x: baseVelocity.x / CGFloat(depth), y: baseVelocity.y / CGFloat(depth))

        if motionManager.isAccelerometerAvailable {
            motionManager.startAccelerometerUpdates()
        }

        setupBehaviors()
        setupTimerLoop()
    }

    ///Setting up the UIDynamic behaviors
    func setupBehaviors() {

        collisions.collisionMode = .boundaries
        resetBounderies()

        itemBehavior.allowsRotation = true
        itemBehavior.friction = 0.0
        itemBehavior.resistance = 0
        itemBehavior.elasticity = 0

        animator.addBehavior(itemBehavior)
        animator.addBehavior(collisions)
    }

    func resetBounderies() {
        collisions.removeAllBoundaries()
        collisions.addBoundary(withIdentifier: "left" as NSCopying, from: CGPoint(x:0,y:0), to: CGPoint(x:0,y:self.view.bounds.size.height))
        collisions.addBoundary(withIdentifier: "right" as NSCopying, from: CGPoint(x:self.view.bounds.size.width,y:0), to: CGPoint(x:self.view.bounds.size.width,y:self.view.bounds.size.height))

    }

    func setupTimerLoop() {

        timer = Timer.scheduledTimer(timeInterval: 0.1, target: self, selector: #selector(self.onTimeTic), userInfo: nil, repeats: true)

    }
    func invalidateTimer() {
        timer?.invalidate()
    }

    @objc func onTimeTic()  {
        self.randomlyAddParticle()

        self.updateCurrentState(self.motionManager.accelerometerData)

    }

    func updateCurrentState(_ accelerometerData:CMAccelerometerData?)  {
        //Calculating the new velocity of the items according to the tilt of the device
        if let accelerometerData = accelerometerData {
            self.totalTilt = -accelerometerData.acceleration.y
            self.calculatedVelocity = CGPoint(x: self.baseVelocity.x + CGFloat(accelerometerData.acceleration.x * 200 / self.depth), y:  CGFloat(-accelerometerData.acceleration.y*300 / self.depth))
        }
        self.itemBehavior.items.forEach{ item in

            //Changing the item's speed
            let vel = self.itemBehavior.linearVelocity(for: item)
            let delta = CGPoint(x:self.calculatedVelocity.x - vel.x,y:self.calculatedVelocity.y - vel.y)
            self.itemBehavior.addLinearVelocity(delta, for: item)

            //Checking if if the item needs to be released
            if let view = item as? UIView {
                if view.frame.origin.y > self.view.frame.size.height {
                    self.collisions.removeItem(item)
                    self.itemBehavior.removeItem(item)
                    view.removeFromSuperview()
                }

            }
        }
    }

    func randomlyAddParticle() {
        //Add particle in dependency to the tilt of the device to more tilted it is less chance to add another partical
        let chance = Double(arc4random_uniform(UInt32(100)))
        if  chance < self.totalTilt * 80 {
            let randX = Int(arc4random_uniform(UInt32(view.frame.width)))
            self.addParticle(at: CGPoint(x: randX, y: -50))
        }
    }

    func addParticle(at point:CGPoint) {
        let shapeView = ShapeView(center: point,depth:self.depth)

        self.view.addSubview(shapeView)
        let precentage =  Double(arc4random_uniform(UInt32(101)))/100.0
        shapeView.transform = CGAffineTransform(rotationAngle: CGFloat(Double.pi*precentage))

        collisions.addItem(shapeView)
        itemBehavior.addItem(shapeView)
        itemBehavior.addLinearVelocity(calculatedVelocity, for: shapeView)
        let spin = Int(arc4random_uniform(UInt32(100)))

        if spin > 80 {
            itemBehavior.addAngularVelocity(CGFloat(Double.pi), for: shapeView)
        }

    }

}

{'repo_name': 'OrRon/ConfettiView', 'stars': '229', 'repo_language': 'Swift', 'file_name': 'ConfettiLayer.swift', 'mime_type': 'text/x-c++', 'hash': 7142378360224309688, 'source_dataset': 'data'}


;(function() {

  window.log = function() {
    //if (!/debug=1/.test(window.location.href)) return;
    console.log.apply(console, arguments);
  }

  // from: http://davidwalsh.name/javascript-debounce-function
  // Returns a function, that, as long as it continues to be invoked, will not
  // be triggered. The function will be called after it stops being called for
  // N milliseconds. If `immediate` is passed, trigger the function on the
  // leading edge, instead of the trailing.
  window.debounce = function(func, wait, immediate) {
    var timeout;
    return function() {
      var context = this, args = arguments;
      clearTimeout(timeout);
      timeout = setTimeout(function() {
        timeout = null;
        if (!immediate) func.apply(context, args);
      }, wait);
      if (immediate && !timeout) func.apply(context, args);
    };
  };

  //console.log = function() {};

  window.getSetting = function(name, defaultValue) {
    var val = localStorage.getItem(name);
    if (typeof(val) === 'undefined' || val === null) {
      return defaultValue;
    }
    else {
      switch (typeof(defaultValue)) {
        case 'number':
          return parseFloat(val);
        case 'boolean':
          return val === 'true';
        case 'object':
          return JSON.parse(val);
        default:
          return val;
      }
    }
  };

}).call(this);

{'repo_name': 'setpixel/storyboard-fountain', 'stars': '195', 'repo_language': 'JavaScript', 'file_name': 'sfpasteboard.m', 'mime_type': 'text/x-objective-c', 'hash': 158698589202610460, 'source_dataset': 'data'}


package com.coderising.ood.ocp;

public class SMSUtil {

	public static void send(String logMsg) {
		// TODO Auto-generated method stub

	}

}

{'repo_name': 'onlyliuxin/coding2017', 'stars': '213', 'repo_language': 'Java', 'file_name': 'CalculatorTest.java', 'mime_type': 'text/x-c', 'hash': 8953764468698370007, 'source_dataset': 'data'}


<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:owl="http://www.w3.org/2002/07/owl#"
  xmlns:dc="http://purl.org/dc/elements/1.1/">

  <owl:Ontology
    rdf:about="http://openguid.net/rdf#"
    dc:title="The Open GUID vocabulary"/>

  <rdf:Property rdf:about="http://openguid.net/rdf#identical">
    <rdfs:isDefinedBy rdf:resource="http://openguid.net/rdf#"/>
    <rdfs:label>identical</rdfs:label>
    <rdfs:comment>The subject referent is identical to the object referent.</rdfs:comment>
    <rdfs:domain rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
    <rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource"/>
  </rdf:Property>
</rdf:RDF>

{'repo_name': 'taurenshaman/semantic-web', 'stars': '106', 'repo_language': 'None', 'file_name': 'SCHEMA_dtype-v1.2.ttl', 'mime_type': 'text/plain', 'hash': 9211132662036160376, 'source_dataset': 'data'}