text stringlengths 54 60.6k |
|---|
<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-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkBox.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright... |
<commit_before>// Copyright 2009, Squish Tech, LLC.
#include "libxmljs.h"
#include "xml_syntax_error.h"
#include "xml_document.h"
#include "xml_node.h"
#include "xml_parser.h"
#include "html_parser.h"
namespace libxmljs {
v8::Persistent<v8::FunctionTemplate> memory_usage;
namespace {
void on_libxml_destruct(xml... |
<commit_before>/// \file CryptKeyEntry.cpp
//-----------------------------------------------------------------------------
#include "stdafx.h"
#include "PasswordSafe.h"
#include "CryptKeyEntry.h"
#include "util.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//----... |
<commit_before>/**
* @file logging.cpp
* @brief Logging class
*
* (c) 2013-2014 by Mega Limited, Auckland, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the rules set forth in the Terms of... |
<commit_before>#include <string.h>
#include <types.h>
#include <idt.h>
#include <terminal.h>
#include <log.h>
#include <x86.h>
struct idt_entry idt[256];
struct idt_ptr idtp;
void idt_set_gate(unsigned char num, unsigned long base, unsigned short sel, unsigned char flags)
{
idt[num].base_lo = (base & 0xFFFF);
... |
<commit_before>#include "manager.h"
#include "capturer.h"
#include "corrector.h"
#include "debug.h"
#include "recognizer.h"
#include "representer.h"
#include "settingseditor.h"
#include "task.h"
#include "translator.h"
#include "trayicon.h"
#include "updates.h"
#include <QApplication>
#include <QDesktopServices>
#incl... |
<commit_before>/** \brief Utility for displaying various bits of info about a collection of MARC records.
* \author Dr. Johannes Ruscheinski ([email protected])
*
* \copyright 2015-2018 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistri... |
<commit_before>/*
* Copyright (c) 2010-2011 by Patrick Schaefer, Zuse Institute Berlin
* 2011-2012 by Michael Berlin, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
#include "libxtreemfs/helper.h"
#include <cstdio>
#include <cstdlib>
#include <stdint.h... |
<commit_before>/*
* generate-license.c
*
* Created on: Apr 13, 2014
*
*/
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <sstream>
#include <fstream>
#include <iostream>
#include <licensecc_properties_test.h>
#include "../../src/library/base/ba... |
<commit_before>#include "LIBSPU.H"
#include "LIBETC.H"
#include <stdio.h>
#include "EMULATOR.H"
#include "LIBAPI.H"
#include <string.h>
#define SPU_CENTERNOTE (-32768 / 2)
short _spu_voice_centerNote[24] =
{
SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNOTE, SPU_CENTERNO... |
<commit_before>/*
* Funambol is a mobile platform developed by Funambol, Inc.
* Copyright (C) 2003 - 2007 Funambol, Inc.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by
* the Free Software Foundation w... |
<commit_before>/*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
<commit_before>////////////////////////////////////////////////////////////
//
// The MIT License (MIT)
//
// Copyright (c) 2014 stevehalliwell
//
// 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 So... |
<commit_before>/****************************************************************************
urid.hpp - support file for writing LV2 plugins in C++
Copyright (C) 2012 Michael Fisher <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GN... |
<commit_before>#include <gtest/gtest.h>
#include <boost/range/adaptor/transformed.hpp>
class T : public ::testing::Test
{
public:
virtual ~T(){}
};
TEST_F(T, test1)
{
EXPECT_TRUE(true);
}
TEST(F, test2)
{
EXPECT_TRUE(true);
}
<commit_msg>fix style<commit_after>#include <boost/range/adaptor/transformed.hp... |
<commit_before>#include "ATypeEffect.h"
ATypeEffect::ATypeEffect(CPlayer* follower)
{
for (int i = 0; i < 3;++i)
mExplosion[i] = NNAnimation::Create();
wchar_t temp[256] = { 0 };
for (int i = 0; i < 40; i++)
{
wsprintf(temp, L"Sprite/FireSkill/%d.png", i);
for (int j = 0; j < 3; ++j)
mExplosion[j]->AddF... |
<commit_before>namespace gen {
/* Internal functions only to be used from other sources in this directory. */
namespace internal {
/* Writers preference */
struct rw_semaphore {
protected:
std::mutex m{}; // protects both the members of this and the resource
unsigned r{0}, w{0}; // active readers, w... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../Characters/Format.h"
#include "../Characters/CString/Utilities.h"
#include "../Characters/StringBuilder.h"
#include "../Characters/ToString.h"
#include "../Memory/... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2015 libbitcoin developers (see COPYING).
//
// GENERATED SOURCE CODE, DO NOT EDIT EXCEPT EXPERIMENTALLY
//
///////////////////////////////////////////////////////////////////////////////
#ifndef ... |
<commit_before>#pragma once
#include <microscopes/common/macros.hpp>
#include <microscopes/common/typedefs.hpp>
#include <microscopes/common/util.hpp>
#include <microscopes/common/variadic/dataview.hpp>
namespace microscopes{
namespace hdp_hmm{
} // namespace hdp_hmm
} // namespace microscopes<commit_msg>Started fas... |
<commit_before>// Copyright (c) 2017-2019 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INTERNAL_ENDIAN_HPP
#define TAO_PEGTL_INTERNAL_ENDIAN_HPP
#include <cstdint>
#include <cstring>
#include "../config.hpp"
#if defined( _WIN32 ) && !... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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>#include "data_generator.hpp"
#include "feature_generator.hpp"
#include "feature_sorter.hpp"
#include "update_generator.hpp"
#include "feature_bucketer.hpp"
#include "grid_generator.hpp"
#include "statistics.hpp"
#include "../classif_routine.hpp"
#include "../features_vector.hpp"
#include "../index_buil... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#define TIME_TRAY_BALLOON 5000
#define PROJECT "Tsunami++"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
p_session_thread = new QThread();
sessionManager = new tsuManager... |
<commit_before>/**
* @file LLNearbyChatHandler.cpp
* @brief Nearby chat notification managment
*
* $LicenseInfo:firstyear=2009&license=viewergpl$
*
* Copyright (c) 2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to yo... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QObject>
#include <QtWidgets>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
mainWindowIcon(":/Resources/icons/mainWindowIcon.jpg"),
isPlaying(false),
prevButtonIcon(":/Resources/ico... |
<commit_before>#include <iterator>
#include <stdexcept>
#include <string>
#include <vector>
#include <QByteArray>
#include <QDebug>
#include <QFile>
#include <QFileDialog>
#include <QRegExp>
#include <QSettings>
#include <QString>
#include <QStringList>
#include <QTableWidgetItem>
#include <QTextStream>
#include <QtNet... |
<commit_before>AliAnalysisTask *AddTask_dsekihat_lowmass_PbPb(
Bool_t getFromAlien = kFALSE,
TString cFileName = "Config_dsekihat_lowmass_PbPb.C",
TString lFileName = "LMEECutLib_dsekihat.C",
TString calibFileName = "",
UInt_t trigger = AliVEvent::kINT7|AliVEvent::kCentral|AliVEvent::kSemiCentral,
... |
<commit_before>//
// Copyright (C) 2015 Greg Landrum and NextMove Software
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <strin... |
<commit_before>#include <iostream>
#include <algorithm>
#include <iterator>
#include <vector>
#define Iterator typename
#define Functor typename
template <Iterator Iterator_t, Functor Functor_t>
class ConditionalIterator
{
public:
bool operator==(ConditionalIterator<Iterator_t, Functor_t> that) const
{
return... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MIT... |
<commit_before>#include <chrono>
#include <cstring>
#include <ctime>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <signal.h>
#include <sstream>
#include <string>
#include <sys/types.h>
#include <sys/socket.h>
#include <thread>
#include <unistd.h>
#include "libs/exceptionpp/... |
<commit_before>// Copyright (c) 2013-2014 Flowgrammable.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/LICENSE-2.0
//
// Unless required by a... |
<commit_before>#include "command.hh"
#include "hash.hh"
#include "legacy.hh"
#include "shared.hh"
#include "references.hh"
#include "archive.hh"
using namespace nix;
struct CmdHash : Command
{
enum Mode { mFile, mPath };
Mode mode;
Base base = SRI;
bool truncate = false;
HashType ht = htSHA256;
... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "iterator_pack.h"
#include "termwise_helper.h"
#include <vespa/searchlib/fef/matchdata.h>
namespace search::queryeval {
SearchIteratorPack::~SearchIteratorPack() { }
SearchI... |
<commit_before>#include "types.h"
#include "amd64.h"
#include "kernel.hh"
void*
memset(void *dst, int c, size_t n)
{
stosb(dst, c, n);
return dst;
}
int
memcmp(const void *v1, const void *v2, size_t n)
{
const u8 *s1, *s2;
s1 = (const u8*) v1;
s2 = (const u8*) v2;
while(n-- > 0){
if(*s1 != *s2)
... |
<commit_before>#ifndef optional_hh_INCLUDED
#define optional_hh_INCLUDED
#include "assert.hh"
namespace Kakoune
{
template<typename T>
struct Optional
{
public:
constexpr Optional() : m_valid(false) {}
Optional(const T& other) : m_valid(true) { new (&m_value) T(other); }
Optional(T&& other) : m_valid(tru... |
<commit_before>/* Optional packages. You might want to integrate this with your build system e.g. config.h from ./configure. */
#ifndef UTIL_HAVE__
#define UTIL_HAVE__
#ifndef HAVE_ICU
//#define HAVE_ICU
#endif
#ifndef HAVE_BOOST
//#define HAVE_BOOST
#endif
#endif // UTIL_HAVE__
<commit_msg>Get macros from config.h... |
<commit_before>/*
Copyright (C) 2016 Volker Krause <[email protected]>
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) a... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// cache_test.cpp
//
// Identification: tests/common/cache_test.cpp
//
// Copyright (c) 201CACHE_SIZE, Carnegie Mellon University Database Group
//
//===----------------------------... |
<commit_before>// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle 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 the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... |
<commit_before>// Copyright (c) 2019 PaddlePaddle 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 the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// ... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: ANTS.cxx,v $
Language: C++
Date: $Date: 2008/11/15 23:46:05 $
Version: $Revision: 1.19 $
Copyright (c) 2002 Insight Consortium. All... |
<commit_before>/*
* Copyright (C) 2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>/*
* Copyright (c) 2016 Shanghai Jiao Tong University.
* 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/lice... |
<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "json.h"
#include "gtest/gtest.h"
using namespace json;
TEST(without, non_empty) {
EX... |
<commit_before>#include <iostream>
#include "classes/Filter.cpp"
#include "classes/Matrix.cpp"
#include "classes/BlockDiagMatrix.cpp"
#include "classes/Buffer.cpp"
using namespace std;
int main () {
int x = 60;
Matrix a(x,x);
a.identity();
cout << a.toString() << endl << endl;
Matrix b(x,1);
b.fill();
Matr... |
<commit_before>/*
* Copyright (C) 2009 Marc Boris Duerner, Tommi Maekitalo
*
* 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... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) [2016] [BTC.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 limitation the rights
to use, c... |
<commit_before>#include <QApplication>
#include <QLineEdit>
#include <QCheckBox>
#include <QDebug>
#include <QTabFormWidget>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QTabFormWidget* settingsWidget = new QTabFormWidget(0);
settingsWidget->addWidget("Menu A\\/B/A/Field A1",new QLineEdit(),La... |
<commit_before>#include <aery32/all.h>
#include "board.h"
#define LED AVR32_PIN_PC04
#define ADC_PINMASK_ALLCHAN (0xff << 21)
using namespace aery;
using namespace boad;
int main(void)
{
uint16_t result; /* conversion result in bits */
double volt; /* conversion in volts */
/*
* Put your application init... |
<commit_before>#include <QImage>
#include "raster.h"
#include "pixeliterator.h"
#include "rootdrawer.h"
#include "factory.h"
#include "abstractfactory.h"
#include "drawers/rasterimagefactory.h"
#include "drawers/attributevisualproperties.h"
#include "rastervalueimage.h"
using namespace Ilwis;
using namespace Geodrawe... |
<commit_before>// Dijkstra algorithm is well-known algorithm for single-source shortes path problem.
// This file contains Dijkstra algorithm implementation.
//
// Copyright (c) savrus, 2014
#pragma once
#include <vector>
#include <cassert>
#include "graph.hpp"
#include "binheap.hpp"
#include "kheap.hpp"
// Data str... |
<commit_before>#include "ShadingWithLightCulling.h"
#include "EngineShaderFactory.hpp"
#include "Director.h"
using namespace Device;
using namespace Core;
using namespace Rendering;
using namespace Rendering::Light;
using namespace Rendering::Buffer;
using namespace Rendering::Shader;
using namespace GPGPU::DirectComp... |
<commit_before>// Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "StdAfx.h"
#include "BatchEncoder.h"
#include "utilities\Utilities.h"
#include "BatchEncoderWorkerContext.h"
CBatchEncoderWorkerContext::... |
<commit_before>#include "stdafx.h"
#include "CallbackHelper.h"
// *****************************************************************
// GDALProgressCallback()
// *****************************************************************
int CPL_STDCALL GDALProgressCallback(double dfComplete, const char* pszMessage, voi... |
<commit_before>/* Copyright (c) 2010-2017, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should h... |
<commit_before>//===-- lldb.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>//
//
// Created by Steven Massey on 4/15/19.
// Copyright © 2019 Steven Massey. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include "m3.hpp"
#include <time.h>
extern "C"
{
# include "m3_core.h"
}
#include "m3_host.h"
void m3Output (const char * i_string)
{
printf ("%s\n"... |
<commit_before>#include <ctrcommon/app.hpp>
#include <ctrcommon/input.hpp>
#include <ctrcommon/platform.hpp>
#include <ctrcommon/ui.hpp>
#include <stdio.h>
#include <sstream>
#include <iomanip>
#include <sys/dirent.h>
typedef enum {
INSTALL_CIA,
DELETE_CIA,
DELETE_TITLE,
LAUNCH_TITLE... |
<commit_before>#include <type_traits>
#define GLM_FORCE_RADIANS
#include <glow/VertexArrayObject.h>
#include <glow/Error.h>
#include <glow/StaticStringSource.h>
#include <glow/Program.h>
#include <glow/Buffer.h>
#include <glow/VertexAttributeBinding.h>
#include <glowutils/StringTemplate.h>
#include <glowwindow/Cont... |
<commit_before>
#include <QSurfaceFormat>
#include <QWidget>
#include "Application.h"
#include "Viewer.h"
#include "Canvas.h"
#include "Painter.h"
int main(int argc, char* argv[])
{
int result = -1;
Application app(argc, argv);
{
QScopedPointer<Viewer> viewer(new Viewer());... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2006-2015 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
... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <atomic>
#include <mutex>
#include <tbb/tbb.h>
#include <unordered_map>
using namespace tbb;
using namespace std;
inline uint64_t hashKey(uint64_t k) {
// MurmurHash64A
const uint64_t m = 0xc6a4a7935bd1e995;
const int r = 47;
uint64_t h = 0x84... |
<commit_before>/* Copyright (C) 2013 Slawomir Cygan <[email protected]>
*
* 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>#include "AvlTree.h"
#include <algorithm>
#include <cassert>
#include <utility>
AvlNode AVLNIL = {-1, -1, &AVLNIL, &AVLNIL, &AVLNIL};
#define is_nil(e) ((e) == &AVLNIL)
#define not_nil(e) ((e) != &AVLNIL)
#define set_nil(e) ((e) = &AVLNIL)
#define get_height(left, right) (std::max((left)->height, (righ... |
<commit_before>#include <Dpdk/DpdkNetInterface.h>
#include <Packet.h>
#include <string.h>
extern "C"
{
#include <rte_config.h>
#include <rte_common.h>
#include <rte_eal.h>
#include <rte_mbuf.h>
#include <rte_ethdev.h>
}
namespace nshdev
{
constexpr size_t MAX_PKT_BURST = 32;
struct EtherOriginInfo: public OriginInf... |
<commit_before>/***************************************************************************
* Copyright (c) Jürgen Riegel ([email protected]) 2002 *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>
/***************************************************************************
* Copyright (c) 2015 WandererFan <[email protected]> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>#include "ProtocolSimpleNisse.h"
#include "NisseService.h"
using namespace ThorsAnvil::Nisse::ProtocolSimple;
ReadMessageHandler::ReadMessageHandler(NisseService& parent, LibEventBase* base, ThorsAnvil::Socket::DataSocket&& so)
: NisseHandler(parent, base, so.getSocketId(), EV_READ)
, socket(st... |
<commit_before>//#define RemCorReaPri_DEBUG
#include <stdexcept>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <config.hh>
#ifdef USE_DBXML
#include <dbxml/DbXml.hpp>
#endif // USE_DBXML
#include <AlpinoCorpus/Error.h... |
<commit_before>// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.
#include "usb_pipe.h"
#include <cstdlib>
#include <cstring>
#include <zconf.h>
#include "usbhost.h"
#include "usb_endpoint.h"
#include <linux/usbdevice_fs.h>
#include "android_uvc.h"
... |
<commit_before>// OpenLieroX
// Input box
// Created 30/3/03
// Jason Boettcher
// code under LGPL
#include "LieroX.h"
#include "MathLib.h"
#include "DeprecatedGUI/Menu.h"
#include "GfxPrimitives.h"
#include "StringUtils.h"
#include "DeprecatedGUI/CBox.h"
namespace DeprecatedGUI {
///////////////////
// Draw t... |
<commit_before>/***
* Copyright (c) 2013, Dan Hasting
* 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, ... |
<commit_before>#include "hierarchy.h"
#include "engine/blob.h"
#include "engine/engine.h"
#include "engine/hash_map.h"
#include "engine/json_serializer.h"
#include "engine/property_register.h"
#include "universe.h"
namespace Lumix
{
static const ComponentType HIERARCHY_TYPE_HANDLE = PropertyRegister::getComponentTy... |
<commit_before>
namespace cusim
{
namespace detail
{
template< typename tCount > __device__ inline
tCount warp_prefix( unsigned aWTID, tCount aValue )
{
/* The PTX version results in much tighter code than the C version.
* The C version produces four instructions per step (a ISETP,
* IADD, SHFL and ... |
<commit_before><commit_msg>Complete the solution to the second part of question 3.7<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2012 The WebM 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. All... |
<commit_before>#include <lug/Graphic/Vulkan/Loader.hpp>
namespace lug {
namespace Graphic {
namespace Vulkan {
// TODO: Handle errors
Loader::Loader() {
#if defined(LUG_SYSTEM_WINDOWS)
_handle = System::Library::open("vulkan-1.dll");
#else
_handle = System::Library::open("libvulkan.so.1");
#endif
#de... |
<commit_before>#include "ws2812b.h"
int WS2812B_init(WS2812B *self, int pin, Colour *pixels, int flags, unsigned int columns, unsigned int rows)
{
if (digitalPinToPort(pin) == NOT_A_PIN) return 1;
self->port = portOutputRegister(digitalPinToPort(pin));
self->bit = digitalPinToBitMask(pin);
self->pin = pin;
... |
<commit_before><?hh // strict
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ ... |
<commit_before>// -*- mode: c++ , encoding: utf-8 -*-
/**
* tbrpg – Text based roll playing game
*
* Copyright © 2012, 2013 Mattias Andrée ([email protected])
*
* 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 Fre... |
<commit_before>#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <cstdint>
#include <cstdlib>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
using std::atof;
using std::count;
using std::cout;
using std::cerr... |
<commit_before>/*
* Copyright (C) 2007-2009 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, t... |
<commit_before>#include <GraphFilter.h>
#include <Graph.h>
#include <iostream>
using namespace std;
bool
GraphFilter::processTemporalData(Graph & target_graph, time_t start_time, time_t end_time, float start_sentiment, float end_sentiment, Graph & source_graph, RawStatistics & stats) {
auto & sid = source_graph... |
<commit_before>#include <assert.h>
#include <string.h>
#include <gcrypt.h>
#include <unistd.h>
GCRY_THREAD_OPTION_PTHREAD_IMPL;
#include "Logger.h"
#include "CEncrypt.h"
//https://gnupg.org/documentation/manuals/gcrypt/Working-with-cipher-handles.html#Working-with-cipher-handles
//https://gnupg.org/documentation/manu... |
<commit_before><commit_msg>split in progress<commit_after><|endoftext|> |
<commit_before>/*
Copyright [2016] [Ganger Games]
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>
#pragma once
#include <string> // for size_t
#include "Field_Dimensions.hpp"
/// all distances in meters
/// all times in seconds
/// all weights in kilograms
// Number of identifiable robots on one team
const size_t Num_Shells = 16;
// Number of playing robots on one team
const size_t Robots_Per_... |
<commit_before>#include "GameState.h"
#include "Batcher.h"
#include "DDSLoader.h"
#include "File.h"
#include "Math.h"
#include "OpenGL.h"
#include "Profile.h"
#include "StateMachine.h"
#include "World.h"
static vec2 windowToView(StateMachine* stateMachine, const vec2& p)
{
const float ww = stateMachine->getWindowWidt... |
<commit_before>// Copyright 2015 Alessio Sclocco <[email protected]>
//
// 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 requir... |
<commit_before>
uint8_t USBPutChar(uint8_t c);
// press() adds the specified key (printing, non-printing, or modifier)
// to the persistent key report and sends the report. Because of the way
// USB HID works, the host acts like the key remains pressed until we
// call release(), releaseAll(), or otherwise clear the ... |
<commit_before>#include "Heap.h"
#include "Managed.h"
namespace magpie
{
Heap::Heap()
: memory_(NULL),
free_(NULL),
end_(NULL) {}
Heap::~Heap()
{
if (memory_ != NULL) operator delete(memory_);
}
void Heap::initialize(size_t size)
{
ASSERT(memory_ == NULL, "Already initialized.");
... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief EEPROM ドライバー
@author 平松邦仁 ([email protected])
*/
//=====================================================================//
#include <cstdint>
#include "common/i2c_io.hpp"
#include "common/time.h"
na... |
<commit_before>#include <sirius.h>
using namespace sirius;
void test1()
{
int N = 400;
matrix<double_complex> A(N, N);
matrix<double_complex> B(N, N);
matrix<double_complex> C(N, N);
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++) B(j, i) = utils::random<double_complex>();
... |
<commit_before>// Bit buffer used for assembling tracks
#include "SAMdisk.h"
#include "TrackBuffer.h"
TrackBuffer::TrackBuffer (bool mfm)
: m_mfm(mfm)
{
}
void TrackBuffer::addByte (int data, int clock)
{
for (auto i = 0; i < 8; ++i)
{
addBit((clock & 0x80) != 0);
addBit((data & 0x80) != 0);
clock <<= 1;
... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 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)
//======================================... |
<commit_before>#include "native/UriTemplate.hpp"
#include "native/UriTemplateFormat.hpp"
#include "native/UriTemplateValue.hpp"
#include "native/helper/trace.hpp"
#if NNATIVE_USE_RE2 == 1
#include <re2/re2.h>
#elif NNATIVE_USE_STDREGEX == 1
#include <regex>
#else
#endif // elif NNATIVE_USE_STDREGEX == 1
#include <s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.