{"commit":"198b1ef1cc1c23cb15f3cc880b93b9ca2d3fd232","old_file":"src\/shared.c","new_file":"src\/shared.c","old_contents":"#include \n#include \n#include \n#include \n#include \"shared.h\"\n\nint base64_decode\n(char *src, bytes *dest)\n{\n\tBIO *bio, *b64;\n\tunsigned int max_len = strlen(src) * 0.75;\n\n\tdest->data = malloc(max_len);\n\tif (dest->data == NULL) return -1;\n\n\tb64 = BIO_new(BIO_f_base64());\n\tbio = BIO_new_mem_buf(src, -1);\n\tbio = BIO_push(b64, bio);\n\tdest->length = (int)BIO_read(bio, dest->data, max_len);\n\tBIO_free_all(bio);\n\n\treturn 0;\n}\n\nint base64_encode\n(char *src, int src_len, char **dest)\n{\n\treturn -1;\n}\n","new_contents":"#include \n#include \n#include \n#include \n#include \n#include \"shared.h\"\n\nint base64_decode\n(char *src, bytes *dest)\n{\n\tBIO *bio, *b64;\n\tunsigned int max_len = strlen(src) * 3 \/ 4;\n\n\tdest->data = malloc(max_len);\n\tif (dest->data == NULL) return -1;\n\n\tFILE* stream = fmemopen(src, strlen(src), \"r\");\n\tb64 = BIO_new(BIO_f_base64());\n\tbio = BIO_new_fp(stream, BIO_NOCLOSE);\n\tbio = BIO_push(b64, bio);\n\tBIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL);\n\tdest->length = BIO_read(bio, dest->data, max_len);\n\tBIO_free_all(bio);\n\n\treturn 0;\n}\n\nint base64_encode\n(char *src, int src_len, char **dest)\n{\n\treturn -1;\n}\n","subject":"Fix overflow bug in OpenSSL","message":"Fix overflow bug in OpenSSL\n","lang":"C","license":"bsd-3-clause","repos":"undesktop\/libopkeychain"} {"commit":"175c55b147b047c632edba546e15441207febf83","old_file":"tests\/recordinit.c","new_file":"tests\/recordinit.c","old_contents":"","new_contents":"typedef struct list {\n struct list *next;\n struct list *prev;\n} list_t;\n\ntypedef struct record {\n int data1;\n list_t node;\n int data2;\n} record_t;\n\n#define container(p) ((record_t*)((int*)(p) - 1))\n\nvoid init_record(list_t *p) {\n record_t *r = container(p);\n r->data2 = 42;\n}\n\nvoid init_all_records(list_t *p) {\n while (p != NULL) {\n init_record(p);\n p = p->next;\n }\n}\n","subject":"Add Qadeer record init example","message":"Add Qadeer record init example\n","lang":"C","license":"bsd-3-clause","repos":"ucsd-progsys\/csolve,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve,ucsd-progsys\/csolve,ucsd-progsys\/csolve,ucsd-progsys\/csolve,ucsd-progsys\/csolve,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve,ucsd-progsys\/csolve,ucsd-progsys\/csolve,ucsd-progsys\/csolve,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve-bak,ucsd-progsys\/csolve-bak"} {"commit":"27ebeb2662d52baeab1afd0e1b61fefa18eb40c3","old_file":"src\/flags.c","new_file":"src\/flags.c","old_contents":"#include \"flags.h\"\n\n#include \n\n#include \"laco.h\"\n#include \"util.h\"\n\nstatic const char* version_matches[] = {\"-v\", \"--version\", NULL};\nstatic const char* help_matches[] = {\"-h\", \"-?\", \"--help\", NULL};\n\n\/* Print off the current version of laco *\/\nstatic void handle_version(LacoState* laco, const char** arguments) {\n const char* version = laco_get_laco_version(laco);\n\n printf(\"laco version %s\\n\", version);\n laco_kill(laco, 0, NULL);\n}\n\n\/* Print off the help screen *\/\nstatic void handle_help(LacoState* laco, const char** arguments) {\n puts(\"A better REPL for Lua.\\n\");\n puts(\"Usage: laco [options]\\n\");\n puts(\"-h | -? | --help \\tPrint this help screen\");\n puts(\"-v | --version \\tPrint current version\");\n\n laco_kill(laco, 0, NULL);\n}\n\nstatic const struct LacoCommand flag_commands[] = {\n { version_matches, handle_version },\n { help_matches, handle_help },\n { NULL, NULL}\n};\n\n\/* External API *\/\n\nvoid laco_handle_flag(LacoState* laco) {\n const char* command = laco_get_laco_args(laco)[1];\n\n laco_dispatch(flag_commands, laco, command, NULL);\n}\n","new_contents":"#include \"flags.h\"\n\n#include \n\n#include \"laco.h\"\n#include \"util.h\"\n\nstatic const char* version_matches[] = {\"-v\", \"--version\", NULL};\nstatic const char* help_matches[] = {\"-h\", \"-?\", \"--help\", NULL};\n\n\/* Print off the current version of laco *\/\nstatic void handle_version(LacoState* laco, const char** arguments) {\n const char* version = laco_get_laco_version(laco);\n\n printf(\"laco version %s\\n\", version);\n laco_kill(laco, 0, NULL);\n}\n\n\/* Print off the help screen *\/\nstatic void handle_help(LacoState* laco, const char** arguments) {\n puts(\"A better REPL for Lua.\\n\");\n puts(\"Usage: laco [options]\\n\");\n puts(\"-h | -? | --help \\tPrint this help screen\");\n puts(\"-v | --version \\tPrint current version\");\n\n laco_kill(laco, 0, NULL);\n}\n\nstatic const struct LacoCommand flag_commands[] = {\n { version_matches, handle_version },\n { help_matches, handle_help },\n { NULL, NULL }\n};\n\n\/* External API *\/\n\nvoid laco_handle_flag(LacoState* laco) {\n const char* command = laco_get_laco_args(laco)[1];\n\n laco_dispatch(flag_commands, laco, command, NULL);\n}\n","subject":"Add a space to the terminating array entry","message":"Add a space to the terminating array entry\n","lang":"C","license":"bsd-2-clause","repos":"sourrust\/laco"} {"commit":"793b2d601c9cafff4f4d1284da6fcc39bf1023d2","old_file":"common\/log.h","new_file":"common\/log.h","old_contents":"\/**\n * log.h - Header of log class\n * includes 2 methods to show warrnings and errors\n * @author Pavel Kryukov\n * Copyright 2017 MIPT-MIPS team\n *\/\n\n#ifndef LOG_H\n#define LOG_H\n\n#include \n#include \n\nclass LogOstream\n{\n const bool enable;\n std::ostream& stream;\n\npublic:\n struct Critical { };\n\n LogOstream(bool value, std::ostream& _out) : enable(value), stream(_out) { }\n\n friend LogOstream& operator<<(LogOstream&, const Critical&) {\n exit(-1);\n }\n\n LogOstream& operator<<(std::ostream& (*F)(std::ostream&)) {\n if ( enable)\n F(stream);\n return *this;\n }\n\n template\n LogOstream& operator<<(const T& v) {\n if ( enable) {\n stream << v;\n }\n\n return *this;\n }\n};\n\nclass Log\n{\npublic:\n LogOstream sout;\n LogOstream serr;\n LogOstream::Critical critical;\n\n Log(bool value) : sout(value, std::cout), serr(true, std::cerr), critical() { }\n virtual ~Log() { }\n};\n\n\n#endif \/* LOG_H *\/\n","new_contents":"\/**\n * log.h - Header of log class\n * includes 2 methods to show warrnings and errors\n * @author Pavel Kryukov\n * Copyright 2017 MIPT-MIPS team\n *\/\n\n#ifndef LOG_H\n#define LOG_H\n\n#include \n#include \n\nclass LogOstream\n{\n const bool enable;\n std::ostream& stream;\n\npublic:\n struct Critical { };\n\n LogOstream(bool value, std::ostream& _out) : enable(value), stream(_out) { }\n\n friend LogOstream& operator<<(LogOstream&, const Critical&) {\n exit(-1);\n }\n\n LogOstream& operator<<(std::ostream& (*F)(std::ostream&)) {\n if ( enable)\n F(stream);\n return *this;\n }\n\n template\n LogOstream& operator<<(const T& v) {\n if ( enable) {\n stream << v;\n }\n\n return *this;\n }\n};\n\nclass Log\n{\npublic:\n mutable LogOstream sout;\n mutable LogOstream serr;\n const LogOstream::Critical critical;\n\n Log(bool value) : sout(value, std::cout), serr(true, std::cerr), critical() { }\n virtual ~Log() { }\n};\n\n\n#endif \/* LOG_H *\/\n","subject":"Make serr and sout mutable to use them in const methods","message":"Make serr and sout mutable to use them in const methods\n","lang":"C","license":"mit","repos":"MIPT-ILab\/mipt-mips,MIPT-ILab\/mipt-mips,MIPT-ILab\/mipt-mips-2015,gkorepanov\/mipt-mips,MIPT-ILab\/mipt-mips-2015,MIPT-ILab\/mipt-mips-2015,MIPT-ILab\/mipt-mips-2015"} {"commit":"370602bb15aaa83d5a976ea255883a8c9d0b9152","old_file":"EXAMPLE_CODE\/hw.c","new_file":"EXAMPLE_CODE\/hw.c","old_contents":"","new_contents":"\/*******************************************************************************\n * File : hw.c\n * Author : Sandeep Koranne\n *\n * Purpose : Hello, World in C\n *\n ******************************************************************************\/\n#include \n#include \nint main()\n{\n printf(\"Hello, World!\\n\");\n return ( EXIT_SUCCESS );\n}\n","subject":"Add hello world C example","message":"Add hello world C example\n","lang":"C","license":"cc0-1.0","repos":"skoranne\/CST223,skoranne\/CST223,skoranne\/CST223"} {"commit":"8da70953568e44c46d7aebeea3147c029135a824","old_file":"MRHexKeyboard.h","new_file":"MRHexKeyboard.h","old_contents":"\/\/\n\/\/ MRHexKeyboard.h\n\/\/\n\/\/ Created by Mikk Rätsep on 02\/10\/13.\n\/\/ Copyright (c) 2013 Mikk Rätsep. All rights reserved.\n\/\/\n\n@import UIKit;\n\n@interface MRHexKeyboard : UIView \n\n@property(nonatomic, assign) CGFloat height;\n\n@property(nonatomic, assign) BOOL display0xButton;\n\n@property(nonatomic, assign) BOOL add0x;\n\n@end\n","new_contents":"\/\/\n\/\/ MRHexKeyboard.h\n\/\/\n\/\/ Created by Mikk Rätsep on 02\/10\/13.\n\/\/ Copyright (c) 2013 Mikk Rätsep. All rights reserved.\n\/\/\n\n#import \n\n@interface MRHexKeyboard : UIView \n\n@property(nonatomic, assign) CGFloat height;\n\n@property(nonatomic, assign) BOOL display0xButton;\n\n@property(nonatomic, assign) BOOL add0x;\n\n@end\n","subject":"Switch to importing framework header","message":"Switch to importing framework header\n\nSome Apps may not use modules\n","lang":"C","license":"mit","repos":"doofyus\/HexKeyboard"} {"commit":"0163470450726394efaf11570daade9f34eb2f6e","old_file":"util\/util_export.h","new_file":"util\/util_export.h","old_contents":"\/\/\n\/\/ Copyright 2018 The ANGLE Project Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\/\/\n\/\/ util_export.h : Defines ANGLE_UTIL_EXPORT, a macro for exporting symbols.\n\n#ifndef UTIL_EXPORT_H_\n#define UTIL_EXPORT_H_\n\n#if !defined(ANGLE_UTIL_EXPORT)\n# if defined(_WIN32)\n# if defined(LIBANGLE_UTIL_IMPLEMENTATION)\n# define ANGLE_UTIL_EXPORT __declspec(dllexport)\n# else\n# define ANGLE_UTIL_EXPORT __declspec(dllimport)\n# endif\n# elif defined(__GNUC__)\n# define ANGLE_UTIL_EXPORT __attribute__((visibility(\"default\")))\n# else\n# define ANGLE_UTIL_EXPORT\n# endif\n#endif \/\/ !defined(ANGLE_UTIL_EXPORT)\n\n#endif \/\/ UTIL_EXPORT_H_\n","new_contents":"\/\/\n\/\/ Copyright 2018 The ANGLE Project Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\/\/\n\/\/ util_export.h : Defines ANGLE_UTIL_EXPORT, a macro for exporting symbols.\n\n#ifndef UTIL_EXPORT_H_\n#define UTIL_EXPORT_H_\n\n#if !defined(ANGLE_UTIL_EXPORT)\n# if defined(_WIN32)\n# if defined(LIBANGLE_UTIL_IMPLEMENTATION)\n# define ANGLE_UTIL_EXPORT __declspec(dllexport)\n# else\n# define ANGLE_UTIL_EXPORT __declspec(dllimport)\n# endif\n# elif defined(__GNUC__)\n# if defined(LIBANGLE_UTIL_IMPLEMENTATION)\n# define ANGLE_UTIL_EXPORT __attribute__((visibility(\"default\")))\n# else\n# define ANGLE_UTIL_EXPORT\n# endif\n# else\n# define ANGLE_UTIL_EXPORT\n# endif\n#endif \/\/ !defined(ANGLE_UTIL_EXPORT)\n\n#endif \/\/ UTIL_EXPORT_H_\n","subject":"Revert \"util: Always specify default visibility on exports.\"","message":"Revert \"util: Always specify default visibility on exports.\"\n\nThis reverts commit 2bf23ea84e4f071c18f01b94748f3be7dccc4019.\n\nReason for revert: Probably not the right fix. Will export\nall angle_utils symbols in places where they shouldn't be.\n\nOriginal change's description:\n> util: Always specify default visibility on exports.\n> \n> This fixes undefined behaviour with CFI.\n> \n> Bug: chromium:1015810\n> Bug: angleproject:3162\n> Change-Id: I58cfb78adabbff05e5b4560dfd70b190411fa26d\n> Reviewed-on: https:\/\/chromium-review.googlesource.com\/c\/angle\/angle\/+\/1869303\n> Reviewed-by: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org>\n> Commit-Queue: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org>\n\nTBR=ynovikov@chromium.org,7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org\n\nChange-Id: Ie847a9e6506178eb2b14e63a1ee5e9a1775b4548\nNo-Presubmit: true\nNo-Tree-Checks: true\nNo-Try: true\nBug: chromium:1015810, angleproject:3162\nReviewed-on: https:\/\/chromium-review.googlesource.com\/c\/angle\/angle\/+\/1869546\nReviewed-by: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org>\nCommit-Queue: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org>\n","lang":"C","license":"bsd-3-clause","repos":"ppy\/angle,ppy\/angle,ppy\/angle,ppy\/angle"} {"commit":"40489836d8c58602f60a2f2fa7b564754d41d7ae","old_file":"include\/psp2\/avconfig.h","new_file":"include\/psp2\/avconfig.h","old_contents":"\/**\n * \\usergroup{SceAVConfig}\n * \\usage{psp2\/avconfig.h,SceAVConfig_stub}\n *\/\n\n\n#ifndef _PSP2_AVCONFIG_H_\n#define _PSP2_AVCONFIG_H_\n\n#include \n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\/***\n * Get the maximum brightness.\n *\n * @param[out] maxBrightness - Maximum brightness.\n *\n * @return 0 on success, < 0 on error.\n *\/\nint sceAVConfigGetDisplayMaxBrightness(int *maxBrightness);\n\n\/***\n * Set the screen brightness.\n *\n * @param brightness - Brightness that the screen will be set to (range 21-65536, 0 turns off the screen).\n *\n * @return 0 on success, < 0 on error.\n *\/\nint sceAVConfigSetDisplayBrightness(int brightness);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n\n","new_contents":"\/**\n * \\usergroup{SceAVConfig}\n * \\usage{psp2\/avconfig.h,SceAVConfig_stub}\n *\/\n\n\n#ifndef _PSP2_AVCONFIG_H_\n#define _PSP2_AVCONFIG_H_\n\n#include \n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\/***\n * Get the maximum brightness.\n *\n * @param[out] maxBrightness - Maximum brightness.\n *\n * @return 0 on success, < 0 on error.\n *\/\nint sceAVConfigGetDisplayMaxBrightness(int *maxBrightness);\n\n\/***\n * Set the screen brightness.\n *\n * @param brightness - Brightness that the screen will be set to (range 21-65536, 0 turns off the screen).\n *\n * @return 0 on success, < 0 on error.\n *\/\nint sceAVConfigSetDisplayBrightness(int brightness);\n\n\/***\n * Get the shutter volume.\n *\n * @param[out] volume - shutter volume.\n *\n * @return 0 on success, < 0 on error.\n *\/\nint sceAVConfigGetShutterVol(int *volume);\n\n\/***\n * Get the system volume.\n *\n * @param[out] volume - System volume.\n *\n * @return 0 on success, < 0 on error.\n *\/\nint sceAVConfigGetSystemVol(int *volume);\n\n\/***\n * Set the system volume.\n *\n * @param volume - volume that the device will be set to (range 0-30).\n *\n * @return 0 on success, < 0 on error.\n *\/\nint sceAVConfigSetSystemVol(int volume);\n\n\/**\n * Turns on mute.\n *\n * @return 0 on success, < 0 on error.\n *\n *\/\nint sceAVConfigMuteOn(void);\n\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n\n","subject":"Add some sceAVConfig volume functions","message":"Add some sceAVConfig volume functions\n","lang":"C","license":"mit","repos":"Rinnegatamante\/vita-headers,Rinnegatamante\/vita-headers,vitasdk\/vita-headers,vitasdk\/vita-headers,Rinnegatamante\/vita-headers,vitasdk\/vita-headers,vitasdk\/vita-headers,Rinnegatamante\/vita-headers"} {"commit":"7cca2ec8a54c5bd937eaf08ceb49712f627d1c7a","old_file":"lib\/IRGen\/CallingConvention.h","new_file":"lib\/IRGen\/CallingConvention.h","old_contents":"\/\/===--- CallingConvention.h - Calling conventions --------------*- C++ -*-===\/\/\n\/\/\n\/\/ This source file is part of the Swift.org open source project\n\/\/\n\/\/ Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors\n\/\/ Licensed under Apache License v2.0 with Runtime Library Exception\n\/\/\n\/\/ See http:\/\/swift.org\/LICENSE.txt for license information\n\/\/ See http:\/\/swift.org\/CONTRIBUTORS.txt for the list of Swift project authors\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ This file declares the interfaces for working with abstract and\n\/\/ phsyical calling conventions.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef SWIFT_IRGEN_CALLINGCONVENTION_H\n#define SWIFT_IRGEN_CALLINGCONVENTION_H\n\n#include \"llvm\/IR\/CallingConv.h\"\n\nnamespace llvm {\n class AttributeSet;\n class Value;\n}\n\nnamespace swift {\n class ValueDecl;\n enum class SILFunctionTypeRepresentation : uint8_t;\n\nnamespace irgen {\n class IRGenModule;\n\n\/\/\/ Expand an abstract SIL function type representation into a physical\n\/\/\/ convention.\nllvm::CallingConv::ID expandCallingConv(IRGenModule &IGM,\n SILFunctionTypeRepresentation convention);\n\n} \/\/ end namespace irgen\n} \/\/ end namespace swift\n\n#endif\n","new_contents":"\/\/===--- CallingConvention.h - Calling conventions --------------*- C++ -*-===\/\/\n\/\/\n\/\/ This source file is part of the Swift.org open source project\n\/\/\n\/\/ Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors\n\/\/ Licensed under Apache License v2.0 with Runtime Library Exception\n\/\/\n\/\/ See http:\/\/swift.org\/LICENSE.txt for license information\n\/\/ See http:\/\/swift.org\/CONTRIBUTORS.txt for the list of Swift project authors\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ This file declares the interfaces for working with abstract and\n\/\/ physical calling conventions.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef SWIFT_IRGEN_CALLINGCONVENTION_H\n#define SWIFT_IRGEN_CALLINGCONVENTION_H\n\n#include \"llvm\/IR\/CallingConv.h\"\n\nnamespace llvm {\n class AttributeSet;\n class Value;\n}\n\nnamespace swift {\n class ValueDecl;\n enum class SILFunctionTypeRepresentation : uint8_t;\n\nnamespace irgen {\n class IRGenModule;\n\n\/\/\/ Expand an abstract SIL function type representation into a physical\n\/\/\/ convention.\nllvm::CallingConv::ID expandCallingConv(IRGenModule &IGM,\n SILFunctionTypeRepresentation convention);\n\n} \/\/ end namespace irgen\n} \/\/ end namespace swift\n\n#endif\n","subject":"Fix typo phsyical => physical","message":"Fix typo phsyical => physical","lang":"C","license":"apache-2.0","repos":"khizkhiz\/swift,khizkhiz\/swift,khizkhiz\/swift,khizkhiz\/swift,khizkhiz\/swift,khizkhiz\/swift,khizkhiz\/swift"} {"commit":"562bd95583a33d69e31b1e9bdea8f2076d8df46a","old_file":"src\/swganh\/tre\/visitors\/objects\/object_visitor-intl.h","new_file":"src\/swganh\/tre\/visitors\/objects\/object_visitor-intl.h","old_contents":"\/\/ This file is part of SWGANH which is released under the MIT license.\n\/\/ See file LICENSE or go to http:\/\/swganh.com\/LICENSE\n#pragma once\n\nnamespace swganh\n{\nnamespace tre\n{\n\ttemplate T ObjectVisitor::attribute(const std::string& key)\n\t{\n\t\tstd::map>::const_iterator it = attributes_.find(key);\n\t\tif(it != attributes_.cend())\n\t\t{\n\t\t\treturn boost::any_cast(*it->second);\n\t\t}\n\t\tthrow std::runtime_error(\"Invalid type requested for attribute\");\n\t}\n}\n}\n","new_contents":"\/\/ This file is part of SWGANH which is released under the MIT license.\n\/\/ See file LICENSE or go to http:\/\/swganh.com\/LICENSE\n#pragma once\n#include\nnamespace swganh\n{\nnamespace tre\n{\n\ttemplate T ObjectVisitor::attribute(const std::string& key)\n\t{\n\t\tstd::map>::const_iterator it = attributes_.find(key);\n\t\tif(it != attributes_.cend())\n\t\t{\n\t\t\treturn boost::any_cast(*it->second);\n\t\t}\n\t\tthrow std::runtime_error(\"Invalid type requested for attribute\");\n\t}\n}\n}\n","subject":"Fix for missing include that vs studio forgot to complain about","message":"Fix for missing include that vs studio forgot to complain about\n","lang":"C","license":"mit","repos":"anhstudios\/swganh,anhstudios\/swganh,anhstudios\/swganh"} {"commit":"09d4f342619ac11e29128f044e3ab5c802ae7833","old_file":"include\/parrot\/enums.h","new_file":"include\/parrot\/enums.h","old_contents":"#if !defined(PARROT_ENUMS_H_GUARD)\n#define PARROT_ENUMS_H_GUARD\n\ntypedef enum {\n NO_STACK_ENTRY_TYPE = 0,\n STACK_ENTRY_INT = 1,\n STACK_ENTRY_FLOAT = 2,\n STACK_ENTRY_STRING = 3,\n STACK_ENTRY_PMC = 4,\n STACK_ENTRY_POINTER = 5,\n STACK_ENTRY_DESTINATION = 6\n} Stack_entry_type;\n\ntypedef enum {\n NO_STACK_ENTRY_FLAGS = 0,\n STACK_ENTRY_CLEANUP_FLAG = 1 << 0\n} Stack_entry_flags;\n\ntypedef enum {\n NO_STACK_CHUNK_FLAGS = 0,\n STACK_CHUNK_COW_FLAG = 1 << 0\n} Stack_chunk_flags;\n\n\n#endif\n","new_contents":"\/* enums.h\n * Copyright: 2001-2003 The Perl Foundation. All Rights Reserved.\n * Overview:\n * enums shared by much of the stack-handling code\n * Data Structure and Algorithms:\n * History:\n * Notes:\n * References: \n *\/\n\n#if !defined(PARROT_ENUMS_H_GUARD)\n#define PARROT_ENUMS_H_GUARD\n\ntypedef enum {\n NO_STACK_ENTRY_TYPE = 0,\n STACK_ENTRY_INT = 1,\n STACK_ENTRY_FLOAT = 2,\n STACK_ENTRY_STRING = 3,\n STACK_ENTRY_PMC = 4,\n STACK_ENTRY_POINTER = 5,\n STACK_ENTRY_DESTINATION = 6\n} Stack_entry_type;\n\ntypedef enum {\n NO_STACK_ENTRY_FLAGS = 0,\n STACK_ENTRY_CLEANUP_FLAG = 1 << 0\n} Stack_entry_flags;\n\ntypedef enum {\n NO_STACK_CHUNK_FLAGS = 0,\n STACK_CHUNK_COW_FLAG = 1 << 0\n} Stack_chunk_flags;\n\n\n#endif\n\n\/*\n * Local variables:\n * c-indentation-style: bsd\n * c-basic-offset: 4\n * indent-tabs-mode: nil\n * End:\n *\n * vim: expandtab shiftwidth=4:\n*\/\n","subject":"Add header and footer comments","message":"Add header and footer comments\n\n\ngit-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@3957 d31e2699-5ff4-0310-a27c-f18f2fbe73fe\n","lang":"C","license":"artistic-2.0","repos":"ashgti\/parrot,ashgti\/parrot,ashgti\/parrot,ashgti\/parrot,ashgti\/parrot,ashgti\/parrot,ashgti\/parrot"} {"commit":"8c1ce215a8dbfb004a0d105d9bae637ed166d5c3","old_file":"src\/Console.h","new_file":"src\/Console.h","old_contents":"#ifndef CONSOLE_H\n#define CONSOLE_H\n\n#include \n\n#include \n#include \n#include \n#include \n#include \n\nclass Divider {\npublic:\n Divider(int interval = 1) {\n\tsetInterval(interval);\n }\n void setInterval(int interval) {\n\tthis->interval = interval;\n\tclockCounter = interval - 1;\n }\n void tick() {\n\tclockCounter++;\n\tif (clockCounter == interval) {\n\t clockCounter = 0;\n\t}\n }\n bool hasClocked() {\n\treturn clockCounter == 0;\n }\n\nprivate:\n int interval;\n int clockCounter;\n};\n\nclass Console {\npublic:\n Console() : cpuDivider(3) { }\n void boot();\n bool loadINesFile(std::string fileName);\n uint32_t *getFrameBuffer();\n void runForOneFrame();\n\n Cart cart;\n Controller controller1;\n APU apu;\n\nprivate:\n void tick();\n\n PPU ppu;\n CPU cpu;\n Divider cpuDivider;\n};\n\n#endif\n","new_contents":"#ifndef CONSOLE_H\n#define CONSOLE_H\n\n#include \n\n#include \n#include \n#include \n#include \n#include \n\nclass Divider {\npublic:\n Divider(int interval = 1) {\n\tsetInterval(interval);\n }\n void setInterval(int interval) {\n\tthis->interval = interval;\n\tclockCounter = interval - 1;\n }\n void tick() {\n\tclockCounter++;\n\tif (clockCounter == interval) {\n\t clockCounter = 0;\n\t}\n }\n bool hasClocked() {\n\treturn clockCounter == 0;\n }\n\nprivate:\n int interval;\n int clockCounter;\n};\n\nclass Console {\npublic:\n Console() : cpuDivider(3) { }\n void boot();\n bool loadINesFile(std::string fileName);\n uint32_t *getFrameBuffer();\n void runForOneFrame();\n\n Controller controller1;\n\nprivate:\n void tick();\n\n Cart cart;\n APU apu;\n PPU ppu;\n CPU cpu;\n Divider cpuDivider;\n};\n\n#endif\n","subject":"Make cart and apu members private","message":"Make cart and apu members private\n","lang":"C","license":"mit","repos":"scottjcrouch\/ScootNES,scottjcrouch\/ScootNES,scottjcrouch\/ScootNES"} {"commit":"44b95f9ebc976a6e5b521de7b6c44e0858b14ebf","old_file":"tests\/test_header.h","new_file":"tests\/test_header.h","old_contents":"#include \n#include \n#include \"..\/libcpsl.h\"\n#include \n\n#define RUNTEST(x) ((CurrentTest = #x), x(), printf(\"Test \\\"%s\\\" passed.\\n\", #x))\n\nstatic const char *CurrentTest = NULL;\n\nstatic void SigHandler(const int Signal);\n\nstatic inline void InitTestUnit(void)\n{\n\tCPSL_Configure(malloc, free, realloc);\n\tsignal(SIGABRT, SigHandler);\n\tsignal(SIGSEGV, SigHandler);\n\tsignal(SIGTERM, SigHandler);\n\tsignal(SIGILL, SigHandler);\n\tsignal(SIGFPE, SigHandler);\n\tsignal(SIGQUIT, SigHandler);\n\tsignal(SIGBUS, SigHandler);\n\t\n}\n\nstatic void SigHandler(const int Signal)\n{\n\tfprintf(stderr, \"Received signal number %d while running test \\\"%s()\\\"\\n\", Signal, CurrentTest);\n\texit(1);\n}\n","new_contents":"#include \n#include \n#include \"..\/libcpsl.h\"\n#include \n\n#define RUNTEST(x) ((CurrentTest = #x), x(), printf(\"Subtest \\\"%s\\\" passed.\\n\", #x))\n\nstatic const char *CurrentTest = NULL;\n\nstatic void SigHandler(const int Signal);\n\nstatic inline void InitTestUnit(void)\n{\n\tCPSL_Configure(malloc, free, realloc);\n\tsignal(SIGABRT, SigHandler);\n\tsignal(SIGSEGV, SigHandler);\n\tsignal(SIGTERM, SigHandler);\n\tsignal(SIGILL, SigHandler);\n\tsignal(SIGFPE, SigHandler);\n\tsignal(SIGQUIT, SigHandler);\n\tsignal(SIGBUS, SigHandler);\n\tputs(\"Running test \\\"\" __FILE__ \"\\\"\");\n}\n\nstatic void SigHandler(const int Signal)\n{\n\tfprintf(stderr, \"Received signal number %d while running test \\\"%s()\\\"\\n\", Signal, CurrentTest);\n\texit(1);\n}\n","subject":"Fix some wording for unit tests.","message":"Fix some wording for unit tests.\n","lang":"C","license":"unlicense","repos":"Subsentient\/libcpsl,Subsentient\/libcpsl,Subsentient\/libcpsl"} {"commit":"187f9787c989c5ed8cf84a7daf010769cc3213c5","old_file":"calc.c","new_file":"calc.c","old_contents":"#include \"calc.h\"\n\n#include \n#include \n#include \n\nint calc(const char* p, int mul_div_flag)\n{\n int i;\n int ans;\n\n ans = atoi(p);\n i = 0;\n while (p[i] != '\\0'){\n while (isdigit(p[i])){\n i++;\n }\n switch (p[i]){\n case '+':\n return (ans + calc(p + i + 1, 0));\n case '-':\n return (ans - calc(p + i + 1, 0));\n case '*':\n ans *= calc(p + i + 1, 1);\n if (p[i + 1] == '('){\n while (p[i] != ')'){\n i++;\n }\n }\n i++;\n break;\n case '\/':\n ans \/= calc(p + i + 1, 1);\n if (p[i + 1] == '('){\n while (p[i] != ')'){\n i++;\n }\n }\n i++;\n break;\n case '(':\n return (calc(p + i + 1, 0));\n case ')':\n case '\\0':\n return (ans);\n default:\n puts(\"Error\");\n return (0);\n }\n }\n\n return (ans);\n}\n","new_contents":"#include \"calc.h\"\n\n#include \n#include \n#include \n\nint calc(const char* p, int mul_div_flag)\n{\n int i;\n int ans;\n\n ans = atoi(p);\n if (p[0] != '(' && mul_div_flag == 1){\n return (ans);\n }\n i = 0;\n while (p[i] != '\\0'){\n while (isdigit(p[i])){\n i++;\n }\n switch (p[i]){\n case '+':\n return (ans + calc(p + i + 1, 0));\n case '-':\n return (ans - calc(p + i + 1, 0));\n case '*':\n ans *= calc(p + i + 1, 1);\n if (p[i + 1] == '('){\n while (p[i] != ')'){\n i++;\n }\n }\n i++;\n break;\n case '\/':\n ans \/= calc(p + i + 1, 1);\n if (p[i + 1] == '('){\n while (p[i] != ')'){\n i++;\n }\n }\n i++;\n break;\n case '(':\n return (calc(p + i + 1, 0));\n case ')':\n case '\\0':\n return (ans);\n default:\n puts(\"Error\");\n return (0);\n }\n }\n\n return (ans);\n}\n","subject":"Return answer when multiple or divide","message":"Return answer when multiple or divide\n","lang":"C","license":"mit","repos":"Roadagain\/Calculator,Roadagain\/Calculator"} {"commit":"a6fb75a75e2efd5409e124ebbf89d4ca6eab0e1d","old_file":"archive\/src\/080.c","new_file":"archive\/src\/080.c","old_contents":"","new_contents":"#include \n#include \n#include \n\nint is_perfect_sq(int n)\n{\n int s = sqrt(n);\n return s * s == n;\n}\n\nint main(void)\n{\n \/\/ 10^100 ~< 2^400\n mpf_set_default_prec(512);\n\n mpf_t a;\n mpf_init(a);\n int total_sum = 0;\n\n \/\/ Count through 100 irrational roots\n for (int i = 2; i <= 100; ++i) {\n if (is_perfect_sq(i)) {\n continue;\n }\n\n mpf_sqrt_ui(a, i);\n int digital_sum = 0;\n\n \/\/ Count 100 decimal digits\n for (int i = 0; i < 100; ++i) {\n long ip = mpf_get_ui(a);\n digital_sum += ip % 10;\n\n mpf_sub_ui(a, a, ip);\n mpf_mul_ui(a, a, 10);\n }\n\n total_sum += digital_sum;\n }\n\n printf(\"%d\\n\", total_sum);\n mpf_clear(a);\n}\n","subject":"Add solution for problem 80","message":"Add solution for problem 80\n\nThis is done using C, since GMP is already a dependency and the code is\nfairly simple.\n","lang":"C","license":"mit","repos":"tiehuis\/euler,tiehuis\/euler,tiehuis\/euler,tiehuis\/euler"} {"commit":"040a902e166dbe1c4daaa53080f920242cb9dc71","old_file":"src\/selector.h","new_file":"src\/selector.h","old_contents":"#pragma once\n\n#include \n\n#include \"util.h\"\n\nnamespace happyntrain {\n\ntemplate \nclass Selector : NoCopy {\n SelectorImpt _selector;\n int64_t _id;\n\n public:\n template \n Selector(Vars&&... args) : _id(GetNewId()), _selector(args...) {}\n ~Selector() {}\n\n inline void AddChannel() { _selector.AddChannel(); }\n inline void RemoveChannel() { _selector.RemoveChannel(); }\n inline void UpdateChannel() { _selector.UpdateChannel(); }\n\n private:\n static int64_t GetNewId() {\n static std::atomic id(0);\n return id++;\n }\n};\n\n\/\/ end happyntrain\n}","new_contents":"#pragma once\n\n#include \n\n#include \"util.h\"\n\nnamespace happyntrain {\n\nconst int kMaxSelectEvents = 2000;\n\ntemplate \nclass Selector : NoCopy {\n SelectorImpt _selector;\n int64_t _id;\n\n public:\n template \n Selector(Vars&&... args) : _id(GetNewId()), _selector(args...) {}\n ~Selector() {}\n\n inline void AddChannel() { _selector.AddChannel(); }\n inline void RemoveChannel() { _selector.RemoveChannel(); }\n inline void UpdateChannel() { _selector.UpdateChannel(); }\n\n private:\n static int64_t GetNewId() {\n static std::atomic id(0);\n return id++;\n }\n};\n\n\/\/ end happyntrain\n}","subject":"Add constants - max events","message":"Add constants - max events\n","lang":"C","license":"mit","repos":"emengjzs\/happyntrain"} {"commit":"2498c6a0ed3edffe5becc54b27ef86bbd33d4023","old_file":"You-DataStore\/internal\/operation.h","new_file":"You-DataStore\/internal\/operation.h","old_contents":"#pragma once\n#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_\n#define YOU_DATASTORE_INTERNAL_OPERATION_H_\n\n#include \n#include \"..\/task_typedefs.h\"\n\nnamespace You {\nnamespace DataStore {\n\n\/\/\/ A pure virtual class of operations to be put into transaction stack\nclass IOperation {\npublic:\n\t\/\/\/ Executes the operation\n\tvirtual bool run() = 0;\nprotected:\n\tTaskId taskId;\n\tSerializedTask task;\n};\n\n} \/\/ namespace DataStore\n} \/\/ namespace You\n\n#endif \/\/ YOU_DATASTORE_INTERNAL_OPERATION_H_\n","new_contents":"#pragma once\n#ifndef YOU_DATASTORE_INTERNAL_OPERATION_H_\n#define YOU_DATASTORE_INTERNAL_OPERATION_H_\n\n#include \n#include \"..\/task_typedefs.h\"\n\nnamespace You {\nnamespace DataStore {\n\n\/\/\/ A pure virtual class of operations to be put into transaction stack\nclass IOperation {\npublic:\n\tvirtual ~IOperation();\n\t\/\/\/ Executes the operation\n\tvirtual bool run() = 0;\nprotected:\n\tTaskId taskId;\n\tSerializedTask task;\n};\n\n} \/\/ namespace DataStore\n} \/\/ namespace You\n\n#endif \/\/ YOU_DATASTORE_INTERNAL_OPERATION_H_\n","subject":"Add back virtual dtor for IOperation","message":"Add back virtual dtor for IOperation\n","lang":"C","license":"mit","repos":"cs2103aug2014-w10-1c\/main,cs2103aug2014-w10-1c\/main"} {"commit":"3a41b9926ac545e4497fb2faf6cf7f22c05eb4b5","old_file":"src\/condor_utils\/perf_counter.linux.h","new_file":"src\/condor_utils\/perf_counter.linux.h","old_contents":"\/***************************************************************\n*\n* Copyright (C) 1990-2021, Condor Team, Computer Sciences Department,\n* University of Wisconsin-Madison, WI.\n* \n* Licensed under the Apache License, Version 2.0 (the \"License\"); you\n* may not use this file except in compliance with the License. You may\n* obtain a copy of the License at\n* \n* http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n* \n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*\n***************************************************************\/\n\n\/\/ Encapsulate the linux peformance counter, for insn retired\n\/\/ Note this is included in the procd, so we can't use full condor libraries\n\n#ifndef __PERF_COUNTER_H\n#define _PERF_COUNTER_H\n\n#include \n\nclass PerfCounter {\n\tpublic:\n\t\tPerfCounter(pid_t pid);\n\t\tvirtual ~PerfCounter();\n\t\tvoid start() const;\n\t\tvoid stop() const;\n\t\tlong long getInsns() const;\n\tprivate:\n\t\tpid_t pid;\n\t\tint fd;\n};\n\n#endif\n","new_contents":"\/***************************************************************\n*\n* Copyright (C) 1990-2021, Condor Team, Computer Sciences Department,\n* University of Wisconsin-Madison, WI.\n* \n* Licensed under the Apache License, Version 2.0 (the \"License\"); you\n* may not use this file except in compliance with the License. You may\n* obtain a copy of the License at\n* \n* http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n* \n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*\n***************************************************************\/\n\n\/\/ Encapsulate the linux peformance counter, for insn retired\n\/\/ Note this is included in the procd, so we can't use full condor libraries\n\n#ifndef __PERF_COUNTER_H\n#define __PERF_COUNTER_H\n\n#include \n\nclass PerfCounter {\n\tpublic:\n\t\tPerfCounter(pid_t pid);\n\t\tvirtual ~PerfCounter();\n\t\tvoid start() const;\n\t\tvoid stop() const;\n\t\tlong long getInsns() const;\n\tprivate:\n\t\tpid_t pid;\n\t\tint fd;\n};\n\n#endif\n","subject":"Fix typo in macro guard HTCONDOR-390","message":"Fix typo in macro guard HTCONDOR-390\n","lang":"C","license":"apache-2.0","repos":"htcondor\/htcondor,htcondor\/htcondor,htcondor\/htcondor,htcondor\/htcondor,htcondor\/htcondor,htcondor\/htcondor,htcondor\/htcondor,htcondor\/htcondor"} {"commit":"0f427d7730b007e8740fff16d9a7b0dc5ebb692a","old_file":"TMCache\/TMCacheBackgroundTaskManager.h","new_file":"TMCache\/TMCacheBackgroundTaskManager.h","old_contents":"\/\/\n\/\/ TMCacheBackgroundTaskManager.h\n\/\/ TMCache\n\/\/\n\/\/ Created by Bryan Irace on 4\/24\/15.\n\/\/ Copyright (c) 2015 Tumblr. All rights reserved.\n\/\/\n\n@import UIKit;\n\n\/**\n A protocol that classes who can begin and end background tasks can conform to. This protocol provides an abstraction in\n order to avoid referencing `+ [UIApplication sharedApplication]` from within an iOS application extension.\n *\/\n@protocol TMCacheBackgroundTaskManager \n\n\/**\n Marks the beginning of a new long-running background task.\n \n @return A unique identifier for the new background task. You must pass this value to the `endBackgroundTask:` method to\n mark the end of this task. This method returns `UIBackgroundTaskInvalid` if running in the background is not possible.\n *\/\n- (UIBackgroundTaskIdentifier)beginBackgroundTask;\n\n\/**\n Marks the end of a specific long-running background task.\n \n @param identifier An identifier returned by the `beginBackgroundTaskWithExpirationHandler:` method.\n *\/\n- (void)endBackgroundTask:(UIBackgroundTaskIdentifier)identifier;\n\n@end\n","new_contents":"\/\/\n\/\/ TMCacheBackgroundTaskManager.h\n\/\/ TMCache\n\/\/\n\/\/ Created by Bryan Irace on 4\/24\/15.\n\/\/ Copyright (c) 2015 Tumblr. All rights reserved.\n\/\/\n\n@import UIKit;\n\n#ifndef __IPHONE_OS_VERSION_MIN_REQUIRED\ntypedef NSUInteger UIBackgroundTaskIdentifier;\n#endif\n\n\/**\n A protocol that classes who can begin and end background tasks can conform to. This protocol provides an abstraction in\n order to avoid referencing `+ [UIApplication sharedApplication]` from within an iOS application extension.\n *\/\n@protocol TMCacheBackgroundTaskManager \n\n\/**\n Marks the beginning of a new long-running background task.\n \n @return A unique identifier for the new background task. You must pass this value to the `endBackgroundTask:` method to\n mark the end of this task. This method returns `UIBackgroundTaskInvalid` if running in the background is not possible.\n *\/\n- (UIBackgroundTaskIdentifier)beginBackgroundTask;\n\n\/**\n Marks the end of a specific long-running background task.\n \n @param identifier An identifier returned by the `beginBackgroundTaskWithExpirationHandler:` method.\n *\/\n- (void)endBackgroundTask:(UIBackgroundTaskIdentifier)identifier;\n\n@end\n","subject":"Define UIBackgroundTaskIdentifier if on OS X","message":"Define UIBackgroundTaskIdentifier if on OS X\n","lang":"C","license":"apache-2.0","repos":"paulkite\/TMCache,paulkite\/TMCache"} {"commit":"6f435b65aea63975a33c18e251654c56bacb38b5","old_file":"private\/TupleManipulation.h","new_file":"private\/TupleManipulation.h","old_contents":"#pragma once\n\nnamespace TupleManipulation {\n\n template\n struct sequence { };\n\n template\n struct gen_sequence : public gen_sequence { };\n\n template\n struct gen_sequence<0, Integers...> : public sequence { };\n\n template\n void for_each(Tuple&& tuple, Functor functor, sequence)\n {\n auto l = { (functor(std::get(tuple)), 0)... };\n (void)l;\n }\n\n template\n void for_each_in_tuple(std::tuple & tuple, Functor functor)\n {\n for_each(tuple, functor, gen_sequence());\n }\n\n template \n struct has_type;\n\n template \n struct has_type> \n {\n static constexpr bool value = false;\n };\n\n template \n struct has_type> : has_type> {};\n\n template \n struct has_type> : std::true_type \n {\n static constexpr bool value = true;\n };\n}\n\n","new_contents":"#pragma once\n\nnamespace TupleManipulation {\n\n template\n struct sequence { };\n\n template\n struct gen_sequence : public gen_sequence { };\n\n template\n struct gen_sequence<0, Integers...> : public sequence { };\n\n template\n void for_each(Tuple&& tuple, Functor functor, sequence)\n {\n auto l = { (functor(std::get(tuple)), 0)... };\n (void)l;\n }\n\n template\n void for_each_in_tuple(std::tuple & tuple, Functor functor)\n {\n for_each(tuple, functor, gen_sequence());\n }\n\n template \n struct has_type;\n\n template \n struct has_type> \n {\n static constexpr bool value = false;\n };\n\n template \n struct has_type> : public has_type> {};\n\n template \n struct has_type> : public std::true_type \n {\n static constexpr bool value = true;\n };\n}\n\n","subject":"Fix compiler warning in IAR","message":"Fix compiler warning in IAR\n","lang":"C","license":"mit","repos":"PabloMansanet\/Panku,PabloMansanet\/Panku"} {"commit":"a721476360ad88fa3e28202b4a399af3e7da2259","old_file":"src\/Engine\/windowManager.h","new_file":"src\/Engine\/windowManager.h","old_contents":"#ifndef windowManager_H\n#define windowManager_H\n\n#include \n\n\/\/ GLEW\n#define GLEW_STATIC\n#include \n\n\/\/ GLFW\n#include \n\nclass windowManager\n{\npublic:\n\t\n\tvoid init();\n\tvoid windowManager::getScreenSize();\n\t\/\/Functions to return dimensions of window\n\tint getWindowHeight();\n\tint getWindowWidth();\n\tGLFWwindow* getWindow();\nprivate:\n\t\/\/The window height\n\tint width;\n\tint height;\n\tGLFWwindow* currentWindow;\n};\n\n\n#endif\n","new_contents":"#ifndef windowManager_H\n#define windowManager_H\n\n#include \n\n\/\/ GLEW\n#define GLEW_STATIC\n#include \n\n\/\/ GLFW\n#include \n\nclass windowManager\n{\npublic:\n\t\n\tvoid init();\n\tvoid getScreenSize();\n\t\/\/Functions to return dimensions of window\n\tint getWindowHeight();\n\tint getWindowWidth();\n\tGLFWwindow* getWindow();\nprivate:\n\t\/\/The window height\n\tint width;\n\tint height;\n\tGLFWwindow* currentWindow;\n};\n\n\n#endif\n","subject":"Fix building error on Linux","message":"Fix building error on Linux\n","lang":"C","license":"apache-2.0","repos":"Afrostie\/Mopviewer"} {"commit":"4b405904603ee76220a24b92d4fce1689592836f","old_file":"plugins\/solokey\/fu-plugin-solokey.c","new_file":"plugins\/solokey\/fu-plugin-solokey.c","old_contents":"\/*\n * Copyright (C) 2019 Richard Hughes \n *\n * SPDX-License-Identifier: LGPL-2.1+\n *\/\n\n#include \"config.h\"\n\n#include \"fu-plugin-vfuncs.h\"\n\n#include \"fu-solokey-device.h\"\n\nvoid\nfu_plugin_init (FuPlugin *plugin)\n{\n\tfu_plugin_set_build_hash (plugin, FU_BUILD_HASH);\n\tfu_plugin_add_rule (plugin, FU_PLUGIN_RULE_SUPPORTS_PROTOCOL, \"com.solokeys\");\n\tfu_plugin_set_device_gtype (plugin, FU_TYPE_SOLOKEY_DEVICE);\n}\n","new_contents":"\/*\n * Copyright (C) 2019 Richard Hughes \n *\n * SPDX-License-Identifier: LGPL-2.1+\n *\/\n\n#include \"config.h\"\n\n#include \"fu-plugin-vfuncs.h\"\n\n#include \"fu-solokey-device.h\"\n#include \"fu-solokey-firmware.h\"\n\nvoid\nfu_plugin_init (FuPlugin *plugin)\n{\n\tfu_plugin_set_build_hash (plugin, FU_BUILD_HASH);\n\tfu_plugin_add_rule (plugin, FU_PLUGIN_RULE_SUPPORTS_PROTOCOL, \"com.solokeys\");\n\tfu_plugin_set_device_gtype (plugin, FU_TYPE_SOLOKEY_DEVICE);\n\tfu_plugin_add_firmware_gtype (plugin, \"solokey\", FU_TYPE_SOLOKEY_FIRMWARE);\n}\n","subject":"Allow parsing firmware with fwupdtool","message":"solokey: Allow parsing firmware with fwupdtool\n","lang":"C","license":"lgpl-2.1","repos":"fwupd\/fwupd,fwupd\/fwupd,hughsie\/fwupd,fwupd\/fwupd,hughsie\/fwupd,hughsie\/fwupd,hughsie\/fwupd,fwupd\/fwupd"} {"commit":"e5ac979a8b86bedf6d0ca74806c0cbfd6feebb20","old_file":"IntelFrameworkPkg\/Include\/Protocol\/Crc32GuidedSectionExtraction.h","new_file":"IntelFrameworkPkg\/Include\/Protocol\/Crc32GuidedSectionExtraction.h","old_contents":"","new_contents":"\/** @file\r\n This file declares GUIDed section extraction protocol.\r\n\r\n This interface provides a means of decoding a GUID defined encapsulation \r\n section. There may be multiple different GUIDs associated with the GUIDed\r\n section extraction protocol. That is, all instances of the GUIDed section\r\n extraction protocol must have the same interface structure.\r\n\r\n Copyright (c) 2006, Intel Corporation \r\n All rights reserved. This program and the accompanying materials \r\n are licensed and made available under the terms and conditions of the BSD License \r\n which accompanies this distribution. The full text of the license may be found at \r\n http:\/\/opensource.org\/licenses\/bsd-license.php \r\n\r\n THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS, \r\n WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r\n\r\n Module Name: GuidedSectionExtraction.h\r\n\r\n @par Revision Reference:\r\n This protocol is defined in Firmware Volume Specification.\r\n Version 0.9\r\n\r\n**\/\r\n\r\n#ifndef __CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_H__\r\n#define __CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_H__\r\n\r\n\r\n\/\/\r\n\/\/ Protocol GUID definition. Each GUIDed section extraction protocol has the\r\n\/\/ same interface but with different GUID. All the GUIDs is defined here.\r\n\/\/ May add multiple GUIDs here.\r\n\/\/\r\n#define EFI_CRC32_GUIDED_SECTION_EXTRACTION_PROTOCOL_GUID \\\r\n { \\\r\n 0xFC1BCDB0, 0x7D31, 0x49aa, {0x93, 0x6A, 0xA4, 0x60, 0x0D, 0x9D, 0xD0, 0x83 } \\\r\n }\r\n\r\n\/\/\r\n\/\/ may add other GUID here\r\n\/\/\r\nextern EFI_GUID gEfiCrc32GuidedSectionExtractionProtocolGuid;\r\n\r\n#endif\r\n","subject":"Rename GuidedSectionExtraction.h to Crc32GuidedSectonExtraction.h to avoid naming collision with that in MdePkg. Remove the duplicate definition.","message":"Rename GuidedSectionExtraction.h to Crc32GuidedSectonExtraction.h to avoid naming collision with that in MdePkg.\nRemove the duplicate definition.\n\ngit-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@2821 6f19259b-4bc3-4df7-8a09-765794883524\n","lang":"C","license":"bsd-2-clause","repos":"MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2"} {"commit":"5929f9c0d0dd4510eb0a38f626b981666a179b78","old_file":"bottleopener\/shiftrConnector.h","new_file":"bottleopener\/shiftrConnector.h","old_contents":"#pragma once\n\n#include \n\nclass ShiftrConnector {\n\n public :\n void sendCounter(int counter);\n\n void init();\n\n void loop();\n\n \/\/default constructor\n ShiftrConnector() {};\n\n private :\n YunMQTTClient client;\n\n void connect();\n};\n\n","new_contents":"#pragma once\n\n\/\/https:\/\/github.com\/256dpi\/arduino-mqtt\n#include \n\nclass ShiftrConnector {\n\n public :\n void sendCounter(int counter);\n\n void init();\n\n void loop();\n\n \/\/default constructor\n ShiftrConnector() {};\n\n private :\n YunMQTTClient client;\n\n void connect();\n};\n\n","subject":"Add link to the library","message":"Add link to the library\n","lang":"C","license":"mit","repos":"Zenika\/bottleopener_iot,Zenika\/bottleopener_iot,Zenika\/bottleopener_iot,Zenika\/bottleopener_iot"} {"commit":"52a4ae2b1dbc35f768406dc831ae980ca3f43244","old_file":"snapshots\/hacl-c-experimental\/aead_chacha20_poly1305.h","new_file":"snapshots\/hacl-c-experimental\/aead_chacha20_poly1305.h","old_contents":"#include \"Chacha20.h\"\n#include \"Poly1305_64.h\"\n\nvoid blit(uint8_t* src, uint32_t len, uint8_t* dest, uint32_t pos);\n\nvoid poly1305_key_gen(uint8_t* otk, uint8_t* key, uint8_t* nonce);\n\nuint32_t hacl_aead_chacha20_poly1305_encrypt(uint8_t *plaintext, uint32_t plaintext_len,\n uint8_t *aad, uint32_t aad_len,\n uint8_t *key, uint8_t *iv,\n uint8_t *ciphertext, uint8_t *tag);\n","new_contents":"#include \"Chacha20.h\"\n#include \"Poly1305_64.h\"\n\nvoid poly1305_key_gen(uint8_t* otk, uint8_t* key, uint8_t* nonce);\n\nuint32_t hacl_aead_chacha20_poly1305_encrypt(uint8_t *plaintext, uint32_t plaintext_len,\n uint8_t *aad, uint32_t aad_len,\n uint8_t *key, uint8_t *iv,\n uint8_t *ciphertext, uint8_t *tag);\n","subject":"Remove exposed function from AEAD Chacha20 Poly1305 code","message":"Remove exposed function from AEAD Chacha20 Poly1305 code\n","lang":"C","license":"apache-2.0","repos":"mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star"} {"commit":"d0a65bfeac62294ce218c3d4c2d57c7bfca6ad20","old_file":"RandomNumbers.h","new_file":"RandomNumbers.h","old_contents":"\/*===- RandomNumbers.h - libSimulation -========================================\n*\n* DEMON\n*\n* This file is distributed under the BSD Open Source License. See LICENSE.TXT \n* for details.\n*\n*===-----------------------------------------------------------------------===*\/\n\n#ifndef RANDOMNUMBERS\n#define RANDOMNUMBERS\n\n#include \n#include \"VectorCompatibility.h\"\n\nclass RandomNumbers {\npublic:\n\tRandomNumbers();\n\t~RandomNumbers() {}\n\t\n\tconst double uniformZeroToOne();\n\tconst double uniformZeroToTwoPi();\n\tconst double guassian(std::normal_distribution &dist);\n\t\nprivate:\n\tstd::mt19937_64 engine;\n\t\n\tstd::uniform_real_distribution zeroToOne;\n\tstd::uniform_real_distribution zeroToTwoPi;\n};\n\nclass RandCache {\npublic:\n\t__m128d r;\n\tdouble l, h;\n\t\n\tRandCache(const __m128d r_ = _mm_set1_pd(0.0), \n\t\t\t const double l_ = 0.0, const double h_ = 0.0) \n\t: r(r_), l(l_), h(h_) {}\n};\n\n#endif \/\/ RANDOMNUMBERS\n","new_contents":"\/*===- RandomNumbers.h - libSimulation -========================================\n*\n* DEMON\n*\n* This file is distributed under the BSD Open Source License. See LICENSE.TXT \n* for details.\n*\n*===-----------------------------------------------------------------------===*\/\n\n#ifndef RANDOMNUMBERS\n#define RANDOMNUMBERS\n\n#include \n#include \"VectorCompatibility.h\"\n\nclass RandomNumbers {\npublic:\n\tRandomNumbers();\n\t~RandomNumbers() {}\n\t\n\tconst double uniformZeroToOne();\n\tconst double uniformZeroToTwoPi();\n\tconst double guassian(std::normal_distribution &dist);\n\t\nprivate:\n\tstd::mt19937_64 engine;\n\t\n\tstd::uniform_real_distribution zeroToOne;\n\tstd::uniform_real_distribution zeroToTwoPi;\n};\n\n\/\/ Structure to hold precomuted random numbers for use with thermal forces.\nstruct RandCache {\n\t__m128d r;\n\tdouble l, h;\n\t\n\tRandCache(const __m128d r_ = _mm_set1_pd(0.0), \n\t\t\t const double l_ = 0.0, const double h_ = 0.0) \n\t: r(r_), l(l_), h(h_) {}\n};\n\n#endif \/\/ RANDOMNUMBERS\n","subject":"Change rand cache to a struct since everything is public. Add comment.","message":"Change rand cache to a struct since everything is public. Add comment.","lang":"C","license":"bsd-3-clause","repos":"leios\/demonsimulationcode,leios\/demonsimulationcode"} {"commit":"867fea2c7e060a1ed593e6728042effbe7274f1b","old_file":"iface.h","new_file":"iface.h","old_contents":"#ifndef IFACE_H_INCLUDED\n#define IFACE_H_INCLUDED\n\n#include \n\ntypedef struct funcs_t {\n\tunsigned char *(*get_mem_buf_hash)(unsigned char *mem_buf, unsigned long int mem_size);\n\tunsigned char *(*hash_to_str)(unsigned char *mem_hash);\n\tint (*is_mem_buf_dumped)(unsigned char *mem_hash);\n\tvoid (*dump_mem_buf)(unsigned char *mem_buf, unsigned long int mem_size, char *fname);\n} funcs_t;\n\ntypedef struct plugin_t {\n\tvoid *hndl;\n\tchar *name;\n\tchar *description;\n\tstruct plugin_t *next;\n} plugin_t;\n\n#endif","new_contents":"#ifndef IFACE_H_INCLUDED\n#define IFACE_H_INCLUDED\n\n#include \n\ntypedef struct plugin_t {\n\tvoid *hndl;\n\tchar *name;\n\tchar *description;\n\tstruct plugin_t *next;\n} plugin_t;\n\n#ifdef __cplusplus\nextern \"C\" plugin_t *init();\n#endif\n\n#endif","subject":"Make plugins's init() function external C","message":"Make plugins's init() function external C\n","lang":"C","license":"unlicense","repos":"alexandernst\/memory-dumper"} {"commit":"f325ae16249c115a28ce6a92d179315085ed13b9","old_file":"bacula\/src\/version.h","new_file":"bacula\/src\/version.h","old_contents":"\/* *\/\n#undef VERSION\n#define VERSION \"1.35.2\"\n#define BDATE \"28 August 2004\"\n#define LSMDATE \"28Aug04\"\n\n\/* Debug flags *\/\n#undef DEBUG\n#define DEBUG 1\n#define TRACEBACK 1\n#define SMCHECK \n#define TRACE_FILE 1 \n\n\n\/* Debug flags not normally turned on *\/\n\n\/* #define TRACE_JCR_CHAIN 1 *\/\n\/* #define TRACE_RES 1 *\/\n\/* #define DEBUG_MEMSET 1 *\/\n#define DEBUG_BLOCK_ZEROING 1\n\n\/* #define FULL_DEBUG 1 *\/ \/* normally on for testing only *\/\n\n\/* Turn this on ONLY if you want all Dmsg() to append to the\n * trace file. Implemented mainly for Win32 ...\n *\/\n\/* #define SEND_DMSG_TO_FILE 1 *\/\n\n\n\/* #define NO_ATTRIBUTES_TEST 1 *\/\n\/* #define NO_TAPE_WRITE_TEST 1 *\/\n\/* #define FD_NO_SEND TEST 1 *\/\n\/* #define DEBUG_MUTEX 1 *\/\n","new_contents":"\/* *\/\n#undef VERSION\n#define VERSION \"1.35.2\"\n#define BDATE \"30 August 2004\"\n#define LSMDATE \"30Aug04\"\n\n\/* Debug flags *\/\n#undef DEBUG\n#define DEBUG 1\n#define TRACEBACK 1\n#define SMCHECK \n#define TRACE_FILE 1 \n\n\n\/* Debug flags not normally turned on *\/\n\n\/* #define TRACE_JCR_CHAIN 1 *\/\n\/* #define TRACE_RES 1 *\/\n\/* #define DEBUG_MEMSET 1 *\/\n#define DEBUG_BLOCK_ZEROING 1\n\n\/* #define FULL_DEBUG 1 *\/ \/* normally on for testing only *\/\n\n\/* Turn this on ONLY if you want all Dmsg() to append to the\n * trace file. Implemented mainly for Win32 ...\n *\/\n\/* #define SEND_DMSG_TO_FILE 1 *\/\n\n\n\/* #define NO_ATTRIBUTES_TEST 1 *\/\n\/* #define NO_TAPE_WRITE_TEST 1 *\/\n\/* #define FD_NO_SEND TEST 1 *\/\n\/* #define DEBUG_MUTEX 1 *\/\n","subject":"Update manual Fix CDROM script to handle non-existant files","message":"Update manual\nFix CDROM script to handle non-existant files\n\n\ngit-svn-id: bb0627f6f70d46b61088c62c6186faa4b96a9496@1568 91ce42f0-d328-0410-95d8-f526ca767f89\n","lang":"C","license":"agpl-3.0","repos":"rkorzeniewski\/bacula,rkorzeniewski\/bacula,rkorzeniewski\/bacula,rkorzeniewski\/bacula,rkorzeniewski\/bacula,rkorzeniewski\/bacula,rkorzeniewski\/bacula,rkorzeniewski\/bacula"} {"commit":"c343de856dbe3f7049ad0193911216b3e7acdc54","old_file":"PSET2\/caesar.c","new_file":"PSET2\/caesar.c","old_contents":"#include \n#include \n\nint main(int argc, char *argv[]) {\n\n \/\/ check entered key\n if (argc != 2 || atoi(argv[1]) < 0) {\n printf(\"Usage: .\/caesar k\\nWhere k is a non negative integer.\\n\");\n return 1;\n }\n\n int key = atoi(argv[1]);\n\n\n\n return 0;\n}\n","new_contents":"#include \n#include \n#include \n#define ALPHA_NUM 26\n\nint main(int argc, char *argv[]) {\n\n \/\/ check argument number and argument key to be greater than -1\n if (argc != 2 || atoi(argv[1]) < 0) {\n printf(\"Usage (k >= 0):\\n.\/caesar k \\n\");\n return 1;\n }\n\n int key = atoi(argv[1]) % ALPHA_NUM;\n\n \/\/ get plaintext from user\n printf(\"plaintext: \");\n string plaintext = get_string();\n printf(\"\\n\");\n\n string ciphertext = \"\";\n\n \/\/ encode plaintext\n size_t text_len = strlen(plaintext);\n for (int i = 0; i < text_len; ++i) {\n \n }\n\n\n\n return 0;\n}\n","subject":"Add unfinished loop to encode message","message":"Add unfinished loop to encode message\n","lang":"C","license":"unlicense","repos":"Implaier\/CS50,Implaier\/CS50,Implaier\/CS50,Implaier\/CS50"} {"commit":"c706f245992f760afdb7d41d3f40c60b3d85ee89","old_file":"src\/bgp\/security_group\/security_group.h","new_file":"src\/bgp\/security_group\/security_group.h","old_contents":"\/*\n * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.\n *\/\n\n#ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_\n#define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_\n\n#include \n#include \n\n#include \n\n#include \"base\/parse_object.h\"\n#include \"bgp\/bgp_common.h\"\n\nclass SecurityGroup {\npublic:\n static const int kSize = 8;\n static const uint32_t kMinGlobalId = 1000000;\n static const uint32_t kMaxGlobalId = 1999999;\n typedef boost::array bytes_type;\n\n SecurityGroup(as_t asn, uint32_t id);\n explicit SecurityGroup(const bytes_type &data);\n\n as_t as_number() const;\n uint32_t security_group_id() const;\n bool IsGlobal() const;\n\n const bytes_type &GetExtCommunity() const {\n return data_;\n }\n\n const uint64_t GetExtCommunityValue() const {\n return get_value(data_.begin(), 8);\n }\n std::string ToString();\n\nprivate:\n bytes_type data_;\n};\n\n#endif \/\/ SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_\n","new_contents":"\/*\n * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.\n *\/\n\n#ifndef SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_\n#define SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_\n\n#include \n#include \n\n#include \n\n#include \"base\/parse_object.h\"\n#include \"bgp\/bgp_common.h\"\n\nclass SecurityGroup {\npublic:\n static const int kSize = 8;\n static const uint32_t kMinGlobalId = 1;\n static const uint32_t kMaxGlobalId = 7999999;\n typedef boost::array bytes_type;\n\n SecurityGroup(as_t asn, uint32_t id);\n explicit SecurityGroup(const bytes_type &data);\n\n as_t as_number() const;\n uint32_t security_group_id() const;\n bool IsGlobal() const;\n\n const bytes_type &GetExtCommunity() const {\n return data_;\n }\n\n const uint64_t GetExtCommunityValue() const {\n return get_value(data_.begin(), 8);\n }\n std::string ToString();\n\nprivate:\n bytes_type data_;\n};\n\n#endif \/\/ SRC_BGP_SECURITY_GROUP_SECURITY_GROUP_H_\n","subject":"Update min\/max global SGIDs values to match Schema Transformer","message":"Update min\/max global SGIDs values to match Schema Transformer\n\nChange-Id: I63d5634e9a374ce33e9e0e779caf499e8fbccdec\nCloses-Bug: 1381145\n","lang":"C","license":"apache-2.0","repos":"rombie\/contrail-controller,eonpatapon\/contrail-controller,cloudwatt\/contrail-controller,cloudwatt\/contrail-controller,srajag\/contrail-controller,DreamLab\/contrail-controller,rombie\/contrail-controller,reiaaoyama\/contrail-controller,vmahuli\/contrail-controller,nischalsheth\/contrail-controller,numansiddique\/contrail-controller,srajag\/contrail-controller,srajag\/contrail-controller,DreamLab\/contrail-controller,hthompson6\/contrail-controller,srajag\/contrail-controller,numansiddique\/contrail-controller,nischalsheth\/contrail-controller,tcpcloud\/contrail-controller,rombie\/contrail-controller,cloudwatt\/contrail-controller,vmahuli\/contrail-controller,nischalsheth\/contrail-controller,sajuptpm\/contrail-controller,reiaaoyama\/contrail-controller,reiaaoyama\/contrail-controller,vmahuli\/contrail-controller,tcpcloud\/contrail-controller,rombie\/contrail-controller,codilime\/contrail-controller,vpramo\/contrail-controller,sajuptpm\/contrail-controller,vpramo\/contrail-controller,srajag\/contrail-controller,tcpcloud\/contrail-controller,eonpatapon\/contrail-controller,eonpatapon\/contrail-controller,nischalsheth\/contrail-controller,codilime\/contrail-controller,codilime\/contrail-controller,codilime\/contrail-controller,tcpcloud\/contrail-controller,facetothefate\/contrail-controller,sajuptpm\/contrail-controller,rombie\/contrail-controller,DreamLab\/contrail-controller,vpramo\/contrail-controller,eonpatapon\/contrail-controller,rombie\/contrail-controller,facetothefate\/contrail-controller,facetothefate\/contrail-controller,nischalsheth\/contrail-controller,nischalsheth\/contrail-controller,numansiddique\/contrail-controller,eonpatapon\/contrail-controller,numansiddique\/contrail-controller,numansiddique\/contrail-controller,reiaaoyama\/contrail-controller,sajuptpm\/contrail-controller,vpramo\/contrail-controller,codilime\/contrail-controller,tcpcloud\/contrail-controller,sajuptpm\/contrail-controller,sajuptpm\/contrail-controller,facetothefate\/contrail-controller,nischalsheth\/contrail-controller,facetothefate\/contrail-controller,hthompson6\/contrail-controller,DreamLab\/contrail-controller,hthompson6\/contrail-controller,DreamLab\/contrail-controller,eonpatapon\/contrail-controller,codilime\/contrail-controller,vmahuli\/contrail-controller,hthompson6\/contrail-controller,rombie\/contrail-controller,eonpatapon\/contrail-controller,vmahuli\/contrail-controller,tcpcloud\/contrail-controller,cloudwatt\/contrail-controller,vpramo\/contrail-controller,hthompson6\/contrail-controller,nischalsheth\/contrail-controller,reiaaoyama\/contrail-controller,cloudwatt\/contrail-controller"} {"commit":"1f0cf96991c2601d361416ca067be796e8b54494","old_file":"blogcomment_p.h","new_file":"blogcomment_p.h","old_contents":"","new_contents":"\/*\n This file is part of the kblog library.\n\n Copyright (c) 2006-2007 Christian Weilbach \n Copyright (c) 2007 Mike Arthur \n\n This library is free software; you can redistribute it and\/or\n modify it under the terms of the GNU Library General Public\n License as published by the Free Software Foundation; either\n version 2 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Library General Public License for more details.\n\n You should have received a copy of the GNU Library General Public License\n along with this library; see the file COPYING.LIB. If not, write to\n the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,\n Boston, MA 02110-1301, USA.\n*\/\n\n#ifndef BLOGPOSTINGCOMMENT_P_H\n#define BLOGPOSTINGCOMMENT_P_H\n\n#include \"blogcomment.h\"\n\n#include \n#include \n\nnamespace KBlog{\n\nclass BlogCommentPrivate\n{\n public:\n BlogComment *q_ptr;\n QString mTitle;\n QString mContent;\n QString mEmail;\n QString mName;\n QString mCommentId;\n KUrl mUrl;\n QString mError;\n BlogComment::Status mStatus;\n KDateTime mModificationDateTime;\n KDateTime mCreationDateTime;\n};\n\n} \/\/ namespace KBlog\n#endif\n","subject":"Add file that SVN somehow missed.","message":"Add file that SVN somehow missed.\n\nsvn path=\/trunk\/KDE\/kdepimlibs\/; revision=711804\n","lang":"C","license":"lgpl-2.1","repos":"KDE\/kblog,KDE\/kblog"} {"commit":"061ced8ae25bc5dad4d1179a7f9cd258ebb05ed3","old_file":"2015-2016\/B\/10\/02\/task5.c","new_file":"2015-2016\/B\/10\/02\/task5.c","old_contents":"","new_contents":"#include \n\nvoid increase_coordinates();\n\ntypedef struct {\n\n\tint x;\n\tint y;\n\tint z;\n\n} Point;\n\nPoint pt;\n\nint main () {\n\n\tprintf(\"x = \");scanf(\"%d\",&pt.x);\n\tprintf(\"y = \");scanf(\"%d\",&pt.y);\n\tprintf(\"z = \");scanf(\"%d\",&pt.z);\n\n\tincrease_coordinates();\n\n\tprintf(\"\\nx = %d\", pt.x);\n\tprintf(\"\\ny = %d\", pt.y);\n\tprintf(\"\\nz = %d\", pt.z);\n\n\treturn 0;\n}\n\nvoid increase_coordinates () {\n\n\tpt.x = pt.x + 1;\n\tpt.y = pt.y + 1;\n\tpt.z = pt.z + 1;\n\t\n} \n","subject":"Add task with points for October","message":"Add task with points for October\n","lang":"C","license":"mit","repos":"AlexAndreev\/po-homework,VVurbanov\/po-homework,ivanmilevtues\/po-homework"} {"commit":"d3437f42ec20df8e99fdb6ff84bea6b64a3824b5","old_file":"tests\/regression\/01-cpa\/10-posneg.c","new_file":"tests\/regression\/01-cpa\/10-posneg.c","old_contents":"\/\/PARAM: --enable ana.int.wrap_on_signed_overflow\n#include\n#include\n\nint main() {\n int i,k,j;\n\n if (k == 5) {\n assert(k == 5);\n return 0;\n }\n assert(k != 5);\n\n \/\/ simple arithmetic\n i = k + 1;\n assert(i != 6);\n i = k - 1;\n assert(i != 4);\n i = k * 3; \/\/ multiplication with odd numbers is injective\n assert(i != 15);\n i = k * 2; \/\/ multiplication with even numbers is not injective\n assert(i != 10); \/\/ UNKNOWN! k could be -2147483643;\n i = k \/ 2;\n assert(i != 2); \/\/ UNKNOWN! k could be 4\n\n return 0;\n}\n","new_contents":"\/\/PARAM: --enable ana.int.wrap_on_signed_overflow\n\/\/ Enabling ana.int.wrap_on_signed_overflow here, to retain precision for cases when a signed overflow might occcur\n#include\n#include\n\nint main() {\n int i,k,j;\n\n if (k == 5) {\n assert(k == 5);\n return 0;\n }\n assert(k != 5);\n\n \/\/ Signed overflows might occur in some of the following operations (e.g. the first assignment k could be MAX_INT).\n \/\/ Signed overflows are undefined behavior, so by default we go to top when they might occur.\n \/\/ Here we activated wrap_on_signed_overflow, so we retain precision, assuming that signed overflows are defined (via the usual two's complement representation).\n\n \/\/ simple arithmetic\n i = k + 1;\n assert(i != 6);\n i = k - 1;\n assert(i != 4);\n i = k * 3; \/\/ multiplication with odd numbers is injective\n assert(i != 15);\n i = k * 2; \/\/ multiplication with even numbers is not injective\n assert(i != 10); \/\/ UNKNOWN! k could be -2147483643;\n i = k \/ 2;\n assert(i != 2); \/\/ UNKNOWN! k could be 4\n\n return 0;\n}\n","subject":"Add comment on why ana.int.wrap_on_signed_overflow needs to enabled for test case","message":"Add comment on why ana.int.wrap_on_signed_overflow needs to enabled for test case\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"f20b64d03463cbd35bcacea1d80848b19d15ea6a","old_file":"KVODelegate\/KVODelegate.h","new_file":"KVODelegate\/KVODelegate.h","old_contents":"\/\/\n\/\/ KVODelegate.h\n\/\/ KVODelegate\n\/\/\n\/\/ Created by Ian Gregory on 15-03-2017.\n\/\/ Copyright © 2017 ThatsJustCheesy. All rights reserved.\n\/\/\n\n#import \n\n#import \n#import \n","new_contents":"\/\/\n\/\/ KVODelegate.h\n\/\/ KVODelegate\n\/\/\n\/\/ Created by Ian Gregory on 15-03-2017.\n\/\/ Copyright © 2017 ThatsJustCheesy. All rights reserved.\n\/\/\n\n#import \n\n#import \"KVOObservationDelegate.h\"\n#import \"KVONotificationDelegate.h\"\n","subject":"Use quoted includes in umbrella header","message":"Use quoted includes in umbrella header\n","lang":"C","license":"mit","repos":"ThatsJustCheesy\/KVODelegate,ThatsJustCheesy\/KVODelegate"} {"commit":"9f6244e43e007f27ccf02d8e4ebcdf12d182a39b","old_file":"src\/meat\/math\/abBlood.c","new_file":"src\/meat\/math\/abBlood.c","old_contents":"#include \n#include \"abBlood.h\"\n\nvoid updateAB(simBac *sim)\n{\n sim->c_b = sim->c_b_peak * \\\n exp( -1 * sim->param.k_a * \\\n ( sim->t - sim->param.doses_t[sim->dose_num-1] ) \\\n \/ sim->param.v_w );\n \/\/ Exponential decay from last time spike\n \/\/ ( 1.0 - sim->param.t_s * sim->param.gam_ab ) * sim->c_b;\n \/\/ Exponential decay according to renal clearance rate\n \n if (sim->c_b < 0) \/\/ set 0 as min concentration\n {\n sim->c_b = 0;\n }\n \n if (sim->dose_num < sim->param.num_doses) \/\/ if under total number of doses\n {\n if (sim->t >= sim->param.doses_t[sim->dose_num]) \n \/\/ If we're at the next dosing time...\n {\n sim->c_b += sim->param.doses_c[sim->dose_num]; \n \/\/ Add concentration of next dose to blood \n ++sim->dose_num; \/\/ Advance dose counter\n sim->c_b_peak = sim->c_b; \/\/ set new peak concentration\n }\n }\n}\n","new_contents":"#include \n#include \"abBlood.h\"\n\nvoid updateAB(simBac *sim)\n{\n sim->c_b = sim->c_b_peak * \\\n exp( -1 * sim->param.k_a * \\\n ( sim->t - sim->param.doses_t[sim->dose_num-1] ) \\\n \/ sim->param.v_w );\n \/\/ Exponential decay from last time spike\n \/\/ ( 1.0 - sim->param.t_s * sim->param.gam_ab ) * sim->c_b;\n \/\/ Exponential decay according to renal clearance rate\n \n if (sim->c_b < sim->param.c_c \/ 2) \/\/ set half of c_c as min concentration\n {\n sim->c_b = sim->param.c_c \/ 2;\n }\n \n if (sim->dose_num < sim->param.num_doses) \/\/ if under total number of doses\n {\n if (sim->t >= sim->param.doses_t[sim->dose_num]) \n \/\/ If we're at the next dosing time...\n {\n sim->c_b += sim->param.doses_c[sim->dose_num]; \n \/\/ Add concentration of next dose to blood \n ++sim->dose_num; \/\/ Advance dose counter\n sim->c_b_peak = sim->c_b; \/\/ set new peak concentration\n }\n }\n}\n","subject":"Add antibiotic concentration artificial minimum floor","message":"Add antibiotic concentration artificial minimum floor\n","lang":"C","license":"mit","repos":"bacteriaboyz\/CheatingTheCheaters,bacteriaboyz\/CheatingTheCheaters,bacteriaboyz\/CheatingTheCheaters,bacteriaboyz\/CheatingTheCheaters"} {"commit":"4f5125e0b0ec6b3ddef8fa967b30ced19759fafa","old_file":"drivers\/spmi\/spmi-dbgfs.h","new_file":"drivers\/spmi\/spmi-dbgfs.h","old_contents":"\/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.\n *\n * This program is free software; you can redistribute it and\/or modify\n * it under the terms of the GNU General Public License version 2 and\n * only version 2 as published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\/\n#ifndef _SPMI_DBGFS_H\n#define _SPMI_DBGFS_H\n\n#include \n\n#ifdef CONFIG_DEBUG_FS\nint spmi_dfs_add_controller(struct spmi_controller *ctrl);\nint spmi_dfs_del_controller(struct spmi_controller *ctrl);\n#else\nstatic inline int spmi_dfs_add_controller(struct spmi_controller *ctrl)\n{\n\treturn 0;\n}\nstatic inline int spmi_dfs_del_controller(struct spmi_controller *ctrl)\n{\n\treturn 0;\n}\n#endif\n\nstruct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,\n\t\t\t\t\tconst char *name, void *data,\n\t\t\t\t\tconst struct file_operations *fops);\n\n#endif \/* _SPMI_DBGFS_H *\/\n","new_contents":"\/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.\n *\n * This program is free software; you can redistribute it and\/or modify\n * it under the terms of the GNU General Public License version 2 and\n * only version 2 as published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\/\n#ifndef _SPMI_DBGFS_H\n#define _SPMI_DBGFS_H\n\n#include \n\n#ifdef CONFIG_DEBUG_FS\nint spmi_dfs_add_controller(struct spmi_controller *ctrl);\nint spmi_dfs_del_controller(struct spmi_controller *ctrl);\nstruct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,\n\t\t\t\t\tconst char *name, void *data,\n\t\t\t\t\tconst struct file_operations *fops);\n#else\nstatic inline int spmi_dfs_add_controller(struct spmi_controller *ctrl)\n{\n\treturn 0;\n}\nstatic inline int spmi_dfs_del_controller(struct spmi_controller *ctrl)\n{\n\treturn 0;\n}\n\nstatic inline struct dentry *spmi_dfs_create_file(struct spmi_controller *ctrl,\n\t\t\t\t\tconst char *name, void *data,\n\t\t\t\t\tconst struct file_operations *fops)\n{\n\treturn 0;\n}\n#endif\n\n#endif \/* _SPMI_DBGFS_H *\/\n","subject":"Fix compilation error when debugfs is disabled","message":"spmi: Fix compilation error when debugfs is disabled\n\nCode does not compile with debugfs disabled. Fix this.\n\nChange-Id: I11fa09401f29e9f2fb65d19668cae455253f6355\nSigned-off-by: Olav Haugan \n","lang":"C","license":"apache-2.0","repos":"TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas"} {"commit":"56bddeda24adcb927dd5ceafd75f84ebc2eb4203","old_file":"test\/Sema\/static-init.c","new_file":"test\/Sema\/static-init.c","old_contents":"\/\/ RUN: %clang_cc1 -triple i386-pc-linux-gnu -fsyntax-only -verify %s\n\n#include \n\nstatic int f = 10;\nstatic int b = f; \/\/ expected-error {{initializer element is not a compile-time constant}}\n\nfloat r = (float) (intptr_t) &r; \/\/ expected-error {{initializer element is not a compile-time constant}}\nintptr_t s = (intptr_t) &s;\n_Bool t = &t;\n\n\nunion bar {\n int i;\n};\n\nstruct foo {\n unsigned ptr;\n};\n\nunion bar u[1];\nstruct foo x = {(intptr_t) u}; \/\/ no-error\nstruct foo y = {(char) u}; \/\/ expected-error {{initializer element is not a compile-time constant}}\n","new_contents":"\/\/ RUN: %clang_cc1 -fsyntax-only -verify %s\n\ntypedef __typeof((int*) 0 - (int*) 0) intptr_t;\n\nstatic int f = 10;\nstatic int b = f; \/\/ expected-error {{initializer element is not a compile-time constant}}\n\nfloat r = (float) (intptr_t) &r; \/\/ expected-error {{initializer element is not a compile-time constant}}\nintptr_t s = (intptr_t) &s;\n_Bool t = &t;\n\n\nunion bar {\n int i;\n};\n\nstruct foo {\n unsigned ptr;\n};\n\nunion bar u[1];\nstruct foo x = {(intptr_t) u}; \/\/ no-error\nstruct foo y = {(char) u}; \/\/ expected-error {{initializer element is not a compile-time constant}}\n","subject":"Fix test to not force triple, and also to not need stdint.h.","message":"Fix test to not force triple, and also to not need stdint.h.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@96499 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"b51602b1db901e46fd1fec4d76c669b31a538079","old_file":"components\/libc\/compilers\/common\/nogcc\/sys\/types.h","new_file":"components\/libc\/compilers\/common\/nogcc\/sys\/types.h","old_contents":"\/*\n * Copyright (c) 2006-2021, RT-Thread Development Team\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2020-09-05 Meco Man fix bugs\n * 2020-12-16 Meco Man add useconds_t\n *\/\n#ifndef __SYS_TYPES_H__\n#define __SYS_TYPES_H__\n\n#include \n#include \n#include \n\ntypedef int32_t clockid_t;\ntypedef int32_t key_t; \/* Used for interprocess communication. *\/\ntypedef int pid_t; \/* Used for process IDs and process group IDs. *\/\ntypedef unsigned short uid_t;\ntypedef unsigned short gid_t;\ntypedef signed long off_t;\ntypedef int mode_t;\n#ifndef ARCH_CPU_64BIT\ntypedef signed int ssize_t; \/* Used for a count of bytes or an error indication. *\/\n#else\ntypedef long signed int ssize_t; \/* Used for a count of bytes or an error indication. *\/\n#endif\ntypedef long suseconds_t; \/* microseconds. *\/\ntypedef unsigned long useconds_t; \/* microseconds (unsigned) *\/\n\ntypedef unsigned long dev_t;\n\ntypedef unsigned int u_int;\ntypedef unsigned char u_char;\ntypedef unsigned long u_long;\n\n#endif","new_contents":"\/*\n * Copyright (c) 2006-2021, RT-Thread Development Team\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Change Logs:\n * Date Author Notes\n * 2020-09-05 Meco Man fix bugs\n * 2020-12-16 Meco Man add useconds_t\n *\/\n#ifndef __SYS_TYPES_H__\n#define __SYS_TYPES_H__\n\n#include \n#include \n#include \n\ntypedef int32_t clockid_t;\ntypedef int32_t key_t; \/* Used for interprocess communication. *\/\ntypedef int pid_t; \/* Used for process IDs and process group IDs. *\/\ntypedef unsigned short uid_t;\ntypedef unsigned short gid_t;\ntypedef signed long off_t;\ntypedef int mode_t;\n#ifndef ARCH_CPU_64BIT\ntypedef signed int ssize_t; \/* Used for a count of bytes or an error indication. *\/\n#else\ntypedef long signed int ssize_t; \/* Used for a count of bytes or an error indication. *\/\n#endif\ntypedef long suseconds_t; \/* microseconds. *\/\ntypedef unsigned long useconds_t; \/* microseconds (unsigned) *\/\n\ntypedef unsigned long dev_t;\n\ntypedef unsigned int u_int;\ntypedef unsigned char u_char;\ntypedef unsigned long u_long;\n\n#endif\n","subject":"Add a blank line at the end","message":"[update] Add a blank line at the end\n","lang":"C","license":"apache-2.0","repos":"nongxiaoming\/rt-thread,RT-Thread\/rt-thread,geniusgogo\/rt-thread,RT-Thread\/rt-thread,hezlog\/rt-thread,geniusgogo\/rt-thread,nongxiaoming\/rt-thread,hezlog\/rt-thread,RT-Thread\/rt-thread,RT-Thread\/rt-thread,nongxiaoming\/rt-thread,geniusgogo\/rt-thread,nongxiaoming\/rt-thread,RT-Thread\/rt-thread,hezlog\/rt-thread,nongxiaoming\/rt-thread,geniusgogo\/rt-thread,hezlog\/rt-thread,hezlog\/rt-thread,geniusgogo\/rt-thread,geniusgogo\/rt-thread,nongxiaoming\/rt-thread,hezlog\/rt-thread,nongxiaoming\/rt-thread,RT-Thread\/rt-thread,hezlog\/rt-thread,RT-Thread\/rt-thread,geniusgogo\/rt-thread"} {"commit":"aa075fd45fabc26875fb3ac5c34cce70fe3a7030","old_file":"LargeBarrelAnalysis\/EventCategorizerTools.h","new_file":"LargeBarrelAnalysis\/EventCategorizerTools.h","old_contents":"\/**\n * @copyright Copyright 2017 The J-PET Framework Authors. All rights reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may find a copy of the License in the LICENCE file.\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @file EventCategorizerTools.h\n *\/\n\n#ifndef _EVENTCATEGORIZERTOOLS_H_\n#define _EVENTCATEGORIZERTOOLS_H_\n\n#include \n\nstruct Point3D\n{\n double x=0;\n double y=0;\n double z=0;\n};\n\n\nclass EventCategorizerTools\n{\npublic:\n static double calculateTOF(const JPetHit& firstHit, const JPetHit& latterHit);\n static Point3D calculateAnnihilationPoint(const JPetHit& firstHit, const JPetHit& latterHit);\n};\n\n#endif \/* !EVENTCATEGORIZERTOOLS_H *\/\n","new_contents":"\/**\n * @copyright Copyright 2017 The J-PET Framework Authors. All rights reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may find a copy of the License in the LICENCE file.\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @file EventCategorizerTools.h\n *\/\n\n#ifndef _EVENTCATEGORIZERTOOLS_H_\n#define _EVENTCATEGORIZERTOOLS_H_\n\n#include \n\nstruct Point3D\n{\n double x=0;\n double y=0;\n double z=0;\n};\n\n\nclass EventCategorizerTools\n{\npublic:\n static double calculateTOF(const JPetHit& firstHit, const JPetHit& latterHit);\n static Point3D calculateAnnihilationPoint(const JPetHit& firstHit, const JPetHit& latterHit);\n};\n\n#endif \/* !EVENTCATEGORIZERTOOLS_H *\/\n","subject":"Change include to proper one","message":"Change include to proper one\n","lang":"C","license":"apache-2.0","repos":"JPETTomography\/j-pet-framework-examples,JPETTomography\/j-pet-framework-examples,JPETTomography\/j-pet-framework-examples,JPETTomography\/j-pet-framework-examples"} {"commit":"b657af02c49fa95c889454f82609ed2a7672949a","old_file":"kmail\/kmversion.h","new_file":"kmail\/kmversion.h","old_contents":"\/\/ KMail Version Information\n\/\/\n#ifndef kmversion_h\n#define kmversion_h\n\n#define KMAIL_VERSION \"1.9.9\"\n\n#endif \/*kmversion_h*\/\n","new_contents":"\/\/ KMail Version Information\n\/\/\n#ifndef kmversion_h\n#define kmversion_h\n\n#define KMAIL_VERSION \"1.9.10\"\n\n#endif \/*kmversion_h*\/\n","subject":"Increase version number for KDE 3.5.10.","message":"Increase version number for KDE 3.5.10.\n\nsvn path=\/branches\/KDE\/3.5\/kdepim\/; revision=846406\n","lang":"C","license":"lgpl-2.1","repos":"lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi,lefou\/kdepim-noakonadi"} {"commit":"bbdf0450f0c99355a84db41a35d78f37a4879e16","old_file":"include\/program_options\/item.h","new_file":"include\/program_options\/item.h","old_contents":"\/*\n* parser item\n* (c) Copyright 2015 Micooz\n*\n* Released under the Apache License.\n* See the LICENSE file or\n* http:\/\/www.apache.org\/licenses\/LICENSE-2.0.txt for more information.\n*\/\n#ifndef PARSER_ITEM_H_\n#define PARSER_ITEM_H_\n\n#include \n\nnamespace program_options {\n\nclass ParseItem {\n public:\n ParseItem(const std::string& value);\n\n \/*\n * dynamic type cast, support base data types including std::string\n *\/\n template \n T as() {\n T r;\n std::stringstream buf;\n buf << value_;\n buf >> r;\n return r;\n }\n\n \/*\n * alias of as()\n *\/\n inline std::string val() const { return value_; }\n\n private:\n std::string value_;\n};\n}\n\n#endif \/\/ PARSER_ITEM_H_","new_contents":"\/*\n* parser item\n* (c) Copyright 2015 Micooz\n*\n* Released under the Apache License.\n* See the LICENSE file or\n* http:\/\/www.apache.org\/licenses\/LICENSE-2.0.txt for more information.\n*\/\n#ifndef PARSER_ITEM_H_\n#define PARSER_ITEM_H_\n\n#include \n\nnamespace program_options {\n\nclass ParseItem {\n public:\n ParseItem(const std::string& value);\n\n \/*\n * dynamic type cast, support base data types including std::string\n *\/\n template\n T as() {\n T r;\n std::stringstream buf;\n buf << value_;\n buf >> r;\n return r;\n }\n\n \/*\n * alias of as()\n *\/\n inline std::string val() const { return value_; }\n\n \/*\n * returns c-style string, will be useful if you want a const char*\n *\/\n inline const char* c_str() const { return value_.c_str(); }\n\n private:\n std::string value_;\n};\n}\n\n#endif \/\/ PARSER_ITEM_H_","subject":"Add a function of ParseItem which returns a c-style string directly.","message":"Add a function of ParseItem which returns a c-style string directly.\n","lang":"C","license":"apache-2.0","repos":"Micooz\/program_options,Micooz\/program_options,Micooz\/program_options,Micooz\/program_options"} {"commit":"49546b6634d2ab100761e27f76a824909fcf89dc","old_file":"src\/themis\/secure_record.h","new_file":"src\/themis\/secure_record.h","old_contents":"","new_contents":"\/**\n * @file\n *\n * (c) CossackLabs\n *\/\n\n#ifndef _SECURE_RECORD_H_\n#define _SECURE_RECORD_H_\n\ntypedef struct themis_secure_record_type themis_secure_record_t;\n\nthemis_secure_record_t* themis_secure_record_create(const uint8_t* master_key, const size_t master_key_length);\n\nthemis_status_t themis_secure_record_encrypt_1(themis_secure_record_t* ctx,\n\t\t\t\t\t const uint8_t* message,\n\t\t\t\t\t const size_t message_length,\n\t\t\t\t\t uint8_t* encrypted_message,\n\t\t\t\t\t size_t* encrypted_message_length);\n\nthemis_status_t themis_secure_record_decrypt_1(themis_secure_record_t* ctx,\n\t\t\t\t\t const uint8_t* encrypted_message,\n\t\t\t\t\t const size_t encrypted_message_length,\n\t\t\t\t\t uint8_t* plain_message,\n\t\t\t\t\t size_t* plain_message_length);\n\nthemis_status_t themis_secure_record_encrypt_2(themis_secure_record_t* ctx,\n\t\t\t\t\t const uint8_t* message,\n\t\t\t\t\t const size_t message_length,\n\t\t\t\t\t uint8_t* auth_tag_iv,\n\t\t\t\t\t size_t* auth_tag_iv_length,\n\t\t\t\t\t uint8_t* encrypted_message,\n\t\t\t\t\t size_t* encrypted_message_length);\n\nthemis_status_t themis_secure_record_decrypt_2(themis_secure_record_t* ctx,\n\t\t\t\t\t const uint8_t* encrypted_message,\n\t\t\t\t\t const size_t encrypted_message_length,\n\t\t\t\t\t const uint8_t* auth_tag_iv,\n\t\t\t\t\t const size_t auth_tag_iv_length,\n\t\t\t\t\t uint8_t* plain_message,\n\t\t\t\t\t size_t* plain_message_length);\n\nthemis_status_t themis_secure_record_encrypt_3(themis_secure_record_t* ctx,\n\t\t\t\t\t const uint8_t* message,\n\t\t\t\t\t const size_t message_length,\n\t\t\t\t\t const uint8_t* auth_tag_iv,\n\t\t\t\t\t const size_t auth_tag_iv_length,\n\t\t\t\t\t uint8_t* encrypted_message,\n\t\t\t\t\t size_t* encrypted_message_length);\n\nthemis_status_t themis_secure_record_decrypt_3(themis_secure_record_t* ctx,\n\t\t\t\t\t const uint8_t* encrypted_message,\n\t\t\t\t\t const size_t encrypted_message_length,\n\t\t\t\t\t const uint8_t* auth_tag_iv,\n\t\t\t\t\t const size_t auth_tag_iv_length,\n\t\t\t\t\t uint8_t* plain_message,\n\t\t\t\t\t size_t* plain_message_length);\n\nthemis_status_t themis_secure_record_destroy(themis_secure_record_t* ctx);\n\n\n#endif \/* _SECURE_RECORD_H_ *\/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","subject":"Add THEMIS Secure Record interface","message":"Add THEMIS Secure Record interface\n","lang":"C","license":"apache-2.0","repos":"cossacklabs\/themis,cossacklabs\/themis,Lagovas\/themis,storojs72\/themis,Lagovas\/themis,cossacklabs\/themis,cossacklabs\/themis,Lagovas\/themis,storojs72\/themis,cossacklabs\/themis,storojs72\/themis,cossacklabs\/themis,Lagovas\/themis,mnaza\/themis,cossacklabs\/themis,cossacklabs\/themis,mnaza\/themis,mnaza\/themis,Lagovas\/themis,storojs72\/themis,storojs72\/themis,mnaza\/themis,Lagovas\/themis,Lagovas\/themis,storojs72\/themis,storojs72\/themis,cossacklabs\/themis,mnaza\/themis,mnaza\/themis,storojs72\/themis,cossacklabs\/themis,storojs72\/themis,Lagovas\/themis,mnaza\/themis,cossacklabs\/themis,Lagovas\/themis,mnaza\/themis,storojs72\/themis,cossacklabs\/themis,cossacklabs\/themis,mnaza\/themis"} {"commit":"2a1b1a4cc8a1da74d35401adc5713f63ff93f5b6","old_file":"bindings\/ios\/Private\/MEGAHandleList+init.h","new_file":"bindings\/ios\/Private\/MEGAHandleList+init.h","old_contents":"\/**\n * @file MEGAHandleList+init\n * @brief Private functions of MEGAHandleList\n *\n * (c) 2013-2017 by Mega Limited, Auckland, New Zealand\n *\n * This file is part of the MEGA SDK - Client Access Engine.\n *\n * Applications using the MEGA API must present a valid application key\n * and comply with the the rules set forth in the Terms of Service.\n *\n * The MEGA SDK is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n *\n * @copyright Simplified (2-clause) BSD License.\n *\n * You should have received a copy of the license along with this\n * program.\n *\/\n\n#import \"MEGAHandleList.h\"\n#import \"megaapi.h\"\n\n@interface MEGAHandleList (init)\n\n- (mega::MegaHandleList *)getCPtr;\n\n@end\n","new_contents":"\/**\n * @file MEGAHandleList+init\n * @brief Private functions of MEGAHandleList\n *\n * (c) 2013-2017 by Mega Limited, Auckland, New Zealand\n *\n * This file is part of the MEGA SDK - Client Access Engine.\n *\n * Applications using the MEGA API must present a valid application key\n * and comply with the the rules set forth in the Terms of Service.\n *\n * The MEGA SDK is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n *\n * @copyright Simplified (2-clause) BSD License.\n *\n * You should have received a copy of the license along with this\n * program.\n *\/\n\n#import \"MEGAHandleList.h\"\n#import \"megaapi.h\"\n\n@interface MEGAHandleList (init)\n\n- (instancetype)initWithMegaHandleList:(mega::MegaHandleList *)megaHandleList cMemoryOwn:(BOOL)cMemoryOwn;\n- (mega::MegaHandleList *)getCPtr;\n\n@end\n","subject":"Add the ctor for MEGAHandleList (Obj-C)","message":"Add the ctor for MEGAHandleList (Obj-C)\n","lang":"C","license":"bsd-2-clause","repos":"Acidburn0zzz\/sdk,meganz\/sdk,Acidburn0zzz\/sdk,meganz\/sdk,meganz\/sdk,Acidburn0zzz\/sdk,Acidburn0zzz\/sdk,Acidburn0zzz\/sdk,Acidburn0zzz\/sdk,meganz\/sdk,Acidburn0zzz\/sdk,meganz\/sdk,meganz\/sdk,meganz\/sdk,Acidburn0zzz\/sdk"} {"commit":"74a1e19dc9d9b5f1e4275745a384f594922c4ac9","old_file":"test\/Driver\/aarch64-ssbs.c","new_file":"test\/Driver\/aarch64-ssbs.c","old_contents":"","new_contents":"\/\/ RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+ssbs %s 2>&1 | FileCheck %s\n\/\/ CHECK: \"-target-feature\" \"+ssbs\"\n\n\/\/ RUN: %clang -### -target aarch64-none-none-eabi -march=armv8a+nossbs %s 2>&1 | FileCheck %s --check-prefix=NOSSBS\n\/\/ NOSSBS: \"-target-feature\" \"-ssbs\"\n\n\/\/ RUN: %clang -### -target aarch64-none-none-eabi %s 2>&1 | FileCheck %s --check-prefix=ABSENTSSBS\n\/\/ ABSENTSSBS-NOT: \"-target-feature\" \"+ssbs\"\n\/\/ ABSENTSSBS-NOT: \"-target-feature\" \"-ssbs\"\n","subject":"Add command-line option for SSBS","message":"[AArch64] Add command-line option for SSBS\n\nSummary:\nSSBS (Speculative Store Bypass Safe) is only mandatory from 8.5\nonwards but is optional from Armv8.0-A. This patch adds testing for\nthe ssbs command line option, added to allow enabling the feature\nin previous Armv8-A architectures to 8.5.\n\nReviewers: olista01, samparker, aemerson\n\nReviewed By: samparker\n\nSubscribers: javed.absar, kristof.beyls, cfe-commits\n\nDifferential Revision: https:\/\/reviews.llvm.org\/D54961\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@348142 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"736a848b590fdebcdf1848eba11b19c0081269c3","old_file":"Capu\/include\/capu\/os\/Windows\/EnvironmentVariables.h","new_file":"Capu\/include\/capu\/os\/Windows\/EnvironmentVariables.h","old_contents":"\/*\n * Copyright (C) 2015 BMW Car IT GmbH\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n#ifndef CAPU_WINDOWS_ENVIRONMENTVARIABLES_H\n#define CAPU_WINDOWS_ENVIRONMENTVARIABLES_H\n\n#include \n\nnamespace capu\n{\n namespace os\n {\n class EnvironmentVariables: private capu::generic::EnvironmentVariables\n {\n public:\n using capu::generic::EnvironmentVariables::getAll;\n static bool get(const String& key, String& value);\n };\n\n inline\n bool EnvironmentVariables::get(const String& key, String& value)\n {\n char* envValue = 0;\n bool found = (0 == _dupenv_s(&envValue, 0, key.c_str()));\n value = envValue;\n free(envValue);\n return found;\n }\n }\n}\n\n\n#endif \/\/ CAPU_WINDOWS_ENVIRONMENTVARIABLES_H\n","new_contents":"\/*\n * Copyright (C) 2015 BMW Car IT GmbH\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n#ifndef CAPU_WINDOWS_ENVIRONMENTVARIABLES_H\n#define CAPU_WINDOWS_ENVIRONMENTVARIABLES_H\n\n#include \n\nnamespace capu\n{\n namespace os\n {\n class EnvironmentVariables: private capu::generic::EnvironmentVariables\n {\n public:\n using capu::generic::EnvironmentVariables::getAll;\n static bool get(const String& key, String& value);\n };\n\n inline\n bool EnvironmentVariables::get(const String& key, String& value)\n {\n char* envValue = 0;\n errno_t err = _dupenv_s(&envValue, 0, key.c_str());\n bool found = (err == 0 && envValue != 0);\n value = envValue;\n free(envValue);\n return found;\n }\n }\n}\n\n\n#endif \/\/ CAPU_WINDOWS_ENVIRONMENTVARIABLES_H\n","subject":"Fix enviroment variable getter on windows","message":"Fix enviroment variable getter on windows\n\nfound result was always true because condition only checked error code,\nnot if there is really a value\n\nChange-Id: Ie8b8edab0419c629dd558ce9b5466a582de359f8\n","lang":"C","license":"apache-2.0","repos":"bmwcarit\/capu,bmwcarit\/capu"} {"commit":"96e593920711c2b6cecace99061d02d1b8738f10","old_file":"LYCategory\/_Foundation\/_Fix\/NSNumber+Fix.h","new_file":"LYCategory\/_Foundation\/_Fix\/NSNumber+Fix.h","old_contents":"\/\/\n\/\/ NSNumber+Fix.h\n\/\/ LYCategory\n\/\/\n\/\/ Created by Rick Luo on 11\/25\/13.\n\/\/ Copyright (c) 2013 Luo Yu. All rights reserved.\n\/\/\n\n#import \n\n@interface NSNumber (Fix)\n\n- (id)objectAtIndex:(NSUInteger)index;\n\n- (id)objectForKey:(id)aKey;\n\n- (BOOL)isEqualToString:(NSString *)aString;\n\n- (NSUInteger)length;\n\n- (NSString *)string;\n\n@end\n","new_contents":"\/\/\n\/\/ NSNumber+Fix.h\n\/\/ LYCategory\n\/\/\n\/\/ Created by Rick Luo on 11\/25\/13.\n\/\/ Copyright (c) 2013 Luo Yu. All rights reserved.\n\/\/\n\n#import \n\n@interface NSNumber (Fix)\n\n- (id)objectAtIndex:(NSUInteger)index;\n\n- (id)objectForKey:(id)aKey;\n\n- (BOOL)isEqualToString:(NSString *)aString;\n\n- (NSUInteger)length;\n\n- (NSString *)string;\n\n- (BOOL)isReal;\n\n@end\n","subject":"Fix : is real for number object.","message":"Fix : is real for number object.\n","lang":"C","license":"mit","repos":"blodely\/LYCategory,blodely\/LYCategory,blodely\/LYCategory,blodely\/LYCategory"} {"commit":"7363dfbdfb0f51a5a52c1eecdbb847dfcd026f4a","old_file":"test\/asan\/TestCases\/printf-4.c","new_file":"test\/asan\/TestCases\/printf-4.c","old_contents":"\/\/ RUN: %clang_asan -O2 %s -o %t\n\/\/ RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s\n\/\/ RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s\n\n\/\/ FIXME: sprintf is not intercepted on Windows yet.\n\/\/ XFAIL: win32\n\n#include \nint main() {\n volatile char c = '0';\n volatile int x = 12;\n volatile float f = 1.239;\n volatile char s[] = \"34\";\n volatile char buf[2];\n puts(\"before sprintf\");\n sprintf((char *)buf, \"%c %d %.3f %s\\n\", c, x, f, s);\n puts(\"after sprintf\");\n puts((const char *)buf);\n return 0;\n \/\/ Check that size of output buffer is sanitized.\n \/\/ CHECK-ON: before sprintf\n \/\/ CHECK-ON-NOT: after sprintf\n \/\/ CHECK-ON: stack-buffer-overflow\n \/\/ CHECK-ON-NOT: 0 12 1.239 34\n}\n","new_contents":"\/\/ RUN: %clang_asan -O2 %s -o %t\n\/\/ RUN: %env_asan_opts=check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s\n\/\/ RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s\n\n\/\/ FIXME: sprintf is not intercepted on Windows yet.\n\/\/ XFAIL: win32\n\n#include \nint main() {\n volatile char c = '0';\n volatile int x = 12;\n volatile float f = 1.239;\n volatile char s[] = \"34\";\n volatile char buf[2];\n fputs(stderr, \"before sprintf\");\n sprintf((char *)buf, \"%c %d %.3f %s\\n\", c, x, f, s);\n fputs(stderr, \"after sprintf\");\n fputs(stderr, (const char *)buf);\n return 0;\n \/\/ Check that size of output buffer is sanitized.\n \/\/ CHECK-ON: before sprintf\n \/\/ CHECK-ON-NOT: after sprintf\n \/\/ CHECK-ON: stack-buffer-overflow\n \/\/ CHECK-ON-NOT: 0 12 1.239 34\n}\n","subject":"Switch to fputs stderr to try to fix output buffering issues","message":"Switch to fputs stderr to try to fix output buffering issues\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@263293 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt"} {"commit":"5ae017de6d07cd1fae4e475d5b64423551828f87","old_file":"include\/clang\/Basic\/AllDiagnostics.h","new_file":"include\/clang\/Basic\/AllDiagnostics.h","old_contents":"\/\/===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\/\n\/\/\/ \\file\n\/\/\/ \\brief Includes all the separate Diagnostic headers & some related helpers.\n\/\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H\n#define LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H\n\n#include \"clang\/AST\/ASTDiagnostic.h\"\n#include \"clang\/AST\/CommentDiagnostic.h\"\n#include \"clang\/Analysis\/AnalysisDiagnostic.h\"\n#include \"clang\/Driver\/DriverDiagnostic.h\"\n#include \"clang\/Frontend\/FrontendDiagnostic.h\"\n#include \"clang\/Lex\/LexDiagnostic.h\"\n#include \"clang\/Parse\/ParseDiagnostic.h\"\n#include \"clang\/Sema\/SemaDiagnostic.h\"\n#include \"clang\/Serialization\/SerializationDiagnostic.h\"\n\nnamespace clang {\ntemplate \nclass StringSizerHelper {\n char FIELD_TOO_SMALL[SizeOfStr <= FieldType(~0U) ? 1 : -1];\npublic:\n enum { Size = SizeOfStr };\n};\n} \/\/ end namespace clang \n\n#define STR_SIZE(str, fieldTy) clang::StringSizerHelper::Size \n\n#endif\n","new_contents":"\/\/===--- AllDiagnostics.h - Aggregate Diagnostic headers --------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\/\n\/\/\/ \\file\n\/\/\/ \\brief Includes all the separate Diagnostic headers & some related helpers.\n\/\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H\n#define LLVM_CLANG_BASIC_ALLDIAGNOSTICS_H\n\n#include \"clang\/AST\/ASTDiagnostic.h\"\n#include \"clang\/AST\/CommentDiagnostic.h\"\n#include \"clang\/Analysis\/AnalysisDiagnostic.h\"\n#include \"clang\/Driver\/DriverDiagnostic.h\"\n#include \"clang\/Frontend\/FrontendDiagnostic.h\"\n#include \"clang\/Lex\/LexDiagnostic.h\"\n#include \"clang\/Parse\/ParseDiagnostic.h\"\n#include \"clang\/Sema\/SemaDiagnostic.h\"\n#include \"clang\/Serialization\/SerializationDiagnostic.h\"\n\nnamespace clang {\ntemplate \nclass StringSizerHelper {\n static_assert(SizeOfStr <= FieldType(~0U), \"Field too small!\");\npublic:\n enum { Size = SizeOfStr };\n};\n} \/\/ end namespace clang \n\n#define STR_SIZE(str, fieldTy) clang::StringSizerHelper::Size \n\n#endif\n","subject":"Use a static_assert instead of using the old array of size -1 trick.","message":"[Basic] Use a static_assert instead of using the old array of size -1 trick.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@305439 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"d463708dd79dc9c1689a8ec5aa6ae6fc4d84d8c8","old_file":"planck-c\/timers.c","new_file":"planck-c\/timers.c","old_contents":"#include \n#include \n#include \n#include \n#include \"timers.h\"\n\nstruct timer_data_t {\n long millis;\n timer_callback_t timer_callback;\n void* data;\n};\n\nvoid *timer_thread(void *data) {\n\n struct timer_data_t *timer_data = data;\n\n struct timespec t;\n t.tv_sec = timer_data->millis \/ 1000;\n t.tv_nsec = 1000 * 1000 * (timer_data->millis % 1000);\n nanosleep(&t, NULL);\n timer_data->timer_callback(timer_data->data);\n\n free(data);\n\n return NULL;\n}\n\nvoid start_timer(long millis, timer_callback_t timer_callback, void *data) {\n\n struct timer_data_t *timer_data = malloc(sizeof(struct timer_data_t));\n timer_data->millis = millis;\n timer_data->timer_callback = timer_callback;\n timer_data->data = data;\n\n pthread_attr_t attr;\n pthread_attr_init(&attr);\n pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);\n pthread_t thread;\n pthread_create(&thread, &attr, timer_thread, timer_data);\n}\n","new_contents":"#include \n#include \n#include \n#include \n#include \"timers.h\"\n\nstruct timer_data_t {\n long millis;\n timer_callback_t timer_callback;\n void* data;\n};\n\nvoid *timer_thread(void *data) {\n\n struct timer_data_t *timer_data = data;\n\n struct timespec t;\n t.tv_sec = timer_data->millis \/ 1000;\n t.tv_nsec = 1000 * 1000 * (timer_data->millis % 1000);\n if (t.tv_sec == 0 && t.tv_nsec == 0) {\n t.tv_nsec = 1; \/* Evidently needed on Ubuntu 14.04 *\/\n }\n nanosleep(&t, NULL);\n timer_data->timer_callback(timer_data->data);\n\n free(data);\n\n return NULL;\n}\n\nvoid start_timer(long millis, timer_callback_t timer_callback, void *data) {\n\n struct timer_data_t *timer_data = malloc(sizeof(struct timer_data_t));\n timer_data->millis = millis;\n timer_data->timer_callback = timer_callback;\n timer_data->data = data;\n\n pthread_attr_t attr;\n pthread_attr_init(&attr);\n pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);\n pthread_t thread;\n pthread_create(&thread, &attr, timer_thread, timer_data);\n}\n","subject":"Fix bug if timer executed with 0 ms","message":"Fix bug if timer executed with 0 ms\n","lang":"C","license":"epl-1.0","repos":"mfikes\/planck,slipset\/planck,mfikes\/planck,mfikes\/planck,slipset\/planck,slipset\/planck,slipset\/planck,mfikes\/planck,mfikes\/planck,mfikes\/planck,slipset\/planck"} {"commit":"2cfe7b5f59bd396e82660360575b71489c6c38e7","old_file":"src\/newspaper.h","new_file":"src\/newspaper.h","old_contents":"#ifndef _NEWSPAPER_H_\n#define _NEWSPAPER_H_\n#include \n#include \"advertenum.h\"\nusing namespace std;\nclass Newspaper {\n string name;\n int textPrice, imagePrice, textImagePrice;\n public:\n Newspaper(const string& name): name(name) {}\n int getPriceFor(AdvertType type) const {\n switch(type) {\n case AdvertType::Image:\n return imagePrice;\n case AdvertType::Text:\n return textPrice;\n case AdvertType::TextImage:\n return textImagePrice;\n }\n }\n void setPriceFor(AdvertType type, int price) {\n switch(type) {\n case AdvertType::Image:\n imagePrice=price;\n case AdvertType::Text:\n textPrice=price;\n case AdvertType::TextImage:\n textImagePrice=price;\n }\n }\n const string& getName() const {\n return name;\n }\n virtual ~Newspaper() {}\n};\n#endif\n","new_contents":"#ifndef NEWSPAPER_H\n#define NEWSPAPER_H\n#include \n#include \"advertenum.h\"\nusing namespace std;\nclass Newspaper {\n string name;\n int textPrice, imagePrice, textImagePrice;\n public:\n Newspaper(): name(\"\") {}\n Newspaper(const string& name): name(name) {}\n int getPriceFor(AdvertType type) const {\n switch(type) {\n case AdvertType::Image:\n return imagePrice;\n case AdvertType::Text:\n return textPrice;\n case AdvertType::TextImage:\n return textImagePrice;\n }\n return 0;\n }\n void setPriceFor(AdvertType type, int price) {\n switch(type) {\n case AdvertType::Image:\n imagePrice=price;\n case AdvertType::Text:\n textPrice=price;\n case AdvertType::TextImage:\n textImagePrice=price;\n }\n }\n const string& getName() const {\n return name;\n }\n virtual ~Newspaper() {}\n};\n#endif\n","subject":"Fix header guard, add impossible return value, add default name","message":"Fix header guard, add impossible return value, add default name\n","lang":"C","license":"mit","repos":"nyz93\/advertapp,nyz93\/advertapp"} {"commit":"468fc8cd0f24a1bd07a586017cc55c9a014b4e04","old_file":"src\/webwidget.h","new_file":"src\/webwidget.h","old_contents":"#ifndef WEBWIDGET_H\n#define WEBWIDGET_H\n\n#include \"webpage.h\"\n\n#include \n#include \n\nclass WebWidget : public QWebView\n{\n Q_OBJECT\n public:\n WebWidget(QWidget * parent=0);\n virtual void wheelEvent(QWheelEvent *);\n\n public slots:\n void changeFor(WebPage::UserAgents agent);\n void refitPage();\n\n private slots:\n void onNetworkReply(QNetworkReply * reply);\n void refitPage(bool b);\n\n signals:\n void noHostFound(QUrl);\n void connectionRefused();\n void remotlyClosed();\n void timeOut();\n void operationCancelled();\n void pageNotFound(QUrl);\n\n private:\n WebPage * mWebPage;\n};\n\n#endif \/\/ WEBWIDGET_H\n","new_contents":"\/* Mobile On Desktop - A Smartphone emulator on desktop\n * Copyright (c) 2012 Régis FLORET\n *\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and\/or other materials provided with the distribution.\n * * Neither the name of Régis FLORET nor the names of its contributors\n * \t may be used to endorse or promote products derived from this\n * \t software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\/\n\n#ifndef WEBWIDGET_H\n#define WEBWIDGET_H\n\n#include \"webpage.h\"\n\n#include \n#include \n\nclass WebWidget : public QWebView\n{\n Q_OBJECT\n public:\n WebWidget(QWidget * parent=0);\n virtual void wheelEvent(QWheelEvent *);\n\n public slots:\n void changeFor(WebPage::UserAgents agent);\n void refitPage();\n\n private slots:\n void onNetworkReply(QNetworkReply * reply);\n void refitPage(bool b);\n\n signals:\n void noHostFound(QUrl);\n void connectionRefused();\n void remotlyClosed();\n void timeOut();\n void operationCancelled();\n void pageNotFound(QUrl);\n\n private:\n WebPage * mWebPage;\n};\n\n#endif \/\/ WEBWIDGET_H\n","subject":"Add BSD header on top of all files (forgot some files)","message":"Add BSD header on top of all files (forgot some files)","lang":"C","license":"bsd-3-clause","repos":"regisf\/mobile-on-desktop,regisf\/mobile-on-desktop"} {"commit":"2a3b7a9e9928124865cfce561f410a9018aaeb94","old_file":"GTMAppAuth\/Sources\/Public\/GTMAppAuth\/GTMAppAuth.h","new_file":"GTMAppAuth\/Sources\/Public\/GTMAppAuth\/GTMAppAuth.h","old_contents":"\/*! @file GTMAppAuth.h\n @brief GTMAppAuth SDK\n @copyright\n Copyright 2016 Google Inc.\n @copydetails\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n *\/\n\n#import \"GTMAppAuthFetcherAuthorization.h\"\n#import \"GTMAppAuthFetcherAuthorization+Keychain.h\"\n#import \"GTMKeychain.h\"\n\n#if TARGET_OS_TV\n#elif TARGET_OS_WATCH\n#elif TARGET_OS_IOS\n#import \"GTMOAuth2KeychainCompatibility.h\"\n#elif TARGET_OS_MAC\n#import \"GTMOAuth2KeychainCompatibility.h\"\n#else\n#warn \"Platform Undefined\"\n#endif\n","new_contents":"\/*! @file GTMAppAuth.h\n @brief GTMAppAuth SDK\n @copyright\n Copyright 2016 Google Inc.\n @copydetails\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n *\/\n\n#import \"GTMAppAuthFetcherAuthorization.h\"\n#import \"GTMAppAuthFetcherAuthorization+Keychain.h\"\n\n#if TARGET_OS_TV\n#elif TARGET_OS_WATCH\n#elif TARGET_OS_IOS || TARGET_OS_MAC\n#import \"GTMKeychain.h\"\n#import \"GTMOAuth2KeychainCompatibility.h\"\n#else\n#warn \"Platform Undefined\"\n#endif\n","subject":"Move to iOS and Mac targets only.","message":"Move to iOS and Mac targets only.","lang":"C","license":"apache-2.0","repos":"google\/GTMAppAuth,google\/GTMAppAuth"} {"commit":"7cc9b51d1d2e091baf4f72a02e46ac1471936e7f","old_file":"config.h","new_file":"config.h","old_contents":"\/\/ batwarn - (C) 2015-2016 Jeffrey E. Bedard\n\n#ifndef CONFIG_H\n#define\tCONFIG_H\n\n#define GAMMA_NORMAL 1.0\n#define GAMMA_WARNING 5.0\n\nenum {\n\tCRIT_PERCENT=5\n\t,LOW_PERCENT=10\n\t,FULL_PERCENT=90\n};\n\n#ifndef DEBUG\n#define WAIT 60\n#else\/\/DEBUG\n#define WAIT 1\n#endif\/\/!DEBUG\n\n#define BATSYSFILE \"\/sys\/class\/power_supply\/BAT0\/capacity\"\n#define ACSYSFILE \"\/sys\/class\/power_supply\/AC\/online\"\n\n#define SUSPEND_CMD \"systemctl suspend\"\n\n#endif\/\/CONFIG_H\n","new_contents":"\/\/ batwarn - (C) 2015-2016 Jeffrey E. Bedard\n\n#ifndef BW_CONFIG_H\n#define\tBW_CONFIG_H\n\n#define GAMMA_NORMAL 1.0\n#define GAMMA_WARNING 5.0\n\nenum PercentCat {\n\tCRIT_PERCENT=5,\n\tLOW_PERCENT=10,\n\tFULL_PERCENT=90\n};\n\n\/\/ Delay for checking system files:\n#ifndef DEBUG\nenum { WAIT = 60 };\n#else\/\/DEBUG\nenum { WAIT = 1 };\n#endif\/\/!DEBUG\n\n\/\/ System files to check:\n#define BATSYSFILE \"\/sys\/class\/power_supply\/BAT0\/capacity\"\n#define ACSYSFILE \"\/sys\/class\/power_supply\/AC\/online\"\n\n#define SUSPEND_CMD \"systemctl suspend\"\n\n#endif\/\/!BW_CONFIG_H\n","subject":"Convert defines to enums. Named percentage category enum. Documented values.","message":"Convert defines to enums. Named percentage category enum. Documented values.\n","lang":"C","license":"mit","repos":"jefbed\/batwarn,jefbed\/batwarn"} {"commit":"bccdf2ad17f4e1ee9c7900e7e1dc95f61f700ea3","old_file":"memory.c","new_file":"memory.c","old_contents":"\/* Copyright (c) 2012 Francis Russell \n *\n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated documentation\n * files (the \"Software\"), to deal in the Software without\n * restriction, including without limitation the rights to use,\n * copy, modify, merge, publish, distribute, sublicense, and\/or sell\n * copies of the Software, and to permit persons to whom the\n * Software is furnished to do so, subject to the following\n * conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n * OTHER DEALINGS IN THE SOFTWARE.\n *\/\n\n#include \n#include \n#include \"memory.h\"\n\nvoid *lmalloc(const size_t size)\n{\n void* const data = malloc(size);\n\n if (data == NULL)\n {\n fprintf(stderr, \"Failed to allocate region of %li bytes.\\n\", size);\n exit(EXIT_FAILURE);\n }\n\n return data;\n}\n\nvoid lfree(void *const data)\n{\n free(data);\n}\n","new_contents":"\/* Copyright (c) 2012 Francis Russell \n *\n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated documentation\n * files (the \"Software\"), to deal in the Software without\n * restriction, including without limitation the rights to use,\n * copy, modify, merge, publish, distribute, sublicense, and\/or sell\n * copies of the Software, and to permit persons to whom the\n * Software is furnished to do so, subject to the following\n * conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n * OTHER DEALINGS IN THE SOFTWARE.\n *\/\n\n#include \n#include \n#include \"memory.h\"\n\nvoid *lmalloc(const size_t size)\n{\n void* const data = malloc(size);\n\n if (data == NULL)\n {\n fprintf(stderr, \"Failed to allocate region of %zu bytes.\\n\", size);\n exit(EXIT_FAILURE);\n }\n\n return data;\n}\n\nvoid lfree(void *const data)\n{\n free(data);\n}\n","subject":"Fix warning on printing value of type size_t.","message":"Fix warning on printing value of type size_t.\n\nMonotone-Parent: f3b43f63ea982bf3ea58c1b0757c412b6a05a42a\nMonotone-Revision: 159ac37e2f3b80788fff369effa2496f32bc5adf\n","lang":"C","license":"mit","repos":"FrancisRussell\/lfmerge"} {"commit":"ad902e3138ff67a76e7c3d8d6bf7d7d4f76fc479","old_file":"HTMLKit\/CSSAttributeSelector.h","new_file":"HTMLKit\/CSSAttributeSelector.h","old_contents":"\/\/\n\/\/ CSSAttributeSelector.h\n\/\/ HTMLKit\n\/\/\n\/\/ Created by Iska on 14\/05\/15.\n\/\/ Copyright (c) 2015 BrainCookie. All rights reserved.\n\/\/\n\n#import \n#import \"CSSSelector.h\"\n#import \"CSSSimpleSelector.h\"\n\ntypedef NS_ENUM(NSUInteger, CSSAttributeSelectorType)\n{\n\tCSSAttributeSelectorExists,\n\tCSSAttributeSelectorExactMatch,\n\tCSSAttributeSelectorIncludes,\n\tCSSAttributeSelectorBegins,\n\tCSSAttributeSelectorEnds,\n\tCSSAttributeSelectorContains,\n\tCSSAttributeSelectorHyphen\n};\n\n@interface CSSAttributeSelector : CSSSelector \n\n@property (nonatomic, assign) CSSAttributeSelectorType type;\n@property (nonatomic, copy) NSString *name;\n@property (nonatomic, copy) NSString *value;\n\n+ (instancetype)selectorForClass:(NSString *)className;\n+ (instancetype)selectorForId:(NSString *)elementId;\n\n- (instancetype)initWithType:(CSSAttributeSelectorType)type\n\t\t\t attributeName:(NSString *)name\n\t\t\t attrbiuteValue:(NSString *)value;\n\n@end\n","new_contents":"\/\/\n\/\/ CSSAttributeSelector.h\n\/\/ HTMLKit\n\/\/\n\/\/ Created by Iska on 14\/05\/15.\n\/\/ Copyright (c) 2015 BrainCookie. All rights reserved.\n\/\/\n\n#import \n#import \"CSSSelector.h\"\n#import \"CSSSimpleSelector.h\"\n\ntypedef NS_ENUM(NSUInteger, CSSAttributeSelectorType)\n{\n\tCSSAttributeSelectorExists,\n\tCSSAttributeSelectorExactMatch,\n\tCSSAttributeSelectorIncludes,\n\tCSSAttributeSelectorBegins,\n\tCSSAttributeSelectorEnds,\n\tCSSAttributeSelectorContains,\n\tCSSAttributeSelectorHyphen,\n\tCSSAttributeSelectorNot\n};\n\n@interface CSSAttributeSelector : CSSSelector \n\n@property (nonatomic, assign) CSSAttributeSelectorType type;\n@property (nonatomic, copy) NSString * _Nonnull name;\n@property (nonatomic, copy) NSString * _Nonnull value;\n\n+ (nullable instancetype)selectorForClass:(nonnull NSString *)className;\n+ (nullable instancetype)selectorForId:(nonnull NSString *)elementId;\n\n- (nullable instancetype)initWithType:(CSSAttributeSelectorType)type\n\t\t\t\t\t\tattributeName:(nonnull NSString *)name\n\t\t\t\t\t attrbiuteValue:(nullable NSString *)value;\n\n@end\n","subject":"Add nullability specifiers to attribute selector","message":"Add nullability specifiers to attribute selector\n","lang":"C","license":"mit","repos":"iabudiab\/HTMLKit,iabudiab\/HTMLKit,iabudiab\/HTMLKit,iabudiab\/HTMLKit,iabudiab\/HTMLKit"} {"commit":"ea2b85c388cb88e2d65a632f694bd76b285cb5ab","old_file":"Modules\/Core\/SpatialObjects\/include\/itkMetaEvent.h","new_file":"Modules\/Core\/SpatialObjects\/include\/itkMetaEvent.h","old_contents":"\/*=========================================================================\n *\n * Copyright Insight Software Consortium\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0.txt\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *=========================================================================*\/\n#ifndef itkMetaEvent_h\n#define itkMetaEvent_h\n\n#include \"itkMacro.h\"\n#include \"metaEvent.h\"\n\nnamespace itk\n{\n\/** \\class MetaEvent\n * \\brief Event abstract class\n * \\ingroup ITKSpatialObjects\n *\/\nclass MetaEvent : public :: MetaEvent\n{\npublic:\n MetaEvent();\n virtual ~MetaEvent();\n};\n} \/\/ end namespace itk\n\n#endif\n","new_contents":"\/*=========================================================================\n *\n * Copyright Insight Software Consortium\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0.txt\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n *=========================================================================*\/\n#ifndef itkMetaEvent_h\n#define itkMetaEvent_h\n\n#include \"itkMacro.h\"\n#include \"metaEvent.h\"\n\nnamespace itk\n{\n\/** \\class MetaEvent\n * \\brief Event abstract class\n *\n * The itk::MetaEvent inherits from the\n * global namespace ::MetaEvent that is provided\n * by the MetaIO\/src\/metaEvent.h class.\n * \\ingroup ITKSpatialObjects\n *\/\nclass MetaEvent : public ::MetaEvent\n{\npublic:\n MetaEvent();\n virtual ~MetaEvent();\n};\n} \/\/ end namespace itk\n\n#endif\n","subject":"Clarify strange syntax for itk::MetaEvent","message":"DOC: Clarify strange syntax for itk::MetaEvent\n\nThe itk::MetaEvent inherits from the\nglobal namespace ::MetaEvent that is provided\nby the MetaIO\/src\/metaEvent.h class.\n\nChange-Id: I43aaeeee22298b69cfe4f1acb06186f9599586ac\n","lang":"C","license":"apache-2.0","repos":"ajjl\/ITK,biotrump\/ITK,jmerkow\/ITK,zachary-williamson\/ITK,fbudin69500\/ITK,msmolens\/ITK,Kitware\/ITK,Kitware\/ITK,malaterre\/ITK,richardbeare\/ITK,spinicist\/ITK,malaterre\/ITK,hjmjohnson\/ITK,msmolens\/ITK,InsightSoftwareConsortium\/ITK,LucasGandel\/ITK,jcfr\/ITK,fedral\/ITK,spinicist\/ITK,ajjl\/ITK,InsightSoftwareConsortium\/ITK,thewtex\/ITK,jmerkow\/ITK,LucasGandel\/ITK,fedral\/ITK,fbudin69500\/ITK,stnava\/ITK,stnava\/ITK,hjmjohnson\/ITK,blowekamp\/ITK,InsightSoftwareConsortium\/ITK,LucasGandel\/ITK,jmerkow\/ITK,thewtex\/ITK,vfonov\/ITK,thewtex\/ITK,BRAINSia\/ITK,Kitware\/ITK,PlutoniumHeart\/ITK,msmolens\/ITK,jcfr\/ITK,vfonov\/ITK,BRAINSia\/ITK,stnava\/ITK,blowekamp\/ITK,msmolens\/ITK,LucHermitte\/ITK,Kitware\/ITK,LucasGandel\/ITK,zachary-williamson\/ITK,blowekamp\/ITK,jcfr\/ITK,thewtex\/ITK,malaterre\/ITK,stnava\/ITK,LucasGandel\/ITK,blowekamp\/ITK,richardbeare\/ITK,zachary-williamson\/ITK,thewtex\/ITK,msmolens\/ITK,BRAINSia\/ITK,jmerkow\/ITK,blowekamp\/ITK,zachary-williamson\/ITK,zachary-williamson\/ITK,stnava\/ITK,jcfr\/ITK,fedral\/ITK,fbudin69500\/ITK,spinicist\/ITK,BlueBrain\/ITK,BlueBrain\/ITK,biotrump\/ITK,BRAINSia\/ITK,vfonov\/ITK,BlueBrain\/ITK,spinicist\/ITK,fedral\/ITK,zachary-williamson\/ITK,stnava\/ITK,PlutoniumHeart\/ITK,malaterre\/ITK,ajjl\/ITK,LucHermitte\/ITK,InsightSoftwareConsortium\/ITK,Kitware\/ITK,richardbeare\/ITK,spinicist\/ITK,fedral\/ITK,jcfr\/ITK,biotrump\/ITK,vfonov\/ITK,fedral\/ITK,zachary-williamson\/ITK,biotrump\/ITK,jcfr\/ITK,InsightSoftwareConsortium\/ITK,biotrump\/ITK,biotrump\/ITK,jcfr\/ITK,PlutoniumHeart\/ITK,ajjl\/ITK,BRAINSia\/ITK,fedral\/ITK,zachary-williamson\/ITK,fbudin69500\/ITK,jmerkow\/ITK,malaterre\/ITK,richardbeare\/ITK,blowekamp\/ITK,malaterre\/ITK,fbudin69500\/ITK,Kitware\/ITK,Kitware\/ITK,richardbeare\/ITK,malaterre\/ITK,richardbeare\/ITK,spinicist\/ITK,LucHermitte\/ITK,spinicist\/ITK,msmolens\/ITK,stnava\/ITK,jmerkow\/ITK,vfonov\/ITK,stnava\/ITK,BRAINSia\/ITK,msmolens\/ITK,LucHermitte\/ITK,biotrump\/ITK,ajjl\/ITK,hjmjohnson\/ITK,BRAINSia\/ITK,richardbeare\/ITK,blowekamp\/ITK,BlueBrain\/ITK,LucHermitte\/ITK,InsightSoftwareConsortium\/ITK,LucasGandel\/ITK,LucasGandel\/ITK,jcfr\/ITK,malaterre\/ITK,hjmjohnson\/ITK,biotrump\/ITK,hjmjohnson\/ITK,PlutoniumHeart\/ITK,blowekamp\/ITK,malaterre\/ITK,fbudin69500\/ITK,ajjl\/ITK,LucasGandel\/ITK,LucHermitte\/ITK,stnava\/ITK,hjmjohnson\/ITK,hjmjohnson\/ITK,PlutoniumHeart\/ITK,msmolens\/ITK,fedral\/ITK,fbudin69500\/ITK,vfonov\/ITK,BlueBrain\/ITK,PlutoniumHeart\/ITK,PlutoniumHeart\/ITK,thewtex\/ITK,BlueBrain\/ITK,ajjl\/ITK,ajjl\/ITK,LucHermitte\/ITK,thewtex\/ITK,fbudin69500\/ITK,spinicist\/ITK,BlueBrain\/ITK,InsightSoftwareConsortium\/ITK,LucHermitte\/ITK,PlutoniumHeart\/ITK,spinicist\/ITK,vfonov\/ITK,vfonov\/ITK,vfonov\/ITK,zachary-williamson\/ITK,jmerkow\/ITK,jmerkow\/ITK,BlueBrain\/ITK"} {"commit":"a4d274a780125cab0aa21ffd2a4060a66e2512d4","old_file":"wms\/WMSQueryDataLayer.h","new_file":"wms\/WMSQueryDataLayer.h","old_contents":"\/\/ ======================================================================\n\/*!\n * \\brief A Meb Maps Service Layer data structure for query data layer\n *\n * Characteristics:\n *\n * -\n * -\n *\/\n\/\/ ======================================================================\n\n#pragma once\n\n#include \"WMSConfig.h\"\n\nnamespace SmartMet\n{\nnamespace Plugin\n{\nnamespace WMS\n{\nclass WMSQueryDataLayer : public WMSLayer\n{\n private:\n const Engine::Querydata::Engine* itsQEngine;\n const std::string itsProducer;\n boost::posix_time::ptime itsModificationTime = boost::posix_time::from_time_t(0);\n\n protected:\n virtual void updateLayerMetaData();\n\n public:\n WMSQueryDataLayer(const WMSConfig& config, const std::string& producer)\n : WMSLayer(config), itsQEngine(config.qEngine()), itsProducer(producer)\n {\n }\n\n const boost::posix_time::ptime& modificationTime() const override;\n};\n\n} \/\/ namespace WMS\n} \/\/ namespace Plugin\n} \/\/ namespace SmartMet\n","new_contents":"\/\/ ======================================================================\n\/*!\n * \\brief A Meb Maps Service Layer data structure for query data layer\n *\n * Characteristics:\n *\n * -\n * -\n *\/\n\/\/ ======================================================================\n\n#pragma once\n\n#include \"WMSConfig.h\"\n\nnamespace SmartMet\n{\nnamespace Plugin\n{\nnamespace WMS\n{\nclass WMSQueryDataLayer : public WMSLayer\n{\n private:\n const Engine::Querydata::Engine* itsQEngine;\n const std::string itsProducer;\n boost::posix_time::ptime itsModificationTime = boost::posix_time::from_time_t(0);\n\n protected:\n void updateLayerMetaData() override;\n\n public:\n WMSQueryDataLayer(const WMSConfig& config, const std::string& producer)\n : WMSLayer(config), itsQEngine(config.qEngine()), itsProducer(producer)\n {\n }\n\n const boost::posix_time::ptime& modificationTime() const override;\n};\n\n} \/\/ namespace WMS\n} \/\/ namespace Plugin\n} \/\/ namespace SmartMet\n","subject":"Use override (pacify clang++ warning)","message":"Use override (pacify clang++ warning)\n","lang":"C","license":"mit","repos":"fmidev\/smartmet-plugin-wms,fmidev\/smartmet-plugin-wms,fmidev\/smartmet-plugin-wms,fmidev\/smartmet-plugin-wms"} {"commit":"93fefee3d2cd7f0bf773595d8e41f80fd9909897","old_file":"Settings\/Controls\/Spinner.h","new_file":"Settings\/Controls\/Spinner.h","old_contents":"#pragma once\n\n#include \"Control.h\"\n\n#include \n\nclass Spinner : public Control {\npublic:\n Spinner() {\n\n }\n\n Spinner(int id, HWND parent) :\n Control(id, parent) {\n\n }\n\n virtual void Enable();\n virtual void Disable();\n\n void Buddy(int buddyId);\n\n \/\/\/ Sets the range (min, max) for the spin control.<\/summary>\n \/\/\/ Lower bound for the spinner.<\/param>\n \/\/\/ Upper bound for the spinner.<\/param>\n void Range(int lo, int hi);\n\n std::wstring Text();\n int TextAsInt();\n bool Text(std::wstring text);\n bool Text(int value);\n\n virtual DLGPROC Notification(NMHDR *nHdr);\n\npublic:\n \/* Event Handlers *\/\n std::function OnSpin;\n\nprivate:\n int _buddyId;\n HWND _buddyWnd;\n\n};\n","new_contents":"#pragma once\n\n#include \"Control.h\"\n\n#include \n\n\/\/\/ \n\/\/\/ Manages a 'spin control': a numeric edit box with a up\/down 'buddy' to\n\/\/\/ increment or decrement the current value of the box.\n\/\/\/ <\/summary>\nclass Spinner : public Control {\npublic:\n Spinner() {\n\n }\n\n Spinner(int id, HWND parent) :\n Control(id, parent) {\n\n }\n\n virtual void Enable();\n virtual void Disable();\n\n void Buddy(int buddyId);\n\n \/\/\/ Sets the range (min, max) for the spin control.<\/summary>\n \/\/\/ Lower bound for the spinner.<\/param>\n \/\/\/ Upper bound for the spinner.<\/param>\n void Range(int lo, int hi);\n\n std::wstring Text();\n int TextAsInt();\n bool Text(std::wstring text);\n bool Text(int value);\n\n virtual DLGPROC Notification(NMHDR *nHdr);\n\npublic:\n \/* Event Handlers *\/\n std::function OnSpin;\n\nprivate:\n int _buddyId;\n HWND _buddyWnd;\n\n};\n","subject":"Add summary for spin control class","message":"Add summary for spin control class\n","lang":"C","license":"bsd-2-clause","repos":"malensek\/3RVX,Soulflare3\/3RVX,Soulflare3\/3RVX,malensek\/3RVX,Soulflare3\/3RVX,malensek\/3RVX"} {"commit":"9e1ca6b5bc40d15f5c45189f6ca0220912dcfed5","old_file":"src\/qt\/clientmodel.h","new_file":"src\/qt\/clientmodel.h","old_contents":"#ifndef CLIENTMODEL_H\n#define CLIENTMODEL_H\n\n#include \n\nclass OptionsModel;\nclass AddressTableModel;\nclass TransactionTableModel;\nclass CWallet;\n\nQT_BEGIN_NAMESPACE\nclass QDateTime;\nQT_END_NAMESPACE\n\n\/\/ Interface to Bitcoin network client\nclass ClientModel : public QObject\n{\n Q_OBJECT\npublic:\n \/\/ The only reason that this constructor takes a wallet is because\n \/\/ the global client settings are stored in the main wallet.\n explicit ClientModel(OptionsModel *optionsModel, QObject *parent = 0);\n\n OptionsModel *getOptionsModel();\n\n int getNumConnections() const;\n int getNumBlocks() const;\n\n QDateTime getLastBlockDate() const;\n\n \/\/ Return true if client connected to testnet\n bool isTestNet() const;\n \/\/ Return true if core is doing initial block download\n bool inInitialBlockDownload() const;\n \/\/ Return conservative estimate of total number of blocks, or 0 if unknown\n int getTotalBlocksEstimate() const;\n\n QString formatFullVersion() const;\n\nprivate:\n OptionsModel *optionsModel;\n\n int cachedNumConnections;\n int cachedNumBlocks;\n\nsignals:\n void numConnectionsChanged(int count);\n void numBlocksChanged(int count);\n\n \/\/ Asynchronous error notification\n void error(const QString &title, const QString &message);\n\npublic slots:\n\nprivate slots:\n void update();\n};\n\n#endif \/\/ CLIENTMODEL_H\n","new_contents":"#ifndef CLIENTMODEL_H\n#define CLIENTMODEL_H\n\n#include \n\nclass OptionsModel;\nclass AddressTableModel;\nclass TransactionTableModel;\nclass CWallet;\n\nQT_BEGIN_NAMESPACE\nclass QDateTime;\nQT_END_NAMESPACE\n\n\/\/ Interface to Bitcoin network client\nclass ClientModel : public QObject\n{\n Q_OBJECT\npublic:\n explicit ClientModel(OptionsModel *optionsModel, QObject *parent = 0);\n\n OptionsModel *getOptionsModel();\n\n int getNumConnections() const;\n int getNumBlocks() const;\n\n QDateTime getLastBlockDate() const;\n\n \/\/ Return true if client connected to testnet\n bool isTestNet() const;\n \/\/ Return true if core is doing initial block download\n bool inInitialBlockDownload() const;\n \/\/ Return conservative estimate of total number of blocks, or 0 if unknown\n int getTotalBlocksEstimate() const;\n\n QString formatFullVersion() const;\n\nprivate:\n OptionsModel *optionsModel;\n\n int cachedNumConnections;\n int cachedNumBlocks;\n\nsignals:\n void numConnectionsChanged(int count);\n void numBlocksChanged(int count);\n\n \/\/ Asynchronous error notification\n void error(const QString &title, const QString &message);\n\npublic slots:\n\nprivate slots:\n void update();\n};\n\n#endif \/\/ CLIENTMODEL_H\n","subject":"Remove no longer valid comment","message":"Remove no longer valid comment\n","lang":"C","license":"mit","repos":"reddink\/reddcoin,Cannacoin-Project\/Cannacoin,ahmedbodi\/poscoin,reddcoin-project\/reddcoin,joroob\/reddcoin,coinkeeper\/2015-06-22_19-10_cannacoin,ahmedbodi\/poscoin,joroob\/reddcoin,coinkeeper\/2015-06-22_19-10_cannacoin,bmp02050\/ReddcoinUpdates,reddcoin-project\/reddcoin,Cannacoin-Project\/Cannacoin,bmp02050\/ReddcoinUpdates,reddcoin-project\/reddcoin,joroob\/reddcoin,bmp02050\/ReddcoinUpdates,reddcoin-project\/reddcoin,ahmedbodi\/poscoin,coinkeeper\/2015-06-22_19-10_cannacoin,coinkeeper\/2015-06-22_18-46_reddcoin,Cannacoin-Project\/Cannacoin,bmp02050\/ReddcoinUpdates,joroob\/reddcoin,Cannacoin-Project\/Cannacoin,bmp02050\/ReddcoinUpdates,reddink\/reddcoin,Cannacoin-Project\/Cannacoin,coinkeeper\/2015-06-22_18-46_reddcoin,ahmedbodi\/poscoin,reddcoin-project\/reddcoin,reddink\/reddcoin,coinkeeper\/2015-06-22_19-10_cannacoin,coinkeeper\/2015-06-22_18-46_reddcoin,joroob\/reddcoin,coinkeeper\/2015-06-22_19-10_cannacoin,ahmedbodi\/poscoin,reddink\/reddcoin,reddcoin-project\/reddcoin,reddink\/reddcoin,coinkeeper\/2015-06-22_18-46_reddcoin,coinkeeper\/2015-06-22_18-46_reddcoin"} {"commit":"b07d89ca854f79eca700a95f5e1d23d5b5f6f1ba","old_file":"SFBluetoothLowEnergyDevice\/Classes\/SFBLELogging.h","new_file":"SFBluetoothLowEnergyDevice\/Classes\/SFBLELogging.h","old_contents":"\/\/\n\/\/ SFBLELogging.h\n\/\/ SFBluetoothLowEnergyDevice\n\/\/\n\/\/ Created by Thomas Billicsich on 2014-04-04.\n\/\/ Copyright (c) 2014 Thomas Billicsich. All rights reserved.\n\n#import \n\n\n\/\/ To define a different local (per file) log level\n\/\/ put the following line _before_ the import of SFBLELogging.h\n\/\/ #define LOCAL_LOG_LEVEL LOG_LEVEL_DEBUG\n#define GLOBAL_LOG_LEVEL DDLogLevelVerbose\n#ifndef LOCAL_LOG_LEVEL\n #define LOCAL_LOG_LEVEL GLOBAL_LOG_LEVEL\n#endif\n\nstatic int ddLogLevel = LOCAL_LOG_LEVEL;\n","new_contents":"\/\/\n\/\/ SFBLELogging.h\n\/\/ SFBluetoothLowEnergyDevice\n\/\/\n\/\/ Created by Thomas Billicsich on 2014-04-04.\n\/\/ Copyright (c) 2014 Thomas Billicsich. All rights reserved.\n\n#import \n\n\n\/\/ To define a different local (per file) log level\n\/\/ put the following line _before_ the import of SFBLELogging.h\n\/\/ #define LOCAL_LOG_LEVEL LOG_LEVEL_DEBUG\n#define GLOBAL_LOG_LEVEL DDLogLevelInfo\n#ifndef LOCAL_LOG_LEVEL\n #define LOCAL_LOG_LEVEL GLOBAL_LOG_LEVEL\n#endif\n\nstatic int ddLogLevel = LOCAL_LOG_LEVEL;\n","subject":"Set default log level to info","message":"Set default log level to info\n\n[Delivers #87082830]\n","lang":"C","license":"mit","repos":"martinjacala\/SFBluetoothLowEnergyDevice,simpliflow\/SFBluetoothLowEnergyDevice"} {"commit":"6bfc82aaf18e42fcc7328b81ffb3ec3cf360d732","old_file":"webrtc\/common_audio\/signal_processing\/cross_correlation.c","new_file":"webrtc\/common_audio\/signal_processing\/cross_correlation.c","old_contents":"\/*\n * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n *\/\n\n#include \"webrtc\/common_audio\/signal_processing\/include\/signal_processing_library.h\"\n\n\/* C version of WebRtcSpl_CrossCorrelation() for generic platforms. *\/\nvoid WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation,\n const int16_t* seq1,\n const int16_t* seq2,\n int16_t dim_seq,\n int16_t dim_cross_correlation,\n int right_shifts,\n int step_seq2) {\n int i = 0, j = 0;\n\n for (i = 0; i < dim_cross_correlation; i++) {\n int32_t corr = 0;\n \/* Unrolling doesn't seem to improve performance. *\/\n for (j = 0; j < dim_seq; j++) {\n \/\/ It's not clear why casting |right_shifts| here helps performance.\n corr += (seq1[j] * seq2[j]) >> (int16_t)right_shifts;\n }\n seq2 += step_seq2;\n *cross_correlation++ = corr;\n }\n}\n","new_contents":"\/*\n * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n *\/\n\n#include \"webrtc\/common_audio\/signal_processing\/include\/signal_processing_library.h\"\n\n\/* C version of WebRtcSpl_CrossCorrelation() for generic platforms. *\/\nvoid WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation,\n const int16_t* seq1,\n const int16_t* seq2,\n int16_t dim_seq,\n int16_t dim_cross_correlation,\n int right_shifts,\n int step_seq2) {\n int i = 0, j = 0;\n\n for (i = 0; i < dim_cross_correlation; i++) {\n int32_t corr = 0;\n \/* Unrolling doesn't seem to improve performance. *\/\n for (j = 0; j < dim_seq; j++)\n corr += (seq1[j] * seq2[j]) >> right_shifts;\n seq2 += step_seq2;\n *cross_correlation++ = corr;\n }\n}\n","subject":"Test whether removing a cast still hurts performance.","message":"Test whether removing a cast still hurts performance.\n\nBUG=499241\nTEST=none\nTBR=andrew\n\nReview URL: https:\/\/codereview.webrtc.org\/1206653002\n\nCr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9491}\n","lang":"C","license":"bsd-3-clause","repos":"ShiftMediaProject\/libilbc,TimothyGu\/libilbc,TimothyGu\/libilbc,TimothyGu\/libilbc,ShiftMediaProject\/libilbc,TimothyGu\/libilbc,TimothyGu\/libilbc,ShiftMediaProject\/libilbc,ShiftMediaProject\/libilbc,ShiftMediaProject\/libilbc"} {"commit":"70a3bea036ff5c4ddfc3d80b955535a646d334ae","old_file":"src\/lib\/hex-dec.c","new_file":"src\/lib\/hex-dec.c","old_contents":"\/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file *\/\n\n#include \"lib.h\"\n#include \"hex-dec.h\"\n\nvoid dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size)\n{\n\tunsigned int i;\n\n\tfor (i = 0; i < hexstr_size; i++) {\n\t\tunsigned int value = dec & 0x0f;\n\t\tif (value < 10)\n\t\t\thexstr[hexstr_size-i-1] = value + '0';\n\t\telse\n\t\t\thexstr[hexstr_size-i-1] = value - 10 + 'A';\n\t\tdec >>= 4;\n\t}\n}\n\nuintmax_t hex2dec(const unsigned char *data, unsigned int len)\n{\n\tunsigned int i;\n\tuintmax_t value = 0;\n\n\tfor (i = 0; i < len; i++) {\n\t\tvalue = value*0x10;\n\t\tif (data[i] >= '0' && data[i] <= '9')\n\t\t\tvalue += data[i]-'0';\n\t\telse if (data[i] >= 'A' && data[i] <= 'F')\n\t\t\tvalue += data[i]-'A' + 10;\n\t\telse\n\t\t\treturn 0;\n\t}\n\treturn value;\n}\n\n","new_contents":"\/* Copyright (c) 2005-2011 Dovecot authors, see the included COPYING file *\/\n\n#include \"lib.h\"\n#include \"hex-dec.h\"\n\nvoid dec2hex(unsigned char *hexstr, uintmax_t dec, unsigned int hexstr_size)\n{\n\tunsigned int i;\n\n\tfor (i = 0; i < hexstr_size; i++) {\n\t\tunsigned int value = dec & 0x0f;\n\t\tif (value < 10)\n\t\t\thexstr[hexstr_size-i-1] = value + '0';\n\t\telse\n\t\t\thexstr[hexstr_size-i-1] = value - 10 + 'A';\n\t\tdec >>= 4;\n\t}\n}\n\nuintmax_t hex2dec(const unsigned char *data, unsigned int len)\n{\n\tunsigned int i;\n\tuintmax_t value = 0;\n\n\tfor (i = 0; i < len; i++) {\n\t\tvalue = value*0x10;\n\t\tif (data[i] >= '0' && data[i] <= '9')\n\t\t\tvalue += data[i]-'0';\n\t\telse if (data[i] >= 'A' && data[i] <= 'F')\n\t\t\tvalue += data[i]-'A' + 10;\n\t\telse if (data[i] >= 'a' && data[i] <= 'f')\n\t\t\tvalue += data[i]-'a' + 10;\n\t\telse\n\t\t\treturn 0;\n\t}\n\treturn value;\n}\n\n","subject":"Allow data to contain also lowercase hex characters.","message":"hex2dec(): Allow data to contain also lowercase hex characters.\n","lang":"C","license":"mit","repos":"damoxc\/dovecot,damoxc\/dovecot,damoxc\/dovecot,damoxc\/dovecot,damoxc\/dovecot"} {"commit":"adcb44aa1001abff7727db60cfda9c805b446582","old_file":"tests\/regression\/00-sanity\/22-cfg-connect.c","new_file":"tests\/regression\/00-sanity\/22-cfg-connect.c","old_contents":"","new_contents":"int main()\n{\n \/\/ non-deterministically make all variants live\n int r;\n switch (r)\n {\n case 0:\n single();\n break;\n case 1:\n sequential_last();\n break;\n case 2:\n sequential_both();\n break;\n case 3:\n branch_one();\n break;\n case 4:\n branch_both();\n break;\n case 5:\n nested_outer();\n break;\n case 6:\n nested_inner();\n break;\n case 7:\n nested_both();\n break;\n }\n\n return 0;\n}\n\nvoid single()\n{\n while (1)\n assert(1);\n}\n\nvoid sequential_last()\n{\n int i = 0;\n while (i < 0)\n i++;\n\n while (1)\n assert(1);\n}\n\nvoid sequential_both()\n{\n \/\/ TODO: fix crash\n \/\/ while (1)\n \/\/ assert(1);\n\n \/\/ while (1)\n \/\/ assert(1);\n}\n\nvoid branch_one()\n{\n int r;\n if (r)\n {\n int i = 0;\n while (i < 0)\n i++;\n }\n else\n {\n while (1)\n assert(1);\n }\n}\n\nvoid branch_both()\n{\n int r;\n if (r)\n {\n while (1)\n assert(1);\n }\n else\n {\n while (1)\n assert(1);\n }\n}\n\nvoid nested_outer()\n{\n while (1)\n {\n int i = 0;\n while (i < 0)\n i++;\n }\n}\n\nvoid nested_inner()\n{\n int i = 0;\n while (i < 0)\n {\n while (1)\n assert(1);\n i++;\n }\n}\n\nvoid nested_both()\n{\n \/\/ TODO: fix crash\n \/\/ while (1)\n \/\/ {\n \/\/ while (1)\n \/\/ assert(1);\n \/\/ }\n}\n","subject":"Add regression test for infinite loop combinations CFG connectedness","message":"Add regression test for infinite loop combinations CFG connectedness\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"2c058b10c0dc3b2df2fb6d0a203c2abca300c794","old_file":"tests\/regression\/34-localwn_restart\/04-hh.c","new_file":"tests\/regression\/34-localwn_restart\/04-hh.c","old_contents":"\/\/ SKIP PARAM: --enable ana.int.interval --set solver td3 --enable ana.base.partition-arrays.enabled --set ana.activated \"['base','threadid','threadflag','expRelation','mallocWrapper','apron']\" --set ana.base.privatization none --set ana.apron.privatization dummy --set sem.int.signed_overflow assume_none\n\/\/ This is part of 34-localization, but also symlinked to 36-apron.\n\n\/\/ ALSO: --enable ana.int.interval --set solver slr3 --enable ana.base.partition-arrays.enabled --set ana.activated \"['base','threadid','threadflag','expRelation','mallocWrapper','apron']\" --set ana.base.privatization none --set ana.apron.privatization dummy --set sem.int.signed_overflow assume_none\n\/\/ Example from Halbwachs-Henry, SAS 2012\n\/\/ Localized widening or restart policy should be able to prove that i <= j+3\n\/\/ if the abstract domain is powerful enough.\n\nvoid main()\n{\n int i = 0;\n while (i<4) {\n int j=0;\n while (j<4) {\n i=i+1;\n j=j+1;\n }\n i = i-j+1;\n assert(i <= j+3);\n }\n return ;\n}\n","new_contents":"\/\/ SKIP PARAM: --enable ana.int.interval --set solver td3 --set ana.base.arrays.domain partitioned --set ana.activated \"['base','threadid','threadflag','expRelation','mallocWrapper','apron']\" --set ana.base.privatization none --set ana.apron.privatization dummy --set sem.int.signed_overflow assume_none\n\/\/ This is part of 34-localization, but also symlinked to 36-apron.\n\n\/\/ ALSO: --enable ana.int.interval --set solver slr3 --set ana.base.arrays.domain partitioned --set ana.activated \"['base','threadid','threadflag','expRelation','mallocWrapper','apron']\" --set ana.base.privatization none --set ana.apron.privatization dummy --set sem.int.signed_overflow assume_none\n\/\/ Example from Halbwachs-Henry, SAS 2012\n\/\/ Localized widening or restart policy should be able to prove that i <= j+3\n\/\/ if the abstract domain is powerful enough.\n\nvoid main()\n{\n int i = 0;\n while (i<4) {\n int j=0;\n while (j<4) {\n i=i+1;\n j=j+1;\n }\n i = i-j+1;\n assert(i <= j+3);\n }\n return ;\n}\n","subject":"Fix partitioned array option in additional test","message":"Fix partitioned array option in additional test\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"8b47bd6c54891baebf6a1083c7b1f6fa0402b8e4","old_file":"cc1\/tests\/test029.c","new_file":"cc1\/tests\/test029.c","old_contents":"","new_contents":"\n\/*\nname: TEST029\ndescription: Test of nested expansion and refusing macro without arguments\ncomments: f(2) will expand to 2*g, which will expand to 2*f, and in this\n moment f will not be expanded because the macro definition is\n a function alike macro, and in this case there is no arguments.\noutput:\ntest029.c:34: error: redefinition of 'f1'\nF2\nG3\tF2\tf1\n{\n\\\nA4\tI\tf\n\tA4\t#I2\t*I\n}\ntest029.c:35: error: 'f' undeclared\n*\/\n\n\n#define f(a) a*g\n#define g f\n\nint\nf1(void)\n{\n\tint f;\n\n\tf(2);\n}\n\nint\nf1(void)\n{\n\tf(2);\n}\n","subject":"Add test for nested macro expansion","message":"Add test for nested macro expansion\n\nThis test also check what happens when a macro with arguments is\nfound without them.\n","lang":"C","license":"isc","repos":"k0gaMSX\/scc,8l\/scc,k0gaMSX\/scc,k0gaMSX\/scc,k0gaMSX\/kcc,k0gaMSX\/kcc,8l\/scc,8l\/scc"} {"commit":"8b491b720bf845b0e5fa567609576e73fef1b7f6","old_file":"tests\/regression\/46-apron2\/07-escaping-recursion.c","new_file":"tests\/regression\/46-apron2\/07-escaping-recursion.c","old_contents":"","new_contents":"\/\/ SKIP PARAM: --set solver td3 --set ana.activated \"['base','threadid','threadflag','mallocWrapper','apron','escape']\" --set ana.base.privatization none --set ana.apron.privatization dummy\nint rec(int i,int* ptr) {\n int top;\n int x = 17;\n\n if(i == 0) {\n rec(5,&x);\n \/\/ Recursive call may have modified x\n assert(x == 17); \/\/UNKNOWN!\n\n \/\/ If we analyse this with int contexts, there is no other x that is reachable, so this\n \/\/ update is strong\n x = 17;\n assert(x == 17);\n } else {\n x = 31;\n\n \/\/ ptr points to the outer x, it is unaffected by this assignment\n \/\/ and should be 17\n assert(*ptr == 31); \/\/UNKNOWN!\n\n if(top) {\n ptr = &x;\n }\n\n \/\/ ptr may now point to both the inner and the outer x\n *ptr = 12;\n assert(*ptr == 12); \/\/UNKNOWN!\n assert(x == 12); \/\/UNKNOWN!\n\n if(*ptr == 12) {\n assert(x == 12); \/\/UNKNOWN!\n }\n\n \/\/ ptr may still point to the outer instance\n assert(ptr == &x); \/\/UNKNOWN!\n\n \/\/ Another copy of x is reachable, so we are conservative and do a weak update\n x = 31;\n assert(x == 31); \/\/ UNKNOWN\n }\n return 0;\n}\n\n\nint main() {\n int t;\n rec(0,&t);\n return 0;\n}\n","subject":"Add \"escaping\" via recursion example","message":"Add \"escaping\" via recursion example\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"c5948e847f1da44bb6d076253ac1e73df0cd162c","old_file":"tests\/regression\/01-cpa\/55-dead-branch-multiple.c","new_file":"tests\/regression\/01-cpa\/55-dead-branch-multiple.c","old_contents":"","new_contents":"#include \n\nint main() {\n int a = 1;\n int b = 0;\n\n if (a && b) { \/\/ TODO WARN\n assert(0); \/\/ NOWARN (unreachable)\n }\n\n return 0;\n}\n","subject":"Add regression test for multiple dead branches","message":"Add regression test for multiple dead branches\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"951f746d0de74c85f26fbdc0e32f8f92699d76b5","old_file":"src\/simple_data_types_and_compounds\/c\/arrays\/sample_array.c","new_file":"src\/simple_data_types_and_compounds\/c\/arrays\/sample_array.c","old_contents":"","new_contents":"\/*\n * Author: Jhonatan Casale (jhc)\n *\n * Contact : jhonatan@jhonatancasale.com\n * : casale.jhon@gmail.com\n * : https:\/\/github.com\/jhonatancasale\n * : https:\/\/twitter.com\/jhonatancasale\n * : http:\/\/jhonatancasale.github.io\/\n *\n * Create date Sat 10 Dec 16:28:22 BRST 2016\n *\n *\/\n\n#include \n#include \n\nint main (int argc, char **argv)\n{\n int i;\n int array[ 100 ];\n int sum = 0;\n\n for ( i = 0; i < 100; i++ )\n array[ i ] = i + 1;\n\n for ( i = 0; i < 100; i++ )\n sum += array[ i ];\n\n printf (\"Sum from 0 to 100: %d\\n\", sum);\n\n return (EXIT_SUCCESS);\n}\n","subject":"Add arrays example in C","message":"Add arrays example in C\n","lang":"C","license":"mit","repos":"jhonatancasale\/c-python-r-diffs,jhonatancasale\/c-python-r-diffs,jhonatancasale\/c-python-r-diffs"} {"commit":"fd7f66f8c2d75858a2fd7ede056418d7be109792","old_file":"common\/stats\/ExportedTimeseries.h","new_file":"common\/stats\/ExportedTimeseries.h","old_contents":"\/*\n * Copyright (c) 2004-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n *\/\n#pragma once\n\n#include \n#include \n\nnamespace facebook {\n\nclass SpinLock {\n};\n\nclass SpinLockHolder {\npublic:\n explicit SpinLockHolder(SpinLock*) {}\n};\n\nnamespace stats {\n\nenum ExportType {\n SUM,\n COUNT,\n AVG,\n RATE,\n PERCENT,\n NUM_TYPES,\n};\n\nstruct ExportedStat {\n void addValue(std::chrono::seconds, int64_t) {}\n};\n\nclass ExportedStatMap {\npublic:\n class LockAndStatItem {\n public:\n std::shared_ptr first;\n std::shared_ptr second;\n };\n LockAndStatItem getLockAndStatItem(folly::StringPiece,\n const ExportType* = nullptr) {\n static LockAndStatItem it = {\n std::make_shared(), std::make_shared()\n };\n return it;\n }\n};\n\n}}\n","new_contents":"\/*\n * Copyright (c) 2004-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n *\/\n#pragma once\n\n#include \n#include \n\nnamespace facebook {\n\nclass SpinLock {\n};\n\nclass SpinLockHolder {\npublic:\n explicit SpinLockHolder(SpinLock*) {}\n};\n\nnamespace stats {\n\nenum ExportType {\n SUM,\n COUNT,\n AVG,\n RATE,\n PERCENT,\n NUM_TYPES,\n};\n\nstruct ExportedStat {\n void addValue(std::chrono::seconds, int64_t) {}\n};\n\nclass ExportedStatMap {\npublic:\n class LockAndStatItem {\n public:\n std::shared_ptr first;\n std::shared_ptr second;\n };\n LockAndStatItem getLockAndStatItem(folly::StringPiece,\n const ExportType* = nullptr) {\n static LockAndStatItem it = {\n std::make_shared(), std::make_shared()\n };\n return it;\n }\n\n std::shared_ptr getStatPtr(folly::StringPiece name) {\n return std::make_shared();\n }\n};\n\n}}\n","subject":"Fix some build issues in the open source code.","message":"Fix some build issues in the open source code.\n\nSummary:\nOur code grew some implicit transitive dependencies on\nthe headers that internal headers included, but our stubs\ndid not. This fixes that, and updates our stubs to match\nwhat our code expects.\n\nTest Plan: Apply to open source repository and test.\n\nReviewed By: yfeldblum@fb.com\n\nSubscribers: fbcode-common-diffs@, net-systems@, yfeldblum\n\nFB internal diff: D1982664\n\nSignature: t1:1982664:1428695964:3fd76243d013ca4969c0dcd91f97e3292cf13c1f\n\nSigned-off-by: Ori Bernstein \n","lang":"C","license":"bsd-3-clause","repos":"sonoble\/fboss,sonoble\/fboss,neuhausler\/fboss,raphaelamorim\/fboss,peterlei\/fboss,raphaelamorim\/fboss,neuhausler\/fboss,neuhausler\/fboss,peterlei\/fboss,peterlei\/fboss,biddyweb\/fboss,raphaelamorim\/fboss,biddyweb\/fboss,biddyweb\/fboss,neuhausler\/fboss,sonoble\/fboss,peterlei\/fboss"} {"commit":"7be293bd7fbf85b88387835c99891e2ac3e2e4ff","old_file":"dev\/Source\/dev\/Public\/Tank.h","new_file":"dev\/Source\/dev\/Public\/Tank.h","old_contents":"\/\/ Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n\n#include \"GameFramework\/Pawn.h\"\n#include \"Tank.generated.h\" \/\/ Put new includes above\n\nclass UTankBarrel; \/\/ Do a class forward declaration\nclass UTurret;\nclass UTankAimingComponent;\nclass AProjectile;\n\nUCLASS()\nclass DEV_API ATank : public APawn\n{\n\tGENERATED_BODY()\n\npublic:\n void AimAt(FVector hitLocation);\n\n \/\/ Make the following method be callable from blueprint\n UFUNCTION(BlueprintCallable, Category = Setup)\n void SetBarrelReference(UTankBarrel* barrelToSet);\n\n UFUNCTION(BlueprintCallable, Category = Setup)\n void SetTurretReference(UTurret* turretToSet);\n\n UFUNCTION(BlueprintCallable, Category = Setup)\n void FireCannon();\n\nprotected:\n UTankAimingComponent* tankAimingComponent = nullptr;\n\nprivate:\n UPROPERTY(EditAnywhere, Category = Firing)\n float launchSpeed = 4000.0f; \/\/ 1000 metres per second. TODO: find a sensible default\n\n\t\/\/ Sets default values for this pawn's properties\n\tATank();\n\n\t\/\/ Called when the game starts or when spawned\n\tvirtual void BeginPlay() override;\n\n UPROPERTY(EditAnywhere, Category = \"Setup\")\n TSubclassOf projectileBlueprint;\n\n UTankBarrel* barrel = nullptr;\n float reloadTimeInSeconds = 3.0f; \/\/ sensible default\n double lastFireTime = 0;\n};\n","new_contents":"\/\/ Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n\n#include \"GameFramework\/Pawn.h\"\n#include \"Tank.generated.h\" \/\/ Put new includes above\n\nclass UTankBarrel; \/\/ Do a class forward declaration\nclass UTurret;\nclass UTankAimingComponent;\nclass AProjectile;\n\nUCLASS()\nclass DEV_API ATank : public APawn\n{\n\tGENERATED_BODY()\n\npublic:\n void AimAt(FVector hitLocation);\n\n \/\/ Make the following method be callable from blueprint\n UFUNCTION(BlueprintCallable, Category = \"Setup\")\n void SetBarrelReference(UTankBarrel* barrelToSet);\n\n UFUNCTION(BlueprintCallable, Category = \"Setup\")\n void SetTurretReference(UTurret* turretToSet);\n\n UFUNCTION(BlueprintCallable, Category = \"Setup\")\n void FireCannon();\n\nprotected:\n UTankAimingComponent* tankAimingComponent = nullptr;\n\nprivate:\n UPROPERTY(EditAnywhere, Category = Firing)\n float launchSpeed = 4000.0f; \/\/ 1000 metres per second. TODO: find a sensible default\n\n\t\/\/ Sets default values for this pawn's properties\n\tATank();\n\n\t\/\/ Called when the game starts or when spawned\n\tvirtual void BeginPlay() override;\n\n UPROPERTY(EditDefaultsOnly, Category = \"Setup\")\n TSubclassOf projectileBlueprint;\n\n UTankBarrel* barrel = nullptr;\n \n UPROPERTY(EditDefaultsOnly, Category = \"Firing\")\n float reloadTimeInSeconds = 3.0f; \/\/ sensible default\n double lastFireTime = 0;\n};\n","subject":"Use EditDefaultsOnly insted of EditAnywhere","message":"Use EditDefaultsOnly insted of EditAnywhere\n","lang":"C","license":"mit","repos":"tanerius\/crazy_tanks,tanerius\/crazy_tanks,tanerius\/crazy_tanks"} {"commit":"9789bc50472b6efdd56545e16e756175a052fba1","old_file":"src\/qnd.c","new_file":"src\/qnd.c","old_contents":"#include \"qnd.h\"\n\n\/* Global context for server *\/\nqnd_context ctx;\n\nint main(int argc, char **argv)\n{\n struct ev_signal signal_watcher;\n struct ev_io w_accept;\n struct ev_loop *loop = ev_default_loop(0);\n\n qnd_context_init(&ctx);\n if (qnd_context_listen(&ctx, DEFAULT_PORT) == -1)\n exit(1);\n\n ev_signal_init(&signal_watcher, sigint_cb, SIGINT);\n ev_signal_start(loop, &signal_watcher);\n\n ev_io_init(&w_accept, accept_cb, ctx.sd, EV_READ);\n ev_io_start(loop, &w_accept);\n\n ev_loop(loop, 0);\n\n qnd_context_cleanup(&ctx);\n\n return 0;\n}\n","new_contents":"#include \"qnd.h\"\n\n\/* Global context for server *\/\nqnd_context ctx;\n\nint main(int argc, char **argv)\n{\n struct ev_signal signal_watcher;\n struct ev_io w_accept;\n struct ev_loop *loop = ev_default_loop(0);\n\n qnd_context_init(&ctx);\n if (qnd_context_listen(&ctx, DEFAULT_PORT) == -1)\n exit(1);\n\n ev_signal_init(&signal_watcher, sigint_cb, SIGINT);\n ev_signal_start(loop, &signal_watcher);\n\n ev_io_init(&w_accept, accept_cb, ctx.sd, EV_READ);\n ev_io_start(loop, &w_accept);\n\n ev_loop(loop, 0);\n\n ev_signal_stop(loop, &signal_watcher);\n ev_io_stop(loop, &w_accept);\n qnd_context_cleanup(&ctx);\n\n return 0;\n}\n","subject":"Stop pending watchers during shutdown.","message":"Stop pending watchers during shutdown.\n","lang":"C","license":"mit","repos":"jbcrail\/quidnuncd,jbcrail\/quidnuncd"} {"commit":"c8330a62fe3fba72c5a5094304f80808ee2de5a5","old_file":"os\/native_cursor.h","new_file":"os\/native_cursor.h","old_contents":"\/\/ LAF OS Library\n\/\/ Copyright (C) 2021 Igara Studio S.A.\n\/\/ Copyright (C) 2012-2014 David Capello\n\/\/\n\/\/ This file is released under the terms of the MIT license.\n\/\/ Read LICENSE.txt for more information.\n\n#ifndef OS_NATIVE_CURSOR_H_INCLUDED\n#define OS_NATIVE_CURSOR_H_INCLUDED\n#pragma once\n\n#include \"gfx\/fwd.h\"\n\nnamespace os {\n\n enum class NativeCursor {\n Hidden,\n Arrow,\n Crosshair,\n IBeam,\n Wait,\n Link,\n Help,\n Forbidden,\n Move,\n SizeNS,\n SizeWE,\n SizeN,\n SizeNE,\n SizeE,\n SizeSE,\n SizeS,\n SizeSW,\n SizeW,\n SizeNW,\n\n Cursors\n };\n\n} \/\/ namespace os\n\n#endif\n","new_contents":"\/\/ LAF OS Library\n\/\/ Copyright (C) 2021-2022 Igara Studio S.A.\n\/\/ Copyright (C) 2012-2014 David Capello\n\/\/\n\/\/ This file is released under the terms of the MIT license.\n\/\/ Read LICENSE.txt for more information.\n\n#ifndef OS_NATIVE_CURSOR_H_INCLUDED\n#define OS_NATIVE_CURSOR_H_INCLUDED\n#pragma once\n\n#include \"gfx\/fwd.h\"\n\nnamespace os {\n\n enum class NativeCursor {\n Hidden,\n Arrow,\n Crosshair,\n IBeam,\n Wait,\n Link,\n Help,\n Forbidden,\n Move,\n SizeNS,\n SizeWE,\n SizeN,\n SizeNE,\n SizeE,\n SizeSE,\n SizeS,\n SizeSW,\n SizeW,\n SizeNW,\n\n Cursors [[maybe_unused]]\n };\n\n} \/\/ namespace os\n\n#endif\n","subject":"Mark NativeCursor::Cursors as not needed in switch\/cases","message":"Mark NativeCursor::Cursors as not needed in switch\/cases\n","lang":"C","license":"mit","repos":"aseprite\/laf,aseprite\/laf"} {"commit":"2c6ba8a8c0167ff2317dcd266e89881b670989df","old_file":"src\/untrusted\/irt\/irt_private_pthread.c","new_file":"src\/untrusted\/irt\/irt_private_pthread.c","old_contents":"\/*\n * Copyright (c) 2012 The Native Client Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n\n#include \n#include \n#include \n\n#include \"native_client\/src\/untrusted\/nacl\/tls.h\"\n\n\/*\n * libstdc++ makes minimal use of pthread_key_t stuff.\n *\/\n\n#undef PTHREAD_KEYS_MAX\n#define PTHREAD_KEYS_MAX 2\n\n#define NC_TSD_NO_MORE_KEYS irt_tsd_no_more_keys()\nstatic void irt_tsd_no_more_keys(void) {\n static const char msg[] = \"IRT: too many pthread keys\\n\";\n write(2, msg, sizeof msg - 1);\n}\n\n#define NACL_IN_IRT\n\n#include \"native_client\/src\/untrusted\/pthread\/nc_init_private.c\"\n#include \"native_client\/src\/untrusted\/pthread\/nc_thread.c\"\n","new_contents":"\/*\n * Copyright (c) 2012 The Native Client Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n\n#include \n#include \n#include \n\n#include \"native_client\/src\/untrusted\/nacl\/tls.h\"\n\n\/*\n * libstdc++ makes minimal use of pthread_key_t stuff.\n *\/\n\n#undef PTHREAD_KEYS_MAX\n#define PTHREAD_KEYS_MAX 16\n\n#define NC_TSD_NO_MORE_KEYS irt_tsd_no_more_keys()\nstatic void irt_tsd_no_more_keys(void) {\n static const char msg[] = \"IRT: too many pthread keys\\n\";\n write(2, msg, sizeof msg - 1);\n}\n\n#define NACL_IN_IRT\n\n#include \"native_client\/src\/untrusted\/pthread\/nc_init_private.c\"\n#include \"native_client\/src\/untrusted\/pthread\/nc_thread.c\"\n","subject":"Increase the number of pthread keys available for the IRT. The actual number of keys needed to run the IPC-based PPAPI proxy is 10, but set it to 16 to leave room in case more are needed later. BUG=116317 TEST=none Review URL: https:\/\/chromiumcodereview.appspot.com\/10911251","message":"Increase the number of pthread keys available for the IRT.\nThe actual number of keys needed to run the IPC-based PPAPI\nproxy is 10, but set it to 16 to leave room in case more are\nneeded later.\nBUG=116317\nTEST=none\nReview URL: https:\/\/chromiumcodereview.appspot.com\/10911251\n\ngit-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@9719 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2\n","lang":"C","license":"bsd-3-clause","repos":"nacl-webkit\/native_client,nacl-webkit\/native_client,sbc100\/native_client,sbc100\/native_client,sbc100\/native_client,nacl-webkit\/native_client,nacl-webkit\/native_client,sbc100\/native_client,sbc100\/native_client,sbc100\/native_client,nacl-webkit\/native_client"} {"commit":"619362fe501e25d81812dd1564972d8f3851e821","old_file":"content\/browser\/renderer_host\/quota_dispatcher_host.h","new_file":"content\/browser\/renderer_host\/quota_dispatcher_host.h","old_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n#define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n\n#include \"base\/basictypes.h\"\n#include \"content\/browser\/browser_message_filter.h\"\n#include \"third_party\/WebKit\/Source\/WebKit\/chromium\/public\/WebStorageQuotaType.h\"\n\nclass GURL;\n\nclass QuotaDispatcherHost : public BrowserMessageFilter {\n public:\n ~QuotaDispatcherHost();\n bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok);\n\n private:\n void OnQueryStorageUsageAndQuota(\n int request_id,\n const GURL& origin_url,\n WebKit::WebStorageQuotaType type);\n void OnRequestStorageQuota(\n int request_id,\n const GURL& origin_url,\n WebKit::WebStorageQuotaType type,\n int64 requested_size);\n};\n\n#endif \/\/ CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n","new_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n#define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n\n#include \"base\/basictypes.h\"\n#include \"content\/browser\/browser_message_filter.h\"\n#include \"third_party\/WebKit\/Source\/WebKit\/chromium\/public\/WebStorageQuotaType.h\"\n\nclass GURL;\n\nclass QuotaDispatcherHost : public BrowserMessageFilter {\n public:\n ~QuotaDispatcherHost();\n virtual bool OnMessageReceived(const IPC::Message& message,\n bool* message_was_ok);\n\n private:\n void OnQueryStorageUsageAndQuota(\n int request_id,\n const GURL& origin_url,\n WebKit::WebStorageQuotaType type);\n void OnRequestStorageQuota(\n int request_id,\n const GURL& origin_url,\n WebKit::WebStorageQuotaType type,\n int64 requested_size);\n};\n\n#endif \/\/ CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n","subject":"Fix clang build that have been broken by 81364.","message":"Fix clang build that have been broken by 81364.\n\nBUG=none\nTEST=green tree\nTBR=jam\n\nReview URL: http:\/\/codereview.chromium.org\/6838008\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@81368 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"mohamed--abdel-maksoud\/chromium.src,Pluto-tv\/chromium-crosswalk,keishi\/chromium,Fireblend\/chromium-crosswalk,dushu1203\/chromium.src,ChromiumWebApps\/chromium,zcbenz\/cefode-chromium,ondra-novak\/chromium.src,keishi\/chromium,Just-D\/chromium-1,ChromiumWebApps\/chromium,jaruba\/chromium.src,bright-sparks\/chromium-spacewalk,junmin-zhu\/chromium-rivertrail,junmin-zhu\/chromium-rivertrail,markYoungH\/chromium.src,timopulkkinen\/BubbleFish,Fireblend\/chromium-crosswalk,markYoungH\/chromium.src,hujiajie\/pa-chromium,crosswalk-project\/chromium-crosswalk-efl,robclark\/chromium,Fireblend\/chromium-crosswalk,mogoweb\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,axinging\/chromium-crosswalk,M4sse\/chromium.src,littlstar\/chromium.src,hujiajie\/pa-chromium,littlstar\/chromium.src,robclark\/chromium,markYoungH\/chromium.src,patrickm\/chromium.src,pozdnyakov\/chromium-crosswalk,dushu1203\/chromium.src,M4sse\/chromium.src,Pluto-tv\/chromium-crosswalk,timopulkkinen\/BubbleFish,dushu1203\/chromium.src,axinging\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,anirudhSK\/chromium,fujunwei\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,ondra-novak\/chromium.src,patrickm\/chromium.src,krieger-od\/nwjs_chromium.src,pozdnyakov\/chromium-crosswalk,hgl888\/chromium-crosswalk,Just-D\/chromium-1,robclark\/chromium,junmin-zhu\/chromium-rivertrail,ChromiumWebApps\/chromium,mohamed--abdel-maksoud\/chromium.src,markYoungH\/chromium.src,PeterWangIntel\/chromium-crosswalk,Jonekee\/chromium.src,robclark\/chromium,pozdnyakov\/chromium-crosswalk,Fireblend\/chromium-crosswalk,timopulkkinen\/BubbleFish,hgl888\/chromium-crosswalk-efl,Chilledheart\/chromium,anirudhSK\/chromium,fujunwei\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,rogerwang\/chromium,bright-sparks\/chromium-spacewalk,Pluto-tv\/chromium-crosswalk,robclark\/chromium,jaruba\/chromium.src,chuan9\/chromium-crosswalk,dushu1203\/chromium.src,PeterWangIntel\/chromium-crosswalk,fujunwei\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,jaruba\/chromium.src,krieger-od\/nwjs_chromium.src,patrickm\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,Jonekee\/chromium.src,jaruba\/chromium.src,rogerwang\/chromium,TheTypoMaster\/chromium-crosswalk,dushu1203\/chromium.src,chuan9\/chromium-crosswalk,anirudhSK\/chromium,ondra-novak\/chromium.src,mohamed--abdel-maksoud\/chromium.src,littlstar\/chromium.src,bright-sparks\/chromium-spacewalk,bright-sparks\/chromium-spacewalk,nacl-webkit\/chrome_deps,TheTypoMaster\/chromium-crosswalk,zcbenz\/cefode-chromium,M4sse\/chromium.src,jaruba\/chromium.src,mohamed--abdel-maksoud\/chromium.src,hujiajie\/pa-chromium,anirudhSK\/chromium,ltilve\/chromium,dednal\/chromium.src,Chilledheart\/chromium,ondra-novak\/chromium.src,hgl888\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,dednal\/chromium.src,hgl888\/chromium-crosswalk-efl,fujunwei\/chromium-crosswalk,Just-D\/chromium-1,mogoweb\/chromium-crosswalk,timopulkkinen\/BubbleFish,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk-efl,Jonekee\/chromium.src,zcbenz\/cefode-chromium,rogerwang\/chromium,krieger-od\/nwjs_chromium.src,hujiajie\/pa-chromium,Fireblend\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,littlstar\/chromium.src,dednal\/chromium.src,anirudhSK\/chromium,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk-efl,Jonekee\/chromium.src,axinging\/chromium-crosswalk,rogerwang\/chromium,Pluto-tv\/chromium-crosswalk,M4sse\/chromium.src,patrickm\/chromium.src,mohamed--abdel-maksoud\/chromium.src,zcbenz\/cefode-chromium,crosswalk-project\/chromium-crosswalk-efl,axinging\/chromium-crosswalk,ondra-novak\/chromium.src,dushu1203\/chromium.src,Chilledheart\/chromium,crosswalk-project\/chromium-crosswalk-efl,dushu1203\/chromium.src,anirudhSK\/chromium,mohamed--abdel-maksoud\/chromium.src,Jonekee\/chromium.src,hujiajie\/pa-chromium,Fireblend\/chromium-crosswalk,nacl-webkit\/chrome_deps,ltilve\/chromium,timopulkkinen\/BubbleFish,Jonekee\/chromium.src,junmin-zhu\/chromium-rivertrail,mohamed--abdel-maksoud\/chromium.src,Fireblend\/chromium-crosswalk,dednal\/chromium.src,Just-D\/chromium-1,M4sse\/chromium.src,krieger-od\/nwjs_chromium.src,markYoungH\/chromium.src,krieger-od\/nwjs_chromium.src,axinging\/chromium-crosswalk,dednal\/chromium.src,junmin-zhu\/chromium-rivertrail,markYoungH\/chromium.src,pozdnyakov\/chromium-crosswalk,ltilve\/chromium,keishi\/chromium,M4sse\/chromium.src,zcbenz\/cefode-chromium,mogoweb\/chromium-crosswalk,jaruba\/chromium.src,ChromiumWebApps\/chromium,mogoweb\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,nacl-webkit\/chrome_deps,Just-D\/chromium-1,TheTypoMaster\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,bright-sparks\/chromium-spacewalk,Chilledheart\/chromium,hujiajie\/pa-chromium,TheTypoMaster\/chromium-crosswalk,hujiajie\/pa-chromium,ChromiumWebApps\/chromium,Chilledheart\/chromium,rogerwang\/chromium,dednal\/chromium.src,zcbenz\/cefode-chromium,Pluto-tv\/chromium-crosswalk,Jonekee\/chromium.src,mogoweb\/chromium-crosswalk,Fireblend\/chromium-crosswalk,robclark\/chromium,nacl-webkit\/chrome_deps,M4sse\/chromium.src,jaruba\/chromium.src,ltilve\/chromium,jaruba\/chromium.src,patrickm\/chromium.src,mogoweb\/chromium-crosswalk,ondra-novak\/chromium.src,dednal\/chromium.src,hgl888\/chromium-crosswalk-efl,junmin-zhu\/chromium-rivertrail,zcbenz\/cefode-chromium,PeterWangIntel\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,Chilledheart\/chromium,keishi\/chromium,rogerwang\/chromium,pozdnyakov\/chromium-crosswalk,littlstar\/chromium.src,patrickm\/chromium.src,M4sse\/chromium.src,anirudhSK\/chromium,robclark\/chromium,chuan9\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,pozdnyakov\/chromium-crosswalk,hgl888\/chromium-crosswalk,ChromiumWebApps\/chromium,hgl888\/chromium-crosswalk-efl,robclark\/chromium,fujunwei\/chromium-crosswalk,axinging\/chromium-crosswalk,robclark\/chromium,markYoungH\/chromium.src,bright-sparks\/chromium-spacewalk,crosswalk-project\/chromium-crosswalk-efl,chuan9\/chromium-crosswalk,timopulkkinen\/BubbleFish,junmin-zhu\/chromium-rivertrail,ChromiumWebApps\/chromium,anirudhSK\/chromium,jaruba\/chromium.src,TheTypoMaster\/chromium-crosswalk,nacl-webkit\/chrome_deps,pozdnyakov\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,anirudhSK\/chromium,axinging\/chromium-crosswalk,chuan9\/chromium-crosswalk,timopulkkinen\/BubbleFish,fujunwei\/chromium-crosswalk,littlstar\/chromium.src,patrickm\/chromium.src,ondra-novak\/chromium.src,axinging\/chromium-crosswalk,patrickm\/chromium.src,PeterWangIntel\/chromium-crosswalk,hujiajie\/pa-chromium,Chilledheart\/chromium,rogerwang\/chromium,Just-D\/chromium-1,axinging\/chromium-crosswalk,keishi\/chromium,Just-D\/chromium-1,dednal\/chromium.src,dushu1203\/chromium.src,Pluto-tv\/chromium-crosswalk,mogoweb\/chromium-crosswalk,dushu1203\/chromium.src,zcbenz\/cefode-chromium,markYoungH\/chromium.src,dushu1203\/chromium.src,Jonekee\/chromium.src,ondra-novak\/chromium.src,anirudhSK\/chromium,Jonekee\/chromium.src,ChromiumWebApps\/chromium,nacl-webkit\/chrome_deps,nacl-webkit\/chrome_deps,zcbenz\/cefode-chromium,M4sse\/chromium.src,mogoweb\/chromium-crosswalk,Jonekee\/chromium.src,Fireblend\/chromium-crosswalk,rogerwang\/chromium,markYoungH\/chromium.src,keishi\/chromium,zcbenz\/cefode-chromium,anirudhSK\/chromium,ltilve\/chromium,pozdnyakov\/chromium-crosswalk,fujunwei\/chromium-crosswalk,nacl-webkit\/chrome_deps,dednal\/chromium.src,axinging\/chromium-crosswalk,nacl-webkit\/chrome_deps,markYoungH\/chromium.src,littlstar\/chromium.src,Chilledheart\/chromium,hgl888\/chromium-crosswalk,keishi\/chromium,chuan9\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,ChromiumWebApps\/chromium,ChromiumWebApps\/chromium,TheTypoMaster\/chromium-crosswalk,keishi\/chromium,hujiajie\/pa-chromium,jaruba\/chromium.src,markYoungH\/chromium.src,zcbenz\/cefode-chromium,hgl888\/chromium-crosswalk,timopulkkinen\/BubbleFish,hujiajie\/pa-chromium,Jonekee\/chromium.src,Pluto-tv\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,Just-D\/chromium-1,timopulkkinen\/BubbleFish,chuan9\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,anirudhSK\/chromium,PeterWangIntel\/chromium-crosswalk,M4sse\/chromium.src,bright-sparks\/chromium-spacewalk,M4sse\/chromium.src,axinging\/chromium-crosswalk,jaruba\/chromium.src,hgl888\/chromium-crosswalk-efl,littlstar\/chromium.src,Just-D\/chromium-1,ltilve\/chromium,ltilve\/chromium,hgl888\/chromium-crosswalk,chuan9\/chromium-crosswalk,dednal\/chromium.src,rogerwang\/chromium,TheTypoMaster\/chromium-crosswalk,timopulkkinen\/BubbleFish,keishi\/chromium,crosswalk-project\/chromium-crosswalk-efl,dushu1203\/chromium.src,hgl888\/chromium-crosswalk-efl,ltilve\/chromium,rogerwang\/chromium,ChromiumWebApps\/chromium,junmin-zhu\/chromium-rivertrail,robclark\/chromium,crosswalk-project\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,fujunwei\/chromium-crosswalk,ondra-novak\/chromium.src,timopulkkinen\/BubbleFish,junmin-zhu\/chromium-rivertrail,Chilledheart\/chromium,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,PeterWangIntel\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,ltilve\/chromium,ChromiumWebApps\/chromium,junmin-zhu\/chromium-rivertrail,patrickm\/chromium.src,chuan9\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,keishi\/chromium,crosswalk-project\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,nacl-webkit\/chrome_deps,keishi\/chromium,fujunwei\/chromium-crosswalk,nacl-webkit\/chrome_deps,hujiajie\/pa-chromium,dednal\/chromium.src,mogoweb\/chromium-crosswalk,mogoweb\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk"} {"commit":"ff7a33c4f1e341dbdd4775307e3f52c004c21444","old_file":"src\/imap\/cmd-close.c","new_file":"src\/imap\/cmd-close.c","old_contents":"\/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file *\/\n\n#include \"common.h\"\n#include \"commands.h\"\n#include \"imap-expunge.h\"\n\nbool cmd_close(struct client_command_context *cmd)\n{\n\tstruct client *client = cmd->client;\n\tstruct mailbox *mailbox = client->mailbox;\n\tstruct mail_storage *storage;\n\n\tif (!client_verify_open_mailbox(cmd))\n\t\treturn TRUE;\n\n\tstorage = mailbox_get_storage(mailbox);\n\tclient->mailbox = NULL;\n\n\tif (!imap_expunge(mailbox, NULL))\n\t\tclient_send_untagged_storage_error(client, storage);\n\n\tif (mailbox_close(&mailbox) < 0)\n client_send_untagged_storage_error(client, storage);\n\tclient_update_mailbox_flags(client, NULL);\n\n\tclient_send_tagline(cmd, \"OK Close completed.\");\n\treturn TRUE;\n}\n","new_contents":"\/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file *\/\n\n#include \"common.h\"\n#include \"commands.h\"\n#include \"imap-expunge.h\"\n\nbool cmd_close(struct client_command_context *cmd)\n{\n\tstruct client *client = cmd->client;\n\tstruct mailbox *mailbox = client->mailbox;\n\tstruct mail_storage *storage;\n\n\tif (!client_verify_open_mailbox(cmd))\n\t\treturn TRUE;\n\n\tstorage = mailbox_get_storage(mailbox);\n\tclient->mailbox = NULL;\n\n\tif (!imap_expunge(mailbox, NULL))\n\t\tclient_send_untagged_storage_error(client, storage);\n\telse if (mailbox_sync(mailbox, 0, 0, NULL) < 0)\n\t\tclient_send_untagged_storage_error(client, storage);\n\n\tif (mailbox_close(&mailbox) < 0)\n client_send_untagged_storage_error(client, storage);\n\tclient_update_mailbox_flags(client, NULL);\n\n\tclient_send_tagline(cmd, \"OK Close completed.\");\n\treturn TRUE;\n}\n","subject":"Synchronize the mailbox after expunging messages to actually get them expunged.","message":"CLOSE: Synchronize the mailbox after expunging messages to actually get them\nexpunged.\n","lang":"C","license":"mit","repos":"damoxc\/dovecot,damoxc\/dovecot,damoxc\/dovecot,damoxc\/dovecot,damoxc\/dovecot"} {"commit":"66ddcb4a5c9aec761a50975b773a6d6c907c71bd","old_file":"src\/include\/optimizer\/stats\/hll.h","new_file":"src\/include\/optimizer\/stats\/hll.h","old_contents":"#pragma once\n\n#include \n#include \n\n#include \n#include \n\n#include \"type\/value.h\"\n#include \"common\/macros.h\"\n#include \"common\/logger.h\"\n\nnamespace peloton {\nnamespace optimizer {\n\n\/*\n * A wrapper for libcount::HLL with murmurhash3\n *\/\nclass HLL {\n public:\n\n HLL(const int kPrecision = 8) {\n hll_ = libcount::HLL::Create(kPrecision);\n }\n\n void Update(type::Value& value) {\n hll_->Update(Hash(value));\n }\n\n uint64_t EstimateCardinality() {\n uint64_t cardinality = hll_->Estimate();\n LOG_INFO(\"Estimated cardinality with HLL: [%lu]\", cardinality);\n return cardinality;\n }\n\n ~HLL() {\n delete hll_;\n }\n\n private:\n libcount::HLL* hll_;\n\n uint64_t Hash(type::Value& value) {\n uint64_t hash[2];\n const char* raw_value = value.ToString().c_str();\n MurmurHash3_x64_128(raw_value, (uint64_t)strlen(raw_value), 0, hash);\n return hash[0];\n }\n};\n\n} \/* namespace optimizer *\/\n} \/* namespace peloton *\/\n","new_contents":"#pragma once\n\n#include \n#include \n\n#include \n#include \n\n#include \"type\/value.h\"\n#include \"common\/macros.h\"\n#include \"common\/logger.h\"\n\nnamespace peloton {\nnamespace optimizer {\n\n\/*\n * A wrapper for libcount::HLL with murmurhash3\n *\/\nclass HLL {\n public:\n\n HLL(const int kPrecision = 8) {\n hll_ = libcount::HLL::Create(kPrecision);\n }\n\n void Update(type::Value& value) {\n hll_->Update(Hash(value));\n }\n\n uint64_t EstimateCardinality() {\n uint64_t cardinality = hll_->Estimate();\n LOG_INFO(\"Estimated cardinality with HLL: [%lu]\", cardinality);\n return cardinality;\n }\n\n ~HLL() {\n delete hll_;\n }\n\n private:\n libcount::HLL* hll_;\n\n uint64_t Hash(type::Value& value) {\n uint64_t hash[2];\n std::string value_str = value.ToString();\n const char* raw_value = value_str.c_str();\n MurmurHash3_x64_128(raw_value, (uint64_t)strlen(raw_value), 0, hash);\n return hash[0];\n }\n};\n\n} \/* namespace optimizer *\/\n} \/* namespace peloton *\/\n","subject":"Fix valgrind 'invalid read of size 1' bug.","message":"Fix valgrind 'invalid read of size 1' bug.\n","lang":"C","license":"apache-2.0","repos":"cmu-db\/peloton,PauloAmora\/peloton,AllisonWang\/peloton,AngLi-Leon\/peloton,AllisonWang\/peloton,cmu-db\/peloton,malin1993ml\/peloton,seojungmin\/peloton,yingjunwu\/peloton,PauloAmora\/peloton,cmu-db\/peloton,prashasthip\/peloton,haojin2\/peloton,vittvolt\/peloton,AngLi-Leon\/peloton,PauloAmora\/peloton,seojungmin\/peloton,yingjunwu\/peloton,prashasthip\/peloton,apavlo\/peloton,apavlo\/peloton,AngLi-Leon\/peloton,seojungmin\/peloton,haojin2\/peloton,AllisonWang\/peloton,PauloAmora\/peloton,seojungmin\/peloton,apavlo\/peloton,AngLi-Leon\/peloton,apavlo\/peloton,PauloAmora\/peloton,AllisonWang\/peloton,vittvolt\/peloton,prashasthip\/peloton,cmu-db\/peloton,seojungmin\/peloton,seojungmin\/peloton,malin1993ml\/peloton,vittvolt\/peloton,prashasthip\/peloton,haojin2\/peloton,haojin2\/peloton,AngLi-Leon\/peloton,AngLi-Leon\/peloton,PauloAmora\/peloton,apavlo\/peloton,cmu-db\/peloton,vittvolt\/peloton,yingjunwu\/peloton,malin1993ml\/peloton,malin1993ml\/peloton,cmu-db\/peloton,malin1993ml\/peloton,yingjunwu\/peloton,haojin2\/peloton,malin1993ml\/peloton,vittvolt\/peloton,prashasthip\/peloton,yingjunwu\/peloton,prashasthip\/peloton,AllisonWang\/peloton,yingjunwu\/peloton,AllisonWang\/peloton,vittvolt\/peloton,apavlo\/peloton,haojin2\/peloton"} {"commit":"79dd0bf258c0636ff902ebaa8aba8ca945be5d58","old_file":"common_audio\/signal_processing\/cross_correlation.c","new_file":"common_audio\/signal_processing\/cross_correlation.c","old_contents":"\/*\n * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n *\/\n\n#include \"webrtc\/common_audio\/signal_processing\/include\/signal_processing_library.h\"\n\n\/* C version of WebRtcSpl_CrossCorrelation() for generic platforms. *\/\nvoid WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation,\n const int16_t* seq1,\n const int16_t* seq2,\n int16_t dim_seq,\n int16_t dim_cross_correlation,\n int right_shifts,\n int step_seq2) {\n int i = 0, j = 0;\n\n for (i = 0; i < dim_cross_correlation; i++) {\n int32_t corr = 0;\n \/* Unrolling doesn't seem to improve performance. *\/\n for (j = 0; j < dim_seq; j++) {\n \/\/ It's not clear why casting |right_shifts| here helps performance.\n corr += (seq1[j] * seq2[j]) >> (int16_t)right_shifts;\n }\n seq2 += step_seq2;\n *cross_correlation++ = corr;\n }\n}\n","new_contents":"\/*\n * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n *\/\n\n#include \"webrtc\/common_audio\/signal_processing\/include\/signal_processing_library.h\"\n\n\/* C version of WebRtcSpl_CrossCorrelation() for generic platforms. *\/\nvoid WebRtcSpl_CrossCorrelationC(int32_t* cross_correlation,\n const int16_t* seq1,\n const int16_t* seq2,\n int16_t dim_seq,\n int16_t dim_cross_correlation,\n int right_shifts,\n int step_seq2) {\n int i = 0, j = 0;\n\n for (i = 0; i < dim_cross_correlation; i++) {\n int32_t corr = 0;\n \/* Unrolling doesn't seem to improve performance. *\/\n for (j = 0; j < dim_seq; j++)\n corr += (seq1[j] * seq2[j]) >> right_shifts;\n seq2 += step_seq2;\n *cross_correlation++ = corr;\n }\n}\n","subject":"Test whether removing a cast still hurts performance.","message":"Test whether removing a cast still hurts performance.\n\nBUG=499241\nTEST=none\nTBR=andrew\n\nReview URL: https:\/\/codereview.webrtc.org\/1206653002\n\nCr-Original-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#9491}\nCr-Mirrored-From: https:\/\/chromium.googlesource.com\/external\/webrtc\nCr-Mirrored-Commit: 6bfc82aaf18e42fcc7328b81ffb3ec3cf360d732\n","lang":"C","license":"bsd-3-clause","repos":"sippet\/webrtc,sippet\/webrtc,sippet\/webrtc,sippet\/webrtc,sippet\/webrtc,sippet\/webrtc"} {"commit":"a534fc0b344d474c8eb3937be1fca98ea1389878","old_file":"IntelFrameworkModulePkg\/Include\/Protocol\/Ps2Policy.h","new_file":"IntelFrameworkModulePkg\/Include\/Protocol\/Ps2Policy.h","old_contents":"","new_contents":"\/*++\r\n\r\nCopyright (c) 2006, Intel Corporation. All rights reserved. \r\nThis software and associated documentation (if any) is furnished\r\nunder a license and may only be used or copied in accordance\r\nwith the terms of the license. Except as permitted by such\r\nlicense, no part of this software or documentation may be\r\nreproduced, stored in a retrieval system, or transmitted in any\r\nform or by any means without the express written consent of\r\nIntel Corporation.\r\n\r\n\r\nModule Name:\r\n\r\n Ps2Policy.h\r\n \r\nAbstract:\r\n\r\n Protocol used for PS\/2 Policy definition.\r\n\r\n--*\/\r\n\r\n#ifndef _PS2_POLICY_PROTOCOL_H_\r\n#define _PS2_POLICY_PROTOCOL_H_\r\n\r\n#define EFI_PS2_POLICY_PROTOCOL_GUID \\\r\n { \\\r\n 0x4df19259, 0xdc71, 0x4d46, {0xbe, 0xf1, 0x35, 0x7b, 0xb5, 0x78, 0xc4, 0x18 } \\\r\n }\r\n\r\n#define EFI_KEYBOARD_CAPSLOCK 0x0004\r\n#define EFI_KEYBOARD_NUMLOCK 0x0002\r\n#define EFI_KEYBOARD_SCROLLLOCK 0x0001\r\n\r\ntypedef\r\nEFI_STATUS\r\n(EFIAPI *EFI_PS2_INIT_HARDWARE) (\r\n IN EFI_HANDLE Handle\r\n );\r\n\r\ntypedef struct {\r\n UINT8 KeyboardLight;\r\n EFI_PS2_INIT_HARDWARE Ps2InitHardware;\r\n} EFI_PS2_POLICY_PROTOCOL;\r\n\r\nextern EFI_GUID gEfiPs2PolicyProtocolGuid;\r\n\r\n#endif\r\n","subject":"Add in Ps2keyboard.inf and Ps2Mouse.inf to IntelFrameworkModuelPkg","message":"Add in Ps2keyboard.inf and Ps2Mouse.inf to IntelFrameworkModuelPkg\n\ngit-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@3113 6f19259b-4bc3-4df7-8a09-765794883524\n","lang":"C","license":"bsd-2-clause","repos":"MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2"} {"commit":"03a7507e13b84eb3ddd6fad31832e99825977895","old_file":"Include\/SQLiteDatabaseHelper\/SQLiteDatabaseHelper.h","new_file":"Include\/SQLiteDatabaseHelper\/SQLiteDatabaseHelper.h","old_contents":"\/\/\n\/\/ SQLiteDatabaseHelper\n\/\/ Include\/SQLiteDatabaseHelper.h\n\/\/\n#ifndef __SQLITEDATABASEHELPER_H__\n#define __SQLITEDATABASEHELPER_H__\n\n#include \n\n#include \n\n#endif","new_contents":"\/\/\n\/\/ SQLiteDatabaseHelper\n\/\/ Include\/SQLiteDatabaseHelper.h\n\/\/\n#ifndef __SQLITEDATABASEHELPER_H__\n#define __SQLITEDATABASEHELPER_H__\n\n#include \n\n#endif","subject":"Include database reader in main library header","message":"Include database reader in main library header\n\nSigned-off-by: Gigabyte-Giant \n","lang":"C","license":"mit","repos":"Gigabyte-Giant\/SQLiteDatabaseHelper"} {"commit":"5470369e38e497c1eade1b3171a288415be6d0fd","old_file":"include\/atoms\/numeric\/rolling_average.h","new_file":"include\/atoms\/numeric\/rolling_average.h","old_contents":"#pragma once\n\n\/\/ This file is part of 'Atoms' library - https:\/\/github.com\/yaqwsx\/atoms\n\/\/ Author: Jan 'yaqwsx' Mrzek\n\n#include \n#include \n#include \n\nnamespace atoms {\n\ntemplate \nclass RollingAverage {\npublic:\n RollingAverage() : sum(0), index(0)\n {\n std::fill(values.begin(), values.end(), T(0));\n };\n\n RollingAverage(const std::initializer_list& l) : sum(0), index(0)\n {\n std::copy(l.begin(), l.end(), values.begin());\n }\n\n void push(const T& t) {\n sum += t - values[index];\n values[index] = t;\n index++;\n if (index == SIZE)\n index = 0;\n }\n\n T get_average() {\n return sum \/ T(SIZE);\n }\n\n T get_sum() {\n return sum;\n }\nprivate:\n std::array values;\n T sum;\n size_t index;\n};\n\n}","new_contents":"#pragma once\n\n\/\/ This file is part of 'Atoms' library - https:\/\/github.com\/yaqwsx\/atoms\n\/\/ Author: Jan 'yaqwsx' Mrázek\n\n#include \n#include \n#include \n\nnamespace atoms {\n\ntemplate \nclass RollingAverage {\npublic:\n RollingAverage() : sum(0), index(0)\n {\n std::fill(values.begin(), values.end(), T(0));\n };\n\n void push(const T& t) {\n sum += t - values[index];\n values[index] = t;\n index++;\n if (index == SIZE)\n index = 0;\n }\n\n T get_average() {\n return sum \/ T(SIZE);\n }\n\n T get_sum() {\n return sum;\n }\n\n void clear(T t = 0) {\n std::fill(values.begin(), values.end(), t);\n sum = t * SIZE;\n }\n \nprivate:\n std::array values;\n T sum;\n size_t index;\n};\n\n}\n","subject":"Add clear() and delete constructor with initializer_list","message":"RollingAverage: Add clear() and delete constructor with initializer_list","lang":"C","license":"mit","repos":"yaqwsx\/atoms"} {"commit":"a14862fa4b0f730b9bfcc291b33c0dc6c1fac2ad","old_file":"tests\/regression\/34-congruence\/04-casting.c","new_file":"tests\/regression\/34-congruence\/04-casting.c","old_contents":"","new_contents":"\/\/ PARAM: --disable ana.int.def_exc --enable ana.int.interval\n\/\/ Ensures that the cast_to function handles casting for congruences correctly.\n\/\/ TODO: Implement appropriate cast_to function, enable for congruences only and adjust test if necessary.\n#include \n#include \n\nint main(){\n int c = 128;\n for (int i = 0; i < 1; i++) {\n c = c - 150;\n }\n char k = (char) c;\n printf (\"k: %d\", k);\n assert (k == -22); \/\/UNKNOWN\n\n k = k + 150;\n assert (k == 0); \/\/UNKNOWN!\n\n}\n","subject":"Add (deactivated) casting test for congruence domain","message":"Add (deactivated) casting test for congruence domain\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"94313f9165a71469ca5cfa0078f8060947fee781","old_file":"src\/cubeb-speex-resampler.h","new_file":"src\/cubeb-speex-resampler.h","old_contents":"#define OUTSIDE_SPEEX\r\n#define RANDOM_PREFIX cubeb\r\n#define FLOATING_POINT\r\n#include \r\n","new_contents":"#include \n","subject":"Revert \"Force being outside speex.\"","message":"Revert \"Force being outside speex.\"\n\nThis reverts commit 356ee9e85ca2f5999cfa18f356b103dffe09fbbd.\n","lang":"C","license":"isc","repos":"padenot\/cubeb,padenot\/cubeb,ieei\/cubeb,ieei\/cubeb,kinetiknz\/cubeb,kinetiknz\/cubeb,padenot\/cubeb,kinetiknz\/cubeb"} {"commit":"c581851a1839a63c4873ed632a62982d1c8bb6d0","old_file":"src\/helpers\/number_helper.h","new_file":"src\/helpers\/number_helper.h","old_contents":"\/*\n * *****************************************************************************\n * Copyright 2014 Spectra Logic Corporation. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"). You may not\n * use this file except in compliance with the License. A copy of the License\n * is located at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * or in the \"license\" file accompanying this file.\n * This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n * CONDITIONS OF ANY KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations under the License.\n * *****************************************************************************\n *\/\n\n#ifndef NUMBER_HELPER_H\n#define NUMBER_HELPER_H\n\n#include \n\nclass NumberHelper\n{\npublic:\n\tstatic const uint64_t B;\n\tstatic const uint64_t KB;\n\tstatic const uint64_t MB;\n\tstatic const uint64_t GB;\n\tstatic const uint64_t TB;\n\n\tstatic QString ToHumanSize(uint64_t bytes);\n};\n\n#endif\n","new_contents":"\/*\n * *****************************************************************************\n * Copyright 2014 Spectra Logic Corporation. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\"). You may not\n * use this file except in compliance with the License. A copy of the License\n * is located at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * or in the \"license\" file accompanying this file.\n * This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n * CONDITIONS OF ANY KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations under the License.\n * *****************************************************************************\n *\/\n\n#ifndef NUMBER_HELPER_H\n#define NUMBER_HELPER_H\n\n#include \n#include \n\nclass NumberHelper\n{\npublic:\n\tstatic const uint64_t B;\n\tstatic const uint64_t KB;\n\tstatic const uint64_t MB;\n\tstatic const uint64_t GB;\n\tstatic const uint64_t TB;\n\n\tstatic QString ToHumanSize(uint64_t bytes);\n};\n\n#endif\n","subject":"Fix windows build by requiring stdint.h","message":"Fix windows build by requiring stdint.h\n","lang":"C","license":"apache-2.0","repos":"Klopsch\/ds3_browser,Klopsch\/ds3_browser,SpectraLogic\/ds3_browser,SpectraLogic\/ds3_browser,SpectraLogic\/ds3_browser,Klopsch\/ds3_browser"} {"commit":"e4883c48b61977e38068847cf40797021fd67c09","old_file":"thcrap\/src\/global.c","new_file":"thcrap\/src\/global.c","old_contents":"\/**\n * Touhou Community Reliant Automatic Patcher\n * Main DLL\n *\n * ----\n *\n * Globals, compile-time constants and runconfig abstractions.\n *\/\n\n#include \"thcrap.h\"\n\nCRITICAL_SECTION cs_file_access;\njson_t* run_cfg = NULL;\n\nconst char* PROJECT_NAME()\n{\n\treturn \"Touhou Community Reliant Automatic Patcher\";\n}\nconst char* PROJECT_NAME_SHORT()\n{\n\treturn \"thcrap\";\n}\nconst DWORD PROJECT_VERSION()\n{\n\treturn 0x20130812;\n}\nconst char* PROJECT_VERSION_STRING()\n{\n\tstatic char ver_str[11] = {0};\n\tif(!ver_str[0]) {\n\t\tstr_hexdate_format(ver_str, PROJECT_VERSION());\n\t}\n\treturn ver_str;\n}\njson_t* runconfig_get()\n{\n\treturn run_cfg;\n}\nvoid runconfig_set(json_t *new_run_cfg)\n{\n\trun_cfg = new_run_cfg;\n}\n\nvoid* runconfig_func_get(const char *name)\n{\n\tjson_t *funcs = json_object_get(run_cfg, \"funcs\");\n\treturn (void*)json_object_get_hex(funcs, name);\n}\n","new_contents":"\/**\n * Touhou Community Reliant Automatic Patcher\n * Main DLL\n *\n * ----\n *\n * Globals, compile-time constants and runconfig abstractions.\n *\/\n\n#include \"thcrap.h\"\n\nCRITICAL_SECTION cs_file_access;\njson_t* run_cfg = NULL;\n\nconst char* PROJECT_NAME()\n{\n\treturn \"Touhou Community Reliant Automatic Patcher\";\n}\nconst char* PROJECT_NAME_SHORT()\n{\n\treturn \"thcrap\";\n}\nconst DWORD PROJECT_VERSION()\n{\n\treturn 0x20130815;\n}\nconst char* PROJECT_VERSION_STRING()\n{\n\tstatic char ver_str[11] = {0};\n\tif(!ver_str[0]) {\n\t\tstr_hexdate_format(ver_str, PROJECT_VERSION());\n\t}\n\treturn ver_str;\n}\njson_t* runconfig_get()\n{\n\treturn run_cfg;\n}\nvoid runconfig_set(json_t *new_run_cfg)\n{\n\trun_cfg = new_run_cfg;\n}\n\nvoid* runconfig_func_get(const char *name)\n{\n\tjson_t *funcs = json_object_get(run_cfg, \"funcs\");\n\treturn (void*)json_object_get_hex(funcs, name);\n}\n","subject":"Bump version number to 2013-08-15","message":"Bump version number to 2013-08-15\n","lang":"C","license":"unlicense","repos":"VBChunguk\/thcrap,thpatch\/thcrap,thpatch\/thcrap,thpatch\/thcrap,thpatch\/thcrap,thpatch\/thcrap,VBChunguk\/thcrap,VBChunguk\/thcrap"} {"commit":"f3929daf7f2223913e226686cd4078a73849057c","old_file":"test\/Analysis\/uninit-vals.c","new_file":"test\/Analysis\/uninit-vals.c","old_contents":"\/\/ RUN: clang-cc -analyze -warn-uninit-values -verify %s\n\nint f1() {\n int x;\n return x; \/\/ expected-warning {{use of uninitialized variable}}\n}\n\nint f2(int x) {\n int y;\n int z = x + y; \/\/ expected-warning {{use of uninitialized variable}}\n return z;\n}\n\n\nint f3(int x) {\n int y;\n return x ? 1 : y; \/\/ expected-warning {{use of uninitialized variable}}\n}\n\nint f4(int x) {\n int y;\n if (x) y = 1;\n return y; \/\/ expected-warning {{use of uninitialized variable}}\n}\n\nint f5() {\n int a;\n a = 30; \/\/ no-warning\n}\n\nvoid f6(int i) {\n int x;\n for (i = 0 ; i < 10; i++)\n printf(\"%d\",x++); \/\/ expected-warning {{use of uninitialized variable}} \\\n \/\/ expected-warning{{implicitly declaring C library function 'printf' with type 'int (char const *, ...)'}} \\\n \/\/ expected-note{{please include the header or explicitly provide a declaration for 'printf'}}\n}\n\nvoid f7(int i) {\n int x = i;\n int y;\n for (i = 0; i < 10; i++ ) {\n printf(\"%d\",x++); \/\/ no-warning\n x += y; \/\/ expected-warning {{use of uninitialized variable}}\n }\n}\n","new_contents":"\/\/ RUN: clang-cc -analyze -warn-uninit-values -verify %s\n\nint f1() {\n int x;\n return x; \/\/ expected-warning {{use of uninitialized variable}}\n}\n\nint f2(int x) {\n int y;\n int z = x + y; \/\/ expected-warning {{use of uninitialized variable}}\n return z;\n}\n\n\nint f3(int x) {\n int y;\n return x ? 1 : y; \/\/ expected-warning {{use of uninitialized variable}}\n}\n\nint f4(int x) {\n int y;\n if (x) y = 1;\n return y; \/\/ expected-warning {{use of uninitialized variable}}\n}\n\nint f5() {\n int a;\n a = 30; \/\/ no-warning\n}\n\nvoid f6(int i) {\n int x;\n for (i = 0 ; i < 10; i++)\n printf(\"%d\",x++); \/\/ expected-warning {{use of uninitialized variable}} \\\n \/\/ expected-warning{{implicitly declaring C library function 'printf' with type 'int (char const *, ...)'}} \\\n \/\/ expected-note{{please include the header or explicitly provide a declaration for 'printf'}}\n}\n\nvoid f7(int i) {\n int x = i;\n int y;\n for (i = 0; i < 10; i++ ) {\n printf(\"%d\",x++); \/\/ no-warning\n x += y; \/\/ expected-warning {{use of uninitialized variable}}\n }\n}\n\nint f8(int j) {\n int x = 1, y = x + 1;\n if (y) \/\/ no-warning\n return x;\n return y;\n}\n","subject":"Add another uninitialized values test case illustrating that the CFG correctly handles declarations with multiple variables.","message":"Add another uninitialized values test case illustrating that the CFG correctly\nhandles declarations with multiple variables.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@68046 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"2dcb0a61041a003f439bbd38005b6e454c368be0","old_file":"drivers\/scsi\/qla4xxx\/ql4_version.h","new_file":"drivers\/scsi\/qla4xxx\/ql4_version.h","old_contents":"\/*\n * QLogic iSCSI HBA Driver\n * Copyright (c) 2003-2010 QLogic Corporation\n *\n * See LICENSE.qla4xxx for copyright and licensing details.\n *\/\n\n#define QLA4XXX_DRIVER_VERSION\t\"5.02.00-k5\"\n","new_contents":"\/*\n * QLogic iSCSI HBA Driver\n * Copyright (c) 2003-2010 QLogic Corporation\n *\n * See LICENSE.qla4xxx for copyright and licensing details.\n *\/\n\n#define QLA4XXX_DRIVER_VERSION\t\"5.02.00-k6\"\n","subject":"Update driver version to 5.02.00-k6","message":"[SCSI] qla4xxx: Update driver version to 5.02.00-k6\n\nSigned-off-by: Vikas Chaudhary \nSigned-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>\n","lang":"C","license":"apache-2.0","repos":"TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs"} {"commit":"efb6c717b764e77cadc20bc9d9ffdf16bc1eedf5","old_file":"drivers\/scsi\/qla4xxx\/ql4_version.h","new_file":"drivers\/scsi\/qla4xxx\/ql4_version.h","old_contents":"\/*\n * QLogic iSCSI HBA Driver\n * Copyright (c) 2003-2010 QLogic Corporation\n *\n * See LICENSE.qla4xxx for copyright and licensing details.\n *\/\n\n#define QLA4XXX_DRIVER_VERSION\t\"5.02.00-k17\"\n","new_contents":"\/*\n * QLogic iSCSI HBA Driver\n * Copyright (c) 2003-2010 QLogic Corporation\n *\n * See LICENSE.qla4xxx for copyright and licensing details.\n *\/\n\n#define QLA4XXX_DRIVER_VERSION\t\"5.02.00-k18\"\n","subject":"Update driver version to 5.02.00-k18","message":"[SCSI] qla4xxx: Update driver version to 5.02.00-k18\n\nSigned-off-by: Vikas Chaudhary \nSigned-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>\n","lang":"C","license":"mit","repos":"KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas"} {"commit":"9630f9b1653188a4173dc633fd55840ae918ca4e","old_file":"src\/Tomighty\/Core\/UI\/TYAppUI.h","new_file":"src\/Tomighty\/Core\/UI\/TYAppUI.h","old_contents":"\/\/\n\/\/ Tomighty - http:\/\/www.tomighty.org\n\/\/\n\/\/ This software is licensed under the Apache License Version 2.0:\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0.txt\n\/\/\n\n#import \n\n@protocol TYAppUI \n\n- (void)switchToIdleState;\n- (void)switchToPomodoroState;\n- (void)switchToShortBreakState;\n- (void)switchToLongBreakState;\n- (void)updateRemainingTime:(int)remainingSeconds;\n- (void)updatePomodoroCount:(int)count;\n- (void)handlePrerencesChange:(NSString*)which;\n\n@end\n","new_contents":"\/\/\n\/\/ Tomighty - http:\/\/www.tomighty.org\n\/\/\n\/\/ This software is licensed under the Apache License Version 2.0:\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0.txt\n\/\/\n\n#import \n\n@protocol TYAppUI \n\n- (void)switchToIdleState;\n- (void)switchToPomodoroState;\n- (void)switchToShortBreakState;\n- (void)switchToLongBreakState;\n- (void)updateRemainingTime:(int)remainingSeconds;\n- (void)updatePomodoroCount:(int)count;\n\n@end\n","subject":"Remove preference change handler declaration.","message":"Remove preference change handler declaration.\n","lang":"C","license":"apache-2.0","repos":"ccidral\/tomighty-osx,tomighty\/tomighty-osx,ccidral\/tomighty-osx,tomighty\/tomighty-osx,ccidral\/tomighty-osx"} {"commit":"5a2a1f8179035de5e5a46b5731955598077c93cf","old_file":"src\/arch\/arm\/armmlib\/context.c","new_file":"src\/arch\/arm\/armmlib\/context.c","old_contents":"\/**\n * @file\n * @brief\n *\n * @author Anton Kozlov\n * @date 25.10.2012\n *\/\n\n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n\n\/* In the RVCT v2.0 and above, all generated code and C library code\n * will maintain eight-byte stack alignment on external interfaces. *\/\n#define ARM_SP_ALIGNMENT 8\n\nvoid context_init(struct context *ctx, unsigned int flags,\n\t\tvoid (*routine_fn)(void), void *sp) {\n\tctx->lr = (uint32_t) routine_fn;\n\tctx->sp = (uint32_t) sp;\n\n\tassertf(((uint32_t) sp % ARM_SP_ALIGNMENT) == 0,\n\t\t\"Stack pointer is not aligned to 8 bytes.\\n\"\n\t\t\"Firstly please make sure the thread stack size is aligned to 8 bytes\"\n\t);\n\n\tctx->control = 0;\n\n\tif (!(flags & CONTEXT_PRIVELEGED)) {\n\t\tctx->control |= CONTROL_NPRIV;\n\t}\n\n\tarm_fpu_context_init(&ctx->fpu_data);\n}\n\n","new_contents":"\/**\n * @file\n * @brief\n *\n * @author Anton Kozlov\n * @date 25.10.2012\n *\/\n\n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n\n\/* In the RVCT v2.0 and above, all generated code and C library code\n * will maintain eight-byte stack alignment on external interfaces. *\/\n#define ARM_SP_ALIGNMENT 8\n\nvoid context_init(struct context *ctx, unsigned int flags,\n\t\tvoid (*routine_fn)(void), void *sp) {\n\tctx->lr = (uint32_t) routine_fn;\n\tctx->sp = (uint32_t) sp;\n\n\tassertf(((uint32_t) sp % ARM_SP_ALIGNMENT) == 0,\n\t\t\"Stack pointer is not aligned to 8 bytes.\\n\"\n\t\t\"Firstly please make sure the thread stack size is aligned to 8 bytes\"\n\t);\n\n\tctx->control = CONTROL_SPSEL_PSP;\n\n\tif (!(flags & CONTEXT_PRIVELEGED)) {\n\t\tctx->control |= CONTROL_NPRIV;\n\t}\n\n\tarm_fpu_context_init(&ctx->fpu_data);\n}\n\n","subject":"Use PSP for all threads","message":"cortex-m: Use PSP for all threads\n","lang":"C","license":"bsd-2-clause","repos":"embox\/embox,embox\/embox,embox\/embox,embox\/embox,embox\/embox,embox\/embox"} {"commit":"10b850b59e13bda075aee09822ca62d1431c57a0","old_file":"src\/soft\/integer\/floatuntidf.c","new_file":"src\/soft\/integer\/floatuntidf.c","old_contents":"\/* This file is part of Metallic, a runtime library for WebAssembly.\n *\n * Copyright (C) 2018 Chen-Pang He \n *\n * This Source Code Form is subject to the terms of the Mozilla\n * Public License v. 2.0. If a copy of the MPL was not distributed\n * with this file, You can obtain one at http:\/\/mozilla.org\/MPL\/2.0\/\n *\/\n#include \"floatuntidf.h\"\n\ndouble __floatuntidf(unsigned __int128 a)\n{\n return __floatuntidf(a);\n}\n","new_contents":"\/* This file is part of Metallic, a runtime library for WebAssembly.\n *\n * Copyright (C) 2018 Chen-Pang He \n *\n * This Source Code Form is subject to the terms of the Mozilla\n * Public License v. 2.0. If a copy of the MPL was not distributed\n * with this file, You can obtain one at http:\/\/mozilla.org\/MPL\/2.0\/\n *\/\n#include \"floatuntidf.h\"\n\ndouble __floatuntidf(unsigned __int128 a)\n{\n return _floatuntidf(a);\n}\n","subject":"Fix a typo which causes infinite recursion","message":"Fix a typo which causes infinite recursion\n","lang":"C","license":"mit","repos":"jdh8\/metallic,jdh8\/metallic,jdh8\/metallic,jdh8\/metallic,jdh8\/metallic"} {"commit":"ea835b91ccfe55cab867f2aa1416385c0f769e21","old_file":"sources\/CWSCore.h","new_file":"sources\/CWSCore.h","old_contents":"\/\/\n\/\/ CWSCore.h\n\/\/ yafacwesConsole\n\/\/\n\/\/ Created by Matthias Lamoureux on 13\/07\/2015.\n\/\/ Copyright (c) 2015 pinguzaph. All rights reserved.\n\/\/\n\n#import \n\n@interface CWSCore : NSObject\n\n@property (nonatomic, strong) NSString * name;\n\n@end\n","new_contents":"\/\/\n\/\/ CWSCore.h\n\/\/ yafacwesConsole\n\/\/\n\/\/ Created by Matthias Lamoureux on 13\/07\/2015.\n\/\/ Copyright (c) 2015 pinguzaph. All rights reserved.\n\/\/\n\n#import \n\n@interface CWSCore : NSObject\n\n@property (nonatomic, copy) NSString * name;\n\n@end\n","subject":"Set the NSString property to copy mode","message":"Set the NSString property to copy mode\n","lang":"C","license":"mit","repos":"letatas\/yafacwes,letatas\/yafacwes"} {"commit":"2bbbfd9a852b4de70411293745d4b88f1a7d4e7a","old_file":"src\/LibTemplateCMake\/include\/LibTemplateCMake\/LibTemplateCMake.h","new_file":"src\/LibTemplateCMake\/include\/LibTemplateCMake\/LibTemplateCMake.h","old_contents":"#ifndef LIB_TEMPLATE_CMAKE_H\n#define LIB_TEMPLATE_CMAKE_H\n\nnamespace LibTemplateCMake {\n\n\/**\n* \\class LibTemplateCMake::aClass\n* \\headerfile template-lib.h \n*\n* \\brief A class from LibTemplateCMake namespace.\n*\n* This class that does a summation.\n*\/\nclass summationClass\n{\npublic:\n \/**\n * Constructor\n *\/\n summationClass();\n\n \/**\n * Destructory\n *\/\n virtual ~summationClass();\n\n \/**\n * A method that does a summation\n *\/\n virtual double doSomething(double op1, double op2);\n};\n\n\n\/**\n* \\class LibTemplateCMake::anotherClass\n* \\headerfile template-lib.h \n*\n* \\brief A derived class from LibTemplateCMake namespace.\n*\n* This class performs a difference.\n*\/\nclass differenceClass : public summationClass\n{\npublic:\n \/**\n * Constructor\n *\/\n differenceClass();\n\n \/**\n * Destructory\n *\/\n virtual ~differenceClass();\n\n \/**\n * A method that does something\n *\/\n virtual double doSomething(double op1, double op2);\n};\n\n\n} \/\/ namespace LibTemplateCMake\n\n#endif \/* LIB_TEMPLATE_CMAKE_H *\/\n","new_contents":"#ifndef LIB_TEMPLATE_CMAKE_H\n#define LIB_TEMPLATE_CMAKE_H\n\nnamespace LibTemplateCMake {\n\n\/**\n * \\class LibTemplateCMake::aClass\n * \\headerfile template-lib.h \n *\n * \\brief A class from LibTemplateCMake namespace.\n *\n * This class that does a summation.\n *\/\nclass summationClass\n{\npublic:\n \/**\n * Constructor\n *\/\n summationClass();\n\n \/**\n * Destructor\n *\/\n virtual ~summationClass();\n\n \/**\n * A method that does a summation\n *\/\n virtual double doSomething(double op1, double op2);\n};\n\n\n\/**\n * \\class LibTemplateCMake::anotherClass\n * \\headerfile template-lib.h \n *\n * \\brief A derived class from LibTemplateCMake namespace.\n *\n * This class performs a difference.\n *\/\nclass differenceClass : public summationClass\n{\npublic:\n \/**\n * Constructor\n *\/\n differenceClass();\n\n \/**\n * Destructor\n *\/\n virtual ~differenceClass();\n\n \/**\n * A method that does something\n *\/\n virtual double doSomething(double op1, double op2);\n};\n\n\n} \/\/ namespace LibTemplateCMake\n\n#endif \/* LIB_TEMPLATE_CMAKE_H *\/\n","subject":"Clean up shared lib header code","message":"Clean up shared lib header code\n","lang":"C","license":"mit","repos":"robotology-playground\/lib-template-cmake"} {"commit":"83459aedbc24813969bd0ed8212bbd9f665e843d","old_file":"tests\/regression\/02-base\/71-pthread-once.c","new_file":"tests\/regression\/02-base\/71-pthread-once.c","old_contents":"\/\/PARAM: --disable sem.unknown_function.spawn\n#include \n#include \n\nint g;\npthread_once_t once = PTHREAD_ONCE_INIT;\n\nvoid *t_fun(void *arg) {\n assert(1); \/\/ reachable!\n return NULL;\n}\n\nint main() {\n pthread_once(&once,t_fun);\n return 0;\n}\n","new_contents":"\/\/PARAM: --disable sem.unknown_function.spawn\n#include \n#include \n\nint g;\npthread_once_t once = PTHREAD_ONCE_INIT;\n\nvoid t_fun() {\n assert(1); \/\/ reachable!\n return NULL;\n}\n\nint main() {\n pthread_once(&once,t_fun);\n return 0;\n}\n","subject":"Correct type of `pthread_once` argument","message":"02\/71: Correct type of `pthread_once` argument\n\nCo-authored-by: Simmo Saan <43bc63fd4e818c04906d6ad710460794fe32296e@gmail.com>","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"563b66f9debadbe116b096fc8d5f48b17bb8d881","old_file":"src\/exercise119.c","new_file":"src\/exercise119.c","old_contents":"","new_contents":"\/* Exercise 1-19: Write a function \"reverse(s)\" that reverses the character\n * string \"s\". Use it to write a program that reverses its input a line at a\n * time. *\/\n\n#include \n#include \n#include \n#include \n\nuint32_t reverse(char *s);\n\nint main(int argc, char **argv)\n{\n char *buffer = NULL;\n uint32_t buffer_length = 0;\n char character = 0;\n bool finished_inputting = false;\n \/* You would normally have the end-of-file test in the loop condition\n * expression, however this introduces a subtle bug where the last line\n * isn't processed if the input doesn't end with a newline. See\n * for details. *\/\n while (finished_inputting == false) {\n character = getchar();\n if (character == '\\n' || (character == EOF && buffer_length > 0)) {\n buffer = realloc(buffer, ++buffer_length * sizeof(char));\n buffer[buffer_length - 1] = '\\0';\n reverse(buffer);\n printf(\"%s\\n\", buffer);\n free(buffer);\n buffer = NULL;\n buffer_length = 0;\n } else {\n buffer = realloc(buffer, ++buffer_length * sizeof(char));\n buffer[buffer_length - 1] = character;\n }\n finished_inputting = (character == EOF);\n }\n return EXIT_SUCCESS;\n}\n\nuint32_t reverse(char *s)\n{\n uint32_t string_length = 0;\n while (s[string_length] != '\\0') {\n string_length++;\n }\n int32_t i = 0, j = string_length - 1;\n char temp = 0;\n for (i = 0; i < j; i++, j--) {\n temp = s[i];\n s[i] = s[j];\n s[j] = temp;\n }\n return string_length;\n}\n","subject":"Add solution to Exercise 1-19.","message":"Add solution to Exercise 1-19.\n","lang":"C","license":"unlicense","repos":"damiendart\/knr-solutions,damiendart\/knr-solutions,damiendart\/knr-solutions"} {"commit":"2b24c45e3d99ec7e44862960acee7b26d15ab84f","old_file":"src\/config.h","new_file":"src\/config.h","old_contents":"#ifndef _CONFIG_H\n#define _CONFIG_H\n\n#define ENABLE_COUNTERMOVE_HISTORY 0\n#define ENABLE_HISTORY_PRUNE_DEPTH 0\n#define ENABLE_NNUE 0\n#define ENABLE_NNUE_SIMD 0\n\n#endif\n","new_contents":"#ifndef _CONFIG_H\n#define _CONFIG_H\n\n#define ENABLE_COUNTERMOVE_HISTORY 0\n#define ENABLE_HISTORY_PRUNE_DEPTH 4\n#define ENABLE_NNUE 0\n#define ENABLE_NNUE_SIMD 0\n\n#endif\n","subject":"Enable history pruning at depth 4","message":"Enable history pruning at depth 4\n","lang":"C","license":"bsd-3-clause","repos":"jwatzman\/nameless-chessbot,jwatzman\/nameless-chessbot"} {"commit":"fa09dc1302b1dc246adf171c6d891e0444c063d8","old_file":"src\/bin\/e_signals.c","new_file":"src\/bin\/e_signals.c","old_contents":"\/*\n * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2\n *\/\n#include \"e.h\"\n#include \n\n\/* a tricky little devil, requires e and it's libs to be built\n * with the -rdynamic flag to GCC for any sort of decent output. \n *\/\nvoid e_sigseg_act(int x, siginfo_t *info, void *data){\n\n void *array[255];\n size_t size;\n write(2, \"**** SEGMENTATION FAULT ****\\n\", 29);\n write(2, \"**** Printing Backtrace... *****\\n\\n\", 34);\n size = backtrace(array, 255);\n backtrace_symbols_fd(array, size, 2);\n exit(-11); \n}\n\n\n \n","new_contents":"\/*\n * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2\n * NOTE TO FreeBSD users. Install libexecinfo from \n * ports\/devel\/libexecinfo and add -lexecinfo to LDFLAGS\n * to add backtrace support.\n *\/\n#include \"e.h\"\n#include \n\n\/* a tricky little devil, requires e and it's libs to be built\n * with the -rdynamic flag to GCC for any sort of decent output. \n *\/\nvoid e_sigseg_act(int x, siginfo_t *info, void *data){\n\n void *array[255];\n size_t size;\n write(2, \"**** SEGMENTATION FAULT ****\\n\", 29);\n write(2, \"**** Printing Backtrace... *****\\n\\n\", 34);\n size = backtrace(array, 255);\n backtrace_symbols_fd(array, size, 2);\n exit(-11); \n}\n\n\n \n","subject":"Add note to help FreeBSD users.","message":"Add note to help FreeBSD users.\n\n\nSVN revision: 13781\n","lang":"C","license":"bsd-2-clause","repos":"rvandegrift\/e,FlorentRevest\/Enlightenment,tasn\/enlightenment,tizenorg\/platform.upstream.enlightenment,rvandegrift\/e,tasn\/enlightenment,FlorentRevest\/Enlightenment,tasn\/enlightenment,tizenorg\/platform.upstream.enlightenment,FlorentRevest\/Enlightenment,rvandegrift\/e,tizenorg\/platform.upstream.enlightenment"} {"commit":"abf6c33fd57d1f8d9a14c76f0a8ddebb0e8e7041","old_file":"src\/lib\/PluginManager.h","new_file":"src\/lib\/PluginManager.h","old_contents":"\/\/\n\/\/ This file is part of the Marble Desktop Globe.\n\/\/\n\/\/ This program is free software licensed under the GNU LGPL. You can\n\/\/ find a copy of this license in LICENSE.txt in the top directory of\n\/\/ the source code.\n\/\/\n\/\/ Copyright 2006-2008 Torsten Rahn \"\n\/\/\n\n\n#ifndef PLUGINMANAGER_H\n#define PLUGINMANAGER_H\n\n#include \n\nclass MarbleLayerInterface;\n\n\/**\n * @short The class that handles Marble's plugins.\n *\n *\/\n\nclass PluginManager : public QObject\n{\n Q_OBJECT\n\n public:\n explicit PluginManager(QObject *parent = 0);\n ~PluginManager();\n\n QList layerInterfaces() const;\n\n public Q_SLOTS:\n \/**\n * @brief Browses the plugin directories and installs plugins. \n *\n * This method browses all plugin directories and installs all \n * plugins found in there.\n *\/\n void loadPlugins();\n\n private:\n Q_DISABLE_COPY( PluginManager )\n QList m_layerInterfaces;\n};\n\n\n#endif \/\/ PLUGINMANAGER_H\n","new_contents":"\/\/\n\/\/ This file is part of the Marble Desktop Globe.\n\/\/\n\/\/ This program is free software licensed under the GNU LGPL. You can\n\/\/ find a copy of this license in LICENSE.txt in the top directory of\n\/\/ the source code.\n\/\/\n\/\/ Copyright 2006-2008 Torsten Rahn \"\n\/\/\n\n\n#ifndef PLUGINMANAGER_H\n#define PLUGINMANAGER_H\n\n#include \n#include \"marble_export.h\"\nclass MarbleLayerInterface;\n\n\/**\n * @short The class that handles Marble's plugins.\n *\n *\/\n\nclass MARBLE_EXPORT PluginManager : public QObject\n{\n Q_OBJECT\n\n public:\n explicit PluginManager(QObject *parent = 0);\n ~PluginManager();\n\n QList layerInterfaces() const;\n\n public Q_SLOTS:\n \/**\n * @brief Browses the plugin directories and installs plugins. \n *\n * This method browses all plugin directories and installs all \n * plugins found in there.\n *\/\n void loadPlugins();\n\n private:\n Q_DISABLE_COPY( PluginManager )\n QList m_layerInterfaces;\n};\n\n\n#endif \/\/ PLUGINMANAGER_H\n","subject":"Fix export (needs for test program)","message":"Fix export (needs for test program)\n\nsvn path=\/trunk\/KDE\/kdeedu\/marble\/; revision=818952\n","lang":"C","license":"lgpl-2.1","repos":"probonopd\/marble,AndreiDuma\/marble,adraghici\/marble,utkuaydin\/marble,oberluz\/marble,probonopd\/marble,David-Gil\/marble-dev,adraghici\/marble,adraghici\/marble,oberluz\/marble,oberluz\/marble,tzapzoor\/marble,utkuaydin\/marble,oberluz\/marble,AndreiDuma\/marble,tucnak\/marble,tzapzoor\/marble,tucnak\/marble,AndreiDuma\/marble,Earthwings\/marble,utkuaydin\/marble,AndreiDuma\/marble,rku\/marble,adraghici\/marble,AndreiDuma\/marble,tzapzoor\/marble,quannt24\/marble,David-Gil\/marble-dev,Earthwings\/marble,quannt24\/marble,Earthwings\/marble,rku\/marble,tzapzoor\/marble,David-Gil\/marble-dev,utkuaydin\/marble,rku\/marble,tzapzoor\/marble,oberluz\/marble,tucnak\/marble,rku\/marble,quannt24\/marble,tucnak\/marble,tucnak\/marble,AndreiDuma\/marble,tzapzoor\/marble,rku\/marble,David-Gil\/marble-dev,probonopd\/marble,tzapzoor\/marble,utkuaydin\/marble,Earthwings\/marble,quannt24\/marble,Earthwings\/marble,probonopd\/marble,David-Gil\/marble-dev,David-Gil\/marble-dev,probonopd\/marble,rku\/marble,probonopd\/marble,quannt24\/marble,tzapzoor\/marble,oberluz\/marble,adraghici\/marble,tucnak\/marble,quannt24\/marble,adraghici\/marble,tucnak\/marble,probonopd\/marble,quannt24\/marble,utkuaydin\/marble,Earthwings\/marble"} {"commit":"87995a922d19228ee181937691acb2ba8f16ee0d","old_file":"src\/random.h","new_file":"src\/random.h","old_contents":"#ifndef DW_RANDOM_H\n#define DW_RANDOM_H\n\nint rand_rangei(int min, int max);\nfloat rand_rangei(float min, float max);\n\n#define rand_bool() rand_rangei(0, 2)\n\n#endif\n","new_contents":"#ifndef DW_RANDOM_H\n#define DW_RANDOM_H\n\nint rand_rangei(int min, int max);\nfloat rand_rangef(float min, float max);\n\n#define rand_bool() rand_rangei(0, 2)\n\n#endif\n","subject":"Fix naming of rand_rangef name","message":"Fix naming of rand_rangef name\n","lang":"C","license":"mit","repos":"jacquesrott\/merriment,jacquesrott\/merriment,jacquesrott\/merriment"} {"commit":"06d72c2c64ecad9b36a0bf26139320e569bd05e3","old_file":"crypto\/ec\/curve448\/arch_32\/arch_intrinsics.h","new_file":"crypto\/ec\/curve448\/arch_32\/arch_intrinsics.h","old_contents":"\/*\n * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright 2016 Cryptography Research, Inc.\n *\n * Licensed under the OpenSSL license (the \"License\"). You may not use\n * this file except in compliance with the License. You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https:\/\/www.openssl.org\/source\/license.html\n *\n * Originally written by Mike Hamburg\n *\/\n\n#ifndef __ARCH_ARCH_32_ARCH_INTRINSICS_H__\n# define __ARCH_ARCH_32_ARCH_INTRINSICS_H__\n\n# define ARCH_WORD_BITS 32\n\nstatic ossl_inline uint32_t word_is_zero(uint32_t a)\n{\n \/* let's hope the compiler isn't clever enough to optimize this. *\/\n return (((uint64_t)a) - 1) >> 32;\n}\n\nstatic ossl_inline uint64_t widemul(uint32_t a, uint32_t b)\n{\n return ((uint64_t)a) * b;\n}\n\n#endif \/* __ARCH_ARM_32_ARCH_INTRINSICS_H__ *\/\n","new_contents":"\/*\n * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright 2016 Cryptography Research, Inc.\n *\n * Licensed under the OpenSSL license (the \"License\"). You may not use\n * this file except in compliance with the License. You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https:\/\/www.openssl.org\/source\/license.html\n *\n * Originally written by Mike Hamburg\n *\/\n\n#ifndef __ARCH_ARCH_32_ARCH_INTRINSICS_H__\n# define __ARCH_ARCH_32_ARCH_INTRINSICS_H__\n\n# define ARCH_WORD_BITS 32\n\nstatic ossl_inline uint32_t word_is_zero(uint32_t a)\n{\n \/* let's hope the compiler isn't clever enough to optimize this. *\/\n return (((uint64_t)a) - 1) >> 32;\n}\n\nstatic ossl_inline uint64_t widemul(uint32_t a, uint32_t b)\n{\n return ((uint64_t)a) * b;\n}\n\n#endif \/* __ARCH_ARCH_32_ARCH_INTRINSICS_H__ *\/\n","subject":"Fix a typo in a comment","message":"Fix a typo in a comment\n\nReviewed-by: Bernd Edlinger \n(Merged from https:\/\/github.com\/openssl\/openssl\/pull\/5105)\n","lang":"C","license":"apache-2.0","repos":"openssl\/openssl,openssl\/openssl,openssl\/openssl,openssl\/openssl,openssl\/openssl,openssl\/openssl"} {"commit":"cd5f12e417ee99d37f44187b2c4b122afad24578","old_file":"testDynload.c","new_file":"testDynload.c","old_contents":"#ifdef _WIN32\n#define DL_EXPORT __declspec( dllexport )\n#else\n#define DL_EXPORT\n#endif\n\nDL_EXPORT int TestDynamicLoaderData;\n\nDL_EXPORT void TestDynamicLoaderFunction()\n{\n}\n","new_contents":"#ifdef _WIN32\n#define DL_EXPORT __declspec( dllexport )\n#else\n#define DL_EXPORT\n#endif\n\nDL_EXPORT int TestDynamicLoaderData = 0;\n\nDL_EXPORT void TestDynamicLoaderFunction()\n{\n}\n","subject":"Fix compilation on MacOSX (common symbols not allowed with MH_DYLIB output format)","message":"COMP: Fix compilation on MacOSX (common symbols not allowed with MH_DYLIB output format)\n","lang":"C","license":"bsd-3-clause","repos":"chuckatkins\/KWSys,chuckatkins\/KWSys,chuckatkins\/KWSys,chuckatkins\/KWSys"} {"commit":"21aa13130130650738df8e748a01b8706fba5e79","old_file":"sys\/sys\/_cpuset.h","new_file":"sys\/sys\/_cpuset.h","old_contents":"","new_contents":"\/*-\n * Copyright (c) 2008,\tJeffrey Roberson \n * All rights reserved.\n *\n * Copyright (c) 2008 Nokia Corporation\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice unmodified, this list of conditions, and the following\n * disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and\/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * $FreeBSD$\n *\/\n\n#ifndef _SYS__CPUSET_H_\n#define\t_SYS__CPUSET_H_\n\n#include \n\n#ifdef _KERNEL\n#define\tCPU_SETSIZE\tMAXCPU\n#endif\n\n#define\tCPU_MAXSIZE\t(4 * MAXCPU)\n\n#ifndef\tCPU_SETSIZE\n#define\tCPU_SETSIZE\tCPU_MAXSIZE\n#endif\n\n#define\t_NCPUBITS\t(sizeof(long) * NBBY)\t\/* bits per mask *\/\n#define\t_NCPUWORDS\thowmany(CPU_SETSIZE, _NCPUBITS)\n\ntypedef\tstruct _cpuset {\n\tlong\t__bits[howmany(CPU_SETSIZE, _NCPUBITS)];\n} cpuset_t;\n\n#endif \/* !_SYS__CPUSET_H_ *\/\n","subject":"Remove the previously added comment. Probabilly me is the only one who didn't know userland and kerneland sizes were mismatching.","message":"Remove the previously added comment.\nProbabilly me is the only one who didn't know userland and kerneland sizes\nwere mismatching.\n","lang":"C","license":"bsd-3-clause","repos":"jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase,jrobhoward\/SCADAbase"} {"commit":"553b2e10575dca72a1a273ca50a885a0e0191603","old_file":"elixir\/main.c","new_file":"elixir\/main.c","old_contents":"\/\/ Regular C libs\n#include \n\n\/\/ Elixir libs -- clang doesn't know where the hell this is\n#include \"erl_nif.h\"\n\n\/\/ Needs to figure out what ERL_NIF_TERM means\nstatic ERL_NIF_TERM hello(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) {\n\n\t\/\/ We need some variables\n\tchar *s;\n\tint i, num;\n\n\t\/\/ Grab the arguments from Elixir\n\tenif_get_string(env, argv[0], s, 1024, ERL_NIF_LATIN1);\n\tenif_get_int(env, argv[1], &num);\n\n\tfor (i = 0; i < num; i++) {\n\t\tprintf(\"Hello, %s!\\n\", s);\n\t}\n\n\t\/\/ Fancy version of return 0\n\treturn enif_make_int(env, 0);\n}\n\nstatic ErlNifFunc funcs[] = {\n\t{\"hello\", 2, hello}\n};\n\nERL_NIF_INIT(Elixir.Hello, funcs, NULL, NULL, NULL, NULL)\n","new_contents":"\/\/ Regular C libs\n#include \n\n\/\/ Elixir libs\n#include \"erl_nif.h\"\n\n#define MAXLEN 1024\n\n\/\/ Needs to figure out what ERL_NIF_TERM means\nstatic ERL_NIF_TERM hello(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) {\n\n\t\/\/ We need some variables\n\tchar buf[MAXLEN];\n\tint i, num;\n\n\t\/\/ Grab the arguments from Elixir\n\tenif_get_string(env, argv[0], buf, MAXLEN, ERL_NIF_LATIN1);\n\tenif_get_int(env, argv[1], &num);\n\n\tfor (i = 0; i < num; i++) {\n\t\tprintf(\"Hello, %s!\\n\", buf);\n\t}\n\n\t\/\/ Fancy version of return 0\n\treturn enif_make_int(env, 0);\n}\n\n\/\/ Map Elixir functions to C functions\nstatic ErlNifFunc funcs[] = {\n\n\t\/\/ Function name in Elixir, number of arguments, C function\n\t{\"hello\", 2, hello}\n};\n\nERL_NIF_INIT(Elixir.Hello, funcs, NULL, NULL, NULL, NULL)\n","subject":"Use buf as var name","message":"Use buf as var name\n","lang":"C","license":"unlicense","repos":"bentranter\/binding,bentranter\/binding,bentranter\/binding"} {"commit":"5343a3a7ec39a5eeb212a36287647c4a1e6749fd","old_file":"tests\/regression\/34-congruence\/03-branching.c","new_file":"tests\/regression\/34-congruence\/03-branching.c","old_contents":"","new_contents":"\/\/ PARAM: --sets solver td3 --enable ana.int.congruence --disable ana.int.def_exc\nint main(){\n \/\/ A refinement of a congruence class should only take place for the == and != operator.\n int i;\n if (i==0){\n assert(i==0);\n } else {\n assert(i!=0); \/\/UNKNOWN!\n }\n\n int j;\n if (j != 0){\n assert (j != 0); \/\/UNKNOWN!\n } else {\n assert (j == 0);\n }\n\n int k;\n if (k > 0) {\n assert (k == 0); \/\/UNKNOWN!\n } else {\n assert (k != 0); \/\/UNKNOWN!\n }\n\n return 0;\n}","subject":"Add branching test for congruence domain","message":"Add branching test for congruence domain\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"ee5707df2fdb0c86d7d9aade08056b59cf4cba8e","old_file":"verification\/OpenAD\/code_oad\/OPENAD_OPTIONS.h","new_file":"verification\/OpenAD\/code_oad\/OPENAD_OPTIONS.h","old_contents":"","new_contents":"C $Header$\nC $Name$\n\nCBOP\nC !ROUTINE: OPENAD_OPTIONS.h\nC !INTERFACE:\nC #include \"OPENAD_OPTIONS.h\"\n\nC !DESCRIPTION:\nC *==================================================================*\nC | CPP options file for OpenAD (openad) package:\nC | Control which optional features to compile in this package code.\nC *==================================================================*\nCEOP\n\n#ifndef OPENAD_OPTIONS_H\n#define OPENAD_OPTIONS_H\n#include \"PACKAGES_CONFIG.h\"\n#include \"CPP_OPTIONS.h\"\n\n#ifdef ALLOW_OPENAD\n\n#define ALLOW_OPENAD_ACTIVE_READ_XYZ\n#undef ALLOW_OPENAD_ACTIVE_READ_XY\n#undef ALLOW_OPENAD_ACTIVE_WRITE\n\n#endif \/* ALLOW_OPENAD *\/\n#endif \/* OPENAD_OPTIONS_H *\/\n","subject":"Change to 3D active read","message":"Change to 3D active read\n","lang":"C","license":"mit","repos":"altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h,altMITgcm\/MITgcm66h"} {"commit":"37a80793063bee42a088534eb87e2af7e4d5e2e7","old_file":"tests\/sv-comp\/multicall_context_true-unreach-call.c","new_file":"tests\/sv-comp\/multicall_context_true-unreach-call.c","old_contents":"","new_contents":"extern void __VERIFIER_error() __attribute__ ((__noreturn__));\nextern int __VERIFIER_nondet_int();\nvoid __VERIFIER_assert(int cond) {\n if (!(cond)) {\n ERROR: __VERIFIER_error();\n }\n return;\n}\n\nvoid foo(int x)\n{\n __VERIFIER_assert(x - 1 < x);\n}\n\nint main()\n{\n foo(1);\n foo(2);\n return 0;\n}","subject":"Add basic example with multiple contexts","message":"Add basic example with multiple contexts\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"69406f7330d9fd0b36a2aefd479636cc8738127c","old_file":"gtk\/spice-util-priv.h","new_file":"gtk\/spice-util-priv.h","old_contents":"\/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- *\/\n\/*\n Copyright (C) 2010 Red Hat, Inc.\n\n This library is free software; you can redistribute it and\/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, see .\n*\/\n#ifndef SPICE_UTIL_PRIV_H\n#define SPICE_UTIL_PRIV_H\n\n#include \n\nG_BEGIN_DECLS\n\n#define UUID_FMT \"%02hhx%02hhx%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx-%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx\"\n\ngboolean spice_strv_contains(const GStrv strv, const gchar *str);\ngchar* spice_uuid_to_string(const guint8 uuid[16]);\n\nG_END_DECLS\n\n#endif \/* SPICE_UTIL_PRIV_H *\/\n","new_contents":"\/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- *\/\n\/*\n Copyright (C) 2010 Red Hat, Inc.\n\n This library is free software; you can redistribute it and\/or\n modify it under the terms of the GNU Lesser General Public\n License as published by the Free Software Foundation; either\n version 2.1 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this library; if not, see .\n*\/\n#ifndef SPICE_UTIL_PRIV_H\n#define SPICE_UTIL_PRIV_H\n\n#include \n\nG_BEGIN_DECLS\n\n#define UUID_FMT \"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\"\n\ngboolean spice_strv_contains(const GStrv strv, const gchar *str);\ngchar* spice_uuid_to_string(const guint8 uuid[16]);\n\nG_END_DECLS\n\n#endif \/* SPICE_UTIL_PRIV_H *\/\n","subject":"Replace %02hhx with %02x in UUID format","message":"Replace %02hhx with %02x in UUID format\n\nUse of 'hh' in the UUID format string is not required. Furthermore\nit causes errors on Mingw32, where the 'hh' modifier is not supported\n","lang":"C","license":"lgpl-2.1","repos":"elmarco\/spice-gtk,Fantu\/spice-gtk,freedesktop-unofficial-mirror\/spice__spice-gtk,freedesktop-unofficial-mirror\/spice__spice-gtk,Fantu\/spice-gtk,flexVDI\/spice-gtk,SPICE\/spice-gtk,freedesktop-unofficial-mirror\/spice__spice-gtk,dezelin\/spice-gtk,mathslinux\/spice-gtk,guodong\/spice-gtk,SPICE\/spice-gtk,fgouget\/spice-gtk,elmarco\/spice-gtk,freedesktop-unofficial-mirror\/spice__spice-gtk,guodong\/spice-gtk,dezelin\/spice-gtk,mathslinux\/spice-gtk,fgouget\/spice-gtk,guodong\/spice-gtk,elmarco\/spice-gtk,dezelin\/spice-gtk,fgouget\/spice-gtk,mathslinux\/spice-gtk,Fantu\/spice-gtk,SPICE\/spice-gtk,SPICE\/spice-gtk,elmarco\/spice-gtk,dezelin\/spice-gtk,Fantu\/spice-gtk,flexVDI\/spice-gtk,mathslinux\/spice-gtk,guodong\/spice-gtk"} {"commit":"e3485b84607578953b545b5033620bf1390c9132","old_file":"test2\/__attribute__\/cleanup\/auto_out_param.c","new_file":"test2\/__attribute__\/cleanup\/auto_out_param.c","old_contents":"","new_contents":"\/\/ RUN: %ocheck 0 %s\n\nstruct store_out\n{\n\tint *local;\n\tint *ret;\n};\n\nvoid store_out(const struct store_out *const so)\n{\n\t*so->ret = *so->local;\n}\n\nvoid f(int *p)\n{\n\tint i = *p;\n\tstruct store_out so __attribute((cleanup(store_out))) = {\n\t\t.local = &i,\n\t\t.ret = p\n\t};\n\n\ti = 5;\n}\n\nmain()\n{\n\tint i = 3;\n\n\tf(&i);\n\n\tif(i != 5)\n\t\tabort();\n\n\treturn 0;\n}\n","subject":"Test cleanup-attribute with const struct parameter","message":"Test cleanup-attribute with const struct parameter\n","lang":"C","license":"mit","repos":"bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler,bobrippling\/ucc-c-compiler"} {"commit":"8fe1cb54b5382dedb5e1c86f483e6b3aea3bb958","old_file":"src\/std\/c_lib.h","new_file":"src\/std\/c_lib.h","old_contents":"\/*\n * cynapses libc functions\n *\n * Copyright (c) 2008 by Andreas Schneider \n *\n * This program is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software Foundation,\n * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n *\n * vim: ts=2 sw=2 et cindent\n *\/\n\n#include \"c_macro.h\"\n#include \"c_alloc.h\"\n#include \"c_dir.h\"\n#include \"c_file.h\"\n#include \"c_path.h\"\n#include \"c_rbtree.h\"\n#include \"c_string.h\"\n#include \"c_time.h\"\n","new_contents":"\/*\n * cynapses libc functions\n *\n * Copyright (c) 2008 by Andreas Schneider \n *\n * This program is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU General Public License\n * as published by the Free Software Foundation; either version 2\n * of the License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software Foundation,\n * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n *\n * vim: ts=2 sw=2 et cindent\n *\/\n\n#include \"c_macro.h\"\n#include \"c_alloc.h\"\n#include \"c_dir.h\"\n#include \"c_file.h\"\n#include \"c_list.h\"\n#include \"c_path.h\"\n#include \"c_rbtree.h\"\n#include \"c_string.h\"\n#include \"c_time.h\"\n","subject":"Add c_list to standard lib header file.","message":"Add c_list to standard lib header file.\n","lang":"C","license":"lgpl-2.1","repos":"meeh420\/csync,gco\/csync,meeh420\/csync,gco\/csync,gco\/csync,meeh420\/csync,gco\/csync"} {"commit":"7f93f8bab3f1e8e1b4360d63a812dfbb9ec80bc2","old_file":"examples\/post_sample\/example_post_sample.c","new_file":"examples\/post_sample\/example_post_sample.c","old_contents":"\/*\n * Copyright 2014 SimpleThings, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n#include \n\nint main(void) \n{\n canopy_post_sample(\n CANOPY_CLOUD_SERVER, \"dev02.canopy.link\",\n CANOPY_DEVICE_UUID, \"9dfe2a00-efe2-45f9-a84c-8afc69caf4e7\",\n CANOPY_PROPERTY_NAME, \"cpu\",\n CANOPY_VALUE_FLOAT32, 0.22f\n );\n return 0;\n}\n","new_contents":"\/*\n * Copyright 2014 SimpleThings, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n#include \n\nint main(void) \n{\n \/\/ Your code here for determining sensor value...\n float temperature = 24.0f;\n\n \/\/ Send sample to the cloud:\n canopy_post_sample(\n CANOPY_CLOUD_SERVER, \"dev02.canopy.link\",\n CANOPY_DEVICE_UUID, \"9dfe2a00-efe2-45f9-a84c-8afc69caf4e7\",\n CANOPY_PROPERTY_NAME, \"temperature\",\n CANOPY_VALUE_FLOAT32, temperature\n );\n return 0;\n}\n","subject":"Make sample app a little more clear","message":"Make sample app a little more clear\n","lang":"C","license":"apache-2.0","repos":"canopy-project\/canopy-embedded,canopy-project\/canopy-embedded,canopy-project\/canopy-embedded"} {"commit":"11acdd53ab086a9622074f79ef1535c1448cbb91","old_file":"Shared\/Encounter.h","new_file":"Shared\/Encounter.h","old_contents":"\/\/\n\/\/ Encounter.h\n\/\/ ProeliaKit\n\/\/\n\/\/ Created by Paul Schifferer on 3\/5\/15.\n\/\/ Copyright (c) 2015 Pilgrimage Software. All rights reserved.\n\/\/\n\n@import Foundation;\n#import \"EncounterConstants.h\"\n#import \"GameSystem.h\"\n#import \"AbstractEncounter.h\"\n\n\n@class EncounterMap;\n@class EncounterParticipant;\n@class EncounterRegion;\n@class EncounterTimelineEntry;\n\n\/**\n * An instance of this class represents an encounter created from a template that is being run.\n *\/\n@interface Encounter : AbstractEncounter\n\n\/\/ -- Attributes --\n\n\/**\n *\n *\/\n@property (nonatomic, assign) NSInteger currentRound;\n\/**\n *\n *\/\n@property (nonatomic, assign) NSTimeInterval endDate;\n\/**\n *\n *\/\n@property (nonatomic, assign) NSInteger numberOfRounds;\n\/**\n *\n *\/\n@property (nonatomic, assign) NSInteger numberOfTurns;\n\/**\n *\n *\/\n@property (nonatomic, copy) NSString *encounterTemplateName;\n\/**\n *\n *\/\n@property (nonatomic, assign) NSTimeInterval startDate;\n\/**\n *\n *\/\n@property (nonatomic, assign) EncounterState state;\n\/**\n *\n *\/\n@property (nonatomic, copy) NSData *turnQueue;\n\n\/\/ -- Relationships --\n\n@end\n","new_contents":"\/\/\n\/\/ Encounter.h\n\/\/ ProeliaKit\n\/\/\n\/\/ Created by Paul Schifferer on 3\/5\/15.\n\/\/ Copyright (c) 2015 Pilgrimage Software. All rights reserved.\n\/\/\n\n@import Foundation;\n#import \"EncounterConstants.h\"\n#import \"GameSystem.h\"\n#import \"AbstractEncounter.h\"\n\n\n@class EncounterMap;\n@class EncounterParticipant;\n@class EncounterRegion;\n@class EncounterTimelineEntry;\n\n\/**\n * An instance of this class represents an encounter created from a template that is being run.\n *\/\n@interface Encounter : AbstractEncounter\n\n\/\/ -- Attributes --\n\n\/**\n *\n *\/\n@property (nonatomic, assign) NSInteger currentRound;\n\/**\n *\n *\/\n@property (nonatomic, assign) NSTimeInterval endDate;\n\/**\n *\n *\/\n@property (nonatomic, assign) NSInteger numberOfRounds;\n\/**\n *\n *\/\n@property (nonatomic, assign) NSInteger numberOfTurns;\n\/**\n *\n *\/\n@property (nonatomic, copy) NSString *encounterTemplateName;\n\/**\n *\n *\/\n@property (nonatomic, assign) NSTimeInterval startDate;\n\/**\n *\n *\/\n@property (nonatomic, assign) EncounterState state;\n\/**\n *\n *\/\n@property (nonatomic, copy) NSData *turnQueue;\n\n\/\/ -- Relationships --\n\n\/**\n *\/\n@property (nonatomic, copy) NSString* templateId;\n\n@end\n","subject":"Store ID for source template.","message":"Store ID for source template.\n","lang":"C","license":"mit","repos":"pilgrimagesoftware\/ProeliaKit,pilgrimagesoftware\/ProeliaKit"} {"commit":"1bf764c914d503e87c909439f0bd43bb72e93580","old_file":"LinkedList\/insert_node_at_tail.c","new_file":"LinkedList\/insert_node_at_tail.c","old_contents":"","new_contents":"\/*\nInput Format \nYou have to complete the Node* Insert(Node* head, int data) method which takes two arguments - the head of the linked list and the integer to insert. You should NOT read any input from stdin\/console.\n\nOutput Format \nInsert the new node at the tail and just return the head of the updated linked list. Do NOT print anything to stdout\/console.\n\nSample Input\n\nNULL, data = 2 \n2 --> NULL, data = 3\n\nSample Output\n\n2 -->NULL\n2 --> 3 --> NULL\nExplanation \n1. We have an empty list and we insert 2. \n2. We have 2 in the tail, when 3 is inserted 3 becomes the tail.\n*\/\n\n\/*\n Insert Node at the end of a linked list \n head pointer input could be NULL as well for empty list\n Node is defined as \n struct Node\n {\n int data;\n struct Node *next;\n }\n*\/\nNode* Insert(Node *head,int data)\n{\n Node* temp; \n temp =(Node*) malloc(sizeof(Node));\n temp->data = data;\n temp->next = NULL;\n \n Node* head_temp=head;\n \n if(head ==NULL){\n head = temp;\n }\n else {\n while(head_temp->next!=NULL){\n head_temp = head_temp->next;\n }\n head_temp->next = temp;\n }\n return head;\n}\n","subject":"Add insert node at tail fn","message":"Add insert node at tail fn\n","lang":"C","license":"mit","repos":"anaghajoshi\/HackerRank"} {"commit":"5a79a170d931e0ab2462fbbe60f25a0ff8c9f206","old_file":"UIforETW\/Version.h","new_file":"UIforETW\/Version.h","old_contents":"#pragma once\r\n\r\n\/\/ const float in a header file can lead to duplication of the storage\r\n\/\/ but I don't really care in this case. Just don't do it with a header\r\n\/\/ that is included hundreds of times.\r\n\/\/ constexpr might help avoid that, but then it breaks my fragile upgrade-needed\r\n\/\/ detection code, so this should be left as const.\r\nconst float kCurrentVersion = 1.55f;\r\n\r\n\/\/ Put a \"#define VERSION_SUFFIX 'b'\" line here to add a minor version\r\n\/\/ increment that won't trigger the new-version checks, handy for minor\r\n\/\/ releases that I don't want to bother users about.\r\n\/\/#define VERSION_SUFFIX 'b'\r\n","new_contents":"#pragma once\r\n\r\n\/\/ const float in a header file can lead to duplication of the storage\r\n\/\/ but I don't really care in this case. Just don't do it with a header\r\n\/\/ that is included hundreds of times.\r\n\/\/ constexpr might help avoid that, but then it breaks my fragile upgrade-needed\r\n\/\/ detection code, so this should be left as const.\r\nconst float kCurrentVersion = 1.56f;\r\n\r\n\/\/ Put a \"#define VERSION_SUFFIX 'b'\" line here to add a minor version\r\n\/\/ increment that won't trigger the new-version checks, handy for minor\r\n\/\/ releases that I don't want to bother users about.\r\n\/\/#define VERSION_SUFFIX 'b'\r\n","subject":"Update version number to 1.56","message":"Update version number to 1.56\n","lang":"C","license":"apache-2.0","repos":"google\/UIforETW,google\/UIforETW,google\/UIforETW,google\/UIforETW"} {"commit":"f9dd70c4988603f97de3b3b9a3ee7cb578bff699","old_file":"test\/ubsan_minimal\/TestCases\/test-darwin-interface.c","new_file":"test\/ubsan_minimal\/TestCases\/test-darwin-interface.c","old_contents":"","new_contents":"\/\/ Check that the ubsan and ubsan-minimal runtimes have the same symbols,\n\/\/ making exceptions as necessary.\n\/\/\n\/\/ REQUIRES: x86_64-darwin\n\n\/\/ RUN: nm -jgU `%clangxx -fsanitize-minimal-runtime -fsanitize=undefined %s -o %t '-###' 2>&1 | grep \"libclang_rt.ubsan_minimal_osx_dynamic.dylib\" | sed -e 's\/.*\"\\(.*libclang_rt.ubsan_minimal_osx_dynamic.dylib\\)\".*\/\\1\/'` | grep \"^___ubsan_handle\" \\\n\/\/ RUN: | sed 's\/_minimal\/\/g' \\\n\/\/ RUN: > %t.minimal.symlist\n\/\/\n\/\/ RUN: nm -jgU `%clangxx -fno-sanitize-minimal-runtime -fsanitize=undefined %s -o %t '-###' 2>&1 | grep \"libclang_rt.ubsan_osx_dynamic.dylib\" | sed -e 's\/.*\"\\(.*libclang_rt.ubsan_osx_dynamic.dylib\\)\".*\/\\1\/'` | grep \"^___ubsan_handle\" \\\n\/\/ RUN: | grep -vE \"^___ubsan_handle_dynamic_type_cache_miss\" \\\n\/\/ RUN: | grep -vE \"^___ubsan_handle_cfi_bad_type\" \\\n\/\/ RUN: | sed 's\/_v1\/\/g' \\\n\/\/ RUN: > %t.full.symlist\n\/\/\n\/\/ RUN: diff %t.minimal.symlist %t.full.symlist\n","subject":"Test exported symbol set against RTUBsan","message":"[ubsan-minimal] Test exported symbol set against RTUBsan\n\nCheck that the symbol sets exported by the minimal runtime and the full\nruntime match (making exceptions for special cases as needed).\n\nThis test uses some possibly non-standard nm options, and needs to\ninspect the symbols in runtime dylibs. I haven't found a portable way to\ndo this, so it's limited to x86-64\/Darwin for now.\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@313615 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt"} {"commit":"aaaf165b247a1a8ea5cd2936d9fd1eefe5e580f9","old_file":"arch\/arm\/mach-kirkwood\/board-iomega_ix2_200.c","new_file":"arch\/arm\/mach-kirkwood\/board-iomega_ix2_200.c","old_contents":"\/*\n * arch\/arm\/mach-kirkwood\/board-iomega_ix2_200.c\n *\n * Iomega StorCenter ix2-200\n *\n * This file is licensed under the terms of the GNU General Public\n * License version 2. This program is licensed \"as is\" without any\n * warranty of any kind, whether express or implied.\n *\/\n\n#include \n#include \n#include \n#include \n#include \"common.h\"\n\nstatic struct mv643xx_eth_platform_data iomega_ix2_200_ge00_data = {\n\t.phy_addr = MV643XX_ETH_PHY_NONE,\n\t.speed = SPEED_1000,\n\t.duplex = DUPLEX_FULL,\n};\n\nvoid __init iomega_ix2_200_init(void)\n{\n\t\/*\n\t * Basic setup. Needs to be called early.\n\t *\/\n\tkirkwood_ge01_init(&iomega_ix2_200_ge00_data);\n}\n","new_contents":"\/*\n * arch\/arm\/mach-kirkwood\/board-iomega_ix2_200.c\n *\n * Iomega StorCenter ix2-200\n *\n * This file is licensed under the terms of the GNU General Public\n * License version 2. This program is licensed \"as is\" without any\n * warranty of any kind, whether express or implied.\n *\/\n\n#include \n#include \n#include \n#include \n#include \"common.h\"\n\nstatic struct mv643xx_eth_platform_data iomega_ix2_200_ge00_data = {\n\t.phy_addr = MV643XX_ETH_PHY_NONE,\n\t.speed = SPEED_1000,\n\t.duplex = DUPLEX_FULL,\n};\n\nstatic struct mv643xx_eth_platform_data iomega_ix2_200_ge01_data = {\n .phy_addr = MV643XX_ETH_PHY_ADDR(11),\n};\n\nvoid __init iomega_ix2_200_init(void)\n{\n\t\/*\n\t * Basic setup. Needs to be called early.\n\t *\/\n\tkirkwood_ge00_init(&iomega_ix2_200_ge00_data);\n\tkirkwood_ge01_init(&iomega_ix2_200_ge01_data);\n}\n","subject":"Fix GE0\/GE1 init on ix2-200 as GE0 has no PHY","message":"Fix GE0\/GE1 init on ix2-200 as GE0 has no PHY\n\nSigned-off-by: Jason Cooper <68c46a606457643eab92053c1c05574abb26f861@lakedaemon.net>\n","lang":"C","license":"mit","repos":"KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs"} {"commit":"4cff24f6e6f727ddaa072825a508b801b116c8a8","old_file":"deal.II\/doc\/doxygen\/headers\/constraints.h","new_file":"deal.II\/doc\/doxygen\/headers\/constraints.h","old_contents":"","new_contents":"\/\/-------------------------------------------------------------------------\n\/\/ $Id$\n\/\/ Version: $Name$\n\/\/\n\/\/ Copyright (C) 2010 by the deal.II authors\n\/\/\n\/\/ This file is subject to QPL and may not be distributed\n\/\/ without copyright and license information. Please refer\n\/\/ to the file deal.II\/doc\/license.html for the text and\n\/\/ further information on this license.\n\/\/\n\/\/-------------------------------------------------------------------------\n\n\/**\n * @defgroup constraints Constraints on degrees of freedom\n * @ingroup dofs\n *\n * This module deals with constraints on degrees of\n * freedom. Constraints typically come from several sources, for\n * example:\n * - If you have Dirichlet-type boundary conditions, one usually enforces\n * them by requiring that that degrees of freedom on the boundary have\n * particular values, for example $x_12=42$ if the boundary condition\n * requires that the finite element solution at the location of degree\n * of freedom 12 has the value 42.\n *\n * This class implements dealing with linear (possibly inhomogeneous)\n * constraints on degrees of freedom. In particular, it handles constraints of\n * the form $x_{i_1} = \\sum_{j=2}^M a_{i_j} x_{i_j} + b_i$. In the context of\n * adaptive finite elements, such constraints appear most frequently as\n * \"hanging nodes\" and for implementing Dirichlet boundary conditions in\n * strong form. The class is meant to deal with a limited number of\n * constraints relative to the total number of degrees of freedom, for example\n * a few per cent up to maybe 30 per cent; and with a linear combination of\n * $M$ other degrees of freedom where $M$ is also relatively small (no larger\n * than at most around the average number of entries per row of a linear\n * system). It is not<\/em> meant to describe full rank linear systems.\n *\/\n","subject":"Add provisional version, to be finished at home later today.","message":"Add provisional version, to be finished at home later today.\n\n\ngit-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@22003 0785d39b-7218-0410-832d-ea1e28bc413d\n","lang":"C","license":"lgpl-2.1","repos":"YongYang86\/dealii,gpitton\/dealii,Arezou-gh\/dealii,sriharisundar\/dealii,ESeNonFossiIo\/dealii,mac-a\/dealii,natashasharma\/dealii,JaeryunYim\/dealii,sriharisundar\/dealii,lpolster\/dealii,andreamola\/dealii,kalj\/dealii,shakirbsm\/dealii,mtezzele\/dealii,naliboff\/dealii,angelrca\/dealii,flow123d\/dealii,maieneuro\/dealii,gpitton\/dealii,maieneuro\/dealii,lue\/dealii,ESeNonFossiIo\/dealii,johntfoster\/dealii,kalj\/dealii,lpolster\/dealii,danshapero\/dealii,rrgrove6\/dealii,angelrca\/dealii,mac-a\/dealii,JaeryunYim\/dealii,kalj\/dealii,johntfoster\/dealii,shakirbsm\/dealii,pesser\/dealii,lue\/dealii,YongYang86\/dealii,kalj\/dealii,nicolacavallini\/dealii,nicolacavallini\/dealii,jperryhouts\/dealii,JaeryunYim\/dealii,Arezou-gh\/dealii,naliboff\/dealii,sairajat\/dealii,angelrca\/dealii,lue\/dealii,andreamola\/dealii,naliboff\/dealii,flow123d\/dealii,mac-a\/dealii,naliboff\/dealii,ibkim11\/dealii,YongYang86\/dealii,kalj\/dealii,lue\/dealii,flow123d\/dealii,ibkim11\/dealii,natashasharma\/dealii,ibkim11\/dealii,sriharisundar\/dealii,naliboff\/dealii,lpolster\/dealii,lue\/dealii,lpolster\/dealii,sairajat\/dealii,danshapero\/dealii,danshapero\/dealii,sairajat\/dealii,mtezzele\/dealii,msteigemann\/dealii,natashasharma\/dealii,nicolacavallini\/dealii,jperryhouts\/dealii,angelrca\/dealii,naliboff\/dealii,sriharisundar\/dealii,mac-a\/dealii,adamkosik\/dealii,sairajat\/dealii,msteigemann\/dealii,lpolster\/dealii,nicolacavallini\/dealii,sairajat\/dealii,andreamola\/dealii,angelrca\/dealii,pesser\/dealii,JaeryunYim\/dealii,spco\/dealii,danshapero\/dealii,johntfoster\/dealii,lpolster\/dealii,msteigemann\/dealii,pesser\/dealii,gpitton\/dealii,mtezzele\/dealii,maieneuro\/dealii,jperryhouts\/dealii,EGP-CIG-REU\/dealii,adamkosik\/dealii,johntfoster\/dealii,msteigemann\/dealii,rrgrove6\/dealii,EGP-CIG-REU\/dealii,ESeNonFossiIo\/dealii,Arezou-gh\/dealii,msteigemann\/dealii,spco\/dealii,andreamola\/dealii,kalj\/dealii,gpitton\/dealii,adamkosik\/dealii,maieneuro\/dealii,EGP-CIG-REU\/dealii,YongYang86\/dealii,sairajat\/dealii,flow123d\/dealii,johntfoster\/dealii,JaeryunYim\/dealii,angelrca\/dealii,ibkim11\/dealii,gpitton\/dealii,gpitton\/dealii,andreamola\/dealii,JaeryunYim\/dealii,angelrca\/dealii,maieneuro\/dealii,Arezou-gh\/dealii,sriharisundar\/dealii,ibkim11\/dealii,natashasharma\/dealii,EGP-CIG-REU\/dealii,danshapero\/dealii,danshapero\/dealii,maieneuro\/dealii,spco\/dealii,flow123d\/dealii,adamkosik\/dealii,nicolacavallini\/dealii,rrgrove6\/dealii,YongYang86\/dealii,sriharisundar\/dealii,nicolacavallini\/dealii,sairajat\/dealii,JaeryunYim\/dealii,shakirbsm\/dealii,andreamola\/dealii,mac-a\/dealii,lpolster\/dealii,rrgrove6\/dealii,jperryhouts\/dealii,shakirbsm\/dealii,spco\/dealii,jperryhouts\/dealii,spco\/dealii,Arezou-gh\/dealii,lue\/dealii,shakirbsm\/dealii,kalj\/dealii,flow123d\/dealii,natashasharma\/dealii,jperryhouts\/dealii,ESeNonFossiIo\/dealii,mtezzele\/dealii,adamkosik\/dealii,natashasharma\/dealii,rrgrove6\/dealii,pesser\/dealii,johntfoster\/dealii,flow123d\/dealii,pesser\/dealii,mtezzele\/dealii,jperryhouts\/dealii,pesser\/dealii,johntfoster\/dealii,nicolacavallini\/dealii,rrgrove6\/dealii,YongYang86\/dealii,ESeNonFossiIo\/dealii,natashasharma\/dealii,sriharisundar\/dealii,ibkim11\/dealii,Arezou-gh\/dealii,mtezzele\/dealii,adamkosik\/dealii,EGP-CIG-REU\/dealii,maieneuro\/dealii,danshapero\/dealii,gpitton\/dealii,adamkosik\/dealii,EGP-CIG-REU\/dealii,msteigemann\/dealii,pesser\/dealii,ESeNonFossiIo\/dealii,naliboff\/dealii,spco\/dealii,andreamola\/dealii,ESeNonFossiIo\/dealii,mac-a\/dealii,EGP-CIG-REU\/dealii,rrgrove6\/dealii,mtezzele\/dealii,Arezou-gh\/dealii,spco\/dealii,lue\/dealii,shakirbsm\/dealii,msteigemann\/dealii,mac-a\/dealii,ibkim11\/dealii,YongYang86\/dealii,shakirbsm\/dealii"} {"commit":"8ae331ba0b6f64564519e9e5618ec035bb54038f","old_file":"interpreter\/cling\/lib\/MetaProcessor\/Display.h","new_file":"interpreter\/cling\/lib\/MetaProcessor\/Display.h","old_contents":"\/\/--------------------------------------------------------------------*- C++ -*-\n\/\/ CLING - the C++ LLVM-based InterpreterG :)\n\/\/ version: $Id$\n\/\/ author: Timur Pocheptsov \n\/\/------------------------------------------------------------------------------\n\n#ifndef CLING_DISPLAY_H\n#define CLING_DISPLAY_H\n\n#include \n\nnamespace llvm {\n class raw_ostream;\n}\n\nnamespace cling {\n\nvoid DisplayClasses(llvm::raw_ostream &stream,\n const class Interpreter *interpreter, bool verbose);\nvoid DisplayClass(llvm::raw_ostream &stream, \n const Interpreter *interpreter, const char *className, \n bool verbose);\n\nvoid DisplayGlobals(llvm::raw_ostream &stream, const Interpreter *interpreter);\nvoid DisplayGlobal(llvm::raw_ostream &stream, const Interpreter *interpreter, \n const std::string &name);\n\n}\n\n#endif\n","new_contents":"\/\/--------------------------------------------------------------------*- C++ -*-\n\/\/ CLING - the C++ LLVM-based InterpreterG :)\n\/\/ version: $Id$\n\/\/ author: Timur Pocheptsov \n\/\/------------------------------------------------------------------------------\n\n#ifndef CLING_DISPLAY_H\n#define CLING_DISPLAY_H\n\n#include \n\nnamespace llvm {\n class raw_ostream;\n}\n\nnamespace cling {\nclass Interpreter;\n\nvoid DisplayClasses(llvm::raw_ostream &stream,\n const Interpreter *interpreter, bool verbose);\nvoid DisplayClass(llvm::raw_ostream &stream, \n const Interpreter *interpreter, const char *className, \n bool verbose);\n\nvoid DisplayGlobals(llvm::raw_ostream &stream, const Interpreter *interpreter);\nvoid DisplayGlobal(llvm::raw_ostream &stream, const Interpreter *interpreter, \n const std::string &name);\n\n}\n\n#endif\n","subject":"Fix fwd decl for windows.","message":"Fix fwd decl for windows.\n\n\ngit-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@47814 27541ba8-7e3a-0410-8455-c3a389f83636\n","lang":"C","license":"lgpl-2.1","repos":"bbannier\/ROOT,bbannier\/ROOT,bbannier\/ROOT,bbannier\/ROOT,bbannier\/ROOT,bbannier\/ROOT,bbannier\/ROOT"} {"commit":"2dbf07d095e6ffbeef50942a9c9f3241f71d5fb8","old_file":"lib\/StaticAnalyzer\/Checkers\/ClangSACheckers.h","new_file":"lib\/StaticAnalyzer\/Checkers\/ClangSACheckers.h","old_contents":"\/\/===--- ClangSACheckers.h - Registration functions for Checkers *- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ Declares the registation functions for the checkers defined in\n\/\/ libclangStaticAnalyzerCheckers.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_CLANG_SA_LIB_CHECKERS_CLANGSACHECKERS_H\n#define LLVM_CLANG_SA_LIB_CHECKERS_CLANGSACHECKERS_H\n\nnamespace clang {\n\nnamespace ento {\nclass ExprEngine;\n\n#define GET_CHECKERS\n#define CHECKER(FULLNAME,CLASS,CXXFILE,HELPTEXT,HIDDEN) \\\n void register##CLASS(ExprEngine &Eng);\n#include \"Checkers.inc\"\n#undef CHECKER\n#undef GET_CHECKERS\n\n} \/\/ end ento namespace\n\n} \/\/ end clang namespace\n\n#endif\n","new_contents":"\/\/===--- ClangSACheckers.h - Registration functions for Checkers *- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ Declares the registation functions for the checkers defined in\n\/\/ libclangStaticAnalyzerCheckers.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_CLANG_SA_LIB_CHECKERS_CLANGSACHECKERS_H\n#define LLVM_CLANG_SA_LIB_CHECKERS_CLANGSACHECKERS_H\n\nnamespace clang {\n\nnamespace ento {\nclass ExprEngine;\n\n#define GET_CHECKERS\n#define CHECKER(FULLNAME,CLASS,CXXFILE,HELPTEXT,HIDDEN) \\\n void register##CLASS(ExprEngine &Eng);\n#include \"..\/Checkers\/Checkers.inc\"\n#undef CHECKER\n#undef GET_CHECKERS\n\n} \/\/ end ento namespace\n\n} \/\/ end clang namespace\n\n#endif\n","subject":"Revert r125642. This broke the build? It should be a no-op.","message":"Revert r125642. This broke the build? It should be a no-op.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@125645 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"ee1ba3e0b094ce80965eb2f1dd599fca6ff6736c","old_file":"src\/Blocks\/BlockTNT.h","new_file":"src\/Blocks\/BlockTNT.h","old_contents":"\n#pragma once\n\n#include \"BlockHandler.h\"\n\n\n\n\n\nclass cBlockTNTHandler :\n\tpublic cBlockHandler\n{\npublic:\n\tcBlockTNTHandler(BLOCKTYPE a_BlockType)\n\t\t: cBlockHandler(a_BlockType)\n\t{\n\t}\n\n\tvirtual const char * GetStepSound(void) override\n\t{\n\t\treturn \"step.wood\";\n\t}\n\n\tvirtual void OnCancelRightClick(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) override\n\t{\n\t\ta_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, a_Player);\n\t}\n};\n\n\n\n\n","new_contents":"\n#pragma once\n\n#include \"BlockHandler.h\"\n\n\n\n\n\nclass cBlockTNTHandler :\n\tpublic cBlockHandler\n{\npublic:\n\tcBlockTNTHandler(BLOCKTYPE a_BlockType)\n\t\t: cBlockHandler(a_BlockType)\n\t{\n\t}\n\n\tvirtual const char * GetStepSound(void) override\n\t{\n\t\treturn \"step.grass\";\n\t}\n\n\tvirtual void OnCancelRightClick(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) override\n\t{\n\t\ta_Player->GetWorld()->SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, a_Player);\n\t}\n};\n\n\n\n\n","subject":"Set tnt step sound to step.grass","message":"Set tnt step sound to step.grass","lang":"C","license":"apache-2.0","repos":"ionux\/MCServer,Fighter19\/cuberite,birkett\/MCServer,birkett\/MCServer,Frownigami1\/cuberite,guijun\/MCServer,Howaner\/MCServer,mmdk95\/cuberite,MuhammadWang\/MCServer,nichwall\/cuberite,MuhammadWang\/MCServer,jammet\/MCServer,Frownigami1\/cuberite,mmdk95\/cuberite,zackp30\/cuberite,jammet\/MCServer,tonibm19\/cuberite,marvinkopf\/cuberite,nevercast\/cuberite,mc-server\/MCServer,tonibm19\/cuberite,Fighter19\/cuberite,QUSpilPrgm\/cuberite,Howaner\/MCServer,mjssw\/cuberite,kevinr\/cuberite,Altenius\/cuberite,linnemannr\/MCServer,thetaeo\/cuberite,birkett\/MCServer,zackp30\/cuberite,mc-server\/MCServer,MuhammadWang\/MCServer,marvinkopf\/cuberite,Haxi52\/cuberite,johnsoch\/cuberite,MuhammadWang\/MCServer,Schwertspize\/cuberite,Tri125\/MCServer,SamOatesPlugins\/cuberite,birkett\/cuberite,thetaeo\/cuberite,nounoursheureux\/MCServer,birkett\/cuberite,Tri125\/MCServer,Fighter19\/cuberite,mjssw\/cuberite,Schwertspize\/cuberite,guijun\/MCServer,HelenaKitty\/EbooMC,QUSpilPrgm\/cuberite,linnemannr\/MCServer,electromatter\/cuberite,jammet\/MCServer,SamOatesPlugins\/cuberite,HelenaKitty\/EbooMC,nicodinh\/cuberite,nounoursheureux\/MCServer,electromatter\/cuberite,nicodinh\/cuberite,marvinkopf\/cuberite,birkett\/cuberite,nicodinh\/cuberite,mjssw\/cuberite,thetaeo\/cuberite,nounoursheureux\/MCServer,nichwall\/cuberite,guijun\/MCServer,bendl\/cuberite,electromatter\/cuberite,johnsoch\/cuberite,mjssw\/cuberite,zackp30\/cuberite,Howaner\/MCServer,Haxi52\/cuberite,bendl\/cuberite,Frownigami1\/cuberite,nevercast\/cuberite,Schwertspize\/cuberite,mmdk95\/cuberite,Altenius\/cuberite,Tri125\/MCServer,nichwall\/cuberite,Schwertspize\/cuberite,zackp30\/cuberite,linnemannr\/MCServer,Frownigami1\/cuberite,birkett\/MCServer,birkett\/MCServer,Tri125\/MCServer,electromatter\/cuberite,Haxi52\/cuberite,kevinr\/cuberite,Altenius\/cuberite,zackp30\/cuberite,mc-server\/MCServer,linnemannr\/MCServer,bendl\/cuberite,birkett\/MCServer,HelenaKitty\/EbooMC,nevercast\/cuberite,johnsoch\/cuberite,marvinkopf\/cuberite,ionux\/MCServer,QUSpilPrgm\/cuberite,mmdk95\/cuberite,Fighter19\/cuberite,nounoursheureux\/MCServer,Tri125\/MCServer,Fighter19\/cuberite,MuhammadWang\/MCServer,ionux\/MCServer,kevinr\/cuberite,guijun\/MCServer,Howaner\/MCServer,mc-server\/MCServer,linnemannr\/MCServer,tonibm19\/cuberite,Haxi52\/cuberite,nevercast\/cuberite,Haxi52\/cuberite,zackp30\/cuberite,SamOatesPlugins\/cuberite,nichwall\/cuberite,nevercast\/cuberite,guijun\/MCServer,Schwertspize\/cuberite,johnsoch\/cuberite,QUSpilPrgm\/cuberite,QUSpilPrgm\/cuberite,SamOatesPlugins\/cuberite,nounoursheureux\/MCServer,Altenius\/cuberite,kevinr\/cuberite,bendl\/cuberite,nichwall\/cuberite,tonibm19\/cuberite,mjssw\/cuberite,Tri125\/MCServer,nicodinh\/cuberite,Haxi52\/cuberite,ionux\/MCServer,Altenius\/cuberite,kevinr\/cuberite,ionux\/MCServer,HelenaKitty\/EbooMC,thetaeo\/cuberite,birkett\/cuberite,tonibm19\/cuberite,mc-server\/MCServer,kevinr\/cuberite,jammet\/MCServer,johnsoch\/cuberite,birkett\/cuberite,mjssw\/cuberite,nicodinh\/cuberite,electromatter\/cuberite,marvinkopf\/cuberite,Fighter19\/cuberite,SamOatesPlugins\/cuberite,thetaeo\/cuberite,HelenaKitty\/EbooMC,mmdk95\/cuberite,Frownigami1\/cuberite,linnemannr\/MCServer,nicodinh\/cuberite,nevercast\/cuberite,Howaner\/MCServer,marvinkopf\/cuberite,mc-server\/MCServer,tonibm19\/cuberite,ionux\/MCServer,jammet\/MCServer,birkett\/cuberite,mmdk95\/cuberite,bendl\/cuberite,nounoursheureux\/MCServer,guijun\/MCServer,Howaner\/MCServer,nichwall\/cuberite,electromatter\/cuberite,QUSpilPrgm\/cuberite,thetaeo\/cuberite,jammet\/MCServer"} {"commit":"4ee56830312ce07823a18cb8d0da396f94121c23","old_file":"Modules\/ThirdParty\/OssimPlugins\/src\/ossim\/ossimOperatorUtilities.h","new_file":"Modules\/ThirdParty\/OssimPlugins\/src\/ossim\/ossimOperatorUtilities.h","old_contents":"","new_contents":"\/\/----------------------------------------------------------------------------\n\/\/\n\/\/ \"Copyright Centre National d'Etudes Spatiales\"\n\/\/\n\/\/ License: LGPL-2\n\/\/\n\/\/ See LICENSE.txt file in the top level directory for more details.\n\/\/\n\/\/----------------------------------------------------------------------------\n\/\/ $Id$\n\n#ifndef ossimOperatorUtilities_h\n#define ossimOperatorUtilities_h\n\nnamespace ossimplugins {\n \/\/ Uses Barton-Nackman trick to help implement operator on classes\n \/\/ Strongly inspired by boost.operators interface\n\n \/\/ See ossimTimeUtilities.h and ossimTimeUtilitiesTest.cpp for example of\n \/\/ use\n\n#define DEFINE_OPERATORS(name, compound, op) \\\n template struct name ## 1 \\\n { \\\n friend T operator op(T lhs, T const& rhs) { \\\n lhs compound rhs; \\\n return lhs; \\\n } \\\n }; \\\n template struct name ## 2 \\\n { \\\n friend T operator op(T lhs, U const& rhs) { \\\n lhs compound rhs; \\\n return lhs; \\\n } \\\n friend T operator op(U const& lhs, T rhs) { \\\n rhs compound lhs; \\\n return rhs; \\\n } \\\n }; \\\n template struct name : name ## 2 {}; \\\n template struct name : name ## 1 {};\n\n template struct substractable_asym\n {\n friend U operator-(V const& lhs, V const& rhs) {\n return V::template diff(lhs, rhs);\n }\n };\n\n DEFINE_OPERATORS(addable, +=, +);\n DEFINE_OPERATORS(substractable, -=, -);\n DEFINE_OPERATORS(multipliable, *=, *);\n#undef DEFINE_OPERATORS\n\n template struct dividable {\n typedef R scalar_type;\n friend T operator\/(T lhs, scalar_type const& rhs) {\n lhs \/= rhs;\n return lhs;\n }\n friend scalar_type operator\/(T const& lhs, T const& rhs) {\n return ratio(lhs, rhs);\n }\n };\n\n template struct streamable {\n friend std::ostream & operator<<(std::ostream & os, const T & v)\n { return v.display(os); }\n };\n\n template struct less_than_comparable {\n friend bool operator>(T const& lhs, T const& rhs) {\n return rhs < lhs;\n }\n friend bool operator>=(T const& lhs, T const& rhs) {\n return !(lhs < rhs);\n }\n friend bool operator<=(T const& lhs, T const& rhs) {\n return !(rhs < lhs);\n }\n };\n\n template struct equality_comparable {\n friend bool operator!=(T const& lhs, T const& rhs) {\n return !(rhs == lhs);\n }\n };\n\n}\/\/ namespace ossimplugins\n\n#endif \/\/ ossimOperatorUtilities_h\n","subject":"Add facilities to define classes with arithmetic semantics","message":"ENH: Add facilities to define classes with arithmetic semantics\n\nStrongly inspired by boost.operators interface\n","lang":"C","license":"apache-2.0","repos":"orfeotoolbox\/OTB,orfeotoolbox\/OTB,orfeotoolbox\/OTB,orfeotoolbox\/OTB,orfeotoolbox\/OTB,orfeotoolbox\/OTB"} {"commit":"9552621829998a40edde36dcb35aa11c4fe56800","old_file":"tests\/regression\/02-base\/55-printf-n.c","new_file":"tests\/regression\/02-base\/55-printf-n.c","old_contents":"","new_contents":"\/\/ SKIP\n#include \n#include \n\nint main() {\n int written = 0;\n printf(\"foo%n\\n\", &written); \/\/ invalidates written by setting written = 3\n assert(written != 0); \/\/ TODO (fail means written == 0, which is unsound)\n\n printf(\"%d\\n\", written);\n return 0;\n}\n","subject":"Add skipped test where printf with %n is unsound","message":"Add skipped test where printf with %n is unsound\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"7b9b5f5f241f7a95110cc6b425c02368b5327270","old_file":"include\/nekit\/transport\/listener_interface.h","new_file":"include\/nekit\/transport\/listener_interface.h","old_contents":"\/\/ MIT License\n\n\/\/ Copyright (c) 2017 Zhuhao Wang\n\n\/\/ Permission is hereby granted, free of charge, to any person obtaining a copy\n\/\/ of this software and associated documentation files (the \"Software\"), to deal\n\/\/ in the Software without restriction, including without limitation the rights\n\/\/ to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\n\/\/ copies of the Software, and to permit persons to whom the Software is\n\/\/ furnished to do so, subject to the following conditions:\n\n\/\/ The above copyright notice and this permission notice shall be included in\n\/\/ all copies or substantial portions of the Software.\n\n\/\/ THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\/\/ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\/\/ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\/\/ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\/\/ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\/\/ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n\/\/ SOFTWARE.\n\n#pragma once\n\n#include \n#include \n#include \n\n#include \"connection_interface.h\"\n\nnamespace nekit {\nnamespace transport {\nclass ListenerInterface {\n public:\n virtual ~ListenerInterface() = default;\n\n using EventHandler = std::function&&, std::error_code)>;\n virtual void Accept(EventHandler&&);\n};\n} \/\/ namespace transport\n} \/\/ namespace nekit\n","new_contents":"\/\/ MIT License\n\n\/\/ Copyright (c) 2017 Zhuhao Wang\n\n\/\/ Permission is hereby granted, free of charge, to any person obtaining a copy\n\/\/ of this software and associated documentation files (the \"Software\"), to deal\n\/\/ in the Software without restriction, including without limitation the rights\n\/\/ to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\n\/\/ copies of the Software, and to permit persons to whom the Software is\n\/\/ furnished to do so, subject to the following conditions:\n\n\/\/ The above copyright notice and this permission notice shall be included in\n\/\/ all copies or substantial portions of the Software.\n\n\/\/ THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\/\/ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\/\/ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\/\/ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\/\/ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\/\/ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n\/\/ SOFTWARE.\n\n#pragma once\n\n#include \n#include \n#include \n\n#include \"connection_interface.h\"\n\nnamespace nekit {\nnamespace transport {\nclass ListenerInterface {\n public:\n virtual ~ListenerInterface() = default;\n\n \/\/ Due to the limitation of boost handler, the handler type must be copy\n \/\/ constructible.\n using EventHandler = std::function&&, std::error_code)>;\n virtual void Accept(EventHandler&&);\n};\n} \/\/ namespace transport\n} \/\/ namespace nekit\n","subject":"Add comment for handler type requirement","message":"DOC: Add comment for handler type requirement\n","lang":"C","license":"mit","repos":"zhuhaow\/libnekit,zhuhaow\/libnekit,zhuhaow\/libnekit,zhuhaow\/libnekit"} {"commit":"dd726a59efc51b4bd4566fb6c578634a34306747","old_file":"include\/rocksdb\/version.h","new_file":"include\/rocksdb\/version.h","old_contents":"\/\/ Copyright (c) 2013, Facebook, Inc. All rights reserved.\n\/\/ This source code is licensed under the BSD-style license found in the\n\/\/ LICENSE file in the root directory of this source tree. An additional grant\n\/\/ of patent rights can be found in the PATENTS file in the same directory.\n#pragma once\n\n#define ROCKSDB_MAJOR 3\n#define ROCKSDB_MINOR 7\n#define ROCKSDB_PATCH 0\n\n\/\/ Do not use these. We made the mistake of declaring macros starting with\n\/\/ double underscore. Now we have to live with our choice. We'll deprecate these\n\/\/ at some point\n#define __ROCKSDB_MAJOR__ ROCKSDB_MAJOR\n#define __ROCKSDB_MINOR__ ROCKSDB_MINOR\n#define __ROCKSDB_PATCH__ ROCKSDB_PATCH\n","new_contents":"\/\/ Copyright (c) 2013, Facebook, Inc. All rights reserved.\n\/\/ This source code is licensed under the BSD-style license found in the\n\/\/ LICENSE file in the root directory of this source tree. An additional grant\n\/\/ of patent rights can be found in the PATENTS file in the same directory.\n#pragma once\n\n#define ROCKSDB_MAJOR 3\n#define ROCKSDB_MINOR 8\n#define ROCKSDB_PATCH 0\n\n\/\/ Do not use these. We made the mistake of declaring macros starting with\n\/\/ double underscore. Now we have to live with our choice. We'll deprecate these\n\/\/ at some point\n#define __ROCKSDB_MAJOR__ ROCKSDB_MAJOR\n#define __ROCKSDB_MINOR__ ROCKSDB_MINOR\n#define __ROCKSDB_PATCH__ ROCKSDB_PATCH\n","subject":"Bump Version Number to 3.8","message":"Bump Version Number to 3.8\n\nSummary: As tittle.\n\nTest Plan: Not needed.\n\nReviewers: ljin, igor, yhchiang, rven, fpi\n\nReviewed By: fpi\n\nSubscribers: leveldb, fpi, dhruba\n\nDifferential Revision: https:\/\/reviews.facebook.net\/D28629\n","lang":"C","license":"bsd-3-clause","repos":"JohnPJenkins\/rocksdb,SunguckLee\/RocksDB,flabby\/rocksdb,ryneli\/rocksdb,jalexanderqed\/rocksdb,alihalabyah\/rocksdb,RyanTech\/rocksdb,JackLian\/rocksdb,SunguckLee\/RocksDB,biddyweb\/rocksdb,rDSN-Projects\/rocksdb.replicated,tsheasha\/rocksdb,wlqGit\/rocksdb,wskplho\/rocksdb,vashstorm\/rocksdb,geraldoandradee\/rocksdb,virtdb\/rocksdb,sorphi\/rocksdb,JohnPJenkins\/rocksdb,lgscofield\/rocksdb,mbarbon\/rocksdb,JoeWoo\/rocksdb,virtdb\/rocksdb,makelivedotnet\/rocksdb,kaschaeffer\/rocksdb,dkorolev\/rocksdb,JackLian\/rocksdb,facebook\/rocksdb,OverlordQ\/rocksdb,anagav\/rocksdb,wskplho\/rocksdb,mbarbon\/rocksdb,vmx\/rocksdb,caijieming-baidu\/rocksdb,zhangpng\/rocksdb,makelivedotnet\/rocksdb,NickCis\/rocksdb,NickCis\/rocksdb,amyvmiwei\/rocksdb,temicai\/rocksdb,skunkwerks\/rocksdb,tsheasha\/rocksdb,sorphi\/rocksdb,lgscofield\/rocksdb,kaschaeffer\/rocksdb,temicai\/rocksdb,makelivedotnet\/rocksdb,biddyweb\/rocksdb,hobinyoon\/rocksdb,Vaisman\/rocksdb,wenduo\/rocksdb,geraldoandradee\/rocksdb,zhangpng\/rocksdb,Vaisman\/rocksdb,luckywhu\/rocksdb,JoeWoo\/rocksdb,wenduo\/rocksdb,OverlordQ\/rocksdb,bbiao\/rocksdb,fengshao0907\/rocksdb,SunguckLee\/RocksDB,skunkwerks\/rocksdb,biddyweb\/rocksdb,siddhartharay007\/rocksdb,lgscofield\/rocksdb,skunkwerks\/rocksdb,alihalabyah\/rocksdb,tsheasha\/rocksdb,IMCG\/RcoksDB,hobinyoon\/rocksdb,JohnPJenkins\/rocksdb,lgscofield\/rocksdb,wenduo\/rocksdb,Andymic\/rocksdb,zhangpng\/rocksdb,dkorolev\/rocksdb,Applied-Duality\/rocksdb,OverlordQ\/rocksdb,vmx\/rocksdb,bbiao\/rocksdb,ylong\/rocksdb,anagav\/rocksdb,IMCG\/RcoksDB,caijieming-baidu\/rocksdb,bbiao\/rocksdb,wat-ze-hex\/rocksdb,wenduo\/rocksdb,wat-ze-hex\/rocksdb,lgscofield\/rocksdb,skunkwerks\/rocksdb,fengshao0907\/rocksdb,JackLian\/rocksdb,flabby\/rocksdb,skunkwerks\/rocksdb,makelivedotnet\/rocksdb,wat-ze-hex\/rocksdb,geraldoandradee\/rocksdb,Andymic\/rocksdb,luckywhu\/rocksdb,virtdb\/rocksdb,norton\/rocksdb,norton\/rocksdb,luckywhu\/rocksdb,ryneli\/rocksdb,jalexanderqed\/rocksdb,tizzybec\/rocksdb,JohnPJenkins\/rocksdb,anagav\/rocksdb,flabby\/rocksdb,virtdb\/rocksdb,NickCis\/rocksdb,jalexanderqed\/rocksdb,facebook\/rocksdb,rDSN-Projects\/rocksdb.replicated,JackLian\/rocksdb,hobinyoon\/rocksdb,ryneli\/rocksdb,anagav\/rocksdb,tsheasha\/rocksdb,mbarbon\/rocksdb,facebook\/rocksdb,sorphi\/rocksdb,vmx\/rocksdb,caijieming-baidu\/rocksdb,hobinyoon\/rocksdb,tsheasha\/rocksdb,IMCG\/RcoksDB,anagav\/rocksdb,tsheasha\/rocksdb,kaschaeffer\/rocksdb,siddhartharay007\/rocksdb,luckywhu\/rocksdb,tizzybec\/rocksdb,jalexanderqed\/rocksdb,wlqGit\/rocksdb,siddhartharay007\/rocksdb,vashstorm\/rocksdb,JohnPJenkins\/rocksdb,NickCis\/rocksdb,norton\/rocksdb,virtdb\/rocksdb,kaschaeffer\/rocksdb,bbiao\/rocksdb,tsheasha\/rocksdb,OverlordQ\/rocksdb,fengshao0907\/rocksdb,tizzybec\/rocksdb,amyvmiwei\/rocksdb,IMCG\/RcoksDB,Andymic\/rocksdb,siddhartharay007\/rocksdb,temicai\/rocksdb,facebook\/rocksdb,Andymic\/rocksdb,sorphi\/rocksdb,sorphi\/rocksdb,dkorolev\/rocksdb,dkorolev\/rocksdb,norton\/rocksdb,SunguckLee\/RocksDB,SunguckLee\/RocksDB,fengshao0907\/rocksdb,JackLian\/rocksdb,wskplho\/rocksdb,ylong\/rocksdb,skunkwerks\/rocksdb,wskplho\/rocksdb,norton\/rocksdb,hobinyoon\/rocksdb,caijieming-baidu\/rocksdb,kaschaeffer\/rocksdb,mbarbon\/rocksdb,jalexanderqed\/rocksdb,wat-ze-hex\/rocksdb,Applied-Duality\/rocksdb,biddyweb\/rocksdb,anagav\/rocksdb,Applied-Duality\/rocksdb,zhangpng\/rocksdb,flabby\/rocksdb,mbarbon\/rocksdb,flabby\/rocksdb,facebook\/rocksdb,Andymic\/rocksdb,jalexanderqed\/rocksdb,Applied-Duality\/rocksdb,zhangpng\/rocksdb,siddhartharay007\/rocksdb,fengshao0907\/rocksdb,vmx\/rocksdb,JoeWoo\/rocksdb,norton\/rocksdb,Vaisman\/rocksdb,luckywhu\/rocksdb,wskplho\/rocksdb,luckywhu\/rocksdb,dkorolev\/rocksdb,facebook\/rocksdb,temicai\/rocksdb,ylong\/rocksdb,wenduo\/rocksdb,RyanTech\/rocksdb,makelivedotnet\/rocksdb,lgscofield\/rocksdb,NickCis\/rocksdb,IMCG\/RcoksDB,flabby\/rocksdb,tizzybec\/rocksdb,Applied-Duality\/rocksdb,vmx\/rocksdb,JohnPJenkins\/rocksdb,lgscofield\/rocksdb,wenduo\/rocksdb,wlqGit\/rocksdb,geraldoandradee\/rocksdb,bbiao\/rocksdb,SunguckLee\/RocksDB,Applied-Duality\/rocksdb,sorphi\/rocksdb,siddhartharay007\/rocksdb,norton\/rocksdb,OverlordQ\/rocksdb,fengshao0907\/rocksdb,vashstorm\/rocksdb,RyanTech\/rocksdb,JohnPJenkins\/rocksdb,wskplho\/rocksdb,tizzybec\/rocksdb,vmx\/rocksdb,vashstorm\/rocksdb,alihalabyah\/rocksdb,facebook\/rocksdb,zhangpng\/rocksdb,hobinyoon\/rocksdb,vmx\/rocksdb,zhangpng\/rocksdb,hobinyoon\/rocksdb,ylong\/rocksdb,RyanTech\/rocksdb,bbiao\/rocksdb,JoeWoo\/rocksdb,vashstorm\/rocksdb,temicai\/rocksdb,wlqGit\/rocksdb,ylong\/rocksdb,ylong\/rocksdb,IMCG\/RcoksDB,bbiao\/rocksdb,NickCis\/rocksdb,NickCis\/rocksdb,Vaisman\/rocksdb,kaschaeffer\/rocksdb,alihalabyah\/rocksdb,JackLian\/rocksdb,Vaisman\/rocksdb,siddhartharay007\/rocksdb,RyanTech\/rocksdb,makelivedotnet\/rocksdb,dkorolev\/rocksdb,RyanTech\/rocksdb,wat-ze-hex\/rocksdb,biddyweb\/rocksdb,JackLian\/rocksdb,wlqGit\/rocksdb,temicai\/rocksdb,caijieming-baidu\/rocksdb,facebook\/rocksdb,JoeWoo\/rocksdb,kaschaeffer\/rocksdb,bbiao\/rocksdb,alihalabyah\/rocksdb,IMCG\/RcoksDB,vashstorm\/rocksdb,rDSN-Projects\/rocksdb.replicated,Andymic\/rocksdb,dkorolev\/rocksdb,rDSN-Projects\/rocksdb.replicated,tizzybec\/rocksdb,Andymic\/rocksdb,Vaisman\/rocksdb,sorphi\/rocksdb,wat-ze-hex\/rocksdb,SunguckLee\/RocksDB,virtdb\/rocksdb,tsheasha\/rocksdb,ylong\/rocksdb,wskplho\/rocksdb,norton\/rocksdb,virtdb\/rocksdb,Applied-Duality\/rocksdb,hobinyoon\/rocksdb,ryneli\/rocksdb,mbarbon\/rocksdb,rDSN-Projects\/rocksdb.replicated,fengshao0907\/rocksdb,biddyweb\/rocksdb,wlqGit\/rocksdb,mbarbon\/rocksdb,makelivedotnet\/rocksdb,flabby\/rocksdb,temicai\/rocksdb,jalexanderqed\/rocksdb,JoeWoo\/rocksdb,vashstorm\/rocksdb,rDSN-Projects\/rocksdb.replicated,alihalabyah\/rocksdb,ryneli\/rocksdb,luckywhu\/rocksdb,RyanTech\/rocksdb,Vaisman\/rocksdb,alihalabyah\/rocksdb,amyvmiwei\/rocksdb,amyvmiwei\/rocksdb,wenduo\/rocksdb,tizzybec\/rocksdb,amyvmiwei\/rocksdb,Andymic\/rocksdb,caijieming-baidu\/rocksdb,skunkwerks\/rocksdb,geraldoandradee\/rocksdb,vmx\/rocksdb,wlqGit\/rocksdb,ryneli\/rocksdb,geraldoandradee\/rocksdb,wenduo\/rocksdb,wat-ze-hex\/rocksdb,OverlordQ\/rocksdb,anagav\/rocksdb,amyvmiwei\/rocksdb,biddyweb\/rocksdb,caijieming-baidu\/rocksdb,rDSN-Projects\/rocksdb.replicated,JoeWoo\/rocksdb,OverlordQ\/rocksdb,amyvmiwei\/rocksdb,geraldoandradee\/rocksdb,SunguckLee\/RocksDB,ryneli\/rocksdb,wat-ze-hex\/rocksdb"} {"commit":"a85984ba3bc5831f701ba4706bc8298234d17e21","old_file":"include\/wb_game_version.h","new_file":"include\/wb_game_version.h","old_contents":"\/**\n * WarfaceBot, a blind XMPP client for Warface (FPS)\n * Copyright (C) 2015 Levak Borok \n *\n * This program is free software: you can redistribute it and\/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see .\n *\/\n\n#ifndef WB_GAME_VERSION_H\n# define WB_GAME_VERSION_H\n\n# define GAME_VERSION \"1.1.1.3570\"\n\n#endif \/* !WB_GAME_VERSION_H *\/\n","new_contents":"\/**\n * WarfaceBot, a blind XMPP client for Warface (FPS)\n * Copyright (C) 2015 Levak Borok \n *\n * This program is free software: you can redistribute it and\/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see .\n *\/\n\n#ifndef WB_GAME_VERSION_H\n# define WB_GAME_VERSION_H\n\n# ifndef GAME_VERSION\n# define GAME_VERSION \"1.1.1.3570\"\n# endif \/* !GAME_VERSION *\/\n\n#endif \/* !WB_GAME_VERSION_H *\/\n","subject":"Add guards for GAME_VERSION for command line customization","message":"Add guards for GAME_VERSION for command line customization\n","lang":"C","license":"agpl-3.0","repos":"DevilDaga\/warfacebot,Levak\/warfacebot,Levak\/warfacebot,DevilDaga\/warfacebot,Levak\/warfacebot"} {"commit":"3773489a59adb0313d98e7d5a5749bdda8145e17","old_file":"interpreter\/cling\/lib\/MetaProcessor\/Display.h","new_file":"interpreter\/cling\/lib\/MetaProcessor\/Display.h","old_contents":"\/\/--------------------------------------------------------------------*- C++ -*-\n\/\/ CLING - the C++ LLVM-based InterpreterG :)\n\/\/ version: $Id$\n\/\/ author: Timur Pocheptsov \n\/\/------------------------------------------------------------------------------\n\n#ifndef CLING_DISPLAY_H\n#define CLING_DISPLAY_H\n\n#include \n\nnamespace llvm {\n class raw_ostream;\n}\n\nnamespace cling {\n\nvoid DisplayClasses(llvm::raw_ostream &stream,\n const class Interpreter *interpreter, bool verbose);\nvoid DisplayClass(llvm::raw_ostream &stream, \n const Interpreter *interpreter, const char *className, \n bool verbose);\n\nvoid DisplayGlobals(llvm::raw_ostream &stream, const Interpreter *interpreter);\nvoid DisplayGlobal(llvm::raw_ostream &stream, const Interpreter *interpreter, \n const std::string &name);\n\n}\n\n#endif\n","new_contents":"\/\/--------------------------------------------------------------------*- C++ -*-\n\/\/ CLING - the C++ LLVM-based InterpreterG :)\n\/\/ version: $Id$\n\/\/ author: Timur Pocheptsov \n\/\/------------------------------------------------------------------------------\n\n#ifndef CLING_DISPLAY_H\n#define CLING_DISPLAY_H\n\n#include \n\nnamespace llvm {\n class raw_ostream;\n}\n\nnamespace cling {\nclass Interpreter;\n\nvoid DisplayClasses(llvm::raw_ostream &stream,\n const Interpreter *interpreter, bool verbose);\nvoid DisplayClass(llvm::raw_ostream &stream, \n const Interpreter *interpreter, const char *className, \n bool verbose);\n\nvoid DisplayGlobals(llvm::raw_ostream &stream, const Interpreter *interpreter);\nvoid DisplayGlobal(llvm::raw_ostream &stream, const Interpreter *interpreter, \n const std::string &name);\n\n}\n\n#endif\n","subject":"Fix fwd decl for windows.","message":"Fix fwd decl for windows.\n\n\ngit-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@47814 27541ba8-7e3a-0410-8455-c3a389f83636\n","lang":"C","license":"lgpl-2.1","repos":"esakellari\/root,Y--\/root,agarciamontoro\/root,cxx-hep\/root-cern,omazapa\/root,bbockelm\/root,mkret2\/root,karies\/root,karies\/root,karies\/root,olifre\/root,0x0all\/ROOT,abhinavmoudgil95\/root,Y--\/root,smarinac\/root,evgeny-boger\/root,thomaskeck\/root,mkret2\/root,omazapa\/root,veprbl\/root,perovic\/root,arch1tect0r\/root,vukasinmilosevic\/root,jrtomps\/root,buuck\/root,arch1tect0r\/root,thomaskeck\/root,sirinath\/root,vukasinmilosevic\/root,cxx-hep\/root-cern,evgeny-boger\/root,agarciamontoro\/root,krafczyk\/root,vukasinmilosevic\/root,root-mirror\/root,root-mirror\/root,lgiommi\/root,arch1tect0r\/root,veprbl\/root,lgiommi\/root,cxx-hep\/root-cern,root-mirror\/root,perovic\/root,zzxuanyuan\/root,dfunke\/root,satyarth934\/root,perovic\/root,mkret2\/root,abhinavmoudgil95\/root,bbockelm\/root,veprbl\/root,sirinath\/root,smarinac\/root,gbitzes\/root,mhuwiler\/rootauto,beniz\/root,0x0all\/ROOT,omazapa\/root-old,zzxuanyuan\/root,dfunke\/root,olifre\/root,0x0all\/ROOT,esakellari\/root,alexschlueter\/cern-root,karies\/root,olifre\/root,davidlt\/root,veprbl\/root,lgiommi\/root,perovic\/root,bbockelm\/root,satyarth934\/root,omazapa\/root-old,gbitzes\/root,perovic\/root,veprbl\/root,satyarth934\/root,CristinaCristescu\/root,nilqed\/root,vukasinmilosevic\/root,omazapa\/root-old,sawenzel\/root,Y--\/root,0x0all\/ROOT,mkret2\/root,buuck\/root,satyarth934\/root,zzxuanyuan\/root-compressor-dummy,zzxuanyuan\/root,olifre\/root,0x0all\/ROOT,mattkretz\/root,smarinac\/root,omazapa\/root-old,gganis\/root,arch1tect0r\/root,sawenzel\/root,mattkretz\/root,nilqed\/root,jrtomps\/root,lgiommi\/root,sawenzel\/root,sbinet\/cxx-root,karies\/root,esakellari\/my_root_for_test,sawenzel\/root,beniz\/root,buuck\/root,davidlt\/root,nilqed\/root,krafczyk\/root,omazapa\/root-old,sirinath\/root,thomaskeck\/root,abhinavmoudgil95\/root,karies\/root,veprbl\/root,vukasinmilosevic\/root,gbitzes\/root,gganis\/root,arch1tect0r\/root,cxx-hep\/root-cern,CristinaCristescu\/root,thomaskeck\/root,zzxuanyuan\/root,olifre\/root,mhuwiler\/rootauto,lgiommi\/root,gbitzes\/root,thomaskeck\/root,esakellari\/root,esakellari\/my_root_for_test,sawenzel\/root,agarciamontoro\/root,simonpf\/root,thomaskeck\/root,satyarth934\/root,olifre\/root,esakellari\/my_root_for_test,CristinaCristescu\/root,satyarth934\/root,zzxuanyuan\/root-compressor-dummy,sbinet\/cxx-root,esakellari\/my_root_for_test,BerserkerTroll\/root,nilqed\/root,davidlt\/root,sawenzel\/root,sirinath\/root,sawenzel\/root,karies\/root,zzxuanyuan\/root,jrtomps\/root,mattkretz\/root,agarciamontoro\/root,pspe\/root,georgtroska\/root,perovic\/root,krafczyk\/root,vukasinmilosevic\/root,smarinac\/root,zzxuanyuan\/root,krafczyk\/root,evgeny-boger\/root,thomaskeck\/root,buuck\/root,krafczyk\/root,pspe\/root,lgiommi\/root,esakellari\/root,arch1tect0r\/root,BerserkerTroll\/root,sirinath\/root,jrtomps\/root,agarciamontoro\/root,zzxuanyuan\/root,esakellari\/root,bbockelm\/root,sirinath\/root,beniz\/root,mhuwiler\/rootauto,smarinac\/root,lgiommi\/root,sbinet\/cxx-root,mhuwiler\/rootauto,esakellari\/my_root_for_test,root-mirror\/root,Duraznos\/root,karies\/root,CristinaCristescu\/root,davidlt\/root,alexschlueter\/cern-root,dfunke\/root,evgeny-boger\/root,satyarth934\/root,agarciamontoro\/root,krafczyk\/root,sbinet\/cxx-root,mattkretz\/root,arch1tect0r\/root,vukasinmilosevic\/root,georgtroska\/root,mkret2\/root,agarciamontoro\/root,0x0all\/ROOT,mattkretz\/root,buuck\/root,simonpf\/root,Y--\/root,buuck\/root,mkret2\/root,buuck\/root,Duraznos\/root,lgiommi\/root,mattkretz\/root,beniz\/root,omazapa\/root,jrtomps\/root,arch1tect0r\/root,georgtroska\/root,perovic\/root,Y--\/root,pspe\/root,pspe\/root,Duraznos\/root,sawenzel\/root,BerserkerTroll\/root,root-mirror\/root,agarciamontoro\/root,sbinet\/cxx-root,sirinath\/root,veprbl\/root,gbitzes\/root,veprbl\/root,Duraznos\/root,bbockelm\/root,simonpf\/root,davidlt\/root,georgtroska\/root,krafczyk\/root,Duraznos\/root,gganis\/root,smarinac\/root,gganis\/root,omazapa\/root-old,nilqed\/root,olifre\/root,sbinet\/cxx-root,mhuwiler\/rootauto,perovic\/root,simonpf\/root,esakellari\/root,sirinath\/root,simonpf\/root,simonpf\/root,esakellari\/root,zzxuanyuan\/root,simonpf\/root,davidlt\/root,omazapa\/root-old,esakellari\/root,davidlt\/root,gbitzes\/root,root-mirror\/root,root-mirror\/root,krafczyk\/root,georgtroska\/root,nilqed\/root,Y--\/root,davidlt\/root,dfunke\/root,zzxuanyuan\/root-compressor-dummy,gganis\/root,beniz\/root,omazapa\/root,esakellari\/my_root_for_test,buuck\/root,veprbl\/root,georgtroska\/root,satyarth934\/root,esakellari\/root,zzxuanyuan\/root,zzxuanyuan\/root-compressor-dummy,bbockelm\/root,BerserkerTroll\/root,alexschlueter\/cern-root,Duraznos\/root,sbinet\/cxx-root,abhinavmoudgil95\/root,BerserkerTroll\/root,mhuwiler\/rootauto,simonpf\/root,smarinac\/root,mattkretz\/root,agarciamontoro\/root,davidlt\/root,omazapa\/root,0x0all\/ROOT,jrtomps\/root,beniz\/root,gbitzes\/root,satyarth934\/root,Y--\/root,zzxuanyuan\/root-compressor-dummy,olifre\/root,smarinac\/root,gbitzes\/root,nilqed\/root,esakellari\/my_root_for_test,cxx-hep\/root-cern,omazapa\/root-old,gganis\/root,olifre\/root,Y--\/root,vukasinmilosevic\/root,dfunke\/root,evgeny-boger\/root,jrtomps\/root,georgtroska\/root,dfunke\/root,bbockelm\/root,arch1tect0r\/root,sbinet\/cxx-root,sawenzel\/root,sawenzel\/root,sbinet\/cxx-root,thomaskeck\/root,simonpf\/root,buuck\/root,mhuwiler\/rootauto,krafczyk\/root,zzxuanyuan\/root,omazapa\/root-old,georgtroska\/root,mhuwiler\/rootauto,krafczyk\/root,veprbl\/root,beniz\/root,cxx-hep\/root-cern,gganis\/root,mkret2\/root,olifre\/root,esakellari\/my_root_for_test,Duraznos\/root,abhinavmoudgil95\/root,jrtomps\/root,sawenzel\/root,gbitzes\/root,CristinaCristescu\/root,mkret2\/root,jrtomps\/root,BerserkerTroll\/root,sirinath\/root,bbockelm\/root,abhinavmoudgil95\/root,Y--\/root,root-mirror\/root,simonpf\/root,alexschlueter\/cern-root,evgeny-boger\/root,alexschlueter\/cern-root,alexschlueter\/cern-root,root-mirror\/root,nilqed\/root,karies\/root,abhinavmoudgil95\/root,BerserkerTroll\/root,buuck\/root,0x0all\/ROOT,CristinaCristescu\/root,bbockelm\/root,pspe\/root,esakellari\/root,buuck\/root,0x0all\/ROOT,mattkretz\/root,cxx-hep\/root-cern,thomaskeck\/root,krafczyk\/root,satyarth934\/root,nilqed\/root,georgtroska\/root,BerserkerTroll\/root,CristinaCristescu\/root,abhinavmoudgil95\/root,esakellari\/my_root_for_test,omazapa\/root,sbinet\/cxx-root,perovic\/root,dfunke\/root,omazapa\/root,root-mirror\/root,cxx-hep\/root-cern,gganis\/root,zzxuanyuan\/root-compressor-dummy,evgeny-boger\/root,jrtomps\/root,abhinavmoudgil95\/root,omazapa\/root,mkret2\/root,pspe\/root,veprbl\/root,CristinaCristescu\/root,smarinac\/root,gbitzes\/root,vukasinmilosevic\/root,omazapa\/root-old,mhuwiler\/rootauto,beniz\/root,georgtroska\/root,sirinath\/root,beniz\/root,CristinaCristescu\/root,evgeny-boger\/root,arch1tect0r\/root,Duraznos\/root,CristinaCristescu\/root,evgeny-boger\/root,mattkretz\/root,bbockelm\/root,simonpf\/root,zzxuanyuan\/root-compressor-dummy,vukasinmilosevic\/root,jrtomps\/root,karies\/root,sbinet\/cxx-root,gganis\/root,omazapa\/root-old,mattkretz\/root,zzxuanyuan\/root,dfunke\/root,mattkretz\/root,nilqed\/root,lgiommi\/root,esakellari\/root,davidlt\/root,nilqed\/root,dfunke\/root,esakellari\/my_root_for_test,georgtroska\/root,olifre\/root,zzxuanyuan\/root-compressor-dummy,lgiommi\/root,Y--\/root,pspe\/root,evgeny-boger\/root,agarciamontoro\/root,Duraznos\/root,dfunke\/root,perovic\/root,pspe\/root,Y--\/root,Duraznos\/root,bbockelm\/root,zzxuanyuan\/root-compressor-dummy,abhinavmoudgil95\/root,mhuwiler\/rootauto,sirinath\/root,thomaskeck\/root,pspe\/root,vukasinmilosevic\/root,omazapa\/root,agarciamontoro\/root,davidlt\/root,mkret2\/root,evgeny-boger\/root,gganis\/root,BerserkerTroll\/root,zzxuanyuan\/root-compressor-dummy,CristinaCristescu\/root,gganis\/root,BerserkerTroll\/root,gbitzes\/root,mkret2\/root,omazapa\/root,smarinac\/root,beniz\/root,lgiommi\/root,dfunke\/root,mhuwiler\/rootauto,Duraznos\/root,zzxuanyuan\/root-compressor-dummy,abhinavmoudgil95\/root,zzxuanyuan\/root,BerserkerTroll\/root,arch1tect0r\/root,omazapa\/root,beniz\/root,alexschlueter\/cern-root,perovic\/root,pspe\/root,pspe\/root,satyarth934\/root,root-mirror\/root,karies\/root"} {"commit":"fade08bf28c1850d2ad2fc5b47e2379b9cf3995d","old_file":"kremlib\/gcc_compat.h","new_file":"kremlib\/gcc_compat.h","old_contents":"#ifndef __GCC_COMPAT_H\n#define __GCC_COMPAT_H\n\n#ifdef __GNUC__\n\/\/ gcc does not support the __cdecl, __stdcall or __fastcall notation\n\/\/ except on Windows\n#ifndef _WIN32\n#define __cdecl __attribute__((cdecl))\n#define __stdcall __attribute__((stdcall))\n#define __fastcall __attribute__((fastcall))\n#endif \/\/ ! _WIN32\n#endif \/\/ __GNUC__\n\n#endif \/\/ __GCC_COMPAT_H\n","new_contents":"#ifndef __GCC_COMPAT_H\n#define __GCC_COMPAT_H\n\n#ifdef __GNUC__\n\/\/ gcc does not support the __cdecl, __stdcall or __fastcall notation\n\/\/ except on Windows\n#ifdef _WIN32\n#define __cdecl __attribute__((cdecl))\n#define __stdcall __attribute__((stdcall))\n#define __fastcall __attribute__((fastcall))\n#else\n#define __cdecl\n#define __stdcall\n#define __fastcall\n#endif \/\/ _WIN32\n#endif \/\/ __GNUC__\n\n#endif \/\/ __GCC_COMPAT_H\n","subject":"Fix the Vale build onx 64 Linux by definining empty calling convention keywords","message":"Fix the Vale build onx 64 Linux by definining empty calling convention keywords\n","lang":"C","license":"apache-2.0","repos":"FStarLang\/kremlin,FStarLang\/kremlin,FStarLang\/kremlin,FStarLang\/kremlin"} {"commit":"bbf79aa264b638fd4717cfb1b8fd5a7997861fe7","old_file":"ArmPkg\/Include\/IndustryStandard\/ArmMmSvc.h","new_file":"ArmPkg\/Include\/IndustryStandard\/ArmMmSvc.h","old_contents":"","new_contents":"\/** @file\r\n*\r\n* Copyright (c) 2012-2017, ARM Limited. All rights reserved.\r\n*\r\n* This program and the accompanying materials\r\n* are licensed and made available under the terms and conditions of the BSD License\r\n* which accompanies this distribution. The full text of the license may be found at\r\n* http:\/\/opensource.org\/licenses\/bsd-license.php\r\n*\r\n* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS,\r\n* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r\n*\r\n**\/\r\n\r\n#ifndef __ARM_MM_SVC_H__\r\n#define __ARM_MM_SVC_H__\r\n\r\n\/*\r\n * SVC IDs to allow the MM secure partition to initialise itself, handle\r\n * delegated events and request the Secure partition manager to perform\r\n * privileged operations on its behalf.\r\n *\/\r\n#define ARM_SVC_ID_SPM_VERSION_AARCH64 0xC4000060\r\n#define ARM_SVC_ID_SP_EVENT_COMPLETE_AARCH64 0xC4000061\r\n#define ARM_SVC_ID_SP_GET_MEM_ATTRIBUTES_AARCH64 0xC4000064\r\n#define ARM_SVC_ID_SP_SET_MEM_ATTRIBUTES_AARCH64 0xC4000065\r\n\r\n#define SET_MEM_ATTR_DATA_PERM_MASK 0x3\r\n#define SET_MEM_ATTR_DATA_PERM_SHIFT 0\r\n#define SET_MEM_ATTR_DATA_PERM_NO_ACCESS 0\r\n#define SET_MEM_ATTR_DATA_PERM_RW 1\r\n#define SET_MEM_ATTR_DATA_PERM_RO 3\r\n\r\n#define SET_MEM_ATTR_CODE_PERM_MASK 0x1\r\n#define SET_MEM_ATTR_CODE_PERM_SHIFT 2\r\n#define SET_MEM_ATTR_CODE_PERM_X 0\r\n#define SET_MEM_ATTR_CODE_PERM_XN 1\r\n\r\n#define SET_MEM_ATTR_MAKE_PERM_REQUEST(d_perm, c_perm) \\\r\n ((((c_perm) & SET_MEM_ATTR_CODE_PERM_MASK) << SET_MEM_ATTR_CODE_PERM_SHIFT) | \\\r\n (( (d_perm) & SET_MEM_ATTR_DATA_PERM_MASK) << SET_MEM_ATTR_DATA_PERM_SHIFT))\r\n\r\n#endif\r\n","subject":"Add SVC function IDs for Management Mode.","message":"ArmPkg\/Include: Add SVC function IDs for Management Mode.\n\nSVCs are in the range 0xC4000060 - 0xC400007f.\nThe functions available to the secure MM partition:\n1. Signal completion of MM event handling.\n2. Set\/Get memory attributes for a memory region at runtime.\n3. Get version number of secure partition manager.\n\nAlso, it defines memory attributes required for set\/get operations.\n\nContributed-under: TianoCore Contribution Agreement 1.1\nSigned-off-by: Supreeth Venkatesh \nReviewed-by: Ard Biesheuvel <66d3c5fdaeea7ff1f996ad04f2c45e08ab38e2f5@linaro.org>\n","lang":"C","license":"bsd-2-clause","repos":"MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2"} {"commit":"6257608a8aa9caa06ef787ed48caba5a786ae1f5","old_file":"spdy\/platform\/api\/spdy_bug_tracker.h","new_file":"spdy\/platform\/api\/spdy_bug_tracker.h","old_contents":"\/\/ Copyright (c) 2019 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_\n#define QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_\n\n#include \"net\/spdy\/platform\/impl\/spdy_bug_tracker_impl.h\"\n\n#define SPDY_BUG SPDY_BUG_IMPL\n#define SPDY_BUG_IF(condition) SPDY_BUG_IF_IMPL(condition)\n\n\/\/ V2 macros are the same as all the SPDY_BUG flavor above, but they take a\n\/\/ bug_id parameter.\n#define SPDY_BUG_V2 SPDY_BUG_V2_IMPL\n#define SPDY_BUG_IF_V2 SPDY_BUG_IF_V2_IMPL\n\n#define FLAGS_spdy_always_log_bugs_for_tests \\\n FLAGS_spdy_always_log_bugs_for_tests_impl\n\n#endif \/\/ QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_\n","new_contents":"\/\/ Copyright (c) 2019 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_\n#define QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_\n\n#include \"net\/spdy\/platform\/impl\/spdy_bug_tracker_impl.h\"\n\n#define SPDY_BUG SPDY_BUG_IMPL\n#define SPDY_BUG_IF(bug_id, condition) SPDY_BUG_IF_IMPL(bug_id, condition)\n\n\/\/ V2 macros are the same as all the SPDY_BUG flavor above, but they take a\n\/\/ bug_id parameter.\n#define SPDY_BUG_V2 SPDY_BUG_V2_IMPL\n#define SPDY_BUG_IF_V2 SPDY_BUG_IF_V2_IMPL\n\n#define FLAGS_spdy_always_log_bugs_for_tests \\\n FLAGS_spdy_always_log_bugs_for_tests_impl\n\n#endif \/\/ QUICHE_SPDY_PLATFORM_API_SPDY_BUG_TRACKER_H_\n","subject":"Modify old-style derived GFE_BUG macros to have IDs.","message":"Modify old-style derived GFE_BUG macros to have IDs.\n\nUsage of the macros was replaced by V2 set of macros. Context: go\/gfe-bug-improvements. Now that everything was migrated to V2, we are updating V1 macros and will updated everything back to drop the V2 suffix.\n\nGFE_BUG macros were changed in cl\/362922435\nSPDY_BUG macros were changed in cl\/363160900, but one was missed. This CL corrects it.\n\nPiperOrigin-RevId: 363240499\nChange-Id: I77b4932e8e47bfef2f34000c0f5984e0a3b6ce45\n","lang":"C","license":"bsd-3-clause","repos":"google\/quiche,google\/quiche,google\/quiche,google\/quiche"} {"commit":"264e4c4d0199d1955ea0852c86b10a58bb234cce","old_file":"src\/uri_judge\/begginer\/1012_area.c","new_file":"src\/uri_judge\/begginer\/1012_area.c","old_contents":"\/*\nhttps:\/\/www.urionlinejudge.com.br\/judge\/en\/problems\/view\/1012\n*\/\n\n#include \n\nint main(){\n\n const double PI = 3.14159;\n\n double a, b, c;\n\n scanf(\"%lf %lf %lf\", &a, &b, &c);\n\n \/* the area of the rectangled triangle that has base A and height C\n A = (base * height) \/ 2\n *\/\n printf(\"TRIANGULO = %.3lf\\n\", (a*c)\/2);\n\n \/* the area of the radius's circle C. (pi = 3.14159)\n A = PI * radius\n *\/\n printf(\"CIRCULO = %.3lf\\n\", PI*c*c);\n\n \/* the area of the trapezium which has A and B by base, and C by height\n A = ((larger base + minor base) * height) \/ 2\n *\/\n printf(\"TRAPEZIO = %.3lf\\n\", ((a+b)*c)\/2);\n\n \/* the area of ​​the square that has side B\n A = side^2\n *\/\n printf(\"QUADRADO = %.3lf\\n\", b*b);\n\n \/* the area of the rectangle that has sides A and B\n A = base * height\n *\/\n printf(\"RETANGULO = %.3lf\\n\", a*b);\n\n return 0;\n}\n","new_contents":"\/*\nhttps:\/\/www.urionlinejudge.com.br\/judge\/en\/problems\/view\/1012\n*\/\n\n#include \n\nint main(){\n\n const double PI = 3.14159;\n\n double a, b, c;\n\n scanf(\"%lf %lf %lf\", &a, &b, &c);\n\n \/* the area of the rectangled triangle that has base A and height C\n A = (base * height) \/ 2\n *\/\n printf(\"TRIANGULO: %.3lf\\n\", (a*c)\/2);\n\n \/* the area of the radius's circle C. (pi = 3.14159)\n A = PI * radius\n *\/\n printf(\"CIRCULO: %.3lf\\n\", PI*c*c);\n\n \/* the area of the trapezium which has A and B by base, and C by height\n A = ((larger base + minor base) * height) \/ 2\n *\/\n printf(\"TRAPEZIO: %.3lf\\n\", ((a+b)*c)\/2);\n\n \/* the area of ​​the square that has side B\n A = side^2\n *\/\n printf(\"QUADRADO: %.3lf\\n\", b*b);\n\n \/* the area of the rectangle that has sides A and B\n A = base * height\n *\/\n printf(\"RETANGULO: %.3lf\\n\", a*b);\n\n return 0;\n}\n","subject":"Update 1012 (Fix a typo)","message":"Update 1012 (Fix a typo)\n\n: instead of =","lang":"C","license":"unknown","repos":"Mazuh\/Algs,Mazuh\/Algs,Mazuh\/MISC-Algs,Mazuh\/Algs,Mazuh\/MISC-Algs,Mazuh\/Algs,Mazuh\/MISC-Algs,Mazuh\/MISC-Algs,Mazuh\/Algs"} {"commit":"43c7a45566e6df0bcde37dca4d5d11f68330e833","old_file":"ObjectiveRocks\/RocksDBPlainTableOptions.h","new_file":"ObjectiveRocks\/RocksDBPlainTableOptions.h","old_contents":"\/\/\n\/\/ RocksDBPlainTableOptions.h\n\/\/ ObjectiveRocks\n\/\/\n\/\/ Created by Iska on 04\/01\/15.\n\/\/ Copyright (c) 2015 BrainCookie. All rights reserved.\n\/\/\n\n#import \n\ntypedef NS_ENUM(char, PlainTableEncodingType)\n{\n\tPlainTableEncodingPlain,\n\tPlainTableEncodingPrefix\n};\n\n@interface RocksDBPlainTableOptions : NSObject\n\n@property (nonatomic, assign) uint32_t userKeyLen;\n@property (nonatomic, assign) int bloomBitsPerKey;\n@property (nonatomic, assign) double hashTableRatio;\n@property (nonatomic, assign) size_t indexSparseness;\n@property (nonatomic, assign) size_t hugePageTlbSize;\n@property (nonatomic, assign) PlainTableEncodingType encodingType;\n@property (nonatomic, assign) BOOL fullScanMode;\n@property (nonatomic, assign) BOOL storeIndexInFile;\n\n@end\n","new_contents":"\/\/\n\/\/ RocksDBPlainTableOptions.h\n\/\/ ObjectiveRocks\n\/\/\n\/\/ Created by Iska on 04\/01\/15.\n\/\/ Copyright (c) 2015 BrainCookie. All rights reserved.\n\/\/\n\n#import \n\ntypedef NS_ENUM(char, PlainTableEncodingType)\n{\n\tPlainTableEncodingPlain,\n\tPlainTableEncodingPrefix\n};\n\n@interface RocksDBPlainTableOptions : NSObject\n\n\n\/**\n @brief\n Plain table has optimization for fix-sized keys, which can\n be specified via userKeyLen.\n *\/\n@property (nonatomic, assign) uint32_t userKeyLen;\n\n\/**\n @brief\n The number of bits used for bloom filer per prefix.\n To disable it pass a zero.\n *\/\n@property (nonatomic, assign) int bloomBitsPerKey;\n\n\/**\n @brief\n The desired utilization of the hash table used for prefix hashing.\n `hashTableRatio` = number of prefixes \/ #buckets in the hash table.\n *\/\n@property (nonatomic, assign) double hashTableRatio;\n\n\/**\n @brief\n Used to build one index record inside each prefix for the number of\n keys for the binary search inside each hash bucket.\n *\/\n@property (nonatomic, assign) size_t indexSparseness;\n\n\/**\n @brief\n Huge page TLB size. The user needs to reserve huge pages \n for it to be allocated, like:\n `sysctl -w vm.nr_hugepages=20`\n *\/\n@property (nonatomic, assign) size_t hugePageTlbSize;\n\n\/**\n @brief\n Encoding type for the keys. The value will determine how to encode keys\n when writing to a new SST file.\n *\/\n@property (nonatomic, assign) PlainTableEncodingType encodingType;\n\n\/**\n @brief\n Mode for reading the whole file one record by one without using the index.\n *\/\n@property (nonatomic, assign) BOOL fullScanMode;\n\n\/**\n @brief\n Compute plain table index and bloom filter during file building and store\n it in file. When reading file, index will be mmaped instead of recomputation.\n *\/\n@property (nonatomic, assign) BOOL storeIndexInFile;\n\n@end\n","subject":"Add source code documentation for the RocksDB Plain Table Options class","message":"Add source code documentation for the RocksDB Plain Table Options class\n","lang":"C","license":"mit","repos":"iabudiab\/ObjectiveRocks,iabudiab\/ObjectiveRocks,iabudiab\/ObjectiveRocks,iabudiab\/ObjectiveRocks"} {"commit":"79f3caa5fe3a30902951ce6f72a5caca278a46c7","old_file":"test\/Driver\/elfiamcu-header-search.c","new_file":"test\/Driver\/elfiamcu-header-search.c","old_contents":"\/\/ REQUIRES: x86-registered-target\n\n\/\/ RUN: %clang -target i386-pc-elfiamcu -c -v %s 2>&1 | FileCheck %s\n\/\/ CHECK-NOT: \/usr\/include\n\/\/ CHECK-NOT: \/usr\/local\/include\n\n","new_contents":"\/\/ REQUIRES: x86-registered-target\n\n\/\/ RUN: %clang -target i386-pc-elfiamcu -c -v -fsyntax-only %s 2>&1 | FileCheck %s\n\/\/ CHECK-NOT: \/usr\/include\n\/\/ CHECK-NOT: \/usr\/local\/include\n\n","subject":"Add -fsyntax-only to fix failure in read-only directories.","message":"Add -fsyntax-only to fix failure in read-only directories.\n\nInternally, this test is executed in a read-only directory, which causes\nit to fail because the driver tries to generate a file unnecessarily.\nAdding -fsyntax-only fixes the issue (thanks to Artem Belevich for\nfiguring out the root cause).\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@255809 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang"} {"commit":"21198b75ca5bb408bd77a54232418b8aef8ce8dc","old_file":"src\/x11-simple.c","new_file":"src\/x11-simple.c","old_contents":"\/\/ mruby libraries\n#include \"mruby.h\"\n#include \"mruby\/array.h\"\n#include \"mruby\/data.h\"\n#include \"mruby\/string.h\"\n\n#include \n\nmrb_value x11_simple_test(mrb_state* mrb, mrb_value self)\n{\n Display *dpy = XOpenDisplay(NULL);\n Window win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 0, 0, 256, 256, 0, 0, 0);\n XMapWindow(dpy, win);\n XFlush(dpy);\n while(1);\n return mrb_nil_value();\n}\n\n\/\/ initializer\nvoid mrb_mruby_x11_simple_gem_init(mrb_state* mrb)\n{\n struct RClass* rclass = mrb_define_module(mrb, \"X11\");\n mrb_define_class_method(mrb, rclass, \"test\", x11_simple_test, ARGS_NONE());\n return;\n}\n\n\/\/ finalizer\nvoid mrb_mruby_x11_simple_gem_final(mrb_state* mrb)\n{\n return;\n}\n\n","new_contents":"\/\/ mruby libraries\n#include \"mruby.h\"\n#include \"mruby\/array.h\"\n#include \"mruby\/data.h\"\n#include \"mruby\/string.h\"\n\n#include \n\nmrb_value x11_simple_test(mrb_state* mrb, mrb_value self)\n{\n Display* dpy = XOpenDisplay(NULL);\n Window* win = mrb_malloc(mrb, sizeof(Window));\n *win = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 0, 0, 256, 256, 0, 0, 0);\n XMapWindow(dpy, *win);\n XFlush(dpy);\n return mrb_fixnum_value((int)win);\n}\n\n\/\/ initializer\nvoid mrb_mruby_x11_simple_gem_init(mrb_state* mrb)\n{\n struct RClass* rclass = mrb_define_module(mrb, \"X11\");\n mrb_define_class_method(mrb, rclass, \"test\", x11_simple_test, ARGS_NONE());\n return;\n}\n\n\/\/ finalizer\nvoid mrb_mruby_x11_simple_gem_final(mrb_state* mrb)\n{\n return;\n}\n\n","subject":"Return an adress of Window object.","message":"Return an adress of Window object.\n","lang":"C","license":"mit","repos":"dyama\/mruby-x11-simple,dyama\/mruby-x11-simple"} {"commit":"18b04d4b62673f6da70d845a8904096e422acb20","old_file":"src\/plugins\/qmldesigner\/designercore\/filemanager\/qmlwarningdialog.h","new_file":"src\/plugins\/qmldesigner\/designercore\/filemanager\/qmlwarningdialog.h","old_contents":"#ifndef QMLWARNINGDIALOG_H\n#define QMLWARNINGDIALOG_H\n\n#include \n\nnamespace Ui {\n class QmlWarningDialog;\n}\n\nnamespace QmlDesigner {\n\nnamespace Internal {\n\nclass QmlWarningDialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n explicit QmlWarningDialog(QWidget *parent, const QStringList &warnings);\n ~QmlWarningDialog();\n\n bool warningsEnabled() const;\n\npublic slots:\n void ignoreButtonPressed();\n void okButtonPressed();\n void checkBoxToggled(bool);\n void linkClicked(const QString &link);\n\nprivate:\n Ui::QmlWarningDialog *ui;\n const QStringList m_warnings;\n};\n\n} \/\/Internal\n\n} \/\/QmlDesigner\n\n#endif \/\/ QMLWARNINGDIALOG_H\n","new_contents":"#ifndef QMLWARNINGDIALOG_H\n#define QMLWARNINGDIALOG_H\n\n#include \n\nQT_BEGIN_NAMESPACE\nnamespace Ui {\n class QmlWarningDialog;\n}\nQT_END_NAMESPACE\n\nnamespace QmlDesigner {\n\nnamespace Internal {\n\nclass QmlWarningDialog : public QDialog\n{\n Q_OBJECT\n\npublic:\n explicit QmlWarningDialog(QWidget *parent, const QStringList &warnings);\n ~QmlWarningDialog();\n\n bool warningsEnabled() const;\n\npublic slots:\n void ignoreButtonPressed();\n void okButtonPressed();\n void checkBoxToggled(bool);\n void linkClicked(const QString &link);\n\nprivate:\n Ui::QmlWarningDialog *ui;\n const QStringList m_warnings;\n};\n\n} \/\/Internal\n\n} \/\/QmlDesigner\n\n#endif \/\/ QMLWARNINGDIALOG_H\n","subject":"Fix compilation with namespaced Qt.","message":"QmlDesigner: Fix compilation with namespaced Qt.\n\nChange-Id: I4de7ae4391f57f4c7eac4e5e8b057b8365ca42c9\nReviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com>\n","lang":"C","license":"lgpl-2.1","repos":"amyvmiwei\/qt-creator,kuba1\/qtcreator,omniacreator\/qtcreator,Distrotech\/qtcreator,martyone\/sailfish-qtcreator,xianian\/qt-creator,colede\/qtcreator,maui-packages\/qt-creator,amyvmiwei\/qt-creator,maui-packages\/qt-creator,colede\/qtcreator,omniacreator\/qtcreator,martyone\/sailfish-qtcreator,farseerri\/git_code,omniacreator\/qtcreator,AltarBeastiful\/qt-creator,xianian\/qt-creator,farseerri\/git_code,amyvmiwei\/qt-creator,omniacreator\/qtcreator,duythanhphan\/qt-creator,martyone\/sailfish-qtcreator,farseerri\/git_code,danimo\/qt-creator,xianian\/qt-creator,xianian\/qt-creator,richardmg\/qtcreator,farseerri\/git_code,kuba1\/qtcreator,Distrotech\/qtcreator,AltarBeastiful\/qt-creator,AltarBeastiful\/qt-creator,darksylinc\/qt-creator,malikcjm\/qtcreator,kuba1\/qtcreator,kuba1\/qtcreator,danimo\/qt-creator,AltarBeastiful\/qt-creator,colede\/qtcreator,duythanhphan\/qt-creator,AltarBeastiful\/qt-creator,malikcjm\/qtcreator,duythanhphan\/qt-creator,martyone\/sailfish-qtcreator,AltarBeastiful\/qt-creator,omniacreator\/qtcreator,Distrotech\/qtcreator,darksylinc\/qt-creator,duythanhphan\/qt-creator,maui-packages\/qt-creator,kuba1\/qtcreator,kuba1\/qtcreator,duythanhphan\/qt-creator,kuba1\/qtcreator,martyone\/sailfish-qtcreator,maui-packages\/qt-creator,farseerri\/git_code,amyvmiwei\/qt-creator,xianian\/qt-creator,darksylinc\/qt-creator,darksylinc\/qt-creator,martyone\/sailfish-qtcreator,darksylinc\/qt-creator,xianian\/qt-creator,AltarBeastiful\/qt-creator,Distrotech\/qtcreator,danimo\/qt-creator,danimo\/qt-creator,danimo\/qt-creator,maui-packages\/qt-creator,malikcjm\/qtcreator,richardmg\/qtcreator,omniacreator\/qtcreator,darksylinc\/qt-creator,Distrotech\/qtcreator,farseerri\/git_code,martyone\/sailfish-qtcreator,maui-packages\/qt-creator,colede\/qtcreator,duythanhphan\/qt-creator,richardmg\/qtcreator,amyvmiwei\/qt-creator,darksylinc\/qt-creator,AltarBeastiful\/qt-creator,xianian\/qt-creator,kuba1\/qtcreator,richardmg\/qtcreator,amyvmiwei\/qt-creator,malikcjm\/qtcreator,colede\/qtcreator,xianian\/qt-creator,amyvmiwei\/qt-creator,farseerri\/git_code,colede\/qtcreator,danimo\/qt-creator,malikcjm\/qtcreator,colede\/qtcreator,Distrotech\/qtcreator,darksylinc\/qt-creator,amyvmiwei\/qt-creator,danimo\/qt-creator,duythanhphan\/qt-creator,richardmg\/qtcreator,maui-packages\/qt-creator,richardmg\/qtcreator,malikcjm\/qtcreator,danimo\/qt-creator,martyone\/sailfish-qtcreator,richardmg\/qtcreator,danimo\/qt-creator,omniacreator\/qtcreator,malikcjm\/qtcreator,farseerri\/git_code,kuba1\/qtcreator,xianian\/qt-creator,martyone\/sailfish-qtcreator,Distrotech\/qtcreator"} {"commit":"559165da4052bd5df6e4635182ee9429b5221fd0","old_file":"core\/privatepointer.h","new_file":"core\/privatepointer.h","old_contents":"","new_contents":"\/*\n * This file is part of the Gluon Development Platform\n * Copyright (c) 2014 Arjen Hiemstra \n *\n * This library is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this library; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n *\n *\/\n\n#ifndef GLUONCORE_PRIVATEPOINTER_H\n#define GLUONCORE_PRIVATEPOINTER_H\n\n#include \n\nnamespace GluonCore\n{\n template < typename T >\n class PrivatePointer\n {\n public:\n PrivatePointer() : p{ new T{} } { }\n template < typename... Args >\n explicit PrivatePointer( Args&& ... args ) : p{ std::forward< Args >( args ) ... } { }\n\n PrivatePointer( const PrivatePointer< T >&& other ) { p = other.p; }\n PrivatePointer< T >& operator=( const PrivatePointer< T >&& other ) { p = other.p; return *this; }\n\n inline const T* operator->() const { return p.get(); }\n inline T* operator->() { return p.get(); }\n\n private:\n std::unique_ptr< T > p;\n };\n}\n\n#define GLUON_PRIVATE_POINTER \\\nprivate:\\\n class Private;\\\n GluonCore::PrivatePointer< Private > d;\n\n#endif \/\/GLUONCORE_PRIVATEPOINTER_H","subject":"Add a convenience template for private pointers.","message":"core: Add a convenience template for private pointers.\n","lang":"C","license":"lgpl-2.1","repos":"KDE\/gluon,KDE\/gluon,KDE\/gluon,KDE\/gluon"} {"commit":"db648cdab35a2a72efa23bc4c417225f09e9d511","old_file":"stm32f1-nrf24l01-transmitter\/firmware\/protocol_hk310.c","new_file":"stm32f1-nrf24l01-transmitter\/firmware\/protocol_hk310.c","old_contents":"#include \n#include \n\n#define FRAME_TIME 5 \/\/ 1 frame every 5 ms\n\n\n\/\/ ****************************************************************************\nstatic void protocol_frame_callback(void)\n{\n systick_set_callback(protocol_frame_callback, FRAME_TIME);\n}\n\n\n\/\/ ****************************************************************************\nvoid init_protocol_hk310(void)\n{\n systick_set_callback(protocol_frame_callback, FRAME_TIME);\n}\n\n\n\n","new_contents":"#include \n#include \n\n#define FRAME_TIME 5 \/\/ One frame every 5 ms\n\n\ntypedef enum {\n SEND_STICK1 = 0,\n SEND_STICK2,\n SEND_BIND_INFO,\n SEND_PROGRAMBOX\n} frame_state_t;\n\nstatic frame_state_t frame_state;\n\n\n\/\/ ****************************************************************************\nstatic void send_stick_data(void)\n{\n\n}\n\n\n\/\/ ****************************************************************************\nstatic void send_binding_data(void)\n{\n\n}\n\n\n\/\/ ****************************************************************************\nstatic void send_programming_box_data(void)\n{\n\n}\n\n\n\n\/\/ ****************************************************************************\nstatic void nrf_transmit_done_callback(void)\n{\n switch (frame_state) {\n case SEND_STICK1:\n send_stick_data();\n frame_state = SEND_BIND_INFO;\n break;\n\n case SEND_STICK2:\n send_stick_data();\n frame_state = SEND_BIND_INFO;\n break;\n\n case SEND_BIND_INFO:\n send_binding_data();\n frame_state = SEND_PROGRAMBOX;\n break;\n\n case SEND_PROGRAMBOX:\n send_programming_box_data();\n frame_state = SEND_STICK1;\n break;\n\n default:\n break;\n }\n}\n\n\n\/\/ ****************************************************************************\nstatic void protocol_frame_callback(void)\n{\n systick_set_callback(protocol_frame_callback, FRAME_TIME);\n frame_state = SEND_STICK1;\n nrf_transmit_done_callback();\n}\n\n\n\/\/ ****************************************************************************\nvoid init_protocol_hk310(void)\n{\n systick_set_callback(protocol_frame_callback, FRAME_TIME);\n}\n\n\n","subject":"Build skeleton for nRF frames","message":"Build skeleton for nRF frames\n","lang":"C","license":"unlicense","repos":"laneboysrc\/nrf24l01-rc,laneboysrc\/nrf24l01-rc,laneboysrc\/nrf24l01-rc"} {"commit":"09b3de7c00db1e4ec464e50a6459352be4b610d1","old_file":"src\/WalkerException.h","new_file":"src\/WalkerException.h","old_contents":"#ifndef _WALKEREXCEPTION_H\n#define _WALKEREXCEPTION_H\n\n#include \n\n\/\/! (base) class for exceptions in uvok\/WikiWalker\nclass WalkerException : public std::exception\n{\npublic:\n \/*! Create a Walker exception with a message.\n *\n * Message might be shown on exception occurring, depending on\n * the compiler.\n *\n * \\param exmessage The exception message.\n *\/\n WalkerException(std::string exmessage)\n : message(exmessage) {}\n\n virtual ~WalkerException() throw() {}\n\n \/\/! get exception message\n const char* what() const throw()\n {\n return message.c_str();\n }\n\nprivate:\n std::string message;\n};\n\n#endif \/\/ _WALKEREXCEPTION_H\n","new_contents":"#ifndef _WALKEREXCEPTION_H\n#define _WALKEREXCEPTION_H\n\n#include \n\n\/\/! (base) class for exceptions in uvok\/WikiWalker\nclass WalkerException : public std::exception\n{\npublic:\n \/*! Create a Walker exception with a message.\n *\n * Message might be shown on exception occurring, depending on\n * the compiler.\n *\n * \\param exmessage The exception message.\n *\/\n WalkerException(std::string exmessage)\n : message(exmessage) {}\n\n virtual ~WalkerException() throw() {}\n\n \/\/! get exception message\n const char* what() const noexcept\n {\n return message.c_str();\n }\n\nprivate:\n std::string message;\n};\n\n#endif \/\/ _WALKEREXCEPTION_H\n","subject":"Use noexcept insead of throw() for what()","message":"Use noexcept insead of throw() for what()\n","lang":"C","license":"mit","repos":"dueringa\/WikiWalker"} {"commit":"4472010345dc2a46051887669ad2c7c7a6eccc3b","old_file":"chrome\/browser\/printing\/print_dialog_cloud.h","new_file":"chrome\/browser\/printing\/print_dialog_cloud.h","old_contents":"\/\/ Copyright (c) 2010 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_\n#define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_\n\n#include \"base\/basictypes.h\"\n\n#include \"testing\/gtest\/include\/gtest\/gtest_prod.h\"\n\nclass Browser;\nclass FilePath;\nnamespace IPC {\nclass Message;\n}\n\nclass PrintDialogCloud {\n public:\n \/\/ Called on the IO thread.\n static void CreatePrintDialogForPdf(const FilePath& path_to_pdf);\n\n private:\n FRIEND_TEST(PrintDialogCloudTest, HandlersRegistered);\n\n explicit PrintDialogCloud(const FilePath& path_to_pdf);\n ~PrintDialogCloud();\n\n \/\/ Called as a task from the UI thread, creates an object instance\n \/\/ to run the HTML\/JS based print dialog for printing through the cloud.\n static void CreateDialogImpl(const FilePath& path_to_pdf);\n\n Browser* browser_;\n\n DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud);\n};\n\n#endif \/\/ CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_\n","new_contents":"\/\/ Copyright (c) 2010 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_\n#define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_\n\n#include \"base\/basictypes.h\"\n\n#include \"testing\/gtest\/include\/gtest\/gtest_prod.h\"\n\nclass Browser;\nclass FilePath;\nnamespace IPC {\nclass Message;\n}\n\nclass PrintDialogCloud {\n public:\n \/\/ Called on the IO thread.\n static void CreatePrintDialogForPdf(const FilePath& path_to_pdf);\n\n private:\n FRIEND_TEST(PrintDialogCloudTest, HandlersRegistered);\n FRIEND_TEST(PrintDialogCloudTest, DISABLED_HandlersRegistered);\n\n explicit PrintDialogCloud(const FilePath& path_to_pdf);\n ~PrintDialogCloud();\n\n \/\/ Called as a task from the UI thread, creates an object instance\n \/\/ to run the HTML\/JS based print dialog for printing through the cloud.\n static void CreateDialogImpl(const FilePath& path_to_pdf);\n\n Browser* browser_;\n\n DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud);\n};\n\n#endif \/\/ CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_\n","subject":"Fix the build by updating FRIEND_TEST line.","message":"Fix the build by updating FRIEND_TEST line.\n\nTBR=maruel\n\nBUG=44547\n\nReview URL: http:\/\/codereview.chromium.org\/2083013\n\ngit-svn-id: http:\/\/src.chromium.org\/svn\/trunk\/src@47646 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n\nFormer-commit-id: b756479cc600c3c5ca9c0ab66c4d59e98afcb34d","lang":"C","license":"bsd-3-clause","repos":"meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser"} {"commit":"f846021291546acc3f6899d00c6ca60003baa371","old_file":"solutions\/uri\/1019\/1019.c","new_file":"solutions\/uri\/1019\/1019.c","old_contents":"","new_contents":"#include \n\nint main() {\n int t, h = 0, m = 0;\n\n while (scanf(\"%d\", &t) != EOF) {\n if (t >= 60 * 60) {\n h = t \/ (60 * 60);\n t %= (60 * 60);\n }\n if (t >= 60) {\n m = t \/ 60;\n t %= 60;\n }\n\n printf(\"%d:%d:%d\\n\", h, m, t);\n h = 0, m = 0;\n }\n\n return 0;\n}\n","subject":"Solve Time Conversion in c","message":"Solve Time Conversion in c\n","lang":"C","license":"mit","repos":"deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground,deniscostadsc\/playground"} {"commit":"d143e1c7afb2c24af593c36272c6542eb9a3bbc7","old_file":"raster\/buffer_view.h","new_file":"raster\/buffer_view.h","old_contents":"\/\/ Raster Library\n\/\/ Copyright (C) 2015 David Capello\n\n#ifndef RASTER_BUFFER_VIEW_INCLUDED_H\n#define RASTER_BUFFER_VIEW_INCLUDED_H\n#pragma once\n\n#include \n#include \n#include \n\n#include \"raster\/image_spec.h\"\n\nnamespace raster {\n\n \/\/ Wrapper for an array of bytes. It doesn't own the data.\n class buffer_view {\n public:\n typedef uint8_t value_type;\n typedef value_type* pointer;\n typedef value_type& reference;\n\n buffer_view(size_t size, pointer data)\n : m_size(size)\n , m_data(data) {\n }\n\n template\n buffer_view(std::vector& vector)\n : m_size(vector.size())\n , m_data(&vector[0]) {\n }\n\n size_t size() const { return m_size; }\n pointer begin() { return m_data; }\n pointer end() { return m_data+m_size; }\n const pointer begin() const { return m_data; }\n const pointer end() const { return m_data+m_size; }\n\n reference operator[](int i) const {\n assert(i >= 0 && i < int(m_size));\n return m_data[i];\n }\n\n private:\n size_t m_size;\n pointer m_data;\n };\n\n} \/\/ namespace raster\n\n#endif\n","new_contents":"\/\/ Raster Library\n\/\/ Copyright (C) 2015-2016 David Capello\n\n#ifndef RASTER_BUFFER_VIEW_INCLUDED_H\n#define RASTER_BUFFER_VIEW_INCLUDED_H\n#pragma once\n\n#include \n#include \n#include \n#include \n\n#include \"raster\/image_spec.h\"\n\nnamespace raster {\n\n \/\/ Wrapper for an array of bytes. It doesn't own the data.\n class buffer_view {\n public:\n typedef std::uint8_t value_type;\n typedef value_type* pointer;\n typedef value_type& reference;\n\n buffer_view(std::size_t size, pointer data)\n : m_size(size)\n , m_data(data) {\n }\n\n template\n buffer_view(std::vector& vector)\n : m_size(vector.size())\n , m_data(&vector[0]) {\n }\n\n std::size_t size() const { return m_size; }\n pointer begin() { return m_data; }\n pointer end() { return m_data+m_size; }\n const pointer begin() const { return m_data; }\n const pointer end() const { return m_data+m_size; }\n\n reference operator[](int i) const {\n assert(i >= 0 && i < int(m_size));\n return m_data[i];\n }\n\n private:\n size_t m_size;\n pointer m_data;\n };\n\n} \/\/ namespace raster\n\n#endif\n","subject":"Add std:: namespace to int types","message":"Add std:: namespace to int types\n","lang":"C","license":"mit","repos":"aseprite\/raster,dacap\/raster,dacap\/raster,aseprite\/raster"} {"commit":"9efcb0413e4a7e59b83862d9a58c267ad8bb5d23","old_file":"Behaviors\/GoBackward.h","new_file":"Behaviors\/GoBackward.h","old_contents":"\/*\n * GoBackward.h\n *\n * Created on: Mar 25, 2014\n * Author: user\n *\/\n\n#ifndef GOBACKWARD_H_\n#define GOBACKWARD_H_\n\n#include \"Behavior.h\"\n#include \"..\/Robot.h\"\nclass GoBackward: public Behavior {\npublic:\n\tGoBackward(Robot* robot);\n\tbool startCondition();\n\tbool stopCondition();\n\tvoid action();\n\tvirtual ~GoBackward();\n};\n\n#endif \/* GOBACKWARD_H_ *\/\n","new_contents":"\/*\n * GoBackward.h\n *\n * Created on: Mar 25, 2014\n * Author: user\n *\/\n\n#ifndef GOBACKWARD_H_\n#define GOBACKWARD_H_\n\n#include \"Behavior.h\"\n#include \"..\/Robot.h\"\nclass GoBackward: public Behavior\n{\n\npublic:\n\tGoBackward(Robot* robot);\n\n\tbool startCondition();\n\tbool stopCondition();\n\tvoid action();\n\tvirtual ~GoBackward();\n\nprivate:\n\tint _steps_count;\n\n};\n\n#endif \/* GOBACKWARD_H_ *\/\n","subject":"Add logic to this behavior","message":"Add logic to this behavior","lang":"C","license":"apache-2.0","repos":"Jossef\/robotics,Jossef\/robotics"} {"commit":"ec09e905db4bf5698c7c8bde2a41013c428f4308","old_file":"phraser\/cc\/analysis\/analysis_options.h","new_file":"phraser\/cc\/analysis\/analysis_options.h","old_contents":"#ifndef CC_ANALYSIS_ANALYSIS_OPTIONS_H_\n#define CC_ANALYSIS_ANALYSIS_OPTIONS_H_\n\n#include \n\nstruct AnalysisOptions {\n AnalysisOptions() :\n track_index_translation(true),\n destutter_max_consecutive(3),\n track_chr2drop(true),\n replace_html_entities(true)\n {}\n\n \/\/ General flags:\n \/\/ * Map tokens to spans in the original text.\n bool track_index_translations;\n\n \/\/ Preprocessing flags:\n \/\/ * Maximum number of consecutive code points before we start dropping them.\n \/\/ * Whether to keep track of code point drop counts from destuttering.\n size_t destutter_max_consecutive;\n bool track_chr2drop;\n\n \/\/ Tokenization flags:\n \/\/ * Whether to replace HTML entities in the text with their Unicode\n \/\/ equivalents.\n bool replace_html_entities;\n};\n\n#endif \/\/ CC_ANALYSIS_ANALYSIS_OPTIONS_H_\n","new_contents":"#ifndef CC_ANALYSIS_ANALYSIS_OPTIONS_H_\n#define CC_ANALYSIS_ANALYSIS_OPTIONS_H_\n\n#include \n\nstruct AnalysisOptions {\n AnalysisOptions() :\n destutter_max_consecutive(3),\n replace_html_entities(true)\n {}\n\n \/\/ Preprocessing flags:\n \/\/ * Maximum number of consecutive code points before we start dropping them.\n size_t destutter_max_consecutive;\n\n \/\/ Tokenization flags:\n \/\/ * Whether to replace HTML entities in the text with their Unicode\n \/\/ equivalents.\n bool replace_html_entities;\n};\n\n#endif \/\/ CC_ANALYSIS_ANALYSIS_OPTIONS_H_\n","subject":"Remove them. Deal with them later if perf is actually an issue here.","message":"Remove them. Deal with them later if perf is actually an issue here.\n","lang":"C","license":"mit","repos":"escherba\/phraser,knighton\/phraser,escherba\/phraser,escherba\/phraser,knighton\/phraser,knighton\/phraser,knighton\/phraser,escherba\/phraser"} {"commit":"14d3966cf69de96f4a25b0f4ffb462d51b3b2112","old_file":"tests\/error\/0018-voidparam.c","new_file":"tests\/error\/0018-voidparam.c","old_contents":"\nint\nfoo(void, int x)\n{\n\treturn 0;\n}\n\nint\nmain()\n{\n\treturn foo();\n}\n","new_contents":"int\na(void, int i)\n{\n\treturn 0;\n}\n\nint\nb(int i, void)\n{\n\treturn 0;\n}\n\nint\nc(void, void)\n{\n\treturn 0;\n}\n\nint\nd(void, ...)\n{\n\treturn 0;\n}\n\nint\nmain()\n{\n\treturn 0;\n}\n","subject":"Improve error test for void parameter","message":"[tests] Improve error test for void parameter\n","lang":"C","license":"isc","repos":"k0gaMSX\/scc,k0gaMSX\/scc,k0gaMSX\/scc"} {"commit":"05a3ffb6b93cf390f5401511184303a419de3cbf","old_file":"src\/thermal_config.h","new_file":"src\/thermal_config.h","old_contents":"#ifndef THERMALCONFIG_H\n#define THERMALCONFIG_H\n\n#ifndef M_PI\nconst double M_PI = 3.141592653;\n#endif\n\nconst double T0 = 273.15; \/\/ [C]\n\nconst double R_TSV = 5e-6; \/\/ [m]\n\n\/* Thermal conductance *\/\nconst double Ksi = 148.0; \/\/ Silicon\nconst double Kcu = 401.0; \/\/ Copper\nconst double Kin = 1.5; \/\/ insulator\nconst double Khs = 2.0; \/\/ Heat sink\n\n\/* Thermal capacitance *\/\nconst double Csi = 1.66e6; \/\/ Silicon\nconst double Ccu = 3.2e6; \/\/ Copper\nconst double Cin = 1.65e6; \/\/ insulator\nconst double Chs = 2.42e6; \/\/ Heat sink\n\n\/* Layer Hight *\/\nconst double Hsi = 400e-6; \/\/ Silicon\nconst double Hcu = 5e-6; \/\/ Copper\nconst double Hin = 20e-6; \/\/ Insulator\nconst double Hhs = 1000e-6; \/\/ Heat sink\n\n#endif\n","new_contents":"#ifndef THERMALCONFIG_H\n#define THERMALCONFIG_H\n\n#ifndef M_PI\nconst double M_PI = 3.141592653;\n#endif\n\nconst double T0 = 273.15; \/\/ [C]\n\nconst double R_TSV = 5e-6; \/\/ [m]\n\n\/* Thermal conductance *\/\nconst double Ksi = 148.0; \/\/ Silicon\nconst double Kcu = 401.0; \/\/ Copper\nconst double Kin = 1.5; \/\/ insulator\nconst double Khs = 4.0; \/\/ Heat sink\n\n\/* Thermal capacitance *\/\nconst double Csi = 1.66e6; \/\/ Silicon\nconst double Ccu = 3.2e6; \/\/ Copper\nconst double Cin = 1.65e6; \/\/ insulator\nconst double Chs = 2.42e6; \/\/ Heat sink\n\n\/* Layer Hight *\/\nconst double Hsi = 400e-6; \/\/ Silicon\nconst double Hcu = 5e-6; \/\/ Copper\nconst double Hin = 20e-6; \/\/ Insulator\nconst double Hhs = 1000e-6; \/\/ Heat sink\n\n#endif\n","subject":"Change default khs to 4","message":"Change default khs to 4\n","lang":"C","license":"mit","repos":"umd-memsys\/DRAMsim3,umd-memsys\/DRAMsim3,umd-memsys\/DRAMsim3"} {"commit":"8def6e83038b43b798a935edab9d77476ec47372","old_file":"test\/Sema\/attr-weak.c","new_file":"test\/Sema\/attr-weak.c","old_contents":"\/\/ RUN: %clang_cc1 -verify -fsyntax-only %s\n\nextern int g0 __attribute__((weak));\nextern int g1 __attribute__((weak_import));\nint g2 __attribute__((weak));\nint g3 __attribute__((weak_import)); \/\/ expected-warning {{'weak_import' attribute cannot be specified on a definition}}\nint __attribute__((weak_import)) g4(void);\nvoid __attribute__((weak_import)) g5(void) {\n}\n\nstruct __attribute__((weak)) s0 {}; \/\/ expected-warning {{'weak' attribute only applies to variables, functions, and classes}}\nstruct __attribute__((weak_import)) s1 {}; \/\/ expected-warning {{'weak_import' attribute only applies to variables and functions}}\n\nstatic int x __attribute__((weak)); \/\/ expected-error {{weak declaration cannot have internal linkage}}\n\n\/\/ rdar:\/\/9538608\nint C; \/\/ expected-note {{previous definition is here}}\nextern int C __attribute__((weak_import)); \/\/ expected-warning {{an already-declared variable is made a weak_import declaration}}\n\nstatic int pr14946_x;\nextern int pr14946_x __attribute__((weak)); \/\/ expected-error {{weak declaration cannot have internal linkage}}\n\nstatic void pr14946_f();\nvoid pr14946_f() __attribute__((weak)); \/\/ expected-error {{weak declaration cannot have internal linkage}}\n","new_contents":"\/\/ RUN: %clang_cc1 -verify -fsyntax-only %s\n\nextern int f0() __attribute__((weak));\nextern int g0 __attribute__((weak));\nextern int g1 __attribute__((weak_import));\nint f2() __attribute__((weak));\nint g2 __attribute__((weak));\nint g3 __attribute__((weak_import)); \/\/ expected-warning {{'weak_import' attribute cannot be specified on a definition}}\nint __attribute__((weak_import)) g4(void);\nvoid __attribute__((weak_import)) g5(void) {\n}\n\nstruct __attribute__((weak)) s0 {}; \/\/ expected-warning {{'weak' attribute only applies to variables, functions, and classes}}\nstruct __attribute__((weak_import)) s1 {}; \/\/ expected-warning {{'weak_import' attribute only applies to variables and functions}}\n\nstatic int f() __attribute__((weak)); \/\/ expected-error {{weak declaration cannot have internal linkage}}\nstatic int x __attribute__((weak)); \/\/ expected-error {{weak declaration cannot have internal linkage}}\n\n\/\/ rdar:\/\/9538608\nint C; \/\/ expected-note {{previous definition is here}}\nextern int C __attribute__((weak_import)); \/\/ expected-warning {{an already-declared variable is made a weak_import declaration}}\n\nstatic int pr14946_x;\nextern int pr14946_x __attribute__((weak)); \/\/ expected-error {{weak declaration cannot have internal linkage}}\n\nstatic void pr14946_f();\nvoid pr14946_f() __attribute__((weak)); \/\/ expected-error {{weak declaration cannot have internal linkage}}\n","subject":"Add tests for weak functions","message":"[Sema] Add tests for weak functions\n\nI found these checks to be missing, just add some simple cases.\n\nDifferential Revision: https:\/\/reviews.llvm.org\/D47200\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@333283 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"e2c7691081b857651a031bf66e42dc1735d6b0a4","old_file":"src\/tests\/express_tests.h","new_file":"src\/tests\/express_tests.h","old_contents":"\/**\n * \\file express_tests.h\n * \\date Jul 4, 2009\n * \\author anton\n * \\details\n *\/\n#ifndef EXPRESS_TESTS_H_\n#define EXPRESS_TESTS_H_\n\ntypedef struct _EXPRESS_TEST_DESCRIPTOR {\n\tconst char *name;\n\tint (*exec)();\n} EXPRESS_TEST_DESCRIPTOR;\n\n#define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \\\n __asm__( \\\n \".section .express_tests\\n\\t\" \\\n \".word %0\\n\\t\" \\\n \".text\\n\" \\\n : :\"i\"(&descr)); \\\n }\n\n#define DECLARE_EXPRESS_TEST(name, exec) \\\n\tstatic int exec(); \\\n\tstatic const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \\\n\tREGISTER_EXPRESS_TEST(_descriptor);\n\nint express_tests_execute();\n\n#endif \/* EXPRESS_TESTS_H_ *\/\n","new_contents":"\/**\n * \\file express_tests.h\n * \\date Jul 4, 2009\n * \\author anton\n * \\details\n *\/\n#ifndef EXPRESS_TESTS_H_\n#define EXPRESS_TESTS_H_\n\ntypedef struct _EXPRESS_TEST_DESCRIPTOR {\n\tconst char *name;\n\tint (*exec)();\n} EXPRESS_TEST_DESCRIPTOR;\n\n\/*\n#define REGISTER_EXPRESS_TEST(descr) static void _register_express_test(){ \\\n __asm__( \\\n \".section .express_tests\\n\\t\" \\\n \".word %0\\n\\t\" \\\n \".text\\n\" \\\n : :\"i\"(&descr)); \\\n }\n\n#define DECLARE_EXPRESS_TEST(name, exec) \\\n\tstatic int exec(); \\\n\tstatic const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \\\n\tREGISTER_EXPRESS_TEST(_descriptor);\n*\/\n\n#define DECLARE_EXPRESS_TEST(name, exec) \\\n static int exec(); \\\n static const EXPRESS_TEST_DESCRIPTOR _descriptor = { name, exec }; \\\n static const EXPRESS_TEST_DESCRIPTOR *_pdescriptor __attribute__ ((section(\".express_tests\"))) = &_descriptor;\n\nint express_tests_execute();\n\n#endif \/* EXPRESS_TESTS_H_ *\/\n","subject":"Change declaration express test macros","message":"Change declaration express test macros","lang":"C","license":"bsd-2-clause","repos":"vrxfile\/embox-trik,vrxfile\/embox-trik,vrxfile\/embox-trik,Kefir0192\/embox,Kefir0192\/embox,embox\/embox,Kakadu\/embox,vrxfile\/embox-trik,abusalimov\/embox,Kefir0192\/embox,mike2390\/embox,mike2390\/embox,gzoom13\/embox,Kakadu\/embox,gzoom13\/embox,Kakadu\/embox,Kakadu\/embox,Kakadu\/embox,abusalimov\/embox,mike2390\/embox,abusalimov\/embox,vrxfile\/embox-trik,embox\/embox,mike2390\/embox,Kakadu\/embox,abusalimov\/embox,abusalimov\/embox,embox\/embox,gzoom13\/embox,mike2390\/embox,gzoom13\/embox,Kefir0192\/embox,Kefir0192\/embox,abusalimov\/embox,Kefir0192\/embox,gzoom13\/embox,vrxfile\/embox-trik,mike2390\/embox,gzoom13\/embox,embox\/embox,vrxfile\/embox-trik,embox\/embox,Kakadu\/embox,gzoom13\/embox,embox\/embox,mike2390\/embox,Kefir0192\/embox"} {"commit":"1d038914e5659449cdf265169860766292a8bc93","old_file":"test\/CodeGen\/statements.c","new_file":"test\/CodeGen\/statements.c","old_contents":"\/\/ RUN: rm -f %S\/statements.ll\n\/\/ RUN: %clang_cc1 -Wreturn-type %s -emit-llvm-only\n\nvoid test1(int x) {\nswitch (x) {\ncase 111111111111111111111111111111111111111:\nbar();\n}\n}\n\n\/\/ Mismatched type between return and function result.\nint test2() { return; }\nvoid test3() { return 4; }\n\n\nvoid test4() {\nbar:\nbaz:\nblong:\nbing:\n ;\n\n\/\/ PR5131\nstatic long x = &&bar - &&baz;\nstatic long y = &&baz;\n &&bing;\n &&blong;\n if (y)\n goto *y;\n\n goto *x;\n}\n\n\/\/ PR3869\nint test5(long long b) {\n static void *lbls[] = { &&lbl };\n goto *b;\n lbl:\n return 0;\n}\n\n","new_contents":"\/\/ RUN: %clang_cc1 -Wreturn-type %s -emit-llvm-only\n\nvoid test1(int x) {\nswitch (x) {\ncase 111111111111111111111111111111111111111:\nbar();\n}\n}\n\n\/\/ Mismatched type between return and function result.\nint test2() { return; }\nvoid test3() { return 4; }\n\n\nvoid test4() {\nbar:\nbaz:\nblong:\nbing:\n ;\n\n\/\/ PR5131\nstatic long x = &&bar - &&baz;\nstatic long y = &&baz;\n &&bing;\n &&blong;\n if (y)\n goto *y;\n\n goto *x;\n}\n\n\/\/ PR3869\nint test5(long long b) {\n static void *lbls[] = { &&lbl };\n goto *b;\n lbl:\n return 0;\n}\n\n","subject":"Revert \"Clean up in buildbot directories.\"","message":"Revert \"Clean up in buildbot directories.\"\n\nThis reverts commit 113814.\n\nThis patch was never intended to stay in the repository. If you are reading this\nfrom the future, we apologize for the noise.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@113990 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang"} {"commit":"eb90e028623c3e73faed4f1998af265e5ad8c90b","old_file":"tests\/ut_mimrotationanimation\/ut_mimrotationanimation.h","new_file":"tests\/ut_mimrotationanimation\/ut_mimrotationanimation.h","old_contents":"","new_contents":"\/* * This file is part of meego-im-framework *\n *\n * Copyright (C) 2011 Nokia Corporation and\/or its subsidiary(-ies).\n * All rights reserved.\n * Contact: Nokia Corporation (directui@nokia.com)\n *\n * If you have questions regarding the use of this file, please contact\n * Nokia at directui@nokia.com.\n *\n * This library is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Lesser General Public\n * License version 2.1 as published by the Free Software Foundation\n * and appearing in the file LICENSE.LGPL included in the packaging\n * of this file.\n *\/\n\n#ifndef UT_MIMROTATIONANIMATION_H\n#define UT_MIMROTATIONANIMATION_H\n\n#include \n#include \n\nclass MIMApplication;\n\nclass Ut_MImRotationAnimation : public QObject\n{\n Q_OBJECT\n\nprivate Q_SLOTS:\n void initTestCase();\n void cleanupTestCase();\n\n void testPassthruHiddenDuringRotation();\n\nprivate:\n MIMApplication *app;\n};\n\n#endif \/\/ UT_MIMROTATIONANIMATION_H\n","subject":"Add missing header from previous commit","message":"Changes: Add missing header from previous commit\n","lang":"C","license":"lgpl-2.1","repos":"jpetersen\/framework,sil2100\/maliit-framework,sil2100\/maliit-framework,RHawkeyed\/framework,RHawkeyed\/framework,sil2100\/maliit-framework,jpetersen\/framework,sil2100\/maliit-framework,Elleo\/framework,binlaten\/framework,Elleo\/framework"} {"commit":"855e7cd9d230f0c2dc1699bdaafc4f5ccf4e968f","old_file":"src\/condor_includes\/condor_fix_unistd.h","new_file":"src\/condor_includes\/condor_fix_unistd.h","old_contents":"#ifndef FIX_UNISTD_H\n#define FIX_UNISTD_H\n\n#include \n\n\n\/*\n For some reason the g++ include files on Ultrix 4.3 fail to provide\n these prototypes, even though the Ultrix 4.2 versions did...\n Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP\n*\/\n#if defined(ULTRIX43) || defined(OSF1)\n\n#if defined(__cplusplus)\nextern \"C\" {\n#endif\n\n#if defined(__STDC__) || defined(__cplusplus)\n\tint symlink( const char *, const char * );\n\tchar *sbrk( int );\n\tint gethostname( char *, int );\n#else\n\tint symlink();\n\tchar *sbrk();\n\tint gethostname();\n#endif\n\n#if defined(__cplusplus)\n}\n#endif\n\n#endif\t\/* ULTRIX43 *\/\n\n#endif\n","new_contents":"#ifndef FIX_UNISTD_H\n#define FIX_UNISTD_H\n\n#include \n\n\n\/*\n For some reason the g++ include files on Ultrix 4.3 fail to provide\n these prototypes, even though the Ultrix 4.2 versions did...\n Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP\n*\/\n#if defined(ULTRIX43) || defined(OSF1)\n\n#if defined(__cplusplus)\nextern \"C\" {\n#endif\n\n#if defined(__STDC__) || defined(__cplusplus)\n\tint symlink( const char *, const char * );\n\tvoid *sbrk( ssize_t );\n\tint gethostname( char *, int );\n#else\n\tint symlink();\n\tchar *sbrk();\n\tint gethostname();\n#endif\n\n#if defined(__cplusplus)\n}\n#endif\n\n#endif\t\/* ULTRIX43 *\/\n\n#endif\n","subject":"Change sbrk() prototype to sensible version with void * and ssize_t.","message":"Change sbrk() prototype to sensible version with void * and ssize_t.\n","lang":"C","license":"apache-2.0","repos":"djw8605\/condor,zhangzhehust\/htcondor,mambelli\/osg-bosco-marco,zhangzhehust\/htcondor,bbockelm\/condor-network-accounting,neurodebian\/htcondor,neurodebian\/htcondor,zhangzhehust\/htcondor,zhangzhehust\/htcondor,djw8605\/condor,clalancette\/condor-dcloud,djw8605\/condor,djw8605\/htcondor,htcondor\/htcondor,htcondor\/htcondor,htcondor\/htcondor,bbockelm\/condor-network-accounting,bbockelm\/condor-network-accounting,clalancette\/condor-dcloud,neurodebian\/htcondor,mambelli\/osg-bosco-marco,djw8605\/htcondor,djw8605\/condor,mambelli\/osg-bosco-marco,clalancette\/condor-dcloud,neurodebian\/htcondor,bbockelm\/condor-network-accounting,mambelli\/osg-bosco-marco,clalancette\/condor-dcloud,zhangzhehust\/htcondor,neurodebian\/htcondor,djw8605\/htcondor,clalancette\/condor-dcloud,djw8605\/htcondor,clalancette\/condor-dcloud,djw8605\/htcondor,djw8605\/condor,mambelli\/osg-bosco-marco,htcondor\/htcondor,neurodebian\/htcondor,djw8605\/condor,mambelli\/osg-bosco-marco,zhangzhehust\/htcondor,neurodebian\/htcondor,htcondor\/htcondor,zhangzhehust\/htcondor,htcondor\/htcondor,neurodebian\/htcondor,bbockelm\/condor-network-accounting,mambelli\/osg-bosco-marco,mambelli\/osg-bosco-marco,bbockelm\/condor-network-accounting,djw8605\/condor,djw8605\/condor,clalancette\/condor-dcloud,bbockelm\/condor-network-accounting,bbockelm\/condor-network-accounting,htcondor\/htcondor,djw8605\/htcondor,djw8605\/htcondor,htcondor\/htcondor,djw8605\/htcondor,djw8605\/htcondor,zhangzhehust\/htcondor,neurodebian\/htcondor,zhangzhehust\/htcondor"} {"commit":"428473bf2164a5e1c6932ce0fc809b603a70fe41","old_file":"test\/FrontendC\/2009-08-11-AsmBlocksComplexJumpTarget.c","new_file":"test\/FrontendC\/2009-08-11-AsmBlocksComplexJumpTarget.c","old_contents":"","new_contents":"\/\/ RUN: %llvmgcc %s -fasm-blocks -S -o - | grep {\\\\\\*1192}\n\/\/ Complicated expression as jump target\n\/\/ XFAIL: *\n\/\/ XTARGET: darwin\n\nasm void Method3()\n{\n mov eax,[esp+4] \n jmp [eax+(299-1)*4] \n}\n","subject":"Test for llvm-gcc patch 78762.","message":"Test for llvm-gcc patch 78762.\n\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@78763 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"bsd-2-clause","repos":"chubbymaggie\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,dslab-epfl\/asap,apple\/swift-llvm,dslab-epfl\/asap,apple\/swift-llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,dslab-epfl\/asap,dslab-epfl\/asap,dslab-epfl\/asap,apple\/swift-llvm,apple\/swift-llvm,chubbymaggie\/asap,chubbymaggie\/asap"} {"commit":"25b92604e2fcdbcabe747d9e8a51c04608785254","old_file":"C\/check_stack_crowth.c","new_file":"C\/check_stack_crowth.c","old_contents":"","new_contents":"\/\/ from vim(os_unix.c)\n\n\/*\n * Find out if the stack grows upwards or downwards.\n * \"p\" points to a variable on the stack of the caller.\n *\/\n static void\ncheck_stack_growth(p)\n char *p;\n{\n int i;\n\n stack_grows_downwards = (p > (char *)&i);\n}\n","subject":"Copy code from vim to check stack grow direction.","message":"[C] Copy code from vim to check stack grow direction.\n","lang":"C","license":"bsd-2-clause","repos":"sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets,sgkim126\/snippets"} {"commit":"f554e0d35c5063abcb2074af2d1e2b960bee1e00","old_file":"src\/imap\/cmd-close.c","new_file":"src\/imap\/cmd-close.c","old_contents":"\/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file *\/\n\n#include \"common.h\"\n#include \"commands.h\"\n#include \"imap-expunge.h\"\n\nbool cmd_close(struct client_command_context *cmd)\n{\n\tstruct client *client = cmd->client;\n\tstruct mailbox *mailbox = client->mailbox;\n\tstruct mail_storage *storage;\n\n\tif (!client_verify_open_mailbox(cmd))\n\t\treturn TRUE;\n\n\tstorage = mailbox_get_storage(mailbox);\n\tclient->mailbox = NULL;\n\n\tif (!imap_expunge(mailbox, NULL))\n\t\tclient_send_untagged_storage_error(client, storage);\n\n\tif (mailbox_close(&mailbox) < 0)\n client_send_untagged_storage_error(client, storage);\n\tclient_update_mailbox_flags(client, NULL);\n\n\tclient_send_tagline(cmd, \"OK Close completed.\");\n\treturn TRUE;\n}\n","new_contents":"\/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file *\/\n\n#include \"common.h\"\n#include \"commands.h\"\n#include \"imap-expunge.h\"\n\nbool cmd_close(struct client_command_context *cmd)\n{\n\tstruct client *client = cmd->client;\n\tstruct mailbox *mailbox = client->mailbox;\n\tstruct mail_storage *storage;\n\n\tif (!client_verify_open_mailbox(cmd))\n\t\treturn TRUE;\n\n\tstorage = mailbox_get_storage(mailbox);\n\tclient->mailbox = NULL;\n\n\tif (!imap_expunge(mailbox, NULL))\n\t\tclient_send_untagged_storage_error(client, storage);\n\telse if (mailbox_sync(mailbox, 0, 0, NULL) < 0)\n\t\tclient_send_untagged_storage_error(client, storage);\n\n\tif (mailbox_close(&mailbox) < 0)\n client_send_untagged_storage_error(client, storage);\n\tclient_update_mailbox_flags(client, NULL);\n\n\tclient_send_tagline(cmd, \"OK Close completed.\");\n\treturn TRUE;\n}\n","subject":"Synchronize the mailbox after expunging messages to actually get them expunged.","message":"CLOSE: Synchronize the mailbox after expunging messages to actually get them\nexpunged.\n","lang":"C","license":"mit","repos":"LTD-Beget\/dovecot,LTD-Beget\/dovecot,LTD-Beget\/dovecot,LTD-Beget\/dovecot,LTD-Beget\/dovecot"} {"commit":"7f779ba2a37c3c78968c991bc07a90bf7e4d1b53","old_file":"src\/server\/helpers.h","new_file":"src\/server\/helpers.h","old_contents":"#ifndef HELPERS_H\n#define HELPERS_H\n\n#include \n#include \n#include \n#include \n\n#include \n\n#define RCV_SIZE 2\n\nchar * get_ip_str(const struct sockaddr *sa, char *s, size_t maxlen);\n\n\nchar * addrinfo_to_ip(const addrinfo info, char * ip);\n\nvoid *get_in_addr(const sockaddr *sa);\n\nstd::string recieveFrom(const int sock, char * buffer);\n\nstd::string split_message(std::string * key, std::string message);\n\n#endif \/\/ HELPERS_H\n","new_contents":"#ifndef HELPERS_H\n#define HELPERS_H\n\n#include \n#include \n#include \n#include \n#include \n\n#include \n\n#define RCV_SIZE 2\n\nchar * get_ip_str(const struct sockaddr *sa, char *s, size_t maxlen);\n\n\nchar * addrinfo_to_ip(const addrinfo info, char * ip);\n\nvoid *get_in_addr(const sockaddr *sa);\n\nstd::string recieveFrom(const int sock, char * buffer);\n\nstd::string split_message(std::string * key, std::string message);\n\n#endif \/\/ HELPERS_H\n","subject":"Fix ‘strncpy’ was not declared in this scope","message":"[code\/server] Fix ‘strncpy’ was not declared in this scope\n","lang":"C","license":"mit","repos":"C4ptainCrunch\/info-f-209,C4ptainCrunch\/info-f-209,C4ptainCrunch\/info-f-209"} {"commit":"610c36d3e6b6f9ef92cd9729f180415a3369ceae","old_file":"components\/clk\/src\/clk.c","new_file":"components\/clk\/src\/clk.c","old_contents":"\/*\n * Copyright 2014, NICTA\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See \"LICENSE_BSD2.txt\" for details.\n *\n * @TAG(NICTA_BSD)\n *\/\n\n#include \n#include \n\n#include \n\nclock_sys_t clock_sys;\n\nunsigned int clktree_get_spi1_freq(void){\n clk_t* clk;\n clk = clk_get_clock(&clock_sys, CLK_SPI1);\n return clk_get_freq(clk);\n}\n\n\nunsigned int clktree_set_spi1_freq(unsigned int rate){\n clk_t* clk;\n clk = clk_get_clock(&clock_sys, CLK_SPI1);\n return clk_set_freq(clk, rate);\n}\n\n\nvoid clktree__init(void){\n int err;\n err = exynos5_clock_sys_init(cmu_cpu_clk,\n cmu_core_clk,\n NULL,\n NULL,\n cmu_top_clk,\n NULL,\n NULL,\n NULL,\n NULL,\n &clock_sys);\n assert(!err);\n if(err){\n printf(\"Failed to initialise clock tree\\n\");\n }\n}\n\n\n","new_contents":"\/*\n * Copyright 2014, NICTA\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See \"LICENSE_BSD2.txt\" for details.\n *\n * @TAG(NICTA_BSD)\n *\/\n\n#include \n#include \n\n#include \n\nclock_sys_t clock_sys;\n\nunsigned int clktree_get_spi1_freq(void){\n clk_t* clk;\n clk = clk_get_clock(&clock_sys, CLK_SPI1);\n return clk_get_freq(clk);\n}\n\n\nunsigned int clktree_set_spi1_freq(unsigned int rate){\n clk_t* clk;\n clk = clk_get_clock(&clock_sys, CLK_SPI1);\n return clk_set_freq(clk, rate);\n}\n\n\nvoid clktree__init(void){\n int err;\n err = exynos5_clock_sys_init(cmu_cpu_clk,\n cmu_core_clk,\n NULL,\n NULL,\n cmu_top_clk,\n NULL,\n NULL,\n NULL,\n NULL,\n\t\t\t\t NULL,\n &clock_sys);\n assert(!err);\n if(err){\n printf(\"Failed to initialise clock tree\\n\");\n }\n}\n\n\n","subject":"Fix due to the changes in libplatsupport.","message":"Fix due to the changes in libplatsupport.\n","lang":"C","license":"bsd-2-clause","repos":"smaccm\/camkes-apps-DARPA--devel"} {"commit":"c4497036cff93da286ae188cfd95aa3f01390c61","old_file":"test\/CodeGen\/bitfield-promote.c","new_file":"test\/CodeGen\/bitfield-promote.c","old_contents":"\/\/ RUN: %clang -target i686-unknown-unknown -O3 -emit-llvm -S -o - %s | FileCheck %s\n\nlong long f0(void) {\n struct { unsigned f0 : 32; } x = { 18 };\n return (long long) (x.f0 - (int) 22);\n}\n\/\/ CHECK: @f0()\n\/\/ CHECK: ret i64 4294967292\n\nlong long f1(void) {\n struct { unsigned f0 : 31; } x = { 18 };\n return (long long) (x.f0 - (int) 22);\n}\n\/\/ CHECK: @f1()\n\/\/ CHECK: ret i64 -4\n\nlong long f2(void) {\n struct { unsigned f0 ; } x = { 18 };\n return (long long) (x.f0 - (int) 22);\n}\n\/\/ CHECK: @f2()\n\/\/ CHECK: ret i64 4294967292\n","new_contents":"\/\/ RUN: %clang -O3 -emit-llvm -S -o - %s | FileCheck %s\n\nlong long f0(void) {\n struct { unsigned f0 : 32; } x = { 18 };\n return (long long) (x.f0 - (int) 22);\n}\n\/\/ CHECK: @f0()\n\/\/ CHECK: ret i64 4294967292\n\nlong long f1(void) {\n struct { unsigned f0 : 31; } x = { 18 };\n return (long long) (x.f0 - (int) 22);\n}\n\/\/ CHECK: @f1()\n\/\/ CHECK: ret i64 -4\n\nlong long f2(void) {\n struct { unsigned f0 ; } x = { 18 };\n return (long long) (x.f0 - (int) 22);\n}\n\/\/ CHECK: @f2()\n\/\/ CHECK: ret i64 4294967292\n","subject":"Make ReadDataFromGlobal() and FoldReinterpretLoadFromConstPtr() Big-endian-aware.","message":"llvm\/ConstantFolding.cpp: Make ReadDataFromGlobal() and FoldReinterpretLoadFromConstPtr() Big-endian-aware.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@167595 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang"} {"commit":"be7a096ef7a305bed73421473c26313306d192a0","old_file":"uefi-sct\/SctPkg\/UEFI\/Protocol\/RiscVBoot.h","new_file":"uefi-sct\/SctPkg\/UEFI\/Protocol\/RiscVBoot.h","old_contents":"","new_contents":"\/** @file\n\n Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.
\n\n This program and the accompanying materials\n are licensed and made available under the terms and conditions of the BSD License\n which accompanies this distribution. The full text of the license may be found at\n http:\/\/opensource.org\/licenses\/bsd-license.php\n\n THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\n\n**\/\n\/*++\n\nModule Name:\n\n RiscVBoot.h\n\nAbstract:\n\n This UEFI protocol for RISC-V systems provides early information to the bootloaders or Operating\n Systems. Firmwares like EDK2\/u-boot need to implement this protocol on RISC-V UEFI systems.\n--*\/\n\n#ifndef _RISCV_BOOT_H_\n#define _RISCV_BOOT_H_\n\n\n\/\/\n\/\/ Global ID for the RISC-V Boot Protocol\n\/\/\n#define RISCV_EFI_BOOT_PROTOCOL_GUID \\\n\t{ 0xccd15fec, 0x6f73, 0x4eec, { 0x83, 0x95, 0x3e, 0x69, 0xe4, 0xb9, 0x40, 0xbf } }\n\ntypedef struct _RISCV_EFI_BOOT_PROTOCOL RISCV_EFI_BOOT_PROTOCOL;\n\ntypedef\nEFI_STATUS\n(EFIAPI *EFI_GET_BOOT_HARTID) (\n IN RISCV_EFI_BOOT_PROTOCOL *This,\n OUT UINTN \t\t\t*BootHartId\n )\n\/*++\n\n Routine Description:\n This interface provides the hartid of the boot cpu.\n\n Arguments:\n This - Protocol instance pointer.\n BootHartId - Pointer to the variable receiving the hartid of the boot cpu.\n\n Returns:\n EFI_SUCCESS \t - The boot hart id could be returned.\n EFI_INVALID_PARAMETER - This parameter is NULL or does not point to a valid\n\t\t\t RISCV_EFI_BOOT_PROTOCOL implementation.\n EFI_INVALID_PARAMETER - BootHartId parameter is NULL.\n\n--*\/\n;\n\n\/\/\n\/\/ Interface structure for the RISC-V Boot Protocol\n\/\/\nstruct _RISCV_EFI_BOOT_PROTOCOL {\n UINTN \t\tRevision;\n EFI_GET_BOOT_HARTID \tGetBootHartId;\n};\n\nextern EFI_GUID gBlackBoxEfiRiscVBootProtocolGuid;\n\n#endif\n","subject":"Add header file for RISCV_EFI_BOOT_PROTOCOL","message":"uefi-sct\/SctPkg: Add header file for RISCV_EFI_BOOT_PROTOCOL\n\nREF: https:\/\/bugzilla.tianocore.org\/show_bug.cgi?id=3837\n\nRISC-V platforms need to support new RISCV_EFI_BOOT_PROTOCOL\nto communicate the boot hart ID to the operating system. Add\nthe required header file for this protocol.\n\nThe specification of the protocol is maintained at:\nhttps:\/\/github.com\/riscv-non-isa\/riscv-uefi\n\nCc: G Edhaya Chandran \nCc: Barton Gao \nCc: Carolyn Gjertsen \nCc: Samer El-Haj-Mahmoud \nCc: Eric Jin \nCc: Arvin Chen \nCc: Supreeth Venkatesh \nCc: Ard Biesheuvel \nCc: Heinrich Schuchardt \nCc: Abner Chang \n\nSigned-off-by: Sunil V L <2e3cbc10ab186f96566b5c56fac07befa110be79@ventanamicro.com>\nReviewed-by: Heinrich Schuchardt \nTested-by: Heinrich Schuchardt \n","lang":"C","license":"bsd-2-clause","repos":"tianocore\/edk2-test,tianocore\/edk2-test,tianocore\/edk2-test"} {"commit":"2f6d322b526ced2ffedb55af29179a87fbae4635","old_file":"ui\/events\/ozone\/evdev\/event_device_util.h","new_file":"ui\/events\/ozone\/evdev\/event_device_util.h","old_contents":"\/\/ Copyright 2014 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_\n#define UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_\n\n#include \n\nnamespace ui {\n\n#define EVDEV_LONG_BITS (CHAR_BIT * sizeof(long))\n#define EVDEV_BITS_TO_LONGS(x) (((x) + EVDEV_LONG_BITS - 1) \/ EVDEV_LONG_BITS)\n\nstatic inline int EvdevBitIsSet(const unsigned long* data, int bit) {\n return data[bit \/ EVDEV_LONG_BITS] & (1UL << (bit % EVDEV_LONG_BITS));\n}\n\n} \/\/ namespace ui\n\n#endif \/\/ UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_\n","new_contents":"\/\/ Copyright 2014 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_\n#define UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_\n\n#include \n\nnamespace ui {\n\n#define EVDEV_LONG_BITS (CHAR_BIT * sizeof(long))\n#define EVDEV_BITS_TO_LONGS(x) (((x) + EVDEV_LONG_BITS - 1) \/ EVDEV_LONG_BITS)\n\nstatic inline bool EvdevBitIsSet(const unsigned long* data, int bit) {\n return data[bit \/ EVDEV_LONG_BITS] & (1UL << (bit % EVDEV_LONG_BITS));\n}\n\n} \/\/ namespace ui\n\n#endif \/\/ UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_\n","subject":"Make EvdevBitIsSet return a bool","message":"Make EvdevBitIsSet return a bool\n\nCan't return an int since the result of the operation is a long, so it\ncan overflow an int leading to errors. Since all usages of EvdevBitIsSet\nare looking for a boolean response change it to bool.\n\nBUG=none\nNOTRY=true\n\nReview URL: https:\/\/codereview.chromium.org\/643663003\n\nCr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#298887}\n","lang":"C","license":"bsd-3-clause","repos":"dushu1203\/chromium.src,Just-D\/chromium-1,chuan9\/chromium-crosswalk,Chilledheart\/chromium,krieger-od\/nwjs_chromium.src,M4sse\/chromium.src,krieger-od\/nwjs_chromium.src,M4sse\/chromium.src,dednal\/chromium.src,jaruba\/chromium.src,Pluto-tv\/chromium-crosswalk,dednal\/chromium.src,ltilve\/chromium,axinging\/chromium-crosswalk,Jonekee\/chromium.src,dushu1203\/chromium.src,dushu1203\/chromium.src,ltilve\/chromium,PeterWangIntel\/chromium-crosswalk,Just-D\/chromium-1,M4sse\/chromium.src,mohamed--abdel-maksoud\/chromium.src,Chilledheart\/chromium,axinging\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,axinging\/chromium-crosswalk,Chilledheart\/chromium,krieger-od\/nwjs_chromium.src,markYoungH\/chromium.src,jaruba\/chromium.src,Jonekee\/chromium.src,fujunwei\/chromium-crosswalk,Jonekee\/chromium.src,fujunwei\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,TheTypoMaster\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,axinging\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,TheTypoMaster\/chromium-crosswalk,markYoungH\/chromium.src,hgl888\/chromium-crosswalk,dednal\/chromium.src,fujunwei\/chromium-crosswalk,dushu1203\/chromium.src,fujunwei\/chromium-crosswalk,Jonekee\/chromium.src,fujunwei\/chromium-crosswalk,Fireblend\/chromium-crosswalk,chuan9\/chromium-crosswalk,chuan9\/chromium-crosswalk,ltilve\/chromium,axinging\/chromium-crosswalk,fujunwei\/chromium-crosswalk,axinging\/chromium-crosswalk,fujunwei\/chromium-crosswalk,Jonekee\/chromium.src,ltilve\/chromium,krieger-od\/nwjs_chromium.src,dednal\/chromium.src,markYoungH\/chromium.src,TheTypoMaster\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,markYoungH\/chromium.src,Just-D\/chromium-1,axinging\/chromium-crosswalk,markYoungH\/chromium.src,Fireblend\/chromium-crosswalk,ltilve\/chromium,ltilve\/chromium,krieger-od\/nwjs_chromium.src,fujunwei\/chromium-crosswalk,chuan9\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,M4sse\/chromium.src,axinging\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,PeterWangIntel\/chromium-crosswalk,Jonekee\/chromium.src,TheTypoMaster\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,Fireblend\/chromium-crosswalk,M4sse\/chromium.src,Just-D\/chromium-1,hgl888\/chromium-crosswalk,ltilve\/chromium,dushu1203\/chromium.src,Chilledheart\/chromium,Jonekee\/chromium.src,Jonekee\/chromium.src,jaruba\/chromium.src,Fireblend\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,Jonekee\/chromium.src,Just-D\/chromium-1,TheTypoMaster\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,jaruba\/chromium.src,dushu1203\/chromium.src,dednal\/chromium.src,chuan9\/chromium-crosswalk,Just-D\/chromium-1,jaruba\/chromium.src,Jonekee\/chromium.src,jaruba\/chromium.src,dushu1203\/chromium.src,Fireblend\/chromium-crosswalk,markYoungH\/chromium.src,hgl888\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk,chuan9\/chromium-crosswalk,markYoungH\/chromium.src,dushu1203\/chromium.src,ltilve\/chromium,hgl888\/chromium-crosswalk,M4sse\/chromium.src,PeterWangIntel\/chromium-crosswalk,M4sse\/chromium.src,dushu1203\/chromium.src,dednal\/chromium.src,Pluto-tv\/chromium-crosswalk,markYoungH\/chromium.src,M4sse\/chromium.src,Fireblend\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,dednal\/chromium.src,dushu1203\/chromium.src,chuan9\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,krieger-od\/nwjs_chromium.src,Pluto-tv\/chromium-crosswalk,dednal\/chromium.src,TheTypoMaster\/chromium-crosswalk,jaruba\/chromium.src,dednal\/chromium.src,PeterWangIntel\/chromium-crosswalk,markYoungH\/chromium.src,Just-D\/chromium-1,jaruba\/chromium.src,jaruba\/chromium.src,axinging\/chromium-crosswalk,Chilledheart\/chromium,M4sse\/chromium.src,jaruba\/chromium.src,markYoungH\/chromium.src,PeterWangIntel\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,Chilledheart\/chromium,mohamed--abdel-maksoud\/chromium.src,PeterWangIntel\/chromium-crosswalk,axinging\/chromium-crosswalk,Just-D\/chromium-1,Pluto-tv\/chromium-crosswalk,hgl888\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,dushu1203\/chromium.src,mohamed--abdel-maksoud\/chromium.src,Fireblend\/chromium-crosswalk,axinging\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,PeterWangIntel\/chromium-crosswalk,chuan9\/chromium-crosswalk,M4sse\/chromium.src,chuan9\/chromium-crosswalk,dednal\/chromium.src,Chilledheart\/chromium,jaruba\/chromium.src,fujunwei\/chromium-crosswalk,M4sse\/chromium.src,dednal\/chromium.src,mohamed--abdel-maksoud\/chromium.src,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk,hgl888\/chromium-crosswalk,ltilve\/chromium,markYoungH\/chromium.src,hgl888\/chromium-crosswalk,Just-D\/chromium-1,Pluto-tv\/chromium-crosswalk,Fireblend\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,Chilledheart\/chromium,Fireblend\/chromium-crosswalk,Chilledheart\/chromium,Jonekee\/chromium.src,TheTypoMaster\/chromium-crosswalk"} {"commit":"ad8bedc4b56f6376e32938c1cdbf7156817a9d17","old_file":"examples\/ipv6\/slip-radio\/slip-radio-cooja.c","new_file":"examples\/ipv6\/slip-radio\/slip-radio-cooja.c","old_contents":"","new_contents":"\/*\n * Copyright (c) 2011, Swedish Institute of Computer Science\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and\/or other materials provided with the distribution.\n * 3. Neither the name of the Institute nor the names of its contributors\n * may be used to endorse or promote products derived from this software\n * without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n *\n * This file is part of the Contiki operating system.\n *\n * Sets up some commands for the CC2420 radio chip.\n *\/\n\n#include \"contiki.h\"\n#include \"contiki-net.h\"\n#include \"cooja-radio.h\"\n#include \"cmd.h\"\n#include \n#include \n#include \"net\/mac\/frame802154.h\"\n\nint\ncmd_handler_cooja(const uint8_t *data, int len)\n{\n if(data[0] == '!') {\n if(data[1] == 'C' && len == 3) {\n printf(\"cooja_cmd: setting channel: %d\\n\", data[2]);\n radio_set_channel(data[2]);\n return 1;\n } else if(data[1] == 'M' && len == 10) {\n printf(\"cooja_cmd: Got MAC\\n\");\n memcpy(uip_lladdr.addr, data+2, sizeof(uip_lladdr.addr));\n linkaddr_set_node_addr((linkaddr_t *) uip_lladdr.addr);\n return 1;\n }\n } else if(data[0] == '?') {\n if(data[1] == 'C' && len == 2) {\n uint8_t buf[4];\n printf(\"cooja_cmd: getting channel: %d\\n\", data[2]);\n buf[0] = '!';\n buf[1] = 'C';\n buf[2] = 0;\n cmd_send(buf, 3);\n return 1;\n }\n }\n return 0;\n}\n","subject":"Add slip-radio interface module for cooja-radio","message":"Add slip-radio interface module for cooja-radio\n","lang":"C","license":"bsd-3-clause","repos":"bluerover\/6lbr,bluerover\/6lbr,bluerover\/6lbr,bluerover\/6lbr,bluerover\/6lbr,bluerover\/6lbr,bluerover\/6lbr"} {"commit":"1398f48d8247d4cc3d11fff787d39e79228e6f04","old_file":"ios\/template\/GMPExample\/AppDelegate.h","new_file":"ios\/template\/GMPExample\/AppDelegate.h","old_contents":"\/\/\n\/\/ Copyright (c) 2015 Google Inc.\n\/\/\n\/\/ Licensed under the Apache License, Version 2.0 (the \"License\");\n\/\/ you may not use this file except in compliance with the License.\n\/\/ You may obtain a copy of the License at\n\/\/\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\/\/\n\/\/ Unless required by applicable law or agreed to in writing, software\n\/\/ distributed under the License is distributed on an \"AS IS\" BASIS,\n\/\/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\/\/ See the License for the specific language governing permissions and\n\/\/ limitations under the License.\n\/\/\n\n#import \n\n@interface AppDelegate : UIResponder \n\n@property (strong, nonatomic) UIWindow *window;\n\n@end\n","new_contents":"\/\/\n\/\/ Copyright (c) 2015 Google Inc.\n\/\/\n\/\/ Licensed under the Apache License, Version 2.0 (the \"License\");\n\/\/ you may not use this file except in compliance with the License.\n\/\/ You may obtain a copy of the License at\n\/\/\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\/\/\n\/\/ Unless required by applicable law or agreed to in writing, software\n\/\/ distributed under the License is distributed on an \"AS IS\" BASIS,\n\/\/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\/\/ See the License for the specific language governing permissions and\n\/\/ limitations under the License.\n\/\/\n\n#import \n\n@interface AppDelegate : UIResponder \n\n@property (nonatomic, strong) UIWindow *window;\n\n@end\n","subject":"Fix order of property attributes","message":"Fix order of property attributes\n\nChange-Id: I7a313d25a6707bada03328b0799300f07a26ba3b\n","lang":"C","license":"apache-2.0","repos":"ravifullestop\/google-services,ardock\/google-services,ardock\/google-services,mashamaziuk\/google-services,rahulbhati\/google-services,shinhithi\/google-services,dejavu1988\/google-services,seecahkhing\/google-services,cloudmine\/android-gcm-example,wonderL0\/second,javijuol\/google-services,vinod-jaiswal18\/google-services,hay12396\/GoogleServices,tiembo\/google-services,zubbles\/-https-github.com-googlesamples-google-services,wonderL0\/second,enba417\/google-services,KozakOlegko\/google-services,ardock\/google-services,zubbles\/-https-github.com-googlesamples-google-services,wonderL0\/second,CSdummy24\/Test,jlvivero\/googlestuff,msoftware\/google-services,ingdjason\/google-services,jsavage\/google-services,CloromiroJ\/joanma,tranxuanloc\/google-services,CloromiroJ\/joanma,dejavu1988\/google-services,vinod-jaiswal18\/google-services,mgupta133\/googlemohit,tiembo\/google-services,adamhongmy\/google-services,VenkataYerneni\/Android-Push,CSdummy24\/Test,rahulbhati\/google-services,rokity\/GCM-Sample,rishikksh20\/google-services,fhaoquan\/google-services,Belthazor2008\/google-services,KozakOlegko\/google-services,renekaigen\/google-services,ton1n8o\/GCM_Tutorial,whegreen\/google-services,AdamRLukaitis\/google-services,dandanthio\/google-services,t9nf\/google-services,skykelsey\/google-services,t9nf\/google-services,mucahitsidimi\/google-services,tranxuanloc\/google-services,LFSDeveloper\/google-services,javijuol\/google-services,googlesamples\/google-services,mgupta133\/googlemohit2,shilpasweth\/google-services,AdamRLukaitis\/google-services,ank5kumar\/google-services,ank5kumar\/google-services,LFSDeveloper\/google-services,shilpasweth\/google-services,VenkataYerneni\/Android-Push,enba417\/google-services,dandanthio\/google-services,rokity\/GCM-Sample,mucahitsidimi\/google-services,Grimmjowjack\/google-services,xerex09\/google-login,rishikksh20\/google-services,ank5kumar\/google-services,bgdavidx\/google-services,Syncano\/google-services-example,lolkabagm\/google-services,KozakOlegko\/google-services,Belthazor2008\/google-services,rishikksh20\/google-services,ton1n8o\/GCM_Tutorial,renekaigen\/google-services,magicgoose\/google-services,Jonadg91\/google-services,rahulbhati\/google-services,rafahells\/google-services,Jonadg91\/google-services,SunghanKim\/google-services,fhaoquan\/google-services,LFSDeveloper\/google-services,suclike\/google-services,CSdummy24\/Test,msoftware\/google-services,googlesamples\/google-services,HaiLe\/google-services,samtstern\/google-services,skykelsey\/google-services,kuassivi\/google-services,t9nf\/google-services,kuassivi\/google-services,t9nf\/google-services,renekaigen\/google-services,renekaigen\/google-services,vertxx\/google-services,skykelsey\/google-services,jsavage\/google-services,seecahkhing\/google-services,samtstern\/google-services,mgupta133\/googlemohit,hongnguyenpro\/google-services,ingdjason\/google-services,msoftware\/google-services,ingdjason\/google-services,fhaoquan\/google-services,whegreen\/google-services,xerex09\/google-login,ton1n8o\/GCM_Tutorial,shinhithi\/google-services,yuvraaz\/android-push-notification,dandanthio\/google-services,adamhongmy\/google-services,rokity\/GCM-Sample,ardock\/google-services,PenguinSusan\/google-services,rokity\/GCM-Sample,enba417\/google-services,YaliWang0523\/google-services,seecahkhing\/google-services,Shinruw\/GA,YaliWang0523\/google-services,sangupandi\/google-services,sangupandi\/google-services,googlesamples\/google-services,ravifullestop\/google-services,mgupta133\/googlemohit,tranxuanloc\/google-services,rockgtzexe\/try,Syncano\/google-services-example,rafahells\/google-services,cloudmine\/android-gcm-example,vertxx\/google-services,VenkataYerneni\/Android-Push,whegreen\/google-services,suclike\/google-services,rahulbhati\/google-services,hongnguyenpro\/google-services,mucahitsidimi\/google-services,adamhongmy\/google-services,sangupandi\/google-services,lolkabagm\/google-services,magicgoose\/google-services,Shekharrajak\/google-services,SunghanKim\/google-services,ton1n8o\/GCM_Tutorial,hongnguyenpro\/google-services,Grimmjowjack\/google-services,CloromiroJ\/joanma,Belthazor2008\/google-services,ravifullestop\/google-services,yuvraaz\/android-push-notification,magicgoose\/google-services,javijuol\/google-services,xerex09\/google-login,samtstern\/google-services,hay12396\/GoogleServices,hay12396\/GoogleServices,sangupandi\/google-services,cloudmine\/android-gcm-example,ya7lelkom\/google-services-play,Shekharrajak\/google-services,lolkabagm\/google-services,jsavage\/google-services,suclike\/google-services,ank5kumar\/google-services,Aditya8795\/GCM-demo,googlesamples\/google-services,kuassivi\/google-services,seecahkhing\/google-services,adamhongmy\/google-services,samtstern\/google-services,tranxuanloc\/google-services,ya7lelkom\/google-services-play,vertxx\/google-services,mgupta133\/googlemohit,shilpasweth\/google-services,zubbles\/-https-github.com-googlesamples-google-services,Shinruw\/GA,shilpasweth\/google-services,mashamaziuk\/google-services,Jonadg91\/google-services,jlvivero\/googlestuff,Syncano\/google-services-example,AdamRLukaitis\/google-services,HaiLe\/google-services,SunghanKim\/google-services,Syncano\/google-services-example,rockgtzexe\/try,Prof-Greipl\/google-services,magicgoose\/google-services,mashamaziuk\/google-services,dejavu1988\/google-services,tiembo\/google-services,PenguinSusan\/google-services,Grimmjowjack\/google-services,jsavage\/google-services,Belthazor2008\/google-services,PenguinSusan\/google-services,mucahitsidimi\/google-services,whegreen\/google-services,Shinruw\/GA,CloromiroJ\/joanma,CSdummy24\/Test,ya7lelkom\/google-services-play,SunghanKim\/google-services,shinhithi\/google-services,LFSDeveloper\/google-services,Shekharrajak\/google-services,Prof-Greipl\/google-services,msoftware\/google-services,rishikksh20\/google-services,ravifullestop\/google-services,mgupta133\/googlemohit2,jlvivero\/googlestuff,Shinruw\/GA,yuvraaz\/android-push-notification,hay12396\/GoogleServices,vinod-jaiswal18\/google-services,Prof-Greipl\/google-services,zubbles\/-https-github.com-googlesamples-google-services,KozakOlegko\/google-services,enba417\/google-services,vertxx\/google-services,lolkabagm\/google-services,fhaoquan\/google-services,yuvraaz\/android-push-notification,jlvivero\/googlestuff,rockgtzexe\/try,Aditya8795\/GCM-demo,Aditya8795\/GCM-demo,Shekharrajak\/google-services,ingdjason\/google-services,javijuol\/google-services,HaiLe\/google-services,Aditya8795\/GCM-demo,vinod-jaiswal18\/google-services,HaiLe\/google-services,skykelsey\/google-services,bgdavidx\/google-services,rafahells\/google-services,mgupta133\/googlemohit2,wonderL0\/second,YaliWang0523\/google-services,tiembo\/google-services,Jonadg91\/google-services,VenkataYerneni\/Android-Push,cloudmine\/android-gcm-example,bgdavidx\/google-services,rockgtzexe\/try,kuassivi\/google-services,ya7lelkom\/google-services-play,hongnguyenpro\/google-services,dejavu1988\/google-services,mashamaziuk\/google-services,xerex09\/google-login,YaliWang0523\/google-services,shinhithi\/google-services,PenguinSusan\/google-services,rafahells\/google-services,dandanthio\/google-services,bgdavidx\/google-services,Prof-Greipl\/google-services,AdamRLukaitis\/google-services,Grimmjowjack\/google-services,suclike\/google-services,mgupta133\/googlemohit2"} {"commit":"aca553955645429e0d8fc7cdfcf9dab1f541c0f8","old_file":"src\/libcol\/util\/logger.c","new_file":"src\/libcol\/util\/logger.c","old_contents":"#include \n\n#include \"col-internal.h\"\n\nstruct ColLogger\n{\n ColInstance *col;\n \/* This is reset on each call to col_log() *\/\n apr_pool_t *tmp_pool;\n};\n\nColLogger *\nlogger_make(ColInstance *col)\n{\n ColLogger *logger;\n\n logger = apr_pcalloc(col->pool, sizeof(*logger));\n logger->tmp_pool = make_subpool(col->pool);\n\n return logger;\n}\n\nvoid\ncol_log(ColInstance *col, const char *fmt, ...)\n{\n va_list args;\n char *str;\n\n va_start(args, fmt);\n str = apr_pvsprintf(col->log->tmp_pool, fmt, args);\n va_end(args);\n\n fprintf(stdout, \"LOG: %s\\n\", str);\n apr_pool_clear(col->log->tmp_pool);\n}\n\nchar *\nlog_tuple(ColInstance *col, Tuple *tuple)\n{\n char *tuple_str = tuple_to_str(tuple, col->log->tmp_pool);\n return apr_pstrcat(col->log->tmp_pool, \"{\", tuple_str, \"}\", NULL);\n}\n\nchar *\nlog_datum(ColInstance *col, Datum datum, DataType type)\n{\n StrBuf *sbuf;\n\n sbuf = sbuf_make(col->log->tmp_pool);\n datum_to_str(datum, type, sbuf);\n sbuf_append_char(sbuf, '\\0');\n return sbuf->data;\n}\n","new_contents":"#include \n\n#include \"col-internal.h\"\n\nstruct ColLogger\n{\n ColInstance *col;\n \/* This is reset on each call to col_log() *\/\n apr_pool_t *tmp_pool;\n};\n\nColLogger *\nlogger_make(ColInstance *col)\n{\n ColLogger *logger;\n\n logger = apr_pcalloc(col->pool, sizeof(*logger));\n logger->tmp_pool = make_subpool(col->pool);\n\n return logger;\n}\n\nvoid\ncol_log(ColInstance *col, const char *fmt, ...)\n{\n va_list args;\n char *str;\n\n va_start(args, fmt);\n str = apr_pvsprintf(col->log->tmp_pool, fmt, args);\n va_end(args);\n\n fprintf(stdout, \"LOG (%d): %s\\n\", col->port, str);\n apr_pool_clear(col->log->tmp_pool);\n}\n\nchar *\nlog_tuple(ColInstance *col, Tuple *tuple)\n{\n char *tuple_str = tuple_to_str(tuple, col->log->tmp_pool);\n return apr_pstrcat(col->log->tmp_pool, \"{\", tuple_str, \"}\", NULL);\n}\n\nchar *\nlog_datum(ColInstance *col, Datum datum, DataType type)\n{\n StrBuf *sbuf;\n\n sbuf = sbuf_make(col->log->tmp_pool);\n datum_to_str(datum, type, sbuf);\n sbuf_append_char(sbuf, '\\0');\n return sbuf->data;\n}\n","subject":"Include port number in col_log() output.","message":"Include port number in col_log() output.\n","lang":"C","license":"mit","repos":"bloom-lang\/c4,bloom-lang\/c4,bloom-lang\/c4"} {"commit":"3a17534c8858f0a95f6347f96aff11948f4267b8","old_file":"eg\/inc\/LinkDef.h","new_file":"eg\/inc\/LinkDef.h","old_contents":"\/* @(#)root\/eg:$Name: $:$Id: LinkDef.h,v 1.2 2000\/09\/06 15:15:18 brun Exp $ *\/\n\n\/*************************************************************************\n * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *\n * All rights reserved. *\n * *\n * For the licensing terms see $ROOTSYS\/LICENSE. *\n * For the list of contributors see $ROOTSYS\/README\/CREDITS. *\n *************************************************************************\/\n\n#ifdef __CINT__\n\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma link off all functions;\n\n#pragma link C++ class TParticle-;\n#pragma link C++ class TAttParticle;\n#pragma link C++ class TPrimary;\n#pragma link C++ class TGenerator-;\n#pragma link C++ class TDatabasePDG+;\n#pragma link C++ class TParticlePDG+;\n\n#endif\n","new_contents":"\/* @(#)root\/eg:$Name: $:$Id: LinkDef.h,v 1.3 2000\/09\/08 16:42:12 brun Exp $ *\/\n\n\/*************************************************************************\n * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *\n * All rights reserved. *\n * *\n * For the licensing terms see $ROOTSYS\/LICENSE. *\n * For the list of contributors see $ROOTSYS\/README\/CREDITS. *\n *************************************************************************\/\n\n#ifdef __CINT__\n\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma link off all functions;\n\n#pragma link C++ class TParticle-;\n#pragma link C++ class TAttParticle+;\n#pragma link C++ class TPrimary+;\n#pragma link C++ class TGenerator+;\n#pragma link C++ class TDatabasePDG+;\n#pragma link C++ class TParticlePDG+;\n\n#endif\n","subject":"Use option + for TAttParticle and TPrimary","message":"Use option + for TAttParticle and TPrimary\n\n\ngit-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@932 27541ba8-7e3a-0410-8455-c3a389f83636\n","lang":"C","license":"lgpl-2.1","repos":"bbannier\/ROOT,bbannier\/ROOT,bbannier\/ROOT,dawehner\/root,dawehner\/root,dawehner\/root,bbannier\/ROOT,bbannier\/ROOT,bbannier\/ROOT,dawehner\/root,dawehner\/root,dawehner\/root,bbannier\/ROOT,dawehner\/root,dawehner\/root"} {"commit":"175cd65e582181d18041f604ffd06730f1109e86","old_file":"SQLPackRatJSON\/SQLPackRatJSON-Bridging-Header.h","new_file":"SQLPackRatJSON\/SQLPackRatJSON-Bridging-Header.h","old_contents":"\/\/\n\/\/ Use this file to import your target's public headers that you would like to expose to Swift.\n\/\/\n\n#import \"SQLPackRat.h\"\n","new_contents":"\/\/\n\/\/ Use this file to import your target's public headers that you would like to expose to Swift.\n\/\/\n\n#import \"SQLPackRat.h\"\n#import \n","subject":"Include sqlite3 in bridging header.","message":"Include sqlite3 in bridging header.\n","lang":"C","license":"mit","repos":"tewha\/SQLPackRat,tewha\/SQLPackRat"} {"commit":"518d3b528894007e746413079241cfba4ae5c07a","old_file":"clangd\/index\/SymbolCollector.h","new_file":"clangd\/index\/SymbolCollector.h","old_contents":"\/\/===--- SymbolCollector.h ---------------------------------------*- C++-*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#include \"Index.h\"\n\n#include \"clang\/Index\/IndexDataConsumer.h\"\n#include \"clang\/Index\/IndexSymbol.h\"\n\nnamespace clang {\nnamespace clangd {\n\n\/\/ Collect all symbols from an AST.\n\/\/\n\/\/ Clients (e.g. clangd) can use SymbolCollector together with\n\/\/ index::indexTopLevelDecls to retrieve all symbols when the source file is\n\/\/ changed.\nclass SymbolCollector : public index::IndexDataConsumer {\npublic:\n SymbolCollector() = default;\n\n bool\n handleDeclOccurence(const Decl *D, index::SymbolRoleSet Roles,\n ArrayRef Relations, FileID FID,\n unsigned Offset,\n index::IndexDataConsumer::ASTNodeInfo ASTNode) override;\n\n void finish() override;\n\n SymbolSlab takeSymbols() const { return std::move(Symbols); }\n\nprivate:\n \/\/ All Symbols collected from the AST.\n SymbolSlab Symbols;\n};\n\n} \/\/ namespace clangd\n} \/\/ namespace clang\n","new_contents":"\/\/===--- SymbolCollector.h ---------------------------------------*- C++-*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#include \"Index.h\"\n\n#include \"clang\/Index\/IndexDataConsumer.h\"\n#include \"clang\/Index\/IndexSymbol.h\"\n\nnamespace clang {\nnamespace clangd {\n\n\/\/ Collect all symbols from an AST.\n\/\/\n\/\/ Clients (e.g. clangd) can use SymbolCollector together with\n\/\/ index::indexTopLevelDecls to retrieve all symbols when the source file is\n\/\/ changed.\nclass SymbolCollector : public index::IndexDataConsumer {\npublic:\n SymbolCollector() = default;\n\n bool\n handleDeclOccurence(const Decl *D, index::SymbolRoleSet Roles,\n ArrayRef Relations, FileID FID,\n unsigned Offset,\n index::IndexDataConsumer::ASTNodeInfo ASTNode) override;\n\n void finish() override;\n\n SymbolSlab takeSymbols() { return std::move(Symbols); }\n\nprivate:\n \/\/ All Symbols collected from the AST.\n SymbolSlab Symbols;\n};\n\n} \/\/ namespace clangd\n} \/\/ namespace clang\n","subject":"Remove the const specifier of the takeSymbol method","message":"[clangd] Remove the const specifier of the takeSymbol method\n\notherwise we will copy an object.\n\ngit-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@320574 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang-tools-extra,llvm-mirror\/clang-tools-extra,llvm-mirror\/clang-tools-extra,llvm-mirror\/clang-tools-extra"} {"commit":"c21f7a527f7757a0e246cea521a5dd3b8e1224d5","old_file":"drivers\/char\/hvc_irq.c","new_file":"drivers\/char\/hvc_irq.c","old_contents":"\/*\n * Copyright IBM Corp. 2001,2008\n *\n * This file contains the IRQ specific code for hvc_console\n *\n *\/\n\n#include \n\n#include \"hvc_console.h\"\n\nstatic irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance)\n{\n\t\/* if hvc_poll request a repoll, then kick the hvcd thread *\/\n\tif (hvc_poll(dev_instance))\n\t\thvc_kick();\n\treturn IRQ_HANDLED;\n}\n\n\/*\n * For IRQ based systems these callbacks can be used\n *\/\nint notifier_add_irq(struct hvc_struct *hp, int irq)\n{\n\tint rc;\n\n\tif (!irq) {\n\t\thp->irq_requested = 0;\n\t\treturn 0;\n\t}\n\trc = request_irq(irq, hvc_handle_interrupt, IRQF_DISABLED,\n\t\t\t \"hvc_console\", hp);\n\tif (!rc)\n\t\thp->irq_requested = 1;\n\treturn rc;\n}\n\nvoid notifier_del_irq(struct hvc_struct *hp, int irq)\n{\n\tif (!irq)\n\t\treturn;\n\tfree_irq(irq, hp);\n\thp->irq_requested = 0;\n}\n\nvoid notifier_hangup_irq(struct hvc_struct *hp, int irq)\n{\n\tnotifier_del_irq(hp, irq);\n}\n","new_contents":"\/*\n * Copyright IBM Corp. 2001,2008\n *\n * This file contains the IRQ specific code for hvc_console\n *\n *\/\n\n#include \n\n#include \"hvc_console.h\"\n\nstatic irqreturn_t hvc_handle_interrupt(int irq, void *dev_instance)\n{\n\t\/* if hvc_poll request a repoll, then kick the hvcd thread *\/\n\tif (hvc_poll(dev_instance))\n\t\thvc_kick();\n\treturn IRQ_HANDLED;\n}\n\n\/*\n * For IRQ based systems these callbacks can be used\n *\/\nint notifier_add_irq(struct hvc_struct *hp, int irq)\n{\n\tint rc;\n\n\tif (!irq) {\n\t\thp->irq_requested = 0;\n\t\treturn 0;\n\t}\n\trc = request_irq(irq, hvc_handle_interrupt, IRQF_DISABLED,\n\t\t\t \"hvc_console\", hp);\n\tif (!rc)\n\t\thp->irq_requested = 1;\n\treturn rc;\n}\n\nvoid notifier_del_irq(struct hvc_struct *hp, int irq)\n{\n\tif (!hp->irq_requested)\n\t\treturn;\n\tfree_irq(irq, hp);\n\thp->irq_requested = 0;\n}\n\nvoid notifier_hangup_irq(struct hvc_struct *hp, int irq)\n{\n\tnotifier_del_irq(hp, irq);\n}\n","subject":"Call free_irq() only if request_irq() was successful","message":"hvc_console: Call free_irq() only if request_irq() was successful\n\nOnly call free_irq if we marked the request_irq has having succeeded\ninstead of whenever the the sub-driver identified the interrupt to use.\n\nSigned-off-by: Milton Miller <8bd50e0fc26e21e23b28837d9acdf866b237c39d@bga.com>\nSigned-off-by: Benjamin Herrenschmidt \n","lang":"C","license":"mit","repos":"KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs"} {"commit":"c8d56e1370657b609066f18fddac2b3005cfe3e0","old_file":"ext\/cuuid\/cuuid.c","new_file":"ext\/cuuid\/cuuid.c","old_contents":"#include \n#include \n\n\/\/ Define our module constant\nVALUE CUUID = Qnil;\n\n\/\/ Prototype this\nvoid Init_cuuid();\n\n\/\/ Prototype CUUID.generate\nVALUE method_generate();\n\n\/\/ Define CUUID and the fact it has a class method called generate\nvoid Init_cuuid() {\n int arg_count = 0;\n CUUID = rb_define_module(\"CUUID\");\n rb_define_module_function(CUUID, \"generate\", method_generate, arg_count);\n}\n\n\/\/ Implement CUUID.generate\nVALUE method_generate(VALUE self) {\n uuid_t uuid_id;\n char uuid_str[128];\n\n \/\/ Generate UUID and grab string version of it\n uuid_generate(uuid_id);\n uuid_unparse(uuid_id, uuid_str);\n\n \/\/ Cast it into a ruby string and return it\n return rb_str_new2(uuid_str);\n}\n","new_contents":"#include \n#include \n\n\/\/ Define our module constant\nVALUE CUUID = Qnil;\n\n\/\/ Prototype this\nvoid Init_cuuid();\n\n\/\/ Prototype CUUID.generate\nVALUE method_generate();\n\n\/\/ Define CUUID and the fact it has a class method called generate\nvoid Init_cuuid() {\n int arg_count = 0;\n CUUID = rb_define_module(\"CUUID\");\n rb_define_module_function(CUUID, \"generate\", method_generate, arg_count);\n}\n\n\/\/ Implement CUUID.generate\nstatic VALUE method_generate(VALUE self) {\n uuid_t uuid_id;\n char uuid_str[128];\n\n \/\/ Generate UUID and grab string version of it\n uuid_generate(uuid_id);\n uuid_unparse(uuid_id, uuid_str);\n\n \/\/ Cast it into a ruby string and return it\n return rb_str_new2(uuid_str);\n}\n","subject":"Make method_generate a static method","message":"Make method_generate a static method\n\nThanks to @gnufied for the advice!\n","lang":"C","license":"mit","repos":"EmberAds\/cuuid,EmberAds\/cuuid,EmberAds\/cuuid"} {"commit":"bafe68034e3ef5e9f512bd0468001caf34981c41","old_file":"include\/asm-avr32\/byteorder.h","new_file":"include\/asm-avr32\/byteorder.h","old_contents":"\/*\n * AVR32 endian-conversion functions.\n *\/\n#ifndef __ASM_AVR32_BYTEORDER_H\n#define __ASM_AVR32_BYTEORDER_H\n\n#include \n#include \n\n#ifdef __CHECKER__\nextern unsigned long __builtin_bswap_32(unsigned long x);\nextern unsigned short __builtin_bswap_16(unsigned short x);\n#endif\n\n#define __arch__swab32(x) __builtin_bswap_32(x)\n#define __arch__swab16(x) __builtin_bswap_16(x)\n\n#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)\n# define __BYTEORDER_HAS_U64__\n# define __SWAB_64_THRU_32__\n#endif\n\n#include \n\n#endif \/* __ASM_AVR32_BYTEORDER_H *\/\n","new_contents":"\/*\n * AVR32 endian-conversion functions.\n *\/\n#ifndef __ASM_AVR32_BYTEORDER_H\n#define __ASM_AVR32_BYTEORDER_H\n\n#include \n#include \n\n#ifdef __CHECKER__\nextern unsigned long __builtin_bswap_32(unsigned long x);\nextern unsigned short __builtin_bswap_16(unsigned short x);\n#endif\n\n\/*\n * avr32-linux-gcc versions earlier than 4.2 improperly sign-extends\n * the result.\n *\/\n#if !(__GNUC__ == 4 && __GNUC_MINOR__ < 2)\n#define __arch__swab32(x) __builtin_bswap_32(x)\n#define __arch__swab16(x) __builtin_bswap_16(x)\n#endif\n\n#if !defined(__STRICT_ANSI__) || defined(__KERNEL__)\n# define __BYTEORDER_HAS_U64__\n# define __SWAB_64_THRU_32__\n#endif\n\n#include \n\n#endif \/* __ASM_AVR32_BYTEORDER_H *\/\n","subject":"Work around byteswap bug in gcc < 4.2","message":"avr32: Work around byteswap bug in gcc < 4.2\n\ngcc versions earlier than 4.2 sign-extends the result of le16_to_cpu()\nand friends when we implement __arch__swabX() using\n__builtin_bswap_X(). Disable our arch-specific optimizations when those\ngcc versions are being used.\n\nSigned-off-by: Haavard Skinnemoen \n","lang":"C","license":"apache-2.0","repos":"TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs"} {"commit":"5488c753530b7b08437df6115a2c2c6156c2f0f6","old_file":"include\/linux\/sunserialcore.h","new_file":"include\/linux\/sunserialcore.h","old_contents":"\/* sunserialcore.h\n *\n * Generic SUN serial\/kbd\/ms layer. Based entirely\n * upon drivers\/sbus\/char\/sunserial.h which is:\n *\n * Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)\n *\n * Port to new UART layer is:\n *\n * Copyright (C) 2002 David S. Miller (davem@redhat.com)\n *\/\n\n#ifndef _SERIAL_SUN_H\n#define _SERIAL_SUN_H\n\n\/* Serial keyboard defines for L1-A processing... *\/\n#define SUNKBD_RESET\t\t0xff\n#define SUNKBD_L1\t\t0x01\n#define SUNKBD_UP\t\t0x80\n#define SUNKBD_A\t\t0x4d\n\nextern unsigned int suncore_mouse_baud_cflag_next(unsigned int, int *);\nextern int suncore_mouse_baud_detection(unsigned char, int);\n\nextern int sunserial_register_minors(struct uart_driver *, int);\nextern void sunserial_unregister_minors(struct uart_driver *, int);\n\nextern int sunserial_console_match(struct console *, struct device_node *,\n\t\t\t\t struct uart_driver *, int, bool);\nextern void sunserial_console_termios(struct console *,\n\t\t\t\t struct device_node *);\n\n#endif \/* !(_SERIAL_SUN_H) *\/\n","new_contents":"\/* sunserialcore.h\n *\n * Generic SUN serial\/kbd\/ms layer. Based entirely\n * upon drivers\/sbus\/char\/sunserial.h which is:\n *\n * Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)\n *\n * Port to new UART layer is:\n *\n * Copyright (C) 2002 David S. Miller (davem@redhat.com)\n *\/\n\n#ifndef _SERIAL_SUN_H\n#define _SERIAL_SUN_H\n\n#include \n#include \n#include \n\n\/* Serial keyboard defines for L1-A processing... *\/\n#define SUNKBD_RESET\t\t0xff\n#define SUNKBD_L1\t\t0x01\n#define SUNKBD_UP\t\t0x80\n#define SUNKBD_A\t\t0x4d\n\nextern unsigned int suncore_mouse_baud_cflag_next(unsigned int, int *);\nextern int suncore_mouse_baud_detection(unsigned char, int);\n\nextern int sunserial_register_minors(struct uart_driver *, int);\nextern void sunserial_unregister_minors(struct uart_driver *, int);\n\nextern int sunserial_console_match(struct console *, struct device_node *,\n\t\t\t\t struct uart_driver *, int, bool);\nextern void sunserial_console_termios(struct console *,\n\t\t\t\t struct device_node *);\n\n#endif \/* !(_SERIAL_SUN_H) *\/\n","subject":"Fix build breakage from decoupling pps from tty","message":"pps: Fix build breakage from decoupling pps from tty\n\nFixes:\ntree: git:\/\/git.kernel.org\/pub\/scm\/linux\/kernel\/git\/gregkh\/tty.git tty-next\nhead: bc80fbe46be7430487a45ad92841932bb2eaa3e6\ncommit: 593fb1ae457aab28b392ac114f6e3358788da985 pps: Move timestamp read into PPS code proper\ndate: 78 minutes ago\nconfig: make ARCH=sparc defconfig\n\nAll error\/warnings:\n\n In file included from drivers\/tty\/serial\/suncore.c:20:0:\n>> include\/linux\/sunserialcore.h:29:15: warning: 'struct device_node' declared inside parameter list [enabled by default]\n>> include\/linux\/sunserialcore.h:29:15: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]\n>> include\/linux\/sunserialcore.h:31:18: warning: 'struct device_node' declared inside parameter list [enabled by default]\n>> drivers\/tty\/serial\/suncore.c:55:5: error: conflicting types for 'sunserial_console_match'\n include\/linux\/sunserialcore.h:28:12: note: previous declaration of 'sunserial_console_match' was here\n>> drivers\/tty\/serial\/suncore.c:83:1: error: conflicting types for 'sunserial_console_match'\n include\/linux\/sunserialcore.h:28:12: note: previous declaration of 'sunserial_console_match' was here\n>> drivers\/tty\/serial\/suncore.c:85:6: error: conflicting types for 'sunserial_console_termios'\n include\/linux\/sunserialcore.h:30:13: note: previous declaration of 'sunserial_console_termios' was here\n\nReported-by: kbuild test robot <24f7fe9d205c8a9f6ade0c2894e14303ca16087f@intel.com>\nCc: George Spelvin \nSigned-off-by: Peter Hurley <4b8373d016f277527198385ba72fda0feb5da015@hurleysoftware.com>\nSigned-off-by: Greg Kroah-Hartman <4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org>\n","lang":"C","license":"apache-2.0","repos":"TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas"} {"commit":"f768655c72cb93e263763f23b3238acd04ac2a19","old_file":"chrome\/renderer\/webview_color_overlay.h","new_file":"chrome\/renderer\/webview_color_overlay.h","old_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_\n#define CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_\n#pragma once\n\n#include \"base\/basictypes.h\"\n#include \"base\/compiler_specific.h\"\n#include \"third_party\/skia\/include\/core\/SkColor.h\"\n#include \"third_party\/WebKit\/Source\/WebKit\/chromium\/public\/WebPageOverlay.h\"\n#include \"third_party\/WebKit\/Source\/WebKit\/chromium\/public\/WebRect.h\"\n\nnamespace content {\nclass RenderView;\n}\n\n\/\/ This class draws the given color on a PageOverlay of a WebView.\nclass WebViewColorOverlay : public WebKit::WebPageOverlay {\n public:\n WebViewColorOverlay(content::RenderView* render_view, SkColor color);\n virtual ~WebViewColorOverlay();\n\n private:\n \/\/ WebKit::WebPageOverlay implementation:\n virtual void paintPageOverlay(WebKit::WebCanvas* canvas);\n\n content::RenderView* render_view_;\n SkColor color_;\n\n DISALLOW_COPY_AND_ASSIGN(WebViewColorOverlay);\n};\n\n#endif \/\/ CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_\n","new_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_\n#define CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_\n#pragma once\n\n#include \"base\/basictypes.h\"\n#include \"base\/compiler_specific.h\"\n#include \"third_party\/skia\/include\/core\/SkColor.h\"\n#include \"third_party\/WebKit\/Source\/WebKit\/chromium\/public\/WebPageOverlay.h\"\n#include \"third_party\/WebKit\/Source\/WebKit\/chromium\/public\/platform\/WebRect.h\"\n\nnamespace content {\nclass RenderView;\n}\n\n\/\/ This class draws the given color on a PageOverlay of a WebView.\nclass WebViewColorOverlay : public WebKit::WebPageOverlay {\n public:\n WebViewColorOverlay(content::RenderView* render_view, SkColor color);\n virtual ~WebViewColorOverlay();\n\n private:\n \/\/ WebKit::WebPageOverlay implementation:\n virtual void paintPageOverlay(WebKit::WebCanvas* canvas);\n\n content::RenderView* render_view_;\n SkColor color_;\n\n DISALLOW_COPY_AND_ASSIGN(WebViewColorOverlay);\n};\n\n#endif \/\/ CHROME_RENDERER_WEBVIEW_COLOR_OVERLAY_H_\n","subject":"Fix build break from the future.","message":"Fix build break from the future.\n\nTBR=pfeldman\nReview URL: http:\/\/codereview.chromium.org\/8801036\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@113098 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"Fireblend\/chromium-crosswalk,hujiajie\/pa-chromium,anirudhSK\/chromium,junmin-zhu\/chromium-rivertrail,pozdnyakov\/chromium-crosswalk,nacl-webkit\/chrome_deps,Fireblend\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,anirudhSK\/chromium,bright-sparks\/chromium-spacewalk,bright-sparks\/chromium-spacewalk,rogerwang\/chromium,keishi\/chromium,pozdnyakov\/chromium-crosswalk,fujunwei\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,mogoweb\/chromium-crosswalk,timopulkkinen\/BubbleFish,mohamed--abdel-maksoud\/chromium.src,krieger-od\/nwjs_chromium.src,M4sse\/chromium.src,dednal\/chromium.src,Chilledheart\/chromium,jaruba\/chromium.src,hgl888\/chromium-crosswalk-efl,ondra-novak\/chromium.src,junmin-zhu\/chromium-rivertrail,zcbenz\/cefode-chromium,junmin-zhu\/chromium-rivertrail,fujunwei\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,M4sse\/chromium.src,anirudhSK\/chromium,junmin-zhu\/chromium-rivertrail,Jonekee\/chromium.src,Just-D\/chromium-1,Chilledheart\/chromium,robclark\/chromium,TheTypoMaster\/chromium-crosswalk,M4sse\/chromium.src,hgl888\/chromium-crosswalk,keishi\/chromium,jaruba\/chromium.src,M4sse\/chromium.src,ChromiumWebApps\/chromium,fujunwei\/chromium-crosswalk,zcbenz\/cefode-chromium,ltilve\/chromium,krieger-od\/nwjs_chromium.src,Just-D\/chromium-1,dednal\/chromium.src,nacl-webkit\/chrome_deps,hgl888\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,Chilledheart\/chromium,Pluto-tv\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,Fireblend\/chromium-crosswalk,Just-D\/chromium-1,littlstar\/chromium.src,Chilledheart\/chromium,mogoweb\/chromium-crosswalk,anirudhSK\/chromium,junmin-zhu\/chromium-rivertrail,timopulkkinen\/BubbleFish,rogerwang\/chromium,Jonekee\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,timopulkkinen\/BubbleFish,dednal\/chromium.src,patrickm\/chromium.src,dushu1203\/chromium.src,jaruba\/chromium.src,anirudhSK\/chromium,fujunwei\/chromium-crosswalk,hgl888\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,mogoweb\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,hujiajie\/pa-chromium,markYoungH\/chromium.src,hgl888\/chromium-crosswalk,axinging\/chromium-crosswalk,chuan9\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,chuan9\/chromium-crosswalk,Just-D\/chromium-1,nacl-webkit\/chrome_deps,axinging\/chromium-crosswalk,mogoweb\/chromium-crosswalk,jaruba\/chromium.src,pozdnyakov\/chromium-crosswalk,hgl888\/chromium-crosswalk,Just-D\/chromium-1,axinging\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,markYoungH\/chromium.src,krieger-od\/nwjs_chromium.src,bright-sparks\/chromium-spacewalk,ChromiumWebApps\/chromium,jaruba\/chromium.src,robclark\/chromium,Fireblend\/chromium-crosswalk,hgl888\/chromium-crosswalk,dednal\/chromium.src,ChromiumWebApps\/chromium,littlstar\/chromium.src,Chilledheart\/chromium,Pluto-tv\/chromium-crosswalk,littlstar\/chromium.src,patrickm\/chromium.src,timopulkkinen\/BubbleFish,nacl-webkit\/chrome_deps,Pluto-tv\/chromium-crosswalk,zcbenz\/cefode-chromium,mogoweb\/chromium-crosswalk,mogoweb\/chromium-crosswalk,axinging\/chromium-crosswalk,markYoungH\/chromium.src,patrickm\/chromium.src,ChromiumWebApps\/chromium,Pluto-tv\/chromium-crosswalk,ondra-novak\/chromium.src,ltilve\/chromium,rogerwang\/chromium,dednal\/chromium.src,mogoweb\/chromium-crosswalk,anirudhSK\/chromium,Jonekee\/chromium.src,mogoweb\/chromium-crosswalk,Chilledheart\/chromium,ltilve\/chromium,dushu1203\/chromium.src,robclark\/chromium,axinging\/chromium-crosswalk,ondra-novak\/chromium.src,rogerwang\/chromium,krieger-od\/nwjs_chromium.src,Fireblend\/chromium-crosswalk,jaruba\/chromium.src,zcbenz\/cefode-chromium,chuan9\/chromium-crosswalk,M4sse\/chromium.src,Chilledheart\/chromium,krieger-od\/nwjs_chromium.src,rogerwang\/chromium,robclark\/chromium,dednal\/chromium.src,hujiajie\/pa-chromium,jaruba\/chromium.src,Chilledheart\/chromium,mohamed--abdel-maksoud\/chromium.src,bright-sparks\/chromium-spacewalk,keishi\/chromium,mohamed--abdel-maksoud\/chromium.src,Just-D\/chromium-1,littlstar\/chromium.src,nacl-webkit\/chrome_deps,rogerwang\/chromium,hgl888\/chromium-crosswalk-efl,anirudhSK\/chromium,ChromiumWebApps\/chromium,krieger-od\/nwjs_chromium.src,zcbenz\/cefode-chromium,dushu1203\/chromium.src,TheTypoMaster\/chromium-crosswalk,hujiajie\/pa-chromium,chuan9\/chromium-crosswalk,robclark\/chromium,zcbenz\/cefode-chromium,Fireblend\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,TheTypoMaster\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,hgl888\/chromium-crosswalk,ondra-novak\/chromium.src,ondra-novak\/chromium.src,ondra-novak\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,TheTypoMaster\/chromium-crosswalk,dednal\/chromium.src,markYoungH\/chromium.src,timopulkkinen\/BubbleFish,littlstar\/chromium.src,Pluto-tv\/chromium-crosswalk,markYoungH\/chromium.src,timopulkkinen\/BubbleFish,anirudhSK\/chromium,axinging\/chromium-crosswalk,ondra-novak\/chromium.src,chuan9\/chromium-crosswalk,markYoungH\/chromium.src,Pluto-tv\/chromium-crosswalk,dednal\/chromium.src,timopulkkinen\/BubbleFish,markYoungH\/chromium.src,TheTypoMaster\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,keishi\/chromium,bright-sparks\/chromium-spacewalk,anirudhSK\/chromium,mogoweb\/chromium-crosswalk,keishi\/chromium,hujiajie\/pa-chromium,hgl888\/chromium-crosswalk-efl,ChromiumWebApps\/chromium,M4sse\/chromium.src,timopulkkinen\/BubbleFish,junmin-zhu\/chromium-rivertrail,pozdnyakov\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,robclark\/chromium,robclark\/chromium,mohamed--abdel-maksoud\/chromium.src,fujunwei\/chromium-crosswalk,Jonekee\/chromium.src,dednal\/chromium.src,nacl-webkit\/chrome_deps,bright-sparks\/chromium-spacewalk,Fireblend\/chromium-crosswalk,M4sse\/chromium.src,ltilve\/chromium,M4sse\/chromium.src,patrickm\/chromium.src,hgl888\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk-efl,TheTypoMaster\/chromium-crosswalk,ChromiumWebApps\/chromium,dushu1203\/chromium.src,zcbenz\/cefode-chromium,ChromiumWebApps\/chromium,timopulkkinen\/BubbleFish,M4sse\/chromium.src,dushu1203\/chromium.src,PeterWangIntel\/chromium-crosswalk,axinging\/chromium-crosswalk,chuan9\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,hujiajie\/pa-chromium,dushu1203\/chromium.src,bright-sparks\/chromium-spacewalk,patrickm\/chromium.src,hujiajie\/pa-chromium,fujunwei\/chromium-crosswalk,nacl-webkit\/chrome_deps,hujiajie\/pa-chromium,Pluto-tv\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,mogoweb\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,hgl888\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,markYoungH\/chromium.src,hujiajie\/pa-chromium,keishi\/chromium,mohamed--abdel-maksoud\/chromium.src,rogerwang\/chromium,PeterWangIntel\/chromium-crosswalk,axinging\/chromium-crosswalk,nacl-webkit\/chrome_deps,Just-D\/chromium-1,dushu1203\/chromium.src,anirudhSK\/chromium,junmin-zhu\/chromium-rivertrail,dushu1203\/chromium.src,littlstar\/chromium.src,ondra-novak\/chromium.src,hgl888\/chromium-crosswalk,markYoungH\/chromium.src,mohamed--abdel-maksoud\/chromium.src,hujiajie\/pa-chromium,keishi\/chromium,ChromiumWebApps\/chromium,TheTypoMaster\/chromium-crosswalk,rogerwang\/chromium,Jonekee\/chromium.src,keishi\/chromium,markYoungH\/chromium.src,Chilledheart\/chromium,dednal\/chromium.src,fujunwei\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,rogerwang\/chromium,ltilve\/chromium,zcbenz\/cefode-chromium,nacl-webkit\/chrome_deps,jaruba\/chromium.src,zcbenz\/cefode-chromium,Jonekee\/chromium.src,anirudhSK\/chromium,hgl888\/chromium-crosswalk-efl,fujunwei\/chromium-crosswalk,M4sse\/chromium.src,nacl-webkit\/chrome_deps,jaruba\/chromium.src,jaruba\/chromium.src,zcbenz\/cefode-chromium,Jonekee\/chromium.src,ltilve\/chromium,krieger-od\/nwjs_chromium.src,axinging\/chromium-crosswalk,keishi\/chromium,Jonekee\/chromium.src,Just-D\/chromium-1,robclark\/chromium,jaruba\/chromium.src,patrickm\/chromium.src,chuan9\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,axinging\/chromium-crosswalk,ChromiumWebApps\/chromium,ltilve\/chromium,junmin-zhu\/chromium-rivertrail,robclark\/chromium,zcbenz\/cefode-chromium,dushu1203\/chromium.src,keishi\/chromium,ltilve\/chromium,chuan9\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,Fireblend\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,pozdnyakov\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk-efl,M4sse\/chromium.src,ChromiumWebApps\/chromium,hujiajie\/pa-chromium,rogerwang\/chromium,robclark\/chromium,Fireblend\/chromium-crosswalk,keishi\/chromium,markYoungH\/chromium.src,timopulkkinen\/BubbleFish,timopulkkinen\/BubbleFish,patrickm\/chromium.src,pozdnyakov\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,littlstar\/chromium.src,axinging\/chromium-crosswalk,Just-D\/chromium-1,Jonekee\/chromium.src,chuan9\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,fujunwei\/chromium-crosswalk,dednal\/chromium.src,hgl888\/chromium-crosswalk-efl,nacl-webkit\/chrome_deps,crosswalk-project\/chromium-crosswalk-efl,ltilve\/chromium,anirudhSK\/chromium,crosswalk-project\/chromium-crosswalk-efl,crosswalk-project\/chromium-crosswalk-efl,patrickm\/chromium.src,Jonekee\/chromium.src,littlstar\/chromium.src,Jonekee\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,ondra-novak\/chromium.src,ChromiumWebApps\/chromium,dushu1203\/chromium.src,junmin-zhu\/chromium-rivertrail,mohamed--abdel-maksoud\/chromium.src,pozdnyakov\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,dushu1203\/chromium.src,junmin-zhu\/chromium-rivertrail,patrickm\/chromium.src"} {"commit":"0709d82d1ad90a0882e22fd93e3cee8756061248","old_file":"tests\/regression\/06-symbeq\/37-funloop_index.c","new_file":"tests\/regression\/06-symbeq\/37-funloop_index.c","old_contents":"","new_contents":"\/\/ PARAM: --disable ana.mutex.disjoint_types --set ana.activated[+] \"'var_eq'\" --set ana.activated[+] \"'symb_locks'\"\n\/\/ copy of 06\/02 with additional index accesses\n#include\n#include\n\nstruct cache_entry {\n int refs;\n pthread_mutex_t refs_mutex;\n} cache[10];\n\nvoid cache_entry_addref(struct cache_entry *entry) {\n pthread_mutex_lock(&entry->refs_mutex);\n entry->refs++; \/\/ NORACE\n (*entry).refs++; \/\/ NORACE\n entry[0].refs++; \/\/ NORACE\n pthread_mutex_unlock(&entry->refs_mutex);\n}\n\nvoid *t_fun(void *arg) {\n int i;\n for(i=0; i<10; i++)\n cache_entry_addref(&cache[i]); \/\/ NORACE\n return NULL;\n}\n\nint main () {\n for (int i = 0; i < 10; i++)\n pthread_mutex_init(&cache[i].refs_mutex, NULL);\n\n int i;\n pthread_t t1;\n pthread_create(&t1, NULL, t_fun, NULL);\n for(i=0; i<10; i++)\n cache_entry_addref(&cache[i]); \/\/ NORACE\n return 0;\n}\n","subject":"Add symb_locks test with irrelevant index access","message":"Add symb_locks test with irrelevant index access\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"95309dd6fd16f076d78e184a1b49a26e464ffa8b","old_file":"src\/TundraCore\/Scene\/AttributeChangeType.h","new_file":"src\/TundraCore\/Scene\/AttributeChangeType.h","old_contents":"\/**\n For conditions of distribution and use, see copyright notice in LICENSE\n\n @file AttributeChangeType.h\n @brief Dummy class containing enumeration of attribute\/component change types for replication.\n This is done in separate file in order to overcome cyclic inclusion dependency\n between IAttribute and IComponent. *\/\n\n#pragma once\n\n#include \"TundraCoreApi.h\"\n\nnamespace Tundra\n{\n\n\/\/\/ Dummy class containing enumeration of attribute\/component change types for replication.\nclass TUNDRACORE_API AttributeChange\n{\npublic:\n \/\/\/ Enumeration of attribute\/component change types for replication\n enum Type\n {\n \/\/\/ Use the current sync method specified in the IComponent this attribute is part of\n Default = 0,\n \/\/\/ The value will be changed, but no notifications will be sent (even locally). This\n \/\/\/ is useful when you are doing batch updates of several attributes at a time and want to minimize\n \/\/\/ the amount of re-processing that is done.\n Disconnected,\n \/\/\/ The value change will be signalled locally immediately after the change occurs, but\n \/\/\/ it is not sent to the network.\n LocalOnly,\n \/\/\/ Replicate: After changing the value, the change will be signalled locally and this change is\n \/\/\/ transmitted to the network as well.\n Replicate\n };\n};\n\n}","new_contents":"\/**\n For conditions of distribution and use, see copyright notice in LICENSE\n\n @file AttributeChangeType.h\n @brief Enumeration of attribute\/component change types for replication.\n This is done in separate file in order to overcome cyclic inclusion dependency\n between IAttribute and IComponent. *\/\n\n#pragma once\n\n#include \"TundraCoreApi.h\"\n\nnamespace Tundra\n{\nnamespace AttributeChange\n{\n\/\/\/ Enumeration of attribute\/component change types for replication\nenum Type\n{\n \/\/\/ Use the current sync method specified in the IComponent this attribute is part of\n Default = 0,\n \/\/\/ The value will be changed, but no notifications will be sent (even locally). This\n \/\/\/ is useful when you are doing batch updates of several attributes at a time and want to minimize\n \/\/\/ the amount of re-processing that is done.\n Disconnected,\n \/\/\/ The value change will be signalled locally immediately after the change occurs, but\n \/\/\/ it is not sent to the network.\n LocalOnly,\n \/\/\/ Replicate: After changing the value, the change will be signalled locally and this change is\n \/\/\/ transmitted to the network as well.\n Replicate\n};\n} \/\/ ~AttributeChange\n} \/\/ ~Tundra\n","subject":"Make totally unnecessary AttributeChange class namespace instead keeping syntax intact.","message":"Make totally unnecessary AttributeChange class namespace instead keeping syntax intact.\n","lang":"C","license":"apache-2.0","repos":"realXtend\/tundra-urho3d,realXtend\/tundra-urho3d,realXtend\/tundra-urho3d,realXtend\/tundra-urho3d,realXtend\/tundra-urho3d"} {"commit":"9a833c8121167c72036d5c9a0c3559674fbe2513","old_file":"MdePkg\/Library\/UefiIfrSupportLib\/UefiIfrLibraryInternal.h","new_file":"MdePkg\/Library\/UefiIfrSupportLib\/UefiIfrLibraryInternal.h","old_contents":"\/** @file\nUtility functions which helps in opcode creation, HII configuration string manipulations, \npop up window creations, setup browser persistence data set and get.\n\nCopyright (c) 2007 - 2008, Intel Corporation\nAll rights reserved. This program and the accompanying materials\nare licensed and made available under the terms and conditions of the BSD License\nwhich accompanies this distribution. The full text of the license may be found at\nhttp:\/\/opensource.org\/licenses\/bsd-license.php\n\nTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\n\n\n**\/\n\n#ifndef _IFRLIBRARY_INTERNAL_H_\n#define _IFRLIBRARY_INTERNAL_H_\n\n\n#include \n\n#include \n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n\n#endif\n\n","new_contents":"\/** @file\nUtility functions which helps in opcode creation, HII configuration string manipulations, \npop up window creations, setup browser persistence data set and get.\n\nCopyright (c) 2007 - 2008, Intel Corporation\nAll rights reserved. This program and the accompanying materials\nare licensed and made available under the terms and conditions of the BSD License\nwhich accompanies this distribution. The full text of the license may be found at\nhttp:\/\/opensource.org\/licenses\/bsd-license.php\n\nTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\n\n\n**\/\n\n#ifndef _IFRLIBRARY_INTERNAL_H_\n#define _IFRLIBRARY_INTERNAL_H_\n\n\n#include \n\n#include \n#include \r\n#include \r\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n\n#endif\n\n","subject":"Add missing protocol header file.","message":"Add missing protocol header file.\n\ngit-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@6265 6f19259b-4bc3-4df7-8a09-765794883524\n","lang":"C","license":"bsd-2-clause","repos":"MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2"} {"commit":"ffa8a7e219db655b8cf1a6a091b4e599813a5ebd","old_file":"Pod\/Classes\/AVEHTTPRequestOperationBuilder.h","new_file":"Pod\/Classes\/AVEHTTPRequestOperationBuilder.h","old_contents":"\/\/\n\/\/ AVEHTTPRequestOperationBuilder.h\n\/\/ Avenue\n\/\/\n\/\/ Created by MediaHound on 10\/31\/14.\n\/\/\n\/\/\n\n#import \n#import \n\n#import \"AVERequestBuilder.h\"\n\n\n\/**\n * A simple AVERequestBuilder that can be configured with a baseURL, request\/response serializers,\n * and a security policy.\n * \n * Typically, you can instantiate and configure a single AVEHTTPRequestOperationBuilder,\n * and reususe it when passing in a builder to `AVENetworkManager` methods.\n *\/\n@interface AVEHTTPRequestOperationBuilder : NSObject \n\n\/**\n * Creates a builder with a base URL.\n *\/\n- (instancetype)initWithBaseURL:(NSString*)url;\n\n\/**\n * The builders' base URL\n * All operations built will use this base URL.\n *\/\n@property (strong, nonatomic) NSURL* baseURL;\n\n\/**\n * The request serializer for all built operations\n *\/\n@property (strong, nonatomic) AFHTTPRequestSerializer* requestSerializer;\n\n\/**\n * The response serializer for all built operations\n *\/\n@property (strong, nonatomic) AFHTTPResponseSerializer* responseSerializer;\n\n\/**\n * The security policy for all built operations\n *\/\n@property (strong, nonatomic) AFSecurityPolicy* securityPolicy;\n\n@end\n","new_contents":"\/\/\n\/\/ AVEHTTPRequestOperationBuilder.h\n\/\/ Avenue\n\/\/\n\/\/ Created by MediaHound on 10\/31\/14.\n\/\/\n\/\/\n\n#import \n#import \n\n#import \"AVERequestBuilder.h\"\n\n\n\/**\n * A simple AVERequestBuilder that can be configured with a baseURL, request\/response serializers,\n * and a security policy.\n * \n * Typically, you can instantiate and configure a single AVEHTTPRequestOperationBuilder,\n * and reususe it when passing in a builder to `AVENetworkManager` methods.\n *\/\n@interface AVEHTTPRequestOperationBuilder : NSObject \n\n\/**\n * Creates a builder with a base URL.\n *\/\n- (instancetype)initWithBaseURL:(NSURL*)url;\n\n\/**\n * The builders' base URL\n * All operations built will use this base URL.\n *\/\n@property (strong, nonatomic) NSURL* baseURL;\n\n\/**\n * The request serializer for all built operations\n *\/\n@property (strong, nonatomic) AFHTTPRequestSerializer* requestSerializer;\n\n\/**\n * The response serializer for all built operations\n *\/\n@property (strong, nonatomic) AFHTTPResponseSerializer* responseSerializer;\n\n\/**\n * The security policy for all built operations\n *\/\n@property (strong, nonatomic) AFSecurityPolicy* securityPolicy;\n\n@end\n","subject":"Update initWithBaseURL to take a URL","message":"Update initWithBaseURL to take a URL\n","lang":"C","license":"apache-2.0","repos":"MediaHound\/Avenue"} {"commit":"ecef06a4970c3d6283b62be2ceeb0d8c96f039d8","old_file":"include\/llvm\/Transforms\/Utils\/PromoteMemToReg.h","new_file":"include\/llvm\/Transforms\/Utils\/PromoteMemToReg.h","old_contents":"\/\/===- PromoteMemToReg.h - Promote Allocas to Scalars -----------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ This file exposes an interface to promote alloca instructions to SSA\n\/\/ registers, by using the SSA construction algorithm.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef TRANSFORMS_UTILS_PROMOTEMEMTOREG_H\n#define TRANSFORMS_UTILS_PROMOTEMEMTOREG_H\n\n#include \n\nnamespace llvm {\n\nclass AllocaInst;\nclass DominatorTree;\nclass DominanceFrontier;\nclass AliasSetTracker;\n\n\/\/\/ isAllocaPromotable - Return true if this alloca is legal for promotion.\n\/\/\/ This is true if there are only loads and stores to the alloca...\n\/\/\/\nbool isAllocaPromotable(const AllocaInst *AI);\n\n\/\/\/ PromoteMemToReg - Promote the specified list of alloca instructions into\n\/\/\/ scalar registers, inserting PHI nodes as appropriate. This function makes\n\/\/\/ use of DominanceFrontier information. This function does not modify the CFG\n\/\/\/ of the function at all. All allocas must be from the same function.\n\/\/\/\n\/\/\/ If AST is specified, the specified tracker is updated to reflect changes\n\/\/\/ made to the IR.\n\/\/\/\nvoid PromoteMemToReg(const std::vector &Allocas,\n DominatorTree &DT, AliasSetTracker *AST = 0);\n\n} \/\/ End llvm namespace\n\n#endif\n","new_contents":"\/\/===- PromoteMemToReg.h - Promote Allocas to Scalars -----------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ This file exposes an interface to promote alloca instructions to SSA\n\/\/ registers, by using the SSA construction algorithm.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef TRANSFORMS_UTILS_PROMOTEMEMTOREG_H\n#define TRANSFORMS_UTILS_PROMOTEMEMTOREG_H\n\n#include \n\nnamespace llvm {\n\nclass AllocaInst;\nclass DominatorTree;\nclass AliasSetTracker;\n\n\/\/\/ isAllocaPromotable - Return true if this alloca is legal for promotion.\n\/\/\/ This is true if there are only loads and stores to the alloca...\n\/\/\/\nbool isAllocaPromotable(const AllocaInst *AI);\n\n\/\/\/ PromoteMemToReg - Promote the specified list of alloca instructions into\n\/\/\/ scalar registers, inserting PHI nodes as appropriate. This function makes\n\/\/\/ use of DominanceFrontier information. This function does not modify the CFG\n\/\/\/ of the function at all. All allocas must be from the same function.\n\/\/\/\n\/\/\/ If AST is specified, the specified tracker is updated to reflect changes\n\/\/\/ made to the IR.\n\/\/\/\nvoid PromoteMemToReg(const std::vector &Allocas,\n DominatorTree &DT, AliasSetTracker *AST = 0);\n\n} \/\/ End llvm namespace\n\n#endif\n","subject":"Remove a stale forward declaration.","message":"Remove a stale forward declaration.\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@156770 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"bsd-2-clause","repos":"dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,chubbymaggie\/asap,chubbymaggie\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,dslab-epfl\/asap,chubbymaggie\/asap,apple\/swift-llvm,apple\/swift-llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,chubbymaggie\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,dslab-epfl\/asap"} {"commit":"ad5169ceccdaa800c2c81d46148700ceeb806e48","old_file":"AFToolkit\/AFToolkit.h","new_file":"AFToolkit\/AFToolkit.h","old_contents":"\/\/\n\/\/ Toolkit header to include the main headers of the 'AFToolkit' library.\n\/\/\n\n\/\/ Macros\n#import \"AFDefines.h\"\n#import \"AFKeypath.h\"\n\n\/\/ Categories\n#import \"NSObject+Runtime.h\"\n#import \"NSBundle+Universal.h\"\n#import \"UITableViewCell+Universal.h\"\n#import \"UITableView+Universal.h\"\n#import \"UIView+Render.h\"\n\n\/\/ Common\n#import \"AFArray.h\"\n#import \"AFArrayView.h\"\n#import \"AFFileHelper.h\"\n#import \"AFKVO.h\"\n#import \"AFLogHelper.h\"\n#import \"AFMutableArray.h\"\n#import \"AFPlatformHelper.h\"\n#import \"AFReachability.h\"\n\n\/\/ Object provider\n#import \"AFObjectProvider.h\"\n\n\/\/ Database\n#import \"AFDBClient.h\"\n\n\/\/ MVC\n#import \"AFView.h\"\n#import \"AFViewController.h\"\n#import \"AFTableView.h\"","new_contents":"\/\/\n\/\/ Toolkit header to include the main headers of the 'AFToolkit' library.\n\/\/\n\n\/\/ Macros\n#import \"AFDefines.h\"\n#import \"AFKeypath.h\"\n\n\/\/ Categories\n#import \"NSObject+Runtime.h\"\n#import \"NSBundle+Universal.h\"\n#import \"UITableViewCell+Universal.h\"\n#import \"UITableView+Universal.h\"\n#import \"UIView+Render.h\"\n\n\/\/ Common\n#import \"AFArray.h\"\n#import \"AFArrayView.h\"\n#import \"AFFileHelper.h\"\n#import \"AFKVO.h\"\n#import \"AFLogHelper.h\"\n#import \"AFMutableArray.h\"\n#import \"AFPlatformHelper.h\"\n#import \"AFReachability.h\"\n\n\/\/ Object provider\n#import \"AFObjectProvider.h\"\n#import \"AFObjectModel.h\"\n\n\/\/ Database\n#import \"AFDBClient.h\"\n\n\/\/ MVC\n#import \"AFView.h\"\n#import \"AFViewController.h\"\n#import \"AFTableView.h\"","subject":"Add object model to toolkit.h.","message":"Add object model to toolkit.h.\n","lang":"C","license":"mit","repos":"mlatham\/AFToolkit"} {"commit":"25c233eaaaf0621eed969fb0b0a32fac4c56ab09","old_file":"HTMLKit\/HTMLElement.h","new_file":"HTMLKit\/HTMLElement.h","old_contents":"\/\/\n\/\/ HTMLElement.h\n\/\/ HTMLKit\n\/\/\n\/\/ Created by Iska on 05\/10\/14.\n\/\/ Copyright (c) 2014 BrainCookie. All rights reserved.\n\/\/\n\n#import \n\n@interface HTMLElement : NSObject\n\n@end\n","new_contents":"\/\/\n\/\/ HTMLElement.h\n\/\/ HTMLKit\n\/\/\n\/\/ Created by Iska on 05\/10\/14.\n\/\/ Copyright (c) 2014 BrainCookie. All rights reserved.\n\/\/\n\n#import \n\n@interface HTMLElement : NSObject\n\n@property (nonatomic, strong, readonly) NSString *tagName;\n\n@end\n","subject":"Add tagname attribute for HTML Element","message":"Add tagname attribute for HTML Element\n","lang":"C","license":"mit","repos":"iabudiab\/HTMLKit,iabudiab\/HTMLKit,iabudiab\/HTMLKit,iabudiab\/HTMLKit,iabudiab\/HTMLKit"} {"commit":"0487e2384269e8de92fae35958b1d271c0a649a7","old_file":"ports\/nrf\/boards\/arduino_primo\/nrf52_hal_conf.h","new_file":"ports\/nrf\/boards\/arduino_primo\/nrf52_hal_conf.h","old_contents":"#ifndef NRF52_HAL_CONF_H__\n#define NRF52_HAL_CONF_H__\n\n#define HAL_UART_MODULE_ENABLED\n#define HAL_SPI_MODULE_ENABLED\n#define HAL_TIME_MODULE_ENABLED\n#define HAL_PWM_MODULE_ENABLED\n#define HAL_RTC_MODULE_ENABLED\n#define HAL_TIMER_MODULE_ENABLED\n#define HAL_TWI_MODULE_ENABLED\n#define HAL_ADCE_MODULE_ENABLED\n#define HAL_TEMP_MODULE_ENABLED\n\/\/ #define HAL_UARTE_MODULE_ENABLED\n\/\/ #define HAL_SPIE_MODULE_ENABLED\n\/\/ #define HAL_TWIE_MODULE_ENABLED\n\n#endif \/\/ NRF52_HAL_CONF_H__\n","new_contents":"#ifndef NRF52_HAL_CONF_H__\n#define NRF52_HAL_CONF_H__\n\n#define HAL_UART_MODULE_ENABLED\n#define HAL_SPI_MODULE_ENABLED\n#define HAL_TIME_MODULE_ENABLED\n#define HAL_PWM_MODULE_ENABLED\n#define HAL_RTC_MODULE_ENABLED\n#define HAL_TIMER_MODULE_ENABLED\n#define HAL_TWI_MODULE_ENABLED\n#define HAL_ADCE_MODULE_ENABLED\n#define HAL_TEMP_MODULE_ENABLED\n#define HAL_RNG_MODULE_ENABLED\n\/\/ #define HAL_UARTE_MODULE_ENABLED\n\/\/ #define HAL_SPIE_MODULE_ENABLED\n\/\/ #define HAL_TWIE_MODULE_ENABLED\n\n#endif \/\/ NRF52_HAL_CONF_H__\n","subject":"Add missing hal_rng config used by random mod.","message":"nrf\/boards\/arduino_primo: Add missing hal_rng config used by random mod.\n","lang":"C","license":"mit","repos":"pfalcon\/micropython,tobbad\/micropython,bvernoux\/micropython,trezor\/micropython,pramasoul\/micropython,adafruit\/circuitpython,adafruit\/circuitpython,selste\/micropython,pramasoul\/micropython,pozetroninc\/micropython,pozetroninc\/micropython,bvernoux\/micropython,tobbad\/micropython,pozetroninc\/micropython,pfalcon\/micropython,pramasoul\/micropython,kerneltask\/micropython,kerneltask\/micropython,MrSurly\/micropython,MrSurly\/micropython,henriknelson\/micropython,MrSurly\/micropython,trezor\/micropython,pfalcon\/micropython,selste\/micropython,kerneltask\/micropython,tobbad\/micropython,pozetroninc\/micropython,MrSurly\/micropython,henriknelson\/micropython,trezor\/micropython,pramasoul\/micropython,selste\/micropython,henriknelson\/micropython,bvernoux\/micropython,adafruit\/circuitpython,tobbad\/micropython,kerneltask\/micropython,pramasoul\/micropython,henriknelson\/micropython,selste\/micropython,selste\/micropython,adafruit\/circuitpython,bvernoux\/micropython,trezor\/micropython,adafruit\/circuitpython,kerneltask\/micropython,pfalcon\/micropython,bvernoux\/micropython,henriknelson\/micropython,trezor\/micropython,pozetroninc\/micropython,adafruit\/circuitpython,tobbad\/micropython,pfalcon\/micropython,MrSurly\/micropython"} {"commit":"10a72b878021a75c8e28c5244205f0687862e4e4","old_file":"tests\/regression\/31-ikind-aware-ints\/17-def-enum-refine.c","new_file":"tests\/regression\/31-ikind-aware-ints\/17-def-enum-refine.c","old_contents":"","new_contents":"\/\/PARAM: --sets ana.int.refinement once --enable ana.int.enums\nint main() {\n int x;\n _Bool c;\n if(c) { x--;}\n else { x--;}\n \/\/ The veryfier claimed that the fixed-point was not reached here due to a bug in Enums.leq\n \/\/ The leq wrongly returned false for the Enums {0} and not{}[0,1]\n return 0;\n}\n","subject":"Add failing test case due to buggy Enums.leq","message":"Add failing test case due to buggy Enums.leq\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"33dfe3a73eeb4e115247a18a46029740ab4cf31d","old_file":"include\/arch\/x64\/cpu.h","new_file":"include\/arch\/x64\/cpu.h","old_contents":"#pragma once\n\n#include \n\n#define CPUID_SMAP (1 << 20)\n#define CPUID_SMEP (1 << 7)\n\nstatic inline void cpuid(uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) {\n __asm__ volatile (\"cpuid\" :\n \"=a\"(*eax),\n \"=b\"(*ebx),\n \"=c\"(*ecx),\n \"=d\"(*edx)\n : \"0\" (*eax), \"2\" (*ecx)\n :);\n}\n\nstatic inline void cpu_flags_set_ac(void) {\n __asm__ volatile (\"stac\" ::: \"cc\");\n}\n\nstatic inline void cpu_flags_clear_ac(void) {\n __asm__ volatile (\"clac\" ::: \"cc\");\n}\n\nstatic inline void cpu_cr4_set_bit(int bit) {\n __asm__ volatile (\"push %%rax\\n\"\n \"movq %%cr4, %%rax\\n\"\n \"orq $0, %%rax\\n\"\n \"movq %%rax, %%cr4\\n\"\n \"pop %%rax\\n\"\n : : \"a\"(bit));\n}\n\nstatic inline void cpu_cr4_clear_bit(int bit) {\n int mask = ~(1 << bit);\n __asm__ volatile (\"andq %0, %%cr4\" : : \"a\"(mask));\n}\n","new_contents":"#pragma once\n\n#include \n\n#define CPUID_SMAP (1 << 20)\n#define CPUID_SMEP (1 << 7)\n\n#define CPU_CR4_SMEP_BIT 20\n#define CPU_CR4_SMAP_BIT 21\n\nstatic inline void cpuid(uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) {\n __asm__ volatile (\"cpuid\" :\n \"=a\"(*eax),\n \"=b\"(*ebx),\n \"=c\"(*ecx),\n \"=d\"(*edx)\n : \"0\" (*eax), \"2\" (*ecx)\n :);\n}\n\nstatic inline void cpu_flags_set_ac(void) {\n __asm__ volatile (\"stac\" ::: \"cc\");\n}\n\nstatic inline void cpu_flags_clear_ac(void) {\n __asm__ volatile (\"clac\" ::: \"cc\");\n}\n\nstatic inline void cpu_cr4_set_bit(int bit) {\n __asm__ volatile (\"push %%rax\\n\"\n \"movq %%cr4, %%rax\\n\"\n \"orq $0, %%rax\\n\"\n \"movq %%rax, %%cr4\\n\"\n \"pop %%rax\\n\"\n : : \"a\"(bit));\n}\n\nstatic inline void cpu_cr4_clear_bit(int bit) {\n int mask = ~(1 << bit);\n __asm__ volatile (\"andq %0, %%cr4\" : : \"a\"(mask));\n}\n","subject":"Define cr4 SMEP & SMAP bits","message":"Define cr4 SMEP & SMAP bits\n","lang":"C","license":"mit","repos":"iankronquist\/kernel-of-truth,iankronquist\/kernel-of-truth,iankronquist\/kernel-of-truth,iankronquist\/kernel-of-truth,iankronquist\/kernel-of-truth"} {"commit":"ae86bb5dc591f0e2f6e423499e84bb603a3573e7","old_file":"src\/gst-plugins\/crowddetector\/crowddetector.c","new_file":"src\/gst-plugins\/crowddetector\/crowddetector.c","old_contents":"\/*\n * (C) Copyright 2013 Kurento (http:\/\/kurento.org\/)\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the GNU Lesser General Public License\n * (LGPL) version 2.1 which accompanies this distribution, and is available at\n * http:\/\/www.gnu.org\/licenses\/lgpl-2.1.html\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n *\/\n#include \n#include \n\n#include \"kmscrowddetector.h\"\n\nstatic gboolean\ninit (GstPlugin * plugin)\n{\n if (!kms_crowd_detector_plugin_init (plugin))\n return FALSE;\n\n return TRUE;\n}\n\nGST_PLUGIN_DEFINE (GST_VERSION_MAJOR,\n GST_VERSION_MINOR,\n kmscrowddetector,\n \"Kurento plate detector\",\n init, VERSION, GST_LICENSE_UNKNOWN, \"Kurento\", \"http:\/\/kurento.com\/\")\n","new_contents":"\/*\n * (C) Copyright 2013 Kurento (http:\/\/kurento.org\/)\n *\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the GNU Lesser General Public License\n * (LGPL) version 2.1 which accompanies this distribution, and is available at\n * http:\/\/www.gnu.org\/licenses\/lgpl-2.1.html\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n *\/\n#include \n#include \n\n#include \"kmscrowddetector.h\"\n\nstatic gboolean\ninit (GstPlugin * plugin)\n{\n if (!kms_crowd_detector_plugin_init (plugin))\n return FALSE;\n\n return TRUE;\n}\n\nGST_PLUGIN_DEFINE (GST_VERSION_MAJOR,\n GST_VERSION_MINOR,\n kmscrowddetector,\n \"Kurento crowd detector\",\n init, VERSION, GST_LICENSE_UNKNOWN, \"Kurento\", \"http:\/\/kurento.com\/\")\n","subject":"Fix error in plugin description","message":"Fix error in plugin description\n\nChange-Id: I2d51e500ed5babb084e5f281c13843bd43f9a690\n","lang":"C","license":"apache-2.0","repos":"Kurento\/kms-crowddetector,Kurento\/kms-crowddetector,Kurento\/kms-crowddetector"} {"commit":"00429da5931314964a3f9d91ed93e32a0a6ab7b2","old_file":"PBWebViewController\/PBWebViewController.h","new_file":"PBWebViewController\/PBWebViewController.h","old_contents":"\/\/\n\/\/ PBWebViewController.h\n\/\/ Pinbrowser\n\/\/\n\/\/ Created by Mikael Konutgan on 11\/02\/2013.\n\/\/ Copyright (c) 2013 Mikael Konutgan. All rights reserved.\n\/\/\n\n#import \n\n@interface PBWebViewController : UIViewController \n\n@property (strong, nonatomic) NSURL *URL;\n\n@property (strong, nonatomic) NSArray *activityItems;\n@property (strong, nonatomic) NSArray *applicationActivities;\n@property (strong, nonatomic) NSArray *excludedActivityTypes;\n\n\/**\n * A Boolean indicating whether the web view controller’s toolbar,\n * which displays a stop\/refresh, back, forward and share button, is shown.\n * The default value of this property is `YES`.\n *\/\n@property (assign, nonatomic) BOOL showsNavigationToolbar;\n\n- (void)load;\n- (void)clear;\n\n@end\n","new_contents":"\/\/\n\/\/ PBWebViewController.h\n\/\/ Pinbrowser\n\/\/\n\/\/ Created by Mikael Konutgan on 11\/02\/2013.\n\/\/ Copyright (c) 2013 Mikael Konutgan. All rights reserved.\n\/\/\n\n#import \n\n@interface PBWebViewController : UIViewController \n\n\/**\n * The URL that will be loaded by the web view controller.\n * If there is one present when the web view appears, it will be automatically loaded, by calling `load`,\n * Otherwise, you can set a `URL` after the web view has already been loaded and then manually call `load`.\n *\/\n@property (strong, nonatomic) NSURL *URL;\n\n\/** The array of data objects on which to perform the activity. *\/\n@property (strong, nonatomic) NSArray *activityItems;\n\n\/** An array of UIActivity objects representing the custom services that your application supports. *\/\n@property (strong, nonatomic) NSArray *applicationActivities;\n\n\/** The list of services that should not be displayed. *\/\n@property (strong, nonatomic) NSArray *excludedActivityTypes;\n\n\/**\n * A Boolean indicating whether the web view controller’s toolbar,\n * which displays a stop\/refresh, back, forward and share button, is shown.\n * The default value of this property is `YES`.\n *\/\n@property (assign, nonatomic) BOOL showsNavigationToolbar;\n\n\/**\n * Loads the given `URL`. This is called automatically when the when the web view appears if a `URL` exists,\n * otehrwise it can be called manually.\n *\/\n- (void)load;\n\n\/**\n * Clears the contents of the web view.\n *\/\n- (void)clear;\n\n@end\n","subject":"Document all the public properties and methods","message":"Document all the public properties and methods\n","lang":"C","license":"mit","repos":"kmikael\/PBWebViewController,jhmcclellandii\/PBWebViewController,mobitar\/MBXWebViewController,junjie\/PBWebViewController"} {"commit":"e143b52dbbee202551c0ccc7ce594cbe530a8391","old_file":"ArcGISRuntimeSDKQt_CppSamples\/Maps\/SetInitialMapLocation\/SetInitialMapLocation.h","new_file":"ArcGISRuntimeSDKQt_CppSamples\/Maps\/SetInitialMapLocation\/SetInitialMapLocation.h","old_contents":"\/\/ [WriteFile Name=SetInitialMapLocation, Category=Maps]\n\/\/ [Legal]\n\/\/ Copyright 2015 Esri.\n\n\/\/ Licensed under the Apache License, Version 2.0 (the \"License\");\n\/\/ you may not use this file except in compliance with the License.\n\/\/ You may obtain a copy of the License at\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\n\/\/ Unless required by applicable law or agreed to in writing, software\n\/\/ distributed under the License is distributed on an \"AS IS\" BASIS,\n\/\/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\/\/ See the License for the specific language governing permissions and\n\/\/ limitations under the License.\ns\/\/ [Legal]\n\n#ifndef SET_INITIAL_MAP_LOCATION_H\n#define SET_INITIAL_MAP_LOCATION_H\n\nnamespace Esri\n{\n namespace ArcGISRuntime\n {\n class Map;\n class MapQuickView;\n }\n}\n\n#include \n\nclass SetInitialMapLocation : public QQuickItem\n{\n Q_OBJECT\n\npublic:\n SetInitialMapLocation(QQuickItem* parent = 0);\n ~SetInitialMapLocation();\n\n void componentComplete() Q_DECL_OVERRIDE;\n\nprivate:\n Esri::ArcGISRuntime::Map* m_map;\n Esri::ArcGISRuntime::MapQuickView* m_mapView;\n};\n\n#endif \/\/ SET_INITIAL_MAP_LOCATION_H\n\n","new_contents":"\/\/ [WriteFile Name=SetInitialMapLocation, Category=Maps]\n\/\/ [Legal]\n\/\/ Copyright 2015 Esri.\n\n\/\/ Licensed under the Apache License, Version 2.0 (the \"License\");\n\/\/ you may not use this file except in compliance with the License.\n\/\/ You may obtain a copy of the License at\n\/\/ http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\n\/\/ Unless required by applicable law or agreed to in writing, software\n\/\/ distributed under the License is distributed on an \"AS IS\" BASIS,\n\/\/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\/\/ See the License for the specific language governing permissions and\n\/\/ limitations under the License.\n\/\/ [Legal]\n\n#ifndef SET_INITIAL_MAP_LOCATION_H\n#define SET_INITIAL_MAP_LOCATION_H\n\nnamespace Esri\n{\n namespace ArcGISRuntime\n {\n class Map;\n class MapQuickView;\n }\n}\n\n#include \n\nclass SetInitialMapLocation : public QQuickItem\n{\n Q_OBJECT\n\npublic:\n SetInitialMapLocation(QQuickItem* parent = 0);\n ~SetInitialMapLocation();\n\n void componentComplete() Q_DECL_OVERRIDE;\n\nprivate:\n Esri::ArcGISRuntime::Map* m_map;\n Esri::ArcGISRuntime::MapQuickView* m_mapView;\n};\n\n#endif \/\/ SET_INITIAL_MAP_LOCATION_H\n\n","subject":"Fix legal comment build error","message":"Fix legal comment build error\n","lang":"C","license":"apache-2.0","repos":"Esri\/arcgis-runtime-samples-qt,Esri\/arcgis-runtime-samples-qt,Esri\/arcgis-runtime-samples-qt,Esri\/arcgis-runtime-samples-qt"} {"commit":"2380cb3c0804df11297de421c4defec96de19f8b","old_file":"src\/2D_element_arithmetic.c","new_file":"src\/2D_element_arithmetic.c","old_contents":"#include<2D_element_arithmetic.h>\n\nmatrix * elem_matrix_operation(elem (*fp)(elem, float), matrix * m, \n float param) {\n int i, j = 0;\n for(i = 0; i < m->rows; i++) {\n for(j =0; j < m->columns; j++) {\n set_matrix_member(m, i+1, j+1, \n (*fp)(m->arr[i*m->columns +j], param));\n }\n }\n return m;\n}\n\nelem pow_elem(elem x, float p) {\n return (elem)pow(x, p);\n}\n\nelem sqroot_elem(elem x, float p) {\n float r = (float)1 \/ p;\n return pow_elem(x, r);\n}\n\n\n\n","new_contents":"#include<2D_element_arithmetic.h>\n\nmatrix * elem_matrix_operation(elem (*fp)(elem, float), matrix * m, \n float param) {\n int i, j = 0;\n for(i = 0; i < m->rows; i++) {\n for(j =0; j < m->columns; j++) {\n set_matrix_member(m, i+1, j+1, \n (*fp)(m->arr[i*m->columns +j], param));\n }\n }\n return m;\n}\n\nelem pow_elem(elem x, float p) {\n return (elem)floor(pow((float)x, p));\n}\n\nelem sqroot_elem(elem x, float p) {\n float r = (float)1 \/ p;\n return pow_elem(x, r);\n}\n\n\n\n","subject":"Make explicit the casts and floor division in pow_elem function","message":"Make explicit the casts and floor division in pow_elem function\n","lang":"C","license":"mit","repos":"cphang99\/matrix_playground,cphang99\/matrix_playground,cphang99\/matrix_playground"} {"commit":"fab6f220cdbcd7269d8f6e19988774efe0a49983","old_file":"test\/Analysis\/stack-addr-ps.c","new_file":"test\/Analysis\/stack-addr-ps.c","old_contents":"\/\/ RUN: clang -checker-simple -verify %s\n\nint* f1() {\n int x = 0;\n return &x; \/\/ expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}\n}\n\nint* f2(int y) {\n return &y; \/\/ expected-warning{{Address of stack memory associated with local variable 'y' returned.}} expected-warning{{address of stack memory associated with local variable 'y' returned}}\n}\n\nint* f3(int x, int *y) {\n int w = 0;\n \n if (x)\n y = &w;\n \n return y; \/\/ expected-warning{{Address of stack memory associated with local variable 'w' returned.}}\n}\n\nvoid* compound_literal(int x) {\n if (x)\n return &(unsigned short){((unsigned short)0x22EF)}; \/\/ expected-warning{{Address of stack memory}} expected-warning{{braces around scalar initializer}}\n\n int* array[] = {};\n struct s { int z; double y; int w; };\n return &((struct s){ 2, 0.4, 5 * 8 }); \/\/ expected-warning{{Address of stack memory}}\n}\n\n","new_contents":"\/\/ RUN: clang -checker-simple -verify %s\n\nint* f1() {\n int x = 0;\n return &x; \/\/ expected-warning{{Address of stack memory associated with local variable 'x' returned.}} expected-warning{{address of stack memory associated with local variable 'x' returned}}\n}\n\nint* f2(int y) {\n return &y; \/\/ expected-warning{{Address of stack memory associated with local variable 'y' returned.}} expected-warning{{address of stack memory associated with local variable 'y' returned}}\n}\n\nint* f3(int x, int *y) {\n int w = 0;\n \n if (x)\n y = &w;\n \n return y; \/\/ expected-warning{{Address of stack memory associated with local variable 'w' returned.}}\n}\n\nvoid* compound_literal(int x, int y) {\n if (x)\n return &(unsigned short){((unsigned short)0x22EF)}; \/\/ expected-warning{{Address of stack memory}} expected-warning{{braces around scalar initializer}}\n\n int* array[] = {};\n struct s { int z; double y; int w; };\n \n if (y)\n return &((struct s){ 2, 0.4, 5 * 8 }); \/\/ expected-warning{{Address of stack memory}}\n \n \n void* p = &((struct s){ 42, 0.4, x ? 42 : 0 });\n return p;\n}\n\n","subject":"Enhance compound literal test case.","message":"Enhance compound literal test case.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58480 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang"} {"commit":"ff4417bbf993d1695567ce8672a2c19f6f48f557","old_file":"lib\/Headers\/varargs.h","new_file":"lib\/Headers\/varargs.h","old_contents":"\/*===---- varargs.h - Variable argument handling -------------------------------------===\n*\n* Permission is hereby granted, free of charge, to any person obtaining a copy\n* of this software and associated documentation files (the \"Software\"), to deal\n* in the Software without restriction, including without limitation the rights\n* to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\n* copies of the Software, and to permit persons to whom the Software is\n* furnished to do so, subject to the following conditions:\n*\n* The above copyright notice and this permission notice shall be included in\n* all copies or substantial portions of the Software.\n*\n* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n* THE SOFTWARE.\n*\n*===-----------------------------------------------------------------------===\n*\/\n#ifndef __VARARGS_H\n#define __VARARGS_H\n #error \"Please use instead of \"\n#endif","new_contents":"\/*===---- varargs.h - Variable argument handling -------------------------------------===\n*\n* Permission is hereby granted, free of charge, to any person obtaining a copy\n* of this software and associated documentation files (the \"Software\"), to deal\n* in the Software without restriction, including without limitation the rights\n* to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\n* copies of the Software, and to permit persons to whom the Software is\n* furnished to do so, subject to the following conditions:\n*\n* The above copyright notice and this permission notice shall be included in\n* all copies or substantial portions of the Software.\n*\n* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n* THE SOFTWARE.\n*\n*===-----------------------------------------------------------------------===\n*\/\n#ifndef __VARARGS_H\n#define __VARARGS_H\n #error \"Please use instead of \"\n#endif\n","subject":"Add a newline at the end of the file.","message":"Add a newline at the end of the file.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@99026 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang"} {"commit":"ce3668fd60044c328af41b358a66a0e6741db1fb","old_file":"boot\/espressif\/hal\/include\/esp_log.h","new_file":"boot\/espressif\/hal\/include\/esp_log.h","old_contents":"\/*\n * Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\/\n\n#pragma once\n#include \n\n#define ESP_LOGE(tag, fmt, ...) MCUBOOT_LOG_ERR(fmt, ##__VA_ARGS__)\n#define ESP_LOGW(tag, fmt, ...) MCUBOOT_LOG_WRN(fmt, ##__VA_ARGS__)\n#define ESP_LOGI(tag, fmt, ...) MCUBOOT_LOG_INF(fmt, ##__VA_ARGS__)\n#define ESP_LOGD(tag, fmt, ...) MCUBOOT_LOG_DBG(fmt, ##__VA_ARGS__)\n","new_contents":"\/*\n * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD\n *\n * SPDX-License-Identifier: Apache-2.0\n *\/\n\n#pragma once\n#include \n\n#define ESP_LOGE(tag, fmt, ...) MCUBOOT_LOG_ERR(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n#define ESP_LOGW(tag, fmt, ...) MCUBOOT_LOG_WRN(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n#define ESP_LOGI(tag, fmt, ...) MCUBOOT_LOG_INF(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n#define ESP_LOGD(tag, fmt, ...) MCUBOOT_LOG_DBG(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n#define ESP_LOGV(tag, fmt, ...) MCUBOOT_LOG_DBG(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n\n#define ESP_EARLY_LOGE(tag, fmt, ...) MCUBOOT_LOG_ERR(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n#define ESP_EARLY_LOGW(tag, fmt, ...) MCUBOOT_LOG_WRN(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n#define ESP_EARLY_LOGI(tag, fmt, ...) MCUBOOT_LOG_INF(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n#define ESP_EARLY_LOGD(tag, fmt, ...) MCUBOOT_LOG_DBG(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n#define ESP_EARLY_LOGV(tag, fmt, ...) MCUBOOT_LOG_DBG(\"[%s] \" fmt, tag, ##__VA_ARGS__)\n","subject":"Use \"TAG\" field from ESP_LOG* macros from IDF libraries","message":"espressif: Use \"TAG\" field from ESP_LOG* macros from IDF libraries\n\nSigned-off-by: Gustavo Henrique Nihei <42b1270cfd1a4f11d4db08d9d441d5d8452cd3b6@espressif.com>\n","lang":"C","license":"apache-2.0","repos":"runtimeco\/mcuboot,ATmobica\/mcuboot,ATmobica\/mcuboot,ATmobica\/mcuboot,runtimeco\/mcuboot,ATmobica\/mcuboot,runtimeco\/mcuboot,runtimeco\/mcuboot,runtimeco\/mcuboot,ATmobica\/mcuboot"} {"commit":"fe5717664e4220a0bde701fc3239ef7eabe4f138","old_file":"MdeModulePkg\/Universal\/HiiDatabaseDxe\/R8Lib.h","new_file":"MdeModulePkg\/Universal\/HiiDatabaseDxe\/R8Lib.h","old_contents":"\/** @file\nImplement a utility function named R8_EfiLibCompareLanguage.\n\n Copyright (c) 2007 - 2008, Intel Corporation\n\n All rights reserved. This program and the accompanying materials\n are licensed and made available under the terms and conditions of the BSD License\n which accompanies this distribution. The full text of the license may be found at\n http:\/\/opensource.org\/licenses\/bsd-license.php\n\n THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\n\n\n**\/\n\n#ifndef __R8_LIB_H__\n#define __R8_LIB_H__\n\n\n\/**\n Compare whether two names of languages are identical.\n\n @param Language1 Name of language 1\n @param Language2 Name of language 2\n\n @retval TRUE same\n @retval FALSE not same\n\n**\/\nBOOLEAN\nR8_EfiLibCompareLanguage (\n IN CHAR8 *Language1,\n IN CHAR8 *Language2\n )\n;\n\n\n#endif\n\n\n","new_contents":"\/** @file\r\nImplement a utility function named R8_EfiLibCompareLanguage.\r\n\r\n Copyright (c) 2007 - 2008, Intel Corporation\r\n\r\n All rights reserved. This program and the accompanying materials\r\n are licensed and made available under the terms and conditions of the BSD License\r\n which accompanies this distribution. The full text of the license may be found at\r\n http:\/\/opensource.org\/licenses\/bsd-license.php\r\n\r\n THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r\n\r\n\r\n**\/\r\n\r\n#ifndef __R8_LIB_H__\r\n#define __R8_LIB_H__\r\n\r\n\r\n\/**\r\n Compare whether two names of languages are identical.\r\n\r\n @param Language1 Name of language 1\r\n @param Language2 Name of language 2\r\n\r\n @retval TRUE same\r\n @retval FALSE not same\r\n\r\n**\/\r\nBOOLEAN\r\nR8_EfiLibCompareLanguage (\r\n IN CHAR8 *Language1,\r\n IN CHAR8 *Language2\r\n )\r\n;\r\n\r\n\r\n#endif\r\n\r\n\r\n","subject":"Update to use DOS format","message":"Update to use DOS format\n\ngit-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@6339 6f19259b-4bc3-4df7-8a09-765794883524\n","lang":"C","license":"bsd-2-clause","repos":"MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2,MattDevo\/edk2"} {"commit":"2cb139d6f1660d7354a8b9a3e1a86d9bc45aead1","old_file":"Pod\/Classes\/Models\/LKManager.h","new_file":"Pod\/Classes\/Models\/LKManager.h","old_contents":"\/\/\n\/\/ LKManager.h\n\/\/\n\/\/ Created by Vlad Gorbenko on 4\/21\/15.\n\/\/ Copyright (c) 2015 Vlad Gorbenko. All rights reserved.\n\/\/\n\n#import \n\n#import \"LKLanguage.h\"\n\nextern NSString *const LKLanguageDidChangeNotification;\n\nextern NSString *const LKSourceDefault;\nextern NSString *const LKSourcePlist;\n\nNSString *LKLocalizedString(NSString *key, NSString *comment);\n\n@interface LKManager : NSObject{\n NSDictionary *_vocabluary;\n}\n\n@property (nonatomic, strong) LKLanguage *currentLanguage;\n@property (nonatomic, readonly) NSArray *languages;\n\n+ (void)setLocalizationFilename:(NSString *)localizationFilename;\n\n+ (LKManager*)sharedInstance;\n+ (void)nextLanguage;\n\n- (NSString *)titleForKeyPathIdentifier:(NSString *)keyPathIdentifier;\n\n+ (NSMutableArray *)simpleViews;\n+ (NSMutableArray *)rightToLeftLanguagesCodes;\n\n+ (void)addLanguage:(LKLanguage *)language;\n+ (void)removeLanguage:(LKLanguage *)language;\n\n- (NSString *)setLocalizationSource:(NSString *)source;\n\n@end\n","new_contents":"\/\/\n\/\/ LKManager.h\n\/\/\n\/\/ Created by Vlad Gorbenko on 4\/21\/15.\n\/\/ Copyright (c) 2015 Vlad Gorbenko. All rights reserved.\n\/\/\n\n#import \n\n#import \"LKLanguage.h\"\n\nextern NSString *const LKLanguageDidChangeNotification;\n\nextern NSString *const LKSourceDefault;\nextern NSString *const LKSourcePlist;\n\nNSString *LKLocalizedString(NSString *key, NSString *comment);\n\n@interface LKManager : NSObject{\n NSDictionary *_vocabluary;\n}\n\n@property (nonatomic, strong) LKLanguage *currentLanguage;\n@property (nonatomic, readonly) NSArray *languages;\n\n+ (void)setLocalizationFilename:(NSString *)localizationFilename;\n\n+ (LKManager*)sharedInstance;\n+ (void)nextLanguage;\n\n- (NSString *)titleForKeyPathIdentifier:(NSString *)keyPathIdentifier;\n\n+ (NSMutableArray *)simpleViews;\n+ (NSMutableArray *)rightToLeftLanguagesCodes;\n\n+ (void)addLanguage:(LKLanguage *)language;\n+ (void)removeLanguage:(LKLanguage *)language;\n\n- (LKLanguage *)languageByCode:(NSString *)code;\n\n- (NSString *)setLocalizationSource:(NSString *)source;\n\n@end\n","subject":"Make language by code public.","message":"Make language by code public.\n","lang":"C","license":"mit","repos":"mojidabckuu\/Loki,mojidabckuu\/Loki"} {"commit":"fee172d7eafd98a5df3c251ed5065f9e91eb4b2a","old_file":"coursework\/assignment1\/matrix_multiplication.c","new_file":"coursework\/assignment1\/matrix_multiplication.c","old_contents":"#include \n#include \n\nint main(int argc, char *argv[]) {\n int numprocs, rank, namelen;\n char processor_name[MPI_MAX_PROCESSOR_NAME];\n\n MPI_Init(&argc, &argv);\n MPI_Comm_size(MPI_COMM_WORLD, &numprocs);\n MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n MPI_Get_processor_name(processor_name, &namelen);\n\n \/\/ TODO\n\n MPI_Finalize();\n return 0;\n}\n","new_contents":"\/\/ mat_x num of rows equals to\n\/\/ mat_a num of rows\n#define A_ROWS 3\n#define X_ROWS 3\n\/\/ mat_x num of cols equals to\n\/\/ mat_b num of cols\n#define B_COLS 3\n#define X_COLS 3\n\/\/ mat_a num of cols should be equals to\n\/\/ mat_b num of rows\n#define A_COLS 2\n#define B_ROWS 2\n\n#include \n\/\/ #include \n\nvoid print_matrix(char* name, int rows, int cols, int matrix[rows][cols]) {\n\n printf(\"\\n%s [%d][%d]\\n\", name, rows, cols);\n for (int row = 0; row < rows; row++){\n for (int col = 0; col < cols; col++)\n printf(\"%d \", matrix[row][col]);\n printf(\"\\n\");\n }\n}\n\nint main(int argc, char *argv[]) {\n\n int matrix_a [A_ROWS][A_COLS] = {\n {9, 0},\n {5, 6},\n {1, 2}\n };\n\n int matrix_b [B_ROWS][B_COLS] = {\n {2, 4, 3},\n {7, 8, 9}\n };\n\n int matrix_x [X_ROWS][X_COLS];\n\n \/\/ multipy matrices a and b\n for (int row = 0; row < A_ROWS; row++) {\n for (int col = 0; col < B_COLS; col++) {\n int sum = 0;\n for (int ctrl = 0; ctrl < B_ROWS; ctrl++)\n sum = sum + matrix_a[row][ctrl] * matrix_b[ctrl][col];\n matrix_x[row][col] = sum;\n }\n }\n\n print_matrix(\"Matrix A\", A_ROWS, A_COLS, matrix_a);\n print_matrix(\"Matrix B\", B_ROWS, B_COLS, matrix_b);\n print_matrix(\"Matrix X\", X_ROWS, X_COLS, matrix_x);\n\n printf(\"\\n\");\n\n \/\/ TODO\n\n \/\/ int numprocs, rank, namelen;\n \/\/ char processor_name[MPI_MAX_PROCESSOR_NAME];\n\n \/\/ MPI_Init(&argc, &argv);\n \/\/ MPI_Comm_size(MPI_COMM_WORLD, &numprocs);\n \/\/ MPI_Comm_rank(MPI_COMM_WORLD, &rank);\n \/\/ MPI_Get_processor_name(processor_name, &namelen);\n\n \/\/ MPI_Finalize();\n\n return 0;\n}\n","subject":"Add matrix multiplication code in C","message":"Add matrix multiplication code in C\n","lang":"C","license":"mit","repos":"arthurazs\/uff-lpp,arthurazs\/uff-lpp,arthurazs\/uff-lpp"} {"commit":"d0ae779c15cfa916a186dff8872e2a3f4401c2d3","old_file":"snapshots\/hacl-c\/Random.h","new_file":"snapshots\/hacl-c\/Random.h","old_contents":"\/* This file was auto-generated by KreMLin! *\/\n#ifndef __Random_H\n#define __Random_H\n\n\n#include \"kremlib.h\"\n#include \"config.h\"\n#include \"drng.h\"\n#include \"cpuid.h\"\n\ntypedef uint8_t u8;\n\ntypedef uint32_t u32;\n\ntypedef uint64_t u64;\n\ntypedef uint8_t *bytes;\n\nuint32_t random_uint32();\n\nuint64_t random_uint64();\n\nvoid random_bytes(uint8_t *rand, uint32_t n);\n\nuint32_t randseed_uint32();\n\nuint64_t randseed_uint64();\n#endif\n","new_contents":"\/* This file was auto-generated by KreMLin! *\/\n#ifndef __Random_H\n#define __Random_H\n\n\n#include \"kremlib.h\"\n#include \"config.h\"\n#include \"drng.h\"\n#include \"cpuid.h\"\n\ntypedef uint8_t u8;\n\ntypedef uint32_t u32;\n\ntypedef uint64_t u64;\n\nuint32_t random_uint32();\n\nuint64_t random_uint64();\n\nvoid random_bytes(uint8_t *rand, uint32_t n);\n\nuint32_t randseed_uint32();\n\nuint64_t randseed_uint64();\n#endif\n","subject":"Remove a redifinition of type 'bytes'","message":"Remove a redifinition of type 'bytes'\n","lang":"C","license":"apache-2.0","repos":"mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star,mitls\/hacl-star"} {"commit":"32adade0be324e7280a606adaaa17279ab2b7c7d","old_file":"doxygen\/main_page.c","new_file":"doxygen\/main_page.c","old_contents":"\/**\n @mainpage M-Stack\n \n @section Intro\n This is M-Stack, a free USB Device Stack for PIC Microcontrollers. For more information, see the Public API Page.<\/a>\n \n *\/\n \n ","new_contents":"\/**\n @mainpage M-Stack\n \n @section Intro\n This is M-Stack, a free USB Device Stack for PIC Microcontrollers.\n\n For more information, see the main web page.<\/a>\n\n For API documentation, see the Public API Page.<\/a>\n \n *\/\n \n ","subject":"Add web page link to the main doxygen page","message":"doxygen: Add web page link to the main doxygen page\n","lang":"C","license":"apache-2.0","repos":"rollingstone\/m-stack,rollingstone\/m-stack,pololu\/m-stack,pololu\/m-stack"} {"commit":"4dc1a5ab19c9cc8a84d726d4a01d0e3ea75644b9","old_file":"include\/fish_detector\/common\/species_dialog.h","new_file":"include\/fish_detector\/common\/species_dialog.h","old_contents":"\/\/\/ @file\n\/\/\/ @brief Defines SpeciedDialog class.\n\n#ifndef SPECIES_DIALOG_H\n#define SPECIES_DIALOG_H\n\nnamespace fish_detector {\n\nclass SpeciesDialog : public QDialog {\n Q_OBJECT\n#ifndef NO_TESTING\n friend class TestSpeciesDialog;\n#endif\npublic:\n \/\/\/ @brief Constructor.\n \/\/\/\n \/\/\/ @param parent Parent widget.\n explicit SpeciesDialog(QWidget *parent = 0);\n\nprivate slots:\n \/\/\/ @brief Emits the accepted signal.\n void on_ok_clicked();\n\n \/\/\/ @brief Emits the rejected signal.\n void on_cancel_clicked();\n\n \/\/\/ @brief Removes currently selected subspecies.\n void on_removeSubspecies_clicked();\n\n \/\/\/ @brief Adds a new subspecies.\n void on_addSubspecies_clicked();\n\n \/\/\/ @brief Returns a Species object corresponding to the dialog values.\n \/\/\/\n \/\/\/ @return Species object corresponding to the dialog values.\n Species getSpecies();\n};\n\n} \/\/ namespace fish_detector\n\n#endif \/\/ SPECIES_DIALOG_H\n","new_contents":"\/\/\/ @file\n\/\/\/ @brief Defines SpeciesDialog class.\n\n#ifndef SPECIES_DIALOG_H\n#define SPECIES_DIALOG_H\n\n#include \n\n#include \n#include \n\n#include \"fish_detector\/common\/species.h\"\n\nnamespace Ui {\n class SpeciesDialog;\n}\n\nnamespace fish_detector {\n\nclass SpeciesDialog : public QDialog {\n Q_OBJECT\n#ifndef NO_TESTING\n friend class TestSpeciesDialog;\n#endif\npublic:\n \/\/\/ @brief Constructor.\n \/\/\/\n \/\/\/ @param parent Parent widget.\n explicit SpeciesDialog(QWidget *parent = 0);\n\n \/\/\/ @brief Returns a Species object corresponding to the dialog values.\n \/\/\/\n \/\/\/ @return Species object corresponding to the dialog values.\n Species getSpecies();\n\nprivate slots:\n \/\/\/ @brief Emits the accepted signal.\n void on_ok_clicked();\n\n \/\/\/ @brief Emits the rejected signal.\n void on_cancel_clicked();\n\n \/\/\/ @brief Removes currently selected subspecies.\n void on_removeSubspecies_clicked();\n\n \/\/\/ @brief Adds a new subspecies.\n void on_addSubspecies_clicked();\n\nprivate:\n \/\/\/ @brief Widget loaded from ui file.\n std::unique_ptr ui_;\n};\n\n} \/\/ namespace fish_detector\n\n#endif \/\/ SPECIES_DIALOG_H\n","subject":"Add function returning Species object","message":"Add function returning Species object\n","lang":"C","license":"mit","repos":"BGWoodward\/FishDetector"} {"commit":"5fff847531ede017aeabc7e38264f438748b5493","old_file":"webkit\/plugins\/ppapi\/ppp_pdf.h","new_file":"webkit\/plugins\/ppapi\/ppp_pdf.h","old_contents":"\/\/ Copyright (c) 2012 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_\n#define WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_\n\n#include \"ppapi\/c\/pp_instance.h\"\n#include \"ppapi\/c\/pp_point.h\"\n#include \"ppapi\/c\/pp_var.h\"\n\n#define PPP_PDF_INTERFACE_1 \"PPP_Pdf;1\"\n\nstruct PPP_Pdf_1 {\n \/\/ Returns an absolute URL if the position is over a link.\n PP_Var (*GetLinkAtPosition)(PP_Instance instance,\n PP_Point point);\n};\n\ntypedef PPP_Pdf_1 PPP_Pdf;\n\n#endif \/\/ WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_\n","new_contents":"\/\/ Copyright (c) 2012 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_\n#define WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_\n\n#include \"ppapi\/c\/pp_instance.h\"\n#include \"ppapi\/c\/pp_point.h\"\n#include \"ppapi\/c\/pp_var.h\"\n\n#define PPP_PDF_INTERFACE_1 \"PPP_Pdf;1\"\n#define PPP_PDF_INTERFACE PPP_PDF_INTERFACE_1\n\nstruct PPP_Pdf_1 {\n \/\/ Returns an absolute URL if the position is over a link.\n PP_Var (*GetLinkAtPosition)(PP_Instance instance,\n PP_Point point);\n};\n\ntypedef PPP_Pdf_1 PPP_Pdf;\n\n#endif \/\/ WEBKIT_PLUGINS_PPAPI_PPP_PDF_H_\n","subject":"Add missing unversioned interface-name macro for PPP_Pdf.","message":"Add missing unversioned interface-name macro for PPP_Pdf.\n\nBUG=107398\n\nReview URL: http:\/\/codereview.chromium.org\/9114010\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@116504 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"adobe\/chromium,adobe\/chromium,yitian134\/chromium,ropik\/chromium,adobe\/chromium,gavinp\/chromium,yitian134\/chromium,ropik\/chromium,adobe\/chromium,yitian134\/chromium,adobe\/chromium,yitian134\/chromium,gavinp\/chromium,yitian134\/chromium,gavinp\/chromium,adobe\/chromium,ropik\/chromium,ropik\/chromium,ropik\/chromium,gavinp\/chromium,ropik\/chromium,yitian134\/chromium,adobe\/chromium,gavinp\/chromium,yitian134\/chromium,gavinp\/chromium,ropik\/chromium,gavinp\/chromium,adobe\/chromium,gavinp\/chromium,yitian134\/chromium,ropik\/chromium,adobe\/chromium,ropik\/chromium,yitian134\/chromium,gavinp\/chromium,adobe\/chromium,adobe\/chromium,gavinp\/chromium,yitian134\/chromium"} {"commit":"e62cfdcc7390d420833d2bead953d8e172719f37","old_file":"src\/dst.c","new_file":"src\/dst.c","old_contents":"#include \"syshead.h\"\n#include \"dst.h\"\n#include \"ip.h\"\n#include \"arp.h\"\n\nint dst_neigh_output(struct sk_buff *skb)\n{\n struct iphdr *iphdr = ip_hdr(skb);\n struct netdev *netdev = skb->netdev;\n uint8_t *dmac = arp_get_hwaddr(iphdr->daddr);\n int rc;\n\n if (dmac) {\n return netdev_transmit(skb, dmac, ETH_P_IP);\n } else {\n rc = arp_request(iphdr->saddr, iphdr->daddr, netdev);\n free_skb(skb);\n return rc;\n }\n}\n","new_contents":"#include \"syshead.h\"\n#include \"dst.h\"\n#include \"ip.h\"\n#include \"arp.h\"\n\nint dst_neigh_output(struct sk_buff *skb)\n{\n struct iphdr *iphdr = ip_hdr(skb);\n struct netdev *netdev = skb->netdev;\n uint8_t *dmac = arp_get_hwaddr(iphdr->daddr);\n int rc;\n\n if (dmac) {\n return netdev_transmit(skb, dmac, ETH_P_IP);\n } else {\n rc = arp_request(iphdr->saddr, iphdr->daddr, netdev);\n\n while ((dmac = arp_get_hwaddr(iphdr->daddr)) == NULL) {\n sleep(1);\n }\n\n return netdev_transmit(skb, dmac, ETH_P_IP);\n }\n}\n","subject":"Add ugly hack for waiting that ARP cache gets populated","message":"Add ugly hack for waiting that ARP cache gets populated\n\nWe do not have a retransmission system implemented yet,\nso let's sleep here for a while in order to get the ARP entry\nif it is missing.\n","lang":"C","license":"mit","repos":"saminiir\/level-ip,saminiir\/level-ip"} {"commit":"813b100e98470a3dca5116895e37cadfae1e7c2d","old_file":"util\/cpp\/db\/util\/Macros.h","new_file":"util\/cpp\/db\/util\/Macros.h","old_contents":"\/*\n * Copyright (c) 2008 Digital Bazaar, Inc. All rights reserved.\n *\/\n#ifndef db_util_Macros_H\n#define db_util_Macros_H\n\n\/**\n * Miscellaneous general use macros.\n *\/\n\n\/**\n * Macro statement wrapper. Adapted from glib.\n * Use:\n * if(x) DB_STMT_START { ... } DB_STMT_END; else ...\n *\/\n#define DB_STMT_START do\n#define DB_STMT_END while (0)\n\n\/**\n * Convert argument to a string\n *\/\n#define DB_STRINGIFY(arg) #arg\n\n\/**\n * String representing the current code location.\n *\/\n#define DB_STRLOC __FILE__ \":\" DB_STRINGIFY(__LINE__)\n\n#endif\n","new_contents":"\/*\n * Copyright (c) 2008 Digital Bazaar, Inc. All rights reserved.\n *\/\n#ifndef db_util_Macros_H\n#define db_util_Macros_H\n\n\/**\n * Miscellaneous general use macros.\n *\/\n\n\/**\n * Macro statement wrapper. Adapted from glib.\n * Use:\n * if(x) DB_STMT_START { ... } DB_STMT_END; else ...\n *\/\n#define DB_STMT_START do\n#define DB_STMT_END while (0)\n\n\/**\n * Convert argument to a string\n *\/\n#define DB_STRINGIFY_ARG(arg) #arg\n#define DB_STRINGIFY(arg) DB_STRINGIFY_ARG(arg)\n\n\/**\n * String representing the current code location.\n *\/\n#define DB_STRLOC __FILE__ \":\" DB_STRINGIFY(__LINE__)\n\n#endif\n","subject":"Fix DB_STRINGIFY to indirectly convert arg to a string.","message":"Fix DB_STRINGIFY to indirectly convert arg to a string.\n","lang":"C","license":"agpl-3.0","repos":"digitalbazaar\/monarch,digitalbazaar\/monarch,digitalbazaar\/monarch,digitalbazaar\/monarch,digitalbazaar\/monarch"} {"commit":"c888133119dece5f3a60a1f02a8a3c3916898206","old_file":"test\/Sema\/no-format-y2k-turnsoff-format.c","new_file":"test\/Sema\/no-format-y2k-turnsoff-format.c","old_contents":"\/\/ RUN: %clang_cc1 -verify -fsyntax-only -Wformat -Wno-format-y2k\n\/\/ rdar:\/\/9504680\n\nvoid foo(const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));\n\nvoid bar(unsigned int a) {\n foo(\"%s\", a); \/\/ expected-warning {{format specifies type 'char *' but the argument has type 'unsigned int'}}\n}\n\n","new_contents":"\/\/ RUN: %clang_cc1 -verify -fsyntax-only -Wformat -Wno-format-y2k %s\n\/\/ rdar:\/\/9504680\n\nvoid foo(const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));\n\nvoid bar(unsigned int a) {\n foo(\"%s\", a); \/\/ expected-warning {{format specifies type 'char *' but the argument has type 'unsigned int'}}\n}\n\n","subject":"Make this test actually test something","message":"Make this test actually test something\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@164677 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang"} {"commit":"7bdd3703e4012446a446b66580e66f4fa80db07e","old_file":"lib\/src\/clacks-api\/clacks.c","new_file":"lib\/src\/clacks-api\/clacks.c","old_contents":"#include \"clacks_common.h\"\n#include \"id_client.h\"\n#include \"TraceMessage.pb-c.h\"\n#include \"..\/transport-client\/cl_transport_domsock_client.h\"\n#include \n\n#include \"clacks.h\"\n\n\/* API Back-End *\/\nvoid _clacks_trace_string_id(char *str, char *id) {\n int ret;\n\n TraceMessage t_msg = TRACE_MESSAGE__INIT;\n t_msg.act_id = \"TEST\";\n t_msg.msg = str;\n t_msg.flags = 0;\n\n ret = send_trace_message(&t_msg);\n}\n\n\/* API Front-End *\/\nvoid clacks_trace_string(char *str) {\n clacks_trace_string_id(str, \"NULLID\");\n}\n\nvoid clacks_trace_string_id(char *str, char *id) {\n if (str != NULL && id != NULL) {\n _clacks_trace_string_id(str, id);\n }\n}\n\nint clacks_new_id(char *id) {\n if (id == NULL) {\n return -1;\n }\n return get_new_id(id);\n}\n\n","new_contents":"#include \"clacks_common.h\"\n#include \"id_client.h\"\n#include \"TraceMessage.pb-c.h\"\n#include \"..\/transport-client\/cl_transport_domsock_client.h\"\n#include \n\n#include \"clacks.h\"\n\n\/* API Back-End *\/\nvoid _clacks_trace_string_id(char *str, char *id) {\n int ret;\n\n TraceMessage t_msg = TRACE_MESSAGE__INIT;\n t_msg.act_id = id;\n t_msg.msg = str;\n t_msg.flags = 0;\n\n ret = send_trace_message(&t_msg);\n}\n\n\/* API Front-End *\/\nvoid clacks_trace_string(char *str) {\n clacks_trace_string_id(str, \"NULLID\");\n}\n\nvoid clacks_trace_string_id(char *str, char *id) {\n if (str != NULL && id != NULL) {\n _clacks_trace_string_id(str, id);\n }\n}\n\nint clacks_new_id(char *id) {\n if (id == NULL) {\n return -1;\n }\n return get_new_id(id);\n}\n\n","subject":"Set the id for the trace message","message":"Set the id for the trace message\n","lang":"C","license":"mit","repos":"jamessnee\/clacks,jamessnee\/clacks,jamessnee\/clacks"} {"commit":"c6cf5db15afd0d5f702ee9898338070616e567b6","old_file":"src\/utils\/cl_trees.c","new_file":"src\/utils\/cl_trees.c","old_contents":"","new_contents":"\/**\n * @file cl_trees.c\n * @author Rastislav Szabo , Lukas Macko ,\n * Milan Lenco \n * @brief Iterative tree loading using internal sysrepo requests.\n *\n * @copyright\n * Copyright 2016 Cisco Systems, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n#include \"sr_common.h\"\n#include \"client_library.h\"\n#include \"sysrepo\/trees.h\"\n#include \"trees_internal.h\"\n\n\nsr_node_t *\nsr_node_get_child(sr_session_ctx_t *session, sr_node_t *node)\n{\n int rc = SR_ERR_OK;\n\n if (NULL != node) {\n if (NULL != node->first_child && SR_TREE_ITERATOR_T == node->first_child->type) {\n rc = sr_get_subtree_next_chunk(session, node);\n if (SR_ERR_OK != rc) {\n return NULL;\n }\n }\n return node->first_child;\n } else {\n return NULL;\n }\n}\n\nsr_node_t *\nsr_node_get_next_sibling(sr_session_ctx_t *session, sr_node_t *node)\n{\n int rc = SR_ERR_OK;\n\n if (NULL != node) {\n if (NULL != node->next && SR_TREE_ITERATOR_T == node->next->type) {\n rc = sr_get_subtree_next_chunk(session, node->parent);\n if (SR_ERR_OK != rc) {\n return NULL;\n }\n }\n return node->next;\n } else {\n return NULL;\n }\n}\n\nsr_node_t *\nsr_node_get_parent(sr_session_ctx_t *session, sr_node_t *node)\n{\n (void)session;\n if (NULL != node) {\n return node->parent;\n } else {\n return NULL;\n }\n}\n","subject":"Add forgotten source file cl_test.c","message":"Add forgotten source file cl_test.c\n","lang":"C","license":"apache-2.0","repos":"rastislavszabo\/sysrepo,lukasmacko\/sysrepo,rastislavszabo\/sysrepo,morganzhh\/sysrepo,morganzhh\/sysrepo,lukasmacko\/sysrepo,fanchanghu\/sysrepo,fanchanghu\/sysrepo,rastislavszabo\/sysrepo,morganzhh\/sysrepo,lukasmacko\/sysrepo,morganzhh\/sysrepo,fanchanghu\/sysrepo,fanchanghu\/sysrepo,lukasmacko\/sysrepo,fanchanghu\/sysrepo,morganzhh\/sysrepo,lukasmacko\/sysrepo,lukasmacko\/sysrepo,fanchanghu\/sysrepo,fanchanghu\/sysrepo,rastislavszabo\/sysrepo,rastislavszabo\/sysrepo,morganzhh\/sysrepo,lukasmacko\/sysrepo,rastislavszabo\/sysrepo,morganzhh\/sysrepo,rastislavszabo\/sysrepo"} {"commit":"1d6e54c49babe1975a1b6285e8b7f039c04b3ab3","old_file":"muduo\/base\/Atomic.h","new_file":"muduo\/base\/Atomic.h","old_contents":"#ifndef MUDUO_BASE_ATOMIC_H\n#define MUDUO_BASE_ATOMIC_H\n\n#include \n\nnamespace muduo\n{\n\nclass AtomicInt64 : boost::noncopyable\n{\n public:\n AtomicInt64()\n : value_(0)\n {\n }\n\n int64_t get()\n {\n return value_;\n }\n\n int64_t addAndGet(int64_t x)\n {\n value_ += x;\n return value_;\n }\n\n int64_t incrementAndGet()\n {\n return addAndGet(1);\n }\n\n int64_t getAndSet(int64_t newValue)\n {\n int64_t old = value_;\n value_ = newValue;\n return old;\n }\n\n private:\n int64_t value_;\n};\n\n}\n#endif \/\/ MUDUO_BASE_ATOMIC_H\n","new_contents":"#ifndef MUDUO_BASE_ATOMIC_H\n#define MUDUO_BASE_ATOMIC_H\n\n#include \n\nnamespace muduo\n{\n\nclass AtomicInt64 : boost::noncopyable\n{\n public:\n AtomicInt64()\n : value_(0)\n {\n }\n\n int64_t get()\n {\n return value_;\n }\n\n int64_t addAndGet(int64_t x)\n {\n return __sync_add_and_fetch(&value_, x);\n }\n\n int64_t incrementAndGet()\n {\n return addAndGet(1);\n }\n\n int64_t getAndSet(int64_t newValue)\n {\n return __sync_lock_test_and_set(&value_, newValue);\n }\n\n private:\n volatile int64_t value_;\n};\n\n}\n#endif \/\/ MUDUO_BASE_ATOMIC_H\n","subject":"Implement atomic integer with gcc builtins.","message":"Implement atomic integer with gcc builtins.\n","lang":"C","license":"bsd-3-clause","repos":"wangweihao\/muduo,Cofyc\/muduo,jxd134\/muduo,shenhzou654321\/muduo,floristt\/muduo,floristt\/muduo,SuperMXC\/muduo,Cofyc\/muduo,lvshiling\/muduo,fc500110\/muduo,danny200309\/muduo,jerk1991\/muduo,lizj3624\/http-github.com-chenshuo-muduo-,jxd134\/muduo,SourceInsight\/muduo,zhuangshi23\/muduo,SourceInsight\/muduo,devsoulwolf\/muduo,shenhzou654321\/muduo,KunYi\/muduo,devsoulwolf\/muduo,lizj3624\/muduo,KublaikhanGeek\/muduo,DongweiLee\/muduo,KingLebron\/muduo,KublaikhanGeek\/muduo,KingLebron\/muduo,danny200309\/muduo,yunhappy\/muduo,shuang-shuang\/muduo,DongweiLee\/muduo,mitliucak\/muduo,tsh185\/muduo,danny200309\/muduo,guker\/muduo,huan80s\/muduo,dhanzhang\/muduo,lizj3624\/muduo,yunhappy\/muduo,floristt\/muduo,SourceInsight\/muduo,lvmaoxv\/muduo,KingLebron\/muduo,tsh185\/muduo,wangweihao\/muduo,lizj3624\/http-github.com-chenshuo-muduo-,zhanMingming\/muduo,lizj3624\/muduo,Cofyc\/muduo,ucfree\/muduo,decimalbell\/muduo,ywy2090\/muduo,KingLebron\/muduo,xzmagic\/muduo,lizj3624\/http-github.com-chenshuo-muduo-,wangweihao\/muduo,dhanzhang\/muduo,dhanzhang\/muduo,SuperMXC\/muduo,guker\/muduo,SourceInsight\/muduo,ucfree\/muduo,decimalbell\/muduo,shenhzou654321\/muduo,fc500110\/muduo,devsoulwolf\/muduo,floristt\/muduo,zhuangshi23\/muduo,lizj3624\/muduo,zxylvlp\/muduo,huan80s\/muduo,jerk1991\/muduo,wangweihao\/muduo,mitliucak\/muduo,lizj3624\/http-github.com-chenshuo-muduo-,lizhanhui\/muduo,flyfeifan\/muduo,mitliucak\/muduo,Cofyc\/muduo,Cofyc\/muduo,westfly\/muduo,xzmagic\/muduo,mitliucak\/muduo,mitliucak\/muduo,decimalbell\/muduo,decimalbell\/muduo,daodaoliang\/muduo,westfly\/muduo,penyatree\/muduo,devsoulwolf\/muduo,danny200309\/muduo,penyatree\/muduo,wangweihao\/muduo,pthreadself\/muduo,SuperMXC\/muduo,kidzyoung\/muduo,pthreadself\/muduo,lizj3624\/http-github.com-chenshuo-muduo-,lizj3624\/muduo,huan80s\/muduo,ucfree\/muduo,youprofit\/muduo,zouzl\/muduo-learning,ucfree\/muduo,zhanMingming\/muduo,daodaoliang\/muduo,floristt\/muduo,shenhzou654321\/muduo,dhanzhang\/muduo,KunYi\/muduo,june505\/muduo,lizhanhui\/muduo,decimalbell\/muduo,shuang-shuang\/muduo,zxylvlp\/muduo,dhanzhang\/muduo,ywy2090\/muduo,youprofit\/muduo,june505\/muduo,SuperMXC\/muduo,zouzl\/muduo-learning,danny200309\/muduo,devsoulwolf\/muduo,flyfeifan\/muduo,zhuangshi23\/muduo,lvmaoxv\/muduo,ucfree\/muduo,nestle1998\/muduo,zxylvlp\/muduo,SuperMXC\/muduo,shenhzou654321\/muduo,huan80s\/muduo,KingLebron\/muduo,kidzyoung\/muduo,lvshiling\/muduo,huan80s\/muduo,zouzl\/muduo-learning,SourceInsight\/muduo,nestle1998\/muduo,westfly\/muduo"} {"commit":"8127f3a6e6c615856006842cee6df2e13c1ba852","old_file":"test\/CFrontend\/2007-06-18-SextAttrAggregate.c","new_file":"test\/CFrontend\/2007-06-18-SextAttrAggregate.c","old_contents":"\/\/ RUN: %llvmgcc %s -o - -S -emit-llvm -O3 | grep {i8 signext}\n\/\/ PR1513\n\nstruct s{\nlong a;\nlong b;\n};\n\nvoid f(struct s a, char *b, char C) {\n\n}\n","new_contents":"\/\/ RUN: %llvmgcc %s -o - -S -emit-llvm -O3 | grep {i8 signext}\n\/\/ PR1513\n\nstruct s{\nlong a;\nlong b;\n};\n\nvoid f(struct s a, char *b, signed char C) {\n\n}\n","subject":"Make this explictly signed. Fixes PR1571.","message":"Make this explictly signed. Fixes PR1571.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@40569 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,GPUOpen-Drivers\/llvm,apple\/swift-llvm,chubbymaggie\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,chubbymaggie\/asap,apple\/swift-llvm,chubbymaggie\/asap,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,llvm-mirror\/llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,llvm-mirror\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,dslab-epfl\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,apple\/swift-llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,apple\/swift-llvm"} {"commit":"b89efa2cd07719696316128da95a2c56088141e1","old_file":"Core\/DataStructures\/mitkVideoSource.h","new_file":"Core\/DataStructures\/mitkVideoSource.h","old_contents":"#ifndef _mitk_Video_Source_h_\n#define _mitk_Video_Source_h_\n\n#include \"mitkCommon.h\"\n#include \n#include \"itkObjectFactory.h\"\n\nnamespace mitk\n{\n \/**\n * Simple base class for acquiring video data. \n *\/\n class VideoSource \/\/: public itk::Object\n {\n public:\n \/\/mitkClassMacro( VideoSource, itk::Object );\n \/\/itkNewMacro( Self );\n VideoSource();\n\t virtual ~VideoSource(); \n \n \/\/\/\/##Documentation\n \/\/\/\/## @brief assigns the grabbing devices for acquiring the next frame. \n virtual void FetchFrame();\n \/\/\/\/##Documentation\n \/\/\/\/## @brief returns a pointer to the image data array for opengl rendering. \n virtual unsigned char * GetVideoTexture();\n \/\/\/\/##Documentation\n \/\/\/\/## @brief starts the video capturing.\n virtual void StartCapturing();\n \/\/\/\/##Documentation\n \/\/\/\/## @brief stops the video capturing.\n virtual void StopCapturing();\n \/\/\/\/##Documentation\n \/\/\/\/## @brief returns true if video capturing is active.\n bool IsCapturingEnabled();\n\n protected:\n \t \n unsigned char * m_CurrentVideoTexture;\n int m_CaptureWidth, m_CaptureHeight;\n bool m_CapturingInProcess;\n \n \n };\n}\n#endif \/\/ Header","new_contents":"#ifndef _mitk_Video_Source_h_\n#define _mitk_Video_Source_h_\n\n#include \"mitkCommon.h\"\n#include \n#include \"itkObjectFactory.h\"\n\nnamespace mitk\n{\n \/**\n * Simple base class for acquiring video data. \n *\/\n class VideoSource \/\/: public itk::Object\n {\n public:\n \/\/mitkClassMacro( VideoSource, itk::Object );\n \/\/itkNewMacro( Self );\n VideoSource();\n\t virtual ~VideoSource(); \n \n \/\/\/\/##Documentation\n \/\/\/\/## @brief assigns the grabbing devices for acquiring the next frame. \n virtual void FetchFrame();\n \/\/\/\/##Documentation\n \/\/\/\/## @brief returns a pointer to the image data array for opengl rendering. \n virtual unsigned char * GetVideoTexture();\n \/\/\/\/##Documentation\n \/\/\/\/## @brief starts the video capturing.\n virtual void StartCapturing();\n \/\/\/\/##Documentation\n \/\/\/\/## @brief stops the video capturing.\n virtual void StopCapturing();\n \/\/\/\/##Documentation\n \/\/\/\/## @brief returns true if video capturing is active.\n bool IsCapturingEnabled();\n\n protected:\n \t \n unsigned char * m_CurrentVideoTexture;\n int m_CaptureWidth, m_CaptureHeight;\n bool m_CapturingInProcess;\n \n \n };\n}\n#endif \/\/ Header\n\n","subject":"FIX warnings: newline at end of file","message":"FIX warnings: newline at end of file\n\n\n","lang":"C","license":"bsd-3-clause","repos":"fmilano\/mitk,danielknorr\/MITK,lsanzdiaz\/MITK-BiiG,danielknorr\/MITK,nocnokneo\/MITK,NifTK\/MITK,fmilano\/mitk,lsanzdiaz\/MITK-BiiG,MITK\/MITK,rfloca\/MITK,danielknorr\/MITK,iwegner\/MITK,fmilano\/mitk,lsanzdiaz\/MITK-BiiG,iwegner\/MITK,danielknorr\/MITK,lsanzdiaz\/MITK-BiiG,fmilano\/mitk,MITK\/MITK,fmilano\/mitk,rfloca\/MITK,fmilano\/mitk,nocnokneo\/MITK,NifTK\/MITK,NifTK\/MITK,nocnokneo\/MITK,fmilano\/mitk,lsanzdiaz\/MITK-BiiG,nocnokneo\/MITK,iwegner\/MITK,nocnokneo\/MITK,MITK\/MITK,nocnokneo\/MITK,nocnokneo\/MITK,NifTK\/MITK,MITK\/MITK,MITK\/MITK,iwegner\/MITK,iwegner\/MITK,NifTK\/MITK,lsanzdiaz\/MITK-BiiG,RabadanLab\/MITKats,rfloca\/MITK,RabadanLab\/MITKats,RabadanLab\/MITKats,iwegner\/MITK,NifTK\/MITK,rfloca\/MITK,MITK\/MITK,rfloca\/MITK,rfloca\/MITK,RabadanLab\/MITKats,lsanzdiaz\/MITK-BiiG,lsanzdiaz\/MITK-BiiG,danielknorr\/MITK,RabadanLab\/MITKats,danielknorr\/MITK,rfloca\/MITK,RabadanLab\/MITKats,danielknorr\/MITK"} {"commit":"e434cc2a4d7de10c15ecf18ba27be5819e247910","old_file":"include\/llvm\/Option\/OptSpecifier.h","new_file":"include\/llvm\/Option\/OptSpecifier.h","old_contents":"\/\/===--- OptSpecifier.h - Option Specifiers ---------------------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_OPTION_OPTSPECIFIER_H\n#define LLVM_OPTION_OPTSPECIFIER_H\n\nnamespace llvm {\nnamespace opt {\n class Option;\n\n \/\/\/ OptSpecifier - Wrapper class for abstracting references to option IDs.\n class OptSpecifier {\n unsigned ID;\n\n private:\n explicit OptSpecifier(bool) LLVM_DELETED_FUNCTION;\n\n public:\n OptSpecifier() : ID(0) {}\n \/*implicit*\/ OptSpecifier(unsigned _ID) : ID(_ID) {}\n \/*implicit*\/ OptSpecifier(const Option *Opt);\n\n bool isValid() const { return ID != 0; }\n\n unsigned getID() const { return ID; }\n\n bool operator==(OptSpecifier Opt) const { return ID == Opt.getID(); }\n bool operator!=(OptSpecifier Opt) const { return !(*this == Opt); }\n };\n}\n}\n\n#endif\n","new_contents":"\/\/===--- OptSpecifier.h - Option Specifiers ---------------------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef LLVM_OPTION_OPTSPECIFIER_H\n#define LLVM_OPTION_OPTSPECIFIER_H\n\n#include \"llvm\/Support\/Compiler.h\"\n\nnamespace llvm {\nnamespace opt {\n class Option;\n\n \/\/\/ OptSpecifier - Wrapper class for abstracting references to option IDs.\n class OptSpecifier {\n unsigned ID;\n\n private:\n explicit OptSpecifier(bool) LLVM_DELETED_FUNCTION;\n\n public:\n OptSpecifier() : ID(0) {}\n \/*implicit*\/ OptSpecifier(unsigned _ID) : ID(_ID) {}\n \/*implicit*\/ OptSpecifier(const Option *Opt);\n\n bool isValid() const { return ID != 0; }\n\n unsigned getID() const { return ID; }\n\n bool operator==(OptSpecifier Opt) const { return ID == Opt.getID(); }\n bool operator!=(OptSpecifier Opt) const { return !(*this == Opt); }\n };\n}\n}\n\n#endif\n","subject":"Add missing include, found by modules build.","message":"Add missing include, found by modules build.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@207158 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"bsd-2-clause","repos":"chubbymaggie\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,apple\/swift-llvm,apple\/swift-llvm,dslab-epfl\/asap,llvm-mirror\/llvm,apple\/swift-llvm,dslab-epfl\/asap,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,llvm-mirror\/llvm,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,apple\/swift-llvm,llvm-mirror\/llvm,dslab-epfl\/asap,apple\/swift-llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,GPUOpen-Drivers\/llvm,dslab-epfl\/asap,apple\/swift-llvm,chubbymaggie\/asap,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,GPUOpen-Drivers\/llvm,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap,llvm-mirror\/llvm,GPUOpen-Drivers\/llvm,chubbymaggie\/asap"} {"commit":"baa4007881f894ff8c0a04b71002d53f4fe9572a","old_file":"kernel\/x86\/tests\/lock.c","new_file":"kernel\/x86\/tests\/lock.c","old_contents":"#include \n\n#include \n#include \n#include \n\n#include \n\nstatic volatile int counter;\nstatic mutex_t lock;\n\nvoid *do_thread(void *arg) {\n\tint sign = (int)arg;\n\n\tfor(int i = 0; i < 100000; i++) {\n\t\twait_aquire(&lock);\n\t\tcounter += sign;\n\t\trelease(&lock);\n\t}\n\n\treturn NULL;\n}\n\nvoid panic(char *s) {\n\tfprintf(stderr, \"%s\\n\", s);\n\texit(1);\n}\n\nint main(void) {\n\tpthread_t incr, decr;\n\n\tpthread_create(&incr, NULL, do_thread, (void *)1);\n\tpthread_create(&decr, NULL, do_thread, (void *)-1);\n\n\tpthread_join(incr, NULL);\n\tpthread_join(decr, NULL);\n\n\tif(counter != 0) {\n\t\tpanic(\"Counter is non-zero!\");\n\t}\n\treturn 0;\n}\n","new_contents":"#include \n\n#include \n#include \n#include \n\n#include \n\nstatic volatile int counter;\nstatic mutex_t lock;\n\nvoid *do_thread(void *arg) {\n\tint sign = (int)arg;\n\n\tfor(int i = 0; i < 100000; i++) {\n\t\twait_aquire(&lock);\n\t\tcounter += sign;\n\t\trelease(&lock);\n\t}\n\n\treturn NULL;\n}\n\nvoid panic(char *s) {\n\tfprintf(stderr, \"%s\\n\", s);\n\texit(1);\n}\n\nint main(void) {\n\tpthread_t incr, decr;\n\n\tpthread_create(&incr, NULL, do_thread, (void *)1);\n\tpthread_create(&decr, NULL, do_thread, (void *)-1);\n\n\tpthread_join(incr, NULL);\n\tpthread_join(decr, NULL);\n\n\tif(counter != 0) {\n\t\tpanic(\"Counter is non-zero!\");\n\t}\n\treturn 0;\n}\n","subject":"Fix bitrotted include in test","message":"Fix bitrotted include in test\n","lang":"C","license":"isc","repos":"zenhack\/zero,zenhack\/zero,zenhack\/zero"} {"commit":"058e1d58e49a2635fa649114f58d66ac4580ba1d","old_file":"hw\/mcu\/native\/src\/hal_gpio.c","new_file":"hw\/mcu\/native\/src\/hal_gpio.c","old_contents":"","new_contents":"\/**\n * Copyright (c) 2015 Runtime Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n\n#include \"hal\/hal_gpio.h\"\n\n#include \n\n#define HAL_GPIO_NUM_PINS 8\n\nstatic struct {\n int val;\n enum {\n INPUT,\n OUTPUT\n } dir;\n} hal_gpio[HAL_GPIO_NUM_PINS];\n\nint\ngpio_init_in(int pin, gpio_pull_t pull)\n{\n if (pin >= HAL_GPIO_NUM_PINS) {\n return -1;\n }\n hal_gpio[pin].dir = INPUT;\n switch (pull) {\n case GPIO_PULL_UP:\n hal_gpio[pin].val = 1;\n break;\n default:\n hal_gpio[pin].val = 0;\n break;\n }\n return 0;\n}\n\nint\ngpio_init_out(int pin, int val)\n{\n if (pin >= HAL_GPIO_NUM_PINS) {\n return -1;\n }\n hal_gpio[pin].dir = OUTPUT;\n hal_gpio[pin].val = (val != 0);\n return 0;\n}\n\nvoid\ngpio_set(int pin)\n{\n gpio_write(pin, 1);\n}\n\nvoid\ngpio_clear(int pin)\n{\n gpio_write(pin, 0);\n}\n\nvoid gpio_write(int pin, int val)\n{\n if (pin >= HAL_GPIO_NUM_PINS) {\n return;\n }\n if (hal_gpio[pin].dir != OUTPUT) {\n return;\n }\n hal_gpio[pin].val = (val != 0);\n printf(\"GPIO %d is now %d\\n\", pin, val);\n}\n\nint\ngpio_read(int pin)\n{\n if (pin >= HAL_GPIO_NUM_PINS) {\n return -1;\n }\n return hal_gpio[pin].val;\n}\n\nvoid\ngpio_toggle(int pin)\n{\n gpio_write(pin, gpio_read(pin) != 1);\n}\n","subject":"Add GPIO hal for simulator.","message":"Add GPIO hal for simulator.\n","lang":"C","license":"apache-2.0","repos":"andrzej-kaczmarek\/incubator-mynewt-core,wes3\/incubator-mynewt-core,IMGJulian\/incubator-mynewt-core,IMGJulian\/incubator-mynewt-core,mlaz\/mynewt-core,wes3\/incubator-mynewt-core,andrzej-kaczmarek\/incubator-mynewt-core,mlaz\/mynewt-core,wes3\/incubator-mynewt-core,andrzej-kaczmarek\/apache-mynewt-core,IMGJulian\/incubator-mynewt-core,mlaz\/mynewt-core,wes3\/incubator-mynewt-core,andrzej-kaczmarek\/incubator-mynewt-core,andrzej-kaczmarek\/incubator-mynewt-core,mlaz\/mynewt-core,andrzej-kaczmarek\/apache-mynewt-core,mlaz\/mynewt-core,wes3\/incubator-mynewt-core,andrzej-kaczmarek\/apache-mynewt-core,IMGJulian\/incubator-mynewt-core,IMGJulian\/incubator-mynewt-core,andrzej-kaczmarek\/incubator-mynewt-core,andrzej-kaczmarek\/apache-mynewt-core"} {"commit":"84e98bde6e98ab033b63393efc2741e260a63253","old_file":"include\/lldb\/Host\/PosixApi.h","new_file":"include\/lldb\/Host\/PosixApi.h","old_contents":"\/\/===-- PosixApi.h ----------------------------------------------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef liblldb_Host_PosixApi_h\n#define liblldb_Host_PosixApi_h\n\n\/\/ This file defines platform specific functions, macros, and types necessary\n\/\/ to provide a minimum level of compatibility across all platforms to rely\n\/\/ on various posix api functionality.\n\n#include \"llvm\/Support\/Compiler.h\"\n\n#if defined(LLVM_ON_WIN32)\n#include \"lldb\/Host\/windows\/PosixApi.h\"\n#endif\n\n#endif","new_contents":"\/\/===-- PosixApi.h ----------------------------------------------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\n#ifndef liblldb_Host_PosixApi_h\n#define liblldb_Host_PosixApi_h\n\n\/\/ This file defines platform specific functions, macros, and types necessary\n\/\/ to provide a minimum level of compatibility across all platforms to rely\n\/\/ on various posix api functionality.\n\n#include \"llvm\/Support\/Compiler.h\"\n\n#if defined(LLVM_ON_WIN32)\n#include \"lldb\/Host\/windows\/PosixApi.h\"\n#endif\n\n#endif\n","subject":"Add a newline to the end of the file to remove the clang warnings.","message":"Add a newline to the end of the file to remove the clang warnings.\n\n\ngit-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@278188 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/lldb,apple\/swift-lldb,llvm-mirror\/lldb,llvm-mirror\/lldb,llvm-mirror\/lldb,apple\/swift-lldb,apple\/swift-lldb,llvm-mirror\/lldb,apple\/swift-lldb,apple\/swift-lldb,apple\/swift-lldb"} {"commit":"0b7aa15019283753a620c908deea7bab4da1f94d","old_file":"libcassandra\/util\/platform.h","new_file":"libcassandra\/util\/platform.h","old_contents":"\/*\n * LibCassandra\n * Copyright (C) 2010-2011 Padraig O'Sullivan, Ewen Cheslack-Postava\n * All rights reserved.\n *\n * Use and distribution licensed under the BSD license. See\n * the COPYING file in the parent directory for full text.\n *\/\n\n#ifndef __LIBCASSANDRA_UTIL_PLATFORM_H\n#define __LIBCASSANDRA_UTIL_PLATFORM_H\n\n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n\n#endif \/\/__LIBCASSANDRA_UTIL_PLATFORM_H\n","new_contents":"\/*\n * LibCassandra\n * Copyright (C) 2010-2011 Padraig O'Sullivan, Ewen Cheslack-Postava\n * All rights reserved.\n *\n * Use and distribution licensed under the BSD license. See\n * the COPYING file in the parent directory for full text.\n *\/\n\n#ifndef __LIBCASSANDRA_UTIL_PLATFORM_H\n#define __LIBCASSANDRA_UTIL_PLATFORM_H\n\n#ifdef __GNUC__\n\n\/\/ #include_next is broken: it does not search default include paths!\n#define BOOST_TR1_DISABLE_INCLUDE_NEXT\n\/\/ config_all.hpp reads this variable, then sets BOOST_HAS_INCLUDE_NEXT anyway\n#include \n#ifdef BOOST_HAS_INCLUDE_NEXT\n\/\/ This behavior has existed since boost 1.34, unlikely to change.\n#undef BOOST_HAS_INCLUDE_NEXT\n#endif\n\n#endif\n#endif\n\n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n\n#endif \/\/__LIBCASSANDRA_UTIL_PLATFORM_H\n","subject":"Disable boost's include_next functionality, fixes compatibility with Sirikata.","message":"Disable boost's include_next functionality, fixes compatibility with Sirikata.\n","lang":"C","license":"bsd-3-clause","repos":"xiaozhou\/libcassandra,xiaozhou\/libcassandra,xiaozhou\/libcassandra,xiaozhou\/libcassandra"} {"commit":"3c409aa80a2d40b21277cdbddf879a376814e315","old_file":"src\/config_traits.h","new_file":"src\/config_traits.h","old_contents":"#include \n\ntemplate\nstruct is_config_type:std::integral_constant{};\n\ntemplate<> struct is_config_type : std::integral_constant{};\n\ntemplate<> struct is_config_type : std::integral_constant{};\ntemplate<> struct is_config_type : std::integral_constant{};\ntemplate<> struct is_config_type : std::integral_constant{};\n\ntemplate<> struct is_config_type : std::integral_constant{};\ntemplate<> struct is_config_type : std::integral_constant{};\ntemplate<> struct is_config_type : std::integral_constant{};\n\ntemplate<> struct is_config_type : std::integral_constant{};\ntemplate<> struct is_config_type : std::integral_constant{};\ntemplate<> struct is_config_type : std::integral_constant{};\n\ntemplate<> struct is_config_type : std::integral_constant{};\n\n","new_contents":"#include \n\ntemplate\nstruct is_config_type: std::false_type{};\n\ntemplate<> struct is_config_type : std::true_type{};\n\ntemplate<> struct is_config_type : std::true_type{};\ntemplate<> struct is_config_type : std::true_type{};\ntemplate<> struct is_config_type : std::true_type{};\n\ntemplate<> struct is_config_type : std::true_type{};\ntemplate<> struct is_config_type : std::true_type{};\ntemplate<> struct is_config_type : std::true_type{};\n\ntemplate<> struct is_config_type : std::true_type{};\ntemplate<> struct is_config_type : std::true_type{};\ntemplate<> struct is_config_type : std::true_type{};\n\ntemplate<> struct is_config_type : std::true_type{};\n\n","subject":"Change integral_constant to true_type and false_type.","message":"Change integral_constant to true_type and false_type.\n","lang":"C","license":"mit","repos":"actinium\/cppConfig"} {"commit":"588dcc093d81a4acfac699195641dfa26571d2a1","old_file":"include\/core\/SkMilestone.h","new_file":"include\/core\/SkMilestone.h","old_contents":"\/*\n * Copyright 2016 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n#ifndef SK_MILESTONE\n#define SK_MILESTONE 95\n#endif\n","new_contents":"\/*\n * Copyright 2016 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n#ifndef SK_MILESTONE\n#define SK_MILESTONE 96\n#endif\n","subject":"Update Skia milestone to 96","message":"Update Skia milestone to 96\n\nChange-Id: I635df8267340a9068b80a2e6c001958cfb2d10e4\nReviewed-on: https:\/\/skia-review.googlesource.com\/c\/skia\/+\/447578\nReviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>\nReviewed-by: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>\nAuto-Submit: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>\nCommit-Queue: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>\n","lang":"C","license":"bsd-3-clause","repos":"google\/skia,google\/skia,aosp-mirror\/platform_external_skia,google\/skia,google\/skia,google\/skia,google\/skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,google\/skia,google\/skia,aosp-mirror\/platform_external_skia,google\/skia,aosp-mirror\/platform_external_skia,google\/skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia"} {"commit":"7d8b06f783652f8464b9985d07a0c9ba2ce4e202","old_file":"include\/core\/SkMilestone.h","new_file":"include\/core\/SkMilestone.h","old_contents":"\/*\n * Copyright 2016 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n#ifndef SK_MILESTONE\n#define SK_MILESTONE 66\n#endif\n","new_contents":"\/*\n * Copyright 2016 Google Inc.\n *\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n#ifndef SK_MILESTONE\n#define SK_MILESTONE 67\n#endif\n","subject":"Update Skia milestone to 67","message":"Update Skia milestone to 67\n\nTBR: reed\n\nBug: skia:\nChange-Id: I11a5515c41d5bb7ed95294fdb63668c35d14d960\nReviewed-on: https:\/\/skia-review.googlesource.com\/111326\nReviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>\n","lang":"C","license":"bsd-3-clause","repos":"google\/skia,Hikari-no-Tenshi\/android_external_skia,rubenvb\/skia,HalCanary\/skia-hc,google\/skia,rubenvb\/skia,Hikari-no-Tenshi\/android_external_skia,rubenvb\/skia,aosp-mirror\/platform_external_skia,google\/skia,google\/skia,Hikari-no-Tenshi\/android_external_skia,google\/skia,rubenvb\/skia,HalCanary\/skia-hc,google\/skia,Hikari-no-Tenshi\/android_external_skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,rubenvb\/skia,HalCanary\/skia-hc,rubenvb\/skia,google\/skia,HalCanary\/skia-hc,HalCanary\/skia-hc,google\/skia,rubenvb\/skia,aosp-mirror\/platform_external_skia,aosp-mirror\/platform_external_skia,google\/skia,Hikari-no-Tenshi\/android_external_skia,Hikari-no-Tenshi\/android_external_skia,rubenvb\/skia,aosp-mirror\/platform_external_skia,HalCanary\/skia-hc,rubenvb\/skia,HalCanary\/skia-hc,HalCanary\/skia-hc,aosp-mirror\/platform_external_skia,Hikari-no-Tenshi\/android_external_skia,google\/skia,aosp-mirror\/platform_external_skia,Hikari-no-Tenshi\/android_external_skia,aosp-mirror\/platform_external_skia,HalCanary\/skia-hc,aosp-mirror\/platform_external_skia,HalCanary\/skia-hc,rubenvb\/skia"} {"commit":"1dfa8ad98b49171049e224a2fe2a33176c6bf779","old_file":"include\/sigar_visibility.h","new_file":"include\/sigar_visibility.h","old_contents":"\/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- *\/\n\/*\n * Copyright 2013 Couchbase, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n#ifndef SIGAR_VISIBILITY_H\n#define SIGAR_VISIBILITY_H 1\n\n#ifdef BUILDING_SIGAR\n\n#if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)\n#define SIGAR_PUBLIC_API __global\n#elif defined __GNUC__\n#define SIGAR_PUBLIC_API __attribute__ ((visibility(\"default\")))\n#elif defined(_MSC_VER)\n#define SIGAR_PUBLIC_API __declspec(dllexport)\n#else\n\/* unknown compiler *\/\n#define SIGAR_PUBLIC_API\n#endif\n\n#else\n\n#if defined(_MSC_VER)\n#define SIGAR_PUBLIC_API __declspec(dllimport)\n#else\n#define SIGAR_PUBLIC_API\n#endif\n\n#endif\n\n#endif \/* SIGAR_VISIBILITY_H *\/\n","new_contents":"\/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- *\/\n\/*\n * Copyright 2013 Couchbase, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\/\n#pragma once\n\n#ifdef BUILDING_SIGAR\n\n#if defined(__GNUC__)\n#define SIGAR_PUBLIC_API __attribute__ ((visibility(\"default\")))\n#elif defined(_MSC_VER)\n#define SIGAR_PUBLIC_API __declspec(dllexport)\n#else\n\/* unknown compiler *\/\n#define SIGAR_PUBLIC_API\n#endif\n\n#else\n\n#if defined(_MSC_VER)\n#define SIGAR_PUBLIC_API __declspec(dllimport)\n#else\n#define SIGAR_PUBLIC_API\n#endif\n\n#endif\n","subject":"Remove support for Sun Studio compiler","message":"Remove support for Sun Studio compiler\n\nChange-Id: I7fb2ac0cd9942fad79eb874604dc48e02a0d01db\nReviewed-on: https:\/\/review.couchbase.org\/c\/sigar\/+\/166582\nTested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>\nReviewed-by: Paolo Cocchi <9dd88c9f3e5cbab6e19a6c020f107e0c648ac956@couchbase.com>\n","lang":"C","license":"apache-2.0","repos":"couchbase\/sigar,couchbase\/sigar"} {"commit":"4d3b0456778961c5a8af919a7c1fcf60a8658bf4","old_file":"kernel\/kernel\/resourceManager.c","new_file":"kernel\/kernel\/resourceManager.c","old_contents":"#include \"resourceManager.h\"\n#include \"kernelHeap.h\"\n\n\/\/allocates frames\nMemoryResource *create_memoryResource(unsigned int size)\n{\n MemoryResource *memRes;\n\n memRes = kmalloc(sizeof(MemoryResource));\n\n return memRes;\n}","new_contents":"#include \"resourceManager.h\"\n#include \"kernelHeap.h\"\n\n\/\/allocates frames\nMemoryResource *create_memoryResource(unsigned int size)\n{\n MemoryResource *memRes;\n\n memRes = (MemoryResource*)kmalloc(sizeof(MemoryResource));\n\n return memRes;\n}\n","subject":"Use type casts from void","message":"Use type casts from void\n","lang":"C","license":"mit","repos":"povilasb\/simple-os,povilasb\/simple-os"} {"commit":"59f7cc058f7d810cd161b21cbff526f0378a61df","old_file":"mechanical\/kelvin-params.c","new_file":"mechanical\/kelvin-params.c","old_contents":"","new_contents":"#include \"matrix.h\"\n#include \n\nenum datacols {\n _M = 1,\n _J0 = 2,\n _J1 = 3,\n _J2 = 5,\n _TAU1 = 4,\n _TAU2 = 6\n};\n\ndouble CreepLookup(char *file, double T, double M, int param)\n{\n int i = 0;\n double M0, M1, y0, y1;\n matrix *data;\n\n data = mtxloadcsv(file, 1);\n\n while(val(data, i, _M) < M)\n i++;\n\n M0 = val(data, i-1, _M);\n M1 = val(data, i, _M);\n y0 = val(data, i-1, param);\n y1 = val(data, i, param);\n\n DestroyMatrix(data);\n return y0 + (y1 - y0) * (M-M0)\/(M1-M0);\n} \n\ndouble CreepLookupJ0(char *f, double T, double M)\n{ return CreepLookup(f, T, M, _J0); }\ndouble CreepLookupJ1(char *f, double T, double M)\n{ return CreepLookup(f, T, M, _J1); }\ndouble CreepLookupJ2(char *f, double T, double M)\n{ return CreepLookup(f, T, M, _J2); }\ndouble CreepLookupTau1(char *f, double T, double M)\n{ return CreepLookup(f, T, M, _TAU1); }\ndouble CreepLookupTau2(char *f, double T, double M)\n{ return CreepLookup(f, T, M, _TAU2); }\n\n","subject":"Add functions for linear interpolation of creep function parameters.","message":"Add functions for linear interpolation of creep function parameters.\n","lang":"C","license":"bsd-3-clause","repos":"mirrorscotty\/material-data"} {"commit":"4c7c2cb4711297c1e5eefad723ab3b1db27d1614","old_file":"include\/parrot\/stacks.h","new_file":"include\/parrot\/stacks.h","old_contents":"\/* stacks.h\n * Copyright: (When this is determined...it will go here)\n * CVS Info\n * $Id$\n * Overview:\n * Stack handling routines for Parrot\n * Data Structure and Algorithms:\n * History:\n * Notes:\n * References:\n *\/\n\n#if !defined(PARROT_STACKS_H_GUARD)\n#define PARROT_STACKS_H_GUARD\n\n#include \"parrot\/parrot.h\"\n\n#define STACK_CHUNK_DEPTH 256\n\nstruct Stack_Entry {\n INTVAL entry_type;\n INTVAL flags;\n void (*cleanup)(struct Stack_Entry *);\n union {\n FLOATVAL num_val;\n INTVAL int_val;\n PMC *pmc_val;\n STRING *string_val;\n void *generic_pointer;\n } entry;\n};\n\nstruct Stack {\n INTVAL used;\n INTVAL free;\n struct StackChunk *next;\n struct StackChunk *prev;\n struct Stack_Entry entry[STACK_CHUNK_DEPTH];\n};\n\nstruct Stack_Entry *push_generic_entry(struct Perl_Interp *, void *thing, INTVAL type, void *cleanup);\nvoid *pop_generic_entry(struct Perl_Interp *, void *where, INTVAL type);\nvoid toss_geleric_entry(struct Perl_Interp *, INTVAL type);\n\n#endif\n\n\/*\n * Local variables:\n * c-indentation-style: bsd\n * c-basic-offset: 4\n * indent-tabs-mode: nil \n * End:\n *\n * vim: expandtab shiftwidth=4:\n*\/\n","new_contents":"\/* stacks.h\n * Copyright: (When this is determined...it will go here)\n * CVS Info\n * $Id$\n * Overview:\n * Stack handling routines for Parrot\n * Data Structure and Algorithms:\n * History:\n * Notes:\n * References:\n *\/\n\n#if !defined(PARROT_STACKS_H_GUARD)\n#define PARROT_STACKS_H_GUARD\n\n#include \"parrot\/parrot.h\"\n\n#define STACK_CHUNK_DEPTH 256\n\nstruct Stack_Entry {\n INTVAL entry_type;\n INTVAL flags;\n void (*cleanup)(struct Stack_Entry *);\n union {\n FLOATVAL num_val;\n INTVAL int_val;\n PMC *pmc_val;\n STRING *string_val;\n void *generic_pointer;\n } entry;\n};\n\nstruct Stack {\n INTVAL used;\n INTVAL free;\n struct StackChunk *next;\n struct StackChunk *prev;\n struct Stack_Entry entry[STACK_CHUNK_DEPTH];\n};\n\nstruct Stack_Entry *push_generic_entry(struct Perl_Interp *, void *thing, INTVAL type, void *cleanup);\nvoid *pop_generic_entry(struct Perl_Interp *, void *where, INTVAL type);\nvoid toss_generic_entry(struct Perl_Interp *, INTVAL type);\n\n#endif\n\n\/*\n * Local variables:\n * c-indentation-style: bsd\n * c-basic-offset: 4\n * indent-tabs-mode: nil \n * End:\n *\n * vim: expandtab shiftwidth=4:\n*\/\n","subject":"Fix typo in function name","message":"Fix typo in function name\n\n\ngit-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@255 d31e2699-5ff4-0310-a27c-f18f2fbe73fe\n","lang":"C","license":"artistic-2.0","repos":"ashgti\/parrot,ashgti\/parrot,ashgti\/parrot,ashgti\/parrot,ashgti\/parrot,ashgti\/parrot,ashgti\/parrot"} {"commit":"8d8fbf94c3fc783a1becafb9efa6db8f4d0985f1","old_file":"ext\/mysql2\/mysql2_ext.h","new_file":"ext\/mysql2\/mysql2_ext.h","old_contents":"#ifndef MYSQL2_EXT\n#define MYSQL2_EXT\n\nvoid Init_mysql2(void);\n\n\/* tell rbx not to use it's caching compat layer\n by doing this we're making a promise to RBX that\n we'll never modify the pointers we get back from RSTRING_PTR *\/\n#define RSTRING_NOT_MODIFIED\n#include \n\n#ifdef HAVE_MYSQL_H\n#include \n#include \n#include \n#include \n#else\n#include \n#include \n#include \n#include \n#endif\n\n#ifdef HAVE_RUBY_ENCODING_H\n#include \n#endif\n#ifdef HAVE_RUBY_THREAD_H\n#include \n#endif\n\n#if defined(__GNUC__) && (__GNUC__ >= 3)\n#define RB_MYSQL_NORETURN __attribute__ ((noreturn))\n#define RB_MYSQL_UNUSED __attribute__ ((unused))\n#else\n#define RB_MYSQL_NORETURN\n#define RB_MYSQL_UNUSED\n#endif\n\n#include \n#include \n#include \n#include \n\n#endif\n","new_contents":"#ifndef MYSQL2_EXT\n#define MYSQL2_EXT\n\nvoid Init_mysql2(void);\n\n\/* tell rbx not to use it's caching compat layer\n by doing this we're making a promise to RBX that\n we'll never modify the pointers we get back from RSTRING_PTR *\/\n#define RSTRING_NOT_MODIFIED\n#include \n\n#ifdef HAVE_MYSQL_H\n#include \n#include \n#include \n#else\n#include \n#include \n#include \n#endif\n\n#ifdef HAVE_RUBY_ENCODING_H\n#include \n#endif\n#ifdef HAVE_RUBY_THREAD_H\n#include \n#endif\n\n#if defined(__GNUC__) && (__GNUC__ >= 3)\n#define RB_MYSQL_NORETURN __attribute__ ((noreturn))\n#define RB_MYSQL_UNUSED __attribute__ ((unused))\n#else\n#define RB_MYSQL_NORETURN\n#define RB_MYSQL_UNUSED\n#endif\n\n#include \n#include \n#include \n#include \n\n#endif\n","subject":"Include mysql_com.h has been here for ages but was superfluous","message":"Include mysql_com.h has been here for ages but was superfluous\n","lang":"C","license":"mit","repos":"kamipo\/mysql2,kamipo\/mysql2,sodabrew\/mysql2,sodabrew\/mysql2,tamird\/mysql2,jeremy\/mysql2,brianmario\/mysql2,jeremy\/mysql2,bigcartel\/mysql2,brianmario\/mysql2,tamird\/mysql2,jeremy\/mysql2,kamipo\/mysql2,brianmario\/mysql2,kamipo\/mysql2,tamird\/mysql2,sodabrew\/mysql2,bigcartel\/mysql2,bigcartel\/mysql2,tamird\/mysql2,bigcartel\/mysql2"} {"commit":"89826f41bd5c96e6b13692d03d08049c912b9365","old_file":"cat.c","new_file":"cat.c","old_contents":"#include \"types.h\"\n#include \"stat.h\"\n#include \"user.h\"\n\nchar buf[512];\n\nvoid\ncat(int fd)\n{\n int n;\n\n while((n = read(fd, buf, sizeof(buf))) > 0)\n write(1, buf, n);\n if(n < 0){\n printf(1, \"cat: read error\\n\");\n exit();\n }\n}\n\nint\nmain(int argc, char *argv[])\n{\n int fd, i;\n\n if(argc <= 1){\n cat(0);\n exit();\n }\n\n for(i = 1; i < argc; i++){\n if((fd = open(argv[i], 0)) < 0){\n printf(1, \"cat: cannot open %s\\n\", argv[i]);\n exit();\n }\n cat(fd);\n close(fd);\n }\n exit();\n}\n","new_contents":"#include \"types.h\"\n#include \"stat.h\"\n#include \"user.h\"\n\nchar buf[512];\n\nvoid\ncat(int fd)\n{\n int n;\n\n while((n = read(fd, buf, sizeof(buf))) > 0) {\n if (write(1, buf, n) != n) {\n printf(1, \"cat: write error\\n\");\n exit();\n }\n }\n if(n < 0){\n printf(1, \"cat: read error\\n\");\n exit();\n }\n}\n\nint\nmain(int argc, char *argv[])\n{\n int fd, i;\n\n if(argc <= 1){\n cat(0);\n exit();\n }\n\n for(i = 1; i < argc; i++){\n if((fd = open(argv[i], 0)) < 0){\n printf(1, \"cat: cannot open %s\\n\", argv[i]);\n exit();\n }\n cat(fd);\n close(fd);\n }\n exit();\n}\n","subject":"Check result of write (thans to Alexander Kapshuk PacketizedSamplesPtr;\n}\n\n\n#endif \/* PACKETIZEDSAMPLES_H_ *\/\n","new_contents":"\/*\n * PacketizedSamples.h\n *\n * Created on: May 25, 2013\n * Author: ddaeschler\n *\/\n\n#ifndef PACKETIZEDSAMPLES_H_\n#define PACKETIZEDSAMPLES_H_\n\n#include \"PacketBufferPool.h\"\n#include \"EncodedSamples.h\"\n\n#include \n\nnamespace audioreflector\n{\n\t\/**\n\t * Samples that have been resized to be appropriate for sending\n\t * to a remote destination\n\t *\/\n\tstruct PacketizedSamples\n\t{\n\t\tpacket_buffer_ptr Samples;\n\n\t\tint SampleRate;\n\t\tsize_t Size;\n\n\t\tPacketizedSamples(size_t start, size_t count, int sampleRate, EncodedSamplesPtr sourceSamples) {\n\t\t\tassert(count < packet_buffer::BUF_SZ);\n\n\t\t\tSampleRate = sampleRate;\n\t\t\tSize = count;\n\t\t\tSamples = PacketBufferPool::getInstance().alloc();\n\n\t\t\tstd::memcpy(Samples->contents, (&sourceSamples->Samples->contents[0]) + start, count);\n\t\t}\n\t};\n\n\ttypedef boost::shared_ptr PacketizedSamplesPtr;\n}\n\n\n#endif \/* PACKETIZEDSAMPLES_H_ *\/\n","subject":"Fix a bug where I forgot to actually copy the data while packetizing","message":"Fix a bug where I forgot to actually copy the data while packetizing","lang":"C","license":"mit","repos":"ddaeschler\/audio-reflector"} {"commit":"84fa2ddd969525d8d92329bda9e9b9457ebc3ddd","old_file":"mach.c","new_file":"mach.c","old_contents":"#define WORD (8 * sizeof(ulong))\n\n#define clz(x) __builtin_clzl(x)\n\n#define fls(x) (WORD - clz(x))\n\n#define ffs(x) (__builtin_ctzl(x))\n\n#define get(x, i) ((x) & (1 << (i)))\n\n#define set(x, i) (x = (x) | (1 << (i)))\n\n#define unset(x, i) (x = (x) & ~(1 << (i)))\n","new_contents":"#define WORD (8 * sizeof(ulong))\n\n#define clz(x) __builtin_clzl(x)\n\n#define fls(x) (WORD - clz(x))\n\n#define ffs(x) (__builtin_ctzl(x))\n\n#define get(x, i) ((x) & (1L << (i)))\n\n#define set(x, i) (x = (x) | (1L << (i)))\n\n#define unset(x, i) (x = (x) & ~(1L << (i)))\n","subject":"Fix to literal data types in the macros","message":"Fix to literal data types in the macros\n\nThanks for Fu, Bing for noting.\n","lang":"C","license":"mit","repos":"coriolanus\/libhhash"} {"commit":"8c6b30c2bdbdca9d78fcd7a4cde15e5aa6802029","old_file":"safe.h","new_file":"safe.h","old_contents":"#ifndef SAFE_H\n#define SAFE_H\n\n#include \"debug.h\"\n\n#ifndef DISABLE_SAFE\n\n#define SAFE_STRINGIFY(x) #x\n#define SAFE_TOSTRING(x) SAFE_STRINGIFY(x)\n#define SAFE_AT __FILE__ \":\" SAFE_TOSTRING(__LINE__) \": \"\n\n#define SAFE_ASSERT(cond) do { \\\n if (!(cond)) { \\\n DEBUG_DUMP(0, \"error: \" SAFE_AT \"%m\"); \\\n DEBUG_BREAK(!(cond)); \\\n } \\\n} while (0)\n\n#else\n#define SAFE_ASSERT(...)\n#endif\n\n#include \n\n#define SAFE_NNCALL(call) do { \\\n intptr_t ret = (intptr_t) (call); \\\n SAFE_ASSERT(ret >= 0); \\\n} while (0)\n\n#define SAFE_NZCALL(call) do { \\\n intptr_t ret = (intptr_t) (call); \\\n SAFE_ASSERT(ret != 0); \\\n} while (0)\n\n#endif \/* end of include guard: SAFE_H *\/\n","new_contents":"#ifndef SAFE_H\n#define SAFE_H\n\n#include \"debug.h\"\n\n#ifndef DISABLE_SAFE\n\n#define SAFE_STRINGIFY(x) #x\n#define SAFE_TOSTRING(x) SAFE_STRINGIFY(x)\n#define SAFE_AT __FILE__ \":\" SAFE_TOSTRING(__LINE__) \": \"\n\n#define SAFE_ASSERT(cond) do { \\\n if (!(cond)) { \\\n DEBUG_DUMP(0, \"error: \" SAFE_AT \"%m\"); \\\n DEBUG_BREAK(!(cond)); \\\n } \\\n} while (0)\n\n#else\n#define SAFE_ASSERT(...)\n#endif\n\n#include \n\n#define SAFE_NNCALL(call) do { \\\n intptr_t ret = (intptr_t) (call); \\\n SAFE_ASSERT(ret >= 0); \\\n} while (0)\n\n#define SAFE_NZCALL(call) do { \\\n intptr_t ret = (intptr_t) (call); \\\n SAFE_ASSERT(ret != 0); \\\n} while (0)\n\n#define SAFE_RZCALL(call) do { \\\n intptr_t ret = (intptr_t) (call); \\\n SAFE_ASSERT(ret == 0); \\\n} while (0)\n\n#endif \/* end of include guard: SAFE_H *\/\n","subject":"Add SAFE_RZCALL to wrap calls that returns zero.","message":"Add SAFE_RZCALL to wrap calls that returns zero.\n","lang":"C","license":"mit","repos":"chaoran\/fibril,chaoran\/fibril,chaoran\/fibril"} {"commit":"6868d0ea1dceb593d56d2302a46849791d3f2164","old_file":"Include\/Protocol\/DarwinKernel.h","new_file":"Include\/Protocol\/DarwinKernel.h","old_contents":"","new_contents":"\/** @file\n Copyright (C) 2016 CupertinoNet. All rights reserved.
\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n**\/\n\n#ifndef DARWIN_KERNEL_H_\n#define DARWIN_KERNEL_H_\n\n\/\/ Related definitions\n\n\/\/ DARWIN_KERNEL_IMAGE_TYPE\nenum {\n DarwinKernelImageTypeMacho = 0,\n DarwinKernelImageTypeHibernation = 1\n};\n\ntypedef UINTN DARWIN_KERNEL_IMAGE_TYPE;\n\n\/\/ DARWIN_KERNEL_HEADER\ntypedef union {\n MACH_HEADER *MachHeader;\n MACH_HEADER_64 *MachHeader64;\n IO_HIBERNATE_IMAGE_HEADER *HibernationImageHeader;\n} DARWIN_KERNEL_HEADER;\n\n\/\/ DARWIN_KERNEL_INFORMATION\ntypedef struct {\n DARWIN_KERNEL_IMAGE_TYPE ImageType;\n DARWIN_KERNEL_HEADER Image;\n} DARWIN_KERNEL_INFORMATION;\n\n\/\/ DARWIN_KERNEL_DISCOVERED_CALLBACK\ntypedef\nVOID\n(EFIAPI *DARWIN_KERNEL_DISCOVERED_CALLBACK)(\n IN XNU_PHYSICAL_ADDRESS KernelEntry\n );\n\n\/\/ DARWIN_KERNEL_ENTRY_CALLBACK\ntypedef\nVOID\n(EFIAPI *DARWIN_KERNEL_ENTRY_CALLBACK)(\n VOID\n );\n\n\/\/ Protocol definition\n\ntypedef DARWIN_KERNEL_PROTOCOL DARWIN_KERNEL_PROTOCOL;\n\n\/\/ DARWIN_KERNEL_ADD_KERNEL_DISCOVERED_CALLBACK\ntypedef\nEFI_STATUS\n(EFIAPI *DARWIN_KERNEL_ADD_KERNEL_DISCOVERED_CALLBACK)(\n IN DARWIN_KERNEL_PROTOCOL *This,\n IN DARWIN_KERNEL_DISCOVERED_CALLBACK NotifyFunction\n );\n\n\/\/ DARWIN_KERNEL_ADD_KERNEL_ENTRY_CALLBACK\ntypedef\nEFI_STATUS\n(EFIAPI *DARWIN_KERNEL_ADD_KERNEL_ENTRY_CALLBACK)(\n IN DARWIN_KERNEL_PROTOCOL *This,\n IN DARWIN_KERNEL_ENTRY_CALLBACK NotifyFunction\n );\n\n\/\/ DARWIN_KERNEL_GET_IMAGE_INFORMATION\ntypedef\nEFI_STATUS\n(EFIAPI *DARWIN_KERNEL_GET_IMAGE_INFORMATION)(\n IN DARWIN_KERNEL_PROTOCOL *This,\n OUT DARWIN_KERNEL_INFORMATION *KernelInformation\n );\n\n\/\/ DARWIN_KERNEL_PROTOCOL\nstruct DARWIN_KERNEL_PROTOCOL {\n UINTN Revision;\n DARWIN_KERNEL_ADD_KERNEL_DISCOVERED_CALLBACK AddKernelDiscoveredCallback;\n DARWIN_KERNEL_ADD_KERNEL_ENTRY_CALLBACK AddKernelEntryCallback;\n DARWIN_KERNEL_GET_IMAGE_INFORMATION GetImageInformation;\n};\n\n#endif \/\/ DARWIN_KERNEL_H_\n","subject":"Add proof-of-concept Kernel protocol header.","message":"Add proof-of-concept Kernel protocol header.\n","lang":"C","license":"apache-2.0","repos":"CupertinoNet\/CupertinoSupportPkg,CupertinoNet\/CupertinoSupportPkg"} {"commit":"78d601ccff5ceefcf7c2de452bb1df8375436eb5","old_file":"tests\/regression\/15-deadlock\/12-ase16_nodeadlock.c","new_file":"tests\/regression\/15-deadlock\/12-ase16_nodeadlock.c","old_contents":"","new_contents":"\/\/ PARAM: --set ana.activated[+] deadlock --set ana.activated[+] threadJoins\n\/\/ From https:\/\/arxiv.org\/abs\/1607.06927\n#include \n\nint x;\npthread_mutex_t m1 = PTHREAD_MUTEX_INITIALIZER;\npthread_mutex_t m2 = PTHREAD_MUTEX_INITIALIZER;\npthread_mutex_t m3 = PTHREAD_MUTEX_INITIALIZER;\npthread_mutex_t m4 = PTHREAD_MUTEX_INITIALIZER;\npthread_mutex_t m5 = PTHREAD_MUTEX_INITIALIZER;\n\nvoid func1() {\n x = 0; \/\/ RACE!\n}\n\nint func2(int a) {\n pthread_mutex_lock(&m5); \/\/ TODO NODEADLOCK (thread joined)\n pthread_mutex_lock(&m4); \/\/ TODO NODEADLOCK (thread joined)\n if (a)\n x = 3; \/\/ NORACE (thread joined)\n else\n x = 4;\n pthread_mutex_unlock(&m4);\n pthread_mutex_unlock(&m5);\n return 0;\n}\n\nvoid *thread() {\n pthread_mutex_lock(&m1); \/\/ NODEADLOCK\n pthread_mutex_lock(&m2); \/\/ TODO NODEADLOCK (common m1)\n pthread_mutex_lock(&m3); \/\/ TODO NODEADLOCK (common m1)\n x = 1; \/\/ NORACE (thread joined)\n pthread_mutex_unlock(&m3);\n pthread_mutex_unlock(&m2);\n pthread_mutex_unlock(&m1);\n\n pthread_mutex_lock(&m4); \/\/ TODO NODEADLOCK (thread joined)\n pthread_mutex_lock(&m5); \/\/ TODO NODEADLOCK (thread joined)\n x = 2; \/\/ RACE!\n pthread_mutex_unlock(&m5);\n pthread_mutex_unlock(&m4);\n\n return NULL;\n}\n\nint main() {\n pthread_t tid;\n\n pthread_create(&tid, NULL, thread, NULL);\n\n pthread_mutex_lock(&m1); \/\/ NODEADLOCK\n pthread_mutex_lock(&m3); \/\/ TODO NODEADLOCK (common m1)\n pthread_mutex_lock(&m2); \/\/ TODO NODEADLOCK (common m1)\n func1();\n pthread_mutex_unlock(&m2);\n pthread_mutex_unlock(&m3);\n pthread_mutex_unlock(&m1);\n\n pthread_join(tid, NULL);\n\n int r;\n r = func2(5);\n\n return 0;\n}\n","subject":"Add deadlock non-concurrency example from Kroenig et al ASE16","message":"Add deadlock non-concurrency example from Kroenig et al ASE16\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"cccd3fafcffa318fa783f857f84b5545028daca2","old_file":"src\/pubkey\/if_algo\/if_op.h","new_file":"src\/pubkey\/if_algo\/if_op.h","old_contents":"\/*************************************************\n* IF Operations Header File *\n* (C) 1999-2008 Jack Lloyd *\n*************************************************\/\n\n#ifndef BOTAN_IF_OP_H__\n#define BOTAN_IF_OP_H__\n\n#include \n#include \n#include \n\nnamespace Botan {\n\n\/*************************************************\n* IF Operation *\n*************************************************\/\nclass BOTAN_DLL IF_Operation\n {\n public:\n virtual BigInt public_op(const BigInt&) const = 0;\n virtual BigInt private_op(const BigInt&) const = 0;\n virtual IF_Operation* clone() const = 0;\n virtual ~IF_Operation() {}\n };\n\n\/*************************************************\n* Default IF Operation *\n*************************************************\/\nclass Default_IF_Op : public IF_Operation\n {\n public:\n BigInt public_op(const BigInt& i) const\n { return powermod_e_n(i); }\n BigInt private_op(const BigInt&) const;\n\n IF_Operation* clone() const { return new Default_IF_Op(*this); }\n\n Default_IF_Op(const BigInt&, const BigInt&, const BigInt&,\n const BigInt&, const BigInt&, const BigInt&,\n const BigInt&, const BigInt&);\n private:\n Fixed_Exponent_Power_Mod powermod_e_n, powermod_d1_p, powermod_d2_q;\n Modular_Reducer reducer;\n BigInt c, q;\n };\n\n}\n\n#endif\n","new_contents":"\/*************************************************\n* IF Operations Header File *\n* (C) 1999-2008 Jack Lloyd *\n*************************************************\/\n\n#ifndef BOTAN_IF_OP_H__\n#define BOTAN_IF_OP_H__\n\n#include \n#include \n#include \n\nnamespace Botan {\n\n\/*************************************************\n* IF Operation *\n*************************************************\/\nclass BOTAN_DLL IF_Operation\n {\n public:\n virtual BigInt public_op(const BigInt&) const = 0;\n virtual BigInt private_op(const BigInt&) const = 0;\n virtual IF_Operation* clone() const = 0;\n virtual ~IF_Operation() {}\n };\n\n\/*************************************************\n* Default IF Operation *\n*************************************************\/\nclass BOTAN_DLL Default_IF_Op : public IF_Operation\n {\n public:\n BigInt public_op(const BigInt& i) const\n { return powermod_e_n(i); }\n BigInt private_op(const BigInt&) const;\n\n IF_Operation* clone() const { return new Default_IF_Op(*this); }\n\n Default_IF_Op(const BigInt&, const BigInt&, const BigInt&,\n const BigInt&, const BigInt&, const BigInt&,\n const BigInt&, const BigInt&);\n private:\n Fixed_Exponent_Power_Mod powermod_e_n, powermod_d1_p, powermod_d2_q;\n Modular_Reducer reducer;\n BigInt c, q;\n };\n\n}\n\n#endif\n","subject":"Add BOTAN_DLL macro to Default_IF_Op","message":"Add BOTAN_DLL macro to Default_IF_Op\n","lang":"C","license":"bsd-2-clause","repos":"randombit\/botan,webmaster128\/botan,randombit\/botan,Rohde-Schwarz-Cybersecurity\/botan,randombit\/botan,Rohde-Schwarz-Cybersecurity\/botan,webmaster128\/botan,webmaster128\/botan,randombit\/botan,Rohde-Schwarz-Cybersecurity\/botan,Rohde-Schwarz-Cybersecurity\/botan,Rohde-Schwarz-Cybersecurity\/botan,Rohde-Schwarz-Cybersecurity\/botan,webmaster128\/botan,randombit\/botan,webmaster128\/botan"} {"commit":"e2090ddb0dcd238d265538f9217f24b3780033e8","old_file":"src\/search\/psdd\/projection.h","new_file":"src\/search\/psdd\/projection.h","old_contents":"\/* -*- mode:linux -*- *\/\n\/**\n * \\file projection.h\n *\n *\n *\n * \\author Ethan Burns\n * \\date 2008-10-15\n *\/\n\n#if !defined(_PROJECTION_H_)\n#define _PROJECTION_H_\n\n#include \n\n#include \"..\/state.h\"\n\nusing namespace std;\n\n\/**\n * An abstract projection function class.\n *\/\nclass Projection {\npublic:\n\tvirtual ~Projection();\n\n\t\/**\n\t * Project a state, returning an integer that represents the\n\t * NBlock that the state projects into.\n\t *\/\n\tvirtual unsigned int project(const State *s) = 0;\n\n\t\/**\n\t * Get the number of NBlocks that will be used in this\n\t * projection. NBlocks will be numbered from 0..num_nblocks()\n\t *\/\n\tvirtual unsigned int get_num_nblocks(void) = 0;\n\n\t\/**\n\t * Get the list of successor NBlock numbers.\n\t *\/\n\tvirtual vectorget_successors(const NBlock *b) = 0;\n\n\t\/**\n\t * Get the list of predecessor NBlock numbers.\n\t *\/\n\tvirtual vectorget_predecessors(const NBlock *b) = 0;\n};\n\n#endif\t\/* !_PROJECTION_H_ *\/\n","new_contents":"\/* -*- mode:linux -*- *\/\n\/**\n * \\file projection.h\n *\n *\n *\n * \\author Ethan Burns\n * \\date 2008-10-15\n *\/\n\n#if !defined(_PROJECTION_H_)\n#define _PROJECTION_H_\n\n#include \n\n#include \"..\/state.h\"\n\nusing namespace std;\n\n\/**\n * An abstract projection function class.\n *\/\nclass Projection {\npublic:\n\tvirtual ~Projection();\n\n\t\/**\n\t * Project a state, returning an integer that represents the\n\t * NBlock that the state projects into.\n\t *\/\n\tvirtual unsigned int project(const State *s) = 0;\n\n\t\/**\n\t * Get the number of NBlocks that will be used in this\n\t * projection. NBlocks will be numbered from 0..num_nblocks()\n\t *\/\n\tvirtual unsigned int get_num_nblocks(void) = 0;\n\n\t\/**\n\t * Get the list of successor NBlock numbers.\n\t *\/\n\tvirtual vectorget_successors(unsigned int b) = 0;\n\n\t\/**\n\t * Get the list of predecessor NBlock numbers.\n\t *\/\n\tvirtual vectorget_predecessors(unsigned int b) = 0;\n};\n\n#endif\t\/* !_PROJECTION_H_ *\/\n","subject":"Remove the last reminints of NBlocks from Projection.","message":"Remove the last reminints of NBlocks from Projection.\n","lang":"C","license":"mit","repos":"eaburns\/pbnf,eaburns\/pbnf,eaburns\/pbnf,eaburns\/pbnf"} {"commit":"cb32da0416b823b7f4b65e7e85d6cba16ca4d1e1","old_file":"include\/linux\/slob_def.h","new_file":"include\/linux\/slob_def.h","old_contents":"#ifndef __LINUX_SLOB_DEF_H\n#define __LINUX_SLOB_DEF_H\n\nvoid *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);\n\nstatic inline void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)\n{\n\treturn kmem_cache_alloc_node(cachep, flags, -1);\n}\n\nvoid *__kmalloc_node(size_t size, gfp_t flags, int node);\n\nstatic inline void *kmalloc_node(size_t size, gfp_t flags, int node)\n{\n\treturn __kmalloc_node(size, flags, node);\n}\n\n\/**\n * kmalloc - allocate memory\n * @size: how many bytes of memory are required.\n * @flags: the type of memory to allocate (see kcalloc).\n *\n * kmalloc is the normal method of allocating memory\n * in the kernel.\n *\/\nstatic inline void *kmalloc(size_t size, gfp_t flags)\n{\n\treturn __kmalloc_node(size, flags, -1);\n}\n\nstatic inline void *__kmalloc(size_t size, gfp_t flags)\n{\n\treturn kmalloc(size, flags);\n}\n\n\/**\n * kzalloc - allocate memory. The memory is set to zero.\n * @size: how many bytes of memory are required.\n * @flags: the type of memory to allocate (see kcalloc).\n *\/\nstatic inline void *kzalloc(size_t size, gfp_t flags)\n{\n\treturn __kzalloc(size, flags);\n}\n\n#endif \/* __LINUX_SLOB_DEF_H *\/\n","new_contents":"#ifndef __LINUX_SLOB_DEF_H\n#define __LINUX_SLOB_DEF_H\n\nvoid *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);\n\nstatic inline void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)\n{\n\treturn kmem_cache_alloc_node(cachep, flags, -1);\n}\n\nvoid *__kmalloc_node(size_t size, gfp_t flags, int node);\n\nstatic inline void *kmalloc_node(size_t size, gfp_t flags, int node)\n{\n\treturn __kmalloc_node(size, flags, node);\n}\n\n\/**\n * kmalloc - allocate memory\n * @size: how many bytes of memory are required.\n * @flags: the type of memory to allocate (see kcalloc).\n *\n * kmalloc is the normal method of allocating memory\n * in the kernel.\n *\/\nstatic inline void *kmalloc(size_t size, gfp_t flags)\n{\n\treturn __kmalloc_node(size, flags, -1);\n}\n\nstatic inline void *__kmalloc(size_t size, gfp_t flags)\n{\n\treturn kmalloc(size, flags);\n}\n\n#endif \/* __LINUX_SLOB_DEF_H *\/\n","subject":"Kill off duplicate kzalloc() definition.","message":"slob: Kill off duplicate kzalloc() definition.\n\nWith the slab zeroing allocations cleanups Christoph stubbed in a generic\nkzalloc(), which was missed on SLOB. Follow the SLAB\/SLUB changes and\nkill off the __kzalloc() wrapper that SLOB was using.\n\nReported-by: Jan Engelhardt \nSigned-off-by: Paul Mundt <38b52dbb5f0b63d149982b6c5de788ec93a89032@linux-sh.org>\nSigned-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>\n","lang":"C","license":"apache-2.0","repos":"TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas"} {"commit":"b670133b9e9fd7bce078674d782dad9d7c320f9d","old_file":"test\/Analysis\/array-struct.c","new_file":"test\/Analysis\/array-struct.c","old_contents":"\/\/ RUN: clang -checker-simple -verify %s &&\n\/\/ RUN: clang -checker-simple -analyzer-store-region -verify %s\n\nstruct s {\n int data;\n int data_array[10];\n};\n\ntypedef struct {\n int data;\n} STYPE;\n\nvoid g1(struct s* p);\n\nvoid f(void) {\n int a[10];\n int (*p)[10];\n p = &a;\n (*p)[3] = 1;\n \n struct s d;\n struct s *q;\n q = &d;\n q->data = 3;\n d.data_array[9] = 17;\n}\n\nvoid f2() {\n char *p = \"\/usr\/local\";\n char (*q)[4];\n q = &\"abc\";\n}\n\nvoid f3() {\n STYPE s;\n}\n\nvoid f4() {\n int a[] = { 1, 2, 3};\n int b[3] = { 1, 2 };\n}\n\nvoid f5() {\n struct s data;\n g1(&data);\n}\n","new_contents":"\/\/ RUN: clang -checker-simple -verify %s &&\n\/\/ RUN: clang -checker-simple -analyzer-store-region -verify %s\n\nstruct s {\n int data;\n int data_array[10];\n};\n\ntypedef struct {\n int data;\n} STYPE;\n\nvoid g1(struct s* p);\n\nvoid f(void) {\n int a[10];\n int (*p)[10];\n p = &a;\n (*p)[3] = 1;\n \n struct s d;\n struct s *q;\n q = &d;\n q->data = 3;\n d.data_array[9] = 17;\n}\n\nvoid f2() {\n char *p = \"\/usr\/local\";\n char (*q)[4];\n q = &\"abc\";\n}\n\nvoid f3() {\n STYPE s;\n}\n\nvoid f4() {\n int a[] = { 1, 2, 3};\n int b[3] = { 1, 2 };\n}\n\nvoid f5() {\n struct s data;\n g1(&data);\n}\n\nvoid f6() {\n char *p;\n p = __builtin_alloca(10); \n p[1] = 'a';\n}\n","subject":"Add a test case for alloca().","message":"Add a test case for alloca().\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59233 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"54993a9f4ebc279f5dac6754e61f2c6ea98dbb65","old_file":"src\/bin\/test_carousel.c","new_file":"src\/bin\/test_carousel.c","old_contents":"#include \n#ifdef HAVE_CONFIG_H\n# include \"elementary_config.h\"\n#endif\n#ifndef ELM_LIB_QUICKLAUNCH\nvoid\ntest_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)\n{\n Evas_Object *win, *bg;\n\n win = elm_win_add(NULL, \"carousel\", ELM_WIN_BASIC);\n elm_win_title_set(win, \"Carousel\");\n elm_win_autodel_set(win, 1);\n\n bg = elm_bg_add(win);\n elm_win_resize_object_add(win, bg);\n evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);\n evas_object_show(bg);\n\n evas_object_resize(win, 320, 240);\n evas_object_show(win);\n}\n#endif\n","new_contents":"#include \n#ifdef HAVE_CONFIG_H\n# include \"elementary_config.h\"\n#endif\n#ifndef ELM_LIB_QUICKLAUNCH\nvoid\ntest_carousel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)\n{\n Evas_Object *win, *bg, *car;\n\n win = elm_win_add(NULL, \"carousel\", ELM_WIN_BASIC);\n elm_win_title_set(win, \"Carousel\");\n elm_win_autodel_set(win, 1);\n\n bg = elm_bg_add(win);\n elm_win_resize_object_add(win, bg);\n evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);\n evas_object_show(bg);\n\n car = elm_carousel_add(win);\n elm_win_resize_object_add(win, car);\n evas_object_size_hint_weight_set(car, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);\n elm_carousel_item_add(car, NULL, \"Item 1\", NULL, NULL);\n elm_carousel_item_add(car, NULL, \"Item 2\", NULL, NULL);\n elm_carousel_item_add(car, NULL, \"Tinga\", NULL, NULL);\n elm_carousel_item_add(car, NULL, \"Item 4\", NULL, NULL);\n evas_object_show(car);\n\n evas_object_resize(win, 320, 240);\n evas_object_show(win);\n}\n#endif\n","subject":"Add carousel to carousel test =P","message":"Add carousel to carousel test =P\n\nBut it's not working anyway.\n\n\n\nSVN revision: 53684\n","lang":"C","license":"lgpl-2.1","repos":"rvandegrift\/elementary,rvandegrift\/elementary,FlorentRevest\/Elementary,rvandegrift\/elementary,tasn\/elementary,tasn\/elementary,FlorentRevest\/Elementary,FlorentRevest\/Elementary,tasn\/elementary,rvandegrift\/elementary,tasn\/elementary,FlorentRevest\/Elementary,tasn\/elementary"} {"commit":"8316f8d582c9a13bf1ebba93fe66d85a61430692","old_file":"test\/profile\/infinite_loop.c","new_file":"test\/profile\/infinite_loop.c","old_contents":"\/\/ RUN: %clang_pgogen -O2 -o %t %s\n\/\/ RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t\n\/\/ RUN: llvm-profdata show -function main -counts %t.profraw| FileCheck %s \n\nvoid exit(int);\nint g;\n__attribute__((noinline)) void foo()\n{\n g++;\n if (g==1000)\n exit(0);\n}\n\n\nint main()\n{\n while (1) {\n foo();\n }\n\n}\n\n\/\/ CHECK: Counters:\n\/\/ CHECK-NEXT: main:\n\/\/ CHECK-NEXT: Hash: {{.*}}\n\/\/ CHECK-NEXT: Counters: 1\n\/\/ CHECK-NEXT: Block counts: [1000]\n\n\n\n","new_contents":"\/\/ RUN: %clang_pgogen -O2 -o %t %s\n\/\/ RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t\n\/\/ RUN: llvm-profdata show -function main -counts %t.profraw| FileCheck %s \n\nvoid exit(int);\nint g;\n__attribute__((noinline)) void foo()\n{\n g++;\n if (g==1000)\n exit(0);\n}\n\n\nint main()\n{\n while (1) {\n foo();\n }\n\n}\n\n\/\/ CHECK: Counters:\n\/\/ CHECK-NEXT: main:\n\/\/ CHECK-NEXT: Hash: {{.*}}\n\/\/ CHECK-NEXT: Counters: 2\n\/\/ CHECK-NEXT: Block counts: [1000, 1]\n\n\n\n","subject":"Test case update for D40873","message":"Test case update for D40873\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@320105 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt,llvm-mirror\/compiler-rt"} {"commit":"e1986201336c472fe94095486457c431f1e6bd9f","old_file":"tests\/end_to_end_tests_remote.h","new_file":"tests\/end_to_end_tests_remote.h","old_contents":"#ifndef end_to_end_tests_remote_h_incl\n#define end_to_end_tests_remote_h_incl\n\n#include \n#include \n#include \"end_to_end_tests_base.h\"\n\nclass EndToEndTestsRemote : public EndToEndTestsBase {\n static bool is_receiver;\n \n CPPUNIT_TEST_SUITE(EndToEndTestsRemote);\n CPPUNIT_TEST(testRandomBytesReceivedCorrectly);\n CPPUNIT_TEST(testDefaultIROBOrdering);\n CPPUNIT_TEST_SUITE_END();\n\n protected:\n virtual void chooseRole();\n virtual bool isReceiver();\n \n void testDefaultIROBOrdering();\n void testThunks();\n};\n\n#endif\n","new_contents":"#ifndef end_to_end_tests_remote_h_incl\n#define end_to_end_tests_remote_h_incl\n\n#include \n#include \n#include \"end_to_end_tests_base.h\"\n\nclass EndToEndTestsRemote : public EndToEndTestsBase {\n static bool is_receiver;\n \n CPPUNIT_TEST_SUITE(EndToEndTestsRemote);\n CPPUNIT_TEST(testRandomBytesReceivedCorrectly);\n CPPUNIT_TEST(testDefaultIROBOrdering);\n CPPUNIT_TEST(testThunks);\n CPPUNIT_TEST_SUITE_END();\n\n protected:\n virtual void chooseRole();\n virtual bool isReceiver();\n \n void testDefaultIROBOrdering();\n void testThunks();\n};\n\n#endif\n","subject":"Add the thunk test to the suite.","message":"Add the thunk test to the suite.\n\ngit-svn-id: 30f60abd488961f3df74c65f80d9d7b5813a1a78@653 1971e5c1-a347-0410-b49b-82492f0cf60c\n","lang":"C","license":"bsd-2-clause","repos":"brettdh\/libcmm,brettdh\/libcmm,brettdh\/libcmm,brettdh\/libcmm,brettdh\/libcmm"} {"commit":"13f6248da3578c67dc472fb38e1abc621fc6f2ae","old_file":"src\/untrusted\/nacl\/pthread_initialize_minimal.c","new_file":"src\/untrusted\/nacl\/pthread_initialize_minimal.c","old_contents":"\/*\n * Copyright (c) 2012 The Native Client Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n\n#include \n\n#include \"native_client\/src\/untrusted\/nacl\/nacl_irt.h\"\n#include \"native_client\/src\/untrusted\/nacl\/nacl_thread.h\"\n#include \"native_client\/src\/untrusted\/nacl\/tls.h\"\n\n\/*\n * This initialization happens early in startup with or without libpthread.\n * It must make it safe for vanilla newlib code to run.\n *\/\nvoid __pthread_initialize_minimal(size_t tdb_size) {\n \/* Adapt size for sbrk. *\/\n \/* TODO(robertm): this is somewhat arbitrary - re-examine). *\/\n size_t combined_size = (__nacl_tls_combined_size(tdb_size) + 15) & ~15;\n\n \/*\n * Use sbrk not malloc here since the library is not initialized yet.\n *\/\n void *combined_area = sbrk(combined_size);\n\n \/*\n * Fill in that memory with its initializer data.\n *\/\n void *tp = __nacl_tls_initialize_memory(combined_area, tdb_size);\n\n \/*\n * Set %gs, r9, or equivalent platform-specific mechanism. Requires\n * a syscall since certain bitfields of these registers are trusted.\n *\/\n nacl_tls_init(tp);\n\n \/*\n * Initialize newlib's thread-specific pointer.\n *\/\n __newlib_thread_init();\n}\n","new_contents":"\/*\n * Copyright (c) 2012 The Native Client Authors. All rights reserved.\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n *\/\n\n#include \n\n#include \"native_client\/src\/untrusted\/nacl\/nacl_irt.h\"\n#include \"native_client\/src\/untrusted\/nacl\/nacl_thread.h\"\n#include \"native_client\/src\/untrusted\/nacl\/tls.h\"\n\n\/*\n * This initialization happens early in startup with or without libpthread.\n * It must make it safe for vanilla newlib code to run.\n *\/\nvoid __pthread_initialize_minimal(size_t tdb_size) {\n size_t combined_size = __nacl_tls_combined_size(tdb_size);\n\n \/*\n * Use sbrk not malloc here since the library is not initialized yet.\n *\/\n void *combined_area = sbrk(combined_size);\n\n \/*\n * Fill in that memory with its initializer data.\n *\/\n void *tp = __nacl_tls_initialize_memory(combined_area, tdb_size);\n\n \/*\n * Set %gs, r9, or equivalent platform-specific mechanism. Requires\n * a syscall since certain bitfields of these registers are trusted.\n *\/\n nacl_tls_init(tp);\n\n \/*\n * Initialize newlib's thread-specific pointer.\n *\/\n __newlib_thread_init();\n}\n","subject":"Remove unnecessary rounding when allocating initial thread block","message":"Cleanup: Remove unnecessary rounding when allocating initial thread block\n\nThe other calls to __nacl_tls_combined_size() don't do this.\n\n__nacl_tls_combined_size() should be doing any necessary rounding itself.\n\nBUG=none\nTEST=trybots\n\nReview URL: https:\/\/codereview.chromium.org\/18555008\n\ngit-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@11698 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2\n","lang":"C","license":"bsd-3-clause","repos":"Lind-Project\/native_client,Lind-Project\/native_client,Lind-Project\/native_client,Lind-Project\/native_client,Lind-Project\/native_client,Lind-Project\/native_client"} {"commit":"953971c35e92472d75067d956b3268c2e2825fd1","old_file":"src\/toc_private.h","new_file":"src\/toc_private.h","old_contents":"","new_contents":"\/* toc_private.h - Private optical disc table of contents (TOC) API\n *\n * Copyright (c) 2011 Ian Jacobi \n * \n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated documentation\n * files (the \"Software\"), to deal in the Software without\n * restriction, including without limitation the rights to use, copy,\n * modify, merge, publish, distribute, sublicense, and\/or sell copies\n * of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\n * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\/\n\n#ifndef _LIBCUEIFY_TOC_PRIVATE_H\n#define _LIBCUEIFY_TOC_PRIVATE_H\n\n#include \n\n#define MAX_TRACKS 100 \/** Maximum number of tracks on a CD. *\/\n\n\/** Internal structure to hold track data in a TOC. *\/\ntypedef struct {\n \/** Sub-Q-channel content format. *\/\n uint8_t adr;\n \/** Track control flags. *\/\n uint8_t control;\n \/** Offset of the start of the track (LBA). *\/\n uint32_t lba;\n} cueify_toc_track_private;\n\n\/** Internal structure to hold TOC data. *\/\ntypedef struct {\n \/** Number of the first track in the TOC. *\/\n uint8_t first_track_number;\n \/** Number of the last track in the TOC. *\/\n uint8_t last_track_number;\n \/** Tracks in the TOC. *\/\n cueify_toc_track_private tracks[MAX_TRACKS];\n} cueify_toc_private;\n\n#endif \/* _LIBCUEIFY_TOC_PRIVATE_H *\/\n","subject":"Add private TOC data type","message":"Add private TOC data type\n","lang":"C","license":"mit","repos":"pipian\/libcueify,pipian\/libcueify,pipian\/libcueify,pipian\/libcueify,pipian\/libcueify"} {"commit":"715d1d7ea657172072bd95f436b7fc6290b97b92","old_file":"KristalliProtocolModule\/KristalliProtocolModuleApi.h","new_file":"KristalliProtocolModule\/KristalliProtocolModuleApi.h","old_contents":"\/\/ For conditions of distribution and use, see copyright notice in license.txt\n\n#ifndef incl_KristalliProtocolModuleApi_h\n#define incl_KristalliProtocolModuleApi_h\n\n#if defined (_WINDOWS)\n#if defined(KRISTALLIPROTOCOL_MODULE_EXPORTS) \n#define KRISTALLIPROTOCOL_MODULE_API __declspec(dllexport)\n#else\n#define KRISTALLIPROTOCOL_MODULE_API __declspec(dllimport) \n#endif\n#else\n#define KRISTALLIPROTOCOL\n#endif\n\n#endif\n","new_contents":"\/\/ For conditions of distribution and use, see copyright notice in license.txt\n\n#ifndef incl_KristalliProtocolModuleApi_h\n#define incl_KristalliProtocolModuleApi_h\n\n#if defined (_WINDOWS)\n#if defined(KRISTALLIPROTOCOL_MODULE_EXPORTS) \n#define KRISTALLIPROTOCOL_MODULE_API __declspec(dllexport)\n#else\n#define KRISTALLIPROTOCOL_MODULE_API __declspec(dllimport) \n#endif\n#else\n#define KRISTALLIPROTOCOL_MODULE_API\n#endif\n\n#endif\n","subject":"Fix syntax error for linux build.","message":"Fix syntax error for linux build.\n","lang":"C","license":"apache-2.0","repos":"realXtend\/tundra,antont\/tundra,antont\/tundra,BogusCurry\/tundra,antont\/tundra,jesterKing\/naali,BogusCurry\/tundra,AlphaStaxLLC\/tundra,pharos3d\/tundra,AlphaStaxLLC\/tundra,AlphaStaxLLC\/tundra,antont\/tundra,antont\/tundra,realXtend\/tundra,AlphaStaxLLC\/tundra,pharos3d\/tundra,antont\/tundra,realXtend\/tundra,AlphaStaxLLC\/tundra,antont\/tundra,jesterKing\/naali,realXtend\/tundra,BogusCurry\/tundra,pharos3d\/tundra,jesterKing\/naali,realXtend\/tundra,realXtend\/tundra,pharos3d\/tundra,BogusCurry\/tundra,jesterKing\/naali,BogusCurry\/tundra,BogusCurry\/tundra,jesterKing\/naali,jesterKing\/naali,AlphaStaxLLC\/tundra,pharos3d\/tundra,pharos3d\/tundra,jesterKing\/naali"} {"commit":"695dbab30302266c3edf137895eb0627d7188d8d","old_file":"chrome\/browser\/chromeos\/cros\/mock_update_library.h","new_file":"chrome\/browser\/chromeos\/cros\/mock_update_library.h","old_contents":"\/\/ Copyright (c) 2010 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_\n#define CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_\n#pragma once\n\n#include \"base\/observer_list.h\"\n#include \"chrome\/browser\/chromeos\/cros\/update_library.h\"\n#include \"testing\/gmock\/include\/gmock\/gmock.h\"\n\nnamespace chromeos {\n\nclass MockUpdateLibrary : public UpdateLibrary {\n public:\n MockUpdateLibrary() {}\n virtual ~MockUpdateLibrary() {}\n MOCK_METHOD1(AddObserver, void(Observer*)); \/\/ NOLINT\n MOCK_METHOD1(RemoveObserver, void(Observer*)); \/\/ NOLINT\n MOCK_METHOD0(CheckForUpdate, bool(void));\n MOCK_METHOD0(RebootAfterUpdate, bool(void));\n MOCK_METHOD1(SetReleaseTrack, bool(const std::string&));\n MOCK_METHOD1(GetReleaseTrack, std::string());\n MOCK_CONST_METHOD0(status, const Status&(void));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockUpdateLibrary);\n};\n\n} \/\/ namespace chromeos\n\n#endif \/\/ CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_\n","new_contents":"\/\/ Copyright (c) 2010 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_\n#define CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_\n#pragma once\n\n#include \"base\/observer_list.h\"\n#include \"chrome\/browser\/chromeos\/cros\/update_library.h\"\n#include \"testing\/gmock\/include\/gmock\/gmock.h\"\n\nnamespace chromeos {\n\nclass MockUpdateLibrary : public UpdateLibrary {\n public:\n MockUpdateLibrary() {}\n virtual ~MockUpdateLibrary() {}\n MOCK_METHOD1(AddObserver, void(Observer*)); \/\/ NOLINT\n MOCK_METHOD1(RemoveObserver, void(Observer*)); \/\/ NOLINT\n MOCK_METHOD0(CheckForUpdate, bool(void));\n MOCK_METHOD0(RebootAfterUpdate, bool(void));\n MOCK_METHOD1(SetReleaseTrack, bool(const std::string&));\n MOCK_METHOD0(GetReleaseTrack, std::string());\n MOCK_CONST_METHOD0(status, const Status&(void));\n\n private:\n DISALLOW_COPY_AND_ASSIGN(MockUpdateLibrary);\n};\n\n} \/\/ namespace chromeos\n\n#endif \/\/ CHROME_BROWSER_CHROMEOS_CROS_MOCK_UPDATE_LIBRARY_H_\n","subject":"Fix the Chrome OS build.","message":"Fix the Chrome OS build.\n\nTEST=make -j40 BUILDTYPE=Release browser_tests\nBUG=chromium-os:6030\n\nReview URL: http:\/\/codereview.chromium.org\/4129006\n\ngit-svn-id: http:\/\/src.chromium.org\/svn\/trunk\/src@64027 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n\nFormer-commit-id: 21f711df9e9164d849fc0c637465577383f0b1c0","lang":"C","license":"bsd-3-clause","repos":"meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser,meego-tablet-ux\/meego-app-browser"} {"commit":"2f3b7e4c88b3634d077f158d8a90553981b8c0a7","old_file":"include\/pector\/malloc_allocator_compat.h","new_file":"include\/pector\/malloc_allocator_compat.h","old_contents":"#ifndef PECTOR_MALLOC_ALLOCATOR_COMPAT_H\n#define PECTOR_MALLOC_ALLOCATOR_COMPAT_H\n\n#ifdef __APPLE__\n#include \n#else\n#include \n#endif\n\n#if defined __GNUC__ || defined _WIN32 || defined __APPLE__ || defined __FreeBSD__\n\n#define PT_SIZE_AWARE_COMPAT\n\n#if defined _WIN32\n#define PT_MALLOC_USABLE_SIZE(p) _msize(p)\n#elif defined __APPLE__\n#define PT_MALLOC_USABLE_SIZE(p) malloc_size(p)\n#elif defined __GNUC__ || defined __FreeBSD__\n#define PT_MALLOC_USABLE_SIZE(p) malloc_usable_size(p)\n#endif\n\n#endif \/\/ defined __GNUC__ || defined _WIN32 || defined __APPLE__\n\n\n#endif\n","new_contents":"#ifndef PECTOR_MALLOC_ALLOCATOR_COMPAT_H\n#define PECTOR_MALLOC_ALLOCATOR_COMPAT_H\n\n#ifdef __APPLE__\n#include \n#else\n#include \n#endif\n\n#if defined __linux__ || defined __gnu_hurd__ || defined _WIN32 || defined __APPLE__ || defined __FreeBSD__\n\n#define PT_SIZE_AWARE_COMPAT\n\n#if defined _WIN32\n#define PT_MALLOC_USABLE_SIZE(p) _msize(p)\n#elif defined __APPLE__\n#define PT_MALLOC_USABLE_SIZE(p) malloc_size(p)\n#elif defined __gnu_hurd__ || __linux__ || defined __FreeBSD__\n#define PT_MALLOC_USABLE_SIZE(p) malloc_usable_size(p)\n#endif\n\n#endif \/\/ defined __GNUC__ || defined _WIN32 || defined __APPLE__\n\n\n#endif\n","subject":"Change malloc_usable_size for Linux with the __linux__ macro","message":"Change malloc_usable_size for Linux with the __linux__ macro\n\nSuggested by Carter Li.\nAlso add check for GNU\/Hurd.\n","lang":"C","license":"lgpl-2.1","repos":"pjump\/pector,aguinet\/pector,aguinet\/pector,pjump\/pector"} {"commit":"c9454b616a60f0d476333b655458c81830562f9a","old_file":"util.h","new_file":"util.h","old_contents":"\/*\n This file is part of ethash.\n\n ethash is free software: you can redistribute it and\/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n ethash is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with ethash. If not, see .\n*\/\n\/** @file util.h\n * @author Tim Hughes \n * @date 2015\n *\/\n#pragma once\n#include \n#include \"compiler.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\/\/#ifdef _MSC_VER\nvoid debugf(char const* str, ...);\n\/\/#else\n\/\/#define debugf printf\n\/\/#endif\n\nstatic inline uint32_t min_u32(uint32_t a, uint32_t b)\n{\n\treturn a < b ? a : b;\n}\n\nstatic inline uint32_t clamp_u32(uint32_t x, uint32_t min_, uint32_t max_)\n{\n\treturn x < min_ ? min_ : (x > max_ ? max_ : x);\n}\n\n#ifdef __cplusplus\n}\n#endif\n","new_contents":"\/*\n This file is part of ethash.\n\n ethash is free software: you can redistribute it and\/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n ethash is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with ethash. If not, see .\n*\/\n\/** @file util.h\n * @author Tim Hughes \n * @date 2015\n *\/\n#pragma once\n#include \n#include \"compiler.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nvoid debugf(char const* str, ...);\n\nstatic inline uint32_t min_u32(uint32_t a, uint32_t b)\n{\n\treturn a < b ? a : b;\n}\n\nstatic inline uint32_t clamp_u32(uint32_t x, uint32_t min_, uint32_t max_)\n{\n\treturn x < min_ ? min_ : (x > max_ ? max_ : x);\n}\n\n#ifdef __cplusplus\n}\n#endif\n","subject":"Add comment about stack probing and remove unused ifdefs","message":"Add comment about stack probing and remove unused ifdefs\n","lang":"C","license":"mit","repos":"PaulGrey30\/go-get--u-github.com-tools-godep,LefterisJP\/cpp-ethereum,PaulGrey30\/.-git-clone-https-github.com-ethereum-cpp-ethereum,d-das\/cpp-ethereum,joeldo\/cpp-ethereum,xeddmc\/cpp-ethereum,expanse-org\/cpp-expanse,eco\/cpp-ethereum,yann300\/cpp-ethereum,gluk256\/cpp-ethereum,expanse-project\/cpp-expanse,karek314\/cpp-ethereum,Sorceror32\/go-get--u-github.com-tools-godep,expanse-project\/cpp-expanse,xeddmc\/cpp-ethereum,anthony-cros\/cpp-ethereum,xeddmc\/cpp-ethereum,xeddmc\/cpp-ethereum,expanse-org\/cpp-expanse,joeldo\/cpp-ethereum,ethers\/cpp-ethereum,smartbitcoin\/cpp-ethereum,joeldo\/cpp-ethereum,ethers\/cpp-ethereum,vaporry\/cpp-ethereum,PaulGrey30\/go-get--u-github.com-tools-godep,PaulGrey30\/.-git-clone-https-github.com-ethereum-cpp-ethereum,Sorceror32\/.-git-clone-https-github.com-ethereum-cpp-ethereum,expanse-org\/cpp-expanse,eco\/cpp-ethereum,yann300\/cpp-ethereum,programonauta\/webthree-umbrella,d-das\/cpp-ethereum,anthony-cros\/cpp-ethereum,expanse-project\/cpp-expanse,expanse-project\/cpp-expanse,expanse-org\/cpp-expanse,smartbitcoin\/cpp-ethereum,LefterisJP\/cpp-ethereum,expanse-project\/cpp-expanse,LefterisJP\/cpp-ethereum,ethers\/cpp-ethereum,gluk256\/cpp-ethereum,Sorceror32\/go-get--u-github.com-tools-godep,expanse-org\/cpp-expanse,d-das\/cpp-ethereum,vaporry\/cpp-ethereum,anthony-cros\/cpp-ethereum,karek314\/cpp-ethereum,PaulGrey30\/.-git-clone-https-github.com-ethereum-cpp-ethereum,johnpeter66\/ethminer,LefterisJP\/webthree-umbrella,Sorceror32\/go-get--u-github.com-tools-godep,PaulGrey30\/go-get--u-github.com-tools-godep,eco\/cpp-ethereum,d-das\/cpp-ethereum,d-das\/cpp-ethereum,smartbitcoin\/cpp-ethereum,programonauta\/webthree-umbrella,smartbitcoin\/cpp-ethereum,yann300\/cpp-ethereum,ethers\/cpp-ethereum,eco\/cpp-ethereum,karek314\/cpp-ethereum,PaulGrey30\/go-get--u-github.com-tools-godep,expanse-project\/cpp-expanse,karek314\/cpp-ethereum,vaporry\/cpp-ethereum,Sorceror32\/.-git-clone-https-github.com-ethereum-cpp-ethereum,johnpeter66\/ethminer,PaulGrey30\/.-git-clone-https-github.com-ethereum-cpp-ethereum,joeldo\/cpp-ethereum,PaulGrey30\/go-get--u-github.com-tools-godep,vaporry\/webthree-umbrella,expanse-org\/cpp-expanse,chfast\/webthree-umbrella,joeldo\/cpp-ethereum,Sorceror32\/go-get--u-github.com-tools-godep,Sorceror32\/.-git-clone-https-github.com-ethereum-cpp-ethereum,yann300\/cpp-ethereum,Sorceror32\/.-git-clone-https-github.com-ethereum-cpp-ethereum,xeddmc\/cpp-ethereum,Sorceror32\/.-git-clone-https-github.com-ethereum-cpp-ethereum,yann300\/cpp-ethereum,Sorceror32\/go-get--u-github.com-tools-godep,eco\/cpp-ethereum,ethers\/cpp-ethereum,smartbitcoin\/cpp-ethereum,karek314\/cpp-ethereum,PaulGrey30\/go-get--u-github.com-tools-godep,LefterisJP\/webthree-umbrella,vaporry\/cpp-ethereum,PaulGrey30\/.-git-clone-https-github.com-ethereum-cpp-ethereum,arkpar\/webthree-umbrella,anthony-cros\/cpp-ethereum,PaulGrey30\/.-git-clone-https-github.com-ethereum-cpp-ethereum,LefterisJP\/cpp-ethereum,Sorceror32\/go-get--u-github.com-tools-godep,vaporry\/cpp-ethereum,anthony-cros\/cpp-ethereum,gluk256\/cpp-ethereum,xeddmc\/cpp-ethereum,eco\/cpp-ethereum,yann300\/cpp-ethereum,johnpeter66\/ethminer,smartbitcoin\/cpp-ethereum,gluk256\/cpp-ethereum,d-das\/cpp-ethereum,LefterisJP\/cpp-ethereum,ethers\/cpp-ethereum,LefterisJP\/cpp-ethereum,vaporry\/cpp-ethereum,gluk256\/cpp-ethereum,gluk256\/cpp-ethereum,Sorceror32\/.-git-clone-https-github.com-ethereum-cpp-ethereum,karek314\/cpp-ethereum,anthony-cros\/cpp-ethereum,joeldo\/cpp-ethereum"} {"commit":"8377ed36990acb2eae2b1a4775f00688ab4490ea","old_file":"tests\/performance.c","new_file":"tests\/performance.c","old_contents":"int test_performance() {\n asic_t *device = asic_init(TI83p);\n\n struct timespec start, stop;\n unsigned long long t;\n int i;\n clock_gettime(CLOCK_MONOTONIC_RAW, &start);\n for (i = 0; i < 1000000; i++) {\n i -= cpu_execute(device->cpu, 1);\n }\n clock_gettime(CLOCK_MONOTONIC_RAW, &stop);\n t = (stop.tv_sec*1000000000UL) + stop.tv_nsec;\n t -= (start.tv_sec * 1000000000UL) + start.tv_nsec;\n printf(\"executed 1,000,000 cycles in %llu microseconds (~%llu MHz)\\n\", t\/1000, 1000000000\/t);\n\n asic_free(device);\n return -1;\n}\n","new_contents":"int test_performance() {\n asic_t *device = asic_init(TI83p);\n\n clock_t start, stop;\n int i;\n start = clock();\n for (i = 0; i < 1000000; i++) {\n i -= cpu_execute(device->cpu, 1);\n }\n stop = clock();\n double time = (double)(stop - start) \/ (CLOCKS_PER_SEC \/ 1000);\n double mHz = 1000.0 \/ time;\n printf(\"executed 1,000,000 cycles in %f milliseconds (~%f MHz)\\n\", time, mHz);\n\n asic_free(device);\n return -1;\n}\n","subject":"Switch to more common timing functions","message":"Switch to more common timing functions\n","lang":"C","license":"mit","repos":"KnightOS\/z80e,KnightOS\/z80e"} {"commit":"35b7f0a76bb4307db7bcf9b73c4accf793cd88fa","old_file":"drivers\/scsi\/qla2xxx\/qla_version.h","new_file":"drivers\/scsi\/qla2xxx\/qla_version.h","old_contents":"\/*\n * QLogic Fibre Channel HBA Driver\n * Copyright (c) 2003-2008 QLogic Corporation\n *\n * See LICENSE.qla2xxx for copyright and licensing details.\n *\/\n\/*\n * Driver version\n *\/\n#define QLA2XXX_VERSION \"8.03.02-k0\"\n\n#define QLA_DRIVER_MAJOR_VER\t8\n#define QLA_DRIVER_MINOR_VER\t3\n#define QLA_DRIVER_PATCH_VER\t2\n#define QLA_DRIVER_BETA_VER\t0\n","new_contents":"\/*\n * QLogic Fibre Channel HBA Driver\n * Copyright (c) 2003-2008 QLogic Corporation\n *\n * See LICENSE.qla2xxx for copyright and licensing details.\n *\/\n\/*\n * Driver version\n *\/\n#define QLA2XXX_VERSION \"8.03.02-k1\"\n\n#define QLA_DRIVER_MAJOR_VER\t8\n#define QLA_DRIVER_MINOR_VER\t3\n#define QLA_DRIVER_PATCH_VER\t2\n#define QLA_DRIVER_BETA_VER\t1\n","subject":"Update version number to 8.03.02-k1.","message":"[SCSI] qla2xxx: Update version number to 8.03.02-k1.\n\nCc: 4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@kernel.org\nSigned-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>\nSigned-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>\n","lang":"C","license":"mit","repos":"KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs"} {"commit":"2e17599c6ff8bef564e07455588a78ca4e9a5f09","old_file":"src\/lib\/arch\/aarch64\/linux\/linux_aarch64.c","new_file":"src\/lib\/arch\/aarch64\/linux\/linux_aarch64.c","old_contents":"","new_contents":"#include \n#include \n#include \n#include \"expreval_internal.h\"\n\nstatic void *create_executable_code_aarch64_linux(const char *machine_code, int size);\n\nvoid *compile_function_internal(compiler c, token first_token, int *size)\n{\n unsigned char code[MAX_CODE_LEN];\n\n unsigned char tmp[] = {0x1e, 0x60, 0x28, 0x00, 0xd6, 0x5f, 0x03, 0xc0};\n int n = 8;\n\n memcpy(code, tmp, n);\n\n return create_executable_code_aarch64_linux(code, n);\n}\n\n\/*\n Attraverso opportune chiamate al kernel alloca un vettore della dimensione adatta che contenga\n il codice appena compilato, vi copia il codice e lo rende eseguibile (avendo cura di renderlo\n non scrivibile, visto che è bene che la memoria non sia mai scrivibile ed eseguibile nello\n stesso momento.\n*\/\nstatic void *create_executable_code_aarch64_linux(const char *machine_code, int size)\n{\n \/* Memoria rw- *\/\n void *mem = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);\n if(mem == MAP_FAILED)\n return NULL;\n \/* Scrivo il codice *\/\n memcpy(mem, machine_code, size);\n \/* Inibisco la scrittura e consento l'esecuzione (r-x) *\/\n if(mprotect(mem, size, PROT_READ | PROT_EXEC) < 0)\n {\n munmap(mem, size);\n return NULL;\n }\n\n return mem;\n}\n","subject":"Add aarch64 jit compiler stub","message":"Add aarch64 jit compiler stub\n","lang":"C","license":"mit","repos":"lr94\/libexpreval,lr94\/libexpreval"} {"commit":"8634605ecfa7cb7b339b066e57348ef7f4801e32","old_file":"lib\/CodeGen\/SanitizerBlacklist.h","new_file":"lib\/CodeGen\/SanitizerBlacklist.h","old_contents":"\/\/===--- SanitizerBlacklist.h - Blacklist for sanitizers --------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ User-provided blacklist used to disable\/alter instrumentation done in\n\/\/ sanitizers.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n#ifndef LLVM_CLANG_LIB_CODEGEN_SANITIZERBLACKLIST_H\n#define LLVM_CLANG_LIB_CODEGEN_SANITIZERBLACKLIST_H\n\n#include \"clang\/Basic\/LLVM.h\"\n#include \"llvm\/ADT\/StringRef.h\"\n#include \"llvm\/Support\/SpecialCaseList.h\"\n#include \n\nnamespace llvm {\nclass GlobalVariable;\nclass Function;\nclass Module;\n}\n\nnamespace clang {\nnamespace CodeGen {\n\nclass SanitizerBlacklist {\n std::unique_ptr SCL;\n\npublic:\n SanitizerBlacklist(llvm::SpecialCaseList *SCL) : SCL(SCL) {}\n bool isIn(const llvm::Module &M,\n StringRef Category = StringRef()) const;\n bool isIn(const llvm::Function &F) const;\n bool isIn(const llvm::GlobalVariable &G,\n StringRef Category = StringRef()) const;\n bool isBlacklistedType(StringRef MangledTypeName) const;\n};\n} \/\/ end namespace CodeGen\n} \/\/ end namespace clang\n\n#endif\n","new_contents":"\/\/===--- SanitizerBlacklist.h - Blacklist for sanitizers --------*- C++ -*-===\/\/\n\/\/\n\/\/ The LLVM Compiler Infrastructure\n\/\/\n\/\/ This file is distributed under the University of Illinois Open Source\n\/\/ License. See LICENSE.TXT for details.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n\/\/\n\/\/ User-provided blacklist used to disable\/alter instrumentation done in\n\/\/ sanitizers.\n\/\/\n\/\/===----------------------------------------------------------------------===\/\/\n#ifndef LLVM_CLANG_LIB_CODEGEN_SANITIZERBLACKLIST_H\n#define LLVM_CLANG_LIB_CODEGEN_SANITIZERBLACKLIST_H\n\n#include \"clang\/Basic\/LLVM.h\"\n#include \"llvm\/ADT\/StringRef.h\"\n#include \"llvm\/Support\/SpecialCaseList.h\"\n#include \n\nnamespace llvm {\nclass GlobalVariable;\nclass Function;\nclass Module;\n}\n\nnamespace clang {\nnamespace CodeGen {\n\nclass SanitizerBlacklist {\n std::unique_ptr SCL;\n\npublic:\n SanitizerBlacklist(std::unique_ptr SCL)\n : SCL(std::move(SCL)) {}\n bool isIn(const llvm::Module &M,\n StringRef Category = StringRef()) const;\n bool isIn(const llvm::Function &F) const;\n bool isIn(const llvm::GlobalVariable &G,\n StringRef Category = StringRef()) const;\n bool isBlacklistedType(StringRef MangledTypeName) const;\n};\n} \/\/ end namespace CodeGen\n} \/\/ end namespace clang\n\n#endif\n","subject":"Fix for LLVM API change to SpecialCaseList::create","message":"Fix for LLVM API change to SpecialCaseList::create\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@216926 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang"} {"commit":"8eb990df360a6eaac3a6bfe3bcb22636d99edc0b","old_file":"gspell\/gspell-init.h","new_file":"gspell\/gspell-init.h","old_contents":"\/*\n * This file is part of gspell, a spell-checking library.\n *\n * Copyright 2016 - Ignacio Casal Quinteiro \n * Copyright 2016 - Sébastien Wilmet \n *\n * This library is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this library; if not, see .\n *\/\n\n#ifndef GSPELL_INIT_H\n#define GSPELL_INIT_H\n\n#include \n\n#ifdef G_OS_WIN32\n#include \n\nG_GNUC_INTERNAL\nHMODULE _gspell_init_get_dll (void);\n\n#endif \/* G_OS_WIN32 *\/\n\n#endif \/* GSPELL_INIT_H *\/\n\n\/* ex:set ts=8 noet: *\/\n","new_contents":"\/*\n * This file is part of gspell, a spell-checking library.\n *\n * Copyright 2016 - Ignacio Casal Quinteiro \n * Copyright 2016 - Sébastien Wilmet \n *\n * This library is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with this library; if not, see .\n *\/\n\n#ifndef GSPELL_INIT_H\n#define GSPELL_INIT_H\n\n#include \n\n#ifdef G_OS_WIN32\n#define WIN32_LEAN_AND_MEAN\n#include \n\nG_GNUC_INTERNAL\nHMODULE _gspell_init_get_dll (void);\n\n#endif \/* G_OS_WIN32 *\/\n\n#endif \/* GSPELL_INIT_H *\/\n\n\/* ex:set ts=8 noet: *\/\n","subject":"Revert \"win32: include windef.h instead of windows.h\"","message":"Revert \"win32: include windef.h instead of windows.h\"\n\nThis reverts commit 7a51b17a061cb4e83c5d0e862cb1c4c32c7033e7.\n\nThis was actually good, normally. See the discussion at:\nhttps:\/\/bugzilla.gnome.org\/show_bug.cgi?id=774325\n\nNot tested, I don't test gspell on\/for Windows.\n","lang":"C","license":"lgpl-2.1","repos":"GNOME\/gspell,GNOME\/gspell"} {"commit":"0f993209fdd1e8bed4e9fd3d9ba758416b39eaa8","old_file":"src\/plugins\/orbbec_hand\/TrackedPoint.h","new_file":"src\/plugins\/orbbec_hand\/TrackedPoint.h","old_contents":"#ifndef TRACKEDPOINT_H\n#define TRACKEDPOINT_H\n\n#include \n#include \"TrackingData.h\"\n\nnamespace sensekit { namespace plugins { namespace hand {\n\n struct TrackedPoint\n {\n public:\n cv::Point m_position;\n cv::Point3f m_worldPosition;\n cv::Point3f m_steadyWorldPosition;\n cv::Point3f m_worldDeltaPosition;\n int m_trackingId;\n int m_inactiveFrameCount;\n float m_totalContributionArea;\n int m_wrongAreaCount;\n int m_activeFrameCount;\n TrackedPointType m_type;\n TrackingStatus m_status;\n\n TrackedPoint(cv::Point position, cv::Point3f worldPosition, int trackingId)\n {\n m_type = TrackedPointType::CandidatePoint;\n m_status = TrackingStatus::NotTracking;\n m_position = position;\n m_worldPosition = worldPosition;\n m_steadyWorldPosition = worldPosition;\n m_worldDeltaPosition = cv::Point3f(0, 0, 0);\n m_trackingId = trackingId;\n m_inactiveFrameCount = 0;\n m_activeFrameCount = 0;\n m_totalContributionArea = 0;\n m_wrongAreaCount = 0;\n }\n };\n}}}\n\n#endif \/\/ TRACKEDPOINT_H","new_contents":"#ifndef TRACKEDPOINT_H\n#define TRACKEDPOINT_H\n\n#include \n#include \"TrackingData.h\"\n\nnamespace sensekit { namespace plugins { namespace hand {\n\n struct TrackedPoint\n {\n public:\n cv::Point m_position;\n cv::Point3f m_worldPosition;\n cv::Point3f m_worldDeltaPosition;\n cv::Point3f m_steadyWorldPosition;\n int m_trackingId;\n int m_inactiveFrameCount;\n int m_activeFrameCount;\n TrackedPointType m_type;\n TrackingStatus m_status;\n\n TrackedPoint(cv::Point position, cv::Point3f worldPosition, int trackingId)\n {\n m_type = TrackedPointType::CandidatePoint;\n m_status = TrackingStatus::NotTracking;\n m_position = position;\n m_worldPosition = worldPosition;\n m_steadyWorldPosition = worldPosition;\n m_worldDeltaPosition = cv::Point3f(0, 0, 0);\n m_trackingId = trackingId;\n m_inactiveFrameCount = 0;\n m_activeFrameCount = 0;\n }\n };\n}}}\n\n#endif \/\/ TRACKEDPOINT_H","subject":"Remove old tracked point fields","message":"Remove old tracked point fields\n","lang":"C","license":"apache-2.0","repos":"orbbec\/astra,orbbec\/astra,orbbec\/astra,orbbec\/astra,orbbec\/astra"} {"commit":"2822ae02ece582706720ef387c37eee8c245a8f6","old_file":"lib\/c_impl\/n_speech_trimmer.c","new_file":"lib\/c_impl\/n_speech_trimmer.c","old_contents":"#include \"noyes.h\"\n#undef TRUE\n#define TRUE 1\n#undef FALSE\n#define FALSE 0\n\nSpeechTrimmer * new_speech_trimmer() {\n SpeechTrimmer *self = malloc(sizeof(SpeechTrimmer));\n self->leader = 5;\n self->trailer = 5;\n self->speech_started = FALSE;\n self->bcm = new_bent_cent_marker();\n self->false_count = 0;\n self->true_count = 0;\n self->queue = n_list_new();\n self->eos_reached = FALSE;\n self->scs = 20;\n self->ecs = 50;\n}\n\nvoid free_speech_trimmer(SpeechTrimmer *self) {\n free(self);\n}\n\nvoid speech_trimmer_enqueue(SpeechTrimmer *self, NMatrix1* pcm) {\n}\n\nNMatrix1 * speech_trimmer_dequeue(SpeechTrimmer *self) {\n if (self->eos_reached || (self->speech_started &&\n n_list_size(self->queue) > self->ecs)) {\n NMatrix1 * N = n_list_get(self->queue, 0);\n n_list_remove(self->queue, 0, 1);\n return N;\n }\n return NULL;\n}\nint speech_trimmer_eos(SpeechTrimmer *self) {\n return self->eos_reached;\n}\n","new_contents":"#include \"noyes.h\"\n#undef TRUE\n#define TRUE 1\n#undef FALSE\n#define FALSE 0\n\nSpeechTrimmer * new_speech_trimmer() {\n SpeechTrimmer *self = malloc(sizeof(SpeechTrimmer));\n self->leader = 5;\n self->trailer = 5;\n self->speech_started = FALSE;\n self->bcm = new_bent_cent_marker();\n self->false_count = 0;\n self->true_count = 0;\n self->queue = n_list_new();\n self->eos_reached = FALSE;\n self->scs = 20;\n self->ecs = 50;\n return self;\n}\n\nvoid free_speech_trimmer(SpeechTrimmer *self) {\n free(self);\n}\n\nvoid speech_trimmer_enqueue(SpeechTrimmer *self, NMatrix1* pcm) {\n}\n\nNMatrix1 * speech_trimmer_dequeue(SpeechTrimmer *self) {\n if (self->eos_reached || (self->speech_started &&\n n_list_size(self->queue) > self->ecs)) {\n NMatrix1 * N = n_list_get(self->queue, 0);\n n_list_remove(self->queue, 0, 1);\n return N;\n }\n return NULL;\n}\nint speech_trimmer_eos(SpeechTrimmer *self) {\n return self->eos_reached;\n}\n","subject":"Fix memory error due to missing return statement in speech trimmer constructor.","message":"Fix memory error due to missing return statement in speech trimmer constructor.\n","lang":"C","license":"bsd-2-clause","repos":"talkhouse\/noyes,talkhouse\/noyes,talkhouse\/noyes"} {"commit":"25c52209c37546ae811c6653fd725a192c58c602","old_file":"components\/password_manager\/core\/browser\/browser_save_password_progress_logger.h","new_file":"components\/password_manager\/core\/browser\/browser_save_password_progress_logger.h","old_contents":"\/\/ Copyright 2014 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_\n#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_\n\n#include \n\n#include \"components\/autofill\/core\/common\/save_password_progress_logger.h\"\n\nclass PasswordManagerClient;\n\nnamespace password_manager {\n\n\/\/ This is the SavePasswordProgressLogger specialization for the browser code,\n\/\/ where the PasswordManagerClient can be directly called.\nclass BrowserSavePasswordProgressLogger\n : public autofill::SavePasswordProgressLogger {\n public:\n explicit BrowserSavePasswordProgressLogger(PasswordManagerClient* client);\n virtual ~BrowserSavePasswordProgressLogger();\n\n protected:\n \/\/ autofill::SavePasswordProgressLogger:\n virtual void SendLog(const std::string& log) OVERRIDE;\n\n private:\n \/\/ The PasswordManagerClient to which logs can be sent for display. The client\n \/\/ must outlive this logger.\n PasswordManagerClient* const client_;\n\n DISALLOW_COPY_AND_ASSIGN(BrowserSavePasswordProgressLogger);\n};\n\n} \/\/ namespace password_manager\n\n#endif \/\/ COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_\n","new_contents":"\/\/ Copyright 2014 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_\n#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_\n\n#include \n\n#include \"components\/autofill\/core\/common\/save_password_progress_logger.h\"\n\nnamespace password_manager {\n\nclass PasswordManagerClient;\n\n\/\/ This is the SavePasswordProgressLogger specialization for the browser code,\n\/\/ where the PasswordManagerClient can be directly called.\nclass BrowserSavePasswordProgressLogger\n : public autofill::SavePasswordProgressLogger {\n public:\n explicit BrowserSavePasswordProgressLogger(PasswordManagerClient* client);\n virtual ~BrowserSavePasswordProgressLogger();\n\n protected:\n \/\/ autofill::SavePasswordProgressLogger:\n virtual void SendLog(const std::string& log) OVERRIDE;\n\n private:\n \/\/ The PasswordManagerClient to which logs can be sent for display. The client\n \/\/ must outlive this logger.\n PasswordManagerClient* const client_;\n\n DISALLOW_COPY_AND_ASSIGN(BrowserSavePasswordProgressLogger);\n};\n\n} \/\/ namespace password_manager\n\n#endif \/\/ COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_BROWSER_SAVE_PASSWORD_PROGRESS_LOGGER_H_\n","subject":"Revert 262696 \"Revert 262685 \"Fix a forward declaration of Passw...\"","message":"Revert 262696 \"Revert 262685 \"Fix a forward declaration of Passw...\"\n\n> Revert 262685 \"Fix a forward declaration of PasswordManagerClient\"\n> \n> Compile still fails:\n> http:\/\/build.chromium.org\/p\/chromium.linux\/buildstatus?builder=Linux%20GTK%20Builder&number=2681\n> ..\/..\/chrome\/browser\/ui\/gtk\/login_prompt_gtk.cc:70:7:error: 'PasswordManager' has not been declared\n> \n> \n> > Fix a forward declaration of PasswordManagerClient\n> > \n> > This went wrong with landing https:\/\/codereview.chromium.org\/225093012 and https:\/\/codereview.chromium.org\/216183008 too close from each other.\n> > \n> > BUG=347927,348523\n> > R=blundell@chromium.org\n> > TBR=blundell@chromium.org\n> > \n> > Review URL: https:\/\/codereview.chromium.org\/230883002\n> \n> TBR=vabr@chromium.org\n> \n> Review URL: https:\/\/codereview.chromium.org\/231043002\n\nTBR=dmazzoni@google.com\n\nReview URL: https:\/\/codereview.chromium.org\/231033004\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@262700 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"dednal\/chromium.src,axinging\/chromium-crosswalk,Just-D\/chromium-1,Pluto-tv\/chromium-crosswalk,dushu1203\/chromium.src,ltilve\/chromium,bright-sparks\/chromium-spacewalk,Fireblend\/chromium-crosswalk,axinging\/chromium-crosswalk,fujunwei\/chromium-crosswalk,dushu1203\/chromium.src,M4sse\/chromium.src,dushu1203\/chromium.src,Fireblend\/chromium-crosswalk,markYoungH\/chromium.src,hgl888\/chromium-crosswalk-efl,dushu1203\/chromium.src,fujunwei\/chromium-crosswalk,dushu1203\/chromium.src,axinging\/chromium-crosswalk,dednal\/chromium.src,PeterWangIntel\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,mohamed--abdel-maksoud\/chromium.src,krieger-od\/nwjs_chromium.src,mohamed--abdel-maksoud\/chromium.src,ondra-novak\/chromium.src,TheTypoMaster\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,axinging\/chromium-crosswalk,jaruba\/chromium.src,chuan9\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,M4sse\/chromium.src,Pluto-tv\/chromium-crosswalk,jaruba\/chromium.src,jaruba\/chromium.src,axinging\/chromium-crosswalk,M4sse\/chromium.src,PeterWangIntel\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,jaruba\/chromium.src,TheTypoMaster\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,ltilve\/chromium,bright-sparks\/chromium-spacewalk,M4sse\/chromium.src,Fireblend\/chromium-crosswalk,Jonekee\/chromium.src,hgl888\/chromium-crosswalk-efl,mohamed--abdel-maksoud\/chromium.src,littlstar\/chromium.src,Just-D\/chromium-1,bright-sparks\/chromium-spacewalk,ltilve\/chromium,dushu1203\/chromium.src,TheTypoMaster\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,markYoungH\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,littlstar\/chromium.src,Jonekee\/chromium.src,hgl888\/chromium-crosswalk-efl,bright-sparks\/chromium-spacewalk,axinging\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,dednal\/chromium.src,markYoungH\/chromium.src,dushu1203\/chromium.src,krieger-od\/nwjs_chromium.src,fujunwei\/chromium-crosswalk,fujunwei\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,Just-D\/chromium-1,littlstar\/chromium.src,krieger-od\/nwjs_chromium.src,Chilledheart\/chromium,hgl888\/chromium-crosswalk,hgl888\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,M4sse\/chromium.src,Chilledheart\/chromium,TheTypoMaster\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,chuan9\/chromium-crosswalk,Just-D\/chromium-1,ltilve\/chromium,chuan9\/chromium-crosswalk,chuan9\/chromium-crosswalk,axinging\/chromium-crosswalk,ondra-novak\/chromium.src,M4sse\/chromium.src,jaruba\/chromium.src,krieger-od\/nwjs_chromium.src,mohamed--abdel-maksoud\/chromium.src,krieger-od\/nwjs_chromium.src,fujunwei\/chromium-crosswalk,ltilve\/chromium,mohamed--abdel-maksoud\/chromium.src,Jonekee\/chromium.src,Pluto-tv\/chromium-crosswalk,dushu1203\/chromium.src,M4sse\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,bright-sparks\/chromium-spacewalk,hgl888\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,Just-D\/chromium-1,ltilve\/chromium,krieger-od\/nwjs_chromium.src,fujunwei\/chromium-crosswalk,hgl888\/chromium-crosswalk,fujunwei\/chromium-crosswalk,Chilledheart\/chromium,dushu1203\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,PeterWangIntel\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,Fireblend\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,krieger-od\/nwjs_chromium.src,hgl888\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,dednal\/chromium.src,Just-D\/chromium-1,ondra-novak\/chromium.src,axinging\/chromium-crosswalk,Jonekee\/chromium.src,jaruba\/chromium.src,markYoungH\/chromium.src,PeterWangIntel\/chromium-crosswalk,Fireblend\/chromium-crosswalk,Chilledheart\/chromium,hgl888\/chromium-crosswalk-efl,TheTypoMaster\/chromium-crosswalk,jaruba\/chromium.src,M4sse\/chromium.src,littlstar\/chromium.src,ondra-novak\/chromium.src,littlstar\/chromium.src,dednal\/chromium.src,markYoungH\/chromium.src,TheTypoMaster\/chromium-crosswalk,dushu1203\/chromium.src,jaruba\/chromium.src,Chilledheart\/chromium,dednal\/chromium.src,markYoungH\/chromium.src,Jonekee\/chromium.src,dednal\/chromium.src,littlstar\/chromium.src,krieger-od\/nwjs_chromium.src,crosswalk-project\/chromium-crosswalk-efl,Jonekee\/chromium.src,fujunwei\/chromium-crosswalk,markYoungH\/chromium.src,chuan9\/chromium-crosswalk,jaruba\/chromium.src,fujunwei\/chromium-crosswalk,chuan9\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,jaruba\/chromium.src,krieger-od\/nwjs_chromium.src,littlstar\/chromium.src,dednal\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,littlstar\/chromium.src,Chilledheart\/chromium,jaruba\/chromium.src,TheTypoMaster\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,ondra-novak\/chromium.src,chuan9\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk-efl,ltilve\/chromium,Jonekee\/chromium.src,ltilve\/chromium,Chilledheart\/chromium,ltilve\/chromium,Jonekee\/chromium.src,Chilledheart\/chromium,Fireblend\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,bright-sparks\/chromium-spacewalk,markYoungH\/chromium.src,dednal\/chromium.src,Jonekee\/chromium.src,hgl888\/chromium-crosswalk-efl,M4sse\/chromium.src,chuan9\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,markYoungH\/chromium.src,M4sse\/chromium.src,axinging\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,dushu1203\/chromium.src,axinging\/chromium-crosswalk,Just-D\/chromium-1,hgl888\/chromium-crosswalk-efl,M4sse\/chromium.src,hgl888\/chromium-crosswalk,hgl888\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,chuan9\/chromium-crosswalk,markYoungH\/chromium.src,Just-D\/chromium-1,Jonekee\/chromium.src,PeterWangIntel\/chromium-crosswalk,hgl888\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,hgl888\/chromium-crosswalk,Chilledheart\/chromium,PeterWangIntel\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,dednal\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,Fireblend\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,dednal\/chromium.src,ondra-novak\/chromium.src,Pluto-tv\/chromium-crosswalk,Just-D\/chromium-1,ondra-novak\/chromium.src,Fireblend\/chromium-crosswalk,Jonekee\/chromium.src,ondra-novak\/chromium.src,Pluto-tv\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,ondra-novak\/chromium.src,Fireblend\/chromium-crosswalk,axinging\/chromium-crosswalk,markYoungH\/chromium.src"} {"commit":"404504635570833ffec7857cfa28e055b276b521","old_file":"optional\/capi\/ext\/proc_spec.c","new_file":"optional\/capi\/ext\/proc_spec.c","old_contents":"#include \n\n#include \"ruby.h\"\n#include \"rubyspec.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#ifdef HAVE_RB_PROC_NEW\nVALUE concat_func(VALUE args) {\n int i;\n char buffer[500] = {0};\n if (TYPE(args) != T_ARRAY) return Qnil;\n for(i = 0; i < RARRAY_LEN(args); ++i) {\n VALUE v = RARRAY_PTR(args)[i];\n strcat(buffer, StringValuePtr(v));\n strcat(buffer, \"_\");\n }\n buffer[strlen(buffer) - 1] = 0;\n return rb_str_new2(buffer);\n\n}\n\nVALUE sp_underline_concat_proc(VALUE self) {\n return rb_proc_new(concat_func, Qnil);\n}\n#endif\n\nvoid Init_proc_spec() {\n VALUE cls;\n cls = rb_define_class(\"CApiProcSpecs\", rb_cObject);\n\n#ifdef HAVE_RB_PROC_NEW\n rb_define_method(cls, \"underline_concat_proc\", sp_underline_concat_proc, 0);\n#endif\n}\n\n#ifdef __cplusplus\n}\n#endif\n","new_contents":"#include \n\n#include \"ruby.h\"\n#include \"rubyspec.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#ifdef HAVE_RB_PROC_NEW\nVALUE concat_func(VALUE args) {\n int i;\n char buffer[500] = {0};\n if (TYPE(val) != T_ARRAY) return Qnil;\n for(i = 0; i < RARRAY_LEN(args); ++i) {\n VALUE v = RARRAY_PTR(args)[i];\n strcat(buffer, StringValuePtr(v));\n strcat(buffer, \"_\");\n }\n buffer[strlen(buffer) - 1] = 0;\n return rb_str_new2(buffer);\n\n}\n\nVALUE sp_underline_concat_proc(VALUE self) {\n return rb_proc_new(concat_func, Qnil);\n}\n#endif\n\nvoid Init_proc_spec() {\n VALUE cls;\n cls = rb_define_class(\"CApiProcSpecs\", rb_cObject);\n\n#ifdef HAVE_RB_PROC_NEW\n rb_define_method(cls, \"underline_concat_proc\", sp_underline_concat_proc, 0);\n#endif\n}\n\n#ifdef __cplusplus\n}\n#endif\n","subject":"Revert \"Fix typo in the commit a5312c77.\"","message":"Revert \"Fix typo in the commit a5312c77.\"\n\nThis reverts commit 401825d6045ab8e3bd1514404e7c326a045a92ae.\n\nSee the following revert for an explanation.\n","lang":"C","license":"mit","repos":"godfat\/rubyspec,chesterbr\/rubyspec,kachick\/rubyspec,iainbeeston\/rubyspec,yous\/rubyspec,sferik\/rubyspec,flavio\/rubyspec,markburns\/rubyspec,scooter-dangle\/rubyspec,benlovell\/rubyspec,lucaspinto\/rubyspec,ruby\/rubyspec,Zoxc\/rubyspec,metadave\/rubyspec,saturnflyer\/rubyspec,eregon\/rubyspec,alex\/rubyspec,Aesthetikx\/rubyspec,JuanitoFatas\/rubyspec,roshats\/rubyspec,MagLev\/rubyspec,freerange\/rubyspec,no6v\/rubyspec,xaviershay\/rubyspec,chesterbr\/rubyspec,terceiro\/rubyspec,jannishuebl\/rubyspec,lucaspinto\/rubyspec,flavio\/rubyspec,timfel\/rubyspec,rdp\/rubyspec,sgarciac\/spec,josedonizetti\/rubyspec,nevir\/rubyspec,sferik\/rubyspec,neomadara\/rubyspec,marcandre\/rubyspec,roshats\/rubyspec,rkh\/rubyspec,qmx\/rubyspec,nevir\/rubyspec,agrimm\/rubyspec,DawidJanczak\/rubyspec,Zoxc\/rubyspec,tinco\/rubyspec,benburkert\/rubyspec,kidaa\/rubyspec,wied03\/rubyspec,saturnflyer\/rubyspec,DawidJanczak\/rubyspec,jstepien\/rubyspec,terceiro\/rubyspec,ruby\/spec,wied03\/rubyspec,bomatson\/rubyspec,sgarciac\/spec,eregon\/rubyspec,MagLev\/rubyspec,nobu\/rubyspec,mrkn\/rubyspec,griff\/rubyspec,askl56\/rubyspec,BanzaiMan\/rubyspec,shirosaki\/rubyspec,iliabylich\/rubyspec,atambo\/rubyspec,sgarciac\/spec,yb66\/rubyspec,mbj\/rubyspec,DavidEGrayson\/rubyspec,iliabylich\/rubyspec,amarshall\/rubyspec,bl4ckdu5t\/rubyspec,JuanitoFatas\/rubyspec,iainbeeston\/rubyspec,neomadara\/rubyspec,mrkn\/rubyspec,ruby\/spec,kidaa\/rubyspec,ericmeyer\/rubyspec,yaauie\/rubyspec,alexch\/rubyspec,DavidEGrayson\/rubyspec,no6v\/rubyspec,timfel\/rubyspec,askl56\/rubyspec,alindeman\/rubyspec,julik\/rubyspec,rdp\/rubyspec,yb66\/rubyspec,kachick\/rubyspec,julik\/rubyspec,ruby\/rubyspec,xaviershay\/rubyspec,jannishuebl\/rubyspec,freerange\/rubyspec,bomatson\/rubyspec,marcandre\/rubyspec,teleological\/rubyspec,tinco\/rubyspec,atambo\/rubyspec,BanzaiMan\/rubyspec,amarshall\/rubyspec,benlovell\/rubyspec,alexch\/rubyspec,bjeanes\/rubyspec,nobu\/rubyspec,nobu\/rubyspec,kachick\/rubyspec,rkh\/rubyspec,yaauie\/rubyspec,griff\/rubyspec,alindeman\/rubyspec,jvshahid\/rubyspec,oggy\/rubyspec,ruby\/spec,Aesthetikx\/rubyspec,alex\/rubyspec,jvshahid\/rubyspec,josedonizetti\/rubyspec,enricosada\/rubyspec,godfat\/rubyspec,wied03\/rubyspec,benburkert\/rubyspec,bjeanes\/rubyspec,mbj\/rubyspec,qmx\/rubyspec,agrimm\/rubyspec,markburns\/rubyspec,scooter-dangle\/rubyspec,ericmeyer\/rubyspec,oggy\/rubyspec,yous\/rubyspec,bl4ckdu5t\/rubyspec,shirosaki\/rubyspec,metadave\/rubyspec,eregon\/rubyspec,jstepien\/rubyspec,enricosada\/rubyspec,teleological\/rubyspec"} {"commit":"8e4c186215c3d086a734dc0aec7f119b8a88c0a9","old_file":"ui\/views\/widget\/desktop_capture_client.h","new_file":"ui\/views\/widget\/desktop_capture_client.h","old_contents":"\/\/ Copyright (c) 2012 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_\n#define UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_\n\n#include \"base\/basictypes.h\"\n#include \"base\/compiler_specific.h\"\n#include \"ui\/aura\/client\/capture_client.h\"\n#include \"ui\/views\/views_export.h\"\n\nnamespace views {\n\nclass VIEWS_EXPORT DesktopCaptureClient : public aura::client::CaptureClient {\n public:\n DesktopCaptureClient();\n virtual ~DesktopCaptureClient();\n\n private:\n \/\/ Overridden from aura::client::CaptureClient:\n virtual void SetCapture(aura::Window* window) OVERRIDE;\n virtual void ReleaseCapture(aura::Window* window) OVERRIDE;\n virtual aura::Window* GetCaptureWindow() OVERRIDE;\n\n aura::Window* capture_window_;\n\n DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient);\n};\n\n} \/\/ namespace views\n\n#endif \/\/ UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_\n","new_contents":"\/\/ Copyright (c) 2012 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_\n#define UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_\n\n#include \"base\/basictypes.h\"\n#include \"base\/compiler_specific.h\"\n#include \"ui\/aura\/client\/capture_client.h\"\n\nnamespace views {\n\nclass DesktopCaptureClient : public aura::client::CaptureClient {\n public:\n DesktopCaptureClient();\n virtual ~DesktopCaptureClient();\n\n private:\n \/\/ Overridden from aura::client::CaptureClient:\n virtual void SetCapture(aura::Window* window) OVERRIDE;\n virtual void ReleaseCapture(aura::Window* window) OVERRIDE;\n virtual aura::Window* GetCaptureWindow() OVERRIDE;\n\n aura::Window* capture_window_;\n\n DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient);\n};\n\n} \/\/ namespace views\n\n#endif \/\/ UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_\n","subject":"Revert 155836 - Fix static build.","message":"Revert 155836 - Fix static build.\n\nTBR=ben@chromium.org\nReview URL: https:\/\/chromiumcodereview.appspot.com\/10918157\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@155841 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"anirudhSK\/chromium,Jonekee\/chromium.src,mogoweb\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,chuan9\/chromium-crosswalk,ltilve\/chromium,hujiajie\/pa-chromium,axinging\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,ltilve\/chromium,nacl-webkit\/chrome_deps,bright-sparks\/chromium-spacewalk,chuan9\/chromium-crosswalk,axinging\/chromium-crosswalk,dushu1203\/chromium.src,PeterWangIntel\/chromium-crosswalk,ltilve\/chromium,littlstar\/chromium.src,dushu1203\/chromium.src,ondra-novak\/chromium.src,Chilledheart\/chromium,hujiajie\/pa-chromium,Pluto-tv\/chromium-crosswalk,littlstar\/chromium.src,fujunwei\/chromium-crosswalk,M4sse\/chromium.src,Jonekee\/chromium.src,timopulkkinen\/BubbleFish,TheTypoMaster\/chromium-crosswalk,anirudhSK\/chromium,ChromiumWebApps\/chromium,junmin-zhu\/chromium-rivertrail,nacl-webkit\/chrome_deps,Just-D\/chromium-1,PeterWangIntel\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,M4sse\/chromium.src,littlstar\/chromium.src,markYoungH\/chromium.src,hgl888\/chromium-crosswalk-efl,dednal\/chromium.src,chuan9\/chromium-crosswalk,dednal\/chromium.src,krieger-od\/nwjs_chromium.src,ondra-novak\/chromium.src,ltilve\/chromium,jaruba\/chromium.src,ondra-novak\/chromium.src,bright-sparks\/chromium-spacewalk,mogoweb\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,mohamed--abdel-maksoud\/chromium.src,junmin-zhu\/chromium-rivertrail,hujiajie\/pa-chromium,hujiajie\/pa-chromium,Just-D\/chromium-1,anirudhSK\/chromium,markYoungH\/chromium.src,fujunwei\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,ChromiumWebApps\/chromium,Pluto-tv\/chromium-crosswalk,ondra-novak\/chromium.src,Fireblend\/chromium-crosswalk,timopulkkinen\/BubbleFish,zcbenz\/cefode-chromium,ltilve\/chromium,PeterWangIntel\/chromium-crosswalk,fujunwei\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,dushu1203\/chromium.src,chuan9\/chromium-crosswalk,patrickm\/chromium.src,fujunwei\/chromium-crosswalk,jaruba\/chromium.src,Fireblend\/chromium-crosswalk,Jonekee\/chromium.src,zcbenz\/cefode-chromium,markYoungH\/chromium.src,hujiajie\/pa-chromium,Fireblend\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,bright-sparks\/chromium-spacewalk,markYoungH\/chromium.src,TheTypoMaster\/chromium-crosswalk,anirudhSK\/chromium,axinging\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,timopulkkinen\/BubbleFish,hgl888\/chromium-crosswalk-efl,markYoungH\/chromium.src,junmin-zhu\/chromium-rivertrail,junmin-zhu\/chromium-rivertrail,dednal\/chromium.src,hgl888\/chromium-crosswalk,Chilledheart\/chromium,bright-sparks\/chromium-spacewalk,Fireblend\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,dednal\/chromium.src,ChromiumWebApps\/chromium,hgl888\/chromium-crosswalk,markYoungH\/chromium.src,mogoweb\/chromium-crosswalk,ondra-novak\/chromium.src,hujiajie\/pa-chromium,patrickm\/chromium.src,nacl-webkit\/chrome_deps,M4sse\/chromium.src,Jonekee\/chromium.src,TheTypoMaster\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,anirudhSK\/chromium,patrickm\/chromium.src,anirudhSK\/chromium,Jonekee\/chromium.src,nacl-webkit\/chrome_deps,chuan9\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,Pluto-tv\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,jaruba\/chromium.src,ondra-novak\/chromium.src,Pluto-tv\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,Just-D\/chromium-1,mogoweb\/chromium-crosswalk,M4sse\/chromium.src,pozdnyakov\/chromium-crosswalk,hgl888\/chromium-crosswalk,timopulkkinen\/BubbleFish,jaruba\/chromium.src,nacl-webkit\/chrome_deps,dednal\/chromium.src,mogoweb\/chromium-crosswalk,hgl888\/chromium-crosswalk,ltilve\/chromium,timopulkkinen\/BubbleFish,junmin-zhu\/chromium-rivertrail,dednal\/chromium.src,junmin-zhu\/chromium-rivertrail,Chilledheart\/chromium,axinging\/chromium-crosswalk,chuan9\/chromium-crosswalk,ChromiumWebApps\/chromium,nacl-webkit\/chrome_deps,pozdnyakov\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,krieger-od\/nwjs_chromium.src,ChromiumWebApps\/chromium,jaruba\/chromium.src,patrickm\/chromium.src,pozdnyakov\/chromium-crosswalk,hgl888\/chromium-crosswalk,hgl888\/chromium-crosswalk,axinging\/chromium-crosswalk,timopulkkinen\/BubbleFish,dushu1203\/chromium.src,pozdnyakov\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,Just-D\/chromium-1,PeterWangIntel\/chromium-crosswalk,Fireblend\/chromium-crosswalk,anirudhSK\/chromium,Jonekee\/chromium.src,Fireblend\/chromium-crosswalk,ChromiumWebApps\/chromium,ondra-novak\/chromium.src,hgl888\/chromium-crosswalk,chuan9\/chromium-crosswalk,markYoungH\/chromium.src,Chilledheart\/chromium,Just-D\/chromium-1,pozdnyakov\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,dednal\/chromium.src,mogoweb\/chromium-crosswalk,nacl-webkit\/chrome_deps,krieger-od\/nwjs_chromium.src,mohamed--abdel-maksoud\/chromium.src,anirudhSK\/chromium,crosswalk-project\/chromium-crosswalk-efl,Jonekee\/chromium.src,ChromiumWebApps\/chromium,bright-sparks\/chromium-spacewalk,littlstar\/chromium.src,junmin-zhu\/chromium-rivertrail,timopulkkinen\/BubbleFish,zcbenz\/cefode-chromium,hujiajie\/pa-chromium,fujunwei\/chromium-crosswalk,M4sse\/chromium.src,littlstar\/chromium.src,hgl888\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk,hujiajie\/pa-chromium,zcbenz\/cefode-chromium,pozdnyakov\/chromium-crosswalk,zcbenz\/cefode-chromium,mohamed--abdel-maksoud\/chromium.src,chuan9\/chromium-crosswalk,Fireblend\/chromium-crosswalk,Chilledheart\/chromium,mohamed--abdel-maksoud\/chromium.src,pozdnyakov\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,littlstar\/chromium.src,markYoungH\/chromium.src,bright-sparks\/chromium-spacewalk,timopulkkinen\/BubbleFish,dednal\/chromium.src,ltilve\/chromium,mohamed--abdel-maksoud\/chromium.src,Just-D\/chromium-1,krieger-od\/nwjs_chromium.src,mohamed--abdel-maksoud\/chromium.src,jaruba\/chromium.src,krieger-od\/nwjs_chromium.src,fujunwei\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,Pluto-tv\/chromium-crosswalk,ltilve\/chromium,patrickm\/chromium.src,krieger-od\/nwjs_chromium.src,jaruba\/chromium.src,axinging\/chromium-crosswalk,Chilledheart\/chromium,ltilve\/chromium,hgl888\/chromium-crosswalk-efl,hujiajie\/pa-chromium,timopulkkinen\/BubbleFish,ChromiumWebApps\/chromium,markYoungH\/chromium.src,anirudhSK\/chromium,TheTypoMaster\/chromium-crosswalk,patrickm\/chromium.src,TheTypoMaster\/chromium-crosswalk,Jonekee\/chromium.src,markYoungH\/chromium.src,ChromiumWebApps\/chromium,Just-D\/chromium-1,nacl-webkit\/chrome_deps,Jonekee\/chromium.src,littlstar\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,mogoweb\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,junmin-zhu\/chromium-rivertrail,Just-D\/chromium-1,jaruba\/chromium.src,jaruba\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,pozdnyakov\/chromium-crosswalk,jaruba\/chromium.src,mohamed--abdel-maksoud\/chromium.src,fujunwei\/chromium-crosswalk,anirudhSK\/chromium,hgl888\/chromium-crosswalk,anirudhSK\/chromium,fujunwei\/chromium-crosswalk,Jonekee\/chromium.src,Just-D\/chromium-1,dushu1203\/chromium.src,mohamed--abdel-maksoud\/chromium.src,littlstar\/chromium.src,M4sse\/chromium.src,Chilledheart\/chromium,krieger-od\/nwjs_chromium.src,timopulkkinen\/BubbleFish,zcbenz\/cefode-chromium,bright-sparks\/chromium-spacewalk,hujiajie\/pa-chromium,nacl-webkit\/chrome_deps,hgl888\/chromium-crosswalk-efl,krieger-od\/nwjs_chromium.src,crosswalk-project\/chromium-crosswalk-efl,mohamed--abdel-maksoud\/chromium.src,markYoungH\/chromium.src,hgl888\/chromium-crosswalk-efl,Chilledheart\/chromium,dednal\/chromium.src,patrickm\/chromium.src,zcbenz\/cefode-chromium,dushu1203\/chromium.src,zcbenz\/cefode-chromium,dushu1203\/chromium.src,dushu1203\/chromium.src,fujunwei\/chromium-crosswalk,jaruba\/chromium.src,Jonekee\/chromium.src,M4sse\/chromium.src,M4sse\/chromium.src,nacl-webkit\/chrome_deps,dednal\/chromium.src,mogoweb\/chromium-crosswalk,Chilledheart\/chromium,axinging\/chromium-crosswalk,ondra-novak\/chromium.src,TheTypoMaster\/chromium-crosswalk,junmin-zhu\/chromium-rivertrail,crosswalk-project\/chromium-crosswalk-efl,axinging\/chromium-crosswalk,M4sse\/chromium.src,nacl-webkit\/chrome_deps,pozdnyakov\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,mogoweb\/chromium-crosswalk,chuan9\/chromium-crosswalk,zcbenz\/cefode-chromium,Fireblend\/chromium-crosswalk,anirudhSK\/chromium,zcbenz\/cefode-chromium,ChromiumWebApps\/chromium,patrickm\/chromium.src,pozdnyakov\/chromium-crosswalk,ChromiumWebApps\/chromium,axinging\/chromium-crosswalk,axinging\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,M4sse\/chromium.src,hgl888\/chromium-crosswalk-efl,dushu1203\/chromium.src,Fireblend\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,mogoweb\/chromium-crosswalk,axinging\/chromium-crosswalk,timopulkkinen\/BubbleFish,PeterWangIntel\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,ChromiumWebApps\/chromium,dushu1203\/chromium.src,zcbenz\/cefode-chromium,patrickm\/chromium.src,dednal\/chromium.src,Pluto-tv\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,M4sse\/chromium.src,hujiajie\/pa-chromium,ondra-novak\/chromium.src,dushu1203\/chromium.src"} {"commit":"8c274b950988b1bb4e56ce734f4817dc4788ecaa","old_file":"lib\/tinynotify-cli.c","new_file":"lib\/tinynotify-cli.c","old_contents":"\/* libtinynotify\n * (c) 2011 Michał Górny\n * 2-clause BSD-licensed\n *\/\n\n#include \"config.h\"\n#include \"tinynotify-cli.h\"\n#include \"tinynotify.h\"\n\n#include \n#include \n#include \n\nNotification notification_new_from_cmdline(int argc, char *argv[]) {\n\tint opterr_backup = opterr;\n\tint arg;\n\n\tconst char *icon = NOTIFICATION_DEFAULT_APP_ICON;\n\tconst char *summary;\n\tconst char *body = NOTIFICATION_NO_BODY;\n\n\tNotification n;\n\n\topterr = 0; \/* be quiet about nonsense args *\/\n\twhile (((arg = getopt(argc, argv, \"i:\"))) != -1) {\n\t\tswitch (arg) {\n\t\t\tcase 'i':\n\t\t\t\ticon = optarg;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\topterr = opterr_backup;\n\n\tif (optind >= argc) {\n\t\t\/* XXX, better error handling? *\/\n\t\treturn NULL;\n\t}\n\n\tsummary = argv[optind++];\n\tif (optind < argc)\n\t\tbody = argv[optind++];\n\n\tn = notification_new(summary, body);\n\tnotification_set_formatting(n, 0);\n\tif (icon)\n\t\tnotification_set_app_icon(n, icon);\n\n\treturn n;\n}\n","new_contents":"\/* libtinynotify\n * (c) 2011 Michał Górny\n * 2-clause BSD-licensed\n *\/\n\n#include \"config.h\"\n#include \"tinynotify.h\"\n#include \"tinynotify-cli.h\"\n\n#include \n#include \n#include \n\nNotification notification_new_from_cmdline(int argc, char *argv[]) {\n\tint opterr_backup = opterr;\n\tint arg;\n\n\tconst char *icon = NOTIFICATION_DEFAULT_APP_ICON;\n\tconst char *summary;\n\tconst char *body = NOTIFICATION_NO_BODY;\n\n\tNotification n;\n\n\topterr = 0; \/* be quiet about nonsense args *\/\n\twhile (((arg = getopt(argc, argv, \"i:\"))) != -1) {\n\t\tswitch (arg) {\n\t\t\tcase 'i':\n\t\t\t\ticon = optarg;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\topterr = opterr_backup;\n\n\tif (optind >= argc) {\n\t\t\/* XXX, better error handling? *\/\n\t\treturn NULL;\n\t}\n\n\tsummary = argv[optind++];\n\tif (optind < argc)\n\t\tbody = argv[optind++];\n\n\tn = notification_new(summary, body);\n\tnotification_set_formatting(n, 0);\n\tif (icon)\n\t\tnotification_set_app_icon(n, icon);\n\n\treturn n;\n}\n","subject":"Switch header order to ensure local gets used before system one.","message":"Switch header order to ensure local gets used before system one.\n","lang":"C","license":"bsd-2-clause","repos":"mortbauer\/tinynotify-send,mortbauer\/libtinynotify"} {"commit":"3c219200ac98dc367dcfbbf027efab4f3a3b1475","old_file":"quic\/platform\/api\/quic_test.h","new_file":"quic\/platform\/api\/quic_test.h","old_contents":"\/\/ Copyright (c) 2017 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_\n#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_\n\n#include \"quic\/platform\/api\/quic_logging.h\"\n#include \"net\/quic\/platform\/impl\/quic_test_impl.h\"\n\nusing QuicFlagSaver = QuicFlagSaverImpl;\n\n\/\/ Defines the base classes to be used in QUIC tests.\nusing QuicTest = QuicTestImpl;\ntemplate \nusing QuicTestWithParam = QuicTestWithParamImpl;\n\n\/\/ Class which needs to be instantiated in tests which use threads.\nusing ScopedEnvironmentForThreads = ScopedEnvironmentForThreadsImpl;\n\n#define QUIC_TEST_DISABLED_IN_CHROME(name) \\\n QUIC_TEST_DISABLED_IN_CHROME_IMPL(name)\n\ninline std::string QuicGetTestMemoryCachePath() {\n return QuicGetTestMemoryCachePathImpl();\n}\n\n#define QUIC_SLOW_TEST(test) QUIC_SLOW_TEST_IMPL(test)\n\n#endif \/\/ QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_\n","new_contents":"\/\/ Copyright (c) 2017 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_\n#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_\n\n#include \"quic\/platform\/api\/quic_logging.h\"\n#include \"net\/quic\/platform\/impl\/quic_test_impl.h\"\n#include \"common\/platform\/api\/quiche_test.h\"\n\nusing QuicFlagSaver = QuicFlagSaverImpl;\n\n\/\/ Defines the base classes to be used in QUIC tests.\nusing QuicTest = QuicTestImpl;\ntemplate \nusing QuicTestWithParam = QuicTestWithParamImpl;\n\n\/\/ Class which needs to be instantiated in tests which use threads.\nusing ScopedEnvironmentForThreads = ScopedEnvironmentForThreadsImpl;\n\n#define QUIC_TEST_DISABLED_IN_CHROME(name) \\\n QUIC_TEST_DISABLED_IN_CHROME_IMPL(name)\n\ninline std::string QuicGetTestMemoryCachePath() {\n return QuicGetTestMemoryCachePathImpl();\n}\n\n#define QUIC_SLOW_TEST(test) QUIC_SLOW_TEST_IMPL(test)\n\n#endif \/\/ QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_\n","subject":"Move EXPECT_EQ macro magic from quic\/platform to quiche\/platform.","message":"Move EXPECT_EQ macro magic from quic\/platform to quiche\/platform.\n\nThe purpose of this machinary is to override EXPECT_EQ and similar comparison\nmacros so that -Wsigned-compare actually catches signed-unsigned comparison in\ninternal builds (where gTest implementation is slightly different so otherwise\nthe warning would not be effective). This CL moves it from\nquic\/platform\/api\/quic_test.h to quiche\/common\/platform\/quiche_test.h, while\nalso adding an include of the latter to the former, to make users of either\nheader benefit from it.\n\nThe change to frame_formatter_test.cc is necessary to avoid the following\nerror:\n\nthird_party\/http2\/tools\/frame_formatter_test.cc:75:3: error: non-const lvalue reference to type 'basic_string<...>' cannot bind to a temporary of type 'basic_string<...>'\n EXPECT_EQ(\"\\x01 a\", std::move(status_or_parsed).value());\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n.\/third_party\/quiche\/common\/platform\/impl\/quiche_test_impl.h:73:3: note: expanded from macro 'EXPECT_EQ'\n QUIC_LOGGING_INTERNAL_EXPECT_EXT(EqHelper::Compare, ==, val1, val2)\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n.\/third_party\/quiche\/common\/platform\/impl\/quiche_test_impl.h:68:3: note: expanded from macro 'QUIC_LOGGING_INTERNAL_EXPECT_EXT'\n QUIC_LOGGING_INTERNAL_INNER_COMPARE(_comparison_symbol, _val1, _val2); \\\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n.\/net\/quic\/platform_overrides\/quiche_platform_impl\/quiche_logging_impl.h:164:30: note: expanded from macro 'QUIC_LOGGING_INTERNAL_INNER_COMPARE'\n const decltype(_val2)& _local_val2 = (_val2); \\\n\nPiperOrigin-RevId: 390165392\n","lang":"C","license":"bsd-3-clause","repos":"google\/quiche,google\/quiche,google\/quiche,google\/quiche"} {"commit":"ec11df6a1272f275bbda22375ee8a84c034e09b4","old_file":"modules\/modinclude.h","new_file":"modules\/modinclude.h","old_contents":"#include \"..\/main.h\"\n\nclass ConfigReader;\nclass ModuleInterface; \/\/ forward-declare so it can be used in modules and server\n#include \"..\/connection.h\" \/\/ declare other classes that use it\n#include \"..\/modules.h\"\n#include \"..\/config.cpp\"\n#include \"..\/modinterface.cpp\"","new_contents":"#include \"..\/main.h\"\n\nclass ConfigReader;\nclass ModuleInterface; \/\/ forward-declare so it can be used in modules and server\n#include \"..\/connection.h\" \/\/ declare other classes that use it\n#include \"..\/modules.h\"\n#include \"..\/config.cpp\"\n#include \"..\/modules.cpp\"\n#include \"..\/modinterface.cpp\"","subject":"Add a file to the module include.","message":"Add a file to the module include.\n","lang":"C","license":"mit","repos":"ElementalAlchemist\/RoBoBo,ElementalAlchemist\/RoBoBo"} {"commit":"addd55dcf27bda9e3f6cfe4301c067276fa67161","old_file":"plugins\/ua_debug_dump_pkgs.c","new_file":"plugins\/ua_debug_dump_pkgs.c","old_contents":"\/* This work is licensed under a Creative Commons CCZero 1.0 Universal License.\n * See http:\/\/creativecommons.org\/publicdomain\/zero\/1.0\/ for more information. *\/\n\n#include \"ua_util.h\"\n\n#include \n#include \nvoid UA_dump_hex_pkg(UA_Byte* buffer, size_t bufferLen) {\n printf(\"--------------- HEX Package Start ---------------\\n\");\n char ascii[17];\n memset(ascii,0,17);\n for (size_t i = 0; i < bufferLen; i++)\n {\n if (i == 0)\n printf(\"%08zx \", i);\n else if (i%16 == 0)\n printf(\"|%s|\\n%08zx \", ascii, i);\n if (isprint((int)(buffer[i])))\n ascii[i%16] = (char)buffer[i];\n else\n ascii[i%16] = '.';\n printf(\"%02X \", (unsigned char)buffer[i]);\n }\n size_t fillPos = bufferLen %16;\n ascii[fillPos] = 0;\n for (size_t i=fillPos; i<16; i++) {\n printf(\" \");\n }\n printf(\"|%s|\\n%08zx\\n\", ascii, bufferLen);\n printf(\"--------------- HEX Package END ---------------\\n\");\n}\n","new_contents":"\/* This work is licensed under a Creative Commons CCZero 1.0 Universal License.\n * See http:\/\/creativecommons.org\/publicdomain\/zero\/1.0\/ for more information. *\/\n\n#include \"ua_util.h\"\n\n#include \n#include \nvoid UA_dump_hex_pkg(UA_Byte* buffer, size_t bufferLen) {\n printf(\"--------------- HEX Package Start ---------------\\n\");\n char ascii[17];\n memset(ascii,0,17);\n for (size_t i = 0; i < bufferLen; i++)\n {\n if (i == 0)\n printf(\"%08zx \", i);\n else if (i%16 == 0)\n printf(\" |%s|\\n%08zx \", ascii, i);\n if (isprint((int)(buffer[i])))\n ascii[i%16] = (char)buffer[i];\n else\n ascii[i%16] = '.';\n if (i%8==0)\n printf(\" \");\n printf(\"%02X \", (unsigned char)buffer[i]);\n\n }\n size_t fillPos = bufferLen %16;\n ascii[fillPos] = 0;\n for (size_t i=fillPos; i<16; i++) {\n if (i%8==0)\n printf(\" \");\n printf(\" \");\n }\n printf(\" |%s|\\n%08zx\\n\", ascii, bufferLen);\n printf(\"--------------- HEX Package END ---------------\\n\");\n}\n","subject":"Align format with `hexdump -C`","message":"Align format with `hexdump -C`\n","lang":"C","license":"mpl-2.0","repos":"JGrothoff\/open62541,open62541\/open62541,JGrothoff\/open62541,JGrothoff\/open62541,jpfr\/open62541,jpfr\/open62541,open62541\/open62541,open62541\/open62541,StalderT\/open62541,jpfr\/open62541,JGrothoff\/open62541,StalderT\/open62541,StalderT\/open62541,StalderT\/open62541,open62541\/open62541,jpfr\/open62541"} {"commit":"f412fab9497a47ca77eece623fe53927302948c0","old_file":"TWTValidation\/TWTValidationLocalization.h","new_file":"TWTValidation\/TWTValidationLocalization.h","old_contents":"\/\/\n\/\/ TWTValidationLocalization.h\n\/\/ TWTValidation\n\/\/\n\/\/ Created by Prachi Gauriar on 4\/3\/2014.\n\/\/ Copyright (c) 2014 Two Toasters, LLC. All rights reserved.\n\/\/\n\n#define TWTLocalizedString(key) \\\n [[NSBundle bundleForClass:[self class]] localizedStringForKey:(key) value:@\"\" table:@\"TWTValidation\"]\n","new_contents":"\/\/\n\/\/ TWTValidationLocalization.h\n\/\/ TWTValidation\n\/\/\n\/\/ Created by Prachi Gauriar on 4\/3\/2014.\n\/\/ Copyright (c) 2014 Two Toasters, LLC.\n\/\/\n\/\/ Permission is hereby granted, free of charge, to any person obtaining a copy\n\/\/ of this software and associated documentation files (the \"Software\"), to deal\n\/\/ in the Software without restriction, including without limitation the rights\n\/\/ to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\n\/\/ copies of the Software, and to permit persons to whom the Software is\n\/\/ furnished to do so, subject to the following conditions:\n\/\/\n\/\/ The above copyright notice and this permission notice shall be included in\n\/\/ all copies or substantial portions of the Software.\n\/\/\n\/\/ THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\/\/ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\/\/ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\/\/ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\/\/ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\/\/ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\/\/ THE SOFTWARE.\n\/\/\n\n#define TWTLocalizedString(key) \\\n [[NSBundle bundleForClass:[self class]] localizedStringForKey:(key) value:@\"\" table:@\"TWTValidation\"]\n","subject":"Add license to localization header","message":"Add license to localization header\n","lang":"C","license":"mit","repos":"twotoasters\/TWTValidation,twotoasters\/TWTValidation,twotoasters\/TWTValidation"} {"commit":"a305a32942efd7c37196b6229ac765d5c850d1fa","old_file":"bibdesk\/BDSKSearchGroupViewController.h","new_file":"bibdesk\/BDSKSearchGroupViewController.h","old_contents":"","new_contents":"\/\/\n\/\/ BDSKSearchGroupViewController.h\n\/\/ Bibdesk\n\/\/\n\/\/ Created by Christiaan Hofman on 1\/2\/07.\n\/*\n This software is Copyright (c) 2007\n Christiaan Hofman. All rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n \n - Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n \n - Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and\/or other materials provided with the\n distribution.\n \n - Neither the name of Christiaan Hofman nor the names of any\n contributors may be used to endorse or promote products derived\n from this software without specific prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\/\n\n#import \n\n@class BDSKCollapsibleView, BDSKEdgeView, BDSKSearchGroup;\n\n@interface BDSKSearchGroupViewController : NSWindowController {\n IBOutlet BDSKCollapsibleView *view;\n IBOutlet BDSKEdgeView *edgeView;\n IBOutlet NSSearchField *searchField;\n IBOutlet NSButton *searchButton;\n \n BDSKSearchGroup *group;\n}\n\n- (NSView *)view;\n\n- (BDSKSearchGroup *)group;\n- (void)setGroup:(BDSKSearchGroup *)newGroup;\n\n- (IBAction)changeSearchTerm:(id)sender;\n- (IBAction)nextSearch:(id)sender;\n\n@end\n","subject":"Add new header file. (or: xcode is stupid)","message":"Add new header file. (or: xcode is stupid)\n","lang":"C","license":"bsd-3-clause","repos":"JackieXie168\/skim,JackieXie168\/skim,JackieXie168\/skim,JackieXie168\/skim,JackieXie168\/skim"} {"commit":"895dedeb2104e08ae4256d6f8f862798cb4d92f0","old_file":"chrome\/browser\/ui\/panels\/panel_browser_window_gtk.h","new_file":"chrome\/browser\/ui\/panels\/panel_browser_window_gtk.h","old_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_\n#define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_\n\n#include \"chrome\/browser\/ui\/gtk\/browser_window_gtk.h\"\n\nclass Panel;\n\nclass PanelBrowserWindowGtk : public BrowserWindowGtk {\n public:\n PanelBrowserWindowGtk(Browser* browser, Panel* panel);\n virtual ~PanelBrowserWindowGtk() {}\n\n \/\/ BrowserWindowGtk overrides\n virtual void Init() OVERRIDE;\n\n \/\/ BrowserWindow overrides\n virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;\n\n protected:\n \/\/ BrowserWindowGtk overrides\n virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE;\n virtual bool HandleTitleBarLeftMousePress(\n GdkEventButton* event,\n guint32 last_click_time,\n gfx::Point last_click_position) OVERRIDE;\n virtual void SaveWindowPosition() OVERRIDE;\n virtual void SetGeometryHints() OVERRIDE;\n virtual bool UseCustomFrame() OVERRIDE;\n\n private:\n void SetBoundsImpl();\n\n scoped_ptr panel_;\n DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);\n};\n\n#endif \/\/ CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_\n","new_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_\n#define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_\n\n#include \"chrome\/browser\/ui\/gtk\/browser_window_gtk.h\"\n\nclass Panel;\n\nclass PanelBrowserWindowGtk : public BrowserWindowGtk {\n public:\n PanelBrowserWindowGtk(Browser* browser, Panel* panel);\n virtual ~PanelBrowserWindowGtk() {}\n\n \/\/ BrowserWindowGtk overrides\n virtual void Init() OVERRIDE;\n\n \/\/ BrowserWindow overrides\n virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;\n\n protected:\n \/\/ BrowserWindowGtk overrides\n virtual bool GetWindowEdge(int x, int y, GdkWindowEdge* edge) OVERRIDE;\n virtual bool HandleTitleBarLeftMousePress(\n GdkEventButton* event,\n guint32 last_click_time,\n gfx::Point last_click_position) OVERRIDE;\n virtual void SaveWindowPosition() OVERRIDE;\n virtual void SetGeometryHints() OVERRIDE;\n virtual bool UseCustomFrame() OVERRIDE;\n\n private:\n void SetBoundsImpl();\n\n Panel* panel_;\n DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowGtk);\n};\n\n#endif \/\/ CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_\n","subject":"Revert 88154 - Use scoped_ptr for Panel in PanelBrowserWindowGTK. Reason: PanelBrowserWindow dtor is now complex and cannot be inlined.","message":"Revert 88154 - Use scoped_ptr for Panel in PanelBrowserWindowGTK.\nReason: PanelBrowserWindow dtor is now complex and cannot be inlined.\n\nBUG=None\nTEST=Verified WindowOpenPanel test now hits Panel destructor.\n\nReview URL: http:\/\/codereview.chromium.org\/7120011\n\nTBR=jennb@chromium.org\nReview URL: http:\/\/codereview.chromium.org\/7003035\n\ngit-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@88159 0039d316-1c4b-4281-b951-d872f2087c98\n","lang":"C","license":"bsd-3-clause","repos":"nacl-webkit\/chrome_deps,mohamed--abdel-maksoud\/chromium.src,littlstar\/chromium.src,axinging\/chromium-crosswalk,hujiajie\/pa-chromium,dushu1203\/chromium.src,Pluto-tv\/chromium-crosswalk,axinging\/chromium-crosswalk,markYoungH\/chromium.src,hujiajie\/pa-chromium,zcbenz\/cefode-chromium,mohamed--abdel-maksoud\/chromium.src,nacl-webkit\/chrome_deps,mohamed--abdel-maksoud\/chromium.src,chuan9\/chromium-crosswalk,Fireblend\/chromium-crosswalk,dednal\/chromium.src,dushu1203\/chromium.src,hujiajie\/pa-chromium,pozdnyakov\/chromium-crosswalk,keishi\/chromium,hujiajie\/pa-chromium,axinging\/chromium-crosswalk,patrickm\/chromium.src,dushu1203\/chromium.src,zcbenz\/cefode-chromium,anirudhSK\/chromium,ondra-novak\/chromium.src,chuan9\/chromium-crosswalk,zcbenz\/cefode-chromium,robclark\/chromium,bright-sparks\/chromium-spacewalk,littlstar\/chromium.src,axinging\/chromium-crosswalk,rogerwang\/chromium,anirudhSK\/chromium,Pluto-tv\/chromium-crosswalk,zcbenz\/cefode-chromium,M4sse\/chromium.src,ondra-novak\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,ChromiumWebApps\/chromium,junmin-zhu\/chromium-rivertrail,patrickm\/chromium.src,Jonekee\/chromium.src,Jonekee\/chromium.src,fujunwei\/chromium-crosswalk,nacl-webkit\/chrome_deps,M4sse\/chromium.src,robclark\/chromium,axinging\/chromium-crosswalk,hgl888\/chromium-crosswalk-efl,krieger-od\/nwjs_chromium.src,hgl888\/chromium-crosswalk,Fireblend\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,Just-D\/chromium-1,mogoweb\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,Jonekee\/chromium.src,krieger-od\/nwjs_chromium.src,M4sse\/chromium.src,robclark\/chromium,zcbenz\/cefode-chromium,mogoweb\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,chuan9\/chromium-crosswalk,markYoungH\/chromium.src,Just-D\/chromium-1,Jonekee\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,jaruba\/chromium.src,ltilve\/chromium,markYoungH\/chromium.src,chuan9\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,junmin-zhu\/chromium-rivertrail,littlstar\/chromium.src,jaruba\/chromium.src,M4sse\/chromium.src,anirudhSK\/chromium,ChromiumWebApps\/chromium,hgl888\/chromium-crosswalk-efl,mohamed--abdel-maksoud\/chromium.src,mogoweb\/chromium-crosswalk,mohamed--abdel-maksoud\/chromium.src,axinging\/chromium-crosswalk,littlstar\/chromium.src,keishi\/chromium,robclark\/chromium,chuan9\/chromium-crosswalk,hujiajie\/pa-chromium,anirudhSK\/chromium,ChromiumWebApps\/chromium,zcbenz\/cefode-chromium,nacl-webkit\/chrome_deps,rogerwang\/chromium,keishi\/chromium,patrickm\/chromium.src,ChromiumWebApps\/chromium,anirudhSK\/chromium,hgl888\/chromium-crosswalk,jaruba\/chromium.src,krieger-od\/nwjs_chromium.src,Fireblend\/chromium-crosswalk,littlstar\/chromium.src,ondra-novak\/chromium.src,keishi\/chromium,Fireblend\/chromium-crosswalk,chuan9\/chromium-crosswalk,mogoweb\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,krieger-od\/nwjs_chromium.src,hgl888\/chromium-crosswalk,ChromiumWebApps\/chromium,ChromiumWebApps\/chromium,hujiajie\/pa-chromium,Jonekee\/chromium.src,markYoungH\/chromium.src,TheTypoMaster\/chromium-crosswalk,ChromiumWebApps\/chromium,Chilledheart\/chromium,markYoungH\/chromium.src,mohamed--abdel-maksoud\/chromium.src,timopulkkinen\/BubbleFish,patrickm\/chromium.src,timopulkkinen\/BubbleFish,hgl888\/chromium-crosswalk-efl,robclark\/chromium,hujiajie\/pa-chromium,pozdnyakov\/chromium-crosswalk,anirudhSK\/chromium,ChromiumWebApps\/chromium,dushu1203\/chromium.src,zcbenz\/cefode-chromium,jaruba\/chromium.src,markYoungH\/chromium.src,mogoweb\/chromium-crosswalk,Chilledheart\/chromium,ondra-novak\/chromium.src,nacl-webkit\/chrome_deps,mohamed--abdel-maksoud\/chromium.src,dednal\/chromium.src,rogerwang\/chromium,ltilve\/chromium,junmin-zhu\/chromium-rivertrail,nacl-webkit\/chrome_deps,ChromiumWebApps\/chromium,pozdnyakov\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,hgl888\/chromium-crosswalk-efl,crosswalk-project\/chromium-crosswalk-efl,crosswalk-project\/chromium-crosswalk-efl,hujiajie\/pa-chromium,dushu1203\/chromium.src,pozdnyakov\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,Just-D\/chromium-1,markYoungH\/chromium.src,TheTypoMaster\/chromium-crosswalk,hgl888\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,rogerwang\/chromium,PeterWangIntel\/chromium-crosswalk,ondra-novak\/chromium.src,anirudhSK\/chromium,dushu1203\/chromium.src,Just-D\/chromium-1,axinging\/chromium-crosswalk,ltilve\/chromium,Fireblend\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,robclark\/chromium,mohamed--abdel-maksoud\/chromium.src,Just-D\/chromium-1,Just-D\/chromium-1,pozdnyakov\/chromium-crosswalk,markYoungH\/chromium.src,hujiajie\/pa-chromium,fujunwei\/chromium-crosswalk,ondra-novak\/chromium.src,bright-sparks\/chromium-spacewalk,Fireblend\/chromium-crosswalk,ltilve\/chromium,hujiajie\/pa-chromium,ChromiumWebApps\/chromium,hgl888\/chromium-crosswalk,axinging\/chromium-crosswalk,nacl-webkit\/chrome_deps,krieger-od\/nwjs_chromium.src,dednal\/chromium.src,M4sse\/chromium.src,fujunwei\/chromium-crosswalk,dednal\/chromium.src,hgl888\/chromium-crosswalk-efl,krieger-od\/nwjs_chromium.src,ChromiumWebApps\/chromium,dednal\/chromium.src,Pluto-tv\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,dednal\/chromium.src,ltilve\/chromium,hgl888\/chromium-crosswalk-efl,hgl888\/chromium-crosswalk-efl,dushu1203\/chromium.src,nacl-webkit\/chrome_deps,Chilledheart\/chromium,keishi\/chromium,dushu1203\/chromium.src,M4sse\/chromium.src,hgl888\/chromium-crosswalk-efl,PeterWangIntel\/chromium-crosswalk,hgl888\/chromium-crosswalk,fujunwei\/chromium-crosswalk,mogoweb\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,crosswalk-project\/chromium-crosswalk-efl,rogerwang\/chromium,bright-sparks\/chromium-spacewalk,chuan9\/chromium-crosswalk,pozdnyakov\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,Pluto-tv\/chromium-crosswalk,zcbenz\/cefode-chromium,timopulkkinen\/BubbleFish,fujunwei\/chromium-crosswalk,mogoweb\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,littlstar\/chromium.src,dushu1203\/chromium.src,rogerwang\/chromium,keishi\/chromium,crosswalk-project\/chromium-crosswalk-efl,timopulkkinen\/BubbleFish,nacl-webkit\/chrome_deps,hgl888\/chromium-crosswalk,rogerwang\/chromium,patrickm\/chromium.src,jaruba\/chromium.src,robclark\/chromium,junmin-zhu\/chromium-rivertrail,rogerwang\/chromium,timopulkkinen\/BubbleFish,PeterWangIntel\/chromium-crosswalk,keishi\/chromium,jaruba\/chromium.src,bright-sparks\/chromium-spacewalk,TheTypoMaster\/chromium-crosswalk,M4sse\/chromium.src,dednal\/chromium.src,junmin-zhu\/chromium-rivertrail,dednal\/chromium.src,zcbenz\/cefode-chromium,hgl888\/chromium-crosswalk-efl,Just-D\/chromium-1,junmin-zhu\/chromium-rivertrail,jaruba\/chromium.src,dushu1203\/chromium.src,M4sse\/chromium.src,littlstar\/chromium.src,jaruba\/chromium.src,M4sse\/chromium.src,keishi\/chromium,fujunwei\/chromium-crosswalk,ltilve\/chromium,krieger-od\/nwjs_chromium.src,Chilledheart\/chromium,robclark\/chromium,pozdnyakov\/chromium-crosswalk,dednal\/chromium.src,timopulkkinen\/BubbleFish,Chilledheart\/chromium,fujunwei\/chromium-crosswalk,dednal\/chromium.src,Just-D\/chromium-1,ltilve\/chromium,Pluto-tv\/chromium-crosswalk,littlstar\/chromium.src,crosswalk-project\/chromium-crosswalk-efl,crosswalk-project\/chromium-crosswalk-efl,Pluto-tv\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,timopulkkinen\/BubbleFish,Fireblend\/chromium-crosswalk,Pluto-tv\/chromium-crosswalk,anirudhSK\/chromium,Jonekee\/chromium.src,anirudhSK\/chromium,fujunwei\/chromium-crosswalk,krieger-od\/nwjs_chromium.src,nacl-webkit\/chrome_deps,mogoweb\/chromium-crosswalk,patrickm\/chromium.src,markYoungH\/chromium.src,hgl888\/chromium-crosswalk,jaruba\/chromium.src,krieger-od\/nwjs_chromium.src,Jonekee\/chromium.src,chuan9\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,hgl888\/chromium-crosswalk,timopulkkinen\/BubbleFish,zcbenz\/cefode-chromium,rogerwang\/chromium,bright-sparks\/chromium-spacewalk,ondra-novak\/chromium.src,timopulkkinen\/BubbleFish,Chilledheart\/chromium,junmin-zhu\/chromium-rivertrail,Pluto-tv\/chromium-crosswalk,axinging\/chromium-crosswalk,fujunwei\/chromium-crosswalk,jaruba\/chromium.src,jaruba\/chromium.src,mogoweb\/chromium-crosswalk,TheTypoMaster\/chromium-crosswalk,rogerwang\/chromium,patrickm\/chromium.src,PeterWangIntel\/chromium-crosswalk,markYoungH\/chromium.src,hujiajie\/pa-chromium,hgl888\/chromium-crosswalk-efl,chuan9\/chromium-crosswalk,axinging\/chromium-crosswalk,timopulkkinen\/BubbleFish,ondra-novak\/chromium.src,ondra-novak\/chromium.src,Fireblend\/chromium-crosswalk,markYoungH\/chromium.src,junmin-zhu\/chromium-rivertrail,timopulkkinen\/BubbleFish,Chilledheart\/chromium,Just-D\/chromium-1,zcbenz\/cefode-chromium,anirudhSK\/chromium,Jonekee\/chromium.src,Jonekee\/chromium.src,robclark\/chromium,junmin-zhu\/chromium-rivertrail,Fireblend\/chromium-crosswalk,nacl-webkit\/chrome_deps,axinging\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,patrickm\/chromium.src,Chilledheart\/chromium,mogoweb\/chromium-crosswalk,bright-sparks\/chromium-spacewalk,bright-sparks\/chromium-spacewalk,dednal\/chromium.src,junmin-zhu\/chromium-rivertrail,M4sse\/chromium.src,anirudhSK\/chromium,anirudhSK\/chromium,Chilledheart\/chromium,M4sse\/chromium.src,robclark\/chromium,TheTypoMaster\/chromium-crosswalk,keishi\/chromium,dushu1203\/chromium.src,PeterWangIntel\/chromium-crosswalk,patrickm\/chromium.src,keishi\/chromium,junmin-zhu\/chromium-rivertrail,ltilve\/chromium,keishi\/chromium,Pluto-tv\/chromium-crosswalk,PeterWangIntel\/chromium-crosswalk,Jonekee\/chromium.src,ltilve\/chromium,Jonekee\/chromium.src,ChromiumWebApps\/chromium"} {"commit":"b07ec29109a2ca1603d3a4c199132f4c510ef763","old_file":"third_party\/lua-5.2.3\/src\/floating_temple.c","new_file":"third_party\/lua-5.2.3\/src\/floating_temple.c","old_contents":"\/*\n** Hook functions for integration with the Floating Temple distributed\n** interpreter\n*\/\n\n\n#include \n\n\n#define floating_temple_c\n#define LUA_CORE\n\n#include \"lua.h\"\n\n#include \"floating_temple.h\"\n#include \"lobject.h\"\n#include \"luaconf.h\"\n\n\nstatic int ft_defaultnewstringhook (lua_State *L, StkId obj, const char *str,\n size_t len) {\n return 0;\n}\n\nstatic int ft_defaultnewtablehook (lua_State *L, StkId obj, int b, int c) {\n return 0;\n}\n\n\n#define FT_DEFINE_HOOK_FUNC(install_func, hook_type, hook_var, \\\n default_hook_func) \\\n LUAI_DDEF hook_type hook_var = &default_hook_func; \\\n\\\n LUA_API hook_type install_func (hook_type hook) { \\\n hook_type old_hook = hook_var; \\\n hook_var = hook; \\\n return old_hook; \\\n }\n\n\nFT_DEFINE_HOOK_FUNC(ft_installnewstringhook, ft_NewStringHook, ft_newstringhook,\n ft_defaultnewstringhook)\n\nFT_DEFINE_HOOK_FUNC(ft_installnewtablehook, ft_NewTableHook, ft_newtablehook,\n ft_defaultnewtablehook)\n\n\n#undef FT_DEFINE_HOOK_FUNC\n","new_contents":"\/*\n** Hook functions for integration with the Floating Temple distributed\n** interpreter\n*\/\n\n\n#include \n\n\n#define floating_temple_c\n#define LUA_CORE\n\n#include \"lua.h\"\n\n#include \"floating_temple.h\"\n#include \"lobject.h\"\n#include \"luaconf.h\"\n\n\n#define FT_DEFINE_HOOK_FUNC(install_func, hook_type, hook_var, hook_params, \\\n default_hook_func) \\\n static int default_hook_func hook_params { \\\n return 0; \\\n } \\\n\\\n LUAI_DDEF hook_type hook_var = &default_hook_func; \\\n\\\n LUA_API hook_type install_func (hook_type hook) { \\\n hook_type old_hook = hook_var; \\\n hook_var = hook; \\\n return old_hook; \\\n }\n\n\nFT_DEFINE_HOOK_FUNC(ft_installnewstringhook, ft_NewStringHook, ft_newstringhook,\n (lua_State *L, StkId obj, const char *str, size_t len),\n ft_defaultnewstringhook)\n\nFT_DEFINE_HOOK_FUNC(ft_installnewtablehook, ft_NewTableHook, ft_newtablehook,\n (lua_State *L, StkId obj, int b, int c),\n ft_defaultnewtablehook)\n\n\n#undef FT_DEFINE_HOOK_FUNC\n","subject":"Add the definition of the default hook function to the FT_DEFINE_HOOK_FUNCTION macro.","message":"Add the definition of the default hook function to the FT_DEFINE_HOOK_FUNCTION macro.\n","lang":"C","license":"apache-2.0","repos":"snyderek\/floating_temple,snyderek\/floating_temple,snyderek\/floating_temple"} {"commit":"72f86cdd70ccbe468222911d421f064981d34746","old_file":"content\/browser\/renderer_host\/quota_dispatcher_host.h","new_file":"content\/browser\/renderer_host\/quota_dispatcher_host.h","old_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n#define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n\n#include \"base\/basictypes.h\"\n#include \"content\/browser\/browser_message_filter.h\"\n#include \"third_party\/WebKit\/Source\/WebKit\/chromium\/public\/WebStorageQuotaType.h\"\n\nclass GURL;\n\nclass QuotaDispatcherHost : public BrowserMessageFilter {\n public:\n ~QuotaDispatcherHost();\n bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok);\n\n private:\n void OnQueryStorageUsageAndQuota(\n int request_id,\n const GURL& origin_url,\n WebKit::WebStorageQuotaType type);\n void OnRequestStorageQuota(\n int request_id,\n const GURL& origin_url,\n WebKit::WebStorageQuotaType type,\n int64 requested_size);\n};\n\n#endif \/\/ CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n","new_contents":"\/\/ Copyright (c) 2011 The Chromium Authors. All rights reserved.\n\/\/ Use of this source code is governed by a BSD-style license that can be\n\/\/ found in the LICENSE file.\n\n#ifndef CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n#define CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n\n#include \"base\/basictypes.h\"\n#include \"content\/browser\/browser_message_filter.h\"\n#include \"third_party\/WebKit\/Source\/WebKit\/chromium\/public\/WebStorageQuotaType.h\"\n\nclass GURL;\n\nclass QuotaDispatcherHost : public BrowserMessageFilter {\n public:\n ~QuotaDispatcherHost();\n virtual bool OnMessageReceived(const IPC::Message& message,\n bool* message_was_ok);\n\n private:\n void OnQueryStorageUsageAndQuota(\n int request_id,\n const GURL& origin_url,\n WebKit::WebStorageQuotaType type);\n void OnRequestStorageQuota(\n int request_id,\n const GURL& origin_url,\n WebKit::WebStorageQuotaType type,\n int64 requested_size);\n};\n\n#endif \/\/ CONTENT_BROWSER_RENDERER_HOST_QUOTA_DISPATCHER_HOST_H_\n","subject":"Fix clang build that have been broken by 81364.","message":"Fix clang build that have been broken by 81364.\n\nBUG=none\nTEST=green tree\nTBR=jam\n\nReview URL: http:\/\/codereview.chromium.org\/6838008\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@81368 4ff67af0-8c30-449e-8e8b-ad334ec8d88c\n","lang":"C","license":"bsd-3-clause","repos":"wistoch\/meego-app-browser,wistoch\/meego-app-browser,wistoch\/meego-app-browser,wistoch\/meego-app-browser,wistoch\/meego-app-browser,wistoch\/meego-app-browser,wistoch\/meego-app-browser,wistoch\/meego-app-browser,wistoch\/meego-app-browser,wistoch\/meego-app-browser"} {"commit":"e3c439a4decc4c07c3ea2e086ae5a0eea1c084c7","old_file":"src\/kernel\/task\/idesc_table.c","new_file":"src\/kernel\/task\/idesc_table.c","old_contents":"","new_contents":"\/**\n * @file\n *\n * @brief\n *\n * @date 09.11.2013\n * @author Anton Bondarev\n *\/\n\n\nunion idesc_table_entry {\n\tunsigned int flags;\n\tstruct idesc *idesc;\n};\n\nstruct idesc_table {\n\tunion idesc_table_entry idesc_entry[TASKS_RES_QUANTITY];\n\tstruct indexator indexator;\n};\n\nint idesc_table_add(struct idesc *idesc, int cloexec) {\n\tstruct task task;\n\tstruct idesc_table *idesc_table;\n\tint idx;\n\n\ttask = task_self();\n\tidesc_table = &task->idesc_table;\n\n\tidx = index_alloc(&idesc_table->indexator, INDEX_MIN);\n\n\tidesc_table->idesc_entry[idx] = idesc;\n\n\treturn idx;\n}\n\nint idesc_table_del(int idx) {\n\tstruct task task;\n\tstruct idesc_table *idesc_table;\n\n\ttask = task_self();\n\tidesc_table = &task->idesc_table;\n\n\tidesc_table->idesc_entry[idx] = NULL;\n\n\tindex_free(&idesc_table->indexator, idx);\n\n\treturn 0;\n}\n\nstruct idesc *idesc_table_get(int idx) {\n\tstruct task task;\n\tstruct idesc_table *idesc_table;\n\n\ttask = task_self();\n\tidesc_table = &task->idesc_table;\n\n\treturn idesc_table->idesc_entry[idx];\n}\n\nint idesc_table_init(struct idesc_table *idesc_table) {\n\treturn 0;\n}\n","subject":"Add some stubs for idec_table","message":"desc: Add some stubs for idec_table","lang":"C","license":"bsd-2-clause","repos":"gzoom13\/embox,vrxfile\/embox-trik,Kefir0192\/embox,embox\/embox,mike2390\/embox,mike2390\/embox,Kakadu\/embox,Kefir0192\/embox,abusalimov\/embox,gzoom13\/embox,gzoom13\/embox,vrxfile\/embox-trik,Kefir0192\/embox,Kakadu\/embox,vrxfile\/embox-trik,vrxfile\/embox-trik,vrxfile\/embox-trik,mike2390\/embox,abusalimov\/embox,gzoom13\/embox,Kefir0192\/embox,embox\/embox,embox\/embox,mike2390\/embox,abusalimov\/embox,mike2390\/embox,embox\/embox,Kakadu\/embox,Kakadu\/embox,embox\/embox,Kakadu\/embox,vrxfile\/embox-trik,vrxfile\/embox-trik,Kakadu\/embox,gzoom13\/embox,Kefir0192\/embox,mike2390\/embox,gzoom13\/embox,Kakadu\/embox,Kefir0192\/embox,Kefir0192\/embox,abusalimov\/embox,abusalimov\/embox,mike2390\/embox,embox\/embox,gzoom13\/embox,abusalimov\/embox"} {"commit":"2d18d120f8c161bcc9d7b719e9acc293f96b3a6a","old_file":"src\/vm\/instruction-visitor.h","new_file":"src\/vm\/instruction-visitor.h","old_contents":"","new_contents":"#ifndef INSTRUCTION_VISITOR_H_\n#define INSTRUCTION_VISITOR_H_\n\n#include \"vm\/instruction.h\"\n#include \"vm\/instructions.h\"\n\nnamespace grok {\nnamespace vm {\n\nclass InstructionVisitor {\npublic:\n#define DECLARE_VIRTUAL_METHOD(Instr, Class) \\\n virtual void Visit(Class##Instruction *instr) = 0;\nINSTRUCTION_LIST_FOR_EACH(DECLARE_VIRTUAL_METHOD)\n#undef DECLARE_VIRTUAL_METHOD\n};\n\n}\n}\n\n#endif\n","subject":"Add InstructionVisitor class for visitor pattern","message":"Add InstructionVisitor class for visitor pattern\n","lang":"C","license":"apache-2.0","repos":"PrinceDhaliwal\/grok,PrinceDhaliwal\/grok,PrinceDhaliwal\/grok"} {"commit":"0dd1f0b32359949a948c557a2c20f5f735e00c3a","old_file":"generic\/include\/clc\/float\/definitions.h","new_file":"generic\/include\/clc\/float\/definitions.h","old_contents":"#define FLT_DIG \t6\n#define FLT_MANT_DIG \t24\n#define FLT_MAX_10_EXP \t+38\n#define FLT_MAX_EXP \t+128\n#define FLT_MIN_10_EXP \t-37\n#define FLT_MIN_EXP \t-125\n#define FLT_RADIX \t2\n#define FLT_MAX \t0x1.fffffep127f\n#define FLT_MIN \t0x1.0p-126f\n#define FLT_EPSILON \t0x1.0p-23f\n\n#ifdef cl_khr_fp64\n\n#define DBL_DIG \t15\n#define DBL_MANT_DIG \t53\n#define DBL_MAX_10_EXP \t+308\n#define DBL_MAX_EXP \t+1024\n#define DBL_MIN_10_EXP \t-307\n#define DBL_MIN_EXP \t-1021\n#define DBL_MAX \t0x1.fffffffffffffp1023\n#define DBL_MIN \t0x1.0p-1022\n#define DBL_EPSILON \t0x1.0p-52\n\n#endif\n","new_contents":"#define FLT_DIG \t6\n#define FLT_MANT_DIG \t24\n#define FLT_MAX_10_EXP \t+38\n#define FLT_MAX_EXP \t+128\n#define FLT_MIN_10_EXP \t-37\n#define FLT_MIN_EXP \t-125\n#define FLT_RADIX \t2\n#define FLT_MAX \t0x1.fffffep127f\n#define FLT_MIN \t0x1.0p-126f\n#define FLT_EPSILON \t0x1.0p-23f\n\n#define M_PI_F 0x1.921fb6p+1\n\n#ifdef cl_khr_fp64\n\n#define DBL_DIG \t15\n#define DBL_MANT_DIG \t53\n#define DBL_MAX_10_EXP \t+308\n#define DBL_MAX_EXP \t+1024\n#define DBL_MIN_10_EXP \t-307\n#define DBL_MIN_EXP \t-1021\n#define DBL_MAX \t0x1.fffffffffffffp1023\n#define DBL_MIN \t0x1.0p-1022\n#define DBL_EPSILON \t0x1.0p-52\n\n#endif\n","subject":"Add definition for M_PI_F v3","message":"Add definition for M_PI_F v3\n\nv2:\n - Use a hexadecimal constant.\n\nv3:\n - Use a hexadecimal constant in floating-point notation.\n\ngit-svn-id: e7f1ab7c2a259259587475a3e7520e757882f167@204666 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc,llvm-mirror\/libclc"} {"commit":"f90fc43d4d7518e454793a5bb6b6a882e7e01d9a","old_file":"test\/Driver\/offloading-interoperability.c","new_file":"test\/Driver\/offloading-interoperability.c","old_contents":"\/\/ REQUIRES: clang-driver\n\/\/ REQUIRES: powerpc-registered-target\n\/\/ REQUIRES: nvptx-registered-target\n\n\/\/\n\/\/ Verify that CUDA device commands do not get OpenMP flags.\n\/\/\n\/\/ RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp %s 2>&1 \\\n\/\/ RUN: | FileCheck %s --check-prefix NO-OPENMP-FLAGS-FOR-CUDA-DEVICE\n\/\/\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: clang{{.*}}\" \"-cc1\" \"-triple\" \"nvptx64-nvidia-cuda\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NOT: -fopenmp\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ptxas\" \"-m64\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: fatbinary\" \"--cuda\" \"-64\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: clang{{.*}}\" \"-cc1\" \"-triple\" \"powerpc64le--linux-gnu\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: -fopenmp\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ld\" {{.*}}\"-m\" \"elf64lppc\"\n","new_contents":"\/\/ REQUIRES: clang-driver\n\/\/ REQUIRES: powerpc-registered-target\n\/\/ REQUIRES: nvptx-registered-target\n\n\/\/\n\/\/ Verify that CUDA device commands do not get OpenMP flags.\n\/\/\n\/\/ RUN: %clang -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \\\n\/\/ RUN: | FileCheck %s --check-prefix NO-OPENMP-FLAGS-FOR-CUDA-DEVICE\n\/\/\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: clang{{.*}}\" \"-cc1\" \"-triple\" \"nvptx64-nvidia-cuda\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NOT: -fopenmp\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ptxas\" \"-m64\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: fatbinary\" \"--cuda\" \"-64\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: clang{{.*}}\" \"-cc1\" \"-triple\" \"powerpc64le--linux-gnu\"\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE: -fopenmp\n\/\/ NO-OPENMP-FLAGS-FOR-CUDA-DEVICE-NEXT: ld\" {{.*}}\"-m\" \"elf64lppc\"\n","subject":"Make test not fail on hosts where the default omp library is gomp.","message":"Make test not fail on hosts where the default omp library is gomp.\n\nThis is the case on some linuxes, just force libomp so we get the\ndesired results.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@277138 91177308-0d34-0410-b5e6-96231b3b80d8\n","lang":"C","license":"apache-2.0","repos":"llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,apple\/swift-clang,apple\/swift-clang,llvm-mirror\/clang,llvm-mirror\/clang,apple\/swift-clang"} {"commit":"21a1e7a69685d0698eac0cfee6435035e02363d9","old_file":"base\/checks.h","new_file":"base\/checks.h","old_contents":"\/*\n * Copyright 2006 The WebRTC Project Authors. All rights reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n *\/\n\n\/\/ This module contains some basic debugging facilities.\n\/\/ Originally comes from shared\/commandlineflags\/checks.h\n\n#ifndef WEBRTC_BASE_CHECKS_H_\n#define WEBRTC_BASE_CHECKS_H_\n\nnamespace rtc {\n\n\/\/ Prints an error message to stderr and aborts execution.\nvoid Fatal(const char* file, int line, const char* format, ...);\n\n} \/\/ namespace rtc\n\n\/\/ The UNREACHABLE macro is very useful during development.\n#define UNREACHABLE() \\\n rtc::Fatal(__FILE__, __LINE__, \"unreachable code\")\n\n#endif \/\/ WEBRTC_BASE_CHECKS_H_\n","new_contents":"\/*\n * Copyright 2006 The WebRTC Project Authors. All rights reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n *\/\n\n\/\/ This module contains some basic debugging facilities.\n\/\/ Originally comes from shared\/commandlineflags\/checks.h\n\n#ifndef WEBRTC_BASE_CHECKS_H_\n#define WEBRTC_BASE_CHECKS_H_\n\nnamespace rtc {\n\n\/\/ Prints an error message to stderr and aborts execution.\nvoid Fatal(const char* file, int line, const char* format, ...);\n\n} \/\/ namespace rtc\n\n\/\/ Trigger a fatal error (which aborts the process and prints an error\n\/\/ message). FATAL_ERROR_IF may seem a lot like assert, but there's a crucial\n\/\/ difference: it's always \"on\". This means that it can be used to check for\n\/\/ regular errors that could actually happen, not just programming errors that\n\/\/ supposedly can't happen---but triggering a fatal error will kill the process\n\/\/ in an ugly way, so it's not suitable for catching errors that might happen\n\/\/ in production.\n#define FATAL_ERROR(msg) do { rtc::Fatal(__FILE__, __LINE__, msg); } while (0)\n#define FATAL_ERROR_IF(x) do { if (x) FATAL_ERROR(\"check failed\"); } while (0)\n\n\/\/ The UNREACHABLE macro is very useful during development.\n#define UNREACHABLE() FATAL_ERROR(\"unreachable code\")\n\n#endif \/\/ WEBRTC_BASE_CHECKS_H_\n","subject":"Define convenient FATAL_ERROR() and FATAL_ERROR_IF() macros","message":"Define convenient FATAL_ERROR() and FATAL_ERROR_IF() macros\n\nR=henrike@webrtc.org\n\nReview URL: https:\/\/webrtc-codereview.appspot.com\/16079004\n\ngit-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@6701 4adac7df-926f-26a2-2b94-8c16560cd09d\n","lang":"C","license":"bsd-3-clause","repos":"Omegaphora\/external_chromium_org_third_party_webrtc,jgcaaprom\/android_external_chromium_org_third_party_webrtc,android-ia\/platform_external_chromium_org_third_party_webrtc,geekboxzone\/lollipop_external_chromium_org_third_party_webrtc,MIPS\/external-chromium_org-third_party-webrtc,Omegaphora\/external_chromium_org_third_party_webrtc,Omegaphora\/external_chromium_org_third_party_webrtc,MIPS\/external-chromium_org-third_party-webrtc,Omegaphora\/external_chromium_org_third_party_webrtc,MIPS\/external-chromium_org-third_party-webrtc,Omegaphora\/external_chromium_org_third_party_webrtc,jgcaaprom\/android_external_chromium_org_third_party_webrtc,geekboxzone\/lollipop_external_chromium_org_third_party_webrtc,Omegaphora\/external_chromium_org_third_party_webrtc,MIPS\/external-chromium_org-third_party-webrtc,android-ia\/platform_external_chromium_org_third_party_webrtc,geekboxzone\/lollipop_external_chromium_org_third_party_webrtc,android-ia\/platform_external_chromium_org_third_party_webrtc,geekboxzone\/lollipop_external_chromium_org_third_party_webrtc,android-ia\/platform_external_chromium_org_third_party_webrtc,Omegaphora\/external_chromium_org_third_party_webrtc,jgcaaprom\/android_external_chromium_org_third_party_webrtc,jgcaaprom\/android_external_chromium_org_third_party_webrtc,jgcaaprom\/android_external_chromium_org_third_party_webrtc,MIPS\/external-chromium_org-third_party-webrtc,android-ia\/platform_external_chromium_org_third_party_webrtc,geekboxzone\/lollipop_external_chromium_org_third_party_webrtc,geekboxzone\/lollipop_external_chromium_org_third_party_webrtc,android-ia\/platform_external_chromium_org_third_party_webrtc,jgcaaprom\/android_external_chromium_org_third_party_webrtc,jgcaaprom\/android_external_chromium_org_third_party_webrtc,MIPS\/external-chromium_org-third_party-webrtc,Omegaphora\/external_chromium_org_third_party_webrtc,android-ia\/platform_external_chromium_org_third_party_webrtc,MIPS\/external-chromium_org-third_party-webrtc,geekboxzone\/lollipop_external_chromium_org_third_party_webrtc,jgcaaprom\/android_external_chromium_org_third_party_webrtc,android-ia\/platform_external_chromium_org_third_party_webrtc,geekboxzone\/lollipop_external_chromium_org_third_party_webrtc,MIPS\/external-chromium_org-third_party-webrtc"} {"commit":"9bae8c664000ff38f07429fa1726ec61575f2c84","old_file":"tests\/regression\/13-privatized\/17-priv_interval.c","new_file":"tests\/regression\/13-privatized\/17-priv_interval.c","old_contents":"\/\/ PARAM: --set ana.int.interval true --set solver \"'new'\"\n#include\n#include\n\nint glob1 = 5;\npthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;\npthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER;\n\nvoid *t_fun(void *arg) {\n int t;\n pthread_mutex_lock(&mutex1);\n t = glob1;\n assert(t == 5);\n glob1 = -10;\n assert(glob1 == -10);\n glob1 = t;\n pthread_mutex_unlock(&mutex1);\n return NULL;\n}\n\nint main(void) {\n pthread_t id;\n assert(glob1 == 5);\n pthread_create(&id, NULL, t_fun, NULL);\n pthread_mutex_lock(&mutex1);\n glob1++; \n assert(glob1 == 6);\n glob1--;\n pthread_mutex_unlock(&mutex1);\n pthread_join (id, NULL);\n return 0;\n}\n","new_contents":"\/\/ PARAM: --set ana.int.interval true --set solver \"'td3'\"\n#include\n#include\n\nint glob1 = 5;\npthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;\npthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER;\n\nvoid *t_fun(void *arg) {\n int t;\n pthread_mutex_lock(&mutex1);\n t = glob1;\n assert(t == 5);\n glob1 = -10;\n assert(glob1 == -10);\n glob1 = t;\n pthread_mutex_unlock(&mutex1);\n return NULL;\n}\n\nint main(void) {\n pthread_t id;\n assert(glob1 == 5);\n pthread_create(&id, NULL, t_fun, NULL);\n pthread_mutex_lock(&mutex1);\n glob1++; \n assert(glob1 == 6);\n glob1--;\n pthread_mutex_unlock(&mutex1);\n pthread_join (id, NULL);\n return 0;\n}\n","subject":"Switch solver for 13-privatized\/17-priv_internal.c to td3 to make test case pass","message":"Switch solver for 13-privatized\/17-priv_internal.c to td3 to make test case pass\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"7545ba6f82924d4523f8f8a2baf2e517a750265d","old_file":"arch\/powerpc\/include\/asm\/sparsemem.h","new_file":"arch\/powerpc\/include\/asm\/sparsemem.h","old_contents":"#ifndef _ASM_POWERPC_SPARSEMEM_H\n#define _ASM_POWERPC_SPARSEMEM_H 1\n#ifdef __KERNEL__\n\n#ifdef CONFIG_SPARSEMEM\n\/*\n * SECTION_SIZE_BITS\t\t2^N: how big each section will be\n * MAX_PHYSADDR_BITS\t\t2^N: how much physical address space we have\n * MAX_PHYSMEM_BITS\t\t2^N: how much memory we can have in that space\n *\/\n#define SECTION_SIZE_BITS 24\n\n#define MAX_PHYSADDR_BITS 44\n#define MAX_PHYSMEM_BITS 44\n\n#endif \/* CONFIG_SPARSEMEM *\/\n\n#ifdef CONFIG_MEMORY_HOTPLUG\nextern void create_section_mapping(unsigned long start, unsigned long end);\nextern int remove_section_mapping(unsigned long start, unsigned long end);\n#ifdef CONFIG_NUMA\nextern int hot_add_scn_to_nid(unsigned long scn_addr);\n#else\nstatic inline int hot_add_scn_to_nid(unsigned long scn_addr)\n{\n\treturn 0;\n}\n#endif \/* CONFIG_NUMA *\/\n#endif \/* CONFIG_MEMORY_HOTPLUG *\/\n\n#endif \/* __KERNEL__ *\/\n#endif \/* _ASM_POWERPC_SPARSEMEM_H *\/\n","new_contents":"#ifndef _ASM_POWERPC_SPARSEMEM_H\n#define _ASM_POWERPC_SPARSEMEM_H 1\n#ifdef __KERNEL__\n\n#ifdef CONFIG_SPARSEMEM\n\/*\n * SECTION_SIZE_BITS\t\t2^N: how big each section will be\n * MAX_PHYSADDR_BITS\t\t2^N: how much physical address space we have\n * MAX_PHYSMEM_BITS\t\t2^N: how much memory we can have in that space\n *\/\n#define SECTION_SIZE_BITS 28\n\n#define MAX_PHYSADDR_BITS 44\n#define MAX_PHYSMEM_BITS 44\n\n#endif \/* CONFIG_SPARSEMEM *\/\n\n#ifdef CONFIG_MEMORY_HOTPLUG\nextern void create_section_mapping(unsigned long start, unsigned long end);\nextern int remove_section_mapping(unsigned long start, unsigned long end);\n#ifdef CONFIG_NUMA\nextern int hot_add_scn_to_nid(unsigned long scn_addr);\n#else\nstatic inline int hot_add_scn_to_nid(unsigned long scn_addr)\n{\n\treturn 0;\n}\n#endif \/* CONFIG_NUMA *\/\n#endif \/* CONFIG_MEMORY_HOTPLUG *\/\n\n#endif \/* __KERNEL__ *\/\n#endif \/* _ASM_POWERPC_SPARSEMEM_H *\/\n","subject":"Bump SECTION_SIZE_BITS from 16MB to 256MB","message":"powerpc\/mm: Bump SECTION_SIZE_BITS from 16MB to 256MB\n\nThe current setting for SECTION_SIZE_BITS is quite small compared to\neveryone else:\n\narch\/powerpc\/include\/asm\/sparsemem.h:#define SECTION_SIZE_BITS 24\n\narch\/sparc\/include\/asm\/sparsemem.h:#define SECTION_SIZE_BITS 30\narch\/ia64\/include\/asm\/sparsemem.h:#define SECTION_SIZE_BITS (30)\narch\/s390\/include\/asm\/sparsemem.h:#define SECTION_SIZE_BITS 28\narch\/x86\/include\/asm\/sparsemem.h:# define SECTION_SIZE_BITS 27\n\nAnd it has proven to be an issue during boot on very large machines.\nIf hotplug memory is enabled, drivers\/base\/memory.c does this:\n\n for (i = 0; i < NR_MEM_SECTIONS; i++) {\n if (!present_section_nr(i))\n continue;\n err = add_memory_block(0, __nr_to_section(i), MEM_ONLINE,\n 0, BOOT);\n if (!ret)\n ret = err;\n }\n\nWhich creates a sysfs directory for every 16MB of memory. As a result\nI'm seeing up to 30 minutes spent here during boot:\n\nc000000000248ee0 .__sysfs_add_one+0x28\/0x128\nc0000000002492a8 .sysfs_add_one+0x38\/0x188\nc000000000249c88 .create_dir+0x70\/0x138\nc000000000249d98 .sysfs_create_dir+0x48\/0x78\nc00000000032bad8 .kobject_add_internal+0x140\/0x308\nc00000000032beb4 .kobject_init_and_add+0x4c\/0x68\nc00000000046c2c0 .sysdev_register+0xa0\/0x220\nc00000000047b1dc .add_memory_block+0x124\/0x1e8\nc0000000008d1f28 .memory_dev_init+0xf4\/0x168\nc0000000008d1b64 .driver_init+0x50\/0x64\nc000000000890378 .do_basic_setup+0x40\/0xd4\n\nI assume there are some O(n^2) issues in sysfs as we add all the memory\nnodes. Bumping SECTION_SIZE_BITS to 256 MB drops the time to about 10\nseconds and results in a much smaller \/sys.\n\nSigned-off-by: Anton Blanchard <14deb5e5e417133e888bf47bb6a3555c9bb7d81c@samba.org>\nSigned-off-by: Benjamin Herrenschmidt \n","lang":"C","license":"apache-2.0","repos":"TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas,KristFoundation\/Programs,TeamVee-Kanas\/android_kernel_samsung_kanas"} {"commit":"50c714cde2c67b4c326cbec21d9383620ffbd32d","old_file":"tensorflow\/core\/platform\/default\/integral_types.h","new_file":"tensorflow\/core\/platform\/default\/integral_types.h","old_contents":"\/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n==============================================================================*\/\n\n#ifndef TENSORFLOW_CORE_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_\n#define TENSORFLOW_CORE_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_\n\n\/\/ IWYU pragma: private, include \"third_party\/tensorflow\/core\/platform\/types.h\"\n\/\/ IWYU pragma: friend third_party\/tensorflow\/core\/platform\/types.h\n\nnamespace tensorflow {\n\ntypedef signed char int8;\ntypedef short int16;\ntypedef int int32;\ntypedef long long int64;\n\ntypedef unsigned char uint8;\ntypedef unsigned short uint16;\ntypedef unsigned int uint32;\ntypedef unsigned long long uint64;\n\n} \/\/ namespace tensorflow\n\n#endif \/\/ TENSORFLOW_CORE_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_\n","new_contents":"\/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n==============================================================================*\/\n\n#ifndef TENSORFLOW_CORE_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_\n#define TENSORFLOW_CORE_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_\n\n#include \n\n\/\/ IWYU pragma: private, include \"third_party\/tensorflow\/core\/platform\/types.h\"\n\/\/ IWYU pragma: friend third_party\/tensorflow\/core\/platform\/types.h\n\nnamespace tensorflow {\n\ntypedef signed char int8;\ntypedef short int16;\ntypedef int int32;\ntypedef std::int64_t int64;\n\ntypedef unsigned char uint8;\ntypedef unsigned short uint16;\ntypedef unsigned int uint32;\ntypedef std::uint64_t uint64;\n\n} \/\/ namespace tensorflow\n\n#endif \/\/ TENSORFLOW_CORE_PLATFORM_DEFAULT_INTEGRAL_TYPES_H_\n","subject":"Change definition of tensorflow::int64 to std::int64_t.","message":"Change definition of tensorflow::int64 to std::int64_t.\n\nThere is no reason for TensorFlow to have its own special non-standard `int64` type any more; we can use the standard one instead.\n\nPiperOrigin-RevId: 351674712\nChange-Id: I82c1d67c07436a3f158a029a3a657fef5a05060e\n","lang":"C","license":"apache-2.0","repos":"karllessard\/tensorflow,tensorflow\/tensorflow,gautam1858\/tensorflow,petewarden\/tensorflow,sarvex\/tensorflow,yongtang\/tensorflow,yongtang\/tensorflow,Intel-tensorflow\/tensorflow,sarvex\/tensorflow,frreiss\/tensorflow-fred,karllessard\/tensorflow,yongtang\/tensorflow,Intel-Corporation\/tensorflow,karllessard\/tensorflow,tensorflow\/tensorflow,frreiss\/tensorflow-fred,annarev\/tensorflow,tensorflow\/tensorflow-pywrap_saved_model,annarev\/tensorflow,Intel-tensorflow\/tensorflow,paolodedios\/tensorflow,paolodedios\/tensorflow,annarev\/tensorflow,tensorflow\/tensorflow-pywrap_tf_optimizer,frreiss\/tensorflow-fred,annarev\/tensorflow,tensorflow\/tensorflow-pywrap_tf_optimizer,frreiss\/tensorflow-fred,tensorflow\/tensorflow-pywrap_tf_optimizer,karllessard\/tensorflow,petewarden\/tensorflow,frreiss\/tensorflow-fred,frreiss\/tensorflow-fred,tensorflow\/tensorflow,annarev\/tensorflow,karllessard\/tensorflow,Intel-Corporation\/tensorflow,annarev\/tensorflow,yongtang\/tensorflow,tensorflow\/tensorflow-experimental_link_static_libraries_once,frreiss\/tensorflow-fred,yongtang\/tensorflow,tensorflow\/tensorflow,tensorflow\/tensorflow-pywrap_tf_optimizer,petewarden\/tensorflow,paolodedios\/tensorflow,frreiss\/tensorflow-fred,tensorflow\/tensorflow-pywrap_saved_model,tensorflow\/tensorflow-experimental_link_static_libraries_once,tensorflow\/tensorflow-pywrap_saved_model,tensorflow\/tensorflow-experimental_link_static_libraries_once,Intel-Corporation\/tensorflow,Intel-tensorflow\/tensorflow,paolodedios\/tensorflow,paolodedios\/tensorflow,tensorflow\/tensorflow-experimental_link_static_libraries_once,tensorflow\/tensorflow-pywrap_tf_optimizer,Intel-Corporation\/tensorflow,yongtang\/tensorflow,tensorflow\/tensorflow,annarev\/tensorflow,petewarden\/tensorflow,annarev\/tensorflow,tensorflow\/tensorflow-pywrap_tf_optimizer,petewarden\/tensorflow,Intel-Corporation\/tensorflow,tensorflow\/tensorflow-experimental_link_static_libraries_once,sarvex\/tensorflow,gautam1858\/tensorflow,tensorflow\/tensorflow-pywrap_tf_optimizer,Intel-Corporation\/tensorflow,Intel-tensorflow\/tensorflow,tensorflow\/tensorflow-experimental_link_static_libraries_once,petewarden\/tensorflow,annarev\/tensorflow,gautam1858\/tensorflow,yongtang\/tensorflow,tensorflow\/tensorflow-pywrap_saved_model,Intel-tensorflow\/tensorflow,Intel-tensorflow\/tensorflow,karllessard\/tensorflow,tensorflow\/tensorflow-pywrap_saved_model,sarvex\/tensorflow,tensorflow\/tensorflow-experimental_link_static_libraries_once,tensorflow\/tensorflow-experimental_link_static_libraries_once,yongtang\/tensorflow,Intel-tensorflow\/tensorflow,karllessard\/tensorflow,gautam1858\/tensorflow,sarvex\/tensorflow,sarvex\/tensorflow,gautam1858\/tensorflow,gautam1858\/tensorflow,annarev\/tensorflow,paolodedios\/tensorflow,tensorflow\/tensorflow,tensorflow\/tensorflow,paolodedios\/tensorflow,tensorflow\/tensorflow-pywrap_tf_optimizer,petewarden\/tensorflow,gautam1858\/tensorflow,tensorflow\/tensorflow-pywrap_saved_model,frreiss\/tensorflow-fred,tensorflow\/tensorflow,sarvex\/tensorflow,frreiss\/tensorflow-fred,gautam1858\/tensorflow,gautam1858\/tensorflow,tensorflow\/tensorflow-pywrap_saved_model,petewarden\/tensorflow,paolodedios\/tensorflow,Intel-tensorflow\/tensorflow,sarvex\/tensorflow,karllessard\/tensorflow,Intel-Corporation\/tensorflow,annarev\/tensorflow,karllessard\/tensorflow,yongtang\/tensorflow,tensorflow\/tensorflow-pywrap_saved_model,Intel-tensorflow\/tensorflow,karllessard\/tensorflow,tensorflow\/tensorflow-pywrap_saved_model,tensorflow\/tensorflow-pywrap_saved_model,gautam1858\/tensorflow,gautam1858\/tensorflow,Intel-tensorflow\/tensorflow,frreiss\/tensorflow-fred,tensorflow\/tensorflow,yongtang\/tensorflow,tensorflow\/tensorflow-pywrap_tf_optimizer,petewarden\/tensorflow,tensorflow\/tensorflow-experimental_link_static_libraries_once,petewarden\/tensorflow,tensorflow\/tensorflow,paolodedios\/tensorflow,tensorflow\/tensorflow-pywrap_tf_optimizer,petewarden\/tensorflow,frreiss\/tensorflow-fred,gautam1858\/tensorflow,tensorflow\/tensorflow,tensorflow\/tensorflow-pywrap_saved_model,Intel-Corporation\/tensorflow,tensorflow\/tensorflow-pywrap_tf_optimizer,yongtang\/tensorflow,petewarden\/tensorflow,paolodedios\/tensorflow,tensorflow\/tensorflow-experimental_link_static_libraries_once,karllessard\/tensorflow,Intel-tensorflow\/tensorflow,tensorflow\/tensorflow-experimental_link_static_libraries_once,paolodedios\/tensorflow"} {"commit":"97369c4ccf54315091fbcfb5909e97768d54cfd0","old_file":"mudlib\/mud\/home\/Verb\/sys\/verb\/ulario\/wiz\/ooc\/blist.c","new_file":"mudlib\/mud\/home\/Verb\/sys\/verb\/ulario\/wiz\/ooc\/blist.c","old_contents":"","new_contents":"\/*\n * This file is part of Kotaka, a mud library for DGD\n * http:\/\/github.com\/shentino\/kotaka\n *\n * Copyright (C) 2012, 2013, 2014 Raymond Jennings\n *\n * This program is free software: you can redistribute it and\/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\/\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\ninherit LIB_VERB;\n\nstring *query_parse_methods()\n{\n\treturn ({ \"raw\" });\n}\n\nint compare(string a, string b)\n{\n\tint na, nb;\n\n\tsscanf(a, \"%s#%d\", a, na);\n\tsscanf(b, \"%s#%d\", b, nb);\n\n\tif (na > nb) {\n\t\treturn 1;\n\t}\n\tif (na < nb) {\n\t\treturn -1;\n\t}\n\treturn 0;\n}\n\nvoid printlist(string path)\n{\n\tmixed st;\n\tobject cinfo;\n\tobject obj;\n\n\tst = status(path);\n\n\tif (!st) {\n\t\tsend_out(\"No such object.\\n\");\n\t\treturn;\n\t}\n\n\tcinfo = CLONED->query_clone_info(st[O_INDEX]);\n\n\tif (!cinfo) {\n\t\tsend_out(\"No clone info for object.\\n\");\n\t\treturn;\n\t}\n\n\tobj = cinfo->query_first_clone();\n\n\tdo {\n\t\tsend_out(STRINGD->mixed_sprint(obj) + \", with access grants \" + STRINGD->mixed_sprint(obj->query_grants()) + \"\\n\");\n\n\t\tobj = obj->query_next_clone();\n\t} while (obj != cinfo->query_first_clone());\n}\n\nvoid main(object actor, mapping roles)\n{\n\tif (query_user()->query_class() < 2) {\n\t\tsend_out(\"You do not have sufficient access rights to do a clone check.\\n\");\n\t\treturn;\n\t}\n\n\tprintlist(\"~Bigstruct\/obj\/array\/root\");\n\tprintlist(\"~Bigstruct\/obj\/deque\/root\");\n\tprintlist(\"~Bigstruct\/obj\/map\/root\");\n}\n","subject":"Add a command to check bigstruct owners, used to check for leaks","message":"Add a command to check bigstruct owners, used to check for leaks\n","lang":"C","license":"agpl-3.0","repos":"shentino\/kotaka,shentino\/kotaka,shentino\/kotaka"} {"commit":"505b66949e488060daf82413a399b328d05b4ebc","old_file":"tests\/regression\/46-apron2\/24-pipeline-no-threadflag.c","new_file":"tests\/regression\/46-apron2\/24-pipeline-no-threadflag.c","old_contents":"","new_contents":"\/\/ SKIP PARAM: --set ana.activated[+] apron --set ana.activated[-] threadflag\n\/\/ Minimized from sv-benchmarks\/c\/systemc\/pipeline.cil-1.c\n#include \n\nint main_clk_pos_edge;\nint main_in1_req_up;\n\nint main()\n{\n \/\/ main_clk_pos_edge = 2; \/\/ TODO: uncomment to unskip apron test\n if (main_in1_req_up == 1) \/\/ TODO: both branches are dead\n assert(0); \/\/ TODO: uncomment to unskip apron test, FAIL (unreachable)\n else\n assert(1); \/\/ reachable\n return (0);\n}\n","subject":"Add minimized testcase from both apron branches dead without threadflag","message":"Add minimized testcase from both apron branches dead without threadflag\n","lang":"C","license":"mit","repos":"goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer,goblint\/analyzer"} {"commit":"bc97f851842b313acf04e099fc95f94676a05894","old_file":"TRVSDictionaryWithCaseInsensitivity\/TRVSDictionaryWithCaseInsensitivity.h","new_file":"TRVSDictionaryWithCaseInsensitivity\/TRVSDictionaryWithCaseInsensitivity.h","old_contents":"\/\/\n\/\/ TRVSDictionaryWithCaseInsensitivity.h\n\/\/ TRVSDictionaryWithCaseInsensitivity\n\/\/\n\/\/ Created by Travis Jeffery on 7\/24\/14.\n\/\/ Copyright (c) 2014 Travis Jeffery. All rights reserved.\n\/\/\n\n#import \n\n\/\/! Project version number for TRVSDictionaryWithCaseInsensitivity.\nFOUNDATION_EXPORT double TRVSDictionaryWithCaseInsensitivityVersionNumber;\n\n\/\/! Project version string for TRVSDictionaryWithCaseInsensitivity.\nFOUNDATION_EXPORT const unsigned char TRVSDictionaryWithCaseInsensitivityVersionString[];\n\n\/\/ In this header, you should import all the public headers of your framework using statements like #import \n\n@interface TRVSDictionaryWithCaseInsensitivity : NSDictionary\n\n@end\n\n","new_contents":"\/\/\n\/\/ TRVSDictionaryWithCaseInsensitivity.h\n\/\/ TRVSDictionaryWithCaseInsensitivity\n\/\/\n\/\/ Created by Travis Jeffery on 7\/24\/14.\n\/\/ Copyright (c) 2014 Travis Jeffery. All rights reserved.\n\/\/\n\n#import \n\n\/\/! Project version number for TRVSDictionaryWithCaseInsensitivity.\nFOUNDATION_EXPORT double TRVSDictionaryWithCaseInsensitivityVersionNumber;\n\n\/\/! Project version string for TRVSDictionaryWithCaseInsensitivity.\nFOUNDATION_EXPORT const unsigned char TRVSDictionaryWithCaseInsensitivityVersionString[];\n\n\/\/ In this header, you should import all the public headers of your framework using statements like #import \n\n@interface TRVSDictionaryWithCaseInsensitivity : NSDictionary\n\n@end\n\n","subject":"Fix import of foundation - no need for uikit","message":"Fix import of foundation - no need for uikit\n","lang":"C","license":"mit","repos":"travisjeffery\/TRVSDictionaryWithCaseInsensitivity"} {"commit":"7f2565af8a98c0dc8f3c0bcd3f92098e669208f1","old_file":"SmartDeviceLink\/SDLImageField+ScreenManagerExtensions.h","new_file":"SmartDeviceLink\/SDLImageField+ScreenManagerExtensions.h","old_contents":"\/\/\n\/\/ SDLImageField+ScreenManagerExtensions.h\n\/\/ SmartDeviceLink\n\/\/\n\/\/ Created by Joel Fischer on 5\/20\/20.\n\/\/ Copyright © 2020 smartdevicelink. All rights reserved.\n\/\/\n\n#import \n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SDLImageField (ScreenManagerExtensions)\n\n+ (NSArray *)allImageFields;\n\n@end\n\nNS_ASSUME_NONNULL_END\n","new_contents":"\/\/\n\/\/ SDLImageField+ScreenManagerExtensions.h\n\/\/ SmartDeviceLink\n\/\/\n\/\/ Created by Joel Fischer on 5\/20\/20.\n\/\/ Copyright © 2020 smartdevicelink. All rights reserved.\n\/\/\n\n#import \"SDLImageField.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface SDLImageField (ScreenManagerExtensions)\n\n+ (NSArray *)allImageFields;\n\n@end\n\nNS_ASSUME_NONNULL_END\n","subject":"Fix failed import in podspec","message":"Fix failed import in podspec\n","lang":"C","license":"bsd-3-clause","repos":"smartdevicelink\/sdl_ios,smartdevicelink\/sdl_ios,smartdevicelink\/sdl_ios,smartdevicelink\/sdl_ios,smartdevicelink\/sdl_ios"} {"commit":"6a70d7a87c3b684caf67cbccb56753db807fb005","old_file":"ext\/cap2\/cap2.c","new_file":"ext\/cap2\/cap2.c","old_contents":"#include \n#include \n#include \n\nstatic VALUE cap2_getpcaps(VALUE self, VALUE pid) {\n cap_t cap_d;\n ssize_t length;\n char *caps;\n VALUE result;\n\n Check_Type(pid, T_FIXNUM);\n\n cap_d = cap_get_pid(NUM2INT(pid));\n\n if (cap_d == NULL) {\n rb_raise(\n rb_eRuntimeError,\n \"Failed to get cap's for proccess %d: (%s)\\n\",\n NUM2INT(pid), strerror(errno)\n );\n } else {\n caps = cap_to_text(cap_d, &length);\n result = rb_str_new(caps, length);\n cap_free(caps);\n cap_free(cap_d);\n }\n\n return result;\n}\n\nvoid Init_cap2(void) {\n VALUE rb_mCap2;\n\n rb_mCap2 = rb_define_module(\"Cap2\");\n\n rb_define_module_function(rb_mCap2, \"getpcaps\", cap2_getpcaps, 1);\n}\n","new_contents":"#include \n#include \n#include \n\nstatic VALUE cap2_getpcaps(VALUE self, VALUE pid) {\n cap_t cap_d;\n ssize_t length;\n char *caps;\n VALUE result;\n\n Check_Type(pid, T_FIXNUM);\n\n cap_d = cap_get_pid(FIX2INT(pid));\n\n if (cap_d == NULL) {\n rb_raise(\n rb_eRuntimeError,\n \"Failed to get cap's for proccess %d: (%s)\\n\",\n FIX2INT(pid), strerror(errno)\n );\n } else {\n caps = cap_to_text(cap_d, &length);\n result = rb_str_new(caps, length);\n cap_free(caps);\n cap_free(cap_d);\n }\n\n return result;\n}\n\nvoid Init_cap2(void) {\n VALUE rb_mCap2;\n\n rb_mCap2 = rb_define_module(\"Cap2\");\n\n rb_define_module_function(rb_mCap2, \"getpcaps\", cap2_getpcaps, 1);\n}\n","subject":"Use FIX2INT rather than NUM2INT in Cap2.getpcaps","message":"Use FIX2INT rather than NUM2INT in Cap2.getpcaps\n","lang":"C","license":"mit","repos":"lmars\/cap2,lmars\/cap2"} {"commit":"87a45b118a9b0c723fb0102842b47bf754e57ebf","old_file":"include\/scratch\/bits\/utility\/nth-t.h","new_file":"include\/scratch\/bits\/utility\/nth-t.h","old_contents":"","new_contents":"#pragma once\n\n#include \n\nnamespace scratch {\n\ntemplate struct nth : nth {};\ntemplate struct nth<0, T, Rest...> { using type = T; };\n\ntemplate using nth_t = typename nth::type;\n\n} \/\/ namespace scratch\n","subject":"Add a template type alias `scratch::nth_t` for the nth element of a pack.","message":"Add a template type alias `scratch::nth_t` for the nth element of a pack.\n\nThe equivalent for (perfectly forwarded) values is basically\n\n std::get(std::forward_as_tuple(std::forward(vs)...))\n\nbut since I haven't implemented `std::tuple` yet, I'm passing on that one.\n","lang":"C","license":"mit","repos":"Quuxplusone\/from-scratch,Quuxplusone\/from-scratch,Quuxplusone\/from-scratch"} {"commit":"6e2bee2717a640046dd323972d9c7238d8184797","old_file":"include\/ccspec\/core\/example_group.h","new_file":"include\/ccspec\/core\/example_group.h","old_contents":"#ifndef CCSPEC_CORE_EXAMPLE_GROUP_H_\n#define CCSPEC_CORE_EXAMPLE_GROUP_H_\n\n#include \n#include \n#include \n#include \n\nnamespace ccspec {\nnamespace core {\n\nclass ExampleGroup;\n\ntypedef ExampleGroup* Creator(std::string desc, std::function spec);\n\nclass ExampleGroup {\n public:\n virtual ~ExampleGroup();\n\n void addChild(ExampleGroup*);\n\n protected:\n ExampleGroup(std::string desc);\n\n private:\n std::string desc_;\n std::list children_;\n\n friend Creator describe;\n friend Creator context;\n};\n\nextern std::stack groups_being_defined;\n\nCreator describe;\nCreator context;\n\n} \/\/ namespace core\n} \/\/ namespace ccspec\n\n#endif \/\/ CCSPEC_CORE_EXAMPLE_GROUP_H_\n","new_contents":"#ifndef CCSPEC_CORE_EXAMPLE_GROUP_H_\n#define CCSPEC_CORE_EXAMPLE_GROUP_H_\n\n#include \n#include \n#include \n#include \n\nnamespace ccspec {\nnamespace core {\n\nclass ExampleGroup;\n\ntypedef ExampleGroup* Creator(std::string desc, std::function spec);\n\nextern std::stack groups_being_defined;\n\nclass ExampleGroup {\n public:\n virtual ~ExampleGroup();\n\n void addChild(ExampleGroup*);\n\n protected:\n ExampleGroup(std::string desc);\n\n private:\n std::string desc_;\n std::list children_;\n\n friend Creator describe;\n friend Creator context;\n};\n\nCreator describe;\nCreator context;\n\n} \/\/ namespace core\n} \/\/ namespace ccspec\n\n#endif \/\/ CCSPEC_CORE_EXAMPLE_GROUP_H_\n","subject":"Move global variable declaration for consistency","message":"Move global variable declaration for consistency\n","lang":"C","license":"mit","repos":"zhangsu\/ccspec,tempbottle\/ccspec,michaelachrisco\/ccspec,zhangsu\/ccspec,michaelachrisco\/ccspec,tempbottle\/ccspec,michaelachrisco\/ccspec,tempbottle\/ccspec,zhangsu\/ccspec"} {"commit":"a6c7d872c26713d43f0152ce23abf4c6eccfc609","old_file":"grantlee_core_library\/filterexpression.h","new_file":"grantlee_core_library\/filterexpression.h","old_contents":"\/*\n Copyright (c) 2009 Stephen Kelly \n*\/\n\n#ifndef FILTER_H\n#define FILTER_H\n\n#include \"variable.h\"\n\n#include \"grantlee_export.h\"\n\nnamespace Grantlee\n{\nclass Parser;\n}\n\nclass Token;\n\nnamespace Grantlee\n{\n\nclass GRANTLEE_EXPORT FilterExpression\n{\npublic:\n enum Reversed\n {\n IsNotReversed,\n IsReversed\n };\n\n FilterExpression();\n FilterExpression(const QString &varString, Grantlee::Parser *parser = 0);\n\n int error();\n\n\/\/ QList > filters();\n Variable variable();\n\n QVariant resolve(Context *c);\n\n bool isTrue(Context *c);\n\n QVariantList toList(Context *c);\n\nprivate:\n Variable m_variable;\n int m_error;\n\n};\n\n}\n\n#endif\n","new_contents":"\/*\n Copyright (c) 2009 Stephen Kelly \n*\/\n\n#ifndef FILTEREXPRESSION_H\n#define FILTEREXPRESSION_H\n\n#include \"variable.h\"\n\n#include \"grantlee_export.h\"\n\nnamespace Grantlee\n{\nclass Parser;\n}\n\nclass Token;\n\nnamespace Grantlee\n{\n\nclass GRANTLEE_EXPORT FilterExpression\n{\npublic:\n enum Reversed\n {\n IsNotReversed,\n IsReversed\n };\n\n FilterExpression();\n FilterExpression(const QString &varString, Grantlee::Parser *parser = 0);\n\n int error();\n\n\/\/ QList > filters();\n Variable variable();\n\n QVariant resolve(Context *c);\n\n bool isTrue(Context *c);\n\n QVariantList toList(Context *c);\n\nprivate:\n Variable m_variable;\n int m_error;\n\n};\n\n}\n\n#endif\n","subject":"Use a correct include guard","message":"Use a correct include guard\n","lang":"C","license":"lgpl-2.1","repos":"simonwagner\/grantlee,simonwagner\/grantlee,cutelyst\/grantlee,simonwagner\/grantlee,simonwagner\/grantlee,cutelyst\/grantlee,cutelyst\/grantlee,simonwagner\/grantlee,simonwagner\/grantlee,cutelyst\/grantlee,cutelyst\/grantlee"} {"commit":"baa17436b073514a3739fad3b487c0bee90afb5d","old_file":"include\/corsika\/particle\/VParticleProperties.h","new_file":"include\/corsika\/particle\/VParticleProperties.h","old_contents":"\/**\n \\file\n Particle property interface\n\n \\author Lukas Nellen\n \\version $Id$\n \\date 03 Apr 2004\n*\/\n\n#pragma once\n#include \n\nnamespace corsika\n{\n\n \/**\n \\class VParticleProperties VParticleProperties.h \"corsika\/VParticleProperties.h\"\n\n \\brief Internal interface for particle properties. This is\n intended to be implemented for elementary particles and nuclei.\n\n \\note This is an internal interface and not available for user code.\n\n \\author Lukas Nellen\n \\date 03 Apr 2004\n \\ingroup particles\n *\/\n\n class VParticleProperties {\n\n public:\n virtual ~VParticleProperties() { }\n\n \/\/\/ Get particle type (using PDG particle codes)\n virtual int GetType() const = 0;\n\n \/\/\/ Get particle name\n virtual std::string GetName() const = 0;\n\n \/\/\/ Get particle mass (in Auger units)\n virtual double GetMass() const = 0;\n\n };\n\n\n typedef std::shared_ptr ParticlePropertiesPtr;\n\n\n}\n","new_contents":"\/**\n \\file\n Particle property interface\n\n \\author Lukas Nellen\n \\version $Id$\n \\date 03 Apr 2004\n*\/\n\n#pragma once\n#include \n#include \n\nnamespace corsika\n{\n\n \/**\n \\class VParticleProperties VParticleProperties.h \"corsika\/VParticleProperties.h\"\n\n \\brief Internal interface for particle properties. This is\n intended to be implemented for elementary particles and nuclei.\n\n \\note This is an internal interface and not available for user code.\n\n \\author Lukas Nellen\n \\date 03 Apr 2004\n \\ingroup particles\n *\/\n\n class VParticleProperties {\n\n public:\n virtual ~VParticleProperties() { }\n\n \/\/\/ Get particle type (using PDG particle codes)\n virtual int GetType() const = 0;\n\n \/\/\/ Get particle name\n virtual std::string GetName() const = 0;\n\n \/\/\/ Get particle mass (in Auger units)\n virtual double GetMass() const = 0;\n\n };\n\n\n typedef std::shared_ptr ParticlePropertiesPtr;\n\n\n}\n","subject":"Add one more memory include","message":"Add one more memory include\n","lang":"C","license":"bsd-2-clause","repos":"javierggt\/corsika_reader,javierggt\/corsika_reader,javierggt\/corsika_reader"} {"commit":"e1c47c5248d8c0d0bbb2462b73cd7ee031ef85d3","old_file":"src\/engine\/core\/include\/halley\/core\/entry\/entry_point.h","new_file":"src\/engine\/core\/include\/halley\/core\/entry\/entry_point.h","old_contents":"#pragma once\n\n#include \n#include \n#include \"halley\/core\/game\/main_loop.h\"\n\n#ifdef _WIN32\n#define HALLEY_STDCALL __stdcall\n#else\n#define HALLEY_STDCALL\n#endif\n\nnamespace Halley\n{\n\tclass Game;\n\tclass Core;\n\tclass HalleyStatics;\n\n\tconstexpr static uint32_t HALLEY_DLL_API_VERSION = 23;\n\t\n\tclass IHalleyEntryPoint\n\t{\n\tpublic:\n\t\tvirtual ~IHalleyEntryPoint() = default;\n\n\t\tvoid initSharedStatics(const HalleyStatics& parent);\n\t\tvirtual uint32_t getApiVersion() { return HALLEY_DLL_API_VERSION; }\n\t\t\n\t\tvirtual std::unique_ptr createCore(const std::vector& args) = 0;\n\t\tvirtual std::unique_ptr createGame() = 0;\n\t};\n\n\ttemplate \n\tclass HalleyEntryPoint final : public IHalleyEntryPoint\n\t{\n\tpublic:\n\t\tstd::unique_ptr createGame() override\n\t\t{\n\t\t\treturn std::make_unique();\n\t\t}\n\n\t\tstd::unique_ptr createCore(const std::vector& args) override\n\t\t{\n\t\t\tExpects(args.size() >= 1);\n\t\t\tExpects(args.size() < 1000);\n\t\t\treturn std::make_unique(std::make_unique(), args);\n\t\t}\n\t};\n}\n","new_contents":"#pragma once\n\n#include \n#include \n#include \"halley\/core\/game\/main_loop.h\"\n\n#ifdef _WIN32\n#define HALLEY_STDCALL __stdcall\n#else\n#define HALLEY_STDCALL\n#endif\n\nnamespace Halley\n{\n\tclass Game;\n\tclass Core;\n\tclass HalleyStatics;\n\n\tconstexpr static uint32_t HALLEY_DLL_API_VERSION = 24;\n\t\n\tclass IHalleyEntryPoint\n\t{\n\tpublic:\n\t\tvirtual ~IHalleyEntryPoint() = default;\n\n\t\tvirtual uint32_t getApiVersion() { return HALLEY_DLL_API_VERSION; }\n\t\tvirtual std::unique_ptr createCore(const std::vector& args) = 0;\n\t\tvirtual std::unique_ptr createGame() = 0;\n\t\tvoid initSharedStatics(const HalleyStatics& parent);\n\t};\n\n\ttemplate \n\tclass HalleyEntryPoint final : public IHalleyEntryPoint\n\t{\n\tpublic:\n\t\tstd::unique_ptr createGame() override\n\t\t{\n\t\t\treturn std::make_unique();\n\t\t}\n\n\t\tstd::unique_ptr createCore(const std::vector& args) override\n\t\t{\n\t\t\tExpects(args.size() >= 1);\n\t\t\tExpects(args.size() < 1000);\n\t\t\treturn std::make_unique(std::make_unique(), args);\n\t\t}\n\t};\n}\n","subject":"Move new method on interface further down to avoid messing with vtable compatibility","message":"Move new method on interface further down to avoid messing with vtable compatibility\n","lang":"C","license":"apache-2.0","repos":"amzeratul\/halley,amzeratul\/halley,amzeratul\/halley"} {"commit":"4771a29b5042fc9496f4d72f76c0151fe73716ba","old_file":"src\/placement\/apollonius_labels_arranger.h","new_file":"src\/placement\/apollonius_labels_arranger.h","old_contents":"#ifndef SRC_PLACEMENT_APOLLONIUS_LABELS_ARRANGER_H_\n\n#define SRC_PLACEMENT_APOLLONIUS_LABELS_ARRANGER_H_\n\n#include \n#include \n#include \n#include \".\/labels_arranger.h\"\n\nclass CudaArrayProvider;\n\nnamespace Placement\n{\n\n\/**\n * \\brief Returns the labels in an order defined by the apollonius graph\n *\n *\/\nclass ApolloniusLabelsArranger : public LabelsArranger\n{\n public:\n ApolloniusLabelsArranger() = default;\n virtual ~ApolloniusLabelsArranger();\n\n void\n initialize(std::shared_ptr distanceTransformTextureMapper,\n std::shared_ptr apolloniusTextureMapper);\n\n virtual std::vector