text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright 2020 The SwiftShader 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
//
// Un... |
<commit_before>#include "wrapper.h"
#include "wx/dialup.h"
extern "C"
{
EWXWEXPORT(void*,wxDialUpManager_Create)()
{
return (void*) wxDialUpManager::Create();
}
EWXWEXPORT(void,wxDialUpManager_Delete)(void* _obj)
{
delete (wxDialUpManager*)_obj;
}
EWXWEXPORT(int,wxDialUpManager_IsOk)(void* _obj)
... |
<commit_before>/**
******************************************************************************
* Elemental Forms : a lightweight user interface framework *
******************************************************************************
* ©2015 Ben Vanik. All rights reserved. Released under the B... |
<commit_before>#include <common/buffer.h>
#include <common/endian.h>
#include <event/event_callback.h>
#include <io/pipe/pipe.h>
#include <io/pipe/pipe_pair.h>
#include <xcodec/xcodec.h>
#include <xcodec/xcodec_cache.h>
#include <xcodec/xcodec_decoder.h>
#include <xcodec/xcodec_encoder.h>
#include <xcodec/xcodec_has... |
<commit_before>/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
<commit_before>#include <fstream>
#include <boost/lexical_cast.hpp>
#include "Crypto.h"
#include "Timestamp.h"
#include "I2NPProtocol.h"
#include "NetDb.h"
#include "util.h"
#include "version.h"
#include "Log.h"
#include "RouterContext.h"
namespace i2p
{
RouterContext context;
RouterContext::RouterContext ():
m_L... |
<commit_before>#include "perf_precomp.hpp"
#include "opencv2/ts/ocl_perf.hpp"
#ifdef HAVE_OPENCL
namespace cvtest {
namespace ocl {
CV_ENUM(MethodType, TM_SQDIFF, TM_SQDIFF_NORMED, TM_CCORR, TM_CCORR_NORMED, TM_CCOEFF, TM_CCOEFF_NORMED)
typedef std::tr1::tuple<Size, Size, MethodType> ImgSize_TmplSize_Metho... |
<commit_before>#include "../includes/emulator.hh"
Emulator::Emulator()
{
}
Emulator::Emulator(char* file, int dbg)
: state_(0)
, ram_(new RAM(file))
, display_(ram_)
, dbg_(&cpu_, ram_, dbg)
{
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);
screen_ = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, 32... |
<commit_before>/*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file... |
<commit_before>#include "TEXT_S.H"
#include "GPU.H"
#include "SPECIFIC.H"
#include "TEXT.H"
#include "TYPES.H"
//char*, unsigned short*, unsigned short*
#if 1
long GetStringLength(char* string, unsigned short* a1, unsigned short* a2)//8DEDC(<), 8FF20(<)
{
char c;
long t0, t1, t2, t3, t5, v0;
t5 = 0;
t0 = 0;
t2 =... |
<commit_before>//
// Created by Miguel Rentes on 30/01/2017.
//
#include "STL.h"
void printKMax(int arr[], int n, int k) {
deque<int> mydeque;
int greatest = 0;
// for each group of k-elements:
// push it to the deque
// iterate over it and find the greatest value
// on the next iterations, pu... |
<commit_before>#ifndef __MAPS_GRIDMAP_HPP_
#define __MAPS_GRIDMAP_HPP_
#pragma once
#include <maps/LocalMap.hpp>
#include <maps/grid/GridCell.hpp>
/** std **/
#include <iostream>
#include <type_traits>
/** Boost **/
#include <boost/shared_ptr.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <b... |
<commit_before>/*
* Copyright (c) 2019-2020 Fastly, Inc., Toru Maesaka, Goro Fuji
*
* 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
... |
<commit_before>// Copyright (c) 2011 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 "net/proxy/dhcp_proxy_script_adapter_fetcher_win.h"
#include "base/bind.h"
#include "base/message_loop_proxy.h"
#include "bas... |
<commit_before>#pragma once
// `krbn::session_monitor::components_manager` can be used safely in a multi-threaded environment.
#include "monitor/version_monitor.hpp"
#include "receiver.hpp"
#include "session_monitor_receiver_client.hpp"
#include <pqrs/osx/session.hpp>
namespace krbn {
namespace session_monitor {
cla... |
<commit_before>// $Id$
/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2006 University of Edinburgh
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as ... |
<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 "net/base/platform_mime_util.h"
#include <string>
#include "base/logging.h"
#include "build/build_config.h"
#if defined(OS_... |
<commit_before>// $Id$
// Author: Sergey Linev 8/01/2018
/*************************************************************************
* Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/**
* KQOAuth - An OAuth authentication library for Qt.
*
* Author: Johan Paul (johan.paul@gmail.com)
* http://www.johanpaul.com
*
* KQOAuth 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 ... |
<commit_before>/*
* Copyright (C) 2003 Unai Garro <ugarro@users.sourceforge.net>
*/
#include "krecipesview.h"
#include <iostream>
#include <qpainter.h>
#include <qlayout.h>
#include <qsplitter.h>
#include <kurl.h>
#include <kapp.h>
#include <ktrader.h>
#include <klibloader.h>
#include <kmessagebox.h>
#include <kr... |
<commit_before>/*
* Image.cpp
*
* Created on: Sep 8, 2009
* Author: rasmussn
*/
#include "Image.hpp"
#include "../io/imageio.hpp"
#include <assert.h>
#include <string.h>
namespace PV {
Image::Image() {
initialize_base();
}
Image::Image(const char * name, HyPerCol * hc, const char * filename) {
ini... |
<commit_before>/**
* File : C.cpp
* Author : Kazune Takahashi
* Created : 2018-10-27 20:57:45
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> /... |
<commit_before>#define DEBUG 1
/**
* File : F.cpp
* Author : Kazune Takahashi
* Created : 2019-5-11 22:04:36
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#in... |
<commit_before>
#include "stdafx.h"
#include "2DTransform.h"
#include "math/Math.h"
#include <vector>
#include <algorithm>
using namespace std;
#define MAX_LOADSTRING 100
HINSTANCE hInst;
HWND g_hWnd;
TCHAR szTitle[MAX_LOADSTRING];
TCHAR szWindowClass[MAX_LOADSTRING];
vector<Vector3> g_vertices1;
vector<Vector3> g_ve... |
<commit_before>/*
* Location2.cpp
*
* Created on: Nov 7, 2016
* Author: szsz
*/
#include "Location2.h"
Location2::Location2(LoggerPtr logger, Settings *settings) {
_logger = logger;
_settings = settings;
LOG4CXX_INFO(_logger, "Location 2");
this->Pos_X = 0;
this->Pos_Y = 0;
this->Prop = 0;
this->Po... |
<commit_before>/** ==========================================================================
* 2011 by KjellKod.cc, modified by Vrecan in https://bitbucket.org/vrecan/g2log-dev
* 2015, adopted by KjellKod for g3log at:https://github.com/KjellKod/g3sinks
*
* This code is PUBLIC DOMAIN to use at your own risk and comes
... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/diag/prdf/common/plugins/prdfParserUtils.C $ ... |
<commit_before>#include "unit_tests/suite/lumix_unit_tests.h"
#include "core/log.h"
#include "core/mt/lock_free_fixed_queue.h"
#include "core/mt/task.h"
#include "core/MT/thread.h"
#include "core/mt/transaction.h"
#include "core/queue.h"
#include "core/array.h"
#include <Windows.h>
//#define ASSERT_HANDLE_FAIL
name... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 2002-2003 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. Red... |
<commit_before>/*
* Copyright 2002-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>#ifndef STAN_MATH_PRIM_MAT_FUNCTOR_MAP_RECT_CONCURRENT_HPP
#define STAN_MATH_PRIM_MAT_FUNCTOR_MAP_RECT_CONCURRENT_HPP
#include <stan/math/prim/mat/fun/typedefs.hpp>
#include <stan/math/prim/mat/functor/map_rect_reduce.hpp>
#include <stan/math/prim/mat/functor/map_rect_combine.hpp>
#include <boost/lexic... |
<commit_before>#include "TVirtualMCApplication.h"
#include "Fdblprc.h" //(DBLPRC) fluka common
//
// #include "TCallf77.h"
#ifndef WIN32
#define magfld magfld_
#define type_of_call
#else
#define magfld MAGFLD
#define type_of_call _stdcall
#endif
extern "C" void type_of_call magfld(double& x, double& y, double& ... |
<commit_before>#include <Riostream.h>
#include "AliRun.h"
#include "TFluka.h"
#ifndef WIN32
# define stupre stupre_
#else
# define stupre STUPRE
#endif
//
// Fluka include
#include "Fdimpar.h" //(DIMPAR) fluka include
// Fluka commons
#include "Fdblprc.h" //(DBLPRC) fluka common
#include "Femfstk.h" //(EMFSTK) fluka... |
<commit_before>/*
* Copyright(c) Sophist Solutions Inc. 1990-2013. All rights reserved
*/
// TEST Foundation::Containers::SortedSet
// STATUS PRELIMINARY
#include "Stroika/Foundation/StroikaPreComp.h"
#include <iostream>
#include <sstream>
#include "Stroika/Foundation/Containers/SortedSet... |
<commit_before>/*
* Copyright (C) 2015-present 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... |
<commit_before>#include <iostream>
#include <ctime>
#include <fstream>
#include <Windows.h>
#include <string>
#include "..\include\Game.h"
#include "..\include\Common.h"
#include "..\include\PlayerTypes\PlayerTypes.h"
#include "..\include\EnemyTypes\EnemyTypes.h"
using namespace std;
using namespace Common;
// To ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>#ifndef STAN_MATH_REV_CORE_INIT_CHAINABLESTACK_HPP
#define STAN_MATH_REV_CORE_INIT_CHAINABLESTACK_HPP
#include <stan/math/rev/core/chainablestack.hpp>
namespace stan {
namespace math {
namespace {
ChainableStack global_stack_instance_init;
}
} // namespace math
} // namespace stan
#endif
<commit_ms... |
<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>/*The following code implements the Knuth-Fisher-Yates linear time shuffling algorithm.*/
#include <iostream>
#include <random>
#include <ctime>
void swap(int &, int &);
int* shuffle(int*, int);
int main()
{
int size = 0;
char ch;
std::cout << "Enter the size of the list." << std::endl;
std::cin >>... |
<commit_before><commit_msg>Modified updateRowNumbers to use for loop<commit_after><|endoftext|> |
<commit_before><commit_msg>INTEGRATION: CWS tbe11 (1.5.10); FILE MERGED 2004/07/15 17:47:18 tbe 1.5.10.4: #i31315# Rework Basic IDE Macro Chooser and Macro Organizer 2004/07/09 15:50:11 tbe 1.5.10.3: #i31315# Rework Basic IDE Macro Chooser and Macro Organizer 2004/06/23 08:33:32 tbe 1.5.10.2: #99468# Basic IDE cannot h... |
<commit_before>#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE engine_tests
#define BOOST_TEST_MAIN
#define BOOST_TEST_LOG_LEVEL all
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <string>
#include <vector>
#include "../Source/UCI.hpp"
#include "../Source/Search.hpp"
#include "../Source/Board.... |
<commit_before>#include <iostream>
#include "occa.hpp"
int main(int argc, char **argv){
occa::printAvailableDevices();
int entries = 5;
float *a = new float[entries];
float *b = new float[entries];
float *ab = new float[entries];
for(int i = 0; i < entries; ++i){
a[i] = i;
b[i] = 1 - i;
... |
<commit_before>#include <mpi.h>
#include <cmath>
#include <ctime>
#include <fstream>
#include <iostream>
#include <algorithm>
#include <petscksp.h>
#include <petscis.h>
#include <petsclog.h>
#include "par.h"
#include "mpi_range.h"
#include "get_cluster.h"
#include "get_buffer.h"
#include "get_trunc.h"
#include "get_vo... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/nest/p9_fbc_utils.H $ ... |
<commit_before>#include <iostream>
#include "ros/ros.h"
#include "sensor_msgs/PointCloud2.h"
#include "sensor_msgs/NavSatFix.h"
#include "sensor_msgs/Imu.h"
#include "nav_msgs/Odometry.h"
#include "laser_transform_core.h"
using std::string;
int main (int argc, char **argv)
{
ros::init(argc, argv, "laser_transform")... |
<commit_before>#include "ui/ui_root.h"
#include "ui/ui_widget.h"
#include "api/audio_api.h"
#include "ui/ui_painter.h"
using namespace Halley;
UIRoot* UIRoot::getRoot()
{
return this;
}
UIRoot::UIRoot(AudioAPI* audio)
: dummyInput(std::make_shared<InputButtonBase>(4))
, audio(audio)
{
}
void UIRoot::update(Time ... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
<commit_before>/// AdcDac driver
///
/// (c) Koheron
#ifndef __DRIVERS_CLUSTER_HPP__
#define __DRIVERS_CLUSTER_HPP__
#include <context.hpp>
class Cluster
{
public:
Cluster(Context& ctx)
: ctl(ctx.mm.get<mem::control>())
, sts(ctx.mm.get<mem::status>())
, ctl_clk(ctx.mm.get<mem::ctl_clk>())
{}
... |
<commit_before>#pragma once
namespace opttmp {
namespace memory_layout {
// component type has to be indexable, and has to have a size() operator
template <typename vector_type, typename component_type,
typename AoS_container_type>
class struct_of_array_data {
private:
// data in SoA form
size_t num_com... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_lpc_utils.H $ ... |
<commit_before>#include "../core/op_algo.h"
#include "../core/gradient_helper.h"
#include "basic_arithmetics.h"
#include "matmul.h"
#include "initializer.h"
#include <algorithm>
namespace mlfe{
namespace functional{
REGIST_OP(Negative)
.Input("X", "float32")
.Output("Y", "float32")
.ShapeInference([](OpDe... |
<commit_before>#ifndef GNR_CALLBACK_HPP
# define GNR_CALLBACK_HPP
# pragma once
#include <cassert>
// std::size_t
#include <cstddef>
#include <tuple>
#include <functional>
#include <type_traits>
#include <utility>
namespace gnr
{
namespace detail
{
namespace callback
{
constexpr auto default_noexcept =
#if de... |
<commit_before>/***********************************************************************
created: Wed, 8th Feb 2012
author: Lukas E Meindl (based on code by Paul D Turner)
*************************************************************************/
/**********************************************************... |
<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 "media/audio/audio_manager_base.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
#incl... |
<commit_before>#include "platform.hpp"
#include "../coding/sha2.hpp"
#include "../coding/base64.hpp"
#include "../base/logging.hpp"
string Platform::ReadPathForFile(string const & file) const
{
string fullPath = m_writableDir + file;
if (!IsFileExistsByFullPath(fullPath))
{
fullPath = m_resourcesDir + fil... |
<commit_before>// Copyright (c) 2011 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 "base/logging.h"
#include "base/string_number_conversions.h"
#include "base/string_split.h"
#include "base/string_util.h"
#inc... |
<commit_before>/**
* @copyright
* ====================================================================
* Copyright (c) 2007 CollabNet. All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also availab... |
<commit_before>// Purpose: Get relative humidity and temperature from A2302 sensor found at akizukidenshi.com/download/ds/aosong/AM2302.pdf
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <iostream>
#include <stdio.h>
#include <signal.h>
#include <stdlib.h>
// absolute addresses
#define GPIO0_AD... |
<commit_before>/* Copyright 2019 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>/* Copyright 2021 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>// Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2014 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University... |
<commit_before>/**
* @file april_tags.cpp
* @brief Example application for April tags library
* @author: Michael Kaess
*
*/
#include <cstring>
#include "opencv2/opencv.hpp"
#include "AprilTags/TagDetector.h"
#include "AprilTags/Tag36h11.h"
using namespace std;
const char* window_name = "apriltags_demo";
//... |
<commit_before>
/**
* Copyright (C) 2016, Canonical Ltd.
* 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.
*/
//... |
<commit_before>//===- Optimize.cpp - Optimize a complete program -------------------------===//
//
// 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>// 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/chromeos/login/screen_lock_view.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "base... |
<commit_before>/**
* Copyright (c) 2016-present, 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.
... |
<commit_before>// Copyright (c) 2009 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/extensions/extension_install_ui.h"
#include <map>
#include "app/l10n_util.h"
#include "app/resource_bundle.h... |
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces.
* Copyright (C) 2005, 2006, 2007 Roman Schindlauer
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Thomas Krennwallner
* Copyright (C) 2009, 2010 Peter Schüller
*
* This file is part of dlvhex.
*
* dlvhex is free software; you can redistr... |
<commit_before>/**
* Non-metric Space Library
*
* Authors: Bilegsaikhan Naidan (https://github.com/bileg), Leonid Boytsov (http://boytsov.info).
* With contributions from Lawrence Cayton (http://lcayton.com/).
*
* For the complete list of contributors and further details see:
* https://github.com/searchivarius/N... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "docsumwriter.h"
#include "docsumstate.h"
#include "docsum_field_writer_state.h"
#include <vespa/searchlib/common/transport.h>
#include <vespa/searchlib/util/slime_output_raw_b... |
<commit_before>// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <cstdlib>
#include <unistd.h>
#include <android/window.h>
#include "EngineAndroid.h"
#include "utils/Log.h"
static int looperCallback(int fd, int events, void* data)
{
if (events & ALOOPER_EVENT_INPUT)
{
... |
<commit_before><commit_msg>Updated platform utils<commit_after><|endoftext|> |
<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 Qt Agent
**
** If y... |
<commit_before>/*
Copyright (C) 1998 by Jorrit Tyberghein
Copyright (C) 2001 by Samuel Humphreys
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 th... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2016 Morwenn
*
* 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>// Copyright 2015-2019 Elviss Strazdins. All rights reserved.
#include <system_error>
#ifdef _WIN32
# pragma push_macro("WIN32_LEAN_AND_MEAN")
# pragma push_macro("NOMINMAX")
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# ifndef NOMINMAX
# define NOMINMAX
# endif
# incl... |
<commit_before>/* -*- C++ -*-
This file is part of ThreadWeaver.
Author: Mirko Boehm
Copyright: (C) 2005-2014 Mirko Boehm
Contact: mirko@kde.org
http://www.kde.org
http://creative-destruction.me
This library is free software; you can redistribute it and/or
modify it under the term... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/
* Copyright (C) 2008 Brian Aker, Eric Day
* All rights reserved.
*
* Redistribution and use in source and binary forms, with... |
<commit_before>// Copyright (c) 2009 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/views/options/content_page_view.h"
#include <windows.h>
#include <shlobj.h>
#include <vsstyle.h>
#include <vs... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of Swift2D. //
// ... |
<commit_before>/*
* Copyright (c) 2020 SUSE LLC
*
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that ... |
<commit_before>/*
Copyright (C) 2003 Justin Karneges
Copyright (C) 2005 Brad Hards <bradh@frogmouth.net>
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>#pragma once
#include <fc/reflect/variant.hpp>
#include <stdexcept>
namespace eosio { namespace chain {
enum class backing_store_type {
NATIVE, // A name for regular users. Uses Chainbase.
ROCKSDB
};
}} // namespace eosio::chain
namespace fc {
template <>
inline void to_variant(con... |
<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_frame/test/chrome_frame_automation_mock.h"
#include "chrome_frame/test/chrome_frame_test_utils.h"
#include "testing/gt... |
<commit_before>#include "ofApp.h"
ofVec3f getNormal(const ofVec3f& v1, const ofVec3f& v2, const ofVec3f& v3) {
ofVec3f a = v1 - v2;
ofVec3f b = v3 - v2;
ofVec3f normal = b.cross(a);
normal.normalize();
return normal;
}
void buildNormals(ofMesh& mesh) {
vector<ofVec3f>& vertices = mesh.getVertices();
mesh.clear... |
<commit_before>//===- ICF.cpp ------------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>/**************************************************************************
**
** This file is part of QMime
**
** Based on Qt Creator source code
**
** Qt Creator Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
**
** GNU Lesser General Public License Usage
**
** This file may be use... |
<commit_before>/*
* lines.cpp
*
* Created on: Oct 22, 2014
* Author: Carsten Uphoff (uphoff@mytum.de)
*/
#include <Canvas.hpp>
#include <LinePlot.hpp>
#include <Color.hpp>
#include <Geometry.hpp>
#include <HorizontalLayout.hpp>
#include <VerticalLayout.hpp>
#include <GridLayout.hpp>
#include <cmath>
#defin... |
<commit_before>#include "LDPC_matrix_handler.hpp"
using namespace aff3ct;
using namespace tools;
void LDPC_matrix_handler
::sparse_to_full(const Sparse_matrix& sparse, Full_matrix& full)
{
full.clear();
full.resize(sparse.get_n_rows(), mipp::vector<int8_t>(sparse.get_n_cols(), 0));
for (unsigned i = 0; i < sparse... |
<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 "ppapi/cpp/resource.h"
#include <algorithm>
#include "ppapi/cpp/logging.h"
#include "ppapi/cpp/module.h"
namespace pp {
Re... |
<commit_before>//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <armnn/Tensor.hpp>
#include <boost/assert.hpp>
namespace armnn
{
// Utility class providing access to raw tensor memory based on indices along each dimension.
template <typename DataType>
class TensorBuf... |
<commit_before>/*
behaviorconfig.cpp - Kopete Look Feel Config
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* This progr... |
<commit_before>/*
#include <allegro.h>
#ifdef WINDOWS
#include <winalleg.h>
#endif
*/
#include <pthread.h>
#include <math.h>
#include <iostream>
#include "init.h"
#include "loading.h"
#include "util/bitmap.h"
#include "fonts.h"
#include "util/font.h"
#include "util/funcs.h"
#include <vector>
using namespace std;
t... |
<commit_before>/***************************************************************************
* lpconfig.c
*
* Thu Mar 10 11:13:44 2005
* Copyright 2005 Simon Morlat
* Email simon.morlat@linphone.org
****************************************************************************/
/*
* This program i... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "clustering/administration/tables/debug_table_status.hpp"
#include "clustering/administration/datum_adapter.hpp"
#include "clustering/administration/servers/config_client.hpp"
#include "clustering/administration/tables/table_config.hpp"
#in... |
<commit_before>/* Copyright (c) 2014 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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list... |
<commit_before>#ifndef CPPNOTESMAIN_SPLIT_ARRAY_INTO_CONSECUTIVE_SUBSEQUENCES_HPP
#define CPPNOTESMAIN_SPLIT_ARRAY_INTO_CONSECUTIVE_SUBSEQUENCES_HPP
/*
https://leetcode.com/problems/split-array-into-consecutive-subsequences/
Given an array nums sorted in ascending order, return true if and only if you can split it int... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fldll.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-09-17 14:52:23 $
*
* The Contents of this file are made av... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.