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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44f6f7cb647df81d6d6e9ac17de2be11f5acdd41 | 389 | ml | OCaml | test/terminating/raise_in_probe.ml | janestreet/ocaml-probes | 5d2298354818c7a4dd184525470274b94b5016c6 | [
"MIT"
] | 3 | 2022-03-30T17:16:28.000Z | 2022-03-31T08:06:12.000Z | test/terminating/raise_in_probe.ml | janestreet/ocaml-probes | 5d2298354818c7a4dd184525470274b94b5016c6 | [
"MIT"
] | null | null | null | test/terminating/raise_in_probe.ml | janestreet/ocaml-probes | 5d2298354818c7a4dd184525470274b94b5016c6 | [
"MIT"
] | 1 | 2020-03-23T10:35:29.000Z | 2020-03-23T10:35:29.000Z | (* Example with a probe that raises and has live regs *)
exception My_exn
let h b =
print_float b;
print_newline ();
raise My_exn
let[@inline never] foo b =
let must_be_live = Sys.opaque_identity 2 in
try
[%probe "fooia" (h b)];
with My_exn -> begin
print_int must_be_live;
print_newline (... | 17.681818 | 56 | 0.652956 |
444f61d786994981673cffa2c68331936f995d5c | 411 | mli | OCaml | lib/fir_gen/test/expr.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 2 | 2021-06-09T22:28:00.000Z | 2021-06-30T18:08:22.000Z | lib/fir_gen/test/lvalue.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 13 | 2021-02-10T08:57:29.000Z | 2021-02-16T16:17:25.000Z | lib/fir_gen/test/address.mli | 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... | 31.615385 | 76 | 0.727494 |
bc01e6f5eea45fc021212616cc148163ee6d7636 | 8,181 | ml | OCaml | ast/test/sourceTest.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | ast/test/sourceTest.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | ast/test/sourceTest.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"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 Ast
open Statement
open Ignore
open Test
let test_parse _ =
let qualifier = !&"test" in
let assert_mode line ... | 39.907317 | 99 | 0.667767 |
44d6f042f1517210b22b528988307af0c7f9428c | 83,180 | ml | OCaml | src/ocaml/typing/407/typemod.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | src/ocaml/typing/407/typemod.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | src/ocaml/typing/407/typemod.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 37.689171 | 98 | 0.604869 |
44683c82b7e6ca65673fee51b21f53a9390512f1 | 106 | ml | OCaml | benchmarks/sigma/sigma1/submissions/sub479.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/sigma/sigma1/submissions/sub478.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/sigma/sigma1/submissions/sub478.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec sigma ((x : int), (y : int), udf) : int =
if (x > y) then 0
else (udf x) + sigma (x+1, y, udf) | 35.333333 | 49 | 0.5 |
8af2f2a79fc09590c4b6fe3d5f2f44fa35567d88 | 7,360 | ml | OCaml | source/server/test/savedStateTest.ml | r-barnes/pyre-check | d3cbb71309d3398197c7874276bff603d604b819 | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/server/test/savedStateTest.ml | r-barnes/pyre-check | d3cbb71309d3398197c7874276bff603d604b819 | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/server/test/savedStateTest.ml | r-barnes/pyre-check | d3cbb71309d3398197c7874276bff603d604b819 | [
"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
open OUnit2
open Lwt.Infix
open Server
module Path = Pyre.Path
let test_configuration_parsing context =
let assert_par... | 29.090909 | 100 | 0.564266 |
8ae90bce88ead531a1db3ac70e23a7e596c42f41 | 1,575 | mli | OCaml | lib/ir_sync_ext.mli | tezos/irmin | 3a751e132f4ffade81604a4bc9b952b8329e05a1 | [
"0BSD"
] | 5 | 2017-06-25T19:35:30.000Z | 2021-07-18T12:40:51.000Z | lib/ir_sync_ext.mli | tezos/irmin | 3a751e132f4ffade81604a4bc9b952b8329e05a1 | [
"0BSD"
] | null | null | null | lib/ir_sync_ext.mli | tezos/irmin | 3a751e132f4ffade81604a4bc9b952b8329e05a1 | [
"0BSD"
] | 2 | 2017-07-03T09:54:16.000Z | 2018-10-25T16:09:46.000Z | (*
* Copyright (c) 2013-2015 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... | 41.447368 | 76 | 0.704127 |
f3abc84688ec0f816f1bbdc6b25fdaaa039f2158 | 408 | mli | OCaml | src/common/expensive.mli | stefb965/flow | 77ce66fdc2aa382db781346e67d468901631fdc2 | [
"BSD-3-Clause"
] | 3 | 2019-04-03T16:09:03.000Z | 2021-07-31T01:16:29.000Z | src/common/audit/expensive.mli | angeloocana/flow | 6632dcaebe460c691e60cdc33253a5940068ff1e | [
"BSD-3-Clause"
] | 2 | 2021-07-07T23:32:21.000Z | 2022-03-23T16:49:04.000Z | src/common/audit/expensive.mli | angeloocana/flow | 6632dcaebe460c691e60cdc33253a5940068ff1e | [
"BSD-3-Clause"
] | 1 | 2020-06-21T06:21:18.000Z | 2020-06-21T06:21:18.000Z | (**
* 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 ... | 24 | 80 | 0.696078 |
8acf86b0e7d8962327d1930973e89e4b9337eb23 | 334 | ml | OCaml | duniverse/alcotest.1.1.0/test/e2e/alcotest/failing/tail_errors_limit.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/alcotest.1.1.0/test/e2e/alcotest/failing/tail_errors_limit.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/alcotest.1.1.0/test/e2e/alcotest/failing/tail_errors_limit.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | let test_error_output () =
for i = 1 to 100 do
Printf.printf "output line %i\n" i
done;
Alcotest.fail
"Logs should be 10 lines long, including this line (omitting 92)."
let () =
let open Alcotest in
run ~tail_errors:(`Limit 10) "tail_errors_limit"
[ ("failing", [ test_case "test" `Quick test_erro... | 27.833333 | 70 | 0.667665 |
443e06a50764dc7194084ddee9d6c71af8bf2914 | 9,675 | mli | OCaml | ocaml-4.12.0-runtime/stdlib/filename.mli | drjdn/ocaml_c_pkg | 50db2e4fdc7796cdec20ce1d4f9ca54944631c10 | [
"Unlicense"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-4.12.0-runtime/stdlib/filename.mli | drjdn/ocaml_c_pkg | 50db2e4fdc7796cdec20ce1d4f9ca54944631c10 | [
"Unlicense"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-4.12.0-runtime/stdlib/filename.mli | drjdn/ocaml_c_pkg | 50db2e4fdc7796cdec20ce1d4f9ca54944631c10 | [
"Unlicense"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 42.621145 | 79 | 0.655607 |
44b3e33983dbd61198777e35b1c7d3317a8d235a | 6,778 | ml | OCaml | data/derived/comb/progs/unify/prog5601.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/prog0717.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0717.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs =
match xs with
| [] -> 0
| h :: t -> h + sumList t;;
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9... | 24.381295 | 94 | 0.634405 |
4484febd6746af08609723af622b26ee87f3b4e1 | 12,847 | mli | OCaml | infer/src/base/Config.mli | JacobBarthelmeh/infer | 12c582a69855e17a2cf9c7b6cdf7f8e9c71e5341 | [
"MIT"
] | null | null | null | infer/src/base/Config.mli | JacobBarthelmeh/infer | 12c582a69855e17a2cf9c7b6cdf7f8e9c71e5341 | [
"MIT"
] | null | null | null | infer/src/base/Config.mli | JacobBarthelmeh/infer | 12c582a69855e17a2cf9c7b6cdf7f8e9c71e5341 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* 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
(** Configuration values: either constant, determined at compile time, or se... | 19.004438 | 97 | 0.796061 |
afa7e274c459642a0901ad383c19c94a2e92cee8 | 602 | mli | OCaml | sil/abs.mli | petr-muller/abductor | 4c9199378e847e22660daab5e5843805d4035d0a | [
"Intel",
"Unlicense"
] | null | null | null | sil/abs.mli | petr-muller/abductor | 4c9199378e847e22660daab5e5843805d4035d0a | [
"Intel",
"Unlicense"
] | null | null | null | sil/abs.mli | petr-muller/abductor | 4c9199378e847e22660daab5e5843805d4035d0a | [
"Intel",
"Unlicense"
] | null | null | null | (*
*
* Copyright (c) 2006-2008,
* Cristiano Calcagno <ccris@doc.ic.ac.uk>
* Dino Distefano <ddino@dcs.qmul.ac.uk>
* Peter O'Hearn <ohearn@dcs.qmul.ac.uk>
* Hongseok Yang <hyang@dcs.qmul.ac.uk>
* All rights reserved.
*)
(** Abstraction *)
open Propset
(** Create abstraction rules... | 24.08 | 61 | 0.664452 |
44f0497ee2e92ffffdad3f51d94ff69b8650831b | 953 | mli | OCaml | infer/src/backend/Payloads.mli | Gusymochis/infer | 70ed9b146f41ad0875116582df23a0815f90deb4 | [
"MIT"
] | 1 | 2018-11-10T08:04:26.000Z | 2018-11-10T08:04:26.000Z | infer/src/backend/Payloads.mli | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | null | null | null | infer/src/backend/Payloads.mli | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"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! IStd
(** analysis results *)
type t =
{ annot_map: AnnotReachabilityDomain.astate option
; biabduction: BiabductionSummary.t o... | 30.741935 | 66 | 0.752361 |
bc0b39e77dbf62bdcec541d6525cb1bb973af21a | 1,226 | ml | OCaml | src/lib/coda_base/coinbase.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2022-03-21T15:43:42.000Z | 2022-03-21T15:43:42.000Z | src/lib/coda_base/coinbase.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/coinbase.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | open Core
open Import
module T = struct
type t =
{ proposer: Public_key.Compressed.t
; amount: Currency.Amount.t
; fee_transfer: Fee_transfer.single option }
[@@deriving sexp, bin_io, compare, eq]
end
include T
let is_valid {proposer= _; amount; fee_transfer} =
match fee_transfer with
| None -> t... | 25.541667 | 73 | 0.636215 |
44124dac9c476beb362765b2b929e7ca38b5380e | 2,881 | ml | OCaml | lib/driver.ml | art-w/awa-ssh | d85a95c90a6ef7816c8bc093742fb841ea176680 | [
"ISC"
] | 66 | 2016-08-15T22:03:02.000Z | 2020-05-12T02:13:52.000Z | lib/driver.ml | art-w/awa-ssh | d85a95c90a6ef7816c8bc093742fb841ea176680 | [
"ISC"
] | 8 | 2017-02-11T20:46:09.000Z | 2020-06-03T15:20:22.000Z | lib/driver.ml | art-w/awa-ssh | d85a95c90a6ef7816c8bc093742fb841ea176680 | [
"ISC"
] | 7 | 2017-02-14T01:08:42.000Z | 2020-05-27T10:17:38.000Z | (*
* Copyright (c) 2017 Christiano F. Haesbaert <haesbaert@haesbaert.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROV... | 34.297619 | 75 | 0.668518 |
44f05be62542251441f69aaf13fba4013b946922 | 326 | ml | OCaml | src/Traits/ToStandardNumbers.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | 7 | 2020-11-09T02:07:18.000Z | 2021-02-20T08:29:05.000Z | src/Traits/ToStandardNumbers.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | null | null | null | src/Traits/ToStandardNumbers.ml | hhugo/General | 5237123668e939c0cb83aa3e1c4756473336bc7e | [
"MIT"
] | 3 | 2020-11-09T00:57:00.000Z | 2021-02-20T08:31:51.000Z | #include "../Generated/Traits/ToStandardNumbers.ml"
module Tests = struct
include Tests_
module MakeExamples(M: Testable.S0)(E: Examples.S0 with type t := M.t) = E
module MakeTests(M: Testable.S0)(E: Examples.S0 with type t := M.t) = struct
let tests = []
end
include MakeMakers(MakeExamples)(MakeTests... | 23.285714 | 78 | 0.702454 |
44bb09be2b5904e4c99109c6f01ddce09b4cf3cf | 18,394 | ml | OCaml | src/services/inference/check_service.ml | dizzydaizy/flow | dddadf96f00e9c85ad6b52ad997d19d8f0977cd7 | [
"MIT"
] | null | null | null | src/services/inference/check_service.ml | dizzydaizy/flow | dddadf96f00e9c85ad6b52ad997d19d8f0977cd7 | [
"MIT"
] | 4 | 2021-06-23T23:54:47.000Z | 2021-09-01T00:40:08.000Z | src/services/inference/check_service.ml | tbergq/flow | 8c866379d12dc32c6a0e129739148c8cd9169db8 | [
"MIT"
] | 1 | 2019-05-23T07:00:41.000Z | 2019-05-23T07:00:41.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type module_ref = string
type require = module_ref * ALoc.t Nel.t * Modulename.t
type check_file =
File_key.t ->
require list... | 36.641434 | 99 | 0.675383 |
8a6f6d6023791b3080d3d980db9187d4494e408b | 872 | ml | OCaml | interpret_debug.ml | jwilk-archive/brightmare | cca3a3d273625a1fdc166b04b4e735b20042a29d | [
"MIT"
] | 1 | 2017-03-19T21:23:23.000Z | 2017-03-19T21:23:23.000Z | interpret_debug.ml | jwilk/brightmare | cca3a3d273625a1fdc166b04b4e735b20042a29d | [
"MIT"
] | null | null | null | interpret_debug.ml | jwilk/brightmare | cca3a3d273625a1fdc166b04b4e735b20042a29d | [
"MIT"
] | null | null | null | (*
* Copyright © 2006-2013 Jakub Wilk <jwilk@jwilk.net>
* SPDX-License-Identifier: MIT
*)
module type T =
Signatures.INTERPRET with type t = Parsetree.t
module Make
(SubInterpret : T) :
T with type s = SubInterpret.s =
struct
type t = Parsetree.t
type s = SubInterpret.s
open Parsetree
let rec impl... | 20.761905 | 60 | 0.59289 |
44f48566c98ea49c0e099f863ba3865c90c8a6c0 | 9,972 | ml | OCaml | hphp/hack/test/unit/utils/errors_test.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/utils/errors_test.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/utils/errors_test.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | open Hh_core
(**
* Tests documenting various invariants about the order of things coming out
* of Errors module. Some of them are __probably__ not necessary for
* correctness, but if you break them you will still change a bunch of tests
* outputs and will have to spend time wondering whether the changes are
* sign... | 29.945946 | 79 | 0.660349 |
44e9ce2f4fb630223e435a2120947514b413474b | 877 | ml | OCaml | example/e-json/json.ml | persianturtle/dream | 81b4708d59d866bcab8cc23a595d305338db846c | [
"MIT"
] | 1 | 2022-01-16T12:52:42.000Z | 2022-01-16T12:52:42.000Z | example/e-json/json.ml | persianturtle/dream | 81b4708d59d866bcab8cc23a595d305338db846c | [
"MIT"
] | null | null | null | example/e-json/json.ml | persianturtle/dream | 81b4708d59d866bcab8cc23a595d305338db846c | [
"MIT"
] | null | null | null | let to_json request =
match Dream.header "Content-Type" request with
| Some "application/json" ->
let%lwt body = Dream.body request in
begin match Yojson.Basic.from_string body with
| exception _ -> Lwt.return None
| json -> Lwt.return (Some json)
end
| _ -> Lwt.return None
let () =
Dream.r... | 25.057143 | 76 | 0.59179 |
44ffe6bd7b82fcb573e71c7061d842d204e25d2c | 9,302 | ml | OCaml | hphp/hack/src/server/serverApi.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverApi.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverApi.ml | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"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.
*
*)
open Hh_prelude
open RemoteWorker
open Typing_service_types
let make_local_server_api
(naming_table : Naming_table.t)
... | 37.508065 | 95 | 0.635347 |
8aa8d96ec0da8554acb18d9d2524e6c1a0d2f6d4 | 7,588 | ml | OCaml | infer/src/nullsafe/AnnotationGraph.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | 1 | 2020-11-04T19:59:45.000Z | 2020-11-04T19:59:45.000Z | infer/src/nullsafe/AnnotationGraph.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | null | null | null | infer/src/nullsafe/AnnotationGraph.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
type point_info =
{ id: string
; annotation: ProvisionalAnnotation.t
; mutable num_violations: int
; mutable dep... | 35.962085 | 130 | 0.730891 |
8ab733e53ced93d0aae5d8e661bbd806ad63a7f8 | 4,699 | ml | OCaml | src/dune/scope.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/scope.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/scope.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | open! Stdune
open Import
type t =
{ project : Dune_project.t
; db : Lib.DB.t
; root : Path.Build.t
}
let root t = t.root
let name t = Dune_project.name t.project
let project t = t.project
let libs t = t.db
module DB = struct
type scope = t
type t =
{ by_dir : scope Path.Source.Map.t
; context... | 32.184932 | 78 | 0.604171 |
44b01b7259cb714677f6f4d3b11a809cfe310fa4 | 163 | ml | OCaml | data/derived/comb/progs/unify/prog7680.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/prog2882.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2882.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = (x ^ sep) :: a in
let base = h in let l = sl in List.fold_left f base l;;
| 20.375 | 61 | 0.490798 |
8ad41a16a1ee3c45f2b452f9027bbbfa01917b75 | 4,963 | ml | OCaml | hphp/hack/src/typing/tast_check/type_serialization_identity_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/type_serialization_identity_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/type_serialization_identity_check.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* 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.
*
*)
open Hh_prelude
open Typing_defs
(* Replace unserialized information from the type with dummy information.
For exam... | 34.706294 | 80 | 0.604272 |
affea44a651c584a93f6621618b10d09db3cd2e1 | 212 | mli | OCaml | libraries/s3/lib/deleteBucketReplication.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/deleteBucketReplication.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/deleteBucketReplication.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = DeleteBucketReplicationRequest.t
type output = unit
type error = Errors_internal.t
include
(Aws.Call with type input := input and type output := output and type
error := error) | 30.285714 | 75 | 0.735849 |
bc109fccf35f93f7a46fb1a4f8ab11f0561f2c4d | 174 | ml | OCaml | synth/tests/main_test.ml | j-c-w/DSPAcceleratorSupport | 0d3a686f57361d40ccc5f203e59fd019d861c53e | [
"Apache-2.0"
] | null | null | null | synth/tests/main_test.ml | j-c-w/DSPAcceleratorSupport | 0d3a686f57361d40ccc5f203e59fd019d861c53e | [
"Apache-2.0"
] | 3 | 2022-02-15T16:30:06.000Z | 2022-03-05T18:21:30.000Z | synth/tests/main_test.ml | j-c-w/DSPAcceleratorSupport | 0d3a686f57361d40ccc5f203e59fd019d861c53e | [
"Apache-2.0"
] | null | null | null | open Alcotest
let () =
run "Test"
((Utils_test.utils_tests) @ (Spec_test.main ()) @ (Generate_code_test.main ()) @ (Fft_synth_test.main ()) @ (Generate_gir_test.main ()))
| 29 | 137 | 0.672414 |
bc1342adcfaa94f434d3fb1a40babf065e31a11b | 4,821 | ml | OCaml | infer/src/integration/Javac.ml | bauer-matthews/infer | b7f0886eb6e95acf4f1986fde72bea7c6395ba0f | [
"MIT"
] | null | null | null | infer/src/integration/Javac.ml | bauer-matthews/infer | b7f0886eb6e95acf4f1986fde72bea7c6395ba0f | [
"MIT"
] | null | null | null | infer/src/integration/Javac.ml | bauer-matthews/infer | b7f0886eb6e95acf4f1986fde72bea7c6395ba0f | [
"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 L = Logging
module F = Format
type compiler = Java | Javac [@@deriving compare]
let compile compiler build_prog... | 37.96063 | 93 | 0.618959 |
bc172a3628c47848c23f8db1d3f64543a615c5a7 | 121 | ml | OCaml | tests/run_tests.ml | chrisnevers/bitlib | a57494f9db616ec7d17c801d48c5b4b93432784d | [
"Unlicense"
] | 8 | 2019-04-19T21:28:00.000Z | 2020-01-08T08:27:12.000Z | tests/run_tests.ml | chrisnevers/bitlib | a57494f9db616ec7d17c801d48c5b4b93432784d | [
"Unlicense"
] | null | null | null | tests/run_tests.ml | chrisnevers/bitlib | a57494f9db616ec7d17c801d48c5b4b93432784d | [
"Unlicense"
] | null | null | null | let test_suites: unit Alcotest.test list = [
"Bitlib", Test_bitlib.tests
]
let () = Alcotest.run "bitlib" test_suites
| 20.166667 | 44 | 0.719008 |
44ead8dbb9dc2b7e686421d7b92b851d04b53c1e | 674 | ml | OCaml | src/Safe.ml | Ptival/ocamelf | da5821aef102f3f60e4bd072b9e44b9a5cb6bf1f | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2016-06-19T22:12:15.000Z | 2021-02-20T19:19:38.000Z | src/Safe.ml | Ptival/ocamelf | da5821aef102f3f60e4bd072b9e44b9a5cb6bf1f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/Safe.ml | Ptival/ocamelf | da5821aef102f3f60e4bd072b9e44b9a5cb6bf1f | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2016-04-20T08:54:18.000Z | 2016-04-20T08:54:18.000Z | (* "Hacker's Delight", section 2.12 *)
let ( + ) x y =
let z = x + y in
(* Overflow occurs iff x and y have same sign and z's sign is different *)
if (z lxor x) land (z lxor y) < 0
then raise Exc.IntOverflow
else z
let ( - ) x y =
let z = x - y in
(* Overflow occurs iff x and y have opposite signs and z... | 24.071429 | 76 | 0.611276 |
44c992be11fff347285149a0c1dc430cd9361c1b | 2,511 | ml | OCaml | infer/src/nullsafe/typeState.ml | kristinedomingo/infer | 6d78026e8ed1903a01da16ee0f307415d4e03ae0 | [
"MIT"
] | null | null | null | infer/src/nullsafe/typeState.ml | kristinedomingo/infer | 6d78026e8ed1903a01da16ee0f307415d4e03ae0 | [
"MIT"
] | null | null | null | infer/src/nullsafe/typeState.ml | kristinedomingo/infer | 6d78026e8ed1903a01da16ee0f307415d4e03ae0 | [
"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 L = Logging
module F = Format
(** Module for typestates: maps from expressions to annotated types, with extensio... | 30.253012 | 94 | 0.679411 |
8abc1e32220c1605efff21e6f653d32eaa5d1f65 | 20,431 | ml | OCaml | lib/angstrom.ml | lpw25/angstrom | cf6f5d3201d233ea043f91eee116aacf3086d3f4 | [
"BSD-3-Clause"
] | 1 | 2019-12-30T13:50:30.000Z | 2019-12-30T13:50:30.000Z | lib/angstrom.ml | lpw25/angstrom | cf6f5d3201d233ea043f91eee116aacf3086d3f4 | [
"BSD-3-Clause"
] | null | null | null | lib/angstrom.ml | lpw25/angstrom | cf6f5d3201d233ea043f91eee116aacf3086d3f4 | [
"BSD-3-Clause"
] | null | null | null | (*----------------------------------------------------------------------------
Copyright (c) 2016 Inhabited Type LLC.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistri... | 31.003035 | 117 | 0.634526 |
44712719090741f315930899ba552c79f02761e2 | 786 | ml | OCaml | data/sp14/2744.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/2744.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/2744.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let pipe fs =
let f a x = function | g -> g (x a) in
let base = function | x -> x in List.fold_left f base fs;;
(* fix
let pipe fs =
let f a x = function | g -> g in
let base = function | x -> x in List.fold_left f base fs;;
*)
(* changed spans
(3,30)-(3,37)
(3,32)-(3,37)
(3,33)-(3,34)
(3,35)-(3,36)
*)
(... | 13.551724 | 60 | 0.475827 |
8a3ba8757eaa840c7bcdb852685c2efa39a786e2 | 12,351 | ml | OCaml | src/dune/cram_exec.ml | anton-trunov/dune | 48406c09fc7d8d9b91ad2daf8d2d4568fe0d4c41 | [
"MIT"
] | null | null | null | src/dune/cram_exec.ml | anton-trunov/dune | 48406c09fc7d8d9b91ad2daf8d2d4568fe0d4c41 | [
"MIT"
] | null | null | null | src/dune/cram_exec.ml | anton-trunov/dune | 48406c09fc7d8d9b91ad2daf8d2d4568fe0d4c41 | [
"MIT"
] | null | null | null | open Import
module Sanitizer : sig
[@@@ocaml.warning "-32"]
module Command : sig
type t =
{ output : string
; build_path_prefix_map : string
}
end
val impl_sanitizer :
(Command.t -> string) -> in_channel -> out_channel -> unit
val run_sanitizer :
?temp_dir:Path.t
-> pr... | 32.080519 | 80 | 0.64432 |
bc083d3a293776b1e714c9936c0ae54f45de67b9 | 775,571 | ml | OCaml | lib/vscode/vscode.ml | tmattio/js-bindings | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 18 | 2021-04-14T02:52:09.000Z | 2021-11-14T17:08:09.000Z | lib/vscode/vscode.ml | tmattio/ocaml-ecmascript | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 4 | 2021-04-14T16:23:13.000Z | 2021-05-22T00:00:55.000Z | lib/vscode/vscode.ml | tmattio/ocaml-ecmascript | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 1 | 2021-04-14T15:29:24.000Z | 2021-04-14T15:29:24.000Z | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
[@@@ocaml.warning "-7-11-32-33-39"]
open Es2015
module Vscode =
struct
let (version : string) =
Ojs.string_of_js
(Ojs.get_prop_ascii
(Ojs.get_prop_ascii
(Ojs.get_prop_ascii Ojs.glo... | 45.872775 | 104 | 0.451166 |
bc18359ac24db4057e1008ae8e5a490c66b21367 | 12,008 | ml | OCaml | jingle/arch.ml | BreD1810/herdtools7 | 4c33a9d4aec768fa31e79ec7857c6b62730f2b7b | [
"CECILL-B"
] | null | null | null | jingle/arch.ml | BreD1810/herdtools7 | 4c33a9d4aec768fa31e79ec7857c6b62730f2b7b | [
"CECILL-B"
] | null | null | null | jingle/arch.ml | BreD1810/herdtools7 | 4c33a9d4aec768fa31e79ec7857c6b62730f2b7b | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 29.075061 | 78 | 0.549717 |
442737ec8ff0a5428b4241411fb0db1bb4633dcc | 3,100 | ml | OCaml | src/CONGRUENCE_RELATION.ml | jberdine/SLAyer | 540976c814a5804a88d705fba5ac12382556171c | [
"MIT"
] | 1 | 2022-02-16T07:43:50.000Z | 2022-02-16T07:43:50.000Z | src/CONGRUENCE_RELATION.ml | jberdine/SLAyer | 540976c814a5804a88d705fba5ac12382556171c | [
"MIT"
] | null | null | null | src/CONGRUENCE_RELATION.ml | jberdine/SLAyer | 540976c814a5804a88d705fba5ac12382556171c | [
"MIT"
] | 1 | 2022-02-28T18:10:26.000Z | 2022-02-28T18:10:26.000Z | (* Copyright (c) Microsoft Corporation. All rights reserved. *)
open Library
module type CONGRUENCE_RELATION = sig
type exp
(** Exps. *)
type exps
(** Sets of exps. *)
type t
(** A congruence relation representation [r: t] denotes a relation [[r]]
over a finite 'carrier' set of exps tha... | 33.695652 | 109 | 0.550968 |
44084fb17e46400f932e0ac6393c9e0733e30537 | 837 | ml | OCaml | hphp/hack/src/utils/tmp.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/tmp.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/tmp.ml | NunoEdgarGFlowHub/hhvm | 991973e74588e2da4cd800c0e4cf03430094649a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(***********... | 32.192308 | 80 | 0.575866 |
44cc4d5932c1af0a44d32369c3302f87c2797df2 | 1,917 | ml | OCaml | dist/gcc-compatible/lib/Hacl_HPKE_Curve64_CP256_SHA512_bindings.ml | sthagen/project-everest-hacl-star | e3d49b426ee14b10d2f4ba2dcf77891149f23169 | [
"Apache-2.0"
] | 201 | 2016-07-09T18:09:42.000Z | 2018-06-21T05:31:11.000Z | dist/gcc-compatible/lib/Hacl_HPKE_Curve64_CP256_SHA512_bindings.ml | sthagen/project-everest-hacl-star | e3d49b426ee14b10d2f4ba2dcf77891149f23169 | [
"Apache-2.0"
] | 98 | 2016-11-06T16:31:06.000Z | 2018-06-13T16:39:49.000Z | dist/gcc-compatible/lib/Hacl_HPKE_Curve64_CP256_SHA512_bindings.ml | sthagen/project-everest-hacl-star | e3d49b426ee14b10d2f4ba2dcf77891149f23169 | [
"Apache-2.0"
] | 19 | 2016-07-03T02:44:27.000Z | 2018-05-03T09:03:01.000Z | open Ctypes
module Bindings(F:Cstubs.FOREIGN) =
struct
open F
module Hacl_HPKE_Interface_Hacl_Impl_HPKE_Hacl_Meta_HPKE_applied =
(Hacl_HPKE_Interface_Hacl_Impl_HPKE_Hacl_Meta_HPKE_bindings.Bindings)(Hacl_HPKE_Interface_Hacl_Impl_HPKE_Hacl_Meta_HPKE_stubs)
open Hacl_HPKE_Interface_Hacl_Impl_HPKE_Hacl... | 43.568182 | 132 | 0.551382 |
bc14d811aa9236dcabaad495c87ed7696ba1cd1c | 638 | mli | OCaml | src/frontend/Tactics.mli | clayrat/cooltt | b3e6246169e2118aade43d582f0c5ecb1ea9625d | [
"Apache-2.0"
] | 143 | 2020-05-11T19:40:53.000Z | 2022-03-31T14:55:17.000Z | src/frontend/Tactics.mli | clayrat/cooltt | b3e6246169e2118aade43d582f0c5ecb1ea9625d | [
"Apache-2.0"
] | 200 | 2020-05-09T14:32:57.000Z | 2022-03-30T20:03:18.000Z | src/frontend/Tactics.mli | clayrat/cooltt | b3e6246169e2118aade43d582f0c5ecb1ea9625d | [
"Apache-2.0"
] | 11 | 2020-05-12T12:27:57.000Z | 2022-03-17T07:50:52.000Z | open Core
open CodeUnit
module D := Domain
module S := Syntax
module RM := Monads.RefineM
module CS := ConcreteSyntax
module R := Refiner
open Tactic
val intro_subtypes : Chk.tac -> Chk.tac
val intro_implicit_connectives : Chk.tac -> Chk.tac
val elim_implicit_connectives : Syn.tac -> Syn.tac
val tac_nary_quantifie... | 18.764706 | 82 | 0.655172 |
44f41da0a1eb1c170282ef7478f07d7f16595e4c | 720 | mli | OCaml | src/firstorder/form.mli | eytans/cyclist | 93e9c2e1bff5caea33582167d0017c6414dbf44a | [
"BSD-3-Clause"
] | 21 | 2015-07-30T10:28:00.000Z | 2022-03-16T00:21:23.000Z | src/firstorder/form.mli | eytans/cyclist | 93e9c2e1bff5caea33582167d0017c6414dbf44a | [
"BSD-3-Clause"
] | 7 | 2015-09-25T16:10:52.000Z | 2021-08-10T05:26:23.000Z | src/firstorder/form.mli | eytans/cyclist | 93e9c2e1bff5caea33582167d0017c6414dbf44a | [
"BSD-3-Clause"
] | 5 | 2015-10-18T16:20:47.000Z | 2021-04-04T16:11:03.000Z | open Lib
open Generic
include OrderedContainer with type elt = Prod.t
val dest : t -> Prod.t
val tags : t -> Tags.t
val tag_pairs : t -> Tagpairs.t
val pp : Format.formatter -> t -> unit
val is_prod : t -> bool
val terms : t -> Term.Set.t
val equal_upto_tags : t -> t -> bool
val subsumed_wrt_tags : Tags.t -> t -> ... | 26.666667 | 78 | 0.647222 |
4437aef23b4092ae57cc2ab427435f0af439475a | 3,687 | ml | OCaml | data/fa15/1117.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/1117.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/1117.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec clone x n = if n < 1 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2)
else
if (List.length l1) > (List.length l2)
then (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2))
... | 18.162562 | 77 | 0.493626 |
4423c7c787f4bfecff23e58fe41eaf04051c30b2 | 10,287 | mli | OCaml | source/ast/statement.mli | sthagen/pyre-check | 2cd35436b5a5516116177e8e80881882341701e5 | [
"MIT"
] | 1 | 2019-12-07T06:58:52.000Z | 2019-12-07T06:58:52.000Z | source/ast/statement.mli | sthagen/pyre-check | 2cd35436b5a5516116177e8e80881882341701e5 | [
"MIT"
] | null | null | null | source/ast/statement.mli | sthagen/pyre-check | 2cd35436b5a5516116177e8e80881882341701e5 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Assign : sig
type t = {
target: Expression.t;
annotation: Expression.t option;
value: Expression.t;
}
[@@d... | 22.910913 | 91 | 0.64285 |
44ba27b709228347592149ebaa6b46e0c25258fc | 1,844 | ml | OCaml | libraries/ec2/lib/rejectTransitGatewayVpcAttachment.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/rejectTransitGatewayVpcAttachment.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/rejectTransitGatewayVpcAttachment.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = RejectTransitGatewayVpcAttachmentRequest.t
type output = RejectTransitGatewayVpcAttachmentResult.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... | 27.939394 | 90 | 0.622017 |
bc003e51d23f671ae6d3e53d5bee06ac060097bf | 11,294 | ml | OCaml | src/common/ty/ty_printer.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"MIT"
] | 1 | 2019-03-11T16:27:05.000Z | 2019-03-11T16:27:05.000Z | src/common/ty/ty_printer.ml | vicapow/flow | 0e6e80ae7f3d29a0fbdba8f619730bb76ec74331 | [
"MIT"
] | null | null | null | src/common/ty/ty_printer.ml | vicapow/flow | 0e6e80ae7f3d29a0fbdba8f619730bb76ec74331 | [
"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 Layout
open Utils_js
open Ty
(***********)
(* Utils *)
(***********)
let varname n = spf "V$%d" n
let crop_symbol = "...... | 27.681373 | 100 | 0.58022 |
44433f243f618cb09a1ccd60ddc5c4f66d79ac1a | 1,109 | mli | OCaml | src/dune_cache/dune_cache.mli | smccauliff/dune | 170f3198cd280b38108f150d1c6f65088a0e1e23 | [
"MIT"
] | null | null | null | src/dune_cache/dune_cache.mli | smccauliff/dune | 170f3198cd280b38108f150d1c6f65088a0e1e23 | [
"MIT"
] | null | null | null | src/dune_cache/dune_cache.mli | smccauliff/dune | 170f3198cd280b38108f150d1c6f65088a0e1e23 | [
"MIT"
] | null | null | null | open Stdune
include module type of Dune_cache_intf
type 'a result = ('a, string) Result.t
val default_root : unit -> Path.t
module Key : sig
type t = Digest.t
val of_string : string -> (t, string) Result.t
val to_string : t -> string
end
val promotion_to_string : promotion -> string
val command_to_dyn : c... | 23.595745 | 78 | 0.671776 |
449c2b0a7d17d14b7305bf6ea7c4ffc120640fba | 1,156 | mli | OCaml | src/reason-parser/merlin_recovery.mli | Drup/reason | 8f71db0b88c31842d866d46a18b71a1ce1709567 | [
"MIT"
] | 9,879 | 2016-05-17T20:15:20.000Z | 2021-01-07T19:50:00.000Z | src/reason-parser/merlin_recovery.mli | snu-development/reason | b2887ec0eb0bd60cc842d062bd874edef5495dee | [
"MIT"
] | 1,985 | 2016-05-17T20:26:17.000Z | 2021-01-07T07:38:52.000Z | src/reason-parser/merlin_recovery.mli | snu-development/reason | b2887ec0eb0bd60cc842d062bd874edef5495dee | [
"MIT"
] | 573 | 2016-05-17T20:15:52.000Z | 2020-12-18T09:42:26.000Z | module Make
(Parser : MenhirLib.IncrementalEngine.EVERYTHING)
(Recovery : sig
val default_value : Location.t -> 'a Parser.symbol -> 'a
type action =
| Abort
| R of int
| S : 'a Parser.symbol -> action
| Sub of action list
type decision =
| Noth... | 21.811321 | 71 | 0.570934 |
afcd3b95d60ed0b62d019eae84de5e6d32dd65f2 | 1,015 | ml | OCaml | example.ml | sufrin/InteractiveSedlexMenhirExample | b38b83ad3dfc3e134b230564070a75283689b08f | [
"Unlicense"
] | 10 | 2021-01-06T18:23:52.000Z | 2021-11-21T08:59:28.000Z | example.ml | sufrin/InteractiveSedlexMenhirExample | b38b83ad3dfc3e134b230564070a75283689b08f | [
"Unlicense"
] | null | null | null | example.ml | sufrin/InteractiveSedlexMenhirExample | b38b83ad3dfc3e134b230564070a75283689b08f | [
"Unlicense"
] | null | null | null |
open Parsing
let process lexbuf =
let lexer = SexpLexer.lexer lexbuf in
try
match parse lexer lexbuf with
| OK ast ->
(match ast with Sexp.EndFile -> raise EndFile | _ -> ());
Format.fprintf Format.std_formatter "%a\n%!" Sexp.pp_sexp ast
| ERR (pos, msg) ->
Format.fp... | 29.852941 | 97 | 0.626601 |
af404f78bc0227b5741ccfc36025322ab69f445d | 1,558 | ml | OCaml | lib/timer.ml | kevinschoon/comodoro | 4b7696f485e7567458035fb4cd12b31027d6edfa | [
"MIT"
] | 9 | 2020-12-13T23:39:12.000Z | 2022-03-23T17:24:19.000Z | lib/timer.ml | kevinschoon/comodoro | 4b7696f485e7567458035fb4cd12b31027d6edfa | [
"MIT"
] | 12 | 2020-12-13T23:15:38.000Z | 2022-02-23T22:29:40.000Z | lib/timer.ml | kevinschoon/comodoro | 4b7696f485e7567458035fb4cd12b31027d6edfa | [
"MIT"
] | 4 | 2020-12-13T10:26:54.000Z | 2022-02-23T20:38:16.000Z | type t = Work of int * int | ShortBreak of int * int | LongBreak of int * int
let initial_timer (config : Config.t) = Work (config.work_time, 0)
let int_of_timer = function
| Work (n, _) -> n
| ShortBreak (n, _) -> n
| LongBreak (n, _) -> n
let to_string timer =
let mins = int_of_timer timer / 60 in
let se... | 33.148936 | 78 | 0.643774 |
8acd58c7a53f92d4af59bd761689d7cff78e88cc | 8,938 | ml | OCaml | src/command_util.ml | ntauth/FaCT | c08b2e00751b28e1f25d031c3afafc544acfb892 | [
"BSD-3-Clause"
] | 97 | 2017-12-28T09:09:03.000Z | 2022-03-23T07:24:42.000Z | src/command_util.ml | ntauth/FaCT | c08b2e00751b28e1f25d031c3afafc544acfb892 | [
"BSD-3-Clause"
] | 13 | 2018-01-04T20:09:09.000Z | 2019-11-13T18:02:47.000Z | src/command_util.ml | ntauth/FaCT | c08b2e00751b28e1f25d031c3afafc544acfb892 | [
"BSD-3-Clause"
] | 12 | 2018-02-26T07:11:33.000Z | 2021-12-10T18:35:34.000Z | open Lwt
open Pos
open Err
open Lexing
type opt_level = O0 | O1 | O2 | O3 | OF
type args_record = {
in_files : string list;
out_file : string option;
debug : bool;
ast_out : bool;
pseudo_out : bool;
llvm_out : bool;
gen_header : bool;
verify_llvm : bool;
opt_level : opt_level;... | 37.241667 | 114 | 0.654733 |
44a8c742f685599334bfc03144777981ae09061d | 119,084 | ml | OCaml | src/typing/debug_js.ml | thecotne/flow | 21f42d4baf26e637b82a8d266ad9fea85be740f8 | [
"MIT"
] | null | null | null | src/typing/debug_js.ml | thecotne/flow | 21f42d4baf26e637b82a8d266ad9fea85be740f8 | [
"MIT"
] | null | null | null | src/typing/debug_js.ml | thecotne/flow | 21f42d4baf26e637b82a8d266ad9fea85be740f8 | [
"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 Utils_js
let string_of_pred_ctor = function
| AndP _ -> "AndP"
| OrP _ -> "OrP"
| NotP _ -> "Not... | 39.523399 | 111 | 0.591289 |
442908dbd19e940613a4fda3aa237b08492f40db | 802 | ml | OCaml | lib_term/dyn.ml | gs0510/ocurrent | 8347f70cf8cbc296cf963f09b2355aa0d0de59a7 | [
"Apache-2.0"
] | null | null | null | lib_term/dyn.ml | gs0510/ocurrent | 8347f70cf8cbc296cf963f09b2355aa0d0de59a7 | [
"Apache-2.0"
] | null | null | null | lib_term/dyn.ml | gs0510/ocurrent | 8347f70cf8cbc296cf963f09b2355aa0d0de59a7 | [
"Apache-2.0"
] | null | null | null | type 'a t = 'a Output.t
let return x = Ok x
let fail msg = Error (`Msg msg)
let of_output x = x
let state x = Ok x
let catch = function
| Ok _ | Error (`Msg _) as x -> Ok x
| Error (`Active _) as x -> x
let bind x f =
match x with
| Error _ as e -> e
| Ok y -> f y
let map f x =
match x with
| Error _... | 18.651163 | 56 | 0.538653 |
44d2d2d4260ad34ebd1258d945315e2fbaa62266 | 1,410 | ml | OCaml | src/defvar.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | src/defvar.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | src/defvar.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | open! Core_kernel
open! Import
let all_defvar_symbols = ref []
module Private = struct
let all_defvar_symbols () =
!all_defvar_symbols |> List.sort ~compare:Symbol.compare_name
;;
end
let add symbol here =
all_defvar_symbols := symbol :: !all_defvar_symbols;
Load_history.add_entry here (Var symbol)
;;
l... | 25.178571 | 88 | 0.680142 |
44cddfdcdf0dcda2f21525db815f7a30d51b6d2f | 7,227 | ml | OCaml | src/conduit-async/s.ml | madroach/ocaml-conduit | 522b536601ee5996f6833f6d78e5df5fa0c6f971 | [
"ISC"
] | null | null | null | src/conduit-async/s.ml | madroach/ocaml-conduit | 522b536601ee5996f6833f6d78e5df5fa0c6f971 | [
"ISC"
] | null | null | null | src/conduit-async/s.ml | madroach/ocaml-conduit | 522b536601ee5996f6833f6d78e5df5fa0c6f971 | [
"ISC"
] | null | null | null | open Async
module type V1 = sig
type session [@@deriving sexp_of]
type ssl_conn [@@deriving sexp_of]
type ssl_version [@@deriving sexp]
module Conduit_async : sig
module Ssl : sig
type config [@@deriving sexp]
val verify_certificate : ssl_conn -> bool Deferred.t
val configure :
... | 26.569853 | 81 | 0.594853 |
bc1a9c11474478a8083e9fe9a61cd4a62f9e49e9 | 17,196 | ml | OCaml | compiler/qmlpasses/pass_Closure.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | compiler/qmlpasses/pass_Closure.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | compiler/qmlpasses/pass_Closure.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 58 | 2015-01-02T23:57:42.000Z | 2022-03-02T12:44:42.000Z | (*
Copyright © 2011, 2012 MLstate
This file is part of Opa.
Opa is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
Opa is distributed in the hope that it will be useful, ... | 40.845606 | 167 | 0.656781 |
8aac13719c7f7c24cc0c5810bea60c1a1356d876 | 1,991 | mli | OCaml | src/proto_009_PsFLorBA/lib_client_commands/client_proto_baker_commands.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_client_commands/client_proto_baker_commands.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_client_commands/client_proto_baker_commands.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Metastate AG <hello@metastate.dev> *)
... | 73.740741 | 79 | 0.473129 |
445c20a8dface5f59581afc58b0d1f40638734bc | 4,069 | ml | OCaml | external/misc/fcommon.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | null | null | null | external/misc/fcommon.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | 1 | 2018-04-24T10:43:07.000Z | 2018-04-24T10:43:07.000Z | external/misc/fcommon.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright © 2008 The Regents of the University of California. All rights reserved.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copyright... | 31.542636 | 92 | 0.619563 |
8aeeab5a31fef76dd0749662011b34192cc0836a | 450 | ml | OCaml | src/services/saved_state/fetcher/saved_state_dummy_fetcher.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/services/saved_state/fetcher/saved_state_dummy_fetcher.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/services/saved_state/fetcher/saved_state_dummy_fetcher.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.
*)
(* This saved state fetcher is used by servers which don't intend to use saved state *)
let fetch ~options:_ =
Profiling_js.with_... | 37.5 | 96 | 0.748889 |
44b17c947a18a26dc502e38c87f5dd726460a324 | 7,223 | mli | OCaml | plugin/src/compilation/proofdiff.mli | uwplse/PUMPKIN-PATCH | 75e93275290c76d13a7a8b3a2124257be895f5e4 | [
"MIT"
] | 44 | 2017-10-07T05:13:45.000Z | 2022-03-29T22:29:39.000Z | plugin/src/compilation/proofdiff.mli | uwplse/PUMPKIN-PATCH | 75e93275290c76d13a7a8b3a2124257be895f5e4 | [
"MIT"
] | 75 | 2017-12-14T02:05:29.000Z | 2020-09-29T23:54:24.000Z | plugin/src/compilation/proofdiff.mli | uwplse/PUMPKIN-PATCH | 75e93275290c76d13a7a8b3a2124257be895f5e4 | [
"MIT"
] | 2 | 2017-12-09T16:05:13.000Z | 2021-05-14T09:29:34.000Z | (* Differences between old and new proofs *)
open Constr
open Environ
open Proofcat
open Assumptions
open Reducers
open Merging
open Stateutils
open Evd
(* --- Types --- *)
type 'a proof_diff
(* Construct a proof_diff *)
val difference : 'a -> 'a -> equal_assumptions -> 'a proof_diff
(* Get the assumptions from a ... | 30.095833 | 92 | 0.723799 |
bc0614205fbf58ea1962ac362b739b907192a40e | 632 | ml | OCaml | result/fixml/lambda/sub131/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/lambda/sub131/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/lambda/sub131/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
let rec check : lambda -> bool =
fun lam ->
let rec find x env =
match env with
| [] -> false
| hd :: tl -> if hd = x then true else find x tl
in
let rec del x env =
match env with [] -> [] | v :: tl -> if v... | 22.571429 | 76 | 0.531646 |
44dbccd93c5b00bafb94d6faa89eb3c1417cf58b | 31,692 | ml | OCaml | astlib/ast_407.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 179 | 2018-03-13T16:22:57.000Z | 2022-03-23T20:30:12.000Z | astlib/ast_407.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 222 | 2018-03-13T15:44:22.000Z | 2022-03-26T08:56:14.000Z | astlib/ast_407.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 52 | 2018-03-15T19:14:22.000Z | 2022-03-22T14:40:58.000Z | (**************************************************************************)
(* *)
(* OCaml Migrate Parsetree *)
(* *)
(* ... | 33.643312 | 89 | 0.53493 |
f3f5157bcdf2a2e4ab1adf1bd52db1e9a1102892 | 2,285 | mli | OCaml | Mesh.mli | hielis/sdf_3d_operations | a12f845f97807b6209a11c93763f42d413843603 | [
"MIT"
] | null | null | null | Mesh.mli | hielis/sdf_3d_operations | a12f845f97807b6209a11c93763f42d413843603 | [
"MIT"
] | null | null | null | Mesh.mli | hielis/sdf_3d_operations | a12f845f97807b6209a11c93763f42d413843603 | [
"MIT"
] | null | null | null | module type VectorType = sig
type vect
type t = vect * int
val vect : float -> float -> float -> vect
val get_x : vect -> float
val get_y : vect -> float
val t : vect -> int -> t
val get_i : t -> int
val get_z : vect -> float
val scal_mult : float -> vect -> vect
val dot_product : vect -> vect -> fl... | 33.602941 | 96 | 0.555361 |
44a6059788b5f5adfefeea3ebab829a315817e72 | 7,533 | mli | OCaml | src/core/Statement.mli | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | null | null | null | src/core/Statement.mli | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | null | null | null | src/core/Statement.mli | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of Zipperposition. See file "license" for more details. *)
(** {1 Statement} *)
(** The input problem is made of {b statements}. Each statement can declare
a type, assert a formula, or a conjecture, define a term, add
a rewrite rule, etc.
Those statements do not neces... | 29.425781 | 102 | 0.61131 |
44fb30472feba6ae48b0f0009834a6525a95352e | 871,211 | ml | OCaml | test/ofday_unit_tests_v1.ml | arenadotio/core | 49dc8358869dfb9cd26c9b4401c9cc76f77ae9b4 | [
"Apache-2.0"
] | null | null | null | test/ofday_unit_tests_v1.ml | arenadotio/core | 49dc8358869dfb9cd26c9b4401c9cc76f77ae9b4 | [
"Apache-2.0"
] | null | null | null | test/ofday_unit_tests_v1.ml | arenadotio/core | 49dc8358869dfb9cd26c9b4401c9cc76f77ae9b4 | [
"Apache-2.0"
] | null | null | null | open Core.Std
let hand_generated ~create =
[ create ~hr:0 ~min:0 ~sec:0 ~ms:0 ~us:0,
"00:00:00.000000",
"\000\000\000\000\000\000\000\000"
; create ~hr:24 ~min:0 ~sec:0 ~ms:0 ~us:0,
"24:00:00.000000",
"\000\000\000\000\000\024\245\064"
]
let unit_tests ~create =
hand_generated ~create
(* Lis... | 29.009423 | 90 | 0.540425 |
44ae39877ca3fe5c27904769fbda4098ee10c4d2 | 4,837 | ml | OCaml | lib/channel.ml | art-w/awa-ssh | d85a95c90a6ef7816c8bc093742fb841ea176680 | [
"ISC"
] | 66 | 2016-08-15T22:03:02.000Z | 2020-05-12T02:13:52.000Z | lib/channel.ml | art-w/awa-ssh | d85a95c90a6ef7816c8bc093742fb841ea176680 | [
"ISC"
] | 8 | 2017-02-11T20:46:09.000Z | 2020-06-03T15:20:22.000Z | lib/channel.ml | art-w/awa-ssh | d85a95c90a6ef7816c8bc093742fb841ea176680 | [
"ISC"
] | 7 | 2017-02-14T01:08:42.000Z | 2020-05-27T10:17:38.000Z | (*
* Copyright (c) 2017 Christiano F. Haesbaert <haesbaert@haesbaert.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROV... | 28.791667 | 77 | 0.664255 |
8afb645e61ebae8427e7fc830a375d1990a2ed40 | 3,963 | mli | OCaml | bootstrap/src/basis/stream.mli | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/src/basis/stream.mli | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/src/basis/stream.mli | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | (** Lazy-evaluated immutable stream.
The stream is an immutable stack-like container. Operations on the stream that would typically
be O(n) are amortized via lazy execution and (with a few noted exceptions) are O(1). *)
open Rudiments0
(** {1 Type and derivations} *)
(* ('a, >e) t *)
type 'a elm =
| Nil
... | 38.852941 | 100 | 0.59349 |
44b2fe7365a14fad627e05e9108e77e1ebef8225 | 1,774 | ml | OCaml | lib/functoria/context.ml | nandor/mirage | 648938ee5a8fd89aa231a01422f80ec3d553d41a | [
"0BSD"
] | null | null | null | lib/functoria/context.ml | nandor/mirage | 648938ee5a8fd89aa231a01422f80ec3d553d41a | [
"0BSD"
] | 2 | 2019-10-26T12:20:32.000Z | 2019-12-18T17:27:43.000Z | lib/functoria/context.ml | nandor/mirage | 648938ee5a8fd89aa231a01422f80ec3d553d41a | [
"0BSD"
] | 1 | 2021-06-16T23:14:47.000Z | 2021-06-16T23:14:47.000Z | (*
* Copyright (c) 2013-2020 Thomas Gazagnaire <thomas@gazagnaire.org>
* Copyright (c) 2013-2020 Anil Madhavapeddy <anil@recoil.org>
* Copyright (c) 2015-2020 Gabriel Radanne <drupyog@zoho.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby grante... | 33.471698 | 75 | 0.676437 |
44e64148b52ba1cdc4d0c906860e67312d6ffb2a | 1,366 | ml | OCaml | src/commands/configCommands.ml | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | 2 | 2015-07-28T23:53:32.000Z | 2015-07-31T15:17:21.000Z | src/commands/configCommands.ml | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | null | null | null | src/commands/configCommands.ml | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | null | null | null | module Init = struct
let spec = {
CommandSpec.
name = "init";
doc = "Initializes a directory to be used as a flow root directory";
usage = Printf.sprintf
"Usage: %s init [ROOT]\n\
Initializes a directory to be used as a flow root directory\n\n\
e.g. %s init /path/to/root\n\
... | 32.52381 | 91 | 0.627379 |
bc11f47e8b03b1b70df53974eb1566780b7caa25 | 167 | ml | OCaml | tests/ex09.ml | mrmr1993/coq-of-ocaml | d875d71b0186a6ec46382f398dc2fb5c555ab48e | [
"MIT"
] | 1 | 2022-03-21T15:44:04.000Z | 2022-03-21T15:44:04.000Z | tests/ex09.ml | mrmr1993/coq-of-ocaml | d875d71b0186a6ec46382f398dc2fb5c555ab48e | [
"MIT"
] | 2 | 2018-04-02T14:32:30.000Z | 2018-05-10T08:16:24.000Z | tests/ex09.ml | mrmr1993/coq-of-ocaml | d875d71b0186a6ec46382f398dc2fb5c555ab48e | [
"MIT"
] | null | null | null | (** Local let-rec *)
let l _ =
let rec map f = function
| [] -> []
| x :: xs -> f x :: map f xs in
let rec loop x = x in
map (fun n -> n + 1) [5; 7; 8]
| 18.555556 | 35 | 0.437126 |
bc007f1d23c525fcc8087ea9920c833d39158315 | 10,843 | ml | OCaml | src/irmin-unix/fs.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | null | null | null | src/irmin-unix/fs.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | 1 | 2020-03-02T22:43:44.000Z | 2020-03-06T15:35:44.000Z | src/irmin-unix/fs.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 34.642173 | 79 | 0.578899 |
446b4c40203b8570e0600417695e53e363d33af0 | 4,253 | mli | OCaml | infer/src/backend/io_infer.mli | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/io_infer.mli | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/io_infer.mli | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"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.753968 | 97 | 0.696214 |
44e95fccf7fc4294d86c0ac916793000e634797e | 1,084 | ml | OCaml | src/stdune/io_intf.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | src/stdune/io_intf.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | src/stdune/io_intf.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | module type S = sig
type path
val open_in : ?binary:bool (* default true *) -> path -> in_channel
val open_out : ?binary:bool (* default true *) -> path -> out_channel
val with_file_in :
?binary:bool (* default true *) -> path -> f:(in_channel -> 'a) -> 'a
val with_file_out :
?binary:bool (* defau... | 26.439024 | 77 | 0.609779 |
44d287bb5acd6366eef1265cfffdff6eeaca49fb | 6,538 | ml | OCaml | hphp/hack/src/monitor/serverMonitorUtils.ml | jie-pan/hhvm | 41853383c5b53a69ac2c67f9d3cce5e38c6eafa5 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/monitor/serverMonitorUtils.ml | jie-pan/hhvm | 41853383c5b53a69ac2c67f9d3cce5e38c6eafa5 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/src/monitor/serverMonitorUtils.ml | LaudateCorpus1/hhvm | 15914f0afb9dc408fe56949d5871a46ffa103b44 | [
"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.
*
*)
type monitor_config = {
socket_file: string;
(** The socket file on which the monitor is listening for conne... | 35.150538 | 96 | 0.723616 |
8a634e6b403041a60fd15289cfe4bee00488a6c6 | 1,628 | mli | OCaml | libraries/ec2/lib/describeSecurityGroups.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/describeSecurityGroups.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeSecurityGroups.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Describes the specified security groups or all of your security groups.</p> <p>A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html\">Amazon EC2 Secu... | 50.875 | 580 | 0.718673 |
bc086c62b81c067275fdd743b1ef3540abbb4365 | 26,633 | ml | OCaml | analysis/astEnvironment.ml | HybridDeveloper/pyre-check | 48d1f8bbf19003417e64950561c786e28af1251a | [
"MIT"
] | null | null | null | analysis/astEnvironment.ml | HybridDeveloper/pyre-check | 48d1f8bbf19003417e64950561c786e28af1251a | [
"MIT"
] | null | null | null | analysis/astEnvironment.ml | HybridDeveloper/pyre-check | 48d1f8bbf19003417e64950561c786e28af1251a | [
"MIT"
] | null | null | null | (* Copyright (c) 2019-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 Ast
open Core
open Pyre
open PyreParser
type t = { module_tracker: ModuleTracker.t }
module RawSourceValue = struct
type t = Source.... | 34.859948 | 100 | 0.66763 |
bc0739a3d491f203eb88b604a9548f810648b94b | 674 | ml | OCaml | src/dune_engine/clflags.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | src/dune_engine/clflags.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/dune_engine/clflags.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 1 | 2017-12-07T21:21:12.000Z | 2017-12-07T21:21:12.000Z | module Promote = struct
type t =
| Automatically
| Never
end
let debug_findlib = ref false
let debug_dep_path = ref false
let debug_artifact_substitution = ref false
let external_lib_deps_hint = ref []
let external_lib_deps_mode = ref false
let capture_outputs = ref true
let debug_backtraces = Dune_uti... | 16.85 | 63 | 0.780415 |
448a9e8cc31cdef115bac52b6983b0c34fc73c78 | 1,063 | mli | OCaml | src/solver.mli | arjunvish/coq-smt-check | d707c8d6cd8d1baad86bbf6c30c59f5fc4c6b7bb | [
"MIT"
] | 10 | 2016-08-23T22:35:15.000Z | 2021-09-18T07:41:20.000Z | src/solver.mli | arjunvish/coq-smt-check | d707c8d6cd8d1baad86bbf6c30c59f5fc4c6b7bb | [
"MIT"
] | 5 | 2016-02-25T19:48:44.000Z | 2019-11-19T18:37:27.000Z | src/solver.mli | arjunvish/coq-smt-check | d707c8d6cd8d1baad86bbf6c30c59f5fc4c6b7bb | [
"MIT"
] | 5 | 2017-07-24T07:52:43.000Z | 2020-06-22T01:43:05.000Z | module type Solver =
sig
val solve : debug:bool -> verbose:bool -> unit Proofview.tactic
end
module type Instance =
sig
type instance
val parse_conclusion : Environ.env -> Evd.evar_map ->
Term.constr -> instance
val parse_hypothesis : Environ.env -> Evd.evar_map ->
Names.Id.t -> Term.constr -> insta... | 24.159091 | 81 | 0.696143 |
8a096acb07e29a5a1b2ec2187a56ae1859ed3101 | 17,635 | ml | OCaml | src/analysis_and_optimization/Pedantic_analysis.ml | kendalfoster/stanc3 | 2b17789dae5690a92ec1e5c14aff3960a4dac88a | [
"BSD-3-Clause"
] | 1 | 2021-06-24T16:46:44.000Z | 2021-06-24T16:46:44.000Z | src/analysis_and_optimization/Pedantic_analysis.ml | kendalfoster/stanc3 | 2b17789dae5690a92ec1e5c14aff3960a4dac88a | [
"BSD-3-Clause"
] | null | null | null | src/analysis_and_optimization/Pedantic_analysis.ml | kendalfoster/stanc3 | 2b17789dae5690a92ec1e5c14aff3960a4dac88a | [
"BSD-3-Clause"
] | null | null | null | open Core_kernel
open Optimize
open Middle
open Middle.Program
open Dependence_analysis
open Dataflow_types
open Dataflow_utils
open Factor_graph
open Mir_utils
open Pedantic_dist_warnings
type warning_span = Location_span.t * string [@@deriving compare]
(*********************
Pattern collection functions
*******... | 38.420479 | 81 | 0.667366 |
4429f3ac2e6450feaca97d423cd1a935034f4456 | 18,506 | ml | OCaml | data/derived/comb/progs/unify/prog6979.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/prog2163.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2163.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.987522 | 208 | 0.658813 |
44eafeddbd2eee22d26a162a4d442e6764a19527 | 1,135 | ml | OCaml | libraries/elasticloadbalancing/lib/createLBCookieStickinessPolicy.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticloadbalancing/lib/createLBCookieStickinessPolicy.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticloadbalancing/lib/createLBCookieStickinessPolicy.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = CreateLBCookieStickinessPolicyInput.t
type output = unit
type error = Errors_internal.t
let service = "elasticloadbalancing"
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)))
... | 25.222222 | 88 | 0.669604 |
44fa057a443bc5262167684790c3dd99ee5c5aaa | 11,165 | ml | OCaml | herd/ARMSem.ml | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | herd/ARMSem.ml | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | herd/ARMSem.ml | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 35.557325 | 107 | 0.425168 |
44d550dc53c9b9ffc0a1607d66af1257b4c3e6a2 | 2,569 | ml | OCaml | src/ctypes/ctypes_ptr.ml | emillon/ocaml-ctypes | a5aacb5298963f50422e252a718ae12b90f5e44f | [
"MIT"
] | null | null | null | src/ctypes/ctypes_ptr.ml | emillon/ocaml-ctypes | a5aacb5298963f50422e252a718ae12b90f5e44f | [
"MIT"
] | null | null | null | src/ctypes/ctypes_ptr.ml | emillon/ocaml-ctypes | a5aacb5298963f50422e252a718ae12b90f5e44f | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2013 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
(* Boxed pointers to C memory locations . *)
module Raw :
sig
include Signed.S
val null : t
end =
struct
include Nativeint
module Infix =
struct
let (+) = ... | 24.941748 | 80 | 0.634099 |
446fed67ba15eafb9c61eda7206f524ec844d98c | 1,449 | ml | OCaml | forth.ml | feihong/parsers | 66ca880cccef5df7aaacb72518a9693311ec7aba | [
"MIT"
] | 3 | 2021-08-24T10:26:38.000Z | 2021-08-31T13:00:00.000Z | forth.ml | feihong/parsers | 66ca880cccef5df7aaacb72518a9693311ec7aba | [
"MIT"
] | null | null | null | forth.ml | feihong/parsers | 66ca880cccef5df7aaacb72518a9693311ec7aba | [
"MIT"
] | null | null | null | type token =
| Word of string
| Int of int
| String of string
let implode chars = chars |> List.map (String.make 1) |> String.concat ""
let make_string chars = String (chars |> List.rev |> implode)
let make_word_or_int chars =
let value = chars |> List.rev |> implode in
match int_of_string_opt value with
... | 28.411765 | 73 | 0.624569 |
4493205ca5d60b24fc6ece555df5bd34840d6455 | 2,393 | ml | OCaml | hphp/hack/src/typing/tast_check/tast_check.ml | umanda/hhvm | 4ae8526da6ac1eb475fa1e021e0207d7c064a4cd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/tast_check.ml | umanda/hhvm | 4ae8526da6ac1eb475fa1e021e0207d7c064a4cd | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/src/typing/tast_check/tast_check.ml | umanda/hhvm | 4ae8526da6ac1eb475fa1e021e0207d7c064a4cd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* 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.
*
*)
[@@@warning "-33"]
open Hh_prelude
[@@@warning "+33"]
let visitor ctx =
let makers =
[Xhp_required_check.ma... | 31.077922 | 79 | 0.681153 |
449c127ba859b28679f2fee21c7334f7eefa2196 | 4,071 | mli | OCaml | dm/base/nodeid.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | dm/base/nodeid.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | dm/base/nodeid.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 31.315385 | 93 | 0.55097 |
44106d3bbdfbdfa0052535d2ac259d6593d9ad3a | 16,042 | mll | OCaml | parser/lexer.mll | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-08-08T16:01:55.000Z | 2020-08-08T16:01:55.000Z | parser/lexer.mll | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 4 | 2022-02-15T02:42:33.000Z | 2022-02-28T01:30:07.000Z | parser/lexer.mll | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-11-22T12:08:51.000Z | 2020-11-22T12:08:51.000Z | (** 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. *)
(* The lexer is heavily based on
https://github.com/jeremybuisson/ocaml-pythonlib/tree/master/src.
"Ported" to menhir and made more co... | 33.144628 | 97 | 0.614013 |
af9040662366dfe2ce96766eaa0c453b6a85c495 | 10,373 | ml | OCaml | char_class/Char_class.ml | joelburget/typed-algebraic-parsing | 9ebc4fc195587c1cfbf15bab658a65a12b4f4dd1 | [
"BSD-3-Clause"
] | 2 | 2022-02-10T02:54:22.000Z | 2022-02-21T15:35:10.000Z | char_class/Char_class.ml | joelburget/typed-algebraic-parsing | 9ebc4fc195587c1cfbf15bab658a65a12b4f4dd1 | [
"BSD-3-Clause"
] | null | null | null | char_class/Char_class.ml | joelburget/typed-algebraic-parsing | 9ebc4fc195587c1cfbf15bab658a65a12b4f4dd1 | [
"BSD-3-Clause"
] | null | null | null | module Interval_set = struct
module Elt = struct
type t = Uchar.t
let compare = Uchar.compare
let pred c =
let open Uchar in
if equal c min then min else pred c
;;
let succ c =
let open Uchar in
if equal c max then min else succ c
;;
let zero = Uchar.min
le... | 23.468326 | 86 | 0.560976 |
8a92c119108261476b4dacce2c7ff216d401da74 | 3,328 | ml | OCaml | lib/preface_make/choice.ml | Sir4ur0n/preface | fc3d9c340d034c960842d3cfec5a0488edc768e1 | [
"MIT"
] | null | null | null | lib/preface_make/choice.ml | Sir4ur0n/preface | fc3d9c340d034c960842d3cfec5a0488edc768e1 | [
"MIT"
] | null | null | null | lib/preface_make/choice.ml | Sir4ur0n/preface | fc3d9c340d034c960842d3cfec5a0488edc768e1 | [
"MIT"
] | null | null | null | open Preface_core.Shims
module Right_via_left
(D : Preface_specs.Profunctor.WITH_DIMAP)
(L : Preface_specs.Choice.WITH_LEFT with type ('a, 'b) t = ('a, 'b) D.t) :
Preface_specs.Choice.WITH_RIGHT with type ('a, 'b) t = ('a, 'b) L.t = struct
type ('a, 'b) t = ('a, 'b) L.t
let right x = D.dimap Either.swap... | 31.102804 | 79 | 0.652945 |
44cc5ac9a181d8cdb2c04d5727e91c80e129f52e | 153 | mll | OCaml | examples/nested-scopes.mll | retran/my-little-lispy | 197d697c169cb19ff4de807279a085a0642ac0f8 | [
"MIT"
] | 1 | 2015-05-26T10:12:25.000Z | 2015-05-26T10:12:25.000Z | examples/nested-scopes.mll | retran/my-little-lispy-experimental | 197d697c169cb19ff4de807279a085a0642ac0f8 | [
"MIT"
] | null | null | null | examples/nested-scopes.mll | retran/my-little-lispy-experimental | 197d697c169cb19ff4de807279a085a0642ac0f8 | [
"MIT"
] | null | null | null | (define (factorial-program)
(define (f value)
(if (< value 2)
1
(* value (f (- value 1)))))
(display-line (f 10)))
(factorial-program)
| 13.909091 | 32 | 0.555556 |
bc1e248a55987c690f970fde5316ebe2a9e26214 | 4,044 | ml | OCaml | piqic/piqic_ocaml.ml | smarkets/piqi | 4ff1485a6606df2eb3b210418b443101e24e4df8 | [
"Apache-2.0"
] | null | null | null | piqic/piqic_ocaml.ml | smarkets/piqi | 4ff1485a6606df2eb3b210418b443101e24e4df8 | [
"Apache-2.0"
] | null | null | null | piqic/piqic_ocaml.ml | smarkets/piqi | 4ff1485a6606df2eb3b210418b443101e24e4df8 | [
"Apache-2.0"
] | null | null | null | (*pp camlp4o -I `ocamlfind query piqi.syntax` pa_labelscope.cmo pa_openin.cmo *)
(*
Copyright 2009, 2010, 2011 Anton Lavrik
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:/... | 23.928994 | 80 | 0.675074 |
4473ae63d0edad0ee5440b109df547403985e9c9 | 11,601 | ml | OCaml | source/new_server/buildSystem.ml | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/new_server/buildSystem.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/new_server/buildSystem.ml | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"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 Base
module Path = Pyre.Path
type t = {
update: Path.t list -> Path.t list Lwt.t;
cleanup: unit -> unit Lwt.t;
lookup_s... | 34.942771 | 100 | 0.647272 |
448bb2e0dd00a4a5f8756d8c472fc3ab9327c3d7 | 1,048 | ml | OCaml | src/lazy.ml | pewulfman/base | 74e760825824ad68d53149cf25a41a9ae0727bc8 | [
"MIT"
] | null | null | null | src/lazy.ml | pewulfman/base | 74e760825824ad68d53149cf25a41a9ae0727bc8 | [
"MIT"
] | null | null | null | src/lazy.ml | pewulfman/base | 74e760825824ad68d53149cf25a41a9ae0727bc8 | [
"MIT"
] | null | null | null | open! Import
include Caml.Lazy
type 'a t = 'a lazy_t [@@deriving_inline sexp, sexp_grammar]
let t_of_sexp : 'a. (Ppx_sexp_conv_lib.Sexp.t -> 'a) -> Ppx_sexp_conv_lib.Sexp.t -> 'a t =
lazy_t_of_sexp
;;
let sexp_of_t : 'a. ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t =
sexp_of_lazy_t
;;
le... | 22.782609 | 90 | 0.677481 |
44af39419c8359d5913ecb452575993403c4ed87 | 20,557 | ml | OCaml | src/lib_p2p_services/peer_metadata.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_p2p_services/peer_metadata.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_p2p_services/peer_metadata.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 31.480858 | 79 | 0.59858 |
440498b5aa1fc097bad42cb4f6c67195f91b99d1 | 24,284 | ml | OCaml | ocaml-sources/testsuite/tests/typing-modules/aliases.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/testsuite/tests/typing-modules/aliases.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/testsuite/tests/typing-modules/aliases.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (* TEST
* expect
*)
module C = Char;;
C.chr 66;;
module C' : module type of Char = C;;
C'.chr 66;;
module C3 = struct include Char end;;
C3.chr 66;;
[%%expect{|
module C = Char
- : char = 'B'
module C' :
sig
external code : char -> int = "%identity"
val chr : int -> char
val escaped : char -> string... | 27.470588 | 78 | 0.558022 |
bc178ea3872b701630edc94b0f069cbe4c6d1b2f | 305 | ml | OCaml | meja/tests/list_constructor_override.ml | mobileink/snarky | af96fa4d4b3c2c86ea2b9b1c9c2e9858c610e683 | [
"MIT"
] | 418 | 2018-03-02T05:08:51.000Z | 2022-03-31T07:29:14.000Z | meja/tests/list_constructor_override.ml | mobileink/snarky | af96fa4d4b3c2c86ea2b9b1c9c2e9858c610e683 | [
"MIT"
] | 174 | 2018-03-02T21:54:45.000Z | 2022-03-10T16:42:24.000Z | meja/tests/list_constructor_override.ml | mobileink/snarky | af96fa4d4b3c2c86ea2b9b1c9c2e9858c610e683 | [
"MIT"
] | 74 | 2018-03-02T01:43:50.000Z | 2022-03-26T13:06:24.000Z | module Impl = Snarky.Snark.Make (Snarky.Backends.Mnt4.Default)
open Impl
type nonrec nil
type 'a t = [] : nil t | ( :: ) : 'hd * 'tl t -> ('hd -> 'tl) t
let x = []
let y = [12]
let z = [1; true; ()]
let z = [1; true; ()]
module A = struct
type nonrec ('a, 'b) u = [] of 'a * 'b
let x = []
end
| 14.52381 | 63 | 0.511475 |
af29140e3bbd4167be524f6db6d4dbbc492e3038 | 1,155 | ml | OCaml | hphp/hack/src/server/serverRefactorTypes.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/server/serverRefactorTypes.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/server/serverRefactorTypes.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (**
* Copyright (c) 2016, 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.
*
*)
type patch =
| Insert of insert_patch
| Remove of Pos.absolute
| Replace of insert_patch
and insert_patch =... | 23.571429 | 66 | 0.669264 |
4496ed2326ab49aaaef10853996508ec659197df | 3,561 | mli | OCaml | ucontrib/CoreCrypto/ml/CoreCrypto.mli | Trundle/js_of_fstar | 1c8a2a1b951cc119dd49d3f5d9817571e17aab51 | [
"Apache-2.0"
] | 1 | 2017-05-14T21:45:17.000Z | 2017-05-14T21:45:17.000Z | ucontrib/CoreCrypto/ml/CoreCrypto.mli | Trundle/js_of_fstar | 1c8a2a1b951cc119dd49d3f5d9817571e17aab51 | [
"Apache-2.0"
] | null | null | null | ucontrib/CoreCrypto/ml/CoreCrypto.mli | Trundle/js_of_fstar | 1c8a2a1b951cc119dd49d3f5d9817571e17aab51 | [
"Apache-2.0"
] | null | null | null | type bytes = Platform.Bytes.bytes
val string_of_bytes : bytes -> string
val bytes_of_string : string -> bytes
type hash_alg = MD5 | SHA1 | SHA224 | SHA256 | SHA384 | SHA512
type sig_alg = RSASIG | DSA | ECDSA | RSAPSS
type block_cipher = AES_128_CBC | AES_256_CBC | TDES_EDE_CBC
type stream_cipher = RC4_128
type rsa_pa... | 28.261905 | 82 | 0.707666 |
44559a2a98227aa99efce9f40487f379d24e71ff | 359 | mli | OCaml | src/monitor/connections/serverConnection.mli | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 2 | 2019-01-31T09:33:15.000Z | 2019-01-31T09:35:08.000Z | src/monitor/connections/serverConnection.mli | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | null | null | null | src/monitor/connections/serverConnection.mli | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 2 | 2021-02-02T14:51:26.000Z | 2021-02-02T14:52:05.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.
*)
include FlowServerMonitorConnection.CONNECTION
with type in_message := MonitorProt.server_to_monitor_message
and type out_message :=... | 32.636364 | 66 | 0.78273 |
44fabfe3b19a22110b97a48d2b97051f4c956521 | 7,527 | mli | OCaml | src/ocaml-3.12.0/stdlib/int64.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/stdlib/int64.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/stdlib/int64.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 40.251337 | 79 | 0.639166 |
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.