text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright (c) 2011-2013 Stephen Williams ([email protected])
* Copyright CERN 2015
* @author Maciej Suminski ([email protected])
*
* 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 Lice... |
<commit_before>/*
* Copyright (c) 2013 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>//*****************************************************************************
//
// exosite.cpp - Prototypes for the Exosite Cloud API
//
// Copyright (c) 2012 Exosite LLC. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pr... |
<commit_before>#include <iostream>
#include <cstdlib>
#include <cstdio>
#include "util.h"
using namespace std;
bool show_addresses;
void status(string message) {
cout << "[+] " << message << "\n";
}
void header() {
cout << "SIC-Disassembler v1.2 by Jay Bosamiya\n"
"------------------------------------... |
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by app... |
<commit_before>#include "FPSRole.h"
#include "Engine.h"
#include "Creature.h"
#include "AnimationBlend.h"
CFPSRole::CFPSRole(void)
{
m_nFire = 0;
m_fAniCoolingTime = 0;
m_fAniNowCoolingTime = 0;
m_fSudCoolingTime = 0;
m_fEmitCoolingTime = 0;
}
CFPSRole::~CFPSRole(void)
{
g_Engine.pGame->RemoveNode(m_pMuzzleEff... |
<commit_before>#include <tests/lib/test.h>
#define TP_QT_ENABLE_LOWLEVEL_API
#include <TelepathyQt/BaseConnectionManager>
#include <TelepathyQt/ConnectionManager>
#include <TelepathyQt/ConnectionManagerLowlevel>
#include <TelepathyQt/DBusError>
#include <TelepathyQt/PendingReady>
#include <TelepathyQt/PendingConnecti... |
<commit_before>#include "FastLED.h"
#if defined(__SAM3X8E__)
volatile uint32_t fuckit;
#endif
void *pSmartMatrix = NULL;
CFastLED LEDS;
CFastLED & FastSPI_LED = LEDS;
CFastLED & FastSPI_LED2 = LEDS;
CFastLED & FastLED = LEDS;
CLEDController *CLEDController::m_pHead = NULL;
CLEDController *CLEDController::m_pTail = ... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include "Support/CmdLine.h"
#include "Support/PrettyPrint.h"
#include "Support/StringSplit.h"
#include "CmdLineQt.h"
#include "CmdLineWithIndex.h"
#include <iostream>
#include <set>
using namespace support;
name... |
<commit_before>#include <pcl/ModelCoefficients.h>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/features/normal_3d.h>
#include <pcl/filters/extract_indices.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/kdtree/kdtree.h>
#include <pcl/sample_consensus/method_types.h>
#include <pcl/sample_co... |
<commit_before>/*
* This file is part of the Sqloxx project and is distributed under the
* terms of the license contained in the file LICENSE.txt distributed
* with this package.
*
* Author: Matthew Harvey <[email protected]>
*
* Copyright (c) 2012-2013, Matthew Harvey.
*
* THE SOFTWARE IS PROVIDED "A... |
<commit_before>// This program takes two args:
// 1. the path to the sites file, like /foo/sites/sites.tsv
// 2. the path to the augmented pheno directory, like /foo/augmented_phenos/
// The augmented pheno files must look somewhat like:
// chr pos ref alt rsids nearest_genes maf pval
// ... |
<commit_before>//
// FileDir.m
// FileDir
//
// Created by Daniel Cohen Gindi on 6/24/14.
// Copyright (c) 2013 Daniel Cohen Gindi. All rights reserved.
//
// https://github.com/danielgindi/FileDir
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Daniel Cohen Gindi ([email protected])
//
// ... |
<commit_before>#include "vendor/docopt/docopt.hpp"
#include <thewizardplusplus/wizard_parser/lexer/lexeme.hpp>
#include <thewizardplusplus/wizard_parser/parser/parsers.hpp>
#include <thewizardplusplus/wizard_parser/parser/macroses.hpp>
#include <thewizardplusplus/wizard_parser/lexer/tokenizer.hpp>
#include <thewizardpl... |
<commit_before>/*
* Copyright (c) 2021 dresden elektronik ingenieurtechnik gmbh.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
*/
#include <deconz/aps_controll... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_cpu_special_wakeup.H ... |
<commit_before>#include "JewelFactory.h"
#include <SDL2/SDL_image.h>
#include "jewel.h"
#include "graphics/Renderer.h"
#include "util/Log.h"
namespace bejeweled {
namespace {
int dx[7] = {3,0,1,2,0,1,2};
int dy[7] = {3,0,0,0,1,1,1};
}
JewelFactory::JewelFactory(int jewel_pool_size, graphics::Renderer &renderer) : ... |
<commit_before><commit_msg>Fix sigsegv with createObjects<commit_after><|endoftext|> |
<commit_before>#include "StdAfx.h"
#include "NikonDecompressor.h"
/*
RawSpeed - RAW file decoder.
Copyright (C) 2009 Klaus Post
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 Softwar... |
<commit_before>/*
* Copyright (c) 2008-2017, Hazelcast, 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
*
* U... |
<commit_before>// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyrig... |
<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>/*
* Quad2.h
*
* Created on: May 15, 2013
* Author: Ryler Hockenbury
*
* Quad2
*/
#include "Quad2.h"
uint8_t vehicleStatus = 0x0;
bool inFlight = false;
ITG3200 gyro;
ADXL345 accel;
HMC5883L comp;
AR6210 receiver;
PID controller[2]; // pitch and roll controllers
//Motor... |
<commit_before>/*
* Copyright 2013-2014 Jose Fonseca
*
* 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.
*
* This library is distributed in the ... |
<commit_before>/*
* templatedlg.cpp - dialogue to create, edit and delete alarm templates
* Program: kalarm
* (C) 2004 by David Jarvie <[email protected]>
*
* 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
... |
<commit_before>/*
* Copyright (c) 2016, The OpenThread 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
* ... |
<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>#ifndef ASSERT_HPP
#define ASSERT_HPP
#include <iostream>
#include "core/debug/break.hpp"
namespace tz
{
namespace debug
{
static bool assert_failure = false;
}
#ifdef topaz_assert
#undef topaz_assert
#endif
/**
* Evaluate the expression. This should be used to guarantee that expressions are tr... |
<commit_before>/*Copyright (c) 2013, Nordic Semiconductor ASA
*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
*... |
<commit_before>/*
* Created on: 19 Apr 2014
* Author: Vladimir Ivan
*
* Copyright (c) 2016, University Of Edinburgh
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Re... |
<commit_before>#include <bts/kid/kid_server.hpp>
#include <bts/blockchain/difficulty.hpp>
#include <bts/db/level_map.hpp>
#include <fc/filesystem.hpp>
#include <fc/network/http/server.hpp>
#include <fc/exception/exception.hpp>
#include <fc/thread/thread.hpp>
#include <fc/reflect/variant.hpp>
#include <fc/io/raw.hpp>
n... |
<commit_before>/*
eXokernel Development Kit (XDK)
Based on code by Samsung Research America Copyright (C) 2013
The GNU C 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
v... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
//
// Contributors: Kirsten Weber
#ifndef DUNE_GDT_DISCRETEFUNCTION_DEFAULT_HH
#define DU... |
<commit_before>//===- Miscompilation.cpp - Debug program miscompilations -----------------===//
//
// This file implements program miscompilation debugging support.
//
//===----------------------------------------------------------------------===//
#include "BugDriver.h"
#include "SystemUtils.h"
#include "ListReducer.... |
<commit_before>#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <iomanip>
#include "mvnormal.h"
#include "session.h"
#include "chol.h"
#include "linop.h"
#include "noisemodels.h"
#include "latentprior.h"
#include "data.h"
using namespace std;
using namespace Eigen;
namespace Macau {
ILatentPrior::ILatentPr... |
<commit_before>#include "Runtime/GuiSys/CTextParser.hpp"
#include "Runtime/GuiSys/CFontImageDef.hpp"
#include "Runtime/GuiSys/CTextExecuteBuffer.hpp"
namespace urde {
static float u16stof(char16_t* str) {
char cstr[16];
int i;
for (i = 0; i < 15 && str[i] != u'\0'; ++i)
cstr[i] = str[i];
cstr[i] = '\0';
... |
<commit_before>// Filename: showBase.cxx
// Created by: shochet (02Feb00)
//
////////////////////////////////////////////////////////////////////
#include "showBase.h"
#include <throw_event.h>
#include <camera.h>
#include <renderRelation.h>
#include <namedNode.h>
#include <renderModeTransition.h>
#include <renderMo... |
<commit_before>/*
Copyright (c) 2007 Volker Krause <[email protected]>
This library 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 of the License, or (at your
option) a... |
<commit_before>#include "crashhandler.hpp"
#if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) && !defined(__GNUC__))
#error "crashhandler_unix.cpp is used on a non-UNIX platform"
#endif
#include <csignal>
#include <cstring>
#include <unistd.h>
#include <execinfo.h>
#include <cxxabi.h>
#include <cstdlib>
#i... |
<commit_before>#include "ofSoundStream.h"
#include "RtAudio.h"
//----------------------------------- static variables:
static ofBaseApp * OFSAptr = NULL;
RtAudio * audio = NULL;
int nInputChannels;
int nOutputChannels;
ofAudioEventArgs audioEventArgs;
int receiveAudioBufferAndCallSimpleApp(void... |
<commit_before>/*
* Copyright (C) 2014 Pavel Kirienko <[email protected]>
*/
#pragma once
#include <queue>
#include <vector>
#include <gtest/gtest.h>
#include <uavcan/internal/transport/can_io.hpp>
#include "../../common.hpp"
class CanIfaceMock : public uavcan::ICanIface
{
public:
struct FrameWithTime
... |
<commit_before>#include "SimulationEvent.hpp"
auto operator<<(std::ostream& os, const SimulationEventType& ty) -> std::ostream& {
switch (ty) {
case SimulationEventType::Attack:
os << "Attack";
break;
case SimulationEventType::Collision:
os << "Collision";
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lngopt.hxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: rt $ $Date: 2007-01-29 15:46:04 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* $RCSfile: service1_impl.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: obo $ $Date: 2006-09-17 00:09:50 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
*
* ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_... |
<commit_before>#include "parentwlxwindow.h"
#include "wlx_interfaces.h"
#include <QApplication>
#include <QLabel>
#include <QSet>
#include <QTimer>
#include <QVBoxLayout>
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
#include <QWindow>
#define QT_WA(unicode, ansi) unicode
#endif
static LRESULT CALLBACK WndProc(HWND hWn... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... |
<commit_before>/*
* Copyright 2013-2014 Jose Fonseca
*
* 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.
*
* This library is distributed in the ... |
<commit_before>#pragma once
#include <RenHook/ExecutableMeta/ExecutableMeta.hpp>
#include <RenHook/Hooks/Hook.hpp>
#include <RenHook/Pattern/Pattern.hpp>
namespace RenHook::Managers::Hooks
{
namespace Private
{
std::shared_ptr<Hook> Create(const uintptr_t Address, const uintptr_t Detour, const std::st... |
<commit_before>// Unit test includes
#include "libmesh_cppunit.h"
#include "test_comm.h"
// libMesh includes
#include <libmesh/libmesh.h>
#include <libmesh/xdr_cxx.h>
#include <libmesh/int_range.h>
#include <timpi/communicator.h>
// C++ includes
#include <vector>
using namespace libMesh;
class XdrTest : public CppU... |
<commit_before>#include "Application.h"
#include "Glew\include\glew.h"
#include"Imgui/imgui_impl_sdl.h"
#include"Imgui\imgui.h"
#include"Imgui\imguidock.h"
#include"Quadtree.h"
Application::Application()
{
window = new ModuleWindow();
input = new ModuleInput();
audio = new ModuleAudio(true);
scene_intro = new Modu... |
<commit_before>/**
* FreeRDS: Simple Greeter (Logon UI)
*
* Copyright 2014 Dell Software <[email protected]>
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appe... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ListStyle: Stores (and writes) list-based information that is
* needed at the head of an OO document.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was ... |
<commit_before>#include <gmi_mesh.h>
#include <apf.h>
#include <apfMesh2.h>
#include <apfMDS.h>
#include <PCU.h>
#include <parma.h>
namespace {
const char* modelFile = 0;
const char* meshFile = 0;
void freeMesh(apf::Mesh* m)
{
m->destroyNative();
apf::destroyMesh(m);
}
void getConfig(int argc, ch... |
<commit_before>#include "GeometryLoader.h"
GeometryLoader::GeometryLoader(bool start_enabled) : Module(start_enabled)
{
}
GeometryLoader::~GeometryLoader()
{
}
bool GeometryLoader::Awake()
{
bool ret = true;
return ret;
}
bool GeometryLoader::Start()
{
bool ret = true;
return ret;
}
bool GeometryLoader::Up... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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.or... |
<commit_before>/*
* Copyright (C) 2012 argent77
*
* This file is part of tileconv.
*
* tileconv is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) ... |
<commit_before>#include "engine/world/Room.h"
#include "engine/math/random.h"
namespace engine {
namespace world {
Room::Room(){
//Initialize empty room
roomType = ROOM_TYPE_EMPTY;
Tile tempTile;
tempTile.setType(TILE_VOID);
for(int i = 0;i < (ROOM_WIDTH * ROOM_HEIGHT);++i){
tiles[i] = tempTile;
}
... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<commit_before><commit_msg>Parse library no longer required<commit_after><|endoftext|> |
<commit_before>/*
Copyright (C) 2016 Volker Krause <[email protected]>
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 of the License, or (at your
option) a... |
<commit_before>// Copyright (c) 2020 The Orbit 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 "FunctionUtils.h"
#include <map>
#include "OrbitBase/Logging.h"
#include "Path.h"
#include "Utils.h"
namespace FunctionUtils {... |
<commit_before>#include "RigidBody.h"
void RigidBody::SetPosition(Ogre::Vector3 & position)
{
RigidBody::Node->setPosition(position);
}
Ogre::Vector3 RigidBody::GetPosition()
{
return RigidBody::Node->getPosition();
}
void RigidBody::SetOrientation(Ogre::Quaternion & orientation)
{
RigidBody::Node->setOrientation... |
<commit_before>/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*******************************... |
<commit_before>#if !defined(__CINT__) || defined(__MAKECINT__)
// ROOT includes
#include "TFile.h"
#include "TGrid.h"
#include "TString.h"
#include "TObjArray.h"
#include "TObjString.h"
#include "TSystem.h"
#include "TROOT.h"
#include "TKey.h"
#include "TTree.h"
#include "TParameter.h"
// Aliroot includes
#include "Al... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Co... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// Copyright (c) 2008-2010 Kent State University
// Copyright (c) 2011 Texas A&M University
//
// This file is distributed under the MIT License. See the accompanying file
// LICENSE.txt or http://www.opensource.org/licenses/mit-license.php for terms
// and conditions.
#ifndef ORIGIN_MATH_BLAS_MATRIX_AL... |
<commit_before>#include "PC.h"
PC::PC()
{
}
PC::~PC()
{
}
<commit_msg>켜기 만듬<commit_after>#include "PC.h"
PC::PC()
{
}
PC::~PC()
{
}
bool PC::TurnOnComputer() {
is_power_on = true;
return true;
}<|endoftext|> |
<commit_before>//
// Options.cpp
//
// Copyright (c) 2001-2004 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "vtlib/vtlib.h"
#include <string.h>
#include "Options.h"
#include <fstream>
using namespace std;
EnviroOptions g_Options;
#define STR_DATAPATH "DataPath"
#define STR_... |
<commit_before>#include "externalpotential.h"
#include "multipole.h"
#include "aux/eigensupport.h"
#include "functionparser.h"
#include "space.h"
#include "spdlog/spdlog.h"
namespace Faunus {
namespace Energy {
// ------------ Energybase -------------
void Energybase::to_json(json &) const {}
void Energybase::sync(... |
<commit_before>#include "js_helpers.h"
#include "common/RhodesApp.h"
#include "net/URI.h"
#include "logging/RhoLog.h"
#include "api_generator/Api.h"
#include <vector>
#undef DEFAULT_LOGCATEGORY
#define DEFAULT_LOGCATEGORY "js_helper"
namespace rho
{
namespace apiGenerator
{
using namespace rho::json;
static const ... |
<commit_before>#pragma warning(disable:4996)
#include "QtMainWindow.h"
#include "ui_QtMainWindow.h"
#include "ExternalWebView.h"
#include <QResizeEvent>
#include <QWebFrame>
#include "common/RhoStd.h"
#include "common/RhodesApp.h"
#include "rubyext/WebView.h"
#undef null
QtMainWindow::QtMainWindow(QWidget *parent) :
... |
<commit_before>
#include <togo/utility.hpp>
#include <togo/assert.hpp>
#include <togo/log.hpp>
#include <togo/kvs.hpp>
#include "../common/helpers.hpp"
#include <cstring>
using namespace togo;
signed
main() {
memory_init();
TOGO_LOGF("sizeof(KVS) = %u\n", static_cast<unsigned>(sizeof(KVS)));
TOGO_LOGF("sizeof(K... |
<commit_before>#ifndef MJOLNIR_CORE_MULTIPLE_BASIN_FORCE_FIELD_HPP
#define MJOLNIR_CORE_MULTIPLE_BASIN_FORCE_FIELD_HPP
#include <mjolnir/forcefield/MultipleBasin/MultipleBasinUnitBase.hpp>
#include <mjolnir/core/Topology.hpp>
#include <mjolnir/core/LocalForceField.hpp>
#include <mjolnir/core/GlobalForceField.hpp>
#incl... |
<commit_before><commit_msg>Fix fix of concurrently running Schmutzes.<commit_after><|endoftext|> |
<commit_before>//
// Created by Salvador on 3/22/2015.
//
#include <iostream>
#include "TreeNode.hxx"
#include "sametree.hxx"
using namespace std;
int main(void) {
Solution sol;
TreeNode p{5}, q{5};
cout << sol.isSameTree(p, q) << endl;
return 0;
}
<commit_msg>fixed test<commit_after>//
// Created by Salvador... |
<commit_before>/*
* jcom.dataspace
* External for Jamoma: map input to output: y=f(x)
* Copyright © 2007
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include "Jamoma.h"
// Data Structure for this object
typedef struct _dataspace{
... |
<commit_before>/*********************************************************************************
* Copyright (c) 2014 David D. Marshall <[email protected]>
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies... |
<commit_before><commit_msg>Fixed a segfault bug that is revealed only when resizing an empty ListBox to a very small size<commit_after><|endoftext|> |
<commit_before>#include "stactive_record.h"
using namespace stactiverecord;
using namespace std;
Sar_Dbi * Sar_Dbi::dbi;
/**
This is an example of a one to one object relationship. A lock has a single key and a key fits
a single lock. The class definitions are more complicated than they need to be - this is
... |
<commit_before><commit_msg>fixed layout for openwindow when you open from new<commit_after><|endoftext|> |
<commit_before><commit_msg>Patch from Todd Whiteman to show brace highlight background over caret line background.<commit_after><|endoftext|> |
<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 "webkit/glue/glue_serialize.h"
#include <string>
#include "base/pickle.h"
#include "base/utf_string_conversions.h"
#include ... |
<commit_before>#include "gamelib/core/Game.hpp"
#include <SFML/Graphics.hpp>
#include <climits>
#include "gamelib/core/GameState.hpp"
#include "gamelib/utils/log.hpp"
#include "gamelib/core/event/EventManager.hpp"
#include "gamelib/events/SFMLEvent.hpp"
#include "gamelib/core/input/InputSystem.hpp"
namespace gamelib
{... |
<commit_before>// Copyright (c) 2011-2014 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 "bitcoinamountfield.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2016 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
<commit_before>#include "qt/pivx/privacywidget.h"
#include "qt/pivx/forms/ui_privacywidget.h"
#include <QFile>
#include "qt/pivx/qtutils.h"
#include "guiutil.h"
#include "qt/pivx/coincontrolzpivdialog.h"
#include "qt/pivx/denomgenerationdialog.h"
#include <QGraphicsDropShadowEffect>
#include "qt/pivx/defaultdialog.h"
#... |
<commit_before>#include "analysisoverlay.h"
/**
* @brief AnalysisOverlay::AnalysisOverlay
*/
AnalysisOverlay::AnalysisOverlay() {
// Temporary areas to show, since there's no analysis yet.
add_area(2, cv::Point(50,50), cv::Point(150,150));
add_area(3, cv::Point(50,50), cv::Point(150,150));
add_area(4... |
<commit_before>// trance linux.hpp - Configuration for Linux
//
// Copyright (c) 2011 - 2011 Kohei Takahashi (Flast)
//
// 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,... |
<commit_before>/* Copyright 2014 - 2015 CyberTech Labs 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 a... |
<commit_before>/* $Header$ */
// Copyright ***********************************************************
//
// File ecmdMain.C
//
// IBM Confidenti... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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>/*
* Copyright (c) 2018, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rc.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: vg $ $Date: 2006-04-07 16:16:52 $
*
* The Contents of this file are made availa... |
<commit_before>//FRAGMENT(header)
/*==========================================================================
SeqAn - The Library for Sequence Analysis
http://www.seqan.de
===========================================================================
Copyright (C) 2010
This program is free software: you can... |
<commit_before>/*
* Copyright (c) 2010 Eduard Burtescu
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND TH... |
<commit_before>/*************************************************************************
*
* REALM CONFIDENTIAL
* __________________
*
* [2011] - [2015] Realm Inc
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Realm Incorporated and its suppliers,
* i... |
<commit_before>#include <die-tk.h>
#include <iostream>
using namespace std;
using namespace tk;
WDims getDims(bool big) { return big ? WDims(200,100) : WDims(100,200); }
int main()
{
Application app;
bool firstWindowWide = true;
auto swapWindowSizes = [&firstWindowWide](Window & w1, Window & w2) {
w2.setD... |
<commit_before>//*****************************************************************************
// Copyright 2017-2018 Intel 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
//
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.