text stringlengths 54 60.6k |
|---|
<commit_before>/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** rtspconnectionclient.cpp
**
** Interface to a... |
<commit_before>/*
* FUNCTION:
* Postgres driver --
*
* Threading:
* ----------
* This class is thread-enabled but not thread-safe. Two threads should
* not try to use one instance of this class at the same time. Each
* thread should construct it's own instance of this class. This class
* uses no globals.
*
*... |
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>/*
* Rational ratio resampler
*
* Copyright 2012 Thomas Tsou <ttsou@vt.edu>
*
* This program 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
... |
<commit_before>#include "../include/cxx.h"
#include <cstring>
#include <exception>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <vector>
extern "C" {
const char *cxxbridge05$cxx_string$data(const std::string &s) noexcept {
return s.data();
}
size_t cxxbridge05$cxx_string$length(const std::str... |
<commit_before>#include "Camera.h"
#include "Object.h"
#include "Director.h"
#include "TransformPipelineParam.h"
using namespace Math;
using namespace std;
using namespace Rendering::Light;
using namespace Device;
using namespace Core;
using namespace Rendering::Camera;
using namespace Rendering::Manager;
Camera::Cam... |
<commit_before>#include "data-general.hpp"
#include "data-course.hpp"
#include "data-student.hpp"
using namespace std;
vector<Course> all_courses;
Student user;
void loadCourses() {
ifstream infile("data/2012-13-s2-csv.csv");
string str; // read in the header line
getline(infile, str);
while (infile.peek() != -1)... |
<commit_before>/*
* Copyright (C) 2009 Nikhil Marathe ( nsm.nikhil@gmail.com )
* This file is distributed under the MIT License. Please see
* LICENSE for details
*/
#include "taglib.h"
#include <errno.h>
#include <string.h>
#include <v8.h>
#include <node_buffer.h>
#include <tfilestream.h>
#include <asffile.h>
#i... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: precompiled_vcl.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2007-05-10 16:29:13 $
*
* The Contents of this file ar... |
<commit_before>#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <vector>
#include <array>
#include <cmath>
#include <numeric>
#include <algorithm>
#include <immintrin.h>
/*#include <boost/filesystem/fstream.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostream... |
<commit_before>#ifndef TISYS_HPP
#define TISYS_HPP
#include <tiobj.hpp>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
std::string path_add(std::string base, std::string add1);
std::string path_add(std::string base, std::string add1, std::string add2);
std::st... |
<commit_before>#include <ros/ros.h>
#include <iostream>
#include <sstream>
#include <ctime>
#include <sensor_msgs/PointCloud2.h>
#include <std_msgs/Bool.h>
#include <pcl/ros/conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/fil... |
<commit_before>#include "tmath.hpp"
#include <sstream>
/* ================================ SINE ======================================== */
TMath::DOUBLE TMath::sin(DOUBLE x)
{
x = mod(x + PI, 2 * PI) - PI;
DOUBLE r = 0;
for (LONG n = 0; n <= 8L; n++) {
r += pow(DOUBLE(-1), n) * pow(x, 2 * n + 1) / fac(2 * n + 1)... |
<commit_before>#pragma once
#include <cstdint>
#include <cstring>
#include <algorithm>
#include <cassert>
template<class T, size_t cmax, class LengthT = uint32_t>
struct array_t {
T list[cmax];
LengthT count;
/////////////////////////////////
void construct(){
count = 0;
... |
<commit_before>//
// Splash.cpp
// example
//
// Created by James Bentley on 1/5/15.
//
//
#include "CRState.h"
void CRState::setup()
{
sensitivity = 0.7;
soundStream.setInput(this);
soundStream.setup(0, 1, 44100, 512, 1);
#ifdef __arm__
soundStream.setDeviceID(1);
#endif
//soundStream.stop();
... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (testabilitydriver@nokia.com)
**
** This file is part of Testability Driver.
**
** If you have... |
<commit_before>//
// Created by Tay on 10/10/17.
//
void selectionSort(int table[], int size) {
int min, tmp;
for (int i = 0; i < size - 1; i++) {
min = i;
for (int j = i + 1; j < size; j++) {
if (table[j] < table[min]) {
min = j;
}
}
if (... |
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <cstdio>
#include <cerrno>
#include <cassert>
#include <cstring>
#include <link.h>
#include <sys/mman.h>
/**
* This is experimental code that will map code segments in binary and dso into
... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>#include <iostream>
#include <chrono>
#include <pathfind/GraphReader.h>
#include <pathfind/Graph.h>
#include <pathfind/AStar.h>
int main(int argc, char* argv[])
{
// Read graph from file
std::cout << "Loading graph from json file..." << std::endl;
pathfind::GraphReader graphReader("../test/sa_nodes.... |
<commit_before>//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2017 Ryo Suzuki
// Copyright (c) 2016-2017 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Platform.hpp>
... |
<commit_before>#include <cstdio>
#include <algorithm>
#include <string>
#include <map>
#include <cstdlib>
using namespace std;
map <string ,int> Dict;
FILE *fp;
//debug
fp=stdio;
string getword(){
char ch;
string s;
while((ch=getc(fp))!=EOF){
if(ch=='-'){
if(getc(fp)=='\n'){
continue;
}else{
fseek(... |
<commit_before>#include <stdio.h>
#include <queue>
#include <vector>
#include <utility>
#include <string>
#include <stack>
typedef user pair<int,string>
stack<string> lv1;
stack<string> lv2;
stack<string> lv3;
string temp;
int templv;
int temptime=0;
int read(int now){
if(now < temptime) return 0;
do{
if(tem... |
<commit_before>#include <iostream>
#include <cstdio>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <cstring>
#include <string>
#include <vector>
#include <iomanip>
#include <cmath>
#include <list>
#include <bitset>
using namespace std;
#define ll long long
#define lson... |
<commit_before>/*
* LibCassandra
* Copyright (C) 2010 Padraig O'Sullivan
* All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the COPYING file in the parent directory for full text.
*/
#include <string>
#include <set>
#include <iostream>
#include <sstream>
#include <protocol/TB... |
<commit_before>
extern "C" {
#include "cx/syscx.h"
}
#include "cx/fileb.hh"
#include "cx/tuple.hh"
#include "prot-ofile.hh"
#include "prot-xfile.hh"
#include "xnsys.hh"
#include <vector>
using Cx::Tuple;
using Cx::mk_Tuple;
using std::vector;
typedef uint PcState;
uint
ReadUniRing(const char* filepath, Xn::Sys& sys,... |
<commit_before>#include "stdafx.h"
#include "Render/Geometry/ParserGLTF.h"
#include "AssetsSystem/AssetsSystem.h"
#include "Core/Logger/Logger.h"
#include "Render/Geometry/IntermediateMesh.h"
#define TINYGLTF_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define TINYGLTF_NOEX... |
<commit_before>#include "utils.h"
#include "jwtxx/jwt.h" // Key::Error
#include <openssl/pem.h>
#include <openssl/x509.h>
#include <openssl/err.h>
#include <algorithm> // std::min
#include <exception>
#include <cstring> // strerror
#include <cstdio> // fopen, fclose
#include <cerrno> // errno
namespace Utils = JWT... |
<commit_before>#include "utils.h"
static QString gRclone;
static QString gRcloneConf;
static QString gRclonePassword;
void ReadSettings(QSettings* settings, QObject* widget)
{
QString name = widget->objectName();
if (!name.isEmpty() && settings->contains(name))
{
if (QRadioButton* obj = qobject_ca... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 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 "keystore.h"
#include "script.h"
extern bool fWalletUnloc... |
<commit_before><commit_msg>fdo#76778 fix wildcard support in File Open dialog<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2017. The YARA Authors. 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. Redistributions of source code must retain the above copyright notice, this
list of conditions ... |
<commit_before>/*
* MusicBrainz -- The Internet music metadatabase
*
* Copyright (C) 2006 Lukas Lalinsky
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 o... |
<commit_before>// Copyright (c) 2012 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 <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>// Copyright (c) 2012 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 <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>// Copyright (c) 2012 The paccoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same ... |
<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>/*
-----------------------------------------------------------------------------
Copyright (c) 2010 Nigel Atkinson
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 restrictio... |
<commit_before>// Copyright (c) 2016, blockoperation. All rights reserved.
// boxnope is distributed under the terms of the BSD license.
// See LICENSE for details.
#ifndef BOXNOPE_UTILS_HPP
#define BOXNOPE_UTILS_HPP
#define QS(s) QString(s)
#define QSL(s) QStringLiteral(s)
#define QL1S(s) QLatin1String(s)
#define Q... |
<commit_before>/*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2014-2015 Phusion Holding B.V.
*
* "Passenger", "Phusion Passenger" and "Union Station" are registered
* trademarks of Phusion Holding B.V.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... |
<commit_before>/*
* Copyright 2003-2005 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
*
* Unless... |
<commit_before>//------------------------------------------------------------------------------
// Copyright (c) 2016 John D. Haughton
//
// 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 wi... |
<commit_before>#include "GoogleLogFatalHandler.hpp"
#include "Headers.hpp"
namespace google {
namespace glog_internal_namespace_ {
void DumpStackTraceToString(string* stacktrace);
}
} // namespace google
static void DumpStackTraceToFileAndExit() {
string s;
google::glog_internal_namespace_::DumpStackTraceToStri... |
<commit_before>
// XPNetPlugin.cpp
#include "Platform.h"
#include "XPNetPlugin.h"
#include "xpnetclrhost.h"
#include <stdint.h>
#include <string>
#if defined(WIN32)
# include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#else
# include <boost/filesystem.hpp>
namespace fs = boost::fi... |
<commit_before>/**
* The MIT License (MIT)
*
* Copyright (c) 2013-2020 Winlin
*
* 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 ri... |
<commit_before>/*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| tha... |
<commit_before>/**
* \class ROT13
* @file ROT13.hpp
*
* @par Licence
* 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/.
*
*/
#ifndef ROT13_HPP
#define ROT13_HPP
... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX64M グループ SDRAM 設定 @n
Copyright 2017 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "RX64M/syste... |
<commit_before>
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE libstorage
#include <iostream>
#include <boost/test/unit_test.hpp>
#include "storage/Environment.h"
#include "storage/Storage.h"
#include "storage/DevicegraphImpl.h"
#include "storage/UsedFeatures.h"
#include "testsuite/helpers/TsCmp.h"
using na... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<commit_before>/*
* SessionRequest.hpp
*
* Copyright (C) 2009-16 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero Genera... |
<commit_before>//
// NSolver_Forceintegrate_force.cpp
// NSolver
//
// Created by 乔磊 on 15/5/10.
// Copyright (c) 2015年 乔磊. All rights reserved.
//
#include <NSolver/solver/NSolver.h>
namespace NSFEMSolver
{
using namespace dealii;
template <int dim>
void NSolver<dim>::integrate_force (WallForce &wall_for... |
<commit_before>#include "BodymovinParser.h"
#include "FilepathHelper.h"
#include <fstream>
#include <assert.h>
#include <string.h>
namespace gum
{
BodymovinParser::BodymovinParser()
: m_frame_rate(0)
, m_width(0)
, m_height(0)
, m_start_frame(0)
, m_end_frame(0)
{
}
void BodymovinParser::Parse(const Json::Val... |
<commit_before>/*
Copyright (C) 2014-2017 Alexandr Akulich <akulichalexander@gmail.com>
This file is a part of TelegramQt library.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundatio... |
<commit_before>// Programmed by jasonfish4
#include "stdafx.h"
#include "exceptiondispatcher.h"
#include "rvdbg.h"
void dispatcher::raise_instr_av(std::uint8_t* ptr, std::uint8_t save, bool on)
{
std::uint32_t old_protect;
VirtualProtect(ptr, 1, static_cast<unsigned long>(dbg_redef::page_protection::page_xrw), reint... |
<commit_before>
#include "Expr.h"
#include <stdio.h>
#include <string.h>
namespace hsql {
char* substr(const char* source, int from, int to) {
int len = to-from;
char* copy = new char[len+1];
strncpy(copy, source+from, len);
copy[len] = '\0';
return copy;
}
Expr* Expr::makeOpUnary(OperatorType op, Expr* expr... |
<commit_before>#include "builtin/object.hpp"
#include "util/thread.hpp"
#include "objectmemory.hpp"
#include "capi/capi.hpp"
#include "capi/18/include/ruby.h"
using namespace rubinius;
using namespace rubinius::capi;
static utilities::thread::ThreadData<ObjectMark*> _current_mark;
namespace rubinius {
namespace ... |
<commit_before>#include "gc/root.hpp"
#include "vm.hpp"
namespace rubinius {
/* Roots */
Root* Roots::front() {
return static_cast<Root*>(head());
}
/* Root */
Root::Root(STATE):
LinkedList::Node(), object(NULL), roots(&state->globals.roots)
{ }
Root::Root(STATE, Object* obj):
LinkedList::N... |
<commit_before>
#include "builtin/object.hpp"
#include "call_frame.hpp"
#include "builtin/autoload.hpp"
#include "builtin/symbol.hpp"
#include "builtin/module.hpp"
#include "builtin/compiledcode.hpp"
#include "builtin/class.hpp"
#include "builtin/constantscope.hpp"
#include "builtin/lookuptable.hpp"
#include "global_ca... |
<commit_before>#include "objectmemory.hpp"
#include "marshal.hpp"
#include "builtin/sendsite.hpp"
#include "builtin/array.hpp"
#include "builtin/compiledmethod.hpp"
#include "builtin/fixnum.hpp"
#include "builtin/float.hpp"
#include "builtin/iseq.hpp"
#include "builtin/string.hpp"
#include "builtin/symbol.hpp"
#includ... |
<commit_before>#include "FILE.H"
#include "CD.H"
#include "SPECIFIC.H"
#include <sys/types.h>
#include <libcd.h>
#include <stdio.h>
#include <libsn.h>
int FILE_Load(char* szFileName, void* pDest)//5E528, 5E5D8(<) (F)
{
CdlFILE fp;
char buf[10];
unsigned long dwFileSize = -1;
DEL_ChangeCDMode(0);
sprintf(buf,... |
<commit_before>/*
* Copyright (c) 2001 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of the L... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLTextFrameHyperlinkContext.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: hr $ $Date: 2007-06-27 16:08:40 $
*
* The Contents o... |
<commit_before>//===---------------------- SymbolicRangeAnalysis.cpp ---------------------===//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "sra"
#include "SymbolicRangeAnalysis.h"
#include "llvm/IR/Constants.h"
#include "llvm/Support/CommandLine.h"
#include "l... |
<commit_before>// weather_file.C
#include "weather.h"
#include "syntax.h"
#include "alist.h"
#include "common.h"
#include "log.h"
#include "filter.h"
#include <algobase.h>
#include <fstream.h>
class WeatherFile : public Weather
{
Time date;
const string file_name;
ifstream file;
const double T1;
const doubl... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLTextFrameHyperlinkContext.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: mib $ $Date: 2002-01-17 11:13:08 $
*
* The Contents of this file are made available subject to the terms of
* either o... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2017 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>// -*- mode: c++; coding: utf-8 -*-
#pragma once
#ifndef IOSTR_HPP_
#define IOSTR_HPP_
#include <cstring>
#include <cerrno>
#include <cassert>
#include <cstdarg>
#include <ctime>
#include <stdexcept>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include... |
<commit_before><commit_msg>aw: Fix SetExtraRequestHeaderByName DCHECK<commit_after><|endoftext|> |
<commit_before>/**
* Copyright (c) 2007-2012, Timothy Stack
*
* 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, t... |
<commit_before>
// This test demonstrates using tracing to give you something like a
// stack trace in case of a crash (due to a compiler bug, or a bug in
// external code). We use a posix signal handler, which is probably
// os-dependent, so I'm going to enable this test on linux only.
#if defined(__linux__) || defin... |
<commit_before>/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "tools/gpu/gl/GLTestContext.h"
#include "include/gpu/GrDirectContext.h"
#include "src/gpu/gl/GrGLUtil.h"
#include "tools/gpu/GpuTimer.h"
namespace {
... |
<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 "Lic... |
<commit_before>#include "PresentMonCsv.h"
#include <../PresentMon/generated/version.h>
#include <gtest/gtest.h>
#include <strsafe.h>
#include <windows.h>
#define RETURN_ON_FATAL_FAILURE(_P) do { _P; if (::testing::Test::HasFatalFailure()) return; } while (0)
std::string presentMonPath_;
std::string testDir... |
<commit_before>#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include <string>
#include <math.h>
using namespace std;
bool controllo(string x);
struct dato {
float valore;
float errore;
};
int main (int argc, char *argv[]) {
ifstream leggi(argv[1]);
ofstream scrivi("output.txt");
... |
<commit_before>// ========================================================================== //
// This file is part of DO++, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2013 David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// Lic... |
<commit_before><commit_msg>Switched to using surface.frame callbacks on wayland for painting<commit_after><|endoftext|> |
<commit_before>/*****************************************************************************
* CameraCalibration.cpp
*
* Set white balance for given lighting, write parameters to file
* https://web.stanford.edu/~sujason/ColorBalancing/robustawb.html
****************************************************************... |
<commit_before>#include "textbox.hpp"
#include "jatekrekord.h"
static OBJ *tabla;
class MEZO : public ABLAK // A mező amin valamelyik játékos áll vagy állhat.
{
public:
MEZO(double x, double y, int szine)
: ABLAK(x,y,33,33,650,szine*33+1,false)
{};
void setter(istream& be);
void addObj(OBJ *obj) {}; // Nem le... |
<commit_before>/***************************************************************************
* *
* Copyright (C) 2007-2013 by Johan De Taeye, frePPLe bvba *
* ... |
<commit_before>#include <math.h>
#include <stdio.h>
#include <ratio>
#include "pyramid.h"
#include "HalideBuffer.h"
#include <vector>
using std::vector;
using namespace Halide;
template<bool B, typename T>
struct cond {
static constexpr bool value = B;
using type = T;
};
template <typename First, typename..... |
<commit_before>// @(#)root/treeplayer:$Id$
// Author: Philippe Canal 06/06/2004
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers and al. *
* All rights reserved. *
* ... |
<commit_before><commit_msg>only inflate if status from InitDecompress is good<commit_after><|endoftext|> |
<commit_before>// Copyright 2015 Google Inc. 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 require... |
<commit_before>#pragma once
#include <cassert>
#include <iostream>
#include <string>
#include <vector>
#include <Python.h>
//------------------------------------------------------------------------------
namespace py {
class Long;
class Object;
class Unicode;
// FIXME: Remove this.
constexpr PyGetSetDef GETSETDEF... |
<commit_before>#include "MOS6522.h"
#include <iostream>
MOS6522::MOS6522() : IC()
, keyPressed(0)
, shiftPressed(false)
, cbmPressed(false) {
// Set clock speed
this->setClockSpeed(2000000);
}
MOS6522::~MOS6522() {
}
void MOS6522::setMemory(MOS6502Memory *memory) {
this->memory = memory;
// Crea... |
<commit_before>/// @file AesopWorldState.cpp
/// @brief Implementation of WorldState class as defined in Aesop.h
#include <algorithm>
#include "Aesop.h"
namespace ae {
/// @class WorldState
///
/// This class represents a set of knowledge (facts, or predicates) about
/// the state of the world... |
<commit_before>#include "ConnectionNonBlocking.h"
#include <iostream>
namespace ThorsAnvil
{
namespace NisseSQL
{
class MySQLConnectionHandler: public ThorsAnvil::Nisse::NisseHandler
{
CoRoutine worker;
public:
MySQLConnectionHandler(ThorsAnvil::Nisse::NisseService& service,
... |
<commit_before>#include "QOsgViewer.h"
#include <osgGA/TrackballManipulator>
#include <osgViewer/ViewerEventHandlers>
#include <osgDB/ReadFile>
#include "xo/system/log.h"
#include "qevent.h"
#include "osg/MatrixTransform"
#include "xo/geometry/quat.h"
#include "osg/Material"
#include "osg/PositionAttitudeTransform"
#i... |
<commit_before>//===- llvm/unittests/IR/DominatorTreeBatchUpdatesTest.cpp ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Copyright 2015 WebAssembly Community Group participants
*
* 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>/*
* Copyright (C) 2005 Justin Karneges <justin@affinix.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your optio... |
<commit_before>
#ifndef SILL_LEARNING_DISCRIMINATIVE_CLASSIFIER_CASCADE_HPP
#define SILL_LEARNING_DISCRIMINATIVE_CLASSIFIER_CASCADE_HPP
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_int.hpp>
#include <sill/learning/dataset/ds_oracle.hpp>
#include <sill/learning/dataset/vector_dataset.hpp... |
<commit_before>#include "falconn/lsh_nn_table.h"
#include <memory>
#include <utility>
#include <vector>
#include "gtest/gtest.h"
using falconn::compute_number_of_hash_functions;
using falconn::construct_table;
using falconn::DenseVector;
using falconn::DistanceFunction;
using falconn::LSHConstructionParameters;
usin... |
<commit_before>/*
* Copyright (C) 2015 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>// Copyright (c) 2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <netaddress.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <cassert>
#... |
<commit_before>#include "FileOperations.h"
#include <QFile>
#include <QtGlobal>
template <class InputIterator1, class InputIterator2>
bool FileOperations::equal(InputIterator1 first1, InputIterator1 last1,
InputIterator2 first2, InputIterator2 last2) {
while ((first1 != last1) && (first2 !... |
<commit_before>/**
* Copyright © 2016 IBM Corporation
*
* 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 applic... |
<commit_before>/*
*
* Author: Jeffrey Leung
* Last edited: 2016-02-18
*
* This C++ file tests the functions of the exception logger Exceptional.
*
*/
#include <exception>
#include <iostream>
#include <stdexcept>
#include "../include/exceptional.hpp"
exceptional::Logger log;
namespace
{
// This function thro... |
<commit_before>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <iostream>
#include "util/test.h"
#include "util/splay_map.h"
#include "util/name.h"
using namespace lean;
struct int_cmp { int ope... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.