commit stringlengths 40 40 | old_file stringlengths 2 205 | new_file stringlengths 2 205 | old_contents stringlengths 0 32.9k | new_contents stringlengths 1 38.9k | subject stringlengths 3 9.4k | message stringlengths 6 9.84k | lang stringlengths 3 13 | license stringclasses 13
values | repos stringlengths 6 115k |
|---|---|---|---|---|---|---|---|---|---|
a84983ea72ca5569585a4f321e2bb89cf78d6d9c | lib/ExecutionEngine/JIT/JIT.cpp | lib/ExecutionEngine/JIT/JIT.cpp | //===-- JIT.cpp - LLVM Just in Time Compiler ------------------------------===//
//
// This file implements the top-level support for creating a Just-In-Time
// compiler for the current architecture.
//
//===----------------------------------------------------------------------===//
#include "VM.h"
#include "llvm/Targ... | //===-- JIT.cpp - LLVM Just in Time Compiler ------------------------------===//
//
// This file implements the top-level support for creating a Just-In-Time
// compiler for the current architecture.
//
//===----------------------------------------------------------------------===//
#include "VM.h"
#include "llvm/Targ... | Fix space | Fix space
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@7273 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,... |
5e491e31d6fe9ec924ef565c833ba25db714b00a | lib/Option/SanitizerOptions.cpp | lib/Option/SanitizerOptions.cpp | //===--- SanitizerOptions.cpp - Swift Sanitizer options ------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LIC... | //===--- SanitizerOptions.cpp - Swift Sanitizer options ------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LIC... | Fix recently introduced typo: "traget" → "target" | [gardening] Fix recently introduced typo: "traget" → "target"
| C++ | apache-2.0 | jtbandes/swift,ahoppen/swift,atrick/swift,atrick/swift,swiftix/swift,jopamer/swift,return/swift,lorentey/swift,tinysun212/swift-windows,therealbnut/swift,jckarter/swift,arvedviehweger/swift,johnno1962d/swift,jckarter/swift,JGiola/swift,harlanhaskins/swift,aschwaighofer/swift,devincoughlin/swift,rudkx/swift,modocache/sw... |
f91726d1fc2beb45d228725d0031ada2d3ad43d3 | src/ircprotocol.cpp | src/ircprotocol.cpp | /*
* Copyright (C) 2008-2013 The Communi Project
*
* 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 of the License, or (at your
* option) any later version.
*
* This libra... | /*
* Copyright (C) 2008-2013 The Communi Project
*
* 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 of the License, or (at your
* option) any later version.
*
* This libra... | Fix #14: SASL over non-SSL connection | Fix #14: SASL over non-SSL connection
| C++ | bsd-3-clause | jpnurmi/libcommuni,jpnurmi/libcommuni,communi/libcommuni,communi/libcommuni |
5974d8300e322b821212711eb83e9afa3816de7a | common/phys_trans/mpitransport.cc | common/phys_trans/mpitransport.cc | #include "mpitransport.h"
#include "lock.h"
#include "log.h"
#include "mpi.h"
#include "config.h"
#define LOG_DEFAULT_RANK m_core_id
#define LOG_DEFAULT_MODULE TRANSPORT
#include <iostream>
using namespace std;
#ifdef PHYS_TRANS_USE_LOCKS
Lock* Transport::pt_lock;
#define PT_LOCK() ... | #include "mpitransport.h"
#include "lock.h"
#include "log.h"
#include "mpi.h"
#include "config.h"
#define LOG_DEFAULT_RANK m_core_id
#define LOG_DEFAULT_MODULE TRANSPORT
#include <iostream>
using namespace std;
#ifdef PHYS_TRANS_USE_LOCKS
Lock* Transport::pt_lock;
#define PT_LOCK() ... | Clean up log messages, change var name in ptSend. | [trans] Clean up log messages, change var name in ptSend.
| C++ | mit | 8l/Graphite,mit-carbon/Graphite,mit-carbon/Graphite,victorisildur/Graphite,victorisildur/Graphite,victorisildur/Graphite,nkawahara/Graphite,fhijaz/Graphite,nkawahara/Graphite,mit-carbon/Graphite-Cycle-Level,8l/Graphite,fhijaz/Graphite,fhijaz/Graphite,nkawahara/Graphite,mit-carbon/Graphite,victorisildur/Graphite,fhijaz/... |
9b97ca197de6ad8ddcd0bade66f1f2fc5dab7361 | common/vp9_header_parser_tests.cc | common/vp9_header_parser_tests.cc | // Copyright (c) 2016 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. All contributing projec... | // Copyright (c) 2016 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. All contributing projec... | check parser return | vp9_header_parser_tests: check parser return
ensure ParseUncompressedHeader() succeeds with valid bitstreams
Change-Id: I1e3900fc08f3b6b2e86bc2f59fd8fd96bc26ad0f
| C++ | bsd-3-clause | webmproject/libwebm,webmproject/libwebm,webmproject/libwebm |
4a1cd3dab6ae3234700efe161eb881d3bf69f2bf | grit_core/src/linux/KeyboardX11.c++ | grit_core/src/linux/KeyboardX11.c++ | /* Copyright (c) David Cunningham and the Grit Game Engine project 2010
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* t... | /* Copyright (c) David Cunningham and the Grit Game Engine project 2010
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* t... | Fix bug where an unbound (in the OS) key would crash the game | Fix bug where an unbound (in the OS) key would crash the game
| C++ | mit | grit-engine/grit-engine,sparkprime/grit-engine,sparkprime/grit-engine,grit-engine/grit-engine,sparkprime/grit-engine,grit-engine/grit-engine,grit-engine/grit-engine,sparkprime/grit-engine |
11212eb0d1a1587155b424bb56435bab58545029 | src/plugins/cpptools/cppfindreferences.cpp | src/plugins/cpptools/cppfindreferences.cpp | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial licenses may u... | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial licenses may u... | Handle qualified name ids. | Handle qualified name ids.
| C++ | lgpl-2.1 | AltarBeastiful/qt-creator,colede/qtcreator,kuba1/qtcreator,xianian/qt-creator,amyvmiwei/qt-creator,omniacreator/qtcreator,syntheticpp/qt-creator,danimo/qt-creator,renatofilho/QtCreator,xianian/qt-creator,martyone/sailfish-qtcreator,hdweiss/qt-creator-visualizer,kuba1/qtcreator,richardmg/qtcreator,xianian/qt-creator,Dis... |
48a7c150fca9997999c3c10527e2d11da6d5c4b1 | lib/Target/X86/X86Subtarget.cpp | lib/Target/X86/X86Subtarget.cpp | //===-- X86Subtarget.cpp - X86 Subtarget Information ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- X86Subtarget.cpp - X86 Subtarget Information ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Delete X86JITInfo in the subtarget destructor. | Delete X86JITInfo in the subtarget destructor.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@210516 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPU... |
d1f76866fec725cbeccc28ab83ae871a53954346 | src/media/plugins/video/videoparser.cpp | src/media/plugins/video/videoparser.cpp | /****************************************************************************
This file is part of the QtMediaHub project on http://www.qtmediahub.com
Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).*
All rights reserved.
Contact: Girish Ramakrishnan girish@forwardbias.in
Contact: Nokia Corporatio... | /****************************************************************************
This file is part of the QtMediaHub project on http://www.qtmediahub.com
Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).*
All rights reserved.
Contact: Girish Ramakrishnan girish@forwardbias.in
Contact: Nokia Corporatio... | Add support for specifying additional video formats on the command line | Add support for specifying additional video formats on the command line
| C++ | bsd-3-clause | qtmediahub/sasquatch,qtmediahub/sasquatch,qtmediahub/sasquatch |
ab653fb1d2176a6202114ae6798cc9cb335843f5 | src/driver.cpp | src/driver.cpp | //=======================================================================
// Copyright (c) 2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================... | //=======================================================================
// Copyright (c) 2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================... | Integrate into asgard system | Integrate into asgard system
| C++ | mit | stephane-ly/asgard-rf-driver,wichtounet/asgard-rf-driver |
b05ac741e2e944e03ce68155fff931991eb21cde | BB10-Cordova/Template/plugin/src/blackberry10/native/src/template_js.cpp | BB10-Cordova/Template/plugin/src/blackberry10/native/src/template_js.cpp | /*
* Copyright (c) 2013 BlackBerry 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
*
* Unless required by applicable law or agr... | /*
* Copyright (c) 2013 BlackBerry 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
*
* Unless required by applicable law or agr... | Revert includes that were accidentally changed with another pull request | Revert includes that were accidentally changed with another pull request
| C++ | apache-2.0 | jcmurray/WebWorks-Community-APIs,Jayapraju/WebWorks-Community-APIs,timwindsor/WebWorks-Community-APIs,T-M-C/WebWorks-Community-APIs,T-M-C/WebWorks-Community-APIs,gamerDecathlete/WebWorks-Community-APIs,blackberry/WebWorks-Community-APIs,blackberry/WebWorks-Community-APIs,Makoz/WebWorks-Community-APIs,gamerDecathlete/We... |
720f723cc33abc3d827a11f0ed0c02ecc04e1070 | plugins/testplugin/testmain.cpp | plugins/testplugin/testmain.cpp |
#include "testplugin.h"
int main()
{
sgraph::sgmanager man;
std::vector<std::string> ac1streamsin;
std::vector<std::string> ac1streamsout;
ac1streamsout.push_back("stream1");
std::vector<std::string> ac2streamsin;
std::vector<std::string> ac2streamsout;
ac2streamsin.push_back("stream1");
ac2streamsout.pu... |
#include "testplugin.h"
int main()
{
sgraph::sgmanager man;
std::vector<std::string> ac1streamsin;
std::vector<std::string> ac1streamsout;
ac1streamsout.push_back("stream1");
std::vector<std::string> ac2streamsin;
std::vector<std::string> ac2streamsout;
ac2streamsin.push_back("stream1");
ac2streamsout.pu... | update testmain with parallelized example | update testmain with parallelized example
| C++ | bsd-3-clause | devkral/simplegraph |
41b56f20b853c12a944da87ee0dddce77247f561 | src/modules/mavlink/streams/RAW_RPM.hpp | src/modules/mavlink/streams/RAW_RPM.hpp | /****************************************************************************
*
* Copyright (c) 2020 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. Redistri... | /****************************************************************************
*
* Copyright (c) 2020 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. Redistri... | fix raw rpm message size | mavlink_messages: fix raw rpm message size
| C++ | bsd-3-clause | krbeverx/Firmware,acfloria/Firmware,krbeverx/Firmware,acfloria/Firmware,acfloria/Firmware,acfloria/Firmware,krbeverx/Firmware,acfloria/Firmware,krbeverx/Firmware,krbeverx/Firmware,krbeverx/Firmware,acfloria/Firmware,krbeverx/Firmware,acfloria/Firmware |
a96501a26ac01a69ec901631227ed32f32af69fc | src/engine.cpp | src/engine.cpp | /*
* Copyright 2018 Andrei Pangin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | /*
* Copyright 2018 Andrei Pangin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | Enable native stacks for non-signal events, e.g. lock profiling | Enable native stacks for non-signal events, e.g. lock profiling
| C++ | apache-2.0 | apangin/async-profiler,apangin/async-profiler,jvm-profiling-tools/async-profiler,apangin/async-profiler,jvm-profiling-tools/async-profiler,jvm-profiling-tools/async-profiler,jvm-profiling-tools/async-profiler,jvm-profiling-tools/async-profiler,apangin/async-profiler |
782ae6cbaf5f70b6d8332a0fe81849c294387c7d | Modules/Applications/AppClassification/app/otbPolygonClassStatistics.cxx | Modules/Applications/AppClassification/app/otbPolygonClassStatistics.cxx | /*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | /*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | use analyze instead of analyse (more coherent with itk/otb code) | DOC: use analyze instead of analyse (more coherent with itk/otb code)
| C++ | apache-2.0 | orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB |
1dc9c485373ecdc9311eb3a5a915fa659b72ee76 | firmware/weather.cpp | firmware/weather.cpp | # include "weather.h"
# include <application.h>
WeatherData weather; // creates weather object
void WeatherData :: message(int data) // this is just for testing, can be removed later
{
Serial.print("Timestamp: "); Serial.println(_weatherTime);
Serial.print("Temp (F): "); Serial.println(_greenhouseTemp);
Serial... | # include "weather.h"
# include <application.h>
WeatherData weatherstation; // creates weather object
void WeatherData :: message(int data) // this is just for testing, can be removed later
{
Serial.print("Timestamp: "); Serial.println(_weatherTime);
Serial.print("Temp (F): "); Serial.println(_greenhouseTemp);
... | Update weather.cpp | Update weather.cpp | C++ | mit | geoffsharris/weather |
7d1805889dfd5585c318c9ad6e0fae3d493eb43f | src/fslock.cpp | src/fslock.cpp | #include "fslock.h"
#include <cerrno>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include "logger.h"
namespace newsboat {
void remove_lock(const std::string& lock_filepath)
{
::unlink(lock_filepath.c_str());
LOG(Level::DEBUG, "FsLock: removed lockfile %s", lock_filepath);
}
... | #include "fslock.h"
#include <cerrno>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include "logger.h"
namespace newsboat {
void remove_lock(const std::string& lock_filepath)
{
::unlink(lock_filepath.c_str());
LOG(Level::DEBUG, "FsLock: removed lockfile %s", lock_filepath);
}
... | Make the code more obvious | Make the code more obvious
Problem spotted by PVS Studio.
| C++ | mit | newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat |
49f49fa7835fcc87a62dc783e049746829abb519 | loom-bit/loom.cpp | loom-bit/loom.cpp | #define _REENTRANT
#include <cassert>
#include <signal.h>
#include <sys/prctl.h>
#include <pthread.h>
#include <sys/time.h>
#include <ctime>
#include "sync.h"
#include "loom.h"
#include "daemon.h"
#include "fixes.h"
using namespace std;
spin_rwlock_t updating_nthreads;
volatile int in_atomic_region;
atomic_t execu... | #define _REENTRANT
#include <cassert>
#include <signal.h>
#include <sys/prctl.h>
#include <pthread.h>
#include <sys/time.h>
#include <ctime>
#include "sync.h"
#include "loom.h"
#include "daemon.h"
#include "fixes.h"
using namespace std;
spin_rwlock_t updating_nthreads;
volatile int in_atomic_region;
atomic_t execu... | remove redundant blank lines | remove redundant blank lines
| C++ | bsd-3-clause | wujingyue/loom,wujingyue/loom,wujingyue/loom |
f88fd3b9bec33a60acce0ec507f0ff3addb9a861 | lib/primesieve/src/iterator.cpp | lib/primesieve/src/iterator.cpp | ///
/// @file iterator.cpp
///
/// Copyright (C) 2022 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/iterator.hpp>
#include <primesieve/IteratorHelper.hpp>
#include <primesieve/PrimeGenerator.hp... | ///
/// @file iterator.cpp
///
/// Copyright (C) 2022 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/iterator.hpp>
#include <primesieve/IteratorHelper.hpp>
#include <primesieve/PrimeGenerator.hp... | Improve constructor | Improve constructor
| C++ | bsd-2-clause | kimwalisch/primecount,kimwalisch/primecount,kimwalisch/primecount |
34eab6738cea227245355544bcc542a7bfd06f7c | src/systeminfo/linux/qscreensaver_mir.cpp | src/systeminfo/linux/qscreensaver_mir.cpp | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtSystems module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usag... | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtSystems module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usag... | Fix warnings from use of the deprecated c string to QString conversion. | Fix warnings from use of the deprecated c string to QString conversion.
Change-Id: I5bea2701cf964648ba7a65b881c8f01ad499aeb6
Reviewed-by: Eskil Abrahamsen Blomfeldt <e4034124b095075783ce739a2d1c68c0d66fa1fd@theqtcompany.com>
| C++ | lgpl-2.1 | qtproject/qtsystems,qtproject/qtsystems |
05a5a8ad752c5256c72c05a5f24282bfd71e2efa | apps/HelloSocket/hello_socket.cc | apps/HelloSocket/hello_socket.cc | #include "third_party/freertos_kernel/include/FreeRTOS.h"
#include "third_party/freertos_kernel/include/task.h"
#include "third_party/nxp/rt1176-sdk/middleware/lwip/src/include/lwip/sockets.h"
#include <cstdio>
extern "C" void app_main(void *param) {
printf("Hello socket.\r\n");
int listening_socket = socket... | #include <cstdio>
#include "third_party/freertos_kernel/include/FreeRTOS.h"
#include "third_party/freertos_kernel/include/task.h"
#include "third_party/nxp/rt1176-sdk/middleware/lwip/src/include/lwip/sockets.h"
extern "C" void app_main(void* param) {
printf("Hello socket.\r\n");
int listening_socket = socket... | Format HelloSocket app | Format HelloSocket app
Change-Id: I542e7d96b2424899d9eb3b24996fd73dde0189e8
GitOrigin-RevId: a8872b6fbcd9787b6deaf8b509b28fd96968507d
| C++ | apache-2.0 | google-coral/coralmicro,google-coral/coralmicro,google-coral/coralmicro,google-coral/coralmicro,google-coral/coralmicro |
fa39c371bb97119065632a14daadd13f74ce20ac | src/test/fuzz/script.cpp | src/test/fuzz/script.cpp | // Copyright (c) 2019 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 <chainparams.h>
#include <compressor.h>
#include <core_io.h>
#include <core_memusage.h>
#include <policy/policy.h>
#inclu... | // Copyright (c) 2019 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 <chainparams.h>
#include <compressor.h>
#include <core_io.h>
#include <core_memusage.h>
#include <policy/policy.h>
#inclu... | Remove unit test from fuzzing harness | tests: Remove unit test from fuzzing harness
Former-commit-id: ec73b9449a750fb06e31dd25601810e42d62eb09 | C++ | mit | syscoin/syscoin2,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin2,syscoin/syscoin2,syscoin/syscoin2,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin2,syscoin/syscoin,syscoin/syscoin2,syscoin/syscoin |
fbe8851ba2f654190069e511c2a061b36c268cdd | arangod/Utils/AqlTransaction.cpp | arangod/Utils/AqlTransaction.cpp | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | comment out waiting for now | comment out waiting for now
| C++ | apache-2.0 | joerg84/arangodb,graetzer/arangodb,arangodb/arangodb,arangodb/arangodb,baslr/ArangoDB,graetzer/arangodb,hkernbach/arangodb,arangodb/arangodb,fceller/arangodb,hkernbach/arangodb,wiltonlazary/arangodb,Simran-B/arangodb,fceller/arangodb,hkernbach/arangodb,baslr/ArangoDB,joerg84/arangodb,wiltonlazary/arangodb,fceller/arang... |
94eb44901dd0e6a727021d27fd47267a57781fa7 | arangod/V8Server/V8Traverser.cpp | arangod/V8Server/V8Traverser.cpp | ////////////////////////////////////////////////////////////////////////////////
/// @brief V8 Traverser
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014-2015 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "Licen... | ////////////////////////////////////////////////////////////////////////////////
/// @brief V8 Traverser
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014-2015 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "Licen... | Correct edge expander. | Correct edge expander.
| C++ | apache-2.0 | abaditsegay/arangodb,pekeler/arangodb,nvoron23/arangodb,mujiansu/arangodb,razvanphp/arangodb,nekulin/arangodb,mujiansu/arangodb,razvanphp/arangodb,aurelijusb/arangodb,pekeler/arangodb,aurelijusb/arangodb,nekulin/arangodb,aurelijusb/arangodb,abaditsegay/arangodb,aurelijusb/arangodb,razvanphp/arangodb,razvanphp/arangodb,... |
bfd407e14bba593ae88121c9a8bec57f1f4ad928 | src/tests/type_tests.cpp | src/tests/type_tests.cpp | // Copyright 2008 Paul Hodge
#include "common_headers.h"
#include "builtin_types.h"
#include "branch.h"
#include "builtins.h"
#include "runtime.h"
#include "testing.h"
#include "type.h"
namespace circa {
namespace type_tests {
void compound_types()
{
Branch branch;
Term* MyType = branch.eval("type MyType {... | // Copyright 2008 Paul Hodge
#include "common_headers.h"
#include "builtin_types.h"
#include "branch.h"
#include "builtins.h"
#include "runtime.h"
#include "testing.h"
#include "type.h"
namespace circa {
namespace type_tests {
void compound_types()
{
Branch branch;
Term* MyType = branch.eval("type MyType {... | Add a little to type tests | Add a little to type tests
| C++ | mit | andyfischer/circa,andyfischer/circa,andyfischer/circa,andyfischer/circa |
e194168cefebbb2c666093c92c594fd804bd19b1 | chrome/browser/chromeos/notifications/balloon_collection_impl.cc | chrome/browser/chromeos/notifications/balloon_collection_impl.cc | // 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 "chrome/browser/chromeos/notifications/balloon_collection_impl.h"
#include <algorithm>
#include "base/logging.h"
#include "chrome/browser/c... | // 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 "chrome/browser/chromeos/notifications/balloon_collection_impl.h"
#include <algorithm>
#include "base/logging.h"
#include "chrome/browser/c... | Call on_collection_changed_callback_ on chromeos | Call on_collection_changed_callback_ on chromeos
BUG=81624,chromium-os:15176
TEST=pyauto notification will pass
Review URL: http://codereview.chromium.org/7146027
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@89368 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | adobe/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,gavinp... |
eae7f109065e0a7b67dc7a8696a79974bea22621 | map_difference.hh | map_difference.hh | /*
* 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 option) any later... | /*
* 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 option) any later... | Allow on unordered_map | map_difference: Allow on unordered_map
This patch changes the map_difference interface so difference()
can be called on on unordered_maps.
Signed-off-by: Duarte Nunes <a60e8b7496f7715d71354fe4c06dd24017025bf1@scylladb.com>
| C++ | agpl-3.0 | kjniemi/scylla,avikivity/scylla,scylladb/scylla,kjniemi/scylla,raphaelsc/scylla,duarten/scylla,raphaelsc/scylla,scylladb/scylla,avikivity/scylla,duarten/scylla,scylladb/scylla,kjniemi/scylla,scylladb/scylla,avikivity/scylla,duarten/scylla,raphaelsc/scylla |
d57e789c662eb771d0e1f52361f0c3e5e41dd511 | akonadi_next/amazingcompleter.cpp | akonadi_next/amazingcompleter.cpp | /*
Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
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) any later ver... | /*
Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
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) any later ver... | add some Q_UNUSED( ) | add some Q_UNUSED( )
svn path=/trunk/KDE/kdepim/akonadi/akonadi_next/; revision=1054802
| C++ | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
8387b8af3ce72d707a182b41211243a4aa493360 | backends/jitrt/lib/custom_call.cc | backends/jitrt/lib/custom_call.cc | /*
* Copyright 2022 The TensorFlow Runtime Authors
*
* 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 applicab... | /*
* Copyright 2022 The TensorFlow Runtime Authors
*
* 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 applicab... | Optimize FlatMemrefView decoding | [tfrt:jitrt] Optimize FlatMemrefView decoding
PiperOrigin-RevId: 447078534
| C++ | apache-2.0 | tensorflow/runtime,tensorflow/runtime,tensorflow/runtime,tensorflow/runtime |
5b08728dbb18938fd250ea4f082c99ca18f76d0d | libcaf_core/test/cow_string.cpp | libcaf_core/test/cow_string.cpp | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#define CAF_SUITE cow_string
#include "caf/cow_string.hpp"
#include "core-test.hpp"
usi... | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#define CAF_SUITE cow_string
#include "caf/cow_string.hpp"
#include "core-test.hpp"
usi... | Fix formatting | Fix formatting
| C++ | bsd-3-clause | DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework |
f5bdd93f9ca3fe7cd212f56f805ca2e80c250616 | test/asan/TestCases/Linux/odr-violation.cc | test/asan/TestCases/Linux/odr-violation.cc | // FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316
// XFAIL: android
//
// We use fast_unwind_on_malloc=0 to have full unwinding even w/o frame
// pointers. This setting is not on by default because it's too expensive.
//
// Different size: detect a bug if detect_odr_violation>=1
// RUN: %clangx... | // FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316
// XFAIL: android
//
// We use fast_unwind_on_malloc=0 to have full unwinding even w/o frame
// pointers. This setting is not on by default because it's too expensive.
//
// Different size: detect a bug if detect_odr_violation>=1
// RUN: %clangx... | Split -asan-use-private-alias to -asan-use-odr-indicator | [asan] Split -asan-use-private-alias to -asan-use-odr-indicator
Reviewers: eugenis, m.ostapenko, ygribov
Subscribers: mehdi_amini, kubamracek, hiraditya, steven_wu, dexonsmith, llvm-commits
Differential Revision: https://reviews.llvm.org/D55156
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@348316 91177308-0d... | C++ | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
e1d290331e638a4bcefe7a0e7edd54556a97f6c7 | ch15/ex15.1.2.3/quote.cpp | ch15/ex15.1.2.3/quote.cpp | #include "quote.h"
| #include "Quote.h"
| Update quote.cpp | Update quote.cpp | C++ | cc0-1.0 | zhangzhizhongz3/CppPrimer,zhangzhizhongz3/CppPrimer |
90c1f40171baf169e51c28faf625efbe9da86f5e | src/xalanc/Include/XalanMemMgrAutoPtr.hpp | src/xalanc/Include/XalanMemMgrAutoPtr.hpp | /*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | /*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Fix for Jira issue XALANC-466. | Fix for Jira issue XALANC-466.
| C++ | apache-2.0 | apache/xalan-c,apache/xalan-c,apache/xalan-c,apache/xalan-c |
1f4b5efd5790b7f6ef8d931abe1d98a824fc86d9 | auditd/tests/auditconfig_test.cc | auditd/tests/auditconfig_test.cc | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | Remove compile warnings on WIN32 | Remove compile warnings on WIN32
Change-Id: I7ff72ec03212f932a6e0da83d37a0b9fb454658a
Reviewed-on: http://review.couchbase.org/52906
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
| C++ | bsd-3-clause | daverigby/memcached,couchbase/memcached,couchbase/memcached,cloudrain21/memcached-1,daverigby/kv_engine,couchbase/memcached,daverigby/kv_engine,cloudrain21/memcached-1,owendCB/memcached,owendCB/memcached,cloudrain21/memcached-1,daverigby/memcached,owendCB/memcached,daverigby/memcached,daverigby/kv_engine,couchbase/memc... |
7c7338e7266fb3c60f9203518f9bb66b84f82814 | chrome/common/net/gaia/oauth2_access_token_fetcher_unittest.cc | chrome/common/net/gaia/oauth2_access_token_fetcher_unittest.cc | // 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.
//
// A complete set of unit tests for OAuth2AccessTokenFetcher.
#include <string>
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"... | // 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.
//
// A complete set of unit tests for OAuth2AccessTokenFetcher.
#include <string>
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"... | Mark OAuth2AccessTokenFetcherTest.GetAccessTokenRequestFailure as flaky, currently has a failure rate of 14%. | Mark OAuth2AccessTokenFetcherTest.GetAccessTokenRequestFailure as flaky, currently has a failure rate of 14%.
TBR=markmentovai
BUG=113446
Review URL: https://chromiumcodereview.appspot.com/9369036
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@121260 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | dednal/chromium.src,axinging/chromium-crosswalk,keishi/chromium,keishi/chromium,dushu1203/chromium.src,ChromiumWebApps/chromium,anirudhSK/chromium,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,hujiajie/pa-chromium... |
9ed287e0398c2582805345c303bffbbb63c236ec | src/util/string_util.cpp | src/util/string_util.cpp | /*
* Copyright 2006-2008 The FLWOR 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 required by applicable law... | /*
* Copyright 2006-2008 The FLWOR 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 required by applicable law... | Put string_util back. | Put string_util back.
| C++ | apache-2.0 | bgarrels/zorba,bgarrels/zorba,28msec/zorba,cezarfx/zorba,28msec/zorba,cezarfx/zorba,bgarrels/zorba,cezarfx/zorba,bgarrels/zorba,cezarfx/zorba,28msec/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,28msec/zorba,bgarrels/zorba,bgarrels/zorba,28msec/zorba,bgarrels/zorba,cezarfx/zorba,cezarfx/zorba,28msec/zorba,bgarrels/zor... |
a4cf81ba5a7e6de436db66b985522bf3197f8fc0 | test/net/integration/websocket/service.cpp | test/net/integration/websocket/service.cpp | #include <service>
#include <net/interfaces>
#include <net/ws/connector.hpp>
#include <http>
#include <deque>
#include <kernel/crash_context.hpp>
struct alignas(SMP_ALIGN) HTTP_server
{
http::Server* server = nullptr;
net::tcp::buffer_t buffer = nullptr;
net::WS_server_connector* ws_serve = nullptr;
// we... | #include <service>
#include <net/interfaces>
#include <net/ws/connector.hpp>
#include <http>
#include <deque>
#include <kernel/crash_context.hpp>
struct HTTP_server
{
http::Server* server = nullptr;
net::tcp::buffer_t buffer = nullptr;
net::WS_server_connector* ws_serve = nullptr;
// websocket clients
s... | Fix the WebSockets test | test: Fix the WebSockets test
| C++ | apache-2.0 | hioa-cs/IncludeOS,hioa-cs/IncludeOS,hioa-cs/IncludeOS,hioa-cs/IncludeOS,hioa-cs/IncludeOS |
4f81569cbff4d76f3a3d13d30e4bb81d2f97e746 | test/net/integration/websocket/service.cpp | test/net/integration/websocket/service.cpp | #include <service>
#include <net/inet4>
#include <net/ws/connector.hpp>
#include <http>
#include <crash>
#include <deque>
struct alignas(SMP_ALIGN) HTTP_server
{
http::Server* server = nullptr;
net::tcp::buffer_t buffer = nullptr;
net::WS_server_connector* ws_serve = nullptr;
// websocket clients
std::d... | #include <service>
#include <net/inet4>
#include <net/ws/connector.hpp>
#include <http>
#include <crash>
#include <deque>
struct alignas(SMP_ALIGN) HTTP_server
{
http::Server* server = nullptr;
net::tcp::buffer_t buffer = nullptr;
net::WS_server_connector* ws_serve = nullptr;
// websocket clients
std::d... | Fix websocket test, use SMP::Array | test: Fix websocket test, use SMP::Array
| C++ | apache-2.0 | AndreasAakesson/IncludeOS,hioa-cs/IncludeOS,AndreasAakesson/IncludeOS,hioa-cs/IncludeOS,alfred-bratterud/IncludeOS,alfred-bratterud/IncludeOS,alfred-bratterud/IncludeOS,AnnikaH/IncludeOS,alfred-bratterud/IncludeOS,hioa-cs/IncludeOS,mnordsletten/IncludeOS,AndreasAakesson/IncludeOS,hioa-cs/IncludeOS,AnnikaH/IncludeOS,mno... |
db654c5451714fcf3f2b7b2deec259cac26c5b60 | src/utils/VoxelUtils.cpp | src/utils/VoxelUtils.cpp | //Copyright (c) 2021 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "VoxelUtils.h"
#include "utils/polygonUtils.h"
namespace cura
{
DilationKernel::DilationKernel(GridPoint3 kernel_size, DilationKernel::Type type)
: kernel_size(kernel_size)
, type(type)
{
coord_t mult ... | //Copyright (c) 2021 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "VoxelUtils.h"
#include "utils/polygonUtils.h"
namespace cura
{
DilationKernel::DilationKernel(GridPoint3 kernel_size, DilationKernel::Type type)
: kernel_size(kernel_size)
, type(type)
{
coord_t mult ... | fix robustness of walkLine | fix robustness of walkLine
In some cases where the line goes exactly through the crosssection of 4/8 cells,
the end_cell wasn't reached.
The new implementation is more robust.
| C++ | agpl-3.0 | Ultimaker/CuraEngine,Ultimaker/CuraEngine |
e4bdec22965e5c6696dc00261385ee9016199dd2 | libkdepim/kincidencechooser.cpp | libkdepim/kincidencechooser.cpp | /*
This file is part of libkdepim.
Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org>
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; either version 2 of the License, or
(at your option... | /*
This file is part of libkdepim.
Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org>
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; either version 2 of the License, or
(at your option... | Fix layout. | Fix layout.
svn path=/trunk/KDE/kdepim/; revision=788090
| C++ | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi |
c9a76d7a54666ca4e68cd168863fb21ee48f3236 | proto/p4info/convert_p4info.cpp | proto/p4info/convert_p4info.cpp | /* Copyright 2013-present Barefoot Networks, 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 required by applicable la... | /* Copyright 2013-present Barefoot Networks, 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 required by applicable la... | Support Protobuf text format in P4Info conversion tool | Support Protobuf text format in P4Info conversion tool
| C++ | apache-2.0 | p4lang/PI,p4lang/PI,p4lang/PI,p4lang/PI |
d09b6a481012389d971bda2bd41251276a7ab893 | test/standalone/font_registration_test.cpp | test/standalone/font_registration_test.cpp | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <mapnik/font_engine_freetype.hpp>
#include <mapnik/util/fs.hpp>
#include <mapnik/map.hpp>
#include <mapnik/load_map.hpp>
#include <mapnik/debug.hpp>
#include <iostream>
#include <vector>
#include <algorithm>
TEST_CASE("font") {
SECTION("registration") {
tr... | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <mapnik/font_engine_freetype.hpp>
#include <mapnik/util/fs.hpp>
#include <mapnik/map.hpp>
#include <mapnik/load_map.hpp>
#include <mapnik/debug.hpp>
#include <iostream>
#include <vector>
#include <algorithm>
TEST_CASE("font") {
SECTION("registration") {
tr... | update font_registration test | update font_registration test
| C++ | lgpl-2.1 | mapycz/mapnik,naturalatlas/mapnik,lightmare/mapnik,naturalatlas/mapnik,mapnik/mapnik,lightmare/mapnik,tomhughes/mapnik,mapnik/mapnik,zerebubuth/mapnik,naturalatlas/mapnik,tomhughes/mapnik,zerebubuth/mapnik,tomhughes/mapnik,mapnik/mapnik,mapycz/mapnik,zerebubuth/mapnik,mapycz/mapnik,naturalatlas/mapnik,CartoDB/mapnik,Ca... |
edf9bd5bcfc035521123484c966512a06f91b79a | apps/hello_ssp/src/hello_ssp.cpp | apps/hello_ssp/src/hello_ssp.cpp | #include <petuum_ps_common/include/petuum_ps.hpp>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <thread>
#include <cstdint>
#include <random>
#include <chrono>
DEFINE_string(hostfile, "", "Path to file containing server ip:port.");
DEFINE_int32(num_clients, 1, "# of nodes");
DEFINE_int32(client_id, 0, ... | #include <petuum_ps_common/include/petuum_ps.hpp>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <thread>
#include <cstdint>
#include <random>
#include <chrono>
DEFINE_string(hostfile, "", "Path to file containing server ip:port.");
DEFINE_int32(num_clients, 1, "# of nodes");
DEFINE_int32(client_id, 0, ... | add bootstrap | add bootstrap
| C++ | bsd-3-clause | daiwei89/wdai_petuum_public,daiwei89/wdai_petuum_public,daiwei89/wdai_petuum_public,daiwei89/wdai_petuum_public |
c99f0c1adbcd2090d36b353cd3370420292c92fc | libnanocv/optimize/batch_gd.hpp | libnanocv/optimize/batch_gd.hpp | #pragma once
#include "batch_params.hpp"
#include "ls_armijo.hpp"
#include <cassert>
namespace ncv
{
namespace optimize
{
///
/// \brief gradient descent
///
template
<
typename tproblem ... | #pragma once
#include "batch_params.hpp"
#include "ls_armijo.hpp"
#include <cassert>
namespace ncv
{
namespace optimize
{
///
/// \brief gradient descent
///
template
<
typename tproblem ... | make line-search parameters explicit for GD | make line-search parameters explicit for GD
| C++ | mit | accosmin/nanocv,accosmin/nanocv,accosmin/nanocv,accosmin/nano,accosmin/nano,accosmin/nano |
d3b3db011513f2ad391d17fd2088285d31f1aa46 | test/test_early_wamp_session_destructor.cc | test/test_early_wamp_session_destructor.cc | /*
* Copyright (c) 2017 Darren Smith
*
* wampcc is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include "test_common.h"
#include "mini_test.h"
using namespace wampcc;
using namespace std;
int global_port;
int global_loops = 100;
void... | /*
* Copyright (c) 2017 Darren Smith
*
* wampcc is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include "test_common.h"
#include "mini_test.h"
using namespace wampcc;
using namespace std;
int global_port;
int global_loops = 100;
void... | reduce number of loops | reduce number of loops
| C++ | mit | darrenjs/wampcc,darrenjs/wampcc,darrenjs/wampcc,darrenjs/wampcc,darrenjs/wampcc |
4fd28fff8c873bd4e236cfa4614b43897ad264ec | test/dynalloc.cpp | test/dynalloc.cpp | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen 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 Soft... | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen 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 Soft... | disable testing of aligned members when aligned static allocation is not enabled (e.g., for gcc 3.4) | disable testing of aligned members when aligned static allocation is not enabled (e.g., for gcc 3.4)
| C++ | bsd-3-clause | pthulhu/eigen,pthulhu/eigen,pthulhu/eigen,cjntaylor/eigen,pthulhu/eigen,cjntaylor/eigen,cjntaylor/eigen,cjntaylor/eigen,pthulhu/eigen |
b2827fcc56f0ddca96a9459a89e67c789d6bf6c2 | testat-1/sevensegment/src/sevensegment.cpp | testat-1/sevensegment/src/sevensegment.cpp | #include "sevensegment.h"
#include <ostream>
#include <vector>
#include <string>
#include <algorithm>
#include <iterator>
#include <stdexcept>
namespace sevensegment {
using digit = std::vector<std::string>;
const std::vector<digit> digits {
{ " - ",
"| |",
" ",
"| |",
" - " }, // 0
{ " ",
... | #include "sevensegment.h"
#include <ostream>
#include <vector>
#include <string>
#include <algorithm>
#include <iterator>
#include <stdexcept>
namespace sevensegment {
using digit = std::vector<std::string>;
const std::vector<digit> digits {
{ " - ",
"| |",
" ",
"| |",
" - " }, // 0
{ " ",
... | simplify declaration using type alias | simplify declaration using type alias
| C++ | mit | paddor/cpp-exercises,paddor/prog3,paddor/prog3,paddor/prog3,paddor/cpp-exercises,paddor/cpp-exercises |
8270f9299fd8d3dbf658200f7f43bede170bfe71 | src/json_ui.cc | src/json_ui.cc | #include "json_ui.hh"
#include "containers.hh"
#include "display_buffer.hh"
#include "keys.hh"
#include "file.hh"
#include "event_manager.hh"
#include "value.hh"
#include "unit_tests.hh"
#include <utility>
#include <unistd.h>
namespace Kakoune
{
template<typename T>
String to_json(ArrayView<const T> array)
{
S... | #include "json_ui.hh"
#include "containers.hh"
#include "display_buffer.hh"
#include "keys.hh"
#include "file.hh"
#include "event_manager.hh"
#include "value.hh"
#include "unit_tests.hh"
#include <utility>
#include <unistd.h>
namespace Kakoune
{
template<typename T>
String to_json(ArrayView<const T> array)
{
S... | Improve robustness of json parsing and execution | Improve robustness of json parsing and execution
Fixes #720
| C++ | unlicense | occivink/kakoune,casimir/kakoune,mawww/kakoune,alexherbo2/kakoune,jjthrash/kakoune,Somasis/kakoune,jkonecny12/kakoune,alexherbo2/kakoune,jjthrash/kakoune,ekie/kakoune,danr/kakoune,mawww/kakoune,Somasis/kakoune,jkonecny12/kakoune,casimir/kakoune,flavius/kakoune,flavius/kakoune,danr/kakoune,danr/kakoune,mawww/kakoune,fla... |
d264263e414b7ae5be4cc1cbb4080d9048718ee6 | libvast/test/system/archive.cpp | libvast/test/system/archive.cpp | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | Use new CAF fixture magic for simplification | Use new CAF fixture magic for simplification
| C++ | bsd-3-clause | mavam/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,vast-io/vast,vast-io/vast,mavam/vast,mavam/vast |
25530989b0f2f9ca857530830dcab8257d885177 | gridpath/scenario.cc | gridpath/scenario.cc | #include "scenario.hpp"
#include "../utils/utils.hpp"
#include "../search/main.hpp"
#include <iostream>
#include <cmath>
static const float Epsilon = 0.001;
Scenario::Scenario(int ac, char *av[]) :
argc(ac), argv(av), maproot("./"), lastmap(NULL),
entry(-1), nentries(0) {
for (int i = 0; i < argc; i++) {
if (s... | #include "scenario.hpp"
#include "../utils/utils.hpp"
#include "../search/main.hpp"
#include <iostream>
#include <cmath>
static const float Epsilon = 0.001;
Scenario::Scenario(int ac, char *av[]) :
argc(ac), argv(av), maproot("./"), lastmap(NULL),
entry(-1), nentries(0) {
for (int i = 0; i < argc; i++) {
if (s... | Handle no-solution scenario entries. | Handle no-solution scenario entries.
| C++ | mit | skiesel/search,skiesel/search,eaburns/search,eaburns/search,skiesel/search,eaburns/search |
4081fc39fe99f6867407e04aa1c42400c4c04b74 | stan/math/prim/mat/fun/divide_columns.hpp | stan/math/prim/mat/fun/divide_columns.hpp | #ifndef STAN_MATH_PRIM_MAT_FUN_DIVIDE_COLUMNS_HPP
#define STAN_MATH_PRIM_MAT_FUN_DIVIDE_COLUMNS_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/scal/fun/divide.hpp>
#include <stan/math/prim/scal/meta/scalar_type.hpp>
namespace stan {
namespace math {
/**
* Takes Stan data type vector[n] x[D... | #ifndef STAN_MATH_PRIM_MAT_FUN_DIVIDE_COLUMNS_HPP
#define STAN_MATH_PRIM_MAT_FUN_DIVIDE_COLUMNS_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/scal/fun/divide.hpp>
#include <stan/math/prim/scal/meta/scalar_type.hpp>
#include <vector>
namespace stan {
namespace math {
/**
* Takes Stan data ... | Update divide_columns.hpp | Update divide_columns.hpp | C++ | bsd-3-clause | stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math |
4532594afbce5fa9cd29c9fbb663a5b112188fec | stan/math/prim/prob/hmm_marginal_lpdf.hpp | stan/math/prim/prob/hmm_marginal_lpdf.hpp | #ifndef STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP
#define STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/row.hpp>
#include <stan/math/prim/fun/col.hpp>
#include <stan/math/prim/fun/transpose.hpp>
#include <stan/math/prim/fun/exp.h... | #ifndef STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP
#define STAN_MATH_REV_FUN_HMM_MARGINAL_LPDF_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/row.hpp>
#include <stan/math/prim/fun/col.hpp>
#include <stan/math/prim/fun/transpose.hpp>
#include <stan/math/prim/fun/exp.h... | move norm_norm | move norm_norm
| C++ | bsd-3-clause | stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math,stan-dev/math |
6ab326a8f0c95b6427d900ca4a076abcd01eda0c | src/laszip.hpp | src/laszip.hpp | /*
===============================================================================
FILE: laszip.hpp
CONTENTS:
Contains LASitem and LASchunk structs as well as the IDs of the currently
supported entropy coding scheme
PROGRAMMERS:
martin.isenburg@rapidlasso.com - http://rapidlasso.co... | /*
===============================================================================
FILE: laszip.hpp
CONTENTS:
Contains LASitem and LASchunk structs as well as the IDs of the currently
supported entropy coding scheme
PROGRAMMERS:
martin.isenburg@rapidlasso.com - http://rapidlasso.co... | add unicode support for Windows | add unicode support for Windows
| C++ | unknown | hobu/LASzip,hobu/LASzip,hobu/LASzip,LASzip/LASzip,LASzip/LASzip,LASzip/LASzip |
8ffbeb18cd3bcc61860e557ae7c681a4c67d9808 | src/zerotime_manager.cpp | src/zerotime_manager.cpp | /*
* Copyright (c) 2013-2015 John Connor (BM-NC49AxAjcqVcF5jNPu85Rb8MJ2d9JqZt)
*
* This file is part of vanillacoin.
*
* vanillacoin 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... | /*
* Copyright (c) 2013-2015 John Connor (BM-NC49AxAjcqVcF5jNPu85Rb8MJ2d9JqZt)
*
* This file is part of vanillacoin.
*
* vanillacoin 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... | remove warning | remove warning
| C++ | agpl-3.0 | sum01/vcash,xCoreDev/vanillacoin,xCoreDev/vcash,fczuardi/vanillacoin,xCoreDev/vcash,openvcash/vcash,sum01/vcash,openvcash/vcash,xCoreDev/vanillacoin,fczuardi/vanillacoin |
5ee9e448fce04de171cb07787887ed41088537bb | thrift/conformance/data/ValueGenerator.cpp | thrift/conformance/data/ValueGenerator.cpp | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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... | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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... | Add a few FP test cases | Add a few FP test cases
Summary: Add a few "interesting" FP test cases to the conformance test. The fmt_test_* are taken from {fmt} regression tests and may exercise some problematic paths in FP formatting code.
Reviewed By: Alfus
Differential Revision: D39043191
fbshipit-source-id: 63e3188c0f6d63f2b5e6badc82b5b163... | C++ | apache-2.0 | facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift |
d4d1d372972bb418c1f74f771b76f738f4652297 | src/logger.cpp | src/logger.cpp | #include <mlopen/logger.hpp>
#include <cstdlib>
namespace mlopen {
bool IsLogging()
{
char* cs = std::getenv("MIOPEN_ENABLE_LOGGING");
return cs != nullptr && cs != std::string("0");
}
}
| #include <mlopen/logger.hpp>
#include <cstdlib>
namespace mlopen {
bool IsLogging()
{
char* cs = std::getenv("MIOPEN_ENABLE_LOGGING");
return cs != nullptr && cs != std::string("0");
}
} // namespace mlopen
| Fix tidy check | Fix tidy check
| C++ | mit | ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen |
f0866ff2ab237c52dc30ce8ac28204c1b8f8a570 | source/Plugins/ExpressionParser/Swift/SwiftSILManipulator.cpp | source/Plugins/ExpressionParser/Swift/SwiftSILManipulator.cpp | //===-- SwiftSILManipulator.cpp ---------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | //===-- SwiftSILManipulator.cpp ---------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | Update for Swift SE-0107: UnsafeRawPointer (#33) | Update for Swift SE-0107: UnsafeRawPointer (#33)
This is needed for:
commit 675cca18d7624297647ccb46193f675656092f99
Author: Andrew Trick <6050ac38e168b9c48bd260f485ec2f5d125e78d6@apple.com>
Date: Thu Jul 14 17:26:18 2016
Add an isStrict flag to SIL pointer_to_address.
Strict aliasing only applies t... | C++ | apache-2.0 | apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb |
c554e86c074e3602ba3999b366c5cf1008a570d7 | eval/src/vespa/eval/instruction/generic_concat.cpp | eval/src/vespa/eval/instruction/generic_concat.cpp | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "generic_concat.h"
#include "generic_join.h"
#include <vespa/eval/eval/value.h>
#include <vespa/eval/eval/wrap_param.h>
#include <vespa/vespalib/util/overload.h>
#include <vespa/vespalib/util/stash... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "generic_concat.h"
#include "generic_join.h"
#include <vespa/eval/eval/value.h>
#include <vespa/eval/eval/wrap_param.h>
#include <vespa/vespalib/util/overload.h>
#include <vespa/vespalib/util/stash... | use TypifyCellMeta in GenericConcat | use TypifyCellMeta in GenericConcat
| C++ | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
af7d875c27c349a13f457ca6bad6bcec078681b6 | helpers/MainLoop.cpp | helpers/MainLoop.cpp | #include <chrono>
#include "MainLoop.hpp"
#include "EntityManager.hpp"
#include "functions/Execute.hpp"
#include "Timer.hpp"
namespace kengine::MainLoop {
void run(EntityManager & em) {
auto start = std::chrono::system_clock::now();
auto end = std::chrono::system_clock::now();
while (em.running) {
const flo... | #include <chrono>
#include "MainLoop.hpp"
#include "EntityManager.hpp"
#include "functions/Execute.hpp"
namespace kengine::MainLoop {
void run(EntityManager & em) {
auto start = std::chrono::system_clock::now();
auto end = std::chrono::system_clock::now();
while (em.running) {
const float deltaTime = std::c... | remove unused include in MainLoop | remove unused include in MainLoop
| C++ | mit | phiste/kengine,phiste/kengine,phiste/kengine |
7418bc861f6a73faaeb0ca0e78638e633aee607f | helpers/d3d7size.hpp | helpers/d3d7size.hpp | /**************************************************************************
*
* Copyright 2015 VMware, Inc.
* All Rights Reserved.
*
* 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 wit... | /**************************************************************************
*
* Copyright 2015 VMware, Inc.
* All Rights Reserved.
*
* 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 wit... | Fix calculation of FVF texture coord size. | ddrawtrace: Fix calculation of FVF texture coord size.
| C++ | mit | schulmar/apitrace,schulmar/apitrace,EoD/apitrace,apitrace/apitrace,apitrace/apitrace,trtt/apitrace,trtt/apitrace,EoD/apitrace,schulmar/apitrace,apitrace/apitrace,EoD/apitrace,EoD/apitrace,trtt/apitrace,trtt/apitrace,schulmar/apitrace,EoD/apitrace,trtt/apitrace,apitrace/apitrace,schulmar/apitrace |
9df0e2d1f160980d2ae86ccd95f167e8dcb2ff43 | test/scan-test.cc | test/scan-test.cc | // Formatting library for C++ - scanning API proof of concept
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#include <array>
#include <climits>
#include "fmt/format.h"
#include "gmock.h"
#include "gtest-extra.h"
FMT_BEGIN_NAMESPACE
n... | // Formatting library for C++ - scanning API proof of concept
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#include <array>
#include <climits>
#include "fmt/format.h"
#include "gmock.h"
#include "gtest-extra.h"
FMT_BEGIN_NAMESPACE
n... | Implement string parsing | Implement string parsing
| C++ | bsd-2-clause | alabuzhev/fmt,cppformat/cppformat,alabuzhev/fmt,cppformat/cppformat,alabuzhev/fmt,cppformat/cppformat |
09ce5c70c41f0a3ff418b7b6cd521b0da881fd36 | src/netconf.cc | src/netconf.cc | // Copyright 2015 Toggl Desktop developers.
#include "../src/netconf.h"
#include <string>
#include <sstream>
#include "./https_client.h"
#include "Poco/Environment.h"
#include "Poco/Logger.h"
#include "Poco/Net/HTTPCredentials.h"
#include "Poco/Net/HTTPSClientSession.h"
#include "Poco/URI.h"
#include "Poco/UnicodeC... | // Copyright 2015 Toggl Desktop developers.
#include "../src/netconf.h"
#include <string>
#include <sstream>
#include "./https_client.h"
#include "Poco/Environment.h"
#include "Poco/Logger.h"
#include "Poco/Net/HTTPCredentials.h"
#include "Poco/Net/HTTPSClientSession.h"
#include "Poco/URI.h"
#include "Poco/UnicodeC... | fix cast warning (lib) | fix cast warning (lib)
| C++ | bsd-3-clause | codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop |
0a1d331483c8eb7b6952f5fb080b00a86dc8835b | telepathy-qml-lib/notificationmanager.cpp | telepathy-qml-lib/notificationmanager.cpp | /*
* Copyright 2011 Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#include "notificationmanager.h"
#include "settingshelper.h"
#include <QDebug>
#incl... | /*
* Copyright 2011 Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#include "notificationmanager.h"
#include "settingshelper.h"
#include <QDebug>
#incl... | Remove warning in switch | Remove warning in switch
| C++ | apache-2.0 | meego-tablet-ux/meego-app-im,meego-tablet-ux/meego-app-im |
ed5c768bc2810c43dbd92c727c33aa82e420d588 | test/test_info.cc | test/test_info.cc | #define BOOST_TEST_MODULE info
#include <boost/test/included/unit_test.hpp>
#include <mpl/mpl.hpp>
BOOST_AUTO_TEST_CASE(info) {
[[maybe_unused]] const mpl::communicator &comm_world{mpl::environment::comm_world()};
mpl::info info_1;
BOOST_TEST(info_1.size() == 0);
info_1.set("Douglas Adams", "The Hitchhiker's... | #define BOOST_TEST_MODULE info
#include <boost/test/included/unit_test.hpp>
#include <mpl/mpl.hpp>
BOOST_AUTO_TEST_CASE(info) {
[[maybe_unused]] const mpl::communicator &comm_world{mpl::environment::comm_world()};
mpl::info info_1;
BOOST_TEST(info_1.size() == 0);
info_1.set("Douglas Adams", "The Hitchhiker's... | extend test_info.cc | extend test_info.cc
| C++ | bsd-3-clause | rabauke/mpl |
f7c6d9ce6c82fb619a5c5e10a424c55c9bec8ae8 | test/test_utp.cpp | test/test_utp.cpp | /*
Copyright (c) 2008, 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, this list of conditions and the f... | /*
Copyright (c) 2008, 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, this list of conditions and the f... | make test_utp more likely to pass | make test_utp more likely to pass | C++ | bsd-3-clause | jpetso/libtorrent,jpetso/libtorrent,jpetso/libtorrent,jpetso/libtorrent |
2c382f53d4e63646b4ff0e1d83067e594c2ab51f | tensorflow/core/kernels/mkl_softmax_op.cc | tensorflow/core/kernels/mkl_softmax_op.cc | /* Copyright 2015 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 applicable law or a... | /* Copyright 2015 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 applicable law or a... | fix clang format | fix clang format
Change-Id: Iabc5524dc0858611d4a43b2f8992ec2f397d386e
| C++ | apache-2.0 | adit-chandra/tensorflow,ageron/tensorflow,aam-at/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,hfp/tensorflow-xsmm,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,jbedorf/tensorflow,jhseu/tensorflow,arborh/tensorflow,freedomtan/tensorflow,cxxgtxy/tensorflow,ar... |
f544094d5e1ee627ebd34542aead7bf1241fae19 | src/random.cpp | src/random.cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "random.h"
#include "crypto/sha512.h"
#include "support/cleanse.h"
#ifd... | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 "random.h"
#include "crypto/sha512.h"
#include "support/cleanse.h"
#ifd... | Use hardware timestamps in RNG seeding | Use hardware timestamps in RNG seeding
| C++ | mit | mruddy/bitcoin,sipsorcery/bitcoin,practicalswift/bitcoin,midnightmagic/bitcoin,trippysalmon/bitcoin,EthanHeilman/bitcoin,UFOCoins/ufo,sebrandon1/bitcoin,achow101/bitcoin,litecoin-project/litecoin,ryanofsky/bitcoin,Jcing95/iop-hd,gjhiggins/vcoincore,fanquake/bitcoin,jonasschnelli/bitcoin,r8921039/bitcoin,kallewoof/bitco... |
9308a5591b21c48cfb6e5ad273c0eaad31c4bb02 | tascore/corelib/tasdeviceutils_unix.cpp | tascore/corelib/tasdeviceutils_unix.cpp | /***************************************************************************
**
** 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 you have... | /***************************************************************************
**
** 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 you have... | Return milli-seconds instead seconds | Return milli-seconds instead seconds
| C++ | lgpl-2.1 | nomovok-opensource/cutedriver-agent_qt,nomovok-opensource/cutedriver-agent_qt,rferrazz/cutedriver-agent_qt,rasjani/cutedriver-agent_qt,rferrazz/cutedriver-agent_qt,nomovok-opensource/cutedriver-agent_qt,rasjani/cutedriver-agent_qt,rasjani/cutedriver-agent_qt,rferrazz/cutedriver-agent_qt |
ac45ac861d891817105987d1a83e678e4c02ffc7 | test/modbus_poller/test_modbus_poller.cpp | test/modbus_poller/test_modbus_poller.cpp | #define CATCH_CONFIG_MAIN
#include "Catch.hpp"
#include <boost/asio.hpp>
#include "ModbusConsts.hpp"
#include "ModbusTypes.hpp"
#include "ModbusEncoder.hpp"
#include "ModbusDecoder.hpp"
#include "SocketConnector.hpp"
#include "ModbusPollTask.hpp"
#include "ModbusPoller.hpp"
#include <thread>
boost::asio::ip::tcp::e... | #define CATCH_CONFIG_MAIN
#include "Catch.hpp"
#include <boost/asio.hpp>
#include "ModbusConsts.hpp"
#include "ModbusTypes.hpp"
#include "ModbusEncoder.hpp"
#include "ModbusDecoder.hpp"
#include "SocketConnector.hpp"
#include "ModbusPollTask.hpp"
#include "ModbusPoller.hpp"
#include "ModbusServerDevice.hpp"
#include ... | Modify test for ModbusPoller to use modbus::tcp::Server/ServerDevice | Modify test for ModbusPoller to use modbus::tcp::Server/ServerDevice
| C++ | mit | gkarvounis/libmodbusc-,gkarvounis/libmodbusc- |
7376e7ce8670310a87dc8878e38e583b82d48699 | src/replay.cpp | src/replay.cpp | /*
* replay.cpp
*
* eXploration module for Autonomous Robotic Embedded Systems
*
* xares replay : replay dump from xares (and xares-genom)
*
* author: Cyril Robin <cyril.robin@laas.fr>
* created: 2013-09-19
* license: BSD
*/
#include <ostream>
#include <fstream>
#include <sys/time.h>
#include "xares/xares.... | /*
* replay.cpp
*
* eXploration module for Autonomous Robotic Embedded Systems
*
* xares replay : replay dump from xares (and xares-genom)
*
* author: Cyril Robin <cyril.robin@laas.fr>
* created: 2013-09-19
* license: BSD
*/
#include <ostream>
#include <fstream>
#include <sys/time.h>
#include "xares/xares.... | Fix the display of the seed. | [replay] Fix the display of the seed.
Use index comparison to find the correct position.
| C++ | bsd-2-clause | cyrobin/xares |
c7bc32e58b861e6a8346b883fa338a8d746266b2 | test/performance/packed_planar_fusion.cpp | test/performance/packed_planar_fusion.cpp | #include "Halide.h"
#include <stdio.h>
#include "clock.h"
#include <memory>
using namespace Halide;
double test_copy(Image<uint8_t> src, Image<uint8_t> dst) {
Var x, y, c;
Func f;
f(x, y, c) = src(x, y, c);
for (int i = 0; i < 3; i++) {
f.output_buffer()
.set_stride(i, dst.stride(... | #include "Halide.h"
#include <stdio.h>
#include "clock.h"
#include <memory>
using namespace Halide;
double test_copy(Image<uint8_t> src, Image<uint8_t> dst) {
Var x, y, c;
Func f;
f(x, y, c) = src(x, y, c);
for (int i = 0; i < 3; i++) {
f.output_buffer()
.set_stride(i, dst.stride(... | Make packed_planar_fusion performance test less flaky | Make packed_planar_fusion performance test less flaky
| C++ | mit | adasworks/Halide,kgnk/Halide,fengzhyuan/Halide,mcanthony/Halide,kgnk/Halide,jiawen/Halide,damienfir/Halide,dougkwan/Halide,tdenniston/Halide,mcanthony/Halide,fengzhyuan/Halide,smxlong/Halide,dougkwan/Halide,ayanazmat/Halide,ronen/Halide,fengzhyuan/Halide,dan-tull/Halide,mcanthony/Halide,tdenniston/Halide,damienfir/Hali... |
22ba216f42f6a4d6216d9dbf5f0e72b84769a775 | src/s_rules.cc | src/s_rules.cc | #include <memory>
#include <algorithm>
#include <iterator>
#include <unordered_set>
#include <unordered_map>
#include <utility>
#include "s_rules.hh"
#include "s_closure.hh"
#include "cons_util.hh"
#include "env.hh"
#include "zs_error.hh"
#include "builtin_equal.hh"
#include "builtin_extra.hh"
#include "builtin_util.h... | #include <memory>
#include <algorithm>
#include <iterator>
#include <unordered_set>
#include <unordered_map>
#include <utility>
#include "s_rules.hh"
#include "s_closure.hh"
#include "cons_util.hh"
#include "env.hh"
#include "zs_error.hh"
#include "builtin_equal.hh"
#include "builtin_extra.hh"
#include "builtin_util.h... | debug print change | debug print change
| C++ | bsd-2-clause | y2q-actionman/zatuscheme |
490f4abcc8679969aab03c5dfc18888e1f253a27 | machine-learning/StateSpace.cpp | machine-learning/StateSpace.cpp | #include "StateSpace.h"
int StateSpace::angle_bins;
int StateSpace::velocity_bins;
int StateSpace::torque_bins;
double StateSpace::angle_max;
double StateSpace::velocity_max;
double StateSpace::torque_max;
StateSpace::StateSpace(const PriorityQueue<float, double>& queue, int _angle_bins, int _velocity_bins, int _torq... | #include "StateSpace.h"
int StateSpace::angle_bins;
int StateSpace::velocity_bins;
int StateSpace::torque_bins;
double StateSpace::angle_max;
double StateSpace::velocity_max;
double StateSpace::torque_max;
StateSpace::StateSpace(const PriorityQueue<float, double>& queue, int _angle_bins, int _velocity_bins, int _torq... | Update StateSpace.cpp | Update StateSpace.cpp | C++ | mit | philj56/robot-swing,philj56/robot-swing,philj56/robot-swing |
ae64732375e6f2c023c141782bd4773e09e14cc0 | src/server.cpp | src/server.cpp | /**
* Copyright (c) Sjors Gielen, 2010
* See LICENSE for license.
*/
#include <cassert>
#include <iostream>
#include <sstream>
#include <stdio.h>
#include "server.h"
#include "config.h"
// #define DEBUG
std::string Server::toString(const Server *s)
{
std::stringstream res;
res << "Server[";
if(s == 0 ) {
r... | /**
* Copyright (c) Sjors Gielen, 2010
* See LICENSE for license.
*/
#include <cassert>
#include <iostream>
#include <sstream>
// libircclient.h needs cstdlib, don't remove the inclusion
#include <cstdio>
#include <cstdlib>
#include <libircclient.h>
#include "server.h"
#include "config.h"
// #define DEBUG
std::... | Fix inclusion in server.cpp | Fix inclusion in server.cpp
| C++ | bsd-3-clause | dazeus/dazeus-core,dazeus/dazeus-core,dazeus/dazeus-core,dazeus/dazeus-core |
816bbc23bfd4a4bd61eb6ce3d63d426db252f0e5 | src/sudoku.cpp | src/sudoku.cpp | #include <opencv2/opencv.hpp>
#include <iostream>
#include "detector.hpp"
#include "data.hpp"
int main(int argc, char** argv ){
if(argc < 2){
std::cout << "Usage: sudoku <command> <options>" << std::endl;
return -1;
}
std::string command(argv[1]);
if(command == "detect"){
if... | #include <opencv2/opencv.hpp>
#include <iostream>
#include "detector.hpp"
#include "data.hpp"
int main(int argc, char** argv ){
if(argc < 2){
std::cout << "Usage: sudoku <command> <options>" << std::endl;
return -1;
}
std::string command(argv[1]);
if(command == "detect"){
if... | Prepare train | Prepare train
| C++ | mit | wichtounet/sudoku_recognizer |
e314107e4ae9094e95039adfdafb823d7a954c7c | src/system.cpp | src/system.cpp | #include "system.hpp"
#include <dirent.h>
#include <sys/stat.h>
#if defined ARCH_WIN
#include <windows.h>
#include <shellapi.h>
#endif
namespace rack {
namespace system {
std::list<std::string> listEntries(const std::string &path) {
std::list<std::string> filenames;
DIR *dir = opendir(path.c_str());
if (dir) ... | #include "system.hpp"
#include <dirent.h>
#include <sys/stat.h>
#if defined ARCH_WIN
#include <windows.h>
#include <shellapi.h>
#endif
namespace rack {
namespace system {
std::list<std::string> listEntries(const std::string &path) {
std::list<std::string> filenames;
DIR *dir = opendir(path.c_str());
if (dir) ... | Add implementation for system::setThreadName for Linux | Add implementation for system::setThreadName for Linux
| C++ | mit | AndrewBelt/Rack |
e19857c50eaa93d1c3bd5c75de14d19a2ca90239 | src/tarlib.cpp | src/tarlib.cpp | #include <string>
#include <array>
#include <cstdint>
#include <cstdlib>
#include <cassert>
#include <type_traits>
#include <sstream>
#include <iterator>
#include <tarlib/tarlib.h>
namespace {
#if 0
template <unsigned int OFFSET, unsigned int COUNT>
unsigned long long _base256_to_10( typename std::enable_if<COUNT ==... | #include <string>
#include <array>
#include <cstdint>
#include <cstdlib>
#include <cassert>
#include <type_traits>
#include <sstream>
#include <iterator>
#include <tarlib/tarlib.h>
namespace {
#if 0
template <unsigned int OFFSET, unsigned int COUNT>
unsigned long long _base256_to_10( typename std::enable_if<COUNT ==... | Make master compile again. | Make master compile again.
| C++ | apache-2.0 | abergmeier/tarlib,abergmeier/tarlib |
736417219a21715e2f661c7270956de58ed99fe8 | srcs/Water.cpp | srcs/Water.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Water.cpp :+: :+: :+: ... | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Water.cpp :+: :+: :+: ... | add else if instead of if if | add else if instead of if if
| C++ | mit | q-litzler/Hydrodynamic-Simulation,q-litzler/Hydrodynamic-Simulation |
dceaa3de1b326a22f1f1748cb05febcf813d878c | stacer/app.cpp | stacer/app.cpp | #include "app.h"
#include "ui_app.h"
#include "Managers/app_manager.h"
pp::~App()
{
delete ui;
}
App::App(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::App),
dashboardPage(new DashboardPage(this)),
startupAppsPage(new StartupAppsPage(this)),
systemCleanerPage(new SystemCleanerPage(this))... | #include "app.h"
#include "ui_app.h"
#include "Managers/app_manager.h"
App::~App()
{
delete ui;
}
App::App(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::App),
dashboardPage(new DashboardPage(this)),
startupAppsPage(new StartupAppsPage(this)),
systemCleanerPage(new SystemCleanerPage(this)... | Update app.cpp | Update app.cpp | C++ | mit | atakanprofile/Stoc,atakanprofile/Stoc,atakanprofile/Stoc |
a255c39f247f21ac89610d0992f258aac1760a54 | QFunctionalities/QmitkDataTreeFilterDemo/QmitkDataTreeFilterDemo.cpp | QFunctionalities/QmitkDataTreeFilterDemo/QmitkDataTreeFilterDemo.cpp | /*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
S... | /*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
S... | FIX test if functionality is active before reacting to data tree changes | FIX test if functionality is active before reacting to data tree changes
| C++ | bsd-3-clause | MITK/MITK,danielknorr/MITK,MITK/MITK,danielknorr/MITK,lsanzdiaz/MITK-BiiG,MITK/MITK,NifTK/MITK,fmilano/mitk,RabadanLab/MITKats,danielknorr/MITK,RabadanLab/MITKats,fmilano/mitk,RabadanLab/MITKats,iwegner/MITK,NifTK/MITK,danielknorr/MITK,RabadanLab/MITKats,lsanzdiaz/MITK-BiiG,danielknorr/MITK,rfloca/MITK,iwegner/MITK,fmi... |
369aac5dc2342ae1651ee4bfcda9fe6b195d67b4 | sandbox/TestTransfer.cpp | sandbox/TestTransfer.cpp | #include <netdb.h>
#include <netinet/in.h>
#include <pthread.h> /* POSIX Threads */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
void *server_main(void *);
void *client_main(void *);
int main() {
pthread_t thread1, thread2;
/* creat... | #include <netdb.h>
#include <netinet/in.h>
#include <pthread.h> /* POSIX Threads */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
void *server_main(void *);
void *client_main(void *);
int main() {
pthread_t thread1, thread2;
/* creat... | Fix bug where TestTransfer would hang onto the socket and the test was not repeatable | Fix bug where TestTransfer would hang onto the socket and the test was not repeatable
| C++ | apache-2.0 | MisterTea/EternalTCP,MisterTea/EternalTCP,MisterTea/EternalTCP |
0b6b2015f035750ef830ba4619fd128aabc48ef6 | scene/property_utils.cpp | scene/property_utils.cpp | /*************************************************************************/
/* property_utils.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | /*************************************************************************/
/* property_utils.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | Fix too broad assumption of null property defaults | Fix too broad assumption of null property defaults
(cherry picked from commit 7a66af274ab743a6045a72269e3f616254478c7a)
| C++ | mit | ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot,ex/godot |
fbb3f27712aad7cf6e12bf5b317dfedb390c711e | src/optimisationProblem/blackBoxOptimisationBenchmark2009.cpp | src/optimisationProblem/blackBoxOptimisationBenchmark2009.cpp | #include <mantella_bits/optimisationProblem/blackBoxOptimisationBenchmark2009.hpp>
// C++ Standard Library
#include <algorithm>
#include <cmath>
#include <random>
// Mantella
#include <mantella_bits/helper/rng.hpp>
#include <mantella_bits/helper/random.hpp>
namespace mant {
namespace bbob2009 {
BlackBoxOptimis... | #include <mantella_bits/optimisationProblem/blackBoxOptimisationBenchmark2009.hpp>
// C++ Standard Library
#include <algorithm>
#include <cmath>
#include <random>
// Mantella
#include <mantella_bits/helper/rng.hpp>
#include <mantella_bits/helper/random.hpp>
namespace mant {
namespace bbob2009 {
BlackBoxOptimis... | Set acceptable solution threshold according to the BBOB | devel: Set acceptable solution threshold according to the BBOB
| C++ | mit | SebastianNiemann/Mantella,Mantella/Mantella,SebastianNiemann/Mantella,SebastianNiemann/Mantella,Mantella/Mantella,Mantella/Mantella |
8945af1042b00aa702ab79472b5d3af1f8900ee7 | applications.cpp | applications.cpp | #include "applications.h"
#include <QDir>
#include <qdebug.h>
const int Applications::NameRole = Qt::UserRole + 1;
const int Applications::IconRole = Qt::UserRole + 2;
const int Applications::ExecRole = Qt::UserRole + 3;
const int Applications::TerminalRole = Qt::UserRole + 4;
Applications::Applications(QObject *pare... | #include "applications.h"
#include <QDir>
#include <qdebug.h>
const int Applications::NameRole = Qt::UserRole + 1;
const int Applications::IconRole = Qt::UserRole + 2;
const int Applications::ExecRole = Qt::UserRole + 3;
const int Applications::TerminalRole = Qt::UserRole + 4;
Applications::Applications(QObject *pare... | Debug notes | Debug notes
| C++ | mit | bayi/qdmenu,bayi/qdmenu,bayi/qdmenu |
e00c6f0cdb1cc2b83cd0e4d05d3f695549d53d11 | common/include/htu21d.hpp | common/include/htu21d.hpp | #pragma once
#include <stdint.h>
#include <avr/cpufunc.h>
#include <avr/sleep.h>
#include <i2c.hpp>
#include <common.hpp>
// port state terminology:
// low - output/low
// high - output/high
// input - input will pull-up
class IHTU21D {
public:
virtual bool reset() = 0;
virtual bool read_temp(uint16_t& temp) = 0;
... | #pragma once
#include <stdint.h>
#include <avr/cpufunc.h>
#include <avr/sleep.h>
#include <i2c.hpp>
#include <common.hpp>
// port state terminology:
// low - output/low
// high - output/high
// input - input will pull-up
class IHTU21D {
public:
virtual bool reset() = 0;
virtual bool read_temp(uint16_t& temp) = 0;
... | correct inline annotations for member functions | htu21d: correct inline annotations for member functions
| C++ | bsd-3-clause | rkojedzinszky/thermo-sensor,rkojedzinszky/thermo-sensor,rkojedzinszky/thermo-sensor |
a69a555ebdb2a48be9b6078f117e2690391bf568 | tests/ooo_test.cc | tests/ooo_test.cc | /*
Copyright (c) 2015, Max Krasnyansky <max.krasnyansky@gmail.com>
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... | /*
Copyright (c) 2015, Max Krasnyansky <max.krasnyansky@gmail.com>
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... | Test suite no longer fails when OOO detected | Test suite no longer fails when OOO detected
Instead return 77, which tells Automake to mark the test as SKIP.
| C++ | bsd-2-clause | maxk-org/hogl,maxk-org/hogl,maxk-org/hogl,maxk-org/hogl |
15a3f695aabf081f8824e546a7b6dc6ad8bef516 | chrome/browser/page_menu_model.cc | chrome/browser/page_menu_model.cc | // 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/page_menu_model.h"
#include "app/l10n_util.h"
#include "base/compiler_specific.h"
#include "chrome/app/chrome_dll_resource.h... | // 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/page_menu_model.h"
#include "app/l10n_util.h"
#include "base/compiler_specific.h"
#include "chrome/app/chrome_dll_resource.h... | Disable the Encoding menu within the Wrench menu for Chromium-internal pages. | [Mac] Disable the Encoding menu within the Wrench menu for Chromium-internal pages.
BUG=48157
TEST=Go to about:version or the NTP. Open Wrench-->Tools-->Encoding. All items are disabled.
Review URL: http://codereview.chromium.org/2928001
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@51860 0039d316-1c4b-4281-b... | C++ | bsd-3-clause | gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/ch... |
1d78ae6931058ef13a19a3b822a2c2c7ec6afcf0 | asc/AscNovel.hpp | asc/AscNovel.hpp | # pragma once
# include <Siv3D.hpp>
# include "AscChoiceManager.hpp"
# include "AscMessageManager.hpp"
# include "AscIMessgeButton.hpp"
# include "AscSoundManager.hpp"
# include "AscSpriteManager.hpp"
# include "AscTimeManager.hpp"
namespace asc
{
using namespace s3d;
class Novel
{
private:
using Commnad = std... | # pragma once
# include <Siv3D.hpp>
# include "AscChoiceManager.hpp"
# include "AscMessageManager.hpp"
# include "AscIMessgeButton.hpp"
# include "AscSoundManager.hpp"
# include "AscSpriteManager.hpp"
# include "AscTimeManager.hpp"
namespace asc
{
using namespace s3d;
using Commnad = std::pair<int32, String>;
con... | Implement load additive. | Implement load additive.
| C++ | mit | ChunChunMorning/AscNovel-Siv3D,ChunChunMorning/AscNovel |
4a35b8965a9a92da247a96e04a344261ccb86fe5 | asc/AscNovel.hpp | asc/AscNovel.hpp | # pragma once
# include <Siv3D.hpp>
# include "AscChoiceManager.hpp"
# include "AscMessageManager.hpp"
# include "AscIMessgeButton.hpp"
# include "AscSoundManager.hpp"
# include "AscSpriteManager.hpp"
# include "AscTimeManager.hpp"
namespace asc
{
using namespace s3d;
class Novel
{
private:
using Commnad = std... | # pragma once
# include <Siv3D.hpp>
# include "AscChoiceManager.hpp"
# include "AscMessageManager.hpp"
# include "AscIMessgeButton.hpp"
# include "AscSoundManager.hpp"
# include "AscSpriteManager.hpp"
# include "AscTimeManager.hpp"
namespace asc
{
using namespace s3d;
class Novel
{
private:
using Commnad = std... | Fix skip. | Fix skip.
| C++ | mit | ChunChunMorning/AscNovel,ChunChunMorning/AscNovel-Siv3D |
d6d8e58ac6e80cc4a942276fb9b4d2f71a030fcd | src/lfwatch_osx.cpp | src/lfwatch_osx.cpp | #ifdef __APPLE__
#include <iostream>
#include <string>
#include <map>
#include <functional>
#include <CoreServices/CoreServices.h>
#include "lfwatch_osx.h"
namespace lfw {
//Remap our notify enums to match OS X event flags, we really just need to
//convert our old/new name values but to avoid any future conflicts we ... | #ifdef __APPLE__
#include <iostream>
#include <string>
#include <map>
#include <functional>
#include <CoreServices/CoreServices.h>
#include "lfwatch_osx.h"
namespace lfw {
//Remap our notify enums to match OS X event flags, we really just need to
//convert our old/new name values but to avoid any future conflicts we ... | Comment clean-up | Comment clean-up
| C++ | mit | Twinklebear/lfwatch |
bf5db221e9b856d03e73ccdfa5807baf5e36c285 | src/lib/KEYText.cpp | src/lib/KEYText.cpp | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libetonyek 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 at http://mozill... | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libetonyek 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 at http://mozill... | fix position of text in shape | fix position of text in shape
The position is already determined by the current transformation; we
only need width and height.
| C++ | mpl-2.0 | freedesktop-unofficial-mirror/libreoffice__libetonyek,freedesktop-unofficial-mirror/libreoffice__libetonyek,LibreOffice/libetonyek,freedesktop-unofficial-mirror/libreoffice__libetonyek,LibreOffice/libetonyek,LibreOffice/libetonyek |
56ea21333bf2b9c5140c8c322cfae4ac4fe41c51 | modules/planning/scenarios/side_pass/stage_stop_on_wait_point.cc | modules/planning/scenarios/side_pass/stage_stop_on_wait_point.cc | /******************************************************************************
* 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 the License at
... | /******************************************************************************
* 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 the License at
... | fix a bug in side pass scenario. | planning: fix a bug in side pass scenario.
| C++ | apache-2.0 | msbeta/apollo,msbeta/apollo,msbeta/apollo,msbeta/apollo,msbeta/apollo,msbeta/apollo |
b586cd7c0dde9e55d6ef08b46132584a71aedfa6 | src/loadOperator.cc | src/loadOperator.cc | #include "loadOperator.hh"
// std
#include <string>
// scidb
#include "query/TypeSystem.h"
#include "system/SystemCatalog.h"
#include "array/Array.h"
#include "array/DBArray.h"
// pkg
#include "H5Array.hh"
#include "scidbConvert.hh"
void loadHdf(std::string const& filePath,
std::string const& hdfPath, ... | #include "loadOperator.hh"
// std
#include <string>
// scidb
#include "query/TypeSystem.h"
#include "system/SystemCatalog.h"
#include "array/Array.h"
#include "array/DBArray.h"
// pkg
#include "H5Array.hh"
#include "scidbConvert.hh"
namespace {
class Copier {
public:
Copier(scidb::ArrayID& arrayId) : ... | Refactor to prep for multi-attribute array support. | Refactor to prep for multi-attribute array support.
| C++ | apache-2.0 | wangd/SciDB-HDF5 |
ade6d89b6da6a99c99c3b8aebca0c087cd51d480 | caffe2/operators/summarize_op.cc | caffe2/operators/summarize_op.cc | /**
* Copyright (c) 2016-present, Facebook, 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 required by applicable ... | /**
* Copyright (c) 2016-present, Facebook, 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 required by applicable ... | make summarize op support larger blob and more robust | make summarize op support larger blob and more robust
Summary:
- so that it can also summarize blob of size larger than int
- the calculation of the mean and std may overflow/underflow, change to use double for intermediate calculation
Differential Revision: D6278275
fbshipit-source-id: f0bb72a5279212d429fa6d09b5487... | C++ | apache-2.0 | pietern/caffe2,sf-wind/caffe2,pietern/caffe2,xzturn/caffe2,davinwang/caffe2,Yangqing/caffe2,Yangqing/caffe2,davinwang/caffe2,pietern/caffe2,Yangqing/caffe2,davinwang/caffe2,xzturn/caffe2,sf-wind/caffe2,sf-wind/caffe2,caffe2/caffe2,pietern/caffe2,sf-wind/caffe2,sf-wind/caffe2,xzturn/caffe2,davinwang/caffe2,davinwang/caf... |
38397968a55a4a41999d57801c5c142ce2d79500 | tool/KCClient.cpp | tool/KCClient.cpp | #include "KCClient.h"
#include <QDebug>
#include <QSettings>
#include <QUrlQuery>
#include <QJsonDocument>
#include <QFile>
#include "KCShip.h"
#include "KCShipMaster.h"
#include "KCFleet.h"
#define kClientUseCache 1
/*
* This is ugly, but it's so repetitive that it's better to keep it out of the
* way and synthe... | #include "KCClient.h"
#include <QDebug>
#include <QSettings>
#include <QUrlQuery>
#include <QJsonDocument>
#include <QFile>
#include "KCShip.h"
#include "KCShipMaster.h"
#include "KCFleet.h"
#define kClientUseCache 0
/*
* This is ugly, but it's so repetitive that it's better to keep it out of the
* way and synthe... | Handle network errors properly | Handle network errors properly
Closes #16
| C++ | mit | kevin01523/KanColleTool,kevin01523/KanColleTool,KanColleTool/KanColleTool,kevin01523/KanColleTool,KanColleTool/KanColleTool |
f56964eb0692d3b3079bf2c00f77551917b68b3d | tools/convert.cpp | tools/convert.cpp | #include "imzml/reader.hpp"
#include "utils/string.hpp"
#include "cxxopts.hpp"
#ifdef SCILS_H5
#include "scils/h5reader.hpp"
#endif
#include "imzb/reader.hpp"
#include "imzb/writer.hpp"
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <memory>
#include <queue>... | #include "imzml/reader.hpp"
#include "utils/string.hpp"
#include "cxxopts.hpp"
#ifdef SCILS_H5
#include "scils/h5reader.hpp"
#endif
#include "imzb/reader.hpp"
#include "imzb/writer.hpp"
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <memory>
#include <queue>... | add bounds check for spectra | add bounds check for spectra
| C++ | apache-2.0 | alexandrovteam/ims-cpp,alexandrovteam/ims-cpp,alexandrovteam/ims-cpp |
0f82df410caf8242406fa7e8bbd555e4854ffe48 | tools/llc/llc.cpp | tools/llc/llc.cpp | //===-- llc.cpp - Implement the LLVM Compiler -----------------------------===//
//
// This is the llc compiler driver.
//
//===----------------------------------------------------------------------===//
#include "llvm/Bytecode/Reader.h"
#include "llvm/Target/Sparc.h"
#include "llvm/Target/TargetMachine.h"
#include "l... | //===-- llc.cpp - Implement the LLVM Compiler -----------------------------===//
//
// This is the llc compiler driver.
//
//===----------------------------------------------------------------------===//
#include "llvm/Bytecode/Reader.h"
#include "llvm/Target/Sparc.h"
#include "llvm/Target/TargetMachine.h"
#include "l... | Indent a comment right, add a new one | Indent a comment right, add a new one
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@3819 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,G... |
af1465b17bf9980867a718b76dfbb1fd9ed17420 | utils/TableGen/ClangDiagnosticsEmitter.cpp | utils/TableGen/ClangDiagnosticsEmitter.cpp | //=- ClangDiagnosticsEmitter.cpp - Generate Clang diagnostics tables -*- C++ -*-
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //=- ClangDiagnosticsEmitter.cpp - Generate Clang diagnostics tables -*- C++ -*-
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | add the ability to associate 'category' names with clang diagnostics and diagnostic groups. This allows the compiler to group diagnostics together (e.g. "Logic Warning", "Format String Warning", etc) like the static analyzer does. This is not exposed through anything in the compiler yet. | add the ability to associate 'category' names with clang diagnostics
and diagnostic groups. This allows the compiler to group
diagnostics together (e.g. "Logic Warning",
"Format String Warning", etc) like the static analyzer does.
This is not exposed through anything in the compiler yet.
git-svn-id: 0ff597fd157... | C++ | bsd-2-clause | chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epf... |
190a845505b1142166e8b25d953ab20d19276b87 | selfdrive/common/util.cc | selfdrive/common/util.cc | #include "selfdrive/common/util.h"
#include <cassert>
#include <cerrno>
#include <cstring>
#include <dirent.h>
#include <fstream>
#include <sstream>
#include <iomanip>
#ifdef __linux__
#include <sys/prctl.h>
#include <sys/syscall.h>
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <sched.h>
#endif // __linux__
v... | #include "selfdrive/common/util.h"
#include <cassert>
#include <cerrno>
#include <cstring>
#include <dirent.h>
#include <fstream>
#include <sstream>
#include <iomanip>
#ifdef __linux__
#include <sys/prctl.h>
#include <sys/syscall.h>
#ifndef __USE_GNU
#define __USE_GNU
#endif
#include <sched.h>
#endif // __linux__
v... | refactor read_file (#21295) | util.cc: refactor read_file (#21295)
* mode read & open once
* change return statement for better readibility
* apply reviews
* Update selfdrive/common/util.cc
* fix
Co-authored-by: Adeeb Shihadeh <560a1160cdca1405d17f7eea1cfe3906403d06ef@gmail.com> | C++ | mit | commaai/openpilot,commaai/openpilot,commaai/openpilot,commaai/openpilot,commaai/openpilot,commaai/openpilot |
ecf06b9d661e933004f12dee1a31fd7ce32baab3 | firmware/Adafruit_Fingerprint.cpp | firmware/Adafruit_Fingerprint.cpp | /***************************************************
This is a library for our optical Fingerprint sensor
Designed specifically to work with the Adafruit BMP085 Breakout
----> http://www.adafruit.com/products/751
These displays use TTL Serial to communicate, 2 pins are required to
interface
Adafruit in... | /***************************************************
This is a library for our optical Fingerprint sensor
Designed specifically to work with the Adafruit BMP085 Breakout
----> http://www.adafruit.com/products/751
These displays use TTL Serial to communicate, 2 pins are required to
interface
Adafruit in... | Update Adafruit_Fingerprint.cpp | Update Adafruit_Fingerprint.cpp
you forgot the deleteModel method!
Can you update the library?
tkhs | C++ | bsd-3-clause | pkourany/Adafruit_Fingerprint_Library |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.