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
bce8d3983f483975131cad9bc6e4b420609edb2b
990
mli
OCaml
source/analysis/refinementUnit.mli
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
1
2021-10-20T14:36:26.000Z
2021-10-20T14:36:26.000Z
source/analysis/refinementUnit.mli
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
2
2021-08-21T07:50:23.000Z
2022-02-27T21:33:33.000Z
source/analysis/refinementUnit.mli
zhuang-93/pyre-check
460b4c7bd81b152f386d6867c963564e1b20f19c
[ "MIT" ]
1
2021-02-20T13:09:30.000Z
2021-02-20T13:09:30.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. *) open Ast type t [@@deriving eq, show] val base : t -> Annotation.t option val create : ?base:Annotation.t -> ?attribute_refineme...
26.756757
94
0.706061
bcf9f609e750001c3c0b9204e00e7b23caae0708
14,259
ml
OCaml
src/typing/destructuring.ml
gpetiot/flow
52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea
[ "MIT" ]
null
null
null
src/typing/destructuring.ml
gpetiot/flow
52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea
[ "MIT" ]
null
null
null
src/typing/destructuring.ml
gpetiot/flow
52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea
[ "MIT" ]
null
null
null
(* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) (* Destructuring visitor for tree-shaped patterns, parameteric over an action f to perform at the leaves. A type for the patte...
38.959016
101
0.611263
449a4500a42f033938891e08c3a71b34af9e9c2f
904
mli
OCaml
esy-lib/Git.mli
mariusschulz/esy
6dec2d1562e4aa54325368050ead0ff8fe5181ac
[ "BSD-2-Clause" ]
null
null
null
esy-lib/Git.mli
mariusschulz/esy
6dec2d1562e4aa54325368050ead0ff8fe5181ac
[ "BSD-2-Clause" ]
null
null
null
esy-lib/Git.mli
mariusschulz/esy
6dec2d1562e4aa54325368050ead0ff8fe5181ac
[ "BSD-2-Clause" ]
null
null
null
(** * Git repository manipulation. * * The implementation uses git command. *) type ref = string type commit = string type remote = string (** Clone repository from [remote] into [dst] local path. *) val clone : ?branch:string -> ?depth:int -> dst:Fpath.t -> remote:remote -> unit -> unit RunAsync.t (...
18.08
72
0.636062
bc1c8f4690d31ab3dc3abeeaac7e29e8b8757eca
125
mli
OCaml
infer/src/checkers/repeatedCallsChecker.mli
vaginessa/infer
553d39eb7d7663fb8762d368feb3b824416f37a1
[ "BSD-3-Clause" ]
null
null
null
infer/src/checkers/repeatedCallsChecker.mli
vaginessa/infer
553d39eb7d7663fb8762d368feb3b824416f37a1
[ "BSD-3-Clause" ]
null
null
null
infer/src/checkers/repeatedCallsChecker.mli
vaginessa/infer
553d39eb7d7663fb8762d368feb3b824416f37a1
[ "BSD-3-Clause" ]
null
null
null
(* * Copyright (c) 2014 - Facebook. All rights reserved. *) val callback_check_repeated_calls : Callbacks.proc_callback_t
20.833333
61
0.76
aa0da1a70fc28e92a42613f0d109d003ce79d1b8
1,282
ml
OCaml
examples/ex_xml_tok.ml
fccm/ocaml-clanlib
1929f1c11d4cc9fc19e7da22826238b4cce7a07d
[ "Zlib", "OLDAP-2.2.1" ]
1
2020-10-24T14:48:04.000Z
2020-10-24T14:48:04.000Z
examples/ex_xml_tok.ml
fccm/ocaml-clanlib
1929f1c11d4cc9fc19e7da22826238b4cce7a07d
[ "Zlib", "OLDAP-2.2.1" ]
null
null
null
examples/ex_xml_tok.ml
fccm/ocaml-clanlib
1929f1c11d4cc9fc19e7da22826238b4cce7a07d
[ "Zlib", "OLDAP-2.2.1" ]
null
null
null
let pad i = String.make (i*2) ' ' let variant i = function | CL_XMLToken.Begin -> (i + 1) | CL_XMLToken.Single -> (i) | CL_XMLToken.End -> (i - 1) let () = let file = CL_File.init Sys.argv.(1) in let tokenizer = CL_XMLTokenizer.from_file ~file in let rec loop i = match CL_XMLTokenizer.Exceptionless.nex...
30.52381
69
0.549922
bcd0feb47a9183c75e158ac54f1f5f2534aa42d6
6,268
ml
OCaml
test/optimal/aregsimple.ml
timed-c/kta
0d12216963095a7a13fea6d07076755dd010851b
[ "MIT" ]
5
2017-08-07T12:53:16.000Z
2021-07-29T02:40:19.000Z
test/optimal/aregsimple.ml
timed-c/kta
0d12216963095a7a13fea6d07076755dd010851b
[ "MIT" ]
null
null
null
test/optimal/aregsimple.ml
timed-c/kta
0d12216963095a7a13fea6d07076755dd010851b
[ "MIT" ]
2
2017-08-07T12:53:20.000Z
2018-06-15T15:28:45.000Z
open Aint32congruence open Printf type registers = |R0 |R1 |R2 |R3 |R4 |R5 |R6 |R7 |R8 |R9 |R10|R11|R12|R13|R14|R15 |R16|R17|R18|R19|R20|R21|R22|R23 |R24|R25|R26|R27|R28|R29|R30|R31 |R32|R33 type aregister = { reg8 : aint32; r...
35.412429
92
0.604659
bce89d660ec3fbcab219ce0ecbc0854a3d2b17cc
2,176
ml
OCaml
exercises/zipper/test.ml
sshine/exercism-ocaml
c8f337b08165fe3dbb718e3a4b1a31edb9d3eb39
[ "MIT" ]
null
null
null
exercises/zipper/test.ml
sshine/exercism-ocaml
c8f337b08165fe3dbb718e3a4b1a31edb9d3eb39
[ "MIT" ]
null
null
null
exercises/zipper/test.ml
sshine/exercism-ocaml
c8f337b08165fe3dbb718e3a4b1a31edb9d3eb39
[ "MIT" ]
null
null
null
open Base open OUnit2 module T = Tree module Z = Zipper (* Assert Equals Int *) let aei exp got _test_ctxt = assert_equal exp got ~cmp:Int.equal ~printer:Int.to_string (* Assert Equals Tree *) let aet exp got _test_ctxt = let printer t = Tree.sexp_of_t Int.sexp_of_t t |> Sexp.to_string_hum in assert_equal exp ...
35.096774
79
0.618566
bcae65299e19bafbb13ffa8db42596ab6ee738c6
7,264
mli
OCaml
src/ocaml/typing/406/typecore.mli
mnxn/merlin
c9761a552380838e9f530b5c47c0ea3c47c33565
[ "MIT" ]
null
null
null
src/ocaml/typing/406/typecore.mli
mnxn/merlin
c9761a552380838e9f530b5c47c0ea3c47c33565
[ "MIT" ]
null
null
null
src/ocaml/typing/406/typecore.mli
mnxn/merlin
c9761a552380838e9f530b5c47c0ea3c47c33565
[ "MIT" ]
null
null
null
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
40.355556
79
0.651845
bc1d120bb507409bb976dec953f38c2be7ddb43b
50,071
ml
OCaml
bigraph/src/solver.ml
sidousidou/BigraphER
536d1735789f99c62e879cf490264c463e912aee
[ "BSD-2-Clause" ]
null
null
null
bigraph/src/solver.ml
sidousidou/BigraphER
536d1735789f99c62e879cf490264c463e912aee
[ "BSD-2-Clause" ]
null
null
null
bigraph/src/solver.ml
sidousidou/BigraphER
536d1735789f99c62e879cf490264c463e912aee
[ "BSD-2-Clause" ]
null
null
null
(* Solver type *) type solver_t = MSAT | MCARD (* Solver type wrapper*) module type ST = sig val solver_type : solver_t val string_of_solver_t : string end (* Shared types *) type value = False | True | Unknown type solution = SAT | UNSAT type stats = { v : int; c : int; mem : float; cpu : float } let string_...
31.1
92
0.51383
bc215d6c03a0e42242e1b9b87ab5027a311d067b
6,987
ml
OCaml
src/tastmap.ml
basavesh/FaCT
7aa484b4a038f9d0e2771ba3fb6ef94535964fe0
[ "BSD-3-Clause" ]
null
null
null
src/tastmap.ml
basavesh/FaCT
7aa484b4a038f9d0e2771ba3fb6ef94535964fe0
[ "BSD-3-Clause" ]
null
null
null
src/tastmap.ml
basavesh/FaCT
7aa484b4a038f9d0e2771ba3fb6ef94535964fe0
[ "BSD-3-Clause" ]
null
null
null
open Util open Pos open Err open Tast class tast_visitor (m : fact_module) = object (visit) val _minfo : module_info = let Module(_,_,minfo) = m in minfo val mutable _cur_fn : fun_name = fake_pos @> "" val mutable _pre_inject : simple_statement list = [] val mutable _post_inject : simple_statem...
31.191964
77
0.478746
bc5ad981a6fbe178aea7028105cc2e1a6ccf5ddc
4,870
ml
OCaml
src/irmin-pack/unix/checks_intf.ml
maiste-forks/irmin
b1c2518017be7faa0205a9238fd4085149643755
[ "0BSD" ]
null
null
null
src/irmin-pack/unix/checks_intf.ml
maiste-forks/irmin
b1c2518017be7faa0205a9238fd4085149643755
[ "0BSD" ]
null
null
null
src/irmin-pack/unix/checks_intf.ml
maiste-forks/irmin
b1c2518017be7faa0205a9238fd4085149643755
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2018-2021 Tarides <contact@tarides.com> * * 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. * * THE SOFTWARE IS PROVIDED "AS IS" AN...
27.828571
81
0.637372
44872d9b88925e164e6b5695bb8a42ed68525a2a
7,413
ml
OCaml
infer/src/nullsafe/unit/AggregatedSummariesTest.ml
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
14,499
2015-06-11T16:00:28.000Z
2022-03-31T23:43:54.000Z
infer/src/nullsafe/unit/AggregatedSummariesTest.ml
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
1,529
2015-06-11T16:55:30.000Z
2022-03-27T15:59:46.000Z
infer/src/nullsafe/unit/AggregatedSummariesTest.ml
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
2,225
2015-06-11T16:36:10.000Z
2022-03-31T05:16:59.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. *) open! IStd open OUnit2 open AggregatedSummaries module F = Format let test_package = Some "test.package" let mock_summary id = ...
34.802817
126
0.58249
aa2d14483385c6aca070671d225118a4fe2dfb01
2,931
ml
OCaml
src/ppx_repr/lib/plugins.ml
Ngoguey42/repr
b84a68f448c1ece2327f6e8928f1948280d6ba07
[ "0BSD" ]
null
null
null
src/ppx_repr/lib/plugins.ml
Ngoguey42/repr
b84a68f448c1ece2327f6e8928f1948280d6ba07
[ "0BSD" ]
null
null
null
src/ppx_repr/lib/plugins.ml
Ngoguey42/repr
b84a68f448c1ece2327f6e8928f1948280d6ba07
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2019-2020 Craig Ferguson <me@craigfe.io> * * 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. * * THE SOFTWARE IS PROVIDED "AS IS" A...
36.185185
79
0.659843
aa42cea377e5426058d3c98c922db9df103de248
441
ml
OCaml
parser/qd_based/Wasm_Parse_Aux_block.ml
secure-foundations/vWasm
6d9340c94cf0aa39be4173051fc8eeea373bd183
[ "BSD-3-Clause" ]
null
null
null
parser/qd_based/Wasm_Parse_Aux_block.ml
secure-foundations/vWasm
6d9340c94cf0aa39be4173051fc8eeea373bd183
[ "BSD-3-Clause" ]
null
null
null
parser/qd_based/Wasm_Parse_Aux_block.ml
secure-foundations/vWasm
6d9340c94cf0aa39be4173051fc8eeea373bd183
[ "BSD-3-Clause" ]
null
null
null
open Prims type aux_block = Wasm_Parse_Blocktype.blocktype let (aux_block_parser32 : LowParse_SLow_Base.bytes32 -> (aux_block * FStar_UInt32.t) FStar_Pervasives_Native.option) = Wasm_Parse_Blocktype.blocktype_parser32 let (aux_block_serializer32 : aux_block -> LowParse_SLow_Base.bytes32) = Wasm_Parse_Blocktyp...
36.75
72
0.825397
bcbc3e96d278b8023e7ac3f1e4c4454e942cd21b
854
ml
OCaml
ocaml-gadt-playground/main.ml
neojski/random
6712ae67e7e06d9ccd4b7b55a8e32978fb735f0e
[ "MIT" ]
null
null
null
ocaml-gadt-playground/main.ml
neojski/random
6712ae67e7e06d9ccd4b7b55a8e32978fb735f0e
[ "MIT" ]
null
null
null
ocaml-gadt-playground/main.ml
neojski/random
6712ae67e7e06d9ccd4b7b55a8e32978fb735f0e
[ "MIT" ]
null
null
null
open! Core open! Async module To_string = struct type partial = [ `partial ] type full = [ `full ] type ('a, _) t = | None : (_, partial) t | Some : ('a -> string) -> ('a, full) t end type 'a full = { of_string : string -> 'a ; to_string : 'a -> string } type 'a partial = { of_string : string -> 'a } ...
27.548387
96
0.603044
bc9e0621cc7107aa6062ea9c7277cc0f9a483f2d
9,180
ml
OCaml
query/Query_Formula.ml
usi-systems/camus-compiler
45b2aa1e8072d02441ca0b11293758f79107929b
[ "Apache-2.0" ]
2
2021-04-05T15:16:42.000Z
2021-08-04T13:44:05.000Z
query/Query_Formula.ml
usi-systems/camus-compiler
45b2aa1e8072d02441ca0b11293758f79107929b
[ "Apache-2.0" ]
null
null
null
query/Query_Formula.ml
usi-systems/camus-compiler
45b2aa1e8072d02441ca0b11293758f79107929b
[ "Apache-2.0" ]
1
2021-02-09T23:57:13.000Z
2021-02-09T23:57:13.000Z
open Core module type Atom = sig type t [@@deriving compare, sexp] val compare : t -> t -> int val format_t : t -> string val disjoint : t -> t -> bool val subset : t -> t -> bool end module Formula (A: Atom) = struct type atom = A.t [@@deriving compare, sexp] type t = | True | False ...
29.050633
93
0.52658
bc8e81844e713ec3401be7c3021766731c1f19dc
74
ml
OCaml
code/test-funct2.ml
JacquesCarette/finally-tagless
964bd1b4c88d5713527e115529ec762ba3f0dd5f
[ "BSD-3-Clause" ]
30
2018-11-29T15:58:25.000Z
2021-11-05T01:28:52.000Z
code/test-funct2.ml
JacquesCarette/finally-tagless
964bd1b4c88d5713527e115529ec762ba3f0dd5f
[ "BSD-3-Clause" ]
null
null
null
code/test-funct2.ml
JacquesCarette/finally-tagless
964bd1b4c88d5713527e115529ec762ba3f0dd5f
[ "BSD-3-Clause" ]
null
null
null
Funct2.Gen1.gen [] (fun s v -> v);; Funct2.Gen2.gen [] (fun s v -> v);;
24.666667
36
0.513514
bcbf60f1d9ec20d55d5134ae19f08f22f46d6c29
365
mli
OCaml
lib/bap_sema/bap_sema_lift.mli
dra27/bap
bc9679900822afac9c7f7f1dc098958bab217b0e
[ "MIT" ]
1,697
2015-01-09T07:17:41.000Z
2022-03-26T17:48:05.000Z
lib/bap_sema/bap_sema_lift.mli
dvntaudio/bap
5cfc3e584ea32d6c0c33013e050fb1a1e8f260de
[ "MIT" ]
685
2015-01-10T21:32:42.000Z
2022-03-23T23:44:53.000Z
lib/bap_sema/bap_sema_lift.mli
dvntaudio/bap
5cfc3e584ea32d6c0c33013e050fb1a1e8f260de
[ "MIT" ]
294
2015-01-10T15:51:57.000Z
2022-03-20T05:37:22.000Z
open Core_kernel open Bap_types.Std open Bap_image_std open Bap_disasm_std open Bap_ir val program : symtab -> program term val sub : block -> cfg -> sub term val blk : cfg -> block -> blk term list val insn : ?addr:addr -> insn -> blk term list val insns : ?fall:[`Inter of Ir_jmp.dst | `Intra of Ir_jmp.dst ] -> ...
21.470588
57
0.684932
bc8582c76e31ad22b9d3fc76dee701fb3f81aa19
5,312
ml
OCaml
examples/flat.ml
laser-turtle/ogaml
9e1505397025e33bb7e5879e7011c62e3c55f648
[ "MIT" ]
29
2016-09-26T17:20:07.000Z
2021-07-28T13:46:52.000Z
examples/flat.ml
laser-turtle/ogaml
9e1505397025e33bb7e5879e7011c62e3c55f648
[ "MIT" ]
15
2015-11-08T22:37:40.000Z
2019-02-25T10:37:23.000Z
examples/flat.ml
VLanvin/ogaml
5e74597521abf7ba2833a9247e55780eabfbab78
[ "MIT" ]
2
2018-10-01T19:42:52.000Z
2019-07-25T15:09:58.000Z
open OgamlGraphics open OgamlMath let settings = OgamlCore.ContextSettings.create ~msaa:8 ~resizable:true ~fullscreen:true () let window = Window.create ~width:900 ~height:600 ~settings ~title:"Flat Example" () let rectangle1 = Shape.create_rectangle ~position:Vector2f.({ x = 50. ; y = 75. ...
29.842697
79
0.55064
bc54de0da66051ffbcb383e3af3636ab38b74b0d
642
ml
OCaml
data/sp14/1975.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/sp14/1975.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/sp14/1975.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let rec digitsOfInt n = if n < 0 then [] else (match n with | 0 -> [0] | _ -> digitsOfInt n []);; (* fix let rec digitsOfInt n = if n < 0 then [] else (match n with | 0 -> [] | _ -> (digitsOfInt (n / 10)) @ [n mod 10]);; *) (* changed spans (3,45)-(3,48) (3,46)-(3,47) (3,56)-(3,67) (3,68)-(3,69) (3,70)-(3...
13.375
76
0.462617
44e4d7deb4bd15b9a4fe7337e6a24decd1d42d5b
273
ml
OCaml
data/derived/comb/progs/cnstr/prog2814.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/cnstr/prog2814.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/cnstr/prog2814.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
type expr = | VarX | VarY | Sine of expr | Cosine of expr | Average of expr* expr | Times of expr* expr | Thresh of expr* expr* expr* expr | Power of expr | KellysOp of expr* expr* expr* expr;; let buildKellysOp (a,b,a_more) = KellysOp (a, b, a_more);;
19.5
58
0.626374
bcfa20080da96890d2f7618368989fb23c626a9c
652
ml
OCaml
benchmarks/list/alist_sum.ml
victornicolet/atropos
86a96d263f49c1eccd8f584d624de119180e0eea
[ "MIT" ]
3
2021-05-03T16:20:32.000Z
2021-05-14T19:59:51.000Z
benchmarks/list/alist_sum.ml
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
null
null
null
benchmarks/list/alist_sum.ml
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
1
2021-05-12T15:14:40.000Z
2021-05-12T15:14:40.000Z
type 'a list = Nil | Cons of 'a * 'a list type 'a clist = Empty | Single of 'a | Concat of 'a clist * 'a clist let rec repr = function Empty -> Nil | Single a -> Cons (a, Nil) | Concat (x, y) -> dec y x and dec l1 = function | Empty -> repr l1 | Single a -> Cons (a, repr l1) | Concat (x, y) -> dec (Concat (y, ...
23.285714
91
0.527607
aa13ee112e70e8d1db0db517f4f50846b24023a8
28,240
ml
OCaml
ast/test/statementTest.ml
KoalaTea/pyre-check
71de5448f6695b3616a2a985fcbe27da74a3fc44
[ "MIT" ]
null
null
null
ast/test/statementTest.ml
KoalaTea/pyre-check
71de5448f6695b3616a2a985fcbe27da74a3fc44
[ "MIT" ]
null
null
null
ast/test/statementTest.ml
KoalaTea/pyre-check
71de5448f6695b3616a2a985fcbe27da74a3fc44
[ "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 Ast open Analysis open Expression open Pyre open PyreParser open Statement open Test let test_is_method _ = let...
27.101727
99
0.57415
bcf9eae7b43ff0dca6f6b550b819bc0bdd8722ae
256
ml
OCaml
test/layouts.ml
o1-labs/ppx_version
75a1bb5feeb583939a053519383f6e86f8f9ad49
[ "Apache-2.0" ]
8
2020-08-15T15:43:42.000Z
2021-10-30T04:38:30.000Z
test/layouts.ml
o1-labs/ppx_version
75a1bb5feeb583939a053519383f6e86f8f9ad49
[ "Apache-2.0" ]
3
2020-07-01T17:27:26.000Z
2021-11-03T00:44:21.000Z
test/layouts.ml
o1-labs/ppx_version
75a1bb5feeb583939a053519383f6e86f8f9ad49
[ "Apache-2.0" ]
4
2020-06-30T03:33:05.000Z
2021-07-28T19:35:34.000Z
let dummy = { Ppx_version_runtime.Bin_prot_layout.layout_loc = __LOC__ ; type_decl = "dummy" ; version_opt = None ; bin_io_derived = true ; bin_prot_rule = Ppx_version_runtime.Bin_prot_rule.Int }
36.571429
70
0.601563
aa024893586723f037288b23700f3b5c634c016a
11,293
ml
OCaml
test/irmin-pack/test_hashes.ml
maiste-forks/irmin
b1c2518017be7faa0205a9238fd4085149643755
[ "0BSD" ]
null
null
null
test/irmin-pack/test_hashes.ml
maiste-forks/irmin
b1c2518017be7faa0205a9238fd4085149643755
[ "0BSD" ]
null
null
null
test/irmin-pack/test_hashes.ml
maiste-forks/irmin
b1c2518017be7faa0205a9238fd4085149643755
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2018-2021 Tarides <contact@tarides.com> * * 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. * * THE SOFTWARE IS PROVIDED "AS IS" AN...
34.854938
81
0.653148
aa4589608f3f1452442c701dec1d7ea50d57200a
300
mli
OCaml
hphp/hack/src/utils/collections/wrappedMap.mli
divinity76/hhvm
cfde9bb3d7d49740d0ca0228e2d714637b155a13
[ "PHP-3.01", "Zend-2.0" ]
9,491
2015-01-01T00:30:28.000Z
2022-03-31T20:22:11.000Z
hphp/hack/src/utils/collections/wrappedMap.mli
divinity76/hhvm
cfde9bb3d7d49740d0ca0228e2d714637b155a13
[ "PHP-3.01", "Zend-2.0" ]
4,796
2015-01-01T00:26:31.000Z
2022-03-31T01:09:05.000Z
hphp/hack/src/utils/collections/wrappedMap.mli
divinity76/hhvm
cfde9bb3d7d49740d0ca0228e2d714637b155a13
[ "PHP-3.01", "Zend-2.0" ]
2,126
2015-01-01T11:13:29.000Z
2022-03-28T19:58:15.000Z
(* * 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. * *) module type S = WrappedMap_sig.S module Make (Ord : Map.OrderedType) : S with type key = Ord.t
23.076923
66
0.693333
aa3fa142614adcb005f25ab0ef75d158c1bdfb66
887
ml
OCaml
data/fa15_min/0395.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/0395.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/0395.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) = let res = f b in match res with | (x,y) when y = true -> wwhile (f, x) | (x,y) -> x;; let fixpoint (f,b) = let fx x = if x = 0 then 0 else if x > 1 then x - 1 else x + 1 in wwhile ((fx b), f);; (* fix let rec wwhile (f,b) = let res = f b in match res with | (x,y) when y = true ->...
17.057692
74
0.509583
bc076beaceab32c58f9ec96350684197cfbdaa27
4,111
mli
OCaml
roxe.cdt/roxe_llvm/bindings/ocaml/executionengine/llvm_executionengine.mli
APFDev/actc
be5c1c0539d30a3745a725b0027767448ef8e1f6
[ "MIT" ]
1,073
2017-06-28T05:11:54.000Z
2022-03-31T12:52:07.000Z
roxe.cdt/roxe_llvm/bindings/ocaml/executionengine/llvm_executionengine.mli
APFDev/actc
be5c1c0539d30a3745a725b0027767448ef8e1f6
[ "MIT" ]
51
2019-10-23T11:55:08.000Z
2021-12-21T06:32:11.000Z
roxe.cdt/roxe_llvm/bindings/ocaml/executionengine/llvm_executionengine.mli
APFDev/actc
be5c1c0539d30a3745a725b0027767448ef8e1f6
[ "MIT" ]
244
2017-06-28T05:08:57.000Z
2022-03-13T05:03:12.000Z
(*===-- llvm_executionengine.mli - LLVM OCaml Interface -------*- OCaml -*-===* * * The LLVM Compiler Infrastructure * * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. * *===--------------------------------------------------------...
43.734043
83
0.707127
bcd61f39b3e00a7a7d71d87acf2dbbddfa126d05
24,673
mli
OCaml
presentations/coq-workshop-2014-coq/plugins/micromega/micromega.mli
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/plugins/micromega/micromega.mli
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/plugins/micromega/micromega.mli
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
type __ = Obj.t val negb : bool -> bool type nat = | O | S of nat val fst : ('a1 * 'a2) -> 'a1 val snd : ('a1 * 'a2) -> 'a2 val app : 'a1 list -> 'a1 list -> 'a1 list type comparison = | Eq | Lt | Gt val compOpp : comparison -> comparison type compareSpecT = | CompEqT | CompLtT | CompGtT val compareSpec2Type :...
20.141224
77
0.507316
aa48da67de30027748abf76d805ce4d14c558b4d
274
ml
OCaml
result/fixml/uniq/sub31/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
result/fixml/uniq/sub31/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
result/fixml/uniq/sub31/original.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
let rec _contains lst value = match lst with | [] -> false | hd :: tl -> if hd = value then true else _contains tl value let rec uniq : 'a list -> 'a list = fun lst -> match lst with | [] -> [] | hd :: tl -> if _contains tl hd then uniq tl else hd :: uniq tl
22.833333
66
0.583942
bcf9f0f5aee07d7049d1602d9e2246c0d314ecc1
1,891
ml
OCaml
src/checkutils.ml
AshOlogn/ashpp-language-compiler
4cdb9e492147e913a340cb961dbc2b4088b81b40
[ "MIT" ]
1
2018-12-23T05:03:39.000Z
2018-12-23T05:03:39.000Z
src/checkutils.ml
AshOlogn/ashpp-language-compiler
4cdb9e492147e913a340cb961dbc2b4088b81b40
[ "MIT" ]
null
null
null
src/checkutils.ml
AshOlogn/ashpp-language-compiler
4cdb9e492147e913a340cb961dbc2b4088b81b40
[ "MIT" ]
null
null
null
open Ast (* type-checking utility functions *) (* return evaluated type, or invalid if arguments have invalid types *) (* exceptions are thrown by the actual checker functions *) let check_unary op t = match op with | ONeg | OPos -> (match t with | TPrim TInt | TPrim TFloat -> t | _ -> TInvalid) | ...
31.516667
71
0.540984
aa29decc258359636980b11d1c49b71ca062f9ea
800
mli
OCaml
src/shapes/story.mli
ludovicdeluna/planet
753a68d96ec7933697e9c6d2b15ee2a494da4ecd
[ "MIT" ]
24
2019-04-13T21:09:47.000Z
2022-03-28T10:43:52.000Z
src/shapes/story.mli
ludovicdeluna/planet
753a68d96ec7933697e9c6d2b15ee2a494da4ecd
[ "MIT" ]
5
2019-10-21T08:15:39.000Z
2020-03-12T08:41:58.000Z
src/shapes/story.mli
ludovicdeluna/planet
753a68d96ec7933697e9c6d2b15ee2a494da4ecd
[ "MIT" ]
1
2020-03-12T08:24:13.000Z
2020-03-12T08:24:13.000Z
(** Describes a [Story] *) open Paperwork (** {2 Types} *) (** Kind of story *) type kind = | Long | Short (** A Story *) type t = { permaname : string ; title : string ; synopsis : string ; links : (string * Link.simple list) list ; content : Text.t ; published : bool ; related_project : string o...
18.604651
58
0.60375
aa2276f764c101ab5cd8ddcdae51f21076d90010
5,361
ml
OCaml
hphp/hack/src/typing/typing_inheritance.ml
modyharshit23/hhvm
dc14931d80a49c60fac2365b92f3648e12d9b0f4
[ "PHP-3.01", "Zend-2.0" ]
1
2019-11-01T13:46:07.000Z
2019-11-01T13:46:07.000Z
hphp/hack/src/typing/typing_inheritance.ml
modyharshit23/hhvm
dc14931d80a49c60fac2365b92f3648e12d9b0f4
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_inheritance.ml
modyharshit23/hhvm
dc14931d80a49c60fac2365b92f3648e12d9b0f4
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(* * Copyright (c) 2019, 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. * *) (** Module which checks class members against the full set of members it inherited, including those which were o...
33.50625
78
0.661444
8afa85e98d9ee613d22fcf8d4e2deb52ab235004
1,824
ml
OCaml
m_mtree.ml
AiPick/lambda_auth_in_ocaml
9df1ab3986081fa1743795136a2ca7bcd50849a5
[ "MIT" ]
null
null
null
m_mtree.ml
AiPick/lambda_auth_in_ocaml
9df1ab3986081fa1743795136a2ca7bcd50849a5
[ "MIT" ]
null
null
null
m_mtree.ml
AiPick/lambda_auth_in_ocaml
9df1ab3986081fa1743795136a2ca7bcd50849a5
[ "MIT" ]
null
null
null
(* Merkle *) type 'a authtype = | Merkle of string * 'a | Shallow of string | Ideal of 'a (* authtype data test *) let e1= Merkle ("a","hash_l") let e2= Merkle ("b","hash_r") (* ------------------ *) (* let unauth : 'a authtype -> 'a = function x -> assert false *) let unauth : 'a authtype -> 'a = function x...
28.061538
81
0.63432
aa4a42254c3c2539c3ac2f2ed8f735ce8ab11a82
871
ml
OCaml
data/fa15/0216.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15_min/0216.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/0216.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) = let temp = f b in match temp with | (a,boolean) -> if boolean then wwhile (f, a) else a;; let fixpoint (f,b) = wwhile (let n z = (z, (b = (z b))) in (n, b));; (* fix let rec wwhile (f,b) = let temp = f b in match temp with | (a,boolean) -> if boolean then wwhile (f, a) else a;; let ...
16.433962
73
0.507463
bc50ec109092c1017c65008b5e3b417a6666d859
1,373
ml
OCaml
data/sp14/2519.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/sp14/2519.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/sp14/2519.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let rec wwhile (f,b) = let rec wwhelper f b = let (b',c') = f b in if c' = false then b' else wwhelper f b' in wwhelper f b;; let fixpoint (f,b) = wwhile ((let g x = let xx = f x in (xx, (xx != b)) in g b), b);; (* fix let rec wwhile (f,b) = let rec wwhelper f b = let (b',c') = f b in if c' = false...
14.763441
68
0.461763
bc3bee3d8185bf3670c382623892123a88df124a
22,646
ml
OCaml
duniverse/owl/src/base/neural/owl_neural_graph.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
1
2019-11-17T23:16:15.000Z
2019-11-17T23:16:15.000Z
duniverse/owl/src/base/neural/owl_neural_graph.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/owl/src/base/neural/owl_neural_graph.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> *) (** Neural network: Graphical neural network *) open Owl_types (* Make functor starts *) module Make (Neuron : Owl_neural_neuron_sig.Sig) = struct module Neuron = Neuron open Neuron...
32.213371
114
0.645589
bc5ec05c069f6a960662efdc525b03827eb26955
722
ml
OCaml
benchmarks/C/formula/sol341.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/C/formula/sol341.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/C/formula/sol341.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
2
2020-02-06T00:36:38.000Z
2020-07-27T09:53:35.000Z
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 eval : formula -> bool = fun f -> match f with | T...
21.878788
54
0.51662
aa2f37a7e4bec19114c88038921d727925e8ad0e
14,245
ml
OCaml
src/vmm_vmmd.ml
smorimoto/albatross
a87e5175f354dd0343a363f1e6d7fa358a546d3c
[ "0BSD" ]
null
null
null
src/vmm_vmmd.ml
smorimoto/albatross
a87e5175f354dd0343a363f1e6d7fa358a546d3c
[ "0BSD" ]
null
null
null
src/vmm_vmmd.ml
smorimoto/albatross
a87e5175f354dd0343a363f1e6d7fa358a546d3c
[ "0BSD" ]
null
null
null
(* (c) 2017, 2018 Hannes Mehnert, all rights reserved *) open Astring open Vmm_core open Rresult open R.Infix type 'a t = { console_counter : int64 ; stats_counter : int64 ; log_counter : int64 ; resources : Vmm_resources.t ; waiters : 'a String.Map.t ; restarting : String.Set.t ; } (* the life of a uni...
37.290576
129
0.636223
aa0c31d26d418924d2f0feb67d89c5e88ca6a09f
349,466
ml
OCaml
tests/dsa_tests.ml
psafont/ocaml-nocrypto
ed7bb8d911dc340e36d85d335d9edb8339f0932d
[ "ISC" ]
98
2015-01-06T03:07:39.000Z
2022-03-29T22:23:57.000Z
tests/dsa_tests.ml
psafont/ocaml-nocrypto
ed7bb8d911dc340e36d85d335d9edb8339f0932d
[ "ISC" ]
122
2015-01-17T10:43:25.000Z
2021-05-10T17:49:12.000Z
tests/dsa_tests.ml
psafont/ocaml-nocrypto
ed7bb8d911dc340e36d85d335d9edb8339f0932d
[ "ISC" ]
56
2015-04-20T12:29:08.000Z
2021-07-25T15:42:25.000Z
open OUnit2 open Notest open Nocrypto open Uncommon (* # CAVS 11.2 # "SigGen" information for "dsa2_values" # Mod sizes selected: L=1024, N=160, SHA-1 L=1024, N=160, SHA-224 L=1024, N=160, SHA-256 L=1024, N=160, SHA-384 L=1024, N=160, SHA-512 L=2048, N=224, SHA-1 L=2048, N=224, SHA-224 L=2048, N=224, SHA-256 L=2048, ...
146.772785
775
0.954568
bc6ddf07f021c4ce134109c3829c8663e4af1c99
73,455
ml
OCaml
src/typing/debug_js.ml
Sam9799/flow
3255fc9ed24e0913923459cad3392339757b6472
[ "MIT" ]
null
null
null
src/typing/debug_js.ml
Sam9799/flow
3255fc9ed24e0913923459cad3392339757b6472
[ "MIT" ]
null
null
null
src/typing/debug_js.ml
Sam9799/flow
3255fc9ed24e0913923459cad3392339757b6472
[ "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 Reason open Type open TypeUtil open Utils_js open Loc_collections let string_of_polarity = function | Polarity.Negative -> ...
40.89922
113
0.593493
aa50ae1a7cb7c1667f0ba4371e32edaa25c75596
1,813
mli
OCaml
src/tracy.mli
AestheticIntegration/ocaml-tracy
0ba5be078ee3c098a8abdfbb56788d6aeeb800e0
[ "BSD-3-Clause" ]
17
2021-05-06T17:04:46.000Z
2021-09-06T10:14:47.000Z
src/tracy.mli
AestheticIntegration/ocaml-tracy
0ba5be078ee3c098a8abdfbb56788d6aeeb800e0
[ "BSD-3-Clause" ]
null
null
null
src/tracy.mli
AestheticIntegration/ocaml-tracy
0ba5be078ee3c098a8abdfbb56788d6aeeb800e0
[ "BSD-3-Clause" ]
null
null
null
type span val enable : unit -> unit val enabled : unit -> bool val enter : file:string -> line:int -> ?fun_name:string -> name:string -> unit -> span (** Enter a span. @param file the filename, typically you can use [__FILE__] @param line the line number in [file], typically you can use [__LINE__]...
27.469697
86
0.641478
447d5e284cd3e2972e502aea5838b966c740d840
1,428
mli
OCaml
interfaces/4.02/int32.mli
crabtw/stdcompat
667cb7bf93f423e3c7f56b319e9366394d6adc4a
[ "BSD-2-Clause-FreeBSD" ]
23
2017-11-16T10:01:56.000Z
2021-06-23T08:44:44.000Z
interfaces/4.02/int32.mli
crabtw/stdcompat
667cb7bf93f423e3c7f56b319e9366394d6adc4a
[ "BSD-2-Clause-FreeBSD" ]
15
2018-04-21T13:49:52.000Z
2022-02-16T11:19:38.000Z
interfaces/4.02/int32.mli
crabtw/stdcompat
667cb7bf93f423e3c7f56b319e9366394d6adc4a
[ "BSD-2-Clause-FreeBSD" ]
8
2018-04-23T18:10:00.000Z
2021-12-14T14:31:22.000Z
val zero : int32 val one : int32 val minus_one : int32 external neg : int32 -> int32 = "%int32_neg" external add : int32 -> int32 -> int32 = "%int32_add" external sub : int32 -> int32 -> int32 = "%int32_sub" external mul : int32 -> int32 -> int32 = "%int32_mul" external div : int32 -> int32 -> int32 = "%int32_div" exte...
43.272727
68
0.69888
aa502aab1639bd0d8fe773199f689207a7a7527f
4,251
mli
OCaml
lib/fir/src/constant.mli
c4-project/c4f
c2765061ad816d41d0545eabe3f3cd7c574383f4
[ "CECILL-B", "MIT" ]
2
2021-06-09T22:28:00.000Z
2021-06-30T18:08:22.000Z
lib/fir/src/constant.mli
c4-project/c4f
c2765061ad816d41d0545eabe3f3cd7c574383f4
[ "CECILL-B", "MIT" ]
13
2021-02-10T08:57:29.000Z
2021-02-16T16:17:25.000Z
lib/fir/src/constant.mli
c4-project/c4f
c2765061ad816d41d0545eabe3f3cd7c574383f4
[ "CECILL-B", "MIT" ]
1
2021-06-09T22:28:01.000Z
2021-06-09T22:28:01.000Z
(* This file is part of c4f. Copyright (c) 2018-2021 C4 Project c4t itself is licensed under the MIT License. See the LICENSE file in the project root for more information. Parts of c4t are based on code from the Herdtools7 project (https://github.com/herd/herdtools7) : see the LICENSE.herd file in th...
31.962406
77
0.675371
44d6c24076ea48ff7e305979ce8700e6721ef9a4
230
ml
OCaml
data/seminal/20060303-20:53:58-e021a562c275370c34ca3ba963367424.seminal.ml
ucsd-progsys/nanoml
0de06f2c3a41063b1bf87d5f6dd11ad830be0512
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/seminal/20060303-20:53:58-e021a562c275370c34ca3ba963367424.seminal.ml
ucsd-progsys/nanoml
0de06f2c3a41063b1bf87d5f6dd11ad830be0512
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/seminal/20060303-20:53:58-e021a562c275370c34ca3ba963367424.seminal.ml
ucsd-progsys/nanoml
0de06f2c3a41063b1bf87d5f6dd11ad830be0512
[ "BSD-3-Clause" ]
3
2016-10-11T21:36:24.000Z
2021-12-08T21:52:40.000Z
type 'a lst = Null | Cons of 'a * 'a lst let x = Cons(3, Null) let rec append lst1 lst2= match lst1 with Null -> lst2 | Cons(x,rest) -> Cons(x, append rest lst2) let _ = append ["a"] ["b"]
19.166667
48
0.508696
bc54c252c524b729ee21f5d6122bde0fc5894f38
27,004
ml
OCaml
src/dune/dune_project.ml
Julow/dune
2aac0728daa65780df9187a409a1c166ff9ab6bf
[ "MIT" ]
null
null
null
src/dune/dune_project.ml
Julow/dune
2aac0728daa65780df9187a409a1c166ff9ab6bf
[ "MIT" ]
null
null
null
src/dune/dune_project.ml
Julow/dune
2aac0728daa65780df9187a409a1c166ff9ab6bf
[ "MIT" ]
null
null
null
open! Stdune open Import open Dune_lang.Decoder module Kind = struct type t = | Dune | Jbuilder end module Name : sig type t = private | Named of string | Anonymous of Path.Source.t val to_dyn : t -> Dyn.t val equal : t -> t -> bool val compare : t -> t -> Ordering.t val to_string_hum ...
30.172067
81
0.596986
bcdd70ff5171c83f952003ff55fb30d21b96546f
1,615
ml
OCaml
src/ordered_collection_common.ml
samoht/base
1620ee58db669b95c2427052f70953c2d56b811b
[ "MIT" ]
2
2022-03-03T01:38:24.000Z
2022-03-03T01:54:36.000Z
src/ordered_collection_common.ml
samoht/base
1620ee58db669b95c2427052f70953c2d56b811b
[ "MIT" ]
1
2021-11-08T19:54:28.000Z
2021-11-08T19:54:28.000Z
src/ordered_collection_common.ml
samoht/base
1620ee58db669b95c2427052f70953c2d56b811b
[ "MIT" ]
2
2021-06-16T23:18:39.000Z
2022-03-01T19:47:33.000Z
open! Import let invalid_argf = Printf.invalid_argf let slow_check_pos_len_exn ~pos ~len ~total_length = if pos < 0 then invalid_argf "Negative position: %d" pos (); if len < 0 then invalid_argf "Negative length: %d" len (); (* We use [pos > total_length - len] rather than [pos + len > total_length] to avoid th...
32.3
90
0.672446
8aebb2a60ef7524255f7118d75ce52cab2e5ca45
2,047
ml
OCaml
bench/micro/fiber_bench.ml
snowleopard/dune
dcf921ca5cd825ddb054682809bc4032e0d92ebc
[ "MIT" ]
null
null
null
bench/micro/fiber_bench.ml
snowleopard/dune
dcf921ca5cd825ddb054682809bc4032e0d92ebc
[ "MIT" ]
null
null
null
bench/micro/fiber_bench.ml
snowleopard/dune
dcf921ca5cd825ddb054682809bc4032e0d92ebc
[ "MIT" ]
null
null
null
open Stdune open Fiber.O let n = 1000 let%bench_fun "bind" = fun () -> Fiber.run ~iter:(fun () -> assert false) (let rec loop = function | 0 -> Fiber.return () | n -> Fiber.return () >>= fun () -> loop (n - 1) in loop n) let%bench_fun "ivar" = fun () -> let ivar = ref (Fiber.Iva...
23.528736
60
0.499267
aa3f7487d7169159d46db55e0d979054937faf2b
2,228
ml
OCaml
data/sp14_min/3222.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/sp14/3222.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/sp14_min/3222.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
type expr = | VarX | VarY | Sine of expr | Cosine of expr | Average of expr* expr | Times of expr* expr | Thresh of expr* expr* expr* expr;; let rec exprToString e = match e with | VarX -> "x" | VarY -> "y" | Sine ex -> "sin(pi*" ^ ((exprToString ex) ^ ")") | Cosine ex -> "cos(pi*" ^ ((exprT...
22.059406
123
0.486984
aa070581a5c391cbd3992b6f24ea0110217adcfc
3,290
ml
OCaml
src/common.ml
RosalesJ/tldr-ocaml
f859f3447ce00e0a34dc95f3e29ab8e0b5bcdd60
[ "MIT" ]
7
2018-10-15T08:07:52.000Z
2021-10-04T15:22:59.000Z
src/common.ml
RosalesJ/tldr-ocaml
f859f3447ce00e0a34dc95f3e29ab8e0b5bcdd60
[ "MIT" ]
1
2020-04-23T22:37:54.000Z
2020-04-23T22:37:54.000Z
src/common.ml
RosalesJ/tldr-ocaml
f859f3447ce00e0a34dc95f3e29ab8e0b5bcdd60
[ "MIT" ]
3
2019-01-07T06:01:08.000Z
2020-04-23T15:30:08.000Z
open Base type t = | Error of string | Success of string | Missing module Environment = struct let system = match Sys.os_type with | "Unix" -> let ic = Unix.open_process_in "uname" in let uname = Stdio.In_channel.input_line_exn ic in ignore (Unix.close_process_in ic : Unix.process...
29.115044
88
0.643769
bce2a8eda37d0a556b0ef2c189ea145472849734
13,613
ml
OCaml
xilinx_vhdl/test/test.ml
janestreet/hardcaml_xilinx_components
69af50a460a93f918f430d948841f33d6246b4e0
[ "MIT" ]
6
2020-08-18T13:29:59.000Z
2021-12-24T09:13:17.000Z
xilinx_vhdl/test/test.ml
janestreet/hardcaml_xilinx_components
69af50a460a93f918f430d948841f33d6246b4e0
[ "MIT" ]
null
null
null
xilinx_vhdl/test/test.ml
janestreet/hardcaml_xilinx_components
69af50a460a93f918f430d948841f33d6246b4e0
[ "MIT" ]
1
2021-12-17T02:50:51.000Z
2021-12-17T02:50:51.000Z
open! Import (* This is required by the (stupid) parser *) let package s = Printf.sprintf {| library IEEE; use IEEE.STD_LOGIC_1164.all; package TOP is %s end TOP; |} s (* Parse VHDL and print as a sexp *) let print_vhdl string = print_s [%message "" ~_:(Xilinx_vhdl.Parse.parse_...
24.22242
85
0.449497
bca0c4f2c52310536d9ad95117a2947736635aee
3,210
ml
OCaml
totembionet/requierements/HolmesBioNet/simulator/parser_piinit.ml
mohamedchennouf/TotemBioNet
f37a2f9358c1ce49f21c4a868b904da5dcd4614f
[ "WTFPL" ]
null
null
null
totembionet/requierements/HolmesBioNet/simulator/parser_piinit.ml
mohamedchennouf/TotemBioNet
f37a2f9358c1ce49f21c4a868b904da5dcd4614f
[ "WTFPL" ]
null
null
null
totembionet/requierements/HolmesBioNet/simulator/parser_piinit.ml
mohamedchennouf/TotemBioNet
f37a2f9358c1ce49f21c4a868b904da5dcd4614f
[ "WTFPL" ]
1
2019-05-10T04:45:36.000Z
2019-05-10T04:45:36.000Z
type token = | COMMA | LPAREN | RPAREN | PI | EQ | VAR of (string) | FLOAT of (string) | EOL | EOF open Parsing;; let _ = parse_error;; # 2 "parser_piinit.mly" type hcondition = ValuePi of string * string | RemovePar of hcondition type piinitLine = HCondition of hcondition # 24 "parser_piinit.m...
22.928571
90
0.645794
aa1c36cb537af335677d4c0ccf195224e455f60b
9,835
ml
OCaml
src/lib_shell/monitor_directory.ml
blockchain-app12/cuprumMainnet
089174cfc4f8ebce45e61107d090a7933b8dc9cd
[ "MIT" ]
null
null
null
src/lib_shell/monitor_directory.ml
blockchain-app12/cuprumMainnet
089174cfc4f8ebce45e61107d090a7933b8dc9cd
[ "MIT" ]
null
null
null
src/lib_shell/monitor_directory.ml
blockchain-app12/cuprumMainnet
089174cfc4f8ebce45e61107d090a7933b8dc9cd
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
42.947598
79
0.542552
aa35458bbeb863e0caf8a2adfa516c5bf2d023aa
420
ml
OCaml
2018/10/point.ml
bcc32/advent-of-code
37f47063bdc005513a14a2a3c12c3c6564e883cb
[ "MIT" ]
2
2022-01-04T23:09:54.000Z
2022-01-26T08:57:20.000Z
2018/10/point.ml
bcc32/advent-of-code
37f47063bdc005513a14a2a3c12c3c6564e883cb
[ "MIT" ]
null
null
null
2018/10/point.ml
bcc32/advent-of-code
37f47063bdc005513a14a2a3c12c3c6564e883cb
[ "MIT" ]
null
null
null
open! Core open! Async open! Import type t = { x : int ; y : int ; vx : int ; vy : int } let re = Re.(compile (seq [ opt (char '-'); rep1 digit ])) let of_string s = match Re.all re s |> List.map ~f:(fun g -> Re.Group.get g 0 |> Int.of_string) with | [ x; y; vx; vy ] -> { x; y; vx; vy } | _ -> raise_...
20
84
0.521429
442baac68f1b99aa6d71324680628ee1b12da7fa
9,779
ml
OCaml
hphp/hack/src/typing/typing_async.ml
swtaarrs/hhvm
dfb8867363623d7d02d03a64691610f1289ef5ad
[ "PHP-3.01", "Zend-2.0" ]
1
2021-02-04T22:07:59.000Z
2021-02-04T22:07:59.000Z
hphp/hack/src/typing/typing_async.ml
alisha/hhvm
523dc33b444bd5b59695eff2b64056629b0ed523
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_async.ml
alisha/hhvm
523dc33b444bd5b59695eff2b64056629b0ed523
[ "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 Hh_core open Typing_defs module Reason = Typing_reason module Type = Typing_ops module Env = Typing_env m...
39.752033
80
0.646999
bce7d95cc9a44a4a0a18d4609f822536f5cef18e
2,217
ml
OCaml
src/irmin-pack/irmin_pack.ml
patricoferris/irmin
a255e9b7b788401712359e0c776bc181e8eb20ab
[ "0BSD" ]
null
null
null
src/irmin-pack/irmin_pack.ml
patricoferris/irmin
a255e9b7b788401712359e0c776bc181e8eb20ab
[ "0BSD" ]
null
null
null
src/irmin-pack/irmin_pack.ml
patricoferris/irmin
a255e9b7b788401712359e0c776bc181e8eb20ab
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2018-2021 Tarides <contact@tarides.com> * * 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. * * THE SOFTWARE IS PROVIDED "AS IS" AN...
28.792208
75
0.740189
bcf8cfb86eda4a8e737561f72005912145281289
5,378
ml
OCaml
test/generators/gen_rules_lib.ml
dbuenzli/odoc
1378e8a2c1d382ec049aaecfe8fe592b69e6bf5f
[ "0BSD" ]
234
2018-03-21T20:12:53.000Z
2022-03-24T22:49:21.000Z
test/generators/gen_rules_lib.ml
dbuenzli/odoc
1378e8a2c1d382ec049aaecfe8fe592b69e6bf5f
[ "0BSD" ]
685
2018-03-23T11:09:19.000Z
2022-03-29T09:19:23.000Z
test/generators/gen_rules_lib.ml
dbuenzli/odoc
1378e8a2c1d382ec049aaecfe8fe592b69e6bf5f
[ "0BSD" ]
62
2018-04-16T18:03:20.000Z
2022-03-30T11:29:33.000Z
type sexp = Sexplib0.Sexp.t = Atom of string | List of sexp list type enabledif = Min of string | Max of string | MinMax of string * string type test_case = { input : Fpath.t; cmt : Fpath.t option; (** [None] for mld files. *) odoc : Fpath.t; odocl : Fpath.t; enabledif : enabledif option; } module Dune = ...
28.010417
80
0.57289
bc504336438cc830582acae0bdad1e67b6bf32bd
3,980
ml
OCaml
data/fa15/repaired/naive/0146.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/repaired/naive/0146.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15/repaired/naive/0146.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
type expr = | VarX | VarY | Neg of expr | Sine of expr | Cosine of expr | Average of expr * expr | Times of expr * expr | Smallest of expr * expr * expr | Thresh of expr * expr * expr * expr let pi = 4.0 *. atan 1.0 let rec eval = fun (e , x , y) -> match e with | VarX -> x | VarY -> y | Neg e1 -> ...
24.720497
76
0.442462
bca7917e28803a0c91af075d0bdfff1a7fb99c99
540
mli
OCaml
hphp/hack/src/hhbc/emit_adata.mli
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/emit_adata.mli
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/emit_adata.mli
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "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 adata_to_buffer : string Mutable_accumulator.t -> Typed_value.t -> unit val attributes_to_strings : Hhas_attrib...
25.714286
75
0.740741
44920a7de6e84b9f5a4e887aafaf286f9595e2f9
415
ml
OCaml
src/browse_url.ml
andersfugmann/ecaml
c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c
[ "MIT" ]
245
2016-08-29T14:21:13.000Z
2022-03-12T04:08:52.000Z
src/browse_url.ml
andersfugmann/ecaml
c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c
[ "MIT" ]
13
2016-08-29T14:55:35.000Z
2021-07-30T04:25:32.000Z
src/browse_url.ml
andersfugmann/ecaml
c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c
[ "MIT" ]
13
2016-08-30T00:53:52.000Z
2021-12-17T02:51:25.000Z
open! Core open! Import module Url = struct include String let type_ = Value.Type.string let t = type_ end let browse_url = let browse_url = Funcall.Wrap.("browse-url" <: Url.t @-> return nil) in fun url -> if am_running_test then message_s [%sexp "Would browse url", (url : Url.t)] else browse_...
20.75
82
0.672289
44e14fa9f09763cf23afd4d540dc55eb371c9446
641
mli
OCaml
test/html/cases/section.mli
odis-labs/odoc
f0551b17f48bcbded11f6b89b989464a82fc9a56
[ "0BSD" ]
234
2018-03-21T20:12:53.000Z
2022-03-24T22:49:21.000Z
test/html/cases/section.mli
odis-labs/odoc
f0551b17f48bcbded11f6b89b989464a82fc9a56
[ "0BSD" ]
685
2018-03-23T11:09:19.000Z
2022-03-29T09:19:23.000Z
test/html/cases/section.mli
odis-labs/odoc
f0551b17f48bcbded11f6b89b989464a82fc9a56
[ "0BSD" ]
62
2018-04-16T18:03:20.000Z
2022-03-30T11:29:33.000Z
(* Blank lines are needed because of https://caml.inria.fr/mantis/view.php?id=7701. *) (** This is the module comment. Eventually, sections won't be allowed in it. *) (** {1 Empty section} *) (** {1 Text only} Foo bar. *) (** {1 Aside only} *) (** Foo bar. *) (** {1 Value only} *) val foo : unit (** {1 ...
20.677419
79
0.622465
bccc34df2cd4576403e43db0dad0d979797f6c03
2,748
ml
OCaml
core_test/async/client_async_main.ml
psafont/message-switch
10a82b19df8172082af976108951575fb36a811f
[ "0BSD" ]
null
null
null
core_test/async/client_async_main.ml
psafont/message-switch
10a82b19df8172082af976108951575fb36a811f
[ "0BSD" ]
null
null
null
core_test/async/client_async_main.ml
psafont/message-switch
10a82b19df8172082af976108951575fb36a811f
[ "0BSD" ]
null
null
null
(* * Copyright (c) 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. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI...
37.135135
220
0.655022
44174014b62498b2e777886cbbfeddbacdbe0e64
33,362
ml
OCaml
src/proto_alpha/lib_protocol/script_typed_ir_size.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/script_typed_ir_size.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/script_typed_ir_size.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2021-2022 Nomadic Labs <contact@nomadic-labs.com> *) ...
44.542056
83
0.653618
bcade1b3cc8241a31a7c0710d43e158b41ecc311
15,618
ml
OCaml
src/lib_shell_services/peer_validator_worker_state.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
8
2021-11-02T13:06:58.000Z
2021-11-18T19:07:33.000Z
src/lib_shell_services/peer_validator_worker_state.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
14
2020-05-07T15:51:28.000Z
2022-02-06T10:11:51.000Z
src/lib_shell_services/peer_validator_worker_state.ml
g302ge/tezos
18cb82485b100aebef3b8e8fad6bdf6d426bb0a1
[ "MIT" ]
3
2021-01-06T00:06:10.000Z
2021-05-31T18:07:55.000Z
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
37.633735
81
0.575106
aa506508b0aeb2a07fe9819e2283d18a64a7b67f
739
ml
OCaml
data/fa15/repaired/rite/0042.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/repaired/rite/0042.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15/repaired/rite/0042.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec clone = fun x -> fun n -> if n <= 0 then [] else x :: (clone (n - 1) n) (* -------------------------------------- *) let rec clone = fun x -> fun n -> if n <= 0 then [] else x :: (clone (n - 1) x) (* -------------------------------------- *) let rec clone = ...
14.211538
67
0.34912
bcdfca0a7ef8d30f9176f6f8c88a590652a9436f
1,350
ml
OCaml
exercises/pangram/test.ml
bcc32/exercism-ocaml
b535bccf069695ee9f6d607cad5dd10734066893
[ "MIT" ]
null
null
null
exercises/pangram/test.ml
bcc32/exercism-ocaml
b535bccf069695ee9f6d607cad5dd10734066893
[ "MIT" ]
null
null
null
exercises/pangram/test.ml
bcc32/exercism-ocaml
b535bccf069695ee9f6d607cad5dd10734066893
[ "MIT" ]
null
null
null
(* Test/exercise version: "1.4.0" *) open OUnit2 open Pangram let ae exp got _test_ctxt = assert_equal ~printer:string_of_bool exp got let tests = [ "sentence empty" >:: ae false (is_pangram ""); "recognizes a perfect lower case pangram" >:: ae true (is_pangram "abcdefghijklmnopqrstuvwxyz"); "pa...
42.1875
93
0.686667
bcc397633e1d69bdb22d087f41828f2e403c8ba8
3,132
ml
OCaml
src/spdx_licenses.ml
kit-ty-kate/spdx_licenses
c6ba0493c25ce4d9ff8cb45b228ce412f4444aa0
[ "MIT" ]
6
2021-09-05T17:11:05.000Z
2021-09-06T17:31:21.000Z
src/spdx_licenses.ml
kit-ty-kate/spdx_licenses
c6ba0493c25ce4d9ff8cb45b228ce412f4444aa0
[ "MIT" ]
null
null
null
src/spdx_licenses.ml
kit-ty-kate/spdx_licenses
c6ba0493c25ce4d9ff8cb45b228ce412f4444aa0
[ "MIT" ]
null
null
null
(* SPDX-License-Identifier: MIT *) type user_defined_license = Types.user_defined_license = { document_ref : string option; license_ref : string; } type simple_license = Types.simple_license = | LicenseID of string | LicenseIDPlus of string | LicenseRef of user_defined_license type t = Types.t = | Simple...
29.54717
78
0.64719
bc97bcfc14f7f26a32e16ac841e449f8b75d4b1f
1,190
ml
OCaml
hphp/hack/test/integration_ml/test_decl_decl.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
1
2019-11-01T13:46:07.000Z
2019-11-01T13:46:07.000Z
hphp/hack/test/integration_ml/test_decl_decl.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/integration_ml/test_decl_decl.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
open Integration_test_base_types module Test = Integration_test_base (* The bug only occurs when A and B are in different files, are redeclared in * the same batch, but B (the child) is redeclared before A (so that decl of B * ends up having to call into decl of A). This is achieved here using an * implementation d...
20.517241
80
0.663866
44f8083b35a39eac64784779c40e68ac9480c83c
171
ml
OCaml
131_Programming Languages (ML, Java, Prolog, Scheme)/HW1 - ML Practice/hw1/test/equal_sets.ml
aluhvihn/UniversityProjects
7c6876e15767151590cc187742a52ac01c57f694
[ "OLDAP-2.6" ]
null
null
null
131_Programming Languages (ML, Java, Prolog, Scheme)/HW1 - ML Practice/hw1/test/equal_sets.ml
aluhvihn/UniversityProjects
7c6876e15767151590cc187742a52ac01c57f694
[ "OLDAP-2.6" ]
null
null
null
131_Programming Languages (ML, Java, Prolog, Scheme)/HW1 - ML Practice/hw1/test/equal_sets.ml
aluhvihn/UniversityProjects
7c6876e15767151590cc187742a52ac01c57f694
[ "OLDAP-2.6" ]
null
null
null
let equal_sets_test0_a6b9b17503dcd9b5b8e8ad16da46c432 = equal_sets [1;3] [3;1;3] let equal_sets_test1_a6b9b17503dcd9b5b8e8ad16da46c432 = not (equal_sets [1;3;4] [3;1;3])
42.75
88
0.807018
bcde44a1e43594d16fc44001f0ac0d57385918ee
302
mli
OCaml
src/monitor/socketAcceptor.mli
mirek/flow
fa1268d9153ec372796d7bf0fb364e648f1eb51f
[ "MIT" ]
20,996
2015-01-01T13:51:47.000Z
2022-03-31T17:44:01.000Z
src/monitor/socketAcceptor.mli
mirek/flow
fa1268d9153ec372796d7bf0fb364e648f1eb51f
[ "MIT" ]
8,315
2015-01-01T19:56:43.000Z
2022-03-31T15:58:10.000Z
src/monitor/socketAcceptor.mli
mirek/flow
fa1268d9153ec372796d7bf0fb364e648f1eb51f
[ "MIT" ]
2,338
2015-01-05T03:28:26.000Z
2022-03-26T20:40:56.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. *) val run : Lwt_unix.file_descr -> autostop:bool -> unit Lwt.t val run_legacy : Lwt_unix.file_descr -> unit Lwt.t
27.454545
66
0.718543
bce0c7d6c1405328c21a4f3f34ba803d1effebb6
916
mli
OCaml
lib/p11_token_info.mli
cryptosense/pkcs11
5f4357d235fc8674fa6bc13d03174f9236fabe34
[ "BSD-2-Clause" ]
22
2016-09-22T13:40:51.000Z
2021-08-05T10:50:19.000Z
lib/p11_token_info.mli
cryptosense/pkcs11
5f4357d235fc8674fa6bc13d03174f9236fabe34
[ "BSD-2-Clause" ]
42
2016-10-03T13:10:21.000Z
2021-08-12T10:04:10.000Z
lib/p11_token_info.mli
cryptosense/pkcs11
5f4357d235fc8674fa6bc13d03174f9236fabe34
[ "BSD-2-Clause" ]
5
2016-09-28T06:34:29.000Z
2021-08-05T07:48:52.000Z
type t = { label : string ; manufacturerID : string ; model : string ; serialNumber : string ; flags : P11_flags.t ; ulMaxSessionCount : P11_ulong.t ; ulSessionCount : P11_ulong.t ; ulMaxRwSessionCount : P11_ulong.t ; ulRwSessionCount : P11_ulong.t ; ulMaxPinLen : P11_ulong.t ; ulMinPinLen : P11_u...
29.548387
77
0.715066
bcae3a6e92b2fcdc9376f5fb2d03eda56668a7bd
13,259
ml
OCaml
src/serialk_text.ml
dbuenzli/serialk
2650979af5ed3a8b55e259088acd618a61061856
[ "0BSD" ]
11
2021-01-12T11:22:40.000Z
2021-11-04T10:05:09.000Z
src/serialk_text.ml
dbuenzli/serialk
2650979af5ed3a8b55e259088acd618a61061856
[ "0BSD" ]
null
null
null
src/serialk_text.ml
dbuenzli/serialk
2650979af5ed3a8b55e259088acd618a61061856
[ "0BSD" ]
null
null
null
(*--------------------------------------------------------------------------- Copyright (c) 2019 The b0 programmers. All rights reserved. Distributed under the ISC license, see terms at the end of the file. ---------------------------------------------------------------------------*) (* Error message helpers. ...
36.728532
80
0.600347
aa4d11d0bd3ed9ce67d71cdc955bd8f3a724832e
58
ml
OCaml
out/str2.fun.ml
Melyodas/metalang
399a9f1a71402c979d7f8024d4f98f081c80e771
[ "BSD-2-Clause" ]
22
2017-04-24T10:00:45.000Z
2021-04-01T10:11:05.000Z
out/str2.fun.ml
Melyodas/metalang
399a9f1a71402c979d7f8024d4f98f081c80e771
[ "BSD-2-Clause" ]
12
2017-03-26T18:34:21.000Z
2019-03-21T19:13:03.000Z
out/str2.fun.ml
Melyodas/metalang
399a9f1a71402c979d7f8024d4f98f081c80e771
[ "BSD-2-Clause" ]
7
2017-10-14T13:33:33.000Z
2021-03-18T15:18:50.000Z
let main = Printf.printf "%s" "ma petite chaine en or"
14.5
45
0.655172
bc5597085159e4039fca8b91f6c424892fc5b592
2,903
ml
OCaml
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-private/private.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
1
2020-09-24T05:03:32.000Z
2020-09-24T05:03:32.000Z
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-private/private.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/typing-private/private.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
(* TEST * toplevel * toplevel with principal *) module Foobar : sig type t = private int end = struct type t = int end;; module F0 : sig type t = private int end = Foobar;; let f (x : F0.t) = (x : Foobar.t);; (* fails *) module F = Foobar;; let f (x : F.t) = (x : Foobar.t);; module M = struct type t = <...
23.41129
77
0.562522
bc0cfe15a27b9c9d452027edaf793daab2c9ed16
1,548
ml
OCaml
lib/binable0.ml
chambart/core_kernel
025f7a0695bf51317b23750c23f7c7824a0f9af1
[ "Apache-2.0" ]
null
null
null
lib/binable0.ml
chambart/core_kernel
025f7a0695bf51317b23750c23f7c7824a0f9af1
[ "Apache-2.0" ]
null
null
null
lib/binable0.ml
chambart/core_kernel
025f7a0695bf51317b23750c23f7c7824a0f9af1
[ "Apache-2.0" ]
null
null
null
include Bin_prot.Binable open Sexplib.Std open Bin_prot.Std module List = ListLabels module Of_stringable (M : Stringable.S) = Bin_prot.Utils.Make_binable (struct module Binable = struct type t = string with bin_io end type t = M.t let to_binable = M.to_string (* Wrap exception for improv...
24.967742
78
0.684109
aa29514e3e5af224e32a7c29466ff6c2e8cdd477
13,911
ml
OCaml
hphp/hack/src/server/serverInit.ml
jmarrama/hhvm
bfa816e32c7b1a74e7aaee3d2688af2112439003
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/serverInit.ml
jmarrama/hhvm
bfa816e32c7b1a74e7aaee3d2688af2112439003
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/serverInit.ml
jmarrama/hhvm
bfa816e32c7b1a74e7aaee3d2688af2112439003
[ "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 ope...
38.217033
80
0.713895
aa0571983c45210500a87146309aab4b8e5d6fa7
3,013
ml
OCaml
lib/xs.ml
dune-universe/mirage-xen
c32e520ea69c67b60c8312b98e2780df30490d4f
[ "ISC" ]
null
null
null
lib/xs.ml
dune-universe/mirage-xen
c32e520ea69c67b60c8312b98e2780df30490d4f
[ "ISC" ]
1
2019-11-01T18:54:08.000Z
2019-11-01T18:54:08.000Z
lib/xs.ml
dinosaure/mirage-xen
c32e520ea69c67b60c8312b98e2780df30490d4f
[ "ISC" ]
1
2020-09-03T12:41:41.000Z
2020-09-03T12:41:41.000Z
(* * Copyright (C) 2006-2009 Citrix Systems Inc. * Copyright (C) 2010 Anil Madhavapeddy <anil@recoil.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; version 2.1 only. with th...
31.385417
94
0.636575
bc1a3a827a96c2d82ba26048de4e3ef951485dc3
4,049
ml
OCaml
lib/matchers/types.ml
indradhanush/comby
6442ef73a12092d224086d78b67926148e0e4724
[ "Apache-2.0" ]
1
2021-06-16T22:43:47.000Z
2021-06-16T22:43:47.000Z
lib/matchers/types.ml
indradhanush/comby
6442ef73a12092d224086d78b67926148e0e4724
[ "Apache-2.0" ]
null
null
null
lib/matchers/types.ml
indradhanush/comby
6442ef73a12092d224086d78b67926148e0e4724
[ "Apache-2.0" ]
1
2021-06-16T22:43:39.000Z
2021-06-16T22:43:39.000Z
open Core module Syntax = struct type escapable_string_literals = { delimiters : string list ; escape_character: char } [@@deriving yojson] type comment_kind = | Multiline of string * string | Nested_multiline of string * string | Until_newline of string [@@deriving yojson] type t =...
21.198953
81
0.649049
bcf28efafb107dbcaaa245f136427bf53c8eaf61
315
ml
OCaml
src/init_db.ml
AngryLawyer/creepypasta-strainer
931c0eff00821163b4ed6b5f94042e0d73123446
[ "MIT" ]
1
2018-04-22T23:44:53.000Z
2018-04-22T23:44:53.000Z
src/init_db.ml
AngryLawyer/creepypasta-strainer
931c0eff00821163b4ed6b5f94042e0d73123446
[ "MIT" ]
null
null
null
src/init_db.ml
AngryLawyer/creepypasta-strainer
931c0eff00821163b4ed6b5f94042e0d73123446
[ "MIT" ]
null
null
null
let () = let open Sqlite3EZ in with_db "creepypasta.db" (fun db -> exec db "CREATE TABLE IF NOT EXISTS `visited` ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created DATETIME DEFAULT CURRENT_TIMESTAMP, source TEXT, source_id TEXT )" )
28.636364
58
0.577778
aa238dc7503d47f955a6ea046810cc26052e6f8a
312
mli
OCaml
src/se2gis/Baselines.mli
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
2
2022-01-12T16:50:30.000Z
2022-01-28T16:14:40.000Z
src/se2gis/Baselines.mli
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
null
null
null
src/se2gis/Baselines.mli
synduce/Synduce
11e9eb1d420113ae85ec63399dd493034c51a354
[ "MIT" ]
null
null
null
open Common open ProblemDefs (** The symbolic SEGIS algorithm. *) val algo_segis : ctx:Env.env -> PsiDef.t -> Syguslib.Sygus.solver_response segis_response Lwt.t (** The concrete CEGIS algorithm. *) val algo_cegis : ctx:Env.env -> PsiDef.t -> Syguslib.Sygus.solver_response segis_response Lwt.t
20.8
56
0.721154
bc87a2566ebda470da6c3413a6397660d50fbd60
350
ml
OCaml
data/sp14_min/3460.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/sp14/3460.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/sp14_min/3460.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec digitsOfInt n = let myList = [] in if n <= 0 then [] else (n mod 10) @ myList;; (* fix let rec digitsOfInt n = let myList = [] in if n <= 0 then [] else (n mod 10) :: myList;; *) (* changed spans (3,45)-(3,64) (n mod 10) :: myList AppG [BopG EmptyG EmptyG,VarG] *) (* type error slice (3,45)-(3,55) (...
14
66
0.557143
aa39798cda2f2620a8f728588c7446c6d840feb4
684
mli
OCaml
src/stdune/csexp.mli
thierry-martinez/dune
e80c901f767a4f904dbbba18d2b5934f33b18e32
[ "MIT" ]
null
null
null
src/stdune/csexp.mli
thierry-martinez/dune
e80c901f767a4f904dbbba18d2b5934f33b18e32
[ "MIT" ]
null
null
null
src/stdune/csexp.mli
thierry-martinez/dune
e80c901f767a4f904dbbba18d2b5934f33b18e32
[ "MIT" ]
null
null
null
type t = Sexp.t (** [to_string sexp] converts S-expression [sexp] to a string in canonical form. *) val to_string : t -> string (** [parse_string string] parses [string] into S-expression *) val parse_string : string -> (t, string) Result.t (** [to_buffer ~buf sexp] outputs the S-expression [sexp] converted to its ...
36
83
0.688596
aa289a7ab7f38f89e9c3b0cdf9628532c7f64ca6
16,736
ml
OCaml
hphp/hack/src/server/serverHover.ml
jmurret/hhvm
f005fa3ca2793291cf59e217db3e9ce074d22f71
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/serverHover.ml
jmurret/hhvm
f005fa3ca2793291cf59e217db3e9ce074d22f71
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/serverHover.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. * *) open Core_kernel open HoverService (** When we get a Class occurrence and a Method occurrence, that means that the ...
39.565012
138
0.644359
bcabcb0ac67720d42ba52c4418fc2bdd4d36e83e
3,919
ml
OCaml
vendor/dune/bin/exec.ml
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
null
null
null
vendor/dune/bin/exec.ml
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
null
null
null
vendor/dune/bin/exec.ml
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
null
null
null
open Stdune open Import let doc = "Execute a command in a similar environment as if installation was performed." let man = [ `S "DESCRIPTION" ; `P {|$(b,dune exec -- COMMAND) should behave in the same way as if you do:|} ; `Pre " \\$ dune install\n\ \ \\$ COMMAND" ; `P {|In particular ...
32.38843
80
0.61087
44c2582c96fc6c0265222d9bf26ee4e7b35ac077
11,181
ml
OCaml
base/pop/pml/src/List.ml
GetPoplog/Seed
11cf37589021b232ab7b5b5f87169a694e474031
[ "MIT" ]
5
2021-06-04T21:18:58.000Z
2022-03-05T02:45:19.000Z
base/pop/pml/src/List.ml
GetPoplog/Seed
11cf37589021b232ab7b5b5f87169a694e474031
[ "MIT" ]
58
2021-06-07T13:36:23.000Z
2021-09-16T08:39:18.000Z
base/pop/pml/src/List.ml
GetPoplog/Seed
11cf37589021b232ab7b5b5f87169a694e474031
[ "MIT" ]
1
2021-06-13T01:50:16.000Z
2021-06-13T01:50:16.000Z
(* --- Copyright University of Sussex 1994. All rights reserved. --------- * File: C.all/pml/src/List.ml * Purpose: PML: Functions on lists * Author: Rob Duncan & Simon Nichols, Feb 13 1989 (see revisions) * Documentation: HELP * LIST *) signature List = sig exception Listof ...
27.675743
75
0.535104
aa3c7776bfc15dcbc3630d53f29dfd254eb4955c
1,921
mli
OCaml
hphp/hack/src/procs/worker.mli
ASSETLID/Aych.vm
50efb4c6b162607bb9e277a2d29e641d8509774f
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/procs/worker.mli
ASSETLID/Aych.vm
50efb4c6b162607bb9e277a2d29e641d8509774f
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/procs/worker.mli
ASSETLID/Aych.vm
50efb4c6b162607bb9e277a2d29e641d8509774f
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** * Copyright (c) 2014, 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. * *) (***********...
35.574074
80
0.585112
aa3dd1cb91dd99f98417e3bcb9a3911a0712bf45
1,864
ml
OCaml
data/sp14_min/0528.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/sp14_min/0528.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/sp14_min/0528.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
type expr = | VarX | VarY | Sine of expr | Cosine of expr | Average of expr* expr | Times of expr* expr | Thresh of expr* expr* expr* expr | ECosSin of expr* expr;; let pi = 4.0 *. (atan 1.0);; let rec eval (e,x,y) = match e with | VarX -> x | VarY -> y | Sine i -> sin (pi *. (eval (i, x, y...
22.457831
88
0.445279
44f98012b996ce19c3146c9921bfda23a0394685
602
ml
OCaml
data/fa15/2040.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/2040.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/2040.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let pipe fs = let f a x = a x in let base n = n in List.fold_left f base fs;; (* fix let pipe fs = let f a x x a = x a in let base n = n in List.fold_left f base fs;; *) (* changed spans (2,26)-(2,27) (2,26)-(2,29) (2,33)-(2,75) *) (* type error slice (2,14)-(2,75) (2,20)-(2,29) (2,22)-(2,29) (2,26)-(2,27) (2,...
13.086957
77
0.488372
bc82f6122e5d7c20a937cdb1d4988c8cf74f6770
27,832
ml
OCaml
src/lib_signer_backends/unix/ledger_names.ml
blockchain-app12/cuprumMainnet
089174cfc4f8ebce45e61107d090a7933b8dc9cd
[ "MIT" ]
1
2021-11-03T08:21:08.000Z
2021-11-03T08:21:08.000Z
src/lib_signer_backends/unix/ledger_names.ml
blockchain-app12/cuprumMainnet
089174cfc4f8ebce45e61107d090a7933b8dc9cd
[ "MIT" ]
1
2022-02-18T09:54:32.000Z
2022-02-18T09:54:32.000Z
src/lib_signer_backends/unix/ledger_names.ml
blockchain-app12/cuprumMainnet
089174cfc4f8ebce45e61107d090a7933b8dc9cd
[ "MIT" ]
4
2021-04-27T15:00:34.000Z
2021-09-26T21:50:01.000Z
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
17.02263
79
0.440105
bcc7bff61414cc4137b8190a91c2680fe876ec64
5,445
ml
OCaml
src/typing/implicit_instantiation.ml
cristiancota/flow
1f87ab350fb65bf3461dc52dbd177bbcf0882be8
[ "MIT" ]
null
null
null
src/typing/implicit_instantiation.ml
cristiancota/flow
1f87ab350fb65bf3461dc52dbd177bbcf0882be8
[ "MIT" ]
null
null
null
src/typing/implicit_instantiation.ml
cristiancota/flow
1f87ab350fb65bf3461dc52dbd177bbcf0882be8
[ "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 Type open Polarity module IdMarked = Marked.IdMarked module TypeParamMarked = Marked.Make (StringKey) module Marked = TypePara...
37.551724
100
0.634343
aa5b59108b7393c925cb5a0843c15744408a113d
1,424
mli
OCaml
src/dune_rules/env_node.mli
yannl35133/dune
6005ed998fc5065e1fcb5f8885039d6f17f35a18
[ "MIT" ]
null
null
null
src/dune_rules/env_node.mli
yannl35133/dune
6005ed998fc5065e1fcb5f8885039d6f17f35a18
[ "MIT" ]
null
null
null
src/dune_rules/env_node.mli
yannl35133/dune
6005ed998fc5065e1fcb5f8885039d6f17f35a18
[ "MIT" ]
null
null
null
(** An environment node represents an evaluated (env ..) stanza in a directory. *) open! Dune_engine open Stdune module Odoc : sig type warnings = Dune_env.Stanza.Odoc.warnings = | Fatal | Nonfatal type t = { warnings : warnings } end module Coq : sig type t = string list end type t val make : ...
24.135593
82
0.719803
bcf33e9606a5cf2d418066b10ddf1955670c2a49
5,795
ml
OCaml
unmaintained/Net/TCP/Spec3/evalAbsFun.ml
rems-project/netsem
0b02450eee334fc42f74ad3da09d3ce1a0698a48
[ "BSD-2-Clause-FreeBSD" ]
34
2018-02-26T20:37:44.000Z
2022-02-24T01:49:55.000Z
unmaintained/Net/TCP/Spec3/evalAbsFun.ml
PeterSewell/netsem
0b02450eee334fc42f74ad3da09d3ce1a0698a48
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
unmaintained/Net/TCP/Spec3/evalAbsFun.ml
PeterSewell/netsem
0b02450eee334fc42f74ad3da09d3ce1a0698a48
[ "BSD-2-Clause-FreeBSD" ]
5
2015-04-24T15:26:34.000Z
2017-12-12T23:39:13.000Z
(* this is an -*- sml -*- file *) (* ******************************************************************************** *) (* function to produce a list of stream transitions *) (* val dep_tokens = fn s => let val delim = fn c => c = #" " in String.tokens delim s end; val loadDeps = fn s => app (load o (implode o rev o...
35.771605
378
0.625539
bc109020ff42b5c00c3c14cf4ee0722dc64918cc
278
ml
OCaml
examples/infer/checkers/PrintCheckerDomain.ml
harmim/vut-ibt
860a266d70a171aad6754fbc3fef3505c2654021
[ "MIT" ]
2
2019-10-02T12:06:57.000Z
2020-11-20T04:22:01.000Z
examples/infer/checkers/PrintCheckerDomain.ml
harmim/vut-ibt
860a266d70a171aad6754fbc3fef3505c2654021
[ "MIT" ]
null
null
null
examples/infer/checkers/PrintCheckerDomain.ml
harmim/vut-ibt
860a266d70a171aad6754fbc3fef3505c2654021
[ "MIT" ]
1
2021-01-25T15:26:47.000Z
2021-01-25T15:26:47.000Z
open! IStd module F = Format type astate = int type summary = astate let ( <= ) ~lhs ~rhs = lhs <= rhs let join stateA stateB = Pervasives.max stateA stateB let widen ~prev ~next ~num_iters:_ = join prev next let pp fmt astate = F.fprintf fmt "%d" astate let initial = 0
16.352941
53
0.68705
44c01ff1ad9f3cd93f7e75b06d743cfa3112abb1
9,332
ml
OCaml
src/ocamlgraph-1.8.1/src/cliquetree.ml
labichn/LambdaS5
42905076f10de2a692f8d8de574d4387f88492e5
[ "BSD-3-Clause" ]
21
2016-08-20T16:44:01.000Z
2019-10-08T12:16:55.000Z
src/ocamlgraph-1.8.1/src/cliquetree.ml
labichn/LambdaS5
42905076f10de2a692f8d8de574d4387f88492e5
[ "BSD-3-Clause" ]
1
2020-06-16T03:45:51.000Z
2020-06-16T03:45:51.000Z
src/ocamlgraph-1.8.1/src/cliquetree.ml
labichn/LambdaS5
42905076f10de2a692f8d8de574d4387f88492e5
[ "BSD-3-Clause" ]
6
2016-11-27T04:07:40.000Z
2018-04-22T01:54:15.000Z
(**************************************************************************) (* *) (* Ocamlgraph: a generic graph library for OCaml *) (* Copyright (C) 2004-2010 *) (* Sylvain ...
27.609467
78
0.527647
bc3bbbb9c5ba0040c2d713c51f1b41d23ca71adf
10,137
ml
OCaml
Michelin Files/Language Files/Semantic Analyzer/Semantic.ml
G-Sidhardha/Michelin_Compiler
157b40b4519d086be7349cbd162244a0112a54d0
[ "MIT" ]
null
null
null
Michelin Files/Language Files/Semantic Analyzer/Semantic.ml
G-Sidhardha/Michelin_Compiler
157b40b4519d086be7349cbd162244a0112a54d0
[ "MIT" ]
null
null
null
Michelin Files/Language Files/Semantic Analyzer/Semantic.ml
G-Sidhardha/Michelin_Compiler
157b40b4519d086be7349cbd162244a0112a54d0
[ "MIT" ]
2
2021-12-11T14:55:28.000Z
2021-12-29T12:02:29.000Z
open Ast (*let func_name_table = Hashtbl.create 0;;*) let var_name_table: (string list, string list) Hashtbl.t = Hashtbl.create 0;; let func_name_table: (string list, (string list)*(arg_decl list)) Hashtbl.t = Hashtbl.create 0;; (*let class_name_table = Hashtbl.create 0;;*) (* This recursive function searches in the v...
45.254464
228
0.638059
aa5c48311c1876e7507d9142a397045a51da60e8
462
ml
OCaml
Queue_core/Queue.ml
davidlau325/OCaml-Data-Structure
775f88093864a3eaa4db7e8060e9321590d809f1
[ "MIT" ]
1
2018-12-24T15:42:49.000Z
2018-12-24T15:42:49.000Z
Queue_core/Queue.ml
davidlau325/OCaml-Data-Structure
775f88093864a3eaa4db7e8060e9321590d809f1
[ "MIT" ]
null
null
null
Queue_core/Queue.ml
davidlau325/OCaml-Data-Structure
775f88093864a3eaa4db7e8060e9321590d809f1
[ "MIT" ]
null
null
null
open Core.Std type 'a t = 'a list * 'a list let empty = ([],[]) let enqueue (in_list,out_list) x = (x :: in_list,out_list) let dequeue (in_list,out_list) = match out_list with | hd :: tl -> Some (hd,(in_list,tl)) | [] -> match List.rev in_list with | [] -> None | hd :: tl -> Some (hd,([],tl)) let fold (i...
23.1
66
0.619048
aa0e3271c7f5bbde76c57ee0706a84580e12b7b5
2,273
ml
OCaml
data/sp14/1358.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/sp14/1358.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/sp14_min/1358.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 = if n <= 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = let l = (List.length l1) - (List.length l2) in if l < 0 then (((clone 0 ((-1) * l)) @ l1), l2) else (l1, ((clone 0 l) @ l2));; let rec removeZero l = match l with | [] -> [] | h::t -> if h = 0 then removeZero t else h :...
24.706522
109
0.509019
bcc999105901a1506e09ca995a2c5e36fb3b1fa5
78
ml
OCaml
benchmarks/C/sigma/sol429.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/C/sigma/sol429.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/C/sigma/sol429.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
let rec sigma f a b = if a > b then 0 else f (a) + sigma f (a+1) b
19.5
33
0.487179
44643423f96c40b92e60de26d54cacb93c398e22
298
ml
OCaml
data/derived/comb/progs/unify/prog4545.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/prog4545.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog4545.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
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 | [] -> [] | head::tail -> (listReverse tail) @ [head];; let palindrome w = if (explode w) = (explode (listReverse w)) then true else false;;
24.833333
71
0.57047
aa1b2df169b8a16c19c1d9ca88aa4386e29565cc
2,599
ml
OCaml
libraries/cloudtrail/lib_test/aws_cloudtrail_test.ml
UnrealAkama/ocaml-aws
6947ff1acc4c911702d25b462bb6640cd70997d4
[ "BSD-3-Clause" ]
null
null
null
libraries/cloudtrail/lib_test/aws_cloudtrail_test.ml
UnrealAkama/ocaml-aws
6947ff1acc4c911702d25b462bb6640cd70997d4
[ "BSD-3-Clause" ]
1
2021-06-22T14:33:23.000Z
2021-06-22T14:33:23.000Z
libraries/cloudtrail/lib_test/aws_cloudtrail_test.ml
flyingwalrusllc/ocaml-aws
e5fefbb218a17cbb8ab4479b2c63201c1b430a75
[ "BSD-3-Clause" ]
null
null
null
open OUnit open Aws_cloudtrail module type Runtime = sig type 'a m val run_request : (module Aws.Call with type input = 'input and type output = 'output and type error = 'error) -> 'input -> [ `Ok of 'output | `Error of 'error Aws.Error.t ] m val un_m : 'a m -> 'a...
30.22093
113
0.571374