text stringlengths 54 60.6k |
|---|
<commit_before>#ifdef ANALYSIS
#include <stdio.h> /* printf */
#include <math.h>
#include "analysis.h"
#include "../io.h"
#ifdef MPI_CHOLLA
#include "../mpi_routines.h"
#endif
void Grid3D::Compute_Phase_Diagram(){
int n_temp, n_dens;
Real temp_min, temp_max, dens_min, dens_max;
Real log_temp_min, log_... |
<commit_before>//===--- ImageInspectionELF.cpp - ELF image inspection --------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#pragma once
#include "fwd.hpp"
#include <string>
#include <vector>
#include <map>
#include <boost/filesystem/path.hpp>
#include <boost/variant/variant.hpp>
#include <boost/optional.hpp>
namespace configure {
class ShellFormatter
{
protected:
Build const& _build;
public:
ShellFormatter(Buil... |
<commit_before>/*
* KernelConn.cpp
*
* Created on: Aug 6, 2009
* Author: gkenyon
*/
#include "KernelConn.hpp"
#include <assert.h>
#include "../io/io.h"
namespace PV {
KernelConn::KernelConn()
{
initialize_base();
}
KernelConn::KernelConn(const char * name, HyPerCol * hc, HyPerLayer * pre,
HyPerL... |
<commit_before>#include<bits/stdc++.h>
#define uint unsigned int
using namespace std;
template<size_t Sigma>
class SAM{
public:
struct Node{
Node *next,*ch[Sigma];
uint max;
Node(const int maxx):ch(),next(NULL),max(maxx){}
inline uint getMin(){
return next->max+1;
}
}*root,*last;
inline void pr... |
<commit_before>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
/* -------------------------------------------------------------------------
ATS
License: see $ATS_DIR/COPYRIGHT
Author: Ethan Coon
Interface for the Coordinator. Coordinator is basically just a class to hold
the cycle driver, ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/isteps/istep10/call_proc_build_smp.C $ ... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. 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. Redistri... |
<commit_before>#include <string>
#include <iostream>
using namespace std
#include "StudentTestScores.h"
#include "StudentTestScores.cpp"
int main(){
return 0;
}
<commit_msg>Update test.cpp<commit_after>#include <string>
#include <iostream>
using namespace std;
#include "StudentTestScores.h"
int main(){
StudentTe... |
<commit_before>//
// Copyright (c) 2017 The Khronos Group 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 b... |
<commit_before>/*
* Copyright (c) 2015, 2016, 2017, 2018, 2019, 2020, Intel Corporation
*
* 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
... |
<commit_before>/*
The MIT License
Copyright (c) 2011 by Jorrit Tyberghein
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... |
<commit_before>// This file is part of playd.
// playd is licensed under the MIT licence: see LICENSE.txt.
/**
* @file
* Implementation of the SndfileAudioSource class.
* @see audio/audio_source.hpp
*/
#ifndef NO_SNDFILE
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <map>
... |
<commit_before>//*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// DESCRIPTION:
// Contains implementation of class ossimPreferences. This class provides
// a static keywordlist for global preferences. Objects needing access to
// applicatio... |
<commit_before>#include "../../include/carregador/carregador.h"
Carregador::Carregador(int argc, char* argv[])
{
this->setFileNames(argv);
this->loadInstructions();
this->openIOFiles();
this->processObjectFile();
}
Carregador::~Carregador()
{
// Sem preocupações com o close
fileObject.close();... |
<commit_before>/*
(c) Copyright 2001-2011 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by Denis Oliver Kropp <dok@directfb.org>,
Andreas Hundt <andi@fischlustig.de>,
Sven ... |
<commit_before>#ifdef _MSC_VER
// to avoid long name warnings
#pragma warning(disable:4786)
#endif
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <utils/compatibility.h>
#include <utils/eoParam.h>
#include "FileMonitor.h"
using namespace std;
namespace dim
{
namespace utils
{
void F... |
<commit_before>#include "catalog_queries.h"
#include <cstdlib>
#include "catalog.h"
#include "logging.h"
using namespace std;
namespace catalog {
SqlStatement::SqlStatement(const sqlite3 *database, const std::string &statement) {
Init(database, statement);
}
SqlStatement::~SqlStatement() {
last_error_code_ = ... |
<commit_before>/* -*-c++-*-
*
* Copyright (C) 2006-2007 Mathias Froehlich
*
* 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 option) any lat... |
<commit_before>/* File sections:
* Service: constructors, destructors
* Chain: functions directly related to the building and analysis of chains
* Solution: functions directly related to the solution of a (sub)problem
* Utility: advanced member access such as searching and counting
* List: maintenance of lists or... |
<commit_before>///
// CrabLlvm -- Abstract Interpretation-based Analyzer for LLVM bitcode
///
#include "llvm/LinkAllPasses.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IRReader/IRReader.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Supp... |
<commit_before>//===-- llc.cpp - Implement the LLVM Native Code Generator ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>//===-lto.cpp - LLVM Link Time Optimizer ----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>#include <algorithm>
#include <fstream>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
#include <absl/strings/str_split.h>
#include <gflags/gflags.h>
#include <prjxray/memory_mapped_file.h>
#include <prjxray/xilinx/xc7series/bitstream_reader.h>
#include <prjxray/xilinx/xc7se... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: accessiblefactory.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2007-07-18 10:06:14 $
*
* The Contents of this file... |
<commit_before>/** \file oai_pmh_harvester.cc
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2017,2018 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affe... |
<commit_before>//
// media-stream.cpp
// libndnrtc
//
// Copyright 2013 Regents of the University of California
// For licensing details see the LICENSE file.
//
// Author: Peter Gusev
//
#include "media-stream.h"
#include "video-thread.h"
#include "audio-thread.h"
#include "ndnrtc-namespace.h"
using namespace ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>#include <assert.h>
#include <cppdom/cppdom.h>
#include <testHelpers.h>
/**
* Test application to test creating a document from scratch
*/
int main()
{
// Create the basic context and document to work on
// - All nodes need to have an associated context
// we will just define one here at th... |
<commit_before>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2008-2009 Patrick Spendrin <ps_ml@gmx.de>
//
#include "GeoRenderer... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <android/log.h>
#include <jni.h>
#include <tango-api/application-interface.h>
#include <tango-api/vio-interface.h>
#ifdef __cplusplus
extern "C"
{
#endif
application_handle_t *app_handler;
#define LOG_TAG "JJ"
#define LOG(...) __android_... |
<commit_before>//Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "utils/linearAlg2D.h" //Distance from point to line.
#include "MergeInfillLines.h"
namespace cura
{
MergeInfillLines::MergeInfillLines(ExtruderPlan& plan) : extruder_plan(plan)
{
... |
<commit_before>#include <iostream>
#include <map>
#include <execinfo.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <chrono>
#include <thread>
#include <cstdlib>
#include "fscore.h"
using namespace fs;
using namespace std;
using namespace chrono;
// using SdlArena = MemoryArena<Allocator<Hea... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestSQLiteDatabase.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>/**
The goal of this tutorial is to implement, in Tiramisu, a code that is
equivalent to the following
for (int i = 0; i < 10; i++)
buf0[i] = 3 + 4;
Tiramisu is a code generator, therefore the goal of a Tiramisu program is to
generate code that is supposed to be called from another prog... |
<commit_before>//===--- ConstraintSimplificationTests.cpp --------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>/*
QWebSockets implements the WebSocket protocol as defined in RFC 6455.
Copyright (C) 2013 Kurt Pattyn (pattyn.kurt@gmail.com)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; e... |
<commit_before>#include "warnings-disable.h"
WARNINGS_DISABLE
#include <QtTest/QtTest>
WARNINGS_ENABLE
#include "../qtest-platform.h"
#include "app-cmdline.h"
#include "persistentmodel/persistentstore.h"
#include <TSettings.h>
extern "C" {
#include "optparse.h"
WARNINGS_DISABLE
#include "warnp.h"
WARNINGS_ENABLE
}... |
<commit_before>#if 0
#include "Format.h"
//#include "Format_memory.h"
//#include "Format_ostream.h"
//#include "Format_pretty.h"
//#include "Format_string.h"
//#include <cstdio>
//#include <iosfwd>
//#include <memory>
//#include <string>
//#include <string_view>
//#include <type_traits>
int main() {}
#else
#define HAS... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <thread>
#include <chrono>
#include "lcomm/lcomm.h"
//! This test is a simple ping-pong test for the endpoint system.
//! It implements two endpoints (each one with an associated subscriber)
//! bound to local client ... |
<commit_before>#include <iostream>
#include <sstream>
#include <string>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/socket.h>
#include <string.h>
#include <unistd.h>
#ifdef __FreeBSD__
#include <netinet/in.h>
#endif
#include "MailServer.hh"
namespace sieve {
MailServer MailServer::create(std::string ho... |
<commit_before>#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <utility>
#include "API.h"
#include "Proxy.h"
using namespace java::lang;
using namespace java::io;
using namespace java::util;
int main(int,char**)
{
JavaVM* vm;
void* envPtr;
JavaVMInitArgs vm_args;
memset(&vm_args, 0, sizeof... |
<commit_before>//
// gsl-lite is based on GSL: Guidelines Support Library,
// https://github.com/microsoft/gsl
//
// Copyright (c) 2015 Martin Moene
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITH... |
<commit_before>/*
* This file is a part of Xpiks - cross platform application for
* keywording and uploading images for microstocks
* Copyright (C) 2014-2018 Taras Kushnir <kushnirTV@gmail.com>
*
* 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 ... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include "zbase/lo... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, 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... |
<commit_before>static const double cm=1;
static const double cm3=cm*cm*cm;
static const double volt=1;
static const double C=1; // Coulomb
static const double e=1.6e-19*C; // electron charge
static const double epsilon0=8.854187817e-14*C/volt/cm; // vacuum permittivity
// https://link.springer.com/chapter/10.1007/10832... |
<commit_before>
#include "gtest/gtest.h"
#include "Buffer.h"
#include "Timing.h"
#include "Log.h"
#include "Network.h"
#include "Socket.h"
#include "TcpServer.h"
#include "TcpClientFactory.h"
#include "TcpClient.h"
#define IP_FOR_TESTING "127.0.0.1"
#define PORT_FOR_TESTING "1703"
namespace {
class EchoClient : pub... |
<commit_before>#ifndef __STDAIR_BAS_BASCOMPARSERHELPERTYPES_HPP
#define __STDAIR_BAS_BASCOMPARSERHELPERTYPES_HPP
// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <string>
#include <sstre... |
<commit_before>// Copyright ***********************************************************
//
// File ecmdQueryUser.C
//
// IBM Confidential ... |
<commit_before>#ifndef STAN_MATH_PRIM_MAT_FUN_ORDERED_CONSTRAIN_HPP
#define STAN_MATH_PRIM_MAT_FUN_ORDERED_CONSTRAIN_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/meta/index_type.hpp>
#include <cmath>
namespace stan {
namespace math {
/**
* Return an increasing ordered vector derived ... |
<commit_before>/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <boost/algorithm/string.hpp>
#include <boost/range.hpp>
#include <boost/tokenizer.hpp>
#include <SOIL.h>
#include "ObjLoaderUtils.hpp"
#include "MtlLoader.hpp"
#include "../../DebugUtils.h"
using namespace boost;
using... |
<commit_before>/*************************************************************************
*
* $RCSfile: swmodalredlineacceptdlg.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2004-05-10 16:30:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>/** Handles the hardware level functions of the SdFat library
*
* SdCard.cpp
* Created 1-5-18 By: Smitty
*
* A longer description.
*/
#include "SdCard.hpp"
#include "../../Controller/Logger/Logger.hpp"
//FIXME: rip out all the demo code and put into functions
/**
* @brief SdCard constructo... |
<commit_before>// MapMaker (c) 2016 Andrey Fidrya. MIT license. See LICENSE for more information.
#include <QSplitter>
#include <QMessageBox>
#include <QCloseEvent>
#include <QTimer>
#include <QMenuBar>
#include <QFileDialog>
#include <QStandardPaths>
#include <QUndoStack>
#include "MainWindow.h"
#include "MapView.h"... |
<commit_before>#ifndef STAN_MATH_REV_MAT_FUN_CHOLESKY_DECOMPOSE_HPP
#define STAN_MATH_REV_MAT_FUN_CHOLESKY_DECOMPOSE_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/fun/typedefs.hpp>
#include <stan/math/prim/mat/fun/cholesky_decompose.hpp>
#include <stan/math/rev/scal/fun/value_of_rec.hpp>... |
<commit_before>/*
* Copyright 2015 Aldebaran
*
* 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 ... |
<commit_before>#include "ConnectedComps.h"
#include <stdlib.h>
#include <math.h>
#include <iostream>
namespace avg {
int Run::s_LastLabel= 0;
Run::Run(int row, int start_col, int end_col, int color){
m_Row = row;
assert(end_col>=start_col);
m_StartCol = start_col;
m_EndCol = end_col;
m_Color = ... |
<commit_before>/*
MIT License
Copyright (c) 2016 Mark Allender
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, cop... |
<commit_before>#include "MapManager.h"
#include "UnitManager.h"
#include "DetectionManager.h"
#include "BaseManager.h"
//#include <algorithm>
BWAPI::TilePosition startPos;
Neolib::MapManager mapManager;
struct sortLocations {
static bool fromStartPos(const BWEM::Base *lhs, const BWEM::Base *rhs) {
return lhs->L... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2014 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before> /*************************************************************************
*
* $RCSfile: accselectionhelper.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: mib $ $Date: 2002-08-15 09:29:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>// strip chart example
// Author: Rene Brun
void seism() {
TStopwatch sw; sw.Start();
//set time offset
TDatime dtime;
gStyle->SetTimeOffset(dtime.Convert());
TCanvas *c1 = new TCanvas("c1","Time on axis",10,10,1000,500);
c1->SetFillColor(42);
c1->SetFrameFillColor(33);
c1->S... |
<commit_before>// example of macro to read data from an ascii file and
// create a root file with a Tree.
// see also a variant in cernbuild.C
// Author: Rene Brun
void staff() {
struct staff_t {
Int_t Category;
UInt_t Flag;
Int_t Age;
Int_t Service;... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkOBJImporterInternals.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.... |
<commit_before>// Steer TRD QA train for Reconstruction (Clusterizer, Tracking and PID).
//
// Usage:
// run.C(optList, files, nev, first, runNo, ocdb_uri, grp_uri)
//
// optList : "ALL" [default] or one/more of the following:
// "EFF" : TRD Tracking Efficiency
// "EFFC" : TRD Tracking Efficiency Combine... |
<commit_before>#include "Lua.h"
#include "Common/Common.h"
#include <sstream>
#include <assert.h>
namespace Lua
{
//-----------------------------------------------------------------------------------------
// Class: State
// Lua state wrapper
//
// Creates a new state
State::State()
{
// Create a new Lua st... |
<commit_before>// Convert folder with binary data to cpp data
#include <stdio.h>
#include <string>
#include <algorithm>
#include <direct.h>
#include <vector>
#include <limits.h>
#include <stdlib.h>
#include <assert.h>
#include "tinydir.h"
#include "lz4.h"
void ReplaceAll(std::string& str, const std::string& from, c... |
<commit_before>#include "psi_storm.h"
namespace AI {
class MindControlTargetFinderProc: public scbw::UnitFinderCallbackMatchInterface {
private:
const CUnit *caster;
bool isUnderAttack;
public:
MindControlTargetFinderProc(const CUnit *caster, bool isUnderAttack)
: caster(caster), isUnd... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX64M, RX65x, RX71M, RX72M グループ・CMTW 定義
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018, 2020 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hir... |
<commit_before><commit_msg>a0c8a98e-2e4e-11e5-9284-b827eb9e62be<commit_after><|endoftext|> |
<commit_before><commit_msg>b2d07332-2e4e-11e5-9284-b827eb9e62be<commit_after><|endoftext|> |
<commit_before>void tarjanRec(AdjacencyList& adj, int u,
int& group, vi& node2group, vi& node2lowgroup,
vector<bool>& onStack, stack<int>& s,
vi& rep){
node2group[u] = group;
node2lowgroup[u] = group;
group++;
s.push_back(u);
onStack[u] = true;
for(auto p: adj[u]){
int v = p.fi... |
<commit_before><commit_msg>Delete 2.cpp<commit_after><|endoftext|> |
<commit_before><commit_msg>knn: abstracted the main parts of the program into separate functions in the KNearestNeighbors namespace<commit_after><|endoftext|> |
<commit_before>#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include "gin/raw_linear_allocator_impl.h"
// Nothing here yet, just the entry point
<commit_msg>Cleanup bad include<commit_after>#define CATCH_CONFIG_MAIN
#include "catch.hpp"
// Nothing here yet, just the entry point
<|endoftext|> |
<commit_before>// Moon Phase Calendar for Arduino, using Pro Trinket 3V/12MHz
// Test support
#include "arduino.hpp"
// Arduino application
#include "../arduino/MoonPhaseCalendar/MoonPhaseCalendar.ino"
// Test program
#include "lest.hpp"
#include <iomanip>
#include <ostream>
using pause_ms = int;
template< typena... |
<commit_before>#include "GameProcess.h"
#include "Object.h"
#include "Engine.h"
#include "World.h"
#include "App.h"
#include "ToolsCamera.h"
#include "ControlsApp.h"
#include "MathLib.h"
#include "Game.h"
#include "Editor.h"
#include "Input.h"
#include "BlueRayUtils.h"
using namespace MathLib;
CGameProcess::CGamePro... |
<commit_before>#include "GameProcess.h"
#include "Object.h"
#include "Engine.h"
#include "World.h"
#include "App.h"
#include "ToolsCamera.h"
#include "ControlsApp.h"
#include "MathLib.h"
#include "Game.h"
#include "Editor.h"
#include "Input.h"
#include "BlueRayUtils.h"
using namespace MathLib;
CGameProcess::CGamePro... |
<commit_before>#include <iostream>
#include <list>
#include <vector>
#include <type_traits>
#include <algorithm>
using namespace std;
#define DEF_SIZE 20
template <typename T>
class HashMap
{
public:
HashMap(); //Default coonstructor
HashMap(int size); //Define size
void insert(const T& data);
bool search(con... |
<commit_before>/*-
* Copyright (c) 2016 Frederic Culot <culot@FreeBSD.org>
* 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 copyr... |
<commit_before>//-----------------------------------------------------------------------------
// MurmurHash3 was written by Austin Appleby, and is placed in the public
// domain. The author hereby disclaims copyright to this source code.
#include "MurmurHash3.h"
// Note - The x86 and x64 versions do _not_ prod... |
<commit_before>/*
* This file is part of openfx-arena <https://github.com/olear/openfx-arena>,
* Copyright (C) 2015, 2016 FxArena DA
* Copyright (C) 2016 INRIA
*
* openfx-arena is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as published
* ... |
<commit_before>#include <Windows.h>
#include <stdio.h>
// Entry point
BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
// Disable calls for DLL_THREAD_ATTACH and DLL_THREAD_DETACH
DisableThreadLibraryCalls(hModule);
}
return TRUE;
}
// Called when the dll i... |
<commit_before>/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2013 The PHP Group |
... |
<commit_before>#include <math.h>
#include <string>
#include "io.hh"
#include "str.hh"
#include "conf.hh"
#include "HmmSet.hh"
#include "FeatureGenerator.hh"
#include "PhnReader.hh"
#include "Recipe.hh"
#include "SpeakerConfig.hh"
using namespace aku;
#define TINY 1e-10
std::string save_summary_file;
int info;
flo... |
<commit_before>#include "engine/fs/file_system.h"
#include "engine/array.h"
#include "engine/base_proxy_allocator.h"
#include "engine/blob.h"
#include "engine/fs/disk_file_device.h"
#include "engine/fs/file_system.h"
#include "engine/mt/lock_free_fixed_queue.h"
#include "engine/mt/task.h"
#include "engine/mt/transacti... |
<commit_before>#ifndef ENTT_ENTITY_VIEW_PACK_HPP
#define ENTT_ENTITY_VIEW_PACK_HPP
#include <tuple>
#include <type_traits>
#include <utility>
#include "fwd.hpp"
#include "utility.hpp"
namespace entt {
/**
* @brief View pack.
*
* The view pack allows users to combine multiple views into a single iterable
* obj... |
<commit_before><commit_msg>/.. at the end of paths should also be removed, used in conjunction with ORIGIN<commit_after><|endoftext|> |
<commit_before><commit_msg>Resolved memory bug, hopefully not by adding another one.<commit_after><|endoftext|> |
<commit_before>/*
* mod.cpp
*
* Created on: August, 2014
* Author: Adrien Perkins
*/
#include "common.h"
#include "serial_port.h"
#include "read_thread.h"
#include "wifly_thread.h"
#include "mod.h"
#include "dirk_thread.h"
using std::string;
using namespace std;
// variable declarations
bool verbose = f... |
<commit_before>#include <imageprocessing/ComponentTree.h>
#include <imageprocessing/Mser.h>
#include <sopnet/features/Overlap.h>
#include <util/ProgramOptions.h>
#include "ComponentTreeConverter.h"
#include "StackSliceExtractor.h"
static logger::LogChannel stacksliceextractorlog("stacksliceextractorlog", "[StackSliceE... |
<commit_before>//===-- CommandObjectDisassemble.cpp ----------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* InlineWriter.cpp
*
* Created on: Nov 16, 2018
* Author: Aron Helser aron.helser@kitware.com
*/
#include "InlineWriter.h"
#include "InlineReader.h"
#include "InlineWr... |
<commit_before>#include "MessageTransport.h"
void MessageTransport::Init(uint64_t nodeID_, Endpoint& endpoint_)
{
nodeID = nodeID_;
endpoint = endpoint_;
server.Init(endpoint.GetPort());
server.SetTransport(this);
}
uint64_t MessageTransport::GetNodeID()
{
return nodeID;
}
Endpoint& MessageTransport::GetEndpoin... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2012 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, ... |
<commit_before>/*
* Copyright (C) 2019 pengjian.uestc @ gmail.com
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.