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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f387c0cec4932c0207e15bf6ea62856fb9c74d4e | 8,923 | ml | OCaml | src/irmin/watch.ml | gowthamk/irmin | 6fbb2c30afbf92280d1b47a84b5029f230d8f5ff | [
"ISC"
] | null | null | null | src/irmin/watch.ml | gowthamk/irmin | 6fbb2c30afbf92280d1b47a84b5029f230d8f5ff | [
"ISC"
] | 2 | 2020-09-29T09:10:43.000Z | 2020-10-03T08:57:58.000Z | src/irmin/watch.ml | dinosaure/irmin | fe4cc69e9b9e083e5a7072aaa06346df585b739e | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2017 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 PROVIDED "AS... | 32.32971 | 87 | 0.574919 |
f31a2852b6461241383de652920989456d54d834 | 4,059 | ml | OCaml | ulib/ml/FStar_Pervasives_Native.ml | kkohbrok/FStar | 3ea1e45712702830d824fd1efe91e1e99d45804b | [
"Apache-2.0"
] | null | null | null | ulib/ml/FStar_Pervasives_Native.ml | kkohbrok/FStar | 3ea1e45712702830d824fd1efe91e1e99d45804b | [
"Apache-2.0"
] | null | null | null | ulib/ml/FStar_Pervasives_Native.ml | kkohbrok/FStar | 3ea1e45712702830d824fd1efe91e1e99d45804b | [
"Apache-2.0"
] | null | null | null |
type nonrec 'a option = 'a option =
| None
| Some of 'a
let uu___is_None = function None -> true | _ -> false
let uu___is_Some = function Some _ -> true | _ -> false
let __proj__Some__item__v = function Some x -> x | _ -> assert false
(* 'a * 'b *)
type ('a,'b) tuple2 = 'a * 'b
let fst = Pervasives.fst
let snd ... | 39.407767 | 68 | 0.712983 |
f352f33282f6857646e98b1ceb2f0ad6f0ec8246 | 4,364 | ml | OCaml | lib/datapath.ml | askvortsov1/hardcaml-mips | 7ce57aa5f767a3d075b1ad45fb72b5ffccd3f0bf | [
"MIT"
] | 22 | 2021-07-02T02:42:24.000Z | 2022-03-29T19:50:16.000Z | lib/datapath.ml | askvortsov1/hardcaml-mips | 7ce57aa5f767a3d075b1ad45fb72b5ffccd3f0bf | [
"MIT"
] | null | null | null | lib/datapath.ml | askvortsov1/hardcaml-mips | 7ce57aa5f767a3d075b1ad45fb72b5ffccd3f0bf | [
"MIT"
] | 1 | 2021-09-21T14:14:21.000Z | 2021-09-21T14:14:21.000Z | open Hardcaml
open Hardcaml.Signal
module I = struct
type 'a t = { clock : 'a } [@@deriving sexp_of, hardcaml]
end
module O = struct
type 'a t = { writeback_data : 'a; [@bits 32] writeback_pc : 'a [@bits 32] }
[@@deriving sexp_of, hardcaml]
end
let circuit_impl (program : Program.t) (scope : Scope.t) (input : ... | 32.088235 | 80 | 0.710816 |
f3817b4fc4c5fc1b1880eafb120e2c72d4214f3c | 1,893 | mli | OCaml | tbf/tools/crest/cil/_build/src/ext/expcompare.inferred.mli | leostrakosch/testbasedfalsification | 18d08d6cee6fbfbad4d4ebfa7aed235521edec2b | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2018-02-13T17:46:38.000Z | 2022-03-15T06:20:24.000Z | tbf/tools/crest/cil/_build/src/ext/expcompare.inferred.mli | leostrakosch/testbasedfalsification | 18d08d6cee6fbfbad4d4ebfa7aed235521edec2b | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2018-07-17T22:35:02.000Z | 2019-03-11T07:19:00.000Z | tbf/tools/crest/cil/_build/src/ext/expcompare.inferred.mli | leostrakosch/testbasedfalsification | 18d08d6cee6fbfbad4d4ebfa7aed235521edec2b | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2018-05-05T15:16:28.000Z | 2020-03-23T09:40:28.000Z | module E = Errormsg
val isConstType : Cil.typ -> bool
val compareExp : Cil.exp -> Cil.exp -> bool
val compareLval : Cil.lval -> Cil.lval -> bool
val stripNopCasts : Cil.exp -> Cil.exp
val compareExpStripCasts : Cil.exp -> Cil.exp -> bool
val stripCastsForPtrArith : Cil.exp -> Cil.exp
val compareTypes :
?ignoreSign:bo... | 47.325 | 77 | 0.71738 |
f34c84c3e595d0257c2ed044c850912ecead2f90 | 20,633 | ml | OCaml | data/derived/comb/progs/unify/prog0458.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog0458.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0458.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 34.217247 | 208 | 0.638056 |
f36bef5cba5e55efe19bddf3cb184314de38657d | 6,333 | mli | OCaml | ast/versions.mli | kit-ty-kate/ppxlib | 84be87001b2f0f3883bd40f74034076591107957 | [
"MIT"
] | null | null | null | ast/versions.mli | kit-ty-kate/ppxlib | 84be87001b2f0f3883bd40f74034076591107957 | [
"MIT"
] | null | null | null | ast/versions.mli | kit-ty-kate/ppxlib | 84be87001b2f0f3883bd40f74034076591107957 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml Migrate Parsetree *)
(* *)
(* ... | 41.664474 | 113 | 0.586136 |
f35393dc1376551eb4f1061b2934bda3d61de5f1 | 9,913 | ml | OCaml | hphp/hack/src/server/serverDocblockAt.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverDocblockAt.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverDocblockAt.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"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
module Cls = Decl_provider.Class
let get_all_ancestors ctx class_name =
let rec helper classes_to... | 34.54007 | 110 | 0.678402 |
f3565f929db6e302a0e79bd23ed121813a67b186 | 28,161 | ml | OCaml | test/large_native64.ml | ifazk/pp-binary-ints | ddabbb925df3f8c4a1c911c4b884ce76e2550f7e | [
"CC0-1.0"
] | 3 | 2021-12-29T19:13:21.000Z | 2022-01-15T03:10:53.000Z | test/large_native64.ml | ifazk/pp-binary-ints | ddabbb925df3f8c4a1c911c4b884ce76e2550f7e | [
"CC0-1.0"
] | null | null | null | test/large_native64.ml | ifazk/pp-binary-ints | ddabbb925df3f8c4a1c911c4b884ce76e2550f7e | [
"CC0-1.0"
] | null | null | null | open Pp_binary_ints.Nativeint
open Pp_binary_ints.Flags
let configs =
[ { default with separators = false; prefix_non_zero = false }
; { default with separators = false; prefix_non_zero = true }
; { default with separators = true; prefix_non_zero = false }
; { default with separators = true; prefix_non_zero =... | 41.231332 | 89 | 0.761798 |
f31c4787d47722cd8d59b2bea397c54cf87340eb | 1,564 | ml | OCaml | src/bedrock/monad.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 24 | 2019-04-13T21:09:47.000Z | 2022-03-28T10:43:52.000Z | src/bedrock/monad.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 5 | 2019-10-21T08:15:39.000Z | 2020-03-12T08:41:58.000Z | src/bedrock/monad.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 1 | 2020-03-12T08:24:13.000Z | 2020-03-12T08:24:13.000Z | open Util
module type REQ = sig
include Sigs.Monad.REQUIREMENT_BIND
include Sigs.Monad.REQUIREMENT_JOIN with type 'a t := 'a t
end
module Join (M : Sigs.Monad.REQUIREMENT_JOIN) : REQ with type 'a t = 'a M.t =
struct
include M
let bind f m = join (map f m)
end
module Bind (M : Sigs.Monad.REQUIREMENT_BIND) : ... | 21.424658 | 77 | 0.554348 |
f372378d6783aa955d101a088475556bda22f673 | 529 | ml | OCaml | src/lib/blake2/intf.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/blake2/intf.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/blake2/intf.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Core_kernel
module type S = sig
val digest_size_in_bits : int
val digest_size_in_bytes : int
[%%versioned:
module Stable : sig
module V1 : sig
type t [@@deriving sexp, compare, hash, equal]
end
end]
include Hashable.S with type t := t
include Comparable.S with type t := t
val bi... | 18.241379 | 59 | 0.661626 |
d2e8a4ba2dead7ec3fc3f6fdae889ce69e9abbdd | 93,481 | ml | OCaml | src/parser_utils/flow_polymorphic_ast_mapper.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-06-21T01:14:46.000Z | 2020-06-21T01:14:46.000Z | src/parser_utils/flow_polymorphic_ast_mapper.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/parser_utils/flow_polymorphic_ast_mapper.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"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
let ( * ) : 'a 'b 'c 'd. ('a -> 'c) -> ('b -> 'd) -> 'a * 'b -> 'c * 'd =
(fun f g (x, y) -> (f x, g y))
c... | 49.408562 | 101 | 0.647682 |
f33f57f94297dbba7d07a4ef30a85a3952f782e1 | 21,426 | ml | OCaml | src/paritygame/transformations.ml | tcsprojects/pgsolver | 88202c9452ccdcd4092280b4e76c31a16085d14c | [
"BSD-3-Clause"
] | 28 | 2016-04-03T22:53:46.000Z | 2022-03-20T20:53:38.000Z | src/paritygame/transformations.ml | tcsprojects/pgsolver | 88202c9452ccdcd4092280b4e76c31a16085d14c | [
"BSD-3-Clause"
] | 17 | 2015-03-28T15:29:29.000Z | 2019-09-22T16:48:34.000Z | src/paritygame/transformations.ml | tcsprojects/pgsolver | 88202c9452ccdcd4092280b4e76c31a16085d14c | [
"BSD-3-Clause"
] | 17 | 2015-01-06T10:32:50.000Z | 2022-03-22T15:58:23.000Z | open Basics;;
open Tcslist;;
open Tcsset;;
open Tcsarray;;
open Tcsqueue;;
open Tcsbasedata;;
open Paritygame;;
(**************************************************************
* Global Preprocessing *
**************************************************************)
let remove_... | 30.434659 | 137 | 0.570008 |
f3594124b903259792c01bc5fcfcd0cdfdebc4cf | 2,545 | mli | OCaml | src/lazy_deferred.mli | Leonidas-from-XIV/async_kernel | 8e74f62594bf0b3b4c848fe1c5546ecc51195dff | [
"MIT"
] | null | null | null | src/lazy_deferred.mli | Leonidas-from-XIV/async_kernel | 8e74f62594bf0b3b4c848fe1c5546ecc51195dff | [
"MIT"
] | null | null | null | src/lazy_deferred.mli | Leonidas-from-XIV/async_kernel | 8e74f62594bf0b3b4c848fe1c5546ecc51195dff | [
"MIT"
] | null | null | null | (** A delayed computation that can produce a deferred.
Nothing happens with a lazy deferred unless one [force]s it. Forcing a lazy deferred
starts the computation, which will eventually cause the deferred to become determined.
As usual with laziness, multiply forcing a lazy deferred is no different than f... | 40.396825 | 90 | 0.666012 |
f36c9b42c386e10b168aa89351f7ed87561215d9 | 337 | ml | OCaml | utils/time.ml | nickzuber/lets-make-a-compiler | ee2337b116f07c1357f7b70bd09f1503e39fdc88 | [
"MIT"
] | 4 | 2019-02-18T19:56:21.000Z | 2020-02-18T00:38:19.000Z | utils/time.ml | nickzuber/lets-build-a-compiler | ee2337b116f07c1357f7b70bd09f1503e39fdc88 | [
"MIT"
] | null | null | null | utils/time.ml | nickzuber/lets-build-a-compiler | ee2337b116f07c1357f7b70bd09f1503e39fdc88 | [
"MIT"
] | null | null | null |
let format (seconds : float) : string =
let minutes = int_of_float (floor (seconds /. 60.)) in
let seconds' = mod_float seconds 60. in
let seconds_text = if seconds > 0. then Printf.sprintf "%.2fs" seconds' else "" in
let minutes_text = if minutes > 0 then Printf.sprintf "%dm " minutes else "" in
minutes_tex... | 42.125 | 84 | 0.694362 |
f392cd009b776ff472683287319ab20d797fb2bc | 6,053 | ml | OCaml | src/ipv6/ipv6.ml | well-typed-lightbulbs/mirage-tcpip | 259439ba1ac8f2114a549223ce11d121373671ab | [
"0BSD"
] | null | null | null | src/ipv6/ipv6.ml | well-typed-lightbulbs/mirage-tcpip | 259439ba1ac8f2114a549223ce11d121373671ab | [
"0BSD"
] | null | null | null | src/ipv6/ipv6.ml | well-typed-lightbulbs/mirage-tcpip | 259439ba1ac8f2114a549223ce11d121373671ab | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2014 Nicolas Ojeda Bar <n.oje.bar@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 31.201031 | 81 | 0.622501 |
f3195ef520b5e0b4f68ee41d05750ab0e439e71b | 6,259 | ml | OCaml | src/core/error.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 23 | 2019-10-31T11:55:18.000Z | 2021-12-17T10:18:45.000Z | src/core/error.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 29 | 2019-11-27T09:57:52.000Z | 2021-12-13T13:34:56.000Z | src/core/error.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 3 | 2020-10-11T21:43:58.000Z | 2021-05-30T14:38:43.000Z | module StringMap = Map.Make (String)
module Style = struct
type ansi_color =
| Black
| Red
| Green
| Yellow
| Blue
| Magenta
| Cyan
| White
type t =
| Unstyled
| DullColor of ansi_color
| BrightColor of ansi_color
| Underlined
| Styled of t list
type Format.s... | 27.817778 | 98 | 0.574373 |
f30ae9bdf1822c6141b5d3c5464998c395f03a31 | 7,461 | ml | OCaml | src/bfx_tools/optitype.ml | hammerlab/biokepi | d64eb2c891b41bda3444445cd2adf4e3251725d4 | [
"Apache-2.0"
] | 28 | 2015-01-19T15:22:02.000Z | 2019-12-27T17:35:22.000Z | src/bfx_tools/optitype.ml | hammerlab/biokepi | d64eb2c891b41bda3444445cd2adf4e3251725d4 | [
"Apache-2.0"
] | 377 | 2015-02-01T07:03:14.000Z | 2017-11-14T13:28:50.000Z | src/bfx_tools/optitype.ml | hammerlab/biokepi | d64eb2c891b41bda3444445cd2adf4e3251725d4 | [
"Apache-2.0"
] | 3 | 2015-12-19T11:26:28.000Z | 2019-03-05T20:54:47.000Z | open Biokepi_run_environment
open Common
type product = <
host: Ketrew_pure.Host.t;
is_done : Ketrew_pure.Target.Condition.t option ;
path: string >
let move_optitype_product ?host ~path o =
let host = match host with
| None -> o#host
| Some h -> h
in
let vol =
let open Ketrew_pure.Target.Volume ... | 35.528571 | 78 | 0.659965 |
f3914108fa41f17c5ac7bd91092d082f31b7698d | 2,262 | ml | OCaml | tezt/manual_tests/main.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | tezt/manual_tests/main.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | tezt/manual_tests/main.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 1 | 2021-07-19T07:00:37.000Z | 2021-07-19T07:00:37.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 64.628571 | 81 | 0.500442 |
f32d57f1e263b8b23b4150b65f87e420508a46f5 | 875 | ml | OCaml | libraries/cloudformation/lib/deleteStack.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/deleteStack.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/deleteStack.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteStackInput.t
type output = unit
type error = Errors_internal.t
let service = "cloudformation"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[ "... | 23.648649 | 83 | 0.635429 |
f3587427a7081018355f91ea9d7c05119516b292 | 516 | ml | OCaml | bootstrap/test/basis/list/test_rev_groupi.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2021-08-13T04:54:39.000Z | 2021-08-13T04:54:39.000Z | bootstrap/test/basis/list/test_rev_groupi.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2020-02-14T19:21:40.000Z | 2020-02-14T19:21:40.000Z | bootstrap/test/basis/list/test_rev_groupi.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | null | null | null | open! Basis.Rudiments
open! Basis
open List
open Format
let test () =
let lists = [
[];
[9L];
[9L; 9L];
[0L; 1L];
[9L; 1L; 2L; 9L];
[0L; 1L; 2L];
[9L; 1L; 2L; 9L; 4L; 5L; 9L];
] in
let inds i x0 x1 = (i = x1) && (i = succ x0) in
printf "@[<h>";
iter lists ~f:(fun l ->
printf... | 17.793103 | 53 | 0.484496 |
f373d27bf0b4dd230f08749a1e98ad12a1d5955f | 5,585 | ml | OCaml | src/common/utils/__tests__/resizableArray_test.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/common/utils/__tests__/resizableArray_test.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/common/utils/__tests__/resizableArray_test.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2019-05-23T07:00:41.000Z | 2019-05-23T07:00:41.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 OUnit2
let tests =
"resizable_array"
>::: [
( "basic" >:: fun ctxt ->
let arr = ResizableArray.make 1... | 46.932773 | 90 | 0.621307 |
d2dcdddb68386a48b2c24818ea43070d22f1cbd6 | 18,888 | ml | OCaml | propParser.ml | ssomayyajula/refined_logic | 2be3e85e25d40e0172cfa82e6352d78a95b342a6 | [
"MIT"
] | 7 | 2016-12-27T02:35:18.000Z | 2017-03-14T01:16:50.000Z | propParser.ml | ssomayyajula/refined_logic | 2be3e85e25d40e0172cfa82e6352d78a95b342a6 | [
"MIT"
] | null | null | null | propParser.ml | ssomayyajula/refined_logic | 2be3e85e25d40e0172cfa82e6352d78a95b342a6 | [
"MIT"
] | null | null | null |
module Basics = struct
exception Error
type token =
| RPAREN
| OR
| NOT
| LPAREN
| IMPLIES
| FALSE
| EOF
| ATOM of (
# 21 "propParser.mly"
(string)
# 18 "propParser.ml"
)
| AND
end
include Basics
let _eRR =
Basics.Error
type _menhir_env = {
_menhir_lexe... | 41.880266 | 131 | 0.643742 |
f37e2ed58f527d1ee5eb6316f72fc719405a12e0 | 3,297 | mli | OCaml | namespace/namespace_symbols_builtin.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | namespace/namespace_symbols_builtin.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | namespace/namespace_symbols_builtin.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 27.247934 | 79 | 0.510161 |
f336181a7171754e272f375ccb19c06b948d42e7 | 123,501 | ml | OCaml | ocaml-sources/testsuite/tests/misc/sorts.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/misc/sorts.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/misc/sorts.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (* TEST
*)
(* Test bench for sorting algorithms. *)
(*
ocamlopt -noassert sorts.ml -cclib -lunix
*)
open Printf;;
(*
Criteria:
0. stack overhead: at most log n.
1. stable or not.
2. space overhead.
3. speed.
*)
(************************************************************************)
(* auxiliary fun... | 27.715664 | 80 | 0.485648 |
f31539c9b7d949df16106339a0f3a0bab949921b | 1,079 | ml | OCaml | benchmarks/formula/formula1/submissions/sub290.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/formula/formula1/submissions/sub290.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/formula/formula1/submissions/sub290.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
(... | 31.735294 | 64 | 0.492122 |
f3510400cc18fee24d40d883dfaf4322774946fb | 7,588 | ml | OCaml | cil/src/ext/usedef.ml | chrisvrose/deputy-old-mirror | 657350639cfd358ff14090d31813473885c44c7e | [
"BSD-3-Clause"
] | null | null | null | cil/src/ext/usedef.ml | chrisvrose/deputy-old-mirror | 657350639cfd358ff14090d31813473885c44c7e | [
"BSD-3-Clause"
] | null | null | null | cil/src/ext/usedef.ml | chrisvrose/deputy-old-mirror | 657350639cfd358ff14090d31813473885c44c7e | [
"BSD-3-Clause"
] | null | null | null |
open Cil
open Pretty
module E = Errormsg
(** compute use/def information *)
module VS = Set.Make (struct
type t = Cil.varinfo
(* Subtraction is safe since vids are always positive*)
let compare v1 v2 = v1.vid - v2.vid
end... | 33.724444 | 79 | 0.607934 |
f33dd205eeced129c5a7a342042caff19993be03 | 250 | ml | OCaml | Ocaml/Gruppo8/Es15b/ocelia.ml | lucaleone/University-Roma-Tre-tests-and-exams | 67885c03b0311e71e9c7740f36b5751840dfd0e5 | [
"MIT"
] | 1 | 2020-09-06T16:03:15.000Z | 2020-09-06T16:03:15.000Z | Ocaml/Gruppo8/Es15b/ocelia.ml | lucaleone/University-Roma-Tre-tests-and-exams | 67885c03b0311e71e9c7740f36b5751840dfd0e5 | [
"MIT"
] | null | null | null | Ocaml/Gruppo8/Es15b/ocelia.ml | lucaleone/University-Roma-Tre-tests-and-exams | 67885c03b0311e71e9c7740f36b5751840dfd0e5 | [
"MIT"
] | null | null | null | type 'a tree = Empty | Tr of 'a * 'a tree * 'a tree
let rec abr_search k = function
| Empty -> failwith "chiave non esistente"
| Tr((a,b), sx, dx) -> if k=a then b
else if k < a then abr_search k sx
else abr_search k dx | 35.714286 | 51 | 0.576 |
f3010d7c6de1ac287eadc258fbe8e431c071e60c | 65,328 | ml | OCaml | src/hack_forked/utils/lsp/lsp_fmt.ml | AaronAsAChimp/flow | c0368d39bd257db76f34e7af63c8effc3d74a48a | [
"MIT"
] | null | null | null | src/hack_forked/utils/lsp/lsp_fmt.ml | AaronAsAChimp/flow | c0368d39bd257db76f34e7af63c8effc3d74a48a | [
"MIT"
] | null | null | null | src/hack_forked/utils/lsp/lsp_fmt.ml | AaronAsAChimp/flow | c0368d39bd257db76f34e7af63c8effc3d74a48a | [
"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 Hh_core
open Lsp
open Hh_json
open Hh_json_helpers
(************************************************************************)... | 41.876923 | 102 | 0.597309 |
f30cf71be96662228033efbeb985570ad91c77b1 | 364 | mli | OCaml | vendor/incremental/src/raised_exn.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/incremental/src/raised_exn.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/incremental/src/raised_exn.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | (** A module internal to Incremental. Users should see {!Incremental_intf}.
A [Raised_exn.t] is an exception paired with the backtrace that was grabbed at the
time the exception was raised. *)
open! Core_kernel
open! Import
type t [@@deriving sexp_of]
(** [create exn] makes a [t] using [exn] and [Backtrace... | 28 | 86 | 0.706044 |
f358c68b9a44ebd49af90e32c197f57bd244df53 | 2,988 | ml | OCaml | libs/ocaml/neko/main.ml | RblSb/neko | 712989029b08d903cc713db5de0a1cd575f7651b | [
"Apache-2.0"
] | null | null | null | libs/ocaml/neko/main.ml | RblSb/neko | 712989029b08d903cc713db5de0a1cd575f7651b | [
"Apache-2.0"
] | null | null | null | libs/ocaml/neko/main.ml | RblSb/neko | 712989029b08d903cc713db5de0a1cd575f7651b | [
"Apache-2.0"
] | null | null | null | (*
* Neko Compiler
* Copyright (c)2005-2022 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 versio... | 33.573034 | 126 | 0.679719 |
f34282d5e84931e6abb71a100e5f100f6cea094c | 908 | mli | OCaml | infer/src/harness/inhabit.mli | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | infer/src/harness/inhabit.mli | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | infer/src/harness/inhabit.mli | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2013 - Facebook. All rights reserved.
*)
open Utils
(** Generate a procedure that calls a given sequence of methods. Useful for harness/test generation. *)
type lifecycle_trace = (Procname.t * Sil.typ option) list
type callback_trace = (Sil.exp * Sil.typ) list
(** create a procedure named harnes... | 34.923077 | 103 | 0.75 |
f32f42e4870815268ccb1ca2a85c0b123d206a9c | 1,165 | ml | OCaml | frontend.ml | icefoxen/old-opal | fee6f0739d94da0432a409872ab3f3bd134bf3f9 | [
"MIT"
] | null | null | null | frontend.ml | icefoxen/old-opal | fee6f0739d94da0432a409872ab3f3bd134bf3f9 | [
"MIT"
] | null | null | null | frontend.ml | icefoxen/old-opal | fee6f0739d94da0432a409872ab3f3bd134bf3f9 | [
"MIT"
] | null | null | null | (* REP! *)
open Translator
open Vm
let read string =
let lexbuf = Lexing.from_string string in
Parse.main Lex.token lexbuf
;;
let _ =
let stbl = makeSymtbl () in
Stdlib.initLib stbl;
let continue = ref true in
while !continue do
try
Printf.printf "%s:> " stbl.currentNamespaceName;
flus... | 24.787234 | 82 | 0.624034 |
f31066a1ba4da5dca4e83c18d597379c0ac5fb03 | 2,719 | ml | OCaml | src/gen-web/main.ml | SomeBadCoding/somebadcoding.github.io | 12970b5438ce1c50d4903252fd3856e6e79a0176 | [
"MIT"
] | null | null | null | src/gen-web/main.ml | SomeBadCoding/somebadcoding.github.io | 12970b5438ce1c50d4903252fd3856e6e79a0176 | [
"MIT"
] | null | null | null | src/gen-web/main.ml | SomeBadCoding/somebadcoding.github.io | 12970b5438ce1c50d4903252fd3856e6e79a0176 | [
"MIT"
] | null | null | null | open! Base
let base_bootstrap page_title =
(* From there: https://getbootstrap.com/docs/4.5/getting-started/introduction/ *)
String.concat ~sep:""
[
{html|
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-... | 36.743243 | 215 | 0.638838 |
f35e87654230c656df67098eb32e6658dc58d290 | 67,652 | ml | OCaml | src/typing/debug_js.ml | brett-puddick/flow | 0970415dd8f880cbd736c86a37205aff8e5c84ab | [
"MIT"
] | null | null | null | src/typing/debug_js.ml | brett-puddick/flow | 0970415dd8f880cbd736c86a37205aff8e5c84ab | [
"MIT"
] | 2 | 2021-05-09T02:43:12.000Z | 2021-09-02T14:09:40.000Z | src/typing/debug_js.ml | brett-puddick/flow | 0970415dd8f880cbd736c86a37205aff8e5c84ab | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Reason
open Type
open TypeUtil
open Utils_js
let string_of_polarity = function
| Polarity.Negative -> "Negative"
| Polari... | 40.729681 | 111 | 0.592769 |
f31cb3b0b0f571025aff5fb5c4480149c479002b | 1,137 | ml | OCaml | examples/winforms/winforms_test.ml | LexiFi/csml | 1bdffc60b937b0cd23730589b191940cd1861640 | [
"MIT"
] | 66 | 2016-08-25T14:07:28.000Z | 2022-03-06T06:44:10.000Z | examples/winforms/winforms_test.ml | LexiFi/csml | 1bdffc60b937b0cd23730589b191940cd1861640 | [
"MIT"
] | 3 | 2016-08-27T08:18:46.000Z | 2018-09-28T12:05:32.000Z | examples/winforms/winforms_test.ml | LexiFi/csml | 1bdffc60b937b0cd23730589b191940cd1861640 | [
"MIT"
] | 7 | 2016-08-27T02:46:20.000Z | 2017-12-30T19:32:34.000Z | open Csml_iface
open Winforms
let run () =
let f = create_form () in
f # set_text "CSML Winforms example";
let add c = f # add_control (c :> control) in
let n = ref 0 in
let l = create_label () in
l # set_text "0";
l # set_location 10 60;
let set i = n := i; l # set_text (string_of_int i) in
l # ad... | 25.840909 | 74 | 0.598065 |
f30e897fb0dd27357dc05827eb3c827f2271c923 | 1,315 | ml | OCaml | hack_parallel/hack_parallel/utils/handle.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 5 | 2019-02-14T19:46:47.000Z | 2020-01-16T05:48:45.000Z | hack_parallel/hack_parallel/utils/handle.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 4 | 2022-02-15T02:42:33.000Z | 2022-02-28T01:30:07.000Z | hack_parallel/hack_parallel/utils/handle.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 2 | 2019-02-14T19:46:23.000Z | 2020-07-13T03:53:04.000Z | (**
* 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.
*
*)
(* On Win32, u... | 32.875 | 80 | 0.752852 |
f373e7e4d35b030d0dd4b5d131091075e8347172 | 1,456 | ml | OCaml | src/graph/registered_gradients.ml | fishyfriend/tensorflow-ocaml | 52c5f1dec1a8b7dc9bc6ef06abbc07da6cd90d39 | [
"Apache-2.0"
] | 313 | 2016-03-22T01:28:59.000Z | 2022-02-15T19:49:27.000Z | src/graph/registered_gradients.ml | fishyfriend/tensorflow-ocaml | 52c5f1dec1a8b7dc9bc6ef06abbc07da6cd90d39 | [
"Apache-2.0"
] | 30 | 2016-04-15T07:31:21.000Z | 2020-02-02T01:23:56.000Z | src/graph/registered_gradients.ml | fishyfriend/tensorflow-ocaml | 52c5f1dec1a8b7dc9bc6ef06abbc07da6cd90d39 | [
"Apache-2.0"
] | 31 | 2016-03-23T23:06:42.000Z | 2021-11-19T20:50:34.000Z | open Base
let table = Hashtbl.create (module Node.Op_name)
type t =
{ f :
'a. self:([< `float | `double ] as 'a) Node.t -> gradient:'a Node.t
-> Node.p option list
}
let add op t =
let f ~self:(Node.P self) ~gradient:(Node.P gradient) =
match Node.output_type self, Node.output_type gradient wit... | 29.714286 | 87 | 0.631181 |
f302725902f711734ab14d36e374778127beecb5 | 564 | mli | OCaml | src/dune/cached_digest.mli | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | 4 | 2020-02-04T15:33:29.000Z | 2020-02-04T21:37:09.000Z | src/dune/cached_digest.mli | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/cached_digest.mli | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | (** Digest files with caching *)
open Stdune
(** Digest the contents of the following file *)
val file : Path.t -> Digest.t
(** The digest of the following file, if cached *)
val peek_file : Path.t -> Digest.t option
(** Clear the following digest from the cache *)
val remove : Path.t -> unit
(** Same as {!file} bu... | 26.857143 | 61 | 0.68617 |
d2fb66244f1f8dbd13f09caa559a9a20c42cb76c | 1,905 | ml | OCaml | src/constant.ml | mrmr1993/coq-of-ocaml | d875d71b0186a6ec46382f398dc2fb5c555ab48e | [
"MIT"
] | 1 | 2022-03-21T15:44:04.000Z | 2022-03-21T15:44:04.000Z | src/constant.ml | mrmr1993/coq-of-ocaml | d875d71b0186a6ec46382f398dc2fb5c555ab48e | [
"MIT"
] | 2 | 2018-04-02T14:32:30.000Z | 2018-05-10T08:16:24.000Z | src/constant.ml | mrmr1993/coq-of-ocaml | d875d71b0186a6ec46382f398dc2fb5c555ab48e | [
"MIT"
] | null | null | null | (** Constants. *)
open Asttypes
open SmartPrint
(** A constant can be an integer, a natural number (used for the non-termination monad) *)
type t =
| Int of int
| Char of char
| String of string
(** Pretty-print a constant. *)
let pp (c : t) : SmartPrint.t =
match c with
| Int n -> !^ "Int" ^-^ parens (OCam... | 29.307692 | 95 | 0.581102 |
f357e0bdf1d0cecf557597750b51428163bb2905 | 2,500 | mli | OCaml | src/dune_engine/fs_memo.mli | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | src/dune_engine/fs_memo.mli | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 1 | 2019-09-17T12:49:47.000Z | 2019-09-17T12:49:47.000Z | src/dune_engine/fs_memo.mli | staronj/dune | cf0ceccef1e177625b9361323bd7a3401a988d45 | [
"MIT"
] | null | null | null | open Import
(** [init] must be called at initialization. Returns the set of nodes that need
to be invalidated because they were accessed before [init] was called. *)
val init : dune_file_watcher:Dune_file_watcher.t option -> Memo.Invalidation.t
(** All functions in this module raise a code error when given a path... | 45.454545 | 80 | 0.7356 |
f3476661cc602413b9548bdde1819d3972dc631e | 10,053 | ml | OCaml | hphp/hack/src/search/hackSearchService.ml | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/search/hackSearchService.ml | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/search/hackSearchService.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
... | 34.785467 | 80 | 0.576743 |
d2da071c7ed344ea623e18f75797d586a68c1ae2 | 43,849 | ml | OCaml | ocaml-sources/ocamldoc/odoc_man.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/ocamldoc/odoc_man.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/ocamldoc/odoc_man.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 33.218939 | 98 | 0.495678 |
d2deb6c097acd6f42185ccb40a9cd79a684beef2 | 4,362 | ml | OCaml | duniverse/ctypes/tests/test-constants/test_constants.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ctypes/tests/test-constants/test_constants.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ctypes/tests/test-constants/test_constants.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"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.
*)
open OUnit2
open Ctypes
let testlib = Dl.(dlopen ~filename:"../clib/dlltest_functions_stubs.so" ~flags:[RTLD_NOW])
module Constants = Types.Struct_stubs(Generated_struc... | 40.766355 | 90 | 0.740257 |
f31a161dc8b6a03011c0880afeec84f11883b33b | 5,294 | mli | OCaml | src/or_error.mli | sangwoo-joh/base | 25e68e4a33c8339d95cb7e89485410d9be7f8771 | [
"MIT"
] | 1 | 2021-03-26T02:53:17.000Z | 2021-03-26T02:53:17.000Z | src/or_error.mli | sangwoo-joh/base | 25e68e4a33c8339d95cb7e89485410d9be7f8771 | [
"MIT"
] | null | null | null | src/or_error.mli | sangwoo-joh/base | 25e68e4a33c8339d95cb7e89485410d9be7f8771 | [
"MIT"
] | null | null | null | (** Type for tracking errors in an [Error.t]. This is a specialization of the [Result]
type, where the [Error] constructor carries an [Error.t].
A common idiom is to wrap a function that is not implemented on all platforms, e.g.,
{[val do_something_linux_specific : (unit -> unit) Or_error.t]}
*)
open! Im... | 41.03876 | 90 | 0.647903 |
f36a914c7f5b89ca11094b9716cf9c741c6882c6 | 3,627 | ml | OCaml | nondeterminism.ml | dariusf/effects-examples | 618bf7cbac78a33f850540f608f1171b38c0f7e3 | [
"0BSD"
] | 79 | 2020-06-11T13:03:50.000Z | 2022-03-22T11:26:31.000Z | nondeterminism.ml | dariusf/effects-examples | 618bf7cbac78a33f850540f608f1171b38c0f7e3 | [
"0BSD"
] | 11 | 2020-06-04T04:49:52.000Z | 2022-03-22T11:19:35.000Z | nondeterminism.ml | dariusf/effects-examples | 618bf7cbac78a33f850540f608f1171b38c0f7e3 | [
"0BSD"
] | 10 | 2020-08-09T22:38:04.000Z | 2022-01-21T18:02:57.000Z | (** Coin flipping -- non-determinism as an algebraic effect **)
(* This example is adapted from Kammar et. al (2013) *)
(* Non-determinism is an effect given by an operation Choose, that
returns a boolean. *)
effect Choose : bool
let choose () = perform Choose
(* An example non-deterministic computation: A coin to... | 34.875 | 165 | 0.670802 |
f31e1f7de2ff509c0fbae3de3b8e358379cfedf7 | 210 | mli | OCaml | lib/server/state/internal.mli | giltho/ocaml-lsplib | 64ad0532bba22c0baacba04e83d5e760f9466934 | [
"MIT"
] | null | null | null | lib/server/state/internal.mli | giltho/ocaml-lsplib | 64ad0532bba22c0baacba04e83d5e760f9466934 | [
"MIT"
] | 2 | 2018-11-19T18:03:17.000Z | 2019-04-01T16:41:18.000Z | lib/server/state/internal.mli | giltho/ocaml-lsp-implementation | 64ad0532bba22c0baacba04e83d5e760f9466934 | [
"MIT"
] | null | null | null | (** Contains internal configuration *)
val get_log_channel : unit -> Lwt_io.output Lwt_io.channel
val set_log_channel : Lwt_io.output Lwt_io.channel -> unit
val client_channel : Lwt_io.output Lwt_io.channel
| 26.25 | 58 | 0.785714 |
f3622737e12838f58d1a0d7a0b713d8ecc84c05e | 311 | mli | OCaml | src/lint/lint_table_trailing.mli | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 23 | 2019-10-31T11:55:18.000Z | 2021-12-17T10:18:45.000Z | src/lint/lint_table_trailing.mli | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 29 | 2019-11-27T09:57:52.000Z | 2021-12-13T13:34:56.000Z | src/lint/lint_table_trailing.mli | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 3 | 2020-10-11T21:43:58.000Z | 2021-05-30T14:38:43.000Z | (** Checks for trailing commas/semicolons on tables. *)
(** The separator to use between table fields. *)
module Separator : sig
type t =
| Comma
| Semicolon
val token : t -> IlluaminateCore.Token.t
val show : t -> string
val options : t IlluaminateConfig.Category.key
end
include Linter.S
| 18.294118 | 55 | 0.684887 |
f30bb7d8b2f0a50a442e87997ac4e5db11f935bb | 6,984 | ml | OCaml | pyrePath.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | null | null | null | pyrePath.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | null | null | null | pyrePath.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 1 | 2021-02-20T13:09:30.000Z | 2021-02-20T13:09:30.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
type path = string [@@deriving compare, eq, show, sexp, hash]
module AbsolutePath = struct
type t = path [@@deriving ... | 25.582418 | 95 | 0.681701 |
d2fd66eb35aea431d2aff63ee8ad3357a05f6293 | 678 | ml | OCaml | code.ml | brunomspereira/-Largest-common-contiguous-subsequences-between-two-branches-of-DNA | b4da0796fac74c6ba9726f2d0247e34c542411b5 | [
"MIT"
] | null | null | null | code.ml | brunomspereira/-Largest-common-contiguous-subsequences-between-two-branches-of-DNA | b4da0796fac74c6ba9726f2d0247e34c542411b5 | [
"MIT"
] | null | null | null | code.ml | brunomspereira/-Largest-common-contiguous-subsequences-between-two-branches-of-DNA | b4da0796fac74c6ba9726f2d0247e34c542411b5 | [
"MIT"
] | null | null | null | let word1 = read_line();;
let word2 = read_line();;
let size1 = String.length word1;;
let size2 = String.length word2;;
let rec lcs count s1 s2 w1 w2=
if s1 == 0 || s2 == 0
then
count
else
if w1.[s1-1] == w2.[s2-1]
then
let x = lcs (count + 1) (s1-1) (s2-1) (w1) (w2) in
let y... | 30.818182 | 89 | 0.488201 |
f363ad33c03cd98add25fd8216b5545fe53e71e0 | 12,569 | mli | OCaml | src/lustre/lustreAst.mli | arjunvish/kind2 | adb70ce68997bf41e1ba097826428683a074929a | [
"Apache-2.0"
] | null | null | null | src/lustre/lustreAst.mli | arjunvish/kind2 | adb70ce68997bf41e1ba097826428683a074929a | [
"Apache-2.0"
] | null | null | null | src/lustre/lustreAst.mli | arjunvish/kind2 | adb70ce68997bf41e1ba097826428683a074929a | [
"Apache-2.0"
] | null | null | null | (* This file is part of the Kind 2 model checker.
Copyright (c) 2015 by the Board of Trustees of the University of Iowa
Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You
may obtain a copy of the License at
http://www.a... | 32.311054 | 84 | 0.713342 |
f3724f12daf5b76221a9c59f97b9dc2f9d2fb426 | 8,932 | ml | OCaml | src/inflate.ml | Leonidas-from-XIV/escalate | aed7c646cd81419ffe997647bfb3bfddc39920d5 | [
"Zlib"
] | 5 | 2015-02-24T19:50:25.000Z | 2021-09-14T13:32:41.000Z | src/inflate.ml | Leonidas-from-XIV/escalate | aed7c646cd81419ffe997647bfb3bfddc39920d5 | [
"Zlib"
] | null | null | null | src/inflate.ml | Leonidas-from-XIV/escalate | aed7c646cd81419ffe997647bfb3bfddc39920d5 | [
"Zlib"
] | null | null | null | (**
* decompress DEFLATE streams
* Copyright (c) 2010, 2015 Marek Kubica <marek@xivilization.net>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to an... | 28.906149 | 85 | 0.581953 |
d2de586333b82a77e1ba32595c9974c9cf82ca27 | 4,989 | mli | OCaml | src/mappable_types.mli | kit-ty-kate/travesty | 640909813a1141607ae663c415e72390bf95f753 | [
"MIT"
] | null | null | null | src/mappable_types.mli | kit-ty-kate/travesty | 640909813a1141607ae663c415e72390bf95f753 | [
"MIT"
] | null | null | null | src/mappable_types.mli | kit-ty-kate/travesty | 640909813a1141607ae663c415e72390bf95f753 | [
"MIT"
] | null | null | null | (* This file is part of 'travesty'.
Copyright (c) 2018 by Matt Windsor
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 limitation
the rights ... | 36.683824 | 77 | 0.656244 |
d2dae65ce60e7520b3c31c8afd2bc755146d9b4c | 3,872 | mli | OCaml | src/ctre.mli | aliibrahim80/qeditas | f4871bd20833cd08a215f9d5fc9df2d362cba410 | [
"MIT"
] | 16 | 2017-01-26T10:54:22.000Z | 2021-04-24T15:10:52.000Z | src/ctre.mli | input-output-hk/qeditas | f4871bd20833cd08a215f9d5fc9df2d362cba410 | [
"MIT"
] | null | null | null | src/ctre.mli | input-output-hk/qeditas | f4871bd20833cd08a215f9d5fc9df2d362cba410 | [
"MIT"
] | 3 | 2016-12-28T12:22:45.000Z | 2017-06-17T14:39:32.000Z | (* Copyright (c) 2015-2016 The Qeditas developers *)
(* Distributed under the MIT software license, see the accompanying
file COPYING or http://www.opensource.org/licenses/mit-license.php. *)
open Big_int
open Hash
open Db
open Mathdata
open Assets
open Tx
val datadir : unit -> string
val reward_maturation : int6... | 35.522936 | 140 | 0.684143 |
f35087bc9116f46351b846115a23da6133853ea8 | 6,706 | ml | OCaml | statistics.ml | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | 1 | 2020-08-12T14:33:46.000Z | 2020-08-12T14:33:46.000Z | statistics.ml | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | null | null | null | statistics.ml | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open Pyre
let enabled = ref true
let cache = String.Table.create ()
let size = 500
let flush_timeout = 6.0 *. 3600.0 (* Seconds... | 31.933333 | 97 | 0.631524 |
f310657947b7941e2743d9c04444d92351fed96b | 357 | mli | OCaml | src/raised_exn.mli | diaozheng999/incremental | 240c52e868d915543c4a8309e9c4512ae37868f6 | [
"MIT"
] | 725 | 2015-07-06T19:39:26.000Z | 2022-03-25T07:08:27.000Z | src/raised_exn.mli | diaozheng999/incremental | 240c52e868d915543c4a8309e9c4512ae37868f6 | [
"MIT"
] | 13 | 2015-07-07T14:27:20.000Z | 2021-09-07T13:32:57.000Z | src/raised_exn.mli | diaozheng999/incremental | 240c52e868d915543c4a8309e9c4512ae37868f6 | [
"MIT"
] | 51 | 2016-02-01T16:31:33.000Z | 2022-03-22T23:35:24.000Z | (** A module internal to Incremental. Users should see {!Incremental_intf}.
A [Raised_exn.t] is an exception paired with the backtrace that was grabbed at the
time the exception was raised. *)
open! Core
open! Import
type t [@@deriving sexp_of]
(** [create exn] makes a [t] using [exn] and [Backtrace.Exn.mo... | 27.461538 | 86 | 0.70028 |
f33e10b2a8e87150d3e626f2e3657ce835c15d8c | 5,845 | mli | OCaml | src/common/lints/exactCover.mli | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2019-07-30T15:59:45.000Z | 2019-07-30T15:59:45.000Z | src/common/lints/exactCover.mli | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/common/lints/exactCover.mli | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(*
* An ExactCover.t represents an exact cover over 1 file.
*
* See https://en.wikipedia.org/wiki/Exact_cover; the short versio... | 44.280303 | 98 | 0.737382 |
d2edc1fc19d286a0f4d5c7940c3225429ec0d4c7 | 3,567 | mli | OCaml | src/lib_shell/chain_validator.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_shell/chain_validator.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_shell/chain_validator.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 45.730769 | 109 | 0.591534 |
f36f6ce07e1c235d483efdf728394d31cea117bf | 101,201 | ml | OCaml | src/ocaml/preprocess/404/parser_recover.ml | hcarty/merlin | f64516562d582885a4e5451ed9eab858dc4ee224 | [
"MIT"
] | null | null | null | src/ocaml/preprocess/404/parser_recover.ml | hcarty/merlin | f64516562d582885a4e5451ed9eab858dc4ee224 | [
"MIT"
] | null | null | null | src/ocaml/preprocess/404/parser_recover.ml | hcarty/merlin | f64516562d582885a4e5451ed9eab858dc4ee224 | [
"MIT"
] | null | null | null | open Parser_raw
module Default = struct
open Parsetree
open Ast_helper
let default_loc = ref Location.none
let default_expr () =
let id = Location.mkloc "merlin.hole" !default_loc in
Exp.mk ~loc:!default_loc (Pexp_extension (id, PStr []))
let default_pattern () = Pat.any ~loc:!default_loc ()
let d... | 33.510265 | 3,118 | 0.575785 |
f327d5a4942ce81def4a1b5b7cc058352cbcf5c7 | 4,286 | ml | OCaml | ark/arkUtil.ml | sumanthsprabhu/strategy-improvement | 12c1d45980f3563f0cfb97bc764e05b22687f83a | [
"MIT"
] | null | null | null | ark/arkUtil.ml | sumanthsprabhu/strategy-improvement | 12c1d45980f3563f0cfb97bc764e05b22687f83a | [
"MIT"
] | null | null | null | ark/arkUtil.ml | sumanthsprabhu/strategy-improvement | 12c1d45980f3563f0cfb97bc764e05b22687f83a | [
"MIT"
] | null | null | null | open BatPervasives
module A = BatDynArray
(* Search for an index in a sorted array *)
let search ?compare:(compare = Pervasives.compare) v array =
let rec go min max =
if max < min then raise Not_found
else begin
let mid = min + ((max - min) / 2) in
let cmp = compare v (A.get array mid) in
... | 28.573333 | 75 | 0.582594 |
f37506bd9e77cd5a2f874a8b4647b79eff531668 | 486 | ml | OCaml | testsuite/main.ml | michipili/lemonade | 3de44a36eaf3429f10f1242ab3458405ef83400a | [
"CECILL-B"
] | 14 | 2015-09-02T22:42:55.000Z | 2017-08-24T21:05:07.000Z | testsuite/main.ml | foretspaisibles/lemonade | 3de44a36eaf3429f10f1242ab3458405ef83400a | [
"CECILL-B"
] | 9 | 2015-08-13T22:58:20.000Z | 2016-07-11T04:55:02.000Z | testsuite/main.ml | michipili/lemonade | 3de44a36eaf3429f10f1242ab3458405ef83400a | [
"CECILL-B"
] | 1 | 2021-07-16T21:26:45.000Z | 2021-07-16T21:26:45.000Z | (* Main -- Entry point of the test suite
Lemonade (https://github.com/michipili/lemonade)
This file is part of Lemonade
Copyright © 2013–2015 Michael Grünewald
This file must be used under the terms of the CeCILL-B.
This source file is licensed as described in the file COPYING, which
you should hav... | 32.4 | 71 | 0.730453 |
f36478344816c487fb12c5bd189672292c8f590a | 19,343 | ml | OCaml | data/derived/comb/progs/unify/prog4060.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog4060.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4060.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.618887 | 208 | 0.658585 |
f356868c23dce57673d1439099fadf8f5073b397 | 456 | ml | OCaml | src/debug.ml | mckirk/func-drat | 57d6e1dd7832760b5c22f13132b8466d79dbaccf | [
"MIT"
] | null | null | null | src/debug.ml | mckirk/func-drat | 57d6e1dd7832760b5c22f13132b8466d79dbaccf | [
"MIT"
] | null | null | null | src/debug.ml | mckirk/func-drat | 57d6e1dd7832760b5c22f13132b8466d79dbaccf | [
"MIT"
] | null | null | null | (*pp cppo *)
#ifdef DEBUG
#define dprintf(args) printf args
#else
#define dprintf(args) ()
#endif
#ifdef VERBOSE
#define vprintf(args) printf args
#else
#define vprintf(args) ()
#endif
#ifdef ASSERTS
#define dassert(arg) (if not (arg) then Printf.eprintf "Assertion failed: %s\n" STRINGIFY(arg); assert (arg))
#else
#... | 19.826087 | 109 | 0.719298 |
d2fc07a47ef7d30f1ca47954a79f549a2cff3f33 | 7,804 | ml | OCaml | src/common/options.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/common/options.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/common/options.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.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.
*)
type esproposal_feature_mode =
| ESPROPOSAL_ENABLE
| ESPROPOSAL_IGNORE
| ESPROPOSAL_WARN
type file_watcher =
| NoFileWatc... | 29.338346 | 93 | 0.817145 |
f35ee93ae79fe1a13a338f24eb013bc12352c2ef | 9,457 | ml | OCaml | server/cqrsLib/projection.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | 5 | 2015-01-30T06:16:32.000Z | 2020-04-14T09:08:49.000Z | server/cqrsLib/projection.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | server/cqrsLib/projection.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | open Std
open Common
let projection_run_functions = ref []
(* Projection methods : public side
================================ *)
(* Projections are a NASTY piece of work.
They source events of different types from multiple streams, so
it is impossible to keep track of all the individual streams that... | 31.523333 | 106 | 0.628423 |
d2da4b4175f4788a76edb455accbcd4df48cf5f8 | 6,827 | ml | OCaml | data/derived/comb/progs/unify/prog0520.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog0520.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0520.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs =
match xs with
[] -> 0
| t::h ->
t + sumList h;;
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let _ = sumList []
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ =... | 24.469534 | 94 | 0.633075 |
f33da8e11dca722a29345ba3d2e285fc0a28972f | 13,425 | ml | OCaml | litmus/PPCCompile_litmus.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | litmus/PPCCompile_litmus.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | litmus/PPCCompile_litmus.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 29.701327 | 80 | 0.474786 |
f31efc96ba88be2c2fa241e9c126a89c3c793409 | 2,853 | mli | OCaml | src/proto_009_PsFLorBA/lib_delegate/client_baking_highwatermarks.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_delegate/client_baking_highwatermarks.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_delegate/client_baking_highwatermarks.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 43.892308 | 79 | 0.553803 |
f389f0c173db7ead30c1c4d999c230c781e93e03 | 3,082 | ml | OCaml | OCamL/06/caml_006_exceptions.ml | Pantoofle/Language-Practice | f5d4b3f5eb745f0e9abf50f2ddb08fd902225f07 | [
"MIT"
] | null | null | null | OCamL/06/caml_006_exceptions.ml | Pantoofle/Language-Practice | f5d4b3f5eb745f0e9abf50f2ddb08fd902225f07 | [
"MIT"
] | null | null | null | OCamL/06/caml_006_exceptions.ml | Pantoofle/Language-Practice | f5d4b3f5eb745f0e9abf50f2ddb08fd902225f07 | [
"MIT"
] | null | null | null | (* Petit interlude: l'égalité en Caml ********************************)
1 = 1.0;;
(* Ceci n'est pas ce qu'on voudrait écrire : comprenez pourquoi le type retourné nous l'indique. *)
let b1 = fun x -> x = fun k -> k+0
(* Prend une fonction x et regarde si elle vaut fun k -> k+0*)
... | 22.014286 | 99 | 0.576249 |
d2f6eaa02e58395903296be2ac65dba9e1c32d96 | 115 | ml | OCaml | build/bsdowl-ocaml/testsuite/main.ml | michipili/anvil | b74f984a8c89f1e7bc10249509670fdfa5afcf60 | [
"CECILL-B"
] | 3 | 2015-03-18T17:54:04.000Z | 2017-05-12T16:13:15.000Z | build/bsdowl-ocaml/testsuite/main.ml | michipili/anvil | b74f984a8c89f1e7bc10249509670fdfa5afcf60 | [
"CECILL-B"
] | 6 | 2015-03-18T22:36:34.000Z | 2017-04-12T14:03:30.000Z | build/bsdowl-ocaml/testsuite/main.ml | michipili/anvil | b74f984a8c89f1e7bc10249509670fdfa5afcf60 | [
"CECILL-B"
] | null | null | null | (* Main -- Entry point of the test suite for ${ANVIL_PROJECT}
${ANVIL_LICENSE_BLOB} *)
let () = Broken.main ()
| 19.166667 | 61 | 0.652174 |
f38021445dbbc19881d1b45ef86bed7381c92ee8 | 6,337 | ml | OCaml | src/kind2.ml | daniel-larraz/kind2 | 168918803d5f834676c1d328573ee32b2bedee6e | [
"Apache-2.0"
] | null | null | null | src/kind2.ml | daniel-larraz/kind2 | 168918803d5f834676c1d328573ee32b2bedee6e | [
"Apache-2.0"
] | null | null | null | src/kind2.ml | daniel-larraz/kind2 | 168918803d5f834676c1d328573ee32b2bedee6e | [
"Apache-2.0"
] | 1 | 2021-08-24T11:58:27.000Z | 2021-08-24T11:58:27.000Z | (* This file is part of the Kind 2 model checker.
Copyright (c) 2015 by the Board of Trustees of the University of Iowa
Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You
may obtain a copy of the License at
http://www.a... | 31.216749 | 86 | 0.618431 |
d2e09eb461128d824f62eca8dbbaa992a5a637de | 1,874 | ml | OCaml | data/seminal/20060323-22:59:38-e7c2c654f54054eb7c19d03cfec68e3b.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/seminal/20060323-22:59:38-e7c2c654f54054eb7c19d03cfec68e3b.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/seminal/20060323-22:59:38-e7c2c654f54054eb7c19d03cfec68e3b.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 3 | 2016-10-11T21:36:24.000Z | 2021-12-08T21:52:40.000Z | type exp = Int of int | Var of string
| Plus of exp * exp | Times of exp * exp
type stmt = Skip | Assign of string * exp
| Seq of stmt * stmt
| If of exp * stmt * stmt
| While of exp * stmt
| SaveHeap of string
| RestoreHeap of string
type heap = ... | 30.225806 | 80 | 0.520811 |
f39c05b26f5a723ddcf2c39159900618454e8aee | 3,271 | ml | OCaml | server/src/user_state.ml | janestreet/memtrace_viewer | 427c441f8a89455a7fc7c696e61bb881de57c49b | [
"MIT"
] | 20 | 2020-09-16T01:37:59.000Z | 2022-02-11T14:27:46.000Z | server/src/user_state.ml | janestreet/memtrace_viewer | 427c441f8a89455a7fc7c696e61bb881de57c49b | [
"MIT"
] | 9 | 2020-09-16T08:55:01.000Z | 2022-03-26T01:18:06.000Z | server/src/user_state.ml | janestreet/memtrace_viewer | 427c441f8a89455a7fc7c696e61bb881de57c49b | [
"MIT"
] | 1 | 2021-12-17T02:50:49.000Z | 2021-12-17T02:50:49.000Z | open! Core
open! Async
open Memtrace_viewer_common
let percent x = x /. 100.
(* Allocation size (as percentage of total) below which a node is pruned from the trie
returned to the client. *)
let default_significance_frequency = 0.5 |> percent
(* Upper bound on measurement errors (used in the substring heavy hitte... | 25.960317 | 90 | 0.693672 |
f33fae2e6e79fc0f7573158eec1dbe67912c601c | 19,751 | ml | OCaml | test/test_legacy_bonsai.ml | osener/bonsai | 761d04847d5f947318b64c0a46dffa17ad413536 | [
"MIT"
] | null | null | null | test/test_legacy_bonsai.ml | osener/bonsai | 761d04847d5f947318b64c0a46dffa17ad413536 | [
"MIT"
] | null | null | null | test/test_legacy_bonsai.ml | osener/bonsai | 761d04847d5f947318b64c0a46dffa17ad413536 | [
"MIT"
] | null | null | null | open! Core
open! Import
(* We need to fake the source-code position because this test is run in
two files with different names
In particular, we can't just use [print_s ~hide_positions:true] because that
only hides line and column numbers, but includes the file name. *)
let dummy_source_code_position =
Sou... | 29.435171 | 100 | 0.60559 |
f375d9365e7d7a10e5bc38ebecc113f7283aa5bb | 1,617 | ml | OCaml | libraries/kms/lib/verify.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/kms/lib/verify.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/kms/lib/verify.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = VerifyRequest.t
type output = VerifyResponse.t
type error = Errors_internal.t
let service = "kms"
let signature_version = Request.V4
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)... | 26.508197 | 90 | 0.620903 |
f308bcb8dc042f19e0532cc1b2b5a60985c3853f | 1,894 | ml | OCaml | data/sp14_min/0086.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/0086.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0086.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let s1 = List.length l1 in
let s2 = List.length l2 in
if s1 < s2
then (((clone 0 (s2 - s1)) @ l1), l2)
else if s2 < s1 then (l1, ((clone 0 (s1 - s2)) @ l2)) else (l1, l2);;
let rec removeZero l =
match l with | [] -> ... | 22.547619 | 77 | 0.520591 |
f3778588f1ce74b91ba6bebe5cc84672e548c1d6 | 624 | ml | OCaml | examples/translator.ml | thomasblanc/curry-containers | 821c56e5485889570e0835627b43c47f5001cd43 | [
"BSD-2-Clause"
] | 6 | 2015-06-15T22:39:55.000Z | 2021-02-09T06:23:59.000Z | examples/translator.ml | thomasblanc/curry-flavor | 821c56e5485889570e0835627b43c47f5001cd43 | [
"BSD-2-Clause"
] | null | null | null | examples/translator.ml | thomasblanc/curry-flavor | 821c56e5485889570e0835627b43c47f5001cd43 | [
"BSD-2-Clause"
] | 1 | 2015-06-15T14:19:08.000Z | 2015-06-15T14:19:08.000Z | (* This file provides a simple nested map over different datas *)
module String = String
module M = CurryMap.SafeFind
(CurryMap.Bind
(CurryMap.Nest ( String ) ( CurryMap.Make ( String ) ) ) (String) )
(struct type t = string let bottom = "" end)
open M
let en = "en"
let fr = "fr"
let translate_db :... | 22.285714 | 74 | 0.63141 |
f39ec3805666bb92f2a371e85e3190e9dd533589 | 22,934 | ml | OCaml | infer/src/checkers/checkers.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | 1 | 2016-12-19T07:33:16.000Z | 2016-12-19T07:33:16.000Z | infer/src/checkers/checkers.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | infer/src/checkers/checkers.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2013 - 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... | 37.596721 | 109 | 0.62815 |
f39b5b85a2ffc31094dc9a6d0f238c657c2b7f2a | 1,049 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/tool-ocaml/t171-envacc.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/tool-ocaml/t171-envacc.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/tool-ocaml/t171-envacc.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (* TEST
include tool-ocaml-lib
flags = "-w a"
ocaml_script_as_argument = "true"
* setup-ocaml-build-env
** ocaml
*)
open Lib;;
let x = 5 in
let y = 2 in
let z = 1 in
let a = 4 in
let b = 3 in
let f _ = ignore x; ignore y; ignore z; ignore a; b in
if f 0 <> 3 then raise Not_found
;;
(**
0 CONSTINT 42
2 P... | 17.196721 | 54 | 0.5653 |
d2f6f78d622882ce9c264d9f46ffcf8290a19e79 | 3,211 | ml | OCaml | src/external/ocaml-dune/src/colors.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2021-03-12T10:46:21.000Z | 2021-03-12T10:46:21.000Z | src/external/ocaml-dune/src/colors.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/external/ocaml-dune/src/colors.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | open! Stdune
open Import
type styles = Ansi_color.Style.t list
let apply_string styles str =
sprintf "%s%s%s"
(Ansi_color.Style.escape_sequence styles)
str
(Ansi_color.Style.escape_sequence [])
let colorize =
let color_combos =
let open Ansi_color.Color in
[| Blue, Bright_green
... | 25.484127 | 75 | 0.605419 |
f35e5a8ee32b616257c571cb3e22570ae54b46d5 | 18,967 | ml | OCaml | hphp/hack/src/js/hh_ide.ml | Seldaek/hhvm | 3d9786b8cfba6cf60b830e367b11f009f93ec59e | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-03-09T04:27:14.000Z | 2021-03-09T04:27:14.000Z | hphp/hack/src/js/hh_ide.ml | chengky/hhvm | 2c0e91417ba563176b79178148dc9e51ef3b302b | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/js/hh_ide.ml | chengky/hhvm | 2c0e91417ba563176b79178148dc9e51ef3b302b | [
"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.
*
*)
open Coverage... | 35.452336 | 99 | 0.602151 |
f37f60ed41452484d23b622a7833d19de088b3e1 | 193 | ml | OCaml | src/rolib/item.ml | olrunBottom/calculator | 16d7d8e4fdeede77679f2a7ea75222f55011097a | [
"Apache-2.0"
] | null | null | null | src/rolib/item.ml | olrunBottom/calculator | 16d7d8e4fdeede77679f2a7ea75222f55011097a | [
"Apache-2.0"
] | null | null | null | src/rolib/item.ml | olrunBottom/calculator | 16d7d8e4fdeede77679f2a7ea75222f55011097a | [
"Apache-2.0"
] | null | null | null |
module Weapon = struct
type weaponType = BareHanded | Dagger | Sword | Spear | Axe | Mace | Rod
| Bow | Katar | Book | Knuckle | Instrument | Whip | Gun | Shuriken
end
| 27.571429 | 87 | 0.595855 |
f39c5c2066d53541a318c601b605de34ab5eb7fd | 1,586 | ml | OCaml | result/fixml/formula/sub105/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/formula/sub105/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/formula/sub105/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type formula =
| True
| False
| Not of formula
| AndAlso of (formula * formula)
| OrElse of (formula * formula)
| Imply of (formula * formula)
| Equal of (exp * exp)
and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp)
let andAlso (x, y) = if x = true && y = true then true else false
let o... | 26.881356 | 74 | 0.56053 |
f3172ff22438b6a914607b9293ead18efb569508 | 11,766 | ml | OCaml | interprocedural/test/dependencyGraphTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | 3 | 2019-03-29T22:32:12.000Z | 2019-04-16T08:54:57.000Z | interprocedural/test/dependencyGraphTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | null | null | null | interprocedural/test/dependencyGraphTest.ml | 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
open OUnit2
open Analysis
open Ast
open Interprocedural
open Statement
open Test
let parse_source ?(qualifier=Reference.empty)... | 24.927966 | 93 | 0.598589 |
f38b1d7c306ea1c82cca612587be414cc77e87d2 | 1,800 | mli | OCaml | d08/ex03/atom.mli | ygarrot/piscine_ocaml | b7bd6fe657be2c2d9ae232440ed821c738d9682c | [
"MIT"
] | null | null | null | d08/ex03/atom.mli | ygarrot/piscine_ocaml | b7bd6fe657be2c2d9ae232440ed821c738d9682c | [
"MIT"
] | null | null | null | d08/ex03/atom.mli | ygarrot/piscine_ocaml | b7bd6fe657be2c2d9ae232440ed821c738d9682c | [
"MIT"
] | null | null | null | class virtual atom :
string ->
string ->
int ->
object
method atomic_number : int
method equal : atom -> bool
method name : string
method symbol : string
method to_string : string
end
class hydrogen :
object
method atomic_number : int
method equal : atom -> bool
method name :... | 21.428571 | 31 | 0.661667 |
d2e1fefd138f73655358dd85999008827f0a9c08 | 2,517 | ml | OCaml | hphp/hack/src/utils/daemon.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/daemon.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/daemon.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"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.
*
*)
type 'a in_ch... | 30.695122 | 80 | 0.657132 |
f33119a31a82f1965585eb3acb7b6d1f1d0d9c50 | 2,311 | ml | OCaml | data/fa15_min/1105.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/1105.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/1105.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec padZero l1 l2 =
if (List.length l1) < (List.length l2)
then padZero (0 :: l1) l2
else
if (List.length l1) > (List.length l2)
then padZero l1 (0 :: l2)
else (l1, l2);;
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then removeZero t else l;;
let bigAdd l1 l2 =
let add ... | 23.11 | 113 | 0.533968 |
f3497a3c4a99ccb21e1925751a328cdaaa1060e1 | 1,039 | ml | OCaml | data/fa15/repaired/rite/0061.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/repaired/rite/0061.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15/repaired/rite/0061.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z | let pipe =
fun fs ->
(let f =
fun a ->
fun x ->
x a "to be implemented" in
let base =
([0] , "to be implemented") in
List.fold_left f base fs)
(* -------------------------------------- *)
let pipe =
fun fs ->
(let f =
fun a ->
fun x ->
... | 15.742424 | 75 | 0.435034 |
f35e9bb504e0e272499dadd99767c2421cd7eb23 | 3,484 | ml | OCaml | test/test_hash_set.ml | EduardoRFS/base | 8993e35ba2e83e5020b2deb548253ef1e4a699d4 | [
"MIT"
] | null | null | null | test/test_hash_set.ml | EduardoRFS/base | 8993e35ba2e83e5020b2deb548253ef1e4a699d4 | [
"MIT"
] | null | null | null | test/test_hash_set.ml | EduardoRFS/base | 8993e35ba2e83e5020b2deb548253ef1e4a699d4 | [
"MIT"
] | null | null | null | open! Import
open! Hash_set
let%test_module "Set Intersection" =
(module struct
let run_test first_contents second_contents ~expect =
let of_list lst =
let s = create (module String) in
List.iter lst ~f:(add s);
s
in
let s1 = of_list first_contents in
let s2 = of_l... | 34.49505 | 89 | 0.599024 |
f37c7b7a39ab87f3d0175274833243472554de79 | 3,392 | mll | OCaml | lexer.mll | cwfoo/ocaml-scheme-interpreter | dae7cfdc4f023a044605a286fbda5a0021cfc494 | [
"BSD-3-Clause"
] | 4 | 2020-07-17T10:52:12.000Z | 2022-01-31T02:44:40.000Z | lexer.mll | cwfoo/ocaml-scheme-interpreter | dae7cfdc4f023a044605a286fbda5a0021cfc494 | [
"BSD-3-Clause"
] | null | null | null | lexer.mll | cwfoo/ocaml-scheme-interpreter | dae7cfdc4f023a044605a286fbda5a0021cfc494 | [
"BSD-3-Clause"
] | 4 | 2020-05-14T08:01:11.000Z | 2022-01-17T22:12:58.000Z | {
(* Header. *)
let bool_of_sym = function "#t" | "#true" -> true
| "#f" | "#false" -> false
| _ -> failwith "BOOL_OF_SYM"
(* Helper function.
* string -> list of chars *)
let char_list_of_string s =
let rec loop index l =
... | 35.333333 | 77 | 0.509434 |
f31fb3a5f7eb5a254e756c55c9d5be7e2486b2f1 | 627 | mli | OCaml | test/generators/cases/alerts.mli | lukemaurer/odoc | e8e3b81670de2d2b7781754bf53dee1e41d471dd | [
"ISC"
] | 41 | 2016-06-15T14:19:05.000Z | 2018-03-18T06:40:36.000Z | test/generators/cases/alerts.mli | lukemaurer/odoc | e8e3b81670de2d2b7781754bf53dee1e41d471dd | [
"ISC"
] | 103 | 2016-08-07T21:51:04.000Z | 2018-03-20T23:26:33.000Z | test/generators/cases/alerts.mli | lukemaurer/odoc | e8e3b81670de2d2b7781754bf53dee1e41d471dd | [
"ISC"
] | 7 | 2016-12-12T14:38:12.000Z | 2018-03-18T06:40:38.000Z | (* Deprecated tag. *)
val a : int
[@@deprecated "a"]
(* Both attribute and tag. *)
val b : int
[@@deprecated "Shouldn't be rendered"]
(** @deprecated b. *)
(* No payload *)
val c : int
[@@deprecated]
(* At the top-level of a module. *)
module Top1 : sig
[@@@deprecated "A"]
(** Top-comment. *)
end
module To... | 12.795918 | 43 | 0.594896 |
f3264edc8f05f81b71db339a60f4cacbd1e4bfd7 | 100 | ml | OCaml | examples/fib.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 770 | 2017-01-25T13:29:15.000Z | 2022-03-28T01:11:57.000Z | examples/fib.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 22 | 2017-02-21T03:01:15.000Z | 2020-02-27T15:56:40.000Z | examples/fib.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 37 | 2017-02-26T07:22:24.000Z | 2022-03-27T18:26:14.000Z | let rec fib n =
if n <= 1 then 1 else
(fib (n - 1)) + (fib (n - 2))
in
println_int (fib 10)
| 16.666667 | 33 | 0.51 |
f32c26377053ef71d1c6bdc189ec193075704cf4 | 13,257 | ml | OCaml | ulib/ml/FStar_Pervasives_Native.ml | pnmadelaine/FStar | cd926286b895228447ca15e03e00e7f7509815bb | [
"Apache-2.0"
] | null | null | null | ulib/ml/FStar_Pervasives_Native.ml | pnmadelaine/FStar | cd926286b895228447ca15e03e00e7f7509815bb | [
"Apache-2.0"
] | null | null | null | ulib/ml/FStar_Pervasives_Native.ml | pnmadelaine/FStar | cd926286b895228447ca15e03e00e7f7509815bb | [
"Apache-2.0"
] | null | null | null |
type 'a option' = 'a option =
| None
| Some of 'a[@@deriving yojson,show]
type 'a option = 'a option' =
| None
| Some of 'a[@@deriving yojson,show]
let uu___is_None = function None -> true | _ -> false
let uu___is_Some = function Some _ -> true | _ -> false
let __proj__Some__item__v = function Some x -> x | ... | 46.353147 | 80 | 0.71532 |
f3823a06b322ba6296c472c540d652937e93bfae | 235 | ml | OCaml | HW_1/src/hw1_3.ml | zheedong/Korea-Univ.-COSE212-2_1 | 5263d9eaf32bbdc51a50220e54a3a3290016ad9f | [
"MIT"
] | null | null | null | HW_1/src/hw1_3.ml | zheedong/Korea-Univ.-COSE212-2_1 | 5263d9eaf32bbdc51a50220e54a3a3290016ad9f | [
"MIT"
] | null | null | null | HW_1/src/hw1_3.ml | zheedong/Korea-Univ.-COSE212-2_1 | 5263d9eaf32bbdc51a50220e54a3a3290016ad9f | [
"MIT"
] | null | null | null | let rec prime_internal a b =
if b = a then true
else
if a mod b = 0 then false else prime_internal a (b+1);;
let prime : int -> bool
= fun n ->
match n with
| 0 | 1 -> false
| _ -> (prime_internal n 2);; | 23.5 | 63 | 0.548936 |
d2f5de7f263297ba234960341f1aa3fad05ac12f | 7,864 | ml | OCaml | data/derived/comb/progs/unify/prog7540.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/prog2736.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2736.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.301003 | 148 | 0.690234 |
f32ed5b26580f142f17fb33ff870e5a30808ec57 | 6,388 | mli | OCaml | src/Ast.mli | ulrikstrid/ocamlformat | 1d82ab5fe9ffc9e04d6a7f70f2ff4324c764b3f0 | [
"MIT"
] | 6 | 2018-06-26T10:08:18.000Z | 2021-12-17T03:01:06.000Z | src/Ast.mli | ulrikstrid/ocamlformat | 1d82ab5fe9ffc9e04d6a7f70f2ff4324c764b3f0 | [
"MIT"
] | 1 | 2022-02-08T19:16:58.000Z | 2022-02-09T10:55:37.000Z | src/Ast.mli | ulrikstrid/ocamlformat | 1d82ab5fe9ffc9e04d6a7f70f2ff4324c764b3f0 | [
"MIT"
] | 4 | 2018-04-11T11:35:14.000Z | 2021-12-17T03:02:13.000Z | (**********************************************************************
* *
* OCamlFormat *
* *
* Copyright (c) 2017-present, ... | 29.574074 | 77 | 0.639167 |
d2da3268003dae68391e7f9f5a7213ff5ddf861b | 2,318 | ml | OCaml | src/apdu.ml | vincent-botbol/ocaml-ledger-wallet | aa54c497c2f2db72502ae918422e6a7971acd19e | [
"ISC"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/apdu.ml | vincent-botbol/ocaml-ledger-wallet | aa54c497c2f2db72502ae918422e6a7971acd19e | [
"ISC"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/apdu.ml | vincent-botbol/ocaml-ledger-wallet | aa54c497c2f2db72502ae918422e6a7971acd19e | [
"ISC"
] | 4 | 2021-04-27T15:00:34.000Z | 2021-09-26T21:50:01.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2017 Vincent Bernardoff. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
type cmd = Apdu_command : ... | 37.387097 | 79 | 0.580242 |
f3236e65c34fe03c39f1c71c056fa7af2446ac5e | 11,322 | ml | OCaml | x86/proofs/bignum_mul_4_8_alt.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | x86/proofs/bignum_mul_4_8_alt.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | x86/proofs/bignum_mul_4_8_alt.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | (*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "LICENSE" file ... | 54.172249 | 83 | 0.508744 |
f37feeda0d01be2faff6d507f2af2fc37a6c91b1 | 3,997 | ml | OCaml | src/lib_mockup_proxy/RPC_client.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_mockup_proxy/RPC_client.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_mockup_proxy/RPC_client.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 42.073684 | 79 | 0.563172 |
f3470ede2eae38b7f083677f7b96396b72d46943 | 5,122 | ml | OCaml | hphp/hack/src/utils/config_file/config_file_common.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/config_file/config_file_common.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/config_file/config_file_common.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"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 Sys_utils
type t = string SMap.t
let file_path_relative_to_repo_root = ".hhconfig"
let prin... | 35.569444 | 94 | 0.685279 |
f313ca9aab1e95819875a6f99b4203bc56137219 | 7,866 | ml | OCaml | data/derived/comb/progs/unify/prog1468.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog1468.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1468.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.538961 | 148 | 0.660056 |
Subsets and Splits
HTML Code Excluding Scripts
The query retrieves a limited set of HTML content entries that are longer than 8 characters and do not contain script tags, offering only basic filtering with minimal analytical value.