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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aac558e7923ee7feca71c59305e5bf37567540dd | 495 | mli | OCaml | src/dune_rules/setup.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | src/dune_rules/setup.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/dune_rules/setup.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2021-05-07T18:08:53.000Z | 2021-05-07T18:08:53.000Z | (** Setup of dune *)
open! Dune_engine
(** These parameters are set by [ocaml configure.ml] or copied from
[setup.defaults.ml]. *)
(** Where to find installed libraries for the default context. If [None],
auto-detect it using standard tools such as [ocamlfind]. *)
val library_path : string list option
(** Wh... | 30.9375 | 73 | 0.725253 |
171fd1d9d89670b9cb9043beac3d94f334070e59 | 1,832 | mli | OCaml | lib/preface_specs/freer_monad.mli | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 109 | 2021-04-08T18:41:14.000Z | 2022-03-26T10:28:45.000Z | lib/preface_specs/freer_monad.mli | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 35 | 2021-04-10T06:28:02.000Z | 2022-01-31T10:43:36.000Z | lib/preface_specs/freer_monad.mli | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 3 | 2021-05-07T21:53:35.000Z | 2021-08-28T12:28:12.000Z | (** A [Freer monad] allows you to build a {!module:Preface_specs.Monad} from an
arbitrary type (with one type parameter). It offers the same capabilities as
a {!module:Preface_specs.Free_monad} but benefits from a lighter execution
cost. *)
(** {1 Structure anatomy} *)
(** The [Freer Monad] API without th... | 28.625 | 80 | 0.617904 |
171284f90268294fcc786ee7edd669e138a25bcd | 5,497 | ml | OCaml | ocamllib/libbase/buf.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | ocamllib/libbase/buf.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | ocamllib/libbase/buf.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 58 | 2015-01-02T23:57:42.000Z | 2022-03-02T12:44:42.000Z | (*
Copyright © 2011, 2012 MLstate
This file is part of Opa.
Opa is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
Opa is distributed in the hope that it will be useful, ... | 29.553763 | 123 | 0.663453 |
171001c733104d75f0389284d697df858500d952 | 982 | mli | OCaml | src/pipeline/resolve_import.mli | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 248 | 2021-06-10T07:25:28.000Z | 2022-03-29T10:34:45.000Z | src/pipeline/resolve_import.mli | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 612 | 2021-06-10T07:04:33.000Z | 2022-03-31T16:28:29.000Z | src/pipeline/resolve_import.mli | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 36 | 2021-06-10T06:46:55.000Z | 2022-03-07T20:22:04.000Z | open Mo_def
open Mo_config
type filepath = string
module S : Set.S with type elt = Syntax.resolved_import
module RIM : Map.S with type key = Syntax.resolved_import
type actor_idl_path = string option
type package_urls = string Flags.M.t
type actor_aliases = string Flags.M.t
type resolved_imports = Syntax.resolved_i... | 26.540541 | 90 | 0.753564 |
aa7298ad87d543a4a60dcbfe7594354e392e341b | 192 | ml | OCaml | vendor/ppx_expect/example/chdir.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 97 | 2016-01-13T19:21:32.000Z | 2022-03-21T16:03:32.000Z | vendor/ppx_expect/example/chdir.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 34 | 2016-03-31T19:41:39.000Z | 2021-11-22T10:28:38.000Z | vendor/ppx_expect/example/chdir.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 16 | 2016-12-18T06:37:26.000Z | 2022-03-15T23:40:36.000Z | (* The test framework should be resilient to user changing the current directory. *)
let%expect_test _ =
print_string "hello world\n";
Unix.chdir "..";
[%expect {|
hello world
|}]
;;
| 19.2 | 84 | 0.671875 |
171c8b62336c09dda0e1d059fca2dce55890391a | 599 | ml | OCaml | fpat/checkHCCSSolver.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 32 | 2019-10-30T10:09:56.000Z | 2022-03-28T07:15:04.000Z | fpat/checkHCCSSolver.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 1 | 2021-04-14T19:19:15.000Z | 2021-04-15T02:03:56.000Z | fpat/checkHCCSSolver.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
let solve solver hcs =
let sol = solver hcs in
Logger.debug_assert
(fun () ->
if HCCS.is_solution hcs sol then true
else begin
Logger.printf "solution:@, %a@," PredSubst.pr sol;
false
end);
sol
let solve solver = Logger.log_block2 "CheckHCCSSo... | 27.227273 | 76 | 0.709516 |
aadf44a93ef3bdec21345bfb79787a49c7029c5f | 9,060 | ml | OCaml | sledge/src/symbheap/solver_test.ml | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"MIT"
] | 1 | 2019-11-23T14:35:34.000Z | 2019-11-23T14:35:34.000Z | sledge/src/symbheap/solver_test.ml | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"MIT"
] | null | null | null | sledge/src/symbheap/solver_test.ml | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"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.
*)
let%test_module _ =
( module struct
(* let () = Trace.init ~margin:160 ~config:all () *)
let () =
Trace.init ~marg... | 31.458333 | 76 | 0.409713 |
aad6fda7d238dc7aa8f30ceea0143cb4bf2d1585 | 1,467 | ml | OCaml | 7_grpahics-and-fractals/7.1_tortue.ml | etaghayor/tp-pf5 | 2a11647213ac5a593f0c10b78a304864f87ed6c1 | [
"MIT"
] | null | null | null | 7_grpahics-and-fractals/7.1_tortue.ml | etaghayor/tp-pf5 | 2a11647213ac5a593f0c10b78a304864f87ed6c1 | [
"MIT"
] | null | null | null | 7_grpahics-and-fractals/7.1_tortue.ml | etaghayor/tp-pf5 | 2a11647213ac5a593f0c10b78a304864f87ed6c1 | [
"MIT"
] | null | null | null | (* GRADE: 100% *)
let make_turtle x y = {x = x; y=y; angle=0.;path = (Path.moveto x y Path.empty)}
let make_turtle_complet var_x var_y var_angle var_path =
{x = var_x; y=var_y; angle=var_angle; path = var_path}
let forward dist trace t =
let y_dist = sin ((t.angle *. Float.pi) /. 180.)... | 35.780488 | 83 | 0.556237 |
173c1a3ead715325c663ece899d0c1fd4cb8f4b3 | 100,954 | ml | OCaml | infer/src/biabduction/Prop.ml | avery-laird/term-project | 00bcd0a3dca5ef7247c6758747d04e5c51d51f64 | [
"MIT"
] | 1 | 2019-11-23T14:35:34.000Z | 2019-11-23T14:35:34.000Z | infer/src/biabduction/Prop.ml | avery-laird/term-project | 00bcd0a3dca5ef7247c6758747d04e5c51d51f64 | [
"MIT"
] | null | null | null | infer/src/biabduction/Prop.ml | avery-laird/term-project | 00bcd0a3dca5ef7247c6758747d04e5c51d51f64 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Functions for Propositions (i.e., Symbolic Heaps) *)
module L = Logging... | 37.796331 | 109 | 0.59963 |
170df82798ea6edd3484ca65a0bd7eb53ca3502d | 9,471 | ml | OCaml | syntax/Primitive_impl.ml | joelburget/lvca | 2192e31977a9368ea54b376d7887b8fb93ef6e89 | [
"MIT"
] | 22 | 2019-01-22T23:06:29.000Z | 2022-02-10T02:52:56.000Z | syntax/Primitive_impl.ml | joelburget/lvca | 2192e31977a9368ea54b376d7887b8fb93ef6e89 | [
"MIT"
] | 28 | 2019-01-20T23:10:46.000Z | 2022-02-28T00:59:52.000Z | syntax/Primitive_impl.ml | joelburget/lvca | 2192e31977a9368ea54b376d7887b8fb93ef6e89 | [
"MIT"
] | null | null | null | open Base
open Lvca_util
module type Base_plain_s = sig
type t
val ( = ) : t -> t -> bool
val pp : t Fmt.t
val parse : t Lvca_parsing.t
val jsonify : t Json.serializer
val unjsonify : t Json.deserializer
end
module Make (Base_plain : Base_plain_s) : sig
type t = Provenance.t * Base_plain.t
val info ... | 27.293948 | 90 | 0.583782 |
aafee8508f7ffb860eac059abfb6c453c9096fb2 | 1,625 | ml | OCaml | APS1a/ast.ml | walidsadat/APS | 68e4473c4d74c15746ea758808c6edce9f492cd6 | [
"MIT"
] | null | null | null | APS1a/ast.ml | walidsadat/APS | 68e4473c4d74c15746ea758808c6edce9f492cd6 | [
"MIT"
] | null | null | null | APS1a/ast.ml | walidsadat/APS | 68e4473c4d74c15746ea758808c6edce9f492cd6 | [
"MIT"
] | null | null | null | (* ========================================================================== *)
(* == UPMC/master/info/4I506 -- Janvier 2016/2017/2018 == *)
(* == SU/FSI/master/info/MU4IN503 -- Janvier 2020/2021 == *)
(* == Analyse des programmes et sémantiques ==... | 26.639344 | 80 | 0.459692 |
aa5885de65833d32bc692d12397c75e12d329e28 | 3,859 | mli | OCaml | plugins/github/api.mli | art-w/ocurrent | 1c586a616cb929098685fb40ae52be4bf7bd72b7 | [
"Apache-2.0"
] | 1 | 2022-01-20T18:20:57.000Z | 2022-01-20T18:20:57.000Z | plugins/github/api.mli | art-w/ocurrent | 1c586a616cb929098685fb40ae52be4bf7bd72b7 | [
"Apache-2.0"
] | null | null | null | plugins/github/api.mli | art-w/ocurrent | 1c586a616cb929098685fb40ae52be4bf7bd72b7 | [
"Apache-2.0"
] | null | null | null | (* Public API; see Current_github.mli for details of these: *)
module Status : sig
type t
type state = [`Error | `Failure | `Pending | `Success ]
val v : ?description:string -> ?url:Uri.t -> state -> t
end
module CheckRunStatus : sig
type t
type action
type conclusion = [`Failure of string | `Success | `... | 35.081818 | 115 | 0.666753 |
aacb3e71f64b1cc5ed0131a8a48bb2ce4abfe7d7 | 384 | ml | OCaml | benchmarks/lambda/lambda1/submissions/sub142.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/lambda/lambda1/submissions/sub142.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/lambda/lambda1/submissions/sub142.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type metro = STATION of name
| AREA of name * metro
| CONNECT of metro * metro
and name = string
let checkMetro metro =
let rec rec_check m lst =
match m with
| STATION name -> List.mem name lst
| AREA (name, m1) -> rec_check m1 (name::lst)
| CONNECT (m1, m2) -> (rec_check ... | 27.428571 | 70 | 0.583333 |
aa76394073d8f5cd0f8eaae48267b99de3371530 | 1,064 | ml | OCaml | src/accessor_gc.ml | janestreet/accessor_core | 917168aef39c386864f4d2dc9f528f7f52698bce | [
"MIT"
] | 2 | 2020-02-17T14:38:16.000Z | 2021-12-17T02:53:07.000Z | src/accessor_gc.ml | janestreet/accessor_core | 917168aef39c386864f4d2dc9f528f7f52698bce | [
"MIT"
] | null | null | null | src/accessor_gc.ml | janestreet/accessor_core | 917168aef39c386864f4d2dc9f528f7f52698bce | [
"MIT"
] | 1 | 2021-12-17T02:53:53.000Z | 2021-12-17T02:53:53.000Z | open! Core
open! Import
module Stat = struct
[%%if ocaml_version < (4, 12, 0)]
type t = Gc.Stat.t =
{ minor_words : float
; promoted_words : float
; major_words : float
; minor_collections : int
; major_collections : int
; heap_words : int
; heap_chunks : int
; live_words : int
... | 20.461538 | 36 | 0.597744 |
1738d7314db484c5f95c3e241a6bd60662ec06ac | 13,030 | ml | OCaml | CCFQueue.ml | antoinekagit/sim-func | 819c0c2a0ed39f53b5992d40fbd0b7d17dc3feed | [
"BSD-2-Clause"
] | null | null | null | CCFQueue.ml | antoinekagit/sim-func | 819c0c2a0ed39f53b5992d40fbd0b7d17dc3feed | [
"BSD-2-Clause"
] | null | null | null | CCFQueue.ml | antoinekagit/sim-func | 819c0c2a0ed39f53b5992d40fbd0b7d17dc3feed | [
"BSD-2-Clause"
] | null | null | null | module CCFQueue = struct
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Functional queues (fifo)} *)
type 'a sequence = ('a -> unit) -> unit
type 'a klist = unit -> [`Nil | `Cons of 'a * 'a klist]
type 'a equal = 'a -> 'a -> bool
type 'a printer = Format.formatter -... | 25.15444 | 90 | 0.537606 |
aa74b7a559c4cfe7d3dd36ab9805bc3599a1050f | 192 | mli | OCaml | libraries/sqs/lib/untagQueue.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/sqs/lib/untagQueue.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/sqs/lib/untagQueue.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = UntagQueueRequest.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 17.454545 | 85 | 0.744792 |
aaf24c34e1a09fc597dafb4c311700f66bb04cda | 2,203 | ml | OCaml | src/commands.ml | danhper/flashcards-cli | 2238f3cf74ed59851b9085e357b7d1aff7e26f28 | [
"MIT"
] | 3 | 2019-05-22T10:46:39.000Z | 2020-02-17T04:34:44.000Z | src/commands.ml | danhper/flashcards-cli | 2238f3cf74ed59851b9085e357b7d1aff7e26f28 | [
"MIT"
] | null | null | null | src/commands.ml | danhper/flashcards-cli | 2238f3cf74ed59851b9085e357b7d1aff7e26f28 | [
"MIT"
] | null | null | null | open Core
let formatters = String.Map.of_alist_exn [
("csv", (module Csv.Out: VocabularyIo.Out));
("md", (module MarkdownTable.Out));
]
let init () =
Unix.mkdir_p ~perm:0o755 Config.dir;
match LNoise.linenoise "vocabulary path: " with
| Some filepath -> Config.save (Config.create filepath)
| None -> Out_c... | 36.114754 | 87 | 0.753064 |
170fe5399ec2bf2052521a2af3c9eaf3419a03e6 | 36,998 | ml | OCaml | src/lib/merkle_ledger_tests/test_mask.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/merkle_ledger_tests/test_mask.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/merkle_ledger_tests/test_mask.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | (* test_make.ml -- tests Merkle mask connected to underlying Merkle tree *)
open Core
open Test_stubs
module Database = Merkle_ledger.Database
module type Test_intf = sig
val depth : int
module Location : Merkle_ledger.Location_intf.S
module Base :
Merkle_mask.Base_merkle_tree_intf.S
with module Add... | 42.575374 | 118 | 0.657495 |
174b85d0517425c94c77c90de14ff54cb1ae7a1d | 46,574 | ml | OCaml | src/proto_011_PtHangzH/lib_protocol/test/helpers/liquidity_baking_machine.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | null | null | null | src/proto_011_PtHangzH/lib_protocol/test/helpers/liquidity_baking_machine.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | null | null | null | src/proto_011_PtHangzH/lib_protocol/test/helpers/liquidity_baking_machine.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | 1 | 2021-07-19T07:00:37.000Z | 2021-07-19T07:00:37.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 35.150189 | 82 | 0.644201 |
172c920637b639b86c811775038af0a5d1ffc694 | 574 | ml | OCaml | setup.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | setup.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | setup.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | (* OASIS_START *)
#use "topfind";;
#require "oasis.dynrun";;
open OASISDynRun;;
open OASISTypes;;
(* OASIS_STOP *)
let () =
InternalInstallPlugin.lib_hook :=
fun (cs, bs, lib) ->
match lib.OASISTypes.lib_findlib_name with
| Some "core" ->
(cs, bs, lib, ["lib/jane_common.h";
... | 24.956522 | 54 | 0.470383 |
bc8fc7e7b2a0e8399d962272c7902618f9fbbb63 | 726 | ml | OCaml | ppx_interpret/example/b.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | ppx_interpret/example/b.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | ppx_interpret/example/b.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | (* This the module we wish to interpret *)
(* The marker to say this file should be interpreted *)
[%interpret]
(* An external function implemented in C. It will call back into OCaml too. *)
external c_function : int -> int = "c_function"
(* A recursive function, which also uses something from another module *)
let ... | 33 | 106 | 0.695592 |
1707475d779581c31ecd554e78a111d2d3b05972 | 1,940 | ml | OCaml | hphp/hack/test/integration_ml/saved_state/test_load_decls_cold_synthesized_ancestors.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/saved_state/test_load_decls_cold_synthesized_ancestors.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/saved_state/test_load_decls_cold_synthesized_ancestors.ml | jeffomatic/hhvm | afd1a0c089aff36a31b8990490366606694a2842 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-07-30T11:52:42.000Z | 2019-07-30T11:52:42.000Z | open Core_kernel
open Asserter.Int_asserter
module Test = Integration_test_base
let cfoo_contents = "<?hh // strict
abstract class CFoo {
public abstract function foo(): int;
}"
let ibar_contents = "<?hh // strict
interface IBar {
public function bar(): int;
}"
let hot_contents = "<?hh // strict
trait Hot {
r... | 30.3125 | 78 | 0.698454 |
bc558c5f44952d322bb83be356ff3f2c41b8555b | 675 | ml | OCaml | data/sp14/3322.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/3322.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/3322.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec mulByDigit i l =
match List.rev l with
| [] -> []
| h::t -> [mulByDigit i (List.rev l); h * i];;
(* fix
let rec mulByDigit i l =
match List.rev l with
| [] -> []
| h::t -> (mulByDigit i (List.rev l)) @ [h * i];;
*)
(* changed spans
(5,12)-(5,46)
(5,13)-(5,23)
(5,40)-(5,45)
*)
(* type error sl... | 12.980769 | 51 | 0.459259 |
bc4473d424dcd703c68db7cf03d1b5df6c9cba03 | 326 | ml | OCaml | hack_parallel/hack_parallel/stubs/linting_service.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | hack_parallel/hack_parallel/stubs/linting_service.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | hack_parallel/hack_parallel/stubs/linting_service.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
let lint _ _ _... | 27.166667 | 80 | 0.702454 |
173ac8d8d472b2a2d860ebe315a4661d440d72f7 | 2,897 | ml | OCaml | hphp/hack/src/dfind/dfind.ml | tstarling/hhvm | 6bc40a3d0c7e5f3162b7ce606be52ed7408db3c1 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-01-27T10:11:42.000Z | 2022-01-27T10:11:42.000Z | hphp/hack/src/dfind/dfind.ml | tstarling/hhvm | 6bc40a3d0c7e5f3162b7ce606be52ed7408db3c1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/dfind/dfind.ml | tstarling/hhvm | 6bc40a3d0c7e5f3162b7ce606be52ed7408db3c1 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-03-24T20:14:38.000Z | 2021-03-24T20:14:38.000Z | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(***********... | 28.683168 | 80 | 0.569555 |
172302cf0d2c4fa405283582bfdc4847446dc026 | 2,242 | mly | OCaml | expectParser.mly | johanneskloos/webexpect | 1d81d6c3b3647d555ecc869dc5b045f50c3454a3 | [
"MIT"
] | null | null | null | expectParser.mly | johanneskloos/webexpect | 1d81d6c3b3647d555ecc869dc5b045f50c3454a3 | [
"MIT"
] | null | null | null | expectParser.mly | johanneskloos/webexpect | 1d81d6c3b3647d555ecc869dc5b045f50c3454a3 | [
"MIT"
] | null | null | null | %{
open ExpectTypes
%}
%token <int> NUMBER
%token <string> PATTERN STRING
%token GET PUT POST HEAD DELETE OPTIONS STATUS SEMICOLON
%token LBRACE RBRACE SET MATCH EQUALS COMMA
%token EOF LOAD WITH JSON
%start <ExpectTypes.instance * ExpectTypes.matchscript> prog
%type <ExpectTypes.instance -> ExpectTypes.instance> d... | 29.893333 | 90 | 0.650312 |
171fb0160d3f48e9b1dbd318df57e91c754e30b4 | 775 | ml | OCaml | benchmarks/I/diff/sub177.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/I/diff/sub177.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/I/diff/sub177.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type aexp =
| Const of int
| Var of string
| Power of string * int
| Times of aexp list
| Sum of aexp list
let rec diff : aexp * string -> aexp
= fun (exp, x) ->
let rec fmap f lst =
match lst with
[] -> []
|x::xs -> (f x)::(fmap f xs) in
let rec diff' var expr =
match expr with
... | 29.807692 | 100 | 0.525161 |
17451c142cf88efd4fe00309bc7b94c535b06210 | 6,670 | ml | OCaml | ast/test/visitTest.ml | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | 1 | 2019-05-07T15:03:58.000Z | 2019-05-07T15:03:58.000Z | ast/test/visitTest.ml | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | 1 | 2021-05-11T20:40:20.000Z | 2021-05-11T20:40:20.000Z | ast/test/visitTest.ml | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | null | null | null | (** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Core
open OUnit2
open Ast
open Expression
open Statement
open Test
let test_collect _ =
let assert_collect statements expected =
... | 25.265152 | 99 | 0.575712 |
172279b0c08387ecdc1e809dc62f420ed6a6c9c8 | 36,638 | ml | OCaml | translate/fofunctions.ml | tlaplus/v1-tlapm | c8523c675b2b20712a04c243c73a743d93c9e14a | [
"BSD-2-Clause"
] | 3 | 2019-09-02T11:44:20.000Z | 2020-01-23T07:46:12.000Z | translate/fofunctions.ml | lemmy/tlapm | 563ac8d0454386c4797ce060253c03b941e6c463 | [
"BSD-2-Clause"
] | null | null | null | translate/fofunctions.ml | lemmy/tlapm | 563ac8d0454386c4797ce060253c03b941e6c463 | [
"BSD-2-Clause"
] | 4 | 2019-06-28T15:15:43.000Z | 2020-02-17T01:14:35.000Z | open Fotypes;;
exception Illegal1;;
exception Illegal2;;
exception Illegal3;;
exception Illegal4;;
exception Illegal5;;
exception Illegal6;;
exception Illegal7;;
exception NonMonodic;;
(******************************************************************)
(* DEBUGGING ... | 34.860133 | 192 | 0.533217 |
171344e23333e3318d65ea005c88eee413313981 | 6,582 | ml | OCaml | src/comparable.ml | zenhack/base | c6780dd2c8a4adc76591c11ce1970e230bf737f9 | [
"MIT"
] | null | null | null | src/comparable.ml | zenhack/base | c6780dd2c8a4adc76591c11ce1970e230bf737f9 | [
"MIT"
] | null | null | null | src/comparable.ml | zenhack/base | c6780dd2c8a4adc76591c11ce1970e230bf737f9 | [
"MIT"
] | null | null | null | open! Import
include Comparable_intf
module Validate (T : sig
type t [@@deriving_inline compare, sexp_of]
include
sig
[@@@ocaml.warning "-32"]
val compare : t -> t -> int
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
end[@@ocaml.doc "@inline"]
[@@@end]
end) : Validate ... | 26.328 | 89 | 0.611668 |
172f287ccc56e8550a8700525b7451dd645188c5 | 53 | ml | OCaml | exercises/practice/forth/forth.ml | exercism-bot/ocaml | b72a0d29d7f31d90138eab8fc0f87e56b73ba938 | [
"MIT"
] | 67 | 2017-07-06T12:10:14.000Z | 2022-03-27T02:25:06.000Z | exercises/practice/forth/forth.ml | exercism-bot/ocaml | b72a0d29d7f31d90138eab8fc0f87e56b73ba938 | [
"MIT"
] | 106 | 2017-06-19T06:21:53.000Z | 2022-03-15T10:32:20.000Z | exercises/practice/forth/forth.ml | exercism-bot/ocaml | b72a0d29d7f31d90138eab8fc0f87e56b73ba938 | [
"MIT"
] | 36 | 2017-07-12T18:11:37.000Z | 2021-11-30T16:05:17.000Z | let evaluate _ =
failwith "'evaluate' is missing" | 26.5 | 36 | 0.698113 |
aadf6f213aff6b713aea3e4f9701115a03c134af | 8,081 | ml | OCaml | CodeHawk/CHB/bchlib/bCHFunctionSemantics.ml | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 2 | 2019-12-05T18:50:53.000Z | 2019-12-07T18:47:44.000Z | CodeHawk/CHB/bchlib/bCHFunctionSemantics.ml | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 1 | 2020-03-04T05:04:37.000Z | 2020-03-04T05:04:37.000Z | CodeHawk/CHB/bchlib/bCHFunctionSemantics.ml | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 1 | 2019-12-05T18:51:24.000Z | 2019-12-05T18:51:24.000Z | (* =============================================================================
CodeHawk Binary Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2020 Kestrel Technology LLC
Copyright (c) 2020 H... | 31.44358 | 83 | 0.620097 |
17061b9868906d783f1097f79c93955500ba3865 | 1,838 | mli | OCaml | bap-vibes/src/verbose.mli | draperlaboratory/VIBES | 46d3284e7ff0f897bd553a1678023ea1ebc9005e | [
"MIT"
] | 12 | 2022-02-11T18:58:30.000Z | 2022-03-30T18:00:39.000Z | bap-vibes/src/verbose.mli | draperlaboratory/VIBES | 46d3284e7ff0f897bd553a1678023ea1ebc9005e | [
"MIT"
] | 21 | 2022-02-13T06:18:16.000Z | 2022-03-31T18:09:17.000Z | bap-vibes/src/verbose.mli | draperlaboratory/VIBES | 46d3284e7ff0f897bd553a1678023ea1ebc9005e | [
"MIT"
] | null | null | null | (***************************************************************************)
(* *)
(* Copyright (C) 2022/2023 The Charles Stark Draper Laboratory, Inc. *)
(* *)
(* This... | 49.675676 | 77 | 0.495647 |
173d4056f91bb450d84f28cef519391fd7c4c925 | 229 | ml | OCaml | src/passes/01-lexing/jsligo.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 2 | 2021-03-06T12:11:41.000Z | 2021-11-21T13:54:18.000Z | src/passes/01-lexing/jsligo.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | src/passes/01-lexing/jsligo.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | (* Interfacing the JsLIGO lexer. *)
(* LIGO dependencies *)
module Comments = Preprocessing_jsligo.Comments
(* Internal dependencies *)
module Token = Lexing_jsligo.Token
include Lexing_shared.Common.Make (Comments) (Token)
| 19.083333 | 52 | 0.764192 |
aa291fa3705ff488bbdd481d2b7aa025c79cad48 | 8,050 | ml | OCaml | src/findlib/fl_topo.ml | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 18 | 2019-10-02T13:19:18.000Z | 2022-03-17T11:20:10.000Z | src/findlib/fl_topo.ml | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 27 | 2019-10-21T16:13:08.000Z | 2022-03-23T23:36:56.000Z | src/findlib/fl_topo.ml | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 17 | 2019-10-03T20:57:42.000Z | 2022-02-12T05:51:51.000Z | (* $Id$
* ----------------------------------------------------------------------
*
*)
(* TODO:
* - Use a hashtable in 'find'
* - implement le_than with an 'iter' like method
*)
(**********************************************************************)
module type IdentifiedType =
sig
type t
type id_... | 23.333333 | 73 | 0.492671 |
aafcb6a9b1384042cf1f313cb4083fc1ea447a18 | 7,838 | ml | OCaml | data/derived/comb/progs/unify/prog2745.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/prog2745.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2745.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.039867 | 148 | 0.686655 |
bcba07ba7441f296d5269fdd4f0773e199972bee | 2,156 | mli | OCaml | src/prover/clauseContext.mli | dillonhuff/zipperposition | 698ab26a214d1acd059934269424e264ced183bf | [
"BSD-2-Clause"
] | 1 | 2021-12-04T02:49:56.000Z | 2021-12-04T02:49:56.000Z | src/prover/clauseContext.mli | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | null | null | null | src/prover/clauseContext.mli | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of Zipperposition. See file "license" for more details. *)
(** {1 Clause context}
A clause with a "hole" in it. Filling the whole with a term [t] is called
"applying the context to [t]".
The point is to relate different applications of the same context. *)
open Logtk... | 32.666667 | 94 | 0.672078 |
17396f8a52c7a3cfc8b919dab7f5511982d7d55a | 2,444 | ml | OCaml | test/TestUtil.ml | gsutre/spa | 1a51a3fe0965e9c2d0d8100e729368f58ec2dae8 | [
"0BSD"
] | 3 | 2016-02-04T10:09:14.000Z | 2019-07-16T14:39:40.000Z | test/TestUtil.ml | gsutre/spa | 1a51a3fe0965e9c2d0d8100e729368f58ec2dae8 | [
"0BSD"
] | null | null | null | test/TestUtil.ml | gsutre/spa | 1a51a3fe0965e9c2d0d8100e729368f58ec2dae8 | [
"0BSD"
] | null | null | null | (* $Id: TestUtil.ml 3369 2015-11-13 13:06:25Z sutre $ *)
(*
* Utility functions for unit tests.
*)
(*
* Numerical non-relational abstract domain testing.
*)
module OfNumericalDomain (N : NumericalDomain.S) =
struct
open TestCore
open N
(* Helper function to create test messages. *)
let message name a b... | 30.55 | 77 | 0.639935 |
aa37fea31558f5af8b451bc5917ff24a79e756c0 | 2,346 | ml | OCaml | duniverse/ctypes/src/ctypes/ctypes_structs_computed.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ctypes/src/ctypes/ctypes_structs_computed.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ctypes/src/ctypes/ctypes_structs_computed.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2013 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
[@@@warning "-9"]
open Ctypes_static
let max_field_alignment fields =
List.fold_left
(fun align (BoxedField {ftype}) -> max align (alignment ftype))
0
fiel... | 33.042254 | 73 | 0.640665 |
173a45f2fcd24d3b729e83de34e631b317920ab7 | 1,218 | ml | OCaml | src/Library/NSHashMultiMap.ml | jberdine/SLAyer | 540976c814a5804a88d705fba5ac12382556171c | [
"MIT"
] | 1 | 2022-02-16T07:43:50.000Z | 2022-02-16T07:43:50.000Z | src/Library/NSHashMultiMap.ml | jberdine/SLAyer | 540976c814a5804a88d705fba5ac12382556171c | [
"MIT"
] | null | null | null | src/Library/NSHashMultiMap.ml | jberdine/SLAyer | 540976c814a5804a88d705fba5ac12382556171c | [
"MIT"
] | 1 | 2022-02-28T18:10:26.000Z | 2022-02-28T18:10:26.000Z | (* Copyright (c) Microsoft Corporation. All rights reserved. *)
open NSLib
open NSHashtbl
module HashMultiMap = struct
module type S = sig
type key
type 'a t
val create : int -> 'a t
val clear : 'a t -> unit
val copy : 'a t -> 'a t
val add : 'a t -> key -> 'a -> unit
val remove : 'a t... | 26.478261 | 64 | 0.5 |
aae8b636b1349663a94cb97f6f5091fd5b0b68ab | 5,328 | ml | OCaml | test/core/test.ml | bobot/qcheck | f5fc3df3cc23a733c2408f181f2ccd2c76ca47c2 | [
"BSD-2-Clause"
] | 260 | 2015-02-17T22:25:32.000Z | 2022-03-29T05:03:31.000Z | test/core/test.ml | tmcgilchrist/qcheck | fc2aadd95f6ebb5858246c856b68f7c6e77994c7 | [
"BSD-2-Clause"
] | 204 | 2016-03-16T20:37:48.000Z | 2022-03-18T10:46:05.000Z | test/core/test.ml | tmcgilchrist/qcheck | fc2aadd95f6ebb5858246c856b68f7c6e77994c7 | [
"BSD-2-Clause"
] | 34 | 2016-12-19T17:13:12.000Z | 2022-01-28T08:50:23.000Z | open QCheck2
module Shrink = struct
let test_int_towards () =
Alcotest.(check' (list int))
~msg:"int_towards 0 100"
~actual:(Shrink.int_towards 0 100 |> List.of_seq)
~expected:[0; 50; 75; 88; 94; 97; 99];
Alcotest.(check' (list int))
~msg:"int_towards 500 1000"
~actual:(Shrink.i... | 38.057143 | 144 | 0.630068 |
aaaf3efd464cb80d9f5ed92c795590aa726e7052 | 359 | mli | OCaml | src/utils/const.mli | Stienvdh/eff | 80ff311a6509a20148c823c69a084cd3ce200b83 | [
"BSD-2-Clause"
] | null | null | null | src/utils/const.mli | Stienvdh/eff | 80ff311a6509a20148c823c69a084cd3ce200b83 | [
"BSD-2-Clause"
] | null | null | null | src/utils/const.mli | Stienvdh/eff | 80ff311a6509a20148c823c69a084cd3ce200b83 | [
"BSD-2-Clause"
] | 1 | 2019-07-30T11:40:05.000Z | 2019-07-30T11:40:05.000Z | type t = private
| Integer of int
| String of string
| Boolean of bool
| Float of float
val of_integer : int -> t
val of_string : string -> t
val of_boolean : bool -> t
val of_float : float -> t
val of_true : t
val of_false : t
val print : t -> Format.formatter -> unit
val compare : t -> t -> CoreUtils.... | 14.958333 | 44 | 0.640669 |
aae5c37cc96107125408e99757b665ad781f2e9d | 13,255 | ml | OCaml | vendor/base/test/avltree_unit_tests.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 641 | 2016-09-16T15:51:06.000Z | 2022-03-31T19:30:56.000Z | vendor/base/test/avltree_unit_tests.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 121 | 2016-09-17T07:30:00.000Z | 2022-03-03T21:00:03.000Z | vendor/base/test/avltree_unit_tests.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 95 | 2016-09-16T23:31:38.000Z | 2022-03-19T01:35:06.000Z | open! Import
let%test_module _ =
(module (
struct
open Avltree
type ('k, 'v) t = ('k, 'v) Avltree.t = private
| Empty
| Node of
{ mutable left : ('k, 'v) t
; key : 'k
; mutable value : 'v
; mutable height : int
; mutable right : ('k, ... | 30.75406 | 85 | 0.493323 |
174a5d8aae1127ba3f68fa884527b1acaee1df33 | 226 | ml | OCaml | otherlibs/stdune/poly.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | otherlibs/stdune/poly.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | otherlibs/stdune/poly.ml | staronj/dune | cf0ceccef1e177625b9361323bd7a3401a988d45 | [
"MIT"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | let hash = Stdlib.Hashtbl.hash
let compare x y = Ordering.of_int (Stdlib.compare x y)
let equal = ( = )
let ( = ) = ( = )
let ( <> ) = ( <> )
let ( < ) = ( < )
let ( <= ) = ( <= )
let ( > ) = ( > )
let ( >= ) = ( >= )
| 12.555556 | 54 | 0.402655 |
1725a265e62daade4686eb72c6fd8d99719c9421 | 2,255 | ml | OCaml | EzPC/EzPC/codegenlib.ml | mayank0403/EzPC | 25eea0d7d9990d23f10d5aadaa5f82901f3b3b0a | [
"MIT"
] | 2 | 2020-07-13T12:43:30.000Z | 2021-06-29T12:12:49.000Z | EzPC/EzPC/codegenlib.ml | mayank0403/EzPC | 25eea0d7d9990d23f10d5aadaa5f82901f3b3b0a | [
"MIT"
] | null | null | null | EzPC/EzPC/codegenlib.ml | mayank0403/EzPC | 25eea0d7d9990d23f10d5aadaa5f82901f3b3b0a | [
"MIT"
] | 1 | 2020-10-21T02:46:28.000Z | 2020-10-21T02:46:28.000Z | (*
Authors: Aseem Rastogi, Nishant Kumar, Mayank Rathee.
Copyright:
Copyright (c) 2018 Microsoft Research
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 li... | 37.583333 | 85 | 0.706874 |
aabfa3f0640aa544f0a3aaa30bc352e7c1a144a2 | 1,149 | mli | OCaml | hphp/hack/src/parser/namespaces.mli | marscore/hhvm | b3d09b6b9a6beb521149f47e67d0691ac291e2b9 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-05-25T13:42:36.000Z | 2019-05-25T13:42:36.000Z | hphp/hack/src/parser/namespaces.mli | marscore/hhvm | b3d09b6b9a6beb521149f47e67d0691ac291e2b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/namespaces.mli | marscore/hhvm | b3d09b6b9a6beb521149f47e67d0691ac291e2b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type elaborate_kind =
| ElaborateFun
| ElaborateClass
| ElaborateConst
val autoimport_funcs : string list
v... | 30.236842 | 94 | 0.67537 |
aaaad7d7ddedc81b63da7945658829c72d48927c | 266 | mli | OCaml | libraries/ec2/lib/describeNetworkInterfaceAttribute.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeNetworkInterfaceAttribute.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeNetworkInterfaceAttribute.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
type input = DescribeNetworkInterfaceAttributeRequest.t
type output = DescribeNetworkInterfaceAttributeResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 38 | 74 | 0.793233 |
174350dba9f9925d88d9fe238187559e333c08c8 | 748 | ml | OCaml | data/derived/comb/progs/unify/prog7057.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/prog2241.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2241.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr
| Trip of expr* expr* expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine t -> sin (pi *. (eval (t, x... | 25.793103 | 71 | 0.442513 |
17459fec6d9da0c274c326c08bec47d9abf42395 | 4,834 | ml | OCaml | app/galaxy-pad/galaxy_pad.ml | adept/icfpc2020 | 259ab26a659332e2b99ca14db33b0d90896b8468 | [
"MIT"
] | null | null | null | app/galaxy-pad/galaxy_pad.ml | adept/icfpc2020 | 259ab26a659332e2b99ca14db33b0d90896b8468 | [
"MIT"
] | null | null | null | app/galaxy-pad/galaxy_pad.ml | adept/icfpc2020 | 259ab26a659332e2b99ca14db33b0d90896b8468 | [
"MIT"
] | null | null | null | open! Core
open! Icfpc2020
module G = Graphics
let pixel_size = 4
let put_pixel (shift_x, shift_y) (x, y) =
G.fill_rect
((shift_x + x) * pixel_size)
((shift_y - y) * pixel_size)
pixel_size
pixel_size
;;
let draw_picture pixel_shift pic = List.iter ~f:(put_pixel pixel_shift) pic
(* i-th gray *)
let... | 30.789809 | 91 | 0.60633 |
aa0ca16ef8d0e7bd239832224325366faef9c7f0 | 499 | mli | OCaml | src/tree.mli | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 32 | 2019-10-30T10:09:56.000Z | 2022-03-28T07:15:04.000Z | src/tree.mli | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 1 | 2021-04-14T19:19:15.000Z | 2021-04-15T02:03:56.000Z | src/tree.mli | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 5 | 2019-11-08T07:49:00.000Z | 2022-03-01T18:09:57.000Z | type 'a t = Leaf of 'a | Node of 'a t * 'a t
type path = int list
val root : 'a t -> 'a
val flatten : 'a t -> 'a list
val map : (path -> 'a -> 'b) -> 'a t -> 'b t
val fold : ('a -> 'a -> 'a) -> ('b -> 'a) -> 'b t -> 'a
val proj : path -> 'a t -> 'a t
val update : path -> 'a t -> 'a t -> 'a t
val for_all : ('a -> bool)... | 33.266667 | 80 | 0.466934 |
44e00139ca57d6f30a34c429a0c33f10ae90ffba | 5,774 | ml | OCaml | hphp/hack/test/unit/utils/timer_test.ml | 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/test/unit/utils/timer_test.ml | 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/test/unit/utils/timer_test.ml | 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) 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.
*
*
*)
(* schedule_timer_to_append ~result X will schedule a 0.Xs timer with a callback that appends X to
* the result ... | 32.994286 | 99 | 0.712504 |
4403d3eb83e152dacd0668c03ce8b7270a4f11c5 | 6,393 | ml | OCaml | src/lib/compile/Embeddings.ml | princedpw/nv | a82b2b4530d41ece98bd39c5d7ecb18c1dfaf9b6 | [
"MIT"
] | 6 | 2019-03-04T19:30:44.000Z | 2020-01-28T20:28:50.000Z | src/lib/compile/Embeddings.ml | princedpw/nv | a82b2b4530d41ece98bd39c5d7ecb18c1dfaf9b6 | [
"MIT"
] | 43 | 2018-10-01T13:12:36.000Z | 2020-01-14T17:55:54.000Z | src/lib/compile/Embeddings.ml | princedpw/nv | a82b2b4530d41ece98bd39c5d7ecb18c1dfaf9b6 | [
"MIT"
] | 2 | 2018-07-12T18:33:19.000Z | 2019-11-30T02:15:07.000Z | (** * OCaml to NV Embeddings*)
open Nv_lang
open Nv_utils
open Nv_datastructures
open PrimitiveCollections
open Syntax
open CompileBDDs
open Cudd
module B = BddUtils
(** Given an NV type and an OCaml value constructs an NV value*)
let rec embed_value (record_fns : int * int -> 'a -> 'b) (typ : Syntax.ty)
: 'v -> ... | 34.370968 | 144 | 0.611763 |
1752236a47490501e7aeba5587e98ad7c92f9564 | 3,902 | ml | OCaml | ocaml_modules/ocaml-migrate-parsetree/src/migrate_parsetree.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/ocaml-migrate-parsetree/src/migrate_parsetree.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/ocaml-migrate-parsetree/src/migrate_parsetree.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml Migrate Parsetree *)
(* *)
(* ... | 39.816327 | 76 | 0.625833 |
bc496538d9a54752a5e3401293a830d278c516eb | 14,875 | ml | OCaml | desc/time_zone.ml | daypack-dev/timere | e7b6096acb9a5f87336460b3f88865f5a1302819 | [
"MIT"
] | 44 | 2020-11-13T17:11:00.000Z | 2022-03-19T05:18:20.000Z | desc/time_zone.ml | daypack-dev/timere | e7b6096acb9a5f87336460b3f88865f5a1302819 | [
"MIT"
] | 42 | 2020-11-15T13:00:38.000Z | 2022-03-18T08:08:03.000Z | desc/time_zone.ml | daypack-dev/timere | e7b6096acb9a5f87336460b3f88865f5a1302819 | [
"MIT"
] | 4 | 2020-11-13T17:03:31.000Z | 2022-02-26T13:27:56.000Z | include Timedesc_tzdb
type record = {
recorded_offsets : int array;
table : table;
}
type typ =
| Backed of string
| Offset_only of int
type t = {
typ : typ;
record : record;
}
type 'a local_result =
[ `None
| `Single of 'a
| `Ambiguous of 'a * 'a
]
let check_table ((starts, entries) : table) :... | 29.929577 | 80 | 0.543597 |
170ffe015b5708b728f6f7450e082a4f6aa8af07 | 1,204 | ml | OCaml | src/delay_systemd.ml | darrenldl/fugit | 1fd352a8df725354fb19b054c3a1c8416a0ec8f8 | [
"ISC"
] | 13 | 2020-05-04T19:43:58.000Z | 2020-05-31T21:07:23.000Z | src/delay_systemd.ml | darrenldl/fugit | 1fd352a8df725354fb19b054c3a1c8416a0ec8f8 | [
"ISC"
] | 3 | 2020-05-07T20:07:07.000Z | 2020-09-19T06:41:07.000Z | src/delay_systemd.ml | darrenldl/fugit | 1fd352a8df725354fb19b054c3a1c8416a0ec8f8 | [
"ISC"
] | 3 | 2020-05-07T19:48:35.000Z | 2020-05-08T16:53:03.000Z | open Lwt_result.Infix
module P = CalendarLib.Calendar.Precise
let systemd_run_cmd target_time cmd =
let pp_for_systemd =
CalendarLib.Printer.Precise_Calendar.fprint "%F %T UTC"
in
Bos.Cmd.(
v "systemd-run"
% "--user"
% "--no-ask-password"
% "--collect"
% "--timer-property=AccuracySec=1s"
... | 27.363636 | 67 | 0.63289 |
aa3e93db8d3d65b4fc01fb68535e168b76b624a2 | 27,524 | ml | OCaml | src/lib/transition_frontier/transition_frontier.ml | spaweb/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 2 | 2021-12-10T21:56:09.000Z | 2021-12-15T21:51:35.000Z | src/lib/transition_frontier/transition_frontier.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | null | null | null | src/lib/transition_frontier/transition_frontier.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | null | null | null | (** This module glues together the various components that compose
* the transition frontier, wrapping high-level initialization
* logic as well as gluing together the logic for adding items
* to the frontier *)
open Core
open Async_kernel
open Mina_base
open Mina_transition
include Frontier_base
module Full_fronti... | 39.545977 | 162 | 0.69532 |
aad6a7a6a5097d2a4da9db1d07e889754d9f990b | 937 | ml | OCaml | libraries/route53/lib/deleteTrafficPolicyInstance.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/deleteTrafficPolicyInstance.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/deleteTrafficPolicyInstance.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteTrafficPolicyInstanceRequest.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
... | 24.657895 | 85 | 0.643543 |
17333b7c5ecdaba104c32cf20e5431e8ff944d8e | 26,015 | ml | OCaml | src/owl/dense/owl_dense_ndarray_intf.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | null | null | null | src/owl/dense/owl_dense_ndarray_intf.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | null | null | null | src/owl/dense/owl_dense_ndarray_intf.ml | Fourchaux/owl | 06e2f033b4ebda1e9bfd087f76cee4675c76d805 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
open Bigarray
open Owl_types
module type Common = sig
include Owl_base_dense_ndarray_intf.Common
(* NOTE: below are all the functions that have
not been implemented in Base*)
(** {6 ... | 23.290063 | 90 | 0.583433 |
bc7980b0ce05c69b4d305f09f57fe7676bab633d | 129 | ml | OCaml | eval/sherrloc/easyocaml++/easyocaml/ezyLangLevel.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/easyocaml/ezyLangLevel.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/easyocaml/ezyLangLevel.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | include EzyFeatures
let configure features modules objs = EzyDynload.LangLevel.config_result := Some (features, modules, objs)
| 25.8 | 106 | 0.806202 |
aad6c10006dbaf3b48c4556fd9029877fe254750 | 10,114 | ml | OCaml | src/lsp/selectionRangeProvider.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 1 | 2021-09-20T07:39:05.000Z | 2021-09-20T07:39:05.000Z | src/lsp/selectionRangeProvider.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | null | null | null | src/lsp/selectionRangeProvider.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"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 Base
(** Provides LSP "selection ranges" for the textDocument/selectionRange API.
Given a cursor position, it returns a ... | 36.381295 | 125 | 0.709314 |
172417cee291868c16fb00ebacdc61b7ae5578bf | 10,599 | ml | OCaml | src/dune_rules/module.ml | janestreet/jbuilder | 863174b353146a5af143fd78530b1eafad987eda | [
"Apache-2.0"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | src/dune_rules/module.ml | janestreet/jbuilder | 863174b353146a5af143fd78530b1eafad987eda | [
"Apache-2.0"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | src/dune_rules/module.ml | janestreet/jbuilder | 863174b353146a5af143fd78530b1eafad987eda | [
"Apache-2.0"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | open! Dune_engine
open! Stdune
open Import
module File = struct
type t =
{ path : Path.t
; dialect : Dialect.t
}
let path t = t.path
let set_src_dir t ~src_dir =
let path = Path.relative src_dir (Path.basename t.path) in
{ t with path }
let make dialect path = { dialect; path }
let to... | 29.689076 | 80 | 0.642136 |
aaf3ae8ee789551aa8f03665563576f3244bd0ca | 18,194 | ml | OCaml | src/filters/exceptions.ml | TomBebb/haxe | 2954b268af3872add5ef872838ef27bbee7fbff9 | [
"MIT"
] | null | null | null | src/filters/exceptions.ml | TomBebb/haxe | 2954b268af3872add5ef872838ef27bbee7fbff9 | [
"MIT"
] | null | null | null | src/filters/exceptions.ml | TomBebb/haxe | 2954b268af3872add5ef872838ef27bbee7fbff9 | [
"MIT"
] | null | null | null | open Globals
open Ast
open Type
open Common
open Typecore
open TyperBase
open Fields
open Error
let haxe_exception_type_path = (["haxe"],"Exception")
type context = {
typer : typer;
basic : basic_types;
config : exceptions_config;
wildcard_catch_type : Type.t;
base_throw_type : Type.t;
haxe_exception_class : tc... | 31.807692 | 134 | 0.663296 |
170a1a8ee02bf3d882ba424a6b1f1a5c8c63e072 | 1,403 | ml | OCaml | src/bin/main.ml | drjdn/ocaml_lua_parser | 3800c9a067de770563955571595b3c61050c04af | [
"MIT"
] | 2 | 2020-09-18T02:27:05.000Z | 2020-11-23T14:46:16.000Z | src/bin/main.ml | drjdn/ocaml_lua_parser | 3800c9a067de770563955571595b3c61050c04af | [
"MIT"
] | 1 | 2021-06-29T08:10:33.000Z | 2021-06-29T22:49:25.000Z | src/bin/main.ml | drjdn/ocaml_lua_parser | 3800c9a067de770563955571595b3c61050c04af | [
"MIT"
] | null | null | null | (*
The MIT License
Copyright (c) 2020 Jason... | 31.177778 | 145 | 0.483963 |
aab864d79a5b44eedba71d0e02614324fca46022 | 7,492 | ml | OCaml | data/derived/comb/progs/unify/prog6868.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/prog2052.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2052.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.94964 | 148 | 0.628404 |
aa78ab4154655fd2bca008e84efc9b707a04f033 | 730 | ml | OCaml | duniverse/dune_/src/dune_rules/cm_kind.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | duniverse/dune_/src/dune_rules/cm_kind.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | duniverse/dune_/src/dune_rules/cm_kind.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z | open! Dune_engine
open Import
type t =
| Cmi
| Cmo
| Cmx
let compare = Poly.compare
let all = [ Cmi; Cmo; Cmx ]
let choose cmi cmo cmx = function
| Cmi -> cmi
| Cmo -> cmo
| Cmx -> cmx
let ext = choose ".cmi" ".cmo" ".cmx"
let source = choose Ml_kind.Intf Impl Impl
module Dict = struct
type 'a t =
... | 15.869565 | 72 | 0.542466 |
aa27c0afa3b80b5c9cbbae94f5d2ef7207d8f742 | 1,415 | mli | OCaml | src/stdune/list.mli | CraigFe/dune | 19f7e44b435977e12fa059e84f89d431553a3635 | [
"MIT"
] | null | null | null | src/stdune/list.mli | CraigFe/dune | 19f7e44b435977e12fa059e84f89d431553a3635 | [
"MIT"
] | null | null | null | src/stdune/list.mli | CraigFe/dune | 19f7e44b435977e12fa059e84f89d431553a3635 | [
"MIT"
] | null | null | null | include module type of struct include ListLabels end
(* ocaml/ocaml#1892 "Allow shadowing of items coming from an include"
helps making this work in 4.08, as OCaml now includes a `List.t`
type. *)
type 'a t = 'a list
val is_empty : _ t -> bool
val filter_map : 'a t -> f:('a -> 'b option) -> 'b t
val filter_op... | 26.698113 | 76 | 0.530742 |
173f3cf4479aebbf44a5633cb798232bdfc5f414 | 36 | ml | OCaml | src/passes/00-preprocessing/Errors.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 2 | 2021-03-06T12:11:41.000Z | 2021-11-21T13:54:18.000Z | src/passes/00-preprocessing/Errors.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | src/passes/00-preprocessing/Errors.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | include Preprocessing_shared.Errors
| 18 | 35 | 0.916667 |
174658ad95c3876e7f0b630c4870080b14f79692 | 5,251 | ml | OCaml | src/parser/flow_ast_utils.ml | segmentationfaulter/flow | 3dddd0603fef8034949c3a04b24688125d1a2d71 | [
"MIT"
] | 1 | 2022-02-06T01:14:40.000Z | 2022-02-06T01:14:40.000Z | src/parser/flow_ast_utils.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"MIT"
] | null | null | null | src/parser/flow_ast_utils.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"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 Flow_ast
type 'loc binding = 'loc * string
type 'loc ident = 'loc * string
type 'loc source = 'loc * string
let rec fold_bi... | 25.245192 | 82 | 0.602171 |
bc84acb7f2e3f07ace68e6cd6f513b91c8280593 | 22,468 | ml | OCaml | src/frontend/Pretty_printing.ml | mandel/stanc3 | 2e5562c16c7567ddf7fedc988902f9e38e390136 | [
"BSD-3-Clause"
] | null | null | null | src/frontend/Pretty_printing.ml | mandel/stanc3 | 2e5562c16c7567ddf7fedc988902f9e38e390136 | [
"BSD-3-Clause"
] | 1 | 2020-10-12T23:55:15.000Z | 2020-11-10T16:28:09.000Z | src/frontend/Pretty_printing.ml | mandel/stanc3 | 2e5562c16c7567ddf7fedc988902f9e38e390136 | [
"BSD-3-Clause"
] | 1 | 2020-10-12T23:48:37.000Z | 2020-10-12T23:48:37.000Z | (** Some helpers to produce nice error messages and for auto-formatting Stan programs *)
open Core_kernel
open Core_kernel.Poly
open Ast
(** To avoid cluttering the AST, comments are not associated with any particular AST node but instead come in a separate list.
The pretty printer uses the AST nodes' location met... | 37.075908 | 126 | 0.621595 |
aa2b00f316821cc563a4123ccdbdbbeb1c2ca116 | 323 | ml | OCaml | src/lib_time_measurement/ppx/test/valid/test_flush_binding_output.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_time_measurement/ppx/test/valid/test_flush_binding_output.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_time_measurement/ppx/test/valid/test_flush_binding_output.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | let _ =
Lwt.return 1 >>= fun x1 ->
Lwt.return 2 >>= fun x2 ->
( Lwt.return 3 >>= fun __flush__id__0 ->
Tezos_time_measurement_runtime.Default.Time_measurement.flush ()
>|= fun () -> __flush__id__0 )
>>= fun x3 ->
Lwt.return 4 >>= fun x4 ->
Lwt.return 5 >>= fun x5 -> Lwt.return (x1 + x2 + x3 + x4 + x... | 32.3 | 68 | 0.588235 |
aa8ca3a16c88ccc37c415017ce11dcb6bca31071 | 31,336 | ml | OCaml | src/dune_rules/super_context.ml | janestreet/jbuilder | 863174b353146a5af143fd78530b1eafad987eda | [
"Apache-2.0"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | src/dune_rules/super_context.ml | janestreet/jbuilder | 863174b353146a5af143fd78530b1eafad987eda | [
"Apache-2.0"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | src/dune_rules/super_context.ml | janestreet/jbuilder | 863174b353146a5af143fd78530b1eafad987eda | [
"Apache-2.0"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | open Import
let default_context_flags (ctx : Context.t) ~project =
let cflags = Ocaml_config.ocamlc_cflags ctx.ocaml_config in
let cxxflags =
List.filter cflags ~f:(fun s -> not (String.is_prefix s ~prefix:"-std="))
in
let c, cxx =
match Dune_project.use_standard_c_and_cxx_flags project with
| None... | 36.865882 | 81 | 0.660646 |
aaf15fd46acf81a7a3cf3a5b4be8af77d3e508bc | 5,160 | mli | OCaml | src/owl/nlp/owl_nlp_corpus.mli | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/owl/nlp/owl_nlp_corpus.mli | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/owl/nlp/owl_nlp_corpus.mli | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
(** NLP: Corpus module *)
(** {5 Type definition} *)
type t
(** Type of a text corpus. *)
(** {5 Query corpus} *)
val length : t -> int
(** Return the size of the corpus, i.e. number of documents. *)
... | 32.25 | 117 | 0.677132 |
1745cafae191498c37015edf2b2970478d042ff2 | 8,174 | ml | OCaml | duniverse/ocamlgraph.1.8.8+dune/src/cliquetree.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/ocamlgraph.1.8.8+dune/src/cliquetree.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | duniverse/ocamlgraph.1.8.8+dune/src/cliquetree.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | (**************************************************************************)
(* *)
(* Ocamlgraph: a generic graph library for OCaml *)
(* Copyright (C) 2004-2010 *)
(* Sylvain ... | 29.509025 | 76 | 0.503425 |
173f983cc6a6d988592102ae925235eff5e02936 | 6,344 | ml | OCaml | hphp/hack/src/hhbc/emit_type_constant.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2016-10-08T12:13:09.000Z | 2016-10-08T12:13:09.000Z | hphp/hack/src/hhbc/emit_type_constant.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_type_constant.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Hh_core
o... | 33.041667 | 82 | 0.662516 |
1725a11f2fc61353f914474a21943f891d98bc79 | 4,521 | ml | OCaml | lib/bio/bedtools.ml | bcdarwin/bistro | 8383e10422f1a8f634fd27b5515d5195bbe1f75f | [
"CECILL-B"
] | null | null | null | lib/bio/bedtools.ml | bcdarwin/bistro | 8383e10422f1a8f634fd27b5515d5195bbe1f75f | [
"CECILL-B"
] | null | null | null | lib/bio/bedtools.ml | bcdarwin/bistro | 8383e10422f1a8f634fd27b5515d5195bbe1f75f | [
"CECILL-B"
] | null | null | null | open Core_kernel
open Bistro
open Bistro.Shell_dsl
let img = [ docker_image ~account:"pveber" ~name:"bedtools" ~tag:"2.21.0" () ]
let bedtools ?stdout subcmd args =
cmd "bedtools" ?stdout (string subcmd :: args)
type 'a input = Bed | Gff
let bed = Bed
let gff = Gff
module Cmd = struct
let slop_args ?strand ?he... | 30.547297 | 104 | 0.547224 |
17510c7c0952babb709cda7f07aa67855530dfbd | 7,611 | mli | OCaml | vendor/core_kernel/bus/src/bus.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/core_kernel/bus/src/bus.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/core_kernel/bus/src/bus.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | (** A [Bus] is a publisher/subscriber system within the memory space of the program. A
bus has a mutable set of subscribers, which can be modified using [subscribe_exn] and
[unsubscribe].
[create] returns a [Bus.Read_write.t], which you can use to [write] values to the bus.
[write] calls the callbacks... | 41.818681 | 90 | 0.655236 |
bcff3589b66d65f351c70d6011447b06a56f9329 | 278 | mli | OCaml | interpreter/exec/f32_convert.mli | hellolyf/ocaml-offchain | 927caca8699c5d2a707fd417acdda778ed30e284 | [
"MIT"
] | 47 | 2017-09-12T17:56:49.000Z | 2022-03-25T11:59:15.000Z | interpreter/exec/f32_convert.mli | hellolyf/ocaml-offchain | 927caca8699c5d2a707fd417acdda778ed30e284 | [
"MIT"
] | 51 | 2017-09-18T15:43:47.000Z | 2018-10-30T17:39:09.000Z | interpreter/exec/f32_convert.mli | hellolyf/ocaml-offchain | 927caca8699c5d2a707fd417acdda778ed30e284 | [
"MIT"
] | 14 | 2017-09-17T22:09:43.000Z | 2021-11-05T17:44:19.000Z | (* WebAssembly-compatible type conversions to f32 implementation *)
val demote_f64 : F64.t -> F32.t
val convert_s_i32 : I32.t -> F32.t
val convert_u_i32 : I32.t -> F32.t
val convert_s_i64 : I64.t -> F32.t
val convert_u_i64 : I64.t -> F32.t
val reinterpret_i32 : I32.t -> F32.t
| 30.888889 | 67 | 0.71223 |
aaa26e24c27a56ba9be957928491b6c4dde82ccc | 202 | ml | OCaml | data/derived/comb/progs/unify/prog1280.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/prog1280.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1280.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
let helper = (f, b) in
match helper with | (x',n) -> if n = true then wwhile (f, x') else x';;
let _ = let f x = let xx = (x * x) * x in (xx, (xx < 100)) in wwhile (f, 2);;
| 28.857143 | 77 | 0.514851 |
aaf38d75bad13aaf41fd29b5745a32cbab91d70f | 780 | ml | OCaml | ocaml/bob/bob.ml | hyphenrf/my-exercism | 2ad2a6d0a3ebd4192837590cf8b9427d7903399c | [
"MIT"
] | null | null | null | ocaml/bob/bob.ml | hyphenrf/my-exercism | 2ad2a6d0a3ebd4192837590cf8b9427d7903399c | [
"MIT"
] | null | null | null | ocaml/bob/bob.ml | hyphenrf/my-exercism | 2ad2a6d0a3ebd4192837590cf8b9427d7903399c | [
"MIT"
] | null | null | null | let is_lower = function 'a'..'z' -> true | _ -> false
let is_upper = function 'A'..'Z' -> true | _ -> false
let rec string_any ?(i=0) (fn: char -> bool) str =
if i = String.length str then false
else fn str.[i] || string_any ~i:(i+1) fn str
let response_for s = match String.trim s with
| "" -> "Fine. Be tha... | 35.454545 | 70 | 0.542308 |
1753129f14275f18eb27b61b1b5ec8aa7a9bcf94 | 1,120 | mli | OCaml | src/ast/analyzing/langs/cpp/parsing/src/ulexer.mli | mstmhsmt/cca | 0dc69b0f0da1def4e8404e5f7b7fe35b6ac3198a | [
"Apache-2.0"
] | null | null | null | src/ast/analyzing/langs/cpp/parsing/src/ulexer.mli | mstmhsmt/cca | 0dc69b0f0da1def4e8404e5f7b7fe35b6ac3198a | [
"Apache-2.0"
] | null | null | null | src/ast/analyzing/langs/cpp/parsing/src/ulexer.mli | mstmhsmt/cca | 0dc69b0f0da1def4e8404e5f7b7fe35b6ac3198a | [
"Apache-2.0"
] | null | null | null | (*
Copyright 2012-2020 Codinuum Software Lab <https://codinuum.com>
Copyright 2020 Chiba Institute of Technology
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://www.apa... | 32.941176 | 100 | 0.726786 |
af81ddaddc0d52181e5550e9257960a4408590df | 14,518 | ml | OCaml | src/repr/type.ml | mattiasdrp/repr | 38c9f011badab2a9ba55d42b0ef1174cbab019a4 | [
"0BSD"
] | null | null | null | src/repr/type.ml | mattiasdrp/repr | 38c9f011badab2a9ba55d42b0ef1174cbab019a4 | [
"0BSD"
] | null | null | null | src/repr/type.ml | mattiasdrp/repr | 38c9f011badab2a9ba55d42b0ef1174cbab019a4 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2016-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 28.805556 | 81 | 0.613928 |
17394f00e6bb92e6fb38c51238fc2d49d6795f4a | 1,311 | ml | OCaml | test/unit/fixtures/instrument/letop_408.reference.ml | undu/bisect_ppx | a4b8cb617dd9b8f33be8da7b8e63390e81b85fb6 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/letop_408.reference.ml | undu/bisect_ppx | a4b8cb617dd9b8f33be8da7b8e63390e81b85fb6 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/letop_408.reference.ml | undu/bisect_ppx | a4b8cb617dd9b8f33be8da7b8e63390e81b85fb6 | [
"MIT"
] | 1 | 2020-11-17T11:14:18.000Z | 2020-11-17T11:14:18.000Z | [@@@ocaml.text "/*"]
module Bisect_visit___letop_408___ml =
struct
let ___bisect_visit___ =
let point_definitions =
"\132\149\166\190\000\000\0009\000\000\000\r\000\000\0001\000\000\0001\b\000\0000\000\160Q@\160fA\160|B\160\000mD\160\000zC\160\001\000\178G\160\001\000\210F\160\001\000\223E\160\001\0... | 40.96875 | 245 | 0.702517 |
aa97832fa2531f724c1a4c023c15953aa0b1f3f9 | 188 | mll | OCaml | examples/env.mll | retran/my-little-lispy | 197d697c169cb19ff4de807279a085a0642ac0f8 | [
"MIT"
] | 1 | 2015-05-26T10:12:25.000Z | 2015-05-26T10:12:25.000Z | examples/env.mll | retran/my-little-lispy-experimental | 197d697c169cb19ff4de807279a085a0642ac0f8 | [
"MIT"
] | null | null | null | examples/env.mll | retran/my-little-lispy-experimental | 197d697c169cb19ff4de807279a085a0642ac0f8 | [
"MIT"
] | null | null | null | (cond
(system-is-windows? (display-line "windows"))
(system-is-linux? (display-line "linux"))
(system-is-macos? (display-line "macos")))
(display-line my-little-lispy-runtime-version)
| 26.857143 | 46 | 0.707447 |
17374f72e932eac535a2b3b44dc03e1bea816f71 | 88,563 | ml | OCaml | trained/NYSE-MS-day-2014-05-13-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-05-13-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-05-13-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | 2 | 2020-05-03T11:14:09.000Z | 2021-11-18T10:26:30.000Z | [BASIC]
[BASIC:PARAMS]
[BASIC:NETWORK]
beginTraining=0
connectionLimit=0
contextTargetOffset=0,0,0
contextTargetSize=0,0,0
endTraining=2
hasContext=f
inputCount=180
layerCounts=4,37,181
layerFeedCounts=4,36,180
layerContextCount=0,0,0
layerIndex=0,4,41
output=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | 2,952.1 | 26,938 | 0.826632 |
17014a8610f27a70a2dd0bebd2fe1cf91acd0661 | 11,831 | ml | OCaml | hphp/hack/src/parser/full_fidelity_positioned_syntax.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/parser/full_fidelity_positioned_syntax.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_positioned_syntax.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"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. An additional
* directory.
*
**
*
* Positioned syntax tree
*
* A positioned syntax tree stores the original source te... | 32.237057 | 89 | 0.698758 |
aa0b64602a21aeb38c21aa9835be19e7fe4656e4 | 5,441 | mli | OCaml | src/ctypes/ctypes_static.mli | cryptosense/ocaml-ctypes | 39af905fc8740cc4e5c42ef7864be1d07f8e451d | [
"MIT"
] | 1 | 2015-01-21T09:39:37.000Z | 2015-01-21T09:39:37.000Z | src/ctypes/ctypes_static.mli | cryptosense/ocaml-ctypes | 39af905fc8740cc4e5c42ef7864be1d07f8e451d | [
"MIT"
] | null | null | null | src/ctypes/ctypes_static.mli | cryptosense/ocaml-ctypes | 39af905fc8740cc4e5c42ef7864be1d07f8e451d | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2013 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
(* C type construction. Internal representation, not for public use. *)
type abstract_type = {
aname : string;
asize : int;
aalignment : int;
}
type _ ocaml_type ... | 29.895604 | 78 | 0.609079 |
aacc4e8374c566809d5225baf593e69b1b06eff6 | 7,850 | ml | OCaml | data/derived/comb/progs/unify/prog7836.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/prog3040.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3040.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.254181 | 148 | 0.690446 |
1703e9ad689686aaaacad5ee9e173568bb15f3df | 4,715 | ml | OCaml | src/lib/keys_lib/keys.ml | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/lib/keys_lib/keys.ml | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/lib/keys_lib/keys.ml | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | open Core
open Snark_params
open Fold_lib
module type S = sig
module Step_prover_state : sig
type t =
{ wrap_vk: Tock.Verification_key.t
; prev_proof: Tock.Proof.t
; prev_state: Consensus.Protocol_state.value
; update: Consensus.Snark_transition.value }
end
module Wrap_prover_state :... | 29.46875 | 81 | 0.593213 |
1752443f28971293c59cd770360e0efe4bad5390 | 1,303 | mli | OCaml | lib/unix/bistro_unix.mli | bcdarwin/bistro | 8383e10422f1a8f634fd27b5515d5195bbe1f75f | [
"CECILL-B"
] | 44 | 2016-01-21T20:34:10.000Z | 2021-04-30T00:21:34.000Z | lib/unix/bistro_unix.mli | bcdarwin/bistro | 8383e10422f1a8f634fd27b5515d5195bbe1f75f | [
"CECILL-B"
] | 37 | 2016-01-31T12:00:13.000Z | 2021-11-13T21:58:41.000Z | lib/unix/bistro_unix.mli | bcdarwin/bistro | 8383e10422f1a8f634fd27b5515d5195bbe1f75f | [
"CECILL-B"
] | 11 | 2016-07-07T14:43:17.000Z | 2022-03-29T00:30:31.000Z | open Bistro
module Cmd : sig
val wget :
?no_check_certificate:bool ->
?user_agent:string ->
?user:string ->
?password:string ->
?dest:Shell_dsl.template ->
string workflow -> Shell_dsl.command
val gzdep : _ gz file -> Shell_dsl.template
(** Process-substitution construct. Use it to pass ... | 22.084746 | 67 | 0.645434 |
bc82c994903c19b22ee1fa5e87484b661df910f7 | 13,333 | ml | OCaml | herd/parseTest.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | herd/parseTest.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | herd/parseTest.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 39.8 | 115 | 0.561689 |
17346470dae13875c4e9be79a08973adfc9ed445 | 7,180 | mli | OCaml | lib/fuzz/src/var.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 2 | 2021-06-09T22:28:00.000Z | 2021-06-30T18:08:22.000Z | lib/fuzz/src/var.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 13 | 2021-02-10T08:57:29.000Z | 2021-02-16T16:17:25.000Z | lib/fuzz/src/var.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 1 | 2021-06-09T22:28:01.000Z | 2021-06-09T22:28:01.000Z | (* This file is part of c4f.
Copyright (c) 2018-2021 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 35.9 | 79 | 0.669777 |
aacce7f08bb547cba41388142bea11613746d4fa | 252 | ml | OCaml | src/open_hg_lib.ml | janestreet/hg_lib | 9a1e957e4d7941611604c3fdb239ab892ad45f7c | [
"MIT"
] | 6 | 2021-05-01T04:02:39.000Z | 2022-03-30T17:12:24.000Z | src/open_hg_lib.ml | janestreet/hg_lib | 9a1e957e4d7941611604c3fdb239ab892ad45f7c | [
"MIT"
] | null | null | null | src/open_hg_lib.ml | janestreet/hg_lib | 9a1e957e4d7941611604c3fdb239ab892ad45f7c | [
"MIT"
] | 1 | 2021-12-17T02:46:27.000Z | 2021-12-17T02:46:27.000Z |
module Command_server = Command_server
module Hg = Hg
include Hg_private.Public
(** The string that represents the tip revision. *)
let tip = "tip"
module Expert = struct
module Hg_lib_factory = Hg_lib_factory
module Hg_private = Hg_private
end
| 19.384615 | 51 | 0.769841 |
aa2ddad66b9b0c5b5709804c9657107e4bc14703 | 7,296 | ml | OCaml | src/pform.ml | prometheansacrifice/dune | 22fe0696ff01aaa10641eb44f5a4b6c83323111c | [
"MIT"
] | null | null | null | src/pform.ml | prometheansacrifice/dune | 22fe0696ff01aaa10641eb44f5a4b6c83323111c | [
"MIT"
] | null | null | null | src/pform.ml | prometheansacrifice/dune | 22fe0696ff01aaa10641eb44f5a4b6c83323111c | [
"MIT"
] | null | null | null | open! Stdune
open Import
module Var = struct
type t =
| Values of Value.t list
| Project_root
| First_dep
| Deps
| Targets
| Named_local
end
module Macro = struct
type t =
| Exe
| Dep
| Bin
| Lib
| Libexec
| Lib_available
| Version
| Read
| Read_strings
... | 30.915254 | 80 | 0.565927 |
bccdfc28814cded6d8317b24bde06b327935ca65 | 146 | mli | OCaml | example_router/src/http.mli | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 2 | 2018-07-21T13:30:51.000Z | 2021-07-20T11:26:54.000Z | example_router/src/http.mli | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 1 | 2017-03-30T04:24:57.000Z | 2017-03-30T04:25:40.000Z | example_router/src/http.mli | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 1 | 2021-07-20T11:24:30.000Z | 2021-07-20T11:24:30.000Z | module Method: sig
type t
val get: t
val post: t
val put: t
val patch: t
val delete: t
val head: t
val to_string: t -> string
end
| 13.272727 | 28 | 0.623288 |
aafc8a15b8845aa35a8d5283ced9dbfd1e2b4a26 | 1,710 | mli | OCaml | src/gdata/gdataService.mli | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/gdata/gdataService.mli | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/gdata/gdataService.mli | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | (** Common operations for Google Data Protocol services.
*)
val query :
?version:string ->
?etag:string ->
?query_parameters:(string * string) list ->
string ->
(GapiPipe.OcamlnetPipe.t -> 'a) ->
GapiConversation.Session.t ->
'a * GapiConversation.Session.t
val create :
('a -> GdataCore.xml_data_mod... | 23.108108 | 56 | 0.656725 |
bcecdd6de4a1683943b5d29fb2a727570849adae | 341 | mli | OCaml | code/ZAnalyser.mli | ycechungAI/rxxr2 | 154a62e284d7bc4b96c149b3d4fcf75be0288b9e | [
"Unlicense"
] | 86 | 2019-10-23T08:28:38.000Z | 2022-03-25T07:35:12.000Z | code/ZAnalyser.mli | ycechungAI/rxxr2 | 154a62e284d7bc4b96c149b3d4fcf75be0288b9e | [
"Unlicense"
] | 11 | 2020-01-07T18:40:57.000Z | 2022-02-26T21:14:32.000Z | code/ZAnalyser.mli | ycechungAI/rxxr2 | 154a62e284d7bc4b96c149b3d4fcf75be0288b9e | [
"Unlicense"
] | 13 | 2019-10-28T04:03:18.000Z | 2022-03-25T16:03:58.000Z | (* © Copyright University of Birmingham, UK *)
(* internal representation of the analyser *)
type t;;
(* initialize analyser instance for the specified (xy, phi) *)
val init : (Nfa.t * Word.t * Phi.t) -> t;;
(* calculate the next (z, phi) *)
val next : t -> (Word.t * Phi.t) option;;
(* read analyser flags *)
val fl... | 24.357143 | 62 | 0.630499 |
aa5d80f873682ed5dfc6b31ef8ed275206f51c92 | 968 | ml | OCaml | lib/line_oriented.ml | pveber/gzt | 7bcd383e3340561b3e1e716a2d1f67d1d9983c61 | [
"CECILL-B"
] | 5 | 2020-03-08T17:18:32.000Z | 2021-10-03T11:56:07.000Z | lib/line_oriented.ml | pveber/gzt | 7bcd383e3340561b3e1e716a2d1f67d1d9983c61 | [
"CECILL-B"
] | null | null | null | lib/line_oriented.ml | pveber/gzt | 7bcd383e3340561b3e1e716a2d1f67d1d9983c61 | [
"CECILL-B"
] | 1 | 2022-03-07T09:36:55.000Z | 2022-03-07T09:36:55.000Z | open Core
open Biocaml_base
let lines () =
let open Lines.Parser in
Biotk_pipes_unix.Pipe.loop step initial_state
module type Item = sig
type t
val parse : Line.t -> t
val unparse : t -> string
end
module type S = sig
type item
val load : string -> item list
val fold : string -> init:'a -> f:('a -> i... | 19.755102 | 60 | 0.582645 |
170dfc871f700842fd9b785b02f516f5a20a98c3 | 1,130 | ml | OCaml | vendor/core_kernel/src/int.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/core_kernel/src/int.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/core_kernel/src/int.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Import
module Stable = struct
module V1 = struct
module T = struct
include Base.Int
type t = int [@@deriving hash, bin_io, sexp]
end
include T
include Comparable.Stable.V1.Make (T)
end
end
include Identifiable.Extend
(Base.Int)
(struct
type t = int [@@deriving bin... | 25.111111 | 79 | 0.767257 |
1713c854916e75e1b8e909f7d0d4642483896dfc | 32,759 | ml | OCaml | src/lib/network_pool/f_sequence.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/network_pool/f_sequence.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/network_pool/f_sequence.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core
(** A digit is a container of 1-4 elements. *)
module Digit = struct
(* We use GADTs to track whether it's valid to remove/add an element to a
digit, which gets us type safe (un)cons and (un)snoc. *)
[@@@warning "-37"]
type addable = Type_addable
type not_addable = Type_not_addable
type re... | 35.880613 | 81 | 0.55313 |
aa77b2c6934d70f60d7d33658d71e2ae1b5aa73d | 25,370 | ml | OCaml | infer/src/IR/Procdesc.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | infer/src/IR/Procdesc.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | infer/src/IR/Procdesc.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module Hashtbl = Caml.Hashtbl
module L = Logging
module F = Format
module NodeKey ... | 30.939024 | 102 | 0.662909 |
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.