text stringlengths 5.71k 33.7k |
|---|
#include "selfdrive/modeld/models/driving.h"
#include <fcntl.h>
#include <unistd.h>
#include <cassert>
#include <cstring>
#include <eigen3/Eigen/Dense>
#include "selfdrive/common/clutil.h"
#include "selfdrive/common/params.h"
#include "selfdrive/common/timing.h"
constexpr int DESIRE_PRED_SIZE = 32;
constexpr int O... |
/****************************************************************************
* Copyright (c) 2021, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retai... |
/****************************************************************************
* Copyright (c) 2021, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must ... |
// Copyright (C) 2011-2017 Internet Systems Consortium, Inc. ("ISC")
//
// 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 <config.h>
#include <asiolink/io_add... |
/* SSE implementation of stochastic backtrace of a Forward matrix.
* (Compare generic version, p7_GStochasticTrace().)
*
* Contents:
* 1. Stochastic trace implementation.
* 2. Selection of steps in the traceback.
* 7. Copyright and license information.
*
* SRE, Fri Aug 15 08:02:43 2008 [Janelia]
* SVN $I... |
/*!
\file upload.cpp
\author zafaco GmbH <<EMAIL>>
\date Last update: 2020-11-03
Copyright (C) 2016 - 2020 zafaco GmbH
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Softwa... |
// 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_frame/html_utils.h"
#include <atlbase.h>
#include <urlmon.h>
#include "base/string_util.h"
#include "base/string_tokenizer.h"
#in... |
//
// Copyright 2021 Xilinx, 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... |
#include "phylip.h"
#include "dist.h"
#include <QString>
/* version 3.696.
Written by <NAME>, <NAME>, <NAME>, and <NAME>.
Copyright (c) 1993-2014, <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... |
/**
The MIT License (MIT)
Copyright (c) 2019 by <NAME>, ThingPulse
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,... |
#include <vector>
#include <map>
#include <sys/time.h>
#include "RJsonEncoder.hpp"
//#include "g3log/loglevels.hpp"
//#include "RC2Logging.h"
#include "../common/RC2Utils.hpp"
const int kMaxEnvDepth = 1;
const int kMaxLen = 100;
const char *kNotAVector = "notAVector";
const char *kPrimitive = "primitive";
const char ... |
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
/***********************************************************
* $Id: L2hienAlgo08.cxx,v 1.6 2009/11/19 15:48:44 balewski Exp $
* \author <NAME>, MIT, 2008
**********************************************... |
#include "glad.h" // must be before glfw.h
#include "wavefrontreader.h"
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <vector>
#include "gameobject.h"
#define STB_IMAGE_IMPLEMEN... |
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <random>
#include <sstream>
#include <string>
#include <typeinfo>
#include <vector>
#include "EasyWay.h"
#include "stdafx.h"
namespace tmp_test3 {
using std::cout;
using std::endl;
using std::exception;... |
// RBotFirmware
// <NAME> 2018
#include "WorkManager.h"
#include "ConfigBase.h"
#include "RobotMotion/RobotController.h"
#include "RestAPISystem.h"
#include "Evaluators/EvaluatorGCode.h"
#include "RobotConfigurations.h"
static const char* MODULE_PREFIX = "WorkManager: ";
WorkManager::WorkManager(ConfigBase& mainConf... |
/*
Copyright 2015 Google LLC All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... |
/*******************************************************************
*
* File: CSimpleTextParser.cpp
*
* Author: <NAME> (<EMAIL>)
*
* (c) Copyright 2002, <NAME>
* All Rights Reserved
*
*******************************************************************/
#include "CSimpleTextParser.h"
enum
{
EBadTag,
EBad... |
// __BEGIN_LICENSE__
// Copyright (C) 2006-2011 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <iostream>
#include <math.h>
#include <time.h>
#include <vw/Core.h>
#include <vw/Image.h>
#include... |
// Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/************************************************************************************
Filename : EyeBuffers.cpp
Content : Handling of different eye buffer formats
Created : March 8, 2014
Authors : <NAME>
Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved.
**********************... |
#include <list>
#include <set>
#include <vector>
#include <thread>
#include <mutex>
#include <assert.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <fcntl.h>
#include <sys/time.h>
#define BITCOIN_UA_LENGTH 27 + 9
#define BITCOIN_UA {'/', 'F', 'a', '... |
/*
* Copyright (C) 2005 - 2013 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2013 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010 - 2013 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can ... |
#include "QRaycastImageWidget.h"
#include <QMouseEvent>
#include <QPainter>
#include <QFileDialog>
#include <iostream>
#include <math.h>
#include "Timer.h"
#include "Eigen/Dense"
#include "Projection.h"
#include "KinectFrame.h"
#include "KinectSpecs.h"
#include "Volumetric_helper.h"
#include "KinectFusionKernels/Kine... |
// lambert_w_test_values.cpp
// Copyright <NAME> 2017.
// 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)
// Write a C++ file J:\Cpp\Misc\lambert_w_1000_test_values\lambert_w_mp_values.ipp
// containing arrays of ... |
/*
* mpi/main.cpp
*
* Created on: Jan 25, 2017
* Author: dbourge
*
* miniIsosurface is distributed under the OSI-approved BSD 3-clause License.
* See LICENSE.txt for details.
*
* Copyright (c) 2017
* National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under
* the terms of Contract DE-NA... |
#include "ShatteredSprite.h"
USING_NS_CC;
#ifndef RANDF
//A helper to do float random numbers in a range around a base value.
float randf(float base, float range) {
if (range==0) return base;
long lRange = rand()%(int)((range*2)*10000);
float fRange = ((float)lRange/10000.0) - range;
ret... |
/*
* MemoryManagement.cpp
*
* @author <NAME>
*/
#include <iostream>
#include <iomanip>
#include <cstdint>
#include <string>
#include <math.h>
#include "MemoryManagement.h"
extern uint8_t DATA[MEMORY_SIZE] = {};
extern uint64_t _FREE_ = 0;
extern uint64_t _USED_ = 0;
static bool initialized = false;
void initMem... |
/*** includes ***/
#include <ctype.h>
#include <stdarg.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <termios.h>
#include <unistd.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <string>
#include <vector>
constexpr int TAB_SIZE = 8;
enum EditorKey {
BACKSPACE = 1... |
#include <SxMatrix.h>
#include <SxFSAction.h>
#include <SxFileIO.h>
#include <random>
#include <limits>
/* DISCLAIMER:
*
* This is an example of a two layer neural network with backpropagation of the
* error. The background is obtained from 'Make Your Own Neural Network, Tariq
* Rashid, 2016' the original implemen... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Thread management for memcached.
*/
#include "config.h"
#include "memcached.h"
#include "connections.h"
#include <atomic>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <std... |
/*
* Filename: Parser_TAO.cpp
* Author: <NAME>
* Date: Dec 18, 2013
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Cogniteam Ltd.
*
* 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 S... |
/*=auto=========================================================================
Portions (c) Copyright 2010 Brigham and Women's Hospital (BWH)
All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
========================================... |
// The main UCC function.
/*
* \file main.cpp
*
* This file contains the main UCC function.
*
* Changed from UCC 2013_04 release by <NAME>
* Changes started on 2015_04_22
* Changes ended on 2015_06_06
* Much more detailed Exception handlers to help find defects
* Support to get and display Time used of various st... |
#include "gff.h"
#include<cstring>
#include<cassert>
#include<algorithm>
#ifdef DEBUG
#include<iostream>
#include<stdio.h>
#endif
using namespace std;
unique_ptr<GffInfoTable> GffObj::_infotable = unique_ptr<GffInfoTable> (new GffInfoTable());
void GffLine::extractAttr(const string attr, string &val) {
//par... |
#include "dpdkCore.hpp"
#include "fmt.hpp"
#include "json.hpp"
#ifdef WITH_NUMA
#include <numa.h>
#endif
#include <signal.h>
#include <stdexcept>
#include <unistd.h>
#include <vector>
using nlohmann::json;
using std::string;
using std::to_string;
using std::vector;
#include "captureHandler.hpp"
#include "iceBoardSh... |
/* Boolector: Satisfiability Modulo Theories (SMT) solver.
*
* Copyright (C) 2013-2016 <NAME>.
* Copyright (C) 2016-2019 <NAME>.
*
* This file is part of Boolector.
* See COPYING for more information on using this software.
*/
#include "test.h"
extern "C" {
#include "boolectormc.h"
}
class TestMc : publi... |
/*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
* © 2009 <NAME> and contributors (see also: LICENSE)
*
*/
#include "libi3.hpp"
#include <assert.h>
#include <cairo/cairo-xcb.h>
#include <err.h>
#include <pango/pangocairo.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h... |
/**
* 模式识别 Fisher
* author: <NAME> <<EMAIL>>
* create: 2018-10-18
*/
#include <iostream>
#include <vector>
#include "Tensor.hpp"
#include <opencv2/opencv.hpp>
#include "Fisher.h"
#define SHOW_TRAIN_SET
#define SHOW_TEST_SET
template < class T>
std::string ConvertToString(T value)
{
std::stringstream ss;
ss <<... |
#include <iostream>
#include <fstream>
#include <ctime>
#define GLEW_STATIC 1
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "Utils/InputUtil.h"
#include "Utils/Timing.h"
#include "Controllers/Player.h"
#include "Controllers/AI.h"
#include "Objects/Car.h"
#include "Primitives/Grid.h"
#include "... |
#include "utils.h"
using namespace std;
void subset_creator_util(int i, vector<vector<Vec3D>>& measures, vector<vector<Vec3D>>& ans, vector<Vec3D>& tmp){
if(i == measures.size()){
vector<Vec3D> v = vector<Vec3D>(tmp.size());
for(int i=0; i<v.size(); i++)
v[i] = tmp[i];
ans.push... |
// Copyright (c) 2013-2018 <NAME>, <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 code must retain the above copyright notice, this list of condition... |
/*******************************************************************************
* Copyright 2018 <NAME>. 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
*
* ht... |
/**
\file lowmccircuit.cpp
\author <EMAIL>
\copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation
Copyright (C) 2019 Engineering Cryptographic Protocols Group, TU Darmstadt
This program is free software: you can redistribute it and/or modify
it under the terms of ... |
#include "timing.h"
#include "pyp-topics.hh"
#include "contexts_corpus.hh"
//Dict const *dict;
//#include <boost/date_time/posix_time/posix_time_types.hpp>
void PYPTopics::sample_corpus(const Corpus& corpus, int samples,
int freq_cutoff_start, int freq_cutoff_end,
... |
#include "CollisionDetection.h"
#include "CollisionVolume.h"
#include "AABBVolume.h"
#include "OBBVolume.h"
#include "SphereVolume.h"
#include "../../Common/Vector2.h"
#include "../../Common/Window.h"
#include "../../Common/Maths.h"
#include "Debug.h"
#include <list>
using namespace NCL;
bool CollisionDetection::Ray... |
#include <qtfoundation.h>
N::TimeFactory:: TimeFactory ( PurePlan * p )
: plan ( p )
{
}
N::TimeFactory::~TimeFactory(void)
{
}
N::StarDate * N::TimeFactory::create(int type)
{
switch (type) {
case Calendars::StarDate :
r... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
//=======================================================================================//
#include "sv_sessionblockpublisher.h"
#include "sv_replaycontext.h"
#include "demofile/demoformat.h"
#include "sv_recordingsession.h"
#include "sv_... |
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <vector>
#include <numeric>
#include <float.h>
#include <cmath>
#include <sstream>
#include <cassert>
#include "launcherTools.h"
// leftrotate function definition
#define LEFTROTATE(x, c) (((x) << (c)) | ((x) >> (32 - (c))))
#define F(x, y, z) ((x ... |
#include "World.hpp"
#include <bitset>
#include "Event.hpp"
#include "DebugInfo.hpp"
#include "Packet.hpp"
#include "Collision.hpp"
static std::map<int, Dimension> registeredDimensions;
static std::map<int, Biome> registeredBiomes;
bool World::dirtysectionslist = false;
void RegisterNewDimension(int dimensionId, Di... |
#include "seal/seal.h"
#include "helper.hpp"
#include <iostream>
#include <vector>
using namespace std;
using namespace seal;
SEALContext SetupCKKS()
{
EncryptionParameters parms(scheme_type::ckks);
size_t poly_modulus_degree = 16384;
parms.set_poly_modulus_degree(poly_modulus_degree);
try
{
... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <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 ri... |
#include <iostream>
#include <iomanip>
#include <time.h>
#include "imatrix.h"
#include "ilayer.h"
#include "neuralnet.h"
#include "neuralnetanalyzer.h"
#include "ImageReader.h"
#include "LabelReader.h"
//Output functions
void normal_line(std::string s)
{
std::cout << s << std::endl;
}
void indented_line(std::s... |
/*
* Vega Strike
* Copyright (C) 2001-2002 <NAME>
*
* http://vegastrike.sourceforge.net/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your... |
#include <functional>
#include <iostream>
#include "main.h"
#include <docopt/docopt.h>
#include <imgui.h>
#include <imgui-SFML.h>
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/System/Clock.hpp>
#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/CircleShape.hpp>
#include <bh_read_file.h>
#include <wasm... |
/* Copyright (c) 2013 <NAME>. Released under CC0 1.0 Universal */
/* sparsify.cpp
* Sparsifies the quality vector for a read based on k-mer distance from dictionary
*/
#if !defined(NDEBUG)
#define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING
#define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE
#endif
#define BOOST_MULT_INDEX_D... |
#include "ros/ros.h"
// Standard headers
#include <chrono>
#include <string>
#include <cmath>
#include <signal.h>
// ROS message headers
#include "std_msgs/Bool.h"
#include "std_msgs/Int32.h"
#include "trajectory_msgs/MultiDOFJointTrajectory.h"
// Octomap specific headers
#include <octomap/octomap.h>
#include <octom... |
#include "zedthread.h"
#include <QtCore>
#include <QDebug>
//// Standard includes
#include <stdio.h>
#include <string.h>
#include <opencv2/opencv.hpp>
//// ZED include
#include "sl/Camera.hpp"
#define SAVE_LEFT
#define SAVE_LEFT_SPLIT_COLORS
#define SAVE_RIGHT
#define SAVE_RIGHT_SPLIT_COLORS
#define SAVE_DEPTH
boo... |
// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// <NAME>, U.S. Geological Survey
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2017 University of California, Davis
//
// See ... |
// Copyright 2020 <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
#include <string.h>
#include <avr/io.h>
#include <avr/inte... |
/*
* Copyright 2020 The Project Oak Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
#include <bits/stdc++.h>
using namespace std;
#define long int64_t
// *****
inline namespace {
struct frac {
long n, d;
constexpr frac() : n(0), d(1) {}
constexpr frac(long num) : n(num), d(1) {}
constexpr frac(long num, long den) : n(num), d(den) {
auto g = gcd(n, d);
g = ((g < 0)... |
#include "stdafx.h"
#include "Multipole.h"
#include <OgreRoot.h>
#ifdef _DEBUG
#pragma comment(lib, "../dependencies/RLtoolbox/external_library/Torch3.lib")
#pragma comment(lib, "../dependencies/RLtoolbox/RL_Toolbox_Windows_Source_20b/Debug/RL Toolbox Debug.lib")
#else
#pragma comment(lib, "../dependencies/RLtoolbox/ex... |
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <map>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <hdf5.h>
/*
* Define operator data structure type for H5Literate callback.
* During recursive iteration, these structures will form a
* linked list that can b... |
/*!
* \file gausscode.cpp
* \author <NAME>
* \copyright (c) 2020 <NAME>.
* The project is released under the 2-clause BSD License.
* \date August, 2020: created
*/
#include <map>
#include <queue>
#include <stack>
#include <utility>
#include <algorithm>
#include <iterator>
#include "linkdiagram.hpp"
//* Debug
#... |
#include "stdafx.h"
#include <thread>
#include "fmt/format.h"
#include "util.h"
#include "contest_types.h"
#include "solver_registry.h"
#include "solver_util.h"
#include "visual_editor.h"
#include "judge.h"
struct Xorshift {
uint64_t x = 88172645463325252LL;
void set_seed(unsigned seed, int rep = 100) {
x =... |
#include "Andersen.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PatternMatch.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
/... |
#define _USE_MATH_DEFINES
#include <cmath>
#include <exec.h>
#include <gllib.h>
#include <iostream>
#include <list>
namespace
{
int Width = 1600;
int Height = 1200;
bool DispPrim = true;
// file drag&drop
void
drop_file(int num, const char** paths)
{
for (int i = 0; i < num; i++)
{
std::cout << paths[i... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <array>
#include <iostream>
#include <map>
#include <vector>
#include <k4a/k4a.h>
#include <k4abt.h>
#include <BodyTrackingHelpers.h>
#include <Utilities.h>
#include <Window3dWrapper.h>
#include <sys/socket.h>
#... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/*
Copyright 2017 Google 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
#include "Dsk.hpp"
Dsk::Dsk(u8 numSides, const struct XDPB& params, CatalogType catType) {
this->_numSides = numSides;
memcpy(&this->_specs, ¶ms, sizeof(struct XDPB));
this->_blockSize = this->_numSides * DSK_RECORD_SIZE * (1 << (this->_specs.blockShift));
u16 sectorSize = this->_specs.sectSizeInReco... |
//
// 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 the following disclaimer.
// * Redistributions in bin... |
/**
* @author <a href="mailto:<EMAIL>"><NAME></a>
* @date 11/12/2019
* This project is released under the 3-Clause BSD License.
*
*/
#include "DesignProblem.hh"
#include <cmath>
#include <algorithm>
#include <fstream>
#include "utilities/GraphUtilities.hh"
using namespace chase;
using n... |
// Copyright (c) 2016 <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, distr... |
#include "hair.h"
#include "model.h"
#include "oglmanager.h"
#include <math.h>
extern Air *air;
bool air2hair_flag = true;
Hair::Hair()
{
}
Hair::Hair(QVector<QVector3D> _all_root_ps, QVector<QVector3D> _all_root_ns, Model *model)
{
this->head_model = model;
bool res = this->Init(_all_root_ps, _all_root_ns)... |
#include "include/Solution.hpp"
using namespace std;
using namespace pcp;
using namespace boost;
using namespace boost::assign;
// Create a new (empty solution)
Solution::Solution() {
this->g = new Graph(0);
this->colorsUsed = 0;
this->partitionMap = get(vertex_index1_t(), *this->g);
this->idMap = get(vertex_inde... |
/* Properties of SES36
by <NAME>, 2012
*/
#if defined(_MSC_VER)
#define _CRTDBG_MAP_ALLOC
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <crtdbg.h>
#else
#include <stdlib.h>
#endif
#include "math.h"
#include "stdio.h"
#include <string.h>
#include "CoolProp.h"
#include "FluidClass.h"
#include "R1234ze.h"... |
//==============================================================================
// This file is part of the SPNC project under the Apache License v2.0 by the
// Embedded Systems and Applications Group, TU Darmstadt.
// For the full copyright and license information, please view the LICENSE
// file that was distributed... |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2011 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License ... |
#include "halo/compiler/CompilationPipeline.h"
#include "halo/compiler/ExposeSymbolTablePass.h"
#include "halo/compiler/LinkageFixupPass.h"
#include "halo/compiler/LoopNamerPass.h"
#include "halo/compiler/LoopAnnotatorPass.h"
#include "halo/compiler/SimplePassBuilder.h"
#include "halo/compiler/Profiler.h"
#include "ha... |
/*
** glbackend.cpp
**
** OpenGL API abstraction
**
**---------------------------------------------------------------------------
** Copyright 2019 <NAME>
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following condition... |
// m-to-p.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
BOOL DoConvert(LPKEYBOARD kbd, PWSTR kbid);
BOOL SaveKeyboard(LPKEYBOARD kbd, PWSTR filename);
bool ImportRules(WCHAR *kbid, LPKEYBOARD kp);
int wmain(int argc, wchar_t * argv[])
{
if(argc < 5) {
/*
LogError(L"Usage... |
// Source file for the google street view processing program
////////////////////////////////////////////////////////////////////////
// Include files
////////////////////////////////////////////////////////////////////////
#include "GSV/GSV.h"
////////////////////////////////////////////////////////////////////... |
/*
cra-slider-game, 2014-2019 Musework Exhibits, LLC
created for Colorado River Alliance's Mobile River traveling exhibit.
This code runs on an Arduino Mega attached to 6 linear softpots.
This allows a user to estimate their weekly water consumption by changing the slider / softpot
values.
As of Oct 31 2019, all hardw... |
#include "Fgd.h"
#include <set>
map<string, int> fgdKeyTypes{
{"integer", FGD_KEY_INTEGER},
{"choices", FGD_KEY_CHOICES},
{"flags", FGD_KEY_FLAGS},
{"color255", FGD_KEY_RGB},
{"studio", FGD_KEY_STUDIO},
{"sound", FGD_KEY_SOUND},
{"sprite", FGD_KEY_SPRITE},
{"target_source", FGD_KEY_TARGET_SRC},
{"... |
#include "gross/Support/Log.h"
#include "gross/Graph/Graph.h"
#include "gross/Graph/NodeUtils.h"
#include "gross/Graph/NodeMarker.h"
#include "Parser.h"
#include <unordered_set>
#include <unordered_map>
using namespace gross;
Node* Parser::ParseAssignment() {
auto Tok = CurTok();
if(Tok != Lexer::TOK_LET) {
L... |
#include <QDate>
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QPixmap>
#include <QResizeEvent>
#include <QSpacerItem>
#include <QStatusBar>
#include <QTime>
#include <QTimer>
#include <QVBoxLayout>
#include <QWidget>
#include "MainWindow.hpp"
#include "Mine... |
/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
#include <CImageLib.h>
#include <CImageXWD.h>
#include <CThrow.h>
#include <CStrUtil.h>
#include <XWDFile.h>
static int xwd_bits_used = -1;
static int xwd_pixel_mask = -1;
bool
CImageXWD::
read(CFile *file, CImagePtr &image)
{
bool swap_flag = false;
file->rewind();
XWDFileHeader hdr;
readHeader(file, im... |
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR, CSU (c) 1990 - 2018
// ** University Corporation for Atmospheric Research (UCAR)
// ** National Center for Atmospheric Research (NCAR)
// ** Colorado State University
// ** BSD licence applies
// ** DISCLAIMER: THIS SOF... |
#ifdef _WIN32
#include "windows.h"
#endif
#include "stdio.h"
#include "math.h"
#include "stdlib.h"
#include "string.h"
#include "GL/gl.h"
#include "GL/glu.h"
#include "SDL.h"
#include "SDL_mixer.h"
#include "SDL_net.h"
#include "F1Spirit.h"
#include "sound.h"
#include "List.h"
#include "Vector.h"
#include "auxiliar.... |
//---------------------------------------------------------------------------
// Created 24-Jan-2003: <NAME> (<EMAIL>)
// Copyright (C) <NAME>
#pragma hdrstop
#include "glSpriteEngine.h"
#include "TomTrigBasicLib.h"
#include "Misc.h"
#include "glheaders.h"
//----------------------------------------------------------... |
// copyright (c) 2009-2010 <NAME>
// copyright (c) 2009-2015 the dzcoin developers
// distributed under the mit software license, see the accompanying
// file copying or http://www.opensource.org/licenses/mit-license.php.
#include "policy/fees.h"
#include "amount.h"
#include "primitives/transaction.h"
#include "stre... |
#include "MemoryContext.hh"
#include <unistd.h>
#include <stdint.h>
#include <sys/mman.h>
using namespace std;
MemoryContext::MemoryContext() : page_size(sysconf(_SC_PAGESIZE)) {
if (this->page_size == 0) {
throw invalid_argument("system page size is zero");
}
if (this->page_size & (this->pag... |
#include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
#include "Primitive.h"
#include "PhysBody3D.h"
#include "ModulePlayer.h"
#include "PhysVehicle3D.h"
#include "ModuleAudio.h"
ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled)
{
}
ModuleScen... |
/*
dparallel_recursion: distributed parallel_recursion skeleton
Copyright (C) 2015-2018 <NAME>, <NAME>. Universidade da Coruna
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.apa... |
/**
* Copyright (c) 2020 <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 code must retain the above copyright
* notice, this list of conditions a... |
#include "sys.h"
#include "stdint.h"
#include "idt.h"
#include "debug.h"
#include "machine.h"
#include "semaphore.h"
#include "libk.h"
#include "kernel.h"
#include "bobfs.h"
#include "elf.h"
#include "threads.h"
#include "future.h"
#include "vmm.h"
// added uart
#include "u8250.h"
// Program takes 2 arugments. Hello... |
#include "Stream.h"
static int avFormatInterruptCb(void *ctx) {
if (ctx) {
auto *playerState = (PlayerInfoStatus *) ctx;
if (playerState->abortRequest) {
return AVERROR_EOF;
}
}
// not modify
return 0;
}
Stream::Stream(MediaPlayer *mediaPlayer, PlayerInfoStatus *pla... |
/**
* @file AberLED.cpp
* @brief Implementation of the bicolor LED library.
* @author <NAME> (<EMAIL>)
* @version 2.6
* @date 7 December 2015
* @copyright Aberstwyth University
*
* This file implements the AberLED class. Stylistically it's somewhat horrific,
* using global variables all over the place. This i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.