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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a40b378250eb1814db1d31273a6ca1fd80248bb | 416 | ml | OCaml | tests/compiler/types.t/fn.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | tests/compiler/types.t/fn.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | tests/compiler/types.t/fn.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (* FIXME: this should compile to fun( () -> A ) *)
type 'a defer = unit -> 'a
type 'a predicate = 'a -> bool
type add = int -> int -> int
type ('a, 'b) f = 'a -> 'b -> bool
(* FIXME: should this compile to?
* fun( (fun( integer()) -> boolean()) -> string ()).
*)
type nested = unit -> (int -> bool) -> stri... | 23.111111 | 56 | 0.509615 |
8a281758c156499a83e38b93bfd8d114b5c047ed | 427 | ml | OCaml | hphp/hack/src/server/serverSearch.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2017-09-13T22:07:37.000Z | 2017-09-13T22:07:37.000Z | hphp/hack/src/server/serverSearch.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverSearch.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
let go query ... | 28.466667 | 80 | 0.721311 |
afefcfe6c3ff7d668744e9287673774d25ad743b | 433 | ml | OCaml | lib/day_24/day_24.ml | p1xelHer0/advent-of-code-2021-ocaml | 769e3f8f7b201085963108a4536cd33b32683b90 | [
"MIT"
] | 2 | 2021-12-01T11:00:41.000Z | 2021-12-03T17:24:17.000Z | lib/day_24/day_24.ml | p1xelHer0/advent-of-code-2021-ocaml | 769e3f8f7b201085963108a4536cd33b32683b90 | [
"MIT"
] | null | null | null | lib/day_24/day_24.ml | p1xelHer0/advent-of-code-2021-ocaml | 769e3f8f7b201085963108a4536cd33b32683b90 | [
"MIT"
] | null | null | null | open ContainersLabels
module A = struct
let solve _l = 1
let%test _ = solve [] = 1
end
module B = struct
let solve _l = 1
let%test _ = solve [] = 1
end
let run () =
let input = "./lib/day_24/input" in
let parsed_input = input |> Util.read_file in
let _puzzle_a = parsed_input |> A.solve |> Printf.pr... | 17.32 | 79 | 0.625866 |
8a1a9e2e9f1a4c17f398fd2cbb2798f5650d0325 | 304 | ml | OCaml | infer/src/unit/clang/ClangTests.ml | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/unit/clang/ClangTests.ml | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/unit/clang/ClangTests.ml | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
let tests =
[CiOSVersionNumbersTests.tests; QualifiedCppNameTests.tests; CFrontend_errorsTests.tests]
| 27.636364 | 91 | 0.756579 |
8ab96875c999d5fa7986da5be8d18a7354d1ae70 | 3,123 | ml | OCaml | CodeHawk/CHJ/jchcmdline/jCHXTemplate.ml | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CHJ/jchcmdline/jCHXTemplate.ml | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CHJ/jchcmdline/jCHXTemplate.ml | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk C Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2020 Kestrel Technology LLC
Permission is hereby granted,... | 36.741176 | 95 | 0.649696 |
44340ea6146193b5040367ae8d65c01e59da8e8d | 900 | ml | OCaml | data/sp14/1069.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/1069.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/1069.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec wwhile (f,b) = let (b',c') = f b in if c' then wwhile (f, b') else b';;
let fixpoint (f,b) = wwhile (fun x -> ((f x not ((f x) = x)), b));;
(* fix
let rec wwhile (f,b) = let (b',c') = f b in if c' then wwhile (f, b') else b';;
let fixpoint (f,b) = wwhile ((fun x -> ((f x), (not ((f x) = x)))), b);;
*)
... | 15 | 79 | 0.454444 |
8a7ec714ce490f4384785806154aa38fd61e49d2 | 3,266 | ml | OCaml | vendor/incr_select/src/incr_select_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/incr_select/src/incr_select_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/incr_select/src/incr_select_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open Core_kernel
module type S = sig
module Incr : sig
type 'a t
end
(** [select_one] logically constructs a set of outputs such that exactly one is selected
as [true] (specifically the one that corresponds to the current value of the input),
and the rest are false. The staged function is used ... | 38.423529 | 90 | 0.669626 |
8a81e70bd07d4bf71fa0237f670be580ee9ff7a0 | 2,350 | ml | OCaml | infer/src/base/RunState.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/base/RunState.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/base/RunState.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2019-04-26T02:27:43.000Z | 2019-04-26T02:27:43.000Z | (*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
let run_time_string = Time.now () |> Time.to_string
let state0 =
let open Runstate_t in
{ run_sequence= []
; results_d... | 31.756757 | 97 | 0.689787 |
8aba5226f207e2e0632d58cab29e76f66bbf0e54 | 299 | ml | OCaml | inputs/map.ml | quasarbright/OCovid | f374716c459a615dc98c6c0a100c066094aa8baa | [
"BSD-3-Clause"
] | null | null | null | inputs/map.ml | quasarbright/OCovid | f374716c459a615dc98c6c0a100c066094aa8baa | [
"BSD-3-Clause"
] | null | null | null | inputs/map.ml | quasarbright/OCovid | f374716c459a615dc98c6c0a100c066094aa8baa | [
"BSD-3-Clause"
] | null | null | null | type 'a list = Empty | Cons of 'a * 'a list
let rec map = fun f xs -> match xs with
| Empty -> Empty
| Cons(x,xs) -> Cons(f x, map f xs)
type bool = True | False
let not = fun b -> match b with
| True -> False
| False -> True
let main = map not (Cons(True,Cons(False,Cons(True,Empty))))
| 21.357143 | 60 | 0.598662 |
f39051970749e1c247af6b41a8f9d8e58e602c97 | 2,031 | mli | OCaml | src/lib_protocol_updater/updater.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_protocol_updater/updater.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_protocol_updater/updater.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 65.516129 | 79 | 0.481044 |
8aea6ef9d3a722ed2946939759df786763bf1cca | 13,662 | ml | OCaml | src/forwarder/multiplexer.ml | Mattlk13/vpnkit | b48a26306b767b033e189ffe362d126a673fa140 | [
"Apache-2.0"
] | 671 | 2017-04-18T16:03:25.000Z | 2022-03-23T08:52:21.000Z | src/forwarder/multiplexer.ml | rneugeba/vpnkit | 2ffc1dd8a84ea7359dd09b1f4b51bb728d4f46a0 | [
"Apache-2.0"
] | 195 | 2017-04-20T14:06:21.000Z | 2022-03-24T16:54:32.000Z | src/forwarder/multiplexer.ml | rneugeba/vpnkit | 2ffc1dd8a84ea7359dd09b1f4b51bb728d4f46a0 | [
"Apache-2.0"
] | 126 | 2017-04-19T17:33:16.000Z | 2022-03-15T04:50:29.000Z | let src =
let src = Logs.Src.create "multiplexer" ~doc:"multiplex flows" in
Logs.Src.set_level src (Some Logs.Info) ;
src
module Log = (val Logs.src_log src : Logs.LOG)
module Make (Flow : Mirage_flow_lwt.S) = struct
module Window = struct
type t =
{ mutable current_seq: int64
; (* highest seq... | 34.587342 | 93 | 0.554165 |
8aeec5e015e3bf21337eb48d1d8efddc9954d8c2 | 3,671 | ml | OCaml | _build/default/src/parser.ml | jdrprod/lisp_interpreter | 5c0bc1d2a8af0d5d04fe93f5518553421e43f674 | [
"MIT"
] | null | null | null | _build/default/src/parser.ml | jdrprod/lisp_interpreter | 5c0bc1d2a8af0d5d04fe93f5518553421e43f674 | [
"MIT"
] | null | null | null | _build/default/src/parser.ml | jdrprod/lisp_interpreter | 5c0bc1d2a8af0d5d04fe93f5518553421e43f674 | [
"MIT"
] | null | null | null | type token =
| LPAREN
| RPAREN
| SYM of (string)
| PRIM of (string)
| NUM of (int)
| EOL
open Parsing;;
let _ = parse_error;;
# 2 "src/parser.mly"
open Ast
# 14 "src/parser.ml"
let yytransl_const = [|
257 (* LPAREN *);
258 (* RPAREN *);
262 (* EOL *);
0|]
let yytransl_block = [|
259 (* SYM *... | 25.493056 | 90 | 0.614819 |
f35d3dd08a0cd7f2a1c124538b042e6b4dc1a483 | 2,620 | ml | OCaml | test-bin/calc.ml | avsm/capnp-rpc | ed58f848a1f1c92adf72f48d59890fe11f8bda35 | [
"Apache-2.0"
] | null | null | null | test-bin/calc.ml | avsm/capnp-rpc | ed58f848a1f1c92adf72f48d59890fe11f8bda35 | [
"Apache-2.0"
] | null | null | null | test-bin/calc.ml | avsm/capnp-rpc | ed58f848a1f1c92adf72f48d59890fe11f8bda35 | [
"Apache-2.0"
] | null | null | null | open Lwt.Infix
module Vat = Capnp_rpc_unix.Vat
module Calc = Examples.Calc
(* Verbose logging *)
let pp_qid f = function
| None -> ()
| Some x ->
let s = Stdint.Uint32.to_string x in
Fmt.(styled `Magenta (fun f x -> Fmt.pf f " (qid=%s)" x)) f s
let reporter =
let report src level ~over k msgf =
le... | 29.438202 | 93 | 0.659542 |
8a8486a690fa2d6b09ef7e1f5906f5e139fbc5d6 | 4,759 | ml | OCaml | src/bin_flextesa/command_mini_network.ml | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | null | null | null | src/bin_flextesa/command_mini_network.ml | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | null | null | null | src/bin_flextesa/command_mini_network.ml | blockchain-analysis-study/my-tezos | 948eb71a5ee68c0691b011dc17faf523d8c254e9 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | open Tezos_network_sandbox
open Internal_pervasives
open Console
let run state ~protocol ~size ~base_port ?kiln node_exec client_exec baker_exec
endorser_exec accuser_exec () =
Test_scenario.network_with_protocol ~protocol ~size ~base_port state
~node_exec ~client_exec
>>= fun (nodes, protocol) ->
Tezos_... | 39.330579 | 79 | 0.615676 |
8ab3079faea006d0a8dc4469b9be3d6758655bb1 | 2,866 | ml | OCaml | lib/sendmail_handler.ml | fsalvini/letters | 4e417e6be5d3e4a7c9bd7006cbd431d601f5db35 | [
"MIT"
] | null | null | null | lib/sendmail_handler.ml | fsalvini/letters | 4e417e6be5d3e4a7c9bd7006cbd431d601f5db35 | [
"MIT"
] | null | null | null | lib/sendmail_handler.ml | fsalvini/letters | 4e417e6be5d3e4a7c9bd7006cbd431d601f5db35 | [
"MIT"
] | null | null | null | module Lwt_scheduler = Colombe.Sigs.Make (Lwt)
let ( <.> ) f g x = f (g x)
let lwt_bind x f =
let open Lwt.Infix in
let open Lwt_scheduler in
inj (prj x >>= (prj <.> f))
;;
let lwt =
{ Colombe.Sigs.bind = lwt_bind; return = (fun x -> Lwt_scheduler.inj (Lwt.return x)) }
;;
type flow =
{ ic : Lwt_io.input_c... | 23.883333 | 90 | 0.61619 |
8a3c0ffe845ce0058c03eb08f11e61a3411190ce | 2,770 | ml | OCaml | example/luaclient.ml | Leonidas-from-XIV/lua-ml | c9fa490331ce22b9df03130be3fceac40a09877e | [
"BSD-2-Clause"
] | 91 | 2015-06-02T23:43:06.000Z | 2022-03-31T23:53:59.000Z | example/luaclient.ml | Leonidas-from-XIV/lua-ml | c9fa490331ce22b9df03130be3fceac40a09877e | [
"BSD-2-Clause"
] | 3 | 2018-02-21T22:28:19.000Z | 2021-10-21T05:22:22.000Z | example/luaclient.ml | Leonidas-from-XIV/lua-ml | c9fa490331ce22b9df03130be3fceac40a09877e | [
"BSD-2-Clause"
] | 9 | 2015-08-20T14:17:22.000Z | 2022-03-30T04:01:50.000Z | module LuaChar = struct
type 'a t = char
let tname = "char"
let eq _ = fun x y -> x = y
let to_string = fun _ c -> String.make 1 c
end
module Pair = struct
type 'a t = 'a * 'a
let tname = "pair"
let eq _ = fun x y -> x = y
let to_string = fun f (x,y) -> Prin... | 28.265306 | 79 | 0.513718 |
af7064fea6d9a8ac9e88fd6f82fc1c48d4c497df | 16,297 | ml | OCaml | examples/kinsol/C_openmp/kinFoodWeb_kry_omp.ml | Octachron/sundialsml | e941ad5265d6d5b152210c8d5df6b2b871af07dc | [
"BSD-3-Clause"
] | null | null | null | examples/kinsol/C_openmp/kinFoodWeb_kry_omp.ml | Octachron/sundialsml | e941ad5265d6d5b152210c8d5df6b2b871af07dc | [
"BSD-3-Clause"
] | null | null | null | examples/kinsol/C_openmp/kinFoodWeb_kry_omp.ml | Octachron/sundialsml | e941ad5265d6d5b152210c8d5df6b2b871af07dc | [
"BSD-3-Clause"
] | null | null | null | (*
* -----------------------------------------------------------------
* $Revision: 1.3 $
* $Date: 2010/12/01 23:08:49 $
* -----------------------------------------------------------------
* Programmer(s): Allan Taylor, Alan Hindmarsh and
* Radu Serban @ LLNL
* Programmer(s): Ting Yan @ SMU
* ... | 34.82265 | 82 | 0.594649 |
44410ec19435896f76da93f3551af253361f61f9 | 441 | ml | OCaml | hphp/hack/src/stubs/xdb.ml | swtaarrs/hhvm | dfb8867363623d7d02d03a64691610f1289ef5ad | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-02-04T22:07:59.000Z | 2021-02-04T22:07:59.000Z | hphp/hack/src/stubs/xdb.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/stubs/xdb.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | type sql_result = {
svn_rev : int;
hg_hash : string;
everstore_handle : string;
hh_version : string;
hhconfig_hash : string;
}
let hack_db_name = "";;
let mini_saved_states_table = "";;
let devinfra_saved_states_table = ""
let find_nearest ~db ~db_table ~svn_rev ~hh_version ~hhconfig_hash ~tiny =
ignore d... | 21 | 74 | 0.721088 |
8a7bb0e7214274b55570ec5045bcba691d1f7365 | 392 | ml | OCaml | vendor/base/test/test_fn.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 641 | 2016-09-16T15:51:06.000Z | 2022-03-31T19:30:56.000Z | vendor/base/test/test_fn.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 121 | 2016-09-17T07:30:00.000Z | 2022-03-03T21:00:03.000Z | vendor/base/test/test_fn.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 95 | 2016-09-16T23:31:38.000Z | 2022-03-19T01:35:06.000Z | open! Import
open! Fn
(* enforce that we're testing [Fn.(|>)] and not ppx_pipebang. *)
let (_ : 'a -> ('a -> 'b) -> 'b) = ( |> )
let%test _ = 1 |> fun x -> x = 1
let%test _ = 1 |> fun x -> x + 1 |> fun y -> y = 2
let%test _ = 0 = apply_n_times ~n:0 (fun _ -> assert false) 0
let%test _ = 0 = apply_n_times ~n:(-3) (fun... | 32.666667 | 64 | 0.535714 |
af5212dc9535e35ab27860cb1e8af082d40d06dc | 16,370 | ml | OCaml | src/types.ml | janestreet/incremental | 8e5eeb3e05f58e6d9e9c83c0a38a89f9e49f645e | [
"MIT"
] | 725 | 2015-07-06T19:39:26.000Z | 2022-03-25T07:08:27.000Z | src/types.ml | janestreet/incremental | 8e5eeb3e05f58e6d9e9c83c0a38a89f9e49f645e | [
"MIT"
] | 13 | 2015-07-07T14:27:20.000Z | 2021-09-07T13:32:57.000Z | src/types.ml | janestreet/incremental | 8e5eeb3e05f58e6d9e9c83c0a38a89f9e49f645e | [
"MIT"
] | 51 | 2016-02-01T16:31:33.000Z | 2022-03-22T23:35:24.000Z | (* This module has a giant [module rec] defining all the mutually recursive types used
in the implementation. The definition of each type is then repeated in its file;
comments belong there, not here.
We put just enough sexp converters here to display node ids. The detailed sexp
converters are generated ... | 24.80303 | 91 | 0.543616 |
afeb25639fe7d8ed1de68e5434de06e52599536b | 5,794 | ml | OCaml | leftist.ml | koxkox111/drzewalewicowe | 6a99884d96f9b7cbd03121a8a564fd423799b5c3 | [
"WTFPL"
] | null | null | null | leftist.ml | koxkox111/drzewalewicowe | 6a99884d96f9b7cbd03121a8a564fd423799b5c3 | [
"WTFPL"
] | null | null | null | leftist.ml | koxkox111/drzewalewicowe | 6a99884d96f9b7cbd03121a8a564fd423799b5c3 | [
"WTFPL"
] | null | null | null | (* Zadanie drzewa lewicowe
Autor: Pawel Dec
Sprawdzajacy: Zofia Rusilowicz *)
type 'a queue = (* LewySyn ; WartoscKorzenia ; DlugoscPrawego ; PrawySyn *)
| Leaf
| Node of 'a queue * 'a * int * 'a queue
let empty = (* Pusty Lisc *)
Leaf
exception Empty;;
let wysokosc a = (* Zwraca DlugoscPra... | 21.864151 | 79 | 0.526234 |
f3b316a87dcc904bed091b1f4d236a4307596d1e | 571 | ml | OCaml | benchmarks/C/diff/sol123.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/diff/sol123.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/diff/sol123.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z |
type aexp =
| Const of int
| Var of string
| Power of string * int
| Times of aexp list
| Sum of aexp list
let rec diff : aexp*string -> aexp
= fun (ae,va) -> match ae with
| Const a -> Const 0
| Var x -> if x = va then Const 1 else Const 0
| Power (x,a) -> if x = va then Times[Const a; Power(x, a-1)] else... | 27.190476 | 78 | 0.569177 |
8abb347564fd7cf57d399d649212fd7c932266a2 | 655 | ml | OCaml | src/lib/rosetta_models/network_options_response.ml | kobigurk/mina | 585c76fc631616a65c1c8eb067c625376d498ad2 | [
"Apache-2.0"
] | 1 | 2022-01-03T07:25:40.000Z | 2022-01-03T07:25:40.000Z | src/lib/rosetta_models/network_options_response.ml | kobigurk/mina | 585c76fc631616a65c1c8eb067c625376d498ad2 | [
"Apache-2.0"
] | null | null | null | src/lib/rosetta_models/network_options_response.ml | kobigurk/mina | 585c76fc631616a65c1c8eb067c625376d498ad2 | [
"Apache-2.0"
] | null | null | null | (*
* This file has been generated by the OCamlClientCodegen generator for openapi-generator.
*
* Generated by: https://openapi-generator.tech
*
* Schema Network_options_response.t : NetworkOptionsResponse contains information about the versioning of the node and the allowed operation statuses, operation types, and... | 46.785714 | 180 | 0.751145 |
8a35f7a0765de21d74f9498eea09fee37b89fd44 | 371 | ml | OCaml | test/suite/common.ml | n-osborne/ortac | 9bc7405891837ba6036aca9db0a02b3ec54d522f | [
"MIT"
] | 5 | 2021-05-04T16:49:44.000Z | 2021-11-22T16:46:59.000Z | test/suite/common.ml | n-osborne/ortac | 9bc7405891837ba6036aca9db0a02b3ec54d522f | [
"MIT"
] | 6 | 2021-11-04T11:24:31.000Z | 2022-03-29T18:46:21.000Z | test/suite/common.ml | n-osborne/ortac | 9bc7405891837ba6036aca9db0a02b3ec54d522f | [
"MIT"
] | 1 | 2021-03-09T07:43:41.000Z | 2021-03-09T07:43:41.000Z | let check_raises_ortac msg f =
Alcotest.(check pass) msg () ();
try
f ();
Alcotest.failf "expecting Ortac failure, got nothing"
with
| Ortac_runtime.Error _ -> ()
| e -> Alcotest.failf "expecting Ortac failure, got %s" (Printexc.to_string e)
let check_success msg f =
Alcotest.(check pass) msg () ()... | 24.733333 | 80 | 0.671159 |
8a7925c9bccb00215020156f593e2365dc5e8ae3 | 3,080 | ml | OCaml | parser/cttm_abstree.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | 1 | 2018-02-10T02:52:09.000Z | 2018-02-10T02:52:09.000Z | parser/cttm_abstree.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | parser/cttm_abstree.ml | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | (*
Part of Fail-Safe C Compiler. Produced by Yutaka Oiwa.
(c) 2001-2005 Yutaka Oiwa.
(c) 2005-2007 AIST.
This file is written by Yutaka Oiwa in 2002-2004. *)
open Big_int
open Ctt_abstree
type binop = Ctt_abstree.binop =
CTTbinTimes | CTTbinDiv
| CTTbinPlusVV | CTTbinMinusVV
| CTTbinPostPlusVV... | 32.765957 | 96 | 0.758117 |
8a6ee7e9adea058fe90183254c83cc2bff28d9b9 | 17,314 | ml | OCaml | myocamlbuild.ml | yunxing/qcheck | 83223bb1e865f07a726f53d08534a178336c64e0 | [
"BSD-2-Clause"
] | null | null | null | myocamlbuild.ml | yunxing/qcheck | 83223bb1e865f07a726f53d08534a178336c64e0 | [
"BSD-2-Clause"
] | null | null | null | myocamlbuild.ml | yunxing/qcheck | 83223bb1e865f07a726f53d08534a178336c64e0 | [
"BSD-2-Clause"
] | null | null | null | (* OASIS_START *)
(* DO NOT EDIT (digest: 0295c1903de0184a4dbe2b6dc55910e4) *)
module OASISGettext = struct
(* # 22 "src/oasis/OASISGettext.ml" *)
let ns_ str =
str
let s_ str =
str
let f_ (str: ('a, 'b, 'c, 'd) format4) =
str
let fn_ fmt1 fmt2 n =
if n = 1 then
fmt1^^""
else
... | 27.7024 | 90 | 0.491625 |
8a9d85c4896358da66b5478de6db9f27a8bca6a8 | 596 | mli | OCaml | symex.mli | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 2 | 2019-10-05T04:17:01.000Z | 2021-03-08T14:30:34.000Z | symex.mli | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | null | null | null | symex.mli | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 3 | 2017-07-04T11:06:22.000Z | 2022-02-25T05:55:27.000Z | open Symex_base
open Symex_types
open IntraDataflow
include SYMEX
type symLatt = (symState, SS.sumval) stateLattice
val fullLattice : symLatt
val sumIsFinal : Summary_keys.sumKey -> bool
(* shouldn't this depend on the sumType? *)
class symSummarizer : symLatt -> (SS.data) -> [symState, SS.sumval] summarizer
c... | 22.074074 | 78 | 0.746644 |
8a816ffd55fdea9c0235251747406f42e946b7aa | 2,042 | mli | OCaml | optimization/optimization_rules_sbdo_automaton.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | optimization/optimization_rules_sbdo_automaton.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | optimization/optimization_rules_sbdo_automaton.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 32.935484 | 88 | 0.55093 |
8a1c52229f8d512a8751d3295dc23c96cb69bd48 | 2,001 | mll | OCaml | 2017/hw7/ex2/lexer.mll | ryanking13/pl-checker | 1a7cb10beb3f09ec7020f526bc5c9775848ed67c | [
"MIT"
] | 36 | 2017-09-18T07:34:58.000Z | 2021-04-12T10:51:15.000Z | 2017/hw7/ex2/lexer.mll | ryanking13/pl-checker | 1a7cb10beb3f09ec7020f526bc5c9775848ed67c | [
"MIT"
] | 4 | 2019-09-10T07:21:43.000Z | 2019-09-19T11:07:31.000Z | 2017/hw7/ex2/lexer.mll | ryanking13/pl-checker | 1a7cb10beb3f09ec7020f526bc5c9775848ed67c | [
"MIT"
] | 4 | 2017-09-28T11:37:48.000Z | 2022-03-07T03:08:30.000Z | (*
* SNU 4190.310 Programming Languages
*
* Lexer of xexp for Homework "Exceptions are sugar"
*)
{
open Parser
exception Lex_err of string
let debug_tag = false
let verbose s = if debug_tag then (print_string s; print_newline())
let comment_depth = ref 0
let keyword_tbl = Hashtbl.create 31
let _ = List.it... | 32.274194 | 78 | 0.490755 |
44163f944db8342e537352eb8a0100ee1ad4d89a | 5,861 | ml | OCaml | lib/event.ml | sim642/jsoo-react | 89cf2fcf57e2d88c59784f7cb97bfe58effc1c1c | [
"MIT"
] | 57 | 2019-02-17T17:56:20.000Z | 2019-09-01T09:24:28.000Z | lib/event.ml | sim642/jsoo-react | 89cf2fcf57e2d88c59784f7cb97bfe58effc1c1c | [
"MIT"
] | 68 | 2021-11-25T10:01:50.000Z | 2022-03-29T21:22:00.000Z | lib/event.ml | sim642/jsoo-react | 89cf2fcf57e2d88c59784f7cb97bfe58effc1c1c | [
"MIT"
] | 5 | 2021-12-28T21:19:57.000Z | 2022-03-29T07:10:19.000Z | (* Adapted from reason-react ReactEvent.re, commit 0f73a307 *)
type 'a synthetic = Ojs.t
module CommonApi = struct
include
[%js:
type tag = Ojs.t
type t = Ojs.t
val t_of_js : Ojs.t -> t
val t_to_js : t -> Ojs.t
val bubbles : Ojs.t -> bool [@@js.get "bubbles"]
val cancelable : t -> bool [... | 28.730392 | 102 | 0.620372 |
af9454dec89d29c309d0dba591523ed888bb78a3 | 4,242 | mli | OCaml | infer/src/IR/ProcAttributes.mli | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | 2 | 2021-12-17T13:38:34.000Z | 2021-12-17T14:06:53.000Z | infer/src/IR/ProcAttributes.mli | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | null | null | null | infer/src/IR/ProcAttributes.mli | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"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
(** Attributes of a procedure. *)
(** Visibility modifiers. *)
type access = Default | Public | Private | Protected [@... | 47.133333 | 99 | 0.70132 |
4417459a4cedb5fa64edd3a5a052e1113170dc6c | 4,720 | mli | OCaml | src/ocaml/typer_402/browse_raw.mli | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_402/browse_raw.mli | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_402/browse_raw.mli | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | 1 | 2017-11-06T17:46:59.000Z | 2017-11-06T17:46:59.000Z | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby... | 41.769912 | 79 | 0.696822 |
8af94ff22c5140dac16ab01f2e7fa471ad1a540e | 1,789 | ml | OCaml | src/owl/dense/owl_dense_matrix_c.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | src/owl/dense/owl_dense_matrix_c.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | src/owl/dense/owl_dense_matrix_c.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
(** [ Complex dense matrix module ] *)
open Bigarray
module M = Owl_dense_matrix_generic
include M
type elt = Complex.t
type mat = (Complex.t, Bigarray.complex32_elt) M.t
type cast_mat = (float, float32_elt) Owl_den... | 21.047059 | 71 | 0.713807 |
af0c5ab077bd1d81abd1bfdc3c2079ea309911d6 | 1,780 | ml | OCaml | lib/frame_mach.ml | BinaryAnalysisPlatform/bap-frames | 1d8094584c9b63ec2daa0511a519ddd6d686d3dc | [
"MIT"
] | 8 | 2017-01-29T23:02:16.000Z | 2022-02-17T05:52:07.000Z | lib/frame_mach.ml | BinaryAnalysisPlatform/bap-frames | 1d8094584c9b63ec2daa0511a519ddd6d686d3dc | [
"MIT"
] | 6 | 2016-04-20T20:32:09.000Z | 2022-01-19T15:33:03.000Z | lib/frame_mach.ml | BinaryAnalysisPlatform/bap-frames | 1d8094584c9b63ec2daa0511a519ddd6d686d3dc | [
"MIT"
] | 8 | 2016-04-08T10:19:08.000Z | 2022-01-15T03:28:36.000Z | module I386 = struct
type t =
| Unknown
| I386
| I8086
| I386_intel
| X86_64
| X86_64_intel
[@@deriving enumerate, variants]
include Frame_enum.Make_substitute(struct
type nonrec t = t
let subs = [X86_64, 64]
let rank = Variants.to_rank
let all = all
end)
end
... | 16.952381 | 43 | 0.573034 |
4457a014c70170977745814f025b189c5d4fd1ca | 564 | mli | OCaml | src/typing/trace.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/typing/trace.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/typing/trace.mli | tbergq/flow | 8c866379d12dc32c6a0e129739148c8cd9169db8 | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val compare : Type.trace -> Type.trace -> int
val trace_depth : Type.trace -> int
val unit_trace : Type.t -> Type.use_t -> Type.t... | 26.857143 | 75 | 0.700355 |
afa8c6add1017049f517721d34d0496b0d94ae96 | 39,053 | ml | OCaml | infer/src/quandary/TaintAnalysis.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | null | null | null | infer/src/quandary/TaintAnalysis.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | 8 | 2021-05-12T00:06:23.000Z | 2022-02-27T11:21:00.000Z | infer/src/quandary/TaintAnalysis.ml | octomarat/infer | aa6fe7963cdb6b842adcf7241f5383c30cb1a835 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module L = Logging
(** Create a taint analysis from a specification *)
module Make (TaintSpecificatio... | 45.410465 | 100 | 0.628223 |
44439afc0a12a7d05e85d1536da2cdacac7eeea9 | 7,408 | mly | OCaml | packages/parser/css_parser.mly | davesnx/re-styled-ppx | 01b964f8bd449e7bdef9b4146e970b727ab1ce57 | [
"MIT"
] | 10 | 2020-01-22T17:54:19.000Z | 2020-03-06T09:34:08.000Z | packages/parser/css_parser.mly | davesnx/re-styled-ppx | 01b964f8bd449e7bdef9b4146e970b727ab1ce57 | [
"MIT"
] | 30 | 2020-03-02T01:13:35.000Z | 2020-03-07T15:48:54.000Z | packages/parser/css_parser.mly | davesnx/re-styled-ppx | 01b964f8bd449e7bdef9b4146e970b727ab1ce57 | [
"MIT"
] | 1 | 2020-01-22T17:02:31.000Z | 2020-01-22T17:02:31.000Z | %{
open Css_types
%}
%token EOF
%token LEFT_BRACE
%token RIGHT_BRACE
%token LEFT_PAREN
%token RIGHT_PAREN
%token LEFT_BRACKET
%token RIGHT_BRACKET
%token COLON
%token SEMI_COLON
%token PERCENTAGE
%token IMPORTANT
%token AMPERSAND
%token <string> IDENT
%token <string> STRING
%token <string> URI
%token <string> OPERAT... | 31.257384 | 136 | 0.673326 |
442592fb42c72b2b33a7c5a4b805eab49147288f | 2,541 | mli | OCaml | src/exprjs_syntax.mli | brownplt/ML-LambdaJS | 3616d0eee25567bc6f6625c76d281f864b35ced0 | [
"BSD-3-Clause"
] | 6 | 2015-04-18T17:23:31.000Z | 2019-06-16T11:07:07.000Z | src/exprjs_syntax.mli | brownplt/ML-LambdaJS | 3616d0eee25567bc6f6625c76d281f864b35ced0 | [
"BSD-3-Clause"
] | null | null | null | src/exprjs_syntax.mli | brownplt/ML-LambdaJS | 3616d0eee25567bc6f6625c76d281f864b35ced0 | [
"BSD-3-Clause"
] | 5 | 2015-06-24T10:50:28.000Z | 2019-06-16T11:07:08.000Z | (** A simplified syntax for JavaScript. The primary simplification is
that statements are eliminated. Expr{_ JS} is an expression-based syntax.
We map JavaScript's statements to Expr{_ JS}'s control operators. Some
statements map trivially to Expr{_ JS}. Others, such as switch and return,
require less-... | 41.655738 | 88 | 0.672963 |
d2db0ddd65e854dfad27df541a4737857f23b1db | 1,812 | ml | OCaml | libraries/ec2/lib/createSecurityGroup.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createSecurityGroup.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createSecurityGroup.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
open Aws
type input = CreateSecurityGroupRequest.t
type output = CreateSecurityGroupResult.t
type error = Errors_internal.t
let service = "ec2"
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... | 31.241379 | 99 | 0.576159 |
8ac562d42e00f02bbaba33bc7604feeec100a3a6 | 3,000 | ml | OCaml | test/rebez_test.ml | tmattio/rebez | 1331091f73b354b536edf0e34bf76781e05e13c9 | [
"MIT"
] | null | null | null | test/rebez_test.ml | tmattio/rebez | 1331091f73b354b536edf0e34bf76781e05e13c9 | [
"MIT"
] | null | null | null | test/rebez_test.ml | tmattio/rebez | 1331091f73b354b536edf0e34bf76781e05e13c9 | [
"MIT"
] | null | null | null | let id x = x;;
Random.self_init ()
let assert_message cond message =
assert (
if not cond then print_endline message;
cond)
let assert_raises f =
let res =
try
ignore (f ());
false
with _ -> true
in
assert res
let assert_close precision a b message =
assert_message (abs_float (... | 27.777778 | 80 | 0.590667 |
aff00fef745ed21bd3392b605f7fb95490043028 | 3,645 | mli | OCaml | src/base/maths/owl_base_complex.mli | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | null | null | null | src/base/maths/owl_base_complex.mli | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | null | null | null | src/base/maths/owl_base_complex.mli | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** {6 Type definition and constants} *)
type t = Complex.t
(** Type definition of a complex number. *)
val zero : t
(** Constant value zero. *)
val one : t
(** Constant value one. *)
val i : ... | 14.817073 | 104 | 0.493553 |
8aefc95b9529b9382c2871f8b1467309ca5632c5 | 481 | ml | OCaml | data/derived/comb/progs/unify/prog7587.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/prog2782.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2782.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec removeZero l =
match l with
| [] -> []
| _ -> let h::t = l in (match h with | 0 -> removeZero t | _ -> l);;
let rec mulByDigit i l =
let mul (i,l) =
let f a x =
let (a1,a2) = a in
let val1 = (x * i) + a1 in
if val1 > 9
then ((val1 / 10), ((val1 mod 10) :: a2))
else (0... | 25.315789 | 70 | 0.488565 |
440dee3b05f56c0406b3f0b77761ff6b8ede1c05 | 4,079 | ml | OCaml | src/server/serverProt.ml | stefb965/flow | 77ce66fdc2aa382db781346e67d468901631fdc2 | [
"BSD-3-Clause"
] | null | null | null | src/server/serverProt.ml | stefb965/flow | 77ce66fdc2aa382db781346e67d468901631fdc2 | [
"BSD-3-Clause"
] | null | null | null | src/server/serverProt.ml | stefb965/flow | 77ce66fdc2aa382db781346e67d468901631fdc2 | [
"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.
*
*)
type ... | 28.131034 | 96 | 0.717823 |
442c071ec9629dcb697760fa35d691b297f93976 | 6,964 | ml | OCaml | vis/dep.ml | draperlaboratory/cage-koat | 07956c1ce1206c2c6e730c4d59c5a294d174a66e | [
"Apache-2.0"
] | 4 | 2018-04-25T16:01:18.000Z | 2020-05-06T21:46:22.000Z | vis/dep.ml | draperlaboratory/cage-koat | 07956c1ce1206c2c6e730c4d59c5a294d174a66e | [
"Apache-2.0"
] | 2 | 2018-04-06T20:07:17.000Z | 2018-05-02T07:28:35.000Z | vis/dep.ml | draperlaboratory/cage-koat | 07956c1ce1206c2c6e730c4d59c5a294d174a66e | [
"Apache-2.0"
] | null | null | null | open DepStructs
module RVG = Cintfarkaspolo.RVG
module SlicingProc = SlicingProc.Make(RVG)
module CTRSObl = Cintfarkaspolo.CTRSObl
module CTRS = Cintfarkaspolo.CTRS
type reachablePosition = {
argPos : argPos;
qual : qual;
}
module ArgPosHash = struct
type t = argPos
let equal a b = a.pos = b.pos && a... | 33.970732 | 89 | 0.701034 |
442f4f7e2236a7f33a6511c748fe791d81dd3282 | 30,336 | ml | OCaml | compiler/verification/z3backend.ml | pnmadelaine/catala | d301e0f434e744fe0557fcd612b841c448eeeaf6 | [
"Apache-2.0"
] | null | null | null | compiler/verification/z3backend.ml | pnmadelaine/catala | d301e0f434e744fe0557fcd612b841c448eeeaf6 | [
"Apache-2.0"
] | null | null | null | compiler/verification/z3backend.ml | pnmadelaine/catala | d301e0f434e744fe0557fcd612b841c448eeeaf6 | [
"Apache-2.0"
] | null | null | null | (* This file is part of the Catala compiler, a specification language for tax and social benefits
computation rules. Copyright (C) 2022 Inria, contributor: Aymeric Fromherz
<aymeric.fromherz@inria.fr>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compli... | 50.059406 | 102 | 0.655624 |
8ae963d7636aae00a5e26d424ed8abb4e9762ac6 | 2,239 | ml | OCaml | out/euler50.fun.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 22 | 2017-04-24T10:00:45.000Z | 2021-04-01T10:11:05.000Z | out/euler50.fun.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 12 | 2017-03-26T18:34:21.000Z | 2019-03-21T19:13:03.000Z | out/euler50.fun.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 7 | 2017-10-14T13:33:33.000Z | 2021-03-18T15:18:50.000Z | let eratostene t max0 =
let n = 0 in
let rec c i n =
if i <= max0 - 1
then if t.(i) = i
then let n = n + 1 in
if max0 / i > i
then let j = i * i in
let rec d j =
if j < max0 && j > 0
then ( t.(j) <- 0;
let j = j + i in
... | 34.446154 | 66 | 0.424297 |
444433103f5ad22cba55dccdf788713d81124e3e | 2,783 | ml | OCaml | src/seplog/sl_tpreds.ml | iceluke/cyclist | 6983f1c7a5aacf142fb7edc6a2803ebd8924310c | [
"BSD-3-Clause"
] | null | null | null | src/seplog/sl_tpreds.ml | iceluke/cyclist | 6983f1c7a5aacf142fb7edc6a2803ebd8924310c | [
"BSD-3-Clause"
] | null | null | null | src/seplog/sl_tpreds.ml | iceluke/cyclist | 6983f1c7a5aacf142fb7edc6a2803ebd8924310c | [
"BSD-3-Clause"
] | null | null | null | open Lib
open Symbols
open MParser
include Multiset.Make(Sl_tpred)
let subst theta elts = endomap (Sl_tpred.subst theta) elts
let terms inds =
Sl_term.Set.union_of_list (Blist.map Sl_tpred.terms (elements inds))
let vars inds = Sl_term.filter_vars (terms inds)
let idents inds =
map_to Sl_predsym.MSet.add Sl_... | 33.53012 | 111 | 0.695652 |
443e34305991e5f6c4309df3e34e89f00b787a1a | 9,244 | ml | OCaml | duniverse/base/test/avltree_unit_tests.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | 1 | 2019-09-11T00:04:16.000Z | 2019-09-11T00:04:16.000Z | duniverse/base/test/avltree_unit_tests.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/base/test/avltree_unit_tests.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open! Import
let%test_module _ =
(module (struct
open Avltree
type ('k, 'v) t = ('k, 'v) Avltree.t = private
| Empty
| Node of { mutable left : ('k, 'v) t
; key : 'k
; mutable value : 'v
; mutable height : int
; mutab... | 32.664311 | 142 | 0.545976 |
8abcb50076c42e7576b6da907366b575a4c5a74a | 214 | ml | OCaml | data/derived/comb/progs/unify/prog7270.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/prog2456.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2456.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
let (x,y) = f b in if y = false then x else wwhile (f, x);;
let fixpoint (f,b) = wwhile ((f b), b);;
let _ =
let g x = truncate (1e6 *. (cos (1e-6 *. (float x)))) in fixpoint (g, 0);;
| 23.777778 | 76 | 0.53271 |
444aa3965f778cc7e3869e67ece72354b3aacffc | 1,144 | mli | OCaml | src/server/Signal.mli | c-cube/frog-utils | 3f68c606a7abe702f9e22a0606080191a2952b18 | [
"BSD-2-Clause"
] | 4 | 2015-03-18T16:27:30.000Z | 2019-05-14T11:49:53.000Z | src/server/Signal.mli | c-cube/frog-utils | 3f68c606a7abe702f9e22a0606080191a2952b18 | [
"BSD-2-Clause"
] | 29 | 2015-02-04T18:45:07.000Z | 2017-06-15T14:13:49.000Z | src/server/Signal.mli | c-cube/frog-utils | 3f68c606a7abe702f9e22a0606080191a2952b18 | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of Zipperposition. See file "license" for more details. *)
(** {1 Basic signal} *)
type 'a t
(** Signal of type 'a *)
val create : unit -> 'a t
(** New signal *)
val send : 'a t -> 'a -> unit
(** Trigger the signal *)
type handler_response =
| ContinueListening
| StopListen... | 26.604651 | 94 | 0.61451 |
8a651b34f0c13fd60aa169b86b0f2d79490fb236 | 195 | ml | OCaml | src/runtime/runtime.ml | martinslota/protocell | 62545c7fb63ff76c95449ba015e40e0c3e0d94a5 | [
"Apache-2.0"
] | 17 | 2019-10-08T09:11:21.000Z | 2021-06-02T06:40:24.000Z | src/runtime/runtime.ml | martinslota/protocell | 62545c7fb63ff76c95449ba015e40e0c3e0d94a5 | [
"Apache-2.0"
] | null | null | null | src/runtime/runtime.ml | martinslota/protocell | 62545c7fb63ff76c95449ba015e40e0c3e0d94a5 | [
"Apache-2.0"
] | 1 | 2020-06-22T23:17:09.000Z | 2020-06-22T23:17:09.000Z | module Binary_format = Binary_format
module Byte_input = Byte_input
module Byte_output = Byte_output
module Field_value = Field_value
module Result = Base.Result
module Text_format = Text_format
| 27.857143 | 36 | 0.841026 |
4431cf44b3e4bfa5b9f586a71add1d6b0c99abd3 | 152,555 | ml | OCaml | src/typing/PPTypecore.ml | dariusf/ppx_polyprint | 6473b2cc1d56b2f3bc48b9e6a3b9cbcc7113073e | [
"MIT"
] | 18 | 2016-03-11T02:38:32.000Z | 2021-01-17T18:15:58.000Z | src/typing/PPTypecore.ml | dariusf/ppx_polyprint | 6473b2cc1d56b2f3bc48b9e6a3b9cbcc7113073e | [
"MIT"
] | null | null | null | src/typing/PPTypecore.ml | dariusf/ppx_polyprint | 6473b2cc1d56b2f3bc48b9e6a3b9cbcc7113073e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 38.148287 | 106 | 0.59492 |
8ae501184173dd979900640cb26ea90fe1a4a0da | 8,530 | mli | OCaml | src/core/CCOption.mli | c-cube/ocaml-containers | db1ebaf3ceb292e1cfb963491a62ffe9ab888df8 | [
"BSD-2-Clause"
] | 403 | 2015-03-04T09:50:16.000Z | 2022-03-31T07:15:26.000Z | src/core/CCOption.mli | c-cube/ocaml-containers | db1ebaf3ceb292e1cfb963491a62ffe9ab888df8 | [
"BSD-2-Clause"
] | 326 | 2015-01-01T06:30:20.000Z | 2022-03-23T13:02:47.000Z | src/core/CCOption.mli | c-cube/ocaml-containers | db1ebaf3ceb292e1cfb963491a62ffe9ab888df8 | [
"BSD-2-Clause"
] | 92 | 2015-01-10T22:07:33.000Z | 2022-01-25T17:03:55.000Z | (* This file is free software, part of containers. See file "license" for more details. *)
(** Options
This module replaces `CCOpt`.
@since 3.6 *)
type +'a t = 'a option
val map : ('a -> 'b) -> 'a t -> 'b t
(** [map f o] applies the function [f] to the element inside [o], if any. *)
val map_or : default:'b -... | 33.582677 | 105 | 0.547245 |
444964be8512081e20bd30d240b04faff0265d53 | 536 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/parsing/int_and_float_with_modifier.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/parsing/int_and_float_with_modifier.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/parsing/int_and_float_with_modifier.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (* TEST
flags = "-dparsetree"
ocamlc_byte_exit_status = "2"
* setup-ocamlc.byte-build-env
** ocamlc.byte
*** check-ocamlc.byte-output
*)
let int_with_custom_modifier =
1234567890_1234567890_1234567890_1234567890_1234567890z
let float_with_custom_modifier =
1234567890_1234567890_1234567890_1234567890... | 23.304348 | 58 | 0.766791 |
4441255986f888d396f67bf96728aa06702b991b | 889 | ml | OCaml | test/unzip_fails.ml | janestreet/incr_map | c8cdcd45dc7d8f3d6bfd2fac67b5535a02ba6ef4 | [
"MIT"
] | 22 | 2016-07-11T21:48:58.000Z | 2021-12-17T02:44:47.000Z | test/unzip_fails.ml | janestreet/incr_map | c8cdcd45dc7d8f3d6bfd2fac67b5535a02ba6ef4 | [
"MIT"
] | 1 | 2016-08-20T20:16:11.000Z | 2016-08-22T18:35:54.000Z | test/unzip_fails.ml | janestreet/incr_map | c8cdcd45dc7d8f3d6bfd2fac67b5535a02ba6ef4 | [
"MIT"
] | 4 | 2017-07-20T12:41:03.000Z | 2021-12-17T02:46:44.000Z | open Core
open Import
let%expect_test "unzip_mapi' dropping one map" =
let m = String.Map.of_alist_exn [ "foo", 3; "bar", 10; "snoo", 5 ] |> Incr.Var.create in
let a, _ =
Incr.Var.watch m |> Incr.Map.unzip_mapi' ~f:(fun ~key:_ ~data -> data, data)
in
let observer = Incr.observe a in
let dump () =
Inc... | 23.394737 | 90 | 0.526434 |
8ab8557ce871f673cfb881dd5ce118a27469c3d5 | 15,729 | ml | OCaml | coq_projects/CompCert/driver/Driver.ml | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq_projects/CompCert/driver/Driver.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq_projects/CompCert/driver/Driver.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (* *********************************************************************)
(* *)
(* The Compcert verified compiler *)
(* *)
(* Xavier Leroy... | 37.45 | 110 | 0.659673 |
8a6aa7444fe280e466187b844672e3a9bf3c2820 | 670 | ml | OCaml | result/func/diff/sub63/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/diff/sub63/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/diff/sub63/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec diff ((aexp : aexp), (x : string)) : aexp =
match aexp with
| Const i -> Const 0
| Var k -> if k = x then Const 1 else Const 0
| Power (k, i) ->
if k = x then Times [ Const i; Po... | 25.769231 | 80 | 0.456716 |
8a32218a4396f16f93bcdf3a2d8c53337bf2fc10 | 6,855 | mli | OCaml | duniverse/opam-file-format/src/opamPrinter.mli | pitag-ha/opam-monorepo | ca8c9771ab5ae356da8ed216e17bdaa38fdfb67e | [
"0BSD"
] | null | null | null | duniverse/opam-file-format/src/opamPrinter.mli | pitag-ha/opam-monorepo | ca8c9771ab5ae356da8ed216e17bdaa38fdfb67e | [
"0BSD"
] | null | null | null | duniverse/opam-file-format/src/opamPrinter.mli | pitag-ha/opam-monorepo | ca8c9771ab5ae356da8ed216e17bdaa38fdfb67e | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* Copyright 2012-2020 OCamlPro *)
(* Copyright 2012 INRIA *)
(* ... | 38.083333 | 89 | 0.645222 |
d2f9c5efbdd7d5e9c904a68f0f8306ecab79be6a | 662 | ml | OCaml | src/main/compile/of_imperative.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/main/compile/of_imperative.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/main/compile/of_imperative.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | open Main_errors
open Simple_utils.Trace
open Ast_imperative
open Purification
let compile ~raise (m : module_) : Ast_sugar.module_ =
trace ~raise purification_tracer @@ compile_module m
let compile_expression ~raise (e : expression) : Ast_sugar.expression =
trace ~raise purification_tracer @@ compile_expression ... | 28.782609 | 71 | 0.725076 |
affeaa01183b596227ef451c84f3a03f20fe2520 | 1,610 | mli | OCaml | lib/p11.mli | cryptosense/pkcs11 | 5f4357d235fc8674fa6bc13d03174f9236fabe34 | [
"BSD-2-Clause"
] | 22 | 2016-09-22T13:40:51.000Z | 2021-08-05T10:50:19.000Z | lib/p11.mli | cryptosense/pkcs11 | 5f4357d235fc8674fa6bc13d03174f9236fabe34 | [
"BSD-2-Clause"
] | 42 | 2016-10-03T13:10:21.000Z | 2021-08-12T10:04:10.000Z | lib/p11.mli | cryptosense/pkcs11 | 5f4357d235fc8674fa6bc13d03174f9236fabe34 | [
"BSD-2-Clause"
] | 5 | 2016-09-28T06:34:29.000Z | 2021-08-05T07:48:52.000Z | (** High-level PKCS#11 types. *)
module AES_CBC_ENCRYPT_DATA_params = P11_aes_cbc_encrypt_data_params
module AES_CTR_params = P11_aes_ctr_params
module AES_key_wrap_params = P11_aes_key_wrap_params
module Attribute = P11_attribute
module Attribute_type = P11_attribute_type
module Attribute_types = P11_attribute_types
... | 38.333333 | 72 | 0.87205 |
f35983e8706582714191266d70761a9727bdf174 | 4,949 | ml | OCaml | hphp/hack/src/parsing/parsing_service.ml | robocoder/hhvm | b5fe4eec09c160f4a291faf55629b4b9bbffe661 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-02-12T07:24:28.000Z | 2015-02-12T07:24:28.000Z | hphp/hack/src/parsing/parsing_service.ml | robocoder/hhvm | b5fe4eec09c160f4a291faf55629b4b9bbffe661 | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2020-12-31T09:08:34.000Z | 2021-09-28T05:42:02.000Z | hphp/hack/src/parsing/parsing_service.ml | robocoder/hhvm | b5fe4eec09c160f4a291faf55629b4b9bbffe661 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-06-16T05:47:12.000Z | 2015-06-16T05:47:12.000Z | (**
* 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.
*
*)
(************... | 31.125786 | 80 | 0.616488 |
444e0992ac6a334a61009b83f839b254482ccdd5 | 57,483 | ml | OCaml | hphp/hack/src/server/serverMain.ml | fengjixuchui/hhvm | f66a8093d3a0cb2b0ffb74ed6b80da678da0ad75 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverMain.ml | fengjixuchui/hhvm | f66a8093d3a0cb2b0ffb74ed6b80da678da0ad75 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverMain.ml | fengjixuchui/hhvm | f66a8093d3a0cb2b0ffb74ed6b80da678da0ad75 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-11-09T08:56:11.000Z | 2020-11-09T08:56:11.000Z | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open ServerEnv
open Reordered_argument_collections
open String_utils
open Option.Monad_infix
(*****... | 36.660077 | 114 | 0.682932 |
444b7d0765ec499714f47521b50e7a2b83efdf24 | 158 | mli | OCaml | examples/hello_world_with_async/mysql_with_async.mli | roddyyaga/ppx_mysql | 4a4f6c6015ed6741b0ab2f8436747f6d685301c3 | [
"Apache-2.0"
] | 30 | 2018-09-02T00:44:15.000Z | 2021-11-02T11:14:52.000Z | examples/hello_world_with_async/mysql_with_async.mli | roddyyaga/ppx_mysql | 4a4f6c6015ed6741b0ab2f8436747f6d685301c3 | [
"Apache-2.0"
] | 33 | 2018-08-29T09:34:55.000Z | 2021-02-12T14:32:44.000Z | examples/hello_world_with_async/mysql_with_async.mli | roddyyaga/ppx_mysql | 4a4f6c6015ed6741b0ab2f8436747f6d685301c3 | [
"Apache-2.0"
] | 3 | 2019-05-23T17:19:16.000Z | 2021-01-23T01:47:04.000Z | include
Ppx_mysql_runtime.PPX_MYSQL_CONTEXT
with type 'a IO.t = 'a Async.Deferred.t
and type Prepared.dbh = Mysql.dbd
and type Prepared.error = exn
| 26.333333 | 41 | 0.740506 |
44406481fe621849ea2690955448aa4f4704bb31 | 8,018 | ml | OCaml | src/transform.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | null | null | null | src/transform.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | null | null | null | src/transform.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | null | null | null | open! Core
open! Import
module Var_from_parent = struct
type t =
| None
| One of Type_equal.Id.Uid.t
| Two of Type_equal.Id.Uid.t * Type_equal.Id.Uid.t
end
module For_value = struct
type 'from_parent mapper = { f : 'a. 'from_parent -> 'a Value.t -> 'a Value.t }
type 'from_parent user_mapper =
{... | 31.81746 | 89 | 0.572088 |
44438f21110a18578ba182bd9062ae50b63d1fa5 | 110,188 | ml | OCaml | src/parser/flow_ast_mapper.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/parser/flow_ast_mapper.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/parser/flow_ast_mapper.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
let map_opt : 'node. ('node -> 'node) -> 'node option -> 'node option =
fun map opt ->
match opt with
|... | 41.912514 | 101 | 0.625658 |
8a2aca48722b734e1be817506d796133754fc9d9 | 545 | ml | OCaml | contracts/fa2_common.ml | owneraio/finp2p-tezos-adapter | 151adfa9b9ad4d515227fd60ffe76c3f1e781808 | [
"MIT"
] | 10 | 2021-12-27T12:35:31.000Z | 2022-03-21T21:27:51.000Z | contracts/fa2_common.ml | owneraio/finp2p-tezos-adapter | 151adfa9b9ad4d515227fd60ffe76c3f1e781808 | [
"MIT"
] | 5 | 2022-01-17T16:14:47.000Z | 2022-01-19T21:32:23.000Z | contracts/fa2_common.ml | owneraio/finp2p-tezos-adapter | 151adfa9b9ad4d515227fd60ffe76c3f1e781808 | [
"MIT"
] | 1 | 2022-01-05T16:27:13.000Z | 2022-01-05T16:27:13.000Z | include Errors
include Fa2_types
let[@inline] check_token_exists (id : token_id) (s : storage) : unit =
if not (Big_map.mem id s.token_metadata) then
(failwith fa2_token_undefined : unit)
let[@inline] check_hold (src : address) (token_id : token_id)
(new_balance : token_amount) (s : storage) : unit =
let ... | 32.058824 | 70 | 0.713761 |
8a4993ad38ed2448e3a1d57c549f697e325d7ece | 5,770 | mli | OCaml | src/dune/super_context.mli | yawaramin/dune | ebb7d0040f23c17578b020fc1575cb9f2bab4f70 | [
"MIT"
] | 4 | 2020-02-04T15:33:29.000Z | 2020-02-04T21:37:09.000Z | src/dune/super_context.mli | samoht/dune-mirage | bb2300c1859c452a4140fa33e3afb3c6b755350c | [
"MIT"
] | null | null | null | src/dune/super_context.mli | samoht/dune-mirage | bb2300c1859c452a4140fa33e3afb3c6b755350c | [
"MIT"
] | null | null | null | (** An augmented context *)
(** A context augmented with: a lib-db, ... Super context are used for
generating rules. *)
open! Stdune
open Import
type t
val to_dyn : t -> Dyn.t
val create :
context:Context.t
-> ?host:t
-> projects:Dune_project.t list
-> packages:Package.t Package.Name.Map.t
-> stan... | 27.089202 | 81 | 0.681109 |
8ab470051af517d443d6b81a36ef0f5224778f2a | 919 | ml | OCaml | hphp/hack/src/typing/ide_tast_cache.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/typing/ide_tast_cache.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/typing/ide_tast_cache.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (**
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module IdeTastCache = SharedMem.FreqCache (StringKey) (struct
type value = Tast.program * Errors.t
let capacity... | 25.527778 | 66 | 0.704026 |
440377c93cb91b549654ee29ecb86f00f42a6d18 | 10,005 | ml | OCaml | src/dune/watermarks.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/watermarks.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/watermarks.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Fiber.O
let is_a_source_file path =
( match Path.extension path with
| ".flv"
| ".gif"
| ".ico"
| ".jpeg"
| ".jpg"
| ".mov"
| ".mp3"
| ".mp4"
| ".otf"
| ".pdf"
| ".png"
| ".ttf"
| ".woff" ->
false
| _ -> true )
&& Path.is_file path
let make_watermark_m... | 30.045045 | 79 | 0.546427 |
8a93e1c64639775d74b7a2816b83892d982d9744 | 6,798 | ml | OCaml | fuzz/fuzz.ml | djs55/ocaml-cstruct | 69fffdcfb337a0c51428611da65bb6219ab5a56c | [
"0BSD"
] | null | null | null | fuzz/fuzz.ml | djs55/ocaml-cstruct | 69fffdcfb337a0c51428611da65bb6219ab5a56c | [
"0BSD"
] | null | null | null | fuzz/fuzz.ml | djs55/ocaml-cstruct | 69fffdcfb337a0c51428611da65bb6219ab5a56c | [
"0BSD"
] | null | null | null | open Crowbar
let create x =
match Cstruct.create x with
| c -> assert (x >= 0); c
| exception Invalid_argument _ -> assert (x <= 0); bad_test ()
let create_sub x start len =
try
let c = Cstruct.create_unsafe x in
for i = 0 to len - 1 do
Cstruct.set_uint8 c i i
done;
Cstruct.sub c start l... | 40.951807 | 100 | 0.594734 |
d2e1634474d1f85803cd2e654c8938ec1cc03a86 | 2,896 | ml | OCaml | litmus/outUtils.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | litmus/outUtils.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | litmus/outUtils.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 37.61039 | 78 | 0.560083 |
4423673b6a68b5cdca90378f9943a59ddfe1b6b6 | 191 | ml | OCaml | duniverse/ppx_expect/negative-tests/exit-in-test/broken-test/test.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ppx_expect/negative-tests/exit-in-test/broken-test/test.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ppx_expect/negative-tests/exit-in-test/broken-test/test.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | let%expect_test _ =
print_endline "foo";
[%expect {|foo|}];
print_endline "Something went horribly wrong, exiting prematurely!";
(exit 42 : unit);
[%expect {| random output |}];
;;
| 23.875 | 70 | 0.65445 |
4429f8d7088de67dadd6c0d120b780c7cbc259c7 | 5,428 | ml | OCaml | hphp/hack/src/utils/disk/testDisk.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/disk/testDisk.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/disk/testDisk.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | include Disk_sig.Types
module Hashtbl_base = Hashtbl
module Hashtbl = struct
include Hashtbl_base
let find_opt t x = try Some (find t x) with
| Not_found ->
None
let empty t = (length t) = 0
end;;
type file =
| Actual_file_with_contents of string
| Directory of (string, file) Hashtbl.t
module Helpe... | 29.182796 | 89 | 0.687546 |
8a01ca09c08a910ea76758bac0baea308e30279e | 16,952 | ml | OCaml | src/irmin-pack/irmin_pack.ml | let-def/irmin | eb66f08c2e032f8f9cab1e55e7936e9b2d28d708 | [
"ISC"
] | null | null | null | src/irmin-pack/irmin_pack.ml | let-def/irmin | eb66f08c2e032f8f9cab1e55e7936e9b2d28d708 | [
"ISC"
] | null | null | null | src/irmin-pack/irmin_pack.ml | let-def/irmin | eb66f08c2e032f8f9cab1e55e7936e9b2d28d708 | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2013-2019 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 29.636364 | 80 | 0.608896 |
444172937ef2e0279ba39bb1a9d94e09c2574ddf | 628 | ml | OCaml | src/stack_using_queues/stack_using_queues.ml | yuanqing/code-problems | 30eb34ad616146306cddc50594a47deff111f341 | [
"MIT"
] | 8 | 2017-04-21T17:30:09.000Z | 2020-10-28T21:14:11.000Z | src/stack_using_queues/stack_using_queues.ml | yuanqing/code-problems | 30eb34ad616146306cddc50594a47deff111f341 | [
"MIT"
] | null | null | null | src/stack_using_queues/stack_using_queues.ml | yuanqing/code-problems | 30eb34ad616146306cddc50594a47deff111f341 | [
"MIT"
] | 3 | 2018-01-18T22:45:50.000Z | 2020-10-29T03:04:34.000Z | type 'a t = ('a Queue.t * 'a Queue.t) ref
let create () : 'a t = ref (Queue.create (), Queue.create ())
let push (x:'a) (s:'a t) : unit =
(* enqueue `x` in `q1` *)
let q1, q2 = !s in
let () = Queue.add x q1 in
s := (q1, q2)
let pop (s:'a t) : 'a =
let q1, q2 = !s in
if Queue.is_empty q1 then
failwith... | 22.428571 | 61 | 0.479299 |
44563b50ed808c003ee91887908ae020dae97203 | 1,719 | ml | OCaml | src/data.ml | zshipko/ocaml-bimage | 766501a147e46ebbdfe12656f4a7d6a19a0b2380 | [
"0BSD"
] | 29 | 2018-07-04T09:12:37.000Z | 2022-02-02T15:58:04.000Z | src/data.ml | zshipko/ocaml-bimage | 766501a147e46ebbdfe12656f4a7d6a19a0b2380 | [
"0BSD"
] | 7 | 2019-06-28T03:39:41.000Z | 2021-12-04T19:37:22.000Z | src/data.ml | zshipko/ocaml-bimage | 766501a147e46ebbdfe12656f4a7d6a19a0b2380 | [
"0BSD"
] | 3 | 2019-11-07T14:57:38.000Z | 2020-09-20T15:34:32.000Z | open Bigarray
type ('a, 'b) t = ('a, 'b, c_layout) Array1.t
let[@inline] ty t = Array1.kind t |> Type.of_kind
let v (type a b) (module T : Type.TYPE with type t = a and type elt = b) n =
let arr = Bigarray.Array1.create T.kind Bigarray.C_layout n in
Array1.fill arr (T.of_float 0.0);
arr
let random t n =
let... | 19.758621 | 76 | 0.60733 |
8aae33286ec72cb807affbd2cb7378f19e62cb68 | 157 | ml | OCaml | test/test_helper.ml | Zimmi48/ppx_graphql | c8c6c557d2f2694609c772275a834379c3edd7d4 | [
"MIT"
] | 68 | 2017-08-22T19:38:49.000Z | 2021-08-02T10:02:33.000Z | test/test_helper.ml | Zimmi48/ppx_graphql | c8c6c557d2f2694609c772275a834379c3edd7d4 | [
"MIT"
] | 5 | 2017-09-09T15:09:10.000Z | 2021-10-12T14:39:37.000Z | test/test_helper.ml | Zimmi48/ppx_graphql | c8c6c557d2f2694609c772275a834379c3edd7d4 | [
"MIT"
] | 6 | 2018-02-16T19:39:31.000Z | 2019-12-08T17:11:42.000Z | let id : 'a. 'a -> 'a = fun x -> x
let yojson = Alcotest.of_pp (
fun formatter t ->
Format.pp_print_text formatter (Yojson.Basic.pretty_to_string t)
) | 26.166667 | 68 | 0.66242 |
8ae1de624d33e981e2218305e97cf92ed9c4fb76 | 7,568 | ml | OCaml | data/derived/comb/progs/unify/prog6193.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/prog1339.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1339.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.059603 | 148 | 0.63121 |
445a24a23c846c9c3bab996c22b7dc9d3bfe52b1 | 3,167 | ml | OCaml | unix/network.ml | nickbetteridge/capnp-rpc | 5dcc307d3410fb25df1a617aed2ffbae41abd6d2 | [
"Apache-2.0"
] | null | null | null | unix/network.ml | nickbetteridge/capnp-rpc | 5dcc307d3410fb25df1a617aed2ffbae41abd6d2 | [
"Apache-2.0"
] | null | null | null | unix/network.ml | nickbetteridge/capnp-rpc | 5dcc307d3410fb25df1a617aed2ffbae41abd6d2 | [
"Apache-2.0"
] | 1 | 2021-09-02T07:53:07.000Z | 2021-09-02T07:53:07.000Z | open Lwt.Infix
module Log = Capnp_rpc.Debug.Log
module Tls_wrapper = Capnp_rpc_net.Tls_wrapper.Make(Unix_flow)
module Location = struct
open Astring
include Capnp_rpc_net.Capnp_address.Location
let abs_path p =
if Filename.is_relative p then
Filename.concat (Sys.getcwd ()) p
else p
let valida... | 30.747573 | 102 | 0.657089 |
8a2d159b00061ff724eff9cd629db9432525813f | 374 | ml | OCaml | pattern-matching/guards.ml | bramford/ocaml-learning | 9ad8d04a3caf88289dea0fc140c9a6655f70c1fe | [
"MIT"
] | 1 | 2018-04-23T23:04:19.000Z | 2018-04-23T23:04:19.000Z | pattern-matching/guards.ml | bramford/ocaml-learning | 9ad8d04a3caf88289dea0fc140c9a6655f70c1fe | [
"MIT"
] | null | null | null | pattern-matching/guards.ml | bramford/ocaml-learning | 9ad8d04a3caf88289dea0fc140c9a6655f70c1fe | [
"MIT"
] | null | null | null | (* Oddly not part of the stdlib... Maybe because
it would be hard to handle polymorphism? *)
let negate n = 0 - n
(* The result is the sign of the original number reversed, and the step added to the absolute value *)
let stepReverseSign n s =
match (n,s) with
| (n,0) -> n
| (n,s) when n > 0 -> (negate n) - s
... | 31.166667 | 102 | 0.606952 |
8aba0b72f5624d120f1c00073ef5584e3b4e2e80 | 745 | mli | OCaml | infer/src/nullsafe/typeAnnotation.mli | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | 1 | 2019-09-11T13:16:25.000Z | 2019-09-11T13:16:25.000Z | infer/src/nullsafe/typeAnnotation.mli | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | null | null | null | infer/src/nullsafe/typeAnnotation.mli | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Nodule to represent annotations on types. *)
type t [@@deriving compare]
val const_nullable : bool -> TypeOrigin.... | 21.911765 | 68 | 0.69396 |
8a2558cd39394b459fe2a73f36ea3b6bce4c245b | 500 | mli | OCaml | src/multibase/encoding.mli | patricoferris/ocaml-multiformat | a014885209702fdac51df55c1b41b4b7ff9c2e68 | [
"MIT"
] | null | null | null | src/multibase/encoding.mli | patricoferris/ocaml-multiformat | a014885209702fdac51df55c1b41b4b7ff9c2e68 | [
"MIT"
] | null | null | null | src/multibase/encoding.mli | patricoferris/ocaml-multiformat | a014885209702fdac51df55c1b41b4b7ff9c2e68 | [
"MIT"
] | null | null | null | type t =
[ `Identity
| `Base2
| `Base8
| `Base10
| `Base16
| `Base16upper
| `Base32hex
| `Base32hexupper
| `Base32hexpad
| `Base32hexpadupper
| `Base32
| `Base32upper
| `Base32pad
| `Base32padupper
| `Base32z
| `Base36
| `Base36upper
| `Base58btc
| `Base58flickr
| `Base64
| `Ba... | 16.129032 | 34 | 0.622 |
afda03ac3f6d24310880728e56a483930e79a9dd | 1,714 | ml | OCaml | src/write_midi.ml | kuoa/ocaml-cantus-firmus | b1fd75332617a5df2bcd8dab5740fbd3ebbd6e24 | [
"MIT"
] | null | null | null | src/write_midi.ml | kuoa/ocaml-cantus-firmus | b1fd75332617a5df2bcd8dab5740fbd3ebbd6e24 | [
"MIT"
] | null | null | null | src/write_midi.ml | kuoa/ocaml-cantus-firmus | b1fd75332617a5df2bcd8dab5740fbd3ebbd6e24 | [
"MIT"
] | null | null | null | (*********************************************************
* ocaml-cantus-firmus project description *
*********************************************************
* Module: Write_midi *
* ------- *
* Writes a midi file ... | 29.050847 | 67 | 0.526838 |
8a94ad4275b79119e10220c1080d230c7b5179d7 | 6,795 | ml | OCaml | src/app/extract_blocks/sql.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/app/extract_blocks/sql.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/app/extract_blocks/sql.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | (* sql.ml -- (Postgresql) SQL queries for extract_blocks app *)
module Subchain = struct
let make_sql ~join_condition =
Core_kernel.sprintf
{sql| WITH RECURSIVE chain AS (
SELECT id,state_hash,parent_id,parent_hash,creator_id,block_winner_id,snarked_ledger_hash_id,staking_epoch_data_id,
... | 32.357143 | 149 | 0.679912 |
afde774de8d06ad3625b72c755e66853a4879f8d | 12,373 | ml | OCaml | src/fr.ml | lthls/ocaml-bls12-381 | 6106a0b55c58fe2a2d55e73c09d42a72b03565e2 | [
"MIT"
] | null | null | null | src/fr.ml | lthls/ocaml-bls12-381 | 6106a0b55c58fe2a2d55e73c09d42a72b03565e2 | [
"MIT"
] | null | null | null | src/fr.ml | lthls/ocaml-bls12-381 | 6106a0b55c58fe2a2d55e73c09d42a72b03565e2 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Copyright (c) 2020-2021 Danny Willems <be.danny.willems@gmail.com> *)
(* *)
... | 30.9325 | 85 | 0.621434 |
4402d75b380f252539695692706256d6811b607f | 1,795 | ml | OCaml | lib/metaConst.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | lib/metaConst.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | lib/metaConst.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 38.191489 | 78 | 0.469638 |
8accaef2635074ac41d0e18341955349c0ba5a2e | 571 | ml | OCaml | src/CallbagBatteries.ml | Risto-Stevcev/bs-callbag-batteries | 26dc76cf3f56174f4bbf3eb05634aaec833f0b75 | [
"BSD-3-Clause"
] | null | null | null | src/CallbagBatteries.ml | Risto-Stevcev/bs-callbag-batteries | 26dc76cf3f56174f4bbf3eb05634aaec833f0b75 | [
"BSD-3-Clause"
] | 1 | 2021-05-10T20:33:31.000Z | 2021-05-10T20:33:31.000Z | src/CallbagBatteries.ml | Risto-Stevcev/bs-callbag-batteries | 26dc76cf3f56174f4bbf3eb05634aaec833f0b75 | [
"BSD-3-Clause"
] | null | null | null | include CallbagBasics
let to_array = CallbagToArray.to_array
let to_promise = CallbagToPromise.to_promise
let from_readline = CallbagFromReadline.from_readline
let last = CallbagLast.last
(** Converts a stream of arrays of x into a stream of x *)
let spread stream =
stream
|> map from_array
|> flatten
(** Ret... | 21.148148 | 62 | 0.739054 |
443e68b2bdf8b0959ec8f386df6ea0a2bfc249da | 4,353 | ml | OCaml | src/commands/typeAtPosCommand.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/commands/typeAtPosCommand.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/commands/typeAtPosCommand.ml | 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.
*)
(***********************************************************************)
(* flow type-at-pos command *)
(************************... | 29.612245 | 134 | 0.601654 |
8a8dd25e0fe90c990a4a49bd7ea1000ba85702e8 | 9,303 | ml | OCaml | examples/while.ml | mucamaca/opal | 49ef65ebb27bfd9add62b61bdf0b04ef5e205234 | [
"MIT"
] | 128 | 2015-01-17T08:25:37.000Z | 2022-03-29T17:38:01.000Z | examples/while.ml | mucamaca/opal | 49ef65ebb27bfd9add62b61bdf0b04ef5e205234 | [
"MIT"
] | 7 | 2015-04-25T21:55:20.000Z | 2021-08-05T08:09:46.000Z | examples/while.ml | mucamaca/opal | 49ef65ebb27bfd9add62b61bdf0b04ef5e205234 | [
"MIT"
] | 18 | 2015-01-20T04:15:41.000Z | 2022-03-14T08:33:16.000Z | (*
While Language - a Hackerrank FP challenge:
https://www.hackerrank.com/challenges/while-language-fp
Program ::= Stmts
Stmts ::= Stmt | Stmt ';' Stmts
Stmt ::= Assign | IfElse | While
Assign ::= Identifier ':=' AExp
IfElse ::= 'if' BExp 'then' '{' Stmts '}' 'else' '{' Stmts '}'
While ::= 'while' BExp... | 31.218121 | 81 | 0.536494 |
442944c7732faaf57b9c04e4557b423ce85e1b18 | 1,180 | ml | OCaml | tests/test_force.ml | ashinkarov/heh | 42866803b2ffacdc42b8f06203bf4e5bd18e03b0 | [
"0BSD"
] | 37 | 2017-07-07T19:09:58.000Z | 2022-03-30T21:07:59.000Z | tests/test_force.ml | ashinkarov/heh | 42866803b2ffacdc42b8f06203bf4e5bd18e03b0 | [
"0BSD"
] | 3 | 2017-09-06T19:07:45.000Z | 2018-05-21T08:57:06.000Z | tests/test_force.ml | ashinkarov/heh | 42866803b2ffacdc42b8f06203bf4e5bd18e03b0 | [
"0BSD"
] | 1 | 2018-04-02T17:19:06.000Z | 2018-04-02T17:19:06.000Z | open OUnit
open Printf
open Storage
open Valueops
open Ordinals
open Test_common
let test_force _ =
let prg = "letrec p = 1 in letrec x = [p,p] in p" in
let st, p = eval_prog prg in
assert_equal ~msg:(sprintf "forcing a number: `%s'" prg)
(st_lookup st p) (mk_int_value 1);
let prg = ... | 34.705882 | 83 | 0.591525 |
8ab463ccb7e835ab64fe1d34ce6d530369e16666 | 3,209 | mli | OCaml | src/dune_engine/action.mli | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/dune_engine/action.mli | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/dune_engine/action.mli | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | open! Stdune
open! Import
module Outputs : sig
include module type of Action_intf.Outputs
val to_string : t -> string
end
module Inputs : module type of struct
include Action_intf.Inputs
end
(** result of the lookup of a program, the path to it or information about the
failure and possibly a hint how to f... | 25.267717 | 79 | 0.6756 |
445b61774f72c8dce6dd0d2e13c6303c62705a74 | 14,175 | ml | OCaml | hphp/hack/src/naming/naming_elaborate_namespaces_endo.ml | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming_elaborate_namespaces_endo.ml | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming_elaborate_namespaces_endo.ml | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(**
* AAST visitor that elaborates the names in bodies
* call_some_function($args);
* ->
* \CurrentNamespace\Curre... | 34.322034 | 81 | 0.617002 |
4451b6a25377e1aab922e1d57b3c8c57a1731b81 | 16,314 | ml | OCaml | test/core/test_lwt_stream.ml | patricoferris/lwt | 0fd786536474332dc08b23362261624080c14c44 | [
"MIT"
] | 575 | 2015-01-02T04:28:43.000Z | 2022-03-11T16:56:22.000Z | test/core/test_lwt_stream.ml | patricoferris/lwt | 0fd786536474332dc08b23362261624080c14c44 | [
"MIT"
] | 773 | 2015-01-02T12:09:28.000Z | 2022-03-31T10:10:24.000Z | test/core/test_lwt_stream.ml | patricoferris/lwt | 0fd786536474332dc08b23362261624080c14c44 | [
"MIT"
] | 182 | 2015-01-13T10:33:42.000Z | 2022-01-04T20:50:42.000Z | (* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *)
open Lwt
open Test
let expect_exit f =
Lwt.catch
(fun () ->
f () >>= fun _ ->
Lwt.return_false)
(function
| Exit -> Lwt.return_tr... | 33.158537 | 92 | 0.537575 |
442220717346b9b2b3f406c285c7ffee512664b6 | 17,247 | ml | OCaml | src/lib/pickles/wrap_main.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/pickles/wrap_main.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/pickles/wrap_main.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Pickles_types
open Hlist
open Common
open Import
open Types
open Wrap_main_inputs
open Impl
module SC = Scalar_challenge
(* Let's define an OCaml encoding for inductive NP sets. Let A be an inductive NP set.
To encode A, we require types [var(A)] and [value(A)] corresponding to
\mathcal{U}... | 37.170259 | 115 | 0.518409 |
440141cea16a37ca78e89a8da77132b772ae8947 | 10,491 | ml | OCaml | lib/fir_gen/src/expr_const.ml | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 2 | 2021-06-09T22:28:00.000Z | 2021-06-30T18:08:22.000Z | lib/fir_gen/src/expr_const.ml | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 13 | 2021-02-10T08:57:29.000Z | 2021-02-16T16:17:25.000Z | lib/fir_gen/src/expr_const.ml | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 1 | 2021-06-09T22:28:01.000Z | 2021-06-09T22:28:01.000Z | (* This file is part of c4f.
Copyright (c) 2018-2021 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 42.820408 | 78 | 0.659899 |
afc4d67dfa1017c5ce5954051dca11392d6b9fca | 15,637 | ml | OCaml | hphp/hack/src/typing/nastInitCheck.ml | KIBEBENSON/hhvm | 36ef0d11162898de284bae31d839577cc35571d2 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-11-01T13:46:07.000Z | 2019-11-01T13:46:07.000Z | hphp/hack/src/typing/nastInitCheck.ml | KIBEBENSON/hhvm | 36ef0d11162898de284bae31d839577cc35571d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nastInitCheck.ml | KIBEBENSON/hhvm | 36ef0d11162898de284bae31d839577cc35571d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(* Module checking that all the class members are properly initialized.
* To be more precise, this checks that if t... | 28.639194 | 80 | 0.601906 |
445f4eafe878cd89507d56dc0b42c542da324dc4 | 13,818 | ml | OCaml | infer/src/nullsafe/ClassLevelAnalysis.ml | fraimondi/infer | 22f17140f003a94d968e68372ace4fd8685b7a09 | [
"MIT"
] | null | null | null | infer/src/nullsafe/ClassLevelAnalysis.ml | fraimondi/infer | 22f17140f003a94d968e68372ace4fd8685b7a09 | [
"MIT"
] | null | null | null | infer/src/nullsafe/ClassLevelAnalysis.ml | fraimondi/infer | 22f17140f003a94d968e68372ace4fd8685b7a09 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
let log_issue ?proc_name ~issue_log ~loc ~severity ~nullsafe_extra issue_type error_message =
let extras =
Jsonbu... | 43.589905 | 125 | 0.735128 |
8ae12914e66effda5240a005c64f0e101d395f4e | 3,451 | ml | OCaml | src/proto_009_PsFLoren/lib_protocol/sapling_repr.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_009_PsFLoren/lib_protocol/sapling_repr.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_009_PsFLoren/lib_protocol/sapling_repr.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (* The MIT License (MIT)
*
* Copyright (c) 2019-2020 Nomadic Labs <contact@nomadic-labs.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without lim... | 35.947917 | 81 | 0.701536 |
4455f8ad34c5e04928acf7c5aff85ce27c26a7e4 | 36,167 | ml | OCaml | test/test.ml | aantron/lambdasoup | a6871f9fd970c55f861cce4535cb8a20b5531e79 | [
"MIT"
] | 133 | 2018-11-28T05:11:45.000Z | 2022-03-15T11:17:17.000Z | test/test.ml | aantron/lambdasoup | a6871f9fd970c55f861cce4535cb8a20b5531e79 | [
"MIT"
] | 28 | 2018-11-21T05:41:23.000Z | 2022-02-14T14:57:40.000Z | test/test.ml | aantron/lambdasoup | a6871f9fd970c55f861cce4535cb8a20b5531e79 | [
"MIT"
] | 11 | 2019-03-13T12:28:00.000Z | 2022-02-07T19:42:00.000Z | open OUnit2
open Soup
let map_option f = function
| None -> None
| Some v -> Some (f v)
let unwrap_option = function
| None -> failwith "trying to unwrap a None"
| Some v -> v
let page : string -> string =
let table = Hashtbl.create 7 in
let directory = "pages" in
Sys.readdir directory
|> Array.iter... | 31.837148 | 85 | 0.54276 |
446262c552958fa0122be75ecb4986c86e22b14c | 1,392 | ml | OCaml | src/dune_rules/sub_system_info.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | src/dune_rules/sub_system_info.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | src/dune_rules/sub_system_info.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | open Import
open Dune_lang.Decoder
type t = ..
let equal (x : t) (y : t) = x == y
type sub_system = t = ..
module type S = sig
type t
type sub_system += T of t
val name : Sub_system_name.t
val loc : t -> Loc.t
val syntax : Dune_lang.Syntax.t
val decode : t Dune_lang.Decoder.t
val encode : t -> D... | 24.421053 | 70 | 0.653017 |
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.