text stringlengths 5.71k 33.7k |
|---|
/*
* psql - the PostgreSQL interactive terminal
*
* Copyright (c) 2000-2012, PostgreSQL Global Development Group
*
* src/bin/psql/mainloop.c
*/
#include "settings.h"
#include "postgres_fe.h"
#include "mainloop.h"
#include "command.h"
#include "common.h"
#include "input.h"
#include "mb/pg_wchar.h"
#include <cxxa... |
// FINIS-Console.cpp : This file contains the 'main' function. Program execution begins and ends here.
#include "pch.h"
#include <iostream>
#include <fstream>
#include <string>
#include <time.h>
#include <memory>
#include <stdlib.h>
#include <windows.h>
// For profiling
#include <chrono>
// Shutter header
#include ... |
/*
Example of instantiating a WebAssembly which uses WASI imports.
You can compile and run this example on Linux with:
cargo build --release -p wasmtime-c-api
cc examples/wasi/main.c \
-I crates/c-api/include \
-I crates/c-api/wasm-c-api/include \
target/release/libwasmtime.a \
-lpthre... |
#include <cstdio>
#include <cstdlib>
#include <sys/wait.h>
#include <algorithm>
#include <cstdint>
#include <exception>
#include <fstream>
#include <iostream>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include <tuple>
#include <cmath>
#include <api/Bam... |
// $Id: config.cpp,v 1.26 2009/06/27 12:57:10 tom Exp $
// Program C(++) beautifier Written By <NAME> ACBC 11 11/94
//
// This program module contains routines to read data from a text file a
// line at a time, and able to read parameters from a configuration file.
#include <stdlib.h> // atol(),
#include <stri... |
// RUN: %check_clang_tidy %s bugprone-suspicious-string-compare %t -- \
// RUN: -config='{CheckOptions: \
// RUN: [{key: bugprone-suspicious-string-compare.WarnOnImplicitComparison, value: 1}, \
// RUN: {key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison, value: 1}]}' \
// RUN: --
typedef __SIZE_TYP... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <malloc.h>
#include <sys/time.h>
#include <time.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <string.h>
#define PI 3.141592654
int Number_Items, Num_Large_Itemset, Average_LargeItemset_Size;
int Averag... |
#pragma once
#include <vector>
#include <cstdarg>
#include <iostream>
#include <tuple>
#include <typeinfo>
#include <memory>
#include <leatherman/locale/locale.hpp>
// Mark string for translation (alias for leatherman::locale::format)
using leatherman::locale::_;
// Forward declarations for rapidjson
namespace rapid... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAME>.... |
#pragma once
class IBaseFileSystem;
class CUtlBuffer;
class Color;
class KeyValues;
class IKeyValuesDumpContext;
typedef void* FileHandle_t;
typedef void* GetSymbolProc_t;
// single byte identifies a xbox kv file in binary format
// strings are pooled from a searchpath/zip mounted symbol table
#define KV_BINARY_POOLE... |
#include "Adafruit_ImageReader_EPD.h"
#ifdef __AVR__
#define BUFPIXELS 24 ///< 24 * 5 = 120 bytes
#else
#define BUFPIXELS 200 ///< 200 * 5 = 1000 bytes
#endif
/*!
@brief Draw image to an Adafruit ePaper-type display.
@param epd
Screen to draw to (any Adafruit_EPD-derived class).
@param ... |
/*
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... |
/*
* MIT License
*
* Copyright (c) 2017 Twitter
*
* 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, ... |
#pragma warning (disable: 4146)
#define _USE_MATH_DEFINES
#include <cmath>
#define NOMINMAX
#include <openvdb/openvdb.h>
#include <openvdb/tools/LevelSetSphere.h>
#include <openvdb/tools/MeshToVolume.h>
#include <openvdb/tools/GridOperators.h>
#include "OpenMesh\Core\IO\MeshIO.hh"
#include "OpenMesh/Core/Mesh/TriMesh_... |
#include "geomsource.h"
#include "ep/cpp/component/node/node.h"
#include "ep/cpp/component/node/udnode.h"
#include "ep/cpp/component/node/geomnode.h"
#include "ep/cpp/component/resource/arraybuffer.h"
#include "ep/cpp/component/resource/material.h"
#include "ep/cpp/component/resource/model.h"
#include "ep/cpp/component... |
#include "pe.h"
#include <algorithm>
#include <cstring>
#include <iostream>
#include <utility>
#include "../leanify.h"
#include "../utils.h"
using std::cerr;
using std::endl;
using std::string;
const uint8_t Pe::header_magic[] = { 'M', 'Z' };
namespace {
const string resource_types[] = {
// 0 - 9
"", "CURSOR"... |
#include "epoc_sdl.h"
#include <stdio.h>
#undef NULL
extern "C" {
//#define DEBUG_TRACE_ENABLED
#include "SDL_error.h"
#include "SDL_video.h"
#include "SDL_keysym.h"
#include "SDL_keyboard.h"
#include "SDL_events_c.h"
#include "SDL_timer.h"
} /* extern "C" */
#include "SDL_epocvideo.h"
#include "SDL_epocevents_c.h"
... |
#include "ParticleSystem.h"
#include "VGL.h"
#include "Log.h"
#include <stdlib.h>
// Shader uniform handles for update program
static int s_hMinLifetime = -1;
static int s_hMaxLifetime = -1;
static int s_hMinColor = -1;
static int s_hMaxColor = -1;
static int s_hMinVelocity = -1;
static int s_hMaxVeloc... |
/*
Shallow water PK
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
*/
// TPLs
#include "Teuchos_RCP.hpp"
#include "Teuchos_ParameterL... |
// Copyright © 1996-2018, Valve Corporation, All rights reserved.
#include "tier0/include/icommandline.h"
#include <ctype.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "base/include/stdio_file_stream.h"
#include "tier0/include/dbg.h"
#include "tier0/include/platform.h"
#include "tier0/include/... |
#include <iostream>
#include <fstream>
#include <queue>
#include <chrono>
#include "hnswlib/hnswlib.h"
#include <unordered_set>
using namespace std;
using namespace hnswlib;
/*
template <typename T>
void writeBinaryPOD(ostream& out, const T& podRef) {
out.write((char*)&podRef, sizeof(T));
}
template <typename ... |
/**
* @file equihash_gpu_solver.cpp
* @author <NAME> (<EMAIL>)
* @brief
* @version 0.1
* @date 2018-11-24
*
* @copyright Copyright (c) 2018
*
*/
#include "equihash_gpu/equihash/gpu/equihash_gpu_solver.h"
#include <unistd.h>
#include <stdlib.h>
#define UNW_LOCAL_ONLY
#include <cxxabi.h>
#include <libunwind.... |
/* MPU6050 demo Copyright (C) 2012 <NAME>
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY... |
/* copyright (c) 2007 <NAME>, see licence.txt for more info */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <base/math.hpp>
#include <engine/e_config.h>
#include <engine/e_server_interface.h>
extern "C"
{
#include <engine/e_memheap.h>
}
#include <game/version.hpp>
#include <game/collision.hpp>... |
#include "Keyboard.hpp"
#include <windows.h>
bool Keyboard::autoRepeat = true;
Keyboard::Key Keyboard::convertCodeToKey(const unsigned int code) {
Keyboard::Key key;
switch (code) {
case VK_F1: key = Keyboard::F1; break;
case VK_F2: key = Keyboard::F2; break;
case VK_F3: key = Keyboard::F3; break;
... |
#include <PackedImageData.h>
#include <FloydSteinberg.h>
#include <ImageData.h>
#include "rg_etc1.h"
#include "dxt.h"
#include <cassert>
using namespace std;
using namespace canvas;
bool PackedImageData::etc1_initialized = false;
PackedImageData::PackedImageData(InternalFormat _format, unsigned short _levels, con... |
#include <iostream> //For cout and NULL
#include "GL/glew.h"
#include "Planet.h"
#include "Planet.h"
Planet::Planet() {
radius = 20.0;
height = 2.0;
x = 0.0;
z = 0.0;
y = 0.0;
yaw = 0.0;
yawSpeed = -0.01;
outerAngle = 0.0;
outerSpeed = 0.005;
outerDist = 50.0;
cells = std::vector<Cell*>();
noiseGenerat... |
#include <atomic>
#include <list>
#include <assert.h>
#if (defined(__GNUC__) || defined(__SUNPRO_CC)) && !defined(_WIN32)
#include <sys/resource.h>
#endif
#include "gm.h"
#include "scc.h"
#include "my_work_queue.h"
#define HAVE_PROFILER 0
#if HAVE_PROFILER
#include <gperftools/profiler.h>
#endif
... |
#include <numeric>
#include <TFile.h>
#include <TTree.h>
#include <TLorentzVector.h>
#include <TROOT.h>
#include <TApplication.h>
#include <TCanvas.h>
#include <TStyle.h>
#include <TH2D.h>
#include <TProfile.h>
#include <H5Cpp.h>
// This is chosen to be the CPU L2 cache size, which should exceed 512
// kB for many ... |
/*******************************************************************************
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 "tiles_generic.h"
#include "konamiic.h"
static INT32 global_offx = 0;
static INT32 global_offy = 0;
static INT32 unpacked_size = 0;
static UINT8 *k053250Rom;
static UINT8 *k053250RomExp;
UINT16 *K053250Ram;
static UINT8 regs[8];
static INT32 page = 0;
static UINT16 *buffer[2];
static INT32 fra... |
//#define PRINT_CHECK_G
#include <stdio.h>
#include <malloc.h>
/* The head file of perror(), atoi() */
#include <stdlib.h>
/* The head file of strstr()*/
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <omp.h>
/* The function and the graph data structure is defined in the "graph.h" */
#include "grap... |
/*
* For refernce see https://github.com/cloudflare/cbpfc (cloudflare's project that can compile cBPF to eBPF, or to C)
*/
#include <iostream>
#include "cbpf2c.h"
#include "linux/bpf.h"
#include <arpa/inet.h>
#include <linux/filter.h>
#include <map>
#include <cstring>
#ifndef BPF_MEMWORDS
# define BPF_MEMWORDS 16
#... |
// Copyright (c) 2012, 2013, 2015 <NAME>.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "i23dSFM/exif/exif_IO_EasyExif.hpp"
#include "i23dSFM/exif/sensor... |
//
// main.cpp
// OpenGLESDemo
//
// Created by gelei on 2019/10/23.
// Copyright © 2019 gelei. All rights reserved.
//
#include <stdio.h>
#include "GLTools.h"
//矩阵堆栈
#include "GLMatrixStack.h"
#include <GLUT/GLUT.h>
//投影矩阵
#include "GLFrustum.h"
//GLFrame
#include "GLFrame.h"
#include "GLBatch.h"
#include "GLGeom... |
#include <iostream>
#include <functional>
#include <map>
#include <memory>
#include <chrono>
#include <vector>
#include <stdint.h>
#include <complex>
#include <type_traits>
#include "util.hpp"
#define STB_IMAGE_IMPLEMENTATION
#include "third-party/stb/stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "thir... |
// Copyright (c) 2016 Graphcore Ltd. All rights reserved.
#include <boost/random.hpp>
#include <boost/test/tools/floating_point_comparison.hpp>
#include <cassert>
#include <cmath>
#include <poplibs_support/Compiler.hpp>
#include <poplibs_support/gcd.hpp>
#include <poplibs_test/Util.hpp>
#include <poputil/TileMapping.hp... |
#include "ff_ngrams.h"
#include <cstring>
#include <iostream>
#include <boost/scoped_ptr.hpp>
#include "filelib.h"
#include "stringlib.h"
#include "hg.h"
#include "tdict.h"
using namespace std;
static const unsigned char HAS_FULL_CONTEXT = 1;
static const unsigned char HAS_EOS_ON_RIGHT = 2;
static const unsigned c... |
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "lodepng/lodepng.h"
typedef unsigned short WORD;
typedef unsigned int LONG;
typedef unsigned char BYTE;
#define JUST_READ(var) fread((char*)&var, sizeof(var), 1, file)
#define READ(var) object_length -= (fread((char*)&var, sizeof(var), 1, file)) * si... |
#include "altruct/algorithm/hash/polynomial_hash.h"
#include "gtest/gtest.h"
#include <string>
using namespace std;
using namespace altruct::hash;
typedef polynomial_hash1<758986603, 36759071, 366621061> phash1;
typedef polynomial_hash<1> phashK1;
template<> int32_t phashK1::M[1] = { 758986603 };
temp... |
//
// wsonjsc.cpp
// JavaScriptCore
//
// Created by furture on 2017/8/30.
//
//
#include "wsonjsc.h"
#include "ObjectConstructor.h"
#include "JSONObject.h"
#include <wtf/Vector.h>
#include <wtf/HashMap.h>
#include <android/log.h>
#define TAG "ICUCompatible"
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include <shared/scheduler.h>
#include <simpleServer/abstractService.h>
#include <shared/stdLogFile.h>
#include <shared/default_app.h>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <imtjson/parser.h>
#include <imtjson/serializer.h>
#include "../server/src/simpleServer/abstractStream.h"
#include ... |
#include "rnnem.h"
#include <string>
#include <cassert>
#include <vector>
#include <iostream>
#include <cnn/grad-check.h>
#include "cnn/nodes.h"
using namespace std;
using namespace cnn::expr;
inline bool is_close(cnn::real a, cnn::real b) {
/// to-do use CNTK's isclose function
return (fabs(a - b) < 1e-7);... |
/* --------------------------------------------------------------------------
*
* File GameScene.cpp
* Ported By <NAME>
* Contact <EMAIL>
*
* --------------------------------------------------------------------------
*
* Copyright (c) 2010-2013 XMSoft.
* C... |
#include "openmc/simulation.h"
#include "openmc/bank.h"
#include "openmc/capi.h"
#include "openmc/container_util.h"
#include "openmc/eigenvalue.h"
#include "openmc/error.h"
#include "openmc/material.h"
#include "openmc/message_passing.h"
#include "openmc/nuclide.h"
#include "openmc/output.h"
#include "openmc/particle.... |
#include "example_generator.h"
#include <string>
#include "helper/bounding_box.h"
#include "loader/loader_imagenet_det.h"
#include "helper/high_res_timer.h"
#include "helper/helper.h"
#include "helper/image_proc.h"
#include <assert.h>
#include <algorithm> // for shuffling
#include <random>
using std::string;
// #d... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 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... |
#include "stdafx.h"
#include "FENormalConstraint.h"
#include <FECore/FEModel.h>
#include <FECore/log.h>
#include <FECore/FECoreKernel.h>
#include <iostream> // Added variables for file writing [06/25/2020]
#include <fstream> // Added variables for file writing [06/25/2020]
using namespace std;
BEGIN_PARA... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <raims/session.h>
#include <raims/ev_inbox_transport.h>
using namespace rai;
using namespace ms;
using namespace kv;
using namespace md;
void
StageAuth::copy_from_peer( const MsgHdrDecoder &dec ) noexcept
{
this->zero();
dec.g... |
// std headers
#include <iostream>
#include <map>
#include <cmath>
#include <utility>
#include <vector>
// ode headers
#include <ode/ode.h>
#include <drawstuff/drawstuff.h>
// local headers
#include "pythonReader.hpp"
#include "environment.hpp"
#include "body/rigidBody.hpp"
#include "body/ray.hpp"
#include "geomData... |
#include "mediadirectorymodel.h"
#include <util/fileutil.h>
#include <qtc/runextensions.h>
#include <QDir>
#include <QDirIterator>
#include <QImageReader>
#include <QMimeDatabase>
#include <QRegularExpression>
#include <algorithm>
#include <random>
using namespace sodium;
namespace {
bool itemLessThanExifCreatio... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.10.0-4761b0c)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "form_base.h"
#inclu... |
/* AArch64 specific analysis */
#include "Arch.h"
#include "BasicBlock.h"
#include "janus_aarch64.h"
using namespace janus;
using namespace std;
uint32_t csToJanus[] =
{
JREG_NULL,
JREG_X29,
JREG_X30,
JREG_NZCV,
JREG_SP,
JREG_WSP,
JREG_WZR,
JREG_XZR,
JREG_B0,
JREG_B1,
JRE... |
/*
Copyright (c) 2006-2018, <NAME>, http://alexis.royer.free.fr/CLI
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 cop... |
#include "midgard/pointll.h"
#include "midgard/constants.h"
#include "midgard/util.h"
#include <algorithm>
#include <cmath>
#include "test.h"
using namespace std;
using namespace valhalla::midgard;
namespace {
#define ASSERT_POINTLL_EQUAL(a, b) \
d... |
/**
* minigl.cpp
* -------------------------------
* Implement miniGL here.
*
* You may include minigl.h and any of the standard C++ libraries.
* No other includes are permitted. Other preprocessing directives
* are also not permitted. These requirements are strictly
* enforced. Be sure to run a test grading... |
#include "RSPath4Fork.h"
using namespace HybridAStar::Geometry;
RSPath4Fork::RSPath4Fork(const double max_kappa, const double step_size) :
ReedShepp(max_kappa,step_size) {}
double RSPath4Fork::ShortestRSPlength(const std::shared_ptr<Node3d> start_node,
const std::s... |
#include <stdio.h>
#include <iostream>
#include <chrono>
#include "gtest/gtest.h"
#include "bb/RealToBinary.h"
#include "bb/UniformDistributionGenerator.h"
#define USE_BACKWARD 0
/*
TEST(RealToBinaryTest, testRealToBinaryTime)
{
const int frame_size = 32;
const int point_size = 1024;
const int depth... |
#include <getopt.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <vector>
#include <functional>
#include <tuple>
#include <memory>
#include <string>
#include <stdexcept>
#include <optional>
#include "btoir.h"
#include "plarail.h"
#define OPTION_NUM 10
#define FORMAT_NUM 4
st... |
#pragma once
#include <array>
#include <cstdint>
//
// ReClass.NET generates code that expects these types to be defined. Instead of
// making more elaborate types for these, we just use an array for now.
//
using Vector2 = std::array<float, 2>;
using Vector3 = std::array<float, 3>;
using Vector4 = std::array<float, ... |
#include "config.h"
#include "triangulation2dapp.h"
#include <cstring>
#include <glm/glm.hpp>
#include <glm/vec3.hpp> // glm::vec3
#include <glm/vec4.hpp> // glm::vec4
#include <glm/mat4x4.hpp> // glm::mat4
#include <glm/gtc/matrix_transform.hpp> // glm::translate, glm::rotate, glm::scale, glm::perspective
#include <ma... |
// Copyright (c) 2012 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.
#include "chrome/installer/setup/install.h"
#include <shlobj.h>
#include <time.h>
#include <winuser.h>
#include "base/command_line.h"
#include "base... |
#define FIMPL_NAME(FN) CONCAT(FN,_st_impl)
/* */
/* Sum over Primes single threaded implementation */
/* */
static inline T FIMPL_NAM... |
#include <QCoreApplication>
#include "src/GraphicElements/Graph/VertexItem.h"
#include "Graph.h"
Graph::Graph() {
this->edgesList = SimpleList<Edge>();
this->vertexList = SimpleList<Vertex>();
this->sortedEdges = SimpleList<Edge>();
this->activeEdges = SimpleList<Edge>();
this->possibleRoutes = Si... |
// This program is free software: you can use, modify and/or redistribute it
// under the terms of the simplified BSD License. You should have received a
// copy of this license along this program. If not, see
// <http://www.opensource.org/licenses/bsd-license.html>.
//
// Copyright (C) 2017-2018, <NAME> <<EMAIL>>
// A... |
#include "dumping.h"
#include "progress.h"
#include "menu.h"
#include "filesystem.h"
#include "navigation.h"
#include "titles.h"
#include "users.h"
#include "iosuhax.h"
#include "gui.h"
// Dumping Functions
#define BUFFER_SIZE_ALIGNMENT 64
#define BUFFER_SIZE (1024 * BUFFER_SIZE_ALIGNMENT)
static uint8_t* copyBuffer... |
#include <iostream>
#include <fstream>
#include <algorithm> // std::sort
#include <stdexcept>
#include "join.hpp"
//#include "relation.hpp" <-- already done
//#include "permutation.hpp" <-- already done
using namespace std;
Relation join(Relation &rel, Relation &relp, int verbose) { //verbose = 0(quiet) or 1(verbose... |
/*
* File: PLACeS.cpp
* Author: emanuele
*
* Created on 27 April 2012, 11:17
*/
#include <cstdlib>
#include "IPTVTopologyOracle.hpp"
#include "VoDTopologyOracle.hpp"
#include "Scheduler.hpp"
#include "PLACeS.hpp"
#include <fstream>
#include <boost/random/mersenne_twister.hpp>
#include "Cache.hpp"
#include "boos... |
/****************************************************************************
*
* Copyright (C) 2016 <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:
*
* 1. Redistributions of sou... |
// @com Executable example program by <NAME>, intern for Avid Technology, Tewksbury
// @com This is based upon ComEssenceDataTest.cpp Last modified on 8/4/99.
//=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public ... |
// collisions
//
// sources:
// Programming Balls #1 Circle Vs Circle Collisions
// https://www.youtube.com/watch?v=LPzyNOHY3A4&t=1s&ab_channel=javidx9
// Programming Balls #2 Circles V Edges Collisions
// https://www.youtube.com/watch?v=ebq7L2Wtbl4&ab_channel=javidx9
// Elastic collisions:
// https:/... |
/*
* Copyright 2004-2004 The Apache Software Foundation.
// (c) Copyright IBM Corp. 2004, 2005 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
*
* htt... |
#include <algorithm>
#include <array>
#include <cassert>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
template<const int &MOD>
struct _m_int {
int val;
_m_int(int64_t v = 0) {
if (v < 0) v = v % MOD + MOD;
if (v >= MOD) v %= MOD;
val = int(v);
}
... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
/*
* Copyright (c) 2014 Hackdirt Ltd.
* Author: <NAME> (<EMAIL>)
*
* 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 software for
* any pu... |
/**
* $Id: BSP_GhostTest3D.cpp 28254 2010-04-18 10:28:37Z campbellbarton $
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 th... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "stb_image.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "Shader.h"
#include "Globe.h"
#include "geojson.hh"
#include "GlobeEffect.h"
#include "Type.h"
#include <iostream>
#include <fstream>
#include... |
extern "C" {
#include <base/log.h>
#include <net/ip.h>
#include <runtime/runtime.h>
#include <runtime/smalloc.h>
#include <runtime/timetrace.h>
}
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <atomic>
#include <csi... |
#include<iostream>
#include <glm/gtc/type_ptr.hpp>
#include "toolkit.hpp"
double pi = 3.14159265359;
// Model Matrix -----------------------------------------------------------------
glm::mat4 modelMatrix() { return glm::mat4(1.0f); }
/// Get a model matrix depending on the provided arguments. Vector elements: ... |
#pragma warning(disable: 4996)
#include "include/windows_ocr/windows_ocr_plugin.h"
// This must be included before many other Windows headers.
#include <windows.h>
#include "NSOCR.h"
#include <flutter/method_channel.h>
#include <flutter/plugin_registrar_windows.h>
#include <flutter/standard_method_codec.h>
#include <... |
#pragma warning(disable:4018)
#include <fstream>
#include <iomanip>
#include "ScriptGenerator.h"
#include "Spectrum.h"
#include "NormCalculator.h"
using namespace std;
ScriptGenerator::ScriptGenerator(string rootFolder)
{
this->rootFolder = rootFolder;
}
void ScriptGenerator::SaveMatrix(vector<vector<NExpansionSe... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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... |
// 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.
#include "components/omnibox/browser/autocomplete_result.h"
#include <algorithm>
#include <iterator>
#include "base/command_line.h"
#include "base/loggi... |
#include <sys/eventfd.h>
#include "modules/network.hpp"
waybar::modules::Network::Network(const std::string& id, const Json::Value& config)
: ALabel(config, "{ifname}", 60), family_(AF_INET), efd_(-1), ev_fd_(-1),
cidr_(-1), signal_strength_dbm_(0), signal_strength_(0)
{
label_.set_name("network");
if (!id.e... |
/*
* Copyright 2018 WebAssembly Community Group participants
*
* 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... |
/*
* Copyright (c) 2008 The Regents of The University of Michigan
* 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, ... |
//== BodyFarm.cpp - Factory for conjuring up fake bodies ----------*- C++ -*-//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//===- MarkLive.cpp -------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
/*
* Copyright 2011-2015 <NAME>. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include "common.h"
#include "bgfx_utils.h"
#include "imgui/imgui.h"
static float s_texelHalf = 0.0f;
static bool s_originBottomLeft = false;
struct PosColorTexCoord0Vertex
{
float m_x;
float m_y... |
/* Copyright (c) <2003-2019> <Newton Game Dynamics>
*
* 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 software for any purpose,
* includi... |
/*-----------------------------------------------------------------------------
Avatar.cpp
Animates the sprites that make up the player character.
Good Robot
(c) 2013 <NAME>
-----------------------------------------------------------------------------*/
#include "master.h"
#include "audio.h"
#include "avatar.... |
/* -*- C++ -*- */
/*=============================================================================
// //
// This file is part of the TypeAccess/C-Super-Script software package. //
// //
// Copyright (C) 1995 <NAME>, <NAME>, //
// <NAME>, and Carnegie Mellon University ... |
//
// Dis VM - exec program
// File: main.cpp
// Author: arr
//
#include <iostream>
#include <cassert>
#include <array>
#include <memory>
#include <builtin_module.h>
#include <debug.h>
#include <exceptions.h>
#include <vm_asm_sigkind.h>
#include <vm_version.h>
#include "exec.h"
using disvm::vm_t;
using disvm::vm_conf... |
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... |
/*
* !!! DO NOT EDIT THIS FILE !!!
*
* This file was automagically crafted by GED's model parser.
*/
#include "ged_enumerations_internal.h"
#include "ged_ins_field_internal.h"
#include "ged_ins_field.h"
GED_FIELD_TYPE fieldTypesByField[116] =
{
0x3, // 0
0x0, // 1
0x8000, // 2
0x0, // 3
0x0, //... |
#include "Navigation.h"
void setup()
{
//------Déclaration des I/O------
pinMode(pinSleep, OUTPUT);
pinMode(pinM0, OUTPUT);
pinMode(pinM1, OUTPUT);
pinMode(pinM2, OUTPUT);
pinMode(adversaireAvant, INPUT_PULLUP) ;
pinMode(adversaireArriere, INPUT_PULLUP);
pinMode(pinRobot,INPUT_PULLUP);
for (int i=0;i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.