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 |
|---|---|---|---|---|---|---|---|---|---|
e62bd5a72f209232f43a4b7ed47e677866496107 | terminal/TerminalClient.cpp | terminal/TerminalClient.cpp | #include "ClientConnection.hpp"
#include "CryptoHandler.hpp"
#include "FlakyFakeSocketHandler.hpp"
#include "Headers.hpp"
#include "ProcessHelper.hpp"
#include "ServerConnection.hpp"
#include "SocketUtils.hpp"
#include "UnixSocketHandler.hpp"
#include <errno.h>
#include <pwd.h>
#include <sys/ioctl.h>
#include <sys/typ... | #include "ClientConnection.hpp"
#include "CryptoHandler.hpp"
#include "FlakyFakeSocketHandler.hpp"
#include "Headers.hpp"
#include "ProcessHelper.hpp"
#include "ServerConnection.hpp"
#include "SocketUtils.hpp"
#include "UnixSocketHandler.hpp"
#include <errno.h>
#include <pwd.h>
#include <sys/ioctl.h>
#include <sys/typ... | Set TERM appropriately | Set TERM appropriately
| C++ | apache-2.0 | MisterTea/EternalTCP,MisterTea/EternalTCP,MisterTea/EternalTCP |
ffc87aff2dda923d36bc3227a1bf64fe0cc6aa0b | terminal/TerminalServer.cpp | terminal/TerminalServer.cpp | #include "ClientConnection.hpp"
#include "ConsoleUtils.hpp"
#include "CryptoHandler.hpp"
#include "FlakyFakeSocketHandler.hpp"
#include "Headers.hpp"
#include "ServerConnection.hpp"
#include "SocketUtils.hpp"
#include "UnixSocketHandler.hpp"
#include "IdPasskeyHandler.hpp"
#include "simpleini/SimpleIni.h"
#include <e... | #include "ClientConnection.hpp"
#include "ConsoleUtils.hpp"
#include "CryptoHandler.hpp"
#include "FlakyFakeSocketHandler.hpp"
#include "Headers.hpp"
#include "ServerConnection.hpp"
#include "SocketUtils.hpp"
#include "UnixSocketHandler.hpp"
#include "IdPasskeyHandler.hpp"
#include "simpleini/SimpleIni.h"
#include <e... | Fix group setting in OS/X | Fix group setting in OS/X
| C++ | apache-2.0 | MisterTea/EternalTCP,MisterTea/EternalTCP,MisterTea/EternalTCP |
bb2bb66fbedc17509823588977fd52fa9c0b5ba0 | src/drmap.cpp | src/drmap.cpp | /*
* Copyright (C) 2010 Telmo Menezes.
* telmo@telmomenezes.com
*/
#include "drmap.h"
#include "utils.h"
#include "emd_hat_signatures_interface.hpp"
#include <stdlib.h>
#include <strings.h>
#include <stdio.h>
namespace syn
{
DRMap::DRMap(unsigned int bin_number, double min_val_hor, double max_val_hor,
... | /*
* Copyright (C) 2010 Telmo Menezes.
* telmo@telmomenezes.com
*/
#include "drmap.h"
#include "utils.h"
#include "emd_hat_signatures_interface.hpp"
#include <stdlib.h>
#include <strings.h>
#include <stdio.h>
namespace syn
{
DRMap::DRMap(unsigned int bin_number, double min_val_hor, double max_val_hor,
... | normalize DRMap by total | normalize DRMap by total
| C++ | mit | telmomenezes/synthetic,telmomenezes/synthetic |
381351d2121ddc4c0fb881b327e4bcd3ca871ff6 | src/gurpy.cpp | src/gurpy.cpp | /******************************************************************************
* Copyright (C) 2015 Sahil Kang <sahil.kang@asilaycomputing.com>
*
* This file is part of gurpy.
*
* gurpy is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as publis... | /******************************************************************************
* Copyright (C) 2015 Sahil Kang <sahil.kang@asilaycomputing.com>
*
* This file is part of gurpy.
*
* gurpy is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as publis... | Reduce code duplication | Reduce code duplication
| C++ | agpl-3.0 | SahilKang/gurpy |
5909a6e02465fdd3ef46bddd64e99193a2b61783 | inc/libodfgen/OdtGenerator.hxx | inc/libodfgen/OdtGenerator.hxx | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* libodfgen
* Version: MPL 2.0 / LGPLv2.1+
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MP... | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* libodfgen
* Version: MPL 2.0 / LGPLv2.1+
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MP... | Correct a comment... | Correct a comment...
| C++ | mpl-2.0 | Distrotech/libodfgen,Distrotech/libodfgen,Distrotech/libodfgen |
5cb3dbd58a93f3c0c8d58e30821fe42db8fa5391 | src/hello.cxx | src/hello.cxx | #include <hello/hello.h>
#include <iostream>
int main()
{
hello();
return 0;
}
| #include <hello/hello.h>
#include <iostream>
int main()
{
hello();
return 0;
}
| Indent hello.cxx | Indent hello.cxx
| C++ | bsd-2-clause | fujii/cmake-example,fujii/cmake-example |
b1c9f494e61b3e43c94b182de0bbbf0dd5a66a87 | include/construction/merge.hpp | include/construction/merge.hpp | /*******************************************************************************
* include/util/merge.hpp
*
* Copyright (C) 2017 Marvin Löbel <loebel.marvin@gmail.com>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
******************************************************************... | /*******************************************************************************
* include/util/merge.hpp
*
* Copyright (C) 2017 Marvin Löbel <loebel.marvin@gmail.com>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
******************************************************************... | Refactor & annotate merge.hpp | Refactor & annotate merge.hpp
| C++ | bsd-2-clause | kurpicz/pwm,kurpicz/pwm,kurpicz/pwm |
d6b9fa1a193e6ebcb5ac78c9ba8881ab87e60eac | include/tudocomp/util/View.hpp | include/tudocomp/util/View.hpp | #pragma once
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include <iomanip>
#include <cstring>
#include <glog/logging.h>
#include <tudocomp/def.hpp>
namespace tdc {
///... | #pragma once
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include <iomanip>
#include <cstring>
#include <glog/logging.h>
#include <tudocomp/def.hpp>
namespace tdc {
///... | Add missing fix to View.hpp | Add missing fix to View.hpp
| C++ | apache-2.0 | tudocomp/tudocomp,tudocomp/tudocomp,tudocomp/tudocomp,tudocomp/tudocomp,tudocomp/tudocomp |
59e2f552ca2920defb76ba070a8abc8013d3c029 | realm/wrappers/realm.cpp | realm/wrappers/realm.cpp | #include <iostream>
#include <realm.hpp>
#include <realm/table.hpp>
#include <realm/commit_log.hpp>
#include <realm/lang_bind_helper.hpp>
#include "object-store/shared_realm.hpp"
enum class RealmErrorType {
unknown = 0,
system = 1
};
struct RealmError {
RealmErrorType type;
std::string message;
};
s... | #include <iostream>
#include <realm.hpp>
#include <realm/table.hpp>
#include <realm/commit_log.hpp>
#include <realm/lang_bind_helper.hpp>
#include "object-store/shared_realm.hpp"
#include "object-store/schema.hpp"
enum class RealmErrorType {
unknown = 0,
system = 1
};
struct RealmError {
RealmErrorType t... | Make schema initialization rely on a vector of ObjectSchema's | Make schema initialization rely on a vector of ObjectSchema's
| C++ | apache-2.0 | Shaddix/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet,realm/realm-dotnet,Shaddix/realm-dotnet,realm/realm-dotnet,Shaddix/realm-dotnet |
e22c7437f90e2f9c82ec6612533d9d0ae1b2a896 | src/ansi_color.hh | src/ansi_color.hh | /*
* Copyright (C) 2017 deipi.com LLC and contributors. 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 without restriction, including without limitation the
* ri... | /*
* Copyright (C) 2017 deipi.com LLC and contributors. 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 without restriction, including without limitation the
* ri... | Fix cast | ansi_color: Fix cast
| C++ | mit | Kronuz/Xapiand,Kronuz/Xapiand,Kronuz/Xapiand,Kronuz/Xapiand,Kronuz/Xapiand,Kronuz/Xapiand |
bf47b58b8a57b105d82d4ed1600205f601081d3c | redis/command_factory.hh | redis/command_factory.hh | /*
* Copyright (C) 2019 pengjian.uestc @ gmail.com
*/
/*
* 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... | /*
* Copyright (C) 2019 pengjian.uestc @ gmail.com
*/
/*
* 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... | Remove seastar namespace import from command_factory.hh | redis: Remove seastar namespace import from command_factory.hh
| C++ | agpl-3.0 | scylladb/scylla,scylladb/scylla,scylladb/scylla,scylladb/scylla |
2a79a0927c479b69316aa275c1f79c74d20e8040 | lib/CodeGen/MachineInstr.cpp | lib/CodeGen/MachineInstr.cpp | //===-- MachineInstr.cpp --------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Value.h"
#include "llvm/Target/MachineInstrInfo.h" // ... | //===-- MachineInstr.cpp --------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/Value.h"
#include "llvm/Target/MachineInstrInfo.h" // ... | Use MRegisterInfo, if available, to print symbolic register names | Use MRegisterInfo, if available, to print symbolic register names
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@4438 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-... |
2e914a9dc50d5ea87af2a49780ee615cea723731 | src/posix/net.cpp | src/posix/net.cpp | /**
* @file posix/net.cpp
* @brief POSIX network access layer (using cURL)
*
* (c) 2013 by Mega Limited, Wellsford, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the rules set forth in the... | /**
* @file posix/net.cpp
* @brief POSIX network access layer (using cURL)
*
* (c) 2013 by Mega Limited, Wellsford, New Zealand
*
* This file is part of the MEGA SDK - Client Access Engine.
*
* Applications using the MEGA API must present a valid application key
* and comply with the the rules set forth in the... | Fix POSIX | HttpIO: Fix POSIX
| C++ | bsd-2-clause | sergiohs84/sdk,Sisky/sdk,BlackFired/sdk,jedisct1/sdk,BiuroCo/mega,jedisct1/sdk,sergiohs84/sdk,javiserrano/sdk,wizzard/sdk,Acidburn0zzz/sdk,javiserrano/sdk,jedisct1/sdk,sergiohs84/sdk,javiserrano/sdk,BiuroCo/mega,Sisky/sdk,18671178307/sdk,18671178307/sdk,Acidburn0zzz/sdk,Sisky/sdk,jedisct1/sdk,PatrickJBaird/sdk,Acidburn... |
59db760c5327128b57f20316667fdcf830b99db2 | Driver/Backend.cpp | Driver/Backend.cpp | //===--- Backend.cpp - Interface to LLVM backend technologies -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- Backend.cpp - Interface to LLVM backend technologies -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Disable -loop-index-split for now. | Disable -loop-index-split for now.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@60089 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
9a6a3bd2c9f40ecbb34359db04722a5a6b8f6710 | src/test/unit/lang/parser/pound_comment_deprecated_test.cpp | src/test/unit/lang/parser/pound_comment_deprecated_test.cpp | #include <gtest/gtest.h>
#include <test/unit/lang/utility.hpp>
TEST(langParser, poundCommentDeprecated) {
test_warning("pound-comment-deprecated",
"Comments beginning with # are deprecated."
" Please use //");
}
| #include <gtest/gtest.h>
#include <test/unit/lang/utility.hpp>
TEST(langParser, poundCommentDeprecated) {
test_warning("pound-comment-deprecated",
"Comments beginning with # are deprecated."
" Please use //");
}
| Update pound_comment_deprecated_test.cpp | Update pound_comment_deprecated_test.cpp | C++ | bsd-3-clause | stan-dev/stan,stan-dev/stan,stan-dev/stan,stan-dev/stan,stan-dev/stan |
bcd4a73874216dca3f5983a0b2d4b843ce71f34a | src/xercesc/util/MsgLoaders/MsgCatalog/MsgCatalogLoader.cpp | src/xercesc/util/MsgLoaders/MsgCatalog/MsgCatalogLoader.cpp | /*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of sou... | /*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of sou... | use $XERCESCROOT to search for msg catalog file if XERCESC_NLS_HOME undefined | use $XERCESCROOT to search for msg catalog file if XERCESC_NLS_HOME
undefined
git-svn-id: 3ec853389310512053d525963cab269c063bb453@174458 13f79535-47bb-0310-9956-ffa450edef68
| C++ | apache-2.0 | AaronNGray/xerces,AaronNGray/xerces,AaronNGray/xerces,AaronNGray/xerces |
ca5336e974e2eeac15b39da2e3daf98485c50980 | tests/auto/declarative_core/backend/routing/tst_routing.cpp | tests/auto/declarative_core/backend/routing/tst_routing.cpp | /****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usa... | /****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usa... | Adjust use of quick_test_main to match new API | Adjust use of quick_test_main to match new API
Fixes current build issue (hopefully).
Change-Id: Id4e8bf81353971fd725c55fbb03e29dce7e99afd
Reviewed-by: Aaron McCarthy <19f0c2781a6d2138802be69a27973bb2f9d34578@nokia.com>
| C++ | lgpl-2.1 | kobolabs/qtlocation,amccarthy/qtlocation,amccarthy/qtlocation,amccarthy/qtlocation,kobolabs/qtlocation,kobolabs/qtlocation |
c1970d9b8476f68dcaa6306f503544b260e1f331 | parser_simple.hpp | parser_simple.hpp | //----------------------------------------------------------------------------
// copyright 2012, 2013, 2014 Keean Schupke
// compile with -std=gnu++11
// parser_simple.hpp
#include <istream>
#include <stdexcept>
using namespace std;
//----------------------------------------------------------------------------
// ... | //----------------------------------------------------------------------------
// copyright 2012, 2013, 2014 Keean Schupke
// compile with -std=gnu++11
// parser_simple.hpp
#include <istream>
#include <stdexcept>
using namespace std;
//----------------------------------------------------------------------------
// ... | add missing zero initialisaton of byte count | add missing zero initialisaton of byte count
| C++ | mit | keean/Parser-Combinators,seckcoder/Parser-Combinators |
fab067cecef205ce246904cf122a5e545e348f99 | passes/opt/opt.cc | passes/opt/opt.cc | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in ... | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <clifford@clifford.at>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in ... | Add 'opt_share' to 'opt -full' | Add 'opt_share' to 'opt -full'
| C++ | isc | antmicro/yosys,YosysHQ/yosys,YosysHQ/yosys,cliffordwolf/yosys,SymbiFlow/yosys,SymbiFlow/yosys,YosysHQ/yosys,YosysHQ/yosys,SymbiFlow/yosys,antmicro/yosys,SymbiFlow/yosys,cliffordwolf/yosys,antmicro/yosys,YosysHQ/yosys,cliffordwolf/yosys,SymbiFlow/yosys,antmicro/yosys,antmicro/yosys,cliffordwolf/yosys,SymbiFlow/yosys,Yos... |
e65a17b30b731b276495049805444822bb3bd618 | common/Geometry2d/Pose.hpp | common/Geometry2d/Pose.hpp | #pragma once
#include <ostream>
#include "Point.hpp"
#include "TransformMatrix.hpp"
namespace Geometry2d {
/**
* Represents a pose in 2d space: (x, y, theta). Uses double-precision floating
* point numbers for the coordinates, and can be used to represent the position
* and orientation of a robot in the plane.
*... | #pragma once
#include <ostream>
#include "Point.hpp"
#include "TransformMatrix.hpp"
namespace Geometry2d {
/**
* Represents a pose in 2d space: (x, y, theta). Uses double-precision floating
* point numbers for the coordinates, and can be used to represent the position
* and orientation of a robot in the plane.
*... | Make pretty | Make pretty
| C++ | apache-2.0 | RoboJackets/robocup-software,RoboJackets/robocup-software,RoboJackets/robocup-software,RoboJackets/robocup-software |
a5c4592bbc5086018dcfdf2ff3ad49931ae1183d | skia/ext/SkFontHost_fontconfig_direct.cpp | skia/ext/SkFontHost_fontconfig_direct.cpp | /* libs/graphics/ports/SkFontHost_fontconfig_direct.cpp
**
** Copyright 2009, Google 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-... | /* libs/graphics/ports/SkFontHost_fontconfig_direct.cpp
**
** Copyright 2009, Google 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-... | Add font-equivalent mapping for a few Chinese/Japanese fonts for CrOS. | Add font-equivalent mapping for a few Chinese/Japanese fonts for CrOS.
The following aliases are added to be recognized in addition to what we have.
The first four are applicable to Chrome on Linux and ChromeOS. The last
two are for Chrome OS.
IPAPMincho -> MS P Mincho
IPAMincho -> MS Mincho
IPAPGothic -> MS P Goth... | C++ | bsd-3-clause | fujunwei/chromium-crosswalk,ltilve/chromium,anirudhSK/chromium,ltilve/chromium,M4sse/chromium.src,jaruba/chromium.src,nacl-webkit/chrome_deps,ondra-novak/chromium.src,patrickm/chromium.src,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,keishi/chromium,ltilve/chromium,Pluto-tv/ch... |
b31a5a636e420ee76bffe59fae5f72143881704c | test.cpp | test.cpp | #include<iostream>
#include<string>
#include<vector>
#include<sstream>
using namespace std;
int char2int(char c){
switch(c)
{
case 'I': return 1;
case 'V': return 5;
case 'X': return 10;
case 'L': return 50;
case 'C': return 100;
c... | #include<iostream>
#include<string>
#include<vector>
#include<sstream>
#include<algorithm>
#include<limits.h>
using namespace std;
int reverse(int x) {
int sign=1;
if(x<0){
sign=-1;
x=-x;
}
long long res=0;
while(x){
res=res... | add easy | add easy
| C++ | apache-2.0 | WIZARD-CXY/pl,WIZARD-CXY/pl,WIZARD-CXY/pl,WIZARD-CXY/pl |
3298df820d44217127b07caf0422ad3025c20549 | test.cpp | test.cpp | #include <cstdlib>
#include <cstdio>
#include <chrono>
#include <algorithm>
#include <numeric>
#include <chrono>
#include <getopt.h>
#include "hll.h"
#include "kthread.h"
using namespace std::chrono;
using tp = std::chrono::system_clock::time_point;
static const size_t BITS = 25;
bool test_qty(size_t lim) {
h... | #include <cstdlib>
#include <cstdio>
#include <chrono>
#include <algorithm>
#include <numeric>
#include <chrono>
#include <getopt.h>
#include "hll.h"
#include "kthread.h"
using namespace std::chrono;
using tp = std::chrono::system_clock::time_point;
static const size_t BITS = 25;
bool test_qty(size_t lim) {
h... | Add usage for test. | Add usage for test.
| C++ | mit | dnbh/hll,dnbh/hll |
3d04dc8fed252980faf87e8e54bd53e25d333605 | src/input.cpp | src/input.cpp | #include "input.h"
#include "engine.h"
P<WindowManager> InputHandler::windowManager;
bool InputHandler::touch_screen = false;
sf::Transform InputHandler::mouse_transform;
PVector<InputEventHandler> InputHandler::input_event_handlers;
sf::Vector2f InputHandler::mousePos;
float InputHandler::mouse_wheel_delta;
bool ... | #include "input.h"
#include "engine.h"
P<WindowManager> InputHandler::windowManager;
bool InputHandler::touch_screen = false;
sf::Transform InputHandler::mouse_transform;
PVector<InputEventHandler> InputHandler::input_event_handlers;
sf::Vector2f InputHandler::mousePos;
float InputHandler::mouse_wheel_delta;
bool ... | define was wrong way around. | define was wrong way around.
| C++ | mit | daid/SeriousProton,daid/SeriousProton,daid/SeriousProton,daid/SeriousProton,daid/SeriousProton,daid/SeriousProton |
9925b45e6ff8975d71c49c3c70e4c139d89bb737 | source/main.cpp | source/main.cpp | #include <ctrcommon/common.hpp>
#include <sstream>
#include <iomanip>
typedef enum {
INSTALL,
DELETE
} Mode;
bool ui_display_install_progress(int progress) {
std::stringstream stream;
stream << "Installing: [";
int progressBars = progress / 4;
for(int i = 0; i < 25; i++) {
... | #include <ctrcommon/common.hpp>
#include <sstream>
#include <iomanip>
typedef enum {
INSTALL,
DELETE
} Mode;
bool ui_display_install_progress(int progress) {
std::stringstream stream;
stream << "Installing: [";
int progressBars = progress / 4;
for(int i = 0; i < 25; i++) {
... | Remove name printing from testing. | Remove name printing from testing.
| C++ | mit | Steveice10/FBI,Steveice10/FBI,Steveice10/FBI |
b56d0995203078ff2c49aa57cccb423449a99377 | source/main.cpp | source/main.cpp | #include <ctrcommon/app.hpp>
#include <ctrcommon/fs.hpp>
#include <ctrcommon/gpu.hpp>
#include <ctrcommon/input.hpp>
#include <ctrcommon/nor.hpp>
#include <ctrcommon/platform.hpp>
#include <ctrcommon/ui.hpp>
#include "rop.h"
#include <sys/errno.h>
#include <stdio.h>
#include <string.h>
#include <sstrea... | #include <ctrcommon/app.hpp>
#include <ctrcommon/fs.hpp>
#include <ctrcommon/gpu.hpp>
#include <ctrcommon/input.hpp>
#include <ctrcommon/nor.hpp>
#include <ctrcommon/platform.hpp>
#include <ctrcommon/ui.hpp>
#include "rop.h"
#include <sys/errno.h>
#include <stdio.h>
#include <string.h>
#include <sstrea... | Bump version for ctrcommon fixes. | Bump version for ctrcommon fixes.
| C++ | mit | Jerry-Shaw/FBI,leo60228/CTRM,masterhou/FBI,Traiver/FBI,Jerry-Shaw/FBI,soarqin/FBI,masterhou/FBI,leo60228/CTRM,hippydave/Newquay,hippydave/Newquay,kot2002/FBI,Possum/LumaLocaleSwitcher,Traiver/FBI,Possum/LumaLocaleSwitcher,leo60228/CTRM,Jerry-Shaw/FBI,soarqin/FBI,Traiver/FBI,kot2002/FBI,Jerry-Shaw/FBI |
85c4208f0bdd57420f9f86b70a9a8768e39d3f15 | src/lambda.cc | src/lambda.cc | #include "test_common.h"
#include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
TEST_UNIT(lambda_test1)
{
std::vector<int> c{ 1, 2, 3, 4, 5, 6, 7 };
int x = 5;
c.erase(std::remove_if(c.begin(), c.end(), [x](int n) { return n < x; }), c.end());
std::cout << "c: ";
for (au... | #include "test_common.h"
#include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <memory>
TEST_UNIT(lambda_test1)
{
std::vector<int> c{ 1, 2, 3, 4, 5, 6, 7 };
int x = 5;
c.erase(std::remove_if(c.begin(), c.end(), [x](int n) { return n < x; }), c.end());
std::cout << ... | Add lambda_test6 | Add lambda_test6
| C++ | apache-2.0 | zieckey/cxx11hello |
2fc8701bc40bdcc0715780c407bf0d22a98ea530 | tests/core/defaultfixture.cpp | tests/core/defaultfixture.cpp | /*
* libgamelib
*
* Copyright (C) 2013 Karol Herbst <gamelib@karolherbst.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opt... | /*
* libgamelib
*
* Copyright (C) 2013 Karol Herbst <gamelib@karolherbst.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opt... | use plattform depentend osinformation implementation | test: use plattform depentend osinformation implementation
| C++ | lgpl-2.1 | karolherbst/Gamekeeper-Framework,karolherbst/Gamekeeper-Framework,karolherbst/Gamekeeper-Framework,karolherbst/Gamekeeper-Framework |
b7bc49ebdac6dbe966fe17f3557766c7ecc740e3 | planning/jet/jetsim.cc | planning/jet/jetsim.cc | #include "viewer/primitives/simple_geometry.hh"
#include "viewer/window_3d.hh"
#include "geometry/visualization/put_stl.hh"
#include "planning/jet/jet_dynamics.hh"
#include "planning/jet/jet_planner.hh"
#include "planning/jet/jet_model.hh"
#include "eigen.hh"
#include "sophus.hh"
namespace planning {
namespace jet... | #include "viewer/primitives/simple_geometry.hh"
#include "viewer/window_3d.hh"
#include "geometry/visualization/put_stl.hh"
#include "planning/jet/jet_dynamics.hh"
#include "planning/jet/jet_planner.hh"
#include "planning/jet/jet_model.hh"
#include "eigen.hh"
#include "sophus.hh"
namespace planning {
namespace jet... | Quit eagerly in jetsim | Quit eagerly in jetsim
| C++ | mit | jpanikulam/experiments,jpanikulam/experiments,jpanikulam/experiments,jpanikulam/experiments |
82e37bd94cc50dfeeba8f8593e1487907afd473e | src/spiegel.cpp | src/spiegel.cpp | /*
* Copyright (C) 2009 Toni Gundogdu.
*
* This file is part of cclive.
*
* cclive is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* vers... | /*
* Copyright (C) 2009 Toni Gundogdu.
*
* This file is part of cclive.
*
* cclive is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* vers... | fix a typo in supported formats. | spiegel: fix a typo in supported formats.
| C++ | agpl-3.0 | legatvs/cclive,legatvs/cclive,legatvs/cclive |
1e45f226ef35b649cb2889e23ad90ad39d0db947 | src/pamix.cpp | src/pamix.cpp | #include <pamix.hpp>
#include <unistd.h>
#include <configuration.hpp>
#include <condition_variable>
#include <queue>
#include <csignal>
// GLOBAL VARIABLES
Configuration configuration;
bool running = true;
// sync main and callback threads
std::mutex updMutex;
std::condition_variable cv;
std::queue<UpdateData> upd... | #include <pamix.hpp>
#include <unistd.h>
#include <configuration.hpp>
#include <condition_variable>
#include <queue>
#include <csignal>
// GLOBAL VARIABLES
Configuration configuration;
bool running = true;
// sync main and callback threads
std::mutex updMutex;
std::condition_variable cv;
std::queue<UpdateData> upd... | Use 25ms as escdelay | Use 25ms as escdelay
By default ncurses will use 1000ms, which will cause freezing.
Fixes #44
| C++ | mit | patroclos/PAmix |
b436d4937c27e4ad9535a1efa54c12e3ff4b66a5 | src/tracing.hpp | src/tracing.hpp | // Copyright 2022 The clvk 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 applicable law or agreed ... | // Copyright 2022 The clvk 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 applicable law or agreed ... | fix warnings threaded as errors in google infra (#446) | fix warnings threaded as errors in google infra (#446)
| C++ | apache-2.0 | kpet/clvk,kpet/clvk,kpet/clvk,kpet/clvk |
f3c22197cb18dc25e7be2e42c4f6a03be7fc58ad | src/version.cpp | src/version.cpp | // Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
// for both bitco... | // Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
// for both bitco... | Update version.cpp | Update version.cpp
New versión suffix: -MM&KWG | C++ | mit | mp2apps/pesetacoin-master,mp2apps/pesetacoin-master,mp2apps/pesetacoin-master,mp2apps/pesetacoin-master,mp2apps/pesetacoin-master |
973c6088d73f536e964623b8a04a11b36877e937 | src/scene.cpp | src/scene.cpp | #include "./scene.h"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <string>
#include <vector>
#include "./graphics/gl.h"
#include "./input/invoke_manager.h"
#include "./graphics/render_data.h"
#include "./graphics/managers.h"
#include "./graphics/volume_manager.h"
#include "./graphics/shader_program.h"
#incl... | #include "./scene.h"
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <string>
#include <vector>
#include "./graphics/gl.h"
#include "./input/invoke_manager.h"
#include "./graphics/render_data.h"
#include "./graphics/managers.h"
#include "./graphics/volume_manager.h"
#include "./graphics/shader_program.h"
#incl... | Disable frustum optimizer for easier development of layering. | Disable frustum optimizer for easier development of layering.
| C++ | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
65802068683f1f2b8ca4b6ca19399af815b5a962 | src/timer.cpp | src/timer.cpp | #include "openmc/timer.h"
namespace openmc {
//==============================================================================
// Global variables
//==============================================================================
namespace simulation {
Timer time_active;
Timer time_bank;
Timer time_bank_sample;
Timer ... | #include "openmc/timer.h"
namespace openmc {
//==============================================================================
// Global variables
//==============================================================================
namespace simulation {
Timer time_active;
Timer time_bank;
Timer time_bank_sample;
Timer ... | fix a bug in timer.cpp | fix a bug in timer.cpp
| C++ | mit | walshjon/openmc,smharper/openmc,liangjg/openmc,paulromano/openmc,walshjon/openmc,mit-crpg/openmc,shikhar413/openmc,shikhar413/openmc,walshjon/openmc,mit-crpg/openmc,smharper/openmc,liangjg/openmc,shikhar413/openmc,smharper/openmc,mit-crpg/openmc,shikhar413/openmc,paulromano/openmc,liangjg/openmc,smharper/openmc,walshjo... |
ba7d0a5005ad861a766888915669a1404b753ca8 | src/types.cpp | src/types.cpp | #include "clay.hpp"
#include "common.hpp"
llvm::Module *llvmModule;
llvm::ExecutionEngine *llvmEngine;
const llvm::TargetData *llvmTargetData;
void initLLVM() {
llvm::InitializeNativeTarget();
llvmModule = new llvm::Module("clay", llvm::getGlobalContext());
llvm::ModuleProvider *mp = new llvm::ExistingMod... | #include "clay.hpp"
#include "common.hpp"
llvm::Module *llvmModule;
llvm::ExecutionEngine *llvmEngine;
const llvm::TargetData *llvmTargetData;
void initLLVM() {
llvm::InitializeNativeTarget();
llvmModule = new llvm::Module("clay", llvm::getGlobalContext());
llvm::ModuleProvider *mp = new llvm::ExistingMod... | set llvm module's target data from execution engine. | set llvm module's target data from execution engine.
| C++ | bsd-2-clause | jckarter/clay,aep/clay,iamrekcah/clay,aep/clay,iamrekcah/clay,aep/clay,jckarter/clay,jckarter/clay,mario-campos/clay,iamrekcah/clay,jckarter/clay,jckarter/clay,aep/clay,mario-campos/clay,mario-campos/clay,aep/clay,mario-campos/clay,iamrekcah/clay,mario-campos/clay,aep/clay,iamrekcah/clay,jckarter/clay |
10c3ba2c1b8cb494175c3eae0f7c6fbecf1b3bd0 | servers/audio/audio_rb_resampler.cpp | servers/audio/audio_rb_resampler.cpp | /*************************************************************************/
/* audio_rb_resampler.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | /*************************************************************************/
/* audio_rb_resampler.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | Remove comments and corrected code, which exists for correctness but will likely never be used. Fixes #20362 | Remove comments and corrected code, which exists for correctness but will likely never be used. Fixes #20362
| C++ | mit | akien-mga/godot,groud/godot,vkbsb/godot,ex/godot,vnen/godot,DmitriySalnikov/godot,Paulloz/godot,Paulloz/godot,vnen/godot,ZuBsPaCe/godot,firefly2442/godot,ex/godot,Valentactive/godot,okamstudio/godot,groud/godot,Shockblast/godot,akien-mga/godot,akien-mga/godot,sanikoyes/godot,Paulloz/godot,godotengine/godot,BastiaanOlij... |
73572b3c8c2064c082d43980e8f46562a9387a11 | webkit/tools/test_shell/test_shell_platform_delegate_win.cc | webkit/tools/test_shell/test_shell_platform_delegate_win.cc | // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <list>
#include <windows.h>
#include <commctrl.h>
#include "base/command_line.h"
#include "base/event_recorder.h"
#inc... | // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <list>
#include <windows.h>
#include <commctrl.h>
#include "base/command_line.h"
#include "base/event_recorder.h"
#inc... | Modify change in CL 21434 - allow standard font smoothing as well as none | Modify change in CL 21434 - allow standard font smoothing as well as none
Prior to CL 21434 test_shell did not actually check if ClearType was
disabled. I had thought that the requirement for the layout tests was
that *all* font smoothing was disabled (both ClearType and standard). Turns
out that standard is okay, so ... | C++ | bsd-3-clause | Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,Crystalnix/h... |
0da73a3d52bb2a59e848246367aa92ab887b9c73 | chrome/browser/ui/views/ash/tab_scrubber.cc | chrome/browser/ui/views/ash/tab_scrubber.cc | // Copyright (c) 2013 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/ui/views/ash/tab_scrubber.h"
#include "ash/shell.h"
#include "ash/wm/window_util.h"
#include "base/metrics/histogram.h"
#inc... | // Copyright (c) 2013 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/ui/views/ash/tab_scrubber.h"
#include "ash/shell.h"
#include "ash/wm/window_util.h"
#include "base/metrics/histogram.h"
#inc... | Change UMA stat name for TabScrub.Distance so that it shares a group with other metrics | Change UMA stat name for TabScrub.Distance so that it shares a group with other metrics
BUG=None
TEST=None
TBR=sky
Review URL: https://codereview.chromium.org/12374058
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@185622 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,hujiajie/pa-chromium,dushu1203/chromium.sr... |
ffd00f3d0f1b7536439f0b4afd71b338e94acafb | test-data.cpp | test-data.cpp | #include "data-general.hpp"
#include "data-course.hpp"
#include "data-major.hpp"
#include "data-student.hpp"
using namespace std;
vector<Course> all_courses;
void loadCourses() {
ifstream infile("data/2012-13-s2-csv.csv");
string str; // read in the header line
getline(infile, str);
while (infile.peek() != -1){
... | #include "data-general.hpp"
#include "data-course.hpp"
#include "data-major.hpp"
#include "data-student.hpp"
using namespace std;
vector<Course> all_courses;
Student user;
void loadCourses() {
ifstream infile("data/2012-13-s2-csv.csv");
string str; // read in the header line
getline(infile, str);
while (infile.pe... | Add more tests to test-data.cpp | Add more tests to test-data.cpp
| C++ | agpl-3.0 | hawkrives/gobbldygook,hawkrives/gobbldygook,hawkrives/gobbldygook |
8a4c06c8f8ca0e3c2a8e78af9cf70d59c2cf15a2 | test-data.cpp | test-data.cpp | #include "data-general.hpp"
#include "data-course.hpp"
#include "data-student.hpp"
using namespace std;
vector<Course> all_courses;
Student user;
void loadCourses() {
ifstream infile("data/2012-13-s2-csv.csv");
string str; // read in the header line
getline(infile, str);
while (infile.peek() != -1){
Course inco... | #include "data-general.hpp"
#include "data-course.hpp"
#include "data-student.hpp"
using namespace std;
vector<Course> all_courses;
Student user;
void loadCourses() {
ifstream infile("data/2012-13-s2-csv.csv");
string str; // read in the header line
getline(infile, str);
while (infile.peek() != -1){
Course inco... | Rename getCourses to the less-confusing requestCourses | Rename getCourses to the less-confusing requestCourses
| C++ | agpl-3.0 | hawkrives/gobbldygook,hawkrives/gobbldygook,hawkrives/gobbldygook |
0079809bd29a39d6b8a161c94025e371a7210712 | bp/loopy_belief_propagation.hpp | bp/loopy_belief_propagation.hpp | #pragma once
#include <vector>
#include <boost/graph/graph_traits.hpp>
#include <boost/property_map/vector_property_map.hpp>
#include "properties.hpp"
namespace bp {
template<typename Graph, typename Visitor,
typename MessagePropertyMap,
typename BeliefPropertyMap>
void loopy_sum_product(const Grap... | #pragma once
#include <vector>
#include <boost/graph/graph_traits.hpp>
#include <boost/property_map/vector_property_map.hpp>
#include "properties.hpp"
namespace bp {
template<typename Graph, typename Visitor,
typename MessagePropertyMap,
typename BeliefPropertyMap>
void apply_loopy_belief_propagati... | rename to loopy belief propagation | rename to loopy belief propagation
| C++ | mit | rezoo/boost-BP |
15dd8ed1bba4a51694191c248538ff2b333bfeaa | core/deleter.hh | core/deleter.hh | /*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef DELETER_HH_
#define DELETER_HH_
#include <memory>
#include <cstdlib>
#include <assert.h>
#include <type_traits>
class deleter {
public:
struct impl;
struct raw_object_tag {};
private:
// if bit 0 set, point to object to be freed directly.
im... | /*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef DELETER_HH_
#define DELETER_HH_
#include <memory>
#include <cstdlib>
#include <assert.h>
#include <type_traits>
class deleter final {
public:
struct impl;
struct raw_object_tag {};
private:
// if bit 0 set, point to object to be freed directly.
... | mark as final class | deleter: mark as final class
Prevent accidental inheritance.
| C++ | agpl-3.0 | scylladb/scylla,gwicke/scylla,avikivity/seastar,kangkot/scylla,printedheart/seastar,dwdm/seastar,raphaelsc/scylla,raphaelsc/scylla,eklitzke/scylla,linearregression/seastar,dwdm/seastar,bowlofstew/seastar,joerg84/seastar,avikivity/scylla,aruanruan/scylla,eklitzke/scylla,ducthangho/imdb,kangkot/scylla,koolhazz/seastar,wi... |
1fc0df3b07e8425d7df0f6b6e538526bb51c7d3e | Applications/ctkExampleHostedApp/ctkExampleHostedAppMain.cpp | Applications/ctkExampleHostedApp/ctkExampleHostedAppMain.cpp | /*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... | /*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the ... | Use EXIT_FAILURE define instead of hard-coded integers for exit code | Use EXIT_FAILURE define instead of hard-coded integers for exit code
| C++ | apache-2.0 | mehrtash/CTK,vovythevov/CTK,naucoin/CTK,pieper/CTK,lassoan/CTK,msmolens/CTK,finetjul/CTK,msmolens/CTK,AndreasFetzer/CTK,AndreasFetzer/CTK,SINTEFMedtek/CTK,Sardge/CTK,laurennlam/CTK,danielknorr/CTK,ddao/CTK,ddao/CTK,rkhlebnikov/CTK,vovythevov/CTK,Heather/CTK,AndreasFetzer/CTK,fedorov/CTK,sankhesh/CTK,CJGoch/CTK,danielkn... |
2a85a5f91d2deb56b00d189f435bc1d0cd998b8c | chrome/nacl/nacl_thread.cc | chrome/nacl/nacl_thread.cc | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/nacl/nacl_thread.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/nacl_messages.h"
// This is ugly. We n... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/nacl/nacl_thread.h"
#include "base/scoped_ptr.h"
#include "chrome/common/notification_service.h"
#include "chrome/common/nacl_messag... | Use a scoped_array rather than a bare pointer. | nacl: Use a scoped_array rather than a bare pointer.
The bug was that we had a new[] without a matching delete[],
using a scoped_array fixes this and simplifies the code.
TEST=compiles
Review URL: http://codereview.chromium.org/3410009
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@59856 0039d316-1c4b-4281-b9... | C++ | bsd-3-clause | hgl888/chromium-crosswalk,robclark/chromium,littlstar/chromium.src,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,dednal/chromium.src,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,jaruba/c... |
c2383f6183165487e29b7f9900a64c419bec3791 | test.cpp | test.cpp | #include <iostream>
#include <vector>
#include <ctime>
#include <stdint.h>
#include "libpopcnt.h"
int main(int argc, char** argv)
{
srand((unsigned int) time(0));
int max_size = 100000;
// Generate vectors with random data and compute the bit
// population count using 2 different algorithms and
// check th... | #include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <stdint.h>
#include "libpopcnt.h"
int main(int argc, char** argv)
{
srand((unsigned int) time(0));
int max_size = 100000;
// Generate vectors with random data and compute the bit
// population count using 2 different algorithm... | Add header <cstdlib> | Add header <cstdlib> | C++ | bsd-2-clause | KOConchobhair/libpopcnt,KOConchobhair/libpopcnt,kimwalisch/libpopcnt,kimwalisch/libpopcnt |
c6eae9030ab8e6217bd4766981d3597f61521652 | test/test.cpp | test/test.cpp | /*
* Copyright 2015 Matthew Harvey
*
* 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... | /*
* Copyright 2015 Matthew Harvey
*
* 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... | Add TODO re. tests. | Add TODO re. tests.
| C++ | apache-2.0 | matt-harvey/swx,skybaboon/swx |
04b2183d48d341a491f3d6c7bf5ee2ab861f55a5 | src/CPlayer.cpp | src/CPlayer.cpp | #include "CPlayer.h"
#include "CVehicle.h"
#include <sampgdk/a_players.h>
#include <sampgdk/core.h>
#include <boost/chrono/chrono.hpp>
namespace chrono = boost::chrono;
CPlayerHandler *CPlayerHandler::m_Instance = new CPlayerHandler;
CPlayerHandler::CPlayerHandler() :
m_Thread(new thread(boost::bind(&CPlayerHa... | #include "CPlayer.h"
#include "CVehicle.h"
#include <sampgdk/a_players.h>
#include <sampgdk/core.h>
#include <boost/chrono/chrono.hpp>
namespace chrono = boost::chrono;
CPlayerHandler *CPlayerHandler::m_Instance = new CPlayerHandler;
CPlayerHandler::CPlayerHandler() :
m_Thread(new thread(boost::bind(&CPlayerHa... | simplify sight-check calculation | simplify sight-check calculation
we don't need to calculate the length of the camera's facing vector, it's a normalized vector (length always '1')
| C++ | mit | maddinat0r/samp-streamer,maddinat0r/samp-streamer |
6b4ab62f90850bb5c5ea9b4e9703401f001dc0ab | tests/unit/ceed/test_ceed.cpp | tests/unit/ceed/test_ceed.cpp | // Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | // Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | Add fichera.mesh to the test for nlconvection. | Add fichera.mesh to the test for nlconvection.
| C++ | bsd-3-clause | mfem/mfem,mfem/mfem,mfem/mfem,mfem/mfem,mfem/mfem |
775627473afaed32e7f90bc29fdad1e39848633b | Extractor/XMLParser.cpp | Extractor/XMLParser.cpp | /*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
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 ... | /*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
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 ... | remove .osm deprecation warning | remove .osm deprecation warning
| C++ | bsd-2-clause | nagyistoce/osrm-backend,felixguendling/osrm-backend,antoinegiret/osrm-backend,jpizarrom/osrm-backend,duizendnegen/osrm-backend,prembasumatary/osrm-backend,bjtaylor1/osrm-backend,felixguendling/osrm-backend,agruss/osrm-backend,neilbu/osrm-backend,Project-OSRM/osrm-backend,Conggge/osrm-backend,yuryleb/osrm-backend,denisk... |
0095aaf822346ac3bcb16b4587cd0751555aab1c | test/kernel/unit/memmap.cpp | test/kernel/unit/memmap.cpp | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Yo... | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Yo... | Make the unfinished memmap test fail | test: Make the unfinished memmap test fail
| C++ | apache-2.0 | hioa-cs/IncludeOS,alfred-bratterud/IncludeOS,AndreasAakesson/IncludeOS,mnordsletten/IncludeOS,AndreasAakesson/IncludeOS,mnordsletten/IncludeOS,ingve/IncludeOS,ingve/IncludeOS,ingve/IncludeOS,hioa-cs/IncludeOS,ingve/IncludeOS,mnordsletten/IncludeOS,AnnikaH/IncludeOS,hioa-cs/IncludeOS,AndreasAakesson/IncludeOS,mnordslett... |
7c014431e9d0d176381da2e3d5ff5e9dbb905539 | src/NTClient.cc | src/NTClient.cc | #include "NTClient.h"
using namespace std;
NTClient::NTClient(int _wpm, double _accuracy) {
typeIntervalMS = 12000 / _wpm;
wpm = _wpm;
accuracy = _accuracy;
hasError = false;
firstConnect = true;
connected = false;
lessonLen = 0;
lidx = 0;
log = new NTLogger("(Not logged in)");
wsh = nullptr;
}
NTClient::~NT... | #include "NTClient.h"
using namespace std;
NTClient::NTClient(int _wpm, double _accuracy) {
typeIntervalMS = 12000 / _wpm;
wpm = _wpm;
accuracy = _accuracy;
hasError = false;
firstConnect = true;
connected = false;
lessonLen = 0;
lidx = 0;
log = new NTLogger("(Not logged in)");
wsh = nullptr;
}
NTClient::~NT... | Use nice logging for failures | Use nice logging for failures
| C++ | mit | ultratype/UltraTypePP,ultratype/UltraTypePP |
9bb2c29bc9adb15301ed50ae26c0336e39fd1f9b | src/appleseedmaya/shadingnodemetadata.cpp | src/appleseedmaya/shadingnodemetadata.cpp |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2016-2017 Esteban Tovagliari, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person... |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2016-2017 Esteban Tovagliari, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person... | Update for appleseed changes. | Update for appleseed changes.
| C++ | mit | luisbarrancos/appleseed-maya2,dictoon/appleseed-maya,appleseedhq/appleseed-maya2,dictoon/appleseed-maya,luisbarrancos/appleseed-maya2,dictoon/appleseed-maya,appleseedhq/appleseed-maya,appleseedhq/appleseed-maya2,luisbarrancos/appleseed-maya2,est77/appleseed-maya,est77/appleseed-maya,appleseedhq/appleseed-maya2,applesee... |
18884a86ae337b6ce9636738c069a87004d43017 | tools/llvm-prof/llvm-prof.cpp | tools/llvm-prof/llvm-prof.cpp | //===- llvm-prof.cpp - Read in and process llvmprof.out data files --------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-------... | //===- llvm-prof.cpp - Read in and process llvmprof.out data files --------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-------... | Print the top 20 most frequently executed blocks. Fix sort predicate problem | Print the top 20 most frequently executed blocks. Fix sort predicate problem
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@9594 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | bsd-2-clause | chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,d... |
3d7a48ccaaaa2e796d2f116c1a8645403185a8a2 | src/irgen.cpp | src/irgen.cpp | #include "irgen.h"
#include <llvm/IR/Value.h>
#include <llvm/IR/Type.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <iostream>
#include "astnode.h"
#include "astnodetypes.h"
using namespace llvm;
LLVMContext context;
IRBuilder<> Bu... | #include "irgen.h"
#include <llvm/IR/Value.h>
#include <llvm/IR/Type.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/BasicBlock.h>
#include <iostream>
#include "astnode.h"
#include "astnodetypes.h"
using namespace llvm;
LLV... | Add initial function definition codegen. | Add initial function definition codegen.
| C++ | mit | lotusronin/neuro,lotusronin/neuro,lotusronin/neuro,lotusronin/neuro |
0bd525b8049b0202279f4c82da556e8d034ff8ae | tools/redexdump/RedexDump.cpp | tools/redexdump/RedexDump.cpp | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... | Fix --help formatting | Fix --help formatting
Reviewed By: newobj
Differential Revision: D3936235
fbshipit-source-id: e0a30ce9b45e46355c27198fd4b087a9479e048f
| C++ | mit | facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex |
c45ef6c6d9329ae69d1af5c94b3be755de1765e0 | src/wizard.cc | src/wizard.cc | #include <vector>
using namespace std;
#include "error_handling.h"
#include "game.h"
#include "coordinate.h"
#include "potions.h"
#include "scrolls.h"
#include "command.h"
#include "options.h"
#include "io.h"
#include "armor.h"
#include "pack.h"
#include "rings.h"
#include "misc.h"
#include "level.h"
#include "weapon... | #include <vector>
using namespace std;
#include "error_handling.h"
#include "game.h"
#include "coordinate.h"
#include "potions.h"
#include "scrolls.h"
#include "command.h"
#include "options.h"
#include "io.h"
#include "armor.h"
#include "pack.h"
#include "rings.h"
#include "misc.h"
#include "level.h"
#include "weapon... | Fix crash when spawning gold as wizard | Fix crash when spawning gold as wizard
| C++ | bsd-3-clause | lollek/Rogue14,lollek/Rogue14,lollek/Misty-Mountains,lollek/Misty-Mountains,lollek/Misty-Mountains,lollek/Rogue14 |
5db9d4f4fac2f4f7ffb15edac51253d7296e3666 | src/ae_conv.cpp | src/ae_conv.cpp | //=======================================================================
// Copyright Baptiste Wicht 2015-2017.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
#include ... | //=======================================================================
// Copyright Baptiste Wicht 2015-2017.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=======================================================================
#include ... | Update learning rates | Update learning rates
| C++ | mit | wichtounet/word_spotting,wichtounet/word_spotting,wichtounet/word_spotting |
571b7c978ec5fed594f7abdd451974e671e6b8bb | test/vp9_end_to_end_test.cc | test/vp9_end_to_end_test.cc | /*
* Copyright (c) 2014 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 contributin... | /*
* Copyright (c) 2014 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 contributin... | disable vp10 w/high bitdepth | vp9_end_to_end_test: disable vp10 w/high bitdepth
the range check in dct.c (abs(input[i]) < (1 << bit)) will fail in many
cases. this was broken at the time this check was added
BUG=1076
Change-Id: I3df8c7a555e95567d73ac16acda997096ab8d6e2
| C++ | bsd-3-clause | mwgoldsmith/vpx,openpeer/libvpx_new,jmvalin/aom,mbebenita/aom,webmproject/libvpx,VTCSecureLLC/libvpx,mwgoldsmith/vpx,smarter/aom,smarter/aom,jmvalin/aom,thdav/aom,luctrudeau/aom,ittiamvpx/libvpx-1,mwgoldsmith/libvpx,openpeer/libvpx_new,ittiamvpx/libvpx-1,mwgoldsmith/libvpx,mbebenita/aom,smarter/aom,VTCSecureLLC/libvpx,... |
9d924a0c4ae57643e0ac4be6845d72e890cf3a6e | test/vp9_end_to_end_test.cc | test/vp9_end_to_end_test.cc | /*
* Copyright (c) 2014 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 contributin... | /*
* Copyright (c) 2014 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 contributin... | Fix vp9_end_to_end_test for vp10 HBD | Fix vp9_end_to_end_test for vp10 HBD
This test is failing when no experiments are turned on. PSNR is
31.96 when the threshold is 32.
broken since:
0d6980d Remove swap buffer speed feature
Change-Id: I3c29815b40d5282c37f52f4345b56992f8558b2e
| C++ | bsd-2-clause | GrokImageCompression/aom,GrokImageCompression/aom,mbebenita/aom,GrokImageCompression/aom,mbebenita/aom,luctrudeau/aom,mbebenita/aom,GrokImageCompression/aom,smarter/aom,luctrudeau/aom,mbebenita/aom,mbebenita/aom,mbebenita/aom,smarter/aom,mbebenita/aom,GrokImageCompression/aom,smarter/aom,luctrudeau/aom,smarter/aom,luct... |
9982c5970c9c2e2049cbb4e7729ed421c1a58f28 | src/xSW01.cpp | src/xSW01.cpp | /*
This is a library for the SW01
DIGITAL HUMIDITY, PRESSURE AND TEMPERATURE SENSOR
The board uses I2C for communication.
The board communicates with the following I2C device:
- BME280
Data Sheets:
BME280 - https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf
*/
#include ... | /*
This is a library for the SW01
DIGITAL HUMIDITY, PRESSURE AND TEMPERATURE SENSOR
The board uses I2C for communication.
The board communicates with the following I2C device:
- BME280
Data Sheets:
BME280 - https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf
*/
#include ... | Update xSW01.cpp | Update xSW01.cpp | C++ | mit | xinabox/xSW01 |
bdae268164cfb1cb1a1d92c30c9e8ea134fc58bf | Source/bindings/core/v8/V8AbstractEventListener.cpp | Source/bindings/core/v8/V8AbstractEventListener.cpp | /*
* Copyright (C) 2006, 2007, 2008, 2009 Google Inc. 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, thi... | /*
* Copyright (C) 2006, 2007, 2008, 2009 Google Inc. 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, thi... | Fix a crash in V8AbstractEventListener::handleEvent | Fix a crash in V8AbstractEventListener::handleEvent
handleEvent() should check scriptState->contextIsEmpty() before doing anything that uses scriptState. This CL also adds a check for scriptState->executionContext() just in case (I'm not sure if it's really needed).
BUG=396104
TEST=I cannot reproduce the crash.
Revi... | C++ | bsd-3-clause | Pluto-tv/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,ondra-novak/blink,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,smishenk/blink-crosswalk,PeterWangIntel/b... |
13fbe110fcb59e4e27cce3354115f7c1730b3964 | src/linux.cpp | src/linux.cpp | /*
* Copyright 2013-2016 Christian Lockley
*
* 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 o... | /*
* Copyright 2013-2016 Christian Lockley
*
* 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 o... | use vfork+exec to run modprobe | use vfork+exec to run modprobe
| C++ | apache-2.0 | clockley/watchdogd,clockley/watchdogd |
fdeab9c570b914bd137e81a6b3fef6ceff32f34d | lib/strings/aho_corasick.cpp | lib/strings/aho_corasick.cpp | #include <bits/stdc++.h>
using namespace std;
// maximum sum of the lengths of all patterns
#define N int(1e6+5)
// alphabet size
#define A 52
// ascii ---> [0, A)
int cvt(char c) {
return islower(c) ? c-'a' : c-'A'+26;
}
// aho corasick trie
// node 0 is the root (empty string, the ultimate failure node).
// fai... | #include <bits/stdc++.h>
using namespace std;
// maximum sum of the lengths of all patterns
#define N int(1e6+5)
// alphabet size
#define A 52
// ascii ---> [0, A)
int cvt(char c) {
return islower(c) ? c-'a' : c-'A'+26;
}
// aho corasick trie
// node 0 is the root (empty string, the ultimate failure node).
// fai... | Remove unnecessary line in aho corasick | Remove unnecessary line in aho corasick
| C++ | mit | matheuscscp/problem-solving,matheuscscp/problem-solving,matheuscscp/problem-solving |
07732decd920ceebebd13963a7bfc444c5d5eaa5 | libdariadb/storage/chunk.cpp | libdariadb/storage/chunk.cpp | #include "chunk.h"
#include "bloom_filter.h"
#include <algorithm>
#include <cassert>
#include <cstring>
//TODO remove includes
#include "../compression.h"
#include "../compression/binarybuffer.h"
using namespace dariadb;
using namespace dariadb::utils;
using namespace dariadb::storage;
using namespace dariadb::compres... | #include "chunk.h"
#include "bloom_filter.h"
#include <algorithm>
#include <cassert>
#include <cstring>
//TODO remove includes
#include "../compression.h"
#include "../compression/binarybuffer.h"
using namespace dariadb;
using namespace dariadb::utils;
using namespace dariadb::storage;
using namespace dariadb::compres... | debug out. | debug out.
| C++ | apache-2.0 | lysevi/dariadb,lysevi/dariadb,dariadb/dariadb,lysevi/dariadb,dariadb/dariadb |
056c996f835526d631665ae251af99d792a790f1 | libecasound/audioio-tone.cpp | libecasound/audioio-tone.cpp | // ------------------------------------------------------------------------
// audioio-tone.cpp: Tone generator
//
// Adaptation to Ecasound:
// Copyright (C) 2007-2009 Kai Vehmanen (adaptation to Ecasound)
//
// Sources for sine generation (cmt-src-1.15/src/sine.cpp):
//
// Computer Music Toolkit - a library of LADSPA... | // ------------------------------------------------------------------------
// audioio-tone.cpp: Tone generator
//
// Adaptation to Ecasound:
// Copyright (C) 2007-2009 Kai Vehmanen (adaptation to Ecasound)
//
// Sources for sine generation (cmt-src-1.15/src/sine.cpp):
//
// Computer Music Toolkit - a library of LADSPA... | Use end_of_stream tag for finite streams | audioio-tone: Use end_of_stream tag for finite streams
When a finite length stream is generated, mark the last
buffer with the end_of_stream tag.
| C++ | lgpl-2.1 | jeremysalwen/Ecasound-LV2,jeremysalwen/Ecasound-LV2,jeremysalwen/Ecasound-LV2,jeremysalwen/Ecasound-LV2,jeremysalwen/Ecasound-LV2 |
9283ceb52d6f3c5b8fbbc7974efda5b1531475f7 | src/ofApp.cpp | src/ofApp.cpp | #include "ofApp.h"
#include <boost/python.hpp>
namespace dsl{
namespace py = boost::python;
void background(double x){
ofBackground(x * 255);
}
BOOST_PYTHON_MODULE(core){
py::def("background", &background);
}
py::dict nameSpace;
py::object evalHyCode;
list<string> history;
void run_code(string code){... | #include "ofApp.h"
#include <boost/python.hpp>
namespace dsl{
namespace py = boost::python;
void background(double x){
ofBackground(x * 255);
}
BOOST_PYTHON_MODULE(core){
py::def("background", &background);
}
py::dict nameSpace;
py::object evalHyCode;
list<string> history;
void safeEval(string code){... | Move try-eval-catch in safeEval() function | Move try-eval-catch in safeEval() function
| C++ | agpl-3.0 | edne/pineal |
98184adf61ef7b984aa0283df5e471a8ea2f8a0e | src/parser.cc | src/parser.cc | #include <iostream>
#include <list>
#include <memory>
#include <string>
#include <tuple>
#include "lex-util.h"
#include "lexer.h"
#include "parse-problem.h"
#include "parser.h"
#include "ptr.h"
#include "token.h"
#include "type.h"
#include "value.h"
using namespace arua;
using namespace std;
typedef list<shared_ptr<... | #include <iostream>
#include <list>
#include <memory>
#include <stack>
#include <string>
#include "lex-util.h"
#include "lexer.h"
#include "parse-problem.h"
#include "parser.h"
#include "ptr.h"
#include "token.h"
#include "type.h"
#include "type-array.h"
#include "type-derived.h"
#include "type-function.h"
#include "t... | add untested typedef parsing | add untested typedef parsing
| C++ | mit | arua-lang/bootstrap,arua-lang/bootstrap |
ab740c14d74a345c6f2453d2304dfbb04ea3c300 | src/modules/RCEWriter/RCEWriterModule.cpp | src/modules/RCEWriter/RCEWriterModule.cpp | /**
* @file
* @brief Implementation of RCE Writer Module
* @copyright Copyright (c) 2017 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and immunities gr... | /**
* @file
* @brief Implementation of RCE Writer Module
* @copyright Copyright (c) 2017 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and immunities gr... | fix Proteus geometry output | RCEWriter: fix Proteus geometry output
| C++ | mit | Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared |
456842b812bb1cbdf2464a1cb21369e5083b9c02 | src/pmath.hpp | src/pmath.hpp | ///
/// @file pmath.hpp
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef PMATH_HPP
#define PMATH_HPP
#include <stdint.h>
#include <cmath>
#include <vector>
#include <limits>
inline... | ///
/// @file pmath.hpp
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#ifndef PMATH_HPP
#define PMATH_HPP
#include <stdint.h>
#include <cmath>
#include <vector>
#include <limits>
inline... | Fix bug in make_pi(x) | Fix bug in make_pi(x)
| C++ | bsd-2-clause | kimwalisch/primecount,kimwalisch/primecount,kimwalisch/primecount |
ad971f4f2cb4484dc08575c8a5274a9dceaa8132 | src/reader.cc | src/reader.cc | #include <v8.h>
#include <node.h>
#if _USE_CUSTOM_BUFFER_POOL
#include <node_buffer.h>
#endif
#include <string.h>
#include <assert.h>
#include "reader.h"
using namespace hiredis;
static void *tryParentize(const redisReadTask *task, const Local<Value> &v) {
Reader *r = reinterpret_cast<Reader*>(task->privdata);
... | #include <v8.h>
#include <node.h>
#if _USE_CUSTOM_BUFFER_POOL
#include <node_buffer.h>
#endif
#include <string.h>
#include <assert.h>
#include "reader.h"
using namespace hiredis;
static void *tryParentize(const redisReadTask *task, const Local<Value> &v) {
Reader *r = reinterpret_cast<Reader*>(task->privdata);
... | Fix #59, small change for node <0.11 | Fix #59, small change for node <0.11
| C++ | bsd-3-clause | BridgeAR/hiredis-node,kkoopa/hiredis-node,redis/hiredis-node,cmpis/hiredis-node,iddar/hiredis-node,erulabs/hiredis-node,redis/hiredis-node,iddar/hiredis-node,badboy/hiredis-node-win,iddar/hiredis-node,cmpis/hiredis-node,erulabs/hiredis-node,cmpis/hiredis-node,BridgeAR/hiredis-node,kkoopa/hiredis-node,BridgeAR/hiredis-n... |
0e968f9de36351993eff7c79189f600382294b17 | bbb/core/type/container/type_sequence_operation.hpp | bbb/core/type/container/type_sequence_operation.hpp | /* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* bbb/type_sequence_operation.hpp
*
* author: ISHII 2bit
* mail: 2bit... | /* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* bbb/type_sequence_operation.hpp
*
* author: ISHII 2bit
* mail: 2bit... | add map_test | add map_test
| C++ | mit | 2bbb/bit_by_bit |
5f3ad13fcd1de4539495e1b74d242d3526ae4205 | src/share.cpp | src/share.cpp | //=======================================================================
// Copyright (c) 2013-2018 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=================================================================... | //=======================================================================
// Copyright (c) 2013-2018 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=================================================================... | Add new V2 share price API (alpha_vantage) | Add new V2 share price API (alpha_vantage)
| C++ | mit | wichtounet/budgetwarrior,wichtounet/budgetwarrior,wichtounet/budgetwarrior |
c4295b7e30d5fe9527fd7f3a20bc12ccfca8b94c | src/string.hh | src/string.hh | #ifndef string_hh_INCLUDED
#define string_hh_INCLUDED
#include "memoryview.hh"
#include "units.hh"
#include "utf8.hh"
#include <string>
#include <boost/regex.hpp>
namespace Kakoune
{
using Regex = boost::regex;
class String : public std::string
{
public:
String() {}
String(const char* content) : std::strin... | #ifndef string_hh_INCLUDED
#define string_hh_INCLUDED
#include "memoryview.hh"
#include "units.hh"
#include "utf8.hh"
#include <string>
#include <boost/regex.hpp>
namespace Kakoune
{
using Regex = boost::regex;
class String : public std::string
{
public:
String() {}
String(const char* content) : std::strin... | Fix StringView::substr when passed a negative length | Fix StringView::substr when passed a negative length
| C++ | unlicense | alpha123/kakoune,occivink/kakoune,jkonecny12/kakoune,zakgreant/kakoune,danr/kakoune,mawww/kakoune,casimir/kakoune,rstacruz/kakoune,danielma/kakoune,occivink/kakoune,alexherbo2/kakoune,xificurC/kakoune,rstacruz/kakoune,lenormf/kakoune,Somasis/kakoune,danielma/kakoune,zakgreant/kakoune,elegios/kakoune,ekie/kakoune,elegio... |
46e4b7fbd3c29ec9390979cae58d8c01ca2e2373 | src/table.cpp | src/table.cpp | // Copyright (c) 2016 Kasper Kronborg Isager and Radoslaw Niemczyk.
#include "table.hpp"
namespace lsh {
/**
* Construct a new lookup table.
*
* @param dimensions The number of dimensions of vectors in the table.
* @param width The width of each vector hash.
* @param partitions The number of paritions... | // Copyright (c) 2016 Kasper Kronborg Isager and Radoslaw Niemczyk.
#include "table.hpp"
namespace lsh {
/**
* Construct a new lookup table.
*
* @param dimensions The number of dimensions of vectors in the table.
* @param width The width of each vector hash.
* @param partitions The number of paritions... | Fix a +-1 issue | Fix a +-1 issue
| C++ | mit | kasperisager/hemingway |
04dcf7084520c37e385a1f0560dbe7d98349acec | src/utils.cpp | src/utils.cpp | #include "utils.h"
//
#include <fstream> // fstream
#include <boost/tokenizer.hpp>
#include <boost/numeric/ublas/matrix.hpp>
using namespace std;
using namespace boost;
using namespace boost::numeric::ublas;
std::ostream& operator<<(std::ostream& os, const std::map<int, double>& int_double_map) {
std::map<int,... | #include "utils.h"
//
#include <fstream> // fstream
#include <boost/tokenizer.hpp>
#include <boost/numeric/ublas/matrix.hpp>
using namespace std;
using namespace boost;
using namespace boost::numeric::ublas;
std::ostream& operator<<(std::ostream& os, const map<int, double>& int_double_map) {
map<int, double>::... | remove some std:: prefixes | remove some std:: prefixes
| C++ | apache-2.0 | JDReutt/BayesDB,poppingtonic/BayesDB,probcomp/crosscat,probcomp/crosscat,poppingtonic/BayesDB,mit-probabilistic-computing-project/crosscat,probcomp/crosscat,probcomp/crosscat,mit-probabilistic-computing-project/crosscat,fivejjs/crosscat,JDReutt/BayesDB,poppingtonic/BayesDB,fivejjs/crosscat,probcomp/crosscat,mit-probabi... |
3af5e765a2a197203feed676428b30c3d82e16b1 | core/signal.h++ | core/signal.h++ | /**
* The MIT License (MIT)
*
* Copyright © 2017-2018 Ruben Van Boxem
*
* 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
* ... | /**
* The MIT License (MIT)
*
* Copyright © 2017-2018 Ruben Van Boxem
*
* 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
* ... | Add call operator to core::signal. | Add call operator to core::signal.
| C++ | mit | skui-org/skui,rubenvb/skui,skui-org/skui,rubenvb/skui |
54f00be9114dfa8cc21f37169abcac8d93efb965 | prog5_saxpy/main.cpp | prog5_saxpy/main.cpp | #include <stdio.h>
#include <algorithm>
#include "CycleTimer.h"
#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif
extern void saxpySerial(int N, float a, float* X, float* Y, float* result);
#ifdef USE_ISPC_OBJ
extern "C"
{
void saxpy_ispc(int N, float a, float* X, float* Y, float* result);
void saxpy_ispc... | #include <stdio.h>
#include <algorithm>
#include "CycleTimer.h"
#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif
extern void saxpySerial(int N, float a, float* X, float* Y, float* result);
#ifdef USE_ISPC_OBJ
extern "C"
{
void saxpy_ispc(int N, float a, float* X, float* Y, float* result);
void saxpy_ispc... | Update main.cpp | Update main.cpp | C++ | mit | tsinghua-15418/assignment1 |
099eb24068ec41c0a294396d6daa5b5e654df0da | tests/Clock.cpp | tests/Clock.cpp | static const char rcsid[] = "$Id: Clock.cpp,v 1.4 2001-03-27 16:14:00 legoater Exp $";
/*
* See the COPYING file for the terms of usage and distribution.
*/
#include <stdlib.h>
#include <sys/time.h> // for struct timeval
#ifdef __osf__
# include <machine/builtins.h> // for __RPCC()
#elif __linux__
# ... | static const char rcsid[] = "$Id: Clock.cpp,v 1.5 2001-04-10 14:39:09 bastiaan Exp $";
/*
* See the COPYING file for the terms of usage and distribution.
*/
#include <stdlib.h>
#include <sys/time.h> // for struct timeval
#ifdef __osf__
# include <machine/builtins.h> // for __RPCC()
#elif __linux__
# ... | Make it compile on other platforms than Linux and Tru64. | Make it compile on other platforms than Linux and Tru64.
| C++ | lgpl-2.1 | robotics-at-maryland/log4cpp,robotics-at-maryland/log4cpp,robotics-at-maryland/log4cpp |
065c2c818f7d0c4f2ee6dc3e62db19ce517939de | stuff/math.hh | stuff/math.hh | #ifndef DUNE_STUFF_MATH_HH
#define DUNE_STUFF_MATH_HH
template <typename T>
bool isnan( T x ) { return !(x==x); }
namespace Stuff {
/** \todo DOCME **/
template <class SomeRangeType, class OtherRangeType >
static double colonProduct( const SomeRangeType& arg1,
const OtherRangeType& arg2 )
{
dune_static_ass... | #ifndef DUNE_STUFF_MATH_HH
#define DUNE_STUFF_MATH_HH
namespace Stuff {
/** \todo DOCME **/
template <class SomeRangeType, class OtherRangeType >
static double colonProduct( const SomeRangeType& arg1,
const OtherRangeType& arg2 )
{
dune_static_assert( SomeRangeType::cols == SomeRangeType::rows
&& OtherRa... | remove useles isnan function | remove useles isnan function
| C++ | bsd-2-clause | renemilk/DUNE-Stuff,renemilk/DUNE-Stuff,renemilk/DUNE-Stuff |
09a4e870114644c57b3f3b7f0f50319a004feba0 | src/ogvr/PluginKit/PluginRegistration.cpp | src/ogvr/PluginKit/PluginRegistration.cpp | /** @file
@brief Implementation
@date 2014
@author
Ryan Pavlik
<ryan@sensics.com>
<http://sensics.com>
*/
// Copyright 2014 Sensics, 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 obtai... | /** @file
@brief Implementation
@date 2014
@author
Ryan Pavlik
<ryan@sensics.com>
<http://sensics.com>
*/
// Copyright 2014 Sensics, 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 obtai... | Remove unused code. | Remove unused code.
| C++ | apache-2.0 | Armada651/OSVR-Core,feilen/OSVR-Core,godbyk/OSVR-Core,d235j/OSVR-Core,d235j/OSVR-Core,OSVR/OSVR-Core,feilen/OSVR-Core,OSVR/OSVR-Core,leemichaelRazer/OSVR-Core,d235j/OSVR-Core,feilen/OSVR-Core,godbyk/OSVR-Core,feilen/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,OSVR/OSVR-Core,leemichaelRazer... |
5248049c2fe2267e605d7d2f1dae052fc133703c | src/osvr/Common/PathTreeSerialization.cpp | src/osvr/Common/PathTreeSerialization.cpp | /** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 L... | /** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 L... | Simplify path tree serialization. | Simplify path tree serialization.
| C++ | apache-2.0 | leemichaelRazer/OSVR-Core,leemichaelRazer/OSVR-Core,godbyk/OSVR-Core,OSVR/OSVR-Core,feilen/OSVR-Core,Armada651/OSVR-Core,OSVR/OSVR-Core,Armada651/OSVR-Core,godbyk/OSVR-Core,d235j/OSVR-Core,d235j/OSVR-Core,OSVR/OSVR-Core,godbyk/OSVR-Core,feilen/OSVR-Core,feilen/OSVR-Core,godbyk/OSVR-Core,feilen/OSVR-Core,feilen/OSVR-Cor... |
2f6a5f1614f4c5c80a8bad3b8827aefcfbf3ef1f | mha/plugins/core/identity/identity.cpp | mha/plugins/core/identity/identity.cpp | // This file is part of the HörTech Open Master Hearing Aid (openMHA)
// Copyright © 2018 HörTech gGmbH
//
// openMHA 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, version 3 of the License.
//
// op... | // This file is part of the HörTech Open Master Hearing Aid (openMHA)
// Copyright © 2018 HörTech gGmbH
//
// openMHA 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, version 3 of the License.
//
// op... | Fix typo causing warning on macOS | Fix typo causing warning on macOS
| C++ | agpl-3.0 | HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA,HoerTech-gGmbH/openMHA |
244b9289c6c7709a0b5a47918bfa057b668a21a2 | api/messaging_service.cc | api/messaging_service.cc | /*
* Copyright 2015 Cloudius Systems
*/
#include "messaging_service.hh"
#include "message/messaging_service.hh"
#include "api/api-doc/messaging_service.json.hh"
#include <iostream>
#include <sstream>
using namespace httpd::messaging_service_json;
using namespace net;
namespace api {
using client = rpc::protocol<se... | /*
* Copyright 2015 Cloudius Systems
*/
#include "messaging_service.hh"
#include "message/messaging_service.hh"
#include "rpc/rpc_types.hh"
#include "api/api-doc/messaging_service.json.hh"
#include <iostream>
#include <sstream>
using namespace httpd::messaging_service_json;
using namespace net;
namespace api {
us... | Use get_stats | api/messaging_service: Use get_stats
Hide rpc::protocol<serializer, messaging_verb>::client from it.
| C++ | agpl-3.0 | tempbottle/scylla,kangkot/scylla,avikivity/scylla,asias/scylla,capturePointer/scylla,senseb/scylla,victorbriz/scylla,linearregression/scylla,shaunstanislaus/scylla,justintung/scylla,capturePointer/scylla,bowlofstew/scylla,respu/scylla,senseb/scylla,wildinto/scylla,eklitzke/scylla,phonkee/scylla,avikivity/scylla,kangkot... |
1492cd0eec11ec3e3a1000cc2a60700b0f690dad | src/plugins/designer/formeditorplugin.cpp | src/plugins/designer/formeditorplugin.cpp | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial license... | /**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial license... | Work around problems with kde 4.2.0 by checking for that exact version. | Work around problems with kde 4.2.0 by checking for that exact version.
Need to remove that at one point, but having someone report it one day
after we tried to remove this, means not now.
| C++ | lgpl-2.1 | KDE/android-qt-creator,bakaiadam/collaborative_qt_creator,amyvmiwei/qt-creator,malikcjm/qtcreator,yinyunqiao/qtcreator,AltarBeastiful/qt-creator,yinyunqiao/qtcreator,darksylinc/qt-creator,hdweiss/qt-creator-visualizer,omniacreator/qtcreator,dmik/qt-creator-os2,syntheticpp/qt-creator,jonnor/qt-creator,KDAB/KDAB-Creator,... |
b8121d9769d16edb3154f3d1f999f4ddea61d7a6 | cpp/tests/systemintegration-tests/ProviderReregistrationControllerTest.cpp | cpp/tests/systemintegration-tests/ProviderReregistrationControllerTest.cpp | /*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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 requir... | /*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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 requir... | fix sporadical failing test for ProviderReregistrationController Test | [C++] fix sporadical failing test for ProviderReregistrationController Test
- increase the timeout to be sure that registration is done before
notification
Change-Id: I6928125734642f6578bbe774bddaee4cbca41f51
| C++ | apache-2.0 | bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr |
5869ad582a90b15276f0810a680ebd158bafa2c3 | app/demo/src/lr_main.cpp | app/demo/src/lr_main.cpp | #include "lr_app.hpp"
#include <gflags/gflags.h>
#include <glog/logging.h>
DEFINE_int32(num_app_threads, 1, "Number of app threads in this client");
DEFINE_string(input_dir, "", "Data location");
DEFINE_double(learning_rate, 1.0, "Learning rate.");
DEFINE_double(lambda, 1000, "L2 regularization strength.");
DEFINE_int... | #include "lr_app.hpp"
#include <gflags/gflags.h>
#include <glog/logging.h>
DEFINE_string(input_dir, "", "Data location");
DEFINE_double(learning_rate, 1.0, "Learning rate.");
DEFINE_double(lambda, 1000, "L2 regularization strength.");
DEFINE_int32(batch_size, 100, "mini batch size");
DEFINE_int32(w_staleness, 0, "stal... | Fix gflags bug. | Fix gflags bug.
| C++ | bsd-3-clause | petuum/public,petuum/public,petuum/public,petuum/public,petuum/public |
4c6b9035dd349e613fe5ee66a16b82b6464a353a | m-keyboard/mkeyboardsettings.cpp | m-keyboard/mkeyboardsettings.cpp | /* * This file is part of m-keyboard *
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Nokia Corporation (directui@nokia.com)
*
* If you have questions regarding the use of this file, please contact
* Nokia at directui@nokia.com.
*
* This library is free ... | /* * This file is part of m-keyboard *
*
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* Contact: Nokia Corporation (directui@nokia.com)
*
* If you have questions regarding the use of this file, please contact
* Nokia at directui@nokia.com.
*
* This library is free ... | support reading Chinese input method layout files for settings | Changes: support reading Chinese input method layout files for settings
RevBy: Pekka Vuorela
Details: Setting widget should read the Chinese input method layou files
and display them together with our latin layouts.
| C++ | bsd-3-clause | RHawkeyed/plugins,KDE/plasma-maliit-plugins,develersrl/maliit-demo-qml,RHawkeyed/plugins,RHawkeyed/plugins,KDE/plasma-maliit-plugins,KDE/plasma-maliit-plugins,RHawkeyed/plugins,maliit/plugins,maliit/plugins,develersrl/maliit-demo-qml,RHawkeyed/plugins,KDE/plasma-maliit-plugins,develersrl/maliit-demo-qml,maliit/plugins,... |
c301ce440f2a29eabcb1937f987f1b8d0d60c578 | Modules/OpenIGTLink/Filters/mitkImageToIGTLMessageFilter.cpp | Modules/OpenIGTLink/Filters/mitkImageToIGTLMessageFilter.cpp | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | Fix incomplete switch block | Fix incomplete switch block
| C++ | bsd-3-clause | MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK,MITK/MITK |
848f7497a78834700921ffbd5db51548ae2b003e | src/stan/lang/ast/node/algebra_solver.hpp | src/stan/lang/ast/node/algebra_solver.hpp | #ifndef STAN_LANG_AST_NODE_ALGEBRA_SOLVER_HPP
#define STAN_LANG_AST_NODE_ALGEBRA_SOLVER_HPP
#include <stan/lang/ast/node/expression.hpp>
#include <string>
namespace stan {
namespace lang {
struct expression;
/**
* Structure for algebraic solver statement.
*/
struct algebra_solver {
/**... | #ifndef STAN_LANG_AST_NODE_ALGEBRA_SOLVER_HPP
#define STAN_LANG_AST_NODE_ALGEBRA_SOLVER_HPP
#include <stan/lang/ast/node/expression.hpp>
#include <string>
namespace stan {
namespace lang {
struct expression;
/**
* Structure for algebraic solver statement.
*/
struct algebra_solver {
/**... | correct doxygen doc (jenkis). | correct doxygen doc (jenkis).
| C++ | bsd-3-clause | stan-dev/stan,stan-dev/stan,stan-dev/stan,stan-dev/stan,stan-dev/stan |
04d0676f86b0de387c3eab7e418aeb75a61d6e58 | core/semaphore.hh | core/semaphore.hh | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | Introduce get_units() | semaphore: Introduce get_units()
Utility for safe temporary acquisition of semaphore units with
flexible scope. Unlike with_semaphore(), the scope of unit holding is
not limited to a single async lambda.
Example:
return get_units(sem, memory_footprint).then([] (auto mem_permit) {
return read_frame().then([me... | C++ | apache-2.0 | scylladb/seastar,cloudius-systems/seastar,dreamsxin/seastar,avikivity/seastar,cloudius-systems/seastar,dreamsxin/seastar,syuu1228/seastar,avikivity/seastar,syuu1228/seastar,scylladb/seastar,scylladb/seastar,dreamsxin/seastar,cloudius-systems/seastar,avikivity/seastar,syuu1228/seastar |
987626d8ec49c3d844905f7f1d4318816336eeb9 | CORRFW/test/AliCFTaskForUnfolding.cxx | CORRFW/test/AliCFTaskForUnfolding.cxx | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | update for compilation | update for compilation
| C++ | bsd-3-clause | SHornung1/AliPhysics,dlodato/AliPhysics,fbellini/AliPhysics,dstocco/AliPhysics,jgronefe/AliPhysics,AudreyFrancisco/AliPhysics,dlodato/AliPhysics,mpuccio/AliPhysics,pchrista/AliPhysics,pbuehler/AliPhysics,AMechler/AliPhysics,yowatana/AliPhysics,pchrista/AliPhysics,amaringarcia/AliPhysics,amatyja/AliPhysics,alisw/AliPhys... |
fc4bc9715dae07a1e1c315122ef5794475814098 | tests/dockey/dockey_test.cc | tests/dockey/dockey_test.cc | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020 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 2020 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
*
* ... | Fix MSVC nodiscard warnings | dockey_test.cc: Fix MSVC nodiscard warnings
MSVC (with C++17) warns that the return value of make_unique<> is
ignored in this test:
dockey_test.cc(36): warning C4834: discarding return value of function with 'nodiscard' attribute
Change-Id: I783bea2dcb712742694f8ec6264d547eba17cda1
Reviewed-on: http://review.cou... | C++ | bsd-3-clause | daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine |
88198b08d41a105d2d22292b605d72b668443766 | src/node_usb.cc | src/node_usb.cc | #include "node_usb.h"
#include "uv_async_queue.h"
NAN_METHOD(SetDebugLevel);
NAN_METHOD(GetDeviceList);
NAN_METHOD(EnableHotplugEvents);
NAN_METHOD(DisableHotplugEvents);
void initConstants(Local<Object> target);
libusb_context* usb_context;
#ifdef USE_POLL
#include <poll.h>
#include <sys/time.h>
std::map<int, uv_p... | #include "node_usb.h"
#include "uv_async_queue.h"
NAN_METHOD(SetDebugLevel);
NAN_METHOD(GetDeviceList);
NAN_METHOD(EnableHotplugEvents);
NAN_METHOD(DisableHotplugEvents);
void initConstants(Local<Object> target);
libusb_context* usb_context;
#ifdef USE_POLL
#include <poll.h>
#include <sys/time.h>
std::map<int, uv_p... | add error constants | add error constants | C++ | mit | marcopiraccini/electron-usb,tessel/node-usb,marcopiraccini/electron-usb,marcopiraccini/electron-usb,stberger3040/node-usb,tessel/node-usb,stberger3040/node-usb,stberger3040/node-usb,stberger3040/node-usb,marcopiraccini/electron-usb,nonolith/node-usb,tessel/node-usb,SimplyComplexCo/node-usb,rhuehn/node-usb,rhuehn/node-u... |
264e09f890959f15125e4c0fb5b091b9e341faae | tests/tests.cpp | tests/tests.cpp | /*
* Copyright 2018 Markus Lindelöw
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publis... | /*
* Copyright 2018 Markus Lindelöw
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publis... | Rename init test | Rename init test
| C++ | mit | dosshell/tinycsockets,dosshell/tinycsockets,dosshell/tinycsockets |
59bad57fe94b4b02422fad8d18826acf7bedfde6 | Core/Stimuli/OpenGLContextManager.cpp | Core/Stimuli/OpenGLContextManager.cpp | /**
* OpenGLContextManager.cpp
*
* Created by David Cox on Thu Dec 05 2002.
* Copyright (c) 2002 MIT. All rights reserved.
*/
#include "OpenGLContextManager.h"
#include "StandardVariables.h"
#include "Experiment.h"
#include "Utilities.h"
#include "Event.h"
#include "ComponentRegistry.h"
using namespace mw;
... | /**
* OpenGLContextManager.cpp
*
* Created by David Cox on Thu Dec 05 2002.
* Copyright (c) 2002 MIT. All rights reserved.
*/
#include "OpenGLContextManager.h"
#include "StandardVariables.h"
#include "Experiment.h"
#include "Utilities.h"
#include "Event.h"
#include "ComponentRegistry.h"
using namespace mw;
... | Allow the fullscreen opengl context to accept mouse events (useful for plugins that allow for manual exploratory receptive field mapping). Effectively no consequence unless a plugin registers to receive these events. | Allow the fullscreen opengl context to accept
mouse events (useful for plugins that allow for
manual exploratory receptive field mapping).
Effectively no consequence unless a plugin
registers to receive these events. | C++ | mit | mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks |
4d971021467dfad3f4e763dd19996cb6edcfd77a | src/pstring.cxx | src/pstring.cxx | /*
* String allocation.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "pool.hxx"
#include "util/CharUtil.hxx"
#include <algorithm>
#include <assert.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
static char *
Copy(char *dest, const char *src, size_t n)
{
return (char *)mempcpy(dest, ... | /*
* String allocation.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "pool.hxx"
#include "util/CharUtil.hxx"
#include <algorithm>
#include <assert.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
static char *
Copy(char *dest, const char *src, size_t n)
{
return std::copy_n(src, n, de... | use std::copy_n() | pstring: use std::copy_n() | C++ | bsd-2-clause | CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy |
b52e0241c03a257f96bd9c77788eff5b1a7fd437 | lib/CodeGen/PHIElimination.cpp | lib/CodeGen/PHIElimination.cpp | //===-- PhiElimination.cpp - Eliminate PHI nodes by inserting copies ------===//
//
// This pass eliminates machine instruction PHI nodes by inserting copy
// instructions. This destroys SSA information, but is the desired input for
// some register allocators.
//
//===-------------------------------------------------... | //===-- PhiElimination.cpp - Eliminate PHI nodes by inserting copies ------===//
//
// This pass eliminates machine instruction PHI nodes by inserting copy
// instructions. This destroys SSA information, but is the desired input for
// some register allocators.
//
//===-------------------------------------------------... | Use a kill, not a dead definition, update comment | Use a kill, not a dead definition, update comment
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@6131 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPU... |
a61fab8c6d11bddeacec99c4b21278e1008fd08c | lib/Transforms/Scalar/ADCE.cpp | lib/Transforms/Scalar/ADCE.cpp | //===- ADCE.cpp - Code to perform aggressive dead code elimination --------===//
//
// This file implements "aggressive" dead code elimination. ADCE is DCe where
// values are assumed to be dead until proven otherwise. This is similar to
// SCCP, except applied to the liveness of values.
//
//===--------------------... | //===- ADCE.cpp - Code to perform aggressive dead code elimination --------===//
//
// This file implements "aggressive" dead code elimination. ADCE is DCe where
// values are assumed to be dead until proven otherwise. This is similar to
// SCCP, except applied to the liveness of values.
//
//===--------------------... | Add code to ensure that no PHI nodes are left laying around with their arguments dropped. This fixes bug: test/Regression/Transforms/ADCE/2002-07-17-PHIAssertion.ll | Add code to ensure that no PHI nodes are left laying around with their
arguments dropped. This fixes bug:
test/Regression/Transforms/ADCE/2002-07-17-PHIAssertion.ll
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@3134 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | bsd-2-clause | dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,a... |
1f64d5303e3cc3f105b72bc5a80cabc9a625fcc5 | src/startup.cxx | src/startup.cxx | #ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include <string>
#include <iostream>
#include <fstream>
#include <set>
#include <vector>
#include <list>
#include <unistd.h>
#include "startup.hxx"
#include "interp.hxx"
#include "cmd/list.hxx"
#include "options.... | #ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include <string>
#include <iostream>
#include <fstream>
#include <set>
#include <vector>
#include <list>
#include <unistd.h>
#include "startup.hxx"
#include "interp.hxx"
#include "cmd/list.hxx"
#include "options.... | Fix inverted test for chdir(). | Fix inverted test for chdir().
| C++ | bsd-3-clause | AltSysrq/tglng |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.