text stringlengths 3.08k 12.5k |
|---|
#include "orbit_camera_controller.h"
#include "engine/events/event.h"
#include "logger/log.h"
#include "math/math.h"
#include "orthographic_camera.h"
#include "perspective_camera.h"
namespace {
static float EPS = 0.000001f;
}
namespace tk {
namespace engine {
OrbitCameraController::OrbitCameraController(uint32_t... |
#include <algorithm>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using std::cout;
using std::ifstream;
using std::istringstream;
using std::sort;
using std::string;
using std::vector;
enum class State { kEmpty, kObstacle, kClosed, kPath, kStart, kFinish };
/**
* @br... |
#include <sstream>
#include <string>
#include <fstream>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/ch_graham_andrew.h>
#include <CGAL/Cartesian.h>
#include <CGAL/Simple_cartesian.h>
#include <CGAL/point_generators_2.h>
#include <CGAL/Orthogonal_k_neighbor_search.h>
#incl... |
//
// DFSAlgorithm.cpp
// CToC++
//
// Created by mac on 2021/3/10.
// Copyright © 2021 lwb. All rights reserved.
//
#include "DFSAlgorithm.hpp"
#include <algorithm>
#include <unordered_map>
void findAllLeaf(TreeNode *root,vector<int> &leafArray) {
if (root == NULL) return;
if (!root->left && !root->right... |
/**
* Water_Torture.cpp
*
* Adapted for FastLED from Danny Havenith's code:
* https://github.com/DannyHavenith/ws2811
*
* @author <NAME> <<EMAIL>>
* @link https://github.com/dougalcampbell
* @license BSL 1.0
*/
#include "Water_Torture.h"
/**
* Constructor
*
* Sets a few sane defaults, but gives you comp... |
/*
* ParameterFile.cpp
*
* Created on: Feb 28, 2011
* Author: omidi
*/
#include "ParameterFile.h"
ParameterFile::ParameterFile() {
background.resize(4, 0.25);
lowest_score = -50;
file_name = "NULL";
resulting_file_name = "NULL";
background_is_set = false;
precision = 15.;
lambda = 0.125; // the defa... |
//chtholly and emilia will carry me to cm
#include <iostream>
#include <cstdio>
#include <cstring>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <array>
#include <tuple>
#define ll long long
#define lb long double
#define sz(vec) ((int)(vec.size()))
#define all(x) x.begin(), x.... |
/***********************************************************
* points.h : Simulates points repelling on the surface
* of a sphere.
*
* Copyright (c) <NAME>, 2003
*
* Last Rev Date 07/09/2003
*
************************************************************/
typedef struct tagPOINT3D
{
... |
/**
* This file is part of the CernVM File System.
*/
#include "helper_utils.h"
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <cassert>
#include <climits>
#include <cstdio>
#include <cstring>
#include <vector>
#include "x509_helper_log.h"
using namespace std; // NOLINT
... |
//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: <NAME> <<EMAIL>>
//------------------------------------------------------------------------------
#include "cling/Interpreter/ValuePrinter.h"
#include "cling/Inte... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define espaco 5
typedef struct no{
int info;
no *right;
no *left;
}no;
no* make_no(int num);
void aloca_no(no **p);
void insert_tree(no **p, int num);
bool find_number_tree(int num, no *p);
int profundidade_tree(no *p);
int soma_folhas(no *p);
void des... |
/*
* Copyright (c) 2006-2016 <NAME> http://www.box2d.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 to anyone to use this software for any purpose,
* inclu... |
#include <iostream>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <fstream>
#include <chrono>
#include <random>
#include <cmath>
#include <cstring>
#include <cassert>
#include <iomanip>
#include <atomic>
#include <array>
using namespace std;
struct Atom
{
std::atomic<double> _a;
Atom()... |
// ===========================================================================
// File: JSETUP.CXX
// implements CJavaSetup
//
#include <cdlpch.h>
#include <pkgguid.h>
// ---------------------------------------------------------------------------
// %%Function: CJavaSetup::CJavaSetup
// ---------------... |
#include "MSIMLanguageHandler.h"
#include <QTranslator>
#include <QSettings>
#include <QCoreApplication>
#include <QLocale>
#include <QDebug>
#include <IBK_messages.h>
#include <IBK_FormatString.h>
#include <IBK_configuration.h>
#include <MSIM_Constants.h>
#include "MSIMUIConstants.h"
#include "MSIMDir... |
/* Copyright 2019 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
/*++
Copyright (C) Microsoft Corporation, 1991 - 1999
Module Name:
nt4confg.c
Abstract:
this file provides the routine GetSystemType
that returns an identifier for the system type
i.e. NT on wrkgrp, domain or lMnt BDC, PDC.
Author:
<NAME> (mikemon) 18-Dec-1991
Rearra... |
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdlib>
class Edge {
public:
char vertex1;
char vertex2;
char type;
int distance;
bool impassable;
//Constructor
Edge(char v1, char v2, char t, int d) :
vertex1(v1),
vertex2(v2),
type(t),
distance(d),
impassable(fa... |
/*
* File : TypeInfo.cpp
* Remark : Minimum implementation of RTTI (Run Time Type Information).
* This implementation is just 'satisfying the compiler', in this case GCC, rather
* than complying with standard ABI and may not work for untested cases.
*/
#include <typeinfo>
#include "cxxabi.h"
#... |
#include <service/sys/ServerSys.h>
using namespace NEDBSTD;
using namespace UTILSTD;
using namespace std;
std::string DataBaseTestSQL = "";
void SQLTestGenerate(){
for(int i = 1; i <= 100; i++){
DataBaseTestSQL += "insert into database_test values (" + std::to_string(i) + ",0xff);";
}
DataBaseTest... |
#include <iostream>
#include <crow.h>
#include <boost/program_options.hpp>
#include <memory>
#include <thread>
#include "storage.h"
#include "handler.h"
#include "middleware.h"
#include "util.h"
#include "config.h"
#include "auth.h"
#include "indexer.h"
#include "saxreader.h"
#include "feed.h"
using namespace C3;
ty... |
#include "src/h/carddatabase.h"
#include "src/h/utils.h"
#include <QFile>
#include <QDebug>
#include <QByteArray>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonValueRef>
CardDatabase::CardDatabase() : cards()
{
//cards = new QMap<QString, Card*>();
//loadCardsFromFile("iron... |
//
// C++ Implementation by <NAME>
//
#include <cstring>
#include <Urho3D/Math/Ray.h>
#include <Urho3D/IO/Log.h>
#include <Urho3D/Scene/Scene.h>
#include <Urho3D/Graphics/Light.h>
#include <Urho3D/Input/Input.h>
#include <Urho3D/UI/Font.h>
#include <Urho3D/Graphics/DebugRenderer.h>
#include <Urho3D/Core/Variant.h>
#i... |
#include <random>
#include <time.h>
#include <iostream>
#include <game.h>
#include <virtual_keycodes.h>
#include <stringdefs.h>
#include <ai.h>
using namespace VIRTUAL_KEYCODES;
void Print(String text, String modifiers)
{
text = CSI + modifiers + text;
wprintf(text.c_str());
}
void Print(String text)
{
... |
// Copyright (C) 2006-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your op... |
/*
This file is part of ethminer.
ethminer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ethminer is distributed ... |
#include <WString.h>
#include <WebConnector.h>
const int http_port = 80;
/**** Local Network specific - TODO must pull out ****/
const char *ssid = "TP-LINK_AC17DC"; // HIDE ME!
const char *password = "<PASSWORD>"; // HIDE ME!
IPAddress localIP(192, 168, 0, 142);
IPAddress gateway(192, 168, 0, 1);
IPAddress subne... |
#include "render.h"
#include <iostream>
/*********************************************************************
*
* render.cpp
*
* Main renderer class
*
*********************************************************************/
#define USE_LIGHTS
#define TEMP_SNEAR 4
#define TEMP_SFAR 7
// simple noise [... |
// SacCommunicator.cpp: implementation of the CSacCommunicator class.
//
//////////////////////////////////////////////////////////////////////
#include "inclfile.h"
#include "..\SacCommunicator\SacCommunicator.h"
//#include "Debug.cpp"
/////////////////////////////////////////////////////////////////////... |
/**
@file fileinfo.cpp
@brief This file is part of Kalinka mediaserver.
@author <NAME> <<EMAIL>>
Copyright (c) 2007-2012 Kalinka Team
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... |
/*
* Copyright (c) 2008 <NAME>, <NAME>, <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... |
#include <fstream>
#include "program_opengl.h"
#include "shader_opengl.h"
#include <core/descriptors/uniform_names.h>
#include <core/heterogeneous_map.hpp>
//#include <unistd.h>
void ProgramOpenGL::setDefaultUniforms( const std::string& _name, GLenum uf ) {
switch ( uf ) {
case GL_FLOAT:
if ... |
/*******************************************************************************
* Copyright (c) 2018, RoboTICan, 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 sour... |
/// @file
/// @brief Defines the known keyboard mapping tables.
///
/// See keyboard_maps.h for a better description of the contents of these tables.
#include "gen_keyboard.h"
#include "keyboard_maps.h"
// This file simply contains keyboard mappings, there's no particular value for having each mapping documented by
/... |
#include <iostream>
#include <map> // for std::multimap
#include <vector> // for std::vector
#include <unistd.h> // for stat syscall
#include <sys/stat.h> // for struct stat data type
#include <pthread.h> // for mutexes
// avoid name mangling C headers library
extern "C" {
#include "mapreduce.h... |
/* Binary Space Partition Tree*/
#include <vector>
#include <istream>
#include <ostream>
#include <assert.h>
//
// struct sTreeAdaptor
// {
// eBspRelation Classify(
// const T_PlaneDiv& plane,
// const T_elementType& elem ) const;
//
// void Split(
// const T_PlaneDiv& plane,
/... |
/**
* <NAME> <<EMAIL>>
*/
#include "stdafx.h"
#include "Histogram.h"
#include "Ransac.h"
#include <cv.h>
#include <cvaux.h>
#include <highgui.h>
#include <stdio.h>
int thresh = 195;
CvSeq* findLines(IplImage* imgor, int thresh);
IplImage* CreateROI(IplImage* original, int width, int heigh, int x, int y);
void DrawLin... |
#include <fstream>
#include <iostream>
#include <vector>
#include <bitset>
#include <string.h>
#include <algorithm>
#include <iomanip>
#include <math.h>
#include <time.h>
#include <stdlib.h>
#include <set>
#include <map>
#include <string>
#include <queue>
#include <cassert>
using namespace std;
const char infile[] = ... |
#include "Configuration.h"
#include "Datagram.h"
#include "OlcbStream.h"
#include "logging.h"
#define CONFIGURATION_DATAGRAM_CODE 0x20
// define the operation codes, full byte
#define CFG_CMD_WRITE 0x00
#define CFG_CMD_READ 0x40
#define CFG_CMD_OPERATION ... |
#include "controller.h"
#include <sstream>
#include "game.h"
using namespace std;
/**
* Queries the player to setup their pieces
*
*/
MovementResult Controller::Setup(const char * opponentName)
{
string setup[4] = {"","","",""};
MovementResult query = this->QuerySetup(opponentName, setup);
if (query != Moveme... |
/******************************************************************************
* Filename: HttpSimpleServer.cpp
*
* Description: See header file.
*
* Author:
* <NAME> (<EMAIL>)
*
* History:
* 08 Mar 2021 <NAME> Created, Dublin, Ireland.
*
* License: Public Domain (no warranty, use at own risk)
/*********... |
/*
Copyright (c) openheap, uplusware
<EMAIL>
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "storage.h"
#include <string.h>
#ifndef _MONGODB_
void DatabaseStorage::SqlSafetyString(string& strInOut)
{
char * szOut = new char[strInOut.length()* 2 + 1];
mysql_escape_string(szOut, strInOut.c_str(... |
#include <ctime>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <list>
#include <map>
using namespace std;
#define OUTPUT_DEBUG(TARGET) cerr << #TARGET << " == " << TA... |
#include "CalLikelihoodTool.h"
#include "GaudiKernel/SmartDataPtr.h"
#include "Event/TopLevel/EventModel.h"
#include "Event/Digi/TkrDigi.h"
/**
* @class CalTkrLikelihoodTool
*
* Algorithm for correction of energy degradation in the tracker by correlating
* the energy in the CAL with the number of hit TKR strips.
... |
//<NAME>
//This program helps manage manufacturing inventory
//This Program Created by <NAME> on 11:40 AM, Nov 19, 2019
//This Program has been done by <NAME> on 3:40 PM, Nov 23, 2019.
//Copyright @ 2019 <NAME>. All rights reserved.
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include <... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
#include "util/shader.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <dirent.h>
#include <glm/gtc/type_ptr.hpp>
#define SHADER_INFOLOG_BUFSIZE 1024
std::string Shader::shaderDirectory = "./";
std::map<std::string, Shader> Shader::shaderStorage;
Shader::Shader(const std::s... |
#include "common.h"
gtRenderModelD3D11::gtRenderModelD3D11( gtDriverD3D11* d ):
//m_sModel( nullptr ),
m_gs( d ),
m_lockedResource( nullptr ),
m_stride( gtConst0U )
{}
gtRenderModelD3D11::~gtRenderModelD3D11(){
unlock();
auto sz = m_vBuffers.size();
for( auto i = gtConst0U; i < sz; ++i )
m_vBuffers[ i ]->... |
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/CFG.h"
#include <iostream>
#include <vector>
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Value.h"
#include "map"
#include "set"
#include "llvm/IR/Instructions.h"
usin... |
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <string>
#include <sstream>
auto removePunctuation(std::string strArr[], int arrLength)
{
std::vector<std::string> sudokuBoard;
auto isPunctuation = [](char c) { return c == '(' || c == ')' || c == ','; };
for (int i =... |
/***************************************************************************
* Copyright 1998-2018 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
#include <iostream>
#include <conio.h>
#include <vector>
#include <windows.h>
#include <fstream>
#include <math.h>
using namespace std;
#include "inventory.h"
char player = 'C';
char blankSpace = '.';
char currentBeneathBlock = ' ';
vector<char> map;
int mapSizeX=55,mapSizeY=25;
int mapSize;
vector<char> store;
in... |
// ***********************************************************************
//
// Demo program for education in subject
// Computer Architectures and Parallel Systems.
// <NAME>, dep. of Computer Science, FEI, VSB-TU Ostrava
// email:<EMAIL>
//
// Example of CUDA Technology Usage with unified memory.
//
// Imag... |
// Copyright (c) 2014-2020 The Ion Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "reward-manager.h"
#include "init.h"
#include "masternode/masternode-sync.h"
#include "policy/policy.h"
#include "v... |
/*
* ===========================================================================
* Loom SDK
* Copyright 2011, 2012, 2013
* The Game Engine Company, 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 o... |
/*=============================================================================
# Author: <NAME> - https://github.com/mjenrungrot/
# FileName: 10582.cc
# Description: UVa Online Judge - 10582
=============================================================================*/
#include <cstring>
#inclu... |
#include <cassert>
#include <iostream>
#include "ch_frb_io_internals.hpp"
using namespace std;
using namespace ch_frb_io;
inline double intval(int ifreq, int ipol, int it)
{
return 1.3183*ifreq + 1502.382*ipol - 0.328*it - 3201.91;
}
inline double wtval(int ifreq, int ipol, int it)
{
// all signs positive
... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
/*
===== tf_client.cpp ========================================================
HL2 client/server game spe... |
#include "Researcher.h"
#include <future>
#include <utility>
Researcher::Researcher(std::string directory_path, std::string pattern):_directory_path(std::move(directory_path)),_pattern(std::move(pattern))
{}
void Researcher::execute()
{
const std::regex r = buildRegFromPattern();
if (isTextFile(this->_directory_path... |
#include "al/ui/al_ControlGUI.hpp"
#include "al/graphics/al_Graphics.hpp"
#include "al/ui/al_SequenceRecorder.hpp"
using namespace al;
using namespace std;
void ControlGUI::draw(Graphics & /*g*/) {
auto separatorAnchor = mSeparatorAnchors.begin();
auto groupBeginAnchor = mGroupBeginAnchors.begin();
auto groupN... |
///////////////////////////////////////////////////////////
// RecipeBook.cpp
// Implementation of the Class RecipeBook
// Created on: 19-mars-2022 11:14:24
// Original author: francois
///////////////////////////////////////////////////////////
#include "AbsRecipeComponent.h"
#include "RecipeBook.h"
#include... |
#include "main.h"
#include <iostream>
#include <cstdio>
#include <vector>
int main (void) {
std::string first_player_name, second_player_name;
std::string word_to_guess;
PrintIntro();
AskNames(first_player_name, second_player_name);
word_to_guess = AskForWord(first_player_name);
StartGame(first_player_nam... |
/*
The MIT License
Copyright 2019 hiratake26to
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, d... |
// This file is part of the LITIV framework; visit the original repository at
// https://github.com/plstcharles/litiv for more information.
//
// Copyright 2015 <NAME>; pierre-luc.st-charles<at>polymtl.ca
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... |
#include "OverlappedModuleIo.hpp"
#include <Windows.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <sstream>
#include <cassert>
#include <vector>
static std::string GetLastErrorString()
{
DWORD error = GetLastError();
if (error) {
LPVOID lpMessageBuffer;
DWORD messageLengt... |
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <deque>
#include <unordered_map>
using namespace std;
const int MAXN = 100005;
const int INF = 1e9;
const int MAXK = 8;
const int OPEN = 1;
const int CLOSE = 0;
struct event {
int x;
int event_type;
int segment_id;
event(i... |
#include <memory>
#include <sstream>
#include <string>
#include <functional>
#include "HLCHello.hpp"
#include "cpm/AsyncReader.hpp"
#include "cpm/ParticipantSingleton.hpp"
#include "cpm/get_topic.hpp"
#include "cpm/TimerFD.hpp"
#include "cpm/Logging.hpp"
#include "cpm/RTTTool.hpp"
#include "cpm/CommandLineReader.hpp"... |
/*****************************************************************************
* Copyright (C) 2001-2009 PEAK System-Technik GmbH
*
* <EMAIL>
* www.peak-system.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... |
// MIT License
//
// Copyright (c) 2018 <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, merg... |
/*********************************************************************/
/* */
/* Nagoya Institute of Technology, Aichi, Japan, */
/* Nara Institute of Science and Technology, Nara, Japan */
/* ... |
#include "internal.hpp"
#include <iostream>
AST_base::~AST_base() noexcept = default;
struct If::Impl final {
AST test = AST();
AST consequent = AST();
AST alternate = AST();
};
If::If(AST test, AST consequent, AST alternate) noexcept : impl(std::make_shared<Impl>())
{
impl->test = std::move(tes... |
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <functional>
#include <random>
#include <vector>
#include <string>
#include <gauss_multi.h>
#include <gp.h>
using namespace std;
typedef unsigned int uint;
// Random engine to use throughout
default_random_engine gen;
// How many functions to sample ... |
/* * * * * * * * * * * * * Author's note * * * * * * * * * * * *\
* _ _ _ _ _ _ _ _ _ _ _ _ *
* |_| |_| |_| |_| |_|_ _|_| |_| |_| _|_|_|_|_| *
* |_|_ _ _|_| |_| |_| |_|_|_|_|_| |_| |_| |_|_ _ _ *
* |_|_|_|_|_| |_| |_| |_| |_| |_| |_| |_| |_... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "EBEllipticLoadBalance.H"
#include "EBIndexSpace.H"
#include "EBISLa... |
#include "graphics/guide/Flag.h"
#include "graphics/XChart.h"
#include "graphics/shape/Circle.h"
#include "graphics/shape/Group.h"
#include "graphics/shape/Line.h"
#include "graphics/shape/Rect.h"
#include "graphics/shape/Text.h"
#include <utils/common.h>
using namespace xg;
using namespace xg::guide;
void Flag::Rend... |
/*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2013, <NAME>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any pers... |
/* The Image Registration Toolkit (IRTK)
*
* Copyright 2008-2015 Imperial College London
*
* 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... |
/**
* Copyright (C) 2019-2020 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
#include "texture_utils.hpp"
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include <algorithm>
typedef glm::tvec4<GLubyte> ubvec4;
Texture2D* TextureUtils::SingleColor(glm::vec4 color, glm::ivec2 size){
//Convert color data from floats to unsigned bytes
ubvec4 c = {(GLubyte)(color.r*25... |
/*MT*
MediaTomb - http://www.mediatomb.cc/
web_autoscan.cc - this file is part of MediaTomb.
Copyright (C) 2005 <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>
Copyright (C) 2006-2010 <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
... |
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-20 <NAME>
CppAD is distributed under the terms of the
Eclipse Public License Version 2.0.
This Source Code may also be made available under the following
Secondary Lice... |
#include "Mixer4.hpp"
Mixer4Module::Mixer4Module()
: Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
for (uint8_t i = 0; i < MIXER_CHANNELS; i++) {
channel_led_l[i] = 0.0f;
channel_led_r[i] = 0.0f;
mute[i] = false;
solo[i] = false;
mute_trigger[i] = new SynthDevKit::CV(0.1f);
so... |
// Tests for Adiak import/export services
#include "caliper/cali.h"
#include "caliper/Caliper.h"
#include <gtest/gtest.h>
#include <adiak.hpp>
#include <adiak_tool.h>
using namespace cali;
namespace
{
void extract_cb(const char* name, adiak_category_t cat, const char* subcategory, adiak_value_t* val, adiak_dataty... |
/*
ZynAddSubFX - a software synthesizer
Unison.cpp - Unison effect (multivoice chorus)
Copyright (C) 2002-2009 <NAME>
Author: <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License
as published by the Free Software Fo... |
/*
* Copyright 1993-2002 <NAME> and Perforce Software, Inc.
*
* This file is part of Jam - see jam.c for Copyright information.
*/
/* This file is ALSO:
* Copyright 2001-2004 <NAME>.
* Copyright 2020 <NAME>.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE.txt or
*... |
/*
Copyright 2020 Intel Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, s... |
/******************************************************************************
* mis_log.cpp
*****************************************************************************/
#include "mis_log.h"
#include <stdio.h>
#include <fstream>
#include <iostream>
mis_log::mis_log() {
number_of_nodes = 0;
number_of_edg... |
//---------------------------------------------------------
// Copyright 2015 Ontario Institute for Cancer Research
// Written by Jared Simpson (<EMAIL>)
//---------------------------------------------------------
//
// nanopolish_profile_hmm -- Profile Hidden Markov Model
//
#include <algorithm>
#include "nanopolish_p... |
/*
Copyright (c) 2004-2021 The FlameRobin Development Team
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, modi... |
// Copyright 2020 <NAME>
#include <mpi.h>
#include <ctime>
#include <vector>
#include <random>
#include <algorithm>
#include <iostream>
#include <utility>
#include "../../../modules/task_3/belik_j_radix_sort_batcher/RadixSortB.h"
std::vector<int> MergeBatcher(std::vector<int> vec, int n) {
int size, rank;
MPI_C... |
// Copyright (c) 2021 <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, distri... |
// Fuzzy parser for raw track data
#include "SAMdisk.h"
#include "TrackDataParser.h"
// This class attempts to make sense of decoded bitstream data, as returned
// by FDCs from gap areas of the track. It allows for mis-synced data being
// returned as clock bits, splice noise, and mis-framed bytes.
TrackDataParser::... |
/*******************************************************************\
Module: Abstract interface to support a programming language
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Abstract interface to support a programming language
#include "language.h"
... |
#include <bits/stdc++.h>
#ifdef LOCAL
#include "code/formatting.hpp"
#else
#define debug(...) (void)0
#endif
using namespace std;
template <typename T>
struct unit_pwlc {
static inline constexpr T MIN = numeric_limits<T>::lowest() / 2;
static inline constexpr T MAX = numeric_limits<T>::max() / 2;
template... |
/**
* @file decision_stump_main.cpp
* @author <NAME>
*
* Main executable for the decision stump.
*/
#include <mlpack/core.hpp>
#include "decision_stump.hpp"
using namespace mlpack;
using namespace mlpack::decision_stump;
using namespace std;
using namespace arma;
PROGRAM_INFO("Decision Stump",
"This program ... |
#include "../bsnes.hpp"
#include "video.cpp"
#include "audio.cpp"
#include "input.cpp"
#include "hotkeys.cpp"
#include "paths.cpp"
#include "emulator.cpp"
#include "drivers.cpp"
Settings settings;
VideoSettings videoSettings;
AudioSettings audioSettings;
InputSettings inputSettings;
HotkeySettings hotkeySettings;
PathS... |
//----------------------------------*-C++-*----------------------------------//
/*!
* \file c4/test/tstParallelUnitTestFailMode.cc
* \author <NAME>
* \date Thu Jun 1 17:42:58 2006
* \brief Test the functionality of the class ParallelUnitTest
* \note Copyright (C) 2016-2019 Los Alamos National Securities, LL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.