text stringlengths 54 60.6k |
|---|
<commit_before>/* Copyright (c) 2012-present Advanced Micro Devices, 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
to use, c... |
<commit_before>#ifndef ref_ptr_hh_INCLUDED
#define ref_ptr_hh_INCLUDED
#include <utility>
namespace Kakoune
{
struct WorstMatch { [[gnu::always_inline]] WorstMatch(...) {} };
[[gnu::always_inline]]
inline void ref_ptr_moved(WorstMatch, void*, void*) noexcept {}
template<typename T, typename TForOverload = T>
struc... |
<commit_before>//=============================================================================================================
/**
* @file test_mne_anonymize.cpp
* @author Lorenz Esch <lorenzesch@hotmail.com>;
* @version 1.0
* @date September, 2019
*
* @section LICENSE
*
* Copyright (C) 2019, Lorenz Esch. A... |
<commit_before>//===-- ValueObjectChild.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) 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 "config.h"
#include <objidl.h>
#pragma warning(push, 0)
#include "ClipboardWin.h"
#include "COMPtr.h"
#include "DragDat... |
<commit_before>// $Id: LineBasedFile_test.C,v 1.9 2000/10/19 20:04:04 amoll Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/FORMAT/lineBasedFile.h>
///////////////////////////
START_TEST(class_name, "$Id: LineBasedFile_test.C,v 1.9 2000/10/19 20:04:04 amoll Exp $")
//////////////... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: dockWidget.C,v 1.13 2003/09/17 22:16:40 amoll Exp $
#include <BALL/VIEW/WIDGETS/dockWidget.h>
#include <BALL/VIEW/KERNEL/mainControl.h>
#include <BALL/VIEW/KERNEL/common.h>
#include <qmenubar.h>
#include <qlabel.h>
using std::endl;
namesp... |
<commit_before>#include "ros/ros.h"
#include <string>
#include "uinput_device.h"
const char* DEVICE_NAME_PARAM = "device_name";
int main(int argc, char** argv) {
/* initialize ros */
ros::init(argc, argv, "evdev_teleport_receiver");
ros::NodeHandle n("~");
/* open the device */
std::string device_name... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//======================================... |
<commit_before>#include <beluga/tls/tls_client.hpp>
#include <beluga/tls/tls_reader.hpp>
beluga::http_client::request_event::request_event(bool _continue):
continue_event(_continue)
{
}
beluga::http_client::http_client(boost::asio::ip::tcp::socket& socket):
tcp_client(socket)
{
initialize();
}
beluga:... |
<commit_before>// Copyright 2022 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... |
<commit_before>#include <iostream>
#include <fstream>
#include <boost/program_options.hpp>
#include <iomanip>
std::string filename = "/tmp/pending-rollback.rewind";
namespace po = boost::program_options;
void run(char change_command[], char rollback_command[], int timeout);
void keep();
void print_usage(char *argv[]... |
<commit_before>#include <cstdlib>
#include <cerrno>
#include <cstring>
#include <cstdio>
#include <cassert>
#include "ring.hpp"
#include <stdint.h>
#include <QFile>
#define DEFAULTBUFFERSIZE 1024
#define DEFAULTMUTATIONINTERVAL 16
int main(int argc, char* argv[])
{
char inputFile[256+1];
char outputFile[256+1];
ch... |
<commit_before>//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Versio... |
<commit_before>#include <string>
std::string pre_rules()
{
std::string pre;
pre+="iptables -F\n";
pre+="iptables -X\n";
pre+="\n";
pre+="iptables -P INPUT DROP\n";
pre+="iptables -P FORWARD DROP\n";
pre+="iptables -P OUTPUT DROP\n";
pre+="\n";
pre+="iptables -A INPUT -m state --state RELATED,ESTABLISHED -j AC... |
<commit_before>/* Copyright (C) 2000 MySQL AB
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 License, or
(at your option) any later version.
This program is d... |
<commit_before>#include "genomeParametersWrite.h"
#include "streamFuns.h"
void genomeParametersWrite(string fileName, Parameters& P, string errorOut)
{//write the genome information into the genomePar stream
ofstream & genomePar = ofstrOpen(fileName, errorOut, P);
genomePar << "### "<<P.commandLineFull <<"\n"... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>#include <node.h>
#include <nan.h>
#include <v8.h>
#include <vector>
#include "mouse.h"
#include "deadbeef_rand.h"
#include "keypress.h"
#include "screen.h"
#include "screengrab.h"
#include "MMBitmap.h"
using namespace v8;
/*
__ __
| \/ | ___ _ _ ___ ___
| |\/| |/ _ \| | ... |
<commit_before>/*//////////////////////////////////////////////////////////////////
//// SKIRT -- an advanced radiative transfer code ////
//// © Astronomical Observatory, Ghent University ////
///////////////////////////////////////////////////////////////// */
#include "Log.hpp"
#include ... |
<commit_before>/**********************************************************************
* $Id$
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesse... |
<commit_before><commit_msg>INTEGRATION: CWS residcleanup (1.24.22); FILE MERGED 2007/02/18 19:21:41 pl 1.24.22.1: #i74635# get rid of implicit global ResMgr<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: htmlex.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2004-08-23 08:13:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>//===-- RuntimeDyldCOFF.cpp - Run-time dynamic linker for MC-JIT -*- C++ -*-==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>coverity#735844 Dereference after null check<commit_after><|endoftext|> |
<commit_before>//===--- BugReducerTester.cpp ---------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before><commit_msg>option to disable grpc over http<commit_after><|endoftext|> |
<commit_before><commit_msg>SSLConfig struct CertAndStatus is not initializing all its members.<commit_after><|endoftext|> |
<commit_before>/*
* Vulkan framebuffer class
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#pragma once
#include <algorithm>
#include <iterator>
#include <vector>
#include "vulkan/vulkan.h"
#include "vulkan... |
<commit_before>#include "mf_movie_player.h"
#include "halley/resources/resource_data.h"
#include "halley/core/api/audio_api.h"
#include "halley/core/api/video_api.h"
#include "resource_data_byte_stream.h"
#include "halley/core/graphics/texture_descriptor.h"
#include "halley/concurrency/concurrent.h"
#include "halley/co... |
<commit_before>/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>#include "IRVisitor.h"
#include "IR.h"
namespace Halide {
namespace Internal {
IRVisitor::~IRVisitor() {
}
void IRVisitor::visit(const IntImm *) {
}
void IRVisitor::visit(const FloatImm *) {
}
void IRVisitor::visit(const StringImm *) {
}
void IRVisitor::visit(const Cast *op) {
op->value.accept(... |
<commit_before>#include "domain.h"
#include "person.h"
#include <iostream>
#include <algorithm>
#include <vector>
#include "data.h"
#include "console.h"
using namespace std;
Domain::Domain()
{
}
bool agePerson (const Person& lsh, const Person& rhs) // sort by birthyear
{
return (lsh.getBirth() < rhs.getBirth())... |
<commit_before><commit_msg>& next to type name<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required b... |
<commit_before>#include "States.h"
enum DemoPages
{
PAGE_SPRITE,
PAGE_TILED,
PAGE_TEXT,
PAGE_TEXTPATH,
PAGE_CONTROLLER,
PAGE_ASCII,
PAGE_TILEMAP,
PAGE_COLLISION,
PAGE_INTERPOLATE,
PAGE_PARTICLES,
PAGE_TRAILAREA,
PAGE_BACKDROP,
PAGE_LIGHTING2D,
PAGE_GRAPHICS3D,
PAGE_ASYNC,
NUM_DEMOPAGES,
};
void DemoS... |
<commit_before>#include <boost/tokenizer.hpp>
#include <iostream>
#include <unistd.h>
#include <string.h>
#include <cstdlib>
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string>
#include <sstream>
#include <vector>
#include <sys/stat.h>
#include <fcntl.h>
int oldstdin = ... |
<commit_before>#include<iostream>
#include<sys/stat.h>
#include<fcntl.h>
#include<pwd.h>
#include<sstream>
#include<stdio.h>
#include<boost/tokenizer.hpp>
#include<errno.h>
#include<string>
#include<stdlib.h>
#include<string.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<sys/unistd.h>
using namespace std;
usin... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <string>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <errno.h>
#include <vector>
#include <stdlib.h>
#include <fcntl.h>
using namespace std;
void parse(char * line, vector<string> & input) {
cha... |
<commit_before>#include <iostream>
#include <stdlib.h>
#include <string>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <cstring>
#include <vector>
using namespace std;
int main()
{
while(true)
{
string commands;//Receive command line
cout << "$";... |
<commit_before>/************************************
* file enc : ASCII
* author : wuyanyi09@gmail.com
************************************/
#ifndef CPPJIEBA_MPSEGMENT_H
#define CPPJIEBA_MPSEGMENT_H
#include <algorithm>
#include <set>
#include <cassert>
#include "Limonp/logger.hpp"
#include "Trie.hpp"
#include "T... |
<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 <algorithm>
#include "skia/ext/convolver.h"
namespace skia {
namespace {
// Converts the argument to an 8-bit unsigne... |
<commit_before>/****************************************************************************
*
* Copyright (C) 2014 PX4 Development Team. All rights reserved.
* Author: Pavel Kirienko <pavel.kirienko@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitte... |
<commit_before>/**
* This file is part of the "FnordMetric" project
* Copyright (c) 2014 Paul Asmuth, Google Inc.
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public Licen... |
<commit_before>/**
Пример класса SafetyArray из 8-ой лекции
*/
#include <algorithm> /// используем функцию copy_n для копирования элементов одного массива в другой
#include <iostream> /// вывод на консоль
#include <cstdlib> /// нужна для правильного выбора функции abs
#include <cmath> /// причина аналог... |
<commit_before>// This file is part of Pate, Kate' Python scripting plugin.
//
// Copyright (C) 2006 Paul Giannaros <paul@giannaros.org>
// Copyright (C) 2012 Shaheed Haque <srhaque@theiet.org>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Pu... |
<commit_before>/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
<commit_before>/// @file VCDTracer.h
///
/// The VCD generation module.
///
/// @par Full Description
/// The class provides means for collecting signals
/// and storing the data in the VCD format.
///
/// @ingroup Tracer
///
/// @par Copyright (c) 2016 vcdMaker team
///
/// Permission is hereby granted, free of charge... |
<commit_before>#include <string>
#include <Poco/XML/XMLWriter.h>
#include <Poco/SAX/AttributesImpl.h>
#include "xmlui/Serializing.h"
#include "model/Gateway.h"
#include "model/LegacyGateway.h"
#include "model/Location.h"
#include "model/Device.h"
#include "model/DeviceInfo.h"
#include "model/DeviceProperty.h"
#include... |
<commit_before>#include "stdafx.h"
#include "RPlotHost.h"
#define WM_ACTIVATE_PLOT (WM_USER + 100)
using namespace rplots;
HWND RPlotHost::m_hwndPlotWindow = NULL;
HHOOK RPlotHost::m_hOldHook = NULL;
bool RPlotHost::m_fProcessing = false;
std::unique_ptr<RPlotHost> RPlotHost::m_pInstance = NULL;
RPlotHost::RPlotHos... |
<commit_before>#include "RayTracer.hpp"
#include "Tree.hpp"
#include <ctime>
//temporary variables
Vec3Df testRayOrigin;
Vec3Df testRayDestination;
string mesh;
extern unsigned int textures[2];
clock_t lastFrameTime;
float fps;
unsigned int framesSinceLastDraw = 30;
string screenFPS;
extern unsigned int previewResX;
e... |
<commit_before>/// @file
/// @author Boris Mikic
/// @version 1.48
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php
#include "Rectangle.h"
#include "Vector2.h"
namespac... |
<commit_before>#include "scanner.h"
namespace flora {
// Public Methods
Scanner::Scanner() {
// TODO
}
void Scanner::Initialize() {
UNIMPLEMENTED();
}
Token Scanner::Advance() {
switch (state_) {
case Scanner::State::Uninitialized:
ReportScannerError("the scanner is uninitialized");
return Token::I... |
<commit_before>/* ux++ - ux implementation for C++ */
/* LICENSE - The MIT License (MIT)
Copyright (c) 2013 Tomona Nanase
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, inc... |
<commit_before>#ifndef DUNE_STUFF_FUNCTION_EXPRESSION_HH
#define DUNE_STUFF_FUNCTION_EXPRESSION_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#else
#include "config.h"
#endif // ifdef HAVE_CMAKE_CONFIG
#include <sstream>
#include <vector>
#if HAVE_EIGEN
#include <Eigen/Core>
#endif // HAVE_EIGEN
#incl... |
<commit_before>#include "script.hpp"
#include "filesystem.hpp"
#include "logger.hpp"
class LuaScript
{
public:
LuaScript()
{
InitLua();
}
~LuaScript()
{
HaltLua();
}
// call a lua function.
// you must specify the quantity of of params and returns.
int CallLua(std:... |
<commit_before><commit_msg>bump version to 0.4.1<commit_after><|endoftext|> |
<commit_before><commit_msg>update 335<commit_after><|endoftext|> |
<commit_before>#include <cmath>
#include <chrono>
#include <iostream>
#include "SrsEngine.h"
Flashcard SrsEngine::gradeFlashcard(Flashcard flashcard, unsigned int grade) {
float newEasinessFactor = 0;
std::time_t nextDate;
if (grade < 3) {
flashcard.setRepetitionCount(0);
flashcard.setInt... |
<commit_before><commit_msg>Minor fix in comments<commit_after><|endoftext|> |
<commit_before>/*
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz>
This file is part of Magnum.
Magnum is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
... |
<commit_before><commit_msg>DN-154 Display Names only shown in Nearby Chat History when a user logs back in even if Usernames were shown in Chat during previous session<commit_after><|endoftext|> |
<commit_before><commit_msg>Replaced gSavedSettings.get* calls in texture console with LLCachedControls<commit_after><|endoftext|> |
<commit_before>#include <StdAfx.h>
#include <UI/Controls/PaneHeader/PaneHeader.h>
#include <UI/UIFunctions.h>
#include <core/utility/strings.h>
#include <UI/DoubleBuffer.h>
#include <core/utility/output.h>
#include <core/utility/registry.h>
namespace controls
{
static std::wstring CLASS = L"PaneHeader";
PaneHeader:... |
<commit_before>#include "segment.h"
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include "size_types.h"
namespace project {
const size_t Segment::kMaxCars = 5;
Segment::Segment(size_t capacity, Segment* prev, int ready_percent,
size_t num_junctions, size_t pass_limit)
: capacity_(c... |
<commit_before>/*************************************************************************/
/* editor_plugin_settings.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*=========================================================================
Program: KWSys - Kitware System Library
Module: testDynamicLoader.cxx
Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>/*
* CameraParamsTileRectOverride.cpp
*
* Copyright (C) 2006 - 2007 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
* Copyright (C) 2007, Sebastian Grottel. All rights reserved.
*/
#include "vislib/graphics/CameraParamsTileRectOverride.h"
#include "vislib/assert.h"
#include "vislib/ma... |
<commit_before>// Windowmenu.cc for Fluxbox
// Copyright (c) 2001-2002 Henrik Kinnunen (fluxgen@linuxmail.org)
// Windowmenu.cc for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this s... |
<commit_before>// Windowmenu.cc for Fluxbox
// Copyright (c) 2001-2002 Henrik Kinnunen (fluxgen@linuxmail.org)
// Windowmenu.cc for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this s... |
<commit_before>#include <pybind11/pybind11.h>
#include "encoder/encoder_sample.h"
#include "clustering/cpp_implemented_clustering_sample.h"
namespace py = pybind11;
PYBIND11_PLUGIN(_pqkmeans) {
py::module m("_pqkemeans", "internal module for PQk-means");
py::class_<EncoderSample>(m, "EncoderSample")
... |
<commit_before>#include "../include/graph.h"
#include "../include/tournament.h"
#include <vector>
#include <cmath>
#include <set>
#include <cassert>
typedef std::shared_ptr<Tournament> tournament_ptr;
bool check_if_fixable(TournamentGraph& graph, int node)
{
int wins = 0;
for (int i=0; i<graph.get_size(); ++i... |
<commit_before>bd76671c-2e4f-11e5-973f-28cfe91dbc4b<commit_msg>bd7d7391-2e4f-11e5-949a-28cfe91dbc4b<commit_after>bd7d7391-2e4f-11e5-949a-28cfe91dbc4b<|endoftext|> |
<commit_before>75dea8f5-4b02-11e5-b4a7-28cfe9171a43<commit_msg>Did ANOTHER thing<commit_after>75ed1e68-4b02-11e5-9fcc-28cfe9171a43<|endoftext|> |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "CameraHandler.h"
#include "WorldBuildingModule.h"
#include "Quaternion.h"
#include <SceneManager.h>
#include <EC_OgrePlaceable.h>
#include <EC_OgreCamera.h>
#include <EC_OgreMesh.h>
#incl... |
<commit_before>31d6889a-2e3a-11e5-a46f-c03896053bdd<commit_msg>31e5f4b8-2e3a-11e5-8e6f-c03896053bdd<commit_after>31e5f4b8-2e3a-11e5-8e6f-c03896053bdd<|endoftext|> |
<commit_before>2f175b52-2e3a-11e5-af5c-c03896053bdd<commit_msg>2f247d12-2e3a-11e5-91df-c03896053bdd<commit_after>2f247d12-2e3a-11e5-91df-c03896053bdd<|endoftext|> |
<commit_before>808e1007-2749-11e6-b5ac-e0f84713e7b8<commit_msg>my cat is cute<commit_after>809ed2b0-2749-11e6-be00-e0f84713e7b8<|endoftext|> |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015 MRL-SPL RoboCup Team
*
* 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 limi... |
<commit_before><commit_msg>gltfio: show warning for missing normals.<commit_after><|endoftext|> |
<commit_before>//---
//
// License: MIT
//
// Author: David Burken
//
// Description: Container class for J2K Image and tile size (SIZ) record.
//
// See document BPJ2K01.00 Table 7-6 Image and tile size (15444-1 Annex A5.1)
//
//---
// $Id$
#include <ossim/support_data/ossimJ2kSizRecord.h>
#include <ossim/base/ossi... |
<commit_before>/**
* machina
*
* Copyright (c) 2014, drmats
* All rights reserved.
*
* https://github.com/drmats/machina
*/
#ifndef __SHADER_CPP_
#define __SHADER_CPP_ 1
#include "shader.hpp"
namespace machina {
/**
* Shader source helper macro.
*/
#define GLSL(version, src) "#version " #version "\... |
<commit_before>// Scintilla source code edit control
/** @file LexMSSQL.cxx
** Lexer for MSSQL.
**/
// By Filip Yaghob <fyaghob@gmail.com>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <stdarg.h>
#include "Platform.h"
#include "PropSet.h"
#include "Accessor.h"
#include "Ke... |
<commit_before>#ifndef NEU_LAYER_LOAD_HPP
#define NEU_LAYER_LOAD_HPP
//20151211
#include <exception>
#include <yaml-cpp/yaml.h>
#include <neu/layer/inner_product.hpp>
#include <neu/layer/bias.hpp>
#include <neu/layer/activation/sigmoid.hpp>
#include <neu/layer/activation/rectifier.hpp>
#include <neu/layer/activation/si... |
<commit_before>#line 2 "togo/resource/resource_package.cpp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#include <togo/config.hpp>
#include <togo/utility/utility.hpp>
#include <togo/error/assert.hpp>
#include <togo/log/log.hpp>
#include <togo/hash/hash.hpp>
#include <togo/collection... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_ASSEMBLER_GRIDWALKER_HH
#define DUNE_GDT_ASSEMBLER_GRIDWALKER_HH
#inclu... |
<commit_before><commit_msg>DNS code: fix one more place was using 'stringexception' to use (SystemErrorException (... DNS_error_category); and fixed DNS_error_category message report to look a little better on widnows<commit_after><|endoftext|> |
<commit_before><commit_msg>[GL3+] Add GLSL 4.4 shader profile for OpenGL 4.4<commit_after><|endoftext|> |
<commit_before><commit_msg>GLES 2 - removed some broken code.<commit_after><|endoftext|> |
<commit_before>/**
* @file spline.cpp
* @brief definition of spline functions
* @author Peter & Nigel, Design Software, 42 Gubberley St, Kenmore, 4069, Australia.
*/
#undef k
#undef ss
/************************************************/
/* adapted from */
/* CMATH. ... |
<commit_before>/*
* objtest
*
* $Date$
* $Revision$
*
*/
// Access the internals of the object module
#include "../src/lib/conf.h"
#include <libtpt/object.h>
#include <iostream>
#include <map>
using TPT::Object;
void test1();
int main(int argc, char* argv[])
{
try {
test1();
} catch(const std::exception& ... |
<commit_before><commit_msg>[cpp]26. Remove Duplicates from Sorted add a more efficient solution<commit_after><|endoftext|> |
<commit_before><commit_msg>Fixing build.<commit_after><|endoftext|> |
<commit_before>// @(#)root/graf:$Id$
// Author: Anna Kreshuk 18/11/2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#ifndef PRESETEDITOR_HPP
#define PRESETEDITOR_HPP
// stdlib
#include <string>
#include <functional>
// Libslic3r
#include "libslic3r.h"
#include "ConfigBase.hpp"
#include "Config.hpp"
// GUI
#include "misc_ui.hpp"
// Wx
#include <wx/treectrl.h>
#include <wx/imaglist.h>
#include <wx/panel.h>
#if SLIC... |
<commit_before>#include "PresetChooser.hpp"
#include "misc_ui.hpp"
namespace Slic3r { namespace GUI {
PresetChooser::PresetChooser(wxWindow* parent, std::weak_ptr<Print> print) : PresetChooser(parent, print, SLIC3RAPP->settings(), SLIC3RAPP->presets) {}
PresetChooser::PresetChooser(wxWindow* parent, std::weak_ptr<Pr... |
<commit_before>/*
=============================================================================
Name: MiniKing.h
Author: Emilio Garcia-Fidalgo
Date: 30/10/06 18:22
Description: Main Library class
=============================================================================
*/
#include "libminiking/MiniKing.h"
... |
<commit_before>
#include "OsmLayer.h"
#include <stdio.h>
// This is the total number of meters in the world -180. - 180 W,
#define MAXLAT 85.0511287798066
#define MAXLON 180.0
// from http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
int long2tilex(double lon, int z)
{
return (int)(floor((lon + 180.0) / 360.0... |
<commit_before>
#include <avr/interrupt.h>
#include "HalfDuplexHardwareSerial.h"
#define USART_PORT PORTD
#define USART_DDR DDRD
#define USART_PIN PIND
#define USART_RX_PIN PD0
#define USART_TX_PIN PD1
#define USART0_PORT PORTD
#define USART0_DDR DDRD
#define USART0_PIN PIND
#define USART0_RX_PIN PD0
#define USART0_T... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010, 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.