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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
443cc3d8a51fbe577a228b22c9e733c9b93f4156 | 35,369 | ml | OCaml | eval/ocaml/ocamldoc/odoc_merge.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/ocamldoc/odoc_merge.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/ocamldoc/odoc_merge.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* OCamldoc *)
(* *)
(* Maxence Gu... | 32.56814 | 118 | 0.50024 |
8a6467aaabd73d4f6be66ff2cfa172395ae1cd95 | 2,338 | mli | OCaml | src/boot/lib/tensor.mli | david-broman/miking | 0ef6e57e5070aa6d330d581b4fb4af2006e608cf | [
"MIT"
] | null | null | null | src/boot/lib/tensor.mli | david-broman/miking | 0ef6e57e5070aa6d330d581b4fb4af2006e608cf | [
"MIT"
] | null | null | null | src/boot/lib/tensor.mli | david-broman/miking | 0ef6e57e5070aa6d330d581b4fb4af2006e608cf | [
"MIT"
] | 1 | 2019-06-18T05:30:56.000Z | 2019-06-18T05:30:56.000Z | open Ustring
module type TENSOR = sig
type ('a, 'b) t
val get_exn : ('a, 'b) t -> int array -> 'a
val set_exn : ('a, 'b) t -> int array -> 'a -> unit
val shape : ('a, 'b) t -> int array
val rank : ('a, 'b) t -> int
val size : ('a, 'b) t -> int
val reshape_exn : ('a, 'b) t -> int array -> ('a, 'b) t... | 23.38 | 79 | 0.538067 |
8a9a20049c5c1ded5319a2e0c6bc738079a0ef5f | 2,493 | mli | OCaml | src/lib_shell/protocol_validator.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_shell/protocol_validator.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_shell/protocol_validator.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 45.327273 | 79 | 0.518652 |
8ae05c229c2d45253908c6458612a050b6966769 | 1,231 | ml | OCaml | refined_types/test_lexer.ml | tomprimozic/type-systems | 4403586a897ee94cb8f0de039aeee8ef1ecef968 | [
"Unlicense"
] | 1,101 | 2015-01-01T04:44:42.000Z | 2022-03-07T16:25:50.000Z | refined_types/test_lexer.ml | fxfactorial/type-systems | 4403586a897ee94cb8f0de039aeee8ef1ecef968 | [
"Unlicense"
] | 10 | 2016-09-11T09:23:19.000Z | 2021-06-06T23:00:02.000Z | refined_types/test_lexer.ml | fxfactorial/type-systems | 4403586a897ee94cb8f0de039aeee8ef1ecef968 | [
"Unlicense"
] | 82 | 2015-01-12T13:21:12.000Z | 2022-03-22T07:30:46.000Z | open OUnit2
open Parser
type result =
| OK of token list
| Fail
let test_cases = [
("", OK []);
(" \t\n\n\t\r\n\r", OK []);
("())in,let_ 1Ma->:===++-*>=>><<=!==!=5%/",
OK [LPAREN; RPAREN; RPAREN; IN; COMMA; IDENT "let_"; INT 1; IDENT "Ma"; ARROW;
COLON; EQ; EQUALS; PLUS; PLUS; MINUS; STAR; GE; GT; GT; LT;... | 24.137255 | 89 | 0.624695 |
8aad844b3d7e08ac36f303f7cfc0163f927f009c | 906 | ml | OCaml | infer/src/pulse/PulseCallEvent.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/pulse/PulseCallEvent.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/pulse/PulseCallEvent.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.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! IStd
module F = Format
type t =
| Call of Procname.t
| Model of string
| SkippedKnownCall of Procname.t
| SkippedUnkn... | 27.454545 | 74 | 0.707506 |
8ac3ee64103da75826e89cfeed14caf74e3dd3cc | 20,639 | ml | OCaml | hphp/hack/src/emitter/emitter_core.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/emitter/emitter_core.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/emitter/emitter_core.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(* This conta... | 34.804384 | 80 | 0.668007 |
445f26f707aa3a63a0b3bf77de4ba867911b8a4e | 11,268 | ml | OCaml | src/dune_cache_storage/dune_cache_storage.ml | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | src/dune_cache_storage/dune_cache_storage.ml | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | src/dune_cache_storage/dune_cache_storage.ml | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | open Stdune
module Layout = Layout
module Mode = Mode
module Util = Util
module Version = Version
(* See [doc/dev/cache.md] for design and implementation notes. *)
module Store_result = struct
type t =
| Stored
| Already_present
| Error of exn
| Will_not_store_due_to_non_determinism of Sexp.t
let... | 36.348387 | 80 | 0.664892 |
8a7317dfe51b5c5288e2847c59894379b2ca5b24 | 82 | mli | OCaml | bin/undraft.mli | ifazk/dune-release | 24015eb100aa69d629d116006de3fb91b000be66 | [
"ISC"
] | 45 | 2020-01-16T18:27:23.000Z | 2021-12-15T09:59:19.000Z | bin/undraft.mli | ifazk/dune-release | 24015eb100aa69d629d116006de3fb91b000be66 | [
"ISC"
] | 189 | 2019-12-02T17:26:19.000Z | 2022-03-28T13:22:57.000Z | bin/undraft.mli | ifazk/dune-release | 24015eb100aa69d629d116006de3fb91b000be66 | [
"ISC"
] | 22 | 2020-01-05T17:33:10.000Z | 2022-03-18T11:33:35.000Z | (** The [undraft] command. *)
val cmd : int Cmdliner.Term.t * Cmdliner.Term.info
| 20.5 | 50 | 0.670732 |
f35f54713850eb2ba333a1d43e75380cff6375e8 | 1,215 | ml | OCaml | web_ui/partial_render_table/src/column_intf.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | 172 | 2019-11-18T13:19:13.000Z | 2022-03-13T00:50:07.000Z | web_ui/partial_render_table/src/column_intf.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | 17 | 2019-11-21T19:01:59.000Z | 2022-01-25T14:38:29.000Z | web_ui/partial_render_table/src/column_intf.ml | prekel/bonsai | f346dcc20ae088d5562aa1821e6b0ea64da59dcf | [
"MIT"
] | 22 | 2020-01-19T02:54:15.000Z | 2022-03-01T14:50:29.000Z | open! Core
open! Bonsai_web
module type S = sig
type t
type key
type data
val headers : t -> Header_tree.t Computation.t
val instantiate_cells
: t
-> (key, 'cmp) Bonsai.comparator
-> (key, Int63.t * data, 'cmp) Map.t Value.t
-> (key, Int63.t * Vdom.Node.t list, 'cmp) Map.t Computation.t
en... | 24.3 | 91 | 0.573663 |
44c7541c26f0b61a76a2ba04b2292a258ae7a272 | 251 | mli | OCaml | Gillian-JS/lib/Semantics/CHeap.mli | z5146542/Gillian | b4646d35932a9066cdbe9246536f38ddbe85c350 | [
"BSD-3-Clause"
] | null | null | null | Gillian-JS/lib/Semantics/CHeap.mli | z5146542/Gillian | b4646d35932a9066cdbe9246536f38ddbe85c350 | [
"BSD-3-Clause"
] | null | null | null | Gillian-JS/lib/Semantics/CHeap.mli | z5146542/Gillian | b4646d35932a9066cdbe9246536f38ddbe85c350 | [
"BSD-3-Clause"
] | null | null | null | open Gillian.Concrete
type t
val pp : Format.formatter -> t -> unit
val init : unit -> t
val get : t -> string -> (CObject.t * Values.t) option
val set : t -> string -> CObject.t * Values.t -> unit
val remove : t -> string -> unit
val copy : t -> t
| 22.818182 | 54 | 0.621514 |
44d71a4ec7a2a7ba5f32d33d39236590a2f2a6f2 | 2,508 | mli | OCaml | matrix.mli | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | 3 | 2021-03-15T17:57:46.000Z | 2021-09-29T13:11:36.000Z | matrix.mli | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | matrix.mli | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* Copyright (c) 2009, Romain BARDOU *)
(* All rights reserved. *)
(* *)
(* Redistrib... | 58.325581 | 76 | 0.53429 |
8a70bcd7c55f22bed31e6c703264777679376e60 | 5,168 | ml | OCaml | hphp/hack/src/dfind/dfindAddFile.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/dfindAddFile.ml | tstarling/hhvm | 6bc40a3d0c7e5f3162b7ce606be52ed7408db3c1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/dfind/dfindAddFile.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.
*
*)
(***********... | 32.708861 | 80 | 0.600619 |
44c096f4ec2614c3766cc70fc9fc6923d3610376 | 12,145 | ml | OCaml | src/proto_006_PsCARTHA/lib_client/michelson_v1_printer.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_006_PsCARTHA/lib_client/michelson_v1_printer.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_006_PsCARTHA/lib_client/michelson_v1_printer.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 34.60114 | 80 | 0.569535 |
8aa4eb9d95b45bc779d7ac1c59c17d79c96667e6 | 50,932 | ml | OCaml | src/common/reason.ml | marcmenn/flow | 96e2ae6e50401594a2fbffcce883cf7349a5a15a | [
"MIT"
] | null | null | null | src/common/reason.ml | marcmenn/flow | 96e2ae6e50401594a2fbffcce883cf7349a5a15a | [
"MIT"
] | null | null | null | src/common/reason.ml | marcmenn/flow | 96e2ae6e50401594a2fbffcce883cf7349a5a15a | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
(* This module defines a general notion of trace, which is used in modules
Type_inference_js and Flow_js ... | 34.460081 | 118 | 0.672426 |
44677cef71f3cf2817fed1a60d81a7c204cb934b | 19,144 | ml | OCaml | src/app/cli/src/tests/full_test.ml | mobileink/mina | 26ddf39370249a93011b1f1936066c5ed828716a | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/tests/full_test.ml | mobileink/mina | 26ddf39370249a93011b1f1936066c5ed828716a | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/tests/full_test.ml | mobileink/mina | 26ddf39370249a93011b1f1936066c5ed828716a | [
"Apache-2.0"
] | null | null | null | [%%import
"/src/config.mlh"]
open Core
open Async
open Coda_base
open Coda_state
open Signature_lib
open Pipe_lib
open O1trace
open Init
open Coda_numbers
let pk_of_sk sk = Public_key.of_private_key_exn sk |> Public_key.compress
let name = "full-test"
[%%if
proof_level = "full"]
let with_snark = true
let with_che... | 37.685039 | 118 | 0.627142 |
4457039afb1074d9c1c4f1cb8de437c496549ee3 | 430 | mli | OCaml | infer/src/backend/Devirtualizer.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/backend/Devirtualizer.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/backend/Devirtualizer.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.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.
*)
(** {1 Simple devirtualization pre-analysis using a flow-sensitive tracking of dynamic classes} *)
open! IStd
val process : Summa... | 30.714286 | 98 | 0.730233 |
44c3c594ca580fc2c22d683462fcfb2b7654e92b | 832 | ml | OCaml | src/cache/cache.ml | JasonGross/dune | 623706dd61fb8d45c7ee1a54546c039447972f4d | [
"MIT"
] | null | null | null | src/cache/cache.ml | JasonGross/dune | 623706dd61fb8d45c7ee1a54546c039447972f4d | [
"MIT"
] | null | null | null | src/cache/cache.ml | JasonGross/dune | 623706dd61fb8d45c7ee1a54546c039447972f4d | [
"MIT"
] | null | null | null | module Log = Dune_util.Log
open Stdune
module Key = Key
include Cache_intf
type 'a result = ('a, string) Result.t
let promotion_to_string = function
| Already_promoted { in_the_cache; in_the_build_directory; _ } ->
Printf.sprintf "%s already promoted as %s"
(Path.Local.to_string (Path.Build.local in_the_b... | 28.689655 | 80 | 0.71274 |
44aa1b2560c9a8c2809892ae82f826f61939abca | 21,132 | ml | OCaml | src/ocaml-output/FStar_Extraction_ML_Util.ml | Trundle/js_of_fstar | 1c8a2a1b951cc119dd49d3f5d9817571e17aab51 | [
"Apache-2.0"
] | 1 | 2017-05-14T21:45:17.000Z | 2017-05-14T21:45:17.000Z | src/ocaml-output/FStar_Extraction_ML_Util.ml | Trundle/js_of_fstar | 1c8a2a1b951cc119dd49d3f5d9817571e17aab51 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Extraction_ML_Util.ml | Trundle/js_of_fstar | 1c8a2a1b951cc119dd49d3f5d9817571e17aab51 | [
"Apache-2.0"
] | null | null | null | open Prims
let pruneNones l =
FStar_List.fold_right
(fun x -> fun ll -> match x with | Some xs -> xs :: ll | None -> ll) l
[]
let mlconst_of_const:
FStar_Const.sconst -> FStar_Extraction_ML_Syntax.mlconstant =
fun sctt ->
match sctt with
| FStar_Const.Const_range _|FStar_Const.Const_effect ->... | 40.874275 | 80 | 0.590905 |
44530cf9d8aa7b9f20f9779e735b0c1b2057546d | 63,896 | ml | OCaml | src/dune_rules/lib.ml | stonebuddha/dune | 13642e22a405de7c4361e94dd9aaa35ad1b09847 | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | src/dune_rules/lib.ml | stonebuddha/dune | 13642e22a405de7c4361e94dd9aaa35ad1b09847 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/dune_rules/lib.ml | stonebuddha/dune | 13642e22a405de7c4361e94dd9aaa35ad1b09847 | [
"MIT"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z | open! Dune_engine
open! Import
open Result.O
(* Errors *)
(* The current module never raises. It returns all errors as [Result.Error
(User_error.E _)] values instead. Errors are later inserted into [Build.t]
values so that they are only raised during the actual build rather than while
generating the rules. *... | 31.306222 | 81 | 0.600163 |
442fd87a5d39ac2e214ecbb70de4bd34c115f37e | 3,028 | ml | OCaml | test/unsafe_buffer_test.ml | ZachBray/shapeshifter | 8575b52cd3c98583d65f3e60afccabd3a7aba3ad | [
"0BSD"
] | null | null | null | test/unsafe_buffer_test.ml | ZachBray/shapeshifter | 8575b52cd3c98583d65f3e60afccabd3a7aba3ad | [
"0BSD"
] | null | null | null | test/unsafe_buffer_test.ml | ZachBray/shapeshifter | 8575b52cd3c98583d65f3e60afccabd3a7aba3ad | [
"0BSD"
] | null | null | null | open Base
open Base_quickcheck
open Shapeshifter
module type Test_case_iface = sig
type t [@@deriving quickcheck, sexp]
val value_byte_length : int32
val set_value : offset:int32 -> value:t -> Unsafe_buffer.t -> unit
val get_value : offset:int32 -> Unsafe_buffer.t -> t
val assert_same : t -> t -> unit
en... | 28.299065 | 78 | 0.691546 |
8ad8a15fc166347a3568a65e518d217f56d538fd | 6,807 | ml | OCaml | src-ocaml/baijiu_sha512.ml | TheFrenchTroll/digestif | b6b8fe5f993fc764d942993419fc3f911106fe21 | [
"MIT"
] | null | null | null | src-ocaml/baijiu_sha512.ml | TheFrenchTroll/digestif | b6b8fe5f993fc764d942993419fc3f911106fe21 | [
"MIT"
] | null | null | null | src-ocaml/baijiu_sha512.ml | TheFrenchTroll/digestif | b6b8fe5f993fc764d942993419fc3f911106fe21 | [
"MIT"
] | 1 | 2020-06-23T16:06:11.000Z | 2020-06-23T16:06:11.000Z | module By = Digestif_by
module Bi = Digestif_bi
module Int64 = struct
include Int64
let ( lsl ) = Int64.shift_left
let ( lsr ) = Int64.shift_right
let ( asr ) = Int64.shift_right_logical
let ( lor ) = Int64.logor
let ( land ) = Int64.logand
let ( lxor ) = Int64.logxor
let ( + ) = Int64.add
let ror64... | 37.401099 | 74 | 0.603496 |
44566db844b33f2c356a08b11619f120bb203164 | 559 | mli | OCaml | src/findlib/num_top_printers.mli | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 18 | 2019-10-02T13:19:18.000Z | 2022-03-17T11:20:10.000Z | src/findlib/num_top_printers.mli | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 27 | 2019-10-21T16:13:08.000Z | 2022-03-23T23:36:56.000Z | src/findlib/num_top_printers.mli | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 17 | 2019-10-03T20:57:42.000Z | 2022-02-12T05:51:51.000Z | (* $Id$
* ----------------------------------------------------------------------
*
*)
(**
Printers for types defined in the "num" library. Meant to be used as printers
in the ocaml toplevel. See num_top.mli.
Copyright (C) 2003 Stefano Zacchiroli <zack@debian.org>
Released under the same terms as findlib.... | 27.95 | 79 | 0.618962 |
44b95775ec64ad4fab89e49771643d96a5297b15 | 296 | ml | OCaml | main_v_05.ml | PL11567/Homework | b8058a23934adacd3edf94c9eac2f5a690a50032 | [
"BSD-2-Clause"
] | null | null | null | main_v_05.ml | PL11567/Homework | b8058a23934adacd3edf94c9eac2f5a690a50032 | [
"BSD-2-Clause"
] | null | null | null | main_v_05.ml | PL11567/Homework | b8058a23934adacd3edf94c9eac2f5a690a50032 | [
"BSD-2-Clause"
] | null | null | null | let main () =
let cin =
if Array.length Sys.argv > 1
then open_in Sys.argv.(1)
else stdin
in
try
let lexbuf = Lexing.from_channel cin in
while true do
Parser.secform Lexer.token lexbuf;
done
with End_of_file -> exit 0
let _ = Printexc.print main ()
| 19.733333 | 41 | 0.621622 |
f3729c4a94deae36dc740dcc5748a2fa01ed58b3 | 13,410 | ml | OCaml | src/lib/transition_frontier/persistent_frontier/persistent_frontier.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/transition_frontier/persistent_frontier/persistent_frontier.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/transition_frontier/persistent_frontier/persistent_frontier.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Async_kernel
open Core
open Mina_base
open Mina_state
open Mina_block
open Frontier_base
module Database = Database
exception Invalid_genesis_state_hash of Mina_block.Validated.t
let construct_staged_ledger_at_root ~(precomputed_values : Precomputed_values.t)
~root_ledger ~root_transition ~root ~protocol_sta... | 36.840659 | 121 | 0.660626 |
44c8ad094d0b75c46a99779609e1c9782799f7d2 | 3,593 | mli | OCaml | lib/instruction.mli | juliannagele/ebso | 8e516036fcb98074b6be14fc81ae020f76977712 | [
"Apache-2.0"
] | 32 | 2019-02-08T12:36:28.000Z | 2022-01-17T14:19:36.000Z | lib/instruction.mli | juliannagele/ebso | 8e516036fcb98074b6be14fc81ae020f76977712 | [
"Apache-2.0"
] | null | null | null | lib/instruction.mli | juliannagele/ebso | 8e516036fcb98074b6be14fc81ae020f76977712 | [
"Apache-2.0"
] | 4 | 2019-06-18T08:31:13.000Z | 2021-11-25T02:17:06.000Z | (* Copyright 2020 Julian Nagele and Maria A Schett
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.apache.org/licenses/LICENSE-2.0
Unless required by applicable law... | 26.226277 | 115 | 0.61592 |
445f5a426819224e21cb11e934df606b9199a95e | 622 | ml | OCaml | data/sp14_min/3372.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/3372.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/3372.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec mulByDigit i l =
match l with
| [] -> []
| h::t ->
(match (mulByDigit i (List.rev (List.map (fun x -> x * 10) t))) @
[h * i]
with
| [] -> []
| h::t -> h);;
(* fix
let rec mulByDigit i l =
match l with
| [] -> []
| h::t ->
(match (mulByDigit i (Lis... | 14.465116 | 72 | 0.393891 |
af866dfc7ea0aa5d60dc8b2b2eb99c04d0484599 | 11,550 | ml | OCaml | src/lib_shell/test/test_consensus_heuristic.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_shell/test/test_consensus_heuristic.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_shell/test/test_consensus_heuristic.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 32.172702 | 81 | 0.614892 |
8aaf3cf041dd2012814b0c0b4db5d01a109ac95d | 1,292 | ml | OCaml | bootstrap/test/basis/map/mapTest.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/test/basis/map/mapTest.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/test/basis/map/mapTest.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | open! Basis.Rudiments
open! Basis
open Map
(* Test comparator module for uns that uses unseeded hashing, with several specially handled values
* for the purpose of collision testing. This allows deterministic hashing across test runs. *)
module UnsTestCmper = struct
type t = uns
module T = struct
type nonrec ... | 24.846154 | 99 | 0.639319 |
8ab71951e1871f47fdb9e9b5e39e41a8d89d6c9e | 207 | ml | OCaml | benchmarks/C/max/sol141.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/max/sol141.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/max/sol141.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (*********************)
(* Problem 1 *)
(*********************)
let rec max : int list -> int
= fun lst -> match lst with
[] -> 0
|[h] -> h
|h::t -> if h > max t then h else max t;;
| 20.7 | 45 | 0.338164 |
442c121a45e673b75eea726cc179d39dc1c0d18c | 2,869 | ml | OCaml | vendor/ppx_stable/example/test.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/ppx_stable/example/test.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/ppx_stable/example/test.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | module Records = struct
module V1 = struct
type t =
{ x1 : float
; y1 : int
; z1 : int
}
end
module V2 = struct
type t =
{ x1 : int
; y2 : int
; z1 : int
}
[@@deriving
stable_record ~version:V1.t ~add:[ y1 ] ~remove:[ y2 ] ~modify:[ x1 ] ~set:[ z1... | 19.255034 | 88 | 0.512025 |
8a39b21408f95a870e915ac349d3305e443afbb8 | 136,371 | ml | OCaml | src/typing/errors/error_message.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/typing/errors/error_message.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | null | null | null | src/typing/errors/error_message.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"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 Type
open Reason
open Utils_js
exception EDebugThrow of ALoc.t
exception EMergeTimeout of float * string
exception ECheckTi... | 37.148189 | 135 | 0.649625 |
8afa30bea611b5f8843d7d5963b3476f041ab764 | 4,561 | ml | OCaml | plugins/primus_test/primus_test_main.ml | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | plugins/primus_test/primus_test_main.ml | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | plugins/primus_test/primus_test_main.ml | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | open Core_kernel
open Bap.Std
open Bap_primus.Std
open Monads.Std
open Format
include Self()
type id = Primus.Machine.id
module Id = Monad.State.Multi.Id
module Location = struct
type point = {
mach : id;
addr : Addr.t;
}
type trace = {
backtrace : point list
}
type t = trace
type state =... | 26.364162 | 77 | 0.644376 |
445423b7dbed1778de631248866e4caee13993c2 | 26,170 | ml | OCaml | src/proto_010_PtGRANAD/lib_protocol/test/test_typechecking.ml | selbor28/tezos | 57cfc7f42e1312d05b0d7f6742f517edc421aef4 | [
"MIT"
] | null | null | null | src/proto_010_PtGRANAD/lib_protocol/test/test_typechecking.ml | selbor28/tezos | 57cfc7f42e1312d05b0d7f6742f517edc421aef4 | [
"MIT"
] | null | null | null | src/proto_010_PtGRANAD/lib_protocol/test/test_typechecking.ml | selbor28/tezos | 57cfc7f42e1312d05b0d7f6742f517edc421aef4 | [
"MIT"
] | null | null | null | (** Testing
-------
Component: Protocol (type-checking)
Invocation: cd src/proto_010_PtGRANAD/lib_protocol/test
dune exec ./main.exe -- test "^typechecking$"
Subject: Type-checking
*)
open Protocol
open Alpha_context
open Script_interpreter
open Micheline
exception Expressi... | 33.001261 | 94 | 0.637486 |
8a3e536b2b56e2c9e48cb45eb4fb40796400501e | 2,133 | mli | OCaml | interfaces/4.07/sys.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2017-11-16T10:01:56.000Z | 2021-06-23T08:44:44.000Z | interfaces/4.07/sys.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 15 | 2018-04-21T13:49:52.000Z | 2022-02-16T11:19:38.000Z | interfaces/4.07/sys.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-04-23T18:10:00.000Z | 2021-12-14T14:31:22.000Z | val argv : string array
val executable_name : string
external file_exists : string -> bool = "caml_sys_file_exists"
external is_directory : string -> bool = "caml_sys_is_directory"
external remove : string -> unit = "caml_sys_remove"
external rename : string -> string -> unit = "caml_sys_rename"
external getenv : strin... | 28.824324 | 75 | 0.743085 |
44771baa53a3328b47d864950844b5b394525e30 | 8,574 | ml | OCaml | hack/utils/cli_args.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2020-07-11T17:49:59.000Z | 2020-07-11T17:49:59.000Z | hack/utils/cli_args.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | hack/utils/cli_args.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"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 "hack" directory of this source tree.
*
*)
open Core_kernel
include Cli_args_sig.Types
let files_to_check_range_to_json (range : files_to_check_range) : Hh_json.json
... | 32.60076 | 96 | 0.662585 |
44d2ad9a2ca69be8630f92e5428aa5f32017685a | 1,311 | ml | OCaml | 6kyu/moves_in_squared_strings_iv.ml | ghostrider77/OCaml-kata | c5af26115b088a1ae92d50307ebbccde4f74805d | [
"MIT"
] | 1 | 2020-09-23T09:40:02.000Z | 2020-09-23T09:40:02.000Z | 6kyu/moves_in_squared_strings_iv.ml | ghostrider77/OCaml-kata | c5af26115b088a1ae92d50307ebbccde4f74805d | [
"MIT"
] | null | null | null | 6kyu/moves_in_squared_strings_iv.ml | ghostrider77/OCaml-kata | c5af26115b088a1ae92d50307ebbccde4f74805d | [
"MIT"
] | null | null | null | let extract_rows s =
let strings = String.split_on_char '\n' s in
List.map (fun str -> str |> String.to_seq |> List.of_seq) strings
let join chars = chars |> List.map Char.escaped |> String.concat ""
let rot_90_counter s =
let rows = s |> extract_rows |> List.map List.rev in
let rec loop acc xs =
... | 35.432432 | 94 | 0.623188 |
44627df54a9c0e8afa0b9e8b31b43184f5aa30ff | 3,452 | ml | OCaml | example/src/WebComponent.ml | sim642/jsoo-react | 89cf2fcf57e2d88c59784f7cb97bfe58effc1c1c | [
"MIT"
] | 57 | 2019-02-17T17:56:20.000Z | 2019-09-01T09:24:28.000Z | example/src/WebComponent.ml | sim642/jsoo-react | 89cf2fcf57e2d88c59784f7cb97bfe58effc1c1c | [
"MIT"
] | 68 | 2021-11-25T10:01:50.000Z | 2022-03-29T21:22:00.000Z | example/src/WebComponent.ml | sim642/jsoo-react | 89cf2fcf57e2d88c59784f7cb97bfe58effc1c1c | [
"MIT"
] | 5 | 2021-12-28T21:19:57.000Z | 2022-03-29T07:10:19.000Z | open React.Dom.Dsl
open Html
let oslo_polygon =
{|{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
10.489165172838884,
60.017259872374645
],
[
10.580764868996987,
60.0762384207017
],
[
... | 20.547619 | 85 | 0.434531 |
44087aae7a55a17fe1adba63996c72ebe0da038a | 1,039 | ml | OCaml | 2017/24/b.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | 2 | 2022-01-04T23:09:54.000Z | 2022-01-26T08:57:20.000Z | 2017/24/b.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | 2017/24/b.ml | bcc32/advent-of-code | 37f47063bdc005513a14a2a3c12c3c6564e883cb | [
"MIT"
] | null | null | null | open! Core
let sort_two (a, b) = if a > b then b, a else a, b
let cmp = [%compare: int * int]
let rec dfs parts start end_ =
let best = ref (0, 0) in
for next = 0 to end_ do
match Hashtbl.find parts (sort_two (start, next)) with
| None | Some 0 -> ()
| Some _ ->
Hashtbl.decr parts (sort_two (sta... | 28.861111 | 85 | 0.569779 |
8ac4d621d34e21dd84ed545cc472cd3cec0e8572 | 183 | ml | OCaml | vendor/ppx_expect/common/expect_test_common.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 97 | 2016-01-13T19:21:32.000Z | 2022-03-21T16:03:32.000Z | vendor/ppx_expect/common/expect_test_common.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 34 | 2016-03-31T19:41:39.000Z | 2021-11-22T10:28:38.000Z | vendor/ppx_expect/common/expect_test_common.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 16 | 2016-12-18T06:37:26.000Z | 2022-03-15T23:40:36.000Z | module Std = struct
module File = File
module Expectation = Expectation
end
[@@deprecated "[since 2020-03] use [Expect_test_common] instead"]
include Std [@@alert "-deprecated"]
| 22.875 | 65 | 0.73224 |
8ab518f8fc03081df37a251a3a643cd2bff06964 | 732 | ml | OCaml | src/event_hub.ml | derui/oif | e14dcff251c1e32faff08578025ff73d82209e90 | [
"MIT"
] | 4 | 2015-03-14T10:53:27.000Z | 2020-09-12T01:13:00.000Z | src/event_hub.ml | derui/oif | e14dcff251c1e32faff08578025ff73d82209e90 | [
"MIT"
] | null | null | null | src/event_hub.ml | derui/oif | e14dcff251c1e32faff08578025ff73d82209e90 | [
"MIT"
] | null | null | null | open Oif_lib
type observer = Events.t -> unit
type t = {
observers : observer list ref;
timestamper : (module Timestamp.Instance);
}
type deleter = unit -> unit
(** [make ()] get new instance of event hub for [event] type *)
let make (module T : Timestamp.Instance) = { observers = ref []; timestamper = (module ... | 27.111111 | 91 | 0.668033 |
445bcba33e8e615b7a1dc9603b02b21e7bff6b00 | 716 | ml | OCaml | 16_programowanie_imperatywne/nawiasy/rozwiazanie1.ml | mkub/WPF-cwiczenia | 7c88c817e5210d04875cdb643b30001185a9ee87 | [
"CC0-1.0"
] | 2 | 2020-10-27T11:37:55.000Z | 2021-11-09T13:03:16.000Z | 16_programowanie_imperatywne/nawiasy/rozwiazanie1.ml | barosiak/WPF-cwiczenia | 0839da13ebe4a2ce54832bb7327aee80891d3ee7 | [
"CC0-1.0"
] | 3 | 2020-11-14T16:13:02.000Z | 2021-01-19T17:29:45.000Z | 16_programowanie_imperatywne/nawiasy/rozwiazanie1.ml | barosiak/WPF-cwiczenia | 0839da13ebe4a2ce54832bb7327aee80891d3ee7 | [
"CC0-1.0"
] | 5 | 2020-01-08T12:05:15.000Z | 2020-12-30T20:51:14.000Z | let nawiasy tab =
let dlugosc = ref 0 and stos = Stack.create () in
let a = ref 0 in
let f i acc =
if tab.(i) = '(' then
begin
Stack.push ('(') stos;
end
else
if Stack.is_empty stos then
begin
acc := max (!dlugosc) (!acc);
dlugosc := 0;
end... | 24.689655 | 51 | 0.409218 |
4440fb7e125d2eaf5530688db3e48db61884fa44 | 22,783 | ml | OCaml | cil/src/rmtmps.ml | sjuvekar/crest | 21a5a37647a32d233f326a2bd3911020a9c78d3d | [
"BSD-3-Clause"
] | 21 | 2016-08-20T16:44:01.000Z | 2019-10-08T12:16:55.000Z | cil/src/rmtmps.ml | sjuvekar/crest | 21a5a37647a32d233f326a2bd3911020a9c78d3d | [
"BSD-3-Clause"
] | 1 | 2020-06-16T03:45:51.000Z | 2020-06-16T03:45:51.000Z | cil/src/rmtmps.ml | sjuvekar/crest | 21a5a37647a32d233f326a2bd3911020a9c78d3d | [
"BSD-3-Clause"
] | 7 | 2015-05-26T13:38:22.000Z | 2021-05-17T13:27:23.000Z | (*
*
* Copyright (c) 2001-2002,
* George C. Necula <necula@cs.berkeley.edu>
* Scott McPeak <smcpeak@cs.berkeley.edu>
* Wes Weimer <weimer@cs.berkeley.edu>
* Ben Liblit <liblit@cs.berkeley.edu>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or ... | 29.208974 | 85 | 0.612738 |
44866a7940cb514c82ac43dfd49076b3bec70e1b | 335 | mli | OCaml | msgpack/src/message.mli | janestreet/vcaml | bd4e55dec448a0a6da874d7f8f7f9584d0bd5a43 | [
"MIT"
] | 91 | 2019-12-03T15:01:18.000Z | 2022-02-07T22:00:18.000Z | msgpack/src/message.mli | janestreet/vcaml | bd4e55dec448a0a6da874d7f8f7f9584d0bd5a43 | [
"MIT"
] | 1 | 2019-12-21T17:30:39.000Z | 2021-02-26T03:46:39.000Z | msgpack/src/message.mli | janestreet/vcaml | bd4e55dec448a0a6da874d7f8f7f9584d0bd5a43 | [
"MIT"
] | 3 | 2019-12-14T17:29:53.000Z | 2021-12-21T06:25:56.000Z | open Base
type custom =
{ type_id : int
; data : Bytes.t
}
[@@deriving sexp]
type t =
| Nil
| Integer of int
| Int64 of Int64.t
| UInt64 of Int64.t
| Boolean of bool
| Floating of float
| Array of t list
| Map of (t * t) list
| String of string
| Binary of Bytes.t
| Extension of custom
[@@... | 15.227273 | 23 | 0.61194 |
44db42f67fb27bdfea1ccbce6d07a38f8dad3a2a | 2,933 | ml | OCaml | src/irmin/hash.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | null | null | null | src/irmin/hash.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | 1 | 2020-03-02T22:43:44.000Z | 2020-03-06T15:35:44.000Z | src/irmin/hash.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 29.626263 | 75 | 0.700307 |
448adf704daa4d540d41d61d270180222aa0bb89 | 12,473 | mll | OCaml | src/lexer.mll | edukera/cml-lang | 8ab5e634c04543c294f82f72000e4f21b305d3c2 | [
"MIT"
] | 2 | 2019-02-08T18:50:07.000Z | 2019-03-02T18:23:52.000Z | src/lexer.mll | edukera/cml-lang | 8ab5e634c04543c294f82f72000e4f21b305d3c2 | [
"MIT"
] | 57 | 2019-01-24T13:32:12.000Z | 2019-04-10T15:25:09.000Z | src/lexer.mll | edukera/cml-lang | 8ab5e634c04543c294f82f72000e4f21b305d3c2 | [
"MIT"
] | null | null | null | (* Lexer *)
{
open Parser
exception LexError
let emit_error loc msg =
let str : string = "lexical error: " ^ msg in
let pos : Position.t list = [Tools.location_to_position loc] in
Error.error_alert pos str (fun _ -> ())
let lex_error lexbuf msg =
let loc = Location.of_lexbuf lexbuf in
emi... | 45.192029 | 130 | 0.345707 |
44a5ee6ae7ea666241e772ee43f5a3a440aa929f | 2,075 | ml | OCaml | data/fa15_min/2736.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/2736.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/2736.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n = if n > 0 then [x] @ (clone x (n - 1)) else [];;
let rec addHelper (t,u) =
match List.rev t with
| [] -> []
| h::t ->
(match List.rev u with
| [] -> []
| h'::t' ->
if (h + h') > 10
then (addHelper (t, t')) @ [(1 + h') + h]
else (addHelper (... | 21.173469 | 77 | 0.499759 |
44a56fc375677e9e4c57b4c092f2eddfb0f8b0f9 | 7,584 | ml | OCaml | data/derived/comb/progs/unify/prog4507.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/prog4507.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4507.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.333333 | 148 | 0.630142 |
440dad13ca0da5d3b2aa266b1aa4112d11cf4b76 | 2,264 | mli | OCaml | src/dune_engine/sandbox_mode.mli | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | src/dune_engine/sandbox_mode.mli | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | src/dune_engine/sandbox_mode.mli | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | (** How to sandbox actions *)
(** This module describes the method used to sandbox actions. Choices include:
- not sandboxing
- sandboxing by symlinking dependencies
- sandboxing by copying dependencies
- sandboxing by hardlinking dependencies
- sandboxing by copying dependencies, detecting change... | 21.980583 | 79 | 0.661661 |
4499d494c7226cc14351709ba1f6527d28edf7ce | 8,278 | ml | OCaml | src/node/building_blocks.ml | fraidev/deku | 51d981a6e035b184ef13662afe4ac514c6a2eaaa | [
"MIT"
] | null | null | null | src/node/building_blocks.ml | fraidev/deku | 51d981a6e035b184ef13662afe4ac514c6a2eaaa | [
"MIT"
] | null | null | null | src/node/building_blocks.ml | fraidev/deku | 51d981a6e035b184ef13662afe4ac514c6a2eaaa | [
"MIT"
] | null | null | null | open Helpers
open Crypto
open Protocol
module Node = State
let is_valid_block state block =
let is_all_operations_properly_signed _block = true in
let%assert () =
( Printf.sprintf
"new block has a lower block height (%Ld) than the current state (%Ld)"
block.Block.block_height state.Node.protocol... | 44.745946 | 82 | 0.750544 |
8a456374173d6ad4b16c0a8f98c3f14a75cd5ab1 | 3,855 | mli | OCaml | src/proto_alpha/lib_protocol/storage_functors.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/storage_functors.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/storage_functors.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 4 | 2021-04-27T15:00:34.000Z | 2021-09-26T21:50:01.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 36.367925 | 79 | 0.561089 |
449116d09f12256f857970990ecae91bf5b3c5a3 | 282 | mli | OCaml | clients/ocaml/generated/src/apis/item_category_api.mli | cliffano/pokeapi-clients | 92af296c68c3e94afac52642ae22057faaf071ee | [
"MIT"
] | null | null | null | clients/ocaml/generated/src/apis/item_category_api.mli | cliffano/pokeapi-clients | 92af296c68c3e94afac52642ae22057faaf071ee | [
"MIT"
] | null | null | null | clients/ocaml/generated/src/apis/item_category_api.mli | cliffano/pokeapi-clients | 92af296c68c3e94afac52642ae22057faaf071ee | [
"MIT"
] | null | null | null | (*
* This file has been generated by the OCamlClientCodegen generator for openapi-generator.
*
* Generated by: https://openapi-generator.tech
*
*)
val item_category_list : ?limit:int32 -> ?offset:int32 -> unit -> string Lwt.t
val item_category_read : id:int32 -> string Lwt.t
| 28.2 | 90 | 0.72695 |
8a2a8452635514a61227d4f8a73d0855b0616921 | 3,329 | ml | OCaml | hphp/hack/src/lints/linting_main.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-03-11T02:25:14.000Z | 2022-03-11T02:25:14.000Z | hphp/hack/src/lints/linting_main.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/lints/linting_main.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"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 Linting_visitors
let untyped_linters =
[
Linter_clone.go;
Linter_foreach_shadow.go;
Linter_invariant_viola... | 31.11215 | 79 | 0.687293 |
44d5172b1eea7e0bde2c0e1384d7637463c0d865 | 3,706 | ml | OCaml | data/fa15/2993.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2993.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2993.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let d = (List.length l1) - (List.length l2) in
if d < 0 then (((clone 0 (0 - d)) @ l1), l2) else (l1, ((clone 0 d) @ l2));;
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then removeZero t else l;;
let b... | 17.817308 | 80 | 0.473556 |
8afe5fbe0ee4b6de869d8a29c2f6a6c61f3391fb | 13,427 | ml | OCaml | hphp/hack/src/server/serverConfig.ml | sagas1416/hhvm | 253b620b7e49580463a76934b5d815721fa51c28 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverConfig.ml | sagas1416/hhvm | 253b620b7e49580463a76934b5d815721fa51c28 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverConfig.ml | sagas1416/hhvm | 253b620b7e49580463a76934b5d815721fa51c28 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.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.
*
*)
(**
* Parses and gathers information from the .hhconfig in the repo.
*)
open Core_kernel
open Config_file.Getter... | 38.472779 | 103 | 0.746034 |
44a09341f9d1ff557b8ca36b04fef579c56b715e | 156 | ml | OCaml | lib/core_arg.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/core_arg.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/core_arg.ml | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | include Caml.Arg
type t = key * spec * doc
let sort_and_align lst =
align (ListLabels.sort lst ~cmp:(fun (a,_,_) (b,_,_) ->
compare a b
))
;;
| 15.6 | 57 | 0.589744 |
8ab63dfdd02d391eebc3a3c5d2c729bcd35da4a5 | 10,471 | ml | OCaml | lib/tcp/user_buffer.ml | cpitclaudel/mirage-tcpip | 5d0ed4db31f23a27e906413c7d07a8c93ab31de1 | [
"0BSD"
] | null | null | null | lib/tcp/user_buffer.ml | cpitclaudel/mirage-tcpip | 5d0ed4db31f23a27e906413c7d07a8c93ab31de1 | [
"0BSD"
] | null | null | null | lib/tcp/user_buffer.ml | cpitclaudel/mirage-tcpip | 5d0ed4db31f23a27e906413c7d07a8c93ab31de1 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2010 http://github.com/barko 00336ea19fcb53de187740c490f764f4
* Copyright (c) 2011 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this p... | 32.417957 | 84 | 0.632986 |
4486b3603dd63245eeb970b85fd999614f4b83af | 98 | ml | OCaml | data/derived/comb/progs/unify/prog2726.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/prog2726.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2726.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs = let f a x = fs in let base = fs in List.fold_left f base fs;;
let _ = pipe [] 3;;
| 19.6 | 75 | 0.602041 |
44d59eb081493e3704af9942a6f914a583c521d3 | 895 | ml | OCaml | hphp/hack/src/client/clientLogCommandUtils.ml | bd808/hhvm | 5a9a5ac8b6b53c0e96a61339d8821195231ac233 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientLogCommandUtils.ml | bd808/hhvm | 5a9a5ac8b6b53c0e96a61339d8821195231ac233 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientLogCommandUtils.ml | bd808/hhvm | 5a9a5ac8b6b53c0e96a61339d8821195231ac233 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module C = Cl... | 35.8 | 80 | 0.707263 |
44b12e4edbd7fa7719ab2804da494d2227520127 | 391 | ml | OCaml | src/consensus/model/intent_designation.ml | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 2 | 2015-09-23T19:18:50.000Z | 2015-09-24T21:08:13.000Z | src/consensus/model/intent_designation.ml | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 3 | 2015-09-24T20:38:41.000Z | 2015-09-26T21:26:49.000Z | src/consensus/model/intent_designation.ml | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | null | null | null | (* This is free and unencumbered software released into the public domain. *)
open Prelude
type t =
| Unknown
| Hostile
| Neutral
| Friendly
let to_float = function
| Unknown -> Float.nan
| Hostile -> -1.
| Neutral -> 0.
| Friendly -> 1.
let to_string = function
| Unknown -> "Unknown"
| Host... | 17.772727 | 77 | 0.618926 |
44b9a9028fffbb1910d7caf0d4e9a07620d42297 | 4,000 | mli | OCaml | src/dune_engine/dep.mli | punchagan/dune | ebd799739dd7bc1beb06acec7e89e00190195835 | [
"MIT"
] | null | null | null | src/dune_engine/dep.mli | punchagan/dune | ebd799739dd7bc1beb06acec7e89e00190195835 | [
"MIT"
] | null | null | null | src/dune_engine/dep.mli | punchagan/dune | ebd799739dd7bc1beb06acec7e89e00190195835 | [
"MIT"
] | null | null | null | open Stdune
type t = private
| Env of Env.Var.t
| File of Path.t
| Alias of Alias.t
| File_selector of File_selector.t
| Universe
| Sandbox_config of Sandbox_config.t
val file : Path.t -> t
val env : Env.Var.t -> t
val universe : t
val file_selector : File_selector.t -> t
val alias : Alias.t -> t
val... | 24.096386 | 80 | 0.62825 |
44de31f17c90cc5019c67aeab5ee51bcec2de81f | 4,232 | mli | OCaml | src/proto_008_PtEdoTez/lib_protocol/amendment.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_008_PtEdoTez/lib_protocol/amendment.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_008_PtEdoTez/lib_protocol/amendment.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 54.25641 | 81 | 0.620038 |
446b08e17c156289bfce11e834ab0207c85d7be5 | 1,903 | ml | OCaml | src/common/mjmenu.ml | pstlGameEngine/gameEngine | 45df74efcb79164ab35f7a000544a64ab732ab3b | [
"CECILL-B"
] | 1 | 2017-03-20T11:30:35.000Z | 2017-03-20T11:30:35.000Z | src/common/mjmenu.ml | pstlGameEngine/gameEngine | 45df74efcb79164ab35f7a000544a64ab732ab3b | [
"CECILL-B"
] | null | null | null | src/common/mjmenu.ml | pstlGameEngine/gameEngine | 45df74efcb79164ab35f7a000544a64ab732ab3b | [
"CECILL-B"
] | null | null | null | open Mouse
type item = {text : Text.t; bounds:int*int*int*int}
let inBounds item pos =
match item.bounds with
| (a,b,c,d) ->
(fst pos) < a+c && (fst pos) > a
&& (snd pos) > b && (snd pos) < b+d
let isMouseOverItem item fen =
inBounds item (Mjwindow.get_relative_position fen)
let isClickedItem ite... | 29.734375 | 112 | 0.660536 |
44c3f9b57edcc6efeb28a5955c3189f322b334bf | 1,411 | ml | OCaml | hphp/hack/test/unit/utils/process_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/process_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/process_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.
*
*
*)
open Process
(* check that B is not shadowed when we set A.
*
* set B=1 outside and then run:
*
* case "$B" ... | 27.666667 | 71 | 0.639972 |
448d2f0bd88ca7871c41def966fa55c8aaf7f212 | 12,187 | ml | OCaml | src/ocaml-output/FStar_Pervasives.ml | fangyi-zhou/FStar | 0aa1bdbaed1aeb5af2caa67fd77bb6a4f81f33ad | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Pervasives.ml | fangyi-zhou/FStar | 0aa1bdbaed1aeb5af2caa67fd77bb6a4f81f33ad | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_Pervasives.ml | fangyi-zhou/FStar | 0aa1bdbaed1aeb5af2caa67fd77bb6a4f81f33ad | [
"Apache-2.0"
] | null | null | null | open Prims
type pattern = unit
type 'p spinoff = 'p
let id : 'a . 'a -> 'a = fun x -> x
type ('a, 'uuuuu) trivial_pure_post = unit
type ('uuuuu, 'uuuuu1) ambient = unit
let normalize_term : 'uuuuu . 'uuuuu -> 'uuuuu = fun x -> x
type 'a normalize = 'a
type norm_step =
| Simpl
| Weak
| HNF
| Primops
|... | 41.736301 | 77 | 0.670304 |
af3e689a5e262cd2d9c93e75dc93697fd046de5a | 133 | ml | OCaml | src/test_parse.ml | rems-project/extract | 5d544e996f9ca7bb0b937d16f7739b0452654d24 | [
"BSD-3-Clause"
] | 5 | 2018-03-25T01:08:19.000Z | 2021-01-04T05:12:08.000Z | src/test_parse.ml | PeterSewell/extract | 5d544e996f9ca7bb0b937d16f7739b0452654d24 | [
"BSD-3-Clause"
] | null | null | null | src/test_parse.ml | PeterSewell/extract | 5d544e996f9ca7bb0b937d16f7739b0452654d24 | [
"BSD-3-Clause"
] | null | null | null | let _ =
if Array.length Sys.argv > 1 then
XML_fixes.parse_pseudo Sys.argv.(1)
else
XML_fixes.parse_pseudo (read_line ())
| 22.166667 | 41 | 0.691729 |
447f5219a09a752ebff5a0af8365309667cb7679 | 1,225 | ml | OCaml | examples/simple.ml | MisterDA/ocaml-win-eventlog | 6da4ad247504803f21a8eb22c22b669d091fda87 | [
"0BSD"
] | null | null | null | examples/simple.ml | MisterDA/ocaml-win-eventlog | 6da4ad247504803f21a8eb22c22b669d091fda87 | [
"0BSD"
] | null | null | null | examples/simple.ml | MisterDA/ocaml-win-eventlog | 6da4ad247504803f21a8eb22c22b669d091fda87 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2016 Docker Inc
*
* 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 THE AUTHOR DISCLAIMS A... | 40.833333 | 84 | 0.697959 |
af5eb41f7b3910bfbc3913cd548b557b20ffc208 | 869 | ml | OCaml | src/javagen/javaInterface.ml | beaCarre/OJacare2 | b1081e26a29f6528916951add92a5d4adf346afa | [
"Beerware"
] | 2 | 2015-03-20T11:50:27.000Z | 2019-11-18T21:10:44.000Z | OJacare2/src/javagen/javaInterface.ml | hnrgrgr/OJacare2 | 61234066f2016ab70e9294c26008b60ef77a6a0b | [
"Beerware"
] | null | null | null | OJacare2/src/javagen/javaInterface.ml | hnrgrgr/OJacare2 | 61234066f2016ab70e9294c26008b60ef77a6a0b | [
"Beerware"
] | 2 | 2015-06-08T20:06:37.000Z | 2020-11-02T01:31:35.000Z | (* $Id: javaInterface.ml,v 1.1.1.1 2003/10/19 22:57:41 henry Exp $ *)
open Cidl
open Format
let output ppf clazz =
let package = Ident.get_class_java_callback_package_name clazz.cc_ident
and java_stubname = Ident.get_class_java_stub_name clazz.cc_ident
in
let java_icb_name = ("ICB_"^java_stubname)
in
fpr... | 34.76 | 88 | 0.752589 |
8ad22786126883788aaf15c67417288a152a600a | 8,753 | ml | OCaml | src/config.ml | EduardoRFS/sexp_pretty | 7a0796eff18d6c1702bc8507492abd990c6a7efb | [
"MIT"
] | 20 | 2017-05-26T08:07:11.000Z | 2022-03-09T07:08:39.000Z | src/config.ml | EduardoRFS/sexp_pretty | 7a0796eff18d6c1702bc8507492abd990c6a7efb | [
"MIT"
] | 2 | 2018-03-13T12:47:33.000Z | 2019-08-31T20:51:18.000Z | src/config.ml | EduardoRFS/sexp_pretty | 7a0796eff18d6c1702bc8507492abd990c6a7efb | [
"MIT"
] | 4 | 2018-03-09T20:56:50.000Z | 2021-12-17T02:48:03.000Z | open! Base
let of_sexp_error = Sexplib.Conv.of_sexp_error
type color =
| Black
| Red
| Green
| Yellow
| Blue
| Magenta
| Cyan
| White
| Default
[@@deriving sexp]
(* Datatypes of various thresholds *)
type atom_threshold = Atom_threshold of int [@@deriving sexp]
let atom_threshold_of_sexp sexp =
... | 27.787302 | 92 | 0.680909 |
af40b9f6f872fb456d8bf0a25ad4944f7e2a7e10 | 887 | ml | OCaml | data/sp14/2527.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/2527.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/2527.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec wwhile (f,b) =
let rec wwhelper f b =
let (b',c') = f b in if c' = false then b' else wwhelper f b' in
wwhelper f b;;
let fixpoint (f,b) =
wwhile (let helper x = ((f x), ((f x) = (f b))) in ((helper b), b));;
(* fix
let rec wwhile (f,b) =
let rec wwhelper f b =
let (b',c') = f b in if c' = ... | 17.057692 | 71 | 0.508455 |
44d80a7d2e79f1b547f1de05f0865f8bf3033c00 | 31,793 | ml | OCaml | tests/tool-ocaml/t330-compact-3.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | 1 | 2016-05-17T14:29:13.000Z | 2016-05-17T14:29:13.000Z | tests/tool-ocaml/t330-compact-3.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | tests/tool-ocaml/t330-compact-3.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | open Lib;;
let rec f n =
if n <= 0 then []
else n :: f (n-1)
in
let l = f 300 in
Gc.compact ();
if List.fold_left (+) 0 l <> 301 * 150 then raise Not_found
;;
(**
0 CONSTINT 42
2 PUSHACC0
3 MAKEBLOCK1 0
5 POP 1
7 SETGLOBAL Lib
9 BRANCH 746
11 RESTART
12 GRAB 1
... | 19.995597 | 59 | 0.641556 |
44e1942c5dea1ccecf6495bcdf384cb021e2a488 | 7,826 | ml | OCaml | data/derived/comb/progs/unify/prog2739.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/prog2739.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2739.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 | 148 | 0.687069 |
44085fe59ff07ba1a8166835db67f78239d56620 | 965 | ml | OCaml | benchmarks/unrealizable/twosum.ml | victornicolet/atropos | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 3 | 2021-05-03T16:20:32.000Z | 2021-05-14T19:59:51.000Z | benchmarks/unrealizable/twosum.ml | victornicolet/Synduce | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | null | null | null | benchmarks/unrealizable/twosum.ml | victornicolet/Synduce | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 1 | 2021-05-12T15:14:40.000Z | 2021-05-12T15:14:40.000Z | (** @synduce --no-lifting *)
type list =
| Nil
| Cons of int * list
let rec list_all_positive = function
| Nil -> true
| Cons (hd, tl) -> hd > 0 && list_all_positive tl
;;
type clist =
| CNil
| Single of int
| Concat of clist * clist
let rec clist_to_list = function
| CNil -> Nil
| Single a -> Con... | 18.921569 | 66 | 0.561658 |
8adeef00129b2f52cd6ac33b267842160f40a9a1 | 2,656 | mli | OCaml | src/internals/operations.mli | lebotlan/ocaml-cryptodbm | 4460b926844145c890f7838a0d262df9baecbed2 | [
"MIT"
] | 4 | 2017-08-29T06:25:46.000Z | 2017-12-31T05:24:17.000Z | src/internals/operations.mli | lebotlan/ocaml-cryptodbm | 4460b926844145c890f7838a0d262df9baecbed2 | [
"MIT"
] | 1 | 2017-11-15T10:36:38.000Z | 2017-11-24T10:35:23.000Z | src/internals/operations.mli | lebotlan/ocaml-cryptodbm | 4460b926844145c890f7838a0d262df9baecbed2 | [
"MIT"
] | null | null | null | open Kinds
open Types
(* Note: key_kinds must be already salted. *)
(* Handler to the lower-level database.
* 'a is a phantom type : read or full. *)
type 'a handler
(* Root file name (without suffixes). *)
val get_rootfile : 'a handler -> string
val cast : 'a handler -> read handler
(* @raise File_not_found *)
... | 40.861538 | 124 | 0.70256 |
442b81fcd884acb996e515b6f0bc60c6a94268fc | 59,917 | ml | OCaml | src/client/main.ml | smondet/TZComet | 0b4c159feb76cb9553fb2abe1294436d01138fa3 | [
"MIT"
] | null | null | null | src/client/main.ml | smondet/TZComet | 0b4c159feb76cb9553fb2abe1294436d01138fa3 | [
"MIT"
] | null | null | null | src/client/main.ml | smondet/TZComet | 0b4c159feb76cb9553fb2abe1294436d01138fa3 | [
"MIT"
] | null | null | null | open Import
module State = struct
module View = struct
type t =
| Welcome
| Metadata_json_editor
| Metadata_uri_editor
| Michelson_bytes_parser
| Metadata_explorer
let to_string = function
| Welcome -> "Welcome"
| Metadata_json_editor -> "Metadata_json_editor"
... | 40.320996 | 92 | 0.527546 |
443c4018d0b0f2f41511e7af28da1c248e56b117 | 21,562 | ml | OCaml | norm.ml | HexagonalED/software-foundations | aff2764560070f44a13b52342c0594850dfe7a3f | [
"MIT"
] | 1 | 2016-04-17T21:59:21.000Z | 2016-04-17T21:59:21.000Z | norm.ml | HexagonalED/software-foundations | aff2764560070f44a13b52342c0594850dfe7a3f | [
"MIT"
] | null | null | null | norm.ml | HexagonalED/software-foundations | aff2764560070f44a13b52342c0594850dfe7a3f | [
"MIT"
] | 1 | 2019-12-12T00:31:19.000Z | 2019-12-12T00:31:19.000Z | type __ = Obj.t
let __ = let rec f _ = Obj.repr f in Obj.repr f
type 'a option =
| Some of 'a
| None
type ('a, 'b) prod =
| Pair of 'a * 'b
type 'a list =
| Nil
| Cons of 'a * 'a list
(** val beq_nat : int -> int -> bool **)
let rec beq_nat = ( = )
type id =
int
(* singleton inductive, whose constructor was I... | 34.833603 | 77 | 0.549485 |
8a93d8bc17d781ce147ba46405fd7b4e0bc97d99 | 9,617 | ml | OCaml | hphp/hack/src/search/symbolIndex.ml | KIBEBENSON/hhvm | 36ef0d11162898de284bae31d839577cc35571d2 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-11-01T13:46:07.000Z | 2019-11-01T13:46:07.000Z | hphp/hack/src/search/symbolIndex.ml | KIBEBENSON/hhvm | 36ef0d11162898de284bae31d839577cc35571d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/search/symbolIndex.ml | KIBEBENSON/hhvm | 36ef0d11162898de284bae31d839577cc35571d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open SearchUtils
(* Set the currently selected search provider *)
let initialize
~(globalrev :... | 30.627389 | 80 | 0.657066 |
4445a2352fbaf847e36c6c5b64d5a010b44e90eb | 12,984 | ml | OCaml | src/parser/jsx_parser.ml | brookemitchell/flow | 2ca328a33dc2cf634a554b5b0c99b0c22369aae3 | [
"MIT"
] | 1 | 2022-02-06T01:14:40.000Z | 2022-02-06T01:14:40.000Z | src/parser/jsx_parser.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"MIT"
] | null | null | null | src/parser/jsx_parser.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.
*)
module Ast = Flow_ast
open Token
open Parser_common
open Parser_env
open Flow_ast
module Error = Parse_error
module JSX (Parse: ... | 37.964912 | 100 | 0.590881 |
44d76421459123f0f71f1b9d3134cd045f06358e | 13,044 | ml | OCaml | src/proto_alpha/lib_protocol/test/liquidity_baking_pbt.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | src/proto_alpha/lib_protocol/test/liquidity_baking_pbt.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | src/proto_alpha/lib_protocol/test/liquidity_baking_pbt.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"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> *)
... | 43.335548 | 154 | 0.66498 |
44a935fe160e4d379508778dbda0dca1ca8996b8 | 10,939 | ml | OCaml | infer/src/clang/cScope.ml | rushatgabhane/infer | 14b32f172791daa32b26a88c35a368ce1081a5f4 | [
"MIT"
] | 1 | 2020-11-12T23:04:48.000Z | 2020-11-12T23:04:48.000Z | infer/src/clang/cScope.ml | rushatgabhane/infer | 14b32f172791daa32b26a88c35a368ce1081a5f4 | [
"MIT"
] | null | null | null | infer/src/clang/cScope.ml | rushatgabhane/infer | 14b32f172791daa32b26a88c35a368ce1081a5f4 | [
"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
type scope_kind =
| Breakable (** loop or switch statement within which it's ok to [break;] *)
... | 39.634058 | 100 | 0.642563 |
441939a73fb2366394d3040b24fba44e27f15ab3 | 264 | ml | OCaml | tests/test-bigarrays/stub-generator/driver.ml | Armael/ocaml-ctypes | b8968b6d7b5687399011275758e7597f6a7274f9 | [
"MIT"
] | 271 | 2015-01-02T14:49:27.000Z | 2022-02-27T18:52:53.000Z | tests/test-bigarrays/stub-generator/driver.ml | Armael/ocaml-ctypes | b8968b6d7b5687399011275758e7597f6a7274f9 | [
"MIT"
] | 356 | 2015-01-02T16:31:32.000Z | 2022-03-31T11:16:31.000Z | tests/test-bigarrays/stub-generator/driver.ml | Armael/ocaml-ctypes | b8968b6d7b5687399011275758e7597f6a7274f9 | [
"MIT"
] | 76 | 2015-01-12T11:37:18.000Z | 2022-02-13T04:27:51.000Z | (*
* Copyright (c) 2014 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
(* Stub generation driver for the bigarrays tests. *)
let () = Tests_common.run Sys.argv (module Functions.Stubs)
| 24 | 63 | 0.708333 |
8a624cab989034a7eb9d2348e644a93e78410bad | 2,103 | mli | OCaml | duniverse/ocamlgraph/src/dGraphRandModel.mli | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/ocamlgraph/src/dGraphRandModel.mli | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/ocamlgraph/src/dGraphRandModel.mli | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* This file is part of OcamlGraph. *)
(* *)
(* Copyrigh... | 61.852941 | 76 | 0.321446 |
448102cbf4adf0454e7f8a1ff50cf0376ec7b102 | 6,966 | ml | OCaml | duniverse/core_kernel/test/src/test_command_shape.ml | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | duniverse/core_kernel/test/src/test_command_shape.ml | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | duniverse/core_kernel/test/src/test_command_shape.ml | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z | open! Core_kernel
open! Command.Shape
module Entry = struct
type t =
{ name_length : int
; doc_length : int
; aliases : string list
}
let create ?(aliases = []) name_length doc_length =
{ name_length; doc_length; aliases }
;;
let generate_string ~spaces length =
List.init length ~f:(f... | 47.067568 | 82 | 0.344818 |
446f44623d915f3e4cb4fefcf85a7d88195b94cf | 432 | ml | OCaml | src/bigint_intf.ml | dankrad/snarky | 4f21bb852f759607f1802a7d90301c7e4de83f3c | [
"MIT"
] | null | null | null | src/bigint_intf.ml | dankrad/snarky | 4f21bb852f759607f1802a7d90301c7e4de83f3c | [
"MIT"
] | null | null | null | src/bigint_intf.ml | dankrad/snarky | 4f21bb852f759607f1802a7d90301c7e4de83f3c | [
"MIT"
] | null | null | null | module type S = sig
type field
type t
val of_field : field -> t
val test_bit : t -> int -> bool
end
module type Extended = sig
include S
include Core_kernel.Binable.S with type t := t
val to_field : t -> field
val of_data : Core.Bigstring.t -> bitcount:int -> t
val length_in_bytes : int
val... | 15.428571 | 53 | 0.643519 |
8afddf4c4a7702df978d353e3a5d616c86baeabf | 497 | ml | OCaml | src/agari.ml | tategakibunko/ocaml-mjlib | a32d8a9fe457abb511d5774ed96b5eec8d0fa5d0 | [
"MIT"
] | 1 | 2017-02-12T03:18:05.000Z | 2017-02-12T03:18:05.000Z | src/agari.ml | tategakibunko/ocaml-mjlib | a32d8a9fe457abb511d5774ed96b5eec8d0fa5d0 | [
"MIT"
] | null | null | null | src/agari.ml | tategakibunko/ocaml-mjlib | a32d8a9fe457abb511d5774ed96b5eec8d0fa5d0 | [
"MIT"
] | null | null | null | (*
agari.ml
Copyright (c) 2012 - by Masaki Watanabe
License: see LICENSE
*)
open Utils
open Types
type t = agari
let eq agari1 agari2 : bool =
Machi.eq agari1.machi agari2.machi &&
(agari1.fu_count = agari2.fu_count) &&
(agari1.yaku_count = agari2.yaku_count) &&
(agari1.yaku_list = agari2.yaku_lis... | 18.407407 | 46 | 0.692153 |
445fc94a8ca720d2055605e9aa659b518e5841a9 | 209 | mli | OCaml | libraries/route53/lib/deleteTrafficPolicyInstance.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/route53/lib/deleteTrafficPolicyInstance.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/route53/lib/deleteTrafficPolicyInstance.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 = DeleteTrafficPolicyInstanceRequest.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 19 | 85 | 0.76555 |
8a0d045685ebfc15be64f6876cd1e5d1ac75c4d8 | 341,241 | ml | OCaml | hphp/hack/src/parser/full_fidelity_syntax.ml | adityavs/hhvm | 0fb64c1eb5160ff70c78587a54ed3d6428273282 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_syntax.ml | adityavs/hhvm | 0fb64c1eb5160ff70c78587a54ed3d6428273282 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_syntax.ml | adityavs/hhvm | 0fb64c1eb5160ff70c78587a54ed3d6428273282 | [
"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.
*
**
*
* THIS FILE IS @generated; DO NOT EDIT IT
* To regenerate this file, run
*
* buc... | 31.038839 | 103 | 0.621007 |
4430b4641d33b6661c1c28aba5872677d0d6a4f1 | 4,596 | ml | OCaml | serial/src/bin/print_state.ml | Yagotzirck/whilelang-reverse | 81c49ce2340a9eb9b62e8a959568707de703e664 | [
"MIT"
] | null | null | null | serial/src/bin/print_state.ml | Yagotzirck/whilelang-reverse | 81c49ce2340a9eb9b62e8a959568707de703e664 | [
"MIT"
] | null | null | null | serial/src/bin/print_state.ml | Yagotzirck/whilelang-reverse | 81c49ce2340a9eb9b62e8a959568707de703e664 | [
"MIT"
] | null | null | null | open Serial_interp.Ast
open Serial_interp.Ast_aug
open Serial_interp.Sigma
open Serial_interp.Delta
open Serial_interp.State
open Printf
let print_program prg =
let print_stmt_assign e1 e2 =
match e1, e2 with
| Val i, Val j -> printf "Assign (%s, %s)" i j
| Val i, Eint n -> printf "Assi... | 31.916667 | 132 | 0.508921 |
448be3167c00a7cb7ac5a86a231ec49ca07e5d91 | 121,735 | ml | OCaml | compiler/parser/ast_json.ml | zyrolasting/pash | 96f65f63f1035a8156359a7a85a36634dae5a6a6 | [
"MIT"
] | 89 | 2021-07-12T16:15:39.000Z | 2022-02-20T10:01:41.000Z | compiler/parser/ast_json.ml | zyrolasting/pash | 96f65f63f1035a8156359a7a85a36634dae5a6a6 | [
"MIT"
] | 226 | 2021-07-12T16:41:00.000Z | 2022-03-31T22:52:52.000Z | compiler/parser/ast_json.ml | zyrolasting/pash | 96f65f63f1035a8156359a7a85a36634dae5a6a6 | [
"MIT"
] | 23 | 2021-07-12T14:23:23.000Z | 2022-03-29T07:21:31.000Z | (* Auto-generated from "ast_atd.atd" *)
[@@@ocaml.warning "-27-32-35-39"]
type dup_type = Ast.dup_type = ToFD | FromFD
type heredoc_type = Ast.heredoc_type = Here | XHere
type linno = Ast.linno
type redir_type = Ast.redir_type = To | Clobber | From | FromTo | Append
type var_type = Ast.var_type =
Normal... | 35.001438 | 316 | 0.368933 |
44b91240dc3740be5d9b5a7a4efc364a0f71006f | 39,578 | ml | OCaml | src/proto_010_PtGRANAD/lib_client/injection.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_010_PtGRANAD/lib_client/injection.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_010_PtGRANAD/lib_client/injection.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 38.202703 | 89 | 0.633685 |
affadf5aa55f8851e8a8e31bccc1795b73945e6b | 180 | ml | OCaml | cours9.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | 1 | 2022-01-27T20:37:21.000Z | 2022-01-27T20:37:21.000Z | cours9.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | null | null | null | cours9.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | null | null | null | let tab = [|[|0;2;1|];[|1;0;2|]|]
let teste m =
let e = ref 0 in
for i = 0 to String.length m-1 do
let l = if m.[i] = '0' then 0 else 1 in
e := tab.(l).(!e) done;
!e = 0;; | 22.5 | 41 | 0.483333 |
44d7c186696b446a16fac531f3d910820624b206 | 184 | ml | OCaml | benchmarks/sigma/sigma1/submissions/sub381.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/sigma/sigma1/submissions/sub381.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/sigma/sigma1/submissions/sub381.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (* 2014 - 18474 kim ju hyeon *)
(* 2017 fall PL 1_2 *)
let rec sigma : int * int * (int -> int) -> int = function
(a,b,f) ->
if a > b then 0
else f a + sigma(a + 1, b, f)
| 26.285714 | 59 | 0.505435 |
44a409e4fd6550511621e1edd79abe11f3c1afd8 | 5,893 | ml | OCaml | src/review/review_comment.ml | hhpack/typesafety-cli | ca6769e371bd816112ab8473121d82440b78d18a | [
"MIT"
] | null | null | null | src/review/review_comment.ml | hhpack/typesafety-cli | ca6769e371bd816112ab8473121d82440b78d18a | [
"MIT"
] | 15 | 2017-05-16T06:43:01.000Z | 2018-07-17T01:39:06.000Z | src/review/review_comment.ml | hhpack/typesafety-cli | ca6769e371bd816112ab8473121d82440b78d18a | [
"MIT"
] | null | null | null | (**
* Copyright 2016-2017 Noritaka Horio <holy.shared.design@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*)
open Hack
open Typechecker.Typechecker_check_t
module Message = struct
let path_from ?(root=Sys.getcwd ()) t =
Str.repla... | 33.293785 | 98 | 0.640251 |
44b77078a3f86fc48fd0d75b4ac7c48fc20d7914 | 671 | ml | OCaml | src/languageServer/declaration_index_test.ml | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 248 | 2021-06-10T07:25:28.000Z | 2022-03-29T10:34:45.000Z | src/languageServer/declaration_index_test.ml | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 612 | 2021-06-10T07:04:33.000Z | 2022-03-31T16:28:29.000Z | src/languageServer/declaration_index_test.ml | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | 36 | 2021-06-10T06:46:55.000Z | 2022-03-07T20:22:04.000Z | let shorten_test pkg_map aliases base path expected =
let actual =
Declaration_index.shorten_import_path
(Mo_config.Flags.M.of_seq (List.to_seq pkg_map))
(Mo_config.Flags.M.of_seq (List.to_seq aliases))
base path
in
if not (actual = expected) then (
Printf.printf "Expected:\n%s\nBut got:... | 33.55 | 66 | 0.66617 |
442ff9c4bdd4c84de9c2d85d306cb0ad01a96c06 | 768 | mli | OCaml | examples/example_ppxlib_ast/example_ppxlib_ast.mli | thierry-martinez/override | 8814efc841dc88ae295278768bd9db9d34472e0f | [
"BSD-2-Clause"
] | 3 | 2020-03-03T13:47:22.000Z | 2020-05-09T14:33:53.000Z | examples/example_ppxlib_ast/example_ppxlib_ast.mli | thierry-martinez/override | 8814efc841dc88ae295278768bd9db9d34472e0f | [
"BSD-2-Clause"
] | 2 | 2021-03-04T17:37:43.000Z | 2021-09-22T13:05:25.000Z | examples/example_ppxlib_ast/example_ppxlib_ast.mli | thierry-martinez/override | 8814efc841dc88ae295278768bd9db9d34472e0f | [
"BSD-2-Clause"
] | null | null | null | [%%recursive:
[%%meta if Sys.ocaml_version >= "4.07.0" then [%sigi:
module%import Stdlib : sig
module%import Lexing : sig
type position = _ [@@rewrite]
end
end]
else [%sigi:
module%import Lexing : sig
type position = _ [@@rewrite]
end]]
module%import Location : sig
t... | 20.210526 | 55 | 0.596354 |
8a89b54d2a49fd0ad62c382c1c1f176ab6f8c61c | 8,556 | ml | OCaml | bench/bench.ml | tomjridge/cactus | e27b06293f321ef5d98fe178340e030f7a5f8bdb | [
"MIT"
] | 19 | 2021-07-30T17:07:54.000Z | 2021-08-22T23:59:39.000Z | bench/bench.ml | tomjridge/cactus | e27b06293f321ef5d98fe178340e030f7a5f8bdb | [
"MIT"
] | 5 | 2021-07-30T13:37:00.000Z | 2021-08-04T12:19:37.000Z | bench/bench.ml | tomjridge/cactus | e27b06293f321ef5d98fe178340e030f7a5f8bdb | [
"MIT"
] | 3 | 2021-07-30T13:57:16.000Z | 2021-08-08T15:53:05.000Z | (*
* Copyright (c) 2021 Tarides <contact@tarides.com>
* Copyright (c) 2021 Gabriel Belouze <gabriel.belouze@ens.psl.eu>
*
* 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 a... | 29.402062 | 100 | 0.638616 |
44996f4394ebfa80b11d529ef1e27413f9e0d9a6 | 4,824 | mli | OCaml | src/dune/build_system.mli | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | src/dune/build_system.mli | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | src/dune/build_system.mli | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | (** Build rules *)
open! Stdune
open! Import
(** {1 Setup} *)
(** {2 Creation} *)
(** Initializes the build system. This must be called first. *)
val init :
contexts:Context.t list
-> ?memory:Dune_manager.Client.t
-> file_tree:File_tree.t
-> sandboxing_preference:Sandbox_mode.t list
-> unit
val reset ... | 27.254237 | 80 | 0.666667 |
8a826be3d4aa616fdfadb2a6a76a559e3ab28e9b | 532 | ml | OCaml | Two-Sum/TS.ml | ccqpein/Arithmetic-Exercises | 748d7ac1313892d47eb0a66a0b7705e6d33b43ad | [
"Apache-2.0"
] | 4 | 2017-07-11T03:07:49.000Z | 2021-10-09T06:46:10.000Z | Two-Sum/TS.ml | ccqpein/Arithmetic-Exercises | 748d7ac1313892d47eb0a66a0b7705e6d33b43ad | [
"Apache-2.0"
] | null | null | null | Two-Sum/TS.ml | ccqpein/Arithmetic-Exercises | 748d7ac1313892d47eb0a66a0b7705e6d33b43ad | [
"Apache-2.0"
] | 1 | 2017-12-06T22:19:33.000Z | 2017-12-06T22:19:33.000Z | exception Empty_list;;
exception Nothing;;
let rec num_sum nums target ind=
let rec inner_func num rest target ind=
match rest with
|[] -> raise Nothing;
| x::xs -> if num + x = target
then ind
else inner_func num xs target (ind + 1)
in
match nums with
|[] -> raise E... | 24.181818 | 54 | 0.569549 |
446c9088fc1569d1e6e793fc15d7aedb12b02037 | 4,377 | ml | OCaml | hphp/hack/src/typing/tast_expand.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_expand.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_expand.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
module T = Aast
module MakeType = Typing_make_type
(* Eliminate residue of type in... | 30.395833 | 79 | 0.607265 |
44d0fbb6ddd6e669ec436206d29cb333129f0146 | 128 | mli | OCaml | vendor/core_kernel/src/string_id.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | vendor/core_kernel/src/string_id.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | vendor/core_kernel/src/string_id.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | (** Like {!Identifiable}, but with [t = private string] and stable modules. *)
include String_id_intf.String_id (** @inline *)
| 32 | 78 | 0.695313 |
441a0e5170fab24988838a246688b76b1e214b96 | 2,307 | ml | OCaml | src/lib_crypto/operation_hash.ml | osiz-blockchainapp/micashV1.0 | 8c4efe0f59110210502f1bf9f19952ea053771e1 | [
"MIT"
] | null | null | null | src/lib_crypto/operation_hash.ml | osiz-blockchainapp/micashV1.0 | 8c4efe0f59110210502f1bf9f19952ea053771e1 | [
"MIT"
] | null | null | null | src/lib_crypto/operation_hash.ml | osiz-blockchainapp/micashV1.0 | 8c4efe0f59110210502f1bf9f19952ea053771e1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 53.651163 | 79 | 0.48938 |
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.