text stringlengths 54 60.6k |
|---|
<commit_before>This is only for testing.<commit_msg>Update the test.cpp to reflect recent changes<commit_after>This is only for
Adding a second line.
<|endoftext|> |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <opencv2/opencv.hpp>
#include "calib.hpp"
int main()
{
std::ifstream ifs("list_test");
std::string line;
libcv::CalibCam calib;
calib.load("save.xml");
while(std::getline(ifs, line)) {
std::istringstream iss(... |
<commit_before>#include <cstdlib>
#include <cstdio>
#include <cstdint>
#include <cstring>
#include <cassert>
#include <immintrin.h>
#include "input_data.cpp"
#include "quicksort.cpp"
bool is_sorted(uint32_t* array, size_t n) {
assert(n > 0);
for (size_t i=1; i < n; i++) {
if (array[i - 1] > array[i])... |
<commit_before>// -*- mode: c++; coding: utf-8 -*-
#include <iostream>
#include <chrono>
#include <random>
#include <thread>
#include <future>
#include <regex>
#include "algorithm.hpp"
#include "cow.hpp"
#include "debug.hpp"
#include "genetic.hpp"
//#include "getopt.hpp" // needs boost/program_options
//#include "gr... |
<commit_before>#include "lua/lua.hpp"
#include <type_traits>
#include <iostream>
int main(int argc, char const *argv[])
{
try {
lua::root["my_scope"] = {
{"my_string", "some text"},
{"my_table", {
{"nested_thing", "woohoo!"}
}},
{"my_data", 0.9234},
{"my_bool", true},
{"my_chunk", lua::chunk("... |
<commit_before>#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <algorithm>
#include <initializer_list>
#include <iterator>
#include <memory>
#include <string>
#include "notch.hpp"
using namespace std;
/// FullyConnectedLayer_Test breaks encapsulation of FullyConnectedLayer to
/// explore its inner state.
... |
<commit_before>#include "chainerx/routines/reduction.h"
#include <cmath>
#include <cstdint>
#include <numeric>
#include <utility>
#include <vector>
#include <absl/types/optional.h>
#include "chainerx/array.h"
#include "chainerx/axes.h"
#include "chainerx/backprop_mode.h"
#include "chainerx/backward_builder.h"
#inclu... |
<commit_before>/*
* ©LAAS-CNRS (2008-2009)
*
* contributor(s) : Séverin Lemaignan <severin.lemaignan@laas.fr>
*
* This software is a computer program whose purpose is to interface
* with an ontology server in a robotics context.
*
* This software is governed by the CeCILL license under French law and
* abidin... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2010 Emmanuel Benazera, ebenazer@seeks-project.info
*
* 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 ... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2010 Emmanuel Benazera, ebenazer@seeks-project.info
*
* 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 ... |
<commit_before>// Copyright 2013 The Flutter 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 "impeller/renderer/backend/gles/surface_gles.h"
#include "flutter/fml/trace_event.h"
#include "impeller/base/config.h"
#include "i... |
<commit_before><commit_msg>Initialize variable<commit_after><|endoftext|> |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "FrameworkQtApplication.h"
#include "Framework.h"
#include "ConfigurationManager.h"
#include <QDir>
#include <QGraphicsView>
#include <QTranslator>
#include ... |
<commit_before>#include "GatewayServiceHandler.h"
#include "GatewayCore.h"
#include "protocol/GatewayPrivateMessages.pb.h"
#include <iostream>
#include "log.h"
#include "ace/OS_NS_errno.h"
/* GatewayServiceHandler::GatewayServiceHandler(ACE_Thread_Manager *tm = 0, ACE_Message_Queue<ACE_NULL_SYNCH> *mq = 0, ACE_Rea... |
<commit_before>#include <QFile>
#include <quazip/quazip.h>
#include <quazip/quazipfile.h>
/* A simple test program. Requires "test.zip" and writable "out"
* directory to be present in the current directory.
*
* To test unicode-aware case sensitivity, see testCase() function.
*/
// test reading archive
bool testR... |
<commit_before>/*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free ... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
///
/// \file hardware_concurrency.hpp
/// ------------------------------
///
/// (c) Copyright Domagoj Saric 2016 - 2019.
///
/// Use, modification and distribution are subject to the
/// Boost Software License, Version 1... |
<commit_before>// (C) Copyright Gennadiy Rozental 2001-2002.
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied warranty,
// and with no claim as to its suitability... |
<commit_before>/******************************************************************************
nomlib - C++11 cross-platform game engine
Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted... |
<commit_before>#ifndef TABLE_PARAMETERS_GRAMMAR_HPP
#define TABLE_PARAMETERS_GRAMMAR_HPP
#include "engine/api/table_parameters.hpp"
#include "server/api/base_parameters_grammar.hpp"
//#define BOOST_SPIRIT_DEBUG
#include <boost/spirit/include/qi.hpp>
namespace osrm
{
namespace server
{
namespace api
{
namespace qi =... |
<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/chrome_to_mobile_service.h"
#include "base/bind.h"
#include "base/json/json_writer.h"
#include "base/stringpr... |
<commit_before>#include "socket.h"
#ifndef SOCKET_CPP
#define SOCKET_CPP
class Socket {
public:
Socket();
~Socket();
void connectServer(std::string address, unsigned short port);
bool sendData(std::string message);
std::string receive();
void closeConnection();
bool isConnected();
private:
int socket... |
<commit_before>#include "socket.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
IPV4Addr::IPV4Addr(int _addr, short _port){
addr = _addr;
port = _port;
}
IPV4Addr::IPV4Addr(unsigned char a, unsigned char b, unsigned char c, unsigned ... |
<commit_before>
#include "library.h"
#include <gtest/gtest.h>
TEST(LibraryTest, libc_sprintf)
{
#if defined(__ANDROID__)
const auto path = "libc.so";
#elif defined(__gnu_linux__)
const auto path = "libc.so.6";
#else
#error "Unsupported Platform"
#endif
const auto library = platform::Library { path };
using spr... |
<commit_before>#pragma once
class Solver {
public:
// Check whether a half-filled grid has valid solution(s)
static int hasSolution(Grid &g) {
Grid dup(g);
return solve(dup, 0, 0);
}
// Assuming g is solvable, get a valid solution
static Grid getSolution(Grid &g) {
Grid du... |
<commit_before>// Copyright 2020 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... |
<commit_before>#include <iostream.h>
#include <nlist.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/param.h>
#include <unistd.h>
#include <sys/utsname.h>
#include <string.h>
#include <sys/sysinfo.h>
#include "condor_debug.h"
#include "except.h"
#include "condor_sysparam.h"
// C defin... |
<commit_before>#include <vector>
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "scripting/JavaScriptContext.hpp"
using namespace ci;
using namespace ci::app;
typedef Scripting::interface visualization;
class DukVisApp : public AppMac {
public:
void setup() o... |
<commit_before>//@author A0094446X
#include "stdafx.h"
#include <QtWidgets/QApplication>
#include "../You-GUI/main_window.h"
#include "../You-GUI/window_title.h"
#include "windows.h"
int main(int argc, char *argv[]) {
HANDLE hMutex;
hMutex = CreateMutex(NULL, FALSE, TEXT("YouGUIUniqueApplicationInstance"));
DWORD m... |
<commit_before>/*
* PoolingGenConn.cpp
*
* Created on: Apr 25, 2011
* Author: peteschultz
*/
#include "PoolingGenConn.hpp"
namespace PV {
PoolingGenConn::PoolingGenConn(const char * name, HyPerCol * hc,
HyPerLayer * pre, HyPerLayer * post, HyPerLayer * pre2, HyPerLayer * post2,
const char *... |
<commit_before>#include "ast_stmts.hpp"
#include "llvm_generator.hpp"
using namespace llvm;
///** Create an alloca instruction in the entry block of the current function.
// * This is used for variables encountered throughout the function that shall be viable for mem2reg.
// */
//static AllocaInst *create_entry_blo... |
<commit_before><commit_msg>#i22705# Added virtual destructor.<commit_after><|endoftext|> |
<commit_before>/*
Copyright (c) 2013 Daniele Bartolini, Michele Rossi
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
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, i... |
<commit_before>///
/// @file P2.cpp
/// @brief 2nd partial sieve function. P2(x, y) counts the
/// numbers <= x that have exactly 2 prime factors
/// each exceeding the a-th prime.
///
/// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See ... |
<commit_before>/*
* RTokenizer.cpp
*
* Copyright (C) 2009-11 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABILITY... |
<commit_before>/*
* RToolsInfo.cpp
*
* Copyright (C) 2009-12 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 General Pu... |
<commit_before>
#include <iostream>
#include "Timer.h"
#include <fstream>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
using namespace std;
int main(int argc, char* argv[])
{
bool all= false;
if(argc <3)
{
cerr << "not eno... |
<commit_before>// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "Lab_1.h"
#include "Lab_1Character.h"
#include "Runtime/CoreUObject/Public/UObject/ConstructorHelpers.h"
#include "Runtime/Engine/Classes/Components/DecalComponent.h"
#include "HouseActor.h"
ALab_1Character::ALab_1Character()
{
// S... |
<commit_before>#include "a_filter.h"
#include "a_system.h"
#include "m_trig.h"
#include "u_misc.h"
namespace a {
///! filter
filter::~filter() {
// Empty
}
///! filterInstance
filterInstance::~filterInstance() {
// Empty
}
void filterInstance::setFilterParam(int, float) {
// Empty
}
void filterInstance... |
<commit_before>#include <fstream>
#include <iterator>
#include <string>
#include "caffe2/core/blob_serialization.h"
#include "caffe2/core/init.h"
#include "caffe2/core/logging.h"
#include "caffe2/core/operator.h"
#include "caffe2/proto/caffe2.pb.h"
#include "caffe2/share/contrib/observers/observer_config.h"
#include "... |
<commit_before>/*
* Copyright 2012 Coherent Theory LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2, or
* (at your option) any later version.
*
* ... |
<commit_before>#include <cassert>
#include <cstdlib>
#include <iostream>
#include <map>
#include <stdexcept>
#include <string>
#include <vector>
void testBranchOnVariableDeclaration ()
{
std::map<std::string, std::string> data;
data["key"] = "value";
if (std::string * value = &data["key"])
{
a... |
<commit_before>/*************************************************************************
> File Name: main.cpp
> Author:
> Mail:
> Created Time: 日 4/ 3 13:24:20 2016
************************************************************************/
#include<iostream>
using namespace std;
int main() {
int x = 1;
... |
<commit_before>//
// BatchEncoder (Audio Conversion GUI)
// Copyright (C) 2005-2017 Wiesław Šoltés <wieslaw.soltes@gmail.com>
//
// 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 ... |
<commit_before>/*The MIT License (MIT)
Copyright (c) 2015 k-brac
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, copy, modify,... |
<commit_before>
#include <uv.h>
#include "../../../ui.h"
#include "nbind/nbind.h"
extern int uiEventsPending();
extern int uiLoopWakeup();
extern int waitForNodeEvents(uv_loop_t* loop, int timeout);
static std::atomic<bool> running;
static uv_thread_t* thread;
static uv_timer_t* redrawTimer;
/*
This function is ex... |
<commit_before>#include <Refal2.h>
namespace Refal2 {
//-----------------------------------------------------------------------------
class CRulePrintHelper : public CPrintHelper {
public:
CRulePrintHelper( const CPrintHelper& _printHelper,
const CVariables& _variables ) :
printHelper( _printHelper ),
variab... |
<commit_before>#include <memory>
#include <utility>
#include "Command.h"
#include "Microphone.h"
#include "PocketsphinxWrapper.h"
#include "Recognizer.h"
#include "XCopilot.h"
#include "XPlaneDataRefSDKStub.h"
#include <iostream>
int main(int argc, char *argv[]) {
XPlaneDataRefSDKStub xplaneSDK;
std::unique_... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
<commit_before>#include <bitcoin/deterministic_wallet.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <openssl/ec.h>
#include <openssl/obj_mac.h>
#include <openssl/sha.h>
#include <bitcoin/constants.hpp>
#include <bitcoin/format.hpp>
#include <bitcoin/utility/assert.hpp>
#include ... |
<commit_before>/*
* This file is part of openfx-arena <https://github.com/olear/openfx-arena>,
* Copyright (C) 2016 INRIA
*
* openfx-arena is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* ... |
<commit_before>// UCN Observer class
// Author: Matthew Raso-Barnett 19/11/2010
#include <iostream>
#include <sstream>
#include <cassert>
#include "Observer.h"
#include "Particle.h"
#include "RunConfig.h"
#include "Data.h"
#include "TKey.h"
//////////////////////////////////////////////////////////////////////////... |
<commit_before>#include <algorithm>
#include <map>
#include <string>
#include <limits>
#include "Prefetch.h"
#include "CodeGen_Internal.h"
#include "IRMutator.h"
#include "IROperator.h"
#include "Bounds.h"
#include "Scope.h"
#include "Simplify.h"
#include "Substitute.h"
#include "Util.h"
namespace Halide {
namespace ... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://ww... |
<commit_before>// -*- mode:c++; indent-tabs-mode:nil; -*-
/*
Copyright (c) 2014, Anders Ronnbrant, anders.ronnbrant@gmail.com
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 restr... |
<commit_before>///
/// @file RiemannR.cpp
/// @brief Logarithmic integral and Riemann R function.
/// Both the Logarithmic integral and the Riemann R function
/// are very accurate approximations of PrimePi(x). The inverse
/// Logarithmic integral and the inverse Riemann R function are
/// ... |
<commit_before>#include "../includes/SUrlArea.hpp"
#include "../includes/SMainWindow.hpp"
#include "../includes/Actions.hpp"
#include <QMessageBox>
SUrlArea::SUrlArea(SMainWindow * parent) :
QProgressBar(parent),
m_parent(parent)
{
QHBoxLayout* layout{ new QHBoxLayout(this) };
layout->setContentsMargins(0, 0, 0, ... |
<commit_before>#include <iostream>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include <vector>
#include <string>
#include <stack>
#include <algorithm>
using namespace std;
int main(int argc, char** argv)
{
bool aFlag = false;
bool lFlag = false;
bool RFlag = false;
vector<string> fileParam;
... |
<commit_before>// Sh: A GPU metaprogramming language.
//
// Copyright 2003-2005 Serious Hack Inc.
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to an... |
<commit_before>#include <iostream>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <boost/tokenizer.hpp>
#include <vector>
#include <list>
#include <set>
#include <ctype.h>
// puts the argv input from the program into a list
std::list<std... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>#include <slice.hpp>
#include <range.hpp>
#include <iostream>
#include <vector>
#include <array>
int main() {
std::cout << std::endl << "Slice range test" << std::endl << std::endl;
std::vector<int> a{0,1,2,3,4,5,6,7,8,9,10,11,12,13};
std::vector<std::string> b{"hey","how","are","you","doin... |
<commit_before>/*
* Copyright © 2010 Intel Corporation
*
* 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, copy, mod... |
<commit_before>/*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: otherjre.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2006-03-08 14:14:23 $
*
* The Contents of this file are made... |
<commit_before>//===- BottomUpClosure.cpp - Compute bottom-up interprocedural closure ----===//
//
// This file implements the BUDataStructures class, which represents the
// Bottom-Up Interprocedural closure of the data structure graph over the
// program. This is useful for applications like pool allocation, but **n... |
<commit_before>//===--- ExecuteCompilerInvocation.cpp ------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// Report data as I2C slave on address 0x70.
#include "LPC8xx.h"
#include "lpc_types.h"
#include "romapi_8xx.h"
#include "serial.h"
#include <string.h>
#define FIXED_CLOCK_RATE_HZ 10000000
#define FIXED_UART_BAUD_RATE 115200
uint32_t i2cBuffer[24]; // data area used by ROM-based I2C driver... |
<commit_before>//===- AArch64MachineLegalizer.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>#include <boost/filesystem.hpp>
#include <boost/range/algorithm/mismatch.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <unordered_set>
#include <fstream>
#include <iostream>
namespace meka {
namespace folder {
auto const build = "build"... |
<commit_before>/*
* bacteria-core, core for cellular automaton
* Copyright (C) 2016 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include "Bytecode.hpp"
namespace Implementation {
// These two static arrays describe language: all possible
// functions ans specifications.
static const char* const ... |
<commit_before>/**
* \file
* \remark This file is part of VITA.
*
* \copyright Copyright (C) 2011-2020 EOS di Manlio Morini.
*
* \license
* 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... |
<commit_before>// tsStego.cpp
// Released under the MIT License
//
// A simple implementation of stegonography in C++
// Uses the LodePNG library version 20140801 by Lode Vandevenne
#include <fstream>
#include <sstream>
#include <iostream>
#include <exception>
#include "lodepng.h"
// Read the plain text file in
void... |
<commit_before>/*
* Copyright (C) 2018 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
<commit_before>#include "lxc_isolation_module.hpp"
#include <stdlib.h>
#include <unistd.h>
#include <algorithm>
#include "foreach.hpp"
using std::cerr;
using std::cout;
using std::endl;
using std::list;
using std::make_pair;
using std::max;
using std::ostringstream;
using std::pair;
using std::queue;
using std::str... |
<commit_before>#include <iostream>
#include <string>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/positional_options.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/program_options/parsers.hpp>
#include <laplacian/version.hpp>
#include <laplacian/convo... |
<commit_before>#ifndef VEXCL_EXCLUSIVE_HPP
#define VEXCLEXCLUSIVE_HPP
/*
The MIT License
Copyright (c) 2012 Denis Demidov <ddemidov@ksu.ru>
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 withou... |
<commit_before>/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
#include <sstream>
#include <float.h>
#include "reductions.h"
#include "gd.h"
struct oaa{
size_t k;
vw* a... |
<commit_before>/*
* Copyright (c) 2020 The WebM 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 "File.h"
#include "Index.h"
#include "LineSink.h"
#include "ConsoleLog.h"
#include <tclap/CmdLine.h>
#include <iostream>
#include <stdexcept>
#include "RangeFetcher.h"
using namespace std;
using namespace TCLAP;
namespace {
struct PrintSink : LineSink {
bool printLineNum;
PrintSink... |
<commit_before>/**
* Copyright (c) Sjors Gielen, 2010
* See LICENSE for license.
*/
#include "database.h"
#include "config.h"
#include "utils.h"
#include <mongo.h>
#include <cerrno>
#include <cassert>
#include <sstream>
// #define DEBUG
#define M (mongo_sync_connection*)m_
#define PROPERTIES std::string(databaseN... |
<commit_before>#include "editview.h"
#include "ui_editview.h"
EditView::EditView(QWidget *parent, ObjectRect* rect, image_info_struct image_info, ObjectItem* item, int mode) :
QMainWindow(parent),
ui(new Ui::EditView)
{
ui->setupUi(this);
this->mode = mode;
this->item = item;
this->ref_rect =... |
<commit_before>#include <array>
#include <cstdint>
#include <string>
#include <iostream>
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include "chip8.h"
#include "res/blip.h"
std::array<sf::Keyboard::Key, 16> layout{{
sf::Keyboard::Num1,
sf::Keyboard::Num2,
sf::Keyboard::Num3,
sf::Keyboard:... |
<commit_before>#pragma once
#include <algorithm>
#include <cassert>
#include <cmath>
#include "Matrix.hpp"
#include "maps.hpp"
class FourBit
{
// shorthand
using uchar = unsigned char;
private:
static constexpr uchar NONE_CHAR = '-';
uchar pack_(const uchar lhs, const uchar rhs)
{
assert(lhs < 16 an... |
<commit_before>/*
* @file sa_test.cpp
* @auther Zhihao Lou
*
* Test file for SA (simulated annealing).
*/
#include <mlpack/core.hpp>
#include <mlpack/core/optimizers/sa/sa.hpp>
#include <mlpack/core/optimizers/sa/exponential_schedule.hpp>
#include <mlpack/core/optimizers/lbfgs/test_functions.hpp>
#include <mlpack... |
<commit_before>#include "Marshal.hpp"
#include "node/node_helpers.hpp"
using namespace v8;
Marshal::NativeResult Marshal::Native(int value)
{
HandleScope scope;
return scope.Close(Int32::New(value));
}
Marshal::NativeResult Marshal::Native(size_t value)
{
HandleScope scope;
return scope.Close(Uint32::New(value))... |
<commit_before>/*
Copyright (c) 2003, Magnus Jonsson & Arvid Norberg
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>/*
Copyright (c) 2003, Magnus Jonsson & Arvid Norberg
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>/*
**
** Copyright 2009, 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
*... |
<commit_before>/*
* Copyright 2009 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmapProcState_opts_SSE2.h"
#include "SkBitmapProcState_opts_SSSE3.h"
#include "SkBlitMask.h"
#include "SkBlitRect.h"
#include ... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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; eit... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// sql_statement.cpp
//
// Identification: src/parser/sql_statement.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===--------------------------------... |
<commit_before>/*!
* Copyright (c) 2016 by Contributors
* \file infer_shape.cc
* \brief Inference the shapes given existin information.
*/
#include <nnvm/pass.h>
#include <nnvm/op_attr_types.h>
#include <nnvm/graph_attr_types.h>
namespace nnvm {
namespace pass {
namespace {
template<typename AttrType, typename I... |
<commit_before>#include <node.h>
#include "gn_player.h"
#include "gn_playlist_item.h"
#include "gn_file.h"
using namespace v8;
GNPlayer::GNPlayer() {
event = new GroovePlayerEvent;
};
GNPlayer::~GNPlayer() {
delete event;
};
Persistent<Function> GNPlayer::constructor;
template <typename target_t, typename f... |
<commit_before>
#include <sstream>
#include <boost/foreach.hpp>
#include <H5Cpp.h>
#include "scsi/h5writer.h"
#include "scsi/h5loader.h"
// H5::Exception doesn't derive from std::exception
// so translate to some type which does.
// TODO: sub-class mixing H5::Exception and std::exception?
#define CATCH() catch(H5:... |
<commit_before>#include <stdlib.h>
//#include <string.h>
#include <set>
#include <vector>
#include "http/json.hpp"
#include "stl_utils.hpp"
#include "utils.hpp"
#include "containers/archive/stl_types.hpp"
#ifndef NDEBUG
std::string (*cJSON_default_print)(cJSON *json) = cJSON_print_std_string;
#else
std::string (*cJS... |
<commit_before>#include "instance.h"
/*void Instance::set_id(int i){
id = i;
}
void Instance::set_task_number(int t){
tasks_number = t;
}*/
void Instance::generate_instance(int quantity, int max_time, int identifier, bool verbose){
srand(time(NULL));
id = identifier;
tasks_number = quantity;
int t1_1, t1... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>#include "editaddressdialog.h"
#include "ui_editaddressdialog.h"
#include "addressbookpage.h"
#include "sendcoinsdialog.h"
#include "addresstablemodel.h"
#include "guiutil.h"
#include "main.h"
#include "base58.h"
#include <QDataWidgetMapper>
#include <QMessageBox>
QString addressOld = "";
QString nameO... |
<commit_before>/*
* RInterface.hpp
*
* Copyright (C) 2009-12 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 General Pu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.