commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 1 4.87k | subject stringlengths 15 778 | message stringlengths 15 8.75k | lang stringclasses 266
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
33e4a1aeebf626e36b3d589ed7c594235a436a17 | doc/tutorial/examples/second-tape.yang | doc/tutorial/examples/second-tape.yang | module second-tape {
namespace "http://example.com/turing-machine/tape2";
prefix "t2";
import turing-machine {
prefix "tm";
}
augment "/tm:turing-machine" {
description
"State data for the second tape.";
leaf head-position-2 {
config "false";
type tm:cell-index;
descrip... | module second-tape {
namespace "http://example.net/turing-machine/tape-2";
prefix "t2";
import turing-machine {
prefix "tm";
}
augment "/tm:turing-machine" {
description
"State data for the second tape.";
leaf head-position-2 {
config "false";
type tm:cell-index;
descri... | Modify namespace URI in the tutorial example. | Modify namespace URI in the tutorial example. | YANG | isc | davidegurgone/pyang,davidegurgone/pyang |
405a8ae6373dc2ab7c03f291ffc448b2b628d5be | yang/actor-system-provider-service.yang | yang/actor-system-provider-service.yang | module actor-system-provider-service {
yang-version 1;
namespace "urn:opendaylight:params:xml:ns:yang:controller:config:actor-system-provider:service";
prefix "actor-system";
import config { prefix config; revision-date 2013-04-05; }
description "Akka actor system provider service definition";
... | module actor-system-provider-service {
yang-version 1;
namespace "urn:opendaylight:params:xml:ns:yang:controller:config:actor-system-provider:service";
prefix "actor-system";
import config { prefix config; revision-date 2013-04-05; }
description "Akka actor system provider service definition";
... | Modify config Module impls to co-exist with blueprint | Modify config Module impls to co-exist with blueprint
Modified various config system Module implementation classes which
have corresponding instances created and advertised via blueprint to
obtain the instance in createInstance from the OSGi registry. The
instance may not be available yet so it will wait. I added a
Wa... | YANG | epl-1.0 | opendaylight/yangtools,opendaylight/yangtools |
d41b2a5776e75b851d617a03c0e813a0945cc4ca | test/builtin/charmethods.zep | test/builtin/charmethods.zep | namespace Test\BuiltIn;
class CharMethods
{
public function getHex()
{
return 'a'->toHex();
}
public function getHexForString(string str)
{
var o = "", n;
char ch;
for ch in str {
let o .= ch->toHex();
}
return o;
}
} | namespace Test\BuiltIn;
class CharMethods
{
public function getHex()
{
return 'a'->toHex();
}
public function getHexForString(string str)
{
var o = "";
char ch;
for ch in str {
let o .= ch->toHex();
}
return o;
}
} | Remove unused variable n in Test\BuiltIn\CharMethods::getHexForString | Remove unused variable n in Test\BuiltIn\CharMethods::getHexForString
| Zephir | mit | KorsaR-ZN/zephir,joeyhub/zephir,patrick-zippenfenig/zephir,ovr/zephir,gsouf/zephir,aaam/zephir,gsouf/zephir,carlmcdade/zephir,patrick-zippenfenig/zephir,janusnic/zephir,cesarmarinhorj/zephir,zephir-lang/zephir,cesarmarinhorj/zephir,sergeyklay/zephir,fezfez/zephir,patrick-zippenfenig/zephir,sjinks/zephir,dreamsxin/zephi... |
478a985a1efecb96c4c737507e2d965f20bd9f36 | stub/functions.zep | stub/functions.zep |
namespace Stub;
class Functions
{
/**
* @issue https://github.com/phalcon/zephir/issues/658
*/
public function filterVar1() -> bool
{
var ret;
let ret = "0";
return false === filter_var($ret, FILTER_VALIDATE_FLOAT, 20480);
}
/**
* @issue https://github.com/... |
namespace Stub;
class Functions
{
/**
* @issue https://github.com/phalcon/zephir/issues/658
*/
public function filterVar1() -> bool
{
var ret;
let ret = "0";
return false === filter_var(ret, FILTER_VALIDATE_FLOAT, 20480);
}
/**
* @issue https://github.com/p... | Remove dollar sign in Zephir code | Remove dollar sign in Zephir code
| Zephir | mit | phalcon/zephir,zephir-lang/zephir,zephir-lang/zephir,phalcon/zephir,phalcon/zephir,zephir-lang/zephir,vpg/zephir,phalcon/zephir,vpg/zephir,zephir-lang/zephir,vpg/zephir,zephir-lang/zephir,vpg/zephir,phalcon/zephir,phalcon/zephir,vpg/zephir,vpg/zephir |
688f976c1e65c53cc23f1e2fbfe12935a9aa9cd0 | test/test/test.zep | test/test/test.zep | namespace Test;
class Test
{
public static function check()
{
var arr;
var ret;
let arr = [0, 1, 2, 3, 4, 5];
let ret = arr->rev();
var_dump(ret);
}
public static function replace()
{
var patterns = [
":any": "[^/]+",
":num": "[0-9]+",
":all": ".*"
];
var replaces, str;
var searches = [... | namespace Test;
class Test
{
public static function check()
{
var arr;
var ret;
let arr = [0, 1, 2, 3, 4, 5];
let ret = arr->rev();
var_dump(ret);
}
public static function replace()
{
var patterns = [
":any": "[^/]+",
":num": "[0-9]+",
":all": ".*"
];
var replaces, str;
var searches = [... | Test use constant key about array | Test use constant key about array
| Zephir | mit | dreamsxin/zephir-demo |
c2a4e012f13e435225c59271499cbf89c8a56909 | arango/handler/vertexhandler.zep | arango/handler/vertexhandler.zep |
namespace Arango\Handler;
use Arango\Document\Vertex;
use Arango\Document\Document;
use Arango\Handler\DocumentHandler;
/**
* A handler that manages vertex documents
*
* @package Arango/Handler
* @class VertexHandler
* @author Lucas S. Vieira
*/
class VertexHandler extends DocumentHandler {
/**
* Interme... |
namespace Arango\Handler;
use Arango\Document\Vertex;
use Arango\Handler\DocumentHandler;
/**
* A handler that manages vertex documents
*
* @package Arango/Handler
* @class VertexHandler
* @author Lucas S. Vieira
*/
class VertexHandler extends DocumentHandler {
/**
* Intermediate function to call the cre... | Change return type in VertexHandler | Change return type in VertexHandler
| Zephir | mit | lucassouzavieira/arangodb-php-driver,lucassouzavieira/arangodb-php-driver |
04267fb1baf0b7b47330223fad0acbd088452ee7 | lib/std/os/windows/ole32.zig | lib/std/os/windows/ole32.zig | // SPDX-License-Identifier: MIT
// Copyright (c) 2015-2020 Zig Contributors
// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
// The MIT license requires this copyright notice to be included in all copies
// and substantial portions of the software.
usingnamespace @import("bits.zig");
pub ext... | // SPDX-License-Identifier: MIT
// Copyright (c) 2015-2020 Zig Contributors
// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
// The MIT license requires this copyright notice to be included in all copies
// and substantial portions of the software.
usingnamespace @import("bits.zig");
pub ext... | Fix CoInitializeEx so it can take a null pointer | Fix CoInitializeEx so it can take a null pointer
| Zig | mit | zig-lang/zig,raulgrell/zig,raulgrell/zig,raulgrell/zig,andrewrk/zig,raulgrell/zig,zig-lang/zig,andrewrk/zig,raulgrell/zig,zig-lang/zig |
7287c7482a2c694c7c7f56b9f7c1744a7ae7905f | lib/std/io/buffered_writer.zig | lib/std/io/buffered_writer.zig | const std = @import("../std.zig");
const io = std.io;
pub fn BufferedWriter(comptime buffer_size: usize, comptime WriterType: type) type {
return struct {
unbuffered_writer: WriterType,
fifo: FifoType = FifoType.init(),
pub const Error = WriterType.Error;
pub const Writer = io.Writ... | const std = @import("../std.zig");
const io = std.io;
const mem = std.mem;
pub fn BufferedWriter(comptime buffer_size: usize, comptime WriterType: type) type {
return struct {
unbuffered_writer: WriterType,
buf: [buffer_size]u8 = undefined,
end: usize = 0,
pub const Error = Writer... | Stop using LinearFifo in BufferedWriter | Stop using LinearFifo in BufferedWriter
Looking at the BufferedWriter assembly generated, one can see that is
has to do a lot of work, just to copy over some bytes and increase an
offset. This is because the LinearFifo is a much more general construct
than what BufferedWriter needs and the optimizer cannot prove that ... | Zig | mit | andrewrk/zig,andrewrk/zig |
a7e10565fce359d00bee409cbb5226526c1bbb5e | std/special/build_file_template.zig | std/special/build_file_template.zig | const Builder = @import("std").build.Builder;
pub fn build(b: &Builder) {
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("YOUR_NAME_HERE", "src/main.zig");
exe.setBuildMode(mode);
b.default_step.dependOn(&exe.step);
b.installArtifact(exe);
}
| const Builder = @import("std").build.Builder;
pub fn build(b: &Builder) -> %void {
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("YOUR_NAME_HERE", "src/main.zig");
exe.setBuildMode(mode);
b.default_step.dependOn(&exe.step);
b.installArtifact(exe);
}
| Fix build template to match build runner changes | Fix build template to match build runner changes
Api changed in 7b57454cc11371b71097967656e19f0a1736d733.
| Zig | mit | Dimenus/zig,raulgrell/zig,zig-lang/zig,Dimenus/zig,raulgrell/zig,raulgrell/zig,raulgrell/zig,zig-lang/zig,raulgrell/zig,andrewrk/zig,zig-lang/zig,Dimenus/zig,andrewrk/zig |
742abc71c75a3448526c14980d0daae1c6ff8f96 | std/c/freebsd.zig | std/c/freebsd.zig | const std = @import("../std.zig");
usingnamespace std.c;
extern "c" fn __error() *c_int;
pub const _errno = __error;
pub extern "c" fn getdents(fd: c_int, buf_ptr: [*]u8, nbytes: usize) usize;
pub extern "c" fn sigaltstack(ss: ?*stack_t, old_ss: ?*stack_t) c_int;
pub extern "c" fn getrandom(buf_ptr: [*]u8, buf_len: u... | const std = @import("../std.zig");
usingnamespace std.c;
extern "c" fn __error() *c_int;
pub const _errno = __error;
pub extern "c" fn getdents(fd: c_int, buf_ptr: [*]u8, nbytes: usize) usize;
pub extern "c" fn sigaltstack(ss: ?*stack_t, old_ss: ?*stack_t) c_int;
pub extern "c" fn getrandom(buf_ptr: [*]u8, buf_len: u... | Add missing C dl_iterate_phdr function for FreeBSD | Add missing C dl_iterate_phdr function for FreeBSD
| Zig | mit | andrewrk/zig,raulgrell/zig,zig-lang/zig,raulgrell/zig,raulgrell/zig,zig-lang/zig,raulgrell/zig,raulgrell/zig,andrewrk/zig,zig-lang/zig |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.