text stringlengths 9 948k |
|---|
#include "common/comm_dummy.h"
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <unistd.h>
static char *split_address(const char *address, char *node_service)
{
char *p;
int n = strlen(address);
if (n>=600 || n<5)
return NULL;
str... |
#pragma once
#include "editor/world_editor.h"
#include <bgfx/bgfx.h>
struct PlatformData;
class StudioApp;
namespace Lumix
{
class Pipeline;
class Pipeline;
class RenderScene;
}
class GameView
{
public:
GameView(StudioApp& app);
~GameView();
void init(Lumix::WorldEditor& editor);
void shutdown();
void ... |
#ifndef INCLUDED_VITERBI_FLAT_H
#define INCLUDED_VITERBI_FLAT_H
#include "viterbi_base.h"
/*
* Copyright (C) 2016 Bastian Bloessl <bloessl@ccs-labs.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Softwa... |
/****************************************************************************
*
* Copyright 2016 Samsung Electronics 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... |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_HTUIKit_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_HTUIKit_TestsVersionStr... |
/*==========================================================================;
*
* Copyright (C) Microsoft Corporation. All Rights Reserved.
*
* File: d3d9types.h
* Content: Direct3D capabilities include file
*
***************************************************************************/
#ifndef _d3d... |
/*
* Copyright (c) 2018-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
// Copyright (c) 2014-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CHAINPARAMSBASE_H
#define BITCOIN_CHAINPARAMSBASE_H
#include <memory>
#include <string>
class ArgsManager;
... |
// Copyright (c) 2012 The livefuturecoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_BLOOM_H
#define BITCOIN_BLOOM_H
#include <vector>
#include "uint256.h"
#include "serialize.h"
class COutPo... |
//
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import "NSObject-Protocol.h"
@class IMItem, IMMessageItem, IMNickname, NSArray, NSData, NSDictionary, NSError, NSNumber, NSSet, NSString;
@proto... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#define _LARGEFILE64_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysinfo.h>
#include <string.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "mpi.h"
#include <unistd.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/sta... |
/* 32-bit ELF support for S+core.
Copyright (C) 2009-2014 Free Software Foundation, Inc.
Contributed by
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
Pei-Lin Tsai (pltsai@sunplus.com)
This file is part of BFD, the Binary File Descriptor library.
This program is free soft... |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... |
/**
***************************************(C) COPYRIGHT 2021 DIODE***************************************
* @file bsp_imu.c
* @brief mpu6500 module driver, configurate MPU6500 and Read the Accelerator
* and Gyrometer data using SPI interface
* @note SPI5 + PF6
* @Version V1.0.0
* @D... |
// David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2022
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 6.0.2022.01.06
#pragma once
#include <Applications/Window3.h>... |
// This is an AUTO-GENERATED UAVCAN DSDL data type implementation. Curious? See https://uavcan.org.
// You shouldn't attempt to edit this file.
//
// Checking this file under version control is not recommended unless it is used as part of a high-SIL
// safety-critical codebase. The typical usage scenario is to generate... |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include "amp_config.h"
#include "amp_defines.h"
#include "aos_system.h"
#include "be_inl.h"
#define MOD_STR "Battery"
static duk_ret_t native_battery_conn_state_get(duk_context *ctx)
{
int ret = -1;
int sta... |
/*
*Copyright (c) 2013-2015 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* 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 notic... |
#pragma once
#include <memory>
#include "execution/ast/ast.h"
#include "execution/ast/ast_visitor.h"
#include "execution/ast/builtins.h"
#include "execution/sema/error_reporter.h"
#include "execution/sema/scope.h"
namespace terrier::execution {
namespace ast {
class Context;
} // namespace ast
namespace sema {
/... |
/*
* twemproxy - A fast and lightweight proxy for memcached protocol.
* Copyright (C) 2011 Twitter, 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/lice... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... |
#ifndef IRRADIANCEVOLUMES_H
#define IRRADIANCEVOLUMES_H
#include "vector.h"
#include "vector4.h"
#include "aabb.h"
struct SIrradianceVolume {
SIrradianceVolume() : m_Light() {}
// Ordered X+, X-, Y+, Y-, Z+, Z-
Vector4 m_Light[6];
};
// Different from SIrradianceVolumeArray in WorldCompiler/RadiositySolver
//... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
/*
* Raw Video Decoder
* Copyright (c) 2001 Fabrice Bellard
*
* This file is part of FFmpeg.
*
* FFmpeg 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 (... |
/*
* Copyright 2007-8 Advanced Micro Devices, Inc.
* Copyright 2008 Red Hat 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
* t... |
/*
* Copyright (c) 2001-2003
* Fraunhofer Institute for Open Communication Systems (FhG Fokus).
* All rights reserved.
*
* Author: Harti Brandt <harti@freebsd.org>
*
* Redistribution of this software and documentation and use in source and
* binary forms, with or without modification, are permitted provided tha... |
/* -*- coding: utf-8-unix -*- */
#define _DISABLE_TESTIT_OPERATORS
#define TestSuite ParsecRepeat
#include "testit.h"
#include "myparsec.h"
#define S CPARSEC_STREAM_TYPE
test("[parser] some(digit()), \"\" -> empty error") {
ParseResult(S, Array(char)) r = runParser(some(digit()), "");
c_assert(!r.success);
c_... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE319_Plaintext_Tx_Sensitive_Info__w32_char_listen_socket_53d.c
Label Definition File: CWE319_Plaintext_Tx_Sensitive_Info__w32.label.xml
Template File: sources-sink-53d.tmpl.c
*/
/*
* @description
* CWE: 319 Plaintext Transmission of Sensitive Information
* BadSource: l... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
//
// LMFaceKeyBoardView.h
// LMInputViewToolBar
//
// Created by guodong liu on 2017/7/27.
// Copyright © 2017年 yousails. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LMFaceImgEntry.h"
#define GrayColor [UIColor colorWithRed:231 / 255.0 green:231 / 255.0 blue:231 / 255.0 alpha:1]
#define ScreenWidth [... |
/* Copyright (C) 2011-2012 Povilas Kanapickas <povilas@radix.lt>
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef LIBSIMDPP_SIMDPP_DETAIL_PERMUTE_SSE_FLOAT32_4x2_H
#define LIBSIMDPP_S... |
#pragma once
#include <vector>
#include "Math.h"
class Component;
class Actor {
public:
enum class State {
EActive,
EPaused,
EDead
};
Actor(class Game* inGame);
virtual ~Actor();
void ProcessInput(const struct InputState& inputState);
void Update(float deltaTime);
#pragma region GetterAndSetter
cons... |
#include <stdio.h>
int ft_atoi(char *str);
int main(void)
{
printf("%d\n", ft_atoi(" ---+--+asd2147567"));
} |
#pragma once
#include <limits>
#include <iostream>
class Resistor
{
public:
constexpr Resistor() :
index_(std::numeric_limits<std::size_t>::max()),
value_(std::numeric_limits<double>::quiet_NaN()),
reciprocal_(std::numeric_limits<double>::quiet_NaN())
{}
Resistor(std::size_t index, double value) :
index... |
/*!
* @header BAKit.h
* BABaseProject
*
* @brief BAKit
*
* @author 博爱
* @copyright Copyright © 2016年 博爱. All rights reserved.
* @version V1.0
*/
// _ooOoo_
// o8888888o
// 88" . "88
// ... |
//===-- ARMBaseInstrInfo.h - ARM Base Instruction Information ---*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2010, 2011, 2012 Google Inc. All rights reserved.
// http://code.google.com/p/ceres-solver/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "GameFramework/Character.h"
#include "SandboxCharacter.h"
#include "UE4VoxelTerrainCharacter.generated.h"
UCLASS(Blueprintable)
class AUE4VoxelTerrainCharacter : public ASandboxCharacter
{
GENERATED_BODY()
public:
AUE4VoxelTerrainCha... |
#include <math.h>
#include <xboot/module.h>
#define SPLIT (0x1p27 + 1)
static void sq(double_t *hi, double_t *lo, double x)
{
double_t xh, xl, xc;
xc = (double_t)x*SPLIT;
xh = x - xc + xc;
xl = x - xh;
*hi = (double_t)x*x;
*lo = xh*xh - *hi + 2*xh*xl + xl*xl;
}
double hypot(double x, double y)
{
union {doubl... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
#ifndef __GAME__PROPENTS
#define __GAME__PROPENTS
#include "eoavov.h"
struct proptype
{
int health;
int id;
float mass;
bool movable,portable; // portable - player can take prop
char movehook[48],breakhook[48],hithook[48],drophook[48],usehook[48];
string model;
proptype();
~proptype() {}
};
extern vector<propt... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2019, ITU/ISO/IEC
* All rights reserve... |
/*-
* Copyright (c) 1983 Regents of the University of California.
* 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
* ... |
#pragma once
#include <sys/socket.h>
#include "utils.h"
#include "message_processer.h"
#define UNIX_PATH_MAX 108
#define SOCKNAME "objstore.sock"
#define BUFFER_SIZE 512
int os_connect(char* name);
int os_store(char* name, void* block, size_t len);
void* os_retrieve(char* name);
int os_delete(char* name);
int os_dis... |
/**
Name: GamePlayer.h
Author: jjuiddong
Date: 5/5/2013
*/
#pragma once
class CGamePlayer : public network::CPlayer
{
public:
CGamePlayer() {}
virtual ~CGamePlayer() {}
}; |
/*
* Copyright (C) 2001-2011 Mellanox Technologies Ltd. 2001-2011. ALL RIGHTS RESERVED.
* Copyright (c) 2016 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2018 Research Organizati... |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import <Mail/MFEWSResponseOperation.h>
@class EWSGetUserOofSettingsResponseType, EWSUserOofSettingsType;
@interface MFEWSGetUserOofSettingsResponseOperation : MFEWSResponseOperat... |
/**
* @file basic_cartesian_example.h
* @brief Basic example leveraging trajopt and tesseract for cartesian planning
*
* @author Levi Armstrong
* @date July 22, 2018
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2017, Southwest Research Institute
*
* @par License
* Software License Agree... |
/*
* Copyright (C) 2004-2006 Atmel Corporation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_AVR32_UNISTD_H
#define __ASM_AVR32_UNISTD_H
/*
* This file con... |
/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call i... |
#ifndef WAVETABLE_CHIP1_3_H
#define WAVETABLE_CHIP1_3_H
#define WAVETABLE_CHIP1_3_LENGTH 600
static long chip1_3_tableLength = 600;
static float chip1_3_waveTable[WAVETABLE_CHIP1_3_LENGTH] = {
7.200317e-01, 9.999695e-01, 9.065857e-01, 9.378052e-01, 9.273987e-01, 9.308472e-01, 9.297485e-01, 9.300537e-01, 9.299011e-... |
#ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_RUNTIMETYPEHANDLE_H
#define __MONO_NATIVE_MSCORLIB_SYSTEM_RUNTIMETYPEHANDLE_H
#include <mscorlib/System/mscorlib_System_ValueType.h>
#include <mscorlib/System/Runtime/Serialization/mscorlib_System_Runtime_Serialization_ISerializable.h>
#include <mscorlib/System/mscorlib_System_Obj... |
/**
* Copyright (C) Mellanox Technologies Ltd. 2020. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "proto_select.h"
#include "proto_select.inl"
#include "proto_single.h"
#include "proto_init.h"
#include <ucp/core/ucp_context.h>
#include <ucp/d... |
//== AsStmtPrinter.h - Registration mechanism for checkers -------------*- C++ -*--=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
#pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_ValueType3507792607.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ign... |
#ifndef MAINFRAME_H
#define MAINFRAME_H
#include <QFrame>
#include <QMainWindow>
#include "bitcoingui.h"
namespace Ui
{
class MainFrame;
}
class MenuBar;
class TabBar;
class LockBar;
class BitcoinGUI;
/*enum Direction{
UP = 0,
DOWN=1,
LEFT,
RIGHT,
LEFTTOP,
LEFTBOTTOM,
RIGHTBOTTOM,
... |
/*
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, 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 requ... |
#pragma once
#include <Windows.h>
#include "../Lua/lua.hpp"
#include "AeonianFunctions.h"
#include "BitFunctions.h"
#include "CoreFunctions.h"
#include "DebugFunctions.h"
#include "ExtendedCoreFunctions.h"
#include "MiscFunctions.h"
#include "MouseAndKeyBoardFunctions.h"
void RegisterCustomFunctions(lua_State* LS) {... |
/** @file HL_sys_main.c
* @brief Application main file
* @date 07-July-2017
* @version 04.07.00
*
* This file contains an empty main function,
* which can be used for the application.
*/
/*
* Copyright (C) 2009-2016 Texas Instruments Incorporated - www.ti.com
*
*
* Redistribution and use in source and... |
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, ABI37_0_0RNGestureHandlerState) {
ABI37_0_0RNGestureHandlerStateUndetermined = 0,
ABI37_0_0RNGestureHandlerStateFailed,
ABI37_0_0RNGestureHandlerStateBegan,
ABI37_0_0RNGestureHandlerStateCancelled,
ABI37_0_0RNGestureHandlerStateActive,
... |
// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 1:52:41 PM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /Applications/Arcade.app/Arcade
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
#import <Arcade/Ar... |
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <CoreMedia/CoreMedia.h>
#import <LegacyComponents/PGCameraShotMetadata.h>
typedef enum {
PGCameraAuthorizationStatusNotDetermined,
PGCameraAuthorizationStatusRestricted,
PGCameraAuthorizationStatusDenie... |
/**
* \file
*
* \brief Board configuration.
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Re... |
/*
* Copyright (C) 2012 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Szeged
*
* 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
* no... |
void DFS(int **grid, int ROW, int COL, int x, int y){
if(x < 0 || y < 0 || x >= ROW || y >= COL) return;
if(grid[x][y]!=1) return;
//marked as visted
grid[x][y] = 0;
//DFS the neighbor
DFS(grid, ROW, COL, x + 1, y);
DFS(grid, ROW, COL, x - 1, y);
DFS(grid, ROW, COL, x, y + 1);
DFS(grid, ROW, COL, x, y - 1);... |
/* -*- Mode: c; c-basic-offset: 2 -*-
*
* raptor_serialize_rdfxml.c - RDF/XML serializer
*
* Copyright (C) 2004-2008, David Beckett http://www.dajobe.org/
* Copyright (C) 2004-2005, University of Bristol, UK http://www.bristol.ac.uk/
*
* This package is Free Software and part of Redland http://librdf.org/
*
* ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_RANDOM_H
#define BITCOIN_RANDOM_H
#include <crypto/chacha20.h>
#... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:23:37 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/Health/Plugins/HealthReco... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Waddledoo board-specific configuration */
#include "adc_chip.h"
#include "button.h"
#include "cbi_fw_config.h"
#include "charge_manager.h"
#inc... |
#ifndef _IPC_MESSAGER_H_
#define _IPC_MESSAGER_H_
#pragma once
#include "ipc/ipc_forwards.h"
namespace IPC {
class Sender {
public:
// Sends the given IPC message. The implementor takes ownership of the
// given Message regardless of whether or not this method succeeds. This
// is done to make this method ... |
/*!
* <File comment goes here!!>
*
* Copyright (c) 2005 by <your name/ organization here>
*/
#pragma once
#include "AppStringEntry.h"
#include "textstream_reader.h"
#include "AppStringTextNodeParser.h"
/*!
* \brief
* Parses the string file (xml)
*/
class CAppStringRecordParser
{
typedef textstream_reader< wc... |
#include "shortcut_layer.h"
#include "cuda.h"
#include "blas.h"
#include "activations.h"
#include <stdio.h>
#include <assert.h>
layer make_shortcut_layer(int batch, int index, int w, int h, int c, int w2, int h2, int c2)
{
fprintf(stderr, "res %3d %4d x%4d x%4d -> %4d x%4d x%4d\n",index, w2,h2,... |
/*-
* Copyright (c) 2010-2015 Juan Romero Pardines.
* 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 ... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <cstddef>
class Fast_BufferedInputStream;
class Fast_HTTPHeaderParser
{
public:
Fast_HTTPHeaderParser(const Fast_HTTPHeaderParser &) = delete;
Fast_HTTPHeaderParser & ... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <objc/NSObject.h>
#import <T1Twitter/TFNDirectMessageConversation-Protocol.h>
#import <T1Twitter/TFNDirectMessageConversationA... |
/*
XXX Fixme : shouldn't show [malformed frame] for long packets
*/
/* packet-smb-pipe.c
* Routines for SMB named pipe packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* significant rewrite to tvbuffify the dissector, Ronnie Sahlberg and
* Guy Harris 2001
*
* Wireshark - Network traffic a... |
/**
* @file nordic_ble_req_observable.h
* @copyright (c) 2018, natersoz. Distributed under the Apache 2.0 license.
*
* Publish Noridc BLE GAP events.
*/
#pragma once
#include "nordic_req_observer.h"
namespace nordic
{
class req_observable
{
public:
static req_observable& instance();
~req_observable() ... |
/*************************************************************************/
/* animation_tree.h */
/*************************************************************************/
/* This file is part of: */
/* ... |
/** @file
EFI Driver Configuration Protocol
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distributi... |
#define STATIC_ASSERT(condition) \
int some_array[(condition) ? 1 : -1];
#ifdef __GNUC__
// gcc mode attribute
typedef unsigned char uchar;
uchar int8 __attribute__ ((__mode__ (__QI__))),
int16 __attribute__ ((__mode__ (__HI__))),
int32 __attribute__ ((__mode__ (__SI__))),
int64 __attribute__ (... |
#ifndef INCLUDED_CXXDBC_1_0_SUPPORT_MAKE_UNIQUE_H
#define INCLUDED_CXXDBC_1_0_SUPPORT_MAKE_UNIQUE_H
// standard includes
#include <memory>
namespace cxxdbc {
namespace v1_0 {
/// Only defining this until C++14 is fully supported on all target compilers
template <typename Ttype, typename... Ttail>
::std::unique_ptr<T... |
/******************************************************************************
*
* Module Name: utaddress - OpRegion address range check
*
*****************************************************************************/
/******************************************************************************
*
* 1. Copyrig... |
// Copyright 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... |
//
// Created by Semyon Tikhonenko on 10/2/18.
// Copyright (c) 2018 Mac. All rights reserved.
//
#ifndef VOCALTRAINER_MAPS_H
#define VOCALTRAINER_MAPS_H
#include <vector>
#include <algorithm>
namespace CppUtils {
namespace Maps {
template<typename Map, typename Value>
void Values(const Map& map,... |
// ***************************************************************************
// * _ _ ____ _ ____ ___ *
// * (_)_ __(_)___ / ___| ___ _ __ ___ ___ _ __ / \ | _ \_ _| *
// * | | '__| / __| \___ \ / _ \ '_ \/ __|/ _ \| '__| / _ \ | |_) | | *
// *... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file contains the keyword autocomplete provider. The keyword provider
// is responsible for remembering/suggesting user "search keyword queries"... |
/**
*
* @file WebSocketConnectionImpl.h
* @author An Tao
*
* Copyright 2018, An Tao. All rights reserved.
* https://github.com/an-tao/drogon
* Use of this source code is governed by a MIT license
* that can be found in the License file.
*
* Drogon
*
*/
#pragma once
#include "impl_forwards.h"
#incl... |
//
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: /Users/free6om/Documents/open-source/j2objc/j2objc/testing/mockito/build_result/java/org/mockito/internal/listeners/MockingStartedListener.java
//
#ifndef _OrgMockitoInternalListenersMockingStartedListener_H_
#define _OrgMockitoInternalListenersMocki... |
//Example static (known stack size) task creation:
// Dimensions the buffer that the task being created will use as its stack.
// NOTE: This is the number of words the stack will hold, not the number of
// bytes. For example, if each stack item is 32-bits, and this is set to 100,
// then 400 bytes (100 * 32-bits... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
/**
* Copyright 2013 Couchbase, 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 applicabl... |
/* Digger Remastered
Copyright (c) Andrew Jenner 1998-2004 */
#include "def.h"
#include "sprite.h"
#include "input.h"
#include "hardware.h"
#include "digger.h"
#include "drawing.h"
#include "main.h"
#include "sound.h"
#include "monster.h"
#include "scores.h"
#include "bags.h"
#ifdef _WINDOWS
#include "win_dig.h"
#... |
/*
* Copyright 2014-2018 Real Logic 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 agree... |
/*
** mlx_int_str_to_wordtab.c for MinilibX in
**
** Made by Charlie Root
** Login <ol@epitech.net>
**
** Started on Wed Sep 13 11:36:09 2000 Charlie Root
** Last update Fri Oct 18 20:35:49 2013 Moulinette Bot
*/
#include <string.h>
#include "mlx_int.h"
int mlx_int_str_str(char *str,char *find,int len)
{
in... |
// Copyright 2019 J Forristal LLC
// Copyright 2016 Addition Security 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... |
/* This file was generated automatically by the Snowball to ANSI C compiler */
#include "../runtime/header.h"
#ifdef __cplusplus
extern "C" {
#endif
extern int french_ISO_8859_1_stem(struct SN_env * z);
#ifdef __cplusplus
}
#endif
static int r_un_accent(struct SN_env * z);
static int r_un_double(struct SN_env * z);
s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.