text stringlengths 54 60.6k |
|---|
<commit_before>#ifndef LONGEST_PALINDROME_HPP
#define LONGEST_PALINDROME_HPP
// https://leetcode.com/problems/longest-palindromic-substring/description/
// Given a string s, find the longest palindromic substring in s.
// Solutions:
// https://articles.leetcode.com/longest-palindromic-substring-part-i/
// https://art... |
<commit_before>#include "std.h"
#include "process.h"
#include "outputmgr.h"
/**
* Global process-synchronization variables.
*/
// Global process limit.
static nat procLimit = 1;
// Global active processes.
static ProcMap alive;
// Global lock for 'alive'.
static Lock aliveLock;
// Global lock for waiting on proc... |
<commit_before>/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/**
* Copyright (C) 2013 Regents of the University of California.
* @author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
* @author: Zhenkai Zhu <zhenkai@cs.ucla.edu>
* See COPYING for copyright and distribution information.
*/
... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "embeddedapp.h"
#include <server/server.h>
#include <Cutelyst/Context>
#include <Cutelyst/Response>
#include <QMessageBox>
#include <QNetworkReply>
#include <QNetworkAccessManager>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(p... |
<commit_before>#include <string>
#include "caffe2/core/init.h"
#include "caffe2/core/operator.h"
#include "caffe2/proto/caffe2.pb.h"
#include "caffe2/utils/proto_utils.h"
#include "caffe2/utils/string_utils.h"
#include "caffe2/core/logging.h"
CAFFE2_DEFINE_string(net, "", "The given net to benchmark.");
CAFFE2_DEFINE... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cachedbitmap.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: obo $ $Date: 2006-09-17 03:29:10 $
*
* The Contents of this file are ... |
<commit_before>/*************************************************************************
*
* $RCSfile: spritecanvas.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: thb $ $Date: 2004-03-18 10:38:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>#ifndef RBX_CODE_RESOURCE
#define RBX_CODE_RESOURCE
namespace rubinius {
class CodeManager;
class VM;
class State;
class CodeResource {
bool mark_;
bool detached_;
public:
CodeResource()
: mark_(false)
, detached_(false)
{}
virtual ~CodeResource() { };
vi... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: BodyActuator.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and sim... |
<commit_before>// ForceReporter.cpp
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// AUTHOR: Ayman Habib
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/* Copyright (c) 2006 Stanford University
* Use of the OpenSim software in source form is permi... |
<commit_before>// programming_challenges_13.cpp: santiaago
// Description: Australian Voting - Programming challenges 110108
#include <iostream>
#include <vector>
#include <sstream>
#include <string>
#include <map>
#include <limits>
using namespace std;
typedef vector<string> CandidatesVector;
typedef map<string, un... |
<commit_before>#ifndef NMEA
#define NMEA
#include "GPS.hpp"
#include <string>
using namespace IGVC::Sensors;
namespace nmea
{
//GPS funcs
bool decodeGPRMC(const std::string& line, GPSState& state);
bool decodeGPRMT(const std::string& line);
bool decodeGPGGA(const std::string& line, GPSState& state);
bool decod... |
<commit_before>// Copyright 2014 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 "config.h"
#include "FetchManager.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptPromiseResolve... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkThreadedController.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>//===- unittest/Tooling/RecursiveASTVisitorTest.cpp -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "SolidMechanics.h"
template<>
InputParameters validParams<SolidMechanics>()
{
InputParameters params= validParams<PorousMedia>();
params.addParam<Real>("thermal_expansion",1.0e-6,"thermal expansion coefficient (1/K)");
params.addParam<Real>("youngs_modulus",1.50e10,"in Pascal") ;
params... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/testapp.h>
#include <vbench/test/all.h>
#include <vespa/vespalib/util/slaveproc.h>
#include <vespa/vespalib/net/crypto_engine.h>
#include <vespa/vespalib... |
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <hspp/Tasks/SimpleTasks/IncludeTask.hpp>
name... |
<commit_before>//Copyright (c) 2013 Christopher Johnstone(meson800)
//The MIT License - See ../../../LICENSE for more info
#include "StateSaver.h"
HINSTANCE StateSaver::hDLL = 0;
INT_PTR CALLBACK StateSaver::DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
switch (Msg)
{
case WM_INITDIALOG:
//get ... |
<commit_before>// Copyright 2008, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list ... |
<commit_before>/*************************************************************************
* Copyright (c) 2013 eProsima. All rights reserved.
*
* This copy of FastCdr is licensed to you under the terms described in the
* EPROSIMARTPS_LIBRARY_LICENSE file included in this distribution.
*
*************************... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenGLProjectedPolyDataRayBounder.cxx
Language: C++
Date: $Date$
Version: $Revision$
Thanks: Thanks to Lisa Sobierajski Avila who developed this class.
Copyr... |
<commit_before>/*************************************************************************
*
* $RCSfile: jscriptclasses.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:16:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>// Author: Leticia Cunqueiro
//Some explanations:
//if fpythia==1, quenched pythia (qpythia) is configured.
//if fpythia==2, pyquen afterburner applyed
// The list of avaliable tunes can be checked in $ALICE_ROOT/PYTHIA6/pythiaX.f , inside subroutine PYTUNE
// Note that if you are using QPYTHIA , ... |
<commit_before>/***********************************************************************
filename: CEGUIScrollbar.cpp
created: 13/4/2004
author: Paul D Turner
*************************************************************************/
/*****************************************************************... |
<commit_before><commit_msg>Do not wrap non-HTTP(s) requests.<commit_after><|endoftext|> |
<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>#include <Arduino.h>
#include "TybluServo.h"
/*
* TybluServo constructor arguments: (int, int, int, int, int, float, float, int)
* int pwmPin Pin used to control servo.
* int minAngle, int maxAngle Allowed range of movement.
* int safeAngle Nominal position for servo.
* int sensorP... |
<commit_before>#include "drape_frontend/rule_drawer.hpp"
#include "drape_frontend/stylist.hpp"
#include "drape_frontend/engine_context.hpp"
#include "drape_frontend/apply_feature_functors.hpp"
#include "drape_frontend/visual_params.hpp"
#include "indexer/feature.hpp"
#include "indexer/feature_algo.hpp"
#include "base... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: BaseGFXHelper.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2007-07-03 13:43:56 $
*
* The Contents of this file are ... |
<commit_before>#include "ofApp.h"
void ofApp::setup(){
ofDisableArbTex();
_video.initGrabber(1280, 720);
_currentFilter = 0;
_filters.push_back(new DoGFilter(_video.getWidth(), _video.getHeight(), 11, 1.7, 8.5, 0.983, 4, 4));
_filters.push_back(new KuwaharaFilter());
_filters.pus... |
<commit_before>/*
* Copyright 2008-2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
<commit_before>/*
example1.cpp
============
Basic usage of the Horse Whisperer
Compile with:
c++ -std=c++11 example1.cpp -o example
Run with
./example
Try to run:
./example
./example --help
./example gallop
./example gallop --ponies 5
.... |
<commit_before>
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <assert.h>
#include "viennamath/expression.hpp"
#include "viennamath/eval.hpp"
#include "viennamath/substitute.hpp"
#include "viennamath/diff.hpp"
#include "viennamath/equation.hpp"
#include "viennamath/integral.hpp"
#include "viennama... |
<commit_before>/*
* Copyright (C) 2018 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><commit_msg>Unit Tests - arguments.t<commit_after><|endoftext|> |
<commit_before>/*
Dorm LED Project: led_window_anim_cmds.cpp
This file contains the window LED animation commands.
These are meant to be executed using the multithreaded system.
Created by: Michael Fischler
10/22/2016 @ WPI
*/
/*
Template for a Command
std::vector<int> (*cmd)(std::vector<int>)
std::... |
<commit_before>#include "common/quic/client_connection_factory_impl.h"
#include "common/quic/quic_transport_socket_factory.h"
#include "test/common/upstream/utility.h"
#include "test/mocks/common.h"
#include "test/mocks/event/mocks.h"
#include "test/mocks/server/transport_socket_factory_context.h"
#include "test/mocks... |
<commit_before>#include "xchainer/testing/array.h"
#include <cassert>
#include <cstdint>
#include <functional>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <nonstd/optional.hpp>
#include "xchainer/device.h"
#include "xchainer/dtype.h"
#include "xchainer/native/native_backend.h"
#include "xch... |
<commit_before>/*
* caosVM_flow.cpp
* openc2e
*
* Created by Alyssa Milburn on Sun May 30 2004.
* Copyright (c) 2004 Alyssa Milburn. 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 ... |
<commit_before>#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <systemlib/err.h>
#include <drivers/drv_hrt.h>
#include <rc/sumd.h>
#include "../../src/systemcmds/tests/tests.h"
#include "gtest/gtest.h"
TEST(SUMDTest, SUMD)
{
const char *filepath = "testdata/sumd_data.txt";
warnx("loading data f... |
<commit_before>#define BOOST_TEST_MODULE "test_read_3spn2_base_stacking_interaction"
#ifdef BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#else
#include <boost/test/included/unit_test.hpp>
#endif
#include <mjolnir/core/SimulatorTraits.hpp>
#include <mjolnir/core/BoundaryCondition.hpp>
#include <mjolnir/inpu... |
<commit_before>#pragma once
#include <algorithm>
#include <cctype>
#include "acmacs-base/named-type.hh"
// ----------------------------------------------------------------------
namespace acmacs
{
template <typename Tag> class uppercased : public named_string_t<Tag>
{
public:
uppercased() = de... |
<commit_before>#include <iostream>
using std::cout;
using std::endl;
using std::begin;
using std::end;
void print(const int* pi)
{
if (pi) cout << *pi << endl;
}
void print(const char* p)
{
if (p)
while (*p) cout << *p++;
cout << endl;
}
void print(const int* beg, const int* end)
{
while (be... |
<commit_before>// @Yue Wang
//
// Exercise 9.50:
// Write a program to process a vector<string>s whose elements represent integral values.
// Produce the sum of all the elements in that vector.
// Change the program so that it sums of strings that represent floating-point values.
//
#include <iostream>
#include <strin... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris - France
// http://www.linux-man... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... |
<commit_before>extern "C" {
#include <lua/lualib.h>
}
#include <luabind/luabind.hpp>
#include "lua_state_raii.h"
#include "augs/window_framework/platform_utils.h"
#include "augs/log.h"
#include "augs/ensure.h"
#include "augs/filesystem/file.h"
namespace augs {
lua_state_raii::lua_state_raii(lua_State* state) : raw... |
<commit_before>#include <Arduino.h>
#include "SoftwareSerial.h"
#include "A6lib.h"
#ifdef DEBUG
#define log(msg) Serial.print(msg)
#define logln(msg) Serial.println(msg)
#else
#define log(msg)
#define logln(msg)
#endif
#define countof(a) (sizeof(a) / sizeof(a[0]))
#define OK 0
#define NOTOK 1
#define TIMEOUT 2
#def... |
<commit_before>#include <avalon/physics/loadercallbacks.h>
#include <Box2D/Box2D.h>
#include <boost/any.hpp>
#include <avalon/physics/Box2dContainer.h>
namespace {
std::shared_ptr<b2PolygonShape> initRectangleShape(float width, float height, float pixelsInMeter)
{
auto shape = make_shared<b2PolygonShape>();
... |
<commit_before>/*
* This file is part of Handset UX Share user interface
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
* Contact: Jukka Tiihonen <jukka.tiihonen@nokia.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... |
<commit_before> /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not ... |
<commit_before>// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "rpcserver.h"
#include "init.h"
#include "main.h"
#include "sync.h"
#include "wall... |
<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/file_path.h"
#include "chrome/test/ui/ui_layout_test.h"
namespace {
const char* kResources[] = {
"content",
"... |
<commit_before>#ifndef GE_ACTOR_TICKER_SUBSYSTEM_HPP
#define GE_ACTOR_TICKER_SUBSYSTEM_HPP
#pragma once
#include "ge/subsystem.hpp"
#include "ge/tickable.hpp"
namespace ge
{
struct actor_ticker_subsystem : subsystem {
struct config {
};
bool initialize(config){};
virtual bool update(std::chrono::duration<float>... |
<commit_before>
#include <test.hpp>
TEST_CASE("basic") {
SECTION("default constructed pbf message is okay") {
mapbox::util::pbf item;
REQUIRE(!item.next());
}
SECTION("empty buffer is okay") {
std::string buffer;
mapbox::util::pbf item(buffer.data(), 0);
REQUIRE(!i... |
<commit_before><commit_msg>Drop useless const<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TransformerTokenMap.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 15:59:34 $
*
* The Contents of this fil... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmllib_export.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: ab $ $Date: 2001-10-23 15:25:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>#pragma once
#include "Runtime/IOStreams.hpp"
#include "Runtime/Character/CPASAnimParm.hpp"
namespace urde {
class CPASParmInfo {
public:
enum class EWeightFunction { ExactMatch, PercentError, AngularPercent, NoWeight };
CPASAnimParm::EParmType x0_type;
EWeightFunction x4_weightFunction;
floa... |
<commit_before>#include <iostream>
#include "tinysplinecpp.h"
int main( int argc, char** argv )
{
try
{
// t variable
float t = 0.0f;
// Create a clamped spline of degree 3 in 2D consisting of 7 control points.
ts::BSpline spline(3, 2, 7, TS_CLAMPED);
// Setup the cont... |
<commit_before>/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify... |
<commit_before>/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify... |
<commit_before>/*
* Adapted from code copyright 2009-2011 Intel Corporation
* Modifications Copyright 2012, Blender Foundation.
*
* 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
*
* htt... |
<commit_before>/*###################################################
##################Cic-Cac-Coe######################
######## All rights reserved to SAFAD(C) ##########
###########Please read the LICENSE file############
###################################################*/
#include <iostream>
#include <cs... |
<commit_before>/// \file ROOT/TStringAttr.hxx
/// \ingroup Gpad ROOT7
/// \author Axel Naumann <axel@cern.ch>
/// \date 2018-02-08
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/**************************************************... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <ctime>
#include <string>
#include <unistd.h>
#include "s91k2048_outils_terminal.h"
#include "projet_termites_common.h"
#include "projet_termites.h"
#include "termite.h"
using namespace std;
void placeVide(Place &p) {
p.type = PLACE_TYP... |
<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 "chrome/renderer/page_click_tracker.h"
#include "chrome/renderer/page_click_listener.h"
#include "chrome/renderer/render_view... |
<commit_before>#ifndef _CRYPTL_BLESS_HPP_
#define _CRYPTL_BLESS_HPP_
#include <array>
#include <climits>
#include <cstdint>
#include <istream>
namespace cryptl {
////////////////////////////////////////////////////////////////////////////////
// blessing (initialize variables)
//
// 8/32/64-bit values from input st... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/nacl/nacl_sandbox_test.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/test/test_ti... |
<commit_before>// Copyright 2013 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/nacl/pnacl_header_test.h"
#include "base/bind.h"
#include "base/path_service.h"
#include "chrome/browser/ui/browser.... |
<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>/**
* @author Mike Bogochow
* @version 2.4.0, Dec 8, 2015
*
* @file Auctioneer.cpp
*
* Auctioneer class implementation
*/
#include "Auctioneer.h"
#include "../lib_graphs/defs.h"
#include "../lib_auction/AuctionDefs.h"
#include "../lib_auction/DebugPrinter.h"
#include "MBUtils.h"
#include <boost... |
<commit_before>/**
* @author Mike Bogochow
* @version 2.4.0, Dec 8, 2015
*
* @file Auctioneer.cpp
*
* Auctioneer class implementation
*/
#include "Auctioneer.h"
#include "../lib_graphs/defs.h"
#include "../lib_auction/AuctionDefs.h"
#include "../lib_auction/DebugPrinter.h"
#include "MBUtils.h"
#include <boost... |
<commit_before>#include <Empathy/Empathy/Empathy.h>
#include <Empathy/empathy-linear/linear_empathy.h>
#include <irrKlang.h>
#include <GLFW/glfw3.h>
#include <muParser.h>
#include <Empathy/Brain/CustomLogic/Calming_1.h>
#define FULL_SCREEN false
#if FULL_SCREEN
#define RENDER_SIZE 768
#define SC_SIZE_X 1366
#defi... |
<commit_before>//---------------------------- crash_10.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2005, 2006 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// to the f... |
<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: sysdata.hxx,v $
* $Revision: 1.8... |
<commit_before>/*
* Shared memory for sharing data between worker processes.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "shm.hxx"
#include "lock.h"
#include "util/RefCount.hxx"
#include <inline/poison.h>
#include <inline/list.h>
#include <daemon/log.h>
#include <assert.h>
#include <stdint.h>
#include... |
<commit_before>#include <iostream>
#include <string>
#include <cstdlib>
#include <cstring>
#include <climits>
#include <cerrno>
#include "GameGrid.h"
#include "Rect.h"
#include "Point.h"
typedef enum {
CONVERSION_SUCCESS,
CONVERSION_MEMORY,
CONVERSION_OVERFLOW,
CONVERSION_UNDERFLOW,
CONVERSION_INVALID
} conv... |
<commit_before>/****************************************************************************
** Copyright (C) 2001-2006 Klarälvdalens Datakonsult AB. All rights reserved.
**
** This file is part of the KD Gantt library.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Publ... |
<commit_before>#include "libs/catch/include/catch.hpp"
#include <atomic>
#include <chrono>
#include <memory>
#include <thread>
#include <iostream>
#include "src/client.h"
#include "src/config.h"
#include "src/file.h"
void aux_read_test_worker(std::shared_ptr<giga::File> file, std::shared_ptr<std::atomic<int>> resul... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLEmbeddedObjectImportContext.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-06-27 14:39:19 $
*
* The Contents ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MergeElemTContext.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: hr $ $Date: 2006-06-19 18:53:15 $
*
* The Contents of this file ... |
<commit_before>#include <thectci/dispatcher.hpp>
#include <igloo/igloo.h>
#include <igloo/igloo_alt.h>
using namespace igloo;
namespace
{
struct EventA
{
add_polymorphic_ctci( "EventA" );
};
struct EventB : public EventA
{
add_polymorphic_ctci( "EventB" );
};
template < class Event >
struct... |
<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>/*************************************************************************
*
* Copyright 2016 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <vector>
#include <utility>
#include <ctime>
#include <utils/group_data.h>
#include <utils/random.h>
#include <utils/omp.h>
#include <utils/utils.h>
using namespace xgboost::utils;
using namespace xgboost;
int main(int argc, char *argv[]) {
if (argc < 3) ... |
<commit_before>/*
This file is part of KOrganizer.
Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
Copyright (C) 2003-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 a... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved
*/
#include "Stroika/Frameworks/StroikaPreComp.h"
#include <iostream>
#include "Stroika/Foundation/Characters/String2Int.h"
#include "Stroika/Foundation/Characters/ToString.h"
#include "Stroika/Foundation/Execution/CommandLine.... |
<commit_before>// --- This file is distributed under the MIT Open Source License, as detailed
// by the file "LICENSE.TXT" in the root of this repository ---
#include "hurchalla/util/sized_uint.h"
#include "hurchalla/util/compiler_macros.h"
#include "gtest/gtest.h"
#include <type_traits>
#include <cstdint>
namespace... |
<commit_before>int main(int argc, char *argv[])
{
// Reads from the file build/version_number the new version
// number and generates the header base/inc/RVersion.h.
// To be executed as CINT script by build/unix/makeversion.sh.
//
// Author: Fons Rademakers 11/10/99
const char *in = "build/versio... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2014, PAL Robotics S.L.
//
// 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>#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <nitro/jiffy/jiffy.hpp>
#include <chrono>
TEST_CASE("Print 100 jiffies in iso format", "[jiffy]")
{
for (int i = 0; i < 100; i++)
{
nitro::jiffy::Jiffy j;
std::cout << j << std::endl;
}
}
TEST_CASE("Jiffy can be take... |
<commit_before><commit_msg>Add check for `nullptr`.<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* 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/.
*/
#pragma once
#include <ox/std/assert.hpp>
#incl... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2015 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
<commit_before>/** Implementation of string conversions.
*
* Copyright (c) 2008-2019, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this mistake,
* or contact the author.
*/
#include "pqxx/compil... |
<commit_before>/*
This file is part of kdepim.
Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
Copyright (c) 2004 Daniel Molkentin <molkentin@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License ... |
<commit_before>//Main graph classes functions
#ifndef __FRIGATE_GRAPH_CPP__
#define __FRIGATE_GRAPH_CPP__
#include <string.h>
#include "graph.h"
namespace frigate{
CharNames Graph::Names;
int CodeBlock::setCode(char* _code)
{
if(code == NULL && file_name == NULL)
{
code = new char[strlen(_code)+1];
strcpy(cod... |
<commit_before>#include "geocoder.h"
#include "address.h"
#include <stdlib.h>
#include <assert.h>
#include <sqlite3.h>
#include <math.h>
#include <sstream>
using namespace std;
using namespace std::tr1;
static string LATLNG_REGEX = "^(-?[0-9]+(?:\\.[0-9]+)?)\\ *,\\ *(-?[0-9]+(?:\\.[0-9]+)?)$";
static inline double... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.