text stringlengths 54 60.6k |
|---|
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>#include <xiot/X3DFIEncodingAlgorithms.h>
#include <iostream>
#include <cmath>
#include "zlib.h"
#include <xiot/FITypes.h>
#include <xiot/FIConstants.h>
#include <xiot/X3DParseException.h>
#include <xiot/X3DFICompressionTools.h>
namespace XIOT {
std::string QuantizedzlibFloatArrayAlgorithm::decodeT... |
<commit_before>#include "stdafx.h"
#include "helpers.h"
#include "render_to_window.h"
static VkBool32 debug_report_callback(
VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
VkDebugUtilsMessageTypeFlagsEXT messageTypes,
const VkDebugUtilsMessengerCallbackDataEXT* pCal... |
<commit_before>// Copyright (c) 2011, Cornell 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,
// ... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2000 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>/**
* @file ex6.cpp
* @author Fabian Wegscheider
* @date Jun 20, 2017
*/
#include <iostream>
#include <fstream>
#include <boost/program_options.hpp>
#include <boost/heap/fibonacci_heap.hpp>
#include <boost/timer/timer.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/graph_trai... |
<commit_before>#include "application.h"
#include <inttypes.h>
SYSTEM_MODE(MANUAL);
SYSTEM_THREAD(ENABLED);
SerialLogHandler traceLog(LOG_LEVEL_TRACE);
static TCPServer tcpServer = TCPServer(6666);
static TCPClient tcpClient;
// Toggle LED pin to see that application loop is not blocked.
// You could use D7 when tes... |
<commit_before>#include <Graphics.h>
#include <Surface.h>
#include "Render.h"
namespace nme
{
static bool IsPOW2(int inX)
{
return (inX & (inX-1)) == 0;
}
enum { EDGE_CLAMP, EDGE_REPEAT, EDGE_POW2 };
#define GET_PIXEL_POINTERS \
int frac_x = (mPos.x & 0xff00) >> 8; \
int frac_... |
<commit_before>// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#define FML_USED_ON_EMBEDDER
#include <cstdlib>
#include "flutter/assets/asset_manager.h"
#include "flutter/assets/directory_asset_bundle.... |
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//... |
<commit_before>/*
* IRC interfaces for La Cogita IRC chatbot
* Copyright (C) 2007 Linas Vepstas <linas@linas.org>
*
* 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... |
<commit_before>// OpenQASM example, executes an OpenQASM circuit read from the input stream or
// a file (if specified)
// Source: ./examples/qasm/qasm.cpp
#include <iostream>
#include "qpp.h"
int main(int argc, char** argv) {
using namespace qpp;
QCircuit qc;
if (argc < 2)
// read the circuit f... |
<commit_before>#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <iostream>
#include <openssl/ssl.h>
#include "aktualizr_secondary_config.h"
#include "logging.h"
namespace bpo = boost::program_options;
void check_info_options(const bpo::options_description &description, const bpo::varia... |
<commit_before>/*
openGCM, geometric constraint manager
Copyright (C) 2012 Stefan Troeger <stefantroeger@gmx.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2... |
<commit_before>/** @file Tests to make sure that invalid certificates fail to connect */
#include "catch.hpp"
#include <communique/Client.h>
#include <communique/Server.h>
#include <thread>
#include <iostream>
#include "testinputs.h"
SCENARIO( "Test that server setup fails when given invalid security files", "[secur... |
<commit_before>/**
* SD Card Read/Write Test
* 4/5/2017
*
**/
//#include <stdlib.h>
//#include <stdio.h>
#include "mbed.h"
#include "pinout.h"
#include "SDFileSystem.h"
#include "imu.h"
#include "GPS.h"
#include "QEI.h"
#include "motor.h"
#include "PwmIn.h"
/* map structure */
typedef str... |
<commit_before>/*
* ===============================================================
* Description: Reachability program.
*
* Created: Sunday 23 April 2013 11:00:03 EDT
*
* Author: Ayush Dubey, Greg Hill
* dubey@cs.cornell.edu, gdh39@cornell.edu
*
* Copyright (C) 2013, Cor... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2017 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>#include <cppcutter.h>
#include "tuishogi.cpp"
namespace tuishogi {
void
test_showState(void)
{
// Arrange
using namespace osl;
std::stringbuf string_out;
std::streambuf* std_out = std::cout.rdbuf(&string_out);
NumEffectState state((SimpleState(HIRATE)));
const char* expected = "\
P1-KY-KE... |
<commit_before>#include "testsettings.hpp"
#include <realm/util/optional.hpp>
#include "test.hpp"
using namespace realm::util;
TEST(Optional_DefaultConstructor)
{
Optional<int> x{};
CHECK(!bool(x));
}
TEST(Optional_NoneConstructor)
{
Optional<int> x{realm::none};
CHECK(!bool(x));
}
TEST(Optional_V... |
<commit_before>#include <babylon/GL/framebuffer_canvas.h>
#include <babylon/babylon_imgui/babylon_logs_window.h>
#include <babylon/babylon_imgui/babylon_studio.h>
#include <babylon/core/filesystem.h>
#include <babylon/core/system.h>
#include <babylon/inspector/components/actiontabs/action_tabs_component.h>
#include <ba... |
<commit_before>/**
* @file NaoController.cpp
*
* @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a>
* @author <a href="mailto:mellmann@informatik.hu-berlin.de">Mellmann, Heinrich</a>
* @breief Interface for the real robot for both cognition and motion
*
*/
#include "NaoController.h"
#include <alg... |
<commit_before>#include <MicroBit.h>
#include "CalliopeDemo.h"
extern MicroBit uBit;
void onButtonA(MicroBitEvent event) {
(void) event;
uBit.display.print("A");
}
void onButtonB(MicroBitEvent event) {
(void) event;
uBit.display.print("B");
}
void onButtonAB(MicroBitEvent event) {
(void) event;
... |
<commit_before>/*
* Copyright (c) 2015, Ford Motor Company
* 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
*... |
<commit_before>#include "WorldEditorScene.hpp"
#include <imgui\imgui.h>
#include <Systems/EntityManager.hpp>
#include <Systems/AssetsAndComponentRelationsSystem.hpp>
#include <Systems/PhysicsSystem.hpp>
#include <AssetManagement/AssetManager.hh>
#include <Components/CameraComponent.hpp>
#include <Threads/ThreadManage... |
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved.
#include "arch/runtime/message_hub.hpp"
#include <math.h>
#include <unistd.h>
#include "config/args.hpp"
#include "arch/runtime/event_queue.hpp"
#include "arch/runtime/thread_pool.hpp"
#include "logger.hpp"
// Set this to 1 if you would like some ... |
<commit_before>// Copyright (c) 2011, Robert Escriva
// 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,
// ... |
<commit_before>// **************************************************************************
// This file is property of and copyright by the ALICE HLT Project *
// ALICE Experiment at CERN, All rights reserved. *
// ... |
<commit_before>/*
* Copyright (c) 2003-2004 The Regents of The University of Michigan
* 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 c... |
<commit_before>#include "cLuaCommandBinder.h"
#include "cMCLogger.h"
#include "cPlayer.h"
#include "cPlugin_Lua.h"
#include "tolua++.h"
extern std::vector<std::string> StringSplit(std::string str, std::string delim);
extern bool report_errors(lua_State* lua, int status);
cLuaCommandBinder::cLuaCommandBinde... |
<commit_before>#include "graph.h"
#include "util.h"
EdgeEndStar::EdgeEndStar(){
ptInAreaLocation[0]=Location::UNDEF;
ptInAreaLocation[1]=Location::UNDEF;
edgeMap=new map<EdgeEnd*,void*,EdgeEndLT>();
edgeList=new vector<EdgeEnd*>();
}
EdgeEndStar::~EdgeEndStar(){
delete edgeMap;
delete edgeList;
}
/**
* Insert... |
<commit_before>#include "estimator/atmospheric_location_estimator.hpp"
#include "protocol/messages.hpp"
#include "unit_config.hpp"
AtmosphericLocationEstimator::AtmosphericLocationEstimator(Communicator& communicator)
: locationMessageStream(communicator, 5) {
}
LocationEstimate AtmosphericLocationEstimator::upda... |
<commit_before>
//#include <OGRE/ExampleApplication.h>
//#include <OGRE/OgreLogManager.h>
#include "Actions/Action.h"
#include "Actions/ActionPump.h"
#include "Application/Application.h"
#include "Common/Common.h"
#include "Input/Input.h"
#include "Networking/Network.h"
#include "Graphics/Graphics.h"
#include <iostrea... |
<commit_before>/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
==... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: toyLeg_example.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>/*
T0 DA for online calibration
Contact: Michal.Oledzki@cern.ch
Link: http://users.jyu.fi/~mioledzk/
Run Type: PHYSICS
DA Type: MON
Number of events needed: 500000
Input Files: inPhys.dat, external parameters
Output Files: daPhys.root, to be exported to the DAQ FXS
Trigger types used: PHYSICS_EVENT
--... |
<commit_before>#include "src/graphics.h"
#include "src/math.h"
#include <stdlib.h>
#include <sys/timeb.h>
typedef struct
{
Vector4f position;
Vector4f target;
Vector4f up;
Vector4f right;
Matrix4f view;
Matrix4f projection;
} Camera;
// Projection test
void testProjection(int scrWidth, int sc... |
<commit_before>#ifndef _CCTAG_DISTANCE_HPP_
#define _CCTAG_DISTANCE_HPP_
#include <cctag/geometry/Ellipse.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/math/special_functions/pow.hpp>
#include <boost/units/cmath.hpp>
#include <boost/foreach.hpp>
#include <boost/math/special_functions/pow.hpp>
namesp... |
<commit_before>// Copyright 2018 The Ripple Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
<commit_before>/****************** <VPR heading BEGIN do not edit this line> *****************
*
* VR Juggler Portable Runtime
*
* Original Authors:
* Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira
*
* -----------------------------------------------------------------
* File: $RC... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
<commit_before>/*
* Copyright (C) 2015 Cloudius Systems, Ltd.
*/
#include <seastar/core/thread.hh>
#include "core/do_with.hh"
#include "cql_test_env.hh"
#include "cql3/query_processor.hh"
#include "cql3/query_options.hh"
#include "core/distributed.hh"
#include "core/shared_ptr.hh"
#include "utils/UUID_gen.hh"
#inclu... |
<commit_before>#ifndef CMDSTAN_WRITE_PROFILING_HPP
#define CMDSTAN_WRITE_PROFILING_HPP
#include <stan/math/rev/core/profiling.hpp>
#include <stan/callbacks/writer.hpp>
#include <stan/version.hpp>
#include <string>
#include <vector>
namespace cmdstan {
void write_profiling(stan::callbacks::writer& writer,
... |
<commit_before>#ifndef CMDSTAN_WRITE_PROFILING_HPP
#define CMDSTAN_WRITE_PROFILING_HPP
#include <stan/math/rev/core/profiling.hpp>
#include <stan/callbacks/writer.hpp>
#include <stan/version.hpp>
#include <string>
#include <vector>
namespace cmdstan {
/**
* Writes the data from the map of profiles in a CSV format
... |
<commit_before>#ifndef VEXCL_UTIL_HPP
#define VEXCL_UTIL_HPP
/*
The MIT License
Copyright (c) 2012 Denis Demidov <ddemidov@ksu.ru>
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 restric... |
<commit_before>//
// The MIT License (MIT)
//
// Copyright (c) 2016 Tag Games Limited
//
// 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 limitat... |
<commit_before>#include "vm.hpp"
#include "console.hpp"
#include "object_utils.hpp"
#include "builtin/array.hpp"
#include "builtin/class.hpp"
#include "builtin/fsevent.hpp"
#include "builtin/string.hpp"
#include "builtin/thread.hpp"
#include "dtrace/dtrace.h"
#include "util/file.hpp"
#include "util/logger.hpp"
#in... |
<commit_before>/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
... |
<commit_before>/*
This file is part of KAddressbook.
Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
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 Licen... |
<commit_before><commit_msg>[Backport] Aura: enable the touch events dispatch in DesktopRootWindowHostX11<commit_after><|endoftext|> |
<commit_before><commit_msg>ATO-418-Updated test macro<commit_after><|endoftext|> |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, fre... |
<commit_before>/*
*
* Copyright 2018 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>// Copyright (c) 2017 The Khronos Group Inc.
// Copyright (c) 2017 Valve Corporation
// Copyright (c) 2017 LunarG, 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
//
/... |
<commit_before>// 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 "base/basictypes.h"
#include "base/json/json_reader.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/devtools/rend... |
<commit_before>// Copyright (c) 2011, Cornell 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,
// ... |
<commit_before>#include "deconvolve.hpp"
#include "least-sq.hpp"
#include "util.hpp"
#include "regularizer.hpp"
#include <lbfgs.h>
namespace deconvolution{
template <int D>
struct DeconvolveData {
};
template <int D>
static double deconvolveEvaluate(
void* instance,
const double* dualVars,
... |
<commit_before>// Copyright (C) 2016 xaizek <xaizek@openmailbox.org>
//
// This file is part of uncov.
//
// uncov 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, or
/... |
<commit_before>/*
* Diameter.cpp
*
* Created on: 19.02.2014
* Author: Daniel Hoske, Christian Staudt
*/
#include <numeric>
#include "Diameter.h"
#include "Eccentricity.h"
#include "../graph/BFS.h"
#include "../graph/Dijkstra.h"
#include "../components/ConnectedComponents.h"
#include "../structures/Partitio... |
<commit_before>// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/web_view_manager.h"
#include "atom/browser/atom_browser_context.h"
#include "content/public/browser/render_process_host.h"
namespace atom {
Web... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
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 o... |
<commit_before>
#pragma once
#include "gmock/gmock.h"
#include "ksp_plugin/manœuvre.hpp"
namespace principia {
namespace ksp_plugin {
template <typename InertialFrame, typename Frame>
class MockManœuvre : public Manœuvre<InertialFrame, Frame>{
public:
MockManœuvre(
Force const& thrust,
Mass const& in... |
<commit_before>#include <cmath>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <map>
using namespace std;
const int element_shape_x = 5;
const int element_shape_y = 6;
const int mpi_shape_x = 4;
const int mpi_shape_y = 3;
const int shape_x = element_shape_x * mpi_shape_x;
const int shape_y = eleme... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2006-2007 Matthias Kretz <kretz@kde.org>
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 prog... |
<commit_before>/*
* Copyright 2015 Milian Wolff <mail@milianw.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later... |
<commit_before>/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/declaration.h"
#include "kernel/type_checker.h"
#include "kernel/instantiate.h"
#include "library/trace.h"
#include "library... |
<commit_before>//
// IOSOpenGLContextManager.cpp
// MWorksCore
//
// Created by Christopher Stawarz on 2/14/17.
//
//
#include "IOSOpenGLContextManager.hpp"
#include "OpenGLUtilities.hpp"
//
// The technique for using a CAEAGLLayer-backed UIView for displaying OpenGL ES content is taken from
// Apple's "Real-tim... |
<commit_before>/* packet_test.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 06 Dec 2013
FreeBSD-style copyright and disclaimer apply
Packet sending and timing test.
*/
#include "client.h"
#include "provider.h"
#include "test_utils.h"
#include <vector>
#include <string>
#... |
<commit_before>/**
* @file
*/
#pragma once
#include "numbirch/utility.hpp"
#include "numbirch/eigen/eigen.hpp"
#include "numbirch/numeric.hpp"
namespace numbirch {
template<class T, class>
Array<T,1> operator*(const Array<T,2>& A, const Array<T,1>& x) {
assert(columns(A) == length(x));
Array<T,1> y(make_shape(... |
<commit_before>#include <Matrix.hpp>
#include <catch.hpp>
#include <fstream>
SCENARIO("Matrix init", "[init]") {
GIVEN("The number of lines and columns") {
auto lines = 36;
auto columns = 39;
WHEN("Create instansce of Matrix") {
Matrix matrix(lines, columns);
THEN("The number of lines and columns must be... |
<commit_before>//
// Copyright (c) 2006-2017 Benjamin Kaufmann
//
// This file is part of Clasp. See http://www.cs.uni-potsdam.de/clasp/
//
// 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 ... |
<commit_before>#include <stack.cpp>
#include <catch.hpp>
#include <iostream>
//using namespace std;
SCENARIO("count", "[count]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
}
SCENARIO("push", "[push]"){
stack<int> s;
s.push(1);
REQUIRE(s.count()==1);
REQUIRE(s.top()==1);
}
SCENARIO("top", "[top]")... |
<commit_before><commit_msg>Fix for param array support in effects for GL<commit_after><|endoftext|> |
<commit_before>#define _POSIX_SOURCE
#include "condor_common.h"
#include "condor_debug.h"
#include "directory.h"
static char *_FileName_ = __FILE__; /* Used by EXCEPT (see except.h) */
Directory::Directory( const char *name )
{
dirp = opendir( name );
if( dirp == NULL ) {
EXCEPT( "Can't open directory \... |
<commit_before>#include "circuits/circuit.h"
#include "matrix/matrix.h"
#include "gtest/gtest.h"
#include <iostream>
#include <stdio.h>
using namespace std;
TEST(ElementStampsTest, Resistor) {
// Arrange
Element resistor("R1", 4, 1, 2);
int numVariables = 2;
double matrix[MAX_NODES+1][MAX_NODES+2];... |
<commit_before>// eigenfaces.cpp : eigenfaces alg for the face recognition
// - Some code is from OpenCV src
//
// @author wenlong
//
// The PCA finds a linear combination of features that maximizes the total variance in data;
// It doesn't consider any classes and so a lot of discriminative ... |
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
* Modified:
* Laurent Perron (lperron@google.com)
*
* Copyright:
* Guido Tack, 2007
*
*
* This file is part of Gecode, the generic constraint
* development envir... |
<commit_before>// =============================================================================
// This file is part of:
// Dynamic Adaptive System for Hierarchical Multipole Methods (DASHMM)
//
// Copyright (c) 2015-2016, Trustees of Indiana University,
// All rights reserved.
//
// DASHMM is free software: you c... |
<commit_before>#include "amftest.hpp"
#include "deserializer.hpp"
#include "deserializationcontext.hpp"
#include "types/amfarray.hpp"
#include "types/amfbool.hpp"
#include "types/amfbytearray.hpp"
#include "types/amfdate.hpp"
#include "types/amfdictionary.hpp"
#include "types/amfdouble.hpp"
#include "types/amfinteger... |
<commit_before>#include <iostream>
int main() {
std::cout << "Fractalogy!\n";
return 0;
}
<commit_msg>Add the iteration function for the fractals<commit_after>#include <iostream>
#include <complex>
using std::cout;
using std::complex;
using std::exp;
using std::norm;
/// returns -1 on failing to escape
int ite... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmapProcShader.h"
#include "SkColorPriv.h"
#include "SkFlattenableBuffers.h"
#include "SkPixelRef.h"
bool SkBitmapProcShader::CanDo(const SkBitma... |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmapProcShader.h"
#include "SkBitmapProcState.h"
#include "SkBitmapProvider.h"
#include "SkColorPriv.h"
#include "SkErrorInternals.h"
#include "Sk... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2017 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
<commit_before>//
// QtMark JSON Library
//
// Copyright (C) 2015 Assured Information Security, Inc.
// Author: Rian Quinn <quinnr@ainfosec.com>
// Author: Rodney Forbes <forbesr@ainfosec.com>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Gen... |
<commit_before>/*
* GameKeeper Framework
*
* Copyright (C) 2013 Karol Herbst <gamekeeper@karolherbst.de>
*
* 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; either
* version 2.1 of ... |
<commit_before>#include "Camera.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/quaternion.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include <iostream>
Camera::Camera():
up({0, 1.0f, 0}),
pos({0, 0, 0}),
dir({0, 0, 1.0f}),
view_mat(glm::lookAt(pos, dir+pos, up))
... |
<commit_before>#include "opt/mLibInclude.h"
#include "mLibCore.cpp"
#include "mLibLodePNG.cpp"
#include <gtest/gtest.h>
#include <kfusion/warp_field.hpp>
#include <string>
#include <vector>
#include "opt/main.h"
#include "opt/CombinedSolver.h"
#include "opt/OpenMesh.h"
#include <kfusion/warp_field.hpp>
TEST(OPT_WAR... |
<commit_before>/*
* Copyright (C) 2014 Luke San Antonio
* All rights reserved.
*/
#include "object.h"
namespace survive
{
namespace gfx
{
Object create_object(gfx::IDriver& driver, std::string obj,
std::string mat) noexcept
{
auto ret = Object{};
ret.mesh = driver.pre... |
<commit_before>//
// $Id$
#include "script/Lexer.h"
Lexer::Lexer (const QString& expr, const QString& source) :
_expr(expr),
_source(source),
_idx(0),
_line(0),
_lineIdx(0)
{
}
/**
* Checks whether the specified character is a delimiter.
*/
static bool isDelimiter (QChar ch)
{
return ch.isS... |
<commit_before>// Copyright (C) 2016 xaizek <xaizek@openmailbox.org>
//
// This file is part of uncov.
//
// uncov 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, or
/... |
<commit_before>#include "h2olog.h"
#include "json.h"
#include <cstdio>
#include <cstring>
#include <cinttypes>
extern "C" {
#include <sys/socket.h>
#include <netinet/in.h>
#include "h2o/socket.h"
}
using namespace std;
#define FPUTS_LIT(s, out) fwrite(s, 1, strlen(s), out)
static bool json_need_escape(char c)
{
... |
<commit_before>/**
* Copyright (c) 2016, Loic Blot <loic.blot@unix-experience.fr>
* 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 co... |
<commit_before>/**
* Copyright (c) 2016, Loic Blot <loic.blot@unix-experience.fr>
* 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 co... |
<commit_before>/************************************************************************/
/* */
/* Copyright 1998-2000 by Ullrich Koethe */
/* Cognitive Systems Group, University of Hamburg, Germany */
/* ... |
<commit_before>#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>
#include <omp.h>
#include <stdio.h>
#include <complex>
#include <boost/preprocessor/repetition/repeat.hpp>
#include "atomic_add.hpp"
template <typename DTYPE, typename ITYPE>
void sparse_matvec_template(PyArrayObject* ... |
<commit_before>#define BOOST_TEST_MODULE VectorView
#include <valarray>
#include <boost/test/unit_test.hpp>
#include "context_setup.hpp"
BOOST_AUTO_TEST_CASE(vector_view_1d)
{
const size_t N = 1024;
std::vector<cl::CommandQueue> queue(1, ctx.queue(0));
std::vector<double> x = random_vector<double>(2 * N)... |
<commit_before>#include "GameProcess.h"
#include "Object.h"
#include "Engine.h"
#include "World.h"
#include "App.h"
using namespace MathLib;
CGameProcess::CGameProcess(void)
{
}
CGameProcess::~CGameProcess(void)
{
}
int CGameProcess::Init()
{
g_Engine.pFileSystem->CacheFilesFormExt("char");
g_Engine.pFileSystem->... |
<commit_before>#include <iostream>
#include <gtest/gtest.h>
#include "../pipeline.h"
#include "../channel.h"
#include "../scheduler.h"
#include "../shell.h"
#include <thread>
#include <asyncply/run.h>
class ChannelTest : testing::Test { };
using cmd = cu::pipeline<int>;
cmd::link generator()
{
return [](cmd::in&, c... |
<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"
#include "World.h"
#include "Action.h"
#include "F... |
<commit_before>/* ======================================================================
File Name : HandGesture.cpp
Creation Time : 20141015 15:14:24
=========================================================================
Copyright (c),2014-, Po-Jen Hsu. Contact: clusterga@gmail.com
See the README file in the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.