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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa8b79d545c834526a9b3d1be026ad834ab0c516 | 27,535 | ml | OCaml | src/irmin-pack/inode.ml | smorimoto/irmin | 6287d115dc615459f8a4bc711e5388c353f98017 | [
"0BSD"
] | null | null | null | src/irmin-pack/inode.ml | smorimoto/irmin | 6287d115dc615459f8a4bc711e5388c353f98017 | [
"0BSD"
] | null | null | null | src/irmin-pack/inode.ml | smorimoto/irmin | 6287d115dc615459f8a4bc711e5388c353f98017 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2019 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 31.83237 | 80 | 0.51371 |
aa4f66327afe63e4c3a85e529dbf2ecf1d1d3667 | 3,430 | ml | OCaml | lib/fitch.ml | biocaml/phylogenetics | ebf87b3aef63babe9b41b9d44c303f61f7921205 | [
"CECILL-B"
] | 11 | 2017-12-05T16:13:46.000Z | 2021-11-16T17:02:32.000Z | lib/fitch.ml | biocaml/phylogenetics | ebf87b3aef63babe9b41b9d44c303f61f7921205 | [
"CECILL-B"
] | 8 | 2020-01-05T18:49:57.000Z | 2022-03-16T19:47:45.000Z | lib/fitch.ml | biocaml/phylogenetics | ebf87b3aef63babe9b41b9d44c303f61f7921205 | [
"CECILL-B"
] | 2 | 2021-03-29T13:21:25.000Z | 2022-03-29T19:08:37.000Z | open Core_kernel
let default_cost x y =
if x = y then 0. else 1.
let rec forward ?(cost = default_cost) ~n ~category (t : (_,'l,_) Tree.t) =
match t with
| Leaf l ->
let costs =
match category l with
| Some cat ->
if cat < 0 || cat >= n then invalid_arg "category returned integer not in ... | 29.067797 | 90 | 0.531778 |
aa659fcf41b5cf5bfc73298321546117c21c611d | 116 | mli | OCaml | lib/error.mli | emillon/ocaml-zeit | cdcdd0b155d406d1b8c8947e3c620527c3c9ecf7 | [
"BSD-2-Clause"
] | 32 | 2018-09-18T18:01:33.000Z | 2020-11-03T02:26:56.000Z | lib/error.mli | DavidAlphaFox/ocaml-zeit | cdcdd0b155d406d1b8c8947e3c620527c3c9ecf7 | [
"BSD-2-Clause"
] | 1 | 2018-09-19T08:41:45.000Z | 2018-09-19T08:41:45.000Z | lib/error.mli | DavidAlphaFox/ocaml-zeit | cdcdd0b155d406d1b8c8947e3c620527c3c9ecf7 | [
"BSD-2-Clause"
] | 3 | 2018-10-23T15:46:08.000Z | 2022-03-24T19:08:41.000Z | type t =
| Http_error
| Json_error
| Deserialization_error
[@@deriving eq, show]
val to_string : t -> string
| 14.5 | 27 | 0.681034 |
aa6e555f915abb54c947b75b3ed149136fb32ef9 | 19,457 | ml | OCaml | src/stages/4-ast_core/combinators.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 1 | 2021-11-12T11:41:16.000Z | 2021-11-12T11:41:16.000Z | src/stages/4-ast_core/combinators.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | src/stages/4-ast_core/combinators.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | open Types
module S = Ast_sugar
open Stage_common.Constant
let make_t ?(loc = Location.generated) ?sugar type_content = {type_content; location=loc; sugar }
let make_e ?(loc = Location.generated) ?sugar expression_content = {
expression_content ;
location = loc ;
sugar ;
}
let t_variable ?loc ?sugar t : t... | 46.659472 | 159 | 0.700982 |
aa928231547e4a7c2a5d2803bf6a6e722dae5330 | 100 | mli | OCaml | src/encoding.mli | ergl/kset | 6da5237bdd2394667ae31d6754136587408aa867 | [
"MIT"
] | null | null | null | src/encoding.mli | ergl/kset | 6da5237bdd2394667ae31d6754136587408aa867 | [
"MIT"
] | null | null | null | src/encoding.mli | ergl/kset | 6da5237bdd2394667ae31d6754136587408aa867 | [
"MIT"
] | null | null | null | type t = string
val d_int : Int32.t -> t
val d_float : Nativeint.t -> t
val d_string : string -> t
| 16.666667 | 30 | 0.65 |
aa4f8f8c55578e12b014f7f58535f53dd8c6b390 | 522 | mli | OCaml | server/network/socket.mli | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | 3 | 2019-03-29T22:32:12.000Z | 2019-04-16T08:54:57.000Z | server/network/socket.mli | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | 1 | 2021-05-11T20:40:20.000Z | 2021-05-11T20:40:20.000Z | server/network/socket.mli | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | null | null | null | (** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Core
open Pyre
type t = Unix.File_descr.t
module Table = Unix.File_descr.Table
val initialize_unix_socket: Path.t -> t
val open... | 20.076923 | 82 | 0.699234 |
aa93551f16786a3513cc006d6dc7c417be699d23 | 572 | mli | OCaml | src/Tiny_httpd_buf.mli | c-cube/simplehttpserver | c8d89e24be18240c3eee27737713a5e70a68b7f5 | [
"MIT"
] | 6 | 2019-11-14T08:50:35.000Z | 2019-11-15T14:21:54.000Z | src/Tiny_httpd_buf.mli | c-cube/simplehttpserver | c8d89e24be18240c3eee27737713a5e70a68b7f5 | [
"MIT"
] | 3 | 2019-11-14T05:56:23.000Z | 2019-11-17T18:12:25.000Z | src/Tiny_httpd_buf.mli | c-cube/simplehttpserver | c8d89e24be18240c3eee27737713a5e70a68b7f5 | [
"MIT"
] | null | null | null |
(** Simple buffer.
These buffers are used to avoid allocating too many byte arrays when
processing streams and parsing requests.
@since 0.12
*)
type t
val size : t -> int
val clear : t -> unit
val create : ?size:int -> unit -> t
val contents : t -> string
val bytes_slice : t -> bytes
(** Access underly... | 20.428571 | 72 | 0.645105 |
bce1ae70f1c256cd0440cd72298b88df2dc3385c | 6,282 | ml | OCaml | lib/sourcemap.ml | rung-tools/ocaml-sourcemap | 6fc2ae3185290d17e5641efc6c7007b6946585fe | [
"MIT"
] | 1 | 2018-03-22T17:32:35.000Z | 2018-03-22T17:32:35.000Z | lib/sourcemap.ml | rung-tools/ocaml-sourcemap | 6fc2ae3185290d17e5641efc6c7007b6946585fe | [
"MIT"
] | null | null | null | lib/sourcemap.ml | rung-tools/ocaml-sourcemap | 6fc2ae3185290d17e5641efc6c7007b6946585fe | [
"MIT"
] | null | null | null | module Base64 = struct
exception Out_of_range of string
let encode number =
let map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" in
match number >= 0 && number < 64 with
| true -> map.[number]
| false -> raise @@ Out_of_range "Must be between 0 and 63"
e... | 40.269231 | 113 | 0.565425 |
aa0c8eb7f364f5a34040c5ae9edbf3caf6185c95 | 9,228 | ml | OCaml | src/commands/commandConnect.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2020-07-11T17:49:59.000Z | 2020-07-11T17:49:59.000Z | src/commands/commandConnect.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/commands/commandConnect.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.000Z | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module CCS = CommandConnectSimple
type env = {
root: Path.t;
autostart: bool;
retries: int;
expiry: float option;
lazy_... | 35.087452 | 98 | 0.674686 |
bcd1403b227a61a5e1c9890243b49899759c4e9a | 4,439 | ml | OCaml | src/irmin-pack/stats.ml | maiste-forks/irmin | b1c2518017be7faa0205a9238fd4085149643755 | [
"0BSD"
] | null | null | null | src/irmin-pack/stats.ml | maiste-forks/irmin | b1c2518017be7faa0205a9238fd4085149643755 | [
"0BSD"
] | null | null | null | src/irmin-pack/stats.ml | maiste-forks/irmin | b1c2518017be7faa0205a9238fd4085149643755 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2018-2021 Tarides <contact@tarides.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AN... | 30.197279 | 78 | 0.69002 |
bce2cee486427e06f60e4f2d36a89e1a5d6f029a | 1,023 | ml | OCaml | day14/part1/solution.ml | mrattfeldt/advent-of-code-2017 | 481be01b4e1b382cc1474a08db008a5f78a97005 | [
"MIT"
] | null | null | null | day14/part1/solution.ml | mrattfeldt/advent-of-code-2017 | 481be01b4e1b382cc1474a08db008a5f78a97005 | [
"MIT"
] | null | null | null | day14/part1/solution.ml | mrattfeldt/advent-of-code-2017 | 481be01b4e1b382cc1474a08db008a5f78a97005 | [
"MIT"
] | null | null | null | (* Day 14: Disk Defragmentation *)
(* ocamlbuild -use-ocamlfind -pkgs core,str -tag thread solution.native *)
(* ./solution.native < <input-file> *)
open Core
let bit_of_hex hex =
let zero_pad s = match String.length s with 4 -> s | n -> (String.make (4 - n) '0') ^ s in
let int_of_hex hex = int_of_string ("0x" ^... | 34.1 | 92 | 0.59824 |
aa7639eaaad9aa7bb29f47f34b532f4681aa0cca | 685 | ml | OCaml | hack/hackfmt/nesting.ml | nkt/flow | 2811b484442cff224a82cae47bbb877caa7ed3de | [
"BSD-3-Clause"
] | 2 | 2019-04-15T09:36:00.000Z | 2021-01-19T15:27:20.000Z | hack/hackfmt/nesting.ml | gajus/flow | 8a475d7b6304297fbb4740d3325e99385c8a4f68 | [
"BSD-3-Clause"
] | null | null | null | hack/hackfmt/nesting.ml | gajus/flow | 8a475d7b6304297fbb4740d3325e99385c8a4f68 | [
"BSD-3-Clause"
] | null | null | null | (**
* 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.
*
*)
type t = {
... | 19.027778 | 80 | 0.627737 |
44ca2f33ba7a8bee240f35b12e7f53a215fe466f | 18,773 | ml | OCaml | data/derived/comb/progs/unify/prog1918.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/prog1918.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1918.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.535529 | 208 | 0.66308 |
aa606ca266c4ffe525c936abb71766be2a679ed6 | 2,989 | ml | OCaml | xapi-idl/lib_test/debug_test.ml | edwintorok/message-switch | bd5c2e4db86998cba97b02ab2d4e1b91067e8817 | [
"0BSD"
] | 6 | 2015-05-09T18:10:05.000Z | 2022-02-04T19:09:55.000Z | xapi-idl/lib_test/debug_test.ml | xcp-ng/message-switch | 969eb1d156c6db0e2009696ada305ec4bc765a9d | [
"0BSD"
] | 35 | 2015-04-08T10:32:16.000Z | 2021-11-05T15:17:13.000Z | xapi-idl/lib_test/debug_test.ml | xcp-ng/message-switch | 969eb1d156c6db0e2009696ada305ec4bc765a9d | [
"0BSD"
] | 21 | 2015-06-17T13:55:18.000Z | 2022-02-04T19:13:23.000Z | let assert_levels brand (crit, err, warn, info, debug) =
Alcotest.(check bool)
(brand ^ " critical")
(Debug.is_disabled brand Syslog.Crit)
crit ;
Alcotest.(check bool)
(brand ^ " error")
(Debug.is_disabled brand Syslog.Err)
err ;
Alcotest.(check bool)
(brand ^ " warning")
(Debug.is... | 39.328947 | 77 | 0.698227 |
aa1bcd25c05a0a05c041fad449304d54de1cc1a4 | 5,572 | ml | OCaml | hphp/hack/src/facts/symbols/jsonSymbolIndexWriter.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/facts/symbols/jsonSymbolIndexWriter.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/facts/symbols/jsonSymbolIndexWriter.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Hh_json
open IndexBuilderTypes
open SearchUtils
let record_one_jsonfile
(path : string) (p... | 35.044025 | 80 | 0.569813 |
aa4f4d70b6dea9687c24d1de03ccaaf6914a26da | 588 | mli | OCaml | lib/litmus_c/src/lexer.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 2 | 2021-06-09T22:28:00.000Z | 2021-06-30T18:08:22.000Z | lib/litmus_c/src/lexer.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 13 | 2021-02-10T08:57:29.000Z | 2021-02-16T16:17:25.000Z | lib/litmus_c/src/lexer.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 1 | 2021-06-09T22:28:01.000Z | 2021-06-09T22:28:01.000Z | (* This file is part of c4f.
Copyright (c) 2018-2021 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 34.588235 | 77 | 0.717687 |
8a7c09db2e278b2d28ff56f599c34f4c44d50321 | 4,947 | ml | OCaml | term/unification.ml | s-falke/sail2 | 14583d1bcff7d301c89f9ce363adffbf3f1e2590 | [
"Apache-2.0"
] | 2 | 2015-02-21T00:47:09.000Z | 2018-02-07T23:33:04.000Z | term/unification.ml | s-falke/sail2 | 14583d1bcff7d301c89f9ce363adffbf3f1e2590 | [
"Apache-2.0"
] | null | null | null | term/unification.ml | s-falke/sail2 | 14583d1bcff7d301c89f9ce363adffbf3f1e2590 | [
"Apache-2.0"
] | null | null | null | (*
Implementation of syntactic unification/matching.
@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/... | 33.883562 | 123 | 0.589044 |
4460023d2586ca7628f0d319369570bb8313c2cc | 188 | mli | OCaml | src/lib_webassembly/interpreter/binary/decode.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_webassembly/interpreter/binary/decode.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_webassembly/interpreter/binary/decode.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | exception Code of Source.region * string
val decode : string -> string -> Ast.module_ (* raises Code *)
val decode_custom : Ast.name -> string -> string -> string list (* raises Code *)
| 31.333333 | 81 | 0.68617 |
aa6f516b7e50043719df32488a6aa4ec8e7c723a | 325 | mli | OCaml | vendor/async_rpc_kernel/src/persistent_connection.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/async_rpc_kernel/src/persistent_connection.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/async_rpc_kernel/src/persistent_connection.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Core_kernel
open! Async_kernel
include module type of struct include Persistent_connection_kernel end
module Rpc : S
with type conn = Rpc.Connection.t
and type address = Host_and_port.t
module Versioned_rpc : S
with type conn = Versioned_rpc.Connection_with_menu.t
and type address = Host_and_po... | 25 | 70 | 0.775385 |
bcd8ccea6cf1c4a573f95fa7c335c18ac9f3cd6c | 4,193 | ml | OCaml | src/optimization/ljs_alpha_rename.ml | raugfer/LambdaS5 | f0bf5c7baf1daa4ead4e398ba7d430bedb7de9cf | [
"BSD-3-Clause"
] | null | null | null | src/optimization/ljs_alpha_rename.ml | raugfer/LambdaS5 | f0bf5c7baf1daa4ead4e398ba7d430bedb7de9cf | [
"BSD-3-Clause"
] | null | null | null | src/optimization/ljs_alpha_rename.ml | raugfer/LambdaS5 | f0bf5c7baf1daa4ead4e398ba7d430bedb7de9cf | [
"BSD-3-Clause"
] | null | null | null | open Prelude
open Ljs_syntax
open Ljs_opt
(* given a lambda definition, and a set of potential conflict ids,
alpha rename the lambda formal arguments to be distinguishing from
the given ids set.
*)
let is_empty_inter s1 s2 =
IdSet.is_empty (IdSet.inter s1 s2)
(* env is used for name replacement: old name => ... | 40.317308 | 80 | 0.659194 |
aa6ca3d85336b000f79779c0c3fd45bf3165a28c | 114 | ml | OCaml | benchmarks/C/iter/sol179.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/iter/sol179.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/iter/sol179.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec iter ((n : int), (f : 'a->'a)) (x : 'a) : 'a =
if n==0 then x
else let y = f(x) in
iter (n-1, f) y
;;
| 19 | 55 | 0.429825 |
aa0576a359071c713b0f3472dab6b209a698566d | 2,219 | ml | OCaml | duniverse/opam/src/crowbar/opamActionGraph_crowbar.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/crowbar/opamActionGraph_crowbar.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/crowbar/opamActionGraph_crowbar.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* Copyright 2019 INRIA *)
(* *)
(* All righ... | 34.671875 | 76 | 0.529968 |
8a4094e3dfe919d7f443cd2eb64ee919692b70dc | 426 | ml | OCaml | infer/src/unit/clang/ClangTests.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | null | null | null | infer/src/unit/clang/ClangTests.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | 2 | 2020-11-13T19:42:27.000Z | 2020-11-13T19:49:19.000Z | infer/src/unit/clang/ClangTests.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2017 - 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
... | 30.428571 | 91 | 0.755869 |
aa67bf7c21eaf03e18b3c8b1e444d7e132952963 | 969 | mli | OCaml | src/mongrel2.mli | mk270/xbreed | 15da7b5bf0f7b8d47e5c823bcef46ceddfbfd326 | [
"Apache-2.0"
] | 1 | 2015-06-17T14:54:39.000Z | 2015-06-17T14:54:39.000Z | src/mongrel2.mli | mk270/xbreed | 15da7b5bf0f7b8d47e5c823bcef46ceddfbfd326 | [
"Apache-2.0"
] | null | null | null | src/mongrel2.mli | mk270/xbreed | 15da7b5bf0f7b8d47e5c823bcef46ceddfbfd326 | [
"Apache-2.0"
] | null | null | null |
(*
XBreed, a Mongrel2 handler for OCaml
Copyright (C) 2013 Martin Keegan
This programme is free software; you may redistribute and/or modify
it under the terms of the Apache License v2.0
*)
(* this code isn't even supposed to be alpha quality - it's just a hack ATM *)
type ('a, 'b, 'c, 'd, 'e) t
type mon... | 23.634146 | 90 | 0.666667 |
bcff05f5a94b7588395695cfc00c89c5d882d12a | 17,415 | mly | OCaml | hphp/hack/src/hhbc/hhas_parser.mly | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_parser.mly | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_parser.mly | simonwelsh/hhvm | d4f2f960f29fc66e0ed615b8fa7746a42aafb173 | [
"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.
*... | 30.234375 | 138 | 0.615791 |
4424fb74542a934d7cb521cdabee87d5c1d4024f | 2,856 | ml | OCaml | interprocedural_analyses/taint/callGraphBuilder.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | 1 | 2019-12-31T01:08:13.000Z | 2019-12-31T01:08:13.000Z | interprocedural_analyses/taint/callGraphBuilder.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/callGraphBuilder.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"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 Analysis
open Ast
module DefaultBuilder = Callgraph.DefaultBuilder
let initialize () = DefaultBuilder.initialize ()
let add_... | 36.151899 | 100 | 0.619398 |
bce430eff2c5c8af936f1a21ef2cc3cadaef7908 | 212 | mli | OCaml | libraries/cloudwatch/lib/listDashboards.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/cloudwatch/lib/listDashboards.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/cloudwatch/lib/listDashboards.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = ListDashboardsInput.t
type output = ListDashboardsOutput.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 19.272727 | 85 | 0.764151 |
44a317a5a52ecc0dc387f152ecc4f0ed5ab866ea | 3,996 | ml | OCaml | icfpcontest2004/lib.ml | mjambon/mjambon2016 | bd644e0a42cacba56d0260982614d1ef5c8305b3 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-11-02T04:11:52.000Z | 2020-11-02T04:11:52.000Z | icfpcontest2004/lib.ml | mjambon/mjambon2016 | bd644e0a42cacba56d0260982614d1ef5c8305b3 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | icfpcontest2004/lib.ml | mjambon/mjambon2016 | bd644e0a42cacba56d0260982614d1ef5c8305b3 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | open Language.Types
open Shortcuts
type f = string -> string -> string instr
let f1 f st = f st st
let f2 f st1 st2 = f st1
let ign = f1
let dup = f2
(* Higher order functions dealing with type f *)
let l_or subtasks =
let rec build i = function
[last] -> ["or" ^^ i, last return fail]
| a :: rest ->
... | 24.666667 | 73 | 0.633884 |
aa063f4b8621be769a9e48dda29fe91a5e028009 | 41 | ml | OCaml | src/rltl/expgen.ml | juliansf/rltl2ba | 45456b3ef1faa8f1bd95d20581b17fc6246ff3cd | [
"BSD-3-Clause"
] | 2 | 2015-06-25T19:16:40.000Z | 2017-11-01T15:32:15.000Z | src/rltl/expgen.ml | juliansf/rltl2ba | 45456b3ef1faa8f1bd95d20581b17fc6246ff3cd | [
"BSD-3-Clause"
] | null | null | null | src/rltl/expgen.ml | juliansf/rltl2ba | 45456b3ef1faa8f1bd95d20581b17fc6246ff3cd | [
"BSD-3-Clause"
] | null | null | null | include Expgen_private
include Printexpr
| 13.666667 | 22 | 0.902439 |
aa5d2f5a3729c97a7fe3b99c8a9b620d30a2a3ae | 26,538 | ml | OCaml | src/typing/typerDisplay.ml | tcdude/haxe | 1f930b67960889bbd6cadcf39405c35a9a7d5d6f | [
"MIT"
] | 2 | 2021-03-19T13:46:08.000Z | 2021-12-04T11:18:51.000Z | src/typing/typerDisplay.ml | tcdude/haxe | 1f930b67960889bbd6cadcf39405c35a9a7d5d6f | [
"MIT"
] | 1 | 2015-05-05T02:11:48.000Z | 2015-05-05T02:11:48.000Z | src/typing/typerDisplay.ml | tcdude/haxe | 1f930b67960889bbd6cadcf39405c35a9a7d5d6f | [
"MIT"
] | 2 | 2015-05-04T19:31:18.000Z | 2016-12-14T03:01:56.000Z | open Globals
open Ast
open DisplayTypes
open DisplayMode
open CompletionResultKind
open CompletionItem
open CompletionModuleKind
open CompletionModuleType
open ClassFieldOrigin
open DisplayException
open DisplayEmitter
open Display
open Common
open Type
open Typecore
open TyperBase
open Fields
open CallUnification
open... | 37.696023 | 176 | 0.670322 |
aa393b5cd74464f51eb81e2172549a31e9031f7b | 1,809 | mli | OCaml | debugger/4.07.1/eval.mli | progman1/genprint-lib | acc1e5cc46b9ce6191d0306f51337581c93ffe94 | [
"MIT"
] | 20 | 2019-07-19T15:10:09.000Z | 2021-12-11T22:10:23.000Z | debugger/4.07.1/eval.mli | progman1/genprint-lib | acc1e5cc46b9ce6191d0306f51337581c93ffe94 | [
"MIT"
] | null | null | null | debugger/4.07.1/eval.mli | progman1/genprint-lib | acc1e5cc46b9ce6191d0306f51337581c93ffe94 | [
"MIT"
] | 2 | 2019-07-19T11:47:44.000Z | 2021-09-30T16:15:24.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 43.071429 | 76 | 0.430625 |
aa531851b9b305715bcfeeb2122a4391eabed95f | 153,641 | ml | OCaml | src/translate/translate.ml | dnaumann/RelRL | 7796c4128f95b10a1a80568ac0a27f523e593bd9 | [
"MIT"
] | null | null | null | src/translate/translate.ml | dnaumann/RelRL | 7796c4128f95b10a1a80568ac0a27f523e593bd9 | [
"MIT"
] | null | null | null | src/translate/translate.ml | dnaumann/RelRL | 7796c4128f95b10a1a80568ac0a27f523e593bd9 | [
"MIT"
] | null | null | null | (* translate.ml -- translate source language to Why3 parse trees *)
open Ast
open Astutil
open Lib
open Typing
open Pretrans
open Pretty
open Why3
open Why3constants
open Why3util
open Build_operators
let trans_debug = ref false
let gen_frame_lemma = ref true
(* ----------------------------------------------------... | 41.603304 | 80 | 0.647093 |
aa4ddc2ce8aec0a773b4e16efb78897f17dba463 | 15 | ml | OCaml | test/driver/skip-hash-bang/test.ml | toots/ppxlib | 3301551fb943a84a8726b51791b8d796ddc84849 | [
"Apache-2.0"
] | 2 | 2019-06-28T07:03:50.000Z | 2021-12-17T02:58:14.000Z | test/driver/skip-hash-bang/test.ml | toots/ppxlib | 3301551fb943a84a8726b51791b8d796ddc84849 | [
"Apache-2.0"
] | null | null | null | test/driver/skip-hash-bang/test.ml | toots/ppxlib | 3301551fb943a84a8726b51791b8d796ddc84849 | [
"Apache-2.0"
] | 2 | 2018-08-24T01:30:01.000Z | 2021-12-17T02:59:06.000Z | #!ignored_line
| 7.5 | 14 | 0.8 |
44e631c29158153bb3fc6507e6aafa0eef6729dd | 134 | ml | OCaml | OCaml from the Very Beginning/Chapter 3/example02.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | OCaml from the Very Beginning/Chapter 3/example02.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | OCaml from the Very Beginning/Chapter 3/example02.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | let isvowel c =
match c with
'a' -> true
| 'e' -> true
| 'i' -> true
| 'o' -> true
| 'u' -> true
| _ -> false
| 14.888889 | 16 | 0.38806 |
bc06a852c6aa47f00bea848e834d578a286c919f | 26,818 | ml | OCaml | src/upgrader/dune_upgrader.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | null | null | null | src/upgrader/dune_upgrader.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 1 | 2017-12-08T01:25:07.000Z | 2017-12-08T01:25:07.000Z | src/upgrader/dune_upgrader.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 1 | 2017-12-07T21:21:12.000Z | 2017-12-07T21:21:12.000Z | open! Dune_engine
open! Stdune
open Import
type rename_and_edit =
{ original_file : Path.Source.t
; extra_files_to_delete : Path.Source.t list
; new_file : Path.Source.t
; contents : string
}
type todo =
{ mutable to_rename_and_edit : rename_and_edit list
; mutable to_edit : (Path.Source.t * string) lis... | 36.240541 | 81 | 0.588075 |
bce49c416399679c112b119110fc4443b2ec8b0e | 283 | ml | OCaml | src/lib/coda_base/signature.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | 1 | 2018-11-01T06:43:26.000Z | 2018-11-01T06:43:26.000Z | src/lib/coda_base/signature.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/signature.ml | ValarDragon/coda | 2a73c37c22c4029fcfb0b2a444115eead94bdb8b | [
"Apache-2.0"
] | null | null | null | open Core
module Stable = struct
module V1 = struct
type t = Snark_params.Tock.Field.t * Snark_params.Tock.Field.t
[@@deriving sexp, eq, compare, hash, bin_io]
end
end
include Stable.V1
open Snark_params.Tick
type var = Inner_curve.Scalar.var * Inner_curve.Scalar.var
| 20.214286 | 66 | 0.734982 |
aa99b155fe9de57c9509b8fe26022c050fca308c | 6,659 | ml | OCaml | src/semantics/doc_extract_helpers.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | null | null | null | src/semantics/doc_extract_helpers.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | null | null | null | src/semantics/doc_extract_helpers.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | null | null | null | open IlluaminateCore
open Doc_syntax
open struct
module C = Doc_comment
end
module Tag = struct
let type_mismatch = Error.Tag.make ~attr:[ Default ] ~level:Warning "doc:type-mismatch"
let kind_mismatch = Error.Tag.make ~attr:[ Default ] ~level:Error "doc:kind-mismatch"
let all = [ kind_mismatch; type_mismat... | 38.491329 | 100 | 0.601141 |
aa8af8d67cce5ed20ab07df640d37664385aa053 | 35,369 | ml | OCaml | zenon/mltoll.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 31 | 2016-08-16T14:58:40.000Z | 2022-02-19T18:38:07.000Z | zenon/mltoll.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 49 | 2020-03-04T18:13:13.000Z | 2022-02-07T17:43:24.000Z | zenon/mltoll.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | 12 | 2020-02-26T19:58:37.000Z | 2021-11-12T22:18:25.000Z | (* Copyright 2004 INRIA *)
open Expr;;
open Misc;;
open Mlproof;;
open Namespace;;
open Printf;;
module LL = Llproof;;
let lemma_num = ref 0;;
let lemma_suffix = ref "";;
let lemma_list = ref [];;
let lemma_name n = sprintf "%s%d_%s" lemma_prefix n !lemma_suffix;;
module HE = Hashtbl.Make (Expr);;
let get_type ... | 30.782419 | 82 | 0.560321 |
bc8b396544499b2a783051971ef3bef28ef1c623 | 478 | ml | OCaml | problem_7/10001st_prime.ml | xuedong/project-euler | dfcd65fde2a56ea92da49ca8beb3eeaf33679fdd | [
"MIT"
] | 2 | 2017-12-31T01:34:12.000Z | 2017-12-31T01:34:42.000Z | problem_7/10001st_prime.ml | xuedong/project-euler | dfcd65fde2a56ea92da49ca8beb3eeaf33679fdd | [
"MIT"
] | null | null | null | problem_7/10001st_prime.ml | xuedong/project-euler | dfcd65fde2a56ea92da49ca8beb3eeaf33679fdd | [
"MIT"
] | null | null | null | let is_prime n =
if n = 2 then
true
else if (n < 2) || (n mod 2 = 0) then
false
else
let rec aux k =
if (k * k > n) then
true
else if (n mod k = 0) then
false
else
aux (k+2)
in aux 3
let nst_prime n =
let k = ref 3 in
let i = ref 1 in
while (!i < n)... | 15.419355 | 39 | 0.435146 |
aa692a0a0b36a903418ff3a731606e3c77225233 | 3,026 | mli | OCaml | lib/p11_template.mli | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | lib/p11_template.mli | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | lib/p11_template.mli | kit-ty-kate/pkcs11 | 5384608d8918cbcc77c97df4baacdb5cbf4e0729 | [
"BSD-2-Clause"
] | null | null | null | type t = P11_attribute.pack list
[@@deriving eq,ord,show,yojson]
val to_string : t -> string
(** Return the value of the first occurrence of an attribute. *)
val get : t -> 'a P11_attribute_type.t -> 'a option
val get_pack : t -> P11_attribute_type.pack -> P11_attribute.pack option
val mem : P11_attribute.pack -> t ... | 37.825 | 84 | 0.717118 |
bcae93fbb1c01d127550db7f0d02f46b42126069 | 7,420 | mll | OCaml | src/parsing/lexer.mll | lambda-land/eff | 0ea5072755237b54dd846fa871d4cf42e503f388 | [
"BSD-2-Clause"
] | null | null | null | src/parsing/lexer.mll | lambda-land/eff | 0ea5072755237b54dd846fa871d4cf42e503f388 | [
"BSD-2-Clause"
] | null | null | null | src/parsing/lexer.mll | lambda-land/eff | 0ea5072755237b54dd846fa871d4cf42e503f388 | [
"BSD-2-Clause"
] | null | null | null | {
open Parser
let reserved = [
("and", AND);
("as", AS);
("asr", ASR);
("begin", BEGIN);
("check", CHECK);
("effect", EFFECT);
("else", ELSE);
("end", END);
("external", EXTERNAL);
("false", BOOL false);
("finally", FINALLY);
("fun", FUN);
("function", FUNCTION);... | 32.831858 | 124 | 0.415499 |
bcc123e28418db490513541d94645dceec2b5cb5 | 899 | ml | OCaml | benchmarks/wellformedness/wellformedness1/submissions/sub18.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/wellformedness/wellformedness1/submissions/sub18.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | null | null | null | benchmarks/wellformedness/wellformedness1/submissions/sub18.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 2 | 2020-02-06T14:59:50.000Z | 2022-03-16T19:25:43.000Z | type metro = STATION of name
| AREA of name * metro
| CONNECT of metro * metro
and name = string
let rec checkMetro m =
let rec checkElementInList (elem, lst) =
match lst with
| hd::tl -> if (elem = hd) then true else checkElementInList(elem, tl)
| [] -> false
in
let rec subset inner_list outer_list =
mat... | 29 | 92 | 0.661846 |
bce9c8c8a3b0961610417eb7894302e0edb605f6 | 131 | ml | OCaml | data/derived/comb/progs/unify/prog0839.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/prog0839.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0839.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
if n <= 0
then []
else (match x with | [] -> x | h::t -> h :: (clone t (n - 1)));;
let _ = clone 3 5;;
| 16.375 | 66 | 0.442748 |
bc09ed62b6305d9eade9bc4ac3517a67c6574929 | 126 | ml | OCaml | data/derived/comb/progs/unify/prog7336.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/prog2526.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2526.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec mulByDigit i l =
if l = []
then []
else (let (h::[])::t = l in match t with | [] -> h | _ -> [(h * i) / 10]);;
| 21 | 77 | 0.420635 |
aa485ad4a45157c65d901c2658555657e05baba8 | 4,833 | mli | OCaml | lib/flat_queue.mli | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/flat_queue.mli | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/flat_queue.mli | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | (** A queue of flat tuples, represented in a {!Flat_array}.
The elements of a queue are numbered 0, 1, ..., [length t - 1], where element [0] is
at the front of the queue. One can access the [j]'th component of the [i]'th element
using [get t i Slot.tj].
A flat tuple is like an ordinary OCaml tuple, ... | 41.663793 | 90 | 0.60749 |
aa75d7fda04ba32ef5bda3e9528d780221e6ac95 | 6,108 | ml | OCaml | lib/Docstring.ml | rgrinberg/ocamlformat | 50b646e6c238f558cdbf8bd6b6634b16f7e9ef6d | [
"MIT"
] | null | null | null | lib/Docstring.ml | rgrinberg/ocamlformat | 50b646e6c238f558cdbf8bd6b6634b16f7e9ef6d | [
"MIT"
] | null | null | null | lib/Docstring.ml | rgrinberg/ocamlformat | 50b646e6c238f558cdbf8bd6b6634b16f7e9ef6d | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 38.658228 | 78 | 0.594794 |
aa99e783703180e98aa2b5bafbeb414065823fa1 | 19,014 | ml | OCaml | data/derived/comb/progs/unify/prog8846.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/prog4064.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog4064.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.953206 | 208 | 0.648049 |
bc90f0d292346e585f88595c8636b8c1b9173f46 | 1,193 | ml | OCaml | eval/sherrloc/easyocaml++/asmcomp/i386/scheduling.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/asmcomp/i386/scheduling.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/asmcomp/i386/scheduling.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 51.869565 | 73 | 0.390612 |
bcef32a1f4b70e3f8c2d48deb86cc0423a776069 | 3,605 | ml | OCaml | src/typing/type_asserts.ml | thecotne/flow | 21f42d4baf26e637b82a8d266ad9fea85be740f8 | [
"MIT"
] | null | null | null | src/typing/type_asserts.ml | thecotne/flow | 21f42d4baf26e637b82a8d266ad9fea85be740f8 | [
"MIT"
] | null | null | null | src/typing/type_asserts.ml | thecotne/flow | 21f42d4baf26e637b82a8d266ad9fea85be740f8 | [
"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 FilenameMap = Utils_js.FilenameMap
let check_type_visitor wrap =
Ty.(
object (self)
inherit [_] iter_ty as sup... | 35.343137 | 99 | 0.61165 |
aa0d5a01174ad07d7a9f9129e07649292a2a69f7 | 18,012 | ml | OCaml | src/boot/lib/ast.ml | david-broman/miking | 0ef6e57e5070aa6d330d581b4fb4af2006e608cf | [
"MIT"
] | null | null | null | src/boot/lib/ast.ml | david-broman/miking | 0ef6e57e5070aa6d330d581b4fb4af2006e608cf | [
"MIT"
] | null | null | null | src/boot/lib/ast.ml | david-broman/miking | 0ef6e57e5070aa6d330d581b4fb4af2006e608cf | [
"MIT"
] | 1 | 2019-06-18T05:30:56.000Z | 2019-06-18T05:30:56.000Z | (*
Miking is licensed under the MIT license.
Copyright (C) David Broman. See file LICENSE.txt
File ast.ml includes the types and definitions for the abstract
syntax tree (AST) of the bootstrap interpreter.
*)
open Ustring.Op
open Msg
open Intrinsics
(* Debug options *)
let enable_debug_eval_tm = ref fals... | 25.476662 | 121 | 0.618699 |
bc0f330227917f8e01ac51dce3a9e36760bd5a4a | 2,953 | ml | OCaml | app/dns_cli.ml | dinosaure/ocaml-dns | 7392ec295b6366e2a44e26fc32904c2f91f761c8 | [
"BSD-2-Clause"
] | 75 | 2015-01-21T03:39:32.000Z | 2022-02-12T22:53:00.000Z | app/dns_cli.ml | dinosaure/ocaml-dns | 7392ec295b6366e2a44e26fc32904c2f91f761c8 | [
"BSD-2-Clause"
] | 174 | 2015-01-01T20:29:06.000Z | 2022-03-29T18:10:16.000Z | app/dns_cli.ml | dinosaure/ocaml-dns | 7392ec295b6366e2a44e26fc32904c2f91f761c8 | [
"BSD-2-Clause"
] | 37 | 2015-01-27T10:05:16.000Z | 2022-02-14T12:19:19.000Z | (* (c) 2018 Hannes Mehnert, all rights reserved *)
let setup_log style_renderer level =
Fmt_tty.setup_std_outputs ?style_renderer ();
Logs.set_level level;
Logs.set_reporter (Logs_fmt.reporter ~dst:Format.std_formatter ())
let connect_tcp ip port =
let sa = Unix.ADDR_INET (Ipaddr_unix.to_inet_addr ip, port) in... | 30.443299 | 101 | 0.632577 |
bc9b94593ece45cfe98e40651490390f70874efd | 19,056 | ml | OCaml | src/proto_008_PtEdo2Zk/lib_client/mockup.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | src/proto_008_PtEdo2Zk/lib_client/mockup.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/proto_008_PtEdo2Zk/lib_client/mockup.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.35436 | 80 | 0.665407 |
aa2cff7acdffd06b18f046e6727ce6368fe6038d | 8,622 | ml | OCaml | infer/src/checkers/impurity.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | 1 | 2020-08-28T14:00:56.000Z | 2020-08-28T14:00:56.000Z | infer/src/checkers/impurity.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | null | null | null | infer/src/checkers/impurity.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module L = Logging
open PulseBasicInterface
open PulseDomainInterface
let debug fmt = L.(debug Analysi... | 40.478873 | 100 | 0.68186 |
aa1cad5aea987019f75baa07012a3c727327644e | 2,450 | ml | OCaml | src/analyses/deadlocksByRaces.ml | jakoberzar/analyzer | 4730b23d1cdaa4b453ddaf7d8bcb51dcb1401f05 | [
"MIT"
] | null | null | null | src/analyses/deadlocksByRaces.ml | jakoberzar/analyzer | 4730b23d1cdaa4b453ddaf7d8bcb51dcb1401f05 | [
"MIT"
] | 3 | 2022-03-04T11:46:07.000Z | 2022-03-30T11:27:57.000Z | src/analyses/deadlocksByRaces.ml | jakoberzar/analyzer | 4730b23d1cdaa4b453ddaf7d8bcb51dcb1401f05 | [
"MIT"
] | null | null | null | (** Deadlock analysis using data race detection. *)
open Prelude.Ana
open Analyses
module Mutex = MutexAnalysis
module Spec =
struct
include Analyses.DefaultSpec
let name () = "oslo"
module MSpec = Mutex.Spec
module D = MSpec.D
module G = MSpec.G
module C = MSpec.C
let extra_var = Goblintutil.create_... | 40.163934 | 129 | 0.70449 |
aa64f094f80049e15e925726adb3223424bad0cf | 1,077 | ml | OCaml | 91-99-misc/91-99/p96.ml | MassD/99 | 1d3019eb55b0d621ed1df4132315673dd812b1e1 | [
"MIT"
] | 31 | 2015-02-03T08:47:17.000Z | 2021-12-31T16:25:02.000Z | 91-99-misc/91-99/p96.ml | MassD/99 | 1d3019eb55b0d621ed1df4132315673dd812b1e1 | [
"MIT"
] | null | null | null | 91-99-misc/91-99/p96.ml | MassD/99 | 1d3019eb55b0d621ed1df4132315673dd812b1e1 | [
"MIT"
] | 5 | 2017-04-16T03:47:58.000Z | 2021-11-04T03:43:05.000Z | (*
Syntax checker. (medium)
In a certain programming language (Ada) identifiers are defined by the syntax diagram >(railroad chart) opposite. Transform the syntax diagram into a system of syntax >diagrams which do not contain loops; i.e. which are purely recursive. Using these >modified diagrams, write a function ide... | 38.464286 | 383 | 0.649025 |
aa02f6c33f9116127ebf409a1c3b16769c846f1c | 2,157 | ml | OCaml | docs/historical/mh-6.8.5/miscellany/mhe/mh-help.ml | ralic/gnu_nmh | c347c3bbba2b3eea2442b641a11a381dea709cd8 | [
"BSD-3-Clause"
] | 4 | 2017-03-31T20:09:59.000Z | 2022-01-18T08:27:32.000Z | docs/historical/mh-6.8.5/miscellany/mhe/mh-help.ml | ralic/gnu_nmh | c347c3bbba2b3eea2442b641a11a381dea709cd8 | [
"BSD-3-Clause"
] | 1 | 2017-11-13T02:10:01.000Z | 2017-11-13T02:10:01.000Z | docs/historical/mh-6.8.5/miscellany/mhe/mh-help.ml | ralic/gnu_nmh | c347c3bbba2b3eea2442b641a11a381dea709cd8 | [
"BSD-3-Clause"
] | 2 | 2017-06-22T21:35:51.000Z | 2022-01-18T08:27:51.000Z | ; This autoloaded file implements the "?" command of mhe
(defun
(&mh-help ; ? has been typed; pop up help buffer.
(save-excursion
(pop-to-buffer "MH help")
(use-local-map "&mh-keymap")
(if (= 0 (buffer-size))
(insert-string
" n: next line p: previous line\n"
" d: delete (mark for del)... | 47.933333 | 79 | 0.668521 |
4411d3f70f81b6d3fd72996438b3c84ffcdac05b | 710 | ml | OCaml | data/sp14/3423.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/3423.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/3423.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec digitsOfInt n = (n mod 10) :: (if n <> [] then digitsOfInt (n / 10));;
(* fix
let rec digitsOfInt n =
let int list digInt = n mod 10 in
if n > 0 then digitsOfInt (n / 10) else [];;
*)
(* changed spans
(2,24)-(2,34)
(2,24)-(2,76)
(2,39)-(2,75)
(2,42)-(2,49)
(2,47)-(2,49)
*)
(* type error slice
(2,3)-(... | 13.396226 | 78 | 0.480282 |
bcd2c50784ea6cf4323b1101ea1b54fd39011317 | 2,717 | ml | OCaml | src/refmt/reason_interface_printer.ml | Seanpm2001-ReasonML-lang/reason | 4f6ff7616bfa699059d642a3d16d8905d83555f6 | [
"MIT"
] | 1 | 2022-03-25T21:33:09.000Z | 2022-03-25T21:33:09.000Z | src/refmt/reason_interface_printer.ml | Seanpm2001-ReasonML-lang/reason | 4f6ff7616bfa699059d642a3d16d8905d83555f6 | [
"MIT"
] | null | null | null | src/refmt/reason_interface_printer.ml | Seanpm2001-ReasonML-lang/reason | 4f6ff7616bfa699059d642a3d16d8905d83555f6 | [
"MIT"
] | null | null | null | open Reason_omp
open Ast_411
type t = Parsetree.signature
let err = Printer_maker.err
(* Note: filename should only be used with .mli files. See reason_toolchain. *)
let defaultInterfaceParserFor use_stdin filename =
let open Reason_toolchain in
let (theParser, parsedAsML) =
if Filename.check_suffix filename ... | 41.166667 | 113 | 0.717703 |
bce6dfc0f502fc077e5a78c42a4c4d65c23ac48b | 5,253 | ml | OCaml | data/fa15/2104.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2104.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2104.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then
let n = (List.length l2) - (List.length l1) in (((clone 0 n) @ l1), l2)
else
if (List.length l2) < (List.length l1)
then
(let n = (List.length l1) - (List.length ... | 19.032609 | 79 | 0.521416 |
aa2f9dca4dc4c38b72adcfe147456b5fbb5679c4 | 879 | ml | OCaml | benchmarks/constraints/symmetric_tree/min_max.ml | victornicolet/atropos | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 3 | 2021-05-03T16:20:32.000Z | 2021-05-14T19:59:51.000Z | benchmarks/constraints/symmetric_tree/min_max.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | null | null | null | benchmarks/constraints/symmetric_tree/min_max.ml | synduce/Synduce | 11e9eb1d420113ae85ec63399dd493034c51a354 | [
"MIT"
] | 1 | 2021-05-12T15:14:40.000Z | 2021-05-12T15:14:40.000Z | (** @synduce --no-lifting *)
type itree = Leaf of int | Node of int * itree * itree
let rec is_symmetric = function Leaf x -> true | Node (a, l, r) -> symm1 l r
and symm1 l = function Leaf x -> is_leaf x l | Node (ar, rl, rr) -> symm2 ar rl rr l
and symm2 ar rl rr = function
| Leaf x -> false
| Node (al, ll, lr... | 31.392857 | 94 | 0.605233 |
aa8080c64524ffcac2441659f10ec27ecdef1183 | 13,457 | ml | OCaml | example/example.ml | CGenie/ocaml-rpc | 7edfdf0803ff58541b378bc1e51d0156f923c94b | [
"ISC"
] | null | null | null | example/example.ml | CGenie/ocaml-rpc | 7edfdf0803ff58541b378bc1e51d0156f923c94b | [
"ISC"
] | null | null | null | example/example.ml | CGenie/ocaml-rpc | 7edfdf0803ff58541b378bc1e51d0156f923c94b | [
"ISC"
] | null | null | null | (* Example RPC *)
(* The following is an example of how to use the ocaml-rpc library to define an
interface, then use that interface to implement a client and server.
The library is designed to be used with a ppx helper, but there is no
requirement to use it, and for the sake of clearly describing the librar... | 37.800562 | 100 | 0.683585 |
4435cdad383f12cf9b319030209c913c10a99a21 | 7,965 | ml | OCaml | src/ocaml_src/tree.ml | V-S-F/phylo-lib-web | b0c02d59d58a4cb2dd835fed1276c37e4416fefd | [
"MIT"
] | 1 | 2020-06-14T17:14:26.000Z | 2020-06-14T17:14:26.000Z | src/ocaml_src/tree.ml | Shiyuan-Huang-23/phylo-lib-web | b0c02d59d58a4cb2dd835fed1276c37e4416fefd | [
"MIT"
] | 2 | 2022-02-13T15:28:57.000Z | 2022-02-27T06:17:52.000Z | src/ocaml_src/tree.ml | Shiyuan-Huang-23/phylo-lib-web | b0c02d59d58a4cb2dd835fed1276c37e4416fefd | [
"MIT"
] | null | null | null | type clade_id = int
exception UnknownClade of clade_id
type t = Clade of {
clade_id : clade_id;
children : t list;
bootstrap : float option;
rank : string option;
id : string option;
name : string option;
} | Leaf of {
scientific_name : string;
id : string option;
name : string op... | 33.049793 | 90 | 0.622097 |
bc9a903582bcb3d083d5b35b729f365316eb8cf4 | 4,460 | ml | OCaml | xen-4.6.0/tools/ocaml/xenstored/trie.ml | StanPlatinum/ROP-detection-outside-VMs | c06987a0dfbe08022b1b1e1581b399cb4c25e4ac | [
"MIT"
] | 3 | 2019-08-31T19:58:24.000Z | 2020-10-02T06:50:22.000Z | xen-4.6.0/tools/ocaml/xenstored/trie.ml | StanPlatinum/ROP-detection-outside-VMs | c06987a0dfbe08022b1b1e1581b399cb4c25e4ac | [
"MIT"
] | 1 | 2020-10-16T19:13:49.000Z | 2020-10-16T19:13:49.000Z | xen-4.6.0/tools/ocaml/xenstored/trie.ml | StanPlatinum/ROP-detection-outside-VMs | c06987a0dfbe08022b1b1e1581b399cb4c25e4ac | [
"MIT"
] | 1 | 2019-05-27T09:47:18.000Z | 2019-05-27T09:47:18.000Z | (*
* Copyright (C) 2008-2009 Citrix Ltd.
* Author Thomas Gazagnaire <thomas.gazagnaire@eu.citrix.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; version 2.1 only. with the sp... | 24.371585 | 89 | 0.630269 |
8a47b8810fefdf21974d18d2d1b4ce755f1052a4 | 138,874 | ml | OCaml | src/ocaml_401/typing/typecore.ml | art-w/merlin | 7d34d0af1749d27deb6a47bdf5b4d0796528905a | [
"MIT"
] | null | null | null | src/ocaml_401/typing/typecore.ml | art-w/merlin | 7d34d0af1749d27deb6a47bdf5b4d0796528905a | [
"MIT"
] | null | null | null | src/ocaml_401/typing/typecore.ml | art-w/merlin | 7d34d0af1749d27deb6a47bdf5b4d0796528905a | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 37.402101 | 94 | 0.589549 |
aa623554b82b3392c17d370650f5cffd73868b19 | 4,869 | ml | OCaml | src/proto_demo_noops/lib_protocol/main.ml | daachi/tezos | 00118e91ff13bb54ff658907ed8ffc1c4d3d2266 | [
"MIT"
] | null | null | null | src/proto_demo_noops/lib_protocol/main.ml | daachi/tezos | 00118e91ff13bb54ff658907ed8ffc1c4d3d2266 | [
"MIT"
] | null | null | null | src/proto_demo_noops/lib_protocol/main.ml | daachi/tezos | 00118e91ff13bb54ff658907ed8ffc1c4d3d2266 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 33.8125 | 80 | 0.620867 |
aa739a6f76f0ffd7a0eb2c1d650c47b837b9b8a2 | 3,227 | ml | OCaml | src/main/interpreter/layout.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | src/main/interpreter/layout.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | src/main/interpreter/layout.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | module AST = Ast_typed
module Append_tree = Simple_utils.Tree.Append
open Simple_utils.Trace
open Ligo_interpreter.Types
let extract_record ~raise ~(layout:layout) (v : value) (lst : (AST.label * AST.type_expression) list) : _ list =
match layout with
| L_tree -> (
let open Append_tree in
let tree = match ... | 43.026667 | 148 | 0.589402 |
8a16ba2f60adc63d80c0a0b6e1f42a9f311b59a3 | 72,781 | ml | OCaml | hphp/hack/src/typing/typing_print.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_print.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_print.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"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.
*
*)
(*****************************************************************************)
(* Pretty printing of types *)
(****... | 33.648174 | 138 | 0.552205 |
aa8f1ebf8a955c806da87c8524835bc25c74e221 | 143 | ml | OCaml | ocaml/id.ml | lelouedec/Ocalm | d52416136d270217b56fe1506d2745d9ac5a558a | [
"MIT"
] | 2 | 2018-12-28T12:08:34.000Z | 2019-01-14T09:31:28.000Z | ocaml/id.ml | lelouedec/Ocalm | d52416136d270217b56fe1506d2745d9ac5a558a | [
"MIT"
] | null | null | null | ocaml/id.ml | lelouedec/Ocalm | d52416136d270217b56fe1506d2745d9ac5a558a | [
"MIT"
] | null | null | null | type t = string
let to_string x = x
let genid =
let counter = ref (-1) in
fun () ->
incr counter;
Printf.sprintf "?v%d" !counter
| 14.3 | 34 | 0.594406 |
bc19c8bd70d8a837cc8bd36a86bd6f37270d72d5 | 227 | mli | OCaml | libraries/rds/lib/failoverDBCluster.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/failoverDBCluster.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/failoverDBCluster.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = FailoverDBClusterMessage.t
type output = FailoverDBClusterResult.t
type error = Errors_internal.t
include
(Aws.Call with type input := input and type output := output and type
error := error) | 32.428571 | 75 | 0.748899 |
aa89b7936775666a4393829e0acfc45c8226efa9 | 32,095 | ml | OCaml | duniverse/opam/src/format/opamFormat.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/format/opamFormat.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/format/opamFormat.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* Copyright 2012-2020 OCamlPro *)
(* Copyright 2012 INRIA *)
(* ... | 34.585129 | 80 | 0.520424 |
4438b44e647f6a6f404238c586eaa17a5a6e060f | 8,429 | ml | OCaml | src/lib/compile/SrpNative.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 23 | 2020-03-05T23:45:04.000Z | 2022-01-20T10:28:44.000Z | src/lib/compile/SrpNative.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | 31 | 2020-02-27T18:46:35.000Z | 2022-01-22T06:21:40.000Z | src/lib/compile/SrpNative.ml | NetworkVerification/nv | 0a9d69e08142cd894a1594674edb5fbca7a4f8b8 | [
"MIT"
] | null | null | null | (** Simulates an SRP compiled to a native OCaml progam *)
open Nv_utils
open Unsigned
open Nv_solution
open Nv_lang
open Nv_datastructures
open Nv_lang.Collections
open Symbolics
(** Type of SRP network *)
module type NATIVE_SRP = sig
(** Communication between SRPs and NV *)
val record_fns : int * int -> 'a -> 'b... | 36.021368 | 109 | 0.653221 |
aa77eaadb83800ec22e6a6d6508f72bedcf904bc | 49 | ml | OCaml | tests/test_parser.ml | rizo/fold-pratt | 84029a7b3d59200ef7fdfb87385752ea4e9eef94 | [
"Apache-2.0"
] | 1 | 2017-07-21T13:08:10.000Z | 2017-07-21T13:08:10.000Z | tests/test_parser.ml | rizo/fold-pratt | 84029a7b3d59200ef7fdfb87385752ea4e9eef94 | [
"Apache-2.0"
] | null | null | null | tests/test_parser.ml | rizo/fold-pratt | 84029a7b3d59200ef7fdfb87385752ea4e9eef94 | [
"Apache-2.0"
] | null | null | null |
open Foundation
open Parser
let run () =
()
| 5.444444 | 15 | 0.612245 |
aa00190d468f5afe3261b3276f253212360dc37a | 7,666 | ml | OCaml | giraf10/clusterBase.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | giraf10/clusterBase.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | giraf10/clusterBase.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | open Printf
open Graph
open ExtList
open PDBjTk
module Ht = ExtHashtbl.Hashtbl
(** base undirected graph (similarity network) *)
module VBase = struct
type t = string
let compare = String.compare
let hash = Ht.hash
let equal = ((=) : string -> string -> bool)
let default = ""
let to_string s = s
end
modu... | 28.604478 | 80 | 0.579311 |
bc44adb4abf0a8c53deeeb1514a2b6b5cf26ec28 | 1,681 | ml | OCaml | data/fa15_min/2438.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/2438.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/2438.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n = if n > 0 then x :: (clone x (n - 1)) else [];;
let padZero l1 l2 =
let x = List.length l1 in
let y = List.length l2 in
if x = y
then (l1, l2)
else
if x < y
then (((clone 0 (y - x)) @ l1), l2)
else (l1, ((clone 0 (x - y)) @ l2));;
let rec removeZero l =
match l with | [] ->... | 22.118421 | 78 | 0.531231 |
aa8dfc660a7eae7047d1f194cae47b78252c315e | 930 | ml | OCaml | libraries/elasticache/lib/deleteCacheSecurityGroup.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticache/lib/deleteCacheSecurityGroup.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticache/lib/deleteCacheSecurityGroup.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteCacheSecurityGroupMessage.t
type output = unit
type error = Errors_internal.t
let service = "elasticache"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append
... | 24.473684 | 82 | 0.64086 |
bc25d4788b60d504f73cf98c9c348171788edc51 | 1,348 | ml | OCaml | lib/plumbing/src/io_common.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 7 | 2018-11-27T23:53:58.000Z | 2020-11-22T11:56:16.000Z | lib/plumbing/src/io_common.ml | MattWindsor91/act | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 235 | 2018-10-03T16:37:36.000Z | 2020-11-22T16:26:51.000Z | lib/plumbing/src/io_common.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 1 | 2018-11-13T16:43:19.000Z | 2018-11-13T16:43:19.000Z | (* This file is part of c4f.
Copyright (c) 2018-2022 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 28.083333 | 76 | 0.680267 |
bc92cc24ef1af66b8d21a0c9cbbbba1622c7beac | 2,369 | ml | OCaml | bin/timeout.ml | jfeser/timeout | 93795c2c9b7ad148ead5537b02cc5cf722fb5182 | [
"Apache-2.0"
] | null | null | null | bin/timeout.ml | jfeser/timeout | 93795c2c9b7ad148ead5537b02cc5cf722fb5182 | [
"Apache-2.0"
] | null | null | null | bin/timeout.ml | jfeser/timeout | 93795c2c9b7ad148ead5537b02cc5cf722fb5182 | [
"Apache-2.0"
] | null | null | null | open! Core
module Json = Yojson.Safe
open Timeout.Limited_process
let print_stats result =
Out_channel.newline stdout;
( match result.status with
| `Success -> printf "Child exited with return code 0.\n"
| `Exit_or_signal (`Exit_non_zero code) ->
printf "Child exited with return code %d.\n" code
| `Exi... | 40.152542 | 81 | 0.661038 |
bc22727b6820b37e3f64d4efdc6b7f20049f5f41 | 11,026 | ml | OCaml | duniverse/opam/src/client/opamRepositoryCommand.ml | pitag-ha/opam-monorepo | ca8c9771ab5ae356da8ed216e17bdaa38fdfb67e | [
"0BSD"
] | null | null | null | duniverse/opam/src/client/opamRepositoryCommand.ml | pitag-ha/opam-monorepo | ca8c9771ab5ae356da8ed216e17bdaa38fdfb67e | [
"0BSD"
] | null | null | null | duniverse/opam/src/client/opamRepositoryCommand.ml | pitag-ha/opam-monorepo | ca8c9771ab5ae356da8ed216e17bdaa38fdfb67e | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* Copyright 2012-2020 OCamlPro *)
(* Copyright 2012 INRIA *)
(* ... | 38.152249 | 80 | 0.619626 |
aa21846101fa94b73f93f62883e50d682c87a0ef | 18,314 | ml | OCaml | src/prover_calculi/simplex.ml | github-salt/zipperposition | 17e7f6f3f01f2a72881dc30db847c664e1f782d5 | [
"BSD-2-Clause"
] | null | null | null | src/prover_calculi/simplex.ml | github-salt/zipperposition | 17e7f6f3f01f2a72881dc30db847c664e1f782d5 | [
"BSD-2-Clause"
] | null | null | null | src/prover_calculi/simplex.ml | github-salt/zipperposition | 17e7f6f3f01f2a72881dc30db847c664e1f782d5 | [
"BSD-2-Clause"
] | null | null | null |
(* TODO: Use Arrays instead of lists. *)
(* TODO: Do only local opens of ZArith.Q *)
(* OPTIMS:
* - distinguish separate systems (that do not interact), such as in { 1 <= 3x = 3y <= 2; z <= 3}.
* - Implement gomorry cuts ?
*)
open Q
(* Signature for the variable type *)
module type OrderedType = sig
type t
val... | 31.685121 | 130 | 0.566233 |
aa9532a503b0621eeda44cbd858540b592309bfd | 2,657 | ml | OCaml | lamu1/lib/final.ml | thautwarm/plfp | df52cda35ba66ee734722e5d5d7e43eeedd6e7d5 | [
"MIT"
] | 11 | 2019-12-05T11:23:44.000Z | 2020-11-27T16:00:39.000Z | lamu1/lib/final.ml | thautwarm/plfp | df52cda35ba66ee734722e5d5d7e43eeedd6e7d5 | [
"MIT"
] | 1 | 2019-12-19T08:28:22.000Z | 2019-12-19T08:28:22.000Z | lamu1/lib/final.ml | thautwarm/plfp | df52cda35ba66ee734722e5d5d7e43eeedd6e7d5 | [
"MIT"
] | null | null | null | type litype = IntT | FloatT | StringT
module type SYM = sig
type repr
val letl : string -> Type_final.SYMSelf.r option -> repr -> repr -> repr
val lam : string -> repr -> repr
val app : repr -> repr -> repr
val lit : litype -> string -> repr
val var : string -> repr
end
module type FSYMComm = sig
typ... | 31.258824 | 92 | 0.533685 |
aa89f799a13e45abe88f0604f55e22474ee3238f | 1,001 | mli | OCaml | src/constraints/solver/unifier.mli | johnyob/dromedary | e786bc9101e3964db1f02a8f0c0febdce4dd8f64 | [
"MIT"
] | 23 | 2021-11-20T19:42:50.000Z | 2022-03-28T15:34:22.000Z | src/constraints/solver/unifier.mli | johnyob/dromedary | e786bc9101e3964db1f02a8f0c0febdce4dd8f64 | [
"MIT"
] | 18 | 2021-11-05T14:27:25.000Z | 2022-03-19T20:15:06.000Z | src/constraints/solver/unifier.mli | johnyob/dromedary | e786bc9101e3964db1f02a8f0c0febdce4dd8f64 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Dromedary *)
(* *)
... | 71.5 | 79 | 0.192807 |
aa917c9990531bcb6322a64c8fed7ddc03500444 | 3,743 | mli | OCaml | vendors/irmin/object_graph.mli | Shikanime/Tezos | 3f4be780d80337454518b7fed424520c1a0a5c3c | [
"MIT"
] | null | null | null | vendors/irmin/object_graph.mli | Shikanime/Tezos | 3f4be780d80337454518b7fed424520c1a0a5c3c | [
"MIT"
] | null | null | null | vendors/irmin/object_graph.mli | Shikanime/Tezos | 3f4be780d80337454518b7fed424520c1a0a5c3c | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 32.267241 | 80 | 0.64093 |
aa543071444335411f2c4eed7261ac4921f83e42 | 31,240 | ml | OCaml | player.ml | hsamuelson/ocaml-Wizard | ca6efd62d30ef8e5bf5b8abd69533c5652f0799f | [
"MIT"
] | 3 | 2021-03-23T05:24:21.000Z | 2021-03-24T03:02:58.000Z | player.ml | hsamuelson/ocaml-Wizard | ca6efd62d30ef8e5bf5b8abd69533c5652f0799f | [
"MIT"
] | 1 | 2021-03-25T00:44:41.000Z | 2021-03-26T03:59:14.000Z | player.ml | hsamuelson/ocaml-Wizard | ca6efd62d30ef8e5bf5b8abd69533c5652f0799f | [
"MIT"
] | null | null | null | open Unix
open Float
open ANSITerminal
exception OutOfBounds
exception NoCardsLeft
exception NotValidSelection
type t = {
bet : int; (** This player's current bet for this trick. *)
tricks_won_this_round : int;
(** The number of tricks this player has already won. *)
current_score : int;
(** The ... | 33.304904 | 74 | 0.686204 |
aa251cd22d6e9d07310678bf412f2f16f1d88c88 | 1,422 | mli | OCaml | lib/vscode-languageclient/_gen/protocolCodeAction.mli | tmattio/js-bindings | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 18 | 2021-04-14T02:52:09.000Z | 2021-11-14T17:08:09.000Z | lib/vscode-languageclient/_gen/protocolCodeAction.mli | tmattio/ocaml-ecmascript | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 4 | 2021-04-14T16:23:13.000Z | 2021-05-22T00:00:55.000Z | lib/vscode-languageclient/_gen/protocolCodeAction.mli | tmattio/ocaml-ecmascript | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 1 | 2021-04-14T15:29:24.000Z | 2021-04-14T15:29:24.000Z | [@@@ocaml.warning "-7-11-32-33-39"]
[@@@js.implem
[@@@ocaml.warning "-7-11-32-33-39"]
]
open Ts2ocaml_baselib
(*
unknown identifiers:
- vscode.CodeAction
*)
[@@@js.stop]
module type Missing = sig
module vscode : sig
module CodeAction : sig
type t_0
val t_0_to_js: t_0 -> Ojs.t
val t_0_of... | 23.311475 | 76 | 0.624473 |
44f74ee25a5758a9dd4fe75e5b4b906b7fb613e5 | 19,765 | ml | OCaml | infer/src/pulse/PulseOperations.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseOperations.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseOperations.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module L = Logging
open IResult.Let_syntax
open PulseBasicInterface
open PulseDomainInterface
type t = AbductiveDomain.t... | 38.984221 | 117 | 0.67493 |
aa8bcdc328ce7a33116c5c89c8609b656488fb28 | 1,550 | ml | OCaml | coq/vernac/vernacstate.ml | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/vernac/vernacstate.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/vernac/vernacstate.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 35.227273 | 75 | 0.51871 |
aa601e6419b458e1e51d6f2fd6972bc1e0bc09e1 | 22,122 | ml | OCaml | ocaml_typing/407/ast_iterator.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | ocaml_typing/407/ast_iterator.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 439 | 2018-05-25T21:16:18.000Z | 2021-12-03T11:28:10.000Z | ocaml_typing/407/ast_iterator.ml | hartmut27/reason-language-server | a7cccf8bb3e6ae221da84ee3f68c5eed8d25c204 | [
"MIT"
] | 107 | 2018-05-30T23:53:50.000Z | 2022-01-10T10:50:53.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 36.444811 | 80 | 0.626345 |
bc9a61f453a80b1c1700650c03256eeff479e75d | 8,508 | ml | OCaml | x86/proofs/bignum_neg_p384.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | x86/proofs/bignum_neg_p384.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | x86/proofs/bignum_neg_p384.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | (*
* 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 ... | 51.253012 | 155 | 0.563352 |
bcd800cc77966b42def2a6eff98a6fb1878cd626 | 404 | mli | OCaml | lib/fasta.mli | pveber/gzt | 7bcd383e3340561b3e1e716a2d1f67d1d9983c61 | [
"CECILL-B"
] | 5 | 2020-03-08T17:18:32.000Z | 2021-10-03T11:56:07.000Z | lib/fasta.mli | pveber/gzt | 7bcd383e3340561b3e1e716a2d1f67d1d9983c61 | [
"CECILL-B"
] | null | null | null | lib/fasta.mli | pveber/gzt | 7bcd383e3340561b3e1e716a2d1f67d1d9983c61 | [
"CECILL-B"
] | 1 | 2022-03-07T09:36:55.000Z | 2022-03-07T09:36:55.000Z | type header = string list
type item = {
description : string;
sequence : string;
}
[@@ deriving sexp]
val from_string :
string ->
(header * item list, string) result
val from_file :
string ->
(header * item list, string) result
val from_file_exn :
string ->
header * item list
val sequences_from_fi... | 13.466667 | 37 | 0.660891 |
bc6d80527101fe02d06960d2ff0756867f441040 | 139 | ml | OCaml | lib/stdlib2/pervasives2.ml | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 15 | 2020-08-27T10:51:14.000Z | 2021-12-24T08:17:28.000Z | lib/stdlib2/pervasives2.ml | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 18 | 2020-06-28T18:13:20.000Z | 2021-03-12T16:18:05.000Z | lib/stdlib2/pervasives2.ml | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 5 | 2021-02-23T16:22:25.000Z | 2022-01-24T18:36:45.000Z | let identity x =
x
let (<<) f g x =
f (g x)
let (>>) f g x =
g (f x)
let curry f x y =
f (x, y)
let uncurry f (x, y) =
f x y
| 9.266667 | 22 | 0.438849 |
aa05f99ffd114bf9b282df8f4dd3ad5beb49c495 | 112 | ml | OCaml | vendor/core_kernel/src/never_returns.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | vendor/core_kernel/src/never_returns.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | vendor/core_kernel/src/never_returns.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | open! Import
type never_returns = Nothing.t [@@deriving sexp_of]
let never_returns = Nothing.unreachable_code
| 18.666667 | 51 | 0.794643 |
bc4d5e4fb01799fbaa908494c8a9fe7dd1fbe5db | 11,623 | ml | OCaml | lib/Source.ml | ejgallego/ocamlformat | abd8e4f455e63df8c138cab4ab14108eb2e48a89 | [
"MIT"
] | null | null | null | lib/Source.ml | ejgallego/ocamlformat | abd8e4f455e63df8c138cab4ab14108eb2e48a89 | [
"MIT"
] | null | null | null | lib/Source.ml | ejgallego/ocamlformat | abd8e4f455e63df8c138cab4ab14108eb2e48a89 | [
"MIT"
] | null | null | null | (**********************************************************************
* *
* OCamlFormat *
* *
* Copyright (c) 2017-present, ... | 34.387574 | 77 | 0.605954 |
bcff4e78154cd545ce8e43dcdd37314644dd3cf3 | 1,709 | mli | OCaml | upstream/ocaml_402/utils/pparse.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | upstream/ocaml_402/utils/pparse.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | upstream/ocaml_402/utils/pparse.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Daniel de Raug... | 46.189189 | 104 | 0.500293 |
aa99c8b39dffc032470ba138917eb504c66b2741 | 394 | mli | OCaml | sledge/src/domain_sh.mli | piyushjainb/infer | b073b55b1a92313437d08f58716cadfa894bd060 | [
"MIT"
] | 2 | 2020-12-01T19:17:41.000Z | 2021-11-16T11:16:32.000Z | sledge/src/domain_sh.mli | piyushjainb/infer | b073b55b1a92313437d08f58716cadfa894bd060 | [
"MIT"
] | 6 | 2021-06-28T20:30:19.000Z | 2022-02-27T10:48:57.000Z | sledge/src/domain_sh.mli | cluesblues/infer | 7dcbacf69309d113e6374d03ee267fe2f7d44797 | [
"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.
*)
(** Abstract domain *)
include Domain_intf.Dom
val create_summary :
locals:Llair.Reg.Set.t
-> formals:Llair.Reg.t list
-... | 19.7 | 66 | 0.687817 |
aa705d561809c6d212eaab8691cdb210a2851c23 | 6,726 | mll | OCaml | lib/sexp0_lexer.mll | gpetiot/sexp-parse | 28ed78e73fc47ceb09c1e3aba68108854f7e6f84 | [
"MIT"
] | 2 | 2021-09-28T22:19:03.000Z | 2021-09-29T08:16:54.000Z | lib/sexp0_lexer.mll | gpetiot/sexp-parse | 28ed78e73fc47ceb09c1e3aba68108854f7e6f84 | [
"MIT"
] | 1 | 2021-10-02T21:24:45.000Z | 2021-10-05T09:49:19.000Z | lib/sexp0_lexer.mll | gpetiot/sexp-parse | 28ed78e73fc47ceb09c1e3aba68108854f7e6f84 | [
"MIT"
] | null | null | null | {
open Sexp0_parser
type error =
| Illegal_character of char
| Illegal_escape of string * string option
| Unterminated_string
| Invalid_literal of string
exception Error of error * Location.t
let pp_error fs = function
| Illegal_character c ->
Format.fprintf fs "Illegal character (%s)" (Char.escaped c)... | 31.138889 | 79 | 0.624888 |
aa4ce8a7c84d91a596e9c4ef3d0b4e3f2eb6d4a6 | 2,094 | mli | OCaml | hphp/hack/src/typing/write_symbol_info/symbol_json_util.mli | donsbot/hhvm | ac98a590f75c569e1249b6c1145c7512c7bd240e | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-03-11T02:25:14.000Z | 2022-03-11T02:25:14.000Z | hphp/hack/src/typing/write_symbol_info/symbol_json_util.mli | SNU-2D/hhvm | df882620c248a51cb5644acf8d176ea915289304 | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2022-02-17T04:00:03.000Z | 2022-03-24T03:45:33.000Z | hphp/hack/src/typing/write_symbol_info/symbol_json_util.mli | SNU-2D/hhvm | df882620c248a51cb5644acf8d176ea915289304 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-02-19T09:29:50.000Z | 2022-02-19T09:29:50.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(* True if source text ends in a newline *)
val ends_in_newline : Full_fidelity_source_text.t -> bool
val has_tabs_or_multiby... | 35.491525 | 86 | 0.750239 |
bc1b08f597f71c656467c8c87cc0d749753e144a | 2,997 | ml | OCaml | eval/ocaml/asmcomp/i386/reload.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/asmcomp/i386/reload.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/asmcomp/i386/reload.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 35.678571 | 75 | 0.514181 |
aa8c3beab6f00f568fa915770da15d2a90f42650 | 96 | ml | OCaml | benchmarks/C/sigma/sol331.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/sigma/sol331.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/sigma/sol331.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec sigma f a b =
if a = b then (f a)
else if a > b then 0
else (f a) + sigma f (a+1) b
| 19.2 | 29 | 0.541667 |
aa25ffcfe8c6ac8e805cfde2d52852ef711d3c3e | 7,257 | ml | OCaml | src_top/herd_based/litmus/LISACompile.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/LISACompile.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/LISACompile.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... | 38.807487 | 79 | 0.50999 |
bc6e15407c34278ad7fa81a40eb4a30ff47cf299 | 276 | mli | OCaml | src/parsetree.mli | nopid/gnirut | 0450a48b4e1634b55e697b36439a8862c2c604e2 | [
"CECILL-B"
] | null | null | null | src/parsetree.mli | nopid/gnirut | 0450a48b4e1634b55e697b36439a8862c2c604e2 | [
"CECILL-B"
] | null | null | null | src/parsetree.mli | nopid/gnirut | 0450a48b4e1634b55e697b36439a8862c2c604e2 | [
"CECILL-B"
] | null | null | null | type cmd =
| Code of int * Instr.t option
| Clear
| Show of int option * string * int * string
| Info
| Letters
| States
| Load of string
| Save of string
| Use of string
| Run
| Dump of string option
| Torus
| Link of (string list * string * string list) option
| 18.4 | 54 | 0.648551 |
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.