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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3a9fac725e0229c831c806a536efd0e498a8459 | 872 | ml | OCaml | libraries/s3/lib/deleteBucket.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/deleteBucket.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/deleteBucket.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteBucketRequest.t
type output = unit
type error = Errors_internal.t
let service = "s3"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
[ "Version",... | 23.567568 | 86 | 0.634174 |
8a79d7e702997309c25593341af61ef5273a25a6 | 969 | ml | OCaml | libraries/autoscaling/lib/deleteScheduledAction.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/autoscaling/lib/deleteScheduledAction.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/autoscaling/lib/deleteScheduledAction.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
open Aws
type input = DeleteScheduledActionType.t
type output = unit
type error = Errors_internal.t
let service = "autoscaling"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.... | 32.3 | 79 | 0.642931 |
8aa485f9a5053601e0f67344f6726716186fc1a0 | 2,251 | ml | OCaml | parser/char.ml | Amaoto17/camlsh | eb47499fea81c109715a58cb5507d498a9b1b074 | [
"MIT"
] | null | null | null | parser/char.ml | Amaoto17/camlsh | eb47499fea81c109715a58cb5507d498a9b1b074 | [
"MIT"
] | null | null | null | parser/char.ml | Amaoto17/camlsh | eb47499fea81c109715a58cb5507d498a9b1b074 | [
"MIT"
] | null | null | null | open Internal
module type S = sig
include Prim.S
val char : char -> char t
val insensitive_char : char -> char t
val digit : char t
val letter : char t
val upper : char t
val lower : char t
val alpha_num : char t
val in_class : string -> char t
val not_in_class : string -> char t
val concat : ch... | 20.463636 | 60 | 0.547312 |
8a6d51e9d54d032586c790186aefb61ddc3122d6 | 142 | mli | OCaml | src/codegen_rules.mli | stevejb71/c-compiler | 9d38f15ef84aa0280286b90759a4bfdb744b5a0d | [
"MIT"
] | 1 | 2018-08-10T15:11:55.000Z | 2018-08-10T15:11:55.000Z | src/codegen_rules.mli | stevejb71/c-compiler | 9d38f15ef84aa0280286b90759a4bfdb744b5a0d | [
"MIT"
] | null | null | null | src/codegen_rules.mli | stevejb71/c-compiler | 9d38f15ef84aa0280286b90759a4bfdb744b5a0d | [
"MIT"
] | null | null | null | open Ast
(* For the main functon, generate a return at the end even if none has been written *)
val generate_return: Ast.fundef -> Ast.fundef | 35.5 | 86 | 0.753521 |
8ab33742fa2a3f2cb7cdf52f53262fe691c2bf01 | 10,530 | ml | OCaml | hphp/hack/src/hhbc/emit_xhp.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_xhp.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_xhp.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
module A = Ast_defs
module SU = Hhbc_string_utils
module T = Aast
let p = Pos.none
let get_array3... | 31.716867 | 98 | 0.636277 |
f35b3a74d9c753af69e6059509bb1118c82b3a3b | 563 | ml | OCaml | benchmarks/C/lambda/sol660.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/lambda/sol660.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/lambda/sol660.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type lambda =
| V of var
| P of var * lambda
| C of lambda * lambda
and var = string
type t = var list
let empty = []
let rec find bvar x =
match bvar with
|[]-> false
|hd::tl -> if hd = x then true else find tl x
let check : lambda -> bool
= fun lam ->
let rec my_check bvar lamb =
match lam... | 21.653846 | 80 | 0.573712 |
8a5e324ddd49bc73f7e8519cbba0bd14db7e6d8c | 4,389 | ml | OCaml | ast_convenience_403.ml | let-def/ppx_tools | 00a0150cdabfa7f0dad2c5e0e6b32230d22295ca | [
"MIT"
] | 13 | 2017-08-18T14:31:59.000Z | 2020-07-16T02:38:52.000Z | ast_convenience_403.ml | let-def/ppx_tools | 00a0150cdabfa7f0dad2c5e0e6b32230d22295ca | [
"MIT"
] | 26 | 2017-12-25T02:40:38.000Z | 2021-09-16T15:59:11.000Z | ast_convenience_403.ml | let-def/ppx_tools | 00a0150cdabfa7f0dad2c5e0e6b32230d22295ca | [
"MIT"
] | 12 | 2017-09-18T05:06:27.000Z | 2021-12-12T19:18:57.000Z | open Migrate_parsetree.Ast_403
(* This file is part of the ppx_tools package. It is released *)
(* under the terms of the MIT license (see LICENSE file). *)
(* Copyright 2013 Alain Frisch and LexiFi *)
open Parsetree
open Asttypes
open Location
open Ast_helper
module Label = struct
... | 35.682927 | 112 | 0.653907 |
af76020ab6cb9ecaf9694a2a65acbbfd963cd4ba | 31,269 | ml | OCaml | examples/cvode/serial/cvDiurnal_kry_alt.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 24 | 2015-02-14T17:16:38.000Z | 2021-12-23T16:02:13.000Z | examples/cvode/serial/cvDiurnal_kry_alt.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 10 | 2016-03-20T22:14:49.000Z | 2022-03-16T09:54:31.000Z | examples/cvode/serial/cvDiurnal_kry_alt.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 5 | 2015-04-14T14:21:54.000Z | 2022-03-10T16:14:55.000Z | (*
* -----------------------------------------------------------------
* $Revision: 1.3 $
* $Date: 2009/02/17 02:48:46 $
* -----------------------------------------------------------------
* Programmer(s): Scott D. Cohen, Alan C. Hindmarsh and
* Radu Serban @ LLNL
* -------------------------------... | 34.589602 | 91 | 0.544405 |
afc72ae874effed2c560be01aed6e9887baf6e8f | 981 | mli | OCaml | hphp/hack/src/typing/typing_array_access.mli | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_array_access.mli | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_array_access.mli | 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.
*
*)
open Aast
open Typing_defs
val array_get :
array_pos:pos ->
expr_pos:pos ->
?lhs_of_null_coalesce:is_variadic ->
is_v... | 21.8 | 66 | 0.690112 |
8a65f6b1ba3bb863b3dfa29a912774f76c6c56b2 | 154 | mli | OCaml | lib/scheduler.mli | anuragsoni/async_libuv | 1077ef7751e2adb3d3e3231e81a0c35c53231250 | [
"MIT"
] | 8 | 2021-08-02T02:54:07.000Z | 2022-02-08T21:52:04.000Z | lib/scheduler.mli | anuragsoni/async_libuv | 1077ef7751e2adb3d3e3231e81a0c35c53231250 | [
"MIT"
] | null | null | null | lib/scheduler.mli | anuragsoni/async_libuv | 1077ef7751e2adb3d3e3231e81a0c35c53231250 | [
"MIT"
] | null | null | null | type t [@@deriving sexp_of]
include module type of struct
include Async_kernel.Async_kernel_scheduler
end
val run : unit -> Core_kernel.never_returns
| 19.25 | 45 | 0.798701 |
8aa593f7c2e5702b93be2b12b330255c314422b5 | 1,124 | mli | OCaml | test/preface_qcheck/printer.mli | Sir4ur0n/preface | fc3d9c340d034c960842d3cfec5a0488edc768e1 | [
"MIT"
] | null | null | null | test/preface_qcheck/printer.mli | Sir4ur0n/preface | fc3d9c340d034c960842d3cfec5a0488edc768e1 | [
"MIT"
] | null | null | null | test/preface_qcheck/printer.mli | Sir4ur0n/preface | fc3d9c340d034c960842d3cfec5a0488edc768e1 | [
"MIT"
] | null | null | null | (** Extension of QCheck.Print with additional printer *)
(** {2 Types} *)
type 'a t = 'a QCheck.Print.t
(** {2 Additional Printers} *)
val identity : 'a t -> 'a Preface_stdlib.Identity.t t
(** Printer for [Identity.t]. *)
val either : 'a t -> 'b t -> ('a, 'b) Preface_stdlib.Either.t t
(** Printer for [Either.t]. *... | 26.761905 | 71 | 0.628114 |
af52531d2d7435d91cc88e146f0abd6478641cdc | 1,888 | ml | OCaml | lib/gpu/lcd_stat.ml | smorimoto/CAMLBOY | 0bb0beff0337e17a6450c3b9c8b3f1be7416c0b2 | [
"MIT"
] | 358 | 2021-11-23T23:21:24.000Z | 2022-03-31T02:54:28.000Z | lib/gpu/lcd_stat.ml | smorimoto/CAMLBOY | 0bb0beff0337e17a6450c3b9c8b3f1be7416c0b2 | [
"MIT"
] | 1 | 2021-12-11T16:57:45.000Z | 2021-12-11T17:04:57.000Z | lib/gpu/lcd_stat.ml | smorimoto/CAMLBOY | 0bb0beff0337e17a6450c3b9c8b3f1be7416c0b2 | [
"MIT"
] | 17 | 2021-11-24T00:35:03.000Z | 2022-03-31T03:07:35.000Z | open Uints
type t = {
addr : uint16;
mutable lyc_eq_ly_int_enabled : bool;
mutable oam_int_enabled : bool;
mutable vblank_int_enabled : bool;
mutable hblank_int_enabled : bool;
mutable lyc_eq_ly_flag : bool;
mutable gpu_mode : Gpu_mode.t;
}
type stat_interupt_source =
|... | 24.842105 | 72 | 0.650424 |
affbd26e588570462a27063eeea6db5b06142671 | 149 | mli | OCaml | src/common/span.mli | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | 2 | 2015-07-28T23:53:32.000Z | 2015-07-31T15:17:21.000Z | src/common/span.mli | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | null | null | null | src/common/span.mli | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | null | null | null | val make_span:
Loc.position ->
Loc.position ->
Loc.t
val string_of_span: Loc.t -> string
module SpanMap : Utils.MapSig with type key = Loc.t
| 16.555556 | 51 | 0.697987 |
8a7d4a59b68574ae6bdf136ff45ca954e95bab2b | 2,155 | mli | OCaml | src/proto_alpha/lib_protocol/vote_repr.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/vote_repr.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/vote_repr.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 4 | 2021-04-27T15:00:34.000Z | 2021-09-26T21:50:01.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 63.382353 | 79 | 0.495128 |
8a7569200cb66998abe1cb18505f3463a3216a3f | 3,461 | ml | OCaml | ocaml-sources/otherlibs/systhreads/thread.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/otherlibs/systhreads/thread.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/otherlibs/systhreads/thread.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier ... | 35.680412 | 77 | 0.548974 |
8a6a0bdffc2b4a9dc61e565acd8aa0eaa15206e6 | 7,145 | ml | OCaml | source/ast/test/referenceTest.ml | joshkehn/pyre-check | 922b62e78e4990d8d268bb2ebde5912ceea9e226 | [
"MIT"
] | null | null | null | source/ast/test/referenceTest.ml | joshkehn/pyre-check | 922b62e78e4990d8d268bb2ebde5912ceea9e226 | [
"MIT"
] | null | null | null | source/ast/test/referenceTest.ml | joshkehn/pyre-check | 922b62e78e4990d8d268bb2ebde5912ceea9e226 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open OUnit2
open Ast
open Pyre
open Test
let node = Node.create_with_default_location
let test_create _ =
let asser... | 32.040359 | 100 | 0.646886 |
afc51623fae82812288f67a4b0263eac05b938be | 2,299 | ml | OCaml | 2018-2019/Zima/Programowanie Funkcyjne/Lista05/zad1.ml | ldept/University | f5ec29dd1daa1c9dc2d1592c0ddab575146e80ee | [
"FTL"
] | null | null | null | 2018-2019/Zima/Programowanie Funkcyjne/Lista05/zad1.ml | ldept/University | f5ec29dd1daa1c9dc2d1592c0ddab575146e80ee | [
"FTL"
] | null | null | null | 2018-2019/Zima/Programowanie Funkcyjne/Lista05/zad1.ml | ldept/University | f5ec29dd1daa1c9dc2d1592c0ddab575146e80ee | [
"FTL"
] | null | null | null | type 'a llist = LNil | LCons of 'a * (unit -> 'a llist)
let lhd = function
LNil -> failwith "lhd"
| LCons (x,_) -> x
let ltl = function
LNil -> failwith "ltl"
| LCons (_,xs) -> xs()
let rec ltake = function
(0,_) -> []
| (_,LNil) -> []
| (n,LCons(x,xs)) -> x::ltake(n-1,xs())
let pi_l =
let ... | 26.732558 | 103 | 0.476294 |
af984f10e704f65d81ddd4b8ab5972898baa360d | 301 | mli | OCaml | hphp/hack/src/typing/nast_check/nast_check.mli | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/typing/nast_check/nast_check.mli | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/typing/nast_check/nast_check.mli | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* 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.
*
*)
val program : Provider_context.t -> Nast.program -> unit
val def : Provider_context.t -> Nast.def -> unit
| 25.083333 | 66 | 0.697674 |
af5963e57d4e14233d5cbd70ef5d9ef947f28607 | 17,123 | ml | OCaml | test/test.ml | hannesm/digestif | ae4fc80ef00e93b586c3243cd3fe0a7c4c2981f6 | [
"MIT"
] | null | null | null | test/test.ml | hannesm/digestif | ae4fc80ef00e93b586c3243cd3fe0a7c4c2981f6 | [
"MIT"
] | null | null | null | test/test.ml | hannesm/digestif | ae4fc80ef00e93b586c3243cd3fe0a7c4c2981f6 | [
"MIT"
] | null | null | null | let () = Printexc.record_backtrace true
type _ s = Bytes : Bytes.t s | String : String.t s | Bigstring : bigstring s
and bigstring =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
let title : type a k. [`HMAC | `Digest] -> k Digestif.hash -> a s -> string =
fun computation hash input ->
... | 38.135857 | 134 | 0.677218 |
afe755a63b733c7bde6c96e6e5e6eea989bcf827 | 10,031 | ml | OCaml | x86/proofs/bignum_littleendian_6.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 33 | 2021-03-11T16:12:01.000Z | 2022-03-06T17:01:18.000Z | x86/proofs/bignum_littleendian_6.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 8 | 2021-09-06T12:58:47.000Z | 2022-01-03T16:43:09.000Z | x86/proofs/bignum_littleendian_6.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 4 | 2021-03-11T19:28:16.000Z | 2021-12-12T23:40:44.000Z | (*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "LICENSE" file ... | 48.931707 | 86 | 0.5806 |
8a36b5522c247b4b7d8b0434eea7d047d6d0c645 | 686 | ml | OCaml | programs/Variant_Initialisation/variant.ml | vijay-jaisankar/learning-ocaml | 336b9f00e52d674292a9ef586e6ce97e6eac18a4 | [
"MIT"
] | null | null | null | programs/Variant_Initialisation/variant.ml | vijay-jaisankar/learning-ocaml | 336b9f00e52d674292a9ef586e6ce97e6eac18a4 | [
"MIT"
] | 1 | 2022-02-27T20:45:01.000Z | 2022-02-27T20:45:01.000Z | programs/Variant_Initialisation/variant.ml | vijay-jaisankar/learning-ocaml | 336b9f00e52d674292a9ef586e6ce97e6eac18a4 | [
"MIT"
] | null | null | null | type mylist =
Empty
| NonEmpty of int * mylist
let l1 = NonEmpty(1, NonEmpty(2, Empty))
(* implement length and nth functions that take mylist type as input and return the
appropriate values. *)
type weekdays =
Sunday
| Monday
| Tuesday
| Wednesday
| Thursday
| Friday
| Saturday
let string_o... | 18.052632 | 83 | 0.623907 |
8a5e2ad5bea4f51a4d16e51786ff2a5332ccb084 | 9,570 | ml | OCaml | src/prometheus.ml | georgeee/prometheus | 9b4243521f2e74cb589d58ca053f0d8173fba21f | [
"Apache-2.0"
] | null | null | null | src/prometheus.ml | georgeee/prometheus | 9b4243521f2e74cb589d58ca053f0d8173fba21f | [
"Apache-2.0"
] | null | null | null | src/prometheus.ml | georgeee/prometheus | 9b4243521f2e74cb589d58ca053f0d8173fba21f | [
"Apache-2.0"
] | null | null | null | open! Astring
open! Asetmap
module type NAME_SPEC = sig
val valid : Re.re
end
module type NAME = sig
type t = private string
val v : string -> t
val pp : t Fmt.t
val compare : t -> t -> int
end
module Name(N : NAME_SPEC) : NAME = struct
type t = string
let v name =
if not (Re.execp N.valid name) t... | 25.25066 | 150 | 0.615883 |
8a55f84a1ed704c7a0ccccddab3ff0f2369c0464 | 8,044 | ml | OCaml | duniverse/core_kernel/src/time_ns_intf.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/src/time_ns_intf.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/src/time_ns_intf.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open! Import
open Std_internal
module type Span = sig
(** [t] is immediate on 64bit boxes and so plays nicely with the GC write barrier. *)
type t = private Int63.t [@@deriving hash]
include Span_intf.S with type underlying = Int63.t and type t := t
val of_sec_with_microsecond_precision : float -> t
val of... | 31.545098 | 89 | 0.668573 |
8a0117ea4503895d9c864b148193480cf0f9a5e9 | 1,034 | mly | OCaml | code/parsing/quadratic_rule.mly | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 328 | 2015-01-08T13:55:08.000Z | 2022-03-11T12:56:04.000Z | code/parsing/quadratic_rule.mly | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 17 | 2015-01-04T00:26:01.000Z | 2018-05-31T08:16:44.000Z | code/parsing/quadratic_rule.mly | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 83 | 2015-01-21T15:07:56.000Z | 2022-03-11T12:56:08.000Z | %token <int> INT
%token <float> FLOAT
%token <string> ID
%token <string> STRING
%token TRUE
%token FALSE
%token NULL
%token LEFT_BRACE
%token RIGHT_BRACE
%token LEFT_BRACK
%token RIGHT_BRACK
%token COLON
%token COMMA
%token EOF
(* part 1 *)
%start <Json.value option> prog
%%
(* part 2 *)
prog:
| EOF { None }
... | 16.15625 | 56 | 0.55029 |
8a8f0f496dde005ebfef8361aa7a4f8b612fad38 | 12,627 | ml | OCaml | src/hostnet/forward.ml | tiborvass/vpnkit | 7d18ec48982340f49461379d718a4538f3090e13 | [
"Apache-2.0"
] | null | null | null | src/hostnet/forward.ml | tiborvass/vpnkit | 7d18ec48982340f49461379d718a4538f3090e13 | [
"Apache-2.0"
] | null | null | null | src/hostnet/forward.ml | tiborvass/vpnkit | 7d18ec48982340f49461379d718a4538f3090e13 | [
"Apache-2.0"
] | null | null | null | open Lwt.Infix
let src =
let src =
Logs.Src.create "port forward" ~doc:"forward local ports to the VM"
in
Logs.Src.set_level src (Some Logs.Info);
src
module Log = (val Logs.src_log src : Logs.LOG)
let log_exception_continue description f =
Lwt.catch
(fun () -> f ())
(fun e ->
Log.err (f... | 35.27095 | 142 | 0.570286 |
8a4326fc59b2eccf25b284056398e251d475a37a | 5,605 | ml | OCaml | hphp/hack/test/unit/utils/diagnostic_subscription_test.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/test/unit/utils/diagnostic_subscription_test.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/utils/diagnostic_subscription_test.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | open Hh_core
open Reordered_argument_collections
module DS = Diagnostic_subscription
let errors_to_string buf x =
List.iter x ~f:(fun error ->
Printf.bprintf buf "%s\n" (Errors.to_string error))
let diagnostics_to_string x =
let buf = Buffer.create 1024 in
SMap.iter x ~f:(fun path errors ->
Printf.b... | 27.47549 | 78 | 0.682783 |
8aa2f749858e52257f2287485016eae1ab423d76 | 737 | ml | OCaml | 2017/15/b.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | 2 | 2022-01-04T23:09:54.000Z | 2022-01-26T08:57:20.000Z | 2017/15/b.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | 2017/15/b.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | open! Core
let modulo = 2147483647
let a_factor = 16807
let b_factor = 48271
let () =
let input =
In_channel.with_file (Sys.get_argv ()).(1) ~f:In_channel.input_lines
|> List.map ~f:(fun line -> String.subo line ~pos:24 |> Int.of_string)
in
let count = ref 0 in
match input with
| [ a; b ] ->
let... | 23.774194 | 74 | 0.541384 |
affaf850f2328f1a2e962191240fb315fe648d44 | 151 | ml | OCaml | data/derived/comb/progs/unify/prog8471.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/prog3685.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3685.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let explode s =
let rec go i =
if i >= (String.length s) then [] else (s.[i]) :: (go (i + 1)) in
go 0;;
let palindrome w = (explode w) = w;;
| 18.875 | 69 | 0.516556 |
afa9d9989e974c570e6a18dc404693ba6588c160 | 825 | ml | OCaml | infer/src/unit/inferunit.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/unit/inferunit.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/unit/inferunit.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! Util... | 25.78125 | 78 | 0.718788 |
afe0e2b06de990c4a7c3705d13d97385d93704e8 | 89,672 | ml | OCaml | trained/NYSE-MS-day-2014-07-30-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-07-30-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-07-30-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | 2 | 2020-05-03T11:14:09.000Z | 2021-11-18T10:26:30.000Z | [BASIC]
[BASIC:PARAMS]
[BASIC:NETWORK]
beginTraining=0
connectionLimit=0
contextTargetOffset=0,0,0
contextTargetSize=0,0,0
endTraining=2
hasContext=f
inputCount=180
layerCounts=4,37,181
layerFeedCounts=4,36,180
layerContextCount=0,0,0
layerIndex=0,4,41
output=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | 2,989.066667 | 27,268 | 0.817044 |
8abacb03b7c9cb164716a0e9c73cc7bc5a90411d | 2,071 | ml | OCaml | hphp/hack/src/globals/autocomplete.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-01-27T10:11:42.000Z | 2022-01-27T10:11:42.000Z | hphp/hack/src/globals/autocomplete.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/globals/autocomplete.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-03-24T20:14:38.000Z | 2021-03-24T20:14:38.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.
*
*)
open Utils
ty... | 29.585714 | 83 | 0.537904 |
8a3eb32ca51547ffc5555f94633da0730fe7c89a | 3,390 | ml | OCaml | src_top/platform.ml | bauereiss/rmem | 2883d4f5ddb4869fc6ccb1eb1d629bdefff34459 | [
"BSD-2-Clause"
] | null | null | null | src_top/platform.ml | bauereiss/rmem | 2883d4f5ddb4869fc6ccb1eb1d629bdefff34459 | [
"BSD-2-Clause"
] | null | null | null | src_top/platform.ml | bauereiss/rmem | 2883d4f5ddb4869fc6ccb1eb1d629bdefff34459 | [
"BSD-2-Clause"
] | null | null | null | (*===============================================================================*)
(* *)
(* rmem executable model *)
(* ===================== ... | 52.96875 | 197 | 0.554277 |
8a721056db0ca8f26456123632937c7f392a51a3 | 1,224 | ml | OCaml | data/fa15/0434.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/0434.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/0434.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 res = f b in
match res with | (x,y) when y = true -> wwhile (f, x) | (x,y) -> x;;
let fixpoint (f,b) =
let rec funt x = ((funt f b), ((f b) = b)) in wwhile (funt, b);;
(* fix
let rec wwhile (f,b) =
let res = f b in
match res with | (x,y) when y = true -> wwhile (f, x) | (x,y) -... | 14.746988 | 70 | 0.455065 |
affe9b0d5638642431c78aee25f1a2a342df6d3a | 15,104 | ml | OCaml | src/asn_ber_der.ml | hannesm/ocaml-asn1-combinators | c95304fc87bea8b0d9c1882aef97019bb75a5da7 | [
"0BSD"
] | null | null | null | src/asn_ber_der.ml | hannesm/ocaml-asn1-combinators | c95304fc87bea8b0d9c1882aef97019bb75a5da7 | [
"0BSD"
] | null | null | null | src/asn_ber_der.ml | hannesm/ocaml-asn1-combinators | c95304fc87bea8b0d9c1882aef97019bb75a5da7 | [
"0BSD"
] | null | null | null | (* Copyright (c) 2014-2016 David Kaloper Meršinjak. All rights reserved.
See LICENSE.md. *)
open Asn_core
module Prim = Asn_prim
module Writer = Asn_writer
module Int64 = Prim.Int64
let (@?) oa a = match oa with Some x -> x | None -> a
module Seq = struct
type 'r f = { f : 'a. 'a -> 'a asn -> 'r -> 'r }
... | 33.195604 | 87 | 0.53317 |
8a638c18a5171c5353fc769bd1ace0a82e5371eb | 9,037 | ml | OCaml | src/ppx_irmin/lib/algebraic.ml | ani003/irmin | 2a54f2c871e0a413b32371818c453be6d67733bf | [
"ISC"
] | null | null | null | src/ppx_irmin/lib/algebraic.ml | ani003/irmin | 2a54f2c871e0a413b32371818c453be6d67733bf | [
"ISC"
] | null | null | null | src/ppx_irmin/lib/algebraic.ml | ani003/irmin | 2a54f2c871e0a413b32371818c453be6d67733bf | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2019-2020 Craig Ferguson <me@craigfe.io>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 31.597902 | 93 | 0.616576 |
8a9c23108f11cd5ee4b5d91114128d27892de6d1 | 94 | ml | OCaml | tests/typing-misc/printing.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | 1 | 2016-05-17T14:29:13.000Z | 2016-05-17T14:29:13.000Z | tests/typing-misc/printing.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | tests/typing-misc/printing.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | (* PR#7012 *)
type t = [ 'A_name | `Hi ];;
let f (x:'id_arg) = x;;
let f (x:'Id_arg) = x;;
| 11.75 | 28 | 0.457447 |
8a522f95c09b768d229eb240debe4efbf1c5ad77 | 68,909 | ml | OCaml | src/ocaml/typing/405/typeclass.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | src/ocaml/typing/405/typeclass.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | src/ocaml/typing/405/typeclass.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 35.815489 | 80 | 0.612358 |
8a2f8ba295e74ab44ffc281daa958f6abe59dd2e | 7,106 | mli | OCaml | vendor/async_kernel/src/deferred.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/async_kernel/src/deferred.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/async_kernel/src/deferred.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | (** A value that will become determined asynchronously.
A deferred can be "undetermined" or "determined". A deferred that is undetermined may
at some point become determined with value v, and will henceforth always be determined
with value v. *)
open! Core_kernel
open! Import
type +'a t = 'a Deferred1.t... | 35.178218 | 90 | 0.659583 |
8aa2151f3f9a9abf3d88bcb87434c46e7a68d74c | 921 | ml | OCaml | libraries/ec2/lib/associateDhcpOptions.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/associateDhcpOptions.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/associateDhcpOptions.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = AssociateDhcpOptionsRequest.t
type output = unit
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)))
(List.append
... | 30.7 | 78 | 0.625407 |
8aa482d455e110b6386bdfcb621bb8b70ed595a5 | 1,623 | ml | OCaml | src/parser/pattern_cover.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | 46 | 2017-07-04T03:36:29.000Z | 2022-02-06T00:49:01.000Z | src/parser/pattern_cover.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | 6 | 2018-08-02T19:13:09.000Z | 2020-01-31T00:43:37.000Z | src/parser/pattern_cover.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | 6 | 2018-08-02T08:26:30.000Z | 2021-02-06T11:14:16.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Ast
open Parser_common
open Parser_env
module type COVER = sig
val as_expression : env -> pattern_cover -> Loc.t Expression.t
... | 29.509091 | 80 | 0.677141 |
8ac37a77c1e9d8aa214acaafb1352e96d03e3037 | 1,807 | ml | OCaml | src/lib/coda_base/sync_ledger.ml | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/lib/coda_base/sync_ledger.ml | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/sync_ledger.ml | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
module Hash = struct
include Ledger_hash.Stable.V1
let to_string = Ledger_hash.to_string
let merge = Ledger_hash.merge
let hash_account = Fn.compose Ledger_hash.of_digest Account.digest
let empty_account = hash_account Account.empty
end
module Root_hash = struct
include Ledger_hash
... | 21.511905 | 74 | 0.706143 |
8aa7389bb627c7f574ad62c66371900325b660fc | 1,171 | ml | OCaml | mirage/example2/unikernel.ml | torinnd/ocaml-tls | 1b15ef5083d9b89785bdc929a2eecdc5b45b887d | [
"BSD-2-Clause"
] | 214 | 2015-01-06T12:04:34.000Z | 2022-01-19T05:37:38.000Z | mirage/example2/unikernel.ml | torinnd/ocaml-tls | 1b15ef5083d9b89785bdc929a2eecdc5b45b887d | [
"BSD-2-Clause"
] | 137 | 2015-01-05T10:17:44.000Z | 2022-03-29T19:59:52.000Z | mirage/example2/unikernel.ml | torinnd/ocaml-tls | 1b15ef5083d9b89785bdc929a2eecdc5b45b887d | [
"BSD-2-Clause"
] | 55 | 2015-01-05T21:04:25.000Z | 2022-03-29T18:49:31.000Z | open Lwt.Infix
module Main (S : Mirage_stack.V4)
(KV : Mirage_kv.RO)
(CL : Mirage_clock.PCLOCK) =
struct
module TLS = Tls_mirage.Make (S.TCPV4)
module X509 = Tls_mirage.X509 (KV) (CL)
module Http = Cohttp_mirage.Server (TLS)
module Body = Cohttp_lwt.Body
let callback _conn req bo... | 27.880952 | 67 | 0.59778 |
8ab2c8273b1f766cd0212e64bb57f41798a53629 | 107,428 | ml | OCaml | src/ocaml-output/FStar_Extraction_ML_Modul.ml | Theodus/FStar | fda96d0883df71e585671a4f992760aac5b27a09 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Extraction_ML_Modul.ml | Theodus/FStar | fda96d0883df71e585671a4f992760aac5b27a09 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Extraction_ML_Modul.ml | Theodus/FStar | fda96d0883df71e585671a4f992760aac5b27a09 | [
"Apache-2.0"
] | null | null | null | open Prims
type env_t = FStar_Extraction_ML_UEnv.uenv
let (fail_exp :
FStar_Ident.lident ->
FStar_Syntax_Syntax.typ ->
FStar_Syntax_Syntax.term' FStar_Syntax_Syntax.syntax)
=
fun lid ->
fun t ->
let uu____25 =
let uu____32 =
let uu____33 =
let uu____50 =
... | 46.405184 | 116 | 0.485358 |
8a1e891c4b9822bb47c90527d00f6f580fb76a4c | 2,860 | ml | OCaml | benchmarks/I/diff/sub128.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/I/diff/sub128.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/I/diff/sub128.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (* problem 4*)
type aexp =
| Const of int
| Var of string
| Power of string * int
| Times of aexp list
| Sum of aexp list
let rec chuchul lst x=
match lst with
[]-> []
|hd::tl-> if hd = x then chuchul tl x
else hd::chuchul tl x
let rec diff2
= fun (e,x) count sumcount ls->
match e with
Times lst ->
... | 36.666667 | 206 | 0.546853 |
af7dd8acf2e7dd29e20d3551ae0beeedd1eb17b6 | 8,548 | ml | OCaml | examples/iperf_self/iperf_self.ml | hannesm/mirage-vnetif | 7e0eab456a5c23c131430190f3162e169d1ad5d8 | [
"ISC"
] | null | null | null | examples/iperf_self/iperf_self.ml | hannesm/mirage-vnetif | 7e0eab456a5c23c131430190f3162e169d1ad5d8 | [
"ISC"
] | null | null | null | examples/iperf_self/iperf_self.ml | hannesm/mirage-vnetif | 7e0eab456a5c23c131430190f3162e169d1ad5d8 | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2011 Richard Mortier <mort@cantab.net>
* Copyright (c) 2012 Balraj Singh <balraj.singh@cl.cam.ac.uk>
* Copyright (c) 2015 Magnus Skjegstad <magnus@skjegstad.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided t... | 46.967033 | 1,474 | 0.684488 |
afa18e878773e0295273bbe6d5de5dd3f12f6509 | 2,094 | ml | OCaml | data/sp14_min/0358.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14_min/0358.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0358.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2)
else (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2));;
let rec removeZero l =
match l with | [] -> [] |... | 25.536585 | 95 | 0.527698 |
8a9071e727ab18451872023ea6c164736737978a | 3,124 | ml | OCaml | data/fa15/2437.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2437.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2437.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 > 0 then x :: (clone x (n - 1)) else [];;
let padZero l1 l2 =
let x = List.length l1 in
let y = List.length l2 in
if x = y
then (l1, l2)
else
if x < y
then (((clone 0 (y - x)) @ l1), l2)
else (l1, ((clone 0 (x - y)) @ l2));;
let rec removeZero l =
match l with | [] ->... | 17.452514 | 74 | 0.49904 |
8aa13431c940a48dc62c97efcf542eda38f16cc0 | 1,837 | ml | OCaml | libraries/cloudtrail/lib/getEventSelectors.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudtrail/lib/getEventSelectors.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/cloudtrail/lib/getEventSelectors.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = GetEventSelectorsRequest.t
type output = GetEventSelectorsResponse.t
type error = Errors_internal.t
let service = "cloudtrail"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_exn (... | 31.135593 | 99 | 0.578661 |
8a64fab9ae2274d820f8b520dcde78e176646836 | 6,608 | mli | OCaml | src/lib_p2p/p2p_point_state.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_p2p/p2p_point_state.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_p2p/p2p_point_state.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 38.196532 | 79 | 0.628481 |
8a31d39d7b2d7c2e0d86d999c67c757b5099482a | 3,826 | ml | OCaml | hphp/hack/src/typing/typing_decl_service.ml | edwinsmith/hhvm-armjit | 486a041a0dfe25c5d6a9a06bab657ab2cb5aa8ea | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2015-07-28T23:53:32.000Z | 2015-07-31T15:17:21.000Z | hphp/hack/src/typing/typing_decl_service.ml | edwinsmith/hhvm-armjit | 486a041a0dfe25c5d6a9a06bab657ab2cb5aa8ea | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_decl_service.ml | edwinsmith/hhvm-armjit | 486a041a0dfe25c5d6a9a06bab657ab2cb5aa8ea | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(***********... | 35.757009 | 80 | 0.497125 |
8a84457cfc44c46373a4c4ca49aa54077fe0c193 | 1,504 | ml | OCaml | main.ml | BFarinier/levelgen | dbb3fca48faa2f6dbffd7b9a90c07846ef01c5ef | [
"MIT"
] | null | null | null | main.ml | BFarinier/levelgen | dbb3fca48faa2f6dbffd7b9a90c07846ef01c5ef | [
"MIT"
] | null | null | null | main.ml | BFarinier/levelgen | dbb3fca48faa2f6dbffd7b9a90c07846ef01c5ef | [
"MIT"
] | null | null | null | open Gg
open Graphics
open Level
let rec sleep t =
if t > 0. then
let now = Unix.gettimeofday () in
(try ignore (Unix.select [] [] [] t) with
| _ -> ());
sleep (t -. ((Unix.gettimeofday ()) -. now))
let ( >> ) v f =
let x,y = V2.to_tuple v in
f (truncate x) (truncate y)
let print_segment col... | 20.053333 | 66 | 0.579787 |
8a1eeafedddaac78f0b29451cb629a39cba9de31 | 24,637 | ml | OCaml | routing/Util.ml | ylxdzsw/TEexp | dbd219016873ae4281194c1ec7e1854f6277d797 | [
"BSD-3-Clause-Attribution",
"AFL-1.1"
] | 2 | 2019-08-31T01:04:45.000Z | 2021-06-17T09:01:58.000Z | routing/Util.ml | ylxdzsw/TEexp | dbd219016873ae4281194c1ec7e1854f6277d797 | [
"BSD-3-Clause-Attribution",
"AFL-1.1"
] | null | null | null | routing/Util.ml | ylxdzsw/TEexp | dbd219016873ae4281194c1ec7e1854f6277d797 | [
"BSD-3-Clause-Attribution",
"AFL-1.1"
] | 2 | 2020-01-08T09:21:21.000Z | 2022-01-03T13:00:09.000Z | open Core
open Yates_Types
let reverse_edge_exn topo e = match Topology.inverse_edge topo e with
| Some x -> x
| None -> assert false
let intercalate f s = function
| [] ->
""
| h::t ->
List.fold_left t ~f:(fun acc x -> acc ^ s ^ f x) ~init:(f h)
let dump_edges (t:topology) (es:pat... | 37.442249 | 98 | 0.608434 |
aff43555d4a4752cbdd7e6edcffc35a0b8b8a4be | 168,595 | ml | OCaml | src/gen-ocaml/Cassandra.ml | mfp/ocaml-cassandra | 726d46b5e3971c7d9cfbb880b126bf87ab1ffc89 | [
"MIT"
] | 3 | 2015-11-05T01:22:57.000Z | 2016-11-20T19:27:26.000Z | src/gen-ocaml/Cassandra.ml | mfp/ocaml-cassandra | 726d46b5e3971c7d9cfbb880b126bf87ab1ffc89 | [
"MIT"
] | null | null | null | src/gen-ocaml/Cassandra.ml | mfp/ocaml-cassandra | 726d46b5e3971c7d9cfbb880b126bf87ab1ffc89 | [
"MIT"
] | null | null | null | (*
Autogenerated by Thrift
DO NOT EDIT UNLESS YOU ARE SURE YOU KNOW WHAT YOU ARE DOING
*)
open Thrift
open Cassandra_types
(* HELPER FUNCTIONS AND STRUCTURES *)
class login_args =
object (self)
val mutable _auth_request : authenticationRequest option = None
method get_auth_request = _auth_request
method gra... | 40.950935 | 176 | 0.667179 |
8a757c84f73e1e23ce0e77fe32a9dcd37d7d54ac | 381 | ml | OCaml | hphp/hack/src/server/serverBigCode.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverBigCode.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverBigCode.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"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.
*
*)
let go:
ServerEnv.env ->
string ->
string =
fun env filename ->
let _ = env in
let _ = Hh_logger.info "Hel... | 21.166667 | 66 | 0.643045 |
afc2e3f7d4435c98920d6da08cdad0c73485f3fa | 1,336 | mll | OCaml | src/lib/lexer.mll | marcosfpr/trivia | 2370dd607158e6bddef5ac89267511be337b7f0e | [
"MIT"
] | null | null | null | src/lib/lexer.mll | marcosfpr/trivia | 2370dd607158e6bddef5ac89267511be337b7f0e | [
"MIT"
] | null | null | null | src/lib/lexer.mll | marcosfpr/trivia | 2370dd607158e6bddef5ac89267511be337b7f0e | [
"MIT"
] | null | null | null | {
module L = Lexing
type token = [%import: Parser.token] [@@deriving show]
let illegal_character loc char =
Error.error loc "illegal character '%c'" char
let of_string = function
| "true" -> true
| "false" -> false
| _ -> raise (Invalid_argument "Invalid literal boolean.")
}
let spaces = ['... | 29.688889 | 95 | 0.45509 |
f3c740285d2ad9a70e57dfc06fafe9e37d08a06f | 6,316 | ml | OCaml | src/main.ml | bmsherman/marshall | 3d7fab1919422c3c2dac60f7bfefe1f8f25e4f0f | [
"BSD-2-Clause"
] | 78 | 2015-03-14T19:40:11.000Z | 2022-02-18T11:52:29.000Z | src/main.ml | bmsherman/marshall | 3d7fab1919422c3c2dac60f7bfefe1f8f25e4f0f | [
"BSD-2-Clause"
] | 5 | 2015-06-16T18:27:26.000Z | 2019-07-05T09:39:44.000Z | src/main.ml | andrejbauer/marshall | 7e30b546210ad7685ee74db64f13d5c3fdec6e59 | [
"BSD-2-Clause"
] | 10 | 2015-06-16T23:33:20.000Z | 2021-12-30T19:57:22.000Z | (** The main program, wrapped as a functor depending on an implementation of dyadics. *)
module Make = functor (D : Dyadic.DYADIC) ->
struct
module TC = Typecheck.Make(D)
module E = Eval.Make(D)
module P = Parser.Make(D)
module L = Lexer.Make(D)
let usage = "Usage: marshall [option] ... [file] ..."
let in... | 35.683616 | 96 | 0.60038 |
8a0608228e727edfc592a3cd62e8262065cef1b9 | 14,953 | ml | OCaml | src/Driver.ml | TakuKitamura/kremlin-base | f979e7a2838870038c9a075ee5aeb4e98a03a769 | [
"Apache-2.0"
] | null | null | null | src/Driver.ml | TakuKitamura/kremlin-base | f979e7a2838870038c9a075ee5aeb4e98a03a769 | [
"Apache-2.0"
] | null | null | null | src/Driver.ml | TakuKitamura/kremlin-base | f979e7a2838870038c9a075ee5aeb4e98a03a769 | [
"Apache-2.0"
] | null | null | null | (* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. *)
(* Licensed under the Apache 2.0 License. *)
(** A very boring module that detects the environment and figures out how to
* call the tools. *)
open Warn
(* Abstracting over - (dash) for msvc. vs. gcc-like. *)
module Dash = struct
let i dir ... | 33.155211 | 124 | 0.641075 |
8a9c94a40093349ea63ef241464c7b83ccfd4f7e | 19,776 | ml | OCaml | hphp/hack/src/server/serverRpc.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/server/serverRpc.ml | ecreeth/hhvm | 743948904dcf31985e25f68258f7afcd36d2b228 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverRpc.ml | ecreeth/hhvm | 743948904dcf31985e25f68258f7afcd36d2b228 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open ServerEnv
open ServerCommandTypes
open Utils
let remove_dead_fixme_warning =
"hh_server was... | 37.668571 | 93 | 0.674454 |
8a33acff153aace6abe4c757c202c11af8730ff1 | 7,396 | ml | OCaml | .old/to_be_ported/f7/crypto.ml | YaccConstructor/FStar | a8db6c47e8b699b98be4c7c6f8c2e0edbce85933 | [
"Apache-2.0"
] | 1 | 2021-06-24T15:18:39.000Z | 2021-06-24T15:18:39.000Z | .old/to_be_ported/f7/crypto.ml | YaccConstructor/FStar | a8db6c47e8b699b98be4c7c6f8c2e0edbce85933 | [
"Apache-2.0"
] | null | null | null | .old/to_be_ported/f7/crypto.ml | YaccConstructor/FStar | a8db6c47e8b699b98be4c7c6f8c2e0edbce85933 | [
"Apache-2.0"
] | 2 | 2015-10-22T11:55:17.000Z | 2016-07-20T14:59:29.000Z | (* Copyright (c) Microsoft Corporation. All rights reserved. *)
module Crypto
#if pv
#else
#light "off"
#endif
open Data
open Pi
open F7
#if seals
open List
open PrimCrypto
#endif
type key =
| SymKey of bytes
| AsymPrivKey of bytes
| AsymPubKey of bytes
#if seals
| SealKey of (bytes,bytes) Table
#endif
... | 24.328947 | 123 | 0.657788 |
8a674311525f78d988816e92afc52398250f2977 | 67,187 | ml | OCaml | src/heap/sharedMem.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/heap/sharedMem.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/heap/sharedMem.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* Don't change the ordering of this record without updating hh_shared_init in
* hh_shared.c, which indexes into config objects ... | 33.097044 | 101 | 0.659904 |
af8a2c2f143529568550f43082bbcb0dc285dbd2 | 89,487 | ml | OCaml | analysis/test/typeCheckTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | 3 | 2019-03-29T22:32:12.000Z | 2019-04-16T08:54:57.000Z | analysis/test/typeCheckTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | null | null | null | analysis/test/typeCheckTest.ml | jerryliu55/pyre-check | ca779758cda4468c95dc2cd84f97a896bb983e3c | [
"MIT"
] | null | null | null | (** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Core
open OUnit2
open Ast
open Analysis
open Pyre
open Statement
open TypeCheck
open Test
let resolution = Test.resolution ()
le... | 29.829 | 109 | 0.571804 |
8a3bc2abd60917e0ccc9da47311894dc661b1466 | 7,900 | ml | OCaml | data/derived/comb/progs/unify/prog1551.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog1551.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1551.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.421405 | 148 | 0.700253 |
8a3f2530452f2ca537496523a080bdca4976913f | 1,704 | mli | OCaml | src/conduit-lwt-unix/conduit_lwt_unix_ssl.real.mli | madroach/ocaml-conduit | 522b536601ee5996f6833f6d78e5df5fa0c6f971 | [
"ISC"
] | null | null | null | src/conduit-lwt-unix/conduit_lwt_unix_ssl.real.mli | madroach/ocaml-conduit | 522b536601ee5996f6833f6d78e5df5fa0c6f971 | [
"ISC"
] | null | null | null | src/conduit-lwt-unix/conduit_lwt_unix_ssl.real.mli | madroach/ocaml-conduit | 522b536601ee5996f6833f6d78e5df5fa0c6f971 | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2012-2014 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS ... | 27.934426 | 78 | 0.68838 |
8a77db0b588aca593e325443c04f04ea888eec38 | 409 | ml | OCaml | plugin/plugin.ml | diophung/pyre-check | a488698d86b06b550c0e6e133009c1f396925af2 | [
"MIT"
] | null | null | null | plugin/plugin.ml | diophung/pyre-check | a488698d86b06b550c0e6e133009c1f396925af2 | [
"MIT"
] | null | null | null | plugin/plugin.ml | diophung/pyre-check | a488698d86b06b550c0e6e133009c1f396925af2 | [
"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. *)
module NamedTuples = PluginNamedTuples
module NewType = PluginNewType
module DataClass = PluginDataClass
let apply_to_ast source =
sourc... | 25.5625 | 67 | 0.762836 |
8abc931a8ad6c7c4ff0b789ce986e9df3bcf8f4e | 2,674 | mli | OCaml | lib/location.mli | shonfeder/mrmime | c5eb5fae36a99af5d7b6a5802c66908e3248b1d7 | [
"MIT"
] | null | null | null | lib/location.mli | shonfeder/mrmime | c5eb5fae36a99af5d7b6a5802c66908e3248b1d7 | [
"MIT"
] | null | null | null | lib/location.mli | shonfeder/mrmime | c5eb5fae36a99af5d7b6a5802c66908e3248b1d7 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2018-2019 Romain Calascibetta <romain.calascibetta@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE ... | 32.609756 | 79 | 0.679506 |
8ac6660c2c4f5e6c28470cc39b2eeff63a88533d | 168 | ml | OCaml | src/digestif_eq.ml | gpetiot/digestif | 4a8e07ee8b936951bd8009d74764532588316540 | [
"MIT"
] | 71 | 2017-05-09T09:36:31.000Z | 2022-03-29T11:35:18.000Z | src/digestif/digestif_eq.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | 91 | 2017-07-05T10:52:32.000Z | 2022-03-29T12:26:36.000Z | src/digestif/digestif_eq.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | 26 | 2017-05-09T10:52:17.000Z | 2022-03-31T15:30:01.000Z | module Make (D : sig
val digest_size : int
end) =
struct
let _ = D.digest_size
let equal a b = Eqaf.equal a b
let unsafe_compare a b = String.compare a b
end
| 15.272727 | 45 | 0.678571 |
8a687e2246628e7e299163fc797f63eff8d97470 | 10,617 | mli | OCaml | src/proto_009_PsFLorBA/lib_protocol/michelson_v1_gas.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_protocol/michelson_v1_gas.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_protocol/michelson_v1_gas.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 23.437086 | 79 | 0.627296 |
8a44bf64b9cdb4f3325d30b7cdf824c18f92b3c5 | 4,274 | mli | OCaml | ocamllib/libbase/baseArg.mli | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | ocamllib/libbase/baseArg.mli | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | ocamllib/libbase/baseArg.mli | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 58 | 2015-01-02T23:57:42.000Z | 2022-03-02T12:44:42.000Z | (*
Copyright © 2011 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, but WI... | 37.491228 | 100 | 0.665419 |
af89e97de96fea2aad5b0da5fc6e0df5eb6470bd | 3,647 | ml | OCaml | net/netmisc.ml | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | 3 | 2021-03-15T17:57:46.000Z | 2021-09-29T13:11:36.000Z | net/netmisc.ml | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | net/netmisc.ml | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* Copyright (c) 2009, Romain BARDOU *)
(* All rights reserved. *)
(* *)
(* Redistrib... | 37.597938 | 79 | 0.551412 |
afd5a197411bde160207452a99af22aa7fba7811 | 2,070 | mli | OCaml | src/hack_forked/utils/core/exit_status.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2021-03-27T07:05:32.000Z | 2021-03-27T07:05:32.000Z | src/hack_forked/utils/core/exit_status.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 2 | 2021-05-11T22:39:32.000Z | 2021-09-02T16:14:18.000Z | src/hack_forked/utils/core/exit_status.mli | 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 `.mli` file was generated automatically. It may include extra
definitions that should not actually be exposed to the caller... | 23.522727 | 76 | 0.762802 |
8a85fdac17aaeab26bde0d453c9cce8a72d52119 | 1,427 | ml | OCaml | test/test_redis.ml | zshipko/irmin-redis | 2ad11d81e6d079acec6ea2997551f42f937a1b8a | [
"ISC"
] | 9 | 2018-05-22T21:30:02.000Z | 2021-10-29T20:36:27.000Z | test/test_redis.ml | zshipko/irmin-redis | 2ad11d81e6d079acec6ea2997551f42f937a1b8a | [
"ISC"
] | 3 | 2018-08-31T13:42:28.000Z | 2019-03-02T03:08:34.000Z | test/test_redis.ml | zshipko/irmin-redis | 2ad11d81e6d079acec6ea2997551f42f937a1b8a | [
"ISC"
] | 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... | 31.021739 | 75 | 0.732306 |
afec7d0e31571f13a8ec9b692d884f09679a1f09 | 16,332 | ml | OCaml | parser.ml | capybara84/wktk | 00f4eef8d62d573dfde0bd49932b5128d2e761c0 | [
"MIT"
] | 1 | 2020-03-31T13:11:47.000Z | 2020-03-31T13:11:47.000Z | parser.ml | capybara84/wktk | 00f4eef8d62d573dfde0bd49932b5128d2e761c0 | [
"MIT"
] | null | null | null | parser.ml | capybara84/wktk | 00f4eef8d62d573dfde0bd49932b5128d2e761c0 | [
"MIT"
] | null | null | null | open Syntax
let debug_scope_flag = ref false
let debug_indent = ref 0
let rec debug_show_space = function
| 0 -> ()
| n -> print_char ' '; debug_show_space (n-1)
let debug_parse s =
if !debug_scope_flag then
(debug_show_space !debug_indent; print_endline s)
let debug_parse_in s =
if !debug_s... | 27.917949 | 121 | 0.569618 |
8a723cbcca830cb364569eceef03031eaaa4a51f | 48,952 | ml | OCaml | src/lib_context/context.ml | t-dx/tezos | 1d2858400b40c24fa352f146b3450dc576bd043a | [
"MIT"
] | null | null | null | src/lib_context/context.ml | t-dx/tezos | 1d2858400b40c24fa352f146b3450dc576bd043a | [
"MIT"
] | null | null | null | src/lib_context/context.ml | t-dx/tezos | 1d2858400b40c24fa352f146b3450dc576bd043a | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.344404 | 81 | 0.643385 |
8a03f181f70d18b6b1f188a2e98c9d89ad4d9c9e | 409 | mli | OCaml | sprite.mli | dlqs/DoodOCaml | cf284bad31af46125b566b41ca63d3f3b9b9be72 | [
"MIT"
] | null | null | null | sprite.mli | dlqs/DoodOCaml | cf284bad31af46125b566b41ca63d3f3b9b9be72 | [
"MIT"
] | null | null | null | sprite.mli | dlqs/DoodOCaml | cf284bad31af46125b566b41ca63d3f3b9b9be72 | [
"MIT"
] | null | null | null | open Types
(* Sets up a sprite to create *)
val setup_sprite : ?loop:bool -> ?bb_off:int*int-> ?bb_sz:int*int
-> string -> int -> int ref -> pxy -> pxy
-> sprite_params
(* Creates a sprite given the actor type *)
val make : sprite_typ -> sprite
(* Updates the sprite's animation *... | 25.5625 | 66 | 0.618582 |
8a7deb04fb8b8c3d77a2b6eb22a72253259f5a3e | 1,612 | mli | OCaml | duniverse/opam-core.2.0.7+dune/src/format/opamSwitch.mli | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/opam-core.2.0.7+dune/src/format/opamSwitch.mli | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/opam-core.2.0.7+dune/src/format/opamSwitch.mli | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | (**************************************************************************)
(* *)
(* Copyright 2012-2015 OCamlPro *)
(* Copyright 2012 INRIA *)
(* ... | 44.777778 | 80 | 0.501241 |
8a46d74e4a6b4e3d0fa593d7b347306161b6f5ee | 26,311 | ml | OCaml | compiler/qml2js/qmljs_Serializer.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | compiler/qml2js/qmljs_Serializer.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | compiler/qml2js/qmljs_Serializer.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, ... | 33.012547 | 141 | 0.598267 |
f3b166197937e6e348cc824acb1e24257c74b234 | 18,210 | ml | OCaml | hphp/hack/src/hhbc/emit_body.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_body.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_body.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Hhbc_ast
open Instruction_sequence
module A = Aast
module SU = Hhbc_string_utils
module RGH = R... | 29.950658 | 83 | 0.647392 |
8aa4feeaf76d8f702da8397f7112b123e558ca58 | 368 | mli | OCaml | duniverse/base/src/popcount.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | 1 | 2019-09-11T00:04:16.000Z | 2019-09-11T00:04:16.000Z | duniverse/base/src/popcount.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/base/src/popcount.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (** This module exposes popcount functions (which count the number of ones in a bitstring)
for the various integer types.
Functions are exposed in their respective modules. *)
open! Import
val int_popcount : int -> int
val int32_popcount : int32 -> int
val int64_popcount : int64 -... | 30.666667 | 90 | 0.6875 |
8a6da46ff0dfc62d96da55f2a71c66ba222d9ae2 | 1,445 | ml | OCaml | example/w-stress-response/stress_response.ml | lessp/dream | 018ae066177fcf7c92986c9b61a634e401af52b5 | [
"MIT"
] | null | null | null | example/w-stress-response/stress_response.ml | lessp/dream | 018ae066177fcf7c92986c9b61a634e401af52b5 | [
"MIT"
] | null | null | null | example/w-stress-response/stress_response.ml | lessp/dream | 018ae066177fcf7c92986c9b61a634e401af52b5 | [
"MIT"
] | null | null | null | (* TODO Once concurrent writing is supported, send N concurrent streams and test
for fairness. *)
(* TODO There seems to be some GC thrashing and even page thrashing or similar
with very large streams, probably due to buffer growth from a lack of
server-side flow control. *)
let stress ?(megabytes = 1024) ?(c... | 28.333333 | 80 | 0.646367 |
f3dd6a161694d838e5eb240da9888271a2ad55e3 | 18,673 | ml | OCaml | recipes.ml | Lundis/factorio-planner-omnimods | 7a1518c8fa2a14854ea2f51c1e919788410bad5b | [
"MIT"
] | null | null | null | recipes.ml | Lundis/factorio-planner-omnimods | 7a1518c8fa2a14854ea2f51c1e919788410bad5b | [
"MIT"
] | null | null | null | recipes.ml | Lundis/factorio-planner-omnimods | 7a1518c8fa2a14854ea2f51c1e919788410bad5b | [
"MIT"
] | null | null | null | (******************************************************************************)
(* Copyright (c) 2016 DooMeeR *)
(* *)
(* Permission is hereby granted, free of charge, to any person obtaining ... | 35.772031 | 84 | 0.652064 |
8a21159e75c7dd32ac1cc1120ed2397ca9ea4370 | 1,044 | ml | OCaml | example/client.ml | olleharstedt/lwt-websocket | 71a48bb15b9a3001864890b156b5f77c603bc882 | [
"MIT"
] | null | null | null | example/client.ml | olleharstedt/lwt-websocket | 71a48bb15b9a3001864890b156b5f77c603bc882 | [
"MIT"
] | null | null | null | example/client.ml | olleharstedt/lwt-websocket | 71a48bb15b9a3001864890b156b5f77c603bc882 | [
"MIT"
] | null | null | null | open Unix
open Lwt
let rec main host port =
Lwt_websocket.Channel.connect
~sec_socket_key:"hoge" ~host ~port >>= fun channel ->
(** send ping *)
channel#write_ping_frame >>= fun () ->
print_endline "ping send";
(** read pong *)
channel#read_frame >>= fun frame ->
debug_frame frame;
(** send c... | 20.88 | 60 | 0.608238 |
8a81ac9d4cf4d71f25ed008239550c05bd56b192 | 22,201 | ml | OCaml | ocaml/p0096.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | ocaml/p0096.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | ocaml/p0096.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | (* Project Euler: Problem 96 *)
(*
[Grid]
C0 C1 C2 C3 C4 C5 C6 C7 C8
+--------+--------+--------+ R: Row Cell(x,y) = RxCy
R0| | | | C: Column position = 9x + y
R1| B0 | B1 | B2 | B: Box
R2| | | |
+--------+--------+------... | 35.239683 | 143 | 0.469078 |
8a3b7b6bdc16555f1a57179f524914f44e622e8d | 51,318 | mly | OCaml | src/parser/parse.mly | concatime/FStar | e863c2972b6a2ba49b22306293448ca415269211 | [
"Apache-2.0"
] | null | null | null | src/parser/parse.mly | concatime/FStar | e863c2972b6a2ba49b22306293448ca415269211 | [
"Apache-2.0"
] | null | null | null | src/parser/parse.mly | concatime/FStar | e863c2972b6a2ba49b22306293448ca415269211 | [
"Apache-2.0"
] | null | null | null | %{
(*
We are expected to have only 6 shift-reduce conflicts in ML and 8 in F#.
A lot (176) of end-of-stream conflicts are also reported and
should be investigated...
*)
(* (c) Microsoft Corporation. All rights reserved *)
open Prims
open FStar_Pervasives
open FStar_Errors
open FStar_Compiler_List
open FStar_Compiler... | 36.344193 | 214 | 0.618107 |
8a75b591f31d8988ed1932d518fa5887a6ceb4e8 | 2,638 | mli | OCaml | src/dune_engine/fs_memo.mli | alexmusa/dune | 4974a5b8e54db90dde33802638f5fbab37264579 | [
"MIT"
] | null | null | null | src/dune_engine/fs_memo.mli | alexmusa/dune | 4974a5b8e54db90dde33802638f5fbab37264579 | [
"MIT"
] | null | null | null | src/dune_engine/fs_memo.mli | alexmusa/dune | 4974a5b8e54db90dde33802638f5fbab37264579 | [
"MIT"
] | null | null | null | open! Stdune
open Import
(** All functions in this module raise a code error when given a path in the
build directory. *)
(* CR-someday amokhov: Note that currently the scheduler calls [handle] only for
source paths, because we don't watch external directories. We should try to
implement at least a partial ... | 41.21875 | 83 | 0.728961 |
af7cec87fec58bac3c9743933243b402e4b9f310 | 6,673 | ml | OCaml | data/derived/comb/progs/unify/prog0083.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog0083.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0083.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs = match xs with
h :: t -> h + sumList t
| [] -> 0;;
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9; 11]
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 24.623616 | 94 | 0.627004 |
8ac26672580920315537f37217e4f96e1ad75741 | 9,731 | ml | OCaml | src/lib_p2p/p2p_discovery.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/lib_p2p/p2p_discovery.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/lib_p2p/p2p_discovery.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 36.309701 | 79 | 0.56767 |
8ab19ed755e14244d425605041c290e2de47d5f8 | 4,266 | mli | OCaml | src/lib_error_monad/error_monad.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/lib_error_monad/error_monad.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | src/lib_error_monad/error_monad.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 39.5 | 79 | 0.580872 |
8abef1c02fd35211a5d7ca1f24dbfb091bb9bef3 | 8,240 | ml | OCaml | data/derived/comb/progs/unify/prog7412.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/prog2602.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2602.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.993691 | 148 | 0.63568 |
8aa2946dc48ba19b5722b402e2329276cb73fec9 | 65,689 | ml | OCaml | src/parser_utils/file_sig.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | null | null | null | src/parser_utils/file_sig.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | 1 | 2020-06-26T11:29:23.000Z | 2020-06-26T11:29:23.000Z | src/parser_utils/file_sig.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | 1 | 2021-01-06T10:57:53.000Z | 2021-01-06T10:57:53.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast_utils = Flow_ast_utils
module Ast = Flow_ast
module Result = Base.Result
open Flow_ast_visitor
module Make
(L : Loc... | 39.691239 | 106 | 0.561038 |
af79755583fa485b8c82b06052ccbaffd7580c21 | 145 | mli | OCaml | src/lib/cli_lib/background_daemon.mli | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/cli_lib/background_daemon.mli | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/cli_lib/background_daemon.mli | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | open Async
open Command
val init :
?rest:bool
-> f:(int -> 'a -> unit Deferred.t)
-> 'a Param.t
-> (unit -> unit Deferred.t) Param.t
| 16.111111 | 38 | 0.572414 |
8a21f19aa5ecf09a7db858248b256340a2dbfca2 | 770 | mli | OCaml | src/endpoints_t.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | src/endpoints_t.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | src/endpoints_t.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | (* Auto-generated from "endpoints.atd" *)
[@@@ocaml.warning "-27-32-35-39"]
type service_defaults =
{ protocols : string list option
; ssl_common_name : string option
}
type endpoint = { hostname : string option }
type service =
{ defaults : service_defaults option
; endpoints : (string * endpoint) list
... | 22 | 48 | 0.687013 |
8a788f2e2886ce93ed34231daedbfcc5ccc111b3 | 2,557 | ml | OCaml | data/fa15/2396.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2396.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2396.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let getHead h = match h with | [] -> [] | h::t -> h;;
let rec listReverse l =
match l with | [] -> [] | h::t -> (listReverse t) @ [h];;
let explode s =
let rec go i =
if i >= (String.length s) then [] else (s.[i]) :: (go (i + 1)) in
go 0;;
let rec matchHeads x =
match x with
| [] -> true
| h::t -> i... | 15.881988 | 77 | 0.481815 |
af8dc9338acebeb408fcd055208641312b5e49fa | 20,524 | ml | OCaml | data/derived/comb/progs/unify/prog2221.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/sp14/progs/unify/prog2221.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2221.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 35.325301 | 400 | 0.63092 |
8a03f6c9039f92f88f69e59860c37f7343a81f12 | 1,290 | ml | OCaml | compiler.ml | RBornat/Arsenic | e8fc9bca7ed666ab1c61c4c8ed0ca3a71d0b8a20 | [
"MIT"
] | null | null | null | compiler.ml | RBornat/Arsenic | e8fc9bca7ed666ab1c61c4c8ed0ca3a71d0b8a20 | [
"MIT"
] | null | null | null | compiler.ml | RBornat/Arsenic | e8fc9bca7ed666ab1c61c4c8ed0ca3a71d0b8a20 | [
"MIT"
] | null | null | null | open Program
(* This file is part of Arsenic, a proofchecker for New Lace logic.
Copyright (c) 2015 Richard Bornat.
Licensed under the MIT license (sic): see LICENCE.txt or
https://opensource.org/licenses/MIT
*)
exception Error of string
let parse filename =
(try Parseutils.parse_program filename
wi... | 31.463415 | 107 | 0.593798 |
af452666baab77d2500f7b581e02f008d4e1b571 | 3,380 | ml | OCaml | base-LIG/LoopInvGen+HE/bin/Infer.ml | SaswatPadhi/2019_CAV_Artifact_100 | 50b4b2c94a3d8b26b91c9dc8d42905c5e591b1c9 | [
"MIT"
] | null | null | null | base-LIG/LoopInvGen+HE/bin/Infer.ml | SaswatPadhi/2019_CAV_Artifact_100 | 50b4b2c94a3d8b26b91c9dc8d42905c5e591b1c9 | [
"MIT"
] | null | null | null | base-LIG/LoopInvGen+HE/bin/Infer.ml | SaswatPadhi/2019_CAV_Artifact_100 | 50b4b2c94a3d8b26b91c9dc8d42905c5e591b1c9 | [
"MIT"
] | null | null | null | open Core
open LoopInvGen
let output_stats stats = function
| None -> ()
| Some statsfile
-> let stats_chan = Out_channel.create statsfile
in Out_channel.output_string stats_chan
(Sexplib.Sexp.to_string_hum ~indent:4 (LIG.sexp_of_stats stats))
; Out_channel.close stats_chan
let m... | 40.722892 | 119 | 0.637278 |
af48a66891a13d10266f51148c966da6badd0dfb | 718 | ml | OCaml | src/ocaml-output/FStar_Tactics_Result.ml | pnmadelaine/FStar | cd926286b895228447ca15e03e00e7f7509815bb | [
"Apache-2.0"
] | 2,231 | 2015-01-05T02:19:24.000Z | 2022-03-30T05:54:05.000Z | src/ocaml-output/FStar_Tactics_Result.ml | pnmadelaine/FStar | cd926286b895228447ca15e03e00e7f7509815bb | [
"Apache-2.0"
] | 2,151 | 2015-01-06T05:01:08.000Z | 2022-03-31T23:16:08.000Z | src/ocaml-output/FStar_Tactics_Result.ml | pnmadelaine/FStar | cd926286b895228447ca15e03e00e7f7509815bb | [
"Apache-2.0"
] | 281 | 2015-02-13T00:14:17.000Z | 2022-03-13T12:51:04.000Z | open Prims
type 'a __result =
| Success of ('a * FStar_Tactics_Types.proofstate)
| Failed of (Prims.exn * FStar_Tactics_Types.proofstate)
let uu___is_Success : 'a . 'a __result -> Prims.bool =
fun projectee -> match projectee with | Success _0 -> true | uu___ -> false
let __proj__Success__item___0 :
'a . 'a _... | 51.285714 | 77 | 0.706128 |
8a54bd0562bc90025519284bd14d41c0f7c63d5f | 34,582 | ml | OCaml | src/stan_math_backend/Stan_math_code_gen.ml | nhuurre/stanc3 | 5612b357c1cd5a08cf2a57db97ce0e789bb87018 | [
"BSD-3-Clause"
] | null | null | null | src/stan_math_backend/Stan_math_code_gen.ml | nhuurre/stanc3 | 5612b357c1cd5a08cf2a57db97ce0e789bb87018 | [
"BSD-3-Clause"
] | null | null | null | src/stan_math_backend/Stan_math_code_gen.ml | nhuurre/stanc3 | 5612b357c1cd5a08cf2a57db97ce0e789bb87018 | [
"BSD-3-Clause"
] | null | null | null | (** Generate C++ from the MIR.
This module makes extensive use of the Format[0] module via the Fmt[1] API.
As such, you'll need to understand the "%a" and "@" notation from [0], especially
the section headed "Formatted pretty-printing." Then, we use functions like
[pf] and [strf] from the Fmt library[1... | 38.81257 | 132 | 0.655717 |
8ac7df5f4314c5af80723ec50b6ef2878c9565b6 | 3,249 | ml | OCaml | src/lib/ir/translate_env.ml | SimonJF/cmm_of_wasm | 10fea570f80f91ee26c23a6cca48b29795c9967b | [
"MIT"
] | 80 | 2018-07-13T14:04:33.000Z | 2022-02-23T20:15:32.000Z | src/lib/ir/translate_env.ml | SimonJF/cmm_of_wasm | 10fea570f80f91ee26c23a6cca48b29795c9967b | [
"MIT"
] | 14 | 2018-07-16T15:38:54.000Z | 2018-08-28T08:17:42.000Z | src/lib/ir/translate_env.ml | SimonJF/cmm_of_wasm | 10fea570f80f91ee26c23a6cca48b29795c9967b | [
"MIT"
] | 1 | 2020-10-31T16:49:42.000Z | 2020-10-31T16:49:42.000Z | open Util.Maps
type t = {
mutable stack : Var.t list;
mutable block_continuation: Label.t;
mutable function_return: Label.t;
mutable locals: Var.t array;
mutable labels: Label.t list;
globals: Global.t array;
functions: Func.t array;
types: Libwasm.Types.func_type array
}
let create ~stack ~continuati... | 24.992308 | 85 | 0.665743 |
8a8fb66d4a1b50e465a9eba3caf3ed359477bdd0 | 40,358 | ml | OCaml | src/ext/zrapp/rmciltmps.ml | prosyslab/cil | 8e87fe45e36ed79d0a72ce23a9cc1c55f472771c | [
"BSD-3-Clause"
] | null | null | null | src/ext/zrapp/rmciltmps.ml | prosyslab/cil | 8e87fe45e36ed79d0a72ce23a9cc1c55f472771c | [
"BSD-3-Clause"
] | null | null | null | src/ext/zrapp/rmciltmps.ml | prosyslab/cil | 8e87fe45e36ed79d0a72ce23a9cc1c55f472771c | [
"BSD-3-Clause"
] | null | null | null | (* These are functions etc. for removing CIL generated
temporary variables. Some can be removed immediately,
others must wait until pretty printing *)
open Cil
open Pretty
open Expcompare
module E = Errormsg
module RD = Reachingdefs
module AELV = Availexpslv
module UD = Usedef
module IH = Inthash
module S = Sta... | 36.589302 | 140 | 0.590713 |
8a6c92391b541d861aaa99c049e5ca1ba1f51779 | 72 | ml | OCaml | data/sp14/clusters/0121.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14_min/clusters/0121.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14/clusters/0121.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z | LetG NonRec [(VarPatG,ListG [EmptyG,EmptyG])] VarG
let c = [a ; b] in c
| 24 | 50 | 0.652778 |
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.