text stringlengths 54 60.6k |
|---|
<commit_before>#include "logging.h"
#include "common/config.h"
#include "spdlog/sinks/null_sink.h"
#include "3rd_party/ExceptionWithCallStack.h"
#include <time.h>
#include <stdlib.h>
#ifdef __unix__
#include <signal.h>
#endif
std::shared_ptr<spdlog::logger> stderrLogger(
const std::string& name,
const std::str... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by Till Adam <adam@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/*
This file implements the classes defined in Match.h:
Match, Capability, and Client
A Match object contains all of the information a startd needs
about a given match, such as the capability, the client of this
match, etc. The capability in the match is just a pointer to a
Capability... |
<commit_before>//===- PassRegistry.cpp - Pass Registration Implementation ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>Force position type size_t instead of long<commit_after><|endoftext|> |
<commit_before>// MMOVE.C -- implementation of MMOVE class
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ugens.h>
#include <mixerr.h>
#include <rt.h>
#include <rtdefs.h>
#include <assert.h>
#include <common.h>
#include "MMOVE.h"
//#define debug
#ifdef SIG_DEBUG
#define DBG(s... |
<commit_before>/*
* kinetic-cpp-client
* Copyright (C) 2014 Seagate Technology.
*
* 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) a... |
<commit_before>
#include "types.h"
namespace csfm {
class DepthmapEstimator {
public:
void AddView(const double *pK,
const double *pR,
const double *pt,
const unsigned char *pimage,
int width,
int height) {
cv::Matx33d K(pK);
cv::M... |
<commit_before>/** @file
@brief Implementation
@date 2016
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2016 Sensics, 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 ... |
<commit_before>/*************************************************************************
*
* $RCSfile: unomtabl.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: cl $ $Date: 2000-11-12 15:51:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "MessageHandler.h"
#include <iostream>
#include <sstream>
#include <random>
#include <fstream>
#include "WAMPServer.h"
#include "Directory.h"
using namespace std;
using namespace boost::filesystem;
WAMPServer::WAMPServer()
: basedir(""), debug(false) {
}
void WAMPServer::on_message(websock... |
<commit_before>/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkRectShaderImageFilter.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkDevice.h"
#include "SkFlattenableBuffers.h"
#include "SkShader.h"
... |
<commit_before>/*************************************************************************
*
* $RCSfile: docbasic.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2004-06-16 09:35:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* $RCSfile: committer.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: hr $ $Date: 2003-03-19 16:18:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before><commit_msg>coverity#704924 Unchecked dynamic_cast<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlstrings.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2006-04-19 14:02:10 $
*
* The Contents of this file are mad... |
<commit_before>//
// ElevationData.cpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 2/17/13.
//
//
#include "ElevationData.hpp"
#include "Vector2I.hpp"
#include "FloatBufferBuilderFromGeodetic.hpp"
#include "FloatBufferBuilderFromColor.hpp"
#include "DirectMesh.hpp"
#include "GLConstants.hpp"
#include "Bili... |
<commit_before>#include "DiagonalMass.inl"
#include "Sofa/Components/Common/ObjectFactory.h"
#include "Sofa/Components/Common/Vec3Types.h"
#include "Sofa/Components/Common/RigidTypes.h"
#include "GL/Axis.h"
namespace Sofa
{
namespace Components
{
using namespace Common;
template <>
void DiagonalMass<RigidTypes, Rig... |
<commit_before>#include "irods_hasher_factory.hpp"
#include "md5Checksum.hpp"
#include "MD5Strategy.hpp"
#include "SHA256Strategy.hpp"
#include <sstream>
#include <boost/unordered_map.hpp>
namespace irods {
namespace {
boost::unordered_map<const std::string, const HashStrategy*>
make_map() {
boost::unordered_map<... |
<commit_before>/*
Copyright (c) 2008, Arvid Norberg
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 condi... |
<commit_before>
/* dijkstra.c
Compute shortest paths in weighted graphs using Dijkstra's algorithm
by: Steven Skiena
date: March 6, 2002
*/
/*
Copyright 2003 by Steven S. Skiena; all rights reserved.
Permission is granted for use in non-commerical applications
provided this copyright no... |
<commit_before>/**
* \file standard_gaussian.hpp
* \date May 2014
* \author Jan Issac (jan.issac@gmail.com)
* \author Manuel Wuthrich (manuel.wuthrich@gmail.com)
*/
#ifndef FL__DISTRIBUTION__STANDARD_GAUSSIAN_HPP
#define FL__DISTRIBUTION__STANDARD_GAUSSIAN_HPP
#include <Eigen/Dense>
#include <random>
#include <... |
<commit_before>#include "DSL_bless.hpp"
using namespace std;
namespace snarkfront {
////////////////////////////////////////////////////////////////////////////////
// blessing (initialize variables)
//
// 8-bit value from data buffer stream (useful for templates)
void bless(uint8_t& a, DataBufferStream& ss) {
... |
<commit_before>#include<stdio.h>
void baseConversion(char *number, int orig, int dest){
}
int main(void){
return 0;
}
<commit_msg>Created and tested binary exponentiation function successfully<commit_after><|endoftext|> |
<commit_before>// Bindings
#include "PyROOT.h"
#include "Adapters.h"
#include "Utility.h"
// ROOT
#include "TInterpreter.h"
#include "TBaseClass.h"
#include "TClass.h"
#include "TClassEdit.h"
#include "TDataType.h"
#include "TDataMember.h"
#include "TMethod.h"
#include "TFunction.h"
#include "TMethodArg.h"
#include "T... |
<commit_before>#include "node_helpers.hpp"
namespace cloudcv
{
static char encoding_table[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y',... |
<commit_before>// $Id: readFile.C,v 1.8 2000/10/08 23:26:13 amoll Exp $
#include <BALL/FORMAT/readFile.h>
#include <BALL/COMMON/exception.h>
#include <stdio.h>
using namespace std;
namespace BALL
{
ReadFile::ReadFileError::ReadFileError(const char* file, int line, const ReadFile& rf, const String& message)
: Ex... |
<commit_before>/*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* File: $Id: RooBinning.cc,v 1.5 2002/09/05 04:33:15 verkerke Ex... |
<commit_before>/*
* Copyright 2013 Jonathan R. Guthrie
*
* 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 applicabl... |
<commit_before>#ifndef rpl_utils_hpp
#define rpl_utils_hpp
#include <string>
namespace utils {
template <typename T>
std::string to_string(const T& t) {
std::string str{ std::to_string(t) };
int offset = 1;
if ( str.find_last_not_of('0') == str.find('.') ) {
offset = 0;
... |
<commit_before>/*
Resembla: Word-based Japanese similar sentence search library
https://github.com/tuem/resembla
Copyright 2017 Takashi Uemura
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
h... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2002 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. Red... |
<commit_before>// @(#)root/cont:$Name: $:$Id: TExMap.cxx,v 1.1.1.1 2000/05/16 17:00:40 rdm Exp $
// Author: Fons Rademakers 26/05/99
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/*
* VapourSynth D2V Plugin
*
* Copyright (c) 2012 Derek Buitenhuis
*
* This file is part of d2vsource.
*
* d2vsource 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
* ve... |
<commit_before>/*
BMPImage class
Copyright (C) 1998 by Olivier Langlois <olanglois@sympatic.ca>
This library 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... |
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2015
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade 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 Foundat... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TX... |
<commit_before>/*
* Copyright (C) 2012
* Alessio Sclocco <a.sclocco@vu.nl>
*
* 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 3 of the License, or
* (at your option) any lat... |
<commit_before>//#include <mcheck.h>
#include <stdlib.h>
#include <stdio.h>
#include "LinkedList.h"
#include "ChessBoard.h"
#include "HumanPlayer.h"
#include "AIPlayer.h"
int main(void) {
ChessBoard board;
LinkedList<Move> regulars, nulls;
ListIterator<Move> iter;
int turn = WHITE;
Move move;
bool found;
// I... |
<commit_before>/*
* Copyright (C) 2012
* Alessio Sclocco <a.sclocco@vu.nl>
*
* 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 3 of the License, or
* (at your option) any lat... |
<commit_before>/*
This file is part of kdepim.
Copyright (c) 2004 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 of th... |
<commit_before>//
// Copyright 2014 The ANGLE Project 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 "libANGLE/renderer/d3d/HLSLCompiler.h"
#include <sstream>
#include "common/utilities.h"
#include "libANGLE/Context.h"... |
<commit_before>#include "precompiled.h"
//
// Copyright (c) 2012-2013 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// SwapChain9.cpp: Implements a back-end specific class for the D3D9 swap chain.
#include "li... |
<commit_before>/*
* Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org)
*
* 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/LICENS... |
<commit_before>/*
* Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org)
*
* 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/LICENS... |
<commit_before>#pragma once
#ifndef ARRAYDELEGATE_HPP
# define ARRAYDELEGATE_HPP
#include <cassert>
#include <cstddef>
#include <memory>
#include <new>
#include <type_traits>
#include <utility>
template <typename T> class delegate;
template<class R, class ...A>
class delegate<R (A...)>
{
static constexpr auto... |
<commit_before>/*
# Copyright (c) 2015, Ole-André Rodlie <olear@dracolinux.org>
# All rights reserved.
#
# OpenFX-Arena is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2. You should have received a copy of the GNU General Public License version 2 alon... |
<commit_before>/*
* Boost.Foreach support for pugixml classes.
* This file is provided to the public domain.
* Written by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
*/
#ifndef HEADER_PUGIXML_FOREACH_HPP
#define HEADER_PUGIXML_FOREACH_HPP
#include "pugixml.hpp"
/*
* These types add support for BOOST_FOREACH... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2013 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
<commit_before>#include <iostream>
#include <string>
#include <map>
using namespace std;
void printMap(map<string, map<string, bool> > nodes) {
cout << "start ------" << endl;
map<string, map<string, bool> >::reverse_iterator rit;
for (rit=nodes.rbegin(); rit!=nodes.rend(); ++rit) {
cout << rit->... |
<commit_before>#include "include/couchbase_admin.h"
CallbackInterface storage;
CallbackInterface retrieval;
CallbackInterface deletion;
void CouchbaseAdmin::initialize (const char * conn)
{
//Initializing
logging->info("CB_Admin:DB: Couchbase Admin Initializing");
struct lcb_create_st cropts;
... |
<commit_before>#pragma once
#include <glm>
#include <vector>
#include <algorithm>
#include <cstdint>
#include <KDTree3D.hpp>
namespace haste {
namespace v2 {
using std::vector;
using std::move;
using std::swap;
using std::pair;
using std::make_pair;
using std::uint32_t;
inline size_t max_axis(const pair<vec3, vec3>... |
<commit_before>/************************************************************
COSC 501
Elliott Plack
19 NOV 2013 Due 25 NOV 2013
Problem: Create a 1-dimensional array with n elements; get
the size of the array as user input (validate!), max size
should be 10 (declared as class constan... |
<commit_before>/*************************************************************************
*
* $RCSfile: testcomponent.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: jl $ $Date: 2001-03-19 10:20:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>#include "mitkGeometry2DDataVtkMapper3D.h"
#include "mitkPlaneGeometry.h"
#include "mitkDataTree.h"
#include "mitkImageMapper2D.h"
#include "mitkSurfaceData.h"
#include "mitkGeometry2DDataToSurfaceDataFilter.h"
#include "vtkActor.h"
#include "vtkProperty.h"
#include "vtkTexture.h"
#include "vtkPlaneS... |
<commit_before>#pragma once
#ifndef CUDA_EVENT_H_
#define CUDA_EVENT_H_
#include "types.h"
#include "cuda/api/error.hpp"
#include <cuda_runtime_api.h>
namespace cuda {
namespace event {
enum : bool {
dont_use_blocking_sync = false,
use_blocking_sync = true,
};
enum : bool {
dont_record_timings = false,
do_recor... |
<commit_before>#ifndef __JSON_HPP__
#define __JSON_HPP__
#include <cctype>
#include <iostream>
#include <string>
#include <vector>
#include <array>
#include <regex>
namespace JSON {
using namespace std;
struct Error {};
struct SyntaxError : public Error {};
struct LoadError : public Error {};
struct AccessError... |
<commit_before>#include "Encoder.h"
#include "LuaPbIntfImpl.h" // for MakeSharedMessage()
#include "MessageSptr.h"
#include <LuaIntf/LuaIntf.h>
#include <LuaIntf/LuaState.h> // for LuaException
#include <google/protobuf/message.h> // for Message
#include <iostream>
namespace LuaIntf
{
LUA_USING_SHARED_PTR_TY... |
<commit_before>#include "rapidcheck/detail/Utility.h"
#include <cxxabi.h>
#include <cstdlib>
namespace rc {
namespace detail {
std::string demangle(const char *name)
{
std::string demangled(name);
int status;
std::size_t length;
char *buf = abi::__cxa_demangle(name, NULL, &length, &status);
if (s... |
<commit_before>/*
* Odometer.cpp - Handles the gyroscope (L3G4200D) sensor of the Smartcar.
* Version: 0.3
* Author: Dimitris Platis (based on the bildr.org example: http://bildr.org/2011/06/l3g4200d-arduino/)
* License: GNU GPL v3 http://www.gnu.org/licenses/gpl-3.0.html
*/
#include "CaroloCup.h"
/* ---- GYROSCOPE... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include "snowman.hpp"
int main(int argc, char *argv[]) {
Snowman sm = Snowman();
std::string VERSION_STRING = "v" + std::to_string(Snowman::MAJOR_VERSION) +
"." + std::to_string(Snowman::MINOR_VERSION) + "." +
std::to_st... |
<commit_before>//#include <stdio.h> //
#include <stdlib.h> //rand, srand
#include "testmain.cc"
#include "gtest/gtest.h"
//for dice rolls
#include <numeric>
#include <algorithm>
#include <cmath>
#include <vector>
TEST(Initialization,Pip24){
Board *b = new Board();
b->initialize();
ASSERT_EQ(b->pips[24],2) << "... |
<commit_before>#include <iostream>
#include <boost/foreach.hpp>
#include "connectors.h"
#include "gtfs_parser.h"
#include "bdtopo_parser.h"
#include <fstream>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
namespace po = boost::program_option... |
<commit_before>#include "Cursor.h"
#include <QApplication>
#include <QDesktopWidget>
#include <cassert>
#include <set>
#include <stdint.h>
#include "CaptureConfig.h"
#include "MurmurHash3.h"
#include "ObjectiveCBridge.h"
namespace screencast {
std::set<uint32_t> Cursor::m_cachedImages;
Cursor::Cursor() : m_imageI... |
<commit_before>#include "SDLWindow.h"
#include "SDLApplication.h"
#ifdef HX_WINDOWS
#include <SDL_syswm.h>
#include <Windows.h>
#undef CreateWindow
#endif
namespace lime {
SDLWindow::SDLWindow (Application* application, int width, int height, int flags, const char* title) {
currentApplication = application... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2007 Matthias Kretz <kretz@kde.org>
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
cop... |
<commit_before>/**
* @file sparse_coding_test.cpp
*
* Test for Sparse Coding
*/
// Note: We don't use BOOST_REQUIRE_CLOSE in the code below because we need
// to use FPC_WEAK, and it's not at all intuitive how to do that.
#include <armadillo>
#include <mlpack/methods/sparse_coding/sparse_coding.hpp>
#include <b... |
<commit_before>/*=========================================================================
*
* Copyright 2011-2013 The University of North Carolina at Chapel Hill
* All rights reserved.
*
* Licensed under the MADAI Software License. You may obtain a copy of
* this license at
*
* https://madai-public... |
<commit_before>/** \copyright
* Copyright (c) 2016, Sidney McHarg
* 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 noti... |
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*-
uiserver/encryptemailcontroller.cpp
This file is part of Kleopatra, the KDE keymanager
Copyright (c) 2007 Klarälvdalens Datakonsult AB
Kleopatra is free software; you can redistribute it and/or modify
it under the terms of the GNU General Publi... |
<commit_before>#include "extended_infomax.h"
#include <cmath>
#include "fastapprox-0/fasthyperbolic.h"
#include "fastapprox-0/fastlog.h"
#include <pmmintrin.h>
#include <cstddef>
namespace curveica{
template<>
void extended_infomax_ica<float>::operator()(float * z1, float * b, int const * signs, float* phi, float* ... |
<commit_before>#include "DSL_bless.hpp"
using namespace std;
namespace snarkfront {
////////////////////////////////////////////////////////////////////////////////
// blessing (initialize variables)
//
// 32-bit value from data buffer stream (useful for templates)
void bless(uint32_t& a, DataBufferStream& ss) {
... |
<commit_before>//
// Definition of 'Comparator' type input (InputType::kCMP).
//
// Teensy 3.x has up to 4 comparator modules: CMP0, CMP1, CMP2 and CMP3. Each of them can issue an interrupt when
// input pin voltage is crossing a threshold, both up and down. The threshold can be adjusted dynamically
// in 64 steps fro... |
<commit_before>// Copyright 2016 Chirstopher Torres (Raven), L3nn0x
//
// 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... |
<commit_before>/* mbed USBHost Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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
*
* Un... |
<commit_before>/*
Copyright (c) 2016 VOCA AS / Harald Nkland
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... |
<commit_before>/* Siconos-sample , Copyright INRIA 2005-2011.
* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
* Siconos is a free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free... |
<commit_before>#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkTypeface.h"
#include "SkPath.h"
#include "SkRegion.h"
#include "SkShader.h"
#include "SkUtils.h"
#include "Sk1DPathEffect.h"
#include "SkCornerPathEffect.h"
#include "SkPathMeasure.h"
#include "SkRandom.h"
#include "SkColorPriv... |
<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>/*
* 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 "TransitionView.h"
#include "OverView.h"
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkTime.h"
#include "SkInterpolator... |
<commit_before>#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <thread>
#include "../src/reactor/reactor.h"
using namespace testing;
class pair_socket_wrapper : public socket_wrapper_base
{
public:
pair_socket_wrapper(const std::shared_ptr<zmq::context_t> context, const std::string &addr)
: socket_wrap... |
<commit_before>#include "stdafx.h"
#include "include/script.h"
#include "include/exceptions.h"
#include "include/debug.h"
#include "include/file.h"
namespace yappy {
namespace lua {
LuaError::LuaError(const std::string &msg, lua_State *L) :
runtime_error("")
{
const char *str = lua_tostring(L, -1);
i... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.com>
//
// 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 l... |
<commit_before>#include <iostream>
#include <myo/myo.hpp>
#include "../src/features/RootFeature.h"
#include "../src/features/filters/Debounce.h"
#include "../src/features/Orientation.h"
#include "../src/features/OrientationPoses.h"
#include "../src/features/filters/ExponentialMovingAverage.h"
#include "../src/features... |
<commit_before>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission ... |
<commit_before>//
// embedded.cpp
// integral
//
// Copyright (C) 2013, 2014 André Pereira Henriques
// aphenriques (at) outlook (dot) com
//
// This file is part of integral.
//
// integral is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publis... |
<commit_before>#include "systems/CollisionSystem.h"
void CollisionSystem::update(int elapsedMs, World &world)
{
for(auto collidable : world.getEntitiesForType(ComponentTypes::COLLIDABLE))
{
if(collidable->hasComponent(ComponentTypes::VELOCITY))
{
Velocity *v = (Velocity *)collidable->ge... |
<commit_before>#include "entity_manager.h"
#include "gameengine.h"
#include <fstream>
#include <iostream>
void EntityManager::initialise (GameEngineInterface* engine)
{
maxId = 1;
m_engine = engine;
m_player = 0;
}
EntityId EntityManager::createEntity () {
EntityId l_entity = maxId++;
AddEntityEv... |
<commit_before>#pragma ident "$Id$"
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
//... |
<commit_before>// TasksFrame.cpp : implmentation of the CTasksFrame class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "AboutDlg.h"
#include "ConnectionDlg.h"
#include "TasksView.h"
#include "TasksFrame.h"
#include <jira/jira.hpp>... |
<commit_before>#include <string>
#include <fstream>
#include <sstream>
#include <streambuf>
#include "3rdparty/nlohmann/json.h"
#include "appc/schema/image.h"
#include "appc/schema/container.h"
using Json = nlohmann::json;
int dumpAIM(const Json& json);
int dumpCRM(const Json& json);
int main(int args, char** arg... |
<commit_before>/*
* This file is part of meego-keyboard
*
* Copyright (C) 2010-2011 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
*
* Contact: Mohammad Anwari <Mohammad.Anwari@nokia.com>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted ... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>//
// This file is part of the Marble Virtual 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 2011 Dennis Nienhüser <earthwings@gentoo.org>
//
#include "AudioOut... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Franco Venturi
* 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 r... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/*
** Copyright 2015 Centreon
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law o... |
<commit_before>//
// Logarithm.cpp
// Calculator
//
// Created by Gavin Scheele on 3/27/14.
// Copyright (c) 2014 Gavin Scheele. All rights reserved.
//
#include "Logarithm.h"
Logarithm::Logarithm(int base, int operand){
this->type = "logarithm";
this->base = base;
this->operand = operand;
}
Logarithm::L... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.