text:
package com.ruisi.vdop.web.ruisibi;

import java.io.IOException;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONObject;

import com.ruisi.ext.engine.view.context.ExtContext;
import com.ruisi.ext.engine.view.context.MVContext;
import com.ruisi.vdop.bean.ReportVO;
import com.ruisi.vdop.ser.ruisibi.FileService;
import com.ruisi.vdop.ser.ruisibi.ReportService;
import com.ruisi.vdop.ser.utils.CompPreviewService;
import com.ruisi.vdop.util.VDOPUtils;

/**
 * 智能报表 设计页面
 * @author hq
 * @date 2013-11-19
 */
public class ReportDesignAction {

	private String pageInfo;

	private String userid;

	private String pageId; //页面ID

	private String pageName; //页面名称

	private String share; //是否是共享文件

	private String msg; //错误信息

	private String view; //当前是浏览状态还是管理状态

	private Integer open; //是否显示打开对话框

	public String save() throws IOException, ClassNotFoundException{
		FileService fs = new FileService(VDOPUtils.getServletContext());
		this.userid = VDOPUtils.getLoginedUser().getUserId();
		//this.userid = "admin";
		int ret;
		if(pageId == null || pageId.length() == 0){
			this.pageId = VDOPUtils.getUUIDStr();
			JSONObject page = JSONObject.fromObject(this.pageInfo);
			page.put("id", this.pageId);
			this.pageInfo = page.toString();
			ReportVO rvo = new ReportVO();
			rvo.setCrtdate(new Date());
			rvo.setUpdatedate(new Date());
			rvo.setPageId(pageId);
			rvo.setPageInfo(pageInfo);
			rvo.setPageName(pageName);
			rvo.setUserid(userid);
			ret = fs.insertReport(rvo, "true".equalsIgnoreCase(view), 1);
		}else{
			ReportVO rvo = new ReportVO();
			rvo.setPageId(pageId);
			rvo.setPageInfo(pageInfo);
			rvo.setUpdatedate(new Date());
			ret = fs.updateReport(rvo, "true".equalsIgnoreCase(view), 1);
		}

		HttpServletResponse resp = VDOPUtils.getResponse();
		resp.setContentType("text/html; charset=UTF-8");
		Map m = new HashMap();
		if(ret == 1){
			m.put("state", 1);
			m.put("msg", "文件已经不存在。");
		}else{
			m.put("state", 0);
			m.put("pageId", pageId);
		}

		resp.getWriter().print(JSONObject.fromObject(m));

		return null;
	}

	//管理员页面
	public String execute() throws IOException, ClassNotFoundException{
		if(pageId != null && pageId.length() > 0){
			FileService fs = new FileService(VDOPUtils.getServletContext());
			ReportVO vo = fs.readReport(this.pageId, false, 1);
			if(vo == null){
				this.msg = "您请求的文件不存在,可能已经被删除了。";
			}else{
				this.pageInfo = vo.getPageInfo();
				this.pageName = vo.getPageName();
				/**
				JSONObject json = JSONObject.fromObject(pageInfo);
				String linkReport = (String)json.get("linkReport");
				if(linkReport != null && linkReport.length() > 0){
					ReportVO nvo = fs.readReport(linkReport, false, 1);
					JSONObject njson  = JSONObject.fromObject(nvo.getPageInfo());
					json.put("datasource", njson.get("datasource"));
					json.put("dataset", njson.get("dataset"));
					json.put("cube", njson.get("cube"));
					this.pageInfo = json.toString();
				}
				**/
			}
		}
		return "success";
	}
	//浏览者页面
	public String view() throws IOException, ClassNotFoundException {
		if(pageId != null && pageId.length() > 0){
			FileService fs = new FileService(VDOPUtils.getServletContext());
			ReportVO vo = fs.readReport(this.pageId, true, 1);
			if(vo == null){
				this.share = "y";
				vo = fs.readShareReport(this.pageId, 1);
			}
			if(vo == null){
				this.msg = "您请求的文件不存在,可能已经被删除了。";
			}else{
				this.pageInfo = vo.getPageInfo();
				this.pageName = vo.getPageName();
				/**
				JSONObject json = JSONObject.fromObject(pageInfo);
				String linkReport = (String)json.get("linkReport");
				if(linkReport != null && linkReport.length() > 0){
					ReportVO nvo = fs.readReport(linkReport, false, 1);
					JSONObject njson  = JSONObject.fromObject(nvo.getPageInfo());
					json.put("datasource", njson.get("datasource"));
					json.put("dataset", njson.get("dataset"));
					json.put("cube", njson.get("cube"));
					this.pageInfo = json.toString();
				}
				**/
			}
		}
		return "view";
	}

	public String print() throws Exception{
		ExtContext.getInstance().removeMV(ReportService.deftMvId);
		JSONObject rjson = JSONObject.fromObject(this.pageInfo);
		ReportService tser = new ReportService();
		MVContext mv = tser.json2MV(rjson);

		CompPreviewService ser = new CompPreviewService();
		ser.setParams(null);
		ser.initPreview();

		String ret = ser.buildMV(mv);
		VDOPUtils.getRequest().setAttribute("data", ret);

		return "print";
	}

	public String getPageInfo() {
		return pageInfo;
	}

	public void setPageInfo(String pageInfo) {
		this.pageInfo = pageInfo;
	}

	public String getPageId() {
		return pageId;
	}

	public void setPageId(String pageId) {
		this.pageId = pageId;
	}

	public String getPageName() {
		return pageName;
	}

	public void setPageName(String pageName) {
		this.pageName = pageName;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getView() {
		return view;
	}

	public void setView(String view) {
		this.view = view;
	}

	public String getShare() {
		return share;
	}

	public void setShare(String share) {
		this.share = share;
	}

	public Integer getOpen() {
		return open;
	}

	public void setOpen(Integer open) {
		this.open = open;
	}

}


text:
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

# add below 2 lines at bottom of ~/.bashrc
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# then run "rvm requirements"

#  ruby:
sudo /usr/bin/apt-get install -y build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion

# For JRuby, install the following:
#  jruby:
sudo /usr/bin/apt-get install  -y curl g++ openjdk-6-jre-headless
#  jruby-head:
sudo /usr/bin/apt-get install  -y ant openjdk-6-jdk

# For IronRuby, install the following:
#  ironruby:
sudo /usr/bin/apt-get install  -y curl mono-2.0-devel

sudo apt-get install -y rvm-tools #- Recoverable Virtual Memory (tools)

sudo apt-get install -y ruby-full #- Ruby full installation
sudo apt-get install -y rails #- MVC ruby based framework geared for web application development
sudo apt-get install -y rubygems #- package management framework for Ruby libraries/applications

rvm install 1.9.2
rvm use 1.9.2
ruby -v
gem install rails
git clone https://github.com/sstephenson/execjs.git

gem install execjs

rails new my_app
bundle install
cd my_app
rails server

echo "Then open your browser and type the following address (to see the application running) -
http://localhost:3000
"

redpajama_set_name: RedPajamaGithub


text:
.class public final enum Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;
.super Ljava/lang/Enum;
.source "CircleMissedEventWidgetDA.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4019
    name = "NotiMode"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Enum",
        "<",
        "Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;",
        ">;"
    }
.end annotation

# static fields
.field private static final synthetic $VALUES:[Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

.field public static final enum MissedCall:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

.field public static final enum MissedEMail:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

.field public static final enum MissedMsg:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

.field public static final enum MissedVvm:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

# direct methods
.method static constructor <clinit>()V
    .locals 6

    .prologue
    const/4 v5, 0x3

    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 60
    new-instance v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    const-string v1, "MissedCall"

    invoke-direct {v0, v1, v2}, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;-><init>(Ljava/lang/String;I)V

    sput-object v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->MissedCall:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    new-instance v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    const-string v1, "MissedMsg"

    invoke-direct {v0, v1, v3}, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;-><init>(Ljava/lang/String;I)V

    sput-object v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->MissedMsg:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    new-instance v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    const-string v1, "MissedEMail"

    invoke-direct {v0, v1, v4}, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;-><init>(Ljava/lang/String;I)V

    sput-object v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->MissedEMail:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    new-instance v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    const-string v1, "MissedVvm"

    invoke-direct {v0, v1, v5}, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;-><init>(Ljava/lang/String;I)V

    sput-object v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->MissedVvm:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    .line 59
    const/4 v0, 0x4

    new-array v0, v0, [Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    sget-object v1, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->MissedCall:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    aput-object v1, v0, v2

    sget-object v1, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->MissedMsg:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    aput-object v1, v0, v3

    sget-object v1, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->MissedEMail:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    aput-object v1, v0, v4

    sget-object v1, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->MissedVvm:Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    aput-object v1, v0, v5

    sput-object v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->$VALUES:[Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;I)V
    .locals 0
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .prologue
    .line 59
    invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V

    return-void
.end method

.method public static valueOf(Ljava/lang/String;)Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;
    .locals 1
    .parameter "name"

    .prologue
    .line 59
    const-class v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;

    move-result-object v0

    check-cast v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    return-object v0
.end method

.method public static values()[Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;
    .locals 1

    .prologue
    .line 59
    sget-object v0, Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->$VALUES:[Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    invoke-virtual {v0}, [Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lcom/android/internal/policy/impl/sec/CircleMissedEventWidgetDA$NotiMode;

    return-object v0
.end method


text:
package io.quarkus.it.main;

import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import io.quarkus.test.junit.QuarkusTest;

@QuarkusTest
class PropertyInjectionTestCase {

    @ConfigProperty(name = "web-message")
    String message;

    @Test
    void testConfigPropertyInjectedIntoTest() {
        Assertions.assertEquals("A message", message);
    }
}


text:
---
layout: post
title: C++全局变量
categories: [c++]
tags: c++
---

# C++全局变量

## 概念
  直接使用c++的全局变量,是有一定的风险的。因为你并不能清楚地容易地控制全局变量的构造和析构的顺序,所以就会很容易出问题。比如说,你有一个全局的内存分配器,又有另一个全局变量需要使用这个分配器。我们在这种情况下,通常会使用`local static`方法,即使用函数内的`static`对象来代替裸的全局变量,来解决构造顺序的问题。当我们需要这个全局变量时,就会调用相对应的函数,然后我们所需要的全局变量就会被构造,从而避免了构造顺序上的问题。然而`local static`不能解决析构顺序的问题,如果内存分配器在其他全局变量之前析构了,那么程序就会崩掉。
  所以为了优雅地解决这样的一系列的问题。我采用了一种`GlobalVariableManager`来解决这类全局变量构造和析构顺序的问题。我们先使用一个`GlobalVariableTagClass`基类来标记出哪些是全局变量,并且有一个`Release`虚方法。然后有一个`GlobalVariableManager`来用一个栈来去管理所有的全局变量,并负责在最后程序结束时依照栈的顺序来析构所有的全局变量(调用它们的`Release`方法)。而实际的全局变量的创建则是使用一个继承自`GlobalVariableTagClass`的类模板`GlobalVariable`,并结合`local static`来实现的。这样,当`GlobalVariable`构造时,它会把自己的指针插入到Manager的栈中,从而使整个程序的正确的构造顺序能被记录下来,而在析构时,Manager就能按照与构造顺序相反的顺序来析构了。`GlobalVariableManager`保证只析构一次,并且会在第一个`GlobalVariable<T>`析构前调用所有`GlobalVariable`的`Release`方法。

## 代码
  这里放一下SpaceGameEngine中的代码:

```c++
//GlobalVariable.h

#pragma once
#include "Common/MemoryManager/Include/AllocatorForSTL.hpp"

namespace SpaceGameEngine
{
	class GlobalVariableTagClass
	{
	public:
		virtual ~GlobalVariableTagClass();

		friend class GlobalVariableManager;
	private:
		virtual void Release();
	};

	class GlobalVariableManager
	{
	public:
		friend GlobalVariableManager& GetGlobalVariableManager();
		~GlobalVariableManager();

		template<typename T,typename AllocatorInterface>
		friend class GlobalVariable;
	private:
		GlobalVariableManager();
		void Insert(GlobalVariableTagClass* ptr);
		void Release();
	private:
		std::stack<GlobalVariableTagClass*> m_Content;
		bool m_IfReleased;
	};

	GlobalVariableManager& GetGlobalVariableManager();

	template<typename T, typename AllocatorInterface = MemoryManagerAllocatorInterface>
	class GlobalVariable :public GlobalVariableTagClass
	{
	public:
		template<typename... Arg>
		GlobalVariable(Arg&&... arg)
		{
			m_pContent = AllocatorInterface::New<T>(std::forward<Arg>(arg)...);
			GetGlobalVariableManager().Insert(this);
		}

		T& Get()
		{
			return *m_pContent;
		}

		~GlobalVariable()
		{
			GetGlobalVariableManager().Release();
		}
	private:
		void Release() override
		{
			AllocatorInterface::Delete(m_pContent);
		}
	private:
		T * m_pContent;
	};
}
```

```c++
//GlobalVariable.cpp
/*
Copyright 2018 creatorlxd

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.
*/
#include "stdafx.h"
#include "..\Include\GlobalVariable.h"

SpaceGameEngine::GlobalVariableTagClass::~GlobalVariableTagClass()
{

}

void SpaceGameEngine::GlobalVariableTagClass::Release()
{

}

SpaceGameEngine::GlobalVariableManager::~GlobalVariableManager()
{
	Release();
}

SpaceGameEngine::GlobalVariableManager::GlobalVariableManager()
{
	m_IfReleased = false;
}

void SpaceGameEngine::GlobalVariableManager::Insert(GlobalVariableTagClass * ptr)
{
	m_Content.push(ptr);
}

void SpaceGameEngine::GlobalVariableManager::Release()
{
	if (!m_IfReleased)
	{
		while (!m_Content.empty())
		{
			m_Content.top()->Release();
			m_Content.pop();
		}
		m_IfReleased = true;
	}
}

SpaceGameEngine::GlobalVariableManager & SpaceGameEngine::GetGlobalVariableManager()
{
	static GlobalVariableManager g_GlobalVariableManager;
	return g_GlobalVariableManager;
}
```

  使用示例:
```c++
struct Test
{
	int i;
};

Test& GetTest()	//local static
{
	static GlobalVariable<Test> g_Test;
	return g_Test.Get();
}
```


text:
<?php

namespace backend\models;

use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\vendor\AppConstants;
use common\vendor\AppLabels;
use common\components\helpers\Converter;

/**
 * EnvironmentPermitSearch represents the model behind the search form about `backend\models\EnvironmentPermit`.
 */
class EnvironmentPermitSearch extends EnvironmentPermit
{
    public $filename;
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'sector_id', 'power_plant_id', 'ep_year'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function scenarios()
    {
        // bypass scenarios() implementation in the parent class
        return Model::scenarios();
    }

    /**
     * Creates data provider instance with search query applied
     *
     * @param array $params
     *
     * @return ActiveDataProvider
     */
    public function search($params)
    {
        $query = EnvironmentPermit::find();

        // add conditions that should always apply here

        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);

        $this->load($params);

        if (!$this->validate()) {
            // uncomment the following line if you do not want to return any records when validation fails
            // $query->where('0=1');
            return $dataProvider;
        }

        // grid filtering conditions
        $query->andFilterWhere([
            'id' => $this->id,
            'sector_id' => $this->sector_id,
            'power_plant_id' => $this->power_plant_id,
            'ep_year' => $this->ep_year,
        ]);

        return $dataProvider;
    }

    public function exportDocumentValidation(\PHPExcel &$objPHPExcel, $sheetIndex, $model){
        //Creating sheet
        $activeSheet = $objPHPExcel->createSheet($sheetIndex);
        $activeSheet->setTitle(AppLabels::DOCUMENT_VALIDATION);

        // set dimension

        // set row width

        // set column width
        $activeSheet->getColumnDimension('A')->setWidth(5);
        $activeSheet->getColumnDimension('B')->setWidth(30);
        $activeSheet->getColumnDimension('C')->setWidth(30);
        $activeSheet->getColumnDimension('D')->setWidth(30);
        $activeSheet->getColumnDimension('E')->setWidth(30);
        $activeSheet->getColumnDimension('F')->setWidth(30);
        $activeSheet->getColumnDimension('G')->setWidth(30);

        //header
        $activeSheet->mergeCells('A1:C1');
        $activeSheet->setCellValue('A1', "Formulir Self Assessment Izin Lingkungan Proper");
        $activeSheet->mergeCells('A3:B3');
        $activeSheet->setCellValue('A3', "Daftar Dokumen Lingkungan");

        //header style
        $styleArray = [
            'font' => [
                'bold' => true,
            ],
            'alignment' => [
                'horizontal' => \PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
                'vertical' => \PHPExcel_Style_Alignment::VERTICAL_CENTER,
                'wrap' => true
            ],
            'borders' => [
                'allborders' => [
                    'style' => \PHPExcel_Style_Border::BORDER_THIN,
                    'color' => [
                        'argb' => \PHPExcel_Style_Color::COLOR_BLACK
                    ]
                ]
            ]
        ];
        $activeSheet->getStyle('A1:C1')->applyFromArray($styleArray);
        $activeSheet->getStyle('A3:B3')->applyFromArray($styleArray);

        //==========================================================================

        // body header

        $styleArray = [
            'font' => [
                'bold' => false,
                'size' => 13,
                'color' => [
                    'argb' => \PHPExcel_Style_Color::COLOR_BLACK
                ]
            ],
            'alignment' => [
                'horizontal' => \PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
                'vertical' => \PHPExcel_Style_Alignment::VERTICAL_CENTER,
                'wrap' => true
            ],
            'borders' => [
                'allborders' => [
                    'style' => \PHPExcel_Style_Border::BORDER_THIN,
                    'color' => [
                        'argb' => \PHPExcel_Style_Color::COLOR_BLACK
                    ]
                ]
            ]
        ];

        $activeSheet->setCellValue('A6', AppLabels::NUMBER_SHORT);
        $activeSheet->setCellValue('B6', sprintf("%s %s %s", AppLabels::NAME, AppLabels::DOCUMENTS, AppLabels::ENVIRONMENT));
        $activeSheet->setCellValue('C6', sprintf("%s %s %s", AppLabels::INSTITUTION, AppLabels::DOCUMENT_VALIDATION, AppLabels::ENVIRONMENT));
        $activeSheet->setCellValue('D6', sprintf("%s %s %s", AppLabels::DATE, AppLabels::DOCUMENT_VALIDATION, AppLabels::ENVIRONMENT));
        $activeSheet->setCellValue('E6', sprintf("%s %s", AppLabels::CAPACITY_LIMIT, AppLabels::PRODUCTION));
        $activeSheet->setCellValue('F6', sprintf("%s %s", AppLabels::CAPACITY_REALIZATION, AppLabels::PRODUCTION));
        $activeSheet->setCellValue('G6', "Dampak Penting yang dikelola");

        $activeSheet->getStyle('A6')->applyFromArray($styleArray);
        $activeSheet->getStyle('B6')->applyFromArray($styleArray);
        $activeSheet->getStyle('C6')->applyFromArray($styleArray);
        $activeSheet->getStyle('D6')->applyFromArray($styleArray);
        $activeSheet->getStyle('E6')->applyFromArray($styleArray);
        $activeSheet->getStyle('F6')->applyFromArray($styleArray);
        $activeSheet->getStyle('G6')->applyFromArray($styleArray);

        //body header style

        //==========================================================================

        //body
        $styleArray = [
            'alignment' => [
                'horizontal' => \PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
                'vertical' => \PHPExcel_Style_Alignment::VERTICAL_CENTER,
                'wrap' => true
            ],
            'borders' => [
                'allborders' => [
                    'style' => \PHPExcel_Style_Border::BORDER_THIN,
                    'color' => [
                        'argb' => \PHPExcel_Style_Color::COLOR_BLACK
                    ]
                ]
            ],
        ];

        $rowIndex = 7;
        foreach($model as $key => $detail){
            $activeSheet->setCellValue('A' . $rowIndex, ($key+1));
            $activeSheet->getStyle('A' . $rowIndex)->applyFromArray($styleArray);
            $activeSheet->setCellValue('B' . $rowIndex, $detail->ep_document_name);
            $activeSheet->getStyle('B' . $rowIndex)->applyFromArray($styleArray);
            $activeSheet->setCellValue('C' . $rowIndex, $detail->ep_institution);
            $activeSheet->getStyle('C' . $rowIndex)->applyFromArray($styleArray);
            $activeSheet->setCellValue('D' . $rowIndex, $detail->ep_date);
            $activeSheet->getStyle('D' . $rowIndex)->applyFromArray($styleArray);
            $activeSheet->setCellValue('E' . $rowIndex, $detail->ep_limit_capacity);
            $activeSheet->getStyle('E' . $rowIndex)->applyFromArray($styleArray);
            $activeSheet->setCellValue('F' . $rowIndex, $detail->ep_realization_capacity);
            $activeSheet->getStyle('F' . $rowIndex)->applyFromArray($styleArray);
            if (!empty($detail->attachmentOwner)) {
                $attachment = Converter::attachmentsFullPath($detail->attachmentOwner);
                $activeSheet->setCellValue('G' . $rowIndex, $attachment['label']);
                $activeSheet->getCell('G' . $rowIndex)->getHyperlink()->setUrl($attachment['path']);
                $activeSheet->getCell('G' . $rowIndex)->getStyle()->getFont()->getColor()->setARGB(\PHPExcel_Style_Color::COLOR_BLUE);
                $activeSheet->getCell('G' . $rowIndex)->getStyle()->getAlignment()->setWrapText(true);
                $activeSheet->getStyle('G' . $rowIndex)->applyFromArray($styleArray);
            }

            $rowIndex++;
        }

        //==========================================================================

        //footer

        //==========================================================================

        //extra footer
    }

    public function exportParameterReport(\PHPExcel &$objPHPExcel, $sheetIndex, $model){
        //Creating sheet
        $activeSheet = $objPHPExcel->createSheet($sheetIndex);
        $activeSheet->setTitle(AppLabels::BM_REPORT_PARAMETER);

        // set dimension

        // set row width

        // set column width
        $activeSheet->getColumnDimension('A')->setWidth(50);

        //header
        $activeSheet->mergeCells('A1:B1');
        $activeSheet->setCellValue('A1', "Bukti Pelaporan RKL-RPL atau UKL-UPL");

        //header style
        $styleArray = [
            'font' => [
                'bold' => true,
            ],
            'alignment' => [
                'horizontal' => \PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
                'vertical' => \PHPExcel_Style_Alignment::VERTICAL_CENTER,
                'wrap' => true
            ],
            'borders' => [
                'allborders' => [
                    'style' => \PHPExcel_Style_Border::BORDER_THIN,
                    'color' => [
                        'argb' => \PHPExcel_Style_Color::COLOR_BLACK
                    ]
                ]
            ]
        ];
        $activeSheet->getStyle('A1:B1')->applyFromArray($styleArray);

        //==========================================================================

        // body header

        $styleArrayBodyHeader = [
            'font' => [
                'bold' => false,
                'size' => 13,
                'color' => [
                    'argb' => \PHPExcel_Style_Color::COLOR_BLACK
                ]
            ],
            'alignment' => [
                'horizontal' => \PHPExcel_Style_Alignment::HORIZONTAL_LEFT,
                'vertical' => \PHPExcel_Style_Alignment::VERTICAL_CENTER,
                'wrap' => true
            ],
            'borders' => [
                'allborders' => [
                    'style' => \PHPExcel_Style_Border::BORDER_THIN,
                    'color' => [
                        'argb' => \PHPExcel_Style_Color::COLOR_BLACK
                    ]
                ]
            ],
            'fill' => [
                'type' => \PHPExcel_Style_Fill::FILL_SOLID,
                'startcolor' => ['argb' => 'FFF2F2F2']
            ],
        ];

        $activeSheet->setCellValue('A3', AppLabels::IPN_INSTANCE);
        $activeSheet->setCellValue('A4', AppLabels::DISTRICT);
        $activeSheet->setCellValue('A5', AppLabels::PROVINCE);
        $activeSheet->setCellValue('A6', AppLabels::ENVIRONMENT_MINISTRY);

        $activeSheet->getStyle('A3')->applyFromArray($styleArrayBodyHeader);
        $activeSheet->getStyle('A4')->applyFromArray($styleArray);
        $activeSheet->getStyle('A5')->applyFromArray($styleArray);
        $activeSheet->getStyle('A6')->applyFromArray($styleArray);

        //body header style

        //==========================================================================

        //body
        $styleArray = [
            'alignment' => [
                'horizontal' => \PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
                'vertical' => \PHPExcel_Style_Alignment::VERTICAL_CENTER,
                'wrap' => true
            ],
            'borders' => [
                'allborders' => [
                    'style' => \PHPExcel_Style_Border::BORDER_THIN,
                    'color' => [
                        'argb' => \PHPExcel_Style_Color::COLOR_BLACK
                    ]
                ]
            ],
        ];

        $columnIndexNumber = \PHPExcel_Cell::columnIndexFromString('B');

        foreach($model as $keyR => $report){
            $activeSheet->getColumnDimension(\PHPExcel_Cell::stringFromColumnIndex($columnIndexNumber-1))->setWidth(40);
            $column = \PHPExcel_Cell::stringFromColumnIndex($columnIndexNumber-1) . '3';
            $activeSheet->setCellValue($column, $report->ep_quarter);
            $activeSheet->getStyle($column)->applyFromArray($styleArrayBodyHeader);
            foreach ($report->environmentPermitDistricts as $keyD => $district) {

                $objRichText = new \PHPExcel_RichText();
                $string1 = $objRichText->createTextRun($district->ep_district);
                $string1->getFont()->setBold(true);

                $column = \PHPExcel_Cell::stringFromColumnIndex($columnIndexNumber - 1) . '4';

                if (!empty($district->attachmentOwner)) {
                    $break = $objRichText->createTextRun("   ");

                    $attachment = Converter::attachmentsFullPath($district->attachmentOwner);
                    $string2 = $objRichText->createTextRun($attachment['label']);
                    $string2->getFont()->getColor()->setARGB(\PHPExcel_Style_Color::COLOR_BLUE);
                    $activeSheet->getCell($column)->getHyperlink()->setUrl($attachment['path']);
                }
                $activeSheet->setCellValue($column, $objRichText);
                $activeSheet->getStyle($column)->applyFromArray($styleArray);
            }
            foreach ($report->environmentPermitProvinces as $keyP => $province) {

                $objRichText = new \PHPExcel_RichText();
                $string1 = $objRichText->createTextRun($province->ep_province);
                $string1->getFont()->setBold(true);

                $column = \PHPExcel_Cell::stringFromColumnIndex($columnIndexNumber - 1) . '5';
                if (!empty($province->attachmentOwner)) {
                    $attachment = Converter::attachmentsFullPath($province->attachmentOwner);
                    $break = $objRichText->createTextRun("   ");

                    $string2 = $objRichText->createTextRun($attachment['label']);
                    $string2->getFont()->getColor()->setARGB(\PHPExcel_Style_Color::COLOR_BLUE);
                    $activeSheet->getCell($column)->getHyperlink()->setUrl($attachment['path']);
                }

                $activeSheet->setCellValue($column, $objRichText);
                $activeSheet->getStyle($column)->applyFromArray($styleArray);
            }
            foreach ($report->environmentPermitMinistrys as $keyM => $ministry) {

                $objRichText = new \PHPExcel_RichText();
                $string1 = $objRichText->createTextRun($ministry->ep_ministry);
                $string1->getFont()->setBold(true);

                $column = \PHPExcel_Cell::stringFromColumnIndex($columnIndexNumber - 1) . '6';
                if (!empty($ministry->attachmentOwner)) {
                    $attachment = Converter::attachmentsFullPath($ministry->attachmentOwner);
                    $break = $objRichText->createTextRun("   ");

                    $string2 = $objRichText->createTextRun($attachment['label']);
                    $string2->getFont()->getColor()->setARGB(\PHPExcel_Style_Color::COLOR_BLUE);
                    $activeSheet->getCell($column)->getHyperlink()->setUrl($attachment['path']);
                }

                $activeSheet->setCellValue($column, $objRichText);
                $activeSheet->getStyle($column)->applyFromArray($styleArray);
            }

            $columnIndexNumber++;
        }

        //==========================================================================

        //footer

        //==========================================================================

        //extra footer
    }

    public function export($id) {

        $query = EnvironmentPermit::find()->where(['id' => $id]);

        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);

        if (!$this->validate()) {
            // uncomment the following line if you do not want to return any records when validation fails
            // $query->where('0=1');
            return $dataProvider;
        }

        $model = $dataProvider->getModels()[0];

        $documentValidationModel = $model->environmentPermitDetails;
        $parameterReportModel = $model->environmentPermitReports;
        // export to excel

        //main excel setup
        $objPHPExcel = new \PHPExcel();
        $filename = sprintf(AppConstants::REPORT_NAME_ENVIRONMENT_PERMIT, Date('dmYHis'));
        $defaultStyleArray = [
            'font' => [
                'size' => 10
            ],
        ];

        $objPHPExcel->getDefaultStyle()->applyFromArray($defaultStyleArray);

        $sheetIndex = 0;
        //Creating sheet
        $this->exportDocumentValidation($objPHPExcel, $sheetIndex++, $documentValidationModel);
        $this->exportParameterReport($objPHPExcel, $sheetIndex++, $parameterReportModel);

        $objPHPExcel->removeSheetByIndex($objPHPExcel->getSheetCount() - 1);
        $objPHPExcel->setActiveSheetIndex(0);

        $objWriter = new \PHPExcel_Writer_Excel2007($objPHPExcel);
        $objWriter->save(Yii::getAlias(AppConstants::THEME_EXCEL_EXPORT_DIR) . $filename);

        $this->filename = $filename;

        return true;
    }
}


text:
Moment

        <form name="eventForm" novalidate>
            <fieldset>

                    Title
                    <input type="text" id="titlee" name="title" class="form-control" ng-model="event.title" placeholder="Title" required />

Title is required.

                    Description
                    <input type="text" id="description" name="description" class="form-control" ng-model="event.description" placeholder="Description" required />

Description is required.

                      Select Image <input type="file" nv-file-select uploader="uploader" required>

                    <button ng-click="uploadProfilePicture();" class="btn btn-primary">Edit Moment</button>

            </fieldset>
        </form>


text:
function tform = ht_mk_tform(r, t)
	% From a standard 3x3 rotation and 3x1 translation, make a homogeneous
	% transformation matrix
	tform = [r, t; 0 0 0 1];
end


text:
describe('protractor control flow', function() {
  it('should not deadlock', function() {
    browser.driver.wait(function() {
      return true;
    }, 1000);
    expect(true).toEqual(true);
  });
});


text:
package br.com.starcode.agenda.model;

public class OrdenacaoEntrada {

	private String coluna;
	private String ordem;

	public String getColuna() {
		return coluna;
	}

	public void setColuna(String coluna) {
		this.coluna = coluna;
	}

	public String getOrdem() {
		return ordem;
	}

	public void setOrdem(String ordem) {
		this.ordem = ordem;
	}

	public String getColunaDefault() {
		return !"descricao".equals(coluna) ? "horario" : "descricao";
	}

	public String getOrdemDefault() {
		return !"desc".equals(ordem) ? "asc" : "desc";
	}

	public String getOrderBy() {
		return getColunaDefault() + " " + getOrdemDefault();
	}

}


text:
tail -f /var/log/system.log |
while read LINE
do
  echo $LINE
done


text:
FOUNDATION_EXPORT double Pods_ASAlertViewController_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_ASAlertViewController_ExampleVersionString[];


text:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
	colors="true"
	backupGlobals="false"
	backupStaticAttributes="false"
	stopOnError="true"
    stopOnFailure="true"
    >

	<testsuite name="CloudStack PHP Client Test Suite">
		<directory>testcases</directory>
	</testsuite>

</phpunit>


text:
from oslo_config import cfg
from oslo_log import log as logging

from sahara.plugins.vanilla.hadoop2 import config_helper as c_helper
from sahara.utils import xmlutils as x

CONF = cfg.CONF
CONF.import_opt("enable_data_locality", "sahara.topology.topology_helper")

LOG = logging.getLogger(__name__)

CORE_DEFAULT = x.load_hadoop_xml_defaults(
    'plugins/vanilla/v2_4_1/resources/core-default.xml')

HDFS_DEFAULT = x.load_hadoop_xml_defaults(
    'plugins/vanilla/v2_4_1/resources/hdfs-default.xml')

MAPRED_DEFAULT = x.load_hadoop_xml_defaults(
    'plugins/vanilla/v2_4_1/resources/mapred-default.xml')

YARN_DEFAULT = x.load_hadoop_xml_defaults(
    'plugins/vanilla/v2_4_1/resources/yarn-default.xml')

OOZIE_DEFAULT = x.load_hadoop_xml_defaults(
    'plugins/vanilla/v2_4_1/resources/oozie-default.xml')

HIVE_DEFAULT = x.load_hadoop_xml_defaults(
    'plugins/vanilla/v2_4_1/resources/hive-default.xml')

XML_CONFS = {
    "Hadoop": [CORE_DEFAULT],
    "HDFS": [HDFS_DEFAULT],
    "YARN": [YARN_DEFAULT],
    "MapReduce": [MAPRED_DEFAULT],
    "JobFlow": [OOZIE_DEFAULT],
    "Hive": [HIVE_DEFAULT]
}

ENV_CONFS = {
    "YARN": {
        'ResourceManager Heap Size': 1024,
        'NodeManager Heap Size': 1024
    },
    "HDFS": {
        'NameNode Heap Size': 1024,
        'SecondaryNameNode Heap Size': 1024,
        'DataNode Heap Size': 1024
    },
    "MapReduce": {
        'JobHistoryServer Heap Size': 1024
    },
    "JobFlow": {
        'Oozie Heap Size': 1024
    }
}

# Initialise plugin Hadoop configurations
PLUGIN_XML_CONFIGS = c_helper.init_xml_configs(XML_CONFS)
PLUGIN_ENV_CONFIGS = c_helper.init_env_configs(ENV_CONFS)

def _init_all_configs():
    configs = []
    configs.extend(PLUGIN_XML_CONFIGS)
    configs.extend(PLUGIN_ENV_CONFIGS)
    configs.extend(c_helper.PLUGIN_GENERAL_CONFIGS)
    return configs

PLUGIN_CONFIGS = _init_all_configs()

def get_plugin_configs():
    return PLUGIN_CONFIGS

def get_xml_configs():
    return PLUGIN_XML_CONFIGS

def get_env_configs():
    return ENV_CONFS


text:
{% extends 'base/layout.html' %}
{% load helpers %}
{% load form_helpers %}
{% load render_table from django_tables2 %}

{% block title %}Search{% endblock %}

{% block tabs %}

      <button class="nav-link active" type="button" role="tab">
        Results
      </button>

{% endblock tabs %}

{% block content-wrapper %}

    {% if request.GET.q %}
        {% if results %}

                    {% for obj_type in results %}

{{ obj_type.name|bettertitle }}

                                {% render_table obj_type.table 'inc/table.html' %}

                                    {% if obj_type.table.page.has_next %}
                                        See All {{ obj_type.table.page.paginator.count }} Results
                                    {% else %}
                                        Refine Search
                                    {% endif %}

                    {% endfor %}

                            Search Results

                                {% for obj_type in results %}

                                          {% badge obj_type.table.page.paginator.count %}

                                        {{ obj_type.name|bettertitle }}

                                {% endfor %}

        {% else %}

No results found

        {% endif %}
    {% else %}

                <form action="{% url 'search' %}" method="get" class="form form-horizontal">

                            Search

                            {% render_form form %}

                            <button type="submit" class="btn btn-primary">
                                 Search
                            </button>

                </form>

    {% endif %}

{% endblock content-wrapper %}


text:
package net.dirtyfilthy.bouncycastle.asn1;

/**
 * Marker interface for CHOICE objects - if you implement this in a role your
 * own object any attempt to tag the object implicitly will convert the tag to
 * an explicit one as the encoding rules require.
 * <p>
 * If you use this interface your class should also implement the getInstance
 * pattern which takes a tag object and the tagging mode used.
 */
public interface ASN1Choice
{
    // marker interface
}


text:
#pragma once

#include "il2cpp-config.h"

#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif

#include <stdint.h>

#include "mscorlib_System_MulticastDelegate3201952435.h"
#include "mscorlib_System_Void1841601450.h"

// System.Object
struct Il2CppObject;
// System.EventArgs
struct EventArgs_t3289624707;
// System.IAsyncResult
struct IAsyncResult_t1999651008;
// System.AsyncCallback
struct AsyncCallback_t163412349;

#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif

// Mono.Security.Cryptography.DSAManaged/KeyGeneratedEventHandler
struct  KeyGeneratedEventHandler_t2001522803  : public MulticastDelegate_t3201952435
{
public:

public:
};

#ifdef __clang__
#pragma clang diagnostic pop
#endif


text:
<?php
class Kwc_List_GalleryBasic_TestComponent extends Kwc_List_Gallery_Component
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['childModel'] = 'Kwc_List_GalleryBasic_TestModel';
        $ret['ownModel'] = new Kwf_Model_FnF(array(
            'primaryKey' => 'component_id',
            'data' => array(
                array('component_id'=>'root_page1', 'columns' => 2)
            )
        ));
        $ret['generators']['child']['component'] = 'Kwc_List_GalleryBasic_ImageEnlarge_TestComponent';
        return $ret;
    }
}


text:
package domain

import "go2o/core/infrastructure/domain"

var (
	ErrState = domain.NewError(
		"err_state", "state error")

	ErrPwdCannotSame = domain.NewError(
		"Err_Pwd_Can_not_Same", "新密码不能与旧密码相同")

	ErrPwdOldPwdNotRight = domain.NewError(
		"Err_Pwd_Pld_Pwd_Not_Right", "原密码不正确")
)


text:
#ifndef MATH_UTILS_HPP
#define MATH_UTILS_HPP

#include <stdint.h>
#include <math.h>

#include "utils.hpp"
#include "nstl.hpp"
#include "mkldnn_traits.hpp"

#if defined(MKLDNN_X86_64)
#include "immintrin.h"
#endif

namespace mkldnn {
namespace impl {
namespace math {

/** rounds @p f to an integer according to the mxcsr register */
inline int mxcsr_round(float f) {
#if defined(MKLDNN_X86_64)
    return _mm_cvtss_si32(_mm_load_ss(&f));
#else
    return (int)nearbyintf(f); // optimism
#endif
}

template <typename data_t, typename acc_t>
inline typename utils::enable_if<!nstl::is_integral<data_t>::value,
       typename utils::remove_reference<data_t>::type>::type
saturate(const acc_t &x) {
    return (typename utils::remove_reference<data_t>::type)x;
}

template <typename data_t, typename acc_t>
inline typename utils::enable_if<nstl::is_integral<data_t>::value,
       typename utils::remove_reference<data_t>::type>::type
saturate(const acc_t &x) {
    acc_t v = x;
    if (v < (acc_t)nstl::numeric_limits<data_t>::lowest())
        v = (acc_t)nstl::numeric_limits<data_t>::lowest();
    if (v > (acc_t)nstl::numeric_limits<data_t>::max())
        v = (acc_t)nstl::numeric_limits<data_t>::max();
    return (typename utils::remove_reference<data_t>::type)v;
}

template <typename data_t>
double saturate(const double &x) {
    double v = x;
    if (v < (double)nstl::numeric_limits<data_t>::lowest())
        v = (double)nstl::numeric_limits<data_t>::lowest();
    if (v > (double)nstl::numeric_limits<data_t>::max())
        v = (double)nstl::numeric_limits<data_t>::max();
    return v;
}

template <> inline int8_t saturate<int8_t, uint8_t>(const uint8_t &x) {
    return x <= 127u ? x : 127;
}

template <> inline uint8_t saturate<uint8_t, int8_t>(const int8_t &x) {
    return x >= 0 ? x : 0;
}

template <typename out_t>
typename utils::enable_if<nstl::is_integral<out_t>::value, out_t>::type
out_round(float v) { return (out_t)mxcsr_round(v); }

template <typename out_t>
typename utils::enable_if<nstl::is_integral<out_t>::value, out_t>::type
out_round(double v) { return (out_t)mxcsr_round((float)v); }

template <typename out_t>
typename utils::enable_if<!nstl::is_integral<out_t>::value, out_t>::type
out_round(float v) { return v; }

inline int gcd(int a, int b) {
    a = impl::nstl::abs(a);
    b = impl::nstl::abs(b);
    if (a < b) { int x = a; a = b; b = x; }

    if (b == 0) return a;

    int r;
    while ((r = a % b) != 0) { a = b; b = r; }

    return b;
}

template <typename T>
inline bool is_pow2(const T& v) { return (v & (v - 1)) == 0; }

/** returns floor(log2(v)), aka the position of the leftmost non-0 bit */
inline int ilog2q(size_t v) {
    if (v == 0)
        return -1;

    int p = 0;
#   define CP(pw) do { if (v >= (1ull << pw)) { v >>= pw; p += pw; } } while(0)
    CP(32); CP(16); CP(8); CP(4); CP(2); CP(1);
#   undef CP
    return p;
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U one_m_square(T x) {
    return (U)(1 - x) * (1 + x);
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U x_m_square(T x) {
    return (U)(1 - x) * x;
}

/* activation */
template <typename T, typename A,
         typename U = typename utils::remove_reference<T>::type>
inline U relu_fwd(T s, A alpha) {
    return s > 0 ? s : (U)(s * alpha);
}
template <typename T, typename A,
         typename U = typename utils::remove_reference<T>::type>
inline U relu_bwd(T dd, T s, A alpha) {
    return s > 0 ? dd : (U)(dd * alpha);
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U tanh_fwd(T s) {
    const float e = tanhf((float) s);
    return (U)e;
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U tanh_bwd(T dd, T s) {
    const float e = tanh_fwd<float>((float) s);
    return (U)(dd * (1 - e) * (1 + e));
}

template <typename T, typename A,
         typename U = typename utils::remove_reference<T>::type>
inline U elu_fwd(T s, A alpha) {
    return s > 0 ? s : (U)(alpha * (::expm1f((float)s)));
}
template <typename T, typename A,
         typename U = typename utils::remove_reference<T>::type>
 inline U elu_bwd(T dd, T s, A alpha) {
    return (U)(dd * (s > 0 ? 1 : alpha * ::expf((float)s)));
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U square_fwd(T s) {
    return s * s;
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U square_bwd(T dd, T s) {
    return dd * 2 * s;
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U abs_fwd(T s) {
    return s > 0 ? s : (U)-s;
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U abs_bwd(T dd, T s) {
    return s > 0 ? dd : s < 0 ? (U)-dd : (U)0;
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U sqrt_fwd(T s) {
    return s > 0 ? (U)(::sqrtf((float)(s))) : (U)0;
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U sqrt_bwd(T dd, T s) {
    return s > 0
        ? (U)(dd / (2 * ::sqrtf((float)(s))))
        : (U)0;
}

template <typename T, typename A,
         typename U = typename utils::remove_reference<T>::type>
inline U linear_fwd(T s, A alpha, A beta) {
    return (U)(alpha * s + beta);
}

template <typename T, typename A,
         typename U = typename utils::remove_reference<T>::type>
inline U linear_bwd(T dd, T s, A alpha, A beta) {
    (void) s;
    (void) beta;
    return (U)(dd * alpha);
}

template <typename T, typename A,
         typename U = typename utils::remove_reference<T>::type>
inline U bounded_relu_fwd(T s, A alpha) {
    s = s > 0 ? s : (U)0;
    return s > alpha ? (U)(alpha) : s;
}

template <typename T, typename A,
         typename U = typename utils::remove_reference<T>::type>
inline U bounded_relu_bwd(T dd, T s, A alpha) {
    return dd * (0 < s && s < alpha ? 1 : 0);
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U soft_relu_fwd(T s) {
    float max_logf = 8.872284e+01; //::logf(FLT_MAX)
    return s < max_logf ? (U)(::log1pf(::expf((float)s))) : s;
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U soft_relu_bwd(T dd, T s) {
    return (U)(dd / (1 + ::expf((float)(-s))));
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U logistic_fwd(T s) {
    float v = ::expf((float) -s);
    return (U)(1. / (1 + v));
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U logistic_bwd(T dd, T s) {
    float v = logistic_fwd<T, float>(s);
    return (U)(dd * v * (1 - v));
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U exp_fwd(T s) {
    return (U)(::expf((float)s));
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U exp_bwd(T dd, T s) {
    return dd * exp_fwd<T, U>(s);
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U gelu_fwd(T s) {
    const float sqrt_2_over_pi = 0.797884;
    const float fitting_const = 0.044715;
    float v = tanh_fwd(sqrt_2_over_pi * s * (1 + fitting_const * s * s));
    return (U)(0.5 * s * (1. + v));
}

template <typename T, typename U = typename utils::remove_reference<T>::type>
inline U gelu_bwd(T dd, T s) {
    const float sqrt_2_over_pi = 0.797884;
    const float fitting_const = 0.044715;
    float g = s * sqrt_2_over_pi * (1 + fitting_const * s * s);
    float dg = sqrt_2_over_pi * (1 + 3 * fitting_const * s * s);
    float v = tanh_fwd(g);
    return (U)(dd * 0.5 * (1. + v) * (1. + s * (1 - v) * dg));
}

inline bool eltwise_fwd_preserves_zero(alg_kind_t alg, bool jit_impl = false) {
    using namespace alg_kind;
    using namespace utils;
    const bool preserves_zero = true
        && !one_of(alg, eltwise_linear, eltwise_soft_relu, eltwise_logistic,
                eltwise_exp)
        && IMPLICATION(jit_impl, !one_of(alg, eltwise_elu, eltwise_tanh));
    return preserves_zero;
}

inline float get_bias(const char *bias, size_t offset, data_type_t data_type)
{
    if (!bias)
        return 0.0f;

#define CASE(dt) \
    case dt: return (float)((const prec_traits<dt>::type *)bias)[offset]

    switch (data_type) {
    CASE(data_type::s8);
    CASE(data_type::u8);
    CASE(data_type::s32);
    CASE(data_type::f32);
    default: assert(!"unimplemented");
    }
    return 0; // never happens (should probably be a NaN)
#undef CASE
}

}
}
}

#endif


text:
<title>Class: 'time proportional phase incrementation'</title>
<meta http-equiv='content-type' content='text/html;charset=utf8'>
<link rel='stylesheet' href='../default.css' type='text/css' />

Class: 'time proportional phase incrementation'

http://nmrML.org/nmrCV#NMR:1400051

Annotations (2)

comment "defneed
   synonym: TPPI" (string)

label "time proportional phase incrementation" (string)

Superclasses (1)

encoding

Usage (1)

Class: 'time proportional phase incrementation'


text:
package com.amazonaws.services.lexmodelsv2.model.transform;

import javax.annotation.Generated;

import com.amazonaws.SdkClientException;
import com.amazonaws.services.lexmodelsv2.model.*;

import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;

/**
 * S3BucketLogDestinationMarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class S3BucketLogDestinationMarshaller {

    private static final MarshallingInfo<String> KMSKEYARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("kmsKeyArn").build();
    private static final MarshallingInfo<String> S3BUCKETARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
            .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("s3BucketArn").build();
    private static final MarshallingInfo<String> LOGPREFIX_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("logPrefix").build();

    private static final S3BucketLogDestinationMarshaller instance = new S3BucketLogDestinationMarshaller();

    public static S3BucketLogDestinationMarshaller getInstance() {
        return instance;
    }

    /**
     * Marshall the given parameter object.
     */
    public void marshall(S3BucketLogDestination s3BucketLogDestination, ProtocolMarshaller protocolMarshaller) {

        if (s3BucketLogDestination == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(s3BucketLogDestination.getKmsKeyArn(), KMSKEYARN_BINDING);
            protocolMarshaller.marshall(s3BucketLogDestination.getS3BucketArn(), S3BUCKETARN_BINDING);
            protocolMarshaller.marshall(s3BucketLogDestination.getLogPrefix(), LOGPREFIX_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }

}


text:
/*
 * zsconfig.defaults.h - ZipScript-C default config file
 *
 * DO NOT EDIT THIS FILE!!
 *
 * This file contains all settings, and it's default values. You should not edit
 * this file, but instead copy the settings you need into zsconfig.h, which
 * will override the default settings found in here. So do not remove or
 * change anything in this file!! A complete list of settings, with comments
 * can be found in README.ZSCONFIG
 */

#ifndef GROUPFILE
#define GROUPFILE_is_defaulted
#define GROUPFILE                                 "/etc/group"
#endif

#ifndef PASSWDFILE
#define PASSWDFILE_is_defaulted
#define PASSWDFILE                                "/etc/passwd"
#endif

#ifndef accept_before_complete
#define accept_before_complete_is_defaulted
#define accept_before_complete                    FALSE
#endif

#ifndef accept_script
#define accept_script_is_defaulted
#define accept_script                             "/bin/imdb_parse.sh"
#endif

#ifndef affil_script
#define affil_script_is_defaulted
#define affil_script                              "/bin/affilscript.sh"
#endif

#ifndef allow_dir_chown_in_ng_chown
#define allow_dir_chown_in_ng_chown_is_defaulted
#define allow_dir_chown_in_ng_chown               FALSE
#endif

#ifndef allow_error2_in_unzip
#define allow_error2_in_unzip_is_defaulted
#define allow_error2_in_unzip                     FALSE
#endif

#ifndef allow_file_resume
#define allow_file_resume_is_defaulted
#define allow_file_resume                         FALSE
#endif

#ifndef allow_files_chown_in_ng_chown
#define allow_files_chown_in_ng_chown_is_defaulted
#define allow_files_chown_in_ng_chown             FALSE
#endif

#ifndef allow_files_not_in_sfv
#define allow_files_not_in_sfv_is_defaulted
#define allow_files_not_in_sfv                    FALSE
#endif

#ifndef allow_gid_change_in_ng_chown
#define allow_gid_change_in_ng_chown_is_defaulted
#define allow_gid_change_in_ng_chown              FALSE
#endif

#ifndef allow_slash_in_sfv
#define allow_slash_in_sfv_is_defaulted
#define allow_slash_in_sfv                        TRUE
#endif

#ifndef allow_uid_change_in_ng_chown
#define allow_uid_change_in_ng_chown_is_defaulted
#define allow_uid_change_in_ng_chown              FALSE
#endif

#ifndef allowed_constant_bitrates
#define allowed_constant_bitrates_is_defaulted
#define allowed_constant_bitrates                 "160,192"
#endif

#ifndef allowed_genres
#define allowed_genres_is_defaulted
#define allowed_genres                            "Top 40,Pop Funk,Rock,Pop"
#endif

#ifndef allowed_types
#define allowed_types_is_defaulted
#define allowed_types                             "jpg,cue,m3u,txt,vob,png,m2ts,ts"
#endif

#ifndef allowed_types_exemption_dirs
#define allowed_types_exemption_dirs_is_defaulted
#define allowed_types_exemption_dirs              "/site/incoming/musicvideos/"
#endif

#ifndef allowed_years
#define allowed_years_is_defaulted
#define allowed_years                             "2007,2008,2009,2010,2011,2012"
#endif

#ifndef always_scan_audio_syms
#define always_scan_audio_syms_is_defaulted
#define always_scan_audio_syms                    FALSE
#endif

#ifndef announce_norace
#define announce_norace_is_defaulted
#define announce_norace                           TRUE
#endif

#ifndef audio_allowed_genre_check
#define audio_allowed_genre_check_is_defaulted
#define audio_allowed_genre_check                 FALSE
#endif

#ifndef audio_artist_noid3
#define audio_artist_noid3_is_defaulted
#define audio_artist_noid3                        FALSE
#endif

#ifndef audio_artist_nosub
#define audio_artist_nosub_is_defaulted
#define audio_artist_nosub                        FALSE
#endif

#ifndef audio_artist_path
#define audio_artist_path_is_defaulted
#define audio_artist_path                         "/site/incoming/music.by.artist/"
#endif

#ifndef audio_artist_sort
#define audio_artist_sort_is_defaulted
#define audio_artist_sort                         FALSE
#endif

#ifndef audio_artist_sort_various_only
#define audio_artist_sort_various_only_is_defaulted
#define audio_artist_sort_various_only            FALSE
#endif

#ifndef audio_banned_genre_check
#define audio_banned_genre_check_is_defaulted
#define audio_banned_genre_check                  TRUE
#endif

#ifndef audio_cbr_check
#define audio_cbr_check_is_defaulted
#define audio_cbr_check                           TRUE
#endif

#ifndef audio_cbr_warn
#define audio_cbr_warn_is_defaulted
#define audio_cbr_warn                            TRUE
#endif

#ifndef audio_completebar
#define audio_completebar_is_defaulted
#define audio_completebar                         "[%Z] - ( %.0mM %fF - COMPLETE - %w %Y ) - [%Z]"
#endif

#ifndef audio_genre_path
#define audio_genre_path_is_defaulted
#define audio_genre_path                          "/site/incoming/music.by.genre/"
#endif

#ifndef audio_genre_sort
#define audio_genre_sort_is_defaulted
#define audio_genre_sort                          FALSE
#endif

#ifndef audio_genre_warn
#define audio_genre_warn_is_defaulted
#define audio_genre_warn                          TRUE
#endif

#ifndef audio_group_path
#define audio_group_path_is_defaulted
#define audio_group_path                          "/site/incoming/music.by.group/"
#endif

#ifndef audio_group_sort
#define audio_group_sort_is_defaulted
#define audio_group_sort                          FALSE
#endif

#ifndef audio_ignored_languages
#define audio_ignored_languages_is_defaulted
#define audio_ignored_languages                   "md,cd,lp,ep,va"
#endif

#ifndef audio_language_path
#define audio_language_path_is_defaulted
#define audio_language_path                       "/site/incoming/music.by.language/"
#endif

#ifndef audio_language_sort
#define audio_language_sort_is_defaulted
#define audio_language_sort                       FALSE
#endif

#ifndef audio_nocheck_dirs
#define audio_nocheck_dirs_is_defaulted
#define audio_nocheck_dirs                        "/site/groups/ /site/incoming/requests/"
#endif

#ifndef audio_nosort_dirs
#define audio_nosort_dirs_is_defaulted
#define audio_nosort_dirs                         "/site/incoming/requests/"
#endif

#ifndef audio_script
#define audio_script_is_defaulted
#define audio_script                              "/bin/ng-chown"
#endif

#ifndef audio_script_cookies
#define audio_script_cookies_is_defaulted
#define audio_script_cookies                      "0 0 0 1 0 1 - \"%w\" \"%?\""
#endif

#ifndef audio_types
#define audio_types_is_defaulted
#define audio_types                               "mp3,flac"
#endif

#ifndef audio_year_check
#define audio_year_check_is_defaulted
#define audio_year_check                          TRUE
#endif

#ifndef audio_year_path
#define audio_year_path_is_defaulted
#define audio_year_path                           "/site/incoming/music.by.year/"
#endif

#ifndef audio_year_sort
#define audio_year_sort_is_defaulted
#define audio_year_sort                           FALSE
#endif

#ifndef audio_year_warn
#define audio_year_warn_is_defaulted
#define audio_year_warn                           TRUE
#endif

#ifndef banned_filelist
#define banned_filelist_is_defaulted
#define banned_filelist                           "/ftp-data/misc/banned_filelist.txt"
#endif

#ifndef banned_genres
#define banned_genres_is_defaulted
#define banned_genres                             "Christian Rap,Christian Gangsta Rap,Contemporary Christian,Christian Rock"
#endif

#ifndef benchmark_mode
#define benchmark_mode_is_defaulted
#define benchmark_mode                            TRUE
#endif

#ifndef change_spaces_to_underscore_in_ng_chown
#define change_spaces_to_underscore_in_ng_chown_is_defaulted
#define change_spaces_to_underscore_in_ng_chown   TRUE
#endif

#ifndef charbar_filled
#define charbar_filled_is_defaulted
#define charbar_filled                            "#"
#endif

#ifndef charbar_missing
#define charbar_missing_is_defaulted
#define charbar_missing                           ":"
#endif

#ifndef check_for_banned_files
#define check_for_banned_files_is_defaulted
#define check_for_banned_files                    TRUE
#endif

#ifndef check_for_missing_nfo_dirs
#define check_for_missing_nfo_dirs_is_defaulted
#define check_for_missing_nfo_dirs                "/site/incoming/games/ /site/incoming/apps/"
#endif

#ifndef check_for_missing_sample_dirs
#define check_for_missing_sample_dirs_is_defaulted
#define check_for_missing_sample_dirs             "/site/incoming/movies/"
#endif

#ifndef chmod_completebar
#define chmod_completebar_is_defaulted
#define chmod_completebar                         FALSE
#endif

#ifndef cleanupdirs
#define cleanupdirs_is_defaulted
#define cleanupdirs                               "/site/test/ /site/incoming/games/ /site/incoming/apps/ /site/incoming/musicvideos/"
#endif

#ifndef cleanupdirs_dated
#define cleanupdirs_dated_is_defaulted
#define cleanupdirs_dated                         "/site/incoming/0day/%m%d/ /site/incoming/mp3/%m%d/"
#endif

#ifndef combine_path
#define combine_path_is_defaulted
#define combine_path                              FALSE
#endif

#ifndef complete_script
#define complete_script_is_defaulted
#define complete_script                           "/bin/nfo_copy.sh"
#endif

#ifndef create_incomplete_links_in_group_dirs
#define create_incomplete_links_in_group_dirs_is_defaulted
#define create_incomplete_links_in_group_dirs     TRUE
#endif

#ifndef create_m3u
#define create_m3u_is_defaulted
#define create_m3u                                TRUE
#endif

#ifndef create_missing_files
#define create_missing_files_is_defaulted
#define create_missing_files                      TRUE
#endif

#ifndef create_missing_sample_link
#define create_missing_sample_link_is_defaulted
#define create_missing_sample_link                FALSE
#endif

#ifndef create_missing_sfv
#define create_missing_sfv_is_defaulted
#define create_missing_sfv                        FALSE
#endif

#ifndef create_missing_sfv_link
#define create_missing_sfv_link_is_defaulted
#define create_missing_sfv_link                   TRUE
#endif

#ifndef custom_group_dirs_complete_message
#define custom_group_dirs_complete_message_is_defaulted
#define custom_group_dirs_complete_message        "... Looks like this is a pre. :)\n"
#endif

#ifndef days_back_cleanup
#define days_back_cleanup_is_defaulted
#define days_back_cleanup                         2
#endif

#ifndef debug_altlog
#define debug_altlog_is_defaulted
#define debug_altlog                              TRUE
#endif

#ifndef debug_announce
#define debug_announce_is_defaulted
#define debug_announce                            FALSE
#endif

#ifndef debug_mode
#define debug_mode_is_defaulted
#define debug_mode                                FALSE
#endif

#ifndef del_banned_release
#define del_banned_release_is_defaulted
#define del_banned_release                        FALSE
#endif

#ifndef del_completebar
#define del_completebar_is_defaulted
#define del_completebar                           "^\\[.*] - \\( .*F - COMPLETE.*) - \\[.*]$"
#endif

#ifndef del_progressmeter
#define del_progressmeter_is_defaulted
#define del_progressmeter                         "^\\[.*] - .*%% Complete - \\[.*]$"
#endif

#ifndef del_progressmeter_audio
#define del_progressmeter_audio_is_defaulted
#define del_progressmeter_audio                   "^\\[.*] - .*%% Complete - (.*) \\[.*]$"
#endif

#ifndef delbanned_script
#define delbanned_script_is_defaulted
#define delbanned_script                          "/bin/ng-deldir"
#endif

#ifndef delete_old_link
#define delete_old_link_is_defaulted
#define delete_old_link                           TRUE
#endif

#ifndef deny_double_nfo
#define deny_double_nfo_is_defaulted
#define deny_double_nfo                           FALSE
#endif

#ifndef deny_double_sfv
#define deny_double_sfv_is_defaulted
#define deny_double_sfv                           FALSE
#endif

#ifndef deny_nfo_upload_in_zip
#define deny_nfo_upload_in_zip_is_defaulted
#define deny_nfo_upload_in_zip                    FALSE
#endif

#ifndef deny_resume_sfv
#define deny_resume_sfv_is_defaulted
#define deny_resume_sfv                           TRUE
#endif

#ifndef dirlogpath
#define dirlogpath_is_defaulted
#define dirlogpath                                "/ftp-data/logs/dirlog"
#endif

#ifndef disable_audio_complete
#define disable_audio_complete_is_defaulted
#define disable_audio_complete                    FALSE
#endif

#ifndef disable_audio_halfway
#define disable_audio_halfway_is_defaulted
#define disable_audio_halfway                     FALSE
#endif

#ifndef disable_audio_newleader
#define disable_audio_newleader_is_defaulted
#define disable_audio_newleader                   FALSE
#endif

#ifndef disable_audio_norace_complete
#define disable_audio_norace_complete_is_defaulted
#define disable_audio_norace_complete             FALSE
#endif

#ifndef disable_audio_norace_halfway
#define disable_audio_norace_halfway_is_defaulted
#define disable_audio_norace_halfway              FALSE
#endif

#ifndef disable_audio_race
#define disable_audio_race_is_defaulted
#define disable_audio_race                        FALSE
#endif

#ifndef disable_audio_sfv
#define disable_audio_sfv_is_defaulted
#define disable_audio_sfv                         FALSE
#endif

#ifndef disable_audio_update
#define disable_audio_update_is_defaulted
#define disable_audio_update                      FALSE
#endif

#ifndef disable_other_complete
#define disable_other_complete_is_defaulted
#define disable_other_complete                    FALSE
#endif

#ifndef disable_other_halfway
#define disable_other_halfway_is_defaulted
#define disable_other_halfway                     FALSE
#endif

#ifndef disable_other_newleader
#define disable_other_newleader_is_defaulted
#define disable_other_newleader                   FALSE
#endif

#ifndef disable_other_norace_complete
#define disable_other_norace_complete_is_defaulted
#define disable_other_norace_complete             FALSE
#endif

#ifndef disable_other_norace_halfway
#define disable_other_norace_halfway_is_defaulted
#define disable_other_norace_halfway              FALSE
#endif

#ifndef disable_other_race
#define disable_other_race_is_defaulted
#define disable_other_race                        FALSE
#endif

#ifndef disable_other_sfv
#define disable_other_sfv_is_defaulted
#define disable_other_sfv                         FALSE
#endif

#ifndef disable_other_update
#define disable_other_update_is_defaulted
#define disable_other_update                      FALSE
#endif

#ifndef disable_rar_complete
#define disable_rar_complete_is_defaulted
#define disable_rar_complete                      FALSE
#endif

#ifndef disable_rar_halfway
#define disable_rar_halfway_is_defaulted
#define disable_rar_halfway                       FALSE
#endif

#ifndef disable_rar_newleader
#define disable_rar_newleader_is_defaulted
#define disable_rar_newleader                     FALSE
#endif

#ifndef disable_rar_norace_complete
#define disable_rar_norace_complete_is_defaulted
#define disable_rar_norace_complete               FALSE
#endif

#ifndef disable_rar_norace_halfway
#define disable_rar_norace_halfway_is_defaulted
#define disable_rar_norace_halfway                FALSE
#endif

#ifndef disable_rar_race
#define disable_rar_race_is_defaulted
#define disable_rar_race                          FALSE
#endif

#ifndef disable_rar_sfv
#define disable_rar_sfv_is_defaulted
#define disable_rar_sfv                           FALSE
#endif

#ifndef disable_rar_update
#define disable_rar_update_is_defaulted
#define disable_rar_update                        FALSE
#endif

#ifndef disable_video_complete
#define disable_video_complete_is_defaulted
#define disable_video_complete                    FALSE
#endif

#ifndef disable_video_halfway
#define disable_video_halfway_is_defaulted
#define disable_video_halfway                     FALSE
#endif

#ifndef disable_video_newleader
#define disable_video_newleader_is_defaulted
#define disable_video_newleader                   FALSE
#endif

#ifndef disable_video_norace_complete
#define disable_video_norace_complete_is_defaulted
#define disable_video_norace_complete             FALSE
#endif

#ifndef disable_video_norace_halfway
#define disable_video_norace_halfway_is_defaulted
#define disable_video_norace_halfway              FALSE
#endif

#ifndef disable_video_race
#define disable_video_race_is_defaulted
#define disable_video_race                        FALSE
#endif

#ifndef disable_video_sfv
#define disable_video_sfv_is_defaulted
#define disable_video_sfv                         FALSE
#endif

#ifndef disable_video_update
#define disable_video_update_is_defaulted
#define disable_video_update                      FALSE
#endif

#ifndef disable_zip_complete
#define disable_zip_complete_is_defaulted
#define disable_zip_complete                      FALSE
#endif

#ifndef disable_zip_halfway
#define disable_zip_halfway_is_defaulted
#define disable_zip_halfway                       FALSE
#endif

#ifndef disable_zip_newleader
#define disable_zip_newleader_is_defaulted
#define disable_zip_newleader                     FALSE
#endif

#ifndef disable_zip_norace_complete
#define disable_zip_norace_complete_is_defaulted
#define disable_zip_norace_complete               FALSE
#endif

#ifndef disable_zip_norace_halfway
#define disable_zip_norace_halfway_is_defaulted
#define disable_zip_norace_halfway                FALSE
#endif

#ifndef disable_zip_race
#define disable_zip_race_is_defaulted
#define disable_zip_race                          FALSE
#endif

#ifndef disable_zip_sfv
#define disable_zip_sfv_is_defaulted
#define disable_zip_sfv                           FALSE
#endif

#ifndef disable_zip_update
#define disable_zip_update_is_defaulted
#define disable_zip_update                        FALSE
#endif

#ifndef dupepath
#define dupepath_is_defaulted
#define dupepath                                  "/ftp-data/logs/dupefile"
#endif

#ifndef enable_accept_script
#define enable_accept_script_is_defaulted
#define enable_accept_script                      FALSE
#endif

#ifndef enable_affil_script
#define enable_affil_script_is_defaulted
#define enable_affil_script                       FALSE
#endif

#ifndef enable_audio_script
#define enable_audio_script_is_defaulted
#define enable_audio_script                       FALSE
#endif

#ifndef enable_complete_script
#define enable_complete_script_is_defaulted
#define enable_complete_script                    FALSE
#endif

#ifndef enable_delbanned_script
#define enable_delbanned_script_is_defaulted
#define enable_delbanned_script                   TRUE
#endif

#ifndef enable_files_ahead
#define enable_files_ahead_is_defaulted
#define enable_files_ahead                        TRUE
#endif

#ifndef enable_nfo_script
#define enable_nfo_script_is_defaulted
#define enable_nfo_script                         FALSE
#endif

#ifndef enable_rescan_script
#define enable_rescan_script_is_defaulted
#define enable_rescan_script                      FALSE
#endif

#ifndef enable_sample_script
#define enable_sample_script_is_defaulted
#define enable_sample_script                      FALSE
#endif

#ifndef enable_unduper_script
#define enable_unduper_script_is_defaulted
#define enable_unduper_script                     TRUE
#endif

#ifndef exclude_non_sfv_dirs
#define exclude_non_sfv_dirs_is_defaulted
#define exclude_non_sfv_dirs                      TRUE
#endif

#ifndef extract_nfo
#define extract_nfo_is_defaulted
#define extract_nfo                               TRUE
#endif

#ifndef force_sfv_first
#define force_sfv_first_is_defaulted
#define force_sfv_first                           FALSE
#endif

#ifndef get_competitor_list
#define get_competitor_list_is_defaulted
#define get_competitor_list                       TRUE
#endif

#ifndef get_user_stats
#define get_user_stats_is_defaulted
#define get_user_stats                            TRUE
#endif

#ifndef gl_sections
#define gl_sections_is_defaulted
#define gl_sections                               "DEFAULT"
#endif

#ifndef gl_userfiles
#define gl_userfiles_is_defaulted
#define gl_userfiles                              "/ftp-data/users/"
#endif

#ifndef group_dirs
#define group_dirs_is_defaulted
#define group_dirs                                "/site/groups/"
#endif

#ifndef hide_affil_gname
#define hide_affil_gname_is_defaulted
#define hide_affil_gname                          "NoGroup"
#endif

#ifndef hide_affil_groups
#define hide_affil_groups_is_defaulted
#define hide_affil_groups                         ""
#endif

#ifndef hide_affil_uname
#define hide_affil_uname_is_defaulted
#define hide_affil_uname                          "NoUser"
#endif

#ifndef hide_affil_users
#define hide_affil_users_is_defaulted
#define hide_affil_users                          ""
#endif

#ifndef hide_gname
#define hide_gname_is_defaulted
#define hide_gname                                ""
#endif

#ifndef hide_group_uploaders
#define hide_group_uploaders_is_defaulted
#define hide_group_uploaders                      TRUE
#endif

#ifndef hide_uname
#define hide_uname_is_defaulted
#define hide_uname                                ""
#endif

#ifndef ignore_lock_timeout
#define ignore_lock_timeout_is_defaulted
#define ignore_lock_timeout                       FALSE
#endif

#ifndef ignore_zero_size
#define ignore_zero_size_is_defaulted
#define ignore_zero_size                          FALSE
#endif

#ifndef ignore_zero_sized_on_rescan
#define ignore_zero_sized_on_rescan_is_defaulted
#define ignore_zero_sized_on_rescan               FALSE
#endif

#ifndef ignored_types
#define ignored_types_is_defaulted
#define ignored_types                             ",diz,debug,message,imdb,html,url,metadata,date,xxxdata,ioftpd"
#endif

#ifndef incomplete_base_nfo_indicator
#define incomplete_base_nfo_indicator_is_defaulted
#define incomplete_base_nfo_indicator             "../../(no-nfo)-%1"
#endif

#ifndef incomplete_base_sample_indicator
#define incomplete_base_sample_indicator_is_defaulted
#define incomplete_base_sample_indicator          "../../(no-sample)-%1"
#endif

#ifndef incomplete_base_sfv_indicator
#define incomplete_base_sfv_indicator_is_defaulted
#define incomplete_base_sfv_indicator             "../../(no-sfv)-%1"
#endif

#ifndef incomplete_cd_indicator
#define incomplete_cd_indicator_is_defaulted
#define incomplete_cd_indicator                   "../../(incomplete)-(%0)-%1"
#endif

#ifndef incomplete_generic1_base_nfo_indicator
#define incomplete_generic1_base_nfo_indicator_is_defaulted
#define incomplete_generic1_base_nfo_indicator    "/site/incompletes/(no-nfo)-%1"
#endif

#ifndef incomplete_generic1_base_sample_indicator
#define incomplete_generic1_base_sample_indicator_is_defaulted
#define incomplete_generic1_base_sample_indicator "/site/incompletes/(no-sample)-%1"
#endif

#ifndef incomplete_generic1_base_sfv_indicator
#define incomplete_generic1_base_sfv_indicator_is_defaulted
#define incomplete_generic1_base_sfv_indicator    "/site/incompletes/(no-sfv)-%1"
#endif

#ifndef incomplete_generic1_cd_indicator
#define incomplete_generic1_cd_indicator_is_defaulted
#define incomplete_generic1_cd_indicator          "/site/incompletes/(incomplete)-(%0)-%1"
#endif

#ifndef incomplete_generic1_indicator
#define incomplete_generic1_indicator_is_defaulted
#define incomplete_generic1_indicator             "/site/incompletes/(incomplete)-%0"
#endif

#ifndef incomplete_generic1_nfo_indicator
#define incomplete_generic1_nfo_indicator_is_defaulted
#define incomplete_generic1_nfo_indicator         "/site/incompletes/(no-nfo)-%0"
#endif

#ifndef incomplete_generic1_path
#define incomplete_generic1_path_is_defaulted
#define incomplete_generic1_path                  ""
#endif

#ifndef incomplete_generic1_sample_indicator
#define incomplete_generic1_sample_indicator_is_defaulted
#define incomplete_generic1_sample_indicator      "/site/incompletes/(no-sample)-%0"
#endif

#ifndef incomplete_generic1_sfv_indicator
#define incomplete_generic1_sfv_indicator_is_defaulted
#define incomplete_generic1_sfv_indicator         "/site/incompletes/(no-sfv)-%0"
#endif

#ifndef incomplete_generic2_base_nfo_indicator
#define incomplete_generic2_base_nfo_indicator_is_defaulted
#define incomplete_generic2_base_nfo_indicator    "/site/incompletes/(no-nfo)-%1"
#endif

#ifndef incomplete_generic2_base_sample_indicator
#define incomplete_generic2_base_sample_indicator_is_defaulted
#define incomplete_generic2_base_sample_indicator "/site/incompletes/(no-sample)-%1"
#endif

#ifndef incomplete_generic2_base_sfv_indicator
#define incomplete_generic2_base_sfv_indicator_is_defaulted
#define incomplete_generic2_base_sfv_indicator    "/site/incompletes/(no-sfv)-%1"
#endif

#ifndef incomplete_generic2_cd_indicator
#define incomplete_generic2_cd_indicator_is_defaulted
#define incomplete_generic2_cd_indicator          "/site/incompletes/(incomplete)-(%0)-%1"
#endif

#ifndef incomplete_generic2_indicator
#define incomplete_generic2_indicator_is_defaulted
#define incomplete_generic2_indicator             "/site/incompletes/(incomplete)-%0"
#endif

#ifndef incomplete_generic2_nfo_indicator
#define incomplete_generic2_nfo_indicator_is_defaulted
#define incomplete_generic2_nfo_indicator         "/site/incompletes/(no-nfo)-%0"
#endif

#ifndef incomplete_generic2_path
#define incomplete_generic2_path_is_defaulted
#define incomplete_generic2_path                  ""
#endif

#ifndef incomplete_generic2_sample_indicator
#define incomplete_generic2_sample_indicator_is_defaulted
#define incomplete_generic2_sample_indicator      "/site/incompletes/(no-sample)-%0"
#endif

#ifndef incomplete_generic2_sfv_indicator
#define incomplete_generic2_sfv_indicator_is_defaulted
#define incomplete_generic2_sfv_indicator         "/site/incompletes/(no-sfv)-%0"
#endif

#ifndef incomplete_indicator
#define incomplete_indicator_is_defaulted
#define incomplete_indicator                      "../(incomplete)-%0"
#endif

#ifndef incomplete_nfo_indicator
#define incomplete_nfo_indicator_is_defaulted
#define incomplete_nfo_indicator                  "../(no-nfo)-%0"
#endif

#ifndef incomplete_sample_indicator
#define incomplete_sample_indicator_is_defaulted
#define incomplete_sample_indicator               "../(no-sample)-%0"
#endif

#ifndef incomplete_sfv_indicator
#define incomplete_sfv_indicator_is_defaulted
#define incomplete_sfv_indicator                  "../(no-sfv)-%0"
#endif

#ifndef incompleteislink
#define incompleteislink_is_defaulted
#define incompleteislink                          TRUE
#endif

#ifndef lock_optimize
#define lock_optimize_is_defaulted
#define lock_optimize                             1
#endif

#ifndef log
#define log_is_defaulted
#define log                                       "/ftp-data/logs/glftpd.log"
#endif

#ifndef mark_empty_dirs_as_incomplete_on_rescan
#define mark_empty_dirs_as_incomplete_on_rescan_is_defaulted
#define mark_empty_dirs_as_incomplete_on_rescan   FALSE
#endif

#ifndef mark_file_as_bad
#define mark_file_as_bad_is_defaulted
#define mark_file_as_bad                          FALSE
#endif

#ifndef max_groups_in_top
#define max_groups_in_top_is_defaulted
#define max_groups_in_top                         7
#endif

#ifndef max_seconds_wait_for_lock
#define max_seconds_wait_for_lock_is_defaulted
#define max_seconds_wait_for_lock                 20
#endif

#ifndef max_users_in_top
#define max_users_in_top_is_defaulted
#define max_users_in_top                          7
#endif

#ifndef message_audio
#define message_audio_is_defaulted
#define message_audio                             "|                                                                    |\n|-=[ I D 3 - T A G ]=---------------.                                |\n|                                    `-----==-------------===--------|\n| Artist : %-57x |\n| Album  : %-57W |\n| Genre  : %-34w Rate  : %3Xkbit/s      |\n| Tracks : %-34f Year  : %-14Y |\n| Encoder: %-34i Preset: %-14I |\n"
#endif

#ifndef message_file_name
#define message_file_name_is_defaulted
#define message_file_name                         ".message"
#endif

#ifndef message_footer
#define message_footer_is_defaulted
#define message_footer                            "`-----================---------------------------==------------------'\n"
#endif

#ifndef message_group_body
#define message_group_body_is_defaulted
#define message_group_body                        "| %3n %-29g %7.1mM %4fF %5.1p%% %7.0sKBs |\n"
#endif

#ifndef message_group_footer
#define message_group_footer_is_defaulted
#define message_group_footer                      "|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |\n| %3g Total %31.1mM %4fF 100.0%% %7.0aKBs |\n"
#endif

#ifndef message_group_header
#define message_group_header_is_defaulted
#define message_group_header                      "|                                                                    |\n|-=[ G R O U P T O P ]=-------------.                                |\n|                                    `--------------===--------------|\n"
#endif

#ifndef message_header
#define message_header_is_defaulted
#define message_header                            ".-----------------====-------------------------== PZS-NG v1.2.0 ===--.\n"
#endif

#ifndef message_store_in_mirror
#define message_store_in_mirror_is_defaulted
#define message_store_in_mirror                   FALSE
#endif

#ifndef message_user_body
#define message_user_body_is_defaulted
#define message_user_body                         "| %3n %-29U %7.1mM %4fF %5.1p%% %7.0sKBs |\n"
#endif

#ifndef message_user_footer
#define message_user_footer_is_defaulted
#define message_user_footer                       "|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |\n| %3u Total %31.1mM %4fF 100.0%% %7.0aKBs |\n"
#endif

#ifndef message_user_header
#define message_user_header_is_defaulted
#define message_user_header                       "|-=[ U S E R T O P ]=---------------.                                |\n|                                    `-----------------====----------|\n"
#endif

#ifndef min_halfway_files
#define min_halfway_files_is_defaulted
#define min_halfway_files                         10
#endif

#ifndef min_halfway_size
#define min_halfway_size_is_defaulted
#define min_halfway_size                          10
#endif

#ifndef min_newleader_files
#define min_newleader_files_is_defaulted
#define min_newleader_files                       1
#endif

#ifndef min_newleader_size
#define min_newleader_size_is_defaulted
#define min_newleader_size                        10
#endif

#ifndef min_update_files
#define min_update_files_is_defaulted
#define min_update_files                          2
#endif

#ifndef min_update_size
#define min_update_size_is_defaulted
#define min_update_size                           1
#endif

#ifndef missing_sample_check_ignore_dividers
#define missing_sample_check_ignore_dividers_is_defaulted
#define missing_sample_check_ignore_dividers      "._-"
#endif

#ifndef missing_sample_check_ignore_list
#define missing_sample_check_ignore_list_is_defaulted
#define missing_sample_check_ignore_list          "dirfix,fix,freezefix,fullsubpack,nfofix,proof,rarfix,subfix,subpack,subpck,syncfix"
#endif

#ifndef newleader_files_ahead
#define newleader_files_ahead_is_defaulted
#define newleader_files_ahead                     2
#endif

#ifndef nfo_script
#define nfo_script_is_defaulted
#define nfo_script                                "/bin/psxc-imdb.sh"
#endif

#ifndef nocheck_dirs
#define nocheck_dirs_is_defaulted
#define nocheck_dirs                              "/site/private/"
#endif

#ifndef noforce_sfv_first_dirs
#define noforce_sfv_first_dirs_is_defaulted
#define noforce_sfv_first_dirs                    "/site/incoming/requests/"
#endif

#ifndef other_completebar
#define other_completebar_is_defaulted
#define other_completebar                         "[%Z] - ( %.0mM %fF - COMPLETE ) - [%Z]"
#endif

#ifndef program_gid
#define program_gid_is_defaulted
#define program_gid                               0
#endif

#ifndef program_uid
#define program_uid_is_defaulted
#define program_uid                               0
#endif

#ifndef progressmeter
#define progressmeter_is_defaulted
#define progressmeter                             "[%V] - %3.0p%% Complete - [%Z]"
#endif

#ifndef progressmeter_audio
#define progressmeter_audio_is_defaulted
#define progressmeter_audio                       "[%V] - %3.0p%% Complete - (%w) [%Z]"
#endif

#ifndef rar_completebar
#define rar_completebar_is_defaulted
#define rar_completebar                           "[%Z] - ( %.0mM %fF - COMPLETE ) - [%Z]"
#endif

#ifndef realtime_audio_info
#define realtime_audio_info_is_defaulted
#define realtime_audio_info                       "+-=[ID3tag]=------------------------===------------+\n| Title  : %-39y |\n| Artist : %-39x |\n| Album  : %-39W |\n| Genre  : %-39w |\n| Year   : %-39Y |\n"
#endif

#ifndef realtime_group_body
#define realtime_group_body_is_defaulted
#define realtime_group_body                       "| %2n. %-15g %8.1mMB %4fF %7.0skB/s |\n"
#endif

#ifndef realtime_group_footer
#define realtime_group_footer_is_defaulted
#define realtime_group_footer                     ""
#endif

#ifndef realtime_group_header
#define realtime_group_header_is_defaulted
#define realtime_group_header                     "+-=[GroupTop]=--------------------===--------------+\n"
#endif

#ifndef realtime_user_body
#define realtime_user_body_is_defaulted
#define realtime_user_body                        "| %2n. %-15u %8.1mMB %4fF %7.0skB/s |\n"
#endif

#ifndef realtime_user_footer
#define realtime_user_footer_is_defaulted
#define realtime_user_footer                      ""
#endif

#ifndef realtime_user_header
#define realtime_user_header_is_defaulted
#define realtime_user_header                      "+-=[UserTop]=-------------------===----------------+\n"
#endif

#ifndef remove_dot_debug_on_delete
#define remove_dot_debug_on_delete_is_defaulted
#define remove_dot_debug_on_delete                TRUE
#endif

#ifndef remove_dot_files_on_delete
#define remove_dot_files_on_delete_is_defaulted
#define remove_dot_files_on_delete                FALSE
#endif

#ifndef rescan_chdir_flags
#define rescan_chdir_flags_is_defaulted
#define rescan_chdir_flags                        ""
#endif

#ifndef rescan_default_to_quick
#define rescan_default_to_quick_is_defaulted
#define rescan_default_to_quick                   TRUE
#endif

#ifndef rescan_nocheck_dirs_allowed
#define rescan_nocheck_dirs_allowed_is_defaulted
#define rescan_nocheck_dirs_allowed               TRUE
#endif

#ifndef rescan_script
#define rescan_script_is_defaulted
#define rescan_script                             "/bin/rescan_script.sh"
#endif

#ifndef sample_list
#define sample_list_is_defaulted
#define sample_list                               "sample,vobsample"
#endif

#ifndef sample_script
#define sample_script_is_defaulted
#define sample_script                             "/bin/sample_script.sh"
#endif

#ifndef sfv_calc_single_fname
#define sfv_calc_single_fname_is_defaulted
#define sfv_calc_single_fname                     FALSE
#endif

#ifndef sfv_cleanup
#define sfv_cleanup_is_defaulted
#define sfv_cleanup                               TRUE
#endif

#ifndef sfv_cleanup_crlf
#define sfv_cleanup_crlf_is_defaulted
#define sfv_cleanup_crlf                          TRUE
#endif

#ifndef sfv_cleanup_lowercase
#define sfv_cleanup_lowercase_is_defaulted
#define sfv_cleanup_lowercase                     TRUE
#endif

#ifndef sfv_dirs
#define sfv_dirs_is_defaulted
#define sfv_dirs                                  "/site/test/ /site/incoming/mp3/ /site/incoming/games/ /site/incoming/apps/ /site/incoming/musicvideos/ /site/incoming/requests/"
#endif

#ifndef sfv_dupecheck
#define sfv_dupecheck_is_defaulted
#define sfv_dupecheck                             TRUE
#endif

#ifndef sfv_lenient
#define sfv_lenient_is_defaulted
#define sfv_lenient                               TRUE
#endif

#ifndef short_sitename
#define short_sitename_is_defaulted
#define short_sitename                            "NG"
#endif

#ifndef show_group_info
#define show_group_info_is_defaulted
#define show_group_info                           TRUE
#endif

#ifndef show_stats_from_pos2_only
#define show_stats_from_pos2_only_is_defaulted
#define show_stats_from_pos2_only                 FALSE
#endif

#ifndef show_user_info
#define show_user_info_is_defaulted
#define show_user_info                            TRUE
#endif

#ifndef show_users_in_group_dirs
#define show_users_in_group_dirs_is_defaulted
#define show_users_in_group_dirs                  FALSE
#endif

#ifndef sitepath_dir
#define sitepath_dir_is_defaulted
#define sitepath_dir                              "/site/"
#endif

#ifndef sleep_on_bad
#define sleep_on_bad_is_defaulted
#define sleep_on_bad                              0
#endif

#ifndef spaces_to_dots
#define spaces_to_dots_is_defaulted
#define spaces_to_dots                            FALSE
#endif

#ifndef speedtest_delfile
#define speedtest_delfile_is_defaulted
#define speedtest_delfile                         FALSE
#endif

#ifndef speedtest_dirs
#define speedtest_dirs_is_defaulted
#define speedtest_dirs                            "/site/speedtest/"
#endif

#ifndef status_bar_type
#define status_bar_type_is_defaulted
#define status_bar_type                           BAR_DIR
#endif

#ifndef storage
#define storage_is_defaulted
#define storage                                   "/ftp-data/pzs-ng/"
#endif

#ifndef strict_path_match
#define strict_path_match_is_defaulted
#define strict_path_match                         FALSE
#endif

#ifndef strict_sfv_check
#define strict_sfv_check_is_defaulted
#define strict_sfv_check                          FALSE
#endif

#ifndef subdir_list
#define subdir_list_is_defaulted
#define subdir_list                               "cd??,disc??,disk??,dvd??,extra?,sub?,subtitle?,vobsub?,sample?,subpack?,ac3,audioaddon,addon,ac3addon,proof,cover?"
#endif

#ifndef test_for_password
#define test_for_password_is_defaulted
#define test_for_password                         TRUE
#endif

#ifndef unduper_script
#define unduper_script_is_defaulted
#define unduper_script                            "/bin/ng-undupe"
#endif

#ifndef unzip_bin
#define unzip_bin_is_defaulted
#define unzip_bin                                 "/bin/unzip"
#endif

#ifndef use_group_dirs_as_affil_list
#define use_group_dirs_as_affil_list_is_defaulted
#define use_group_dirs_as_affil_list              FALSE
#endif

#ifndef use_partial_on_noforce
#define use_partial_on_noforce_is_defaulted
#define use_partial_on_noforce                    FALSE
#endif

#ifndef userellink
#define userellink_is_defaulted
#define userellink                                TRUE
#endif

#ifndef video_completebar
#define video_completebar_is_defaulted
#define video_completebar                         "[%Z] - ( %.0mM %fF - COMPLETE ) - [%Z]"
#endif

#ifndef video_types
#define video_types_is_defaulted
#define video_types                               "mpg,mpeg,m2v,m2p,avi,mkv,mov,mp4,wmv,vob,ts"
#endif

#ifndef write_complete_message
#define write_complete_message_is_defaulted
#define write_complete_message                    TRUE
#endif

#ifndef write_complete_message_in_group_dirs
#define write_complete_message_in_group_dirs_is_defaulted
#define write_complete_message_in_group_dirs      TRUE
#endif

#ifndef zip_bin
#define zip_bin_is_defaulted
#define zip_bin                                   "/bin/zip"
#endif

#ifndef zip_clean
#define zip_clean_is_defaulted
#define zip_clean                                 TRUE
#endif

#ifndef zip_completebar
#define zip_completebar_is_defaulted
#define zip_completebar                           "[%Z] - ( %.0mM %fF - COMPLETE ) - [%Z]"
#endif

#ifndef zip_dirs
#define zip_dirs_is_defaulted
#define zip_dirs                                  "/site/test/ /site/incoming/0day/"
#endif

#ifndef zipscript_SFV_ok
#define zipscript_SFV_ok_is_defaulted
#define zipscript_SFV_ok                          "| + CRC-Check: oK!                                 |\n"
#endif

#ifndef zipscript_SFV_skip
#define zipscript_SFV_skip_is_defaulted
#define zipscript_SFV_skip                        "| + CRC-Check: SKIPPED!                            |\n"
#endif

#ifndef zipscript_any_ok
#define zipscript_any_ok_is_defaulted
#define zipscript_any_ok                          "| + File: ok! (allowed w/o any checks)             |\n"
#endif

#ifndef zipscript_footer_error
#define zipscript_footer_error_is_defaulted
#define zipscript_footer_error                    "| - %-46v |\n`-----------------------------------========-------'\n"
#endif

#ifndef zipscript_footer_ok
#define zipscript_footer_ok_is_defaulted
#define zipscript_footer_ok                       "`-[%V]----------------------[%3F/%-3f]--'\n"
#endif

#ifndef zipscript_footer_skip
#define zipscript_footer_skip_is_defaulted
#define zipscript_footer_skip                     "`--------------------------------=====-------------'\n"
#endif

#ifndef zipscript_footer_unknown
#define zipscript_footer_unknown_is_defaulted
#define zipscript_footer_unknown                  "`-[ - NO - SFV - ]----------------------[%3F/???]--'\n"
#endif

#ifndef zipscript_header
#define zipscript_header_is_defaulted
#define zipscript_header                          ".-== PZS-NG Zipscript-C ==-------------------------.\n"
#endif

#ifndef zipscript_sfv_ok
#define zipscript_sfv_ok_is_defaulted
#define zipscript_sfv_ok                          "| + SFV-file: oK!                                  |\n"
#endif

#ifndef zipscript_zip_ok
#define zipscript_zip_ok_is_defaulted
#define zipscript_zip_ok                          "| + ZiP integrity: oK!                             |\n"
#endif

#ifndef zsinternal_checks_completed
#define zsinternal_checks_completed_is_defaulted
#define zsinternal_checks_completed               "Checks completed in %0.6f seconds.\n"
#endif