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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3b7816e5938c353dc50e8127d2af0ead2b95c66 | 18,757 | ml | OCaml | data/derived/comb/progs/unify/prog6429.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/prog1588.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1588.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.022887 | 208 | 0.659061 |
8a9547865fd8697462ab9c135358295dfa7fabb2 | 1,066 | ml | OCaml | tests/benchmarks/r_type/termination/indirect00.ml | LinerSu/DART_IT | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 7 | 2020-06-12T09:32:16.000Z | 2020-10-05T09:04:07.000Z | tests/benchmarks/r_type/termination/indirect00.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | null | null | null | tests/benchmarks/r_type/termination/indirect00.ml | nyu-acsys/drift2 | 2bdd046f912d761278ee7387f487a2809053220e | [
"BSD-3-Clause"
] | 2 | 2021-04-05T12:25:11.000Z | 2021-05-14T09:31:24.000Z |
let rec bot _ = bot ()
let fail _ = assert false
let rec c1_COEFFICIENT_1085 = 0
let rec c0_COEFFICIENT_1084 = 0
let id_without_checking_1118 set_flag_id_1092 x_1031 =
let set_flag_id_1092 = true
in
x_1031
let rec id_1030 prev_set_flag_id_1091 x_1031 =
let u =if prev_set_flag_id_10... | 30.457143 | 127 | 0.682927 |
8a766d370131bb5ebaacd11237bcb674d59ed924 | 4,284 | ml | OCaml | vendor/spawn/src/spawn.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | vendor/spawn/src/spawn.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | vendor/spawn/src/spawn.ml | staronj/dune | cf0ceccef1e177625b9361323bd7a3401a988d45 | [
"MIT"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | open StdLabels
external is_osx : unit -> bool = "spawn_is_osx" [@@noalloc]
let is_osx = is_osx ()
module Working_dir = struct
type t =
| Path of string
| Fd of Unix.file_descr
| Inherit
end
module Unix_backend = struct
type t =
| Fork
| Vfork
let default =
match Sys.getenv "SPAWN_USE_... | 24.067416 | 80 | 0.622316 |
af6edd43c89164062bb40bbe444cdba377b6a051 | 1,281 | mli | OCaml | src/lib/secrets/wallets.mli | kobigurk/mina | 585c76fc631616a65c1c8eb067c625376d498ad2 | [
"Apache-2.0"
] | 1 | 2022-01-03T07:25:40.000Z | 2022-01-03T07:25:40.000Z | src/lib/secrets/wallets.mli | kobigurk/mina | 585c76fc631616a65c1c8eb067c625376d498ad2 | [
"Apache-2.0"
] | null | null | null | src/lib/secrets/wallets.mli | kobigurk/mina | 585c76fc631616a65c1c8eb067c625376d498ad2 | [
"Apache-2.0"
] | 1 | 2022-03-29T04:23:52.000Z | 2022-03-29T04:23:52.000Z | open Async
open Signature_lib
type t
val load : logger:Logger.t -> disk_location:string -> t Deferred.t
val reload : logger:Logger.t -> t -> unit Deferred.t
val import_keypair :
t
-> Keypair.t
-> password:Secret_file.password
-> Public_key.Compressed.t Deferred.t
val import_keypair_terminal_stdin :
t ... | 25.62 | 76 | 0.715847 |
8aaa6d48422eca419113dc70d2f405fd9776d726 | 803 | ml | OCaml | examples/readme.ml | liautaud/irmin | 04358c414ad0aa4b157af3dfd0aef9b54b27deba | [
"ISC"
] | null | null | null | examples/readme.ml | liautaud/irmin | 04358c414ad0aa4b157af3dfd0aef9b54b27deba | [
"ISC"
] | null | null | null | examples/readme.ml | liautaud/irmin | 04358c414ad0aa4b157af3dfd0aef9b54b27deba | [
"ISC"
] | null | null | null | open Lwt.Infix
(* Irmin store with string contents *)
module Store = Irmin_unix.Git.FS.KV (Irmin.Contents.String)
(* Database configuration *)
let config = Irmin_git.config ~bare:true "/tmp/irmin/test"
(* Commit author *)
let author = "Example <example@example.com>"
(* Commit information *)
let info fmt = Irmin_uni... | 28.678571 | 79 | 0.615193 |
8af251d6f9ee7daeddc09aa37667efb67c2f0960 | 674 | mli | OCaml | hphp/hack/src/client/ide_service/clientIdeIncremental.mli | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/ide_service/clientIdeIncremental.mli | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/ide_service/clientIdeIncremental.mli | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** Update the forward and reverse naming tables by parsing the file at the
given path and installing their declarat... | 30.636364 | 76 | 0.737389 |
8af9cd8455952c2959c3f65adffc4b78db101d46 | 691 | ml | OCaml | hphp/hack/test/integration_ml/saved_state/test_no_op_edit.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-11-01T13:46:07.000Z | 2019-11-01T13:46:07.000Z | hphp/hack/test/integration_ml/saved_state/test_no_op_edit.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/saved_state/test_no_op_edit.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | module Test = Integration_test_base
open Integration_test_base_types
open No_op_common
(* This test is the same as test_ide_open, except instead of no-op OPEN, we start
* with no-op EDIT. Nuclide does send didEdit without preceding didOpen sometimes (see T30353394) *)
let test () =
No_op_common.go
@@ fun env ->
... | 34.55 | 100 | 0.751085 |
afd73b906aa4ef72d5c47cfc0be89370528176a2 | 3,731 | ml | OCaml | src/checked_intf.ml | finiteprods/snarky | 7d4f2243eed1de4086d87a8e7c15d1332e46a150 | [
"MIT"
] | null | null | null | src/checked_intf.ml | finiteprods/snarky | 7d4f2243eed1de4086d87a8e7c15d1332e46a150 | [
"MIT"
] | null | null | null | src/checked_intf.ml | finiteprods/snarky | 7d4f2243eed1de4086d87a8e7c15d1332e46a150 | [
"MIT"
] | null | null | null | module type Basic = sig
type ('a, 's, 'f) t
type 'f field
include Monad_let.S3 with type ('a, 's, 'f) t := ('a, 's, 'f) t
val add_constraint : 'f field Cvar.t Constraint.t -> (unit, 's, 'f field) t
val as_prover : (unit, 'f field, 's) As_prover0.t -> (unit, 's, 'f field) t
val with_label : string -> ('... | 26.460993 | 77 | 0.538194 |
8ae6536f5b97eee814178c8e1b3b1bbe2ca40303 | 4,007 | mli | OCaml | src/lib_proxy/registration.mli | daachi/tezos | 00118e91ff13bb54ff658907ed8ffc1c4d3d2266 | [
"MIT"
] | null | null | null | src/lib_proxy/registration.mli | daachi/tezos | 00118e91ff13bb54ff658907ed8ffc1c4d3d2266 | [
"MIT"
] | null | null | null | src/lib_proxy/registration.mli | daachi/tezos | 00118e91ff13bb54ff658907ed8ffc1c4d3d2266 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 45.534091 | 79 | 0.596456 |
affeff6bd8a525dec8cbf770d86d8630993f6953 | 4,527 | ml | OCaml | ml/extracted/Optimize1qGates.ml | inQWIRE/mlvoqc | f60aa2b9289f572ed03e55265fb0458f6a3e845f | [
"MIT"
] | null | null | null | ml/extracted/Optimize1qGates.ml | inQWIRE/mlvoqc | f60aa2b9289f572ed03e55265fb0458f6a3e845f | [
"MIT"
] | 1 | 2021-04-29T23:19:07.000Z | 2021-04-29T23:19:07.000Z | ml/extracted/Optimize1qGates.ml | inQWIRE/mlvoqc | f60aa2b9289f572ed03e55265fb0458f6a3e845f | [
"MIT"
] | null | null | null | open UnitaryListRepresentation
let __ = let rec f _ = Obj.repr f in Obj.repr f
(** val optimize_1q_gates' :
IBMGateSet.coq_IBM_ucom_l -> int -> IBMGateSet.IBMGateSet.coq_IBM_Unitary
gate_app list -> IBMGateSet.coq_IBM_ucom_l **)
let rec optimize_1q_gates' l n acc =
(fun fO fS n -> if n=0 then fO () else fS... | 43.528846 | 77 | 0.488182 |
8add05683b729fdacd4e3b17a2da604393f02b9b | 828 | mli | OCaml | src/analysis/bindings.mli | dmitryvinn-fb/flow | 61afe094cb9244ae68a9e0406df648d597b2278b | [
"MIT"
] | null | null | null | src/analysis/bindings.mli | dmitryvinn-fb/flow | 61afe094cb9244ae68a9e0406df648d597b2278b | [
"MIT"
] | null | null | null | src/analysis/bindings.mli | dmitryvinn-fb/flow | 61afe094cb9244ae68a9e0406df648d597b2278b | [
"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 Ast = Flow_ast
type kind =
| Var
| Let
| Const
| Type
| Enum
| Function
| Class
| Parameter
| CatchPara... | 18.4 | 66 | 0.631643 |
8ad07f2c313ba3dcc10dbe7e4dcb6d92eb4f4abd | 1,061 | ml | OCaml | src/lib/marlin_plonk_bindings/pasta_fq_urs/marlin_plonk_bindings_pasta_fq_urs.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/lib/marlin_plonk_bindings/pasta_fq_urs/marlin_plonk_bindings_pasta_fq_urs.ml | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | 1 | 2021-03-06T14:52:32.000Z | 2021-03-06T14:52:32.000Z | src/lib/marlin_plonk_bindings/pasta_fq_urs/marlin_plonk_bindings_pasta_fq_urs.ml | obazl/mina | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | 3 | 2021-03-14T18:19:04.000Z | 2021-03-25T16:37:07.000Z | type t
module Poly_comm = struct
type t =
Marlin_plonk_bindings_pasta_pallas.Affine.t
Marlin_plonk_bindings_types.Poly_comm.t
end
external create : int -> t = "caml_pasta_fq_urs_create"
external write :
?append:bool -> t -> string -> unit
= "caml_pasta_fq_urs_write"
external read : ?offset:int -> stri... | 27.205128 | 79 | 0.770971 |
441a0aaa03ab6b50bb17e52faaf25a9491c9fd41 | 176 | ml | OCaml | data/sp14/clusters/0004.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/clusters/0004.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14/clusters/0004.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z | LitG
0
""
"[]"
7.0
2.0
0.0
1.0
","
1
")*"
100.0
"+"
")/(abs("
")+1)"
"*"
true
false
2
8
9
"?"
"Sin("
10
":"
0.1
";"
0.5
"]"
"cos("
"sin^.5(pi*"
"A"
10.0
"pi* "
3
")*cos("
"))"
| 4.631579 | 12 | 0.352273 |
8af3713743aed50376e9006380110786b04e4efa | 1,919 | ml | OCaml | libraries/cloudformation/lib/describeStackEvents.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/describeStackEvents.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/cloudformation/lib/describeStackEvents.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DescribeStackEventsInput.t
type output = DescribeStackEventsOutput.t
type error = Errors_internal.t
let service = "cloudformation"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_e... | 31.459016 | 99 | 0.583637 |
8abd224d0f0349701dc97defb90a4ad80d895346 | 3,239 | ml | OCaml | instrumentor/countdown.ml | liblit/sampler | eaedba51ee8367b9b355e6f85a6c677878160d49 | [
"BSD-3-Clause"
] | null | null | null | instrumentor/countdown.ml | liblit/sampler | eaedba51ee8367b9b355e6f85a6c677878160d49 | [
"BSD-3-Clause"
] | null | null | null | instrumentor/countdown.ml | liblit/sampler | eaedba51ee8367b9b355e6f85a6c677878160d49 | [
"BSD-3-Clause"
] | 1 | 2019-01-08T11:09:59.000Z | 2019-01-08T11:09:59.000Z | open Cil
open Weight
let specializeEmptyRegions =
Options.registerBoolean
~flag:"specialize-empty-regions"
~desc:"specialize countdown checks for regions with no sampling sites"
~ident:"SpecializeEmptyRegions"
~default:true
let specializeSingletonRegions =
Options.registerBoolean
~flag:"speci... | 30.847619 | 101 | 0.712874 |
44165d853df4b3bec15b134a66b4e35c364f802a | 7,613 | mli | OCaml | src/fiber/fiber.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2021-08-16T09:28:39.000Z | 2021-08-16T09:28:39.000Z | src/fiber/fiber.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2021-05-21T15:34:59.000Z | 2021-05-21T15:34:59.000Z | src/fiber/fiber.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | (** Concurrency library
This module implements
{{:https://en.wikipedia.org/wiki/Structured_concurrency} "structured
concurrency"}. *)
open! Stdune
(** {1 Generals} *)
(** Type of fiber. A fiber represent a suspended computation. Note that using
the same fiber twice will execute it twice, which is pr... | 28.837121 | 81 | 0.599369 |
af4a77d194410929ac8f50863b692db9acdb83d5 | 600 | ml | OCaml | lib/client.ml | EmileTrotignon/disml | 24526c8500e095c54ff45f6541ae2f8b3326b968 | [
"MIT"
] | null | null | null | lib/client.ml | EmileTrotignon/disml | 24526c8500e095c54ff45f6541ae2f8b3326b968 | [
"MIT"
] | null | null | null | lib/client.ml | EmileTrotignon/disml | 24526c8500e095c54ff45f6541ae2f8b3326b968 | [
"MIT"
] | null | null | null | open Async
include Dispatch
type t = {sharder: Sharder.t}
let start ?count ?compress ?(large = 250) token =
Client_options.token := token ;
Sharder.start ?count ?compress ~large_threshold:large ()
>>| fun sharder -> {sharder}
let set_status ?status ?kind ?name ?since ?url client =
Sharder.set_status ?status ... | 31.578947 | 79 | 0.746667 |
8a9264913b8779623ba848cbae1e9702cd29f9fd | 335 | ml | OCaml | duniverse/base/test/test_option.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | 1 | 2019-09-11T00:04:16.000Z | 2019-09-11T00:04:16.000Z | duniverse/base/test/test_option.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/base/test/test_option.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open! Import
open! Option
let f = (+)
let%test _ = [%compare.equal: int t] (merge None None ~f) None
let%test _ = [%compare.equal: int t] (merge (Some 3) None ~f) (Some 3)
let%test _ = [%compare.equal: int t] (merge None (Some 3) ~f) (Some 3)
let%test _ = [%compare.equal: int t] (merge (Some 1) (Some 3... | 37.222222 | 74 | 0.59403 |
8a91ea32079072f439a368b03855bc3c52c25b9d | 38,014 | ml | OCaml | hphp/hack/src/typing/typing_phase.ml | sarahhenkens/hhvm | 68341cff28c09163f96796387666d35b6eae063c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_phase.ml | sarahhenkens/hhvm | 68341cff28c09163f96796387666d35b6eae063c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_phase.ml | sarahhenkens/hhvm | 68341cff28c09163f96796387666d35b6eae063c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Common
open Typing_defs
open Typing_env_types
module Env = Typing_env
module TUtils = Typing_ut... | 34.779506 | 99 | 0.640922 |
8ae7a972f08a20d234689b801639de342b6ec5ac | 444 | mli | OCaml | compilers/labs/lab5/part2/parser.mli | vampy/university | 9496cb63594dcf1cc2cec8650b8eee603f85fdab | [
"MIT"
] | 6 | 2015-06-22T19:43:13.000Z | 2019-07-15T18:08:41.000Z | compilers/labs/lab5/part2/parser.mli | vampy/university | 9496cb63594dcf1cc2cec8650b8eee603f85fdab | [
"MIT"
] | null | null | null | compilers/labs/lab5/part2/parser.mli | vampy/university | 9496cb63594dcf1cc2cec8650b8eee603f85fdab | [
"MIT"
] | 1 | 2015-09-26T09:01:54.000Z | 2015-09-26T09:01:54.000Z | type token =
| IDENTIFIER
| CONSTANT
| NEWLINE
| ARRAY
| INT
| CHAR
| FLOAT
| WHILE
| DO
| BEGIN
| END
| IF
| THEN
| ELSE
| INPUT
| PRINT
| LEFT_SQB
| RIGHT_SQB
| LEFT_PAR
| RIGHT_PAR
| LESS
| GREATER
| LESS_EQUAL
| GREATER_EQUAL
| EQ_EQUAL
| NOT_EQUAL
| MULTIPLY
... | 11.684211 | 52 | 0.563063 |
8ae8db42438fc63639b6cdd50c903ecea6aa3038 | 8,362 | ml | OCaml | analysis/test/dependentTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | 3 | 2019-03-29T22:32:12.000Z | 2019-04-16T08:54:57.000Z | analysis/test/dependentTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | null | null | null | analysis/test/dependentTest.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 Test
let configuration = Configuration.Analysis.create ()
let populate source =
let... | 30.518248 | 95 | 0.661923 |
8aec6dc3e3dbd88a93a0d0f1b9c445acf89d1460 | 1,314 | mll | OCaml | 2A/S7/UE Programmation Fonctionnelle et Traduction des Langages/Projets PF et TDL/Projet/lexer.mll | badrs26/ENSEEIHT | 7d04264c1be2c3993bfbcd8f7cdd64b4fb780b8f | [
"Apache-2.0"
] | 4 | 2020-12-02T15:42:52.000Z | 2021-11-07T20:31:09.000Z | 2A/S7/UE Programmation Fonctionnelle et Traduction des Langages/Projets PF et TDL/Projet/lexer.mll | Sajid-Badr/ENSEEIHT | 7d04264c1be2c3993bfbcd8f7cdd64b4fb780b8f | [
"Apache-2.0"
] | null | null | null | 2A/S7/UE Programmation Fonctionnelle et Traduction des Langages/Projets PF et TDL/Projet/lexer.mll | Sajid-Badr/ENSEEIHT | 7d04264c1be2c3993bfbcd8f7cdd64b4fb780b8f | [
"Apache-2.0"
] | 4 | 2021-12-07T22:15:16.000Z | 2022-03-08T21:49:50.000Z | {
open Parser
open Lexing
exception Error of string
}
rule token = parse
| '\n' (* ignore newlines but count them *)
{ new_line lexbuf; token lexbuf }
| [' ' '\t'] (* ignore whitespaces and tabs *)
{ token lexbuf }
| "//"[^'\n']* { token lexbuf }
| "return" {RETURN}
| ";" {PV}
| "{" ... | 20.53125 | 101 | 0.426941 |
8a9ec260b0bac2c887379ff9a6598a72ed851048 | 4,059 | ml | OCaml | infer/src/clang/cFrontend_checkers_main.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/clang/cFrontend_checkers_main.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/clang/cFrontend_checkers_main.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"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! Util... | 44.604396 | 96 | 0.719882 |
8a7b1d4b37bb0eec74f61ad946ecd0d1e24f30e7 | 110 | ml | OCaml | plugins/x86/x86_opcode_ins.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1,697 | 2015-01-09T07:17:41.000Z | 2022-03-26T17:48:05.000Z | plugins/x86/x86_opcode_ins.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 685 | 2015-01-10T21:32:42.000Z | 2022-03-23T23:44:53.000Z | plugins/x86/x86_opcode_ins.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 294 | 2015-01-10T15:51:57.000Z | 2022-03-20T05:37:22.000Z | open Core_kernel
type ins = [
| `IN8
| `IN16
| `IN32
] [@@deriving bin_io, sexp, compare, enumerate]
| 11 | 47 | 0.609091 |
8a7721815b975fec2643bf9d2c007299d8589541 | 849 | ml | OCaml | benchmarks/constraints/memo/proper_indexation_sum_lt_pos_v2.ml | victornicolet/atropos | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 3 | 2021-05-03T16:20:32.000Z | 2021-05-14T19:59:51.000Z | benchmarks/constraints/memo/proper_indexation_sum_lt_pos_v2.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | null | null | null | benchmarks/constraints/memo/proper_indexation_sum_lt_pos_v2.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | 1 | 2021-05-12T15:14:40.000Z | 2021-05-12T15:14:40.000Z | (** @synduce *)
type list =
| Nil
| Cons of int * list
type indexed_list =
| CNil
| CCons of int * int * indexed_list
let rec is_proper_indexed = function
| CNil -> true
| CCons (value, index, tl) -> index = length tl && is_proper_indexed tl
and length = function
| CNil -> 0
| CCons (_, _, tl) -> 1 ... | 19.744186 | 73 | 0.590106 |
8a6e7720a10280dd12e647e5af0b5c226c3f3098 | 4,159 | ml | OCaml | src/lib/edo/typed_adt.ml | releaselab/michelson-adt | f291d3dceb1ea4216f06eedd4366defd05541789 | [
"MIT"
] | null | null | null | src/lib/edo/typed_adt.ml | releaselab/michelson-adt | f291d3dceb1ea4216f06eedd4366defd05541789 | [
"MIT"
] | null | null | null | src/lib/edo/typed_adt.ml | releaselab/michelson-adt | f291d3dceb1ea4216f06eedd4366defd05541789 | [
"MIT"
] | null | null | null | open! Core
open Common_adt
type annot = Common_adt.Annot.t [@@deriving ord, sexp]
type 'a node = 'a Adt.node [@@deriving ord, sexp]
type typ_t = Adt.typ_t [@@deriving ord, sexp]
type typ = Adt.typ [@@deriving ord, sexp]
type data_t =
| D_int of Bigint.t
| D_nat of Bigint.t
| D_string of string
| D_bytes of By... | 19.434579 | 81 | 0.680933 |
8a9062169551f0b1e6834f9ce67c1ee511ee492f | 254,427 | ml | OCaml | cil/src/frontc/cabs2cil.ml | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 2 | 2019-10-05T04:17:01.000Z | 2021-03-08T14:30:34.000Z | cil/src/frontc/cabs2cil.ml | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | null | null | null | cil/src/frontc/cabs2cil.ml | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 3 | 2017-07-04T11:06:22.000Z | 2022-02-25T05:55:27.000Z | (*
*
* Copyright (c) 2001-2002,
* George C. Necula <necula@cs.berkeley.edu>
* Scott McPeak <smcpeak@cs.berkeley.edu>
* Wes Weimer <weimer@cs.berkeley.edu>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided... | 39.208969 | 197 | 0.536303 |
8ababb0398e068cd7a986641e728ede4044b4cc4 | 971 | ml | OCaml | src/lib/pickles/inductive_rule.ml | definitiontv/andrea | 257efbf08d3844be86d9da67c843e35cc46c846d | [
"Apache-2.0"
] | 1 | 2021-03-03T20:21:52.000Z | 2021-03-03T20:21:52.000Z | src/lib/pickles/inductive_rule.ml | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | 1 | 2021-03-06T14:52:32.000Z | 2021-03-06T14:52:32.000Z | src/lib/pickles/inductive_rule.ml | obazl/mina | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | 3 | 2021-03-14T18:19:04.000Z | 2021-03-25T16:37:07.000Z | open Core_kernel
open Pickles_types.Hlist
module B = struct
type t = Impls.Step.Boolean.var
end
(* This type models an "inductive rule". It includes
- the list of previous statements which this one assumes
- the snarky main function
- an unchecked version of the main function which computes the "should ver... | 31.322581 | 92 | 0.677652 |
8acd36fa3cfd1a8bb3410f92baed7e874c8b4e17 | 1,760 | ml | OCaml | libraries/rds/lib/modifyDBClusterEndpoint.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/rds/lib/modifyDBClusterEndpoint.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/rds/lib/modifyDBClusterEndpoint.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = ModifyDBClusterEndpointMessage.t
type output = DBClusterEndpoint.t
type error = Errors_internal.t
let service = "rds"
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.ur... | 27.076923 | 88 | 0.625568 |
8ad411ae68632d162f2619f33b4b433309c64db9 | 963 | ml | OCaml | vendor/ppx_hash/src/ppx_hash.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/ppx_hash/src/ppx_hash.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/ppx_hash/src/ppx_hash.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open Ppxlib
let type_extension name f =
Context_free.Rule.extension
(Extension.declare name
Core_type Ast_pattern.(ptyp __)
(fun ~loc ~path:_ ty -> f ~loc ty))
;;
let () =
let name = "hash_fold" in
Deriving.ignore
(Deriving.add name
~extension:(fun ~loc:_ ~path:_ ty -> Ppx_hash_expa... | 32.1 | 87 | 0.71028 |
8aec0dd1760e761fde00bb1324173597ef098444 | 15,506 | ml | OCaml | SchulzeCounting/ocamlcode/lib.ml | mukeshtiwari/formalized-voting | 44c001288087c96c0fe8569dcc6c9704e68fb9aa | [
"MIT"
] | null | null | null | SchulzeCounting/ocamlcode/lib.ml | mukeshtiwari/formalized-voting | 44c001288087c96c0fe8569dcc6c9704e68fb9aa | [
"MIT"
] | null | null | null | SchulzeCounting/ocamlcode/lib.ml | mukeshtiwari/formalized-voting | 44c001288087c96c0fe8569dcc6c9704e68fb9aa | [
"MIT"
] | null | null | null | type __ = Obj.t
let __ = let rec f _ = Obj.repr f in Obj.repr f
type bool =
| True
| False
[@@deriving show]
type nat =
| O
| S of nat
[@@deriving show]
type ('a, 'b) sum =
| Inl of 'a
| Inr of 'b
[@@deriving show]
type ('a, 'b) prod =
| Pair of 'a * 'b
[@@deriving show]
(** va... | 24.53481 | 106 | 0.518315 |
441fa62f61798d00cd2749a32e50d936997ca5df | 26,294 | ml | OCaml | utils/pprint_ast.ml | nickzuber/lets-make-a-compiler | ee2337b116f07c1357f7b70bd09f1503e39fdc88 | [
"MIT"
] | 4 | 2019-02-18T19:56:21.000Z | 2020-02-18T00:38:19.000Z | utils/pprint_ast.ml | nickzuber/lets-build-a-compiler | ee2337b116f07c1357f7b70bd09f1503e39fdc88 | [
"MIT"
] | null | null | null | utils/pprint_ast.ml | nickzuber/lets-build-a-compiler | ee2337b116f07c1357f7b70bd09f1503e39fdc88 | [
"MIT"
] | null | null | null | open Ast
exception Bad_set_instruction
exception Probably_bad_stuff of string
let padding_offset = Settings.padding_offset_for_pprint_ast
let build_offset padding : string =
String.make padding ' '
let rec string_of_program ?(padding=0) node : string =
match node with
| Program (defines, expr) ->
let str ... | 39.779123 | 164 | 0.619875 |
8a3a8427f5f64dd37bb3ab1dcfa24eb2f5b2369f | 1,677 | ml | OCaml | dsl/dsl_02_b_1_indexed.ml | r6eve/oaoj | b3225208d6a6260e2d6219ca12fa3f44583ec2c2 | [
"BSL-1.0"
] | null | null | null | dsl/dsl_02_b_1_indexed.ml | r6eve/oaoj | b3225208d6a6260e2d6219ca12fa3f44583ec2c2 | [
"BSL-1.0"
] | null | null | null | dsl/dsl_02_b_1_indexed.ml | r6eve/oaoj | b3225208d6a6260e2d6219ca12fa3f44583ec2c2 | [
"BSL-1.0"
] | null | null | null | module IO = struct
(* @since 4.04.0 *)
let split_on_char sep s =
let open String in
let r = ref [] in
let j = ref (length s) in
for i = length s - 1 downto 0 do
if get s i = sep then begin
r := sub s (i + 1) (!j - i - 1) :: !r;
j := i
end
done;
sub s 0 !j :: !r
... | 20.204819 | 78 | 0.490757 |
8aa5903d715fe779e4eca83c62a90425341264e8 | 1,194 | ml | OCaml | lib/pa_pk_as_req.ml | awuersch/krb5lib | 688d4f120d2a9c342329280ea89a14ec003e2dd8 | [
"0BSD"
] | 3 | 2017-06-25T12:49:34.000Z | 2019-11-07T21:13:50.000Z | lib/pa_pk_as_req.ml | awuersch/krb5lib | 688d4f120d2a9c342329280ea89a14ec003e2dd8 | [
"0BSD"
] | null | null | null | lib/pa_pk_as_req.ml | awuersch/krb5lib | 688d4f120d2a9c342329280ea89a14ec003e2dd8 | [
"0BSD"
] | null | null | null | open Sexplib.Std
open Asn.S
open Krb_combinators
type t =
{ signed_auth_pack : Octet_string.t
; trusted_certifiers : External_principal_identifier.t list
; kdc_pk_id : Octet_string.t option
} [@@deriving sexp]
module Ast = struct
type t =
Octet_string.Ast.t
* External_principal_identifier.Ast.t li... | 28.428571 | 111 | 0.727806 |
8a7ff2f8e6bb22bf9f01472d273a6fdf8ba7ee21 | 3,590 | ml | OCaml | infer/src/pulse/PulseAccessResult.ml | sujin0529/infer | f08a09d6896ac2a22081ead4830eb86c64af8813 | [
"MIT"
] | 1 | 2022-01-24T12:58:26.000Z | 2022-01-24T12:58:26.000Z | infer/src/pulse/PulseAccessResult.ml | 0xgpapad/infer | e5ed762d819c0f040ad73064e0d928e73d5d830a | [
"MIT"
] | null | null | null | infer/src/pulse/PulseAccessResult.ml | 0xgpapad/infer | e5ed762d819c0f040ad73064e0d928e73d5d830a | [
"MIT"
] | 2 | 2020-06-23T00:43:10.000Z | 2022-03-24T06:24:50.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
open PulseBasicInterface
module AbductiveDomain = PulseAbductiveDomain
type 'astate error =
| PotentialInvalidAccess ... | 33.551402 | 100 | 0.716713 |
8a7f8022f29a9da091ae9c02efb707ecb2ab437b | 29,741 | ml | OCaml | core/src/span_float.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | core/src/span_float.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | core/src/span_float.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | open! Import
open Std_internal
open! Int.Replace_polymorphic_compare
module Stable = struct
module V1 = struct
module Parts = struct
type t =
{ sign : Sign.t
; hr : int
; min : int
; sec : int
; ms : int
; us : int
; ns : int
}
[@@derivi... | 37.363065 | 90 | 0.607478 |
8a0234de6c6613ca5827459d2425de12773bb999 | 6,301 | ml | OCaml | engine/main.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | engine/main.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | engine/main.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | open Lang
open Print
open Options
open Preproc
(* Framework for learning functional programming *)
let usage_msg = "main.native -fix (or -gen_test) -submission <filename> -solution <filename> (or -solutions <directory>) -testcases <testcase> -entry <entry>"
let is_same_type : prog -> prog -> unit
= fun pgm cpgm ->
... | 40.915584 | 158 | 0.659578 |
8ae6a0dd59f18d7d398d8ef0a7332e9cf47e7536 | 8,982 | ml | OCaml | code/tests/gnutls/crypto.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/tests/gnutls/crypto.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/tests/gnutls/crypto.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | open Nettls_gnutls.Symmetric_crypto
open Printf
let print_hex s =
let l = String.length s in
for k = 0 to l - 1 do
printf " %02x" (Char.code s.[k]);
if (k+1) mod 16 = 0 then printf "\n"
done;
if l mod 16 <> 0 then printf "\n"
let run title f expected_result =
printf "Test %s: %!" title;
try
le... | 32.309353 | 128 | 0.671677 |
44215a604a7a198663601164f96f0b1c98b9cb60 | 3,672 | ml | OCaml | merlin/analysis/type_enclosing.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | merlin/analysis/type_enclosing.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | merlin/analysis/type_enclosing.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | open Std
let log_section = "type-enclosing"
let {Logger.log} = Logger.for_section log_section
type type_info =
| Modtype of Env.t * Types.module_type
| Type of Env.t * Types.type_expr
| Type_decl of Env.t * Ident.t * Types.type_declaration
| String of string
type typed_enclosings =
(Location.t * type_info ... | 33.381818 | 79 | 0.616013 |
8af0f52b86fd2658d03075f95cd1561be7ae560d | 872 | ml | OCaml | benchmarks/formula/formula1/submissions/sub280.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/formula/formula1/submissions/sub280.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/formula/formula1/submissions/sub280.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type formula = TRUE
| FALSE
| NOT of formula
| ANDALSO of formula * formula
| ORELSE of formula * formula
| IMPLY of formula * formula
| LESS of expr * expr
and expr = NUM of int
| PLUS of expr * expr
| MINUS of expr * expr
let rec eval form =
match form with
| NOT (form2) ->
not (eval(form2... | 25.647059 | 62 | 0.555046 |
8ae435b49697f3ef731e1c4273e61faf3c81e449 | 1,364 | mli | OCaml | proverif2.00/src/movenew.mli | darrenldl/ProVerif-ATP | 7af6cfb9e0550ecdb072c471e15b8f22b07408bd | [
"MIT"
] | 17 | 2019-05-05T17:05:26.000Z | 2022-03-18T03:04:58.000Z | proverif2.00/src/movenew.mli | darrenldl/ProVerif-ATP | 7af6cfb9e0550ecdb072c471e15b8f22b07408bd | [
"MIT"
] | 1 | 2019-08-01T09:14:41.000Z | 2019-08-01T09:14:41.000Z | proverif2.00/src/movenew.mli | darrenldl/ProVerif-ATP | 7af6cfb9e0550ecdb072c471e15b8f22b07408bd | [
"MIT"
] | 3 | 2019-10-21T07:31:46.000Z | 2022-02-26T14:21:24.000Z | (*************************************************************
* *
* Cryptographic protocol verifier *
* *
* Bruno Blanchet, Vincent Cheval, and Marc Sylvestre *
* ... | 44 | 77 | 0.500733 |
8a6224b097fbb6949ff188ff34a2e661e1eb70e8 | 925 | ml | OCaml | benchmarks/formula/formula1/submissions/sub248.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/formula/formula1/submissions/sub248.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/formula/formula1/submissions/sub248.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z |
type formula = TRUE
| FALSE
| NOT of formula
| ANDALSO of formula * formula
| ORELSE of formula * formula
| IMPLY of formula * formula
| LESS of expr * expr
and expr = NUM of int
| PLUS of expr * expr
| MINUS of expr * expr
let rec calc (e : expr) : int =
match e with
| NUM i -> i
| PLUS (ea, eb) ->... | 25.694444 | 60 | 0.499459 |
af4bfaa9c278060e43175436890d83933db7bb10 | 4,215 | ml | OCaml | src/should.ml | zapashcanon/should.ml | 85c9771b369da85edea5a3ca51325a91352fce55 | [
"MIT"
] | 13 | 2016-01-16T22:37:52.000Z | 2020-03-31T21:02:47.000Z | src/should.ml | zapashcanon/should.ml | 85c9771b369da85edea5a3ca51325a91352fce55 | [
"MIT"
] | 1 | 2022-01-11T03:43:03.000Z | 2022-01-11T03:43:03.000Z | src/should.ml | zapashcanon/should.ml | 85c9771b369da85edea5a3ca51325a91352fce55 | [
"MIT"
] | 2 | 2017-12-11T18:07:07.000Z | 2019-10-03T23:32:42.000Z | module Internal = struct
type 'a p = 'a -> bool (* predicate *)
class type ['elt,'ty] coll = object
method value : 'ty
method length : int
method contains : 'elt -> bool
end
class type ['a,'b] call = object
method func : ('a -> 'b)
method arg: 'a
end
class... | 34.834711 | 131 | 0.45172 |
8ab7d582bfd97d54186a1fb9e45b78126f2161ce | 57,512 | ml | OCaml | src/typing/react_kit.ml | terrorizer1980/flow | d24b07b27fb92c9fd3eb95b6c2fecc57e4ea6cb5 | [
"MIT"
] | null | null | null | src/typing/react_kit.ml | terrorizer1980/flow | d24b07b27fb92c9fd3eb95b6c2fecc57e4ea6cb5 | [
"MIT"
] | null | null | null | src/typing/react_kit.ml | terrorizer1980/flow | d24b07b27fb92c9fd3eb95b6c2fecc57e4ea6cb5 | [
"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 React
let err_incompatible
cx
trace
~use_op
~(add_output : Context.t -> ?... | 41.197708 | 101 | 0.563743 |
8aa8240b19362a0017c4f391c0621f817f37ad42 | 777 | mli | OCaml | duniverse/core_bench/src/measurement.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_bench/src/measurement.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_bench/src/measurement.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (** A module internal to [Core_bench]. Please look at {!Bench}.
Contains the measurements of several runs of one benchmark. *)
open! Core
type t [@@deriving sexp]
val name : t -> string
val test_name : t -> string
val file_name : t -> string
val module_name : t -> string
val largest_run : t -... | 25.064516 | 87 | 0.66538 |
afe328b8f2e11ea6e6ea8e8a09cb79804cb88931 | 1,181 | ml | OCaml | data/sp14/3518.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/3518.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/3518.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) =
match f b with
| (b',c') -> (match c' with | true -> wwhile (f, b') | false -> b');;
let fixpoint (f,b) = wwhile (let func x y x y = (y, true) in ((func f b), b));;
(* fix
let rec wwhile (f,b) =
match f b with
| (b',c') -> (match c' with | true -> wwhile (f, b') | false -> b');;
... | 14.949367 | 79 | 0.453853 |
8a86dfc66d571d0959f8178232211fec36249755 | 2,599 | ml | OCaml | delimcc.ml | dariusf/effects-examples | 618bf7cbac78a33f850540f608f1171b38c0f7e3 | [
"0BSD"
] | 79 | 2020-06-11T13:03:50.000Z | 2022-03-22T11:26:31.000Z | delimcc.ml | dariusf/effects-examples | 618bf7cbac78a33f850540f608f1171b38c0f7e3 | [
"0BSD"
] | 11 | 2020-06-04T04:49:52.000Z | 2022-03-22T11:19:35.000Z | delimcc.ml | dariusf/effects-examples | 618bf7cbac78a33f850540f608f1171b38c0f7e3 | [
"0BSD"
] | 10 | 2020-08-09T22:38:04.000Z | 2022-01-21T18:02:57.000Z | (* One-shot multi-prompt delimited control :
http://okmij.org/ftp/continuations/implementations.html *)
module type S = sig
type 'a prompt
(* One-shot continuation. *)
type ('a,'b) subcont
val new_prompt : unit -> 'a prompt
val push_prompt : 'a prompt -> (unit -> 'a) -> 'a
val take_subcont : 'b prompt -> ... | 36.097222 | 126 | 0.567911 |
8aa25ea7427f10c18ea9846fcca2cdc906ed0ed4 | 1,891 | ml | OCaml | data/sp14/0394.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/0394.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0394.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine expr -> "sin(pi*" ^ ((exprToString expr) ^ ")")
| Cosine expr -> "cos(pi" ^ ((... | 23.345679 | 83 | 0.498678 |
8af1b45439f47c83d23f1ce64b82cf5803f7c17c | 3,521 | ml | OCaml | src/proto_004_Pt24m4xi/lib_protocol/raw_level_repr.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_004_Pt24m4xi/lib_protocol/raw_level_repr.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_004_Pt24m4xi/lib_protocol/raw_level_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> *)
... | 38.692308 | 93 | 0.555808 |
8aa700d854efbcdc704d76dcd241fafd357574bd | 1,358 | mli | OCaml | src/mode.mli | sinancepel/dune | 4c659dce13f982736a24952bd29172b4c21440c4 | [
"MIT"
] | null | null | null | src/mode.mli | sinancepel/dune | 4c659dce13f982736a24952bd29172b4c21440c4 | [
"MIT"
] | 2 | 2018-01-12T08:41:59.000Z | 2020-12-30T21:57:31.000Z | src/mode.mli | rgrinberg/jbuilder | d6cca0cc627367e24cf92e0db4a1f58efa7c5793 | [
"MIT"
] | null | null | null | open! Import
type t = Byte | Native
val decode : t Dune_lang.Decoder.t
val all : t list
val compiled_unit_ext : t -> string
val compiled_lib_ext : t -> string
val exe_ext : t -> string
val plugin_ext : t -> string
val cm_kind : t -> Cm_kind.t
val of_cm_kind : Cm_kind.t -> t
val variant : t -> Variant.t
val to_st... | 20.268657 | 67 | 0.548601 |
44115309fd5d27905ea0fdd7125c1e65866784cc | 3,046 | ml | OCaml | src/ast.ml | hhugo/ocaml-minipy | a7670f9bcef5aa724b5a5e24a2f8184101f9f53a | [
"Apache-2.0"
] | null | null | null | src/ast.ml | hhugo/ocaml-minipy | a7670f9bcef5aa724b5a5e24a2f8184101f9f53a | [
"Apache-2.0"
] | null | null | null | src/ast.ml | hhugo/ocaml-minipy | a7670f9bcef5aa724b5a5e24a2f8184101f9f53a | [
"Apache-2.0"
] | null | null | null | open Base
type zarith = Z.t
let sexp_of_zarith z = Z.to_string z |> sexp_of_string
let zarith_of_sexp s = string_of_sexp s |> Z.of_string
type boolop =
| And
| Or
[@@deriving sexp]
type unaryop =
| Invert
| Not
| UAdd
| USub
[@@deriving sexp]
type operator =
| Add
| Sub
| Mult
| MatMult
| Div... | 16.736264 | 54 | 0.514773 |
8aff0261733739e2e88ce7f005511cfac5e5bc04 | 2,135 | mli | OCaml | src/lib_base/p2p_addr.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 1 | 2021-11-03T08:21:08.000Z | 2021-11-03T08:21:08.000Z | src/lib_base/p2p_addr.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_base/p2p_addr.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 4 | 2021-04-27T15:00:34.000Z | 2021-09-26T21:50:01.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 54.74359 | 79 | 0.488993 |
8aa8529bc716a01874c4358268c204b5db0ed50b | 4,016 | ml | OCaml | Flap/src/hobix/hobixPrettyPrinter.ml | kolibs/School_projects | d6c45814bf21c1ae788eb2e070f9745414e07553 | [
"MIT"
] | 1 | 2022-02-16T08:38:10.000Z | 2022-02-16T08:38:10.000Z | Flap/src/hobix/hobixPrettyPrinter.ml | kolibs/School_projects | d6c45814bf21c1ae788eb2e070f9745414e07553 | [
"MIT"
] | null | null | null | Flap/src/hobix/hobixPrettyPrinter.ml | kolibs/School_projects | d6c45814bf21c1ae788eb2e070f9745414e07553 | [
"MIT"
] | 2 | 2020-01-11T19:07:41.000Z | 2020-10-08T14:12:54.000Z | open PPrint
open PPrintCombinators
open PPrintEngine
open ExtPPrint
open HobixAST
open Position
let int i = string (Int64.to_string i)
let rec program p =
separate_map hardline (definition) p
and definition = function
| DefineValue vd ->
value_definition "val" vd
| DeclareExtern (x, n) ->
group (strin... | 25.257862 | 100 | 0.551295 |
440b0113130ecf42bd0116f08f622b0209aaedb8 | 1,652 | mli | OCaml | src/semaphore.mli | glennsl/luv | 97497dec2fc205f13fef392423a9333e9ae5c3e1 | [
"MIT"
] | 253 | 2018-07-12T20:32:22.000Z | 2022-02-16T03:43:40.000Z | src/semaphore.mli | glennsl/luv | 97497dec2fc205f13fef392423a9333e9ae5c3e1 | [
"MIT"
] | 124 | 2018-11-21T03:06:42.000Z | 2022-03-11T01:48:36.000Z | src/semaphore.mli | glennsl/luv | 97497dec2fc205f13fef392423a9333e9ae5c3e1 | [
"MIT"
] | 23 | 2019-02-09T15:59:04.000Z | 2021-12-13T12:53:41.000Z | (* This file is part of Luv, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/aantron/luv/blob/master/LICENSE.md. *)
(** Semaphores.
See {{:http://docs.libuv.org/en/v1.x/threading.html#semaphores}
{i Semaphores}} in libuv. *)
type t
(** Binds {{:http://docs.libuv.o... | 30.592593 | 79 | 0.655569 |
8a8cb55a70f563403a5c9fc0033cb5d34733a66a | 593 | ml | OCaml | result/fixml/lambda/sub121/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/lambda/sub121/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/lambda/sub121/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
and var = string
type bounded = var list
let update_bounded a stk = a :: stk
let rec find_bounded a stk =
match stk with
| [] -> false
| hd :: tl -> if hd = a then true else find_bounded a tl
let rec boundCheck : lambda -> bounded -> bool... | 22.807692 | 70 | 0.62226 |
441134f2b2cde41a77eaf29d2f9a8e8b0f079dfd | 79 | mli | OCaml | src/Prime.mli | c-cube/funarith | 1c86ac45e9608efaa761e3f14455402730885339 | [
"MIT"
] | 8 | 2017-12-15T15:34:30.000Z | 2017-12-20T05:35:55.000Z | src/Prime.mli | c-cube/funarith | 1c86ac45e9608efaa761e3f14455402730885339 | [
"MIT"
] | 7 | 2017-12-16T11:36:20.000Z | 2017-12-26T11:26:12.000Z | src/Prime.mli | c-cube/funarith | 1c86ac45e9608efaa761e3f14455402730885339 | [
"MIT"
] | null | null | null |
module type S = Prime_intf.S
module Make(I : Int.FULL) : S with module Z = I
| 15.8 | 47 | 0.670886 |
4405c296f8b98f3e904240e2aa91c71c2d4dcf5d | 136 | mli | OCaml | src/bc_compiler.mli | htpeter/ocaml-minipy | cd4245ced74d9edbd5d588c794d050ad2f19cf88 | [
"Apache-2.0"
] | 12 | 2020-02-01T01:25:02.000Z | 2022-03-07T08:15:11.000Z | src/bc_compiler.mli | htpeter/ocaml-minipy | cd4245ced74d9edbd5d588c794d050ad2f19cf88 | [
"Apache-2.0"
] | 3 | 2020-02-15T08:08:07.000Z | 2021-11-07T21:33:06.000Z | src/bc_compiler.mli | htpeter/ocaml-minipy | cd4245ced74d9edbd5d588c794d050ad2f19cf88 | [
"Apache-2.0"
] | 4 | 2020-02-03T01:42:51.000Z | 2020-05-19T19:21:52.000Z | open! Base
open! Import
exception
SyntaxError of
{ lineno : int
; error : string
}
val compile : Ast.t -> Bc_value.code
| 12.363636 | 36 | 0.632353 |
afb40ca52e269616d74e4383d80d1971759a1b8b | 618 | ml | OCaml | benchmarks/C/nat/sol245.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/nat/sol245.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/nat/sol245.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | (* problem 2*)
type nat = ZERO | SUCC of nat
let rec natadd : nat -> nat -> nat
= fun n1 n2 -> match n1 with
| ZERO -> n2
| SUCC(k) -> natadd k (SUCC (n2))
let natmul : nat -> nat -> nat
= fun n1 n2 -> if (n1 = ZERO) || (n2 = ZERO) then ZERO
else
let rec multi : nat -> nat -> nat -> nat
= fun n1 n2 n... | 25.75 | 57 | 0.55178 |
8a39fe2c88bc0872c4a703bafda7f9f9a01888e3 | 10,850 | ml | OCaml | mirage/server/dns_mirage_server.ml | cfcs/udns | 4493b1ca50c749d3dbeb013f0a2d2bf6fb9b2fbc | [
"BSD-2-Clause"
] | 54 | 2018-01-10T19:41:01.000Z | 2019-05-20T11:52:04.000Z | mirage/server/dns_mirage_server.ml | DavidAlphaFox/ocaml-dns | 818c85702787c1f292e89229c65447edcf932dfe | [
"ISC"
] | 19 | 2018-02-20T17:35:04.000Z | 2019-06-27T20:47:08.000Z | mirage/server/dns_mirage_server.ml | DavidAlphaFox/ocaml-dns | 818c85702787c1f292e89229c65447edcf932dfe | [
"ISC"
] | 6 | 2018-02-25T23:51:16.000Z | 2019-04-11T11:57:29.000Z | (* (c) 2018 Hannes Mehnert, all rights reserved *)
open Lwt.Infix
let src = Logs.Src.create "dns_mirage_server" ~doc:"effectful DNS server"
module Log = (val Logs.src_log src : Logs.LOG)
module Make (P : Mirage_clock_lwt.PCLOCK) (M : Mirage_clock_lwt.MCLOCK) (TIME : Mirage_time_lwt.S) (S : Mirage_stack_lwt.V4) = str... | 38.475177 | 138 | 0.558065 |
af5d9b4c4122c4220cc15db7fca0b784c544fae7 | 58 | mli | OCaml | test/negative/t10.mli | n-osborne/gospel | 0e89b4a85620a1ae4164c313b9c5790cfc885db4 | [
"MIT"
] | 42 | 2020-11-20T17:18:32.000Z | 2022-01-17T23:22:55.000Z | test/negative/t10.mli | n-osborne/gospel | 0e89b4a85620a1ae4164c313b9c5790cfc885db4 | [
"MIT"
] | 63 | 2020-11-23T13:12:17.000Z | 2022-03-31T13:53:17.000Z | test/negative/t10.mli | christinerose/gospel | 798464c971008bdb6b4ca28ef57299c9848d4d49 | [
"MIT"
] | 7 | 2020-11-23T01:42:06.000Z | 2022-03-17T13:23:53.000Z |
(*@ open T9 *)
(* ERROR: should fail when loading T9 *)
| 11.6 | 40 | 0.586207 |
afa7bbfdfa525db7df9de0ce9e74e7267842cccf | 2,052 | ml | OCaml | src/lib/core/eval.ml | kwshi/slick | d19017c2fd3ddc19dd564f37d4ac4bebd565d6e6 | [
"MIT"
] | null | null | null | src/lib/core/eval.ml | kwshi/slick | d19017c2fd3ddc19dd564f37d4ac4bebd565d6e6 | [
"MIT"
] | null | null | null | src/lib/core/eval.ml | kwshi/slick | d19017c2fd3ddc19dd564f37d4ac4bebd565d6e6 | [
"MIT"
] | null | null | null | open Containers
open Fun
let rec evaluate (sc : Val.t Scope.t) expr =
let apply f a = Val.Get.Exn.function_ f @@ evaluate sc a in
let apply_to a f = apply f a in
match expr.Slick_ast.Expr.expr with
| Assign (v, e, b) ->
evaluate (Scope.add v (evaluate sc e) sc) b
| Function (pat, e) ->
Function
... | 29.314286 | 80 | 0.523879 |
afcd5908e36f2a4d21523e3af94fe5981f44fcca | 3,348 | ml | OCaml | otherlibs/site/src/helpers.ml | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | otherlibs/site/src/helpers.ml | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | otherlibs/site/src/helpers.ml | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | open Dune_site_private
let path_sep = path_sep
module Location = struct
type t = string
end
let dirs : (string * Dune_section.t, string) Hashtbl.t = Hashtbl.create 10
(* multi-bindings first is the one with least priority *)
let () =
match Sys.getenv_opt dune_dir_locations_env_var with
| None -> ()
| Some ... | 27.669421 | 79 | 0.649343 |
441b8bae5145f3559b2f4430afa8761efaaea25d | 1,657 | mli | OCaml | src/lib/latex.mli | Uriopass/touist | 42adbd799c9025198efcb782655f59de7d720152 | [
"MIT"
] | 1 | 2021-08-25T13:56:40.000Z | 2021-08-25T13:56:40.000Z | src/lib/latex.mli | Uriopass/touist | 42adbd799c9025198efcb782655f59de7d720152 | [
"MIT"
] | null | null | null | src/lib/latex.mli | Uriopass/touist | 42adbd799c9025198efcb782655f59de7d720152 | [
"MIT"
] | null | null | null | (** Transform any AST (at any stage of transformation) to latex.
Note that the headers are not included; if you want to compile
the resulting latex text in a real latex document, you would need
to add (fr example):
{[
\documentclass[11pt]{report}
\usepackage{mathtools}
\begin{document... | 39.452381 | 94 | 0.678938 |
4415d23cf8cd37114ddc5f1aeea309b529a7c9f1 | 1,123 | ml | OCaml | benchmarks/misc/unknowns_are_ids.ml | victornicolet/atropos | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 3 | 2021-05-03T16:20:32.000Z | 2021-05-14T19:59:51.000Z | benchmarks/misc/unknowns_are_ids.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | null | null | null | benchmarks/misc/unknowns_are_ids.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | 1 | 2021-05-12T15:14:40.000Z | 2021-05-12T15:14:40.000Z | type 'a clist = CNil | Single of 'a | Concat of 'a clist * 'a clist
type 'a list = Nil | Cons of 'a * 'a list
(*
This is our reference function. It is not named spec and we will need to
declare our synthesis objective using an assert statement at the end of
the file.
*)
let rec sum = function Nil -> 0 | Cons (h... | 28.794872 | 79 | 0.645592 |
8ac9734096f0c976226f72937756d2df6201dd57 | 7,797 | ml | OCaml | data/derived/comb/progs/unify/prog7841.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/prog3046.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3046.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.076923 | 148 | 0.675388 |
8a6de76f017b1c24a69d05fcef694971d5933a54 | 395 | ml | OCaml | examples/modules.ml | chrisnevers/amulet | 17114c7b429450ff1c0f9257e11d5f442d0d426c | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | examples/modules.ml | aiverson/amulet | b725df9b1b634b791a47a0bc8056e24f122b57ac | [
"BSD-3-Clause"
] | null | null | null | examples/modules.ml | aiverson/amulet | b725df9b1b634b791a47a0bc8056e24f122b57ac | [
"BSD-3-Clause"
] | null | null | null | external val (+) : int -> int -> int = "function(a, b) return a + b end"
module Option =
type option 'a =
| Just of 'a
| Nothing
let map f m =
match m with
| Just x -> Just (f x)
| Nothing -> Nothing
module Helpers =
let fmap = map
module O = Option.Helpers
let _ = O.fmap (fun x -> x ... | 19.75 | 72 | 0.572152 |
8a982a73aeea0217d8266ebd74e241b301171867 | 9,616 | ml | OCaml | src/normalize.ml | jdublu10/lambda-amor | f77d1b8260f222b43e0c5462cf0c802f232c909f | [
"BSD-3-Clause"
] | null | null | null | src/normalize.ml | jdublu10/lambda-amor | f77d1b8260f222b43e0c5462cf0c802f232c909f | [
"BSD-3-Clause"
] | null | null | null | src/normalize.ml | jdublu10/lambda-amor | f77d1b8260f222b43e0c5462cf0c802f232c909f | [
"BSD-3-Clause"
] | null | null | null | (* Joseph Cutler, 2021 *)
open Syntax
module IMap = Map.Make(struct
type t = la_idx_var
let compare = compare
end)
(*
* ctx: for sort/kind inference.
* alias_env: maps type/idx aliases to their types
* idx_env: bound idx vars for nbe
*)
type e... | 47.60396 | 247 | 0.630512 |
8a23a0cc29db902532fea748682c3e606903544b | 53,299 | ml | OCaml | hphp/hack/src/typing/typing_env.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_env.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_env.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
open Common
open Decl_env
open Typing_env_types
open Typing_defs
open Aast
open Typing_env_return_in... | 32.420316 | 99 | 0.689975 |
8acf0f6ec8d3c9604d7d5172cbe789a88d774821 | 37,243 | ml | OCaml | lib/mirage.ml | dinosaure/mirage | 16532c5f0b60ba4d924a85e80ed3aa589194a8e8 | [
"0BSD"
] | 1 | 2022-03-16T18:16:49.000Z | 2022-03-16T18:16:49.000Z | lib/mirage.ml | dinosaure/mirage | 16532c5f0b60ba4d924a85e80ed3aa589194a8e8 | [
"0BSD"
] | null | null | null | lib/mirage.ml | dinosaure/mirage | 16532c5f0b60ba4d924a85e80ed3aa589194a8e8 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013 Thomas Gazagnaire <thomas@gazagnaire.org>
* Copyright (c) 2013 Anil Madhavapeddy <anil@recoil.org>
* Copyright (c) 2018 Mindy Preston <meetup@yomimono.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provide... | 39.536093 | 115 | 0.626346 |
44270f032fc7afa8194ebff30079cabe90b5ebea | 21,031 | mli | OCaml | src/lib/ltsa.mli | pitag-ha/lascar | 944cfad2ad591b8c3cc1e463ed8ee995a6cff40a | [
"MIT"
] | 24 | 2017-11-07T18:56:34.000Z | 2022-03-08T00:23:33.000Z | src/lib/ltsa.mli | pitag-ha/lascar | 944cfad2ad591b8c3cc1e463ed8ee995a6cff40a | [
"MIT"
] | 1 | 2019-08-16T07:24:26.000Z | 2019-08-18T17:31:53.000Z | src/lib/ltsa.mli | pitag-ha/lascar | 944cfad2ad591b8c3cc1e463ed8ee995a6cff40a | [
"MIT"
] | 2 | 2019-10-18T14:47:36.000Z | 2022-03-03T19:37:05.000Z | (**********************************************************************)
(* *)
(* LASCAr *)
(* *)
(* Copyright (c) 2017-prese... | 47.581448 | 226 | 0.617374 |
f38181f7f787dd454c1d76b6fe984b45aa865a1c | 12,107 | ml | OCaml | stl/old_examples/example5/Interface.ml | cherosene/ctl_logic | c10848f5f1236db25c8d084ecd40b7df830e9686 | [
"MIT"
] | null | null | null | stl/old_examples/example5/Interface.ml | cherosene/ctl_logic | c10848f5f1236db25c8d084ecd40b7df830e9686 | [
"MIT"
] | null | null | null | stl/old_examples/example5/Interface.ml | cherosene/ctl_logic | c10848f5f1236db25c8d084ecd40b7df830e9686 | [
"MIT"
] | 1 | 2021-01-26T15:29:23.000Z | 2021-01-26T15:29:23.000Z | open Sys
open Images
open Graphics
open Bmp
open Bitmap
open Graphic_image
open Thread
open StlLogic
open Graph
open Model
open StlConvert
(** spazio **)
module MySpacePoint = struct
type t = int * int
let string_of_point = fun (x,y) -> Printf.sprintf "(%d,%d)" x y
let compare = fun (x1,y1) (x2,y2) ->
if Pe... | 32.721622 | 164 | 0.64855 |
8ad60829c1b68350c0f1e595dbc8f1fd5b645260 | 356 | ml | OCaml | sol/sol_025.ml | bcc32/projecteuler-ocaml | 647a1db1caaf919a1c506c213a2e7948ac3ea63c | [
"MIT"
] | 10 | 2018-10-15T02:11:39.000Z | 2022-01-26T08:57:12.000Z | sol/sol_025.ml | bcc32/projecteuler-ocaml | 647a1db1caaf919a1c506c213a2e7948ac3ea63c | [
"MIT"
] | null | null | null | sol/sol_025.ml | bcc32/projecteuler-ocaml | 647a1db1caaf919a1c506c213a2e7948ac3ea63c | [
"MIT"
] | 1 | 2020-04-18T13:03:50.000Z | 2020-04-18T13:03:50.000Z | open! Core
open! Import
let threshold = Bigint.(pow (of_int 10) (of_int 999))
let main () =
Sequence.findi Number_theory.Bigint.fibonacci ~f:(fun _ f -> Bigint.(f >= threshold))
|> uw
|> fst
|> printf "%d\n"
;;
(* 1.692ms *)
let%expect_test "answer" =
main ();
[%expect {| 4782 |}]
;;
include (val Soluti... | 17.8 | 87 | 0.617978 |
44285fc842270898afa3453ecbd3afa55942c4cc | 916 | mli | OCaml | src/ppx_repr/lib/algebraic.mli | Ngoguey42/repr | b84a68f448c1ece2327f6e8928f1948280d6ba07 | [
"0BSD"
] | 26 | 2020-10-12T15:06:16.000Z | 2022-01-10T21:02:59.000Z | src/ppx_repr/lib/algebraic.mli | Ngoguey42/repr | b84a68f448c1ece2327f6e8928f1948280d6ba07 | [
"0BSD"
] | 46 | 2020-10-12T17:17:14.000Z | 2022-03-23T14:16:33.000Z | src/ppx_repr/lib/algebraic.mli | Ngoguey42/repr | b84a68f448c1ece2327f6e8928f1948280d6ba07 | [
"0BSD"
] | 8 | 2020-10-12T14:53:30.000Z | 2021-06-15T12:51:50.000Z | (*
* Copyright (c) 2019-2020 Craig Ferguson <me@craigfe.io>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 43.619048 | 75 | 0.7631 |
8ace923f80badde5273bae329b0a2becc4b6ddc4 | 2,794 | ml | OCaml | src/dune_rules/module_name.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | null | null | null | src/dune_rules/module_name.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 1 | 2017-12-08T01:25:07.000Z | 2017-12-08T01:25:07.000Z | src/dune_rules/module_name.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 1 | 2017-12-07T21:21:12.000Z | 2017-12-07T21:21:12.000Z | open! Dune_engine
open Stdune
let valid_format_doc = Section.valid_format_doc
include Section.Modulelike (struct
type t = string
let description = "module name"
let module_ = "Module_name"
let to_string s = s
let make s = String.capitalize s
end)
let equal = String.equal
let compare = String.compare
... | 23.478992 | 79 | 0.646027 |
441c6760cd2eb2ecf272ed71d6e61d3bd6847fa2 | 8,362 | ml | OCaml | eval/ocaml/otherlibs/graph/graphics.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/otherlibs/graph/graphics.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/otherlibs/graph/graphics.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 31.43609 | 79 | 0.623296 |
afa848ab393f57fd37ee0aa6a5f52c53944850b9 | 24,086 | ml | OCaml | src/lib_shell/bootstrap_pipeline.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | src/lib_shell/bootstrap_pipeline.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | src/lib_shell/bootstrap_pipeline.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020-2021 Nomadic Labs. <contact@nomadic-labs.com> *)
... | 41.743501 | 81 | 0.627584 |
8a2160dbf8c1578702bb7e6864e8c68691136d90 | 18,626 | ml | OCaml | data/derived/comb/progs/unify/prog4302.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/prog4302.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4302.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.850088 | 208 | 0.662354 |
8aa460f3a1ac674f7d1009f8e48aa12bd63c22b7 | 712 | ml | OCaml | benchmarks/formula/formula1/submissions/sub378.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/formula/formula1/submissions/sub378.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/formula/formula1/submissions/sub378.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type formula=TRUE
|FALSE
|NOT of formula
|ANDALSO of formula*formula
|ORELSE of formula*formula
|IMPLY of formula*formula
|LESS of expr*expr
and expr=NUM of int
|PLUS of expr*expr
|MINUS of expr*expr
let rec eval_expr:ex... | 26.37037 | 42 | 0.558989 |
8aee00e8d68ce58d4a700e93b3c5d55507cf2c43 | 1,284 | ml | OCaml | src/hack_forked/test/unit/heap/test_removed.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-07-08T17:40:26.000Z | 2020-07-08T17:40:26.000Z | src/hack_forked/test/unit/heap/test_removed.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 2 | 2021-09-02T16:30:33.000Z | 2021-09-02T16:30:34.000Z | src/hack_forked/test/unit/heap/test_removed.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.
*)
type key = OpaqueDigest.t
module IntVal = struct
type t = int
let prefix = Prefix.make ()
let description = "IntVal"
end
... | 26.75 | 99 | 0.647975 |
8a1889ecb570f2a1a82030a57d63315d3bddcd78 | 2,543 | ml | OCaml | test/test_defvar.ml | andersfugmann/ecaml | c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c | [
"MIT"
] | 245 | 2016-08-29T14:21:13.000Z | 2022-03-12T04:08:52.000Z | test/test_defvar.ml | andersfugmann/ecaml | c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c | [
"MIT"
] | 13 | 2016-08-29T14:55:35.000Z | 2021-07-30T04:25:32.000Z | test/test_defvar.ml | andersfugmann/ecaml | c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c | [
"MIT"
] | 13 | 2016-08-30T00:53:52.000Z | 2021-12-17T02:51:25.000Z | open! Core
open! Async_kernel
open! Import
open! Defvar
let%expect_test "[defvar]" =
let x = "x" |> Symbol.intern in
ignore
(defvar x [%here] ~docstring:"some text" ~type_:Value.Type.int ~initial_value:13 ()
: _ Var.t);
print_s [%sexp (Current_buffer.value_exn { symbol = x; type_ = Value.Type.int } : in... | 23.990566 | 90 | 0.611089 |
8ac5a75f2d0d27f638efd23b7f505c8288bdd463 | 18,144 | ml | OCaml | source/analysis/astEnvironment.ml | abishekvashok/pyre-check | 20ae7df26216db06fcb17246f6125f4b6655890f | [
"MIT"
] | null | null | null | source/analysis/astEnvironment.ml | abishekvashok/pyre-check | 20ae7df26216db06fcb17246f6125f4b6655890f | [
"MIT"
] | 1 | 2021-08-16T12:11:37.000Z | 2021-08-16T12:11:37.000Z | source/analysis/astEnvironment.ml | abishekvashok/pyre-check | 20ae7df26216db06fcb17246f6125f4b6655890f | [
"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 Ast
open Core
open Pyre
open PyreParser
type t = {
module_tracker: ModuleTracker.t;
additional_preprocessing: (Source.t -... | 36.654545 | 102 | 0.66358 |
af4c8d7a08369b2dfb5b91e9979af20d8a28d29e | 1,234 | mli | OCaml | libraries/elasticache/lib/describeCacheSubnetGroups.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/elasticache/lib/describeCacheSubnetGroups.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticache/lib/describeCacheSubnetGroups.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Returns a list of cache subnet group descriptions. If a subnet group name is specified, the list contains only the description of that group. This is applicable only when you have ElastiCache in VPC setup. All ElastiCache clusters now launch in VPC by default. </p>" *)
open Types[@@ocaml.warning "-33"]
open Aws... | 45.703704 | 277 | 0.709887 |
8aa40b847b9ed95f749fa90e3789a1ed0d57f773 | 4,172 | ml | OCaml | ocaml_modules/base/src/exn.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/base/src/exn.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/base/src/exn.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | open! Import
type t = exn [@@deriving_inline sexp_of]
let sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t = sexp_of_exn
[@@@end]
let exit = Caml.exit
exception Finally of t * t [@@deriving_inline sexp]
let () =
Ppx_sexp_conv_lib.Conv.Exn_converter.add ([%extension_constructor Finally])
(function
| Finally (v0,... | 26.405063 | 90 | 0.674017 |
8ad3703fe1814bdfa2626ccd0829fd0a5061af5f | 107 | ml | OCaml | result/prog/sigma/sub13/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/sigma/sub13/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/sigma/sub13/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec sigma (f : int -> int) (a : int) (b : int) : int =
if a <= b then f b + sigma f a (b - 1) else 0
| 35.666667 | 58 | 0.495327 |
8a638f7b1268dea5f5134c03f3cfeaddc5e1bddc | 2,280 | ml | OCaml | source/searchPath.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/searchPath.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/searchPath.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 501 | 2018-05-11T16:46:29.000Z | 2022-03-19T04:41:57.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
module Path = PyrePath
type t =
| Root of Path.t
| Subdirectory of {
root: Path.t;
subdirectory: string;... | 27.46988 | 93 | 0.690351 |
8ab382edef273ed3af5068fe8a25b873db01dbc7 | 4,815 | ml | OCaml | src/lib/vm/data.ml | iLambda/language-dlg | bb5e5ec7cb0782315f6d518bc9cb8e5a1765ae02 | [
"MIT"
] | 3 | 2018-10-20T18:31:33.000Z | 2020-08-01T21:22:58.000Z | src/lib/vm/data.ml | iLambda/language-dlg | bb5e5ec7cb0782315f6d518bc9cb8e5a1765ae02 | [
"MIT"
] | null | null | null | src/lib/vm/data.ml | iLambda/language-dlg | bb5e5ec7cb0782315f6d518bc9cb8e5a1765ae02 | [
"MIT"
] | null | null | null | (* A value *)
type value =
| VInt of int32
| VFloat of float
| VBool of bool
| VString of string
(* VEnum of string ??? *)
| VVec2 of float * float
| VVec3 of float * float * float
(* string of value *)
let inline_string_of_value = function
| VInt i -> Int32.to_string i
| VFloat f -> string_of_float ... | 34.640288 | 120 | 0.647352 |
8ab9c97801d8221559b687b2f51db37df86a851e | 2,485 | mli | OCaml | src/lib/transition_frontier/frontier_base/breadcrumb.mli | jackpaparian/coda | 6da61361bdfda7f0de0ce525230b35bac965cb17 | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/lib/transition_frontier/frontier_base/breadcrumb.mli | kunxian-xia/coda | 93295e8b4db5f4f2d192a26f90146bf322808ef8 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_frontier/frontier_base/breadcrumb.mli | kunxian-xia/coda | 93295e8b4db5f4f2d192a26f90146bf322808ef8 | [
"Apache-2.0"
] | null | null | null | (** A breadcrumb is a "full node" in the transition frontier. It contains the
* fully expanded state from an external transition, including the full
* staged ledger at that state of the blockchain.
*)
open Async_kernel
open Core_kernel
open Signature_lib
open Coda_base
open Coda_state
open Coda_transition
type t... | 26.157895 | 77 | 0.715091 |
f34bf9da1c20f917da6b953d4e60e3614da40588 | 2,300 | ml | OCaml | src/proto_alpha/lib_delegate/client_baking_scheduling.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/client_baking_scheduling.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/client_baking_scheduling.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 67.647059 | 82 | 0.513478 |
8abbbd337bd2dfb38c845699ec200372ca947cb6 | 643 | mli | OCaml | infer/src/backend/InferAnalyze.mli | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 1 | 2017-09-14T09:03:44.000Z | 2017-09-14T09:03:44.000Z | infer/src/backend/InferAnalyze.mli | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 2 | 2020-11-13T19:42:27.000Z | 2020-11-13T19:49:19.000Z | infer/src/backend/InferAnalyze.mli | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2009 - 2013 Monoidics ltd.
* 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... | 33.842105 | 92 | 0.735614 |
8af2ecd5a3634848362b6aa01204e578c0a066f5 | 1,238 | ml | OCaml | src/owl/dense/owl_dense_ndarray_s.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/owl/dense/owl_dense_ndarray_s.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/owl/dense/owl_dense_ndarray_s.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
open Bigarray
module M = Owl_dense_ndarray_generic
include M
type elt = float
type arr = (float, float32_elt, c_layout) Genarray.t
let number = Owl_types.F32
(* overload functions in Owl_dens... | 23.807692 | 81 | 0.749596 |
afa72fefb763d2594a271da65f870d96fc55054c | 407 | ml | OCaml | test/enumerate_par.ml | SumitPadhiyar/domainslib | 787f4379d294234b972a8ab582a17dd887518697 | [
"0BSD"
] | null | null | null | test/enumerate_par.ml | SumitPadhiyar/domainslib | 787f4379d294234b972a8ab582a17dd887518697 | [
"0BSD"
] | null | null | null | test/enumerate_par.ml | SumitPadhiyar/domainslib | 787f4379d294234b972a8ab582a17dd887518697 | [
"0BSD"
] | null | null | null | let num_domains = try int_of_string Sys.argv.(1) with _ -> 1
let n = try int_of_string Sys.argv.(2) with _ -> 100
module T = Domainslib.Task
let _ = Parafuzz_lib.run (fun () ->
let p = T.setup_pool ~num_domains:(num_domains - 1) in
T.parallel_for p ~start:0 ~finish:(n-1) ~chunk_size:16 ~body:(fun i ->
print_s... | 37 | 76 | 0.658477 |
f30726002efc08269eea269a198523b3c9a45058 | 515 | mli | OCaml | lib/eqaf_bigstring.mli | imbsky/eqaf | c80cf7caa9703ce438644074e63c49e417f31953 | [
"MIT"
] | null | null | null | lib/eqaf_bigstring.mli | imbsky/eqaf | c80cf7caa9703ce438644074e63c49e417f31953 | [
"MIT"
] | null | null | null | lib/eqaf_bigstring.mli | imbsky/eqaf | c80cf7caa9703ce438644074e63c49e417f31953 | [
"MIT"
] | null | null | null | type bigstring = (char, Bigarray_compat.int8_unsigned_elt, Bigarray_compat.c_layout) Bigarray_compat.Array1.t
val equal : bigstring -> bigstring -> bool
val compare_be : bigstring -> bigstring -> int
val compare_be_with_len : len:int -> bigstring -> bigstring -> int
val compare_le : bigstring -> bigstring -> int
val c... | 51.5 | 109 | 0.720388 |
440e586c30d227e1bbc0347ee46b9630b468c2c5 | 219 | mli | OCaml | infer/src/unit/clang/QualifiedCppNameTests.mli | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/unit/clang/QualifiedCppNameTests.mli | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/unit/clang/QualifiedCppNameTests.mli | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2019-04-26T02:27:43.000Z | 2019-04-26T02:27:43.000Z | (*
* Copyright (c) 2017-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! IStd
val tests : OUnit2.test
| 19.909091 | 66 | 0.707763 |
44261434dc03cbb9376928c64a95553d3cbe59b8 | 988 | ml | OCaml | list_op.ml | krtx/icpc-library | b4d8f3aeea479171cc9f5f4069058d8a8e9e1b85 | [
"MIT"
] | null | null | null | list_op.ml | krtx/icpc-library | b4d8f3aeea479171cc9f5f4069058d8a8e9e1b85 | [
"MIT"
] | null | null | null | list_op.ml | krtx/icpc-library | b4d8f3aeea479171cc9f5f4069058d8a8e9e1b85 | [
"MIT"
] | null | null | null | let init n f =
assert (n >= 0);
let rec loop acc = function
| 0 -> acc
| n -> loop (f (n - 1) :: acc) (n - 1)
in
loop [] n
let map f l = List.rev (List.rev_map f l)
let map2 f l1 l2 = List.rev (List.rev_map2 f l1 l2)
let rev_mapi f l =
let rec loop count acc = function
| [] -> acc
| x :: re... | 22.976744 | 77 | 0.563765 |
8a60450f0aff6f73a79f479bfc6fa35d48325884 | 2,454 | ml | OCaml | test/egraph.ml | HugoGGuerrier/CAML_EGG | 13020097739e472df679aea6935aea845f118dc1 | [
"MIT"
] | null | null | null | test/egraph.ml | HugoGGuerrier/CAML_EGG | 13020097739e472df679aea6935aea845f118dc1 | [
"MIT"
] | null | null | null | test/egraph.ml | HugoGGuerrier/CAML_EGG | 13020097739e472df679aea6935aea845f118dc1 | [
"MIT"
] | null | null | null | (* Test function for the egg implementation memory manipulation *)
open Camlegg
let test_creation () =
let {id_cpt = id ; map = m ; hc = hc} = (!(create_e_graph ())) in
Alcotest.(check int) "Test base id" 0 id ;
Alcotest.(check bool) "Test base map" true (EClassIdMap.is_empty m) ;
Alcotest.(check bool... | 43.052632 | 86 | 0.671149 |
442e7c4f2ee5cf4e4849686d6ce25ccbe51aba16 | 12,621 | ml | OCaml | src/commands/commandUtils.ml | leebyron/flow | f35d3a96ad1fb4a985bf522ddc63ac1f66360904 | [
"BSD-3-Clause"
] | 3 | 2019-04-03T16:09:03.000Z | 2021-07-31T01:16:29.000Z | src/commands/commandUtils.ml | leebyron/flow | f35d3a96ad1fb4a985bf522ddc63ac1f66360904 | [
"BSD-3-Clause"
] | null | null | null | src/commands/commandUtils.ml | leebyron/flow | f35d3a96ad1fb4a985bf522ddc63ac1f66360904 | [
"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 "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open ... | 29.836879 | 91 | 0.681879 |
44240d73e42ca6fbaff8ae7c953938c96d6aff7c | 448 | ml | OCaml | examples/helloworld/helloworld.ml | keigoi/jrklib | f3631f6bf3dbc32578a9ed430398cca908cc7fd7 | [
"MIT"
] | 14 | 2021-11-05T10:55:55.000Z | 2022-03-06T07:40:04.000Z | examples/helloworld/helloworld.ml | keigoi/kmclib | f3631f6bf3dbc32578a9ed430398cca908cc7fd7 | [
"MIT"
] | null | null | null | examples/helloworld/helloworld.ml | keigoi/kmclib | f3631f6bf3dbc32578a9ed430398cca908cc7fd7 | [
"MIT"
] | null | null | null | [@@@warnerror "-22"]
open Kmclib
let KMC (ach,bch) = [%kmc.gen (a,b)]
let alice x : unit =
let ach = send ach#b#msg x in
Printf.printf "Alice sent: %s\n" x;
ach
let bob () =
let `msg(txt, ()) = receive bch#a in
Printf.printf "Bob received: %s\n" txt
let () = let athread = Thread.create alic... | 21.333333 | 62 | 0.580357 |
8aa0eed5d1b80839856d90a27f70dda8e53f14c0 | 12,084 | ml | OCaml | fpat/rankFunInfer.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 32 | 2019-10-30T10:09:56.000Z | 2022-03-28T07:15:04.000Z | fpat/rankFunInfer.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 1 | 2021-04-14T19:19:15.000Z | 2021-04-15T02:03:56.000Z | fpat/rankFunInfer.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 5 | 2019-11-08T07:49:00.000Z | 2022-03-01T18:09:57.000Z | open Util
open Combinator
(** Ranking function inference *)
let rank_widen = ref false
exception LRFNotFound
exception LLRFNotFound
let find_atom hcs =
let is_fail pid =
let s = Idnt.base pid in
String.length s >= 4 && String.sub s 0 4 = "fail"
in
if List.exists is_fail (HCCS.pvsH hcs) then begin
... | 32.571429 | 92 | 0.617097 |
8adfc726821c71d3d009a77655d089c4ad9dc101 | 32,038 | ml | OCaml | src/typing/type_visitor.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | 1 | 2021-03-12T10:46:28.000Z | 2021-03-12T10:46:28.000Z | src/typing/type_visitor.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | null | null | null | src/typing/type_visitor.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"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.
*)
open Type
module P = Type.Polarity
let pole_TODO = Neutral
(* We walk types in a lot of places for all kinds of things, but often most... | 32.07007 | 100 | 0.637805 |
8a184984ce1e807e3584aeec46139504a9d6aa39 | 6,513 | ml | OCaml | src/action_ast.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | null | null | null | src/action_ast.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | null | null | null | src/action_ast.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Dune_lang.Decoder
let () = let module M = Stanza in ()
module Outputs = struct
include Action_intf.Outputs
let to_string = function
| Stdout -> "stdout"
| Stderr -> "stderr"
| Outputs -> "outputs"
end
module Diff_mode = Action_intf.Diff_mode
module Make
(Program : D... | 31.162679 | 79 | 0.508368 |
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.