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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
446e3214501577a7785550a1f1e95f3b5f7346cc | 5,062 | ml | OCaml | lib/Exposed.ml | bcc32/ocamlformat | 82f23ca353a3780cc67c9d4878c9b4b8ce458c50 | [
"MIT"
] | null | null | null | lib/Exposed.ml | bcc32/ocamlformat | 82f23ca353a3780cc67c9d4878c9b4b8ce458c50 | [
"MIT"
] | null | null | null | lib/Exposed.ml | bcc32/ocamlformat | 82f23ca353a3780cc67c9d4878c9b4b8ce458c50 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 38.641221 | 77 | 0.551561 |
44c0fb075c2fc4a96e5d87b79b7c37b4946804ff | 22,102 | ml | OCaml | src/lib/consensus/intf.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/consensus/intf.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/consensus/intf.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Mina_numbers
open Async
open Currency
open Signature_lib
open Mina_base
module type Constants = sig
[%%versioned:
module Stable : sig
module V1 : sig
type t
end
end]
val create : protocol_constants:Genesis_constants.Protocol.t -> t
val gc_parameters :
t
-> [ `... | 29.469333 | 153 | 0.645733 |
44c9eefdcf663b6cbcb9850b23fbc1f0daa4523c | 3,722 | ml | OCaml | hphp/hack/src/ast/ast_defs.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/src/ast/ast_defs.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/ast/ast_defs.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
include Ast_defs_visitors_ancestors
(*****************************************************************************... | 24.979866 | 79 | 0.536808 |
4402adb6dfe5b89f1dea67f948fdca7b731ea4e1 | 350 | mli | OCaml | ppx_sat/runtime/ppx_sat_runtime.mli | GillianPlatform/Gillian | 7634be726b20fa65037d4fae9b37e351b7c86e79 | [
"Apache-2.0"
] | 41 | 2020-05-21T18:16:26.000Z | 2022-03-20T10:23:46.000Z | ppx_sat/runtime/ppx_sat_runtime.mli | GillianPlatform/Gillian | 7634be726b20fa65037d4fae9b37e351b7c86e79 | [
"Apache-2.0"
] | 26 | 2020-02-29T10:26:27.000Z | 2021-10-20T14:04:20.000Z | ppx_sat/runtime/ppx_sat_runtime.mli | GillianPlatform/Gillian | 7634be726b20fa65037d4fae9b37e351b7c86e79 | [
"Apache-2.0"
] | 5 | 2020-03-20T17:45:28.000Z | 2022-02-24T18:18:26.000Z | open Monadic.Delayed
open Gil_syntax
val if_then_else :
Formula.t -> then_branch:(unit -> 'a t) -> else_branch:(unit -> 'a t) -> 'a t
val if_sure_then_else :
Formula.t -> then_branch:(unit -> 'a t) -> else_branch:(unit -> 'a t) -> 'a t
val branch_entailment : (Formula.t * (unit -> 'a t)) list -> 'a t
val true_f... | 26.923077 | 79 | 0.651429 |
44cec62a4c9f6832048d2bda726de6182158a74e | 25,388 | ml | OCaml | data/fa15/repaired/naive/0005.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/repaired/naive/0005.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15/repaired/naive/0005.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z | let rec clone =
fun x ->
fun n ->
if n <= 0
then []
else x :: (clone x (n - 1))
let padZero =
fun l1 ->
fun l2 ->
(let numZeros =
List.length l1 - List.length l2 in
let absNumZeros =
abs numZeros in
if numZeros = 0
then (l1 , l2)
else (l... | 25.98567 | 84 | 0.423192 |
44da5508b1003e71af94b2d907df561bc4e479eb | 52 | ml | OCaml | tests/types/letgen/letrec-02.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/types/letgen/letrec-02.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/types/letgen/letrec-02.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | let rec (f, g) = (foo, bar)
and foo = f
and bar = g
| 13 | 27 | 0.538462 |
44ecd9bd3d0e3e7bde99fb17d7aeee741858188d | 1,227 | ml | OCaml | src/day17.ml | AxlLind/AdventOfCode2016 | a196d1626757c452b9ba4103f4fb96a406615be5 | [
"MIT"
] | null | null | null | src/day17.ml | AxlLind/AdventOfCode2016 | a196d1626757c452b9ba4103f4fb96a406615be5 | [
"MIT"
] | null | null | null | src/day17.ml | AxlLind/AdventOfCode2016 | a196d1626757c452b9ba4103f4fb96a406615be5 | [
"MIT"
] | 1 | 2022-01-06T18:15:28.000Z | 2022-01-06T18:15:28.000Z | let input = "bwnlcvfs"
let valid_neighbours ((x,y),s) =
let h = s |> Digest.string |> Digest.to_hex in
[ x, y-1, "U", h.[0];
x, y+1, "D", h.[1];
x-1, y, "L", h.[2];
x+1, y, "R", h.[3] ]
|> List.filter (fun (x,y,_,_) -> -1 < x && x < 4 && -1 < y && y < 4)
|> List.filter (fun (_,_,_,c) -> String.cont... | 30.675 | 79 | 0.589242 |
442401a9dcca56a5d83f8133e82c8997d02ada5d | 3,376 | mli | OCaml | lib/linear_algebra_tools.mli | biocaml/phylogenetics | ebf87b3aef63babe9b41b9d44c303f61f7921205 | [
"CECILL-B"
] | 11 | 2017-12-05T16:13:46.000Z | 2021-11-16T17:02:32.000Z | lib/linear_algebra_tools.mli | biocaml/phylogenetics | ebf87b3aef63babe9b41b9d44c303f61f7921205 | [
"CECILL-B"
] | 8 | 2020-01-05T18:49:57.000Z | 2022-03-16T19:47:45.000Z | lib/linear_algebra_tools.mli | biocaml/phylogenetics | ebf87b3aef63babe9b41b9d44c303f61f7921205 | [
"CECILL-B"
] | 2 | 2021-03-29T13:21:25.000Z | 2022-03-29T19:08:37.000Z | (** This modules wraps linear algebra functions (from Lacaml)
and provide a few completely new functions (such as exponentiation)*)
module Lacaml : sig
(** A square matrix of floats. *)
type mat = Lacaml.D.mat
(** A vector of floats. *)
type vec = Lacaml.D.vec
module Vec : sig
type t = vec
(**... | 29.356522 | 95 | 0.612855 |
8ad168fe4c371b90dab56618ff5db01bb7656791 | 115 | ml | OCaml | benchmarks/sigma/sigma1/submissions/sub255.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/sigma/sigma1/submissions/sub255.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/sigma/sigma1/submissions/sub255.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z |
let rec sigma ((a : int), (b : int), (f : int -> int)) : int =
if a>b then 0 else (f a) + sigma ((a + 1), b, f) | 38.333333 | 63 | 0.46087 |
8ad4b206dcc391d6b9526df37d3e3abc8c96a22c | 2,867 | ml | OCaml | data/sp14/0402.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/1211.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/1211.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine a -> sin (pi * (eval (a, x, y)))
| Cosine a -> cos (pi... | 17.375758 | 65 | 0.481688 |
445fcdc7c965c52747393085dd541c3f77716a9f | 21,805 | ml | OCaml | src/lib/ppx_coda/versioned_module.ml | LukasGerm/coda | 443d87f510f618263a927e1052e1d6a53b0f6264 | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/lib/ppx_coda/versioned_module.ml | LukasGerm/coda | 443d87f510f618263a927e1052e1d6a53b0f6264 | [
"Apache-2.0"
] | null | null | null | src/lib/ppx_coda/versioned_module.ml | LukasGerm/coda | 443d87f510f618263a927e1052e1d6a53b0f6264 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Ppxlib
open Versioned_util
(* option to `deriving version' *)
type version_option = No_version_option | Asserted
let parse_opt = Ast_pattern.parse ~on_error:(fun () -> None)
(* TODO: Check if we need to optcomp this for 4.08 support. *)
(*
let create_attr ~loc attr_name attr_payload =
{Parset... | 35.112721 | 106 | 0.577391 |
44abbb22943ca1f78243352f132069a482aac6f0 | 11,056 | ml | OCaml | core/src/ofday_float.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | core/src/ofday_float.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | core/src/ofday_float.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | open! Import
open Std_internal
open Digit_string_helpers
open! Int.Replace_polymorphic_compare
module Span = Span_float
(* Create an abstract type for Ofday to prevent us from confusing it with
other floats.
*)
module Stable = struct
module V1 = struct
module T : sig
type underlying = float
type t... | 35.098413 | 90 | 0.649964 |
8ae7066d8d1797697a83109e2492fc6ac0ed71bc | 518 | ml | OCaml | data/fa15/1049.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/1049.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/1049.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 = match n with | 0 -> [] | _ -> [x; clone x (n - 1)];;
(* fix
let rec clone x n = match n with | 0 -> [] | _ -> x :: (clone x (n - 1));;
*)
(* changed spans
(2,50)-(2,70)
*)
(* type error slice
(2,3)-(2,72)
(2,14)-(2,70)
(2,16)-(2,70)
(2,20)-(2,70)
(2,50)-(2,70)
(2,54)-(2,59)
(2,54)-(2,69)
*)
... | 12.95 | 74 | 0.444015 |
8af951df28a104238257a6f4a14074abd2e3928e | 1,953 | ml | OCaml | srk/test/test_ring.ml | anvayg/duet | b7cadaf486dc81a911189f582a53d4eee8ef69b9 | [
"MIT"
] | 1 | 2021-12-14T06:46:12.000Z | 2021-12-14T06:46:12.000Z | srk/test/test_ring.ml | anvayg/duet | b7cadaf486dc81a911189f582a53d4eee8ef69b9 | [
"MIT"
] | null | null | null | srk/test/test_ring.ml | anvayg/duet | b7cadaf486dc81a911189f582a53d4eee8ef69b9 | [
"MIT"
] | null | null | null | open OUnit
open Ring
module UPZ = MakeUltPeriodicSeq(struct
type t = int
let add = ( + )
let mul = ( * )
let zero = 0
let one = 1
let equal = ( = )
let negate x = -x
end)
let test_ups_eq () =
let seq1 =
UPZ.make [] [1; 2; 3]
in
let seq2 =
UPZ.make [1] [2; 3; 1]
in
let s... | 27.125 | 87 | 0.610343 |
447dca7759a9beeac77cc104f44c10783e8ac129 | 22,315 | ml | OCaml | src/mConstr.ml | gares/Mtac2 | 1a5b29321b5574ffe50b4d8aaefbcaad7804d051 | [
"MIT"
] | null | null | null | src/mConstr.ml | gares/Mtac2 | 1a5b29321b5574ffe50b4d8aaefbcaad7804d051 | [
"MIT"
] | null | null | null | src/mConstr.ml | gares/Mtac2 | 1a5b29321b5574ffe50b4d8aaefbcaad7804d051 | [
"MIT"
] | null | null | null | open MtacNames
open EConstr
type arg = CClosure.fconstr
type arg_any = arg
type arg_type = arg
type arg_fun = arg
type arg_string = arg
type arg_N = arg
type arg_bool = arg
type arg_mlist = arg
type arg_case = arg
type arg_fix1_ty = arg_type
type arg_fix1_val = arg_any
type arg_fix2_ty = arg_type * arg_type
type ar... | 33.708459 | 115 | 0.698857 |
44cb7f4becfee0f3d2c6735485b1bf2712269227 | 5,770 | ml | OCaml | src/network/net.ml | dakk/bitfu | 72735bf380812aea32ba0d3d4aa671f741cdaecb | [
"MIT"
] | 10 | 2017-02-04T16:49:24.000Z | 2017-12-20T12:33:03.000Z | src/network/net.ml | dakk/caravand-fullnode | 72735bf380812aea32ba0d3d4aa671f741cdaecb | [
"MIT"
] | 78 | 2016-05-19T07:53:18.000Z | 2018-04-01T19:14:30.000Z | src/network/net.ml | dakk/bitfu | 72735bf380812aea32ba0d3d4aa671f741cdaecb | [
"MIT"
] | null | null | null | open Bitcoinml;;
open Utils;;
open Conv;;
open Dns;;
open Peer;;
open Message;;
open Blockchain;;
open Params;;
type t = {
addrs: Unix.inet_addr list;
peers: (string, Peer.t) Hashtbl.t;
params: Params.t;
config: Config.t;
mutable run: bool;
};;
let init p conf =
let rec init_peers par pt addrs n =
match... | 32.784091 | 174 | 0.623224 |
443f5037f55aa7cc9d989f4951721d7f3430c1f0 | 650 | mli | OCaml | presentations/coq-workshop-2014-coq/kernel/subtyping.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/kernel/subtyping.mli | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/kernel/subtyping.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... | 40.625 | 79 | 0.396923 |
8adc83e8ccc1f02cbbbbdb5951d89ee4a0fa1360 | 926 | ml | OCaml | eval/ocaml/ocamlbuild/discard_printf.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/ocamlbuild/discard_printf.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/ocamlbuild/discard_printf.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* ocamlbuild *)
(* *)
(* Nicolas Pouillard, B... | 54.470588 | 73 | 0.323974 |
44ab1f9d13e63279b0381e9a636f6f6b16a57ec8 | 4,593 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/asmcomp/s390x/selection.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 1 | 2020-09-24T05:03:32.000Z | 2020-09-24T05:03:32.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/asmcomp/s390x/selection.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/asmcomp/s390x/selection.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 37.958678 | 80 | 0.52297 |
44a9de6628ab4a2b5e687c80f49fe224dd51363c | 31,981 | ml | OCaml | analysis/test/integration/signatureSelectionTest.ml | ishaanthakur/pyre-check | b0f12f8a3e6a817a81d87feae301c96d57d167b9 | [
"MIT"
] | null | null | null | analysis/test/integration/signatureSelectionTest.ml | ishaanthakur/pyre-check | b0f12f8a3e6a817a81d87feae301c96d57d167b9 | [
"MIT"
] | null | null | null | analysis/test/integration/signatureSelectionTest.ml | ishaanthakur/pyre-check | b0f12f8a3e6a817a81d87feae301c96d57d167b9 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open OUnit2
open IntegrationTest
let test_check_callables _ =
(* Callable parameter checks. *)
assert_type_errors
{|
def foo(c... | 29.179745 | 102 | 0.562865 |
44719299954012988e13b50017080f3909e52ed7 | 376 | ml | OCaml | benchmarks/C/nat/sol148.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/nat/sol148.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/nat/sol148.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type nat =
| ZERO
| SUCC of nat
let rec natadd : nat -> nat -> nat
= fun n1 n2 -> let succ_n2 = SUCC (n2) in
match n1 with
ZERO -> n2
| SUCC (a) -> natadd a succ_n2;;
let rec natmul : nat -> nat -> nat
= fun n1 n2 -> let nat_match = (n1, n2) in
match nat_match with
(_, ZERO)
| (ZERO, _) -... | 22.117647 | 48 | 0.539894 |
44522476e1f9d85464e618d1b127f2e872a2f887 | 152 | ml | OCaml | data/derived/comb/progs/unify/prog0764.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/prog0764.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0764.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let append x l = match l with | [] -> [x] | _ -> x :: l;;
let rec digitsOfInt n =
if n <= 0 then [] else append (digitsOfInt (n / 10)) [n mod 10];;
| 25.333333 | 67 | 0.532895 |
44eb310bc54348200d90468f31a333942f1d3308 | 123 | mli | OCaml | example/entry_table/entry_id.mli | janestreet/incr_dom | 7d6b44fb5c1495c1ba8c7dcdf7497a9de3f887e4 | [
"MIT"
] | 327 | 2016-07-07T09:13:42.000Z | 2022-03-14T00:10:40.000Z | example/entry_table/entry_id.mli | janestreet/incr_dom | 7d6b44fb5c1495c1ba8c7dcdf7497a9de3f887e4 | [
"MIT"
] | 15 | 2016-08-23T02:13:23.000Z | 2021-07-13T19:07:51.000Z | example/entry_table/entry_id.mli | janestreet/incr_dom | 7d6b44fb5c1495c1ba8c7dcdf7497a9de3f887e4 | [
"MIT"
] | 33 | 2017-07-10T08:13:39.000Z | 2022-03-08T22:19:46.000Z | open! Core
open! Import
type t
val create : int -> t
include Identifiable with type t := t
val id_string : t -> string
| 11.181818 | 37 | 0.682927 |
44b4e2aee5ddd79ee318861034b5a3af6f503d99 | 565 | mli | OCaml | analysis/check.mli | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | analysis/check.mli | rvantonder/pyre-check-1 | 600ec9656ece5fff21598f4248c55089714bf590 | [
"MIT"
] | null | null | null | analysis/check.mli | 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 Ast
module Error = AnalysisError
module type Signature = sig
val name : string
val run
: configuration:Configuration.Analysis... | 25.681818 | 78 | 0.734513 |
8ab3d68c036750f423911a5c7dfa19667e5b25b1 | 60,927 | ml | OCaml | src/parser/flow_lexer.ml | mourner/flow | 8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb | [
"MIT"
] | 1 | 2019-05-17T11:06:58.000Z | 2019-05-17T11:06:58.000Z | src/parser/flow_lexer.ml | TrionFlow/flow | c7450137a1b0897c558fff6ed3f06fc46ddf76d3 | [
"MIT"
] | null | null | null | src/parser/flow_lexer.ml | TrionFlow/flow | c7450137a1b0897c558fff6ed3f06fc46ddf76d3 | [
"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.
*)
[@@@warning "-39"] (* sedlex inserts some unnecessary `rec`s *)
open Token
open Lex_env
let lexeme = Sedlexing.Utf8.lexeme
let s... | 33.148531 | 98 | 0.617296 |
8ad0563061383bfb541a406eb3a8a6dd150334e8 | 99,072 | ml | OCaml | src/parser_utils/output/__tests__/js_layout_generator_test.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | 1 | 2021-09-08T08:06:58.000Z | 2021-09-08T08:06:58.000Z | src/parser_utils/output/__tests__/js_layout_generator_test.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | src/parser_utils/output/__tests__/js_layout_generator_test.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open OUnit2
open Ast_builder
open Layout_test_utils
open Layout_generator_test_utils
module I = Ast_builder.Identifiers
module S = ... | 44.788427 | 111 | 0.465793 |
448813eeb073d076e9887e08ce691f9fb8c69528 | 483 | ml | OCaml | test/unit/test_ounit_integration.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/test_ounit_integration.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/test_ounit_integration.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | 1 | 2020-11-17T11:14:18.000Z | 2020-11-17T11:14:18.000Z | (* This file is part of Bisect_ppx, released under the MIT license. See
LICENSE.md for details, or visit
https://github.com/aantron/bisect_ppx/blob/master/LICENSE.md. *)
open Test_helpers
let tests =
test "ounit-integration" begin fun () ->
compile ((with_bisect ()) ^ " -package ounit2")
"fixtures... | 28.411765 | 71 | 0.672878 |
8a6f5fb75ca9cbeaf3b5e996b5dc977da38ea9c9 | 349 | ml | OCaml | tests/task-4/magsqr_test.ml | E-Sh4rk/FuncProg | c35546ce64378054531b5e0ec5e19c6e08c8d70c | [
"Apache-2.0"
] | 1 | 2019-06-03T13:57:43.000Z | 2019-06-03T13:57:43.000Z | tests/task-4/magsqr_test.ml | youqad/Compiling-to-Categories_Automatic_Differentiation_Project | ee017bc90a412182017246728c78c4b8e3e7ca6d | [
"Apache-2.0"
] | null | null | null | tests/task-4/magsqr_test.ml | youqad/Compiling-to-Categories_Automatic_Differentiation_Project | ee017bc90a412182017246728c78c4b8e3e7ca6d | [
"Apache-2.0"
] | null | null | null | open DiffCat
include Magsqr.Make (DiffCat)
let x = 37.
let y = 73.
let tests =
assert (epsilon_dapply magsqr (x, y) (epsilon, 0.) = 2. *. epsilon *. x);
assert (epsilon_dapply magsqr (x, y) (0., epsilon) = 2. *. epsilon *. y);
assert (epsilon_dapply magsqr (x, y) (epsilon, epsilon) =
2. *. epsilon ... | 26.846154 | 75 | 0.587393 |
af6e4464adafd5e6bcd65fc4378f09132bc19274 | 4,375 | ml | OCaml | src/indoor_template.ml | jonathanyc/indoor-wiki | 03e0a81c764c5fa7ad085d70855c3fa4981496f7 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 3 | 2016-01-19T07:39:12.000Z | 2016-03-22T23:49:38.000Z | src/indoor_template.ml | jyc/indoor-wiki | 03e0a81c764c5fa7ad085d70855c3fa4981496f7 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 5 | 2016-02-04T03:25:06.000Z | 2016-02-06T19:55:50.000Z | src/indoor_template.ml | jonathanyc/indoor-wiki | 03e0a81c764c5fa7ad085d70855c3fa4981496f7 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | open Indoor_util
let headers = [
`Css, "css/normalize.css";
`Css, "css/style.css";
`Css, "css/xcode.css";
`Js, "js/jquery-1.11.3.min.js";
`Js, "js/jquery.hotkeys.js";
`Js, "js/highlight.pack.js";
`Js, "js/instantclick.min.js";
`Js, "js/main.js";
]
(* [base ?head ~title body] renders the base template ... | 39.414414 | 122 | 0.526629 |
8a1af10758cd6d19c10c7e945644bd23f72da9ba | 68,768 | ml | OCaml | hphp/hack/src/parser/full_fidelity_pretty_printer.ml | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_pretty_printer.ml | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_pretty_printer.ml | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | 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.
*
*)
(* The general approa... | 39.888631 | 82 | 0.731837 |
8a8d14193ba76a389ee3a9d2157efdaef7944374 | 1,247 | ml | OCaml | infer/src/base/BuckMode.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 2 | 2020-12-14T18:07:39.000Z | 2021-01-02T15:39:42.000Z | infer/src/base/BuckMode.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 6 | 2021-06-28T20:43:36.000Z | 2022-02-27T11:27:43.000Z | infer/src/base/BuckMode.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"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
(** dependencies to include in the compilation database *)
type clang_compilation_db_deps = NoDepende... | 25.44898 | 86 | 0.731355 |
44d52b9bc1d71c673e9f9364675803d8bd1f7cac | 11,041 | ml | OCaml | src/proof/quant.ml | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 19 | 2018-08-19T14:41:41.000Z | 2021-09-14T14:07:03.000Z | src/proof/quant.ml | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 2 | 2019-04-10T02:05:47.000Z | 2022-03-07T15:41:36.000Z | src/proof/quant.ml | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 2 | 2019-02-12T14:25:50.000Z | 2021-05-14T11:12:52.000Z | (* This file is free software, part of Archsat. See file "LICENSE" for more details. *)
let section = Section.make ~parent:Proof.section "quant"
let tag ?dk ?coq id =
CCOpt.iter (fun s -> Expr.Id.tag id Dedukti.Print.name @@ Pretty.Exact s) dk;
CCOpt.iter (fun s -> Expr.Id.tag id Coq.Print.name @@ Pretty.Exact s)... | 33.559271 | 87 | 0.601485 |
8abfcbe22ac4677823607a810fe78747cae059b7 | 27,585 | ml | OCaml | src/parser/object_parser.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 1 | 2021-04-04T14:30:02.000Z | 2021-04-04T14:30:02.000Z | src/parser/object_parser.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | src/parser/object_parser.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
open Token
open Parser_env
open Flow_ast
module SMap = Map.Make(String)
open Parser_common
(* A module fo... | 37.277027 | 120 | 0.595722 |
44f7d5a8e9a3f691bbc1d3e51a1e657d95d71faf | 1,312 | ml | OCaml | src/KnowledgeBase.ml | amiltner/Burst | e574005f1ad35847dd9c995d048fdc534872769e | [
"MIT"
] | null | null | null | src/KnowledgeBase.ml | amiltner/Burst | e574005f1ad35847dd9c995d048fdc534872769e | [
"MIT"
] | null | null | null | src/KnowledgeBase.ml | amiltner/Burst | e574005f1ad35847dd9c995d048fdc534872769e | [
"MIT"
] | null | null | null | open CoreAndMore
open Lang
module PartialFunction = struct
type t = (Value.t * Value.t) list
[@@deriving eq, hash, ord, show]
let implies
(insout1:t)
(insout2:t)
: bool =
sub_multi_set
~cmp:(pair_compare Value.compare Value.compare)
insout2
insout1
end
module Nonpermitted ... | 17.972603 | 71 | 0.612805 |
44dc208376b4344cf45ae5434570e39dbfa6d744 | 61,317 | ml | OCaml | src/parser_utils/flow_ast_mapper.ml | gregeinfrank/flow | 466ff9b70de57ed2ffef9de8bea9f2f16cf170bb | [
"MIT"
] | null | null | null | src/parser_utils/flow_ast_mapper.ml | gregeinfrank/flow | 466ff9b70de57ed2ffef9de8bea9f2f16cf170bb | [
"MIT"
] | null | null | null | src/parser_utils/flow_ast_mapper.ml | gregeinfrank/flow | 466ff9b70de57ed2ffef9de8bea9f2f16cf170bb | [
"MIT"
] | null | null | null | (**
* 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.
*)
let map_opt: 'node. ('node -> 'node) -> 'node option -> 'node option =
fun map opt ->
match opt with
| Some item ->
let ... | 44.986794 | 124 | 0.680643 |
440e13745f232cb925c35a2d7e0106d248900fff | 4,817 | mll | OCaml | wisl/lib/ParserAndCompiler/WLexer.mll | z5146542/Gillian | b4646d35932a9066cdbe9246536f38ddbe85c350 | [
"BSD-3-Clause"
] | 41 | 2020-05-21T18:16:26.000Z | 2022-03-20T10:23:46.000Z | wisl/lib/ParserAndCompiler/WLexer.mll | z5146542/Gillian | b4646d35932a9066cdbe9246536f38ddbe85c350 | [
"BSD-3-Clause"
] | 26 | 2020-02-29T10:26:27.000Z | 2021-10-20T14:04:20.000Z | wisl/lib/ParserAndCompiler/WLexer.mll | z5146542/Gillian | b4646d35932a9066cdbe9246536f38ddbe85c350 | [
"BSD-3-Clause"
] | 5 | 2020-03-20T17:45:28.000Z | 2022-02-24T18:18:26.000Z | {
open Lexing
open CodeLoc
open WParser
exception SyntaxError of string
let l_start_string = ref CodeLoc.dummy
}
let digit = ['0'-'9']
let letter = ['a'-'z''A'-'Z']
let gvars = "gvar_" digit+ (* generated variables during compilation *)
let identifier = letter(letter|digit|'_')*
let lvar = '#' (letter|digi... | 33.922535 | 127 | 0.515051 |
44e39a736a11d94b2cc34dba0142a14cd28675b5 | 2,227 | mli | OCaml | src/lib_error_monad/TzMonad.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_error_monad/TzMonad.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_error_monad/TzMonad.mli | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 65.5 | 79 | 0.502919 |
bc056d1284e542821f05b209bd95244702f75019 | 1,210 | ml | OCaml | src/dune_engine/utils.ml | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | src/dune_engine/utils.ml | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | src/dune_engine/utils.ml | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | open Import
let system_shell_exn =
let cmd, arg, os =
if Sys.win32 then ("cmd", "/c", "on Windows") else ("sh", "-c", "")
in
let bin = lazy (Bin.which ~path:(Env.path Env.initial) cmd) in
fun ~needed_to ->
match Lazy.force bin with
| Some path -> (path, arg)
| None ->
User_error.raise
... | 28.809524 | 80 | 0.604132 |
44f5116207c0339786b49639c112dd9c91bc67e5 | 4,293 | ml | OCaml | offline_tool/lib/filter.ml | janestreet/core_profiler | f9351c5aaed314b576a79ff4cc4e76eba8a5b363 | [
"MIT"
] | 15 | 2015-02-24T16:52:11.000Z | 2021-12-17T02:50:40.000Z | offline_tool/lib/filter.ml | janestreet/core_profiler | f9351c5aaed314b576a79ff4cc4e76eba8a5b363 | [
"MIT"
] | 2 | 2015-03-15T19:36:43.000Z | 2015-03-16T14:35:23.000Z | offline_tool/lib/filter.ml | janestreet/core_profiler | f9351c5aaed314b576a79ff4cc4e76eba8a5b363 | [
"MIT"
] | 3 | 2016-09-22T20:53:31.000Z | 2021-12-17T02:51:42.000Z | open Core
open Poly
open Core_profiler
open Core_profiler_disabled
module Interval = Interval_lib.Interval
type -'rw t =
{ (* This table maps raw interests (from the event generator) to
(the filter we want to check, the original interest). *)
interests : (Probe_id.t Interest.t list) Interest.Raw.I.Table.t... | 33.023077 | 89 | 0.657116 |
af8abbc78fb61a8fdadd707f562748b916ae4f0b | 571 | ml | OCaml | example_compiler_libs/src/log/log_color.ml | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 2 | 2018-07-21T13:30:51.000Z | 2021-07-20T11:26:54.000Z | example_compiler_libs/src/log/log_color.ml | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 1 | 2017-03-30T04:24:57.000Z | 2017-03-30T04:25:40.000Z | example_compiler_libs/src/log/log_color.ml | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 1 | 2021-07-20T11:24:30.000Z | 2021-07-20T11:24:30.000Z | open Misc.Color
type t = color
let start_with ~start ~fmt =
start ^^ fmt ^^ "\027[0m"
let color_format ~color ~fmt =
let color_with ~color =
match color with
| Black -> start_with ~start:"\027[30m"
| Red -> start_with ~start:"\027[31m"
| Green -> start_with ~start:"\027[32m"
| Yellow ... | 27.190476 | 47 | 0.593695 |
8aa56db925b197ad51702e23c4d682c1ba021525 | 9,380 | ml | OCaml | plugins/bil/bil_ir.ml | ivg/bap | 784ebe292762ece736a0407c7388da1aa08945c7 | [
"MIT"
] | 5 | 2019-03-08T19:09:15.000Z | 2019-08-15T17:28:11.000Z | plugins/bil/bil_ir.ml | ivg/bap | 784ebe292762ece736a0407c7388da1aa08945c7 | [
"MIT"
] | 7 | 2015-01-30T16:39:08.000Z | 2019-02-20T19:46:24.000Z | plugins/bil/bil_ir.ml | ivg/bap | 784ebe292762ece736a0407c7388da1aa08945c7 | [
"MIT"
] | 3 | 2019-02-18T17:47:21.000Z | 2022-02-02T12:16:50.000Z | open Core_kernel
open Bap.Std
open Format
open Bap_knowledge
open Bap_core_theory
open Knowledge.Syntax
open KB.Let
include Self()
type blk = {
name : Theory.Label.t;
keep : bool;
defs : def term list;
jmps : jmp term list;
} [@@deriving bin_io]
type cfg = {
blks : blk list;
entry : Theory.Label.t;
} [... | 25.98338 | 81 | 0.521962 |
449d114a17b5733da50d48e28f01dbd93a725ab6 | 1,168 | ml | OCaml | src/util/xthread.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 4 | 2021-03-26T01:43:06.000Z | 2022-02-22T13:16:26.000Z | src/util/xthread.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 2 | 2020-10-25T07:44:54.000Z | 2021-03-28T08:15:14.000Z | src/util/xthread.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 3 | 2017-02-28T02:57:32.000Z | 2022-02-09T07:01:11.000Z | (*
Copyright 2012-2020 Codinuum Software Lab <https://codinuum.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required... | 29.948718 | 75 | 0.704623 |
8aeff1caf861192771e0be125f33613dab84c709 | 1,059 | ml | OCaml | result/func/nat/sub18/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/func/nat/sub18/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/func/nat/sub18/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type nat = ZERO | SUCC of nat
let __s1 (__s2 : nat) : bool = if __s2 = ZERO then true else false
let natadd (n1 : nat) (n2 : nat) : nat =
let rec func (n1 : nat) (n2 : nat) : nat =
match n1 with ZERO -> n2 | SUCC n1 -> SUCC (func n1 n2)
in
func n1 n2
let natmul (n1 : nat) (n2 : nat) : nat =
let funa (n2... | 26.475 | 78 | 0.575071 |
44d1398f4402ba8c2cdf85bfb15ee6c85d53b8c7 | 1,094 | mli | OCaml | hphp/hack/src/utils/core/local_id.mli | 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/utils/core/local_id.mli | 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/utils/core/local_id.mli | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.000Z | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** Used to represent local variables in the named AST. *)
module S : sig
type t
val compare : t -> t -> int
e... | 21.038462 | 70 | 0.664534 |
8a2dd1fba5df6af316b48d0332cab855a739c836 | 24,563 | ml | OCaml | bin/common.ml | hakuch/dune | b9d4a0d86d69daa99c6de2c808bd81829413043b | [
"MIT"
] | null | null | null | bin/common.ml | hakuch/dune | b9d4a0d86d69daa99c6de2c808bd81829413043b | [
"MIT"
] | null | null | null | bin/common.ml | hakuch/dune | b9d4a0d86d69daa99c6de2c808bd81829413043b | [
"MIT"
] | null | null | null | open Stdune
module Config = Dune_engine.Config
module Colors = Dune_rules.Colors
module Clflags = Dune_engine.Clflags
module Package = Dune_engine.Package
module Profile = Dune_rules.Profile
module Term = Cmdliner.Term
module Manpage = Cmdliner.Manpage
module Let_syntax = struct
let ( let+ ) t f = Term.(const f $ t)... | 31.694194 | 81 | 0.605341 |
44ac2813ec82206a8adf2d7049e924285b3cbbb1 | 13,541 | ml | OCaml | src/services/flowFileGen/flowFileGen.ml | TheLarkInn/flow | d59d8f70cebbbec39627dd1efa32877e45af5c78 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T01:42:05.000Z | 2018-10-10T01:42:05.000Z | src/services/flowFileGen/flowFileGen.ml | TheLarkInn/flow | d59d8f70cebbbec39627dd1efa32877e45af5c78 | [
"BSD-3-Clause"
] | null | null | null | src/services/flowFileGen/flowFileGen.ml | TheLarkInn/flow | d59d8f70cebbbec39627dd1efa32877e45af5c78 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T01:42:06.000Z | 2018-10-10T01:42:06.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
modul... | 33.27027 | 95 | 0.605051 |
44ad763ddae6e8a406875259d3b2346923940635 | 4,434 | ml | OCaml | infer/src/checkers/ThreadSafetyDomain.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | infer/src/checkers/ThreadSafetyDomain.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | infer/src/checkers/ThreadSafetyDomain.ml | doctools/doctools | 7bcc7e421d32cdbd69889b71748d8025dd45bd2c | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2016 - 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... | 32.602941 | 98 | 0.708841 |
442d8d6db446fd6ec8d6cae3723f5a8d099559eb | 9,491 | ml | OCaml | src/shell.ml | smorimoto/smoosh | 05dbff1a6c36b2b9b4887ecc0ec5c03772743098 | [
"MIT"
] | null | null | null | src/shell.ml | smorimoto/smoosh | 05dbff1a6c36b2b9b4887ecc0ec5c03772743098 | [
"MIT"
] | null | null | null | src/shell.ml | smorimoto/smoosh | 05dbff1a6c36b2b9b4887ecc0ec5c03772743098 | [
"MIT"
] | null | null | null | open Smoosh
open Os_system
open Semantics
(**********************************************************************)
(* ARGUMENT PARSING ***************************************************)
(**********************************************************************)
type input_mode = NoFlag | SFlag | CFlag of string... | 35.414179 | 116 | 0.572121 |
8ad1b2b210ab60cd34c17b1d024a3ecc6ce92098 | 491 | ml | OCaml | benchmarks/C/sigma/sol11.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/sigma/sol11.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/sigma/sol11.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | (*
* Student no. : 2009-20769
* Name : Kim, Seongjun
*)
let rec sigma f a b =
if a > b then 0
else (f a) + (sigma f (a+1) b)
(* TEST
open OUnit;;
let test_sigma _ =
assert_equal 0 (sigma (1, 0, (fun n -> n)));
assert_equal 55 (sigma (1, 10, (fun n -> n)));
assert_equal 30 (sigma (1, 4,... | 21.347826 | 67 | 0.549898 |
44797f04f7894e87829d757624a7f81d27a846ca | 19,175 | ml | OCaml | ocamli.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | ocamli.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | ocamli.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | open Runeval
open Ocamliutil
open Tinyocaml
let version = "4.05.0"
let setdebug () =
Runeval.debug := true;
Eval.debug := true;
Ocamlilib.debug := true;
Pptinyocaml.debug := true;
Ocamliprim.debug := true
let reverse_video = "\x1b[7m"
let code_end = "\x1b[0m"
let searchfor = ref (Str.regexp "") (* always ... | 38.737374 | 128 | 0.645476 |
afe76e04b3cacdb748183fa45400f97984b9a6e5 | 9,540 | ml | OCaml | libraries/s3/lib/listObjectsV2.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/s3/lib/listObjectsV2.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/listObjectsV2.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module ListObjectsV2Request =
struct
type t =
{
bucket: String.t
[@ocaml.doc
"<p>Bucket name to list. </p> <p>When using this API with an access point, you must direct requests to the access point ho... | 43.363636 | 623 | 0.566457 |
44afc15b22e686a60d5de6c0f1b2deaa375c923c | 647 | ml | OCaml | data/derived/comb/progs/unify/prog7424.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/prog2614.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2614.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
if n < 1 then [] else (match n with | _ -> x :: (clone x (n - 1)));;
let padZero l1 l2 =
let s1 = List.length l1 in
let s2 = List.length l2 in
if s1 = s2
then (l1, l2)
else
if s1 > s2
then (l1, ((clone 0 (s1 - s2)) @ l2))
else (((clone 0 (s2 - s1)) @ l1), l2);;
let bigMul ... | 25.88 | 74 | 0.511592 |
44dc638cbe14b33bbf3d5dadc98fa330a657737b | 4,554 | mli | OCaml | src/lib_p2p/p2p_maintenance.mli | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_p2p/p2p_maintenance.mli | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | src/lib_p2p/p2p_maintenance.mli | ulrikstrid/tezos | 96d4653ba4fb48eccdd0ca309c98254c39396712 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 50.6 | 80 | 0.60123 |
44175c490003e4188a1000967a0d052a1ab1e9ce | 245 | ml | OCaml | lib/cmds.ml | igarnier/vplot | 146467257f110f71d48415fc3ddaf0f46a71035a | [
"MIT"
] | 10 | 2017-11-27T16:37:17.000Z | 2020-11-06T18:27:59.000Z | lib/cmds.ml | igarnier/vplot | 146467257f110f71d48415fc3ddaf0f46a71035a | [
"MIT"
] | null | null | null | lib/cmds.ml | igarnier/vplot | 146467257f110f71d48415fc3ddaf0f46a71035a | [
"MIT"
] | null | null | null | open Vlayout
(* Instantiate the Vlayout.Commands functor *)
module Name = struct
type t = int
let compare (x : int) (y : int) = if x > y then 1 else if x = y then 0 else -1
let pp = Format.pp_print_int
end
include Commands.Make (Name)
| 18.846154 | 80 | 0.673469 |
8a739f37e0585c843a5fda2498abeb9d1b28f34a | 134 | ml | OCaml | tests/lua/pattern_multiple_consume.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/lua/pattern_multiple_consume.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/lua/pattern_multiple_consume.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | external val ( + ) : int -> int -> int = "function(x, y) return x + y end"
let rec main { x } = x + main { x }
let _ = main { x = 1 }
| 33.5 | 74 | 0.507463 |
8aed1b29f43891531a07c7029f20b54a7f750cb3 | 83,214 | ml | OCaml | src/ocaml/typer_404/typing/env.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_404/typing/env.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | src/ocaml/typer_404/typing/env.ml | keigoi/merlin | bb67b84c3df203ee136a3d9bb3400367c7d6998a | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 32.658556 | 88 | 0.633139 |
44d76c6ad969fc4c085b1d5be1c6191d15e61d85 | 112 | ml | OCaml | src/fd_redirection.ml | Cjen1/rpc_parallel | a96c725d3b350d755fafe3d5ff4ac60953c3224f | [
"MIT"
] | 38 | 2015-01-16T12:36:12.000Z | 2021-12-17T02:45:33.000Z | src/fd_redirection.ml | Cjen1/rpc_parallel | a96c725d3b350d755fafe3d5ff4ac60953c3224f | [
"MIT"
] | 8 | 2015-07-12T17:17:56.000Z | 2021-06-18T19:25:34.000Z | src/fd_redirection.ml | Cjen1/rpc_parallel | a96c725d3b350d755fafe3d5ff4ac60953c3224f | [
"MIT"
] | 10 | 2017-05-10T18:57:34.000Z | 2021-12-17T02:48:10.000Z | open Core
type t =
[ `Dev_null
| `File_append of string
| `File_truncate of string
]
[@@deriving sexp]
| 12.444444 | 28 | 0.651786 |
44c936bf800831c73aa2aa062784296e2cb78afd | 6,047 | ml | OCaml | hphp/hack/src/ifc/ifc_pretty.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/ifc/ifc_pretty.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/src/ifc/ifc_pretty.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Format
open Ifc_types
module Env = Ifc_env
module Logic = Ifc_logic
module Utils = Ifc_utils
let comma_... | 29.788177 | 77 | 0.580288 |
8a7e64f334f9f2a2bbb78b1623ad0f9c3a190652 | 3,496 | ml | OCaml | test/expect/expect_test.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 179 | 2018-03-13T16:22:57.000Z | 2022-03-23T20:30:12.000Z | test/expect/expect_test.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 222 | 2018-03-13T15:44:22.000Z | 2022-03-26T08:56:14.000Z | test/expect/expect_test.ml | LexiFi/ppxlib | b3d7bca1e72cf2767de8d6cee6b0e1cf7a0b08cd | [
"MIT"
] | 52 | 2018-03-15T19:14:22.000Z | 2022-03-22T14:40:58.000Z | open StdLabels
let read_file file =
let ic = open_in_bin file in
let len = in_channel_length ic in
let file_contents = really_input_string ic len in
close_in ic;
file_contents
let run_expect_test file ~f =
let file_contents = read_file file in
let lexbuf = Lexing.from_string file_contents in
lexbuf.le... | 34.613861 | 78 | 0.658467 |
443c023bf87c2bd894dbd6898c438f1e1b192ef7 | 6,487 | ml | OCaml | hphp/hack/src/monitor/serverMonitorUtils.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/monitor/serverMonitorUtils.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/monitor/serverMonitorUtils.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type monitor_config = {
socket_file: string;
(** The socket file on which the monitor is listening for conne... | 35.448087 | 96 | 0.725451 |
44f0a5818bd18a7e9ca96e6f80fb560f877a15f3 | 288 | ml | OCaml | 09-'aBSTtoOrderList.ml | KanataIZUMIKAWA/BasicOfOcaml | 89322944ebd03cb42373d633199ec52fcecc9b2b | [
"MIT"
] | null | null | null | 09-'aBSTtoOrderList.ml | KanataIZUMIKAWA/BasicOfOcaml | 89322944ebd03cb42373d633199ec52fcecc9b2b | [
"MIT"
] | null | null | null | 09-'aBSTtoOrderList.ml | KanataIZUMIKAWA/BasicOfOcaml | 89322944ebd03cb42373d633199ec52fcecc9b2b | [
"MIT"
] | null | null | null | type 'a ibtree =
Node of 'a * 'a ibtree * 'a ibtree
| Leaf
;;
let rec flatten tree =
match tree with
Node(element, t1, t2) -> (flatten t1) @ [element] @ (flatten t2)
| Leaf -> []
;;
flatten (Node(1, Node(2, Leaf, Leaf), Node(3, Leaf, Node(4, Leaf, Leaf)))) | 24 | 76 | 0.545139 |
44bd4c8694339a55d952fa418a68889c8f0d694b | 2,737 | ml | OCaml | hphp/hack/src/typing/typing_env_from_def.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/src/typing/typing_env_from_def.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_env_from_def.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"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 Core_kernel
open Typing_defs
module Env = Typing_env
(******************************************************... | 35.545455 | 87 | 0.641944 |
bc08086974c7f76bd6744d0b673cf1d066bc036e | 432 | ml | OCaml | data/derived/comb/progs/unify/prog3168.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/prog3168.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3168.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
match n > 0 with | true -> x :: (clone x (n - 1)) | false -> [];;
let padZero l1 l2 =
let length1 = List.length l1 in
let length2 = List.length l2 in
match length1 >= length2 with
| true ->
let n = length1 - length2 in
let zeroes = clone 0 n in (l1, (List.append zeroes l2)... | 28.8 | 69 | 0.578704 |
447b910dbdd115b9107a2bc8d3a0bf462d8d6bb9 | 610 | mli | OCaml | src/vfile_kind.mli | fdopen/jbuilder | a7067f5aa867c4c0d21650491e03793caf734f52 | [
"Apache-2.0"
] | 3 | 2020-09-06T21:32:35.000Z | 2020-09-08T14:27:27.000Z | src/vfile_kind.mli | stedolan/dune | 37b1125f0334133c21ae446645163d1f290f86cd | [
"Apache-2.0"
] | null | null | null | src/vfile_kind.mli | stedolan/dune | 37b1125f0334133c21ae446645163d1f290f86cd | [
"Apache-2.0"
] | null | null | null | open Import
module Id : sig
type 'a t
val eq : 'a t -> 'b t -> ('a, 'b) eq option
end
module type S = sig
type t
val id : t Id.t
val load : Path.t -> t
val to_string : Path.t -> t -> string
end
type 'a t = (module S with type t = 'a)
val eq : 'a t -> 'b t -> ('a, 'b) eq option
module Make
(T : s... | 19.0625 | 67 | 0.542623 |
bc063d67665318847a2dc179b8cfb9375eb2282b | 952 | ml | OCaml | libraries/rds/lib/removeTagsFromResource.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/rds/lib/removeTagsFromResource.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/rds/lib/removeTagsFromResource.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = RemoveTagsFromResourceMessage.t
type output = unit
type error = Errors_internal.t
let service = "rds"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service reg... | 23.8 | 80 | 0.641807 |
4426a0b901c7773661417fe2305c81e562c26206 | 10,339 | ml | OCaml | src/lib/transition_router/initial_validator.ml | Kida007/mina | dbe93a1078a29a1b821c1e9f7e4412fcc6c820b8 | [
"Apache-2.0"
] | 1 | 2021-01-13T20:18:30.000Z | 2021-01-13T20:18:30.000Z | src/lib/transition_router/initial_validator.ml | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_router/initial_validator.ml | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
open Pipe_lib.Strict_pipe
open Mina_base
open Mina_state
open Signature_lib
open Mina_transition
open Network_peer
type validation_error =
[ `Invalid_time_received of [`Too_early | `Too_late of int64]
| `Invalid_genesis_protocol_state
| `Invalid_proof
| `Invalid_delta_transit... | 41.356 | 83 | 0.64426 |
44f6c173c3f8c7cdbade6e9ed5957dd40ff9cb5a | 33,877 | ml | OCaml | src/commands/glean/gleanRunner.ml | ekmixon/flow | 5a96aebea6d1173f2fb02dce37ee0d3b337b5aa1 | [
"MIT"
] | null | null | null | src/commands/glean/gleanRunner.ml | ekmixon/flow | 5a96aebea6d1173f2fb02dce37ee0d3b337b5aa1 | [
"MIT"
] | null | null | null | src/commands/glean/gleanRunner.ml | ekmixon/flow | 5a96aebea6d1173f2fb02dce37ee0d3b337b5aa1 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module TypeScheme = Type.TypeScheme
class member_searcher add_member =
object (this)
inherit Typed_ast_utils.type_paramete... | 41.465116 | 100 | 0.676772 |
44574ca385a648494ced2e87f19d907e74a4e819 | 2,373 | ml | OCaml | source/analysis/annotatedBases.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 1 | 2021-05-17T23:13:52.000Z | 2021-05-17T23:13:52.000Z | source/analysis/annotatedBases.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 1 | 2021-08-16T12:11:37.000Z | 2021-08-16T12:11:37.000Z | source/analysis/annotatedBases.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 1 | 2021-05-13T13:30:24.000Z | 2021-05-13T13:30:24.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 Pyre
let find_propagated_type_variables bases ~parse_annotation =
let find_type_variables { Expression.C... | 32.067568 | 99 | 0.704593 |
44407688ccb412232d103e6f6d1fedbfaa70acce | 31 | mli | OCaml | xapi-idl/lib/xcp_const.mli | edwintorok/message-switch | bd5c2e4db86998cba97b02ab2d4e1b91067e8817 | [
"0BSD"
] | 6 | 2015-05-09T18:10:05.000Z | 2022-02-04T19:09:55.000Z | xapi-idl/lib/xcp_const.mli | xcp-ng/message-switch | 969eb1d156c6db0e2009696ada305ec4bc765a9d | [
"0BSD"
] | 35 | 2015-04-08T10:32:16.000Z | 2021-11-05T15:17:13.000Z | xapi-idl/lib/xcp_const.mli | xcp-ng/message-switch | 969eb1d156c6db0e2009696ada305ec4bc765a9d | [
"0BSD"
] | 21 | 2015-06-17T13:55:18.000Z | 2022-02-04T19:13:23.000Z | val good_ciphersuites : string
| 15.5 | 30 | 0.83871 |
8a84c18ac04735790fa081f3de40a9aba7039b4b | 898 | ml | OCaml | data/derived/fa15/progs/cnstr/prog1410.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/prog1410.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog1410.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr
| Golden of expr
| MeanPi of expr* expr* expr;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine expr -> "sin(pi*" ^ ((exprToSt... | 27.212121 | 75 | 0.481069 |
44ac9fa043db7a287df1e7407276c4a610379642 | 19,485 | ml | OCaml | data/derived/comb/progs/unify/prog3910.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/prog3910.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3910.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.80303 | 208 | 0.663074 |
44c79b9c60a8a503dd8295e487295f3f06cd3e58 | 8,304 | mli | OCaml | lib/vscode-languageserver-protocol/_gen/protocol_foldingRange.mli | tmattio/js-bindings | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 18 | 2021-04-14T02:52:09.000Z | 2021-11-14T17:08:09.000Z | lib/vscode-languageserver-protocol/_gen/protocol_foldingRange.mli | tmattio/ocaml-ecmascript | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 4 | 2021-04-14T16:23:13.000Z | 2021-05-22T00:00:55.000Z | lib/vscode-languageserver-protocol/_gen/protocol_foldingRange.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:
- FoldingRange
- PartialResultParams
- ProtocolRequestType<T1, T2, T3, T4, T5>
- RequestHandler<T1, T2, T3>
- StaticRegistrationOptions
- TextDocumentIdentifier
- Tex... | 36.906667 | 174 | 0.634754 |
4494fbc13d77b52023e0a337e16d86203b1ecda9 | 3,530 | ml | OCaml | src/generators/policyiter/generators/switchallsubexp.ml | tcsprojects/pgsolver | 88202c9452ccdcd4092280b4e76c31a16085d14c | [
"BSD-3-Clause"
] | 28 | 2016-04-03T22:53:46.000Z | 2022-03-20T20:53:38.000Z | src/generators/policyiter/generators/switchallsubexp.ml | tcsprojects/pgsolver | 88202c9452ccdcd4092280b4e76c31a16085d14c | [
"BSD-3-Clause"
] | 17 | 2015-03-28T15:29:29.000Z | 2019-09-22T16:48:34.000Z | src/generators/policyiter/generators/switchallsubexp.ml | tcsprojects/pgsolver | 88202c9452ccdcd4092280b4e76c31a16085d14c | [
"BSD-3-Clause"
] | 17 | 2015-01-06T10:32:50.000Z | 2022-03-22T15:58:23.000Z | open Arg ;;
open Tcsargs;;
open Tcsbasedata;;
open Paritygame;;
open Stratimprgenerators;;
type gamenode = DecLaneEven of int (*a*)
| DecLaneOdd of int (*b*)
| DecLaneRoot (*c*)
| CycleNode of int (*d*)
| CycleCenter of int (*e*)
| CycleAccess of int (*f*)
| CycleSelector of int (*g*)
... | 40.113636 | 489 | 0.620397 |
bc04bf15136a505c2e4b29095bb86977ef54b668 | 8,906 | ml | OCaml | runtime/desugarData.ml | ebresafegaga/tina | 555e44a77fee234492013644428cb46fbd625440 | [
"MIT"
] | 3 | 2021-08-13T11:04:47.000Z | 2021-08-15T13:50:40.000Z | runtime/desugarData.ml | ebresafegaga/tina | 555e44a77fee234492013644428cb46fbd625440 | [
"MIT"
] | null | null | null | runtime/desugarData.ml | ebresafegaga/tina | 555e44a77fee234492013644428cb46fbd625440 | [
"MIT"
] | 1 | 2021-08-20T12:39:43.000Z | 2021-08-20T12:39:43.000Z |
(* transform all tuple and variant patterns and expressions
into record patterns and expressions
{ 0 : ...
1 : ...
2 : ...
.
.
.
n : ... }
field 0 is a tag, field 1 to n represent the field
that they hold
*)
open Syntax
open Naming
open Utility
module A ... | 33.734848 | 111 | 0.626095 |
44858c34895cd70f1c420f98b1e3d627fcc4fd28 | 2,657 | mli | OCaml | plugins/github/api.mli | kit-ty-kate/ocurrent | 9dc8f9551af13bb460dbf588f5aa8804fb43dd67 | [
"Apache-2.0"
] | null | null | null | plugins/github/api.mli | kit-ty-kate/ocurrent | 9dc8f9551af13bb460dbf588f5aa8804fb43dd67 | [
"Apache-2.0"
] | null | null | null | plugins/github/api.mli | kit-ty-kate/ocurrent | 9dc8f9551af13bb460dbf588f5aa8804fb43dd67 | [
"Apache-2.0"
] | null | null | null | (* Public API; see Current_github.mli for details of these: *)
module Status : sig
type t
type state = [`Error | `Failure | `Pending | `Success ]
val v : ?description:string -> ?url:Uri.t -> state -> t
end
module Commit : sig
type t
val id : t -> Current_git.Commit_id.t
val repo_id : t -> Repo_id.t
val... | 34.960526 | 115 | 0.660896 |
aff73c8bf1cfb4d46a19228501564169b7b59f8d | 8,128 | ml | OCaml | examples/nvector/manyvector/test_nvector_manyvector.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 24 | 2015-02-14T17:16:38.000Z | 2021-12-23T16:02:13.000Z | examples/nvector/manyvector/test_nvector_manyvector.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 10 | 2016-03-20T22:14:49.000Z | 2022-03-16T09:54:31.000Z | examples/nvector/manyvector/test_nvector_manyvector.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 5 | 2015-04-14T14:21:54.000Z | 2022-03-10T16:14:55.000Z | (* -----------------------------------------------------------------
* Programmer(s): Daniel R. Reynolds @ SMU
* -----------------------------------------------------------------
* OCaml port: Timothy Bourke, Inria, Sep 2021.
* -----------------------------------------------------------------
* SUNDIALS Copyright ... | 35.186147 | 104 | 0.660556 |
4498615d0a55d43c3ab9c2652197a496fdef3722 | 15,157 | ml | OCaml | src/core/typ.ml | ritschwumm/vult | af496736238e8a265fa8076bbd8c7ef999994d0c | [
"MIT"
] | 316 | 2015-05-05T00:06:06.000Z | 2022-01-29T21:25:47.000Z | src/core/typ.ml | shortwavaudio/vult | cb17ef9609019bc476a0527e2f4939fbf682ce7a | [
"MIT"
] | 40 | 2015-10-25T22:24:52.000Z | 2021-12-11T07:45:35.000Z | src/core/typ.ml | shortwavaudio/vult | cb17ef9609019bc476a0527e2f4939fbf682ce7a | [
"MIT"
] | 25 | 2015-06-17T05:44:32.000Z | 2021-12-11T17:12:49.000Z | (*
The MIT License (MIT)
Copyright (c) 2014 Leonardo Laguna Ruiz, Carl Jönsson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the... | 30.253493 | 116 | 0.54582 |
bc0529dca41fbffd1ab0a5e4e2d0879ea4f0fdb4 | 1,558 | ml | OCaml | ocaml/programming_in_ocaml/practice/p3_3_2.ml | idkjs/til | eee606856ed11d57e96060f62adf0dd072f8bff1 | [
"WTFPL"
] | 2 | 2020-05-11T13:43:27.000Z | 2020-07-31T11:57:19.000Z | ocaml/programming_in_ocaml/practice/p3_3_2.ml | idkjs/til | eee606856ed11d57e96060f62adf0dd072f8bff1 | [
"WTFPL"
] | 2 | 2020-09-27T02:35:38.000Z | 2021-03-08T08:33:02.000Z | ocaml/programming_in_ocaml/practice/p3_3_2.ml | idkjs/til | eee606856ed11d57e96060f62adf0dd072f8bff1 | [
"WTFPL"
] | 1 | 2020-05-11T13:44:04.000Z | 2020-05-11T13:44:04.000Z | (* 3.1 *)
let dollar_to_yen us_dollar =
int_of_float (us_dollar *. 114.32)
let yen_to_dollar yen =
let round f = floor (f +. 0.5) in
round (float yen /. 114.32 *. 100.0) /. 100.0
let print_dollar_to_yen dollar =
Printf.printf "%F dollars are %d yes\n" dollar (dollar_to_yen dollar)
let capatalize (c : char) =... | 27.333333 | 71 | 0.609756 |
44b805a5460c49d9197581c571f67959c07ba057 | 11,276 | ml | OCaml | src/analyses/uninit.ml | ozeidan/analyzer | d3e682b7f24e60a6f9c4e44099cdd1d9c0592db6 | [
"BSD-3-Clause",
"MIT"
] | 1 | 2020-11-13T21:01:31.000Z | 2020-11-13T21:01:31.000Z | src/analyses/uninit.ml | ozeidan/analyzer | d3e682b7f24e60a6f9c4e44099cdd1d9c0592db6 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/analyses/uninit.ml | ozeidan/analyzer | d3e682b7f24e60a6f9c4e44099cdd1d9c0592db6 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | (** Local variable initialization analysis. *)
module M = Messages
module BS = Base.Main
module AD = ValueDomain.AD
module IdxDom = ValueDomain.IndexDomain
module Offs = ValueDomain.Offs
open Prelude.Ana
open Analyses
module Spec =
struct
include Analyses.DefaultSpec
module Addr = ValueDomain.Addr
module D =... | 38.616438 | 138 | 0.612274 |
440f25f04a80f1028b57a266ff2a4007a2656acd | 225 | mli | OCaml | vendor/dune/src/packages.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/packages.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/packages.mli | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | (** Collect functions keyed by a package *)
(* TODO : for now these take the super context, but eventually this should be
more fine grained *)
open Stdune
val mlds : Super_context.t -> Package.Name.t -> Path.Build.t list
| 32.142857 | 77 | 0.72 |
44ed0222a4de8c2f57accf21634486f661a3a950 | 24,462 | ml | OCaml | src/typing/types_js.ml | ptmt/flow | 47e762ba3f1249a0bd09de72ab1774cc442bceb5 | [
"BSD-3-Clause"
] | null | null | null | src/typing/types_js.ml | ptmt/flow | 47e762ba3f1249a0bd09de72ab1774cc442bceb5 | [
"BSD-3-Clause"
] | null | null | null | src/typing/types_js.ml | ptmt/flow | 47e762ba3f1249a0bd09de72ab1774cc442bceb5 | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(* This modul... | 35.400868 | 87 | 0.691481 |
bc04d7bba7e7f6860d6c2cc8388b374f4feb0e23 | 34,621 | ml | OCaml | infer/src/pulse/PulseInterproc.ml | kupl/Infer_NPE_checker | c7d69bbe5615b0fa892541c4464346ed90bc50cb | [
"MIT"
] | null | null | null | infer/src/pulse/PulseInterproc.ml | kupl/Infer_NPE_checker | c7d69bbe5615b0fa892541c4464346ed90bc50cb | [
"MIT"
] | null | null | null | infer/src/pulse/PulseInterproc.ml | kupl/Infer_NPE_checker | c7d69bbe5615b0fa892541c4464346ed90bc50cb | [
"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.
*)
[@@@warning "+9"]
open! IStd
module F = Format
module L = Logging
open PulseBasicInterface
open PulseDomainInterface
(* {2 machin... | 45.197128 | 104 | 0.708472 |
44f406ee47303904ce9b11490580863b7f236f83 | 606 | ml | OCaml | examples/mirage/unikernel.ml | zshipko/resp | 4a31461621238d86775b3485adc4a1f0f7202ace | [
"0BSD"
] | 13 | 2018-09-26T09:09:20.000Z | 2022-01-14T11:47:45.000Z | examples/mirage/unikernel.ml | zshipko/resp | 4a31461621238d86775b3485adc4a1f0f7202ace | [
"0BSD"
] | null | null | null | examples/mirage/unikernel.ml | zshipko/resp | 4a31461621238d86775b3485adc4a1f0f7202ace | [
"0BSD"
] | null | null | null | open Lwt.Infix
open Mirage_clock
module Main (Clock : PCLOCK) (Conduit : Conduit_mirage.S) = struct
module R = Resp_mirage.Make (Conduit)
module Server = R.Server.Default
let commands =
[
( "ping",
fun _ client cmd nargs ->
if nargs = 0 then Server.ok client
else Server.rec... | 26.347826 | 70 | 0.633663 |
44e743e664198a27511d5bb647e775d611ecf652 | 381 | ml | OCaml | compat402.ml | ptoscano/obuild | 55ed45108b304ad8aecf3e257dc21c3eafeefcde | [
"BSD-2-Clause"
] | 30 | 2015-02-08T13:32:06.000Z | 2021-12-18T12:02:09.000Z | compat402.ml | ptoscano/obuild | 55ed45108b304ad8aecf3e257dc21c3eafeefcde | [
"BSD-2-Clause"
] | 78 | 2015-03-05T12:45:51.000Z | 2020-09-04T08:16:49.000Z | compat402.ml | ptoscano/obuild | 55ed45108b304ad8aecf3e257dc21c3eafeefcde | [
"BSD-2-Clause"
] | 11 | 2015-09-17T22:17:05.000Z | 2022-03-19T15:22:06.000Z | let bytes_of_string = Bytes.of_string
let bytes_to_string = Bytes.to_string
let bytes_make = Bytes.make
let bytes_create = Bytes.create
let bytes_get = Bytes.get
let bytes_set = Bytes.set
let bytes_length = Bytes.length
let bytes_index_from = Bytes.index_from
let buffer_add_subbytes = Buffer.a... | 27.214286 | 45 | 0.661417 |
afda1d7372ad8a91db1b3aa52739da34bfc9872a | 6,626 | mli | OCaml | high-ollvm/src/ast.mli | mateuszlewko/lang-compiler | b3920be98397e65aadac4258cb3411b7d5021380 | [
"MIT"
] | 6 | 2018-01-10T00:26:34.000Z | 2019-12-22T11:00:58.000Z | high-ollvm/src/ast.mli | mateuszlewko/lang-compiler | b3920be98397e65aadac4258cb3411b7d5021380 | [
"MIT"
] | 1 | 2018-03-03T18:31:44.000Z | 2018-03-03T18:33:07.000Z | FINAL_THESIS/monoml-compiler/high-ollvm/src/ast.mli | mateuszlewko/lang-compiler | b3920be98397e65aadac4258cb3411b7d5021380 | [
"MIT"
] | 2 | 2018-01-27T21:35:32.000Z | 2018-01-27T22:47:15.000Z | type linkage =
| LINKAGE_Private
| LINKAGE_Internal
| LINKAGE_Available_externally
| LINKAGE_Linkonce
| LINKAGE_Weak
| LINKAGE_Common
| LINKAGE_Appending
| LINKAGE_Extern_weak
| LINKAGE_Linkonce_odr
| LINKAGE_Weak_odr
| LINKAGE_External
and dll_storage = DLLSTORAGE_Dllimport | DLLSTORAGE_Dllexpor... | 24.271062 | 77 | 0.685934 |
441f1845985c2c2a2c4791e092ca1b9622f5030a | 125,524 | mly | OCaml | src/ocaml/preprocess/parser_raw.mly | Gopiandcode/merlin | 3e242c17151599088bd86e193b62015fcbb183c8 | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | src/ocaml/preprocess/parser_raw.mly | Gopiandcode/merlin | 3e242c17151599088bd86e193b62015fcbb183c8 | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | src/ocaml/preprocess/parser_raw.mly | Gopiandcode/merlin | 3e242c17151599088bd86e193b62015fcbb183c8 | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | /**************************************************************************/
/* */
/* OCaml */
/* */
/* ... | 31.240418 | 126 | 0.625458 |
449c37d3bb2f4cd1fedbd0d85663e1b215f1e303 | 23,591 | mli | OCaml | src/ctypes/ctypes.mli | sadiqj/ocaml-ctypes | 15c225ea4f3efd1936fb045494a6b1803f42f594 | [
"MIT"
] | 271 | 2015-01-02T14:49:27.000Z | 2022-02-27T18:52:53.000Z | src/ctypes/ctypes.mli | sadiqj/ocaml-ctypes | 15c225ea4f3efd1936fb045494a6b1803f42f594 | [
"MIT"
] | 356 | 2015-01-02T16:31:32.000Z | 2022-03-31T11:16:31.000Z | src/ctypes/ctypes.mli | sadiqj/ocaml-ctypes | 15c225ea4f3efd1936fb045494a6b1803f42f594 | [
"MIT"
] | 76 | 2015-01-12T11:37:18.000Z | 2022-02-13T04:27:51.000Z | (*
* Copyright (c) 2013 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
(** The core ctypes module.
The main points of interest are the set of functions for describing C
types (see {!types}) and the set of functions for accessing C va... | 38.421824 | 83 | 0.632826 |
4472b76c0de7a54cd8c24edeaa8a5ae91dd06c94 | 82 | ml | OCaml | jeddy.ml | invider/jeddy | f8bf0b66164055a3418079beff0907821797bd0c | [
"BSD-3-Clause"
] | null | null | null | jeddy.ml | invider/jeddy | f8bf0b66164055a3418079beff0907821797bd0c | [
"BSD-3-Clause"
] | null | null | null | jeddy.ml | invider/jeddy | f8bf0b66164055a3418079beff0907821797bd0c | [
"BSD-3-Clause"
] | null | null | null | V a status line to show 'Saved to ...' messages
V non-editable directory listing
| 20.5 | 47 | 0.743902 |
44d493a441bce23a411c5df0a8a0cb0b1768f5af | 8,898 | ml | OCaml | hphp/hack/src/utils/daemon.ml | wjywbs/hhvm | 9d44d30ec32618e30a82274923b5842b62a9c0f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/daemon.ml | wjywbs/hhvm | 9d44d30ec32618e30a82274923b5842b62a9c0f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/daemon.ml | wjywbs/hhvm | 9d44d30ec32618e30a82274923b5842b62a9c0f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
type 'a in_ch... | 33.577358 | 81 | 0.679928 |
8ac2f413a83c79725ca1ea9c1f68af8dbb01424e | 8,226 | ml | OCaml | data/derived/comb/progs/unify/prog5228.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/prog0320.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0320.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.621359 | 148 | 0.632385 |
aff7f1999ad6dbfd1f5f0fe508d677ba711b04fd | 330 | ml | OCaml | hphp/hack/src/utils/collections/lowerStringKey.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-10-03T00:45:08.000Z | 2019-10-03T00:45:08.000Z | hphp/hack/src/utils/collections/lowerStringKey.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | hphp/hack/src/utils/collections/lowerStringKey.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"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.
*
*)
type t = string
let compare (x: t) (y: t) =
(String.compare
(String.lowercase_ascii x)
(String.lowercase_... | 20.625 | 66 | 0.669697 |
44e4a27679ba0193176443b12b02436766e4c628 | 1,275 | mli | OCaml | src/lib/secrets/wallets.mli | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/lib/secrets/wallets.mli | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | 1 | 2021-03-06T14:52:32.000Z | 2021-03-06T14:52:32.000Z | src/lib/secrets/wallets.mli | obazl/mina | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | 3 | 2021-03-14T18:19:04.000Z | 2021-03-25T16:37:07.000Z | open Async
open Signature_lib
type t
val load : logger:Logger.t -> disk_location:string -> t Deferred.t
val reload : logger:Logger.t -> t -> unit Deferred.t
val import_keypair :
t
-> Keypair.t
-> password:Secret_file.password
-> Public_key.Compressed.t Deferred.t
val import_keypair_terminal_stdin :
t ... | 25.5 | 75 | 0.719216 |
44d0ba11112069ac908e1a7f274f30bfa4962468 | 9,412 | ml | OCaml | bootstrap/src/basis/rudimentsInt0.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/src/basis/rudimentsInt0.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/src/basis/rudimentsInt0.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | open RudimentsFunctions
type i64 = int64
type u64 = int64
type sint = int64
type uns = int64
type u128 = {w0: u64; w1: u64}
let uns_of_sint t =
t
let sint_of_uns t =
t
let int_of_sint t =
if (t <> Int64.(of_int (to_int t))) then halt "Lossy conversion";
Int64.to_int t
let sint_of_int t =
Int64.of_int t
... | 30.263666 | 98 | 0.559711 |
44f191384ae32b8cc78c4c720a313ff2b8a834f3 | 18,826 | ml | OCaml | data/derived/comb/progs/unify/prog3577.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/prog3577.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3577.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 32.855148 | 208 | 0.666791 |
448d3e1231dd09cf1355532a3dd586e346ef0195 | 9,325 | ml | OCaml | hpack/src/decoder.ml | jeffa5/ocaml-h2 | e92be081d775011cc791c35538a33a5334eaa96a | [
"BSD-3-Clause"
] | 203 | 2019-03-27T21:05:54.000Z | 2022-03-05T08:24:14.000Z | hpack/src/decoder.ml | jeffa5/ocaml-h2 | e92be081d775011cc791c35538a33a5334eaa96a | [
"BSD-3-Clause"
] | 21 | 2019-06-04T20:36:45.000Z | 2022-03-16T18:45:59.000Z | hpack/src/decoder.ml | jeffa5/ocaml-h2 | e92be081d775011cc791c35538a33a5334eaa96a | [
"BSD-3-Clause"
] | 15 | 2019-03-28T14:29:59.000Z | 2022-03-14T22:55:54.000Z | (*----------------------------------------------------------------------------
* Copyright (c) 2019 António Nuno Monteiro
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redi... | 40.367965 | 79 | 0.631314 |
44448bbb0fb5465c3c6d6fdfe0ce039d5c55a662 | 1,781 | ml | OCaml | examples/mnist/conv.ml | acaldwell-pixel/ocaml-torch | a6499811f40282a071179d4306afbbb6023dcc4a | [
"Apache-2.0"
] | 354 | 2018-10-03T07:04:53.000Z | 2022-03-21T10:58:08.000Z | examples/mnist/conv.ml | acaldwell-pixel/ocaml-torch | a6499811f40282a071179d4306afbbb6023dcc4a | [
"Apache-2.0"
] | 56 | 2018-12-14T02:07:22.000Z | 2021-11-20T17:26:34.000Z | examples/mnist/conv.ml | acaldwell-pixel/ocaml-torch | a6499811f40282a071179d4306afbbb6023dcc4a | [
"Apache-2.0"
] | 38 | 2019-01-19T20:41:11.000Z | 2022-03-07T03:10:33.000Z | open Base
open Torch
(* This should reach ~99% accuracy. *)
let batch_size = 256
let epochs = 5000
let learning_rate = 1e-3
let () =
let device = Device.cuda_if_available () in
let mnist = Mnist_helper.read_files () in
let vs = Var_store.create ~name:"cnn" ~device () in
let conv2d1 = Layer.conv2d_ vs ~ksize:5... | 33.603774 | 89 | 0.67434 |
449659832f1e2e34008eb338c7b82617e59aea82 | 732 | ml | OCaml | data/sp14_min/2893.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/2893.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/2893.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine s -> String.concat ["pi* "; exprToString s];;
(* fix
type expr =
| VarX
|... | 14.938776 | 54 | 0.562842 |
8a2189ad583e454ce8abf61e1b8a2c9e23311ace | 489,595 | ml | OCaml | src/ocaml-output/FStar_TypeChecker_Rel.ml | kkohbrok/FStar | 3ea1e45712702830d824fd1efe91e1e99d45804b | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_TypeChecker_Rel.ml | kkohbrok/FStar | 3ea1e45712702830d824fd1efe91e1e99d45804b | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_TypeChecker_Rel.ml | kkohbrok/FStar | 3ea1e45712702830d824fd1efe91e1e99d45804b | [
"Apache-2.0"
] | null | null | null | open Prims
let guard_of_guard_formula:
FStar_TypeChecker_Common.guard_formula -> FStar_TypeChecker_Env.guard_t =
fun g ->
{
FStar_TypeChecker_Env.guard_f = g;
FStar_TypeChecker_Env.deferred = [];
FStar_TypeChecker_Env.univ_ineqs = ([], []);
FStar_TypeChecker_Env.implicits = []
}
let... | 52.503485 | 169 | 0.462627 |
8afb7be5efaecaf98a1643a5893e7a281ef83d97 | 3,822 | ml | OCaml | lib/b_radiolist.ml | idkjs/bogue | 57ac324e8fe0af62ae69b75d828a0e11ee9679c8 | [
"0BSD"
] | 96 | 2019-02-11T13:16:53.000Z | 2022-03-26T00:47:44.000Z | lib/b_radiolist.ml | idkjs/bogue | 57ac324e8fe0af62ae69b75d828a0e11ee9679c8 | [
"0BSD"
] | 9 | 2019-08-28T14:17:43.000Z | 2022-02-21T16:00:19.000Z | lib/b_radiolist.ml | idkjs/bogue | 57ac324e8fe0af62ae69b75d828a0e11ee9679c8 | [
"0BSD"
] | 8 | 2020-11-20T20:05:16.000Z | 2022-03-29T18:03:45.000Z | (* a radiolist set of widgets *)
(* we create an array of widgets consisting of a radio button and a label (or
another widget); the callback (action) is a little bit complicated because we
have to make sure only one button is checked at a time. *)
(* in principle this should be just a particular case of Menu, b... | 32.117647 | 82 | 0.673469 |
44e523b5f570e9685a72df17550cf2219c5db87a | 2,146 | ml | OCaml | libraries/ssm/lib/describePatchGroupState.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ssm/lib/describePatchGroupState.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ssm/lib/describePatchGroupState.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module DescribePatchGroupStateRequest =
struct
type t =
{
patch_group: String.t
[@ocaml.doc
"<p>The name of the patch group whose patch snapshot should be retrieved.</p>"]}
let make ~patch_group ... | 34.063492 | 90 | 0.648183 |
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.