text stringlengths 54 60.6k |
|---|
<commit_before>ff34767d-2e4e-11e5-9263-28cfe91dbc4b<commit_msg>ff3cd3dc-2e4e-11e5-bade-28cfe91dbc4b<commit_after>ff3cd3dc-2e4e-11e5-bade-28cfe91dbc4b<|endoftext|> |
<commit_before>1bae5d68-2e4f-11e5-8c35-28cfe91dbc4b<commit_msg>1bb5cc80-2e4f-11e5-8f48-28cfe91dbc4b<commit_after>1bb5cc80-2e4f-11e5-8f48-28cfe91dbc4b<|endoftext|> |
<commit_before>#ifndef MYSLICER_HPP
#define MYSLICER_HPP
#include "distribution.hpp"
#include "error_handler.hpp"
#include "base_urand.hpp"
#include <algorithm>
#include <limits>
//#define DEBUG
#ifdef DEBUG
#include <fstream>
#endif
#include <cassert>
#include <list>
#include <utility>
#include <limits>
#include <cmat... |
<commit_before>f313b77a-585a-11e5-9bb7-6c40088e03e4<commit_msg>f319e7a8-585a-11e5-b3ab-6c40088e03e4<commit_after>f319e7a8-585a-11e5-b3ab-6c40088e03e4<|endoftext|> |
<commit_before>a0a608eb-327f-11e5-a1c2-9cf387a8033e<commit_msg>a0abec19-327f-11e5-ab17-9cf387a8033e<commit_after>a0abec19-327f-11e5-ab17-9cf387a8033e<|endoftext|> |
<commit_before>#include "main.h"
#include <chrono>
int num_rows;
int num_cols;
int num_nonzeros;
std::chrono::duration<double> blaze_time;
std::chrono::duration<double> vcl_time;
std::chrono::duration<double> vexcl_time;
std::chrono::duration<double> elapsed;
std::chrono::time_point<std::chrono::system_clock> start, ... |
<commit_before>9101ada2-2d14-11e5-af21-0401358ea401<commit_msg>9101ada3-2d14-11e5-af21-0401358ea401<commit_after>9101ada3-2d14-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>20066228-585b-11e5-9e07-6c40088e03e4<commit_msg>200f0734-585b-11e5-a041-6c40088e03e4<commit_after>200f0734-585b-11e5-a041-6c40088e03e4<|endoftext|> |
<commit_before>7846127c-2d53-11e5-baeb-247703a38240<commit_msg>78469152-2d53-11e5-baeb-247703a38240<commit_after>78469152-2d53-11e5-baeb-247703a38240<|endoftext|> |
<commit_before>#include <GLXW/glxw.h>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
//#include <glm/gtx/transform.hpp>
#include <GLFW/glfw3.h>
#include <iostream>
#include <vector>
static const GLfloat globVertexBufferData[] = {
-1.0f, -1.0f, 0.0f,
1.0f, -1.0f, 0.0f,
0.0f, 1.0f, 0.0f,
};
bool che... |
<commit_before>f4d60575-2e4e-11e5-a4ca-28cfe91dbc4b<commit_msg>f4dc697a-2e4e-11e5-b6d0-28cfe91dbc4b<commit_after>f4dc697a-2e4e-11e5-b6d0-28cfe91dbc4b<|endoftext|> |
<commit_before>f3b11126-327f-11e5-a8e4-9cf387a8033e<commit_msg>f3b6fe21-327f-11e5-a116-9cf387a8033e<commit_after>f3b6fe21-327f-11e5-a116-9cf387a8033e<|endoftext|> |
<commit_before>4e5d5bd1-2e4f-11e5-b0ea-28cfe91dbc4b<commit_msg>4e64b54a-2e4f-11e5-b2dd-28cfe91dbc4b<commit_after>4e64b54a-2e4f-11e5-b2dd-28cfe91dbc4b<|endoftext|> |
<commit_before>d3867b26-313a-11e5-85e6-3c15c2e10482<commit_msg>d38c7347-313a-11e5-b0b7-3c15c2e10482<commit_after>d38c7347-313a-11e5-b0b7-3c15c2e10482<|endoftext|> |
<commit_before>// PDTK
#include <application.h>
#include <cxxutils/syslogstream.h>
// project
#include "configserver.h"
constexpr const char* const appname = "SXconfigd";
constexpr const char* const username = "config";
void exiting(void)
{
posix::syslog << posix::priority::notice << "daemon has exited." << posix:... |
<commit_before>809e925d-2d15-11e5-af21-0401358ea401<commit_msg>809e925e-2d15-11e5-af21-0401358ea401<commit_after>809e925e-2d15-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>#include <iostream>
#include <memory>
#include <fstream>
#include "Game/Game.h"
#include "Game/Board.h"
#include "Moves/Move.h"
#include "Players/Genetic_AI.h"
#include "Players/Human_Player.h"
#include "Players/Random_AI.h"
#include "Players/Outside_Player.h"
#include "Genes/Gene_Pool.h"
#include "... |
<commit_before>
// Copyright (c) 2013-2014 Quanta Research Cambridge, Inc.
// 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>ca33b1e1-2e4e-11e5-9b39-28cfe91dbc4b<commit_msg>ca3c9d02-2e4e-11e5-a98a-28cfe91dbc4b<commit_after>ca3c9d02-2e4e-11e5-a98a-28cfe91dbc4b<|endoftext|> |
<commit_before>76e03b74-2d53-11e5-baeb-247703a38240<commit_msg>76e0b9dc-2d53-11e5-baeb-247703a38240<commit_after>76e0b9dc-2d53-11e5-baeb-247703a38240<|endoftext|> |
<commit_before>#include "session.h"
#include <functional>
#include <curl/curl.h>
#include "curlholder.h"
#include "util.h"
class Session::Impl {
public:
Impl();
void SetUrl(Url url);
void SetUrl(Url url, Parameters parameters);
void SetHeader(Header header);
void SetTimeout(Timeout timeout);... |
<commit_before>8cdd2cfa-2e4f-11e5-bd30-28cfe91dbc4b<commit_msg>8ce50cb8-2e4f-11e5-94e0-28cfe91dbc4b<commit_after>8ce50cb8-2e4f-11e5-94e0-28cfe91dbc4b<|endoftext|> |
<commit_before>f7067b8a-585a-11e5-96ad-6c40088e03e4<commit_msg>f70e3f92-585a-11e5-a252-6c40088e03e4<commit_after>f70e3f92-585a-11e5-a252-6c40088e03e4<|endoftext|> |
<commit_before>5afc976e-2e4f-11e5-b0a5-28cfe91dbc4b<commit_msg>5b03e123-2e4f-11e5-8330-28cfe91dbc4b<commit_after>5b03e123-2e4f-11e5-8330-28cfe91dbc4b<|endoftext|> |
<commit_before>/*
* Copyright (c) 2001-2005 The Regents of The University of Michigan
* 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 c... |
<commit_before>ae05348c-327f-11e5-8659-9cf387a8033e<commit_msg>ae0c6da8-327f-11e5-8d64-9cf387a8033e<commit_after>ae0c6da8-327f-11e5-8d64-9cf387a8033e<|endoftext|> |
<commit_before>/*
Copyright (C) 2014 Marcus Soll
All rights reserved.
You may use this file under the terms of BSD license as follows:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of sourc... |
<commit_before>#include "common.th"
// c <- multiplicand
// d <- multiplier
// b -> product
.global imul
imul:
pushall(h,i,j,k)
i <- d == 0
jnzrel(i, L_done)
h <- 1
b <- 0
j <- c >> 31 // save sign bit in j
j <- -j // convert sign to flag
c <- c ^ j // adjust multiplic... |
<commit_before><commit_msg>fixed race condition on session termination<commit_after><|endoftext|> |
<commit_before>4530c175-2e4f-11e5-9fef-28cfe91dbc4b<commit_msg>45378999-2e4f-11e5-9194-28cfe91dbc4b<commit_after>45378999-2e4f-11e5-9194-28cfe91dbc4b<|endoftext|> |
<commit_before>/*
* Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
... |
<commit_before>#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "config.h"
#include "parse.hpp"
#include "ast.hpp"
#include "parse_op.hpp"
#include "peg.hpp"
#include "expand.hpp"
extern "C" {
//#include <gc_backptr.h>
void GC_dump();
extern unsigned GC_alloc_count;
}
... |
<commit_before>b79b4a94-35ca-11e5-8f68-6c40088e03e4<commit_msg>b7a1f936-35ca-11e5-946a-6c40088e03e4<commit_after>b7a1f936-35ca-11e5-946a-6c40088e03e4<|endoftext|> |
<commit_before>9d7aeba3-4b02-11e5-bf4c-28cfe9171a43<commit_msg>Did ANOTHER thing<commit_after>9d8b2a33-4b02-11e5-b38b-28cfe9171a43<|endoftext|> |
<commit_before>809e9283-2d15-11e5-af21-0401358ea401<commit_msg>809e9284-2d15-11e5-af21-0401358ea401<commit_after>809e9284-2d15-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <map>
void parse_data(std::ifstream &instream_data, std::vector <std::vector <std::string> >& vec_data,
std::map<std::string, std::vector <std... |
<commit_before>9d468780-35ca-11e5-98e9-6c40088e03e4<commit_msg>9d4d0c5c-35ca-11e5-90b5-6c40088e03e4<commit_after>9d4d0c5c-35ca-11e5-90b5-6c40088e03e4<|endoftext|> |
<commit_before>31ba5052-2f67-11e5-9060-6c40088e03e4<commit_msg>31c0d45c-2f67-11e5-a23e-6c40088e03e4<commit_after>31c0d45c-2f67-11e5-a23e-6c40088e03e4<|endoftext|> |
<commit_before>baaac994-2e4f-11e5-b31a-28cfe91dbc4b<commit_msg>bab35a78-2e4f-11e5-af3f-28cfe91dbc4b<commit_after>bab35a78-2e4f-11e5-af3f-28cfe91dbc4b<|endoftext|> |
<commit_before>7619e6cc-2d53-11e5-baeb-247703a38240<commit_msg>761a69c6-2d53-11e5-baeb-247703a38240<commit_after>761a69c6-2d53-11e5-baeb-247703a38240<|endoftext|> |
<commit_before>f052b87a-327f-11e5-98f1-9cf387a8033e<commit_msg>f059f7ab-327f-11e5-8c5e-9cf387a8033e<commit_after>f059f7ab-327f-11e5-8c5e-9cf387a8033e<|endoftext|> |
<commit_before>68c37ee4-2fa5-11e5-b8f3-00012e3d3f12<commit_msg>68c553a4-2fa5-11e5-ae85-00012e3d3f12<commit_after>68c553a4-2fa5-11e5-ae85-00012e3d3f12<|endoftext|> |
<commit_before>a3039c97-ad5b-11e7-9537-ac87a332f658<commit_msg>My Backup<commit_after>a373806b-ad5b-11e7-8bc3-ac87a332f658<|endoftext|> |
<commit_before>6bf6825c-2e4f-11e5-8798-28cfe91dbc4b<commit_msg>6c03e351-2e4f-11e5-b8f6-28cfe91dbc4b<commit_after>6c03e351-2e4f-11e5-b8f6-28cfe91dbc4b<|endoftext|> |
<commit_before>daafa505-ad58-11e7-9e65-ac87a332f658<commit_msg>The previous fix has been fixed<commit_after>db3bb94a-ad58-11e7-8b74-ac87a332f658<|endoftext|> |
<commit_before>697828e4-2fa5-11e5-8bcd-00012e3d3f12<commit_msg>6979d694-2fa5-11e5-82d3-00012e3d3f12<commit_after>6979d694-2fa5-11e5-82d3-00012e3d3f12<|endoftext|> |
<commit_before>#include <iostream>
#include <cv.h>
#include <highgui.h>
#include <exception>
#include <string>
#include <algorithm>
using namespace std;
using namespace cv;
RNG rng(12345);
typedef vector<Mat> MinecraftFont;
void printChar(const Mat& c)
{
cout << "CHAR!" << endl;
cout << c.rows << "/" << c.c... |
<commit_before>ce8f2200-327f-11e5-9187-9cf387a8033e<commit_msg>ce957eca-327f-11e5-8028-9cf387a8033e<commit_after>ce957eca-327f-11e5-8028-9cf387a8033e<|endoftext|> |
<commit_before>78e830c0-2d53-11e5-baeb-247703a38240<commit_msg>78e8b3b0-2d53-11e5-baeb-247703a38240<commit_after>78e8b3b0-2d53-11e5-baeb-247703a38240<|endoftext|> |
<commit_before>/*
PureBackup - human-readable backup output
Copyright (C) 2005 Ben Wilhelm
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; version 2 of the license only.
This prog... |
<commit_before>/*
Copyright (c) 2001 Peter Dimov and Multi Media Ltd.
Copyright (c) 2016 Modified Work Barrett Adair
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
HEADER GUARDS INTENTIONALLY OMITTED
DO NOT INCLUDE THIS HEADER ... |
<commit_before>#include <cstdio>
#include <cmath>
#include <vector>
#include <random>
#include <chrono>
namespace NQueens
{
class Board
{
std::default_random_engine generator;
std::vector<int> rows;
int refillInterval;
int getConflictCount(int row, int col) const
{
... |
<commit_before>#include "httpd.h"
#include <stdio.h>
#include <string.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
int opterr = 1;
int optind = 1;
int optopt;
char *optarg;
static int getopt(int argc, char** argv, const char* opts) {
static int sp = 1;
register int c;
register char *cp;
if(sp == 1) {
... |
<commit_before>#include "scope.h"
#include "details/ir/emit.h"
using namespace Yuni;
namespace ny {
namespace ir {
namespace Producer {
namespace {
bool extractParameterDetails(Scope& scope, AST::Node& node, uint32_t& lvid, AnyString& name) {
bool isRef = false;
bool isConst = false;
AST::Node* typeNode = nul... |
<commit_before>// File: decoder.hh
// Decodes the names and types encoded by OCC
#ifndef H_SYNOPSIS_CPP_DECODER
#define H_SYNOPSIS_CPP_DECODER
#include <string>
#include <vector>
// Forward decl of Types::Type
namespace Types { class Type; }
// bad duplicate typedef.. hmm
typedef std::vector<std::string> ScopedName... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: salframe.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-04-11 18:06:15 $
*
* The Contents of this file are made ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>#include "TChain.h"
#include "TTree.h"
#include "TH1D.h"
#include "TF1.h"
#include "TCanvas.h"
#include "TObjArray.h"
#include "AliAnalysisTask.h"
#include "AliAnalysisManager.h"
#include "AliESDEvent.h"
#include "AliESDInputHandler.h"
#include "AliT0CalibOffsetChannelsTask.h"
//#inclu... |
<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 "chrome/browser/ui/bookmarks/recently_used_folders_combo_model.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_... |
<commit_before>// Copyright 2017 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/feature_engagement/new_tab/new_tab_tracker.h"
namespace {
const int kTwoHoursInMinutes = 120;
} // namespace
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: stgole.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-09-17 16:10:14 $
*
* The Contents of this file are made a... |
<commit_before>// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: testFunctions.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>/* -------------------------------------------------------------------------- *
* OpenSim: ForceSet.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>#ifndef GCL_TYPE_INFO__
# define GCL_TYPE_INFO__
#include <gcl_cpp/preprocessor.hpp>
#include <tuple>
#include <memory>
#include <functional>
#include <cassert>
#include <vector>
#include <typeindex>
#include <gcl_cpp/mp.hpp>
#include <gcl_cpp/tuple_utils.hpp>
namespace gcl::type_info
{
namespace id... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlComponent.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: ihi $ $Date: 2007-11-20 19:00:20 $
*
* The Contents of this file are ... |
<commit_before>//
// Wagon contacts: EMCAL Gustavo.Conesa.Balbastre@cern.ch
// PHOS Yuri.Kharlov@cern.ch
//
AliAnalysisTaskParticleCorrelation *AddTaskCalorimeterQA(TString data, Bool_t kPrintSettings = kFALSE,Bool_t kSimulation = kFALSE,TString outputFile = "", Bool_t oldAOD=kFALSE)
{
// Creates a P... |
<commit_before><commit_msg>add get_logger_debug to disable logging by default<commit_after><|endoftext|> |
<commit_before>#include <ContentForgeTool.h>
#include <ShaderCompiler.h>
#include <Utils.h>
#include <CLI11.hpp>
#include <iostream>
#include <thread>
#include <filesystem>
namespace fs = std::filesystem;
// Set working directory to $(TargetDir)
// Example args:
// -s src/shaders/hlsl_usm/CEGUI.hlsl.meta
// -s src/sh... |
<commit_before><commit_msg>10161 - Ant on a Chessboard<commit_after><|endoftext|> |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<commit_before>//
// Copyright (c) 2016 CNRS
// Author: NMansard
//
//
// This file is part of hpp-pinocchio
// hpp-pinocchio is free software: you can redistribute it
// and/or modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation, either version
// 3 of the... |
<commit_before><commit_msg>do not add deprecated limits<commit_after><|endoftext|> |
<commit_before>// template impl (included from header)
// #include "hheap.h"
template<typename V>
Node<V>::Node(int32_t _id, V _value) :
id(_id), value(_value), rank(0), is_hollow(false), is_root(true), next_sibling(
nullptr), head_childs(nullptr) {
}
template<typename V, typename C>
inline std::vector<No... |
<commit_before>#include "opencv2/core/utility.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include <string>
#include <iostream>
#include <map>
using namespace std;
using namespace cv;
//============================================================================... |
<commit_before>/*
* BloomFilter.cpp
*
* Created on: 08.08.2015
* Author: Henning
*/
#include "BloomFilter.h"
#include "Random.h"
namespace Aux {
BloomFilter::BloomFilter(count numHashes, count size): numHashes(numHashes), size(size) {
membership.resize(numHashes);
salts.resize(numHashes);
for (index i... |
<commit_before>//
// Vehicles.cpp
//
// Copyright (c) 2001 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "vtlib/vtlib.h"
#include "TerrainSceneWP.h"
#include "Engines.h"
#include "Hawaii.h"
///////////////////////////////
// helpers
void ConvertPurpleToColor(vtGroup *pModel,... |
<commit_before>#include <UnitTest++/src/UnitTest++.h>
#include "rdestl/intrusive_slist.h"
namespace
{
struct MyNode : public rde::intrusive_slist_node
{
explicit MyNode(int i = 0): data(i) {}
int data;
};
TEST(DefaultCtorConstructsEmptyList)
{
rde::intrusive_slist<MyNode> l;
CHECK(l.empty()... |
<commit_before>#include "eventgenerator.h"
#include "parse.h"
#include "eventgeneratorfactory.h"
#include <thread.h>
#include <vector>
using namespace std;
EventGenerator*
EventGenerator::parse(char *filename)
{
ifstream in(filename);
if(!in) {
cerr << "no such file " << filename << endl;
threadexitsall(0)... |
<commit_before>#include "FanDefinition.h"
#include "ui/UIWebView.h"
#include "../compiler.h"
#include "../TilesImage.h"
#include "../mahjong-algorithm/stringify.h"
#include "../mahjong-algorithm/fan_calculator.h"
#include "../widget/LoadingView.h"
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM =... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ConnectionPageSetup.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2007-04-26 07:56:11 $
*
* The Contents of this fil... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageMandelbrotSource.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserve... |
<commit_before>/***********************************************************************
query.cpp - Implements the Query class.
Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
MySQL AB, and (c) 2004, 2005 by Educational Technology Resources, Inc.
Others may also hold copyrights on code in this fil... |
<commit_before>// https://projecteuler.net/problem=68
/*
Magic 5-gon ring
Consider the following "magic" 3-gon ring, filled with the numbers 1 to 6, and each
line adding to nine.
4
\
\
3
/ \
/ \
1-----2-----6
/
/
5
Working clockwise, and starting from the group of three with the nu... |
<commit_before>//
// Created by Miguel Rentes on 30/01/2017.
//
#include "STL.h"
void printKMax(int arr[], int n, int k) {
deque<int> mydeque;
int greatest = 0;
int value = 0;
int index = 0;
std::deque<int>::iterator it;
for (int i = 0; i < n; i++) {
mydeque.push_front(arr[i]);
}
... |
<commit_before>#include <osgTerrain/TerrainTile>
#include <osgDB/ObjectWrapper>
#include <osgDB/InputStream>
#include <osgDB/OutputStream>
// _tileID
static bool checkTileID( const osgTerrain::TerrainTile& tile )
{
return tile.getTileID().valid();
}
static bool readTileID( osgDB::InputStream& is, osgTerrain::Terr... |
<commit_before><commit_msg>If you select a date like Jan 31, and you go to a month with less days than that date, show the last day of the new month instead of doing nothing.<commit_after><|endoftext|> |
<commit_before>// @(#)root/base:$Id$
// Author: Bertrand Bellenot 19/06/2007
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before><commit_msg>Continuing to define the bookkeeping<commit_after><|endoftext|> |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2017. All rights reserved
*/
#include "../../../StroikaPreComp.h"
#include "../../../Characters/Format.h"
#include "Reader.h"
//// SEEE http://www.zlib.net/zlib_how.html
/// THIS SHOWS PRETTY SIMPLE EXAMPLE OF HOW TO DO COMPRESS/DECOMPRESS AND WE CAN U... |
<commit_before>#include "UDPSocket.hpp"
#include "Types.hpp"
#include "Experimental.hpp"
#include "CRC32.hpp"
#include "Debug.hpp"
#include "Log.hpp"
namespace MPACK
{
namespace Network
{
UDPSocket::UDPSocket()
: isNonBlocking(false), isBroadcasting(false), isCRC32Enabled(false)
{
socket=Wrapper::Socket... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010-2011 Openismus GmbH.
** Authors: Peter Penz (ppenz@openismus.com)
** Patricia Santana Cruz (patriciasantanacruz@gmail.com)
**
** Contact: Nokia Corporati... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved
*/
#ifndef _Stroika_Foundation_DataExchangeFormat_CheckedConverter_inl_
#define _Stroika_Foundation_DataExchangeFormat_CheckedConverter_inl_ 1
/*
*******************************************************************************... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.o... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2015. All rights reserved
*/
#ifndef _Stroika_Foundation_IO_FileSystem_BinaryFileInputStream_inl_
#define _Stroika_Foundation_IO_FileSystem_BinaryFileInputStream_inl_ 1
/*
*****************************************************************************... |
<commit_before>/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>#include "GLFWWindowManager.h"
using namespace phoenix;
/*!
Open function.
*/
bool GLFWWindowManager::open( const Vector2d& _sz, const bool _f )
{
// Set our internal screen size variable.
screensize = _sz;
// No GLFW functions may be called before this
if( !glfwInit() ) r... |
<commit_before>// $Id: ooiEnergy.C,v 1.5 2000/05/30 10:35:18 oliver Exp $
#include <BALL/SOLVATION/ooiEnergy.h>
#include <BALL/common.h>
#include <BALL/DATATYPE/hashGrid.h>
#include <BALL/DATATYPE/string.h>
#include <BALL/DATATYPE/stringHashMap.h>
#include <BALL/STRUCTURE/geometricProperties.h>
#include <BALL/KERNEL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.