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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcb08cb904e6ee6d16006f97f83a90d88d3b00ba | 1,660 | ml | OCaml | src/uucp_num_base.ml | mjambon/uucp | 1fe4a8c7f692c8fc829503777ca4f8d3c2cb87a4 | [
"ISC"
] | 19 | 2015-08-31T01:20:01.000Z | 2022-01-26T17:33:50.000Z | src/uucp_num_base.ml | mjambon/uucp | 1fe4a8c7f692c8fc829503777ca4f8d3c2cb87a4 | [
"ISC"
] | 17 | 2015-08-02T21:30:34.000Z | 2021-09-15T10:33:33.000Z | src/uucp_num_base.ml | mjambon/uucp | 1fe4a8c7f692c8fc829503777ca4f8d3c2cb87a4 | [
"ISC"
] | 9 | 2015-10-15T12:51:38.000Z | 2021-12-09T20:56:51.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2014 The uucp programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
type numeric_type = [ `D... | 44.864865 | 79 | 0.576506 |
bcb2525df225710e5360f594cd5574cc7d2cee9f | 113 | mli | OCaml | src/unparser.mli | prg-titech/pmincaml | 80810fc97df7f5d10340113eedb8be70a09de2f0 | [
"Apache-2.0"
] | 1 | 2022-01-25T01:46:13.000Z | 2022-01-25T01:46:13.000Z | src/unparser.mli | prg-titech/pmincaml | 80810fc97df7f5d10340113eedb8be70a09de2f0 | [
"Apache-2.0"
] | null | null | null | src/unparser.mli | prg-titech/pmincaml | 80810fc97df7f5d10340113eedb8be70a09de2f0 | [
"Apache-2.0"
] | null | null | null | val string_of_ast : Syntax.t -> string
val unparse : Syntax.t -> unit
val parse_from_string : string -> Syntax.t
| 28.25 | 42 | 0.734513 |
aa1c3f3165c0fd698311c7adcf34bde6b4de91c1 | 1,955 | ml | OCaml | libraries/s3/lib/deleteBucketEncryption.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/s3/lib/deleteBucketEncryption.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/deleteBucketEncryption.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 DeleteBucketEncryptionRequest =
struct
type t =
{
bucket: String.t
[@ocaml.doc
"<p>The name of the bucket containing the server-side encryption configuration to delete.</p>"]}
let make ~bu... | 33.135593 | 106 | 0.622506 |
aab1b5b9a86f442140613d4941cf6bba9f901e61 | 122 | ml | OCaml | OCaml from the Very Beginning/Chapter 8/example02.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | OCaml from the Very Beginning/Chapter 8/example02.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | OCaml from the Very Beginning/Chapter 8/example02.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | let rec lookup x l =
match l with
[] -> raise Not_found
| (k, v)::t ->
if k = x then v else lookup x t
| 20.333333 | 38 | 0.508197 |
aaa7172e0375db2e1d89eed3606b50ad3b0afd32 | 5,521 | ml | OCaml | src/proto_alpha/lib_delegate/logging.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 1 | 2021-11-03T08:21:08.000Z | 2021-11-03T08:21:08.000Z | src/proto_alpha/lib_delegate/logging.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/proto_alpha/lib_delegate/logging.ml | 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> *)
... | 35.619355 | 80 | 0.614563 |
aa83385380084ae661390b737f8d5e2338397cfe | 5,170 | ml | OCaml | experiments/ownership-inference/infer/infer/src/java/jMain.ml | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 30 | 2019-06-28T15:20:25.000Z | 2021-08-25T11:37:30.000Z | experiments/ownership-inference/infer/infer/src/java/jMain.ml | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 39 | 2019-06-28T15:08:12.000Z | 2020-07-17T01:44:33.000Z | experiments/ownership-inference/infer/infer/src/java/jMain.ml | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 17 | 2019-06-28T14:40:41.000Z | 2021-03-11T19:26:13.000Z | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
open PolyVariantEqual
open Javalib_pack
module L = Logging
let init_global_s... | 36.153846 | 101 | 0.734816 |
44e6703475b7a03449e374ce5775ff12aea951d6 | 4,714 | ml | OCaml | server/chatLib/commands.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | 5 | 2015-01-30T06:16:32.000Z | 2020-04-14T09:08:49.000Z | server/chatLib/commands.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | server/chatLib/commands.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | (* © 2014 RunOrg *)
open Std
(* Creating a chatroom
=================== *)
(* Who is allowed to create new chatrooms ? *)
let create_audience = Audience.admin
let create pid ?subject ?(custom=Json.Null) audience =
let! allowed = Audience.is_member pid create_audience in
if not allowed then
let! ct... | 33.913669 | 97 | 0.642342 |
aa6c914922be3ddd3dba1fcab97e7ee7299928ab | 15,874 | ml | OCaml | src/lib_store/test/test_history_mode_switch.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_store/test/test_history_mode_switch.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_store/test/test_history_mode_switch.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 36.242009 | 80 | 0.5841 |
aa937253a726c267e94715d5afd05bd3b58a8dc3 | 3,073 | ml | OCaml | hphp/hack/src/server/serverCommandTypesUtils.ml | sagas1416/hhvm | 253b620b7e49580463a76934b5d815721fa51c28 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverCommandTypesUtils.ml | sagas1416/hhvm | 253b620b7e49580463a76934b5d815721fa51c28 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverCommandTypesUtils.ml | sagas1416/hhvm | 253b620b7e49580463a76934b5d815721fa51c28 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | open ServerCommandTypes
let debug_describe_t : type a. a t -> string = function
| STATUS _ -> "STATUS"
| STATUS_SINGLE _ -> "STATUS_SINGLE"
| INFER_TYPE _ -> "INFER_TYPE"
| INFER_TYPE_BATCH _ -> "INFER_TYPE_BATCH"
| TYPED_AST _ -> "TYPED_AST"
... | 45.865672 | 85 | 0.573706 |
aa36f3dc87c414d2027835fb53e235966af393fb | 48,070 | ml | OCaml | lib/packet.ml | dsheets/ocaml-dns | 487f593cc6835fb4504b46c66acdd67ef6a596ca | [
"0BSD"
] | null | null | null | lib/packet.ml | dsheets/ocaml-dns | 487f593cc6835fb4504b46c66acdd67ef6a596ca | [
"0BSD"
] | null | null | null | lib/packet.ml | dsheets/ocaml-dns | 487f593cc6835fb4504b46c66acdd67ef6a596ca | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2011 Richard Mortier <mort@cantab.net>
*
* 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" AND... | 31.687541 | 103 | 0.557874 |
bcbdc8dcbb62ab774cf1e9d1a880586e5a7ceb9b | 3,663 | ml | OCaml | src/semantics/doc_extract.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 23 | 2019-10-31T11:55:18.000Z | 2021-12-17T10:18:45.000Z | src/semantics/doc_extract.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 29 | 2019-11-27T09:57:52.000Z | 2021-12-13T13:34:56.000Z | src/semantics/doc_extract.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 3 | 2020-10-11T21:43:58.000Z | 2021-05-30T14:38:43.000Z | open IlluaminateCore
open! Doc_syntax
module StringMap = Map.Make (String)
module NMap = Map.Make (Namespace)
module R = Resolve
module VarTbl = R.VarTbl
module D = IlluaminateData
module Resolve = Doc_extract_resolve
module U = Doc_extract_unresolved
(* Actually exported modules *)
module Config = Doc_extract_config
... | 33.916667 | 95 | 0.667759 |
aa9cdddc5f106ec2a5b918b7a20546d3979046f6 | 20,664 | ml | OCaml | ast/ast_helper_lite.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 179 | 2018-03-13T16:22:57.000Z | 2022-03-23T20:30:12.000Z | ast/ast_helper_lite.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 222 | 2018-03-13T15:44:22.000Z | 2022-03-26T08:56:14.000Z | ast/ast_helper_lite.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 52 | 2018-03-15T19:14:22.000Z | 2022-03-22T14:40:58.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 29.647059 | 81 | 0.594512 |
bc3756e9dd3775adcd3fb0054e38e7288541f25c | 26,819 | ml | OCaml | src/app/cli/src/tests/coda_worker.ml | svenski123/mina | a7300993418888f1783cac655714a18b93d73117 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/app/cli/src/tests/coda_worker.ml | svenski123/mina | a7300993418888f1783cac655714a18b93d73117 | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/tests/coda_worker.ml | svenski123/mina | a7300993418888f1783cac655714a18b93d73117 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Mina_base
open Mina_transition
open Signature_lib
open Pipe_lib
open Init
module Input = struct
type t =
{ addrs_and_ports: Node_addrs_and_ports.Display.Stable.Latest.t
; libp2p_keypair: Mina_net2.Keypair.Stable.Latest.t
; net_configs:
( Node_addrs_and_ports.Display.Stab... | 39.497791 | 128 | 0.620157 |
8abc8f205077899f8a8a89c1b5b90af84b9b73a8 | 3,904 | ml | OCaml | test/irmin-unix/test_unix.ml | PKRoma/irmin | 72ddd582e9d931c58930cc7debd587105e04fda6 | [
"0BSD"
] | 1,491 | 2015-01-04T05:34:56.000Z | 2022-03-31T09:53:17.000Z | test/irmin-unix/test_unix.ml | PKRoma/irmin | 72ddd582e9d931c58930cc7debd587105e04fda6 | [
"0BSD"
] | 1,132 | 2015-01-05T17:06:31.000Z | 2022-03-30T19:56:47.000Z | test/irmin-unix/test_unix.ml | PKRoma/irmin | 72ddd582e9d931c58930cc7debd587105e04fda6 | [
"0BSD"
] | 144 | 2015-01-30T14:00:16.000Z | 2022-03-29T16:30:47.000Z | (*
* Copyright (c) 2013-2021 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... | 30.740157 | 78 | 0.665471 |
aa93b04c7ee93d420c0982d9cc8412dde58bc3ce | 152 | ml | OCaml | data/derived/comb/progs/unify/prog7525.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/prog2718.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2718.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs =
let f a x = let h::t = x in h a in let base = 0 in List.fold_left f base fs;;
let _ = pipe [(fun x -> x + 3); (fun x -> x + x)] 3;;
| 25.333333 | 79 | 0.513158 |
aa4cd40b6e7de65847c563d730563c55a347781f | 6,638 | ml | OCaml | src/util/escape.ml | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 19 | 2018-08-19T14:41:41.000Z | 2021-09-14T14:07:03.000Z | src/util/escape.ml | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 2 | 2019-04-10T02:05:47.000Z | 2022-03-07T15:41:36.000Z | src/util/escape.ml | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 2 | 2019-02-12T14:25:50.000Z | 2021-05-14T11:12:52.000Z | (* This file is free software, part of Archsat. See file "LICENSE" for more details. *)
let section = Section.make "escape"
(* Wrapper around polymorphic identifiers *)
(* ************************************************************************ *)
module Any = struct
type t =
| Id : _ Expr.id -> t
| Dolme... | 28.735931 | 87 | 0.558602 |
bc4630bc50192b7cc61e2b98001a0f2bdfeff224 | 3,820 | mly | OCaml | src/parser.mly | zapashcanon/Obelisk | 056f2aa083e8d7ee27405b289af5de1051c7852f | [
"MIT"
] | null | null | null | src/parser.mly | zapashcanon/Obelisk | 056f2aa083e8d7ee27405b289af5de1051c7852f | [
"MIT"
] | null | null | null | src/parser.mly | zapashcanon/Obelisk | 056f2aa083e8d7ee27405b289af5de1051c7852f | [
"MIT"
] | null | null | null | %{ open Ast %}
%token PUBLIC INLINE PREC
%token LPAR RPAR BAR COLON EQ COMMA
%token OPT PLUS STAR
%token ACTION ATTRIBUTE
%token <string> LID UID
%token EOF
%start <Ast.spec> specification
/* These declarations solve a shift-reduce conflict in favor of
shifting: when the declaration of a non-terminal symbol beg... | 32.649573 | 79 | 0.657068 |
bc86975ca67cff21f4a4bbe473bbaa26b4668a78 | 341 | ml | OCaml | infer/src/istd/ISequence.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/istd/ISequence.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/istd/ISequence.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2019-04-26T02:27:43.000Z | 2019-04-26T02:27:43.000Z | (*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
let rec gen_sequence_list ~f =
let open Sequence.Generator in
function [] -> return () | x :: tl -> f x >>= fun () -> gen... | 26.230769 | 81 | 0.671554 |
aab3f3516d28db9a2b79f2eba67d0cd406464961 | 1,727 | ml | OCaml | gen/stdDep.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | gen/stdDep.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | gen/stdDep.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 37.543478 | 78 | 0.460915 |
aa963211b8f33e091146d045365cd407d754e339 | 8,235 | ml | OCaml | src/lib/snark_params/snark_util.ml | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | 1 | 2021-08-22T12:02:53.000Z | 2021-08-22T12:02:53.000Z | src/lib/snark_params/snark_util.ml | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | src/lib/snark_params/snark_util.ml | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | open Core_kernel
module Make (Impl : Snarky_backendless.Snark_intf.S) = struct
open Impl
open Let_syntax
let pack_int bs =
assert (List.length bs < 62) ;
let rec go pt acc = function
| [] ->
acc
| b :: bs ->
if b then go (2 * pt) (pt + acc) bs else go (2 * pt) acc bs
... | 32.294118 | 93 | 0.559563 |
aa82e531d0c0af27f95e3f714bd8a61cc4d3b5b8 | 16,264 | ml | OCaml | hphp/hack/src/naming/naming_heap.ml | emptyIIknowledge/hhvm | 64834993b347f3d6b1973817a702a8a4ec86b055 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/naming/naming_heap.ml | emptyIIknowledge/hhvm | 64834993b347f3d6b1973817a702a8a4ec86b055 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming_heap.ml | emptyIIknowledge/hhvm | 64834993b347f3d6b1973817a702a8a4ec86b055 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
type blocked_entry = Blocked
(** Gets an entry from shared memory, or falls back to SQLite if necessary. If ... | 33.603306 | 107 | 0.68378 |
aa9e8a5f0ef4c0d74b8e77d5625a03a9db58adf6 | 20,021 | ml | OCaml | src/cli/common.ml | samoht/dune-mirage | bb2300c1859c452a4140fa33e3afb3c6b755350c | [
"MIT"
] | 4 | 2020-02-04T15:33:29.000Z | 2020-02-04T21:37:09.000Z | src/cli/common.ml | samoht/dune-mirage | bb2300c1859c452a4140fa33e3afb3c6b755350c | [
"MIT"
] | null | null | null | src/cli/common.ml | samoht/dune-mirage | bb2300c1859c452a4140fa33e3afb3c6b755350c | [
"MIT"
] | null | null | null | open Stdune
module Config = Dune.Config
module Colors = Dune.Colors
module Clflags = Dune.Clflags
module Package = Dune.Package
module Profile = Dune.Profile
module Term = Cmdliner.Term
module Manpage = Cmdliner.Manpage
module Let_syntax = struct
let ( let+ ) t f = Term.(const f $ t)
let ( and+ ) a b = Term.(cons... | 31.234009 | 81 | 0.593627 |
aaae1902db4382e96a82aaf1d390b05b0bd6e7fb | 808 | mli | OCaml | collate/src/map_list.mli | janestreet/incr_map | c8cdcd45dc7d8f3d6bfd2fac67b5535a02ba6ef4 | [
"MIT"
] | 22 | 2016-07-11T21:48:58.000Z | 2021-12-17T02:44:47.000Z | collate/src/map_list.mli | janestreet/incr_map | c8cdcd45dc7d8f3d6bfd2fac67b5535a02ba6ef4 | [
"MIT"
] | 1 | 2016-08-20T20:16:11.000Z | 2016-08-22T18:35:54.000Z | collate/src/map_list.mli | janestreet/incr_map | c8cdcd45dc7d8f3d6bfd2fac67b5535a02ba6ef4 | [
"MIT"
] | 4 | 2017-07-20T12:41:03.000Z | 2021-12-17T02:46:44.000Z | (** A representation of a list that provides useful diffing. When constructed from a
sorted map in an incremental way, you could reasonably expect that most of the time
the diff size will be proportional to the number of elements that are
added/removed/changed. *)
open Core
type 'a t = 'a Int63.Map.t [@@d... | 42.526316 | 89 | 0.675743 |
bcf4c4e49528c4bae3f6bf4e5bc5e7b46afe00a8 | 412 | ml | OCaml | survey/data/palindrome.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 6 | 2017-02-06T02:33:28.000Z | 2021-02-25T23:09:59.000Z | survey/data/palindrome.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 1 | 2017-05-16T05:03:45.000Z | 2017-05-16T17:37:54.000Z | survey/data/palindrome.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 3 | 2016-10-11T21:36:24.000Z | 2021-12-08T21:52:40.000Z | (* A palindrome is a word that reads the same from
left-to-right and right-to-left.
`palindrome w` returns `true` if the string
is a palindrome and `false` otherwise *)
let listReverse l =
let rec helper xs = function
| [] -> xs
| hd::tl -> helper (hd :: xs) tl
in helper []
let palindrome (w : ch... | 22.888889 | 50 | 0.628641 |
bc75f36ee4f7de485a54209030217d2318517af9 | 1,915 | ml | OCaml | libraries/cloudwatch/lib/disableInsightRules.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudwatch/lib/disableInsightRules.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/cloudwatch/lib/disableInsightRules.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DisableInsightRulesInput.t
type output = DisableInsightRulesOutput.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.393443 | 99 | 0.582768 |
aa0af1dc7b40b3d5ce76fdf331f90f62c2dfb582 | 11,584 | mli | OCaml | experiments/ownership-inference/infer/infer/src/base/CommandLineOption.mli | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 30 | 2019-06-28T15:20:25.000Z | 2021-08-25T11:37:30.000Z | experiments/ownership-inference/infer/infer/src/base/CommandLineOption.mli | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 39 | 2019-06-28T15:08:12.000Z | 2020-07-17T01:44:33.000Z | experiments/ownership-inference/infer/infer/src/base/CommandLineOption.mli | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 17 | 2019-06-28T14:40:41.000Z | 2021-03-11T19:26:13.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.
*)
(** Definition and parsing of command line arguments *)
open! IStd
val warnf : ('a, Format.formatter, unit) format -> 'a
(** Prin... | 44.045627 | 100 | 0.705283 |
4412c336c88895dd161bed1e7c3f649475b11636 | 5,547 | ml | OCaml | bench/irmin-pack/bench_common.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | null | null | null | bench/irmin-pack/bench_common.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | null | null | null | bench/irmin-pack/bench_common.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2018-2021 Tarides <contact@tarides.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" AN... | 28.592784 | 79 | 0.634938 |
aa85f28b17d4e8f1f3e7dcabcc0618adbd5bc4a1 | 4,871 | ml | OCaml | src/lib/pickles/requests.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | src/lib/pickles/requests.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | src/lib/pickles/requests.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | open Core
open Import
open Types
open Pickles_types
open Hlist
open Snarky_backendless.Request
open Common
open Backend
module Wrap = struct
module type S = sig
type max_branching
type max_local_max_branchings
open Impls.Wrap
open Wrap_main_inputs
open Snarky_backendless.Request
type _ t +... | 28.156069 | 80 | 0.584069 |
aa92ceea3b41862404a5bce0e8695590e096f3e7 | 11,061 | ml | OCaml | source/analysis/test/integration/isinstanceTest.ml | abishekvashok/pyre-check | 20ae7df26216db06fcb17246f6125f4b6655890f | [
"MIT"
] | null | null | null | source/analysis/test/integration/isinstanceTest.ml | abishekvashok/pyre-check | 20ae7df26216db06fcb17246f6125f4b6655890f | [
"MIT"
] | 1 | 2021-08-16T12:11:37.000Z | 2021-08-16T12:11:37.000Z | source/analysis/test/integration/isinstanceTest.ml | abishekvashok/pyre-check | 20ae7df26216db06fcb17246f6125f4b6655890f | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open OUnit2
open IntegrationTest
let test_check_isinstance context =
let assert_type_errors = assert_type_errors ~context in
l... | 29.184697 | 99 | 0.562607 |
aa05bcdcd6755f2fa41745816bdf98c3ed050c27 | 25,031 | ml | OCaml | lib/type_generic.ml | janestreet/typerep | 29b8ef75db4a986e35fd9b173ff5838111353ee3 | [
"MIT"
] | 11 | 2015-06-14T11:33:02.000Z | 2021-12-17T02:58:10.000Z | lib/type_generic.ml | janestreet/typerep | 29b8ef75db4a986e35fd9b173ff5838111353ee3 | [
"MIT"
] | 1 | 2018-03-03T09:25:15.000Z | 2018-03-12T19:44:35.000Z | lib/type_generic.ml | janestreet/typerep | 29b8ef75db4a986e35fd9b173ff5838111353ee3 | [
"MIT"
] | 3 | 2016-06-23T06:41:03.000Z | 2021-12-17T02:58:56.000Z | open Std_internal
module Variant_and_record_intf = Variant_and_record_intf
module Helper (A : Variant_and_record_intf.S) (B : Variant_and_record_intf.S) = struct
type map = { map : 'a. 'a A.t -> 'a B.t }
let map_variant (type variant) { map } (variant : variant A.Variant.t) =
let map_create = function
|... | 29.905615 | 90 | 0.57245 |
aa7e97af451c7ffc6fe7432ae241c758b534b40d | 14,416 | ml | OCaml | lib/Params.ml | hoddy3190/ocamlformat | 3fa074b20d86163742c706b6c20fc01e558fc1f1 | [
"MIT"
] | null | null | null | lib/Params.ml | hoddy3190/ocamlformat | 3fa074b20d86163742c706b6c20fc01e558fc1f1 | [
"MIT"
] | null | null | null | lib/Params.ml | hoddy3190/ocamlformat | 3fa074b20d86163742c706b6c20fc01e558fc1f1 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 35.683168 | 78 | 0.570963 |
bc45361ae41c879ab127b0ecbcd6306022033037 | 778 | ml | OCaml | result/fixml/lambda/sub74/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/lambda/sub74/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/lambda/sub74/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
and var = string
let rec check : lambda -> bool =
fun e ->
let rec checkp (va, ex) =
match ex with
| V va2 -> if va = va2 then true else false
| P (va2, ex2) -> (
match ex2 with
| C (ex3, ex4) ->
if
... | 28.814815 | 78 | 0.503856 |
aab2258d88822556274e9f810f9615b05cc550e8 | 8,005 | ml | OCaml | code/Nfa.ml | ycechungAI/rxxr2 | 154a62e284d7bc4b96c149b3d4fcf75be0288b9e | [
"Unlicense"
] | 86 | 2019-10-23T08:28:38.000Z | 2022-03-25T07:35:12.000Z | code/Nfa.ml | ycechungAI/rxxr2 | 154a62e284d7bc4b96c149b3d4fcf75be0288b9e | [
"Unlicense"
] | 11 | 2020-01-07T18:40:57.000Z | 2022-02-26T21:14:32.000Z | code/Nfa.ml | ycechungAI/rxxr2 | 154a62e284d7bc4b96c149b3d4fcf75be0288b9e | [
"Unlicense"
] | 13 | 2019-10-28T04:03:18.000Z | 2022-03-25T16:03:58.000Z | (* © Copyright University of Birmingham, UK *)
open ParsingData
open Common
exception UnsupportedGroupingConstruct of int
type p =
|P_BOI
|P_EOI
|P_EOIX of bool
|P_BOL of bool
|P_EOL of bool
|P_EOM
|P_WB
|P_NWB;;
type s =
|End
|Kill
|Pass of int
|MakeB of int
|EvalB of int
|Match of (ch... | 32.673469 | 99 | 0.575141 |
aa72580ec0d472e1fb9e024ebead2d7ddc74b9fb | 3,774 | ml | OCaml | lib/task.ml | SumitPadhiyar/domainslib | 787f4379d294234b972a8ab582a17dd887518697 | [
"0BSD"
] | null | null | null | lib/task.ml | SumitPadhiyar/domainslib | 787f4379d294234b972a8ab582a17dd887518697 | [
"0BSD"
] | null | null | null | lib/task.ml | SumitPadhiyar/domainslib | 787f4379d294234b972a8ab582a17dd887518697 | [
"0BSD"
] | null | null | null | type 'a task = unit -> 'a
type 'a promise = ('a, exn) result option Atomic.t
exception TasksActive
type task_msg =
Task : 'a task * 'a promise -> task_msg
| Quit : task_msg
type pool =
{domains : unit Domain.t array;
task_chan : task_msg Chan.t}
let do_task f p =
try
let res = f () in
Atomic.set p... | 26.027586 | 79 | 0.604399 |
aa5273b423ce73642fc6219c3454270ec4c32d34 | 1,818 | ml | OCaml | src/solver/strategy.ml | jdrprod/modulus | 83fa4a863deecc9e806c97f26ed525746703ee64 | [
"MIT"
] | 8 | 2021-06-24T16:35:08.000Z | 2022-03-24T13:38:41.000Z | src/solver/strategy.ml | jdrprod/modulus | 83fa4a863deecc9e806c97f26ed525746703ee64 | [
"MIT"
] | 1 | 2021-07-23T13:38:03.000Z | 2021-07-23T13:38:03.000Z | src/solver/strategy.ml | jdrprod/modulus | 83fa4a863deecc9e806c97f26ed525746703ee64 | [
"MIT"
] | 1 | 2021-07-22T16:33:44.000Z | 2021-07-22T16:33:44.000Z | type ('env, 'res) status =
| Abort of string
| Contradict
| Update of 'env
| UpdateValue of 'env * 'res
| Value of 'res
type ('env, 'res) t = 'env -> ('env, 'res) status
let abort msg = fun _ -> Abort msg
let return v = fun _ -> Value v
let contradict = fun _ -> Contradict
let update up = fun env -> Upda... | 23.307692 | 92 | 0.559406 |
bcfe59e1146e2da5e85828fc7b316bb6148ca1b6 | 6,646 | ml | OCaml | data/derived/comb/progs/unify/prog6632.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/prog1801.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1801.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs =
match xs with
|[] -> 0
|(x::xs')-> x+ (sumList xs')
;;
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9; 11]
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 24.433824 | 94 | 0.627896 |
bcd4edd5aa286bd64fb575f9a16d2369d8f8d713 | 11,387 | ml | OCaml | duniverse/ppxlib.0.13.0/src/ast_builder.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/ppxlib.0.13.0/src/ast_builder.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/ppxlib.0.13.0/src/ast_builder.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | open! Import
module Default = struct
module Located = struct
type 'a t = 'a Loc.t
let loc (x : _ t) = x.loc
let mk ~loc x = { loc; txt = x }
let map f t = { t with txt = f t.txt }
let map_lident x = map (fun x -> Longident.Lident x) x
let lident ~loc x = mk ~loc (Longident.parse x)
end... | 35.921136 | 124 | 0.610169 |
aaa236aa58a62eee925bdd40ca539175986605c7 | 12,364 | ml | OCaml | hphp/hack/src/parser/full_fidelity_syntax_kind.ml | jsoref/hhvm | 2bd80a8909496b70cac45bb6b28b5d662176477f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_syntax_kind.ml | jsoref/hhvm | 2bd80a8909496b70cac45bb6b28b5d662176477f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_syntax_kind.ml | jsoref/hhvm | 2bd80a8909496b70cac45bb6b28b5d662176477f | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-01-06T04:58:57.000Z | 2022-01-06T04:58:57.000Z | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree. An additional
* directory.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... | 34.060606 | 79 | 0.768845 |
aa93df891ecfc86a4085975493863991951947e5 | 1,402 | ml | OCaml | ag_pathanalysis/batteries/benchsuite/dynarray_iter.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2019-12-05T19:47:42.000Z | 2021-05-05T13:41:16.000Z | ag_pathanalysis/batteries/benchsuite/dynarray_iter.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | null | null | null | ag_pathanalysis/batteries/benchsuite/dynarray_iter.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2021-04-20T07:44:02.000Z | 2021-04-20T08:38:41.000Z | type dynarray = {
mutable len : int;
mutable array : int array;
(* int array to have cheap Array.get,
like in batDynArray *)
}
let len = 1000
let d = {
len;
array = Array.make len 42;
}
let unsafe_iter f d =
for i = 0 to d.len - 1 do
f d.array.(i)
done
let unsafe_iter2 f d =
let a = d.array ... | 16.690476 | 60 | 0.542796 |
aa377356a2749b00029886b027aeab6062ab4bd1 | 2,211 | ml | OCaml | source/server/test/serverTest.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 1 | 2021-10-20T14:36:26.000Z | 2021-10-20T14:36:26.000Z | source/server/test/serverTest.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 2 | 2021-08-21T07:50:23.000Z | 2022-02-27T21:33:33.000Z | source/server/test/serverTest.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 1 | 2021-05-13T13:30:24.000Z | 2021-05-13T13:30:24.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open Analysis
open Ast
open Test
let ( !+ ) descriptor = Unix.File_descr.of_int descriptor
let connections persistent_c... | 31.585714 | 94 | 0.677974 |
bcd51b89f1d4d476e4d85d6a9149245c8fa36b98 | 8,802 | ml | OCaml | data/derived/comb/progs/unify/prog5816.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/prog0941.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0941.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... | 23.983651 | 148 | 0.669848 |
aa947d649a8816b07c2b69f51e9787e6c0e9d34f | 717 | ml | OCaml | lib/select_list.ml | jfeser/castor | 06d860ad7ddd9c65f8d6ef015697e2a0b26bb437 | [
"MIT"
] | 10 | 2020-02-23T01:50:19.000Z | 2021-08-18T07:07:40.000Z | lib/select_list.ml | jfeser/castor | 06d860ad7ddd9c65f8d6ef015697e2a0b26bb437 | [
"MIT"
] | null | null | null | lib/select_list.ml | jfeser/castor | 06d860ad7ddd9c65f8d6ef015697e2a0b26bb437 | [
"MIT"
] | 1 | 2020-04-17T11:10:33.000Z | 2020-04-17T11:10:33.000Z | open Ast
type 'a t = 'a annot pred list
let ( @ ) l l' =
let l_names =
List.filter_map l ~f:(fun p -> Pred.to_name p |> Option.map ~f:Name.name)
|> String.Set.of_list
in
let l' =
List.filter l' ~f:(fun p ->
Pred.to_name p
|> Option.map ~f:(fun n -> not (Set.mem l_names @@ Name.name n... | 24.724138 | 77 | 0.528591 |
aa65a8ff5ec9f0ca8c4d7a0c03fcf9183a03490e | 72 | ml | OCaml | benchmarks/C/sigma/sol278.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/sigma/sol278.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/sigma/sol278.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec sigma f a b =
if a > b then 0 else f a + sigma f (a+1) b;; | 36 | 48 | 0.527778 |
aaa68ccca5cccd1ba7600c22e2ce8e88b80bd67d | 1,648 | mli | OCaml | fyp_compiler_lib/apply_id.mli | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | fyp_compiler_lib/apply_id.mli | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | fyp_compiler_lib/apply_id.mli | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | [@@@ocaml.warning "+a-4-9-30-40-41-42"]
(** [Variable.t] is the equivalent of a non-persistent [Ident.t] in
the [Flambda] tree. It wraps an [Ident.t] together with its source
[compilation_unit]. As such, it is unique within a whole program,
not just one compilation unit.
Introducing a new type helps... | 26.580645 | 75 | 0.689927 |
aa462eca5726274f9f013c165d06fc78430e1545 | 1,380 | mli | OCaml | lib/lexSplit.mli | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | lib/lexSplit.mli | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | lib/lexSplit.mli | maranget/herdtools7 | c3b5079aed4bf9d92a5c7de04ef3638d6af0f8c0 | [
"CECILL-B"
] | 39 | 2016-12-14T23:10:34.000Z | 2022-03-22T21:35:17.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 55.2 | 78 | 0.437681 |
af963a02a0997652cf6eddcc98b4b8e31e10510f | 2,139 | ml | OCaml | src/parser_utils/signature_builder_deps_sig.ml | thecotne/flow | 21f42d4baf26e637b82a8d266ad9fea85be740f8 | [
"MIT"
] | 1 | 2020-07-11T17:49:59.000Z | 2020-07-11T17:49:59.000Z | src/parser_utils/signature_builder_deps_sig.ml | thecotne/flow | 21f42d4baf26e637b82a8d266ad9fea85be740f8 | [
"MIT"
] | null | null | null | src/parser_utils/signature_builder_deps_sig.ml | thecotne/flow | 21f42d4baf26e637b82a8d266ad9fea85be740f8 | [
"MIT"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.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 Sort = Signature_builder_kind.Sort
module type S = sig
module L : Loc_sig.S
module Error : sig
type t = L.t Signa... | 21.606061 | 89 | 0.600281 |
bcfa30b923d9767a3f8ce538d753fc7ca6d0ccbb | 1,157 | ml | OCaml | model/bin/pcbmod.ml | namachan10777/folivora | f752c45f1a4ca1485ebd5488ffef29c704ca06e5 | [
"MIT"
] | 5 | 2019-03-13T08:15:54.000Z | 2021-02-21T06:50:43.000Z | model/bin/pcbmod.ml | namachan10777/folivora | f752c45f1a4ca1485ebd5488ffef29c704ca06e5 | [
"MIT"
] | 2 | 2018-11-04T16:19:24.000Z | 2019-01-13T17:53:54.000Z | model/bin/pcbmod.ml | namachan10777/folivora | f752c45f1a4ca1485ebd5488ffef29c704ca06e5 | [
"MIT"
] | 2 | 2020-04-02T05:35:01.000Z | 2020-07-13T03:56:08.000Z | module M = Scad_ml.Model
open Core
open Scad_ml.Util
let screwes = [(16.51, 55.245); (38.1, 52.07); (20.955, 2.54); (38.1, 2.54)]
let w = 40.64
let d = 64.135
let t = 4.
let pcb_t = 1.8
let plate_t = 2.6
let space_t = 2.0
let rj45 =
M.cube (18.451, 16.51, 13.72) |>> (0., 0., plate_t +. space_t +. pcb_t)
le... | 24.617021 | 81 | 0.461538 |
aa08b33595a6287e77be65b3a66f24b378ddb394 | 887 | mli | OCaml | hphp/hack/src/server/serverCommand.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/server/serverCommand.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/server/serverCommand.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.
*
*)
exception Nonfatal_rpc_exception of Exception.t * ServerEnv.env
(** Some client commands require full check to be run in orde... | 34.115385 | 79 | 0.751973 |
aa1e123b02a86e98d5f2bf303c3d7aaa441acf39 | 12,285 | ml | OCaml | hphp/hack/test/unit/informant/informant_server_lifetime_test.ml | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:24.000Z | 2021-05-15T22:07:24.000Z | hphp/hack/test/unit/informant/informant_server_lifetime_test.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/informant/informant_server_lifetime_test.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | open Hh_prelude
module Target_saved_state_comparator = struct
type t = ServerMonitorUtils.target_saved_state
let to_string
{
ServerMonitorUtils.saved_state_everstore_handle;
target_global_rev;
watchman_mergebase;
} =
Printf.sprintf
( "(Target saved state. everstore ha... | 34.508427 | 99 | 0.725763 |
aab9341c95550550f826f66d80485ead0303d208 | 1,897 | mli | OCaml | gospel/test/ocaml-source-mli/simplif.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/test/ocaml-source-mli/simplif.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/test/ocaml-source-mli/simplif.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 41.23913 | 76 | 0.442804 |
aa768cc01bcf333831c390197f2b57daab2d3ea6 | 2,483 | ml | OCaml | lib/capability.ml | xorpse/ocaml-imap | 60507bce7647cf849a38f59a60de065dd6d5229e | [
"MIT"
] | null | null | null | lib/capability.ml | xorpse/ocaml-imap | 60507bce7647cf849a38f59a60de065dd6d5229e | [
"MIT"
] | null | null | null | lib/capability.ml | xorpse/ocaml-imap | 60507bce7647cf849a38f59a60de065dd6d5229e | [
"MIT"
] | null | null | null | (* The MIT License (MIT)
Copyright (c) 2015-2018 Nicolas Ojeda Bar <n.oje.bar@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitat... | 27.285714 | 80 | 0.677004 |
aa579e744f21c9934dbe6f24e6e8c453c644bfb6 | 2,886 | ml | OCaml | src/commands/checkContentsCommand.ml | thejameskyle/flow | 3625decef79f5799d054f73f59970e1303278322 | [
"BSD-3-Clause"
] | 2 | 2019-04-16T10:56:58.000Z | 2019-07-03T12:08:36.000Z | src/commands/checkContentsCommand.ml | thejameskyle/flow | 3625decef79f5799d054f73f59970e1303278322 | [
"BSD-3-Clause"
] | null | null | null | src/commands/checkContentsCommand.ml | thejameskyle/flow | 3625decef79f5799d054f73f59970e1303278322 | [
"BSD-3-Clause"
] | 3 | 2017-09-26T18:35:30.000Z | 2021-04-29T08:23:59.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(****... | 32.066667 | 83 | 0.640679 |
bcf3eb90ddc3ddda1b7891f0b159c5e8f1717846 | 29,701 | ml | OCaml | hphp/hack/test/unit/naming/naming_table_tests.ml | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/test/unit/naming/naming_table_tests.ml | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/test/unit/naming/naming_table_tests.ml | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"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.
*
*
*)
(* These are basically the same tests as in
* test/integration_ml/saved_state/test_naming_table_sqlite_fallback.... | 38.472798 | 161 | 0.657621 |
bc7a489ac455cd6eb8cdb858f0cfc1e5324d0b58 | 4,956 | ml | OCaml | src/simple_rules.ml | mlasson/dune | 599b7873be67c9798f9fe87979e7fec3b3a6d78b | [
"MIT"
] | null | null | null | src/simple_rules.ml | mlasson/dune | 599b7873be67c9798f9fe87979e7fec3b3a6d78b | [
"MIT"
] | 2 | 2018-01-12T08:41:59.000Z | 2020-12-30T21:57:31.000Z | src/simple_rules.ml | mlasson/dune | 599b7873be67c9798f9fe87979e7fec3b3a6d78b | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Dune_file
open Build.O
open! No_io
module SC = Super_context
let interpret_locks ~expander =
List.map ~f:(Expander.expand_path expander)
let dep_bindings ~extra_bindings deps =
let base = Pform.Map.of_bindings deps in
match extra_bindings with
| Some bindings -> Pform.Map.superp... | 33.261745 | 81 | 0.639427 |
aa54c104df6a03d987ed2dd1b7eb8d19fe5a149e | 111,372 | ml | OCaml | infer/src/pulse/PulseModels.ml | harmim/infer | 4b81b9f032fff90426a61e906e706326aae4b616 | [
"MIT"
] | 7 | 2018-12-16T02:45:32.000Z | 2022-01-05T13:30:24.000Z | infer/src/pulse/PulseModels.ml | harmim/infer | 4b81b9f032fff90426a61e906e706326aae4b616 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseModels.ml | harmim/infer | 4b81b9f032fff90426a61e906e706326aae4b616 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module L = Logging
module IRAttributes = Attributes
open PulseBasicInterface
open PulseDomainInterface
open PulseOperati... | 45.625563 | 108 | 0.679929 |
aa5548e16cdf609e54f2577dc0a67362dcc04d2b | 4,583 | ml | OCaml | lib/symbol_table.ml | gasche/Batsh | d92d0d405651e6a02dbff3181f04073be4c1c766 | [
"MIT"
] | 308 | 2020-01-21T13:37:08.000Z | 2022-03-30T15:19:54.000Z | lib/symbol_table.ml | gasche/Batsh | d92d0d405651e6a02dbff3181f04073be4c1c766 | [
"MIT"
] | 13 | 2020-01-20T13:24:58.000Z | 2022-03-14T23:19:41.000Z | lib/symbol_table.ml | gasche/Batsh | d92d0d405651e6a02dbff3181f04073be4c1c766 | [
"MIT"
] | 15 | 2020-02-04T11:33:45.000Z | 2022-01-24T04:49:26.000Z | open Core_kernel
open Batsh_ast
type variable_entry = {
name : string;
global : bool;
}
[@@deriving sexp]
type variable_table = (string, variable_entry) Hashtbl.Poly.t
[@@deriving sexp]
let sexp_of_variable_table (vtable : variable_table) : Sexp.t =
Sexp.List (Hashtbl.fold vtable ~init: []
~f: (... | 27.118343 | 76 | 0.638665 |
aa78b51b530923d687027df3dc8660da583ec17f | 6,039 | ml | OCaml | src/analyses/condVars.ml | MartinSpiessl/analyzer | aad69262820ebf812b3e2e8ff12d1aede4c2c8fa | [
"MIT"
] | null | null | null | src/analyses/condVars.ml | MartinSpiessl/analyzer | aad69262820ebf812b3e2e8ff12d1aede4c2c8fa | [
"MIT"
] | 1 | 2020-09-15T08:49:41.000Z | 2020-09-15T08:49:41.000Z | src/analyses/condVars.ml | Fayanzar/analyzer | 0610c520ca3fdda91dbc365f44a5e78c76906c6f | [
"MIT"
] | null | null | null | (** Must equality between variables and logical expressions. *)
open Prelude.Ana
open Analyses
module Domain = struct
module V = Queries.ES
include MapDomain.MapBot (Lval.CilLval) (V)
let rec var_in_lval p (lh,offs) = var_in_offs p offs && match lh with
| Var v -> p v
| Mem e -> var_in_expr p e
and v... | 39.730263 | 163 | 0.618645 |
aabf2736774e18fd74cd0dc8891101f6e4616ca3 | 3,088 | ml | OCaml | net/test2/common.ml | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | 3 | 2021-03-15T17:57:46.000Z | 2021-09-29T13:11:36.000Z | net/test2/common.ml | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | net/test2/common.ml | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* Copyright (c) 2009, Romain BARDOU *)
(* All rights reserved. *)
(* *)
(* Redistrib... | 41.72973 | 76 | 0.549547 |
44717840c74d9e64680210c4790ed7883a443d7c | 7,540 | ml | OCaml | data/derived/comb/progs/unify/prog6198.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/prog1344.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1344.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... | 24.966887 | 148 | 0.631432 |
aa7b44d26cff2df45d13f92da15747503bcd4b78 | 62,989 | ml | OCaml | src/parser_utils/flow_ast_mapper.ml | yuhonghong66/flow | 147eb3fe43b407fb70506b750d73734e49241b05 | [
"MIT"
] | null | null | null | src/parser_utils/flow_ast_mapper.ml | yuhonghong66/flow | 147eb3fe43b407fb70506b750d73734e49241b05 | [
"MIT"
] | null | null | null | src/parser_utils/flow_ast_mapper.ml | yuhonghong66/flow | 147eb3fe43b407fb70506b750d73734e49241b05 | [
"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.
*)
let map_opt: 'node. ('node -> 'node) -> 'node option -> 'node option =
fun map opt ->
match opt with
| Some item ->
let ... | 44.609773 | 122 | 0.679214 |
bc32928a8ac897ea427ccb8027fbdde7879fcf83 | 1,234 | ml | OCaml | source/interprocedural_analyses/taint/sanitizeTransform.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/sanitizeTransform.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/sanitizeTransform.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"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
module T = struct
type t =
| NamedSource of string
| NamedSink of string
[@@deriving compare, eq, hash, se... | 22.851852 | 94 | 0.639384 |
aa49d1d398f6fef6b79e5ac8f12be854c66a6667 | 2,075 | ml | OCaml | formulaBool.ml | hobitans/TGHyper | eaf0fe7b80da3d2dd195aef33218b6e94c2af4f8 | [
"0BSD"
] | null | null | null | formulaBool.ml | hobitans/TGHyper | eaf0fe7b80da3d2dd195aef33218b6e94c2af4f8 | [
"0BSD"
] | null | null | null | formulaBool.ml | hobitans/TGHyper | eaf0fe7b80da3d2dd195aef33218b6e94c2af4f8 | [
"0BSD"
] | null | null | null | (* Adapted from DQBF Formulas in MGHyper **)
open Functions
let verbose = ref true
type boolformula =
BTrue
| BFalse
| BVar of string * string * int
| BNeg of boolformula
| BAnd of boolformula * boolformula
| BAndList of boolformula list
| BOr of boolformula * boolformula
| BOrList of boolformula... | 28.040541 | 90 | 0.535422 |
8afc93b041b336a02ea9057ae8d67912182045d1 | 1,173 | ml | OCaml | hphp/hack/src/typing/typing_ast_print.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_ast_print.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_ast_print.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.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.
*
*)
let print_tast ctx =
let dummy_filename = Relative_path.default in
let env = Typing_env.empty ctx dummy_filename ~droot:No... | 36.65625 | 77 | 0.724638 |
aab8aa6f8bb980a0b0c8ff70c79256598a74a57d | 343 | ml | OCaml | src/stubs/tf_gen.ml | fishyfriend/tensorflow-ocaml | 52c5f1dec1a8b7dc9bc6ef06abbc07da6cd90d39 | [
"Apache-2.0"
] | 313 | 2016-03-22T01:28:59.000Z | 2022-02-15T19:49:27.000Z | src/stubs/tf_gen.ml | fishyfriend/tensorflow-ocaml | 52c5f1dec1a8b7dc9bc6ef06abbc07da6cd90d39 | [
"Apache-2.0"
] | 30 | 2016-04-15T07:31:21.000Z | 2020-02-02T01:23:56.000Z | src/stubs/tf_gen.ml | fishyfriend/tensorflow-ocaml | 52c5f1dec1a8b7dc9bc6ef06abbc07da6cd90d39 | [
"Apache-2.0"
] | 31 | 2016-03-23T23:06:42.000Z | 2021-11-19T20:50:34.000Z | let () =
let fmt file = Format.formatter_of_out_channel (open_out file) in
let fmt_c = fmt "tf_stubs.c" in
Format.fprintf fmt_c "#include \"c_api.h\"@.";
Cstubs.write_c fmt_c ~prefix:"caml_" (module Tf_bindings.C);
let fmt_ml = fmt "tf_generated.ml" in
Cstubs.write_ml fmt_ml ~prefix:"caml_" (module Tf_bindi... | 38.111111 | 67 | 0.708455 |
aa464a34f18c84c90c2df3ba0156ff75df7a9c3d | 4,096 | ml | OCaml | plugins/callgraph_collator/callgraph_collator_main.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1,697 | 2015-01-09T07:17:41.000Z | 2022-03-26T17:48:05.000Z | plugins/callgraph_collator/callgraph_collator_main.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 685 | 2015-01-10T21:32:42.000Z | 2022-03-23T23:44:53.000Z | plugins/callgraph_collator/callgraph_collator_main.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 294 | 2015-01-10T15:51:57.000Z | 2022-03-20T05:37:22.000Z | let doc = {|
# DESCRIPTION
Compares projects by their callgraphs. Outputs differences immitating
uniform diff format, e.g.,
```
- src -> dst
```
indicates that in the alternative version there is no call from src to dst,
and
```
+ src -> dst
```
means that in the base there is no call from src to dst.
|}
open Cor... | 30.117647 | 85 | 0.65332 |
aa5ac14949c6ecf34ffd6a6a1fe7df82dfb8610c | 153 | ml | OCaml | data/derived/comb/progs/unify/prog6786.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/prog1966.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1966.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) = let (b',c') = f b in if c' then wwhile (f, b') else b';;
let fixpoint (f,b) = wwhile ((let f' x = (f, ((f x) = x)) in f'), b);;
| 30.6 | 79 | 0.490196 |
8af89ecd451135c1a1cb6f4fe3b0e606e0e910d0 | 678 | mli | OCaml | src/vector.mli | patricoferris/vicuna | 6c18154266080d458783cf1ee2bc378ae5853497 | [
"MIT"
] | null | null | null | src/vector.mli | patricoferris/vicuna | 6c18154266080d458783cf1ee2bc378ae5853497 | [
"MIT"
] | null | null | null | src/vector.mli | patricoferris/vicuna | 6c18154266080d458783cf1ee2bc378ae5853497 | [
"MIT"
] | null | null | null | (* Vector Module *)
type t
exception ArrayTooSmall
val vector: float -> float -> float -> float -> t
val get_x: t -> float
val get_y: t -> float
val get_z: t -> float
val get_w: t -> float
val add : t -> t -> t
val sub : t -> t -> t
val cross : t -> t -> t
val dot : t -> t -> float
val length : t -> float
val a... | 21.1875 | 81 | 0.575221 |
aa7e9b1abd161188cca1a4bc1055dad5310e6b89 | 10,070 | ml | OCaml | hphp/hack/src/server/serverRpc.ml | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-03T16:16:53.000Z | 2021-08-03T16:16:53.000Z | hphp/hack/src/server/serverRpc.ml | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverRpc.ml | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_core
open ServerEnv
open ServerCommandTypes
open Utils
let remove_dead_fixme_warning = (
"hh_server was ... | 46.192661 | 98 | 0.677557 |
aa5513adebf3429bf2d42f0cd02bd12cf74de44a | 1,797 | ml | OCaml | libraries/ec2/lib/monitorInstances.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/monitorInstances.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/monitorInstances.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = MonitorInstancesRequest.t
type output = MonitorInstancesResult.t
type error = Errors_internal.t
let service = "ec2"
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.u... | 30.982759 | 96 | 0.578742 |
aa297950ea308e00f13920691583cf9227f36529 | 1,595 | ml | OCaml | OCaml/mini-c/pipeline/lib/ops.ml | LouisProffitX/INF564-Projet | daf78f04d7a760a773cc46a6c3c44632b5776a9c | [
"MIT"
] | null | null | null | OCaml/mini-c/pipeline/lib/ops.ml | LouisProffitX/INF564-Projet | daf78f04d7a760a773cc46a6c3c44632b5776a9c | [
"MIT"
] | null | null | null | OCaml/mini-c/pipeline/lib/ops.ml | LouisProffitX/INF564-Projet | daf78f04d7a760a773cc46a6c3c44632b5776a9c | [
"MIT"
] | null | null | null |
(** {2 Opérations x86-64} *)
(** opérations unaires *)
type munop =
| Maddi of int32
| Msetei of int32
| Msetnei of int32
(** opérations binaires *)
type mbinop =
| Mmov
| Madd
| Msub
| Mmul
| Mdiv
| Msete
| Msetne
| Msetl
| Msetle
| Msetg
| Msetge
(** opérations de branchement unaire... | 18.988095 | 43 | 0.59185 |
aa068f5c6f00fd543a1ebc11c0539fd3fb1f80fe | 7,799 | ml | OCaml | dis-15/exercises/server.ml | nwtnni/discussion-sp19 | c364d1afa7b854d69305f8c99a10908ac29906a9 | [
"MIT"
] | null | null | null | dis-15/exercises/server.ml | nwtnni/discussion-sp19 | c364d1afa7b854d69305f8c99a10908ac29906a9 | [
"MIT"
] | 4 | 2019-04-29T15:45:58.000Z | 2019-05-03T00:19:46.000Z | dis-15/exercises/server.ml | nwtnni/discussion-sp19 | c364d1afa7b854d69305f8c99a10908ac29906a9 | [
"MIT"
] | 1 | 2019-01-30T15:34:14.000Z | 2019-01-30T15:34:14.000Z | open Lwt.Infix
module AT = ANSITerminal
type rx = Lwt_io.input Lwt_io.channel
type tx = Lwt_io.output Lwt_io.channel
type client = {
addr: Unix.sockaddr;
name: string;
color: AT.style;
}
(** Global list of connected clients. *)
let clients: (client * tx) list ref = ref []
(** Return a prettified string with ... | 32.360996 | 100 | 0.616618 |
bc820e23dd9ff8a1fe19b17fe9e25ad19db488ad | 11,627 | ml | OCaml | coq/checker/votour.ml | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/checker/votour.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/checker/votour.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 28.851117 | 102 | 0.582265 |
44ca53b259e43fb7a38d501dad68b61f0a348635 | 248 | ml | OCaml | vendors/numerics/lib/utils.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | vendors/numerics/lib/utils.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | vendors/numerics/lib/utils.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | let int_compare x y =
if x < y then
-1
else if x = y then
0
else
1
let all_equal (l : int list) : int option =
let result =
List.sort_uniq int_compare l in
match result with
| [ uniq ] -> Some uniq
| _ -> None
| 16.533333 | 43 | 0.564516 |
aa211fa7865c9bd2ca3a6f39360949fa25a46b33 | 4,843 | ml | OCaml | infer/src/bufferoverrun/symb.ml | quangdo3112/infer | 846d6fa23dbe3eb24ffa76e117424620a8754e70 | [
"MIT"
] | null | null | null | infer/src/bufferoverrun/symb.ml | quangdo3112/infer | 846d6fa23dbe3eb24ffa76e117424620a8754e70 | [
"MIT"
] | null | null | null | infer/src/bufferoverrun/symb.ml | quangdo3112/infer | 846d6fa23dbe3eb24ffa76e117424620a8754e70 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module BoundEnd = struct
type t = LowerBound | UpperBound [@@deriving compare]
let neg = function Lower... | 27.833333 | 98 | 0.653108 |
aa4b57d5a11c25e3427c2bd94ecea65d75a59416 | 3,910 | ml | OCaml | vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/src/import.ml | nicobao/caramel | 5f77e1db48146ecb69c7ebad72c40c89106b79b6 | [
"Apache-2.0"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/src/import.ml | nicobao/caramel | 5f77e1db48146ecb69c7ebad72c40c89106b79b6 | [
"Apache-2.0"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | vendor/ocaml-lsp-1.4.0/ocaml-lsp-server/src/import.ml | nicobao/caramel | 5f77e1db48146ecb69c7ebad72c40c89106b79b6 | [
"Apache-2.0"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | module Fpath = Stdune.Path
module Ordering = Stdune.Ordering
module Json = Lsp.Import.Json
module Unix_env = Stdune.Env
module Code_error = Stdune.Code_error
module Int = Stdune.Int
module Option = Stdune.Option
module Table = Stdune.Table
module String = Stdune.String
module List = Stdune.List
module Result = Stdune.R... | 35.225225 | 76 | 0.817391 |
aa8f26ea121f0c5501fdccee679c28fe15208131 | 4,508 | ml | OCaml | snapshots/ecc-star/ml/c448_64/Fproduct.ml | blipp/hacl-star | 1442c015dab97cdf203ae238b1f3aeccf511bd1e | [
"Apache-2.0"
] | 1 | 2021-07-26T16:09:46.000Z | 2021-07-26T16:09:46.000Z | snapshots/ecc-star/ml/c448_64/Fproduct.ml | blipp/hacl-star | 1442c015dab97cdf203ae238b1f3aeccf511bd1e | [
"Apache-2.0"
] | null | null | null | snapshots/ecc-star/ml/c448_64/Fproduct.ml | blipp/hacl-star | 1442c015dab97cdf203ae238b1f3aeccf511bd1e | [
"Apache-2.0"
] | null | null | null |
open Prims
let constant_template_lemma = (fun size_a a size_b b -> ())
let rec bitweight_lemma_1 = (fun t i -> ())
let rec bitweight_lemma_0 = (fun t i j -> ())
let auxiliary_lemma_1 = (fun t a b -> ())
let gmultiplication_step_lemma_1 = (fun h0 h1 a b c idx len -> ())
let multiplication_step_lemma_1 = (fun h0 h1... | 28.531646 | 103 | 0.649068 |
bc0968a66b1e65dfef49e2d2f4ed3e9ad2ca857d | 72,061 | ml | OCaml | hphp/hack/src/server/serverTypeCheck.ml | check-spelling/hhvm | 8148973bf24b62b071cf072a6446a2baa91add9c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverTypeCheck.ml | check-spelling/hhvm | 8148973bf24b62b071cf072a6446a2baa91add9c | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2022-02-17T04:00:03.000Z | 2022-03-24T03:45:33.000Z | hphp/hack/src/server/serverTypeCheck.ml | check-spelling/hhvm | 8148973bf24b62b071cf072a6446a2baa91add9c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-02-19T09:29:50.000Z | 2022-02-19T09:29:50.000Z | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open ServerCheckUtils
open SearchServiceRunner
open ServerEnv
open Reordered_argument_collections
mo... | 35.42822 | 120 | 0.634199 |
aa92768929a2e199d1f9fc6061fa6a551b146557 | 225 | ml | OCaml | template/day_nn.ml | fsouza/aoc-2019 | 3062959ef9f8b5f0fe8ff4843bbe4e6bc10852c6 | [
"0BSD"
] | 1 | 2020-12-28T06:53:40.000Z | 2020-12-28T06:53:40.000Z | template/day_nn.ml | fsouza/aoc-2019 | 3062959ef9f8b5f0fe8ff4843bbe4e6bc10852c6 | [
"0BSD"
] | null | null | null | template/day_nn.ml | fsouza/aoc-2019 | 3062959ef9f8b5f0fe8ff4843bbe4e6bc10852c6 | [
"0BSD"
] | null | null | null | open StdLabels
type input = string list
let read_input () =
let rec read_input' acc =
try
let line = read_line () in
read_input' (line :: acc)
with End_of_file -> acc |> List.rev
in
read_input' []
| 17.307692 | 39 | 0.617778 |
aa49d685c1fa6e6d2196c18c1bf807e0962dbf18 | 3,621 | ml | OCaml | src/PML/formula.ml | alphaKAI/opml | c70f3778088ed5aa3a86dcc7f0e2246d9b3a7441 | [
"MIT"
] | 3 | 2018-07-19T16:12:55.000Z | 2018-07-23T10:56:29.000Z | src/PML/formula.ml | alphaKAI/opml | c70f3778088ed5aa3a86dcc7f0e2246d9b3a7441 | [
"MIT"
] | null | null | null | src/PML/formula.ml | alphaKAI/opml | c70f3778088ed5aa3a86dcc7f0e2246d9b3a7441 | [
"MIT"
] | null | null | null | open Sexplib.Conv
open Core
type variableIdentifier = VariableIdentifier of string [@@deriving eq, ord, sexp]
let show_variableIdentifier = function
| VariableIdentifier x -> x;;
type formula =
| Var of variableIdentifier
| Top
| Bottom
| Not of formula
| Box of formula
| Diamond of formula
| Imply o... | 31.215517 | 89 | 0.624965 |
aa692485fd685c7040192dbe7f3aa75c2e3a31bb | 10,542 | ml | OCaml | src/pathName.ml | dannywillems/coq-of-ocaml | 253c7745bb411d0a43bb1279ad33ec7beecf450e | [
"MIT"
] | null | null | null | src/pathName.ml | dannywillems/coq-of-ocaml | 253c7745bb411d0a43bb1279ad33ec7beecf450e | [
"MIT"
] | null | null | null | src/pathName.ml | dannywillems/coq-of-ocaml | 253c7745bb411d0a43bb1279ad33ec7beecf450e | [
"MIT"
] | null | null | null | (** Global identifiers with a module path, used to reference a definition for example. *)
open SmartPrint
open Monad.Notations
type t = {
path : Name.t list;
base : Name.t }
(** Internal helper for this module. *)
let __make (path : string list) (base : string) : t =
{
path = path |> List.map (fun name -> N... | 33.360759 | 89 | 0.643711 |
aa4c0fdb1adf0073e3c24366f5b1d9cc1e906383 | 3,624 | ml | OCaml | src/ctx.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | null | null | null | src/ctx.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | null | null | null | src/ctx.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | null | null | null | (*
* ctx.ml --- generic contexts
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
Revision.f "$Rev$";;
open Ext
type ident = { rep : string ; salt : int }
let string_of_ident id = match id.salt with
| 0 -> id.rep
| _ -> id.rep ^ "_"^ string_of_int id.salt
module EMap (Ord : Map.OrderedTyp... | 24.322148 | 69 | 0.553532 |
aa8870d905d33582f115af281e86c8cefe46f10b | 544 | ml | OCaml | src/system/term_ast.ml | ptal/nominal-workbench | 6587f9b4b904909c1b41f99148d713c99003e6fe | [
"MIT"
] | 1 | 2018-10-06T12:04:36.000Z | 2018-10-06T12:04:36.000Z | src/system/term_ast.ml | fredokun/nominal-workbench | 43f878d5fffbd44e540dd025930516da553a4594 | [
"MIT"
] | null | null | null | src/system/term_ast.ml | fredokun/nominal-workbench | 43f878d5fffbd44e540dd025930516da553a4594 | [
"MIT"
] | 3 | 2018-04-22T16:55:06.000Z | 2019-11-22T11:23:24.000Z | (* Distributed under the MIT License.
(See accompanying file LICENSE.txt)
(C) Copyright Roven Gabriel
(C) Copyright Vincent Botbol
(C) Copyright Pierrick Couderc
(C) Copyright Matthieu Dien
*)
type info = Lexing.position
type ident = string
type term_desc =
| Const
| Term of term_ast list
| Var
and t... | 18.758621 | 45 | 0.698529 |
aa86471c1df1c26a19613fbcfaee36e953c936ec | 24 | mli | OCaml | src/lib/key_cache/async/key_cache_async.mli | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/key_cache/async/key_cache_async.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/key_cache/async/key_cache_async.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | include Key_cache.Async
| 12 | 23 | 0.875 |
aa3771e35236518bd6e2a7a5ba9319b4bef7f959 | 253 | mli | OCaml | libraries/ec2/lib/describeSecurityGroupReferences.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeSecurityGroupReferences.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/describeSecurityGroupReferences.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = DescribeSecurityGroupReferencesRequest.t
type output = DescribeSecurityGroupReferencesResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 36.142857 | 74 | 0.782609 |
bcf230972c959eb4365e7d822846e65312f025ef | 949 | ml | OCaml | src/latex/types.ml | MisterDA/odoc | 6116e170ced462c9a026fcb770c40df9191d3d08 | [
"ISC"
] | null | null | null | src/latex/types.ml | MisterDA/odoc | 6116e170ced462c9a026fcb770c40df9191d3d08 | [
"ISC"
] | null | null | null | src/latex/types.ml | MisterDA/odoc | 6116e170ced462c9a026fcb770c40df9191d3d08 | [
"ISC"
] | null | null | null |
type break_hierarchy =
| Aesthetic
| Simple
| Line
| Paragraph
| Separation
type row_size =
| Empty
| Small (** text only *)
| Large (** No table *)
| Huge (** tables **)
type elt =
| Txt of string list
| Section of section
| Verbatim of string
| Internal_ref of reference
| External_ref ... | 22.069767 | 76 | 0.661749 |
bc2c791f1a496d240123775e1afcaea19232d325 | 1,273 | ml | OCaml | lib/dict.ml | roddyyaga/txtshooter | 00fa8cc97f521a85a67f71905f41f67a1f748604 | [
"MIT"
] | null | null | null | lib/dict.ml | roddyyaga/txtshooter | 00fa8cc97f521a85a67f71905f41f67a1f748604 | [
"MIT"
] | null | null | null | lib/dict.ml | roddyyaga/txtshooter | 00fa8cc97f521a85a67f71905f41f67a1f748604 | [
"MIT"
] | null | null | null | open Base
include Base.Hashtbl
let incr_float table key ~by =
let current = find_or_add table key ~default:(fun () -> 0.0) in
let new_total = Float.(current + by) in
set table ~key ~data:new_total
let extend table key new_items =
let current = find_or_add table key ~default:(fun () -> []) in
let new_value =... | 28.288889 | 70 | 0.627651 |
aab0b3d6293703de7518883ab0a6564bfed64289 | 158 | ml | OCaml | data/derived/comb/progs/unify/prog2721.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/prog2721.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2721.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 @ x in
let base = h in let l = sl in List.fold_left f base l;;
| 19.75 | 61 | 0.506329 |
aa40764afb66bda7a297709f21bcfdd4567596a4 | 6,235 | ml | OCaml | hphp/hack/test/integration_ml/runner.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-21T09:08:35.000Z | 2019-07-21T09:08:35.000Z | hphp/hack/test/integration_ml/runner.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/runner.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-30T11:52:42.000Z | 2019-07-30T11:52:42.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.
*
*)
let run (f:unit -> unit): (unit -> bool) =
(fun () -> f (); true)
let tests = [
"ide/added_parent" , run Test_added_pare... | 55.176991 | 120 | 0.79599 |
bcd91ed83a57e51f2785d976f55a11b859b8ded5 | 9,046 | ml | OCaml | test/ppx.ml | dariusf/ppx_polyprint | 6473b2cc1d56b2f3bc48b9e6a3b9cbcc7113073e | [
"MIT"
] | 18 | 2016-03-11T02:38:32.000Z | 2021-01-17T18:15:58.000Z | test/ppx.ml | dariusf/ppx_polyprint | 6473b2cc1d56b2f3bc48b9e6a3b9cbcc7113073e | [
"MIT"
] | null | null | null | test/ppx.ml | dariusf/ppx_polyprint | 6473b2cc1d56b2f3bc48b9e6a3b9cbcc7113073e | [
"MIT"
] | null | null | null |
open Test_util
open PolyPrint
open Format
type record = { a : int; b : string }
(* [@@deriving show] *)
(* this can be removed when the typpx-deriving bug is fixed *)
let pp_record fmt { a; b } =
fprintf fmt "{ a = %d; b = %s }" a b
class some_class =
object (self)
val field = 1
method meth x =
x ... | 26.84273 | 109 | 0.590537 |
aa75c448cb25fcb16d36bc93dbb2093ebc2257ba | 47,517 | mly | OCaml | src/parser/parse.mly | bryant/FStar | 0d846f227ddda282bafd82490de485b04c5a835e | [
"Apache-2.0"
] | null | null | null | src/parser/parse.mly | bryant/FStar | 0d846f227ddda282bafd82490de485b04c5a835e | [
"Apache-2.0"
] | null | null | null | src/parser/parse.mly | bryant/FStar | 0d846f227ddda282bafd82490de485b04c5a835e | [
"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_Errors
open FStar_List
open FStar_Util
open FStar_Range
open FStar_Option... | 36.1621 | 214 | 0.618389 |
aab58f849d50ebd92744ebad40924f4027f7bf70 | 4,680 | ml | OCaml | hphp/hack/src/utils/memory_stats.ml | billf/hhvm | e0767481dae5363be903b758941d8dbf0abea3da | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/utils/memory_stats.ml | billf/hhvm | e0767481dae5363be903b758941d8dbf0abea3da | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/utils/memory_stats.ml | billf/hhvm | e0767481dae5363be903b758941d8dbf0abea3da | [
"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.
*
*)
open Hh_prelude
open Base.Option.Monad_infix
let lines path =
try Some (Str.split (Str.regexp_string "\n") (Path.cat (Path.m... | 37.741935 | 99 | 0.651709 |
aa2e4dec5f8180e46611c8ee43c76b82c1a0030a | 24 | mli | OCaml | src/ocaml-3.12.0/otherlibs/threads/marshal.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/otherlibs/threads/marshal.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/otherlibs/threads/marshal.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | ../../stdlib/marshal.mli | 24 | 24 | 0.666667 |
aa930b54e3cf2d87d0e747e24e0f41063a3149f9 | 40,693 | ml | OCaml | benchs/run_benchs.ml | glean-dev/ocaml-containers | 3f08d899c98ee44509d6f6404488b1b0f26a7943 | [
"BSD-2-Clause"
] | null | null | null | benchs/run_benchs.ml | glean-dev/ocaml-containers | 3f08d899c98ee44509d6f6404488b1b0f26a7943 | [
"BSD-2-Clause"
] | null | null | null | benchs/run_benchs.ml | glean-dev/ocaml-containers | 3f08d899c98ee44509d6f6404488b1b0f26a7943 | [
"BSD-2-Clause"
] | null | null | null | (** Generic benchs *)
module B = Benchmark
let (@>) = B.Tree.(@>)
let (@>>) = B.Tree.(@>>)
let (@>>>) = B.Tree.(@>>>)
let (|>) = CCFun.(|>)
module Int_map = Map.Make(CCInt)
let app_int f n = string_of_int n @> lazy (f n)
let app_ints f l = B.Tree.concat (List.map (app_int f) l)
(* for benchmark *)
let repeat = 3
(... | 29.466329 | 112 | 0.551594 |
aa4f7315df2b593e32f44fe5d7c8a17506cea998 | 4,456 | mli | OCaml | src/dune_rules/obj_dir.mli | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | src/dune_rules/obj_dir.mli | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 1 | 2019-09-17T12:49:47.000Z | 2019-09-17T12:49:47.000Z | src/dune_rules/obj_dir.mli | staronj/dune | cf0ceccef1e177625b9361323bd7a3401a988d45 | [
"MIT"
] | null | null | null | (** Representation of the object directory for libraries *)
(** Dune store the artifacts of a library or a set of executables in a dedicated
dot directory (name starting with a '.').
This is mainly for hygiene reasons. Since the compiler might look at any
artifact in an include directory, it is important ... | 33.253731 | 80 | 0.684022 |
bc2a057603cce04bbeaf2b3a03e1a7e7c5a78bdd | 4,371 | ml | OCaml | piqic/piqic_ocaml_base.ml | smarkets/piqi | 4ff1485a6606df2eb3b210418b443101e24e4df8 | [
"Apache-2.0"
] | null | null | null | piqic/piqic_ocaml_base.ml | smarkets/piqi | 4ff1485a6606df2eb3b210418b443101e24e4df8 | [
"Apache-2.0"
] | null | null | null | piqic/piqic_ocaml_base.ml | smarkets/piqi | 4ff1485a6606df2eb3b210418b443101e24e4df8 | [
"Apache-2.0"
] | null | null | null | (*pp camlp4o -I `ocamlfind query piqi.syntax` pa_labelscope.cmo pa_openin.cmo *)
(*
Copyright 2009, 2010, 2011 Anton Lavrik
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:/... | 24.418994 | 80 | 0.700297 |
aaa7c755ab31e5ae5585f0660257a1dccd0c4272 | 2,078 | ml | OCaml | lib/worker/task_worker.ml | samoht/ciso | cd64117e0a97df7461b1311d107fe80e5a71dd49 | [
"0BSD"
] | 12 | 2015-08-24T17:12:46.000Z | 2016-03-23T21:53:22.000Z | lib/worker/task_worker.ml | samoht/ciso | cd64117e0a97df7461b1311d107fe80e5a71dd49 | [
"0BSD"
] | 10 | 2015-08-12T17:45:12.000Z | 2015-12-30T01:22:42.000Z | lib/worker/task_worker.ml | sevenEng/ocaml-ci | cd64117e0a97df7461b1311d107fe80e5a71dd49 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2015 David Sheets <sheets@alum.mit.edu>
* Copyright (c) 2015 Qi Li <liqi0425@gmail.com>
* Copyright (c) 2015 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provid... | 35.220339 | 75 | 0.677093 |
aaa9246e7aa13ee0fa2ebb9975126bf31291da25 | 2,197 | ml | OCaml | src/core/tfgraph_collection.ml | owlbarn/tfgraph | 71bec5e9a87ccec024dcca7e0ed46beb977e8892 | [
"MIT"
] | 2 | 2019-03-01T17:47:29.000Z | 2019-04-04T17:14:54.000Z | src/core/tfgraph_collection.ml | owlbarn/tfgraph | 71bec5e9a87ccec024dcca7e0ed46beb977e8892 | [
"MIT"
] | null | null | null | src/core/tfgraph_collection.ml | owlbarn/tfgraph | 71bec5e9a87ccec024dcca7e0ed46beb977e8892 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2019 Liang Wang <liang.wang@cl.cam.ac.uk>
* Copyright (c) 2019-2019 Jianxin Zhao <jianxin.zhao@cl.cam.ac.uk>
*)
open Tfgraph_types
open Tfgraph_utils
let create () = Hashtbl.create 100
let add_byteslist coll name = Hashtbl.add coll nam... | 26.154762 | 79 | 0.65726 |
aa0816d654bc6b91643cb4a2a4c0b7472f3b632c | 11,919 | ml | OCaml | infer/src/unit/analyzerTester.ml | stefb965/infer | 4057ffadcf6371af76be94dc34d05169ca290128 | [
"BSD-3-Clause"
] | 1 | 2016-12-19T07:33:16.000Z | 2016-12-19T07:33:16.000Z | infer/src/unit/analyzerTester.ml | stefb965/infer | 4057ffadcf6371af76be94dc34d05169ca290128 | [
"BSD-3-Clause"
] | null | null | null | infer/src/unit/analyzerTester.ml | stefb965/infer | 4057ffadcf6371af76be94dc34d05169ca290128 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2016 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! IStd... | 41.385417 | 99 | 0.705764 |
44a7fd2a6d981b9e916400e2b52038869c51d77e | 606 | mli | OCaml | src/dune/cm_files.mli | vahuja13/dune | 888a64db60b973da5685f8e4f2d9f2b2e1a4f264 | [
"MIT"
] | null | null | null | src/dune/cm_files.mli | vahuja13/dune | 888a64db60b973da5685f8e4f2d9f2b2e1a4f264 | [
"MIT"
] | null | null | null | src/dune/cm_files.mli | vahuja13/dune | 888a64db60b973da5685f8e4f2d9f2b2e1a4f264 | [
"MIT"
] | null | null | null | (** This module encapsulates the trick of speeding up builds by providing an
unsorted list of module dependencies statically and only using the topsorted
list of deps for the order when passing to ocamlopt *)
open Stdune
type t
val make :
obj_dir:Path.Build.t Obj_dir.t
-> modules:Modules.t
-> top_sort... | 27.545455 | 78 | 0.716172 |
aa88b32d2516d947638bce28979d3f46b2c68c57 | 209 | mli | OCaml | vendor/dune/src/stdune/appendable_list.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | 57 | 2019-05-15T14:23:37.000Z | 2021-05-24T19:23:19.000Z | vendor/dune/src/stdune/appendable_list.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | 53 | 2019-06-06T16:27:15.000Z | 2020-05-14T18:05:50.000Z | vendor/dune/src/stdune/appendable_list.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | 7 | 2019-06-03T15:07:32.000Z | 2020-04-06T14:06:22.000Z | (** Appendable lists: concatenation takes O(1) time, conversion to a list takes O(n). *)
type 'a t
val empty : 'a t
val singleton : 'a -> 'a t
val (@) : 'a t -> 'a t -> 'a t
val to_list : 'a t -> 'a list
| 17.416667 | 88 | 0.574163 |
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.