repo_name
stringlengths 6
101
| path
stringlengths 4
300
| text
stringlengths 7
1.31M
|
|---|---|---|
mehrdad-shokri/cartodb
|
lib/assets/javascripts/builder/public_editor.js
|
<filename>lib/assets/javascripts/builder/public_editor.js<gh_stars>1000+
require('whatwg-fetch');
require('promise-polyfill');
var FastClick = require('fastclick');
FastClick.attach(document.body);
var $ = require('jquery');
var _ = require('underscore');
var ConfigModel = require('builder/data/config-model');
var LayerStyleCollection = require('builder/embed/style-collection');
var MetricsTracker = require('builder/components/metrics/metrics-tracker');
var deepInsights = require('deep-insights/index');
var EmbedIntegrations = require('builder/embed/embed-integrations');
var URLStateHelper = require('deep-insights/api/url-helper.js');
var EmbedView = require('builder/embed/embed-view');
var utils = require('builder/helpers/utils');
const BANNER_ACCOUNTS = ['FREE'];
var vizJSON = window.vizJSON;
var authTokens = window.authTokens;
var stateJSON = window.stateJSON;
var layersData = window.layersData;
var ownerData = window.ownerData;
var anyLayerWithLegends = vizJSON.layers.some(function (layer) {
return layer.legends && layer.legends.length;
});
var configModel = new ConfigModel({ base_url: ownerData.base_url });
var layerStyleCollection = new LayerStyleCollection();
layerStyleCollection.resetByLayersData(layersData);
var embedView = new EmbedView({
title: vizJSON.title,
description: utils.stripHTML(vizJSON.description),
showMenu: vizJSON.options.dashboard_menu,
showLegends: vizJSON.options.legends && anyLayerWithLegends,
showLayerSelector: !!vizJSON.options.layer_selector,
showBanner: ownerData && (BANNER_ACCOUNTS.indexOf(ownerData.account_type) > -1)
});
MetricsTracker.init({
visId: vizJSON.id,
configModel: configModel
});
$('#dashboard').prepend(embedView.render().$el);
var cartoLogoOption = _.findWhere(vizJSON.overlays, {type: 'logo'});
var dashboardOpts = {
no_cdn: false,
cartodb_logo: cartoLogoOption !== undefined,
renderMenu: vizJSON.options.dashboard_menu,
share_urls: true,
authToken: <PASSWORD>Tokens,
layerSelectorEnabled: true
};
var stateFromURL = URLStateHelper.getStateFromCurrentURL();
if (stateFromURL && !_.isEmpty(stateFromURL)) {
_.extend(dashboardOpts, {
state: stateFromURL
});
} else if (stateJSON && stateJSON !== '{}') {
_.extend(dashboardOpts, {
state: stateJSON
});
}
deepInsights.createDashboard('.js-embed-map', vizJSON, dashboardOpts, function (error, dashboard) {
if (error) {
window.trackJs && window.trackJs.console.log({
type: 'Dashboard:',
data: error
});
}
var map = dashboard.getMap().map;
var scrollwheel = vizJSON.options.scrollwheel;
var method = scrollwheel ? 'enableScrollWheel' : 'disableScrollWheel';
map && map[method] && map[method]();
embedView.injectTitle($('.js-embed-map'));
var embedIntegrations = new EmbedIntegrations({
deepInsightsDashboard: dashboard,
layerStyleCollection: layerStyleCollection
});
window.embedIntegrations = embedIntegrations;
});
window.layerStyleCollection = layerStyleCollection;
|
gminchev1982/softuni-android
|
Tabs/app/src/main/java/com/example/gminchev/tabs/dataModel/helper_models/Temperatures.java
|
<gh_stars>0
package com.example.gminchev.tabs.dataModel.helper_models;
public class Temperatures {
public double day;
public double min;
public double max;
public double night;
public double eve;
public double morn;
}
|
JinlongLiao/easy-tools
|
commons/commons-common/src/main/java/io/github/jinlonghliao/common/core/util/IdUtil.java
|
<gh_stars>0
/**
* Copyright 2020-2021 JinlongLiao
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.jinlonghliao.common.core.util;
import io.github.jinlonghliao.common.core.lang.ObjectId;
import io.github.jinlonghliao.common.core.lang.Singleton;
import io.github.jinlonghliao.common.core.lang.Snowflake;
import io.github.jinlonghliao.common.core.lang.UUID;
/**
* ID生成器工具类,此工具类中主要封装:
*
* <pre>
* 1. 唯一性ID生成器:UUID、ObjectId(MongoDB)、Snowflake
* </pre>
*
* <p>
* ID相关文章见:http://calvin1978.blogcn.com/articles/uuid.html
*
* @author looly
* @since 4.1.13
*/
public class IdUtil {
// ------------------------------------------------------------------- UUID
/**
* 获取随机UUID
*
* @return 随机UUID
*/
public static String randomUUID() {
return UUID.randomUUID().toString();
}
/**
* 简化的UUID,去掉了横线
*
* @return 简化的UUID,去掉了横线
*/
public static String simpleUUID() {
return UUID.randomUUID().toString(true);
}
/**
* 获取随机UUID,使用性能更好的ThreadLocalRandom生成UUID
*
* @return 随机UUID
* @since 4.1.19
*/
public static String fastUUID() {
return UUID.fastUUID().toString();
}
/**
* 简化的UUID,去掉了横线,使用性能更好的ThreadLocalRandom生成UUID
*
* @return 简化的UUID,去掉了横线
* @since 4.1.19
*/
public static String fastSimpleUUID() {
return UUID.fastUUID().toString(true);
}
/**
* 创建MongoDB ID生成策略实现<br>
* ObjectId由以下几部分组成:
*
* <pre>
* 1. Time 时间戳。
* 2. Machine 所在主机的唯一标识符,一般是机器主机名的散列值。
* 3. PID 进程ID。确保同一机器中不冲突
* 4. INC 自增计数器。确保同一秒内产生objectId的唯一性。
* </pre>
* <p>
* 参考:http://blog.csdn.net/qxc1281/article/details/54021882
*
* @return ObjectId
*/
public static String objectId() {
return ObjectId.next();
}
/**
* 创建Twitter的Snowflake 算法生成器。
* <p>
* 特别注意:此方法调用后会创建独立的{@link Snowflake}对象,每个独立的对象ID不互斥,会导致ID重复,请自行保证单例!
* </p>
* 分布式系统中,有一些需要使用全局唯一ID的场景,有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。
*
* <p>
* snowflake的结构如下(每部分用-分开):<br>
*
* <pre>
* 0 - 0000000000 0000000000 0000000000 0000000000 0 - 00000 - 00000 - 000000000000
* </pre>
* <p>
* 第一位为未使用,接下来的41位为毫秒级时间(41位的长度可以使用69年)<br>
* 然后是5位datacenterId和5位workerId(10位的长度最多支持部署1024个节点)<br>
* 最后12位是毫秒内的计数(12位的计数顺序号支持每个节点每毫秒产生4096个ID序号)
*
* <p>
* 参考:http://www.cnblogs.com/relucent/p/4955340.html
*
* @param workerId 终端ID
* @param datacenterId 数据中心ID
* @return {@link Snowflake}
*/
public static Snowflake createSnowflake(long workerId, long datacenterId) {
return new Snowflake(workerId, datacenterId);
}
/**
* 获取单例的Twitter的Snowflake 算法生成器对象<br>
* 分布式系统中,有一些需要使用全局唯一ID的场景,有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。
*
* <p>
* snowflake的结构如下(每部分用-分开):<br>
*
* <pre>
* 0 - 0000000000 0000000000 0000000000 0000000000 0 - 00000 - 00000 - 000000000000
* </pre>
* <p>
* 第一位为未使用,接下来的41位为毫秒级时间(41位的长度可以使用69年)<br>
* 然后是5位datacenterId和5位workerId(10位的长度最多支持部署1024个节点)<br>
* 最后12位是毫秒内的计数(12位的计数顺序号支持每个节点每毫秒产生4096个ID序号)
*
* <p>
* 参考:http://www.cnblogs.com/relucent/p/4955340.html
*
* @param workerId 终端ID
* @param datacenterId 数据中心ID
* @return {@link Snowflake}
* @since 4.5.9
*/
public static Snowflake getSnowflake(long workerId, long datacenterId) {
return Singleton.get(Snowflake.class, workerId, datacenterId);
}
}
|
phmdacosta/exchangelog
|
src/main/java/com/pedrocosta/exchangelog/services/CoreService.java
|
package com.pedrocosta.exchangelog.services;
public interface CoreService {
}
|
monitron/jarvis-ha
|
lib/web/scripts/capabilities/control-browser/ControlBrowserCapabilityView.js
|
<gh_stars>1-10
const Marionette = require('backbone.marionette');
const ControlContainersView = require('./ControlContainersView.js');
const SensorsView = require('./SensorsView.js');
const ScenesView = require('./ScenesView.js');
module.exports = class ControlBrowserCapabilityView extends Marionette.View {
template = Templates['capabilities/control-browser/control-browser'];
className() {
const classes = ['control-browser'];
if(this.model.pathHasSensors()) classes.push('with-sensors');
return classes.join(' ');
}
modelEvents() {
return {
'change:path': 'render',
'change:highlight-control': 'highlightControl'
};
}
regions() {
return {
controls: '.controls',
sensors: '.sensors',
scenes: '.scenes'
};
}
ui() {
return {
pickLocation: '.pick-location-button',
goHome: '.go-home-button'
};
}
events() {
return {
'click @ui.pickLocation': 'pickLocation',
'click @ui.goHome': 'onClickGoHome'
};
}
serializeData() {
return {
name: this.model.pathName(),
hasHome: this.model.hasHome(),
isAtHome: this.model.isAtHome()
};
}
onRender() {
this.$el.attr('class', this.className());
if(!this.model.has('path')) this.pickLocation();
const controlsView = new ControlContainersView({
collection: this.model.controls(),
path: this.model.get('path')
});
this.showChildView('controls', controlsView);
const sensorsView = new SensorsView({
collection: this.model.controls(),
path: this.model.get('path')
});
this.showChildView('sensors', sensorsView);
const scenesView = new ScenesView({
collection: this.model.scenes(),
path: this.model.get('path')
});
this.showChildView('scenes', scenesView);
if(this.model.has('highlight-control')) this.highlightControl();
}
highlightControl() {
this.getChildView('controls').scrollTo(this.model.get('highlight-control'));
this.model.unset('highlight-control');
}
onClickGoHome() {
this.model.goHome();
}
pickLocation() {
const callback = (path) => this.model.set('path', path);
window.app.pickLocation(callback, this.model.get('path'));
}
}
|
matrixsmaster/MILLA
|
milla-view/facedetector.cpp
|
#include <QDebug>
#include <QApplication>
#include <QMessageBox>
#include "facedetector.h"
using namespace cv;
using namespace std;
CascadeClassifier* FaceDetector::face_cascade = nullptr;
int FaceDetector::face_inst_cnt = 0;
FaceDetector::FaceDetector()
{
face_inst_cnt++;
if (!face_cascade) {
face_cascade = new CascadeClassifier();
QString fn = QApplication::applicationDirPath();
fn += FACE_CASCADE_FILE;
if (!face_cascade->load(fn.toStdString())) {
QMessageBox::warning(NULL,"Error",QString("Unable to load face cascade from %1").arg(fn));
delete face_cascade;
face_cascade = nullptr;
}
}
}
void FaceDetector::detectFacesPass1(const Mat &inp, vector<Rect>* store)
{
if (!face_cascade) return;
vector<Rect> items;
Mat work;
try {
cvtColor(inp,work,COLOR_BGR2GRAY);
equalizeHist(work,work);
face_cascade->detectMultiScale(work,items,FACEDETECT_SCALE,FACEDETECT_NEIGHBORS,0,Size(FACEDETECT_SIZE_W,FACEDETECT_SIZE_H));
} catch (...) {
qDebug() << "Error";
return;
}
qDebug() << items.size() << " faces detected";
if (store) store->insert(store->begin(),items.begin(),items.end());
return;
}
void FaceDetector::Finalize()
{
if (--face_inst_cnt <= 0) {
qDebug() << "Destroying face cascade records...";
if (face_cascade) delete face_cascade;
face_cascade = nullptr;
}
}
|
remz1337/ecj
|
ecj/src/main/java/ec/display/ControlPanel.java
|
<filename>ecj/src/main/java/ec/display/ControlPanel.java
/*
Copyright 2006 by <NAME>
Licensed under the Academic Free License version 3.0
See the file "LICENSE" for more information
*/
/*
* Created on Mar 6, 2005 12:48:58 PM
*
* By: spaus
*/
package ec.display;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FileDialog;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ItemEvent;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;
import ec.EvolutionState;
import ec.Evolve;
import ec.util.Parameter;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
/**
* @author spaus
*/
public class ControlPanel extends JPanel
{
private static final long serialVersionUID = 1;
final Console console;
final static String P_JOBFILEPREFIX = "job-file-prefix";
JLabel jLabel = null;
JTextField numGensField = null;
JCheckBox quitOnRunCompleteCheckbox = null; // @jve:decl-index=0:
JLabel jLabel1 = null;
JTextField numJobsField = null; // @jve:decl-index=0:
JLabel jLabel2 = null;
JLabel jLabel3 = null;
JTextField evalThreadsField = null;
JTextField breedThreadsField = null;
JPanel jPanel = null;
JRadioButton seedFileRadioButton = null;
JTextField seedFileField = null;
JButton seedFileButton = null; // @jve:decl-index=0:
JRadioButton randomSeedsRadioButton = null;
JTable seedsTable = null;
JScrollPane jScrollPane = null;
JLabel jLabel6 = null;
JCheckBox checkpointCheckBox = null;
JPanel checkpointPanel = null;
JLabel jLabel7 = null;
JTextField checkpointModuloField = null;
JLabel jLabel8 = null;
JTextField prefixField = null;
JLabel jLabel10 = null;
ButtonGroup seedButtonGroup;
JButton generateSeedsButton = null;
JRadioButton sequentialSeedsRadioButton = null;
JLabel jLabel5 = null;
JTextField jobFilePrefixField = null;
/**
* This is the default constructor
*/
public ControlPanel(Console console)
{
super();
this.console = console;
initialize();
}
public void disableControls()
{
breedThreadsField.setEnabled(false);
checkpointCheckBox.setEnabled(false);
checkpointModuloField.setEnabled(false);
evalThreadsField.setEnabled(false);
generateSeedsButton.setEnabled(false);
jobFilePrefixField.setEnabled(false);
numGensField.setEnabled(false);
numJobsField.setEnabled(false);
prefixField.setEnabled(false);
quitOnRunCompleteCheckbox.setEnabled(false);
sequentialSeedsRadioButton.setEnabled(false);
randomSeedsRadioButton.setEnabled(false);
seedFileRadioButton.setEnabled(false);
seedFileButton.setEnabled(false);
seedsTable.setEnabled(false);
}
public void enableControls()
{
breedThreadsField.setEnabled(true);
checkpointCheckBox.setEnabled(true);
if (checkpointCheckBox.isSelected())
{
checkpointModuloField.setEnabled(true);
prefixField.setEnabled(true);
}
evalThreadsField.setEnabled(true);
jobFilePrefixField.setEnabled(true);
numGensField.setEnabled(true);
numJobsField.setEnabled(true);
quitOnRunCompleteCheckbox.setEnabled(true);
sequentialSeedsRadioButton.setEnabled(true);
randomSeedsRadioButton.setEnabled(true);
if (randomSeedsRadioButton.isSelected())
{
generateSeedsButton.setEnabled(true);
}
seedFileRadioButton.setEnabled(true);
if (seedFileRadioButton.isSelected())
{
seedFileButton.setEnabled(true);
}
seedsTable.setEnabled(true);
}
/**
* This method initializes this
*
* @return void
*/
void initialize()
{
jLabel5 = new JLabel();
GridBagConstraints gridBagConstraints28 = new GridBagConstraints();
GridBagConstraints gridBagConstraints37 = new GridBagConstraints();
jLabel10 = new JLabel();
GridBagConstraints gridBagConstraints45 = new GridBagConstraints();
jLabel6 = new JLabel();
jLabel3 = new JLabel();
jLabel2 = new JLabel();
jLabel1 = new JLabel();
jLabel = new JLabel();
GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
GridBagConstraints gridBagConstraints9 = new GridBagConstraints();
GridBagConstraints gridBagConstraints10 = new GridBagConstraints();
GridBagConstraints gridBagConstraints11 = new GridBagConstraints();
GridBagConstraints gridBagConstraints25 = new GridBagConstraints();
GridBagConstraints gridBagConstraints26 = new GridBagConstraints();
GridBagConstraints gridBagConstraints35 = new GridBagConstraints();
GridBagConstraints gridBagConstraints36 = new GridBagConstraints();
this.setLayout(new GridBagLayout());
this.setSize(975, 300);
this.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
gridBagConstraints1.gridx = 1;
gridBagConstraints1.gridy = 2;
gridBagConstraints1.gridheight = 1;
gridBagConstraints1.gridwidth = 1;
gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST;
jLabel.setText("# Generations:");
gridBagConstraints2.gridx = 2;
gridBagConstraints2.gridy = 2;
gridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints2.weightx = 0.0D;
gridBagConstraints2.insets = new java.awt.Insets(0,5,0,0);
gridBagConstraints2.ipadx = 30;
gridBagConstraints4.gridx = 1;
gridBagConstraints4.gridy = 6;
gridBagConstraints4.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints4.gridwidth = 2;
gridBagConstraints5.gridx = 1;
gridBagConstraints5.gridy = 0;
gridBagConstraints5.anchor = java.awt.GridBagConstraints.NORTHWEST;
jLabel1.setText("# Jobs:");
gridBagConstraints6.gridx = 2;
gridBagConstraints6.gridy = 0;
gridBagConstraints6.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints6.insets = new java.awt.Insets(0,5,0,0);
gridBagConstraints6.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints6.gridwidth = 1;
gridBagConstraints7.gridx = 1;
gridBagConstraints7.gridy = 3;
gridBagConstraints7.anchor = java.awt.GridBagConstraints.WEST;
jLabel2.setText("# Evaluation Threads:");
gridBagConstraints8.gridx = 1;
gridBagConstraints8.gridy = 4;
gridBagConstraints8.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints8.gridwidth = 1;
jLabel3.setText("# Breeder Threads:");
gridBagConstraints9.gridx = 2;
gridBagConstraints9.gridy = 3;
gridBagConstraints9.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints9.insets = new java.awt.Insets(0,5,0,0);
gridBagConstraints10.gridx = 2;
gridBagConstraints10.gridy = 4;
gridBagConstraints10.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints10.insets = new java.awt.Insets(0,5,0,0);
gridBagConstraints11.gridx = 11;
gridBagConstraints11.gridy = 0;
gridBagConstraints11.gridwidth = 6;
gridBagConstraints11.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints11.gridheight = 13;
gridBagConstraints11.weightx = 1.0D;
gridBagConstraints25.gridx = 1;
gridBagConstraints25.gridy = 5;
gridBagConstraints25.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints25.insets = new java.awt.Insets(0,0,0,0);
jLabel6.setText("Verbosity:");
gridBagConstraints26.gridx = 2;
gridBagConstraints26.gridy = 5;
gridBagConstraints26.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints26.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints26.weightx = 0.0D;
gridBagConstraints26.insets = new java.awt.Insets(0,5,0,0);
gridBagConstraints26.ipadx = 30;
gridBagConstraints35.gridx = 1;
gridBagConstraints35.gridy = 7;
gridBagConstraints35.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints35.gridwidth = 2;
gridBagConstraints35.gridheight = 1;
gridBagConstraints36.gridx = 1;
gridBagConstraints36.gridy = 8;
gridBagConstraints36.gridheight = 1;
gridBagConstraints36.gridwidth = 3;
gridBagConstraints36.anchor = java.awt.GridBagConstraints.NORTH;
gridBagConstraints36.ipadx = 107;
gridBagConstraints45.gridx = 5;
gridBagConstraints45.gridy = 8;
gridBagConstraints45.weighty = 1.0D;
jLabel10.setText("");
gridBagConstraints28.gridx = 1;
gridBagConstraints28.gridy = 1;
gridBagConstraints28.anchor = java.awt.GridBagConstraints.WEST;
jLabel5.setText("Job file prefix:");
gridBagConstraints37.gridx = 2;
gridBagConstraints37.gridy = 1;
gridBagConstraints37.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints37.insets = new java.awt.Insets(0,5,0,0);
gridBagConstraints37.gridwidth = 3;
this.add(jLabel, gridBagConstraints1);
this.add(getNumGensField(), gridBagConstraints2);
this.add(getQuitOnRunCompleteCheckbox(), gridBagConstraints4);
this.add(jLabel1, gridBagConstraints5);
this.add(getNumJobsField(), gridBagConstraints6);
this.add(jLabel2, gridBagConstraints7);
this.add(jLabel3, gridBagConstraints8);
this.add(getEvalThreadsField(), gridBagConstraints9);
this.add(getBreedThreadsField(), gridBagConstraints10);
this.add(getJPanel(), gridBagConstraints11);
this.add(jLabel6, gridBagConstraints25);
//this.add(getVerbosityField(), gridBagConstraints26);
this.add(getCheckpointCheckBox(), gridBagConstraints35);
this.add(getCheckpointPanel(), gridBagConstraints36);
this.add(jLabel10, gridBagConstraints45);
this.add(jLabel5, gridBagConstraints28);
this.add(getJobFilePrefixField(), gridBagConstraints37);
this.add(Box.createRigidArea(new Dimension(5,0)));
}
/**
* This method initializes jTextField
*
* @return javax.swing.JTextField
*/
JTextField getNumGensField()
{
if (numGensField == null)
{
numGensField = new JTextField();
numGensField.addKeyListener(new java.awt.event.KeyAdapter()
{
public void keyPressed(KeyEvent e)
{
if (e.getKeyCode() == KeyEvent.VK_ENTER)
{
console.parameters.set(new Parameter(EvolutionState.P_GENERATIONS), ((JTextField)e.getSource()).getText());
}
else if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
{
((JTextField)e.getSource()).setText(console.parameters.getString(new Parameter(EvolutionState.P_GENERATIONS),null));
}
}
});
numGensField.addFocusListener(new FocusListener()
{
public void focusGained(final FocusEvent e)
{
}
public void focusLost(final FocusEvent e)
{
console.parameters.set(new Parameter(EvolutionState.P_GENERATIONS), ((JTextField)e.getSource()).getText());
resizeSeedTable();
}
});
}
return numGensField;
}
/**
* This method initializes jCheckBox
*
* @return javax.swing.JCheckBox
*/
JCheckBox getQuitOnRunCompleteCheckbox()
{
if (quitOnRunCompleteCheckbox == null)
{
quitOnRunCompleteCheckbox = new JCheckBox();
quitOnRunCompleteCheckbox.setText("Quit on Run Complete");
quitOnRunCompleteCheckbox.addItemListener(new java.awt.event.ItemListener()
{
public void itemStateChanged(java.awt.event.ItemEvent e)
{
console.parameters.set(new Parameter(EvolutionState.P_QUITONRUNCOMPLETE),
"" + ((JCheckBox)e.getSource()).isSelected());
}
});
}
return quitOnRunCompleteCheckbox;
}
/**
* This method initializes jTextField1
*
* @return javax.swing.JTextField
*/
JTextField getNumJobsField()
{
if (numJobsField == null)
{
numJobsField = new JTextField();
numJobsField.addKeyListener(new java.awt.event.KeyAdapter()
{
public void keyPressed(java.awt.event.KeyEvent e)
{
if (e.getKeyCode() == KeyEvent.VK_ENTER)
{
resizeSeedTable();
}
}
});
numJobsField.addFocusListener(new FocusListener()
{
public void focusGained(final FocusEvent e)
{
}
public void focusLost(final FocusEvent e)
{
resizeSeedTable();
}
});
}
return numJobsField;
}
public int getNumJobs()
{
try { return Integer.parseInt(getNumJobsField().getText()); }
catch (NumberFormatException e) { return 0; }
}
public int getThreadCount(String text)
{
try
{
if (text.toLowerCase().trim().equals("auto"))
return Runtime.getRuntime().availableProcessors();
else return Integer.parseInt(text);
}
catch (NumberFormatException e) { return 0; }
}
/**
* @throws NumberFormatException
*/
void resizeSeedTable()
throws NumberFormatException
{
int numJobs = Integer.parseInt(numJobsField.getText());
int breedThreads = getThreadCount(breedThreadsField.getText());
int evalThreads = getThreadCount(evalThreadsField.getText());
int numThreads = Math.max(breedThreads, evalThreads);
DefaultTableModel model =(DefaultTableModel)seedsTable.getModel();
model.setColumnCount(numThreads);
String[] columnHeaders = new String[numThreads];
for (int i = 0; i < numThreads; ++i)
{
columnHeaders[i] = "Thread "+i;
}
model.setColumnIdentifiers(columnHeaders);
model.setRowCount(numJobs);
if (seedFileRadioButton.isSelected())
{
File f = new File(seedFileField.getText());
try
{
loadSeeds(f);
}
catch (IOException ex)
{
System.err.println(ex.getMessage());
}
}
else if (randomSeedsRadioButton.isSelected())
{
generateRandomSeeds();
}
else if (sequentialSeedsRadioButton.isSelected())
{
int seed;
int i = 0;
try
{
for (int thread = 0; thread < numThreads; ++thread)
{
seed = console.parameters.getInt(new Parameter("seed."+thread),null);
for (int job = 0; job < numJobs; ++job)
setSeed(""+(seed+(i++)),job,thread);
}
}
catch (NumberFormatException ex)
{
javax.swing.JOptionPane.showMessageDialog(null, "The seed parameter for at least one thread not a fixed number (perhaps it's set to 'time'?), so sequential seeds cannot be used.\n"
+ "Reverting to random number seeds for all threads.", "Adjusting Seeds",
javax.swing.JOptionPane.INFORMATION_MESSAGE);
randomSeedsRadioButton.setSelected(true);
generateRandomSeeds();
}
}
else
{
for (int job = 0; job < numJobs; ++job)
{
for (int thread = 0; thread < numThreads; ++thread)
{
setSeed(console.parameters.getString(new Parameter("seed."+thread),null),job,thread);
}
}
}
}
/**
* @throws NumberFormatException
*/
void generateRandomSeeds()
throws NumberFormatException
{
int numJobs = Integer.parseInt(numJobsField.getText());
int evalThreads = console.parameters.getInt(new Parameter(Evolve.P_EVALTHREADS),null);
int breedThreads = console.parameters.getInt(new Parameter(Evolve.P_BREEDTHREADS),null);
assert(evalThreads == getThreadCount(evalThreadsField.getText()));
assert(breedThreads == getThreadCount(breedThreadsField.getText()));
int numThreads = Math.max(breedThreads, evalThreads);
int seed = (int)(System.currentTimeMillis());
for (int job = 0; job < numJobs; ++job)
{
for (int thread = 0; thread < numThreads; ++thread)
{
seed = seed+(job*Math.min(breedThreads, evalThreads))+(thread*Math.max(breedThreads, evalThreads));
setSeed(""+seed,job,thread);
}
}
}
public int getSeed(int experimentNum, int threadNum)
{
try { return Integer.parseInt((String)seedsTable.getValueAt(experimentNum, threadNum)); }
catch (RuntimeException e)
{
javax.swing.JOptionPane.showMessageDialog(null, "Error reading from seed table. Rebuilding random number seeds.", "Adjusting Seeds",
javax.swing.JOptionPane.INFORMATION_MESSAGE);
generateRandomSeeds();
return Integer.valueOf((String)seedsTable.getValueAt(experimentNum, threadNum)).intValue();
}
}
public void setSeed(String seed, int experimentNum, int threadNum)
{
seedsTable.setValueAt(seed, experimentNum, threadNum);
}
/**
* This method initializes jTextField2
*
* @return javax.swing.JTextField
*/
JTextField getEvalThreadsField()
{
if (evalThreadsField == null)
{
evalThreadsField = new JTextField();
evalThreadsField.addKeyListener(new java.awt.event.KeyAdapter()
{
public void keyPressed(java.awt.event.KeyEvent e)
{
if (e.getKeyCode() == KeyEvent.VK_ENTER)
{
console.parameters.set(new Parameter(Evolve.P_EVALTHREADS), ((JTextField)e.getSource()).getText());
resizeSeedTable();
}
else if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
{
((JTextField)e.getSource()).setText(console.parameters.getString(new Parameter(Evolve.P_EVALTHREADS),null));
}
}
});
evalThreadsField.addFocusListener(new FocusListener()
{
public void focusGained(final FocusEvent e)
{
}
public void focusLost(final FocusEvent e)
{
console.parameters.set(new Parameter(Evolve.P_EVALTHREADS), ((JTextField)e.getSource()).getText());
resizeSeedTable();
}
});
}
return evalThreadsField;
}
/**
* This method initializes jTextField3
*
* @return javax.swing.JTextField
*/
JTextField getBreedThreadsField()
{
if (breedThreadsField == null)
{
breedThreadsField = new JTextField();
breedThreadsField.addKeyListener(new java.awt.event.KeyAdapter()
{
public void keyPressed(java.awt.event.KeyEvent e)
{
if (e.getKeyCode() == KeyEvent.VK_ENTER)
{
console.parameters.set(new Parameter(Evolve.P_BREEDTHREADS), ((JTextField)e.getSource()).getText());
resizeSeedTable();
}
else if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
{
((JTextField)e.getSource()).setText(console.parameters.getString(new Parameter(Evolve.P_BREEDTHREADS),null));
}
}
});
breedThreadsField.addFocusListener(new FocusListener()
{
public void focusGained(final FocusEvent e)
{
}
public void focusLost(final FocusEvent e)
{
console.parameters.set(new Parameter(Evolve.P_BREEDTHREADS), ((JTextField)e.getSource()).getText());
resizeSeedTable();
}
});
}
return breedThreadsField;
}
/**
* This method initializes jPanel
*
* @return javax.swing.JPanel
*/
JPanel getJPanel()
{
if (jPanel == null)
{
GridBagConstraints gridBagConstraints15 = new GridBagConstraints();
GridBagConstraints gridBagConstraints81 = new GridBagConstraints();
GridBagConstraints gridBagConstraints14 = new GridBagConstraints();
GridBagConstraints gridBagConstraints13 = new GridBagConstraints();
GridBagConstraints gridBagConstraints12 = new GridBagConstraints();
GridBagConstraints gridBagConstraints19 = new GridBagConstraints();
GridBagConstraints gridBagConstraints21 = new GridBagConstraints();
TitledBorder titledBorder28 = javax.swing.BorderFactory.createTitledBorder(null, "Random Seed(s)", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null);
jPanel = new JPanel();
jPanel.setLayout(new GridBagLayout());
gridBagConstraints12.gridx = 0;
gridBagConstraints12.gridy = 1;
gridBagConstraints12.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints12.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints12.gridwidth = 5;
gridBagConstraints12.insets = new java.awt.Insets(0,20,0,0);
gridBagConstraints12.weightx = 1.0D;
gridBagConstraints13.gridx = 5;
gridBagConstraints13.gridy = 1;
gridBagConstraints13.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints13.insets = new java.awt.Insets(0,5,0,0);
gridBagConstraints14.gridx = 0;
gridBagConstraints14.gridy = 3;
gridBagConstraints14.gridwidth = 1;
gridBagConstraints14.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints19.gridwidth = 6;
gridBagConstraints19.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints21.gridx = 0;
gridBagConstraints21.gridy = 7;
gridBagConstraints21.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints21.gridwidth = 6;
gridBagConstraints21.gridheight = 1;
gridBagConstraints21.weighty = 1.0D;
gridBagConstraints21.weightx = 1.0D;
jPanel.setBorder(titledBorder28);
titledBorder28.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED));
gridBagConstraints81.gridx = 1;
gridBagConstraints81.gridy = 3;
gridBagConstraints15.gridx = 0;
gridBagConstraints15.gridy = 2;
gridBagConstraints15.anchor = java.awt.GridBagConstraints.WEST;
jPanel.add(getSeedFileRadioButton(), gridBagConstraints19);
jPanel.add(getSeedFileField(), gridBagConstraints12);
jPanel.add(getSeedFileButton(), gridBagConstraints13);
jPanel.add(getRandomSeedsRadioButton(), gridBagConstraints14);
jPanel.add(getJScrollPane(), gridBagConstraints21);
seedButtonGroup = new ButtonGroup();
seedButtonGroup.add(getRandomSeedsRadioButton());
seedButtonGroup.add(getSeedFileRadioButton());
seedButtonGroup.add(getSequentialSeedsRadioButton());
jPanel.add(getGenerateSeedsButton(), gridBagConstraints81);
jPanel.add(getSequentialSeedsRadioButton(), gridBagConstraints15);
}
return jPanel;
}
/**
* This method initializes jRadioButton
*
* @return javax.swing.JRadioButton
*/
JRadioButton getSeedFileRadioButton()
{
if (seedFileRadioButton == null)
{
seedFileRadioButton = new JRadioButton();
seedFileRadioButton.setText("Seeds from file:");
final ControlPanel cp = this;
seedFileRadioButton.addItemListener(new java.awt.event.ItemListener()
{
public void itemStateChanged(java.awt.event.ItemEvent e)
{
if (e.getStateChange() == ItemEvent.SELECTED)
{
seedFileField.setEnabled(true);
seedFileButton.setEnabled(true);
String seedFileName = seedFileField.getText();
File seedFile = null;
if ( seedFileName == null ||
seedFileName.length() == 0)
{
FileDialog fileDialog = new FileDialog(ControlPanel.this.console,"Load...",FileDialog.LOAD);
fileDialog.setDirectory(System.getProperty("user.dir"));
fileDialog.setFile("*.seed");
fileDialog.setVisible(true);
String fileName = fileDialog.getFile();
if ( fileName != null )
{
seedFile = new File(fileDialog.getDirectory(),fileName);
}
}
else
{
seedFile = new File(seedFileName);
}
if (seedFile != null)
{
try
{
cp.loadSeeds(seedFile);
}
catch (IOException ex)
{
System.err.println(ex.getMessage());
}
}
}
else
{
seedFileField.setEnabled(false);
seedFileButton.setEnabled(false);
}
}
});
}
return seedFileRadioButton;
}
/**
* This method initializes jTextField4
*
* @return javax.swing.JTextField
*/
JTextField getSeedFileField()
{
if (seedFileField == null)
{
seedFileField = new JTextField();
seedFileField.setEnabled(false);
seedFileField.setEditable(false);
}
return seedFileField;
}
/**
* This method initializes jButton
*
* @return javax.swing.JButton
*/
JButton getSeedFileButton()
{
if (seedFileButton == null)
{
seedFileButton = new JButton();
seedFileButton.setText("...");
seedFileButton.setEnabled(false);
final ControlPanel cp = this;
seedFileButton.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent e)
{
File seedFile = null;
FileDialog fileDialog = new FileDialog(ControlPanel.this.console,"Load...",FileDialog.LOAD);
fileDialog.setDirectory(System.getProperty("user.dir"));
fileDialog.setFile("*.seed");
fileDialog.setVisible(true);
String fileName = fileDialog.getFile();
if ( fileName != null )
{
seedFile = new File(fileDialog.getDirectory(),fileName);
}
if (seedFile != null)
{
try
{
cp.loadSeeds(seedFile);
}
catch (IOException ex)
{
System.err.println(ex.getMessage());
}
}
}
});
}
return seedFileButton;
}
/**
* This method initializes jRadioButton1
*
* @return javax.swing.JRadioButton
*/
JRadioButton getRandomSeedsRadioButton()
{
if (randomSeedsRadioButton == null)
{
randomSeedsRadioButton = new JRadioButton();
randomSeedsRadioButton.setText("Random Seeds");
randomSeedsRadioButton.setSelected(true);
randomSeedsRadioButton.addItemListener(new java.awt.event.ItemListener()
{
public void itemStateChanged(java.awt.event.ItemEvent e)
{
if (e.getStateChange() == ItemEvent.SELECTED)
{
generateSeedsButton.setEnabled(true);
}
else
{
generateSeedsButton.setEnabled(false);
}
}
});
}
return randomSeedsRadioButton;
}
/**
* This method initializes jTable
*
* @return javax.swing.JTable
*/
JTable getSeedsTable()
{
if (seedsTable == null)
{
seedsTable = new JTable();
seedsTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
}
return seedsTable;
}
/**
* This method initializes jScrollPane
*
* @return javax.swing.JScrollPane
*/
JScrollPane getJScrollPane()
{
if (jScrollPane == null)
{
jScrollPane = new JScrollPane();
jScrollPane.setViewportView(getSeedsTable());
jScrollPane.setHorizontalScrollBarPolicy(javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
}
return jScrollPane;
}
/**
* @param panel TODO
* @param enabled TODO
*
*/
void setEnabled(JPanel panel, boolean enabled)
{
Component[] components = panel.getComponents();
for (int i = 0; i < components.length; ++i)
{
components[i].setEnabled(enabled);
}
}
/**
* This method initializes jCheckBox10
*
* @return javax.swing.JCheckBox
*/
JCheckBox getCheckpointCheckBox()
{
if (checkpointCheckBox == null)
{
checkpointCheckBox = new JCheckBox();
checkpointCheckBox.setText("Checkpoint");
checkpointCheckBox.addItemListener(new java.awt.event.ItemListener()
{
public void itemStateChanged(java.awt.event.ItemEvent e)
{
if (e.getStateChange() == ItemEvent.SELECTED)
{
setEnabled(checkpointPanel, true);
}
else
{
setEnabled(checkpointPanel, false);
}
console.parameters.set(new Parameter(EvolutionState.P_CHECKPOINT),"" + ((JCheckBox)e.getSource()).isSelected());
}
});
}
return checkpointCheckBox;
}
/**
* This method initializes jPanel2
*
* @return javax.swing.JPanel
*/
JPanel getCheckpointPanel()
{
if (checkpointPanel == null)
{
GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
jLabel8 = new JLabel();
jLabel7 = new JLabel();
GridBagConstraints gridBagConstraints39 = new GridBagConstraints();
GridBagConstraints gridBagConstraints40 = new GridBagConstraints();
GridBagConstraints gridBagConstraints41 = new GridBagConstraints();
checkpointPanel = new JPanel();
checkpointPanel.setLayout(new GridBagLayout());
jLabel7.setText("Frequency:");
jLabel7.setEnabled(false);
gridBagConstraints39.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints39.gridx = 1;
gridBagConstraints39.gridy = 0;
gridBagConstraints39.ipady = 0;
gridBagConstraints39.ipadx = 0;
gridBagConstraints39.weightx = 0.0D;
gridBagConstraints39.insets = new java.awt.Insets(0,5,0,0);
checkpointPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), "Checkpointing", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
jLabel8.setText("File Prefix:");
jLabel8.setEnabled(false);
gridBagConstraints40.gridx = 0;
gridBagConstraints40.gridy = 1;
gridBagConstraints40.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints41.gridx = 1;
gridBagConstraints41.gridy = 1;
gridBagConstraints41.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints41.insets = new java.awt.Insets(0,5,0,0);
gridBagConstraints41.gridwidth = 2;
gridBagConstraints41.weightx = 0.5D;
gridBagConstraints3.anchor = java.awt.GridBagConstraints.WEST;
checkpointPanel.add(jLabel7, gridBagConstraints3);
checkpointPanel.add(getCheckpointModuloField(), gridBagConstraints39);
checkpointPanel.add(jLabel8, gridBagConstraints40);
checkpointPanel.add(getPrefixField(), gridBagConstraints41);
}
return checkpointPanel;
}
/**
* This method initializes jTextField8
*
* @return javax.swing.JTextField
*/
JTextField getCheckpointModuloField()
{
if (checkpointModuloField == null)
{
checkpointModuloField = new JTextField();
checkpointModuloField.setPreferredSize(new java.awt.Dimension(35,20));
checkpointModuloField.setEnabled(false);
checkpointModuloField.addKeyListener(new java.awt.event.KeyAdapter()
{
public void keyPressed(java.awt.event.KeyEvent e)
{
if (e.getKeyCode() == KeyEvent.VK_ENTER)
{
console.parameters.set(new Parameter(EvolutionState.P_CHECKPOINTMODULO), ((JTextField)e.getSource()).getText());
}
else if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
{
((JTextField)e.getSource()).setText(console.parameters.getString(new Parameter(EvolutionState.P_CHECKPOINTMODULO),null));
}
}
});
checkpointModuloField.addFocusListener(new FocusListener()
{
public void focusGained(final FocusEvent e)
{
}
public void focusLost(final FocusEvent e)
{
console.parameters.set(new Parameter(EvolutionState.P_CHECKPOINTMODULO), ((JTextField)e.getSource()).getText());
}
});
}
return checkpointModuloField;
}
/**
* This method initializes jTextField9
*
* @return javax.swing.JTextField
*/
JTextField getPrefixField()
{
if (prefixField == null)
{
prefixField = new JTextField();
prefixField.setEnabled(false);
prefixField.addKeyListener(new java.awt.event.KeyAdapter()
{
public void keyPressed(java.awt.event.KeyEvent e)
{
if (e.getKeyCode() == KeyEvent.VK_ENTER)
{
console.parameters.set(new Parameter(EvolutionState.P_CHECKPOINTPREFIX), ((JTextField)e.getSource()).getText());
}
else if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
{
((JTextField)e.getSource()).setText(console.parameters.getString(new Parameter(EvolutionState.P_CHECKPOINTPREFIX),null));
}
}
});
prefixField.addFocusListener(new FocusListener()
{
public void focusGained(final FocusEvent e)
{
}
public void focusLost(final FocusEvent e)
{
console.parameters.set(new Parameter(EvolutionState.P_CHECKPOINTPREFIX), ((JTextField)e.getSource()).getText());
}
});
}
return prefixField;
}
public void loadParameters()
{
numGensField.setText(console.parameters.getStringWithDefault(
new Parameter(EvolutionState.P_GENERATIONS),null,"1"));
quitOnRunCompleteCheckbox.setSelected(console.parameters.getBoolean(new Parameter(EvolutionState.P_QUITONRUNCOMPLETE),null,true));
evalThreadsField.setText(console.parameters.getStringWithDefault(new Parameter(Evolve.P_EVALTHREADS),null,"1"));
breedThreadsField.setText(console.parameters.getStringWithDefault(new Parameter(Evolve.P_BREEDTHREADS),null,"1"));
checkpointCheckBox.setSelected(console.parameters.getBoolean(new Parameter(EvolutionState.P_CHECKPOINT),null,false));
checkpointModuloField.setText(console.parameters.getStringWithDefault(new Parameter(EvolutionState.P_CHECKPOINTMODULO),null,"10"));
prefixField.setText(console.parameters.getStringWithDefault(new Parameter(EvolutionState.P_CHECKPOINTPREFIX),null,"gc"));
numJobsField.setText("1");
jobFilePrefixField.setText(console.parameters.getStringWithDefault(new Parameter(P_JOBFILEPREFIX),null,""));
resizeSeedTable();
}
void loadSeeds(File f)
throws IOException
{
LineNumberReader in = null;
try
{
in = new LineNumberReader(new InputStreamReader(new FileInputStream(f)));
seedFileField.setText(f.getAbsolutePath());
// whether a seed is used for a particular thread or job depends
// upon how many of each there are. Just read seeds, one per line, until
// numJobs * numThreads seeds are read. If there are not enough seeds,
// print a warning and generate the remaining necessary.
int numJobs = 0;
try { numJobs = Integer.parseInt(numJobsField.getText()); }
catch(NumberFormatException e) { }
int evalThreads = getThreadCount(console.parameters.getString(new Parameter(Evolve.P_EVALTHREADS),null));
int breedThreads = getThreadCount(console.parameters.getString(new Parameter(Evolve.P_BREEDTHREADS),null));
int numThreads = Math.max(evalThreads, breedThreads);
// Read seeds for threads first
// TODO Make this more robust (i.e. ensure we're reading integers).
int job = 0;
int thread = 0;
String lastSeed = null;
for (; job < numJobs; ++job)
{
String seed = null;
for (; thread < numThreads; ++thread)
{
seed = in.readLine();
if (seed != null)
{
setSeed(seed, job, thread);
lastSeed = seed;
}
else break;
}
if (seed == null)
break;
thread = 0;
}
// Finish filling out the table with sequential numbers starting from
// the last good seed.
// TODO Determine if this is reasonable. Should we instead generate
// random seeds? Alternatively, should we indicate this as an error
// to the user and abort?
if ((job)*(thread) != (numJobs)*(numThreads))
{
int seedNum = Integer.valueOf(lastSeed).intValue();
for (;job < numJobs; ++job)
{
for (;thread < numThreads; ++thread)
{
String seed = ""+(++seedNum);
setSeed(seed,job,thread);
}
thread = 0;
}
}
}
finally
{
if (in != null) try { in.close(); } catch (IOException e) { }
}
}
/**
* This method initializes jButton
*
* @return javax.swing.JButton
*/
JButton getGenerateSeedsButton()
{
if (generateSeedsButton == null)
{
generateSeedsButton = new JButton();
generateSeedsButton.setText("Generate");
generateSeedsButton.setEnabled(false);
generateSeedsButton.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent e)
{
generateRandomSeeds();
}
});
}
return generateSeedsButton;
}
/**
* This method initializes jRadioButton
*
* @return javax.swing.JRadioButton
*/
JRadioButton getSequentialSeedsRadioButton()
{
if (sequentialSeedsRadioButton == null)
{
sequentialSeedsRadioButton = new JRadioButton();
sequentialSeedsRadioButton.setText("Sequential");
sequentialSeedsRadioButton.addItemListener(new java.awt.event.ItemListener()
{
public void itemStateChanged(java.awt.event.ItemEvent e)
{
if (e.getStateChange() == ItemEvent.SELECTED)
{
resizeSeedTable();
}
}
});
}
return sequentialSeedsRadioButton;
}
/**
* This method initializes jTextField
*
* @return javax.swing.JTextField
*/
JTextField getJobFilePrefixField()
{
if (jobFilePrefixField == null)
{
jobFilePrefixField = new JTextField();
jobFilePrefixField.addKeyListener(new java.awt.event.KeyAdapter()
{
public void keyPressed(java.awt.event.KeyEvent e)
{
if (e.getKeyCode() == KeyEvent.VK_ENTER)
{
console.parameters.set(new Parameter(P_JOBFILEPREFIX), ((JTextField)e.getSource()).getText());
}
else if (e.getKeyCode() == KeyEvent.VK_ESCAPE)
{
((JTextField)e.getSource()).setText(console.parameters.getStringWithDefault(new Parameter(P_JOBFILEPREFIX),null,""));
}
}
});
}
return jobFilePrefixField;
}
public String getJobFilePrefix()
{
return jobFilePrefixField.getText();
}
} // @jve:decl-index=0:visual-constraint="66,13"
|
cihankarluk/TvFY
|
itests/base.py
|
<filename>itests/base.py
import requests
from bs4 import BeautifulSoup
from django.test import TestCase
from TvFY.collector.base import Scrapper
from TvFY.collector.google import GoogleScrapper
from TvFY.collector.imdb import IMDBBase
from TvFY.collector.tomatoes import TomatoesBase
class BaseTestCase(TestCase):
@classmethod
def get_imdb_result(cls, url: str, search_type: str) -> dict:
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
cls_ = IMDBBase(soup=soup, url=url, search_type=search_type)
result = cls_.run()
return result
@classmethod
def get_tomatoes_result(cls, url: str, search_type: str) -> dict:
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
cls_ = TomatoesBase(soup=soup, url=url, search_type=search_type)
result = cls_.run()
return result
@classmethod
def get_google_result(cls, search_key: str) -> dict:
cls_ = GoogleScrapper(search_key=search_key)
result = cls_.run()
return result
@classmethod
def get_scrapper_result(cls, urls: list, search_type: str) -> dict:
cls_ = Scrapper(urls=urls, search_type=search_type)
result = cls_.handle()
return result
@classmethod
def is_subset(cls, attrs, results) -> bool:
set_attrs = set(attrs)
is_subset: bool = all(
set_attrs.issubset(transaction) and set_attrs.issuperset(transaction)
for transaction in results
)
return is_subset
|
1040128600/OfficeAssitant
|
src/pages/components/hr/academy-statistic-study/item.js
|
<filename>src/pages/components/hr/academy-statistic-study/item.js
import { Tooltip } from "iview";
import { getParseUrl, getHashUrl, setItem, getItem } from '@utils/utils';
import { StudentDetail } from './popup/student-detail';
export default {
data() {
return {
columns: [
{
title: '姓名',
key: 'staff_name',
minWidth: 200,
fixed: 'left',
renderHeader: (h, params) => {
return (
<div style="marginLeft: 45px;fontWeight: normal">姓名</div>
);
},
render: (h, params) => {
const { staff_name, staff_status } = params.row;
return (
<div class="g-flex-ac g-pointer" onClick={() => this.handleOpenDrawer(params.row)}>
{ staff_status == 4 ? <div class="g-m-r-5 g-remark">离职</div>
: <div class="g-m-r-5 g-remark" style="opacity: 0">离职</div>}
<span>
{ staff_name.length <= 7
? <span class="g-c-blue-light g-oneline">
{staff_name}
</span>
: <span class="g-c-blue-light">{staff_name.slice(0, 7) + '...'}</span>
}
</span>
</div>
);
}
},
{
title: "部门",
key: "depart_name",
minWidth: 150,
},
{
title: "手机号码",
key: "mobile",
minWidth: 150,
},
{
title: "人才梯队",
key: "echelon_name",
minWidth: 150,
render: (h, params) => {
return (
<div
class="g-operation"
onClick={(e) => {
e.stopPropagation();
this.handleViewEchelon(params.row);
}}
>
<span>{params.row.echelon_name}</span>
</div>
);
}
},
{
title: "课程名称",
key: "position_name",
minWidth: 200,
render: (h, params) => {
const { course } = params.row;
let content = course.length ? course.map(v => v.course_name).filter((e, index) => index < 3) : [];
return (
<div>
{
content.length
? <div class="g-flex-ac">
<span>
{ course[0].course_name.length <= 10
? <Tooltip class="g-pointer" transfer>
{course[0].course_name}
<div slot="content">
{content.map((item, index) => <div key={index}>
{item.length < 15 ? item : item.slice(0, 15) + '...'}
</div>)}
</div>
</Tooltip>
: <Tooltip class="g-pointer" transfer>
{course[0].course_name.slice(0, 10) + '...'}
<div slot="content">
{content.map((item, index) => <div key={index}>
{item.length < 15 ? item : item.slice(0, 15) + '...'}
</div>)}
</div>
</Tooltip>
}
</span>
</div> : <span></span>
}
</div>
);
}
},
{
title: "参与项目",
key: "position_name",
minWidth: 200,
render: (h, params) => {
const { project } = params.row;
let name = project.map(v => v.type_name).join(',');
return (
<div class="g-flex-ac">
<span>
{ name.length <= 10
? <Tooltip class="g-pointer" transfer>
{name}
<div slot="content">
{project.map((item, index) => <div key={index}>{item.type_name}:{item.course_num}次</div>)}
</div>
</Tooltip>
: <Tooltip class="g-pointer" transfer>
{name.slice(0, 10) + '...'}
<div slot="content">
{project.map((item, index) => <div key={index}>{item.type_name}:{item.course_num}次</div>)}
</div>
</Tooltip>
}
</span>
</div>
);
}
},
{
title: "所的学分",
key: "credit",
minWidth: 100,
}
],
};
},
methods: {
handleResetFirst() {
this.$store.commit('HR_ACADEMY_STATISTIC_STUDY_LIST_INIT');
},
handleResetCur() {
this.$store.commit('HR_ACADEMY_STATISTIC_STUDY_LIST_RESET', { type: this.type });
},
handleLinkTo() {
this.$router.push('/');
},
handleOpenDrawer(e) {
StudentDetail.popup({ staff: e.staff_id, applicant: e.applicant_id }).then(res => {
}).catch(err => {
});
},
handleViewEchelon(row) {
this.$router.push({
path: '/hr/academy/statistic/study/detail',
query: {
staff_id: row.staff_id,
applicant_id: row.applicant_id,
echelon_id: row.echelon_id
}
});
}
}
};
|
mislav/twitter
|
spec/twitter/client/accounts_spec.rb
|
require 'helper'
describe Twitter::Client do
before do
@client = Twitter::Client.new
end
describe "#rate_limit_status" do
before do
stub_get("/1/account/rate_limit_status.json").
to_return(:body => fixture("rate_limit_status.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@client.rate_limit_status
a_get("/1/account/rate_limit_status.json").
should have_been_made
end
it "should return the remaining number of API requests available to the requesting user before the API limit is reached" do
rate_limit_status = @client.rate_limit_status
rate_limit_status.should be_a Twitter::RateLimitStatus
rate_limit_status.remaining_hits.should == 19993
end
end
describe "#verify_credentials" do
before do
stub_get("/1/account/verify_credentials.json").
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@client.verify_credentials
a_get("/1/account/verify_credentials.json").
should have_been_made
end
it "should return the requesting user" do
user = @client.verify_credentials
user.should be_a Twitter::User
user.name.should == "<NAME>"
end
end
describe "#end_session" do
before do
stub_post("/1/account/end_session.json").
to_return(:body => fixture("end_session.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@client.end_session
a_post("/1/account/end_session.json").
should have_been_made
end
it "should return a null cookie" do
end_session = @client.end_session
end_session['error'].should == "Logged out."
end
end
describe "#update_delivery_device" do
before do
stub_post("/1/account/update_delivery_device.json").
with(:body => {:device => "sms"}).
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@client.update_delivery_device("sms")
a_post("/1/account/update_delivery_device.json").
with(:body => {:device => "sms"}).
should have_been_made
end
it "should return a user" do
user = @client.update_delivery_device("sms")
user.should be_a Twitter::User
user.name.should == "<NAME>"
end
end
describe "#update_profile" do
before do
stub_post("/1/account/update_profile.json").
with(:body => {:url => "http://github.com/sferik/"}).
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@client.update_profile(:url => "http://github.com/sferik/")
a_post("/1/account/update_profile.json").
with(:body => {:url => "http://github.com/sferik/"}).
should have_been_made
end
it "should return a user" do
user = @client.update_profile(:url => "http://github.com/sferik/")
user.should be_a Twitter::User
user.name.should == "<NAME>"
end
end
describe "#update_profile_background_image" do
before do
stub_post("/1/account/update_profile_background_image.json").
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@client.update_profile_background_image(fixture("we_concept_bg2.png"))
a_post("/1/account/update_profile_background_image.json").
should have_been_made
end
it "should return a user" do
user = @client.update_profile_background_image(fixture("we_concept_bg2.png"))
user.should be_a Twitter::User
user.name.should == "<NAME>"
end
end
describe "#update_profile_colors" do
before do
stub_post("/1/account/update_profile_colors.json").
with(:body => {:profile_background_color => "000000"}).
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@client.update_profile_colors(:profile_background_color => "000000")
a_post("/1/account/update_profile_colors.json").
with(:body => {:profile_background_color => "000000"}).
should have_been_made
end
it "should return a user" do
user = @client.update_profile_colors(:profile_background_color => "000000")
user.should be_a Twitter::User
user.name.should == "<NAME>"
end
end
describe "#update_profile_image" do
before do
stub_post("/1/account/update_profile_image.json").
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@client.update_profile_image(fixture("me.jpeg"))
a_post("/1/account/update_profile_image.json").
should have_been_made
end
it "should return a user" do
user = @client.update_profile_image(fixture("me.jpeg"))
user.should be_a Twitter::User
user.name.should == "<NAME>"
end
end
describe "#settings" do
before do
stub_get("/1/account/settings.json").
to_return(:body => fixture("settings.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_post("/1/account/settings.json").
with(:body => {:trend_location_woeid => "23424803"}).
to_return(:body => fixture("settings.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource on GET" do
@client.settings
a_get("/1/account/settings.json").
should have_been_made
end
it "should return settings" do
settings = @client.settings
settings.should be_a Twitter::Settings
settings.language.should == 'en'
end
it "should request the correct resource on POST" do
@client.settings(:trend_location_woeid => "23424803")
a_post("/1/account/settings.json").
with(:body => {:trend_location_woeid => "23424803"}).
should have_been_made
end
it "should return settings" do
settings = @client.settings(:trend_location_woeid => "23424803")
settings.should be_a Twitter::Settings
settings.language.should == 'en'
end
end
end
|
swp-song/SwpTransitions
|
SwpTransitions/Class/Main/SwpCustomAnimations/SwpCustomAnimations.h
|
//
// SwpCustomAnimations.h
// swp_song
//
// Created by swp_song on 2018/4/29.
// Copyright © 2018年 swp_song. All rights reserved.
//
#import "SwpTransitions.h"
NS_ASSUME_NONNULL_BEGIN
/**
* @author swp_song
*
* @brief SwpCustomAnimationsBlock ( SwpCustomAnimations 转场回调参数 )
*
* @param transitionContext transitionContext
*/
typedef void(^SwpCustomAnimationsBlock)(id<UIViewControllerContextTransitioning> transitionContext);
@interface SwpCustomAnimations : SwpTransitions
/**
* @author swp_song
*
* @brief swpCustomToAnimation ( SwpCustomAnimations 回调方法,控制器跳转调用 )
*/
- (SwpCustomAnimations * _Nonnull (^)(SwpCustomAnimationsBlock _Nullable))swpCustomToAnimation;
/**
* @author swp_song
*
* @brief swpCustomBackAnimation ( SwpCustomAnimations 回调方法,控制器返回调用 )
*/
- (SwpCustomAnimations * _Nonnull (^)(SwpCustomAnimationsBlock _Nullable))swpCustomBackAnimation;
@end
NS_ASSUME_NONNULL_END
|
DATX02-87/DecentralizedVoting
|
transaction-processor/model/src/main/java/se/chalmers/datx02/model/Example.java
|
package se.chalmers.datx02.model;
import com.fasterxml.jackson.databind.ObjectMapper;
import sawtooth.sdk.protobuf.TpProcessRequest;
import se.chalmers.datx02.model.action.AddCandidateAction;
import se.chalmers.datx02.model.action.AddElectionAction;
import se.chalmers.datx02.model.action.CastVoteAction;
import se.chalmers.datx02.model.action.EndElectionAction;
import se.chalmers.datx02.model.exception.InvalidStateException;
import se.chalmers.datx02.model.exception.ReducerException;
import se.chalmers.datx02.model.state.GlobalState;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
public class Example {
public static void main(String[] args) throws Exception {
ObjectMapper om = new ObjectMapper();
GlobalState g = new GlobalState(Collections.singletonList("Melker"), new HashMap<>());
List<String> allowedVoters = Arrays.asList("Melker", "Kalle", "Kula");
AddElectionAction action = new AddElectionAction("TestVal", Arrays.asList("Melker", "Anders"), allowedVoters);
Transaction t = new Transaction(Action.ADD_ELECTION, om.writeValueAsString(action), "Melker");
GlobalState newState = Reducer.applyTransaction(t, g);
System.out.println(newState);
t = new Transaction(Action.ADD_CANDIDATE, om.writeValueAsString(new AddCandidateAction("Steffe", "TestVal")), "Melker");
newState = Reducer.applyTransaction(t, newState);
t = new Transaction(Action.ADD_CANDIDATE, om.writeValueAsString(new AddCandidateAction("Uffe", "TestVal")), "Anders");
newState = Reducer.applyTransaction(t, newState);
t = new Transaction(Action.CAST_VOTE, om.writeValueAsString(new CastVoteAction("TestVal", "Steffe")), "Kula");
newState = Reducer.applyTransaction(t, newState);
t = new Transaction(Action.END_ELECTION, om.writeValueAsString(new EndElectionAction("TestVal")), "Anders");
newState = Reducer.applyTransaction(t, newState);
System.out.println(newState);
t = new Transaction(Action.CAST_VOTE, om.writeValueAsString(new CastVoteAction("TestVal", "Uffe")), "Kalle");
newState = Reducer.applyTransaction(t, newState);
}
public void exampleTransactionProcessing(TpProcessRequest processRequest) throws InvalidStateException, ReducerException {
// for example only
GlobalState g = null;
byte[] payload = processRequest.getPayload().toByteArray();
String submitter = processRequest.getHeader().getSignerPublicKey();
TransactionPayload transactionPayload = DataUtil.ByteArrToTransactionPayload(payload);
Transaction transaction = new Transaction(transactionPayload, submitter);
GlobalState newState = Reducer.applyTransaction(transaction, g);
}
}
|
OpenMPDK/SMDK
|
lib/linux-5.18-rc3-smdk/drivers/net/wireless/ath/ath11k/rx_desc.h
|
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
*/
#ifndef ATH11K_RX_DESC_H
#define ATH11K_RX_DESC_H
enum rx_desc_rxpcu_filter {
RX_DESC_RXPCU_FILTER_PASS,
RX_DESC_RXPCU_FILTER_MONITOR_CLIENT,
RX_DESC_RXPCU_FILTER_MONITOR_OTHER,
};
/* rxpcu_filter_pass
* This MPDU passed the normal frame filter programming of rxpcu.
*
* rxpcu_filter_monitor_client
* This MPDU did not pass the regular frame filter and would
* have been dropped, were it not for the frame fitting into the
* 'monitor_client' category.
*
* rxpcu_filter_monitor_other
* This MPDU did not pass the regular frame filter and also did
* not pass the rxpcu_monitor_client filter. It would have been
* dropped accept that it did pass the 'monitor_other' category.
*/
#define RX_DESC_INFO0_RXPCU_MPDU_FITLER GENMASK(1, 0)
#define RX_DESC_INFO0_SW_FRAME_GRP_ID GENMASK(8, 2)
enum rx_desc_sw_frame_grp_id {
RX_DESC_SW_FRAME_GRP_ID_NDP_FRAME,
RX_DESC_SW_FRAME_GRP_ID_MCAST_DATA,
RX_DESC_SW_FRAME_GRP_ID_UCAST_DATA,
RX_DESC_SW_FRAME_GRP_ID_NULL_DATA,
RX_DESC_SW_FRAME_GRP_ID_MGMT_0000,
RX_DESC_SW_FRAME_GRP_ID_MGMT_0001,
RX_DESC_SW_FRAME_GRP_ID_MGMT_0010,
RX_DESC_SW_FRAME_GRP_ID_MGMT_0011,
RX_DESC_SW_FRAME_GRP_ID_MGMT_0100,
RX_DESC_SW_FRAME_GRP_ID_MGMT_0101,
RX_DESC_SW_FRAME_GRP_ID_MGMT_0110,
RX_DESC_SW_FRAME_GRP_ID_MGMT_0111,
RX_DESC_SW_FRAME_GRP_ID_MGMT_1000,
RX_DESC_SW_FRAME_GRP_ID_MGMT_1001,
RX_DESC_SW_FRAME_GRP_ID_MGMT_1010,
RX_DESC_SW_FRAME_GRP_ID_MGMT_1011,
RX_DESC_SW_FRAME_GRP_ID_MGMT_1100,
RX_DESC_SW_FRAME_GRP_ID_MGMT_1101,
RX_DESC_SW_FRAME_GRP_ID_MGMT_1110,
RX_DESC_SW_FRAME_GRP_ID_MGMT_1111,
RX_DESC_SW_FRAME_GRP_ID_CTRL_0000,
RX_DESC_SW_FRAME_GRP_ID_CTRL_0001,
RX_DESC_SW_FRAME_GRP_ID_CTRL_0010,
RX_DESC_SW_FRAME_GRP_ID_CTRL_0011,
RX_DESC_SW_FRAME_GRP_ID_CTRL_0100,
RX_DESC_SW_FRAME_GRP_ID_CTRL_0101,
RX_DESC_SW_FRAME_GRP_ID_CTRL_0110,
RX_DESC_SW_FRAME_GRP_ID_CTRL_0111,
RX_DESC_SW_FRAME_GRP_ID_CTRL_1000,
RX_DESC_SW_FRAME_GRP_ID_CTRL_1001,
RX_DESC_SW_FRAME_GRP_ID_CTRL_1010,
RX_DESC_SW_FRAME_GRP_ID_CTRL_1011,
RX_DESC_SW_FRAME_GRP_ID_CTRL_1100,
RX_DESC_SW_FRAME_GRP_ID_CTRL_1101,
RX_DESC_SW_FRAME_GRP_ID_CTRL_1110,
RX_DESC_SW_FRAME_GRP_ID_CTRL_1111,
RX_DESC_SW_FRAME_GRP_ID_UNSUPPORTED,
RX_DESC_SW_FRAME_GRP_ID_PHY_ERR,
};
enum rx_desc_decap_type {
RX_DESC_DECAP_TYPE_RAW,
RX_DESC_DECAP_TYPE_NATIVE_WIFI,
RX_DESC_DECAP_TYPE_ETHERNET2_DIX,
RX_DESC_DECAP_TYPE_8023,
};
enum rx_desc_decrypt_status_code {
RX_DESC_DECRYPT_STATUS_CODE_OK,
RX_DESC_DECRYPT_STATUS_CODE_UNPROTECTED_FRAME,
RX_DESC_DECRYPT_STATUS_CODE_DATA_ERR,
RX_DESC_DECRYPT_STATUS_CODE_KEY_INVALID,
RX_DESC_DECRYPT_STATUS_CODE_PEER_ENTRY_INVALID,
RX_DESC_DECRYPT_STATUS_CODE_OTHER,
};
#define RX_ATTENTION_INFO1_FIRST_MPDU BIT(0)
#define RX_ATTENTION_INFO1_RSVD_1A BIT(1)
#define RX_ATTENTION_INFO1_MCAST_BCAST BIT(2)
#define RX_ATTENTION_INFO1_AST_IDX_NOT_FOUND BIT(3)
#define RX_ATTENTION_INFO1_AST_IDX_TIMEDOUT BIT(4)
#define RX_ATTENTION_INFO1_POWER_MGMT BIT(5)
#define RX_ATTENTION_INFO1_NON_QOS BIT(6)
#define RX_ATTENTION_INFO1_NULL_DATA BIT(7)
#define RX_ATTENTION_INFO1_MGMT_TYPE BIT(8)
#define RX_ATTENTION_INFO1_CTRL_TYPE BIT(9)
#define RX_ATTENTION_INFO1_MORE_DATA BIT(10)
#define RX_ATTENTION_INFO1_EOSP BIT(11)
#define RX_ATTENTION_INFO1_A_MSDU_ERROR BIT(12)
#define RX_ATTENTION_INFO1_FRAGMENT BIT(13)
#define RX_ATTENTION_INFO1_ORDER BIT(14)
#define RX_ATTENTION_INFO1_CCE_MATCH BIT(15)
#define RX_ATTENTION_INFO1_OVERFLOW_ERR BIT(16)
#define RX_ATTENTION_INFO1_MSDU_LEN_ERR BIT(17)
#define RX_ATTENTION_INFO1_TCP_UDP_CKSUM_FAIL BIT(18)
#define RX_ATTENTION_INFO1_IP_CKSUM_FAIL BIT(19)
#define RX_ATTENTION_INFO1_SA_IDX_INVALID BIT(20)
#define RX_ATTENTION_INFO1_DA_IDX_INVALID BIT(21)
#define RX_ATTENTION_INFO1_RSVD_1B BIT(22)
#define RX_ATTENTION_INFO1_RX_IN_TX_DECRYPT_BYP BIT(23)
#define RX_ATTENTION_INFO1_ENCRYPT_REQUIRED BIT(24)
#define RX_ATTENTION_INFO1_DIRECTED BIT(25)
#define RX_ATTENTION_INFO1_BUFFER_FRAGMENT BIT(26)
#define RX_ATTENTION_INFO1_MPDU_LEN_ERR BIT(27)
#define RX_ATTENTION_INFO1_TKIP_MIC_ERR BIT(28)
#define RX_ATTENTION_INFO1_DECRYPT_ERR BIT(29)
#define RX_ATTENTION_INFO1_UNDECRYPT_FRAME_ERR BIT(30)
#define RX_ATTENTION_INFO1_FCS_ERR BIT(31)
#define RX_ATTENTION_INFO2_FLOW_IDX_TIMEOUT BIT(0)
#define RX_ATTENTION_INFO2_FLOW_IDX_INVALID BIT(1)
#define RX_ATTENTION_INFO2_WIFI_PARSER_ERR BIT(2)
#define RX_ATTENTION_INFO2_AMSDU_PARSER_ERR BIT(3)
#define RX_ATTENTION_INFO2_SA_IDX_TIMEOUT BIT(4)
#define RX_ATTENTION_INFO2_DA_IDX_TIMEOUT BIT(5)
#define RX_ATTENTION_INFO2_MSDU_LIMIT_ERR BIT(6)
#define RX_ATTENTION_INFO2_DA_IS_VALID BIT(7)
#define RX_ATTENTION_INFO2_DA_IS_MCBC BIT(8)
#define RX_ATTENTION_INFO2_SA_IS_VALID BIT(9)
#define RX_ATTENTION_INFO2_DCRYPT_STATUS_CODE GENMASK(12, 10)
#define RX_ATTENTION_INFO2_RX_BITMAP_NOT_UPDED BIT(13)
#define RX_ATTENTION_INFO2_MSDU_DONE BIT(31)
struct rx_attention {
__le16 info0;
__le16 phy_ppdu_id;
__le32 info1;
__le32 info2;
} __packed;
/* rx_attention
*
* rxpcu_mpdu_filter_in_category
* Field indicates what the reason was that this mpdu frame
* was allowed to come into the receive path by rxpcu. Values
* are defined in enum %RX_DESC_RXPCU_FILTER_*.
*
* sw_frame_group_id
* SW processes frames based on certain classifications. Values
* are defined in enum %RX_DESC_SW_FRAME_GRP_ID_*.
*
* phy_ppdu_id
* A ppdu counter value that PHY increments for every PPDU
* received. The counter value wraps around.
*
* first_mpdu
* Indicates the first MSDU of the PPDU. If both first_mpdu
* and last_mpdu are set in the MSDU then this is a not an
* A-MPDU frame but a stand alone MPDU. Interior MPDU in an
* A-MPDU shall have both first_mpdu and last_mpdu bits set to
* 0. The PPDU start status will only be valid when this bit
* is set.
*
* mcast_bcast
* Multicast / broadcast indicator. Only set when the MAC
* address 1 bit 0 is set indicating mcast/bcast and the BSSID
* matches one of the 4 BSSID registers. Only set when
* first_msdu is set.
*
* ast_index_not_found
* Only valid when first_msdu is set. Indicates no AST matching
* entries within the max search count.
*
* ast_index_timeout
* Only valid when first_msdu is set. Indicates an unsuccessful
* search in the address search table due to timeout.
*
* power_mgmt
* Power management bit set in the 802.11 header. Only set
* when first_msdu is set.
*
* non_qos
* Set if packet is not a non-QoS data frame. Only set when
* first_msdu is set.
*
* null_data
* Set if frame type indicates either null data or QoS null
* data format. Only set when first_msdu is set.
*
* mgmt_type
* Set if packet is a management packet. Only set when
* first_msdu is set.
*
* ctrl_type
* Set if packet is a control packet. Only set when first_msdu
* is set.
*
* more_data
* Set if more bit in frame control is set. Only set when
* first_msdu is set.
*
* eosp
* Set if the EOSP (end of service period) bit in the QoS
* control field is set. Only set when first_msdu is set.
*
* a_msdu_error
* Set if number of MSDUs in A-MSDU is above a threshold or if the
* size of the MSDU is invalid. This receive buffer will contain
* all of the remainder of MSDUs in this MPDU w/o decapsulation.
*
* fragment
* Indicates that this is an 802.11 fragment frame. This is
* set when either the more_frag bit is set in the frame
* control or the fragment number is not zero. Only set when
* first_msdu is set.
*
* order
* Set if the order bit in the frame control is set. Only set
* when first_msdu is set.
*
* cce_match
* Indicates that this status has a corresponding MSDU that
* requires FW processing. The OLE will have classification
* ring mask registers which will indicate the ring(s) for
* packets and descriptors which need FW attention.
*
* overflow_err
* PCU Receive FIFO does not have enough space to store the
* full receive packet. Enough space is reserved in the
* receive FIFO for the status is written. This MPDU remaining
* packets in the PPDU will be filtered and no Ack response
* will be transmitted.
*
* msdu_length_err
* Indicates that the MSDU length from the 802.3 encapsulated
* length field extends beyond the MPDU boundary.
*
* tcp_udp_chksum_fail
* Indicates that the computed checksum (tcp_udp_chksum) did
* not match the checksum in the TCP/UDP header.
*
* ip_chksum_fail
* Indicates that the computed checksum did not match the
* checksum in the IP header.
*
* sa_idx_invalid
* Indicates no matching entry was found in the address search
* table for the source MAC address.
*
* da_idx_invalid
* Indicates no matching entry was found in the address search
* table for the destination MAC address.
*
* rx_in_tx_decrypt_byp
* Indicates that RX packet is not decrypted as Crypto is busy
* with TX packet processing.
*
* encrypt_required
* Indicates that this data type frame is not encrypted even if
* the policy for this MPDU requires encryption as indicated in
* the peer table key type.
*
* directed
* MPDU is a directed packet which means that the RA matched
* our STA addresses. In proxySTA it means that the TA matched
* an entry in our address search table with the corresponding
* 'no_ack' bit is the address search entry cleared.
*
* buffer_fragment
* Indicates that at least one of the rx buffers has been
* fragmented. If set the FW should look at the rx_frag_info
* descriptor described below.
*
* mpdu_length_err
* Indicates that the MPDU was pre-maturely terminated
* resulting in a truncated MPDU. Don't trust the MPDU length
* field.
*
* tkip_mic_err
* Indicates that the MPDU Michael integrity check failed
*
* decrypt_err
* Indicates that the MPDU decrypt integrity check failed
*
* fcs_err
* Indicates that the MPDU FCS check failed
*
* flow_idx_timeout
* Indicates an unsuccessful flow search due to the expiring of
* the search timer.
*
* flow_idx_invalid
* flow id is not valid.
*
* amsdu_parser_error
* A-MSDU could not be properly de-agregated.
*
* sa_idx_timeout
* Indicates an unsuccessful search for the source MAC address
* due to the expiring of the search timer.
*
* da_idx_timeout
* Indicates an unsuccessful search for the destination MAC
* address due to the expiring of the search timer.
*
* msdu_limit_error
* Indicates that the MSDU threshold was exceeded and thus
* all the rest of the MSDUs will not be scattered and will not
* be decasulated but will be DMA'ed in RAW format as a single
* MSDU buffer.
*
* da_is_valid
* Indicates that OLE found a valid DA entry.
*
* da_is_mcbc
* Field Only valid if da_is_valid is set. Indicates the DA address
* was a Multicast or Broadcast address.
*
* sa_is_valid
* Indicates that OLE found a valid SA entry.
*
* decrypt_status_code
* Field provides insight into the decryption performed. Values are
* defined in enum %RX_DESC_DECRYPT_STATUS_CODE*.
*
* rx_bitmap_not_updated
* Frame is received, but RXPCU could not update the receive bitmap
* due to (temporary) fifo constraints.
*
* msdu_done
* If set indicates that the RX packet data, RX header data, RX
* PPDU start descriptor, RX MPDU start/end descriptor, RX MSDU
* start/end descriptors and RX Attention descriptor are all
* valid. This bit must be in the last octet of the
* descriptor.
*/
#define RX_MPDU_START_INFO0_NDP_FRAME BIT(9)
#define RX_MPDU_START_INFO0_PHY_ERR BIT(10)
#define RX_MPDU_START_INFO0_PHY_ERR_MPDU_HDR BIT(11)
#define RX_MPDU_START_INFO0_PROTO_VER_ERR BIT(12)
#define RX_MPDU_START_INFO0_AST_LOOKUP_VALID BIT(13)
#define RX_MPDU_START_INFO1_MPDU_FCTRL_VALID BIT(0)
#define RX_MPDU_START_INFO1_MPDU_DUR_VALID BIT(1)
#define RX_MPDU_START_INFO1_MAC_ADDR1_VALID BIT(2)
#define RX_MPDU_START_INFO1_MAC_ADDR2_VALID BIT(3)
#define RX_MPDU_START_INFO1_MAC_ADDR3_VALID BIT(4)
#define RX_MPDU_START_INFO1_MAC_ADDR4_VALID BIT(5)
#define RX_MPDU_START_INFO1_MPDU_SEQ_CTRL_VALID BIT(6)
#define RX_MPDU_START_INFO1_MPDU_QOS_CTRL_VALID BIT(7)
#define RX_MPDU_START_INFO1_MPDU_HT_CTRL_VALID BIT(8)
#define RX_MPDU_START_INFO1_ENCRYPT_INFO_VALID BIT(9)
#define RX_MPDU_START_INFO1_MPDU_FRAG_NUMBER GENMASK(13, 10)
#define RX_MPDU_START_INFO1_MORE_FRAG_FLAG BIT(14)
#define RX_MPDU_START_INFO1_FROM_DS BIT(16)
#define RX_MPDU_START_INFO1_TO_DS BIT(17)
#define RX_MPDU_START_INFO1_ENCRYPTED BIT(18)
#define RX_MPDU_START_INFO1_MPDU_RETRY BIT(19)
#define RX_MPDU_START_INFO1_MPDU_SEQ_NUM GENMASK(31, 20)
#define RX_MPDU_START_INFO2_EPD_EN BIT(0)
#define RX_MPDU_START_INFO2_ALL_FRAME_ENCPD BIT(1)
#define RX_MPDU_START_INFO2_ENC_TYPE GENMASK(5, 2)
#define RX_MPDU_START_INFO2_VAR_WEP_KEY_WIDTH GENMASK(7, 6)
#define RX_MPDU_START_INFO2_MESH_STA BIT(8)
#define RX_MPDU_START_INFO2_BSSID_HIT BIT(9)
#define RX_MPDU_START_INFO2_BSSID_NUM GENMASK(13, 10)
#define RX_MPDU_START_INFO2_TID GENMASK(17, 14)
#define RX_MPDU_START_INFO2_TID_WCN6855 GENMASK(18, 15)
#define RX_MPDU_START_INFO3_REO_DEST_IND GENMASK(4, 0)
#define RX_MPDU_START_INFO3_FLOW_ID_TOEPLITZ BIT(7)
#define RX_MPDU_START_INFO3_PKT_SEL_FP_UCAST_DATA BIT(8)
#define RX_MPDU_START_INFO3_PKT_SEL_FP_MCAST_DATA BIT(9)
#define RX_MPDU_START_INFO3_PKT_SEL_FP_CTRL_BAR BIT(10)
#define RX_MPDU_START_INFO3_RXDMA0_SRC_RING_SEL GENMASK(12, 11)
#define RX_MPDU_START_INFO3_RXDMA0_DST_RING_SEL GENMASK(14, 13)
#define RX_MPDU_START_INFO4_REO_QUEUE_DESC_HI GENMASK(7, 0)
#define RX_MPDU_START_INFO4_RECV_QUEUE_NUM GENMASK(23, 8)
#define RX_MPDU_START_INFO4_PRE_DELIM_ERR_WARN BIT(24)
#define RX_MPDU_START_INFO4_FIRST_DELIM_ERR BIT(25)
#define RX_MPDU_START_INFO5_KEY_ID GENMASK(7, 0)
#define RX_MPDU_START_INFO5_NEW_PEER_ENTRY BIT(8)
#define RX_MPDU_START_INFO5_DECRYPT_NEEDED BIT(9)
#define RX_MPDU_START_INFO5_DECAP_TYPE GENMASK(11, 10)
#define RX_MPDU_START_INFO5_VLAN_TAG_C_PADDING BIT(12)
#define RX_MPDU_START_INFO5_VLAN_TAG_S_PADDING BIT(13)
#define RX_MPDU_START_INFO5_STRIP_VLAN_TAG_C BIT(14)
#define RX_MPDU_START_INFO5_STRIP_VLAN_TAG_S BIT(15)
#define RX_MPDU_START_INFO5_PRE_DELIM_COUNT GENMASK(27, 16)
#define RX_MPDU_START_INFO5_AMPDU_FLAG BIT(28)
#define RX_MPDU_START_INFO5_BAR_FRAME BIT(29)
#define RX_MPDU_START_INFO6_MPDU_LEN GENMASK(13, 0)
#define RX_MPDU_START_INFO6_FIRST_MPDU BIT(14)
#define RX_MPDU_START_INFO6_MCAST_BCAST BIT(15)
#define RX_MPDU_START_INFO6_AST_IDX_NOT_FOUND BIT(16)
#define RX_MPDU_START_INFO6_AST_IDX_TIMEOUT BIT(17)
#define RX_MPDU_START_INFO6_POWER_MGMT BIT(18)
#define RX_MPDU_START_INFO6_NON_QOS BIT(19)
#define RX_MPDU_START_INFO6_NULL_DATA BIT(20)
#define RX_MPDU_START_INFO6_MGMT_TYPE BIT(21)
#define RX_MPDU_START_INFO6_CTRL_TYPE BIT(22)
#define RX_MPDU_START_INFO6_MORE_DATA BIT(23)
#define RX_MPDU_START_INFO6_EOSP BIT(24)
#define RX_MPDU_START_INFO6_FRAGMENT BIT(25)
#define RX_MPDU_START_INFO6_ORDER BIT(26)
#define RX_MPDU_START_INFO6_UAPSD_TRIGGER BIT(27)
#define RX_MPDU_START_INFO6_ENCRYPT_REQUIRED BIT(28)
#define RX_MPDU_START_INFO6_DIRECTED BIT(29)
#define RX_MPDU_START_RAW_MPDU BIT(0)
struct rx_mpdu_start_ipq8074 {
__le16 info0;
__le16 phy_ppdu_id;
__le16 ast_index;
__le16 sw_peer_id;
__le32 info1;
__le32 info2;
__le32 pn[4];
__le32 peer_meta_data;
__le32 info3;
__le32 reo_queue_desc_lo;
__le32 info4;
__le32 info5;
__le32 info6;
__le16 frame_ctrl;
__le16 duration;
u8 addr1[ETH_ALEN];
u8 addr2[ETH_ALEN];
u8 addr3[ETH_ALEN];
__le16 seq_ctrl;
u8 addr4[ETH_ALEN];
__le16 qos_ctrl;
__le32 ht_ctrl;
__le32 raw;
} __packed;
#define RX_MPDU_START_INFO7_REO_DEST_IND GENMASK(4, 0)
#define RX_MPDU_START_INFO7_LMAC_PEER_ID_MSB GENMASK(6, 5)
#define RX_MPDU_START_INFO7_FLOW_ID_TOEPLITZ BIT(7)
#define RX_MPDU_START_INFO7_PKT_SEL_FP_UCAST_DATA BIT(8)
#define RX_MPDU_START_INFO7_PKT_SEL_FP_MCAST_DATA BIT(9)
#define RX_MPDU_START_INFO7_PKT_SEL_FP_CTRL_BAR BIT(10)
#define RX_MPDU_START_INFO7_RXDMA0_SRC_RING_SEL GENMASK(12, 11)
#define RX_MPDU_START_INFO7_RXDMA0_DST_RING_SEL GENMASK(14, 13)
#define RX_MPDU_START_INFO8_REO_QUEUE_DESC_HI GENMASK(7, 0)
#define RX_MPDU_START_INFO8_RECV_QUEUE_NUM GENMASK(23, 8)
#define RX_MPDU_START_INFO8_PRE_DELIM_ERR_WARN BIT(24)
#define RX_MPDU_START_INFO8_FIRST_DELIM_ERR BIT(25)
#define RX_MPDU_START_INFO9_EPD_EN BIT(0)
#define RX_MPDU_START_INFO9_ALL_FRAME_ENCPD BIT(1)
#define RX_MPDU_START_INFO9_ENC_TYPE GENMASK(5, 2)
#define RX_MPDU_START_INFO9_VAR_WEP_KEY_WIDTH GENMASK(7, 6)
#define RX_MPDU_START_INFO9_MESH_STA GENMASK(9, 8)
#define RX_MPDU_START_INFO9_BSSID_HIT BIT(10)
#define RX_MPDU_START_INFO9_BSSID_NUM GENMASK(14, 11)
#define RX_MPDU_START_INFO9_TID GENMASK(18, 15)
#define RX_MPDU_START_INFO10_RXPCU_MPDU_FLTR GENMASK(1, 0)
#define RX_MPDU_START_INFO10_SW_FRAME_GRP_ID GENMASK(8, 2)
#define RX_MPDU_START_INFO10_NDP_FRAME BIT(9)
#define RX_MPDU_START_INFO10_PHY_ERR BIT(10)
#define RX_MPDU_START_INFO10_PHY_ERR_MPDU_HDR BIT(11)
#define RX_MPDU_START_INFO10_PROTO_VER_ERR BIT(12)
#define RX_MPDU_START_INFO10_AST_LOOKUP_VALID BIT(13)
#define RX_MPDU_START_INFO11_MPDU_FCTRL_VALID BIT(0)
#define RX_MPDU_START_INFO11_MPDU_DUR_VALID BIT(1)
#define RX_MPDU_START_INFO11_MAC_ADDR1_VALID BIT(2)
#define RX_MPDU_START_INFO11_MAC_ADDR2_VALID BIT(3)
#define RX_MPDU_START_INFO11_MAC_ADDR3_VALID BIT(4)
#define RX_MPDU_START_INFO11_MAC_ADDR4_VALID BIT(5)
#define RX_MPDU_START_INFO11_MPDU_SEQ_CTRL_VALID BIT(6)
#define RX_MPDU_START_INFO11_MPDU_QOS_CTRL_VALID BIT(7)
#define RX_MPDU_START_INFO11_MPDU_HT_CTRL_VALID BIT(8)
#define RX_MPDU_START_INFO11_ENCRYPT_INFO_VALID BIT(9)
#define RX_MPDU_START_INFO11_MPDU_FRAG_NUMBER GENMASK(13, 10)
#define RX_MPDU_START_INFO11_MORE_FRAG_FLAG BIT(14)
#define RX_MPDU_START_INFO11_FROM_DS BIT(16)
#define RX_MPDU_START_INFO11_TO_DS BIT(17)
#define RX_MPDU_START_INFO11_ENCRYPTED BIT(18)
#define RX_MPDU_START_INFO11_MPDU_RETRY BIT(19)
#define RX_MPDU_START_INFO11_MPDU_SEQ_NUM GENMASK(31, 20)
#define RX_MPDU_START_INFO12_KEY_ID GENMASK(7, 0)
#define RX_MPDU_START_INFO12_NEW_PEER_ENTRY BIT(8)
#define RX_MPDU_START_INFO12_DECRYPT_NEEDED BIT(9)
#define RX_MPDU_START_INFO12_DECAP_TYPE GENMASK(11, 10)
#define RX_MPDU_START_INFO12_VLAN_TAG_C_PADDING BIT(12)
#define RX_MPDU_START_INFO12_VLAN_TAG_S_PADDING BIT(13)
#define RX_MPDU_START_INFO12_STRIP_VLAN_TAG_C BIT(14)
#define RX_MPDU_START_INFO12_STRIP_VLAN_TAG_S BIT(15)
#define RX_MPDU_START_INFO12_PRE_DELIM_COUNT GENMASK(27, 16)
#define RX_MPDU_START_INFO12_AMPDU_FLAG BIT(28)
#define RX_MPDU_START_INFO12_BAR_FRAME BIT(29)
#define RX_MPDU_START_INFO12_RAW_MPDU BIT(30)
#define RX_MPDU_START_INFO13_MPDU_LEN GENMASK(13, 0)
#define RX_MPDU_START_INFO13_FIRST_MPDU BIT(14)
#define RX_MPDU_START_INFO13_MCAST_BCAST BIT(15)
#define RX_MPDU_START_INFO13_AST_IDX_NOT_FOUND BIT(16)
#define RX_MPDU_START_INFO13_AST_IDX_TIMEOUT BIT(17)
#define RX_MPDU_START_INFO13_POWER_MGMT BIT(18)
#define RX_MPDU_START_INFO13_NON_QOS BIT(19)
#define RX_MPDU_START_INFO13_NULL_DATA BIT(20)
#define RX_MPDU_START_INFO13_MGMT_TYPE BIT(21)
#define RX_MPDU_START_INFO13_CTRL_TYPE BIT(22)
#define RX_MPDU_START_INFO13_MORE_DATA BIT(23)
#define RX_MPDU_START_INFO13_EOSP BIT(24)
#define RX_MPDU_START_INFO13_FRAGMENT BIT(25)
#define RX_MPDU_START_INFO13_ORDER BIT(26)
#define RX_MPDU_START_INFO13_UAPSD_TRIGGER BIT(27)
#define RX_MPDU_START_INFO13_ENCRYPT_REQUIRED BIT(28)
#define RX_MPDU_START_INFO13_DIRECTED BIT(29)
#define RX_MPDU_START_INFO13_AMSDU_PRESENT BIT(30)
struct rx_mpdu_start_qcn9074 {
__le32 info7;
__le32 reo_queue_desc_lo;
__le32 info8;
__le32 pn[4];
__le32 info9;
__le32 peer_meta_data;
__le16 info10;
__le16 phy_ppdu_id;
__le16 ast_index;
__le16 sw_peer_id;
__le32 info11;
__le32 info12;
__le32 info13;
__le16 frame_ctrl;
__le16 duration;
u8 addr1[ETH_ALEN];
u8 addr2[ETH_ALEN];
u8 addr3[ETH_ALEN];
__le16 seq_ctrl;
u8 addr4[ETH_ALEN];
__le16 qos_ctrl;
__le32 ht_ctrl;
} __packed;
struct rx_mpdu_start_wcn6855 {
__le32 info3;
__le32 reo_queue_desc_lo;
__le32 info4;
__le32 pn[4];
__le32 info2;
__le32 peer_meta_data;
__le16 info0;
__le16 phy_ppdu_id;
__le16 ast_index;
__le16 sw_peer_id;
__le32 info1;
__le32 info5;
__le32 info6;
__le16 frame_ctrl;
__le16 duration;
u8 addr1[ETH_ALEN];
u8 addr2[ETH_ALEN];
u8 addr3[ETH_ALEN];
__le16 seq_ctrl;
u8 addr4[ETH_ALEN];
__le16 qos_ctrl;
__le32 ht_ctrl;
} __packed;
/* rx_mpdu_start
*
* rxpcu_mpdu_filter_in_category
* Field indicates what the reason was that this mpdu frame
* was allowed to come into the receive path by rxpcu. Values
* are defined in enum %RX_DESC_RXPCU_FILTER_*.
* Note: for ndp frame, if it was expected because the preceding
* NDPA was filter_pass, the setting rxpcu_filter_pass will be
* used. This setting will also be used for every ndp frame in
* case Promiscuous mode is enabled.
*
* sw_frame_group_id
* SW processes frames based on certain classifications. Values
* are defined in enum %RX_DESC_SW_FRAME_GRP_ID_*.
*
* ndp_frame
* Indicates that the received frame was an NDP frame.
*
* phy_err
* Indicates that PHY error was received before MAC received data.
*
* phy_err_during_mpdu_header
* PHY error was received before MAC received the complete MPDU
* header which was needed for proper decoding.
*
* protocol_version_err
* RXPCU detected a version error in the frame control field.
*
* ast_based_lookup_valid
* AST based lookup for this frame has found a valid result.
*
* phy_ppdu_id
* A ppdu counter value that PHY increments for every PPDU
* received. The counter value wraps around.
*
* ast_index
* This field indicates the index of the AST entry corresponding
* to this MPDU. It is provided by the GSE module instantiated in
* RXPCU. A value of 0xFFFF indicates an invalid AST index.
*
* sw_peer_id
* This field indicates a unique peer identifier. It is set equal
* to field 'sw_peer_id' from the AST entry.
*
* mpdu_frame_control_valid, mpdu_duration_valid, mpdu_qos_control_valid,
* mpdu_ht_control_valid, frame_encryption_info_valid
* Indicates that each fields have valid entries.
*
* mac_addr_adx_valid
* Corresponding mac_addr_adx_{lo/hi} has valid entries.
*
* from_ds, to_ds
* Valid only when mpdu_frame_control_valid is set. Indicates that
* frame is received from DS and sent to DS.
*
* encrypted
* Protected bit from the frame control.
*
* mpdu_retry
* Retry bit from frame control. Only valid when first_msdu is set.
*
* mpdu_sequence_number
* The sequence number from the 802.11 header.
*
* epd_en
* If set, use EPD instead of LPD.
*
* all_frames_shall_be_encrypted
* If set, all frames (data only?) shall be encrypted. If not,
* RX CRYPTO shall set an error flag.
*
* encrypt_type
* Values are defined in enum %HAL_ENCRYPT_TYPE_.
*
* mesh_sta
* Indicates a Mesh (11s) STA.
*
* bssid_hit
* BSSID of the incoming frame matched one of the 8 BSSID
* register values.
*
* bssid_number
* This number indicates which one out of the 8 BSSID register
* values matched the incoming frame.
*
* tid
* TID field in the QoS control field
*
* pn
* The PN number.
*
* peer_meta_data
* Meta data that SW has programmed in the Peer table entry
* of the transmitting STA.
*
* rx_reo_queue_desc_addr_lo
* Address (lower 32 bits) of the REO queue descriptor.
*
* rx_reo_queue_desc_addr_hi
* Address (upper 8 bits) of the REO queue descriptor.
*
* receive_queue_number
* Indicates the MPDU queue ID to which this MPDU link
* descriptor belongs.
*
* pre_delim_err_warning
* Indicates that a delimiter FCS error was found in between the
* previous MPDU and this MPDU. Note that this is just a warning,
* and does not mean that this MPDU is corrupted in any way. If
* it is, there will be other errors indicated such as FCS or
* decrypt errors.
*
* first_delim_err
* Indicates that the first delimiter had a FCS failure.
*
* key_id
* The key ID octet from the IV.
*
* new_peer_entry
* Set if new RX_PEER_ENTRY TLV follows. If clear, RX_PEER_ENTRY
* doesn't follow so RX DECRYPTION module either uses old peer
* entry or not decrypt.
*
* decrypt_needed
* When RXPCU sets bit 'ast_index_not_found or ast_index_timeout',
* RXPCU will also ensure that this bit is NOT set. CRYPTO for that
* reason only needs to evaluate this bit and non of the other ones
*
* decap_type
* Used by the OLE during decapsulation. Values are defined in
* enum %MPDU_START_DECAP_TYPE_*.
*
* rx_insert_vlan_c_tag_padding
* rx_insert_vlan_s_tag_padding
* Insert 4 byte of all zeros as VLAN tag or double VLAN tag if
* the rx payload does not have VLAN.
*
* strip_vlan_c_tag_decap
* strip_vlan_s_tag_decap
* Strip VLAN or double VLAN during decapsulation.
*
* pre_delim_count
* The number of delimiters before this MPDU. Note that this
* number is cleared at PPDU start. If this MPDU is the first
* received MPDU in the PPDU and this MPDU gets filtered-in,
* this field will indicate the number of delimiters located
* after the last MPDU in the previous PPDU.
*
* If this MPDU is located after the first received MPDU in
* an PPDU, this field will indicate the number of delimiters
* located between the previous MPDU and this MPDU.
*
* ampdu_flag
* Received frame was part of an A-MPDU.
*
* bar_frame
* Received frame is a BAR frame
*
* mpdu_length
* MPDU length before decapsulation.
*
* first_mpdu..directed
* See definition in RX attention descriptor
*
*/
enum rx_msdu_start_pkt_type {
RX_MSDU_START_PKT_TYPE_11A,
RX_MSDU_START_PKT_TYPE_11B,
RX_MSDU_START_PKT_TYPE_11N,
RX_MSDU_START_PKT_TYPE_11AC,
RX_MSDU_START_PKT_TYPE_11AX,
};
enum rx_msdu_start_sgi {
RX_MSDU_START_SGI_0_8_US,
RX_MSDU_START_SGI_0_4_US,
RX_MSDU_START_SGI_1_6_US,
RX_MSDU_START_SGI_3_2_US,
};
enum rx_msdu_start_recv_bw {
RX_MSDU_START_RECV_BW_20MHZ,
RX_MSDU_START_RECV_BW_40MHZ,
RX_MSDU_START_RECV_BW_80MHZ,
RX_MSDU_START_RECV_BW_160MHZ,
};
enum rx_msdu_start_reception_type {
RX_MSDU_START_RECEPTION_TYPE_SU,
RX_MSDU_START_RECEPTION_TYPE_DL_MU_MIMO,
RX_MSDU_START_RECEPTION_TYPE_DL_MU_OFDMA,
RX_MSDU_START_RECEPTION_TYPE_DL_MU_OFDMA_MIMO,
RX_MSDU_START_RECEPTION_TYPE_UL_MU_MIMO,
RX_MSDU_START_RECEPTION_TYPE_UL_MU_OFDMA,
RX_MSDU_START_RECEPTION_TYPE_UL_MU_OFDMA_MIMO,
};
#define RX_MSDU_START_INFO1_MSDU_LENGTH GENMASK(13, 0)
#define RX_MSDU_START_INFO1_RSVD_1A BIT(14)
#define RX_MSDU_START_INFO1_IPSEC_ESP BIT(15)
#define RX_MSDU_START_INFO1_L3_OFFSET GENMASK(22, 16)
#define RX_MSDU_START_INFO1_IPSEC_AH BIT(23)
#define RX_MSDU_START_INFO1_L4_OFFSET GENMASK(31, 24)
#define RX_MSDU_START_INFO2_MSDU_NUMBER GENMASK(7, 0)
#define RX_MSDU_START_INFO2_DECAP_TYPE GENMASK(9, 8)
#define RX_MSDU_START_INFO2_IPV4 BIT(10)
#define RX_MSDU_START_INFO2_IPV6 BIT(11)
#define RX_MSDU_START_INFO2_TCP BIT(12)
#define RX_MSDU_START_INFO2_UDP BIT(13)
#define RX_MSDU_START_INFO2_IP_FRAG BIT(14)
#define RX_MSDU_START_INFO2_TCP_ONLY_ACK BIT(15)
#define RX_MSDU_START_INFO2_DA_IS_BCAST_MCAST BIT(16)
#define RX_MSDU_START_INFO2_SELECTED_TOEPLITZ_HASH GENMASK(18, 17)
#define RX_MSDU_START_INFO2_IP_FIXED_HDR_VALID BIT(19)
#define RX_MSDU_START_INFO2_IP_EXTN_HDR_VALID BIT(20)
#define RX_MSDU_START_INFO2_IP_TCP_UDP_HDR_VALID BIT(21)
#define RX_MSDU_START_INFO2_MESH_CTRL_PRESENT BIT(22)
#define RX_MSDU_START_INFO2_LDPC BIT(23)
#define RX_MSDU_START_INFO2_IP4_IP6_NXT_HDR GENMASK(31, 24)
#define RX_MSDU_START_INFO2_DECAP_FORMAT GENMASK(9, 8)
#define RX_MSDU_START_INFO3_USER_RSSI GENMASK(7, 0)
#define RX_MSDU_START_INFO3_PKT_TYPE GENMASK(11, 8)
#define RX_MSDU_START_INFO3_STBC BIT(12)
#define RX_MSDU_START_INFO3_SGI GENMASK(14, 13)
#define RX_MSDU_START_INFO3_RATE_MCS GENMASK(18, 15)
#define RX_MSDU_START_INFO3_RECV_BW GENMASK(20, 19)
#define RX_MSDU_START_INFO3_RECEPTION_TYPE GENMASK(23, 21)
#define RX_MSDU_START_INFO3_MIMO_SS_BITMAP GENMASK(31, 24)
struct rx_msdu_start_ipq8074 {
__le16 info0;
__le16 phy_ppdu_id;
__le32 info1;
__le32 info2;
__le32 toeplitz_hash;
__le32 flow_id_toeplitz;
__le32 info3;
__le32 ppdu_start_timestamp;
__le32 phy_meta_data;
} __packed;
struct rx_msdu_start_qcn9074 {
__le16 info0;
__le16 phy_ppdu_id;
__le32 info1;
__le32 info2;
__le32 toeplitz_hash;
__le32 flow_id_toeplitz;
__le32 info3;
__le32 ppdu_start_timestamp;
__le32 phy_meta_data;
__le16 vlan_ctag_c1;
__le16 vlan_stag_c1;
} __packed;
struct rx_msdu_start_wcn6855 {
__le16 info0;
__le16 phy_ppdu_id;
__le32 info1;
__le32 info2;
__le32 toeplitz_hash;
__le32 flow_id_toeplitz;
__le32 info3;
__le32 ppdu_start_timestamp;
__le32 phy_meta_data;
__le16 vlan_ctag_ci;
__le16 vlan_stag_ci;
} __packed;
/* rx_msdu_start
*
* rxpcu_mpdu_filter_in_category
* Field indicates what the reason was that this mpdu frame
* was allowed to come into the receive path by rxpcu. Values
* are defined in enum %RX_DESC_RXPCU_FILTER_*.
*
* sw_frame_group_id
* SW processes frames based on certain classifications. Values
* are defined in enum %RX_DESC_SW_FRAME_GRP_ID_*.
*
* phy_ppdu_id
* A ppdu counter value that PHY increments for every PPDU
* received. The counter value wraps around.
*
* msdu_length
* MSDU length in bytes after decapsulation.
*
* ipsec_esp
* Set if IPv4/v6 packet is using IPsec ESP.
*
* l3_offset
* Depending upon mode bit, this field either indicates the
* L3 offset in bytes from the start of the RX_HEADER or the IP
* offset in bytes from the start of the packet after
* decapsulation. The latter is only valid if ipv4_proto or
* ipv6_proto is set.
*
* ipsec_ah
* Set if IPv4/v6 packet is using IPsec AH
*
* l4_offset
* Depending upon mode bit, this field either indicates the
* L4 offset nin bytes from the start of RX_HEADER (only valid
* if either ipv4_proto or ipv6_proto is set to 1) or indicates
* the offset in bytes to the start of TCP or UDP header from
* the start of the IP header after decapsulation (Only valid if
* tcp_proto or udp_proto is set). The value 0 indicates that
* the offset is longer than 127 bytes.
*
* msdu_number
* Indicates the MSDU number within a MPDU. This value is
* reset to zero at the start of each MPDU. If the number of
* MSDU exceeds 255 this number will wrap using modulo 256.
*
* decap_type
* Indicates the format after decapsulation. Values are defined in
* enum %MPDU_START_DECAP_TYPE_*.
*
* ipv4_proto
* Set if L2 layer indicates IPv4 protocol.
*
* ipv6_proto
* Set if L2 layer indicates IPv6 protocol.
*
* tcp_proto
* Set if the ipv4_proto or ipv6_proto are set and the IP protocol
* indicates TCP.
*
* udp_proto
* Set if the ipv4_proto or ipv6_proto are set and the IP protocol
* indicates UDP.
*
* ip_frag
* Indicates that either the IP More frag bit is set or IP frag
* number is non-zero. If set indicates that this is a fragmented
* IP packet.
*
* tcp_only_ack
* Set if only the TCP Ack bit is set in the TCP flags and if
* the TCP payload is 0.
*
* da_is_bcast_mcast
* The destination address is broadcast or multicast.
*
* toeplitz_hash
* Actual chosen Hash.
* 0 - Toeplitz hash of 2-tuple (IP source address, IP
* destination address)
* 1 - Toeplitz hash of 4-tuple (IP source address,
* IP destination address, L4 (TCP/UDP) source port,
* L4 (TCP/UDP) destination port)
* 2 - Toeplitz of flow_id
* 3 - Zero is used
*
* ip_fixed_header_valid
* Fixed 20-byte IPv4 header or 40-byte IPv6 header parsed
* fully within first 256 bytes of the packet
*
* ip_extn_header_valid
* IPv6/IPv6 header, including IPv4 options and
* recognizable extension headers parsed fully within first 256
* bytes of the packet
*
* tcp_udp_header_valid
* Fixed 20-byte TCP (excluding TCP options) or 8-byte UDP
* header parsed fully within first 256 bytes of the packet
*
* mesh_control_present
* When set, this MSDU includes the 'Mesh Control' field
*
* ldpc
*
* ip4_protocol_ip6_next_header
* For IPv4, this is the 8 bit protocol field set). For IPv6 this
* is the 8 bit next_header field.
*
* toeplitz_hash_2_or_4
* Controlled by RxOLE register - If register bit set to 0,
* Toeplitz hash is computed over 2-tuple IPv4 or IPv6 src/dest
* addresses; otherwise, toeplitz hash is computed over 4-tuple
* IPv4 or IPv6 src/dest addresses and src/dest ports.
*
* flow_id_toeplitz
* Toeplitz hash of 5-tuple
* {IP source address, IP destination address, IP source port, IP
* destination port, L4 protocol} in case of non-IPSec.
*
* In case of IPSec - Toeplitz hash of 4-tuple
* {IP source address, IP destination address, SPI, L4 protocol}
*
* The relevant Toeplitz key registers are provided in RxOLE's
* instance of common parser module. These registers are separate
* from the Toeplitz keys used by ASE/FSE modules inside RxOLE.
* The actual value will be passed on from common parser module
* to RxOLE in one of the WHO_* TLVs.
*
* user_rssi
* RSSI for this user
*
* pkt_type
* Values are defined in enum %RX_MSDU_START_PKT_TYPE_*.
*
* stbc
* When set, use STBC transmission rates.
*
* sgi
* Field only valid when pkt type is HT, VHT or HE. Values are
* defined in enum %RX_MSDU_START_SGI_*.
*
* rate_mcs
* MCS Rate used.
*
* receive_bandwidth
* Full receive Bandwidth. Values are defined in enum
* %RX_MSDU_START_RECV_*.
*
* reception_type
* Indicates what type of reception this is and defined in enum
* %RX_MSDU_START_RECEPTION_TYPE_*.
*
* mimo_ss_bitmap
* Field only valid when
* Reception_type is RX_MSDU_START_RECEPTION_TYPE_DL_MU_MIMO or
* RX_MSDU_START_RECEPTION_TYPE_DL_MU_OFDMA_MIMO.
*
* Bitmap, with each bit indicating if the related spatial
* stream is used for this STA
*
* LSB related to SS 0
*
* 0 - spatial stream not used for this reception
* 1 - spatial stream used for this reception
*
* ppdu_start_timestamp
* Timestamp that indicates when the PPDU that contained this MPDU
* started on the medium.
*
* phy_meta_data
* SW programmed Meta data provided by the PHY. Can be used for SW
* to indicate the channel the device is on.
*/
#define RX_MSDU_END_INFO0_RXPCU_MPDU_FITLER GENMASK(1, 0)
#define RX_MSDU_END_INFO0_SW_FRAME_GRP_ID GENMASK(8, 2)
#define RX_MSDU_END_INFO1_KEY_ID GENMASK(7, 0)
#define RX_MSDU_END_INFO1_CCE_SUPER_RULE GENMASK(13, 8)
#define RX_MSDU_END_INFO1_CCND_TRUNCATE BIT(14)
#define RX_MSDU_END_INFO1_CCND_CCE_DIS BIT(15)
#define RX_MSDU_END_INFO1_EXT_WAPI_PN GENMASK(31, 16)
#define RX_MSDU_END_INFO2_REPORTED_MPDU_LEN GENMASK(13, 0)
#define RX_MSDU_END_INFO2_FIRST_MSDU BIT(14)
#define RX_MSDU_END_INFO2_FIRST_MSDU_WCN6855 BIT(28)
#define RX_MSDU_END_INFO2_LAST_MSDU BIT(15)
#define RX_MSDU_END_INFO2_LAST_MSDU_WCN6855 BIT(29)
#define RX_MSDU_END_INFO2_SA_IDX_TIMEOUT BIT(16)
#define RX_MSDU_END_INFO2_DA_IDX_TIMEOUT BIT(17)
#define RX_MSDU_END_INFO2_MSDU_LIMIT_ERR BIT(18)
#define RX_MSDU_END_INFO2_FLOW_IDX_TIMEOUT BIT(19)
#define RX_MSDU_END_INFO2_FLOW_IDX_INVALID BIT(20)
#define RX_MSDU_END_INFO2_WIFI_PARSER_ERR BIT(21)
#define RX_MSDU_END_INFO2_AMSDU_PARSET_ERR BIT(22)
#define RX_MSDU_END_INFO2_SA_IS_VALID BIT(23)
#define RX_MSDU_END_INFO2_DA_IS_VALID BIT(24)
#define RX_MSDU_END_INFO2_DA_IS_MCBC BIT(25)
#define RX_MSDU_END_INFO2_L3_HDR_PADDING GENMASK(27, 26)
#define RX_MSDU_END_INFO3_TCP_FLAG GENMASK(8, 0)
#define RX_MSDU_END_INFO3_LRO_ELIGIBLE BIT(9)
#define RX_MSDU_END_INFO4_DA_OFFSET GENMASK(5, 0)
#define RX_MSDU_END_INFO4_SA_OFFSET GENMASK(11, 6)
#define RX_MSDU_END_INFO4_DA_OFFSET_VALID BIT(12)
#define RX_MSDU_END_INFO4_SA_OFFSET_VALID BIT(13)
#define RX_MSDU_END_INFO4_L3_TYPE GENMASK(31, 16)
#define RX_MSDU_END_INFO5_MSDU_DROP BIT(0)
#define RX_MSDU_END_INFO5_REO_DEST_IND GENMASK(5, 1)
#define RX_MSDU_END_INFO5_FLOW_IDX GENMASK(25, 6)
struct rx_msdu_end_ipq8074 {
__le16 info0;
__le16 phy_ppdu_id;
__le16 ip_hdr_cksum;
__le16 tcp_udp_cksum;
__le32 info1;
__le32 ext_wapi_pn[2];
__le32 info2;
__le32 ipv6_options_crc;
__le32 tcp_seq_num;
__le32 tcp_ack_num;
__le16 info3;
__le16 window_size;
__le32 info4;
__le32 rule_indication[2];
__le16 sa_idx;
__le16 da_idx;
__le32 info5;
__le32 fse_metadata;
__le16 cce_metadata;
__le16 sa_sw_peer_id;
} __packed;
struct rx_msdu_end_wcn6855 {
__le16 info0;
__le16 phy_ppdu_id;
__le16 ip_hdr_cksum;
__le16 reported_mpdu_len;
__le32 info1;
__le32 ext_wapi_pn[2];
__le32 info4;
__le32 ipv6_options_crc;
__le32 tcp_seq_num;
__le32 tcp_ack_num;
__le16 info3;
__le16 window_size;
__le32 info2;
__le16 sa_idx;
__le16 da_idx;
__le32 info5;
__le32 fse_metadata;
__le16 cce_metadata;
__le16 sa_sw_peer_id;
__le32 rule_indication[2];
__le32 info6;
__le32 info7;
} __packed;
#define RX_MSDU_END_MPDU_LENGTH_INFO GENMASK(13, 0)
#define RX_MSDU_END_INFO2_DA_OFFSET GENMASK(5, 0)
#define RX_MSDU_END_INFO2_SA_OFFSET GENMASK(11, 6)
#define RX_MSDU_END_INFO2_DA_OFFSET_VALID BIT(12)
#define RX_MSDU_END_INFO2_SA_OFFSET_VALID BIT(13)
#define RX_MSDU_END_INFO2_L3_TYPE GENMASK(31, 16)
#define RX_MSDU_END_INFO4_SA_IDX_TIMEOUT BIT(0)
#define RX_MSDU_END_INFO4_DA_IDX_TIMEOUT BIT(1)
#define RX_MSDU_END_INFO4_MSDU_LIMIT_ERR BIT(2)
#define RX_MSDU_END_INFO4_FLOW_IDX_TIMEOUT BIT(3)
#define RX_MSDU_END_INFO4_FLOW_IDX_INVALID BIT(4)
#define RX_MSDU_END_INFO4_WIFI_PARSER_ERR BIT(5)
#define RX_MSDU_END_INFO4_AMSDU_PARSER_ERR BIT(6)
#define RX_MSDU_END_INFO4_SA_IS_VALID BIT(7)
#define RX_MSDU_END_INFO4_DA_IS_VALID BIT(8)
#define RX_MSDU_END_INFO4_DA_IS_MCBC BIT(9)
#define RX_MSDU_END_INFO4_L3_HDR_PADDING GENMASK(11, 10)
#define RX_MSDU_END_INFO4_FIRST_MSDU BIT(12)
#define RX_MSDU_END_INFO4_LAST_MSDU BIT(13)
#define RX_MSDU_END_INFO6_AGGR_COUNT GENMASK(7, 0)
#define RX_MSDU_END_INFO6_FLOW_AGGR_CONTN BIT(8)
#define RX_MSDU_END_INFO6_FISA_TIMEOUT BIT(9)
struct rx_msdu_end_qcn9074 {
__le16 info0;
__le16 phy_ppdu_id;
__le16 ip_hdr_cksum;
__le16 mpdu_length_info;
__le32 info1;
__le32 rule_indication[2];
__le32 info2;
__le32 ipv6_options_crc;
__le32 tcp_seq_num;
__le32 tcp_ack_num;
__le16 info3;
__le16 window_size;
__le16 tcp_udp_cksum;
__le16 info4;
__le16 sa_idx;
__le16 da_idx;
__le32 info5;
__le32 fse_metadata;
__le16 cce_metadata;
__le16 sa_sw_peer_id;
__le32 info6;
__le16 cum_l4_cksum;
__le16 cum_ip_length;
} __packed;
/* rx_msdu_end
*
* rxpcu_mpdu_filter_in_category
* Field indicates what the reason was that this mpdu frame
* was allowed to come into the receive path by rxpcu. Values
* are defined in enum %RX_DESC_RXPCU_FILTER_*.
*
* sw_frame_group_id
* SW processes frames based on certain classifications. Values
* are defined in enum %RX_DESC_SW_FRAME_GRP_ID_*.
*
* phy_ppdu_id
* A ppdu counter value that PHY increments for every PPDU
* received. The counter value wraps around.
*
* ip_hdr_cksum
* This can include the IP header checksum or the pseudo
* header checksum used by TCP/UDP checksum.
*
* tcp_udp_chksum
* The value of the computed TCP/UDP checksum. A mode bit
* selects whether this checksum is the full checksum or the
* partial checksum which does not include the pseudo header.
*
* key_id
* The key ID octet from the IV. Only valid when first_msdu is set.
*
* cce_super_rule
* Indicates the super filter rule.
*
* cce_classify_not_done_truncate
* Classification failed due to truncated frame.
*
* cce_classify_not_done_cce_dis
* Classification failed due to CCE global disable
*
* ext_wapi_pn*
* Extension PN (packet number) which is only used by WAPI.
*
* reported_mpdu_length
* MPDU length before decapsulation. Only valid when first_msdu is
* set. This field is taken directly from the length field of the
* A-MPDU delimiter or the preamble length field for non-A-MPDU
* frames.
*
* first_msdu
* Indicates the first MSDU of A-MSDU. If both first_msdu and
* last_msdu are set in the MSDU then this is a non-aggregated MSDU
* frame: normal MPDU. Interior MSDU in an A-MSDU shall have both
* first_mpdu and last_mpdu bits set to 0.
*
* last_msdu
* Indicates the last MSDU of the A-MSDU. MPDU end status is only
* valid when last_msdu is set.
*
* sa_idx_timeout
* Indicates an unsuccessful MAC source address search due to the
* expiring of the search timer.
*
* da_idx_timeout
* Indicates an unsuccessful MAC destination address search due to
* the expiring of the search timer.
*
* msdu_limit_error
* Indicates that the MSDU threshold was exceeded and thus all the
* rest of the MSDUs will not be scattered and will not be
* decapsulated but will be DMA'ed in RAW format as a single MSDU.
*
* flow_idx_timeout
* Indicates an unsuccessful flow search due to the expiring of
* the search timer.
*
* flow_idx_invalid
* flow id is not valid.
*
* amsdu_parser_error
* A-MSDU could not be properly de-agregated.
*
* sa_is_valid
* Indicates that OLE found a valid SA entry.
*
* da_is_valid
* Indicates that OLE found a valid DA entry.
*
* da_is_mcbc
* Field Only valid if da_is_valid is set. Indicates the DA address
* was a Multicast of Broadcast address.
*
* l3_header_padding
* Number of bytes padded to make sure that the L3 header will
* always start of a Dword boundary.
*
* ipv6_options_crc
* 32 bit CRC computed out of IP v6 extension headers.
*
* tcp_seq_number
* TCP sequence number.
*
* tcp_ack_number
* TCP acknowledge number.
*
* tcp_flag
* TCP flags {NS, CWR, ECE, URG, ACK, PSH, RST, SYN, FIN}.
*
* lro_eligible
* Computed out of TCP and IP fields to indicate that this
* MSDU is eligible for LRO.
*
* window_size
* TCP receive window size.
*
* da_offset
* Offset into MSDU buffer for DA.
*
* sa_offset
* Offset into MSDU buffer for SA.
*
* da_offset_valid
* da_offset field is valid. This will be set to 0 in case
* of a dynamic A-MSDU when DA is compressed.
*
* sa_offset_valid
* sa_offset field is valid. This will be set to 0 in case
* of a dynamic A-MSDU when SA is compressed.
*
* l3_type
* The 16-bit type value indicating the type of L3 later
* extracted from LLC/SNAP, set to zero if SNAP is not
* available.
*
* rule_indication
* Bitmap indicating which of rules have matched.
*
* sa_idx
* The offset in the address table which matches MAC source address
*
* da_idx
* The offset in the address table which matches MAC destination
* address.
*
* msdu_drop
* REO shall drop this MSDU and not forward it to any other ring.
*
* reo_destination_indication
* The id of the reo exit ring where the msdu frame shall push
* after (MPDU level) reordering has finished. Values are defined
* in enum %HAL_RX_MSDU_DESC_REO_DEST_IND_.
*
* flow_idx
* Flow table index.
*
* fse_metadata
* FSE related meta data.
*
* cce_metadata
* CCE related meta data.
*
* sa_sw_peer_id
* sw_peer_id from the address search entry corresponding to the
* source address of the MSDU.
*/
enum rx_mpdu_end_rxdma_dest_ring {
RX_MPDU_END_RXDMA_DEST_RING_RELEASE,
RX_MPDU_END_RXDMA_DEST_RING_FW,
RX_MPDU_END_RXDMA_DEST_RING_SW,
RX_MPDU_END_RXDMA_DEST_RING_REO,
};
#define RX_MPDU_END_INFO1_UNSUP_KTYPE_SHORT_FRAME BIT(11)
#define RX_MPDU_END_INFO1_RX_IN_TX_DECRYPT_BYT BIT(12)
#define RX_MPDU_END_INFO1_OVERFLOW_ERR BIT(13)
#define RX_MPDU_END_INFO1_MPDU_LEN_ERR BIT(14)
#define RX_MPDU_END_INFO1_TKIP_MIC_ERR BIT(15)
#define RX_MPDU_END_INFO1_DECRYPT_ERR BIT(16)
#define RX_MPDU_END_INFO1_UNENCRYPTED_FRAME_ERR BIT(17)
#define RX_MPDU_END_INFO1_PN_FIELDS_VALID BIT(18)
#define RX_MPDU_END_INFO1_FCS_ERR BIT(19)
#define RX_MPDU_END_INFO1_MSDU_LEN_ERR BIT(20)
#define RX_MPDU_END_INFO1_RXDMA0_DEST_RING GENMASK(22, 21)
#define RX_MPDU_END_INFO1_RXDMA1_DEST_RING GENMASK(24, 23)
#define RX_MPDU_END_INFO1_DECRYPT_STATUS_CODE GENMASK(27, 25)
#define RX_MPDU_END_INFO1_RX_BITMAP_NOT_UPD BIT(28)
struct rx_mpdu_end {
__le16 info0;
__le16 phy_ppdu_id;
__le32 info1;
} __packed;
/* rx_mpdu_end
*
* rxpcu_mpdu_filter_in_category
* Field indicates what the reason was that this mpdu frame
* was allowed to come into the receive path by rxpcu. Values
* are defined in enum %RX_DESC_RXPCU_FILTER_*.
*
* sw_frame_group_id
* SW processes frames based on certain classifications. Values
* are defined in enum %RX_DESC_SW_FRAME_GRP_ID_*.
*
* phy_ppdu_id
* A ppdu counter value that PHY increments for every PPDU
* received. The counter value wraps around.
*
* unsup_ktype_short_frame
* This bit will be '1' when WEP or TKIP or WAPI key type is
* received for 11ah short frame. Crypto will bypass the received
* packet without decryption to RxOLE after setting this bit.
*
* rx_in_tx_decrypt_byp
* Indicates that RX packet is not decrypted as Crypto is
* busy with TX packet processing.
*
* overflow_err
* RXPCU Receive FIFO ran out of space to receive the full MPDU.
* Therefore this MPDU is terminated early and is thus corrupted.
*
* This MPDU will not be ACKed.
*
* RXPCU might still be able to correctly receive the following
* MPDUs in the PPDU if enough fifo space became available in time.
*
* mpdu_length_err
* Set by RXPCU if the expected MPDU length does not correspond
* with the actually received number of bytes in the MPDU.
*
* tkip_mic_err
* Set by Rx crypto when crypto detected a TKIP MIC error for
* this MPDU.
*
* decrypt_err
* Set by RX CRYPTO when CRYPTO detected a decrypt error for this
* MPDU or CRYPTO received an encrypted frame, but did not get a
* valid corresponding key id in the peer entry.
*
* unencrypted_frame_err
* Set by RX CRYPTO when CRYPTO detected an unencrypted frame while
* in the peer entry field 'All_frames_shall_be_encrypted' is set.
*
* pn_fields_contain_valid_info
* Set by RX CRYPTO to indicate that there is a valid PN field
* present in this MPDU.
*
* fcs_err
* Set by RXPCU when there is an FCS error detected for this MPDU.
*
* msdu_length_err
* Set by RXOLE when there is an msdu length error detected
* in at least 1 of the MSDUs embedded within the MPDU.
*
* rxdma0_destination_ring
* rxdma1_destination_ring
* The ring to which RXDMA0/1 shall push the frame, assuming
* no MPDU level errors are detected. In case of MPDU level
* errors, RXDMA0/1 might change the RXDMA0/1 destination. Values
* are defined in %enum RX_MPDU_END_RXDMA_DEST_RING_*.
*
* decrypt_status_code
* Field provides insight into the decryption performed. Values
* are defined in enum %RX_DESC_DECRYPT_STATUS_CODE_*.
*
* rx_bitmap_not_updated
* Frame is received, but RXPCU could not update the receive bitmap
* due to (temporary) fifo constraints.
*/
/* Padding bytes to avoid TLV's spanning across 128 byte boundary */
#define HAL_RX_DESC_PADDING0_BYTES 4
#define HAL_RX_DESC_PADDING1_BYTES 16
#define HAL_RX_DESC_HDR_STATUS_LEN 120
struct hal_rx_desc_ipq8074 {
__le32 msdu_end_tag;
struct rx_msdu_end_ipq8074 msdu_end;
__le32 rx_attn_tag;
struct rx_attention attention;
__le32 msdu_start_tag;
struct rx_msdu_start_ipq8074 msdu_start;
u8 rx_padding0[HAL_RX_DESC_PADDING0_BYTES];
__le32 mpdu_start_tag;
struct rx_mpdu_start_ipq8074 mpdu_start;
__le32 mpdu_end_tag;
struct rx_mpdu_end mpdu_end;
u8 rx_padding1[HAL_RX_DESC_PADDING1_BYTES];
__le32 hdr_status_tag;
__le32 phy_ppdu_id;
u8 hdr_status[HAL_RX_DESC_HDR_STATUS_LEN];
u8 msdu_payload[];
} __packed;
struct hal_rx_desc_qcn9074 {
__le32 msdu_end_tag;
struct rx_msdu_end_qcn9074 msdu_end;
__le32 rx_attn_tag;
struct rx_attention attention;
__le32 msdu_start_tag;
struct rx_msdu_start_qcn9074 msdu_start;
u8 rx_padding0[HAL_RX_DESC_PADDING0_BYTES];
__le32 mpdu_start_tag;
struct rx_mpdu_start_qcn9074 mpdu_start;
__le32 mpdu_end_tag;
struct rx_mpdu_end mpdu_end;
u8 rx_padding1[HAL_RX_DESC_PADDING1_BYTES];
__le32 hdr_status_tag;
__le32 phy_ppdu_id;
u8 hdr_status[HAL_RX_DESC_HDR_STATUS_LEN];
u8 msdu_payload[];
} __packed;
struct hal_rx_desc_wcn6855 {
__le32 msdu_end_tag;
struct rx_msdu_end_wcn6855 msdu_end;
__le32 rx_attn_tag;
struct rx_attention attention;
__le32 msdu_start_tag;
struct rx_msdu_start_wcn6855 msdu_start;
u8 rx_padding0[HAL_RX_DESC_PADDING0_BYTES];
__le32 mpdu_start_tag;
struct rx_mpdu_start_wcn6855 mpdu_start;
__le32 mpdu_end_tag;
struct rx_mpdu_end mpdu_end;
u8 rx_padding1[HAL_RX_DESC_PADDING1_BYTES];
__le32 hdr_status_tag;
__le32 phy_ppdu_id;
u8 hdr_status[HAL_RX_DESC_HDR_STATUS_LEN];
u8 msdu_payload[];
} __packed;
struct hal_rx_desc {
union {
struct hal_rx_desc_ipq8074 ipq8074;
struct hal_rx_desc_qcn9074 qcn9074;
struct hal_rx_desc_wcn6855 wcn6855;
} u;
} __packed;
#define HAL_RX_RU_ALLOC_TYPE_MAX 6
#define RU_26 1
#define RU_52 2
#define RU_106 4
#define RU_242 9
#define RU_484 18
#define RU_996 37
#endif /* ATH11K_RX_DESC_H */
|
zxqfl/flix
|
main/test/ca/uwaterloo/flix/library/TestResult.scala
|
/*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ca.uwaterloo.flix.library
import java.lang.Boolean
import ca.uwaterloo.flix.api.Flix
import ca.uwaterloo.flix.runtime.Value
import ca.uwaterloo.flix.util.{Evaluation, Options}
import org.scalatest.FunSuite
class TestResult extends FunSuite {
val options = Options.DefaultTest.copy(core = false)
def runTest(input: String, output: Int) {
val flix = new Flix().setOptions(options).addPath("main/src/library/Result.flix").addStr(input)
assertResult(output)(flix.solve().get.getConstant("r"))
}
def runBoolTest(input: String, output: Boolean) {
val flix = new Flix().setOptions(options).addPath("main/src/library/Result.flix").addStr(input)
assertResult(output)(flix.solve().get.getConstant("r"))
}
def runAnyTest(input: String, output: AnyRef) {
val flix = new Flix().setOptions(options).addPath("main/src/library/Result.flix").addStr(input)
assertResult(output)(flix.solve().get.getConstant("r"))
}
test("isOk.01") {
val input = "def r: Bool = Result.isOk(Ok(1))"
runBoolTest(input, true)
}
test("isOk.02") {
val input = "def r: Bool = Result.isOk(Err(0))"
runBoolTest(input, false)
}
test("isErr.01") {
val input = "def r: Bool = Result.isErr(Ok(1))"
runBoolTest(input, false)
}
test("isErr.02") {
val input = "def r: Bool = Result.isErr(Err(0))"
runBoolTest(input, true)
}
test("get.01") {
val input = "def r: Int32 = Result.get(Ok(1))"
runTest(input, 1)
}
test("getWithDefault.01") {
val input = "def r: Int32 = Result.getWithDefault(Ok(1), 2)"
runTest(input, 1)
}
test("getWithDefault.02") {
val input = "def r: Int32 = Result.getWithDefault(Err(1), 2)"
runTest(input, 2)
}
test("withDefault.01") {
val input = "def r: Result[Int32, BigInt] = Result.withDefault(Ok(1), Ok(2))"
runAnyTest(input, Value.mkOk(new Integer(1)))
}
test("withDefault.02") {
val input = "def r: Result[Int32, BigInt] = Result.withDefault(Ok(1), Err(2ii))"
runAnyTest(input, Value.mkOk(new Integer(1)))
}
test("withDefault.03") {
val input = "def r: Result[Int32, BigInt] = Result.withDefault(Err(true), Ok(2))"
runAnyTest(input, Value.mkOk(new Integer(2)))
}
test("withDefault.04") {
val input = "def r: Result[Int32, BigInt] = Result.withDefault(Err(true), Err(2ii))"
runAnyTest(input, Value.mkErr(Value.mkBigInt(2)))
}
test("exists.01") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Bool = Result.exists(f, Err(false))
""".stripMargin
runBoolTest(input, false)
}
test("exists.02") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Bool = Result.exists(f, Ok(1))
""".stripMargin
runBoolTest(input, false)
}
test("exists.03") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Bool = Result.exists(f, Ok(2))
""".stripMargin
runBoolTest(input, true)
}
test("forall.01") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Bool = Result.forall(f, Err(false))
""".stripMargin
runBoolTest(input, true)
}
test("forall.02") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Bool = Result.forall(f, Ok(1))
""".stripMargin
runBoolTest(input, false)
}
test("forall.03") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Bool = Result.forall(f, Ok(2))
""".stripMargin
runBoolTest(input, true)
}
test("map.01") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Result[Bool, Int32] = Result.map(f, Err(0))
""".stripMargin
runAnyTest(input, Value.mkErr(new Integer(0)))
}
test("map.02") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Result[Bool, Int32] = Result.map(f, Ok(1))
""".stripMargin
runAnyTest(input, Value.mkOk(new Boolean(false)))
}
test("map.03") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Result[Bool, Int32] = Result.map(f, Ok(2))
""".stripMargin
runAnyTest(input, Value.mkOk(new Boolean(true)))
}
test("flatMap.01") {
val input =
"""def f(i: Int32): Result[Bool, Bool] = if (i > 0) Ok(true) else Err(false)
|def r: Result[Bool, Bool] = Result.flatMap(f, Err(false))
""".stripMargin
runAnyTest(input, Value.mkErr(new Boolean(false)))
}
test("flatMap.02") {
val input =
"""def f(i: Int32): Result[Bool, Bool] = if (i > 0) Ok(true) else Err(false)
|def r: Result[Bool, Bool] = Result.flatMap(f, Ok(0))
""".stripMargin
runAnyTest(input, Value.mkErr(new Boolean(false)))
}
test("flatMap.03") {
val input =
"""def f(i: Int32): Result[Bool, Bool] = if (i > 0) Ok(true) else Err(false)
|def r: Result[Bool, Bool] = Result.flatMap(f, Ok(1))
""".stripMargin
runAnyTest(input, Value.mkOk(new Boolean(true)))
}
test("and.01") {
val input = "def r: Result[Int32, Int32] = Result.and(Ok(1), Ok(2))"
runAnyTest(input, Value.mkOk(new Integer(2)))
}
test("and.02") {
val input = "def r: Result[Int32, Int32] = Result.and(Ok(1), Err(2))"
runAnyTest(input, Value.mkErr(new Integer(2)))
}
test("and.03") {
val input = "def r: Result[Int32, Int32] = Result.and(Err(1), Ok(2))"
runAnyTest(input, Value.mkErr(new Integer(1)))
}
test("and.04") {
val input = "def r: Result[Int32, Int32] = Result.and(Err(1), Err(2))"
runAnyTest(input, Value.mkErr(new Integer(1)))
}
test("or.01") {
val input = "def r: Result[Int32, Int32] = Result.or(Ok(1), Ok(2))"
runAnyTest(input, Value.mkOk(new Integer(1)))
}
test("or.02") {
val input = "def r: Result[Int32, Int32] = Result.or(Ok(1), Err(2))"
runAnyTest(input, Value.mkOk(new Integer(1)))
}
test("or.03") {
val input = "def r: Result[Int32, Int32] = Result.or(Err(1), Ok(2))"
runAnyTest(input, Value.mkOk(new Integer(2)))
}
test("or.04") {
val input = "def r: Result[Int32, Int32] = Result.or(Err(1), Err(2))"
runAnyTest(input, Value.mkErr(new Integer(2)))
}
test("count.01") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Int32 = Result.count(f, Err(2))
""".stripMargin
runTest(input, 0)
}
test("count.02") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Int32 = Result.count(f, Ok(1))
""".stripMargin
runTest(input, 0)
}
test("count.03") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Int32 = Result.count(f, Ok(2))
""".stripMargin
runTest(input, 1)
}
test("find.01") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Option[Int32] = Result.find(f, Err(true))
""".stripMargin
runAnyTest(input, Value.mkNone())
}
test("find.02") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Option[Int32] = Result.find(f, Ok(1))
""".stripMargin
runAnyTest(input, Value.mkNone())
}
test("find.03") {
val input =
"""def f(i: Int32): Bool = if (i == 2) true else false
|def r: Option[Int32] = Result.find(f, Ok(2))
""".stripMargin
runAnyTest(input, Value.mkSome(new Integer(2)))
}
test("foldLeft.01") {
val input =
"""def f(b: Bool, i: Int32): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldLeft(f, false, Err(0))
""".stripMargin
runBoolTest(input, false)
}
test("foldLeft.02") {
val input =
"""def f(b: Bool, i: Int32): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldLeft(f, false, Ok(1))
""".stripMargin
runBoolTest(input, false)
}
test("foldLeft.03") {
val input =
"""def f(b: Bool, i: Int32): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldLeft(f, true, Ok(1))
""".stripMargin
runBoolTest(input, false)
}
test("foldLeft.04") {
val input =
"""def f(b: Bool, i: Int32): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldLeft(f, false, Ok(2))
""".stripMargin
runBoolTest(input, false)
}
test("foldLeft.05") {
val input =
"""def f(b: Bool, i: Int32): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldLeft(f, true, Ok(2))
""".stripMargin
runBoolTest(input, true)
}
test("foldRight.01") {
val input =
"""def f(i: Int32, b: Bool): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldRight(f, Err(0), false)
""".stripMargin
runBoolTest(input, false)
}
test("foldRight.02") {
val input =
"""def f(i: Int32, b: Bool): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldRight(f, Ok(1), false)
""".stripMargin
runBoolTest(input, false)
}
test("foldRight.03") {
val input =
"""def f(i: Int32, b: Bool): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldRight(f, Ok(1), true)
""".stripMargin
runBoolTest(input, false)
}
test("foldRight.04") {
val input =
"""def f(i: Int32, b: Bool): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldRight(f, Ok(2), false)
""".stripMargin
runBoolTest(input, false)
}
test("foldRight.05") {
val input =
"""def f(i: Int32, b: Bool): Bool = if (i == 2 && b) true else false
|def r: Bool = Result.foldRight(f, Ok(2), true)
""".stripMargin
runBoolTest(input, true)
}
test("toList.01") {
val input = "def r: List[Int32] = Result.toList(Err(0))"
runAnyTest(input, Value.mkNil)
}
test("toList.02") {
val input = "def r: List[Int32] = Result.toList(Ok(11))"
runAnyTest(input, Value.mkList(List(new Integer(11))))
}
// TODO
ignore("toSet.01") {
val input = "def r: Set[Int32] = Result.toSet(Err(0))"
runAnyTest(input, Set())
}
// TODO
ignore("toSet.02") {
val input = "def r: Set[Int32] = Result.toSet(Ok(4))"
runAnyTest(input, Set(4))
}
test("toOption.01") {
val input = "def r: Option[Int32] = Result.toOption(Err(0))"
runAnyTest(input, Value.mkNone())
}
test("toOption.02") {
val input = "def r: Option[Int32] = Result.toOption(Ok(5))"
runAnyTest(input, Value.mkSome(new Integer(5)))
}
}
|
DougRogers-DigitalFish/USD
|
pxr/usd/usdGeom/wrapMesh.cpp
|
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trademarks. This License does not grant permission to use the trade
// names, trademarks, service marks, or product names of the Licensor
// and its affiliates, except as required to comply with Section 4(c) of
// the License and to reproduce the content of the NOTICE file.
//
// You may obtain a copy of the Apache License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Apache License with the above modification is
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the Apache License for the specific
// language governing permissions and limitations under the Apache License.
//
#include "pxr/usd/usdGeom/mesh.h"
#include "pxr/usd/usd/schemaBase.h"
#include "pxr/usd/sdf/primSpec.h"
#include "pxr/usd/usd/pyConversions.h"
#include "pxr/base/tf/pyContainerConversions.h"
#include "pxr/base/tf/pyResultConversions.h"
#include "pxr/base/tf/pyUtils.h"
#include "pxr/base/tf/wrapTypeHelpers.h"
#include <boost/python.hpp>
#include <string>
using namespace boost::python;
PXR_NAMESPACE_USING_DIRECTIVE
namespace {
#define WRAP_CUSTOM \
template <class Cls> static void _CustomWrapCode(Cls &_class)
// fwd decl.
WRAP_CUSTOM;
static UsdAttribute
_CreateFaceVertexIndicesAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateFaceVertexIndicesAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->IntArray), writeSparsely);
}
static UsdAttribute
_CreateFaceVertexCountsAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateFaceVertexCountsAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->IntArray), writeSparsely);
}
static UsdAttribute
_CreateSubdivisionSchemeAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateSubdivisionSchemeAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->Token), writeSparsely);
}
static UsdAttribute
_CreateInterpolateBoundaryAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateInterpolateBoundaryAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->Token), writeSparsely);
}
static UsdAttribute
_CreateFaceVaryingLinearInterpolationAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateFaceVaryingLinearInterpolationAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->Token), writeSparsely);
}
static UsdAttribute
_CreateTriangleSubdivisionRuleAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateTriangleSubdivisionRuleAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->Token), writeSparsely);
}
static UsdAttribute
_CreateHoleIndicesAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateHoleIndicesAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->IntArray), writeSparsely);
}
static UsdAttribute
_CreateCornerIndicesAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateCornerIndicesAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->IntArray), writeSparsely);
}
static UsdAttribute
_CreateCornerSharpnessesAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateCornerSharpnessesAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->FloatArray), writeSparsely);
}
static UsdAttribute
_CreateCreaseIndicesAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateCreaseIndicesAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->IntArray), writeSparsely);
}
static UsdAttribute
_CreateCreaseLengthsAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateCreaseLengthsAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->IntArray), writeSparsely);
}
static UsdAttribute
_CreateCreaseSharpnessesAttr(UsdGeomMesh &self,
object defaultVal, bool writeSparsely) {
return self.CreateCreaseSharpnessesAttr(
UsdPythonToSdfType(defaultVal, SdfValueTypeNames->FloatArray), writeSparsely);
}
static std::string
_Repr(const UsdGeomMesh &self)
{
std::string primRepr = TfPyRepr(self.GetPrim());
return TfStringPrintf(
"UsdGeom.Mesh(%s)",
primRepr.c_str());
}
} // anonymous namespace
void wrapUsdGeomMesh()
{
typedef UsdGeomMesh This;
class_<This, bases<UsdGeomPointBased> >
cls("Mesh");
cls
.def(init<UsdPrim>(arg("prim")))
.def(init<UsdSchemaBase const&>(arg("schemaObj")))
.def(TfTypePythonClass())
.def("Get", &This::Get, (arg("stage"), arg("path")))
.staticmethod("Get")
.def("Define", &This::Define, (arg("stage"), arg("path")))
.staticmethod("Define")
.def("GetSchemaAttributeNames",
&This::GetSchemaAttributeNames,
arg("includeInherited")=true,
return_value_policy<TfPySequenceToList>())
.staticmethod("GetSchemaAttributeNames")
.def("_GetStaticTfType", (TfType const &(*)()) TfType::Find<This>,
return_value_policy<return_by_value>())
.staticmethod("_GetStaticTfType")
.def(!self)
.def("GetFaceVertexIndicesAttr",
&This::GetFaceVertexIndicesAttr)
.def("CreateFaceVertexIndicesAttr",
&_CreateFaceVertexIndicesAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetFaceVertexCountsAttr",
&This::GetFaceVertexCountsAttr)
.def("CreateFaceVertexCountsAttr",
&_CreateFaceVertexCountsAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetSubdivisionSchemeAttr",
&This::GetSubdivisionSchemeAttr)
.def("CreateSubdivisionSchemeAttr",
&_CreateSubdivisionSchemeAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetInterpolateBoundaryAttr",
&This::GetInterpolateBoundaryAttr)
.def("CreateInterpolateBoundaryAttr",
&_CreateInterpolateBoundaryAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetFaceVaryingLinearInterpolationAttr",
&This::GetFaceVaryingLinearInterpolationAttr)
.def("CreateFaceVaryingLinearInterpolationAttr",
&_CreateFaceVaryingLinearInterpolationAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetTriangleSubdivisionRuleAttr",
&This::GetTriangleSubdivisionRuleAttr)
.def("CreateTriangleSubdivisionRuleAttr",
&_CreateTriangleSubdivisionRuleAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetHoleIndicesAttr",
&This::GetHoleIndicesAttr)
.def("CreateHoleIndicesAttr",
&_CreateHoleIndicesAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetCornerIndicesAttr",
&This::GetCornerIndicesAttr)
.def("CreateCornerIndicesAttr",
&_CreateCornerIndicesAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetCornerSharpnessesAttr",
&This::GetCornerSharpnessesAttr)
.def("CreateCornerSharpnessesAttr",
&_CreateCornerSharpnessesAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetCreaseIndicesAttr",
&This::GetCreaseIndicesAttr)
.def("CreateCreaseIndicesAttr",
&_CreateCreaseIndicesAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetCreaseLengthsAttr",
&This::GetCreaseLengthsAttr)
.def("CreateCreaseLengthsAttr",
&_CreateCreaseLengthsAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("GetCreaseSharpnessesAttr",
&This::GetCreaseSharpnessesAttr)
.def("CreateCreaseSharpnessesAttr",
&_CreateCreaseSharpnessesAttr,
(arg("defaultValue")=object(),
arg("writeSparsely")=false))
.def("__repr__", ::_Repr)
;
_CustomWrapCode(cls);
}
// ===================================================================== //
// Feel free to add custom code below this line, it will be preserved by
// the code generator. The entry point for your custom code should look
// minimally like the following:
//
// WRAP_CUSTOM {
// _class
// .def("MyCustomMethod", ...)
// ;
// }
//
// Of course any other ancillary or support code may be provided.
//
// Just remember to wrap code in the appropriate delimiters:
// 'namespace {', '}'.
//
// ===================================================================== //
// --(BEGIN CUSTOM CODE)--
namespace {
tuple
_ValidateTopology(const VtIntArray& faceVertexIndices,
const VtIntArray& faceVertexCounts,
size_t numPoints)
{
std::string reason;
bool valid = UsdGeomMesh::ValidateTopology(faceVertexIndices,
faceVertexCounts,
numPoints, &reason);
return boost::python::make_tuple(valid, reason);
}
WRAP_CUSTOM {
typedef UsdGeomMesh This;
_class
.def("ValidateTopology", &_ValidateTopology,
(arg("faceVertexIndices"),
arg("faceVertexCounts"),
arg("numPoints")))
.def("GetFaceCount", &UsdGeomMesh::GetFaceCount,
arg("timeCode")=UsdTimeCode::Default())
.staticmethod("ValidateTopology");
_class.attr("SHARPNESS_INFINITE") = UsdGeomMesh::SHARPNESS_INFINITE;
;
}
} // anonymous namespace
|
redclock/lufylegend.js
|
examples/demo/RunningGirl/js/share.js
|
function share(sType){
var sName = "<NAME>";
var title='lufy\' legend',
_wset = 800,
_hset = 480,
_w = 800,
_h = 480,
_strGamePic="http://lufylegend.com/demo/RunningGirl/images/logo.png";
var en=encodeURIComponent;
var l=document.location.href;
l = l.replace(/_\d{1,}\.htm/,".htm",l);
if (l.indexOf('#')>0){
l = l.substring(0, l.indexOf('#'));
}
var i = l.indexOf("/",8);
var strHost = l.substring(0,i);
if (strHost!="http://lufylegend.com"){
l = "http://lufylegend.com" + l.substr(i);
}
l = "http://lufylegend.com/demo/RunningGirl/";
var t=sName;
var s=screen;
var sImgUrl=_strGamePic;
var sContent=['「',sName,'」走り、跳び、可愛子と一緒にチャレンジしましょう!'].join('');
var sUrl='';
var w=600;
var h=500;
if (sType=='xlwb')
{
sUrl=['http://v.t.sina.com.cn/share/share.php?c=&url=',en(l),'&title=',en(sContent),'&content=utf8&pic=',en(sImgUrl)].join('');
w=610;
h=570;
}
else if (sType=='txwb')
{
sUrl=['http://v.t.qq.com/share/share.php?site=',en('lufylegend.com'),'&url=',en(l),'&title=',en(sContent),'&pic=',en(sImgUrl)].join('');
w=700;
h=470;
}
else if (sType=='twitter')
{
sUrl=['https://twitter.com/intent/tweet?original_referer=',en('lufylegend.com'),'&url=',en(l),'&text=',en(sContent),'&pic=',en(sImgUrl)].join('');
w=700;
h=470;
}
else if (sType=='facebook')
{
sUrl=['http://www.facebook.com/share.php?u=',l,'&description=',en(sContent),'&pic=',en(sImgUrl)].join('');
/*<a href="http://www.facebook.com/share.php?u=http://sp.hapitas.jp/items/view/49502"
* onclick="window.open(this.href, 'facebookwindow', 'width=550', height=450', personalbar=0, toolbar=0, scrollbars=1, resizable=1); return false;"
* class="contrary-link review-facebook ui-link" data-ajax="false">シェア</a>*/
w=700;
h=470;
}
x=function()
{
if(!window.open(sUrl, sType, ['toolbar=0,resizable=1,status=0,width=',w,',height=',h,',left=',(s.width-w)/2,',top=',(s.height-h)/2].join('')))
{
location.href=sUrl;
}
}
if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0);}else{x();}
}
|
2947721120/foam
|
js/foam/demos/graphics/DragonHeart.js
|
/**
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
CLASS({
package: 'foam.demos.graphics',
name: 'DragonHeart',
extends: 'foam.demos.graphics.Dragon',
models: [
{
name: 'Circle',
extends: 'foam.graphics.Label2',
properties: [
[ 'text', '<3' ],
[ 'align', 'center' ],
[ 'font', '20pt Arial' ],
{
name: 'r',
postSet: function(_, r) { this.scaleX = this.scaleY = r/this.width; }
}
],
methods: [
function init() {
this.SUPER();
this.border = null;
this.color = 'red';
this.a = Math.PI;
Movement.animate(
4000,
function() { this.a += Math.PI/2; }.bind(this),
Movement.oscillate(0.8, 0.25, 2)
)();
}
]
}
],
properties: [
{
name: 'eyes',
factory: function() {
var eyes = this.EyesCView.create({x:-50, y: -160, r: 25});
eyes.rightEye.color = 'red';
return eyes;
}
}
],
methods: {
dot: function(c, r) {
c.beginPath();
c.fillStyle = 'red';
c.arc(0,0,r,0,Math.PI*2,true);
c.fill();
}
}
});
|
flumebase/flumebase
|
src/main/java/com/odiago/flumebase/flume/SourceContext.java
|
<filename>src/main/java/com/odiago/flumebase/flume/SourceContext.java
/**
* Licensed to Odiago, Inc. under one or more contributor license
* agreements. See the NOTICE.txt file distributed with this work for
* additional information regarding copyright ownership. Odiago, Inc.
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package com.odiago.flumebase.flume;
import java.util.concurrent.BlockingQueue;
import com.cloudera.flume.core.Event;
/** Container for all the state an RtsqlSource needs to lazily initialize. */
public class SourceContext {
/** Name associated with this source context. */
private final String mContextName;
/**
* Queue of events that will be populated by flumebase; these should be
* broadcast to Flume via the associated RtsqlSource.
*/
private final BlockingQueue<Event> mEventQueue;
public SourceContext(String contextName, BlockingQueue<Event> eventQueue) {
mContextName = contextName;
mEventQueue = eventQueue;
}
public String getContextName() {
return mContextName;
}
public BlockingQueue<Event> getEventQueue() {
return mEventQueue;
}
}
|
Gerryflap/master_thesis
|
trainloops/listeners/loss_plotter.py
|
import json
import os
from collections import defaultdict
from trainloops.listeners.listener import Listener
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
class LossPlotter(Listener):
def __init__(self, output_path, every_n_epochs=1):
super().__init__()
self.path = os.path.join(output_path, "imgs")
self.every_n_epochs = every_n_epochs
self.losses = defaultdict(lambda: [])
def initialize(self):
pass
def report(self, state_dict: dict):
epoch = state_dict["epoch"]
if epoch % self.every_n_epochs != 0.0:
return
for key, value in state_dict["losses"].items():
self.losses[key].append(value)
plt.clf()
for loss_name, loss_progression in self.losses.items():
plt.plot(loss_progression, label=loss_name)
plt.legend()
plt.savefig(os.path.join(self.path, "loss_plot.png"))
with open(os.path.join(self.path, "loss_progression.json"), "w") as f:
json.dump(self.losses, f)
|
coco673/TrustyBrowser
|
trustybrowser/__main__.py
|
<reponame>coco673/TrustyBrowser
#!/usr/bin/env python
# encoding: utf-8
import argparse
import configparser
import sys
import logging
from .SSLTester import SSLTester
if __name__ == "__main__":
# Options en ligne de commande
parser = argparse.ArgumentParser(description="Trusty Browser - Audit\
d'implémentation SSL pour navigateur web",
prog="trustybrowser")
parser.add_argument("--config", help="chemin du fichier de configuration",
default="/etc/trustybrowser/config")
parser.add_argument("--port", "-p", help="port d'écoute principal",
default=443, type=int)
parser.add_argument("--report-port", "-r",
help="port d'écoute pour l'obtention des rapports",
default=8001, type=int)
parser.add_argument("--hostname", "-n", help="adresse IP d'écoute",
default="0.0.0.0")
parser.add_argument("--html-dir", "-t",
help="répertoire contenant les sources HTML",
default="/usr/share/trustybrowser/html")
parser.add_argument("--plugin-dir", "-i",
help="chemin du répertoire contenant les plugins",
default="./plugins")
parser.add_argument("--cert-ca", "-C",
help="Chemin du certificat de l'autorité \
intermédiaire",
default="/etc/trustybrowser/PKI/Interm.crt")
parser.add_argument("--key-ca", "-K",
help="Chemin de la clef de l'autorité intermédiaire",
default="/etc/trustybrowser/PKI/Interm.pem")
parser.add_argument("--cert-file", "-c",
help="chemin du fichier contenant les certificats",
default="/etc/trustybrowser/PKI/server.crt")
parser.add_argument("--key-file", "-k",
help="chemin du fichier contenant les clés",
default="/etc/trustybrowser/PKI/server.key")
parser.add_argument("--pool-size", "-s", help="taille du pool de clients",
default=4, type=int)
parser.add_argument("--verbose", "-v", help="controle le degré de \
verbosité du serveur. Les niveaux sont les suivants:\n\
critique (5), erreur (4), warning (3), info (2) \
debug (1), muet (0)", default=1, type=int,
choices=range(0, 6))
parser.add_argument("--log-file", "-l", help="chemin du fichier où seront \
inscrits les logs", default="/var/log/trustybrowser.log")
parser.add_argument("--substitute", "-u", help="lance le serveur en tant \
qu'un utilisateur identifié par l'uid passé en paramètre",
default=0, type=int)
commandArgs = parser.parse_args()
params = vars(commandArgs)
# Options issues du fichier de configuration
try:
with open(commandArgs.config, "r") as f:
config = configparser.ConfigParser(strict=False)
config.read_file(f)
options = config._sections["config"]
for option in options:
opt = "--" + option.replace("_", "-")
if option in params and opt not in sys.argv:
try:
params[option] = int(options[option])
except:
params[option] = options[option]
else:
sys.stderr.write("Option ignorée : " + option)
except FileNotFoundError:
pass
except (KeyError, configparser.Error):
logging.error("Fichier de configuration mal formé ; ignoré")
except:
logging.error("Une erreur inconnue est survenue ; fin")
sys.exit(1)
# Configuration de la journalisation
logging.basicConfig(format="%(asctime)-15s %(levelname)s %(message)s",
level=params["verbose"] * 10,
filename=params["log_file"])
logging.info("Lancement")
s = SSLTester(params)
s.run()
|
spegustavo/VaadinProject
|
node_modules/@vaadin/vaadin-virtual-list/src/virtualizer.js
|
<filename>node_modules/@vaadin/vaadin-virtual-list/src/virtualizer.js
import { IronListAdapter } from './virtualizer-iron-list-adapter.js';
export class Virtualizer {
/**
* @typedef {Object} VirtualizerConfig
* @property {Function} createElements Function that returns the given number of new elements
* @property {Function} updateElement Function that updates the element at a specific index
* @property {HTMLElement} scrollTarget Reference to the scrolling element
* @property {HTMLElement} scrollContainer Reference to a wrapper for the item elements (or a slot) inside the scrollTarget
* @property {HTMLElement | undefined} elementsContainer Reference to the container in which the item elements are placed, defaults to scrollContainer
* @property {boolean | undefined} reorderElements Determines whether the physical item elements should be kept in order in the DOM
* @param {VirtualizerConfig} config Configuration for the virtualizer
*/
constructor(config) {
this.__adapter = new IronListAdapter(config);
}
/**
* The size of the virtualizer
* @param {number} size The size of the virtualizer
*/
set size(size) {
this.__adapter.size = size;
}
/**
* The size of the virtualizer
* @return {number | undefined} The size of the virtualizer
*/
get size() {
return this.__adapter.size;
}
/**
* Scroll to a specific index in the virtual list
*
* @method scrollToIndex
* @param {number} index The index of the item
*/
scrollToIndex(index) {
this.__adapter.scrollToIndex(index);
}
/**
* Requests the virtualizer to re-render the item elements on an index range, if currently in the DOM
*
* @method update
* @param {number | undefined} startIndex The start index of the range
* @param {number | undefined} endIndex The end index of the range
*/
update(startIndex = 0, endIndex = this.size - 1) {
this.__adapter.update(startIndex, endIndex);
}
/**
* Flushes active asynchronous tasks so that the component and the DOM end up in a stable state
*
* @method update
* @param {number | undefined} startIndex The start index of the range
* @param {number | undefined} endIndex The end index of the range
*/
flush() {
this.__adapter.flush();
}
/**
* Gets the index of the first visible item in the viewport.
*
* @return {number}
*/
get firstVisibleIndex() {
return this.__adapter.adjustedFirstVisibleIndex;
}
/**
* Gets the index of the last visible item in the viewport.
*
* @return {number}
*/
get lastVisibleIndex() {
return this.__adapter.adjustedLastVisibleIndex;
}
}
|
the4thamigo-uk/ingestor
|
pkg/server/options.go
|
<gh_stars>1-10
package server
import (
"github.com/the4thamigo-uk/ingestor/pkg/log"
)
// Option defines the interface to use to set options on the Server instance
type Option func(*server) error
// WithLogger sets which logger instance the server should use
func WithLogger(l log.Logger) Option {
return func(s *server) error {
s.l = l
return nil
}
}
// WithSourceFiles sets up the server with some initial data source files.
// TODO: each time the server restarts it creates a new ID for the same
// datafile. This means clients will download the same files multiple times.
// We could instead use file hashes as IDs, but this might be inefficient for
// large data files. Alternatively, using filenames as IDs exposes implementation
// details to the clients of our server.
func WithSourceFiles(files []string) Option {
return func(s *server) error {
_, err := s.addSourceFiles(files)
return err
}
}
|
alex-free/sm64ex-creator
|
sm64ex-nightly/levels/bob/areas/1/collision.inc.c
|
// 0x0700E958 - 0x0701104C
const Collision bob_seg7_collision_level[] = {
COL_INIT(),
COL_VERTEX_INIT(0x23A),
COL_VERTEX(-3538, 944, -4176),
COL_VERTEX(-3460, 944, -4212),
COL_VERTEX(-3477, 941, -4251),
COL_VERTEX(-3556, 942, -4215),
COL_VERTEX(-3536, 825, -4169),
COL_VERTEX(-3538, 945, -4176),
COL_VERTEX(-3458, 824, -4204),
COL_VERTEX(-3554, 822, -4208),
COL_VERTEX(-3476, 821, -4243),
COL_VERTEX(-4454, 1138, -1962),
COL_VERTEX(-4453, 1018, -1962),
COL_VERTEX(-4389, 1018, -2019),
COL_VERTEX(-4390, 1138, -2020),
COL_VERTEX(-4482, 1138, -1994),
COL_VERTEX(-4418, 1138, -2052),
COL_VERTEX(-4269, 1144, -785),
COL_VERTEX(-4208, 1144, -846),
COL_VERTEX(-4238, 1144, -754),
COL_VERTEX(-4178, 1144, -815),
COL_VERTEX(6215, 993, -1513),
COL_VERTEX(6185, 993, -1544),
COL_VERTEX(6277, 993, -1573),
COL_VERTEX(6247, 993, -1604),
COL_VERTEX(-2303, 0, 896),
COL_VERTEX(-2175, 0, 1024),
COL_VERTEX(-2303, 358, 1152),
COL_VERTEX(-2175, 358, 1024),
COL_VERTEX(-2303, 358, 896),
COL_VERTEX(-2431, 0, 1024),
COL_VERTEX(-2431, 358, 1024),
COL_VERTEX(-2303, 0, 1152),
COL_VERTEX(2304, 888, 4438),
COL_VERTEX(2261, 888, 4438),
COL_VERTEX(2304, 888, 4352),
COL_VERTEX(2261, 888, 4352),
COL_VERTEX(-4482, 1018, -1994),
COL_VERTEX(-4418, 1018, -2051),
COL_VERTEX(-4269, 1024, -785),
COL_VERTEX(-4238, 1024, -754),
COL_VERTEX(-4208, 1024, -846),
COL_VERTEX(-4178, 1024, -815),
COL_VERTEX(6215, 873, -1513),
COL_VERTEX(6277, 873, -1573),
COL_VERTEX(6247, 873, -1604),
COL_VERTEX(6185, 873, -1544),
COL_VERTEX(-2303, 717, 1024),
COL_VERTEX(2304, 768, 4438),
COL_VERTEX(2304, 768, 4352),
COL_VERTEX(2261, 768, 4352),
COL_VERTEX(2261, 768, 4438),
COL_VERTEX(-921, 205, 5376),
COL_VERTEX(768, 717, 5376),
COL_VERTEX(-921, 205, 5888),
COL_VERTEX(768, 717, 5888),
COL_VERTEX(-2458, 1024, -5155),
COL_VERTEX(-2458, 0, -5155),
COL_VERTEX(-2679, 0, -5045),
COL_VERTEX(-2679, 384, -5045),
COL_VERTEX(-3445, 777, -4662),
COL_VERTEX(-3251, 0, -4759),
COL_VERTEX(-3445, 1, -4662),
COL_VERTEX(-3251, 384, -4759),
COL_VERTEX(-2793, 640, -4988),
COL_VERTEX(-3137, 640, -4816),
COL_VERTEX(-2222, 640, -2984),
COL_VERTEX(-1878, 640, -3155),
COL_VERTEX(-2336, 384, -2926),
COL_VERTEX(-1764, 384, -3213),
COL_VERTEX(-1764, 0, -3213),
COL_VERTEX(-2559, 0, -2815),
COL_VERTEX(-2336, 0, -2926),
COL_VERTEX(-1016, 0, -2299),
COL_VERTEX(-7167, 1024, -7167),
COL_VERTEX(-4132, 513, -6035),
COL_VERTEX(-5203, 776, -6012),
COL_VERTEX(-4991, 1024, -4479),
COL_VERTEX(-4095, 1024, -3967),
COL_VERTEX(-3617, 1, -5005),
COL_VERTEX(-3151, 512, -6526),
COL_VERTEX(-1791, 0, 1792),
COL_VERTEX(-1535, 0, 2048),
COL_VERTEX(-1535, 0, 1536),
COL_VERTEX(-767, 0, -767),
COL_VERTEX(-2815, 0, 256),
COL_VERTEX(-1791, 768, 1792),
COL_VERTEX(-1535, 0, -3327),
COL_VERTEX(-1535, 1024, -3327),
COL_VERTEX(-2559, 768, -2815),
COL_VERTEX(-1872, 0, -1441),
COL_VERTEX(-1791, 0, -767),
COL_VERTEX(-4855, 738, -5776),
COL_VERTEX(-4852, 799, -5458),
COL_VERTEX(-2633, 0, -5497),
COL_VERTEX(-3071, 0, 512),
COL_VERTEX(-3071, 0, 3072),
COL_VERTEX(-1535, 768, 2048),
COL_VERTEX(-1535, 768, 1536),
COL_VERTEX(8192, 2560, -8191),
COL_VERTEX(4352, 3712, -8191),
COL_VERTEX(3072, 2513, -8191),
COL_VERTEX(7680, 2080, -7679),
COL_VERTEX(8093, 2085, -5982),
COL_VERTEX(8093, 2064, -6029),
COL_VERTEX(8192, 2720, -5119),
COL_VERTEX(8093, 1936, -6029),
COL_VERTEX(-3105, 1024, -6549),
COL_VERTEX(512, 3328, -8191),
COL_VERTEX(-4095, 1792, -8191),
COL_VERTEX(-3151, 1024, -6526),
COL_VERTEX(-8191, 1536, -8191),
COL_VERTEX(-7167, 1024, 4096),
COL_VERTEX(-8191, 1280, 8192),
COL_VERTEX(-3071, 0, 7168),
COL_VERTEX(-3071, 640, 8192),
COL_VERTEX(3840, 2048, 8192),
COL_VERTEX(7686, 768, 7100),
COL_VERTEX(768, 768, 7168),
COL_VERTEX(7680, 768, 0),
COL_VERTEX(8093, 1936, -5934),
COL_VERTEX(8192, 1855, 1024),
COL_VERTEX(8093, 2064, -5934),
COL_VERTEX(6289, 912, -2653),
COL_VERTEX(6289, 1936, -2653),
COL_VERTEX(3097, 1741, -733),
COL_VERTEX(-869, 1024, -5528),
COL_VERTEX(-6143, 2560, -8191),
COL_VERTEX(-8191, 2048, 0),
COL_VERTEX(-7167, 0, 4096),
COL_VERTEX(-7167, 0, 7168),
COL_VERTEX(768, 768, 7680),
COL_VERTEX(768, 0, 7168),
COL_VERTEX(8192, 1024, 8192),
COL_VERTEX(8192, 2560, 4096),
COL_VERTEX(5468, 912, -1870),
COL_VERTEX(3584, 656, -767),
COL_VERTEX(3072, 2513, -7679),
COL_VERTEX(7029, 912, -3999),
COL_VERTEX(3072, 4293, -6655),
COL_VERTEX(4402, 4294, -3839),
COL_VERTEX(4402, 4294, -5375),
COL_VERTEX(1298, 4293, -3583),
COL_VERTEX(3072, 4293, -3071),
COL_VERTEX(1298, 4293, -5631),
COL_VERTEX(4846, 4294, -5631),
COL_VERTEX(5097, 825, -1387),
COL_VERTEX(5452, 857, -1485),
COL_VERTEX(5842, 832, -1155),
COL_VERTEX(-5577, 963, -5517),
COL_VERTEX(-5518, 849, -6024),
COL_VERTEX(-5198, 899, -5376),
COL_VERTEX(-6015, 1024, -3839),
COL_VERTEX(-3339, 1020, -563),
COL_VERTEX(-3448, 1015, -908),
COL_VERTEX(-4991, 1024, -2431),
COL_VERTEX(-2815, 1024, 256),
COL_VERTEX(-1791, 973, -767),
COL_VERTEX(-1872, 768, -1441),
COL_VERTEX(-7167, 1024, 512),
COL_VERTEX(-2123, 173, 6244),
COL_VERTEX(-2386, 187, 5931),
COL_VERTEX(-2242, 197, 5944),
COL_VERTEX(-2559, 179, 5888),
COL_VERTEX(-1535, 256, 5888),
COL_VERTEX(-921, 0, 6400),
COL_VERTEX(-2644, 115, 6413),
COL_VERTEX(-5375, 0, 6464),
COL_VERTEX(-2632, 132, 6269),
COL_VERTEX(-2542, 161, 6061),
COL_VERTEX(-3231, 1024, -159),
COL_VERTEX(5070, 715, 31),
COL_VERTEX(5471, 721, -23),
COL_VERTEX(5314, 717, -540),
COL_VERTEX(5812, 759, -649),
COL_VERTEX(5777, 743, 424),
COL_VERTEX(5360, 763, 1257),
COL_VERTEX(5683, 759, 927),
COL_VERTEX(5856, 754, 699),
COL_VERTEX(4864, 1024, 4096),
COL_VERTEX(5888, 1024, 4096),
COL_VERTEX(3840, 768, 2304),
COL_VERTEX(4299, 721, 668),
COL_VERTEX(4496, 713, 314),
COL_VERTEX(4845, 748, -936),
COL_VERTEX(4378, 732, 943),
COL_VERTEX(4582, 747, 1241),
COL_VERTEX(4810, 757, 1414),
COL_VERTEX(4250, 3072, 1127),
COL_VERTEX(4250, 3072, 1332),
COL_VERTEX(4454, 3072, 1127),
COL_VERTEX(3584, 3072, 2560),
COL_VERTEX(5120, 3072, 2560),
COL_VERTEX(5888, 3072, 1230),
COL_VERTEX(1888, 768, 720),
COL_VERTEX(1280, 768, 3328),
COL_VERTEX(6252, 1936, -2700),
COL_VERTEX(3060, 1741, -780),
COL_VERTEX(6265, 2080, -6527),
COL_VERTEX(-383, 0, 6400),
COL_VERTEX(6246, 2080, -7167),
COL_VERTEX(4864, 1024, 5120),
COL_VERTEX(1792, 768, 5376),
COL_VERTEX(768, 768, 5888),
COL_VERTEX(-4095, 0, 4096),
COL_VERTEX(-2559, 179, 5376),
COL_VERTEX(-1535, 256, 5376),
COL_VERTEX(2304, 768, 4864),
COL_VERTEX(-4095, 1024, -2943),
COL_VERTEX(-6015, 0, 4736),
COL_VERTEX(-6591, 0, 5312),
COL_VERTEX(-3583, 0, 5376),
COL_VERTEX(-4799, 0, 5888),
COL_VERTEX(-6015, 0, 6464),
COL_VERTEX(1692, 768, 3192),
COL_VERTEX(-7167, 768, 512),
COL_VERTEX(-3071, 768, 512),
COL_VERTEX(-4095, 768, 4096),
COL_VERTEX(6246, 2080, -6962),
COL_VERTEX(5289, 3233, -5887),
COL_VERTEX(5732, 3233, -6143),
COL_VERTEX(-3217, 1005, -1076),
COL_VERTEX(-2872, 993, -1185),
COL_VERTEX(-5887, 1024, -2943),
COL_VERTEX(-3058, 1019, -272),
COL_VERTEX(-2540, 1001, -436),
COL_VERTEX(-2772, 1011, -268),
COL_VERTEX(-2477, 990, -835),
COL_VERTEX(-2422, 993, -663),
COL_VERTEX(-2645, 990, -1067),
COL_VERTEX(-2110, 189, 6101),
COL_VERTEX(-2357, 134, 6439),
COL_VERTEX(-2579, 111, 6491),
COL_VERTEX(-921, 256, 5888),
COL_VERTEX(-3583, 0, 5888),
COL_VERTEX(-3503, 1024, 111),
COL_VERTEX(5888, 1024, 5120),
COL_VERTEX(3584, 3072, -99),
COL_VERTEX(2816, 3072, 1230),
COL_VERTEX(5120, 3072, -99),
COL_VERTEX(4454, 3072, 1332),
COL_VERTEX(2076, 768, 425),
COL_VERTEX(1212, 768, -123),
COL_VERTEX(1024, 768, 171),
COL_VERTEX(6451, 2080, -6962),
COL_VERTEX(6451, 2080, -7167),
COL_VERTEX(2079, 1368, -1535),
COL_VERTEX(-921, 0, 5888),
COL_VERTEX(256, 0, 6400),
COL_VERTEX(768, 0, 5888),
COL_VERTEX(-921, 0, 4865),
COL_VERTEX(-921, 256, 5375),
COL_VERTEX(-5375, 0, 4736),
COL_VERTEX(-6591, 0, 5888),
COL_VERTEX(-4799, 0, 5312),
COL_VERTEX(-7167, 768, 4096),
COL_VERTEX(-3071, 768, 3072),
COL_VERTEX(-3368, 768, 246),
COL_VERTEX(-3503, 768, 111),
COL_VERTEX(3072, 3666, -7167),
COL_VERTEX(3072, 3666, -7679),
COL_VERTEX(-2413, 1024, -5178),
COL_VERTEX(-2240, 1024, -4835),
COL_VERTEX(-2285, 1024, -4812),
COL_VERTEX(768, 870, 5847),
COL_VERTEX(1751, 870, 5335),
COL_VERTEX(1751, 768, 5335),
COL_VERTEX(768, 768, 5847),
COL_VERTEX(809, 768, 5868),
COL_VERTEX(1792, 870, 5376),
COL_VERTEX(809, 870, 5868),
COL_VERTEX(809, 870, 7168),
COL_VERTEX(809, 768, 7168),
COL_VERTEX(788, 891, 7168),
COL_VERTEX(768, 870, 7168),
COL_VERTEX(-5797, 128, 5702),
COL_VERTEX(-5593, 128, 5702),
COL_VERTEX(-5797, 128, 5498),
COL_VERTEX(-5797, -383, 5702),
COL_VERTEX(-5593, 128, 5498),
COL_VERTEX(5478, 1536, 4506),
COL_VERTEX(5274, 1536, 4506),
COL_VERTEX(5478, 1536, 4710),
COL_VERTEX(5478, 1024, 4506),
COL_VERTEX(5274, 1536, 4710),
COL_VERTEX(-5119, 1331, -3634),
COL_VERTEX(-4914, 1331, -3634),
COL_VERTEX(-4914, 819, -3634),
COL_VERTEX(-4914, 1331, -3429),
COL_VERTEX(-5119, 1331, -3429),
COL_VERTEX(6246, 1568, -7167),
COL_VERTEX(4352, 2560, -2559),
COL_VERTEX(4352, 3072, -2559),
COL_VERTEX(4147, 3072, -2559),
COL_VERTEX(4147, 3072, -2354),
COL_VERTEX(4352, 3072, -2354),
COL_VERTEX(2263, 768, 4864),
COL_VERTEX(2263, 870, 4864),
COL_VERTEX(2304, 768, 4480),
COL_VERTEX(2263, 870, 4480),
COL_VERTEX(-3071, 768, 1536),
COL_VERTEX(-3112, 768, 3031),
COL_VERTEX(-3112, 1024, 3031),
COL_VERTEX(-4095, 1024, 4096),
COL_VERTEX(-4136, 768, 4055),
COL_VERTEX(-4136, 1024, 4055),
COL_VERTEX(3097, 1869, -733),
COL_VERTEX(6289, 2064, -2653),
COL_VERTEX(-970, 1024, -2322),
COL_VERTEX(-2285, 1741, -4812),
COL_VERTEX(-1016, 1024, -2299),
COL_VERTEX(-3151, 1741, -6526),
COL_VERTEX(2304, 870, 4480),
COL_VERTEX(6252, 2064, -2700),
COL_VERTEX(1302, 891, 3805),
COL_VERTEX(1280, 768, 3840),
COL_VERTEX(-1506, 768, 2019),
COL_VERTEX(-1535, 891, 2048),
COL_VERTEX(1792, 0, 4352),
COL_VERTEX(1792, 768, 4352),
COL_VERTEX(-5797, -383, 5498),
COL_VERTEX(-5593, -383, 5498),
COL_VERTEX(-5593, -383, 5702),
COL_VERTEX(5478, 1024, 4710),
COL_VERTEX(5274, 1024, 4710),
COL_VERTEX(5274, 1024, 4506),
COL_VERTEX(-5119, 819, -3634),
COL_VERTEX(-4914, 819, -3429),
COL_VERTEX(-5119, 819, -3429),
COL_VERTEX(6451, 1568, -7167),
COL_VERTEX(6451, 1568, -6962),
COL_VERTEX(6246, 1568, -6962),
COL_VERTEX(4147, 2560, -2354),
COL_VERTEX(4352, 2560, -2354),
COL_VERTEX(4147, 2560, -2559),
COL_VERTEX(2262, 768, 4480),
COL_VERTEX(2284, 891, 4480),
COL_VERTEX(-3112, 1024, 1536),
COL_VERTEX(-3071, 1024, 1536),
COL_VERTEX(-3112, 768, 1536),
COL_VERTEX(2304, 870, 4864),
COL_VERTEX(-3071, 1024, 3072),
COL_VERTEX(-7167, 1024, 4055),
COL_VERTEX(-7167, 768, 4055),
COL_VERTEX(3060, 1869, -780),
COL_VERTEX(3078, 1889, -756),
COL_VERTEX(-2240, 1741, -4835),
COL_VERTEX(-1016, 1741, -2299),
COL_VERTEX(-970, 1741, -2322),
COL_VERTEX(-2459, 1741, -5155),
COL_VERTEX(-2413, 1741, -5178),
COL_VERTEX(-3105, 1741, -6549),
COL_VERTEX(-1506, 891, 2019),
COL_VERTEX(1302, 768, 3805),
COL_VERTEX(1280, 891, 3840),
COL_VERTEX(1291, 911, 3823),
COL_VERTEX(-1521, 911, 2034),
COL_VERTEX(1792, 0, 4864),
COL_VERTEX(1792, 768, 4864),
COL_VERTEX(1888, 1536, 720),
COL_VERTEX(1950, 2049, -82),
COL_VERTEX(1024, 1536, 171),
COL_VERTEX(-6245, 128, 5816),
COL_VERTEX(-5842, 128, 6248),
COL_VERTEX(-6245, 128, 5384),
COL_VERTEX(-5548, 128, 6248),
COL_VERTEX(-5842, 128, 4952),
COL_VERTEX(5632, 1536, 4864),
COL_VERTEX(5120, 1536, 4864),
COL_VERTEX(5632, 1536, 4352),
COL_VERTEX(5120, 1536, 4352),
COL_VERTEX(1260, 2918, -2327),
COL_VERTEX(1434, 0, 4352),
COL_VERTEX(1434, 0, 4864),
COL_VERTEX(4454, 2560, 1127),
COL_VERTEX(-3503, 960, 111),
COL_VERTEX(-3231, 960, -159),
COL_VERTEX(-3458, 896, 156),
COL_VERTEX(-3186, 896, -114),
COL_VERTEX(-3142, 832, -69),
COL_VERTEX(-3413, 832, 201),
COL_VERTEX(-3097, 768, -24),
COL_VERTEX(768, 0, 5376),
COL_VERTEX(3279, 2944, -1718),
COL_VERTEX(3319, 2944, -1866),
COL_VERTEX(3319, 2970, -1866),
COL_VERTEX(2407, 2917, -1925),
COL_VERTEX(2447, 2917, -2073),
COL_VERTEX(-921, 0, 5377),
COL_VERTEX(-1010, 819, -5170),
COL_VERTEX(-1210, 717, -4925),
COL_VERTEX(-1552, 717, -4752),
COL_VERTEX(-1867, 819, -4737),
COL_VERTEX(1280, 0, 3840),
COL_VERTEX(-2815, 768, 256),
COL_VERTEX(868, 2801, -3302),
COL_VERTEX(868, 3954, -3302),
COL_VERTEX(-181, 2658, -5302),
COL_VERTEX(851, 3818, -5894),
COL_VERTEX(240, 2939, -5544),
COL_VERTEX(-353, 2606, -5359),
COL_VERTEX(3072, 2513, -7167),
COL_VERTEX(596, 2683, -5748),
COL_VERTEX(5289, 2080, -5887),
COL_VERTEX(5400, 2029, -5951),
COL_VERTEX(240, 2683, -5544),
COL_VERTEX(596, 2939, -5748),
COL_VERTEX(801, 2683, -5393),
COL_VERTEX(507, 3042, -5697),
COL_VERTEX(329, 3042, -5595),
COL_VERTEX(5289, 2493, -3327),
COL_VERTEX(5289, 1936, -3327),
COL_VERTEX(2851, 1613, -1919),
COL_VERTEX(2560, 1613, -2737),
COL_VERTEX(3072, 2945, -2047),
COL_VERTEX(3328, 2944, -1603),
COL_VERTEX(167, 2709, -3757),
COL_VERTEX(169, 1024, -3471),
COL_VERTEX(54, 1024, -3700),
COL_VERTEX(2560, 2862, -2613),
COL_VERTEX(2560, 2864, -2367),
COL_VERTEX(3072, 2894, -2431),
COL_VERTEX(3072, 2945, -2559),
COL_VERTEX(4846, 3089, -3583),
COL_VERTEX(2560, 2912, -2736),
COL_VERTEX(3072, 4097, -3071),
COL_VERTEX(1298, 3954, -3583),
COL_VERTEX(1298, 3810, -5631),
COL_VERTEX(1609, 4194, -5810),
COL_VERTEX(3072, 4294, -6655),
COL_VERTEX(3072, 3666, -6655),
COL_VERTEX(4846, 3233, -5631),
COL_VERTEX(5543, 2637, -2883),
COL_VERTEX(5543, 3089, -2883),
COL_VERTEX(5400, 1885, -3263),
COL_VERTEX(3072, 3521, -7679),
COL_VERTEX(3072, 3521, -7167),
COL_VERTEX(5733, 3089, -6143),
COL_VERTEX(5289, 3088, -5887),
COL_VERTEX(3072, 4097, -2559),
COL_VERTEX(6131, 1885, -2767),
COL_VERTEX(1697, 3835, -5861),
COL_VERTEX(1697, 4091, -5861),
COL_VERTEX(1343, 3835, -5657),
COL_VERTEX(1343, 4091, -5657),
COL_VERTEX(1431, 4194, -5708),
COL_VERTEX(1902, 3835, -5506),
COL_VERTEX(419, 2706, -3884),
COL_VERTEX(400, 1024, -3014),
COL_VERTEX(400, 2802, -3014),
COL_VERTEX(400, 2546, -3014),
COL_VERTEX(2560, 2917, -2244),
COL_VERTEX(537, 2721, -3657),
COL_VERTEX(751, 2750, -3230),
COL_VERTEX(6131, 2029, -6447),
COL_VERTEX(3072, 2462, -7295),
COL_VERTEX(3072, 2462, -7551),
COL_VERTEX(4735, 4190, -3647),
COL_VERTEX(4513, 4190, -3775),
COL_VERTEX(3072, 4046, -2687),
COL_VERTEX(3072, 4046, -2943),
COL_VERTEX(966, 3902, -3391),
COL_VERTEX(1188, 3902, -3519),
COL_VERTEX(5178, 3182, -5823),
COL_VERTEX(4956, 3182, -5695),
COL_VERTEX(3072, 3614, -6783),
COL_VERTEX(3072, 3614, -7039),
COL_VERTEX(5178, 3038, -3391),
COL_VERTEX(4956, 3038, -3519),
COL_VERTEX(517, 2750, -3086),
COL_VERTEX(4352, 2048, 1230),
COL_VERTEX(3776, 2560, 2227),
COL_VERTEX(4928, 2560, 2227),
COL_VERTEX(3200, 2560, 1230),
COL_VERTEX(5504, 2560, 1230),
COL_VERTEX(4928, 2560, 232),
COL_VERTEX(3776, 2560, 232),
COL_VERTEX(-5145, 128, 5816),
COL_VERTEX(-5145, 128, 5384),
COL_VERTEX(-5548, 128, 4952),
COL_VERTEX(1452, 2918, -2259),
COL_VERTEX(1521, 2918, -2452),
COL_VERTEX(1328, 2918, -2520),
COL_VERTEX(4250, 2560, 1127),
COL_VERTEX(4250, 2560, 1332),
COL_VERTEX(4454, 2560, 1332),
COL_VERTEX(-3458, 960, 156),
COL_VERTEX(-3187, 960, -115),
COL_VERTEX(-3413, 896, 201),
COL_VERTEX(-3142, 896, -69),
COL_VERTEX(-3097, 832, -24),
COL_VERTEX(-3368, 832, 246),
COL_VERTEX(768, 768, 5376),
COL_VERTEX(3279, 2970, -1718),
COL_VERTEX(2407, 2943, -1925),
COL_VERTEX(2447, 2943, -2073),
COL_VERTEX(-286, 717, -3097),
COL_VERTEX(28, 819, -3113),
COL_VERTEX(-629, 717, -2924),
COL_VERTEX(-828, 819, -2680),
COL_VERTEX(-3231, 768, -159),
COL_VERTEX(652, 2772, -3715),
COL_VERTEX(533, 2755, -3942),
COL_VERTEX(-181, 3818, -5302),
COL_VERTEX(3037, 1669, -904),
COL_VERTEX(445, 2683, -5189),
COL_VERTEX(445, 2939, -5189),
COL_VERTEX(2560, 1612, -2244),
COL_VERTEX(2488, 1369, -2138),
COL_VERTEX(2874, 1576, -1794),
COL_VERTEX(-869, 2657, -5528),
COL_VERTEX(803, 2940, -5394),
COL_VERTEX(712, 3042, -5342),
COL_VERTEX(5289, 3089, -3327),
COL_VERTEX(534, 3042, -5240),
COL_VERTEX(3072, 2349, -2047),
COL_VERTEX(3072, 2894, -2175),
COL_VERTEX(2802, 1613, -2653),
COL_VERTEX(3328, 2493, -1603),
COL_VERTEX(54, 2762, -3700),
COL_VERTEX(-697, 2606, -5472),
COL_VERTEX(169, 2775, -3471),
COL_VERTEX(286, 2723, -3530),
COL_VERTEX(4846, 4242, -3583),
COL_VERTEX(4402, 4293, -3839),
COL_VERTEX(1902, 4088, -5506),
COL_VERTEX(1548, 3835, -5302),
COL_VERTEX(1636, 4191, -5353),
COL_VERTEX(1814, 4191, -5455),
COL_VERTEX(1548, 4088, -5302),
COL_VERTEX(2388, 2917, -1762),
COL_VERTEX(228, 2802, -2532),
COL_VERTEX(2560, 2661, -2244),
COL_VERTEX(966, 3758, -5823),
COL_VERTEX(1188, 3758, -5695),
COL_VERTEX(788, 891, 5857),
COL_VERTEX(1772, 891, 5356),
COL_VERTEX(2284, 891, 4864),
COL_VERTEX(1024, 1408, 171),
COL_VERTEX(1212, 1408, -123),
COL_VERTEX(1888, 1408, 720),
COL_VERTEX(1186, 768, -149),
COL_VERTEX(-7167, 1044, 4076),
COL_VERTEX(-4115, 1044, 4076),
COL_VERTEX(-3091, 1044, 3052),
COL_VERTEX(-3091, 1044, 1536),
COL_VERTEX(2076, 1408, 425),
COL_VERTEX(1186, 1408, -149),
COL_VERTEX(6271, 2084, -2676),
COL_VERTEX(5669, 927, -780),
COL_VERTEX(5147, 923, -957),
COL_VERTEX(5345, 966, -1188),
COL_VERTEX(-5070, 1081, -5738),
COL_VERTEX(-5322, 1136, -5756),
COL_VERTEX(-5235, 1071, -5842),
COL_VERTEX(-5017, 1331, -3020),
COL_VERTEX(-5460, 1331, -3788),
COL_VERTEX(-4573, 1331, -3788),
COL_VERTEX(-2815, 1207, -537),
COL_VERTEX(-2815, 1207, -844),
COL_VERTEX(-3045, 1207, -895),
COL_VERTEX(-3199, 1207, -562),
COL_VERTEX(-2316, 245, 6300),
COL_VERTEX(-2401, 235, 6323),
COL_VERTEX(-2364, 239, 6216),
COL_VERTEX(4827, 1329, 1183),
COL_VERTEX(4966, 1333, 645),
COL_VERTEX(5248, 1249, 675),
COL_VERTEX(-897, 922, -5370),
COL_VERTEX(-2096, 922, -4764),
COL_VERTEX(-942, 922, -2479),
COL_VERTEX(257, 922, -3085),
COL_TRI_INIT(SURFACE_DEFAULT, 378),
COL_TRI(362, 360, 273),
COL_TRI(60, 73, 58),
COL_TRI(58, 87, 54),
COL_TRI(87, 86, 54),
COL_TRI(71, 86, 85),
COL_TRI(71, 308, 86),
COL_TRI(360, 361, 273),
COL_TRI(365, 278, 280),
COL_TRI(361, 363, 274),
COL_TRI(361, 274, 273),
COL_TRI(362, 273, 275),
COL_TRI(277, 274, 475),
COL_TRI(363, 475, 274),
COL_TRI(277, 475, 476),
COL_TRI(362, 275, 364),
COL_TRI(364, 275, 277),
COL_TRI(364, 277, 477),
COL_TRI(277, 476, 477),
COL_TRI(234, 365, 366),
COL_TRI(365, 367, 278),
COL_TRI(366, 365, 280),
COL_TRI(178, 365, 234),
COL_TRI(367, 279, 278),
COL_TRI(366, 280, 282),
COL_TRI(177, 368, 367),
COL_TRI(177, 367, 178),
COL_TRI(367, 368, 279),
COL_TRI(178, 367, 365),
COL_TRI(199, 366, 368),
COL_TRI(234, 366, 199),
COL_TRI(368, 366, 282),
COL_TRI(368, 282, 279),
COL_TRI(199, 368, 177),
COL_TRI(369, 478, 479),
COL_TRI(369, 479, 480),
COL_TRI(370, 371, 316),
COL_TRI(371, 355, 316),
COL_TRI(186, 372, 188),
COL_TRI(186, 481, 372),
COL_TRI(372, 482, 483),
COL_TRI(372, 481, 482),
COL_TRI(188, 372, 483),
COL_TRI(238, 483, 482),
COL_TRI(187, 482, 481),
COL_TRI(238, 482, 187),
COL_TRI(188, 483, 238),
COL_TRI(187, 481, 186),
COL_TRI(373, 484, 485),
COL_TRI(373, 485, 374),
COL_TRI(374, 233, 373),
COL_TRI(256, 375, 373),
COL_TRI(375, 484, 373),
COL_TRI(378, 486, 375),
COL_TRI(376, 485, 484),
COL_TRI(374, 168, 233),
COL_TRI(376, 484, 375),
COL_TRI(377, 486, 378),
COL_TRI(377, 487, 486),
COL_TRI(375, 486, 487),
COL_TRI(213, 256, 373),
COL_TRI(375, 487, 376),
COL_TRI(256, 378, 375),
COL_TRI(378, 488, 377),
COL_TRI(378, 489, 488),
COL_TRI(255, 489, 378),
COL_TRI(256, 255, 378),
COL_TRI(379, 488, 489),
COL_TRI(379, 489, 255),
COL_TRI(214, 379, 255),
COL_TRI(214, 392, 379),
COL_TRI(313, 317, 47),
COL_TRI(313, 47, 193),
COL_TRI(317, 205, 47),
COL_TRI(95, 313, 96),
COL_TRI(249, 204, 162),
COL_TRI(80, 391, 313),
COL_TRI(80, 313, 95),
COL_TRI(313, 391, 317),
COL_TRI(313, 193, 96),
COL_TRI(317, 356, 205),
COL_TRI(204, 203, 162),
COL_TRI(203, 232, 161),
COL_TRI(203, 161, 162),
COL_TRI(203, 209, 232),
COL_TRI(231, 249, 162),
COL_TRI(209, 210, 232),
COL_TRI(209, 252, 210),
COL_TRI(52, 201, 231),
COL_TRI(84, 95, 96),
COL_TRI(200, 205, 356),
COL_TRI(201, 200, 356),
COL_TRI(380, 51, 356),
COL_TRI(355, 380, 356),
COL_TRI(51, 490, 356),
COL_TRI(201, 356, 490),
COL_TRI(381, 384, 385),
COL_TRI(381, 385, 382),
COL_TRI(52, 53, 201),
COL_TRI(382, 491, 381),
COL_TRI(381, 491, 492),
COL_TRI(381, 492, 384),
COL_TRI(383, 492, 491),
COL_TRI(383, 493, 492),
COL_TRI(384, 492, 493),
COL_TRI(384, 493, 385),
COL_TRI(382, 383, 491),
COL_TRI(385, 493, 383),
COL_TRI(385, 383, 382),
COL_TRI(386, 50, 52),
COL_TRI(386, 52, 245),
COL_TRI(231, 490, 249),
COL_TRI(231, 201, 490),
COL_TRI(51, 249, 490),
COL_TRI(51, 50, 249),
COL_TRI(387, 494, 495),
COL_TRI(387, 388, 494),
COL_TRI(388, 496, 494),
COL_TRI(388, 389, 496),
COL_TRI(389, 390, 496),
COL_TRI(390, 497, 496),
COL_TRI(248, 370, 202),
COL_TRI(316, 391, 370),
COL_TRI(391, 316, 317),
COL_TRI(391, 94, 370),
COL_TRI(391, 80, 94),
COL_TRI(248, 249, 386),
COL_TRI(370, 248, 386),
COL_TRI(371, 386, 380),
COL_TRI(370, 94, 202),
COL_TRI(371, 370, 386),
COL_TRI(202, 94, 254),
COL_TRI(53, 380, 247),
COL_TRI(53, 51, 380),
COL_TRI(53, 247, 130),
COL_TRI(130, 201, 53),
COL_TRI(245, 380, 386),
COL_TRI(202, 254, 215),
COL_TRI(214, 254, 94),
COL_TRI(214, 94, 93),
COL_TRI(231, 163, 245),
COL_TRI(245, 247, 380),
COL_TRI(247, 245, 197),
COL_TRI(247, 197, 246),
COL_TRI(380, 355, 371),
COL_TRI(89, 88, 156),
COL_TRI(89, 156, 155),
COL_TRI(89, 155, 154),
COL_TRI(89, 154, 83),
COL_TRI(93, 83, 392),
COL_TRI(93, 392, 214),
COL_TRI(392, 154, 379),
COL_TRI(154, 374, 379),
COL_TRI(154, 168, 374),
COL_TRI(87, 156, 88),
COL_TRI(69, 87, 88),
COL_TRI(72, 78, 108),
COL_TRI(60, 77, 73),
COL_TRI(54, 108, 78),
COL_TRI(54, 78, 92),
COL_TRI(54, 92, 55),
COL_TRI(393, 394, 499),
COL_TRI(394, 395, 500),
COL_TRI(394, 500, 499),
COL_TRI(394, 396, 501),
COL_TRI(395, 394, 501),
COL_TRI(396, 395, 501),
COL_TRI(244, 308, 71),
COL_TRI(244, 195, 502),
COL_TRI(244, 446, 308),
COL_TRI(397, 395, 407),
COL_TRI(395, 396, 407),
COL_TRI(397, 403, 395),
COL_TRI(395, 403, 400),
COL_TRI(395, 399, 398),
COL_TRI(135, 124, 508),
COL_TRI(395, 400, 399),
COL_TRI(399, 436, 401),
COL_TRI(399, 434, 436),
COL_TRI(396, 257, 399),
COL_TRI(396, 399, 404),
COL_TRI(400, 404, 399),
COL_TRI(399, 453, 398),
COL_TRI(397, 503, 403),
COL_TRI(403, 503, 405),
COL_TRI(403, 405, 400),
COL_TRI(400, 405, 404),
COL_TRI(396, 404, 406),
COL_TRI(404, 509, 510),
COL_TRI(404, 510, 406),
COL_TRI(405, 509, 404),
COL_TRI(396, 406, 407),
COL_TRI(406, 512, 407),
COL_TRI(406, 510, 512),
COL_TRI(407, 504, 397),
COL_TRI(407, 512, 504),
COL_TRI(397, 504, 503),
COL_TRI(405, 503, 504),
COL_TRI(405, 504, 512),
COL_TRI(405, 510, 509),
COL_TRI(405, 512, 510),
COL_TRI(408, 513, 410),
COL_TRI(409, 408, 410),
COL_TRI(410, 513, 412),
COL_TRI(410, 412, 514),
COL_TRI(410, 514, 419),
COL_TRI(411, 505, 410),
COL_TRI(410, 515, 411),
COL_TRI(410, 419, 515),
COL_TRI(408, 516, 513),
COL_TRI(412, 513, 516),
COL_TRI(415, 446, 447),
COL_TRI(413, 412, 516),
COL_TRI(124, 517, 508),
COL_TRI(124, 416, 517),
COL_TRI(414, 518, 508),
COL_TRI(414, 508, 517),
COL_TRI(415, 447, 519),
COL_TRI(421, 437, 420),
COL_TRI(415, 519, 520),
COL_TRI(411, 515, 420),
COL_TRI(411, 420, 422),
COL_TRI(417, 411, 422),
COL_TRI(417, 418, 411),
COL_TRI(418, 505, 411),
COL_TRI(419, 420, 515),
COL_TRI(420, 437, 422),
COL_TRI(425, 439, 428),
COL_TRI(422, 451, 417),
COL_TRI(422, 393, 451),
COL_TRI(423, 140, 424),
COL_TRI(424, 140, 425),
COL_TRI(140, 142, 425),
COL_TRI(423, 141, 140),
COL_TRI(425, 441, 439),
COL_TRI(142, 441, 425),
COL_TRI(429, 143, 421),
COL_TRI(142, 442, 441),
COL_TRI(142, 426, 443),
COL_TRI(142, 443, 442),
COL_TRI(426, 142, 427),
COL_TRI(423, 522, 138),
COL_TRI(141, 423, 138),
COL_TRI(427, 143, 429),
COL_TRI(428, 427, 429),
COL_TRI(401, 511, 409),
COL_TRI(143, 521, 421),
COL_TRI(421, 521, 437),
COL_TRI(428, 439, 427),
COL_TRI(430, 431, 516),
COL_TRI(408, 430, 516),
COL_TRI(431, 413, 516),
COL_TRI(433, 258, 435),
COL_TRI(408, 511, 431),
COL_TRI(408, 431, 430),
COL_TRI(401, 217, 511),
COL_TRI(432, 402, 401),
COL_TRI(409, 432, 401),
COL_TRI(401, 402, 399),
COL_TRI(434, 433, 436),
COL_TRI(258, 218, 435),
COL_TRI(435, 218, 217),
COL_TRI(436, 435, 217),
COL_TRI(433, 435, 436),
COL_TRI(434, 257, 258),
COL_TRI(434, 258, 433),
COL_TRI(394, 393, 422),
COL_TRI(432, 409, 410),
COL_TRI(437, 394, 422),
COL_TRI(432, 438, 402),
COL_TRI(438, 432, 502),
COL_TRI(432, 507, 502),
COL_TRI(432, 410, 507),
COL_TRI(439, 440, 427),
COL_TRI(440, 426, 427),
COL_TRI(440, 523, 526),
COL_TRI(416, 415, 499),
COL_TRI(439, 523, 440),
COL_TRI(426, 525, 443),
COL_TRI(426, 526, 525),
COL_TRI(440, 526, 426),
COL_TRI(441, 444, 439),
COL_TRI(439, 444, 523),
COL_TRI(441, 524, 444),
COL_TRI(442, 524, 441),
COL_TRI(443, 525, 527),
COL_TRI(443, 527, 442),
COL_TRI(442, 527, 524),
COL_TRI(444, 524, 527),
COL_TRI(444, 527, 525),
COL_TRI(444, 526, 523),
COL_TRI(444, 525, 526),
COL_TRI(416, 499, 500),
COL_TRI(445, 416, 500),
COL_TRI(415, 450, 499),
COL_TRI(446, 505, 449),
COL_TRI(446, 449, 447),
COL_TRI(244, 506, 446),
COL_TRI(447, 418, 467),
COL_TRI(447, 449, 418),
COL_TRI(417, 451, 467),
COL_TRI(448, 528, 529),
COL_TRI(448, 530, 528),
COL_TRI(449, 528, 530),
COL_TRI(448, 529, 447),
COL_TRI(418, 449, 505),
COL_TRI(417, 467, 418),
COL_TRI(445, 414, 416),
COL_TRI(244, 502, 507),
COL_TRI(244, 507, 506),
COL_TRI(450, 451, 499),
COL_TRI(415, 520, 450),
COL_TRI(451, 520, 467),
COL_TRI(451, 450, 520),
COL_TRI(452, 454, 453),
COL_TRI(414, 517, 416),
COL_TRI(438, 452, 402),
COL_TRI(438, 195, 194),
COL_TRI(196, 452, 194),
COL_TRI(452, 438, 194),
COL_TRI(402, 453, 399),
COL_TRI(402, 452, 453),
COL_TRI(452, 196, 454),
COL_TRI(455, 456, 457),
COL_TRI(196, 135, 454),
COL_TRI(438, 502, 195),
COL_TRI(453, 454, 398),
COL_TRI(454, 518, 398),
COL_TRI(454, 135, 518),
COL_TRI(135, 508, 518),
COL_TRI(139, 455, 143),
COL_TRI(139, 456, 455),
COL_TRI(464, 531, 532),
COL_TRI(456, 458, 457),
COL_TRI(457, 458, 459),
COL_TRI(458, 460, 459),
COL_TRI(459, 460, 531),
COL_TRI(460, 532, 531),
COL_TRI(461, 464, 463),
COL_TRI(462, 461, 463),
COL_TRI(463, 464, 532),
COL_TRI(451, 393, 499),
COL_TRI(461, 462, 465),
COL_TRI(462, 466, 465),
COL_TRI(465, 466, 514),
COL_TRI(466, 419, 514),
COL_TRI(467, 519, 447),
COL_TRI(467, 520, 519),
COL_TRI(445, 398, 518),
COL_TRI(445, 518, 414),
COL_TRI(398, 445, 500),
COL_TRI(398, 500, 395),
COL_TRI(157, 213, 373),
COL_TRI(233, 157, 373),
COL_TRI(157, 110, 253),
COL_TRI(253, 213, 157),
COL_TRI(468, 471, 474),
COL_TRI(468, 470, 469),
COL_TRI(468, 469, 471),
COL_TRI(468, 473, 472),
COL_TRI(468, 474, 473),
COL_TRI(468, 472, 470),
COL_TRI(469, 189, 236),
COL_TRI(469, 236, 471),
COL_TRI(470, 189, 469),
COL_TRI(471, 235, 474),
COL_TRI(471, 236, 235),
COL_TRI(470, 190, 189),
COL_TRI(472, 190, 470),
COL_TRI(472, 191, 190),
COL_TRI(473, 191, 472),
COL_TRI(473, 237, 191),
COL_TRI(235, 237, 473),
COL_TRI(474, 235, 473),
COL_TRI(374, 498, 379),
COL_TRI(116, 201, 130),
COL_TRI(129, 116, 130),
COL_TRI(253, 127, 202),
COL_TRI(202, 215, 253),
COL_TRI_INIT(SURFACE_HANGABLE, 2),
COL_TRI(50, 51, 52),
COL_TRI(51, 53, 52),
COL_TRI_INIT(SURFACE_CLOSE_CAMERA, 55),
COL_TRI(54, 63, 58),
COL_TRI(54, 55, 56),
COL_TRI(54, 56, 57),
COL_TRI(58, 59, 60),
COL_TRI(58, 61, 59),
COL_TRI(54, 62, 63),
COL_TRI(54, 57, 62),
COL_TRI(64, 63, 62),
COL_TRI(65, 62, 57),
COL_TRI(64, 62, 65),
COL_TRI(66, 61, 63),
COL_TRI(66, 63, 64),
COL_TRI(63, 61, 58),
COL_TRI(65, 57, 67),
COL_TRI(67, 57, 56),
COL_TRI(65, 67, 86),
COL_TRI(67, 56, 68),
COL_TRI(67, 68, 86),
COL_TRI(64, 65, 86),
COL_TRI(68, 56, 59),
COL_TRI(68, 59, 70),
COL_TRI(68, 85, 86),
COL_TRI(64, 86, 87),
COL_TRI(66, 64, 87),
COL_TRI(69, 66, 87),
COL_TRI(70, 61, 66),
COL_TRI(69, 70, 66),
COL_TRI(71, 69, 88),
COL_TRI(70, 59, 61),
COL_TRI(72, 74, 73),
COL_TRI(73, 90, 91),
COL_TRI(74, 90, 73),
COL_TRI(75, 73, 91),
COL_TRI(75, 76, 73),
COL_TRI(73, 78, 72),
COL_TRI(78, 73, 92),
COL_TRI(76, 58, 73),
COL_TRI(77, 56, 92),
COL_TRI(56, 55, 92),
COL_TRI(77, 59, 56),
COL_TRI(77, 60, 59),
COL_TRI(73, 77, 92),
COL_TRI(79, 93, 94),
COL_TRI(80, 79, 94),
COL_TRI(81, 82, 83),
COL_TRI(82, 71, 89),
COL_TRI(83, 82, 89),
COL_TRI(79, 81, 83),
COL_TRI(79, 83, 93),
COL_TRI(84, 81, 79),
COL_TRI(84, 96, 81),
COL_TRI(84, 79, 80),
COL_TRI(85, 69, 71),
COL_TRI(71, 88, 89),
COL_TRI(80, 95, 84),
COL_TRI_INIT(SURFACE_VERY_SLIPPERY, 5),
COL_TRI(134, 123, 357),
COL_TRI(357, 123, 358),
COL_TRI(123, 359, 358),
COL_TRI(359, 357, 358),
COL_TRI(134, 357, 212),
COL_TRI_INIT(SURFACE_SLIPPERY, 62),
COL_TRI(262, 533, 263),
COL_TRI(533, 267, 534),
COL_TRI(533, 534, 263),
COL_TRI(533, 268, 267),
COL_TRI(263, 535, 295),
COL_TRI(263, 534, 535),
COL_TRI(534, 267, 535),
COL_TRI(267, 338, 535),
COL_TRI(272, 533, 262),
COL_TRI(272, 271, 533),
COL_TRI(271, 269, 533),
COL_TRI(269, 268, 533),
COL_TRI(357, 359, 536),
COL_TRI(357, 536, 538),
COL_TRI(536, 537, 544),
COL_TRI(536, 544, 538),
COL_TRI(241, 537, 536),
COL_TRI(537, 239, 544),
COL_TRI(538, 544, 239),
COL_TRI(538, 239, 192),
COL_TRI(81, 96, 545),
COL_TRI(537, 240, 239),
COL_TRI(241, 240, 537),
COL_TRI(212, 357, 192),
COL_TRI(96, 241, 359),
COL_TRI(359, 123, 545),
COL_TRI(96, 359, 545),
COL_TRI(303, 542, 300),
COL_TRI(81, 545, 539),
COL_TRI(82, 81, 539),
COL_TRI(82, 539, 123),
COL_TRI(539, 545, 123),
COL_TRI(244, 82, 123),
COL_TRI(82, 244, 71),
COL_TRI(303, 340, 541),
COL_TRI(303, 541, 542),
COL_TRI(110, 301, 541),
COL_TRI(540, 110, 541),
COL_TRI(340, 540, 541),
COL_TRI(541, 301, 339),
COL_TRI(541, 339, 542),
COL_TRI(335, 300, 542),
COL_TRI(542, 339, 543),
COL_TRI(335, 542, 543),
COL_TRI(339, 336, 543),
COL_TRI(543, 336, 335),
COL_TRI(310, 334, 535),
COL_TRI(310, 535, 338),
COL_TRI(343, 304, 305),
COL_TRI(334, 295, 535),
COL_TRI(334, 297, 295),
COL_TRI(342, 343, 546),
COL_TRI(342, 546, 311),
COL_TRI(311, 546, 101),
COL_TRI(101, 546, 305),
COL_TRI(343, 305, 546),
COL_TRI(102, 311, 101),
COL_TRI(353, 312, 354),
COL_TRI(101, 305, 120),
COL_TRI(352, 354, 315),
COL_TRI(352, 353, 354),
COL_TRI(312, 350, 354),
COL_TRI_INIT(SURFACE_NOT_SLIPPERY, 167),
COL_TRI(251, 362, 208),
COL_TRI(251, 360, 362),
COL_TRI(211, 361, 251),
COL_TRI(361, 360, 251),
COL_TRI(208, 362, 364),
COL_TRI(208, 364, 207),
COL_TRI(207, 364, 477),
COL_TRI(207, 477, 250),
COL_TRI(250, 477, 252),
COL_TRI(477, 476, 252),
COL_TRI(252, 475, 210),
COL_TRI(252, 476, 475),
COL_TRI(547, 146, 549),
COL_TRI(210, 475, 363),
COL_TRI(210, 363, 165),
COL_TRI(165, 363, 361),
COL_TRI(165, 361, 211),
COL_TRI(171, 172, 547),
COL_TRI(171, 547, 548),
COL_TRI(145, 549, 146),
COL_TRI(171, 548, 182),
COL_TRI(548, 549, 144),
COL_TRI(145, 144, 549),
COL_TRI(144, 182, 548),
COL_TRI(550, 90, 552),
COL_TRI(549, 548, 547),
COL_TRI(146, 547, 172),
COL_TRI(149, 91, 550),
COL_TRI(149, 550, 551),
COL_TRI(74, 552, 90),
COL_TRI(149, 551, 147),
COL_TRI(551, 552, 148),
COL_TRI(74, 148, 552),
COL_TRI(148, 147, 551),
COL_TRI(153, 553, 221),
COL_TRI(552, 551, 550),
COL_TRI(90, 550, 91),
COL_TRI(153, 206, 553),
COL_TRI(206, 76, 555),
COL_TRI(553, 555, 286),
COL_TRI(553, 286, 287),
COL_TRI(554, 553, 287),
COL_TRI(221, 554, 150),
COL_TRI(75, 150, 554),
COL_TRI(75, 554, 555),
COL_TRI(555, 283, 284),
COL_TRI(554, 221, 553),
COL_TRI(75, 555, 76),
COL_TRI(555, 553, 206),
COL_TRI(555, 284, 286),
COL_TRI(554, 287, 283),
COL_TRI(555, 554, 283),
COL_TRI(556, 224, 223),
COL_TRI(557, 226, 225),
COL_TRI(556, 559, 224),
COL_TRI(224, 559, 222),
COL_TRI(558, 556, 557),
COL_TRI(222, 559, 151),
COL_TRI(220, 558, 227),
COL_TRI(559, 558, 152),
COL_TRI(558, 219, 152),
COL_TRI(219, 558, 220),
COL_TRI(151, 559, 152),
COL_TRI(558, 559, 556),
COL_TRI(557, 227, 558),
COL_TRI(557, 225, 227),
COL_TRI(557, 556, 226),
COL_TRI(223, 226, 556),
COL_TRI(158, 560, 229),
COL_TRI(167, 562, 159),
COL_TRI(229, 560, 561),
COL_TRI(229, 561, 230),
COL_TRI(560, 160, 562),
COL_TRI(230, 561, 164),
COL_TRI(561, 562, 167),
COL_TRI(561, 167, 166),
COL_TRI(164, 561, 166),
COL_TRI(159, 562, 160),
COL_TRI(562, 561, 560),
COL_TRI(160, 560, 228),
COL_TRI(560, 158, 228),
COL_TRI(563, 565, 564),
COL_TRI(563, 175, 176),
COL_TRI(564, 183, 563),
COL_TRI(564, 565, 170),
COL_TRI(169, 564, 170),
COL_TRI(183, 184, 563),
COL_TRI(565, 563, 176),
COL_TRI(564, 181, 180),
COL_TRI(170, 565, 173),
COL_TRI(173, 565, 176),
COL_TRI(181, 564, 169),
COL_TRI(183, 564, 180),
COL_TRI(124, 388, 387),
COL_TRI(563, 184, 185),
COL_TRI(174, 563, 185),
COL_TRI(175, 563, 174),
COL_TRI(124, 387, 566),
COL_TRI(124, 260, 567),
COL_TRI(124, 567, 390),
COL_TRI(124, 390, 389),
COL_TRI(124, 389, 388),
COL_TRI(566, 387, 495),
COL_TRI(416, 124, 566),
COL_TRI(416, 566, 569),
COL_TRI(566, 495, 569),
COL_TRI(390, 567, 568),
COL_TRI(390, 568, 497),
COL_TRI(567, 260, 568),
COL_TRI(260, 306, 568),
COL_TRI(568, 306, 446),
COL_TRI(568, 446, 569),
COL_TRI(568, 569, 495),
COL_TRI(568, 495, 494),
COL_TRI(431, 293, 413),
COL_TRI(568, 494, 496),
COL_TRI(568, 496, 497),
COL_TRI(415, 416, 569),
COL_TRI(415, 569, 446),
COL_TRI(446, 506, 505),
COL_TRI(431, 511, 293),
COL_TRI(511, 290, 293),
COL_TRI(291, 290, 511),
COL_TRI(291, 511, 412),
COL_TRI(293, 292, 413),
COL_TRI(292, 291, 412),
COL_TRI(413, 292, 412),
COL_TRI(479, 449, 480),
COL_TRI(479, 528, 449),
COL_TRI(479, 478, 528),
COL_TRI(449, 447, 480),
COL_TRI(394, 457, 459),
COL_TRI(529, 369, 480),
COL_TRI(529, 480, 447),
COL_TRI(478, 369, 528),
COL_TRI(369, 529, 528),
COL_TRI(437, 455, 457),
COL_TRI(437, 521, 455),
COL_TRI(394, 437, 457),
COL_TRI(521, 143, 455),
COL_TRI(460, 424, 532),
COL_TRI(456, 522, 458),
COL_TRI(138, 456, 139),
COL_TRI(522, 423, 458),
COL_TRI(458, 424, 460),
COL_TRI(458, 423, 424),
COL_TRI(394, 459, 396),
COL_TRI(459, 531, 396),
COL_TRI(424, 425, 532),
COL_TRI(425, 463, 532),
COL_TRI(425, 428, 463),
COL_TRI(462, 463, 428),
COL_TRI(429, 462, 428),
COL_TRI(464, 257, 531),
COL_TRI(461, 217, 464),
COL_TRI(217, 257, 464),
COL_TRI(257, 396, 531),
COL_TRI(462, 429, 466),
COL_TRI(429, 421, 466),
COL_TRI(410, 505, 507),
COL_TRI(511, 461, 465),
COL_TRI(511, 217, 461),
COL_TRI(412, 511, 465),
COL_TRI(412, 465, 514),
COL_TRI(466, 421, 419),
COL_TRI(421, 420, 419),
COL_TRI(505, 506, 507),
COL_TRI_INIT(SURFACE_WALL_MISC, 198),
COL_TRI(9, 10, 11),
COL_TRI(0, 1, 2),
COL_TRI(0, 2, 3),
COL_TRI(3, 4, 5),
COL_TRI(5, 4, 6),
COL_TRI(5, 6, 1),
COL_TRI(3, 7, 4),
COL_TRI(1, 6, 8),
COL_TRI(1, 8, 2),
COL_TRI(2, 8, 7),
COL_TRI(2, 7, 3),
COL_TRI(9, 11, 12),
COL_TRI(13, 10, 9),
COL_TRI(13, 35, 10),
COL_TRI(12, 11, 36),
COL_TRI(12, 36, 14),
COL_TRI(14, 36, 35),
COL_TRI(14, 35, 13),
COL_TRI(9, 14, 13),
COL_TRI(9, 12, 14),
COL_TRI(15, 37, 38),
COL_TRI(15, 38, 17),
COL_TRI(16, 39, 37),
COL_TRI(16, 37, 15),
COL_TRI(17, 38, 40),
COL_TRI(17, 40, 18),
COL_TRI(18, 39, 16),
COL_TRI(18, 40, 39),
COL_TRI(17, 18, 16),
COL_TRI(17, 16, 15),
COL_TRI(19, 22, 20),
COL_TRI(23, 26, 24),
COL_TRI(19, 21, 22),
COL_TRI(20, 41, 19),
COL_TRI(19, 42, 21),
COL_TRI(19, 41, 42),
COL_TRI(21, 42, 43),
COL_TRI(21, 43, 22),
COL_TRI(20, 44, 41),
COL_TRI(22, 43, 44),
COL_TRI(22, 44, 20),
COL_TRI(23, 27, 26),
COL_TRI(24, 26, 25),
COL_TRI(27, 29, 45),
COL_TRI(28, 29, 27),
COL_TRI(26, 27, 45),
COL_TRI(28, 27, 23),
COL_TRI(29, 25, 45),
COL_TRI(25, 26, 45),
COL_TRI(30, 29, 28),
COL_TRI(30, 25, 29),
COL_TRI(24, 25, 30),
COL_TRI(31, 34, 32),
COL_TRI(31, 33, 34),
COL_TRI(32, 46, 31),
COL_TRI(31, 47, 33),
COL_TRI(31, 46, 47),
COL_TRI(33, 47, 48),
COL_TRI(33, 48, 34),
COL_TRI(32, 49, 46),
COL_TRI(34, 48, 49),
COL_TRI(34, 49, 32),
COL_TRI(116, 269, 272),
COL_TRI(262, 263, 264),
COL_TRI(262, 264, 265),
COL_TRI(266, 267, 268),
COL_TRI(266, 200, 267),
COL_TRI(266, 268, 269),
COL_TRI(266, 269, 270),
COL_TRI(269, 271, 272),
COL_TRI(116, 270, 269),
COL_TRI(279, 281, 278),
COL_TRI(273, 276, 318),
COL_TRI(273, 318, 275),
COL_TRI(274, 276, 273),
COL_TRI(275, 318, 319),
COL_TRI(276, 319, 318),
COL_TRI(275, 319, 277),
COL_TRI(274, 320, 276),
COL_TRI(276, 320, 319),
COL_TRI(277, 319, 320),
COL_TRI(277, 320, 274),
COL_TRI(278, 281, 321),
COL_TRI(278, 321, 280),
COL_TRI(280, 321, 322),
COL_TRI(281, 322, 321),
COL_TRI(280, 322, 282),
COL_TRI(281, 323, 322),
COL_TRI(279, 323, 281),
COL_TRI(282, 322, 323),
COL_TRI(282, 323, 279),
COL_TRI(283, 324, 285),
COL_TRI(283, 285, 284),
COL_TRI(284, 285, 325),
COL_TRI(285, 324, 326),
COL_TRI(285, 326, 325),
COL_TRI(286, 326, 287),
COL_TRI(287, 326, 324),
COL_TRI(286, 325, 326),
COL_TRI(284, 325, 286),
COL_TRI(287, 324, 283),
COL_TRI(198, 327, 243),
COL_TRI(198, 288, 327),
COL_TRI(216, 288, 198),
COL_TRI(243, 327, 328),
COL_TRI(288, 328, 327),
COL_TRI(292, 332, 291),
COL_TRI(243, 328, 242),
COL_TRI(288, 329, 328),
COL_TRI(216, 329, 288),
COL_TRI(242, 328, 329),
COL_TRI(242, 329, 216),
COL_TRI(289, 330, 331),
COL_TRI(289, 332, 330),
COL_TRI(290, 289, 331),
COL_TRI(291, 289, 290),
COL_TRI(291, 332, 289),
COL_TRI(292, 330, 332),
COL_TRI(293, 330, 292),
COL_TRI(293, 331, 330),
COL_TRI(290, 331, 293),
COL_TRI(298, 337, 335),
COL_TRI(263, 295, 294),
COL_TRI(263, 294, 264),
COL_TRI(294, 295, 333),
COL_TRI(295, 297, 333),
COL_TRI(296, 333, 297),
COL_TRI(297, 334, 310),
COL_TRI(296, 297, 310),
COL_TRI(298, 335, 336),
COL_TRI(301, 110, 215),
COL_TRI(298, 336, 339),
COL_TRI(299, 300, 337),
COL_TRI(300, 335, 337),
COL_TRI(215, 339, 301),
COL_TRI(215, 254, 339),
COL_TRI(298, 339, 254),
COL_TRI(195, 123, 304),
COL_TRI(110, 253, 215),
COL_TRI(302, 340, 303),
COL_TRI(302, 341, 340),
COL_TRI(303, 300, 302),
COL_TRI(300, 299, 302),
COL_TRI(195, 304, 342),
COL_TRI(260, 261, 344),
COL_TRI(304, 343, 342),
COL_TRI(305, 304, 122),
COL_TRI(304, 123, 122),
COL_TRI(194, 342, 311),
COL_TRI(194, 195, 342),
COL_TRI(306, 260, 344),
COL_TRI(54, 348, 347),
COL_TRI(261, 308, 345),
COL_TRI(261, 345, 307),
COL_TRI(261, 307, 344),
COL_TRI(307, 346, 344),
COL_TRI(307, 345, 346),
COL_TRI(308, 346, 345),
COL_TRI(308, 306, 346),
COL_TRI(306, 344, 346),
COL_TRI(108, 54, 347),
COL_TRI(54, 259, 348),
COL_TRI(200, 205, 338),
COL_TRI(309, 347, 348),
COL_TRI(309, 348, 349),
COL_TRI(259, 349, 348),
COL_TRI(108, 347, 309),
COL_TRI(259, 105, 349),
COL_TRI(108, 349, 105),
COL_TRI(108, 309, 349),
COL_TRI(310, 205, 296),
COL_TRI(310, 338, 205),
COL_TRI(200, 338, 267),
COL_TRI(311, 102, 194),
COL_TRI(102, 104, 194),
COL_TRI(120, 305, 118),
COL_TRI(104, 120, 101),
COL_TRI(104, 118, 120),
COL_TRI(305, 122, 118),
COL_TRI(312, 314, 350),
COL_TRI(312, 351, 314),
COL_TRI(313, 351, 312),
COL_TRI(95, 314, 351),
COL_TRI(314, 315, 350),
COL_TRI(314, 95, 315),
COL_TRI(315, 354, 350),
COL_TRI(95, 351, 313),
COL_TRI(313, 312, 352),
COL_TRI(312, 353, 352),
COL_TRI(315, 313, 352),
COL_TRI(315, 95, 313),
COL_TRI(317, 316, 356),
COL_TRI(104, 101, 102),
COL_TRI(316, 355, 356),
COL_TRI(262, 264, 265),
COL_TRI(262, 263, 264),
COL_TRI(116, 262, 265),
COL_TRI(116, 272, 262),
COL_TRI_INIT(SURFACE_NOISE_DEFAULT, 141),
COL_TRI(134, 144, 133),
COL_TRI(133, 145, 146),
COL_TRI(144, 145, 133),
COL_TRI(117, 133, 146),
COL_TRI(72, 75, 147),
COL_TRI(148, 72, 147),
COL_TRI(72, 148, 74),
COL_TRI(75, 91, 149),
COL_TRI(75, 149, 147),
COL_TRI(150, 75, 72),
COL_TRI(151, 152, 153),
COL_TRI(152, 219, 153),
COL_TRI(153, 219, 220),
COL_TRI(154, 151, 153),
COL_TRI(155, 153, 220),
COL_TRI(87, 206, 153),
COL_TRI(155, 156, 153),
COL_TRI(156, 87, 153),
COL_TRI(157, 153, 221),
COL_TRI(154, 222, 151),
COL_TRI(154, 223, 224),
COL_TRI(154, 155, 223),
COL_TRI(154, 224, 222),
COL_TRI(155, 225, 226),
COL_TRI(155, 226, 223),
COL_TRI(155, 220, 227),
COL_TRI(155, 227, 225),
COL_TRI(158, 162, 228),
COL_TRI(112, 158, 229),
COL_TRI(112, 162, 158),
COL_TRI(159, 160, 162),
COL_TRI(160, 228, 162),
COL_TRI(161, 159, 162),
COL_TRI(162, 112, 163),
COL_TRI(163, 231, 162),
COL_TRI(112, 230, 164),
COL_TRI(112, 229, 230),
COL_TRI(112, 166, 161),
COL_TRI(164, 166, 112),
COL_TRI(165, 112, 232),
COL_TRI(166, 167, 161),
COL_TRI(167, 159, 161),
COL_TRI(161, 232, 112),
COL_TRI(168, 154, 153),
COL_TRI(168, 153, 233),
COL_TRI(157, 233, 153),
COL_TRI(169, 170, 134),
COL_TRI(170, 117, 134),
COL_TRI(117, 178, 115),
COL_TRI(117, 171, 134),
COL_TRI(117, 172, 171),
COL_TRI(117, 146, 172),
COL_TRI(117, 173, 176),
COL_TRI(117, 174, 179),
COL_TRI(117, 175, 174),
COL_TRI(117, 176, 175),
COL_TRI(117, 170, 173),
COL_TRI(177, 178, 117),
COL_TRI(177, 117, 179),
COL_TRI(174, 185, 179),
COL_TRI(179, 180, 134),
COL_TRI(180, 181, 134),
COL_TRI(181, 169, 134),
COL_TRI(171, 182, 134),
COL_TRI(182, 144, 134),
COL_TRI(47, 134, 212),
COL_TRI(189, 190, 187),
COL_TRI(183, 180, 179),
COL_TRI(184, 183, 179),
COL_TRI(185, 184, 179),
COL_TRI(186, 235, 236),
COL_TRI(187, 186, 236),
COL_TRI(186, 188, 235),
COL_TRI(188, 237, 235),
COL_TRI(189, 187, 236),
COL_TRI(190, 238, 187),
COL_TRI(190, 191, 238),
COL_TRI(191, 188, 238),
COL_TRI(191, 237, 188),
COL_TRI(192, 239, 240),
COL_TRI(192, 240, 241),
COL_TRI(193, 47, 212),
COL_TRI(47, 179, 134),
COL_TRI(47, 177, 179),
COL_TRI(194, 104, 196),
COL_TRI(195, 122, 194),
COL_TRI(194, 122, 104),
COL_TRI(195, 123, 122),
COL_TRI(122, 118, 104),
COL_TRI(196, 104, 242),
COL_TRI(100, 242, 104),
COL_TRI(163, 112, 197),
COL_TRI(123, 195, 244),
COL_TRI(99, 196, 216),
COL_TRI(197, 245, 163),
COL_TRI(130, 246, 197),
COL_TRI(99, 216, 198),
COL_TRI(99, 198, 100),
COL_TRI(100, 198, 243),
COL_TRI(100, 243, 242),
COL_TRI(112, 130, 197),
COL_TRI(130, 247, 246),
COL_TRI(115, 234, 199),
COL_TRI(47, 205, 199),
COL_TRI(47, 199, 177),
COL_TRI(199, 200, 115),
COL_TRI(200, 201, 115),
COL_TRI(201, 116, 115),
COL_TRI(178, 234, 115),
COL_TRI(202, 204, 248),
COL_TRI(203, 204, 202),
COL_TRI(204, 249, 248),
COL_TRI(72, 157, 150),
COL_TRI(157, 221, 150),
COL_TRI(205, 200, 199),
COL_TRI(202, 209, 203),
COL_TRI(76, 206, 58),
COL_TRI(206, 87, 58),
COL_TRI(207, 250, 127),
COL_TRI(208, 207, 127),
COL_TRI(208, 127, 128),
COL_TRI(128, 251, 208),
COL_TRI(165, 211, 128),
COL_TRI(127, 250, 202),
COL_TRI(202, 250, 209),
COL_TRI(209, 250, 252),
COL_TRI(210, 165, 232),
COL_TRI(112, 165, 128),
COL_TRI(211, 251, 128),
COL_TRI(96, 212, 241),
COL_TRI(212, 192, 241),
COL_TRI(213, 253, 215),
COL_TRI(214, 213, 254),
COL_TRI(215, 254, 213),
COL_TRI(193, 212, 96),
COL_TRI(196, 99, 135),
COL_TRI(216, 196, 242),
COL_TRI(213, 214, 255),
COL_TRI(213, 255, 256),
COL_TRI(217, 218, 257),
COL_TRI(218, 258, 257),
COL_TRI_INIT(SURFACE_NOISE_SLIPPERY, 43),
COL_TRI(107, 105, 106),
COL_TRI(97, 98, 99),
COL_TRI(97, 99, 100),
COL_TRI(101, 97, 102),
COL_TRI(101, 103, 97),
COL_TRI(104, 97, 100),
COL_TRI(104, 102, 97),
COL_TRI(105, 99, 106),
COL_TRI(98, 106, 99),
COL_TRI(107, 108, 105),
COL_TRI(109, 72, 125),
COL_TRI(110, 72, 109),
COL_TRI(110, 109, 126),
COL_TRI(72, 108, 107),
COL_TRI(72, 107, 125),
COL_TRI(110, 111, 127),
COL_TRI(110, 126, 111),
COL_TRI(111, 113, 112),
COL_TRI(112, 128, 111),
COL_TRI(113, 129, 112),
COL_TRI(112, 129, 130),
COL_TRI(113, 114, 129),
COL_TRI(111, 128, 127),
COL_TRI(114, 115, 116),
COL_TRI(115, 114, 131),
COL_TRI(115, 131, 132),
COL_TRI(116, 129, 114),
COL_TRI(117, 132, 119),
COL_TRI(115, 132, 117),
COL_TRI(117, 121, 133),
COL_TRI(118, 117, 119),
COL_TRI(101, 119, 103),
COL_TRI(101, 120, 119),
COL_TRI(119, 120, 118),
COL_TRI(121, 122, 133),
COL_TRI(118, 122, 121),
COL_TRI(122, 123, 133),
COL_TRI(123, 134, 133),
COL_TRI(124, 135, 99),
COL_TRI(99, 105, 124),
COL_TRI(117, 118, 136),
COL_TRI(118, 121, 136),
COL_TRI(121, 117, 136),
COL_TRI_INIT(SURFACE_BOSS_FIGHT_CAMERA, 5),
COL_TRI(137, 139, 143),
COL_TRI(137, 138, 139),
COL_TRI(137, 140, 141),
COL_TRI(137, 142, 140),
COL_TRI(137, 141, 138),
COL_TRI_INIT(SURFACE_CAMERA_ROTATE_LEFT, 4),
COL_TRI(259, 124, 105),
COL_TRI(54, 260, 259),
COL_TRI(54, 261, 260),
COL_TRI(260, 124, 259),
COL_TRI_STOP(),
COL_SPECIAL_INIT(17),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -5792, 1024, -4654),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -1509, 144, 5094),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -4095, 768, 3072),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -5119, 768, 2048),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ 5444, 863, 6016),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -6655, 768, 3584),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -6130, 900, -6507),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -6804, 1024, -4866),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ 6033, 2194, -7660),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -4095, 768, 1536),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -4268, 0, 4768),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -3583, 768, 2560),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ -6172, 1024, -430),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ 4096, 3072, 1638),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ 6799, 2008, -5587),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ 2911, 768, 5917),
SPECIAL_OBJECT(/*preset*/ special_bubble_tree, /*pos*/ 4208, 927, 3772),
COL_END(),
};
|
gourmetjs/gourmet-ssr
|
utils/plugin-sort/gmsrc/index.js
|
<reponame>gourmetjs/gourmet-ssr
"use strict";
const PluginSorter = require("./PluginSorter");
module.exports = function sortPlugins(items, options) {
const sorter = new PluginSorter(options);
return sorter.run(items);
};
|
ezmaxinc/eZmax-SDK-c
|
unit-test/test_franchisereferalincome_create_object_v2_response_all_of.c
|
<reponame>ezmaxinc/eZmax-SDK-c
#ifndef franchisereferalincome_create_object_v2_response_all_of_TEST
#define franchisereferalincome_create_object_v2_response_all_of_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define franchisereferalincome_create_object_v2_response_all_of_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include "../external/cJSON.h"
#include "../model/franchisereferalincome_create_object_v2_response_all_of.h"
franchisereferalincome_create_object_v2_response_all_of_t* instantiate_franchisereferalincome_create_object_v2_response_all_of(int include_optional);
#include "test_franchisereferalincome_create_object_v2_response_m_payload.c"
franchisereferalincome_create_object_v2_response_all_of_t* instantiate_franchisereferalincome_create_object_v2_response_all_of(int include_optional) {
franchisereferalincome_create_object_v2_response_all_of_t* franchisereferalincome_create_object_v2_response_all_of = NULL;
if (include_optional) {
franchisereferalincome_create_object_v2_response_all_of = franchisereferalincome_create_object_v2_response_all_of_create(
// false, not to have infinite recursion
instantiate_franchisereferalincome_create_object_v2_response_m_payload(0)
);
} else {
franchisereferalincome_create_object_v2_response_all_of = franchisereferalincome_create_object_v2_response_all_of_create(
NULL
);
}
return franchisereferalincome_create_object_v2_response_all_of;
}
#ifdef franchisereferalincome_create_object_v2_response_all_of_MAIN
void test_franchisereferalincome_create_object_v2_response_all_of(int include_optional) {
franchisereferalincome_create_object_v2_response_all_of_t* franchisereferalincome_create_object_v2_response_all_of_1 = instantiate_franchisereferalincome_create_object_v2_response_all_of(include_optional);
cJSON* jsonfranchisereferalincome_create_object_v2_response_all_of_1 = franchisereferalincome_create_object_v2_response_all_of_convertToJSON(franchisereferalincome_create_object_v2_response_all_of_1);
printf("franchisereferalincome_create_object_v2_response_all_of :\n%s\n", cJSON_Print(jsonfranchisereferalincome_create_object_v2_response_all_of_1));
franchisereferalincome_create_object_v2_response_all_of_t* franchisereferalincome_create_object_v2_response_all_of_2 = franchisereferalincome_create_object_v2_response_all_of_parseFromJSON(jsonfranchisereferalincome_create_object_v2_response_all_of_1);
cJSON* jsonfranchisereferalincome_create_object_v2_response_all_of_2 = franchisereferalincome_create_object_v2_response_all_of_convertToJSON(franchisereferalincome_create_object_v2_response_all_of_2);
printf("repeating franchisereferalincome_create_object_v2_response_all_of:\n%s\n", cJSON_Print(jsonfranchisereferalincome_create_object_v2_response_all_of_2));
}
int main() {
test_franchisereferalincome_create_object_v2_response_all_of(1);
test_franchisereferalincome_create_object_v2_response_all_of(0);
printf("Hello world \n");
return 0;
}
#endif // franchisereferalincome_create_object_v2_response_all_of_MAIN
#endif // franchisereferalincome_create_object_v2_response_all_of_TEST
|
1372501851/qukuailian
|
src/main/java/com/saiyun/service/UserWalletService.java
|
<filename>src/main/java/com/saiyun/service/UserWalletService.java
package com.saiyun.service;
import com.saiyun.mapper.UserWalletMapper;
import com.saiyun.model.UserWallet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserWalletService {
@Autowired
private UserWalletMapper userWalletMapper;
//获取用户的指定币的钱包
public UserWallet getUserWalletByUserIdAndCoinNo(String userId,String coinNo){
UserWallet userWallet = new UserWallet();
userWallet.setType(Integer.parseInt(coinNo));
userWallet.setUserId(userId);
return userWalletMapper.getUserWalletByCondition(userWallet);
}
}
|
vusec/revanc
|
include/paging.h
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <macros.h>
struct page_level {
size_t entry_size;
size_t nentries;
size_t table_size;
size_t page_size;
size_t ncache_entries;
size_t npages;
size_t slot_mask;
};
struct page_format {
const char *name;
struct page_level *levels;
size_t nlevels;
int flags;
};
#define PAGE_FORMAT_FILTER BIT(0)
struct page_format *get_page_format(const char *name);
struct page_format *get_default_page_format(void);
void list_page_formats(FILE *f);
|
pdony/test
|
node_modules/jscodeshift/dist/jsx/ensure.js
|
function ensure({ test, value }, data, message) {
const result = test(data);
if (!result) {
throw new Error(message || data);
}
}
function Length(value) {
return {
value: value.length,
test: (length) => {
return value.length === length;
},
};
}
function Exists(value) {
return {
value,
test: () => value !== undefined,
};
}
module.exports = {
ensure: ensure,
Length: Length,
Exists: Exists,
};
|
BigNuoLi/jenkins-library
|
integration/integration_jenkins_test.go
|
// can be execute with go test -tags=integration ./integration/...
package main
import (
"context"
"net/http"
"os"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/SAP/jenkins-library/pkg/jenkins"
)
func TestTriggerJob(t *testing.T) {
t.Skip("no Jenkins instance for testing available yet")
//TODO: check if testcontainers can be used
// init
ctx := context.Background()
// ctx = context.WithValue(ctx, "debug", true)
// os.Setenv("PIPER_INTEGRATION_JENKINS_USER_NAME", "")
// os.Setenv("PIPER_INTEGRATION_JENKINS_TOKEN", "")
// os.Setenv("PIPER_INTEGRATION_JENKINS_HOST", "")
// os.Setenv("PIPER_INTEGRATION_JENKINS_JOB_NAME", "")
host := os.Getenv("PIPER_INTEGRATION_JENKINS_HOST")
user := os.Getenv("PIPER_INTEGRATION_JENKINS_USER_NAME")
token := os.Getenv("PIPER_INTEGRATION_JENKINS_TOKEN")
jobName := os.Getenv("PIPER_INTEGRATION_JENKINS_JOB_NAME")
require.NotEmpty(t, host, "Jenkins host url is missing")
require.NotEmpty(t, user, "Jenkins user name is missing")
require.NotEmpty(t, token, "Jenkins token is missing")
require.NotEmpty(t, jobName, "Jenkins job name is missing")
jenx, err := jenkins.Instance(ctx, http.DefaultClient, host, user, token)
require.NotNil(t, jenx, "could not connect to Jenkins instance")
require.NoError(t, err)
// test
job, getJobErr := jenkins.GetJob(ctx, jenx, jobName)
build, triggerJobErr := jenkins.TriggerJob(ctx, jenx, job, nil)
// asserts
assert.NoError(t, getJobErr)
assert.NoError(t, triggerJobErr)
assert.NotNil(t, build)
assert.True(t, build.IsRunning(ctx))
}
|
kassonlab/gmxapi
|
src/gromacs/fileio/writeps.h
|
<reponame>kassonlab/gmxapi
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
* Copyright (c) 2010,2014,2015,2019, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
*
* GROMACS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*
* GROMACS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GROMACS; if not, see
* http://www.gnu.org/licenses, or write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* If you want to redistribute modifications to GROMACS, please
* consider that scientific software is very special. Version
* control is crucial - bugs must be traceable. We will be happy to
* consider code for inclusion in the official distribution, but
* derived work must not be called official GROMACS. Details are found
* in the README & COPYING files - if they are missing, get the
* official version at http://www.gromacs.org.
*
* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
#ifndef GMX_FILEIO_WRITEPS_H
#define GMX_FILEIO_WRITEPS_H
#include <cstdio>
#include <string>
#include <vector>
#include "gromacs/fileio/rgb.h"
#include "gromacs/utility/basedefinitions.h"
#include "gromacs/utility/real.h"
/* TODO: These two enums are used also in xutil.h in src/programs/view/.
* The Y position enum doesn't seem to be actually used in this header...
*/
typedef enum
{
eXCenter,
eXLeft,
eXRight
} eXPos;
typedef enum
{
eYCenter,
eYTop,
eYBottom
} eYPos;
enum
{
efontTIMES,
efontTIMESITALIC,
efontTIMESBOLD,
efontTIMESBOLDITALIC,
efontHELV,
efontHELVITALIC,
efontHELVBOLD,
efontHELVBOLDITALIC,
efontCOUR,
efontCOURITALIC,
efontCOURBOLD,
efontCOURBOLDITALIC,
efontNR
};
struct t_psdata
{
FILE* fp = nullptr;
int maxrgb = 0;
std::vector<t_rgb> rgb;
real gen_ybox = 0;
int ostack = 0;
};
extern const char* fontnm[efontNR];
t_psdata ps_open(const char* fn, real x1, real y1, real x2, real y2);
void ps_linewidth(t_psdata* ps, int lw);
void ps_color(t_psdata* ps, real r, real g, real b);
void ps_rgb(t_psdata* ps, const t_rgb* rgb);
void ps_rgb_box(t_psdata* ps, t_rgb* rgb);
void ps_rgb_nbox(t_psdata* ps, t_rgb* rgb, real n);
void ps_init_rgb_box(t_psdata* ps, real xbox, real ybox);
void ps_init_rgb_nbox(t_psdata* ps, real xbox, real ybox);
void ps_lineto(t_psdata* ps, real x, real y);
void ps_linerel(t_psdata* ps, real dx, real dy);
void ps_moveto(t_psdata* ps, real x, real y);
void ps_moverel(t_psdata* ps, real dx, real dy);
void ps_line(t_psdata* ps, real x1, real y1, real x2, real y2);
void ps_box(t_psdata* ps, real x1, real y1, real x2, real y2);
void ps_fillbox(t_psdata* ps, real x1, real y1, real x2, real y2);
void ps_arc(t_psdata* ps, real x1, real y1, real rad, real a0, real a1);
void ps_fillarc(t_psdata* ps, real x1, real y1, real rad, real a0, real a1);
void ps_arcslice(t_psdata* ps, real xc, real yc, real rad1, real rad2, real a0, real a1);
void ps_fillarcslice(t_psdata* ps, real xc, real yc, real rad1, real rad2, real a0, real a1);
void ps_circle(t_psdata* ps, real x1, real y1, real rad);
void ps_font(t_psdata* ps, int font, real size);
void ps_strfont(t_psdata* ps, char* font, real size);
void ps_text(t_psdata* ps, real x1, real y1, const std::string& str);
void ps_ctext(t_psdata* ps, real x1, real y1, const std::string& str, int expos);
void ps_close(t_psdata* ps);
void ps_flip(t_psdata* ps, gmx_bool bPlus);
/* Rotate over 90 (bPlus) or -90 (!bPlus) degrees */
void ps_rotate(t_psdata* ps, real angle);
void ps_translate(t_psdata* ps, real x, real y);
void ps_setorigin(t_psdata* ps);
void ps_unsetorigin(t_psdata* ps);
void ps_comment(t_psdata* ps, const char* s);
#endif
|
IRONKAGE/DetoxInstruments
|
DetoxInstruments/DetoxInstruments/Views/Plots/DTXPlotHeightSynchronization.h
|
//
// DTXPlotHeightSynchronization.h
// DetoxInstruments
//
// Created by <NAME> (Wix) on 1/22/20.
// Copyright © 2017-2021 Wix. All rights reserved.
//
@protocol DTXPlotHeightSynchronization <NSObject>
@property (nonatomic) double maximumPlotHeight;
@end
|
rjsicko/rtg-tools
|
src/com/rtg/util/diagnostic/SlimException.java
|
<gh_stars>100-1000
/*
* Copyright (c) 2014. Real Time Genomics Limited.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.rtg.util.diagnostic;
/**
* Exception for reporting errors within SLIM. In every case the exception
* is logged via the diagnostics system.
*
*/
public class SlimException extends RuntimeException {
private final boolean mTalkback;
private final ErrorType mErrorType;
private final String[] mErrorArguments;
/**
* A new exception for an error where intelligent information can be
* returned to the user via the diagnostics system and where an
* underlying exception may contain further information useful for debuggers.
*
* @param talkback if true then invoke talkback mechanism.
* @param t cause
* @param type error type
* @param args parameters of the error type
*/
protected SlimException(final boolean talkback, final Throwable t, final ErrorType type, final String... args) {
super(t != null ? t.toString() : args.length > 0 ? args[0] : "", t); //TODO this is heinous and should be dealt to with extreme prejudice
mTalkback = talkback;
mErrorType = type;
mErrorArguments = args.clone();
}
/**
* A new exception for an error where intelligent information can be
* returned to the user via the diagnostics system and where an
* underlying exception may contain further information useful for debuggers.
*
* @param t cause
* @param type error type
* @param args parameters of the error type
*/
public SlimException(final Throwable t, final ErrorType type, final String... args) {
this(true, t, type, args);
}
/**
* A new exception for an error where intelligent information can be
* returned to the user via the diagnostics system.
* A stack trace will be logged.
*
* @param type error type
* @param args parameters of the error type
*/
public SlimException(final ErrorType type, final String... args) {
this(null, type, args);
}
/**
* A new exception wrapping another throwable.
* A stack trace will be logged.
*
* @param t cause
*/
public SlimException(final Throwable t) {
this(t, ErrorType.SLIM_ERROR);
}
/**
* A new exception where no additional useful information is available.
* A stack trace will be logged.
*/
public SlimException() {
this(ErrorType.SLIM_ERROR);
}
/**
* An exception where we have an error message for the user.
* @param message message for the error.
*/
public SlimException(final String message) {
this(ErrorType.INFO_ERROR, message);
}
/**
* The error that caused this exception
* @return the type
*/
public ErrorType getErrorType() {
return mErrorType;
}
/**
* Log the error to the diagnostic log file.
*/
public void logException() {
Diagnostic.userLog(getCause() == null ? this : getCause());
Diagnostic.errorLogOnly(mErrorType, mErrorArguments);
}
/**
* Print the user viewable error without logging.
*/
public void printErrorNoLog() {
Diagnostic.errorNoLog(mErrorType, mErrorArguments);
}
/**
* Invoke the talkback mechanism if this was a talkback exception.
*/
public void invokeTalkback() {
if (mTalkback) {
Talkback.postTalkback(getCause() == null ? this : getCause());
}
}
}
|
suhasv1995/md-react-icons
|
icons/SkipNextLined.js
|
import React from 'react';
import createSvg from './utils/createSvg';
export default createSvg(<path d="M6 18l8.5-6L6 6v12zm2-8.14L11.03 12 8 14.14V9.86zM16 6h2v12h-2z" />, 'SkipNextLined', '0 0 24 24');
|
ruijiefang/duet-IW
|
bench/tasks/bitprecise/Urban-WST2013-Fig2-modified1000.c
|
extern int __VERIFIER_nondet_int();
extern void __VERIFIER_assume(int);
int nondet_signed_int() {
int r = __VERIFIER_nondet_int();
__VERIFIER_assume ((-0x7fffffff - 1) <= r && r <= 0x7fffffff);
return r;
}
signed int main()
{
signed int x1;
signed int x2;
x1 = nondet_signed_int();
x2 = nondet_signed_int();
for( ; !(x1 >= 11); x1 = x1 + 1)
{
x2 = 1000;
for( ; x2 >= 2; x2 = x2 - 1)
while(!(!(x2 - 1 < (-0x7fffffff - 1) || 0x7fffffff < x2 - 1)));
while(!(!(x1 + 1 < (-0x7fffffff - 1) || 0x7fffffff < x1 + 1)));
}
return 0;
}
|
JessenPan/leetcode-java
|
algorithms/java/src/test/java/org/jessenpan/leetcode/dp/S300LongestIncreasingSubsequenceTest.java
|
<gh_stars>1-10
package org.jessenpan.leetcode.dp;
import org.junit.Assert;
import org.junit.Test;
/**
* @author jessenpan
*/
public class S300LongestIncreasingSubsequenceTest {
private S300LongestIncreasingSubsequence longestIncreasingSubsequence = new S300LongestIncreasingSubsequence();
@Test
public void test1() {
int t = longestIncreasingSubsequence.lengthOfLIS(new int[] { 10, 9, 2, 5, 3, 7, 101, 18 });
Assert.assertEquals(4, t);
}
@Test
public void test2() {
int t = longestIncreasingSubsequence.lengthOfLIS(new int[] { 4, 4, 4, 4, 4 });
Assert.assertEquals(1, t);
}
@Test
public void test3() {
int t = longestIncreasingSubsequence.lengthOfLIS(new int[] { 4, 10, 4, 3, 8, 9 });
Assert.assertEquals(3, t);
}
}
|
vjmadrid/enmilocalfunciona-kafka
|
demo-kafka-spring-boot-rest-producer/src/main/java/com/acme/kafka/producer/constant/SpringConfigConstant.java
|
<gh_stars>0
package com.acme.kafka.producer.constant;
public class SpringConfigConstant {
private SpringConfigConstant() {
}
public static final String GENERIC_PACKAGE = "com.acme";
public static final String BASE_PACKAGE = GENERIC_PACKAGE + ".kafka.producer";
public static final String CONTROLLER_PACKAGE = BASE_PACKAGE + ".controller";
}
|
lijunru-hub/esp-iot-solution
|
components/sensors/humiture/hdc2010/test/hdc2010_test.c
|
<gh_stars>1000+
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// 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 <stdio.h>
#include "unity.h"
#include "esp_log.h"
#include "driver/i2c.h"
#include "i2c_bus.h"
#include "esp_system.h"
#include "hdc2010.h"
#define HDC2010_I2C_MASTER_SCL_IO (gpio_num_t)22 /*!< gpio number for I2C master clock */
#define HDC2010_I2C_MASTER_SDA_IO (gpio_num_t)21 /*!< gpio number for I2C master data */
#define HDC2010_I2C_MASTER_NUM I2C_NUM_1 /*!< I2C port number for master dev */
#define HDC2010_I2C_MASTER_TX_BUF_DISABLE 0 /*!< I2C master do not need buffer */
#define HDC2010_I2C_MASTER_RX_BUF_DISABLE 0 /*!< I2C master do not need buffer */
#define HDC2010_I2C_MASTER_FREQ_HZ 100000 /*!< I2C master clock frequency */
static i2c_bus_handle_t i2c_bus = NULL;
static hdc2010_handle_t hdc2010 = NULL;
static const char *TAG = "hdc2010";
void hdc2010_init_test()
{
i2c_config_t conf = {
.mode = I2C_MODE_MASTER,
.sda_io_num = HDC2010_I2C_MASTER_SDA_IO,
.sda_pullup_en = GPIO_PULLUP_ENABLE,
.scl_io_num = HDC2010_I2C_MASTER_SCL_IO,
.scl_pullup_en = GPIO_PULLUP_ENABLE,
.master.clk_speed = HDC2010_I2C_MASTER_FREQ_HZ,
};
i2c_bus = i2c_bus_create(HDC2010_I2C_MASTER_NUM, &conf);
hdc2010 = hdc2010_create(i2c_bus, HDC2010_ADDR_PIN_SELECT_GND);
}
void hdc2010_deinit_test()
{
hdc2010_delete(&hdc2010);
i2c_bus_delete(&i2c_bus);
}
void hdc2010_get_data_test()
{
int cnt = 10;
while (cnt--) {
ESP_LOGI(TAG, "temperature %f", hdc2010_get_temperature(hdc2010));
ESP_LOGI(TAG, "humidity:%f", hdc2010_get_humidity(hdc2010));
ESP_LOGI(TAG, "max temperature:%f", hdc2010_get_max_temperature(hdc2010));
ESP_LOGI(TAG, "max humidity:%f \n", hdc2010_get_max_humidity(hdc2010));
vTaskDelay(1000 / portTICK_RATE_MS);
}
}
TEST_CASE("Sensor hdc2010 test", "[hdc2010][iot][sensor]")
{
hdc2010_init_test();
hdc2010_default_init(hdc2010);
hdc2010_get_data_test();
hdc2010_deinit_test();
}
|
cloudinary/cloudinary_sap_commerce
|
ext-cloudinary/cloudinary/cloudinarymediacore/src/uk/ptr/cloudinary/strategies/impl/DefaultCloudinaryMediaConversionStrategy.java
|
package uk.ptr.cloudinary.strategies.impl;
import de.hybris.platform.core.model.media.MediaFormatModel;
import de.hybris.platform.core.model.media.MediaModel;
import de.hybris.platform.mediaconversion.MediaConversionService;
import de.hybris.platform.mediaconversion.conversion.ConvertedMediaCreationStrategy;
import de.hybris.platform.mediaconversion.conversion.MediaConversionException;
import de.hybris.platform.mediaconversion.conversion.MediaConversionStrategy;
import de.hybris.platform.mediaconversion.imagemagick.ImageMagickMediaConversionStrategy;
import de.hybris.platform.mediaconversion.imagemagick.ImageMagickService;
import de.hybris.platform.mediaconversion.imagemagick.MimeMappingStrategy;
import de.hybris.platform.mediaconversion.model.ConversionMediaFormatModel;
import de.hybris.platform.servicelayer.media.MediaIOException;
import de.hybris.platform.servicelayer.media.MediaService;
import de.hybris.platform.servicelayer.media.NoDataAvailableException;
import de.hybris.platform.servicelayer.util.ServicesUtil;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Collection;
import java.util.Iterator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Required;
import uk.ptr.cloudinary.strategies.CloudinaryConvertedMediaCreationStrategy;
import uk.ptr.cloudinary.strategies.CloudinaryMediaConversionStrategy;
public class DefaultCloudinaryMediaConversionStrategy implements CloudinaryMediaConversionStrategy
{
private static final Logger LOG = Logger.getLogger(DefaultCloudinaryMediaConversionStrategy.class);
private static final Pattern FILEEXTENSION_PATTERN = Pattern.compile("\\.([a-z]+)(?:[?;].*)?$", 2);
private File tmpDir;
@Resource
private MimeMappingStrategy mimeMappingStrategy;
@Resource
private CloudinaryConvertedMediaCreationStrategy cloudinaryConvertedMediaCreationStrategy;
@Resource
private MediaService mediaService;
@Override
public MediaModel convert(MediaConversionService mediaConversionService, MediaModel input, MediaFormatModel format) throws MediaConversionException {
ServicesUtil.validateParameterNotNull(mediaConversionService, "MediaConversionService must not be null.");
ServicesUtil.validateParameterNotNull(input, "Input media model must not be null.");
ServicesUtil.validateParameterNotNull(format, "Conversion media format model must not be null.");
try {
String fileExt = this.targetFileExtension(format, input);
File tmpFile = File.createTempFile("tmp_", "." + fileExt, getTmpDir());
MediaModel var7;
try {
//convert(mediaConversionService, input, tmpFile, format);
var7 = create(input, format, tmpFile);
} finally {
if (!tmpFile.delete()) {
LOG.warn("Failed to delete temporary file '" + tmpFile + "'.");
}
}
return var7;
} catch (IOException var11) {
throw new MediaConversionException("Failed to run cloudinary.", var11);
}
}
public File getTmpDir() {
if (this.tmpDir == null) {
this.tmpDir = new File(System.getProperty("HYBRIS_TEMP_DIR", System.getProperty("java.io.tmpdir")), "convert");
LOG.info("Using tmp dir '" + this.tmpDir.getAbsolutePath() + "'.");
}
if (!this.tmpDir.isDirectory() && !this.tmpDir.mkdirs()) {
LOG.warn("Failed to create tmp directory '" + this.tmpDir.getAbsolutePath() + "'.");
}
return this.tmpDir;
}
private MediaModel create(MediaModel input, MediaFormatModel format, File tmpFile) {
try {
FileInputStream inputStream = new FileInputStream(tmpFile);
MediaModel var6;
try {
var6 = this.getCloudinaryConvertedMediaCreationStrategy().createOrUpdate(input, format, inputStream);
} finally {
try {
inputStream.close();
} catch (IOException var12) {
LOG.warn("Failed to close input stream on '" + tmpFile.getAbsolutePath() + "'.", var12);
}
}
return var6;
} catch (FileNotFoundException var14) {
throw new MediaIOException("The specified file '" + tmpFile + "' could not be found.", var14);
}
}
protected void convert(MediaConversionService mediaConversionService, MediaModel input, File target, ConversionMediaFormatModel format) throws IOException {
//Logic to convert formats
}
protected String targetFileExtension(MediaFormatModel format, MediaModel input) throws IOException, MediaConversionException {
String ret = this.targetFileExtension(format);
if (ret == null && input.getMime() != null) {
ret = this.getMimeMappingStrategy().fileExtensionForMimeType(input.getMime());
}
if (ret == null) {
ret = extractFileExtension(input.getURL());
}
if (ret == null) {
throw new MediaConversionException("Target file extension could neither be computed from input's mime '" + input.getMime() + "' nor url '" + input.getURL() + "'.");
} else {
return ret;
}
}
static String extractFileExtension(String url) {
if (url == null) {
return null;
} else {
Matcher matcher = FILEEXTENSION_PATTERN.matcher(url);
return matcher.find() ? matcher.group(1) : null;
}
}
private String targetFileExtension(MediaFormatModel format) throws IOException, MediaConversionException {
String mime = format.getMediaMimeType();
if (mime == null) {
return null;
} else {
String ret = this.getMimeMappingStrategy().fileExtensionForMimeType(mime);
if (ret == null) {
throw new MediaConversionException("No file extension could be found for mime type '" + mime + "'.");
} else {
return ret;
}
}
}
public File retrieveFile(MediaModel media) throws IOException
{
NoDataAvailableException cause = null;
try {
Collection<File> files = this.getMediaService().getFiles(media);
Iterator var5 = files.iterator();
while(var5.hasNext()) {
File f = (File)var5.next();
if (f.isFile() && f.canRead()) {
return f;
}
}
} catch (NoDataAvailableException var6) {
cause = var6;
}
throw new IOException("Cannot access media '" + media + "'. Data is not locally available.", cause);
}
public MimeMappingStrategy getMimeMappingStrategy()
{
return mimeMappingStrategy;
}
public CloudinaryConvertedMediaCreationStrategy getCloudinaryConvertedMediaCreationStrategy()
{
return cloudinaryConvertedMediaCreationStrategy;
}
public MediaService getMediaService()
{
return mediaService;
}
}
|
gaoht/house
|
java/classes4/org/ksoap2/serialization/MarshalDate.java
|
<reponame>gaoht/house
package org.ksoap2.serialization;
import java.io.IOException;
import java.util.Date;
import org.kobjects.isodate.IsoDate;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlSerializer;
public class MarshalDate
implements Marshal
{
public static Class DATE_CLASS = new Date().getClass();
public Object readInstance(XmlPullParser paramXmlPullParser, String paramString1, String paramString2, PropertyInfo paramPropertyInfo)
throws IOException, XmlPullParserException
{
return IsoDate.stringToDate(paramXmlPullParser.nextText(), 3);
}
public void register(SoapSerializationEnvelope paramSoapSerializationEnvelope)
{
paramSoapSerializationEnvelope.addMapping(paramSoapSerializationEnvelope.xsd, "dateTime", DATE_CLASS, this);
}
public void writeInstance(XmlSerializer paramXmlSerializer, Object paramObject)
throws IOException
{
paramXmlSerializer.text(IsoDate.dateToString((Date)paramObject, 3));
}
}
/* Location: /Users/gaoht/Downloads/zirom/classes4-dex2jar.jar!/org/ksoap2/serialization/MarshalDate.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
ISI-apex/hpsc-baremetal
|
lib/panic.h
|
<gh_stars>0
#ifndef PANIC_H
#define PANIC_H
#include <stdint.h>
#include "console.h"
/* Note: printing via "%s" to allow '%' in conditions */
#define ASSERT(cond) \
if (!(cond)) { \
printf("ASSERT: %s:%u: %s\r\n", __FILE__, __LINE__, #cond); \
panic("ASSERT"); \
}
#define PANIC(msg) do { \
printf("PANIC: %s:%u\r\n", __FILE__, __LINE__); \
panic(msg); \
} while (0);
// Define DEBUG to 1 in the source file that you want to debug
// before the #include statement for this header.
#ifndef DEBUG
#define DEBUG 0
#endif // undef DEBUG
#if DEBUG
#define DPRINTF printf
#else
#define DPRINTF(...)
#endif
void panic(const char *msg);
void dump_buf(const char *name, uint32_t *buf, unsigned words);
#endif // PANIC_H
|
cs8minty/Roots
|
src/main/java/epicsquid/roots/block/runes/BlockWildwoodRune.java
|
<reponame>cs8minty/Roots
package epicsquid.roots.block.runes;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import epicsquid.mysticallib.block.BlockTEBase;
import epicsquid.roots.init.ModBlocks;
import epicsquid.roots.tileentity.TileEntityWildrootRune;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.item.Item;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import java.util.Random;
public class BlockWildwoodRune extends BlockTEBase {
public BlockWildwoodRune(@Nonnull Material mat, @Nonnull SoundType type, float hardness, @Nonnull String name, @Nonnull Class<? extends TileEntity> teClass) {
super(mat, type, hardness, name, teClass);
}
@Override
@Nullable
public TileEntity createNewTileEntity(@Nonnull World worldIn, int meta) {
return new TileEntityWildrootRune();
}
@Override
public Item getItemDropped(IBlockState state, Random rand, int fortune) {
return Item.getItemFromBlock(ModBlocks.wildwood_log);
}
}
|
Czarek93/fastjson
|
src/test/java/com/alibaba/json/bvt/parser/deser/BooleanFieldDeserializerTest.java
|
<reponame>Czarek93/fastjson<filename>src/test/java/com/alibaba/json/bvt/parser/deser/BooleanFieldDeserializerTest.java
package com.alibaba.json.bvt.parser.deser;
import org.junit.Assert;
import junit.framework.TestCase;
import com.alibaba.fastjson.JSON;
public class BooleanFieldDeserializerTest extends TestCase {
public void test_0() throws Exception {
Entity a = JSON.parseObject("{f1:null, f2:null}", Entity.class);
Assert.assertEquals(true, a.isF1());
Assert.assertEquals(null, a.getF2());
}
public static class Entity {
private boolean f1 = true;
private Boolean f2 = Boolean.TRUE;
public boolean isF1() {
return f1;
}
public void setF1(boolean f1) {
this.f1 = f1;
}
public Boolean getF2() {
return f2;
}
public void setF2(Boolean f2) {
this.f2 = f2;
}
}
}
|
venkateshprasad123/wb
|
Java_GUI/src/com/ibm/safr/we/ui/views/metadatatable/MainTableContentProvider.java
|
package com.ibm.safr.we.ui.views.metadatatable;
/*
* Copyright Contributors to the GenevaERS Project. SPDX-License-Identifier: Apache-2.0 (c) Copyright IBM Corporation 2008.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.util.ArrayList;
import java.util.List;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
import com.ibm.safr.we.constants.SortType;
import com.ibm.safr.we.data.DAOException;
import com.ibm.safr.we.model.query.SAFRQuery;
import com.ibm.safr.we.model.query.SAFRQueryBean;
import com.ibm.safr.we.ui.utilities.UIUtilities;
import com.ibm.safr.we.ui.views.navigatortree.MainTreeItem;
import com.ibm.safr.we.ui.views.navigatortree.MainTreeItem.TreeItemId;
public class MainTableContentProvider implements IStructuredContentProvider {
private List<SAFRQueryBean> componentList = new ArrayList<SAFRQueryBean>();
private MainTreeItem prevTreeItem;
private boolean forceRefresh;
public Object[] getElements(Object inputElement) {
try {
MainTreeItem currId = (MainTreeItem) inputElement;
TreeItemId inputElementID = ((MainTreeItem) inputElement).getId();
if (!currId.equals(prevTreeItem) || forceRefresh) {
prevTreeItem = currId;
if (inputElementID.equals(TreeItemId.VIEWFOLDERCHILD)) {
// SAFRQuery will return a list of all views.
componentList.clear();
componentList.addAll(SAFRQuery.queryAllViewsConv(
UIUtilities.getCurrentEnvironmentID(),
((MainTreeItem) inputElement).getMetadataId(),
SortType.SORT_BY_NAME));
} else if ((inputElementID).equals(TreeItemId.ENV)) {
// SAFRQuery will return a list of all environments.
componentList.clear();
componentList.addAll(SAFRQuery.queryEnvironmentsForLoggedInUser(
SortType.SORT_BY_NAME, false));
} else if ((inputElementID).equals(TreeItemId.CONTROL)) {
// SAFRQuery will return a list of all control records.
componentList.clear();
componentList.addAll(SAFRQuery.queryAllControlRecords(
UIUtilities.getCurrentEnvironmentID(),
SortType.SORT_BY_NAME));
} else if ((inputElementID).equals(TreeItemId.PHYSICALFILE)) {
// SAFRQuery will return a list of all physical files.
componentList.clear();
componentList.addAll(SAFRQuery.queryAllPhysicalFiles(
UIUtilities.getCurrentEnvironmentID(),
SortType.SORT_BY_NAME));
} else if ((inputElementID).equals(TreeItemId.GROUP)) {
// SAFRQuery will return a list of all Groups.
componentList.clear();
componentList.addAll(SAFRQuery
.queryAllGroups(SortType.SORT_BY_NAME));
} else if ((inputElementID).equals(TreeItemId.VIEWFOLDER)) {
// SAFRQuery will return a list of all View Folders.
componentList.clear();
componentList.addAll(SAFRQuery.queryAllViewFolders(
UIUtilities.getCurrentEnvironmentID(),
SortType.SORT_BY_NAME));
} else if ((inputElementID).equals(TreeItemId.USER)) {
// SAFRQuery will return a list of all users
componentList.clear();
componentList.addAll(SAFRQuery.queryAllUsers());
} else if ((inputElementID).equals(TreeItemId.USEREXITROUTINE)) {
// SAFRQuery will return a list of all USEREXITROUTINE.
componentList.clear();
componentList.addAll(SAFRQuery.queryAllUserExitRoutines(
UIUtilities.getCurrentEnvironmentID(),
SortType.SORT_BY_NAME));
} else if ((inputElementID).equals(TreeItemId.LOGICALRECORD)) {
// SAFRQuery will return a list of all LOGICALRECORD.
componentList.clear();
componentList.addAll(SAFRQuery.queryAllLogicalRecords(
UIUtilities.getCurrentEnvironmentID(),
SortType.SORT_BY_NAME));
} else if ((inputElementID).equals(TreeItemId.LOOKUP)) {
// SAFRQuery will return a list of all LOOKUP.
componentList.clear();
componentList.addAll(SAFRQuery.queryAllLookups(UIUtilities
.getCurrentEnvironmentID(), SortType.SORT_BY_NAME));
} else if ((inputElementID).equals(TreeItemId.LOGICALFILE)) {
// SAFRQuery will return a list of all LOGICALFILE.
componentList.clear();
componentList.addAll(SAFRQuery.queryAllLogicalFiles(
UIUtilities.getCurrentEnvironmentID(),
SortType.SORT_BY_NAME));
} else {
componentList.clear();
return new String[0];
}
}
return componentList.toArray();
} catch (DAOException e) {
UIUtilities
.handleWEExceptions(
e,
"Unexpected database error occurred while getting elements for Metadata table.",
UIUtilities.titleStringDbException);
}
return new String[0];
}
public void dispose() {
}
public void setForceRefresh(boolean forceRefresh) {
this.forceRefresh = forceRefresh;
}
public void resetPreviousItem() {
prevTreeItem = null;
}
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
}
|
elegantJava/iptv_sas
|
src/main/java/com/hgys/iptv/model/bean/OrderProductDimensionListDTO.java
|
<filename>src/main/java/com/hgys/iptv/model/bean/OrderProductDimensionListDTO.java
package com.hgys.iptv.model.bean;
import com.xuxueli.poi.excel.annotation.ExcelField;
import com.xuxueli.poi.excel.annotation.ExcelSheet;
import lombok.Data;
import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import java.math.BigDecimal;
@ExcelSheet(name = "产品级多维度结算", headColor = HSSFColor.HSSFColorPredefined.LIGHT_GREEN)
public class OrderProductDimensionListDTO {
/**
* CP编码
*/
@ExcelField(name = "CP编码",align = HorizontalAlignment.CENTER)
private String cpcode;
/**
* CP名称
*/
@ExcelField(name = "CP名称",align = HorizontalAlignment.CENTER)
private String cpname;
/** 产品名称 */
@ExcelField(name = "产品名称",align = HorizontalAlignment.CENTER)
private String pname;
/** 产品编码 */
@ExcelField(name = "产品编码",align = HorizontalAlignment.CENTER)
private String pcode;
/**
* 维度A编码
*/
@ExcelField(name = "维度A编码",align = HorizontalAlignment.CENTER)
private String dimensionACode;
/**
* 维度A数量
*/
@ExcelField(name = "维度A数量",align = HorizontalAlignment.CENTER)
private String numberA;
/**
* 维度B编码
*/
@ExcelField(name = "维度B编码",align = HorizontalAlignment.CENTER)
private String dimensionBCode;
/**
* 维度B数量
*/
@ExcelField(name = "维度B数量",align = HorizontalAlignment.CENTER)
private String numberB;
/**
* 维度C编码
*/
@ExcelField(name = "维度C编码",align = HorizontalAlignment.CENTER)
private String dimensionCCode;
/**
* 维度C数量
*/
@ExcelField(name = "维度C数量",align = HorizontalAlignment.CENTER)
private String numberC;
/**
* 产品结算金额
*/
@ExcelField(name = "结算金额(单位:元)",align = HorizontalAlignment.CENTER)
private String money;
public String getCpcode() {
return cpcode;
}
public void setCpcode(String cpcode) {
this.cpcode = cpcode;
}
public String getCpname() {
return cpname;
}
public void setCpname(String cpname) {
this.cpname = cpname;
}
public String getPname() {
return pname;
}
public void setPname(String pname) {
this.pname = pname;
}
public String getPcode() {
return pcode;
}
public void setPcode(String pcode) {
this.pcode = pcode;
}
public String getDimensionACode() {
return dimensionACode;
}
public void setDimensionACode(String dimensionACode) {
this.dimensionACode = dimensionACode;
}
public String getDimensionBCode() {
return dimensionBCode;
}
public void setDimensionBCode(String dimensionBCode) {
this.dimensionBCode = dimensionBCode;
}
public String getDimensionCCode() {
return dimensionCCode;
}
public void setDimensionCCode(String dimensionCCode) {
this.dimensionCCode = dimensionCCode;
}
public String getMoney() {
return money;
}
public void setMoney(String money) {
this.money = money;
}
public String getNumberA() {
return numberA;
}
public void setNumberA(String numberA) {
this.numberA = numberA;
}
public String getNumberB() {
return numberB;
}
public void setNumberB(String numberB) {
this.numberB = numberB;
}
public String getNumberC() {
return numberC;
}
public void setNumberC(String numberC) {
this.numberC = numberC;
}
}
|
live-wire/plynx
|
ui/src/components/3rd_party/react-alert/dev/components/AlertMessage.js
|
<filename>ui/src/components/3rd_party/react-alert/dev/components/AlertMessage.js
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import classnames from 'classnames';
class AlertMessage extends React.Component {
constructor(props) {
super(props);
this.state = {
closeButtonStyle: {}
};
}
/**
* Handle the close button click
* @return {void}
*/
_handleCloseClick() {
this._removeSelf();
}
/**
* Include the given icon or use the default one
* @return {React.Component}
*/
_showIcon() {
let icon = '';
if (this.props.icon) {
icon = this.props.icon;
} else {
icon = <div className={this.props.type + '-icon'} />;
}
return icon;
}
/**
* Remove the alert after the given time
* @return {void}
*/
_countdown() {
setTimeout(() => {
this._removeSelf();
}, this.props.time);
}
/**
* Emit a event to AlertContainer remove this alert from page
* @return {void}
*/
_removeSelf() {
global.reactAlertEvents.emit('ALERT.REMOVE', this);
}
componentDidMount() {
this.domNode = ReactDOM.findDOMNode(this);
this.setState({
closeButtonStyle: {
height: this.domNode.offsetHeight + 'px',
lineHeight: this.domNode.offsetHeight + 'px',
backgroundColor: this.props.style.closeButton.bg
}
});
if (this.props.time > 0) {
this._countdown();
}
}
render() {
return (
<div style={this.props.style.alert} className={classnames('alert', this.props.type)}>
<div className="content icon">
{this._showIcon.bind(this)()}
</div>
<div className="content message">
{this.props.message}
</div>
<div onClick={this._handleCloseClick.bind(this)} style={this.state.closeButtonStyle} className="content close">
<div className={this.props.closeIconClass} />
</div>
</div>
);
}
}
AlertMessage.defaultProps = {
icon: '',
message: '',
type: 'info'
};
AlertMessage.propTypes = {
type: PropTypes.oneOf(['info', 'success', 'error'])
};
export default AlertMessage;
|
nikolay-radkov/ebudgie-server
|
src/bot/messengerProfile.js
|
export const setGreetingText = async (bot) => {
try {
const data = await bot.setGreetingText('Welcome to EBudgie\'s assistant');
console.log(`Setting GreetingText result ${JSON.stringify(data)}`);
} catch (e) {
console.log('Error during setGreetingText', e);
}
};
export const setPersistentMenu = async (bot) => {
try {
const data = await bot.setPersistentMenu([{
title: 'Account',
type: 'nested',
call_to_actions: [{
title: 'Expenses',
type: 'postback',
payload: 'SHOW_EXPENSES_MENU'
},
{
title: 'Incomes',
type: 'postback',
payload: 'SHOW_INCOMES_MENU'
},
{
title: 'Threshold',
type: 'postback',
payload: 'SHOW_THRESHOLD_MENU'
}, {
title: 'Salary',
type: 'postback',
payload: 'SHOW_SALARY'
}]
}, {
type: 'web_url',
title: 'Visit Website',
url: 'https://ebudgie.herokuapp.com/',
webview_height_ratio: 'full'
}]);
console.log(`Setting setPersistentMenu result ${JSON.stringify(data)}`);
} catch (e) {
console.log('Error during setPersistentMenu', e);
}
};
export const setGetStartedButton = async (bot) => {
try {
const data = await bot.setGetStartedButton('SHOW_WELCOME');
console.log(`Setting GetStartedButton result ${JSON.stringify(data)}`);
} catch (e) {
console.log('Error during setGetStartedButton', e);
}
};
export const initialize = async (bot) => {
await setGreetingText(bot);
await setGetStartedButton(bot);
await setPersistentMenu(bot);
};
export default initialize;
|
taoyuc3/CS225
|
mp_intro/cs225/HSLAPixel.cpp
|
/**
* @file HSLAPixel.cpp
* Implementation of the HSLAPixel class for use in with the PNG library.
*
* @author CS 225: Data Structures
* @version 2018r1-lab1
*/
#include "HSLAPixel.h"
#include <cmath>
#include <iostream>
using namespace std;
namespace cs225 {
HSLAPixel::HSLAPixel()
{
h=0.0;
s=0.0;
l=1.0;
a=1.0;
}
HSLAPixel::HSLAPixel(double hue, double saturation,
double luminance){
h=hue;
s=saturation;
l=luminance;
a=1.0;
}
HSLAPixel::HSLAPixel(double hue,
double saturation,
double luminance,
double alpha){
a=alpha;
h=hue;
s=saturation;
l=luminance;
}
}
|
biscuide/x-definition-e
|
src/main/java/org/xdef/impl/parsers/XSAbstractParser.java
|
package org.xdef.impl.parsers;
import org.xdef.msg.XDEF;
import org.xdef.sys.ArrayReporter;
import org.xdef.sys.SException;
import org.xdef.sys.SRuntimeException;
import org.xdef.sys.SThrowable;
import org.xdef.XDParseResult;
import org.xdef.XDParser;
import org.xdef.XDParserAbstract;
import org.xdef.XDValue;
import org.xdef.proc.XXNode;
import org.xdef.impl.code.DefContainer;
import org.xdef.impl.code.DefLong;
import org.xdef.impl.code.DefParseResult;
import org.xdef.impl.code.DefRegex;
import org.xdef.impl.code.DefString;
import org.xdef.XDContainer;
/** Abstract class as the base for all test value parsers.
* @author <NAME> <<EMAIL>>
*/
public abstract class XSAbstractParser extends XDParserAbstract
implements XDParser, XDValue {
/** WhiteSpace handling mode. Capital letter means fixed value.
* <ul>
* <li>'p' (preserve)<p> No normalization is done, the value is not
* changed (this is the behavior required by [XML 1.0 (Second Edition)]
* for element content)</p></li>
* <li>'r' (replace)<p>All occurrences of #x9 (tab), #xA (line feed) and
* #xD (carriage return) are replaced with #x20 (space)</p></li>
* <li>'c' (collapse)<p> After the processing implied by replace, contiguous
* sequences of #x20's are collapsed to a single #x20, and leading and
* trailing #x20's are removed.</p></li>
* </ul>
*/
protected byte _whiteSpace; //r replace, c collapse, 0 preserve
protected XDParser _base;
protected DefRegex[] _patterns;
protected XSAbstractParser() {}
void setBase(XDParser item) {
_base = item;
}
public abstract void initParams();
/** Convert the argument to the relevant object.
* @param x input object (may be string).
* @param xnode actual XXNode object.
* @return relevant object.
*/
public XDValue iObject(final XXNode xnode, final Object x) {
if (x == null) {
//Value of &{0} can't be null
throw new SRuntimeException(XDEF.XDEF819, parserName());
}
if (x instanceof XDValue) {
XDValue y = (XDValue) x;
if (y.isNull()) {
//Value of &{0} can't be null
throw new SRuntimeException(XDEF.XDEF819, parserName());
}
if (y.getItemId() == parsedType()) {
return y;
}
}
XDParseResult p = new DefParseResult(x.toString());
parseObject(xnode, p);
if (_whiteSpace == 'c') {
p.isSpaces();
}
if (!p.eos()) {
//After the item '&{0}' follows an illegal character
p.error(XDEF.XDEF804, parserName());
}
if (p.matches()) {
return p.getParsedValue();
}
ArrayReporter reporter = p.getReporter();
throw new SRuntimeException(reporter.getLastErrorReport());
}
@Override
/** Create parseResult object from StringParser.
* @param p String parser with source.
* @param xnode actual XXNode object.
*/
public void check(final XXNode xnode, final XDParseResult p) {
if (p.getSourceBuffer() == null) {
p.error(XDEF.XDEF805); //Parsed value is null
return;
}
parseObject(xnode, p);
if (p.matches()) {
if (_whiteSpace == 'c') {
p.isSpaces();
}
if (!p.eos()) {
//After the item '&{0}' follows an illegal character
p.error(XDEF.XDEF804, parserName());
}
finalCheck(xnode, p);
}
}
@Override
/** Get value of whiteSpace parameter.
* @return 0 .. preserve, 'r' .. replace, 'c' .. collapse
*/
public byte getWhiteSpaceParam() {return _whiteSpace;}
public void setMinExclusive(XDValue x) {} //default: not specified
public void setMaxExclusive(XDValue x) {} //default: not specified
public void setMinInclusive(XDValue x) {} //default: not specified
public void setMaxInclusive(XDValue x) {} //default: not specified
public void setTotalDigits(long x) {} //default: not specified
public void setFractionDigits(long x) {
if (x != 0) {
//Parameter '&{0}' can be only '&{1}' for '&{2}'
throw new SRuntimeException(XDEF.XDEF812,
"fractionDigits", "0", parserName());
}
} //default: not specified
public void setLength(long x) {} //default: not specified
public void setMinLength(long x) {} //default: not specified
public void setMaxLength(long x) {} //default: not specified
public void setWhiteSpace(String s) {
byte old = _whiteSpace;
if ("collapse".equals(s)) {
_whiteSpace = 'c';
} else if ("replace".equals(s)) {
_whiteSpace = 'r';
} else if ("preserve".equals(s)) {
_whiteSpace = 0;
} else {
//Parameter '&{0}' can be only '&{1}' for '&{2}'
throw new SRuntimeException(XDEF.XDEF812,
"whiteSpace","collapse, replace, preserve", parserName());
}
if (old == 'c' && _whiteSpace != 'c' ||
old == 'p' && _whiteSpace == 0) {
//Parameter '&{0}' can be only '&{1}' for '&{2}'
throw new SRuntimeException(XDEF.XDEF812, "whiteSpace&",
(old == 'c' ? "collapse" : "collapse, replace"),
parserName());
}
}
public void setItem(XDValue item) {} //default: not specified
abstract public byte getDefaultWhiteSpace();
private int getKeyId(String name) {
int keyMask = getLegalKeys();
for (int i = 0, id = 1; i < PARAM_NAMES.length; i++, id += id) {
if (PARAM_NAMES[i].equals(name)) {
return ((id & keyMask) != 0) ? id : -1;
}
}
return -1;
}
private XDValue getParam(XDValue[] params, int id) {
for (int i = 0, x = 1; i < PARAM_NAMES.length; i++,x += x) {
if (x == id) {
String name = PARAM_NAMES[i];
for (int j = 0; j < params.length; j+=2) {
if (name.equals(params[j].toString())) {
return params[j+1];
}
}
break;
}
}
return null;
}
private void setNamedParams(final XXNode xnode, final XDValue[] params)
throws SException {
initParams();
int len;
if (params == null || (len = params.length*2) == 0) {
return;
}
if ((len & 1) != 0) {
//Number of parameters must be multile of 2
throw new SException(XDEF.XDEF571);
}
int ids = 0;
for (int i = 0; i < params.length; i+=2) {
String key = params[i].toString();
int id = getKeyId(key);
if (id < 0) {
//Illegal parameter name '&{0}'
throw new SException(XDEF.XDEF801, key);
}
if ((ids & id) != 0) {
//Parameter '&{0}' respecified
throw new SException(XDEF.XDEF802, key);
}
ids += id;
}
XDValue item;
if ((item = getParam(params, ITEM)) != null) {
setItem(item);
}
if ((item = getParam(params, SEPARATOR)) != null) {
setSeparator(item.toString());
}
if ((item = getParam(params, FORMAT)) != null) {
setFormat(item.toString());
}
if ((item = getParam(params, OUTFORMAT)) != null) {
setOutFormat(item.toString());
}
if ((item = getParam(params, ARGUMENT)) != null) {
setArgument(item);
}
XDValue minIncl = getParam(params, MININCLUSIVE);
XDValue minExcl = getParam(params, MINEXCLUSIVE);
XDValue maxIncl = getParam(params, MAXINCLUSIVE);
XDValue maxExcl = getParam(params, MAXEXCLUSIVE);
try {
if (maxIncl != null) {
if (maxExcl != null) {
//Both parameters can't be specified: '&{0}', '&{1}
throw new SException(XDEF.XDEF807,
"maxInclusive","maxExcelusive");
}
setMaxInclusive(maxIncl);
} else if (maxExcl != null) {
setMaxExclusive(maxExcl);
}
if (minIncl != null) {
if (minExcl != null) {
//Both parameters can't be specified: '&{0}', '&{1}'
throw new SException(XDEF.XDEF807,
"&{p1}minEnclusive", "minExcelusive");
}
setMinInclusive(minIncl);
XDValue minIn = getMinInclusive();
XDValue maxEx = getMaxExclusive();
XDValue maxIn = getMaxInclusive();
if (maxIn != null && maxIn.compareTo(minIn) < 0 ||
maxEx != null && maxEx.compareTo(minIn) <= 0) {
//Incorrect combination of maximum and minimum
throw new SException(XDEF.XDEF808);
}
} else if (minExcl !=null){
setMinExclusive(minExcl);
XDValue maxEx = getMaxExclusive();
XDValue maxIn = getMaxInclusive();
XDValue minEx = getMinExclusive();
if (maxIn != null && maxIn.compareTo(minEx) < 0 ||
maxEx != null && maxEx.compareTo(minEx) <= 0) {
//Incorrect combination of maximum and minimum
throw new SException(XDEF.XDEF808);
}
}
} catch (RuntimeException ex) {
if (ex instanceof SThrowable) {
throw new SException(((SThrowable) ex).getReport());
}
//Incorrect combination of maximum and minimum
throw new SException(XDEF.XDEF808);
}
if ((item = getParam(params, TOTALDIGITS)) != null && !item.isNull()) {
setTotalDigits(Long.parseLong(item.toString()));
}
if ((item = getParam(params, FRACTIONDIGITS)) != null &&!item.isNull()){
setFractionDigits(Long.parseLong(item.toString()));
}
if ((item = getParam(params, LENGTH)) != null && !item.isNull()) {
setLength(Long.parseLong(item.toString()));
}
if ((item = getParam(params, MINLENGTH)) != null && !item.isNull()) {
long i = Long.parseLong(item.toString());
if (getLength() > 0 || i < 0) {
//Incorrect combination of maximum and minimum
throw new SException(XDEF.XDEF808);
}
setMinLength(i);
}
if ((item = getParam(params, MAXLENGTH)) != null && !item.isNull()) {
long i = Long.parseLong(item.toString());
if (getLength() > 0 || getMinLength() > i || i < 0) {
//Incorrect combination of maximum and minimum
throw new SException(XDEF.XDEF808);
}
setMaxLength(i);
}
if ((item = getParam(params, PATTERN)) != null && !item.isNull()) {
if (item.getItemId() == XD_CONTAINER) {
setPatterns(((DefContainer) item).getXDItems());
} else {
setPatterns(new XDValue[]{item});
}
}
if ((item = getParam(params, ENUMERATION)) != null && !item.isNull()) {
if (item.getItemId() == XD_CONTAINER) {
setEnumeration(((DefContainer) item).getXDItems());
} else {
setEnumeration(new XDValue[]{item});
}
}
if ((item = getParam(params, BASE)) != null && !item.isNull()) {
setBase((XDParser) item);
}
if ((item = getParam(params, WHITESPACE)) != null && !item.isNull()) {
setWhiteSpace(item.toString());
}
}
@Override
public void setNamedParams(final XXNode xnode, final XDContainer params)
throws SException {
int len = params == null ? 0 : params.getXDNamedItemsNumber();
if (len == 0) {
return;
}
XDValue[] x = new XDValue[len*2];
for (int i = 0; i < len; i++) {
String name = params.getXDNamedItemName(i);
x[i*2] = new DefString(name);
x[i*2 + 1] = params.getXDNamedItemValue(name);
}
setNamedParams(xnode, x);
}
public void setEnumeration(Object[] o) {}
public final void setPatterns(final Object[] pats) {
if (pats == null || pats.length == 0) {
_patterns = null;
} else {
_patterns = new DefRegex[pats.length];
for (int i = 0; i < pats.length; i++) {
_patterns[i] = new DefRegex(pats[i].toString());
}
}
}
public void checkPatterns(XDParseResult result) {
if (_patterns != null && result.matches()) {
for (int i = 0; i < _patterns.length; i++) {
if (_patterns[i].matches(result.getSourceBuffer())) {
return;
}
}
//Doesn't fit any pattern from list for '&{0}'
result.error(XDEF.XDEF811, parserName());
}
}
@Override
public final XDContainer getNamedParams() {
XDContainer map = new DefContainer();
addNamedParams(map);
long i;
if ((i = getTotalDigits()) >= 0) {
map.setXDNamedItem("totalDigits", new DefLong(i));
}
if ((i = getFractionDigits()) >= 0) {
map.setXDNamedItem("fractionDigits", new DefLong(i));
}
long min = getMinLength();
long max = getMaxLength();
if (min == max && min > 0) {
map.setXDNamedItem("length", new DefLong(min));
} else {
if ((i = getMinLength()) >= 0) {
map.setXDNamedItem("minLength", new DefLong(i));
}
if ((i = getMaxLength()) >= 0) {
map.setXDNamedItem("maxLength", new DefLong(i));
}
}
XDValue x;
if ((x = getMinExclusive()) != null) {
map.setXDNamedItem("minExclusive", x);
}
if ((x = getMaxExclusive()) != null) {
map.setXDNamedItem("maxExclusive", x);
}
if ((x = getMinInclusive()) != null) {
map.setXDNamedItem("minInclusive", x);
}
if ((x = getMaxInclusive()) != null) {
map.setXDNamedItem("maxInclusive", x);
}
if (getDefaultWhiteSpace() != getWhiteSpace()) {
switch (getWhiteSpace()) {
case 'c':
map.setXDNamedItem("whiteSpace", new DefString("collapse"));
break;
case 'r':
map.setXDNamedItem("whiteSpace", new DefString("replace"));
break;
case 0:
map.setXDNamedItem("whiteSpace", new DefString("preserve"));
break;
}
}
XDValue[] en = getEnumeration();
if (en != null && en.length > 0) {
map.setXDNamedItem("enumeration", new DefContainer(en));
}
DefRegex[] p = getPatterns();
if (p != null && p.length > 0) {
XDValue[] q = new XDValue[p.length];
for (int j = 0; j < p.length; j++) {
q[j] = new DefString((p[j]).sourceValue());
}
map.setXDNamedItem("pattern", new DefContainer(q));
}
return map;
}
public void addNamedParams(XDContainer map) {}
public long getTotalDigits() { return -1; }//default 0
public long getFractionDigits() { return -1; } //default 0
public XDValue getMinExclusive() { return null; }; //default null
public XDValue getMaxExclusive() { return null; }; //default null
public XDValue getMinInclusive() { return null; }; //default null
public XDValue getMaxInclusive() { return null; }; //default null
public long getLength() { return -1; }
public long getMinLength() { return -1; }
public long getMaxLength() { return -1; }
public byte getWhiteSpace() { return _whiteSpace; }
public XDValue[] getEnumeration() {return null;} //default null
public void checkEnumeration(XDParseResult p) {
if (p.matches()) {
XDValue[] enumeration = getEnumeration();
if (enumeration != null) {
XDValue val = p.getParsedValue();
for (int i = 0; i < enumeration.length; i++) {
if (enumeration[i].equals(val)) {
return;
}
}
//Doesn't fit enumeration list of '&{0}'
p.error(XDEF.XDEF810, parserName());
}
}
}
public final DefRegex[] getPatterns() {return _patterns;}
@Override
/** Get result type ID of parsing.
* @return result type ID of parsing.
*/
public abstract short parsedType();
public boolean addTypeParser(XDParser x) { return true; }
public void setSeparator(String x) {}
public String getSeparator() { return null; }
public void setFormat(String x) {}
public String getFormat() { return null; }
public void setOutFormat(String x) {}
public String getOutFormat() { return null; }
public void setArgument(XDValue x) {}
public XDValue getArgument() { return null; }
protected int getIdIndex(int id, int[] legalIds) {
for (int i = 0; i < legalIds.length; i++) {
if (id == legalIds[i]) {
return i;
}
}
return -1;
}
@Override
public String toString() {return parserName();}
@Override
/** Clone the item.
* @return the object with the copy of this one.
*/
public XDValue cloneItem() {return this;}
@Override
/** Set code of operation (ignored here).
* @param code the new code of operation.
*/
public void setCode(final short code) {}
@Override
/** Set result type of operation (ignored here).
* @param resultType id of result type.
*/
public void setItemType(final short resultType) {}
@Override
/** Get parameter of operation (returns 0 here).
* @return parameter.
*/
public final int getParam() {return 0;}
@Override
/** Set parameter of operation (ignored here).
* @param param value of operation parameter.
*/
public void setParam(final int param) {}
@Override
/** Get name of value.
* @return The name.
*/
public abstract String parserName();
@Override
public boolean equals(final XDValue o) {
if (!(o instanceof XSAbstractParser)) {
return false;
}
XSAbstractParser x = (XSAbstractParser) o;
if (!parserName().equals(x.parserName())) {
return false;
}
if (_base == null) {
if (x._base != null) {
return false;
}
} else {
if (!_base.equals(x._base)) {
return false;
}
}
if (_whiteSpace != x._whiteSpace) {
return false;
}
if (_patterns == null) {
if (x._patterns != null) {
return false;
}
} else {
if (x._patterns == null) {
return false;
}
if (_patterns.length != x._patterns.length) {
return false;
}
for (int i = 0; i < _patterns.length; i++) {
if (!_patterns[i].equals(x._patterns[i])) {
return false;
}
}
}
XDValue[] e1 = getEnumeration();
XDValue[] e2 = x.getEnumeration();
if (e1 == null) {
if (e2 != null) {
return false;
}
} else {
if (e2 == null) {
return false;
}
if (e1.length != e2.length) {
return false;
}
for (int i = 0; i < e1.length; i++) {
if (!e1[i].equals(e2[i])) {
return false;
}
}
}
if (getTotalDigits() != x.getTotalDigits()) {
return false;
}
if (getFractionDigits() != x.getFractionDigits()) {
return false;
}
if (getMinLength()!=x.getMinLength()||getMaxLength()!=getMaxLength()) {
return false;
}
if (getMinInclusive() == null) {
if (x.getMinInclusive() != null) {
return false;
}
} else if (!getMinInclusive().equals(x.getMinInclusive())) {
return false;
}
if (getMaxInclusive() == null) {
if (x.getMaxInclusive() != null) {
return false;
}
} else if (!getMaxInclusive().equals(x.getMaxInclusive())) {
return false;
}
if (getMinExclusive() == null) {
if (x.getMinExclusive() != null) {
return false;
}
} else if (!getMinExclusive().equals(x.getMinExclusive())) {
return false;
}
if (getMaxExclusive() == null) {
if (x.getMaxExclusive() != null) {
return false;
}
} else if (!getMaxExclusive().equals(x.getMaxExclusive())) {
return false;
}
String s1, s2;
s1 = getSeparator();
s2 = x.getSeparator();
if (s1 == null) {
if (s2 != null) {
return false;
}
} else if (!s1.equals(s2)) {
return false;
}
s1 = getFormat();
s2 = x.getFormat();
if (s1 == null) {
if (s2 != null) {
return false;
}
} else if (!s1.equals(s2)) {
return false;
}
s1 = getOutFormat();
s2 = x.getOutFormat();
if (s1 == null) {
if (s2 != null) {
return false;
}
} else if (!s1.equals(s2)) {
return false;
}
XDValue a1 = getArgument();
XDValue a2 = x.getArgument();
if (a1 == null) {
if (a2 != null) {
return false;
}
} else if (!a1.equals(a2)) {
return false;
}
return true;
}
@Override
abstract public int getLegalKeys();
}
|
lynnchurch/MVPDemo
|
app/src/main/java/me/lynnchurch/mvpdemo/mvp/model/UserModel.java
|
<reponame>lynnchurch/MVPDemo
package me.lynnchurch.mvpdemo.mvp.model;
import java.util.List;
import javax.inject.Inject;
import io.rx_cache.DynamicKey;
import io.rx_cache.EvictDynamicKey;
import io.rx_cache.Reply;
import me.lynnchurch.base.di.scope.ActivityScope;
import me.lynnchurch.mvpdemo.mvp.contract.UserContract;
import me.lynnchurch.mvpdemo.mvp.model.api.cache.CacheManager;
import me.lynnchurch.mvpdemo.mvp.model.api.service.ServiceManager;
import me.lynnchurch.mvpdemo.mvp.model.bean.User;
import rx.Observable;
import rx.functions.Func1;
@ActivityScope
public class UserModel extends UserContract.Model {
public static final int USERS_PER_PAGE = 10;
@Inject
public UserModel(ServiceManager serviceManager, CacheManager cacheManager) {
super(serviceManager, cacheManager);
}
@Override
public Observable<List<User>> getUsers(int lastIdQueried, boolean update) {
Observable<List<User>> users = mServiceManager.getUserService()
.getUsers(lastIdQueried, USERS_PER_PAGE);
return mCacheManager.getUserCache()
.getUsers(users
, new DynamicKey(lastIdQueried)
, new EvictDynamicKey(update))
.flatMap(new Func1<Reply<List<User>>, Observable<List<User>>>() {
@Override
public Observable<List<User>> call(Reply<List<User>> listReply) {
return Observable.just(listReply.getData());
}
});
}
}
|
pombreda/pydee
|
pydeelib/widgets/externalshell/sitecustomize.py
|
# -*- coding: utf-8 -*-
# Pydee's ExternalPythonShell sitecustomize
# Set standard outputs encoding:
# (otherwise, for example, print u"é" will fail)
import sys, os
import os.path as osp
encoding = None
try:
import locale
except ImportError:
pass
else:
loc = locale.getdefaultlocale()
if loc[1]:
encoding = loc[1]
if encoding is None:
encoding = "UTF-8"
sys.setdefaultencoding(encoding)
import pydeelib.widgets.externalshell as extsh
scpath = osp.dirname(osp.abspath(extsh.__file__))
sys.path.remove(scpath)
try:
import sitecustomize #@UnusedImport
except ImportError:
pass
# Communication between ExternalShell and the QProcess
from pydeelib.widgets.externalshell.monitor import Monitor
monitor = Monitor("127.0.0.1", int(os.environ['PYDEE_PORT']),
os.environ['SHELL_ID'])
monitor.start()
# Quite limited feature: notify only when a result is displayed in console
# (does not notify at every prompt)
def displayhook(obj):
sys.__displayhook__(obj)
monitor.refresh()
sys.displayhook = displayhook
from PyQt4.QtCore import pyqtRemoveInputHook
pyqtRemoveInputHook()
|
zcemycl/algoTest
|
py/tests/testTreeNode/test_TreeNode.py
|
from solns.treeNode.treeNode import *
import unittest
from parameterized import parameterized as p
class UnitTest_TreeNode(unittest.TestCase):
@p.expand([
[[1,2,3,4,5]],[[5,4,8,11,None,13,4,7,2,None,None,None,1]]
])
def test_fromList2(self,nums):
t = TreeNode.treeNode_fromList2(nums)
ts = TreeNode.treeNode2List(t)
self.assertEqual(ts,nums)
|
shijiansu/core-java
|
java-6-by-tarena/src/main/java/tarena/day17_swing/TestJOptionPane.java
|
<reponame>shijiansu/core-java
package tarena.day17_swing;
import javax.swing.JOptionPane;
public class TestJOptionPane {
public static void main(String[] args) {
int result = JOptionPane.showConfirmDialog(null, "你确定吗?");
if(result==JOptionPane.YES_OPTION){
JOptionPane.showMessageDialog(null, "用户选择了YES");
}else if(result==JOptionPane.NO_OPTION){
System.out.println("用户选择了NO");
String userInput = JOptionPane.showInputDialog("请输入一个值:");
JOptionPane.showMessageDialog(null, "用户输入的值是:"+userInput);
}else{
System.out.println("用户取消了选择");
}
}
}
|
appheap/social-media-analyzer
|
backend/pyrogram/types/messages_and_media/message_entity.py
|
# Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Pyrogram is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
from enum import Enum, auto
from typing import Optional
import pyrogram
from pyrogram import raw
from pyrogram import types
from ..object import Object
class AutoName(Enum):
def _generate_next_value_(self, *args):
return self.lower()
class MessageEntityType(AutoName):
MENTION = auto()
HASHTAG = auto()
CASHTAG = auto()
BOT_COMMAND = auto()
URL = auto()
EMAIL = auto()
PHONE_NUMBER = auto()
BOLD = auto()
ITALIC = auto()
UNDERLINE = auto()
STRIKETHROUGH = auto()
CODE = auto()
PRE = auto()
TEXT_LINK = auto()
TEXT_MENTION = auto()
BLOCKQUOTE = auto()
RAW_ENTITIES_TO_TYPE = {
raw.types.MessageEntityMention: MessageEntityType.MENTION,
raw.types.MessageEntityHashtag: MessageEntityType.HASHTAG,
raw.types.MessageEntityCashtag: MessageEntityType.CASHTAG,
raw.types.MessageEntityBotCommand: MessageEntityType.BOT_COMMAND,
raw.types.MessageEntityUrl: MessageEntityType.URL,
raw.types.MessageEntityEmail: MessageEntityType.EMAIL,
raw.types.MessageEntityBold: MessageEntityType.BOLD,
raw.types.MessageEntityItalic: MessageEntityType.ITALIC,
raw.types.MessageEntityCode: MessageEntityType.CODE,
raw.types.MessageEntityPre: MessageEntityType.PRE,
raw.types.MessageEntityUnderline: MessageEntityType.UNDERLINE,
raw.types.MessageEntityStrike: MessageEntityType.STRIKETHROUGH,
raw.types.MessageEntityBlockquote: MessageEntityType.BLOCKQUOTE,
raw.types.MessageEntityTextUrl: MessageEntityType.TEXT_LINK,
raw.types.MessageEntityMentionName: MessageEntityType.TEXT_MENTION,
raw.types.MessageEntityPhone: MessageEntityType.PHONE_NUMBER
}
TYPE_TO_RAW_ENTITIES = {v.value: k for k, v in RAW_ENTITIES_TO_TYPE.items()}
class MessageEntity(Object):
"""One special entity in a text message.
For example, hashtags, usernames, URLs, etc.
Parameters:
type (``str``):
Type of the entity.
Can be "mention" (``@username``), "hashtag" (``#hashtag``), "cashtag" (``$PYRO``),
"bot_command" (``/start@pyrogrambot``), "url" (``https://pyrogram.org``),
"email" (``<EMAIL>``), "phone_number" (``+1-420-069-1337``), "bold" (**bold text**),
"italic" (*italic text*), "underline" (underlined text), "strikethrough" (strikethrough text),
"code" (monowidth string), "pre" (monowidth block), "text_link" (for clickable text URLs),
"text_mention" (for users without usernames).
offset (``int``):
Offset in UTF-16 code units to the start of the entity.
length (``int``):
Length of the entity in UTF-16 code units.
url (``str``, *optional*):
For "text_link" only, url that will be opened after user taps on the text.
user (:obj:`~pyrogram.types.User`, *optional*):
For "text_mention" only, the mentioned user.
language (``str``. *optional*):
For "pre" only, the programming language of the entity text.
"""
def __init__(
self,
*,
client: "pyrogram.Client" = None,
type: str,
offset: int,
length: int,
url: str = None,
user: "types.User" = None,
language: str = None
):
super().__init__(client)
self.type = type
self.offset = offset
self.length = length
self.url = url
self.user = user
self.language = language
@staticmethod
def _parse(client, entity, users: dict) -> Optional["MessageEntity"]:
type = RAW_ENTITIES_TO_TYPE.get(entity.__class__, None)
if type is None:
return None
return MessageEntity(
type=type.value,
offset=entity.offset,
length=entity.length,
url=getattr(entity, "url", None),
user=types.User._parse(client, users.get(getattr(entity, "user_id", None), None)),
language=getattr(entity, "language", None),
client=client
)
async def write(self):
args = self.__dict__.copy()
for arg in ("_client", "type", "user"):
args.pop(arg)
if self.user:
args["user_id"] = await self._client.resolve_peer(self.user.id)
if not self.url:
args.pop("url")
if self.language is None:
args.pop("language")
try:
entity = TYPE_TO_RAW_ENTITIES[self.type]
if entity is raw.types.MessageEntityMentionName:
entity = raw.types.InputMessageEntityMentionName
except KeyError as e:
raise ValueError(f"Invalid message entity type {e}")
else:
try:
return entity(**args)
except TypeError as e:
raise TypeError(f"{entity.QUALNAME}'s {e}")
|
jMonkeyEngine-mirrors/jme-vehicles-jayfella-github
|
src/main/java/com/jayfella/jme/vehicle/gui/AnimatedMenuState.java
|
package com.jayfella.jme.vehicle.gui;
import com.jayfella.easing.Easings;
import com.jme3.app.Application;
import com.jme3.app.SimpleApplication;
import com.jme3.app.state.BaseAppState;
import com.jme3.math.FastMath;
import com.jme3.math.Vector3f;
import com.jme3.scene.Node;
import com.simsilica.lemur.Button;
import com.simsilica.lemur.HAlignment;
import com.simsilica.lemur.Insets3f;
import com.simsilica.lemur.Panel;
import com.simsilica.lemur.component.TbtQuadBackgroundComponent;
public abstract class AnimatedMenuState extends BaseAppState {
private final Node node = new Node("Menu");
private Panel[] items;
private float maxWidth;
private AnimCompleteEvent animComplete;
protected abstract Button[] createItems();
protected void animateOut(AnimCompleteEvent animComplete) {
time = 0;
animsComplete = false;
in = false;
this.animComplete = animComplete;
}
private void formatButton(Button item) {
item.setTextHAlignment(HAlignment.Center);
((TbtQuadBackgroundComponent)item.getBackground()).setMargin(10, 5);
item.setFontSize(16);
item.setInsets(new Insets3f(0, 0, 5, 0));
}
@Override
protected void initialize(Application app) {
items = createItems();
int height = app.getCamera().getHeight() - 20;
for (Panel item : items) {
if (item instanceof Button) {
formatButton((Button) item);
}
node.attachChild(item);
// find the longest button so we can set them all to -maxSize so they are all offscreen
// then animate them in to something like x = 20
if (item.getPreferredSize().x > maxWidth) {
maxWidth = item.getPreferredSize().x;
}
// make all the buttons the same width
item.setPreferredSize(new Vector3f(maxWidth, item.getPreferredSize().y, item.getPreferredSize().z));
// position them all one below the other.
item.setLocalTranslation(-maxWidth, height, 1);
height -= (item.getPreferredSize().y);
}
}
@Override
protected void cleanup(Application app) {
}
@Override
protected void onEnable() {
((SimpleApplication)getApplication()).getGuiNode().attachChild(node);
}
@Override
protected void onDisable() {
node.removeFromParent();
}
private float time = 0; // time passed.
private final float duration = 0.5f; // the duration of the animation
private final float delay = 0.1f; // the delay between each button animating in.
private final float startTime = 0.5f; // a delay before the animations begin.
private float startDuration = 0; // start time elapsed
private boolean in = true;
private boolean animsComplete = false;
@Override
public void update(float tpf) {
if (animsComplete) {
return;
}
// add a delay before the menu animates in. It just looks nicer.
startDuration += tpf;
if (startDuration < startTime) {
return;
}
// stop the time from continuously growing.
time = FastMath.clamp(time + tpf, 0, 100);
for (int i = 0; i < items.length; i++) {
float currentDelay = delay * i;
// make each button wait their turn.
if (time < currentDelay) {
continue;
}
float currentTime = FastMath.clamp(time - currentDelay, 0, duration);
Panel item = items[i];
if (in) {
float x = Easings.Function.Quart.easeOut(currentTime, 0, maxWidth + 20, duration);
item.setLocalTranslation(-maxWidth + x, item.getLocalTranslation().y, item.getLocalTranslation().z);
}
else {
float x = Easings.Function.Quart.easeOut(currentTime, 0, -maxWidth, duration);
item.setLocalTranslation(x, item.getLocalTranslation().y, item.getLocalTranslation().z);
}
if (i == items.length - 1 && currentTime == duration) {
animsComplete = true;
if (animComplete != null) {
animComplete.completed();
animComplete = null;
}
}
}
}
}
|
mellowCS/cwe_checker_juliet_suite
|
testcases/CWE253_Incorrect_Check_of_Function_Return_Value/main.cpp
|
/* NOTE - eventually this file will be automatically updated using a Perl script that understand
* the naming of test case files, functions, and namespaces.
*/
#include <time.h> /* for time() */
#include <stdlib.h> /* for srand() */
#include "std_testcase.h"
#include "testcases.h"
int main(int argc, char * argv[]) {
/* seed randomness */
srand( (unsigned)time(NULL) );
globalArgc = argc;
globalArgv = argv;
#ifndef OMITGOOD
/* Calling C good functions */
/* BEGIN-AUTOGENERATED-C-GOOD-FUNCTION-CALLS */
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_12_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_12_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_10_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_18_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_18_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_05_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_05_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_13_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_13_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_09_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_09_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_17_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_17_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_15_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_15_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_03_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_03_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_01_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_01_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_16_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_16_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_04_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_04_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_06_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_06_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_14_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_14_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_08_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_08_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_02_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_02_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_07_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_07_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_11_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_11_good();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_10_good();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_10_good();
/* END-AUTOGENERATED-C-GOOD-FUNCTION-CALLS */
#ifdef __cplusplus
/* Calling C++ good functions */
/* BEGIN-AUTOGENERATED-CPP-GOOD-FUNCTION-CALLS */
/* END-AUTOGENERATED-CPP-GOOD-FUNCTION-CALLS */
#endif /* __cplusplus */
#endif /* OMITGOOD */
#ifndef OMITBAD
/* Calling C bad functions */
/* BEGIN-AUTOGENERATED-C-BAD-FUNCTION-CALLS */
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fprintf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputc_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fscanf_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_puts_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_sscanf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_sscanf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fprintf_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fwrite_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_snprintf_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_remove_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateMutex_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fscanf_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_12_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_12_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_rename_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32ImpersonateNamedPipeClient_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_snprintf_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputs_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_10_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_18_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_scanf_18_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fread_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_w32CreateNamedPipe_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_05_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateMutex_05_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_RpcImpersonateClient_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fwrite_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_13_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fgets_13_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_09_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__w32_ImpersonateSelf_09_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fgets_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_17_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32ImpersonateNamedPipeClient_17_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_15_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_15_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_03_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_puts_03_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_01_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_w32CreateNamedPipe_01_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_16_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_16_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_04_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_remove_04_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_06_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fread_06_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_14_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putc_14_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_08_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_putchar_08_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_02_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_fputs_02_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_07_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_07_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putc_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_putchar_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_11_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_fputc_11_bad();
printLine("Calling CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_10_bad();");
CWE253_Incorrect_Check_of_Function_Return_Value__char_rename_10_bad();
/* END-AUTOGENERATED-C-BAD-FUNCTION-CALLS */
#ifdef __cplusplus
/* Calling C++ bad functions */
/* BEGIN-AUTOGENERATED-CPP-BAD-FUNCTION-CALLS */
/* END-AUTOGENERATED-CPP-BAD-FUNCTION-CALLS */
#endif /* __cplusplus */
#endif /* OMITBAD */
return 0;
}
|
DevIbrahimHussein/Audio-Library
|
src/middleware/trim-request.middleware.js
|
// Created by Ibrahim on Saturday
/*
trim-request is very simple to use, just import the package and use one of its methods:
trimRequest.all trim body, params and query objects
trimRequest.body trim only the body object
trimRequest.param trim the params object
trimRequest.query trim the query string object
for more info :: https://github.com/YouneLL/trim-request
*/
require('trim-request');
var all = function (req, res, next) {
if (req.body) {
trimStringProperties(req.body);
}
if (req.params) {
trimStringProperties(req.params);
}
if (req.query) {
trimStringProperties(req.query);
}
next();
}
// trim all string prpoerties of an object
function trimStringProperties(obj) {
if (obj !== null && typeof obj === 'object') {
for (var prop in obj) {
// if the property is an object trim it too
if (typeof obj[prop] === 'object') {
return trimStringProperties(obj[prop]);
}
// if it's a string remove begin and end whitespaces
if (typeof obj[prop] === 'string') {
obj[prop] = obj[prop].trim();
}
}
}
}
// trimRequest middleware: trim all request object: body, params, query
var all = function (req, res, next) {
if (req.body) {
trimStringProperties(req.body);
}
if (req.params) {
trimStringProperties(req.params);
}
if (req.query) {
trimStringProperties(req.query);
}
next();
}
// trimBody middleware: trim only the body object
var body = function (req, res, next) {
if (req.body) {
trimStringProperties(req.body);
}
next();
}
var param = function (req, res, next) {
if (req.params) {
trimStringProperties(req.params);
}
next();
}
var query = function (req, res, next) {
if (req.query) {
trimStringProperties(req.query);
}
next();
}
module.exports = {
all: all,
body: body,
param: param,
query: query
};
module.exports = all
|
W-Carlos/CodeClub
|
modulo10/this/index.js
|
// Importando com o this no escopo global
const peaple1 = {
name: "Carlos",
age: 25
}
this.peaple1 = peaple1
|
leomauro/handsonscala
|
examples/14.1 - Mock/app/src/MinimalApplication.scala
|
<filename>examples/14.1 - Mock/app/src/MinimalApplication.scala
package app
import scalatags.Text.all._
object MinimalApplication extends cask.MainRoutes {
val bootstrap = "https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.css"
@cask.get("/")
def hello() = doctype("html")(
html(
head(link(rel := "stylesheet", href := bootstrap)),
body(
div(cls := "container")(
h1("Scala Chat!"),
div(
p(b("alice"), " ", "Hello World!"),
p(b("bob"), " ", "I am cow, hear me moo"),
),
div(
input(`type` := "text", placeholder := "User name"),
input(`type` := "text", placeholder := "Write a message!")
)
)
)
)
)
initialize()
}
|
rdok/the-modern-graphql-bootcamp
|
src/services/user.js
|
const getFirstName = (fullname) => {
return fullname.split(' ')[0]
}
export {getFirstName}
|
AltaPay/sdk-js
|
lib/ReservationResponse.js
|
<gh_stars>1-10
/**
* @extends InitiatePaymentResponse
* @param responseObject
* @constructor
*/
function ReservationResponse(responseObject) {
this.responseObject = responseObject;
ObjectHelper.extend(this, new InitiatePaymentResponse());
}
|
Rouzip/qiniu-go-sdk
|
syncdata/operation/util.go
|
package operation
import (
"net"
"net/http"
"time"
"github.com/qiniupd/qiniu-go-sdk/x/httputil.v1"
)
func shouldRetry(err error) bool {
if err == nil {
return false
}
code := httputil.DetectCode(err)
return code/100 == 5
}
func NewTransport(dialTimeoutMs int) http.RoundTripper {
t := &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: time.Duration(dialTimeoutMs) * time.Millisecond,
KeepAlive: 30 * time.Second,
DualStack: true,
}).DialContext,
MaxIdleConns: 100,
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
}
return t
}
|
squirrelcom/dennix
|
libc/src/search/twalk.c
|
/* Copyright (c) 2021 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* libc/src/search/twalk.c
* Walk a binary search tree.
*/
#include "tnode.h"
static void walk(const posix_tnode* node, int level,
void (*action)(const posix_tnode*, VISIT, int)) {
if (!node->left && !node->right) {
action(node, leaf, level);
return;
}
action(node, preorder, level);
if (node->left) {
walk(node->left, level + 1, action);
}
action(node, postorder, level);
if (node->right) {
walk(node->right, level + 1, action);
}
action(node, endorder, level);
}
void twalk(const posix_tnode* root,
void (*action)(const posix_tnode*, VISIT, int)) {
walk(root, 0, action);
}
|
summerclouds/common-core-spring-boot-starter
|
src/main/java/org/summerclouds/common/core/operation/TaskContext.java
|
/**
* Copyright (C) 2002 <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.summerclouds.common.core.operation;
import org.summerclouds.common.core.node.INode;
public interface TaskContext extends Monitor {
/**
* Return a local configuration object if exists or null if no configuration is present.
*
* @return The Configuration
*/
INode getConfig();
/**
* Return the parameters of the current operation call.
*
* @return The job parameters
*/
INode getParameters();
/**
* Add a error message (will be appended to the error message).
*
* @param msg
*/
void addErrorMessage(String msg);
/**
* Return the current error message.
*
* @return The messages as one string.
*/
String getErrorMessage();
}
|
V-Tom/vue-blog
|
src/dev.t-tom.me/src/api/index.js
|
'use strict';
import {AuthResource,ArticleResource} from './resources'
export const AuthApi = {
login: function (data) {
return AuthResource.save({
type: "login"
}, data)
},
logout: function () {
return AuthResource.get({
type: "logout"
})
}
};
export const ArticleApi = {
getArticleDetail: function (articleId) {
return ArticleResource.get({
type: "get",
articleId: articleId
})
},
updateArticleDetail: function (articleId, data, git) {
return ArticleResource.update({
type: "update",
articleId: articleId
}, {
data: data,
git: git
})
},
createArticle: function (data) {
return ArticleResource.save({
type: "new"
}, data)
}
};
|
tanhaichao/leopard
|
topnb/topnb-web/src/test/java/io/leopard/topnb/web/data/BaseDataTest.java
|
package io.leopard.topnb.web.data;
import org.junit.Assert;
import org.junit.Test;
public class BaseDataTest {
private final BaseData data = new BaseData();
@Test
public void add() {
Assert.assertTrue(data.add("service.methodName", 1, 1));
Assert.assertTrue(data.add("service.methodName", 1, 1));
Assert.assertEquals(1, data.listAll().size());
data.clear();
Assert.assertEquals(0, data.listAll().size());
for (int i = 0; i < 1000; i++) {
Assert.assertTrue(data.add("service.methodName" + i, 1, 1));
}
System.out.println("size:" + data.DATA.size());
Assert.assertFalse(data.add("service.methodName-x", 1, 1));
}
}
|
Purva-Chaudhari/cmssw
|
IORawData/CSCCommissioning/test/readFile.py
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("reader")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cout.placeholder = cms.untracked.bool(False)
process.MessageLogger.cout.threshold = cms.untracked.string('INFO')
process.MessageLogger.debugModules = cms.untracked.vstring('*')
process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
process.source = cms.Source("EmptySource",
firstRun= cms.untracked.uint32(298313),
numberEventsInLuminosityBlock = cms.untracked.uint32(200),
numberEventsInRun = cms.untracked.uint32(0)
)
process.rawDataCollector = cms.EDProducer('CSCFileReader',
firstEvent = cms.untracked.int32(0),
FED856 = cms.untracked.vstring('RUI33'),
RUI33 = cms.untracked.vstring('/tmp/barvic/csc_00298313_EmuRUI33_Local_000.raw')
)
process.FEVT = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string("/tmp/barvic/csc_00298313_GEM_Test.root"),
outputCommands = cms.untracked.vstring("keep *")
)
process.p = cms.Path( process.rawDataCollector)
process.outpath = cms.EndPath(process.FEVT)
|
NgLoader/Discord-Bot-Wuffy-v1
|
wuffy-network/src/main/java/net/wuffy/network/bot/server/SPacketBotStatsUpdate.java
|
<reponame>NgLoader/Discord-Bot-Wuffy-v1
package net.wuffy.network.bot.server;
import java.io.IOException;
import net.wuffy.network.Packet;
import net.wuffy.network.PacketBuffer;
import net.wuffy.network.bot.INetHandlerBotServer;
public class SPacketBotStatsUpdate implements Packet<INetHandlerBotServer> {
private int guildCount;
private int channelCount;
private int textChannelCount;
private int roleCount;
private int userOnlineCount;
private int userAwayCount;
private int userDNDCount;
private int userTotalCount; //!!!Don't send total count!!! (userOnlineCount + userAwayCount + userDNDCount)
public SPacketBotStatsUpdate() { }
public SPacketBotStatsUpdate(int guildCount, int channelCount, int textChannelCount, int roleCount, int userOnlineCount, int userAwayCount, int userDNDCount) {
this.guildCount = guildCount;
this.channelCount = channelCount;
this.textChannelCount = textChannelCount;
this.roleCount = roleCount;
this.userOnlineCount = userOnlineCount;
this.userAwayCount = userAwayCount;
this.userDNDCount = userDNDCount;
this.userTotalCount = this.userOnlineCount + this.userAwayCount + this.userDNDCount;
}
@Override
public void read(PacketBuffer packetBuffer) throws IOException {
packetBuffer.writeInt(this.guildCount);
packetBuffer.writeInt(this.channelCount);
packetBuffer.writeInt(this.textChannelCount);
packetBuffer.writeInt(this.roleCount);
packetBuffer.writeInt(this.userOnlineCount);
packetBuffer.writeInt(this.userAwayCount);
packetBuffer.writeInt(this.userDNDCount);
}
@Override
public void write(PacketBuffer packetBuffer) throws IOException {
this.guildCount = packetBuffer.readInt();
this.channelCount = packetBuffer.readInt();
this.textChannelCount = packetBuffer.readInt();
this.roleCount = packetBuffer.readInt();
this.userOnlineCount = packetBuffer.readInt();
this.userAwayCount = packetBuffer.readInt();
this.userDNDCount = packetBuffer.readInt();
this.userTotalCount = this.userOnlineCount + this.userAwayCount + this.userDNDCount;
}
@Override
public void handle(INetHandlerBotServer handler) {
handler.handleBotStatsUpdate(this);
}
public int getGuildCount() {
return this.guildCount;
}
public int getUserOnlineCount() {
return this.userOnlineCount;
}
public int getUserAwayCount() {
return this.userAwayCount;
}
public int getUserDNDCount() {
return this.userDNDCount;
}
public int getUserTotalCount() {
return this.userTotalCount;
}
public int getRoleCount() {
return this.roleCount;
}
public int getChannelCount() {
return this.channelCount;
}
public int getTextChannelCount() {
return this.textChannelCount;
}
}
|
xizi/mmdeploy
|
tests/test_codebase/test_mmdet/test_mmdet_utils.py
|
<filename>tests/test_codebase/test_mmdet/test_mmdet_utils.py<gh_stars>100-1000
# Copyright (c) OpenMMLab. All rights reserved.
import mmcv
import numpy as np
import torch
from mmdeploy.codebase import import_codebase
from mmdeploy.codebase.mmdet import (clip_bboxes, get_post_processing_params,
pad_with_value,
pad_with_value_if_necessary)
from mmdeploy.utils import Codebase
import_codebase(Codebase.MMDET)
def test_clip_bboxes():
x1 = torch.rand(3, 2) * 224
y1 = torch.rand(3, 2) * 224
x2 = x1 * 2
y2 = y1 * 2
outs = clip_bboxes(x1, y1, x2, y2, [224, 224])
for out in outs:
assert int(out.max()) <= 224
def test_pad_with_value():
x = torch.rand(3, 2)
padded_x = pad_with_value(x, pad_dim=1, pad_size=4, pad_value=0)
assert np.allclose(
padded_x.shape, torch.Size([3, 6]), rtol=1e-03, atol=1e-05)
assert np.allclose(padded_x.sum(), x.sum(), rtol=1e-03, atol=1e-05)
def test_pad_with_value_if_necessary():
x = torch.rand(3, 2)
padded_x = pad_with_value_if_necessary(
x, pad_dim=1, pad_size=4, pad_value=0)
assert np.allclose(
padded_x.shape, torch.Size([3, 2]), rtol=1e-03, atol=1e-05)
assert np.allclose(padded_x.sum(), x.sum(), rtol=1e-03, atol=1e-05)
config_with_mmdet_params = mmcv.Config(
dict(
codebase_config=dict(
type='mmdet',
task='ObjectDetection',
post_processing=dict(
score_threshold=0.05,
iou_threshold=0.5,
max_output_boxes_per_class=200,
pre_top_k=-1,
keep_top_k=100,
background_label_id=-1,
))))
def test_get_mmdet_params():
assert get_post_processing_params(config_with_mmdet_params) == dict(
score_threshold=0.05,
iou_threshold=0.5,
max_output_boxes_per_class=200,
pre_top_k=-1,
keep_top_k=100,
background_label_id=-1)
|
Quicksilver-Project/quicksilveruml
|
src/uml/action_input_pin.c
|
/**~action~
* ActionInputPin [Class]
*
* Description
*
* An ActionInputPin is a kind of InputPin that executes an Action to determine the values to input to another Action.
*
* Diagrams
*
* Actions
*
* Generalizations
*
* InputPin
*
* Association Ends
*
* ♦ fromAction : Action [1..1]{subsets Element::ownedElement} (opposite
* A_fromAction_actionInputPin::actionInputPin)
*
* The Action used to provide the values of the ActionInputPin.
*
* Constraints
*
* input_pin
*
* The fromAction of an ActionInputPin must only have ActionInputPins as InputPins.
*
* inv: fromAction.input->forAll(oclIsKindOf(ActionInputPin))
*
* one_output_pin
*
* The fromAction of an ActionInputPin must have exactly one OutputPin.
*
* inv: fromAction.output->size() = 1
*
* no_control_or_object_flow
*
* The fromAction of an ActionInputPin cannot have ActivityEdges coming into or out of it or its Pins.
*
* inv: fromAction.incoming->union(outgoing)->isEmpty() and
* fromAction.input.incoming->isEmpty() and
* fromAction.output.outgoing->isEmpty()
**/
|
zephyrtronium/ardent
|
examples/keyboard/main.go
|
<gh_stars>0
package main
import (
"log"
"github.com/split-cube-studios/ardent"
"github.com/split-cube-studios/ardent/engine"
)
var (
game engine.Game
animation engine.Animation
x float64
)
// tick function.
func tick() {
if game.IsKeyPressed(engine.KeyA) {
// walk left
animation.SetState("sw")
x--
} else if game.IsKeyPressed(engine.KeyD) {
// walk right
animation.SetState("se")
x++
}
animation.Translate(x, 0)
}
func main() {
// create new game instance
game = ardent.NewGame(
"Keyboard",
854,
480,
engine.FlagResizable,
// tick function
tick,
// layout function
func(ow, oh int) (int, int) {
return ow, oh
},
)
// create new renderer and animation
renderer := game.NewRenderer()
animation, _ = game.NewAnimationFromAssetPath("./examples/animation/animation.asset")
animation.Scale(4, 4)
animation.SetState("sw")
// add animation to renderer
renderer.AddImage(animation)
// add renderer to game and start game
game.AddRenderer(renderer)
err := game.Run()
if err != nil {
log.Fatal(err)
}
}
|
rexming1999/ASP-Portel
|
app/controllers/addEventButton.js
|
<filename>app/controllers/addEventButton.js
var args = arguments[0] || {};
$.view.addEventListener("click", function(e) {
Ti.App.fireEvent(args);
});
|
DigiArea/closurefx-builder
|
src/com/digiarea/closure/model/controller/JSHelperSectionController.java
|
<reponame>DigiArea/closurefx-builder
package com.digiarea.closure.model.controller;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.Control;
import javafx.scene.control.Label;
import javafx.scene.control.TitledPane;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.ColumnConstraints;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Priority;
import javafx.scene.layout.RowConstraints;
import javafx.scene.layout.VBox;
import com.digiarea.closure.model.bind.ModelFacade;
import com.digiarea.closure.model.controller.dialogs.DialogFactory;
import com.digiarea.closure.model.controller.dialogs.StatusDialogController;
import com.digiarea.closurefx.IConstants;
import com.digiarea.closurefx.build.validation.IStatus.StatusType;
import com.digiarea.closurefx.build.validation.Status;
/**
* FXML Controller class
*
* @author daginno
*/
public class JSHelperSectionController extends ClosureController implements Initializable {
@FXML
private TitledPane section;
public JSHelperSectionController(ModelFacade modelFacade, ResourceBundle bundle) {
super(modelFacade, bundle);
}
/**
* Initializes the controller class.
*/
@Override
public void initialize(URL url, ResourceBundle rb) {
}
@FXML
private void handleWhitespaceButton(ActionEvent event) {
StatusDialogController controller = DialogFactory.getStatusDialog(bundle, new Status(StatusType.WARNING, bundle.getString(IConstants.JSHelperSection_Msg), null), bundle.getString(IConstants.JSHelperSection));
if (controller.getStatus().getSeverity() == StatusType.OK) {
modelFacade.applyWhitespacesOptions();
}
}
@FXML
private void handleSimpleButton(ActionEvent event) {
StatusDialogController controller = DialogFactory.getStatusDialog(bundle, new Status(StatusType.WARNING, bundle.getString(IConstants.JSHelperSection_Msg), null), bundle.getString(IConstants.JSHelperSection));
if (controller.getStatus().getSeverity() == StatusType.OK) {
modelFacade.applySimpleOptions();
}
}
@FXML
private void handleAdvancedButton(ActionEvent event) {
StatusDialogController controller = DialogFactory.getStatusDialog(bundle, new Status(StatusType.WARNING, bundle.getString(IConstants.JSHelperSection_Msg), null), bundle.getString(IConstants.JSHelperSection));
if (controller.getStatus().getSeverity() == StatusType.OK) {
modelFacade.applyAdvancedOptions();
}
}
@FXML
private void handleQuiteButton(ActionEvent event) {
modelFacade.applyQuietWarningLevel();
}
@FXML
private void handleDefaultButton(ActionEvent event) {
modelFacade.applyDefaultWarningLevel();
}
@FXML
private void handleVerboseButton(ActionEvent event) {
modelFacade.applyVerboseWarningLevel();
}
public TitledPane getSection() {
return section;
}
public AnchorPane create() throws Exception {
AnchorPane anchorPane17 = new AnchorPane();
anchorPane17.setId("AnchorPane");
anchorPane17.setMinHeight(Control.USE_PREF_SIZE);
anchorPane17.setMinWidth(Control.USE_PREF_SIZE);
anchorPane17.setPrefHeight(Control.USE_COMPUTED_SIZE);
anchorPane17.setPrefWidth(Control.USE_COMPUTED_SIZE);
section = new TitledPane();
section.setAnimated(false);
section.setCollapsible(false);
section.setPrefHeight(Control.USE_COMPUTED_SIZE);
section.setPrefWidth(Control.USE_COMPUTED_SIZE);
section.setText(bundle.getString("JSHelperSection"));
AnchorPane.setBottomAnchor(section, 0.0);
AnchorPane.setLeftAnchor(section, 0.0);
AnchorPane.setRightAnchor(section, 0.0);
AnchorPane.setTopAnchor(section, 0.0);
VBox vBox28 = new VBox();
vBox28.setPrefHeight(Control.USE_COMPUTED_SIZE);
vBox28.setPrefWidth(Control.USE_COMPUTED_SIZE);
vBox28.setSpacing(5.0);
Label label27 = new Label();
label27.setText(bundle.getString("JSHelperSection_Desc"));
label27.setWrapText(true);
vBox28.getChildren().add(label27);
GridPane gridPane38 = new GridPane();
gridPane38.setHgap(10.0);
gridPane38.setVgap(5.0);
Button button31 = new Button();
button31.setAlignment(Pos.CENTER_LEFT);
button31.setMaxWidth(1.7976931348623157E308);
button31.setMnemonicParsing(false);
button31.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
handleWhitespaceButton(event);
}
});
button31.getStyleClass().add("invisible-button");
button31.setText(bundle.getString("JSHelperSection_Whitespaces"));
GridPane.setColumnIndex(button31, 0);
GridPane.setRowIndex(button31, 1);
ImageView imageView18 = new ImageView();
imageView18.setFitHeight(16.0);
imageView18.setFitWidth(16.0);
imageView18.setMouseTransparent(true);
imageView18.setPickOnBounds(true);
imageView18.setPreserveRatio(true);
Image image18 = new Image(getClass().getResource("/com/digiarea/closurefx/resources/optimization-whitespases.png").openStream());
imageView18.setImage(image18);
button31.setGraphic(imageView18);
gridPane38.getChildren().add(button31);
Button button32 = new Button();
button32.setAlignment(Pos.CENTER_LEFT);
button32.setMaxWidth(1.7976931348623157E308);
button32.setMnemonicParsing(false);
button32.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
handleSimpleButton(event);
}
});
button32.getStyleClass().add("invisible-button");
button32.setText(bundle.getString("JSHelperSection_Simple"));
GridPane.setColumnIndex(button32, 0);
GridPane.setRowIndex(button32, 2);
ImageView imageView19 = new ImageView();
imageView19.setFitHeight(16.0);
imageView19.setFitWidth(16.0);
imageView19.setMouseTransparent(true);
imageView19.setPickOnBounds(true);
imageView19.setPreserveRatio(true);
Image image19 = new Image(getClass().getResource("/com/digiarea/closurefx/resources/optimization-simple.png").openStream());
imageView19.setImage(image19);
button32.setGraphic(imageView19);
gridPane38.getChildren().add(button32);
Button button33 = new Button();
button33.setAlignment(Pos.CENTER_LEFT);
button33.setMaxWidth(1.7976931348623157E308);
button33.setMnemonicParsing(false);
button33.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
handleAdvancedButton(event);
}
});
button33.getStyleClass().add("invisible-button");
button33.setText(bundle.getString("JSHelperSection_Advance"));
GridPane.setColumnIndex(button33, 0);
GridPane.setRowIndex(button33, 3);
ImageView imageView20 = new ImageView();
imageView20.setFitHeight(16.0);
imageView20.setFitWidth(16.0);
imageView20.setMouseTransparent(true);
imageView20.setPickOnBounds(true);
imageView20.setPreserveRatio(true);
Image image20 = new Image(getClass().getResource("/com/digiarea/closurefx/resources/optimization-advanced.png").openStream());
imageView20.setImage(image20);
button33.setGraphic(imageView20);
gridPane38.getChildren().add(button33);
Button button34 = new Button();
button34.setAlignment(Pos.CENTER_LEFT);
button34.setMaxWidth(1.7976931348623157E308);
button34.setMnemonicParsing(false);
button34.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
handleDefaultButton(event);
}
});
button34.getStyleClass().add("invisible-button");
button34.setText(bundle.getString("JSHelperSection_Default"));
GridPane.setColumnIndex(button34, 1);
GridPane.setRowIndex(button34, 1);
ImageView imageView21 = new ImageView();
imageView21.setFitHeight(16.0);
imageView21.setFitWidth(16.0);
imageView21.setMouseTransparent(true);
imageView21.setPickOnBounds(true);
imageView21.setPreserveRatio(true);
Image image21 = new Image(getClass().getResource("/com/digiarea/closurefx/resources/mark-exclamation.png").openStream());
imageView21.setImage(image21);
button34.setGraphic(imageView21);
gridPane38.getChildren().add(button34);
Button button35 = new Button();
button35.setAlignment(Pos.CENTER_LEFT);
button35.setMaxWidth(1.7976931348623157E308);
button35.setMnemonicParsing(false);
button35.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
handleQuiteButton(event);
}
});
button35.getStyleClass().add("invisible-button");
button35.setText(bundle.getString("JSHelperSection_Quite"));
GridPane.setColumnIndex(button35, 1);
GridPane.setRowIndex(button35, 2);
ImageView imageView22 = new ImageView();
imageView22.setFitHeight(16.0);
imageView22.setFitWidth(16.0);
imageView22.setMouseTransparent(true);
imageView22.setPickOnBounds(true);
imageView22.setPreserveRatio(true);
Image image22 = new Image(getClass().getResource("/com/digiarea/closurefx/resources/mark-off.png").openStream());
imageView22.setImage(image22);
button35.setGraphic(imageView22);
gridPane38.getChildren().add(button35);
Button button36 = new Button();
button36.setAlignment(Pos.CENTER_LEFT);
button36.setMaxWidth(1.7976931348623157E308);
button36.setMnemonicParsing(false);
button36.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
handleVerboseButton(event);
}
});
button36.getStyleClass().add("invisible-button");
button36.setText(bundle.getString("JSHelperSection_Verbose"));
GridPane.setColumnIndex(button36, 1);
GridPane.setRowIndex(button36, 3);
ImageView imageView23 = new ImageView();
imageView23.setFitHeight(16.0);
imageView23.setFitWidth(16.0);
imageView23.setMouseTransparent(true);
imageView23.setPickOnBounds(true);
imageView23.setPreserveRatio(true);
Image image23 = new Image(getClass().getResource("/com/digiarea/closurefx/resources/mark-error.png").openStream());
imageView23.setImage(image23);
button36.setGraphic(imageView23);
gridPane38.getChildren().add(button36);
Label label28 = new Label();
label28.setText(bundle.getString("JSHelperSection_Optimization"));
label28.setWrapText(true);
GridPane.setColumnIndex(label28, 0);
GridPane.setRowIndex(label28, 0);
gridPane38.getChildren().add(label28);
Label label29 = new Label();
label29.setText(bundle.getString("JSHelperSection_Warning"));
GridPane.setColumnIndex(label29, 1);
GridPane.setRowIndex(label29, 0);
gridPane38.getChildren().add(label29);
ColumnConstraints columnConstraints78 = new ColumnConstraints();
columnConstraints78.setHgrow(Priority.NEVER);
columnConstraints78.setMinWidth(Control.USE_PREF_SIZE);
columnConstraints78.setPercentWidth(-1.0);
columnConstraints78.setPrefWidth(Control.USE_COMPUTED_SIZE);
gridPane38.getColumnConstraints().add(columnConstraints78);
ColumnConstraints columnConstraints79 = new ColumnConstraints();
columnConstraints79.setHgrow(Priority.NEVER);
columnConstraints79.setMinWidth(Control.USE_PREF_SIZE);
columnConstraints79.setPercentWidth(-1.0);
columnConstraints79.setPrefWidth(Control.USE_COMPUTED_SIZE);
gridPane38.getColumnConstraints().add(columnConstraints79);
RowConstraints rowConstraints66 = new RowConstraints();
rowConstraints66.setMinHeight(Control.USE_PREF_SIZE);
rowConstraints66.setPrefHeight(Control.USE_COMPUTED_SIZE);
rowConstraints66.setVgrow(Priority.NEVER);
gridPane38.getRowConstraints().add(rowConstraints66);
RowConstraints rowConstraints67 = new RowConstraints();
rowConstraints67.setMinHeight(Control.USE_PREF_SIZE);
rowConstraints67.setPrefHeight(Control.USE_COMPUTED_SIZE);
rowConstraints67.setVgrow(Priority.NEVER);
gridPane38.getRowConstraints().add(rowConstraints67);
RowConstraints rowConstraints68 = new RowConstraints();
rowConstraints68.setMinHeight(Control.USE_PREF_SIZE);
rowConstraints68.setPrefHeight(Control.USE_COMPUTED_SIZE);
rowConstraints68.setVgrow(Priority.NEVER);
gridPane38.getRowConstraints().add(rowConstraints68);
RowConstraints rowConstraints69 = new RowConstraints();
rowConstraints69.setMinHeight(Control.USE_PREF_SIZE);
rowConstraints69.setPrefHeight(Control.USE_COMPUTED_SIZE);
rowConstraints69.setVgrow(Priority.NEVER);
gridPane38.getRowConstraints().add(rowConstraints69);
vBox28.getChildren().add(gridPane38);
Insets insets42 = new Insets(10.0, 10.0, 10.0, 10.0);
vBox28.setPadding(insets42);
section.setContent(vBox28);
anchorPane17.getChildren().add(section);
initialize(null, bundle);
return anchorPane17;
}
}
|
yvenshane/PenBook
|
PenBook/PenBook/Login&Register/FindPassword/Controller/VENFindPasswordViewController.h
|
<reponame>yvenshane/PenBook
//
// VENFindPasswordViewController.h
// PenBook
//
// Created by YVEN on 2019/1/9.
// Copyright © 2019年 Hefei Haiba Network Technology Co., Ltd. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface VENFindPasswordViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
|
rovedit/Fort-Candle
|
extern/polymesh/src/polymesh/algorithms/properties.hh
|
#pragma once
#pragma message("this header is deprecated, please use #include <polymesh/properties.hh> instead")
#include <polymesh/properties.hh>
|
konexios/moonstone
|
selene-device-zigbee/src/main/java/moonstone/selene/device/xbee/zcl/domain/general/groups/commands/AddGroup.java
|
<reponame>konexios/moonstone<filename>selene-device-zigbee/src/main/java/moonstone/selene/device/xbee/zcl/domain/general/groups/commands/AddGroup.java
package moonstone.selene.device.xbee.zcl.domain.general.groups.commands;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.StandardCharsets;
import moonstone.selene.device.xbee.zcl.ClusterSpecificCommand;
public class AddGroup extends ClusterSpecificCommand<AddGroup> {
private short groupId;
private String groupName;
public short getGroupId() {
return groupId;
}
public AddGroup withGroupId(short groupId) {
this.groupId = groupId;
return this;
}
public String getGroupName() {
return groupName;
}
public AddGroup withGroupName(String groupName) {
this.groupName = groupName;
return this;
}
@Override
protected int getId() {
return GroupsClusterCommands.ADD_GROUP_COMMAND_ID;
}
@Override
public byte[] toPayload() {
ByteBuffer buffer = ByteBuffer.allocate(2 + groupName.length());
buffer.order(ByteOrder.LITTLE_ENDIAN);
buffer.putShort(groupId);
buffer.put(groupName.getBytes(StandardCharsets.UTF_8));
return buffer.array();
}
@Override
public AddGroup fromPayload(byte[] payload) {
ByteBuffer buffer = ByteBuffer.wrap(payload);
buffer.order(ByteOrder.LITTLE_ENDIAN);
groupId = buffer.getShort();
byte[] data = new byte[buffer.remaining()];
buffer.get(data);
groupName = new String(data, StandardCharsets.UTF_8);
return this;
}
}
|
uk-gov-mirror/ministryofjustice.offender-management-allocation-manager
|
db/migrate/20201208130833_change_early_allocation_column_outcome_null.rb
|
class ChangeEarlyAllocationColumnOutcomeNull < ActiveRecord::Migration[6.0]
def change
change_column_null :early_allocations, :outcome, false
end
end
|
Verizon/hlx
|
include/hlx/proxy_h.h
|
//: ----------------------------------------------------------------------------
//: Copyright (C) 2016 Verizon. All Rights Reserved.
//: All Rights Reserved
//:
//: \file: stat_h.h
//: \details: TODO
//: \author: <NAME>
//: \date: 12/12/2015
//:
//: 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.
//:
//: ----------------------------------------------------------------------------
#ifndef _PROXY_H_H
#define _PROXY_H_H
//: ----------------------------------------------------------------------------
//: Includes
//: ----------------------------------------------------------------------------
#include "hlx/default_rqst_h.h"
#include "hlx/base_u.h"
namespace ns_hlx {
//: ----------------------------------------------------------------------------
//: fwd decl's
//: ----------------------------------------------------------------------------
class clnt_session;
class nconn;
class rqst;
class resp;
class subr;
class nbq;
//: ----------------------------------------------------------------------------
//: Handler
//: ----------------------------------------------------------------------------
class proxy_h: public default_rqst_h
{
public:
// -------------------------------------------------
// Public methods
// -------------------------------------------------
proxy_h(const std::string &a_ups_host, const std::string &a_route);
~proxy_h();
h_resp_t do_default(clnt_session &a_clnt_session,
rqst &a_rqst,
const url_pmap_t &a_url_pmap);
// Do default method override
bool get_do_default(void);
// Setters
void set_timeout_ms(uint32_t a_val);
void set_max_parallel(int32_t a_val);
protected:
// -------------------------------------------------
// Protected methods
// -------------------------------------------------
h_resp_t get_proxy(clnt_session &a_clnt_session,
rqst &a_rqst,
const std::string &a_url);
private:
// -------------------------------------------------
// Private methods
// -------------------------------------------------
// Disallow copy/assign
proxy_h& operator=(const proxy_h &);
proxy_h(const proxy_h &);
// -------------------------------------------------
// Private members
// -------------------------------------------------
std::string m_ups_host;
std::string m_route;
uint32_t m_timeout_ms;
int32_t m_max_parallel;
};
//: ----------------------------------------------------------------------------
//: Upstream Object
//: ----------------------------------------------------------------------------
class proxy_u: public base_u
{
public:
// -------------------------------------------------
// const
// -------------------------------------------------
static const uint32_t S_UPS_TYPE_PROXY = 0xFFFF000B;
// -------------------------------------------------
// Public methods
// -------------------------------------------------
proxy_u(clnt_session &a_clnt_session, subr *a_subr, char *a_body_data, uint64_t a_body_len);
~proxy_u();
// -------------------------------------------------
// upstream methods
// -------------------------------------------------
ssize_t ups_read(size_t a_len);
int32_t ups_cancel(void);
uint32_t get_type(void) { return S_UPS_TYPE_PROXY;}
// -------------------------------------------------
// Public Class methods
// -------------------------------------------------
static int32_t s_completion_cb(subr &a_subr, nconn &a_nconn, resp &a_resp);
static int32_t s_error_cb(subr &a_subr,
nconn *a_nconn,
http_status_t a_status,
const char *a_error_str);
private:
// -------------------------------------------------
// Private methods
// -------------------------------------------------
// Disallow copy/assign
proxy_u& operator=(const proxy_u &);
proxy_u(const proxy_u &);
// -------------------------------------------------
// Private members
// -------------------------------------------------
subr *m_subr;
char *m_body_data;
uint64_t m_body_data_len;
};
} //namespace ns_hlx {
#endif
|
cabralsilva/Supervisorio
|
Supervisorio/src/Testes/TesteMeshs.java
|
package Testes;
import AGVS.Data.ConfigProcess;
import AGVS.Serial.Serial;
import AGVS.Util.Log;
import WebService.http.Servidor;
public class TesteMeshs {
public static void main(String[] args) {
try {
Serial serial = new Serial();
serial.conectar();
serial.enviar("<xml>5N2</xml>", "F176", "0013A20040F40A2D");
while (true) {
}
} catch (Exception e) {
new Log(e);
}
}
}
|
upowerman/spring-boot-learning
|
spring-boot-data-jpa/src/main/java/com/yunus/controller/UserController.java
|
<reponame>upowerman/spring-boot-learning
package com.yunus.controller;
import com.yunus.transaction.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @Author: gaoyunfeng
* @date: 2019/2/27
*/
@RestController
@RequestMapping("/transaction")
public class UserController {
@Autowired
private UserService userService;
@GetMapping
public String transaction() {
userService.transactionTest1();
return "ok";
}
}
|
wangli1426/my-storm
|
storm-core/src/jvm/backtype/storm/elasticity/message/taksmessage/RemoteState.java
|
<reponame>wangli1426/my-storm
package backtype.storm.elasticity.message.taksmessage;
import backtype.storm.elasticity.message.taksmessage.ITaskMessage;
import backtype.storm.elasticity.state.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* Created by Robert on 11/16/15.
*/
public class RemoteState implements ITaskMessage {
public int _taskId;
public Map<Serializable, Serializable> _state;
public List<Integer> _routes = new ArrayList<>();
public boolean finalized = false;
public RemoteState(int taskid, Map<Serializable, Serializable> state, int route) {
_taskId = taskid;
_state = state;
_routes.add(route);
}
public RemoteState(int taskid, Map<Serializable, Serializable> state, List<Integer> routes) {
_taskId = taskid;
_state = state;
_routes = routes;
}
public void markAsFinalized() {
finalized = true;
}
}
|
VgTajdd/jumping_jack
|
Univer/src/univer/core/EntryPoint.h
|
// ========================================================================= //
// Copyright (c) 2021 <NAME>. //
// This code is licensed under the Apache License 2.0. //
// EntryPoint.h //
// ========================================================================= //
#ifndef ENTRY_POINT_H_
#define ENTRY_POINT_H_
#include "univer/profiling/Instrumentation.h"
#ifdef UVR_PLATFORM_WINDOWS
#include <Windows.h>
#ifdef UVR_DIST
int WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd )
#else
int main( int argc, char** argv )
#endif
{
univer::Log::Init();
UVR_PROFILE_BEGIN_SESSION( "Startup", "univer_profile_startup.json" );
auto app = univer::createApplication();
UVR_PROFILE_END_SESSION();
UVR_PROFILE_BEGIN_SESSION( "Runtime", "univer_profile_runtime.json" );
app->run();
UVR_PROFILE_END_SESSION();
UVR_PROFILE_BEGIN_SESSION( "ShutDown", "univer_profile_shutdown.json" );
delete app;
UVR_PROFILE_END_SESSION();
}
#endif
#endif
|
ykechan/jacobi
|
src/main/java/jacobi/core/decomp/qr/step/PureQR.java
|
/*
* The MIT License
*
* Copyright 2017 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package jacobi.core.decomp.qr.step;
import jacobi.api.Matrix;
import jacobi.core.givens.Givens;
import jacobi.core.givens.GivensMode;
import jacobi.core.givens.GivensRQ;
import java.util.Arrays;
import java.util.List;
/**
* An iteration of Pure QR algorithm.
*
* <p>
* Pure QR algorithm refers to the following:
* Consider the QR decomposition of a matrix A = Q * R, compute ~A = R * Q
* If ~A is diagonal some upper triangular matrix U, therefore
* R * Q = U -> Q * U * Q^t = Q * R * Q * Q^t -> Q * U * Q^t = Q * R
* Therefore A = Q * U * Q^t, which is the Schur decomposition of A.
* </p>
*
* <p>The proof of convergence is omitted here.</p>
*
* @author Y.K. Chan
*/
public class PureQR implements QRStep {
@Override
public int compute(Matrix matrix, Matrix partner, int beginRow, int endRow, boolean fullUpper) {
int endCol = fullUpper ? matrix.getColCount() : endRow;
List<Givens> givens = this.qrDecomp(matrix, beginRow, endRow, endCol);
GivensRQ rq = new GivensRQ(givens);
int next = rq.compute(matrix, beginRow, endRow, fullUpper ? GivensMode.UPPER : GivensMode.DEFLATE);
if(partner != null){
rq.compute(partner, beginRow, endRow, GivensMode.FULL);
}
return next;
}
/**
* Compute QR decomposition of an Hessenberg matrix by Givens rotation.
* @param matrix Input matrix A
* @param beginRow Begin index of rows of interest
* @param endRow End index of rows of interest
* @param endCol End index of columns of interest
* @return List of Givens rotation applied.
*/
protected List<Givens> qrDecomp(Matrix matrix, int beginRow, int endRow, int endCol) {
int n = endRow - 1;
Givens[] givens = new Givens[n - beginRow];
int k = 0;
for(int i = beginRow; i < n; i++){
double[] upper = matrix.getRow(i);
double[] lower = matrix.getRow(i + 1);
givens[k++] = Givens.of(upper[i], lower[i]).applyLeft(upper, lower, i, endCol);
matrix.setRow(i, upper).setRow(i + 1, lower);
}
return Arrays.asList(givens);
}
}
|
ztcaoll222/gecco
|
src/main/java/com/geccocrawler/gecco/request/HttpPostRequest.java
|
<reponame>ztcaoll222/gecco<gh_stars>0
package com.geccocrawler.gecco.request;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.geccocrawler.gecco.emuns.MethodEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.util.Map;
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Data
public class HttpPostRequest extends AbstractHttpRequest {
private static final long serialVersionUID = -4451221207994730839L;
public HttpPostRequest() {
super(MethodEnum.POST);
}
public HttpPostRequest(String url) {
super(url, MethodEnum.POST);
}
public HttpPostRequest(String url, Map<String, String> params) {
super(url, MethodEnum.POST);
this.parameters.putAll(params);
}
public static HttpPostRequest fromJson(JSONObject request) {
return JSON.toJavaObject(request, HttpPostRequest.class);
}
}
|
diogocs1/comps
|
web/addons/payment_adyen/tests/__init__.py
|
<reponame>diogocs1/comps
# -*- coding: utf-8 -*-
# from . import test_adyen
checks = [
# test_adyen,
]
|
FDA/Healthy-Citizen-Code
|
adp-frontend-web-v3/app/adp-forms/directives/adp-form-fields/adp-form-field-location/adp-form-field-location.directive.js
|
<gh_stars>1-10
(function () {
'use strict';
angular
.module('app.adpForms')
.directive('adpFormFieldLocation', adpFormFieldLocation);
function adpFormFieldLocation(
AdpGeoLocationService,
NgMap,
$q
) {
return {
restrict: 'E',
scope: {
adpField: '=',
adpFormData: '=',
adpFieldUiProps: '='
},
templateUrl: 'app/adp-forms/directives/adp-form-fields/adp-form-field-location/adp-form-field-location.html',
require: '^^form',
link: function (scope, el, attrs, formCtrl) {
var mapDefaults = {
center: [37.753344,-122.409668],
zoom: 16,
markerPosition: [37.753344,-122.409668]
};
var fieldParamsDefaults = {
autodetect: true,
showMap: true,
showLocate: true,
showAddress: true
};
scope.field = scope.adpField;
scope.adpFormData[scope.field.keyName] = scope.adpFormData[scope.field.keyName] || [];
scope.labelName = scope.field.keyName + '_label';
scope.adpFormData[scope.labelName] = scope.adpFormData[scope.labelName] || '';
scope.form = formCtrl;
scope.uiProps = scope.adpFieldUiProps;
scope.detecting = false;
scope.isReady = false;
scope.fieldParams = _.extend(fieldParamsDefaults, scope.field.parameters);
scope.map = {};
function init() {
var setupMapPromise = scope.fieldParams.showMap ? setupMap : $q.when;
AdpGeoLocationService.isReady()
.then(function() {
scope.isReady = true;
})
.then(setupMapPromise)
.then(setInitialValuePromise);
}
init();
function setInitialValuePromise() {
if (!_.isEmpty(scope.adpFormData[scope.field.keyName])) {
return coordsToAddress(scope.adpFormData[scope.field.keyName]);
}
if (scope.fieldParams.autodetect) {
return detect();
}
return $q.when();
}
function setupMap() {
scope.map = _.clone(mapDefaults);
return NgMap.getMap()
.then(function(map) {
scope.mapInstance = map;
scope.marker = map.markers[0];
return;
});
}
function detect() {
onDetectStart();
return AdpGeoLocationService.getLocation()
.then(coordsToAddress)
.then(setFormValidity.bind(this, true));
}
function onDetectStart() {
scope.detecting = true;
setAddress('');
}
function coordsToAddress(coords) {
onDetectStart();
scope.map.center = coords;
scope.map.markerPosition = _.clone(scope.map.center);
if (scope.mapInstance) {
setCenter();
}
return AdpGeoLocationService.reverseGeocode(scope.map.center)
.then(setData);
}
function setData(address) {
scope.adpFormData[scope.field.keyName] = scope.map.center;
setAddress(address);
scope.detecting = false;
return;
}
function setAddress(address) {
scope.adpFormData[scope.labelName] = address;
}
function setCenter() {
var latLng = new google.maps.LatLng(scope.map.center[0], scope.map.center[1]);
scope.marker.setPosition(latLng);
scope.mapInstance.setCenter(latLng);
}
function setFormValidity(status) {
scope.form[scope.field.keyName].$setValidity('location', status);
scope.form[scope.field.keyName].$setDirty();
}
// events
scope.detect = detect;
scope.onClick = function(e) {
scope.map.center = [e.latLng.lat(), e.latLng.lng()];
scope.map.markerPosition = _.clone(scope.map.center);
coordsToAddress(scope.map.center);
};
scope.placeChanged = function() {
var place = this.getPlace();
var promise = !!place.geometry ? $q.when(place) : AdpGeoLocationService.geocode(place.name);
promise
.then(function(place) {
if (place.geometry) {
scope.map.center = [place.geometry.location.lat(), place.geometry.location.lng()];
scope.map.markerPosition = _.clone(scope.map.center);
setData(place.name);
setCenter();
}
setFormValidity(!!place.geometry);
});
};
scope.preventSubmitOnEnter = function(e) {
if (e.keyCode === 13) {
e.preventDefault();
}
}
}
}
}
})();
|
fredhamster/feisty_meow
|
documentation/headers/uva_header.java
|
/**
* {one-line description}
* {extended information...}
* @author <NAME>
* @copyright Copyright (c) 2012-$now By University of Virginia
* @license Apache License v2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
|
14ms/Minecraft-Disclosed-Source-Modifications
|
Astomero/net/minecraft/item/ItemFirework.java
|
package net.minecraft.item;
import net.minecraft.entity.player.*;
import net.minecraft.world.*;
import net.minecraft.entity.item.*;
import net.minecraft.entity.*;
import net.minecraft.util.*;
import com.google.common.collect.*;
import java.util.*;
import net.minecraft.nbt.*;
public class ItemFirework extends Item
{
@Override
public boolean onItemUse(final ItemStack stack, final EntityPlayer playerIn, final World worldIn, final BlockPos pos, final EnumFacing side, final float hitX, final float hitY, final float hitZ) {
if (!worldIn.isRemote) {
final EntityFireworkRocket entityfireworkrocket = new EntityFireworkRocket(worldIn, pos.getX() + hitX, pos.getY() + hitY, pos.getZ() + hitZ, stack);
worldIn.spawnEntityInWorld(entityfireworkrocket);
if (!playerIn.capabilities.isCreativeMode) {
--stack.stackSize;
}
return true;
}
return false;
}
@Override
public void addInformation(final ItemStack stack, final EntityPlayer playerIn, final List<String> tooltip, final boolean advanced) {
if (stack.hasTagCompound()) {
final NBTTagCompound nbttagcompound = stack.getTagCompound().getCompoundTag("Fireworks");
if (nbttagcompound != null) {
if (nbttagcompound.hasKey("Flight", 99)) {
tooltip.add(StatCollector.translateToLocal("item.fireworks.flight") + " " + nbttagcompound.getByte("Flight"));
}
final NBTTagList nbttaglist = nbttagcompound.getTagList("Explosions", 10);
if (nbttaglist != null && nbttaglist.tagCount() > 0) {
for (int i = 0; i < nbttaglist.tagCount(); ++i) {
final NBTTagCompound nbttagcompound2 = nbttaglist.getCompoundTagAt(i);
final List<String> list = (List<String>)Lists.newArrayList();
ItemFireworkCharge.addExplosionInfo(nbttagcompound2, list);
if (list.size() > 0) {
for (int j = 1; j < list.size(); ++j) {
list.set(j, " " + list.get(j));
}
tooltip.addAll(list);
}
}
}
}
}
}
}
|
Li-YangZhong/professional-javascript-for-web-developers
|
Chapter3LanguageBasics/DataTypes/TheStringType/TemplateLiteralTagFunctions/TemplateLiteralTagFunctionsExample01.js
|
<reponame>Li-YangZhong/professional-javascript-for-web-developers
let a = 6;
let b = 9;
function simpleTag(strings, aValExpression, bValExpression, sumExpression) {
console.log(strings);
console.log(aValExpression);
console.log(bValExpression);
console.log(sumExpression);
return 'foobar';
}
let untaggedResult = `${ a } + ${ b } = ${ a + b }`;
let taggedResult = simpleTag`${ a } + ${ b } = ${ a + b }`;
// ["", " + ", " = ", ""]
// 6
// 9
// 15
console.log(untaggedResult); // "6 + 9 = 15"
console.log(taggedResult); // "foobar"
|
aclisp/goim
|
libs/define/option.go
|
package define
// 这里定义所有上行消息 RPCInput 的可选项。内建的名称,只允许小写(a-z)和连字符(-)
const (
// 长连接鉴权时使用
UID = "uid"
Token = "token"
AppID = "appid"
ConnID = "connid" // 同一uid下connid唯一
// 长连接鉴权时使用,切换房间时使用
SubscribeRoom = "subscribe-room-push"
IsAnonymousUser = "is-anonymous-user"
HeartbeatThreshold = "heartbeat-threshold"
// 连接相关信息
ClientIP = "client-ip"
ClientPort = "client-port"
AccessPointIP = "access-point-ip"
AccessPointPort = "access-point-port"
)
|
erezrokah/appsmith
|
app/server/appsmith-server/src/main/java/com/appsmith/server/events/CommentNotificationEvent.java
|
package com.appsmith.server.events;
public enum CommentNotificationEvent {
CREATED, UPDATED, RESOLVED, TAGGED, DELETED
}
|
hakandilek/play2-crud
|
project-code/app/play/utils/dao/PageAdapter.java
|
package play.utils.dao;
import com.avaje.ebean.Page;
public abstract class PageAdapter<S, T> implements Page<T> {
protected Page<S> delegate;
public PageAdapter(Page<S> delegate) {
this.delegate = delegate;
}
/**
* created a new page adapter. used to create prev/next pages
* @param delegate page delegate
* @return a new page adapter
*/
public abstract PageAdapter<S, T> create(Page<S> delegate);
@Override
public int getTotalRowCount() {
return delegate.getTotalRowCount();
}
@Override
public int getTotalPageCount() {
return delegate.getTotalPageCount();
}
@Override
public int getPageIndex() {
return delegate.getPageIndex();
}
@Override
public boolean hasNext() {
return delegate.hasNext();
}
@Override
public boolean hasPrev() {
return delegate.hasPrev();
}
@Override
public Page<T> next() {
Page<S> p = delegate.next();
return create(p);
}
@Override
public Page<T> prev() {
Page<S> p = delegate.prev();
return create(p);
}
@Override
public String getDisplayXtoYofZ(String to, String of) {
return delegate.getDisplayXtoYofZ(to, of);
}
}
|
nnadams/mage
|
Mage.Sets/src/mage/cards/r/RedDragon.java
|
package mage.cards.r;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.DamagePlayersEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.TargetController;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class RedDragon extends CardImpl {
public RedDragon(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}{R}");
this.subtype.add(SubType.DRAGON);
this.power = new MageInt(4);
this.toughness = new MageInt(4);
// Flying
this.addAbility(FlyingAbility.getInstance());
// Fire Breath — When Red Dragon enters the battlefield, it deals 4 damage to each opponent.
this.addAbility(new EntersBattlefieldTriggeredAbility(new DamagePlayersEffect(
4, TargetController.OPPONENT, "it"
)).withFlavorWord("Fire Breath"));
}
private RedDragon(final RedDragon card) {
super(card);
}
@Override
public RedDragon copy() {
return new RedDragon(this);
}
}
|
k18n/vertexium
|
core/src/main/java/org/vertexium/ExtendedDataRow.java
|
package org.vertexium;
public interface ExtendedDataRow extends VertexiumObject {
/**
* Meta property name used for sorting
*/
String ELEMENT_ID = "__extendedDataElementId";
/**
* Meta property name used for sorting
*/
String ELEMENT_TYPE = "__extendedDataElementType";
/**
* Meta property name used for sorting and aggregations
*/
String TABLE_NAME = "__extendedDataTableName";
/**
* Meta property name used for sorting
*/
String ROW_ID = "__extendedDataRowId";
/**
* Id of the row
*/
ExtendedDataRowId getId();
/**
* Get the names of all the properties of this row.
*/
Iterable<String> getPropertyNames();
/**
* Fetch hints used to get this row. {@code FetchHints.ALL} if this is a new row.
*/
FetchHints getFetchHints();
}
|
ivartanian/JVx.javafx
|
src/com/sibvisions/rad/ui/javafx/ext/StyleContainer.java
|
<reponame>ivartanian/JVx.javafx
/*
* Copyright 2015 SIB Visions GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.sibvisions.rad.ui.javafx.ext;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javafx.scene.Cursor;
import javafx.scene.Node;
import javafx.scene.control.MenuItem;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
/**
* The {@link StyleContainer} is a helper class that allows to easily manage the
* {@link Node#styleProperty()} with a {@link Map} like interface.
*
* @author <NAME>
*/
public class StyleContainer
{
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Constants
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/** The property name for the background color. */
protected static final String PROPERTY_BACKGROUND_COLOR = "-fx-background-color";
/** The property name for the cursor. */
protected static final String PROPERTY_CURSOR = "-fx-cursor";
/** The property name for the font family. */
protected static final String PROPERTY_FONT_FAMILY = "-fx-font-family";
/** The property name for the font weight. */
protected static final String PROPERTY_FONT_WEIGHT = "-fx-font-weight";
/** The property name for the font style. */
protected static final String PROPERTY_FONT_STYLE = "-fx-font-style";
/** The property name for the font size. */
protected static final String PROPERTY_FONT_SIZE = "-fx-font-size";
/** The property name for the inner background color. */
protected static final String PROPERTY_INNER_BACKGROUND = "-fx-control-inner-background";
/** The property name for the text fill color. */
protected static final String PROPERTY_TEXT_FILL = "-fx-text-fill";
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Class members
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/** The value to append after the declarations. */
private String after;
/**
* If automatic updates (whenever a value is set or cleared) are enabled.
*/
private boolean automaticUpdatesEnabled;
/** The value to append before the declarations. */
private String before;
/** The {@link Map} that holds declarations. */
private Map<String, String> declarations = new HashMap<>();
/** The {@link Map} that holds associated objects. */
private Map<String, Object> objects = new HashMap<>();
/** The parent {@link MenuItem}. */
private MenuItem parentMenuItem;
/** The parent {@link Node}. */
private Node parentNode;
/** The string representation of this. */
private String style;
/** The listeners for when an update occurs. */
private List<WeakReference<Runnable>> updateListeners;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Initialization
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* Creates a new instance of {@link StyleContainer}.
*/
public StyleContainer()
{
automaticUpdatesEnabled = true;
style = "";
updateListeners = new ArrayList<>();
}
/**
* Creates a new instance of {@link StyleContainer}.
*
* @param pParent the parent.
*/
public StyleContainer(MenuItem pParent)
{
this();
parentMenuItem = pParent;
}
/**
* Creates a new instance of {@link StyleContainer}.
*
* @param pParent the parent.
*/
public StyleContainer(Node pParent)
{
this();
parentNode = pParent;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Overwritten methods
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* {@inheritDoc}
*/
@Override
public String toString()
{
return style;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// User-defined methods
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* Adds an {@link Runnable update listener} which is invoked everytime the
* style is updated.
*
* @param pListener the {@link Runnable listener}.
*/
public void addUpdateListener(Runnable pListener)
{
updateListeners.add(new WeakReference<Runnable>(pListener));
}
/**
* Clears all set properties from this {@link StyleContainer}, including the
* set {@link #setAfter(String)} and {@link #setBefore(String)} values.
*/
public void clear()
{
declarations.clear();
objects.clear();
after = null;
before = null;
if (automaticUpdatesEnabled)
{
updateStyle();
}
}
/**
* Clears the given property (if any).
*
* @param pPropertyName the name of the property.
*/
public void clear(String pPropertyName)
{
declarations.remove(pPropertyName);
objects.remove(pPropertyName);
if (automaticUpdatesEnabled)
{
updateStyle();
}
}
/**
* Gets the string to be appended after the set declarations.
*
* @return the string to be appended after the set declarations.
*/
public String getAfter()
{
return after;
}
/**
* Gets the value of the background color property.
*
* @return the {@link Color} of the background color property. {@code null}
* if it is not set.
*/
public Color getBackgroundColor()
{
return (Color)getObject(PROPERTY_BACKGROUND_COLOR);
}
/**
* Gets the string to be appended before the set declarations.
*
* @return the string to be appended before the set declarations.
*/
public String getBefore()
{
return before;
}
/**
* Gets the value of the cursor property.
*
* @return the {@link Cursor} of the cursor property. {@code null} if it is
* not set.
*/
public Cursor getCursor()
{
String cursor = (String)getObject(PROPERTY_CURSOR);
if (cursor != null)
{
return Cursor.cursor(cursor.toUpperCase().replace('-', '_'));
}
else
{
return null;
}
}
/**
* Gets the value of the font/text fill property.
*
* @return the {@link Font} of the font/text fill property. {@code null} if
* it is not set.
*/
public Font getFont()
{
Font font = (Font)getObject(PROPERTY_FONT_FAMILY);
if (font == null)
{
font = (Font)getObject(PROPERTY_FONT_SIZE);
}
if (font == null)
{
font = (Font)getObject(PROPERTY_FONT_STYLE);
}
if (font == null)
{
font = (Font)getObject(PROPERTY_FONT_WEIGHT);
}
return font;
}
/**
* Gets the value of the foreground color property.
*
* @return the {@link Color} of the foreground color property. {@code null}
* if it is not set.
*/
public Color getForeground()
{
return (Color)getObject(PROPERTY_TEXT_FILL);
}
/**
* Gets the value of the inner background property.
*
* @return the {@link Color} of the inner background property. {@code null}
* if it is not set.
*/
public Color getInnerBackground()
{
return (Color)getObject(PROPERTY_INNER_BACKGROUND);
}
/**
* Gets the object associated with the given property name.
*
* @param pPropertyName the name of the property.
* @return the associated object. {@code null} if there is none.
*/
public Object getObject(String pPropertyName)
{
return objects.get(pPropertyName);
}
/**
* Gets the style as string.
*
* @return the style as string.
*/
public String getStyle()
{
StringBuilder styleBuilder = new StringBuilder();
if (before != null && before.length() > 0)
{
styleBuilder.append(before);
}
for (Map.Entry<String, String> entry : declarations.entrySet())
{
styleBuilder.append(entry.getKey());
styleBuilder.append(": ");
styleBuilder.append(entry.getValue());
styleBuilder.append(";\n");
}
if (after != null && after.length() > 0)
{
styleBuilder.append(after);
}
return styleBuilder.toString();
}
/**
* Gets the value of the given property name.
*
* @param pPropertyName the name of the property.
* @return the value. {@code null} if there is none.
*/
public String getValue(String pPropertyName)
{
return declarations.get(pPropertyName);
}
/**
* Gets if the property with the given name is set.
*
* @param pPropertyName the name of the property.
* @return {@code true} if the property is set.
*/
public boolean isSet(String pPropertyName)
{
return declarations.containsKey(pPropertyName);
}
/**
* Removes the given {@link Runnable listener}.
*
* @param pListener the {@link Runnable listener} to remove.
*/
public void removeUpdateListener(Runnable pListener)
{
Iterator<WeakReference<Runnable>> iterator = updateListeners.iterator();
while (iterator.hasNext())
{
Runnable listener = iterator.next().get();
if (listener != null && listener == pListener)
{
iterator.remove();
}
}
removeDeadUpdateListeners();
}
/**
* Sets the property with the given name to the given value.
*
* @param pPropertyName the name of the property.
* @param pValue the value of the property.
*/
public void set(String pPropertyName, String pValue)
{
set(pPropertyName, pValue, null);
}
/**
* Sets the property with the given name to the given value.
*
* @param pPropertyName the name of the property.
* @param pValue the value of the property.
* @param pObject the associated object.
*/
public void set(String pPropertyName, String pValue, Object pObject)
{
declarations.put(pPropertyName, pValue);
objects.put(pPropertyName, pObject);
if (automaticUpdatesEnabled)
{
updateStyle();
}
}
/**
* Sets the string to be appended after the set declarations.
*
* @param pAfter the string to be appended after the set declarations.
*/
public void setAfter(String pAfter)
{
after = pAfter;
if (automaticUpdatesEnabled)
{
updateStyle();
}
}
/**
* Sets the background color property.
*
* @param pColor the {@link Color} to set. {@code null} to clear the
* property.
*/
public void setBackground(Color pColor)
{
if (pColor != null)
{
set(PROPERTY_BACKGROUND_COLOR, toHexString(pColor), pColor);
}
else
{
clear(PROPERTY_BACKGROUND_COLOR);
}
}
/**
* Sets the string to be appended before the set declarations.
*
* @param pBefore the string to be appended before the set declarations.
*/
public void setBefore(String pBefore)
{
before = pBefore;
if (automaticUpdatesEnabled)
{
updateStyle();
}
}
/**
* Sets the cursor property.
*
* @param pCursor the {@link Cursor} to set. {@code null} to clear the
* property.
*/
public void setCursor(Cursor pCursor)
{
if (pCursor != null)
{
set(PROPERTY_CURSOR, pCursor.toString().toLowerCase().replace('_', '-'), pCursor);
}
else
{
clear(PROPERTY_CURSOR);
}
}
/**
* Sets the font property.
*
* @param pFont the {@link Font} to set. {@code null} to clear the property.
*/
public void setFont(Font pFont)
{
setAutomaticUpdatesEnabled(false);
clear(PROPERTY_FONT_FAMILY);
clear(PROPERTY_FONT_SIZE);
clear(PROPERTY_FONT_STYLE);
if (pFont != null)
{
if (pFont.getFamily() != null && pFont.getFamily().length() > 0)
{
setQuoted(PROPERTY_FONT_FAMILY, pFont.getFamily(), pFont);
}
if (pFont.getSize() > 0)
{
set(PROPERTY_FONT_SIZE, String.format(Locale.ENGLISH, "%#.2f", Double.valueOf(pFont.getSize())) + "px", pFont);
}
if (pFont.getStyle() != null && !pFont.getStyle().isEmpty())
{
if (pFont.getStyle().contains("Bold"))
{
set(PROPERTY_FONT_WEIGHT, "bold", pFont);
}
if (pFont.getStyle().contains("Italic"))
{
set(PROPERTY_FONT_STYLE, "italic", pFont);
}
}
}
setAutomaticUpdatesEnabled(true);
updateStyle();
}
/**
* Sets the foreground color property.
*
* @param pColor the {@link Color} to set. {@code null} to clear the
* property.
*/
public void setForeground(Color pColor)
{
if (pColor != null)
{
set(PROPERTY_TEXT_FILL, toHexString(pColor), pColor);
}
else
{
clear(PROPERTY_TEXT_FILL);
}
}
/**
* Sets the inner background color property.
*
* @param pColor the {@link Color} to set. {@code null} to clear the
* property.
*/
public void setInnerBackground(Color pColor)
{
if (pColor != null)
{
set(PROPERTY_INNER_BACKGROUND, toHexString(pColor), pColor);
}
else
{
clear(PROPERTY_INNER_BACKGROUND);
}
}
/**
* Sets the given {@link MenuItem} as new parent. If there is an old parent,
* styles are removed from it.
*
* @param pMenuItem the {@link MenuItem} as new parent.
*/
public void setParent(MenuItem pMenuItem)
{
removeStyle();
parentMenuItem = pMenuItem;
parentNode = null;
updateStyle();
}
/**
* Sets the given {@link Node} as new parent. If there is an old parent,
* styles are removed from it.
*
* @param pNode the {@link Node} as new parent.
*/
public void setParent(Node pNode)
{
removeStyle();
parentMenuItem = null;
parentNode = pNode;
updateStyle();
}
/**
* Sets the property with the given name to the given value, the value will
* be quoted.
*
* @param pPropertyName the name of the property.
* @param pValue the value of the property.
*/
public void setQuoted(String pPropertyName, String pValue)
{
setQuoted(pPropertyName, pValue, null);
}
/**
* Sets the property with the given name to the given value, the value will
* be quoted.
*
* @param pPropertyName the name of the property.
* @param pValue the value of the property.
* @param pObject the associated object.
*/
public void setQuoted(String pPropertyName, String pValue, Object pObject)
{
set(pPropertyName, "\"" + pValue + "\"", pObject);
}
/**
* Removes any set style from the parent, if any.
*/
public void removeStyle()
{
if (parentNode != null)
{
parentNode.setStyle(getStyle());
}
else if (parentMenuItem != null)
{
parentMenuItem.setStyle(getStyle());
}
}
/**
* Notifies all {@link #updateListeners}.
*/
protected void notifyUpdateListeners()
{
for (WeakReference<Runnable> weakListener : updateListeners)
{
Runnable listener = weakListener.get();
if (listener != null)
{
listener.run();
}
}
}
/**
* Removes all dead {@link Runnable listener}s.
*/
protected void removeDeadUpdateListeners()
{
Iterator<WeakReference<Runnable>> iterator = updateListeners.iterator();
while (iterator.hasNext())
{
Runnable listener = iterator.next().get();
if (listener == null)
{
iterator.remove();
}
}
}
/**
* Sets if the automatic updates are enabled.
* <p>
* An automatic update in this case means that every set/clear will be
* directly propagated to the parent. If you want to bulk set/clear
* properties, disable them, enable them afterwards and call
* {@link #updateStyle()} once.
*
* @param pEnabled {@code true} if they should be enabled.
*/
protected void setAutomaticUpdatesEnabled(boolean pEnabled)
{
automaticUpdatesEnabled = pEnabled;
}
/**
* Converts the given {@link Color} to the hex-representation, including
* leading number sign.
*
* @param pColor the {@link Color}.
* @return the hex representation, including leading number sign.
*/
protected String toHexString(Color pColor)
{
if ((pColor.getRed() < 1 && pColor.getRed() > 0)
|| (pColor.getGreen() < 1 && pColor.getGreen() > 0)
|| (pColor.getBlue() < 1 && pColor.getBlue() > 0))
{
return String.format("#%02X%02X%02X",
Integer.valueOf((int)(pColor.getRed() * 255)),
Integer.valueOf((int)(pColor.getGreen() * 255)),
Integer.valueOf((int)(pColor.getBlue() * 255)));
}
else
{
return String.format("#%02X%02X%02X",
Integer.valueOf((int)(pColor.getRed()) * 255),
Integer.valueOf((int)(pColor.getGreen()) * 255),
Integer.valueOf((int)(pColor.getBlue()) * 255));
}
}
/**
* Updates the parent with all changes.
*/
protected void updateStyle()
{
if (parentNode != null)
{
parentNode.setStyle(getStyle());
}
else if (parentMenuItem != null)
{
parentMenuItem.setStyle(getStyle());
}
notifyUpdateListeners();
}
} // StyleContainer
|
salaozen/enotas_api
|
spec/enotas_api/v1/consultar_nfs_spec.rb
|
<reponame>salaozen/enotas_api<filename>spec/enotas_api/v1/consultar_nfs_spec.rb<gh_stars>1-10
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe EnotasApi::V1::ConsultarNfs do
let(:empresa_id) { 123 }
let(:nfe_id) { 456 }
let(:instance) { described_class.new(empresa_id, nfe_id) }
it 'implements uri' do
expect(instance.uri).to eq("/v1/empresas/#{empresa_id}/nfes/#{nfe_id}")
end
end
|
infinitiessoft/skyport-hazelcast
|
src/test/java/com/infinities/skyport/distributed/impl/hazelcast/hazeltask/executor/SimpleDistributedFutureTest.java
|
/*******************************************************************************
* Copyright 2015 InfinitiesSoft Solutions Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*******************************************************************************/
package com.infinities.skyport.distributed.impl.hazelcast.hazeltask.executor;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.UUID;
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicReference;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.jmock.integration.junit4.JUnit4Mockery;
import org.jmock.lib.concurrent.Synchroniser;
import org.jmock.lib.legacy.ClassImposteriser;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
//@Category(IntegrationTest.class)
public class SimpleDistributedFutureTest {
protected Mockery context = new JUnit4Mockery() {
{
setThreadingPolicy(new Synchroniser());
setImposteriser(ClassImposteriser.INSTANCE);
}
};
private SimpleDistributedFuture<String> f;
private IExecutorTopologyService service;
private String id;
@Before
public void setUp() throws Exception {
id = UUID.randomUUID().toString();
service = context.mock(IExecutorTopologyService.class);
f = new SimpleDistributedFuture<String>(service, id);
}
@After
public void tearDown() throws Exception {
f.set("done");
f = null;
}
@Test(expected = CancellationException.class)
public void testCancel() throws InterruptedException, ExecutionException {
context.checking(new Expectations() {
{
oneOf(service).cancelTask(id);
will(returnValue(true));
}
});
assertFalse(f.isDone());
assertTrue(f.cancel(true));
assertTrue(f.isDone());
assertTrue(f.isCancelled());
f.get();
}
@Test(expected = CancellationException.class)
public void testCancel3() throws InterruptedException, ExecutionException {
context.checking(new Expectations() {
{
oneOf(service).cancelTask(id);
will(returnValue(true));
}
});
assertFalse(f.isDone());
assertTrue(f.cancel(false));
assertTrue(f.isDone());
assertTrue(f.isCancelled());
f.get();
}
@Test(expected = TimeoutException.class)
public void testCancel2() throws InterruptedException, ExecutionException, TimeoutException {
context.checking(new Expectations() {
{
oneOf(service).cancelTask(id);
will(returnValue(false));
}
});
assertFalse(f.isDone());
assertFalse(f.cancel(true));
assertFalse(f.isDone());
assertFalse(f.isCancelled());
f.get(10, TimeUnit.MILLISECONDS);
}
@Test(expected = TimeoutException.class)
public void testCancel4() throws InterruptedException, ExecutionException, TimeoutException {
context.checking(new Expectations() {
{
oneOf(service).cancelTask(id);
will(returnValue(false));
}
});
assertFalse(f.isDone());
assertFalse(f.cancel(false));
assertFalse(f.isDone());
assertFalse(f.isCancelled());
f.get(10, TimeUnit.MILLISECONDS);
}
@Test(expected = CancellationException.class)
public void testSetCancelled() throws InterruptedException, ExecutionException {
f = new SimpleDistributedFuture<String>(service, id);
assertFalse(f.isDone());
assertTrue(f.setCancelled(true));
assertTrue(f.isDone());
assertTrue(f.isCancelled());
f.get();
}
@Test(expected = CancellationException.class)
public void testSetCancelled2() throws InterruptedException, ExecutionException {
assertFalse(f.isDone());
assertTrue(f.setCancelled(false));
assertTrue(f.isDone());
assertTrue(f.isCancelled());
f.get();
}
@Test(expected = ExecutionException.class)
public void testSetExceptionThrowable() throws InterruptedException, ExecutionException {
f.setException(new IllegalStateException("test"));
f.get();
}
@Test
public void testSetT() {
assertFalse(f.isDone());
f.set("test");
assertTrue(f.isDone());
}
@Test(expected = TimeoutException.class)
public void testGetTimeout() throws InterruptedException, TimeoutException, ExecutionException {
f.get(10, TimeUnit.MILLISECONDS);
}
@Test(timeout = 300)
public void testGetWithThreadSet() throws InterruptedException, TimeoutException, ExecutionException {
Thread t = new Thread() {
@Override
public void run() {
try {
Thread.sleep(100);
f.set("Hello");
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}
};
t.start();
assertEquals("Hello", f.get());
}
@Test
public void testListenableFuture() throws InterruptedException {
final AtomicReference<String> ref = new AtomicReference<String>();
Futures.addCallback(f, new FutureCallback<String>() {
@Override
public void onSuccess(String result) {
ref.set(result);
}
@Override
public void onFailure(Throwable t) {
throw new RuntimeException(t);
}
});
Thread t = new Thread() {
@Override
public void run() {
f.set("Hello");
}
};
t.start();
Thread.sleep(100);
Assert.assertEquals("Hello", ref.get());
}
@Test
public void testListenableFutureException() throws InterruptedException {
final AtomicReference<Boolean> ref = new AtomicReference<Boolean>();
Futures.addCallback(f, new FutureCallback<String>() {
@Override
public void onSuccess(String result) {
}
@Override
public void onFailure(Throwable t) {
ref.set(t instanceof IllegalStateException);
}
});
Thread t = new Thread() {
@Override
public void run() {
f.setException(new IllegalStateException("test"));
}
};
t.start();
Thread.sleep(100);
Assert.assertTrue(ref.get());
}
@Test
public void testGetTaskId() {
assertEquals(id, f.getTaskId());
}
@Test
public void testGetCreatedTime() throws InterruptedException {
Thread.sleep(10);
long now = System.currentTimeMillis();
SimpleDistributedFuture<String> f = new SimpleDistributedFuture<String>(service, id);
assertTrue(timeBuffer(now, (long) f.getCreatedTime()));
}
private boolean timeBuffer(long expected, long actual) {
long buffer = 2;
return actual <= (expected + buffer) && actual >= (expected - buffer);
}
}
|
FernandaLVItau/bootcamp-01-template-proposta
|
src/main/java/br/com/zup/cartaoproposta/entities/cartao/aviso/AvisoCartao.java
|
package br.com.zup.cartaoproposta.entities.cartao.aviso;
import br.com.zup.cartaoproposta.entities.cartao.Cartao;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
* Contagem de carga intrínseca da classe: 1
*/
@Entity
public class AvisoCartao {
@Id
@GeneratedValue(generator = "UUID")
@GenericGenerator(name = "UUID", strategy = "org.hibernate.id.UUIDGenerator")
private String id;
@NotNull
private LocalDate validoAte;
@NotBlank
private String destino;
private LocalDateTime avisoEm = LocalDateTime.now();
@NotBlank
private String ip;
@NotBlank
private String userAgent;
@Valid
@ManyToOne
//1
private Cartao cartao;
@Deprecated
public AvisoCartao() {}
public AvisoCartao(@NotNull LocalDate validoAte, @NotBlank String destino, @NotBlank String ip, @NotBlank String userAgent, @Valid Cartao cartao) {
this.validoAte = validoAte;
this.destino = destino;
this.ip = ip;
this.userAgent = userAgent;
this.cartao = cartao;
}
public String getId() {
return id;
}
@Override
public String toString() {
return "AvisoCartao{" +
"id='" + id + '\'' +
", validoAte=" + validoAte +
", destino='" + destino + '\'' +
", avisoEm=" + avisoEm +
", ip='" + ip + '\'' +
", userAgent='" + userAgent + '\'' +
", cartao=" + cartao +
'}';
}
}
|
AndrewGuthua/JournalSystem
|
base/src/main/java/org/ambraproject/service/migration/SchemaMigration.java
|
/*
* Copyright (c) 2006-2013 by Public Library of Science
*
* http://plos.org
* http://ambraproject.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ambraproject.service.migration;
import com.google.common.base.Preconditions;
import org.ambraproject.models.Version;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.orm.hibernate3.HibernateCallback;
import org.springframework.orm.hibernate3.HibernateTemplate;
import java.sql.SQLException;
/**
* A "non-legacy" migration object. Its version number refers to a <em>schema</em> version and not an Ambra release
* version, hence the class name.
*
* @author <NAME>
*/
abstract class SchemaMigration implements Migration {
private static Logger log = LoggerFactory.getLogger(SchemaMigration.class);
/**
* Minimum (exclusive) value for post-legacy migrations. Any migration with a version less than 1000 has its version
* number (undesirably) tied to an Ambra release. Migration version numbers greater than 1000 identify the schema
* version only and are independent from Ambra release version numbers.
*/
static final int THRESHOLD = 1000;
private final int version;
SchemaMigration(int version) {
Preconditions.checkArgument(version > THRESHOLD,
"Migration version numbers below " + THRESHOLD + " are reserved for legacy migrations");
this.version = version;
}
/**
* {@inheritDoc}
*/
@Override
public final int getVersion() {
return version;
}
/**
* {@inheritDoc}
*/
@Override
public final void migrate(HibernateTemplate hibernateTemplate) {
log.info("Migration to {} starting", version);
hibernateTemplate.execute(new HibernateCallback<Version>() {
@Override
public Version doInHibernate(Session session) throws HibernateException, SQLException {
Version versionObj = new Version();
versionObj.setName("Schema " + version);
versionObj.setVersion(version);
versionObj.setUpdateInProcess(true);
session.save(versionObj);
execute(session);
versionObj.setUpdateInProcess(false);
session.update(versionObj);
return versionObj;
}
});
log.info("Migration to {} complete", version);
}
/**
* Execute the migration. This method should affect only the tables being migrated, not the {@code version} table.
*
* @param session the Hibernate session
* @throws SQLException
*/
protected abstract void execute(Session session) throws SQLException;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SchemaMigration that = (SchemaMigration) o;
return (version == that.version);
}
@Override
public int hashCode() {
return version;
}
}
|
kyokan/fnd
|
testutil/testflags/flags.go
|
package testflags
import (
"os"
"testing"
)
func IntegrationTest(t *testing.T) {
_, ok := os.LookupEnv("Footnote_ENABLE_INTEGRATION_TESTS")
if !ok {
t.SkipNow()
}
t.Parallel()
}
func HandshakeTest(t *testing.T) {
_, ok := os.LookupEnv("Footnote_ENABLE_HANDSHAKE_TESTS")
if !ok {
t.SkipNow()
}
t.Parallel()
}
|
globalmiles/ecommerce-java-sdk
|
src/main/java/com/globalmiles/api/ecommerce/models/ListMilePaymentResponseBuilder.java
|
/*
* GlobalMilesECommerceAPILib
*
* This file was automatically generated for Global Miles by APIMATIC v2.0 ( https://apimatic.io ).
*/
package com.globalmiles.api.ecommerce.models;
import java.util.*;
public class ListMilePaymentResponseBuilder
extends ResponseBuilder {
//the instance to build
private ListMilePaymentResponse listMilePaymentResponse;
/**
* Default constructor to initialize the instance
*/
public ListMilePaymentResponseBuilder() {
listMilePaymentResponse = new ListMilePaymentResponse();
}
/**
* Result object of the response.
*/
public ListMilePaymentResponseBuilder result(List<Payment> result) {
listMilePaymentResponse.setResult(result);
return this;
}
/**
* Build the instance with the given values
*/
public ListMilePaymentResponse build() {
return listMilePaymentResponse;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.