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
aae040e17f7144e7741263ac5c49065bfd86e066
33,356
ml
OCaml
otherlibs/stdune/path.ml
yannl35133/dune
6005ed998fc5065e1fcb5f8885039d6f17f35a18
[ "MIT" ]
null
null
null
otherlibs/stdune/path.ml
yannl35133/dune
6005ed998fc5065e1fcb5f8885039d6f17f35a18
[ "MIT" ]
null
null
null
otherlibs/stdune/path.ml
yannl35133/dune
6005ed998fc5065e1fcb5f8885039d6f17f35a18
[ "MIT" ]
null
null
null
module Sys = Stdlib.Sys let basename_opt ~is_root ~basename t = if is_root t then None else Some (basename t) let is_dir_sep = if Sys.win32 || Sys.cygwin then fun c -> c = '/' || c = '\\' || c = ':' else fun c -> c = '/' let explode_path = let rec start acc path i = if i < 0 then ...
25.897516
81
0.640005
aa8da328258e49b47614b81ee49b9f9bfdeb4592
2,058
ml
OCaml
src/proto_005_PsBabyM1/lib_protocol/tez_repr.ml
blockchain-app12/cuprumMainnet
089174cfc4f8ebce45e61107d090a7933b8dc9cd
[ "MIT" ]
8
2021-11-02T13:06:58.000Z
2021-11-18T19:07:33.000Z
src/proto_005_PsBabyM1/lib_protocol/tez_repr.ml
blockchain-app12/cuprumMainnet
089174cfc4f8ebce45e61107d090a7933b8dc9cd
[ "MIT" ]
14
2020-05-07T15:51:28.000Z
2022-02-06T10:11:51.000Z
src/proto_005_PsBabyM1/lib_protocol/tez_repr.ml
blockchain-app12/cuprumMainnet
089174cfc4f8ebce45e61107d090a7933b8dc9cd
[ "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> *) ...
60.529412
79
0.481535
179d7d9368d69f6060c68597bb59bf311c830206
386
ml
OCaml
test/terminating/backtrace_in_handler.ml
janestreet/ocaml-probes
5d2298354818c7a4dd184525470274b94b5016c6
[ "MIT" ]
3
2022-03-30T17:16:28.000Z
2022-03-31T08:06:12.000Z
test/terminating/backtrace_in_handler.ml
janestreet/ocaml-probes
5d2298354818c7a4dd184525470274b94b5016c6
[ "MIT" ]
null
null
null
test/terminating/backtrace_in_handler.ml
janestreet/ocaml-probes
5d2298354818c7a4dd184525470274b94b5016c6
[ "MIT" ]
1
2020-03-23T10:35:29.000Z
2020-03-23T10:35:29.000Z
let bt title = (* Inlining and dbg info in the trace depends on the optimization settings such as flambda, so we don't print the backtrace. *) let len = Printexc.(get_callstack 9999 |> raw_backtrace_length) in Printf.printf "%s is backtrace length >= 2? %b\n" title (len >= 2) let () = ...
32.166667
76
0.629534
17c5d2e98ad2a4a6d54058c5d96ea4024677c966
8,984
ml
OCaml
src/generators/jvm/jvmDebug.ml
Aurel300/haxe
fbeac98f865bab5a21158117e1aad3b0bba77570
[ "MIT" ]
null
null
null
src/generators/jvm/jvmDebug.ml
Aurel300/haxe
fbeac98f865bab5a21158117e1aad3b0bba77570
[ "MIT" ]
null
null
null
src/generators/jvm/jvmDebug.ml
Aurel300/haxe
fbeac98f865bab5a21158117e1aad3b0bba77570
[ "MIT" ]
1
2021-09-28T15:13:28.000Z
2021-09-28T15:13:28.000Z
(* The Haxe Compiler Copyright (C) 2005-2019 Haxe Foundation 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 Foundation; either version 2 of the License, or (at your option) any later version. This prog...
31.97153
110
0.612979
aab403041acccfd43ebe3ffec703db5bedff85be
2,111
ml
OCaml
libraries/ec2/lib/registerInstanceEventNotificationAttributes.ml
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
libraries/ec2/lib/registerInstanceEventNotificationAttributes.ml
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
1
2021-06-22T14:33:23.000Z
2021-06-22T14:33:23.000Z
libraries/ec2/lib/registerInstanceEventNotificationAttributes.ml
Nymphium/ocaml-aws
91567339845eedfe5dabbcfd229df3b38889a09e
[ "BSD-3-Clause" ]
null
null
null
open Types open Aws type input = RegisterInstanceEventNotificationAttributesRequest.t type output = RegisterInstanceEventNotificationAttributesResult.t type error = Errors_internal.t let service = "ec2" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.o...
31.984848
123
0.594979
176612893b722adf9c76e5e6d3790862891c5163
2,825
ml
OCaml
data/sp14/3536.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/sp14/3536.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/sp14/3536.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.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 | Half of expr | ThreeAve of expr* expr* expr;; let buildX () = VarX;; let buildY () = VarY;; let rec build (rand,depth) = match rand with | 0 -> let...
18.108974
75
0.520354
17bc7e5b03259f362aaf70ed09955b25ecb1efad
4,364
ml
OCaml
src/interpreter/arithmetics.ml
poechsel/prequel
777c26ecf91c9d6d6cff4f3949b398eed039f80d
[ "MIT" ]
3
2018-11-28T13:53:08.000Z
2020-08-12T18:56:45.000Z
src/interpreter/arithmetics.ml
poechsel/prequel
777c26ecf91c9d6d6cff4f3949b398eed039f80d
[ "MIT" ]
null
null
null
src/interpreter/arithmetics.ml
poechsel/prequel
777c26ecf91c9d6d6cff4f3949b398eed039f80d
[ "MIT" ]
null
null
null
open Ast open AlgebraTypes let comp_atom a b = if a = b then 0 else if a < b then -1 else 1 module Env = struct type t = (string * string) list let rec find env x = let rec find env' x = match env' with | [] -> failwith (snd x) | (a, b)::tl when x=a -> b | _::tl -> find tl x...
24.655367
70
0.492667
173f9f758179073988f8339ab613a59a9c6d8411
4,783
mli
OCaml
datatypes/decimal.mli
tsuyoshi2/Galax
8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8
[ "LPL-1.02" ]
3
2016-05-03T23:32:16.000Z
2019-07-04T10:29:09.000Z
datatypes/decimal.mli
tsuyoshi2/Galax
8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8
[ "LPL-1.02" ]
1
2016-05-10T09:10:16.000Z
2016-05-10T09:10:16.000Z
datatypes/decimal.mli
tsuyoshi2/Galax
8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8
[ "LPL-1.02" ]
2
2019-05-08T16:29:48.000Z
2020-02-20T21:44:11.000Z
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
38.886179
73
0.566799
17bef4e262e37cf4a80b7ffef544eb33272f02bb
2,135
ml
OCaml
data/derived/comb/progs/unify/prog3343.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/prog3343.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog3343.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 | AbsThresh of expr* expr* expr | ModThresh of expr* expr* expr;; let buildAbsThresh (e1,e2,e3) = AbsThresh (e1, e2, e3);; let buildAverage (e1,e2) = Average (e...
27.025316
76
0.418267
17d21d57056c209793d6798ec1caaeb7789cb99e
11,868
ml
OCaml
infer/src/nullsafe/ErrorRenderingUtils.ml
octomarat/infer
aa6fe7963cdb6b842adcf7241f5383c30cb1a835
[ "MIT" ]
1
2020-07-16T19:38:04.000Z
2020-07-16T19:38:04.000Z
infer/src/nullsafe/ErrorRenderingUtils.ml
octomarat/infer
aa6fe7963cdb6b842adcf7241f5383c30cb1a835
[ "MIT" ]
8
2021-03-01T21:21:21.000Z
2022-02-27T09:02:52.000Z
infer/src/nullsafe/ErrorRenderingUtils.ml
octomarat/infer
aa6fe7963cdb6b842adcf7241f5383c30cb1a835
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open! IStd module F = Format module UserFriendlyNullable = struct type t = ExplainablyNullable of explainably_nullable_kind | Un...
41.936396
122
0.711156
17b431ce93d4f9e951a4a76898cbee61242cac21
5,848
ml
OCaml
src_plugins/ppx_deriving_eq.ml
vogler/ppx_deriving
3eeacdfdd4c5de6cf162def9a55fabce496c394b
[ "MIT" ]
null
null
null
src_plugins/ppx_deriving_eq.ml
vogler/ppx_deriving
3eeacdfdd4c5de6cf162def9a55fabce496c394b
[ "MIT" ]
null
null
null
src_plugins/ppx_deriving_eq.ml
vogler/ppx_deriving
3eeacdfdd4c5de6cf162def9a55fabce496c394b
[ "MIT" ]
null
null
null
open Longident open Location open Asttypes open Parsetree open Ast_helper open Ast_convenience let deriver = "eq" let raise_errorf = Ppx_deriving.raise_errorf let parse_options options = options |> List.iter (fun (name, expr) -> match name with | _ -> raise_errorf ~loc:expr.pexp_loc "%s does not support opt...
42.686131
96
0.579856
17892d35ca53754c29abbf8b4a737b860fb60aa8
1,430
ml
OCaml
tests/success.ml
orbitz/gen_server
868d5606a96c8cbd6d4da3e4757f309198a6545c
[ "BSD-3-Clause" ]
5
2015-06-28T15:30:58.000Z
2021-09-15T02:10:49.000Z
tests/success.ml
orbitz/gen_server
868d5606a96c8cbd6d4da3e4757f309198a6545c
[ "BSD-3-Clause" ]
1
2020-10-29T00:09:13.000Z
2020-10-29T00:09:13.000Z
tests/success.ml
orbitz/gen_server
868d5606a96c8cbd6d4da3e4757f309198a6545c
[ "BSD-3-Clause" ]
1
2021-09-15T02:10:51.000Z
2021-09-15T02:10:51.000Z
open Core.Std open Async.Std module Resp = Gen_server.Response module Msg = struct type t = | Inc of int | Get of int Ivar.t end let init _self init = Deferred.return (Ok init) let handle_call _self state = function | Msg.Inc i -> Deferred.return (Resp.Ok (state + i)) | Msg.Get i -> begin Iv...
20.724638
58
0.590909
177556ea01cad78203d53007201e484f5062a0bf
37,259
ml
OCaml
vendors/tezos-modded/src/proto_alpha/lib_client/test/test_michelson_v1_macros.ml
web-vertalo/ligo
153bf691992580f4d163f4e8129292f7759efd5b
[ "MIT" ]
null
null
null
vendors/tezos-modded/src/proto_alpha/lib_client/test/test_michelson_v1_macros.ml
web-vertalo/ligo
153bf691992580f4d163f4e8129292f7759efd5b
[ "MIT" ]
null
null
null
vendors/tezos-modded/src/proto_alpha/lib_client/test/test_michelson_v1_macros.ml
web-vertalo/ligo
153bf691992580f4d163f4e8129292f7759efd5b
[ "MIT" ]
1
2021-08-18T16:15:52.000Z
2021-08-18T16:15:52.000Z
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
40.854167
100
0.478488
aa60f733a365ab2b41286c7429c3b48bf0592738
22,383
ml
OCaml
src/odoc.ml
kit-ty-kate/dune
7b37f89424e39d212f8efca29e38f9895031d5b7
[ "MIT" ]
null
null
null
src/odoc.ml
kit-ty-kate/dune
7b37f89424e39d212f8efca29e38f9895031d5b7
[ "MIT" ]
null
null
null
src/odoc.ml
kit-ty-kate/dune
7b37f89424e39d212f8efca29e38f9895031d5b7
[ "MIT" ]
null
null
null
open! Stdune open Import open Dune_file open Build.O module SC = Super_context let (++) = Path.Build.relative module Scope_key : sig val of_string : Super_context.t -> string -> Lib_name.t * Lib.DB.t val to_string : Lib_name.t -> Dune_project.t -> string end = struct let of_string sctx s = match String.rs...
31.217573
80
0.631595
17a8c91a9ae7f385deb0a095a1a1e7950b2ffde6
8,026
ml
OCaml
src/utils/sexp.ml
pereb4ik/merlin
f3565d0ef89cf8df9bc3f10a15dc12069658f45b
[ "MIT" ]
1,031
2016-12-16T19:17:17.000Z
2022-03-24T06:30:52.000Z
src/utils/sexp.ml
pereb4ik/merlin
f3565d0ef89cf8df9bc3f10a15dc12069658f45b
[ "MIT" ]
754
2016-12-16T14:01:33.000Z
2022-03-31T13:21:16.000Z
src/utils/sexp.ml
pereb4ik/merlin
f3565d0ef89cf8df9bc3f10a15dc12069658f45b
[ "MIT" ]
177
2017-01-04T17:35:53.000Z
2022-02-18T02:54:14.000Z
type t = | Cons of t * t | Sym of string | String of string | Int of int | Float of float let nil = Sym "nil" let escaped str = let len = String.length str in let extra_chars = ref 0 in for i = 0 to len - 1 do match str.[i] with | '\\' | '"' -> incr extra_chars | _ -> () done; ...
25.56051
90
0.527037
17ac19a394011fd594bdf3fa963915c61e14d500
7,543
mli
OCaml
libraries/s3/lib/uploadPartCopy.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
1
2020-05-21T19:12:04.000Z
2020-05-21T19:12:04.000Z
libraries/s3/lib/uploadPartCopy.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
libraries/s3/lib/uploadPartCopy.mli
anmonteiro/ocaml-aws
81cc543a76731177f6d1be8953537297212030d8
[ "BSD-3-Clause" ]
null
null
null
(** "<p>Uploads a part by copying data from an existing object as data source. You specify the data source by adding the request header <code>x-amz-copy-source</code> in your request and a byte range by adding the request header <code>x-amz-copy-source-range</code> in your request. </p> <p>The minimum allowable part si...
130.051724
5,196
0.68262
aa31d41fe4eb44875863980427d7980176333beb
591
ml
OCaml
src/ocaml-3.12.0/testsuite/tests/tool-ocaml/t210-setfield0.ml
mzp/coq-for-ipad
4fb3711723e2581a170ffd734e936f210086396e
[ "MIT" ]
1
2015-01-27T00:11:26.000Z
2015-01-27T00:11:26.000Z
src/ocaml-3.12.0/testsuite/tests/tool-ocaml/t210-setfield0.ml
mzp/coq-for-ipad
4fb3711723e2581a170ffd734e936f210086396e
[ "MIT" ]
null
null
null
src/ocaml-3.12.0/testsuite/tests/tool-ocaml/t210-setfield0.ml
mzp/coq-for-ipad
4fb3711723e2581a170ffd734e936f210086396e
[ "MIT" ]
null
null
null
open Lib;; type t = { mutable a : int; };; let x = {a = 7} in x.a <- 11; if x.a <> 11 then raise Not_found; x ;; (** 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 SETGLOBAL Lib 9 CONSTINT 7 11 MAKEBLOCK1 0 13 PUSHCONSTINT 11 15 PUSHACC1 16 SETF...
15.972973
34
0.527919
17d3e5ba5676145ca541d92e9cd879d28cd4db3f
1,791
ml
OCaml
libraries/elasticache/lib/batchApplyUpdateAction.ml
UnrealAkama/ocaml-aws
6947ff1acc4c911702d25b462bb6640cd70997d4
[ "BSD-3-Clause" ]
null
null
null
libraries/elasticache/lib/batchApplyUpdateAction.ml
UnrealAkama/ocaml-aws
6947ff1acc4c911702d25b462bb6640cd70997d4
[ "BSD-3-Clause" ]
null
null
null
libraries/elasticache/lib/batchApplyUpdateAction.ml
UnrealAkama/ocaml-aws
6947ff1acc4c911702d25b462bb6640cd70997d4
[ "BSD-3-Clause" ]
null
null
null
open Types open Aws type input = BatchApplyUpdateActionMessage.t type output = UpdateActionResultsMessage.t type error = Errors_internal.t let service = "elasticache" let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)...
27.553846
87
0.620324
17a9814813d4617a6240e7f5103977364f31f1ee
85
ml
OCaml
src_test/test_tildelink.ml
protocolclub/tildelink
8b82381bfa2f75756cd02cd991294684c629369a
[ "MIT" ]
1
2018-04-02T11:23:22.000Z
2018-04-02T11:23:22.000Z
src_test/test_tildelink.ml
protocolclub/tildelink
8b82381bfa2f75756cd02cd991294684c629369a
[ "MIT" ]
null
null
null
src_test/test_tildelink.ml
protocolclub/tildelink
8b82381bfa2f75756cd02cd991294684c629369a
[ "MIT" ]
null
null
null
open OUnit2 let suite = "Test tildelink" >::: [ ] let _ = run_test_tt_main suite
12.142857
35
0.658824
17d375e89385cfb45b8b98cb3671b4f06e5f3bd1
2,166
ml
OCaml
data/fa15_min/0776.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/0776.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/0776.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 if n = 1 then [x] else [x] @ (clone x (n - 1));; let padZero l1 l2 = let n = (List.length l1) - (List.length l2) in if n < 0 then (((clone 0 (- n)) @ l1), l2) else (l1, ((clone 0 n) @ l2));; let rec removeZero l = match l with | [] -> [] | h::t -> if h = 0 then remo...
24.337079
79
0.507387
17a4b2cb04c9c085cbfdbd16080d19b97bc0cafa
114
ml
OCaml
benchmarks/sigma/sigma1/submissions/sub453.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
5
2019-08-26T05:41:41.000Z
2020-05-03T03:58:50.000Z
benchmarks/sigma/sigma1/submissions/sub453.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
null
null
null
benchmarks/sigma/sigma1/submissions/sub453.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
2
2020-02-06T00:36:38.000Z
2020-07-27T09:53:35.000Z
let rec sigma ((a : int), (b : int),(f: (int -> int))): int = if a > b then 0 else f a + sigma (a+1, b, f) ;;
28.5
61
0.464912
179a7da4c4b8fd2b46e1dec6cd82725e21714957
1,848
ml
OCaml
lib/util.ml
hannesm/awa-ssh
562d0a34478b25a740d79cd64295affd77fc7f3e
[ "0BSD" ]
null
null
null
lib/util.ml
hannesm/awa-ssh
562d0a34478b25a740d79cd64295affd77fc7f3e
[ "0BSD" ]
null
null
null
lib/util.ml
hannesm/awa-ssh
562d0a34478b25a740d79cd64295affd77fc7f3e
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2017 Christiano F. Haesbaert <haesbaert@haesbaert.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 PROV...
31.862069
75
0.691017
175ae1fa789365fbda0d6d067a4b833b2702f1f4
120
ml
OCaml
data/derived/comb/progs/unify/prog2353.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/prog2353.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
data/derived/sp14/progs/unify/prog2353.ml
ucsd-progsys/yunounderstand-data
4321f31638d3d8e8e9710dcf6ddb32929ab649bf
[ "CC0-1.0" ]
null
null
null
let firstF x = x + x;; let g firstF secondF = secondF firstF;; let secondF x' = x' + 4;; let x = g secondF firstF;;
13.333333
39
0.608333
1755507df01f23d46f4e6f6b27dd408fe1609df1
1,400
mli
OCaml
server/request.mli
jerryliu55/pyre-check
ca779758cda4468c95dc2cd84f97a896bb983e3c
[ "MIT" ]
3
2019-03-29T22:32:12.000Z
2019-04-16T08:54:57.000Z
server/request.mli
jerryliu55/pyre-check
ca779758cda4468c95dc2cd84f97a896bb983e3c
[ "MIT" ]
null
null
null
server/request.mli
jerryliu55/pyre-check
ca779758cda4468c95dc2cd84f97a896bb983e3c
[ "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 val parse_lsp : configuration: Configuration.Analysis.t -> request: Yojson.Safe.json -> Protocol.Request.t option type r...
25
67
0.73
aaa49f1169021a0cc7c133b164169fa4af0cff98
4,680
ml
OCaml
presentations/coq-workshop-2014-coq/proofs/clenvtac.ml
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/proofs/clenvtac.ml
JasonGross/test-broken-tar
6b52b8532879df53386b0f5413485888a1aa886a
[ "MIT" ]
null
null
null
presentations/coq-workshop-2014-coq/proofs/clenvtac.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...
36
95
0.675427
bc458b56c7cdfc45a827c4a69f8e926d40fd1d8b
911
ml
OCaml
benchmarks/formula/formula1/submissions/sub268.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
5
2019-08-26T05:41:41.000Z
2020-05-03T03:58:50.000Z
benchmarks/formula/formula1/submissions/sub268.ml
kupl/TestML
55a6200222303bc06349f3379894f5174d47df5d
[ "MIT" ]
null
null
null
benchmarks/formula/formula1/submissions/sub268.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 ...
32.535714
71
0.479693
179907c19c95473130df27b1a3b249bf8e19ed44
9,112
ml
OCaml
src/commands/lsCommand.ml
mxstbr/flow
a0ed2e28278e66add6f963d9c4f2328428c04480
[ "MIT" ]
2
2019-01-31T09:33:15.000Z
2019-01-31T09:35:08.000Z
src/commands/lsCommand.ml
mxstbr/flow
a0ed2e28278e66add6f963d9c4f2328428c04480
[ "MIT" ]
null
null
null
src/commands/lsCommand.ml
mxstbr/flow
a0ed2e28278e66add6f963d9c4f2328428c04480
[ "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. *) (***********************************************************************) (* flow ls (list files) command *) (**************************...
34.778626
100
0.681629
171c9efe1f232006365fb0e2712b6ec706fe35fa
4,365
ml
OCaml
vendor/dune/src/opam_file.ml
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
null
null
null
vendor/dune/src/opam_file.ml
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
null
null
null
vendor/dune/src/opam_file.ml
prashant-shahi/pesy
5562d9387ba62704f6505c505c906b82f5d73a51
[ "MIT" ]
null
null
null
open! Stdune open Import open OpamParserTypes type t = opamfile let parse_gen entry (lb : Lexing.lexbuf) = try entry OpamLexer.token lb with | OpamLexer.Error msg -> User_error.raise ~loc:(Loc.of_lexbuf lb) [ Pp.text msg ] | Parsing.Parse_error -> User_error.raise ~loc:(Loc.of_lexbuf lb) [ Pp.text...
27.980769
77
0.570447
1760d2b06386e0a4e0d31bef5a6852b258f83ceb
11,693
ml
OCaml
src/monitor/fileWatcher.ml
parviz-93/flow
bd22f98a8b254cd3f75586f642121c21fb56ee8f
[ "MIT" ]
1
2021-03-12T10:46:28.000Z
2021-03-12T10:46:28.000Z
src/monitor/fileWatcher.ml
parviz-93/flow
bd22f98a8b254cd3f75586f642121c21fb56ee8f
[ "MIT" ]
null
null
null
src/monitor/fileWatcher.ml
parviz-93/flow
bd22f98a8b254cd3f75586f642121c21fb56ee8f
[ "MIT" ]
null
null
null
(** * Copyright (c) 2018-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. *) module Logger = FlowServerMonitorLogger exception FileWatcherDied of exn (* TODO - Push-based API for dfind. While the FileWatcher API...
36.089506
100
0.624562
17a5749e4af54f4f7cdca3ff479388329f915f7a
17,535
ml
OCaml
lib/ops.ml
TobiasKappe/petr4
4cf970e1a413420d63c7acac108bb7d688063f8d
[ "Apache-2.0" ]
null
null
null
lib/ops.ml
TobiasKappe/petr4
4cf970e1a413420d63c7acac108bb7d688063f8d
[ "Apache-2.0" ]
null
null
null
lib/ops.ml
TobiasKappe/petr4
4cf970e1a413420d63c7acac108bb7d688063f8d
[ "Apache-2.0" ]
null
null
null
open Core_kernel module V = Prog.Value module Op = Typed.Op open Bitstring (*----------------------------------------------------------------------------*) (* Unary Operator Evaluation *) (*----------------------------------------------------------------------------*) let eval_not (v : V.value) : V.value = match v ...
43.8375
105
0.600627
17482b74fe32f8a669807992e71355963d745fc8
1,637
ml
OCaml
benchmarks/matrices.ml
vtereshkov/umka-lang
628eec93b34e420cd840eece43105dcc1a226ddf
[ "BSD-2-Clause" ]
544
2020-05-06T20:19:14.000Z
2022-03-31T08:34:59.000Z
benchmarks/matrices.ml
vtereshkov/umka-lang
628eec93b34e420cd840eece43105dcc1a226ddf
[ "BSD-2-Clause" ]
121
2020-05-09T13:09:07.000Z
2022-03-31T22:56:51.000Z
benchmarks/matrices.ml
vtereshkov/umka-lang
628eec93b34e420cd840eece43105dcc1a226ddf
[ "BSD-2-Clause" ]
49
2020-05-08T04:47:09.000Z
2022-03-27T11:15:23.000Z
(* Matrix multiplication benchmark - OCaml version *) (* To install ocaml: 1) you need opam >= 2.1 2) opam switch create 4.12.1+flambda --package=ocaml-variants.4.12.1+options,ocaml-option-flambda eval `opam env` opam install ocamlfind mtime --yes 3) run benchmarks ## Intel(R) Core(TM) i5-4570 CPU @ 3...
27.283333
106
0.607208
17014376c606f6a9ae3a381fbbfd6fda29ec7cdc
1,302
ml
OCaml
brainfuck/brainfuck.ml
4y8/esoo
49f9b8bd70c1f41bf2d4db044d0cfede4e1ff470
[ "BSD-3-Clause" ]
10
2021-04-04T09:09:47.000Z
2022-01-06T07:22:36.000Z
brainfuck/brainfuck.ml
4y8/esoo
49f9b8bd70c1f41bf2d4db044d0cfede4e1ff470
[ "BSD-3-Clause" ]
5
2020-05-20T03:10:41.000Z
2020-05-22T15:21:53.000Z
brainfuck/brainfuck.ml
4y8/esoo
49f9b8bd70c1f41bf2d4db044d0cfede4e1ff470
[ "BSD-3-Clause" ]
1
2022-01-05T18:10:14.000Z
2022-01-05T18:10:14.000Z
let rec eval input pos index mem = match pos with _ when pos = String.length input -> index, mem | _ -> match String.get input pos with '>' -> eval input (pos + 1) (index + 1) mem | '<' -> eval input (pos + 1) (index - 1) mem | '+' -> mem.(index) <- mem.(index) + 1; eval inp...
35.189189
80
0.479263
aaa30959b36dd6a4412bdfa793402916d61971b8
6,561
ml
OCaml
emmett/predef.ml
vmware-archive/vprobe-toolkit
81ec188659b3da53e81c2922691fb0a04dd85092
[ "BSD-3-Clause" ]
1
2020-11-15T07:08:27.000Z
2020-11-15T07:08:27.000Z
emmett/predef.ml
vmware-archive/vprobe-toolkit
81ec188659b3da53e81c2922691fb0a04dd85092
[ "BSD-3-Clause" ]
null
null
null
emmett/predef.ml
vmware-archive/vprobe-toolkit
81ec188659b3da53e81c2922691fb0a04dd85092
[ "BSD-3-Clause" ]
1
2020-07-24T07:52:09.000Z
2020-07-24T07:52:09.000Z
(* ********************************************************** * Copyright 2009 VMware, Inc. All rights reserved. * **********************************************************) (* * Predef module: pre-defined types, functions, and variables. *) open Ast open Symtab (* * Predefined types, functions, and variables...
23.685921
81
0.546868
177c582aa8589984da67590e69038cb9f1423491
3,042
ml
OCaml
day08/star2.ml
Milobe115/AoC-2021
2d7411e9137c6f6c3c456c321f7d79f68c2bf8c7
[ "Unlicense" ]
1
2021-12-02T08:59:16.000Z
2021-12-02T08:59:16.000Z
day08/star2.ml
Milobe115/AoC-2021
2d7411e9137c6f6c3c456c321f7d79f68c2bf8c7
[ "Unlicense" ]
null
null
null
day08/star2.ml
Milobe115/AoC-2021
2d7411e9137c6f6c3c456c321f7d79f68c2bf8c7
[ "Unlicense" ]
null
null
null
#load "str.cma";; let readfile path = let lines = ref [] in let ic = open_in path in try while true; do lines := input_line ic :: !lines done; !lines with End_of_file -> close_in ic; List.rev !lines ;; exception Error of string;; let rec remove_blanks list = match list with | [] -> ...
32.361702
114
0.667653
172aa392b2b170ec06d8a15f5c33b5bc698c51c1
14,947
ml
OCaml
src/proto_012_Psithaca/lib_protocol/test/integration/consensus/test_double_preendorsement.ml
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/proto_012_Psithaca/lib_protocol/test/integration/consensus/test_double_preendorsement.ml
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
src/proto_012_Psithaca/lib_protocol/test/integration/consensus/test_double_preendorsement.ml
maiste-forks/tezos
ec9b0074da63e061fafa8635b5acba3e052f6df1
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
44.091445
90
0.651368
17baa5ed812ee617c03300aa2697b1fca3f65b32
2,098
ml
OCaml
macro/crypto/util_p256.ml
nandor/llir-benchmark
2aceae6afe620db96b0234ab90a0058d88304f53
[ "MIT" ]
1
2020-02-20T21:29:17.000Z
2020-02-20T21:29:17.000Z
macro/crypto/util_p256.ml
nandor/benchmark-genm
f23fe14380db5c715b01d97ad9f574c68c26d823
[ "MIT" ]
null
null
null
macro/crypto/util_p256.ml
nandor/benchmark-genm
f23fe14380db5c715b01d97ad9f574c68c26d823
[ "MIT" ]
null
null
null
(* The MIT License (MIT) * * Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without ...
39.584906
83
0.703527
1798426267589618376dba74364a1a9640076c26
380
ml
OCaml
src/passes/00-preprocessing/cameligo/Comments.ml
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
2
2021-03-06T12:11:41.000Z
2021-11-21T13:54:18.000Z
src/passes/00-preprocessing/cameligo/Comments.ml
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
4
2021-11-10T15:04:00.000Z
2022-01-14T07:49:14.000Z
src/passes/00-preprocessing/cameligo/Comments.ml
DiningPhilosophersCo/ligo
31e66141c8a6fc8442769a1b851c73610288281d
[ "MIT" ]
1
2022-03-30T09:12:37.000Z
2022-03-30T09:12:37.000Z
(* Comments for CameLIGO *) module C = struct type line_comment = string (* Opening of a line comment *) type block_comment = <opening : string; closing : string> let block = object method opening = "(*" method closing = "*)" end let block = Some block let line = S...
18.095238
63
0.589474
bc1c3bada90387b99c929c0687a14883a3fd73b1
1,250
ml
OCaml
src/irmin-pack/dict_intf.ml
AntouanK/test-irmin
07c8378acb835281d0fd2e4f492b84b0fc3b5588
[ "0BSD" ]
null
null
null
src/irmin-pack/dict_intf.ml
AntouanK/test-irmin
07c8378acb835281d0fd2e4f492b84b0fc3b5588
[ "0BSD" ]
null
null
null
src/irmin-pack/dict_intf.ml
AntouanK/test-irmin
07c8378acb835281d0fd2e4f492b84b0fc3b5588
[ "0BSD" ]
null
null
null
(* * Copyright (c) 2013-2019 Thomas Gazagnaire <thomas@gazagnaire.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 PROVIDE...
29.069767
75
0.7024
1786ed709981a226175b261b557ad83248ee6056
3,210
ml
OCaml
src/base/algodiff/owl_algodiff_generic_sig.ml
jzstark/owl
eead31f1920e63b876421e6a30e61c947f29827f
[ "MIT" ]
null
null
null
src/base/algodiff/owl_algodiff_generic_sig.ml
jzstark/owl
eead31f1920e63b876421e6a30e61c947f29827f
[ "MIT" ]
null
null
null
src/base/algodiff/owl_algodiff_generic_sig.ml
jzstark/owl
eead31f1920e63b876421e6a30e61c947f29827f
[ "MIT" ]
null
null
null
(* * OWL - OCaml Scientific Computing * Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz> *) module type Sig = sig include Owl_algodiff_core_sig.Sig val make_forward : t -> t -> int -> t (** TODO *) val make_reverse : t -> int -> t (** TODO *) val reverse_prop : t -> t -> unit (** TODO *) val...
32.424242
84
0.525545
1787428b77f0f02818e8f13433f9d302ec1fad85
211
ml
OCaml
benchmarks/C/max/sol5.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/C/max/sol5.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/C/max/sol5.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
2
2020-02-06T00:36:38.000Z
2020-07-27T09:53:35.000Z
let rec max : int list -> int =fun l -> 1;; let rec max l = match l with | [] -> raise(Failure "Too short") | hd :: tl -> if (tl = []) then hd else let r = max tl in if ( hd <= r) then r else hd;;
21.1
35
0.516588
17127393fbb08a75d58c4fc3b50ccb4f186f2095
26,372
ml
OCaml
infer/src/backend/InferAnalyzeJson.ml
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
1
2019-12-27T12:18:57.000Z
2019-12-27T12:18:57.000Z
infer/src/backend/InferAnalyzeJson.ml
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
7
2017-12-03T16:09:45.000Z
2018-01-08T15:15:34.000Z
infer/src/backend/InferAnalyzeJson.ml
Static-Analysis-Tools/infer
2a920fc3e510384b51daad9e4e81ff7c6785ab4f
[ "MIT" ]
1
2021-04-01T03:33:07.000Z
2021-04-01T03:33:07.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. *) (** Main module for the analyzejson analysis after the capture phase *) open! IStd open Yojson open Yojson.Safe.Util (* We use Yo...
37.354108
131
0.702905
17362a2dd9ddc3c1b36e2793898daa984563d860
21,794
ml
OCaml
src/not-so-smart/smart_git.ml
ulugbekna/ocaml-git
170b59e5dff89bcbd8d3ca2c2cec5aaec1b48797
[ "0BSD" ]
null
null
null
src/not-so-smart/smart_git.ml
ulugbekna/ocaml-git
170b59e5dff89bcbd8d3ca2c2cec5aaec1b48797
[ "0BSD" ]
null
null
null
src/not-so-smart/smart_git.ml
ulugbekna/ocaml-git
170b59e5dff89bcbd8d3ca2c2cec5aaec1b48797
[ "0BSD" ]
null
null
null
module type APPEND = sig type 'a rd = < rd : unit ; .. > as 'a type 'a wr = < wr : unit ; .. > as 'a type 'a mode = | Rd : < rd : unit > mode | Wr : < wr : unit > mode | RdWr : < rd : unit ; wr : unit > mode type t type uid type 'a fd type error type +'a fiber val pp_error : error Fmt.t...
34.648649
80
0.561393
179c2be5c0c41c26fe5224fceb044c13d63d8fdc
2,936
ml
OCaml
hphp/hack/src/socket/socket.ml
NunoEdgarGFlowHub/hhvm
991973e74588e2da4cd800c0e4cf03430094649a
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/socket/socket.ml
NunoEdgarGFlowHub/hhvm
991973e74588e2da4cd800c0e4cf03430094649a
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/socket/socket.ml
NunoEdgarGFlowHub/hhvm
991973e74588e2da4cd800c0e4cf03430094649a
[ "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. * *) (* Initialize...
37.164557
80
0.686989
aa843407273facfc04afd144158f586610c3b5cb
1,325
ml
OCaml
benchmarks/C/diff/sol7.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/C/diff/sol7.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/C/diff/sol7.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
(* HW2 exercise2 2009-11697 Kim HyunJoon *) (* Mathemadiga *) type aexp = Const of int | Var of string | Power of string * int | Times of aexp list | Sum of aexp list let rec diff : aexp * string -> aexp = fun (exp, str) -> let rec partialDiff lst n = match lst with | [] -> [] | hd::tl -> if n = 0 then (m...
25.980392
112
0.587925
17851ff9826664c2422d38bce78ac0d154eb9562
7,811
ml
OCaml
src/Main.ml
ymanerka/ccicheck
1e14c73f31a10a2ec998c4fda03e5519f2092c93
[ "MIT" ]
5
2015-12-18T03:51:29.000Z
2022-03-28T04:07:42.000Z
src/Main.ml
ymanerka/ccicheck
1e14c73f31a10a2ec998c4fda03e5519f2092c93
[ "MIT" ]
null
null
null
src/Main.ml
ymanerka/ccicheck
1e14c73f31a10a2ec998c4fda03e5519f2092c93
[ "MIT" ]
1
2020-12-03T19:32:52.000Z
2020-12-03T19:32:52.000Z
(******************************************************************************) (* PipeCheck: Specifying and Verifying Microarchitectural *) (* Enforcement of Memory Consistency Models *) (* ...
40.05641
104
0.640635
17362fadbbe3b0e2d38f5816d468abe30eeda731
6,524
ml
OCaml
traverse_builtins/ppx_traverse_builtins.ml
ceastlund/ppx
e9367353e0ac7f6e1b408be21b01645475eea623
[ "MIT" ]
57
2019-05-15T14:23:37.000Z
2021-05-24T19:23:19.000Z
traverse_builtins/ppx_traverse_builtins.ml
ceastlund/ppx
e9367353e0ac7f6e1b408be21b01645475eea623
[ "MIT" ]
53
2019-06-06T16:27:15.000Z
2020-05-14T18:05:50.000Z
traverse_builtins/ppx_traverse_builtins.ml
ceastlund/ppx
e9367353e0ac7f6e1b408be21b01645475eea623
[ "MIT" ]
7
2019-06-03T15:07:32.000Z
2020-04-06T14:06:22.000Z
module T = struct type 'a map = 'a -> 'a type 'a iter = 'a -> unit type ('a, 'acc) fold = 'a -> 'acc -> 'acc type ('a, 'acc) fold_map = 'a -> 'acc -> ('a * 'acc) type ('ctx, 'a) map_with_context = 'ctx -> 'a -> 'a type ('a, 'res) lift = 'a -> 'res end class map = let any x = x in object method int ...
34.702128
86
0.508277
aae266d7c3f2346165aa35b69da63ee8006efdad
393
ml
OCaml
tools/verdict-back-ends/aadl2iml/src/utils.ml
Syrupz-UO/VERDICT-ge-ha
ed2094c083c04f41d2c6614edb5b6c4a77c38244
[ "BSD-3-Clause" ]
null
null
null
tools/verdict-back-ends/aadl2iml/src/utils.ml
Syrupz-UO/VERDICT-ge-ha
ed2094c083c04f41d2c6614edb5b6c4a77c38244
[ "BSD-3-Clause" ]
null
null
null
tools/verdict-back-ends/aadl2iml/src/utils.ml
Syrupz-UO/VERDICT-ge-ha
ed2094c083c04f41d2c6614edb5b6c4a77c38244
[ "BSD-3-Clause" ]
null
null
null
(* Copyright (c) 2019-2020, Board of Trustees of the University of Iowa. All rights reserved. Use of this source code is governed by a BSD 3-Clause License that can be found in the LICENSE file. *) (** @author Daniel Larraz *) let element_position p l = let rec aux i = function | [] -> None | h ::...
21.833333
72
0.615776
177d10107ecab04fa791340b2141c84f41d24d2d
1,862
ml
OCaml
backend/absint/src/monad.ml
talsewell/cerberus
c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3
[ "BSD-2-Clause" ]
12
2020-09-03T09:57:26.000Z
2022-01-28T04:28:00.000Z
backend/absint/src/monad.ml
talsewell/cerberus
c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3
[ "BSD-2-Clause" ]
182
2021-02-26T23:07:40.000Z
2022-02-10T12:33:45.000Z
backend/absint/src/monad.ml
talsewell/cerberus
c8c6d25f0cb8d4cd2672ffd0790fb0de3f2a51e3
[ "BSD-2-Clause" ]
4
2020-09-02T11:54:39.000Z
2022-03-16T23:23:11.000Z
module type MONAD = sig type ('a, 'b) t val return: 'b -> ('a, 'b) t val bind: ('a, 'b) t -> ('b -> ('a, 'c) t) -> ('a, 'c) t val (>>=): ('a, 'b) t -> ('b -> ('a, 'c) t) -> ('a, 'c) t val (>>): ('a, 'b) t -> ('a, 'c) t -> ('a, 'c) t end module type STATE_MONAD = sig type 'a state include MONAD val run:...
30.032258
76
0.456498
aae7795aa863fd0bed90a1bd6308d96ef37597a9
669
ml
OCaml
src/lib/coda_base/hash_prefix.ml
ValarDragon/coda
2a73c37c22c4029fcfb0b2a444115eead94bdb8b
[ "Apache-2.0" ]
1
2018-11-01T06:43:26.000Z
2018-11-01T06:43:26.000Z
src/lib/coda_base/hash_prefix.ml
ValarDragon/coda
2a73c37c22c4029fcfb0b2a444115eead94bdb8b
[ "Apache-2.0" ]
null
null
null
src/lib/coda_base/hash_prefix.ml
ValarDragon/coda
2a73c37c22c4029fcfb0b2a444115eead94bdb8b
[ "Apache-2.0" ]
null
null
null
open Core_kernel open Hash_prefixes let length_in_triples = length_in_triples let salt (s : t) = Snark_params.Tick.Pedersen.(State.salt params (s :> string)) let protocol_state = salt protocol_state let account = salt account let merkle_tree = Array.init Snark_params.ledger_depth ~f:(fun i -> salt (merkle_tree i...
20.90625
79
0.793722
bc23c4f7ea3a06476539d9324232fea39ecc52a7
402
ml
OCaml
basic_op.ml
J-Sano/robot_simulator
30810e5a5646bc65ccb3975744a7669617e7db3b
[ "MIT" ]
null
null
null
basic_op.ml
J-Sano/robot_simulator
30810e5a5646bc65ccb3975744a7669617e7db3b
[ "MIT" ]
null
null
null
basic_op.ml
J-Sano/robot_simulator
30810e5a5646bc65ccb3975744a7669617e7db3b
[ "MIT" ]
null
null
null
let deg2rad x = x *. (atan 1.)*.8. /. 360.;; let rad2deg x = x /. ((atan 1.)*.8.) *. 360.;; let rotation x y angle = let rad = deg2rad angle in let sin_rad = sin rad in let cos_rad = cos rad in let x' = x *. cos_rad -. y *. sin_rad in let y' = x *. sin_rad +. y *. cos_rad in x',y' ;; let rotation2int x y ...
23.647059
46
0.577114
17bd2e9f67107826227d12b2d6c075da5b55932c
3,054
ml
OCaml
__tests__/errors_test.ml
TheSpyder/bs-atdgen-codec-runtime
3936361a0892d5039444669b0de14e44676eb769
[ "MIT" ]
null
null
null
__tests__/errors_test.ml
TheSpyder/bs-atdgen-codec-runtime
3936361a0892d5039444669b0de14e44676eb769
[ "MIT" ]
null
null
null
__tests__/errors_test.ml
TheSpyder/bs-atdgen-codec-runtime
3936361a0892d5039444669b0de14e44676eb769
[ "MIT" ]
null
null
null
open Jest open Expect let wrap_exn exp = try let _ = exp () in "not called" with Json_decode.DecodeError str -> str let () = describe "exceptions" (fun () -> test "unit" (fun () -> let j = Json.parseOrRaise {|{}|} in expect (wrap_exn (fun () -> Atdgen_codec_runtime.Decode.unit j)) |> toBe ("E...
45.58209
100
0.600851
1797f5b486502dbacbf17803c3dbccd11fa637c8
10,686
ml
OCaml
hphp/hack/src/procs/worker.ml
wmde/hhvm
f43ae21551b3e37ec955bce770ca9a99677388fc
[ "PHP-3.01", "Zend-2.0" ]
1
2017-09-13T22:07:37.000Z
2017-09-13T22:07:37.000Z
hphp/hack/src/procs/worker.ml
wmde/hhvm
f43ae21551b3e37ec955bce770ca9a99677388fc
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/procs/worker.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. * *) external hh_w...
36.47099
80
0.547726
aab5f625280638d69766fe22b123b1dc6df24612
4,221
ml
OCaml
src/model_desc/comment_desc.ml
somya104/odoc
38f6d0b0dc391505b787e15675b0c1b125c9d7db
[ "0BSD" ]
null
null
null
src/model_desc/comment_desc.ml
somya104/odoc
38f6d0b0dc391505b787e15675b0c1b125c9d7db
[ "0BSD" ]
null
null
null
src/model_desc/comment_desc.ml
somya104/odoc
38f6d0b0dc391505b787e15675b0c1b125c9d7db
[ "0BSD" ]
null
null
null
open Type_desc open Odoc_model open Comment open Paths_desc let ignore_loc x = x.Location_.value type general_inline_element = [ `Space | `Word of string | `Code_span of string | `Raw_markup of raw_markup_target * string | `Styled of style * general_inline_element with_location list | `Reference of Paths....
32.976563
81
0.611703
17bf9b9c3942cca5ca8c1a0922f3c553f02095cb
884
ml
OCaml
play/menhir/morse-code/morse.ml
vyorkin/tiger
54dd179c1cd291df42f7894abce3ee9064e18def
[ "MIT" ]
14
2019-12-31T19:44:45.000Z
2021-12-09T13:43:18.000Z
play/menhir/morse-code/morse.ml
vyorkin/tiger
54dd179c1cd291df42f7894abce3ee9064e18def
[ "MIT" ]
4
2019-08-16T16:17:41.000Z
2020-02-23T15:31:42.000Z
play/menhir/morse-code/morse.ml
vyorkin/tiger
54dd179c1cd291df42f7894abce3ee9064e18def
[ "MIT" ]
2
2020-10-17T04:56:37.000Z
2021-08-22T13:00:56.000Z
let decode_one = function | ".-" -> "a" | "-..." -> "b" | "-.-." -> "c" | "-.." -> "d" | "." -> "e" | "..-." -> "f" | "--." -> "g" | "...." -> "h" | ".." -> "i" | ".---" -> "j" | "-.-" -> "k" | ".-.." -> "l" | "--" -> "m" | "-." -> "n" | "---" -...
20.55814
57
0.168552
17a3170b5345bc04157e2cb773e2143f1ab7b3b8
37
mli
OCaml
app/src/commands.mli
adept/icfpc2020
259ab26a659332e2b99ca14db33b0d90896b8468
[ "MIT" ]
null
null
null
app/src/commands.mli
adept/icfpc2020
259ab26a659332e2b99ca14db33b0d90896b8468
[ "MIT" ]
null
null
null
app/src/commands.mli
adept/icfpc2020
259ab26a659332e2b99ca14db33b0d90896b8468
[ "MIT" ]
null
null
null
open! Core val commands : Command.t
9.25
24
0.72973
1791520ea048b76446a0c8504ca93d803a1a4569
3,358
ml
OCaml
data/sp14/0031.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/sp14/0031.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/sp14/0031.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let rec clone x n = match n > 0 with | true -> x :: (clone x (n - 1)) | false -> [];; let padZero l1 l2 = let length1 = List.length l1 in let length2 = List.length l2 in match length1 >= length2 with | true -> let n = length1 - length2 in let zeroes = clone 0 n in (l1, (List.append zeroes l2)...
18.450549
77
0.514592
17d5dadb9019fd5c4628ade90b0765dc86371fbb
270
ml
OCaml
back2/test/test.ml
bsansouci/jengaroot
62ab5e0f64b45611ff99789d4e9b66e562be253d
[ "Apache-2.0" ]
3
2016-04-28T13:41:49.000Z
2016-05-01T15:34:19.000Z
back2/test/test.ml
bsansouci/jengaroot
62ab5e0f64b45611ff99789d4e9b66e562be253d
[ "Apache-2.0" ]
1
2016-04-28T09:54:04.000Z
2016-05-12T06:06:49.000Z
back2/test/test.ml
bsansouci/jengaroot
62ab5e0f64b45611ff99789d4e9b66e562be253d
[ "Apache-2.0" ]
null
null
null
(* let getSubstringMaybe s idx = * try Some (Pcre.get_substring s idx) * with Not_found | Invalid_argument _ -> None *) print_endline ("Top level Test module is loaded " ^ FirstDep.asd);; let message = "hello from buckle rosdot Test module";;
33.75
67
0.655556
17762267201b06c4ca192c5ec3cb14801daef824
433
ml
OCaml
src/stdune/caml/dune_caml.ml
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
1,056
2018-01-17T23:27:17.000Z
2022-03-28T08:28:13.000Z
src/stdune/caml/dune_caml.ml
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
3,824
2018-01-17T15:09:57.000Z
2022-03-31T14:46:35.000Z
src/stdune/caml/dune_caml.ml
marsam/dune
8a3d7f2f2015b71384caa07226d1a89dba9d6c25
[ "MIT" ]
314
2018-01-21T13:57:15.000Z
2022-03-24T16:17:13.000Z
(** This library is internal to dune and guarantees no API stability. *) module Bytes = Bytes module Filename = Filename module String = String module Char = Char module Hashtbl = MoreLabels.Hashtbl module Lexing = Lexing module Digest = Digest module StringLabels = StringLabels module ListLabels = ListLabels module L...
25.470588
72
0.789838
17bc2af389cb0e9de493f85dcb3af345512f4708
41,565
ml
OCaml
CodeHawk/CHB/bchlibmips32/bCHTranslateMIPSToCHIF.ml
Databean/codehawk
91bef3806d87d93b4371a4d1c22a7dc8648e2a16
[ "MIT" ]
17
2020-08-17T15:35:57.000Z
2022-03-23T14:40:19.000Z
CodeHawk/CHB/bchlibmips32/bCHTranslateMIPSToCHIF.ml
Databean/codehawk
91bef3806d87d93b4371a4d1c22a7dc8648e2a16
[ "MIT" ]
6
2020-07-17T05:43:51.000Z
2021-01-06T03:41:46.000Z
CodeHawk/CHB/bchlibmips32/bCHTranslateMIPSToCHIF.ml
sipma/codehawk
e4eeb41fdea6a8467d1892b9467ec54ef04953b0
[ "MIT" ]
3
2020-08-13T23:18:39.000Z
2021-12-11T11:10:06.000Z
(* ============================================================================= CodeHawk Binary Analyzer Author: Henny Sipma ------------------------------------------------------------------------------ The MIT License (MIT) Copyright (c) 2005-2020 Kestrel Technology LLC Copyright (c) 2020 H...
35.708763
101
0.647877
aae7de2c8cb073c998e589380cf12724831200d1
3,472
ml
OCaml
GillianCore/BulkTesting/suite.ml
raduml97/Gillian
10b9d80b0edecdd9d52f7711993dc208084f13e1
[ "MIT" ]
1
2020-05-30T11:39:31.000Z
2020-05-30T11:39:31.000Z
GillianCore/BulkTesting/suite.ml
alexismarinoiu/Gillian
cf14a9b992d75194db38b90ef41222e6c7253c89
[ "MIT" ]
null
null
null
GillianCore/BulkTesting/suite.ml
alexismarinoiu/Gillian
cf14a9b992d75194db38b90ef41222e6c7253c89
[ "MIT" ]
null
null
null
module type S = sig type info val pp_info : Format.formatter -> info -> unit type category val pp_category : Format.formatter -> category -> unit val skip_category : category -> bool val filter_source : string -> bool val create_tests : string -> string -> (string * info * category) list val befo...
23.780822
121
0.654378
17ca03520cedf3626cdb9d21a5d42b300d015a24
87
ml
OCaml
exercises/01_09-puissance/solution.ml
acamanes/ocaml-public
244d8874b472bb61aef598e06723903eb58bfec0
[ "CC0-1.0" ]
null
null
null
exercises/01_09-puissance/solution.ml
acamanes/ocaml-public
244d8874b472bb61aef598e06723903eb58bfec0
[ "CC0-1.0" ]
null
null
null
exercises/01_09-puissance/solution.ml
acamanes/ocaml-public
244d8874b472bb61aef598e06723903eb58bfec0
[ "CC0-1.0" ]
null
null
null
let rec puissance x n = match n with | 0 -> 1 | _ -> x * (puissance x (n-1))
17.4
34
0.494253
17a6339a0861b609c13108bf314ff9d6bf8a974e
4,677
ml
OCaml
src/model_desc/comment_desc.ml
TristanCacqueray/odoc
fd4605f6c94d61a9dd3cffabc76c712ba246ae4c
[ "ISC" ]
null
null
null
src/model_desc/comment_desc.ml
TristanCacqueray/odoc
fd4605f6c94d61a9dd3cffabc76c712ba246ae4c
[ "ISC" ]
null
null
null
src/model_desc/comment_desc.ml
TristanCacqueray/odoc
fd4605f6c94d61a9dd3cffabc76c712ba246ae4c
[ "ISC" ]
null
null
null
open Type_desc open Odoc_model open Comment open Paths_desc let location = (* Do not show field names. *) let open Location_ in let point = Indirect ((fun p -> (p.line, p.column)), Pair (int, int)) in Indirect ((fun s -> (s.file, s.start, s.end_)), Triple (string, point, point)) let loc_to_pair x = (x.Locatio...
33.170213
81
0.600599
17a1cc13b82e3dab884592743ba3bfcad4135a06
1,601
ml
OCaml
x11/icccm.ml
talex5/wayland-virtwl-proxy
d7f58d405514dd031f2f12e402c8c6a58e62a885
[ "Apache-2.0" ]
5
2021-04-13T10:51:06.000Z
2021-04-13T13:29:13.000Z
x11/icccm.ml
talex5/wayland-virtwl-proxy
d7f58d405514dd031f2f12e402c8c6a58e62a885
[ "Apache-2.0" ]
2
2021-04-14T15:31:29.000Z
2021-04-14T15:44:34.000Z
x11/icccm.ml
talex5/wayland-virtwl-proxy
d7f58d405514dd031f2f12e402c8c6a58e62a885
[ "Apache-2.0" ]
null
null
null
open Lwt.Syntax open Lwt.Infix module Wm_normal_hints = struct [%%cenum type flags = | USPosition [@id 1] | USSize [@id 2] | PPosition [@id 4] | PSize [@id 8] | PMinSize [@id 16] | PMaxSize [@id 32] | PResizeInc [@id 64] | PAspect [@id 128] | PBaseSize [@id 2...
25.015625
85
0.611493
172a13215b76f7f4531da22f7227cca81698577b
14,797
mli
OCaml
src/api/ppx_deriving.cppo.mli
kit-ty-kate/ppx_deriving
59fed039092304ec54234541201930fbbb45aebc
[ "MIT" ]
44
2019-05-18T17:01:55.000Z
2021-08-20T17:29:02.000Z
src/api/ppx_deriving.cppo.mli
kit-ty-kate/ppx_deriving
59fed039092304ec54234541201930fbbb45aebc
[ "MIT" ]
8
2019-09-10T06:39:52.000Z
2021-01-15T12:41:13.000Z
src/api/ppx_deriving.cppo.mli
kit-ty-kate/ppx_deriving
59fed039092304ec54234541201930fbbb45aebc
[ "MIT" ]
4
2019-12-15T14:47:08.000Z
2020-06-22T20:11:04.000Z
(** Public API of [ppx_deriving] executable. *) open Parsetree #if OCAML_VERSION >= (4, 05, 0) type tyvar = string Location.loc #else type tyvar = string #endif (** {2 Registration} *) (** A type of deriving plugins. A structure or signature deriving function accepts a list of [~options], a [~path] of modu...
44.435435
95
0.661485
1702a2b9ebfea692a9c847cdda95a58a331f635c
233
mli
OCaml
src/utils.mli
kalevalp/amdlc
63d2be3ab838099ff5a1e5ebfcfe03104caedad4
[ "MIT" ]
null
null
null
src/utils.mli
kalevalp/amdlc
63d2be3ab838099ff5a1e5ebfcfe03104caedad4
[ "MIT" ]
null
null
null
src/utils.mli
kalevalp/amdlc
63d2be3ab838099ff5a1e5ebfcfe03104caedad4
[ "MIT" ]
null
null
null
val product : 'a list -> 'b list -> ('a * 'b) list val zip : 'a list -> 'b list -> ('a * 'b) list val dummyl : int -> unit list val open_file_in_dir : string -> string -> out_channel val cartesian : 'a list list -> 'a list list
38.833333
54
0.600858
1793ea556d611add30374477b63ce8718d4e0663
3,286
ml
OCaml
src/format_dune_lang.ml
kit-ty-kate/dune
7b37f89424e39d212f8efca29e38f9895031d5b7
[ "MIT" ]
null
null
null
src/format_dune_lang.ml
kit-ty-kate/dune
7b37f89424e39d212f8efca29e38f9895031d5b7
[ "MIT" ]
null
null
null
src/format_dune_lang.ml
kit-ty-kate/dune
7b37f89424e39d212f8efca29e38f9895031d5b7
[ "MIT" ]
null
null
null
open! Stdune open! Import type dune_file = | OCaml_syntax of Loc.t | Sexps of Dune_lang.Cst.t list let parse_lexbuf lb = if Dune_lexer.is_script lb then OCaml_syntax (Loc.of_lexbuf lb) else Sexps (Dune_lang.Parser.parse_cst lb) let parse_file path_opt = match path_opt with | Some path -> Io.w...
22.662069
69
0.609556
44babacc845838152b089c498d0636262690555f
382
ml
OCaml
src/tests/test_decl.ml
spitzgoby/matkit
820718f10530abc5785cde3a544e648610c41d69
[ "MIT" ]
1
2019-05-13T14:50:30.000Z
2019-05-13T14:50:30.000Z
src/tests/test_decl.ml
ivg/matkit
f2d0348caaeddc1e77bc6ded89187062fd9f96bf
[ "MIT" ]
null
null
null
src/tests/test_decl.ml
ivg/matkit
f2d0348caaeddc1e77bc6ded89187062fd9f96bf
[ "MIT" ]
null
null
null
open Core.Std open Ast let () = let d1,d2 = Dim.(of_sym "N", of_sym "M") in let d1 : decls = Decl.(assoc "A" [ real ~d1 ~d2; kind ~is:"symmetric"; kind ~is:"invertible" ] @ assoc "B" [ is_real; kind ~is:"invertible"; kind ~is:"square"]) in let s1 = Pri...
16.608696
45
0.505236
173299d032a828dd0dfc1b089dc5643bf0a8bf8f
14,428
ml
OCaml
src/main.ml
ptoscano/obuild
55ed45108b304ad8aecf3e257dc21c3eafeefcde
[ "BSD-2-Clause" ]
30
2015-02-08T13:32:06.000Z
2021-12-18T12:02:09.000Z
src/main.ml
ptoscano/obuild
55ed45108b304ad8aecf3e257dc21c3eafeefcde
[ "BSD-2-Clause" ]
78
2015-03-05T12:45:51.000Z
2020-09-04T08:16:49.000Z
src/main.ml
ptoscano/obuild
55ed45108b304ad8aecf3e257dc21c3eafeefcde
[ "BSD-2-Clause" ]
11
2015-09-17T22:17:05.000Z
2022-03-19T15:22:06.000Z
open Printf open Ext.Fugue open Ext.Filepath open Ext open Obuild.Types open Obuild.Helper open Obuild.Gconf open Obuild let programName = "obuild" let usageStr cmd = "\nusage: " ^ programName ^ " " ^ cmd ^ " <options>\n\noptions:\n" let read_setup () = FindlibConf.load (); let setup = Dist.read_setup () in (* ...
40.301676
155
0.580122
44153b23c23dc2101faa9a7a75553d15318c722e
1,026
mli
OCaml
exercises/practice/palindrome-products/palindrome_products.mli
exercism-bot/ocaml
b72a0d29d7f31d90138eab8fc0f87e56b73ba938
[ "MIT" ]
67
2017-07-06T12:10:14.000Z
2022-03-27T02:25:06.000Z
exercises/practice/palindrome-products/palindrome_products.mli
exercism-bot/ocaml
b72a0d29d7f31d90138eab8fc0f87e56b73ba938
[ "MIT" ]
106
2017-06-19T06:21:53.000Z
2022-03-15T10:32:20.000Z
exercises/practice/palindrome-products/palindrome_products.mli
exercism-bot/ocaml
b72a0d29d7f31d90138eab8fc0f87e56b73ba938
[ "MIT" ]
36
2017-07-12T18:11:37.000Z
2021-11-30T16:05:17.000Z
type palindrome_products = { value : int option; factors : (int * int) list; } (* Returns the smallest palindrome with factors in the given range, or an appropriate error result if the range is ill specified, or there are no palindromes in the range. *) val smallest : min : int -> max : int -> (palindrome_produ...
44.608696
91
0.753411
176d3cc1bc7a002070012b55316e8df14f4e68fb
1,382
ml
OCaml
data/sp14/2499.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/sp14/2499.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/sp14/2499.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 k x = (f x) = x in f), b);; (* fix 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...
14.702128
68
0.463821
bcd20a6076ad50434858fc00c193e7bb710ffc53
4,071
ml
OCaml
src/b00/kit/b00_findex.ml
b0-system/b0
a4eb4b5068f3befbbac514bc0d102479e778011a
[ "ISC" ]
32
2018-07-24T00:16:14.000Z
2021-11-04T10:04:42.000Z
src/b00/kit/b00_findex.ml
shonfeder/b0
ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478
[ "ISC" ]
8
2019-03-10T16:46:41.000Z
2022-02-08T20:37:54.000Z
src/b00/kit/b00_findex.ml
shonfeder/b0
ec12b4fbbed6efb99dba5f8f69ecfa03cc2f9478
[ "ISC" ]
3
2019-12-29T00:14:28.000Z
2021-02-12T18:11:02.000Z
(*--------------------------------------------------------------------------- Copyright (c) 2019 The b0 programmers. All rights reserved. Distributed under the ISC license, see terms at the end of the file. ---------------------------------------------------------------------------*) open B00_std type t = {...
41.121212
79
0.647752
44bcb18098358e8ee602ad94bcb6d277e0a47eaa
451
ml
OCaml
lattices/global.ml
bbc2/mini-android
2aec11d74ad9149ae064a4e4216155daa4f1d96d
[ "MIT" ]
7
2015-10-04T10:52:42.000Z
2021-08-15T11:15:49.000Z
lattices/global.ml
bbc2/mini-android
2aec11d74ad9149ae064a4e4216155daa4f1d96d
[ "MIT" ]
null
null
null
lattices/global.ml
bbc2/mini-android
2aec11d74ad9149ae064a4e4216155daa4f1d96d
[ "MIT" ]
null
null
null
module Global = struct type t = Heap.t * As.t let compare g1 g2 = let (h1, a1) = g1 in let (h2, a2) = g2 in Lib.(As.compare a1 a2 $ Heap.compare h1 h2) let bot = (Heap.bot, As.bot) let join g1 g2 = let (h1, a1) = g1 in let (h2, a2) = g2 in (Heap.join h1 h2, As.join a1 a2) let to_st...
20.5
65
0.594235
17a051c1362d0f4cf864ea5d9c0044056838c14e
581
ml
OCaml
infer/src/checkers/procData.ml
ryoon/infer
7b8dc59386529801f9a7fb67ead94053dbf53b42
[ "BSD-3-Clause" ]
1
2016-12-19T07:33:16.000Z
2016-12-19T07:33:16.000Z
infer/src/checkers/procData.ml
ryoon/infer
7b8dc59386529801f9a7fb67ead94053dbf53b42
[ "BSD-3-Clause" ]
null
null
null
infer/src/checkers/procData.ml
ryoon/infer
7b8dc59386529801f9a7fb67ead94053dbf53b42
[ "BSD-3-Clause" ]
null
null
null
(* * Copyright (c) 2016 - present Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *) open! IStd...
23.24
78
0.703959
aae155703630099dad6b188933d99b387379c8d4
569
mli
OCaml
src/external/ocaml-dune/src/merlin.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
1
2022-03-21T15:43:42.000Z
2022-03-21T15:43:42.000Z
src/external/ocaml-dune/src/merlin.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
src/external/ocaml-dune/src/merlin.mli
jl777/coda
62472b5212aefee52c9b6c0d6c9b5f7abb16125d
[ "Apache-2.0" ]
null
null
null
(** Merlin rules *) open! Stdune open Import type t val make : ?requires:Lib.t list Or_exn.t -> ?flags:(unit, string list) Build.t -> ?preprocess:Dune_file.Preprocess.t -> ?libname:Lib_name.Local.t -> ?source_dirs: Path.Set.t -> ?objs_dirs:Path.Set.t -> unit -> t val add_source_dir : t -> Path.t ->...
18.354839
58
0.648506
aa2d3ea0ae1e12b1f4e42d0bd20fafc29bf78020
8,302
ml
OCaml
hphp/hack/src/server/diagnostic_subscription.ml
KIBEBENSON/hhvm
36ef0d11162898de284bae31d839577cc35571d2
[ "PHP-3.01", "Zend-2.0" ]
1
2019-11-01T13:46:07.000Z
2019-11-01T13:46:07.000Z
hphp/hack/src/server/diagnostic_subscription.ml
KIBEBENSON/hhvm
36ef0d11162898de284bae31d839577cc35571d2
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/server/diagnostic_subscription.ml
KIBEBENSON/hhvm
36ef0d11162898de284bae31d839577cc35571d2
[ "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 Reordered_argument_collections module RP = Relative_path (* Throttle errors - pause pushing er...
37.736364
81
0.638762
aa12cb8e9a0640b4f729e91adf2f390784fabde7
1,347
ml
OCaml
data/fa15_min/0368.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/0368.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/0368.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 buildSine e = Sine e;; let buildX () = VarX;; let buildY () = VarY;; let rec build (rand,depth) = let r = rand (0, depth) in match depth with | 0 -> i...
16.228916
55
0.560505
174529349fc26c7f991edfc15d354c07e60526ec
2,289
ml
OCaml
src/hack_forked/fsnotify_darwin/fsnotify.ml
dmitryvinn/flow-1
9ef203b34fd36fe390467456cbd0ce6c4920522e
[ "MIT" ]
null
null
null
src/hack_forked/fsnotify_darwin/fsnotify.ml
dmitryvinn/flow-1
9ef203b34fd36fe390467456cbd0ce6c4920522e
[ "MIT" ]
null
null
null
src/hack_forked/fsnotify_darwin/fsnotify.ml
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. *) module SSet = Flow_set.Make (String) exception Error of string * Unix.error type watch = string type env = { fsevents: Fseve...
30.52
93
0.698995
aa179cbea27e70c0328ed67e9128637ae83350aa
5,148
ml
OCaml
src/attribute.ml
clarus/coq-of-ocaml
7ba314392c778316787d8843fa7158ecb3f40892
[ "MIT" ]
146
2015-01-02T10:32:42.000Z
2021-09-16T14:13:40.000Z
src/attribute.ml
clarus/coq-of-ocaml
7ba314392c778316787d8843fa7158ecb3f40892
[ "MIT" ]
44
2015-04-28T19:26:48.000Z
2021-09-20T22:40:37.000Z
src/attribute.ml
clarus/coq-of-ocaml
7ba314392c778316787d8843fa7158ecb3f40892
[ "MIT" ]
10
2015-05-08T23:28:54.000Z
2021-03-08T15:29:32.000Z
(** The OCaml attributes to customize the Coq generation. *) open Monad.Notations type t = | AxiomWithReason | Cast | ForceGadt | GrabExistentials | TaggedGadt | Implicit of string | MatchGadt | MatchGadtWithResult | MatchWithDefault | MutualAsNotation | Phantom | PlainModule | Struct of stri...
27.978261
76
0.649961
aaf5904f4809bd8e5a3d1500b59a99741f42afff
13,433
ml
OCaml
command-line/albatross_cli.ml
kit-ty-kate/albatross
4c619ee15cc21bc71fdc8da625b64c38cfdb81aa
[ "ISC" ]
null
null
null
command-line/albatross_cli.ml
kit-ty-kate/albatross
4c619ee15cc21bc71fdc8da625b64c38cfdb81aa
[ "ISC" ]
null
null
null
command-line/albatross_cli.ml
kit-ty-kate/albatross
4c619ee15cc21bc71fdc8da625b64c38cfdb81aa
[ "ISC" ]
null
null
null
(* (c) 2018 Hannes Mehnert, all rights reserved *) open Astring open Vmm_core open Lwt.Infix let process = Metrics.field ~doc:"name of the process" "vm" Metrics.String let init_influx name data = match data with | None -> () | Some (ip, port) -> Logs.info (fun m -> m "stats connecting to %a:%d" Ipaddr.V...
33.498753
147
0.631579
17d3f7bc9f2fdd4ddf987580e2e82b93d9a41e22
18,202
ml
OCaml
src/typing/callUnification.ml
vonagam/haxe
cdbea08560c6c8946460d4b5f7e36667ce9d7216
[ "MIT" ]
null
null
null
src/typing/callUnification.ml
vonagam/haxe
cdbea08560c6c8946460d4b5f7e36667ce9d7216
[ "MIT" ]
null
null
null
src/typing/callUnification.ml
vonagam/haxe
cdbea08560c6c8946460d4b5f7e36667ce9d7216
[ "MIT" ]
1
2021-09-28T15:13:28.000Z
2021-09-28T15:13:28.000Z
open Globals open Ast open Type open Typecore open Error open FieldAccess let is_forced_inline c cf = match c with | Some { cl_kind = KAbstractImpl _ } -> true | Some c when has_class_flag c CExtern -> true | _ when has_class_field_flag cf CfExtern -> true | _ -> false let relative_path ctx file = let slashes p...
36.331337
172
0.666575
aaefa84539f216270ec71a920c2decaebbc52439
103
ml
OCaml
eval/sherrloc/easyocaml++/easyocaml-additional/exams/variant_types.1.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
eval/sherrloc/easyocaml++/easyocaml-additional/exams/variant_types.1.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
eval/sherrloc/easyocaml++/easyocaml-additional/exams/variant_types.1.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
(*F*) type ('a, 'b) t = A of 'a | B of 'b * 'b let a1 = A 100 let b = B ("asd", true) let _ = a = b
11.444444
40
0.427184
17bd07bb8491f477b6aabe970b7a02ccc60110ed
37,556
ml
OCaml
hphp/hack/src/hhbc/semdiff/diff.ml
ActindoForks/hhvm
670822e2b396f2d411f4e841b4ec9ae8627ba965
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/semdiff/diff.ml
ActindoForks/hhvm
670822e2b396f2d411f4e841b4ec9ae8627ba965
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/src/hhbc/semdiff/diff.ml
ActindoForks/hhvm
670822e2b396f2d411f4e841b4ec9ae8627ba965
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
(** * 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. * *) (* TODO: chang...
39.243469
99
0.69893
17b15c6de356bf4113cde86ccb495c1c079777b6
8,044
mli
OCaml
src/lib_protocol_environment/sigs/v1/RPC_directory.mli
noclouds/tezos-master
6c31af7ab3ea782f89f988e389e9b0860207a8d6
[ "MIT" ]
null
null
null
src/lib_protocol_environment/sigs/v1/RPC_directory.mli
noclouds/tezos-master
6c31af7ab3ea782f89f988e389e9b0860207a8d6
[ "MIT" ]
null
null
null
src/lib_protocol_environment/sigs/v1/RPC_directory.mli
noclouds/tezos-master
6c31af7ab3ea782f89f988e389e9b0860207a8d6
[ "MIT" ]
1
2021-06-04T09:31:48.000Z
2021-06-04T09:31:48.000Z
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
35.280702
84
0.524366
176add749454b6a274b2f2ef1b63c67b2dba5c0e
629
ml
OCaml
data/fa15/2706.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/fa15/2706.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/fa15/2706.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let rec assoc (d,k,l) = match l with | [] -> d | h::t -> let (a,b) = h in if a = k then b else assoc d k t;; (* fix let rec assoc (d,k,l) = match l with | [] -> d | h::t -> let (a,b) = h in if a = k then b else assoc (d, k, t);; *) (* changed spans (5,50)-(5,61) (5,56)-(5,57) *) (* type error slice (...
13.104167
67
0.449921
177e882410935140b7bd924918ee8bfbda44e506
2,286
mli
OCaml
infer/src/nullsafe/typeOrigin.mli
smorimoto/infer
374c09c6c7f16e039455fe23cb82ad9eab1094c8
[ "MIT" ]
1
2019-11-23T14:35:34.000Z
2019-11-23T14:35:34.000Z
infer/src/nullsafe/typeOrigin.mli
imbsky/infer
374c09c6c7f16e039455fe23cb82ad9eab1094c8
[ "MIT" ]
null
null
null
infer/src/nullsafe/typeOrigin.mli
imbsky/infer
374c09c6c7f16e039455fe23cb82ad9eab1094c8
[ "MIT" ]
null
null
null
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) open! IStd type t = | NullConst of Location.t (** A null literal in the source *) | NonnullConst of Location.t (** A constan...
40.105263
115
0.699038
175dec33f96456101e62210bedffbe740bd5a376
1,884
mli
OCaml
dyndyn.mli
mjambon/mjambon2016
bd644e0a42cacba56d0260982614d1ef5c8305b3
[ "BSL-1.0", "BSD-3-Clause" ]
1
2020-11-02T04:11:52.000Z
2020-11-02T04:11:52.000Z
dyndyn.mli
mjambon/mjambon2016
bd644e0a42cacba56d0260982614d1ef5c8305b3
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
dyndyn.mli
mjambon/mjambon2016
bd644e0a42cacba56d0260982614d1ef5c8305b3
[ "BSL-1.0", "BSD-3-Clause" ]
null
null
null
(** This module implements arrays that are extensible from both sides. *) type 'a t (** The abstract type of double-extensible arrays. They can be considered as mutable double-ended lists as well as regular arrays. The first index is 0 as in the standard array type. *) val create : unit -> 'a t (** creation of a...
27.705882
75
0.547771
aa9061195ff3a9dc11c7f5869a0f96d99a1703a0
9,807
ml
OCaml
bin/lily.ml
ArthurPV/lily
fa1b06dda40a842a05b4da33191d67daa3fd465e
[ "MIT" ]
5
2021-05-14T02:31:42.000Z
2022-02-24T03:17:42.000Z
bin/lily.ml
ArthurPV/blade
fa1b06dda40a842a05b4da33191d67daa3fd465e
[ "MIT" ]
4
2022-02-01T04:29:31.000Z
2022-03-01T18:42:02.000Z
bin/lily.ml
ArthurPV/lily
fa1b06dda40a842a05b4da33191d67daa3fd465e
[ "MIT" ]
null
null
null
open LilyCommand.Command type build_option = | BuildOptionError | BuildOptionHelp type compile_option = | CompileOptionError | CompileOptionHelp type init_option = | InitOptionError | InitOptionHelp type new_option = | NewOptionError | NewOptionHelp type run_option = | RunO...
41.731915
141
0.471194
aacf63b2e86951b55bd3311e8e90b2bb4d75f5c0
9,899
ml
OCaml
src/lib_base/time.ml
osiz-blockchainapp/mica-hCoinSandbox
f877e01bbef8e748a52490bf0af599c654754148
[ "MIT" ]
null
null
null
src/lib_base/time.ml
osiz-blockchainapp/mica-hCoinSandbox
f877e01bbef8e748a52490bf0af599c654754148
[ "MIT" ]
null
null
null
src/lib_base/time.ml
osiz-blockchainapp/mica-hCoinSandbox
f877e01bbef8e748a52490bf0af599c654754148
[ "MIT" ]
null
null
null
(*****************************************************************************) (* *) (* Open Source License *) (* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *) ...
31.031348
79
0.54652
17b6ed6d08ef2b3d1d81588ad180ecdd16932fc1
3,693
mli
OCaml
unix/capnp_rpc_unix.mli
hannesm/capnp-rpc
309d4d66fb3963f12e6101d9285e56fff9c4702d
[ "Apache-2.0" ]
null
null
null
unix/capnp_rpc_unix.mli
hannesm/capnp-rpc
309d4d66fb3963f12e6101d9285e56fff9c4702d
[ "Apache-2.0" ]
null
null
null
unix/capnp_rpc_unix.mli
hannesm/capnp-rpc
309d4d66fb3963f12e6101d9285e56fff9c4702d
[ "Apache-2.0" ]
null
null
null
(** Helpers for using {!Capnp_rpc_lwt} on traditional operating systems. *) open Capnp_rpc_lwt module Unix_flow = Unix_flow include Capnp_rpc_lwt.VAT_NETWORK with type flow = Unix_flow.flow and module Network = Network module Vat_config : sig type t val create : ?backlog:int -> ?public_address:Netw...
36.564356
104
0.666667
17af6aa6c4e55da972b33f98db6a77b2e92c635e
2,200
ml
OCaml
src/Pagination.ml
samuli/little-search
58af9cb5acf7c6d86942e2f2cc137802ba8a2ed9
[ "MIT" ]
4
2019-09-15T14:42:15.000Z
2020-02-03T17:39:57.000Z
src/Pagination.ml
samuli/little-search
58af9cb5acf7c6d86942e2f2cc137802ba8a2ed9
[ "MIT" ]
null
null
null
src/Pagination.ml
samuli/little-search
58af9cb5acf7c6d86942e2f2cc137802ba8a2ed9
[ "MIT" ]
null
null
null
open Types let recordNeighbors ~id ~ids ~limit ~resultCount = let rec find id ids cnt pageInd pageNum = match ids with | [] -> None | (page,recId) :: rest -> let pageInd = if pageNum <> page then 0 else pageInd in if recId = id then let recInd = (page*limit) + pageInd in S...
31.428571
77
0.575
176978f7d2ea3be02c9b8c66663ed0bdbc0d14c9
2,519
ml
OCaml
src/transform.ml
zapashcanon/Obelisk
056f2aa083e8d7ee27405b289af5de1051c7852f
[ "MIT" ]
null
null
null
src/transform.ml
zapashcanon/Obelisk
056f2aa083e8d7ee27405b289af5de1051c7852f
[ "MIT" ]
null
null
null
src/transform.ml
zapashcanon/Obelisk
056f2aa083e8d7ee27405b289af5de1051c7852f
[ "MIT" ]
null
null
null
(** Transform a normalized {!Ast} towards an {!ExtendedAst}. *) open ExtendedAst open Common open List (** Transform an actual. Note that the anonymous rules are transformed with the help of {!transform_group}. *) let rec transform_actual symbols = function | Ast.Symbol (s, xs) -> transform_symbol symbo...
32.294872
79
0.629218
171353ef792e2ca21d52c59f013b3e4b0ecedd8f
1,761
ml
OCaml
lib/probability_distribution.ml
tari3x/visuals
0162874552e0cceb6ca4c6bdbcd71dff60005343
[ "BSD-3-Clause" ]
1
2017-04-17T15:49:38.000Z
2017-04-17T15:49:38.000Z
lib/probability_distribution.ml
tari3x/visuals
0162874552e0cceb6ca4c6bdbcd71dff60005343
[ "BSD-3-Clause" ]
null
null
null
lib/probability_distribution.ml
tari3x/visuals
0162874552e0cceb6ca4c6bdbcd71dff60005343
[ "BSD-3-Clause" ]
null
null
null
(* Copyright (c) Mihhail Aizatulin (avatar@hot.ee). This file is distributed under a BSD license. See LICENSE file for copyright notice. *) open Base open Common module Elt = struct type 'a t = ('a * float) [@@deriving sexp] let create ~weight x = (x, weight) let weight (_, w) = w end module Elts =...
20.241379
78
0.576945
17c4a1a8cebecb9f6dcc2390f0df61314ecec600
2,017
ml
OCaml
src/lib/blake2/blake2.ml
jjangg96/coda
f9607eb8536e4a897ca48e1e4fe5a085513cf1ff
[ "Apache-2.0" ]
1
2020-05-05T07:31:26.000Z
2020-05-05T07:31:26.000Z
src/lib/blake2/blake2.ml
jjangg96/coda
f9607eb8536e4a897ca48e1e4fe5a085513cf1ff
[ "Apache-2.0" ]
null
null
null
src/lib/blake2/blake2.ml
jjangg96/coda
f9607eb8536e4a897ca48e1e4fe5a085513cf1ff
[ "Apache-2.0" ]
null
null
null
open Core_kernel module Make () = struct let digest_size_in_bits = 256 let digest_size_in_bytes = digest_size_in_bits / 8 module T0 = struct include Digestif.Make_BLAKE2S (struct let digest_size = digest_size_in_bytes end) let hash = Fn.compose String.hash to_raw_string let hash_fold_t ...
24.011905
73
0.639068
1758a2f76877a6143bad21857779141a848f1311
5,496
mli
OCaml
src/percent.mli
polyfish42/core_kernel
cfa98cb601988deaa84e328fe30bd0b3adafa34d
[ "MIT-0", "MIT" ]
null
null
null
src/percent.mli
polyfish42/core_kernel
cfa98cb601988deaa84e328fe30bd0b3adafa34d
[ "MIT-0", "MIT" ]
null
null
null
src/percent.mli
polyfish42/core_kernel
cfa98cb601988deaa84e328fe30bd0b3adafa34d
[ "MIT-0", "MIT" ]
null
null
null
(** A scale factor, not bounded between 0% and 100%, represented as a float. *) open! Import open Std_internal (** Exposing that this is a float allows for more optimization. E.g. compiler can optimize some local refs and not box them. *) type t = private float [@@deriving hash, typerep] (** [of_string] and [t_o...
29.390374
89
0.650291
bc93bd23cdc989c5dcd81187284b8b80de059547
584
ml
OCaml
data/sp14/1526.ml
ucsd-progsys/nate
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
9
2017-08-30T23:00:52.000Z
2021-02-25T23:08:55.000Z
data/sp14/1526.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
null
null
null
data/sp14/1526.ml
ucsd-progsys/ml2
8b1267cd8b10283d8bc239d16a28c654a4cb8942
[ "BSD-3-Clause" ]
1
2022-03-31T19:50:33.000Z
2022-03-31T19:50:33.000Z
let sqsum xs = let f a x = (+) in let base = 2 in List.fold_left f base xs;; (* fix let sqsum xs = let f a x = a in let base = f 2 xs in List.fold_left f base xs;; *) (* changed spans (2,27)-(2,30) (2,45)-(2,46) (2,50)-(2,74) *) (* type error slice (2,15)-(2,74) (2,21)-(2,30) (2,23)-(2,30) (2,27)-(2,30) (2,34)-(...
13.272727
79
0.491438
1785afac645fc95b6f7889f49efea95029f435de
84,294
ml
OCaml
duniverse/base/src/map_intf.ml
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
2
2022-03-03T01:38:24.000Z
2022-03-03T01:54:36.000Z
duniverse/base/src/map_intf.ml
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
1
2021-11-08T19:54:28.000Z
2021-11-08T19:54:28.000Z
duniverse/base/src/map_intf.ml
gpetiot/opam-monorepo
93584def27ee2c4073b437b9405f413c227c9c57
[ "0BSD" ]
1
2022-03-02T19:35:36.000Z
2022-03-02T19:35:36.000Z
open! Import open! T module Or_duplicate = struct type 'a t = [ `Ok of 'a | `Duplicate ] [@@deriving_inline sexp_of] let sexp_of_t : 'a. ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t = fun _of_a -> function | `Ok v0 -> Ppx_sexp_conv_lib.Sexp.List [ Ppx_sexp_c...
32.197861
102
0.522374
17959f9d7ca12341231e52cec754a9528b962797
343
ml
OCaml
data/fa15_min/1195.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
15
2020-05-10T13:06:57.000Z
2021-07-15T19:23:32.000Z
data/fa15/1195.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
4
2020-01-28T22:51:35.000Z
2022-02-10T00:36:31.000Z
data/fa15_min/1195.ml
gsakkas/rite
958a0ad2460e15734447bc07bd181f5d35956d3b
[ "BSD-3-Clause" ]
2
2019-09-19T12:24:29.000Z
2021-08-18T11:44:40.000Z
let rec wwhile (f,b) = match f b with | (h,t) -> if t = false then h else f h;; (* fix let rec wwhile (f,b) = match f b with | (h,t) -> if t = false then h;; *) (* changed spans (2,75)-(2,78) () ConAppG Nothing *) (* type error slice (2,24)-(2,78) (2,30)-(2,31) (2,30)-(2,33) (2,50)-(2,78) (2,68)-(2,69) (2,75)-(...
12.703704
79
0.516035
17a552afe6dd7f96bdc959d3bc4524752d3bd460
3,210
ml
OCaml
parsing/entry.ml
firewall2142/Dedukti
c65e7e66fe4bb8285db1856b8fe2a2532da2bd50
[ "CECILL-B" ]
160
2017-11-16T16:16:09.000Z
2022-03-03T07:14:11.000Z
parsing/entry.ml
firewall2142/Dedukti
c65e7e66fe4bb8285db1856b8fe2a2532da2bd50
[ "CECILL-B" ]
188
2017-11-24T18:14:54.000Z
2022-03-17T09:11:41.000Z
parsing/entry.ml
firewall2142/Dedukti
c65e7e66fe4bb8285db1856b8fe2a2532da2bd50
[ "CECILL-B" ]
19
2018-02-09T10:18:02.000Z
2022-02-26T13:05:00.000Z
open Kernel open Basic open Term type is_opaque = bool type is_assertion = bool type should_fail = bool type test = Convert of term * term | HasType of term * term exception Assert_error of loc type entry = | Decl of loc * ident * Signature.scope * Signature.staticity * term | Def of loc * ident * Signature.s...
34.891304
79
0.568536
173f54d5808957f6b1d71ec7e02c75a551ffc999
153
ml
OCaml
benchmarks/C/max/sol30.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
9
2021-06-04T04:38:13.000Z
2021-12-15T05:45:28.000Z
benchmarks/C/max/sol30.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
null
null
null
benchmarks/C/max/sol30.ml
kupl/LearnML
933f6c61f8a24493e1c2c8acf5c93827ee190d2a
[ "MIT" ]
2
2020-02-06T00:36:38.000Z
2020-07-27T09:53:35.000Z
let rec max : int list -> int = fun l -> match l with |[] -> raise (Failure "error") | [a] -> a | a::b::tl -> if a>b then max (a::tl) else max (b::tl)
21.857143
54
0.522876
1753a88d5964fb4de7ed6d8efb2dee5eb6ae0250
7,031
mli
OCaml
src/cstubs/cstubs.mli
dsheets/ocaml-ctypes
cf65dad7e79a72a5cbb40ef38bf0dc6f17a12e37
[ "MIT" ]
null
null
null
src/cstubs/cstubs.mli
dsheets/ocaml-ctypes
cf65dad7e79a72a5cbb40ef38bf0dc6f17a12e37
[ "MIT" ]
null
null
null
src/cstubs/cstubs.mli
dsheets/ocaml-ctypes
cf65dad7e79a72a5cbb40ef38bf0dc6f17a12e37
[ "MIT" ]
null
null
null
(* * Copyright (c) 2014 Jeremy Yallop. * * This file is distributed under the terms of the MIT License. * See the file LICENSE for details. *) (** Operations for generating C bindings stubs. *) module Types : sig module type TYPE = sig include Ctypes_types.TYPE type 'a const val constant : strin...
34.465686
87
0.676433