text stringlengths 54 60.6k |
|---|
<commit_before>/*************************************************************************
*
* $RCSfile: NeonUri.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: kso $ $Date: 2002-08-21 07:34:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>/******************************************************************************
* Copyright 2018 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 2018 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>/*****************************************************************************
* EPGRuler.coo: EPGRuler
****************************************************************************
* Copyright © 2009-2010 VideoLAN
* $Id$
*
* Authors: Ludovic Fauvet <[email protected]>
*
* This program is free softwa... |
<commit_before>/*
* server_test.cpp
*
* Created on: Jan 16, 2013
* Author: mfleder
*/
#include <stdio.h>
#include <lcm/lcm-cpp.hpp>
#include <boost/shared_ptr.hpp>
#include "affordance/AffordanceServer.h"
#include "affordance/AffordanceUpWrapper.h"
#include "affordance/AffordanceState.h"
#include <iostream>... |
<commit_before>// Simple Chatterbox client written in C++
// Many of the functions are taken from the excellent Winsock FAQ at
// http://tangentsoft.net/wskfaq/
#include <iostream>
#include <string>
#include <stdexcept>
#include <winsock2.h>
// #include <winsock.h>
using namespace std;
class WASDataWrapper {
WSAD... |
<commit_before>//@author A0094446X
#include "stdafx.h"
#include <QApplication>
#include <QList>
#include <QPair>
#include "task_panel_manager.h"
namespace You {
namespace GUI {
using Date = boost::gregorian::date;
const QString MainWindow::TaskPanelManager::TASK_COLUMN_1 = "Hidden ID Column";
const QString MainWindow:... |
<commit_before>#include "stdafx.h"
#include "internal/parser.h"
#include "exception.h"
using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert;
#pragma region boost::variant visitor helpers
namespace {
struct ToStringVisitor : public boost::static_visitor<std::wstring> {
template<typename T>
std::wst... |
<commit_before>namespace TAnomalyDetection {
/////////////////////////////////////////////
/// Nearest Neighbor based Annomaly Detection.
void TNearestNeighbor::UpdateDistance(const int& ColId, const int& IgnoreCol) {
// get vector we update distances for and precompute its norm
const TIntFltKdV& ColVec = Mat[... |
<commit_before> /**
* global_odom_to_tf.cpp
* Broadcast transform between local_origin and fcu.
*
* @author Syler Wagner <[email protected]>
* @date 2016-07-01 syler creation
*
* This node listens for odometry messages on the /mavros/global_position/local topic
* and broadcasts a transform between lo... |
<commit_before>/*
* SPDX-FileCopyrightText: 2017-2017 CSSlayer <[email protected]>
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
#include "ime.h"
#include "config.h"
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream_buffer.hpp>
#include <boost/range/adaptor/reversed.hpp>
#... |
<commit_before>#include "SliceRenderer.h"
#include "GLBlaat/GL.h"
#include "GLBlaat/GLFramebuffer.h"
#include "GLBlaat/GLTextureManager.h"
#include "View.h"
#include "Renderables/Renderable.h"
#include "Renderables/VBOMesh.h"
namespace NQVTK
{
// -------------------------------------------------------... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageStack.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
T... |
<commit_before>/*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file... |
<commit_before>//===- unittest/Support/ProgramTest.cpp -----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// https://core.telegram.org/bots/api#making-requests
#include "../Logger.h"
#include "../Network.h"
#include "../User.h"
#include "../device/Switch.h"
#include "../device/Text.h"
#include "Telegram.h"
namespace micasa {
extern std::shared_ptr<Logger> g_logger;
extern std::shared_ptr<Network> g_net... |
<commit_before>
#include <memory>
#include <jsapi.h>
#ifndef MOZJS_MAJOR_VERSION
#include <jsversion.h>
#endif
#include <QtCore>
#include "webqq_calljs.hpp"
static JSClass global_class = {
"global",
JSCLASS_GLOBAL_FLAGS|JSCLASS_NEW_RESOLVE,
JS_PropertyStub,
#ifdef MOZJS_MAJOR_VERSION
JS_DeletePropertyStub,
#else... |
<commit_before>#include <sstream>
#include <rclcpp/rclcpp.hpp>
#include <std_msgs/String.h>
#include "std_msgs/dds_impl/String_convert.h"
#include <rclcpp/publisher/publisher.hpp>
int main(int argc, char** argv)
{
rclcpp::init(argc, argv);
auto node = rclcpp::create_node("talker");
auto publisher = no... |
<commit_before>/** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this fi... |
<commit_before>//===-- LLVMContext.cpp - Implement LLVMContext ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2012 Chen-Pang He <[email protected]>
//
// 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... |
<commit_before>/*
Copyright (C) 2016-2018 Draios Inc dba Sysdig.
This file is part of falco.
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 ... |
<commit_before>//
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
#include "nf_hardware_stm32_native.h"
HRESULT Library_nf_hardware_stm32_native_nanoFramework_Hardware_Stm32_BackupMemory::
ReadBytes___STATIC__VOID__U4__SZARRAY_U1(CLR_RT_St... |
<commit_before>// Copyright 2013 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><commit_msg>reword, rename .. not much left to do after dtr cept this entire check probably would do well in a SpamFilter object that tracks better.<commit_after><|endoftext|> |
<commit_before>/**
* \file
*/
#include <rleahylib/rleahylib.hpp>
#include <functional>
#include <type_traits>
/**
* \cond
*/
namespace std {
template <>
struct hash<String> {
public:
size_t operator () (String str) const {
// Normalize string
str.Normalize(NormalizationForm::NFC... |
<commit_before>#include "read.h"
#include <boost/dynamic_bitset.hpp>
#include <numeric>
#include <iostream>
std::string ReadBase::bit_to_str(const BitSet &bits) {
size_t str_len = bits.size()/2;
std::string out;
out.resize(str_len);
size_t i = bits.size() -1;
for(size_t stridx = 0; stridx < str_len... |
<commit_before>#include "mitkAffineInteractor.h"
#include "mitkInteractionConst.h"
#include <mitkDataTreeNode.h>
#include "mitkGeometry3D.h"
#include "mitkAffineTransformationOperation.h"
#include "mitkPositionEvent.h"
#include "vtkTransform.h"
#include <mitkRenderWindow.h>
#include <math.h>
mitk::AffineInteractor::A... |
<commit_before>#pragma once
#include "common.hpp"
#include <algorithm> // for std::min, max
namespace rack {
namespace math {
////////////////////
// basic integer functions
////////////////////
/** Returns true if x is odd */
inline bool isEven(int x) {
return x % 2 == 0;
}
/** Returns true if x is odd */
inline... |
<commit_before>/*
Copyright 2002-2013 CEA LIST
This file is part of LIMA.
LIMA 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
(at your option) ... |
<commit_before>//===--- LoadCopyToLoadBorrowOpt.cpp --------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#include "game.hpp"
#include "paddle.hpp"
void PaddleBase::draw() const
{
arduboy.fillRect(x, y, PADDLE_WIDTH, PADDLE_HEIGHT, WHITE);
}
void PaddleBase::move(int16_t distance)
{
int16_t newY = y + distance;
if (newY <= 0)
{
y = 1;
}
else if (newY > HEIGHT - PADDLE_HEIGHT - 1)
{
y = HEIGHT - ... |
<commit_before>/*
* Copyright (C) 2009 Nokia Corporation.
*
* Contact: Marius Vollmer <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
*... |
<commit_before>/*
* Copyright (c) 2010 Matt Fichman
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify... |
<commit_before>#include "CAudioSys.hpp"
#include "CSimplePool.hpp"
#include "CAudioGroupSet.hpp"
namespace urde {
namespace {
std::unordered_map<std::string, TLockedToken<CAudioGroupSet>> mpGroupSetDB;
std::unordered_map<CAssetId, std::string> mpGroupSetResNameDB;
const std::string mpDefaultInvalidString = "NULL";
fl... |
<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><commit_msg>Use std::initializer_list<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <memory>
#include <optional>
#include <unordered_map>
#include <vector>
#include "DNACommon/CMDL.hpp"
#include "DNAMP1/CMDLMaterials.hpp"
#include "Runtime/CFactoryMgr.hpp"
#include "Runtime/CToken.hpp"
#include "Runtime/RetroTypes.hpp"
#include "Shaders/CModelShaders.hpp"
#inclu... |
<commit_before>/*
* illarionserver - server for the game Illarion
* Copyright 2011 Illarion e.V.
*
* This file is part of illarionserver.
*
* illarionserver 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 Soft... |
<commit_before>/*
* This file is part of signon
*
* Copyright (C) 2009-2010 Nokia Corporation.
*
* Contact: Alberto Mardegan <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as publi... |
<commit_before><commit_msg>cppcheck: Possible inefficient checking for emptiness<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2014 Love Park Robotics, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
<commit_before>/*************************************************************************
*
* $RCSfile: unomodel.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: kz $ $Date: 2004-02-25 16:44:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before><commit_msg>Removes move in types.hpp which could prevent RVO<commit_after><|endoftext|> |
<commit_before>//
// Created by dar on 1/25/16.
//
#include <render/block/ChunkRender.h>
#include <render/entity/PlayerRender.h>
#include <render/entity/SimpleShapeRender.h>
#include "../RenderManager.h"
#include "GameRender.h"
#include "../../window/Game.h"
#include "../../core/Core.h"
#include <core/map/entity/Entit... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <fcntl.h>
#include <cerrno>
#include <unistd.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/wait.h>
#in... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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 later version.
cpp-ethereum is dis... |
<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 "webkit/glue/webpreferences.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "third_party/W... |
<commit_before>#include <bench/tests/qdb/quasardb_facade.hpp>
#include <utils/detailed_error.hpp>
#ifdef WIN32
#include <utils/win32.hpp>
#endif
#include <utils/invocation_string.hpp>
#include <qdb/blob.h>
#include <qdb/deque.h>
#include <qdb/hset.h>
#include <qdb/integer.h>
#include <qdb/stream.h>
#include <qdb/tag.h... |
<commit_before>#include <isl/set.h>
#include <isl/union_map.h>
#include <isl/union_set.h>
#include <isl/ast_build.h>
#include <isl/schedule.h>
#include <isl/schedule_node.h>
#include <coli/debug.h>
#include <coli/core.h>
#include <string.h>
#include <Halide.h>
#include "halide_image_io.h"
using namespace coli;
int... |
<commit_before>#include "Halide.h"
using namespace Halide;
constexpr auto block_size = 16;
int main(int argc, char **argv) {
ImageParam in(Float(32), 2, "input");
float alpha = 0.3;
float beta = 0.4;
Func heat2d("heat2dgpu");
Var x("x"), y("y"), x0, y0, x1, y1, rx0, ry0, rx1, ry1;
RDom r(1,... |
<commit_before>/*
* Copyright 2016 neurodata (http://neurodata.io/)
* Written by Disa Mhembere ([email protected])
*
* This file is part of knor
*
* 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 Licens... |
<commit_before>#include <unit_test_merge_text.h>
#include <utils_merge_text.h>
#include <vector>
#include <iostream>
REGISTRY_UNIT_TEST(UnitTestMergeText)
UnitTestMergeText::UnitTestMergeText()
: UnitTestBase("UnitTestMergeText") {
//
}
// --------------------------------------------------------------------... |
<commit_before>/* Copyright 2021 The TensorFlow 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 appl... |
<commit_before>/*************************************************************************
*
* $RCSfile: cacheupdatelistener.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: svesik $ $Date: 2004-04-21 11:58:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>#include "regiondataremote.h"
#include "regionmatrixproxy.h"
#include "workerthread.h"
using namespace petabricks;
using namespace petabricks::RegionDataRemoteMessage;
RegionDataRemote::RegionDataRemote(const int dimensions, const IndexT* size, const RegionDataRemoteObjectPtr remoteObject) {
init(di... |
<commit_before><commit_msg>add MAYACAL<commit_after><|endoftext|> |
<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 "views/bubble/bubble_frame_view.h"
#include <algorithm>
#include "views/bubble/bubble_border.h"
#include "views/bubble/borde... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... |
<commit_before><commit_msg>fixed: function with 4 args (0.9)<commit_after><|endoftext|> |
<commit_before>#include "object_manipulation_actions/actionExecutorInspectLocation.h"
#include <pluginlib/class_list_macros.h>
#include <ork_to_planning_scene_msgs/UpdatePlanningSceneFromOrkAction.h>
//#include <moveit/move_group_interface/move_group.h>
#include <control_msgs/SingleJointPositionActionFeedback.h>
#inclu... |
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "Lic... |
<commit_before>#include "ImageLayer.hpp"
#include "../arch/mpi/mpi.h"
#include "structures/Image.hpp"
#include <algorithm>
#include <cassert>
#include <cstring>
#include <iostream>
namespace PV {
ImageLayer::ImageLayer(const char *name, HyPerCol *hc) { initialize(name, hc); }
int ImageLayer::countInputImages() {
... |
<commit_before>#include "master.hpp"
namespace factor
{
void init_globals()
{
init_mvm();
}
void factor_vm::default_parameters(vm_parameters *p)
{
p->image_path = NULL;
p->datastack_size = 32 * sizeof(cell);
p->retainstack_size = 32 * sizeof(cell);
#ifdef FACTOR_PPC
p->callstack_size = 256 * sizeof(cell);
#el... |
<commit_before>// Copyright (c) 2010 The Native Client Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// NaCl module Pepper extensions interface. Audio API.
// This file implements the untrusted client interface to audio.
#include... |
<commit_before>/*
* Monitor which expects a string on a TCP connection.
*
* author: Max Kellermann <[email protected]>
*/
#include "lb_expect_monitor.hxx"
#include "lb_monitor.hxx"
#include "lb_config.hxx"
#include "pool.hxx"
#include "async.hxx"
#include "gerrno.h"
#include "net/ConnectSocket.hxx"
#include "net/Socke... |
<commit_before>#include "vector.h"
#include "MinIMU9.h"
#include <stdio.h>
MinIMU9::MinIMU9(I2CBus& i2c) : compass(i2c), gyro(i2c)
{
}
void MinIMU9::checkConnection()
{
uint8_t result = compass.readMagReg(LSM303_WHO_AM_I_M);
if (result != 0x3C)
{
fprintf(stderr, "Error getting \"Who Am I\" registe... |
<commit_before>
<commit_msg>Delete 1.cpp<commit_after><|endoftext|> |
<commit_before>#include <nan.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <v8.h>
#include "napi.h"
extern "C" {
#include "rpi_ws281x/ws2811.h"
}
using namespace v8;
#define DEFAULT_TARGET_FREQ 800000
#define DEFAULT_GPIO_PIN 18
#define DEFAULT_DMANUM 10
#define PARAM_FREQ 1
#define PARAM_... |
<commit_before><commit_msg>sim: Fix clang warning for unused variable<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 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, this ... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 3
of the License, or (a... |
<commit_before>#include <v8.h>
#include "js_macros.h"
#ifdef windows
# include <my_global.h>
#endif
#include <mysql.h>
#include <stdlib.h>
#include <string>
v8::Persistent<v8::FunctionTemplate> rest;
JS_METHOD(_mysql) {
if (args.This()->InternalFieldCount() == 0) {
return JS_EXCEPTION("Invalid call format. Use '... |
<commit_before>#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <string.h>
#include <sstream>
#include <fstream>
#include <fcntl.h>
#include <sys/stat.h>
namespace patch {
template<typename T> std::string to_string(const T& n) {
std::ostringstream stm;
stm << n;
return ... |
<commit_before><commit_msg>Relaxed file size check for DMK images<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2015 Cloudius Systems
*/
#pragma once
#include "disk_types.hh"
#include "core/enum.hh"
#include "bytes.hh"
#include "gc_clock.hh"
#include "tombstone.hh"
#include "streaming_histogram.hh"
#include "estimated_histogram.hh"
#include "column_name_helper.hh"
#include "sstables/key.hh"
#inc... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/eff_config/timin... |
<commit_before>/**
* create_cost_function main file. Reads a label.txt and several
* minimalImpactTEDcoefficients.txt to create a single const_function.txt that
* can be used with sbmrm.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <sopnet/segments/SegmentHash.h>
#include <util/exception... |
<commit_before>#pragma once
#include "constants.hpp"
#include "types.hpp"
#include <fstream>
#include <json/json.hpp>
#include <spdlog/spdlog.h>
// Example:
//
// {
// "global": {
// "check_for_updates_on_startup": true,
// "show_in_menu_bar": true
// },
// "profiles": [
// {
// ... |
<commit_before>/**********************************************************************************************/
/* Abstract class for matrix used for millepede2 operation. */
/* Author: [email protected] */
/* ... |
<commit_before>/*
* (C) 2017 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/mem_ops.h>
#if defined(BOTAN_HAS_LOCKING_ALLOCATOR)
#include <botan/locking_allocator.h>
#endif
namespace Botan {
void* allocate_memory(size_t elems, size_t elem_size)
{
#if defin... |
<commit_before>/*
* 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 later version.
*
* Written (W) 2011 Heiko Strathmann
* Copyrig... |
<commit_before>/*
* X.509 SIGNED Object
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/x509_obj.h>
#include <botan/pubkey.h>
#include <botan/oids.h>
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/parsing.h>
#include <botan/p... |
<commit_before>#include "Board.h"
Board::Board() {
m_Board.reserve(9);
m_Board.assign(9,PlayerOptions::EMPTY);
}
std::vector<PlayerOptions>& Board::getBoard() {
return m_Board;
}
bool Board::isValidMove(int move) const {
if(m_Board[move] == PlayerOptions::EMPTY) {
return true;
}
return... |
<commit_before>#include "cpuid.h"
#include "sanitizer_common/sanitizer_common.h"
#include "xray_defs.h"
#include "xray_interface_internal.h"
#include <atomic>
#include <cstdint>
#include <errno.h>
#include <fcntl.h>
#include <iterator>
#include <limits>
#include <tuple>
#include <unistd.h>
namespace __xray {
static ... |
<commit_before>/*
* ti-pga2310
* github.com/kashev/ti-pga2310
*
* An Arduino / Energia Library for control of a Texas Instruments
* PGA2310 Stereo Volume Control.
*
* Kashev Dalmia - [email protected]
*
* PGA2310.cpp
*/
#include "PGA2310.h"
PGA2310::PGA2310 (uint8_t pinCS, uint8_... |
<commit_before>#include <cstring>
#include <iostream>
#include <UnitTest++.h>
#include <TestReporter.h> // Part of UnitTest++
#include <tightdb.hpp>
#include <tightdb/column.hpp>
#include <tightdb/utilities.hpp>
#include <tightdb/query_engine.hpp>
#include <assert.h>
#define USE_VLD
#if defined(_MSC_VER) ... |
<commit_before>//
// Created by Martin Miralles-Cordal on 5/16/2018.
//
#pragma once
#include <util/TypeTraits.hpp>
#include <util/Void.hpp>
#include <concepts>
#include <cstdint>
#include <functional>
#include <iterator>
namespace sys {
template <typename T>
class Maybe
{
public:
// our custom types
usi... |
<commit_before>/**
* @file Singleton.hpp
* @brief Singleton class prototype.
* @author zer0
* @date 2016-04-04
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_PATTERN_SINGLETON_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_PATTERN_SINGLETON_HPP__
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_M... |
<commit_before>/*************************************************************************
*
* $RCSfile: repainttarget.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-03-30 07:38:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>#include <cstdlib>
#include "connection.hpp"
#include "../common/assert.hpp"
#include "../common/message.hpp"
#include "../common/network/tcp_socket.hpp"
#include "rsg.pb.h"
namespace rsg
{
thread_local Connection* connection = nullptr;
}
static void retrieve_rsg_connection_params_from_env(std::s... |
<commit_before>/*
* Copyright 2018 Google, Inc.
*
* 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 conditions and the following ... |
<commit_before>#include "openmc/tallies/filter_energy.h"
#include "openmc/capi.h"
#include "openmc/constants.h" // For F90_NONE
#include "openmc/mgxs_interface.h"
#include "openmc/search.h"
#include "openmc/settings.h"
#include "openmc/xml_interface.h"
namespace openmc {
//==========================================... |
<commit_before>#include "ExecStats.h"
#include <iostream>
#include <iomanip>
#include <cassert>
namespace dev
{
namespace eth
{
namespace jit
{
void ExecStats::stateChanged(ExecState _state)
{
if (!CHECK(m_state != ExecState::Finished))
return;
auto now = clock::now();
if (_state != ExecState::Started)
{
as... |
<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 "webkit/appcache/appcache_group.h"
#include <algorithm>
#include "base/logging.h"
#include "base/message_loop.h"
#include "w... |
<commit_before>/*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
fpa2bv_tactic.cpp
Abstract:
Tactic that converts floating points to bit-vectors
Author:
Christoph (cwinter) 2012-02-09
Notes:
--*/
#include"tactical.h"
#include"fpa2bv_rewriter.h"
#include"simplify_tactic.h"
#include"fpa2bv_ta... |
<commit_before>// Copyright 2015 Adam Grandquist
#include "./catch.hpp"
#include "./test.hpp"
#include "./reql/types.h"
void
reql_test_cur_end_cb(void *data) {
*static_cast<int*>(data) = 0;
}
void
reql_test_cur_error_cb(void *res, void *data) {
if (res != nullptr) {
*static_cast<int*>(data) = 0;
}
}
int
r... |
<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>#include <iostream>
#include <cstdint>
#include <random>
#include <chrono>
#include <vector>
#include <boost/dynamic_bitset.hpp>
#include <bitset>
#include <numeric>
/**
* Lessons learned so far:
* - SIMD registers are used as soon as we compile with -03
* - If we want to get the real speed up (and u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.