text stringlengths 54 60.6k |
|---|
<commit_before>#include <algorithm>
#include <stack>
#include <variant>
#include "dDNNFTreeDecompositionBuilder.h"
/* Turn a bounded-treewidth circuit c for which a tree decomposition td
* is provided into a dNNF rooted at root, following the construction in
* Section 5.1 of https://arxiv.org/pdf/1811.02944 */
dDNN... |
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*-
uiserver/uiserver.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 Public License as p... |
<commit_before>//
// Implements the following classes:
//
// AutoDialog - An improvement to wxDialog which makes validation easier.
//
// AutoPanel - An improvement to wxPanel which makes validation easier.
//
// wxNumericValidator - A validator capable of transfering numeric values.
//
// Copyright (c) 2001-2006 Virtu... |
<commit_before>//===-- MachineFunction.cpp -----------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>//===-- X86Subtarget.cpp - X86 Subtarget Information ------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Nate Begeman and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===------... |
<commit_before>//===-- X86Subtarget.cpp - X86 Subtarget Information ------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "spellingproduceswarningstest.h"
#include <QUrl>
#include <QFileInfo>
#include <QThread>
#include <QStringList>
#include "integrationtestbase.h"
#include "signalwaiter.h"
#include "../../xpiks-qt/Commands/commandmanager.h"
#include "../../xpiks-qt/Models/artitemsmodel.h"
#include "../..... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2011. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#if qHasFeature_libcurl
#include <curl/curl.h>
#endif
#include "../../../Characters/Format.h"
#include "../../../Execution/Exceptions.h"
#include "Client_libcurl.h"
using namespace Str... |
<commit_before><commit_msg>Added a forgotten VPackBuilder.close() in Traversalnode to VPack. This caused the query planner to fail at certain cases<commit_after><|endoftext|> |
<commit_before>#include "VirtualHIDManager.hpp"
#define super IOService
OSDefineMetaClassAndStructors(org_pqrs_driver_VirtualHIDManager, IOService);
bool org_pqrs_driver_VirtualHIDManager::init(OSDictionary* dict) {
if (!super::init(dict)) {
return false;
}
attachedClientCount_ = 0;
virtualHIDPointing_ =... |
<commit_before>// Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "TestFixtures/Decoration.hpp"
#include <autowiring/AutoPacketFactory.h>
#include <autowiring/AutoPacketGraph.h>
#include CHRONO_HEADER
#include THREAD_HEADER
class AutoPacketGraphTest:
public testing::Test
{... |
<commit_before>#include <iostream>
#include <iterator>
#include <algorithm>
#include <vector>
#include <cstdlib>
void assertTrue(bool actual)
{
std::cout << "Test " << (actual ? "Pass" : "FAIL") << std::endl;
}
void assertFalse(bool actual)
{
std::cout << "Test " << (!actual ? "Pass" : "FAIL") << std::endl;
}... |
<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>#include "../../util/token.h"
#include "../../util/tokenreader.h"
#include <exception>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <string>
#include <math.h>
using namespace std;
class Failure: public exception{
public:
Failure(int num):
num(num){
}
int num;
};
... |
<commit_before>/*
* This file is part of the bitcoin-classic project
* Copyright (C) 2017 Tom Zander <[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 Free Software Foundation, either version ... |
<commit_before>/*
* (C) 2017 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "tests.h"
#if defined(BOTAN_HAS_ASN1)
#include <botan/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/asn1_print.h>
#endif
namespace Botan_Tests {
#if defined(BOTAN_HAS_ASN1)
... |
<commit_before>#include "thread_renderer.h"
#include "audio_nodes.h"
#include "recorder_node.h"
namespace cieq {
ThreadRenderer::ThreadRenderer(AudioNodes& nodes, int frames_per_unit, int fft_size, int viewable_frames)
: mViewableFrames(viewable_frames)
{
int num_blocks = (nodes.getBufferRecorderNode()->getNumFrame... |
<commit_before>//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
//
// Code that is used by both the Unix corerun and coreconsole.
//
#include <cstdlib>
#include <assert.h>
#include <dirent.h>
#include <dlfcn.h... |
<commit_before>/*
Copyright (c) 2003, 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 "MPU6886.h"
#include <math.h>
#include <Arduino.h>
#include "../M5Stack.h"
#include "MahonyAHRS.h"
MPU6886::MPU6886(){
}
void MPU6886::I2C_Read_NBytes(uint8_t driver_Addr, uint8_t start_Addr, uint8_t number_Bytes, uint8_t *read_Buffer){
M5.I2C.readBytes(driver_Addr, start_Addr, number_Bytes... |
<commit_before>#include "orbit_mpi.hh"
#include "wrap_utils.hh"
#include "wrap_matrix.hh"
#include "wrap_phase_vector.hh"
#include "wrap_py_base_field_source.hh"
namespace wrap_orbit_utils{
void error(const char* msg){ ORBIT_MPI_Finalize(msg); }
static PyMethodDef UtilsModuleMethods[] = { {NULL,NULL} };
#ifde... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon ([email protected])
Version 1.1.0, packaged on March, 2009.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can re... |
<commit_before>/*
This file is part of khmer, https://github.com/dib-lab/khmer/, and is
Copyright (C) 2010-2015, Michigan State University.
Copyright (C) 2015, The Regents of the University of California.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the f... |
<commit_before>/** \copyright
* Copyright (c) 2013, Balazs Racz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice... |
<commit_before>#ifndef STAN_MATH_OPENCL_MATRIX_CL_HPP
#define STAN_MATH_OPENCL_MATRIX_CL_HPP
#ifdef STAN_OPENCL
#include <stan/math/opencl/opencl_context.hpp>
#include <stan/math/opencl/matrix_cl_view.hpp>
#include <stan/math/opencl/err/check_opencl.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/p... |
<commit_before>// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/bridge_task_runner.h"
#include "base/message_loop/message_loop.h"
namespace atom {
void BridgeTaskRunner::MessageLoopIsReady() {
auto message... |
<commit_before>class Solution {
public:
/*
* param k : As description.
* param n : As description.
* return: How many k's between 0 and n.
*/
int digitCounts(int k, int n) {
// write your code here
int result = 0;
int base = 1;
while (n/b... |
<commit_before>
#include "astronomy/frames.hpp"
#include "gtest/gtest.h"
#include "physics/solar_system.hpp"
namespace principia {
using physics::SolarSystem;
namespace astronomy {
class TrappistDynamicsTest : public ::testing::Test {
protected:
};
TEST_F(TrappistDynamicsTest, Smoke) {
SolarSystem<Trappist> tra... |
<commit_before>class Solution {
public:
/*
* @param n an integer
* @return the nth prime number as description.
*/
set<int> a;
int nthUglyNumber(int n) {
// write your code here
if (n<=0) return -1;
a.clear();
a.insert(1);
listAllUglyNumberFactorBy(... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <set>
#include <map>
#include <random>
#include <chrono>
#include <functional>
#include <algorithm>
#include <cmath>
#define SPLIT 20
struct Entry
{
double SL, SW, PL, PW;
std::string Class;
};
using IntPair ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: testbasi.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-07 19:16:15 $
*
* The Contents of this file are made ... |
<commit_before>// BSD 2-Clause License, see github.com/ma16/rpio
#include "../invoke.h"
#include <Device/Ds18x20/Bang.h>
#include <Posix/base.h>
#include <Ui/strto.h>
#include <cstring> // memset
// [todo] command line options: timing and ARM counter frequency
template<size_t N> static void print(std::bitset<N> cons... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: macrconf.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2007-10-09 15:30:34 $
*
* The Contents of this file are made ... |
<commit_before>/**
* @file nystroem_method_impl.hpp
* @author Ryan Curtin
* @author Marcus Edel
*
* Implementation of the Nystroem method for approximating a kernel matrix.
*/
#ifndef __MLPACK_METHODS_NYSTROEM_METHOD_NYSTROEM_METHOD_IMPL_HPP
#define __MLPACK_METHODS_NYSTROEM_METHOD_NYSTROEM_METHOD_IMPL_HPP
// In... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ik_singleton.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-07 16:17:13 $
*
* The Contents of this file are m... |
<commit_before>/*************************************************************************
*
* $RCSfile: all_tags.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2004-11-15 13:31:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: reposy.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-07 17:15:06 $
*
* The Contents of this file are made av... |
<commit_before>#include "nodes/EANode/systems/ES/CMSA_ES.hpp"
#include "core/utils/HierRNG.hpp"
#include <math.h>
#include <unsupported/Eigen/MatrixFunctions>
CMSA_ES::CMSAMutation::CMSAMutation(
unsigned int lambda
) : AdaptiveRealValueMutation() {
this->lambda = lambda;
}
CMSA_ES::CMSAMutation::CMSAMutation(
uns... |
<commit_before>#pragma once
#include "openMVG/robust_estimation/rand_sampling.hpp"
#include "openMVG/robust_estimation/robust_estimator_ACRansac.hpp"
#include "openMVG/robust_estimation/robust_ransac_tools.hpp"
#include <limits>
#include <numeric>
#include <iostream>
#include <vector>
#include <iterator>
namespace op... |
<commit_before>#include <memory>
#include <random>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include <cstdio> // only __FILE__ __LINE__ macros
#include <map>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.... |
<commit_before>#include "SimpleWindow.hpp"
#include <QHBoxLayout>
#include <QApplication>
using namespace fast;
void SimpleWindow::addRenderer(Renderer::pointer renderer) {
mView->addRenderer(renderer);
}
void SimpleWindow::setMaximumFramerate(unsigned char framerate) {
mFramerate = framerate;
}
SimpleWindow... |
<commit_before>// *****************************************************************************
//
// Copyright (c) 2015, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... |
<commit_before>/*!
\copyright (c) RDO-Team, 2011
\file main.cpp
\authors ([email protected])
\authors ([email protected])
\date 10.05.2009
\brief
\indent 4T
*/
// ---------------------------------------------------------------------------- PCH
// -----------------... |
<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 "base/metrics/stats_counters.h"
#include "base/metrics/stats_table.h"
#include "base/shared_memory.h"
#include "base/stringpri... |
<commit_before>/******************************************************************************
This source file is part of the ChemData project.
Copyright 2012 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, so... |
<commit_before>/*************************************************************************
*
* $RCSfile: jvmargs.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2004-11-09 13:54:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*
OF-TangibleFramework . Framework for Taller de Sistemes Interactius I
Universitat Pompeu Fabra
Copyright (c) 2010 Carles F. Julià <[email protected]>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation... |
<commit_before>/*****************************************************************************
Copyright 2004 Steve M�nard
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>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the QtQml module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General P... |
<commit_before>//==============================================================================
// Heun solver class
//==============================================================================
#include "heunsolver.h"
//==============================================================================
namespace Open... |
<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 "net/base/ssl_config_service.h"
#if defined(OS_WIN)
#include "net/base/ssl_config_service_win.h"
#elif defined(OS_MACOSX)
#in... |
<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 "net/http/http_network_layer.h"
#include "base/field_trial.h"
#include "base/logging.h"
#include "base/string_util.h"
#includ... |
<commit_before>// Debugging Settings
#define DEBUG
#define DEBUG_V1
#define DEBUG_V2
#define DEBUG_V3
//#define DEBUG_V4
#include <iostream>
#include <iomanip>
#include <memory>
#include <random>
#include <iterator>
#include <functional>
#include <ctime>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#inc... |
<commit_before>#include <unistd.h>
#include <string>
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "FatSystem.h"
#include "FatFilename.h"
#include "FatEntry.h"
#include "utils.h"
using namespace std;
/**
* Open... |
<commit_before># define CATCH_CONFIG_RUNNER
# include "catch.hpp"
# include <cmath>
# include <string>
int gcd(int a, int b)
{
if (b == 0)
{
return a;
}
else if(a==0)
{
return b;
}
else
{
return gcd(b, a%b);
}
}
double mileToKilometer(double mile)
{
double kilometer;
kilometer ... |
<commit_before>// gui.cpp
// GUI for mancala game, using gtkmm
// Copyright Matthew Chandler 2012
#include <iostream>
#include <gdkmm/general.h>
#include <glibmm/fileutils.h>
#include <gtkmm/messagedialog.h>
#include "gui.h"
Mancala_draw::Mancala_draw(Mancala_win * Win): win(Win)
{
add_events(Gdk::BUTTON_PRESS_... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The Descent map loader
//
// NAME : Hog
// PURPOSE : Providing a decoder and wrapper for the Descent .HOG format.
// COPYRIGHT : (c) 2011 Sean Donnellan. All Rights Reserved.
// AUTH... |
<commit_before>#include "assets_editor_window.h"
#include "halley/tools/project/project.h"
#include "halley/core/resources/resource_locator.h"
#include "halley/core/resources/standard_resources.h"
#include "halley/ui/widgets/ui_label.h"
#include "halley/ui/widgets/ui_list.h"
#include "animation_editor.h"
#include "meta... |
<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>/*
* 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 "Lice... |
<commit_before>#include "jsonmerge_tests.h"
#include "../Common/defines.h"
#include "../../xpiks-qt/Helpers/jsonhelper.h"
#include "../../xpiks-qt/Helpers/localconfig.h"
void JsonMergeTests::initTestCase() {
LOG_DEBUG << "App path: " << QDir::currentPath();
}
void JsonMergeTests::mergeTwoFilesObjects() {
QFil... |
<commit_before>/*
* Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* 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 require... |
<commit_before>#pragma once
#include <string>
#include <vector>
#include <unordered_map>
#include <memory>
#include <functional>
namespace warbler {
enum ConsoleArgType
{
STRING,
INT,
FLOAT
};
struct ConsoleArg
{
ConsoleArg() : intValue(0), floatValue(0.0)... |
<commit_before>/**
* @copyright
* ====================================================================
* Copyright (c) 2007 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also availab... |
<commit_before>/* Ameba implementation of NetworkInterfaceAPI
* Copyright (c) 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/LI... |
<commit_before>/* Ameba implementation of NetworkInterfaceAPI
* Copyright (c) 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/LI... |
<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/browser.h"
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/extensions/extension... |
<commit_before>/* Copyright 2015 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>/* Copyright (C) 2018 INRA
*
* 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, merge, pu... |
<commit_before>#include <pxp-agent/util/daemonize.hpp>
#include <pxp-agent/configuration.hpp>
#define LEATHERMAN_LOGGING_NAMESPACE "puppetlabs.pxp_agent.util.daemonize"
#include <leatherman/logging/logging.hpp>
#include <sys/types.h>
#include <stdlib.h> // exit()
#include <unistd.h> // _exit(), getpid... |
<commit_before>// RUN: %clangxx %s -o %t && %run %t
// UNSUPPORTED: ios
#include <assert.h>
#include <grp.h>
#include <memory>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
std::string any_group;
const int N = 123456;
void Check(const char *str) {
if (!str)
retur... |
<commit_before>// RUN: %clangxx -fsanitize=function %s -O3 -g -o %t
// RUN: %run %t 2>&1 | FileCheck %s
// Verify that we can disable symbolization if needed:
// RUN: %env_ubsan_opts=symbolize=0 %run %t 2>&1 | FileCheck %s --check-prefix=NOSYM
#include <stdint.h>
void f() {}
void g(int x) {}
void make_valid_call() ... |
<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>/*
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 © 2011-2012 Stéphane Raimbault <[email protected]>
*
* License ISC, see LICENSE for more details.
*
* This library implements the Modbus protocol.
* http://libmodbus.org/
*
*/
#include <inttypes.h>
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#incl... |
<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>/*
ModbusIP.cpp - Source for Modbus IP Library
Copyright (C) 2015 Andr Sarmento Barbosa
*/
#include "ModbusIP.h"
ModbusIP::ModbusIP():_server(MODBUSIP_PORT) {
}
bool ModbusIP::config(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet) {
Ethernet.begin(mac, ip);
... |
<commit_before>#pragma once
//=========================================================================//
/*! @file
@brief RX24T グループ・DOC 定義
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2017, 2022 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/ma... |
<commit_before>/*
* Copyright (C) 2013 The Android Open Source Project
*
* 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>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>#include "Scheduler.h"
#include <cstdio>
using namespace std;
using namespace boost;
void Scheduler::addConnection(Connection *c)
{
printf("addConnection: source [ %p idx %d ] -> sink [ %p idx %d]\n",
c->m_sourceBlock, c->m_sourceIndex, c->m_sinkBlock, c->m_sinkIndex);
vertex_t ver... |
<commit_before>/*
* Copyright (C) 2015, Nils Moehrle
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
*/
#include <set>
#include <map>
... |
<commit_before>#include <XdmfArray.h>
#include <XdmfHDF.h>
#include <mpi.h>
/// Simple memory buffer implementation that keeps track of it's stream pointer.
class Buffer {
private:
std::size_t m_size;
char* m_data;
char* m_put;
char* m_tell;
public:
Buffer( std::size_t size ) :
m_size( size ),
m_da... |
<commit_before>#include "bf/generator.h"
#include <fstream>
int main(int argc, char **argv) {
bf::generator bfg;
// Helper function to read ascii int from the input
auto read_int = [&bfg](bf::var &var) {
auto input = bfg.new_var("input");
auto ascii_zero = bfg.new_var("ascii_zero", '0');
... |
<commit_before>/*
* Copyright (c) 2016, Ford Motor Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
*... |
<commit_before>#if defined(_MSC_VER)
#include "stdafx.h"
#endif
#include "UnitTests.h"
#include "NULLC/nullc.h"
#include "NULLC/nullc_debug.h"
// Check that remote debug module compiles correctly
#if defined(_MSC_VER)
#include "NULLC/nullc_remote.h"
#endif
#include "NULLC/ParseClass.h"
#include "NULLC/... |
<commit_before>//=============================================================================
// ■ main.cpp
//-----------------------------------------------------------------------------
// VMGS的主程序。
//=============================================================================
#include "VMGS.hpp"
namespace VM76... |
<commit_before>/*
* Copyright 2014 The Imaging Source Europe GmbH
*
* 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 b... |
<commit_before>/*
* MIT License
*
* Copyright (c) 2017 Kevin Kirchner
*
* 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
* ... |
<commit_before>#include "../headers/geom.h"
#include "../headers/util.h"
#include "stdio.h"
namespace geos {
const double maximumPreciseValue=9007199254740992.0;
//double PrecisionModel::makePrecise(double val){
// //return rint(val);
// return ((val >= 0.0) ? floor(val+0.5) : - floor(-val+0.5));
// /*
// * O... |
<commit_before>/**
* Copyright (C) 2011 Trever Fischer <[email protected]>
*
* This program 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
* of the License, or (at your... |
<commit_before>//
// Created by Gerard Canal <[email protected]> on 11/10/18.
//
#include <rosplan_knowledge_msgs/GetAttributeService.h>
#include "rosplan_planning_system/PlanDispatch/PlanDispatcher.h"
namespace KCL_rosplan {
PlanDispatcher::PlanDispatcher(ros::NodeHandle& nh): as_(nh, "dispatch_plan_action", fa... |
<commit_before>/* Copyright 2019 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>/**
* \file
* \brief FpuSignalTestCase class implementation for ARMv7-M (Cortex-M3 / Cortex-M4)
*
* \author Copyright (C) 2015-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* This Source Code Form is subject to the terms of the Mozilla Public License,... |
<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>#include "density.h"
namespace sirius {
void Density::generate_valence_density_it(K_set& ks__)
{
Timer t("sirius::Density::generate_valence_density_it", ctx_.comm());
/* add k-point contribution */
for (int ikloc = 0; ikloc < (int)ks__.spl_num_kpoints().local_size(); ikloc++)
{
... |
<commit_before>///
/// @file pi_deleglise_rivat3.cpp
/// @brief Implementation of the Deleglise-Rivat prime counting
/// algorithm. This implementation is identical to
/// pi_deleglise_rivat2(x) but uses 128-bit integers.
///
/// This implementation is based on the paper:
/// Tomás Oliveira... |
<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 tha... |
<commit_before>#include "Controller.h"
#include <iostream>
#include <chrono>
typedef std::chrono::high_resolution_clock Clock;
typedef std::chrono::duration<double, std::milli> millisec_t;
Controller::Controller() :
m_ballPosOptiTrack(0, 0),
m_ballVelOptiTrack(0, 0),
m_initialized(false)
{
sigmaRef = 0.0;
psiRef... |
<commit_before>/* -*- Mode: C++; c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil -*-
*
* Quadra, an action puzzle game
* Copyright (C) 1998-2000 Ludus Design
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.