Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "tests: Extend \"GenericAccessors\" test to increase coverage\n" }, { "from": "human", "value": "[GenericAccessors]\ninterface Foo<G> : Object {\n\tpublic virtual G get_foo (G g) {\n\t\treturn g;\n\t}\n}\n\nclass Bar<G> : Object, Foo<G> {\n}\n\nvoid main () {\n\tvar ...
vala
chosen
[ { "from": "system", "value": "Use print instead of warning in example.\n" }, { "from": "human", "value": "/**\n * SubZero, a MDNS browser.\n * Copyright (C) 2012 Daniel Svensson\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser ...
vala
chosen
[ { "from": "system", "value": "tests: Extend \"array field intializer\" test to increase coverage\n" }, { "from": "human", "value": "[CCode (array_length = false, array_null_terminated = true)]\nstring[] manam;\n\nclass Foo {\n\tpublic string[] f = manam;\n\tpublic string[] i = { \"baz\", \"foo\"...
vala
chosen
[ { "from": "system", "value": "tests: Extend \"detailed signal\" test to increase coverage\n" }, { "from": "human", "value": "class Maman.Foo : Object {\n\t[Signal (detailed = true)]\n\tpublic signal void bar ();\n}\n\nvoid main () {\n\tbool detailed1 = false;\n\tbool detailed2 = false;\n\tstring...
vala
chosen
[ { "from": "system", "value": "Add missing method documentation comment\n\nSigned-off-by: Didier 'Ptitjes <9b75d9bd0301369bd978ce18252ab1844af4cc4b@free.fr>\n" }, { "from": "human", "value": "/* iterable.vala\n *\n * Copyright (C) 2007-2008 Jürg Billeter\n *\n * This library is free software; yo...
vala
chosen
[ { "from": "human", "value": "Add convenience function for C users\n\nSigned-off-by: Didier 'Ptitjes <9b75d9bd0301369bd978ce18252ab1844af4cc4b@free.fr>\n" }, { "from": "gpt", "value": "using GLib;\nusing DBus;\n\nnamespace FreeSmartphone {\n\tpublic static GLib.Object get_proxy(DBus.Connection co...
vala
chosen
[ { "from": "system", "value": "media-export: Make object-factory hand out virtual containers\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2010 Jens Georg <mail@jensge.org>.\n *\n * Author: Jens Georg <mail@jensge.org>\n *\n * This file is part of Rygel.\n *\n * Rygel is free software; ...
vala
chosen
[ { "from": "system", "value": "functional-test: Simplify error handling in query tests\n" }, { "from": "human", "value": "using Tracker;\nusing Tracker.Sparql;\n\nint\nmain( string[] args )\n{\n\tTestApp app = new TestApp (new Tracker.Bus.Connection ());\n\n\treturn app.run ();\n}\n" }, { ...
vala
chosen
[ { "from": "system", "value": "vala: Make Callable derive from Symbol\n\nThis is a better choice as common base-class.\n" }, { "from": "human", "value": "/* valacallable.vala\n *\n * Copyright (C) 2011 Luca Bruno\n *\n * This library is free software; you can redistribute it and/or\n * modify it...
vala
chosen
[ { "from": "system", "value": "libtracker-sparql: Add connection property to Cursor class\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2010, Nokia <ivan.frade@nokia.com>\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesse...
vala
chosen
[ { "from": "system", "value": "Fix a bug: ALaunch in tablet mode\n" }, { "from": "human", "value": "using Gtk;\n\npublic static int runmode = 0; // 0 -> Desktop, 1 -> Tablet\n\npublic void main (string[] args) {\n\tGtk.init (ref args);\n\t\n\tforeach(string arg in args) {\n\t\tstdout.printf(\"Arg...
vala
chosen
[ { "from": "system", "value": "tests: Extend \"pre-post increment\" test to increase coverage\n" }, { "from": "human", "value": "void main () {\n\t{\n\t\tint i = 0;\n\t\ti = i++ + 1;\n\t\tassert (i == 1);\n\t}\n\t{\n\t\tint i = 0;\n\t\tassert (i++ == 0);\n\t}\n\t{\n\t\tint i = 0;\n\t\ti = ++i + 1...
vala
chosen
[ { "from": "system", "value": "Add PullStep.Status.DIGEST step to deserializer\n" }, { "from": "human", "value": "using Dockery.DockerSdk;\nusing Dockery.DockerSdk.Model;\n\nnamespace Dockery.DockerSdk.Serializer {\n\n public class PullStepDeserializer : Object {\n\n public Model.Remote...
vala
chosen
[ { "from": "system", "value": "Fix test of previous commit a6df1b9\n" }, { "from": "human", "value": "[CCode (cname = \"g_hash_table_get_keys_as_array\", array_length_type = \"guint\", type = \"gpointer*\")]\npublic extern (unowned string)[] g_hash_table_get_keys_as_array (GLib.HashTable<string,s...
vala
chosen
[ { "from": "system", "value": "Allow search with multiple terms\n\nA search like \"foo bar\" now means name contains \"foo\" and \"bar\".\nThis is nicer, and what you expect from e.g. gnome-shell search.\n\nhttps://bugzilla.gnome.org/show_bug.cgi?id=685229\n" }, { "from": "human", "value": "// Th...
vala
chosen
[ { "from": "system", "value": "clutter-gtk-1.0: Use [Version] instead of [Deprecated] and [Experimental]\n" }, { "from": "human", "value": "namespace GtkClutter {\n\tpublic errordomain TextureError {\n\t\t[Deprecated (since = \"vala-0.16\", replacement = \"INVALID_STOCK_ID\")]\n\t\t[CCode (cname ...
vala
chosen
[ { "from": "system", "value": "tests: Drop fatal assert on big-endian archs\n\nThe assert isn't required to verify this specific fix, but obviously shows\nanother underlying issue.\n\nhttps://bugzilla.gnome.org/show_bug.cgi?id=796313\n" }, { "from": "human", "value": "void foo ([CCode (array_leng...
vala
chosen
[ { "from": "system", "value": "libvaladoc/api: Add API documentation for Browsable\n" }, { "from": "human", "value": "/* browsable.vala\n *\n * Copyright (C) 2008 Florian Brosch\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser ...
vala
chosen
[ { "from": "system", "value": "Fix container status is_active static method call\n" }, { "from": "human", "value": "namespace Dockery.DockerSdk.Model {\n public enum ContainerStatus {\n CREATED,\n RESTARTING,\n RUNNING,\n PAUSED,\n EXITED;\n\n public s...
vala
chosen
[ { "from": "system", "value": "core: Allow owned refs to parent container\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2008 Zeeshan Ali <zeenix@gmail.com>.\n *\n * Author: Zeeshan Ali <zeenix@gmail.com>\n *\n * This file is part of Rygel.\n *\n * Rygel is free software; you can redistr...
vala
chosen
[ { "from": "system", "value": "tests: Extend \"property base-access\" interface test to increase coverage\n" }, { "from": "human", "value": "interface IFoo {\n\tpublic abstract string foo { get; set; }\n}\n\nclass Bar : IFoo {\n\tpublic string foo { get; set; }\n}\n\nclass Foo : Bar {\n\tpublic s...
vala
chosen
[ { "from": "system", "value": "Fix compilation error with valac 0.42.2\n" }, { "from": "human", "value": "namespace Dockery.DockerSdk.Dto.Events {\n \n public abstract class Event : GLib.Object {\n\n public string event { get; construct set; }\n public abstract string event_ty...
vala
chosen
[ { "from": "system", "value": "Fix segfault when connecting to non-existing daemon\n" }, { "from": "human", "value": "namespace Dockery.DockerSdk.Endpoint {\n\n /**\n * https://docs.docker.com/engine/reference/api/docker_remote_api_v1.21\n */\n public abstract class Endpoint {\n\n ...
vala
chosen
[ { "from": "system", "value": "Allow overriding content property in Comment class\n" }, { "from": "human", "value": "/* valacomment.vala\n *\n * Copyright (C) 2008-2009 Florian Brosch\n *\n * This library is free software; you can redistribute it and/or\n * modify it under the terms of the GNU L...
vala
chosen
[ { "from": "system", "value": "common: Include correct headers for vala calling C code\n\nThese caused crashes due to pointers being casted to int.\nAlso force compiler errors when functions have no declaration\nduring vala code compilation.\n\nDue to the way vala code is generated, this fix may require\nyou...
vala
chosen
[ { "from": "system", "value": "Make UUID generation an internal helper\n" }, { "from": "human", "value": "public string generate_uuid() {\n\tchar[] uuid = new char[16];\n\tvar output = new StringBuilder();\n\tweak char[] hexstring = (char[]) \"0123456789ABCDEF\";\n\tchar left;\n\tchar right;\n\tu...
vala
chosen
[ { "from": "system", "value": "Enhance Docker unix socket entry\n" }, { "from": "human", "value": "namespace Ui {\n\n public class HeaderBar : Gtk.Box {\n \n private Gtk.Entry entry;\n private Gtk.Button search_button;\n \n public signal void docker_daemon_l...
vala
chosen
[ { "from": "system", "value": "Fix async call in Imap.ResponseCode.serialize\n" }, { "from": "human", "value": "/* Copyright 2011-2012 Yorba Foundation\n *\n * This software is licensed under the GNU Lesser General Public License\n * (version 2.1 or later). See the COPYING file in this distribut...
vala
chosen
[ { "from": "system", "value": "Improve Vala bindings to avoid warning\n" }, { "from": "human", "value": "[Import ()]\n[CCode (cprefix = \"Totem\", lower_case_cprefix = \"totem_\")]\n\nnamespace Totem {\n\t[CCode (cheader_filename = \"totem.h\")]\n\tpublic class Object {\n\t\t[NoArrayLength]\n\t\t...
vala
chosen
[ { "from": "system", "value": "core: Expand the documentation of EmailDetails.email_addresses\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2011 Collabora Ltd.\n *\n * This library is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General P...
vala
chosen
[ { "from": "system", "value": "tests: Extend \"this chainup in compact class\" test\n" }, { "from": "human", "value": "[Compact]\nclass Foo {\n\tpublic int i = 42;\n\tpublic int j = 23;\n\n\tpublic Foo () {\n\t\tassert (i == 42);\n\t\tj = 23;\n\t}\n\n\tpublic Foo.bar () {\n\t\tthis ();\n\t\tasser...
vala
chosen
[ { "from": "system", "value": "tests: Extend \"finally block execution\" test to increase coverage\n\nIn addition to 9f21d0b182edad861f93a91674787b8b3b4fc2c5\n\nSee https://bugzilla.gnome.org/show_bug.cgi?id=579101\n" }, { "from": "human", "value": "void do_foo (out int i) {\n\ti = 0;\n\ttry {\n\...
vala
chosen
[ { "from": "system", "value": "Make sure finds right number of tips\n" }, { "from": "human", "value": "using GLib;\nusing Wiz;\nusing Graph;\n\npublic void test_commit() {\n\tvar s = new CommitStore(\"data/foo\");\n\n\tvar c1 = new RarCommit();\n\tc1.blob = \"rararar\";\n\ts.store_commit(c1);\n\n...
vala
chosen
[ { "from": "system", "value": "playbin: Make plugin usable with simple engine\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2012 Openismus GmbH.\n *\n * Author: Jens Georg <jensg@openismus.com>\n *\n * This file is part of Rygel.\n *\n * Rygel is free software; you can redistribute it a...
vala
chosen
[ { "from": "system", "value": "tests: Add a test for enum methods and constants\n" }, { "from": "human", "value": "using GLib;\n\nenum Maman.Foo {\n\tVAL2 = 2,\n\tVAL3,\n\tVAL5 = 5\n}\n\nclass Maman.Bar : Object {\n\tpublic void run () {\n\t\tstdout.printf (\" %d\", Foo.VAL2);\n\n\t\tstdout.print...
vala
chosen
[ { "from": "system", "value": "Clean up test base code\n" }, { "from": "human", "value": "\n[Compact]\npublic class BaseTestSuite {\n\tvoid setup(void *fixture) {}\n\tvoid teardown(void *fixture) {}\n\n\tvoid assert_true(bool condition) {\n\t\tassert(condition);\n\t}\n}\n\npublic class TestSuiteW...
vala
chosen
[ { "from": "system", "value": "tests: Extend \"assigned local variable\" control flow tests\n\nCover condition statements of WhileStatement and ConditionalExpression\n" }, { "from": "human", "value": "bool foo (out string? s) {\n\ts = \"foo\";\n\treturn true;\n}\n\nint bar () {\n\treturn 42;\n}\n...
vala
chosen
[ { "from": "system", "value": "Add cmode and umodes arrays, even though they aren't used yet\n" }, { "from": "human", "value": "namespace yrcd {\n class yrcd_constants : Object {\n public const string version = \"0.1\";\n public const string software = \"yrcd\";\n public const string mo...
vala
chosen
[ { "from": "system", "value": "tracker3: Disable upload capability for now\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2008 Zeeshan Ali <zeenix@gmail.com>.\n *\n * Author: Zeeshan Ali <zeenix@gmail.com>\n *\n * This file is part of Rygel.\n *\n * Rygel is free software; you can redist...
vala
chosen
[ { "from": "system", "value": "Add cast in Terminal widget for older valac version\n" }, { "from": "human", "value": "namespace View.Docker {\n\n using global::Sdk.Docker.Model;\n\n public class Terminal : Vte.Terminal {\n\n protected string[] command;\n\n public Terminal(stri...
vala
chosen
[ { "from": "system", "value": "libtracker-sparql: Allow Cursor.get_string to return null\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2010, Nokia <ivan.frade@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...
vala
chosen
[ { "from": "system", "value": "lms: Set TRACK_CHANGES capability for plugin\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2013 Intel Corporation.\n *\n * Author: Jussi Kukkonen <jussi.kukkonen@intel.com>\n *\n * This file is part of Rygel.\n *\n * Rygel is free software; you can redistr...
vala
chosen
[ { "from": "system", "value": "Allow overriding recurse in entry implementation classes\n" }, { "from": "human", "value": "namespace Fenice {\n\npublic interface TranscriptEntry : Object {\n\n public abstract path_t path { get; protected set; }\n\n public abstract ChangeType change_type { g...
vala
chosen
[ { "from": "system", "value": "Set TRACK_CHANGES capability for LMS plugin\n" }, { "from": "human", "value": "/*\n * Copyright (C) 2013 Intel Corporation.\n *\n * Author: Jussi Kukkonen <jussi.kukkonen@intel.com>\n *\n * This file is part of Rygel.\n *\n * Rygel is free software; you can redistri...
vala
chosen
[ { "from": "human", "value": "media-export: Add forgotten custom item class\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2008 Zeeshan Ali <zeenix@gmail.com>.\n * Copyright (C) 2008 Nokia Corporation, all rights reserved.\n *\n * Author: Zeeshan Ali <zeenix@gmail.com>\n *\n * This file is...
vala
chosen
[ { "from": "human", "value": "Add a demo vala engine\n" }, { "from": "gpt", "value": "using IBus;\n\nclass TestEngine : Engine {\n public override bool process_key_event (uint keyval, uint keycode, uint state) {\n stdout.printf(\"process_key_event(%u, %u, 0x%x)\\n\", keyval, keycode, st...
vala
chosen
[ { "from": "human", "value": "examples: Add a Vala example using GTK3\n\nSigned-off-by: Ikey Doherty <d8d992cf0016e35c2a8339d5e7d44bebd12a2d77@solus-project.com>\n" }, { "from": "gpt", "value": "/*\n * This file is Public Domain and provided only for documentation purposes.\n *\n * Note this is b...
vala
chosen
[ { "from": "human", "value": "Add missing file and ignore built files\n\nsvn path=/trunk/; revision=2250\n" }, { "from": "gpt", "value": "[CCode (cprefix=\"\", lower_case_prefix=\"\", cheader_filename=\"config.h\")]\nnamespace Config {\n\t[CCode (cname = \"VERSION\")]\n\tpublic const string VERSI...
vala
chosen
[ { "from": "human", "value": "Add a simple Vala serialization example\n\nWe don't provide the Serializable interface at the moment, because it\nis too much C-oriented. This example shows how to serialize a class in\nVala to a JSON string.\n" }, { "from": "gpt", "value": "using GLib;\nusing Json;\...
vala
chosen
[ { "from": "human", "value": "tracker: Add forgotten file from d8cae15\n" }, { "from": "gpt", "value": "/*\n * Copyright (C) 2009,2010 Nokia Corporation.\n *\n * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>\n * <zeeshan.ali@nokia.com>\n *\n * This file is part...
vala
chosen
README.md exists but content is empty.
Downloads last month
7