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
5eb7b97a72571877b364129e698ad7aeb6ff1c76
src/native/tchclient/cefclient/tch_add/TchErrorHandler.cc
src/native/tchclient/cefclient/tch_add/TchErrorHandler.cc
#include "TchErrorHandler.h" #include <stdio.h> #ifdef OS_WIN #include <Windows.h> #endif // OS_WIN namespace Tnelab{ TchErrorHandler::TchErrorDelegate TchErrorHandler::_tch_error_delegate = 0; void TchErrorHandler::OnTchError(int error_code, std::string error_msg) { if (_tch_error_delegate != 0) { _tch_error_...
#include "TchErrorHandler.h" #include <stdio.h> #ifdef OS_WIN #include <Windows.h> #endif // OS_WIN namespace Tnelab{ TchErrorHandler::TchErrorDelegate TchErrorHandler::_tch_error_delegate = 0; void TchErrorHandler::OnTchError(int error_code, std::string error_msg) { if (_tch_error_delegate != 0) { _tch_error_...
修复#3,使用MessageBoxA代替AllocConsole
修复#3,使用MessageBoxA代替AllocConsole
C++
mit
tnelab/tchapp,tnelab/tchapp,tnelab/tchapp,tnelab/tchapp,tnelab/tchapp,tnelab/tchapp
d57b0306681f9405d222a0c1199b11469198d2c0
src/target_detection/src/usbCamera.cpp
src/target_detection/src/usbCamera.cpp
#include "usbCamera.h" enum Default { DEFAULT_CAMERA_INDEX = 0, DEFAULT_FPS = 1 }; USBCamera::USBCamera(int frameRate, int cameraIndex, string hostname): it(nh), videoStream(cameraIndex) { nh.param<int>("cameraIndex", cameraIndex, DEFAULT_CAMERA_INDEX); nh.param<int>("...
#include "usbCamera.h" enum Default { DEFAULT_CAMERA_INDEX = 0, DEFAULT_FPS = 1 }; USBCamera::USBCamera(int frameRate, int cameraIndex, string hostname): it(nh), videoStream(cameraIndex) { nh.param<int>("cameraIndex", cameraIndex, DEFAULT_CAMERA_INDEX); nh.param<int>("...
Revert to BGR color on camera to accommodate OpenCV
Revert to BGR color on camera to accommodate OpenCV
C++
mit
BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS,BCLab-UNM/SwarmBaseCode-ROS
32e1ed107beffb688a351d5c3d061061d47b2076
Lia/list/zip.hpp
Lia/list/zip.hpp
#ifndef LIA_ZIP_LIST_COMP_HPP #define LIA_ZIP_LIST_COMP_HPP #include "../detail/type_traits.hpp" #include <tuple> #include <vector> namespace lia { namespace detail { template<template<typename...> class Cont, typename T> const T& forward_index(const Cont<T>& cont, unsigned i) { return cont[i]; } template<templ...
#ifndef LIA_ZIP_LIST_COMP_HPP #define LIA_ZIP_LIST_COMP_HPP #include "../detail/type_traits.hpp" #include <tuple> #include <vector> namespace lia { namespace detail { template<template<typename...> class Cont, typename T> const T& forward_index(const Cont<T>& cont, unsigned i) { return cont[i]; } template<templ...
Fix zip
Fix zip
C++
mit
Rapptz/Lia
414469854072121a2e91aeed25a049005fb9d1ea
Library/OSRM.cpp
Library/OSRM.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 ...
make data store less verbose in release mode
make data store less verbose in release mode
C++
bsd-2-clause
jpizarrom/osrm-backend,felixguendling/osrm-backend,yuryleb/osrm-backend,alex85k/Project-OSRM,arnekaiser/osrm-backend,ammeurer/osrm-backend,KnockSoftware/osrm-backend,oxidase/osrm-backend,bjtaylor1/Project-OSRM-Old,prembasumatary/osrm-backend,alex85k/Project-OSRM,antoinegiret/osrm-geovelo,antoinegiret/osrm-backend,Congg...
0c6d72796a186812850be3cab5322afd238151b4
paramset.hpp
paramset.hpp
/* paramset: A Parameter Management Utility for C++ https://github.com/tuem/paramset Copyright 2017 Takashi Uemura 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/license...
/* paramset: A Parameter Management Utility for C++ https://github.com/tuem/paramset Copyright 2017 Takashi Uemura 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/license...
fix compilation error with clang
fix compilation error with clang
C++
apache-2.0
tuem/paramset
17d5a82102fd7ca11009465866eb3db1ccd0b7a6
code/rtkCudaForwardProjectionImageFilter.cxx
code/rtkCudaForwardProjectionImageFilter.cxx
/*========================================================================= * * Copyright RTK Consortium * * 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.apa...
/*========================================================================= * * Copyright RTK Consortium * * 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.apa...
Fix style
Fix style
C++
apache-2.0
ldqcarbon/RTK,ipsusila/RTK,dsarrut/RTK,fabienmomey/RTK,ipsusila/RTK,fabienmomey/RTK,fabienmomey/RTK,dsarrut/RTK,ipsusila/RTK,ldqcarbon/RTK,SimonRit/RTK,ldqcarbon/RTK,dsarrut/RTK,ipsusila/RTK,fabienmomey/RTK,SimonRit/RTK,SimonRit/RTK,ipsusila/RTK,SimonRit/RTK,ldqcarbon/RTK,dsarrut/RTK,fabienmomey/RTK,ldqcarbon/RTK,ldqca...
678a71414586ec0c1c9a3acbdf535ecdc2077ad3
Metafuck/Interpreter/ConvenienceFuck.cpp
Metafuck/Interpreter/ConvenienceFuck.cpp
#include "ConvenienceFuck.h" #include <iostream> #include <fstream> void BinaryInput::get(char& c) { if (front_) { c = data_.front(); data_.pop_front(); } else { c = data_.back(); data_.pop_back(); } } BinaryInput& BinaryInput::operator << (char c) { data_.push_back(c); return *this; } BinaryInput& Bi...
#include "ConvenienceFuck.h" #include <iostream> #include <fstream> // test void BinaryInput::get(char& c) { if (front_) { c = data_.front(); data_.pop_front(); } else { c = data_.back(); data_.pop_back(); } } BinaryInput& BinaryInput::operator << (char c) { data_.push_back(c); return *this; } Binary...
Test Commit 5cript
Test Commit 5cript
C++
mit
leMaik/Metafuck,leMaik/Metafuck
d4ee239aed58cc207ce3c1a5c9b48a287ec0ec15
src/CNewton.cpp
src/CNewton.cpp
/** * CNewton.cpp * Note: modified by Yongqun He from GepasiDoc class of the gepasi. * */ #include "CNewton.h" //default constructor CNewton::CNewton() { mModel = NULL; mNewtonLimit = DefaultNewtonLimit; mSs_nfunction=0; mSs_solution = 0; mSs_x = NULL; mSs_xnew = NULL; mSs_dxdt = NULL; mSs_h ...
/** * CNewton.cpp * Note: modified by Yongqun He from GepasiDoc class of the gepasi. * */ #include "CNewton.h" //default constructor CNewton::CNewton() { mModel = NULL; mNewtonLimit = DefaultNewtonLimit; mSs_nfunction=0; mSs_solution = 0; mSs_x = NULL; mSs_xnew = NULL; mSs_dxdt = NULL; mSs_h ...
fix bugs in init_x_new(), modify constructors
fix bugs in init_x_new(), modify constructors
C++
artistic-2.0
jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,jonasfoe/COPASI,copasi/COPASI,copasi/COPASI,jonasfoe/COPASI,jonasfoe/COPASI
3c8870a1d81ebe8ffb250f11d2189fa708327da9
src/tests/perf_tests/ANGLEPerfTest.cpp
src/tests/perf_tests/ANGLEPerfTest.cpp
// // Copyright (c) 2014 The ANGLE 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. // #include "ANGLEPerfTest.h" #include "third_party/perf/perf_test.h" #include <iostream> #include <cassert> ANGLEPerfTest::ANGLEPerfTest(c...
// // Copyright (c) 2014 The ANGLE 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. // #include "ANGLEPerfTest.h" #include "third_party/perf/perf_test.h" #include <iostream> #include <cassert> ANGLEPerfTest::ANGLEPerfTest(c...
Use 'score' units.
perf_tests: Use 'score' units. The dashboard automatically marks 'frames' as 'lower is better', while 'score' is automatically marked as 'higher is better'. Hence, use score instead of frames. BUG=468852 Change-Id: I02b3a9e4b74989793d4bfbf21a94e43670b3e028 Reviewed-on: https://chromium-review.googlesource.com/266522...
C++
bsd-3-clause
csa7mdm/angle,crezefire/angle,mybios/angle,larsbergstrom/angle,crezefire/angle,bsergean/angle,mybios/angle,csa7mdm/angle,domokit/waterfall,ppy/angle,mrobinson/rust-angle,ghostoy/angle,MSOpenTech/angle,mlfarrell/angle,mybios/angle,ghostoy/angle,crezefire/angle,vvuk/angle,mikolalysenko/angle,MSOpenTech/angle,csa7mdm/angl...
0d8deae65ed07b4a89d5a6b4a9f04201db07809a
qmljs_value.cpp
qmljs_value.cpp
/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the V4VM module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees h...
/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the V4VM module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees h...
Fix sameValue() for integer vs double 0
Fix sameValue() for integer vs double 0 Change-Id: Id56699a3e3624c644b14c6ece847a91da0ea7004 Reviewed-by: Simon Hausmann <a975102812d593b3191088e3d0aeaeb6f11dbcf5@digia.com>
C++
lgpl-2.1
mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,qmlc/qtdeclarative...
dde900e8a350db4baeb6b0ffb3bb65672fbc5e31
qterm/qterm.cpp
qterm/qterm.cpp
#include <QPainter> #include <QAbstractEventDispatcher> #include <QApplication> #include <QPaintEvent> #include <QFontMetrics> #include <qterm.h> #include <stdio.h> #include <QKeyEvent> #include <QTimer> #include <sys/select.h> #include <errno.h> #ifdef __QNX__ #include <sys/types.h> #include <sys/stat.h> #include <fcn...
#include <QPainter> #include <QAbstractEventDispatcher> #include <QApplication> #include <QPaintEvent> #include <QFontMetrics> #include <qterm.h> #include <stdio.h> #include <QKeyEvent> #include <QTimer> #include <sys/select.h> #include <errno.h> #ifdef __QNX__ #include <sys/types.h> #include <sys/stat.h> #include <fcn...
Subtract keyboard size in the way appropriate to bbndk1.0
Subtract keyboard size in the way appropriate to bbndk1.0
C++
apache-2.0
absmall/libterm,absmall/libterm
64d0563872b7727b1e61fa56c72b1df510304edb
Runtime/World/CTeamAiMgr.hpp
Runtime/World/CTeamAiMgr.hpp
#pragma once #include "Runtime/RetroTypes.hpp" #include "Runtime/World/CEntity.hpp" #include <zeus/CVector3f.hpp> namespace urde { class CStateManager; class CAi; class CTeamAiRole { friend class CTeamAiMgr; public: enum class ETeamAiRole { Invalid = -1, Initial, Melee, Ranged, Unknown, Unassigned }; private:...
#pragma once #include "Runtime/RetroTypes.hpp" #include "Runtime/World/CEntity.hpp" #include <zeus/CVector3f.hpp> namespace urde { class CStateManager; class CAi; class CTeamAiRole { friend class CTeamAiMgr; public: enum class ETeamAiRole { Invalid = -1, Initial, Melee, Ranged, Unknown, Unassigned }; private:...
Initialize x90_timeSinceMelee and x90_timeSinceRanged to 0.0f in constructor
CTeamAiMgr: Initialize x90_timeSinceMelee and x90_timeSinceRanged to 0.0f in constructor Makes all class members have a deterministic initial state.
C++
mit
AxioDL/PathShagged,AxioDL/PathShagged,AxioDL/PathShagged
e5a66e1160796359d0c0264655b9af21ccfa5cbc
src/nostalgia/player/main.cpp
src/nostalgia/player/main.cpp
/* * Copyright 2016 - 2019 gtalent2@gmail.com * * 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/MPL/2.0/. */ #include <ox/fs/fs.hpp> #include <ox/std/units.hpp> #include <n...
/* * Copyright 2016 - 2019 gtalent2@gmail.com * * 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/MPL/2.0/. */ #include <ox/fs/fs.hpp> #include <ox/std/units.hpp> #include <n...
Fix loading from directory
[nostalgia/player] Fix loading from directory
C++
mpl-2.0
wombatant/nostalgia,wombatant/nostalgia,wombatant/nostalgia
23e5c82014fe2e080e5ded018fa99b8a6c2134fd
virvo/tools/vserver/vvserver.cpp
virvo/tools/vserver/vvserver.cpp
// Virvo - Virtual Reality Volume Rendering // Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University // Contact: Jurgen P. Schulze, jschulze@ucsd.edu // // This file is part of Virvo. // // Virvo is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser Genera...
// Virvo - Virtual Reality Volume Rendering // Copyright (C) 1999-2003 University of Stuttgart, 2004-2005 Brown University // Contact: Jurgen P. Schulze, jschulze@ucsd.edu // // This file is part of Virvo. // // Virvo is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser Genera...
create an appropriate visual
create an appropriate visual git-svn-id: a0a066a1d7ce87c7a04dae20f169ad0cd8bda35d@1488 04231f92-3938-0410-9931-e931ac552b4f
C++
lgpl-2.1
deskvox/deskvox,deskvox/deskvox,deskvox/deskvox,deskvox/deskvox,deskvox/deskvox
bee8b41205320a2c5673566fd1f75810b34f0f75
src/algorithm/rnea.hpp
src/algorithm/rnea.hpp
// // Copyright (c) 2015 CNRS // // This file is part of Pinocchio // Pinocchio 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 // 3 of the License, or (at your option) any later versio...
// // Copyright (c) 2015 CNRS // // This file is part of Pinocchio // Pinocchio 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 // 3 of the License, or (at your option) any later versio...
Correct return type
[C++] Correct return type
C++
bsd-2-clause
fvalenza/pinocchio,fvalenza/pinocchio,fvalenza/pinocchio,fvalenza/pinocchio
a9c71d620d173815f4ef9a3c74837021143dc117
OVR_SDL2_nav.cpp
OVR_SDL2_nav.cpp
// Copyright (c) 2014 Robert Kooima // // 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, publish,...
// Copyright (c) 2014 Robert Kooima // // 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, publish,...
Move relative mouse mode setting from app to nav
Move relative mouse mode setting from app to nav
C++
mit
rlk/OVR_SDL2,rlk/OVR_SDL2
e6d7539ee84fb600a96a04113d6bf0e9a64b8ccb
src/opt/array_split_rdata.cpp
src/opt/array_split_rdata.cpp
#include "opt/array_split_rdata.h" #include "design/design_util.h" #include "iroha/i_design.h" #include "iroha/resource_class.h" namespace iroha { namespace opt { namespace { class TableConverter { public: TableConverter(ITable *tab); void Convert(); private: IResource *GetRDataResource(IResource *a); boo...
#include "opt/array_split_rdata.h" #include "design/design_util.h" #include "iroha/i_design.h" #include "iroha/resource_class.h" namespace iroha { namespace opt { namespace { class TableConverter { public: TableConverter(ITable *tab); void Convert(); private: IResource *GetRDataResource(IResource *a); boo...
Add depending_insn_ and parent resource to array-rdata.
Add depending_insn_ and parent resource to array-rdata.
C++
bsd-3-clause
nlsynth/iroha,nlsynth/iroha
35f466404e4b61cfa9a2c1961669b190c739ca70
c++/connection.cpp
c++/connection.cpp
#include <assert.h> #include <string.h> #ifdef WIN32 #include <winsock2.h> #include <ws2tcpip.h> #define SHUT_RDWR SD_BOTH #else // WIN32 #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <netdb.h> #include <fcntl.h> #endif // !WIN32 #include <unordered_map> #include <set> #in...
#include <assert.h> #include <string.h> #ifdef WIN32 #include <winsock2.h> #include <ws2tcpip.h> #define SHUT_RDWR SD_BOTH #else // WIN32 #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <netdb.h> #include <fcntl.h> #endif // !WIN32 #include <unordered_map> #include <set> #in...
Fix compile warnings
Fix compile warnings
C++
mit
TheBlueMatt/RelayNode,TheBlueMatt/RelayNode,martindale/RelayNode,danoctavian/RelayNode,arnuschky/RelayNode,danoctavian/RelayNode,BitcoinRelayNetwork/RelayNode,arnuschky/RelayNode,BitcoinRelayNetwork/RelayNode,martindale/RelayNode,BitcoinRelayNetwork/RelayNode
ae428292bc1680db6b80302385f3971bdf26fefe
1v1_neckbeard_server/Server.cpp
1v1_neckbeard_server/Server.cpp
// // Server.cpp // 1v1_server // // Created by Filip Peterek on 12/12/2016. // Copyright © 2016 Filip Peterek. All rights reserved. // #include "Server.hpp" Server::Server(unsigned short clientPort, unsigned short serverPort) : _clientPort(clientPort), _serverPort(serverPort), _player1(_w...
// // Server.cpp // 1v1_server // // Created by Filip Peterek on 12/12/2016. // Copyright © 2016 Filip Peterek. All rights reserved. // #include "Server.hpp" Server::Server(unsigned short clientPort, unsigned short serverPort) : _clientPort(clientPort), _serverPort(serverPort), _player1(_w...
Update Server.cpp
Update Server.cpp
C++
apache-2.0
fpeterek/1v1-game-server,fpeterek/1v1-game-server
cb051a976bf3160df9292a55dc60cfe87932afda
src/engine/core/src/api/halley_api.cpp
src/engine/core/src/api/halley_api.cpp
#include <utility> #include "api/halley_api.h" #include <halley/plugin/plugin.h> #include "halley/audio/audio_facade.h" #include "halley/support/logger.h" #include "entry/entry_point.h" using namespace Halley; void HalleyAPI::assign() { Expects(coreInternal != nullptr); Expects(systemInternal != nullptr); core = ...
#include <utility> #include "api/halley_api.h" #include <halley/plugin/plugin.h> #include "halley/audio/audio_facade.h" #include "halley/support/logger.h" #include "entry/entry_point.h" using namespace Halley; void HalleyAPI::assign() { Expects(coreInternal != nullptr); Expects(systemInternal != nullptr); core = ...
Bump halley api version
Bump halley api version
C++
apache-2.0
amzeratul/halley,amzeratul/halley,amzeratul/halley
65c4b1abaf40e4f6dbd6d15a29f94322c17eaa2d
src/platform/lpc17xx/uart.cpp
src/platform/lpc17xx/uart.cpp
#include <string.h> #include "lpc17xx_pinsel.h" #include "lpc17xx_uart.h" #include "interface/uart.h" #include "pipeline.h" #include "config.h" #include "util/bytebuffer.h" #include "util/log.h" #include "gpio.h" // Only UART1 supports hardware flow control, so this has to be UART1 #define UART1_DEVICE (LPC_UART_TypeD...
#include <string.h> #include "lpc17xx_pinsel.h" #include "lpc17xx_uart.h" #include "interface/uart.h" #include "pipeline.h" #include "config.h" #include "util/bytebuffer.h" #include "util/log.h" #include "gpio.h" // Only UART1 supports hardware flow control, so this has to be UART1 #define UART1_DEVICE (LPC_UART_TypeD...
Use blocking writes to UART on LP17xx to work around race condition.
Use blocking writes to UART on LP17xx to work around race condition. Fixed #306.
C++
bsd-3-clause
openxc/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware
446a3d717711962fa980a4c5a39920d77f85fe8d
src/LexAPDL.cxx
src/LexAPDL.cxx
#include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdio.h> #include <stdarg.h> #include "Platform.h" #include "PropSet.h" #include "Accessor.h" #include "StyleContext.h" #include "KeyWords.h" #include "Scintilla.h" #include "SciLexer.h" static inline bool IsAWordChar(const int ch) { return (ch ...
// Scintilla source code edit control /** @file LexAPDL.cxx ** Lexer for APDL. Based on the lexer for Assembler by The Black Horus. ** By Hadar Raz. **/ // Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #includ...
Update from Hadar Raz to add more lexical classes.
Update from Hadar Raz to add more lexical classes.
C++
isc
rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror,rhaberkorn/scintilla-mirror
1b06789707ec4ba6300bb724389944a629619704
system_wrappers/source/thread_posix.cc
system_wrappers/source/thread_posix.cc
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Set thread scheduling parameters inside the new thread.
Set thread scheduling parameters inside the new thread. This makes it possible to restrict threads from modifying scheduling parameters of another thread in the Chrome Linux sandbox. BUG= R=henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/28539004 git-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c4...
C++
bsd-3-clause
svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758,svn2github/webrtc-Revision-8758
bc4732e13a0dedd4374cbb5f96c8bb32d767bc34
Response.cpp
Response.cpp
/*******************************************************************************/ #include "ResponseRequest.h" #include "LogFile.h" /*******************************************************************************/ string ResponseRequest::Path_folder() { char szPath[MAX_PATH] = {}; GetModuleFileNameA(NULL, szPath, ...
/*******************************************************************************/ #include "ResponseRequest.h" #include "LogFile.h" /*******************************************************************************/ string ResponseRequest::Path_folder() { char szPath[MAX_PATH] = {}; GetModuleFileNameA(NULL, szPath, ...
repair code response
repair code response
C++
mpl-2.0
Cempl/http-server-ws,Cempl/http-server-ws,Cempl/http-server-ws,Cempl/http-server-ws
51b42af047c40d45447b6cda6648982ea8b439fc
src/base/addr_range.hh
src/base/addr_range.hh
/* * Copyright (c) 2012 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
/* * Copyright (c) 2012 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
Fix a bug in the address interleaving
base: Fix a bug in the address interleaving This patch fixes a minor (but important) typo in the matching of an address to an interleaved range.
C++
bsd-3-clause
andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin,andrewfu0325/gem5-aladdin
0fb94d2fb11a7b95e5218f5a14562f139ec8af84
src/input_output/FGPropertyManager.cpp
src/input_output/FGPropertyManager.cpp
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Header: FGPropertyManager.cpp Author: Tony Peden Based on work originally by David Megginson Date: 2/2002 ------------- Copyright (C) 2002 ------------- This program is free software; you can redis...
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Header: FGPropertyManager.cpp Author: Tony Peden Based on work originally by David Megginson Date: 2/2002 ------------- Copyright (C) 2002 ------------- This program is free software; you can redis...
Make sanity checks before untying a property. Also make sure that, once untied, the property is no longer listed in the properties tied by JSBSim
Make sanity checks before untying a property. Also make sure that, once untied, the property is no longer listed in the properties tied by JSBSim
C++
lgpl-2.1
adrcad/jsbsim,AEgisTG/jsbsim,airware/jsbsim,hrabcak/jsbsim,airware/jsbsim,airware/jsbsim,cs8425/jsbsim,hrabcak/jsbsim,cs8425/jsbsim,AEgisTG/jsbsim,tridge/jsbsim,AEgisTG/jsbsim,tridge/jsbsim,pmatigakis/jsbsim,cs8425/jsbsim,Stonelinks/jsbsim,Stonelinks/jsbsim,DolanP/jsbsim-dll,tridge/jsbsim,adrcad/jsbsim,AEgisTG/jsbsim,D...
9281d8ad4c17228a9e108b08701367400d82a315
loess.hpp
loess.hpp
#ifndef _LUTCALIB_LOESS_H #define _LUTCALIB_LOESS_H #include "ceres/ceres.h" #include "opencv2/core/core.hpp" template <int x_degree, int y_degree> struct Poly2dError { Poly2dError(double x, double y, double val, double w) : x_(x), y_(y), val_(val), w_(w) {} template <typename T> bool operator()(co...
#ifndef _LUTCALIB_LOESS_H #define _LUTCALIB_LOESS_H #include "ceres/ceres.h" #include "opencv2/core/core.hpp" template <int x_degree, int y_degree> struct Poly2dError { Poly2dError(double x, double y, double val, double w) : x_(x), y_(y), val_(val), w_(w) {} template <typename T> bool operator()(co...
allow to scale x axis of proxy poly fit
allow to scale x axis of proxy poly fit
C++
mit
hendriksiedelmann/vigra_cmake,vigralibs/vigra_cmake
f4857cb7cf7663df97747dc39aec3e84531fa5a1
src/rdb_protocol/pb_server.cc
src/rdb_protocol/pb_server.cc
// Copyright 2010-2013 RethinkDB, all rights reserved. #include "rdb_protocol/pb_server.hpp" #include "concurrency/cross_thread_watchable.hpp" #include "concurrency/watchable.hpp" #include "rdb_protocol/counted_term.hpp" #include "rdb_protocol/env.hpp" #include "rdb_protocol/profile.hpp" #include "rdb_protocol/stream_...
// Copyright 2010-2013 RethinkDB, all rights reserved. #include "rdb_protocol/pb_server.hpp" #include "concurrency/cross_thread_watchable.hpp" #include "concurrency/watchable.hpp" #include "rdb_protocol/counted_term.hpp" #include "rdb_protocol/env.hpp" #include "rdb_protocol/profile.hpp" #include "rdb_protocol/stream_...
Fix a problem with catching generic exceptions.
Fix a problem with catching generic exceptions.
C++
apache-2.0
jmptrader/rethinkdb,4talesa/rethinkdb,jesseditson/rethinkdb,dparnell/rethinkdb,4talesa/rethinkdb,catroot/rethinkdb,robertjpayne/rethinkdb,elkingtonmcb/rethinkdb,spblightadv/rethinkdb,losywee/rethinkdb,matthaywardwebdesign/rethinkdb,bchavez/rethinkdb,urandu/rethinkdb,wujf/rethinkdb,mbroadst/rethinkdb,niieani/rethinkdb,a...
d93176fde22272c83c80dd5593d2b19965a2c6f9
clangd/Threading.cpp
clangd/Threading.cpp
#include "Threading.h" #include "Trace.h" #include "llvm/ADT/ScopeExit.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/Support/Threading.h" #include <atomic> #include <thread> #ifdef __USE_POSIX #include <pthread.h> #endif namespace clang { namespace clangd { void Notification::notify() { { std::lock...
#include "Threading.h" #include "Trace.h" #include "llvm/ADT/ScopeExit.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/Support/Threading.h" #include <atomic> #include <thread> #ifdef __USE_POSIX #include <pthread.h> #elif defined(__APPLE__) #include <sys/resource.h> #endif namespace clang { namespace clangd...
Add thread priority lowering for MacOS as well
[clangd] Add thread priority lowering for MacOS as well Reviewers: ilya-biryukov Subscribers: ioeric, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D58492 git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@354765 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra,llvm-mirror/clang-tools-extra
e3d686ff15b04e74be3e919f748caab814730ed7
src/main/cpp/include/io/filesystem.hpp
src/main/cpp/include/io/filesystem.hpp
#pragma once /* MIT License Copyright (c) 2017 Blockchain-VCS 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, me...
#pragma once /* MIT License Copyright (c) 2017 Blockchain-VCS 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, me...
Unify Function Names
Unify Function Names
C++
mit
ZetaChain/ZetaChain_Native,ZetaChain/ZetaChain_Native
dc6361ad9e0c8be583b749be2ef712aca0a6547c
src/NullHMD.cpp
src/NullHMD.cpp
#include "IHMD.hpp" #include <bx/fpumath.h> #include <SDL.h> #include "Registry.hpp" namespace xveearr { namespace { const unsigned int gViewportWidth = 1280 / 2; const unsigned int gViewportHeight = 720; const float gLeftEye[] = { -50.0f, 0.0f, 0.f }; const float gRightEye[] = { 50.0f, 0.0f, 0.f }; float gLookAt[] ...
#include "IHMD.hpp" #include <bx/fpumath.h> #include <SDL.h> #include "Registry.hpp" namespace xveearr { namespace { const unsigned int gViewportWidth = 1280 / 2; const unsigned int gViewportHeight = 720; const float gLeftEye[] = { -50.0f, 0.0f, 0.f }; const float gRightEye[] = { 50.0f, 0.0f, 0.f }; float gLookAt[] ...
Add a depth target for each eye framebuffer
Add a depth target for each eye framebuffer
C++
bsd-2-clause
bullno1/xveearr,bullno1/xveearr,bullno1/xveearr
53cbf2d0d26e28e2845d622bae309e34818f0f58
src/PIDFile.cpp
src/PIDFile.cpp
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> #include <string.h> #include <string> #include <sstream> #include <sys/stat.h> #include <sys/file.h> #include <sys/types.h> #include <fcntl.h> #include <libclientserver.h> PIDFile::PIDFile(std::string Filename) { m_IsOwner = false; m_fil...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> #include <string.h> #include <string> #include <sstream> #include <sys/stat.h> #include <sys/file.h> #include <sys/types.h> #include <fcntl.h> #include <libclientserver.h> PIDFile::PIDFile(std::string Filename) { m_IsOwner = false; m_fil...
Remove debug printf
Remove debug printf
C++
mit
mistralol/libclientserver,mistralol/libclientserver
82e6097d336ee3071be7ef9194e1548c1a49f87b
views/touchui/touch_selection_controller_impl_unittest.cc
views/touchui/touch_selection_controller_impl_unittest.cc
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/utf_string_conversions.h" #include "ui/gfx/point.h" #include "ui/gfx/rect.h" #include "ui/gfx/render_text.h" #include "views/controls/t...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/utf_string_conversions.h" #include "ui/gfx/point.h" #include "ui/gfx/rect.h" #include "ui/gfx/render_text.h" #include "views/controls/t...
Fix test that started failing due to http://codereview.chromium.org/7696013/
Fix test that started failing due to http://codereview.chromium.org/7696013/ BUG=none TEST=none Review URL: http://codereview.chromium.org/7728002 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@98114 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,gavinp...
fa395f49fcad58c2d13d1cbaad15c2b7e7cfca5e
src-qt5/PCDM/src/themeStruct.cpp
src-qt5/PCDM/src/themeStruct.cpp
/* PCDM Login Manager: * Written by Ken Moore (ken@pcbsd.org) 2012/2013 * Copyright(c) 2013 by the PC-BSD Project * Available under the 3-clause BSD license */ #include "themeStruct.h" #include <QDir> void ThemeStruct::loadThemeFile(QString filePath){ qDebug() << "Loading PCDM Theme File:" << filePath; //Crea...
/* PCDM Login Manager: * Written by Ken Moore (ken@pcbsd.org) 2012/2013 * Copyright(c) 2013 by the PC-BSD Project * Available under the 3-clause BSD license */ #include "themeStruct.h" #include <QDir> void ThemeStruct::loadThemeFile(QString filePath){ qDebug() << "Loading PCDM Theme File:" << filePath; //Crea...
Change APP_STYLESHEET_END to APP_STYLESHEET_STOP to match the theme files.
Change APP_STYLESHEET_END to APP_STYLESHEET_STOP to match the theme files. The code has been looking for APP_STYLESHEET_END, whereas the themes have been using APP_STYLESHEET_STOP. It works the way that it's been, because the code also checks for the end of the file, and APP_STYLESHEET_STOP is at the end of the file, ...
C++
bsd-3-clause
trueos/pcdm,trueos/pcdm,trueos/pcdm
5ad0351a86b7f0a7bab958b3fde8c608b0d4c8ae
src/Utility.cpp
src/Utility.cpp
#include "Utility.h" #include <vector> #include <random> #include <chrono> #include <fstream> #include <algorithm> #include <string> #include <cctype> #include <iostream> namespace String { namespace { const auto whitespace = " \t\n"; } } std::vector<std::string> String::split(const std::string& ...
#include "Utility.h" #include <vector> #include <random> #include <chrono> #include <fstream> #include <algorithm> #include <string> #include <cctype> #include <iostream> namespace String { namespace { const auto whitespace = " \t\n"; } } std::vector<std::string> String::split(const std::string& ...
Delete unneeded factors in average_moves_left()
Delete unneeded factors in average_moves_left()
C++
mit
MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess
8f28548f05e5fdc0626b910e2d56a1a6c0b826dc
dune/gdt/operators/projections/lagrange.hh
dune/gdt/operators/projections/lagrange.hh
// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_OPERATORS_PROJECTIONS_LAGRANGE_HH #define DUNE_GDT_OPERATORS_PROJECTIONS_LAGRANGE_HH ...
// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_OPERATORS_PROJECTIONS_LAGRANGE_HH #define DUNE_GDT_OPERATORS_PROJECTIONS_LAGRANGE_HH ...
fix `project_lagrange`
[operators.projections.lagrange] fix `project_lagrange`
C++
bsd-2-clause
pymor/dune-gdt
21fa354c2272d2b15e7f2ab8f9c3fc8b19f12e17
src/backend.cpp
src/backend.cpp
/* Copyright (C) 2007-2008 Tanguy Krotoff <tkrotoff@gmail.com> Copyright (C) 2008 Lukas Durfina <lukas.durfina@gmail.com> Copyright (C) 2009 Fathi Boudra <fabo@kde.org> Copyright (C) 2009-2011 vlc-phonon AUTHORS <kde-multimedia@kde.org> Copyright (C) 2011-2013 Harald Sitter <sitter@kde.org> Thi...
/* Copyright (C) 2007-2008 Tanguy Krotoff <tkrotoff@gmail.com> Copyright (C) 2008 Lukas Durfina <lukas.durfina@gmail.com> Copyright (C) 2009 Fathi Boudra <fabo@kde.org> Copyright (C) 2009-2011 vlc-phonon AUTHORS <kde-multimedia@kde.org> Copyright (C) 2011-2013 Harald Sitter <sitter@kde.org> Thi...
drop useless eqeffect include in backend (should fix build)
drop useless eqeffect include in backend (should fix build)
C++
lgpl-2.1
KDE/phonon-vlc,KDE/phonon-vlc,BinChengfei/phonon-vlc,KDE/phonon-vlc,BinChengfei/phonon-vlc,BinChengfei/phonon-vlc
bb785a948b28b4967f4be24397647dc60ca8097b
src/core/encodings.cpp
src/core/encodings.cpp
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* The MIT License Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or http://flusspferd.org/contributors.txt) Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* The MIT License Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or http://flusspferd.org/contributors.txt) Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
make error messages more understandables (fixes #137)
core/encodings: make error messages more understandables (fixes #137)
C++
mit
Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd,Flusspferd/flusspferd
5d019f4d76d04976c7c7c3d07a95289d9f75dd77
src/core/utils/log.cpp
src/core/utils/log.cpp
#include "log.h" #include <algorithm> #include <array> #include <chrono> #include <exception> #include <iomanip> #include <iostream> #include <ostream> #include <string> using namespace allpix; // NOTE: we have to check for exceptions before we do the actual logging (which may also throw exceptions) DefaultLogger::D...
#include "log.h" #include <algorithm> #include <array> #include <chrono> #include <exception> #include <iomanip> #include <iostream> #include <ostream> #include <string> using namespace allpix; // NOTE: we have to check for exceptions before we do the actual logging (which may also throw exceptions) DefaultLogger::D...
change default stream from stderr to stdout
change default stream from stderr to stdout
C++
mit
Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared,Koensw/allpix-squared
b09011b2efe6c6f709b668fc9aa7f7def6563f6b
src/coverage_market.cc
src/coverage_market.cc
/* * fMBT, free Model Based Testing tool * Copyright (c) 2011, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program i...
/* * fMBT, free Model Based Testing tool * Copyright (c) 2011, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program i...
Fix usecase coverage bug when no matching action
Fix usecase coverage bug when no matching action
C++
lgpl-2.1
OMKR/fMBT,yoonkiss/fMBT,CosminNiculae/fMBT,rseymour/fMBT,violep01/fMBT,giantpinkwalrus/fMBT,acozzette/fMBT,01org/fMBT,rseymour/fMBT,mixu-/fMBT,violep01/fMBT,pombreda/fMBT,yoonkiss/fMBT,rseymour/fMBT,heivi/fMBT,pombreda/fMBT,01org/fMBT,OMKR/fMBT,rseymour/fMBT,OMKR/fMBT,acozzette/fMBT,mlq/fMBT,pyykkis/fMBT,pyykkis/fMBT,y...
5120b895f6a5ab26cc559724e96727af042e0bdd
src/bindings.cc
src/bindings.cc
// Copyright 2010, Camilo Aguilar. Cloudescape, LLC. #include "bindings.h" /* size of the event structure, not counting name */ #define EVENT_SIZE (sizeof (struct inotify_event)) /* reasonable guess as to size of 1024 events */ #define BUF_LEN (1024 * (EVENT_SIZE + 16)) namespace NodeInotify { static Per...
// Copyright 2010, Camilo Aguilar. Cloudescape, LLC. #include "bindings.h" /* size of the event structure, not counting name */ #define EVENT_SIZE (sizeof (struct inotify_event)) /* reasonable guess as to size of 1024 events */ #define BUF_LEN (1024 * (EVENT_SIZE + 16)) namespace NodeInotify { static Per...
delete javascript callback when the watch is removed
delete javascript callback when the watch is removed
C++
mit
c4milo/node-inotify,c4milo/node-inotify,edsadr/node-inotify,edsadr/node-inotify,edsadr/node-inotify,c4milo/node-inotify
209311d6431fce09f46d5a4c5f351adaf097f3f1
src/delegate/Stock.cxx
src/delegate/Stock.cxx
/* * Delegate helper pooling. * * author: Max Kellermann <mk@cm4all.com> */ #include "Stock.hxx" #include "stock/MapStock.hxx" #include "stock/Class.hxx" #include "stock/Item.hxx" #include "async.hxx" #include "failure.hxx" #include "system/fd_util.h" #include "event/Event.hxx" #include "event/Callback.hxx" #inclu...
/* * Delegate helper pooling. * * author: Max Kellermann <mk@cm4all.com> */ #include "Stock.hxx" #include "stock/MapStock.hxx" #include "stock/Class.hxx" #include "stock/Item.hxx" #include "async.hxx" #include "failure.hxx" #include "system/fd_util.h" #include "event/Event.hxx" #include "event/Callback.hxx" #inclu...
add DelegateArgs constructor
delegate/Stock: add DelegateArgs constructor
C++
bsd-2-clause
CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy
0b2cbb764effd880230f4134d9872a5db201d807
src/dev/arm/rv_ctrl.cc
src/dev/arm/rv_ctrl.cc
/* * Copyright (c) 2010 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
/* * Copyright (c) 2010 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
Add support for read of 100MHz clock in system controller.
ARM: Add support for read of 100MHz clock in system controller.
C++
bsd-3-clause
haowu4682/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,haowu4682/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,haowu4682/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5
22474c1a961da2ed348d271c8d4fec4bdbea0958
test/UnitTests/src/App/ProjectTest.cpp
test/UnitTests/src/App/ProjectTest.cpp
/*----------------------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2015-2019 OSRE ( Open Source Render Engine ) by Kim Kulling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...
/*----------------------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2015-2019 OSRE ( Open Source Render Engine ) by Kim Kulling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...
Replace predefine gnu-variables.
Replace predefine gnu-variables.
C++
mit
kimkulling/osre,kimkulling/osre,kimkulling/osre,kimkulling/osre,kimkulling/osre,kimkulling/osre,kimkulling/osre
4a0ef89e1086362558d0aba04d55fc8ccf16c59e
test/cpp/asyncprogressworkersignal.cpp
test/cpp/asyncprogressworkersignal.cpp
/********************************************************************* * NAN - Native Abstractions for Node.js * * Copyright (c) 2016 NAN contributors * * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md> ********************************************************************/ #ifndef _WIN32 #inclu...
/********************************************************************* * NAN - Native Abstractions for Node.js * * Copyright (c) 2016 NAN contributors * * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md> ********************************************************************/ #ifndef _WIN32 #inclu...
Fix broken test
Fix broken test
C++
mit
gagern/nan,nodejs/nan,eljefedelrodeodeljefe/nan,nodejs/nan,nodejs/nan,eljefedelrodeodeljefe/nan,gagern/nan,nodejs/nan,gagern/nan,eljefedelrodeodeljefe/nan,eljefedelrodeodeljefe/nan
5f20fd8b3355243f110840001b2505cdaf71d5c8
test/test_signature/test_signature.cpp
test/test_signature/test_signature.cpp
/* ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <gtest/gtest.h> #include <alcommon-ng/functor/functionsignature.hpp> #include <alcommon-ng/functor/typesignature.hpp> //#include <alcommon-ng/tools/dataperftimer.hpp> #include <vector> #include...
/* ** Author(s): ** - Cedric GESTES <gestes@aldebaran-robotics.com> ** ** Copyright (C) 2010 Aldebaran Robotics */ #include <gtest/gtest.h> #include <alcommon-ng/functor/functionsignature.hpp> #include <alcommon-ng/functor/typesignature.hpp> //#include <alcommon-ng/tools/dataperftimer.hpp> #include <vector> #include...
test boost::mpl
test boost::mpl
C++
bsd-3-clause
aldebaran/libqi,aldebaran/libqi-java,aldebaran/libqi-java,bsautron/libqi,aldebaran/libqi,aldebaran/libqi,aldebaran/libqi-java,vbarbaresi/libqi
c1fe4422bd1c1250982f46ce8482cdce65a32fb8
sum_integrated_quantities.cpp
sum_integrated_quantities.cpp
#include <iomanip> #include <Castro.H> #include <Castro_F.H> #include <Geometry.H> void Castro::sum_integrated_quantities () { int finest_level = parent->finestLevel(); Real time = state[State_Type].curTime(); Real mass = 0.0; Real momentum[3] = { 0.0 }; Real rho_E = 0.0; ...
#include <iomanip> #include <Castro.H> #include <Castro_F.H> #include <Geometry.H> void Castro::sum_integrated_quantities () { int finest_level = parent->finestLevel(); Real time = state[State_Type].curTime(); Real mass = 0.0; Real momentum[3] = { 0.0 }; Real rho_E = 0.0; ...
Fix bug in integral diagnostics: omega = 2 * pi / period, not 2 * pi * period.
Fix bug in integral diagnostics: omega = 2 * pi / period, not 2 * pi * period.
C++
mit
BoxLib-Codes/wdmerger,BoxLib-Codes/wdmerger,BoxLib-Codes/wdmerger,BoxLib-Codes/wdmerger
d4b83952c62b41ef1ad61dbec27639f409b9a6b8
src/ConnectionGraphicsObject.cpp
src/ConnectionGraphicsObject.cpp
#include "ConnectionGraphicsObject.hpp" #include <QtWidgets/QGraphicsSceneMouseEvent> #include <QtWidgets/QGraphicsDropShadowEffect> #include <QtWidgets/QGraphicsBlurEffect> #include <QtWidgets/QStyleOptionGraphicsItem> #include <QtWidgets/QGraphicsView> #include "FlowScene.hpp" #include "Connection.hpp" #include "C...
#include "ConnectionGraphicsObject.hpp" #include <QtWidgets/QGraphicsSceneMouseEvent> #include <QtWidgets/QGraphicsDropShadowEffect> #include <QtWidgets/QGraphicsBlurEffect> #include <QtWidgets/QStyleOptionGraphicsItem> #include <QtWidgets/QGraphicsView> #include "FlowScene.hpp" #include "Connection.hpp" #include "C...
Fix dereferencing nullptr (#194)
Fix dereferencing nullptr (#194) Dereferencing nullptr node causes crash on osx’s clang.
C++
bsd-3-clause
paceholder/nodeeditor
c244a601273c7fb332654913c88303aecf9f7374
tests/posit/arithmetic_reciprocate.cpp
tests/posit/arithmetic_reciprocate.cpp
// arithmetic_reciprocate.cpp: functional tests for arithmetic reciprocation // // Copyright (C) 2017-2018 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include "common.hpp" // Configure the posit template environment // ...
// arithmetic_reciprocate.cpp: functional tests for arithmetic reciprocation // // Copyright (C) 2017-2018 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include "common.hpp" // Configure the posit template environment // ...
disable manual testing
disable manual testing
C++
mit
stillwater-sc/universal,stillwater-sc/universal,stillwater-sc/universal,stillwater-sc/universal
9fdde175d66ed7d33e4e7a7f64ca7e519e0903d9
tests/src/integration/sankaku-test.cpp
tests/src/integration/sankaku-test.cpp
#include <QtTest> #include <QStringList> #include "sankaku-test.h" #include "functions.h" void SankakuTest::testHtml() { QList<Image*> images = getImages("Sankaku", "idol.sankakucomplex.com", "regex", "rating:safe", "results.html"); // Check results QCOMPARE(images.count(), 20); qDebug() << images; QCOMPARE(ima...
#include <QtTest> #include <QStringList> #include "sankaku-test.h" #include "functions.h" void SankakuTest::testHtml() { QList<Image*> images = getImages("Sankaku", "idol.sankakucomplex.com", "regex", "rating:safe", "results.html"); // Check results QCOMPARE(images.count(), 20); QCOMPARE(images[0]->md5(), QStrin...
Remove useless debug
Remove useless debug
C++
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
04cf668a830356b2de94e31c14482898b1ecadb6
tests/unit/fem/test_linearform_ext.cpp
tests/unit/fem/test_linearform_ext.cpp
// Copyright (c) 2010-2022, 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-2022, 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 tests/unit/fem/test_linearform_ext QuadratureLFIntegrator and VectorQuadratureLFIntegrator tests
Add tests/unit/fem/test_linearform_ext QuadratureLFIntegrator and VectorQuadratureLFIntegrator tests
C++
bsd-3-clause
mfem/mfem,mfem/mfem,mfem/mfem,mfem/mfem,mfem/mfem
4157ce946dc13e2d0c577740844eb77c4c3c532e
third_party/tcmalloc/allocator_shim.cc
third_party/tcmalloc/allocator_shim.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 <config.h> // When defined, different heap allocators can be used via an environment // variable set before running the program. This may r...
// 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 <config.h> // When defined, different heap allocators can be used via an environment // variable set before running the program. This may r...
Fix realloc to not call the new_handler (which is for failures) when the request was for realloc(ptr, 0). Calling realloc(ptr, 0) is valid, and we should delete ptr and return NULL.
Fix realloc to not call the new_handler (which is for failures) when the request was for realloc(ptr, 0). Calling realloc(ptr, 0) is valid, and we should delete ptr and return NULL. BUG=none TEST=none Review URL: http://codereview.chromium.org/194040 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@25700 0039d3...
C++
bsd-3-clause
ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromi...
dc84d0bfbe63b5256b508c2520a52fde4eecf17a
src/control.cpp
src/control.cpp
/* */ #include "control.h" #include "lineFollowing/lineFollowing.h" #include "objectFollowing/objectFollowing.h" #include "manual/manual.h" /* */ Control::Control() { //Initializing Message printf("Connecting to the drone\n"); printf("If there is no version number response in the next 10 seconds, please restart...
/* */ #include "control.h" #include "lineFollowing/lineFollowing.h" #include "objectFollowing/objectFollowing.h" #include "manual/manual.h" /* */ Control::Control() { //Initializing Message printf("Connecting to the drone\n"); printf("If there is no version number response in the next 10 seconds, please restart...
Fix user display issues.
Fix user display issues.
C++
bsd-3-clause
tourdrone/cvdrone,tourdrone/cvdrone
4e287db2faefe0005fcfefa4a077b907af8417ea
src/cpu/base.hh
src/cpu/base.hh
/* * Copyright (c) 2011-2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the ...
/* * Copyright (c) 2011-2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the ...
Remove unused getBranchPred() method from BaseCPU
cpu: Remove unused getBranchPred() method from BaseCPU Remove unused virtual getBranchPred() method from BaseCPU as it is not implemented by any of the CPU models. It used to always return NULL.
C++
bsd-3-clause
LingxiaoJIA/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,LingxiaoJIA/gem5,haowu4682/gem5,haowu4682/gem5,haowu4682/gem5,LingxiaoJIA/gem5,LingxiaoJIA/gem5
13bad8d61c1a1d25328ae99daf50ac71294b8bb1
src/deps_log.cc
src/deps_log.cc
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
Make sure to not write partial deps entries.
Make sure to not write partial deps entries. When two ninja instances run in parallel in the same build directory, one instance could write a deps entry header and a few ids, and then the other instance could write a file name in the middle of the deps header. When ninja reads this deps log on the next run, it will de...
C++
apache-2.0
liukd/ninja,purcell/ninja,synaptek/ninja,fuchsia-mirror/third_party-ninja,dpwright/ninja,Maratyszcza/ninja-pypi,nafest/ninja,iwadon/ninja,rjogrady/ninja,jendrikillner/ninja,nico/ninja,ctiller/ninja,sxlin/dist_ninja,tfarina/ninja,nicolasdespres/ninja,colincross/ninja,dpwright/ninja,ignatenkobrain/ninja,kissthink/ninja,a...
ce2bd472ff4df4627a2806b91e42929466e79e41
src/fb_pool.cxx
src/fb_pool.cxx
/* * An allocator for fifo_buffer objects that can return unused memory * back to the kernel. * * author: Max Kellermann <mk@cm4all.com> */ #include "fb_pool.hxx" #include "SlicePool.hxx" #include "event/CleanupTimer.hxx" #include <assert.h> static constexpr size_t FB_SIZE = 8192; static SlicePool *fb_pool; st...
/* * An allocator for fifo_buffer objects that can return unused memory * back to the kernel. * * author: Max Kellermann <mk@cm4all.com> */ #include "fb_pool.hxx" #include "SlicePool.hxx" #include "event/CleanupTimer.hxx" #include <assert.h> static constexpr size_t FB_SIZE = 8192; static SlicePool *fb_pool; st...
initialize the CleanupTimer only if requested
fb_pool: initialize the CleanupTimer only if requested Fixes some libevent warnings in unit tests.
C++
bsd-2-clause
CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy
dfedea1079979d7ef82eb81130c31c7631e7051d
src/hal/hal.cpp
src/hal/hal.cpp
/******************************************************************************* * Copyright (c) 2015 Matthijs Kooijman * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available a...
/******************************************************************************* * Copyright (c) 2015 Matthijs Kooijman * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available a...
Use a more portable way to enable and disable interrupts
Use a more portable way to enable and disable interrupts Previously, the AVR-specific cli() and sei() were used, now the generic noInterrupts() and interrupts() provided by Arduino are used.
C++
mit
mcci-catena/arduino-lmic,mcci-catena/arduino-lmic,mcci-catena/arduino-lmic
73f42b70c8a3b73fd2b5d278be9be04d34ae64cd
src/transportserverasio_p.cpp
src/transportserverasio_p.cpp
/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include <iostream> #include <string> #include <cstring> #include <cstdlib> #include <queue> #include <qi/log.hpp> #include <cerrno> #include <boost/asio.hpp> #include <boost/lexical_cast.hpp> #include "transportserver.hpp" #include "tra...
/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include <iostream> #include <string> #include <cstring> #include <cstdlib> #include <queue> #include <qi/log.hpp> #include <cerrno> #include <boost/asio.hpp> #include <boost/lexical_cast.hpp> #include "transportserver.hpp" #include "tra...
improve the logverbose for endpoints update
TransportServerAsio: improve the logverbose for endpoints update Change-Id: I028adb2e21f8156b80e11884c4f9a3305dd2b6dc
C++
bsd-3-clause
aldebaran/libqi,aldebaran/libqi,vbarbaresi/libqi,bsautron/libqi,aldebaran/libqi
1babd2ca86df222e9dd9a187c65ea98ea4fab351
src/trusted/gdb_rsp/target.cc
src/trusted/gdb_rsp/target.cc
/* * Copyright 2010 The Native Client 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.h> #include <stdlib.h> #include <stdio.h> #include "native_client/src/trusted/gdb_rsp/abi.h" #include "native_client/src/tru...
/* * Copyright 2010 The Native Client 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.h> #include <stdlib.h> #include <stdio.h> #include "native_client/src/trusted/gdb_rsp/abi.h" #include "native_client/src/tru...
Fix a couple of minor bugs in target.cc that prevented the debugger from attaching and reattaching properly.
Fix a couple of minor bugs in target.cc that prevented the debugger from attaching and reattaching properly. Review URL: http://codereview.chromium.org/3472005 git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@3349 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
C++
bsd-3-clause
sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client
ceb79403275728562dc7aca11311fbba87b2aa09
src/util/memory/arena-test.cc
src/util/memory/arena-test.cc
// Copyright (c) 2013, Cloudera, inc. #include <boost/foreach.hpp> #include <boost/ptr_container/ptr_vector.hpp> #include <boost/thread/thread.hpp> #include <gflags/gflags.h> #include <gtest/gtest.h> #include <glog/logging.h> #include <vector> #include "gutil/stringprintf.h" #include "util/memory/arena.h" DEFINE_int...
// Copyright (c) 2013, Cloudera, inc. #include <boost/foreach.hpp> #include <boost/ptr_container/ptr_vector.hpp> #include <boost/thread/thread.hpp> #include <gflags/gflags.h> #include <gtest/gtest.h> #include <glog/logging.h> #include <vector> #include "gutil/stringprintf.h" #include "util/memory/arena.h" DEFINE_int...
fix to use a ThreadSafeArena for the threaded test
arena-test: fix to use a ThreadSafeArena for the threaded test
C++
apache-2.0
andrwng/kudu,helifu/kudu,EvilMcJerkface/kudu,helifu/kudu,InspurUSA/kudu,helifu/kudu,andrwng/kudu,cloudera/kudu,EvilMcJerkface/kudu,cloudera/kudu,cloudera/kudu,EvilMcJerkface/kudu,helifu/kudu,InspurUSA/kudu,andrwng/kudu,InspurUSA/kudu,EvilMcJerkface/kudu,InspurUSA/kudu,EvilMcJerkface/kudu,cloudera/kudu,InspurUSA/kudu,he...
1f429d31bd281f5268ffd0759d688186c60337d5
libtest/port.cc
libtest/port.cc
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * Data Differential YATL (i.e. libtest) library * * Copyright (C) 2012 Data Differential, http://datadifferential.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * Data Differential YATL (i.e. libtest) library * * Copyright (C) 2012 Data Differential, http://datadifferential.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
fix get_free_port: remove redundant initialisation
fix get_free_port: remove redundant initialisation
C++
bsd-3-clause
dm/gearmand,dm/gearmand,dm/gearmand,dm/gearmand
7b2703258bbbb3b8ec3a6ff72a06eeb600f38728
option_test.cc
option_test.cc
// Copyright (c) 2017 Kai Luo <gluokai@gmail.com>. All rights reserved. // Use of this source code is governed by the BSD license that can be found in // the LICENSE file. #include <iostream> #include <memory> #include <string> #include "option.h" #include "testkit.h" class O {}; kl::Option<int> Foo() { return kl::...
// Copyright (c) 2017 Kai Luo <gluokai@gmail.com>. All rights reserved. // Use of this source code is governed by the BSD license that can be found in // the LICENSE file. #include <iostream> #include <memory> #include <string> #include "option.h" #include "testkit.h" class O {}; kl::Option<int> Foo() { return kl::...
add test for member access
add test for member access
C++
bsd-3-clause
bzEq/kl,bzEq/kl
8879f5708d16384e3c7702cf1a21479a4be08bb0
Modules/Numerics/Optimizersv4/include/itkGradientDescentLineSearchOptimizerv4.hxx
Modules/Numerics/Optimizersv4/include/itkGradientDescentLineSearchOptimizerv4.hxx
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
Handle boundary case with max metric
BUG: Handle boundary case with max metric This addresses issues in registration optimization encountered where the GradientDescentLineSearch algorithm would take a too large step, such that there were no valid points. This can occur with large amounts of smoothing, or a solution being very close to an optimal value ca...
C++
apache-2.0
BRAINSia/ITK,spinicist/ITK,hjmjohnson/ITK,fbudin69500/ITK,hjmjohnson/ITK,richardbeare/ITK,richardbeare/ITK,malaterre/ITK,blowekamp/ITK,richardbeare/ITK,LucasGandel/ITK,thewtex/ITK,Kitware/ITK,malaterre/ITK,LucasGandel/ITK,LucasGandel/ITK,malaterre/ITK,Kitware/ITK,vfonov/ITK,spinicist/ITK,malaterre/ITK,Kitware/ITK,Kitwa...
dde5202e071de6dd09db1b37482b3560ac32ae2d
src/XSLTransformer.cpp
src/XSLTransformer.cpp
#include <string> extern "C" { #include <libxml/globals.h> #include <libxml/parser.h> #include <libxml/tree.h> #include <libxslt/xslt.h> #include <libxslt/transform.h> #include <libxslt/xsltutils.h> } #include "AlpinoCorpus/Error.hh" #include "XSLTransformer.hh" namespace alpinocorpus { XSLTransformer::XSLTransfor...
#include <string> extern "C" { #include <libxml/globals.h> #include <libxml/parser.h> #include <libxml/tree.h> #include <libxslt/xslt.h> #include <libxslt/transform.h> #include <libxslt/xsltutils.h> } #include "AlpinoCorpus/Error.hh" #include "XSLTransformer.hh" namespace alpinocorpus { XSLTransformer::XSLTransfor...
Use libxslt's default options for parsing stylesheets.
Use libxslt's default options for parsing stylesheets.
C++
lgpl-2.1
evdmade01/alpinocorpus,rug-compling/alpinocorpus,evdmade01/alpinocorpus,rug-compling/alpinocorpus,rug-compling/alpinocorpus
e572cf93ee411ef40acdb64eb3073231619862ed
src/arch/arm/faults.cc
src/arch/arm/faults.cc
/* * Copyright (c) 2010 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
/* * Copyright (c) 2010 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
Delete OABI syscall handling.
ARM: Delete OABI syscall handling. We only support EABI binaries, so there is no reason to support OABI syscalls. The loader detects OABI calls and fatal() so there is no reason to even check here.
C++
bsd-3-clause
markoshorro/gem5,TUD-OS/gem5-dtu,samueldotj/TeeRISC-Simulator,SanchayanMaity/gem5,samueldotj/TeeRISC-Simulator,qizenguf/MLC-STT,briancoutinho0905/2dsampling,joerocklin/gem5,yb-kim/gemV,austinharris/gem5-riscv,gem5/gem5,aclifton/cpeg853-gem5,powerjg/gem5-ci-test,zlfben/gem5,samueldotj/TeeRISC-Simulator,TUD-OS/gem5-dtu,g...
5c73ce0a8539a7bccbff6e65a65231bf8d941e53
src/archive_manager.cc
src/archive_manager.cc
/** * Copyright (c) 2020, Timothy Stack * * 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 condi...
/** * Copyright (c) 2020, Timothy Stack * * 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 condi...
fix noarchive build
[build] fix noarchive build
C++
bsd-2-clause
tstack/lnav,tstack/lnav,sureshsundriyal/lnav,tstack/lnav,sureshsundriyal/lnav,tstack/lnav,sureshsundriyal/lnav,sureshsundriyal/lnav
515a51dac32ba8a50d697a5b52e432fb717dc472
src/SMESH_I/SMESH_PythonDump.hxx
src/SMESH_I/SMESH_PythonDump.hxx
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Lic...
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Lic...
update documentation of class SMESH_2smeshpy
PR: update documentation of class SMESH_2smeshpy
C++
lgpl-2.1
FedoraScientific/salome-smesh,FedoraScientific/salome-smesh,FedoraScientific/salome-smesh,FedoraScientific/salome-smesh
cb71df300585e4be23ff462caad5618dca723c4a
3RVX/MeterWnd/Meters/Bitstrip.cpp
3RVX/MeterWnd/Meters/Bitstrip.cpp
#include "Bitstrip.h" Bitstrip::Bitstrip(std::wstring bitmapName, int x, int y, int units) : Meter(bitmapName, x, y, units) { _rect.Width = _bitmap->GetWidth(); _rect.Height = _bitmap->GetHeight() / _units; } void Bitstrip::Draw(Gdiplus::Bitmap *buffer, Gdiplus::Graphics *graphics) { int units = CalcUnit...
#include "Bitstrip.h" Bitstrip::Bitstrip(std::wstring bitmapName, int x, int y, int units) : Meter(bitmapName, x, y, units) { _rect.Height = _bitmap->GetHeight() / _units; } void Bitstrip::Draw(Gdiplus::Bitmap *buffer, Gdiplus::Graphics *graphics) { int units = CalcUnits(); int stripY = (units - 1) * _rec...
Remove unnecessary GetWidth() call.
Remove unnecessary GetWidth() call.
C++
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX
d2aae2d73482bd06e281195cee32b74d1aa853d3
src/enum_generator.cpp
src/enum_generator.cpp
#include <iostream> #include <algorithm> #include "dota2api/apirequest.hpp" #include "json/json.h" const std::string indent1 = " "; const std::string indent2 = indent1 + indent1; const std::string indent3 = indent2 + indent1; std::string toUpper(std::string str) { std::transform(str.begin(), str.end(),str.begi...
#include <iostream> #include <algorithm> #include "dota2api/apirequest.hpp" #include "json/json.h" const std::string indent1 = " "; const std::string indent2 = indent1 + indent1; const std::string indent3 = indent2 + indent1; std::string toUpper(std::string str) { std::transform(str.begin(), str.end(),str.begi...
Convert the enum value to int for key
Convert the enum value to int for key This is more obviously correct and does not rely on some magic numbers. This also maskes the resulting diff easier to read.
C++
apache-2.0
UnrealQuester/dota2Cmd
d4f28d94bedd64b3cd0426db44b02130ebd49184
load_service.cc
load_service.cc
#include "service.h" #include <string> #include <fstream> #include <locale> #include <iostream> typedef std::string string; typedef std::string::iterator string_iterator; // Utility function to skip white space. Returns an iterator at the // first non-white-space position (or at end). static string_iterator skipws(st...
#include "service.h" #include <string> #include <fstream> #include <locale> #include <iostream> typedef std::string string; typedef std::string::iterator string_iterator; // Utility function to skip white space. Returns an iterator at the // first non-white-space position (or at end). static string_iterator skipws(st...
Improve comments - remove no longer relevant comment, add some new comments.
Improve comments - remove no longer relevant comment, add some new comments.
C++
apache-2.0
davmac314/dinit,davmac314/dinit,davmac314/dinit
fd02ec467df8406e0b185880aa7a43ce69864981
src/game/leveldata.cpp
src/game/leveldata.cpp
/* Copyright 2014 Dietrich Epp. This file is part of Oubliette. Oubliette is licensed under the terms of the 2-clause BSD license. For more information, see LICENSE.txt. */ #include "leveldata.hpp" #include "graphics.hpp" #include "../defs.hpp" #include <cstdio> #include <errno.h> namespace game { using ::graph...
/* Copyright 2014 Dietrich Epp. This file is part of Oubliette. Oubliette is licensed under the terms of the 2-clause BSD license. For more information, see LICENSE.txt. */ #include "leveldata.hpp" #include "graphics.hpp" #include "../defs.hpp" #include <cstdio> #include <errno.h> namespace game { using ::graph...
Fix enemy sprite sizes
Fix enemy sprite sizes
C++
bsd-2-clause
depp/oubliette,depp/oubliette,depp/oubliette,depp/oubliette
093981cb1fa2ef9c6e4c4baaebbcc10493015a6d
BALLS/BALLS/model/OpenGLState.hpp
BALLS/BALLS/model/OpenGLState.hpp
#ifndef OPENGLSTATE_HPP #define OPENGLSTATE_HPP #include <QColor> #include <QObject> #include <QOpenGLContext> #include <glm/fwd.hpp> #include "gl/OpenGLPointers.hpp" namespace balls { using glm::bvec4; class OpenGLState : public QObject { Q_OBJECT /* Categories of OpenGL state: * - Blend State (DONE) ...
#ifndef OPENGLSTATE_HPP #define OPENGLSTATE_HPP #include <QColor> #include <QObject> #include <QOpenGLContext> #include <glm/fwd.hpp> #include "gl/OpenGLPointers.hpp" namespace balls { using glm::bvec4; class OpenGLState : public QObject { Q_OBJECT /* Categories of OpenGL state: * - Blend State (DONE) ...
Mark Hints and ImplementationInfo as done
Mark Hints and ImplementationInfo as done
C++
apache-2.0
JesseTG/BALLS,JesseTG/BALLS,JesseTG/BALLS
073d59cf2910261b6e09a9c07d156f810b944569
harness.cpp
harness.cpp
#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <string> #include <vector> #include <queue> #include <deque> #include <map> #include <set> #include <bitset> #include <algorithm> #include <sstream> #include <iostream> #include <cassert> #include <fstream> #include <future> #include <thr...
#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <string> #include <vector> #include <queue> #include <deque> #include <map> #include <set> #include <bitset> #include <algorithm> #include <sstream> #include <iostream> #include <cassert> #include <fstream> #include <future> #include <thr...
remove debugging code
remove debugging code
C++
unlicense
xangregg/parallelcodejam
c1bb74afc336835494e8322964654dc087fe284f
src/cgi/cgi_launch.cxx
src/cgi/cgi_launch.cxx
/* * Run a CGI script. * * author: Max Kellermann <mk@cm4all.com> */ #include "cgi_launch.hxx" #include "cgi_address.hxx" #include "istream/istream.hxx" #include "fork.hxx" #include "strmap.hxx" #include "system/sigutil.h" #include "product.h" #include "spawn/Spawn.hxx" #include "spawn/Prepared.hxx" #include "Pref...
/* * Run a CGI script. * * author: Max Kellermann <mk@cm4all.com> */ #include "cgi_launch.hxx" #include "cgi_address.hxx" #include "istream/istream.hxx" #include "fork.hxx" #include "strmap.hxx" #include "system/sigutil.h" #include "product.h" #include "spawn/Spawn.hxx" #include "spawn/Prepared.hxx" #include "Pref...
rename struct to CamelCase
cgi/launch: rename struct to CamelCase
C++
bsd-2-clause
CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy
9dce9472b2cc7c8ce8407d643ed595d7c162dcda
src/char/src/party.cpp
src/char/src/party.cpp
#include "party.h" #include "user.h" #include "ccharserver.h" #include "logconsole.h" std::shared_ptr<Party> cache_fetch_party(uint32_t charId) { auto conn = Core::connectionPool.getConnection<Core::Osirose>(); Core::PartyTable partyTable{}; Core::PartyMembersTable partyMembersTable{}; auto res = conn(sqlpp...
#include "party.h" #include "user.h" #include "ccharserver.h" #include "logconsole.h" std::shared_ptr<Party> cache_fetch_party(uint32_t charId) { auto conn = Core::connectionPool.getConnection<Core::Osirose>(); Core::PartyTable partyTable{}; Core::PartyMembersTable partyMembersTable{}; auto res = conn(sqlpp...
Update party.cpp
Update party.cpp
C++
apache-2.0
RavenX8/osIROSE-new,dev-osrose/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new,RavenX8/osIROSE-new,dev-osrose/osIROSE-new
7fb0d1c5c7208084890e9bffe6c85b187bf1b483
mower.cpp
mower.cpp
#include <iostream> #include <QNetworkRequest> #include "mower.h" Mower::Mower(QNetworkAccessManager* net, std::string username, std::string password) : _net(net), _username(username), _password(password) { } Mower::State Mower::getState() { return _state; } void Mower::getStatus() { _state = GettingStatus; QN...
#include <iostream> #include <QNetworkRequest> #include "mower.h" Mower::Mower(QNetworkAccessManager* net, std::string username, std::string password) : _net(net), _username(username), _password(password) { } Mower::State Mower::getState() { return _state; } void Mower::getStatus() { _state = GettingStatus; QN...
Fix for Qt 4.8, set a Content-Type
Fix for Qt 4.8, set a Content-Type
C++
bsd-3-clause
thelastnode/LAWNMower
79d9718d643cc72940e95d61598173e77cc666ed
src/common/str_list.cc
src/common/str_list.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2009-2010 Dreamhost * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ver...
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2009-2010 Dreamhost * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ver...
make get_str_list work with other delimiters, and skip the
common: make get_str_list work with other delimiters, and skip the Signed-off-by: Sage Weil <6dd34506bbd5e58221bbb3e4732d97c91f02277b@newdream.net>
C++
lgpl-2.1
ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph,ajnelson/ceph
2e0cf57804ab803a0af6059c8f74926d10af505b
src/messages.cc
src/messages.cc
// Copyright 2011 the V8 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. #include "src/v8.h" #include "src/api.h" #include "src/execution.h" #include "src/heap/spaces-inl.h" #include "src/messages.h" #include "src/string-bui...
// Copyright 2011 the V8 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. #include "src/v8.h" #include "src/api.h" #include "src/execution.h" #include "src/heap/spaces-inl.h" #include "src/messages.h" #include "src/string-bui...
Fix signed/unsigned compare in messages.cc
Fix signed/unsigned compare in messages.cc R=machenbach@chromium.org NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1089363002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#27865}
C++
mit
UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh
5ccb6cf086f580725145e438e6444fe2c84cc5fa
sources/instance/instance.cpp
sources/instance/instance.cpp
/* * Covariant Script Instance * * Licensed under the Covariant Innovation General Public License, * Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://covariant.cn/licenses/LICENSE-1.0 * * Unless required by applicable l...
/* * Covariant Script Instance * * Licensed under the Covariant Innovation General Public License, * Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://covariant.cn/licenses/LICENSE-1.0 * * Unless required by applicable l...
remove package check in source_import
instance: remove package check in source_import
C++
apache-2.0
covscript/covscript,covscript/covscript,covscript/covscript
5e83b0227f024c63fd1adb7995d17a8a1604b10c
src/nix/main.cc
src/nix/main.cc
#include <algorithm> #include "command.hh" #include "common-args.hh" #include "eval.hh" #include "globals.hh" #include "legacy.hh" #include "shared.hh" #include "store-api.hh" #include "progress-bar.hh" #include "finally.hh" extern std::string chrootHelperName; void chrootHelper(int argc, char * * argv); namespace ...
#include <algorithm> #include "command.hh" #include "common-args.hh" #include "eval.hh" #include "globals.hh" #include "legacy.hh" #include "shared.hh" #include "store-api.hh" #include "progress-bar.hh" #include "finally.hh" extern std::string chrootHelperName; void chrootHelper(int argc, char * * argv); namespace ...
Remove the -h flag
nix: Remove the -h flag
C++
lgpl-2.1
layus/nix,vcunat/nix,zimbatm/nix,rycee/nix,pikajude/nix,ehmry/nix,NixOS/nix,layus/nix,ehmry/nix,dtzWill/nix,NixOS/nix,rycee/nix,ehmry/nix,dtzWill/nix,vcunat/nix,rycee/nix,vcunat/nix,vcunat/nix,NixOS/nix,ehmry/nix,ehmry/nix,zimbatm/nix,dtzWill/nix,ehmry/nix,zimbatm/nix,layus/nix,rycee/nix,dtzWill/nix,NixOS/nix,layus/nix...
db128af83033ae1baa67f5560f39fe75912944d3
src/nyu/nyu.cpp
src/nyu/nyu.cpp
#include <nyu/cpp/builder.hpp> #include <nyu/options.hpp> #include <nyu/error/output_file.hpp> #include <nyu/error/grammar_not_found.hpp> #include <nyu/error/include_not_found.hpp> #include <chilon/print.hpp> #include <iostream> #include <stdexcept> // #define MOUSEBEAR_VERSION "1000 (just don't get in a car, and st...
#include <nyu/cpp/builder.hpp> #include <nyu/options.hpp> #include <nyu/error/output_file.hpp> #include <nyu/error/grammar_not_found.hpp> #include <nyu/error/include_not_found.hpp> #include <chilon/print.hpp> #include <iostream> #include <stdexcept> // #define MOUSEBEAR_VERSION "1000 (just don't get in a car, and st...
upgrade version to 0.8
upgrade version to 0.8
C++
mit
ohjames/nyu
a9a1f10bad310efa12663d4d757bca5f3e62aaab
src/pdb_file.cc
src/pdb_file.cc
#include "gmml/internal/pdb_file.h" #include <algorithm> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <vector> #include "gmml/internal/environment.h" #include "gmml/internal/geometry.h" #include "utilities.h" namespace gmml { using std::istringstream; using...
#include "gmml/internal/pdb_file.h" #include <algorithm> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <string> #include <vector> #include "gmml/internal/environment.h" #include "gmml/internal/geometry.h" #include "utilities.h" namespace gmml { using std::istringstream; using...
Fix link card alignment.
Fix link card alignment.
C++
mit
rtdavis22/GMML,tectronics/gmml,tectronics/gmml,rtdavis22/GMML,tectronics/gmml,tectronics/gmml,rtdavis22/GMML
1e6ae7d2e48f30f57428edc7e3ae704f8e464548
gameserver/gameengine/src/world_factory.cc
gameserver/gameengine/src/world_factory.cc
/** * The MIT License (MIT) * * Copyright (c) 2018 Simon Sandström * * 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 ...
/** * The MIT License (MIT) * * Copyright (c) 2018 Simon Sandström * * 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 ...
Fix travis build error
Fix travis build error
C++
mit
gurka/gameserver,gurka/gameserver,gurka/gameserver
d884149e931289c1caca98cfb6e50562cf0bdfdf
src/crypto/lamport.cpp
src/crypto/lamport.cpp
// Copyright (c) 2016 Ansho Enigu #include "crypto/lamport.h" #include "crypto/ripemd160.h" #include "crypto/common.h" #include "uint256.h" using namespace std; typedef vector<unsigned char> valtype; bool LAMPORT::checksig(unsigned char data[10000], char sig[20][2][20], char rootkey[20], char merklewit[]) { char ...
// Copyright (c) 2016 Ansho Enigu #include "crypto/lamport.h" #include "crypto/ripemd160.h" #include "crypto/common.h" #include "uint256.h" using namespace std; typedef vector<unsigned char> valtype; bool LAMPORT::checksig(vector<unsigned char> data, char sig[20][2][20], vector<unsigned char> rootkey, vector<unsigne...
Update lamport.cpp
Update lamport.cpp
C++
mit
Alonzo-Coeus/bitcoin,Alonzo-Coeus/bitcoin,Alonzo-Coeus/bitcoin,Alonzo-Coeus/bitcoin,Alonzo-Coeus/bitcoin,Alonzo-Coeus/bitcoin
dc0b2230ba6ea504aef1cc78cc46a1cf3d944cc6
src/date/buildDate.cxx
src/date/buildDate.cxx
/* bzflag * Copyright (c) 1993-2011 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRAN...
/* bzflag * Copyright (c) 1993-2011 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRAN...
Add bzls.lua to the list of files to be modified when BZ_PROTO_VERSION changes.
Add bzls.lua to the list of files to be modified when BZ_PROTO_VERSION changes.
C++
lgpl-2.1
kongr45gpen/bzflag-import-1,kongr45gpen/bzflag-import-1,kongr45gpen/bzflag-import-1,kongr45gpen/bzflag-import-1,kongr45gpen/bzflag-import-1,kongr45gpen/bzflag-import-1
f218bdbdc1f589d630d6318326bf7f1b40564f4a
src/delegate/Stock.cxx
src/delegate/Stock.cxx
/* * Delegate helper pooling. * * author: Max Kellermann <mk@cm4all.com> */ #include "Stock.hxx" #include "stock/MapStock.hxx" #include "stock/Stock.hxx" #include "stock/Item.hxx" #include "async.hxx" #include "failure.hxx" #include "system/fd_util.h" #include "system/sigutil.h" #include "pevent.hxx" #include "spa...
/* * Delegate helper pooling. * * author: Max Kellermann <mk@cm4all.com> */ #include "Stock.hxx" #include "stock/MapStock.hxx" #include "stock/Stock.hxx" #include "stock/Item.hxx" #include "async.hxx" #include "failure.hxx" #include "system/fd_util.h" #include "system/sigutil.h" #include "event/Callback.hxx" #incl...
use MakeEventCallback()
delegate/Stock: use MakeEventCallback()
C++
bsd-2-clause
CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy,CM4all/beng-proxy
d101e0162cc1afab5bbbc1d147f157f96ef3f051
glfw3_app/common/widgets/spring_damper.hpp
glfw3_app/common/widgets/spring_damper.hpp
#pragma once //=====================================================================// /*! @file @brief spring damper class @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include "utils/vmath.hpp" namespace gui { //+++++++++++++++++++++++++...
#pragma once //=====================================================================// /*! @file @brief spring damper class @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include "utils/vmath.hpp" namespace gui { //+++++++++++++++++++++++++...
update scroll
update scroll
C++
bsd-3-clause
hirakuni45/glfw3_app,hirakuni45/glfw3_app,hirakuni45/glfw3_app
676a65aaac5308cf76b81a8e8d65a6c1ad4f747c
src/ranking.cpp
src/ranking.cpp
#include "ranking.hpp" extern int debug; Ranking::Ranking(ACOParameters *params, vector<Ant *> &ants) : params(params) , ants(ants) // copy constructor , best_solution(NULL) { no_ranking_ants = params->get_no_ranking_ants(); } void Ranking::update() { sort(ants.begin(), ants.end(), Ranking::ants_comparator)...
#include "ranking.hpp" extern int debug; Ranking::Ranking(ACOParameters *params, vector<Ant *> &ants) : params(params) , ants(ants) // copy constructor , best_solution(NULL) { no_ranking_ants = params->get_no_ranking_ants(); } void Ranking::update() { sort(ants.begin(), ants.end(), Ranking::ants_comparator)...
Choose best, not worst solution
Choose best, not worst solution
C++
mit
jedi1156/sequencing-ants
93c8b489df5232f9cd58387b0c35463ef4f8678d
test/testpoolingpropagate.cpp
test/testpoolingpropagate.cpp
// Copyright Hugh Perkins 2014 hughperkins at gmail // // 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/MPL/2.0/. #include "OpenCLHelper.h" #include "PoolingPropagate.h" #i...
// Copyright Hugh Perkins 2014 hughperkins at gmail // // 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/MPL/2.0/. #include "OpenCLHelper.h" #include "PoolingPropagate.h" #i...
fix namespaces bug
fix namespaces bug
C++
mpl-2.0
pimms/DeepCL,hughperkins/DeepCL,Peilong/DeepCL,MiniLight/DeepCL,mrgloom/DeepCL,Peilong/DeepCL,mrgloom/DeepCL,mrgloom/DeepCL,MiniLight/DeepCL,pimms/DeepCL,pimms/DeepCL,pimms/DeepCL,MiniLight/DeepCL,FighterLYL/DeepCL,Peilong/DeepCL,hughperkins/DeepCL,MiniLight/DeepCL,FighterLYL/DeepCL,mrgloom/DeepCL,hughperkins/DeepCL,hu...
adec41b60c05ececf19007808e9328cc16d0b324
tests/api/test_simple_api.cpp
tests/api/test_simple_api.cpp
#include "gtest/gtest.h" #include "c7a/api/dia.hpp" #include "c7a/api/context.hpp" #include "c7a/api/function_stack.hpp" TEST(DISABLED_DIASimple, InputTest1ReadInt) { //auto read_int = [](std::string line) { return std::stoi(line); }; //c7a::Context ctx; // auto initial = ctx.ReadFromFileSystem("tests...
#include "gtest/gtest.h" #include "c7a/api/dia.hpp" #include "c7a/api/context.hpp" #include "c7a/api/function_stack.hpp" TEST(DISABLED_DIASimple, InputTest1ReadInt) { //auto read_int = [](std::string line) { return std::stoi(line); }; //c7a::Context ctx; // auto initial = ctx.ReadFromFileSystem("tests...
FIX THE EVIL BUG
FIX THE EVIL BUG
C++
bsd-2-clause
manpen/thrill,manpen/thrill,manpen/thrill,manpen/thrill,manpen/thrill
deaeff2bb732b7fce3818702e3da73087c0f291c
Modules/Core/ImageFunction/test/itkGaussianInterpolateImageFunctionTest.cxx
Modules/Core/ImageFunction/test/itkGaussianInterpolateImageFunctionTest.cxx
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
Improve coverage for itkGaussianInterpolateImageFunction.
ENH: Improve coverage for itkGaussianInterpolateImageFunction. Exercise the basic object methods. Exercise the EvaluateAtContinuousIndex function. Refactor the test: use the TEST_GET_SET macro for object ivar value testing; and use the itk::Math::FloatAlmostEquals for comparing two float values. Change-Id: If8d64ea...
C++
apache-2.0
thewtex/ITK,hjmjohnson/ITK,Kitware/ITK,blowekamp/ITK,Kitware/ITK,malaterre/ITK,stnava/ITK,spinicist/ITK,hjmjohnson/ITK,thewtex/ITK,malaterre/ITK,stnava/ITK,Kitware/ITK,blowekamp/ITK,Kitware/ITK,malaterre/ITK,InsightSoftwareConsortium/ITK,malaterre/ITK,InsightSoftwareConsortium/ITK,Kitware/ITK,malaterre/ITK,fbudin69500/...
c72bf300e1019a1a82059778a00b29b574580d30
src/http_tls_shared.cc
src/http_tls_shared.cc
// // http_tls_shared.cc // #include "plat_os.h" #include "plat_net.h" #include <cassert> #include <cstring> #include <iostream> #include <sstream> #include <functional> #include <algorithm> #include <thread> #include <mutex> #include <memory> #include <string> #include <vector> #include <deque> #include <map> #inc...
// // http_tls_shared.cc // #include "plat_os.h" #include "plat_net.h" #include <cassert> #include <cstring> #include <iostream> #include <sstream> #include <functional> #include <algorithm> #include <thread> #include <mutex> #include <memory> #include <string> #include <vector> #include <deque> #include <map> #inc...
Disable session tickets
Disable session tickets
C++
isc
metaparadigm/latypus,metaparadigm/latypus,metaparadigm/latypus,metaparadigm/latypus
7875a103b76e457474c444f7a19e39a572ef2147
src/AttentionNoticeHandler.cc
src/AttentionNoticeHandler.cc
// AttentionNoticeHandler.cc for fluxbox // Copyright (c) 2006 Fluxbox Team (fluxgen at fluxbox dot org) // // 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 w...
// AttentionNoticeHandler.cc for fluxbox // Copyright (c) 2006 Fluxbox Team (fluxgen at fluxbox dot org) // // 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 w...
initialize m_state
initialize m_state
C++
mit
naimdjon/fluxbox,lukoko/fluxbox,lukoko/fluxbox,olivergondza/fluxbox,naimdjon/fluxbox,Arkq/fluxbox,naimdjon/fluxbox,olivergondza/fluxbox,luebking/fluxbox,lukoko/fluxbox,naimdjon/fluxbox,olivergondza/fluxbox,lukoko/fluxbox,luebking/fluxbox,luebking/fluxbox,Arkq/fluxbox,Arkq/fluxbox,naimdjon/fluxbox,olivergondza/fluxbox,A...
24db75038638e1727dd3b1702d51724f384d13ff
paddle/fluid/inference/tensorrt/trt_int8_calibrator.cc
paddle/fluid/inference/tensorrt/trt_int8_calibrator.cc
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
fix trt int8 calib precision bug. test=develop (#23036)
fix trt int8 calib precision bug. test=develop (#23036)
C++
apache-2.0
PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle
e76569420571fc606b439ee0bca694659923ac05
src/widgets/restoredialog.cpp
src/widgets/restoredialog.cpp
#include "restoredialog.h" WARNINGS_DISABLE #include <QChar> #include <QCheckBox> #include <QDir> #include <QFileDialog> #include <QFileInfo> #include <QLabel> #include <QLineEdit> #include <QVariant> #include <Qt> #include "ui_restoredialog.h" WARNINGS_ENABLE #include "TSettings.h" #include "messages/archiverestor...
#include "restoredialog.h" WARNINGS_DISABLE #include <QChar> #include <QCheckBox> #include <QDir> #include <QFileDialog> #include <QFileInfo> #include <QLabel> #include <QLineEdit> #include <QVariant> #include <Qt> #include "ui_restoredialog.h" WARNINGS_ENABLE #include "TSettings.h" #include "messages/archiverestor...
clarify blank path
RestoreDialog: clarify blank path The 'path' should already be blank (as the default value of a QString), but this will clarify what's happening in the three different restore types.
C++
bsd-2-clause
Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui
2697ae6b2c112f28149c9b71b6d9f266a6809daa
src/xapian/database-write.cpp
src/xapian/database-write.cpp
/* database-write.cpp * * Copyright (C) 2012-2014 Matthias Klumpp <matthias@tenstral.net> * * Licensed under the GNU Lesser General Public License Version 3 * * 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 * th...
/* database-write.cpp * * Copyright (C) 2012-2014 Matthias Klumpp <matthias@tenstral.net> * * Licensed under the GNU Lesser General Public License Version 3 * * 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 * th...
Index terms for provided items
Index terms for provided items
C++
lgpl-2.1
ximion/appstream,ximion/appstream,ximion/appstream,ximion/appstream
ad119d8d867b435dbd8a51cb376625e9f84c26d2
histomicstk/segmentation/label/isbfcpp.cpp
histomicstk/segmentation/label/isbfcpp.cpp
/* C++ version of ISBF for TraceBounds */ #include <iostream> #include <math.h> #include "isbfcpp.h" using namespace std; isbfcpp::isbfcpp() { head = NULL; curr = NULL; } int isbfcpp::length() { node *cur = head; int len = 0; while(cur) { cur = cur->next; len++; } return len; } void isbfcpp::n...
/* C++ version of ISBF for TraceBounds */ #include <iostream> #include <math.h> #include "isbfcpp.h" using namespace std; isbfcpp::isbfcpp() { head = NULL; curr = NULL; } int isbfcpp::length() { node *cur = head; int len = 0; while(cur) { cur = cur->next; len++; } return len; } void isbfcpp::n...
Fix typo in isbfcpp.cpp
Fix typo in isbfcpp.cpp
C++
apache-2.0
DigitalSlideArchive/HistomicsTK,DigitalSlideArchive/HistomicsTK
dc5ab088ab4710c1e65925a3884fd675f2427b31
src/twister.cpp
src/twister.cpp
#include "twister.h" const unsigned CYCLE = 0x100; const unsigned C_TRANS_ = 0xff; int block_units[][0x10] = { 0x74, 0x63, 0x69, 0x67, 0x72, 0x68, 0x6e, 0x6c, 0x61, 0x67, 0x74, 0x6c, 0x69, 0x73, 0x61, 0x61, 0x6f, 0x6d, 0x6f, 0x72, 0x6e, 0x72, 0x69, 0x6d, 0x6e, 0x6e, 0x65, 0x74, 0x72, 0x6e, 0x6b, 0x73, 0x61, 0x6f, 0x...
#include "twister.h" const unsigned CYCLE = 0x100; const unsigned C_TRANS_ = 0xff; int block_units[][0x10] = { 0x74, 0x63, 0x69, 0x67, 0x72, 0x68, 0x6e, 0x6c, 0x61, 0x67, 0x74, 0x6c, 0x69, 0x73, 0x61, 0x61, 0x6f, 0x6d, 0x6f, 0x72, 0x6e, 0x72, 0x69, 0x6d, 0x6e, 0x6e, 0x65, 0x74, 0x72, 0x6e, 0x6b, 0x73, 0x61, 0x6f, 0x...
test seq, extern
test seq, extern
C++
mit
IOCoin/DIONS,IOCoin/DIONS,IOCoin/DIONS,IOCoin/DIONS,IOCoin/DIONS,IOCoin/DIONS,IOCoin/DIONS,IOCoin/DIONS
60fb523d629daebf73e604dbb909c763b49cb959
src/line_and_column.hh
src/line_and_column.hh
#ifndef line_and_column_hh_INCLUDED #define line_and_column_hh_INCLUDED namespace Kakoune { template<typename EffectiveType> struct LineAndColumn { int line; int column; LineAndColumn(int line = 0, int column = 0) : line(line), column(column) {} EffectiveType operator+(const EffectiveType& o...
#ifndef line_and_column_hh_INCLUDED #define line_and_column_hh_INCLUDED namespace Kakoune { template<typename EffectiveType> struct LineAndColumn { int line; int column; LineAndColumn(int line = 0, int column = 0) : line(line), column(column) {} EffectiveType operator+(const EffectiveType& o...
add some missing operators to LineAndColumn
add some missing operators to LineAndColumn
C++
unlicense
mawww/kakoune,casimir/kakoune,xificurC/kakoune,casimir/kakoune,flavius/kakoune,flavius/kakoune,alpha123/kakoune,alpha123/kakoune,elegios/kakoune,alexherbo2/kakoune,jjthrash/kakoune,danielma/kakoune,ekie/kakoune,ekie/kakoune,alexherbo2/kakoune,ekie/kakoune,flavius/kakoune,rstacruz/kakoune,alpha123/kakoune,zakgreant/kako...
b8cea53fc9f85a8bf7b5be5c28666b02c9cdfb9c
src/uoj1109.cpp
src/uoj1109.cpp
#include <cstdio> #include <algorithm> #include <string> #include <map> #include <cstdlib> #include <iostream> #include <cstring> using namespace std; map <string ,int> dict; bool end=false; //debug #ifdef LOCAL #define fp stdin #else FILE *fp; #endif char last=0; char ch; string getword(){ string s; if (last){...
#include <cstdio> #include <algorithm> #include <string> #include <map> #include <cstdlib> #include <iostream> #include <cstring> using namespace std; map <string ,int> dict; bool end=false; //debug #ifdef LOCAL #define fp stdin #else FILE *fp; #endif char last=0; char ch; string getword(){ string s; if (last){...
update uoj1109
update uoj1109
C++
mit
czfshine/my_oj,czfshine/my_oj,czfshine/my_oj,czfshine/my_oj