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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f30d7b88bc6b3fe032f1edd28017b2a6e9d721ee | 667 | ml | OCaml | src/mo_config/internal_error.ml | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | null | null | null | src/mo_config/internal_error.ml | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | null | null | null | src/mo_config/internal_error.ml | olaszakos/motoko | 01867bdb76d6ceb7e986297464a41146f3d34839 | [
"Apache-2.0"
] | null | null | null |
(* TODO: replace with Printexc.default_uncaught_exception_handler with OCaml 4.11*)
let default_uncaught_exception_handler exn raw_backtrace =
Printexc.(
Printf.eprintf "Fatal error: exception %s\n" (to_string exn);
print_raw_backtrace stderr raw_backtrace;
flush stderr)
let setup_handler () =
Printex... | 41.6875 | 150 | 0.770615 |
f3bced3257851ae5b491df4b3f0668c1d7c97c73 | 6,836 | eliom | OCaml | dictionary_handlers.eliom | Sudha247/dictionary-app | cf8a088bd0b37f870ffeebfeee33f30cd7366dbd | [
"MIT"
] | 1 | 2020-10-08T17:57:49.000Z | 2020-10-08T17:57:49.000Z | dictionary_handlers.eliom | Sudha247/dictionary-app | cf8a088bd0b37f870ffeebfeee33f30cd7366dbd | [
"MIT"
] | null | null | null | dictionary_handlers.eliom | Sudha247/dictionary-app | cf8a088bd0b37f870ffeebfeee33f30cd7366dbd | [
"MIT"
] | null | null | null | (* This file was generated by Ocsigen Start.
Feel free to use it, modify it, and redistribute it as you wish. *)
[%%shared
open Eliom_content.Html.F
]
(* Upload user avatar *)
let upload_user_avatar_handler myid () ((), (cropping, photo)) =
let avatar_dir =
List.fold_left Filename.concat
(List.hd !Di... | 34.877551 | 75 | 0.646284 |
f3586a53a96cdd1e937b0e9d51c12c10501f88c2 | 4,907 | ml | OCaml | hphp/hack/src/hhbc/emit_env.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_env.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_env.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.
*
*)
type t = {
e... | 35.557971 | 85 | 0.760139 |
f34b2c6af0bad048addd60c7e6c69f542e4f11b8 | 175 | ml | OCaml | jsoo/build-local-csv-file/textEncoder.ml | slegrand45/examples_ocsigen | e2f5efe57caf7a644795ac6b14f6d6e04168e4be | [
"MIT"
] | 21 | 2015-08-30T21:31:06.000Z | 2021-12-04T00:17:29.000Z | jsoo/build-local-csv-file/textEncoder.ml | slegrand45/examples_ocsigen | e2f5efe57caf7a644795ac6b14f6d6e04168e4be | [
"MIT"
] | 1 | 2016-03-16T09:10:55.000Z | 2016-03-16T20:19:12.000Z | jsoo/build-local-csv-file/textEncoder.ml | slegrand45/examples_ocsigen | e2f5efe57caf7a644795ac6b14f6d6e04168e4be | [
"MIT"
] | 4 | 2016-12-28T03:08:39.000Z | 2022-03-24T21:18:25.000Z | open Js_of_ocaml
class type t = object
method encode_uint8 : Js.js_string Js.t -> Typed_array.uint8Array Js.t Js.meth
end
let textEncoder = Js.Unsafe.global##._TextEncoder | 25 | 80 | 0.777143 |
af000a81a8a7fbb00cb516a18f2e5d3373572ad9 | 6,341 | mli | OCaml | src/typing/type_mapper.mli | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/typing/type_mapper.mli | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/typing/type_mapper.mli | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.000Z | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
class virtual ['a] t :
object
method arr_type : Context.t -> 'a -> Type.arrtype -> Type.arrtype
method bounds : Context.... | 36.653179 | 99 | 0.67513 |
f300410b8ee64823d7dc4b4b8df9e5136578aafd | 864 | ml | OCaml | src/jhupllib/jhupllib_multimap_to_yojson.ml | JHU-PL-Lab/jhu-pl-lib | 571dd53f30b204224c87c66732306928e7382621 | [
"Apache-2.0"
] | 3 | 2020-08-24T16:29:40.000Z | 2020-08-24T18:18:58.000Z | src/jhupllib/jhupllib_multimap_to_yojson.ml | JHU-PL-Lab/jhu-pl-lib | 571dd53f30b204224c87c66732306928e7382621 | [
"Apache-2.0"
] | null | null | null | src/jhupllib/jhupllib_multimap_to_yojson.ml | JHU-PL-Lab/jhu-pl-lib | 571dd53f30b204224c87c66732306928e7382621 | [
"Apache-2.0"
] | null | null | null | open Batteries;;
open Jhupllib_multimap;;
open Jhupllib_yojson_utils;;
module Make
(M : Multimap_sig)
(K_yojson : To_yojson_type with type t = M.key)
(V_yojson : To_yojson_type with type t = M.value)
=
struct
let to_yojson m =
`Assoc
[ ( "type"
, `String "multimap"
)
; ( "... | 23.351351 | 62 | 0.378472 |
f38aebbe960533d2a2d5f91971a7a19e7e5d68aa | 8,326 | ml | OCaml | x86/proofs/bignum_mod_n384_6.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 33 | 2021-03-11T16:12:01.000Z | 2022-03-06T17:01:18.000Z | x86/proofs/bignum_mod_n384_6.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 8 | 2021-09-06T12:58:47.000Z | 2022-01-03T16:43:09.000Z | x86/proofs/bignum_mod_n384_6.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 4 | 2021-03-11T19:28:16.000Z | 2021-12-12T23:40:44.000Z | (*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "LICENSE" file ... | 49.856287 | 155 | 0.60197 |
f3f3c500264ba086f90fe32c856faf384fa0d213 | 7,830 | ml | OCaml | src/proto_alpha/lib_protocol/test/test_timelock.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/test_timelock.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/test_timelock.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 43.5 | 81 | 0.649042 |
af2210545e5360200f894edc4ba00a636c5ca0c0 | 3,008 | mli | OCaml | reddit_api_async/retry_manager.mli | smorimoto/ocaml-reddit-api | aab8489c848506a5add59263c2391e56756dbe77 | [
"MIT"
] | null | null | null | reddit_api_async/retry_manager.mli | smorimoto/ocaml-reddit-api | aab8489c848506a5add59263c2391e56756dbe77 | [
"MIT"
] | null | null | null | reddit_api_async/retry_manager.mli | smorimoto/ocaml-reddit-api | aab8489c848506a5add59263c2391e56756dbe77 | [
"MIT"
] | null | null | null | (** [Retry_manager] handles transient errors due to blips in networking or
Reddit's infrastructure.
When a request is sent via a retry manager, a transient error causes the
manager to periodically query the Reddit API to detect a resumption of
ordinary service. After this query succeeds, the original r... | 35.809524 | 79 | 0.709109 |
f3077ca30aaa19f5c66bde28f4ad529c970c4b81 | 1,863 | ml | OCaml | src/stdune/stdune.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/stdune/stdune.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/stdune/stdune.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | module Appendable_list = Appendable_list
module Ansi_color = Ansi_color
module Array = Array
module Bytes = Bytes
module Comparator = Comparator
module Console = Console
module Csexp = Csexp
module Daemonize = Daemonize
module Either = Either
module Exn = Exn
module Exn_with_backtrace = Exn_with_backtrace
module Fcntl ... | 21.662791 | 80 | 0.747182 |
af216edc240920de476c2b2634f72dfae077aca5 | 901 | mli | OCaml | trs/trsParse.mli | s-falke/sail2 | 14583d1bcff7d301c89f9ce363adffbf3f1e2590 | [
"Apache-2.0"
] | 2 | 2015-02-21T00:47:09.000Z | 2018-02-07T23:33:04.000Z | trs/trsParse.mli | s-falke/sail2 | 14583d1bcff7d301c89f9ce363adffbf3f1e2590 | [
"Apache-2.0"
] | null | null | null | trs/trsParse.mli | s-falke/sail2 | 14583d1bcff7d301c89f9ce363adffbf3f1e2590 | [
"Apache-2.0"
] | null | null | null | (**
Interface of trs-parsing.
@author Stephan Falke
Copyright 2009-2014 Stephan Falke
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
... | 28.15625 | 74 | 0.733629 |
f3e16c7d66610b5559f38172a7fd065c620808e1 | 8,224 | ml | OCaml | data/derived/comb/progs/unify/prog7409.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/prog2599.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2599.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.025316 | 148 | 0.636308 |
f3021f55ccd866c6274cfcc993cd5865bfe10c8b | 3,383 | mll | OCaml | src/scanner.mll | prakhar1989/PLT | ed47dc9409b6411e950098d57606460869c980c6 | [
"MIT"
] | 42 | 2016-05-12T00:10:26.000Z | 2022-02-02T16:14:27.000Z | src/scanner.mll | prakhar1989/JSJS | ed47dc9409b6411e950098d57606460869c980c6 | [
"MIT"
] | 8 | 2016-02-09T15:03:57.000Z | 2016-05-17T00:28:59.000Z | src/scanner.mll | prakhar1989/PLT | ed47dc9409b6411e950098d57606460869c980c6 | [
"MIT"
] | 5 | 2016-05-12T20:55:50.000Z | 2019-02-13T06:08:26.000Z | {
open Parser
open Lexing
(* increments the line number *)
let incr_lineno lexbuf =
let curr_pos = lexbuf.lex_curr_p in
lexbuf.lex_curr_p <- { curr_pos with
pos_lnum = curr_pos.pos_lnum + 1;
pos_bol = curr_pos.pos_cnum;
}
;;
}
let digit = ['0'-'9']
l... | 39.337209 | 105 | 0.276086 |
af3088115c7861885ad2d9586c41848772724e89 | 8,730 | ml | OCaml | compiler/typing.ml | takahisa/chibiml | 8a12115c66e07c1f245a516b0aa955932af591e9 | [
"MIT"
] | 6 | 2018-02-03T19:58:08.000Z | 2019-09-09T08:07:05.000Z | compiler/typing.ml | takahisa/chibiml | 8a12115c66e07c1f245a516b0aa955932af591e9 | [
"MIT"
] | 1 | 2016-12-20T07:14:01.000Z | 2016-12-30T21:43:11.000Z | compiler/typing.ml | linerlock/chibiml | 8a12115c66e07c1f245a516b0aa955932af591e9 | [
"MIT"
] | null | null | null | (*
* Chibiml
* Copyright (c) 2015-2020 Takahisa Watanabe <linerlock@outlook.com> All rights reserved.
*
* 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 wi... | 36.527197 | 119 | 0.601833 |
af0a52874ebc9461f60ac3c67c6c9da4e0752723 | 947 | mli | OCaml | src/dune/coq_stanza.mli | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 11 | 2020-07-14T13:57:02.000Z | 2020-09-05T23:50:25.000Z | src/dune/coq_stanza.mli | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2021-05-21T15:34:59.000Z | 2021-05-21T15:34:59.000Z | src/dune/coq_stanza.mli | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2020-11-25T12:01:04.000Z | 2020-11-25T12:01:04.000Z | open Import
module Buildable : sig
type t =
{ flags : Ordered_set_lang.Unexpanded.t
; libraries : (Loc.t * Lib_name.t) list (** ocaml libraries *)
; theories : (Loc.t * Coq_lib_name.t) list (** coq libraries *)
; loc : Loc.t
}
end
module Extraction : sig
type t =
{ extracted_modules : st... | 19.326531 | 68 | 0.61246 |
af12d9b80fce6b9a3c1fb2111be795e8de581091 | 3,992 | ml | OCaml | vendor/dune/src/stdune/pp.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/stdune/pp.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/stdune/pp.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | module List = Dune_caml.ListLabels
module String = Dune_caml.StringLabels
type +'a t =
| Nop
| Seq of 'a t * 'a t
| Concat of 'a t * 'a t list
| Box of int * 'a t
| Vbox of int * 'a t
| Hbox of 'a t
| Hvbox of int * 'a t
| Hovbox of int * 'a t
| Verbatim of string
| Char of char
| Break of int * ... | 28.312057 | 76 | 0.588427 |
af04d3f353ccbee83c7f20d517e5a8c7d7231f75 | 979 | ml | OCaml | data/sp14/3203.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/3203.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/3203.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ x) in
let base = h in let l = t in List.fold_left f base l;;
let stringOfList f l = List.map sepConcat "";;
(* fix
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ ... | 14.61194 | 60 | 0.47906 |
af08313fd043e4288aefea3bdaa30affc73da5a6 | 1,458 | ml | OCaml | src_top/herd_based/litmus/safer.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 37 | 2019-01-14T13:08:24.000Z | 2022-02-14T20:57:12.000Z | src_top/herd_based/litmus/safer.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 10 | 2019-07-26T09:34:35.000Z | 2021-12-31T20:17:32.000Z | src_top/herd_based/litmus/safer.ml | VarunKoyyalagunta/rmem | 9de95224f6293acb3cd6022471219a0a01b9b260 | [
"BSD-2-Clause"
] | 12 | 2019-02-13T17:50:41.000Z | 2021-12-31T19:08:00.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 41.657143 | 78 | 0.419067 |
f324985079f423a855fa8b73b3d3304be6d29e77 | 5,994 | ml | OCaml | src/dune_cmd.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | src/dune_cmd.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | src/dune_cmd.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | (* Copyright (c) 2018 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | 37 | 79 | 0.604605 |
f3273ff69cdb16e4d1535b104a4c2827d3857a93 | 8,247 | ml | OCaml | data/derived/comb/progs/unify/prog5638.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/prog0758.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0758.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.098101 | 148 | 0.684006 |
af130664efc630e72deeb7a426d67c4169318fb9 | 43 | ml | OCaml | data/derived/comb/progs/unify/prog5187.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/prog0279.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0279.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let _ = List.map ((+), [1; 2; 3; 4; 4]);;
| 14.333333 | 41 | 0.372093 |
f3e8f219a8ca89a7bb9eeb56b6a470d44a130811 | 2,513 | mli | OCaml | src/util/IArray.mli | Drup/sidekick | 33a784316276c0d81ec08c4ce583e86893fc690b | [
"Apache-2.0"
] | null | null | null | src/util/IArray.mli | Drup/sidekick | 33a784316276c0d81ec08c4ce583e86893fc690b | [
"Apache-2.0"
] | null | null | null | src/util/IArray.mli | Drup/sidekick | 33a784316276c0d81ec08c4ce583e86893fc690b | [
"Apache-2.0"
] | null | null | null |
(* This file is free software. See file "license" for more details. *)
type 'a t = private 'a array
(** Array of values of type 'a. The underlying type really is
an array, but it will never be modified.
It should be covariant but OCaml will not accept it. *)
val empty : 'a t
val is_empty : _ t -> bool
va... | 23.055046 | 70 | 0.506168 |
af17c3a1412bfa353a1c52585b9adf50d947e09d | 3,641 | ml | OCaml | infer/src/unit/schedulerTests.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/unit/schedulerTests.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/unit/schedulerTests.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"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! IStd
module F = Format
(** mocks for creating CFG's from adjacency lists *)
module MockNode = struct
type t = int
type id = i... | 26.576642 | 97 | 0.609997 |
af16111fd8c928d4c917e4a1db5aafc8e7f0b51e | 130,595 | ml | OCaml | infer/src/base/Config.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 1 | 2021-07-26T18:23:14.000Z | 2021-07-26T18:23:14.000Z | infer/src/base/Config.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | null | null | null | infer/src/base/Config.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"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
(** Configuration values: either constant, determined at compile time, or se... | 35.613581 | 172 | 0.730327 |
af2e6d3bf8c8a8cbe33a06cfb7e614cca44f1473 | 4,635 | ml | OCaml | hphp/hack/test/integration_ml/ide/test_ide_utils.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-02-04T22:07:59.000Z | 2021-02-04T22:07:59.000Z | hphp/hack/test/integration_ml/ide/test_ide_utils.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/ide/test_ide_utils.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | open Integration_test_base_types
open ServerEnv
module Test = Integration_test_base
let errors_to_string errors =
List.fold_left begin fun str error ->
str ^ Errors.(error |> to_absolute |> to_string)
end "" @@ errors
let init_disk_changes = [
"base.php",
"<?hh // strict
abstract class Base {
public functi... | 26.791908 | 80 | 0.690615 |
f3a72da3cc00d7efefee2a6861cdc7b874558925 | 3,804 | ml | OCaml | hphp/hack/src/client/clientStart.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientStart.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientStart.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.
*
*)
module SMUtil... | 31.438017 | 80 | 0.67429 |
f3dc7f75076b4f61c1dc70941645167dd2d7494c | 1,339 | mli | OCaml | src/graphql_compiler/result_decoder.mli | baransu/graphql_ppx_re | eb8648d1552fbc11989b9197ef41a7a958b2545f | [
"MIT"
] | 60 | 2019-08-11T07:11:16.000Z | 2020-01-15T13:24:06.000Z | src/graphql_compiler/result_decoder.mli | reasonml-community/graphql_ppx | eb8648d1552fbc11989b9197ef41a7a958b2545f | [
"MIT"
] | 90 | 2020-01-23T18:15:26.000Z | 2020-06-18T01:05:42.000Z | src/graphql_compiler/result_decoder.mli | teamwalnut/graphql-ppx | 4a1fbfebf99a3b291bf647a49e069eba1f471f52 | [
"MIT"
] | 13 | 2019-10-07T04:47:32.000Z | 2020-01-04T20:00:33.000Z | type query_config = {
schema : string option;
records : bool option;
objects : bool option;
inline : bool option;
template_tag : string option;
template_tag_location : string option;
template_tag_import : string option;
template_tag_return_type : string option;
tagged_template : bool option;
templat... | 32.658537 | 81 | 0.754294 |
af495e90e7acb4087c8913beaa4b54593a446158 | 9,249 | ml | OCaml | upstream/ocaml_412/parsing/builtin_attributes.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | upstream/ocaml_412/parsing/builtin_attributes.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | upstream/ocaml_412/parsing/builtin_attributes.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 32.114583 | 80 | 0.571521 |
f39d3dea95ab38d2fbd89da0dae76db7a6a8a443 | 718 | ml | OCaml | src/hack_forked/utils/collections/sSet.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/hack_forked/utils/collections/sSet.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/hack_forked/utils/collections/sSet.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2019-05-23T07:00:41.000Z | 2019-05-23T07:00:41.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.
*)
include Set.Make (StringKey)
let pp fmt sset =
Format.fprintf fmt "@[<2>{";
let elements = elements sset in
(match elements ... | 22.4375 | 66 | 0.597493 |
f39f0b60a66e77c53ed2f6d81e38c61b40c40811 | 627 | ml | OCaml | bootstrap/test/basis/codepoint/test_conversion.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2021-08-13T04:54:39.000Z | 2021-08-13T04:54:39.000Z | bootstrap/test/basis/codepoint/test_conversion.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2020-02-14T19:21:40.000Z | 2020-02-14T19:21:40.000Z | bootstrap/test/basis/codepoint/test_conversion.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | null | null | null | open! Basis.Rudiments
open! Basis
open Codepoint
open Format
let pp_x ppf cp =
Format.fprintf ppf "%a" Uns.pp_x (extend_to_uns cp)
let test () =
let rec fn = function
| [] -> ()
| x :: xs' -> begin
let i = x in
let t = trunc_of_uns (Uns.bits_of_sint i) in
let u = extend_to_uns t in... | 25.08 | 95 | 0.599681 |
f3e62279a193aed25163dcc0a523ec67eb8bbc2f | 4,324 | ml | OCaml | src/ocaml/typer_404/raw_compat.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_404/raw_compat.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_404/raw_compat.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby... | 34.870968 | 79 | 0.635291 |
af04c421d2f0df0716e70e62f4532d9c3c17c0c6 | 5,035 | ml | OCaml | src_top/concurrency_model.ml | kaist-cp/rmem-persistency | c1a69466300442c4951862d8681775732e825a80 | [
"BSD-2-Clause"
] | 1 | 2022-02-13T21:26:28.000Z | 2022-02-13T21:26:28.000Z | src_top/concurrency_model.ml | kaist-cp/rmem-persistency | c1a69466300442c4951862d8681775732e825a80 | [
"BSD-2-Clause"
] | 1 | 2021-03-31T08:07:04.000Z | 2021-03-31T08:07:04.000Z | src_top/concurrency_model.ml | kaist-cp/rmem-persistency | c1a69466300442c4951862d8681775732e825a80 | [
"BSD-2-Clause"
] | null | null | null | (*===============================================================================*)
(* *)
(* rmem executable model *)
(* ===================== ... | 33.125 | 113 | 0.540417 |
f39aa454fc470f5aa74b93d6468f97289de1f685 | 1,755 | ml | OCaml | libraries/ec2/lib/createVpcPeeringConnection.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createVpcPeeringConnection.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createVpcPeeringConnection.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = CreateVpcPeeringConnectionRequest.t
type output = CreateVpcPeeringConnectionResult.t
type error = Errors_internal.t
let service = "ec2"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service regio... | 27.857143 | 88 | 0.621652 |
f31a2378a82c10964eba1868d140ba0d0aa919d9 | 11,682 | ml | OCaml | src/core/CCSexp.ml | grayswandyr/ocaml-containers | c9f659eb4c79bab124a5e00085bf88a954f76672 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCSexp.ml | grayswandyr/ocaml-containers | c9f659eb4c79bab124a5e00085bf88a954f76672 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCSexp.ml | grayswandyr/ocaml-containers | c9f659eb4c79bab124a5e00085bf88a954f76672 | [
"BSD-2-Clause"
] | null | null | null | (* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Simple S-expression parsing/printing} *)
open CCShims_
type 'a or_error = ('a, string) result
type 'a gen = unit -> 'a option
module type SEXP = CCSexp_intf.SEXP
module type S = CCSexp_intf.S
let equal_string (a : str... | 28.915842 | 102 | 0.548108 |
f3595327e3a63351ae099d212781702ad12e2d48 | 196 | ml | OCaml | alds/alds1_01_b.ml | r6eve/oaoj | b3225208d6a6260e2d6219ca12fa3f44583ec2c2 | [
"BSL-1.0"
] | null | null | null | alds/alds1_01_b.ml | r6eve/oaoj | b3225208d6a6260e2d6219ca12fa3f44583ec2c2 | [
"BSL-1.0"
] | null | null | null | alds/alds1_01_b.ml | r6eve/oaoj | b3225208d6a6260e2d6219ca12fa3f44583ec2c2 | [
"BSL-1.0"
] | null | null | null | let gcd (m, n) =
let rec doit x y =
if y <= 0 then x else doit y (x mod y) in
doit (max m n) (min m n)
let () =
Scanf.scanf "%d %d\n" (fun a b -> (a, b)) |> gcd |> Printf.printf "%d\n"
| 24.5 | 74 | 0.505102 |
f388ece7b117200eaa9a06312085431e8e285404 | 7,642 | ml | OCaml | server/operations.ml | tholiao/pyre-check | f5705fb5dae6a78623a058e5972461e89e283634 | [
"MIT"
] | null | null | null | server/operations.ml | tholiao/pyre-check | f5705fb5dae6a78623a058e5972461e89e283634 | [
"MIT"
] | null | null | null | server/operations.ml | tholiao/pyre-check | f5705fb5dae6a78623a058e5972461e89e283634 | [
"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 Pyre
open Path.AppendOperator
open Network
open State
open Service
type version_mismatch = {
server_version: string;
expe... | 33.964444 | 97 | 0.664878 |
d2ed2ec79a4830dcb72cc4b9e710a7bd91eb1ec6 | 507 | ml | OCaml | data/sp14/1979.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1979.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1979.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec digitsOfInt n =
if n < 0 then [] else [digitsOfInt (n / 10) (n mod 10)];;
(* fix
let rec digitsOfInt n =
if n < 0
then []
else (match n with | 0 -> [] | _ -> (digitsOfInt (n / 10)) @ [n mod 10]);;
*)
(* changed spans
(3,25)-(3,58)
match n with
| 0 -> []
| _ -> digitsOfInt (n / 10) @ [n mod 10]
Cas... | 15.84375 | 79 | 0.536489 |
f3add39d93cddda6f9a0218953f88433953b4813 | 129 | ml | OCaml | src/refmterr/errs/let_without_in_in_body.ml | prometheansacrifice/reason-native | a33f1528a6dd86c67f365e226c81312733181c87 | [
"MIT"
] | 439 | 2018-11-30T01:07:26.000Z | 2021-01-04T16:18:22.000Z | src/refmterr/errs/let_without_in_in_body.ml | SNU-Programming-Tools/reason-native | 0ed854f986256e52e59aeecfa90e9af60f105b15 | [
"MIT"
] | 190 | 2018-11-30T00:40:08.000Z | 2020-12-05T01:01:07.000Z | src/refmterr/errs/let_without_in_in_body.ml | SNU-Programming-Tools/reason-native | 0ed854f986256e52e59aeecfa90e9af60f105b15 | [
"MIT"
] | 35 | 2018-12-04T01:35:16.000Z | 2020-11-13T03:29:43.000Z | let () =
let a = 5;
print_int a
(* let binding in body needs to be let ... in ... *)
let () =
let a = 5 in
print_int a
| 12.9 | 52 | 0.527132 |
f3ff10dfbbe6ea533eeefc2ca292ea47fcb0a7b9 | 3,640 | ml | OCaml | facebook-clang-plugins/clang-ocaml/clang_ast_main.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | facebook-clang-plugins/clang-ocaml/clang_ast_main.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | facebook-clang-plugins/clang-ocaml/clang_ast_main.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | 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 root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module Poin... | 32.792793 | 145 | 0.754396 |
af1d937531029cb2dd97e72abb5d3bbb5508604f | 1,338 | mli | OCaml | util/poset.mli | s-falke/sail2 | 14583d1bcff7d301c89f9ce363adffbf3f1e2590 | [
"Apache-2.0"
] | 2 | 2015-02-21T00:47:09.000Z | 2018-02-07T23:33:04.000Z | util/poset.mli | s-falke/sail2 | 14583d1bcff7d301c89f9ce363adffbf3f1e2590 | [
"Apache-2.0"
] | null | null | null | util/poset.mli | s-falke/sail2 | 14583d1bcff7d301c89f9ce363adffbf3f1e2590 | [
"Apache-2.0"
] | null | null | null | (**
Interface of partially ordered sets.
@author Stephan Falke
Copyright 2009-2014 Stephan Falke
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/LIC... | 31.116279 | 100 | 0.695815 |
f35a624f29ba049d63c97dc7c4b0672351f74402 | 53,563 | ml | OCaml | analysis/test/resolutionTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-08-08T16:01:55.000Z | 2020-08-08T16:01:55.000Z | analysis/test/resolutionTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 4 | 2022-02-15T02:42:33.000Z | 2022-02-28T01:30:07.000Z | analysis/test/resolutionTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-11-22T12:08:51.000Z | 2020-11-22T12:08:51.000Z | (* 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 Analysis
open Ast
open Pyre
open Statement
open Test
open WeakenMutableLiterals
let test_set_local context =
le... | 36.487057 | 102 | 0.66391 |
af157dd34109e9fd8962cc5d397a6e7cc9c7e8f5 | 19,679 | ml | OCaml | src/omod_bin.ml | MdeLv/omod | 56663bdbd33590a68d9046928d2040dbf889120d | [
"0BSD"
] | 15 | 2018-06-13T15:33:01.000Z | 2021-11-04T10:04:38.000Z | src/omod_bin.ml | MdeLv/omod | 56663bdbd33590a68d9046928d2040dbf889120d | [
"0BSD"
] | 13 | 2018-06-13T16:20:09.000Z | 2022-02-14T17:50:25.000Z | src/omod_bin.ml | MdeLv/omod | 56663bdbd33590a68d9046928d2040dbf889120d | [
"0BSD"
] | 2 | 2018-08-01T20:10:12.000Z | 2020-05-03T11:58:45.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2018 The omod programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
... | 35.078431 | 80 | 0.617308 |
f33cfb3ac8b629e699f40928e42f0b5c7653d24a | 23,348 | ml | OCaml | src/parser/ast.ml | mfurr/Diamondback-Ruby | f70ea254a9711c0ffbb12103f3ca397c2d50f0d4 | [
"BSD-3-Clause"
] | 13 | 2015-01-25T14:14:56.000Z | 2019-04-21T20:32:57.000Z | src/parser/ast.ml | mfurr/Diamondback-Ruby | f70ea254a9711c0ffbb12103f3ca397c2d50f0d4 | [
"BSD-3-Clause"
] | 1 | 2017-07-25T21:51:14.000Z | 2018-11-11T09:07:23.000Z | src/parser/ast.ml | mfurr/Diamondback-Ruby | f70ea254a9711c0ffbb12103f3ca397c2d50f0d4 | [
"BSD-3-Clause"
] | null | null | null |
type pos = Lexing.position
type string_contents =
| StrChars of string
| StrExpr of expr
and interp_string = string_contents list
and formal_param =
| Formal_id of expr
| Formal_amp of string
| Formal_star of string (* as in *x *)
| Formal_rest (* just '*' *)
| Formal_tuple of formal_param list
| ... | 30.520261 | 89 | 0.569042 |
f389a9491e0226ed8bb0ca38b5fc16932d978ae5 | 67 | ml | OCaml | azure/hol-light-nat/hol_core.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 125 | 2016-03-22T22:29:23.000Z | 2022-02-15T05:43:43.000Z | azure/hol-light-nat/hol_core.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 4 | 2015-10-13T17:38:34.000Z | 2020-11-26T19:54:19.000Z | azure/hol-light-nat/hol_core.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 9 | 2017-06-21T08:48:56.000Z | 2021-05-13T02:07:27.000Z | include Parser
include Define
print_endline "hol_core.ml loaded"
| 11.166667 | 34 | 0.820896 |
f3769b74a7984868cf09b021bceea59b4b04f493 | 2,559 | ml | OCaml | stdlib/char.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | stdlib/char.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | stdlib/char.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 33.671053 | 76 | 0.399375 |
f3efb36a1999a119faad5a28eca4482042631ef1 | 138 | ml | OCaml | data/derived/comb/progs/unify/prog5927.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/prog1060.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1060.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) = let (b',c') = f b in if c' then wwhile (f, b') else b';;
let fixpoint (f,b) = wwhile (((f b), ((f b) = b)), b);;
| 27.6 | 79 | 0.492754 |
f3d063a3f3f1114d1960923534fb3ed29552d4cd | 4,174 | ml | OCaml | test/tests/autotest/getsocklistening.ml | rems-project/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | 34 | 2018-02-26T20:37:44.000Z | 2022-02-24T01:49:55.000Z | test/tests/autotest/getsocklistening.ml | PeterSewell/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | test/tests/autotest/getsocklistening.ml | PeterSewell/netsem | 0b02450eee334fc42f74ad3da09d3ce1a0698a48 | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2015-04-24T15:26:34.000Z | 2017-12-12T23:39:13.000Z | (* ---------------------------------------------------------------------- *)
(* Netsem Tthee Automated Tests Code: getsocklistening() *)
(* Steve Bishop - Created 20030626 *)
(* $Id: getsocklistening.ml,v 1.13 2006/06/07 11:52:45 amgb2 Exp $ *)
(* ----------------... | 32.107692 | 105 | 0.612841 |
af446aed834d8383605c37ff0e144342ec448ba8 | 2,009 | ml | OCaml | config.ml | avsm/spamoracle | 0b0a417f79bdf46dcb471345cdc21d78405b3d5d | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 16 | 2016-12-28T15:42:35.000Z | 2022-01-06T10:58:50.000Z | config.ml | avsm/spamoracle | 0b0a417f79bdf46dcb471345cdc21d78405b3d5d | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2019-11-09T07:32:24.000Z | 2020-12-12T18:39:12.000Z | config.ml | avsm/spamoracle | 0b0a417f79bdf46dcb471345cdc21d78405b3d5d | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2021-05-23T21:25:04.000Z | 2022-01-04T14:07:29.000Z | (* Configurable parameters *)
let database_name =
ref (try Filename.concat (Sys.getenv "HOME") ".spamoracle.db"
with Not_found -> ".spamoracle.db")
let html_add_tags = ref false
let html_tag_attr = ref (Str.regexp_case_fold
"a/href\\|img/src\\|img/alt\\|frame/src\\|font/face\\|font/color")
let mail_heade... | 26.786667 | 68 | 0.769039 |
af0751cdc7750f6cf7d4e66a566e2711fb2351c9 | 5,403 | mli | OCaml | lib/Sugar.mli | danielmercier/ocamlformat | 62d702a1b2cdc05040234ed920fcf1bd6203e06b | [
"MIT"
] | null | null | null | lib/Sugar.mli | danielmercier/ocamlformat | 62d702a1b2cdc05040234ed920fcf1bd6203e06b | [
"MIT"
] | 4 | 2019-05-02T01:31:10.000Z | 2022-01-26T13:59:27.000Z | lib/Sugar.mli | danielmercier/ocamlformat | 62d702a1b2cdc05040234ed920fcf1bd6203e06b | [
"MIT"
] | 1 | 2018-11-22T21:37:51.000Z | 2018-11-22T21:37:51.000Z | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 36.02 | 77 | 0.614103 |
f3069c3440d7b0df63c63a95415a22da3e41f678 | 6,471 | ml | OCaml | src/typing/repos_cache.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | 1 | 2021-03-27T07:05:32.000Z | 2021-03-27T07:05:32.000Z | src/typing/repos_cache.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | 2 | 2021-09-02T16:30:33.000Z | 2021-09-02T16:30:34.000Z | src/typing/repos_cache.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"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.
*)
(** Reposition cache to prevent repositioning loops
Repositioning improves error messages by changing reasons to positions close... | 33.184615 | 80 | 0.656313 |
f3cf6a298abd0cafac8f6a19192a9541da966942 | 498 | ml | OCaml | benchmarks/C/nat/sol234.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/nat/sol234.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/nat/sol234.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | (* problem 2*)
type nat = ZERO | SUCC of nat
let rec natadd : nat -> nat -> nat
= fun n1 n2 ->
match n2 with
|ZERO -> n1
|SUCC ZERO -> SUCC(n1)
|SUCC(n) -> SUCC(natadd n1 n);;
let rec natmul : nat -> nat -> nat
= fun n1 n2 ->
match n2 with
|ZERO -> ZERO
|SUCC ZERO -> n1
|SUCC(n) -> nat... | 20.75 | 41 | 0.536145 |
af2a27b5a2ffe6c8a1eb404ae6d18f2cfa61233f | 1,794 | ml | OCaml | vendor/base/test/test_int64.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 641 | 2016-09-16T15:51:06.000Z | 2022-03-31T19:30:56.000Z | vendor/base/test/test_int64.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 121 | 2016-09-17T07:30:00.000Z | 2022-03-03T21:00:03.000Z | vendor/base/test/test_int64.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 95 | 2016-09-16T23:31:38.000Z | 2022-03-19T01:35:06.000Z | open! Import
open! Int64
let%expect_test "hash coherence" =
check_int_hash_coherence [%here] (module Int64);
[%expect {| |}]
;;
let numbers =
[ 0x0000_0000_0000_1020L
; 0x0000_0000_0011_2233L
; 0x0000_0000_1122_3344L
; 0x0000_0011_2233_4455L
; 0x0000_1122_3344_5566L
; 0x0011_2233_4455_6677L
; 0x1122... | 24.575342 | 61 | 0.716276 |
f3d9a6527a7cc6a8c92dbfc2768a96b70c5538a1 | 1,832 | ml | OCaml | day13/part2.ml | fsouza/aoc-2020 | 9067f07e62b2fb0857fbdba4a440d8742e3399c3 | [
"0BSD"
] | 4 | 2020-12-03T04:40:54.000Z | 2020-12-09T12:42:19.000Z | day13/part2.ml | fsouza/aoc-2020 | 9067f07e62b2fb0857fbdba4a440d8742e3399c3 | [
"0BSD"
] | 2 | 2020-12-15T04:12:03.000Z | 2021-01-13T04:04:18.000Z | day13/part2.ml | fsouza/aoc-2020 | 9067f07e62b2fb0857fbdba4a440d8742e3399c3 | [
"0BSD"
] | null | null | null | open StdLabels
let read_input () =
let rec read_input acc =
try
let line = read_line () in
read_input (line :: acc)
with End_of_file -> acc |> List.rev
in
read_input []
let parse_input = function
| [ first_line; second_line ] ->
( int_of_string first_line,
String.split_on_cha... | 31.050847 | 79 | 0.650109 |
d2ecbf37cc5cb9ce2f34a8cd9a4671ada0994ae5 | 7,639 | ml | OCaml | src/test/testDriveV2Model.ml | astrada/gapi-ocaml | e3a6b5c52b25e727bd7d06df1c820f722aff7b2f | [
"MIT"
] | 68 | 2015-01-21T09:19:55.000Z | 2022-02-25T03:17:19.000Z | src/test/testDriveV2Model.ml | astrada/gapi-ocaml | e3a6b5c52b25e727bd7d06df1c820f722aff7b2f | [
"MIT"
] | 25 | 2015-05-16T23:44:58.000Z | 2022-01-14T15:13:22.000Z | src/test/testDriveV2Model.ml | astrada/gapi-ocaml | e3a6b5c52b25e727bd7d06df1c820f722aff7b2f | [
"MIT"
] | 17 | 2015-05-17T23:35:17.000Z | 2022-02-28T20:45:03.000Z | open OUnit
open GapiDriveV2Model
let test_parse_file () =
let file_json = Yojson.Safe.from_file "test_data/test_drive_file.json" in
let tree = GapiJson.json_to_data_model file_json in
let file = File.of_data_model tree in
let tree' = File.to_data_model file in
let json = GapiJson.data_model_to_json tree' in
... | 44.935294 | 79 | 0.796178 |
f3b644cfe3fde60838f9b6d3611b32c993951e94 | 7,641 | ml | OCaml | src/lib/Srp.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 23 | 2020-03-05T23:45:04.000Z | 2022-01-20T10:28:44.000Z | src/lib/Srp.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 31 | 2020-02-27T18:46:35.000Z | 2022-01-22T06:21:40.000Z | src/lib/Srp.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | null | null | null | open Nv_lang
open Nv_datastructures
open Nv_solution
open Nv_utils
open Nv_interpreter
open Nv_lang.Syntax
open Nv_lang.Collections
open OCamlUtils
type srp =
{ graph : AdjGraph.t
; trans : Syntax.closure
; merge : Syntax.closure
; assertion : Syntax.closure option
}
(******************)
(* SRP Simulation *... | 35.539535 | 110 | 0.670069 |
f3374998fc5215654cdbf41f18f97df1e6cd9f3d | 138 | ml | OCaml | examples/fib.ml | qianxi0410/monkey-lang | 81d63b57b07fdb7004d59d4fe19461b31092c894 | [
"MIT"
] | null | null | null | examples/fib.ml | qianxi0410/monkey-lang | 81d63b57b07fdb7004d59d4fe19461b31092c894 | [
"MIT"
] | 7 | 2021-09-14T11:46:27.000Z | 2021-10-18T06:56:49.000Z | examples/fib.ml | qianxi0410/monkey-lang | 81d63b57b07fdb7004d59d4fe19461b31092c894 | [
"MIT"
] | null | null | null | let fibonacci = fn(x) {
if (x <= 1) {
x
} else {
fibonacci(x - 1) + fibonacci(x - 2);
}
};
fibonacci(10); | 15.333333 | 44 | 0.413043 |
af2063716daa8ffcb53e2582a4828d451c1053dd | 6,765 | ml | OCaml | data/derived/comb/progs/unify/prog8277.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/prog3487.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3487.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs =
match xs with
[] -> 0
| h::t -> h + sumList(t)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
*)
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9; 11]... | 24.247312 | 94 | 0.635033 |
af4053862731d295040b76e6774f2d03f83cbdbb | 28,017 | ml | OCaml | src/proto_006_PsCARTHA/lib_client_commands/client_proto_programs_commands.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_006_PsCARTHA/lib_client_commands/client_proto_programs_commands.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_006_PsCARTHA/lib_client_commands/client_proto_programs_commands.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> *)
... | 36.480469 | 83 | 0.533355 |
f3ff87ebc11ad6151f39aeb569d080747d078b11 | 6,002 | ml | OCaml | hack_parallel/hack_parallel/utils/pos_embedded.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | hack_parallel/hack_parallel/utils/pos_embedded.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | hack_parallel/hack_parallel/utils/pos_embedded.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | (** Positions embedded with full position info inside its
* data structure. See "type 'a pos"
*
* Note: This module can only be used with the Lexbuf Pos_source
* module, as it will not compile with other Pos_source modules. So,
* when choosing a different Pos module, you must also choose its
* compatible Pos_sour... | 32.619565 | 81 | 0.714928 |
af1777cc466574aac98a121c584a52e575360cad | 36,713 | ml | OCaml | lib/kernel/matchers/omega.ml | mseri/comby | bb8a9de5a5812ef799f8a3787b8b44c6da6fc8d1 | [
"Apache-2.0"
] | null | null | null | lib/kernel/matchers/omega.ml | mseri/comby | bb8a9de5a5812ef799f8a3787b8b44c6da6fc8d1 | [
"Apache-2.0"
] | null | null | null | lib/kernel/matchers/omega.ml | mseri/comby | bb8a9de5a5812ef799f8a3787b8b44c6da6fc8d1 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Angstrom
open Parser
open Types
type omega_match_production =
{ offset : int
; identifier : string
; text : string
}
[@@deriving yojson]
type production =
| Unit
| String of string
| Template_string of string
| Hole of hole
| Match of omega_match_production
let configuration... | 39.948857 | 130 | 0.557105 |
af30f51cb769cf7302ec18e7b16c9a95d1f0d52b | 3,737 | ml | OCaml | src/GenType.ml | vknez/genType | e7dc0aa97157a3e9b6cad9180547c4168f8e1a67 | [
"MIT"
] | 428 | 2018-10-02T08:15:16.000Z | 2020-05-25T06:20:02.000Z | src/GenType.ml | vknez/genType | e7dc0aa97157a3e9b6cad9180547c4168f8e1a67 | [
"MIT"
] | 255 | 2018-10-02T09:30:07.000Z | 2020-05-26T18:40:41.000Z | src/GenType.ml | vknez/genType | e7dc0aa97157a3e9b6cad9180547c4168f8e1a67 | [
"MIT"
] | 23 | 2018-10-04T07:46:59.000Z | 2020-05-15T17:32:49.000Z | open GenTypeCommon
let version = Version.version
let signFile s = s
type cliCommand = Add of string | Clean | NoOp | Rm of string list
let cli () =
let bsVersion = ref None in
let cliCommand = ref NoOp in
let setBsVersion s = bsVersion := Some s in
let usage = "genType version " ^ version in
let versionAn... | 33.972727 | 82 | 0.584961 |
af43662b31eaeea7f2c41bde6050bac94457ca6d | 429 | mll | OCaml | dypgen-20070627/demos/calc_nested_rule/calc_lexer.mll | rleer/diamondback-ruby | 5df2ff2eac022d5c6a82250810e1169851546dee | [
"BSD-3-Clause"
] | 77 | 2017-07-26T18:25:05.000Z | 2019-05-24T13:44:27.000Z | dypgen-20070627/demos/calc_nested_rule/calc_lexer.mll | rleer/diamondback-ruby | 5df2ff2eac022d5c6a82250810e1169851546dee | [
"BSD-3-Clause"
] | 3 | 2017-10-23T08:28:14.000Z | 2017-10-23T18:53:49.000Z | dypgen-20070627/demos/calc_nested_rule/calc_lexer.mll | rleer/diamondback-ruby | 5df2ff2eac022d5c6a82250810e1169851546dee | [
"BSD-3-Clause"
] | 4 | 2017-10-23T05:18:29.000Z | 2020-01-28T12:26:36.000Z | {
open Calc_parser
exception Eof
}
rule token = parse
[' ' '\t'] { token lexbuf } (* skip blanks *)
| ['\n' ] { `EOL }
| ['0'-'9']+ as lxm { `INT(int_of_string lxm) }
| '+' { `PLUS }
| '-' { `MINUS }
| '*' { `TIMES }
| '/' { `D... | 26.8125 | 60 | 0.314685 |
f3de28e82bbeaad1f7e1d1c33dff537b41a5f97a | 50,025 | ml | OCaml | src/typing/matcher.ml | nadako/haxe | 2561756669d7e21c4fae1b76fb2db5cceecf6f0d | [
"MIT"
] | 1 | 2021-01-19T07:06:17.000Z | 2021-01-19T07:06:17.000Z | src/typing/matcher.ml | nadako/haxe | 2561756669d7e21c4fae1b76fb2db5cceecf6f0d | [
"MIT"
] | 2 | 2016-04-15T20:13:51.000Z | 2020-02-27T00:29:35.000Z | src/typing/matcher.ml | nadako/haxe | 2561756669d7e21c4fae1b76fb2db5cceecf6f0d | [
"MIT"
] | null | null | null | (*
The Haxe Compiler
Copyright (C) 2005-2017 Haxe Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This prog... | 34.715475 | 187 | 0.633003 |
f39f449fc78f23cd6601c9d512689da4afdea0f3 | 1,133 | ml | OCaml | interprocedural_analyses/dead_store/deadStoreResult.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 5 | 2019-02-14T19:46:47.000Z | 2020-01-16T05:48:45.000Z | interprocedural_analyses/dead_store/deadStoreResult.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 4 | 2022-02-15T02:42:33.000Z | 2022-02-28T01:30:07.000Z | interprocedural_analyses/dead_store/deadStoreResult.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 2 | 2019-02-14T19:46:23.000Z | 2020-07-13T03:53:04.000Z | (* 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 Interprocedural
module ResultArgument = struct
type result = string
type call_model = int [@@deriving show]
let name ... | 22.215686 | 70 | 0.64872 |
af571674858c237162b40a8266a855f13c920865 | 6,788 | ml | OCaml | server/test/connectionsTest.ml | ishaanthakur/pyre-check | b0f12f8a3e6a817a81d87feae301c96d57d167b9 | [
"MIT"
] | null | null | null | server/test/connectionsTest.ml | ishaanthakur/pyre-check | b0f12f8a3e6a817a81d87feae301c96d57d167b9 | [
"MIT"
] | null | null | null | server/test/connectionsTest.ml | ishaanthakur/pyre-check | b0f12f8a3e6a817a81d87feae301c96d57d167b9 | [
"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
let ( !+ ) descriptor = Unix.File_descr.of_int descriptor
let connections persistent_clients =
let persistent_clien... | 39.465116 | 100 | 0.742192 |
af49ea40799894898ba2e7422f22163fe4071d85 | 144 | mli | OCaml | gospel/test/ocaml-testsuite/unclosed_sig.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | gospel/test/ocaml-testsuite/unclosed_sig.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | gospel/test/ocaml-testsuite/unclosed_sig.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | (* TEST
* setup-ocamlc.byte-build-env
** ocamlc.byte
ocamlc_byte_exit_status = "2"
*** check-ocamlc.byte-output
*)
module M : sig
type t = T
| 14.4 | 29 | 0.680556 |
f3ca9ef6743184b906d39b94d7af271ce19bca44 | 213 | ml | OCaml | src/common/flow_version.ml | Brianzchen/flow | 1c69290caca15594f0c1ee652581d8ec1bce4b47 | [
"MIT"
] | null | null | null | src/common/flow_version.ml | Brianzchen/flow | 1c69290caca15594f0c1ee652581d8ec1bce4b47 | [
"MIT"
] | null | null | null | src/common/flow_version.ml | Brianzchen/flow | 1c69290caca15594f0c1ee652581d8ec1bce4b47 | [
"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 version = "0.163.0"
| 23.666667 | 66 | 0.699531 |
af5a8f9e1226979ec789fe58810ff6a07160edc7 | 11,387 | ml | OCaml | infer/src/checkers/liveness.ml | SubratSahai/infer | b57ccc3364239f94f818f3f6b4bc9baf64f3b909 | [
"MIT"
] | 1 | 2021-01-29T07:47:59.000Z | 2021-01-29T07:47:59.000Z | infer/src/checkers/liveness.ml | yunjeong-lee/infer | bf87088a35ddf3f73564e4d67583411b710aff01 | [
"MIT"
] | null | null | null | infer/src/checkers/liveness.ml | yunjeong-lee/infer | bf87088a35ddf3f73564e4d67583411b710aff01 | [
"MIT"
] | 1 | 2021-01-29T07:48:02.000Z | 2021-01-29T07:48:02.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
module L = Logging
(** backward analysis for computing set of maybe-live variables at each program po... | 37.091205 | 100 | 0.684904 |
f3754cb74f8bfdd836ffe8b452ecd78c51555da4 | 23,995 | ml | OCaml | source/interprocedural_analyses/taint/taintAnalysis.ml | r-barnes/pyre-check | d3cbb71309d3398197c7874276bff603d604b819 | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/taintAnalysis.ml | r-barnes/pyre-check | d3cbb71309d3398197c7874276bff603d604b819 | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/taintAnalysis.ml | r-barnes/pyre-check | d3cbb71309d3398197c7874276bff603d604b819 | [
"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 Core
open Pyre
open Taint
module Target = Interprocedural.Target
(* Registers the Taint analysis with the interprocedural ana... | 38.330671 | 100 | 0.643926 |
af097abd2cc0dca6125ccf8ce7d2978da320e7f9 | 394 | ml | OCaml | data/sp14/1735.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/1865.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/1865.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec digitsOfInt n =
if n <= 0 then [] else (n mod 10) :: ((digitsOfInt n) / 10);;
(* fix
let rec digitsOfInt n =
if n <= 0 then [] else (n mod 10) :: (digitsOfInt (n / 10));;
*)
(* changed spans
(3,40)-(3,62)
digitsOfInt (n / 10)
AppG [BopG EmptyG EmptyG]
*)
(* type error slice
(2,4)-(3,64)
(2,21)-(3,62... | 13.586207 | 63 | 0.530457 |
d2f0fa7c765693732737e996abd195f996c6f61c | 43,119 | ml | OCaml | src/proto_alpha/lib_protocol/delegate_storage.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/delegate_storage.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/delegate_storage.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 40.909867 | 81 | 0.685521 |
f3ac73dff041b779d44a1fc279a94621b93218ec | 2,397 | ml | OCaml | bin/top.ml | SkySkimmer/dune | 756ba9bb36302c2ff44db4106bacb21de510f9c5 | [
"MIT"
] | null | null | null | bin/top.ml | SkySkimmer/dune | 756ba9bb36302c2ff44db4106bacb21de510f9c5 | [
"MIT"
] | null | null | null | bin/top.ml | SkySkimmer/dune | 756ba9bb36302c2ff44db4106bacb21de510f9c5 | [
"MIT"
] | null | null | null | open Stdune
open Import
let doc =
"Print a list of toplevel directives for including directories and loading \
cma files."
let man =
[ `S "DESCRIPTION"
; `P
{|Print a list of toplevel directives for including directories and loading cma files.|}
; `P
{|The output of $(b,dune toplevel-init-file)... | 32.835616 | 94 | 0.607009 |
f3b510e883261c198ca8726178f536f557806e6c | 6,559 | ml | OCaml | src/splay_tree0_intf.ml | janestreet/splay_tree | 053977bd0f53b9e19c3db3e277e83760d89557bb | [
"MIT"
] | 13 | 2017-05-11T17:37:44.000Z | 2021-12-17T02:45:19.000Z | src/splay_tree0_intf.ml | janestreet/splay_tree | 053977bd0f53b9e19c3db3e277e83760d89557bb | [
"MIT"
] | null | null | null | src/splay_tree0_intf.ml | janestreet/splay_tree | 053977bd0f53b9e19c3db3e277e83760d89557bb | [
"MIT"
] | 6 | 2017-07-20T10:51:56.000Z | 2021-12-17T02:47:34.000Z | open Core
(** Splay trees are binary search trees that move recently accessed nodes closer to the
root for easier access. They have amortized O(log n)-time access for a large enough
sequence of primitive operations.
As a heuristic, a splay tree may outperform other trees such as red-black trees when
... | 33.126263 | 90 | 0.606495 |
f3be8ec54adcd4e93b5590ce7bc8530d2a3d0c9c | 2,254 | mli | OCaml | eval/sherrloc/easyocaml++/debugger/breakpoints.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/debugger/breakpoints.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/debugger/breakpoints.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Jerome Vouil... | 36.354839 | 73 | 0.514641 |
d2e5e0d66d3ac12cbfd8b364ab266431215ee324 | 8,217 | ml | OCaml | src/app/learnocaml_local_storage.ml | MartyO256/learn-ocaml | 0b7f09fb4f60894a28f8bcb6c38ee4d09a5e3f0c | [
"MIT"
] | 219 | 2017-09-21T12:24:25.000Z | 2022-03-27T03:02:29.000Z | src/app/learnocaml_local_storage.ml | MartyO256/learn-ocaml | 0b7f09fb4f60894a28f8bcb6c38ee4d09a5e3f0c | [
"MIT"
] | 355 | 2018-04-18T10:04:03.000Z | 2022-03-31T09:32:28.000Z | src/app/learnocaml_local_storage.ml | MartyO256/learn-ocaml | 0b7f09fb4f60894a28f8bcb6c38ee4d09a5e3f0c | [
"MIT"
] | 59 | 2018-04-06T12:34:55.000Z | 2022-03-22T12:36:33.000Z | (* This file is part of Learn-OCaml.
*
* Copyright (C) 2019 OCaml Software Foundation.
* Copyright (C) 2016-2018 OCamlPro.
*
* Learn-OCaml is distributed under the terms of the MIT license. See the
* included LICENSE file for details. *)
open Js_of_ocaml
open Learnocaml_data
type 'a storage_key =
{ key : stri... | 32.097656 | 77 | 0.586224 |
f3881ced81b346073d7b7aec19d5afd084ce7735 | 476 | ml | OCaml | bootstrap/test/basis/q/test_hd.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/test/basis/q/test_hd.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/test/basis/q/test_hd.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | open! Basis.Rudiments
open! Basis
open Q
let test () =
let rec fn i n t = begin
match i <= n with
| false -> ()
| true -> begin
let elm = hd t in
File.Fmt.stdout
|> Fmt.fmt "hd "
|> (pp Uns.pp) t
|> Fmt.fmt " = "
|> Uns.pp elm
|> Fmt.fmt "\n"
... | 19.04 | 37 | 0.476891 |
d2ddabe092cb53b8ffb28ea7e7e986ff5e8d6189 | 11,847 | ml | OCaml | src/loop/pipes.ml | bobot/dolmen | f2b68977003f58f82b1397dadcdf3e195ceab026 | [
"BSD-2-Clause"
] | 1 | 2021-05-18T16:21:03.000Z | 2021-05-18T16:21:03.000Z | src/loop/pipes.ml | bobot/dolmen | f2b68977003f58f82b1397dadcdf3e195ceab026 | [
"BSD-2-Clause"
] | null | null | null | src/loop/pipes.ml | bobot/dolmen | f2b68977003f58f82b1397dadcdf3e195ceab026 | [
"BSD-2-Clause"
] | 1 | 2021-05-18T16:21:55.000Z | 2021-05-18T16:21:55.000Z | (* This file is free software, part of Archsat. See file "LICENSE" for more details. *)
module Make
(Expr : Expr_intf.S)
(State : State_intf.S
with type term := Expr.term)
(Typer : Typer_intf.S
with type state := State.t
and type ty := Expr.ty
and type ty_var := Expr.ty_var
and ... | 31.846774 | 87 | 0.520723 |
af16f447c4801eb7b891db91da6a05627b7f3088 | 940 | ml | OCaml | lib/ae_db.ml | samoht/orm | bb944eaa8f93ab22cbfb7c292961d60e87fa9694 | [
"0BSD"
] | 33 | 2015-03-22T23:06:35.000Z | 2022-02-01T20:31:25.000Z | lib/ae_db.ml | samoht/orm | bb944eaa8f93ab22cbfb7c292961d60e87fa9694 | [
"0BSD"
] | 5 | 2016-05-21T07:12:07.000Z | 2021-12-05T14:41:36.000Z | lib/ae_db.ml | samoht/orm | bb944eaa8f93ab22cbfb7c292961d60e87fa9694 | [
"0BSD"
] | 5 | 2016-03-05T21:31:30.000Z | 2020-08-16T22:11:57.000Z | (*
* Copyright (c) 2010 Thomas Gazagnaire <thomas@gazagnaire.com>
* Copyright (c) 2010 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notic... | 44.761905 | 75 | 0.758511 |
f3368ff787c079e0d7fd9ccfd6d3a4567a9f9d31 | 43,079 | ml | OCaml | 2020/20/part2.ml | margusf/adventofcode | c7850e45562bbe6bcdef40e5a8c4fd17b22a4fd8 | [
"MIT"
] | null | null | null | 2020/20/part2.ml | margusf/adventofcode | c7850e45562bbe6bcdef40e5a8c4fd17b22a4fd8 | [
"MIT"
] | null | null | null | 2020/20/part2.ml | margusf/adventofcode | c7850e45562bbe6bcdef40e5a8c4fd17b22a4fd8 | [
"MIT"
] | null | null | null | (*
https://adventofcode.com/2020/day/20
*)
open Printf
open Batteries
let input_test = [
(2311, [
"..##.#..#.";
"##..#.....";
"#...##..#.";
"####.#...#";
"##.##.###.";
"##...#.###";
".#.#.#..##";
"..#....#..";
"###...#.#.";
"..###..##... | 21.5395 | 102 | 0.105945 |
af3180350447fec620c391dcd0e76c809ce1aa91 | 12,588 | mli | OCaml | src/ocaml/typer_405/typing/env.mli | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_405/typing/env.mli | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_405/typing/env.mli | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 38.030211 | 83 | 0.661662 |
d2f0662fde287466159c2e24bb53e0f66fea30ac | 24,542 | ml | OCaml | src/dune_rules/odoc.ml | tmattio/dune | a8a63c5b13ce9c016e96b16309f7d89ac25a727e | [
"MIT"
] | null | null | null | src/dune_rules/odoc.ml | tmattio/dune | a8a63c5b13ce9c016e96b16309f7d89ac25a727e | [
"MIT"
] | null | null | null | src/dune_rules/odoc.ml | tmattio/dune | a8a63c5b13ce9c016e96b16309f7d89ac25a727e | [
"MIT"
] | null | null | null | open! Dune_engine
open! Stdune
open Import
open Dune_file
open Build.O
module SC = Super_context
let ( ++ ) = Path.Build.relative
module Scope_key : sig
val of_string : Super_context.t -> string -> Lib_name.t * Lib.DB.t
val to_string : Lib_name.t -> Dune_project.t -> string
end = struct
let of_string sctx s =
... | 33.99169 | 81 | 0.631081 |
d2e785bca1c03b3049f1e29ee8b234639bfcb65f | 972 | ml | OCaml | benchmarks/C/diff/sol151.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/diff/sol151.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/diff/sol151.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 (aexp, x) -> (match aexp with
Const n -> Const 0
| Var v -> if v=x then Const 1 else Const 0
| Power (s,n) -> (if s=x then
(match n with
... | 31.354839 | 82 | 0.458848 |
f36651de11587bbea747212283bf05ab22bd7e19 | 3,793 | ml | OCaml | sihl-user/test/user.ml | emilgoldsmith/sihl | 588f9bc59b1f2d3c72fbde10bd1867caf7a1986c | [
"MIT"
] | null | null | null | sihl-user/test/user.ml | emilgoldsmith/sihl | 588f9bc59b1f2d3c72fbde10bd1867caf7a1986c | [
"MIT"
] | null | null | null | sihl-user/test/user.ml | emilgoldsmith/sihl | 588f9bc59b1f2d3c72fbde10bd1867caf7a1986c | [
"MIT"
] | null | null | null | open Lwt.Syntax
open Alcotest_lwt
let equal u1 u2 =
String.equal
(Format.asprintf "%a" Sihl_facade.User.pp u1)
(Format.asprintf "%a" Sihl_facade.User.pp u2)
;;
let alcotest = Alcotest.testable Sihl_facade.User.pp equal
let json_serialization _ () =
let* () = Sihl_core.Cleaner.clean_all () in
let* user ... | 25.979452 | 79 | 0.664909 |
d2fe5f4974584e17d4e69a561aaebbfb3e30acb6 | 7,568 | ml | OCaml | data/derived/comb/progs/unify/prog1199.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/prog1199.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1199.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.917808 | 148 | 0.656316 |
f390a780e38c1994e8ec84f304bd1c88f6630a45 | 13,656 | ml | OCaml | infer/src/scripts/checkCopyright.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 2 | 2020-12-14T18:07:39.000Z | 2021-01-02T15:39:42.000Z | infer/src/scripts/checkCopyright.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | 8 | 2021-05-12T00:06:23.000Z | 2022-02-27T11:21:00.000Z | infer/src/scripts/checkCopyright.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | 1 | 2021-01-29T07:48:02.000Z | 2021-01-29T07:48:02.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! Core
module F = Format
type copyright_event = CopyrightMalformed | CopyrightModified
exception CopyrightEvent of copyright_... | 33.970149 | 100 | 0.651801 |
af393b01a3dd1d760e5f0f604c962ee1ac2974e2 | 1,595 | ml | OCaml | lib/mirage_impl_reporter.ml | juliahoang/mirage | 2913cc116beea0d16cefed18f6b99a5432ad6615 | [
"ISC"
] | null | null | null | lib/mirage_impl_reporter.ml | juliahoang/mirage | 2913cc116beea0d16cefed18f6b99a5432ad6615 | [
"ISC"
] | null | null | null | lib/mirage_impl_reporter.ml | juliahoang/mirage | 2913cc116beea0d16cefed18f6b99a5432ad6615 | [
"ISC"
] | null | null | null | open Functoria
module Key = Mirage_key
open Mirage_impl_pclock
open Mirage_impl_misc
type reporter = job
let reporter = job
let pp_level ppf = function
| Logs.Error -> Fmt.string ppf "Logs.Error"
| Logs.Warning -> Fmt.string ppf "Logs.Warning"
| Logs.Info -> Fmt.string ppf "Logs.Info"
| Logs.Debug ... | 29.537037 | 67 | 0.626332 |
f3195027ae22def1bcbbb24a16e1aa6fe59f6f38 | 15,676 | mli | OCaml | src/utils/js_utils.mli | MartyO256/learn-ocaml | 0b7f09fb4f60894a28f8bcb6c38ee4d09a5e3f0c | [
"MIT"
] | 8 | 2020-09-22T22:44:10.000Z | 2021-05-23T08:14:37.000Z | src/utils/js_utils.mli | MartyO256/learn-ocaml | 0b7f09fb4f60894a28f8bcb6c38ee4d09a5e3f0c | [
"MIT"
] | 2 | 2020-08-17T19:10:23.000Z | 2021-12-15T07:34:09.000Z | src/utils/js_utils.mli | MartyO256/learn-ocaml | 0b7f09fb4f60894a28f8bcb6c38ee4d09a5e3f0c | [
"MIT"
] | 7 | 2019-05-28T14:56:19.000Z | 2021-05-19T22:01:25.000Z | (* This file is part of Learn-OCaml.
*
* Copyright (C) 2015 OCamlPro: Grégoire Henry, Çağdaş Bozman.
* Copyright (C) 2012 Vincent Balat, Benedikt Becker (for the 'Manip' module)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License ... | 37.864734 | 85 | 0.630773 |
af2406c3bbc41ea99cd9e7b7ce2e3b0cbbb8f1a1 | 314 | mli | OCaml | src/typing.mli | szktty/esca | 11be06b4a9810cdae4ccfd4ce7c5d85597bd1999 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2017-10-04T17:39:31.000Z | 2019-06-07T07:01:53.000Z | src/typing.mli | szktty/esca | 11be06b4a9810cdae4ccfd4ce7c5d85597bd1999 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/typing.mli | szktty/esca | 11be06b4a9810cdae4ccfd4ce7c5d85597bd1999 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | type unity_exn = {
uniexn_ex : Type.t;
uniexn_ac : Type.t;
}
type mismatch = {
mismatch_node: Ast.t;
mismatch_ex : Type.t;
mismatch_ac : Type.t;
}
exception Unify_error of unity_exn
exception Type_mismatch of mismatch
exception Deref_error of Type.t * string
val run : Module.t -> Ast.t -> Module.t
| 16.526316 | 40 | 0.707006 |
f32c191bfcb39140f870db10112f08b1b2ce7f63 | 4,486 | ml | OCaml | source/profiling.ml | joshkehn/pyre-check | 922b62e78e4990d8d268bb2ebde5912ceea9e226 | [
"MIT"
] | null | null | null | source/profiling.ml | joshkehn/pyre-check | 922b62e78e4990d8d268bb2ebde5912ceea9e226 | [
"MIT"
] | null | null | null | source/profiling.ml | joshkehn/pyre-check | 922b62e78e4990d8d268bb2ebde5912ceea9e226 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
module Worker = Hack_parallel.Std.Worker
module GlobalState = struct
type t = {
mutable profiling_output: string... | 32.042857 | 99 | 0.723807 |
f3e55acc380ccc7fc369d49e08dd5899426abe00 | 34 | ml | OCaml | tests/syntax_test.ml | ymyzk/lambda-gsr | feba494e6f567197611b5d2995a11732a729d5e8 | [
"MIT"
] | null | null | null | tests/syntax_test.ml | ymyzk/lambda-gsr | feba494e6f567197611b5d2995a11732a729d5e8 | [
"MIT"
] | null | null | null | tests/syntax_test.ml | ymyzk/lambda-gsr | feba494e6f567197611b5d2995a11732a729d5e8 | [
"MIT"
] | null | null | null | (* open OUnit2 *)
let suite = []
| 8.5 | 17 | 0.529412 |
af4057411a388c0eea055134070a15b8ce9ed99d | 8,767 | ml | OCaml | source/analysis/refinement.ml | MLH-Fellowship/pyre-check | e1b38bd631e43584cc8738f207a428002835330e | [
"MIT"
] | 3 | 2021-06-17T16:32:46.000Z | 2021-09-20T14:47:23.000Z | source/analysis/refinement.ml | MLH-Fellowship/pyre-check | e1b38bd631e43584cc8738f207a428002835330e | [
"MIT"
] | 87 | 2021-02-03T22:05:58.000Z | 2021-12-07T16:30:09.000Z | source/analysis/refinement.ml | MLH-Fellowship/pyre-check | e1b38bd631e43584cc8738f207a428002835330e | [
"MIT"
] | 3 | 2021-06-17T16:32:54.000Z | 2021-10-13T20:53:12.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open Ast
open Annotation
module MapLattice = struct
module type MapSignature = sig
type key
type 'data t
... | 32.591078 | 102 | 0.653131 |
f3c5740c0c82585090f468d0655644135ca1c79d | 166 | mli | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/warnings/w60.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/warnings/w60.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/warnings/w60.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | module type Comparable = sig
val id: int
end
module Fold_ordered(P: sig module Id:Comparable end): sig
val foo: int
end
module M : sig end
module O : sig end
| 12.769231 | 57 | 0.710843 |
af3e7e58b795c731fd34be4b741101d996977c75 | 3,170 | mli | OCaml | upstream/ocaml_408/utils/consistbl.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | upstream/ocaml_408/utils/consistbl.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | upstream/ocaml_408/utils/consistbl.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 46.617647 | 79 | 0.505363 |
af4269cec36490a8088c0ca5b82b6ea1d6c315e4 | 9,359 | ml | OCaml | infer/src/absint/AbstractDomain.ml | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | 1 | 2018-11-10T08:04:26.000Z | 2018-11-10T08:04:26.000Z | infer/src/absint/AbstractDomain.ml | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | null | null | null | infer/src/absint/AbstractDomain.ml | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"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! IStd
module F = Format
module Types = struct
type 'astate bottom_lifted = Bottom | NonBottom of 'astate
type 'astate top_lift... | 23.45614 | 98 | 0.607757 |
af06a0e85099c71cd6f9c5a109cb0eaadfea9e63 | 94 | ml | OCaml | data/derived/comb/progs/unify/prog6347.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/prog1502.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1502.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs =
let f a x result n = x (a n) in let base = f 0 in List.fold_left f base fs;;
| 23.5 | 78 | 0.617021 |
af3a74fdae4537d014665b55265160f76f90aa24 | 275 | ml | OCaml | benchmarks/filter/filter/submissions/sub72.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/filter/filter/submissions/sub72.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/filter/filter/submissions/sub72.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (*********************)
(* Problem 1: filter *)
(*********************)
let rec filter pred lst =
match lst with
| []-> lst
| h::t -> if pred h = true then h::filter pred t else filter pred t
(*********************)
(* Problem 2: zipper *)
(*********************) | 25 | 68 | 0.385455 |
f3aa09f27cf0c44367738004a47394c9dc6544bb | 6,675 | ml | OCaml | internal/herd_diycross_regression_test.ml | BreD1810/herdtools7 | 4c33a9d4aec768fa31e79ec7857c6b62730f2b7b | [
"CECILL-B"
] | null | null | null | internal/herd_diycross_regression_test.ml | BreD1810/herdtools7 | 4c33a9d4aec768fa31e79ec7857c6b62730f2b7b | [
"CECILL-B"
] | null | null | null | internal/herd_diycross_regression_test.ml | BreD1810/herdtools7 | 4c33a9d4aec768fa31e79ec7857c6b62730f2b7b | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 41.459627 | 159 | 0.63985 |
f325d534c011d74ebdeaa29c9135e6047408c6a3 | 47,422 | ml | OCaml | infer/src/nullsafe/typeCheck.ml | awesome-archive/infer | c91d0a777d9692cf77ec2a287d588a4cdc886b67 | [
"MIT"
] | null | null | null | infer/src/nullsafe/typeCheck.ml | awesome-archive/infer | c91d0a777d9692cf77ec2a287d588a4cdc886b67 | [
"MIT"
] | null | null | null | infer/src/nullsafe/typeCheck.ml | awesome-archive/infer | c91d0a777d9692cf77ec2a287d588a4cdc886b67 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2014-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 L = Logging
module F = Format
module DExp = DecompiledExp
(** Module for type checking. *)
(** Module to treat select... | 43.586397 | 99 | 0.611488 |
af47a1ffef409beeeb9a824f954412ed7f7cefeb | 274,377 | ml | OCaml | src/typing/statement.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"MIT"
] | null | null | null | src/typing/statement.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"MIT"
] | null | null | null | src/typing/statement.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
module Tast_utils = Typed_ast_utils
(* This module contains the traversal functions which set up subtyping
... | 39.421983 | 128 | 0.622877 |
f3fb33ed8c113b02b0308f8d958f22992784f736 | 431 | ml | OCaml | benchmarks/lambda/lambda1/submissions/sub38.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/lambda/lambda1/submissions/sub38.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/lambda/lambda1/submissions/sub38.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 is_member e l =
match l with
[] -> false
| h::t -> (e = h) || is_member e t
in
let rec check mtr alst =
match mtr with
STATION (name) -> is_member name alst
| ARE... | 22.684211 | 54 | 0.607889 |
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.