<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<doc>
  <members>
    <assembly>
      <name>UnityEngine.GameCenterModule</name>
    </assembly>
    <member name="T:UnityEngine.Social">
      <summary>
        <para>Generic access to the Social API.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.Social.localUser">
      <summary>
        <para>The local user (potentially not logged in).</para>
      </summary>
    </member>
    <member name="P:UnityEngine.Social.Active">
      <summary>
        <para>This is the currently active social platform. </para>
      </summary>
    </member>
    <member name="M:UnityEngine.Social.CreateAchievement">
      <summary>
        <para>Create an IAchievement instance.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.Social.CreateLeaderboard">
      <summary>
        <para>Create an ILeaderboard instance.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.Social.LoadAchievementDescriptions(System.Action`1<UnityEngine.SocialPlatforms.IAchievementDescription[]>)">
      <summary>
        <para>Loads the achievement descriptions accociated with this application.</para>
      </summary>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.Social.LoadAchievements(System.Action`1<UnityEngine.SocialPlatforms.IAchievement[]>)">
      <summary>
        <para>Load the achievements the logged in user has already achieved or reported progress on.</para>
      </summary>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.Social.LoadScores(System.String,System.Action`1<UnityEngine.SocialPlatforms.IScore[]>)">
      <summary>
        <para>Load a default set of scores from the given leaderboard.</para>
      </summary>
      <param name="leaderboardID"></param>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.Social.LoadUsers(System.String[],System.Action`1<UnityEngine.SocialPlatforms.IUserProfile[]>)">
      <summary>
        <para>Load the user profiles accociated with the given array of user IDs.</para>
      </summary>
      <param name="userIDs"></param>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.Social.ReportProgress(System.String,System.Double,System.Action`1<System.Boolean>)">
      <summary>
        <para>Reports the progress of an achievement.</para>
      </summary>
      <param name="achievementID"></param>
      <param name="progress"></param>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.Social.ReportScore(System.Int64,System.String,System.Action`1<System.Boolean>)">
      <summary>
        <para>Report a score to a specific leaderboard.</para>
      </summary>
      <param name="score"></param>
      <param name="board"></param>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.Social.ShowAchievementsUI">
      <summary>
        <para>Show a default/system view of the games achievements.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.Social.ShowLeaderboardUI">
      <summary>
        <para>Show a default/system view of the games leaderboards.</para>
      </summary>
    </member>
    <member name="?:UnityEngine.SocialPlatforms.IAchievement">
      <summary>
        <para>Information for a user's achievement.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievement.completed">
      <summary>
        <para>Set to true when percentCompleted is 100.0.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievement.hidden">
      <summary>
        <para>This achievement is currently hidden from the user.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievement.id">
      <summary>
        <para>The unique identifier of this achievement.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievement.lastReportedDate">
      <summary>
        <para>Set by server when percentCompleted is updated.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievement.percentCompleted">
      <summary>
        <para>Progress for this achievement.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.IAchievement.ReportProgress(System.Action`1<System.Boolean>)">
      <summary>
        <para>Send notification about progress on this achievement.</para>
      </summary>
      <param name="callback"></param>
    </member>
    <member name="?:UnityEngine.SocialPlatforms.IAchievementDescription">
      <summary>
        <para>Static data describing an achievement.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievementDescription.achievedDescription">
      <summary>
        <para>Description when the achivement is completed.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievementDescription.hidden">
      <summary>
        <para>Hidden achievement are not shown in the list until the percentCompleted has been touched (even if it's 0.0).</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievementDescription.id">
      <summary>
        <para>Unique identifier for this achievement description.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievementDescription.image">
      <summary>
        <para>Image representation of the achievement.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievementDescription.points">
      <summary>
        <para>Point value of this achievement.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievementDescription.title">
      <summary>
        <para>Human readable title.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IAchievementDescription.unachievedDescription">
      <summary>
        <para>Description when the achivement has not been completed.</para>
      </summary>
    </member>
    <member name="?:UnityEngine.SocialPlatforms.ILeaderboard">
      <summary>
        <para>The leaderboard contains the scores of all players for a particular game.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILeaderboard.id">
      <summary>
        <para>Unique identifier for this leaderboard.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILeaderboard.loading">
      <summary>
        <para>The leaderboad is in the process of loading scores.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILeaderboard.localUserScore">
      <summary>
        <para>The leaderboard score of the logged in user.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILeaderboard.maxRange">
      <summary>
        <para>The total amount of scores the leaderboard contains.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILeaderboard.range">
      <summary>
        <para>The rank range this leaderboard returns.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILeaderboard.scores">
      <summary>
        <para>The leaderboard scores returned by a query.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILeaderboard.timeScope">
      <summary>
        <para>The time period/scope searched by this leaderboard.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILeaderboard.title">
      <summary>
        <para>The human readable title of this leaderboard.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILeaderboard.userScope">
      <summary>
        <para>The users scope searched by this leaderboard.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ILeaderboard.LoadScores(System.Action`1<System.Boolean>)">
      <summary>
        <para>Load scores according to the filters set on this leaderboard.</para>
      </summary>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ILeaderboard.SetUserFilter(System.String[])">
      <summary>
        <para>Only search for these user IDs.</para>
      </summary>
      <param name="userIDs">List of user ids.</param>
    </member>
    <member name="?:UnityEngine.SocialPlatforms.ILocalUser">
      <summary>
        <para>Represents the local or currently logged in user.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILocalUser.authenticated">
      <summary>
        <para>Checks if the current user has been authenticated.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILocalUser.friends">
      <summary>
        <para>The users friends list.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ILocalUser.underage">
      <summary>
        <para>Is the user underage?</para>
      </summary>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ILocalUser.Authenticate(System.Action`1<System.Boolean>)">
      <summary>
        <para>Authenticate the local user to the current active Social API implementation and fetch his profile data.</para>
      </summary>
      <param name="callback">Callback that is called whenever the authentication operation is finished. The first parameter is a Boolean identifying whether the authentication operation was successful. The optional second argument contains a string identifying any errors (if available) if the operation was unsuccessful.</param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ILocalUser.Authenticate(System.Action`2<System.Boolean,System.String>)">
      <summary>
        <para>Authenticate the local user to the current active Social API implementation and fetch his profile data.</para>
      </summary>
      <param name="callback">Callback that is called whenever the authentication operation is finished. The first parameter is a Boolean identifying whether the authentication operation was successful. The optional second argument contains a string identifying any errors (if available) if the operation was unsuccessful.</param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ILocalUser.LoadFriends(System.Action`1<System.Boolean>)">
      <summary>
        <para>Fetches the friends list of the logged in user. The friends list on the ISocialPlatform.localUser|Social.localUser instance is populated if this call succeeds.</para>
      </summary>
      <param name="callback"></param>
    </member>
    <member name="?:UnityEngine.SocialPlatforms.IScore">
      <summary>
        <para>A game score.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IScore.date">
      <summary>
        <para>The date the score was achieved.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IScore.formattedValue">
      <summary>
        <para>The correctly formatted value of the score, like X points or X kills.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IScore.leaderboardID">
      <summary>
        <para>The ID of the leaderboard this score belongs to.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IScore.rank">
      <summary>
        <para>The rank or position of the score in the leaderboard. </para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IScore.userID">
      <summary>
        <para>The user who owns this score.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IScore.value">
      <summary>
        <para>The score value achieved.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.IScore.ReportScore(System.Action`1<System.Boolean>)">
      <summary>
        <para>Report this score instance.</para>
      </summary>
      <param name="callback"></param>
    </member>
    <member name="?:UnityEngine.SocialPlatforms.ISocialPlatform">
      <summary>
        <para>The generic Social API interface which implementations must inherit.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.ISocialPlatform.localUser">
      <summary>
        <para>See Social.localUser.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.CreateAchievement">
      <summary>
        <para>See Social.CreateAchievement..</para>
      </summary>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.CreateLeaderboard">
      <summary>
        <para>See Social.CreateLeaderboard.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.LoadAchievementDescriptions(System.Action`1<UnityEngine.SocialPlatforms.IAchievementDescription[]>)">
      <summary>
        <para>See Social.LoadAchievementDescriptions.</para>
      </summary>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.LoadAchievements(System.Action`1<UnityEngine.SocialPlatforms.IAchievement[]>)">
      <summary>
        <para>See Social.LoadAchievements.</para>
      </summary>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.LoadScores(System.String,System.Action`1<UnityEngine.SocialPlatforms.IScore[]>)">
      <summary>
        <para>See Social.LoadScores.</para>
      </summary>
      <param name="leaderboardID"></param>
      <param name="callback"></param>
      <param name="board"></param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.LoadScores(UnityEngine.SocialPlatforms.ILeaderboard,System.Action`1<System.Boolean>)">
      <summary>
        <para>See Social.LoadScores.</para>
      </summary>
      <param name="leaderboardID"></param>
      <param name="callback"></param>
      <param name="board"></param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.LoadUsers(System.String[],System.Action`1<UnityEngine.SocialPlatforms.IUserProfile[]>)">
      <summary>
        <para>See Social.LoadUsers.</para>
      </summary>
      <param name="userIDs"></param>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.ReportProgress(System.String,System.Double,System.Action`1<System.Boolean>)">
      <summary>
        <para>See Social.ReportProgress.</para>
      </summary>
      <param name="achievementID"></param>
      <param name="progress"></param>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.ReportScore(System.Int64,System.String,System.Action`1<System.Boolean>)">
      <summary>
        <para>See Social.ReportScore.</para>
      </summary>
      <param name="score"></param>
      <param name="board"></param>
      <param name="callback"></param>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.ShowAchievementsUI">
      <summary>
        <para>See Social.ShowAchievementsUI.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.ISocialPlatform.ShowLeaderboardUI">
      <summary>
        <para>See Social.ShowLeaderboardUI.</para>
      </summary>
    </member>
    <member name="?:UnityEngine.SocialPlatforms.IUserProfile">
      <summary>
        <para>Represents generic user instances, like friends of the local user.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IUserProfile.id">
      <summary>
        <para>This users unique identifier.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IUserProfile.image">
      <summary>
        <para>Avatar image of the user.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IUserProfile.isFriend">
      <summary>
        <para>Is this user a friend of the current logged in user?</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IUserProfile.state">
      <summary>
        <para>Presence state of the user.</para>
      </summary>
    </member>
    <member name="P:UnityEngine.SocialPlatforms.IUserProfile.userName">
      <summary>
        <para>This user's username or alias.</para>
      </summary>
    </member>
    <member name="T:UnityEngine.SocialPlatforms.Range">
      <summary>
        <para>The score range a leaderboard query should include.</para>
      </summary>
    </member>
    <member name="F:UnityEngine.SocialPlatforms.Range.count">
      <summary>
        <para>The total amount of scores retreived.</para>
      </summary>
    </member>
    <member name="F:UnityEngine.SocialPlatforms.Range.from">
      <summary>
        <para>The rank of the first score which is returned.</para>
      </summary>
    </member>
    <member name="M:UnityEngine.SocialPlatforms.Range.#ctor(System.Int32,System.Int32)">
      <summary>
        <para>Constructor for a score range, the range starts from a specific value and contains a maxium score count.</para>
      </summary>
      <param name="fromValue">The minimum allowed value.</param>
      <param name="valueCount">The number of possible values.</param>
    </member>
    <member name="T:UnityEngine.SocialPlatforms.TimeScope">
      <summary>
        <para>The scope of time searched through when querying the leaderboard.</para>
      </summary>
    </member>
    <member name="T:UnityEngine.SocialPlatforms.UserScope">
      <summary>
        <para>The scope of the users searched through when querying the leaderboard.</para>
      </summary>
    </member>
    <member name="T:UnityEngine.SocialPlatforms.UserState">
      <summary>
        <para>User presence state.</para>
      </summary>
    </member>
    <member name="F:UnityEngine.SocialPlatforms.UserState.Offline">
      <summary>
        <para>The user is offline.</para>
      </summary>
    </member>
    <member name="F:UnityEngine.SocialPlatforms.UserState.Online">
      <summary>
        <para>The user is online.</para>
      </summary>
    </member>
    <member name="F:UnityEngine.SocialPlatforms.UserState.OnlineAndAway">
      <summary>
        <para>The user is online but away from their computer.</para>
      </summary>
    </member>
    <member name="F:UnityEngine.SocialPlatforms.UserState.OnlineAndBusy">
      <summary>
        <para>The user is online but set their status to busy.</para>
      </summary>
    </member>
    <member name="F:UnityEngine.SocialPlatforms.UserState.Playing">
      <summary>
        <para>The user is playing a game.</para>
      </summary>
    </member>
    <member name="A:UnityEngine.GameCenterModule">
      <summary>
        <para>The GameCenter module provides APIs to use Apple's GameCenter service.</para>
      </summary>
    </member>
  </members>
</doc>

{'repo_name': 'feiyun0112/machinelearning-samples.zh-cn', 'stars': '238', 'repo_language': 'PowerShell', 'file_name': 'bootstrap.css', 'mime_type': 'text/plain', 'hash': 20199536045770385, 'source_dataset': 'data'}


/*******************************************************************************
 * Copyright (c) 2013, Jean-David Gadina - www.xs-labs.com
 * 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 'Jean-David Gadina' 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 HOLDER 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.
 ******************************************************************************/

/* $Id$ */

/*!
 * @header      ...
 * @copyright   (c) 2013, Jean-David Gadina - www.xs-labs.com
 * @abstract    ...
 */

#include <sys/mount.h>

@interface FSPartition: NSObject
{
@protected

    uint32_t    _blockSize;
    int32_t     _ioSize;
    uint64_t    _blocks;
    uint64_t    _freeBlocks;
    uint64_t    _availableBlocks;
    uint64_t    _fileNodes;
    uint64_t    _freeFileNodes;
    fsid_t      _fileSystemID;
    uid_t       _ownerID;
    uint32_t    _type;
    uint32_t    _flags;
    uint32_t    _subType;
    NSString *  _typeName;
    NSString *  _mountPoint;
    NSString *  _mountedFS;

@private

    id __FSPartition_Reserved[ 5 ] __attribute__( ( unused ) );
}

@property( atomic, readonly ) uint32_t    blockSize;
@property( atomic, readonly ) int32_t     ioSize;
@property( atomic, readonly ) uint64_t    blocks;
@property( atomic, readonly ) uint64_t    freeBlocks;
@property( atomic, readonly ) uint64_t    availableBlocks;
@property( atomic, readonly ) uint64_t    fileNodes;
@property( atomic, readonly ) uint64_t    freeFileNodes;
@property( atomic, readonly ) fsid_t      fileSystemID;
@property( atomic, readonly ) uid_t       ownerID;
@property( atomic, readonly ) uint32_t    type;
@property( atomic, readonly ) uint32_t    flags;
@property( atomic, readonly ) uint32_t    subType;
@property( atomic, readonly ) NSString *  typeName;
@property( atomic, readonly ) NSString *  mountPoint;
@property( atomic, readonly ) NSString *  mountedFS;

+ ( NSArray * )availablePartitions;

@end

{'repo_name': 'macmade/FileSystem', 'stars': '142', 'repo_language': 'Objective-C', 'file_name': 'FileSystem.xcscheme', 'mime_type': 'text/xml', 'hash': 6992280912935268032, 'source_dataset': 'data'}


/*
 * Copyright © 2014 - 2020 Leipzig University (Database Research Group)
 *
 * 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 org.gradoop.storage.accumulo.impl.predicate.filter.impl;

import org.gradoop.common.model.api.entities.Element;
import org.gradoop.storage.accumulo.impl.predicate.filter.api.AccumuloElementFilter;
import org.gradoop.storage.common.predicate.filter.impl.LabelReg;

import java.util.regex.Pattern;

/**
 * Accumulo label regex predicate implement
 *
 * @param <T> element type
 */
public class AccumuloLabelReg<T extends Element>
  extends LabelReg<AccumuloElementFilter<T>>
  implements AccumuloElementFilter<T> {

  /**
   * Create a new label regex filter
   *
   * @param reg label regex
   */
  public AccumuloLabelReg(Pattern reg) {
    super(reg);
  }

  @Override
  public boolean test(T t) {
    return t.getLabel() != null &&
      getReg().matcher(t.getLabel()).matches();
  }

}

{'repo_name': 'dbs-leipzig/gradoop', 'stars': '176', 'repo_language': 'Java', 'file_name': 'MinimalCSVImporterTest.java', 'mime_type': 'text/x-java', 'hash': -3213220749699295887, 'source_dataset': 'data'}


{
  // enableFfmpegLog: true,
  outPath: './visibleFromUntil.mp4',
  clips: [
    { duration: 2, layers: [
      { type: 'video', path: './assets/lofoten.mp4', cutFrom: 0.4, cutTo: 2 },
      { type: 'video', path: './assets/dancer1.webm', cutFrom: 0, cutTo: 6, visibleFrom: 0.5, visibleUntil: 1 },
    ] },
    { duration: 2, layers: [
      { type: 'video', path: './assets/lofoten.mp4', cutFrom: 7.5, cutTo: 10.5 },
      { type: 'news-title', text: 'Hei', visibleFrom: 0.5, visibleUntil: 1  },
    ] },
    { layers: [
      { type: 'video', path: './assets/lofoten.mp4', cutFrom: 14, cutTo: 18 },
      { type: 'video', path: './assets/IMG_4605.MOV', cutFrom: 0, cutTo: 1, visibleFrom: 1, visibleUntil: 2 },
    ] },
  ],
}

{'repo_name': 'mifi/editly', 'stars': '1952', 'repo_language': 'JavaScript', 'file_name': 'fabricFrameSources.js', 'mime_type': 'text/plain', 'hash': -5711836204935152153, 'source_dataset': 'data'}


"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const platform = process.platform;
const chromeItem = {
    description: "Windows, Mac, Linux",
    detail: "A fast, secure, and free web browser built for the modern web",
    label: "Google Chrome",
    standardName: platform === 'win32'
        ? 'chrome'
        : (platform === 'darwin'
            ? 'google chrome'
            : 'google-chrome'),
    acceptName: ['chrome', 'google chrome', 'google-chrome', 'gc', '谷歌浏览器']
};
const chromiumItem = {
    description: "Mac",
    detail: "A fast, secure, and free web browser built for the modern web",
    label: "Google Chromium",
    standardName: "Chromium",
    acceptName: ['chromium']
};
const firefoxItem = {
    description: "Windows, Mac, Linux",
    detail: "A fast, smart and personal web browser",
    label: "Mozilla Firefox",
    standardName: "firefox",
    acceptName: ['firefox', 'ff', 'mozilla firefox', '火狐浏览器']
};
const firefoxDeveloperItem = {
    description: "Mac",
    detail: "A fast, smart and personal web browser",
    label: "Mozilla Firefox Developer Edition",
    standardName: "FirefoxDeveloperEdition",
    acceptName: ['firefox developer', 'fde', 'firefox developer edition']
};
const ieItem = {
    description: "Windows",
    detail: "A slightly outdated browser",
    label: "Microsoft IE",
    standardName: "iexplore",
    acceptName: ['ie', 'iexplore']
};
const edgeItem = {
    description: "Windows",
    detail: "A modern browser aiming to replace ie",
    label: "Microsoft Edge",
    standardName: "MicrosoftEdge",
    acceptName: ['edge', 'msedge', 'microsoftedge']
};
const safariItem = {
    description: "Mac",
    detail: "A fast, efficient browser on Mac",
    label: "Apple Safari",
    standardName: "safari",
    acceptName: ['safari']
};
const operaItem = {
    description: "Windows, Mac",
    detail: 'A fast, secure, easy-to-use browser',
    label: 'Opera',
    standardName: 'opera',
    acceptName: ['opera']
};
const browsers = [chromeItem, firefoxItem, operaItem];
if (process.platform === 'win32') {
    browsers.push(ieItem);
    browsers.push(edgeItem);
}
else if (process.platform === 'darwin') {
    browsers.push(safariItem);
    browsers.push(chromiumItem);
    browsers.push(firefoxDeveloperItem);
}
exports.default = {
    browsers: browsers,
    app: 'open-in-browser'
};
//# sourceMappingURL=config.js.map

{'repo_name': 'Wscats/cors', 'stars': '143', 'repo_language': 'TypeScript', 'file_name': 'extension.test.js', 'mime_type': 'text/plain', 'hash': -5257927087727217701, 'source_dataset': 'data'}


<?php
/*
 * Copyright 2016 Google 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.
 */

class Google_Service_CloudTrace_Traces extends Google_Collection
{
  protected $collection_key = 'traces';
  protected $tracesType = 'Google_Service_CloudTrace_Trace';
  protected $tracesDataType = 'array';

  public function setTraces($traces)
  {
    $this->traces = $traces;
  }
  public function getTraces()
  {
    return $this->traces;
  }
}

{'repo_name': 'WWBN/AVideo', 'stars': '1149', 'repo_language': 'PHP', 'file_name': 'design_themes.php', 'mime_type': 'text/html', 'hash': 4489707420337387238, 'source_dataset': 'data'}


/*
Copyright (c) Microsoft Open Technologies, Inc.
All Rights Reserved
See License.txt in the project root for license information.
*/

package microsoft.aspnet.signalr.client;

/**
 * Represents a Version of a Product or Library
 */
public class Version {

    int[] mParts;

    /**
     * Initializes the Version
     *
     * @param version
     *            A string representing a version
     */
    public Version(String version) {
        try {
            String[] parts = version.split("\\.");
            mParts = new int[parts.length];

            for (int i = 0; i < parts.length; i++) {
                mParts[i] = Integer.parseInt(parts[i]);
            }
        } catch (Exception e) {
            throw new IllegalArgumentException(version);
        }
    }

    /**
     * Returns a part of the version
     *
     * @param index
     *            Zero-based index for the version parts
     */
    public int getPart(int index) {
        return mParts[index];
    }

    @Override
    public boolean equals(Object o) {
        if (o == null) {
            return false;
        }

        if (!(o instanceof Version)) {
            return false;
        }

        Version v2 = (Version) o;

        if (v2.mParts.length != mParts.length) {
            return false;
        }

        for (int i = 0; i < mParts.length; i++) {
            if (mParts[i] != v2.mParts[i]) {
                return false;
            }
        }

        return true;
    }

    @Override
    public int hashCode() {
        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < mParts.length; i++) {
            if (i != 0) {
                sb.append(".");
            }

            int part = mParts[i];
            sb.append(part);
        }

        return sb.toString().hashCode();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < mParts.length; i++) {
            if (i != 0) {
                sb.append(".");
            }

            sb.append(mParts[i]);
        }

        return sb.toString();
    }
}

{'repo_name': 'SignalR/java-client', 'stars': '324', 'repo_language': 'Java', 'file_name': 'NetworkThread.java', 'mime_type': 'text/plain', 'hash': 3022191596145823475, 'source_dataset': 'data'}


<dataConfig>

  <dataSource type="FileDataSource" encoding="UTF-8"/>
  <document>
    <entity name="post"
        processor="XPathEntityProcessor"
        forEach="/posts/row"
        url="/path/to/stackoverflow-training-posts.xml"
        transformer="DateFormatTransformer,HTMLStripTransformer,com.tamingtext.tagrecommender.StackOverflowTagTransformer">
      <field column="id"               xpath="/posts/row/@Id"/>
      <field column="title"            xpath="/posts/row/@Title"/>
      <field column="body"             xpath="/posts/row/@Body" stripHTML="true"/>
      <field column="tags"             xpath="/posts/row/@Tags"/>
      <field column="creationDate"     xpath="/posts/row/@CreationDate" dateTimeFormat="yyyy-MM-dd'T'hh:mm:ss.SSS"/>
      <field column="parentId"         xpath="/posts/row/@ParentId"/>
      <field column="postTypeId"       xpath="/posts/row/@PostTypeId"/>
      <field column="acceptedAnswerId" xpath="/posts/row/@AcceptedAnswerId"/>
      <field column="ownerUserId"      xpath="/posts/row/@OwnerUserId"/>
      <field column="score"            xpath="/posts/row/@Score"/>
      <field column="viewCount"        xpath="/posts/row/@ViewCount"/>
      <field column="answerCount"      xpath="/posts/row/@AnswerCount"/>
      <field column="commentCount"     xpath="/posts/row/@ComentCount"/>
      <field column="favoriteCount"    xpath="/posts/row/@FavoriteCount"/>
      </entity>
  </document>
</dataConfig>

{'repo_name': 'tamingtext/book', 'stars': '371', 'repo_language': 'Java', 'file_name': 'questions-train.txt', 'mime_type': 'text/plain', 'hash': -4932773766722995441, 'source_dataset': 'data'}


# --------------------------------------------------------
# SubCNN_TF
# Copyright (c) 2016 CVGL Stanford
# Licensed under The MIT License [see LICENSE for details]
# Written by Yu Xiang
# --------------------------------------------------------

"""Factory method for easily getting imdbs by name."""

__sets = {}

import networks.VGGnet_train
import networks.VGGnet_test
import pdb
import tensorflow as tf

#__sets['VGGnet_train'] = networks.VGGnet_train()

#__sets['VGGnet_test'] = networks.VGGnet_test()

def get_network(name):
    """Get a network by name."""
    #if not __sets.has_key(name):
    #    raise KeyError('Unknown dataset: {}'.format(name))
    #return __sets[name]
    if name.split('_')[1] == 'test':
       return networks.VGGnet_test()
    elif name.split('_')[1] == 'train':
       return networks.VGGnet_train()
    else:
       raise KeyError('Unknown dataset: {}'.format(name))

def list_networks():
    """List all registered imdbs."""
    return __sets.keys()

{'repo_name': 'choasup/SIN', 'stars': '177', 'repo_language': 'Python', 'file_name': 'roi_pooling_op_gpu.h', 'mime_type': 'text/x-c++', 'hash': -242536438595126231, 'source_dataset': 'data'}


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

#import <CoreData/NSSQLAdapter.h>

@class NSString;

__attribute__((visibility("hidden")))
@interface NSSQLiteAdapter : NSSQLAdapter
{
    NSString *_dbpath;
    struct __CFDictionary *_cachedDeleteTriggersByEntity;
}

- (id)generateSQLStatmentForSourcesAndOrderKeysForDestination:(id)arg1 inManyToMany:(id)arg2;
- (id)generateSQLStatmentForSourcesAndOrderKeysForDestination:(id)arg1 inToMany:(id)arg2;
- (id)generateDeleteStatementsForRequest:(id)arg1 resultObject:(id *)arg2 inContext:(id)arg3 error:(id *)arg4;
- (_Bool)generateTriggerForEntity:(id)arg1 alreadyCreated:(struct __CFDictionary *)arg2 correlations:(struct __CFDictionary *)arg3 fragments:(id)arg4 error:(id *)arg5;
- (id)generateTriggerStatementsForEntity:(id)arg1 usingRelationshipCleanupSQL:(id)arg2 error:(id *)arg3;
- (id)createCleanupSQLForRelationship:(id)arg1 existing:(struct __CFDictionary *)arg2 correlationTableTriggers:(struct __CFDictionary *)arg3 error:(id *)arg4;
- (_Bool)generateCorrelationTableTriggerStatementsForRelationship:(id)arg1 existing:(struct __CFDictionary *)arg2 correlationTableTriggers:(struct __CFDictionary *)arg3 error:(id *)arg4;
- (_Bool)supportsCorrelatedSubqueries;
- (id)sqliteVersion;
- (Class)statementClass;
- (id)type;
- (id)typeStringForColumn:(id)arg1;
- (id)typeStringForSQLType:(unsigned int)arg1;
- (id)pathnameForDatabase;
- (id)newConnection;
- (id)createConnection;
- (void)dealloc;
- (id)initWithSQLCore:(id)arg1;

@end

{'repo_name': 'neonichu/tvOS-headers', 'stars': '152', 'repo_language': 'Objective-C', 'file_name': 'NSCoding-Protocol.h', 'mime_type': 'text/plain', 'hash': 7780668048109283116, 'source_dataset': 'data'}


/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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 org.apache.beam.runners.core.construction;

import static org.apache.beam.runners.core.construction.PTransformTranslation.COMBINE_GLOBALLY_TRANSFORM_URN;
import static org.apache.beam.runners.core.construction.PTransformTranslation.COMBINE_GROUPED_VALUES_TRANSFORM_URN;
import static org.apache.beam.runners.core.construction.PTransformTranslation.COMBINE_PER_KEY_TRANSFORM_URN;

import com.google.auto.service.AutoService;
import java.io.IOException;
import java.util.Map;
import org.apache.beam.model.pipeline.v1.RunnerApi;
import org.apache.beam.model.pipeline.v1.RunnerApi.CombinePayload;
import org.apache.beam.model.pipeline.v1.RunnerApi.FunctionSpec;
import org.apache.beam.runners.core.construction.PTransformTranslation.TransformPayloadTranslator;
import org.apache.beam.sdk.coders.CannotProvideCoderException;
import org.apache.beam.sdk.coders.Coder;
import org.apache.beam.sdk.coders.IterableCoder;
import org.apache.beam.sdk.coders.KvCoder;
import org.apache.beam.sdk.runners.AppliedPTransform;
import org.apache.beam.sdk.transforms.Combine;
import org.apache.beam.sdk.transforms.CombineFnBase.GlobalCombineFn;
import org.apache.beam.sdk.transforms.PTransform;
import org.apache.beam.sdk.util.SerializableUtils;
import org.apache.beam.sdk.values.KV;
import org.apache.beam.sdk.values.PCollection;
import org.apache.beam.vendor.grpc.v1p26p0.com.google.protobuf.ByteString;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.annotations.VisibleForTesting;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.ImmutableMap;
import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.Iterables;

/**
 * Methods for translating between {@link Combine} {@link PTransform PTransforms} and {@link
 * RunnerApi.CombinePayload} protos.
 */
public class CombineTranslation {

  static final String JAVA_SERIALIZED_COMBINE_FN_URN = "beam:combinefn:javasdk:v1";

  /** A {@link TransformPayloadTranslator} for {@link Combine.PerKey}. */
  public static class CombinePerKeyPayloadTranslator
      implements PTransformTranslation.TransformPayloadTranslator<Combine.PerKey<?, ?, ?>> {
    private CombinePerKeyPayloadTranslator() {}

    @Override
    public String getUrn(Combine.PerKey<?, ?, ?> transform) {
      return COMBINE_PER_KEY_TRANSFORM_URN;
    }

    @Override
    public FunctionSpec translate(
        AppliedPTransform<?, ?, Combine.PerKey<?, ?, ?>> transform, SdkComponents components)
        throws IOException {
      if (transform.getTransform().getSideInputs().isEmpty()) {
        GlobalCombineFn<?, ?, ?> combineFn = transform.getTransform().getFn();
        Coder<?> accumulatorCoder =
            extractAccumulatorCoder(combineFn, (AppliedPTransform) transform);
        return FunctionSpec.newBuilder()
            .setUrn(getUrn(transform.getTransform()))
            .setPayload(combinePayload(combineFn, accumulatorCoder, components).toByteString())
            .build();
      } else {
        // Combines with side inputs are translated as generic composites, which have a blank
        // FunctionSpec.
        return null;
      }
    }

    private static <K, InputT, AccumT> Coder<AccumT> extractAccumulatorCoder(
        GlobalCombineFn<InputT, AccumT, ?> combineFn,
        AppliedPTransform<PCollection<KV<K, InputT>>, ?, Combine.PerKey<K, InputT, ?>> transform)
        throws IOException {
      try {
        @SuppressWarnings("unchecked")
        PCollection<KV<K, InputT>> mainInput =
            (PCollection<KV<K, InputT>>)
                Iterables.getOnlyElement(TransformInputs.nonAdditionalInputs(transform));
        return combineFn.getAccumulatorCoder(
            transform.getPipeline().getCoderRegistry(),
            ((KvCoder<K, InputT>) mainInput.getCoder()).getValueCoder());
      } catch (CannotProvideCoderException e) {
        throw new IOException("Could not obtain a Coder for the accumulator", e);
      }
    }
  }

  /** A {@link TransformPayloadTranslator} for {@link Combine.Globally}. */
  public static class CombineGloballyPayloadTranslator
      implements PTransformTranslation.TransformPayloadTranslator<Combine.Globally<?, ?>> {
    private CombineGloballyPayloadTranslator() {}

    @Override
    public String getUrn(Combine.Globally<?, ?> transform) {
      return COMBINE_GLOBALLY_TRANSFORM_URN;
    }

    @Override
    public FunctionSpec translate(
        AppliedPTransform<?, ?, Combine.Globally<?, ?>> transform, SdkComponents components)
        throws IOException {
      if (transform.getTransform().getSideInputs().isEmpty()) {
        return FunctionSpec.newBuilder()
            .setUrn(getUrn(transform.getTransform()))
            .setPayload(
                payloadForCombineGlobally((AppliedPTransform) transform, components).toByteString())
            .build();
      } else {
        // Combines with side inputs are translated as generic composites, which have a blank
        // FunctionSpec.
        return null;
      }
    }

    private static <InputT, AccumT> Coder<AccumT> extractAccumulatorCoder(
        GlobalCombineFn<InputT, AccumT, ?> combineFn,
        AppliedPTransform<PCollection<InputT>, ?, Combine.Globally<InputT, ?>> transform)
        throws IOException {
      try {
        @SuppressWarnings("unchecked")
        PCollection<InputT> mainInput =
            (PCollection<InputT>)
                Iterables.getOnlyElement(TransformInputs.nonAdditionalInputs(transform));
        return combineFn.getAccumulatorCoder(
            transform.getPipeline().getCoderRegistry(), mainInput.getCoder());
      } catch (CannotProvideCoderException e) {
        throw new IOException("Could not obtain a Coder for the accumulator", e);
      }
    }

    /** Produces a {@link RunnerApi.CombinePayload} from a {@link Combine.Globally}. */
    @VisibleForTesting
    static <InputT, OutputT> CombinePayload payloadForCombineGlobally(
        final AppliedPTransform<
                PCollection<InputT>, PCollection<OutputT>, Combine.Globally<InputT, OutputT>>
            transform,
        final SdkComponents components)
        throws IOException {
      GlobalCombineFn<?, ?, ?> combineFn = transform.getTransform().getFn();
      Coder<?> accumulatorCoder = extractAccumulatorCoder(combineFn, (AppliedPTransform) transform);
      return combinePayload(combineFn, accumulatorCoder, components);
    }
  }

  /** A {@link TransformPayloadTranslator} for {@link Combine.GroupedValues}. */
  public static class CombineGroupedValuesPayloadTranslator
      implements PTransformTranslation.TransformPayloadTranslator<Combine.GroupedValues<?, ?, ?>> {
    private CombineGroupedValuesPayloadTranslator() {}

    @Override
    public String getUrn(Combine.GroupedValues<?, ?, ?> transform) {
      return COMBINE_GROUPED_VALUES_TRANSFORM_URN;
    }

    @Override
    public FunctionSpec translate(
        AppliedPTransform<?, ?, Combine.GroupedValues<?, ?, ?>> transform, SdkComponents components)
        throws IOException {
      if (transform.getTransform().getSideInputs().isEmpty()) {
        GlobalCombineFn<?, ?, ?> combineFn = transform.getTransform().getFn();
        Coder<?> accumulatorCoder =
            extractAccumulatorCoder(combineFn, (AppliedPTransform) transform);
        return FunctionSpec.newBuilder()
            .setUrn(getUrn(transform.getTransform()))
            .setPayload(combinePayload(combineFn, accumulatorCoder, components).toByteString())
            .build();
      } else {
        // Combines with side inputs are translated as generic composites, which have a blank
        // FunctionSpec.
        return null;
      }
    }

    private static <K, InputT, AccumT> Coder<AccumT> extractAccumulatorCoder(
        GlobalCombineFn<InputT, AccumT, ?> combineFn,
        AppliedPTransform<
                PCollection<KV<K, Iterable<InputT>>>, ?, Combine.GroupedValues<K, InputT, ?>>
            transform)
        throws IOException {
      try {
        @SuppressWarnings("unchecked")
        PCollection<KV<K, Iterable<InputT>>> mainInput =
            (PCollection<KV<K, Iterable<InputT>>>)
                Iterables.getOnlyElement(TransformInputs.nonAdditionalInputs(transform));
        KvCoder<K, Iterable<InputT>> kvCoder = (KvCoder<K, Iterable<InputT>>) mainInput.getCoder();
        IterableCoder<InputT> iterCoder = (IterableCoder<InputT>) kvCoder.getValueCoder();
        return combineFn.getAccumulatorCoder(
            transform.getPipeline().getCoderRegistry(), iterCoder.getElemCoder());
      } catch (CannotProvideCoderException e) {
        throw new IOException("Could not obtain a Coder for the accumulator", e);
      }
    }
  }

  /**
   * Registers {@link TransformPayloadTranslator TransformPayloadTranslators} for {@link Combine
   * Combines}.
   */
  @AutoService(TransformPayloadTranslatorRegistrar.class)
  public static class Registrar implements TransformPayloadTranslatorRegistrar {
    @Override
    public Map<? extends Class<? extends PTransform>, ? extends TransformPayloadTranslator>
        getTransformPayloadTranslators() {
      return ImmutableMap.<Class<? extends PTransform>, TransformPayloadTranslator>builder()
          .put(Combine.Globally.class, new CombineGloballyPayloadTranslator())
          .put(Combine.GroupedValues.class, new CombineGroupedValuesPayloadTranslator())
          .put(Combine.PerKey.class, new CombinePerKeyPayloadTranslator())
          .build();
    }
  }

  /** Produces a {@link RunnerApi.CombinePayload} from a {@link GlobalCombineFn}. */
  private static CombinePayload combinePayload(
      GlobalCombineFn<?, ?, ?> combineFn, Coder<?> accumulatorCoder, final SdkComponents components)
      throws IOException {
    return RunnerApi.CombinePayload.newBuilder()
        .setAccumulatorCoderId(components.registerCoder(accumulatorCoder))
        .setCombineFn(toProto(combineFn, components))
        .build();
  }

  public static FunctionSpec toProto(GlobalCombineFn<?, ?, ?> combineFn, SdkComponents components) {
    return FunctionSpec.newBuilder()
        .setUrn(JAVA_SERIALIZED_COMBINE_FN_URN)
        .setPayload(ByteString.copyFrom(SerializableUtils.serializeToByteArray(combineFn)))
        .build();
  }
}

{'repo_name': 'apache/beam', 'stars': '4117', 'repo_language': 'Java', 'file_name': 'get-licenses.sh', 'mime_type': 'text/x-shellscript', 'hash': 7404823300458422526, 'source_dataset': 'data'}


/*
Copyright (C) 2001-2006, William Joseph.
All Rights Reserved.

This file is part of GtkRadiant.

GtkRadiant is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

GtkRadiant 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 GtkRadiant; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

#if !defined(INCLUDED_STREAM_TEXTFILESTREAM_H)
#define INCLUDED_STREAM_TEXTFILESTREAM_H

#include "itextstream.h"
#include <stdio.h>

/// \brief A wrapper around a file input stream opened for reading in text mode. Similar to std::ifstream.
class TextFileInputStream : public TextInputStream
{
  FILE* m_file;
public:
  TextFileInputStream(const char* name)
  {
    m_file = name[0] == '\0' ? 0 : fopen(name, "rt");
  }
  ~TextFileInputStream()
  {
    if(!failed())
      fclose(m_file);
  }

  bool failed() const
  {
    return m_file == 0;
  }

  std::size_t read(char* buffer, std::size_t length)
  {
    return fread(buffer, 1, length, m_file);
  }
};

/// \brief A wrapper around a file input stream opened for writing in text mode. Similar to std::ofstream.
class TextFileOutputStream : public TextOutputStream
{
  FILE* m_file;
public:
  TextFileOutputStream(const char* name)
  {
    m_file = name[0] == '\0' ? 0 : fopen(name, "wt");
  }
  ~TextFileOutputStream()
  {
    if(!failed())
      fclose(m_file);
  }

  bool failed() const
  {
    return m_file == 0;
  }

  std::size_t write(const char* buffer, std::size_t length)
  {
    return fwrite(buffer, 1, length, m_file);
  }
};

template<typename T>
inline TextFileOutputStream& operator<<(TextFileOutputStream& ostream, const T& t)
{
  return ostream_write(ostream, t);
}

#endif

{'repo_name': 'id-Software/GtkRadiant', 'stars': '199', 'repo_language': 'C++', 'file_name': 'spritemodel.def', 'mime_type': 'text/plain', 'hash': 5831663732184234391, 'source_dataset': 'data'}


let clear = require('clear');
figlet = require('figlet'),
chalk = require('chalk'),
inquirer = require('inquirer'),
routes = require('../utils/apiRoutes'),
createFolder = require('../utils/createFolder'),
request = require('request'),
eachOfSeries = require('async/eachOfSeries');

let category = require('../utils/classesCategory');
let DlPerId = require('./DlPerId');

module.exports = GetAllVideos = (fn)=>{

  let setClasses = (callback)=>{
    let questions =
    {
      name: 'classes',
      type: 'checkbox',
      message: chalk.green.bold(`Select Classes Download Skill Share:    ${chalk.red.bold('!! RED COLOR GLOBAL CATEGORY')}`),
      choices: category,
      validate: function( value ) {
        if (value.length) {
          return true;
        } else {
          return 'Please Select one Choice';
        }
      }
    }
    inquirer.prompt(questions).then((resp)=>{callback(resp)});
  }

  let getClasses = (resp,callback)=>{

    let categoryVideo;

    eachOfSeries(resp.classes, (el,key, cb) =>{

      categoryVideo = el;

      // let options = {
      //   url: encodeURI(`${routes.listClasses}?q=${category}&page=1`),
      //   headers: {
      //     'User-Agent': 'Skillshare/4.1.0; Android 5.1.1',
      //     'Host': 'api.skillshare.com'
      //   },
      // };
      //
      //
      // request(options, (error, response, body) =>{

      // let data = JSON.parse(body);
      // let sliceLastPage = data._links.last_page.href.split('=').slice(-1);
      // let lastLink = /^\d+$/.test(sliceLastPage) == false ? 1: parseInt(sliceLastPage);
      //

      let arrayTmp = new Array(150).join('0').split('');

      eachOfSeries(arrayTmp, (el,key, cb2) =>{

       // if(key == 4){
       //   cb2();
        //}else{

          let optionsClasses = {
            url: encodeURI(`${routes.listClasses}?tagSlug=${categoryVideo.replace(' ','-').replace('/','-').toLowerCase()}&seeAll=1&verticalListOnly=1&sort=rating&page=${key+1}`),
            headers: {
              'User-Agent': 'Skillshare/4.1.0; Android 5.1.1',
              'Host': 'api.skillshare.com'
            },
          };

          request(optionsClasses, (error, response, body) =>{
            let dataClasses = JSON.parse(body);

            if(dataClasses.spaces[0].next_page_url == null){
              cb();
            }

            let classes = dataClasses.spaces[0].blocks;

            eachOfSeries(classes, (el,key, cb3) =>{

              console.log(chalk.red.bold(`Downloading  ${key} ... ${categoryVideo}-${el.items[0].title}`))

              let optionsId = {
                url: `${routes.getPerId}${el.items[0].sku}`,
                headers: {
                  'Accept' : 'application/vnd.skillshare.class+json;,version=0.8',
                  'User-Agent': 'Skillshare/4.1.1; Android 5.1.1',
                  'Host': 'api.skillshare.com',
                  'Cookie': global.Cookie.serializeCookie()
                },
              };
              request(optionsId, (error, response, body) =>{

                let dataClass = JSON.parse(`${body}`);

                DlPerId(dataClass,categoryVideo,cb3);

              })

            }, (err, results)=> {

              cb2();

            });

          })
           // };
        }, (err, results)=> {

          cb();

        });

        // });

    }, (err, results)=> {
      console.log('complete');
    });

  }

  setClasses(getClasses);

}

{'repo_name': 'tharyckgusmao/Skill-Share-Crawler---DL', 'stars': '114', 'repo_language': 'JavaScript', 'file_name': 'GetAllVideos.js', 'mime_type': 'text/plain', 'hash': -4529190971213711370, 'source_dataset': 'data'}


//
//  MBProgressHUD.h
//  Version 0.4
//  Created by Matej Bukovinski on 2.4.09.
//

// This code is distributed under the terms and conditions of the MIT license.

// Copyright (c) 2011 Matej Bukovinski
//
// 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.

#import <UIKit/UIKit.h>

@protocol MBProgressHUDDelegate;

/////////////////////////////////////////////////////////////////////////////////////////////

typedef enum {
    /** Progress is shown using an UIActivityIndicatorView. This is the default. */
    MBProgressHUDModeIndeterminate,
    /** Progress is shown using a MBRoundProgressView. */
	MBProgressHUDModeDeterminate,
	/** Shows a custom view */
	MBProgressHUDModeCustomView
} MBProgressHUDMode;

typedef enum {
    /** Opacity animation */
    MBProgressHUDAnimationFade,
    /** Opacity + scale animation */
    MBProgressHUDAnimationZoom
} MBProgressHUDAnimation;

/////////////////////////////////////////////////////////////////////////////////////////////

/**
 * Displays a simple HUD window containing a progress indicator and two optional labels for short messages.
 *
 * This is a simple drop-in class for displaying a progress HUD view similar to Apples private UIProgressHUD class.
 * The MBProgressHUD window spans over the entire space given to it by the initWithFrame constructor and catches all
 * user input on this region, thereby preventing the user operations on components below the view. The HUD itself is
 * drawn centered as a rounded semi-transparent view witch resizes depending on the user specified content.
 *
 * This view supports three modes of operation:
 * - MBProgressHUDModeIndeterminate - shows a UIActivityIndicatorView
 * - MBProgressHUDModeDeterminate - shows a custom round progress indicator (MBRoundProgressView)
 * - MBProgressHUDModeCustomView - shows an arbitrary, user specified view (@see customView)
 *
 * All three modes can have optional labels assigned:
 * - If the labelText property is set and non-empty then a label containing the provided content is placed below the
 *   indicator view.
 * - If also the detailsLabelText property is set then another label is placed below the first label.
 */
@interface MBProgressHUD : UIView {
	MBProgressHUDMode mode;

    __unsafe_unretained id delegate;

	SEL methodForExecution;
	id targetForExecution;
	id objectForExecution;
	BOOL useAnimation;

	UILabel *label;
	UILabel *detailsLabel;

	float progress;

	NSString *labelText;
	NSString *detailsLabelText;

    BOOL isFinished;

	CGAffineTransform rotationTransform;
}

/**
 * Creates a new HUD, adds it to provided view and shows it. The counterpart to this method is hideHUDForView:animated:.
 *
 * @param view The view that the HUD will be added to
 * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
 * animations while disappearing.
 * @return A reference to the created HUD.
 *
 * @see hideHUDForView:animated:
 */
+ (MBProgressHUD *)showHUDAddedTo:(UIView *)view animated:(BOOL)animated;

/**
 * Finds a HUD sibview and hides it. The counterpart to this method is showHUDAddedTo:animated:.
 *
 * @param view The view that is going to be searched for a HUD subview.
 * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
 * animations while disappearing.
 * @return YES if a HUD was found and removed, NO otherwise.
 *
 * @see hideHUDForView:animated:
 */
+ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;

/**
 * A convenience constructor that initializes the HUD with the window's bounds. Calls the designated constructor with
 * window.bounds as the parameter.
 *
 * @param window The window instance that will provide the bounds for the HUD. Should probably be the same instance as
 * the HUD's superview (i.e., the window that the HUD will be added to).
 */
- (id)initWithWindow:(UIWindow *)window;

/**
 * A convenience constructor that initializes the HUD with the view's bounds. Calls the designated constructor with
 * view.bounds as the parameter
 *
 * @param view The view instance that will provide the bounds for the HUD. Should probably be the same instance as
 * the HUD's superview (i.e., the view that the HUD will be added to).
 */
- (id)initWithView:(UIView *)view;

/**
 * The UIView (i.g., a UIIMageView) to be shown when the HUD is in MBProgressHUDModeCustomView.
 * For best results use a 37 by 37 pixel view (so the bounds match the build in indicator bounds).
 */
@property (retain) UIView *customView;

/**
 * MBProgressHUD operation mode. Switches between indeterminate (MBProgressHUDModeIndeterminate) and determinate
 * progress (MBProgressHUDModeDeterminate). The default is MBProgressHUDModeIndeterminate.
 *
 * @see MBProgressHUDMode
 */
@property (assign) MBProgressHUDMode mode;

/**
 * The animation type that should be used when the HUD is shown and hidden.
 *
 * @see MBProgressHUDAnimation
 */
@property (assign) MBProgressHUDAnimation animationType;

/**
 * The HUD delegate object. If set the delegate will receive hudWasHidden callbacks when the HUD was hidden. The
 * delegate should conform to the MBProgressHUDDelegate protocol and implement the hudWasHidden method. The delegate
 * object will not be retained.
 */
@property (assign) id<MBProgressHUDDelegate> delegate;

/**
 * An optional short message to be displayed below the activity indicator. The HUD is automatically resized to fit
 * the entire text. If the text is too long it will get clipped by displaying "..." at the end. If left unchanged or
 * set to @"", then no message is displayed.
 */
@property (copy) NSString *labelText;

/**
 * An optional details message displayed below the labelText message. This message is displayed only if the labelText
 * property is also set and is different from an empty string (@"").
 */
@property (copy) NSString *detailsLabelText;

/**
 * The opacity of the HUD window. Defaults to 0.9 (90% opacity).
 */
@property (assign) float opacity;

/**
 * The x-axis offset of the HUD relative to the centre of the superview.
 */
@property (assign) float xOffset;

/**
 * The y-ayis offset of the HUD relative to the centre of the superview.
 */
@property (assign) float yOffset;

/**
 * The amounth of space between the HUD edge and the HUD elements (labels, indicators or custom views).
 *
 * Defaults to 20.0
 */
@property (assign) float margin;

/**
 * Cover the HUD background view with a radial gradient.
 */
@property (assign) BOOL dimBackground;

/*
 * Grace period is the time (in seconds) that the invoked method may be run without
 * showing the HUD. If the task finishes befor the grace time runs out, the HUD will
 * not be shown at all.
 * This may be used to prevent HUD display for very short tasks.
 * Defaults to 0 (no grace time).
 * Grace time functionality is only supported when the task status is known!
 * @see taskInProgress
 */
@property (assign) float graceTime;

/**
 * The minimum time (in seconds) that the HUD is shown.
 * This avoids the problem of the HUD being shown and than instantly hidden.
 * Defaults to 0 (no minimum show time).
 */
@property (assign) float minShowTime;

/**
 * Indicates that the executed operation is in progress. Needed for correct graceTime operation.
 * If you don't set a graceTime (different than 0.0) this does nothing.
 * This property is automatically set when using showWhileExecuting:onTarget:withObject:animated:.
 * When threading is done outside of the HUD (i.e., when the show: and hide: methods are used directly),
 * you need to set this property when your task starts and completes in order to have normal graceTime
 * functunality.
 */
@property (assign) BOOL taskInProgress;

/**
 * Removes the HUD from it's parent view when hidden.
 * Defaults to NO.
 */
@property (assign) BOOL removeFromSuperViewOnHide;

/**
 * Font to be used for the main label. Set this property if the default is not adequate.
 */
@property (retain) UIFont* labelFont;

/**
 * Font to be used for the details label. Set this property if the default is not adequate.
 */
@property (retain) UIFont* detailsLabelFont;

/**
 * The progress of the progress indicator, from 0.0 to 1.0. Defaults to 0.0.
 */
@property (assign) float progress;

/**
 * Display the HUD. You need to make sure that the main thread completes its run loop soon after this method call so
 * the user interface can be updated. Call this method when your task is already set-up to be executed in a new thread
 * (e.g., when using something like NSOperation or calling an asynchronous call like NSUrlRequest).
 *
 * If you need to perform a blocking thask on the main thread, you can try spining the run loop imeidiately after calling this
 * method by using:
 *
 * [[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantPast]];
 *
 * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
 * animations while disappearing.
 */
- (void)show:(BOOL)animated;

/**
 * Hide the HUD. This still calls the hudWasHidden delegate. This is the counterpart of the hide: method. Use it to
 * hide the HUD when your task completes.
 *
 * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
 * animations while disappearing.
 */
- (void)hide:(BOOL)animated;

/**
 * Hide the HUD after a delay. This still calls the hudWasHidden delegate. This is the counterpart of the hide: method. Use it to
 * hide the HUD when your task completes.
 *
 * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
 * animations while disappearing.
 * @param delay Delay in secons until the HUD is hidden.
 */
- (void)hide:(BOOL)animated afterDelay:(NSTimeInterval)delay;

/**
 * Shows the HUD while a background task is executing in a new thread, then hides the HUD.
 *
 * This method also takes care of NSAutoreleasePools so your method does not have to be concerned with setting up a
 * pool.
 *
 * @param method The method to be executed while the HUD is shown. This method will be executed in a new thread.
 * @param target The object that the target method belongs to.
 * @param object An optional object to be passed to the method.
 * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not use
 * animations while disappearing.
 */
- (void)showWhileExecuting:(SEL)method onTarget:(id)target withObject:(id)object animated:(BOOL)animated;

@end

/////////////////////////////////////////////////////////////////////////////////////////////

@protocol MBProgressHUDDelegate <NSObject>

@optional

/**
 * Called after the HUD was fully hidden from the screen.
 */
- (void)hudWasHidden:(MBProgressHUD *)hud;

/**
 * @deprecated use hudWasHidden: instead
 * @see hudWasHidden:
 */
- (void)hudWasHidden __attribute__ ((deprecated));

@end

/////////////////////////////////////////////////////////////////////////////////////////////

/**
 * A progress view for showing definite progress by filling up a circle (pie chart).
 */
@interface MBRoundProgressView : UIView {
@private
    float _progress;
}

/**
 * Progress (0.0 to 1.0)
 */
@property (nonatomic, assign) float progress;

@end

/////////////////////////////////////////////////////////////////////////////////////////////

{'repo_name': 'michaelkroll/BLE-Shield', 'stars': '138', 'repo_language': 'Objective-C', 'file_name': 'BLE-Shield.xccheckout', 'mime_type': 'text/xml', 'hash': -1207444225651759422, 'source_dataset': 'data'}