text stringlengths 54 60.6k |
|---|
<commit_before><commit_msg>Fix formatting "Ggp command line process failed with error"<commit_after><|endoftext|> |
<commit_before>/***********************************************************************
filename: CEGUIOpenGLApplePBTextureTarget.cpp
created: Sun Feb 1 2009
author: Paul D Turner
*************************************************************************/
/*******************************************... |
<commit_before>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
bool Cavern;
BYTE Version;
CHAR Config[MAX_PATH], LandFile[MAX_PATH];
SHORT SWidth, SHeight, GlobalEatLimit, TargetWidth, TargetHeight;
SHORT ScreenX, ScreenY;
DWORD OfflineCavernFloodFix;
DWORD ActualWidth, HorizontalSidesBox, Rende... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkPipelineGraphSource.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details... |
<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/browser/sync/notifier/base/async_network_alive.h"
#include <sys/socket.h>
#include <asm/types.h>
#include <linux/netl... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2008 Torsten Rahn <[email protected]>
// Copyright 2012 Illya Kovalevsk... |
<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>#pragma once
#include <stdint.h>
namespace autocxxpy
{
template <size_t ... vals>
inline constexpr int64_t tsum() noexcept {
if constexpr (sizeof...(vals) == 0) return 0;
else return (vals + ...);
}
static_assert(tsum<1, 2, 3>() == 6);
template <class ... T>
inl... |
<commit_before>#include "pch.h"
#include "MainWindow.h"
#include "Items.h"
#include "Resources\resource.h"
#include "Person.h"
#include "FlashImageScene.h"
#include "LuckyScene.h"
#include "Box2dScene.h"
#include "DxRes.h"
using D2D1::ColorF;
using D2D1::Matrix3x2F;
using namespace std;
const UINT Contr... |
<commit_before>/*
* Copyright 2010 MQWeb - Franky Braem
*
* Licensed under the EUPL, Version 1.1 or – as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of th... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_SPACES_CONTINUOUSLAGRANGE_FEM_LOCALFUNCTIONS_HH
#define DUNE_GDT_SPACES... |
<commit_before>// dune-multiscale
// Copyright Holders: Patrick Henning, Rene Milk
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef MSFEM_ELLIPTIC_DiscreteEllipticMSFEMOperator_HH
#define MSFEM_ELLIPTIC_DiscreteEllipticMSFEMOperator_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_co... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// This source file is part of Hect.
//
// Copyright (c) 2016 Colin Hill
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software... |
<commit_before>/*
* Copyright (c) 2015, 2016, 2017, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, th... |
<commit_before>//
// ZX8081.cpp
// Clock Signal
//
// Created by Thomas Harte on 04/06/2017.
// Copyright © 2017 Thomas Harte. All rights reserved.
//
#include "ZX8081.hpp"
using namespace ZX8081;
Machine::Machine() :
vertical_sync_(false),
ram_(65536) {
// run at 3.25 Mhz
set_clock_rate(3250000);
}
int Mac... |
<commit_before>
#include "potentialfunctioncbspl.h"
PotentialFunctionCBSPL::PotentialFunctionCBSPL(const int nlam_,
const int ncutcoeff_, const double min_, const double max_) :
PotentialFunction(nlam_,min_,max_) {
/* Here nlam_ is the total number of coeff values that are to be ... |
<commit_before>#include <QtCore>
#include <QtNetwork>
#include <obs.h>
#include "nicolive.h"
// class NicoLive
class NicoLive : public QObject
{
// Q_OBJECT
public:
static const QUrl LOGIN_URL;
// static const QUrl MYLIVE_URL;
static const QUrl PUBSTAT_URL;
static const QString FMEPROF_URL_PRE;
private:
QString ... |
<commit_before>/*
* File: main_voctreeLocalizer.cpp
* Author: sgaspari
*
* Created on September 12, 2015, 3:16 PM
*/
#include <openMVG/localization/VoctreeLocalizer.hpp>
#include <openMVG/localization/CCTagLocalizer.hpp>
#include <openMVG/localization/optimization.hpp>
#include <openMVG/sfm/pipelines/localizati... |
<commit_before>#include "CameraViewer.h"
//==============================================================
// SETUP / UPDATE / DRAW
//==============================================================
//--------------------------------------------------------------
//
void CameraViewer::_setup() {
int camWidth = 320;
... |
<commit_before>/* Copyright 2014-2015 QReal Research Group, Dmitry Chernov, Dmitry Mordvinov
*
* 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/LICEN... |
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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
//
//... |
<commit_before>#include "DataLikelihood.h"
#include "multichoose.h"
#include "multipermute.h"
long double
probObservedAllelesGivenGenotype(
Sample& sample,
Genotype& genotype,
double dependenceFactor,
bool useMapQ,
Bias& observationBias,
bool standardGLs,
vector... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, 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... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may o... |
<commit_before>#ifndef CACHEALIGNED_HPP_INCLUDED
#define CACHEALIGNED_HPP_INCLUDED
#include <cstddef>
#include "CacheAlignedBase.hpp"
template<typename T>
class CacheAligned : public Aligned<T>, CacheAlignedBase<T> {
public:
template<typename... Args>
CacheAligned(Args &&... args) : Aligned(cacheLineSize()) {}
};
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dependency.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-09 05:03:42 $
*
* The Contents of this file are mad... |
<commit_before>// Copyright 2014 Toggl Desktop developers.
#include "./timeentrycellwidget.h"
#include "./ui_timeentrycellwidget.h"
#include "./toggl.h"
TimeEntryCellWidget::TimeEntryCellWidget() : QWidget(0),
ui(new Ui::TimeEntryCellWidget),
guid("") {
ui->setupUi(this);
}
void TimeEntryCellWidget::display(Tim... |
<commit_before>#include "FileRepositoryDB.h"
#include "utils.h"
#include "FileRepositoryDBImpl.h"
#include "Poco/TemporaryFile.h"
using namespace boost::filesystem;
static std::shared_ptr<ILogger> logger = LoggerFactory::getLogger("application.FileRepositoryDB");
FileRepositoryDB::FileRepositoryDB(std::shared_ptr... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Lice... |
<commit_before>/*
* Copyright 2001,2004 The Apache Software 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributi... |
<commit_before>/*
* This file is a part of Xpiks - cross platform application for
* keywording and uploading images for microstocks
* Copyright (C) 2014-2015 Taras Kushnir <[email protected]>
*
* Xpiks is distributed under the GNU General Public License, version 3.0
*
* This program is free software: you can r... |
<commit_before>#include <errno.h>
#include <dlfcn.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/epoll.h>
#include <unistd.h>
#include "coroutine.h"
// stack size
static const int kProtectStackSize = 10 * 1024;
static const int kDefaulaStackSize = 100 * 1024;
// coroutine num
static const ... |
<commit_before>/*************************************************************************
*
* $RCSfile: e3dsceneproperties.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: pjunck $ $Date: 2004-11-03 10:31:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the f... |
<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>/*
* This file is part of WinSparkle (https://winsparkle.org)
*
* Copyright (C) 2009-2017 Vaclav Slavik
*
* 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 re... |
<commit_before>#ifndef INTRUMENTATION_HPP
#define INTRUMENTATION_HPP
#define ESC(...) __VA_ARGS__
#ifdef USE_VALUE_SUMMARY
#include "PathConstraint.hpp"
#include "ValueSummary.hpp"
#define BEGIN_BLOCK() \
do {
#define END_BLOCK() ... |
<commit_before>#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <iostream>
#include <utility>
#include <set>
#include <cctype>
#include <queue>
#include <stack>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <function... |
<commit_before>#include "ics3/eepparam.hpp"
ics::EepParam ics::EepParam::strech() noexcept {
static const EepParam STRECH(2, 2, 2, 254, &ics::EepParam::setEven, 60);
return STRECH;
}
ics::EepParam ics::EepParam::speed() noexcept {
static const EepParam SPEED(4, 2, 1, 127, &ics::EepParam::setNormal, 127);
retu... |
<commit_before>/*
This file is part of the PhantomJS project from Ofi Labs.
Copyright (C) 2011 Ariya Hidayat <[email protected]>
Copyright (C) 2011 execjosh, http://execjosh.blogspot.com
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the fo... |
<commit_before>////////////////////////////////////////////////////////////
//
// DAGON - An Adventure Game Engine
// Copyright (c) 2012 Senscape s.r.l.
// All rights reserved.
//
// NOTICE: Senscape permits you to use, modify, and
// distribute this file in accordance with the terms of the
// license agreement... |
<commit_before>/*******************************************************************************
* example2.cpp
* Measure time to write to containers in one of 2 modes:
* 1. using the standard STL allocator
* 2. using ArenaAlloc
*
* This software is distributed under the terms of the MIT license.
* Don't pani... |
<commit_before>// RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
//
// UNSUPPORTED: linux, solaris
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <fstab.h>
int main(void) {
printf("getfsent\n");
setfsent();
struct fstab *fentry = getfsent();
assert(fentr... |
<commit_before>#include <ros/ros.h>
#include <sensor_msgs/Imu.h>
#include <gazebo_msgs/GetModelState.h>
#include <message_filters/subscriber.h>
#include <geometry_msgs/PoseStamped.h>
namespace
{
using namespace std;
using namespace geometry_msgs;
static const double FREQUENCY = 0.01;
static const double BASE_X_DEFAUL... |
<commit_before>/*
* FaultHandler.cpp
*
Copyright (c) 2013 Collin Kidder, Michael Neuweiler, Charles Galpin
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 ... |
<commit_before>/*
* bacteria-ui, GUI for cellular automaton
* Copyright (C) 2016 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include <exception>
#include <QtGui>
#include "MainWindow.hpp"
class MyApplication : public QApplication {
public:
MyApplication(int& argc, char* argv[]):
QApp... |
<commit_before>#include <QApplication>
#include <QFontDatabase>
#include <QtGlobal>
#include <QFile>
#include <QCommandLineParser>
#include <QFileInfo>
#include <QDir>
#include "neovimconnector.h"
#include "mainwindow.h"
#include "app.h"
/// A log handler for Qt messages, all messages are dumped into the file
/// pas... |
<commit_before>#include "hardware.h"
Pad Hardware::_pad;
Stylus Hardware::_stylus;
FrameBuffer* Hardware::_topBuffer = NULL;
FrameBuffer* Hardware::_bottomBuffer = NULL;
WoopsiGfx::Graphics* Hardware::_topGfx = NULL;
WoopsiGfx::Graphics* Hardware::_bottomGfx = NULL;
#ifdef USING_SDL
SDL_Window* Hardwa... |
<commit_before>/* -------------------------------------------------------------------------- */
/* Copyright 2002-2009, Distributed Systems Architecture Group, Universidad */
/* Complutense de Madrid (dsa-research.org) */
/* ... |
<commit_before>/*
* Copyright 2014 Real Logic Ltd.
*
* 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 la... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include "App.h"
#include <Directory.h>
#include <NodeMonitor.h>
#include <Entry.h>
#include <Path.h>
#include <String.h>
#include <File.h>
/*
* Runs a command in the terminal, given the string you'd type
*/
BString*
run_script(const char *cmd)
{
char buf[BUFSIZ... |
<commit_before>int main(){
return 0;
}<commit_msg>Stuff<commit_after>int main(){
//Comments
return 0;
}<|endoftext|> |
<commit_before>#include <cstdio>
#include <vector>
#include <list>
#include <ctime>
#include <algorithm>
#include <iterator>
#include <fstream>
// include & define dependent libraries and types
#include <map>
#include <utility>
typedef struct { float left, top, right, bottom; } rect_t;
// include the mamdani matrix ge... |
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: FGEngine.cpp
Author: Jon Berndt
Date started: 01/21/99
Called by: FGAircraft
------------- Copyright (C) 1999 Jon S. Berndt ([email protected]) -------------
This program is free software; yo... |
<commit_before>#include <stdio.h>
#include <unistd.h>
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#define SHOW_IMAGE 1
using namespace cv;
using namespace std;
void readFile(str... |
<commit_before>#include <stdio.h>
#include <unistd.h>
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
using namespace cv;
using namespace std;
void readFile(string&, vector<string>&,... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: officeloader.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: obo $ $Date: 2008-01-04 16:22:37 $
*
* The Contents of this file are... |
<commit_before>#include "systick.h"
#include "peripheraltypes.h"
#include "nvic.h"
#include "clocks.h"
#include "minimath.h" //safe division functions
#include "tableofpointers.h"
MakeRefTable(SystemTicker);
namespace SystemTimer {
//when the following were simple static's Rowley would not show them.
u32 milliT... |
<commit_before>#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) // substr(m, n) // stoi(nnn)
#include <complex>
#include <tuple> // get<n>(xxx)
#include <queue>
#include <st... |
<commit_before>
#include <stdlib.h> /* srand, rand */
#include <chrono>
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <unsupported/Eigen/SparseExtra>
#include "bpmf.h"
using namespace std;
using namespace Eigen;
typedef SparseMatrix<double> SparseMatrixD;
const int num... |
<commit_before>#include <iostream>
#include <vector>
// other function style
int square1(int x) {
return x * x;
}
auto square(int x) -> int {
return x * x;
}
// no return
void disp(const std::string& s) {
std::string buf = "disp: " + s + "\n";
printf(buf.c_str());
}
int abs1(int x) {
if (x >= 0)... |
<commit_before>#include "special_la.h"
#include "fastlib/fastlib_int.h"
int main(int argc, char *argv[]){
fx_init(argc,argv,NULL);
Vector diag_mat;
Matrix lower_triang;
Matrix usual_mat;
diag_mat.Init(3);
diag_mat[0]=1; diag_mat[1]=1; diag_mat[2]=3;
lower_triang.Init(2,2);
lower_trian... |
<commit_before>//------------------------------------------------------------------------------
// Dragons.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "Core/Main.h"
#include "Gfx/Gfx.h"
#include "Input/Input.h"
#include "IO/IO.h"
#include "Anim/Anim.h"
... |
<commit_before>#pragma once
#include <mbed.h>
#include <rtos.h>
#include "rj-macros.hpp"
#include "rtp.hpp"
#include "helper-funcs.hpp"
#include "rtos-mgmt/mail-helper.hpp"
#include "CommModule.hpp"
#define COMM_LINK_SIGNAL_START_THREAD 0x01
#define COMM_LINK_SIGNAL_RX_TRIGGER 0x02
#define FOREACH_COMM_ERR(ERR) \
... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLIndexBibliographySourceContext.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: dvo $ $Date: 2001-06-29 21:07:21 $
*
* The Contents of this file are made available subject to the terms of
* eit... |
<commit_before>#include <ros/ros.h>
#include <actionlib/client/simple_action_client.h>
#include <actionlib/client/terminal_state.h>
#include <motion_msgs/MoveToPositionAction.h>
int main (int argc, char **argv)
{
ros::init(argc, argv, "test_movetoposition");
// create the action client
// true causes the client... |
<commit_before>//
// MarkdownParser.cc
// markdownparser
//
// Created by Zdenek Nemec on 4/18/14.
// Copyright (c) 2014 Apiary Inc. All rights reserved.
//
#include <cstring>
#include <stdexcept>
#include "MarkdownParser.h"
using namespace mdp;
const size_t MarkdownParser::OutputUnitSize = 64;
const size_t Mark... |
<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: stillinteraction.cxx,v $
* $Revi... |
<commit_before><commit_msg>Fix memory leak<commit_after><|endoftext|> |
<commit_before><commit_msg>avoid to degenerate the view frustum if there is only a single point in the scene<commit_after><|endoftext|> |
<commit_before>extern "C" {
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
int main() {
lua_State *L = lua_open();
luaL_openlibs(L);
luaL_loadfile(L, "hello_world.lua");
lua_pcall(L, 0, 0, 0);
lua_getglobal(L, "hello");
lua_pcall(L, 0, 0, 0);
}
<commit_msg>Extended the function call with an a... |
<commit_before>#include <DynamicMultiBody.h>
#include <HumanoidDynamicMultiBody.h>
#if 0
#define RESETDEBUG4(y) { ofstream DebugFile; DebugFile.open(y,ofstream::out); DebugFile.close();}
#define ODEBUG4(x,y) { ofstream DebugFile; DebugFile.open(y,ofstream::app); DebugFile << "HumanoidDynamicMultiBody: " << x << endl; ... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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
// t... |
<commit_before>/*
Allocore Example: User App Template
Description:
This is a very stripped down App subclass that can be used as a starting template
for projects. This is NOT an example of how to use the App class. See 'simpleApp.cpp'
in the same directory as this file for a pedagogical overview of the App class.
Aut... |
<commit_before>#include <stdio.h>
#include <string.h>
#include "NOD/DiscWii.hpp"
#include "NOD/aes.hpp"
namespace NOD
{
/* Not much of a secret anymore I suppose */
static const uint8_t COMMON_KEYS[2][16] =
{
/* Normal */
{0xeb, 0xe4, 0x2a, 0x22,
0x5e, 0x85, 0x93, 0xe4,
0x48, 0xd9, 0xc5, 0x45,
... |
<commit_before>#include <stdlib.h>
#include <assert.h>
#include <float.h>
#include "estimator.h"
#include "last_observation_estimator.h"
#include "running_mean_estimator.h"
#include "strategy_evaluator.h"
#include "debug.h"
namespace inst = instruments;
#include <stdexcept>
#include <string>
#include <sstream>
using s... |
<commit_before>#include "eyeballs.hpp"
bool eyeballs_debug;
eyeballs::eyeballs() {
fd4 = -1;
fd6 = -1;
in4 = false;
in6 = false;
memset(&la4, 0, sizeof(la4));
memset(&la6, 0, sizeof(la6));
memset(&timeout, 0, sizeof(timeout));
linger.l_onoff = 1;
linger.l_linger = 0;
}
eyeballs::~... |
<commit_before>#include "PackAnimation.h"
#include "PackNodeFactory.h"
#include "PackAnchor.h"
#include "PackClipbox.h"
#include "Utility.h"
#include "typedef.h"
#include "AnimToLuaString.h"
#include "AnimFromLua.h"
#include "AnimToBin.h"
#include "AnimFromBin.h"
namespace librespacker
{
PackAnimation::PackAnimatio... |
<commit_before>/*******************************************************************************
FILE : cmgui.cpp
LAST MODIFIED : 7 January 2003
DESCRIPTION :
==============================================================================*/
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* T... |
<commit_before>#include "Simulation/EXIT/EXIT.hpp"
#include <thread>
#include <string>
#include <iostream>
#include "Factory/Module/Monitor/BFER/Monitor_BFER.hpp"
#include "Factory/Module/Interleaver/Interleaver.hpp"
#include "EXIT.hpp"
using namespace aff3ct;
using namespace aff3ct::launcher;
template <typename B... |
<commit_before>
// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2002,2003 OPeNDAP, Inc.
// Author: James Gallagher <[email protected]>
//
// This library is free software; you can redistribute it and/or
// modify... |
<commit_before>#include "SimpleSocket.h"
#include <sys/types.h> // for data types
#include <sys/socket.h> // for socket(), connect(), send(), and recv()
#include <poll.h>
#include <unistd.h> // for close()
#include <cstring> // for strerror()
#include <cerrno> // for errno
using namespace NET;
SocketException::... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
// Some headers on Android are missing cdefs: crbug.com/172337.
// (We can't use OS... |
<commit_before>#pragma once
#include <tudocomp/compressors/esp/HashArray.hpp>
namespace tdc {namespace esp {
template<typename Pred, typename Update>
struct Updater {
Pred pred;
Update update;
};
template<typename Pred, typename Update>
inline Updater<Pred, Update> make_updater(Pre... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: linerenderer.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: obo $ $Date: 2006-10-12 13:46:41 $
*
* The Contents of this file are ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ScriptImpl.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:30:55 $
*
* The Contents of this file are mad... |
<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 "ui/wm/core/nested_accelerator_dispatcher.h"
#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "ui/base/acc... |
<commit_before><commit_msg>Import: [skip ci] fixes #0003988: the function Import.readDXF doesn't import Bsplines<commit_after><|endoftext|> |
<commit_before>//===--- MinGWToolChain.cpp - MinGWToolChain Implementation ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>///////////////////////////////////////////////////////////////////////
// structs.cpp -- Compile struct Definitions
// Date: Wed Dec 4 07:44:18 2013
///////////////////////////////////////////////////////////////////////
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#i... |
<commit_before>//===-- DynamicLibrary.cpp - Runtime link/load libraries --------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===------... |
<commit_before>
/*=========================================================================
Program: Visualization Toolkit
Module: vtkDICOMImageReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
... |
<commit_before>name = "Pythia";
picture = "\@pythia\addons\pythia\logo.paa";
actionName = "Github";
action = "https://github.com/5sigmapoint2/arma-python-extension";
description = "Arma addon to use python";
logo = "\@pythia\addons\pythia\logo.paa";
logoOver = "\@pythia\addons\pythia\logo.paa";
tooltip = "Pythia";
tool... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2017 Couchbase, 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 a... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018 Couchbase, 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 a... |
<commit_before>#include "StorkApp.h"
#include "MooseInit.h"
#include "Moose.h"
#include "MooseApp.h"
#include "AppFactory.h"
// Create a performance log
PerfLog Moose::perf_log("Stork");
// Begin the main program.
int main(int argc, char *argv[])
{
// Initialize MPI, solvers and MOOSE
MooseInit init(argc, argv);
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: paralleltimecontainer.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-07 20:45:40 $
*
* The Contents of this f... |
<commit_before>/** \file expand_DIN_ISO_3166_geographic_codes.cc
* \author Dr Johannes Ruscheinski
*
* Converts codes stored in MARC field 044 and generates geographic fully-spelled-out
* keyword chains in MARC field GEO
*/
/*
Copyright (C) 2020, Library of the University of Tübingen
This program ... |
<commit_before>/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* 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
*
* Unles... |
<commit_before>/*
* jpegtran.c
*
* This file was part of the Independent JPEG Group's software:
* Copyright (C) 1995-2010, Thomas G. Lane, Guido Vollbeding.
* libjpeg-turbo Modifications:
* Copyright (C) 2010, 2014, D. R. Commander.
* mozjpeg Modifications:
* Copyright (C) 2014, Mozilla Corporation.
* For cond... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.