// Copyright (c) 2015, Emir Pasic. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package btree

import "github.com/emirpasic/gods/containers"

func assertIteratorImplementation() {
	var _ containers.ReverseIteratorWithKey = (*Iterator)(nil)
}

// Iterator holding the iterator's state
type Iterator struct {
	tree     *Tree
	node     *Node
	entry    *Entry
	position position
}

type position byte

const (
	begin, between, end position = 0, 1, 2
)

// Iterator returns a stateful iterator whose elements are key/value pairs.
func (tree *Tree) Iterator() Iterator {
	return Iterator{tree: tree, node: nil, position: begin}
}

// Next moves the iterator to the next element and returns true if there was a next element in the container.
// If Next() returns true, then next element's key and value can be retrieved by Key() and Value().
// If Next() was called for the first time, then it will point the iterator to the first element if it exists.
// Modifies the state of the iterator.
func (iterator *Iterator) Next() bool {
	// If already at end, go to end
	if iterator.position == end {
		goto end
	}
	// If at beginning, get the left-most entry in the tree
	if iterator.position == begin {
		left := iterator.tree.Left()
		if left == nil {
			goto end
		}
		iterator.node = left
		iterator.entry = left.Entries[0]
		goto between
	}
	{
		// Find current entry position in current node
		e, _ := iterator.tree.search(iterator.node, iterator.entry.Key)
		// Try to go down to the child right of the current entry
		if e+1 < len(iterator.node.Children) {
			iterator.node = iterator.node.Children[e+1]
			// Try to go down to the child left of the current node
			for len(iterator.node.Children) > 0 {
				iterator.node = iterator.node.Children[0]
			}
			// Return the left-most entry
			iterator.entry = iterator.node.Entries[0]
			goto between
		}
		// Above assures that we have reached a leaf node, so return the next entry in current node (if any)
		if e+1 < len(iterator.node.Entries) {
			iterator.entry = iterator.node.Entries[e+1]
			goto between
		}
	}
	// Reached leaf node and there are no entries to the right of the current entry, so go up to the parent
	for iterator.node.Parent != nil {
		iterator.node = iterator.node.Parent
		// Find next entry position in current node (note: search returns the first equal or bigger than entry)
		e, _ := iterator.tree.search(iterator.node, iterator.entry.Key)
		// Check that there is a next entry position in current node
		if e < len(iterator.node.Entries) {
			iterator.entry = iterator.node.Entries[e]
			goto between
		}
	}

end:
	iterator.End()
	return false

between:
	iterator.position = between
	return true
}

// Prev moves the iterator to the previous element and returns true if there was a previous element in the container.
// If Prev() returns true, then previous element's key and value can be retrieved by Key() and Value().
// Modifies the state of the iterator.
func (iterator *Iterator) Prev() bool {
	// If already at beginning, go to begin
	if iterator.position == begin {
		goto begin
	}
	// If at end, get the right-most entry in the tree
	if iterator.position == end {
		right := iterator.tree.Right()
		if right == nil {
			goto begin
		}
		iterator.node = right
		iterator.entry = right.Entries[len(right.Entries)-1]
		goto between
	}
	{
		// Find current entry position in current node
		e, _ := iterator.tree.search(iterator.node, iterator.entry.Key)
		// Try to go down to the child left of the current entry
		if e < len(iterator.node.Children) {
			iterator.node = iterator.node.Children[e]
			// Try to go down to the child right of the current node
			for len(iterator.node.Children) > 0 {
				iterator.node = iterator.node.Children[len(iterator.node.Children)-1]
			}
			// Return the right-most entry
			iterator.entry = iterator.node.Entries[len(iterator.node.Entries)-1]
			goto between
		}
		// Above assures that we have reached a leaf node, so return the previous entry in current node (if any)
		if e-1 >= 0 {
			iterator.entry = iterator.node.Entries[e-1]
			goto between
		}
	}
	// Reached leaf node and there are no entries to the left of the current entry, so go up to the parent
	for iterator.node.Parent != nil {
		iterator.node = iterator.node.Parent
		// Find previous entry position in current node (note: search returns the first equal or bigger than entry)
		e, _ := iterator.tree.search(iterator.node, iterator.entry.Key)
		// Check that there is a previous entry position in current node
		if e-1 >= 0 {
			iterator.entry = iterator.node.Entries[e-1]
			goto between
		}
	}

begin:
	iterator.Begin()
	return false

between:
	iterator.position = between
	return true
}

// Value returns the current element's value.
// Does not modify the state of the iterator.
func (iterator *Iterator) Value() interface{} {
	return iterator.entry.Value
}

// Key returns the current element's key.
// Does not modify the state of the iterator.
func (iterator *Iterator) Key() interface{} {
	return iterator.entry.Key
}

// Begin resets the iterator to its initial state (one-before-first)
// Call Next() to fetch the first element if any.
func (iterator *Iterator) Begin() {
	iterator.node = nil
	iterator.position = begin
	iterator.entry = nil
}

// End moves the iterator past the last element (one-past-the-end).
// Call Prev() to fetch the last element if any.
func (iterator *Iterator) End() {
	iterator.node = nil
	iterator.position = end
	iterator.entry = nil
}

// First moves the iterator to the first element and returns true if there was a first element in the container.
// If First() returns true, then first element's key and value can be retrieved by Key() and Value().
// Modifies the state of the iterator
func (iterator *Iterator) First() bool {
	iterator.Begin()
	return iterator.Next()
}

// Last moves the iterator to the last element and returns true if there was a last element in the container.
// If Last() returns true, then last element's key and value can be retrieved by Key() and Value().
// Modifies the state of the iterator.
func (iterator *Iterator) Last() bool {
	iterator.End()
	return iterator.Prev()
}

{'repo_name': 'apache/rocketmq-externals', 'stars': '2918', 'repo_language': 'Java', 'file_name': 'JmsConsumerIT.java', 'mime_type': 'text/x-java', 'hash': -8616645085011443695, 'source_dataset': 'data'}


(function () {
    'use strict';

    angular.module('ariaNg').factory('ariaNgLanguageLoader', ['$http', '$q', 'ariaNgConstants', 'ariaNgLanguages', 'ariaNgAssetsCacheService', 'ariaNgNotificationService', 'ariaNgLocalizationService', 'ariaNgLogService', 'ariaNgStorageService', function ($http, $q, ariaNgConstants, ariaNgLanguages, ariaNgAssetsCacheService, ariaNgNotificationService, ariaNgLocalizationService, ariaNgLogService, ariaNgStorageService) {
        var getKeyValuePair = function (line) {
            for (var i = 0; i < line.length; i++) {
                if (i > 0 && line.charAt(i - 1) !== '\\' && line.charAt(i) === '=') {
                    return {
                        key: line.substring(0, i).replace('\\=', '='),
                        value: line.substring(i + 1, line.length).replace('\\=', '=')
                    };
                }
            }

            return {
                value: line
            };
        };

        var getCategory = function (langObj, category) {
            var currentCategory = langObj;

            if (!category) {
                return currentCategory;
            }

            if (category[0] === '[' && category[category.length - 1] === ']') {
                category = category.substring(1, category.length - 1);
            }

            if (category === 'global') {
                return currentCategory;
            }

            var categoryNames = category.split('.');

            for (var i = 0; i < categoryNames.length; i++) {
                var categoryName = categoryNames[i];

                if (!currentCategory[categoryName]) {
                    currentCategory[categoryName] = {};
                }

                currentCategory = currentCategory[categoryName];
            }

            return currentCategory;
        };

        var getLanguageObject = function (languageContent) {
            var langObj = {};

            if (!languageContent) {
                return langObj;
            }

            var lines = languageContent.split('\n');
            var currentCatagory = langObj;

            for (var i = 0; i < lines.length; i++) {
                var line = lines[i];

                if (!line) {
                    continue;
                }

                line = line.replace('\r', '');

                if (/^\[.+\]$/.test(line)) {
                    currentCatagory = getCategory(langObj, line);
                    continue;
                }

                var pair = getKeyValuePair(line);

                if (pair && pair.key) {
                    currentCatagory[pair.key] = pair.value;
                }
            }

            return langObj;
        };

        var isLanguageResourceEquals = function (langObj1, langObj2) {
            if (!angular.isObject(langObj1) || !angular.isObject(langObj2)) {
                return false;
            }

            for (var key in langObj2) {
                if (!langObj2.hasOwnProperty(key)) {
                    continue;
                }

                var value = langObj2[key];

                if (angular.isObject(value)) {
                    var result = isLanguageResourceEquals(langObj1[key], value);
                    if (!result) {
                        return false;
                    }
                } else {
                    if (value !== langObj1[key]) {
                        return false;
                    }
                }
            }

            return true;
        };

        return function (options) {
            var deferred = $q.defer();

            if (!ariaNgLanguages[options.key]) {
                deferred.reject(options.key);
                return deferred.promise;
            }

            var languageKey = ariaNgConstants.languageStorageKeyPrefix + '.' + options.key;
            var languageResource = null; // AriaNg Native DO NOT cache language resource

            if (ariaNgAssetsCacheService.getLanguageAsset(options.key)) {
                var languageObject = getLanguageObject(ariaNgAssetsCacheService.getLanguageAsset(options.key));
                ariaNgStorageService.set(languageKey, languageObject);
                deferred.resolve(languageObject);

                return deferred.promise;
            }

            var languagePath = ariaNgConstants.languagePath + '/' + options.key + ariaNgConstants.languageFileExtension;

            $http({
                url: languagePath,
                method: 'GET'
            }).then(function onSuccess(response) {
                var languageObject = getLanguageObject(response.data);
                var languageUpdated = false;

                if (languageResource) {
                    languageUpdated = !isLanguageResourceEquals(languageResource, languageObject);
                }

                ariaNgStorageService.set(languageKey, languageObject);

                if (languageUpdated) {
                    ariaNgLogService.info("[ariaNgLanguageLoader] load language resource successfully, and resource is updated");
                    ariaNgLocalizationService.notifyInPage('', 'Language resource has been updated, please reload the page for the changes to take effect.', {
                        delay: false,
                        type: 'info',
                        templateUrl: 'views/notification-reloadable.html'
                    });
                } else {
                    ariaNgLogService.info("[ariaNgLanguageLoader] load language resource successfully, but resource is not updated");
                }

                return deferred.resolve(languageObject);
            }).catch(function onError(response) {
                ariaNgLogService.warn('[ariaNgLanguageLoader] cannot get language resource');
                if (!languageResource) {
                    ariaNgNotificationService.notifyInPage('', 'AriaNg cannot get language resources, and will display in default language.', {
                        type: 'error',
                        delay: false
                    });
                }
                return deferred.reject(options.key);
            });

            return deferred.promise;
        };
    }]);
}());

{'repo_name': 'mayswind/AriaNg-Native', 'stars': '961', 'repo_language': 'JavaScript', 'file_name': 'debug.html', 'mime_type': 'text/plain', 'hash': 3841295960409793786, 'source_dataset': 'data'}


@import "Library.less";
.owl-carousel.owl-theme {
    .owl-prev:hover, .owl-carousel .owl-next:hover {
        background-color: @color-main;
    }

    .progressBar > .bar {
        background-color: @color-main;
    }

    .carousel-content {
        background: rgba(64, 64, 64, 0.50);
    }
}

{'repo_name': 'SeriaWei/ZKEACMS', 'stars': '2173', 'repo_language': 'TSQL', 'file_name': 'launch.json', 'mime_type': 'text/plain', 'hash': -2786169541871044490, 'source_dataset': 'data'}


/*
 * Copyright (C) 2015 The Android Open Source Project
 *
 * 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 com.android.example.devsummit.archdemo.api;

import com.android.example.devsummit.archdemo.vo.Post;
import com.android.example.devsummit.archdemo.vo.User;

import java.util.List;

public class FeedResponse {

    private List<Post> mPosts;
    private List<User> mUsers;

    public List<Post> getPosts() {
        return mPosts;
    }

    public void setPosts(List<Post> posts) {
        this.mPosts = posts;
    }

    public List<User> getUsers() {
        return mUsers;
    }

    public void setUsers(List<User> users) {
        this.mUsers = users;
    }
}

{'repo_name': 'yigit/dev-summit-architecture-demo', 'stars': '1233', 'repo_language': 'Java', 'file_name': '404.html', 'mime_type': 'text/html', 'hash': 1531953148274814275, 'source_dataset': 'data'}


# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""A dummy exception subclass used by core/discover.py's unit tests."""
from discoverable_classes import discover_dummyclass

class DummyExceptionWithParameterImpl2(discover_dummyclass.DummyException):
  def __init__(self, parameter1, parameter2):
    super(DummyExceptionWithParameterImpl2, self).__init__()
    del parameter1, parameter2

{'repo_name': 'FSecureLABS/Jandroid', 'stars': '233', 'repo_language': 'Python', 'file_name': 'api-versions.xml', 'mime_type': 'text/xml', 'hash': -2951920722697729671, 'source_dataset': 'data'}


/* Arduino SdFat Library
 * Copyright (C) 2008 by William Greiman
 *
 * This file is part of the Arduino SdFat Library
 *
 * This Library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This Library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with the Arduino SdFat Library.  If not, see
 * <http://www.gnu.org/licenses/>.
 */
#include "Marlin.h"

#ifdef SDSUPPORT
#include "SdFatUtil.h"

//------------------------------------------------------------------------------
/** Amount of free RAM
 * \return The number of free bytes.
 */
int SdFatUtil::FreeRam() {
  extern int  __bss_end;
  extern int* __brkval;
  int free_memory;
  if (reinterpret_cast<int>(__brkval) == 0) {
    // if no heap use from end of bss section
    free_memory = reinterpret_cast<int>(&free_memory)
                  - reinterpret_cast<int>(&__bss_end);
  } else {
    // use from top of stack to heap
    free_memory = reinterpret_cast<int>(&free_memory)
                  - reinterpret_cast<int>(__brkval);
  }
  return free_memory;
}
//------------------------------------------------------------------------------
/** %Print a string in flash memory.
 *
 * \param[in] pr Print object for output.
 * \param[in] str Pointer to string stored in flash memory.
 */
void SdFatUtil::print_P( PGM_P str) {
  for (uint8_t c; (c = pgm_read_byte(str)); str++) MYSERIAL.write(c);
}
//------------------------------------------------------------------------------
/** %Print a string in flash memory followed by a CR/LF.
 *
 * \param[in] pr Print object for output.
 * \param[in] str Pointer to string stored in flash memory.
 */
void SdFatUtil::println_P( PGM_P str) {
  print_P( str);
  MYSERIAL.println();
}
//------------------------------------------------------------------------------
/** %Print a string in flash memory to Serial.
 *
 * \param[in] str Pointer to string stored in flash memory.
 */
void SdFatUtil::SerialPrint_P(PGM_P str) {
  print_P(str);
}
//------------------------------------------------------------------------------
/** %Print a string in flash memory to Serial followed by a CR/LF.
 *
 * \param[in] str Pointer to string stored in flash memory.
 */
void SdFatUtil::SerialPrintln_P(PGM_P str) {
  println_P( str);
}
#endif

{'repo_name': 'RichCattell/Marlin', 'stars': '137', 'repo_language': 'C++', 'file_name': 'Configuration.h', 'mime_type': 'text/x-c', 'hash': -6083374405993572139, 'source_dataset': 'data'}


; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
; See the LICENSE file in the project root for more information.
;
LIBRARY STRIKE
EXPORTS
    AnalyzeOOM
    analyzeoom=AnalyzeOOM
    ao=AnalyzeOOM
    ClrStack
    clrstack=ClrStack
    CLRStack=ClrStack
    DumpALC
    dumpalc=DumpALC
    DumpArray
    da=DumpArray
    dumparray=DumpArray
    DumpAssembly
    dumpassembly=DumpAssembly
    DumpAsync
    dumpasync=DumpAsync
    DumpClass
    dumpclass=DumpClass
    DumpDelegate
    dumpdelegate=DumpDelegate
    DumpDomain
    dumpdomain=DumpDomain
#ifdef TRACE_GC
    DumpGCLog
    dumpgclog=DumpGCLog
    dlog=DumpGCLog
#endif
    DumpGCData
    dumpgcdata=DumpGCData
    dgc=DumpGCData
    DumpGCConfigLog
    dumpgcconfiglog=DumpGCConfigLog
    dclog=DumpGCConfigLog
    DumpHeap
    dumpheap=DumpHeap
    DumpIL
    dumpil=DumpIL
    DumpLog
    dumplog=DumpLog
    Dumplog=DumpLog
    DumpMD
    dumpmd=DumpMD
    DumpModule
    dumpmodule=DumpModule
    DumpMT
    dumpmt=DumpMT
    DumpObj
    do=DumpObj
    dumpobj=DumpObj
    DumpRuntimeTypes
    dumpruntimetypes=DumpRuntimeTypes
    Dumpruntimetypes=DumpRuntimeTypes
    DumpSig
    dumpsig=DumpSig
    DumpSigElem
    dumpsigelem=DumpSigElem
    DumpStack
    dumpstack=DumpStack
    DumpStackObjects
    dso=DumpStackObjects
    dumpstackobjects=DumpStackObjects
    DumpVC
    dumpvc=DumpVC
    EEHeap
    eeheap=EEHeap
    EEStack
    eestack=EEStack
    EHInfo
    ehinfo=EHInfo
    Ehinfo=EHInfo
    FinalizeQueue
    finalizequeue=FinalizeQueue
    fq=FinalizeQueue
    FindAppDomain
    findappdomain=FindAppDomain
    Findappdomain=FindAppDomain
    FindRoots
    findroots=FindRoots
    GCHandles
    gchandles=GCHandles
    GCHeapStat
    gcheapstat=GCHeapStat
    GcHeapStat=GCHeapStat
    heapstat=GCHeapStat
    HeapStat=GCHeapStat
    GCInfo
    gcinfo=GCInfo
    GCRoot
    gcroot=GCRoot
    GCWhere
    gcwhere=GCWhere
    GcWhere=GCWhere
    Help
    help=Help
    soshelp=Help
    HistClear
    histclear=HistClear
    HistInit
    histinit=HistInit
    HistObj
    histobj=HistObj
    HistObjFind
    histobjfind=HistObjFind
    hof=HistObjFind
    HistRoot
    histroot=HistRoot
    HistStats
    histstats=HistStats
    IP2MD
    ip2md=IP2MD
    ListNearObj
    listnearobj=ListNearObj
    lno=ListNearObj
    Name2EE
    name2ee=Name2EE
    ObjSize
    objsize=ObjSize
    PrintException
    pe=PrintException
    printexception=PrintException
    Printexception=PrintException
    SaveModule
    savemodule=SaveModule
    SetHostRuntime
    sethostruntime=SetHostRuntime
    SetSymbolServer
    setsymbolserver=SetSymbolServer
    SetClrPath
    setclrpath=SetClrPath
    SOSFlush
    sosflush=SOSFlush
    StopOnException
    soe=StopOnException
    stoponexception=StopOnException
    Stoponexception=StopOnException
    SyncBlk
    syncblk=SyncBlk
    ThreadPool
    threadpool=ThreadPool
    tp=ThreadPool
    Threads
    t=Threads
    threads=Threads
    clrthreads=Threads
    ThreadState
    threadstate=ThreadState
    Token2EE
    token2ee=Token2EE
    TraverseHeap
    traverseheap=TraverseHeap
    Traverseheap=TraverseHeap
    u
    U=u
    VerifyHeap
    verifyheap=VerifyHeap
    Verifyheap=VerifyHeap
    vh=VerifyHeap
    VerifyObj
    verifyobj=VerifyObj
    vo=VerifyObj
    VMMap
    vmmap=VMMap
    VMStat
    vmstat=VMStat

#ifdef FEATURE_COMINTEROP
    COMState
    comstate=COMState
    RCWCleanupList
    rcwcleanuplist=RCWCleanupList
    Rcwcleanuplist=RCWCleanupList
    DumpRCW
    dumprcw=DumpRCW
    Dumprcw=DumpRCW
    DumpCCW
    dumpccw=DumpCCW
    Dumpccw=DumpCCW
#endif

#ifdef _DEBUG
    DumpPermissionSet
    dps=DumpPermissionSet
    dumppermissionset=DumpPermissionSet
#endif

    dbgout
    _EFN_GetManagedExcepStack
    _EFN_GetManagedExcepStackW
    _EFN_GetManagedObjectFieldInfo
    _EFN_GetManagedObjectName
    _EFN_StackTrace
    _EFN_GetManagedThread
    VerifyGMT
    bpmd
    BPMD=bpmd
    DebugExtensionInitialize
    DebugExtensionNotify
    DebugExtensionUninitialize
    EEVersion
    eeversion=EEVersion
    GCHandleLeaks
    gchandleleaks=GCHandleLeaks
    Gchandleleaks=GCHandleLeaks
    GCHandleleaks=GCHandleLeaks
    SOSHandleCLRN
    MinidumpMode
    minidumpmode=MinidumpMode
    Minidumpmode=MinidumpMode
    PathTo
    pathto=PathTo
    ProcInfo
    procinfo=ProcInfo
    SOSStatus
    sosstatus=SOSStatus
    VerifyStackTrace
    WatsonBuckets

#ifdef FEATURE_CORESYSTEM
// Only documented for Apollo internal usage
    Watch
    watch=Watch
    SuppressJitOptimization
    suppressjitoptimization=SuppressJitOptimization
    sjo=SuppressJitOptimization
    SaveState
    savestate=SaveState
    StopOnCatch
    stoponcatch=StopOnCatch

// Undocumented commands - testing or very experimental
    ExposeDML
    exposeDML=ExposeDML
    GetCodeTypeFlags
    getCodeTypeFlags=GetCodeTypeFlags
    TraceToCode
    tracetocode=TraceToCode
#endif

    SOSInitializeByHost

{'repo_name': 'dotnet/diagnostics', 'stars': '661', 'repo_language': 'C++', 'file_name': 'toolchain.cmake', 'mime_type': 'text/plain', 'hash': -2217703187880246862, 'source_dataset': 'data'}


---
github: yegor256/sixnines
logohandle: sixninesio
sort: sixnines
title: SixNines
website: 'https://www.sixnines.io/'
---

{'repo_name': 'VectorLogoZone/vectorlogozone', 'stars': '209', 'repo_language': 'HTML', 'file_name': 'none.html', 'mime_type': 'text/plain', 'hash': 2277057790939371788, 'source_dataset': 'data'}


//
//     Generated by class-dump 3.5 (64 bit).
//
//     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//

#import <CoreDAV/CoreDAVActionBackedTask.h>

@class NSString;

@interface CoreDAVDeleteTask : CoreDAVActionBackedTask
{
    NSString *_previousETag;
}

@property(retain) NSString *previousETag; // @synthesize previousETag=_previousETag;
- (void)finishCoreDAVTaskWithError:(id)arg1;
- (id)requestBody;
- (id)additionalHeaderValues;
- (id)httpMethod;
- (id)description;
- (void)dealloc;

// Remaining properties
@property(nonatomic) id <CoreDAVTaskDelegate> delegate; // @dynamic delegate;

@end

{'repo_name': 'samdmarshall/OSXPrivateSDK', 'stars': '142', 'repo_language': 'C', 'file_name': 'NSTableViewDataSource-Protocol.h', 'mime_type': 'text/x-objective-c', 'hash': 2411759054012969752, 'source_dataset': 'data'}


vendor: Nirmata Inc.
name: Nirmata Managed Kubernetes
version: 2.3.0
website_url: https://www.nirmata.com/
documentation_url: https://docs.nirmata.io/en/latest/Clusters.html#create-a-new-kubernetes-cluster
product_logo_url: http://www.nirmata.com/wp-content/uploads/2017/05/logo-white.png

{'repo_name': 'cncf/k8s-conformance', 'stars': '432', 'repo_language': 'None', 'file_name': 'Certified_Kubernetes_Form.md', 'mime_type': 'text/plain', 'hash': -792412848303362301, 'source_dataset': 'data'}


using System;
using System.Threading.Tasks;

namespace AutoCSer.CacheServer.DataStructure.Parameter
{
    /// <summary>
    /// 查询参数节点
    /// </summary>
    public sealed partial class QueryInt
    {
        /// <summary>
        /// 查询数据
        /// </summary>
        /// <returns></returns>
        public async Task<ReturnValue<int>> QueryTask()
        {
            return Client.GetInt(await Parent.ClientDataStructure.Client.QueryAwaiter(this));
        }
    }
}

{'repo_name': 'AutoCSer/AutoCSer', 'stars': '128', 'repo_language': 'C#', 'file_name': 'DeflateDeCompressor.cs', 'mime_type': 'text/plain', 'hash': 2645292186072057963, 'source_dataset': 'data'}


/*
 * Copyright 2015 Marvin Ramin
 *
 * 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 com.mtramin.rxfingerprint;

/**
 * Data of a cryptographic operation with RxFingerprint.
 */
class CryptoData {
	static final String SEPARATOR = "-_-";

	private final EncodingProvider encodingProvider;

    private final String messageEncoded;
    private final String ivEncoded;

    private CryptoData(EncodingProvider encodingProvider, byte[] messageBytes, byte[] ivBytes) {
		this.encodingProvider = encodingProvider;
		messageEncoded = encodingProvider.encode(messageBytes);
		ivEncoded = encodingProvider.encode(ivBytes);
    }

    private CryptoData(EncodingProvider encodingProvider, String message, String iv) {
		this.encodingProvider = encodingProvider;
		messageEncoded = message;
		ivEncoded = iv;
    }

    /**
	 * Sets up data from an input string.
	 *
	 * @param input input string that was previously encrypted by RxFingerprint
	 * @return parsed data
	 */
	static CryptoData fromString(EncodingProvider encodingProvider, String input) throws CryptoDataException {
		verifyCryptoDataString(input);

		String[] inputParams = input.split(SEPARATOR);
		return new CryptoData(encodingProvider, inputParams[0], inputParams[1]);
	}

	/**
	 * Sets up data from encrypted byte that resulted from encryption operation.
	 *
	 * @param messageBytes encrypted bytes of message
	 * @param ivBytes      initialization vector in bytes
	 * @return parsed data
	 */
	static CryptoData fromBytes(EncodingProvider encodingProviders, byte[] messageBytes, byte[] ivBytes) {
		return new CryptoData(encodingProviders, messageBytes, ivBytes);
	}

	/**
	 * Checks if the given input is a valid encrypted string. Will throw an exception if the input
	 * is invalid.
	 *
	 * @param input input to verify
	 */
	static void verifyCryptoDataString(String input) throws CryptoDataException {
		if (input.isEmpty() || !input.contains(SEPARATOR)) {
			throw CryptoDataException.fromCryptoDataString(input);
		}
	}

    @Override
    public String toString() {
        return messageEncoded + SEPARATOR + ivEncoded;
    }

    /**
     * @return initialization vector of the crypto operation
     */
     byte[] getIv() {
        return encodingProvider.decode(ivEncoded);
    }

    /**
     * @return message of the crypto operation
     */
     byte[] getMessage() {
        return encodingProvider.decode(messageEncoded);
    }
}

{'repo_name': 'Mauin/RxFingerprint', 'stars': '370', 'repo_language': 'Java', 'file_name': 'MainActivity.java', 'mime_type': 'text/x-java', 'hash': -455564706747996291, 'source_dataset': 'data'}


fileFormatVersion: 2
guid: 51e6f185beb79574a8441829546f7d5d
TextureImporter:
  serializedVersion: 2
  mipmaps:
    mipMapMode: 0
    enableMipMap: 1
    linearTexture: 1
    correctGamma: 0
    fadeOut: 0
    borderMipMap: 0
    mipMapFadeDistanceStart: 1
    mipMapFadeDistanceEnd: 3
  bumpmap:
    convertToNormalMap: 0
    externalNormalMap: 1
    heightScale: .25
    normalMapFilter: 0
  isReadable: 0
  grayScaleToAlpha: 0
  generateCubemap: 0
  textureFormat: -1
  maxTextureSize: 256
  textureSettings:
    filterMode: -1
    aniso: -1
    mipBias: -1
    wrapMode: -1
  nPOTScale: 1
  lightmap: 0
  compressionQuality: 50
  textureType: 1
  buildTargetSettings: []

{'repo_name': 'David20321/FTJ', 'stars': '295', 'repo_language': 'C#', 'file_name': 'Alpha-Bumped CatchProject.shader.meta', 'mime_type': 'text/plain', 'hash': -7873397055014337336, 'source_dataset': 'data'}


<http://example.org/base/baz> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/ns/bar> .
_:b0 <http://example.org/ns/foo> <http://example.org/base/baz> .

{'repo_name': 'dotnetrdf/dotnetrdf', 'stars': '168', 'repo_language': 'C#', 'file_name': 'AssemblyInfo.cs', 'mime_type': 'text/plain', 'hash': -7503432399352487323, 'source_dataset': 'data'}


/*
 * Generated by util/mkerr.pl DO NOT EDIT
 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

#ifndef HEADER_DSAERR_H
# define HEADER_DSAERR_H

# include <openssl/opensslconf.h>

# ifndef OPENSSL_NO_DSA

#  ifdef  __cplusplus
extern "C"
#  endif
int ERR_load_DSA_strings(void);

/*
 * DSA function codes.
 */
#  define DSA_F_DSAPARAMS_PRINT                            100
#  define DSA_F_DSAPARAMS_PRINT_FP                         101
#  define DSA_F_DSA_BUILTIN_PARAMGEN                       125
#  define DSA_F_DSA_BUILTIN_PARAMGEN2                      126
#  define DSA_F_DSA_DO_SIGN                                112
#  define DSA_F_DSA_DO_VERIFY                              113
#  define DSA_F_DSA_METH_DUP                               127
#  define DSA_F_DSA_METH_NEW                               128
#  define DSA_F_DSA_METH_SET1_NAME                         129
#  define DSA_F_DSA_NEW_METHOD                             103
#  define DSA_F_DSA_PARAM_DECODE                           119
#  define DSA_F_DSA_PRINT_FP                               105
#  define DSA_F_DSA_PRIV_DECODE                            115
#  define DSA_F_DSA_PRIV_ENCODE                            116
#  define DSA_F_DSA_PUB_DECODE                             117
#  define DSA_F_DSA_PUB_ENCODE                             118
#  define DSA_F_DSA_SIGN                                   106
#  define DSA_F_DSA_SIGN_SETUP                             107
#  define DSA_F_DSA_SIG_NEW                                102
#  define DSA_F_OLD_DSA_PRIV_DECODE                        122
#  define DSA_F_PKEY_DSA_CTRL                              120
#  define DSA_F_PKEY_DSA_CTRL_STR                          104
#  define DSA_F_PKEY_DSA_KEYGEN                            121

/*
 * DSA reason codes.
 */
#  define DSA_R_BAD_Q_VALUE                                102
#  define DSA_R_BN_DECODE_ERROR                            108
#  define DSA_R_BN_ERROR                                   109
#  define DSA_R_DECODE_ERROR                               104
#  define DSA_R_INVALID_DIGEST_TYPE                        106
#  define DSA_R_INVALID_PARAMETERS                         112
#  define DSA_R_MISSING_PARAMETERS                         101
#  define DSA_R_MODULUS_TOO_LARGE                          103
#  define DSA_R_NO_PARAMETERS_SET                          107
#  define DSA_R_PARAMETER_ENCODING_ERROR                   105
#  define DSA_R_Q_NOT_PRIME                                113
#  define DSA_R_SEED_LEN_SMALL                             110

# endif
#endif

{'repo_name': 'ProtonVPN/android-app', 'stars': '432', 'repo_language': 'C', 'file_name': 'checkstyle.xml', 'mime_type': 'text/xml', 'hash': 6954986069589752286, 'source_dataset': 'data'}


// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Kubernetes.Settings.V1Alpha1
{
    /// <summary>
    /// PodPreset is a policy resource that defines additional runtime requirements for a Pod.
    /// </summary>
    public partial class PodPreset : KubernetesResource
    {
        /// <summary>
        /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
        /// </summary>
        [Output("apiVersion")]
        public Output<string> ApiVersion { get; private set; } = null!;

        /// <summary>
        /// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        /// </summary>
        [Output("kind")]
        public Output<string> Kind { get; private set; } = null!;

        [Output("metadata")]
        public Output<Pulumi.Kubernetes.Types.Outputs.Meta.V1.ObjectMeta> Metadata { get; private set; } = null!;

        [Output("spec")]
        public Output<Pulumi.Kubernetes.Types.Outputs.Settings.V1Alpha1.PodPresetSpec> Spec { get; private set; } = null!;

        /// <summary>
        /// Create a PodPreset resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public PodPreset(string name, Pulumi.Kubernetes.Types.Inputs.Settings.V1Alpha1.PodPresetArgs? args = null, CustomResourceOptions? options = null)
            : base("kubernetes:settings.k8s.io/v1alpha1:PodPreset", name, MakeArgs(args), MakeResourceOptions(options, ""))
        {
        }
        internal PodPreset(string name, ImmutableDictionary<string, object?> dictionary, CustomResourceOptions? options = null)
            : base("kubernetes:settings.k8s.io/v1alpha1:PodPreset", name, new DictionaryResourceArgs(dictionary), MakeResourceOptions(options, ""))
        {
        }

        private PodPreset(string name, Input<string> id, CustomResourceOptions? options = null)
            : base("kubernetes:settings.k8s.io/v1alpha1:PodPreset", name, null, MakeResourceOptions(options, id))
        {
        }

        private static Pulumi.Kubernetes.Types.Inputs.Settings.V1Alpha1.PodPresetArgs? MakeArgs(Pulumi.Kubernetes.Types.Inputs.Settings.V1Alpha1.PodPresetArgs? args)
        {
            args ??= new Pulumi.Kubernetes.Types.Inputs.Settings.V1Alpha1.PodPresetArgs();
            args.ApiVersion = "settings.k8s.io/v1alpha1";
            args.Kind = "PodPreset";
            return args;
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing PodPreset resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static PodPreset Get(string name, Input<string> id, CustomResourceOptions? options = null)
        {
            return new PodPreset(name, id, options);
        }
    }
}
namespace Pulumi.Kubernetes.Types.Inputs.Settings.V1Alpha1
{

    public class PodPresetArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
        /// </summary>
        [Input("apiVersion")]
        public Input<string>? ApiVersion { get; set; }

        /// <summary>
        /// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        /// </summary>
        [Input("kind")]
        public Input<string>? Kind { get; set; }

        [Input("metadata")]
        public Input<Pulumi.Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs>? Metadata { get; set; }

        [Input("spec")]
        public Input<Pulumi.Kubernetes.Types.Inputs.Settings.V1Alpha1.PodPresetSpecArgs>? Spec { get; set; }

        public PodPresetArgs()
        {
        }
    }
}

{'repo_name': 'pulumi/pulumi-kubernetes', 'stars': '149', 'repo_language': 'Go', 'file_name': 'localSubjectAccessReview.go', 'mime_type': 'text/plain', 'hash': -5276134128964236404, 'source_dataset': 'data'}


.. Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht

   Distributed under the terms of the BSD 3-Clause License.

   The full license is in the file LICENSE, distributed with this software.

xtensor
=======

Defined in ``xtensor/xtensor.hpp``

.. doxygenclass:: xt::xtensor_container
   :project: xtensor
   :members:

.. doxygentypedef:: xt::xtensor
   :project: xtensor

.. doxygentypedef:: xt::xtensor_optional
   :project: xtensor

.. doxygenfunction:: xt::from_indices
   :project: xtensor

.. doxygenfunction:: xt::flatten_indices
   :project: xtensor

.. doxygenfunction:: xt::ravel_indices
   :project: xtensor

{'repo_name': 'xtensor-stack/xtensor', 'stars': '1933', 'repo_language': 'C++', 'file_name': 'FindTBB.cmake', 'mime_type': 'text/plain', 'hash': 982134162462585493, 'source_dataset': 'data'}


//
//     Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 15 2018 10:31:50).
//
//     class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//

#import <AppKit/NSView.h>

#import <AppKit/_NSTouchBarItemLayoutWrapper-Protocol.h>

@class NSMutableArray, NSStackView, NSString, NSToolbar, NSToolbarItem, NSToolbarView;

@interface NSToolbarItemViewer : NSView <_NSTouchBarItemLayoutWrapper>
{
    NSToolbarItem *_item;
    NSToolbarView *_toolbarView;
    NSMutableArray *_labelViews;
    NSStackView *_labelStack;
    struct CGRect _labelRect;
    double _labelHeight;
    long long _priorityIndex;
    NSMutableArray *_activeConstraints;
    struct CGSize _maxViewerSize;
    struct CGSize _minViewerSize;
    struct CGSize _scalableMinIconSize;
    struct CGSize _scalableMaxIconSize;
    double _overriddenMaxWidth;
    double _preferredTrailingPosition;
    double _widthRequiredForLabelLayout;
    struct _NSToolbarMotion *_motion;
    double _xOriginForLayout;
    double _iconWidthForLayout;
    double _forcibleFrameWidthForLayout;
    NSToolbarView *_savedToolbarView;
    NSToolbarItem *_savedItem;
    NSToolbar *_savedToolbar;
    struct {
        unsigned int drawsIconPart:1;
        unsigned int drawsLabelPart:1;
        unsigned int iconAreaIncludesLabelArea:1;
        unsigned int transparentBackground:1;
        unsigned int labelOnlyShowsAsPopupMenu:1;
        unsigned int inMotion:1;
        unsigned int inRecursiveDisplay:1;
        unsigned int RESERVED1:1;
        unsigned int needsViewerLayout:1;
        unsigned int needsModeConfiguration:1;
        unsigned int inPaletteView:1;
        unsigned int returnFocusToWindowAfterClick:1;
        unsigned int needsInitialAutovalidation:1;
        unsigned int needsRedrawForChangeInActiveState:1;
        unsigned int watchingBackgroundChangedNotification:1;
        unsigned int accessibilityAddedDescriptionToSubelements:1;
        unsigned int configuringForLayout:1;
        unsigned int needsLayoutAfterSubviewsBorrowed:1;
        unsigned int needsPreferredTrailingPositionUpdate:1;
        unsigned int UNUSED:13;
    } _tbivFlags;
}

- (id)_toolbarView;
- (void)_menuFormRepresentationChanged;
- (void)constraintsDidChangeInEngine:(id)arg1;
- (void)_setLayoutEngine:(id)arg1;
- (struct CGSize)_scalableMaxIconSize;
- (struct CGSize)_scalableMinIconSize;
- (void)_updateMeasuredSizes;
- (void)_updatePreferredTrailingPosition;
- (void)_itemChangedLabelOrPaletteLabel;
- (void)_itemLayoutChanged;
- (void)_itemChangedToolTip;
- (void)_itemEnabledStateChanged;
- (void)_itemChanged;
- (long long)_itemVisibilityPriority;
- (BOOL)_labelOnlyShowsAsPopupMenu;
- (BOOL)_needsPreferredTrailingPositionUpdate;
- (void)_setNeedsPreferredTrailingPositionUpdate:(BOOL)arg1;
- (BOOL)_needsViewerLayout;
- (void)_setNeedsViewerLayout:(BOOL)arg1;
- (BOOL)_needsModeConfiguration;
- (void)_setNeedsModeConfiguration:(BOOL)arg1;
- (void)_endToolbarEditingMode;
- (void)_beginToolbarEditingMode;
- (void)_accessibilityOptionsChanged;
- (void)_updateJiggle:(BOOL)arg1;
- (void)_simulateClickInLabelView:(id)arg1 deferringPopUpsForAccessibility:(BOOL)arg2;
- (void)mouseDown:(id)arg1;
- (BOOL)_simultaneousSegmentAndLabelTrackingWithEvent:(id)arg1 forSegmentAtIndex:(long long)arg2 withLabelRect:(struct CGRect)arg3;
- (void)_segmentedControlDidChangeHighlightDuringTracking:(id)arg1;
- (BOOL)_supportsSimultaneousSegmentAndLabelTrackingWithEvent:(id)arg1 segment:(long long *)arg2;
- (void)mouseUp:(id)arg1;
- (BOOL)_shouldMinimizeWindowForEvent:(id)arg1;
- (void)trackMouseForPopupMenuFormRepresentation:(id)arg1;
- (void)trackMouseForPopupMenuFormRepresentation:(id)arg1 forItem:(id)arg2 forLabelView:(id)arg3;
- (void)_popUpMenuFormRepresentationInLabelView:(id)arg1;
- (struct CGSRegionObject *)_regionForOpaqueDescendants:(struct CGRect)arg1 forMove:(BOOL)arg2 forUnderTitlebar:(BOOL)arg3;
- (BOOL)_shouldPreventCustomViewFromDraggingWindow:(id)arg1;
- (BOOL)mouseDownCanMoveWindow;
- (void)performClick:(id)arg1;
- (void)labelOnlyMenuDidSendActionNotification:(id)arg1;
- (void)moveLeft:(id)arg1;
- (void)moveRight:(id)arg1;
- (void)_selectLabelView:(id)arg1;
- (id)_initialLabelViewToSelectFromDirection:(long long)arg1;
- (id)_labelViewToSelectInDirection:(long long)arg1;
- (double)_spaceRequiredToSatisfySplitViewTrackingForMinimumLeftOrigin:(struct CGPoint)arg1 inWindow:(id)arg2;
- (BOOL)_isPartitionItem;
- (BOOL)_labelViewIsSelectable:(id)arg1;
- (BOOL)_allowsIndividualLabelViewSelection;
- (BOOL)needsPanelToBecomeKey;
- (BOOL)acceptsFirstResponder;
- (BOOL)_acceptsFirstResponderInItem:(id)arg1;
- (BOOL)resignFirstResponder;
- (BOOL)becomeFirstResponder;
- (void)resignKeyWindow;
- (void)becomeKeyWindow;
- (void)setNeedsDisplay:(BOOL)arg1;
@property(readonly, copy) NSString *description;
- (BOOL)acceptsFirstMouse:(id)arg1;
- (void)_setHighlighted:(BOOL)arg1 displayNow:(BOOL)arg2;
- (void)_setHighlighted:(BOOL)arg1 pieces:(unsigned long long)arg2 forItemAtIndex:(unsigned long long)arg3 displayNow:(BOOL)arg4;
- (long long)_backgroundStyleForLabelCell:(id)arg1;
- (id)hitTest:(struct CGPoint)arg1;
- (struct CGRect)focusRingMaskBounds;
- (void)drawFocusRingMask;
- (BOOL)_reallyShouldDrawFocusAroundLabel;
- (void)updateLayer;
- (Class)_classToCheckForWantsUpdateLayer;
- (void)drawRect:(struct CGRect)arg1;
- (void)viewWillDraw;
- (void)_updateEnableStateOfLabelViews;
- (void)drawSelectionIndicatorInRect:(struct CGRect)arg1;
- (void)_drawSelectionIndicatorInRect:(struct CGRect)arg1 clipRect:(struct CGRect)arg2;
- (BOOL)_shouldDrawFocus;
- (BOOL)_shouldDrawSelectionIndicator;
- (void)_recursiveDisplayAllDirtyWithLockFocus:(BOOL)arg1 visRect:(struct CGRect)arg2;
- (void)_windowChangedKeyState;
- (void)_endInsertionOptimization;
- (void)_startInsertionOptimization;
- (void)setFrameOrigin:(struct CGPoint)arg1;
- (void)setFrameSize:(struct CGSize)arg1;
- (struct CGSize)minViewerSize;
- (void)_setOverriddenMaxWidth:(double)arg1;
- (struct CGSize)sizeThatFitsProposedLayoutSize:(struct CGSize)arg1;
@property(readonly) BOOL participatesInOverflow;
@property(readonly) double preferredTrailingPosition;
@property long long priorityIndex;
@property(readonly) BOOL isSpace;
@property(readonly) struct CGSize minSize;
@property(readonly) struct CGSize maxSize;
- (void)_hackUpTheItemSizesAndFrameToHaveSpaceFor10_11Borders;
- (void)configureForLayoutInDisplayMode:(unsigned long long)arg1 andSizeMode:(unsigned long long)arg2 inToolbarView:(id)arg3;
- (void)updateConstraints;
- (void)_configureLabelCellStringValue;
- (void)_noteToolbarSizeModeChanged;
- (void)_recomputeLabelHeight;
- (void)_computeLayoutInfoForIconViewSize:(struct CGSize)arg1 frameSize:(struct CGSize *)arg2;
- (struct CGAffineTransform)_getPixelAligningTransformForLayout;
- (double)_widthRequiredForLabelLayout;
- (BOOL)_itemCanBeDraggedInTemporaryEditingModeFromPoint:(struct CGPoint)arg1;
- (void)_updateLabelViewByLabelRectInWindow:(id)arg1;
- (void)_updateLabelViewByLabelRect;
- (const struct __NSToolbarMetrics *)_metrics;
- (struct CGRect)itemViewRect;
- (BOOL)isOpaque;
- (BOOL)transparentBackground;
- (void)setTransparentBackground:(BOOL)arg1;
- (void)dealloc;
- (void)_endSubviewsBeingBorrowed;
- (void)_beginSubviewsBeingBorrowed;
- (void)_clearToolbarView;
- (void)_setToolbarItem:(id)arg1;
- (id)item;
- (id)initWithItem:(id)arg1 forToolbarView:(id)arg2;
- (id)_firstLabelView;
- (void)_setLabelViewCount:(unsigned long long)arg1;
- (id)_labelFont;
- (Class)labelViewClass;
- (void)_accessibilityConfigureToolbarItem;
- (void)_accessibilityConfigureViewItemToolbarItem;
- (BOOL)element:(id)arg1 hasOverriddenAttribute:(id)arg2;
- (id)_accessibilityToolbarItemLabelAtIndex:(unsigned long long)arg1;
- (id)_accessibilityToolbarItemLabel;
- (void)accessibilityPopUpMenuCreated:(id)arg1 forSubview:(id)arg2 returningAccessibilityParent:(id *)arg3;
- (void)_accessibilityShowMenu:(id)arg1;
- (id)accessibilityHitTest:(struct CGPoint)arg1;
- (void)accessibilityPerformAction:(id)arg1;
- (id)accessibilityActionDescription:(id)arg1;
- (id)accessibilityActionNames;
- (id)accessibilityAttributeNames;
- (id)accessibilityChildrenAttribute;
- (BOOL)accessibilityIsFocusedAttributeSettable;
- (void)accessibilitySetFocusedAttribute:(id)arg1;
- (BOOL)accessibilityIsValueAttributeSettable;
- (id)accessibilityValueAttribute;
- (BOOL)accessibilityIsEnabledAttributeSettable;
- (id)accessibilityEnabledAttribute;
- (BOOL)accessibilityIsDescriptionAttributeSettable;
- (id)accessibilityDescriptionAttribute;
- (BOOL)accessibilityIsTitleAttributeSettable;
- (id)accessibilityTitleAttribute;
- (id)accessibilityRoleAttribute;
- (BOOL)accessibilityIsIgnored;
- (Class)_accessibilityToolbarItemViewerHelperClass;
- (long long)_accessibilityToolbarItemViewerConfiguration;
- (id)_accessibilityLabelElements;
- (id)_accessibilityTitleElement;
- (id)_accessibilityParentAdjustedFocusedUIElement:(id)arg1;
- (id)_accessibilityParentAdjustedHitTestElement:(id)arg1 atLocation:(id)arg2;
- (BOOL)_accessibilityIsInCustomizationSheet;
- (BOOL)_accessibilityIsCommonToolbarButtonItem;
- (BOOL)_accessibilityIsSpaceOrSeparatorItem;
- (BOOL)_accessibilityTreatButtonAsToolbarButton:(id)arg1;
- (BOOL)_accessibilityTreatSegmentedControlAsToolbarButtons:(id)arg1;

// Remaining properties
@property(readonly) struct CGSize contentClippingSize;
@property(readonly, copy) NSString *debugDescription;
@property(readonly) unsigned long long hash;
@property(readonly) unsigned long long itemPosition;
@property(readonly) struct CGSize preferredSize;
@property(readonly) double preferredZOrder;
@property(readonly) Class superclass;

@end

{'repo_name': 'LeoNatan/Apple-Runtime-Headers', 'stars': '131', 'repo_language': 'None', 'file_name': 'CDStructures.h', 'mime_type': 'text/x-c', 'hash': -8054794085922709319, 'source_dataset': 'data'}


; RUN: opt < %s -inline-threshold=0 -always-inline -S | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-CALL
;
; Ensure the threshold has no impact on these decisions.
; RUN: opt < %s -inline-threshold=20000000 -always-inline -S | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-CALL
; RUN: opt < %s -inline-threshold=-20000000 -always-inline -S | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-CALL
;
; The new pass manager doesn't re-use any threshold based infrastructure for
; the always inliner, but test that we get the correct result. The new PM
; always inliner also doesn't support inlining call-site alwaysinline
; annotations. It isn't clear that this is a reasonable use case for
; 'alwaysinline'.
; RUN: opt < %s -passes=always-inline -S | FileCheck %s --check-prefix=CHECK

define internal i32 @inner1() alwaysinline {
; CHECK-NOT: @inner1(
  ret i32 1
}
define i32 @outer1() {
; CHECK-LABEL: @outer1(
; CHECK-NOT: call
; CHECK: ret

   %r = call i32 @inner1()
   ret i32 %r
}

; The always inliner can't DCE arbitrary internal functions. PR2945
define internal i32 @pr2945() nounwind {
; CHECK-LABEL: @pr2945(
  ret i32 0
}

define internal void @inner2(i32 %N) alwaysinline {
; CHECK-NOT: @inner2(
  %P = alloca i32, i32 %N
  ret void
}
define void @outer2(i32 %N) {
; The always inliner (unlike the normal one) should be willing to inline
; a function with a dynamic alloca into one without a dynamic alloca.
; rdar://6655932
;
; CHECK-LABEL: @outer2(
; CHECK-NOT: call void @inner2
; CHECK-NOT: call void @inner2
; CHECK: ret void

  call void @inner2( i32 %N )
  ret void
}

declare i32 @a() returns_twice
declare i32 @b() returns_twice

; Cannot alwaysinline when that would introduce a returns_twice call.
define internal i32 @inner3() alwaysinline {
; CHECK-LABEL: @inner3(
entry:
  %call = call i32 @a() returns_twice
  %add = add nsw i32 1, %call
  ret i32 %add
}
define i32 @outer3() {
entry:
; CHECK-LABEL: @outer3(
; CHECK-NOT: call i32 @a
; CHECK: ret

  %call = call i32 @inner3()
  %add = add nsw i32 1, %call
  ret i32 %add
}

define internal i32 @inner4() alwaysinline returns_twice {
; CHECK-NOT: @inner4(
entry:
  %call = call i32 @b() returns_twice
  %add = add nsw i32 1, %call
  ret i32 %add
}

define i32 @outer4() {
entry:
; CHECK-LABEL: @outer4(
; CHECK: call i32 @b()
; CHECK: ret

  %call = call i32 @inner4() returns_twice
  %add = add nsw i32 1, %call
  ret i32 %add
}

; We can't inline this even though it has alwaysinline!
define internal i32 @inner5(i8* %addr) alwaysinline {
; CHECK-LABEL: @inner5(
entry:
  indirectbr i8* %addr, [ label %one, label %two ]

one:
  ret i32 42

two:
  ret i32 44
}
define i32 @outer5(i32 %x) {
; CHECK-LABEL: @outer5(
; CHECK: call i32 @inner5
; CHECK: ret

  %cmp = icmp slt i32 %x, 42
  %addr = select i1 %cmp, i8* blockaddress(@inner5, %one), i8* blockaddress(@inner5, %two)
  %call = call i32 @inner5(i8* %addr)
  ret i32 %call
}

; We alwaysinline a function that call itself recursively.
define internal void @inner6(i32 %x) alwaysinline {
; CHECK-LABEL: @inner6(
entry:
  %icmp = icmp slt i32 %x, 0
  br i1 %icmp, label %return, label %bb

bb:
  %sub = sub nsw i32 %x, 1
  call void @inner6(i32 %sub)
  ret void

return:
  ret void
}
define void @outer6() {
; CHECK-LABEL: @outer6(
; CHECK: call void @inner6(i32 42)
; CHECK: ret

entry:
  call void @inner6(i32 42)
  ret void
}

; This is not an alwaysinline function and is actually external.
define i32 @inner7() {
; CHECK-LABEL: @inner7(
  ret i32 1
}
define i32 @outer7() {
; CHECK-CALL-LABEL: @outer7(
; CHECK-CALL-NOT: call
; CHECK-CALL: ret

   %r = call i32 @inner7() alwaysinline
   ret i32 %r
}

define internal float* @inner8(float* nocapture align 128 %a) alwaysinline {
; CHECK-NOT: @inner8(
  ret float* %a
}
define float @outer8(float* nocapture %a) {
; CHECK-LABEL: @outer8(
; CHECK-NOT: call float* @inner8
; CHECK: ret

  %inner_a = call float* @inner8(float* %a)
  %f = load float, float* %inner_a, align 4
  ret float %f
}

; The 'inner9*' and 'outer9' functions are designed to check that we remove
; a function that is inlined by the always inliner even when it is used by
; a complex constant expression prior to being inlined.

; The 'a' function gets used in a complex constant expression that, despite
; being constant folded, means it isn't dead. As a consequence it shouldn't be
; deleted. If it is, then the constant expression needs to become more complex
; to accurately test this scenario.
define internal void @inner9a(i1 %b) alwaysinline {
; CHECK-LABEL: @inner9a(
entry:
  ret void
}

define internal void @inner9b(i1 %b) alwaysinline {
; CHECK-NOT: @inner9b(
entry:
  ret void
}

declare void @dummy9(i1 %b)

define void @outer9() {
; CHECK-LABEL: @outer9(
entry:
  ; First we use @inner9a in a complex constant expression that may get folded
  ; but won't get removed, and then we call it which will get inlined. Despite
  ; this the function can't be deleted because of the constant expression
  ; usage.
  %sink = alloca i1
  store volatile i1 icmp eq (i64 ptrtoint (void (i1)* @inner9a to i64), i64 ptrtoint(void (i1)* @dummy9 to i64)), i1* %sink
; CHECK: store volatile
  call void @inner9a(i1 false)
; CHECK-NOT: call void @inner9a

  ; Next we call @inner9b passing in a constant expression. This constant
  ; expression will in fact be removed by inlining, so we should also be able
  ; to delete the function.
  call void @inner9b(i1 icmp eq (i64 ptrtoint (void (i1)* @inner9b to i64), i64 ptrtoint(void (i1)* @dummy9 to i64)))
; CHECK-NOT: @inner9b

  ret void
; CHECK: ret void
}

; The 'inner10' and 'outer10' functions test a frustrating consquence of the
; current 'alwaysinline' semantic model. Because such functions are allowed to
; be external functions, it may be necessary to both inline all of their uses
; and leave them in the final output. These tests can be removed if and when
; we restrict alwaysinline further.
define void @inner10() alwaysinline {
; CHECK-LABEL: @inner10(
entry:
  ret void
}

define void @outer10() {
; CHECK-LABEL: @outer10(
entry:
  call void @inner10()
; CHECK-NOT: call void @inner10

  ret void
; CHECK: ret void
}

; The 'inner11' and 'outer11' functions test another dimension of non-internal
; functions with alwaysinline. These functions use external linkages that we can
; actually remove safely and so we should.
define linkonce void @inner11a() alwaysinline {
; CHECK-NOT: @inner11a(
entry:
  ret void
}

define available_externally void @inner11b() alwaysinline {
; CHECK-NOT: @inner11b(
entry:
  ret void
}

define void @outer11() {
; CHECK-LABEL: @outer11(
entry:
  call void @inner11a()
  call void @inner11b()
; CHECK-NOT: call void @inner11a
; CHECK-NOT: call void @inner11b

  ret void
; CHECK: ret void
}

; The 'inner12' and 'outer12' functions test that we don't remove functions
; which are part of a comdat group even if they otherwise seem dead.
$comdat12 = comdat any

define linkonce void @inner12() alwaysinline comdat($comdat12) {
; CHECK-LABEL: @inner12(
  ret void
}

define void @outer12() comdat($comdat12) {
; CHECK-LABEL: @outer12(
entry:
  call void @inner12()
; CHECK-NOT: call void @inner12

  ret void
; CHECK: ret void
}

; The 'inner13*' and 'outer13' functions test that we do remove functions
; which are part of a comdat group where all of the members are removed during
; always inlining.
$comdat13 = comdat any

define linkonce void @inner13a() alwaysinline comdat($comdat13) {
; CHECK-NOT: @inner13a(
  ret void
}

define linkonce void @inner13b() alwaysinline comdat($comdat13) {
; CHECK-NOT: @inner13b(
  ret void
}

define void @outer13() {
; CHECK-LABEL: @outer13(
entry:
  call void @inner13a()
  call void @inner13b()
; CHECK-NOT: call void @inner13a
; CHECK-NOT: call void @inner13b

  ret void
; CHECK: ret void
}

define void @inner14() readnone nounwind {
; CHECK: define void @inner14
  ret void
}

define void @outer14() {
; CHECK: call void @inner14
  call void @inner14()
  ret void
}

{'repo_name': 'microsoft/llvm', 'stars': '152', 'repo_language': 'LLVM', 'file_name': 'insn-unit.s', 'mime_type': 'text/plain', 'hash': 6751518051594517685, 'source_dataset': 'data'}


"use strict";

exports.__esModule = true;

var _symbol = require("babel-runtime/core-js/symbol");

var _symbol2 = _interopRequireDefault(_symbol);

exports.default = function (_ref) {
  var t = _ref.types;

  var VISITED = (0, _symbol2.default)();

  return {
    visitor: {
      ExportDefaultDeclaration: function ExportDefaultDeclaration(path) {
        if (!path.get("declaration").isClassDeclaration()) return;

        var node = path.node;

        var ref = node.declaration.id || path.scope.generateUidIdentifier("class");
        node.declaration.id = ref;

        path.replaceWith(node.declaration);
        path.insertAfter(t.exportDefaultDeclaration(ref));
      },
      ClassDeclaration: function ClassDeclaration(path) {
        var node = path.node;

        var ref = node.id || path.scope.generateUidIdentifier("class");

        path.replaceWith(t.variableDeclaration("let", [t.variableDeclarator(ref, t.toExpression(node))]));
      },
      ClassExpression: function ClassExpression(path, state) {
        var node = path.node;

        if (node[VISITED]) return;

        var inferred = (0, _babelHelperFunctionName2.default)(path);
        if (inferred && inferred !== node) return path.replaceWith(inferred);

        node[VISITED] = true;

        var Constructor = _vanilla2.default;
        if (state.opts.loose) Constructor = _loose2.default;

        path.replaceWith(new Constructor(path, state.file).run());
      }
    }
  };
};

var _loose = require("./loose");

var _loose2 = _interopRequireDefault(_loose);

var _vanilla = require("./vanilla");

var _vanilla2 = _interopRequireDefault(_vanilla);

var _babelHelperFunctionName = require("babel-helper-function-name");

var _babelHelperFunctionName2 = _interopRequireDefault(_babelHelperFunctionName);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = exports["default"];

{'repo_name': 'ymgd/weixinopen', 'stars': '123', 'repo_language': 'JavaScript', 'file_name': 'unmemoize.js', 'mime_type': 'text/plain', 'hash': -5787070683871878851, 'source_dataset': 'data'}


#include "gtest/gtest.h"

#include "caffe/common.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/util/math_functions.hpp"

#include "caffe/test/test_caffe_main.hpp"

namespace caffe {

class CommonTest : public ::testing::Test {};

#ifndef CPU_ONLY  // GPU Caffe singleton test.

TEST_F(CommonTest, TestCublasHandlerGPU) {
  int cuda_device_id;
  CUDA_CHECK(cudaGetDevice(&cuda_device_id));
  EXPECT_TRUE(Caffe::cublas_handle());
}

#endif

TEST_F(CommonTest, TestBrewMode) {
  Caffe::set_mode(Caffe::CPU);
  EXPECT_EQ(Caffe::mode(), Caffe::CPU);
  Caffe::set_mode(Caffe::GPU);
  EXPECT_EQ(Caffe::mode(), Caffe::GPU);
}

TEST_F(CommonTest, TestRandSeedCPU) {
  SyncedMemory data_a(10 * sizeof(int));
  SyncedMemory data_b(10 * sizeof(int));
  Caffe::set_random_seed(1701);
  caffe_rng_bernoulli(10, 0.5, static_cast<int*>(data_a.mutable_cpu_data()));

  Caffe::set_random_seed(1701);
  caffe_rng_bernoulli(10, 0.5, static_cast<int*>(data_b.mutable_cpu_data()));

  for (int i = 0; i < 10; ++i) {
    EXPECT_EQ(static_cast<const int*>(data_a.cpu_data())[i],
        static_cast<const int*>(data_b.cpu_data())[i]);
  }
}

#ifndef CPU_ONLY  // GPU Caffe singleton test.

TEST_F(CommonTest, TestRandSeedGPU) {
  SyncedMemory data_a(10 * sizeof(unsigned int));
  SyncedMemory data_b(10 * sizeof(unsigned int));
  Caffe::set_random_seed(1701);
  CURAND_CHECK(curandGenerate(Caffe::curand_generator(),
        static_cast<unsigned int*>(data_a.mutable_gpu_data()), 10));
  Caffe::set_random_seed(1701);
  CURAND_CHECK(curandGenerate(Caffe::curand_generator(),
        static_cast<unsigned int*>(data_b.mutable_gpu_data()), 10));
  for (int i = 0; i < 10; ++i) {
    EXPECT_EQ(((const unsigned int*)(data_a.cpu_data()))[i],
        ((const unsigned int*)(data_b.cpu_data()))[i]);
  }
}

#endif

}  // namespace caffe

{'repo_name': 'nshaud/DeepNetsForEO', 'stars': '350', 'repo_language': 'Jupyter Notebook', 'file_name': 'labels.py', 'mime_type': 'text/x-python', 'hash': 2202600395723963082, 'source_dataset': 'data'}