text stringlengths 5.71k 33.7k |
|---|
// THIS IS DECOMPILED PROPRIETARY CODE - USE AT YOUR OWN RISK.
//
// The original code belongs to <NAME>" Amaya.
//
// Modifications and custom code are under the MIT licence.
// See LICENCE.txt for details.
#include "Boss.h"
#include <string.h>
#include "WindowsWrapper.h"
#include "BossAlmo1.h"
#include "BossAlmo2... |
/*This source code copyrighted by <NAME> (2004-2020)
and may not be redistributed without written permission.*/
//Using SDL and standard IO
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <SDL_mixer.h>
#include <stdio.h>
#include <string>
#include <sstream>
#include <cmath>
// Definitions
// ---... |
//
// Copyright (c) 2016-2019 <NAME> (kris at jusiak dot net)
//
// 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)
//
#include <boost/statechart/event.hpp>
#include <boost/statechart/simple_state.hpp>
#include <boo... |
//
// Simu5G
//
// Authors: <NAME>, <NAME>, <NAME> (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are part of the software itself,... |
//
// Created by <NAME>.
//
// uncomment to disable assert()
// #define NDEBUG
#include <cassert>
#include <iostream>
#include <cstdio>
#include <iomanip>
#include <ios>
#include <sstream>
#include <fstream>
#include <string>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <array>
#... |
#include "Common/Common.h"
#include "Common/Log.h"
#include "Demo/DVKCommon.h"
#include "Math/Vector4.h"
#include "Math/Matrix4x4.h"
#include <vector>
#define OBJECT_COUNT 1024 * 256
class ComputeFrustumDemo : public DemoBase
{
public:
ComputeFrustumDemo(int32 width, int32 height, const char* title, const std::ve... |
//===-- go-llvm-bfunction.cpp - implementation of 'Bfunction' class ---===//
//
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
//===----------------------------------------------------------------------===... |
#include <algorithm>
#include <array>
#include <cstdlib>
#include <fstream>
#include <functional>
#include <iostream>
#include <sstream>
#include <vector>
#include <fcntl.h>
#include <string.h>
#include "CheckerShell.h"
#include "PcreChecker.h"
#include "litesql_helper.h"
using std::cerr;
using std::cout;
using std:... |
/*-------------------------------------------------------------------------
*
* logicalfuncs.c
*
* Support functions for using logical decoding and management of
* logical replication slots via SQL.
*
*
* Copyright (c) 2012-2015, PostgreSQL Global Development Group
*
* IDENTIFICATION
* src/backend/re... |
//================ Copyright (c) 2020, PG, All rights reserved. =================//
//
// Purpose: vprof gui overlay
//
// $NoKeywords: $vprof
//===============================================================================//
#include "VisualProfiler.h"
#include "Engine.h"
#include "ConVar.h"
#include "Profiler.h"
... |
#include "Globals.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleSceneIntro.h"
#include "ModuleInput.h"
#include "ModuleTextures.h"
#include "ModuleAudio.h"
#include "ModulePhysics.h"
#include "ModuleFonts.h"
#include "ModulePlayer.h"
#include "p2List.h"
ModuleSceneIntro::ModuleSceneIntro(Appl... |
// Copyright 2011, <NAME>. All rights reserved.
// http://code.google.com/p/muduo/
//
// Use of this source code is governed by a BSD-style license
// that can be found in the License file.
//
// Author: <NAME> (chenshuo at chenshuo dot com)
#include "protobuf_codec.h"
#include "pbs/IM.BaseDefine.pb.h"
#include "sli... |
/*******************************************************************************
Copyright 2006-2012 <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/lice... |
#include "FingerCount.h"
#include <Windows.h>
#include <opencv2/opencv.hpp>
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#define LIMIT_ANGLE_SUP 60
#define LIMIT_ANGLE_INF 5
#define BOUNDING_RECT_FINGER_SIZE_SCALING 0.3
#define BOUNDING_RECT_NEIGHBOR_DISTANCE_SCALING 0.05
using cv::Mat;
using cv::Re... |
#include "Maze.h"
#include <SFML/Graphics/PrimitiveType.hpp>
#include <SFML/Graphics/Vertex.hpp>
#include <SFML/Graphics/VertexArray.hpp>
#include <SFML/System/Vector2.hpp>
#include <iostream>
#include <algorithm>
#include <limits>
#include "MazeGenerator.h"
#include "Command.h"
#include "mathFunctions.h"
const unsign... |
// os.cpp
// Copyright 2014 - 2019 <NAME>.
// License: https://github.com/polymonster/pmtech/blob/master/license.md
#include "GL/glew.h"
#include "console.h"
#include "hash.h"
#include "input.h"
#include "os.h"
#include "pen.h"
#include "renderer.h"
#include "threads.h"
#include "timer.h"
#include "types.h"
#include ... |
//===- MinidumpYAML.cpp - Minidump YAMLIO implementation ------------------===//
//
// 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
//
//===---------------------------... |
#include <gtest/gtest.h>
#include "codec_def.h"
#include "codec_app_def.h"
#include "codec_api.h"
#include "wels_common_basis.h"
#include "mem_align.h"
#include "ls_defines.h"
using namespace WelsDec;
#define BUF_SIZE 100
//payload size exclude 6 bytes: 0001, nal type and final '\0'
#define PAYLOAD_SIZE (BUF_SIZE - 6... |
// Copyright (c) 2017-2019 The PIVX developers
// Copyright (c) 2019 The Veil developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <logging.h>
#include "zwallet.h"
#include "txdb.h"
#include "wallet/walletdb.h"
#i... |
/* heXon
// Copyright (C) 2018 <NAME> (<EMAIL>)
//
// 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 Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This progra... |
//===- Pass.cpp - Pass infrastructure implementation ----------------------===//
//
// Copyright 2019 The MLIR Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... |
/*
* Copyright (C) 2012 www.scratchapixel.com
*
* 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 Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Thi... |
////////////////////////////////////////////////////////////////
// MSDN Magazine -- July 2001
// If this code works, it was written by <NAME>.
// If not, I don't know who wrote it.
// Compiles with Visual C++ 6.0. Runs on Win 98 and probably Win 2000 too.
// Set tabsize = 3 in your editor.
//
// Theo - Heavily ... |
#include <DS3231.h>
#include <Wire.h>
#include <EEPROM.h>
unsigned long tim = 0;
unsigned long blink_timer = 0;
unsigned long lp_millis = 0;
byte last_minute = 0;
byte digit[4];
bool blink_flag = 1;
bool on_off_flag = 0;
bool lp_rst = 0;
bool night_mode = 0;
bool show_date = 0;
byte night_mode_val = 140;
byte day_mode_... |
/*
* Copyright 2021-2022 Hewlett Packard Enterprise Development LP
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
*
* You may obtai... |
/*
Cafu Engine, http://www.cafu.de/
Copyright (c) <NAME> and other contributors.
This project is licensed under the terms of the MIT license.
*/
struct SunT
{
MaterialT* Material;
VectorT SunIrradiance;
VectorT LightRevDir;
};
void InitSunlight(cf::PatchMeshT& PatchMesh, const ArrayT< ArrayT<Vector... |
// Copyright 1994, 1995, 2008, 2012-2014, 2017-2018, 2021 by <NAME>.
// All Rights Reserved.
#include "chessio.h"
#include "boardio.h"
#include "epdrec.h"
#include "constant.h"
#include <algorithm>
#include <cstring>
#include <iomanip>
#include <sstream>
#define PGN_MARGIN 70
#define MAX_TAG 255
#define MAX_VAL 255... |
#include <iostream>
#include <iomanip>
#include "Cost.h"
using namespace std;
char order[] = { 'C', 'S', 'T', 'P', 'A', 'G', 'N', 'D', 'E', 'Q', 'H', 'R', 'K', 'M', 'I', 'L', 'V', 'F', 'Y', 'W' };
int localpam['Z']['Z'];
void initpam(void)
{
localpam['W']['W'] = 0;
localpam['W']['C'] = localpam['C']['W'] =... |
/*********************************************************************
* This file is distributed as part of the C++ port of the APRIL tags
* library. The code is licensed under GPLv2.
*
* Original author: <NAME> <<EMAIL>>
* C++ port and modifications: <NAME> <<EMAIL>>
********************************************... |
///*|-----------------------------------------------------------------------------
// *| This source code is provided under the Apache 2.0 license --
// *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
// *| See the project's LICENSE.md for details. ... |
#include <Eigen/Geometry>
#include <nav_msgs/Odometry.h>
#include <quadrotor_msgs/SO3Command.h>
#include <quadrotor_simulator/Quadrotor.h>
#include <ros/ros.h>
#include <sensor_msgs/Imu.h>
#include <uav_utils/geometry_utils.h>
typedef struct _Control
{
double rpm[4];
} Control;
typedef struct _Command
{
float for... |
/*
PowerDNS Versatile Database Driven Nameserver
Copyright (C) 2005 - 2008 PowerDNS.COM BV
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
Additionally, the licens... |
//////////////////////////////////////////////////////////////////////
//
// Kingsoft Blaze Game Studio. Copyright (C) 2006
//
// Created_datetime : 2006-08-16 17:00
// File_base : cpu
// File_ext : .cpp
// Author : zolazuo(zuolizhi)
// Description :
... |
#include <DataSeries/RowAnalysisModule.hpp>
#include <DataSeries/SequenceModule.hpp>
#include <DataSeries/TypeIndexModule.hpp>
using namespace std;
using boost::format;
/*
=pod
=head1 NAME
wcanalysis - analysis the 1998 World Cup web traces
=head1 SYNOPSIS
% wcanalysis <input-ds-paths...>
=head1 DESC... |
#include "lab_m1/Tema1/Tema1.h"
#include <vector>
#include <iostream>
#include <cmath>
#include <ctime>
#include "lab_m1/Tema1/transform2D.h"
#include "lab_m1/Tema1/myobject2D.h"
#include "lab_m1/Tema1/collision.h"
#include <lab_m1/Tema1/Player.h>
#include <lab_m1/Tema1/Obstacle.h>
#include <lab_m1/Tema1/Projectile.h... |
#include "pch.hpp"
#include <sstream>
#include <iomanip>
#include "clist.hpp"
#include <pybind11/stl.h>
extern "C"
{
#include "network.h"
#include "gexnet.h"
#include "stream.h"
}
/*
class PyNetworkNode
{
friend class PyNetworkLink;
public:
PyNetworkNode(NetworkNode* node)
:mNode(node) {}
bool valid() ... |
// Copyright (c) 2019 The Zcoin Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "hdmint/wallet.h"
#include "main.h"
#include "txdb.h"
#include "init.h"
#include "hdmint/hdmint.h"
#include "sigma/openssl_... |
//gcc -lopencv_highgui -lopencv_calib3d calibration.cpp -o calibration
//./calibration -w 13 -h 12 -s 1 -n 20 -o camera.yml -op -oe list.txt
#include "opencv2/highgui/highgui_c.h"
#include "opencv2/imgproc/imgproc_c.h"
#include "opencv2/calib3d/calib3d.hpp"
#include <stdio.h>
#include <string.h>
#include <time.h>
// e... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018, Lawrence Livermore National Security, LLC. Produced at the
// Lawrence Livermore National Laboratory in collaboration with University of
// Illinois Urbana-Champaign.
//
// Written by the LBANN Research Team (<NAME>... |
#ifdef __GPU
extern "C" void residuals_aux_gpu(int num_gvec_loc__,
int num_res_local__,
int* res_idx__,
double* eval__,
double_complex const* hpsi__,
... |
#include "Load3ds.h"
#include "LoadShader.h"
#include "../Utils/ResourceManager.h"
using namespace tinyxml2;
Load3ds::Load3ds()
: _minCreaseCosAngle(0.7f)
{
}
Load3ds::~Load3ds()
{
if ( _file3ds )
{
lib3ds_file_free(_file3ds);
_file3ds = 0;
}
}
void Load3ds::setMinCre... |
///////////////////////////////////////////////////////////////////////////////
// File: ChargeDividerFP420
// Date: 12.2006
// Description: ChargeDividerFP420 for FP420
// Modifications: std::
///////////////////////////////////////////////////////////////////////////////
#include "SimRomanPot/SimFP420/interface/Char... |
#include "Skylark.h"
#if 0
#define LLOG(x) DLOG(x)
#define LDUMP(x) DDUMP(x)
#define LDUMPC(x) DDUMPC(x)
#define LDUMPM(x) DDUMPM(x)
#else
#define LLOG(x)
#define LDUMP(x)
#define LDUMPC(x)
#define LDUMPM(x)
#endif
#define LTIMING(x) //RTIMING(x)
namespace Upp {
enum { DISPATCH_VARARGS = -1 };
struct D... |
/**
* Example how to connect an ESP32 to Sensirion's SmartGadget
* with SHT31 temperature and humidity sensor
* https://developer.sensirion.com/platforms/sht31-smart-gadget-development-kit/
* https://github.com/Sensirion/SmartGadget-Firmware/
*
* original author unknown
* updated by chegewara
* source:
* http... |
//===========================================================================//
/* MIT License
Copyright (c) 2019 <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 restrictio... |
/************************************************************************************
Filename : SensorBoxTest.h
Content : Visual orientaion sensor test app; renders a rotating box over axes.
Created : October 1, 2012
Authors : <NAME>
Copyright : Copyright 2012 Oculus, Inc. All Rights reser... |
/****************************************************************************
*
* Copyright (c) 2017-2019 PX4 Development Team. 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. Red... |
/**
* WSPing GUI...
*
* Example usage of wsping with ImGui and Viper Framework.
*/
// IMPORTANT NOTES: - Add VP_DECL and VP_DLL to compiler defines
// if you using dynamic library version of
// viper framework.
//
// - Add -ld3d11, -ldxgi, and -ldxguid linker... |
#include "stdafx.h"
#include "cpdial.h"
#include "Graphics/Include/renderow.h"
#include "otwdrive.h"
#include "Graphics/Include/grinline.h" //Wombat778 3-26-04
extern bool g_bFilter2DPit; //Wombat778 3-30-04
CPDial::CPDial(ObjectInitStr *pobjectInitStr, DialInitStr* pdialInitStr) : CPObject(pobjectInitStr) {
int i;... |
#include <OS.h>
#include <Region.h>
#include <Rect.h>
#include <stdio.h>
#include <strings.h>
#include <Window.h>
#include "Layer.h"
#include "MyView.h"
extern BWindow* wind;
Layer::Layer(BRect frame, const char* name, uint32 rm, uint32 flags, rgb_color c)
{
fFrame = frame;
fOrigin.Set(0.0f, 0.0f)... |
#include <functional>
#include <deque>
#include <vector>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <emscripten/bind.h>
using namespace emscripten;
class HBasis {
public:
HBasis(){};
HBasis(double x, double y, double r)
: x(x), y(y), r(r){};
double x = 0;
do... |
/*!*******************************************************************************************
* \file new_quadrotor_pid_controller_tester.cpp
* \brief Flight Motion PID Controller tester.
* \details This code tests different flight modes and write data in csv files using NEW topics.
* ... |
#pragma execution_character_set("utf-8")
#include "lednumber.h"
#include "qpainter.h"
#include "qtimer.h"
#include "qdebug.h"
LedNumber::LedNumber(QWidget *parent) : QWidget(parent)
{
number = 0;
space = 5;
padding = 2;
radius = 2;
bgColorStart = QColor(100, 100, 100);
bgColorEnd = QColor(60... |
/***************************************************************************
* Developer: <NAME> (2012) *
* <EMAIL> *
* Version: 1.0 *
* ... |
#include "gtest/gtest.h"
#include <string>
#define USE_JSON_TRANSFORM
#include "../include/sdpinfo.h"
using namespace std;
using namespace sdp;
const string sdpstr = string("v=1\r\n") +
string("o=- 4327261771880257373 2 IN IP4 127.0.0.1\r\n") +
string("s=-\r\n") +
string("t=1 1\r\n") +
string("a=group:BUNDLE audio... |
// Std. Includes
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <OpenGL/gl.h>
#include <OpenGl/glu.h>
#include <GLUT/glut.h>
#define _USE_MATH_DEFINES
#include <math.h>
#ifdef WIN32
#include <windows.h>
#pragma warning(disable:4996)
#include "glew.h"
#endif
// GLEW
//#define GL... |
#include "Generator.hpp"
#include "PolarVector.hpp"
#include <iostream>
#include <algorithm>
unsigned Generator::BulletCalculatedMax = 10000;
std::array<unsigned, 8> Generator::ValidColors = {0, 2, 4, 6, 8, 10, 13, 15};
Generator::Generator()
:Bullet_Vec()
,EMT_Vec()
,AFT_Vec()
,Vertexes_Vec(sf::Quads, BulletCalcula... |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#include "gtest/gtest.h"
#include "udPlatform.h"
#include "udStringUtil.h"
#define GENERATE_EXPECTED 0
#define GETSIGN(x) (((x) < 0) ? -1 : ((x) > 0) ? 1 : 0)
// ----------------------------------------------------------------------------
// Author: <NAME>, July 2017
TEST(udStrTests, udStrncmp)
{
static const char... |
#include <iostream>
#include <memory>
#include <string>
#include <boost/algorithm/string/split.hpp>
#include <boost/lambda/lambda.hpp>
#include <boost/range/combine.hpp>
#include <opts/opts.h>
#include <dlog/log.h>
#include <dlog/stats.h>
#include <diy/decomposition.hpp>
#include <diy/reduce.hpp>
#include <diy/partn... |
//Global.cpp
#include "PreCompiled.h"
#include "Fresco.h"
#include "Except.h"
#include "RasterIO.h"
#include "Poco/Path.h"
//#include <ios>
//#include <iostream>
#include <sstream>
#include <sys/types.h>
#include <fcntl.h>
#ifndef WIN32
#include <unistd.h>
#endif
void ShowOutput(const EDetailL... |
#include <assert.h>
#include <fstream>
#include <sstream>
#include <iostream>
#include <cmath>
#include <sys/stat.h>
#include <cmath>
#include <time.h>
#include <cuda_runtime_api.h>
#include <algorithm>
#include <chrono>
#include <string.h>
#include <map>
#include <random>
#include <iterator>
#include "NvInfer.h"
#inc... |
// Copyright (c) 2017 <NAME>
//
// Train your data, then record them in an output file stated in "retrieving_weights_multi_classes_into_text_file"
#include <limits>
#include <math.h>
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/Eigen>
#include... |
int ia02,zc6
, Y
, nCP,ot, eOasE ,NP, ikSz,ZoC,G
//z
,ENKD
, Few ,nwv ,MT
,
ifm, UCK
,/*Ly*/
JvWl ,N
,W32
,/*J8*/np2
, vG ,u , naJd
,
c80 , IKk1
,a7xwb
,/**/ VpUn,/*UT4*/
Lbfw,i , B6
, fo,Tg
,azpmR,M ,
ofrx,eul0
,
qQ ,
tzNNX
,
Nz,
GsU,rfw,Dfx
,
vbX
;void//9M
f_f0 () { volatile int jk ,dFn... |
#include <slamtools/essential.h>
using namespace Eigen;
class Polynomial {
public:
// clang-format off
enum GRevLexMonomials {
XXX = 0, XXY = 1, XYY = 2, YYY = 3, XXZ = 4, XYZ = 5, YYZ = 6, XZZ = 7, YZZ = 8, ZZZ = 9,
XX = 10, XY = 11, YY = 12, XZ = 13, YZ = 14, ZZ = 15, X = 16, Y = 17, Z =... |
#include "Kmer.h"
char *int2bin(uint32_t a, char *buffer, int buf_size) {
//buffer += (buf_size - 1);
for (int i = 7; i >= 0; i--) {
*buffer++ = (a & 1) + '0';
a >>= 1;
}
return buffer;
}
static const uint8_t base_swap[256] = {
0x00, 0x40, 0x80, 0xc0, 0x10, 0x50, 0x90, 0xd0,
0x20, 0x... |
#include "motor.h"
#include "timer_encoder.h"
#include "interrupt_encoder.h"
#include "irsensor.h"
#include "gyro.h"
#include "pid.h"
#include "digital_output.h"
#include "distance_sensor.h"
#include "Solver.h"
#include "stdlib.h"
#include "mbed.h"
// Enable Serial Communications
// Uncomment SERIAL_ENABLE to enabl... |
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wint-in-bool-context"
#pragma GCC diagnostic ignored "-Wuninitialized"
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#include <vector>
#include <ap_fixed.h>
#include <gtest/gtest.h>
#include "graphlily/global.h"
#define DISP_EXE_CMD(cmd)\
std::cou... |
/**
* @file RenderCoreKVS.h
* KVS RendererPlugin core
*/
#include <Core/Ref.h>
#include "RenderCoreKVS.h"
#include <RenderObject/RenderObject.h>
#include <Buffer/BufferImageData.h>
#include <Buffer/Buffer.h>
#include <RenderObject/Camera.h>
#include <Image/ImageSaver.h>
#include <stdio.h>
// OpenGL header
#ifdef ... |
#include <iostream>
#include <fstream>
#include "TrussBuilder.h" // THE HEADER
// ============= editor functions
int_fast32_t TrussBuilder::insertNode( int_fast16_t ix, int_fast16_t iy, int_fast16_t iz ){
//ID64 index; index.x=ix; index.y=iy; index.z=iz;
int_fast64_t key = xyz2id( ix, iy, iz );
int sz0 ... |
#include <iostream>
#include "DSIDFPN.h"
/*------------------------------------------------------------------------------
| Constructor & Destructor
------------------------------------------------------------------------------*/
DSIDFPN::DSIDFPN( GraphEnvironment *_env, unsigned int cop_speed ):
dscrenv( new DSCREnv... |
/*
american fuzzy lop - LLVM-mode instrumentation pass
---------------------------------------------------
Written by <NAME> <<EMAIL>> and
<NAME> <<EMAIL>>
LLVM integration design comes from Laszlo Szekeres. C bits copied-and-pasted
from afl-as.c are Michal's fault.
Copyright 2015, 20... |
/*
* Copyright (C) 2015 <NAME> <<EMAIL>>.
*
* You may use this file under the terms of the BSD license as follows:
*
* 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 reta... |
#include "Data.hpp"
#include "Log/Log.hpp"
#include <fstream>
#include <future>
static constexpr const char* eol = "\n";
static constexpr const char* separationToken = " ";
static constexpr int64 maxNbMachines = 5000;
static constexpr int64 maxNbResource = 20;
static constexpr int64 maxNbProcesses = 50000;
static ... |
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENS... |
#include <iostream>
#include <iomanip>
#include <array>
#include <string>
#include <algorithm>
#include <vector>
#include <fstream>
#include <limits>
#include <cassert>
using namespace std;
class atom
{
private:
static const size_t n = 31;
static const array<string, n> ad_strings;
static const array<float, n> ad_co... |
#include "Core.h"
#include "UnCore.h"
#include "UnObject.h"
#include "UnrealPackage/UnPackage.h" // for Package->Name
#include "Exporters.h"
#include "Parallel.h"
// configuration variables
bool GExportScripts = false;
bool GExportLods = false;
bool GDontOverwriteFiles = false;
bool GEx... |
// Copyright 2009 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 applicabl... |
/*
* vehicle.cpp
*
* Created on: Apr 6, 2020
* Author: ahmadsv
*/
#include "vehicle.h"
#include <algorithm>
#include <iterator>
#include <map>
#include <string>
#include <vector>
#include "cost.h"
#include "parameters.h"
#include "iostream"
#include <limits>
using std::string;
using std::vector;
// Initial... |
// Copyright (c) 2021 <NAME>
// SPDX-License-Identifier: BSD-3-Clause
#include "video.h"
#include <stdint.h>
#include <cassert>
#include <cmath>
#include "cpu.h"
#include "io.h"
#include "memory.h"
uint32_t screen_texture;
uint32_t screen_pixels[SCREEN_HEIGHT][SCREEN_WIDTH];
typedef struct {
int left;
int ... |
//
// Created by kunlun on 2019/11/26.
//
#include <regex>
#include <array>
#include "Blocker.h"
#include "LineParser.h"
#include <cassert>
#include <iostream>
using namespace std;
using namespace mdht;
Blocker::Blocker(std::string &str, int pos): mtext(move(str)), mpos{pos}{
}
void Blocker::get_result(std::list<... |
/*
IRON-HID Firmware for At90USB1286 in Teensy2.0++
Copyright (C) 2016 <NAME>
at National Security Research Institute of South Korea
*/
/*
Copyright (c) 2016 <NAME> at NSR of South Kora
Permission is hereby granted, free of charge, to any person obtaining a copy
of thi... |
/*
pbrt source code Copyright(c) 1998-2012 <NAME> and <NAME>.
This file is part of pbrt.
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 copyr... |
//===- AArch64ExpandImm.h - AArch64 Immediate Expansion -------------------===//
//
// 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
//
//===---------------------------... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2020 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
// Copyright 1996-2020 Cyberbotics 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 agr... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/graphics/drivers/misc/goldfish/pipe_device.h"
#include <fidl/fuchsia.hardware.goldfish/cpp/wire.h>
#include <inttypes.h>
#include <lib/ddk/d... |
// Copyright 2013 <NAME>
// Distributed under Boost license
#include <string>
#include <jsoncons/json.hpp>
#include <iomanip>
using namespace jsoncons;
void serialization_example1()
{
json val = json::parse(R"(
{
"sfm_data_version": "0.2",
"root_path": "D:\\Lagring\\Plugg\\Examensarbete\\Data\\images",
... |
// BSD 3-Clause License
// Copyright (c) 2019, SCALE Lab, Brown University
// 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 n... |
// Released under the MIT licence.
// See LICENCE.txt for details.
#include "../Rendering.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include "SDL.h"
#include "../../WindowsWrapper.h"
#include "../Misc.h"
#include "../Shared/SDL.h"
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#de... |
#include "MqttToSmartWebGateway.h"
#include <string.h>
#include <wblib/exceptions.h>
#include "exceptions.h"
#include "log.h"
using namespace WBMQTT;
using namespace CAN;
using namespace std;
namespace
{
const auto KEEP_ALIVE_INTERVAL_S = TTimeIntervalS(10); // if nothing else to do - each 10 seconds se... |
/*
* TOPPERS Software
* Toyohashi Open Platform for Embedded Real-Time Systems
*
* Copyright (C) 2007-2012 by <NAME>
*
* 上記著作権者は,以下の(1)〜(4)の条件を満たす場合に限り,本ソフトウェ
* ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
* 変・再配布(以下,利用と呼ぶ)することを無償で許諾する.
* (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
* 権表示,この利用条件および下記の無保証規定が,そのまま... |
static char *pubkey_id =
"@(#)Copyright (C) H.Shirouzu 2011-2015 pubkey.cpp Ver3.60";
/* ========================================================================
Project NameF : IP Messenger for Win32
Module Name : Public Key Encryption
Create : 2011-05-03(Tue)
Update : 2015-11-01(Sun)
Copyright... |
//
// Copyright (c) 2018-2019 cTuning foundation.
// Copyright (c) 2019-2020 dividiti Limited.
// Copyright (c) 2021 Krai Ltd.
//
// SPDX-License-Identifier: BSD-3-Clause.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are m... |
#include "group.hpp"
#include "parse.hpp"
#include "tag.hpp"
#include "build/dump.def.hpp"
#include "build/dump.def.cpp"
using std::string;;
struct COutput;
class GroupCtl;
void GroupCtl::init(CLog& ilog, std::vector<t_config_database1>& cfgs)
{
log=ilog;
main=0;
for(t_config_database1& cfg : cfgs) {
log... |
//[header]
// A simple program to demonstrate how to ray-trace a polygon mesh
//[/header]
//[compile]
// Download the raytracepolygonmesh.cpp, geometry.h and cow.geo file to a folder.
// Open a shell/terminal, and run the following command where the files is saved:
//
// c++ -o raytracepolymesh raytracepolymesh.cpp -st... |
//$Id$
//------------------------------------------------------------------------------
// Stars.cpp
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2015 United States Government as represente... |
#include "StdAfx.h"
#include "software_update.h"
#include "wpt_status.h"
#include "PEHelper.h"
#include <Shellapi.h>
static const DWORD SOFTWARE_UPDATE_INTERVAL_MINUTES = 60; // hourly
static const DWORD SOFTWARE_INSTALL_TIMEOUT = 600000; // 10 minutes
static const TCHAR * SOFTWARE_REG_ROOT =
... |
#include "Variant.h"
#include "BedReader.h"
#include "IntervalTree.h"
#include <getopt.h>
#include "Fasta.h"
#include <algorithm>
#include <list>
#include <set>
using namespace std;
using namespace vcflib;
void printSummary(char** argv) {
cerr << "usage: " << argv[0] << " [options] [<vcf file>]" << endl
... |
/**
* BICG
* q = A*p
* s = A**T*r
* A is an NxM matrix. r and q are N elements vector, p and s are M elements vector
* Implementing this with classical BLAS, requires two gemv that can run in parallel (by sharing memory accesses)
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#includ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.