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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4414e27c53769d006ba1d8ef215ece0c8b1312e9 | 5,827 | ml | OCaml | src/ui/inject_ui.ml | lefessan/tzscan | 2e19541054c11d53ecbecafb20c061936cae8a2b | [
"Apache-2.0"
] | null | null | null | src/ui/inject_ui.ml | lefessan/tzscan | 2e19541054c11d53ecbecafb20c061936cae8a2b | [
"Apache-2.0"
] | null | null | null | src/ui/inject_ui.ml | lefessan/tzscan | 2e19541054c11d53ecbecafb20c061936cae8a2b | [
"Apache-2.0"
] | null | null | null | (************************************************************************)
(* TzScan *)
(* *)
(* Copyright 2017-2018 OCamlPro *)
(* ... | 34.076023 | 88 | 0.58452 |
8aedb35cd7742f59ac1d853824545e04aeb8f33e | 3,376 | ml | OCaml | src/extend/extend_helper.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | src/extend/extend_helper.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | src/extend/extend_helper.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | open Parsetree
(** Generate an extension node that will be reported as a syntax error by
Merlin. *)
let syntax_error msg loc : extension =
let str = Location.mkloc "merlin.syntax-error" loc in
let payload = PStr [{
pstr_loc = Location.none;
pstr_desc = Pstr_eval (
Ast_helper.(Exp.constant (... | 32.776699 | 77 | 0.67654 |
448306ad67bdd263e5de80f04448911803664e55 | 15,829 | ml | OCaml | src/lsp/documentSymbolProvider.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/lsp/documentSymbolProvider.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/lsp/documentSymbolProvider.ml | zhangmaijun/flow | f60e2a745b06f6f0739a4e4518eb5e2481f9e011 | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.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 Base.Option.Monad_infix
module Ast = Flow_ast
(** sometimes due to parse errors, we end up with empty names. hide them!
i... | 39.5725 | 144 | 0.646345 |
44836004da608695c511f85de9975e3b217ca238 | 6,314 | mli | OCaml | infer/src/clang/cAst_utils.mli | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | null | null | null | infer/src/clang/cAst_utils.mli | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | 2 | 2020-11-13T19:42:27.000Z | 2020-11-13T19:49:19.000Z | infer/src/clang/cAst_utils.mli | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2013 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! IStd... | 40.216561 | 99 | 0.787456 |
4457bb7e0f6e0aef1bc38f015c04155b4b7c13b8 | 88 | ml | OCaml | test/min.ml | hhugo/brr | e6a3ce7a2a8d30392db7619677e9f33f31fda737 | [
"BSD-3-Clause"
] | 70 | 2018-07-08T22:13:05.000Z | 2022-02-03T08:41:02.000Z | test/min.ml | hhugo/brr | e6a3ce7a2a8d30392db7619677e9f33f31fda737 | [
"BSD-3-Clause"
] | 32 | 2020-09-13T16:20:58.000Z | 2022-02-17T08:10:41.000Z | test/min.ml | hhugo/brr | e6a3ce7a2a8d30392db7619677e9f33f31fda737 | [
"BSD-3-Clause"
] | 14 | 2020-09-18T00:08:01.000Z | 2022-01-27T21:40:55.000Z | open Brr
let () =
El.set_children (Document.body G.document) El.[txt' "Hello World!"]
| 22 | 69 | 0.681818 |
4436be68af2c6818f892047ae189827a70af2561 | 76,054 | ml | OCaml | src/ocaml-output/FStar_Syntax_Print.ml | zenprotocol/FStar | d8b4db782b08ecc677eda31ee1bad1933169c80d | [
"Apache-2.0"
] | 7 | 2017-11-13T18:30:47.000Z | 2020-10-03T16:09:21.000Z | src/ocaml-output/FStar_Syntax_Print.ml | ezrafukss/FStar | d8b4db782b08ecc677eda31ee1bad1933169c80d | [
"Apache-2.0"
] | 1 | 2018-11-06T18:16:15.000Z | 2018-11-06T18:16:15.000Z | src/ocaml-output/FStar_Syntax_Print.ml | ezrafukss/FStar | d8b4db782b08ecc677eda31ee1bad1933169c80d | [
"Apache-2.0"
] | 5 | 2017-12-18T10:45:08.000Z | 2021-11-22T12:44:53.000Z | open Prims
let rec (delta_depth_to_string :
FStar_Syntax_Syntax.delta_depth -> Prims.string) =
fun uu___207_5 ->
match uu___207_5 with
| FStar_Syntax_Syntax.Delta_constant_at_level i ->
let uu____7 = FStar_Util.string_of_int i in
Prims.strcat "Delta_constant_at_level " uu____7
| FStar_... | 43.709195 | 336 | 0.583783 |
4459e135c4d40501a5a1fcde6010f995a4ee09b8 | 6,403 | ml | OCaml | src/sparse/dug.ml | kupl/sparrow_ku | b4074e1b4567e54e2347cf8da0e47efe50160923 | [
"BSD-3-Clause"
] | 1 | 2019-04-29T08:52:46.000Z | 2019-04-29T08:52:46.000Z | src/sparse/dug.ml | kupl/sparrow_ku | b4074e1b4567e54e2347cf8da0e47efe50160923 | [
"BSD-3-Clause"
] | null | null | null | src/sparse/dug.ml | kupl/sparrow_ku | b4074e1b4567e54e2347cf8da0e47efe50160923 | [
"BSD-3-Clause"
] | 2 | 2018-03-20T09:53:25.000Z | 2022-02-04T06:44:31.000Z | (***********************************************************************)
(* *)
(* Copyright (c) 2007-present. *)
(* Programming Research Laboratory (ROPAS), Seoul National University. *)
(* All rights reserved. ... | 34.610811 | 104 | 0.527721 |
44556399f6fd3f5cc99bb3c9ffb95d60f75aa267 | 7,441 | ml | OCaml | lib/core_filename.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/core_filename.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/core_filename.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | open Core_kernel.Std
open Printf
include struct
open Caml.Filename
let check_suffix = check_suffix
let chop_extension = chop_extension
let chop_suffix = chop_suffix
let current_dir_name = current_dir_name
let is_implicit = is_implicit
let is_relative = is_relative
let parent_dir_name = parent_dir_name... | 31.396624 | 94 | 0.583389 |
8a3eef280696a58ea1a32587444d8ecd3621baa5 | 3,146 | ml | OCaml | data/sp14_min/0541.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14_min/0541.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0541.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr
| ECosSin of expr* expr
| SinLog of expr* expr* expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine... | 25.786885 | 74 | 0.429752 |
4400ccf60fd0485dd032a1348a2e2c2abcb78a44 | 1,260 | mli | OCaml | source/interprocedural_analyses/taint/modelVerifier.mli | joshkehn/pyre-check | 922b62e78e4990d8d268bb2ebde5912ceea9e226 | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/modelVerifier.mli | joshkehn/pyre-check | 922b62e78e4990d8d268bb2ebde5912ceea9e226 | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/modelVerifier.mli | 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
open Ast
open Analysis
module ClassDefinitionsCache : sig
val invalidate : unit -> unit
end
val class_summaries : r... | 24.705882 | 100 | 0.723016 |
8ae9b6786a7b853223ef0848150f358815946cbe | 1,080 | ml | OCaml | common.ml | Ekdohibs/toy-smt | 6ac0d4665640393858427fd994d7840c77b4853b | [
"MIT"
] | 3 | 2019-02-22T02:44:56.000Z | 2019-07-25T14:00:50.000Z | common.ml | Ekdohibs/toy-smt | 6ac0d4665640393858427fd994d7840c77b4853b | [
"MIT"
] | null | null | null | common.ml | Ekdohibs/toy-smt | 6ac0d4665640393858427fd994d7840c77b4853b | [
"MIT"
] | null | null | null | module List = struct
include List
let iter3 f l m n =
iter2 (fun a (b,c) -> f a b c) l (combine m n)
let map3 f l m n =
map2 (fun a (b,c) -> f a b c) l (combine m n)
let iteri2 f l m =
iteri (fun i (a,b) -> f i a b) (combine l m)
let mapi2 f l m =
mapi (fun i (a,b) -> f i a b) (combine l m)
let rec fold... | 23.478261 | 69 | 0.502778 |
441f15f7b1896cf143b3bccaf6442c3abfe98388 | 118 | ml | OCaml | data/derived/comb/progs/unify/prog4544.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/prog4544.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4544.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec sumList xs =
match xs with | [] -> 0 | head::tail -> head (sumList tail);;
let _ = sumList [1; 2; 3; 4];;
| 19.666667 | 63 | 0.550847 |
44284cd2e8093784f1d222ede144807713833758 | 204 | ml | OCaml | data/derived/comb/progs/unify/prog8807.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/prog4025.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog4025.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let explode s =
let rec go i =
if i >= (String.length s) then [] else (s.[i]) :: (go (i + 1)) in
go 0;;
let rec listList xs =
match explode xs with | [] -> [[]] | h::t -> [h] @ (listList t);;
| 22.666667 | 69 | 0.495098 |
af819c5f1bbd418b22e78ee9fa5c6f7700f92e41 | 25,540 | ml | OCaml | src/dune/preprocessing.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2021-04-15T05:05:50.000Z | 2021-04-15T05:05:50.000Z | src/dune/preprocessing.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | null | null | null | src/dune/preprocessing.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Build.O
open Dune_file
module SC = Super_context
(* Encoded representation of a set of library names + scope *)
module Key : sig
(* This module implements a bi-directional function between [encoded] and
[decoded] *)
type encoded = Digest.t
module Decoded : sig
type t = pri... | 35.72028 | 82 | 0.564487 |
449c475802ac72c40c12a4e4d36f7fb4434f1981 | 16,955 | ml | OCaml | source/ast/visit.ml | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | null | null | null | source/ast/visit.ml | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | null | null | null | source/ast/visit.ml | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"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 Expression
open Statement
type node =
| Expression of Expression.t
| Statement of Statement.t
| Ide... | 33.245098 | 100 | 0.651489 |
443e36d059c0886f97e29bf2be1c11d0377f3e56 | 1,931 | ml | OCaml | src/model/error.ml | rgrinberg/odoc | 6757bda954549d6a10dcc6fc271f5c1b1b747e5d | [
"ISC"
] | 1 | 2018-03-14T23:24:55.000Z | 2018-03-14T23:24:55.000Z | src/model/error.ml | ocamllabs/odoc-dev | d4b1b9479eb200a5b67b1e266c4d2423da889a8e | [
"0BSD"
] | null | null | null | src/model/error.ml | ocamllabs/odoc-dev | d4b1b9479eb200a5b67b1e266c4d2423da889a8e | [
"0BSD"
] | null | null | null | type full_location_payload = {
location : Location_.span;
message : string;
}
type filename_only_payload = {
file : string;
message : string;
}
type t = [
| `With_full_location of full_location_payload
| `With_filename_only of filename_only_payload
]
type 'a with_warnings = {
result : 'a;
warnings : ... | 27.985507 | 79 | 0.670119 |
8a213df701d1fec71b0fa01019ac72bdfd3c9faf | 46,911 | ml | OCaml | infer/src/backend/dotty.ml | kuailenanhai/infer | 74d3ab7684873f3a0599ff401fc11349a051e9ba | [
"MIT"
] | null | null | null | infer/src/backend/dotty.ml | kuailenanhai/infer | 74d3ab7684873f3a0599ff401fc11349a051e9ba | [
"MIT"
] | null | null | null | infer/src/backend/dotty.ml | kuailenanhai/infer | 74d3ab7684873f3a0599ff401fc11349a051e9ba | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module L = Logging
module F = Format
(** {1 Dotty} *)
(* When false it prints onl... | 37.831452 | 126 | 0.624054 |
8adad801fbe7fbdeca7c0ee6c64382e640468808 | 37,905 | ml | OCaml | analysis/test/annotatedSignatureTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-08-08T16:01:55.000Z | 2020-08-08T16:01:55.000Z | analysis/test/annotatedSignatureTest.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 4 | 2022-02-15T02:42:33.000Z | 2022-02-28T01:30:07.000Z | analysis/test/annotatedSignatureTest.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 Ast
open Analysis
open Expression
open Pyre
open Test
module Resolution = Analysis.Resolution
let make_normal_and... | 38.443205 | 101 | 0.583775 |
440e14a277ef224f83c18412164b3fc8ce30d659 | 53 | ml | OCaml | data/derived/comb/progs/unify/prog6950.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/prog2134.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2134.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let dupe f x = ((f x), (f x));;
let _ = dupe 3 3;;
| 10.6 | 31 | 0.433962 |
8aa539d347078f1e0f99bb7ef53e9fbdc67c9eea | 372 | mli | OCaml | lib/mirage/mirage_configure_solo5.mli | dune-universe/mirage | 26510641e3f5d40185309e8e82d4ca6ed87aa0e5 | [
"ISC"
] | null | null | null | lib/mirage/mirage_configure_solo5.mli | dune-universe/mirage | 26510641e3f5d40185309e8e82d4ca6ed87aa0e5 | [
"ISC"
] | null | null | null | lib/mirage/mirage_configure_solo5.mli | dune-universe/mirage | 26510641e3f5d40185309e8e82d4ca6ed87aa0e5 | [
"ISC"
] | null | null | null | open Rresult
val solo5_manifest_path : Fpath.t
val clean_manifest : unit -> (unit, [> R.msg ]) result
val solo5_pkg : [> Mirage_key.mode_solo5 ] -> string * string
val generate_manifest_json : unit -> (unit, [> R.msg ]) result
val generate_manifest_c : unit -> (unit, [> R.msg ]) result
val compile_manifest : [> M... | 26.571429 | 78 | 0.682796 |
4437fe60d700f69347419e86e040c3171e599b0e | 233 | ml | OCaml | data/derived/comb/progs/unify/prog3684.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/prog3684.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3684.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec digitsOfInt n =
let digInt = [] in
if (n / 10) <> 0 then digInt :: (digitsOfInt (n / 10)) else [];;
let l = [];;
let digitsOfInt n =
match n / 10 with
| 0 -> []
| _ -> l :: (n mod 10) :: (digitsOfInt (n / 10));;
| 19.416667 | 66 | 0.502146 |
8a6b604ade5cd974870fd7235bedcb4aec1bdfbc | 327 | ml | OCaml | src/parser_utils/output/source_map_config.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/parser_utils/output/source_map_config.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/parser_utils/output/source_map_config.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module LocMap = Loc_collections.LocMap
type names = string LocMap.t
type t = { names: names }
let default = { names = LocMap.e... | 21.8 | 66 | 0.70948 |
8add0b6488d65ced18641503ef88bce1bb9cde6d | 18,766 | ml | OCaml | data/derived/comb/progs/unify/prog3704.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/prog3704.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3704.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.332149 | 208 | 0.660183 |
443981d44be40bffb96a4d1388f35598acf96e8d | 310 | ml | OCaml | src/ml/regex.ml | Bigsby/hellolanguages | baf421fdb7b4c60bbdea32d1c80886b37cdb0854 | [
"Apache-2.0"
] | null | null | null | src/ml/regex.ml | Bigsby/hellolanguages | baf421fdb7b4c60bbdea32d1c80886b37cdb0854 | [
"Apache-2.0"
] | 2 | 2020-12-04T16:54:40.000Z | 2022-03-01T23:55:35.000Z | src/ml/regex.ml | Bigsby/hellolanguages | baf421fdb7b4c60bbdea32d1c80886b37cdb0854 | [
"Apache-2.0"
] | null | null | null | #load "str.cma";;
print_endline "Is '^[0-9]+$' matched by '123456'?";;
try
ignore(Str.search_forward (Str.regexp "^[0-9]+$") "123456" 0);
print_endline "yes";
with
Not_found -> print_endline "no";;
print_endline "Grups of '^([a-z]+=\\-([0-9]+)$'";;
let codeRegexp = Str.regexp "^([a-z]+=\\-([0-9]+)$"
| 23.846154 | 64 | 0.580645 |
afaa601b419e1ab4a53e06c259d2add2356503a6 | 6,605 | ml | OCaml | src/parser/token.ml | vkurchatkin/ff | ed75401e7557bb9821da29160c008d665ca3241e | [
"BSD-3-Clause"
] | null | null | null | src/parser/token.ml | vkurchatkin/ff | ed75401e7557bb9821da29160c008d665ca3241e | [
"BSD-3-Clause"
] | 2 | 2021-05-11T23:33:41.000Z | 2022-03-28T18:43:26.000Z | src/parser/token.ml | ahutchings/flow | b815b351f7625fab4a174d53628f53a6a481460a | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
type ... | 23.175439 | 80 | 0.616805 |
8adc7eb89b8537e43be7277b08d23d85637ed4e9 | 9,343 | mli | OCaml | src/ocaml/typer_404/typing/btype.mli | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_404/typing/btype.mli | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_404/typing/btype.mli | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | 1 | 2017-11-06T17:46:59.000Z | 2017-11-06T17:46:59.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 40.098712 | 80 | 0.636947 |
8aa60fa250265bba68087bd965176f54ce624509 | 753 | mli | OCaml | infer/src/base/CostIssues.mli | tahmidbintaslim/infer | 1d2f00faea9523a1bed93085a800063e88f09482 | [
"MIT"
] | null | null | null | infer/src/base/CostIssues.mli | tahmidbintaslim/infer | 1d2f00faea9523a1bed93085a800063e88f09482 | [
"MIT"
] | 8 | 2021-05-12T00:06:23.000Z | 2022-02-27T11:21:00.000Z | infer/src/base/CostIssues.mli | tahmidbintaslim/infer | 1d2f00faea9523a1bed93085a800063e88f09482 | [
"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
type issue_spec =
{ extract_cost_f: Jsonbug_t.cost_item -> Jsonbug_t.cost_info
; name: string
; threshold: int op... | 27.888889 | 66 | 0.721116 |
4469d8f670cff3f1c7bb456e8a4e11acd5dadc27 | 1,747 | ml | OCaml | libraries/ec2/lib/describeAvailabilityZones.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeAvailabilityZones.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeAvailabilityZones.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DescribeAvailabilityZonesRequest.t
type output = DescribeAvailabilityZonesResult.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 region)... | 27.730159 | 90 | 0.61992 |
44870587adae0324bd3a600602cd9db295c31ef1 | 5,264 | ml | OCaml | lib/Extended_ast.ml | ahrefs/ocamlformat | a72544cce8d193287c54e732aa3523c0e34348fb | [
"MIT"
] | null | null | null | lib/Extended_ast.ml | ahrefs/ocamlformat | a72544cce8d193287c54e732aa3523c0e34348fb | [
"MIT"
] | null | null | null | lib/Extended_ast.ml | ahrefs/ocamlformat | a72544cce8d193287c54e732aa3523c0e34348fb | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 31.90303 | 78 | 0.546922 |
afdf931d754fd0718b8084256d5a9281258edd0e | 44,296 | mli | OCaml | hphp/hack/src/errors/errors.mli | cobbles/hhvm | 583f879c7e1be697b1695a4506dd2f7171b921d0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/errors.mli | cobbles/hhvm | 583f879c7e1be697b1695a4506dd2f7171b921d0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/errors.mli | cobbles/hhvm | 583f879c7e1be697b1695a4506dd2f7171b921d0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type ('prim_pos, 'pos) error_
type 'a message
val get_message_pos : 'a message -> 'a
val get_message_str : 'a mes... | 25.139614 | 92 | 0.714399 |
44437c9d20e6d52671a659d0d4c001e20195e924 | 25,550 | mli | OCaml | ocaml/utils/misc.mli | johnyob/typed-ppxlib | 3870bda5d3d69c9d7153aaf3cd87990aa862b2d9 | [
"MIT"
] | 28 | 2021-04-03T12:50:31.000Z | 2022-03-09T01:30:00.000Z | ocaml/utils/misc.mli | johnyob/typed-ppxlib | 3870bda5d3d69c9d7153aaf3cd87990aa862b2d9 | [
"MIT"
] | 1 | 2021-04-10T16:57:35.000Z | 2021-04-10T16:57:35.000Z | ocaml/utils/misc.mli | johnyob/typed-ppxlib | 3870bda5d3d69c9d7153aaf3cd87990aa862b2d9 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 37.082729 | 80 | 0.633738 |
44509f85efb366fda803413ade88728eb6da1406 | 86,734 | ml | OCaml | src/app/replayer/replayer.ml | Vrrinderjit/mina | 1d9ef9cc8c14f6965e7b9c835c8127acbbd2a045 | [
"Apache-2.0"
] | null | null | null | src/app/replayer/replayer.ml | Vrrinderjit/mina | 1d9ef9cc8c14f6965e7b9c835c8127acbbd2a045 | [
"Apache-2.0"
] | null | null | null | src/app/replayer/replayer.ml | Vrrinderjit/mina | 1d9ef9cc8c14f6965e7b9c835c8127acbbd2a045 | [
"Apache-2.0"
] | null | null | null | (* replayer.ml -- replay transactions from archive node database *)
open Core
open Async
open Mina_base
module Ledger = Mina_ledger.Ledger
module Processor = Archive_lib.Processor
(* identify a target block B containing staking and next epoch ledgers
to be used in a hard fork, by giving its state hash
from B, ... | 39.71337 | 95 | 0.624023 |
44253b9f0554cd3b9343d69088fedf0df0921047 | 7,913 | ml | OCaml | libraries/ec2/lib/createFpgaImage.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/createFpgaImage.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createFpgaImage.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module CreateFpgaImageRequest =
struct
type t =
{
dry_run: Boolean.t option
[@ocaml.doc
"<p>Checks whether you have the required permissions for the action, without actually making the request, and p... | 41 | 297 | 0.5678 |
8a5417c74014e7922d17a1a28c5058eebf47980b | 1,678 | ml | OCaml | lib/types.ml | NightBlues/amqp-client | 9a5783ee9f853d35f16bfa109f0c0d09ea460e63 | [
"BSD-3-Clause"
] | 56 | 2015-12-16T01:59:56.000Z | 2022-01-26T11:39:47.000Z | lib/types.ml | NightBlues/amqp-client | 9a5783ee9f853d35f16bfa109f0c0d09ea460e63 | [
"BSD-3-Clause"
] | 34 | 2015-12-28T12:33:11.000Z | 2020-12-18T12:18:28.000Z | lib/types.ml | NightBlues/amqp-client | 9a5783ee9f853d35f16bfa109f0c0d09ea460e63 | [
"BSD-3-Clause"
] | 12 | 2015-12-15T22:02:27.000Z | 2020-12-02T12:20:24.000Z | (** Basic Amqp types *)
exception Connection_closed
exception Channel_closed of int
exception Channel_not_found of int
exception Unknown_frame_type of int
exception No_handler_found
exception Consumer_cancelled of string
exception Busy
type class_id = int
type method_id = int
type message_id = class_id * method_id
ty... | 24.676471 | 96 | 0.65435 |
44756d3f1293b6299643749ea62434d8ad03765f | 1,306 | mli | OCaml | src/typing/type_inference_js.mli | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/typing/type_inference_js.mli | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/typing/type_inference_js.mli | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val scan_for_suppressions :
Context.t -> Severity.severity LintSettings.t -> Loc.t Flow_ast.Comment.t list -> unit
val add_req... | 27.208333 | 88 | 0.707504 |
44380ed2de668f8be8dda72096f08842362263cd | 506 | ml | OCaml | hphp/hack/src/hackfmt/format_env.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:47.000Z | 2021-05-15T22:07:47.000Z | hphp/hack/src/hackfmt/format_env.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/hackfmt/format_env.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.000Z | (*
* 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.
*
*)
type t = {
add_trailing_commas: bool;
indent_width: int;
indent_with_tabs: bool;
line_width: int;
format_g... | 19.461538 | 66 | 0.681818 |
448bd000108e5f0676cc36bd2345172977e4073d | 50,406 | ml | OCaml | src/proto_alpha/lib_client/michelson_v1_macros.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_client/michelson_v1_macros.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_client/michelson_v1_macros.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> *)
... | 33.161842 | 83 | 0.401778 |
44948504bc7ac1a5ad50fe5d65d6814fd4067a7f | 599 | ml | OCaml | MP3/even_count_fr.ml | liutiantian233/Introduction_OCaml | 16102e5edec4b886f8829d1ef7e9ba0aefd39c88 | [
"Unlicense"
] | null | null | null | MP3/even_count_fr.ml | liutiantian233/Introduction_OCaml | 16102e5edec4b886f8829d1ef7e9ba0aefd39c88 | [
"Unlicense"
] | null | null | null | MP3/even_count_fr.ml | liutiantian233/Introduction_OCaml | 16102e5edec4b886f8829d1ef7e9ba0aefd39c88 | [
"Unlicense"
] | null | null | null | (* CS421 - Fall 2016 even_count_fr
*
* Please keep in mind that there may be more than one way to solve a
* problem. You will want to change how a number of these start.
*)
(*************************
* Patterns of Recursion *
*************************)
(*********************
* Forward Recursion *
************... | 28.52381 | 69 | 0.547579 |
8a76b444b294bf95a695a6f94bafe8f27617a18b | 372 | ml | OCaml | hphp/hack/src/server/serverCoverageMetricTypes.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2015-08-28T06:20:50.000Z | 2021-11-08T09:48:24.000Z | hphp/hack/src/server/serverCoverageMetricTypes.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-19T19:06:32.000Z | 2020-01-19T19:06:32.000Z | hphp/hack/src/server/serverCoverageMetricTypes.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2018-01-23T20:44:59.000Z | 2021-05-06T12:45:31.000Z | (**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Coverage... | 28.615385 | 80 | 0.733871 |
f3cfd4c7c4af07ff67bf6a0979a48552bfc846f5 | 574 | ml | OCaml | benchmarks/C/formula/sol43.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/formula/sol43.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/formula/sol43.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type exp = Num of int
| Plus of exp * exp
| Minus of exp * exp
type formula = True
| False
| Not of formula
| AndAlso of formula * formula
| OrElse of formula * formula
| Imply of formula * formula
| Equal of exp * exp
let rec eval form =
let rec evalu e =
match e with
Num(x)->x
|Plus(x,y)->(evalu x) + (evalu ... | 20.5 | 36 | 0.609756 |
446e30f99758167b125cea4522acbe5f8a6cb618 | 1,097 | mli | OCaml | lib/x86_cpu/x86_cpu.mli | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | lib/x86_cpu/x86_cpu.mli | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | lib/x86_cpu/x86_cpu.mli | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | open Bap.Std
(** IA32 Architecture Registers.
For simplicity we're using the same names for registers in
32 and 64 mode. For example, the A register, has a name [rax] on
both 32-bit and 64-bit processors. However, on the former it is
32-bit (contrary to the name), and on the latter it is 64-bit.
*)... | 18.283333 | 68 | 0.608933 |
4442b1e8897ca1a0a5cc9b58477347c579e16bd2 | 89,573 | ml | OCaml | trained/NYSE-MS-day-2014-10-06-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-10-06-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-10-06-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | 2 | 2020-05-03T11:14:09.000Z | 2021-11-18T10:26:30.000Z | [BASIC]
[BASIC:PARAMS]
[BASIC:NETWORK]
beginTraining=0
connectionLimit=0
contextTargetOffset=0,0,0
contextTargetSize=0,0,0
endTraining=2
hasContext=f
inputCount=180
layerCounts=4,37,181
layerFeedCounts=4,36,180
layerContextCount=0,0,0
layerIndex=0,4,41
output=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | 2,985.766667 | 27,244 | 0.817612 |
8a36ca451166d93937d498d8af026b858d09fee6 | 3,676 | ml | OCaml | practice/state.ml | Gbury/hashcode18 | 4cee1c3944842aa62039cc4ac6e69c9e212eee7b | [
"MIT"
] | 3 | 2018-02-27T06:45:16.000Z | 2018-02-27T11:25:45.000Z | practice/state.ml | Gbury/hashcode18 | 4cee1c3944842aa62039cc4ac6e69c9e212eee7b | [
"MIT"
] | null | null | null | practice/state.ml | Gbury/hashcode18 | 4cee1c3944842aa62039cc4ac6e69c9e212eee7b | [
"MIT"
] | null | null | null |
let transposed = false
type cell = M | T
type stat = {
m : int;
t : int;
}
type point = { r : int; c : int; }
type rect = { tl : point; br : point; }
type t = {
l : int;
h : int;
pizza : cell array array;
sums : int array array;
slices : rect list;
}
type solution = rect list
(* Making states *)
... | 23.564103 | 97 | 0.565288 |
8a3ced6fb43b1a511e5282a6d27ee12bae277b31 | 6,491 | ml | OCaml | src/rewriting/term.ml | Ari-Zerner/maedmax | 282b1722e37b3455706bc9bedae06cfd8a43f927 | [
"BSD-3-Clause"
] | null | null | null | src/rewriting/term.ml | Ari-Zerner/maedmax | 282b1722e37b3455706bc9bedae06cfd8a43f927 | [
"BSD-3-Clause"
] | 2 | 2019-10-08T13:29:12.000Z | 2020-12-29T05:49:08.000Z | src/rewriting/term.ml | Ari-Zerner/maedmax | 282b1722e37b3455706bc9bedae06cfd8a43f927 | [
"BSD-3-Clause"
] | 2 | 2019-09-19T01:23:26.000Z | 2021-05-03T09:43:08.000Z | (*** OPENS *******************************************************************)
open Format
open Formatx
open Signature
module Var = struct
type t = Signature.var
let compare = Pervasives.compare
end
module Sub = Map.Make(Var)
(*** TYPES *******************************************************************)
type ... | 27.739316 | 80 | 0.55446 |
8aeceb8c541c428a46e0c31030751648ddbe4021 | 8,086 | mli | OCaml | infer/src/base/IssueType.mli | andrecostea/infer | fac81e50e2a020d6c97b09c46eb32684ad318194 | [
"MIT"
] | null | null | null | infer/src/base/IssueType.mli | andrecostea/infer | fac81e50e2a020d6c97b09c46eb32684ad318194 | [
"MIT"
] | null | null | null | infer/src/base/IssueType.mli | andrecostea/infer | fac81e50e2a020d6c97b09c46eb32684ad318194 | [
"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
(** visibility of the issue type *)
type visibility =
| User (** always add to error log *)
| Developer (** only ... | 20.680307 | 100 | 0.783329 |
44657f2367f3c180c2f6f11b9980cc7c7988b0a2 | 20,638 | ml | OCaml | data/derived/comb/progs/unify/prog2301.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/prog2301.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2301.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.706815 | 208 | 0.671044 |
4460f90ece61ad88c27cbde6a9a7327b5c904dd5 | 1,841 | mli | OCaml | src/compilation_context.mli | prometheansacrifice/dune | 22fe0696ff01aaa10641eb44f5a4b6c83323111c | [
"MIT"
] | null | null | null | src/compilation_context.mli | prometheansacrifice/dune | 22fe0696ff01aaa10641eb44f5a4b6c83323111c | [
"MIT"
] | null | null | null | src/compilation_context.mli | prometheansacrifice/dune | 22fe0696ff01aaa10641eb44f5a4b6c83323111c | [
"MIT"
] | null | null | null | (** High-level API for compiling OCaml files *)
open! Stdune
open Import
(** Represent a compilation context.
A compilation context contains all the necessary information to
preprocess and compile OCaml source files. Exactly one compilation
context is associated to each library, executable and executable... | 34.735849 | 76 | 0.57686 |
8a5e71bca29add455fc8080fe3bccda7cf26e07e | 2,621 | ml | OCaml | lib/functoria/job.ml | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 1,622 | 2015-01-03T13:32:31.000Z | 2022-03-31T23:16:50.000Z | lib/functoria/job.ml | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 739 | 2015-01-08T12:44:35.000Z | 2022-03-30T06:31:27.000Z | lib/functoria/job.ml | palainp/mirage | 09d3e17125e782c58aae92c8bb2f849b41fd2037 | [
"ISC"
] | 190 | 2015-01-04T12:20:37.000Z | 2022-03-30T02:57:26.000Z | (*
* Copyright (c) 2013-2020 Thomas Gazagnaire <thomas@gazagnaire.org>
* Copyright (c) 2013-2020 Anil Madhavapeddy <anil@recoil.org>
* Copyright (c) 2015-2020 Gabriel Radanne <drupyog@zoho.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby grante... | 41.603175 | 76 | 0.687524 |
4477e07a848a14d2def2bd3d1f305d1589357833 | 16,125 | mli | OCaml | src-jsoo/jsonc.mli | dbuenzli/jsonc | b6adf836a2812f25d934e85ba3b6daa5fe77fd14 | [
"ISC"
] | 2 | 2017-04-12T14:39:10.000Z | 2020-10-22T01:28:28.000Z | src-jsoo/jsonc.mli | dbuenzli/jsonc | b6adf836a2812f25d934e85ba3b6daa5fe77fd14 | [
"ISC"
] | 1 | 2020-06-18T15:57:58.000Z | 2020-06-18T15:57:58.000Z | src-jsoo/jsonc.mli | dbuenzli/jsonc | b6adf836a2812f25d934e85ba3b6daa5fe77fd14 | [
"ISC"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2014 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
(** ... | 38.484487 | 80 | 0.647566 |
4482182ce784aa3fac273bb13140157ece3e418c | 4,058 | ml | OCaml | bin/hello_world.ml | xray-tech/xorc-oam-compiler | 4f1033edb5752e527fee40b9a620dd59876c3139 | [
"Apache-2.0"
] | 2 | 2018-11-01T16:50:28.000Z | 2020-08-01T14:43:33.000Z | bin/hello_world.ml | xray-tech/xorc-oam-compiler | 4f1033edb5752e527fee40b9a620dd59876c3139 | [
"Apache-2.0"
] | 2 | 2021-03-09T07:40:23.000Z | 2021-05-09T02:27:06.000Z | bin/hello_world.ml | xray-tech/xorc-oam-compiler | 4f1033edb5752e527fee40b9a620dd59876c3139 | [
"Apache-2.0"
] | null | null | null | open Base
module Lexer = Orcml_lexer
let print_position outx lexbuf =
let pos = lexbuf.Lexer.pos in
Stdio.Out_channel.fprintf outx "%s:%d:%d" pos.pos_fname
pos.pos_lnum (pos.pos_cnum - pos.pos_bol + 1)
let parse_with_error lexbuf =
let lexer () =
let open Lexer in
let ante_position = lexbuf.pos in
... | 32.725806 | 93 | 0.690981 |
44338933c26328216625b079fea0b2d2357f25c3 | 4,070 | ml | OCaml | src/proto_alpha/lib_protocol/services_registration.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/services_registration.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/services_registration.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 4 | 2021-04-27T15:00:34.000Z | 2021-09-26T21:50:01.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 42.842105 | 79 | 0.583784 |
44878f2793dcdb206610023300331bdaaa54ab33 | 1,704 | ml | OCaml | recomb.ml | d2km/recomb-ocaml | 257eb6805e6b9ad7ec52679f04fbf649561411b8 | [
"BSD-3-Clause"
] | 1 | 2020-01-15T22:56:05.000Z | 2020-01-15T22:56:05.000Z | recomb.ml | d2km/recomb-ocaml | 257eb6805e6b9ad7ec52679f04fbf649561411b8 | [
"BSD-3-Clause"
] | null | null | null | recomb.ml | d2km/recomb-ocaml | 257eb6805e6b9ad7ec52679f04fbf649561411b8 | [
"BSD-3-Clause"
] | null | null | null | module type Benchmarkable = sig
val replace_all : string -> string
end
module LibRe : Benchmarkable = struct
let re = Re.compile @@ Re.Pcre.re "[/:\\\\. (),'\"]+"
let replace_all = Re.replace_string re ~by:"_"
end
module LibRe2 : Benchmarkable = struct
let re = Re2.create_exn "[/:\\\\. (),'\"]+"
let replace... | 28.4 | 55 | 0.607981 |
afeb1adf88578c6b02d3f64ec38d7a5d5ef2d717 | 2,991 | ml | OCaml | hack/dfind/dfindServer.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | 1 | 2016-10-08T12:13:09.000Z | 2016-10-08T12:13:09.000Z | hack/dfind/dfindServer.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | null | null | null | hack/dfind/dfindServer.ml | Connormiha/flow | 5a9f63fab7b4c1453c1e0950a56df6fac1a9d612 | [
"MIT"
] | 1 | 2018-01-18T10:09:27.000Z | 2018-01-18T10:09:27.000Z | (**
* 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.
*
*)
(***********... | 33.233333 | 80 | 0.626546 |
8a7515c9242f2f8b3e6c7ff19501427e8fbc6db5 | 2,588 | ml | OCaml | eval/sherrloc/easyocaml++/lex/cset.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/lex/cset.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/lex/cset.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Luc Marang... | 25.88 | 73 | 0.384853 |
445de49c48b931dca2a8f529f65b1f66b5ada8ca | 13,828 | ml | OCaml | GillianCore/GIL_Syntax/Formula.ml | NatKarmios/Gillian | 511a16196bd89d25ffe5cf868188b6ddf546efd7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | GillianCore/GIL_Syntax/Formula.ml | NatKarmios/Gillian | 511a16196bd89d25ffe5cf868188b6ddf546efd7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | GillianCore/GIL_Syntax/Formula.ml | NatKarmios/Gillian | 511a16196bd89d25ffe5cf868188b6ddf546efd7 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | type t = TypeDef__.formula =
| True (** Logical true *)
| False (** Logical false *)
| Not of t (** Logical negation *)
| And of t * t (** Logical conjunction *)
| Or of t * t (** Logical disjunction *)
| Eq of Expr.t * Expr.t (** Expression equality *)
| FLess of Expr.t * Expr.t (** Expression les... | 33.400966 | 112 | 0.562265 |
442278216cb9e00a3e953133bf811019ff3d90c3 | 20,806 | ml | OCaml | bin/common.ml | thierry-martinez/dune | e80c901f767a4f904dbbba18d2b5934f33b18e32 | [
"MIT"
] | null | null | null | bin/common.ml | thierry-martinez/dune | e80c901f767a4f904dbbba18d2b5934f33b18e32 | [
"MIT"
] | null | null | null | bin/common.ml | thierry-martinez/dune | e80c901f767a4f904dbbba18d2b5934f33b18e32 | [
"MIT"
] | null | null | null | open Stdune
module Config = Dune.Config
module Colors = Dune.Colors
module Clflags = Stdune.Clflags
module Package = Dune.Package
module Profile = Dune.Profile
module Term = Cmdliner.Term
module Manpage = Cmdliner.Manpage
module Let_syntax = struct
let ( let+ ) t f = Term.(const f $ t)
let ( and+ ) a b = Term.(co... | 31.429003 | 81 | 0.593435 |
449be9b6d5482e95e5183c256a4f934bf891ba72 | 3,237 | ml | OCaml | bin/conf.ml | smorimoto/okra | a1b51586c66fdb95168cdc929c0907e90f245fdd | [
"MIT"
] | null | null | null | bin/conf.ml | smorimoto/okra | a1b51586c66fdb95168cdc929c0907e90f245fdd | [
"MIT"
] | null | null | null | bin/conf.ml | smorimoto/okra | a1b51586c66fdb95168cdc929c0907e90f245fdd | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2021 Patrick Ferris <pf341@patricoferris.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS ... | 34.806452 | 81 | 0.657708 |
443bedce916abb444cba0c057f71591bdb7fe26f | 2,108 | ml | OCaml | examples/bad.ml | rizo/alcotest | e22e107cbab3ac0b56b2ae51a7cb877d3cbefbf3 | [
"ISC"
] | 5 | 2015-04-14T10:10:34.000Z | 2017-10-09T08:47:36.000Z | examples/bad.ml | rizo/alcotest | e22e107cbab3ac0b56b2ae51a7cb877d3cbefbf3 | [
"ISC"
] | 9 | 2015-04-13T15:02:51.000Z | 2015-06-01T13:51:31.000Z | examples/bad.ml | rizo/alcotest | e22e107cbab3ac0b56b2ae51a7cb877d3cbefbf3 | [
"ISC"
] | 7 | 2015-04-13T07:44:55.000Z | 2018-03-11T05:07:50.000Z | (*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copy... | 31.939394 | 71 | 0.713947 |
4475c658264db998889bbd68b607d48db53ae260 | 162 | ml | OCaml | benchmarks/C/sigma/sol319.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/sigma/sol319.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/sigma/sol319.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec sigma func a b =
(* val sigma : int * int * (int -> int) -> int*)
if a>b then 0 else (if a==b then (func a) else (sigma func (a+1) b)+(func a));;
| 40.5 | 82 | 0.537037 |
44550eccca2998f5bfc0c4daef54803cef38a435 | 556 | ml | OCaml | data/derived/comb/progs/unify/prog8220.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/prog3430.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3430.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n > 0 then [x] @ (clone x (n - 1)) else [];;
let padZero l1 l2 =
let len1 = List.length l1 in
let len2 = List.length l2 in
if len1 > len2
then (l1, ((clone 0 (len1 - len2)) @ l2))
else (((clone 0 (len2 - len1)) @ l1), l2);;
let rec removeZero l =
match l with | [] -> [] | h::t -> i... | 27.8 | 77 | 0.561151 |
446ca6451e93337a328df0366e97855acb1dadda | 5,390 | ml | OCaml | hphp/hack/src/providers/lru_cache.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/providers/lru_cache.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/lru_cache.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
type size = int
module type Entry = sig
type _ t
type 'a key = 'a t
type 'a value = 'a
val get_s... | 29.615385 | 80 | 0.616327 |
448fc009198db4eba240671821a24583f501c50b | 64,151 | ml | OCaml | src/typing/ty_normalizer.ml | goodmind/flow | 2e9141bc94c7ad1ccd22fea5dca0e5a5058bc2d0 | [
"MIT"
] | 1 | 2021-04-04T14:30:02.000Z | 2021-04-04T14:30:02.000Z | src/typing/ty_normalizer.ml | goodmind/flow | 2e9141bc94c7ad1ccd22fea5dca0e5a5058bc2d0 | [
"MIT"
] | null | null | null | src/typing/ty_normalizer.ml | goodmind/flow | 2e9141bc94c7ad1ccd22fea5dca0e5a5058bc2d0 | [
"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 Pervasives
open Utils_js
open Reason
open Loc_collections
module Env = Ty_normalizer_env
module T = Type
module VSet = ISet
... | 36.932067 | 100 | 0.613724 |
af36c8f3584bbbf417deaa63c9d570ceee5d0177 | 32 | ml | OCaml | src/upgrader.boot.ml | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | src/upgrader.boot.ml | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | 2 | 2018-01-12T08:41:59.000Z | 2020-12-30T21:57:31.000Z | src/upgrader.boot.ml | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | let upgrade _ = Fiber.return ()
| 16 | 31 | 0.6875 |
44850e3f026170e15400c8030b8815a3d1ac9560 | 1,284 | ml | OCaml | data/fa15/2068.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2068.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2068.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 = "[" ^ ((sepConcat "; " List.map (f, l)) ^ "]");;
(* fix
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
... | 14.758621 | 71 | 0.458723 |
8aae28d4551752fb26bf06c812efbf1ca06003d4 | 795 | ml | OCaml | data/fa15_min/0238.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/0238.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/0238.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 temp = f b in
match temp with | (a,boolean) -> if boolean then wwhile (f, a) else a;;
let fixpoint (f,b) = wwhile (let n x = (f, (x = (f x))) in (f, b));;
(* fix
let rec wwhile (f,b) =
let temp = f b in
match temp with | (a,boolean) -> if boolean then wwhile (f, a) else a;;
let ... | 14.722222 | 73 | 0.49434 |
44193bb753a792b57eb9018fa3d5b28d6884f41d | 8,247 | ml | OCaml | src/functorpack/modules/Yojson.ml | remixlabs/functorpack | 621082d160e5cf14e997356f67cf694c3165bb48 | [
"MIT"
] | null | null | null | src/functorpack/modules/Yojson.ml | remixlabs/functorpack | 621082d160e5cf14e997356f67cf694c3165bb48 | [
"MIT"
] | null | null | null | src/functorpack/modules/Yojson.ml | remixlabs/functorpack | 621082d160e5cf14e997356f67cf694c3165bb48 | [
"MIT"
] | null | null | null | exception Cannot_represent of string
module Safe = struct
type json =
[
| `Null
| `Bool of bool
| `Int of int
| `Intlit of string
| `Float of float
| `String of string
| `Assoc of (string * json) list
| `List of json list
| `Tuple of json list
| `Variant of (string * json ... | 29.244681 | 80 | 0.541409 |
8ade4c420bf9fe8a3c2c11ce1b0635df769889e6 | 3,406 | ml | OCaml | src/lib_benchmark/benchmark.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_benchmark/benchmark.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_benchmark/benchmark.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs. <contact@nomadic-labs.com> *)
... | 41.036145 | 80 | 0.553142 |
8af0b8992e0b96d6de19ed0e5031929caf2e3038 | 3,852 | ml | OCaml | src_test/test_deriving_eq.ml | labichn/ppx_deriving | 3b3dadef0ee1d0091f55f255659b702e3162dba4 | [
"MIT"
] | null | null | null | src_test/test_deriving_eq.ml | labichn/ppx_deriving | 3b3dadef0ee1d0091f55f255659b702e3162dba4 | [
"MIT"
] | null | null | null | src_test/test_deriving_eq.ml | labichn/ppx_deriving | 3b3dadef0ee1d0091f55f255659b702e3162dba4 | [
"MIT"
] | null | null | null | open OUnit2
(* Mostly it is sufficient to test that the derived code compiles. *)
let printer = string_of_bool
type a1 = int [@@deriving eq]
type a2 = int32 [@@deriving eq]
type a3 = int64 [@@deriving eq]
type a4 = nativeint [@@deriving eq]
type a5 = float [@@deriving eq]
type a6 = bool ... | 29.860465 | 83 | 0.601246 |
8ac91c97b0f0a07e7e5f163011963466380e4df9 | 236 | mli | OCaml | core/src/nativeint.mli | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | core/src/nativeint.mli | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | core/src/nativeint.mli | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | (** This module extends {{!Base.Nativeint}[Base.Nativeint]}. *)
(** @inline *)
include module type of struct
include Base.Nativeint
end
include
Int_intf.Extension with type t := t and type comparator_witness := comparator_witness
| 23.6 | 87 | 0.737288 |
8af5cb4c6dc8648759f62514a769a32619feb595 | 3,653 | ml | OCaml | src/app/cli/src/init/graphql_queries.ml | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/app/cli/src/init/graphql_queries.ml | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/init/graphql_queries.ml | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | null | null | null | module Decoders = Graphql_client.Decoders
module Get_wallets =
[%graphql
{|
query {
ownedWallets {
public_key: publicKey @bsDecoder(fn: "Decoders.public_key")
locked
balance {
total @bsDecoder(fn: "Decoders.uint64")
}
}
}
|}]
module Get_wallet =
[%graphql
{|
query ($public_key: PublicKey) {
... | 19.328042 | 93 | 0.648234 |
8a66f9005d33a9f448fb7c0eb395d713cedbd856 | 9,405 | ml | OCaml | programs/data.ml | sfu-natlang/yarowsky | 2c73d702909b4d3844b31a60947edfe72ab156b7 | [
"Apache-2.0"
] | 6 | 2015-05-03T14:44:29.000Z | 2020-10-07T05:00:02.000Z | programs/data.ml | sfu-natlang/yarowsky | 2c73d702909b4d3844b31a60947edfe72ab156b7 | [
"Apache-2.0"
] | null | null | null | programs/data.ml | sfu-natlang/yarowsky | 2c73d702909b4d3844b31a60947edfe72ab156b7 | [
"Apache-2.0"
] | 4 | 2015-01-16T23:47:51.000Z | 2021-03-28T21:53:41.000Z | (*
Data types and IO for common data.
*)
open Utils
module Label =
struct
type label = Label of int
type t = label
exception Unknown of string
module Map = Map.Make(struct type t = label;; let compare = compare end)
module Set = Set.Make(struct type t = label;; let compare = compare end)
module Table =
st... | 33.116197 | 169 | 0.692504 |
afa0d88af552c60751d18c0190764aebc031e06b | 145 | ml | OCaml | hollight/valid/mathd-algebra-43.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/valid/mathd-algebra-43.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/valid/mathd-algebra-43.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let mathd-algebra-43 = `!a:real b:real f:real->real.
(!x. f x = a * x + b) /\
(f (&7) = &4) /\
(f (&6) = &3)
==>
f (&3) = &0
`;;
| 18.125 | 52 | 0.351724 |
4460709f988418353ea1a1011c38fb0f78e6aa9a | 33,637 | ml | OCaml | infer/src/absint/ProcnameDispatcher.ml | amaksoft/infer | 11e3acb20e5f998efb82fcefb799fcce81613388 | [
"MIT"
] | 1 | 2021-02-17T06:08:10.000Z | 2021-02-17T06:08:10.000Z | infer/src/absint/ProcnameDispatcher.ml | amaksoft/infer | 11e3acb20e5f998efb82fcefb799fcce81613388 | [
"MIT"
] | 1 | 2021-04-19T09:50:03.000Z | 2021-04-19T09:50:03.000Z | infer/src/absint/ProcnameDispatcher.ml | amaksoft/infer | 11e3acb20e5f998efb82fcefb799fcce81613388 | [
"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
(** To be used in 'list_constraint *)
type accept_more
and end_of_list
(** To be used in 'emptyness *)
type empty
an... | 33.942482 | 100 | 0.649761 |
8a6371e359627c7e384ebf003acf0ba0ef57bc9d | 5,471 | mli | OCaml | src/lib_protocol_environment/sigs/v4/map.mli | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_protocol_environment/sigs/v4/map.mli | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_protocol_environment/sigs/v4/map.mli | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 35.75817 | 80 | 0.489307 |
44508e0c3863eb28c1f29ff90728ca172396a9d5 | 57,457 | ml | OCaml | src/lib/coda_graphql/coda_graphql.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/coda_graphql/coda_graphql.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/coda_graphql/coda_graphql.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Graphql_async
open Coda_base
open Signature_lib
open Currency
open Auxiliary_database
let result_of_exn f v ~error = try Ok (f v) with _ -> Error error
let result_of_or_error ?error v =
Result.map_error v ~f:(fun internal_error ->
let str_error = Error.to_string_hum internal_error in... | 37.676721 | 146 | 0.591834 |
4447347a52bed81b69944171518c82d1f0693a41 | 3,711 | ml | OCaml | magic_coloring_tail_general.ml | klchai/3_Coloring_Problem | 340fcf585954f604a295f6bd1d3721ca5476199d | [
"MIT"
] | null | null | null | magic_coloring_tail_general.ml | klchai/3_Coloring_Problem | 340fcf585954f604a295f6bd1d3721ca5476199d | [
"MIT"
] | null | null | null | magic_coloring_tail_general.ml | klchai/3_Coloring_Problem | 340fcf585954f604a295f6bd1d3721ca5476199d | [
"MIT"
] | null | null | null | #load "str.cma";;
open Printf;;
let entree = Sys.argv.(1);;
let q = int_of_string Sys.argv.(2);;
let sortie = "clauses.cnf";;
(* Formules logiques *)
type formule =
|Var of int
|Non of formule
|Et of formule * formule
|Ou of formule * formule;;
let non = function
|Non f -> f
|f -> Non f;;
let et f g = ... | 22.766871 | 133 | 0.509297 |
448b41d7b2770dc73ce6bb8c83f6534ec702f68e | 6,750 | ml | OCaml | data/derived/comb/progs/unify/prog1313.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/prog1313.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1313.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs = match xs with
| [] -> 0
| hd::tl -> hd + sumList tl
;;
let _ = sumList []
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9; 11]
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 23.93617 | 94 | 0.626963 |
8a637b88eb5f5bc33cfbc10c07b45703e31f66cb | 87,917 | ml | OCaml | src/sat/Solver.ml | c-cube/sidekick | be1c1573b15a68c22fee1d327a68ab719949a8c9 | [
"Apache-2.0"
] | 12 | 2019-06-10T22:13:36.000Z | 2022-01-05T08:19:07.000Z | src/sat/Solver.ml | c-cube/sidekick | be1c1573b15a68c22fee1d327a68ab719949a8c9 | [
"Apache-2.0"
] | 10 | 2019-08-20T14:44:03.000Z | 2022-01-06T16:56:14.000Z | src/sat/Solver.ml | c-cube/sidekick | be1c1573b15a68c22fee1d327a68ab719949a8c9 | [
"Apache-2.0"
] | 12 | 2019-07-17T16:00:18.000Z | 2021-12-06T18:24:08.000Z |
module type PLUGIN = sig
val has_theory : bool
(** [true] iff the solver is parametrized by a theory, not just
pure SAT. *)
include Solver_intf.PLUGIN_CDCL_T
end
module type S = Solver_intf.S
module type PLUGIN_CDCL_T = Solver_intf.PLUGIN_CDCL_T
module Clause_pool_id = Solver_intf.Clause_pool_id
let inv... | 35.322218 | 100 | 0.605901 |
449e3dec88ecfef92225043c7a891f9ef0006a22 | 85,660 | ml | OCaml | lib/Conf.ml | rgrinberg/ocamlformat | 50b646e6c238f558cdbf8bd6b6634b16f7e9ef6d | [
"MIT"
] | null | null | null | lib/Conf.ml | rgrinberg/ocamlformat | 50b646e6c238f558cdbf8bd6b6634b16f7e9ef6d | [
"MIT"
] | null | null | null | lib/Conf.ml | rgrinberg/ocamlformat | 50b646e6c238f558cdbf8bd6b6634b16f7e9ef6d | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 39.060648 | 94 | 0.637812 |
afb2e49c97bb2c6e3a696f25da98baa5ce0c8dca | 20,264 | ml | OCaml | data/derived/fa15/progs/cnstr/prog3022.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/cnstr/prog3024.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog3024.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.842788 | 208 | 0.637041 |
447c83fad15e586054dad23f90cfc6e2d69a915c | 2,795 | ml | OCaml | src/lib_shell/patch_context.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_shell/patch_context.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_shell/patch_context.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"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> *)
... | 53.75 | 79 | 0.524508 |
8a40addb5d8b28a8e5092cbb1adf95fda32c7816 | 167 | ml | OCaml | test/fib-sum.ml | prg-titech/pmincaml | 80810fc97df7f5d10340113eedb8be70a09de2f0 | [
"Apache-2.0"
] | 1 | 2022-01-25T01:46:13.000Z | 2022-01-25T01:46:13.000Z | test/fib-sum.ml | prg-titech/pmincaml | 80810fc97df7f5d10340113eedb8be70a09de2f0 | [
"Apache-2.0"
] | null | null | null | test/fib-sum.ml | prg-titech/pmincaml | 80810fc97df7f5d10340113eedb8be70a09de2f0 | [
"Apache-2.0"
] | null | null | null | let rec sum acc n =
if n < 1 then acc else
sum (acc+n) (n-1) in
let rec fib n =
if n < 1 then sum 0 1000 else
fib (n-1) + fib (n-2) in
print_int (fib 20)
| 20.875 | 32 | 0.568862 |
8aa5bb9825b79657b5b344119dcff76c5d683fb7 | 10,168 | ml | OCaml | snarky_universe/snarky_universe.ml | manueljacob/libsnark-ocaml | 40d60c59a1490901db2b16d18a7b9e176cd276a1 | [
"MIT"
] | null | null | null | snarky_universe/snarky_universe.ml | manueljacob/libsnark-ocaml | 40d60c59a1490901db2b16d18a7b9e176cd276a1 | [
"MIT"
] | null | null | null | snarky_universe/snarky_universe.ml | manueljacob/libsnark-ocaml | 40d60c59a1490901db2b16d18a7b9e176cd276a1 | [
"MIT"
] | 2 | 2021-07-28T19:41:49.000Z | 2022-01-28T17:08:08.000Z | module B = Bigint
module Cond (Impl : sig
module Boolean : sig
type var
end
end) (M : sig
type t
val if_ : Impl.Boolean.var -> then_:t -> else_:t -> t
end) : Intf.Cond_intf with type bool := Impl.Boolean.var and type t := M.t =
struct
open Impl
open M
type cond = Boolean.var * t
let ( -? ) c x :... | 20.214712 | 77 | 0.570417 |
44702b6bc646f5a3c6c8eb95105de442ad18bab2 | 551 | ml | OCaml | eigen/eigen.ml | kkirstein/eigen | 6f7963e969df5b6b416b71f6a57c8a867c59edec | [
"MIT"
] | 14 | 2018-03-25T04:35:56.000Z | 2021-09-11T18:27:35.000Z | eigen/eigen.ml | kkirstein/eigen | 6f7963e969df5b6b416b71f6a57c8a867c59edec | [
"MIT"
] | 25 | 2018-05-30T13:11:22.000Z | 2022-01-01T16:34:21.000Z | eigen/eigen.ml | kkirstein/eigen | 6f7963e969df5b6b416b71f6a57c8a867c59edec | [
"MIT"
] | 11 | 2018-05-02T11:16:04.000Z | 2021-11-16T03:16:30.000Z | (*
* Eigen - an OCaml interface to C++ Eigen library
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
module Dense = struct
module S = Eigen_dsmat_s
module D = Eigen_dsmat_d
module C = Eigen_dsmat_c
module Z = Eigen_dsmat_z
end
module Sparse = struct
module S = Eigen_spmat_s
mo... | 11.978261 | 63 | 0.705989 |
44538fadfd6067fd42f41882d4452321e3c806dc | 8,822 | ml | OCaml | data/derived/comb/progs/unify/prog3267.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/prog3267.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3267.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.571014 | 148 | 0.602131 |
440b381c23a5016d95f44cb4ecfaf9774a2fb728 | 25,389 | ml | OCaml | src/seplog/proof.ml | taquangtrung/discover | 2ae5e07db51737c1c84fbd6b74297d03c2e91c29 | [
"Apache-2.0"
] | 9 | 2021-11-24T03:33:31.000Z | 2022-01-06T03:57:06.000Z | src/seplog/proof.ml | taquangtrung/discover | 2ae5e07db51737c1c84fbd6b74297d03c2e91c29 | [
"Apache-2.0"
] | 78 | 2021-11-01T06:55:39.000Z | 2022-03-15T02:55:55.000Z | src/seplog/proof.ml | tnkhanh/discover-analyzer | 1e4d2c3e6a202e794ba2690d7737e5647a2d0335 | [
"Apache-2.0"
] | 3 | 2021-11-24T03:33:34.000Z | 2022-03-03T09:27:24.000Z | (********************************************************************
* This file is part of the source code analyzer Discover.
*
* Copyright (c) 2020-2022 Singapore Blockchain Innovation Programme.
* All rights reserved.
********************************************************************)
open Dcore
open Slir
o... | 28.241379 | 80 | 0.627988 |
afda101fe082e8bd72adc7956aa006a50dda203d | 3,831 | ml | OCaml | src/owl/core/owl_matrix_swap.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | src/owl/core/owl_matrix_swap.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | src/owl/core/owl_matrix_swap.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
open Bigarray
open Owl_core_types
external owl_float32_matrix_swap_rows
: ('a, 'b) owl_arr
-> int
-> int
-> int
-> int
-> unit
= "stub_float32_matrix_swap_rows"
external owl_float64_matrix_swap_rows
: ... | 23.218182 | 90 | 0.675803 |
443aaa5e3c00ab041500d24af4c312c1af313973 | 17,481 | ml | OCaml | lib/allfvGenerator.ml | uds-psl/autosubst-ocaml | f820bde3c51299b5f54ef21af39ac4654854d124 | [
"MIT"
] | 8 | 2022-01-02T12:01:15.000Z | 2022-01-16T13:50:59.000Z | lib/allfvGenerator.ml | uds-psl/autosubst-ocaml | f820bde3c51299b5f54ef21af39ac4654854d124 | [
"MIT"
] | null | null | null | lib/allfvGenerator.ml | uds-psl/autosubst-ocaml | f820bde3c51299b5f54ef21af39ac4654854d124 | [
"MIT"
] | null | null | null | open Util
module L = Language
open ScopeTypes
open Tactics
open CoqNames
open GallinaGen
open VernacGen
module AM = AutosubstModules
open Termutil
open RSEM.Syntax
open RSEM
let mk_abs intros body =
List.fold_right abs_ref intros body
(** [mk_ands ps] generates a nested junctions of the given propositions.
... | 40.93911 | 216 | 0.622848 |
8a845518f76674127e910f4bd7095a3d78d457ff | 190 | ml | OCaml | pkg/build.ml | dbuenzli/tick | 591a88a1fc20e9cfdbebdf9e859bc57eb991ce4e | [
"BSD-3-Clause"
] | 8 | 2015-08-13T02:08:41.000Z | 2020-10-22T01:29:28.000Z | pkg/build.ml | dbuenzli/tick | 591a88a1fc20e9cfdbebdf9e859bc57eb991ce4e | [
"BSD-3-Clause"
] | 3 | 2015-08-13T02:34:28.000Z | 2015-08-13T11:39:14.000Z | pkg/build.ml | dbuenzli/tick | 591a88a1fc20e9cfdbebdf9e859bc57eb991ce4e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env ocaml
#directory "pkg";;
#use "topkg.ml";;
let () =
Pkg.describe "tick" ~builder:`OCamlbuild [
Pkg.lib "pkg/META";
Pkg.doc "README.md";
Pkg.doc "CHANGES.md"; ]
| 19 | 44 | 0.594737 |
44adcf135f296cb67838b261dfdc88cd236e1d05 | 100 | mli | OCaml | plugins/x86/x86_tools.mli | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1,697 | 2015-01-09T07:17:41.000Z | 2022-03-26T17:48:05.000Z | plugins/x86/x86_tools.mli | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 685 | 2015-01-10T21:32:42.000Z | 2022-03-23T23:44:53.000Z | plugins/x86/x86_tools.mli | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 294 | 2015-01-10T15:51:57.000Z | 2022-03-20T05:37:22.000Z | open Core_kernel
open Bap.Std
module type S = X86_tools_types.S
module IA32 : S
module AMD64 : S
| 11.111111 | 33 | 0.75 |
447c20d64b899222bd41f02365e2ffaac73d5547 | 1,175 | ml | OCaml | data/fa15/2925.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2925.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2925.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec wwhile (f,b) =
let pair = f b in
let (b',c') = pair in if c' = false then b' else wwhile (f, b');;
let fixpoint (f,b) = wwhile (f, (b, (b != (f b))));;
(* fix
let rec wwhile (f,b) =
let pair = f b in
let (b',c') = pair in if c' = false then b' else wwhile (f, b');;
let fixpoint (f,b) = wwhile ((fu... | 14.506173 | 68 | 0.452766 |
4456e4a779fa3616d65546d279d2ccbd5ee91f14 | 1,347 | mli | OCaml | analysis/annotatedAttribute.mli | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/annotatedAttribute.mli | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/annotatedAttribute.mli | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"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 Ast
type property =
| ReadOnly
| ReadWrite
[@@deriving eq, show, compare]
type attribute = {
abstract: bool;
annotation: Annot... | 17.723684 | 66 | 0.655531 |
8aa9eba04d9b676d34f66b586013a9ca47dddbd2 | 1,899 | ml | OCaml | hphp/hack/src/client/clientCheckStatus.ml | yaslama/hhvm | 22887df5fd5e3f58652027800b5f4212e0af7c6c | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2015-07-28T23:53:32.000Z | 2015-07-31T15:17:21.000Z | hphp/hack/src/client/clientCheckStatus.ml | yaslama/hhvm | 22887df5fd5e3f58652027800b5f4212e0af7c6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientCheckStatus.ml | yaslama/hhvm | 22887df5fd5e3f58652027800b5f4212e0af7c6c | [
"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.
*
*)
open Core
ope... | 32.741379 | 82 | 0.640864 |
442266da6bdbe92d7111af5b0c431858c72cd7f4 | 636 | ml | OCaml | examples/inuit_nav.ml | let-def/sturgeon | 97023209c6ddea3b113ef791b40e8e670742379d | [
"0BSD"
] | 13 | 2016-05-16T20:41:21.000Z | 2021-12-17T01:35:56.000Z | examples/inuit_nav.ml | def-lkb/emacs-serge | 97023209c6ddea3b113ef791b40e8e670742379d | [
"0BSD"
] | 2 | 2016-07-12T13:52:36.000Z | 2017-01-30T15:46:59.000Z | examples/inuit_nav.ml | def-lkb/emacs-serge | 97023209c6ddea3b113ef791b40e8e670742379d | [
"0BSD"
] | 2 | 2016-11-08T17:46:36.000Z | 2018-05-24T17:31:07.000Z | open Sturgeon
open Inuit.Cursor
open Inuit_widget
let () =
Sturgeon_recipes_command.text_command @@ fun ~args shell ->
Session.cancel args;
let k = Stui.create_cursor shell ~name:"nav-server" in
let nav =
Nav.make "Épiménide" @@ fun {Nav. title = _; body; nav} ->
text body "Je mens.\n\n";
link body... | 28.909091 | 62 | 0.584906 |
8a84aea7fe00a5dbeea71d8503c20fad94c0b0ea | 249 | mli | OCaml | libraries/sqs/lib/changeMessageVisibilityBatch.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/sqs/lib/changeMessageVisibilityBatch.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/sqs/lib/changeMessageVisibilityBatch.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = ChangeMessageVisibilityBatchRequest.t
type output = ChangeMessageVisibilityBatchResult.t
type error = Errors_internal.t
include
(Aws.Call with type input := input and type output := output and type
error := error) | 35.571429 | 75 | 0.771084 |
44a640f76def27b74973dc39f90a76fc087869f9 | 2,348 | ml | OCaml | src/parser_utils/output/printers/replacement_printer.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 1 | 2019-03-11T16:27:05.000Z | 2019-03-11T16:27:05.000Z | src/parser_utils/output/printers/replacement_printer.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | src/parser_utils/output/printers/replacement_printer.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"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
type patch = (int * int * string) list
let show_patch p: string =
ListUtils.to_string ""
(fun (s, e,... | 34.529412 | 89 | 0.689523 |
8a8e7f7b71f605e3b98e2ccd766c6a0783a2bc58 | 9,922 | ml | OCaml | src/kat_trans.ml | erickoskinen/knotical | e3c87ded34aa4f2ff38622174d0b73e9ff160074 | [
"MIT"
] | 3 | 2019-07-08T20:08:28.000Z | 2020-10-09T20:17:36.000Z | src/kat_trans.ml | erickoskinen/knotical | e3c87ded34aa4f2ff38622174d0b73e9ff160074 | [
"MIT"
] | null | null | null | src/kat_trans.ml | erickoskinen/knotical | e3c87ded34aa4f2ff38622174d0b73e9ff160074 | [
"MIT"
] | 3 | 2019-07-19T22:08:21.000Z | 2021-05-05T18:56:51.000Z | open Globals
open Lib.Print
module H = Extlib.ExtHashtbl.Hashtbl
module SL = Spl_lbl
module B = Boolexpr
module S = Spl_syn
module SU = Spl_utils
type 'a iproc_output =
(S.point, int, 'a Apron.Abstract1.t, unit) Fixpoint.output
module type KSig =
sig
type key
type var
type sym
type test
type expr
type... | 28.59366 | 93 | 0.632836 |
4426795c9e9b1ef70fc769a4cdf684dffca44f04 | 4,535 | mli | OCaml | ocaml_typing/407/parmatch.mli | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | ocaml_typing/407/parmatch.mli | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 439 | 2018-05-25T21:16:18.000Z | 2021-12-03T11:28:10.000Z | ocaml_typing/407/parmatch.mli | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 107 | 2018-05-30T23:53:50.000Z | 2022-01-10T10:50:53.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 38.109244 | 89 | 0.570011 |
4450a07c6f9d710015e5b0aefcb358c681b39f07 | 82,021 | ml | OCaml | src/ocaml/typer_403/typing/env.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_403/typing/env.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_403/typing/env.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 32.75599 | 88 | 0.631777 |
8a47673f4e8f71062601840f6e17296f14b382a8 | 3,676 | ml | OCaml | lang/test/test_runtime.ml | stew2003/Stew-3000 | fe2c95d2ffdfcaeedade9b64c69efcccc02468cb | [
"MIT"
] | 2 | 2021-04-06T01:51:18.000Z | 2022-02-02T03:42:30.000Z | lang/test/test_runtime.ml | stew2003/Stew-3000 | fe2c95d2ffdfcaeedade9b64c69efcccc02468cb | [
"MIT"
] | 16 | 2021-04-12T12:25:42.000Z | 2021-12-27T01:33:39.000Z | lang/test/test_runtime.ml | stew2003/Stew-3000 | fe2c95d2ffdfcaeedade9b64c69efcccc02468cb | [
"MIT"
] | 1 | 2021-04-11T18:54:44.000Z | 2021-04-11T18:54:44.000Z | open OUnit2
open Compiler
open Compiler.Ast
open Asm.Isa
open Testing_utils
let pgrm_from_body (body : string) : prog =
Parser.parse (Printf.sprintf "void main() { %s }" body)
let test_expr_detection _ =
assert_equal true (Runtime.uses_mult (pgrm_from_body "2 * 3;"));
assert_equal false (Runtime.uses_mult (pgrm... | 37.131313 | 89 | 0.662677 |
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.