text stringlengths 3.08k 12.5k |
|---|
/*
* File name: map_partition_module.cc
* Date: 2011/02/15 17:24
* Author: <NAME>
*/
#include <crl/assert.h>
#include <crl/loader/map_partition_module.h>
using namespace crl::loader;
const std::string crl::loader::CMapPartition::name = "partition";
/// ---------------------------------------------------... |
// $Id$
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <cstdlib>
typedef enum { unknown, galaxy, emission, reflection, open_cluster,
globular_cluster } nebula_kind;
struct nebula {
int NGC, IC, M; // |0| if not defined.
string constellation;
double rectasce... |
#include <stan/services/pathfinder/single.hpp>
#include <stan/io/array_var_context.hpp>
#include <test/test-models/good/stat_comp_benchmarks_models/eight_schools.hpp>
#include <test/unit/services/instrumented_callbacks.hpp>
#include <stan/callbacks/stream_writer.hpp>
#include <gtest/gtest.h>
stan::io::array_var_contex... |
#pragma once
// CUDA driver & runtime
#include <cuda.h>
#include <cuda_runtime.h>
// C++
#include <cstdint>
// TODO: pass optimization/other flags when compling the PTX
std::string inline read_ptx(const std::string ptx_file_path) {
FILE* fp = fopen(ptx_file_path.c_str(), "rb");
if (fp != NULL) {
fseek(fp, 0, ... |
/***************************************************************************
* Copyright (C) 2006 *
* *
* *
* This p... |
#include "symboltable.h"
#include "astnodetypes.h"
#include <iostream>
#include <utility>
SymbolTable* addNewScope(SymbolTable* s, std::string name) {
if(s->children.find(name) == s->children.end()) {
//std::cout << "Adding new scope for " << name << "\n";
auto scope = new SymbolTable;
s->c... |
/*
KHOMP generic endpoint/channel library.
Copyright (C) 2007-2009 Khomp Ind. & Com.
The contents of this file are subject to the Mozilla Public License Version 1.1
(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.mozilla... |
/**
* @file
* @author <NAME>
* @brief Implementation of src/graphics/asgi.hxx
*/
/*
* asgi.cxx
*
* Created on: 22.01.2011
* Author: jason
*/
#include <vector>
#include <exception>
#include <stdexcept>
#include <GL/gl.h>
#include "vaoemu.hxx"
#include "asgi.hxx"
#include "vec.hxx"
#include "mat.hxx"
#... |
#include "StdH.h"
#include <Engine/Base/CRCTable.h>
#include <Engine/Base/FileName.h>
#include <Engine/Base/Stream.h>
#include <Engine/Base/Console.h>
#include <Engine/Base/CRC.h>
#include <Engine/Templates/DynamicStackArray.cpp>
extern INDEX net_bReportCRC;
class CCRCEntry {
public:
CTFileName ce_fnmFile; // th... |
#include <stdio.h>
#include <fstream>
#include <iostream>
#include "./../../log.hpp"
#include <string.h>
using namespace std;
#include "three_in_no_out_layer.hpp"
#include "./scatter_nd_add_test.hpp"
bool ScatterNdAddTest::test(string name)
{
TVM_LOG(CC_LOG_INFO, "TVM ScatterNDAdd BBIT begin.");
bool ret = fal... |
#include<bits/stdc++.h>
using namespace std;
const int N = 3e5 + 9, mod = 1e9 + 7;
template <int32_t MOD>
struct modint {
int32_t value;
modint() = default;
modint(int32_t value_) : value(value_) {}
inline modint<MOD> operator + (modint<MOD> other) const { int32_t c = this->value + other.value; retu... |
/*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... |
#include <memory>
#include <lua.hpp>
#include "core/entity.h"
#include "core/physics.h"
#include "core/rect.h"
#include "core/entitymanager.h"
#include "core/statemanager.h"
#include "core/state.h"
#include "core/entitymanager.h"
#include "core/debug.h"
#include "luacscript.h"
#include "luacrectf.h"
#include "luacvecto... |
#include "RecoMuon/L3MuonProducer/src/QuarkoniaTrackSelector.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogge... |
#include "dds.hh"
#include "eca.hh"
#include "method.hh"
#define ECA_TRACE
using namespace dds;
//using namespace std::literals;
void basic_control::cancel_rule(eca_rule rule) {
// Rule cancelation is complicated by the fact
// that we need to delete the action
// BUT!!! The action may be already in ... |
/*
Copyright (c) 2002-2015 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... |
/************************************************************************
* *
* GLE - Graphics Layout Engine <http://www.gle-graphics.org/> *
* *
* Modified BSD License ... |
#include <mpi.h>
#include "solver.h"
MPIEquSolver::MPIEquSolver(int min_interval)
: maskbuf(NULL),
imgbuf(NULL),
tmp(NULL),
min_interval(min_interval),
EquSolver() {
MPI_Comm_rank(MPI_COMM_WORLD, &proc_id);
MPI_Comm_size(MPI_COMM_WORLD, &n_proc);
offset = new int[n_proc + 1];
}
MPIE... |
#include <iostream>
#include <string>
#include <z3++.h>
#include <fstream>
#include <getopt.h>
#include "../lib/Solver.h"
#include "../lib/Logger.h"
#include "../lib/Config.h"
#include "../lib/SMTLIBInterpreter.h"
#include "antlr4-runtime.h"
#include "SMTLIBv2Lexer.h"
#include "SMTLIBv2Parser.h"
using namespace std;... |
/* i2c to Teensy 3.2 Clock on 19 White, Data on 18 Yellow, GREEN IS 3V3, RED IS GND!!!
*/
#include <Arduino.h>
#include <Wire.h>
#include <Servo.h>
#include <math.h>
#include "wiinunchuk.h"
#define DeadZone 16
//#define DeadZoneMin CenterX-(DeadZone)
//#define DeadZoneMax CenterY+(DeadZone)
#define CenterX 127
#d... |
//
// pivit_table.cpp
//
// Copyright 2016 <NAME> @ CSHL
//
#include <algorithm>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include "error.h"
#include "utility.h"
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
using std::exception... |
#include "tinyxml2.h" //Using Tinyxml2 API
#include <string> //Using std::string Also std::to_string Function
#pragma region Text_Colors
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_BLUE "\x1b[34m"
#define ANSI_COLOR_MAGEN... |
#include "stdafx.h"
#include <math.h>
#include "alloc_util.h"
static int G_tqli(double *d, double *e, int n, double **z);
static void G_tred2( double **a, int n, double *d, double *e );
#define MAX_ITERS 30
#define SIGN(a,b) ((b)<0 ? -fabs(a) : fabs(a))
/* Computes eigenvalues (and eigen vectors if desired) for */... |
//
// Copyright 2015 <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 wr... |
#pragma once
#include <cstdlib>
#include "headers/llibreries.hpp"
using namespace cv;
using namespace std;
CCamera* cam;
class bufferCircular;
int WIDTH_FRAME, HEIGHT_FRAME, FPS, WIDTH_PANT, HEIGHT_PANT, BRIGHTNESS, INTEGRATION_TIME;
char root[500]="./Experiment/";
void caputure (visionSystem... |
#define IOTWEBCONF_PASSWORD_LEN 65
#include <IotWebConf.h>
#include <IotWebConfUsing.h> // This loads aliases for easier class names.
// ### Network ################################################################
// ############################################################################
// Name server
DNSServe... |
/*
* Copyright 2012 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 applica... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
/*
Copyright (c) 2020 <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, subl... |
#include "Sprite_batch.hpp"
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <vector>
#include <cstdint>
#include "Vertex1P1C1UV.hpp"
#include "Sprite.hpp"
#include "vec2.hpp"
#include "vec3.hpp"
#include "vec4.hpp"
gfx::Sprite_batch::Sprite_batch(const unsigned max_nu... |
//============================================================================
// Name : test.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#inclu... |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Copyright (c) 2017-2021 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/bitcoinaddressvalidator.h>
#include <config.h>
#include <key_... |
/*!
LTC4261: Negative Voltage Hot Swap Controller with ADC and I2C Monitoring
@verbatim
The LTC4261/LTC4261-2 negative voltage Hot SwapTM controller allows a board
to be safely inserted and removed from a live backplane. Using an external
N-channel pass transistor, the board supply voltage can be ramped at an
... |
#include "writer.hpp"
#include <Eigen/Sparse>
#include <Eigen/SparseCholesky>
#include <cmath>
#include <iostream>
#include <stdexcept>
//! Sparse Matrix type. Makes using this type easier.
typedef Eigen::SparseMatrix<double> SparseMatrix;
//! Used for filling the sparse matrix.
typedef Eigen::Triplet<double> Triplet... |
/// @file DopplerConverter.cc
/// @brief A class for interconversion between frequencies
/// and velocities.
/// @details This is an implementation of a relatively low-level
/// interface, which is used within the implementation of the data
//// accessor. The end user interacts with the IDataConverter class only.
///
/... |
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
// Cardinality of the alphabet
const int alphabet = 27;
// Calculate suffix array for a given string for O(n log n)
std::vector<int> build_suffix_array(const std::string& str) {
std::string str_dollar = str + "`";
int len = str_dolla... |
#include "ShaderCompiler.h"
#include <Shlwapi.h>
#include <fstream>
#include "DirectX.h"
#include "Utility.hpp"
#pragma comment(lib, "Shlwapi.lib")
using namespace Rendering::Shader;
std::string ShaderCompiler::MakeKey(const std::string& fileName, const std::string& mainFunc, const std::string& shaderTypeStr, const... |
// Copyright (c) Microsoft Corporation. All rights reserved.
#include <iomanip>
#include <iostream>
#include <string>
#include <winrt/Windows.Foundation.h>
#include <winrt/windows.foundation.collections.h>
#include <winrt/windows.media.h>
#include <winrt/windows.system.threading.h>
#include "CameraHelper_cppwinrt.h"... |
#include <cuda_runtime.h>
#include "cublas_v2.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "kernels.cuh"
#include "thin-stack.h"
#include "util.h"
using namespace testing;
static ThinStack make_stack(ModelSpec spec) {
// Make up random parameters.
float *compose_W_l, *compose_W_r, *compose_b;
... |
#include <rsi/rsi.h>
#include <stdexcept>
#include <vector>
std::string Attribute::type_str( int type )
{
switch(type)
{
case EUndefined:return "undefined";
case EFloat:return "float";
case EDouble:return "double";
case EInteger:return "integer";
case EString:return "string";
case EC3f:return "C3f";
... |
/*
* db_io_tests.cpp
*
* Created on: Jul 27, 2015
* Author: zmij
*/
#include <tip/db/pg/protocol_io_traits.hpp>
#include <tip/db/pg/query.hpp>
#include <tip/db/pg/log.hpp>
#include <gtest/gtest.h>
using namespace tip::db::pg;
class BoolParseTest : public ::testing::TestWithParam< std::pair< std::string... |
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 <NAME>
CppAD is distributed under the terms of the
Eclipse Public License Version 2.0.
This Source Code may also be made available under the following
Secondary Lice... |
/*
microsoft-oms-auditd-plugin
Copyright (c) Microsoft Corporation
All rights reserved.
MIT License
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, in... |
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 <NAME>
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this dis... |
////////////////////////////////////////////////////////////////////////////////
/// @brief line editor using readline
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (t... |
/*
* Copyright 2022 Open Source Robotics Foundation
*
* 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 applicab... |
/*
phonetisaurus-g2pfst.cc
Copyright (c) [2012-], <NAME>
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, t... |
/**
* Wavelet.cpp
* Authors: <NAME>, <NAME>
*
* A Wavelet noise implementation.
*
* Implementation heavily based on "Wavelet Noise" by Cook & DeRose.
*
* Reference: https://graphics.pixar.com/library/WaveletNoise/paper.pdf
*/
#include "Wavelet.h"
#define ARAD 16
Wavelet::Wavelet() {
srand(time(NULL));
... |
#include "opencv2/objdetect.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/videoio.hpp"
#include "opencv2/face.hpp"
#include <iostream>
using namespace std;
using namespace cv;
using namespace cv::face;
void detectFaceEyesAndDisplay( Mat frame );
void isolate( Mat frame, vector<... |
/*++
Module Name:
BufferedAsync.cpp
Abstract:
Double-buffered asynchronous file I/O
Environment:
User mode service.
This class is NOT thread safe. It's the caller's responsibility to ensure that
at most one thread uses an instance at any time.
--*/
#include "stdafx.h"
#include "Compat.h"
#... |
// Copyright 2021 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <lib/arch/arm64/system.h>
#include <lib/arch/cache.h>
#include <lib/boot-options/boot-options.h>
#include <lib/memalloc/p... |
#include <iostream>
using namespace std;
#include <chrono>
#include <cstdint>
#include <fstream>
#include <thread>
#include "common.hpp"
// ##### Parameters #####
#define N_STEPS 300U
#define TIMESTEP 0.001F
#define N_PARTICLES 10000U
#define RENDER_SIZE_X 640U
#define RENDER_SIZE_Y 360U
//#define RENDER_SIZE uve... |
/**
* Copyright [2019] <NAME>
*
* This module implementes an in-order executor.
*
* The extractors act as the
* producer for this in-order executor. Each task provided is associated with
* a sequence number. If they happen to arrive out-of-order, e.g. some tasks
* with larger sequence numbers arrive before th... |
#include "interface_usb.h"
#include "ascii_protocol.hpp"
#include <MotorControl/utils.hpp>
#include <fibre/protocol.hpp>
#include <usbd_cdc.h>
#include <usbd_cdc_if.h>
#include <usb_device.h>
#include <cmsis_os.h>
#include <freertos_vars.h>
#include <odrive_main.h>
osThreadId usb_thread;
const uint32_t stack_size_... |
/**
* @file findCirclesGrid.cpp
* @brief mex interface for cv::findCirclesGrid
* @ingroup calib3d
* @author <NAME>
* @date 2011
*/
#include "mexopencv.hpp"
#include "mexopencv_features2d.hpp" // createFeatureDetector
#include "opencv2/calib3d.hpp"
using namespace std;
using namespace cv;
namespace {
/// grid ty... |
/*
* ofxBox2dConvexPoly.cpp
* ofxBox2dExample
*
* Created by <NAME> on 3/7/11.
* Copyright 2011 Interactive Design. All rights reserved.
*
*/
#include "ofxBox2dConvexPoly.h"
#include "ofxBox2dPolygon.h"
ofPolyline convexHull(ofPolyline & line){
vector < hPoint > ptsIn;
for (int i = 0; i < ... |
// Copyright 2020 Smarter Eye Co.,Ltd. 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 applica... |
// -*- C++ -*-
//
// Package: EgammaHLTAlgos
// Class : EgammaHLTHcalIsolation
//
// Implementation:
// <Notes on implementation>
//
// Original Author: <NAME> - CERN
// Created: Tue Jun 13 12:16:41 CEST 2006
//
// include files
#include "RecoEgamma/EgammaHLTAlgos/interface/EgammaHLTHcalIsolati... |
#include "gm_ast.h"
#include "gm_traverse.h"
#include "gm_transform_helper.h"
//------------------------------------------------
// Defining Symbol analysis
// Map of <sent or prec_def> ==> set of (symbol, def_expression)
//
// def_expression:
// - ast_procdef ; procedure arguments
// - ast_assign ; for... |
#include <BrickGame.h>
BrickGame::~BrickGame()
{
if(_currentState)
delete _currentState;
//delete _gameDisplay;
//delete _actualGameDisplay;
//delete _icon;
}
void BrickGame::loop(uint16_t delta)
{
if(_currentState)
_currentState->loop(delta);
uint8_t x = 0, y = 0;
ui... |
// exception.cc
// Entry point into the Nachos kernel from user programs.
// There are two kinds of things that can cause control to
// transfer back to here from user code:
//
// syscall -- The user code explicitly requests to call a procedure
// in the Nachos kernel. Right now, the only function we support is
// "Ha... |
/** bidding_agent_ex.cc -*- C++ -*-
<NAME>, 22 Feb 2013
Copyright (c) 2013 Datacratic. All rights reserved.
Example of a simple fixed-price bidding agent.
*/
#include "rtbkit/common/bids.h"
#include "rtbkit/core/banker/slave_banker.h"
#include "rtbkit/core/agent_configura... |
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
// This must obviously come before the definition of std::initializer_list.
void missing_initializerlist() {
auto l = {1, 2, 3, 4}; // expected-error {{std::initializer_list was not found}}
}
namespace std {
typedef decltype(sizeof(int)) size_t;
// libc++'... |
/*
* (c) Copyright 2019 Xilinx, 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 ap... |
#include <RecoMuon/DetLayers/src/MuonGEMDetLayerGeometryBuilder.h>
#include <DataFormats/MuonDetId/interface/GEMDetId.h>
#include <Geometry/CommonDetUnit/interface/GeomDet.h>
#include <RecoMuon/DetLayers/interface/MuRingForwardDoubleLayer.h>
#include <RecoMuon/DetLayers/interface/MuRodBarrelLayer.h>
#include <RecoMuon... |
#include "image-factory.h"
#include <QDateTime>
#include <QList>
#include <QMap>
#include <QPair>
#include <QRegularExpression>
#include <QString>
#include <QVariant>
#include <QVariantMap>
#include "functions.h"
#include "models/image.h"
#include "models/page.h"
#include "models/profile.h"
#include "models/site.h"
#in... |
// Copyright 2021 <NAME>
#include "../../../modules/task_2/grigoryan_g_Cannon_omp/Cannon.h"
#include <omp.h>
#include <random>
#include <iostream>
#include <algorithm>
#include <exception>
#include <vector>
matrix RandomMatrix(const int n) {
if (n <= 0)
throw std::invalid_argument("Negative size");
st... |
#include <stdio.h>
#include <iostream>
#include <string>
#include <time.h>
#include <string.h>
#include <SDL.h>
#include <flecs.h>
using namespace std;
struct Position {
float x;
float y;
};
struct Velocity {
float x;
float y;
};
/* Component type */
struct Message {
const char *text;
};
void UpdateRen... |
/**
* Geofence
*
* Class to store geofence, detect geofence conflicts and resolve them.
*
* Contact: <NAME> (<EMAIL>)
*
*
* Copyright (c) 2011-2016 United States Government as represented by
* the National Aeronautics and Space Administration. No copyright
* is claimed in the United States under Title 17, U.... |
#include "Parser.h"
#include <clang/Frontend/ASTUnit.h>
#include <clang/Lex/HeaderSearch.h>
#include <clang/Lex/Preprocessor.h>
#include <clang/Tooling/Tooling.h>
#include <iostream>
#include <sstream>
#include <llvm/ADT/StringSwitch.h>
#include <llvm/Support/Path.h>
using namespace clang;
namespace path = llvm::sys:... |
#include <../../nrnconf.h>
/* version 7.2.1 2-jan-89 */
#include <stdio.h>
#include <stdlib.h>
#include "hocdec.h"
#include "parse.hpp"
#if 1
#include "hocusr.h"
#endif
# define CHECK(name) nrn_load_name_check(name)
static char CHKmes[] = "The user defined name, %s, already exists.\n";
Symlist *nrn_load_dll_called... |
// Copyright 2019 the Drakhtar authors. All rights reserved. MIT license.
#include "RecruitScene.h"
#include "EventListeners/StoreListener.h"
#include "GameObjects/Button.h"
#include "GameObjects/GameObject.h"
#include "GameObjects/RecruitmentStat.h"
#include "GameObjects/Text.h"
#include "GameScene.h"
#include "Mana... |
/*
* Copyright (c) CERN 2017
*
* 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 w... |
/*
* Copyright 2020 Improbable Worlds Limited
*
* 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... |
#include <AppCore/App.h>
#include <AppCore/Window.h>
#include <AppCore/Overlay.h>
#include <AppCore/JSHelpers.h>
using namespace ultralight;
const char* htmlString();
///
/// Welcome to Sample 4!
///
/// In this sample we'll show how to integrate C++ code with JavaScript.
///
/// We will introduce the DOMReady ev... |
/*
Copyright 2007-2009 Haiku, Inc. All rights reserved.
Distributed under the terms of the MIT license.
Authors:
<NAME> 2007-2009
*/
#include "accelerant.h"
#include <errno.h>
#include <string.h>
#include <unistd.h>
AccelerantInfo gInfo; // global data used by various source files of accelerant.
static s... |
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file config_physx.cxx
* @au... |
//
// Created by asus on 2020/2/29.
//
#include "goods.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
static int LEFT(int i)
{
return i + i + 1;
}
static int RIGHT(int i)
{
return i + i + 2;
}
static void swap(goods* goods1, goods* goods2)
{
goods goods3 = *goods1;
... |
#include "controller.h"
#include <Eigen/Core>
#include "hw_conf.h"
#include "comm_usb.h"
#include "utils.h"
#include <math.h>
#include "chprintf.h"
#define CLAMP_ZERO(num) num > 0 ? num : 0
using namespace Eigen;
Controller::Controller() :
m_vel_p_gains(0.05, 0.05, 0.0001),
m_vel_i_gains(0, 0, 0),
m_vel_... |
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WA... |
/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <sys/ioctl.h>
#include <asm/ioctl.h>
#include <linux/spi/spidev.h>
int SPIDataRW(int channel, unsigned char *tx_data, unsigned char *rx_data, int len);
int SPISetupMode(in... |
/*
* Copyright 2016 Quora, 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... |
#include <cstdio>
#include <iostream>
#include <opencv2/opencv.hpp>
#include <string>
#include <ctime>
#include <cstdlib>
#include "StereoMatching.hpp"
using namespace std;
using namespace cv;
const string img_name[] = {
"Aloe", "Baby1", "Baby2", "Baby3",
"Bowling1", "Bowling2", "Cloth1", "Cloth2",
"Clot... |
/**
* @file contoso_component_enumerator.cpp
* @brief Implementation of an example component enumerator.
*
* @copyright Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*/
#include "aduc/component_enumerator_extension.hpp"
#include "parson.h"
#include <algorithm>
#include <sstream>
#include ... |
// Copyright 2010 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 and... |
/* HTTP MJPEG streaming example */
#include <sys/param.h>
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_netif.h"
#include "protocol_examples_common.h"
#include <mutex>
#include <condition_variable>
//------------------------------------... |
// ***************
// * diagnostics *
// ***************
//
// Global functions:
//
// real get_elapsed_time()
// real get_cpu_time(real& user_time, real& system_time)
// vec jdata::get_center()
// void jdata::print_percentiles(vec center)
#include "jdata.h"
#include <vector>
#include <algorithm>
void jdata::get_com... |
/// \file Main.cpp
/// \brief Unpackages CSV files from binary data
/// \author <NAME>
#include <iostream>
#include <fstream>
#include <conio.h>
#include <string>
#include <sstream>
#include <algorithm>
#include <vector>
short int world_y;
short int world_x;
short int y_size;
short int x_size;
std::vector<std::vector... |
/* ************************************************************************
* Copyright 2016-2021 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "testing_common.hpp"
using namespace std;... |
#include <boost/bind.hpp>
#include "mapreduce/common/CoordinatorClientFactory.h"
#include "mapreduce/common/CoordinatorClientInterface.h"
#include "mapreduce/common/Utils.h"
#include "mapreduce/functions/partition/BoundaryScannerPartitionFunction.h"
#include "mapreduce/workers/boundaryscanner/BoundaryScanner.h"
Bound... |
/*
* Librarian for KiCad, a free EDA CAD application.
* The dialog for the link to a remote repository.
*
* Copyright (C) 2013-2015 CompuPhase
*
* 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
... |
/**
* @filename : gcal.cpp
* @brief : Library for interfacing with the google calendar api
* @author : <NAME>
*/
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include "restclient-cpp/connection.h"
#include "restclient-cpp/restclient.h"
#include "gcal.h"
using namesp... |
#include "Utils/FontControl.h"
#include "Directories.h"
#include "GameRes.h"
#include "GameState.h"
#include "SGP/Font.h"
#include "SGP/HImage.h"
#include "SGP/MemMan.h"
#include "SGP/VObject.h"
#include "SGP/VSurface.h"
#include "SGP/WCheck.h"
Font gp10PointArial;
Font gp10PointArialBold;
Font gp12PointArial;
Font g... |
//------------------------------------------------------------------------------
// Camera.cc
//------------------------------------------------------------------------------
#include <stdio.h>
#include "Pre.h"
#include "Camera.h"
#define GLM_SWIZZLE
#include "glm/glm.hpp"
#include "glm/trigonometric.hpp"
#include "... |
#include <vector>
#include <iostream>
#include <algorithm>
#include <cassert>
using namespace std;
class Point {
public:
Point() = default;
Point(int p1, int p2) { x = p1; y = p2; }
~Point() = default;
void print() { cout << x << " " << y << endl; }
int x, y;
};
unsigned int N;
vector<Point> v;
struct PointCom... |
// Copyright (C) 2015 The Regents of the University of California (Regents).
// 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... |
#include <algorithm>
#include <array>
#include <charconv>
#include <iostream>
#include <regex>
#include <string>
#include <unordered_map>
#include <vector>
enum class EventType {
Guard,
Asleep,
Awake,
None,
};
struct Event {
int id;
int mo;
int d;
int h;
int mi;
EventType type;... |
/**************************************************************
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by <NAME> <<EMAIL>>, May 2017
**************************************************************/
#include "Crawler.h"
#include <vector>
#incl... |
/**
* Copyright 2011-2015 DrumPants, Inc.
*
* http://developers.drumpants.com
*
* 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
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.