Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "server/proxy: Add return statement in demo_filter.c\n" }, { "from": "human", "value": "#include \"filters_api.h\"\n\nstatic PF_FILTER_RESULT demo_filter_keyboard_event(connectionInfo* info, void* param)\n{\n\tproxyKeyboardEventInfo* event_data = (proxyKeyboardEventI...
c
chosen
[ { "from": "system", "value": "Add sent_messages array to testable controller interface\n" }, { "from": "human", "value": "#import <Foundation/Foundation.h>\n\n\n@class WKInterfaceController;\n@class FakeInterfaceController;\n\n\n@protocol TestableWKInterfaceController <NSObject>\n\n- (void)awake...
c
chosen
[ { "from": "human", "value": "Add chapter 1 extra exercises\n" }, { "from": "gpt", "value": "#include <stdio.h>\n\nmain() {\n float fahr, celsius;\n float lower, upper, step;\n\n lower = 0;\n upper = 300;\n step = 20;\n\n celsius = lower;\n\n printf(\"%6s\\t%3s\\n\", \"celsiu...
c
chosen
[ { "from": "system", "value": "Add class comment.\nReduce indirections in using statement.\n" }, { "from": "human", "value": "// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.\n#pragma once\n\n#include <vespa/vespalib/util/threa...
c
chosen
[ { "from": "system", "value": "Use new API on one or more tests\n" }, { "from": "human", "value": "#include \"test_parser.h\"\n\nvoid one_or_more_one(void **state) {\n grammar_t *grammar = grammar_init(\n non_terminal(\"One\"),\n rule_init(\n \"One\",\n one_or_more(\n term...
c
chosen
[ { "from": "system", "value": "Remove nasty character at end of file that prevents compiles\n\n\ngit-svn-id: f18ccec24f938f15aa42574278fe0cc52f637e81@72 fa1542d4-bde8-0310-ad64-8ed1123d492a\n" }, { "from": "human", "value": "#include <stdio.h>\n#include \"jpeglib.h\"\n#include <setjmp.h>\n\nstruc...
c
chosen
[ { "from": "system", "value": "Change size of bool to 4\n" }, { "from": "human", "value": "#pragma once\n\n#ifdef bool\n#undef bool\n#endif\n\ntypedef char bool;\n#define true 1\n#define false 0\n\ntypedef struct carp_thread* carp_thread_t;\ntypedef void(*carp_thread_routine)(void* arg);\n\ntyped...
c
chosen
[ { "from": "system", "value": "Document the transformation matrix class\n\nBrief, but just the gist of what people need to know to use this class.\n\nContributes to issue CURA-7118.\n" }, { "from": "human", "value": "//Copyright (c) 2020 Ultimaker B.V.\n//CuraEngine is released under the terms of...
c
chosen
[ { "from": "system", "value": "Add include for math.h to lin hash\n" }, { "from": "human", "value": "#ifndef TEST_LINEAR_HASH_H_\n#define TEST_LINEAR_HASH_H_\n\n#include <stdio.h>\n#include <string.h>\n#include <limits.h>\n#include \"../../../planckunit/src/planck_unit.h\"\n#include \"../../../.....
c
chosen
[ { "from": "system", "value": "Fix silly mistake in test.\n\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@67897 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: clang-cc -emit-llvm %s -o -\ntypedef short __v4hi __attribute__ ((__vector_size__ (8)));\n\nv...
c
chosen
[ { "from": "human", "value": "Add GET message integration test\n- Make unit testing write fuller test objects\n- Make the number of buckets/keys in dummy object configurable\n- Add several helper functions like comparing binaries and objects\n- Improve error reporting in testing async callbacks\n" }, { ...
c
chosen
[ { "from": "system", "value": "Add 'fixtures' path definition to test helper.\n" }, { "from": "human", "value": "#import <Foundation/Foundation.h>\n#import <GHUnit/GHUnit.h>\n//#import <SenTestingKit/SenTestingKit.h>\n\n#define COCOAGIT_REPO @\".\"\n#define TEST_RESOURCES_PATH @\"../../UnitTests/...
c
chosen
[ { "from": "human", "value": "Set one LED group on for light aiming\n" }, { "from": "gpt", "value": "/**\n * \"Aim lights\" light script\n *\n * Turn on all the lights for 30 seconds so they can be aimed\n */\n\n// Copied from todbot \n// format of light script lines: duration, command, arg1,arg2...
c
chosen
[ { "from": "human", "value": "SecurityPkg: Add definition for Physical Presence storage flag.\n\nReviewed-by: Jiewen Yao <364a90bfebd1f362ebb7b48e4bf8ec010adef203@intel.com>\nReviewed-by: Chao Zhang <fed49a7a524fbe970930fd44cd2de5a9d4952d81@intel.com>\nContributed-under: TianoCore Contribution Agreement 1.0\...
c
chosen
[ { "from": "system", "value": "Add closing bracket to open function in task 02 homework 02\n" }, { "from": "human", "value": "#include <stdio.h>\n#include <string.h>\n\nchar* find(char *haystack, char needle);\n\nint main(){\n\tchar input[401]={'\\0'}, symbol, *result;\n\t\t\n\tfgets(input, 401, ...
c
chosen
[ { "from": "system", "value": "Reduce example uses additive calls\n" }, { "from": "human", "value": "/*\n * example2.c\n *\n * Created on: 3 May 2016\n * Author: nick\n */\n\n#include \"ndm.h\"\n#include <mpi.h>\n#include <stdio.h>\n\nvoid recvFunction(void*, NDM_Metadata);\n\nint main(int ...
c
chosen
[ { "from": "system", "value": "Fix type signatures for some java bulit-ins\n" }, { "from": "human", "value": "#ifndef __JniHelpersCommon_h__\n#define __JniHelpersCommon_h__\n\n// Disable some annoying compiler warnings\n#if WIN32\n#pragma warning(disable: 4996) // \"Security\" warnings for vsnpri...
c
chosen
[ { "from": "human", "value": "Add calibration file for board J2 (MAV102)\n" }, { "from": "gpt", "value": "/*\n * conf_imu_rev4.h\n *\n * Created: 20/11/2013 22:21:49\n * Author: sfx\n */ \n\n\n#ifndef CONF_IMU_REV4_H_\n#define CONF_IMU_REV4_H_\n\n\n#define RAW_GYRO_X 0\n#define RAW_GYRO_Y 1\n#de...
c
chosen
[ { "from": "human", "value": "Put SynapticsSHM back into the driver to be able to use synclient -m once again\n" }, { "from": "gpt", "value": "/*\n * Permission to use, copy, modify, distribute, and sell this software\n * and its documentation for any purpose is hereby granted without\n * fee, pr...
c
chosen
[ { "from": "system", "value": "Update files, Alura, Introdução a C - Parte 2, Aula 4.2\n" }, { "from": "human", "value": "#include <stdio.h>\n#include <string.h>\n\nvoid abertura() {\n printf(\"*******************\\n\");\n printf(\"* Jogo de Forca *\\n\");\n printf(\"*******************\\n\\...
c
chosen
[ { "from": "system", "value": "Revert \"Only define __dead if it's missing\"\n\nThis reverts commit 7f5694ac1cf3a68b462a9f22e03a12a719249ee5.\n\nPartial fix to #202.\n" }, { "from": "human", "value": "#ifndef COMPAT_H\n#define COMPAT_H\n\n#ifdef HAVE_CONFIG_H\n#include \"config.h\"\n#endif\n\n#if...
c
chosen
[ { "from": "human", "value": "Test case for annotate builtin.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@46999 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "gpt", "value": "// RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.annotation\n\nint main() {\n int x = 0;...
c
chosen
[ { "from": "system", "value": "Fix import to be able to use Smartling.i18n as dynamic framework via cocoapods\n" }, { "from": "human", "value": "// Copyright 2015 Smartling, Inc.\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this work except in complian...
c
chosen
[ { "from": "system", "value": "Handle precision of fractions better" }, { "from": "human", "value": "// Spellable.h\n#ifndef SPELLABLE_H\n#define SPELLABLE_H\n\n#include <string>\n\ntemplate <class T>\nclass Spellable {\n\tT* value;\npublic:\n\tSpellable() {};\n\tSpellable(T* value): value(value)...
c
chosen
[ { "from": "system", "value": "Fix return types in declaration\n" }, { "from": "human", "value": "/**\n* Win32 EntropySource Header File\n* (C) 1999-2008 Jack Lloyd\n*/\n\n#ifndef BOTAN_ENTROPY_SRC_WIN32_H__\n#define BOTAN_ENTROPY_SRC_WIN32_H__\n\n#include <botan/entropy_src.h>\n\nnamespace Botan...
c
chosen
[ { "from": "system", "value": "Use int64_t for cgen intrinsics\n" }, { "from": "human", "value": "/*\nCopyright (c) 2015, Intel Corporation\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without \nmodification, are permitted provided that the following conditi...
c
chosen
[ { "from": "system", "value": "Add printing of file size\n" }, { "from": "human", "value": "#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n#include <unistd.h>\n#include <errno.h>\n#include <sys/stat.h>\n\noff_t get_file_size(const char *filename) {\n struct stat buffer;\n retur...
c
chosen
[ { "from": "system", "value": "Fix a typo (thanks to Robert Hatcher)\n\n\ngit-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@10919 27541ba8-7e3a-0410-8455-c3a389f83636\n" }, { "from": "human", "value": "// @(#)root/hist:$Name: $:$Id: TH1I.h,v 1.1 2002/05/18 11:02:49 brun Exp $\n// Author: Rene...
c
chosen
[ { "from": "system", "value": "Fix typo in created date.\n" }, { "from": "human", "value": "//\n// ServiceMBTA_sensitive.h\n// MBTA-APIs\n//\n// Created by Steve Caine on 01/05/115.\n// Copyright (c) 2015 Steve Caine. All rights reserved.\n//\n\n// your private key to the MBTA-v2 API goes her...
c
chosen
[ { "from": "system", "value": "Remove double definition of default env variables\n" }, { "from": "human", "value": "#ifndef SHELL_H\n#define SHELL_H\n\n#include <stdbool.h>\n\n#define report_error() fprintf(stderr, \"[%s: %s():%d] %s\\n\", __FILE__, \\\n \t__FUNCTION__, \\\n \t__LIN...
c
chosen
[ { "from": "system", "value": "Make get_temp() static. Split out format().\n" }, { "from": "human", "value": "// Copyright 2016, Jeffrey E. Bedard\n#include \"temperature.h\"\n#include \"config.h\"\n#include \"font.h\"\n#include \"util.h\"\n#include <stdio.h>\nuint8_t get_temp(void)\n{\n\treturn...
c
chosen
[ { "from": "system", "value": "Fix standard-nonconst vla test commands\n" }, { "from": "human", "value": "// RUN: %ocheck 1 '-DNULL=(void *)0'\n// RUN: %ocheck 0 '-DNULL=0'\n\nint null_is_ptr_type()\n{\n\tchar s[1][1+(int)NULL];\n\tint i = 0;\n\tsizeof s[i++];\n\treturn i;\n}\n\nmain()\n{\n\tretu...
c
chosen
[ { "from": "system", "value": "Enable move and disable copy for key implementations.\n" }, { "from": "human", "value": "#pragma once\n\n#include \"jwtxx/jwt.h\"\n\n#include <string>\n\nnamespace JWTXX\n{\n\nstruct Key::Impl\n{\n virtual ~Impl() {}\n virtual std::string sign(const void* data...
c
chosen
[ { "from": "system", "value": "Add delegate for profile view controller.\n" }, { "from": "human", "value": "//\n// ProfileViewController.h\n// PlayPlan\n//\n// Created by Zeacone on 15/11/8.\n// Copyright © 2015年 Zeacone. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"PlayPlan...
c
chosen
[ { "from": "human", "value": "Test inability to inline certain functions\n" }, { "from": "gpt", "value": "// RUN: %check -e %s\n\n#define always_inline __attribute((always_inline))\n\nalways_inline hidden(int);\n\nvoid always_inline __attribute((noinline)) noinline(void)\n{\n}\n\nalways_inline vo...
c
chosen
[ { "from": "system", "value": "Update the default return value of UserPhysicalPresent to TRUE.\n\nSigned-off-by: Fu, Siyuan <siyuan.fu@intel.com>\nReviewed-by: Dong, Guo <guo.dong@intel.com>\n\ngit-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@13191 6f19259b-4bc3-4df7-8a09-765794883524\n" }, { "fr...
c
chosen
[ { "from": "system", "value": "Fix test for previous commit\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@124861 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: %clang_cc1 -fsyntax-only -verify\n\n// PR9137\nvoid f0(int x) : {};\nvoid f1(int x) try {};\n"...
c
chosen
[ { "from": "system", "value": "Change weak reference to assign for backwards compatibility\n" }, { "from": "human", "value": "//\n// MFSideMenuShadow.h\n// MFSideMenuDemoSearchBar\n//\n// Created by Michael Frederick on 5/13/13.\n// Copyright (c) 2013 Frederick Development. All rights reserve...
c
chosen
[ { "from": "system", "value": "Use the %llvm-gcc% variable to find llvm-gcc for those of us that don't\nhave it in our path and to ensure it uses the configured llvm-gcc not just\nany one randomly placed in the path.\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@29522 91177308-0d34-0410-b5e6-9623...
c
chosen
[ { "from": "system", "value": "Update clang_getCursor() test to check searches on include directives\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@117063 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "#define OBSCURE(X) X\n#define DECORATION\n\ntypedef int T;\nv...
c
chosen
[ { "from": "system", "value": "Allow access to documents of depth 32\n" }, { "from": "human", "value": "#ifndef SUBDOC_PATH_H\n#define SUBDOC_PATH_H\n\n#include \"subdoc-api.h\"\n#include \"jsonsl_header.h\"\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#define COMPONENTS_ALLOC 32\ntypedef str...
c
chosen
[ { "from": "system", "value": "Add digits() to count digits of `unsigned int` value\n" }, { "from": "human", "value": "#ifndef __BITOPS_H__\n#define __BITOPS_H__\n\n#include <asm/bitops.h>\n#include <types.h>\n\nstatic inline int fls(int x)\n{\n return WORD_BITS - __clz(x);\n}\n\nstatic in...
c
chosen
[ { "from": "system", "value": "Deal with the LOGIN_NAME_MAX issue in the NetBSD->FreeBSD\ntranslation^H^H^Hhack layer.\n" }, { "from": "human", "value": "/* $FreeBSD$ */\n\n/* XXX: Depend on our system headers protecting against multiple includes. */\n#include <paths.h>\n#undef _PATH_FTPUSERS\n\n...
c
chosen
[ { "from": "system", "value": "Remove unused node-counter in routines\n" }, { "from": "human", "value": "#define T_INT 0\n#define T_CHR 1\n#define T_RTN 2\n\nstruct stack_node {\n struct stack_node *cdr;\n union node_data data;\n char type;\n}\n\nunion node_data {\n struct routine rou...
c
chosen
[ { "from": "system", "value": "Add required and CGFloat -> float\n" }, { "from": "human", "value": "//\n// SEEngineProtocol.h\n// Pods\n//\n// Created by Danil Tulin on 3/14/16.\n//\n//\n\n#import <Foundation/Foundation.h>\n\n@protocol EngineProtocol <NSObject>\n\n- (void)feedBGRAImageData:(u_...
c
chosen
[ { "from": "system", "value": "Enlarge snippet size and rank volumn.\n" }, { "from": "human", "value": "/* for MAX_TXT_SEG_BYTES & MAX_TXT_SEG_LEN */\n#include \"txt-seg/config.h\"\n#define MAX_TERM_BYTES MAX_TXT_SEG_BYTES\n\n/* consider both math & term */\n#define MAX_QUERY_BYTES (MAX_TXT_S...
c
chosen
[ { "from": "system", "value": "Change body of the toggleUserLoggedStatus method.\n" }, { "from": "human", "value": "// JPet User - JPetUser.h\n#ifndef JPET_USER_H\n#define JPET_USER_H\n\n#include \"TNamed.h\"\n\n\nclass JPetUser: public TNamed\n{\nprotected:\n int m_id;\n std::string m_name;\n ...
c
chosen
[ { "from": "human", "value": "Add additional string iteration program example\n" }, { "from": "gpt", "value": "#include <cs50.h>\n#include <ctype.h>\n#include <stdio.h>\n#include <string.h>\n\n// declare main so that it takes input from command line\nint main(int argc, string argv[])\n{\n for ...
c
chosen
[ { "from": "system", "value": "Modify Chapter 27, drill to comply with C89 standard\n" }, { "from": "human", "value": "/* Chapter 27, drill\n 1. Write a Hello World program\n 2. Define two variables holding \"Hello\" and \"World!\", concatenate them with\n a space in between and outp...
c
chosen
[ { "from": "system", "value": "Add idle time function for windows\n" }, { "from": "human", "value": "#include <QtGlobal>\n\n#if defined Q_WS_X11\n#include <X11/extensions/scrnsaver.h>\n#endif\n\n\n// return idle time in seconds\nint getIdleSecs()\n{\n#if defined Q_WS_X11\n int code, idle_sec;\...
c
chosen
[ { "from": "human", "value": "Add test about witness un-CIL invariant being incorrect when branches joined\n" }, { "from": "gpt", "value": "extern void __VERIFIER_error() __attribute__ ((__noreturn__));\nextern int __VERIFIER_nondet_int();\nvoid __VERIFIER_assert(int cond) {\n if (!(cond)) {\n...
c
chosen
[ { "from": "system", "value": "Add KERN_ADDRESS_TBL for each version\n" }, { "from": "human", "value": "#ifndef LOADER_H\n#define LOADER_H\n\n#include \"../../../libwiiu/src/coreinit.h\"\n#include \"../../../libwiiu/src/socket.h\"\n#include \"../../../libwiiu/src/types.h\"\n\nvoid _start();\n\nvo...
c
chosen
[ { "from": "system", "value": " Change default live to /run/s6-rc\n" }, { "from": "human", "value": "/* ISC license. */\n\n#ifndef S6RC_CONSTANTS_H\n#define S6RC_CONSTANTS_H\n\n#define S6RC_COMPILED_BASE \"/etc/s6-rc/compiled\"\n#define S6RC_LIVE_BASE \"/s6/s6-rc\"\n\n#define S6RC_COMPILED_DIR_LE...
c
chosen
[ { "from": "system", "value": "Clarify the dynamic linking structure.\n" }, { "from": "human", "value": "/// @file sapi-dylink.h\n/// @brief Define the record used for runtime linking.\n\n/// This structure allows forth to easily look up things on the C\n/// side of the world. \n/// \n/// Specia...
c
chosen
[ { "from": "system", "value": "Make sure to mark all the methods in the dynamic sizing data source as required\n" }, { "from": "human", "value": "#import <UIKit/UIKit.h>\n\n@protocol UITableViewDataSourceDynamicSizing;\n\n@interface UITableView (DynamicSizing)\n- (void)registerClass:(Class)cellCl...
c
chosen
[ { "from": "system", "value": "Include both <sys/param.h> and <sys/vmparam.h> since both SUNOS and\nULTRIX will need them.\n" }, { "from": "human", "value": "#include <setjmp.h>\n\n/*\n Portability: A single method works on all the platforms we have tried\n so far, but this may not be true for ...
c
chosen
[ { "from": "system", "value": "Add ending newline to test.\n\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@46692 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: clang -emit-llvm < %s 2>&1 | grep 'addrspace(1)' | count 5\nint foo __attribute__((address_spa...
c
chosen
[ { "from": "human", "value": "Add another missing file :(\n\n" }, { "from": "gpt", "value": "// Copyright (c) 2007, 2008 libmv authors.\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\"), ...
c
chosen
[ { "from": "system", "value": "Fix build for the iPhone Simulator\n" }, { "from": "human", "value": "#ifdef HAVE_FORK\n#define HAVE_FORK 1\n#endif\n\n#if HAVE_FORK\n# if TARGET_OS_IPHONE || APPLE_SDK_IPHONEOS\n# define HAVE_SYSTEM 0\n# else\n# define HAVE_SYSTEM 1\n# endif\n#else\n# define HAVE...
c
chosen
[ { "from": "system", "value": "Add comment about init_list constructor.\n" }, { "from": "human", "value": "//-----------------------------------------------------------------------------\n// Constructors\n//-----------------------------------------------------------------------------\n\ntemplate<...
c
chosen
[ { "from": "human", "value": "Add another nodes by for loop way.\n" }, { "from": "gpt", "value": "#include <stdio.h>\n#include <stdlib.h>\n\ntypedef struct n\n{\n int data;\n struct n * next;\n} node;\n\n/* Print Linked list values */\nvoid showList(node * list){\n int i = 1;\n while( list !=...
c
chosen
[ { "from": "system", "value": "Add an ERR_CAST() function to complement ERR_PTR and co.\n\nAdd an ERR_CAST() function to complement ERR_PTR and co. for the purposes\nof casting an error entyped as one pointer type to an error of another\npointer type whilst making it explicit as to what is going on.\n\nThis...
c
chosen
[ { "from": "system", "value": "[recorder] Fix 32-bit compile by making the per-thread address data 64-bit\n" }, { "from": "human", "value": "#ifndef __THREAD_INFO_H\n#define __THREAD_INFO_H\n\n#include \"globals.h\"\n#include \"sift_writer.h\"\n#include \"bbv_count.h\"\n\n#include \"pin.H\"\n#inc...
c
chosen
[ { "from": "human", "value": "Add intermediate TextureVideoFrame typedef for Chromium\n\nBUG=1128\nR=perkj@webrtc.org\nTBR=stefan\n\nReview URL: https://webrtc-codereview.appspot.com/42239004\n\ngit-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@8630 4adac7df-926f-26a2-2b94-8c16560cd09d\n" }, { "fr...
c
chosen
[ { "from": "human", "value": "Implement function to draw circle\n" }, { "from": "gpt", "value": "#include <math.h>\n#include <glib.h>\n#include <gtk/gtk.h>\n#include \"fake-lock-screen-pattern.h\"\n\nvoid flsp_draw_circle(cairo_t *context, gint x, gint y,\n gint radius, GdkRG...
c
chosen
[ { "from": "system", "value": "Fix for building without notify\n" }, { "from": "human", "value": "/* Copyright (C) 2003 Timo Sirainen */\n\n#include \"lib.h\"\n#include \"ioloop-internal.h\"\n\n#ifdef IOLOOP_NOTIFY_NONE\n\nstruct io *io_loop_notify_add(struct ioloop *ioloop __attr_unused__,\n\t\t...
c
chosen
[ { "from": "system", "value": "Remove seL4_Yield() since it's removed from the RT kernel.\n\nJIRA CAMKES-429\n" }, { "from": "human", "value": "/*\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 W...
c
chosen
[ { "from": "system", "value": "Add empty SF_IMPORTANT macro for release build\n" }, { "from": "human", "value": "// Copyright (c) 2016 Sift Science. All rights reserved.\n\n@import Foundation;\n\n/** Debug output that can be turned on/off by SF_DEBUG_ENABLE macro. */\n#ifdef SF_DEBUG_ENABLE\n#def...
c
chosen
[ { "from": "system", "value": "lib: Use offsetof() builtin with GCC\n\nThe default offsetof() implementation generates a warning\n(variably modified <variable> at file scope) when used in\nto define the size of an array. By using this builtin with\nGCC we avoid the warning and make sure no variable-size\narr...
c
chosen
[ { "from": "system", "value": "Make T7037 work on both Windows and other platforms\n" }, { "from": "human", "value": "#include <stddef.h>\n#include <unistd.h>\n\nint main(int argc, char *argv[]) {\n const char *args[2] = {\"T7037\", NULL};\n execv(\"./T7037\", args);\n}\n" }, { "fro...
c
chosen
[ { "from": "system", "value": "Disable Jtag came enable by default \n\nDisable Jtag came enable by default and use GPIOB P04,P03 and P05" }, { "from": "human", "value": "/*\r\n * startup.h\r\n *\r\n * Created on: Nov 15, 2016\r\n * Author: RoyerAriel\r\n */\r\n\r\n#ifndef STARTUP_C_\r\n#def...
c
chosen
[ { "from": "system", "value": "Allow non printing chars to also work well\n" }, { "from": "human", "value": "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#define STTY \"/bin/stty \"\nconst char RAW[] = STTY \"raw\";\nconst char COOKED[] = STTY \"cooked\";\n\nconst char default_...
c
chosen
[ { "from": "system", "value": "libutils: Move trailing . inside comment\n" }, { "from": "human", "value": "/*\n * Copyright 2016, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according...
c
chosen
[ { "from": "human", "value": "Add qstr - query string utility" }, { "from": "gpt", "value": "// ** QueryString\n//\n// This program reads chars from stdin without echo and put to stdout.\n//\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <termios.h>\n\nint main(int argc...
c
chosen
[ { "from": "system", "value": "Fix a broken test in rev. 85199.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@85200 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// RUN: clang-cc -E -C %s | FileCheck -strict-whitespace %s\n// CHECK: boo bork bar // zot\n\n// RU...
c
chosen
[ { "from": "system", "value": "Implement accept of incoming requests\n" }, { "from": "human", "value": "#include <netinet/in.h>\n#include <stdio.h>\n#include <sys/socket.h>\n\nint main(int argc, char** argv)\n{\n\n\tint listen_fd;\n\n\tstruct sockaddr_in serv_addr;\n\n\tlisten_fd = socket(AF_INET...
c
chosen
[ { "from": "system", "value": "Change include to forward declaration\n" }, { "from": "human", "value": "/// \\file\n/// \\brief This header contains functionality needed for serializing and deserealizing to/from a stream\n#pragma once\n\n#include \"ISerializable.h\"\n#include \"IStorage.h\"\n\n#i...
c
chosen
[ { "from": "system", "value": "Add support for disabling blocks externally via preprocessor macro definitions at the project or target level\n" }, { "from": "human", "value": "//\n// Licensed under the terms in License.txt\n//\n// Copyright 2010 Allen Ding. All rights reserved.\n//\n\n#import <Fo...
c
chosen
[ { "from": "system", "value": "[Driver] Add a missing -no-canonical-prefixes to test.\n\ngit-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@300873 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "// A test for the propagation of the -mmcu option to -cc1 and -cc1as\n\n// R...
c
chosen
[ { "from": "system", "value": "Add BILaunchStartersFactory to interface file\n" }, { "from": "human", "value": "//\n// BIObjCHelpers.h\n// BIObjCHelpersExample\n//\n// Created by Bogdan Iusco on 1/19/15.\n// Copyright (c) 2015 Bogdan Iusco. All rights reserved.\n//\n\n// Starters\n#import \"B...
c
chosen
[ { "from": "system", "value": "Add SIMPLEQ->STAILQ macros for freebsd.\n" }, { "from": "human", "value": "#include <libutil.h>\n\n#ifndef TAILQ_END\n#define\tTAILQ_END(head)\t\t\tNULL\n#endif\n" }, { "from": "gpt", "value": "#include <libutil.h>\n\n#ifndef TAILQ_END\n#define TAILQ_END...
c
chosen
[ { "from": "human", "value": "Revert \"Revert \"Created a preliminary getMessage method\"\"\n\nThis reverts commit 7d29c8faff9ffba05d14e7597e78dd24da7eaab4.\n" }, { "from": "gpt", "value": "//This is a preliminary version of this file for testing and learning purposes\n//Author: Jonas Iacobi\n#in...
c
chosen
[ { "from": "system", "value": "Add BSD 3-clause open source header\n" }, { "from": "human", "value": "#ifndef _STACK_H_\n#define _STACK_H_\n/*\n * data stack for use with automaton infrastructure\n */\n\n#include \"dataStackEntry.h\"\n\ntypedef struct stack Stack;\n\nStack *stack_create(...
c
chosen
[ { "from": "system", "value": " Fix arc4random_addrandom detection for -Werror=pointer-sign\n" }, { "from": "human", "value": "/* ISC license. */\n\n#undef _POSIX_C_SOURCE\n#undef _XOPEN_SOURCE\n\n#include <stdlib.h>\n\nint main (void)\n{\n arc4random_addrandom(\"\", 1) ;\n return 0 ;\n}\n" }...
c
chosen
[ { "from": "system", "value": "Use macro to check security of cookie\n" }, { "from": "human", "value": "#include <stdio.h>\n\n#include \"bincookie.h\"\n\nint main(int argc, char *argv[]) {\n if (argc != 2) {\n printf(\"Usage: %s [Full path to Cookies.binarycookies file]\\n\", argv[0]);\...
c
chosen
[ { "from": "system", "value": "Fix a typo, that could cause a crash on mac.\n\nBUG=50717\nTBR=rvargas\nTEST=Set system proxy settings to use a custom PAC script, then launch TestShell.app -- should not crash.\nReview URL: http://codereview.chromium.org/3023030\n\ngit-svn-id: dd90618784b6a4b323ea0c23a071cb1c9...
c
chosen
[ { "from": "system", "value": "Use __USER_LABEL_PREFIX__ so that we don't add a _ prefix on ELF.\n\n\ngit-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@86542 91177308-0d34-0410-b5e6-96231b3b80d8\n" }, { "from": "human", "value": "/* ===-- assembly.h - compiler-rt assembler support macros -----...
c
chosen
[ { "from": "system", "value": "Add parameter type `const char []` to the Card constructor\n" }, { "from": "human", "value": "#ifndef PHEVALUATOR_CARD_H\n#define PHEVALUATOR_CARD_H\n\n#ifdef __cplusplus\n\n#include <unordered_map>\n#include <string>\n\nnamespace phevaluator {\n\nclass Card {\n pub...
c
chosen
[ { "from": "human", "value": "Add function parameter qualifier type tests\n" }, { "from": "gpt", "value": "// RUN: %ucc -fsyntax-only %s\n\ntypedef int array[3];\n\nconst array yo; // int const yo[3];\n// ^~ no const here\n\nh(array); // int h(int [3]);\n\ni(const arra...
c
chosen
[ { "from": "system", "value": "Fix compilation on OSX\nMAP_ANONYMOUS is MAP_ANON on OSX, so this\nwill let the project compile.\n" }, { "from": "human", "value": "#ifndef __BYTESTREAM__\n#define __BYTESTREAM__\n\n#include <stdint.h>\n#include <unistd.h>\n\n#define BS_RO 0\n#define BS_RW 1\n\ntype...
c
chosen
[ { "from": "system", "value": "Remove DEBUG for performance testing.\n" }, { "from": "human", "value": "#ifndef __LIB_DBG__\n#define __LIB_DBG__\n\n#define DEBUG\n#ifdef DEBUG\n# define printk(fmt, ...)\t\t\t\t\t\\\n\t\t({\t\t\t\t\t\t\\\n\t\t\tchar ____fmt[] = fmt;\t\t\t\\\n\t\t\ttrace_printk(___...
c
chosen
[ { "from": "human", "value": "Add a resource strategy interface\n" }, { "from": "gpt", "value": "#ifndef\tAPIMOCK_RESOURCESTRATEGY_H\n#define APIMOCK_RESOURCESTRATEGY_H\n\n#include \"requestdata.h\"\n#include \"responsedata.h\"\n\nnamespace ApiMock {\n\tclass ResourceStrategy {\n\tpublic:\n\t\tvi...
c
chosen
[ { "from": "system", "value": "Use compiler detection for Q_LIKELY, Q_UNLIKELY, Q_ASSUME, Q_UNREACHABLE [ci skip]\n" }, { "from": "human", "value": "#ifndef QT4COMPAT_H\n#define QT4COMPAT_H\n\n#include <QtCore/QtGlobal>\n\n#ifndef Q_LIKELY\n#\tdefine Q_LIKELY(s) s\n#endif\n\n#ifndef Q_UNLIKELY\n#...
c
chosen
[ { "from": "system", "value": "Return one-based line/column numbers from StreamPos.\n\n(Because obviously people expect \"Line 1\" to mean the first line...)\n" }, { "from": "human", "value": "#ifndef ICAL_STREAMPOS_H\n#define ICAL_STREAMPOS_H\n\n\nnamespace ical {\n\n/**\n * Represents a postion...
c
chosen
[ { "from": "system", "value": "Add ICMPv4 dst unreachable -message definition\n\nYeah, this might end up being unimplemented :-(\n" }, { "from": "human", "value": "#ifndef ICMPV4_H\n#define ICMPV4_H\n\n#include \"syshead.h\"\n#include \"netdev.h\"\n\n#define ICMP_V4_REPLY 0x00\n#define ...
c
chosen
[ { "from": "system", "value": "Define the INLINE_ASM_GCTXT() macro for aarch64.\nThis was breaking the MEMLEAK source on arm.\n" }, { "from": "human", "value": "#ifndef SPECIFIC_INLINE_ASM_GCTXT\n#define SPECIFIC_INLINE_ASM_GCTXT\n\n#endif\n" }, { "from": "gpt", "value": "#ifndef SPEC...
c
chosen
[ { "from": "system", "value": "Change this test to reflect the state we are moving in. The Clang\nbuiltin headers are no longer going to receive the old 'implicit extern\n\"C\" block' semantics. This hint is actually ignored by both Clang and\nGCC at this point, and Clang's own builtin headers can simply be ...
c
chosen
[ { "from": "system", "value": "testsuite: Fix alpha static chain register name\n" }, { "from": "human", "value": "#ifdef __aarch64__\n# define STATIC_CHAIN_REG \"x18\"\n#elif defined(__alpha__)\n# define STATIC_CHAIN_REG \"r1\"\n#elif defined(__arm__)\n# define STATIC_CHAIN_REG \"ip\"\n#elif d...
c
chosen
[ { "from": "system", "value": "Make better use of precompiled header\n\nThese headers are used pretty much everywhere in autowiring. New compile time is 50% of what it was on MSVC.\n\nBefore: 33.87s\nAfter: 17.77s\n" }, { "from": "human", "value": "// Copyright (C) 2012-2015 Leap Motion, Inc. Al...
c
chosen
[ { "from": "system", "value": "Add first classes to umbrella header\n" }, { "from": "human", "value": "//\n// ObjectiveChain.h\n// Objective-Chain\n//\n// Created by Martin Kiss on 30.12.13.\n//\n//\n\n\n" }, { "from": "gpt", "value": "//\n// ObjectiveChain.h\n// Objective-Chain\...
c
chosen
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
9