<?php
/**
 * Rule checking that uploaded file size does not exceed the given limit
 *
 * PHP version 5
 *
 * LICENSE:
 *
 * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>,
 *                          Bertrand Mansion <golgote@mamasam.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.
 *    * The names of the authors may not be used to endorse or promote products
 *      derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * @category   HTML
 * @package    HTML_QuickForm2
 * @author     Alexey Borzov <avb@php.net>
 * @author     Bertrand Mansion <golgote@mamasam.com>
 * @license    http://opensource.org/licenses/bsd-license.php New BSD License
 * @version    SVN: $Id: MaxFileSize.php 294057 2010-01-26 21:10:28Z avb $
 * @link       http://pear.php.net/package/HTML_QuickForm2
 */

/**
 * Base class for HTML_QuickForm2 rules
 */
// require_once 'HTML/QuickForm2/Rule.php';

/**
 * Rule checking that uploaded file size does not exceed the given limit
 *
 * The Rule needs one configuration parameter for its work: the size limit.
 * This limit can be passed either to
 * {@link HTML_QuickForm2_Rule::__construct() the Rule constructor} as local
 * configuration or to {@link HTML_QuickForm2_Factory::registerRule()} as
 * global one. As usual, global configuration overrides local one.
 *
 * Note that if file upload failed due to upload_max_filesize php.ini setting
 * or MAX_FILE_SIZE form field, then this rule won't even be called, due to
 * File element's built-in validation setting the error message.
 *
 * The Rule considers missing file uploads (UPLOAD_ERR_NO_FILE) valid.
 *
 * @category   HTML
 * @package    HTML_QuickForm2
 * @author     Alexey Borzov <avb@php.net>
 * @author     Bertrand Mansion <golgote@mamasam.com>
 * @version    Release: @package_version@
 */
class HTML_QuickForm2_Rule_MaxFileSize extends HTML_QuickForm2_Rule
{
   /**
    * Validates the owner element
    *
    * @return   bool    whether uploaded file's size is within given limit
    */
    protected function validateOwner()
    {
        $value = $this->owner->getValue();
        if (!isset($value['error']) || UPLOAD_ERR_NO_FILE == $value['error']) {
            return true;
        }
        return ($this->getConfig() >= @filesize($value['tmp_name']));
    }

   /**
    * Sets maximum allowed file size
    *
    * @param    int     Maximum allowed size
    * @return   HTML_QuickForm2_Rule
    * @throws   HTML_QuickForm2_InvalidArgumentException    if a bogus size limit was provided
    */
    public function setConfig($config)
    {
        if (0 >= $config) {
            throw new HTML_QuickForm2_InvalidArgumentException(
                'MaxFileSize Rule requires a positive size limit, ' .
                preg_replace('/\s+/', ' ', var_export($config, true)) . ' given'
            );
        }
        return parent::setConfig($config);
    }

   /**
    * Sets the element that will be validated by this rule
    *
    * @param    HTML_QuickForm2_Element_InputFile   File upload field to validate
    * @throws   HTML_QuickForm2_InvalidArgumentException    if trying to use
    *           this Rule on something that isn't a file upload field
    */
    public function setOwner(HTML_QuickForm2_Node $owner)
    {
        if (!$owner instanceof HTML_QuickForm2_Element_InputFile) {
            throw new HTML_QuickForm2_InvalidArgumentException(
                'MaxFileSize Rule can only validate file upload fields, '.
                get_class($owner) . ' given'
            );
        }
        parent::setOwner($owner);
    }
}
?>

{'repo_name': 'matomo-org/matomo', 'stars': '13398', 'repo_language': 'PHP', 'file_name': 'ClientType.php', 'mime_type': 'text/x-php', 'hash': 7062552367224322807, 'source_dataset': 'data'}


"use strict";

var matcherPrototype = {
    toString: function() {
        return this.message;
    }
};

matcherPrototype.or = function(valueOrMatcher) {
    var createMatcher = require("../create-matcher");
    var isMatcher = createMatcher.isMatcher;

    if (!arguments.length) {
        throw new TypeError("Matcher expected");
    }

    var m2 = isMatcher(valueOrMatcher)
        ? valueOrMatcher
        : createMatcher(valueOrMatcher);
    var m1 = this;
    var or = Object.create(matcherPrototype);
    or.test = function(actual) {
        return m1.test(actual) || m2.test(actual);
    };
    or.message = m1.message + ".or(" + m2.message + ")";
    return or;
};

matcherPrototype.and = function(valueOrMatcher) {
    var createMatcher = require("../create-matcher");
    var isMatcher = createMatcher.isMatcher;

    if (!arguments.length) {
        throw new TypeError("Matcher expected");
    }

    var m2 = isMatcher(valueOrMatcher)
        ? valueOrMatcher
        : createMatcher(valueOrMatcher);
    var m1 = this;
    var and = Object.create(matcherPrototype);
    and.test = function(actual) {
        return m1.test(actual) && m2.test(actual);
    };
    and.message = m1.message + ".and(" + m2.message + ")";
    return and;
};

module.exports = matcherPrototype;

{'repo_name': 'ILIAS-eLearning/ILIAS', 'stars': '206', 'repo_language': 'PHP', 'file_name': 'cron.php', 'mime_type': 'text/x-php', 'hash': -6150820715024010844, 'source_dataset': 'data'}


<?php

/**
 * Report
 *
 * This class has been auto-generated by the Doctrine ORM Framework
 *
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
class Report extends PluginReport
{
}

{'repo_name': 'orangehrm/orangehrm', 'stars': '216', 'repo_language': 'PHP', 'file_name': 'AttendanceDao.yml', 'mime_type': 'text/plain', 'hash': -5904198529082112854, 'source_dataset': 'data'}


module Api; module V1
  class ExpensesController < BaseController
    def index
      expenses = ::Expense.all
      expenses = expenses.where('paid_at >= ?', Time.at(params[:paid_after].to_i).to_datetime) if params[:paid_after].present?
      expenses = expenses.where('paid_at <= ?', Time.at(params[:paid_before].to_i).to_datetime) if params[:paid_before].present?
      expenses = expenses.where(category_id: params[:category_id]) if params[:category_id].present?
      expenses = expenses.includes(:category) if params[:include_category] == true.to_s
      expenses = expenses.paginate(params[:page], params[:per_page]) if params[:page]
      expenses = expenses.order(normalized_sort(params[:sort], params[:sort_desc])).order(id: :desc) if params[:sort]

      if params[:page]
        opts = {}
        opts = { include: :category } if params[:include_category] == true.to_s
        paginate(expenses, opts)
      else
        render json: expenses
      end
    end

    def create
      expense = ::Expense.new(description: params[:description], category_id: params[:category_id], amount: params[:amount], paid_at: params[:paid_at])
      successful = expense.save
      render json: expense, status: successful ? 200 : 500
    end

    def destroy
      expense = ::Expense.find(params[:id])
      successful = expense.destroy
      render json: nil, status: successful ? 200 : 500
    end

    def update
      expense = ::Expense.find(params[:id])
      successful = expense.update(
        category_id: params.fetch(:category_id, expense.category_id),
        description: params.fetch(:description, expense.description),
        paid_at: params.fetch(:paid_at, expense.paid_at),
        amount: params.fetch(:amount, expense.amount),
      )
      render json: nil, status: successful ? 200 : 500
    end

    private

    def normalized_sort(key, sort_desc)
      cols = { paid_at: "paid_at", amount: "amount" }
      col = cols[key.to_sym] || "paid_at"
      dir = sort_desc == "true" ? "DESC" : "ASC"
      "#{col} #{dir}"
    end
  end
end; end

{'repo_name': 'inoda/ontrack', 'stars': '104', 'repo_language': 'JavaScript', 'file_name': 'robots.txt', 'mime_type': 'text/plain', 'hash': -7148017744406154442, 'source_dataset': 'data'}


classdef TestDrawDetectedMarkers
    %TestDrawDetectedMarkers

    methods (Static)
        function test_1
            [img, d] = get_image_markers();
            [corners, ids, rejected] = cv.detectMarkers(img, d.dict);
            out = cv.drawDetectedMarkers(img, corners, 'IDs',ids);
            if ~isempty(rejected)
                out = cv.drawDetectedMarkers(out, rejected, ...
                    'BorderColor',[255 255 0]);
            end
            validateattributes(out, {class(img)}, {'size',size(img)});
        end

        function test_error_argnum
            try
                cv.drawDetectedMarkers();
                throw('UnitTest:Fail');
            catch e
                assert(strcmp(e.identifier,'mexopencv:error'));
            end
        end
    end

end

function [img, d] = get_image_markers()
    % 4 markers in a diamond
    d = struct();
    d.dict = '6x6_50';
    d.ids = randi([0 49], [1 4]);
    d.slen = 80;
    d.mlen = 50;
    img = cv.drawCharucoDiamond(d.dict, d.ids, d.slen, d.mlen);
    img = repmat(img, [1 1 3]);
end

{'repo_name': 'kyamagu/mexopencv', 'stars': '563', 'repo_language': 'Matlab', 'file_name': 'helptoc.xml', 'mime_type': 'text/xml', 'hash': -1639868165341880148, 'source_dataset': 'data'}


/*
 * Copyright 2016 The Bazel Authors. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.idea.blaze.base.wizard2;

import com.google.common.base.Joiner;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.google.idea.blaze.base.logging.EventLoggingService;
import com.google.idea.blaze.base.model.primitives.WorkspaceRoot;
import com.google.idea.blaze.base.projectview.ProjectView;
import com.google.idea.blaze.base.projectview.ProjectViewSet;
import com.google.idea.blaze.base.projectview.ProjectViewStorageManager;
import com.google.idea.blaze.base.projectview.parser.ProjectViewParser;
import com.google.idea.blaze.base.settings.Blaze;
import com.google.idea.blaze.base.settings.BlazeImportSettings;
import com.google.idea.blaze.base.settings.BlazeImportSettingsManager;
import com.google.idea.blaze.base.settings.BuildSystem;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.StringUtil;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Nullable;

/** Contains the state to build a new project throughout the new project wizard process. */
public final class BlazeNewProjectBuilder {
  private static final Logger logger = Logger.getInstance(BlazeNewProjectBuilder.class);

  // The import wizard should keep this many items around for fields that care about history
  public static final int HISTORY_SIZE = 8;

  // Stored in user settings as the last imported workspace
  private static final String LAST_IMPORTED_BLAZE_WORKSPACE =
      "blaze-wizard.last-imported-workspace";
  private static final String LAST_IMPORTED_BAZEL_WORKSPACE =
      "blaze-wizard.last-imported-bazel-workspace";
  private static final String HISTORY_SEPARATOR = "::";

  private static String lastImportedWorkspaceKey(BuildSystem buildSystem) {
    switch (buildSystem) {
      case Blaze:
        return LAST_IMPORTED_BLAZE_WORKSPACE;
      case Bazel:
        return LAST_IMPORTED_BAZEL_WORKSPACE;
      default:
        throw new RuntimeException("Unrecognized build system type: " + buildSystem);
    }
  }

  private final BlazeWizardUserSettings userSettings;
  @Nullable private WorkspaceTypeData workspaceData;
  private BlazeSelectProjectViewOption projectViewOption;
  private File projectViewFile;
  private ProjectView projectView;
  private ProjectViewSet projectViewSet;
  private String projectName;
  private String projectDataDirectory;
  private WorkspaceRoot workspaceRoot;

  public BlazeNewProjectBuilder() {
    this.userSettings = BlazeWizardUserSettingsStorage.getInstance().copyUserSettings();
  }

  public BlazeWizardUserSettings getUserSettings() {
    return userSettings;
  }

  public String getLastImportedWorkspace(BuildSystem buildSystem) {
    List<String> workspaceHistory = getWorkspaceHistory(buildSystem);
    return workspaceHistory.isEmpty() ? "" : workspaceHistory.get(0);
  }

  public List<String> getWorkspaceHistory(BuildSystem buildSystem) {
    String value = userSettings.get(lastImportedWorkspaceKey(buildSystem), "");
    return Strings.isNullOrEmpty(value)
        ? ImmutableList.of()
        : Arrays.asList(value.split(HISTORY_SEPARATOR));
  }

  private void writeWorkspaceHistory(BuildSystem buildSystem, String newValue) {
    List<String> history = Lists.newArrayList(getWorkspaceHistory(buildSystem));
    history.remove(newValue);
    history.add(0, newValue);
    while (history.size() > HISTORY_SIZE) {
      history.remove(history.size() - 1);
    }
    userSettings.put(
        lastImportedWorkspaceKey(buildSystem), Joiner.on(HISTORY_SEPARATOR).join(history));
  }

  @Nullable
  public WorkspaceTypeData getWorkspaceData() {
    return workspaceData;
  }

  public BlazeSelectProjectViewOption getProjectViewOption() {
    return projectViewOption;
  }

  public String getProjectName() {
    return projectName;
  }

  public ProjectView getProjectView() {
    return projectView;
  }

  public ProjectViewSet getProjectViewSet() {
    return projectViewSet;
  }

  public String getProjectDataDirectory() {
    return projectDataDirectory;
  }

  @Nullable
  public BuildSystem getBuildSystem() {
    return workspaceData != null ? workspaceData.buildSystem() : null;
  }

  public String getBuildSystemName() {
    BuildSystem buildSystem = getBuildSystem();
    return buildSystem != null ? buildSystem.getName() : Blaze.defaultBuildSystemName();
  }

  public BlazeNewProjectBuilder setWorkspaceData(WorkspaceTypeData workspaceData) {
    this.workspaceData = workspaceData;
    return this;
  }

  public BlazeNewProjectBuilder setProjectViewOption(
      BlazeSelectProjectViewOption projectViewOption) {
    this.projectViewOption = projectViewOption;
    return this;
  }

  public BlazeNewProjectBuilder setProjectView(ProjectView projectView) {
    this.projectView = projectView;
    return this;
  }

  public BlazeNewProjectBuilder setProjectViewFile(File projectViewFile) {
    this.projectViewFile = projectViewFile;
    return this;
  }

  public BlazeNewProjectBuilder setProjectViewSet(ProjectViewSet projectViewSet) {
    this.projectViewSet = projectViewSet;
    return this;
  }

  public BlazeNewProjectBuilder setProjectName(String projectName) {
    this.projectName = projectName;
    return this;
  }

  public BlazeNewProjectBuilder setProjectDataDirectory(String projectDataDirectory) {
    this.projectDataDirectory = projectDataDirectory;
    return this;
  }

  /** Commits the project. May report errors. */
  public void commit() throws BlazeProjectCommitException {
    this.workspaceRoot = workspaceData.workspaceRoot();

    projectViewOption.commit();

    BuildSystem buildSystem = workspaceData.buildSystem();
    writeWorkspaceHistory(buildSystem, workspaceRoot.toString());

    if (!StringUtil.isEmpty(projectDataDirectory)) {
      File projectDataDir = new File(projectDataDirectory);
      if (!projectDataDir.exists()) {
        if (!projectDataDir.mkdirs()) {
          throw new BlazeProjectCommitException(
              "Unable to create the project directory: " + projectDataDirectory);
        }
      }
    }

    try {
      logger.assertTrue(projectViewFile != null);
      ProjectViewStorageManager.getInstance()
          .writeProjectView(ProjectViewParser.projectViewToString(projectView), projectViewFile);
    } catch (IOException e) {
      throw new BlazeProjectCommitException("Could not create project view file", e);
    }
    BlazeImportSettingsManager.setPendingProjectSettings(getImportSettings());
  }

  /**
   * Commits the project data. This method mustn't fail, because the project has already been
   * created.
   */
  void commitToProject(Project project) {
    BlazeWizardUserSettingsStorage.getInstance().commit(userSettings);
    EventLoggingService.getInstance()
        .logEvent(getClass(), "blaze-project-created", ImmutableMap.copyOf(userSettings.values));

    BlazeImportSettingsManager.getInstance(project).setImportSettings(getImportSettings());
    // Initial sync of the project happens in BlazeSyncStartupActivity
  }

  private BlazeImportSettings getImportSettings() {
    return new BlazeImportSettings(
        workspaceRoot.directory().getPath(),
        projectName,
        projectDataDirectory,
        projectViewFile.getPath(),
        getBuildSystem());
  }
}

{'repo_name': 'bazelbuild/intellij', 'stars': '417', 'repo_language': 'Java', 'file_name': 'PluginDevSyncTest.java', 'mime_type': 'text/x-java', 'hash': 8468547729821907362, 'source_dataset': 'data'}


#ifndef BOOST_MPL_VECTOR_VECTOR10_HPP_INCLUDED
#define BOOST_MPL_VECTOR_VECTOR10_HPP_INCLUDED

// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.

// $Id$
// $Date$
// $Revision$

#if !defined(BOOST_MPL_PREPROCESSING_MODE)
#   include <boost/mpl/vector/vector0.hpp>
#endif

#include <boost/mpl/aux_/config/use_preprocessed.hpp>

#if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
    && !defined(BOOST_MPL_PREPROCESSING_MODE)

#   define BOOST_MPL_PREPROCESSED_HEADER vector10.hpp
#   include <boost/mpl/vector/aux_/include_preprocessed.hpp>

#else

#   include <boost/mpl/aux_/config/typeof.hpp>
#   include <boost/mpl/aux_/config/ctps.hpp>
#   include <boost/preprocessor/iterate.hpp>

namespace boost { namespace mpl {

#   define BOOST_PP_ITERATION_PARAMS_1 \
    (3,(0, 10, <boost/mpl/vector/aux_/numbered.hpp>))
#   include BOOST_PP_ITERATE()

}}

#endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS

#endif // BOOST_MPL_VECTOR_VECTOR10_HPP_INCLUDED

{'repo_name': 'turi-code/GraphLab-Create-SDK', 'stars': '150', 'repo_language': 'C++', 'file_name': 'sgraph_weighted_pagerank.cpp', 'mime_type': 'text/x-c', 'hash': -7443311152131388488, 'source_dataset': 'data'}


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

#define MAX		10000

void HariMain(void)
{
	char *flag, s[8];
	int i, j;
	api_initmalloc();
	flag = api_malloc(MAX);
	for (i = 0; i < MAX; i++) {
		flag[i] = 0;
	}
	for (i = 2; i < MAX; i++) {
		if (flag[i] == 0) {
			/*没有标记的为质数*/
			sprintf(s, "%d ", i);
			api_putstr0(s);
			for (j = i * 2; j < MAX; j += i) {
				flag[j] = 1;	/*给它的倍数做上标记*/
			}
		}
	}
	api_end();
}

{'repo_name': 'yourtion/30dayMakeOS', 'stars': '3022', 'repo_language': 'C', 'file_name': 'Makefile', 'mime_type': 'text/plain', 'hash': -56669310993901301, 'source_dataset': 'data'}


var once = require('once');

var noop = function() {};

var isRequest = function(stream) {
	return stream.setHeader && typeof stream.abort === 'function';
};

var eos = function(stream, opts, callback) {
	if (typeof opts === 'function') return eos(stream, null, opts);
	if (!opts) opts = {};

	callback = once(callback || noop);

	var ws = stream._writableState;
	var rs = stream._readableState;
	var readable = opts.readable || (opts.readable !== false && stream.readable);
	var writable = opts.writable || (opts.writable !== false && stream.writable);

	var onlegacyfinish = function() {
		if (!stream.writable) onfinish();
	};

	var onfinish = function() {
		writable = false;
		if (!readable) callback();
	};

	var onend = function() {
		readable = false;
		if (!writable) callback();
	};

	var onclose = function() {
		if (readable && !(rs && rs.ended)) return callback(new Error('premature close'));
		if (writable && !(ws && ws.ended)) return callback(new Error('premature close'));
	};

	var onrequest = function() {
		stream.req.on('finish', onfinish);
	};

	if (isRequest(stream)) {
		stream.on('complete', onfinish);
		stream.on('abort', onclose);
		if (stream.req) onrequest();
		else stream.on('request', onrequest);
	} else if (writable && !ws) { // legacy streams
		stream.on('end', onlegacyfinish);
		stream.on('close', onlegacyfinish);
	}

	stream.on('end', onend);
	stream.on('finish', onfinish);
	if (opts.error !== false) stream.on('error', callback);
	stream.on('close', onclose);

	return stream;
};

module.exports = eos;

{'repo_name': 'node-freight/freight', 'stars': '187', 'repo_language': 'JavaScript', 'file_name': 'extractor.js', 'mime_type': 'text/plain', 'hash': -7762711738956760068, 'source_dataset': 'data'}


swagger: '2.0'
schemes:
  - https
host: management.azure.com
info:
  description: 'Provides create, read, update and delete functionality for Azure SQL Database resources including recommendations and operations.'
  title: Azure SQL Database
  version: '2014-04-01'
  x-apisguru-categories:
    - cloud
  x-logo:
    url: 'https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png'
  x-origin:
    - format: swagger
      url: 'https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json'
      version: '2.0'
  x-providerName: azure.com
  x-serviceName: sql-sql.core
  x-tags:
    - Azure
    - Microsoft
consumes:
  - application/json
produces:
  - application/json
securityDefinitions:
  azure_auth:
    authorizationUrl: 'https://login.microsoftonline.com/common/oauth2/authorize'
    description: Azure Active Directory OAuth2 Flow
    flow: implicit
    scopes:
      user_impersonation: impersonate your user account
    type: oauth2
parameters:
  DatabaseExpandParameter:
    description: 'A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.'
    in: query
    name: $expand
    required: false
    type: string
    x-ms-parameter-location: method
  ServerNameParameter:
    description: The name of the server.
    in: path
    name: serverName
    required: true
    type: string
    x-ms-parameter-location: method
  TransparentDataEncryptionNameParameter:
    description: The name of the transparent data encryption configuration.
    enum:
      - current
    in: path
    name: transparentDataEncryptionName
    required: true
    type: string
    x-ms-enum:
      modelAsString: true
      name: TransparentDataEncryptionName
    x-ms-parameter-location: method
paths:
  '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors':
    get:
      description: Returns service tier advisors for specified database.
      operationId: ServiceTierAdvisors_ListByDatabase
      parameters:
        - description: The API version to use for the request.
          in: query
          name: api-version
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The subscription ID that identifies an Azure subscription.
          in: path
          name: subscriptionId
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
          in: path
          name: resourceGroupName
          required: true
          type: string
          x-ms-parameter-location: method
        - $ref: '#/parameters/ServerNameParameter'
        - description: The name of database.
          in: path
          name: databaseName
          required: true
          type: string
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/ServiceTierAdvisorListResult'
      tags:
        - ServiceTierAdvisors
      x-ms-examples:
        Get a list of a service tier advisors:
          parameters:
            api-version: '2014-04-01'
            databaseName: sqlcrudtest-9187
            resourceGroupName: sqlcrudtest-6852
            serverName: sqlcrudtest-2080
            subscriptionId: 00000000-1111-2222-3333-444444444444
          responses:
            '200':
              body:
                value:
                  - id: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/serviceTierAdvisors/Current
                    name: Current
                    properties:
                      activeTimeRatio: 0
                      avgDtu: 0
                      confidence: 1
                      currentServiceLevelObjective: S0
                      currentServiceLevelObjectiveId: f1173c43-91bd-4aaa-973c-54e79e15235b
                      databaseSizeBasedRecommendationServiceLevelObjective: null
                      databaseSizeBasedRecommendationServiceLevelObjectiveId: null
                      disasterPlanBasedRecommendationServiceLevelObjective: null
                      disasterPlanBasedRecommendationServiceLevelObjectiveId: null
                      maxDtu: 0
                      maxSizeInGB: 0.0234375
                      minDtu: 0
                      observationPeriodEnd: '2017-07-26T13:00:00Z'
                      observationPeriodStart: '2017-07-12T12:00:00Z'
                      overallRecommendationServiceLevelObjective: null
                      overallRecommendationServiceLevelObjectiveId: null
                      serviceLevelObjectiveUsageMetrics:
                        - inRangeTimeRatio: 1
                          serviceLevelObjective: Basic
                          serviceLevelObjectiveId: dd6d99bb-f193-4ec1-86f2-43d3bccbc49c
                      usageBasedRecommendationServiceLevelObjective: null
                      usageBasedRecommendationServiceLevelObjectiveId: null
                    type: Microsoft.Sql/servers/databases/serviceTierAdvisors
      x-ms-pageable:
        nextLinkName: null
  '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors/{serviceTierAdvisorName}':
    get:
      description: Gets a service tier advisor.
      operationId: ServiceTierAdvisors_Get
      parameters:
        - description: The API version to use for the request.
          in: query
          name: api-version
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The subscription ID that identifies an Azure subscription.
          in: path
          name: subscriptionId
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
          in: path
          name: resourceGroupName
          required: true
          type: string
          x-ms-parameter-location: method
        - $ref: '#/parameters/ServerNameParameter'
        - description: The name of database.
          in: path
          name: databaseName
          required: true
          type: string
        - description: The name of service tier advisor.
          in: path
          name: serviceTierAdvisorName
          required: true
          type: string
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/ServiceTierAdvisor'
      tags:
        - ServiceTierAdvisors
      x-ms-examples:
        Get a service tier advisor:
          parameters:
            api-version: '2014-04-01'
            databaseName: sqlcrudtest-9187
            resourceGroupName: sqlcrudtest-6852
            serverName: sqlcrudtest-2080
            serviceTierAdvisorName: Current
            subscriptionId: 00000000-1111-2222-3333-444444444444
          responses:
            '200':
              body:
                id: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/serviceTierAdvisors/Current
                name: Current
                properties:
                  activeTimeRatio: 0
                  avgDtu: 0
                  confidence: 1
                  currentServiceLevelObjective: S0
                  currentServiceLevelObjectiveId: f1173c43-91bd-4aaa-973c-54e79e15235b
                  databaseSizeBasedRecommendationServiceLevelObjective: null
                  databaseSizeBasedRecommendationServiceLevelObjectiveId: null
                  disasterPlanBasedRecommendationServiceLevelObjective: null
                  disasterPlanBasedRecommendationServiceLevelObjectiveId: null
                  maxDtu: 0
                  maxSizeInGB: 0.0234375
                  minDtu: 0
                  observationPeriodEnd: '2017-07-26T13:00:00Z'
                  observationPeriodStart: '2017-07-12T12:00:00Z'
                  overallRecommendationServiceLevelObjective: null
                  overallRecommendationServiceLevelObjectiveId: null
                  serviceLevelObjectiveUsageMetrics:
                    - inRangeTimeRatio: 1
                      serviceLevelObjective: Basic
                      serviceLevelObjectiveId: dd6d99bb-f193-4ec1-86f2-43d3bccbc49c
                  usageBasedRecommendationServiceLevelObjective: null
                  usageBasedRecommendationServiceLevelObjectiveId: null
                type: Microsoft.Sql/servers/databases/serviceTierAdvisors
  '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}':
    get:
      description: Gets a database's transparent data encryption configuration.
      operationId: TransparentDataEncryptions_Get
      parameters:
        - description: The API version to use for the request.
          in: query
          name: api-version
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The subscription ID that identifies an Azure subscription.
          in: path
          name: subscriptionId
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
          in: path
          name: resourceGroupName
          required: true
          type: string
          x-ms-parameter-location: method
        - $ref: '#/parameters/ServerNameParameter'
        - description: The name of the database for which the transparent data encryption applies.
          in: path
          name: databaseName
          required: true
          type: string
        - $ref: '#/parameters/TransparentDataEncryptionNameParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/TransparentDataEncryption'
      tags:
        - TransparentDataEncryption
      x-ms-examples:
        Get a database's transparent data encryption configuration:
          parameters:
            api-version: '2014-04-01'
            databaseName: sqlcrudtest-9187
            resourceGroupName: sqlcrudtest-6852
            serverName: sqlcrudtest-2080
            subscriptionId: 00000000-1111-2222-3333-444444444444
            transparentDataEncryptionName: current
          responses:
            '200':
              body:
                id: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current
                location: North Europe
                name: current
                properties:
                  status: Enabled
                type: Microsoft.Sql/servers/databases/transparentDataEncryption
    put:
      description: Creates or updates a database's transparent data encryption configuration.
      operationId: TransparentDataEncryptions_CreateOrUpdate
      parameters:
        - description: The API version to use for the request.
          in: query
          name: api-version
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The subscription ID that identifies an Azure subscription.
          in: path
          name: subscriptionId
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
          in: path
          name: resourceGroupName
          required: true
          type: string
          x-ms-parameter-location: method
        - $ref: '#/parameters/ServerNameParameter'
        - description: The name of the database for which setting the transparent data encryption applies.
          in: path
          name: databaseName
          required: true
          type: string
        - $ref: '#/parameters/TransparentDataEncryptionNameParameter'
        - description: The required parameters for creating or updating transparent data encryption.
          in: body
          name: parameters
          required: true
          schema:
            $ref: '#/definitions/TransparentDataEncryption'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/TransparentDataEncryption'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/TransparentDataEncryption'
      tags:
        - TransparentDataEncryption
      x-ms-examples:
        Create or update a database's transparent data encryption configuration:
          parameters:
            api-version: '2014-04-01'
            databaseName: sqlcrudtest-9187
            parameters:
              properties:
                status: Enabled
            resourceGroupName: sqlcrudtest-6852
            serverName: sqlcrudtest-2080
            subscriptionId: 00000000-1111-2222-3333-444444444444
            transparentDataEncryptionName: current
          responses:
            '200':
              body:
                id: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current
                location: North Europe
                name: current
                properties:
                  status: Enabled
                type: Microsoft.Sql/servers/databases/transparentDataEncryption
            '201':
              body:
                id: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current
                location: North Europe
                name: current
                properties:
                  status: Enabled
                type: Microsoft.Sql/servers/databases/transparentDataEncryption
  '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults':
    get:
      description: Returns a database's transparent data encryption operation result.
      operationId: TransparentDataEncryptionActivities_ListByConfiguration
      parameters:
        - description: The API version to use for the request.
          in: query
          name: api-version
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The subscription ID that identifies an Azure subscription.
          in: path
          name: subscriptionId
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
          in: path
          name: resourceGroupName
          required: true
          type: string
          x-ms-parameter-location: method
        - $ref: '#/parameters/ServerNameParameter'
        - description: The name of the database for which the transparent data encryption applies.
          in: path
          name: databaseName
          required: true
          type: string
        - $ref: '#/parameters/TransparentDataEncryptionNameParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/TransparentDataEncryptionActivityListResult'
      tags:
        - TransparentDataEncryption
      x-ms-examples:
        List a database's transparent data encryption activities:
          parameters:
            api-version: '2014-04-01'
            databaseName: sqlcrudtest-9187
            resourceGroupName: sqlcrudtest-6852
            serverName: sqlcrudtest-2080
            subscriptionId: 00000000-1111-2222-3333-444444444444
            transparentDataEncryptionName: current
          responses:
            '200':
              body:
                value:
                  - id: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current/operationResults/current
                    location: West US
                    name: current
                    properties:
                      percentComplete: 100
                      status: Encrypting
                    type: Microsoft.Sql/servers/databases/transparentDataEncryption/operationResults
      x-ms-pageable:
        nextLinkName: null
  '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity':
    get:
      description: Returns elastic pool activities.
      operationId: ElasticPoolActivities_ListByElasticPool
      parameters:
        - description: The API version to use for the request.
          in: query
          name: api-version
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The subscription ID that identifies an Azure subscription.
          in: path
          name: subscriptionId
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
          in: path
          name: resourceGroupName
          required: true
          type: string
          x-ms-parameter-location: method
        - $ref: '#/parameters/ServerNameParameter'
        - description: The name of the elastic pool for which to get the current activity.
          in: path
          name: elasticPoolName
          required: true
          type: string
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/ElasticPoolActivityListResult'
      tags:
        - ElasticPools
      x-ms-examples:
        List Elastic pool activity:
          parameters:
            api-version: '2014-04-01'
            elasticPoolName: '8749'
            resourceGroupName: sqlcrudtest-4291
            serverName: sqlcrudtest-6574
            subscriptionId: 00000000-1111-2222-3333-444444444444
          responses:
            '200':
              body:
                value:
                  - id: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4291/providers/Microsoft.Sql/servers/sqlcrudtest-6574/elasticPools/8749/elasticPoolActivity/851f1672-f7f0-46f6-a262-ee9b51e18e97
                    location: Japan East
                    name: 851f1672-f7f0-46f6-a262-ee9b51e18e97
                    properties:
                      elasticPoolName: '8749'
                      endTime: '2017-02-10T02:03:23.263Z'
                      errorCode: null
                      errorMessage: null
                      errorSeverity: null
                      operation: CREATE
                      operationId: 851f1672-f7f0-46f6-a262-ee9b51e18e97
                      percentComplete: 100
                      requestedDatabaseDtuCap: 5
                      requestedDatabaseDtuGuarantee: 0
                      requestedDtuGuarantee: 100
                      requestedElasticPoolName: null
                      requestedStorageLimitInGB: 9
                      requestedStorageLimitInMB: 10000
                      serverName: sqlcrudtest-6574
                      startTime: '2017-02-10T02:03:06.16Z'
                      state: COMPLETED
                    type: Microsoft.Sql/servers/elasticPools/elasticPoolActivity
      x-ms-pageable:
        nextLinkName: null
  '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity':
    get:
      description: Returns activity on databases inside of an elastic pool.
      operationId: ElasticPoolDatabaseActivities_ListByElasticPool
      parameters:
        - description: The API version to use for the request.
          in: query
          name: api-version
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The subscription ID that identifies an Azure subscription.
          in: path
          name: subscriptionId
          required: true
          type: string
          x-ms-parameter-location: client
        - description: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
          in: path
          name: resourceGroupName
          required: true
          type: string
          x-ms-parameter-location: method
        - $ref: '#/parameters/ServerNameParameter'
        - description: The name of the elastic pool.
          in: path
          name: elasticPoolName
          required: true
          type: string
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/ElasticPoolDatabaseActivityListResult'
      tags:
        - ElasticPools
      x-ms-examples:
        List elastic pool database activity:
          parameters:
            api-version: '2014-04-01'
            elasticPoolName: '7537'
            resourceGroupName: sqlcrudtest-4673
            serverName: sqlcrudtest-603
            subscriptionId: 9d4e2ad0-e20b-4464-9219-353bded52513
          responses:
            '200':
              body:
                value:
                  - id: /subscriptions/9d4e2ad0-e20b-4464-9219-353bded52513/resourceGroups/sqlcrudtest-4673/providers/Microsoft.Sql/servers/sqlcrudtest-603/elasticPools/7537/elasticPoolDatabaseActivity/3a3272b3-f1fe-423c-9feb-7b843157eda5
                    location: Japan East
                    name: 3a3272b3-f1fe-423c-9feb-7b843157eda5
                    properties:
                      currentElasticPoolName: '7537'
                      currentServiceObjective: ElasticPool
                      databaseName: '2396'
                      endTime: '2016-10-23T03:08:02.95'
                      errorCode: null
                      errorMessage: null
                      errorSeverity: null
                      operation: UPDATE
                      operationId: 3a3272b3-f1fe-423c-9feb-7b843157eda5
                      percentComplete: 100
                      requestedElasticPoolName: null
                      requestedServiceObjective: null
                      serverName: sqlcrudtest-603
                      startTime: '2016-10-23T03:07:12.577'
                      state: COMPLETED
                    type: Microsoft.Sql/servers/elasticPools/elasticPoolDatabaseActivity
                  - id: /subscriptions/9d4e2ad0-e20b-4464-9219-353bded52513/resourceGroups/sqlcrudtest-4673/providers/Microsoft.Sql/servers/sqlcrudtest-603/elasticPools/7537/elasticPoolDatabaseActivity/95108a78-384e-48d3-b4de-7bf23b93a26d
                    location: Japan East
                    name: 95108a78-384e-48d3-b4de-7bf23b93a26d
                    properties:
                      currentElasticPoolName: '7537'
                      currentServiceObjective: ElasticPool
                      databaseName: '2396'
                      endTime: '2016-10-23T03:06:49.197'
                      errorCode: null
                      errorMessage: null
                      errorSeverity: null
                      operation: CREATE
                      operationId: 95108a78-384e-48d3-b4de-7bf23b93a26d
                      percentComplete: 100
                      requestedElasticPoolName: null
                      requestedServiceObjective: null
                      serverName: sqlcrudtest-603
                      startTime: '2016-10-23T03:06:11.19'
                      state: COMPLETED
                    type: Microsoft.Sql/servers/elasticPools/elasticPoolDatabaseActivity
      x-ms-pageable:
        nextLinkName: null
definitions:
  ElasticPoolActivity:
    allOf:
      - allOf:
          - description: ARM resource.
            properties:
              id:
                description: Resource ID.
                readOnly: true
                type: string
              name:
                description: Resource name.
                readOnly: true
                type: string
              type:
                description: Resource type.
                readOnly: true
                type: string
            type: object
            x-ms-azure-resource: true
        description: ARM proxy resource.
        properties: {}
        type: object
    description: Represents the activity on an elastic pool.
    properties:
      location:
        description: The geo-location where the resource lives
        type: string
        x-ms-mutability:
          - read
          - create
      properties:
        $ref: '#/definitions/ElasticPoolActivityProperties'
        description: The properties representing the resource.
        x-ms-client-flatten: true
  ElasticPoolActivityListResult:
    description: Represents the response to a list elastic pool activity request.
    properties:
      value:
        description: The list of elastic pool activities.
        items:
          $ref: '#/definitions/ElasticPoolActivity'
        type: array
    required:
      - value
  ElasticPoolActivityProperties:
    description: Represents the properties of an elastic pool.
    properties:
      elasticPoolName:
        description: The name of the elastic pool.
        readOnly: true
        type: string
      endTime:
        description: The time the operation finished (ISO8601 format).
        format: date-time
        readOnly: true
        type: string
      errorCode:
        description: The error code if available.
        format: int32
        readOnly: true
        type: integer
      errorMessage:
        description: The error message if available.
        readOnly: true
        type: string
      errorSeverity:
        description: The error severity if available.
        format: int32
        readOnly: true
        type: integer
      operation:
        description: The operation name.
        readOnly: true
        type: string
      operationId:
        description: The unique operation ID.
        format: uuid
        readOnly: true
        type: string
        x-nullable: false
      percentComplete:
        description: The percentage complete if available.
        format: int32
        readOnly: true
        type: integer
      requestedDatabaseDtuCap:
        description: The requested per database DTU cap.
        format: int32
        readOnly: true
        type: integer
      requestedDatabaseDtuGuarantee:
        description: The requested per database DTU guarantee.
        format: int32
        readOnly: true
        type: integer
      requestedDatabaseDtuMax:
        description: The requested max DTU per database if available.
        format: int32
        readOnly: true
        type: integer
      requestedDatabaseDtuMin:
        description: The requested min DTU per database if available.
        format: int32
        readOnly: true
        type: integer
      requestedDtu:
        description: The requested DTU for the pool if available.
        format: int32
        readOnly: true
        type: integer
      requestedDtuGuarantee:
        description: The requested DTU guarantee.
        format: int32
        readOnly: true
        type: integer
      requestedElasticPoolName:
        description: The requested name for the elastic pool if available.
        readOnly: true
        type: string
      requestedStorageLimitInGB:
        description: The requested storage limit for the pool in GB if available.
        format: int64
        readOnly: true
        type: integer
      requestedStorageLimitInMB:
        description: The requested storage limit in MB.
        format: int32
        readOnly: true
        type: integer
      serverName:
        description: The name of the server the elastic pool is in.
        readOnly: true
        type: string
      startTime:
        description: The time the operation started (ISO8601 format).
        format: date-time
        readOnly: true
        type: string
      state:
        description: The current state of the operation.
        readOnly: true
        type: string
  ElasticPoolDatabaseActivity:
    allOf:
      - allOf:
          - description: ARM resource.
            properties:
              id:
                description: Resource ID.
                readOnly: true
                type: string
              name:
                description: Resource name.
                readOnly: true
                type: string
              type:
                description: Resource type.
                readOnly: true
                type: string
            type: object
            x-ms-azure-resource: true
        description: ARM proxy resource.
        properties: {}
        type: object
    description: Represents the activity on an elastic pool.
    properties:
      location:
        description: The geo-location where the resource lives
        type: string
        x-ms-mutability:
          - read
          - create
      properties:
        $ref: '#/definitions/ElasticPoolDatabaseActivityProperties'
        description: The properties representing the resource.
        x-ms-client-flatten: true
  ElasticPoolDatabaseActivityListResult:
    description: Represents the response to a list elastic pool database activity request.
    properties:
      value:
        description: The list of elastic pool database activities.
        items:
          $ref: '#/definitions/ElasticPoolDatabaseActivity'
        type: array
    required:
      - value
  ElasticPoolDatabaseActivityProperties:
    description: Represents the properties of an elastic pool database activity.
    properties:
      currentElasticPoolName:
        description: The name of the current elastic pool the database is in if available.
        readOnly: true
        type: string
      currentServiceObjective:
        description: The name of the current service objective if available.
        readOnly: true
        type: string
      databaseName:
        description: The database name.
        readOnly: true
        type: string
      endTime:
        description: The time the operation finished (ISO8601 format).
        format: date-time
        readOnly: true
        type: string
      errorCode:
        description: The error code if available.
        format: int32
        readOnly: true
        type: integer
      errorMessage:
        description: The error message if available.
        readOnly: true
        type: string
      errorSeverity:
        description: The error severity if available.
        format: int32
        readOnly: true
        type: integer
      operation:
        description: The operation name.
        readOnly: true
        type: string
      operationId:
        description: The unique operation ID.
        format: uuid
        readOnly: true
        type: string
        x-nullable: false
      percentComplete:
        description: The percentage complete if available.
        format: int32
        readOnly: true
        type: integer
      requestedElasticPoolName:
        description: The name for the elastic pool the database is moving into if available.
        readOnly: true
        type: string
      requestedServiceObjective:
        description: The name of the requested service objective if available.
        readOnly: true
        type: string
      serverName:
        description: The name of the server the elastic pool is in.
        readOnly: true
        type: string
      startTime:
        description: The time the operation started (ISO8601 format).
        format: date-time
        readOnly: true
        type: string
      state:
        description: The current state of the operation.
        readOnly: true
        type: string
  OperationImpact:
    description: 'The impact of an operation, both in absolute and relative terms.'
    properties:
      changeValueAbsolute:
        description: The absolute impact to dimension.
        format: double
        readOnly: true
        type: number
      changeValueRelative:
        description: The relative impact to dimension (null if not applicable)
        format: double
        readOnly: true
        type: number
      name:
        description: The name of the impact dimension.
        readOnly: true
        type: string
      unit:
        description: The unit in which estimated impact to dimension is measured.
        readOnly: true
        type: string
  RecommendedIndex:
    allOf:
      - allOf:
          - description: ARM resource.
            properties:
              id:
                description: Resource ID.
                readOnly: true
                type: string
              name:
                description: Resource name.
                readOnly: true
                type: string
              type:
                description: Resource type.
                readOnly: true
                type: string
            type: object
            x-ms-azure-resource: true
        description: ARM proxy resource.
        properties: {}
        type: object
    description: Represents a database recommended index.
    properties:
      properties:
        $ref: '#/definitions/RecommendedIndexProperties'
        description: The properties representing the resource.
        readOnly: true
        x-ms-client-flatten: true
  RecommendedIndexProperties:
    description: Represents the properties of a database recommended index.
    properties:
      action:
        description: 'The proposed index action. You can create a missing index, drop an unused index, or rebuild an existing index to improve its performance.'
        enum:
          - Create
          - Drop
          - Rebuild
        readOnly: true
        type: string
        x-ms-enum:
          name: RecommendedIndexAction
      columns:
        description: Columns over which to build index
        items:
          type: string
        readOnly: true
        type: array
      created:
        description: The UTC datetime showing when this resource was created (ISO8601 format).
        format: date-time
        readOnly: true
        type: string
      estimatedImpact:
        description: The estimated impact of doing recommended index action.
        items:
          $ref: '#/definitions/OperationImpact'
        readOnly: true
        type: array
      includedColumns:
        description: The list of column names to be included in the index
        items:
          type: string
        readOnly: true
        type: array
      indexScript:
        description: The full build index script
        readOnly: true
        type: string
      indexType:
        description: 'The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE)'
        enum:
          - CLUSTERED
          - NONCLUSTERED
          - COLUMNSTORE
          - CLUSTERED COLUMNSTORE
        readOnly: true
        type: string
        x-ms-enum:
          name: RecommendedIndexType
      lastModified:
        description: The UTC datetime of when was this resource last changed (ISO8601 format).
        format: date-time
        readOnly: true
        type: string
      reportedImpact:
        description: The values reported after index action is complete.
        items:
          $ref: '#/definitions/OperationImpact'
        readOnly: true
        type: array
      schema:
        description: The schema where table to build index over resides
        readOnly: true
        type: string
      state:
        description: The current recommendation state.
        enum:
          - Active
          - Pending
          - Executing
          - Verifying
          - Pending Revert
          - Reverting
          - Reverted
          - Ignored
          - Expired
          - Blocked
          - Success
        readOnly: true
        type: string
        x-ms-enum:
          name: RecommendedIndexState
      table:
        description: The table on which to build index.
        readOnly: true
        type: string
  ServiceTierAdvisor:
    allOf:
      - allOf:
          - description: ARM resource.
            properties:
              id:
                description: Resource ID.
                readOnly: true
                type: string
              name:
                description: Resource name.
                readOnly: true
                type: string
              type:
                description: Resource type.
                readOnly: true
                type: string
            type: object
            x-ms-azure-resource: true
        description: ARM proxy resource.
        properties: {}
        type: object
    description: Represents a Service Tier Advisor.
    properties:
      properties:
        $ref: '#/definitions/ServiceTierAdvisorProperties'
        description: The properties representing the resource.
        readOnly: true
        x-ms-client-flatten: true
  ServiceTierAdvisorListResult:
    description: Represents the response to a list service tier advisor request.
    properties:
      value:
        description: The list of service tier advisors for specified database.
        items:
          $ref: '#/definitions/ServiceTierAdvisor'
        type: array
    required:
      - value
  ServiceTierAdvisorProperties:
    description: Represents the properties of a Service Tier Advisor.
    properties:
      activeTimeRatio:
        description: The activeTimeRatio for service tier advisor.
        format: double
        readOnly: true
        type: number
      avgDtu:
        description: Gets or sets avgDtu for service tier advisor.
        format: double
        readOnly: true
        type: number
      confidence:
        description: Gets or sets confidence for service tier advisor.
        format: double
        readOnly: true
        type: number
        x-nullable: false
      currentServiceLevelObjective:
        description: Gets or sets currentServiceLevelObjective for service tier advisor.
        readOnly: true
        type: string
      currentServiceLevelObjectiveId:
        description: Gets or sets currentServiceLevelObjectiveId for service tier advisor.
        format: uuid
        readOnly: true
        type: string
      databaseSizeBasedRecommendationServiceLevelObjective:
        description: Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for service tier advisor.
        readOnly: true
        type: string
      databaseSizeBasedRecommendationServiceLevelObjectiveId:
        description: Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for service tier advisor.
        format: uuid
        readOnly: true
        type: string
      disasterPlanBasedRecommendationServiceLevelObjective:
        description: Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for service tier advisor.
        readOnly: true
        type: string
      disasterPlanBasedRecommendationServiceLevelObjectiveId:
        description: Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for service tier advisor.
        format: uuid
        readOnly: true
        type: string
      maxDtu:
        description: Gets or sets maxDtu for service tier advisor.
        format: double
        readOnly: true
        type: number
      maxSizeInGB:
        description: Gets or sets maxSizeInGB for service tier advisor.
        format: double
        readOnly: true
        type: number
      minDtu:
        description: Gets or sets minDtu for service tier advisor.
        format: double
        readOnly: true
        type: number
      observationPeriodEnd:
        description: The observation period start (ISO8601 format).
        format: date-time
        readOnly: true
        type: string
      observationPeriodStart:
        description: The observation period start (ISO8601 format).
        format: date-time
        readOnly: true
        type: string
      overallRecommendationServiceLevelObjective:
        description: Gets or sets overallRecommendationServiceLevelObjective for service tier advisor.
        readOnly: true
        type: string
      overallRecommendationServiceLevelObjectiveId:
        description: Gets or sets overallRecommendationServiceLevelObjectiveId for service tier advisor.
        format: uuid
        readOnly: true
        type: string
      serviceLevelObjectiveUsageMetrics:
        description: Gets or sets serviceLevelObjectiveUsageMetrics for the service tier advisor.
        items:
          $ref: '#/definitions/SloUsageMetric'
        readOnly: true
        type: array
      usageBasedRecommendationServiceLevelObjective:
        description: Gets or sets usageBasedRecommendationServiceLevelObjective for service tier advisor.
        readOnly: true
        type: string
      usageBasedRecommendationServiceLevelObjectiveId:
        description: Gets or sets usageBasedRecommendationServiceLevelObjectiveId for service tier advisor.
        format: uuid
        readOnly: true
        type: string
  SloUsageMetric:
    description: A Slo Usage Metric.
    properties:
      inRangeTimeRatio:
        description: Gets or sets inRangeTimeRatio for SLO usage metric.
        format: double
        readOnly: true
        type: number
        x-nullable: false
      serviceLevelObjective:
        description: The serviceLevelObjective for SLO usage metric.
        enum:
          - System
          - System0
          - System1
          - System2
          - System3
          - System4
          - System2L
          - System3L
          - System4L
          - Free
          - Basic
          - S0
          - S1
          - S2
          - S3
          - S4
          - S6
          - S7
          - S9
          - S12
          - P1
          - P2
          - P3
          - P4
          - P6
          - P11
          - P15
          - PRS1
          - PRS2
          - PRS4
          - PRS6
          - DW100
          - DW200
          - DW300
          - DW400
          - DW500
          - DW600
          - DW1000
          - DW1200
          - DW1000c
          - DW1500
          - DW1500c
          - DW2000
          - DW2000c
          - DW3000
          - DW2500c
          - DW3000c
          - DW6000
          - DW5000c
          - DW6000c
          - DW7500c
          - DW10000c
          - DW15000c
          - DW30000c
          - DS100
          - DS200
          - DS300
          - DS400
          - DS500
          - DS600
          - DS1000
          - DS1200
          - DS1500
          - DS2000
          - ElasticPool
        readOnly: true
        type: string
        x-ms-enum:
          modelAsString: true
          name: ServiceObjectiveName
      serviceLevelObjectiveId:
        description: The serviceLevelObjectiveId for SLO usage metric.
        format: uuid
        readOnly: true
        type: string
        x-nullable: false
  TransparentDataEncryption:
    allOf:
      - allOf:
          - description: ARM resource.
            properties:
              id:
                description: Resource ID.
                readOnly: true
                type: string
              name:
                description: Resource name.
                readOnly: true
                type: string
              type:
                description: Resource type.
                readOnly: true
                type: string
            type: object
            x-ms-azure-resource: true
        description: ARM proxy resource.
        properties: {}
        type: object
    description: Represents a database transparent data encryption configuration.
    properties:
      location:
        description: Resource location.
        readOnly: true
        type: string
      properties:
        $ref: '#/definitions/TransparentDataEncryptionProperties'
        description: Represents the properties of the resource.
        x-ms-client-flatten: true
  TransparentDataEncryptionActivity:
    allOf:
      - allOf:
          - description: ARM resource.
            properties:
              id:
                description: Resource ID.
                readOnly: true
                type: string
              name:
                description: Resource name.
                readOnly: true
                type: string
              type:
                description: Resource type.
                readOnly: true
                type: string
            type: object
            x-ms-azure-resource: true
        description: ARM proxy resource.
        properties: {}
        type: object
    description: Represents a database transparent data encryption Scan.
    properties:
      location:
        description: Resource location.
        readOnly: true
        type: string
      properties:
        $ref: '#/definitions/TransparentDataEncryptionActivityProperties'
        description: Represents the properties of the resource.
        x-ms-client-flatten: true
  TransparentDataEncryptionActivityListResult:
    description: Represents the response to a list database transparent data encryption activity request.
    properties:
      value:
        description: The list of database transparent data encryption activities.
        items:
          $ref: '#/definitions/TransparentDataEncryptionActivity'
        type: array
    required:
      - value
  TransparentDataEncryptionActivityProperties:
    description: Represents the properties of a database transparent data encryption Scan.
    properties:
      percentComplete:
        description: The percent complete of the transparent data encryption scan for a database.
        format: float
        readOnly: true
        type: number
      status:
        description: The status of the database.
        enum:
          - Encrypting
          - Decrypting
        readOnly: true
        type: string
        x-ms-enum:
          modelAsString: true
          name: TransparentDataEncryptionActivityStatus
  TransparentDataEncryptionProperties:
    description: Represents the properties of a database transparent data encryption.
    properties:
      status:
        description: The status of the database transparent data encryption.
        enum:
          - Enabled
          - Disabled
        type: string
        x-ms-enum:
          name: TransparentDataEncryptionStatus

{'repo_name': 'APIs-guru/openapi-directory', 'stars': '2011', 'repo_language': 'JavaScript', 'file_name': 'https%3A%2F%2Fapi.clarify.io%2Fapi-docs.yaml', 'mime_type': 'text/plain', 'hash': 6975568148331279046, 'source_dataset': 'data'}


/*
 * Copyright 2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.data.mongodb.repository.query;

import kotlin.coroutines.Continuation;
import org.springframework.core.MethodParameter;
import org.springframework.core.ParameterNameDiscoverer;
import org.springframework.lang.Nullable;

import java.lang.reflect.Constructor;
import java.lang.reflect.Method;

public class CoroutineMongoParameters extends MongoParameters {
    public CoroutineMongoParameters(Method method, boolean isGeoNearMethod) {
        super(method, isGeoNearMethod);
    }

    @Override
    protected MongoParameter createParameter(MethodParameter parameter) {
        if (parameter.getParameterType() == Continuation.class) {
            parameter.initParameterNameDiscovery(new ParameterNameDiscoverer() {
                @Nullable
                @Override
                public String[] getParameterNames(Method method) {
                    final String[] names = new String[parameter.getParameterIndex() + 1];
                    names[parameter.getParameterIndex()] = "__continuation__";
                    return names;
                }

                @Nullable
                @Override
                public String[] getParameterNames(Constructor<?> ctor) {
                    return new String[0];
                }
            });
        }

        return super.createParameter(parameter);
    }
}

{'repo_name': 'konrad-kaminski/spring-kotlin-coroutine', 'stars': '346', 'repo_language': 'Kotlin', 'file_name': 'WebConfiguration.groovy', 'mime_type': 'text/x-c++', 'hash': 6868432641329631421, 'source_dataset': 'data'}


<?php
/**
 * Themes exceptions
 *
 * @package Infinitas.Themes.Error
 */

/**
 * ThemesException
 *
 * @package Infinitas.Themes.Error
 */
class ThemesException extends InfinitasException {

}

/**
 * NoThemeConfiguredException
 *
 * @package Infinitas.Themes.Error
 */
class NoThemeConfiguredException extends ThemesException {
/**
 * Template string that has attributes sprintf()'ed into it.
 *
 * @var string
 */
	protected $_messageTemplate = 'There does not seem to be a theme configured.';

}

/**
 * NoThemeSelectedException
 *
 * @package Infinitas.Themes.Error
 */
class NoThemeSelectedException extends ThemesException {
/**
 * Template string that has attributes sprintf()'ed into it.
 *
 * @var string
 */
	protected $_messageTemplate = 'A theme type has not been selected.';

}

/**
 * ThemesConfigurationException
 *
 * @package Infinitas.Themes.Error
 */
class ThemesConfigurationException extends ThemesException {

}

{'repo_name': 'infinitas/infinitas', 'stars': '124', 'repo_language': 'PHP', 'file_name': 'cherokee.conf', 'mime_type': 'text/plain', 'hash': 2272725780700085763, 'source_dataset': 'data'}


/**
 * This file is copyright 2017 State of the Netherlands (Ministry of Interior Affairs and Kingdom Relations).
 * It is made available under the terms of the GNU Affero General Public License, version 3 as published by the Free Software Foundation.
 * The project of which this file is part, may be found at https://github.com/MinBZK/operatieBRP.
 */

package nl.bzk.brp.model.data.brm;

import org.springframework.roo.addon.dod.RooDataOnDemand;

@RooDataOnDemand(entity = Srtregel.class)
public class SrtregelDataOnDemand {
}

{'repo_name': 'MinBZK/OperatieBRP', 'stars': '121', 'repo_language': 'None', 'file_name': 'BerichtenDaoTest.java', 'mime_type': 'text/plain', 'hash': -8544976535935597400, 'source_dataset': 'data'}


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

// Constants that were deprecated or moved to enums in the FreeBSD headers. Keep
// them here for backwards compatibility.

package unix

const (
	DLT_HHDLC                         = 0x79
	IFF_SMART                         = 0x20
	IFT_1822                          = 0x2
	IFT_A12MPPSWITCH                  = 0x82
	IFT_AAL2                          = 0xbb
	IFT_AAL5                          = 0x31
	IFT_ADSL                          = 0x5e
	IFT_AFLANE8023                    = 0x3b
	IFT_AFLANE8025                    = 0x3c
	IFT_ARAP                          = 0x58
	IFT_ARCNET                        = 0x23
	IFT_ARCNETPLUS                    = 0x24
	IFT_ASYNC                         = 0x54
	IFT_ATM                           = 0x25
	IFT_ATMDXI                        = 0x69
	IFT_ATMFUNI                       = 0x6a
	IFT_ATMIMA                        = 0x6b
	IFT_ATMLOGICAL                    = 0x50
	IFT_ATMRADIO                      = 0xbd
	IFT_ATMSUBINTERFACE               = 0x86
	IFT_ATMVCIENDPT                   = 0xc2
	IFT_ATMVIRTUAL                    = 0x95
	IFT_BGPPOLICYACCOUNTING           = 0xa2
	IFT_BSC                           = 0x53
	IFT_CCTEMUL                       = 0x3d
	IFT_CEPT                          = 0x13
	IFT_CES                           = 0x85
	IFT_CHANNEL                       = 0x46
	IFT_CNR                           = 0x55
	IFT_COFFEE                        = 0x84
	IFT_COMPOSITELINK                 = 0x9b
	IFT_DCN                           = 0x8d
	IFT_DIGITALPOWERLINE              = 0x8a
	IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
	IFT_DLSW                          = 0x4a
	IFT_DOCSCABLEDOWNSTREAM           = 0x80
	IFT_DOCSCABLEMACLAYER             = 0x7f
	IFT_DOCSCABLEUPSTREAM             = 0x81
	IFT_DS0                           = 0x51
	IFT_DS0BUNDLE                     = 0x52
	IFT_DS1FDL                        = 0xaa
	IFT_DS3                           = 0x1e
	IFT_DTM                           = 0x8c
	IFT_DVBASILN                      = 0xac
	IFT_DVBASIOUT                     = 0xad
	IFT_DVBRCCDOWNSTREAM              = 0x93
	IFT_DVBRCCMACLAYER                = 0x92
	IFT_DVBRCCUPSTREAM                = 0x94
	IFT_ENC                           = 0xf4
	IFT_EON                           = 0x19
	IFT_EPLRS                         = 0x57
	IFT_ESCON                         = 0x49
	IFT_ETHER                         = 0x6
	IFT_FAITH                         = 0xf2
	IFT_FAST                          = 0x7d
	IFT_FASTETHER                     = 0x3e
	IFT_FASTETHERFX                   = 0x45
	IFT_FDDI                          = 0xf
	IFT_FIBRECHANNEL                  = 0x38
	IFT_FRAMERELAYINTERCONNECT        = 0x3a
	IFT_FRAMERELAYMPI                 = 0x5c
	IFT_FRDLCIENDPT                   = 0xc1
	IFT_FRELAY                        = 0x20
	IFT_FRELAYDCE                     = 0x2c
	IFT_FRF16MFRBUNDLE                = 0xa3
	IFT_FRFORWARD                     = 0x9e
	IFT_G703AT2MB                     = 0x43
	IFT_G703AT64K                     = 0x42
	IFT_GIF                           = 0xf0
	IFT_GIGABITETHERNET               = 0x75
	IFT_GR303IDT                      = 0xb2
	IFT_GR303RDT                      = 0xb1
	IFT_H323GATEKEEPER                = 0xa4
	IFT_H323PROXY                     = 0xa5
	IFT_HDH1822                       = 0x3
	IFT_HDLC                          = 0x76
	IFT_HDSL2                         = 0xa8
	IFT_HIPERLAN2                     = 0xb7
	IFT_HIPPI                         = 0x2f
	IFT_HIPPIINTERFACE                = 0x39
	IFT_HOSTPAD                       = 0x5a
	IFT_HSSI                          = 0x2e
	IFT_HY                            = 0xe
	IFT_IBM370PARCHAN                 = 0x48
	IFT_IDSL                          = 0x9a
	IFT_IEEE80211                     = 0x47
	IFT_IEEE80212                     = 0x37
	IFT_IEEE8023ADLAG                 = 0xa1
	IFT_IFGSN                         = 0x91
	IFT_IMT                           = 0xbe
	IFT_INTERLEAVE                    = 0x7c
	IFT_IP                            = 0x7e
	IFT_IPFORWARD                     = 0x8e
	IFT_IPOVERATM                     = 0x72
	IFT_IPOVERCDLC                    = 0x6d
	IFT_IPOVERCLAW                    = 0x6e
	IFT_IPSWITCH                      = 0x4e
	IFT_IPXIP                         = 0xf9
	IFT_ISDN                          = 0x3f
	IFT_ISDNBASIC                     = 0x14
	IFT_ISDNPRIMARY                   = 0x15
	IFT_ISDNS                         = 0x4b
	IFT_ISDNU                         = 0x4c
	IFT_ISO88022LLC                   = 0x29
	IFT_ISO88023                      = 0x7
	IFT_ISO88024                      = 0x8
	IFT_ISO88025                      = 0x9
	IFT_ISO88025CRFPINT               = 0x62
	IFT_ISO88025DTR                   = 0x56
	IFT_ISO88025FIBER                 = 0x73
	IFT_ISO88026                      = 0xa
	IFT_ISUP                          = 0xb3
	IFT_L3IPXVLAN                     = 0x89
	IFT_LAPB                          = 0x10
	IFT_LAPD                          = 0x4d
	IFT_LAPF                          = 0x77
	IFT_LOCALTALK                     = 0x2a
	IFT_LOOP                          = 0x18
	IFT_MEDIAMAILOVERIP               = 0x8b
	IFT_MFSIGLINK                     = 0xa7
	IFT_MIOX25                        = 0x26
	IFT_MODEM                         = 0x30
	IFT_MPC                           = 0x71
	IFT_MPLS                          = 0xa6
	IFT_MPLSTUNNEL                    = 0x96
	IFT_MSDSL                         = 0x8f
	IFT_MVL                           = 0xbf
	IFT_MYRINET                       = 0x63
	IFT_NFAS                          = 0xaf
	IFT_NSIP                          = 0x1b
	IFT_OPTICALCHANNEL                = 0xc3
	IFT_OPTICALTRANSPORT              = 0xc4
	IFT_OTHER                         = 0x1
	IFT_P10                           = 0xc
	IFT_P80                           = 0xd
	IFT_PARA                          = 0x22
	IFT_PFLOG                         = 0xf6
	IFT_PFSYNC                        = 0xf7
	IFT_PLC                           = 0xae
	IFT_POS                           = 0xab
	IFT_PPPMULTILINKBUNDLE            = 0x6c
	IFT_PROPBWAP2MP                   = 0xb8
	IFT_PROPCNLS                      = 0x59
	IFT_PROPDOCSWIRELESSDOWNSTREAM    = 0xb5
	IFT_PROPDOCSWIRELESSMACLAYER      = 0xb4
	IFT_PROPDOCSWIRELESSUPSTREAM      = 0xb6
	IFT_PROPMUX                       = 0x36
	IFT_PROPWIRELESSP2P               = 0x9d
	IFT_PTPSERIAL                     = 0x16
	IFT_PVC                           = 0xf1
	IFT_QLLC                          = 0x44
	IFT_RADIOMAC                      = 0xbc
	IFT_RADSL                         = 0x5f
	IFT_REACHDSL                      = 0xc0
	IFT_RFC1483                       = 0x9f
	IFT_RS232                         = 0x21
	IFT_RSRB                          = 0x4f
	IFT_SDLC                          = 0x11
	IFT_SDSL                          = 0x60
	IFT_SHDSL                         = 0xa9
	IFT_SIP                           = 0x1f
	IFT_SLIP                          = 0x1c
	IFT_SMDSDXI                       = 0x2b
	IFT_SMDSICIP                      = 0x34
	IFT_SONET                         = 0x27
	IFT_SONETOVERHEADCHANNEL          = 0xb9
	IFT_SONETPATH                     = 0x32
	IFT_SONETVT                       = 0x33
	IFT_SRP                           = 0x97
	IFT_SS7SIGLINK                    = 0x9c
	IFT_STACKTOSTACK                  = 0x6f
	IFT_STARLAN                       = 0xb
	IFT_STF                           = 0xd7
	IFT_T1                            = 0x12
	IFT_TDLC                          = 0x74
	IFT_TERMPAD                       = 0x5b
	IFT_TR008                         = 0xb0
	IFT_TRANSPHDLC                    = 0x7b
	IFT_TUNNEL                        = 0x83
	IFT_ULTRA                         = 0x1d
	IFT_USB                           = 0xa0
	IFT_V11                           = 0x40
	IFT_V35                           = 0x2d
	IFT_V36                           = 0x41
	IFT_V37                           = 0x78
	IFT_VDSL                          = 0x61
	IFT_VIRTUALIPADDRESS              = 0x70
	IFT_VOICEEM                       = 0x64
	IFT_VOICEENCAP                    = 0x67
	IFT_VOICEFXO                      = 0x65
	IFT_VOICEFXS                      = 0x66
	IFT_VOICEOVERATM                  = 0x98
	IFT_VOICEOVERFRAMERELAY           = 0x99
	IFT_VOICEOVERIP                   = 0x68
	IFT_X213                          = 0x5d
	IFT_X25                           = 0x5
	IFT_X25DDN                        = 0x4
	IFT_X25HUNTGROUP                  = 0x7a
	IFT_X25MLP                        = 0x79
	IFT_X25PLE                        = 0x28
	IFT_XETHER                        = 0x1a
	IPPROTO_MAXID                     = 0x34
	IPV6_FAITH                        = 0x1d
	IPV6_MIN_MEMBERSHIPS              = 0x1f
	IP_FAITH                          = 0x16
	IP_MAX_SOURCE_FILTER              = 0x400
	IP_MIN_MEMBERSHIPS                = 0x1f
	MAP_NORESERVE                     = 0x40
	MAP_RENAME                        = 0x20
	NET_RT_MAXID                      = 0x6
	RTF_PRCLONING                     = 0x10000
	RTM_OLDADD                        = 0x9
	RTM_OLDDEL                        = 0xa
	RT_CACHING_CONTEXT                = 0x1
	RT_NORTREF                        = 0x2
	SIOCADDRT                         = 0x8030720a
	SIOCALIFADDR                      = 0x8118691b
	SIOCDELRT                         = 0x8030720b
	SIOCDLIFADDR                      = 0x8118691d
	SIOCGLIFADDR                      = 0xc118691c
	SIOCGLIFPHYADDR                   = 0xc118694b
	SIOCSLIFPHYADDR                   = 0x8118694a
)

{'repo_name': 'docker/docker-ce', 'stars': '4545', 'repo_language': 'Go', 'file_name': 'docker_windows.go', 'mime_type': 'text/plain', 'hash': -8449628486244975783, 'source_dataset': 'data'}


<?php

declare(strict_types=1);

/*
 * This file is part of the GeckoPackages.
 *
 * (c) GeckoPackages https://github.com/GeckoPackages
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace GeckoPackages\PHPUnit\Constraints;

use PHPUnit\Framework\Constraint\Constraint;

/**
 * Test if given value is a string and a symlink and points to a file or directory that exists.
 *
 * @see file_exists() is used for testing if the target exits
 *
 * @api
 *
 * @author SpacePossum
 */
final class FileIsValidLinkConstraint extends Constraint
{
    /**
     * {@inheritdoc}
     */
    protected function matches($other)
    {
        return is_string($other) && is_link($other) && file_exists($other);
    }

    /**
     * {@inheritdoc}
     */
    protected function failureDescription($other)
    {
        if (is_object($other)) {
            $type = sprintf('%s#%s', get_class($other), method_exists($other, '__toString') ? $other->__toString() : '');
        } elseif (null === $other) {
            $type = 'null';
        } elseif (!is_string($other)) {
            $type = gettype($other).'#'.$other;
        } elseif (!file_exists($other)) {
            if (is_link($other)) {
                $type = 'link#'.$other;
            } else {
                $type = 'string#'.$other;
            }
        } elseif (is_dir($other)) {
            $type = 'directory#'.$other;
        } elseif (is_file($other)) {
            $type = 'file#'.$other;
        } else { // is string, not dir, not file, not link, should never be reached
            $type = 'string#'.$other;
        }

        return $type.' '.$this->toString();
    }

    /**
     * {@inheritdoc}
     */
    public function toString()
    {
        return 'is a valid link';
    }
}

{'repo_name': 'GeckoPackages/GeckoPHPUnit', 'stars': '145', 'repo_language': 'PHP', 'file_name': 'test_file.txt', 'mime_type': 'text/plain', 'hash': 4829528906719316031, 'source_dataset': 'data'}


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
			  xmlns:app="http://schemas.android.com/apk/res-auto"
			  android:orientation="vertical"
			  android:layout_width="match_parent"
			  android:layout_height="match_parent">

	<com.youngmanster.collectionlibrary.customview.tablayout.OutSideFrameTabLayout
		android:id="@+id/customTabView"
		app:tab_tabTextColor="@color/black"
		app:tab_tabSelectedTextColor="@color/colorPrimary"
		app:tab_tabTextSize="14sp"
		app:tab_width="80dp"
		android:layout_width="wrap_content"
		android:layout_height="40dp"
		app:tab_indicator_corner="20dp"
		android:layout_gravity="center_horizontal"
		android:layout_marginTop="10dp"
		app:tab_bar_stroke_color="#F6CE59"
		app:tab_bar_color="#FFFFFF"
		app:tab_tabIndicatorColor="#F6CE59"
		app:tab_indicator_marginLeft="2dp"
		app:tab_indicator_marginBottom="2dp"
		app:tab_indicator_marginRight="2dp"
		app:tab_indicator_marginTop="2dp"
		app:tab_padding="10dp"/>

	<android.support.v4.view.ViewPager

		android:id="@+id/viewPager"
		android:layout_width="match_parent"
		android:layout_height="match_parent"/>

</LinearLayout>

{'repo_name': 'usernameyangyan/Collection-Android', 'stars': '202', 'repo_language': 'Java', 'file_name': 'MainActivityTest.java', 'mime_type': 'text/x-java', 'hash': 676553177005173197, 'source_dataset': 'data'}


<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup>
    <Filter Include="Common Sources">
      <UniqueIdentifier>{A6A5C30D-BDB6-5050-906D-10A96065136C}</UniqueIdentifier>
    </Filter>
    <Filter Include="MSW Sources">
      <UniqueIdentifier>{D030D8C2-53EE-5B96-8F89-D78157B06140}</UniqueIdentifier>
    </Filter>
    <Filter Include="Setup Headers">
      <UniqueIdentifier>{63537534-1833-5C1F-8DBD-359A84F294C8}</UniqueIdentifier>
    </Filter>
    <Filter Include="MSW Headers">
      <UniqueIdentifier>{5AFFF20E-29F9-512B-B80A-7DC45976CDAC}</UniqueIdentifier>
    </Filter>
    <Filter Include="Common Headers">
      <UniqueIdentifier>{8C07E926-65B0-5F00-B0D6-7F40DA69BB25}</UniqueIdentifier>
    </Filter>
    <Filter Include="Source Files">
      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
    </Filter>
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="..\..\src\common\dummy.cpp">
      <Filter>Common Sources</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\propgrid\advprops.cpp">
      <Filter>Source Files</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\propgrid\editors.cpp">
      <Filter>Source Files</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\propgrid\manager.cpp">
      <Filter>Source Files</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\propgrid\property.cpp">
      <Filter>Source Files</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\propgrid\propgrid.cpp">
      <Filter>Source Files</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\propgrid\propgridiface.cpp">
      <Filter>Source Files</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\propgrid\propgridpagestate.cpp">
      <Filter>Source Files</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\propgrid\props.cpp">
      <Filter>Source Files</Filter>
    </ClCompile>
  </ItemGroup>
  <ItemGroup>
    <ResourceCompile Include="..\..\src\msw\version.rc">
      <Filter>MSW Sources</Filter>
    </ResourceCompile>
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="..\..\include\wx\propgrid\advprops.h">
      <Filter>Common Headers</Filter>
    </ClInclude>
    <ClInclude Include="..\..\include\wx\propgrid\editors.h">
      <Filter>Common Headers</Filter>
    </ClInclude>
    <ClInclude Include="..\..\include\wx\propgrid\manager.h">
      <Filter>Common Headers</Filter>
    </ClInclude>
    <ClInclude Include="..\..\include\wx\propgrid\property.h">
      <Filter>Common Headers</Filter>
    </ClInclude>
    <ClInclude Include="..\..\include\wx\propgrid\propgrid.h">
      <Filter>Common Headers</Filter>
    </ClInclude>
    <ClInclude Include="..\..\include\wx\propgrid\propgriddefs.h">
      <Filter>Common Headers</Filter>
    </ClInclude>
    <ClInclude Include="..\..\include\wx\propgrid\propgridiface.h">
      <Filter>Common Headers</Filter>
    </ClInclude>
    <ClInclude Include="..\..\include\wx\propgrid\propgridpagestate.h">
      <Filter>Common Headers</Filter>
    </ClInclude>
    <ClInclude Include="..\..\include\wx\propgrid\props.h">
      <Filter>Common Headers</Filter>
    </ClInclude>
  </ItemGroup>
  <ItemGroup>
    <CustomBuild Include="..\..\include\wx\msw\setup.h">
      <Filter>Setup Headers</Filter>
    </CustomBuild>
    <CustomBuild Include="..\..\include\wx\msw\genrcdefs.h">
      <Filter>MSW Headers</Filter>
    </CustomBuild>
  </ItemGroup>
</Project>

{'repo_name': 'fossephate/JoyCon-Driver', 'stars': '702', 'repo_language': 'C++', 'file_name': 'toolbar.h', 'mime_type': 'text/x-c++', 'hash': 6256620896892885423, 'source_dataset': 'data'}


.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
.TH "gnutls_ocsp_resp_get_produced" 3 "3.6.13" "gnutls" "gnutls"
.SH NAME
gnutls_ocsp_resp_get_produced \- API function
.SH SYNOPSIS
.B #include <gnutls/ocsp.h>
.sp
.BI "time_t gnutls_ocsp_resp_get_produced(gnutls_ocsp_resp_const_t " resp ");"
.SH ARGUMENTS
.IP "gnutls_ocsp_resp_const_t resp" 12
should contain a \fBgnutls_ocsp_resp_t\fP type
.SH "DESCRIPTION"
This function will return the time when the OCSP response was
signed.
.SH "RETURNS"
signing time, or (time_t)\-1 on error.
.SH "REPORTING BUGS"
Report bugs to <bugs@gnutls.org>.
.br
Home page: https://www.gnutls.org

.SH COPYRIGHT
Copyright \(co 2001-2020 Free Software Foundation, Inc., and others.
.br
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
.SH "SEE ALSO"
The full documentation for
.B gnutls
is maintained as a Texinfo manual.
If the /usr/share/doc/gnutls/
directory does not contain the HTML form visit
.B
.IP https://www.gnutls.org/manual/
.PP

{'repo_name': 'tanersener/mobile-ffmpeg', 'stars': '1841', 'repo_language': 'C', 'file_name': 'SDL_naclvideo.h', 'mime_type': 'text/x-c', 'hash': 94212357171902525, 'source_dataset': 'data'}


CodeCommit GitHub Bitbucket GitHubEnterpriseServer

Associated Associating Failed Disassociating

{'repo_name': 'aws/aws-sdk-ruby', 'stars': '3134', 'repo_language': 'Ruby', 'file_name': 'changelog.rake', 'mime_type': 'text/plain', 'hash': -3861167626587041854, 'source_dataset': 'data'}


'use strict';

const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
const evalSourceMapMiddleware = require('react-dev-utils/evalSourceMapMiddleware');
const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware');
const ignoredFiles = require('react-dev-utils/ignoredFiles');
const paths = require('./paths');
const fs = require('fs');

const protocol = process.env.HTTPS === 'true' ? 'https' : 'http';
const host = process.env.HOST || '0.0.0.0';

module.exports = function(proxy, allowedHost) {
  return {
    // WebpackDevServer 2.4.3 introduced a security fix that prevents remote
    // websites from potentially accessing local content through DNS rebinding:
    // https://github.com/webpack/webpack-dev-server/issues/887
    // https://medium.com/webpack/webpack-dev-server-middleware-security-issues-1489d950874a
    // However, it made several existing use cases such as development in cloud
    // environment or subdomains in development significantly more complicated:
    // https://github.com/facebook/create-react-app/issues/2271
    // https://github.com/facebook/create-react-app/issues/2233
    // While we're investigating better solutions, for now we will take a
    // compromise. Since our WDS configuration only serves files in the `public`
    // folder we won't consider accessing them a vulnerability. However, if you
    // use the `proxy` feature, it gets more dangerous because it can expose
    // remote code execution vulnerabilities in backends like Django and Rails.
    // So we will disable the host check normally, but enable it if you have
    // specified the `proxy` setting. Finally, we let you override it if you
    // really know what you're doing with a special environment variable.
    disableHostCheck:
      !proxy || process.env.DANGEROUSLY_DISABLE_HOST_CHECK === 'true',
    // Enable gzip compression of generated files.
    compress: true,
    // Silence WebpackDevServer's own logs since they're generally not useful.
    // It will still show compile warnings and errors with this setting.
    clientLogLevel: 'none',
    // By default WebpackDevServer serves physical files from current directory
    // in addition to all the virtual build products that it serves from memory.
    // This is confusing because those files won’t automatically be available in
    // production build folder unless we copy them. However, copying the whole
    // project directory is dangerous because we may expose sensitive files.
    // Instead, we establish a convention that only files in `public` directory
    // get served. Our build script will copy `public` into the `build` folder.
    // In `index.html`, you can get URL of `public` folder with %PUBLIC_URL%:
    // <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
    // In JavaScript code, you can access it with `process.env.PUBLIC_URL`.
    // Note that we only recommend to use `public` folder as an escape hatch
    // for files like `favicon.ico`, `manifest.json`, and libraries that are
    // for some reason broken when imported through Webpack. If you just want to
    // use an image, put it in `src` and `import` it from JavaScript instead.
    contentBase: paths.appPublic,
    // By default files from `contentBase` will not trigger a page reload.
    watchContentBase: true,
    // Enable hot reloading server. It will provide /sockjs-node/ endpoint
    // for the WebpackDevServer client so it can learn when the files were
    // updated. The WebpackDevServer client is included as an entry point
    // in the Webpack development configuration. Note that only changes
    // to CSS are currently hot reloaded. JS changes will refresh the browser.
    hot: true,
    // It is important to tell WebpackDevServer to use the same "root" path
    // as we specified in the config. In development, we always serve from /.
    publicPath: '/',
    // WebpackDevServer is noisy by default so we emit custom message instead
    // by listening to the compiler events with `compiler.hooks[...].tap` calls above.
    quiet: true,
    // Reportedly, this avoids CPU overload on some systems.
    // https://github.com/facebook/create-react-app/issues/293
    // src/node_modules is not ignored to support absolute imports
    // https://github.com/facebook/create-react-app/issues/1065
    watchOptions: {
      ignored: ignoredFiles(paths.appSrc),
    },
    // Enable HTTPS if the HTTPS environment variable is set to 'true'
    https: protocol === 'https',
    host,
    overlay: false,
    historyApiFallback: {
      // Paths with dots should still use the history fallback.
      // See https://github.com/facebook/create-react-app/issues/387.
      disableDotRule: true,
    },
    public: allowedHost,
    proxy,
    before(app, server) {
      if (fs.existsSync(paths.proxySetup)) {
        // This registers user provided middleware for proxy reasons
        require(paths.proxySetup)(app);
      }

      // This lets us fetch source contents from webpack for the error overlay
      app.use(evalSourceMapMiddleware(server));
      // This lets us open files from the runtime error overlay.
      app.use(errorOverlayMiddleware());

      // This service worker file is effectively a 'no-op' that will reset any
      // previous service worker registered for the same host:port combination.
      // We do this in development to avoid hitting the production cache if
      // it used the same host and port.
      // https://github.com/facebook/create-react-app/issues/2272#issuecomment-302832432
      app.use(noopServiceWorkerMiddleware());
    },
  };
};

{'repo_name': 'GoogleChromeLabs/react-shrine', 'stars': '316', 'repo_language': 'JavaScript', 'file_name': 'index.html', 'mime_type': 'text/html', 'hash': -2990458433173390690, 'source_dataset': 'data'}


.nav--v__link, .nav--v__link--footer {
  display: block;
  font: {
    weight: 800;
    size: 12px;
  }
  line-height: 1.66;
  text-transform: uppercase;
  @include transition-duration(.25s);
  @include transition-property(color);
  &:not(:last-child) {
    margin-bottom: 10px;
  }
  &.is-active {
    color: $red;
  }
}

.nav--v__link {
  padding-right: 32px;
  color: $black;
  @media (max-width: 779px) {
    &:last-child {
      margin-bottom: 60px;
    }
  }
  &:focus, &:hover, &:active {
    color: $red;
  }
  &:focus {
    outline: none;
  }
}

.nav--v__link--footer {
  color: $white;
  &:focus, &:hover, &:active {
    color: rgba($white, .3);
  }
  &:focus {
    outline: none;
  }
  @media (max-width: 779px) {
    &:last-child {
      margin-bottom: 36px;
    }
  }
}

{'repo_name': 'rubygems/guides', 'stars': '125', 'repo_language': 'CSS', 'file_name': 'mobile-nav.js', 'mime_type': 'text/plain', 'hash': 3874945712264235218, 'source_dataset': 'data'}