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
aa1c4fb1f0cb5be79b21064235b3af7ce0f5fbcb
1,809
ml
OCaml
data/sp14/0845.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/sp14/0845.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/sp14/0845.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.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 = let rec listReverseHelper dec acc = match dec with | [] -> acc | h::t -> listReverseHelper t (h :: acc) in listReverseHelper l [];; let palindrome w = (explode w) = (explode...
16.151786
74
0.503593
aa2efc782fa99ae4c10f95b764c50e6ebafff0e6
2,823
mli
OCaml
_build/install/default/lib/tcpip/tcp/segment.mli
pit36/tcp-mirage
552fa3d4bdfeadd335e4a0339c8f2ffcc83376cc
[ "0BSD" ]
null
null
null
_build/install/default/lib/tcpip/tcp/segment.mli
pit36/tcp-mirage
552fa3d4bdfeadd335e4a0339c8f2ffcc83376cc
[ "0BSD" ]
null
null
null
_build/install/default/lib/tcpip/tcp/segment.mli
pit36/tcp-mirage
552fa3d4bdfeadd335e4a0339c8f2ffcc83376cc
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2010 Anil Madhavapeddy <anil@recoil.org> * * 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...
32.448276
82
0.690046
bcf7566e970baadb877d7d5cd478b24f170e9b07
2,591
ml
OCaml
hphp/hack/src/utils/multifile.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
1
2019-07-15T20:48:46.000Z
2019-07-15T20:48:46.000Z
hphp/hack/src/utils/multifile.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/utils/multifile.ml
kavoor/hhvm
4b86dba3f3dadfa05b7fac391f0b28e1f011989c
[ "PHP-3.01", "Zend-2.0" ]
1
2019-11-30T03:40:04.000Z
2019-11-30T03:40:04.000Z
(* * Copyright (c) 2015-present, 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 (* This allows one to fake having multiple files in one file. This * is used only in unit...
37.550725
80
0.676573
aa77cc0ff0717780a609b86c6339c76059818e20
1,708
ml
OCaml
src/env.ml
ksuenaga/HybridPDR
da242835b86b5747110f2eb84693305348172ff2
[ "CECILL-B" ]
1
2019-11-07T16:24:47.000Z
2019-11-07T16:24:47.000Z
src/env.ml
ksuenaga/HybridPDR
da242835b86b5747110f2eb84693305348172ff2
[ "CECILL-B" ]
null
null
null
src/env.ml
ksuenaga/HybridPDR
da242835b86b5747110f2eb84693305348172ff2
[ "CECILL-B" ]
null
null
null
open Core_kernel open Format type ('key,'value) t = ('key * 'value) list [@@deriving show] let rec add (k:'key) (v:'value) (l:('key * 'value) list) = match l with | [] -> [k,v] | (k',v')::tl -> if k = k' then (k,v)::tl else (k',v')::(add k v tl) let empty = [] let find_exn l k =...
28.949153
108
0.564988
aa54404ad995faee64b8675de57ed01b627dc252
1,988
ml
OCaml
pretty.ml
bynect/constraint-inference
4e1cf67e83aff7333768e86089fe5b783428618a
[ "CC0-1.0" ]
2
2021-08-28T20:25:22.000Z
2021-12-15T19:58:02.000Z
pretty.ml
bynect/constraint-inference
4e1cf67e83aff7333768e86089fe5b783428618a
[ "CC0-1.0" ]
null
null
null
pretty.ml
bynect/constraint-inference
4e1cf67e83aff7333768e86089fe5b783428618a
[ "CC0-1.0" ]
null
null
null
open Infer let for_all f s = try for i = 0 to String.length s - 1 do assert (f s.[i]) done; true with _ -> false let rec string_of_ty : ty -> string = function | TVar var -> var | TCon (name, []) -> name | TCon (name, (ty :: ts)) -> if for_all ((==) ',') name then List.fold_l...
33.694915
83
0.525151
aa86ee123187ddbceef53640de4828dc7885ceaa
147
ml
OCaml
benchmarks/sigma/sigma1/submissions/sub136.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
5
2019-08-26T05:41:41.000Z
2020-05-03T03:58:50.000Z
benchmarks/sigma/sigma1/submissions/sub136.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
null
null
null
benchmarks/sigma/sigma1/submissions/sub136.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
2
2020-02-06T00:36:38.000Z
2020-07-27T09:53:35.000Z
let rec sigma (a, b, f) = if a == b then f a else (f a) + (sigma ( a+1, b, f )) (* let func a = a let _ = print_int (sigma (1, 5, func)) *)
13.363636
38
0.489796
aa70523058db9657e2b1fd117bee51f28853b196
525,064
ml
OCaml
src/typing/flow_js.ml
ilya-bobyr/flow
58551c555c8615f91ad348b3e4ce1cbc054d9c6b
[ "MIT" ]
1
2019-07-30T15:59:45.000Z
2019-07-30T15:59:45.000Z
src/typing/flow_js.ml
ilya-bobyr/flow
58551c555c8615f91ad348b3e4ce1cbc054d9c6b
[ "MIT" ]
null
null
null
src/typing/flow_js.ml
ilya-bobyr/flow
58551c555c8615f91ad348b3e4ce1cbc054d9c6b
[ "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. *) (* This module describes the subtyping algorithm that forms the core of typechecking. The algorithm (in its basic form) is desc...
45.397199
106
0.574404
aa2f7032761f209a09d1dcacc0d10b2688601e89
1,247
ml
OCaml
src/lib/rosetta_models/account_coins_response.ml
kobigurk/mina
585c76fc631616a65c1c8eb067c625376d498ad2
[ "Apache-2.0" ]
1
2022-01-03T07:25:40.000Z
2022-01-03T07:25:40.000Z
src/lib/rosetta_models/account_coins_response.ml
kobigurk/mina
585c76fc631616a65c1c8eb067c625376d498ad2
[ "Apache-2.0" ]
null
null
null
src/lib/rosetta_models/account_coins_response.ml
kobigurk/mina
585c76fc631616a65c1c8eb067c625376d498ad2
[ "Apache-2.0" ]
null
null
null
(* * This file has been generated by the OCamlClientCodegen generator for openapi-generator. * * Generated by: https://openapi-generator.tech * * Schema Account_coins_response.t : AccountCoinsResponse is returned on the /account/coins endpoint and includes all unspent Coins owned by an AccountIdentifier. *) type...
59.380952
290
0.764234
bc2eb166a305a8cd828422c47128f8a2a73e38c6
5,497
ml
OCaml
hphp/hack/src/typing/typing_deferred_members.ml
schien-dong/hhvm
d4c8a50001d3e6b75b051006cec96a4e73cb1916
[ "PHP-3.01", "Zend-2.0" ]
1
2021-08-09T16:16:00.000Z
2021-08-09T16:16:00.000Z
hphp/hack/src/typing/typing_deferred_members.ml
schien-dong/hhvm
d4c8a50001d3e6b75b051006cec96a4e73cb1916
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_deferred_members.ml
schien-dong/hhvm
d4c8a50001d3e6b75b051006cec96a4e73cb1916
[ "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_prelude open Aast open Shallow_decl_defs open Typing_defs module Attrs = Naming_attributes module Cls = Decl...
31.056497
83
0.629252
44c8ecd2019c8205788a167d423dc26d307c1a37
853
ml
OCaml
src/stdune/stdune.ml
lpw25/dune-effects
fd31f381b43e02a3bf9bfd3e0d29f0d377f4a10f
[ "Apache-2.0" ]
3
2020-09-06T21:32:35.000Z
2020-09-08T14:27:27.000Z
src/stdune/stdune.ml
lpw25/dune-effects
fd31f381b43e02a3bf9bfd3e0d29f0d377f4a10f
[ "Apache-2.0" ]
null
null
null
src/stdune/stdune.ml
lpw25/dune-effects
fd31f381b43e02a3bf9bfd3e0d29f0d377f4a10f
[ "Apache-2.0" ]
null
null
null
module Ansi_color = Ansi_color module Array = Array module Comparable = Comparable module Either = Either module Exn = Exn module Filename = Filename module Hashtbl = Hashtbl module Int = Int module List = List module Map = Map module Option = Option module Ordering = Orde...
22.447368
67
0.624853
44fa547627d3ed361796185791d0c42eb96a8513
1,070
mli
OCaml
hphp/hack/src/typing/typing_attributes.mli
Mu-L/hhvm
972dcfd068c41f18ba5eadd1b833750917817225
[ "PHP-3.01", "Zend-2.0" ]
1
2021-09-28T23:45:01.000Z
2021-09-28T23:45:01.000Z
hphp/hack/src/typing/typing_attributes.mli
cs-joy/hhvm
fcdbf247527cc38186691653dac9b675fb69a5a8
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_attributes.mli
cs-joy/hhvm
fcdbf247527cc38186691653dac9b675fb69a5a8
[ "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. * *) type attribute_interface_name = string (** Checks a list of user attributes: - checks that the attributes are on the prop...
32.424242
94
0.704673
bc8538871d214ac48b2864d3fade4715635789e2
2,204
ml
OCaml
03-snake/lib/game.ml
brandonpittman/learn-ocaml-workshop
07fcfabb36b4b8865dd651645fec7bed81fe45d0
[ "Apache-2.0" ]
356
2018-03-24T21:12:26.000Z
2022-03-31T19:31:35.000Z
03-snake/lib/game.ml
brandonpittman/learn-ocaml-workshop
07fcfabb36b4b8865dd651645fec7bed81fe45d0
[ "Apache-2.0" ]
9
2018-10-11T10:28:03.000Z
2021-03-18T07:06:41.000Z
03-snake/lib/game.ml
brandonpittman/learn-ocaml-workshop
07fcfabb36b4b8865dd651645fec7bed81fe45d0
[ "Apache-2.0" ]
102
2018-03-24T14:25:09.000Z
2022-03-30T04:34:40.000Z
open! Base type t = { mutable snake : Snake.t ; mutable apple : Apple.t ; mutable game_state : Game_state.t ; height : int ; width : int ; amount_to_grow : int } [@@deriving sexp_of] (* TODO: Implement [in_bounds]. *) let in_bounds t position = failwith "For you to implement" (* TODO: Implement [create...
28.25641
86
0.675136
aa87d2119323717e07f3f37f24138a764e483c07
6,998
ml
OCaml
hphp/hack/src/hhbc/emit_memoize_function.ml
Tiththa/hhvm
d6f984c858544ae716c12413048772f831959307
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/emit_memoize_function.ml
Tiththa/hhvm
d6f984c858544ae716c12413048772f831959307
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/emit_memoize_function.ml
Tiththa/hhvm
d6f984c858544ae716c12413048772f831959307
[ "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 open Instruction_sequence open Emit_memoize_helpers module R = Hhbc_string_utils.Reified let make...
34.472906
91
0.740211
aa2e3f02a433805cd93909437a6ee3fc1716bf8f
4,020
ml
OCaml
presentations/coq-workshop-2014-coq/lib/serialize.ml
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/lib/serialize.ml
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/lib/serialize.ml
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
(************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *) (* \VV/ **************************************************************) (* // * Th...
34.358974
83
0.53607
aa0636da6ac18ad05a76da7c2059656e61f67bcb
1,006
mli
OCaml
src/services/inference/pure_dep_graph_operations.mli
zhangmaijun/flow
f60e2a745b06f6f0739a4e4518eb5e2481f9e011
[ "MIT" ]
20,996
2015-01-01T13:51:47.000Z
2022-03-31T17:44:01.000Z
src/services/inference/pure_dep_graph_operations.mli
zhangmaijun/flow
f60e2a745b06f6f0739a4e4518eb5e2481f9e011
[ "MIT" ]
8,315
2015-01-01T19:56:43.000Z
2022-03-31T15:58:10.000Z
src/services/inference/pure_dep_graph_operations.mli
zhangmaijun/flow
f60e2a745b06f6f0739a4e4518eb5e2481f9e011
[ "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. *) (* Contains pure functions which perform calculations on the dependency graph *) val calc_direct_dependencies : Utils_js.Filenam...
32.451613
80
0.772366
aa807ef2d5dff1db5acddc3996622c3fd711fd71
1,162
ml
OCaml
bootstrap/test/basis/string/test_split.ml
BranchTaken/Hemlock
25a3fce449caa06ad46db351efcfb428f423184d
[ "MIT" ]
25
2020-02-03T20:31:04.000Z
2022-03-30T17:22:35.000Z
bootstrap/test/basis/string/test_split.ml
BranchTaken/Hemlock
25a3fce449caa06ad46db351efcfb428f423184d
[ "MIT" ]
152
2020-02-03T23:16:05.000Z
2022-02-24T22:14:04.000Z
bootstrap/test/basis/string/test_split.ml
BranchTaken/Hemlock
25a3fce449caa06ad46db351efcfb428f423184d
[ "MIT" ]
4
2020-02-03T07:36:22.000Z
2020-10-31T03:44:52.000Z
open! Basis.Rudiments open! Basis open String let test () = let test_split s f cp = begin let ls1, ls2 = lsplit2_hlt s ~on:cp in let rs1, rs2 = rsplit2_hlt s ~on:cp in File.Fmt.stdout |> Basis.Fmt.fmt "split " |> pp s |> Basis.Fmt.fmt " -> " |> List.pp String.pp (split s ~f) |> Basis....
25.822222
90
0.53012
bc5d7afad0683cf2ed07931f816e7adea2b6c089
3,022
ml
OCaml
duniverse/base/src/linked_queue.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/base/src/linked_queue.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/base/src/linked_queue.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
open! Import include Linked_queue0 let enqueue t x = Linked_queue0.push x t let dequeue t = if is_empty t then None else Some (Linked_queue0.pop t) let dequeue_exn = Linked_queue0.pop let peek t = if is_empty t then None else Some (Linked_queue0.peek t) let peek_exn = Linked_queue0.peek module C = Indexed_cont...
18.8875
71
0.597617
44d7aecbd7ffd087d233b3d65c77643228417a41
3,882
ml
OCaml
hphp/hack/test/unit/heap/test_deptbl.ml
simonwelsh/hhvm
d4f2f960f29fc66e0ed615b8fa7746a42aafb173
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/unit/heap/test_deptbl.ml
simonwelsh/hhvm
d4f2f960f29fc66e0ed615b8fa7746a42aafb173
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/unit/heap/test_deptbl.ml
simonwelsh/hhvm
d4f2f960f29fc66e0ed615b8fa7746a42aafb173
[ "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 Hh_core ...
26.053691
80
0.645028
bc4ae63d02221b767b38adb2bcd4587af10997e1
2,216
ml
OCaml
test/pPrintTest.ml
belph/pyret-ocaml
3d0cb651163131f2c1d8b24be23b8291031c0051
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2017-12-15T15:53:25.000Z
2020-09-18T04:24:14.000Z
test/pPrintTest.ml
peblair/pyret-ocaml
3d0cb651163131f2c1d8b24be23b8291031c0051
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
test/pPrintTest.ml
peblair/pyret-ocaml
3d0cb651163131f2c1d8b24be23b8291031c0051
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2018-07-25T10:42:20.000Z
2018-07-25T10:42:20.000Z
open OUnit2 open Printf open PPrint let test_words = List.map str ["This";"is";"a";"sentence";"with";"eight";"words"] let test_words_flow = flow test_words let opt_break x y = match (x,y) with | (MtDoc(_,_),_) -> y | (_,MtDoc(_,_)) -> x | (_,_) -> x +^ ((sbreak 1) +^ y) let binop left op right = group (nes...
31.211268
92
0.538809
aa281abc1e16b42fefcb82fd28f491b91bf4794c
24,975
ml
OCaml
src/ppx_typerep_conv.ml
pitag-ha/ppx_typerep_conv
5f59ffdf49bd8ece9afe315a266cb8031be3d3eb
[ "MIT" ]
null
null
null
src/ppx_typerep_conv.ml
pitag-ha/ppx_typerep_conv
5f59ffdf49bd8ece9afe315a266cb8031be3d3eb
[ "MIT" ]
null
null
null
src/ppx_typerep_conv.ml
pitag-ha/ppx_typerep_conv
5f59ffdf49bd8ece9afe315a266cb8031be3d3eb
[ "MIT" ]
null
null
null
open Base open Ppxlib open Ast_builder.Default let ( @@ ) a b = a b module Gen = struct let let_in loc list_lid_expr body = List.fold_right list_lid_expr ~init:body ~f:(fun (lid, expr) body -> [%expr let [%p pvar ~loc lid] = [%e expr] in [%e body] ]) end module Field_case = struct type t = { label...
34.978992
96
0.574134
bcb961c078bbd361ddb25224cba5b51783ee852a
66
ml
OCaml
lists/05/lib.ml
Vinatorul/99-problems
f37e88dbc91a9935df0bb41d41ccdde4d5108d5c
[ "MIT" ]
2
2020-11-22T20:27:24.000Z
2020-12-13T18:13:15.000Z
lists/05/lib.ml
Vinatorul/99-problems
f37e88dbc91a9935df0bb41d41ccdde4d5108d5c
[ "MIT" ]
null
null
null
lists/05/lib.ml
Vinatorul/99-problems
f37e88dbc91a9935df0bb41d41ccdde4d5108d5c
[ "MIT" ]
null
null
null
let rec rev = function | [] -> [] | h::t -> (rev t) @ [h]
16.5
27
0.363636
bcb7d48c77b7c72d9b871823b1c61992918a40d1
21,500
mly
OCaml
wisl/lib/ParserAndCompiler/WParser.mly
raduml97/Gillian
10b9d80b0edecdd9d52f7711993dc208084f13e1
[ "MIT" ]
1
2020-05-30T11:39:31.000Z
2020-05-30T11:39:31.000Z
wisl/lib/ParserAndCompiler/WParser.mly
alexismarinoiu/Gillian
cf14a9b992d75194db38b90ef41222e6c7253c89
[ "MIT" ]
null
null
null
wisl/lib/ParserAndCompiler/WParser.mly
alexismarinoiu/Gillian
cf14a9b992d75194db38b90ef41222e6c7253c89
[ "MIT" ]
null
null
null
%token EOF (* key words *) %token <CodeLoc.t> TRUE FALSE NULL WHILE IF ELSE SKIP NEW DELETE %token <CodeLoc.t> FUNCTION RETURN PREDICATE LEMMA %token <CodeLoc.t> INVARIANT FOLD UNFOLD APPLY ASSERT EXIST FORALL %token <CodeLoc.t> STATEMENT VARIANT PROOF (* punctuation *) %token <CodeLoc.t> COLON /* : */ %to...
37.068966
121
0.610279
bce6e6772da60a5b8313e44efca79a828d87d237
363
mli
OCaml
src/lexer.mli
xguerin/ocaml-systemverilog
c01f53464d769de08da1f9df02f4c96a2cca62e7
[ "0BSD" ]
3
2020-11-18T19:42:34.000Z
2020-11-19T00:41:44.000Z
src/lexer.mli
xguerin/ocaml-systemverilog
c01f53464d769de08da1f9df02f4c96a2cca62e7
[ "0BSD" ]
null
null
null
src/lexer.mli
xguerin/ocaml-systemverilog
c01f53464d769de08da1f9df02f4c96a2cca62e7
[ "0BSD" ]
null
null
null
exception SyntaxError of string val next_line : Lexing.lexbuf -> unit val __ocaml_lex_tables : Lexing.lex_tables val read : Lexing.lexbuf -> Parser.token val __ocaml_lex_read_rec : Lexing.lexbuf -> int -> Parser.token val read_string : Buffer.t -> Lexing.lexbuf -> Parser.token val __ocaml_lex_read_string_rec : Buffer...
40.333333
63
0.768595
bcd9a7630fb1e3c6df657850ca828db21c0c1a0d
30,518
ml
OCaml
hphp/hack/src/typing/typing_object_get.ml
the-storm/hhvm
8c173160bb6b8e56277a04d00efe4c1a234b605c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_object_get.ml
the-storm/hhvm
8c173160bb6b8e56277a04d00efe4c1a234b605c
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/typing/typing_object_get.ml
the-storm/hhvm
8c173160bb6b8e56277a04d00efe4c1a234b605c
[ "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_prelude open Common open Tast open Typing_defs open Utils module TUtils = Typing_utils module Reason = Typin...
31.559462
104
0.559342
bca12b31b0ac71919920c5804f0d8913821f34e8
707
ml
OCaml
benchmarks/formula/formula1/submissions/sub40.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
5
2019-08-26T05:41:41.000Z
2020-05-03T03:58:50.000Z
benchmarks/formula/formula1/submissions/sub40.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
null
null
null
benchmarks/formula/formula1/submissions/sub40.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "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 | LESS of expr * expr and expr = NUM of int | PLUS of expr * expr | MINUS of expr * expr let rec eval f = let rec cal e = match e with NUM i -> i | PLUS (e1, e2) -> (ca...
30.73913
156
0.55587
bc887a32f00477d8259604c35acc4f269cee16f7
3,070
ml
OCaml
src/state/heaps/package/package_heaps.ml
superclassiceth/flow
ff92d2f0d9787e792aede6b4c91f4d6945cc0ed0
[ "MIT" ]
null
null
null
src/state/heaps/package/package_heaps.ml
superclassiceth/flow
ff92d2f0d9787e792aede6b4c91f4d6945cc0ed0
[ "MIT" ]
1
2021-09-02T18:19:09.000Z
2021-09-02T18:19:09.000Z
src/state/heaps/package/package_heaps.ml
superclassiceth/flow
ff92d2f0d9787e792aede6b4c91f4d6945cc0ed0
[ "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. *) (** Maps filenames to info about a module, including the module's name. note: currently we may have many files for one module n...
30.098039
97
0.729967
bccadf0780b2172c8f3d0c214963929cafde68a2
232
ml
OCaml
tests/benchmarks/r_type/first/sum2.ml
LinerSu/DART_IT
2bdd046f912d761278ee7387f487a2809053220e
[ "BSD-3-Clause" ]
7
2020-06-12T09:32:16.000Z
2020-10-05T09:04:07.000Z
tests/benchmarks/r_type/first/sum2.ml
nyu-acsys/drift2
2bdd046f912d761278ee7387f487a2809053220e
[ "BSD-3-Clause" ]
null
null
null
tests/benchmarks/r_type/first/sum2.ml
nyu-acsys/drift2
2bdd046f912d761278ee7387f487a2809053220e
[ "BSD-3-Clause" ]
2
2021-04-05T12:25:11.000Z
2021-05-14T09:31:24.000Z
(* Res: OCaml -> 10453878 imprecision: Oct: 4752 <= v Liquid Haskell: TODO: need to TEST! *) let rec sum n = if n <= 0 then 0 else n + sum (n - 1) let main (n:int(*-:{v:Int | true}*)) = assert (2 * n - 1 <= sum n)
15.466667
38
0.530172
8a85282add36d406531c0c256e2507df847d47c9
1,919
mli
OCaml
upstream/ocaml_405/typing/datarepr.mli
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
961
2020-09-15T11:01:50.000Z
2022-03-26T00:25:17.000Z
upstream/ocaml_405/typing/datarepr.mli
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
83
2020-09-27T18:51:24.000Z
2022-03-08T10:57:53.000Z
upstream/ocaml_405/typing/datarepr.mli
rvantonder/merlin
09d6b2762f0be7129decae97bc2d87fc854bbbce
[ "MIT" ]
26
2020-10-13T10:39:13.000Z
2021-12-07T04:57:33.000Z
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
42.644444
80
0.47629
bca1cabdb01ef02836b2044a2870bce530161c94
826
mli
OCaml
text_graph/src/text_graph.mli
janestreet/textutils_kernel
cd72ad1cdb43ca59f08799443e498f78f749d4d6
[ "MIT" ]
2
2017-09-18T11:35:33.000Z
2021-12-17T02:45:30.000Z
text_graph/src/text_graph.mli
janestreet/textutils_kernel
cd72ad1cdb43ca59f08799443e498f78f749d4d6
[ "MIT" ]
null
null
null
text_graph/src/text_graph.mli
janestreet/textutils_kernel
cd72ad1cdb43ca59f08799443e498f78f749d4d6
[ "MIT" ]
1
2021-12-17T02:47:58.000Z
2021-12-17T02:47:58.000Z
open! Core (** This module renders text graphs to visualize data on the terminal. A typical text graph looks like a bar graph as shown below: {v label1 3786 |----+----1----+----2---- ... ----+----7----+----8----+----9----+----| label2 3653 |----+----1----+----2---- ... ----+----7----+----8...
35.913043
92
0.486683
bce6f89c5cf5752a273416b2eda3b1562fd51b4d
4,893
ml
OCaml
ocaml-sources/testsuite/tests/statmemprof/intern.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/statmemprof/intern.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/statmemprof/intern.ml
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
null
null
null
(* TEST flags = "-g" *) open Gc.Memprof let alloc_tracker on_alloc = { null_tracker with alloc_minor = (fun info -> on_alloc info; None); alloc_major = (fun info -> on_alloc info; None); } type t = I of int | II of int * int | Cons of t let rec t_of_len = function | len when len <= 1 -> assert false...
28.614035
75
0.643572
aa8561041aaadcbc183f0e9622a1ae49e43500f2
365
ml
OCaml
lib/bap_lisp/bap_lisp.ml
aoidos-bin/bap
d3d8537db19f33bb65508e28458c2897f70df9a7
[ "MIT-CMU", "MIT" ]
null
null
null
lib/bap_lisp/bap_lisp.ml
aoidos-bin/bap
d3d8537db19f33bb65508e28458c2897f70df9a7
[ "MIT-CMU", "MIT" ]
null
null
null
lib/bap_lisp/bap_lisp.ml
aoidos-bin/bap
d3d8537db19f33bb65508e28458c2897f70df9a7
[ "MIT-CMU", "MIT" ]
null
null
null
module Lisp = struct module Attribute = Bap_lisp__attribute module Def = Bap_lisp__def module Var = Bap_lisp__var module Load = Bap_lisp__parse module Resolve = Bap_lisp__resolve module Check = Bap_lisp__type.Check module Context = Bap_lisp__context module Program = Bap_lisp__program module Type = Bap...
28.076923
40
0.789041
bc68ee9f14d095e8122f8ae40eb9d3a0603067f7
5,106
ml
OCaml
src/stack-direct/tcpip_stack_direct.ml
pit36/tcp-mirage
552fa3d4bdfeadd335e4a0339c8f2ffcc83376cc
[ "0BSD" ]
null
null
null
src/stack-direct/tcpip_stack_direct.ml
pit36/tcp-mirage
552fa3d4bdfeadd335e4a0339c8f2ffcc83376cc
[ "0BSD" ]
null
null
null
src/stack-direct/tcpip_stack_direct.ml
pit36/tcp-mirage
552fa3d4bdfeadd335e4a0339c8f2ffcc83376cc
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2011-2014 Anil Madhavapeddy <anil@recoil.org> * * 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 ...
34.972603
86
0.657854
aa52ec26594519e3b3527eb1099ab80e3ab22ae0
1,491
ml
OCaml
target.ml
youqad/Compiling-to-Categories_Automatic_Differentiation_Project
ee017bc90a412182017246728c78c4b8e3e7ca6d
[ "Apache-2.0" ]
1
2019-06-03T13:57:43.000Z
2019-06-03T13:57:43.000Z
target.ml
youqad/Compiling-to-Categories_Automatic_Differentiation_Project
ee017bc90a412182017246728c78c4b8e3e7ca6d
[ "Apache-2.0" ]
null
null
null
target.ml
youqad/Compiling-to-Categories_Automatic_Differentiation_Project
ee017bc90a412182017246728c78c4b8e3e7ca6d
[ "Apache-2.0" ]
null
null
null
type program = (Source.binding * t) list and t = | App of t * t | Identity of ok | Curry of ok * ok * ok | UnCurry of ok * ok * ok | Apply of ok * ok | Fork of ok * ok * ok | Exl of ok * ok | Exr of ok * ok | UnitArrow of ok | It of ok | Compose of ok * ok * ok | Literal of Source.literal | P...
25.706897
67
0.585513
bce96213a64678d47e3e6ede2891c8c749d7f83d
47,136
ml
OCaml
vendors/irmin/tree.ml
osiz-blockchainapp/mica-hCoinSandbox
f877e01bbef8e748a52490bf0af599c654754148
[ "MIT" ]
null
null
null
vendors/irmin/tree.ml
osiz-blockchainapp/mica-hCoinSandbox
f877e01bbef8e748a52490bf0af599c654754148
[ "MIT" ]
null
null
null
vendors/irmin/tree.ml
osiz-blockchainapp/mica-hCoinSandbox
f877e01bbef8e748a52490bf0af599c654754148
[ "MIT" ]
null
null
null
(* * Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org> * Copyright (c) 2017 Grégoire Henry <gregoire.henry@ocamlpro.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 pe...
32.373626
79
0.49075
bc17c55f8e247485089011cc36b5c910708228b2
1,479
mli
OCaml
src/dune_engine/dpath.mli
jeremiedimino/dune
ba112ce967bb9307db7d92efcb13c603724947e5
[ "MIT" ]
2
2022-03-03T01:38:24.000Z
2022-03-03T01:54:36.000Z
src/dune_engine/dpath.mli
jeremiedimino/dune
ba112ce967bb9307db7d92efcb13c603724947e5
[ "MIT" ]
1
2021-11-08T19:54:28.000Z
2021-11-08T19:54:28.000Z
src/dune_engine/dpath.mli
jeremiedimino/dune
ba112ce967bb9307db7d92efcb13c603724947e5
[ "MIT" ]
1
2017-12-07T21:21:12.000Z
2017-12-07T21:21:12.000Z
open Stdune module Target_dir : sig type context_related = | Root | With_context of Context_name.t * Path.Source.t val build_dir : context_related -> Path.Build.t type t = | Install of context_related | Alias of context_related | Regular of context_related | Invalid of Path.Build.t v...
22.074627
55
0.707911
445903ca476f7773e8b7b45bdc6e497897c608a6
948
mli
OCaml
compiler/opa/pass_InitializeBslValues.mli
Machiaweliczny/oppailang
60ddea53e56babcc1e8954b5585150098b0e4d88
[ "MIT" ]
643
2015-01-02T23:57:37.000Z
2022-03-18T18:50:24.000Z
compiler/opa/pass_InitializeBslValues.mli
Machiaweliczny/oppailang
60ddea53e56babcc1e8954b5585150098b0e4d88
[ "MIT" ]
52
2015-01-17T07:26:16.000Z
2021-03-08T14:16:08.000Z
compiler/opa/pass_InitializeBslValues.mli
Machiaweliczny/oppailang
60ddea53e56babcc1e8954b5585150098b0e4d88
[ "MIT" ]
58
2015-01-02T23:57:42.000Z
2022-03-02T12:44:42.000Z
(* Copyright © 2011, 2012 MLstate This file is part of Opa. Opa is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. Opa is distributed in the hope that it will be useful, ...
37.92
148
0.729958
aa2bcac3370f8aed4396a4b71f93fa4fc576aab9
1,304
ml
OCaml
hphp/hack/src/client/clientBuild.ml
wmde/hhvm
f43ae21551b3e37ec955bce770ca9a99677388fc
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/client/clientBuild.ml
wmde/hhvm
f43ae21551b3e37ec955bce770ca9a99677388fc
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/client/clientBuild.ml
wmde/hhvm
f43ae21551b3e37ec955bce770ca9a99677388fc
[ "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. * *) let num_build...
26.08
80
0.683282
bcf5b26cad879447be8dec3bfd63e2400b7a6fa1
2,661
ml
OCaml
2A/S8/VAS/TPs/G14/be/analyzer/src/location.ml
MOUDDENEHamza/ENSEEIHT
a90b1dee0c8d18a9578153a357278d99405bb534
[ "Apache-2.0" ]
4
2020-05-02T12:32:32.000Z
2022-01-12T20:20:35.000Z
2A/S8/VAS/TPs/G14/be/analyzer/src/_build/location.ml
MOUDDENEHamza/ENSEEIHT
a90b1dee0c8d18a9578153a357278d99405bb534
[ "Apache-2.0" ]
2
2021-01-14T20:03:26.000Z
2022-01-30T01:10:00.000Z
2A/S8/VAS/TPs/G14/be/analyzer/src/location.ml
MOUDDENEHamza/ENSEEIHT
a90b1dee0c8d18a9578153a357278d99405bb534
[ "Apache-2.0" ]
13
2020-11-11T21:28:11.000Z
2022-02-19T13:54:22.000Z
(* * TINY (Tiny Is Not Yasa (Yet Another Static Analyzer)): * a simple abstract interpreter for teaching purpose. * Copyright (C) 2012 P. Roux * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Found...
36.452055
87
0.700113
445593939dd9a335c748c65d9c13d06fd2700943
1,128
ml
OCaml
tests/frontend/expect/parsing/good_immutable_refs_in_multiple_threads.ml
paulocoghi/bolt
a81627f95af6577cd465df09290a51c9d469c667
[ "MIT" ]
305
2020-05-08T11:09:53.000Z
2022-03-19T18:43:58.000Z
tests/frontend/expect/parsing/good_immutable_refs_in_multiple_threads.ml
lqwu/bolt
1faf19d698852fdb6af2ee005a5f036ee1c76503
[ "MIT" ]
53
2019-11-10T13:46:46.000Z
2022-02-04T17:20:15.000Z
tests/frontend/expect/parsing/good_immutable_refs_in_multiple_threads.ml
lqwu/bolt
1faf19d698852fdb6af2ee005a5f036ee1c76503
[ "MIT" ]
33
2020-05-09T00:35:53.000Z
2022-03-14T21:10:25.000Z
open Core open Print_parsed_ast let%expect_test "Immutable refs in multiple locals" = print_parsed_ast " class Foo { capability read Bar; const int f : Bar; } void main() { let x = new Foo(f:5); let y = 5; finish{ // can read aliases in different locals as neit...
22.117647
71
0.445035
aa4e2e685f67bb28f4ff5e7a2d9a4b2b6e6e24f5
15,509
ml
OCaml
test/utftrip.ml
sanette/uutf
ba5c09fba013a9b3f5ceebd1e52df89de111d0bc
[ "ISC" ]
null
null
null
test/utftrip.ml
sanette/uutf
ba5c09fba013a9b3f5ceebd1e52df89de111d0bc
[ "ISC" ]
null
null
null
test/utftrip.ml
sanette/uutf
ba5c09fba013a9b3f5ceebd1e52df89de111d0bc
[ "ISC" ]
null
null
null
(*--------------------------------------------------------------------------- Copyright (c) 2012 Daniel C. Bünzli. All rights reserved. Distributed under the ISC license, see terms at the end of the file. %%NAME%% %%VERSION%% ---------------------------------------------------------------------------*) let ...
37.919315
80
0.644336
aa1190e75482a5ca80612fbc5847a567d18c7803
16,983
ml
OCaml
src/ocaml_400/typing/btype.ml
jpdeplaix/merlin
81a6f05bcdc32ab2ec32057bd37dd0d6db315426
[ "MIT" ]
null
null
null
src/ocaml_400/typing/btype.ml
jpdeplaix/merlin
81a6f05bcdc32ab2ec32057bd37dd0d6db315426
[ "MIT" ]
null
null
null
src/ocaml_400/typing/btype.ml
jpdeplaix/merlin
81a6f05bcdc32ab2ec32057bd37dd0d6db315426
[ "MIT" ]
null
null
null
(***********************************************************************) (* *) (* OCaml *) (* *) (* Xavier Leroy and Jero...
30.218861
77
0.564565
aa13ac4d7f9003d07107e5f505e0b99480fd5478
3,765
ml
OCaml
demos/la10b/src/test_sm.ml
shibata-makoto/ocaml-blockly
8ad55f54810537987714b31c6729f92d9a5f5d38
[ "Apache-2.0" ]
null
null
null
demos/la10b/src/test_sm.ml
shibata-makoto/ocaml-blockly
8ad55f54810537987714b31c6729f92d9a5f5d38
[ "Apache-2.0" ]
26
2019-04-22T08:06:19.000Z
2020-07-30T00:13:03.000Z
demos/la10b/src/test_sm.ml
shibata-makoto/ocaml-blockly
8ad55f54810537987714b31c6729f92d9a5f5d38
[ "Apache-2.0" ]
22
2019-04-18T04:03:25.000Z
2021-02-08T08:54:55.000Z
open UniverseJs open Color open Image open World open TransformToInt type world_t = { broccoli : int * int; nasu : int * int; tomato : int * int; meat : int * int; ika : int * int; salmon : int * int; } let width = 750 let height = 560 let image_length = 100 (* 籠内の座標 *) let r0 = 530 let p1 = 450 let sm1 =...
41.833333
634
0.669854
bc95b5fd4a9a0a3560ade9938318787001298402
7,721
ml
OCaml
data/derived/comb/progs/unify/prog5220.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/fa15/progs/unify/prog0312.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog0312.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.996633
148
0.65406
aa27430884d05062150bae5bbf486cfb7d4aeb53
525
ml
OCaml
data/derived/comb/progs/unify/prog4494.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/prog4494.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog4494.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));; let padZero l1 l2 = let leng1 = List.length l1 in let leng2 = List.length l2 in (((clone 0 (leng2 - leng1)) @ l1), ((clone 0 (leng1 - leng2)) @ l2));; let rec removeZero l = match l with | [] -> [] | h::t -> if h = 0 then removeZero t else l...
29.166667
72
0.55619
aa81d7923965ccd1404fb996dbc703ec31b8a753
545
ml
OCaml
anagram/anagram.ml
shnewto/ocaml-toys
0d3e3f47256210bc32d3696c655a6beba169d080
[ "MIT" ]
null
null
null
anagram/anagram.ml
shnewto/ocaml-toys
0d3e3f47256210bc32d3696c655a6beba169d080
[ "MIT" ]
null
null
null
anagram/anagram.ml
shnewto/ocaml-toys
0d3e3f47256210bc32d3696c655a6beba169d080
[ "MIT" ]
null
null
null
open Base let sorted_str s = String.lowercase s |> String.to_list |> List.sort ~compare:(Char.compare) |> String.of_char_list let strs_anagrams a b = String.compare (sorted_str a) (sorted_str b) |> (=) 0 let case_insensitve_equal a b = String.equal (String.lowercase a) (String.lower...
21.8
58
0.60367
aa6e530e78fd32f698d6faf3ed2441a643edb6b5
1,790
ml
OCaml
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/experimental/garrigue/fixedtypes.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/experimental/garrigue/fixedtypes.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
null
null
null
test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/experimental/garrigue/fixedtypes.ml
dauletisataev/form-ppx
caa4311ab58b171950dce74def61133830d4740c
[ "MIT" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
(* cvs update -r fixedtypes parsing typing *) (* recursive types *) class c = object (self) method m = 1 method s = self end module type S = sig type t = private #c end;; module M : S = struct type t = c end module type S' = S with type t = c;; class d = object inherit c method n = 2 end module type S2 = S with type...
22.948718
56
0.550279
aa55c281943f42cf85f0ef3d10270b9bf3a340dd
587
mli
OCaml
infer/src/absint/Bindings.mli
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
14,499
2015-06-11T16:00:28.000Z
2022-03-31T23:43:54.000Z
infer/src/absint/Bindings.mli
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
1,529
2015-06-11T16:55:30.000Z
2022-03-27T15:59:46.000Z
infer/src/absint/Bindings.mli
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 include AbstractDomain.S val empty : t val add : Var.t -> HilExp.AccessExpression.t -> t -> t val exit_scope : Var.t...
26.681818
99
0.678024
4481249cc1a6f3493ae292823ae1cc7e374d792c
591
mli
OCaml
infer/src/istd/IExn.mli
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
14,499
2015-06-11T16:00:28.000Z
2022-03-31T23:43:54.000Z
infer/src/istd/IExn.mli
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
1,529
2015-06-11T16:55:30.000Z
2022-03-27T15:59:46.000Z
infer/src/istd/IExn.mli
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! Core val reraise_after : f:(unit -> unit) -> exn -> 'a (** Reraise the exception after doing f. Always reraise immediately a...
34.764706
97
0.715736
8a52978744d8ad21e6232bf0615d1e18d4ca8b0c
365
ml
OCaml
duniverse/bisect_ppx/src/ppx/exclude.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/bisect_ppx/src/ppx/exclude.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/bisect_ppx/src/ppx/exclude.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
(* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. *) exception Exception of (int * string) type t = | Name of string | Regexp of Str.regexp type file = { p...
21.470588
79
0.663014
aa0254e79d42f42db7e7c6bcc2a796d8994e3191
2,617
mli
OCaml
src/core/UntypedAST.mli
dillonhuff/zipperposition
698ab26a214d1acd059934269424e264ced183bf
[ "BSD-2-Clause" ]
1
2021-12-04T02:49:56.000Z
2021-12-04T02:49:56.000Z
src/core/UntypedAST.mli
Guoyanzeng/zipperposition
cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103
[ "BSD-2-Clause" ]
null
null
null
src/core/UntypedAST.mli
Guoyanzeng/zipperposition
cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103
[ "BSD-2-Clause" ]
null
null
null
(* This file is free software, part of Zipperposition. See file "license" for more details. *) (** {1 Main AST before Typing} *) (** Parsers eventually output this AST, that uses simple terms ({!STerm}) for types, terms, and formulas. Everything is possibly annotated with a parse location so that error ...
24.688679
94
0.674436
aa0e3e60207f1d685f402684037004c9b9ac33f1
15,656
ml
OCaml
ocaml_modules/uutf/test/test.ml
samoht/opam-monorepo
77309015d51a321f88ee42ecb14af5e31649efd5
[ "0BSD" ]
null
null
null
ocaml_modules/uutf/test/test.ml
samoht/opam-monorepo
77309015d51a321f88ee42ecb14af5e31649efd5
[ "0BSD" ]
null
null
null
ocaml_modules/uutf/test/test.ml
samoht/opam-monorepo
77309015d51a321f88ee42ecb14af5e31649efd5
[ "0BSD" ]
null
null
null
(*--------------------------------------------------------------------------- Copyright (c) 2012 Daniel C. Bünzli. All rights reserved. Distributed under the ISC license, see terms at the end of the file. %%NAME%% %%VERSION%% ---------------------------------------------------------------------------*) let ...
41.527851
80
0.593191
bc7e80fbb1c1ff00b9611362cad6d7d13920cc6e
6,047
ml
OCaml
src/common.ml
XVilka/ppx
827602fadd1d1b9afb398bb6e7ef6738937dd29e
[ "MIT" ]
null
null
null
src/common.ml
XVilka/ppx
827602fadd1d1b9afb398bb6e7ef6738937dd29e
[ "MIT" ]
null
null
null
src/common.ml
XVilka/ppx
827602fadd1d1b9afb398bb6e7ef6738937dd29e
[ "MIT" ]
null
null
null
open! Import open Ast_builder.Default let lident x = Longident.Lident x let core_type_of_type_declaration td = let loc = td.ptype_name.loc in ptyp_constr ~loc (Located.map lident td.ptype_name) (List.map td.ptype_params ~f:fst) ;; let gen_symbol = let cnt = ref 0 in fun ?(prefix = "_x") () -> cnt...
30.852041
88
0.648751
bc9039c36a74bd8260e3fbbcfcbcf8493295da61
131
ml
OCaml
vendor/dune/src/stdune/appendable_list.ml
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
57
2019-05-15T14:23:37.000Z
2021-05-24T19:23:19.000Z
vendor/dune/src/stdune/appendable_list.ml
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
53
2019-06-06T16:27:15.000Z
2020-05-14T18:05:50.000Z
vendor/dune/src/stdune/appendable_list.ml
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
7
2019-06-03T15:07:32.000Z
2020-04-06T14:06:22.000Z
type 'a t = 'a list -> 'a list let empty = fun k -> k let singleton x k = x :: k let to_list l = l [] let (@) a b k = a (b k)
11.909091
30
0.503817
bc5baccead24ff00c840e9758bc4ce0f9bc8f113
2,191
mll
OCaml
src/lp/lexer.mll
ktahar/ocaml-lp
00d2df4e446adde46cf19883e336e4355ebf242c
[ "MIT" ]
29
2020-05-12T23:47:14.000Z
2022-02-03T02:11:20.000Z
src/lp/lexer.mll
ktahar/ocaml-lp
00d2df4e446adde46cf19883e336e4355ebf242c
[ "MIT" ]
4
2021-11-01T21:08:25.000Z
2021-11-25T15:22:20.000Z
src/lp/lexer.mll
ktahar/ocaml-lp
00d2df4e446adde46cf19883e336e4355ebf242c
[ "MIT" ]
null
null
null
{ open Parser exception Error of char * Lexing.position let lexing_error lexbuf = let invalid_char = Lexing.lexeme_char lexbuf 0 in raise (Error (invalid_char, lexbuf.Lexing.lex_curr_p)) let keywords = Hashtbl.create 32 let _ = List.iter (fun (k, v) -> Hashtbl.add keywords k v) [ "end", END; "max", ...
25.476744
80
0.488361
aa7c96677369a3ad3295adf688e53f44cbf3b8d5
2,180
mli
OCaml
src/analysis/track_definition.mli
haselwarter/merlin
9d05bd20ff4d4ca3070e3c7a48f0755edc63f65f
[ "MIT" ]
null
null
null
src/analysis/track_definition.mli
haselwarter/merlin
9d05bd20ff4d4ca3070e3c7a48f0755edc63f65f
[ "MIT" ]
null
null
null
src/analysis/track_definition.mli
haselwarter/merlin
9d05bd20ff4d4ca3070e3c7a48f0755edc63f65f
[ "MIT" ]
null
null
null
(* {{{ COPYING *( This file is part of Merlin, an helper for ocaml editors Copyright (C) 2013 - 2014 Frédéric Bour <frederic.bour(_)lakaban.net> Thomas Refis <refis.thomas(_)gmail.com> Simon Castellan <simon.castellan(_)iuwt.fr> Permission is hereby...
36.949153
97
0.697706
aa5727fe885410b240291ed2e41768254de8d9b4
8,052
ml
OCaml
data/derived/comb/progs/unify/prog8227.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/fa15/progs/unify/prog3437.orig.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/fa15/progs/unify/prog3437.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.313725
148
0.637233
aa6191798f90cde8a0ba947fe6c8057af6040a2b
998
mli
OCaml
src/third-party/fuzzy-path/src/fuzzy_path.mli
dmitryvinn/flow-1
9ef203b34fd36fe390467456cbd0ce6c4920522e
[ "MIT" ]
null
null
null
src/third-party/fuzzy-path/src/fuzzy_path.mli
dmitryvinn/flow-1
9ef203b34fd36fe390467456cbd0ce6c4920522e
[ "MIT" ]
null
null
null
src/third-party/fuzzy-path/src/fuzzy_path.mli
dmitryvinn/flow-1
9ef203b34fd36fe390467456cbd0ce6c4920522e
[ "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. *) type options = { case_sensitive: bool; (** Prefers case-sensitive matches when the query contains an uppercase letter. *) ...
21.695652
84
0.688377
aa659cf5fc7ded8a0d1a03c42a56f3b43fbc1065
12,629
ml
OCaml
src/service/subject.ml
dbuenzli/hyperbib
f75cb77f01abc1929db9ef9882c57bb09ce3c2dc
[ "MIT" ]
13
2021-12-24T11:18:20.000Z
2022-03-14T09:18:08.000Z
src/service/subject.ml
dbuenzli/hyperbib
f75cb77f01abc1929db9ef9882c57bb09ce3c2dc
[ "MIT" ]
null
null
null
src/service/subject.ml
dbuenzli/hyperbib
f75cb77f01abc1929db9ef9882c57bb09ce3c2dc
[ "MIT" ]
null
null
null
(*--------------------------------------------------------------------------- Copyright (c) 2020 University of Bern. All rights reserved. Distributed under the ISC license, see terms at the end of the file. ---------------------------------------------------------------------------*) open Hyperbib.Std module ...
36.712209
80
0.615963
aa1122a7bae64de374cc90fe5e03c5be98cf55ef
55,524
ml
OCaml
src/parser/statement_parser.ml
ostera/flow
5006818684fe3210edb57c07fbb978287fdd225f
[ "MIT" ]
1
2019-07-15T20:48:46.000Z
2019-07-15T20:48:46.000Z
src/parser/statement_parser.ml
wgao19/flow
8e6b768fd787c5a1b5f7025fbf8b3b00111671de
[ "MIT" ]
null
null
null
src/parser/statement_parser.ml
wgao19/flow
8e6b768fd787c5a1b5f7025fbf8b3b00111671de
[ "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. *) module Ast = Flow_ast open Token open Parser_env open Flow_ast module SSet = Set.Make(String) open Parser_common module type ST...
35.298156
120
0.609142
bc597369a905f333a6bd0daaabbb17f13d6a9f99
2,016
ml
OCaml
hphp/hack/test/utils/process/process_test.ml
elgenie/hiphop-php
23efadffa702cf296403a850e3500f91511258f7
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/utils/process/process_test.ml
elgenie/hiphop-php
23efadffa702cf296403a850e3500f91511258f7
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/utils/process/process_test.ml
elgenie/hiphop-php
23efadffa702cf296403a850e3500f91511258f7
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
open Asserter let test_echo () = let process = Process.exec "echo" [ "hello world"; ] in let status, result, _err = Process.read_and_wait_pid process in let () = Process_status_asserter.assert_equals (Unix.WEXITED 0) status "" in let () = String_asserter.assert_equals "hello world\n" result "" in true let t...
35.368421
78
0.702381
aa70452999d5aa5bd61bf71278277d61dc7a60c0
4,263
mli
OCaml
src/proto_alpha/lib_protocol/constants_parametric_previous_repr.mli
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/constants_parametric_previous_repr.mli
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/constants_parametric_previous_repr.mli
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
49
79
0.64532
bc1b53bef34234c18f322065d8fb3886b3eb3c7e
553
mli
OCaml
lib/game.mli
jgerrish/scuttle
33492aa8b36c1cb012b027a89d68b4cf33c60c77
[ "MIT" ]
null
null
null
lib/game.mli
jgerrish/scuttle
33492aa8b36c1cb012b027a89d68b4cf33c60c77
[ "MIT" ]
null
null
null
lib/game.mli
jgerrish/scuttle
33492aa8b36c1cb012b027a89d68b4cf33c60c77
[ "MIT" ]
null
null
null
open Deck module Game : sig type player = string (** [players] The player data type is just a string player name *) type game_element = Deck of Deck.deck | Players of player list (** [game_element] The different directives / elements that can compose games. *) type game = game...
27.65
77
0.647378
aa7dcb5e9cd6db147e7f98581c17535bbdcf984d
12,211
ml
OCaml
src/flow_dot_js.ml
gregeinfrank/flow
466ff9b70de57ed2ffef9de8bea9f2f16cf170bb
[ "MIT" ]
null
null
null
src/flow_dot_js.ml
gregeinfrank/flow
466ff9b70de57ed2ffef9de8bea9f2f16cf170bb
[ "MIT" ]
null
null
null
src/flow_dot_js.ml
gregeinfrank/flow
466ff9b70de57ed2ffef9de8bea9f2f16cf170bb
[ "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 error_of_parse_error source_file (loc, err) = let flow_err = Flow_error.EParseError (loc, err) in Flow_error.error_of_msg ~trace...
35.394203
99
0.709279
aa8503f6444b2e8a5f0d0fa6458104150b5faf30
1,445
mli
OCaml
experiments/ownership-inference/infer/facebook-clang-plugins/clang-ocaml/utils.mli
SunghoLee/hafnium-verification
382494a2280a751a1e33f2676e8bbf5d5e2d9dbf
[ "Apache-2.0" ]
415
2015-01-03T04:54:43.000Z
2021-05-06T01:47:04.000Z
experiments/ownership-inference/infer/facebook-clang-plugins/clang-ocaml/utils.mli
SunghoLee/hafnium-verification
382494a2280a751a1e33f2676e8bbf5d5e2d9dbf
[ "Apache-2.0" ]
39
2019-06-28T15:08:12.000Z
2020-07-17T01:44:33.000Z
experiments/ownership-inference/infer/facebook-clang-plugins/clang-ocaml/utils.mli
SunghoLee/hafnium-verification
382494a2280a751a1e33f2676e8bbf5d5e2d9dbf
[ "Apache-2.0" ]
96
2015-04-08T01:58:27.000Z
2021-05-20T09:25:33.000Z
(* * Copyright (c) 2014-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. *) val open_in : string -> in_channel val open_out : string -> out_channel val string_starts_with : string -> string -> bool val string_e...
24.083333
93
0.626298
aa651d4e8471e0385688e8dd36c0b69bbb713533
3,568
ml
OCaml
herd/RISCVArch_herd.ml
csgordon/herdtools7
0b068a7e84eff5edcf3ed495c640d525cd65c545
[ "CECILL-B" ]
null
null
null
herd/RISCVArch_herd.ml
csgordon/herdtools7
0b068a7e84eff5edcf3ed495c640d525cd65c545
[ "CECILL-B" ]
null
null
null
herd/RISCVArch_herd.ml
csgordon/herdtools7
0b068a7e84eff5edcf3ed495c640d525cd65c545
[ "CECILL-B" ]
null
null
null
(****************************************************************************) (* the diy toolsuite *) (* *) (* Jade Alglave, University College London, UK. *) (* L...
32.144144
78
0.501682
bc34c5f778df1c82649f8d6e70659f3ad40dc576
123
ml
OCaml
driver/pkcs11_log.ml
kit-ty-kate/pkcs11
5384608d8918cbcc77c97df4baacdb5cbf4e0729
[ "BSD-2-Clause" ]
null
null
null
driver/pkcs11_log.ml
kit-ty-kate/pkcs11
5384608d8918cbcc77c97df4baacdb5cbf4e0729
[ "BSD-2-Clause" ]
null
null
null
driver/pkcs11_log.ml
kit-ty-kate/pkcs11
5384608d8918cbcc77c97df4baacdb5cbf4e0729
[ "BSD-2-Clause" ]
null
null
null
let logging_function = ref ignore let set_logging_function f = logging_function := f let log s = (!logging_function) s
17.571429
50
0.756098
afbe36a12c8ce355223a052f12d4b40ae882875a
1,893
ml
OCaml
vendors/UnionFind/reprMap.ml
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
2
2021-03-06T12:11:41.000Z
2021-11-21T13:54:18.000Z
vendors/UnionFind/reprMap.ml
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
4
2021-11-10T15:04:00.000Z
2022-01-14T07:49:14.000Z
vendors/UnionFind/reprMap.ml
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
1
2022-03-30T09:12:37.000Z
2022-03-30T09:12:37.000Z
(* Map where the key is the repr *) type ('item, 'a) t = { merge: 'a -> 'a -> 'a; map: ('item, 'a) PolyMap.t } let create ~cmp ~merge = { merge; map = PolyMap.create ~cmp; } let alias ?debug ~demoted_repr ~new_repr (m : (_,_) t) = { m with map = match PolyMap.find_opt demoted_repr m.map with | No...
35.716981
120
0.642895
aa68624ff8da47f6b2ef71ae91c9cae0c5289f4d
1,388
mli
OCaml
interfaces/4.02/gc.mli
crabtw/stdcompat
667cb7bf93f423e3c7f56b319e9366394d6adc4a
[ "BSD-2-Clause-FreeBSD" ]
23
2017-11-16T10:01:56.000Z
2021-06-23T08:44:44.000Z
interfaces/4.02/gc.mli
crabtw/stdcompat
667cb7bf93f423e3c7f56b319e9366394d6adc4a
[ "BSD-2-Clause-FreeBSD" ]
15
2018-04-21T13:49:52.000Z
2022-02-16T11:19:38.000Z
interfaces/4.02/gc.mli
crabtw/stdcompat
667cb7bf93f423e3c7f56b319e9366394d6adc4a
[ "BSD-2-Clause-FreeBSD" ]
8
2018-04-23T18:10:00.000Z
2021-12-14T14:31:22.000Z
type stat = { minor_words: float ; promoted_words: float ; major_words: float ; minor_collections: int ; major_collections: int ; heap_words: int ; heap_chunks: int ; live_words: int ; live_blocks: int ; free_words: int ; free_blocks: int ; largest_free: int ; fragments: int ; compactions:...
30.844444
72
0.707493
aa77db35d31479d86e9487edf6e6697cec192ac3
2,147
ml
OCaml
gen/driver.ml
gasche/cuite
7589c2a6068d89dcc4d5dab299780d1da555448f
[ "MIT" ]
null
null
null
gen/driver.ml
gasche/cuite
7589c2a6068d89dcc4d5dab299780d1da555448f
[ "MIT" ]
null
null
null
gen/driver.ml
gasche/cuite
7589c2a6068d89dcc4d5dab299780d1da555448f
[ "MIT" ]
null
null
null
open Shared let () = let mlsplit = match Sys.getenv "CUITE_MLSPLIT" with | exception Not_found -> false | "" -> false | _ -> true in with_file "qtLib.ml" @@ fun ml -> ml "type 'a qt = 'a Qt.t"; ml ""; ml "type qRect = Qt.qRect = { rx: int; ry: int; rw: int; rh: int }"; ml "type qRectF = Qt.q...
32.044776
86
0.557056
bced26b3d6a1a7fc980633c32f5d773e9ee164d8
153
ml
OCaml
benchmarks/filter/filter/submissions/sub128.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
5
2019-08-26T05:41:41.000Z
2020-05-03T03:58:50.000Z
benchmarks/filter/filter/submissions/sub128.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
null
null
null
benchmarks/filter/filter/submissions/sub128.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
2
2020-02-06T00:36:38.000Z
2020-07-27T09:53:35.000Z
let rec filter pred lst = match lst with |[] -> [] |a::[] -> if pred a = true then [a] else [] |a::b -> filter pred [a] @ filter pred b;;
21.857143
46
0.496732
aa8f6562899e3a605ffc2ed3091a31e1490bfb86
5,076
ml
OCaml
src/common/lints/lints.ml
ekmixon/flow
5a96aebea6d1173f2fb02dce37ee0d3b337b5aa1
[ "MIT" ]
null
null
null
src/common/lints/lints.ml
ekmixon/flow
5a96aebea6d1173f2fb02dce37ee0d3b337b5aa1
[ "MIT" ]
null
null
null
src/common/lints/lints.ml
ekmixon/flow
5a96aebea6d1173f2fb02dce37ee0d3b337b5aa1
[ "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. *) type sketchy_null_kind = | SketchyNullBool | SketchyNullString | SketchyNullNumber | SketchyNullMixed | SketchyNullEnum...
37.051095
100
0.756501
aa323df4dc78933daa576d95295ef41e0176495b
231
mli
OCaml
libraries/ec2/lib/describeFleetHistory.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
libraries/ec2/lib/describeFleetHistory.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
1
2021-06-22T14:33:23.000Z
2021-06-22T14:33:23.000Z
libraries/ec2/lib/describeFleetHistory.mli
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
open Types type input = DescribeFleetHistoryRequest.t type output = DescribeFleetHistoryResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
33
74
0.761905
aa503351a7d8b0b8bf7dae06cda6a005d5cc6831
495
mli
OCaml
src/dune_rules/cxx_flags.mli
esope/dune
a79a071739b9537da8f9dc236a964793979da849
[ "MIT" ]
null
null
null
src/dune_rules/cxx_flags.mli
esope/dune
a79a071739b9537da8f9dc236a964793979da849
[ "MIT" ]
1
2019-09-17T12:49:47.000Z
2019-09-17T12:49:47.000Z
src/dune_rules/cxx_flags.mli
staronj/dune
cf0ceccef1e177625b9361323bd7a3401a988d45
[ "MIT" ]
null
null
null
(** This module contains a small database of flags that is used when compiling C and C++ stubs. *) open Import type phase = | Compile | Link (** The name of the file created in the .dune folder after calling the C preprocessor *) val preprocessed_filename : string (** [get_flags c_compiler] returns the ...
29.117647
80
0.723232
aa50de3440a24e3502b49cec8970f91a54e28aa8
44,657
ml
OCaml
hphp/hack/src/hhbc/hhbc_hhas.ml
sgolemon/hhvm
240f1370de88926a6c0760cc089b93b84bb0f88d
[ "PHP-3.01", "Zend-2.0" ]
2
2016-12-06T07:37:31.000Z
2017-05-19T17:08:48.000Z
hphp/hack/src/hhbc/hhbc_hhas.ml
sgolemon/hhvm
240f1370de88926a6c0760cc089b93b84bb0f88d
[ "PHP-3.01", "Zend-2.0" ]
1
2020-01-19T19:06:32.000Z
2020-01-19T19:06:32.000Z
hphp/hack/src/hhbc/hhbc_hhas.ml
profclems/hhvm
240f1370de88926a6c0760cc089b93b84bb0f88d
[ "PHP-3.01", "Zend-2.0" ]
2
2017-02-19T16:11:15.000Z
2019-07-18T20:16:53.000Z
(** * Copyright (c) 2017, 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. * *) module B = Buf...
34.48417
87
0.65609
aa923ecddd062c0fc14af46ae8436dd4fe1af189
3,797
ml
OCaml
OIkos/lustrec/optimize_machine.ml
coco-team/Ikos-Api
3a6bc20e5696aacc55d34b8e3e26e8f74a7bcdf1
[ "MIT" ]
1
2016-12-22T00:15:02.000Z
2016-12-22T00:15:02.000Z
OIkos/lustrec/optimize_machine.ml
coco-team/Ikos-Api
3a6bc20e5696aacc55d34b8e3e26e8f74a7bcdf1
[ "MIT" ]
null
null
null
OIkos/lustrec/optimize_machine.ml
coco-team/Ikos-Api
3a6bc20e5696aacc55d34b8e3e26e8f74a7bcdf1
[ "MIT" ]
null
null
null
open LustreSpec open Corelang open Machine_code let rec eliminate elim instr = let e_expr = eliminate_expr elim in match instr with | MLocalAssign (i,v) -> MLocalAssign (i, e_expr v) | MStateAssign (i,v) -> MStateAssign (i, e_expr v) | MReset i -> instr | MStep (il, i, vl) -> MStep(il, i, Li...
33.60177
108
0.662892
aa2f36a5d8394b305d46b99439e8d5028ac0ebd6
1,483
mli
OCaml
coq/ide/wg_Completion.mli
reichel3/TacTok
c344e76263de04311af8a0030c07aec95d87f71c
[ "MIT" ]
7
2020-11-23T02:45:36.000Z
2022-03-18T03:03:33.000Z
coq/ide/wg_Completion.mli
LASER-UMASS/Diva
7dbb532cc6feec1e39c560b30a8e70f2691df365
[ "MIT" ]
4
2021-02-23T03:03:51.000Z
2021-11-13T00:07:38.000Z
coq/ide/wg_Completion.mli
LASER-UMASS/Diva
7dbb532cc6feec1e39c560b30a8e70f2691df365
[ "MIT" ]
2
2021-01-19T17:56:28.000Z
2022-03-28T04:39:41.000Z
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) (* v * INRIA, CNRS and contributors - Copyright 1999-2018 *) (* <O___,, * (see CREDITS file for the list of authors) *) (* \VV/ *********...
40.081081
92
0.553608
44bb2a006afbacd89f1eb4649e951e5260adb7da
4,492
mli
OCaml
src/parser_utils/type_sig/compact_table.mli
ayshiff/flow
887103710b5e5ca5c2acc6af8adbf6d79d9cbc7b
[ "MIT" ]
null
null
null
src/parser_utils/type_sig/compact_table.mli
ayshiff/flow
887103710b5e5ca5c2acc6af8adbf6d79d9cbc7b
[ "MIT" ]
17
2020-10-12T16:16:07.000Z
2021-08-07T04:38:39.000Z
src/parser_utils/type_sig/compact_table.mli
Jankyboy/flow
f9839688acace8af5dbda39d808924347286862d
[ "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. *) (* This module is useful for converting an OCaml data structure into a compact, * table-based representation. This module supports...
34.290076
80
0.686331
bc6699fc76c9f99c1898eb092fe60e5edbcce65b
711
ml
OCaml
examples/low-level/crypto/ml/get_string.ml
jaybosamiya/FStar
b879c339e9c7d6880a0c52667a71b9b1fe8ec235
[ "Apache-2.0" ]
2,231
2015-01-05T02:19:24.000Z
2022-03-30T05:54:05.000Z
examples/low-level/crypto/ml/get_string.ml
shiatsumat/FStar
2a518c125e15eef6a3443cb1d29531411c995069
[ "Apache-2.0" ]
2,151
2015-01-06T05:01:08.000Z
2022-03-31T23:16:08.000Z
examples/low-level/crypto/ml/get_string.ml
shiatsumat/FStar
2a518c125e15eef6a3443cb1d29531411c995069
[ "Apache-2.0" ]
281
2015-02-13T00:14:17.000Z
2022-03-13T12:51:04.000Z
open Printf let generate_string (s:string) : string = let v = ref "" in for i = 0 to String.length s - 1 do if (i mod 8 = 0) && (i <> 0) then v := !v ^ "\n"; v := !v ^ sprintf "0x%02xl; " (Char.code (String.get s i)); done; sprintf "createL [\n%s\n] (* Buffer literal for '%s' *)\n" !v s let _ = le...
30.913043
68
0.616034
bcda0cdfcf515f280feab64393bc74761e81d53d
17,694
mli
OCaml
tezt/lib_tezos/client.mli
zshipko/tezos
c097112b0c0f19d93a8de4cc379cf33de9e07355
[ "MIT" ]
null
null
null
tezt/lib_tezos/client.mli
zshipko/tezos
c097112b0c0f19d93a8de4cc379cf33de9e07355
[ "MIT" ]
null
null
null
tezt/lib_tezos/client.mli
zshipko/tezos
c097112b0c0f19d93a8de4cc379cf33de9e07355
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *) ...
32.7061
158
0.65932
aa1c2943dbcb48732451f9275b520a4fb1af4ac4
18,507
ml
OCaml
server/dns_trie.ml
reynir/ocaml-dns
29edbbe6049e197bffddb8919f59aef5ca2264e1
[ "BSD-2-Clause" ]
null
null
null
server/dns_trie.ml
reynir/ocaml-dns
29edbbe6049e197bffddb8919f59aef5ca2264e1
[ "BSD-2-Clause" ]
null
null
null
server/dns_trie.ml
reynir/ocaml-dns
29edbbe6049e197bffddb8919f59aef5ca2264e1
[ "BSD-2-Clause" ]
null
null
null
(* (c) 2017, 2018 Hannes Mehnert, all rights reserved *) open Dns module O = struct type t = string let compare = Domain_name.compare_label end module M = Map.Make(O) type t = N of t M.t * Rr_map.t let empty = N (M.empty, Rr_map.empty) let is_empty (N (sub, map)) = M.is_empty sub && Rr_map.is_empty map let bi...
35.727799
115
0.560329
bc846c4b5c57e1facda55523f57e742d15a12209
12,098
ml
OCaml
src/optimizer/dfwdsubst.ml
chrisvrose/deputy-old-mirror
657350639cfd358ff14090d31813473885c44c7e
[ "BSD-3-Clause" ]
null
null
null
src/optimizer/dfwdsubst.ml
chrisvrose/deputy-old-mirror
657350639cfd358ff14090d31813473885c44c7e
[ "BSD-3-Clause" ]
3
2016-01-29T21:16:41.000Z
2016-01-31T09:16:57.000Z
src/optimizer/dfwdsubst.ml
chrisvrose/deputy-old-mirror
657350639cfd358ff14090d31813473885c44c7e
[ "BSD-3-Clause" ]
1
2020-08-16T06:03:00.000Z
2020-08-16T06:03:00.000Z
(* * * Copyright (c) 2004, * Jeremy Condit <jcondit@cs.berkeley.edu> * George C. Necula <necula@cs.berkeley.edu> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Re...
29.945545
79
0.644404
bc1a8ee69c698d52701b286bcd7bbf0b3c9ad783
350,079
ml
OCaml
src/typing/statement.ml
w01fgang/flow
a301e4d995d8c033e9aed05d24d943caf43b83b1
[ "MIT" ]
null
null
null
src/typing/statement.ml
w01fgang/flow
a301e4d995d8c033e9aed05d24d943caf43b83b1
[ "MIT" ]
1
2020-06-26T11:29:23.000Z
2020-06-26T11:29:23.000Z
src/typing/statement.ml
w01fgang/flow
a301e4d995d8c033e9aed05d24d943caf43b83b1
[ "MIT" ]
1
2021-01-06T10:57:53.000Z
2021-01-06T10:57:53.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. *) module Ast = Flow_ast module Tast_utils = Typed_ast_utils (* This module contains the traversal functions which set up subtyping ...
40.964077
110
0.590944
bce3ba296761491f72c0b3c3b91571d46233bdce
5,874
ml
OCaml
duniverse/core_kernel/src/hashtbl.ml
pitag-ha/ppx_universe
4d7dab337767961e346e4bfe1596f38370581dee
[ "MIT" ]
2
2022-03-03T01:38:24.000Z
2022-03-03T01:54:36.000Z
duniverse/core_kernel/src/hashtbl.ml
pitag-ha/ppx_universe
4d7dab337767961e346e4bfe1596f38370581dee
[ "MIT" ]
1
2021-11-08T19:54:28.000Z
2021-11-08T19:54:28.000Z
duniverse/core_kernel/src/hashtbl.ml
pitag-ha/ppx_universe
4d7dab337767961e346e4bfe1596f38370581dee
[ "MIT" ]
1
2022-03-02T19:35:36.000Z
2022-03-02T19:35:36.000Z
open! Import open Hashtbl_intf module Avltree = Avltree module Binable = Binable0 module Hashable = Hashtbl_intf.Hashable module Merge_into_action = Hashtbl_intf.Merge_into_action module List = List0 let failwiths = Error.failwiths module Creators = Hashtbl.Creators include ( Hashtbl : sig type ('a, 'b) t = ...
26.459459
88
0.630065
bcef912dd183a13ce11756a1f97d7f259a35421c
2,554
ml
OCaml
02-exercises/20-anonymous_functions/problem.ml
gainhad/learn-ocaml-workshop
5be3804726a4b261b515b6c8088e9b20ea693662
[ "Apache-2.0" ]
null
null
null
02-exercises/20-anonymous_functions/problem.ml
gainhad/learn-ocaml-workshop
5be3804726a4b261b515b6c8088e9b20ea693662
[ "Apache-2.0" ]
null
null
null
02-exercises/20-anonymous_functions/problem.ml
gainhad/learn-ocaml-workshop
5be3804726a4b261b515b6c8088e9b20ea693662
[ "Apache-2.0" ]
null
null
null
open! Base (* Recall: In OCaml, functions are values, so we can pass them in as arguments to other functions (higher order functions). As we've seen before, in order to represent a function in a signature, we wrap its type in parenthesis, with arrows separating arguments. Remember [add1] from exercise 4?...
29.697674
80
0.675411
bce8df1d2af2f61b70eb486b26ee64596e90e128
574
ml
OCaml
Benchmarks_with_Functional_Bugs/OCaml/Problem2/bugs/bug_5/bug.ml
kupl/starlab-benchmarks
1efc9efffad1b797f6a795da7e032041e230d900
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/I/lambda/sub70.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/I/lambda/sub70.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
2
2020-11-26T13:27:14.000Z
2022-03-20T02:12:55.000Z
type lambda = V of var | P of var * lambda | C of lambda * lambda and var = string let rec ch : lambda*var -> bool =fun(e,a) -> match e with V b -> if a=b then true else false |P(b,e) -> (match e with V c -> if (c=b||c=a) then true else false |P(c,e) -> ch(e,c)||ch(e,b)||ch(e...
27.333333
54
0.501742
afb9e037870285694ea16be2ed0785cc64d57989
2,139
mli
OCaml
bin/common.mli
progman1/dune
e937feef4fb03d83bd551489420a557a5a6fc1c0
[ "MIT" ]
null
null
null
bin/common.mli
progman1/dune
e937feef4fb03d83bd551489420a557a5a6fc1c0
[ "MIT" ]
null
null
null
bin/common.mli
progman1/dune
e937feef4fb03d83bd551489420a557a5a6fc1c0
[ "MIT" ]
null
null
null
open Stdune type t val workspace_file : t -> Arg.Path.t option val x : t -> Dune.Context_name.t option val profile : t -> Dune.Profile.t option val capture_outputs : t -> bool val root : t -> Workspace_root.t val config : t -> Dune.Config.t module Only_packages : sig type t = { names : Dune.Package.Name.S...
28.52
79
0.698457
8afc3d38142b74ab2b632c5a7e2ebd5107fc4ad4
24,060
mli
OCaml
doc/stdlib-cmi/scanf.mli
BuckleTypes/bs-containers
dfd1360dc74ede57c09e9f9d837ce59285af6fd2
[ "BSD-2-Clause" ]
17
2017-03-21T21:10:57.000Z
2017-06-25T19:42:29.000Z
doc/stdlib-cmi/scanf.mli
BuckleTypes/bs-containers
dfd1360dc74ede57c09e9f9d837ce59285af6fd2
[ "BSD-2-Clause" ]
30
2017-03-21T20:30:00.000Z
2017-06-11T18:14:17.000Z
doc/stdlib-cmi/scanf.mli
reasonml-community/bs-containers
dfd1360dc74ede57c09e9f9d837ce59285af6fd2
[ "BSD-2-Clause" ]
5
2017-03-21T20:05:40.000Z
2017-04-28T20:43:58.000Z
(***********************************************************************) (* *) (* OCaml *) (* *) (* Pierre Wei...
45.140713
79
0.676143
bcac888e22f1d2bbb972e851c1ea10428a98954d
391
mli
OCaml
compiler/lib/Ast/Ast.mli
nilern/mulled
45df2af868542be92202ea0aca2c8dc489418d2b
[ "BSD-3-Clause" ]
6
2018-11-27T02:03:49.000Z
2020-06-16T11:21:18.000Z
compiler/lib/Ast/Ast.mli
nilern/mulled
45df2af868542be92202ea0aca2c8dc489418d2b
[ "BSD-3-Clause" ]
65
2019-10-17T14:56:37.000Z
2020-08-31T18:54:20.000Z
compiler/lib/Ast/Ast.mli
broom-lang/broom
c91b155e4385f498112afac5bc26f0e33e87459e
[ "BSD-3-Clause" ]
1
2019-10-17T16:23:27.000Z
2019-10-17T16:23:27.000Z
type 'a with_pos = 'a Util.with_pos module Primop : AstSigs.PRIMOP module rec Expr : (AstSigs.EXPR with type primop = Primop.t with type stmt = Stmt.t with type decl = Decl.t) and Stmt : (AstSigs.STMT with type expr = Expr.t) and Decl : (AstSigs.DECL with type expr = Expr.t) module Program : As...
19.55
35
0.672634
aa1a538b336751a0421ba45e29a68b0cc144dd5d
3,584
ml
OCaml
fold_lib/fold.ml
rahulmutt/snarky
22fe78d768c012c7ab229ff9eb95b87c7873f2bc
[ "MIT" ]
null
null
null
fold_lib/fold.ml
rahulmutt/snarky
22fe78d768c012c7ab229ff9eb95b87c7873f2bc
[ "MIT" ]
null
null
null
fold_lib/fold.ml
rahulmutt/snarky
22fe78d768c012c7ab229ff9eb95b87c7873f2bc
[ "MIT" ]
null
null
null
open Core_kernel type ('a, 's) fold = init:'s -> f:('s -> 'a -> 's) -> 's type 'a t = {fold: 's. ('a, 's) fold} let map (t : 'a t) ~(f : 'a -> 'b) : 'b t = { fold= (fun ~init ~f:update -> t.fold ~init ~f:(fun acc x -> update acc (f x))) } let concat (t : 'a t t) : 'a t = { fold= (fun ~init ~f -> ...
29.866667
78
0.501395
aa88fd3e3456c21523a174465633802467244a1e
2,743
ml
OCaml
core/test/src/test_map.ml
Gopiandcode/core_kernel
fab2048ede720205e65f1831d07e2b28524166c7
[ "MIT" ]
834
2015-01-02T03:14:35.000Z
2022-03-28T05:17:24.000Z
core/test/src/test_map.ml
Gopiandcode/core_kernel
fab2048ede720205e65f1831d07e2b28524166c7
[ "MIT" ]
99
2015-01-03T09:30:25.000Z
2022-02-23T02:40:57.000Z
core/test/src/test_map.ml
Gopiandcode/core_kernel
fab2048ede720205e65f1831d07e2b28524166c7
[ "MIT" ]
100
2015-02-01T10:54:19.000Z
2022-03-15T18:23:22.000Z
open! Import open! Core open! Map let%expect_test "Symmetric_diff_element.map_data" = let print x = print_s [%sexp (x : (string, int) Symmetric_diff_element.t)] in let f x = x + 1 in print (Symmetric_diff_element.map_data ("foo", `Left 1) ~f); [%expect {| (foo (Left 2)) |}]; print (Symmetric_diff_element.map...
31.170455
90
0.580022
aa6be7bf135b886dbf059a6d19f43bab8b5bb9ea
612
ml
OCaml
ocaml/coq.ml
roglo/puiseuxth
7caa78c5c969e3d881b06f6dbc3b3f9da7545471
[ "CECILL-B" ]
3
2017-05-02T16:04:21.000Z
2017-10-20T17:13:34.000Z
ocaml/coq.ml
roglo/puiseuxth
7caa78c5c969e3d881b06f6dbc3b3f9da7545471
[ "CECILL-B" ]
null
null
null
ocaml/coq.ml
roglo/puiseuxth
7caa78c5c969e3d881b06f6dbc3b3f9da7545471
[ "CECILL-B" ]
null
null
null
(* $Id: coq.ml,v 1.4 2013-07-02 02:30:12 deraugla Exp $ *) open Pnums; type comparison = [ Eq | Lt | Gt ]; value qcompare q₁ q₂ = let c = Q.compare q₁ q₂ in if c < 0 then Lt else if c = 0 then Eq else Gt ; value zcompare x₁ x₂ = let c = I.compare x₁ x₂ in if c < 0 then Lt else if c = 0 then Eq else ...
16.540541
58
0.602941
aa8d7970ab795efdd43dba122509363f38c17b40
1,164
ml
OCaml
lib/save_description.ml
npm-opam/jenga
a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44
[ "Apache-2.0" ]
null
null
null
lib/save_description.ml
npm-opam/jenga
a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44
[ "Apache-2.0" ]
null
null
null
lib/save_description.ml
npm-opam/jenga
a2356d38bbe3d5be9cbcd4dae4d5a998521f4f44
[ "Apache-2.0" ]
null
null
null
open Core.Std open Async.Std type t = { contents : string; target : Path.t; chmod_x : bool; } [@@deriving sexp_of] let create ~contents ~target ~chmod_x = { contents; target; chmod_x; } let escape_backslashes_and_newlines s = String.concat_map s ~f:(function | '\n' -> "\\n" | '\\' -> "\\\\" | c -> Str...
30.631579
90
0.666667
bcdbb99a95f132a5bd7a8c71cae0b161e8d04df0
18,646
ml
OCaml
src/proto_alpha/lib_protocol/script_ir_annot.ml
daachi/tezos
00118e91ff13bb54ff658907ed8ffc1c4d3d2266
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/script_ir_annot.ml
daachi/tezos
00118e91ff13bb54ff658907ed8ffc1c4d3d2266
[ "MIT" ]
null
null
null
src/proto_alpha/lib_protocol/script_ir_annot.ml
daachi/tezos
00118e91ff13bb54ff658907ed8ffc1c4d3d2266
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
36.489237
115
0.624531
aa578ee63b34fef3ef624ff121df0914d36e1bb0
2,446
ml
OCaml
src/core/Config.ml
reynir/calculon
a49a532ae48f69e0fa3562bddf6f822d28ec9632
[ "MIT" ]
null
null
null
src/core/Config.ml
reynir/calculon
a49a532ae48f69e0fa3562bddf6f822d28ec9632
[ "MIT" ]
null
null
null
src/core/Config.ml
reynir/calculon
a49a532ae48f69e0fa3562bddf6f822d28ec9632
[ "MIT" ]
null
null
null
open Prelude type irc_log = [ `None | `Chan of Lwt_io.output_channel | `Custom of (string -> unit Lwt.t) ] type t = { server : string; port : int; username : string; realname : string; nick : string; password : string option; tls: bool; tls_cert : Tls.Config.certchain option; channel : strin...
30.575
81
0.618152
aa4370141f68f5be42836246be3906fbeb7c4c90
2,212
mli
OCaml
ocaml-sources/lambda/translprim.mli
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T15:31:36.000Z
2021-03-05T16:01:39.000Z
ocaml-sources/lambda/translprim.mli
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
2
2021-03-03T16:08:23.000Z
2021-03-03T19:31:03.000Z
ocaml-sources/lambda/translprim.mli
Naereen/ocaml-mots-cles-en-francais
77b1d41e3277d0356e676330f2284b8c01ba14ee
[ "MIT" ]
null
null
null
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
40.218182
76
0.494123
aa3bc85557bfe45d9f64a3bb84b7fdb3bb3cd70a
12,828
ml
OCaml
src/ocaml/parsing/405/location.ml
hcarty/merlin
f64516562d582885a4e5451ed9eab858dc4ee224
[ "MIT" ]
null
null
null
src/ocaml/parsing/405/location.ml
hcarty/merlin
f64516562d582885a4e5451ed9eab858dc4ee224
[ "MIT" ]
null
null
null
src/ocaml/parsing/405/location.ml
hcarty/merlin
f64516562d582885a4e5451ed9eab858dc4ee224
[ "MIT" ]
null
null
null
(**************************************************************************) (* *) (* OCaml *) (* *) (* ...
30.985507
88
0.615217
bcfc1b52a03a3cb227191a4f1f2055ff64efa85b
1,538
ml
OCaml
APS1/ast.ml
walidsadat/APS
68e4473c4d74c15746ea758808c6edce9f492cd6
[ "MIT" ]
null
null
null
APS1/ast.ml
walidsadat/APS
68e4473c4d74c15746ea758808c6edce9f492cd6
[ "MIT" ]
null
null
null
APS1/ast.ml
walidsadat/APS
68e4473c4d74c15746ea758808c6edce9f492cd6
[ "MIT" ]
null
null
null
(* ========================================================================== *) (* == UPMC/master/info/4I506 -- Janvier 2016/2017/2018 == *) (* == SU/FSI/master/info/MU4IN503 -- Janvier 2020/2021 == *) (* == Analyse des programmes et sémantiques ==...
27.963636
80
0.447984
aa37f726f46cb191bb871ceb72175932b5eb92bf
2,936
ml
OCaml
duniverse/base/test/test_int64_pow2.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
1
2019-09-11T00:04:16.000Z
2019-09-11T00:04:16.000Z
duniverse/base/test/test_int64_pow2.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
duniverse/base/test/test_int64_pow2.ml
mseri/owl_tutorials
d41b92d68fa98fc03742edbd1ca5105d6e0d53c9
[ "MIT" ]
null
null
null
open! Import open! Int64 let examples = [ -1L ; 0L ; 1L ; 2L ; 3L ; 4L ; 5L ; 7L ; 8L ; 9L ; 63L ; 64L ; 65L ] ;; let examples_64_bit = [ min_value ; succ min_value ; pred max_value ; max_value ] ;; let print_for ints f = List.iter ints ~f:(fun i -> print_s [%message "...
23.677419
75
0.566757
aa68940de4accd777c190b0564b1a19e52c3ae21
295
ml
OCaml
data/sp14/clusters/0142.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/sp14_min/clusters/0142.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/sp14/clusters/0142.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
CaseG VarG [(ConPatG Nothing,Nothing,ListG []),(ConsPatG EmptyPatG EmptyPatG,Nothing,ListG [EmptyG]),(ConsPatG EmptyPatG EmptyPatG,Nothing,ListG [EmptyG,EmptyG,EmptyG,EmptyG])] match l with | [] -> [] | x :: [] -> [x] | head :: tail :: third :: fourth :: fifth -> [fourth ; third ; tail ; head]
49.166667
176
0.664407
bcf8db20a1848cd2c477cfa79217b59c2f67d509
2,827
ml
OCaml
src/test/replaceable_id_tests.ml
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
null
null
null
src/test/replaceable_id_tests.ml
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
null
null
null
src/test/replaceable_id_tests.ml
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
null
null
null
module Var = Simple_utils.Var open Test_helpers let get_program = get_program "./contracts/replaceable_id.ligo" (Contract (Stage_common.Var.of_input_var "main")) let compile_main ~raise ~add_warning () = Test_helpers.compile_main ~raise ~add_warning "./contracts/replaceable_id.ligo" () open Ast_imperative let emp...
39.263889
113
0.737177