text stringlengths 5.71k 33.7k |
|---|
//+------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1993.
//
// File: bm_stg.cxx
//
// Contents: Basic Storage test
//
// Classes: CStorageTest
//
// History: 7-June-94 t-vadims Created
//
//-----------... |
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
//===- Reduction.cpp - Reductions for circt-reduce ------------------------===//
//
// 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 <Arduino.h>
#include <RTClib.h>
#include <LiquidCrystal.h>
#include <TM1637Display.h>
// Delay between loops (milliseconds)
#define LOOP_DELAY 20
// Length of LCD (characters)
#define LCD_LENGTH 16
// LCD refresh interval (milliseconds)
#define LCD_REFRESH_RATE 250
// Max length of scrolling info string
#d... |
//===-- codegen/CodeGenTypes.cpp ------------------------------ -*- C++ -*-===//
//
// This file is distributed under the MIT license. See LICENSE.txt for details.
//
// Copyright (C) 2009-2010, <NAME>
//
//===----------------------------------------------------------------------===//
#include "CodeGen.h"
#include "Co... |
/**
* @file SMALModule.cpp
*
* @author <a href="mailto:<EMAIL>"><NAME></a>
* @author <a href="mailto:<EMAIL>"><NAME></a>
* @author <a href="mailto:mell<EMAIL>.hu-berlin.de"><NAME></a>
* Implementation of SMALModule
*/
#include "SMALModule.h"
#include "Tools/NaoTime.h"
#include <fstream>
#include <cstdlib>
using names... |
// Copyright (c) 2006-2008 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/common/gfx/chrome_canvas.h"
#include "chrome/common/gfx/path.h"
#include "chrome/views/background.h"
#include "chrome/views/even... |
/**
@file NounShipEnhancement.cpp
(c)2006 Palestar Inc
@author <NAME> @date 12/21/2008 5:29:55 PM
*/
#include "NounShip.h"
#include "GameContext.h"
#include "Network/LogClient.h" // LogLevels
#include "VerbApplyEnhancement.h"
#include "DefaultLootTables.h"
#include "CargoEnhancement.h"
#include "DropData.h"
//--... |
#include "pir.hpp"
using namespace std;
using namespace seal;
using namespace seal::util;
std::vector<std::uint64_t> get_dimensions(std::uint64_t num_of_plaintexts,
std::uint32_t d) {
assert(d > 0);
assert(num_of_plaintexts > 0);
std::uint64_t root =
max(static_... |
#include <limits.h>
#include <iostream>
#include <algorithm>
#include "bound_fsp_strong.h"
// lower bound and evaluation function for the PFSP
//
// m-machine bound bound as in ... Lageweg et al
// ==============================================================
// INITIALIZATIONS
// =================================... |
#include "vlivepreviewhelper.h"
#include <QByteArray>
#include "veditor.h"
#include "vdocument.h"
#include "vconfigmanager.h"
#include "vgraphvizhelper.h"
#include "vplantumlhelper.h"
#include "vcodeblockhighlighthelper.h"
#include "vmainwindow.h"
#include "veditarea.h"
#include "vmathjaxpreviewhelper.h"
extern VCon... |
/*
* muscleDriverCANInterface.cpp
*
* Created on: 18 Dec 2013
* Author: alex
*/
#include "muscleDriverCANInterface.h"
#include <stdio.h>
#include <iostream>
#include <ios>
#include <iomanip>
#include <QSettings>
#include <QDir>
#include<QTextStream>
//pointer to current instantiation of CAN interface
Musc... |
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include "shlwapi.h"
#include "Windows.h"
#include <regex>
#include <io.h>
#include <iomanip>
#include <ctime>
#define MINI_CASE_SENSITIVE
#include "ini.h"
#pragma comment(lib,"shlwapi.lib")
using namespace std;
string APP_PATH;
... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2022, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
#include <stdio.h>
#include <getopt.h>
#include <vector>
#include <pthread.h>
#include "alignments.hpp"
#include "SubexonGraph.hpp"
#include "SubexonCorrelation.hpp"
#include "Constraints.hpp"
#include "TranscriptDecider.hpp"
char usage[] = "./classes [OPTIONS]:\n"
"Required:\n"
"\t-s STRING: path to the subexon fi... |
#include "TextureManager.h"
#include <string.h>
#include <stdio.h>
//#include <iostream.h> // DEBUG ONLY
#ifdef WIN32
#include <windows.h>
#else
#include <ctype.h>
#endif // WIN32
//#include <GL/gl.h>
//#include <GL/glu.h>
#include <GL/glfw.h>
/**
Note : Being a singleton all the data we 'want' is... |
// Copyright (C) 2014 <NAME>.
//
// Use, modification, and distribution is subject to 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)
//
// See http://www.boost.org/lib/optional for documentation.
//
// You are welcome to contact the... |
#include "main.h"
#define GLAK_IMPLEMENTATION
#include <glak.hpp>
///
/// consoleIO()
/// Console IO thread
///
void consoleIO(userData_t* ud)
{
unordered_map<string, void(*)(userData_t*)> funcs;
funcs["exit"] = [](userData_t* ud)
{
exit(EXIT_SUCCESS);
};
funcs["update"] = [](userData_t*... |
/* *****************************************************************************
Copyright (c) 2016-2021, 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... |
//
// Copyright (c) 2018 The WebGLNativePorts Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Aquarium.cpp: Create context for specific graphics API.
// Data preparation, load vertex and index buffer, images and shders.
... |
/* -*- Mode: C++; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
//#define DEBUGTAG "RemoteSyscalls"
#include "AutoRemoteSyscalls.h"
#include "log.h"
#include "Session.h"
#include "task.h"
#include "util.h"
using namespace rr;
using namespace std;
/**
* The ABI of the socketcall syscall is a night... |
/**
* @file main.cpp
*
* This module holds the main() function, which is the entrypoint
* to the program.
*
* © 2019 by <NAME>
*/
#include <algorithm>
#include <chrono>
#include <fstream>
#include <functional>
#include <map>
#include <queue>
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <str... |
// Author(s): <NAME>
// Copyright: see the accompanying file COPYING or copy at
// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
//
// 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)
//
/// \file lps2lts.cpp... |
#include <dart/common/StlHelpers.hpp>
#include <gtest/gtest.h>
#include <aikido/common/StepSequence.hpp>
using aikido::common::StepSequence;
TEST(StepSequence, Constructor)
{
EXPECT_THROW(StepSequence(0.2, true, true, 1.0, 0.0), std::runtime_error);
EXPECT_THROW(StepSequence(-0.2, true, true, 0.0, 1.0), std::runt... |
/***************************************************************
*
* Copyright (C) 1990-2017, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
/*
Hamilton Astronomical Society 24" Telescope INDI Driver
*/
/** \file has-scope-driver.cpp
\brief Construct a basic INDI telescope device that simulates GOTO commands.
\author <NAME>
\example has-scope-driver.cpp
A simple GOTO telescope that simulator slewing operation.
*/
#include <cmath>
#inc... |
/* 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 "windowssplittunnel.h"
#include "../windowscommons.h"
#include "../windowsservicemanager.h"
#include "win... |
int //wC2
fC
,
U0,/**/m
//P8
,
Mxi
,//
O ,
Bgk, vCal , ER8z, hYX //n8hl
,RJy
,
vu /*m*/ //ht
,
IwZ ,qyT ,Rk7E
,
RBT , EPrlB,
XNF ,
jpq
,vl,
LTU//le
,k5yoG,gBHE//t2r
,
/*u5*/rO1,//n
vQP ,hj1 ,m8ms//kh
,/**/
DW,ca
, hnxJr//v
, By5md
, br;void f_f0 (){{
if (
/*8*/true
) ;else return
/*q*/ ; ; { ... |
#include "Geometry.h"
#include "Angle.h"
#include "Line2D.h"
#include "Circle2D.h"
#include "Pose2D.h"
#include "Pose3D.h"
#include "LineSegment.h"
#include "Polygon.h"
using namespace A2O;
using namespace Eigen;
const Angle Geometry::getDelta(const Vector3d& vector)
{
double length = getNorm(vector);
if (lengt... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2019 Google Inc. http://bulletphysics.org
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted t... |
//*****************************************************************************
// Copyright 2021 Intel Corporation
//
// 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.ap... |
#include <iostream>
#include <fstream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <thread>
#include <chrono>
#include <GL/glew.h> // NOTE: You MUST include GLEW before any other OpenGL-related libraries!
#include <GLFW/glfw3.h>
#include "glm/glm.hpp" // NOTE: Need to comp... |
/**
* @file TriggerInfoAlg.cxx
* @brief Declaration and definition of the algorithm TriggerInfoAlg.
*
* $Header: /nfs/slac/g/glast/ground/cvs/Trigger/src/TriggerInfoAlg.cxx,v 1.5 2011/12/12 20:58:47 heather Exp $
*/
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/AlgFactory.h"
#include "GaudiKernel/IDataPr... |
/**
* \file hodf_acceptance.cpp
* \brief Test of HODF acceptance
*
*/
#include "cli.hpp"
#include "init_ds.hpp"
#include "consts.hpp"
#include "csalg.hpp"
#include "drawing.hpp"
#include "scattyield.hpp"
#include "cuts_conf.hpp"
#include "rootscript.hpp"
static s13::misc::CliOptions cli_opts;
using ElaCuts... |
/*!
* \file TangleMoveFigure.hpp
* \author <NAME>
* \copyright (c) 2019-2020 <NAME>.
* The project is released under the MIT License.
* \date January 29, 2020: created
*/
#pragma once
#include <array>
#include <vector>
#include <functional>
#include <Eigen/Dense>
#include "../PlTang.hpp"
#include "../PlTangMov... |
// ColorPickerView.cpp
// (c) 2001 <NAME> - please read to the LICENSE file
// modified by <NAME> for ArtFlow, 2002
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <Application.h>
#include <Bitmap.h>
#include <Beep.h>
#include <Font.h>
#include <Message.h>
#include <RadioButton.h>
#include <Screen... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <thread>
#include <mutex>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <jellyfish/stream_manager.hpp>
#include <jellyfish/whole_sequence_parser.hpp>
#include <mummer/sparseSA.hpp>
#include <mummer/fasta.hpp>
#include <thr... |
/**
* a2sdn controller.cpp
*
* @author <NAME> (nklapste)
* @version 0.0.0
*/
#include <algorithm>
#include <assert.h>
#include <iostream>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/signalfd.h>
#include <sys/types.h>
#include <tuple>
#include <unistd.h>
#include ... |
/*
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... |
/**
* @author <NAME>
* @date 24.02.2021
* @brief This stat-screen-class provides a ui for showing dive-statistics as a graphic using lvgl.
*/
#include "StatScreen.h"
// Screen-object & ui-elments
lv_obj_t* StatScreen::screenObj;
lv_obj_t* StatScreen::chartObj;
lv_obj_t* StatScreen::lblSerieNameObj;
lv_obj_t* Stat... |
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* 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, p... |
// $Id: bilinearsurface.cpp 882 2011-09-23 13:10:16Z perroe $
// Copyright (c) 2011, Norwegian Computing Center
// 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 c... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2021 Scipp contributors (https://github.com/scipp)
#include <gtest/gtest.h>
#include "test_macros.h"
#include "scipp/dataset/bins.h"
#include "scipp/dataset/dataset.h"
#include "scipp/dataset/except.h"
#include "scipp/dataset/shape.h"
#include "scipp/variable/... |
/**
* Copyright 2018 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disc... |
// Copyright 2020 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... |
/**
* testAbst.cpp
*
* Test abstraction by using a car kinematics model.
*
* Created by <NAME> on Nov. 14, 2020.
* Hybrid Systems Group, University of Waterloo.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include <cmath>
#include <sys/stat.h>
#include... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <string>
#include <iostream>
#include <cmath>
#include <limits>
#include <string>
#include <cstring>
#include <vector>
#include <lodepng-master/lodepng.h>
#include "mandelbrot.h"
#include "Shader.hpp"
using namespace std;
// The following functions handle gettin... |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... |
/* ============================================================================================
drawMatches.cpp Version 3 Last Update: 03/28/2019
This program takes two images (generally ones that are known to be similar) processes them
by finding their keypoints and de... |
#pragma once
// Include STL
#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include <random>
#include <utility>
double Clamp(double x) {
return x<0 ? 0 : x>1 ? 1 : x;
}
struct Vector {
double x, y, z;
Vector(double x=0, double y=0, double z=0) : x(x), y(y)... |
#include "circuit.h"
#include <ENCRYPTO_utils/crypto/crypto.h>
#include <ENCRYPTO_utils/parse_options.h>
#include <abycore/circuit/booleancircuits.h>
#include <abycore/circuit/arithmeticcircuits.h>
#include <abycore/circuit/circuit.h>
#include <abycore/circuit/share.h>
#include <abycore/sharing/sharing.h>
#include <aby... |
#include "TableMetadata.h"
#include <unistd.h>
/***
* Returns the allocation number of bytes required to allocate a type of data
* @param VT Cassandra Type
* @return Allocation size needed to store data of type VT
*/
uint16_t TableMetadata::compute_size_of(const ColumnMeta &CM) const {
switch (CM.type) {
... |
/*
* Includes
*/
#include <assimp/cimport.h> // C importer
#include <assimp/scene.h> // Collects data
#include <assimp/postprocess.h> // Various extra operations
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <iostream>
#include <math.h>
#include <mmsystem.h>
#include <stdio.h>
#include <vector> // STL dyn... |
#include <sensorutils.hpp>
#include <cmath>
#include "gtest/gtest.h"
// There is a surprising amount of slop in the math,
// thanks to all the rounding and conversion.
// The "x" byte value can drift by up to 2 away, I have seen.
static constexpr int8_t expectedSlopX = 2;
// Unlike expectedSlopX, this is a ratio, n... |
#include "pyhelpers.h"
#include <iostream>
#include <sstream>
int PySwigObject_Check(PyObject *op);
/* Py_ssize_t for old Pythons */
#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#endif
PyObject * PyTuple_FromIntArray(int * arr, int len){
PyObject * obj = PyTuple_New(len);
for(int i=0; i<len; i++){
... |
/*
* menus.c
* Copyright 2010-2014 <NAME>
*
* This file is part of Audacious.
*
* Audacious 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, version 2 or version 3 of the License.
*
* Audacious is dis... |
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <pthread.h>
#include <signal.h>
#include <sys... |
#include "../etana/proof.h"
#include "util.h"
//bool print_syls = false;
struct pattern_struct {
CFSWString mall;
INTPTR pos;
};
const INTPTR patterns_size = 18;
// tel-k:i ja kõi-k:e kõlavad halvasti (esisilbi rõhk ja pikk Q teises tasandavad üksteist ära)
// filsime selle rõhutamise käigus, topeldades laa... |
/*
* Copyright 2010-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 ap... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.org/>
*
* Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/>
*
* Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Publi... |
/******************************************
slight_RotaryEncoder library
library for Rotary Encoder handling
Copyright 2019 <NAME>
based on infos and ideas from:
~ http://www.mikrocontroller.net/articles/Drehgeber
~ http://www.mikrocontroller.net/topic/drehgeber-auslesen
~ http://www.mikro... |
/* missing_branch_detection_plugin.cpp
* This is a test plugin, you can use it as a demo.
* 2019-01-13 : by LMG
*/
#include "v3d_message.h"
#include <vector>
#include <algorithm>
#include "openSWCDialog.h"
#include "missing_branch_detection_plugin.h"
#include "../../../vaa3d_tools/released_plugins/v3d_plugins/mean... |
//
// sigmod_utils.cpp
// sigmod
//
// Created by jonathan on 06/12/2013.
// Copyright (c) 2013 jonathan. All rights reserved.
//
#include "sigmod_utils.h"
#include <cstdlib>
#include <vector>
#include <cstring>
#include "SearchTree.h"
//#include "SearchNode.h"
using namespace std;
/*
* AddToArray
* This is a... |
// Copyright 2018 Chia Network 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 wr... |
#include <bit/blockchain/address.hpp>
#include <bit/blockchain/genesis_state.hpp>
#include <bit/blockchain/config.hpp>
#include <bit/blockchain/pts_address.hpp>
#include <fc/crypto/elliptic.hpp>
#include <fc/exception/exception.hpp>
#include <fc/log/logger.hpp>
#include <fc/io/json.hpp>
#include <fc/reflect/variant.hpp... |
#include "LevelupEffect.h"
#include "Board.h"
#include "Res.h"
#include "SexyAppBase.h"
#include "Graphics.h"
#include "Font.h"
using namespace Sexy;
const int STRIP_WIDTH = 20;
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////... |
// ----------------------------------------------------------------------------------------------
// 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:/... |
// glowstick
// Copyright 2020 jackw01. Released under the MIT License (see LICENSE for details).
#include "glowstick.hpp"
// Encoder interrupt stuff
static int8_t encoderDelta = 0;
static int8_t encoderScale = EncoderFineAdjustScale;
static uint32_t lastEncoderRead = 0;
static void encoderISR() {
bool b = !digita... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
/*************************************************************************
"I Have No Tomatoes"
Copyright (c) 2004, <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arisin... |
/*
todo : * check all lanes for possible change regardless of current lane
* try to remove left lane bias
* make a predictions vector for vehicles to check when changing lanes - cars flying by when ego is slow
* add in something to buffer the distance between ego and vehicle ahead
*/
#i... |
#include <portinfo>
#include "Model.hh" // implementation of class methods
#include "geomodelgrids/serial/HDF5.hh" // USES HDF5
#include "geomodelgrids/serial/ModelInfo.hh" // USES ModelInfo
#include "geomodelgrids/serial/Surface.hh" // USES Surface
#include "geomodelgrids/serial/Block.hh" // USES Block
#include "geo... |
/*
* Copyright (c) 2002-2015, California Institute of Technology.
* All rights reserved. Based on Government Sponsored Research under contracts NAS7-1407 and/or NAS7-03001.
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <cmath>
#include <Texture.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <Camera.h>
#include <Shader.h>
float screenWidth = 800;
float screenHeight = 600;
//初始化相机
Camera *camera = new Camera(glm::vec3(0... |
#include "Flocking.h"
#include "core/Engine.h"
#include "core/Camera.h"
#include "core/Light.h"
#include "core/Object.h"
#include "core/Time.h"
#include "core/ObjectManager.h"
#include "core/Components/Transform.h"
#include "core/Components/Material.h"
#include "opengl/Shader.h"
#include "opengl/Renderer.h"
#include "... |
#include <cmath>
#include <stdint.h>
#include <omp.h>
#include <sched.h>
#include <gtest/gtest.h>
#include "kernels.h"
#include "IO.hpp"
#include "Show.hpp"
#include <ctime>
#include <chrono>
double avg( std::vector<double> &vec)
{
double sum = 0;
for(size_t i = 0; i<vec.size(); ++i)
{
sum += ve... |
#include "Leg.hh"
#include "Pitch_Foot_Art.hh"
#include "Roll_Foot_Art.hh"
#include "Pitch_Knee_Art.hh"
#include "Yaw_Hip_Art.hh"
#include "Roll_Hip_Art.hh"
#include "Pitch_Hip_Art.hh"
// orders of the pitch muscles, for optimization
enum {SOL_ID, TA_ID, GAS_ID, VAS_ID, HAM_ID, GLU_ID, HFL_ID, RF_ID, NB_PITCH_MUSCLE_I... |
//
// color.cc
//
// Copyright (c) 2010 LearnBoost <<EMAIL>>
//
#include "color.h"
#include <stdlib.h>
/*
* Consume whitespace.
*/
#define WHITESPACE \
while (' ' == *str) ++str;
/*
* Parse color channel value
*/
#define CHANNEL(NAME) \
c = 0; \
if (*str >= '0' && *str <= '9') { \
do { \
c... |
#include "cp437_to_unicode.hpp"
#include <cstring>
unsigned int character_mappings[256];
int dfterm::mapCharacter(int character)
{
if (character > 255) character = 255;
if (character < 0) character = 0;
character = character_mappings[character];
if (character < 32) character = ' ';
return charact... |
/*************************************************************************
"I Have No Tomatoes"
Copyright (c) 2004, <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arisin... |
/*
* File: MSILM_main.cpp
* Author: hiroki
*
* Created on October 28, 2013, 6:12 PM
*/
#include "MSILM_main.h"
void construct_meanings(std::vector<Rule> &meanings)
{
constexpr int VERB_INDEX_BEGIN = 0;
constexpr int VERB_INDEX_END = 4;
constexpr int NOUN_INDEX_BEGIN = 5;
constexpr int NOUN_INDEX_END = 9;
... |
/*
** gl_swwipe.cpp
** Implements the different screen wipes using OpenGL calls.
**
**---------------------------------------------------------------------------
** Copyright 1998-2008 <NAME>
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted ... |
// Copyright 2006-2014 <NAME>
// Department of Computer Science
// University of Tennessee
//
// This file is part of MBEA.
//
// MBEA 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 ... |
#include "TriangleMesh.h"
#include "Triangle3d.h"
#include "../Maths/SIMD.h"
#include "../Collision/GeometryQuery.h"
#include <algorithm>
#include <array>
#include <vector>
MeshBVH4* TriangleMesh::CreateEmptyBVH()
{
if (m_BVH == nullptr)
{
m_BVH = new MeshBVH4;
}
else
{
m_BVH->Release();
}
return m_BVH;
... |
/*
* gatingSet_test.cpp
*
* Created on: May 15, 2012
* Author: wjiang2
*/
#include "test_header.hpp"
#include <boost/dynamic_bitset.hpp>
#include <boost/serialization/bitset.hpp>
#include <bitset>
#include <boost/serialization/array.hpp>
#include <boost/math/distributions/normal.hpp>
hdfFlow attachData(str... |
#include "ModelSystem.h"
#include <atomic>
#include <glm/glm.hpp>
#include <tiny_obj_loader.h>
#include "shader_locations.h"
#include "Maths.h"
#include "Logging.h"
#include "MaterialSystem.h"
//
// Internal data structures
//
struct Vertex
{
glm::vec3 position;
glm::vec3 normal;
glm::vec2 texCoord;
glm::vec4 ... |
/* Ray Tracing! Compute Shader!
*
* Created by <NAME>!
* MM/DD/YYYY: 3/24/2019
*
* ----- Resources Used -----------------------------------------------
* | - GLAD (OpenGL function-pointer-loading library) |
* | - GLFW (OpenGL Framework: Window-creating library) |
* | - GLM (OpenGL ... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM 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 re... |
/*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2020, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ResultPropagation.h"
#include <vector>
#include "BaseIRAnalyzer.h"
#include "ConstantAbstractDomain.h"
#include "Contr... |
// @HEADER
// ************************************************************************
//
// Intrepid Package
// Copyright (2007) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of the ... |
// Copyright 2021 The VGC Developers
// See the COPYRIGHT file at the top-level directory of this distribution
// and at https://github.com/vgc/vgc/blob/master/COPYRIGHT
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may o... |
#include "GroupManager.h"
#include <iostream>
#include <sstream>
#include "../Platform/NavigationManager.h"
#include "../Platform/Platform.h"
#include "../interface/logic/IDatabasePlug.h"
#include "../QtUtil/lib/cjson/cJSON_inc.h"
#include "../QtUtil/Utils/utils.h"
#include "MessageManager.h"
#include "Communication.h... |
#include <cstdio>
#include <cstring>
#include <unordered_set>
#include <unordered_map>
#include <fstream>
#include <stdlib.h>
using namespace std;
#include "vtr_assert.h"
#include "vtr_log.h"
#include "vtr_math.h"
#include "vpr_error.h"
#include "vpr_types.h"
#include "read_xml_arch_file.h"
#include "globals.h"
#inc... |
/*****************************************************************************************
Copyright 2011 <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 source co... |
#include "CsmSerializationTest.h"
#include "../EngineLayer/CommonParameters.h"
#include "../TaskLayer/XLSearchTask/XLSearchParameters.h"
#include "../TaskLayer/MetaMorpheusTask.h"
#include "../TaskLayer/XLSearchTask/XLSearchTask.h"
#include "../TaskLayer/DbForTask.h"
#include "../TaskLayer/EverythingRunnerEngine.h"
#i... |
#include "opencv2/core.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/core/utility.hpp"
#include <time.h>
#include <vector>
#include <iostream>
#include <opencv2/ximgproc.hpp>
using namespace cv;
#ifdef HAVE_EIGEN
#define MARK_RADIUS 5
#define PALLET_RADIUS 100
int max_width... |
//
// Created by Chrim14 on 10.10.2017.
//
#include "EditorSetup.h"
#include "../../System/Map/MapStaticFunctions.h"
#include "../Menu/Menu.h"
/// A Class function that stores all values in editor setup state for mapeditor state
void EditorSetup::setNewMapValues(tgui::Gui &gui, Settings &json) {
//Getting value... |
// Copyright 2017 Google Inc.
// Copyright 2020 The Open GEE Contributors
//
// 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
//
// Unles... |
// mod_multiplication.cpp: test suite runner for arbitrary configuration fixed-point modulo multiplication
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <universal/utility/directives.hp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.