text stringlengths 54 60.6k |
|---|
<commit_before><commit_msg>Add placeholder for histogramming non-speculative resolve jobs duration. Review URL: http://codereview.chromium.org/573021<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 1998-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// 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.... |
<commit_before>#ifndef AMGCL_PROFILER_H
#define AMGCL_PROFILER_H
/*
The MIT License
Copyright (c) 2012-2019 Denis Demidov <dennis.demidov@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 Softwa... |
<commit_before>#include "VideodrommControllerApp.h"
/*
TODO
- 2802 imgui contextual window depending on mouseover
- 2802 imgui vertical : textures
- flip horiz
- check flip H and V (spout also)
- sort fbo names and indexes (warps only 4 or 5 inputs)
- spout texture 10 create shader 10.glsl(ThemeFromBrazil) iChannel0
-... |
<commit_before>#include "VideodrommLiveCodingApp.h"
void VideodrommLiveCodingApp::prepare(Settings *settings)
{
settings->setWindowSize(640, 480);
//settings->setBorderless();
settings->setWindowPos(0, 0);
}
void VideodrommLiveCodingApp::setup()
{
// Settings
mVDSettings = VDSettings::create();
// Session
mVDSe... |
<commit_before>#include "VideodrommLiveCodingApp.h"
void VideodrommLiveCodingApp::prepare(Settings *settings)
{
settings->setWindowSize(640, 480);
//settings->setBorderless();
settings->setWindowPos(0, 0);
}
void VideodrommLiveCodingApp::setup()
{
// Settings
mVDSettings = VDSettings::create();
// Session
mVDSe... |
<commit_before>// Copyright 2018 The SwiftShader 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
//
// Un... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before>#include "../promise.h"
#include <gtest/gtest.h>
#include <thread>
using namespace promise;
struct MoveOnly {
int value_;
explicit MoveOnly(int value) : value_(value) {}
PROMISE_DISALLOW_COPY(MoveOnly);
MoveOnly(MoveOnly&& other) : value_(other.value_) {}
MoveOnly& operator=(MoveOnly&& othe... |
<commit_before>/*
* Copyright (c) 2003-2015 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before><commit_msg>make comment and code coherent<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2009 Erik Gilling
*
* 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 law o... |
<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/socket/socket_test_util.h"
#include <algorithm>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#inclu... |
<commit_before>/*********************************************************************
*
* Condor ClassAd library
* Copyright (C) 1990-2001, CONDOR Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI, and Rajesh Raman.
*
* This library is free software; you can redistribute it and/or
* modif... |
<commit_before>#include "GHIElectronics_TinyCLR_Devices_Storage.h"
#include "../GHIElectronics_TinyCLR_InteropUtil.h"
TinyCLR_Result Interop_GHIElectronics_TinyCLR_Devices_Storage_GHIElectronics_TinyCLR_Devices_Storage_Provider_StorageControllerApiWrapper::get_IsPresent___BOOLEAN(const TinyCLR_Interop_MethodData md) {... |
<commit_before>#ifndef DUNE_DETAILED_DISCRETIZATIONS_CONTAINER_FACTORY_EIGEN_HH
#define DUNE_DETAILED_DISCRETIZATIONS_CONTAINER_FACTORY_EIGEN_HH
#ifdef HAVE_EIGEN
// dune-common
#include <dune/common/shared_ptr.hh>
// dune-helper-tools
#include <dune/helper-tools/grid/information.hh>
// local
#include "../backend/c... |
<commit_before>/*
* The MIT License (MIT) Copyright (c) 2015 Devin Carr
*
* 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 "apiHeaderAll.hpp"
#include "msParam.hpp"
#include "reGlobalsExtern.hpp"
#include "irods_ms_plugin.hpp"
// =-=-=-=-=-=-=-
// STL Includes
#include <string>
#include <iostream>
// =-=-=-=-=-=-=-
// cURL Includes
#include <curl/curl.h>
#include <curl/easy.h>
typedef struct... |
<commit_before>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
/* -------------------------------------------------------------------------
ATS
License: see $ATS_DIR/COPYRIGHT
Author: Ethan Coon
Default base with default implementations of methods for a physical PK.
--------... |
<commit_before>#ifndef INCLUDE_ACKWARD_CORE_EXCEPTIONS_HPP
#define INCLUDE_ACKWARD_CORE_EXCEPTIONS_HPP
/** C++ counterparts to the standard Python exceptions.
*/
#include <Python.h>
#include <exception>
#include <boost/exception/all.hpp>
namespace boost { namespace python { class tuple; } }
namespace ackward {
... |
<commit_before>#ifndef ___INANITY_GRAPHICS_GRAPHICS_HPP___
#define ___INANITY_GRAPHICS_GRAPHICS_HPP___
/*
* Общий файл для подсистемы графики.
* Подсистема графики является сборной. Основная часть подсистемы - заменяемая,
* подменяется конкретными подсистемами (пока только DX).
* А некоторые компоненты являются об... |
<commit_before>#include <gtest/gtest.h>
#include <aikido/statespace/dart/MetaSkeletonStateSpace.hpp>
#include <aikido/constraint/CollisionConstraint.hpp>
#include <aikido/constraint/dart.hpp>
#include <aikido/distance/DistanceMetricDefaults.hpp>
#include <aikido/ompl/OMPLPlanner.hpp>
#include <ompl/geometric/planners/r... |
<commit_before>#ifndef MATCHES_DHT_HPP
#define MATCHES_DHT_HPP
#include <Grappa.hpp>
#include <GlobalAllocator.hpp>
#include <GlobalCompletionEvent.hpp>
#include <ParallelLoop.hpp>
#include <BufferVector.hpp>
#include <Metrics.hpp>
#include <list>
#include <cmath>
//GRAPPA_DECLARE_METRIC(MaxMetric<uint64_t>, max_ce... |
<commit_before>// Source : https://leetcode.com/problems/happy-number/
// Author : Hao Chen
// Date : 2015-06-08
/**********************************************************************************
*
* Write an algorithm to determine if a number is "happy".
*
* A happy number is a number defined by the followi... |
<commit_before>//
// Copyright (C) 2017 by the linalgwrap authors
//
/*
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 Softw... |
<commit_before>/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include "ccode.hpp"
#include <kdblogger.h>
namespace
{
/**
* @brief Cast a character to an unsigned character.
*
* @param character This parameter specifies the character this function casts ... |
<commit_before>#include <process/timer.hpp>
namespace process {
class TimerProcess : public Process<TimerProcess>
{
public:
TimerProcess(double _secs,
const UPID& _pid,
std::tr1::function<void(ProcessBase*)>* _dispatcher)
: secs(_secs), pid(_pid), dispatcher(_dispatcher) {}
protec... |
<commit_before>#include "model.h"
#include <algorithm>
#include <functional>
#include <locale>
using namespace std;
TypeUsage::TypeUsage(const ObjectSchema& schema)
: scope(schema.scope), name(schema.name), baseName(schema.name)
{ }
TypeUsage TypeUsage::instantiate(vector<TypeUsage>&& innerTypes) const
{
Ty... |
<commit_before>#include "Halide.h"
using namespace Halide;
#include <image_io.h>
#include <iostream>
#include <limits>
#include <sys/time.h>
using std::vector;
double now() {
struct timeval tv;
gettimeofday(&tv, NULL);
static bool first_call = true;
static time_t first_sec = 0;
if (first_call)... |
<commit_before>//
// EditLineReader is a LineReader that uses the libedit library to read
// input from the user.
//
// Part of ccons, the interactive console for the C programming language.
//
// Copyright (c) 2009 Alexei Svitkine. This file is distributed under the
// terms of MIT Open Source License. See file LICENS... |
<commit_before>// Natron
//
/* 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/. */
//
// Created by Frédéric Devernay on 03/09/13.
//
//
#include "OfxHost.h"
#include... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2007 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>#if !defined(OMR_OM_SLOTDESCRIPTOR_HPP_)
#define OMR_OM_SLOTDESCRIPTOR_HPP_
#include <OMR/Infra/HashUtilities.hpp>
#include <OMR/Infra/Span.hpp>
#include <OMR/Om/Id.hpp>
#include <OMR/Om/Value.hpp>
#include <cstddef>
#include <functional>
namespace OMR {
namespace Om {
/// TODO: Move Ref somewhere el... |
<commit_before>#include <map>
#include <string>
#include "lukki-db-application.h"
#include "vtrc-common/vtrc-thread-pool.h"
#include "vtrc-common/vtrc-rpc-service-wrapper.h"
#include "vtrc-common/vtrc-connection-iface.h"
#include "vtrc-common/vtrc-closure-holder.h"
#include "vtrc-common/vtrc-rpc-channel.h"
#include "... |
<commit_before>#include <osg/Texture2D>
#include <osg/TexGen>
#include <osg/Material>
#include <osg/LightSource>
#include <osg/Geode>
#include <osg/ShapeDrawable>
#include <osgUtil/CullVisitor>
#include <osgUtil/RenderToTextureStage>
#include "CreateShadowedScene.h"
using namespace osg;
class CreateShadowTextureCul... |
<commit_before>#include "simplerendering.hpp"
#include <glutils/baseshader.hpp>
#include <glutils/uniform.hpp>
#include <gl_core_3_3.h>
#include <iostream>
#include <gimgui/logic/attributepopulator.hpp>
#include <gimgui/logic/allpropagator.hpp>
#include <gimgui/logic/absolutemap.hpp>
#include <helpers/vec2.hpp>
#includ... |
<commit_before>/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*/
#include <numeric>
#include <thread>
#include <adios2.h>
#include <adios2/common/ADIOSMacros.h>
#include <adios2/helper/adiosFunctions.h>
#include <gtest/gtest.h>
using namesp... |
<commit_before>/*=============================================================================
# Filename: CppAPIExample.cpp
# Author: Bookug Lobert
# Mail: 1181955272@qq.com
# Last Modified: 2016-02-21 21:32
# Description: originally written by hanshuo, modified by zengli
=======================================... |
<commit_before>/*
Copyright (c) 2011, The Mineserver Project
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>// Halide tutorial lesson 12.
// This lesson demonstrates how to use Halide to run code on a GPU.
// On linux, you can compile and run it like so:
// g++ lesson_12*.cpp -g -I ../include -L ../bin -lHalide -lpthread -ldl -o lesson_12
// LD_LIBRARY_PATH=../bin ./lesson_12
// On os x:
// g++ lesson_12*.c... |
<commit_before>#include <iostream>
#include <ctime>
#include <cstring>
#include <vector>
#include <TRandom2.h>
#include <TMath.h>
#include <TStopwatch.h>
#include <TApplication.h>
#include <TCanvas.h>
#include <TH2F.h>
#include <TGraph.h>
#include <TLegend.h>
#include <TAxis.h>
using namespace std;
const int npass0... |
<commit_before>/* <x0/mod_vhost_basic.cpp>
*
* This file is part of the x0 web server project and is released under LGPL-3.
*
* (c) 2009 Chrisitan Parpart <trapni@gentoo.org>
*/
#include <x0/plugin.hpp>
#include <x0/server.hpp>
#include <x0/request.hpp>
#include <x0/response.hpp>
#include <x0/listener.hpp>
#incl... |
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: FGAerodynamics.cpp
Author: Jon S. Berndt
Date started: 09/13/00
Purpose: Encapsulates the aerodynamic forces (gear and collision)
------------- Copyright (C) 2000 Jon S. Berndt (jsb@hal-pc.or... |
<commit_before>// see [A multi-threaded Producer Consumer with C++11](http://codereview.stackexchange.com/questions/84109/a-multi-threaded-producer-consumer-with-c11)
// note that `lock_guard` is recommended instead of `unique_lock` as it releases lock automatically follow RAII leaving the lock scope.
// see also [](ht... |
<commit_before>#include "caffe2/utils/threadpool/ThreadPool.h"
#include "caffe2/core/logging.h"
CAFFE2_DEFINE_bool(caffe2_threadpool_force_inline, false,
"Force to always run jobs on the calling thread");
#if CAFFE2_THREADPOOL_MOBILE
namespace caffe2 {
// Default smallest amount of work that will... |
<commit_before>#include <gtest/gtest.h>
#include "../request.hh"
namespace mimosa
{
namespace http
{
namespace
{
#define METHOD_TEST(Meth) \
TEST(RequestParser, Meth##Simple) \
{ \
char str[] ... |
<commit_before>#include "ofApp.h"
#include "ofxBinaryMesh.h"
#include <Alembic/AbcGeom/All.h>
#include <Alembic/AbcCoreHDF5/All.h>
#include "ofxAlembic.h"
using namespace Alembic::AbcGeom;
static string dataPath = "../../../sharedData/";
//void listDirs();
#ifndef NO_ALEMBIC
#include "ofxAlembic.h"
ofxAlembic::Re... |
<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 "ui/views/controls/webview/webview.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/no... |
<commit_before>/* This file is part of the KDE project.
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
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, eith... |
<commit_before>/*
* opencog/atomspace/TypeIndex.cc
*
* Copyright (C) 2008 Linas Vepstas <linasvepstas@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free Software Foundation and including t... |
<commit_before>#include "FboQuickWindow.h"
#include <QOpenGLContext>
#include <QOffscreenSurface>
#include <QOpenGLFramebufferObject>
#include <QQuickRenderControl>
#include <QTimer>
FboQuickWindow::FboQuickWindow( QOpenGLContext* context /*= 0*/ )
: QQuickWindow( &m_renderControl ),
m_context( 0 ), m_offs... |
<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 "base/registry.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const wchar_t kRootKey[] = L"Base_Registry_Unit... |
<commit_before>#include "clay.hpp"
namespace clay {
ExprPtr desugarCharLiteral(char c) {
ExprPtr nameRef = prelude_expr_Char();
CallPtr call = new Call(nameRef, new ExprList());
ostringstream out;
out << (int)c;
call->parenArgs->add(new IntLiteral(out.str(), "ss"));
return call.ptr();
}
ExprP... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Contact: Vesa-Matti Hartikainen <vesa-matti.hartikainen@jollamobile.com>
**
****************************************************************************/
/* This Source Code Form is subje... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: textlayout.cxx,v $
* $Revision: ... |
<commit_before>/*
Copyright 2015 University of Auckland
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 law or agreed t... |
<commit_before><commit_msg>Don't render with mp2DRenderer when we have 3D charts<commit_after><|endoftext|> |
<commit_before>#include "ee/cocos-coroutine/Delay.hpp"
#include <base/CCDirector.h>
#include <base/CCScheduler.h>
namespace ee {
namespace coroutine {
using Self = Delay;
Self::Delay(float duration)
: duration_(duration) {
CC_ASSERT(duration_ >= 0);
}
void Self::await_suspend(std::experimental::coroutine_ha... |
<commit_before>#include "text/cmdline.h"
#include "math/random.h"
#include "math/epsilon.h"
#include "functions/test.h"
#include "solver_stoch.h"
#include "benchmark_solvers.h"
using namespace nano;
template <typename tostats>
static void check_function(const function_t& function, const strings_t& solvers,
co... |
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/browser_url_handler.h"
#include "base/string_util.h"
#include "chrome/browser/browser_about_handler.h"
#... |
<commit_before>#include "dungeon_serializer.h"
#include "dungeon_exit.h"
#include "dungeon_room.h"
#include <sstream>
#include "utils.h"
using namespace std;
extern vector<DungeonExit*> g_exitList;
DungeonExit::DungeonExit()
{
isDoor = false;
isOpen = true;
distance = 1;
room = nullptr;
uid = getUID();
g_exitL... |
<commit_before>#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <cstring>
#include <cstdarg>
#include <cstdio>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <openssl/sha.h>
#include <stdio.h>
#include <openss... |
<commit_before>#pragma once
#include <list>
#include <unordered_map>
#include <string>
#include <iostream>
#include <iomanip>
#include <chrono>
#include <functional>
#include <unistd.h>
/**
* @namespace testy
* Simple tool to easly manage unit tests.
*/
namespace testy {
/**
* @macro Suite
* The macro used to c... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2013-2018 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>#include "motor.h"
#include "timer_encoder.h"
#include "interrupt_encoder.h"
#include "irsensor.h"
#include "gyro.h"
#include "pid.h"
#include "digital_output.h"
#include "distance_sensor.h"
#include "stdlib.h"
#include "mbed.h"
#ifndef BTSERIAL
Serial serial(PA_2, PA_3);
#endif
#ifdef BTSERIAL
Serial... |
<commit_before>#include "Globals.h"
const char* g_version = "5.5";
const char* g_app_name = "Command Line Utility";
const char* g_developer_name = "Shai Roitman";
<commit_msg>Bumped minor version<commit_after>#include "Globals.h"
const char* g_version = "5.5.1";
const char* g_app_name = "Command Line Utility";
const ... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief V8 Traverser
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014-2015 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version ... |
<commit_before>#include <QSettings>
#include <QDebug>
#include <QJsonObject>
#include <QJsonArray>
#include <QDir>
#include <QFont>
#include <QFontMetrics>
#include <QStringList>
#include <QFontDatabase>
#include "vnote.h"
#include "utils/vutils.h"
#include "vconfigmanager.h"
#include "vmainwindow.h"
#include "vorphanf... |
<commit_before>/* ____________________________________________________________________________
Scanner Component for the Micro A Compiler
mscan.h
Version 2007 - 2016
James L. Richards
... |
<commit_before>/*****************************************************************************
* seekpoints.cpp : Chapters & Bookmarks (menu)
*****************************************************************************
* Copyright © 2011 the VideoLAN team
*
*
* This program is free software; you can redistribute ... |
<commit_before>
#include "DataFile.hh"
#include "Specific.hh"
#include "avrocpp/api/DataFile.hh"
#include "avrocpp/api/Specific.hh"
#include "types_encode_decode.h" // IWYU pragma: keep
#include "data_file.h"
namespace RMF {
namespace avro2 {
struct FileDataChanges;
struct Frame;
} // namespace avro2
} // namespace... |
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/ui/ui_test.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "net/base/net_util.h"
ty... |
<commit_before>#include "flat_control.h"
//#include "traj_control.h"
#include "gamma.h"
#include "saturate.h"
#include <time.h>
#define DEGREE 5
//Controller proportions
#define KPX 1
#define KDX 2
#define KPY 1
#define KDY 2
#define CMD_RATE .3
using namespace alglib;
using namespace PlayerCc;
flat_control::flat_... |
<commit_before>#include "replication/protocol.hpp"
#include "concurrency/coro_fifo.hpp"
namespace replication {
// The 16 bytes conveniently include a \0 at the end.
// 13 is the length of the text.
const char STANDARD_HELLO_MAGIC[16] = "13rethinkdbrepl";
template <class T> struct stream_type { typedef scoped_mallo... |
<commit_before>/*
* =====================================================================================
*
* Filename: third.cpp
*
* Description: Third glfw application
*
* Version: 1.0
* Revision: none
* Compiler: gcc
*
* Author: Sean Jones (SJ), NeuralSandwich@gma... |
<commit_before>/*
Resembla: Word-based Japanese similar sentence search library
https://github.com/tuem/resembla
Copyright 2017 Takashi Uemura
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>
#ifndef RESOURCE_IDENTIFIERS_HPP
#define RESOURCE_IDENTIFIERS_HPP
#include <cstdlib>
#include <set>
namespace sf
{
class Texture;
class Font;
class SoundBuffer;
}
namespace Textures
{
enum ID
{
};
}
namespace Fonts
{
enum ID
{
};
}
namespace Music
{
enum ID
... |
<commit_before>/* Copyright 2020 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><commit_msg>Fixed compile error.<commit_after><|endoftext|> |
<commit_before><commit_msg>With an upcoming ICU 4.2 upgrade, the way 'search' works has changed and FiP doesn't make a hit for a stand-alone dependent vowel sign of Indic scripts, which is OK according to a native Malayalam speaker.<commit_after><|endoftext|> |
<commit_before>#include "journal.h"
#include "qif.h"
#include "datetime.h"
#include "error.h"
#include "util.h"
#include <cstring>
#include <memory>
namespace ledger {
#define MAX_LINE 1024
static char line[MAX_LINE + 1];
static std::string path;
static unsigned int src_idx;
static unsigned int linenum;
s... |
<commit_before>// Time: O(nlogp), p is total pages.
// Space: O(1)
class Solution {
public:
/**
* @param pages: a vector of integers
* @param k: an integer
* @return: an integer
*/
int copyBooks(vector<int> &pages, int k) {
if (k >= pages.size()) {
return *max_element(p... |
<commit_before>class Solution {
public:
void sortColors(int A[], int n) {
int i0 = 0;
int i2 = n-1;
for(int i = 0; i < n && i0 <= i2 && i <= i2; i++) {
while(A[i] != 1 && i0 <= i2 && i >= i0 && i<=i2) {
if(A[i] == 0) {
... |
<commit_before>/*
* Promise2
*
* Copyright (c) 2015-2016 "0of" Magnus
* Licensed under the MIT license.
* https://github.com/0of/Promise2/blob/master/LICENSE
*/
#include <atomic>
#include <vector>
#include "entry.h"
#include "Promise.h"
class CurrentContext : public Promise2::ThreadContext {
public:
static T... |
<commit_before>#include <QtGui/QGuiApplication>
#include <QtQml/QQmlEngine>
#include <QtQml/QQmlComponent>
#include <QtQuick/QQuickWindow>
#include <QtCore/QUrl>
#include <QUrlQuery>
#include <QDateTime>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QDebug>
#include <QJsonObject>
#include <QJsonDocument... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gl/GrGLShaderBuilder.h"
#include "gl/GrGLProgram.h"
#include "gl/GrGLUniformHandle.h"
#include "GrTexture.h"
// number of each input/output type in a... |
<commit_before>#include "BooleanCircuit.h"
extern "C" {
#include "provsql_utils.h"
#include <unistd.h>
#include <math.h>
}
#include <cassert>
#include <string>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <iostream>
using namespace std;
// Has to be redefined because of name hiding
unsigned Boo... |
<commit_before>#include "environment.hpp"
#include "value_printer.hpp"
using shiranui::runtime::value::Value;
using shiranui::syntax::ast::Identifier;
namespace shiranui{
namespace runtime{
namespace environment{
Environment::Environment(){
}
Environment::Environment(sp<... |
<commit_before>// Copyright (c) 2012 Steinwurf ApS
// 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>//------------------------------------------------------------------------------
// RenderEnumsTest.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "UnitTest++/src/UnitTest++.h"
#include "Core/String/String.h"
#include "Render/Types/Pix... |
<commit_before>#include "flashmem.h"
#include <EEPROM.h>
FlashMem::FlashMem() {}
void FlashMem::init() {
this->content_valid = false;
Serial.println("Initializing flashmem");
EEPROM.begin(FLASHMEM_SZ);
for(size_t i = 0; i < sizeof(content); i++) {
this->content_bytes[i] = EEPROM.read(FLASHMEM_ADDR + i);... |
<commit_before>#ifndef _PNMC_CONF_CONFIGURATION_HH_
#define _PNMC_CONF_CONFIGURATION_HH_
#include <chrono>
#include <iosfwd>
#include <string>
#include <boost/optional.hpp>
namespace pnmc { namespace conf {
/*------------------------------------------------------------------------------------------------*/
enum ... |
<commit_before>// CoolPropMathcad.cpp : Defines the exported functions for the DLL Add-in.
//
#include <string>
#ifndef NOMINMAX; // Kill window's horrible min() and max() macros
#include "mcadincl.h"
#undef NOMINMAX;
enum { MC_STRING = STRING }; // substitute enumeration variable MC_STRING for STRING, use MC_STRI... |
<commit_before>/*
* ====================================================================
* Copyright (c) 2002-2005 The RapidSvn Group. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the ... |
<commit_before><commit_msg>INTEGRATION: CWS pchfix02 (1.7.36); FILE MERGED 2006/09/01 17:24:10 kaib 1.7.36.1: #i68856# Added header markers and pch files<commit_after><|endoftext|> |
<commit_before>#include "xchainer/native/native_device.h"
#include <cassert>
#include <cstdint>
#include "xchainer/array.h"
#include "xchainer/device.h"
#include "xchainer/dtype.h"
#include "xchainer/indexable_array.h"
#include "xchainer/native/elementwise.h"
#include "xchainer/shape.h"
namespace xchainer {
namespac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.