text stringlengths 5.71k 33.7k |
|---|
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the abo... |
// kheap.c -- Kernel heap functions, also provides
// a placement malloc() for use before the heap is
// initialised.
// Written for JamesM's kernel development tutorials.
#include "kheap.h"
#include "PageDirectoryEntry.h"
#include "PageTableEntry.h"
#include "VirtualMemoryManager.h"
... |
// Copyright (c) 2020 The Orbit 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 "GlCanvas.h"
#include <GteVector.h>
#include <absl/base/casts.h>
#include <limits.h>
#include <math.h>
#include "App.h"
#include "CaptureWindo... |
/*
Author(s): <NAME> (msc37)
Project: sweepc (population balance solver)
Sourceforge: http://sourceforge.net/projects/mopssuite
Copyright (C) 2008 <NAME>.
File purpose:
Implementation of the ParticleStats class declared in the
swp_particle_stats.h header file.
Licence:
This fil... |
#include "test/unit_tests/math/test_data/test_data_rotations.h"
const double rmat0[3][3] = {{0.3020658, -0.6822845, 0.6657658},
{0.1786694, 0.7265335, 0.6634955},
{-0.9363939, -0.0814673, 0.3413643}};
const double quat0[4] = {-0.2419545, 0.5203613, 0.279627, 0.76... |
#include <cassert>
#include <iomanip>
#include <set>
#include <map>
#include <unordered_map>
#include <utility>
#include <iostream>
#include <algorithm>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/ext.hpp>
#include <glm/gtx/string_cast.hpp>
#undef GLM_ENABLE_EXPERIMENTAL
#include <vtkDataSetAttributes.h>
#include <... |
#include "graph.h"
#include <string>
#include <iostream>
Graph::Graph(){
this->inop.name = "inop";
this->inop.duration = 0;
this->inop.start_time = 0;
this->onop.name = "onop";
this->onop.duration = 0;
this->onop.start_time = 0;
}
Graph::Graph(const Graph &g){
thi... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
bbox.maxX = std::numeric_limits<float>::min();
bbox.maxY = std::numeric_limits<float>::min();
bbox.minX = std::numeric_limits<float>::max();
bbox.minY = std::numeric_li... |
// Copyright 2014 Georgia Institute of Technology
//
// 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 ... |
/******************************************************************************
* Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal i... |
/*
* Aligner.cpp
*
* Author: Julia
*/
#include<iostream>
#include<vector>
#include<stdint.h>
#include<climits>
#include<cstring>
#include<dirent.h>
using namespace std;
#include "Dictionary.h"
#include "Fragment_Index.h"
#include "MappingValues.h"
#include "SuffixArray.h"
#include "Seed.h"
#include "Chain.h"
... |
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "stm32f10x.h"
#include "stm32f10x_usart.h"
#include "stm32f10x_i2c.h"
#include "stm32f10x_tim.h"
#include "stm32f10x_exti.h"
#include "stm32f10x_rcc.h"
#define VAR_GLOBAL
#include "global.h"
#include "i2c.h"
#include <m... |
#include "Memory.h"
#include "GB.h"
#include "Serializer.h"
#include <fstream>
#include <iostream>
void Memory::LoadROM(const char* fpath) {
std::ifstream fin(fpath, std::ios::in | std::ios::binary);
fin.seekg(0, std::ios::end);
int length = fin.tellg();
fin.seekg(0, std::ios::beg);
fin.read((char*)m_Cartrid... |
#include <llvm/IR/DerivedTypes.h>
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Verifier.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/Support/raw_os_ostream.h>
#include <llvm/IR/Intrinsics.h>
#include <fstream>
#include "eval.h"
#include "evalctx.h"
#include "symtab.h"
#include "ex... |
/*
* testay.cpp
*
* Created on: Apr 12, 2011
* Author: polter
*/
#ifdef DONTCOMMENTALLOUT
#include <ay_logger.h>
#include <ay_utf8.h>
#include <ay_choose.h>
#include <ay_util_time.h>
#include <ay_util.h>
#include <ay_char.h>
#include <ay_xml_util.h>
#include <boost/format.hpp>
#include <fstream>
#include <i... |
#include "GPU/cuda_dpop_state.hh"
#include "GPU/cuda_utils.hh"
#include "GPU/gpu_dpop_util_phase.hh"
#include "GPU/gpu_dpop_value_phase.hh"
#include "GPU/gpu_data_allocator.hh"
#include "preferences.hh"
#include "Algorithms/Orderings/pseudo-tree-ordering.hh"
#include "Algorithms/DPOP/util-msg.hh"
#include "Kernel/agen... |
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompan... |
////////////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------------- //
// //
// (C) 2012-2013 <NAME> //
// ... |
//
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope tha... |
#include "gl_util.hpp"
#include "fps_manager.hpp"
/*
ImGui
*/
#include "imgui.h"
#include "imgui_impl_glfw_gl3.h"
/*
GLM
*/
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/string_cast.hpp>
/*
TINY OBJ
*/
#define TINYOBJLOADER_IMPLEMENTATION... |
//Author: <NAME>
//Description: BitStamper utility
#include<sys/types.h>
#include<dirent.h>
#include<iostream>
#include<list>
#include<algorithm>
#include<limits>
#include<sys/stat.h>
#include<unistd.h>
#include<math.h>
#include<vector>
#include<openssl/sha.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#i... |
/*
* Copyright (c) 2015, Nagoya University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list... |
#include "sandBox.h"
#include "igl/edge_flaps.h"
#include "igl/collapse_edge.h"
#include "Eigen/dense"
#include <functional>
#include <Eigen/Core>
#include "igl/opengl/ViewerCore.h"
#include "igl/opengl/glfw/renderer.h"
#include "igl/decimate.h"
#include "igl/writeOBJ.h"
#include <igl/circulation.h>
#include <igl/short... |
/*
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
///-------------------------------------------------------------------------------------------------
// file: ConverionsUnitTest.cpp
//
// summary: Tests the conversions functions
//
//
// Copyright (c) 2020 by <NAME>
///-------------------------------------------------------------------------------------------------... |
// copied code from the sample usage code in https://github.com/syoyo/tinyobjloader
#include "obj2scene.h"
#define TINYOBJLOADER_IMPLEMENTATION
#include <tiny_obj_loader.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#include "light/meshLight.h"
#include "material/lambertianMaterial.h"
#include "material... |
#include <cstdio>
#include <cstdlib>
#include <string>
#include "sff/sac/waveform.hpp"
#include "sff/sac/header.hpp"
#include "sff/utilities/time.hpp"
#include "time.hpp"
#include "sac.hpp"
using namespace PBSFF;
/// Constructor
SAC::SAC() :
mWaveform(std::make_unique<SFF::SAC::Waveform> ())
{
}
/// Copy c'tor
S... |
#include <afbdil/process.h>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <set>
using namespace std;
using namespace afbd;
namespace afbd {
extern std::shared_ptr<Expr> expr_true;
extern std::shared_ptr<Expr> expr_int_zero;
extern std::shared_ptr<Expr> expr_int_one;
... |
/* ------------------------------------------------------------------------- */
/* Developer: <NAME> */
/* Project: CSCE-313 Machine Problem #4 */
/* */... |
///////////////////////////////////////////////////
// dBiz Utility
//
///////////////////////////////////////////////////
#include "dBiz.hpp"
#include <ctime>
#include <iostream>
#include <vector>
#include <random>
#include <algorithm>
using namespace std;
/////added fine out /////////////////////////////////////... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2021 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
// SPDX-License-Identifier: GPL-3.0-only
#include <vector>
#include <string>
#include <filesystem>
#include <invader/printf.hpp>
#include <invader/version.hpp>
#include <invader/tag/hek/header.hpp>
#include <invader/tag/hek/definition.hpp>
#include <invader/command_line_option.hpp>
#include <invader/tag/parser/parser.... |
/*
* =====================================================================================
*
* Filename: ldgm-session-cpu.cpp
*
* Description: CPU implementation of LDGM coding
*
* Version: 1.0
* Created: 04/12/2012 01:21:07 PM
* Revision: none
* Compiler: gcc
*
* ... |
#include "graphics.h"
#include <SDL.h>
#include <SDL_ttf.h>
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <climits>
genv::groutput& genv::gout = genv::groutput::instance();
genv::grinput& genv::gin = genv::grinput::instance();
namespace
{
#include "char2.h"
#include "keytbl.h"
SDL_Timer... |
// online2bin/online2-audio-nnet2-latgen-faster.cc
// a modified version of:
// online2bin/online2-wav-nnet2-latgen-faster.cc
// original author: <NAME>, Johns Hopkins University
// Copyright 2015-2018 the ARIA-VALUSPA project
// (authors: <NAME>, <NAME>, <NAME>)
// See ../../COPYING for clarification regardi... |
/*******************************************************************************
Name: <NAME>
Z#: Z23146703
Course: Foundations of Computer Science (COP3014)
Professor: Dr. <NAME>
Due Date: 16.06.26
Due Time: 23:59
Total Points: 100
Assignment 6: Call Cost Calculator w/ File I/O Streams and Arrays
Description:
This a... |
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
... |
// Copyright (c) 2021 <NAME>
// Some of the code is taken from https://github.com/lbcb-sci/ram
#include <getopt.h>
#include <bitset>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include "bioparser/fasta_parser.hpp"
#include "bioparser/fastq_parser.hpp"
#include "biosoup/progress_bar.hpp"
#include "bios... |
/*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved.
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 us... |
// Copyright 2013 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 "cmdEx/line_editor.h"
#include <windows.h>
#include <algorithm>
#include "cmdEx/command_history.h"
#include "cmdEx/directory_history.h"
#inclu... |
// Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
// and may not be copied or disclos... |
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <string>
#include <vector>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <signal.h>
#include "sandbox.h"
using namespace std;
static ... |
// Class include
#include "TnPPlotter.hh"
TnPPlotter::TnPPlotter(const TString & infilename, const TString & outfiletext)
: fInFileName(infilename), fOutFileText(outfiletext)
{
std::cout << "Initializing TnPPlotter..." << std::endl;
////////////////
// //
// Initialize //
// //
///... |
// -*- C++ -*-
//
// Class: PhysicsObjectsHistos
//
/**\class PhysicsObjectsHistos PhysicsObjectsHistos.cc
*/
//
// $Id$
//
//
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCor... |
#include "global_body_planner/rrt_connect.h"
//constructor
RRTConnectClass::RRTConnectClass(){}
//destructor
RRTConnectClass::~RRTConnectClass() {}
using namespace planning_utils;
int RRTConnectClass::attemptConnect(State s_existing, State s, double t_s, State &s_new, Action &a_new, FastTerrainMap& terrain, int direc... |
/*
Copyright (C) 2011 - 2019, <NAME> and contributors listed
in the AUTHORS file in TASBE Flow Analytics distribution's top directory.
This file is part of the TASBE Flow Analytics package, and is distributed
under the terms of the GNU General Public License, with a linking
exception, as described in the fil... |
//===- AIENetlistAnalysis.cpp -----------------------------------*- C++ -*-===//
//
// This file is licensed 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
//
// (c) Copyright 2019 Xilinx Inc.
//... |
// gvg2geotiff.cpp: Convert GVG maps to GeoTIFF
#include <array>
#include <string>
#include <iostream>
#include "../include/map_gvg.h"
#include "../include/util.h"
#include "tiff.h"
#include "geotiff.h"
#include "geovalues.h"
#include "libxtiff/xtiffio.h"
#include "getopt.h"
const char * const DEFAULT_ENCODING = "... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* 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/. */
... |
/* Copyright (c) <2003-2021> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* includi... |
#include "convert.hpp"
void write_vcf_header(FILE *vcf_file, std::vector<Mutation_Annotated_Tree::Node*> &dfs,
bool print_genotypes) {
// Write minimal VCF header with sample names in same order that genotypes
// will be printed out (DFS).
fprintf(vcf_file, "##fileformat=VCFv4.2... |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... |
/* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
QM Vamp Plugin Set
Centre for Digital Music, Queen Mary, University of London.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published b... |
#include "object_detection_ssd.h"
ObjectDetectionSSD::ObjectDetectionSSD()
{
is_new_image = false;
is_first_image = true;
}
ObjectDetectionSSD::~ObjectDetectionSSD()
{
}
void ObjectDetectionSSD::initInferenceEngine()
{
std::cout << "InferenceEngine: " << GetInferenceEngineVersion() << std::endl;
// -... |
#include "RecoLocalCalo/CastorReco/interface/CastorSimpleRecAlgo.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "CalibCalorimetry/CastorCalib/interface/CastorTimeSlew.h"
#include "DataFormats/METReco/interface/HcalCaloFlagLabels.h"
#include <algorithm> // for "max"
#include <cmath>
constexpr do... |
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
// Containers
#include <deque>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <ve... |
#include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Render.h"
#include "j1Textures.h"
#include "j1Map.h"
#include <math.h>
#include <stdlib.h>
#include <cstring>
#include "j1Entities.h"
#include "BaseEnemy.h"
#include "Player.h"
#include "j1Pathfinding.h"
#include "Brofiler\Brofiler.h"
LayerID& opera... |
#include "IRSDR.h"
#include <algorithm>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <algorithm>
#include <assert.h>
#include <iostream>
using namespace sdr;
void IRSDR::createRandom(int visibleWidth, int visibleHeight, int hiddenWidth, int hiddenHeight, int receptiveRadius, int ... |
/* --------------------------------------------------------------------------
*
* File Ch4_Impulses.cpp
* Ported By <NAME>
* Contact <EMAIL>
*
* Created By <NAME>
* Contact <EMAIL>
*
* -------------------------------------------------------------... |
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... |
#include <assert.h>
#include <sstream>
#include <string>
#include "TGeoVolume.h"
#include "TGeoMatrix.h"
#include "TVector3.h"
#include "StMessMgr.h"
#include "StThreeVectorD.hh"
#include "Sti/Base/Factory.h"
#include "Sti/StiPlanarShape.h"
#include "Sti/StiCylindricalShape.h"
#include "Sti/StiMaterial.h"
#include "... |
#include <algorithm>
#include "enemies.h"
#include "moves.h"
#include "battle.h"
/* TODO: Split the combat system from the battle itself. */
/* The player heals at the end of each battle? */
constexpr bool AUTOHEAL = false;
std::string ColoredHp(int cur, int max)
{
Color color = Color::COLOR_RED;
floa... |
// (C) Copyright 2016-2021 Xilinx, Inc.
// All Rights Reserved.
//
// 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 yo... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) DreamWorks Animation LLC
//
// All rights reserved. This software is distributed under the
// Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
//
// Redistributions of source code must retain the above copyrigh... |
/*
Copyright © 2019 InAccel
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 writing, software
distrib... |
/*
* File name: cairoxwin.cc
* Date: 2007/02/17 19:02
* Author: <NAME>
*/
#include <crl/logging.h>
#include <crl/stringconversions.h>
#include <crl/gui/cairoxwin.h>
#include <crl/gui/markers.h>
using namespace crl::gui::cairo;
/*
static const double DEFAULT_XTRANS = 0.0;
static const double DEFAU... |
/*=========================================================================
Copyright 2009 Rensselaer Polytechnic Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/lice... |
// utils.cpp : Defines the utility functions
#include "utils.h"
HRESULT SocketCreateAndListen(USHORT usPort, SOCKET *pSocket)
{
HRESULT hr = E_FAIL;
CHAR szPort[8] = { 0 };
_TCHAR szAddr[64] = { 0 };
SOCKET s = INVALID_SOCKET;
struct addrinfo hints = { 0 };
struct addrinfo *servinfo = NULL;
struct addrinfo *p... |
/* crypto/rsa/rsa_lib.c */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as l... |
// g++ .\cbits\fakeRack.cpp -IRack-SDK\include\ -IRack-SDK\dep\include\ -lRack -LRack-SDK\ -o Rack -mwindows "-Wl,--export-all-symbols"
#include <jansson.h>
#include <iostream>
#include <plugin/Plugin.hpp>
#include <plugin/Model.hpp>
#include <plugin.hpp>
#include <string.hpp>
#include <app/common.hpp>
#include <ui/M... |
#include <math.h>
#include <tuple>
#include <sstream>
#include <glad/glad.h>
#include "renderer.hpp"
#include "logger.hpp"
#include "system/transform.hpp"
Renderer::~Renderer() {
for (const auto& s : m_shaders) {
delete_shader(s.second);
}
for (const auto& m : m_meshes) {
delete_mesh(m.second);
}
}
void ... |
//
// Created by jldevezas on 3/6/18.
//
#include <chrono>
#include <utility>
#include <boost/log/trivial.hpp>
#include <boost/python/extract.hpp>
#include <boost/tokenizer.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/python/list.hpp>
#include <boost/python/tuple.hpp>
#include <boost/filesystem.hpp>
#in... |
// Copyright (c) 2008- Facebook
// Distributed under the Thrift Software License
//
// See accompanying file LICENSE or visit the Thrift site at:
// http://developers.facebook.com/thrift/
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include "thrift/lib/cpp/async/TEventBase.h"
#include "thrift/li... |
#include <iostream>
#include <unordered_map>
#include <map>
#include <algorithm>
#include <vector>
#include <queue>
#include <fstream>
#include <string.h>
#define FREQUENCY_BYTES 3
typedef std::pair<unsigned char, int> HuffmanPair;
class Node {
public:
Node(HuffmanPair value, Node *left, Node *right);
... |
/*
IRE game engine
Copyright (c) 2011, IT-HE Software
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditi... |
#include "pch.h"
#include "ClusterManager.h"
ClusterManager::ClusterManager(std::array<UINT, 3> gridDims, uint16_t maxLights, ID3D11Device* device)
: _gridDims(gridDims), _gridSize(gridDims[0] * gridDims[1] * gridDims[2])
{
_offsetGrid.resize(_gridSize);
_lightIndexList.reserve(AVG_MAX_LIGHTS_PER_CLUSTER * _gridSi... |
#include "sdl_cef_events.h"
#define _SDLK_KP0 1073741912
#define _SDLK_KP1 1073741913
#define _SDLK_KP2 1073741914
#define _SDLK_KP3 1073741915
#define _SDLK_KP4 1073741916
#define _SDLK_KP5 1073741917
#define _SDLK_KP6 1073741918
#define _SDLK_KP7 ... |
#include "example.h"
#ifdef _WIN32
#include <windows.h>
#endif
#include <iostream>
#include <cstdlib>
#include <time.h>
#include <fstream>
#include "core/loaders/targa.h"
#include "core/Camera.h"
#include "shapes/terrain.h"
#include "shapes/Water.h"
#include "shapes/Tree.h"
#include "shapes/sphere.h"
#i... |
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <assert.h>
#include <omp.h>
#ifdef RTM_MPI
#include <mpi.h>
#endif
#include <RTM.hpp>
bool RTMProcess::initRTMProcess()
{
#ifdef RTM_MPI
//MPI_Init(NULL, NULL); ///< initialize MPI environment
int provided;
MPI_Init_thre... |
#include <system/usb/hidparser.h>
#include <common/memoryoperations.h>
#include <system/log.h>
using namespace CactusOS;
using namespace CactusOS::common;
using namespace CactusOS::system;
#define HID_SHOW_INFO 0
char spaces_buff[33];
char* spaces(unsigned cnt) {
if (cnt > 32)
return "**";
MemoryOpe... |
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <math.h>
#include <GL/glut.h>
#include <stdio.h>
#include <string>
#define _USE_MATH_DEFINES
/* change these 20 parameters to affect the shape */
const double m_0[4] = {2.99, 2.99, 2.99, 2.99};
const ... |
#include <util/StopWatch.hpp>
#include "controller.h"
#include "snapshot_patch_iterator_triple_id.h"
#include "patch_builder_streaming.h"
#include <sys/stat.h>
Controller::Controller(string basePath, int8_t kc_opts, bool readonly) : patchTreeManager(new PatchTreeManager(basePath, kc_opts, readonly)), snapshotManager(n... |
/******************************************************************
* LexMarkdown.cxx
*
* A simple Markdown lexer for scintilla.
*
* Includes highlighting for some extra features from the
* Pandoc implementation; strikeout, using '#.' as a default
* ordered list item marker, and delimited code blocks... |
#include "generator/utils.hpp"
#include "indexer/classificator.hpp"
#include "indexer/classificator_loader.hpp"
#include "indexer/feature.hpp"
#include "indexer/feature_algo.hpp"
#include "indexer/feature_decl.hpp"
#include "indexer/feature_meta.hpp"
#include "indexer/feature_processor.hpp"
#include "indexer/features_... |
/*******************************************************************************
** __ __
** / \ ___ _ _ ___ / \
** / \ | | | | / \ | \ / \
** / /\ \ | / | | / \ ... |
// Copyright 2012 Cloudera 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... |
/*
* Created by Nicolas "montoyo" BARBOTIN in may 2019.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or ... |
//This is lostallmymoney's remake of RaulPPelaez's original tool.
//RaulPPelaez, et. al wrote the original file. As long as you retain this notice you
//can do whatever you want with this stuff.
#include <iostream>
#include <vector>
#include <fstream>
#include <fcntl.h>
#include <unistd.h>
#include <linux/input.h>
#i... |
/****************************************************************************
*
* Copyright (c) 2015 Estimation and Control Library (ECL). All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... |
// See LICENSE_CELLO file for license and copyright information
/// @file enzo_EnzoMethodTurbulence.cpp
/// @author <NAME> (<EMAIL>)
/// @author <NAME> (<EMAIL>)
/// @date Wed Jul 23 00:31:04 UTC 2014
/// @brief Implements the EnzoMethodTurbulence class
#include "cello.hpp"
#include "enzo.hpp"
#inclu... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... |
/*
Author: <NAME>
Contains the non-uniform acceptance correction.
Primarily used with <AliGFW> framework.
If used, modified, or distributed, please aknowledge the original author of this code.
*/
#include "AliGFWWeights.h"
#include "TMath.h"
AliGFWWeights::AliGFWWeights():
fDataFilled(kFALSE),
fMCFilled(kFALSE),
... |
/*
// Copyright (C) 2018-2019 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
#include <nstd/Socket/Server.hpp>
#include <nstd/Socket/Socket.hpp>
#include <nstd/MultiMap.hpp>
#include <nstd/PoolList.hpp>
#include <nstd/HashSet.hpp>
#include <nstd/Time.hpp>
#include <nstd/Buffer.hpp>
#include <nstd/Error.hpp>
#include <nstd/Mutex.hpp>
#include <nstd/Future.hpp>
class Server::Private
{
public:
... |
// system include files
#include <fstream>
#include <iostream>
#include <map>
#include <memory>
#include <string>
#include <vector>
// user include files
#include "CommonTools/UtilAlgos/interface/TFileService.h"
#include "DataFormats/ForwardDetId/interface/HGCalDetId.h"
#include "DataFormats/HGCDigi/interface/HGCDigiC... |
#include "SrcUpdater.h"
#define IMAGECLASS IdeImg
#define IMAGEFILE <ide/ide.iml>
#include <Draw/iml_header.h>
bool CopyFolder(const char *dst, const char *src, Progress *pi);
bool LoadVarFile(const char *name, VectorMap<String, String>& _var);
bool HasSvn(){
String tmp;
return Sys("svn",tmp)>=0;
}
InstallWizard:... |
// Copyright 2020 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <fbl/ref_counted_upgradeable.h>
#include <vm/page_queues.h>
#include <vm/vm_cow_pages.h>
PageQueues::PageQueues() {
fo... |
#include "GNSSambres.hpp"
#include "biasSINEX.hpp"
#include <iomanip>
using std::setprecision;
using std::setw;
using std::setfill;
map<E_AmbTyp,map<E_Sys,map<string,GinAR_bia>>> RECbialist;
map<E_AmbTyp,map<SatSys,GinAR_bia>> SATbialist;
/** Output GPGGA or modified GPGGA messages */
void gpggaout(
string out... |
/*
* Copyright 2008-2011, <NAME>, <EMAIL>.
* Copyright 2003-2008, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*
* Copyright 2002, <NAME>. All rights reserved.
* Copyright 2001, <NAME>. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
#include "elf_symbol_lookup... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.