conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Enable irmin-fsck for tezos stores\n"
},
{
"from": "human",
"value": "(*\n * Copyright (c) 2018-2021 Tarides <contact@tarides.com>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provid... | ocaml | chosen |
[
{
"from": "system",
"value": "Allow to customize list of targets in OCamlbuild plugin\n\nIgnore-this: fb327b24c4a9d6f8ef9c5abdaac68f57\n\ndarcs-hash:20090701084937-4d692-d9b504bd5d3d27cc8f334881a0eb938190d639e3.gz\n"
},
{
"from": "human",
"value": "\n(** Runtime support for autobuild/OCamlbuild\... | ocaml | chosen |
[
{
"from": "system",
"value": "Remove int_of_port which never used. It removes a warning during template\ncompilation.\n"
},
{
"from": "human",
"value": "let%server application_name = !%%%MODULE_NAME%%%_config.app_name\n\nlet%client application_name = Eliom_client.get_application_name ()\n\nlet%s... | ocaml | chosen |
[
{
"from": "system",
"value": "Add placeholders for missing definitions\n\nTriggered by `make -C examples/hello ocaml`\n"
},
{
"from": "human",
"value": "type heap = unit\n\n(* https://www.lexifi.com/blog/references-physical-equality *)\ntype 'a ref = {\n mutable contents: 'a;\n id: int\n}\n\nt... | ocaml | chosen |
[
{
"from": "system",
"value": "Use to_col_vecs as opposed to fold.\n"
},
{
"from": "human",
"value": "\nopen Lacaml.D\n\n(* column mean. *)\nlet col_mean n c = Vec.sum c /. n\n\n(* sum of squares diff of col *)\nlet sum_sq_dm c m = Vec.ssqr (Vec.add_const (-.m) c)\n\n(* column standard deviation ... | ocaml | chosen |
[
{
"from": "system",
"value": "Change script to export print_parsed function\n"
},
{
"from": "human",
"value": "\nlet f = \"A_nuc.txt\" ;;\nlet d = \"../foreign/IMGTHLA/alignments\" ;;\nlet mp = Mas_parser.from_file (Filename.concat d f) ;;\nlet just_gaps = (function Mas_parser.Gap _ -> true | _ ... | ocaml | chosen |
[
{
"from": "system",
"value": "Rename `ExistsCheck.to_string` to reflect its intent as a debugging utility\n\nReviewed By: dsainati1\n\nDifferential Revision: D10854252\n\nfbshipit-source-id: da490d69de44a7eaa555e69597f0e4bb1f62a393\n"
},
{
"from": "human",
"value": "(**\n * Copyright (c) 2013-pr... | ocaml | chosen |
[
{
"from": "system",
"value": "Change operator structure in the AST.\n"
},
{
"from": "human",
"value": "(* Auxiliary types *)\ntype type_name = string\ntype type_binders = type_name list\n\n(* Kind definition *)\n\n(* An atom cannot be parametrized by types. *)\n(* kind List: type -> type *)\n(* ... | ocaml | chosen |
[
{
"from": "system",
"value": "Add a test of bracket\n\nSigned-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@gmail.com>\n"
},
{
"from": "human",
"value": "open Webtest\n\nlet test_assert_true_ok () =\n assert_true \"should pass\" true\n\nlet test_assert_true_fail () =\n try\n a... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix bench for extraction when bigint points to num instead of zarith.\n"
},
{
"from": "human",
"value": "\n(* main file for ../test_extraction.mlw so that we *run* the extracted code *)\n\nopen Why3extract\nopen Test_extraction__TestExtraction\n\nlet b42 = Why3__Big... | ocaml | chosen |
[
{
"from": "system",
"value": "Document Arg_spec a bit more\n"
},
{
"from": "human",
"value": "open! Import\n\ntype 'a t =\n | A of string\n | As of string list\n | S of 'a t list\n | Concat of string * 'a t list (** Concatenation with a custom separator *)\n | Dep ... | ocaml | chosen |
[
{
"from": "system",
"value": "Remove incorrect assertion in vendored opam parser\n\nIt's a pain to maintain its correctness\n\nSigned-off-by: Rudi Grinberg <4c46c202a3b8207ad5740134b125aae40c6c67a8@gmail.com>\n"
},
{
"from": "human",
"value": "open OpamParserTypes\nlet main _lex _lexbuf fn =\n ... | ocaml | chosen |
[
{
"from": "system",
"value": "Document thread safety test a bit\n\n[skip ci]\n"
},
{
"from": "human",
"value": "(* This Source Code Form is subject to the terms of the Mozilla Public License,\n v. 2.0. If a copy of the MPL was not distributed with this file, You can\n obtain one at http://mo... | ocaml | chosen |
[
{
"from": "system",
"value": "Set lwt file descriptor to nonblocking.\n"
},
{
"from": "human",
"value": "open Lwt.Infix\n\ntype t = {\n fd : Lwt_unix.file_descr;\n packets : string list ref;\n}\n\nexternal opensock: string -> Unix.file_descr = \"caml_rawlink_open\"\nexternal readsock: Unix.fil... | ocaml | chosen |
[
{
"from": "system",
"value": "Add upper-bound on tls to avoid mirage-crypto\n\nIt needs to be initialised somehow. Might require upgrading the mirage\ntool.\n"
},
{
"from": "human",
"value": "(* Copyright (C) 2015, Thomas Leonard\n * See the README file for details. *)\n\nopen Mirage\n\nlet main... | ocaml | chosen |
[
{
"from": "system",
"value": "Revert \"Restore OCaml < 4.02 compatibility\"\n\nThis reverts commit 740a7db9d5099db2d0c63694cb0fad3e300e58bb.\n\nAs planned previously, drop hacks to support old OCaml versions.\n"
},
{
"from": "human",
"value": "(* Functions added in OCaml 4.02 *)\n\ntype bytes = ... | ocaml | chosen |
[
{
"from": "system",
"value": "Use Cstubs_inverted to avoid writing out function declarations manually.\n"
},
{
"from": "human",
"value": "open Ctypes\n\nlet _ =\n let fmt = Format.formatter_of_out_channel (open_out \"src/lib/cephes_stubs.c\") in\n (* NOTE: do NOT include <math.h>, this will co... | ocaml | chosen |
[
{
"from": "system",
"value": "Use ocamlc system config to determine if build should be static\n"
},
{
"from": "human",
"value": "module C = Configurator.V1\n\n\nlet process_output_of command =\n let chan = Unix.open_process_in command in\n let res = ref ([] : string list) in\n let rec process... | ocaml | chosen |
[
{
"from": "system",
"value": "Use 64-bit machdep in slicer (for now, as the sv-comp tasks are 64-bit)\n"
},
{
"from": "human",
"value": "(**************************************************************************)\n(* *)\n(* ... | ocaml | chosen |
[
{
"from": "system",
"value": "DECLARE PLUGIN \"$name\" === Declare ML Module \"$name\"\n"
},
{
"from": "human",
"value": "DECLARE PLUGIN \"tuto0\"\n\nopen Pp\nopen Ltac_plugin\n\nVERNAC COMMAND EXTEND HelloWorld CLASSIFIED AS QUERY\n| [ \"HelloWorld\" ] -> [ Feedback.msg_notice (strbrk Tuto0_mai... | ocaml | chosen |
[
{
"from": "system",
"value": "Stop installing the clock interface in mtime.clock.\n\nIt's no longer needed. Closes #42.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ocaml\n#use \"topfind\"\n#require \"topkg\"\nopen Topkg\n\nlet () =\n Pkg.describe \"mtime\" @@ fun c ->\n Ok [ Pkg.mllib \"... | ocaml | chosen |
[
{
"from": "system",
"value": "Remove last remaining win-specific validity checks from branch names\n"
},
{
"from": "human",
"value": "(*\n * Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix minimum versions for -no-code and -no-approx\n\nSigned-off-by: Rudi Grinberg <4c46c202a3b8207ad5740134b125aae40c6c67a8@gmail.com>\n"
},
{
"from": "human",
"value": "type t = int * int * int\n\nlet make x = x\n\nlet of_ocaml_config ocfg =\n Ocaml_config.version ... | ocaml | chosen |
[
{
"from": "system",
"value": "Use Mirage_types.BLOCK instead of the lwt derivation (deprecated)\n"
},
{
"from": "human",
"value": "(*\n * Copyright (C) Citrix Systems Inc.\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU Lesser Genera... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix salloc function in HST realization\n"
},
{
"from": "human",
"value": "\nlet get () = ()\nlet push_frame () = ()\nlet pop_frame () = ()\nlet salloc a r = ref r\nlet op_Colon_Equals r v = r := v\nlet op_Bang r = !r\n"
},
{
"from": "gpt",
"value": "\nle... | ocaml | chosen |
[
{
"from": "system",
"value": "Add explicit witness creationtime time zone\n\nRequired to pass witness linter: https://github.com/sosy-lab/sv-witnesses/pull/47.\n"
},
{
"from": "human",
"value": "open Unix\n\nlet iso8601_of_tm {tm_year; tm_mon; tm_mday; tm_hour; tm_min; tm_sec; _} =\n (* assumes... | ocaml | chosen |
[
{
"from": "system",
"value": "Generalize ANSI color table in MessageUtil\n"
},
{
"from": "human",
"value": "open GobConfig\n\nlet colors_on () = (* use colors? *)\n let c = get_string \"colors\" in\n c = \"always\" || c = \"auto\" && Unix.(isatty stdout)\n\nlet colorize ?on:(on=colors_on ()) m... | ocaml | chosen |
[
{
"from": "system",
"value": "Rename MEMORY tests to MEM\n\nIt's shorter to type `./test.native test MEM 7` then\n"
},
{
"from": "human",
"value": "(*\n * Copyright (c) 2013 Thomas Gazagnaire <thomas@gazagnaire.org>\n *\n * Permission to use, copy, modify, and distribute this software for any\n ... | ocaml | chosen |
[
{
"from": "system",
"value": "Remove un-needed (and un-working) links\n"
},
{
"from": "human",
"value": "(**************************************************************************)\n(* *)\n(* ... | ocaml | chosen |
[
{
"from": "system",
"value": "Add explicit 'connect' to interface\n"
},
{
"from": "human",
"value": "(*\n * Copyright (C) 2013 Citrix Systems Inc\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, provided that the abo... | ocaml | chosen |
[
{
"from": "system",
"value": "Change the default dir perm to 755\n"
},
{
"from": "human",
"value": "(* Copyright (c) 2013 Armaël Guéneau\n\n See the file LICENSE for copying permission.\n*)\n\nlet usage = \n\"Usage : stone [OPTIONS] [FOLDER]\nManage a stone static website located in FOLDER.\nI... | ocaml | chosen |
[
{
"from": "system",
"value": "Allow primes in variable names.\n"
},
{
"from": "human",
"value": "{\n open Parser\n}\n\n\nlet space = ' ' | '\\t' | '\\r'\n\nrule token = parse\n | \"coh\" { COH }\n | \"hyp\" { HYP }\n | \"check\" { CHECK }\n | \"let\" { LET }\n | \"eval\" { EVAL }\n | \"en... | ocaml | chosen |
[
{
"from": "system",
"value": "Use systemctl rather than service to restart gpumon\n\nSigned-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@citrix.com>\n"
},
{
"from": "human",
"value": "(*\n * Copyright (C) 2006-2013 Citrix Systems Inc.\n *\n * This program is free software; you can... | ocaml | chosen |
[
{
"from": "system",
"value": "Add logic to split into exons and brute for search for best\n"
},
{
"from": "human",
"value": "(* Old, deprecated, test of the parsing logic. *)\nlet f = \"A_nuc.txt\" ;;\nlet d = \"../foreign/IMGTHLA/alignments\" ;;\nlet mp = MSA.Parser.from_file (Filename.concat d... | ocaml | chosen |
[
{
"from": "system",
"value": "Document `Config.columns` in the interface\n"
},
{
"from": "human",
"value": "(** Configuration parameters *)\n\n(** Possible locations of prelude file *)\ntype prelude =\n | PreludeNone (* do not use a prelude, turned on by the --no-prelude *)\n (* l... | ocaml | chosen |
[
{
"from": "system",
"value": "Reorder the arguments to `view` to improve the layout (short arguments first).\n"
},
{
"from": "human",
"value": "let string = \n view \n ~read:string_of_char_ptr \n ~write:char_ptr_of_string \n (char ptr)\n"
},
{
"from": "gpt",
"value": "let s... | ocaml | chosen |
[
{
"from": "system",
"value": "[hack] Stop waiting for repo changes after 3 minutes and exit\n\nSummary: We had an *intended* infinite loop waiting waiting for repo changes but lets make it terminate and give an error.\n\nReviewed By: dabek\n\nDifferential Revision: D4279199\n\nfbshipit-source-id: d2f680e173... | ocaml | chosen |
[
{
"from": "system",
"value": "Tweak doc string for Ocaml_stdlib\n\nSigned-off-by: Rudi Grinberg <4c46c202a3b8207ad5740134b125aae40c6c67a8@gmail.com>\n"
},
{
"from": "human",
"value": "(** Extra information for the OCaml stdlib. Note: contrary to normal libraries,\n the library interface of th... | ocaml | chosen |
[
{
"from": "system",
"value": "Test des exceptions levees depuis un sighandler.\n\n\ngit-svn-id: e7e61699ce1738538ffebb75374fbea0924bc775@620 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02\n"
},
{
"from": "human",
"value": "let rec tak (x, y, z) =\n if x > y then tak(tak (x-1, y, z), tak (y-1, z, x), tak ... | ocaml | chosen |
[
{
"from": "system",
"value": "pangram: Make reference solution use String.fold_until.\n"
},
{
"from": "human",
"value": "open Base\n\nexception Finished of int\n\nlet is_pangram s = \n let alphabet_bits = (1 lsl 26) - 1 in\n let update_bits return b ch = \n let updated = \n if Char.is... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix syntax error in default_language function.\nReindent file.\n"
},
{
"from": "human",
"value": "open Lwt.Infix\nopen Types\n\n(* https://github.com/ocsigen/js_of_ocaml/blob/master/examples/hyperbolic/hypertree.ml *)\nlet default_language () =\n Js.to_string(\n ... | ocaml | chosen |
[
{
"from": "system",
"value": "Test again the HTTP backend on Travis\n"
},
{
"from": "human",
"value": "(*\n * Copyright (c) 2013 Thomas Gazagnaire <thomas@gazagnaire.org>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby grant... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix typo and use key expansion from X64.AES128 for now\n"
},
{
"from": "human",
"value": "let _ = CmdLineParser.parse_cmdline [(\"aes_key_expansion\", X64_AES.va_code_KeyExpansionStdcall); (\"gcm_encrypt\", X64_GCMencrypt.va_code_gcm_encrypt_stdcall); (\"gcm_decryp... | ocaml | chosen |
[
{
"from": "system",
"value": "[sledge] Refactor: Strengthen signature of Reg with type equations to Exp.Reg\n\nReviewed By: jvillard\n\nDifferential Revision: D21720974\n\nfbshipit-source-id: e5470a0c9\n"
},
{
"from": "human",
"value": "(*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *... | ocaml | chosen |
[
{
"from": "system",
"value": "Add explicit 'connect' to interface again\n\nWas lost in 1a4e6207.\n"
},
{
"from": "human",
"value": "(*\n * Copyright (c) 2014, Hannes Mehnert\n * Copyright (c) 2014 Anil Madhavapeddy <anil@recoil.org>\n * All rights reserved.\n *\n * Redistribution and use in sour... | ocaml | chosen |
[
{
"from": "system",
"value": "Revert \"Restore OCaml < 4.03 compatibility\"\n\nThis reverts commit 4bbb2da907cb14da29a2fa76e42c58725d44850e.\n\nAs planned previously, drop hacks to support old OCaml versions.\n"
},
{
"from": "human",
"value": "(* Functions added in OCaml 4.03 *)\n\ntype ('a,'b) ... | ocaml | chosen |
[
{
"from": "system",
"value": "Print unique identifiers for variables\n"
},
{
"from": "human",
"value": "module type Annotation =\nsig\n type t\n\n val print : t -> int -> Format.formatter -> unit\nend\n\nmodule Anonymous : Annotation with type t = unit =\nstruct\n type t = unit\n\n let print... | ocaml | chosen |
[
{
"from": "system",
"value": "Improve the detection of git urls\n"
},
{
"from": "human",
"value": "(***********************************************************************)\n(* *)\n(* Copyright 2012 OCamlPro ... | ocaml | chosen |
[
{
"from": "system",
"value": "Apply the Make functor instead the FS function (see the previous commit)\non git-mirage\n"
},
{
"from": "human",
"value": "module Net = Net\nmodule SHA1 = Git.Hash.Make(Digestif.SHA1)\nmodule FS = Fs\n\nmodule Store (X: Mirage_fs_lwt.S) = struct\n module F = Fs.Mak... | ocaml | chosen |
[
{
"from": "system",
"value": "Add beta versions of the compiler to the CI matrix\n"
},
{
"from": "human",
"value": "type version = Ocaml_version.t\n\nlet primary = Ocaml_version.Releases.latest\nlet recents = Ocaml_version.Releases.recent\n\nlet older_than_4_07 v =\n Ocaml_version.compare v Oca... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix missing function in the interface\n"
},
{
"from": "human",
"value": "(** FASTQ data. *)\n\n\ntype record = {\n name: string;\n sequence: string;\n comment: string;\n qualities: string;\n} \n\ntype parser\n\nval feed_line: parser -> string -> unit\n\nval next... | ocaml | chosen |
[
{
"from": "system",
"value": "Remove some invalid domains from domaintest\n\n* Integers isn't a lattice.\n* Lifted isn't an abstraction of IntegerSet.\n"
},
{
"from": "human",
"value": "open Defaults (* CircInterval needs initialized conf *)\n\nlet domains: (module Lattice.S) list = [\n (* (mod... | ocaml | chosen |
[
{
"from": "system",
"value": "Change encrypted format to more compact JSON format\n"
},
{
"from": "human",
"value": "module GCM = Nocrypto.Cipher_block.AES.GCM\nmodule Rng = Nocrypto.Rng\n\ntype encData = {\n iv: Cstruct.t;\n data: Cstruct.t;\n} [@@deriving sexp]\n\nmodule Make\n (K : S.EncKe... | ocaml | chosen |
[
{
"from": "system",
"value": "Add edit and set feature to counter example\n"
},
{
"from": "human",
"value": "open Hyperapp\n\ntype msg = Increment | Decrement | Reset | Edit of string | Set\n\nlet initModel = 0, \"0\"\n\nlet view (value, edit) msg =\n let text = \"Current value is: \" ^ string_... | ocaml | chosen |
[
{
"from": "system",
"value": "Support taking PPX options from BuckleScript\n\nFixes #310.\n"
},
{
"from": "human",
"value": "let () =\n let argv =\n match Sys.argv with\n | [|program; input_file; output_file|] ->\n [|\n program;\n input_file;\n \"-o\"; output_fil... | ocaml | chosen |
[
{
"from": "system",
"value": "Add error demo to mad demo.\n"
},
{
"from": "human",
"value": "\n(*\nocamlbuild -use-ocamlfind -pkgs lacaml,ocephes,lbfgs -I src/scripts/ -I src/lib/ fishers_mad_argument.native\n*)\n\nopen Oml.Util\nmodule D = Oml.Statistics.Descriptive\nmodule S = Oml.Statistics.S... | ocaml | chosen |
[
{
"from": "system",
"value": "Add helper functions for handling int32s\n\nSigned-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@citrix.com>\n"
},
{
"from": "human",
"value": "type argument =\n | Int32 of int32\n | Float32 of float\n | Str of string\n | Blob of string\n\nlet enco... | ocaml | chosen |
[
{
"from": "system",
"value": "Store access token in local storage\n"
},
{
"from": "human",
"value": "(* Copyright (C) 2015, Thomas Leonard\n * See the README file for details. *)\n\n(* RPC over XMLHttpRequest, getting the access token from the user if necessary. *)\n\nopen Lwt\n\nmodule XHR = Co... | ocaml | chosen |
[
{
"from": "system",
"value": "build: Use ccomp_type to determine C compiler\n\nThis library did not build properly on FreeBSD because of the hard-coded\nC compiler in myocamlbuild.ml. The file now checks ccomp_type to\ndetermine the C compiler to use, which should make the library more\nportable.\n\nTested ... | ocaml | chosen |
[
{
"from": "system",
"value": "Use the new Storage_skeleton module\n\nSigned-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@eu.citrix.com>\n"
},
{
"from": "human",
"value": "(*\n * Copyright (C) Citrix Systems Inc.\n *\n * This program is free software; you can redistribute it and/... | ocaml | chosen |
[
{
"from": "system",
"value": "Add one more missing `MacOSX match case\n"
},
{
"from": "human",
"value": "open Mirage\n\nlet mode =\n let x = try Unix.getenv \"FS\" with Not_found -> \"crunch\" in\n match x with\n | \"fat\" -> `Fat\n | \"crunch\" -> `Crunch\n | x -> failwith (\"Unknown FS mo... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix versions test with opam2\n"
},
{
"from": "human",
"value": "type version = (string * string)\n\nlet primary = (\"4.05.0\", \"4.05\")\nlet recents = [(\"4.03.0\",\"4.03\");(\"4.04.2\",\"4.04\");primary;(\"4.06.0\",\"4.06\")]\n\nlet to_string (_, v) = v\n\nlet doc... | ocaml | chosen |
[
{
"from": "system",
"value": "[hack] Fix random generation of names\n\nSummary:\nTest `hphp/hack/test/integration:run_watchman_event_watcher_client_test` was failing, seemingly because generation of temporary directory names wasn't getting seeeded\ncorrectly by `Random_id.short_name ()`.\n\nHaven't complete... | ocaml | chosen |
[
{
"from": "system",
"value": "[hack] Fix random id bug when it contains slashes\n\nSummary:\nHack uses random ids in many places. Some of them are used for filenames, but turn out to have `/`es in them which causes random occasional failures.\n\nGets rid of random ids with `/`\n\nImpact on Hack is that the ... | ocaml | chosen |
[
{
"from": "system",
"value": "Remove Ext.require callback from helloext\n"
},
{
"from": "human",
"value": "let () =\n let panel_conf = Ext_panel_Panel.config\n ~title:\"Hello Ext\"\n ~html:\"Hello! Welcome to Ext JS.\"\n () in\n\n let... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix test by using labels. Still need to figure out why they are necessary.\n\n"
},
{
"from": "human",
"value": "let _ =\n match Unix.fork () with\n | 0 ->\n (let fd = Unix.openfile \"/bin/ls\" [Unix.O_RDONLY] 0o640 in\n try Fd.fexecve fd [| \"/bin/ls\"; ... | ocaml | chosen |
[
{
"from": "system",
"value": "[PR] Drop Hack_caml.Sort module, no longer exists in 4.08\n\nSummary:\nHi!\n\nI was trying to use `flow_parser` on a project with OCaml 4.08 and realized that the `Hack_caml` module re-exports the now removed `Sort` module.\n\nFigured I'd open a PR instead of keep the change in... | ocaml | chosen |
[
{
"from": "system",
"value": "Rename the docteur example to static_kv_ro\n"
},
{
"from": "human",
"value": "open Mirage\n\nlet filename =\n let doc = Key.Arg.info ~doc:\"The filename to print out.\" [ \"filename\" ] in\n Key.(create \"filename\" Arg.(required string doc))\n\nlet unikernel =\n ... | ocaml | chosen |
[
{
"from": "system",
"value": "Use ANSI color table in GobFormat\n"
},
{
"from": "human",
"value": "\nlet pp_set_ansi_color_tags ppf =\n let stag_functions = Format.pp_get_formatter_stag_functions ppf () in\n let stag_functions' = {stag_functions with\n mark_open_stag = (function\n ... | ocaml | chosen |
[
{
"from": "system",
"value": "Remove unused open in GobOption\n"
},
{
"from": "human",
"value": "open Prelude\n\nlet exists p = function\n | Some x -> p x\n | None -> false\n\nlet for_all p = function\n | Some x -> p x\n | None -> true\n"
},
{
"from": "gpt",
"value": "let exists ... | ocaml | chosen |
[
{
"from": "system",
"value": "Revert \"have tracing example explicitly call STACKV4.listen\"\n\nThis reverts commit 08308ba01eabca4fec4f98250a12028ce6779da8. The\nchange necessitating this one was backed out of mirage-tcpip.\n"
},
{
"from": "human",
"value": "(* This unikernel is based on traci... | ocaml | chosen |
[
{
"from": "system",
"value": "Remove introduced '>>' binding, and use Lwt.>>= instead\n"
},
{
"from": "human",
"value": "(* error response *)\nexception Error of string\n\nmodule Make(IO : Make.IO)(Client : module type of Client.Make(IO)) = struct\n open Client\n\n let (>>=) = IO.(>>=)\n let ... | ocaml | chosen |
[
{
"from": "system",
"value": "Add padding and concat signatures\n"
},
{
"from": "human",
"value": "type t\n\nval size : t -> int\n\nval of_int : int -> t\n\nval of_char : char -> t\n\nval of_string : string -> t\n\nval to_int : t -> int\n\nval to_char : t -> char\n\nval to_ascii : t -> string\n\... | ocaml | chosen |
[
{
"from": "system",
"value": "Add check_should_exit to the end of with_no_cancellations\n\nSummary:\nIf you want a group of operations that can touch the shared heaps to be atomic, you can wrap them with `with_no_cancellations` to prevent cancellations from taking place during that operation. Unfortunately,... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix reference to InnerIO.fprintf in Result\n"
},
{
"from": "human",
"value": "\nopen BatPervasives\ntype ('a, 'b) t = ('a, 'b) BatPervasives.result =\n | Ok of 'a\n | Bad of 'b\n\nlet catch f x =\n try Ok (f x)\n with e -> Bad e\n\nlet of_option = function\n | ... | ocaml | chosen |
[
{
"from": "system",
"value": "Add the atom flux service\n"
},
{
"from": "human",
"value": "module Html = Eliom_pervasives.HTML5\n\nlet main_service =\n Eliom_output.Html5.register_service\n ~path: [\"\"]\n ~get_params: Eliom_parameters.unit\n (fun () () ->\n Lwt.return\n (H... | ocaml | chosen |
[
{
"from": "system",
"value": "Refresh heap implementation with new untyped view of references\n"
},
{
"from": "human",
"value": "type heap = unit\n\n(* https://www.lexifi.com/blog/references-physical-equality *)\ntype 'a ref = {\n mutable contents: 'a;\n id: int\n}\n\ntype ('a, 'b) mref = 'a r... | ocaml | chosen |
[
{
"from": "system",
"value": "Remove an unused module open\n\nSigned-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@gmail.com>\n"
},
{
"from": "human",
"value": "open Webtest.Suite\nopen Webtest.Utils\n\nlet test_bracket_succeed () =\n let state = ref `uninitialised in\n let setup... | ocaml | chosen |
[
{
"from": "system",
"value": "Make Vylist.replace raise Not_found for nonexistent elements.\n"
},
{
"from": "human",
"value": "let rec find p xs =\n match xs with\n | [] -> None\n | x :: xs' -> if (p x) then (Some x)\n else find p xs'\n\nlet rec remove p xs =\n match... | ocaml | chosen |
[
{
"from": "system",
"value": "[reconstructed] Make newer nroffs behave in the traditional way we expect.\n"
},
{
"from": "human",
"value": "let filewrite fn st =\n let o = open_out fn in\n output_string o st;\n close_out o;\n Printf.fprintf stderr \"Output written on %s (%d bytes)\\n%t\"\n ... | ocaml | chosen |
[
{
"from": "system",
"value": "Initialize the logger, will need more work for syslog.\n"
},
{
"from": "human",
"value": "let hdhcpd debug verbose = `Ok\n\n(* Parse command line and start the ball *)\nopen Cmdliner\nlet cmd =\n let debug = Arg.(value & flag & info [\"d\" ; \"debug\"]\n ... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix build: add 'originator' param to Session.login_with_password\n\nWe made a change to the Session.login_with_password API call, so\nthat it takes an optional argument for the \"originator\" of the\nAPI call. This is an optional argument on the wire-protocol, but\nthe ocaml bi... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix a possible crash by catching an exception Unix_error with 'opendir' in Dirs.ls when a subdirectory can't be accessed due to permissions for example\n"
},
{
"from": "human",
"value": "(* List the subfolders of a folder.\n * The head of the list returned is the fo... | ocaml | chosen |
[
{
"from": "system",
"value": "Document the return type of Dep_service.dependent_files\n\nReviewed By: samwgoldman\n\nDifferential Revision: D5789904\n\nfbshipit-source-id: 25b8654881c5d03803eda3f9a24c9611b4d97dc7\n"
},
{
"from": "human",
"value": "(**\n * Copyright (c) 2013-present, Facebook, In... | ocaml | chosen |
[
{
"from": "system",
"value": "Use better types for message\n"
},
{
"from": "human",
"value": "open Amqp_spec.Basic\n\ntype message = (Content.t * string)\n\ntype t =\n { delivery_tag : int;\n redelivered : bool;\n exchange : string;\n routing_key : string;\n message: message;\n }\n... | ocaml | chosen |
[
{
"from": "system",
"value": "Add Containers.Monomorphic and include it by default\n"
},
{
"from": "human",
"value": "\n(* This file is free software, part of containers. See file \"license\" for more details. *)\n\n(** {1 Drop-In replacement to Stdlib} *)\n\nmodule Array = CCArray\nmodule Array... | ocaml | chosen |
[
{
"from": "system",
"value": "Allow to set-up the IP address on the command line\n"
},
{
"from": "human",
"value": "open Mirage\n\nlet main =\n foreign \"Dispatch.Main\" (console @-> http @-> clock @-> job)\n\nlet ipv4_config =\n let address = Ipaddr.V4.of_string_exn \"10.0.0.10\" in\n let ne... | ocaml | chosen |
[
{
"from": "system",
"value": "Make Refinement API accept typed AST as well\n\nSummary: It doesn't matter functionality wise for refinement.ml if the AST is typed or not. So allow the typed AST to be able to be passed.\n\nReviewed By: mroch\n\nDifferential Revision: D21343900\n\nfbshipit-source-id: 6c6a882cf... | ocaml | chosen |
[
{
"from": "system",
"value": "Update errors on User module\n"
},
{
"from": "human",
"value": "(*\n * Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>\n * and Romain Calascibetta <romain.calascibetta@gmail.com>\n *\n * Permission to use, copy, modify, and distribute this software... | ocaml | chosen |
[
{
"from": "system",
"value": "Extend mandatory test to test on_return message delivery\n"
},
{
"from": "human",
"value": "open Amqp_thread\nopen Amqp\n\nlet handler var { Message.message = (_, body); _ } = Ivar.fill var body; return ()\n\nlet test =\n Connection.connect ~id:\"fugmann\" \"localh... | ocaml | chosen |
[
{
"from": "system",
"value": "Use new inflater and instantiate Deflate module\n"
},
{
"from": "human",
"value": "open Decompress\n\nmodule Input =\n struct\n type t = Pervasives.in_channel\n\n let std = Pervasives.stdin\n\n let read_byte = Pervasives.input_byte\n let input ch n =\n ... | ocaml | chosen |
[
{
"from": "system",
"value": "Add \\x1b escape to XmlUtil for chrony\n"
},
{
"from": "human",
"value": "(* XML escape extracted here to avoid dependency cycle:\n CilType -> Goblintutil -> GobConfig -> Tracing -> Node -> CilType *)\n\nlet escape (x:string):string =\n (* Safe to escape all thes... | ocaml | chosen |
[
{
"from": "system",
"value": "Add link to explanation of Odoc__alias\n\n[skip ci]\n"
},
{
"from": "human",
"value": "module Compat = Odoc__compat\nmodule Html = Odoc__html\nmodule Loader = Odoc__loader\nmodule Model = Odoc__model\nmodule Odoc = Odoc__odoc\nmodule Parser_ = Odoc__parser\nmodule X... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix testing diff on 4.05 and 4.06\n"
},
{
"from": "human",
"value": "module Bisect_visit___source___ml =\n struct\n let ___bisect_visit___ =\n let point_definitions =\n \"\\132\\149\\166\\190\\000\\000\\000\\t\\000\\000\\000\\003\\000\\000\\000\\t\\0... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix warnings when tls is missing\n"
},
{
"from": "human",
"value": "module Client = struct\n let connect ?src host sa =\n Lwt.fail_with \"Tls not available\"\nend\n\nmodule Server = struct\n let init' ?backlog ?stop ?timeout tls sa callback =\n Lwt.fail_with... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix some warnings with the dummy lwt unix ssl module\n"
},
{
"from": "human",
"value": "(*\n * Copyright (c) 2012-2014 Anil Madhavapeddy <anil@recoil.org>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee i... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix the compilation of test.\n\nSeems that they still seem to work!\n"
},
{
"from": "human",
"value": "open Lib\nopen Git.Model\nopen Git.Backend\n\nlet () =\n let t = Git.Store.create (File.Dirname.of_string \".git\") in\n Git.Store.dump t;\n Git.View.to_dot t (... | ocaml | chosen |
[
{
"from": "system",
"value": "Fix the install file generation so pinning this repo works\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ocaml\n#use \"topfind\"\n#require \"topkg\"\nopen Topkg\n\nlet () =\n Pkg.describe \"mirage_ci\" @@ fun c ->\n Ok [\n Pkg.lib \"src/mirage-ci.mllib\";\n... | ocaml | chosen |
[
{
"from": "system",
"value": "Add constructors for operator, constant and rule.\n"
},
{
"from": "human",
"value": "(* Auxiliary types *)\ntype type_name = string\ntype type_binders = type_name list\n\n(* Kind definition *)\n\n(* An atom cannot be parametrized by types. *)\n(* kind List: type -> ... | ocaml | chosen |
[
{
"from": "system",
"value": "Add an other dispatch backend\n"
},
{
"from": "human",
"value": "(*\n * Copyright (c) 2013 Thomas Gazagnaire <thomas@gazagnaire.org>\n *\n * Permission to use, copy, modify, and distribute this software for any\n * purpose with or without fee is hereby granted, prov... | ocaml | chosen |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7