text stringlengths 54 60.6k |
|---|
<commit_before>#include <iostream>
#include "Image.hpp"
size_t Image::getIndex(size_t x, size_t y) const {
return x + width * y;
};
size_t Image::getValueFromChannel1(size_t x, size_t y) {
if (x >= width) {
x = width - 1;
}
if (y >= height) {
y = height - 1;
}
return getValueFromChannel1(getIndex(x, y));
}
... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>#include <unistd.h>
#include <set>
#include "vsf.h"
void myscheduler(Host *host, std::set<VM> &vms);
Vsf* framework = Vsf::get_instance();
int main()
{
//set some flags to refresh optional info ahead of time.
//for optional static info, they would be collected when init_host() or init_vms() is ... |
<commit_before>// Formatting library for C++ - Grisu tests
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#define FMT_USE_GRISU std::numeric_limits<double>::is_iec559
#include "fmt/format.h"
#include "gtest.h"
bool reported_skipped;
#... |
<commit_before>#define NEU_DISABLE_ASSERT
//#define NEU_DISABLE_ASSERT_FOR_HEAVY_CALCULATION
#include <iostream>
#include <boost/timer.hpp>
#include <boost/program_options.hpp>
#include <neu/vector_io.hpp>
#include <neu/layers_algorithm.hpp>
#include <neu/kernel.hpp>
//#include <neu/learning_rate_gen/subtract_delta_wei... |
<commit_before><commit_msg>Convert FileVersionInfo NOTIMPLEMENTED()s into a bug.<commit_after><|endoftext|> |
<commit_before>
#pragma once
#include "base/push_deserializer.hpp"
#include <algorithm>
#include "glog/logging.h"
namespace principia {
using std::swap;
namespace base {
namespace internal {
inline DelegatingArrayInputStream::DelegatingArrayInputStream(
std::function<Bytes()> on_empty)
: on_empty_(std:... |
<commit_before>#include <chrono>
#include <cstdint>
#include <map>
#include <string>
#include <thread>
#include <utility>
#include <uv.h>
#include "../log.h"
#include "../message_buffer.h"
#include "../result.h"
#include "../status.h"
#include "../thread.h"
#include "polled_root.h"
#include "polling_thread.h"
using s... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkThread.h"
#include <pthread.h>
#include <errno.h>
#ifndef SK_BUILD_FOR_ANDROID
/**
We prefer the GCC intrinsic implementation of the atomic oper... |
<commit_before><?hh //strict
namespace Diff;
use HackPack\HackUnit\Core\Expectation;
use HackPack\HackUnit\Core\TestCase;
class DifferTest extends TestCase
{
public function testDiffReturnsStringOutput(): void
{
$expected = "--- Original\n+++ New\n@@ @@\n-bc\n+abc\n";
$differ = new Differ();
... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (c) 2009 Dan Leinir Turthra Jensen <admin@leinir.dk>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the ... |
<commit_before>/*
kissStepper - a lightweight library for the Easy Driver, Big Easy Driver, Allegro stepper motor drivers and others that use a Step/Dir interface
Written by Rylee Isitt. September 21, 2015
License: GNU Lesser General Public License (LGPL) V2.1
Despite the existence of several excellent libraries for d... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: thesdsp.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2005-09-07 19:56:05 $
*
* The Contents of this file are made ... |
<commit_before>/*********************************************************************************
- Contact: Brigitte Cheynis b.cheynis@ipnl.in2p3.fr
- Link: http
- Raw data test file :
- Reference run number :
- Run Type: STANDALONE
- DA Type: LDC
- Number of events needed: 500
- Input Files... |
<commit_before>#include "newanalysis.h"
#include "ui_newanalysis.h"
NewAnalysis::NewAnalysis(MainWindow *mainwindow, FileHandler *file_handler, QWidget *parent) :
QMainWindow(parent),
ui(new Ui::NewAnalysis) {
ui->setupUi(this);
this->mainwindow = mainwindow;
this->file_handler = file_handler;
... |
<commit_before>///
/// @file PrimeFinder.cpp
/// @brief Callback, print and count primes and prime k-tuplets
/// (twin primes, prime triplets, ...).
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top leve... |
<commit_before>/* -*- mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
// vim:sts=4:sw=4:ts=4:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s
/*
* Copyright (C) FFLAS-FFPACK 2017
* Written by Pascal Giorgi <pascal.giorgi@lirmm.fr>
* and Clement Pernet <clement.pernet@univ-grenoble-alpes.fr>
* This f... |
<commit_before>//===- Core/Resolver.cpp - Resolves Atom References -----------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>#include <iostream>
using namespace std;
int h;
string printSymbol(char s, int n) {
int i = 0;
string line = "";
for (; i < n; i++) {
line += s;
}
return line;
}
string printSymbol2(char s1, char s2, int n) {
string line = "";
cout << printSymbol(s1, n);
cout << s2;
cout << printSymbol(s... |
<commit_before>#include <string>
#include <cstdio>
#include <cctype>
#include <iostream>
// The lexer returns tokens [0-255] if it is an unknown character, otherwise one
// of these for known things.
enum Token {
tok_eof = -1,
// commands
tok_def = -2,
tok_extern = -3,
// primary
tok_identifier = -4,
tok... |
<commit_before>#pragma once
#include <array>
#include <iostream>
#include <string>
#include <cppformat/format.h>
#include "blackhole/cpp17/optional.hpp"
#include "blackhole/cpp17/string_view.hpp"
using blackhole::cpp17::string_view;
constexpr
std::size_t
parse_argument(const string_view& string, std::size_t& pos) ... |
<commit_before>/**
* This file defines utilities to provide diagnostics to the user from the
* result of the analysis.
*/
#ifndef D2_CORE_DIAGNOSTIC_HPP
#define D2_CORE_DIAGNOSTIC_HPP
#include <d2/detail/decl.hpp>
#include <d2/lock_id.hpp>
#include <d2/thread_id.hpp>
#include <boost/assert.hpp>
#include <boost/mo... |
<commit_before>#ifndef COMPASS_RT_X86_IMPL_H_
#define COMPASS_RT_X86_IMPL_H_
#include "detail/ct/detect_os.hpp"
#include "detail/ct/detect_compiler.hpp"
#include "detail/ct/detect_arch.hpp"
#include "detail/rt/x86_cpuid.hpp"
#include "detail/tags.hpp"
#include "detail/bit_view.hpp"
#include "detail/definitions.hpp"
... |
<commit_before>#include <algorithm>
#include "xUnit++/xUnit++.h"
#include "FileDataspace.hpp"
template<typename DS>
bool containsDS(DS ds, const K3::Value& val)
{
return ds.template fold<bool>(
[val](bool fnd, K3::Value cur) {
if (fnd || val == cur)
return true;
... |
<commit_before>#include "qhexbuffer.h"
#include <QBuffer>
QHexBuffer::QHexBuffer(QObject *parent) : QObject(parent) { }
uchar QHexBuffer::at(int idx) { return this->read(idx, 1).front(); }
bool QHexBuffer::isEmpty() const { return this->length() <= 0; }
void QHexBuffer::replace(int offset, const QByteArray &data)
{
... |
<commit_before>/*
* Copyright (c) 2015 - 2021, Intel Corporation
*
* 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 li... |
<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) 2014, Jan Koester jan.koester@gmx.net
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions a... |
<commit_before>struct bonk { };
void test(bonk X) {
X = X;
}
// RUN: c-index-test -test-annotate-tokens=%s:1:1:5:5 %s
// CHECK: Keyword: "struct" [1:1 - 1:7] StructDecl=bonk:1:8 (Definition)
// CHECK: Identifier: "bonk" [1:8 - 1:12] StructDecl=bonk:1:8 (Definition)
// CHECK: Punctuation: "{" [1:13 - 1:14] StructDe... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
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 Li... |
<commit_before>/*
// Copyright (c) 2018 Intel Corporation
//
// 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>/*
MIT License
Copyright (c) 2017 Arlen Keshabyan (arlen.albert@gmail.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 ... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com>
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 Li... |
<commit_before>#include "multipart.h"
namespace cpr {
Multipart::Multipart(const std::initializer_list<Part>& parts) {
for (auto part = parts.begin(); part != parts.end(); ++part) {
this->parts.push_back(*part);
}
}
}
<commit_msg>std::vector can be constructed via initializer_list... |
<commit_before>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <mapper/mapper.h>
#include "pwm_synth/pwm.h"
int done = 0;
void ctrlc(int)
{
done = 1;
}
void handler_freq(mapper_signal sig, mapper_id instance, const void *value,
int count, mapper_timetag_t *timetag)
{
... |
<commit_before>/*
* Copyright (C) 2019 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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 op... |
<commit_before>/* dhcpclient.cpp - dhcp client request handling
*
* (c) 2011-2016 Nicholas J. Kain <njkain at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistrib... |
<commit_before>#include "Matcher.h"
using cv::vconcat;
using cv::DMatch;
namespace cmt {
void Matcher::initialize(const vector<Point2f> & pts_fg_norm, const Mat desc_fg, const vector<int> & classes_fg,
const Mat desc_bg, const Point2f center)
{
FILE_LOG(logDEBUG) << "Matcher::initialize() call";
//C... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright(c) 2016, Jeff Hutchinson
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met :
//
// * Re... |
<commit_before>// wake.cpp - written and placed in the public domain by Wei Dai
#include "pch.h"
#include "wake.h"
NAMESPACE_BEGIN(CryptoPP)
void WAKE_TestInstantiations()
{
WAKE_OFB<>::Encryption x2;
WAKE_OFB<>::Decryption x4;
}
inline word32 WAKE_Base::M(word32 x, word32 y)
{
word32 w = x+y;
return (w>>8) ^ t... |
<commit_before>//===- Dominators.cpp - Dominator Calculation -----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<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 "sandbox/win/src/process_mitigations.h"
#include "base/win/windows_version.h"
#include "sandbox/win/src/nt_internals.h"
#incl... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of charge, to any person obtaining a copy
of t... |
<commit_before>#include "ex13_44_47.h"
#include <algorithm>
#include <iostream>
std::pair<char*, char*> String::alloc_n_copy(const char* b, const char* e)
{
auto str = alloc.allocate(e - b);
return {str, std::uninitialized_copy(b, e, str)};
}
void String::range_initializer(const char* first, const char* last)... |
<commit_before>
//
// wasm intepreter for asm2wasm output, in a js environment. receives asm.js,
// generates a runnable module suitable as a polyfill.
//
// this polyfills an emscripten --separate-asm *.asm.js file, as a drop-in
// replacement. it writes the wasm module to Module.asm, and sets Module.buffer.
//
#incl... |
<commit_before># ifndef H_GOO_APPLICATION_H
# define H_GOO_APPLICATION_H
# include <sys/types.h>
# include <unistd.h>
# include <signal.h>
# include <string>
# include <map>
# include <utility>
# include <vector>
# include <typeinfo>
# include <cstdlib>
# include <ostream>
# include <cassert>
# include "goo_types.h"
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>#ifndef LIB_MART_COMMON_GUARD_NW_SOCKET_H
#define LIB_MART_COMMON_GUARD_NW_SOCKET_H
/**
* RaiiSocket.hpp (mart-common/nw)
*
* Copyright (C) 2015-2019: Michael Balszun <michael.balszun@mytum.de>
*
* This software may be modified and distributed under the terms
* of the MIT license. See either the LI... |
<commit_before>#ifndef OBJECTS_H
#define OBJECTS_H
/*
Defines an Object::ref type, which is a tagged pointer type.
Usage:
Object::ref x = Object::to_ref(1);//smallint
Object::ref y = Object::to_ref(new(hp) Generic()); //object
if(is_a<int>(x)) {
std::cout << "x = " << as_a<int>(x) << std::endl;
}
if(is_a<Generi... |
<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>//===--- PathDiagnostic.cpp - Path-Specific Diagnostic Handling -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
Copyright (c) 2005, 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>//===--- PathDiagnostic.cpp - Path-Specific Diagnostic Handling -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#pragma once
#include <utility>
#include <type_traits>
#include "any.hpp"
#include <type_list.hpp>
#include <function_deduction.hpp>
#include <member_variable_deduction.hpp>
namespace shadow
{
// free function signature
typedef any (*free_function_binding_signature)(any*);
// member function signatur... |
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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>// Copyright (c) 2011-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/askpassphrasedialog.h>
#inc... |
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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>#ifndef MESSAGES_HPP_
#define MESSAGES_HPP_
#include <cstdint>
namespace protocol {
namespace message {
struct heartbeat_message_t {
enum { ID = 0xFE };
std::uint8_t seq;
} __attribute__((packed));
struct log_message_t {
enum { ID = 0x02 };
char data[255];
};
struct attitude_message_t {
... |
<commit_before>//===- include/seec/Clang/Compile.hpp -------------------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
//... |
<commit_before>// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "askpass... |
<commit_before>#include <qt/delegationitemmodel.h>
#include <qt/walletmodel.h>
#include <interfaces/wallet.h>
#include <validation.h>
#include <qt/bitcoinunits.h>
#include <interfaces/node.h>
#include <interfaces/handler.h>
#include <algorithm>
#include <QDateTime>
#include <QFont>
#include <QDebug>
#include <QThread>... |
<commit_before>#include "Parallel.h"
#include <assert.h>
#include <unistd.h>
#include <future>
#include <iostream>
ParallelCompiler::ParallelCompiler(const vector<ConsUnit>& units, size_t buildCount):
m_Units(units),
m_BuildCount(buildCount)
{
}
int ParallelCompiler::Run(int jobs)
{
if (jobs == 0)
... |
<commit_before>#include "radial_por_lotes.cpp"
#include <gnuplot-iostream.h>
#include "../config.hpp"
int main()
{
arma_rng::set_seed_random();
mat datos;
datos.load(config::sourceDir + "/guia2/datos/XOR_trn.csv");
ic::ParametrosRBF parametros;
ifstream ifs{config::sourceDir + "/guia2/parametrosR... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld
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... |
<commit_before><commit_msg>[VecOps] Spell out the constructor with default element initialization<commit_after><|endoftext|> |
<commit_before>#include "bfs/BFSImageStream.hpp"
#include "bfs/DetailBFS.hpp"
#include "bfs/DetailFileBlock.hpp"
#include "bfs/FileBlock.hpp"
#include "bfs/FileBlockException.hpp"
#include "bfs/MakeBFS.hpp"
#include "bfs/OpenDisposition.hpp"
#include "test/TestHelpers.hpp"
#include <boost/filesystem/path.hpp>
#include... |
<commit_before>#pragma once
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include <iomanip>
#include <cstring>
#include <glog/logging.h>
#include <tudocomp/def.hpp>
names... |
<commit_before>/*
Copyright (C) 2009-2011 qiuu
Copyright (C) 2016 Clownacy
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 you... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2015 Danny "Rapptz" Y.
// 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 righ... |
<commit_before>#include "rdb_protocol/terms/terms.hpp"
#include <string>
#include <utility>
#include "rdb_protocol/datum_stream.hpp"
#include "rdb_protocol/error.hpp"
#include "rdb_protocol/op.hpp"
#include "rdb_protocol/pb_utils.hpp"
namespace ql {
// NOTE: `asc` and `desc` don't fit into our type system (they're ... |
<commit_before>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <strings.h>
#include <string>
#include <sstream>
#include <signal.h>
#include "config/cmd_args.hpp"
#include "config/code.hpp"
#include "utils.hpp"
#include "worker_pool.hpp"
#include "buffer_cache/mirrored.hpp"
#in... |
<commit_before>/**
* @file llpopupview.cpp
* @brief Holds transient popups
*
* $LicenseInfo:firstyear=2001&license=viewergpl$
*
* Copyright (c) 2001-2010, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to you under the ter... |
<commit_before>#ifndef HASH_ID_HPP_
#define HASH_ID_HPP_
#include <chrono>
#include <cstring>
#include <functional>
#include <iomanip>
#include <sstream>
namespace sm {
/**
* 128 bit hash. Can be used as key to unordered containers.
*/
class HashId {
public:
/**
* Initializes to an invalid Hash
*/
inlin... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2016 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// 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 f... |
<commit_before>/*
*
* Author: Jeffrey Leung
* Last edited: 2015-09-19
*
* This C++ file tests the Labyrinth class implementation.
*
*/
#include <exception>
#include <iostream>
#include <stdexcept>
#include "../include/room_properties.hpp"
#include "../include/coordinate.hpp"
#include "../include/labyrinth.hpp"... |
<commit_before>//===-- main.c --------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- X86InstrInfo.cpp - X86 Instruction Information -----------*- C++ -*-===//
//
// 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>//===-- TCPSocket.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>/*
Copyright (c) 2014, 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>
/*
* BSD 3-Clause License
*
* Copyright (c) 2018, mtezych
* 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 ab... |
<commit_before>#include "selfdrive/ui/qt/widgets/drive_stats.h"
#include <QDebug>
#include <QGridLayout>
#include <QJsonObject>
#include <QVBoxLayout>
#include "selfdrive/common/params.h"
#include "selfdrive/ui/qt/request_repeater.h"
const double MILE_TO_KM = 1.60934;
namespace {
QLabel* numberLabel() {
QLabel* ... |
<commit_before><commit_msg>WaE: format string is not a string literal (potentially insecure)<commit_after><|endoftext|> |
<commit_before>#include <gtest/gtest.h>
#include "cpds/node.hpp"
#include "cpds/yaml.hpp"
#include "cpds/exception.hpp"
using namespace cpds;
// enforce local linkage
namespace {
Node buildExportNode()
{
Node node(Map({ { "b", true },
{ "c", 25 },
{ "d", 99.2 },
... |
<commit_before><commit_msg>Change if-out definition.<commit_after><|endoftext|> |
<commit_before>//===--- Diagnostic.cpp - Framework for clang diagnostics tools ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------... |
<commit_before>#include "acmacs-base/time-series.hh"
#include "acmacs-base/rjson-v3-helper.hh"
#include "acmacs-base/string-compare.hh"
#include "acmacs-map-draw/mapi-settings.hh"
#include "acmacs-map-draw/draw.hh"
// ----------------------------------------------------------------------
// "?start": "2019-01", "?en... |
<commit_before>/***********************************************************************
filename: CEGUIAnimationInstance.cpp
created: 7/8/2010
author: Martin Preisler
purpose: Implements the AnimationInstance class
*************************************************************************/
/... |
<commit_before>#include "latticePair.hpp"
awgPair::awgPair(unsigned long baudRate, double clockFrequency) {
_masterAWG.clockFrequency(clockFrequency);
_masterAWG.baudRate(baudRate);
_masterAWG.waveName(std::string("MASTER.WFM"));
_slaveAWG.clockFrequency(clockFrequency);
_slaveAWG.baudRate(baudRate);
_slaveAWG.... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: drawdoc.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2007-04-25 08:53:18 $
*
* The Contents of this file are made a... |
<commit_before>/*
* Copyright 2007-2017 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<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 "build/build_config.h"
// Need to include this before most other files because it defines
// IPC_MESSAGE_LOG_ENABLED. We need... |
<commit_before>/**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Logging functions.
*/
#include "thcrap.h"
#include <io.h>
#include <fcntl.h>
#include <ThreadPool.h>
// -------
// Globals
// -------
static HANDLE log_file = INVALID_HANDLE_VALUE;
static bool console_open = false;
s... |
<commit_before>// This file is part of UDPipe <http://github.com/ufal/udpipe/>.
//
// Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. ... |
<commit_before>#include <sys/time.h>
#include "thread_private.h"
#include "parameters.h"
#define NUM_PAGES (40960 * nthreads)
bool align_req = false;
int align_size = PAGE_SIZE;
extern bool verify_read_content;
void check_read_content(char *buf, int size, off_t off)
{
// I assume the space in the buffer is larger... |
<commit_before>#include <QtTest/QtTest>
#include <QLocalSocket>
#include <gui/shell.h>
#include "common.h"
namespace NeovimQt {
class Test: public QObject
{
Q_OBJECT
private slots:
void benchStart() {
QBENCHMARK {
NeovimConnector *c = NeovimConnector::spawn();
QSignalSpy onReady(c, SIGNAL(ready()));
QVER... |
<commit_before>/*
* (C) Copyright 2014 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org... |
<commit_before>/*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org... |
<commit_before>#include <other/core/python/config.h> // Must be included first
#ifdef USE_OPENEXR
#include <OpenEXR/ImfRgbaFile.h>
#include <OpenEXR/ImfArray.h>
#endif
#include <other/core/image/ExrFile.h>
#include <other/core/image/Image.h>
#include <other/core/array/Array2d.h>
#include <other/core/vector/Vector3d.h>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.