text stringlengths 4 6.14k |
|---|
// 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 se... |
#pragma once
// STL includes
#include <string>
#include <vector>
#include <stdlib.h>
#include <math.h>
// Qt includes
#include <QTimer>
// hyperion incluse
#include <leddevice/LedDevice.h>
/// Linear Smooting class
///
/// This class processes the requested led values and forwards them to the device after applying
... |
#import "DetailViewBase.h"
/** Displays info about the app, including credits. */
@interface AppInfoView : DetailViewBase
@end
|
//
// ViewController.h
// KSToolkit
//
// Created by bing.hao on 15/9/9.
// Copyright (c) 2015年 bing.hao. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
//
// AppDelegate.h
// MakeIt
//
// Created by zhangyuan on 2/3/15.
// Copyright (c) 2015 NextCloudMedia. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "WXApi.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate, WXApiDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
//
// JKAppearanceProvider.h
// JKEasyAFNetworking
//
// Created by Jayesh Kawli Backup on 12/6/14.
// Copyright (c) 2014 Jayesh Kawli. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface JKAppearanceProvider : NSObject
+(UIColor*)DarkOrangeColor;
@end
|
//
// CyclePageViewTikTokCell.h
// HyCycleView
// https://github.com/hydreamit/HyCycleView
//
// Created by Hy on 2016/5/20.
// Copyright © 2016年 Hy. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface CyclePageViewTikTokCell : UICollectionViewCell
@property (nonatomic,strong) UII... |
/*************************************************************************
* libjson-rpc-cpp
*************************************************************************
* @file filedescriptorclient.h
* @date 26.10.2016
* @author Jean-Daniel Michaud <jean.daniel.michaud@gmail.com>
* @license See attached LICE... |
//
// ZBRegisterDemo.h
// ZBSmartLiveSDK
//
// Created by app on 16/10/13.
// Copyright © 2016年 LipYoung. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ZBRegisterDemo : UIViewController
@end
|
//
// UITextField+matchesRegex.h
// iOSCoreLibrary
//
// Created by Iain McManus on 6/02/13.
//
//
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
@interface UITextField (matchesRegex)
- (BOOL) matchesRegex:(NSString*) inRegex;
@end
#endif // TARGET_OS_IPHONE |
/**
* @version $Id: 8b1b6422d42f3a55b4aee31ab588debf1416cd3b $
*/
#ifndef TDME_NETWORK_NIOINTEREST
#define TDME_NETWORK_NIOINTEREST
#include <libtdme/globals/globals.h>
namespace TDMENetwork {
/**
* @brief type definiton for io interest, see NIONetworkServerClient::INTEREST_*
*/
typedef uint8_t NIOInterest;... |
void main()
{
int x;
x = 2;
return;
};
|
//
// WPHeader.h
// CombinationDev
//
// Created by wwp on 16/6/7.
// Copyright © 2016年 gucheng. All rights reserved.
//
#ifndef WPHeader_h
#define WPHeader_h
//CGRect
#define Screen_WIDTH self.view.frame.size.width
#define Screen_HEIGHT self.view.frame.size.height
//设备尺寸
#define _iPhone4_ (CGSizeEqualToSize(C... |
/*
* zsummerX License
* -----------
*
* zsummerX is licensed under the terms of the MIT license reproduced below.
* This means that zsummerX is free software and can be used for both academic
* and commercial purposes at absolutely no cost.
*
*
* =====================================================================... |
#ifndef _MATRIX_EXCEPT_
#define _MATRIX_EXCEPT_
#include <sstream>
#include <exception>
namespace math
{
class exception : public std::exception
{
std::string msg_;
public:
exception (const char* msg) throw() : msg_(msg) {;}
exception (const std::ostringstream& msg) throw() : msg_(... |
/*
* cigargen.h
*
* Created on: Aug 28, 2014
* Author: ivan
*/
#ifndef CIGARGEN_H_
#define CIGARGEN_H_
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <string>
#include <sstream>
#include <algorithm>
#include "libs/edlib.h"
#include "utility/utility_general.h"
#incl... |
/*
Fontname: -FreeType-PxPlus IBM VGA9-Medium-R-Normal--16-160-72-72-P-72-ISO10646-1
Copyright: Outline (vector) version (c) 2015 VileR
Glyphs: 18/781
BBX Build Mode: 2
*/
const uint8_t u8g2_font_pxplusibmvga9_mn[269] U8G2_FONT_SECTION("u8g2_font_pxplusibmvga9_mn") =
"\22\2\4\3\4\4\1\1\5\10\13\0\377\1... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import <OfficeImport/CMShapeUtils.h>
@interface CMShapeUtils (Private)
+ (int)mapFormulaKeywordValue:(int)arg1 geometry:(id)arg2;
+ (float)normalizedAngle:(float)arg1;
+ (int)r... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
//-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Checks for usage of non-CLSCompliant types in public exposed entities.
//
//-----------------------------------------------------------------------... |
/* Include file for the GAPS plane class */
#ifndef __R3__PLANE__H__
#define __R3__PLANE__H__
/* Begin namespace */
namespace gaps {
/* Initialization functions */
int R3InitPlane();
void R3StopPlane();
/* Class definition */
class R3Plane {
public:
// Constructor functions
R3Plane(void);
R3Pla... |
#ifndef __TABLE_H
#define __TABLE_H
/* Quick-and-dirty hash table implementation, mapping strings to void pointers (char * -> void *) */
#endif |
//
// TJSBaseCollectionViewCell.h
// TianJiCloud
//
// Created by 朱鹏 on 2017/8/2.
// Copyright © 2017年 TianJiMoney. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TJSBaseCollectionViewCellDelegate.h"
#import "TJSBaseCollectionReusableViewProtocol.h"
@interface TJSBaseCollectionViewCell : UICollectionVi... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <IDEKit/NSObject-Protocol.h>
@class DVTRangeArray, DVTSourceCodeLanguage, NSArray, NSAttributedString, NSDictionary, NSImage, NSString;
@protocol DVTTextCompletionItem... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The xbhcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CHAIN_PARAMS_H
#define BITCOIN_CHAIN_PARAMS_H
#include "bignum.h"... |
void main(void) /* b mixed mode expression */
{
float x;
int y;
int w;
x = w + y ;
} |
#if !defined(PRIMITIVES_H)
/* ========================================================================
$File: $
$Date: $
$Revision: $
$Creator: Felipe Oliveira $
$Notice: (C) Copyright 2018 by Felpz. All Rights Reserved. $
======================================================================== */
#de... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef TRANSACTIONTABLEMODEL_H
#define TRANSACTIONTABLEMODEL_H
#include <QAbstractTableModel>
#include <QStringList>
class ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef __cplusplus
# error This header can only be compiled as C++.
#endif
#ifnd... |
//
// ViewController.h
// AFNetworking
//
// Created by Kevin on 15/3/25.
// Copyright (c) 2015年 Kevin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
#include "../global.h"
#include "../Menu.h"
extern FlashTask flashTask;
extern bool newFWFlashed;
extern bool gotFWFlashError;
extern bool gotFWChecksumError;
extern char md5FPGAServer[48];
bool fpgaFlashStarted;
void flashFPGACascade(int pos, bool force);
void readStoredMD5SumFlash(int pos, bool force, const char*... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Zumobi Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
#ifndef STATE_H
#define STATE_H
#include <string>
#include <memory>
#include "external/json/json.h"
#include "entitymanager.h"
#include "camera.h"
#include "luascript.h"
///Base class for states
/**
* The base class for our state machine, provides functions
* for initializing state, running the state and memory cle... |
//
// SafeObjectMacro.h
// LayZhangDemo
//
// Created by LayZhang on 2017/8/24.
// Copyright © 2017年 Zhanglei. All rights reserved.
//
#ifndef SafeObjectMacro_h
#define SafeObjectMacro_h
//#import "NSObject+Safe.h"
//#import "NSArray+Safe.h"
//#import "NSMutableArray+Safe.h"
//#import "NSDictionary+Safe.h"
//#imp... |
//
// PGDatePicker+Common.h
// Demo
//
// Created by piggybear on 2018/3/18.
// Copyright © 2018年 piggybear. All rights reserved.
//
#import "PGDatePicker.h"
@interface PGDatePicker (Common)
- (NSInteger)weekDayMappingFrom:(NSString *)weekString;
- (NSString *)weekMappingFrom:(NSInteger)weekDay;
- (NSInteger)days... |
/**********************************************************************
regversion.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
* Copyright (c) 2002-2018 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution ... |
//
// XHTextFieldScrollView.h
// XHTextField
//
// Created by 曾 宪华 on 13-12-18.
// Copyright (c) 2013年 曾宪华 开发团队(http://iyilunba.com ) 本人QQ:543413507. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^DidDisMissCompledBlock)(void);
@class XHTextField;
@protocol XHTextFieldScrollViewDelegate <NSObject... |
#pragma once
#include "LuaPlus.h"
/* Manages lua state object */
class LuaManager
{
private:
LuaPlus::LuaState* luaState;
public:
LuaManager(void);
~LuaManager(void);
void ExecuteFile(char* fileName);
};
|
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import <iWorkImport/TSCH3DSceneObject.h>
// Not exported
@interface TSCH3DChartStageSceneObject : TSCH3DSceneObject
{
TSCH3DSceneObject *mMain;
}
+ (id)objectWithMain:(id)... |
/*
* Program from Fig.8 of
* 2013FSE - Nori,Sharma - Termination Proofs from Tests
*
* Date: 18.12.2013
* Author: heizmann@informatik.uni-freiburg.de
*
*/
typedef enum {false, true} bool;
extern int __VERIFIER_nondet_int(void);
int main() {
int c, u, v, w, x, y, z;
x = __VERIFIER_nondet_int();
y = __VER... |
//
// stockChartDataSource.h
// cvChart
//
// Created by He Jun on 10-7-27.
// Copyright 2010 SmilingMobile. All rights reserved.
//
typedef enum {
StockDataIntraDay = 0,
StockDataOneWeek,
StockDataThreeWeeks,
StockDataOneMonth,
StockDataThreeMonths,
StockDataSixMonths,
StockDataOneYear... |
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Copyright (c) 2014-2019 The DigiByte Core developers
// Copyright (c) 2014-2019 The Auroracoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef AURORACO... |
/*numPass=9, numTotal=9
Verdict:ACCEPTED, Visibility:1, Input:"4 10
-1 6", ExpOutput:"YES
", Output:"YES"
Verdict:ACCEPTED, Visibility:1, Input:"4 10
-1 3", ExpOutput:"NO
", Output:"NO"
Verdict:ACCEPTED, Visibility:1, Input:"10 20
20 50", ExpOutput:"YES
", Output:"YES"
Verdict:ACCEPTED, Visibility:1, Input:"0 0
-1 0", ... |
//
// ViewController.h
// 滚动顶部视图处理练习
//
// Created by ShenYj on 2016/10/20.
// Copyright © 2016年 ShenYj. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */
/*=========================================================================
Copyright (c) 2008 Thomas Yeo and Mert Sabuncu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... |
/*
* Copyright (C) 2013-2015
*
* @author jxfengzi@gmail.com
* @date 2013-11-19
*
* @file ActionResponse.h
*
* @remark
*
*/
#ifndef __ACTION_RESPONSE_H__
#define __ACTION_RESPONSE_H__
#include "tiny_base.h"
#include "UpnpAction.h"
#include "UpnpError.h"
#include "HttpMessage.h"
TINY_BEGIN_DECLS
TinyRet ActionFr... |
/*numPass=0, numTotal=9
Verdict:WRONG_ANSWER, Visibility:1, Input:"abcdef", ExpOutput:"bdfhjl", Output:""
Verdict:WRONG_ANSWER, Visibility:1, Input:"wxyz", ExpOutput:"tvxz", Output:""
Verdict:WRONG_ANSWER, Visibility:1, Input:"zyxw", ExpOutput:"zxvt", Output:""
Verdict:WRONG_ANSWER, Visibility:1, Input:"t", ExpOutput:"... |
//
// CTVideoRecord.h
// yili
//
// Created by casa on 15/10/21.
// Copyright © 2015年 Beauty Sight Network Technology Co.,Ltd. All rights reserved.
//
#import <CTPersistance/CTPersistance.h>
typedef NS_ENUM(NSUInteger, CTVideoRecordStatus) {
// record status when downloading
CTVideoRecordStatusDownloading... |
#include "Player.h"
#include "display.h"
class HumanPlayerStub: public Player {
public:
HumanPlayerStub(int displayPos, int initialMoney);
int bet(int minimumBid, display gameDisplay);
int discard(display gameDisplay);
};
|
#ifndef SAKI_GIRL_ACHIGA_YUU_H
#define SAKI_GIRL_ACHIGA_YUU_H
#include "../table/girl.h"
namespace saki
{
class Yuu : public GirlCrtp<Yuu>
{
public:
using GirlCrtp<Yuu>::GirlCrtp;
void onMonkey(std::array<Exist, 4> &exists, const Table &table) override;
void onDraw(const Table &table, Mount &mount, W... |
//
// NewsProvider.h
// News
//
// Created by vic on 16/1/22.
// Copyright © 2016年 NW. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NewsProvider : NSObject
+ (instancetype)shareInstance;
- (void)fetchInfoListSuccess:(void(^)(NSArray *list))success
failure:(void(^)(NS... |
// This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#pragma once
#include <memory>
#include "swganh_core/messages/controllers/command_queue_enqueue.h"
#include "command_interface.h"
#include "command_properties.h"
namespace swganh
{
namespac... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <Foundation/Foundation.h>
@interface SimLocalThrowable : NSObject
{
id _data;
}
+ (id)throwableWithData:(id)arg1;
@p... |
/*
* Copyright 2019 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrDawnProgramBuilder_DEFINED
# define GrDawnProgramBuilder_DEFINED
# include "src/gpu/dawn/GrDawnProgramDataManager.h"
# include "src/gpu/dawn/GrDawnUniformHandler.h... |
/*
** Copyright 2014-2015 Robert Fratto. See the LICENSE.txt file at the top-level
** directory of this distribution.
**
** Licensed under the MIT license <http://opensource.org/licenses/MIT>. This file
** may not be copied, modified, or distributed except according to those terms.
*/
#include "AST.h"
#include "Val... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "swap.h"
void test_swap()
{
int a = 4;
int b = 2;
swap(&a, &b, sizeof(int));
assert(a == 2 && b == 4);
printf("test_swap successful\n");
}
int main(int argc, char *argv[])
{
test_swap();
return EXIT_SUCCESS;
}
|
//
// PIDemoModelProtocol.h
// kiwi-blocks-demo
//
// Created by Harlan Kellaway on 5/4/15.
// Copyright (c) 2015 Prolific Interactive. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol PIDemoModelProtocol <NSObject>
+ (instancetype)modelFromJSONDictionary:(NSDictionary *)JSONDictionary;
@end
|
// -*- c++ -*-
// Generated by gmmproc 2.44.0 -- DO NOT MODIFY!
#ifndef _GTKMM_PANED_P_H
#define _GTKMM_PANED_P_H
#include <gtkmm/private/container_p.h>
#include <glibmm/class.h>
namespace Gtk
{
class Paned_Class : public Glib::Class
{
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef Paned CppObjectType;
typed... |
//
// SANetworkBatchRequest.h
// ECM
//
// Created by 学宝 on 16/1/18.
// Copyright © 2016年 浙江网仓科技有限公司. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SANetworkAccessoryProtocol.h"
@class SANetworkBatchRequest;
@class SANetworkResponse;
@protocol SANetworkBatchRequestResponseDelegate <NSObject>
... |
//
// SkyGuideView.h
// SkyComponentsPod
//
// Created by SimonLiu on 16/3/22.
// Copyright © 2016年 Jason.He. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SkyGuideView : UIView
@property (nonatomic, copy) void(^disappearHandler)(void); // 引导页面消失时的回调
@property (nonatomic, assign) BOOL isPageIndicat... |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organization
//
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_file_w32_spawnv_01.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-01.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* GoodSo... |
/*
* charFifo.c
*
* Created on: Nov 9, 2014
* Author: Nicholas
*/
#include "charFifo.h"
#include "stdlib.h"
#define FIFO_WRAP(i) ((i < 0) ? (g_usFifoSize - i) : ((i >= g_usFifoSize) ? (i - g_usFifoSize) : i))
char g_pcFifo[10];
unsigned short g_usFifoHead = 0;
unsigned short g_usFifoTail = 0;
const unsign... |
//
// CD2Hyper.h
// hyper
//
// Created by James Tuley on 2/18/07.
// Copyright 2007 Jay Tuley. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "CD2PluginProtocolV1.h"
@interface CD2Hyper : NSObject<CD2PluginProtocolV1>
- (BOOL)openTermWindowForPath:(NSString *)aPath;
@end
|
//
// GPKGFeaturePreviewImportTestCase.h
// geopackage-iosTests
//
// Created by Brian Osborn on 3/6/20.
// Copyright © 2020 NGA. All rights reserved.
//
#import "GPKGImportGeoPackageTestCase.h"
@interface GPKGFeaturePreviewImportTestCase : GPKGImportGeoPackageTestCase
@end
|
#ifndef GENERAL_H
#define GENERAL_H
#include "../include/symbolic.h"
///////////////////////////////////////////////////////////////////////////////
// Stdlib includes ////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#include... |
//
// JMTableViewCell.h
// JMSystemNotifications
//
// Created by jerome morissard on 04/04/2015.
// Copyright (c) 2015 Jérôme Morissard. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JMTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *notificationNameLabel;
@property (we... |
#pragma strict_types
#include "../def.h"
inherit MASTER_ROOM;
inherit MOD_DOOR;
void create_object(void);
void reset(int arg);
void create_object(void)
{
set_short("The main kitchen of the castle");
set_long("This is the main kitchen of the castle, where the food for " +
"the lords and commanders... |
// this file only exist because of dear_imgui_internal include via "imgui_internal.h"
// but we like to include it via "imgui/imgui_internal.h"
#include "imgui/imgui_internal.h"
|
#ifndef TCL_SEAHAVEN_H
#define TCL_SEAHAVEN_H
#include "CTclApp/CTclAppCanvas.h"
class CTclSeahaven;
class CTclSeahavenCmd : public CTclAppCanvasCmd {
private:
CTclSeahaven *seahaven_;
public:
CTclSeahavenCmd(CTclApp *app);
~CTclSeahavenCmd();
string getCommandName () const { return "CTclSeahaven"; }
st... |
/*
Author: Pakkpon Phongthawee
LANG: C
Problem: Two level series
*/
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int sum = a;
while(a*c+1<b){
a*=c++;
sum+=a;
}
printf("%d",sum);
return 0;
}
|
/* #include "stm32f4_i2c.h" */
#ifndef __STM32F4_I2C_H
#define __STM32F4_I2C_H
#include "stm32f4xx.h"
/*=====================================================================================================*/
/*=====================================================================================================*/
#def... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
@interface WebUICertificateError : NSObject
{
}
+ (_Bool)isClientCertificateError:(long long)arg1;
+ (_Bool)isServerCertificateError:(long long)arg1;
+ (_B... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_listen_socket_execl_52a.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-52a.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: listen_socket Read data using a ... |
#ifndef _ILI9341_t3_font_Impact_
#define _ILI9341_t3_font_Impact_
#include "ILI9341_t3.h"
#ifdef __cplusplus
extern "C" {
#endif
extern const ILI9341_t3_font_t Impact_8;
extern const ILI9341_t3_font_t Impact_9;
extern const ILI9341_t3_font_t Impact_10;
extern const ILI9341_t3_font_t Impact_11;
extern const ILI9341_t... |
#include <stdio.h>
#include <sys/time.h>
#include <ibcrypt/chacha.h>
#include <ibcrypt/rsa.h>
#include <ibcrypt/rsa_util.h>
#include <ibcrypt/sha256.h>
#include <ibcrypt/zfree.h>
#include <libibur/util.h>
#include <libibur/endian.h>
#include "../util/log.h"
#include "bg_manager.h"
#include "login_server.h"
#includ... |
#ifndef _gpio_h_
#define _gpio_h_
void gpio_output_init(int n);
void gpio_set(int n);
void gpio_clr(int n);
#endif /* _gpio_h_ */
|
#ifndef GPIO_AUX_UART_H_INCLUDED
#define GPIO_AUX_UART_H_INCLUDED
#include "gpio.h"
#define AUX_BASE ( 0x3F000000UL + 0x215000 )
#define AUX_ENA_MINIUART ( 1 << 0 )
#define AUX_ENA_SPI1 ( 1 << 1 )
#define AUX_ENA_SPI2 ( 1 << 2 )
#define AUX_IRQ_SPI2 ( 1 << 2... |
//
// Copyright (c) 2008-2019 the Urho3D project.
//
// 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, mod... |
int VC0706_takePics(void);
void setupParallelPhotoCount(void);
void updatePhotoCount(uint8 pic_count);
void VC0706_setNumReboots(void); |
#import "MOBProjection.h"
@interface MOBProjectionEPSG4647 : MOBProjection
@end
|
// Copyright (c) 2011-2013 The CoinsBazar developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef ADDRESSTABLEMODEL_H
#define ADDRESSTABLEMODEL_H
#include <QAbstractTableModel>
#include <QStringList>
class Addre... |
//
// OLCAppDelegate.h
// OLCVideoPlayer
//
// Created by Lakitha Sam on 08/02/2015.
// Copyright (c) 2015 Lakitha Sam. All rights reserved.
//
@import UIKit;
@interface OLCAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
//
// RCIOItem.h
// ReactiveCocoaIO
//
// Created by Uri Baghin on 9/26/12.
// Copyright (c) 2013 Uri Baghin. All rights reserved.
//
#import <Foundation/Foundation.h>
@class RACSignal, RACChannelTerminal, RCIODirectory;
// Specifies how the file system item should be accessed.
//
// RCIOItemModeReadWrite ... |
#ifndef __VECTOR_3D_H__
#define __VECTOR_3D_H__
#include <cmath>
class Vector3D {
public:
union {
struct { float x, y, z; };
struct { float r, g, b; };
float v[3];
};
Vector3D();
Vector3D(float x,float y,float z);
... |
#ifndef BOMBERMAN_UTIL_H
#define BOMBERMAN_UTIL_H
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define E_NOTICE 0
#define E_WARNING 1
#define E_ERROR 2
#define E_ALL 3
#define MAX_LOG_MSG_SIZE 512
void log_message(FILE * fd, int level, const char *... |
/////////////////////////////////////////////////////////////////////////////
// Name: include/wx/msw/private/webview_edge.h
// Purpose: wxMSW Edge Chromium wxWebView backend private classes
// Author: Tobias Taschner
// Created: 2020-01-15
// Copyright: (c) 2020 wxWidgets development team
// Lice... |
//
// NSTimer+JJ.h
// JJObjCTool
//
// Created by gongjian03 on 6/2/15.
// Copyright (c) 2015 gongjian. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSTimer (JJ)
#pragma mark - execute time
+ (double)jj_measureExecutionTime:(void (^)())block;
+ (void)jj_startTimi... |
//
// ViewController.h
// Mastermind
//
// Created by manolo on 1/26/15.
// Copyright (c) 2015 manolosavi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController <UIAlertViewDelegate>
@end |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE476_NULL_Pointer_Dereference__int_04.c
Label Definition File: CWE476_NULL_Pointer_Dereference.label.xml
Template File: sources-sinks-04.tmpl.c
*/
/*
* @description
* CWE: 476 NULL Pointer Dereference
* BadSource: Set data to NULL
* GoodSource: Initialize da... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "DVTGradientImageButton.h"
// Not exported
@interface GPUTraceFrameStepperButton : DVTGradientImageButton
{
}
+ (Class)cellClass;
@property SEL mouseUpAction;
@property... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_file_execlp_06.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-06.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: file Read input from a file
* GoodSou... |
#include "gdt.h"
#include "interrupt.h"
#include "klib.h"
#include "types.h"
/***
* idt pointer instance
*/
struct idt_ptr IDT_PTR = {
.limit = (sizeof(struct idt_entry_raw) * IDT_ENTRY_COUNT) - 1,
.base = (uint32_t)IDT_ENTRIES,
};
/***
* configure idt, by default all error handlers are hard halt
*/
exter... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "PBXResourcesBuildPhase.h"
@interface PBXResourcesBuildPhase (PBXInspectorPanelSupport)
- (id)displayName;
@end
|
//
// APTableView.h
// InkedMargin
//
// Created by alok pandey on 01/02/16.
// Copyright © 2016 alok pandey. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface APTableView : NSTableView
@end
|
// This code is part of the Super Play Library (http://www.superplay.info),
// and may only be used under the terms contained in the LICENSE file,
// included with the Super Play Library.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING B... |
/////////////////////////////////////////////////////
// file: ScopePipe.h
//
// Header for ScopePipe c++ class
//
// Revision History:
// 01/2012 original version
// (created 'self-standing' code,
// to separate from main program)
// Author: ejo
/////////////////////////////... |
#pragma once
namespace ui
{
// This object exists to force MFC to keep our main thread alive until all of
// our objects have cleaned themselves up. All objects Addref this object on
// instantiation and Release it when they delete themselves. When there are no
// more outstanding objects, the destructor is called... |
#pragma once
#include <array>
#include <complex>
#include <config/enums.h>
#include <math/svd/settings.h>
#include <memory>
#include <unsupported/Eigen/CXX11/Tensor>
class MpoSite;
class TensorsFinite;
class ModelFinite {
public:
using Scalar = std::complex<double>;
private:
friend TensorsFinite;
... |
/*
* POSIX library for Lua 5.1, 5.2 & 5.3.
* Copyright (C) 2013-2016 Gary V. Vaughan
* Copyright (C) 2010-2013 Reuben Thomas <rrt@sc3d.org>
* Copyright (C) 2008-2010 Natanael Copa <natanael.copa@gmail.com>
* Clean up and bug fixes by Leo Razoumov <slonik.az@gmail.com> 2006-10-11
* Luiz Henrique de Figueiredo <lhf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.