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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcea032dd2e058eeede711140f542c1ddef6d697 | 2,765 | ml | OCaml | src/lib/verifier/dummy.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/verifier/dummy.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/verifier/dummy.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core_kernel
open Async_kernel
open Mina_base
type t =
{ proof_level : Genesis_constants.Proof_level.t
; constraint_constants : Genesis_constants.Constraint_constants.t
}
type invalid = Common.invalid [@@deriving bin_io_unversioned, to_yojson]
let invalid_to_string = Common.invalid_to_string
type ledger_p... | 33.313253 | 79 | 0.705244 |
aa0a8109266fad7469d3b3c0a7c9252dd26d3fa1 | 6,144 | ml | OCaml | src/monitor/flowServerMonitorDaemon.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | 1 | 2019-07-15T20:48:46.000Z | 2019-07-15T20:48:46.000Z | src/monitor/flowServerMonitorDaemon.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | src/monitor/flowServerMonitorDaemon.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
let spf = Printf.sprintf
type start_function =
?waiting_fd:Unix.file_descr ->
FlowServerMonitorOptions.t ->
unit
(* When `... | 40.421053 | 97 | 0.698079 |
aa2fbf149c2f02d4c5b7c88c2a5bd61781f07f9d | 17,959 | ml | OCaml | src/util/htmldump.ml | vootelerotov/goblint-fork | 1aa04505362d2a89ab40fc1d0499afac09472d7b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/util/htmldump.ml | vootelerotov/goblint-fork | 1aa04505362d2a89ab40fc1d0499afac09472d7b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/util/htmldump.ml | vootelerotov/goblint-fork | 1aa04505362d2a89ab40fc1d0499afac09472d7b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | open Pretty
open Printf
open Xml
open Cil
open Unix
open Lazy
open Html_template
let size = 50 (* also change the value in js_template.ml *)
let htmlGlobalWarningList : (string*int*string) list ref = ref []
(* Some lists for syntax highlighting *)
let cppPreprocessorList = ["#endif";"#ifdef";"#undef";"#else";"includ... | 44.017157 | 386 | 0.676263 |
bce8470ead34cd9d350b3bc7f580194c347002b7 | 95 | ml | OCaml | data/derived/comb/progs/unify/prog8761.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/prog3979.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3979.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec digitsOfInt n =
if n <= 0 then [] else (n mod 10) :: [] :: ((digitsOfInt n) / 10);;
| 23.75 | 69 | 0.526316 |
bc61ac44b9411146374a0b26d8c8d9f1b9f9425a | 992 | ml | OCaml | data/sp14/0396.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/0396.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/0396.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 (b',c') = f b in if c' = false then b' else wwhile (f, b');;
let fixpoint (f,b) = wwhile (((f b) <> b), b);;
(* fix
let rec wwhile (f,b) =
let (b',c') = f b in if c' = false then b' else wwhile (f, b');;
let fixpoint (f,b) =
let f x = let xx = f b in (xx, (xx <> b)) in wwhile (f, ... | 14.376812 | 66 | 0.458669 |
bc1cb389e0c24a1990463b15c48c049ef2d782f2 | 1,188 | ml | OCaml | ag_pathanalysis/batteries/src/batUnit.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2019-12-05T19:47:42.000Z | 2021-05-05T13:41:16.000Z | ag_pathanalysis/batteries/src/batUnit.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | null | null | null | ag_pathanalysis/batteries/src/batUnit.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2021-04-20T07:44:02.000Z | 2021-04-20T08:38:41.000Z | (*
* BatUnit - Operations on Unit
* Copyright (C) 2008 David Teller, LIFO, Universite d'Orleans
*
* This library 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; either
* version 2.1 of the Licens... | 33 | 70 | 0.717172 |
bc8e25864d93a380901ed265440a23819b1e5fef | 16,090 | ml | OCaml | infer/src/checkers/annotationReachability.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/checkers/annotationReachability.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/checkers/annotationReachability.ml | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2015 - 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! Util... | 37.418605 | 98 | 0.704475 |
445de68ab04349a60451c1500a29b8c402c268fc | 443 | ml | OCaml | utils.ml | whirm/mlorg | a4cc46889ab5ed151af8df5d2cb9153775052b24 | [
"BSD-2-Clause"
] | 3 | 2018-12-01T23:14:30.000Z | 2022-01-23T08:33:26.000Z | utils.ml | whirm/mlorg | a4cc46889ab5ed151af8df5d2cb9153775052b24 | [
"BSD-2-Clause"
] | null | null | null | utils.ml | whirm/mlorg | a4cc46889ab5ed151af8df5d2cb9153775052b24 | [
"BSD-2-Clause"
] | 1 | 2018-09-11T09:46:18.000Z | 2018-09-11T09:46:18.000Z | open Batteries
let get_meta filename =
File.lines_of filename
|> Org_parser.parse_lazy
|> Enum.take_while (function
| Block.Directive _ -> true
| _ -> false)
|> Enum.map (function
| Block.Directive (a, b) -> (a, b)
| _ -> assert false)
|> List.of_enum
let modify_file ?config func fi... | 24.611111 | 49 | 0.643341 |
aa099dc66f53be1a7c40b474ce23ca274b84555e | 1,233 | mli | OCaml | src/core/omnomnom.mli | SquidDev/omnomnom | bbef94ef0e997b805aed3b2cccab37c328e598c5 | [
"MIT"
] | 2 | 2020-03-22T02:59:44.000Z | 2020-09-29T21:07:36.000Z | src/core/omnomnom.mli | SquidDev/omnomnom | bbef94ef0e997b805aed3b2cccab37c328e598c5 | [
"MIT"
] | null | null | null | src/core/omnomnom.mli | SquidDev/omnomnom | bbef94ef0e997b805aed3b2cccab37c328e598c5 | [
"MIT"
] | null | null | null | (** An OCaml test framework inspired by Tasty.
{2 Usage}
{[
open Omnomnom.Tests
let () =
Omnomnom.run
@@ group "omnomnom"
[ simple_test "Will assert a value" (fun () ->
assert (List.hd [ 0 ] = 0);
());
simple_test "... | 25.163265 | 93 | 0.593674 |
449011ec8347947519f3fe15bf22e27b82fd8ed9 | 1,088 | mli | OCaml | factorization/factorize_iteration.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | factorization/factorize_iteration.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | factorization/factorize_iteration.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 51.809524 | 109 | 0.347426 |
bc90a4bfde141aba1d198e750abd954c574d3d2a | 5,523 | ml | OCaml | src/lib_error_monad/monad_extension_maker.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_error_monad/monad_extension_maker.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/lib_error_monad/monad_extension_maker.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 35.632258 | 80 | 0.573058 |
bcbdd8738dc6ef082fd9c6574c36de0abf4f38e3 | 191 | ml | OCaml | chapter5/lib/trace_source.ml | vyorkin/tiger | 54dd179c1cd291df42f7894abce3ee9064e18def | [
"MIT"
] | 14 | 2019-12-31T19:44:45.000Z | 2021-12-09T13:43:18.000Z | chapter5/lib/trace_source.ml | vyorkin/tiger | 54dd179c1cd291df42f7894abce3ee9064e18def | [
"MIT"
] | 4 | 2019-08-16T16:17:41.000Z | 2020-02-23T15:31:42.000Z | chapter5/lib/trace_source.ml | vyorkin/tiger | 54dd179c1cd291df42f7894abce3ee9064e18def | [
"MIT"
] | 2 | 2020-10-17T04:56:37.000Z | 2021-08-22T13:00:56.000Z | (** Trace target *)
type target =
| Stdout
| File of string
[@@deriving eq, show]
(** Trace sources *)
type t =
| Symbol of target list
| Semant of target list
[@@deriving eq, show]
| 15.916667 | 25 | 0.628272 |
bc1d60460828ffafd33a32afc3ac0dc62e26a0a8 | 4,473 | ml | OCaml | exercises/forth/test.ml | bcc32/exercism-ocaml | b535bccf069695ee9f6d607cad5dd10734066893 | [
"MIT"
] | null | null | null | exercises/forth/test.ml | bcc32/exercism-ocaml | b535bccf069695ee9f6d607cad5dd10734066893 | [
"MIT"
] | null | null | null | exercises/forth/test.ml | bcc32/exercism-ocaml | b535bccf069695ee9f6d607cad5dd10734066893 | [
"MIT"
] | null | null | null | (* Test/exercise version: "1.3.0" *)
open Base
open OUnit2
open Forth
let print_int_list_option (xs: int list option) = match xs with
| None -> "None"
| Some xs -> "Some [" ^ String.concat ~sep:";" (List.map ~f:Int.to_string xs) ^ "]"
let ae exp got _test_ctxt = assert_equal ~printer:print_int_list_option exp got
le... | 30.428571 | 83 | 0.577241 |
bc47b5d0779bad300b6149b3f20523b9fff8f1cc | 704 | ml | OCaml | src/base/types/owl_types_computation_device.ml | tachukao/owl | 126274834577f879c85fbe1d0c9bb861f6240379 | [
"MIT"
] | 508 | 2018-03-24T12:15:49.000Z | 2022-03-30T11:37:33.000Z | src/base/types/owl_types_computation_device.ml | tachukao/owl | 126274834577f879c85fbe1d0c9bb861f6240379 | [
"MIT"
] | 344 | 2018-03-23T14:01:27.000Z | 2022-03-31T16:14:14.000Z | src/base/types/owl_types_computation_device.ml | tachukao/owl | 126274834577f879c85fbe1d0c9bb861f6240379 | [
"MIT"
] | 68 | 2018-03-28T21:34:12.000Z | 2022-01-23T12:15:33.000Z | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
module type Sig = sig
module A : Owl_types_ndarray_mutable.Sig
(** {5 Type definition} *)
type device
(** TODO *)
type value
(** TODO *)
(** {5 Core functions} *)
val make_dev... | 16.372093 | 63 | 0.583807 |
bcb8227d7f4660ca00e56e1ec21a45ae3718f952 | 825 | ml | OCaml | out/euler17.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 22 | 2017-04-24T10:00:45.000Z | 2021-04-01T10:11:05.000Z | out/euler17.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 12 | 2017-03-26T18:34:21.000Z | 2019-03-21T19:13:03.000Z | out/euler17.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 7 | 2017-10-14T13:33:33.000Z | 2021-03-18T15:18:50.000Z |
let () =
Printf.printf "%d\n" (3 + 16);
let one_to_nine = 3 + 33 in
Printf.printf "%d\n" one_to_nine;
let one_to_ten = one_to_nine + 3 in
let one_to_twenty = one_to_ten + 73 in
let one_to_thirty = one_to_twenty + 6 * 9 + one_to_nine + 6 in
let one_to_forty = one_to_thirty + 6 * 9 + one_to_nine + 5 in
le... | 48.529412 | 119 | 0.676364 |
bcf63aadbdfd9c4470475d3eebc670f34e1d428a | 45,461 | ml | OCaml | command/test/serverTest.ml | yuhonghong66/pyre-check | 00690c8de631daaf43e07d3f289aa9ff2dfa35bf | [
"MIT"
] | null | null | null | command/test/serverTest.ml | yuhonghong66/pyre-check | 00690c8de631daaf43e07d3f289aa9ff2dfa35bf | [
"MIT"
] | null | null | null | command/test/serverTest.ml | yuhonghong66/pyre-check | 00690c8de631daaf43e07d3f289aa9ff2dfa35bf | [
"MIT"
] | null | null | null | (** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Core
open OUnit2
open Analysis
open Ast
open Expression
open Pyre
open PyreParser
open Server
open Test
exception Timeout
let file... | 30.307333 | 134 | 0.629507 |
bcb78495275c4f39111dd80e25636da06558cf8a | 10,423 | ml | OCaml | src/int_conversions.ml | sangwoo-joh/base | 25e68e4a33c8339d95cb7e89485410d9be7f8771 | [
"MIT"
] | 4 | 2021-02-14T20:13:50.000Z | 2021-03-13T03:24:44.000Z | src/int_conversions.ml | sangwoo-joh/base | 25e68e4a33c8339d95cb7e89485410d9be7f8771 | [
"MIT"
] | null | null | null | src/int_conversions.ml | sangwoo-joh/base | 25e68e4a33c8339d95cb7e89485410d9be7f8771 | [
"MIT"
] | null | null | null | open! Import
module Int = Int0
module Sys = Sys0
let convert_failure x a b to_string =
Printf.failwithf
"conversion from %s to %s failed: %s is out of range"
a
b
(to_string x)
()
[@@cold] [@@inline never] [@@local never] [@@specialise never]
;;
let num_bits_int = Sys.int_size_in_bits
let num_bit... | 29.27809 | 90 | 0.723016 |
8a7ffcbbd838ac5d86bf903bbe71ea7c70057df3 | 7,385 | ml | OCaml | CodeHawk/CHJ/jchfeatures/jCHSubgraph.ml | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CHJ/jchfeatures/jCHSubgraph.ml | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CHJ/jchfeatures/jCHSubgraph.ml | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk Java Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2020 Kestrel Technology LLC
Copyright (c) 2020-2021 Henn... | 31.695279 | 83 | 0.608666 |
bcd33b869eca04de978d66ce46c8d049cea39e3c | 3,798 | ml | OCaml | sol/sol_051.ml | bcc32/projecteuler-ocaml | 647a1db1caaf919a1c506c213a2e7948ac3ea63c | [
"MIT"
] | 10 | 2018-10-15T02:11:39.000Z | 2022-01-26T08:57:12.000Z | sol/sol_051.ml | bcc32/projecteuler-ocaml | 647a1db1caaf919a1c506c213a2e7948ac3ea63c | [
"MIT"
] | null | null | null | sol/sol_051.ml | bcc32/projecteuler-ocaml | 647a1db1caaf919a1c506c213a2e7948ac3ea63c | [
"MIT"
] | 1 | 2020-04-18T13:03:50.000Z | 2020-04-18T13:03:50.000Z | open! Core
open! Import
module Mask : sig
(** A bitmask over digits. [1] means that digit's position can be filled by
another digit. *)
type t = private int
val of_bits : int -> t
val iter_all : digits:int -> f:(t -> unit) -> unit
end = struct
type t = int
let of_bits = Fn.id
let iter_all ~digi... | 25.662162 | 88 | 0.578726 |
44817f9ecd62afa93a7d2d26bcf937d7262d704f | 8,199 | ml | OCaml | data/derived/comb/progs/unify/prog8251.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/prog3461.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3461.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.028571 | 148 | 0.629223 |
aa22db39f36b12fe6da29053ac1b5c51f8742dd7 | 8,276 | ml | OCaml | src/proto_alpha/lib_protocol/gas_limit_repr.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/gas_limit_repr.ml | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/gas_limit_repr.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> *)
... | 31.708812 | 79 | 0.606694 |
bc92f7d70eae6a44d27a82c1770b86b7feb5bd18 | 384 | ml | OCaml | examples/church-lists.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | examples/church-lists.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | examples/church-lists.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | external val print : string -> unit = "print"
type church 'a = ChurchList of forall 'r. ('a -> 'r -> 'r) -> 'r -> 'r
let unList (ChurchList l) = l
let cons x xs = ChurchList (fun k z -> k x (unList xs k z))
and nil = ChurchList (fun _ z -> z)
let printList l =
unList l (fun x k () -> print x; k ()) (fun _ -> prin... | 27.428571 | 70 | 0.580729 |
bc7c47f470203ac012c1c1a6392c528438cee0c4 | 11,970 | ml | OCaml | bootstrap/src/basis/intnb.ml | jasone/Hemlock | 39f3f981b2cb37246cdbb9b0e6c1f58f2ecbdaf9 | [
"MIT"
] | null | null | null | bootstrap/src/basis/intnb.ml | jasone/Hemlock | 39f3f981b2cb37246cdbb9b0e6c1f58f2ecbdaf9 | [
"MIT"
] | null | null | null | bootstrap/src/basis/intnb.ml | jasone/Hemlock | 39f3f981b2cb37246cdbb9b0e6c1f58f2ecbdaf9 | [
"MIT"
] | null | null | null | open Rudiments_functions
open Intnb_intf
module Make_derived (T : I_derived) : S_derived with type t := T.t = struct
include Cmpable.Make_zero(T)
let is_pow2 t =
match t > T.zero with
| false -> false
| true -> (T.bit_and t T.(t - one)) = T.zero
let floor_pow2 t =
match T.cmp t T.one with
|... | 24.428571 | 79 | 0.550794 |
bc57ed7eb7db4f230bed0b719e3d3ca88c2eaafb | 8,270 | ml | OCaml | data/derived/fa15/progs/cnstr/prog2425.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/prog2425.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog2425.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.368098 | 148 | 0.670375 |
44a82c70b61b4234b5596418b2fda07bf321ca03 | 5,157 | ml | OCaml | src/main/FomCommand/FomCommand.ml | polytypic/f-omega-mu | 3ced242c94db041f1b6d7e59f762feb1b81c5eb7 | [
"MIT"
] | 20 | 2021-01-31T13:37:35.000Z | 2022-03-24T11:12:46.000Z | src/main/FomCommand/FomCommand.ml | polytypic/f-omega-mu | 3ced242c94db041f1b6d7e59f762feb1b81c5eb7 | [
"MIT"
] | null | null | null | src/main/FomCommand/FomCommand.ml | polytypic/f-omega-mu | 3ced242c94db041f1b6d7e59f762feb1b81c5eb7 | [
"MIT"
] | 1 | 2021-02-24T09:54:33.000Z | 2021-02-24T09:54:33.000Z | open FomBasis
open FomDiag
(* *)
let () = Hashtbl.randomize ()
(* *)
module Options = struct
let max_width = ref 80
let whole = ref true
let stop : [`Typ | `Js | `Run] ref = ref `Run
end
(* *)
exception HttpError of (int * Cohttp.Code.meth * Uri.t)
let of_lwt op =
of_async @@ fun on_error on_ok ->
matc... | 30.88024 | 81 | 0.540237 |
aa250b1bf7bfde130b0ccbefefc77fb6a9ca2637 | 31,424 | ml | OCaml | src/core/CCString.ml | darrenldl/ocaml-containers | b5ecb273ef0cf16351bb8295b79863c562f1218c | [
"BSD-2-Clause"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | src/core/CCString.ml | darrenldl/ocaml-containers | b5ecb273ef0cf16351bb8295b79863c562f1218c | [
"BSD-2-Clause"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/core/CCString.ml | darrenldl/ocaml-containers | b5ecb273ef0cf16351bb8295b79863c562f1218c | [
"BSD-2-Clause"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z |
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Basic String Utils} *)
(*$inject
open CCShims_.Stdlib
*)
open CCShims_
type 'a iter = ('a -> unit) -> unit
type 'a gen = unit -> 'a option
(* standard implementations *)
include String
let compare_int (a : int) b... | 27.784262 | 307 | 0.579748 |
bc0110cd3f4f6d54e0c91718ddc4231534343b26 | 222 | ml | OCaml | data/derived/comb/progs/unify/prog2817.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/prog2817.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2817.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
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));;
| 22.2 | 60 | 0.527027 |
bcdc3f7de6d8e5cbb9795e8b1d78b5b6914ad141 | 1,909 | ml | OCaml | src/codegen/gencommon/arrayDeclSynf.ml | shintiger/haxe | 2985c9d8282003a35ade2971cbe0190300417e42 | [
"MIT"
] | 1 | 2020-02-10T11:52:11.000Z | 2020-02-10T11:52:11.000Z | src/codegen/gencommon/arrayDeclSynf.ml | kLabz/haxe | 1e0ac64dbb75f15cbde7036f67bd6edf02b455bc | [
"MIT"
] | null | null | null | src/codegen/gencommon/arrayDeclSynf.ml | kLabz/haxe | 1e0ac64dbb75f15cbde7036f67bd6edf02b455bc | [
"MIT"
] | null | null | null | (*
The Haxe Compiler
Copyright (C) 2005-2019 Haxe Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This prog... | 36.711538 | 99 | 0.732844 |
bc1e0e43665adfaa5ea885bf1adef00d0a39e96a | 4,776 | ml | OCaml | src/lib/prover/stateEncoding.ml | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | 3 | 2019-10-06T12:05:37.000Z | 2020-04-16T11:40:50.000Z | src/lib/prover/stateEncoding.ml | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | null | null | null | src/lib/prover/stateEncoding.ml | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | 2 | 2020-06-12T00:18:56.000Z | 2020-10-09T23:35:38.000Z | open Core
type t =
{ curr_depth: int
; goals_remaining: int
; ast_size: int
; left_stmt_type: int option
; left_stmt1_type: int option
; left_stmt2_type: int option
; right_stmt_type: int option
; right_stmt1_type: int option
; right_stmt2_type: int option
; left_stmt_difficulty: int option
; rig... | 37.3125 | 79 | 0.744137 |
bc232b9686935d02eb37f64c5bf5d91b4b82e9b2 | 349 | ml | OCaml | data/derived/comb/progs/unify/prog6430.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/prog1587.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1587.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) = let (b',c') = f b in if c' then wwhile (f, b') else b';;
let collatz n =
match n with | 1 -> 1 | _ when (n mod 2) = 0 -> n / 2 | _ -> (3 * n) + 1;;
let fixpoint (f,b) =
let foo f b =
let result = f b in
if result = b then (result, false) else (result, true) in
wwhile f b;;
let _... | 24.928571 | 79 | 0.535817 |
bcd01887dae11b6ffecc0234e3ec7bcfb1dbfc77 | 7,817 | ml | OCaml | data/derived/comb/progs/unify/prog0191.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/prog0191.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0191.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.862543 | 148 | 0.635666 |
bc01f815ca2797bebd9924229f50ce0e65dcb703 | 6,550 | ml | OCaml | ocaml/dev/dt2xbs.ml | epstabler/mgtdb | 41e0018a2aebee90a5bdafe21dfac8d743aca4a7 | [
"Apache-2.0"
] | 9 | 2015-07-26T23:09:34.000Z | 2021-01-20T23:54:55.000Z | ocaml/dev/dt2xbs.ml | epstabler/mgtdb | 41e0018a2aebee90a5bdafe21dfac8d743aca4a7 | [
"Apache-2.0"
] | null | null | null | ocaml/dev/dt2xbs.ml | epstabler/mgtdb | 41e0018a2aebee90a5bdafe21dfac8d743aca4a7 | [
"Apache-2.0"
] | 7 | 2015-07-20T16:46:03.000Z | 2021-08-14T02:01:17.000Z | (* file: dt2xbs.ml
creator: E Stabler, stabler@ucla.edu
creation date: 2010-09-17 10:30:06 PDT
purpose: dt is first mapped to (state, bool, xbtrees) triples,
where the length of state = length of xbtrees,
and bool is true iff tree is lexical.
... | 36.592179 | 109 | 0.589466 |
aa14ba97cd8f4ae36c5615ce13335d86c093f36f | 60 | ml | OCaml | tests/verify/unused_pat_01.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/verify/unused_pat_01.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/verify/unused_pat_01.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | let x =
match (1, 2) with
| (0, 0) -> 0
| (a, b) -> 0
| 12 | 19 | 0.35 |
bc51402339bbb0dd94056c53ea157e3bef18727d | 4,502 | ml | OCaml | src/commands/refactorCommand.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"MIT"
] | null | null | null | src/commands/refactorCommand.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"MIT"
] | null | null | null | src/commands/refactorCommand.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"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.
*)
(***********************************************************************)
(* flow refactor command *)
(***************************... | 32.861314 | 110 | 0.64016 |
bc47217955d0f9aa776677cf3e34ac81103d0ac1 | 139 | ml | OCaml | vol00/v0006.ml | r6eve/oaoj | b3225208d6a6260e2d6219ca12fa3f44583ec2c2 | [
"BSL-1.0"
] | null | null | null | vol00/v0006.ml | r6eve/oaoj | b3225208d6a6260e2d6219ca12fa3f44583ec2c2 | [
"BSL-1.0"
] | null | null | null | vol00/v0006.ml | r6eve/oaoj | b3225208d6a6260e2d6219ca12fa3f44583ec2c2 | [
"BSL-1.0"
] | null | null | null | let () =
let l = read_line () in
let n = String.length l in
String.iteri (fun i _ -> print_char l.[n - i - 1]) l;
print_newline ()
| 23.166667 | 55 | 0.582734 |
aa2d1c7cbce9a420654f8f0d4e3df0635d808d05 | 1,851 | ml | OCaml | data/fa15/0830.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/0830.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/0830.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let modulus ss = ss mod 10;;
let rec digitsOfInt n =
if n <= 0
then []
else (match n with | x -> (digitsOfInt (n / 10)) @ [modulus x]);;
let lt10 q = q < 10;;
let rec sumList xs = match xs with | [] -> 0 | h::t -> h + (sumList t);;
let rec additivePersistence n =
if lt10 n
then n
else
(match n with... | 15.820513 | 73 | 0.514317 |
aa1dd43130ead56ab4878489a5476bd742749af0 | 299 | ml | OCaml | benchmarks/C/uniq/sol117.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/uniq/sol117.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/uniq/sol117.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec drop_duplicate = fun a lst ->
match lst with
| [] -> []
| hd::tl -> if a = hd then drop_duplicate a tl else hd::(drop_duplicate a tl)
let rec uniq : 'a list -> 'a list
= fun lst ->
match lst with
| [] -> []
| hd::tl -> hd::(uniq(drop_duplicate hd tl))
;;
| 23 | 82 | 0.528428 |
bc97c0a2b1f24642ca735810c9688279d6c53aff | 707 | mli | OCaml | source/analysis/annotatedDefine.mli | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/analysis/annotatedDefine.mli | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/analysis/annotatedDefine.mli | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 501 | 2018-05-11T16:46:29.000Z | 2022-03-19T04:41:57.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open Ast
open Statement
module Callable = AnnotatedCallable
module Class = AnnotatedClass
type t [@@deriving compare, eq... | 26.185185 | 90 | 0.736917 |
bcd079171c84b063187278fb1d32299fc43552b9 | 5,387 | ml | OCaml | examples/ping_pong_chain/ping.ml | Smarthab/HAB | dc8b58e73e9e78e264c228522b0a3a4e4104fa44 | [
"MIT"
] | null | null | null | examples/ping_pong_chain/ping.ml | Smarthab/HAB | dc8b58e73e9e78e264c228522b0a3a4e4104fa44 | [
"MIT"
] | null | null | null | examples/ping_pong_chain/ping.ml | Smarthab/HAB | dc8b58e73e9e78e264c228522b0a3a4e4104fa44 | [
"MIT"
] | null | null | null | open Batteries
open Ocaml_geth
open Basic (* for Bits and Bytes *)
open Contract
(* --------------------------------------------------------------------- *)
(* Some helpful functions *)
(* --------------------------------------------------------------------- *)
(* Read password from stdin in a stealthy manner *)
let... | 28.352632 | 113 | 0.584927 |
8aa98ca84a036323c771109269262ef507e2b514 | 3,254 | ml | OCaml | hphp/hack/test/integration_ml/ide/test_ide_check.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/ide/test_ide_check.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/test/integration_ml/ide/test_ide_check.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*
*)
open Integration_test_base_types
module Test = Integration_test_base
let a_name = "a.php"
let a_contents1 =
... | 27.116667 | 80 | 0.670559 |
bca491bac5d7cb282eecc65cbe9f594efad98ede | 5,737 | ml | OCaml | src/parser/basic.ml | lev-malets/pc-rd-cmp | 5c87dda5c55e85db881b98a13b5f62785359ef7e | [
"MIT"
] | null | null | null | src/parser/basic.ml | lev-malets/pc-rd-cmp | 5c87dda5c55e85db881b98a13b5f62785359ef7e | [
"MIT"
] | null | null | null | src/parser/basic.ml | lev-malets/pc-rd-cmp | 5c87dda5c55e85db881b98a13b5f62785359ef7e | [
"MIT"
] | 1 | 2021-04-09T17:11:11.000Z | 2021-04-09T17:11:11.000Z | module APos = Angstrom_pos.Make(State)
module Charset = Angstrom_pos.Charset
module type Ext = sig
module Named: Angstrom_pos.Sigs.NAMED with module Parser = APos.Parser
module Peek: Angstrom_pos.Sigs.PEEK with module Parser = APos.Parser
end
type 'a parser = 'a APos.Parser.t
open APos
open Parsetree
module... | 31.872222 | 100 | 0.531985 |
bccfa565a8f812069e7b4863b650c6f7c1a27f86 | 223 | ml | OCaml | sledge/src/llair/reg.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | sledge/src/llair/reg.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | sledge/src/llair/reg.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Variables *)
include Exp.Reg
| 20.272727 | 66 | 0.699552 |
bc9847ec25082749ec97f2283e5d5e7d852fb199 | 20,928 | ml | OCaml | src/owl/stats/owl_stats.ml | tachukao/owl | 126274834577f879c85fbe1d0c9bb861f6240379 | [
"MIT"
] | 508 | 2018-03-24T12:15:49.000Z | 2022-03-30T11:37:33.000Z | src/owl/stats/owl_stats.ml | tachukao/owl | 126274834577f879c85fbe1d0c9bb861f6240379 | [
"MIT"
] | 344 | 2018-03-23T14:01:27.000Z | 2022-03-31T16:14:14.000Z | src/owl/stats/owl_stats.ml | tachukao/owl | 126274834577f879c85fbe1d0c9bb861f6240379 | [
"MIT"
] | 68 | 2018-03-28T21:34:12.000Z | 2022-01-23T12:15:33.000Z | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
[@@@warning "-32"]
(** Random numbers and distributions *)
include Owl_stats_dist
(* Randomisation function *)
let shuffle x =
let y = Array.copy x in
Owl_stats_extend.shuffle y;
y
let... | 25.868974 | 90 | 0.561067 |
bc05fb42c355ded29795d84895b520294dcd9f89 | 19,510 | ml | OCaml | data/derived/comb/progs/unify/prog2209.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/prog2209.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2209.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 34.530973 | 208 | 0.640185 |
bcf5ea56ef3ee77c98825e74f7d1b6c046caa5f3 | 5,435 | ml | OCaml | hphp/hack/src/decl/decl_init_check.ml | theovod/hhvm | 9c9e0653f825edd4c2db2a6d77cd9b123add7d6b | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/src/decl/decl_init_check.ml | theovod/hhvm | 9c9e0653f825edd4c2db2a6d77cd9b123add7d6b | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_init_check.ml | theovod/hhvm | 9c9e0653f825edd4c2db2a6d77cd9b123add7d6b | [
"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.
*
*)
open Core_kernel
open Decl_defs
open Nast
module Attrs = Attributes
module SN = Naming_special_names
let parent_i... | 34.398734 | 82 | 0.662925 |
bc94308185993742f6ca19ec5e96dfd105c7269b | 4,162 | ml | OCaml | src/batsh_format.ml | silky/Batsh | 3ea131e7d67f08691b5e22bb34a0490af6a6ff95 | [
"MIT"
] | 1 | 2019-06-27T11:34:17.000Z | 2019-06-27T11:34:17.000Z | src/batsh_format.ml | silky/Batsh | 3ea131e7d67f08691b5e22bb34a0490af6a6ff95 | [
"MIT"
] | null | null | null | src/batsh_format.ml | silky/Batsh | 3ea131e7d67f08691b5e22bb34a0490af6a6ff95 | [
"MIT"
] | null | null | null | open Core.Std
open Batsh_ast
let rec print_lvalue (buf : Buffer.t) (lvalue: leftvalue) =
match lvalue with
| Identifier ident ->
Buffer.add_string buf ident
| ListAccess (lvalue, expr) ->
bprintf buf "%a[%a]" print_lvalue lvalue print_expression expr
and print_expression (buf : Buffer.t) (expr: expressi... | 30.602941 | 82 | 0.68789 |
bc4152c05ffbb222d281b4cb09cb0c41fd7fbabc | 635 | ml | OCaml | lib/mirage_impl_qubesdb.ml | dra27/mirage | ee6b6d96ad438092b812774deddbe8bc73397c4d | [
"ISC"
] | null | null | null | lib/mirage_impl_qubesdb.ml | dra27/mirage | ee6b6d96ad438092b812774deddbe8bc73397c4d | [
"ISC"
] | null | null | null | lib/mirage_impl_qubesdb.ml | dra27/mirage | ee6b6d96ad438092b812774deddbe8bc73397c4d | [
"ISC"
] | null | null | null | open Functoria
module Key = Mirage_key
open Mirage_impl_misc
open Rresult
type qubesdb = QUBES_DB
let qubesdb = Type QUBES_DB
let qubesdb_conf = object
inherit base_configurable
method ty = qubesdb
method name = "qubesdb"
method module_name = "Qubes.DB"
method! packages = Key.pure [ package ~min:"0.4" "mira... | 27.608696 | 96 | 0.719685 |
aa18649a95f0d4cddfb2291e93fcafc782cae33f | 35,525 | ml | OCaml | data/derived/comb/progs/unify/prog3397.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/prog3397.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3397.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 63.211744 | 248 | 0.468656 |
aa1f4ccf1ffb63a9d7d0bcea94e04fc8a039289e | 1,114 | ml | OCaml | src/lib/dummy_values/gen_values/gen_values.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/dummy_values/gen_values/gen_values.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/dummy_values/gen_values/gen_values.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Ppxlib
open Asttypes
open Parsetree
open Longident
open Core
open Async
open Pickles_types
let proof_string prev_width =
let dummy = Pickles.Proof.dummy Nat.N2.n Nat.N2.n prev_width in
Binable.to_string (module Pickles.Proof.Branching_2.Stable.Latest) dummy
let blockchain_proof_string = proof_string Nat.N2.n... | 26.52381 | 74 | 0.722621 |
aa2fe4bbf397e0be7cd42ee41c165b1e25a6580f | 2,142 | ml | OCaml | myocamlbuild.ml | dbp/funtal | 1125889a3819c714f2aef1d9820f01dbd8197045 | [
"0BSD"
] | 32 | 2017-02-20T22:41:17.000Z | 2021-07-27T05:47:12.000Z | myocamlbuild.ml | dbp/funtal | 1125889a3819c714f2aef1d9820f01dbd8197045 | [
"0BSD"
] | 6 | 2017-02-20T21:23:18.000Z | 2017-02-21T03:03:09.000Z | myocamlbuild.ml | dbp/funtal | 1125889a3819c714f2aef1d9820f01dbd8197045 | [
"0BSD"
] | 4 | 2017-02-20T21:22:07.000Z | 2019-06-16T11:05:34.000Z | (* OASIS_START *)
(* OASIS_STOP *)
open Ocamlbuild_plugin
module Menhir = struct
let menhir () =
if !Options.ocamlyacc = N then V"MENHIR" else !Options.ocamlyacc
let menhir_tags mly =
tags_of_pathname mly ++"ocaml"++"parser"++"menhir"
let menhir_produce_messages env build =
let messages, mly = env ... | 31.5 | 71 | 0.566293 |
bcfc78da6a061645eb6d8c80704eb550063496f9 | 2,006 | ml | OCaml | hphp/hack/src/parser/full_fidelity_minimal_token.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_minimal_token.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/parser/full_fidelity_minimal_token.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.000Z | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(**
* Minimal token
*
* A minimal token knows its kind, its width (without trivia), and its
* associated trivia.... | 26.051948 | 79 | 0.708375 |
bcdf6f31aa7bd8914435abcfb77eb08d779f662c | 378 | ml | OCaml | benchmarks/wellformedness/wellformedness1/submissions/sub2.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/wellformedness/wellformedness1/submissions/sub3.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | null | null | null | benchmarks/wellformedness/wellformedness1/submissions/sub3.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 checkMetro met=
let rec checkArea id m =
match m with
STATION n -> List.exists (fun x->x=n) id
| CONNECT (s1,s2) -> ((checkArea id s1) & (checkArea id s2))
| AREA (id2,m) -> checkArea (id2::id) m
in
mat... | 22.235294 | 61 | 0.62963 |
bcb24f590ac847c00b7f46578e199401a1f36fc8 | 694 | ml | OCaml | data/fa15_min/1800.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/1800.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/1800.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 (i,t) = f b in if t then wwhile (f, i) else i;;
let fixpoint (f,b) = wwhile (((f b) = b), b);;
(* fix
let rec wwhile (f,b) = let (i,t) = f b in if t then wwhile (f, i) else i;;
let fixpoint (f,b) =
wwhile
((let g b = let xx = f b in if b = xx then (xx, false) else (xx, true) in
... | 16.139535 | 77 | 0.508646 |
bcbbe9ff758938a9eded8e2828912dfcfb2e6042 | 31,700 | ml | OCaml | test/irmin/test.ml | lyrm/irmin | 1786c1b3e815e4b4452e0f5eea6991643d04b3a5 | [
"ISC"
] | null | null | null | test/irmin/test.ml | lyrm/irmin | 1786c1b3e815e4b4452e0f5eea6991643d04b3a5 | [
"ISC"
] | null | null | null | test/irmin/test.ml | lyrm/irmin | 1786c1b3e815e4b4452e0f5eea6991643d04b3a5 | [
"ISC"
] | null | null | null | module T = Irmin.Type
let test_base () =
let s = T.to_json_string T.string "foo" in
Alcotest.(check string) "JSON string" "\"foo\"" s;
let s = T.to_bin_string T.string "foo" in
Alcotest.(check string) "binary string" "foo" s;
Alcotest.(check (option int))
"binary size"
(Some (String.length "foo"))
... | 28.202847 | 80 | 0.507098 |
bc50997d78b652101b0ff57ab5a28baae6f01139 | 21 | ml | OCaml | common/abspath.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | common/abspath.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | common/abspath.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | include Path.Abspath
| 10.5 | 20 | 0.857143 |
bc7fb85b6ad73f2eb6dc3a97e9c4e7d180da5b75 | 538 | ml | OCaml | data/sp14/1285.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/1285.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/1285.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 =
if n <= 0 then [] else (match n with | n -> [digitsOfInt n]);;
(* fix
let rec digitsOfInt n =
if n <= 0 then [] else (match n with | n -> [n mod 10]);;
*)
(* changed spans
(3,47)-(3,58)
(3,47)-(3,60)
*)
(* type error slice
(2,3)-(3,64)
(2,20)-(3,62)
(3,2)-(3,62)
(3,25)-(3,62)
(3,46)-(... | 12.809524 | 64 | 0.477695 |
aa01542e1ba264bf6547faded3198591389500f1 | 586 | ml | OCaml | data/fa15/2544.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2544.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2544.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 :: ((x clone x n) - 1);;
(* fix
let rec clone x n = if n <= 0 then [] else clone x (n - 1);;
*)
(* changed spans
(2,43)-(2,44)
(2,43)-(2,67)
(2,48)-(2,67)
(2,49)-(2,62)
(2,50)-(2,51)
(2,60)-(2,61)
*)
(* type error slice
(2,43)-(2,67)
(2,48)-(2,67)
(2,49)-(2,62)
(2,50)... | 12.73913 | 69 | 0.455631 |
bcb48a8e60e073af8dea4067216e4eed70e402b3 | 6,816 | ml | OCaml | src/ocaml/merlin_specific/406/raw_compat.ml | brianhempel/merlin | 14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | src/ocaml/merlin_specific/406/raw_compat.ml | brianhempel/merlin | 14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6 | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | src/ocaml/merlin_specific/406/raw_compat.ml | brianhempel/merlin | 14325f26fc7ffa4a3e8adaa70d405c9d5f31b2a6 | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby... | 33.24878 | 80 | 0.634683 |
aa39fc7853448114a167302443b723fa88862e94 | 8,983 | ml | OCaml | src/analyses/symbLocks.ml | MartinSpiessl/analyzer | aad69262820ebf812b3e2e8ff12d1aede4c2c8fa | [
"MIT"
] | null | null | null | src/analyses/symbLocks.ml | MartinSpiessl/analyzer | aad69262820ebf812b3e2e8ff12d1aede4c2c8fa | [
"MIT"
] | 1 | 2020-09-15T08:49:41.000Z | 2020-09-15T08:49:41.000Z | src/analyses/symbLocks.ml | Fayanzar/analyzer | 0610c520ca3fdda91dbc365f44a5e78c76906c6f | [
"MIT"
] | null | null | null | (** Symbolic lock-sets for use in per-element patterns. *)
module LF = LibraryFunctions
module LP = Exp.LockingPattern
module Exp = Exp.Exp
module VarEq = VarEq.Spec
open Prelude.Ana
open Analyses
(* Note: This is currently more conservative than varEq --- but
it should suffice for tests. *)
module Spec =
struct
... | 36.815574 | 241 | 0.633196 |
bcaadf5122972c6e1d090ea83091b36d4bdb1c52 | 5,370 | mli | OCaml | examples/fts/stub-generation/bindings/fts.mli | Armael/ocaml-ctypes | b8968b6d7b5687399011275758e7597f6a7274f9 | [
"MIT"
] | 271 | 2015-01-02T14:49:27.000Z | 2022-02-27T18:52:53.000Z | examples/fts/stub-generation/bindings/fts.mli | Armael/ocaml-ctypes | b8968b6d7b5687399011275758e7597f6a7274f9 | [
"MIT"
] | 356 | 2015-01-02T16:31:32.000Z | 2022-03-31T11:16:31.000Z | examples/fts/stub-generation/bindings/fts.mli | Armael/ocaml-ctypes | b8968b6d7b5687399011275758e7597f6a7274f9 | [
"MIT"
] | 76 | 2015-01-12T11:37:18.000Z | 2022-02-13T04:27:51.000Z | (*
* Copyright (c) Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
open Ctypes
open Fts_types
(* The fts functions are provided for traversing file hierarchies. A simple
overview is that the fts_open() function returns a "handle" on a fi... | 49.722222 | 81 | 0.730168 |
aa3667836d6207a001de8b83bd3df4edb7eca5da | 350 | ml | OCaml | data/fa15/0061.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/0061.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/0061.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let pipe fs =
let f a x = x a "to be implemented" in
let base = 0 "to be implemented" in List.fold_left f base fs;;
(* fix
let pipe fs = let f a x = x in let base b = b in List.fold_left f base fs;;
*)
(* changed spans
(3,15)-(3,38)
x
VarG
(4,14)-(4,35)
fun b -> b
LamG VarPatG VarG
*)
(* type error slice
(... | 12.5 | 75 | 0.588571 |
bcd9e80e9f5839d281c294b1423dfff9c3706943 | 3,914 | ml | OCaml | hphp/hack/src/typing/tast_check/shape_field_check.ml | the-storm/hhvm | 8c173160bb6b8e56277a04d00efe4c1a234b605c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/shape_field_check.ml | the-storm/hhvm | 8c173160bb6b8e56277a04d00efe4c1a234b605c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-04-19T09:53:42.000Z | 2021-04-19T09:53:42.000Z | hphp/hack/src/typing/tast_check/shape_field_check.ml | isabella232/hhvm | 6345684c993c575db92cbe18cd739147bfa0296f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
open Typing_defs
module SN = Naming_special_names
let shapes_key_exists env shape field_n... | 30.818898 | 79 | 0.59581 |
aa291c1c0285690883bc929fd95ffc9d05ca8221 | 1,224 | ml | OCaml | src/common/modulename/modulename.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 2 | 2018-02-28T06:36:27.000Z | 2018-02-28T06:36:30.000Z | src/common/modulename/modulename.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | null | null | null | src/common/modulename/modulename.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 2 | 2021-02-02T14:51:26.000Z | 2021-02-02T14:52:05.000Z | (**
* 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.
*)
(* Signature for module names. Such names are assumed to be "resolved", and have
global scope in the sense that they may be used to i... | 31.384615 | 80 | 0.726307 |
aa227cf35500d05998c40a39b304a3f6d6472ca0 | 5,459 | ml | OCaml | infer/src/nullsafe/models.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 2 | 2020-12-01T19:17:41.000Z | 2021-11-16T11:16:32.000Z | infer/src/nullsafe/models.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | 6 | 2021-06-28T20:30:19.000Z | 2022-02-27T10:48:57.000Z | infer/src/nullsafe/models.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | 1 | 2021-01-29T07:48:02.000Z | 2021-01-29T07:48:02.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module Hashtbl = Caml.Hashtbl
open ModelTables
(** Unique representation of a method signature in form of a string. *)
... | 39.273381 | 101 | 0.768273 |
aa365f87d28d9955e336b50aefca1b18df7f093f | 5,652 | mli | OCaml | lib/Sugar.mli | pmwhite/ocamlformat | 717e7edd5e578e0c0626b23308c3efb60d6822bf | [
"MIT"
] | null | null | null | lib/Sugar.mli | pmwhite/ocamlformat | 717e7edd5e578e0c0626b23308c3efb60d6822bf | [
"MIT"
] | null | null | null | lib/Sugar.mli | pmwhite/ocamlformat | 717e7edd5e578e0c0626b23308c3efb60d6822bf | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 35.10559 | 77 | 0.617127 |
aa0912753fb013ab9bda2571e0421822e9e9873e | 4,257 | mli | OCaml | src/lib_p2p/p2p_acl.mli | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/lib_p2p/p2p_acl.mli | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/lib_p2p/p2p_acl.mli | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | 1 | 2021-08-18T16:15:52.000Z | 2021-08-18T16:15:52.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 38.351351 | 79 | 0.574583 |
4401cd7700339cefff642e071c572fc760bfcfd6 | 2,262 | mli | OCaml | src/ocaml_400/utils/config.mli | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | 1 | 2021-03-12T10:45:56.000Z | 2021-03-12T10:45:56.000Z | src/ocaml_400/utils/config.mli | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | src/ocaml_400/utils/config.mli | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 40.392857 | 78 | 0.538462 |
aa313e13720a63c248940453e40b4bd179f736cb | 18,009 | ml | OCaml | src/services/type_info/insert_type.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | 1 | 2020-06-21T01:14:46.000Z | 2020-06-21T01:14:46.000Z | src/services/type_info/insert_type.ml | w01fgang/flow | a301e4d995d8c033e9aed05d24d943caf43b83b1 | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/services/code_action/insert_type.ml | Jankyboy/flow | f9839688acace8af5dbda39d808924347286862d | [
"MIT"
] | 1 | 2021-01-06T10:57:53.000Z | 2021-01-06T10:57:53.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 Ast = Flow_ast
module Utils = Insert_type_utils
module Import = Insert_type_imports
module ImportsHelper = Import.ImportsHel... | 34.302857 | 102 | 0.665445 |
bc27af95f4ab32c135c15a3becc4380800040417 | 3,290 | ml | OCaml | bench/main.ml | Ngoguey42/cachecache | 28a469afae79ce1547eda7c424bbee3efb4ea95b | [
"MIT"
] | null | null | null | bench/main.ml | Ngoguey42/cachecache | 28a469afae79ce1547eda7c424bbee3efb4ea95b | [
"MIT"
] | null | null | null | bench/main.ml | Ngoguey42/cachecache | 28a469afae79ce1547eda7c424bbee3efb4ea95b | [
"MIT"
] | null | null | null | module K = struct
include Int
let hash = Hashtbl.hash
end
module V = struct
type t = int
let weight _ = 1
end
module GLru = struct
include Cachecache.Lru.Make (K)
type nonrec t = int t
end
module OLru = struct
include Lru.M.Make (K) (V)
let v = create ~random:false
let find_opt t k = find k t
... | 23.169014 | 77 | 0.608511 |
bc7cc375235d93d1ada2df1f7a18e0ed024b0f9f | 57,537 | ml | OCaml | src/typing/type_mapper.ml | tjmehta/flow | 24cfe90731274817f1f5f1cad1549674db287a4f | [
"MIT"
] | null | null | null | src/typing/type_mapper.ml | tjmehta/flow | 24cfe90731274817f1f5f1cad1549674db287a4f | [
"MIT"
] | null | null | null | src/typing/type_mapper.ml | tjmehta/flow | 24cfe90731274817f1f5f1cad1549674db287a4f | [
"MIT"
] | 1 | 2018-01-18T10:09:27.000Z | 2018-01-18T10:09:27.000Z | (**
* 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 Type
let maybe_known f x =
let open React.CreateClass in
begin match x with
| Known x' ->
let x'' = f x' in
... | 40.123431 | 106 | 0.5806 |
bcc533d2e6237445d356344e7e75b41905c71945 | 14 | mli | OCaml | test/blackbox-tests/test-cases/coq/ml-lib.t/src_a/gram.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | test/blackbox-tests/test-cases/coq/ml-lib.t/src_a/gram.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | test/blackbox-tests/test-cases/coq/ml-lib.t/src_a/gram.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | val foo : int
| 7 | 13 | 0.642857 |
aa42aa71975e7c95c057dda6d556106cc81eecd8 | 1,114 | ml | OCaml | src/hack_forked/test/unit/heap/test_removed.ml | terrorizer1980/flow | d24b07b27fb92c9fd3eb95b6c2fecc57e4ea6cb5 | [
"MIT"
] | null | null | null | src/hack_forked/test/unit/heap/test_removed.ml | terrorizer1980/flow | d24b07b27fb92c9fd3eb95b6c2fecc57e4ea6cb5 | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/hack_forked/test/unit/heap/test_removed.ml | Jankyboy/flow | f9839688acace8af5dbda39d808924347286862d | [
"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.
*)
type key = OpaqueDigest.t
module IntVal = struct
type t = int
let prefix = Prefix.make ()
let description = "IntVal"
end
... | 24.755556 | 99 | 0.636445 |
bc3562960a2096defa5a234f5acfad26c7f3f684 | 96 | mli | OCaml | examples/open_source/rpc_chat/server/src/user_state.mli | Strikeskids/bonsai | 8fc8cd4cd931d34fe58eccd766ef95ca84787ba4 | [
"MIT"
] | null | null | null | examples/open_source/rpc_chat/server/src/user_state.mli | Strikeskids/bonsai | 8fc8cd4cd931d34fe58eccd766ef95ca84787ba4 | [
"MIT"
] | null | null | null | examples/open_source/rpc_chat/server/src/user_state.mli | Strikeskids/bonsai | 8fc8cd4cd931d34fe58eccd766ef95ca84787ba4 | [
"MIT"
] | null | null | null | open! Core_kernel
open! Async
type t =
{ user : string
; connection : Rpc.Connection.t
}
| 12 | 33 | 0.65625 |
aa34ad04a6bcf829f8804541d97e900fafc3575c | 3,986 | ml | OCaml | otherlibs/stdune-unstable/map_intf.ml | lefessan/dune | 855b085d889389e17dc914d094617090321fbfa5 | [
"MIT"
] | null | null | null | otherlibs/stdune-unstable/map_intf.ml | lefessan/dune | 855b085d889389e17dc914d094617090321fbfa5 | [
"MIT"
] | null | null | null | otherlibs/stdune-unstable/map_intf.ml | lefessan/dune | 855b085d889389e17dc914d094617090321fbfa5 | [
"MIT"
] | null | null | null | module type Key = sig
include Comparator.S
val to_dyn : t -> Dyn.t
end
module type S = sig
type key
type +'a t
val empty : 'a t
val is_empty : 'a t -> bool
val mem : 'a t -> key -> bool
val set : 'a t -> key -> 'a -> 'a t
val add : 'a t -> key -> 'a -> ('a t, 'a) Result.t
val add_exn : 'a t... | 26.052288 | 83 | 0.476417 |
bcd5926ad87c1055413973e57ba2b783e9dbed1a | 714 | ml | OCaml | lib/logging.ml | 0x4287/pi4 | 740516e9eedac9f9a69d589e80b765d7c4fca375 | [
"Apache-2.0"
] | null | null | null | lib/logging.ml | 0x4287/pi4 | 740516e9eedac9f9a69d589e80b765d7c4fca375 | [
"Apache-2.0"
] | null | null | null | lib/logging.ml | 0x4287/pi4 | 740516e9eedac9f9a69d589e80b765d7c4fca375 | [
"Apache-2.0"
] | null | null | null | let encoding_src =
Logs.Src.create "pi4.encoding" ~doc:"Logs Pi4's encoding events"
let frontend_src =
Logs.Src.create "pi4.frontend" ~doc:"Logs Pi4's frontend events"
let prover_src = Logs.Src.create "pi4.prover" ~doc:"Logs Pi4's prover events"
let prover_profile_src =
Logs.Src.create "pi4.prover.profile" ~do... | 35.7 | 95 | 0.7493 |
443609da47c5bb6762cb479832e336053921be7c | 411 | ml | OCaml | src/ref_table.ml | derui/reactjscaml | 0c13b274f22e5994fbbfdad6192acc1d8fe77a30 | [
"MIT"
] | 2 | 2019-11-04T07:14:05.000Z | 2019-11-04T08:42:01.000Z | src/ref_table.ml | derui/reactjscaml | 0c13b274f22e5994fbbfdad6192acc1d8fe77a30 | [
"MIT"
] | null | null | null | src/ref_table.ml | derui/reactjscaml | 0c13b274f22e5994fbbfdad6192acc1d8fe77a30 | [
"MIT"
] | null | null | null | (** The wrapper for Jstable *)
type t = Core.React.ref_ Js.t Jstable.t
let create () = Jstable.create ()
let define ~key table =
let value = Core.Ref.create () in
Jstable.add table (Js.string key) value
let use ~key table = Jstable.find table (Js.string key)
let find ~key table =
match Jstable.find table (Js... | 24.176471 | 70 | 0.678832 |
bc9f267e4c1e63e70e52a3272208be79251aa8d1 | 1,546 | ml | OCaml | hphp/hack/src/shape_analysis/shape_analysis_pretty_printer.ml | billf/hhvm | e0767481dae5363be903b758941d8dbf0abea3da | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/shape_analysis/shape_analysis_pretty_printer.ml | billf/hhvm | e0767481dae5363be903b758941d8dbf0abea3da | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/shape_analysis/shape_analysis_pretty_printer.ml | billf/hhvm | e0767481dae5363be903b758941d8dbf0abea3da | [
"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 Hh_prelude
open Shape_analysis_types
let show_entity = function
| Literal pos -> Format.asprintf "%a" Pos.pp pos
| V... | 33.608696 | 80 | 0.661708 |
affd00b47acf9dcec9394e665adb3c62d2a004fd | 210 | mli | OCaml | lib/ocaml_ci_gitlab.mli | MisterDA/ocaml-ci-gitlab | b88e47f8ad7241eb7ef5f7824f7bdb88a321d9da | [
"ISC"
] | null | null | null | lib/ocaml_ci_gitlab.mli | MisterDA/ocaml-ci-gitlab | b88e47f8ad7241eb7ef5f7824f7bdb88a321d9da | [
"ISC"
] | null | null | null | lib/ocaml_ci_gitlab.mli | MisterDA/ocaml-ci-gitlab | b88e47f8ad7241eb7ef5f7824f7bdb88a321d9da | [
"ISC"
] | 1 | 2022-03-03T15:50:28.000Z | 2022-03-03T15:50:28.000Z | (** A CI for OCaml projects on GitLab *)
module Config = Config
module Error = Error
val greet : string -> string
(** Returns a greeting message.
{4 Examples}
{[ print_endline @@ greet "Jane" ]} *)
| 17.5 | 42 | 0.642857 |
bcc189912f9edb3b90af2b62de085a7f85b37172 | 32,835 | ml | OCaml | src/proto_alpha/lib_protocol/script_interpreter_defs.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/script_interpreter_defs.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/script_interpreter_defs.ml | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 35.042689 | 83 | 0.628537 |
bc9b39d8234f7a94b47faa7d54ed1d2424846eb3 | 835 | mli | OCaml | coq/ide/nanoPG.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/ide/nanoPG.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/ide/nanoPG.mli | 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/ *********... | 59.642857 | 74 | 0.420359 |
aa4084807f58dc8f5bd3ffabc790ec50f1931226 | 8,920 | ml | OCaml | data/derived/comb/progs/unify/prog3979.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/prog3979.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3979.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.081871 | 148 | 0.630381 |
bcfe5ae1b822e4a8a06247542cd2f58736959b28 | 212 | mli | OCaml | libraries/sqs/lib/removePermission.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/sqs/lib/removePermission.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/sqs/lib/removePermission.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
type input = RemovePermissionRequest.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 30.285714 | 74 | 0.745283 |
bc7e8ae3bb0ef72e09546cd365484475a1e98a07 | 2,878 | ml | OCaml | src/proto_alpha/lib_protocol/constants_services.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/constants_services.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/constants_services.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> *)
... | 47.966667 | 79 | 0.544475 |
447838249740eaef503f1f0edb9383359c5093a8 | 832 | ml | OCaml | src/stdune/option.ml | lpw25/dune-effects | fd31f381b43e02a3bf9bfd3e0d29f0d377f4a10f | [
"Apache-2.0"
] | 3 | 2020-09-06T21:32:35.000Z | 2020-09-08T14:27:27.000Z | src/stdune/option.ml | lpw25/dune-effects | fd31f381b43e02a3bf9bfd3e0d29f0d377f4a10f | [
"Apache-2.0"
] | null | null | null | src/stdune/option.ml | lpw25/dune-effects | fd31f381b43e02a3bf9bfd3e0d29f0d377f4a10f | [
"Apache-2.0"
] | null | null | null | type 'a t = 'a option =
| None
| Some of 'a
module O = struct
let (>>|) t f =
match t with
| None -> None
| Some a -> Some (f a)
let (>>=) t f =
match t with
| None -> None
| Some a -> f a
end
let map t ~f = O.(>>|) t f
let bind t ~f = O.(>>=) t f
let iter t ~f =
match t with
... | 15.698113 | 42 | 0.522837 |
bc4601e07b3351d9698bbc8f40c86ea2293c743e | 489 | ml | OCaml | tests/sum_types.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 146 | 2015-01-02T10:32:42.000Z | 2021-09-16T14:13:40.000Z | tests/sum_types.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 44 | 2015-04-28T19:26:48.000Z | 2021-09-20T22:40:37.000Z | tests/sum_types.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 10 | 2015-05-08T23:28:54.000Z | 2021-03-08T15:29:32.000Z | type t1 =
| C1 of int
| C2 of bool * int
| C3
let n = C2 (false, 3)
let m = match n with
| C2 (b, _) -> b
| _ -> true
type 'a t2 =
| D1
| D2 of 'a * 'a t2
let rec of_list l =
match l with
| [] -> D1
| x :: xs -> D2 (x, of_list xs)
let rec sum l =
match l with
| D1 -> 0
| D2 (x, xs) -> x +... | 13.216216 | 37 | 0.525562 |
aa2969bfc5effc435da993884ba280938209fbd6 | 21,846 | ml | OCaml | lib/node_info/node_info.ml | Isaac-DeFrain/node-debugger | fc81db01c58e6dc8c2a8d3bee31d29dfb864f94b | [
"MIT"
] | 1 | 2021-04-30T23:44:12.000Z | 2021-04-30T23:44:12.000Z | lib/node_info/node_info.ml | Isaac-DeFrain/node-debugger | fc81db01c58e6dc8c2a8d3bee31d29dfb864f94b | [
"MIT"
] | null | null | null | lib/node_info/node_info.ml | Isaac-DeFrain/node-debugger | fc81db01c58e6dc8c2a8d3bee31d29dfb864f94b | [
"MIT"
] | null | null | null | [@@@warning "-27"]
(** {1 Node & System Actions} *)
open Basic
include Type
include View
open Printf
module Enabling_condition = Enabling_condition
(** {2 Enabling condition checks} *)
let not_active node chain =
printf
"node %s is not active on chain %s\n"
Id.(view node)
Chain.(view chain)
let alrea... | 36.654362 | 97 | 0.616909 |
bc425e776e8181b8994b605e4088f80cd07378a6 | 9,993 | mli | OCaml | src/core/CCFormat.mli | glean-dev/ocaml-containers | 3f08d899c98ee44509d6f6404488b1b0f26a7943 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCFormat.mli | glean-dev/ocaml-containers | 3f08d899c98ee44509d6f6404488b1b0f26a7943 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCFormat.mli | glean-dev/ocaml-containers | 3f08d899c98ee44509d6f6404488b1b0f26a7943 | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Helpers for Format}
@since 0.8 *)
type 'a sequence = ('a -> unit) -> unit
(* include Format, and alias all its types.
see https://discuss.ocaml.org/t/extend-existing-module/1389/4
*)
include module type of stru... | 29.652819 | 98 | 0.606625 |
bc5c60922defdceb51a530cfea8fc67492bd5762 | 2,827 | ml | OCaml | src/mvar.ml | janestreet/async_kernel | 0f53fece3a9e5aeb404a067250aa8d6b71744a0d | [
"MIT"
] | 47 | 2015-02-08T20:14:40.000Z | 2021-12-17T02:54:42.000Z | src/mvar.ml | janestreet/async_kernel | 0f53fece3a9e5aeb404a067250aa8d6b71744a0d | [
"MIT"
] | 12 | 2015-03-13T14:32:22.000Z | 2020-10-26T17:28:18.000Z | src/mvar.ml | janestreet/async_kernel | 0f53fece3a9e5aeb404a067250aa8d6b71744a0d | [
"MIT"
] | 16 | 2015-01-18T04:15:19.000Z | 2021-12-17T02:55:43.000Z | open! Core
open! Import
open! Deferred_std
type ('a, 'phantom) t =
{ current_value : 'a Moption.t
; taken : (unit, read_write) Bvar.t
; mutable value_available : unit Ivar.t
}
[@@deriving fields, sexp_of]
let value_available t = Ivar.read t.value_available
let is_empty t = Moption.is_none t.current_value
let... | 23.957627 | 77 | 0.644146 |
aa11230ff060db2a5f46a07d0575af324b5e1e28 | 3,196 | ml | OCaml | platform_js/xf_composite.ml | bobpoekert/xfoundation | be41ba1bc2f9f95373f7541f3944ac455ac83cc1 | [
"MIT"
] | 1 | 2019-09-13T18:42:40.000Z | 2019-09-13T18:42:40.000Z | platform_js/xf_composite.ml | bobpoekert/xfoundation | be41ba1bc2f9f95373f7541f3944ac455ac83cc1 | [
"MIT"
] | null | null | null | platform_js/xf_composite.ml | bobpoekert/xfoundation | be41ba1bc2f9f95373f7541f3944ac455ac83cc1 | [
"MIT"
] | null | null | null | open Js_of_ocaml
let shader_make gl vertex_source fragment_source =
Js.Unsafe.global##makeShader gl vertex_source fragment_source
let gl_context_make () =
Js.Unsafe.global##createGLContext
let ortho_matrix_gen = Js.Unsafe.global##.orthographicMat
type gl_context
type gl_matrix
type gl_texture
type gl_shader
t... | 22.828571 | 90 | 0.676158 |
bc0e20205ad04791e4f23afa6ad34a14f890e39f | 1,820 | mli | OCaml | presentations/coq-workshop-2014-coq/kernel/mod_typing.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/kernel/mod_typing.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/kernel/mod_typing.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * Th... | 36.4 | 77 | 0.613187 |
bcb240df719094d087263ffcb9576c2baa0da05f | 47 | mli | OCaml | compiler/lib/Cfg/ScheduleData.mli | nilern/mulled | 45df2af868542be92202ea0aca2c8dc489418d2b | [
"BSD-3-Clause"
] | 6 | 2018-11-27T02:03:49.000Z | 2020-06-16T11:21:18.000Z | compiler/lib/Cfg/ScheduleData.mli | nilern/mulled | 45df2af868542be92202ea0aca2c8dc489418d2b | [
"BSD-3-Clause"
] | 65 | 2019-10-17T14:56:37.000Z | 2020-08-31T18:54:20.000Z | compiler/lib/Cfg/ScheduleData.mli | broom-lang/broom | c91b155e4385f498112afac5bc26f0e33e87459e | [
"BSD-3-Clause"
] | 1 | 2019-10-17T16:23:27.000Z | 2019-10-17T16:23:27.000Z | val schedule : Cps.Program.t -> Cfg.Program.t
| 15.666667 | 45 | 0.702128 |
bcc77cf40f46c480c7c6af3a9e043892102157db | 2,837 | ml | OCaml | sledge/nonstdlib/iter.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 1 | 2021-02-17T06:08:10.000Z | 2021-02-17T06:08:10.000Z | sledge/nonstdlib/iter.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 6 | 2021-06-28T20:43:36.000Z | 2022-02-27T11:27:43.000Z | sledge/nonstdlib/iter.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 1 | 2021-01-29T07:48:02.000Z | 2021-01-29T07:48:02.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
include IterLabels
module Import = struct
type 'a iter = 'a t
end
let mem elt seq ~eq = mem ~eq ~x:elt seq
let map seq ~f = map... | 26.268519 | 75 | 0.607684 |
aa415d69c9483542495087c3d180d001d2afa9eb | 2,160 | ml | OCaml | 2nd/compiler/graph.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/graph.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/graph.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | 3 | 2020-10-08T04:16:58.000Z | 2021-10-11T13:19:30.000Z |
type noderep = {succ: int list; pred: int list}
type graph = noderep DynArray.t
type node = graph * int
let empty_node = {succ=[]; pred=[]}
let eq ((_, a): node) ((_, b): node) = a = b
let augment (g: graph) (n: int) = (g, n)
let nodes g =
let len = DynArray.length g in
let rec f i =
if i = len t... | 22.736842 | 72 | 0.574537 |
bca9dbeb58b030ea5b39f43ce08fa8266b84c672 | 3,734 | mli | OCaml | duniverse/owl/src/owl/sparse/owl_sparse_ndarray_c.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | 1 | 2019-11-17T23:16:15.000Z | 2019-11-17T23:16:15.000Z | duniverse/owl/src/owl/sparse/owl_sparse_ndarray_c.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/owl/src/owl/sparse/owl_sparse_ndarray_c.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2019 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
type elt = Complex.t
type arr = (Complex.t, Bigarray.complex32_elt) Owl_sparse_ndarray_generic.t
(** {6 Create sparse ndarray} *)
val zeros : int array -> arr
val binary : ?density:float -> in... | 21.709302 | 95 | 0.605517 |
bcdce58d180d09720217e303ee03895d3f0e424a | 235 | ml | OCaml | codegen/testdata/argv.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 770 | 2017-01-25T13:29:15.000Z | 2022-03-28T01:11:57.000Z | codegen/testdata/argv.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 22 | 2017-02-21T03:01:15.000Z | 2020-02-27T15:56:40.000Z | codegen/testdata/argv.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 37 | 2017-02-26T07:22:24.000Z | 2022-03-27T18:26:14.000Z | print_str "argc: "; println_int (Array.length argv);
let prog = argv.(0) in
let size = str_length prog in
(* prog is a full path to executable. Check only file extension. *)
print_str "prog: "; print_str (str_sub prog (size - 4) size)
| 39.166667 | 67 | 0.710638 |
8a81cee9461310e80d892e99042766598fdecb3c | 1,417 | ml | OCaml | lib/pCSPSolver/solver.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 5 | 2021-05-01T05:32:32.000Z | 2021-12-18T08:57:13.000Z | lib/pCSPSolver/solver.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | null | null | null | lib/pCSPSolver/solver.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 1 | 2021-08-04T22:48:55.000Z | 2021-08-04T22:48:55.000Z | open Core
module type SolverType = sig
val solve: ?bpvs:(Ast.Ident.tvar Set.Poly.t) -> ?print_sol:bool ->
PCSP.Problem.t -> (PCSP.Problem.solution * int(*#iterations*)) Or_error.t
end
module Make (Cfg: Config.ConfigType) : SolverType = struct
let config = Cfg.config
let solve =
let open Or_error in
... | 35.425 | 94 | 0.623853 |
aa34c88e291ab75fe9d193edd7d541701366f91f | 1,432 | ml | OCaml | data/derived/comb/progs/unify/prog2255.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/prog2255.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2255.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
if n < 1
then []
else
(let rec helper acc f x =
match x with | 0 -> acc | _ -> helper (f :: acc) f (x - 1) in
helper [] x n);;
let padZero l1 l2 =
let x = (List.length l1) - (List.length l2) in
if x != 0
then
(if x < 0
then (((clone 0 (abs x)) @ l1), l2)
e... | 28.64 | 71 | 0.397346 |
aa1b46c0814c169f46e9af17f3c1317116e9c825 | 6,149 | ml | OCaml | server/test/savedStateTest.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | server/test/savedStateTest.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | server/test/savedStateTest.ml | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open OUnit2
open Pyre
open Test
let test_restore_symbolic_links context =
let project_root = bracket_tmpdir context |> Path.crea... | 39.670968 | 100 | 0.661246 |
bcb5d7f54ba6d5809519b1f11573fd7048b81bdb | 1,647 | ml | OCaml | libraries/ec2/lib/createVpcEndpoint.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createVpcEndpoint.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/createVpcEndpoint.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = CreateVpcEndpointRequest.t
type output = CreateVpcEndpointResult.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)))
(List.a... | 27.45 | 91 | 0.618701 |
aa262f9fd32ba75135e6b43ad093097ce96a7ae4 | 594 | ml | OCaml | data/derived/comb/progs/unify/prog5377.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/prog0474.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0474.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec intToReverseList n =
if n <= 0 then [] else (n mod 10) :: (intToReverseList (n / 10));;
let rec listReverseHelper l =
let rec go i =
function
| [] -> i
| headElement::tailList -> go (headElement :: i) tailList in
go [] l;;
let rec digitsOfInt n = listReverseHelper (intToReverseList n);;
le... | 25.826087 | 79 | 0.616162 |
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.