text stringlengths 54 60.6k |
|---|
<commit_before>#include "Platform.h"
namespace clw
{
namespace detail
{
vector<cl_platform_id> getPlatformIDs()
{
cl_uint num;
if(clGetPlatformIDs(0, nullptr, &num) != CL_SUCCESS)
return vector<cl_platform_id>();
vector<cl_platform_id> platformIds(num);
clGetPlatformIDs(num, platformIds.data(), n... |
<commit_before>#ifndef STAN_LANG_RETHROW_LOCATED_HPP
#define STAN_LANG_RETHROW_LOCATED_HPP
#include <stan/io/program_reader.hpp>
#include <exception>
#include <ios>
#include <new>
#include <sstream>
#include <stdexcept>
#include <string>
#include <typeinfo>
namespace stan {
namespace lang {
/**
* Returns... |
<commit_before>/* This file is part of Strigi Desktop Search
*
* Copyright (C) 2007 Jos van den Oever <jos@vandenoever.info>
*
* 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; eithe... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// Antioch - A Gas Dynamics Thermochemistry Library
//
// Copyright (C) 2013 The PECOS Development Team
//
// This library is free software; you ca... |
<commit_before>// (C) Copyright Gennadiy Rozental 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
//... |
<commit_before>/*
This file is part of SWGANH. For more information, visit http://swganh.com
Copyright (c) 2006 - 2011 The SWG:ANH Team
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 v... |
<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>/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** ... |
<commit_before>#include "dummy_video.h"
#include <halley/core/graphics/painter.h>
#include <halley/core/graphics/texture.h>
#include <halley/core/graphics/shader.h>
#include <halley/core/graphics/render_target/render_target_texture.h>
#include "dummy_system.h"
#include <chrono>
using namespace Halley;
DummyVideoAPI::... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
<commit_before>/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkOnce.h"
#include "SkOpts.h"
#define SK_OPTS_NS sk_default
#include "SkBlitMask_opts.h"
#include "SkBlitRow_opts.h"
#include "SkBlurImageFilter_opts... |
<commit_before>/**************************************************************************
*
* Copyright 2010 VMware, 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 t... |
<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>#include <iostream>
#include <boost/program_options.hpp>
#include "common.h"
#include "scope_guard.h"
#include "connection.h"
#include "context.h"
#include "agenda.h"
#include "sync.h"
#include <sys/ioctl.h>
#include <boost/bind.hpp>
using namespace es3;
#include <curl/curl.h>
static int term_width = 8... |
<commit_before>#include "catch.hpp"
#include <shadow.hpp>
#include <vector>
#include <iostream>
struct tca1
{
int i;
char c;
};
class tca2
{
public:
tca2() : c_('a')
{
}
tca2(char c) : c_(std::move(c))
{
}
char
get_c() const
{
return c_;
}
private:
char... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkXRenderWindowTclInteractor.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkXRenderWindowTclInteractor.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for ... |
<commit_before>// Copyright 2008, Google 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 above copyright
// notice, this list ... |
<commit_before>/*
* Copyright (C) 2006 Justin Karneges
*
* 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 the License, or (at your option) any later version.... |
<commit_before><commit_msg>INTEGRATION: CWS pchfix02 (1.9.42); FILE MERGED 2006/09/01 17:54:58 kaib 1.9.42.1: #i68856# Added header markers and pch files<commit_after><|endoftext|> |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// @(#)root/memstat:$Id$
// Author: Anar Manafov (A.Manafov@gsi.de) 2008-03-02
/*************************************************************************
* Copyright (C) 1995-2010, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*
* RUtil.cpp
*
* Copyright (C) 2009-18 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public ... |
<commit_before>/*!
\file
\brief
<a href="http://om-language.org">Om</a> source file.
\version
0.1.2
\date
2012-2013
\copyright
Copyright (c) <a href="http://sparist.com">Sparist</a>. All rights reserved. This program and the accompanying materials are made available under the terms of the <a href="http://... |
<commit_before>// Copyright 2017 The NXT 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 applicable l... |
<commit_before>/*
* Copyright (c) 2006 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 copyri... |
<commit_before>/***********************************************************************************************************************
* Copyright (C) 2016 Andrew Zonenberg and contributors *
* ... |
<commit_before>#include "include/gomoku.hpp"
#include <iostream>
#define BOARD_SIZE 19
int main(void)
{
typedef unsigned int PosType; /**< Position type */
typedef size_t SizeType;
enum PlayerType
{
NONE = 0,
BLACK = 1,
WHITE = 2
};
enum StatusTyp... |
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "Copyright (c) 2012-2013 Tokutek Inc. All rights reserved."
#ident "$Id$"
#include "backup_manager.h"
#include "real_syscalls.h"
#include "backup_debug.h"
#include <assert.h>
#i... |
<commit_before>// Copyright (c) 2012 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 "remoting/base/resources.h"
#include "remoting/base/string_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "testing... |
<commit_before>// Copyright (c) 2010 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 "remoting/host/event_executor_win.h"
#include <windows.h>
#include "base/message_loop.h"
#include "base/stl_util-inl.h"
#inc... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo Authors. 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 ... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo Authors. 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 ... |
<commit_before>#include "OneDHeatForcingFunction.h"
template <>
InputParameters
validParams<OneDHeatForcingFunction>()
{
InputParameters params = validParams<Kernel>();
params.addRequiredParam<Real>("power_fraction", "The fraction of power used");
params.addRequiredCoupledVar("total_power", "Total reactor power"... |
<commit_before>//=================================================================================================
/*!
// \file src/mathtest/typetraits/OperationTest.cpp
// \brief Source file for the mathematical type traits operation test
//
// Copyright (C) 2013 Klaus Iglberger - All Rights Reserved
//
// This fi... |
<commit_before>// Copyright (c) 2015 Andrew Sutton
// All rights reserved
#ifndef BEAKER_SYMBOL_HPP
#define BEAKER_SYMBOL_HPP
#include "string.hpp"
#include "cast.hpp"
#include <unordered_map>
#include <typeinfo>
// -------------------------------------------------------------------------- //
// ... |
<commit_before>//
// WidgetProxy.cpp
// Chilli Source
// Created by Scott Downie on 18/08/2014.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "So... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: canvascustomspritehelper.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2005-11-02 12:42:39 $
*
* The Contents of thi... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qbs.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses m... |
<commit_before>/*
* This file is part of the kreenshot-editor project.
*
* Copyright (C) 2014 by Gregor Mi <codestruct@posteo.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... |
<commit_before>/*
*
* Copyright (c) 2021 Project CHIP 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
*
* ... |
<commit_before>// IBM_PROLOG_BEGIN_TAG
// This is an automatically generated prolog.
//
// $Source: src/usr/diag/prdf/test/prdfTest.H $
//
// IBM CONFIDENTIAL
//
// COPYRIGHT International Business Machines Corp. 2012
//
// p1
//
// Object Code Only (OCO) source materials
// Licensed Internal Code Source Materi... |
<commit_before><commit_msg>calculate 2x2 determinants - testing<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2009 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 "chrome/browser/gtk/infobar_gtk.h"
#include <gtk/gtk.h>
#include "base/gfx/gtk_util.h"
#include "base/string_util.h"
#includ... |
<commit_before>// Copyright 2014 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 "mojo/services/html_viewer/webmimeregistry_impl.h"
#include "base/files/file_path.h"
#include "base/strings/string_util.h"
#inclu... |
<commit_before>// Copyright (c) 2010 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 "chrome/browser/browser_accessibility_manager_win.h"
#include "chrome/browser/browser_accessibility_win.h"
#include "chrome/b... |
<commit_before>// Copyright (c) 2009 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/command_line.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/debugger/devtools_client_host.h"
#include "... |
<commit_before>// Copyright (c) 2010 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 "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/prefs/pref_servi... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>/*************************************************************************
*
* $RCSfile: helpinterceptor.hxx,v $
*
* $Revision: 1.15 $
*
* last change: $Author: kz $ $Date: 2004-06-10 13:28:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the followi... |
<commit_before>
#include <iostream>
//GlEW, before GLFW
#define GLEW_STATIC
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>
// Should make it cross platform
// Window dimensions
const GLuint WIDTH = 800, HEIGHT = 600;
void KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mode)
{
if (ke... |
<commit_before>
/*
* share-ui -- Handset UX Share user interface
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* Contact: Jukka Tiihonen <jukka.tiihonen@nokia.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser ... |
<commit_before>#include <ros/ros.h>
#include <nav_msgs/OccupancyGrid.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/core/core.hpp>
//using namespace cv;
void occupancyGridCb(const nav_msgs::OccupancyGrid::Ptr msg);
cv::Vec3b ge... |
<commit_before>/*
* Copyright (c) 2016 Luke San Antonio
* All rights reserved.
*
* This file provides the implementation for the engine's C interface,
* specifically tailored for LuaJIT's FFI facilities.
*
* Scene stuff
*/
#include "redcrane.hpp"
#define CHECK_ID(id) \
REDC_ASSERT_MSG(id != 0, "No mor... |
<commit_before>/*
* Copyright(c) Records For Living, Inc. 2004-2012. All rights reserved
*/
// TEST Foundation::DataExchangeFormat::ObjectVariantMapper
#include "Stroika/Foundation/StroikaPreComp.h"
#include "Stroika/Foundation/Configuration/Locale.h"
#include "Stroika/Foundation/DataExchangeFormat/Ba... |
<commit_before>#include <random>
#include "data/corpus.h"
namespace marian {
namespace data {
typedef std::vector<size_t> WordBatch;
typedef std::vector<float> MaskBatch;
typedef std::pair<WordBatch, MaskBatch> WordMask;
typedef std::vector<WordMask> SentBatch;
CorpusIterator::CorpusIterator() : pos_(-1), tup_(0) {... |
<commit_before>/*
Copyright (c) 2015, Aaditya Kalsi
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 copyright notice, this
list of conditions a... |
<commit_before>/* $Id$ */
//-------------------------------------------------------------------
// Class AliHBTPairCut:
// implements cut on the pair of particles
// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
// Author: Piotr.Skowronski@cern.ch
//----------------------------------------------... |
<commit_before>
#include "BinaryHeap.h"
#include <fstream>
// initialize the variables
BinaryHeap :: BinaryHeap()
{
root = NULL;
lastElement = NULL;
}
// clear the memory
BinaryHeap :: ~BinaryHeap()
{
clear(root);
}
// make a new heap
void BinaryHeap :: makeHeap()
{
if(root!=NULL)
clear(root);
... |
<commit_before>#include "hippomocks.h"
#include "yaffut.h"
class IA {
public:
virtual ~IA() {}
virtual void f() {}
virtual void g() = 0;
};
FUNC (checkBaseCase)
{
MockRepository mocks;
IA *iamock = mocks.InterfaceMock<IA>();
mocks.ExpectCall(iamock, &IA::f);
mocks.ExpectCall(iamock, &IA::g);
... |
<commit_before>/* Copyright (C) 2003 MySQL AB
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 later version.
This program is d... |
<commit_before>// Homework3.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
#include <ctime>
using namespace std;
time_t startTime = time(0);
class StopLight {
public:
StopLight(string direction) {
this->lightColor = "";
this->direction =... |
<commit_before>#include "GraphicsManager.h"
#include "../Logger.h"
#include "ScaleSystem.h"
#include "SpriteBatch.h"
#ifdef _WIN32
#include <Windows.h>
#endif
#ifdef DESKTOP
#include <wglext.h>
#endif
namespace star
{
GraphicsManager * GraphicsManager::mGraphicsManager = nullptr;
GraphicsManager... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo Authors. 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 ... |
<commit_before>/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2018, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions app... |
<commit_before>// Copyright (c) 2011 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 "chrome/browser/ui/views/global_error_bubble_view.h"
#include "base/logging.h"
#include "chrome/browser/ui/global_error.h"
#i... |
<commit_before>#include "cmat.hpp"
#include "msgpack.hpp"
#include <iostream>
#include <sstream>
#include <iomanip>
using namespace std;
void print(value &v){
stringstream ss;
v.serialize(ss);
string str;
getline(ss, str);
for(int i = 0 ; i < (int)str.size() ; i++)
cout << setw(2) << setfill('0') <... |
<commit_before>// Copyright (c) 2010 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 "chrome/service/service_process.h"
#include <algorithm>
#include "base/basictypes.h"
#include "base/command_line.h"
#include... |
<commit_before>/*
* Copyright (c) 2004-2005 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>// Copyright (c) 2006-2008 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 "chrome/views/single_split_view.h"
#include "base/gfx/skia_utils.h"
#include "chrome/common/gfx/chrome_canvas.h"
namesp... |
<commit_before>/*
* Copyright (c) 2005 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 copyri... |
<commit_before>#include "Quadrant.h"
#include <iostream>
#include "Globals.h"
Quadrant::Quadrant(QuadrantCoordinates* coordinates)
{
this->coordinates = coordinates;
glm::vec3 v = glm::vec3(0.0,0.0,0.0);
this->influenceVector = new InfluenceVector(0, glm::vec3(0.0,0.0,0.0));
}
std::vector<Particle> Quadrant::getP... |
<commit_before>#include <iostream>
using namespace std;
int main() {
cout << "Hello World!" << endl;
}
<commit_msg>thread safe deque<commit_after>#include <iostream>
#include <mutex>
#include <deque>
using namespace std;
typedef unsigned char BYTE
// thread safe queuing
mutex mu;
deque<BYTE*> callQueue;
void ad... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2006 Laurent Ribon (laumaya@users.sourceforge.net)
Version 0.9.6, packaged on June, 2006.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can red... |
<commit_before>#include <gl/freeglut.h>
void init();
void display(void);
void centerOnScreen();
void drawObject();
// define the window position on screen
int window_x;
int window_y;
// variables representing the window size
int window_width = 480;
int window_height = 480;
// variable representing the window tit... |
<commit_before>/*
* Copyright (c) 2020 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>/*
* ArcEmu MMORPG Server
* Copyright (C) 2008-2010 <http://www.ArcEmu.org/>
*
* This program 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>// Copyright 2014 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 "chromecast/renderer/cast_content_renderer_client.h"
#include <sys/sysinfo.h>
#include "base/command_line.h"
#include "base/memo... |
<commit_before>#include "omp.h"
inline
kth_cv_omp::kth_cv_omp(const std::string in_path,
const std::string in_actionNames,
const field<std::string> in_all_people,
const int in_scale_factor,
const int in_shift,
const int in_scene, //only for kth
const int in_segm... |
<commit_before>#include <memory>
#include <fstream>
#include <sstream>
#include <chrono>
#include <ctime>
#include "solver.h"
#include "solve.h"
Solver::Solver(double (*function)(double)){
fn = function;
}
Solver::~Solver(){};
void Solver::setup(unsigned int n){
double h = 1/static_cast<double>(n+2);
dom... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by Tobias Koenig <tokoe@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify ... |
<commit_before>/***************************************************************************
* Copyright (C) 2008 by Jason Ansel *
* jansel@csail.mit.edu *
* ... |
<commit_before>
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkColorPriv.h"
#include "SkGeometry.h"
#include "SkShader.h"
#define WIRE_FRAME_WIDTH 1.1f
static void tesselate(const SkPath& s... |
<commit_before>#define MS_CLASS "RTC::SeqManager"
// #define MS_LOG_DEV_LEVEL 3
#include "RTC/SeqManager.hpp"
#include "Logger.hpp"
#include <iterator>
namespace RTC
{
template<typename T>
bool SeqManager<T>::SeqLowerThan::operator()(const T lhs, const T rhs) const
{
return ((rhs > lhs) && (rhs - lhs <= MaxValue... |
<commit_before>#include "gm.h"
#include "SkBitmap.h"
#include "SkShader.h"
#include "SkXfermode.h"
namespace skiagm {
static void make_bitmaps(int w, int h, SkBitmap* src, SkBitmap* dst) {
src->setConfig(SkBitmap::kARGB_8888_Config, w, h);
src->allocPixels();
src->eraseColor(0);
SkCanvas c(*src);... |
<commit_before>/*
* caosVM_flow.cpp
* openc2e
*
* Created by Alyssa Milburn on Sun May 30 2004.
* Copyright (c) 2004 Alyssa Milburn. All rights reserved.
*
* 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 ... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documenta... |
<commit_before>#pragma once
#include <string>
#include <variant>
#include <functional>
#include <iostream>
#include <fstream>
#include "acmacs-base/filesystem.hh"
// ----------------------------------------------------------------------
namespace acmacs::file
{
enum class force_compression { no, yes };
enum... |
<commit_before>#include <X86/LocalApic.hh>
#include <Debug.hh>
#include <Memory.hh>
#include <X86/Processor.hh>
#include <X86/CpuRegisters.hh>
#include <X86/IoPort.hh>
#include <cstdio>
LocalApic::LocalApic(uintptr_t physicalAddress)
: physicalAddressM(physicalAddress)
{
init();
idM = (read32(0x20) >> 24)... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/******************************************************************************\
* ___ __ *
* /\_ \ __/\ \ *
* \//\ \ /\_\ \ \____ ___ _____ _____ __ ... |
<commit_before>#include <QDebug>
#include <QtCore/QReadWriteLock>
#include <QtQml/QJSValueIterator>
#include "jsonlistmodel.h"
static const int BASE_ROLE = Qt::UserRole + 1;
JsonListModel::JsonListModel(QObject *parent) :
QAbstractItemModel(parent),
m_lock(new QReadWriteLock(QReadWriteLock::Recursive)),
m... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2014 Rapptz
// 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... |
<commit_before>// -------------------------------------------------------------------
//
// sst_rewrite.cc
//
// Copyright (c) 2015 Basho Technologies, Inc. All Rights Reserved.
//
// This file is provided to you under the Apache License,
// Version 2.0 (the "License"); you may not use this file
// except in compliance... |
<commit_before>#ifndef BUFFER_CACHE_BLOB_HPP_
#define BUFFER_CACHE_BLOB_HPP_
#include <string>
#include <vector>
#include <stdint.h>
#include <stddef.h>
#include "errors.hpp"
#include <boost/shared_ptr.hpp>
#include "buffer_cache/types.hpp"
#include "concurrency/access.hpp"
#include "containers/buffer_group.hpp"
/... |
<commit_before>#ifndef QRW_TEST_WALLACCESSSTRUCTUREMOCK_HPP
#define QRW_TEST_WALLACCESSSTRUCTUREMOCK_HPP
#include "game/skirmish/wallaccessstructurebase.hpp"
class WallAccessStructureMock : public qrw::WallAccessStructureBase
{
public:
const sf::Texture* getTexture() const override
{
throw "Not implemented";
}
... |
<commit_before>//
// Graph.cpp
// zombies
//
// Created by Sunil on 4/17/17.
// Copyright © 2017 Sunil. All rights reserved.
//
#include "Graph.h"
#include <set>
#include <map>
#include <queue>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
template <class T>
Graph<T>::Graph() {... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2019, PickNik LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.