hexsha
stringlengths
40
40
size
int64
3
1.05M
ext
stringclasses
163 values
lang
stringclasses
53 values
max_stars_repo_path
stringlengths
3
945
max_stars_repo_name
stringlengths
4
112
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
float64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
945
max_issues_repo_name
stringlengths
4
113
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
float64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
945
max_forks_repo_name
stringlengths
4
113
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
float64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.05M
avg_line_length
float64
1
966k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
440328b6cd67fc6ba300ac721b01788de272c2bc
4,378
ml
OCaml
bin/print_rules.ml
dannywillems/dune
19f3a4a3db93702034c5227517b3e96e89fe5d84
[ "MIT" ]
4
2020-02-04T15:33:29.000Z
2020-02-04T21:37:09.000Z
src/cli/print_rules.ml
samoht/dune-mirage
bb2300c1859c452a4140fa33e3afb3c6b755350c
[ "MIT" ]
null
null
null
src/cli/print_rules.ml
samoht/dune-mirage
bb2300c1859c452a4140fa33e3afb3c6b755350c
[ "MIT" ]
null
null
null
open Stdune open Import let doc = "Dump internal rules." let man = [ `S "DESCRIPTION" ; `P {|Dump Dune internal rules for the given targets. If no targets are given, dump all the internal rules.|} ; `P {|By default the output is a list of S-expressions, one S-expression per rul...
32.42963
80
0.61238
aa18645c8bbea13384d75bfacb37159095e655e6
774
ml
OCaml
vendor/bonsai/examples/rpgdice/bin/dropdown_menu.ml
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
8
2020-09-16T01:37:52.000Z
2021-12-17T03:01:18.000Z
vendor/bonsai/examples/rpgdice/bin/dropdown_menu.ml
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
2
2020-11-02T15:17:31.000Z
2021-01-08T10:29:59.000Z
vendor/bonsai/examples/rpgdice/bin/dropdown_menu.ml
chambart/memtrace_viewer_with_deps
3ab670c89c934e445a1f470a2cc70c3bb17c0d20
[ "MIT" ]
5
2020-10-08T13:26:18.000Z
2021-12-17T03:02:23.000Z
open! Core_kernel open! Async_kernel open! Import include Dropdown_menu_intf module Make (Enum : Enum) = struct module T = struct module Input = Unit module Model = Enum module Action = struct type t = Set_to of Model.t [@@deriving sexp_of] end module Result = struct type t = Enum.t...
21.5
83
0.639535
1735bf9e9a8de9302510d606a533c54d8c0786de
4,436
mli
OCaml
ocaml_typing/406/typeclass.mli
hartmut27/reason-language-server
a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204
[ "MIT" ]
961
2020-09-15T11:01:50.000Z
2022-03-26T00:25:17.000Z
ocaml_typing/406/typeclass.mli
hartmut27/reason-language-server
a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204
[ "MIT" ]
439
2018-05-25T21:16:18.000Z
2021-12-03T11:28:10.000Z
ocaml_typing/406/typeclass.mli
hartmut27/reason-language-server
a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204
[ "MIT" ]
107
2018-05-30T23:53:50.000Z
2022-01-10T10:50:53.000Z
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
35.488
76
0.616997
173859e67c0d472efcf41f9a05f52283b4434b18
632
ml
OCaml
main.ml
Ekdohibs/toy-smt
6ac0d4665640393858427fd994d7840c77b4853b
[ "MIT" ]
3
2019-02-22T02:44:56.000Z
2019-07-25T14:00:50.000Z
main.ml
Ekdohibs/toy-smt
6ac0d4665640393858427fd994d7840c77b4853b
[ "MIT" ]
null
null
null
main.ml
Ekdohibs/toy-smt
6ac0d4665640393858427fd994d7840c77b4853b
[ "MIT" ]
null
null
null
open Format let in_chan = let file = ref None in let set_file s = file := Some s in Arg.parse Options.spec set_file Options.usage; match !file with | Some "-" -> stdin | Some f -> open_in f | None -> Arg.usage Options.spec Options.usage; exit 1 let () = Debug.protect (fun () -> let (nvars,...
23.407407
66
0.60443
aa26dee5e7ca482683744f4673e3dce95a74bb42
5,593
mli
OCaml
lib/pcap.mli
richardclegg/ocaml-pcap
a060225aee9e7912ab2ea14210c6392bec88ed5c
[ "0BSD" ]
1
2021-04-25T11:14:15.000Z
2021-04-25T11:14:15.000Z
lib/pcap.mli
richardclegg/ocaml-pcap
a060225aee9e7912ab2ea14210c6392bec88ed5c
[ "0BSD" ]
null
null
null
lib/pcap.mli
richardclegg/ocaml-pcap
a060225aee9e7912ab2ea14210c6392bec88ed5c
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2012 Anil Madhavapeddy <anil@recoil.org> * Copyright (C) 2012 Citrix Systems Inc * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies....
32.517442
79
0.696764
aaed78e2913b2a825f987a6af1396a43de34b421
133
ml
OCaml
data/derived/comb/progs/unify/prog3811.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
4
2017-07-04T22:30:05.000Z
2021-03-29T14:44:52.000Z
data/derived/sp14/progs/unify/prog3811.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog3811.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec listReverse l = let reverseHelper r = match l with | [] -> l | h::t -> listReverse t (h :: r) in reverseHelper [];;
22.166667
62
0.578947
aaaf8d03e302e81088bdc192ccf65df892634b6c
1,563
ml
OCaml
interprocedural/test/registrationTest.ml
yuhonghong66/pyre-check
00690c8de631daaf43e07d3f289aa9ff2dfa35bf
[ "MIT" ]
1
2019-05-07T15:03:58.000Z
2019-05-07T15:03:58.000Z
interprocedural/test/registrationTest.ml
yuhonghong66/pyre-check
00690c8de631daaf43e07d3f289aa9ff2dfa35bf
[ "MIT" ]
null
null
null
interprocedural/test/registrationTest.ml
yuhonghong66/pyre-check
00690c8de631daaf43e07d3f289aa9ff2dfa35bf
[ "MIT" ]
null
null
null
(** Copyright (c) 2016-present, Facebook, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. *) open Core open OUnit2 open Interprocedural module SimpleAnalysis = Interprocedural.Result.Make(struct type result = string type c...
24.421875
89
0.682662
17196c0084b2042d07072ffe392f336cad199b35
61,965
ml
OCaml
src/Simplify.ml
concatime/kremlin
7e02ba7022d8425377e9cb15c111a3d8a7e0912e
[ "Apache-2.0" ]
null
null
null
src/Simplify.ml
concatime/kremlin
7e02ba7022d8425377e9cb15c111a3d8a7e0912e
[ "Apache-2.0" ]
null
null
null
src/Simplify.ml
concatime/kremlin
7e02ba7022d8425377e9cb15c111a3d8a7e0912e
[ "Apache-2.0" ]
null
null
null
(* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. *) (* Licensed under the Apache 2.0 License. *) (** This module rewrites the original AST to send it into Low*, the subset we * know how to translate to C. *) open Ast open DeBruijn open Warn open PrintAst.Ops open Helpers (* Count the number o...
36.17338
140
0.607214
8a6b4ac1023080093b2f055dbaf18f0af4aa93be
719
ml
OCaml
lib/util.ml
rafacm/aws-lambda-ocaml-runtime
57688862c3471e01ac8f7fc7a98debf548fe752c
[ "MIT" ]
null
null
null
lib/util.ml
rafacm/aws-lambda-ocaml-runtime
57688862c3471e01ac8f7fc7a98debf548fe752c
[ "MIT" ]
null
null
null
lib/util.ml
rafacm/aws-lambda-ocaml-runtime
57688862c3471e01ac8f7fc7a98debf548fe752c
[ "MIT" ]
null
null
null
module StringMap = struct include Map.Make (String) let find_opt k t = match find k t with v -> Some v | exception Not_found -> None let to_yojson a_to_yojson t = let items = List.map (fun (key, v) -> key, a_to_yojson v) (bindings t) in `Assoc items let of_yojson a_of_yojson = function | `Ass...
23.193548
77
0.52573
aa9b009d51850bddc78d9882d53b5fb40867901d
8,228
ml
OCaml
src/parser_utils/output/printers/__tests__/pretty_printer_test.ml
jiaweihli/flow
cb9d84618326e0edff4bb2252378e57ef682774c
[ "MIT" ]
1
2020-07-11T17:49:59.000Z
2020-07-11T17:49:59.000Z
src/parser_utils/output/printers/__tests__/pretty_printer_test.ml
jiaweihli/flow
cb9d84618326e0edff4bb2252378e57ef682774c
[ "MIT" ]
null
null
null
src/parser_utils/output/printers/__tests__/pretty_printer_test.ml
jiaweihli/flow
cb9d84618326e0edff4bb2252378e57ef682774c
[ "MIT" ]
null
null
null
(** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open Layout open OUnit2 let space_regex = Str.regexp_string " " let flat_pretty_space = IfBreak (Empty, pretty_space) let asser...
33.721311
103
0.447618
aa1776833a62befc0fb074969bd16c91a9051d12
13,857
ml
OCaml
src/lib/prover/prover.ml
definitiontv/andrea
257efbf08d3844be86d9da67c843e35cc46c846d
[ "Apache-2.0" ]
null
null
null
src/lib/prover/prover.ml
definitiontv/andrea
257efbf08d3844be86d9da67c843e35cc46c846d
[ "Apache-2.0" ]
null
null
null
src/lib/prover/prover.ml
definitiontv/andrea
257efbf08d3844be86d9da67c843e35cc46c846d
[ "Apache-2.0" ]
null
null
null
open Core open Async open Mina_base open Mina_state open Mina_transition open Blockchain_snark module type S = Intf.S module Extend_blockchain_input = struct [%%versioned module Stable = struct [@@@no_toplevel_latest_type] module V1 = struct type t = { chain: Blockchain.Stable.V1.t ...
35.530769
96
0.604243
bcc5b0e8787c714df255680f40ac9d7c9c53dc4f
13,318
ml
OCaml
infer/src/clang/cFrontend_checkers_main.ml
ryoon/infer
7b8dc59386529801f9a7fb67ead94053dbf53b42
[ "BSD-3-Clause" ]
null
null
null
infer/src/clang/cFrontend_checkers_main.ml
ryoon/infer
7b8dc59386529801f9a7fb67ead94053dbf53b42
[ "BSD-3-Clause" ]
null
null
null
infer/src/clang/cFrontend_checkers_main.ml
ryoon/infer
7b8dc59386529801f9a7fb67ead94053dbf53b42
[ "BSD-3-Clause" ]
null
null
null
(* * Copyright (c) 2016 - present Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *) open! IStd...
46.729825
100
0.724658
aac43cbc103e0b95fe9b42bd97511fbc48f1d852
475
mli
OCaml
hphp/hack/src/hhbc/emit_symbol_refs.mli
enjmusic/hhvm
5e931f1beea84a609fbe71872a8f2101ee516d86
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/emit_symbol_refs.mli
enjmusic/hhvm
5e931f1beea84a609fbe71872a8f2101ee516d86
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/emit_symbol_refs.mli
enjmusic/hhvm
5e931f1beea84a609fbe71872a8f2101ee516d86
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) val empty_symbol_refs : Hhas_symbol_refs.t val get_symbol_refs : unit -> Hhas_symbol_refs.t val add_include : Hhas_sy...
27.941176
66
0.734737
171db0b2d15e890fbf50412d3c0c5f0bf7ca34ea
827
mli
OCaml
src/lib/truth/truth.mli
ansonla3/coda
5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc
[ "Apache-2.0" ]
null
null
null
src/lib/truth/truth.mli
ansonla3/coda
5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc
[ "Apache-2.0" ]
null
null
null
src/lib/truth/truth.mli
ansonla3/coda
5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc
[ "Apache-2.0" ]
null
null
null
module True : sig module Stable : sig module V1 : sig type t [@@deriving version] end module Latest = V1 end type t = Stable.V1.t end module False : sig module Stable : sig module V1 : sig type t [@@deriving version] end module Latest = V1 end type t = Stable.V1.t en...
17.595745
61
0.608222
1722e6c91126a1952732ab5b7294c9f43e3a9411
1,120
ml
OCaml
test/src/callbacks.ml
xorpse/ocaml-rs
88989743291188147bbb80d054da768855d93e3f
[ "0BSD" ]
1
2022-03-21T15:43:55.000Z
2022-03-21T15:43:55.000Z
test/src/callbacks.ml
mrmr1993/ocaml-rs
8bfcd27b0abce77a8612fc77f4f30526bb1c8970
[ "ISC" ]
null
null
null
test/src/callbacks.ml
mrmr1993/ocaml-rs
8bfcd27b0abce77a8612fc77f4f30526bb1c8970
[ "ISC" ]
null
null
null
external apply1: ('a -> 'a) -> 'a -> 'a = "apply1" external apply3: ('a -> 'a) -> 'a -> 'a = "apply3" let%test "apply1 float" = Util.check_leaks (fun () -> apply1 (( +. ) 1.0) 2.5 = 3.5) let%test "apply3 float" = Util.check_leaks (fun () -> apply3 (( +. ) 1.0) (-1.0) = 2.0) let%test "apply3 string" = Util.check_leaks ...
38.62069
133
0.548214
aa05b7485dffcce405d07ad468013df1354d57bf
8,219
ml
OCaml
hphp/hack/src/typing/typing_async.ml
lavagetto/hhvm
f9ed7ff466944c533733f3d49dcf6405c22ce57d
[ "PHP-3.01", "Zend-2.0" ]
3
2015-07-05T07:32:31.000Z
2015-07-13T02:31:10.000Z
hphp/hack/src/typing/typing_async.ml
h4ck3rm1k3/hhvm
79e045f3ad1cbe079ff15c163131eb184db025f9
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_async.ml
h4ck3rm1k3/hhvm
79e045f3ad1cbe079ff15c163131eb184db025f9
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) open Core open...
39.705314
94
0.645456
aa5ef05186852827a0a5b226ae3c0ce65c93417e
159,692
ml
OCaml
src/Fmt_ast.ml
Wilfred/ocamlformat
3b41b2597ea98c5abba3744a280b286a7edbd99d
[ "MIT" ]
null
null
null
src/Fmt_ast.ml
Wilfred/ocamlformat
3b41b2597ea98c5abba3744a280b286a7edbd99d
[ "MIT" ]
null
null
null
src/Fmt_ast.ml
Wilfred/ocamlformat
3b41b2597ea98c5abba3744a280b286a7edbd99d
[ "MIT" ]
null
null
null
(********************************************************************** * * * OCamlFormat * * * * Copyright (c) 2017-present, ...
37.976694
79
0.512631
bcc7ac94f638a60fed8f18fc45e3dbe8969440fd
1,719
ml
OCaml
src/lib_webassembly/interpreter/exec/f32_convert.ml
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/lib_webassembly/interpreter/exec/f32_convert.ml
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/lib_webassembly/interpreter/exec/f32_convert.ml
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
(* WebAssembly-compatible type conversions to f32 implementation *) let demote_f64 x = let xf = F64.to_float x in if xf = xf then F32.of_float xf else let nan64bits = F64.to_bits x in let sign_field = Int64.(shift_left (shift_right_logical nan64bits 63) 31) in let significand_field = Int64.(shift_right_logic...
35.8125
85
0.734148
aa55a92847390cdb1e1f19291f4fa68b460b3937
10,264
mli
OCaml
duniverse/opam/src/format/opamFormat.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/opam/src/format/opamFormat.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
duniverse/opam/src/format/opamFormat.mli
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
null
null
null
(**************************************************************************) (* *) (* Copyright 2012-2020 OCamlPro *) (* Copyright 2012 INRIA *) (* ...
35.271478
80
0.612822
aa24fa12d5aaaacd9dc102186b59712dcb4dc4c5
3,336
ml
OCaml
src/support/ocaml/evp/test/test.ml
dheyvidlee/FStar
e369b305ba90f484f03f3b2c14b9d2e1613cddb2
[ "Apache-2.0" ]
1
2021-06-23T04:23:18.000Z
2021-06-23T04:23:18.000Z
src/support/ocaml/evp/test/test.ml
veikkoeeva/FStar
c2963474989b79c95197e4d4c3b7a96927584a2d
[ "Apache-2.0" ]
null
null
null
src/support/ocaml/evp/test/test.ml
veikkoeeva/FStar
c2963474989b79c95197e4d4c3b7a96927584a2d
[ "Apache-2.0" ]
null
null
null
(* -------------------------------------------------------------------- *) let tohex (s : string) = let buffer = Buffer.create (2 * (String.length s)) in for i = 0 to (String.length s) - 1 do Buffer.add_string buffer (Printf.sprintf "%.2x" (Char.code s.[i])); done; Buffer.contents buffer le...
33.36
74
0.655875
1702c4a64b952856673ef6a157b107c693c5fe4e
10,518
ml
OCaml
src/Util.ml
uwplse/reincarnate-aec
42ce42bc426379b6aa1776a18d6b586f653a78ac
[ "MIT" ]
10
2018-09-24T17:06:30.000Z
2022-01-02T22:43:52.000Z
src/Util.ml
uwplse/reincarnate-aec
42ce42bc426379b6aa1776a18d6b586f653a78ac
[ "MIT" ]
null
null
null
src/Util.ml
uwplse/reincarnate-aec
42ce42bc426379b6aa1776a18d6b586f653a78ac
[ "MIT" ]
1
2020-05-09T16:20:47.000Z
2020-05-09T16:20:47.000Z
open Logging (* register exception printers *) let () = Printexc.register_printer (function | Failure s -> Some ("Failure:\n" ^ s) | _ -> None) (** {2 Combinators} *) (** Ignores the result of [f x] and returns [x] *) let (>>) x f = ignore (f x); x let (<|) f g x = f (g x) (** [flip f a b] swaps the orde...
21.958246
83
0.573113
aa001dd4da494543c514030c65b78bc12d50062b
147
mli
OCaml
lib/Ast_to_Mir.mli
rybern/stanc3
feedf21c01281b62deca40858f9e82c32d3d6df4
[ "BSD-3-Clause" ]
null
null
null
lib/Ast_to_Mir.mli
rybern/stanc3
feedf21c01281b62deca40858f9e82c32d3d6df4
[ "BSD-3-Clause" ]
1
2020-09-27T15:32:51.000Z
2020-09-29T23:31:06.000Z
lib/Ast_to_Mir.mli
rybern/stanc3
feedf21c01281b62deca40858f9e82c32d3d6df4
[ "BSD-3-Clause" ]
null
null
null
(** Translate from the AST to the MIR *) val trans_prog : string -> Ast.typed_program -> (Mir.expr_typed_located, Mir.stmt_loc) Mir.prog
21
52
0.687075
1731ca6bb5d2f1e74e157ea8e3f217fe279be836
2,141
ml
OCaml
tests/backend/hlc_test.ml
maiste/equinoxe
a96bbc2d5acf8ed9f832d2465f0c00057d0c23c8
[ "MIT" ]
16
2021-12-21T18:33:52.000Z
2022-01-06T15:59:02.000Z
tests/backend/hlc_test.ml
maiste/equinoxe
a96bbc2d5acf8ed9f832d2465f0c00057d0c23c8
[ "MIT" ]
24
2021-12-22T14:27:25.000Z
2022-03-28T12:43:58.000Z
tests/backend/hlc_test.ml
maiste/equinoxe
a96bbc2d5acf8ed9f832d2465f0c00057d0c23c8
[ "MIT" ]
1
2022-01-12T10:31:19.000Z
2022-01-12T10:31:19.000Z
(*****************************************************************************) (* Open Source License *) (* Copyright (c) 2022-present Étienne Marais <etienne@maiste.fr> *) (* *) ...
53.525
79
0.505371
172a0f1f5f10d6d71aa03e888551d925bb3d9ad2
4,790
mli
OCaml
src/lib_stdlib/hash_queue.mli
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/lib_stdlib/hash_queue.mli
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/lib_stdlib/hash_queue.mli
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2022 Nomadic Labs, <contact@nomadic-labs.com> *) ...
45.619048
82
0.54739
aa1d8d27420fab85df173d3a17f2a3e0ce50b02f
20,422
mli
OCaml
infer/src/IR/Typ.mli
sjcjoosten/infer
4b69087ad50ad50c43e536351777999e8c256fd4
[ "MIT" ]
null
null
null
infer/src/IR/Typ.mli
sjcjoosten/infer
4b69087ad50ad50c43e536351777999e8c256fd4
[ "MIT" ]
null
null
null
infer/src/IR/Typ.mli
sjcjoosten/infer
4b69087ad50ad50c43e536351777999e8c256fd4
[ "MIT" ]
null
null
null
(* * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) (** The Smallfoot Intermediate Language: Types *) open! IStd module F = Format (** Kinds of ...
30.895613
130
0.658603
aa4321c4ee26d9efa411e7a0cfe647291f72ab9b
294
mly
OCaml
pretty/parser.mly
humberto-ortiz/compilers-2022
f3606f1eb2dae1cf03be2e739c843840bd3e5a4a
[ "BSD-2-Clause" ]
null
null
null
pretty/parser.mly
humberto-ortiz/compilers-2022
f3606f1eb2dae1cf03be2e739c843840bd3e5a4a
[ "BSD-2-Clause" ]
null
null
null
pretty/parser.mly
humberto-ortiz/compilers-2022
f3606f1eb2dae1cf03be2e739c843840bd3e5a4a
[ "BSD-2-Clause" ]
3
2022-03-06T20:41:23.000Z
2022-03-28T01:29:46.000Z
%{ open Syntax %} %token <int64> NUMBER %token LPAREN %token RPAREN %token ADD1 %token SUB1 %token EOF %start <expr> start %% (* reglas aqui *) start: | e = expr EOF { e} expr: | n = NUMBER { Num n } | ADD1 LPAREN e = expr RPAREN { Add1 e } | SUB1 LPAREN e = expr RPAREN { Sub1 e }
12.25
43
0.608844
bcdb08161f1bf7b1daddf0f0943b360494d8f205
262
ml
OCaml
data/derived/comb/progs/unify/prog5844.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
4
2017-07-04T22:30:05.000Z
2021-03-29T14:44:52.000Z
data/derived/fa15/progs/unify/prog0972.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog0972.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let removeDuplicates l = let rec helper (seen,rest) = match rest with | [] -> seen | h::t -> let seen' = seen @ h in let rest' = t in helper (seen', rest') in List.rev (helper ([], l));; let _ = removeDuplicates [1; 6; 2; 4; 12; 2; 13; 6; 9];;
26.2
79
0.549618
aa0fe1ee6152d8292b7425e6e4de325f81425f0a
7,820
ml
OCaml
src/lib/merkle_ledger/util.ml
BearerPipelineTest/mina-1
9bc196df7b38afc6d05a4eddb4baf4eae87a2421
[ "Apache-2.0" ]
929
2020-10-02T07:23:16.000Z
2022-03-31T15:02:09.000Z
src/lib/merkle_ledger/util.ml
umiterkol/mina
af76cb7980d5e81e704120290a850ea9c6f8522e
[ "Apache-2.0" ]
3,154
2020-09-29T15:47:44.000Z
2022-03-31T16:22:28.000Z
src/lib/merkle_ledger/util.ml
umiterkol/mina
af76cb7980d5e81e704120290a850ea9c6f8522e
[ "Apache-2.0" ]
216
2020-09-29T19:47:41.000Z
2022-03-27T08:44:29.000Z
open Core_kernel module type Inputs_intf = sig module Location : Location_intf.S module Location_binable : Hashable.S_binable with type t := Location.t module Key : Intf.Key module Token_id : Intf.Token_id module Account_id : Intf.Account_id with type key := Key.t and type token_id := Token_id.t m...
36.713615
87
0.630307
172edcee00bb355349e9e2688e1d21f9877ac780
7,845
ml
OCaml
data/derived/comb/progs/unify/prog1560.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
4
2017-07-04T22:30:05.000Z
2021-03-29T14:44:52.000Z
data/derived/sp14/progs/unify/prog1561.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog1561.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX...
26.237458
148
0.691523
172abc70659263ede5e68615c161822fa9f986e6
764
ml
OCaml
result/cafe/diff/sub115/patch.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
result/cafe2/diff/sub115/patch.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
result/cafe2/diff/sub115/patch.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let diff ((e : aexp), (x : string)) : aexp = let rec f ((e : aexp), (x : string)) : aexp = match e with | Const n -> Const 0 | Var n -> if n = x then Const 1 else Const 0 | Power (n,...
26.344828
80
0.426702
aaafc05757ea18253c04e8c68e493a0c375b7290
1,484
mli
OCaml
infer/src/istd/ARList.mli
seonhoLee-ms/symexec
1e04ee78410e01fcc5346213fbfa13d9d15949a5
[ "MIT" ]
1
2019-09-11T13:16:25.000Z
2019-09-11T13:16:25.000Z
infer/src/istd/ARList.mli
seonhoLee-ms/symexec
1e04ee78410e01fcc5346213fbfa13d9d15949a5
[ "MIT" ]
null
null
null
infer/src/istd/ARList.mli
seonhoLee-ms/symexec
1e04ee78410e01fcc5346213fbfa13d9d15949a5
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open! IStd (* Lists with O(1) append and rev. *) include sig (* ocaml ignores the warning suppression at toplevel, hence ...
22.149254
101
0.576146
aa26fc930f212f9f6599046fec0401f7e960568e
1,217
ml
OCaml
test/test_char_code.ml
neojski/ecaml
00adeed63c00e3e52a4a2475c3a8256fd70c66b6
[ "MIT" ]
null
null
null
test/test_char_code.ml
neojski/ecaml
00adeed63c00e3e52a4a2475c3a8256fd70c66b6
[ "MIT" ]
null
null
null
test/test_char_code.ml
neojski/ecaml
00adeed63c00e3e52a4a2475c3a8256fd70c66b6
[ "MIT" ]
null
null
null
open! Core_kernel open! Async_kernel open! Import open! Char_code let show t = print_s [%sexp (t : t)] let%expect_test "[min_value]" = print_s [%sexp (min_value : t)]; [%expect {| 0 |}]; return () ;; let%expect_test "[max_value]" = print_s [%sexp (max_value : t)]; [%expect {| 4194303 |}]; return () ;; l...
22.537037
88
0.583402
1724e878046bf170a4794609b5cc86514a4027b8
4,244
mli
OCaml
hphp/hack/src/typing/typing_print.mli
fyunaz/hhvm
fc52cae6762431395818de9edbb0b918167c4b65
[ "PHP-3.01", "Zend-2.0" ]
1
2021-05-15T22:07:47.000Z
2021-05-15T22:07:47.000Z
hphp/hack/src/typing/typing_print.mli
seanwallawalla-forks/hhvm
4685a57b633609727c9755efe6d647aebf91ea77
[ "PHP-3.01", "Zend-2.0" ]
1
2021-04-19T09:53:42.000Z
2021-04-19T09:53:42.000Z
hphp/hack/src/typing/typing_print.mli
seanwallawalla-forks/hhvm
4685a57b633609727c9755efe6d647aebf91ea77
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Typing_env_types (*****************************************************************************) (* Pretty pri...
35.07438
79
0.626532
bc9c21c0d7433d661237f5025936001a8ed4d696
24,302
ml
OCaml
src/ocaml/parsing/location.ml
pereb4ik/merlin
f3565d0ef89cf8df9bc3f10a15dc12069658f45b
[ "MIT" ]
1,031
2016-12-16T19:17:17.000Z
2022-03-24T06:30:52.000Z
src/ocaml/parsing/location.ml
pereb4ik/merlin
f3565d0ef89cf8df9bc3f10a15dc12069658f45b
[ "MIT" ]
754
2016-12-16T14:01:33.000Z
2022-03-31T13:21:16.000Z
src/ocaml/parsing/location.ml
pereb4ik/merlin
f3565d0ef89cf8df9bc3f10a15dc12069658f45b
[ "MIT" ]
177
2017-01-04T17:35:53.000Z
2022-02-18T02:54:14.000Z
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
29.818405
91
0.614188
1727abb6bdc11e78f990451400524cf273056134
779
ml
OCaml
data/fa15_min/0865.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/0865.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/0865.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec clone x n = match n with | 0 -> [] | n -> if n < 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = match (List.length l1) - (List.length l2) with | 0 -> (l1, l2) | n -> if n < 0 then (((clone 0 (n * (-1))) @ l1), l2) else List.rev (((clone 0 n) @ l2), l1);; (* fix let re...
19
78
0.478819
bcefad3123a43a1257009e56723e908f8c1141c2
4,542
ml
OCaml
src/driver.ml
raphael-proust/cps-ssa
3ccefb26a94083c85b146bc165f7dd89f0006e29
[ "0BSD" ]
11
2016-02-23T12:37:15.000Z
2022-03-31T04:21:29.000Z
src/driver.ml
raphael-proust/cps-ssa
3ccefb26a94083c85b146bc165f7dd89f0006e29
[ "0BSD" ]
null
null
null
src/driver.ml
raphael-proust/cps-ssa
3ccefb26a94083c85b146bc165f7dd89f0006e29
[ "0BSD" ]
null
null
null
(* {{{ LICENSE * * vi: set fdm=marker fdl=0: * * * * Copyright (c) 2012 Raphaël Proust <raphlalou@gmail.com> * * ...
33.895522
81
0.572435
aaa2dfed75115f9c5d4969431b6bc782593818a2
4,789
ml
OCaml
src/lib/ledger_builder_controller/transition_logic_state.ml
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
1
2022-03-21T15:43:42.000Z
2022-03-21T15:43:42.000Z
src/lib/ledger_builder_controller/transition_logic_state.ml
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
src/lib/ledger_builder_controller/transition_logic_state.ml
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
open Core module Make (Inputs : Inputs.Base.S) : Transition_logic_state_intf.S with type tip := Inputs.Tip.t and type consensus_local_state := Inputs.Consensus_mechanism.Local_state.t and type external_transition := Inputs.External_transition.t and type public_key_compressed := Inputs.Public_key.Compresse...
34.956204
79
0.641679
17094ba21351d13c244ebf1983d88571e4dc09ca
1,599
mli
OCaml
ocaml_typing/407/ccomp.mli
hartmut27/reason-language-server
a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204
[ "MIT" ]
961
2020-09-15T11:01:50.000Z
2022-03-26T00:25:17.000Z
ocaml_typing/407/ccomp.mli
hartmut27/reason-language-server
a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204
[ "MIT" ]
439
2018-05-25T21:16:18.000Z
2021-12-03T11:28:10.000Z
ocaml_typing/407/ccomp.mli
hartmut27/reason-language-server
a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204
[ "MIT" ]
107
2018-05-30T23:53:50.000Z
2022-01-10T10:50:53.000Z
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
47.029412
76
0.398374
8aad274250232adcb4b2ab819aab97d62bd78307
4,082
mll
OCaml
test/unit-tests/expect_test.mll
jonludlam/dune
d6ca965c0556d9925b1160c471b5f04f9fccd41b
[ "MIT" ]
null
null
null
test/unit-tests/expect_test.mll
jonludlam/dune
d6ca965c0556d9925b1160c471b5f04f9fccd41b
[ "MIT" ]
null
null
null
test/unit-tests/expect_test.mll
jonludlam/dune
d6ca965c0556d9925b1160c471b5f04f9fccd41b
[ "MIT" ]
null
null
null
{ open StdLabels type kind = Ignore | Expect | Error } let newline = eof | '\r'? '\n' rule code txt start = parse | "[%%ignore]\n" { let pos = start.Lexing.pos_cnum in let len = Lexing.lexeme_start lexbuf - pos in let s = String.sub txt ~pos ~len in Lexing.new_line lexbuf; (Ignore, start, s) ::...
27.395973
76
0.583537
1704c409dab3c23a2347366e25643ff97425052c
41,689
ml
OCaml
source/interprocedural_analyses/type_inference/typeInferenceLocal.ml
esiebomaj/pyre-check
bc75489e04ca21f51ba1ebc6296e2ff5c27626c9
[ "MIT" ]
null
null
null
source/interprocedural_analyses/type_inference/typeInferenceLocal.ml
esiebomaj/pyre-check
bc75489e04ca21f51ba1ebc6296e2ff5c27626c9
[ "MIT" ]
null
null
null
source/interprocedural_analyses/type_inference/typeInferenceLocal.ml
esiebomaj/pyre-check
bc75489e04ca21f51ba1ebc6296e2ff5c27626c9
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open Core open Ast open Expression open Pyre open Statement open Analysis module Error = AnalysisError open TypeInferenceData let ...
38.744424
101
0.565353
bc3fe89e5202404da4632c44689aee6ba6a0a4e7
1,131
ml
OCaml
test/interface/golden/sum/Result.ml
LumiGuide/ocaml-export
7f803eb961851ceb4853fae0e741378d86237d2b
[ "BSD-3-Clause" ]
13
2018-02-16T08:30:21.000Z
2021-06-15T21:38:32.000Z
test/interface/golden/sum/Result.ml
plow-technologies/reason-export
752167f5df37d43534d27d9f63bb512eec1e750d
[ "BSD-3-Clause" ]
10
2018-01-17T02:10:28.000Z
2019-04-23T21:56:43.000Z
test/interface/golden/sum/Result.ml
plow-technologies/reason-export
752167f5df37d43534d27d9f63bb512eec1e750d
[ "BSD-3-Clause" ]
1
2021-07-03T20:02:22.000Z
2021-07-03T20:02:22.000Z
type ('a0, 'a1) result = | Success of 'a0 | Error of 'a1 let encodeResult encodeA0 encodeA1 x = match x with | Success y0 -> Aeson.Encode.object_ [ ( "tag", Aeson.Encode.string "Success" ) ; ( "contents", encodeA0 y0 ) ] | Error y0 -> Aeson.Encode.object_ [ ( "tag", Aeso...
35.34375
95
0.617153
aa5444674dce671fb6b21aa05304cb005c283c99
13,508
ml
OCaml
src/kit/b0_ocaml.ml
b0-system/b0
a4eb4b5068f3befbbac514bc0d102479e778011a
[ "ISC" ]
32
2018-07-24T00:16:14.000Z
2021-11-04T10:04:42.000Z
src/kit/b0_ocaml.ml
b0-system/b0
a4eb4b5068f3befbbac514bc0d102479e778011a
[ "ISC" ]
8
2019-03-10T16:46:41.000Z
2022-02-08T20:37:54.000Z
src/kit/b0_ocaml.ml
b0-system/b0
a4eb4b5068f3befbbac514bc0d102479e778011a
[ "ISC" ]
3
2019-12-29T00:14:28.000Z
2021-02-12T18:11:02.000Z
(*--------------------------------------------------------------------------- Copyright (c) 2020 The b0 programmers. All rights reserved. Distributed under the ISC license, see terms at the end of the file. ---------------------------------------------------------------------------*) open B00_std open B00_std....
39.381924
80
0.66605
aa19112d9799a90a7e442649c1b9ca5fe25a9807
233
mli
OCaml
src/external/ocaml-dune/src/stdune/bytes.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
57
2019-05-15T14:23:37.000Z
2021-05-24T19:23:19.000Z
src/external/ocaml-dune/src/stdune/bytes.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
53
2019-06-06T16:27:15.000Z
2020-05-14T18:05:50.000Z
src/external/ocaml-dune/src/stdune/bytes.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
7
2019-06-03T15:07:32.000Z
2020-04-06T14:06:22.000Z
include module type of StdLabels.Bytes with type t = StdLabels.Bytes.t val blit_string : src:string -> src_pos:int -> dst:t -> dst_pos:int -> len:int -> unit val sub_string : t -> pos:int -> len:int -> string
14.5625
70
0.626609
1709aace2964afb999afe162e3b2ccefd08d9bd0
738
ml
OCaml
data/fa15/3128.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/3128.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15/3128.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec wwhile (f,b) = match f b with | (b',c') -> if c' then wwhile (f, b') else b';; let fixpoint (f,b) = wwhile ((match b with | b' -> if b = b' then (b, false) else (b, true)), b);; (* fix let rec wwhile (f,b) = match f b with | (b',c') -> if c' then wwhile (f, b') else b';; let fixpoint (f,b) = wwhil...
16.772727
79
0.49187
aa8b3d2d82b3783da4640a18db3106b160156bef
1,526
ml
OCaml
hphp/hack/test/integration_ml/saved_state/test_saved_state_with_decl_error.ml
kkopachev/hhvm
a9f242ec029c37b1e9d1715b13661e66293d87ab
[ "PHP-3.01", "Zend-2.0" ]
1
2021-06-19T23:31:58.000Z
2021-06-19T23:31:58.000Z
hphp/hack/test/integration_ml/saved_state/test_saved_state_with_decl_error.ml
kkopachev/hhvm
a9f242ec029c37b1e9d1715b13661e66293d87ab
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/integration_ml/saved_state/test_saved_state_with_decl_error.ml
kkopachev/hhvm
a9f242ec029c37b1e9d1715b13661e66293d87ab
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
module Test = Integration_test_base let foo_contents = Printf.sprintf {|<?hh class Foo { %s public function f() {} } |} let baz_contents = {|<?hh class Baz extends Foo { } |} let () = Tempfile.with_real_tempdir @@ fun temp_dir -> let temp_dir = Path.to_string temp_dir in let expected_error = "File \"/f...
25.016393
79
0.697903
aa61d36a5c711e878eb929300a857890d22ed7d6
637
ml
OCaml
benchmarks/constraints/sortedlist/index_of.ml
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
2
2022-01-12T16:50:30.000Z
2022-01-28T16:14:40.000Z
benchmarks/constraints/sortedlist/index_of.ml
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
null
null
null
benchmarks/constraints/sortedlist/index_of.ml
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
null
null
null
(** @synduce -NB -n 20 *) type list = | Elt of int | Cons of int * list let rec is_sorted = function | Elt x -> true | Cons (hd, tl) -> hd <= head tl && is_sorted tl and head = function | Elt x -> x | Cons (hd, tl) -> hd ;; let spec x t = let rec f = function | Elt a -> if a = x then 1 else 0 ...
19.30303
86
0.527473
bca580136f01ed6ed71d6215387f3351eb617aef
33,836
ml
OCaml
src/comb.ml
ostera/hardcaml
1100988ea72e3b79c4c47a0a954a122e6c1f9131
[ "MIT" ]
null
null
null
src/comb.ml
ostera/hardcaml
1100988ea72e3b79c4c47a0a954a122e6c1f9131
[ "MIT" ]
null
null
null
src/comb.ml
ostera/hardcaml
1100988ea72e3b79c4c47a0a954a122e6c1f9131
[ "MIT" ]
null
null
null
open! Import include Comb_intf module Make_primitives (Gates : Gates) = struct include Gates (* utils *) let vdd = of_constant (Constant.of_int ~width:1 1) let gnd = of_constant (Constant.of_int ~width:1 0) let bits_lsb x = let w = width x in Array.to_list (Array.init w ~f:(fun i -> select x i i)) ...
28.314644
90
0.576634
17182c34478b8f3fcb9b87f8af303c1b9d268388
2,070
ml
OCaml
data/sp14_min/0663.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/sp14/0663.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/sp14_min/0663.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec clone x n = match n with | n when n <= 0 -> [] | _ -> x :: (clone x (n - 1));; let rec padZero l1 l2 = if (List.length l1) > (List.length l2) then (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2)) else (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2);; let rec removeZero l = ...
27.6
75
0.502415
aaa71e5727040c14830997a56516eb1ebfeac6f1
35,352
ml
OCaml
src/ocaml-output/FStar_Tactics_Embedding.ml
antoniolocascio/FStar
b8b1265a0f98aa7a080d38d4d3c9d523154835d1
[ "Apache-2.0" ]
1
2021-06-24T15:16:56.000Z
2021-06-24T15:16:56.000Z
src/ocaml-output/FStar_Tactics_Embedding.ml
antoniolocascio/FStar
b8b1265a0f98aa7a080d38d4d3c9d523154835d1
[ "Apache-2.0" ]
null
null
null
src/ocaml-output/FStar_Tactics_Embedding.ml
antoniolocascio/FStar
b8b1265a0f98aa7a080d38d4d3c9d523154835d1
[ "Apache-2.0" ]
null
null
null
open Prims type name = FStar_Syntax_Syntax.bv let (fstar_tactics_lid' : Prims.string Prims.list -> FStar_Ident.lid) = fun s -> FStar_Parser_Const.fstar_tactics_lid' s let (lid_as_tm : FStar_Ident.lident -> FStar_Syntax_Syntax.term) = fun l -> let uu___ = FStar_Syntax_Syntax.lid_as_fv l FStar_Syntax_Syntax...
42.799031
82
0.677076
aac8d854b0cc6b4899e33850b40b183192aa91d4
1,969
ml
OCaml
test/test_cmd.ml
MisterDA/bos
5140cd0b463ce02841ce8f380821b1376ea28341
[ "0BSD" ]
54
2015-02-27T20:11:59.000Z
2022-01-04T10:59:45.000Z
test/test_cmd.ml
MisterDA/bos
5140cd0b463ce02841ce8f380821b1376ea28341
[ "0BSD" ]
91
2015-02-27T22:58:59.000Z
2022-02-11T23:43:37.000Z
test/test_cmd.ml
MisterDA/bos
5140cd0b463ce02841ce8f380821b1376ea28341
[ "0BSD" ]
16
2016-04-27T00:19:27.000Z
2021-10-02T21:14:37.000Z
(*--------------------------------------------------------------------------- Copyright (c) 2015 The bos programmers. All rights reserved. Distributed under the ISC license, see terms at the end of the file. ---------------------------------------------------------------------------*) open Testing open Rresult...
41.020833
79
0.540376
aaadb333a0ea69533e12cbe088f95af9d6d4b354
411
ml
OCaml
benchmarks/incomplete/bst.ml
victornicolet/atropos
86a96d263f49c1eccd8f584d624de119180e0eea
[ "MIT" ]
3
2021-05-03T16:20:32.000Z
2021-05-14T19:59:51.000Z
benchmarks/incomplete/bst/bst.ml
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
null
null
null
benchmarks/incomplete/bst/bst.ml
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
1
2021-05-12T15:14:40.000Z
2021-05-12T15:14:40.000Z
type 'a tree = | Leaf of 'a | Node of 'a * 'a tree * 'a tree let rec tree_min = function | Leaf x -> x | Node (a, l, r) -> min a (min (tree_min l) (tree_min r)) ;; let rec tree_max = function | Leaf x -> x | Node (a, l, r) -> max a (max (tree_max l) (tree_max r)) ;; let rec is_bst = function | Leaf x -...
21.631579
80
0.542579
170407e06b7b49ee923dc98653f582c8d219b037
1,556
mli
OCaml
lib/classes/monad.mli
IndiscriminateCoding/clarity
163c16249cb3f01c4244b80be39e9aad0b1ca325
[ "BSD-3-Clause" ]
59
2017-05-07T14:46:01.000Z
2022-01-10T12:21:52.000Z
lib/classes/monad.mli
IndiscriminateCoding/clarity
163c16249cb3f01c4244b80be39e9aad0b1ca325
[ "BSD-3-Clause" ]
4
2017-12-18T20:17:30.000Z
2018-09-08T17:12:02.000Z
lib/classes/monad.mli
IndiscriminateCoding/clarity
163c16249cb3f01c4244b80be39e9aad0b1ca325
[ "BSD-3-Clause" ]
5
2017-05-09T16:47:39.000Z
2019-08-09T04:36:47.000Z
(** Monads *) module type Basic = sig include Applicative.Basic val bind : ('a -> 'b t) -> 'a t -> 'b t end module type Basic2 = sig include Applicative.Basic2 val bind : ('a -> ('p, 'b) t) -> ('p, 'a) t -> ('p, 'b) t end module type Basic3 = sig include Applicative.Basic3 val bind : ('a -> ('p, 'q, 'b) ...
30.509804
76
0.451799
aabd6b6b0560cd166258210708065097af1e4804
1,020
mli
OCaml
src/external/ocaml-dune/src/workspace.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
1
2022-03-21T15:43:42.000Z
2022-03-21T15:43:42.000Z
src/external/ocaml-dune/src/workspace.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
src/external/ocaml-dune/src/workspace.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
(** Workspaces definitions *) open! Stdune open! Import module Context : sig module Target : sig type t = | Native | Named of string end module Common : sig type t = { loc : Loc.t ; profile : string ; targets : Target.t list ; env : Dune_env.Stanza.t o...
19.245283
55
0.561765
17310c100e1957bfa6275c2de1d5c49a98eafb9e
113
ml
OCaml
data/derived/comb/progs/unify/prog5117.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
4
2017-07-04T22:30:05.000Z
2021-03-29T14:44:52.000Z
data/derived/fa15/progs/unify/prog0209.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog0209.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec assoc (d,k,l) = match (k, d) with | [] -> d | h::t -> if (k, d) = l then d else assoc (d, k, t);;
18.833333
55
0.442478
aa433360839db9187939760f8feb3c247225d422
5,668
ml
OCaml
src/Ast.ml
nilern/r1ml
44fdc71cde74984dca28ffb083abefbf3eb3da9c
[ "MIT" ]
3
2020-06-16T02:14:11.000Z
2021-09-25T10:30:42.000Z
src/Ast.ml
nilern/r1ml
44fdc71cde74984dca28ffb083abefbf3eb3da9c
[ "MIT" ]
null
null
null
src/Ast.ml
nilern/r1ml
44fdc71cde74984dca28ffb083abefbf3eb3da9c
[ "MIT" ]
null
null
null
let (^^) = PPrint.(^^) let (^/^) = PPrint.(^/^) type span = Lexing.position * Lexing.position let pos_to_string ({pos_lnum = line; pos_bol = bol; pos_cnum = offset; pos_fname = _} : Lexing.position) = Int.to_string line ^ ":" ^ Int.to_string (offset - bol) let span_to_string (pos, pos') = pos_to_string pos ^ "-" ...
34.560976
106
0.577276
aaf2dbb70862f1bedaf25dbf789443b6fb61b91f
2,623
ml
OCaml
ppx_quickcheck/expander/import.ml
janestreet/base_quickcheck
57f65c7c0a1f265a05783b7201ef4ca5bbdb5bc5
[ "MIT" ]
10
2019-06-25T03:35:58.000Z
2021-12-17T02:52:42.000Z
ppx_quickcheck/expander/import.ml
janestreet/base_quickcheck
57f65c7c0a1f265a05783b7201ef4ca5bbdb5bc5
[ "MIT" ]
3
2018-07-29T20:04:27.000Z
2022-01-03T11:24:59.000Z
ppx_quickcheck/expander/import.ml
janestreet/base_quickcheck
57f65c7c0a1f265a05783b7201ef4ca5bbdb5bc5
[ "MIT" ]
3
2019-08-16T17:43:50.000Z
2021-12-17T02:53:23.000Z
include Base include Ppxlib include Ast_builder.Default (* errors and error messages *) let ( ^^ ) = Stdlib.( ^^ ) let error ~loc fmt = Location.raise_errorf ~loc ("ppx_quickcheck: " ^^ fmt) let invalid ~loc fmt = error ~loc ("invalid syntax: " ^^ fmt) let unsupported ~loc fmt = error ~loc ("unsupported: " ^^ fmt) le...
30.5
88
0.6931
1706283153c9eadb329304325b726c4f54edbd93
485
mli
OCaml
src/generic/prover.mli
eytans/cyclist
93e9c2e1bff5caea33582167d0017c6414dbf44a
[ "BSD-3-Clause" ]
21
2015-07-30T10:28:00.000Z
2022-03-16T00:21:23.000Z
src/generic/prover.mli
eytans/cyclist
93e9c2e1bff5caea33582167d0017c6414dbf44a
[ "BSD-3-Clause" ]
7
2015-09-25T16:10:52.000Z
2021-08-10T05:26:23.000Z
src/generic/prover.mli
eytans/cyclist
93e9c2e1bff5caea33582167d0017c6414dbf44a
[ "BSD-3-Clause" ]
5
2015-10-18T16:20:47.000Z
2021-04-04T16:11:03.000Z
(** A cyclic prover object. *) module type S = sig type rule_t module Seq : Sequent.S module Proof : Proof.S val last_search_depth : int ref val idfs : int -> int -> rule_t -> rule_t -> Seq.t -> Proof.t option (* val bfs : int -> rule_t -> rule_t -> Seq.t -> Proof.t option *) val print_proof_stats...
21.086957
70
0.639175
1705609707507eeb05380eec7c56c68fc14c3113
1,129
ml
OCaml
src/typing/tvar.ml
radex/flow
803afdc9990c4bdc3d489ec498f2b032fa7b2c08
[ "MIT" ]
null
null
null
src/typing/tvar.ml
radex/flow
803afdc9990c4bdc3d489ec498f2b032fa7b2c08
[ "MIT" ]
4
2021-06-23T23:54:47.000Z
2021-09-01T00:40:08.000Z
src/typing/tvar.ml
tbergq/flow
8c866379d12dc32c6a0e129739148c8cd9169db8
[ "MIT" ]
1
2021-05-12T18:13:36.000Z
2021-05-12T18:13:36.000Z
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) let mk_no_wrap cx reason = let tvar = Reason.mk_id () in Context.add_tvar cx tvar (Type.Constraint.new_unresolved_root ()); i...
30.513514
80
0.711249
aad4debbb42380d4d37baaef01933406e8d64cfc
6,953
ml
OCaml
CodeHawk/CHC/cchanalyze/cCHNumericalConstraints.ml
Databean/codehawk
91bef3806d87d93b4371a4d1c22a7dc8648e2a16
[ "MIT" ]
17
2020-08-17T15:35:57.000Z
2022-03-23T14:40:19.000Z
CodeHawk/CHC/cchanalyze/cCHNumericalConstraints.ml
Databean/codehawk
91bef3806d87d93b4371a4d1c22a7dc8648e2a16
[ "MIT" ]
6
2020-07-17T05:43:51.000Z
2021-01-06T03:41:46.000Z
CodeHawk/CHC/cchanalyze/cCHNumericalConstraints.ml
sipma/codehawk
e4eeb41fdea6a8467d1892b9467ec54ef04953b0
[ "MIT" ]
3
2020-08-13T23:18:39.000Z
2021-12-11T11:10:06.000Z
(* ============================================================================= CodeHawk C Analyzer Author: Henny Sipma ------------------------------------------------------------------------------ The MIT License (MIT) Copyright (c) 2005-2019 Kestrel Technology LLC Copyright (c) 2020 Henny ...
30.495614
83
0.618582
aa917c7b0ba766d8616a44db94807475aa1a1e25
5,535
ml
OCaml
otherlibs/stdune/ansi_color.ml
snowleopard/dune
dcf921ca5cd825ddb054682809bc4032e0d92ebc
[ "MIT" ]
null
null
null
otherlibs/stdune/ansi_color.ml
snowleopard/dune
dcf921ca5cd825ddb054682809bc4032e0d92ebc
[ "MIT" ]
null
null
null
otherlibs/stdune/ansi_color.ml
snowleopard/dune
dcf921ca5cd825ddb054682809bc4032e0d92ebc
[ "MIT" ]
null
null
null
module Style = struct type t = string let to_dyn s = Dyn.string s let fg_black = "30" let fg_red = "31" let fg_green = "32" let fg_yellow = "33" let fg_blue = "34" let fg_magenta = "35" let fg_cyan = "36" let fg_white = "37" let fg_default = "39" let fg_bright_black = "90" let fg_b...
22.5
77
0.582836
bcd44d97b2f9408fbc539a2505e49adc391f5977
26,744
ml
OCaml
bs/__tests__/tablecloth_test.ml
michellewong793/tablecloth
b68d77c004ba650bf5d2cbf5e2a45754cb6f7ce5
[ "MIT" ]
null
null
null
bs/__tests__/tablecloth_test.ml
michellewong793/tablecloth
b68d77c004ba650bf5d2cbf5e2a45754cb6f7ce5
[ "MIT" ]
null
null
null
bs/__tests__/tablecloth_test.ml
michellewong793/tablecloth
b68d77c004ba650bf5d2cbf5e2a45754cb6f7ce5
[ "MIT" ]
2
2020-03-23T20:48:12.000Z
2020-09-21T14:38:56.000Z
open Tablecloth open Jest open Expect let () = describe "Array" (fun () -> describe "empty" (fun () -> test "has length zero" (fun () -> expect Array.(empty |> length) |> toEqual 0); test "equals the empty array literal" (fun () -> expect (Array.empty) |> toEqual [||]); ); describe "singlet...
39.099415
158
0.53885
bce2090c6fdf6174cc8ca118977c5798e53b8adc
405
ml
OCaml
Task/Stack/Standard-ML/stack-2.ml
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Stack/Standard-ML/stack-2.ml
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
null
null
null
Task/Stack/Standard-ML/stack-2.ml
mullikine/RosettaCodeData
4f0027c6ce83daa36118ee8b67915a13cd23ab67
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
structure Stack :> STACK = struct type 'a stack = 'a list exception EmptyStack val empty = [] fun isEmpty st = null st fun push (x, st) = x::st fun pop [] = raise EmptyStack | pop (x::st) = st fun top [] = raise EmptyStack | top (x::st) = x fun popTop st = (po...
17.608696
38
0.535802
1741ed9d68e7a558f99eabf4f8f845fc6e1c9663
558
mli
OCaml
src/remote.mli
MatiasGoldfeld/Tetris
72030e0acf1cffff985dac971b50d5082ceb315c
[ "MIT" ]
1
2020-04-30T16:11:51.000Z
2020-04-30T16:11:51.000Z
src/remote.mli
MatiasGoldfeld/Tetris
72030e0acf1cffff985dac971b50d5082ceb315c
[ "MIT" ]
null
null
null
src/remote.mli
MatiasGoldfeld/Tetris
72030e0acf1cffff985dac971b50d5082ceb315c
[ "MIT" ]
null
null
null
(** [Client] is a [State.S] with functionality for a client multiplayer game connected to a server *) module Client : State.S (** [Server] is a [State.S] with functionality for a hosted multiplayer game with several clients. *) module Server : State.S (** [create_client] is a client named [name] which attempt...
37.2
76
0.707885
aac955d5db2e02e8ee4abe081fe36edff96f12da
77,416
ml
OCaml
infer/src/biabduction/SymExec.ml
NeatNerdPrime/infer
8f797bab845830fed3e3da7c417ff611a6efe7f1
[ "MIT" ]
4
2020-06-16T14:40:24.000Z
2021-07-28T18:02:26.000Z
infer/src/biabduction/SymExec.ml
NeatNerdPrime/infer
8f797bab845830fed3e3da7c417ff611a6efe7f1
[ "MIT" ]
25
2021-02-08T13:49:24.000Z
2022-02-28T03:34:19.000Z
infer/src/biabduction/SymExec.ml
NeatNerdPrime/infer
8f797bab845830fed3e3da7c417ff611a6efe7f1
[ "MIT" ]
null
null
null
(* * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open! IStd (** Symbolic Execution *) module L = Logging module F = Format let rec fld...
43.128691
114
0.668454
1727794b28a513346b14d7e8d88c9430758f82a1
2,137
ml
OCaml
tools/src/util.ml
janestreet/async_smtp
37d1b7ab58edd925ab6b277d23b59b8cb1c17bc8
[ "MIT" ]
38
2015-03-18T14:49:01.000Z
2021-12-17T02:52:50.000Z
tools/src/util.ml
janestreet/async_smtp
37d1b7ab58edd925ab6b277d23b59b8cb1c17bc8
[ "MIT" ]
3
2016-01-04T11:35:14.000Z
2019-10-25T01:32:40.000Z
tools/src/util.ml
janestreet/async_smtp
37d1b7ab58edd925ab6b277d23b59b8cb1c17bc8
[ "MIT" ]
7
2016-01-02T15:55:14.000Z
2021-12-17T02:53:29.000Z
open Core open Async open Async_smtp module Host_and_port = struct include Host_and_port let of_string ~port str = match String.rsplit2 ~on:':' str with | None -> Host_and_port.create ~host:str ~port | Some (host, "") -> Host_and_port.create ~host ~port | Some (host, port) -> let port = Int....
25.141176
89
0.614413
1717f61f672d34ca260c40adf649f100247b6ef7
6,425
ml
OCaml
hphp/hack/src/typing/tast_check/discarded_awaitable_check.ml
fengjixuchui/hhvm
f66a8093d3a0cb2b0ffb74ed6b80da678da0ad75
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast_check/discarded_awaitable_check.ml
fengjixuchui/hhvm
f66a8093d3a0cb2b0ffb74ed6b80da678da0ad75
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/tast_check/discarded_awaitable_check.ml
fengjixuchui/hhvm
f66a8093d3a0cb2b0ffb74ed6b80da678da0ad75
[ "PHP-3.01", "Zend-2.0" ]
1
2020-11-09T08:56:11.000Z
2020-11-09T08:56:11.000Z
(* * Copyright (c) 2018, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude open Aast open Typing_defs module Env = Tast_env module MakeType = Typing_make_type module SN = Nami...
30.164319
81
0.648249
aa316d9faab44e0c9b41077f7e2858d7d81bab63
15,937
ml
OCaml
hphp/hack/src/lints/lints_errors.ml
leikahing/hhvm
26617c88ca35c5e078c3aef12c061d7996925375
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/lints/lints_errors.ml
leikahing/hhvm
26617c88ca35c5e078c3aef12c061d7996925375
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/lints/lints_errors.ml
leikahing/hhvm
26617c88ca35c5e078c3aef12c061d7996925375
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Hh_prelude module Codes = Lints_codes.Codes open Lints_core module Lints = Lints_core let clone_use p = Lints.add ...
37.587264
321
0.697685
173f4bf1fe57185dedbc28f2a712eca086368ff8
1,146
mli
OCaml
bigraph/src/sbrs.mli
sidousidou/BigraphER
536d1735789f99c62e879cf490264c463e912aee
[ "BSD-2-Clause" ]
null
null
null
bigraph/src/sbrs.mli
sidousidou/BigraphER
536d1735789f99c62e879cf490264c463e912aee
[ "BSD-2-Clause" ]
null
null
null
bigraph/src/sbrs.mli
sidousidou/BigraphER
536d1735789f99c62e879cf490264c463e912aee
[ "BSD-2-Clause" ]
null
null
null
(** This module provides operations on stochastic BRS. @author Michele Sevegnani *) type react = { name : string; (** Name. *) rdx : Big.t; (** Redex, {e i.e.} the left-hand side of a reaction rule. *) rct : Big.t; (** Reactum, {e i.e.} the right-hand side of a reaction rule. *) eta : Fun.t option...
27.285714
77
0.620419
aa89b9ad5b4f99df137b7ae6bfea0241886bb26f
25,128
ml
OCaml
hphp/hack/src/hh_single_compile.ml
efiks/hhvm
bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hh_single_compile.ml
efiks/hhvm
bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hh_single_compile.ml
efiks/hhvm
bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2017, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) open Core_kernel module P = Printf module SyntaxError = Full_fidelity_syntax_error module SourceText = Full_fidelity...
34.61157
81
0.570718
bc27e9e0efd2cfd0f9795062c2f324c2a023bf2e
169
ml
OCaml
src/refmterr/errs/undefined_global.ml
prometheansacrifice/reason-native
a33f1528a6dd86c67f365e226c81312733181c87
[ "MIT" ]
439
2018-11-30T01:07:26.000Z
2021-01-04T16:18:22.000Z
src/refmterr/errs/undefined_global.ml
SNU-Programming-Tools/reason-native
0ed854f986256e52e59aeecfa90e9af60f105b15
[ "MIT" ]
190
2018-11-30T00:40:08.000Z
2020-12-05T01:01:07.000Z
src/refmterr/errs/undefined_global.ml
SNU-Programming-Tools/reason-native
0ed854f986256e52e59aeecfa90e9af60f105b15
[ "MIT" ]
35
2018-12-04T01:35:16.000Z
2020-11-13T03:29:43.000Z
let ph = Unix.open_process_in "cmd 2&gt;&amp;1" (* err bc Unix needs to be loaded via #load "unix.cma";; *) (* see load_compile for further errors *) #load "unix.cma"
24.142857
59
0.674556
aad9fec17642dd0b6f1aa4b3e024b7f9d11313f1
792
mli
OCaml
src/util/src/time.mli
JamesZhang2/Instant-Messaging
9b43a783b4d05fc962dd843cdc65d60d6e1eb5ff
[ "MIT" ]
null
null
null
src/util/src/time.mli
JamesZhang2/Instant-Messaging
9b43a783b4d05fc962dd843cdc65d60d6e1eb5ff
[ "MIT" ]
null
null
null
src/util/src/time.mli
JamesZhang2/Instant-Messaging
9b43a783b4d05fc962dd843cdc65d60d6e1eb5ff
[ "MIT" ]
null
null
null
(** A useful package for formatting time. *) val string_of_now : local:bool -> string (** [string_of_now ~local] is the string representation of the current time. If [~local] is true, then the local time is used. Otherwise, GMT is used. *) val time_regex : string (** The regular expression for correctly forma...
34.434783
72
0.705808
aaa40180fa29392af3d1366245c2c6a4fd3af69b
163
ml
OCaml
bytea.ml
a12n/rox6read
c2d8b61da482d3f79f17e21bc012c0e522d8958c
[ "MIT" ]
null
null
null
bytea.ml
a12n/rox6read
c2d8b61da482d3f79f17e21bc012c0e522d8958c
[ "MIT" ]
null
null
null
bytea.ml
a12n/rox6read
c2d8b61da482d3f79f17e21bc012c0e522d8958c
[ "MIT" ]
null
null
null
open Batteries type t = int array let of_bytes buf = let ans = Array.make (Bytes.length buf) 0 in Bytes.iteri (fun i c -> ans.(i) <- Char.code c) buf; ans
18.111111
54
0.650307
aa9b8e251f67be4cf5f54705148d323aa33a9da5
3,839
ml
OCaml
src/gen/import.ml
OCamlPro-Couderc/ppxlib
723e6e18fec1528a371ae7d14b43b64ac1e5ee0e
[ "MIT" ]
null
null
null
src/gen/import.ml
OCamlPro-Couderc/ppxlib
723e6e18fec1528a371ae7d14b43b64ac1e5ee0e
[ "MIT" ]
null
null
null
src/gen/import.ml
OCamlPro-Couderc/ppxlib
723e6e18fec1528a371ae7d14b43b64ac1e5ee0e
[ "MIT" ]
null
null
null
include Ppxlib_ast include Ast open Ast_helper let loc = (* This is fine, because the location info is thrown away when the generated code written out to the .ml file *) Location.none let lident x = Longident.Lident x module Loc = struct let mk x = { Location.loc; txt = x } let lident x = mk (Parse....
24.297468
92
0.607189
1701cdc2ddf1baddeb5c3e16e32305beaa8f579e
272
mli
OCaml
ast/warn.mli
LexiFi/ppxlib
b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd
[ "MIT" ]
179
2018-03-13T16:22:57.000Z
2022-03-23T20:30:12.000Z
ast/warn.mli
LexiFi/ppxlib
b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd
[ "MIT" ]
222
2018-03-13T15:44:22.000Z
2022-03-26T08:56:14.000Z
ast/warn.mli
LexiFi/ppxlib
b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd
[ "MIT" ]
52
2018-03-15T19:14:22.000Z
2022-03-22T14:40:58.000Z
open Import val care_about_ite_branch : bool ref (** Ignored -- kept for compatibility. *) val about_ite_branch_ref : (Location.t -> unit) ref (** Ignored -- kept for compatibility. *) val about_ite_branch : Location.t -> unit (** Ignored -- kept for compatibility. *)
24.727273
51
0.709559
bc2fe34a2a3168740c0bffb659491e45c57ab920
2,183
mli
OCaml
analysis/resolution.mli
stvreumi/pyre-check
94d13c8df37b53843ae92544b81042347b64315d
[ "MIT" ]
null
null
null
analysis/resolution.mli
stvreumi/pyre-check
94d13c8df37b53843ae92544b81042347b64315d
[ "MIT" ]
null
null
null
analysis/resolution.mli
stvreumi/pyre-check
94d13c8df37b53843ae92544b81042347b64315d
[ "MIT" ]
null
null
null
(** Copyright (c) 2016-present, Facebook, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. *) open Ast open Statement type global = Annotation.t Node.t [@@deriving eq, show] type class_representation = { class_definition: Class.t...
30.746479
71
0.691251
1743fc1c705e54f919d83db0f5f595ef0fb1a102
8,808
mli
OCaml
upstream/ocaml_410/utils/clflags.mli
mnxn/merlin
c9761a552380838e9f530b5c47c0ea3c47c33565
[ "MIT" ]
961
2020-09-15T11:01:50.000Z
2022-03-26T00:25:17.000Z
upstream/ocaml_410/utils/clflags.mli
mnxn/merlin
c9761a552380838e9f530b5c47c0ea3c47c33565
[ "MIT" ]
83
2020-09-27T18:51:24.000Z
2022-03-08T10:57:53.000Z
upstream/ocaml_410/utils/clflags.mli
mnxn/merlin
c9761a552380838e9f530b5c47c0ea3c47c33565
[ "MIT" ]
26
2020-10-13T10:39:13.000Z
2021-12-07T04:57:33.000Z
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
33.112782
77
0.714351
1701327c488f56b8d67829120cba89bb51c57791
2,690
ml
OCaml
OCaml/tictactoe/main.ml
twolodzko/Learning
e5af2bdf6f65648c3c159343e14d63c157384009
[ "MIT" ]
null
null
null
OCaml/tictactoe/main.ml
twolodzko/Learning
e5af2bdf6f65648c3c159343e14d63c157384009
[ "MIT" ]
null
null
null
OCaml/tictactoe/main.ml
twolodzko/Learning
e5af2bdf6f65648c3c159343e14d63c157384009
[ "MIT" ]
null
null
null
open Printf let board_size = 3 type player = X | O | Blank let string_of_player = function | X -> "X" | O -> "O" | Blank -> " " let rec rep x n = if n = 0 then [] else x :: rep x (n-1) let empty_board = rep Blank (board_size * board_size) let split n lst = let rec aux i acc = function | [...
24.678899
89
0.542007
aae35c92c68472c12dfb088748363aef486c305b
121
ml
OCaml
test/net/test_tcp.ml
dryproject/drylib.ocaml
d3ccb387585c5dbabb53481f5c1dbd8de9b2141b
[ "Unlicense" ]
4
2017-09-02T13:37:38.000Z
2018-06-05T07:29:47.000Z
test/net/test_tcp.ml
dryproject/drylib.ocaml
d3ccb387585c5dbabb53481f5c1dbd8de9b2141b
[ "Unlicense" ]
null
null
null
test/net/test_tcp.ml
dryproject/drylib.ocaml
d3ccb387585c5dbabb53481f5c1dbd8de9b2141b
[ "Unlicense" ]
null
null
null
(* This is free and unencumbered software released into the public domain. *) open DRY__Core module TCP = DRY__Net.TCP
20.166667
77
0.768595
aa588ce0801d2a12388fb97eb1da110f628b24e7
304
ml
OCaml
welcome.ml
GabrielFerreira7/tesOcam
68b0aa4d8ffb2989348a1609c13d6fa426f46aa4
[ "MIT" ]
null
null
null
welcome.ml
GabrielFerreira7/tesOcam
68b0aa4d8ffb2989348a1609c13d6fa426f46aa4
[ "MIT" ]
null
null
null
welcome.ml
GabrielFerreira7/tesOcam
68b0aa4d8ffb2989348a1609c13d6fa426f46aa4
[ "MIT" ]
null
null
null
let main = print_string "What is your name? "; let n = read_line () in print_endline ((Mylib.Hello.greeting n)); print_string "In what year were you born?"; let data = read_line () in print_endline (" You are " ^ string_of_int(Mylib.Hello.get_age (int_of_string data)) ^ " years old.");
30.4
105
0.674342
aa6e97e311de2e3f3e5444b3c303fd9482d46d6b
2,234
ml
OCaml
libraries/sqs/lib/sendMessageBatch.ml
apeschar/ocaml-aws
4d76d0d760b0e94f496ee49bd3f68fcb671308b8
[ "BSD-3-Clause" ]
null
null
null
libraries/sqs/lib/sendMessageBatch.ml
apeschar/ocaml-aws
4d76d0d760b0e94f496ee49bd3f68fcb671308b8
[ "BSD-3-Clause" ]
null
null
null
libraries/sqs/lib/sendMessageBatch.ml
apeschar/ocaml-aws
4d76d0d760b0e94f496ee49bd3f68fcb671308b8
[ "BSD-3-Clause" ]
null
null
null
open Types open Aws type input = SendMessageBatchRequest.t type output = SendMessageBatchResult.t type error = Errors_internal.t let service = "sqs" let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region))) (List...
33.848485
96
0.63205
bc53cb5df83afd3f27ad2c04c5467457a5513acb
117
ml
OCaml
article_02/23_some_none.ml
tisnik/ml-examples
063b3109a3d97a8793483000cbbccb990f615126
[ "Apache-2.0" ]
null
null
null
article_02/23_some_none.ml
tisnik/ml-examples
063b3109a3d97a8793483000cbbccb990f615126
[ "Apache-2.0" ]
null
null
null
article_02/23_some_none.ml
tisnik/ml-examples
063b3109a3d97a8793483000cbbccb990f615126
[ "Apache-2.0" ]
null
null
null
(* Použití typu option *) fun divide(x, 0) = NONE | divide(x, y) = SOME(x div y); divide(10, 5); divide(10, 0);
13
33
0.57265
aa2bf26286c7ff6167b26629f96793a7f99c8a45
820
ml
OCaml
benchmarks/formula/formula1/submissions/sub266.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
5
2019-08-26T05:41:41.000Z
2020-05-03T03:58:50.000Z
benchmarks/formula/formula1/submissions/sub266.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
null
null
null
benchmarks/formula/formula1/submissions/sub266.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
2
2020-02-06T00:36:38.000Z
2020-07-27T09:53:35.000Z
(* 4190,310 Programming Language (Fall 2014) * Homework 1 - Exercise 2 * CSE / 2012-13456 / Gao, Chengbin *) type formula = TRUE | FALSE | NOT of formula | ANDALSO of formula * formula | ORELSE of formula * formula | IMPLY of formula * formula ...
24.848485
45
0.5
aaa872993e62c0d0b1280250963177ebce4a656f
837
ml
OCaml
src/parser_utils/__tests__/test_utils.ml
skeggse/flow
49ab125ee158a2ac8ca675cff7460606a938f568
[ "MIT" ]
1
2018-12-18T19:19:16.000Z
2018-12-18T19:19:16.000Z
src/parser_utils/__tests__/test_utils.ml
skeggse/flow
49ab125ee158a2ac8ca675cff7460606a938f568
[ "MIT" ]
null
null
null
src/parser_utils/__tests__/test_utils.ml
skeggse/flow
49ab125ee158a2ac8ca675cff7460606a938f568
[ "MIT" ]
null
null
null
(** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) let parse contents = let parse_options = Some { Parser_env.default_parse_options with Parser_env.esproposal_class_instance_fields ...
29.892857
67
0.710872
aab7246c1b06aef6235b70fe090f1972f7890fbe
900
ml
OCaml
data/fa15_min/1574.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/1574.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/1574.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let explode s = let rec go i = if i >= (String.length s) then [] else (s.[i]) :: (go (i + 1)) in go 0;; let rec listReverse l = match l with | [] -> [] | h::tail -> (listReverse tail) @ [h];; let palindrome w = explode (listReverse w);; (* fix let explode s = let rec go i = if i >= (String.length ...
17.307692
69
0.55
bcb8f58e40a44018336ab352cf78eed265b3e410
7,994
ml
OCaml
data/derived/comb/progs/unify/prog2075.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
4
2017-07-04T22:30:05.000Z
2021-03-29T14:44:52.000Z
data/derived/sp14/progs/unify/prog2075.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog2075.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*) (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX...
25.217666
148
0.624844
44b263ae6460ca082c136053f4c1293aef5f873d
2,468
ml
OCaml
hphp/hack/src/utils/symbolDefinition.ml
SiebelsTim/hhvm
ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/utils/symbolDefinition.ml
SiebelsTim/hhvm
ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c
[ "PHP-3.01", "Zend-2.0" ]
2
2021-05-11T23:33:41.000Z
2022-03-28T18:43:26.000Z
hphp/hack/src/utils/symbolDefinition.ml
SiebelsTim/hhvm
ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) open Core ty...
23.283019
80
0.649514
bcd6375971860764c030c138d88c49090cddaa89
348
ml
OCaml
hack_parallel/hack_parallel/stubs/prologMain.ml
mzlee/pyre-check
e31eedeedd88aa92890ffe38afdc6063d8b21ef8
[ "MIT" ]
null
null
null
hack_parallel/hack_parallel/stubs/prologMain.ml
mzlee/pyre-check
e31eedeedd88aa92890ffe38afdc6063d8b21ef8
[ "MIT" ]
null
null
null
hack_parallel/hack_parallel/stubs/prologMain.ml
mzlee/pyre-check
e31eedeedd88aa92890ffe38afdc6063d8b21ef8
[ "MIT" ]
null
null
null
(** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * *) let output_fac...
26.769231
80
0.698276
171f5b15ec9399ff176123ab9ea3271e16212e09
373
ml
OCaml
testtool/Main.ml
jswebtools/ocaml-javascript-parser
116d9ca0fe6306f9a9207a593519c51a1132d5e1
[ "BSD-3-Clause" ]
4
2015-07-12T10:49:48.000Z
2016-08-23T11:50:41.000Z
testtool/Main.ml
jswebtools/ocaml-javascript-parser
116d9ca0fe6306f9a9207a593519c51a1132d5e1
[ "BSD-3-Clause" ]
null
null
null
testtool/Main.ml
jswebtools/ocaml-javascript-parser
116d9ca0fe6306f9a9207a593519c51a1132d5e1
[ "BSD-3-Clause" ]
null
null
null
open JavaScript let () = match Array.to_list Sys.argv with | [ _; "parse"; path ] -> (try let _ = parse_javascript_from_channel (open_in path) path in () with exn -> (Format.printf "Exception parsing %s (%s)\n%!" path (Printexc.to_string exn); exit 2)) | _ -> Format.epr...
26.642857
83
0.595174
aade461f2ed2702cfc494e47b30d73cdc54ed316
8,002
ml
OCaml
src/type-system/tctx.ml
Stienvdh/eff
80ff311a6509a20148c823c69a084cd3ce200b83
[ "BSD-2-Clause" ]
null
null
null
src/type-system/tctx.ml
Stienvdh/eff
80ff311a6509a20148c823c69a084cd3ce200b83
[ "BSD-2-Clause" ]
null
null
null
src/type-system/tctx.ml
Stienvdh/eff
80ff311a6509a20148c823c69a084cd3ce200b83
[ "BSD-2-Clause" ]
1
2020-11-06T07:37:00.000Z
2020-11-06T07:37:00.000Z
(** Type inference contexts *) module T = Type type tydef = | Record of (CoreTypes.Field.t, Type.ty) Assoc.t | Sum of (CoreTypes.Label.t, Type.ty option) Assoc.t | Inline of Type.ty type tyctx = (CoreTypes.TyName.t, CoreTypes.TyParam.t list * tydef) Assoc.t let initial : tyctx = Assoc.of_list [ (CoreType...
36.538813
91
0.63909
4495340d3b0be527bbe82d4e76f28c9414daf2b9
5,697
ml
OCaml
src/proto_001_PtCJ7pwo/lib_delegate/client_baking_lib.ml
hinshun/tezos
453abc2f2ea65c94cc99674958201fcebcf7eae9
[ "MIT" ]
null
null
null
src/proto_001_PtCJ7pwo/lib_delegate/client_baking_lib.ml
hinshun/tezos
453abc2f2ea65c94cc99674958201fcebcf7eae9
[ "MIT" ]
null
null
null
src/proto_001_PtCJ7pwo/lib_delegate/client_baking_lib.ml
hinshun/tezos
453abc2f2ea65c94cc99674958201fcebcf7eae9
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
43.823077
80
0.59189
1742f10fd93537ca7d74a44323e69918ac65d29a
5,009
ml
OCaml
duniverse/owl/src/base/optimise/algodiff/owl_algodiff_generic.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/owl/src/base/optimise/algodiff/owl_algodiff_generic.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/owl/src/base/optimise/algodiff/owl_algodiff_generic.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
(* * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2019 Liang Wang <liang.wang@cl.cam.ac.uk> * Core nested automatic differentiation algorithm and differentiation API * ported from DiffSharp (http://diffsharp.github.io), copyright (c) 2014-2016 * National University of Ireland Maynooth (At...
28.460227
92
0.6111
171a64d87c04811bc3b1d61fb203825b239d061d
12,296
ml
OCaml
src/analysis/destruct.ml
jordwalke/merlin
40cd1704df97d7e74e17824b684438a4e55c1771
[ "MIT" ]
1
2021-03-12T10:45:56.000Z
2021-03-12T10:45:56.000Z
src/analysis/destruct.ml
jordwalke/merlin
40cd1704df97d7e74e17824b684438a4e55c1771
[ "MIT" ]
null
null
null
src/analysis/destruct.ml
jordwalke/merlin
40cd1704df97d7e74e17824b684438a4e55c1771
[ "MIT" ]
null
null
null
(* {{{ COPYING *( This file is part of Merlin, an helper for ocaml editors Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net> Thomas Refis <refis.thomas(_)gmail.com> Simon Castellan <simon.castellan(_)iuwt.fr> Permission is hereby...
35.537572
82
0.623943
aa1b7bc6802390ca927234dbc88815325eb3f7ca
1,266
ml
OCaml
ocaml-sources/testsuite/tests/self-contained-toplevel/main.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
ocaml-sources/testsuite/tests/self-contained-toplevel/main.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
ocaml-sources/testsuite/tests/self-contained-toplevel/main.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
null
null
null
(* TEST files = "foo.ml gen_cached_cmi.ml input.ml" * setup-ocamlc.byte-build-env ** ocamlc.byte module = "foo.ml" *** ocaml with ocamlcommon ocaml_script_as_argument = "true" test_file = "gen_cached_cmi.ml" arguments = "cached_cmi.ml" **** ocamlc.byte module = "" program = "${test_build_directory}/main.exe" libraries ...
30.878049
74
0.672196
aa3ddea06930fe57636e72630685c6f3e632f461
2,640
ml
OCaml
src/bin/todo/cli.ml
ludovicdeluna/planet
753a68d96ec7933697e9c6d2b15ee2a494da4ecd
[ "MIT" ]
24
2019-04-13T21:09:47.000Z
2022-03-28T10:43:52.000Z
src/bin/todo/cli.ml
ludovicdeluna/planet
753a68d96ec7933697e9c6d2b15ee2a494da4ecd
[ "MIT" ]
5
2019-10-21T08:15:39.000Z
2020-03-12T08:41:58.000Z
src/bin/todo/cli.ml
ludovicdeluna/planet
753a68d96ec7933697e9c6d2b15ee2a494da4ecd
[ "MIT" ]
1
2020-03-12T08:24:13.000Z
2020-03-12T08:24:13.000Z
let call = "./todo.exe" let version = "1.0.0" open Cmdliner let create = let doc = "Create a new task" in let man = Glue.Man.default call in let exits = Term.default_exits in Term.(const Lib.create $ const ()), Term.info "new" ~version ~doc ~exits ~man ;; let show = let doc = "Show a task" in let man = G...
29.010989
80
0.640909
aa5d7ef29686091bb89c7fcca9995f0fc4077402
5,916
ml
OCaml
src/dune_engine/diff_promotion.ml
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
245
2016-12-02T14:13:32.000Z
2018-01-14T20:00:40.000Z
src/dune_engine/diff_promotion.ml
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
380
2017-01-28T18:46:52.000Z
2018-01-17T13:34:51.000Z
src/dune_engine/diff_promotion.ml
mndrix/dune
30b84ff370351b13f05db34fd952dfe5d0249bcb
[ "MIT" ]
59
2016-12-02T13:58:19.000Z
2018-01-06T18:23:02.000Z
open Import let staging_area = Path.Build.relative Path.Build.root ".promotion-staging" module Annot = struct type t = { in_source : Path.Source.t ; in_build : Path.Build.t } let to_dyn { in_source; in_build } = let open Dyn in record [ ("in_source", Path.Source.to_dyn in_source) ...
32.505495
80
0.642833
aa98a66be090e714de21767910033c3b19c1c12e
3,607
ml
OCaml
hphp/hack/src/server/serverError.ml
jmurret/hhvm
f005fa3ca2793291cf59e217db3e9ce074d22f71
[ "PHP-3.01", "Zend-2.0" ]
1
2020-01-17T02:24:38.000Z
2020-01-17T02:24:38.000Z
hphp/hack/src/server/serverError.ml
jmurret/hhvm
f005fa3ca2793291cf59e217db3e9ce074d22f71
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/serverError.ml
jmurret/hhvm
f005fa3ca2793291cf59e217db3e9ce074d22f71
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the "hack" directory of this source tree. * *) (*****************************************************************************) (* Error module ...
34.028302
79
0.647075
17019b255de427ee036625b984a2bf506a409ace
16,698
ml
OCaml
test/test_generic.ml
ChrisTimperley/comby
54dbf6946fbe6a0d9a4bb271fe99074e9eba4d2d
[ "Apache-2.0" ]
1
2021-01-08T15:36:23.000Z
2021-01-08T15:36:23.000Z
test/test_generic.ml
ChrisTimperley/comby
54dbf6946fbe6a0d9a4bb271fe99074e9eba4d2d
[ "Apache-2.0" ]
null
null
null
test/test_generic.ml
ChrisTimperley/comby
54dbf6946fbe6a0d9a4bb271fe99074e9eba4d2d
[ "Apache-2.0" ]
null
null
null
open Core open Matchers open Rewriter let configuration = Configuration.create ~match_kind:Fuzzy () let format s = let s = String.chop_prefix_exn ~prefix:"\n" s in let leading_indentation = Option.value_exn (String.lfindi s ~f:(fun _ c -> c <> ' ')) in s |> String.split ~on:'\n' |> List.map ~f:(Fn.flip Str...
33.396
116
0.626422
aaa51d4acd14158da57f8ad7405d7bf6f3f6a29d
712
ml
OCaml
result/fixml/formula/sub89/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
result/fixml/formula/sub89/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
result/fixml/formula/sub89/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec value : exp -> int = fun n -> match n with | Num h -> h |...
23.733333
65
0.558989
44eef98370916fff0ddaedb636fdddb8a13b0093
25,843
ml
OCaml
src/dune_rules/odoc.ml
MisterDA/dune
36e4f4deced4bd06b3b5fbe6d5b0a216036401fa
[ "MIT" ]
null
null
null
src/dune_rules/odoc.ml
MisterDA/dune
36e4f4deced4bd06b3b5fbe6d5b0a216036401fa
[ "MIT" ]
null
null
null
src/dune_rules/odoc.ml
MisterDA/dune
36e4f4deced4bd06b3b5fbe6d5b0a216036401fa
[ "MIT" ]
2
2021-09-09T03:30:21.000Z
2021-09-09T06:21:34.000Z
open! Dune_engine open! Stdune open Import open Dune_file open Memo.Build.O module SC = Super_context let ( ++ ) = Path.Build.relative module Scope_key : sig val of_string : Super_context.t -> string -> Lib_name.t * Lib.DB.t val to_string : Lib_name.t -> Dune_project.t -> string end = struct let of_string sctx...
33.345806
81
0.632434
44f4947427fd22f53282486424021c4850eff6bc
1,127
ml
OCaml
applications/static_website_tls/config.ml
TheLortex/mirage-skeleton
1b06730a8247f1e56b9e885e1c764d7f4b9f53e4
[ "Unlicense" ]
null
null
null
applications/static_website_tls/config.ml
TheLortex/mirage-skeleton
1b06730a8247f1e56b9e885e1c764d7f4b9f53e4
[ "Unlicense" ]
null
null
null
applications/static_website_tls/config.ml
TheLortex/mirage-skeleton
1b06730a8247f1e56b9e885e1c764d7f4b9f53e4
[ "Unlicense" ]
null
null
null
open Mirage let stack = generic_stackv4 default_network let data_key = Key.(value @@ kv_ro ~group:"data" ()) let data = generic_kv_ro ~key:data_key "htdocs" (* set ~tls to false to get a plain-http server *) let https_srv = cohttp_server @@ conduit_direct ~tls:true stack let http_port = let doc = Key.Arg.info ~doc:...
34.151515
91
0.688554