text:
package com.google.cloud.documentai.v1.samples;

// [START documentai_v1_generated_DocumentProcessorService_ReviewDocument_sync]
import com.google.cloud.documentai.v1.DocumentProcessorServiceClient;
import com.google.cloud.documentai.v1.DocumentSchema;
import com.google.cloud.documentai.v1.HumanReviewConfigName;
import com.google.cloud.documentai.v1.ReviewDocumentRequest;
import com.google.cloud.documentai.v1.ReviewDocumentResponse;

public class SyncReviewDocument {

  public static void main(String[] args) throws Exception {
    syncReviewDocument();
  }

  public static void syncReviewDocument() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (DocumentProcessorServiceClient documentProcessorServiceClient =
        DocumentProcessorServiceClient.create()) {
      ReviewDocumentRequest request =
          ReviewDocumentRequest.newBuilder()
              .setHumanReviewConfig(
                  HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
              .setEnableSchemaValidation(true)
              .setDocumentSchema(DocumentSchema.newBuilder().build())
              .build();
      ReviewDocumentResponse response =
          documentProcessorServiceClient.reviewDocumentAsync(request).get();
    }
  }
}
// [END documentai_v1_generated_DocumentProcessorService_ReviewDocument_sync]


text:
<?php
    function handleRegisterPost() {
        if (!crsf_check()) {
            return '页面已过期';
        }
        if (!isset($_POST['username'])) {
            return "无效表单";
        }
        if (!isset($_POST['password'])) {
            return "无效表单";
        }
        if (!isset($_POST['email'])) {
            return "无效表单";
        }
        if(!isset($_POST['verifyCode'])){
            return "无效表单";
        }

        $username = $_POST['username'];
        $password = $_POST['password'];
        $email = $_POST['email'];
        $verifyCode = $_POST['verifyCode'];
        if (!validateUsername($username)) {
            return "失败:无效用户名。";
        }
        if (queryUser($username)) {
            return "失败:用户名已存在。";
        }
        if (!validatePassword($password)) {
            return "失败:无效密码。";
        }
        if (!validateEmail($email)) {
            return "失败:无效电子邮箱。";
        }
        if(!validateVerifyCode($verifyCode)) {
            return "失败:验证码错误";
        }

        $password = getPasswordToStore($password, $username);

        $esc_email = DB::escape($email);

        $svn_pw = uojRandString(10);
        if (!DB::selectCount("SELECT COUNT(*) FROM user_info"))
            mysql_query("insert into user_info (username, email, password, svn_password, register_time, usergroup) values ('$username', '$esc_email', '$password', '$svn_pw', now(), 'S')");
        else
            mysql_query("insert into user_info (username, email, password, svn_password, register_time) values ('$username', '$esc_email', '$password', '$svn_pw', now())");

        return "欢迎你!" . $username . ",你已成功注册。";
    }

    if (isset($_POST['register'])) {
        echo handleRegisterPost();
        die();
    } elseif (isset($_POST['check_username'])) {
        $username = $_POST['username'];
        if (validateUsername($username) && !queryUser($username)) {
            echo '{"ok" : true}';
        } else {
            echo '{"ok" : false}';
        }
        die();
    }elseif (isset($_POST['check_verify_code'])) {
        $verifyCode = $_POST['verifyCode'];
        if(validateVerifyCode($verifyCode)){
            echo '{"ok" : true}';
        } else {
            echo '{"ok" : false}';
        }
        die();
    }
?>
<?php
    $REQUIRE_LIB['md5'] = '';
    $REQUIRE_LIB['dialog'] = '';
?>
<?php echoUOJPageHeader(UOJLocale::get('register')) ?>

<?= UOJLocale::get('register') ?>

<form id="form-register" class="form-horizontal">

        <?= UOJLocale::get('email') ?>

            <input type="email" class="form-control" id="input-email" name="email" placeholder="<?= UOJLocale::get('enter your email') ?>" maxlength="50" />

        <?= UOJLocale::get('username') ?>

            <input type="text" class="form-control" id="input-username" name="username" placeholder="<?= UOJLocale::get('enter your username') ?>" maxlength="20" />

        <?= UOJLocale::get('password') ?>

            <input type="password" class="form-control" id="input-password" name="password" placeholder="<?= UOJLocale::get('enter your password') ?>" maxlength="20" />
            <input type="password" class="form-control top-buffer-sm" id="input-confirm_password" placeholder="<?= UOJLocale::get('re-enter your password') ?>" maxlength="20" />

        <?= UOJLocale::get('verify code') ?>

            <input type="password" class="form-control" id="input-verify-code" name="verify-code" placeholder="<?= UOJLocale::get('enter verify code') ?>" maxLength="30" />

            <button type="submit" id="button-submit" class="btn btn-default"><?= UOJLocale::get('submit') ?></button>

</form>

<?php echoUOJPageFooter() ?>

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="wrap_content"
    android:layout_height="wrap_content" android:background="@color/white">

    <ListView
        android:id="@+id/lv_popupWindows_list_view_fragment"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

    </ListView>
</LinearLayout>


text:
@interface Detailbtn ()
{
    dispatch_queue_t networkQueue;
}
@property (nonatomic,strong) BLNetwork *network;

@end
@implementation Detailbtn

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _network = [[BLNetwork alloc] init];
        networkQueue = dispatch_queue_create("BroadLinkDetailNetworkQueue", DISPATCH_QUEUE_SERIAL);
    }
    return self;
}

- (void)setmac:(NSString *)mac name:(NSString *)name lock:(int)lock{
    dispatch_async(networkQueue, ^{
        NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
        [dic setObject:[NSNumber numberWithInt:13] forKey:@"api_id"];
        [dic setObject:@"device_update" forKey:@"command"];
        [dic setObject:mac forKey:@"mac"];
        [dic setObject:name forKey:@"name"];
        [dic setObject:[NSNumber numberWithInt:lock] forKey:@"lock"];
        NSError *error;
        NSData *requestData = [NSJSONSerialization dataWithJSONObject:dic options:NSJSONWritingPrettyPrinted error: &error];
        NSData *responseData = [_network requestDispatch:requestData];
        dispatch_async(dispatch_get_main_queue(), ^{
        if ([[[responseData objectFromJSONData] objectForKey:@"code"] intValue] == 0) {
            [MBProgressHUD showSuccess:@"保存成功"];
        }else{
            NSLog(@"%@",[responseData objectFromJSONData]);
        }
        });
    });
}

@end


text:
/**
 * This file is generated by the Angular 2 template compiler.
 * Do not edit.
 */
 /* tslint:disable */

import * as import0 from '@angular/forms/src/directives/reactive_directives/form_control_directive';
import * as import1 from '@angular/core/src/change_detection/change_detection';
import * as import2 from '@angular/core/src/linker/view_utils';
import * as import3 from '@angular/core/src/linker/view';
export class Wrapper_FormControlDirective {
  context:import0.FormControlDirective;
  changed:boolean;
  changes:{[key: string]:any};
  /*private*/ _expr_0:any;
  /*private*/ _expr_1:any;
  /*private*/ _expr_2:any;
  constructor(p0:any,p1:any,p2:any) {
    this.changed = false;
    this.changes = {};
    this.context = new import0.FormControlDirective(p0,p1,p2);
    this._expr_0 = import1.UNINITIALIZED;
    this._expr_1 = import1.UNINITIALIZED;
    this._expr_2 = import1.UNINITIALIZED;
  }
  check_form(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import2.checkBinding(throwOnChange,this._expr_0,currValue))) {
      this.changed = true;
      this.context.form = currValue;
      this.changes['form'] = new import1.SimpleChange(this._expr_0,currValue);
      this._expr_0 = currValue;
    }
  }
  check_model(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import2.checkBinding(throwOnChange,this._expr_1,currValue))) {
      this.changed = true;
      this.context.model = currValue;
      this.changes['model'] = new import1.SimpleChange(this._expr_1,currValue);
      this._expr_1 = currValue;
    }
  }
  check_isDisabled(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void {
    if ((forceUpdate || import2.checkBinding(throwOnChange,this._expr_2,currValue))) {
      this.changed = true;
      this.context.isDisabled = currValue;
      this.changes['isDisabled'] = new import1.SimpleChange(this._expr_2,currValue);
      this._expr_2 = currValue;
    }
  }
  detectChangesInInputProps(view:import3.AppView<any>,el:any,throwOnChange:boolean):boolean {
    var changed:any = this.changed;
    this.changed = false;
    if (!throwOnChange) { if (changed) {
      this.context.ngOnChanges(this.changes);
      this.changes = {};
    } }
    return changed;
  }
  detectChangesInHostProps(view:import3.AppView<any>,el:any,throwOnChange:boolean):void {
  }
}


text:
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';

-- -----------------------------------------------------
-- Schema shareshop
-- -----------------------------------------------------

-- -----------------------------------------------------
-- Schema shareshop
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `shareshop` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
USE `shareshop` ;

-- -----------------------------------------------------
-- Table `shareshop`.`sha_location`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shareshop`.`sha_location` ;

CREATE TABLE IF NOT EXISTS `shareshop`.`sha_location` (
  `loc_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `loc_street` VARCHAR(255) NOT NULL,
  `loc_postcode` VARCHAR(10) NOT NULL,
  `loc_town` VARCHAR(255) NOT NULL,
  `loc_mapLat` VARCHAR(255) NOT NULL,
  `loc_mapLng` VARCHAR(255) NULL,
  PRIMARY KEY (`loc_id`))
ENGINE = InnoDB;

-- -----------------------------------------------------
-- Table `shareshop`.`sha_user`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shareshop`.`sha_user` ;

CREATE TABLE IF NOT EXISTS `shareshop`.`sha_user` (
  `usr_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `usr_username` VARCHAR(255) NOT NULL,
  `usr_password` CHAR(32) NOT NULL COMMENT 'http://stackoverflow.com/questions/247304/what-data-type-to-use-for-hashed-password-field-and-what-length',
  `usr_email` VARCHAR(255) NOT NULL,
  `usr_salt` CHAR(10) BINARY NULL,
  `usr_language` CHAR(5) NULL,
  `usr_loc_id` INT(10) UNSIGNED NULL,
  PRIMARY KEY (`usr_id`),
  UNIQUE INDEX `username_UNIQUE` (`usr_username` ASC),
  UNIQUE INDEX `usr_email_UNIQUE` (`usr_email` ASC),
  INDEX `fk_sha_location_id` (`usr_loc_id` ASC),
  CONSTRAINT `fk_sha_user_sha_location`
    FOREIGN KEY (`usr_loc_id`)
    REFERENCES `shareshop`.`sha_location` (`loc_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;

-- -----------------------------------------------------
-- Table `shareshop`.`sha_articles`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shareshop`.`sha_articles` ;

CREATE TABLE IF NOT EXISTS `shareshop`.`sha_articles` (
  `art_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `art_name` VARCHAR(255) NOT NULL,
  `art_description` VARCHAR(1000) NOT NULL,
  `art_image` VARCHAR(255) NULL,
  `art_usr_id` INT(10) UNSIGNED NOT NULL,
  `art_creation_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`art_id`),
  INDEX `sha_fk_art_usr_idx` (`art_usr_id` ASC),
  CONSTRAINT `sha_fk_art_usr`
    FOREIGN KEY (`art_usr_id`)
    REFERENCES `shareshop`.`sha_user` (`usr_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;

-- -----------------------------------------------------
-- Table `shareshop`.`sha_categories`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shareshop`.`sha_categories` ;

CREATE TABLE IF NOT EXISTS `shareshop`.`sha_categories` (
  `cat_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `cat_name` VARCHAR(255) NOT NULL,
  `cat_parent_id` INT(10) UNSIGNED NULL,
  PRIMARY KEY (`cat_id`),
  INDEX `sha_cat_cat_idx` (`cat_parent_id` ASC),
  CONSTRAINT `sha_cat_cat`
    FOREIGN KEY (`cat_parent_id`)
    REFERENCES `shareshop`.`sha_categories` (`cat_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;

-- -----------------------------------------------------
-- Table `shareshop`.`sha_session`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shareshop`.`sha_session` ;

CREATE TABLE IF NOT EXISTS `shareshop`.`sha_session` (
  `session_id` CHAR(32) NOT NULL,
  `session_usr_id` INT(10) UNSIGNED NOT NULL,
  `session_state` SMALLINT UNSIGNED NOT NULL DEFAULT 1,
  `session_create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `session_update_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  INDEX `fk_sha_session_sha_user1_idx` (`session_usr_id` ASC),
  PRIMARY KEY (`session_id`),
  UNIQUE INDEX `session_id_UNIQUE` (`session_id` ASC),
  CONSTRAINT `fk_sha_session_sha_user1`
    FOREIGN KEY (`session_usr_id`)
    REFERENCES `shareshop`.`sha_user` (`usr_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION);

-- -----------------------------------------------------
-- Table `shareshop`.`sha_art_cat_rel`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shareshop`.`sha_art_cat_rel` ;

CREATE TABLE IF NOT EXISTS `shareshop`.`sha_art_cat_rel` (
  `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
  `art_id` INT(10) UNSIGNED NOT NULL,
  `cat_id` INT(10) UNSIGNED NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE INDEX `id_UNIQUE` (`id` ASC),
  INDEX `sha_fk_rel_cat_idx` (`cat_id` ASC),
  INDEX `sha_fk_art_cat_idx` (`art_id` ASC),
  CONSTRAINT `sha_fk_rel_cat`
    FOREIGN KEY (`cat_id`)
    REFERENCES `shareshop`.`sha_categories` (`cat_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `sha_fk_rel_art`
    FOREIGN KEY (`art_id`)
    REFERENCES `shareshop`.`sha_articles` (`art_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;

-- -----------------------------------------------------
-- Table `shareshop`.`sha_exchange`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shareshop`.`sha_exchange` ;

CREATE TABLE IF NOT EXISTS `shareshop`.`sha_exchange` (
  `exchange_id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
  `requesting_user` INT(10) UNSIGNED NOT NULL,
  `answering_user` INT(10) UNSIGNED NOT NULL,
  `requesting_rating` SMALLINT UNSIGNED NULL,
  `answering_rating` SMALLINT UNSIGNED NULL,
  `state` SMALLINT UNSIGNED NULL,
  PRIMARY KEY (`exchange_id`),
  INDEX `fk_sha_request_sha_user3_idx` (`requesting_user` ASC),
  INDEX `fk_sha_request_sha_user4_idx` (`answering_user` ASC),
  CONSTRAINT `fk_sha_request_sha_user3`
    FOREIGN KEY (`requesting_user`)
    REFERENCES `shareshop`.`sha_user` (`usr_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_sha_request_sha_user4`
    FOREIGN KEY (`answering_user`)
    REFERENCES `shareshop`.`sha_user` (`usr_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;

-- -----------------------------------------------------
-- Table `shareshop`.`sha_exchange_step`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shareshop`.`sha_exchange_step` ;

CREATE TABLE IF NOT EXISTS `shareshop`.`sha_exchange_step` (
  `step_id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
  `exchange_id` INT UNSIGNED NOT NULL,
  `step_created` TIMESTAMP NOT NULL,
  `step_remark` TEXT NULL,
  `step_type` SMALLINT UNSIGNED NOT NULL,
  PRIMARY KEY (`step_id`),
  INDEX `fk_sha_request_step_sha_request1_idx` (`exchange_id` ASC),
  UNIQUE INDEX `unique_step_per_exchange` (`exchange_id` ASC, `step_type` ASC),
  CONSTRAINT `fk_sha_request_step_sha_request1`
    FOREIGN KEY (`exchange_id`)
    REFERENCES `shareshop`.`sha_exchange` (`exchange_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;

-- -----------------------------------------------------
-- Table `shareshop`.`sha_exchange_step_item`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `shareshop`.`sha_exchange_step_item` ;

CREATE TABLE IF NOT EXISTS `shareshop`.`sha_exchange_step_item` (
  `step_id` INT UNSIGNED NOT NULL,
  `art_id` INT(10) UNSIGNED NOT NULL,
  INDEX `fk_sha_request_step_item_sha_request_step1_idx` (`step_id` ASC),
  INDEX `fk_sha_request_step_item_sha_articles1_idx` (`art_id` ASC),
  CONSTRAINT `fk_sha_request_step_item_sha_request_step1`
    FOREIGN KEY (`step_id`)
    REFERENCES `shareshop`.`sha_exchange_step` (`step_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_sha_request_step_item_sha_articles1`
    FOREIGN KEY (`art_id`)
    REFERENCES `shareshop`.`sha_articles` (`art_id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION)
ENGINE = InnoDB;

SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>システム管理者</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">

    <link href="css/logo-nav.css" rel="stylesheet">

未対応機能


text:
<?php
// Loading all the necessary files
require __DIR__.'/src/bootstrap.php';

// Connection class imported
use PDO4You\PDO4You;

// Connection instance started and available
PDO4You::getInstance();

// Applying styling on the page
PDO4You::css();

// Displaying details on the target server's database connected
PDO4You::showServerInfo();
?>
<!doctype html>

        <meta charset="UTF-8" />
        <title>PDO4You</title>

        <?php
        if ((string) $page = filter_input(INPUT_GET, 'p')) {
            include '/demos/' . $page . '.php';
        } else {
            ?>

                DEMOS ›
                SELECTS §
                INSERT/UPDATE/DELETE §
                MULTIPLE INSTANCES §
                HTML EDITOR §
                READING RECORDS §
                READING WITH PAGING

            <?php
        }
        ?>


text:
@implementation RXRunTimeDemoBaseObject

- (void)printBaseAction
{
//    CALayer *layer;
//    layer.anchorPoint
//    UIView *view;
}
@end


text:
<?php

/**
 * @file
 * Contains \Drupal\block\BlockAccessControlHandler.
 */

namespace Drupal\block;

use Drupal\Component\Plugin\Exception\ContextException;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;
use Drupal\Core\Condition\ConditionAccessResolverTrait;
use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Entity\EntityHandlerInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Executable\ExecutableManagerInterface;
use Drupal\Core\Plugin\Context\ContextHandlerInterface;
use Drupal\Core\Plugin\Context\ContextRepositoryInterface;
use Drupal\Core\Plugin\ContextAwarePluginInterface;
use Drupal\Core\Session\AccountInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Defines the access control handler for the block entity type.
 *
 * @see \Drupal\block\Entity\Block
 */
class BlockAccessControlHandler extends EntityAccessControlHandler implements EntityHandlerInterface {

  use ConditionAccessResolverTrait;

  /**
   * The condition plugin manager.
   *
   * @var \Drupal\Core\Executable\ExecutableManagerInterface
   */
  protected $manager;

  /**
   * The plugin context handler.
   *
   * @var \Drupal\Core\Plugin\Context\ContextHandlerInterface
   */
  protected $contextHandler;

  /**
   * The context manager service.
   *
   * @var \Drupal\Core\Plugin\Context\ContextRepositoryInterface
   */
  protected $contextRepository;

  /**
   * {@inheritdoc}
   */
  public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
    return new static(
      $entity_type,
      $container->get('plugin.manager.condition'),
      $container->get('context.handler'),
      $container->get('context.repository')
    );
  }

  /**
   * Constructs the block access control handler instance
   *
   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
   *   The entity type definition.
   * @param \Drupal\Core\Executable\ExecutableManagerInterface $manager
   *   The ConditionManager for checking visibility of blocks.
   * @param \Drupal\Core\Plugin\Context\ContextHandlerInterface $context_handler
   *   The ContextHandler for applying contexts to conditions properly.
   * @param \Drupal\Core\Plugin\Context\ContextRepositoryInterface $context_repository
   *   The lazy context repository service.
   */
  public function __construct(EntityTypeInterface $entity_type, ExecutableManagerInterface $manager, ContextHandlerInterface $context_handler, ContextRepositoryInterface $context_repository ) {
    parent::__construct($entity_type);
    $this->manager = $manager;
    $this->contextHandler = $context_handler;
    $this->contextRepository = $context_repository;
  }

  /**
   * {@inheritdoc}
   */
  protected function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
    /** @var \Drupal\block\BlockInterface $entity */
    if ($operation != 'view') {
      return parent::checkAccess($entity, $operation, $account);
    }

    // Don't grant access to disabled blocks.
    if (!$entity->status()) {
      return AccessResult::forbidden()->cacheUntilEntityChanges($entity);
    }
    else {
      $conditions = [];
      $missing_context = FALSE;
      foreach ($entity->getVisibilityConditions() as $condition_id => $condition) {
        if ($condition instanceof ContextAwarePluginInterface) {
          try {
            $contexts = $this->contextRepository->getRuntimeContexts(array_values($condition->getContextMapping()));
            $this->contextHandler->applyContextMapping($condition, $contexts);
          }
          catch (ContextException $e) {
            $missing_context = TRUE;
          }
        }
        $conditions[$condition_id] = $condition;
      }

      if ($missing_context) {
        // If any context is missing then we might be missing cacheable
        // metadata, and don't know based on what conditions the block is
        // accessible or not. For example, blocks that have a node type
        // condition will have a missing context on any non-node route like the
        // frontpage.
        // @todo Avoid setting max-age 0 for some or all cases, for example by
        //   treating available contexts without value differently in
        //   https://www.drupal.org/node/2521956.
        $access = AccessResult::forbidden()->setCacheMaxAge(0);
      }
      elseif ($this->resolveConditions($conditions, 'and') !== FALSE) {
        // Delegate to the plugin.
        $block_plugin = $entity->getPlugin();
        try {
          if ($block_plugin instanceof ContextAwarePluginInterface) {
            $contexts = $this->contextRepository->getRuntimeContexts(array_values($block_plugin->getContextMapping()));
            $this->contextHandler->applyContextMapping($block_plugin, $contexts);
          }
          $access = $block_plugin->access($account, TRUE);
        }
        catch (ContextException $e) {
          // Setting access to forbidden if any context is missing for the same
          // reasons as with conditions (described in the comment above).
          // @todo Avoid setting max-age 0 for some or all cases, for example by
          //   treating available contexts without value differently in
          //   https://www.drupal.org/node/2521956.
          $access = AccessResult::forbidden()->setCacheMaxAge(0);
        }
      }
      else {
        $access = AccessResult::forbidden();
      }

      $this->mergeCacheabilityFromConditions($access, $conditions);

      // Ensure that access is evaluated again when the block changes.
      return $access->cacheUntilEntityChanges($entity);
    }
  }

  /**
   * Merges cacheable metadata from conditions onto the access result object.
   *
   * @param \Drupal\Core\Access\AccessResult $access
   *   The access result object.
   * @param \Drupal\Core\Condition\ConditionInterface[] $conditions
   *   List of visibility conditions.
   */
  protected function mergeCacheabilityFromConditions(AccessResult $access, array $conditions) {
    foreach ($conditions as $condition) {
      if ($condition instanceof CacheableDependencyInterface) {
        $access->addCacheTags($condition->getCacheTags());
        $access->addCacheContexts($condition->getCacheContexts());
        $access->setCacheMaxAge(Cache::mergeMaxAges($access->getCacheMaxAge(), $condition->getCacheMaxAge()));
      }
    }
  }

}


text:
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Abp.Authorization.Roles;
using Abp.AutoMapper;
using IdentityServerWithEfCoreDemo.Authorization.Roles;

namespace IdentityServerWithEfCoreDemo.Roles.Dto
{
    public class RoleDto : EntityDto<int>
    {
        [Required]
        [StringLength(AbpRoleBase.MaxNameLength)]
        public string Name { get; set; }

        [Required]
        [StringLength(AbpRoleBase.MaxDisplayNameLength)]
        public string DisplayName { get; set; }

        public string NormalizedName { get; set; }

        [StringLength(Role.MaxDescriptionLength)]
        public string Description { get; set; }

        public List<string> GrantedPermissions { get; set; }
    }
}


text:
module RR
  module DoubleDefinitions
    module Strategies
      module Implementation
        class StronglyTypedReimplementation < Reimplementation
          register("strong")

          protected
          def do_call
            super
            definition.verify_method_signature
          end
        end
      end
    end
  end
end


text:
package pagelyzer;

import java.awt.image.BufferedImage;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.imageio.ImageIO;

/**
 * Data structure to hold capture results
 * @author sanojaa
 */
public class CaptureResult {
   /**
   * byte array to hold an image
   */
    public byte[] image;
   /**
   * String to hold the segmentation results
   */
    public String viXML;
       /**
   * String to hold the rendered source code
   */
    public String srcHTML;
       /**
   * Used for debugging. Intermediate images.
   */
    public byte[] debug;

    /**
     * Constructor
     */
    public CaptureResult() {
      //  this.debug = null;
        this.srcHTML = null;
        this.image = null;
        this.viXML = null;
    }

    /**
     * Get bufferImage from byte array
     * @return BufferedImage
     */
    public BufferedImage getBufferedImage() {
          InputStream in = new ByteArrayInputStream(this.image);
          BufferedImage bimage = null;
         try {
             bimage = ImageIO.read(in);
         } catch (IOException ex) {
             Logger.getLogger(CaptureResult.class.getName()).log(Level.SEVERE, null, ex);
         }
        return bimage;
      }

    /**
     * Writes debug image to disk
     * @param to file to save to
     */
    public void saveDebugFile(String to) {
        if (this.image != null)
        {
	          OutputStream out=null;
	        try {
	             out = new BufferedOutputStream(new FileOutputStream(to));
	             System.out.println("Writing debug image file in "+to);
	             out.write(this.image);
	             out.close();
	         } catch (FileNotFoundException ex) {
	             Logger.getLogger(JPagelyzer.class.getName()).log(Level.SEVERE, null, ex);
	         } catch (IOException ex) {
	             Logger.getLogger(JPagelyzer.class.getName()).log(Level.SEVERE, null, ex);
	         } catch (Exception ex) {
	             Logger.getLogger(JPagelyzer.class.getName()).log(Level.SEVERE, null, ex);
	         }
        }
        if (this.viXML != null)
        {
        	 FileWriter fileWriter = null;
             try {

                 File newTextFile = new File(to + ".xml");
                 fileWriter = new FileWriter(newTextFile);
                 fileWriter.write(viXML);
                 fileWriter.close();
             } catch (IOException ex) {
                 Logger.getLogger(JPagelyzer.class.getName()).log(Level.SEVERE, null, ex);
             } finally {
                 try {
                     fileWriter.close();
                 } catch (IOException ex) {
                     Logger.getLogger(JPagelyzer.class.getName()).log(Level.SEVERE, null, ex);
                 }
             }
        }

    }

}


text:
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.container.metrics;

/**
 * @author freva
 */
public class Counter implements MetricValue {
    private final Object lock = new Object();

    private long value = 0;

    public void increment() {
        add(1L);
    }

    public void add(long n) {
        synchronized (lock) {
            value += n;
        }
    }

    @Override
    public Number getValue() {
        synchronized (lock) {
            return value;
        }
    }
}


text:
module Member::Addon::Registration
  module RequiredFields
    extend ActiveSupport::Concern
    extend SS::Addon

    included do
      field :kana_required, type: String, default: "optional"
      field :organization_name_required, type: String, default: "optional"
      field :job_required, type: String, default: "optional"
      field :tel_required, type: String, default: "optional"
      field :birthday_required, type: String, default: "optional"
      field :sex_required, type: String, default: "optional"
      field :postal_code_required, type: String, default: "optional"
      field :addr_required, type: String, default: "optional"
      validates :kana_required, inclusion: { in: %w(optional required), allow_blank: true }
      validates :organization_name_required, inclusion: { in: %w(optional required), allow_blank: true }
      validates :job_required, inclusion: { in: %w(optional required), allow_blank: true }
      validates :tel_required, inclusion: { in: %w(optional required), allow_blank: true }
      validates :birthday_required, inclusion: { in: %w(optional required), allow_blank: true }
      validates :sex_required, inclusion: { in: %w(optional required), allow_blank: true }
      validates :postal_code_required, inclusion: { in: %w(optional required), allow_blank: true }
      validates :addr_required, inclusion: { in: %w(optional required), allow_blank: true }
      permit_params :kana_required, :organization_name_required, :job_required, :tel_required
      permit_params :birthday_required, :sex_required, :postal_code_required, :addr_required
    end

    def kana_required_options
      %w(optional required).map do |v|
        [ I18n.t("inquiry.options.required.#{v}"), v ]
      end
    end
    alias organization_name_required_options kana_required_options
    alias job_required_options kana_required_options
    alias tel_required_options kana_required_options
    alias birthday_required_options kana_required_options
    alias sex_required_options kana_required_options
    alias postal_code_required_options kana_required_options
    alias addr_required_options kana_required_options

    def kana_required?
      kana_required == 'required'
    end

    def organization_name_required?
      organization_name_required == 'required'
    end

    def job_required?
      job_required == 'required'
    end

    def tel_required?
      tel_required == 'required'
    end

    def birthday_required?
      birthday_required == 'required'
    end

    def sex_required?
      sex_required == 'required'
    end

    def postal_code_required?
      postal_code_required == 'required'
    end

    def addr_required?
      addr_required == 'required'
    end
  end
end


text:
        <ba-card title="HackToday" baCardClass="with-scroll" class="data-table-container">

                    Rows on page
                    <select class="form-control input-sm" [(ngModel)]="rowsOnPage">
                    <option [ngValue]="5">5</option>
                    <option [ngValue]="10">10</option>
                    <option [ngValue]="15">15</option>
                </select>

                        Sort by

                                <select class="form-control input-sm" [(ngModel)]="sortBy">
                                    <option ngValue="nama_user">Name</option>
                                </select>

                                <select class="form-control input-sm" [(ngModel)]="sortOrder">
                                    <option ngValue="asc">Ascending</option>
                                    <option ngValue="desc">Descending</option>
                                    <option ngValue="badValue">Bad value</option>
                                </select>

                    Options
                    <button type="button" (click)="generateCsv()" class="btn btn-success">Export to CSV</button>

                                #

                                <mfDefaultSorter by="nama_team">Name</mfDefaultSorter>

                                <mfDefaultSorter by="writeup_hack">Will Attend Seminar?</mfDefaultSorter>

                            Option

                                Filter by Name:
                                <input class="form-control" [(ngModel)]="filterQuery" />

                            {{(mf.activePage-1)*10+(j+1)}}
                            {{item.user.nama_user}}
                            Yes
                            Not confirm yet

                                <button (click)="view(item.pendaftar_seminar)" class="btn btn-info">Details</button>

                                <mfBootstrapPaginator [rowsOnPageSet]="[5,10,15]"></mfBootstrapPaginator>

        </ba-card>


text:
double normal_pd(double x, double mu, double sigma_squared);

// Naive Bayesian classifier: uses the Bayes theorem to predict the class for a
// point as the one that maximizes the posterior probability, but assuming the
// attributes are independent.
class NaiveBayesClassifier : public Classifier {
    int k;
    int d;
    std::vector<double> p;
    std::vector<Eigen::VectorXd> mu;
    std::vector<Eigen::VectorXd> var;

public:
    // Create Naive Bayesian classifier using a set of training points x and
    // corresponding class labels y. The labels must go from 0 to some maximum,
    // and there must be at least one point for each class.
    NaiveBayesClassifier(const std::vector<Eigen::VectorXd>& x,
                         const std::vector<int>& y);

    // Predict the class for point x.
    int predict(const Eigen::VectorXd& x) const override;

    // Number of classes.
    int nClasses() const;

    // Prior probability for class i.
    double priorProbability(int i) const;

    // Mean value for class i.
    Eigen::VectorXd mean(int i) const;

    // Variances for class i.
    Eigen::VectorXd variances(int i) const;
};


text:
package org.springside.examples.quickstart.web.account;

import javax.validation.Valid;

import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springside.examples.quickstart.entity.User;
import org.springside.examples.quickstart.service.account.AccountService;
import org.springside.examples.quickstart.service.account.ShiroDbRealm.ShiroUser;

/**
 * 用户修改自己资料的Controller.
 *
 * @author calvin
 */
@Controller
@RequestMapping(value = "/profile")
public class ProfileController {

	@Autowired
	private AccountService accountService;

	@RequestMapping(method = RequestMethod.GET)
	public String updateForm(Model model) {
		Long id = getCurrentUserId();
		model.addAttribute("user", accountService.getUser(id));
		return "account/profile";
	}

	@RequestMapping(method = RequestMethod.POST)
	public String update(@Valid @ModelAttribute("preloadUser") User user) {
		accountService.updateUser(user);
		updateCurrentUserName(user.getName());
		return "redirect:/";
	}

	@ModelAttribute("preloadUser")
	public User getUser(@RequestParam(value = "id", required = false) Long id) {
		if (id != null) {
			return accountService.getUser(id);
		}
		return null;
	}

	/**
	 * 取出Shiro中的当前用户Id.
	 */
	private Long getCurrentUserId() {
		ShiroUser user = (ShiroUser) SecurityUtils.getSubject().getPrincipal();
		return user.id;
	}

	/**
	 * 更新Shiro中当前用户的用户名.
	 */
	private void updateCurrentUserName(String userName) {
		ShiroUser user = (ShiroUser) SecurityUtils.getSubject().getPrincipal();
		user.name = userName;
	}
}


text:
'use strict';

var assert = require('assert');
var vobject = require('../../index');

var card;
beforeEach(function() {
  card = vobject.card();
});

describe('lib/vobject/card.js', function() {
  describe('initialize', function() {
    it('should set name to VCARD', function() {
      assert.equal(card.name, 'VCARD');
    });
  });

  describe('getUID', function() {
    it('should return undefined by default', function() {
      assert.equal(card.getUID(), undefined);
    });

    it('should get UID', function() {
      card.properties['UID'] = [vobject.property('UID', 'value')];
      assert.equal(card.getUID(), 'value');
    });
  });

  describe('getFirstName', function() {
    it('should return undefined by default', function() {
      assert.equal(card.getFirstName(), undefined);
    });

    it('should return undefined on incomplete N structure', function() {
      card.properties['N'] = [vobject.property('N', 'last;first')];
      assert.equal(card.getFirstName(), undefined);
    });

    it('should return second N structure value', function() {
      card.properties['N'] = [vobject.property('N', 'last;first;middle;dr;jr')];
      assert.equal(card.getFirstName(), 'first');
    });
  });

  describe('getLastName', function() {
    it('should return undefined by default', function() {
      assert.equal(card.getLastName(), undefined);
    });

    it('should return undefined on incomplete N structure', function() {
      card.properties['N'] = [vobject.property('N', 'last;first')];
      assert.equal(card.getLastName(), undefined);
    });

    it('should return first N structure value', function() {
      card.properties['N'] = [vobject.property('N', 'last;first;middle;dr;jr')];
      assert.equal(card.getLastName(), 'last');
    });
  });

  describe('getName', function() {
    it('should return undefined by default', function() {
      assert.equal(card.getName(), undefined);
    });

    it('should get FN', function() {
      card.properties['FN'] = [vobject.property('FN', 'name')];
      assert.equal(card.getName(), 'name');
    });
  });

  describe('getEmails', function() {
    it('should return [] by default', function() {
      assert.deepEqual(card.getEmails(), []);
    });

    it('should get EMAIL properties', function() {
      card.properties['EMAIL'] = [
        vobject.property('EMAIL', 'email0'),
        vobject.property('EMAIL', 'email1')
      ];
      assert.equal(card.getEmails()[0].value, 'email0');
      assert.equal(card.getEmails()[1].value, 'email1');
    });
  });

  describe('getTelephoneNumbers', function() {
    it('should return [] by default', function() {
      assert.deepEqual(card.getTelephoneNumbers(), []);
    });

    it('should return TEL properties', function() {
      card.properties['TEL'] = [
        vobject.property('TEL', 'tel0'),
        vobject.property('TEL', 'tel1')
      ];
      assert.equal(card.getTelephoneNumbers()[0].value, 'tel0');
      assert.equal(card.getTelephoneNumbers()[1].value, 'tel1');
    });
  });

  describe('getBirthday', function() {
    it('should return undefined by default', function() {
      assert.equal(card.getBirthday(), undefined);
    });

    it('should get BDAY', function() {
      card.properties['BDAY'] = [vobject.property('BDAY', 'birthday')];
      assert.equal(card.getBirthday(), 'birthday');
    });
  });
});


text:
package io.bxbxbai.zhuanlan.widget;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import io.bxbxbai.zhuanlan.R;
import io.bxbxbai.zhuanlan.adapter.SimpleBaseAdapter;

import java.util.List;

/**
 *
 * @author bxbxbai
 */
public class MenuAdapter extends SimpleBaseAdapter<DrawerMenuContent.DrawerItem> {

    public MenuAdapter(Context context, List<DrawerMenuContent.DrawerItem> data) {
        super(context, data);
    }

    @Override
    public int getItemResource() {
        return R.layout.layout_menu_item;
    }

    @Override
    public void bindData(int position, View convertView, ViewHolder holder) {

        DrawerMenuContent.DrawerItem item = getItem(position);

        ImageView menuIcon = holder.findView(R.id.iv_menu_icon);
        menuIcon.setImageResource(item.icon);

        TextView menuText = holder.findView(R.id.tv_menu_item);
        menuText.setText(item.title);

        convertView.setTag(R.id.key_data, item);
    }
}


text:
asdsadsad

jaslkdja


text:
package org.apache.servicecomb.swagger.generator.core.processor.annotation;

import java.lang.reflect.Type;

import org.apache.servicecomb.swagger.generator.ClassAnnotationProcessor;
import org.apache.servicecomb.swagger.generator.SwaggerGenerator;

import io.swagger.annotations.ApiResponse;

public class ApiResponseClassProcessor implements ClassAnnotationProcessor<ApiResponse> {
  @Override
  public Type getProcessType() {
    return ApiResponse.class;
  }

  // swagger declared not to use ApiResponse directly
  // but support this is not so bad
  @Override
  public void process(SwaggerGenerator swaggerGenerator, ApiResponse apiResponse) {
    AnnotationUtils.addResponse(swaggerGenerator.getSwagger(), apiResponse);
  }
}


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=gAEABXnBxw">
    <link rel="icon" type="image/png" href="/favicon-32x32.png?v=gAEABXnBxw" sizes="32x32">
    <link rel="icon" type="image/png" href="/favicon-16x16.png?v=gAEABXnBxw" sizes="16x16">
    <link rel="manifest" href="/manifest.json?v=gAEABXnBxw">
    <link rel="mask-icon" href="/safari-pinned-tab.svg?v=gAEABXnBxw" color="#5bbad5">
    <link rel="shortcut icon" href="/favicon.ico?v=gAEABXnBxw">
    <meta name="apple-mobile-web-app-title" content="SEB">
    <meta name="application-name" content="SEB">
    <meta name="theme-color" content="#ffffff">

<title>Safe Exam Browser</title>

    <link href="../css/bootstrap.min.css" rel="stylesheet">

    <link href="../css/modern-business.css" rel="stylesheet">

    <link href="../font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

	<link href="../css/docs.min.css" rel="stylesheet">

<link href="../css/basic.css" rel="stylesheet" type="text/css" media="all">

                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    Toggle navigation

                </button>

                  Safe Exam Browser

                        News

                        About

                                Overview

                                Demo

                                Roadmap

                                Publications

                        Alliance

                                Contributors

                                Council

                                Documents

                                Benefits

                                Fees

                                Join

                                FAQ

                        Download

                                Downloads

                                Former Releases

                        Windows

                                User Manual

                                Release Notes

                        macOS

                                User Manual

                                Release Notes

                        iOS

                                User Manual

                                Tutorial

                                Release Notes

                        Support

                                Developer Information

                        		Support Links

                    			FAQ

Safe Exam Browser

        English   Deutsch

You have installed Safe Exam Browser (SEB), but it isn't configured yet.

If you are an examinee:

You should have received a SEB configuration file, with the file extension .seb and this icon:

    or you may have received a link to configure SEB or to start an exam with SEB.

Quit SEB using the quit button in the lower right of this screen (or keys ctrl-Q/cmd-Q).

Open (double click) the SEB configuration file or click the link to configure SEB/start an exam with SEB.

If you click a link to configure SEB/start an exam, your browser or e-mail client may ask you to confirm opening the link with Safe Exam Browser, you have to allow/confirm this.

SEB will start and open the configuration file (or the configuration link).

SEB will either be configured, you can then choose to continue using SEB or quit for now. Otherwise your exam will start directly.

If you want to know more about SEB, you'll find all information on this website:

»News

      »About Safe Exam Browser

      »Documentation SEB for Windows

      »Documentation SEB for macOS

    »Support

If you switch on JavaScript in your browser, you will get a better experience using this website.

Copyright © 2010-2021 ETH Zurich, Educational Development and Technology (LET)


text:
package domain;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.SafeHtml;
import org.hibernate.validator.constraints.URL;
import org.hibernate.validator.constraints.SafeHtml.WhiteListType;

@Entity
@Access(AccessType.PROPERTY)
public class Vehicle extends DomainEntity {

	// Attributes -------------------------------------------------------------
	private String brand;
	private String model;
	private String picture;
	private String color;
	private boolean deleted;

	@NotNull
	@NotBlank
	@SafeHtml(whitelistType = WhiteListType.NONE)
	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	@NotNull
	@NotBlank
	@SafeHtml(whitelistType = WhiteListType.NONE)
	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	@URL
	@SafeHtml(whitelistType = WhiteListType.NONE)
	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	@NotNull
	@NotBlank
	@SafeHtml(whitelistType = WhiteListType.NONE)
	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	// Relationships ----------------------------------------------------------
	private User user;

	@Valid
	@NotNull
	@ManyToOne(optional=false)
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
}


text:
<?php

namespace Google\Site_Kit\Core\Util;

/**
 * Class providing functions to reset the persistent plugin settings.
 *
 * @since 1.27.0
 * @access private
 * @ignore
 */
class Reset_Persistent extends Reset {

	/**
	 * MySQL key pattern for all persistent Site Kit keys.
	 */
	const KEY_PATTERN = 'googlesitekitpersistent\_%';

	/**
	 * REST API endpoint.
	 */
	const REST_ROUTE = 'core/site/data/reset-persistent';
}


text:
from setuptools import setup, find_packages
from sys import version_info

install_requires = [
    'six',
]

tests_require = [
    'coverage',
    'Markdown'
]

if version_info < (3,):
    tests_require += ['unittest2']

version = __import__('cio').__version__

setup(
    name='content-io',
    version=version,
    description='Send content through a highly configurable pipeline including cache, plugin and storage pipes',
    long_description=(
        '.. image:: https://travis-ci.org/5monkeys/content-io.svg?branch=master\n'
        '    :target: https://travis-ci.org/5monkeys/content-io\n'
        '.. image:: https://coveralls.io/repos/5monkeys/content-io/badge.svg?branch=master\n'
        '    :target: https://coveralls.io/r/5monkeys/content-io?branch=master\n\n'
    ),
    author='Jonas Lundberg',
    author_email='jonas@5monkeys.se',
    url='https://github.com/5monkeys/content-io',
    download_url='https://github.com/5monkeys/content-io/tarball/%s' % version,
    keywords=['cms', 'content', 'management', 'pipeline', 'plugin', 'backend', 'cache', 'storage'],
    license='BSD',
    packages=find_packages(exclude='tests'),
    include_package_data=False,
    zip_safe=False,
    classifiers=[
        'Environment :: Web Environment',
        'Natural Language :: English',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    install_requires=install_requires,
    extras_require={
        'tests': tests_require,
    },
    tests_require=tests_require,
    test_suite='runtests.main',
)