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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f39b22c6d6cc107921eb0fa3d81a29adbdb656e7 | 205 | mli | OCaml | libraries/ec2/lib/modifyInstanceAttribute.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/modifyInstanceAttribute.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/modifyInstanceAttribute.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = ModifyInstanceAttributeRequest.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 18.636364 | 85 | 0.760976 |
af166ae0b190a8d546e4433b205bf83839a18029 | 4,322 | ml | OCaml | warn_stats.ml | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 2 | 2019-10-05T04:17:01.000Z | 2021-03-08T14:30:34.000Z | warn_stats.ml | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | null | null | null | warn_stats.ml | liangjs/relay | de123b8474c3485abaedcbc52be437d0d27c131d | [
"BSD-3-Clause"
] | 3 | 2017-07-04T11:06:22.000Z | 2022-02-25T05:55:27.000Z | (*
Copyright (c) 2006-2007, Regents of the University of California
Authors: Jan Voung
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. Redistributions of source code must reta... | 28.434211 | 79 | 0.652013 |
f3c17aaa50caabba859640ef17523b6e22cdd2bf | 25 | mli | OCaml | reddit_api_kernel/thing.mli | nmtake/ocaml-reddit-api | 4cba7b98fe0a0f61f2908a83752936e60f69275e | [
"MIT"
] | 3 | 2020-12-31T06:25:49.000Z | 2022-03-27T11:25:09.000Z | reddit_api_kernel/thing.mli | nmtake/ocaml-reddit-api | 4cba7b98fe0a0f61f2908a83752936e60f69275e | [
"MIT"
] | 7 | 2020-09-21T12:38:34.000Z | 2022-03-28T00:28:11.000Z | reddit_api_kernel/thing.mli | nmtake/ocaml-reddit-api | 4cba7b98fe0a0f61f2908a83752936e60f69275e | [
"MIT"
] | 2 | 2021-07-03T22:24:38.000Z | 2022-03-27T04:02:00.000Z | include Thing_intf.Thing
| 12.5 | 24 | 0.88 |
f3082ecd6cd0219f84fd61d4af79e6ba4ee0acc5 | 32,320 | ml | OCaml | src/parser_utils/signature_builder_verify.ml | KidkArolis/flow | f25a8978041e05097de46a3b82037e3b2b639887 | [
"MIT"
] | null | null | null | src/parser_utils/signature_builder_verify.ml | KidkArolis/flow | f25a8978041e05097de46a3b82037e3b2b639887 | [
"MIT"
] | null | null | null | src/parser_utils/signature_builder_verify.ml | KidkArolis/flow | f25a8978041e05097de46a3b82037e3b2b639887 | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
module LocMap = Utils_js.LocMap
module Kind = Signature_builder_kind
module Entry = Signature_builder_entry
mod... | 39.950556 | 104 | 0.646473 |
f3b60a351aef9edf67a6e3c86ec1d371dfceb305 | 928 | ml | OCaml | libraries/route53/lib/changeTagsForResource.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/changeTagsForResource.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/changeTagsForResource.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = ChangeTagsForResourceRequest.t
type output = unit
type error = Errors_internal.t
let service = "route53"
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.933333 | 79 | 0.628233 |
d2f1f24da0038ae4466a197223046cd8377c134a | 1,679 | ml | OCaml | src/ocaml/preprocess/recover/gen_recover.ml | actionshrimp/merlin | c6b5704417a550caeb9cb9806cc2fb5eda52c454 | [
"MIT"
] | null | null | null | src/ocaml/preprocess/recover/gen_recover.ml | actionshrimp/merlin | c6b5704417a550caeb9cb9806cc2fb5eda52c454 | [
"MIT"
] | null | null | null | src/ocaml/preprocess/recover/gen_recover.ml | actionshrimp/merlin | c6b5704417a550caeb9cb9806cc2fb5eda52c454 | [
"MIT"
] | null | null | null | open MenhirSdk
open Cmly_api
let name = ref ""
let verbose = ref false
let usage () =
Printf.eprintf "Usage: %s [-v] file.cmly\n"
Sys.argv.(0);
exit 1
let () =
for i = 1 to Array.length Sys.argv - 1 do
if Sys.argv.(i) = "-v" then
verbose := true
else if !name = "" then
name := Sys.argv.... | 25.059701 | 59 | 0.550328 |
f320863bb3931181d9788a8b2efb2e71c1721c87 | 607 | ml | OCaml | testing/helpers_intf.ml | janestreet/incr_dom | 7d6b44fb5c1495c1ba8c7dcdf7497a9de3f887e4 | [
"MIT"
] | 327 | 2016-07-07T09:13:42.000Z | 2022-03-14T00:10:40.000Z | testing/helpers_intf.ml | janestreet/incr_dom | 7d6b44fb5c1495c1ba8c7dcdf7497a9de3f887e4 | [
"MIT"
] | 15 | 2016-08-23T02:13:23.000Z | 2021-07-13T19:07:51.000Z | testing/helpers_intf.ml | janestreet/incr_dom | 7d6b44fb5c1495c1ba8c7dcdf7497a9de3f887e4 | [
"MIT"
] | 33 | 2017-07-10T08:13:39.000Z | 2022-03-08T22:19:46.000Z | open! Core
open! Import
module type S = sig
type model
type action
type state
val show_view : ?selector:string -> unit -> unit
val show_model : unit -> unit
val set_model : model -> unit
val do_actions : action list -> unit
val perform_update : unit -> unit
val click_on : selector:string -> unit
... | 20.931034 | 57 | 0.637562 |
f3fb9c71d98f567cd95b934911d9cc804d33230a | 7,990 | ml | OCaml | data/derived/comb/progs/unify/prog3749.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/prog3749.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3749.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.691318 | 148 | 0.632541 |
f3b2f443c803070f777dc110013580b36b29da99 | 1,121 | ml | OCaml | extraction/vard-serialized/test/VarDSerializedSerializationTest.ml | fajb/verdi-raft | a74423972abfa9136960d59fa4131e1fbd26740b | [
"BSD-2-Clause"
] | 164 | 2016-10-12T01:25:07.000Z | 2022-03-29T02:48:01.000Z | coq_projects/verdi-raft/extraction/vard-serialized/test/VarDSerializedSerializationTest.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 33 | 2016-10-01T22:48:42.000Z | 2021-10-01T18:51:34.000Z | coq_projects/verdi-raft/extraction/vard-serialized/test/VarDSerializedSerializationTest.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 18 | 2016-09-28T23:45:46.000Z | 2021-10-01T18:01:33.000Z | open OUnit2
open ListLabels
open Util
let tear_down () text_ctxt = ()
let test_serialize_output_not_leader text_ctxt =
assert_equal ("0aac4d743ccc4473a2e04f4072734722", Bytes.of_string "NotLeader 15")
(VarDSerializedSerialization.serializeOutput (VarDRaftSerialized.NotLeader (Obj.magic (char_list_of_string "0a... | 37.366667 | 173 | 0.782337 |
f35c4da5661a6c4019ab0716893ee317bbee6fe5 | 1,288 | ml | OCaml | infer/src/checkers/costModels.ml | prmis/infer | 4acad5ca90d2fc18f1b7440b83aeb81f964d6199 | [
"MIT"
] | null | null | null | infer/src/checkers/costModels.ml | prmis/infer | 4acad5ca90d2fc18f1b7440b83aeb81f964d6199 | [
"MIT"
] | null | null | null | infer/src/checkers/costModels.ml | prmis/infer | 4acad5ca90d2fc18f1b7440b83aeb81f964d6199 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module BasicCost = CostDomain.BasicCost
type model = Location.t -> BufferOverrunDomain.Mem.t -> BasicCost.t
module Collectio... | 31.414634 | 96 | 0.742236 |
f353c41c266480c88af14e1a0085f31878b937f9 | 10,910 | ml | OCaml | infer/src/backend/registerCheckers.ml | paveon/looper | f7ae37cf15c60fa80c0ab5a05c5ce0d6fcabf14b | [
"MIT"
] | 1 | 2019-12-27T12:18:57.000Z | 2019-12-27T12:18:57.000Z | infer/src/backend/registerCheckers.ml | paveon/looper | f7ae37cf15c60fa80c0ab5a05c5ce0d6fcabf14b | [
"MIT"
] | null | null | null | infer/src/backend/registerCheckers.ml | paveon/looper | f7ae37cf15c60fa80c0ab5a05c5ce0d6fcabf14b | [
"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 for registering checkers. *)
module F = Format
type callback_fun =
| Procedure of Callbacks.proc_callbac... | 41.169811 | 101 | 0.698167 |
f30bc3772a24d6c1c39085349544ec5c96fb3a44 | 81 | ml | OCaml | tests/conversion/reason/recursiveType.ml | Et7f3/syntax | d1534474564eaa2af07c546e41eb8e60a85e3a44 | [
"MIT"
] | null | null | null | tests/conversion/reason/recursiveType.ml | Et7f3/syntax | d1534474564eaa2af07c546e41eb8e60a85e3a44 | [
"MIT"
] | null | null | null | tests/conversion/reason/recursiveType.ml | Et7f3/syntax | d1534474564eaa2af07c546e41eb8e60a85e3a44 | [
"MIT"
] | null | null | null | type tree =
< label: string ;left: tree option ;right: tree option > Js.t
| 27 | 68 | 0.62963 |
af02c7834aae21989eca97c30be2771ade62d165 | 4,632 | ml | OCaml | lib/cfg_intf.ml | lpw25/ocamlcfg | 7f3eeaccdf22abece70edbb92889ad22cdf6f69c | [
"MIT"
] | 7 | 2019-09-26T14:27:53.000Z | 2020-08-08T08:57:38.000Z | lib/cfg_intf.ml | lpw25/ocamlcfg | 7f3eeaccdf22abece70edbb92889ad22cdf6f69c | [
"MIT"
] | null | null | null | lib/cfg_intf.ml | lpw25/ocamlcfg | 7f3eeaccdf22abece70edbb92889ad22cdf6f69c | [
"MIT"
] | 4 | 2019-08-13T15:41:53.000Z | 2020-08-07T13:02:27.000Z | (** Control flow graph structure types that are shared between the internal
(mutable) and external (immutable) views of [Cfg]. *)
[@@@ocaml.warning "+a-30-40-41-42"]
module S = struct
type func_call_operation =
| Indirect of { label_after : Label.t }
| Direct of
{ func_symbol : string;
... | 31.510204 | 80 | 0.616364 |
f3b91e7ace0dc4e5364537240eb581d65eb7d459 | 404 | mli | OCaml | code/ocp-index/ncurses.mli | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 328 | 2015-01-08T13:55:08.000Z | 2022-03-11T12:56:04.000Z | code/ocp-index/ncurses.mli | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 17 | 2015-01-04T00:26:01.000Z | 2018-05-31T08:16:44.000Z | code/ocp-index/ncurses.mli | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 83 | 2015-01-21T15:07:56.000Z | 2022-03-11T12:56:08.000Z | type window
val window : window Ctypes.typ
val initscr : unit -> window
val endwin : unit -> unit
val refresh : unit -> unit
val wrefresh : window -> unit
val newwin : int -> int -> int -> int -> window
val mvwaddch : window -> int -> int -> char -> unit
val addstr : string -> unit
val mvwaddstr : window -> int -> int ... | 31.076923 | 54 | 0.64604 |
f3b2e13ec35bb5913e327e2e51ebe99736727f9c | 3,655 | ml | OCaml | RedBook-Samples/bezcurve.ml | rahenri/glMLite | 38f6be99584b2d498eba98eee55ea762f53191d1 | [
"MIT"
] | 12 | 2015-02-05T18:13:49.000Z | 2021-04-23T22:04:12.000Z | RedBook-Samples/bezcurve.ml | rahenri/glMLite | 38f6be99584b2d498eba98eee55ea762f53191d1 | [
"MIT"
] | 2 | 2015-02-05T18:13:43.000Z | 2019-05-02T06:59:50.000Z | RedBook-Samples/bezcurve.ml | rahenri/glMLite | 38f6be99584b2d498eba98eee55ea762f53191d1 | [
"MIT"
] | 2 | 2016-08-16T13:21:59.000Z | 2020-12-30T06:01:19.000Z | (*
Copyright (c) 1993-1997, Silicon Graphics, Inc.
ALL RIGHTS RESERVED
Permission to use, copy, modify, and distribute this software for
any purpose and without fee is hereby granted, provided that the above
copyright notice appear in all copies and that both the copyright notice
and this permission notic... | 31.239316 | 75 | 0.698769 |
f39d203adfa5738b2b805386ed4b87127a17002c | 2,495 | mli | OCaml | infer/src/pulse/PulseAccessResult.mli | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | 2 | 2021-12-17T13:38:34.000Z | 2021-12-17T14:06:53.000Z | infer/src/pulse/PulseAccessResult.mli | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseAccessResult.mli | clayne/infer | 291b75d195b4adc2e6624a70aced05f6890f8299 | [
"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
open PulseBasicInterface
module AbductiveDomain = PulseAbductiveDomain
type 'astate error =
| PotentialInvalidAccess ... | 38.984375 | 100 | 0.726653 |
f333c4aae2704952a42f18d42b76ce09e0b23f37 | 1,924 | ml | OCaml | libraries/cloudwatch/lib/describeInsightRules.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudwatch/lib/describeInsightRules.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/cloudwatch/lib/describeInsightRules.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DescribeInsightRulesInput.t
type output = DescribeInsightRulesOutput.t
type error = Errors_internal.t
let service = "monitoring"
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.540984 | 100 | 0.584719 |
f33feb976516bdde95201503eecd833aa709e7c8 | 56 | ml | OCaml | CoqList.ml | yoshihiro503/ocaml_util | 8ae4b6f1beef2f4b02925330f72ee4e5dd9aefd5 | [
"MIT"
] | 1 | 2016-01-07T17:43:28.000Z | 2016-01-07T17:43:28.000Z | CoqList.ml | yoshihiro503/ocaml_util | 8ae4b6f1beef2f4b02925330f72ee4e5dd9aefd5 | [
"MIT"
] | null | null | null | CoqList.ml | yoshihiro503/ocaml_util | 8ae4b6f1beef2f4b02925330f72ee4e5dd9aefd5 | [
"MIT"
] | null | null | null | open Datatypes
(** val t : nat **)
let t =
S (S O)
| 7 | 19 | 0.482143 |
f329d3806e2a835a842e5f3108312ce141de69ce | 27,192 | ml | OCaml | hphp/hack/src/hh_oxidize/convert_type_decl.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_oxidize/convert_type_decl.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_oxidize/convert_type_decl.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"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 Core_kernel
open Asttypes
open Longident
open Parsetree
open Printf
open Utils
open Output
open State
open Convert_longid... | 33.201465 | 103 | 0.608708 |
f3456196eac7d3a7b998a13fe50feeb79acc3fd2 | 1,378 | ml | OCaml | src/typing/loc_env.ml | BearerPipelineTest/flow | 6111b8d3358d342f6913c001af908ef0281cdaa5 | [
"MIT"
] | null | null | null | src/typing/loc_env.ml | BearerPipelineTest/flow | 6111b8d3358d342f6913c001af908ef0281cdaa5 | [
"MIT"
] | null | null | null | src/typing/loc_env.ml | BearerPipelineTest/flow | 6111b8d3358d342f6913c001af908ef0281cdaa5 | [
"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.
*)
(** New Environment:
New environment maps locs to types using the ssa builder
**)
open Loc_collections
type t = {
type... | 26.5 | 96 | 0.669086 |
f3f6c350ba8058d41452be263227b63546569e7e | 1,775 | ml | OCaml | data/fa15_min/1099.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/1099.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/1099.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec padZero l1 l2 =
if (List.length l1) < (List.length l2)
then padZero (0 :: l1) l2
else
if (List.length l1) > (List.length l2)
then padZero l1 (0 :: l2)
else (l1, l2);;
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then removeZero t else l;;
let bigAdd l1 l2 =
let add ... | 23.051948 | 113 | 0.548732 |
f3298a57f9c989a97eefc9197d3a208440bf57b0 | 355 | ml | OCaml | benchmarks/nat/nat1/submissions/sub3.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/I/nat/sub3.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/I/nat/sub3.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T14:59:50.000Z | 2022-03-16T19:25:43.000Z | type nat = ZERO | SUCC of nat
let rec natadd : nat -> nat -> nat
=fun n1 n2 -> match n1 with
ZERO -> n2
|SUCC n1' -> SUCC(natadd n1' n2);;
let rec natmul : nat -> nat -> nat
=fun n1 n2 -> match n1 with
ZERO -> ZERO
|SUCC ZERO -> n2
|SUCC n1' -> SUCC(match n2 with
|ZERO -> ZERO
|SUCC ZERO -> SUCC ZERO
|SUCC n2' -> SUC... | 20.882353 | 49 | 0.605634 |
f3b0d9cb86cfe33f228bd1fe3199aeaf075ef36e | 1,115 | ml | OCaml | tests/idempotency/napkinscript/IO.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 166 | 2020-08-11T15:49:10.000Z | 2022-03-23T17:28:36.000Z | tests/idempotency/napkinscript/IO.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 305 | 2020-08-12T07:41:01.000Z | 2022-03-25T06:33:14.000Z | tests/idempotency/napkinscript/IO.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 19 | 2020-08-30T14:25:33.000Z | 2022-03-21T07:58:43.000Z | module IO: sig
val readFile: string -> string
val readStdin: unit -> string
val writeFile: string -> string -> unit
end = struct
(* random chunk size: 2^15, TODO: why do we guess randomly? *)
let chunkSize = 32768
let readFile filename =
let chan = open_in filename in
let buffer = Buffer.create chu... | 24.777778 | 64 | 0.612556 |
f39abac5d970f707fae519d5b9b7c790da326389 | 2,178 | mli | OCaml | src/core/CCSet.mli | bbc2/ocaml-containers | bfaffc5c39cdb1c1c5a4e6e10f01c07ce5835907 | [
"BSD-2-Clause"
] | 403 | 2015-03-04T09:50:16.000Z | 2022-03-31T07:15:26.000Z | src/core/CCSet.mli | bbc2/ocaml-containers | bfaffc5c39cdb1c1c5a4e6e10f01c07ce5835907 | [
"BSD-2-Clause"
] | 326 | 2015-01-01T06:30:20.000Z | 2022-03-23T13:02:47.000Z | src/core/CCSet.mli | bbc2/ocaml-containers | bfaffc5c39cdb1c1c5a4e6e10f01c07ce5835907 | [
"BSD-2-Clause"
] | 92 | 2015-01-10T22:07:33.000Z | 2022-01-25T17:03:55.000Z |
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Wrapper around Set}
@since 0.9 *)
type 'a iter = ('a -> unit) -> unit
(** Fast internal iterator.
@since 2.8 *)
type 'a printer = Format.formatter -> 'a -> unit
module type OrderedType = Set.OrderedType
(** @... | 24.47191 | 90 | 0.575758 |
af0a9f6ce4288194bb916967ebce25584715f80d | 1,850 | ml | OCaml | compiler/passes/pass_ComputedString.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | compiler/passes/pass_ComputedString.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | compiler/passes/pass_ComputedString.ml | 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... | 34.259259 | 102 | 0.689189 |
f3c2cb22465efe64776141b3fa8ab90dc46a77ab | 18,608 | ml | OCaml | data/derived/comb/progs/unify/prog4310.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/prog4310.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4310.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.818342 | 208 | 0.662296 |
af2ce01d9094925f6cc7fc4ffa3f3f6f3fbe17b6 | 963 | mli | OCaml | Resources/coq-8.3pl2/plugins/firstorder/unify.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | Resources/coq-8.3pl2/plugins/firstorder/unify.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | Resources/coq-8.3pl2/plugins/firstorder/unify.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010 *)
(* \VV/ **************************************************************)
(* // * Th... | 40.125 | 78 | 0.474559 |
af29755a3549c17f9757ffce8fe5789ee1f83a55 | 5,201 | ml | OCaml | lib/litmus_c/src/ast_basic.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 7 | 2018-11-27T23:53:58.000Z | 2020-11-22T11:56:16.000Z | lib/litmus_c/src/ast_basic.ml | MattWindsor91/act | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 235 | 2018-10-03T16:37:36.000Z | 2020-11-22T16:26:51.000Z | lib/litmus_c/src/ast_basic.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 1 | 2018-11-13T16:43:19.000Z | 2018-11-13T16:43:19.000Z | (* This file is part of c4f.
Copyright (c) 2018-2022 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... | 27.088542 | 77 | 0.649106 |
f3d4b2d9dc1bf1ebbf841aba553b9a85c9e15c67 | 97 | mli | OCaml | monaco/Position.mli | joelburget/monaco-ocaml | b30eb6ff95294a8886dc9eda78ae4f8aa19b9e2d | [
"0BSD"
] | null | null | null | monaco/Position.mli | joelburget/monaco-ocaml | b30eb6ff95294a8886dc9eda78ae4f8aa19b9e2d | [
"0BSD"
] | null | null | null | monaco/Position.mli | joelburget/monaco-ocaml | b30eb6ff95294a8886dc9eda78ae4f8aa19b9e2d | [
"0BSD"
] | null | null | null | type t =
{ line_number : int
; column : int
}
val to_jv : t -> Jv.t
val of_jv : Jv.t -> t
| 12.125 | 21 | 0.536082 |
af212d5f45dab2069b0f7d7ef4169daa38067a26 | 1,232 | ml | OCaml | brainfuck.ml | dvberkel/ocaml-brainfuck | 1da0cd069c63cd29f3b3a100602bc07e4271ad9c | [
"MIT"
] | null | null | null | brainfuck.ml | dvberkel/ocaml-brainfuck | 1da0cd069c63cd29f3b3a100602bc07e4271ad9c | [
"MIT"
] | null | null | null | brainfuck.ml | dvberkel/ocaml-brainfuck | 1da0cd069c63cd29f3b3a100602bc07e4271ad9c | [
"MIT"
] | null | null | null | open Core.Std
type command =
| PointerIncrement
| PointerDecrement
| Increment
| Decrement
| Output
| Input
| LoopStart
| LoopEnd
let command symbol =
match symbol with
| '>' -> Some PointerIncrement
| '<' -> Some PointerDecrement
| '+' -> Some Increment
| '-' -> Some Decrement
|... | 22 | 59 | 0.521104 |
f38639084bb9da1773f7541c7f448b09c62434b3 | 2,677 | mli | OCaml | src/proto_001_PtCJ7pwo/lib_delegate/logging.mli | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/proto_001_PtCJ7pwo/lib_delegate/logging.mli | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/proto_001_PtCJ7pwo/lib_delegate/logging.mli | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 59.488889 | 100 | 0.566679 |
af28f6db29cab8b0a5eb11be245ec67e2598b3d2 | 223 | ml | OCaml | data/derived/comb/progs/unify/prog2552.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/prog2552.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2552.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ x) in
let base = h in let l = t in List.fold_left f base l;;
let stringOfList f l = List.map (sepConcat ("; " l)) l;;
| 22.3 | 60 | 0.524664 |
af29032b7171c2bd63412d8793231865514df5ef | 173 | ml | OCaml | benchmarks/maxmin/maxmin/submissions/sub32.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/maxmin/maxmin/submissions/sub32.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | null | null | null | benchmarks/maxmin/maxmin/submissions/sub32.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 2 | 2020-02-06T14:59:50.000Z | 2022-03-16T19:25:43.000Z |
let rec fold f l a =
match l with
|[] -> a
|hd::tl -> f hd (fold f tl a);;
let rec max : int list -> int
= fun lst -> fold (fun a b -> if (a > b) then a else b) lst 0;;
| 15.727273 | 63 | 0.526012 |
af2951239ec88a88eee57041e8177a7f1d94168a | 425 | mli | OCaml | lwt/client/dns_client_lwt.mli | cfcs/ocaml-dns | a2680183febd5432ffa8797671b04e17831e7aae | [
"BSD-2-Clause"
] | null | null | null | lwt/client/dns_client_lwt.mli | cfcs/ocaml-dns | a2680183febd5432ffa8797671b04e17831e7aae | [
"BSD-2-Clause"
] | null | null | null | lwt/client/dns_client_lwt.mli | cfcs/ocaml-dns | a2680183febd5432ffa8797671b04e17831e7aae | [
"BSD-2-Clause"
] | null | null | null | (** {!Lwt_unix} helper module for {!Dns_client}.
For more information see the {!Dns_client.Make} functor.
*)
(** A flow module based on non-blocking I/O on top of the
Lwt_unix socket API. *)
module Transport : Dns_client.S
with type flow = Lwt_unix.file_descr
and type io_addr = Lwt_unix.inet_addr * int
... | 28.333333 | 60 | 0.703529 |
f3997b1f59d3d07caf6ee161a39cb1d76cb447cd | 16,888 | ml | OCaml | hphp/hack/test/unit/informant/informant_test.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/test/unit/informant/informant_test.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/informant/informant_test.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | module Report_comparator : Asserter.Comparator
with type t = Informant_sig.report = struct
open Informant_sig
type t = Informant_sig.report
let to_string v = match v with
| Move_along ->
"Move_along"
| Restart_server state ->
let str = begin match state with
| None ->... | 39.550351 | 85 | 0.764981 |
af1c18f2f8097535e57d12be4b239c29904c3ec7 | 3,633 | mli | OCaml | src/proto_alpha/lib_protocol/fixed_point_repr.mli | zshipko/tezos | c097112b0c0f19d93a8de4cc379cf33de9e07355 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/fixed_point_repr.mli | zshipko/tezos | c097112b0c0f19d93a8de4cc379cf33de9e07355 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/fixed_point_repr.mli | zshipko/tezos | c097112b0c0f19d93a8de4cc379cf33de9e07355 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 34.932692 | 81 | 0.536196 |
f3b600f1f0ecb38622b2268164a6544f7fea05e9 | 431 | mli | OCaml | hphp/hack/src/typing/typing_special_fun.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/typing/typing_special_fun.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/typing/typing_special_fun.mli | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** Transform the types of special functions whose type is not denotable in hack, e.g. idx *)
val transform_special_... | 25.352941 | 93 | 0.709977 |
f3713820644e8e7d99614f31daecd4aaf1a0c0dd | 1,148 | ml | OCaml | src/redis_lwt.ml | j0sh/ocaml-redis | 122825b6f272867a0c5d74ce28467155ef74975f | [
"BSD-3-Clause"
] | null | null | null | src/redis_lwt.ml | j0sh/ocaml-redis | 122825b6f272867a0c5d74ce28467155ef74975f | [
"BSD-3-Clause"
] | null | null | null | src/redis_lwt.ml | j0sh/ocaml-redis | 122825b6f272867a0c5d74ce28467155ef74975f | [
"BSD-3-Clause"
] | null | null | null | open Redis
module IO = struct
type 'a t = 'a Lwt.t
type file_descr = Lwt_unix.file_descr
type in_channel = Lwt_chan.in_channel
type out_channel = Lwt_chan.out_channel
type zz = unit
type 'a stream = 'a Lwt_stream.t
let (>>=) = Lwt.(>>=)
let catch = Lwt.catch
let try_bind = Lwt.try_bind
let ignore... | 26.090909 | 58 | 0.744774 |
f32d86473be969c6579ed0527fba1daaf4f63033 | 7,669 | ml | OCaml | data/derived/comb/progs/unify/prog8485.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/prog3699.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3699.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.821549 | 148 | 0.657713 |
af194eb6d1eca5822d9a1a4074b72834ea2e2d0f | 686 | ml | OCaml | mlexplain/Option.ml | Docteur-Lalla/jsexplain | b9b0d46fdd39fa566a3e4f8a13ac4c0af1bd0f34 | [
"Apache-2.0"
] | 1 | 2019-03-26T11:02:11.000Z | 2019-03-26T11:02:11.000Z | mlexplain/Option.ml | Docteur-Lalla/mlexplain | b9b0d46fdd39fa566a3e4f8a13ac4c0af1bd0f34 | [
"Apache-2.0"
] | null | null | null | mlexplain/Option.ml | Docteur-Lalla/mlexplain | b9b0d46fdd39fa566a3e4f8a13ac4c0af1bd0f34 | [
"Apache-2.0"
] | 1 | 2017-06-21T06:54:54.000Z | 2017-06-21T06:54:54.000Z | (** Monadic bind operation
* Haskell notation : Monad m => m a -> (a -> m b) -> m b
* In this case, it takes an option, applies the function iff the given option in not None
* and return the result :
* val bind : 'a option -> ('a -> 'b option) -> 'b option *)
let bind opt f = match opt with
| Some v -> f v
| None -... | 24.5 | 90 | 0.604956 |
f32c3392fab1cbe8502b9a2a01ee9621f6f91d5f | 445 | ml | OCaml | scripts/lst.ml | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 4 | 2017-12-06T14:09:20.000Z | 2021-11-06T03:42:54.000Z | scripts/lst.ml | eaburns/pbnf | 36e291c89fd95fd2578cdf61201ff983c2e21a68 | [
"MIT"
] | null | null | null | scripts/lst.ml | eaburns/pbnf | 36e291c89fd95fd2578cdf61201ff983c2e21a68 | [
"MIT"
] | 1 | 2019-04-26T08:17:22.000Z | 2019-04-26T08:17:22.000Z | (**
Some handy list operations
*)
(* Build a list that is a range of values between min and max. *)
let rec range ?(accum=[]) ?(step=pred) ?(min=1) max =
if max < min then accum
else range ~accum:(max :: accum) ~step:step ~min:min (step max)
(* Associate all elements of [alst] with all elements of [blst] (th... | 29.666667 | 91 | 0.649438 |
f359a3406d20591db543a777ba3a93e52f7c89af | 632 | ml | OCaml | vendor/core_kernel/src/result.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | vendor/core_kernel/src/result.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | vendor/core_kernel/src/result.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | open! Import
module Result = Base.Result
module Stable = struct
module V1 = struct
type ('a, 'b) t = ('a, 'b) Result.t =
| Ok of 'a
| Error of 'b
[@@deriving bin_io, compare, hash, sexp]
let map x ~f1 ~f2 =
match x with
| Error err -> Error (f2 err)
| Ok x -> Ok (f1 x)
... | 20.387097 | 85 | 0.558544 |
f3c1b9ec6c93bea04b4250ccc2c8855d54fd3448 | 899 | mli | OCaml | src/services/get_def/findRefsUtils.mli | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 1 | 2018-12-14T02:08:36.000Z | 2018-12-14T02:08:36.000Z | src/services/get_def/findRefsUtils.mli | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | null | null | null | src/services/get_def/findRefsUtils.mli | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val compute_docblock: File_key.t -> string (* content *) -> Docblock.t
val compute_ast_result:
Options.t ->
File_key.t ->
string ... | 26.441176 | 85 | 0.688543 |
f3fe9b056414d63be95d210ab4183ef4a52d9332 | 236 | ml | OCaml | extras/solutions/list/alist_sum.ml | victornicolet/Synduce | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 3 | 2021-11-23T04:43:40.000Z | 2021-12-09T17:20:59.000Z | extras/solutions/list/alist_sum.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | null | null | null | extras/solutions/list/alist_sum.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | 1 | 2021-05-12T15:14:40.000Z | 2021-05-12T15:14:40.000Z |
let s0 = 0
let f0 x0 (x10, x11) = let (key, value) = (x10, x11) in
x0 = key ? value : 0
let join x2 x3 = x2 + x3
let rec h =
function Empty -> s0 | Single(a) -> f0 x a
| Concat(l, r) -> join (h r) (h l)
| 18.153846 | 55 | 0.478814 |
f3ffc211151a1f4325e32483e835ab5777550dac | 247 | mli | OCaml | libraries/elasticache/lib/createGlobalReplicationGroup.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticache/lib/createGlobalReplicationGroup.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/elasticache/lib/createGlobalReplicationGroup.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = CreateGlobalReplicationGroupMessage.t
type output = CreateGlobalReplicationGroupResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 35.285714 | 74 | 0.777328 |
f3bbbfd86e860493a034e3faa32f9c577ed79604 | 12,772 | ml | OCaml | src/ocaml_trunk/typing/includecore.ml | haselwarter/merlin | 9d05bd20ff4d4ca3070e3c7a48f0755edc63f65f | [
"MIT"
] | 1 | 2021-03-12T10:45:56.000Z | 2021-03-12T10:45:56.000Z | src/ocaml_trunk/typing/includecore.ml | haselwarter/merlin | 9d05bd20ff4d4ca3070e3c7a48f0755edc63f65f | [
"MIT"
] | null | null | null | src/ocaml_trunk/typing/includecore.ml | haselwarter/merlin | 9d05bd20ff4d4ca3070e3c7a48f0755edc63f65f | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 37.89911 | 80 | 0.597792 |
f3f9111d265bda030db25f500af17d84582f1e43 | 86,737 | ml | OCaml | src/ocaml-3.12.0/parsing/lexer.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/parsing/lexer.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/parsing/lexer.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | # 17 "parsing/lexer.mll"
open Lexing
open Misc
open Parser
type error =
| Illegal_character of char
| Illegal_escape of string
| Unterminated_comment
| Unterminated_string
| Unterminated_string_in_comment
| Keyword_as_label of string
| Literal_overflow of string
;;
exception Error of error * Location.... | 47.894533 | 115 | 0.666901 |
af06d280b32322d6370f135606be51f855fc4f9a | 6,784 | ml | OCaml | src/delayed_backend.ml | CraigFe/mirage-vnetif | dec0a7aad2b2e1fa10b90cf7f164c4bbc38b6c78 | [
"ISC"
] | 7 | 2015-03-12T14:21:34.000Z | 2016-01-06T00:31:32.000Z | src/delayed_backend.ml | CraigFe/mirage-vnetif | dec0a7aad2b2e1fa10b90cf7f164c4bbc38b6c78 | [
"ISC"
] | 15 | 2015-03-16T15:43:54.000Z | 2017-05-22T15:05:45.000Z | src/delayed_backend.ml | CraigFe/mirage-vnetif | dec0a7aad2b2e1fa10b90cf7f164c4bbc38b6c78 | [
"ISC"
] | 5 | 2016-03-14T17:47:41.000Z | 2016-12-21T17:20:33.000Z | (*
* Copyright (c) 2016 Magnus Skjegstad <magnus@docker.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" ... | 35.518325 | 122 | 0.618662 |
f36c8a4a85f512b34097d013bd776360b948a04a | 2,279 | mli | OCaml | herd/modelUtils.mli | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | herd/modelUtils.mli | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | herd/modelUtils.mli | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 40.696429 | 78 | 0.425625 |
f3ff3e76b03dcb6488246ef224f9b664bc718e7d | 218 | mli | OCaml | libraries/rds/lib/modifyDBSnapshot.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/rds/lib/modifyDBSnapshot.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/rds/lib/modifyDBSnapshot.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = ModifyDBSnapshotMessage.t
type output = ModifyDBSnapshotResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 19.818182 | 85 | 0.770642 |
f35170bbdeb7ab87aa59f9d78415408f0818f9da | 26,324 | ml | OCaml | src/dune/super_context.ml | JasonGross/dune | 623706dd61fb8d45c7ee1a54546c039447972f4d | [
"MIT"
] | null | null | null | src/dune/super_context.ml | JasonGross/dune | 623706dd61fb8d45c7ee1a54546c039447972f4d | [
"MIT"
] | null | null | null | src/dune/super_context.ml | JasonGross/dune | 623706dd61fb8d45c7ee1a54546c039447972f4d | [
"MIT"
] | null | null | null | open! Stdune
open Import
let default_context_flags (ctx : Context.t) =
let c = Ocaml_config.ocamlc_cflags ctx.ocaml_config in
let cxx =
List.filter c ~f:(fun s -> not (String.is_prefix s ~prefix:"-std="))
in
Foreign.Language.Dict.make ~c ~cxx
module Env_tree : sig
type t
val get_node : t -> dir:Path.... | 34.365535 | 80 | 0.644127 |
f3c86f7fec7a2353b7e2bfd601506a69e5c1c2b6 | 8,304 | ml | OCaml | libraries/ec2/lib/describeSubnets.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/describeSubnets.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeSubnets.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module DescribeSubnetsRequest =
struct
type t =
{
filters: FilterList.t
[@ocaml.doc
"<p>One or more filters.</p> <ul> <li> <p> <code>availability-zone</code> - The Availability Zone for the subnet. Y... | 55.36 | 2,389 | 0.601517 |
f317c58bebc8a8faf1fa4b156c7e37cbba3858c6 | 1,689 | ml | OCaml | tools/gen_version.ml | chrismamo1/ocamlformat | e6e1aa8728cb16868b0ad1394af3283e5473b6a2 | [
"MIT"
] | null | null | null | tools/gen_version.ml | chrismamo1/ocamlformat | e6e1aa8728cb16868b0ad1394af3283e5473b6a2 | [
"MIT"
] | null | null | null | tools/gen_version.ml | chrismamo1/ocamlformat | e6e1aa8728cb16868b0ad1394af3283e5473b6a2 | [
"MIT"
] | null | null | null | (**********************************************************************
* *
* OCamlFormat *
* *
* Copyright (c) 2019-present, ... | 39.27907 | 75 | 0.433393 |
f31819c9dd46d54b1733edb8866baaf926259e7d | 638 | ml | OCaml | common/expectation.ml | kindredspirit/ppx_expect | ef353c75b5a1e4c9d5997f01b0af3e4e2faed479 | [
"MIT"
] | null | null | null | common/expectation.ml | kindredspirit/ppx_expect | ef353c75b5a1e4c9d5997f01b0af3e4e2faed479 | [
"MIT"
] | null | null | null | common/expectation.ml | kindredspirit/ppx_expect | ef353c75b5a1e4c9d5997f01b0af3e4e2faed479 | [
"MIT"
] | null | null | null | open Ppx_compare_lib.Builtin
open Ppx_sexp_conv_lib.Conv
module Body = struct
type 'a t =
| Exact of string
| Pretty of 'a
| Unreachable
[@@deriving sexp_of, compare]
let map_pretty t ~f =
match t with
| (Exact _ | Unreachable) as t -> t
| Pretty x -> Pretty (f x)
end
type 'a t =
{ t... | 22 | 65 | 0.626959 |
f33ee85a19f4eb1290b7150876aadd9f2287a513 | 4,462 | ml | OCaml | src/yaks-be/yaks-be-sql/yaks_be_sql.ml | atolab/yaks | dbb6a1eca1da2d6a2df6e0b253122e927e5699bb | [
"Apache-2.0"
] | 7 | 2018-07-04T07:58:00.000Z | 2020-06-06T04:49:15.000Z | src/yaks-be/yaks-be-sql/yaks_be_sql.ml | atolab/yaks | dbb6a1eca1da2d6a2df6e0b253122e927e5699bb | [
"Apache-2.0"
] | null | null | null | src/yaks-be/yaks-be-sql/yaks_be_sql.ml | atolab/yaks | dbb6a1eca1da2d6a2df6e0b253122e927e5699bb | [
"Apache-2.0"
] | null | null | null | open Apero
open Yaks_types
open Yaks_core_types
open Yaks_be
open Yaks_storage
open Yaks_common_errors
open Caqti_driver
open Be_sql_types
module SQLBE = struct
module type Config = sig
val id : BeId.t
val properties : properties
val conx : connection
end
module Make (C : Config) = struct
... | 38.8 | 180 | 0.644778 |
f3fdf634d762cbd65707701244cca64fcb1005a7 | 34,499 | ml | OCaml | src/proto_011_PtHangz2/lib_client_commands/client_proto_programs_commands.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_011_PtHangz2/lib_client_commands/client_proto_programs_commands.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_011_PtHangz2/lib_client_commands/client_proto_programs_commands.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.899063 | 82 | 0.5379 |
f33c19ac2c708cf9bae142df128e0c6b3c3a7487 | 3,500 | mli | OCaml | test_native/_opam/lib/ocaml/seq.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 48 | 2018-09-29T11:40:26.000Z | 2021-11-14T17:13:48.000Z | test_native/_opam/lib/ocaml/seq.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 48 | 2019-01-09T23:16:18.000Z | 2021-12-13T09:13:56.000Z | test_native/_opam/lib/ocaml/seq.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 5 | 2019-05-20T06:05:05.000Z | 2021-09-22T16:56:46.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 44.871795 | 86 | 0.527143 |
d2db4a81c8172132dd3e0b3d5210dde510bb126d | 10,655 | ml | OCaml | src/xref2/expand_tools.ml | dra27/odoc | d70a0fc33805e6d8f4ad62293570a2b4b761b178 | [
"ISC"
] | null | null | null | src/xref2/expand_tools.ml | dra27/odoc | d70a0fc33805e6d8f4ad62293570a2b4b761b178 | [
"ISC"
] | null | null | null | src/xref2/expand_tools.ml | dra27/odoc | d70a0fc33805e6d8f4ad62293570a2b4b761b178 | [
"ISC"
] | null | null | null | open Utils.ResultMonad
open Odoc_model
open Errors
type expansion =
| Signature of Component.Signature.t
| Functor of Component.FunctorParameter.t * Component.ModuleType.expr
let rec module_needs_recompile : Component.Module.t -> bool =
fun m -> module_decl_needs_recompile m.type_
and module_decl_needs_recompil... | 37.783688 | 108 | 0.662318 |
f37e3fedc75541e43a3b5d3eaa260557993195f3 | 23,808 | ml | OCaml | src/main.ml | koleini/mirage-jitsu | dbec374ec87852e91eb67b1be50ad62e3e220f4a | [
"0BSD"
] | null | null | null | src/main.ml | koleini/mirage-jitsu | dbec374ec87852e91eb67b1be50ad62e3e220f4a | [
"0BSD"
] | null | null | null | src/main.ml | koleini/mirage-jitsu | dbec374ec87852e91eb67b1be50ad62e3e220f4a | [
"0BSD"
] | 2 | 2015-06-05T10:58:00.000Z | 2015-09-05T20:27:00.000Z | (*
* Copyright (c) 2014-2015 Magnus Skjegstad <magnus@skjegstad.com>
* Copyright (c) 2014-2016 Masoud Koleini <masoud.koleini@nottingham.ac.uk>
*
* 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 ... | 47.616 | 208 | 0.601016 |
af18a7c2ca262af2e577ef4df287105161993689 | 5,207 | ml | OCaml | unix/vat_config.ml | hannesm/capnp-rpc | 309d4d66fb3963f12e6101d9285e56fff9c4702d | [
"Apache-2.0"
] | null | null | null | unix/vat_config.ml | hannesm/capnp-rpc | 309d4d66fb3963f12e6101d9285e56fff9c4702d | [
"Apache-2.0"
] | null | null | null | unix/vat_config.ml | hannesm/capnp-rpc | 309d4d66fb3963f12e6101d9285e56fff9c4702d | [
"Apache-2.0"
] | null | null | null | open Astring
module Auth = Capnp_rpc_lwt.Auth
module Log = Capnp_rpc.Debug.Log
module Listen_address = struct
include Network.Location
let parse_tcp s =
match String.cut ~sep:":" s with
| None -> Error (`Msg "Missing :PORT in listen address")
| Some (host, port) ->
match String.to_int port with... | 32.341615 | 115 | 0.70482 |
f31c42fb628ca1b58ea579eea045ea488845363e | 222 | ml | OCaml | test/main/com/ocaml/sdk/output/warnings/samples/unused/w32_value.ml | QuentinRa/ocaml-plugin-intellij | 8c578585d524171097c2c6e8d8397ff5fa9e2ed1 | [
"MIT"
] | 1 | 2022-03-05T11:28:48.000Z | 2022-03-05T11:28:48.000Z | test/main/com/ocaml/sdk/output/warnings/samples/unused/w32_value.ml | QuentinRa/ocaml-plugin-intellij | 8c578585d524171097c2c6e8d8397ff5fa9e2ed1 | [
"MIT"
] | 52 | 2022-02-01T11:08:25.000Z | 2022-03-31T20:42:43.000Z | test/main/com/ocaml/sdk/output/warnings/samples/unused/w32_value.ml | QuentinRa/intellij-ocaml-plugin | 8c578585d524171097c2c6e8d8397ff5fa9e2ed1 | [
"MIT"
] | 1 | 2022-03-25T03:10:55.000Z | 2022-03-25T03:10:55.000Z | (* Warning 32: unused value x. *)
let x = 5
let x = 7
(* unused values in functor argument *)
module F (_ : sig val t : int end) = struct end
module G (X : sig val x : int end) = X
module H (X : sig val x : int end) = X | 22.2 | 47 | 0.603604 |
f3d022d2face16c308c08e25bc5c82c29924a436 | 1,602 | ml | OCaml | libraries/route53/lib/getChange.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/route53/lib/getChange.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/route53/lib/getChange.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = GetChangeRequest.t
type output = GetChangeResponse.t
type error = Errors_internal.t
let service = "route53"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of servi... | 26.7 | 88 | 0.621099 |
f3c641cf70e0cb19ccc5d88d73e6bcb54ee6e072 | 8,860 | ml | OCaml | src/checker.ml | chenyukang/rubytt | 3b9898cd9e180594ee30fb74cea9a8356a6e0c14 | [
"MIT"
] | 21 | 2016-11-24T10:56:19.000Z | 2019-05-23T15:14:17.000Z | src/checker.ml | chenyukang/rubytt | 3b9898cd9e180594ee30fb74cea9a8356a6e0c14 | [
"MIT"
] | 6 | 2016-11-28T07:11:47.000Z | 2017-07-07T15:30:33.000Z | src/checker.ml | chenyukang/rubytt | 3b9898cd9e180594ee30fb74cea9a8356a6e0c14 | [
"MIT"
] | null | null | null | open Core
open Node
type env = {
env_ty : string;
mutable parent: env option;
mutable visited: (string, Node.node_t) Hashtbl.t;
mutable variables: (Node.node_t, bool) Hashtbl.t;
mutable children: env list;
}
let make_env ?ty:(ty="top") ()=
{
env_ty = ty;
parent = None;
visited = Hashtbl.Poly.c... | 37.226891 | 100 | 0.540293 |
f3dce0f3e3158eb75791cb5bf27392b6296f8e44 | 1,446 | ml | OCaml | examples/ocaml_examples.ml | InsidersByte/bs-fetch | 7dc0a9d3144be47f3a5e14e2f0dfc12eabae39f9 | [
"MIT"
] | null | null | null | examples/ocaml_examples.ml | InsidersByte/bs-fetch | 7dc0a9d3144be47f3a5e14e2f0dfc12eabae39f9 | [
"MIT"
] | null | null | null | examples/ocaml_examples.ml | InsidersByte/bs-fetch | 7dc0a9d3144be47f3a5e14e2f0dfc12eabae39f9 | [
"MIT"
] | null | null | null | module Option = struct
let unwrapUnsafely = function
| Some v -> v
| None -> raise (Invalid_argument "unwrapUnsafely called on None");
end
let _ =
Js.Promise.(
Fetch.fetch "/api/hellos/1"
|> then_ Fetch.Response.text
|> then_ (fun text -> print_endline text |> resolve)
)
let _ =
Js.Promi... | 32.133333 | 78 | 0.587828 |
f39d8ffffdd226575887c5b92a546c8fa28de2a1 | 2,854 | ml | OCaml | src/intermediate/js_to_bs/predefined_code/internal_code.ml | 0zat/gen-bs | 20348991775d9ef3974c3b824968a0ab219502a8 | [
"MIT"
] | 7 | 2017-08-01T09:11:27.000Z | 2020-10-23T09:20:32.000Z | src/intermediate/js_to_bs/predefined_code/internal_code.ml | 0zat/gen-bs | 20348991775d9ef3974c3b824968a0ab219502a8 | [
"MIT"
] | null | null | null | src/intermediate/js_to_bs/predefined_code/internal_code.ml | 0zat/gen-bs | 20348991775d9ef3974c3b824968a0ab219502a8 | [
"MIT"
] | null | null | null | let internal_use_code = "
type _baseClass
"
let variadic_callback_code = "
(* variadic callback code *)
type ('a, 'b) variadic_arity8 = 'a1 * 'a2 * 'a3 * 'a4 * 'a5 * 'a6 * 'a7 * 'a8 * 'b
constraint 'a = 'a1 * 'a2 * 'a3 * 'a4 * 'a5 * 'a6 * 'a7 * 'a8
type ('a, 'b) variadic_arity7 = 'a1 * 'a2 * 'a3 * 'a4 * 'a5 * 'a6 * ... | 48.372881 | 99 | 0.524177 |
f37ccf89d67678b208fe63d60a82d279974d3421 | 231 | ml | OCaml | benchmarks/C/iter/sol220.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/iter/sol220.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/iter/sol220.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z |
let rec iter ((n:int),(f: int->int)) (x:int) :int =
if n<=0 then x
else f (iter(n-1,f) x)
(*
let a31 = iter (3, function x -> 2+x) 0
let a32 = iter (0, function x -> 2*x) 4
let a33 = iter (11, function x -> 2*x+1) 7 *)
| 23.1 | 51 | 0.52381 |
f39ff6bd870f4d695604580658e64eeca3016f39 | 2,229 | mli | OCaml | lib/functoria/type.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 1,622 | 2015-01-03T13:32:31.000Z | 2022-03-31T23:16:50.000Z | lib/functoria/type.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 739 | 2015-01-08T12:44:35.000Z | 2022-03-30T06:31:27.000Z | lib/functoria/type.mli | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 190 | 2015-01-04T12:20:37.000Z | 2022-03-30T02:57:26.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... | 35.951613 | 80 | 0.68192 |
d2daafc6728ddcc9982aede6833546010ee3b778 | 26,781 | ml | OCaml | infer/src/base/IssueType.ml | raghavtan/infer | c23e0044fc86022adcfdc7af3ae150ec4a61069f | [
"MIT"
] | null | null | null | infer/src/base/IssueType.ml | raghavtan/infer | c23e0044fc86022adcfdc7af3ae150ec4a61069f | [
"MIT"
] | 8 | 2021-03-01T21:21:21.000Z | 2022-02-27T09:02:52.000Z | infer/src/base/IssueType.ml | raghavtan/infer | c23e0044fc86022adcfdc7af3ae150ec4a61069f | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module L = Die
type visibility = User | Developer | Silent [@@deriving compare, equal]
let string_of... | 34.871094 | 107 | 0.793249 |
f3a47c6a52d5a81ce519bf1fdac869013fe2de93 | 153 | ml | OCaml | tests/lexer/context/brackets.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/lexer/context/brackets.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/lexer/context/brackets.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | (* We'd expect commas to terminate the function *)
let _ = (fun x -> x, 1)
(* We'd expect parenthesis to terminate the function *)
let _ = (fun x -> x)
| 25.5 | 55 | 0.640523 |
f3c7bfc5cc696e583a29715b47c289bc1fcec18c | 2,619 | ml | OCaml | src/monitor0.ml | npm-opam/async_kernel | f10eb24919198c15f3a1f95e41f5eae67e93cb17 | [
"Apache-2.0"
] | null | null | null | src/monitor0.ml | npm-opam/async_kernel | f10eb24919198c15f3a1f95e41f5eae67e93cb17 | [
"Apache-2.0"
] | null | null | null | src/monitor0.ml | npm-opam/async_kernel | f10eb24919198c15f3a1f95e41f5eae67e93cb17 | [
"Apache-2.0"
] | null | null | null | open Core_kernel.Std
open Import
let debug = Debug.monitor
type t = Types.Monitor.t =
{ name : Info.t
; here : Source_code_position.t option
; id : int
; parent : t option
; mutable next_error ... | 27.861702 | 89 | 0.577701 |
f3a1bff9d6c18a050fdec29496cd506599e768fc | 9,435 | ml | OCaml | src/commands/coverageCommand.ml | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | src/commands/coverageCommand.ml | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | src/commands/coverageCommand.ml | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | 2 | 2021-02-02T14:51:26.000Z | 2021-02-02T14:52:05.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.
*)
(***********************************************************************)
(* flow coverage command *)
(*********************************... | 37.440476 | 99 | 0.627557 |
d2f4f5c6c4c6d8b4889cb273093b6b18a557c80f | 12,816 | ml | OCaml | lib/arm/arm_target.ml | CryHavoc21/bap | 800f7a2202f7048d3bbc76b758169188b335aba9 | [
"MIT"
] | 1 | 2021-03-20T16:17:27.000Z | 2021-03-20T16:17:27.000Z | lib/arm/arm_target.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | null | null | null | lib/arm/arm_target.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | null | null | null | let package = "bap"
open Core_kernel
open Bap_core_theory
open Bap.Std
open KB.Syntax
open Poly
module CT = Theory
type r128 and r80 and r64 and r32 and r16 and r8
type 'a bitv = 'a CT.Bitv.t CT.Value.sort
let r128 : r128 bitv = CT.Bitv.define 128
let r80 : r80 bitv = CT.Bitv.define 80
let r64 : r64 bitv = CT.Bitv... | 26.811715 | 72 | 0.618446 |
f3bd4c0399d360529c67107d929e729b3ea3cf00 | 18,120 | ml | OCaml | src/server/find_refs/propertyFindRefs.ml | Guillerbr/flow | a66d5dcbde2f1b14abd927e054745eb58da065ea | [
"MIT"
] | 1 | 2019-10-03T00:45:08.000Z | 2019-10-03T00:45:08.000Z | src/server/find_refs/propertyFindRefs.ml | dengxiaoning/flow | 3efa6bb38413ff9b4fd823ca294bd70010c85fd5 | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | src/server/find_refs/propertyFindRefs.ml | dengxiaoning/flow | 3efa6bb38413ff9b4fd823ca294bd70010c85fd5 | [
"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 Ast = Flow_ast
module File_sig = File_sig.With_Loc
open Utils_js
open Parsing_heaps_utils
open Loc_collections
open Server... | 38.800857 | 118 | 0.70872 |
f3c35ef663f5cd97482922aa4bd1129e59aa0361 | 2,077 | ml | OCaml | str/run_mikmatch_str.ml | mjambon/mikmatch | 4ee0d1158370be247763027018bbf54b865014dd | [
"BSD-3-Clause"
] | 13 | 2015-03-30T04:32:29.000Z | 2020-11-02T04:11:33.000Z | str/run_mikmatch_str.ml | mjambon/mikmatch | 4ee0d1158370be247763027018bbf54b865014dd | [
"BSD-3-Clause"
] | 5 | 2015-09-13T02:11:11.000Z | 2020-03-28T23:45:54.000Z | str/run_mikmatch_str.ml | mjambon/mikmatch | 4ee0d1158370be247763027018bbf54b865014dd | [
"BSD-3-Clause"
] | 4 | 2016-02-24T03:39:45.000Z | 2020-03-28T16:33:24.000Z | exception Mikmatch_exit
let nocase s =
let len = String.length s in
let buf = Buffer.create (4 * len) in
for i = 0 to len - 1 do
let c = s.[i] in
let cl = Char.lowercase_ascii c
and cu = Char.uppercase_ascii c in
if cl <> cu then (* in this case, cl and cu are letters *)
Printf.bprintf buf ... | 22.824176 | 64 | 0.600867 |
f3fd89d9f3b80127a3c3d5665661ae319f66a55d | 17,268 | ml | OCaml | hphp/hack/src/hh_parse.ml | qcmaude/hhvm | 4a5d92b8c9b763989579aa733911a260b0df0f5e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_parse.ml | qcmaude/hhvm | 4a5d92b8c9b763989579aa733911a260b0df0f5e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hh_parse.ml | qcmaude/hhvm | 4a5d92b8c9b763989579aa733911a260b0df0f5e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* 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.
*
*)
(**
*
* Usage: hh_parse [OPTIONS] [FILES]
*
* --full-fidelity-json
* --full-fidelity-errors
* --full-f... | 33.595331 | 89 | 0.698517 |
af1275071d3fc8206e4d1e10e0b192037741a8d2 | 89,687 | ml | OCaml | src/middle/Stan_math_signatures.ml | mandel/stanc3 | 2e5562c16c7567ddf7fedc988902f9e38e390136 | [
"BSD-3-Clause"
] | null | null | null | src/middle/Stan_math_signatures.ml | mandel/stanc3 | 2e5562c16c7567ddf7fedc988902f9e38e390136 | [
"BSD-3-Clause"
] | 1 | 2020-10-12T23:55:15.000Z | 2020-11-10T16:28:09.000Z | src/middle/Stan_math_signatures.ml | mandel/stanc3 | 2e5562c16c7567ddf7fedc988902f9e38e390136 | [
"BSD-3-Clause"
] | 1 | 2020-10-12T23:48:37.000Z | 2020-10-12T23:48:37.000Z | (** The signatures of the Stan Math library, which are used for type checking *)
open Core_kernel
open Core_kernel.Poly
(** The "dimensionality" (bad name?) is supposed to help us represent the
vectorized nature of many Stan functions. It allows us to represent when
a function argument can be just a real or m... | 40.582353 | 135 | 0.657955 |
f3ebdf5656dd86fe9ea0085a1341e102cda4b68d | 3,039 | mll | OCaml | src/scanner.mll | Naereen/Coral | 8ee2612fc2367121b859e7f60de1fcd71e127586 | [
"Apache-2.0"
] | null | null | null | src/scanner.mll | Naereen/Coral | 8ee2612fc2367121b859e7f60de1fcd71e127586 | [
"Apache-2.0"
] | null | null | null | src/scanner.mll | Naereen/Coral | 8ee2612fc2367121b859e7f60de1fcd71e127586 | [
"Apache-2.0"
] | null | null | null | {
open Parser
exception Eof
let strip_quotes str =
match String.length str with
| 0 | 1 | 2 -> ""
| len -> String.sub str 1 (len - 2)
}
(* a simple lexer implemented in ocamllex for lexing a Coral/Python program, with a few minor limitations.
several Python features have not yet been implemented and will t... | 31.65625 | 245 | 0.525831 |
f349bf37618180bb3ff98cf30141f8348c783e27 | 5,534 | mli | OCaml | eval/sherrloc/easyocaml++/debugger/dynlink.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/debugger/dynlink.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/debugger/dynlink.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 42.569231 | 78 | 0.662992 |
af12f741d649947cebcb351ab4186951c7150329 | 65,470 | ml | OCaml | src/commands/commandUtils.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/commands/commandUtils.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/commands/commandUtils.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"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 Utils_js
let run_command command argv =
try
let args = CommandSpec.args_of_argv command argv in
CommandSpec.run c... | 33.677984 | 157 | 0.6691 |
f31ed0ef9c565485671f561e51971e75da49e8cc | 3,965 | mli | OCaml | src/constant.mli | ostera/hardcaml | 1100988ea72e3b79c4c47a0a954a122e6c1f9131 | [
"MIT"
] | null | null | null | src/constant.mli | ostera/hardcaml | 1100988ea72e3b79c4c47a0a954a122e6c1f9131 | [
"MIT"
] | null | null | null | src/constant.mli | ostera/hardcaml | 1100988ea72e3b79c4c47a0a954a122e6c1f9131 | [
"MIT"
] | null | null | null | (** Representation of variable width Constants and conversion to/from OCaml types. *)
open! Import
type t = Bits0.t [@@deriving compare, sexp, bin_io]
module Signedness : sig
type t =
| Signed
| Unsigned
[@@deriving sexp_of]
end
(* The empty constant. Contains no bits. *)
val empty : t
(** [create n] c... | 30.736434 | 91 | 0.674905 |
f3e82833afe61fd49b5fcfd003e7cc2c4f793185 | 1,079 | ml | OCaml | data/fa15/0808.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/0808.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/0808.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec digitsOfInt n =
let rec loop x listX =
if x = 0 then listX else loop (x / 10) ((x mod 10) :: listX) in
match n with | 0 -> [0] | x' -> loop x' [];;
let rec sumList xs = match xs with | [] -> 0 | h::t -> h + (sumList t);;
let rec additivePersistence n =
let rec loop x y =
if x = 0 then y else (l... | 21.156863 | 75 | 0.554217 |
af2306b4291b39f221a380c4727fa9995f974ffb | 493 | mli | OCaml | src/comb.mli | ostera/hardcaml | 1100988ea72e3b79c4c47a0a954a122e6c1f9131 | [
"MIT"
] | 372 | 2018-05-25T10:51:24.000Z | 2022-03-25T14:38:34.000Z | src/comb.mli | ostera/hardcaml | 1100988ea72e3b79c4c47a0a954a122e6c1f9131 | [
"MIT"
] | 9 | 2018-07-15T02:52:39.000Z | 2022-01-05T15:11:16.000Z | src/comb.mli | ostera/hardcaml | 1100988ea72e3b79c4c47a0a954a122e6c1f9131 | [
"MIT"
] | 18 | 2018-08-12T06:08:50.000Z | 2022-02-22T11:42:17.000Z | (** Combinational logic API.
This includes standard arithmetic, logical, equality and comparision operators, as
well as more hardware specific functions such as bit selection, concatention,
multiplexing etc.
In operators, a trailing colon [:] indicates that the operator treats the bits as
unsigned... | 41.083333 | 86 | 0.74645 |
f32f54028055c4c99789a74891bd15a91f18bbfc | 2,609 | ml | OCaml | src/lib/memory_stats/memory_stats.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/memory_stats/memory_stats.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/memory_stats/memory_stats.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | (* memory_stats.ml -- log OCaml, jemalloc memory data *)
open Core_kernel
open Async
let log_memory_stats logger ~process =
don't_wait_for
(let bytes_per_word = Sys.word_size / 8 in
(* Curve points are allocated in C++ and deallocated with finalizers.
The points on the C++ heap are much bigger... | 37.271429 | 80 | 0.57225 |
f3b255ad353b13e73293e4d0294eca7a9a0df634 | 10,398 | ml | OCaml | src/ocaml/typing/411/ident.ml | brianhempel/merlin | 14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | src/ocaml/typing/411/ident.ml | brianhempel/merlin | 14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6 | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | src/ocaml/typing/411/ident.ml | brianhempel/merlin | 14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6 | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 28.644628 | 77 | 0.540489 |
f38ea62cdd41b10b4955de7bbea2edaf1e5b2366 | 121 | ml | OCaml | testing/bintree.ml | udit01/oCamlScratches | 7db65d37087559296ea0aa73ce0a75a1eda8babc | [
"MIT"
] | 1 | 2020-07-27T13:11:30.000Z | 2020-07-27T13:11:30.000Z | testing/bintree.ml | udit01/oCamlScratches | 7db65d37087559296ea0aa73ce0a75a1eda8babc | [
"MIT"
] | null | null | null | testing/bintree.ml | udit01/oCamlScratches | 7db65d37087559296ea0aa73ce0a75a1eda8babc | [
"MIT"
] | null | null | null | type 'a bintree = T | Node of 'a * ('a bintree) * ('a bintree);;
(* make function corresponding to this data type ? *)
| 24.2 | 64 | 0.619835 |
f35bf6413e21438e3f0e0584c221a288bce9f3f1 | 890 | mli | OCaml | test/negative/t36.mli | n-osborne/gospel | 0e89b4a85620a1ae4164c313b9c5790cfc885db4 | [
"MIT"
] | 42 | 2020-11-20T17:18:32.000Z | 2022-01-17T23:22:55.000Z | test/negative/t36.mli | n-osborne/gospel | 0e89b4a85620a1ae4164c313b9c5790cfc885db4 | [
"MIT"
] | 63 | 2020-11-23T13:12:17.000Z | 2022-03-31T13:53:17.000Z | test/negative/t36.mli | christinerose/gospel | 798464c971008bdb6b4ca28ef57299c9848d4d49 | [
"MIT"
] | 7 | 2020-11-23T01:42:06.000Z | 2022-03-17T13:23:53.000Z | (**************************************************************************)
(* *)
(* GOSPEL -- A Specification Language for OCaml *)
(* *)
(* Copyrigh... | 42.380952 | 76 | 0.288764 |
d2f98312e66358a3b73dc55fc397231a103914ac | 1,237 | ml | OCaml | eval/sherrloc/easyocaml++/utils/terminfo.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/utils/terminfo.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/utils/terminfo.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 47.576923 | 73 | 0.402587 |
f310f99eb5ff2810a7608be397577f52a1cbc6f9 | 1,870 | ml | OCaml | test/tmp.ml | dinosaure/art | 4dff34f21f1c730e5502b00f46cab0e2ccd3c6cb | [
"MIT"
] | 41 | 2019-11-19T19:44:43.000Z | 2021-12-17T15:07:31.000Z | test/tmp.ml | dinosaure/art | 4dff34f21f1c730e5502b00f46cab0e2ccd3c6cb | [
"MIT"
] | 20 | 2020-11-23T16:58:31.000Z | 2022-03-18T16:47:13.000Z | test/tmp.ml | dinosaure/art | 4dff34f21f1c730e5502b00f46cab0e2ccd3c6cb | [
"MIT"
] | 2 | 2021-01-29T01:36:04.000Z | 2021-11-03T14:57:32.000Z | (* (c) Daniel Bünzli
* without automatic deletion *)
open Rresult
let rand_gen = lazy (Random.State.make_self_init ())
(* XXX(dinosaure): local random generator. *)
let rand_path dir pat =
let rand = Random.State.bits (Lazy.force rand_gen) land 0xFFFFFF in
Fpath.(dir / Fmt.str pat (Fmt.str "%06x" rand))
let de... | 31.694915 | 89 | 0.651872 |
f38c01e56619db01cb53dab085176394c6a138b2 | 7,989 | mli | OCaml | gospel/test/ocaml-source-mli/location.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/test/ocaml-source-mli/location.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/test/ocaml-source-mli/location.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 31.577075 | 80 | 0.627863 |
af1b81f6a45067c951032a7965b6362f8c964ea3 | 3,825 | ml | OCaml | exports/xml.ml | tiensonqin/mlorg | d6db2d671c2fa3761bdcc6b7f22abe4bb556a4d2 | [
"BSD-2-Clause"
] | null | null | null | exports/xml.ml | tiensonqin/mlorg | d6db2d671c2fa3761bdcc6b7f22abe4bb556a4d2 | [
"BSD-2-Clause"
] | null | null | null | exports/xml.ml | tiensonqin/mlorg | d6db2d671c2fa3761bdcc6b7f22abe4bb556a4d2 | [
"BSD-2-Clause"
] | null | null | null | open Batteries
let output_string = String.print
let output_char = Char.print
type t =
| Empty
| Data of string
| Block of string * (string * string) list * t list
| Raw of string
| List of t list
let empty = Empty
let block ?(attr = []) name children = Block (name, attr, children)
let data s = Data s
l... | 28.125 | 82 | 0.523399 |
f33a89278b66befa666503fe8f7b9d460da77c69 | 437 | ml | OCaml | ocaml/lib_test/word2phrase_test.ml | ahmetax/word2phrase | a51cdbb76ffd51b690ef640e00a37ff5e70a9ab1 | [
"Apache-2.0"
] | 2 | 2017-12-18T04:25:08.000Z | 2021-06-02T11:26:24.000Z | ocaml/lib_test/word2phrase_test.ml | ogulcangok/word2phrase | a51cdbb76ffd51b690ef640e00a37ff5e70a9ab1 | [
"Apache-2.0"
] | null | null | null | ocaml/lib_test/word2phrase_test.ml | ogulcangok/word2phrase | a51cdbb76ffd51b690ef640e00a37ff5e70a9ab1 | [
"Apache-2.0"
] | null | null | null | open Core.Std
module W=Word2phrase
let () =
let lines = In_channel.read_lines (Sys.argv.(1)) in
let tokenized = List.map lines ~f:(fun x -> String.split x ~on:' ') in
let res1 = W.train_model tokenized 5 500.0 in
let res2 = W.train_model res1 5 450.0 in
let res3 = W.train_model res2 5 400.0 in
... | 33.615385 | 75 | 0.663616 |
f3a0bbfd743d52a95ab7f26eac58ac3aaf4bae8e | 1,763 | ml | OCaml | eval/sherrloc/easyocaml++/camlp4/Camlp4Filters/Camlp4AstLifter.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/camlp4/Camlp4Filters/Camlp4AstLifter.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/camlp4/Camlp4Filters/Camlp4AstLifter.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (* camlp4r *)
(****************************************************************************)
(* *)
(* Objective Caml *)
(* ... | 39.177778 | 85 | 0.435621 |
af36546b5dba67d427c72e1c1104f12b40809d78 | 329 | mli | OCaml | test/lib/async_js_test_lib.mli | janestreet/async_js | 4dc6de8018913e82e468eefaf589465d28e9fd96 | [
"MIT"
] | 15 | 2017-03-22T12:40:50.000Z | 2021-12-17T02:52:43.000Z | test/lib/async_js_test_lib.mli | janestreet/async_js | 4dc6de8018913e82e468eefaf589465d28e9fd96 | [
"MIT"
] | 6 | 2017-04-26T04:39:24.000Z | 2020-12-06T10:57:21.000Z | test/lib/async_js_test_lib.mli | janestreet/async_js | 4dc6de8018913e82e468eefaf589465d28e9fd96 | [
"MIT"
] | 4 | 2018-05-24T02:39:18.000Z | 2021-12-17T02:53:24.000Z | open! Core
open! Async_rpc_kernel
module Rpcs : sig
val send_string : (string, string) Rpc.Rpc.t
val close_connection : (unit, unit) Rpc.Rpc.t
end
module Callback_function : sig
type 'a t = Open_rpc_and_wait of 'a [@@deriving sexp_of]
val name : unit t -> string
val to_javascript_invocation : Uri.t t -> st... | 21.933333 | 58 | 0.720365 |
af3027eb98548d942c6bff8fc9ef63ee386084da | 939 | ml | OCaml | exercises/practice/acronym/test.ml | exercism-bot/ocaml | b72a0d29d7f31d90138eab8fc0f87e56b73ba938 | [
"MIT"
] | 67 | 2017-07-06T12:10:14.000Z | 2022-03-27T02:25:06.000Z | exercises/practice/acronym/test.ml | exercism-bot/ocaml | b72a0d29d7f31d90138eab8fc0f87e56b73ba938 | [
"MIT"
] | 106 | 2017-06-19T06:21:53.000Z | 2022-03-15T10:32:20.000Z | exercises/practice/acronym/test.ml | exercism-bot/ocaml | b72a0d29d7f31d90138eab8fc0f87e56b73ba938 | [
"MIT"
] | 36 | 2017-07-12T18:11:37.000Z | 2021-11-30T16:05:17.000Z | (* acronym - 1.7.0 *)
open OUnit2
open Acronym
let ae exp got _test_ctxt =
assert_equal exp got ~printer:(fun x -> x )
let tests = [
"basic" >::
ae "PNG" (acronym "Portable Network Graphics");
"lowercase words" >::
ae "ROR" (acronym "Ruby on Rails");
"punctuation" >::
ae "FIFO" (acronym "First In, First... | 30.290323 | 110 | 0.660277 |
af0a29d50d16067318c44eabf425053f8e332e53 | 22,878 | ml | OCaml | upstream/ocaml_403/utils/warnings.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | upstream/ocaml_403/utils/warnings.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | upstream/ocaml_403/utils/warnings.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 38.974446 | 80 | 0.591267 |
af080b6e833901cff045c239c4d6a5ff7cf1e811 | 358 | mli | OCaml | app/src/encode.mli | adept/icfpc2020 | 259ab26a659332e2b99ca14db33b0d90896b8468 | [
"MIT"
] | null | null | null | app/src/encode.mli | adept/icfpc2020 | 259ab26a659332e2b99ca14db33b0d90896b8468 | [
"MIT"
] | null | null | null | app/src/encode.mli | adept/icfpc2020 | 259ab26a659332e2b99ca14db33b0d90896b8468 | [
"MIT"
] | null | null | null | open! Core
type t =
| Number of Big_int.t
| Cons of (t * t)
| Nil
[@@deriving sexp_of]
val encode : t -> string
val decode : string -> (t * string) Or_error.t
(** Outputs somethings like [ap ap cons 1 ap ap cons 2 nil] *)
val to_string_mach : t -> string
(** Convert to/from Eval lists. *)
val to_eval : t ->... | 18.842105 | 63 | 0.631285 |
f36053c8195729745eb2fac72a9899996945ef50 | 1,933 | mli | OCaml | src/lib_protocol_compiler/main_embedded_packer.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_protocol_compiler/main_embedded_packer.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_protocol_compiler/main_embedded_packer.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> *)
... | 71.592593 | 79 | 0.466632 |
f3d839f3db9f01f582a1e67824c3280121e92b4a | 14,000 | ml | OCaml | fpat/CSIsatInterface.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 32 | 2019-10-30T10:09:56.000Z | 2022-03-28T07:15:04.000Z | fpat/CSIsatInterface.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 1 | 2021-04-14T19:19:15.000Z | 2021-04-15T02:03:56.000Z | fpat/CSIsatInterface.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 5 | 2019-11-08T07:49:00.000Z | 2022-03-01T18:09:57.000Z | open Util
open Combinator
open Term
(** @todo elim unit first
@todo add theories for true, false, nil, cons, len *)
(** {6 Functions for CSIsat formulas} *)
let csisat_unit = CsisatAst.Application("unit", [])
let csisat_true = CsisatAst.Application("true", [])
let csisat_false = CsisatAst.Application("false", []... | 35.087719 | 109 | 0.659071 |
af0e24921647ddb0d64e3a6ac70daa8f65fcbfe9 | 225 | mli | OCaml | libraries/sts/lib/getSessionToken.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/sts/lib/getSessionToken.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/sts/lib/getSessionToken.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = GetSessionTokenRequest.t
type output = GetSessionTokenResponse.t
type error = Errors_internal.t
include
(Aws.Call with type input := input and type output := output and type
error := error) | 32.142857 | 75 | 0.746667 |
af2a7efe194626f049849798da167e30a83e52ce | 368 | ml | OCaml | src/core/CofThy.ml | jonsterling/cool-tt | 060eb034879a6e4fa17655feda2fd81a5a78cc9b | [
"MIT"
] | 14 | 2019-12-21T05:59:18.000Z | 2020-01-08T09:14:42.000Z | src/core/CofThy.ml | jonsterling/cool-tt | 060eb034879a6e4fa17655feda2fd81a5a78cc9b | [
"MIT"
] | 13 | 2019-12-21T22:24:08.000Z | 2020-01-08T16:24:02.000Z | src/core/CofThy.ml | jonsterling/fun-tt | 46a0bd0b5b270aa341c9f7d3af7937fabf6c8562 | [
"Apache-2.0"
] | 1 | 2020-01-03T13:43:25.000Z | 2020-01-03T13:43:25.000Z | open Basis
module Make (Symbol : Symbol.S) =
struct
module CofVar = CofVar.Make(Symbol)
module Dim = Dim.Make(Symbol)
include Kado.Theory.Make
(struct
type dim = Dim.t
type var = CofVar.t
let dim0 = Dim.dim0
let dim1 = Dim.dim1
let compare_dim = Dim.compare
... | 20.444444 | 40 | 0.611413 |
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.