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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ae83bbffda1d17f53ef3419367ffd6c02f97791 | 1,156 | ml | OCaml | src/day_counter.ml | dinosaur-lin/businessdays | 0025d66fedf641fd8b3a2c9ab6c7668577ca5048 | [
"MIT"
] | 2 | 2018-09-30T03:08:51.000Z | 2018-12-12T19:16:55.000Z | src/day_counter.ml | dinosaur-lin/businessdays | 0025d66fedf641fd8b3a2c9ab6c7668577ca5048 | [
"MIT"
] | null | null | null | src/day_counter.ml | dinosaur-lin/businessdays | 0025d66fedf641fd8b3a2c9ab6c7668577ca5048 | [
"MIT"
] | null | null | null | open! Core_kernel
type t =
| Thirty360 of Thirty_360.t
| Business252 of Calendar.t
| Simple
let name dc =
match dc with
| Thirty360(typ) -> "30/360 (" ^ (Thirty_360.name typ) ^ ")"
| Business252(c) -> "Business252(" ^ (Calendar.name c) ^ ")"
| Simple -> "Simple"
let rec day_count dc dt1 dt2 =
ma... | 31.243243 | 82 | 0.620242 |
f3d3c2fc595d3e1dbe7b3e180c7cfe1f00bb0ac1 | 3,485 | ml | OCaml | fpat/realTerm.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 32 | 2019-10-30T10:09:56.000Z | 2022-03-28T07:15:04.000Z | fpat/realTerm.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 1 | 2021-04-14T19:19:15.000Z | 2021-04-15T02:03:56.000Z | fpat/realTerm.ml | li-xin-yi/MoCHi | 5fe401323e64ca2dd0235729e705d836f3068751 | [
"Apache-2.0"
] | 5 | 2019-11-08T07:49:00.000Z | 2022-03-01T18:09:57.000Z | open Util
open Combinator
include Term
(** {6 Auxiliary constructors} *)
let make f = mk_const (Const.Real f)
let zero = make 0.0
let one = make 1.0
let of_int n = make (float_of_int n)
(** {6 Operators} *)
let neg t = mk_app (mk_const (Const.Neg Type.mk_real)) [t]
let rsq t = mk_app (mk_const Const.FRsq) [t]
let... | 28.104839 | 78 | 0.580775 |
8ac138734c3b32078303703eb2d44705356c4df1 | 1,306 | ml | OCaml | hphp/hack/src/server/serverAiInit.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverAiInit.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverAiInit.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.
*
*)
open Hh_core
open ServerEnv
let ai_check
(genv: ServerEnv.genv)
(files_info: Naming_table.t)
(env: Serv... | 29.022222 | 81 | 0.614089 |
8ac5113cc02f4ef4861b3843b205bc36179d7c44 | 17,208 | ml | OCaml | src/lib/pipeline.ml | hammerlab/epidisco | 0fdbcc2b4f3bb1c4af74411af69b371870f76d6a | [
"Apache-2.0"
] | 28 | 2016-08-08T20:02:46.000Z | 2020-04-30T11:06:47.000Z | src/lib/pipeline.ml | hammerlab/epidisco | 0fdbcc2b4f3bb1c4af74411af69b371870f76d6a | [
"Apache-2.0"
] | 169 | 2016-08-08T20:29:17.000Z | 2018-12-18T18:52:29.000Z | src/lib/pipeline.ml | hammerlab/epidisco | 0fdbcc2b4f3bb1c4af74411af69b371870f76d6a | [
"Apache-2.0"
] | 6 | 2017-10-02T03:03:29.000Z | 2019-05-20T02:26:48.000Z | open Nonstd
module String = Sosa.Native_string
open Tool_configuration
module Full (Bfx: Extended_edsl.Semantics) = struct
module Stdlib = Biokepi.EDSL.Library.Make(Bfx)
let to_bam_dna ~parameters ~reference_build samples =
let sample_to_bam sample =
let open Biokepi.EDSL.Library.Input in
let ba... | 36.457627 | 92 | 0.64871 |
8ae82e5a7879bc46614874aff4f08164cff8a0e0 | 3,559 | ml | OCaml | hphp/hack/src/hhbc/emit_type_hint.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_type_hint.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_type_hint.ml | elgenie/hiphop-php | 23efadffa702cf296403a850e3500f91511258f7 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Core
mod... | 29.172131 | 80 | 0.63501 |
8a8f4af3997ce52b8b4294f0b1ebf87743ef4241 | 212 | mli | OCaml | libraries/cloudformation/lib/listChangeSets.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/cloudformation/lib/listChangeSets.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/cloudformation/lib/listChangeSets.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = ListChangeSetsInput.t
type output = ListChangeSetsOutput.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 19.272727 | 85 | 0.764151 |
8aa752c572b891cef8b7f6fae0ae37aba988372b | 259 | mli | OCaml | src/server/serverWorker.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-07-08T17:40:26.000Z | 2020-07-08T17:40:26.000Z | src/server/serverWorker.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 2 | 2021-09-02T16:30:33.000Z | 2021-09-02T16:30:34.000Z | src/server/serverWorker.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"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.
*)
val make : n:int -> SharedMem_js.handle -> MultiWorkerLwt.worker list
| 28.777778 | 69 | 0.722008 |
8ae9c58308f19144efdc624be713e8cb73288c27 | 4,954 | ml | OCaml | ocaml_modules/base/src/info_intf.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/base/src/info_intf.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/base/src/info_intf.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | (** [Info] is a library for lazily constructing human-readable information as a string
or sexp, with a primary use being error messages.
Using [Info] is often preferable to [sprintf] or manually constructing strings
because you don't have to eagerly construct the string -- you only need to pay when
you... | 34.165517 | 90 | 0.645135 |
8a738ed9c58aeedaa9e421f805394891d7592aba | 891 | ml | OCaml | hphp/hack/src/typing/nast_check/nast_check.ml | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nast_check/nast_check.ml | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nast_check/nast_check.ml | modyharshit23/hhvm | dc14931d80a49c60fac2365b92f3648e12d9b0f4 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | [@@@warning "-33"]
open Core_kernel
[@@@warning "+33"]
let visitor =
Nast_visitor.iter_with
[
Const_prohibited_check.handler;
Prop_modifier_prohibited_check.handler;
Mutability_check.handler;
Inout_check.handler;
Naming_coroutine_check.handler;
Interface_check.handler;
... | 25.457143 | 46 | 0.731762 |
8af5e7076f7e6424e90572bf69e0f64bed8f397d | 1,168 | mli | OCaml | infer/src/pulse/PulseInterproc.mli | tony-go/infer | 63ea04035552634532542e59795ca5e902e61171 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseInterproc.mli | tony-go/infer | 63ea04035552634532542e59795ca5e902e61171 | [
"MIT"
] | null | null | null | infer/src/pulse/PulseInterproc.mli | tony-go/infer | 63ea04035552634532542e59795ca5e902e61171 | [
"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
open PulseBasicInterface
open PulseDomainInterface
val apply_prepost :
is_isl_error_prepost:bool
-> Procname.t
... | 35.393939 | 100 | 0.715753 |
8a6e7fa7ea65dbde5929eee307da3e8ef7513103 | 7,080 | ml | OCaml | mirage/mdns_resolver_mirage.ml | dsheets/ocaml-dns | 487f593cc6835fb4504b46c66acdd67ef6a596ca | [
"0BSD"
] | null | null | null | mirage/mdns_resolver_mirage.ml | dsheets/ocaml-dns | 487f593cc6835fb4504b46c66acdd67ef6a596ca | [
"0BSD"
] | null | null | null | mirage/mdns_resolver_mirage.ml | dsheets/ocaml-dns | 487f593cc6835fb4504b46c66acdd67ef6a596ca | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2015 Luke Dunstan <LukeDunstan81@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS... | 31.189427 | 89 | 0.651977 |
8a458a478fa8493dcea10a58e2a6142ce90627f4 | 633 | mli | OCaml | src/ldl_l.mli | ldltools/ldlsat | 6f5afc09db9e64e1fa2ece105e1370a06e13c32f | [
"Apache-2.0"
] | 4 | 2020-01-30T19:52:28.000Z | 2021-11-16T15:06:28.000Z | src/ldl_l.mli | ldltools/ldlsat | 6f5afc09db9e64e1fa2ece105e1370a06e13c32f | [
"Apache-2.0"
] | null | null | null | src/ldl_l.mli | ldltools/ldlsat | 6f5afc09db9e64e1fa2ece105e1370a06e13c32f | [
"Apache-2.0"
] | 1 | 2021-10-07T04:51:03.000Z | 2021-10-07T04:51:03.000Z | (*
* (C) Copyright IBM Corp. 2018.
*
* 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 by applicable law or agreed to in w... | 37.235294 | 75 | 0.737757 |
afcece78b4bb05a9ab05439cfa12bc17625a9f92 | 7,408 | ml | OCaml | hphp/hack/src/parser/full_fidelity_editable_positioned_token.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/parser/full_fidelity_editable_positioned_token.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/parser/full_fidelity_editable_positioned_token.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(**
* An EditablePositionedToken represents a token that comes from a positioned
* source but may have been modif... | 30.995816 | 80 | 0.739201 |
8a4eb39a12a80ab6520156b472e14712fe023ee4 | 3,180 | ml4 | OCaml | Resources/coq-8.3pl2/plugins/xml/xml.ml4 | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | Resources/coq-8.3pl2/plugins/xml/xml.ml4 | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | Resources/coq-8.3pl2/plugins/xml/xml.ml4 | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010 *)
(* \VV/ **************************************************************)
(* // * The H... | 40.253165 | 81 | 0.424528 |
8a5085db2cdb1e24d51d4b7bfacdd59b3967691f | 29,507 | ml | OCaml | src/frontend/query_commands.ml | zindel/merlin | ce45e05516a242d8d68066e744b671f727a8373a | [
"MIT"
] | null | null | null | src/frontend/query_commands.ml | zindel/merlin | ce45e05516a242d8d68066e744b671f727a8373a | [
"MIT"
] | null | null | null | src/frontend/query_commands.ml | zindel/merlin | ce45e05516a242d8d68066e744b671f727a8373a | [
"MIT"
] | null | null | null | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby... | 38.172057 | 95 | 0.629342 |
8af7c236926d82c781ce1770700970fb9b3da6bf | 2,043 | ml | OCaml | src/lib/zexe_backend/bn382/dlog_based.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | src/lib/zexe_backend/bn382/dlog_based.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | src/lib/zexe_backend/bn382/dlog_based.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | open Zexe_backend_common
open Basic
module Field = Fq
module Bigint = struct
module R = struct
include Field.Bigint
let to_field = Field.of_bigint
let of_field = Field.to_bigint
end
end
let field_size : Bigint.R.t = Field.size
module Mat = struct
include Snarky_bn382.Fq.Constraint_matrix
let c... | 22.955056 | 73 | 0.730299 |
af30bc83bdd86717b4687e075ef868e840dfaabb | 1,681 | mli | OCaml | src/core/RefineMonad.mli | jonsterling/fun-tt | 46a0bd0b5b270aa341c9f7d3af7937fabf6c8562 | [
"Apache-2.0"
] | 1 | 2019-12-20T21:38:18.000Z | 2019-12-20T21:38:18.000Z | src/core/RefineMonad.mli | jonsterling/fun-tt | 46a0bd0b5b270aa341c9f7d3af7937fabf6c8562 | [
"Apache-2.0"
] | 3 | 2019-12-20T21:27:42.000Z | 2019-12-20T21:28:27.000Z | src/core/RefineMonad.mli | jonsterling/fun-tt | 46a0bd0b5b270aa341c9f7d3af7937fabf6c8562 | [
"Apache-2.0"
] | null | null | null | open CodeUnit
module D = Domain
module S = Syntax
open Basis
include module type of Monads.RefineM
val refine_err : RefineError.t -> 'a m
val update_span : LexingUtil.span option -> 'a m -> 'a m
val abstract : Ident.t -> D.tp -> (D.con -> 'a m) -> 'a m
val add_global : unfolder:Global.t option -> shadowing:bool ->... | 32.326923 | 92 | 0.664485 |
8a2a475e4fe57d3c389e2046df75f319b983441c | 16,654 | ml | OCaml | src/proto_010_PtGRANAD/lib_client/client_proto_args.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_010_PtGRANAD/lib_client/client_proto_args.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_010_PtGRANAD/lib_client/client_proto_args.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> *)
... | 32.026923 | 80 | 0.639486 |
8a43f3e5a971d3a0b79c64a44cc6b65d9d106240 | 697 | ml | OCaml | data/derived/comb/progs/unify/prog7369.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/prog2559.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2559.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 c y = y;;
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... | 24.034483 | 71 | 0.517934 |
8a6b08f7eaeb824578e81424d959fb3c1dbb0432 | 87,029 | ml | OCaml | src/lib/ledger_catchup/super_catchup.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/ledger_catchup/super_catchup.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/ledger_catchup/super_catchup.ml | CodaProtocol/coda | bd1c97acd9c3c80e638045e4562dae711efbd28c | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | (* Only show stdout for failed inline tests. *)
open Inline_test_quiet_logs
open Core
open Async
open Cache_lib
open Pipe_lib
open Mina_numbers
open Mina_base
open Mina_block
open Network_peer
(** [Ledger_catchup] is a procedure that connects a foreign external transition
into a transition frontier by requesting a... | 42.104015 | 305 | 0.566524 |
8a8a6257af3df90315f85966b4c395cc449fc519 | 62 | ml | OCaml | jingle/Version_jingle.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | jingle/Version_jingle.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 4 | 2021-06-29T09:31:26.000Z | 2021-07-02T15:26:56.000Z | jingle/Version_jingle.ml | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | include Version
let libdir = Filename.concat libdir "jingle"
| 15.5 | 44 | 0.790323 |
afb8b8a97fd38f8c5917f8fe426665c2c6efd67d | 500 | ml | OCaml | test/passing/apply.ml | Wilfred/ocamlformat | 3b41b2597ea98c5abba3744a280b286a7edbd99d | [
"MIT"
] | null | null | null | test/passing/apply.ml | Wilfred/ocamlformat | 3b41b2597ea98c5abba3744a280b286a7edbd99d | [
"MIT"
] | null | null | null | test/passing/apply.ml | Wilfred/ocamlformat | 3b41b2597ea98c5abba3744a280b286a7edbd99d | [
"MIT"
] | 1 | 2019-01-16T07:35:51.000Z | 2019-01-16T07:35:51.000Z | let _ = List.map ~f:(( + ) (M.f x))
let id x = x
let plus a ?(b = 0) c = a + b + c
;;
id (plus 1) ~b:1
(* The version above does not type-check, while the version below does
type-check, and should not be formatted to the above. See
https://caml.inria.fr/mantis/view.php?id=7832 for explanation on the
type-c... | 18.518519 | 71 | 0.566 |
8a9b2051c58ba1e06bc6f1920c297ed8e5bd0bc1 | 831 | mli | OCaml | src/stdune/option.mli | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | src/stdune/option.mli | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | src/stdune/option.mli | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | (** Optional values *)
type 'a t = 'a option =
| None
| Some of 'a
module O : sig
val (>>|) : 'a t -> ('a -> 'b ) -> 'b t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
end
val map : 'a t -> f:('a -> 'b ) -> 'b t
val bind : 'a t -> f:('a -> 'b t) -> 'b t
val iter : 'a t -> f:('a -> unit) -> unit
val forall: '... | 20.268293 | 68 | 0.463297 |
8a521b2092bcab268da522b6b1be83e679c22687 | 5,864 | ml | OCaml | src/lib_protocol_compiler/replace.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_protocol_compiler/replace.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_protocol_compiler/replace.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 37.113924 | 79 | 0.577933 |
8a0d8f50e4f8460b3e61a1eec587510a89bc4c60 | 5,415 | mli | OCaml | source/configuration.mli | ekmixon/pyre-check | bd2475cc0cf4bef941f0aea6df10d674e6c907ab | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/configuration.mli | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/configuration.mli | yuhan1212/pyre-check | 37a3fcb4dec517c37f381743bac8f8a269218f8c | [
"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 Pyre
module Buck : sig
type t = {
mode: string option;
isolation_prefix: string option;
targets: string list;
... | 23.441558 | 84 | 0.672207 |
afc9ebb9ed7cb04547002aa08bee0a43be8dd7f8 | 22,689 | ml | OCaml | hphp/hack/src/decl/decl_linearize.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_linearize.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/decl_linearize.ml | jjergus/hhvm | 7f94d3da259c9443792327e0a61af1a6778d53b9 | [
"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 Hh_prelude
open Decl_defs
open Reordered_argument_collections
open Shallow_decl_defs
open Typing_defs
module SN ... | 36.773096 | 98 | 0.652078 |
8ad16e967a6ae5d86342215bb6ea9064e649c83c | 360 | mli | OCaml | command/commandWatchmanConstants.mli | diophung/pyre-check | a488698d86b06b550c0e6e133009c1f396925af2 | [
"MIT"
] | null | null | null | command/commandWatchmanConstants.mli | diophung/pyre-check | a488698d86b06b550c0e6e133009c1f396925af2 | [
"MIT"
] | null | null | null | command/commandWatchmanConstants.mli | diophung/pyre-check | a488698d86b06b550c0e6e133009c1f396925af2 | [
"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 Pyre
val watchman_root: Configuration.t -> Path.t
val lock_path: Configuration.t -> Path.t
val pid_path: Configuration.t -> Path.t
... | 24 | 67 | 0.730556 |
8ab13c3b1f2af13b23a02eddfe42fe5b63eb9021 | 84 | ml | OCaml | src/bin/cli/illuaminate.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 23 | 2019-10-31T11:55:18.000Z | 2021-12-17T10:18:45.000Z | src/bin/cli/illuaminate.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 29 | 2019-11-27T09:57:52.000Z | 2021-12-13T13:34:56.000Z | src/bin/cli/illuaminate.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 3 | 2020-10-11T21:43:58.000Z | 2021-05-30T14:38:43.000Z | (** "illuamninate" is the complete distribution. *)
let () = Illuaminate_cli.run ()
| 28 | 51 | 0.690476 |
8adb075807dd66e81308a54c363e353639f60a6e | 25,474 | ml | OCaml | src/core/CCVector.ml | nilsbecker/ocaml-containers | 2aa801631c73e962d65f8f538eb8d7de20249dc8 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCVector.ml | nilsbecker/ocaml-containers | 2aa801631c73e962d65f8f538eb8d7de20249dc8 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCVector.ml | nilsbecker/ocaml-containers | 2aa801631c73e962d65f8f538eb8d7de20249dc8 | [
"BSD-2-Clause"
] | null | null | null | (* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Growable, mutable vector} *)
type rw = [`RW]
type ro = [`RO]
type 'a iter = ('a -> unit) -> unit
type 'a klist = unit -> [`Nil | `Cons of 'a * 'a klist]
type 'a gen = unit -> 'a option
type 'a equal = 'a -> 'a -> bool
t... | 23.158182 | 104 | 0.573487 |
8aecc9208c2b9edc00503a71c4a7f2408056a34e | 18,010 | ml | OCaml | src/dune_engine/rule_cache.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | src/dune_engine/rule_cache.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 1 | 2019-09-17T12:49:47.000Z | 2019-09-17T12:49:47.000Z | src/dune_engine/rule_cache.ml | staronj/dune | cf0ceccef1e177625b9361323bd7a3401a988d45 | [
"MIT"
] | null | null | null | open Import
(* A type isomorphic to [Result], but without the negative connotations
associated with the word "error". *)
module Result = struct
type ('hit, 'miss) t =
| Hit of 'hit
| Miss of 'miss
end
module Workspace_local = struct
(* Stores information for deciding if a rule needs to be re-executed. ... | 40.022222 | 80 | 0.638978 |
8a4b043b28bb0bbbea56472c8d706bf1101fa6e8 | 2,425 | ml | OCaml | test/bag_test.ml | arenadotio/core | 49dc8358869dfb9cd26c9b4401c9cc76f77ae9b4 | [
"Apache-2.0"
] | null | null | null | test/bag_test.ml | arenadotio/core | 49dc8358869dfb9cd26c9b4401c9cc76f77ae9b4 | [
"Apache-2.0"
] | null | null | null | test/bag_test.ml | arenadotio/core | 49dc8358869dfb9cd26c9b4401c9cc76f77ae9b4 | [
"Apache-2.0"
] | null | null | null | open OUnit;;
open Core.Std
let test =
"bag" >:::
[ "foo" >::
(fun () ->
"create" @? begin
let b = Bag.create () in
Bag.invariant ignore b;
assert (Bag.is_empty b);
assert (0 = Bag.length b);
true;
end;
"add1" @? beg... | 29.573171 | 66 | 0.397938 |
aff27e688893529fed11e7b7cf8cc5d01a84e679 | 1,915 | ml | OCaml | libraries/rds/lib/deleteDBSnapshot.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/deleteDBSnapshot.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/deleteDBSnapshot.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteDBSnapshotMessage.t
type output = DeleteDBSnapshotResult.t
type error = Errors_internal.t
let service = "rds"
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... | 31.393443 | 96 | 0.588512 |
8a2e281386da428a2a93640ea4b8143e6982c4c7 | 70 | mli | OCaml | src/compilerlib/pb_codegen_pp.mli | anmolsahoo25/ocaml-protoc | 802dc25c2ac029a7ea5e9624f5727f35c8824a15 | [
"MIT"
] | 143 | 2016-01-25T18:42:38.000Z | 2022-03-20T15:49:38.000Z | src/compilerlib/pb_codegen_pp.mli | anmolsahoo25/ocaml-protoc | 802dc25c2ac029a7ea5e9624f5727f35c8824a15 | [
"MIT"
] | 79 | 2015-11-11T12:15:19.000Z | 2022-03-19T23:30:52.000Z | src/compilerlib/pb_codegen_pp.mli | anmolsahoo25/ocaml-protoc | 802dc25c2ac029a7ea5e9624f5727f35c8824a15 | [
"MIT"
] | 25 | 2016-04-10T17:58:13.000Z | 2022-01-18T14:08:05.000Z | (** Code generator for the [pp] function *)
include Pb_codegen_sig.S
| 17.5 | 43 | 0.728571 |
8a7ba080e90f914d6c12ec48f0cba00b2ceebc02 | 6,013 | ml | OCaml | src/common/options.ml | technology-studio-forks/flow | 5adcafcd2bc175b1b49535f980ca509244847602 | [
"MIT"
] | null | null | null | src/common/options.ml | technology-studio-forks/flow | 5adcafcd2bc175b1b49535f980ca509244847602 | [
"MIT"
] | null | null | null | src/common/options.ml | technology-studio-forks/flow | 5adcafcd2bc175b1b49535f980ca509244847602 | [
"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.
*)
type esproposal_feature_mode =
| ESPROPOSAL_ENABLE
| ESPROPOSAL_IGNORE
| ESPROPOSAL_WARN
type file_watcher =
| NoFileWatcher
| DF... | 35.579882 | 80 | 0.814236 |
8a8104e75d88f73fd19695df3f83eb37739d5bc2 | 40,673 | ml | OCaml | src/proto_009_PsFLorBA/lib_protocol/storage.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_protocol/storage.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_protocol/storage.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 26.497068 | 82 | 0.59022 |
8ac9e4ab0dae14bac9de77a97c4c7fd4d3ad6dcb | 11,705 | ml | OCaml | src/lib/transition_frontier/tests/full_frontier_tests.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/transition_frontier/tests/full_frontier_tests.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/transition_frontier/tests/full_frontier_tests.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | (* Only show stdout for failed inline tests. *)
open Inline_test_quiet_logs
open Async_kernel
open Core_kernel
open Signature_lib
open Mina_base
open Mina_block
open Frontier_base
open Deferred.Let_syntax
let%test_module "Full_frontier tests" =
( module struct
let () =
Backtrace.elide := false ;
Asyn... | 42.40942 | 81 | 0.617087 |
8af868f98eb97c108d653754a14a15767372b0c2 | 1,040 | ml | OCaml | tests/pldi-2015-contexts/bool_impl.ml | awendland/myth-extended | 3b5a51c905355813654dc185511257364a809929 | [
"MIT"
] | null | null | null | tests/pldi-2015-contexts/bool_impl.ml | awendland/myth-extended | 3b5a51c905355813654dc185511257364a809929 | [
"MIT"
] | null | null | null | tests/pldi-2015-contexts/bool_impl.ml | awendland/myth-extended | 3b5a51c905355813654dc185511257364a809929 | [
"MIT"
] | 2 | 2019-12-01T20:38:39.000Z | 2020-12-15T11:43:21.000Z | (* CONTAINS CONTEXT FUNCTION *)
type bool =
| True
| False
(* NO BOOL OPERATIONS *)
type nat =
| O
| S of nat
let rec plus (n1:nat) (n2:nat) : nat =
match n1 with
| O -> n2
| S (n1) -> S (plus n1 n2)
;;
let rec div2 (n:nat) : nat =
match n with
| O -> O
| S (n1) -> match n1 with
| O -> O
... | 15.522388 | 44 | 0.482692 |
8a67c18c02c03d278b17df01a59e9b9113401503 | 8,227 | ml | OCaml | lib_web/current_web.ml | hannesm/ocurrent | 3a086e165d7fdae7c63e76ed7d52818bafa78aa1 | [
"Apache-2.0"
] | null | null | null | lib_web/current_web.ml | hannesm/ocurrent | 3a086e165d7fdae7c63e76ed7d52818bafa78aa1 | [
"Apache-2.0"
] | null | null | null | lib_web/current_web.ml | hannesm/ocurrent | 3a086e165d7fdae7c63e76ed7d52818bafa78aa1 | [
"Apache-2.0"
] | null | null | null | open Lwt.Infix
open Astring
let src = Logs.Src.create "current_web" ~doc:"OCurrent web interface"
module Log = (val Logs.src_log src : Logs.LOG)
module Server = Cohttp_lwt_unix.Server
type webhook = string * (Cohttp_lwt.Request.t -> Cohttp_lwt.Body.t -> (Cohttp.Response.t * Cohttp_lwt.Body.t) Lwt.t)
let dot_to_svg ... | 36.564444 | 116 | 0.625015 |
af4ba324f1e2acc1841d295e377b15919e27ed0d | 345,279 | ml | OCaml | src/typing/statement.ml | davidnaas/flow | 694a309274926b7f943c6d4e9384568aac7ec749 | [
"MIT"
] | null | null | null | src/typing/statement.ml | davidnaas/flow | 694a309274926b7f943c6d4e9384568aac7ec749 | [
"MIT"
] | null | null | null | src/typing/statement.ml | davidnaas/flow | 694a309274926b7f943c6d4e9384568aac7ec749 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
module Tast_utils = Typed_ast_utils
(* This module contains the traversal functions which set up subtyping
... | 42.323976 | 104 | 0.574541 |
8ac83934a2e8c49a07120f058c6d7b6c89c61f6b | 3,269 | ml | OCaml | plugins/trace/trace_main.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1,697 | 2015-01-09T07:17:41.000Z | 2022-03-26T17:48:05.000Z | plugins/trace/trace_main.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 685 | 2015-01-10T21:32:42.000Z | 2022-03-23T23:44:53.000Z | plugins/trace/trace_main.ml | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 294 | 2015-01-10T15:51:57.000Z | 2022-03-20T05:37:22.000Z | open Core_kernel
open Bap_plugins.Std
open Bap_future.Std
open Bap.Std
open Bap_traces.Std
open Format
open Result.Monad_infix
include Self()
module Unix = Caml_unix
let print_meta trace =
Trace.meta trace |>
Dict.data |> Seq.to_list |>
List.sort ~compare:(fun m1 m2 ->
if Value.is Meta.trace_stats m1 then... | 30.268519 | 76 | 0.591618 |
8ae30734bfe49b2a0500c6cd728b4d1c0c7a4c67 | 4,962 | ml | OCaml | src/lib_shell/prevalidator_filters.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_shell/prevalidator_filters.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_shell/prevalidator_filters.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Nomadic Development. <contact@tezcore.com> *)
... | 35.697842 | 80 | 0.600766 |
8af9cf7909ec2229bec39a5f7c3dc1eb720ffec0 | 4,878 | mli | OCaml | examples/misc/jquery.mli | hhugo/gen_js_api | b0ac205727d9bfe319ef86dbc674728c02e4a43f | [
"MIT"
] | null | null | null | examples/misc/jquery.mli | hhugo/gen_js_api | b0ac205727d9bfe319ef86dbc674728c02e4a43f | [
"MIT"
] | null | null | null | examples/misc/jquery.mli | hhugo/gen_js_api | b0ac205727d9bfe319ef86dbc674728c02e4a43f | [
"MIT"
] | null | null | null | (* The gen_js_api is released under the terms of an MIT-like license. *)
(* See the attached LICENSE file. *)
(* Copyright 2015 by LexiFi. *)
(** Partial binding to jQuery, serving as an illustration
of gen_js_api. The bindin... | 23.565217 | 80 | 0.563346 |
8a21e10cbf60936206829c58a2ac389999c972e2 | 49,670 | ml | OCaml | vendor/lambda-term/src/lTerm_read_line.ml | timmassingham/spin | 0f1f0ca30911c40ebc27d61cb5aac222cd62c490 | [
"MIT"
] | null | null | null | vendor/lambda-term/src/lTerm_read_line.ml | timmassingham/spin | 0f1f0ca30911c40ebc27d61cb5aac222cd62c490 | [
"MIT"
] | null | null | null | vendor/lambda-term/src/lTerm_read_line.ml | timmassingham/spin | 0f1f0ca30911c40ebc27d61cb5aac222cd62c490 | [
"MIT"
] | null | null | null | (*
* lTerm_read_line.ml
* ------------------
* Copyright : (c) 2011, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of Lambda-Term.
*)
open Lwt_react
open LTerm_geom
open LTerm_style
open LTerm_key
let return, (>>=) = Lwt.return, Lwt.(>>=)
type prompt = LTerm_text.t
type histor... | 36.441673 | 139 | 0.577592 |
8a494535e3d9297f539f2cff4954601f1d8aa791 | 1,053 | ml | OCaml | hphp/hack/src/js/hh_json.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-01-27T10:11:42.000Z | 2022-01-27T10:11:42.000Z | hphp/hack/src/js/hh_json.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2017-04-10T11:50:15.000Z | 2017-04-10T11:50:15.000Z | hphp/hack/src/js/hh_json.ml | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-03-24T20:14:38.000Z | 2021-03-24T20:14:38.000Z | (**
* 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 "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(**
* Quick ... | 26.325 | 100 | 0.616334 |
8aac141a4808fd2b091de5d3945a0e1f74bc9c1c | 121 | mli | OCaml | src/common/Gensym.mli | bstatcomp/stanc3 | 9031e932016b8c2a5ee9f861f420f8698eeee216 | [
"BSD-3-Clause"
] | null | null | null | src/common/Gensym.mli | bstatcomp/stanc3 | 9031e932016b8c2a5ee9f861f420f8698eeee216 | [
"BSD-3-Clause"
] | 1 | 2020-02-07T06:51:17.000Z | 2020-02-07T06:51:17.000Z | src/common/Gensym.mli | bstatcomp/stanc3 | 9031e932016b8c2a5ee9f861f420f8698eeee216 | [
"BSD-3-Clause"
] | null | null | null | val generate : unit -> string
val enter : unit -> string * (unit -> unit)
val reset_danger_use_cautiously : unit -> unit
| 30.25 | 46 | 0.702479 |
8ab54261e25978ecd9023a178e17e6338ef79bc6 | 981 | mli | OCaml | src/search.mli | CraigFe/index | 5d32a9a495d0cf38986801317679892a15da17c9 | [
"MIT"
] | null | null | null | src/search.mli | CraigFe/index | 5d32a9a495d0cf38986801317679892a15da17c9 | [
"MIT"
] | null | null | null | src/search.mli | CraigFe/index | 5d32a9a495d0cf38986801317679892a15da17c9 | [
"MIT"
] | null | null | null | module type ARRAY = sig
type t
type elt
val get : t -> int64 -> elt
val length : t -> int64
val pre_fetch : t -> low:int64 -> high:int64 -> unit
end
module type ENTRY = sig
type t
module Key : sig
type t
val equal : t -> t -> bool
end
module Value : sig
type t
end
val to_key :... | 16.627119 | 72 | 0.614679 |
8ab61bb66c7f36785cc99082e397393e3508f0dc | 11,372 | ml | OCaml | lib/analyze.ml | kit-ty-kate/bechamel | 205a8690906ed0f07a721df09213d79bb8fb635a | [
"MIT"
] | 16 | 2021-01-07T11:24:13.000Z | 2022-02-28T09:00:20.000Z | lib/analyze.ml | kit-ty-kate/bechamel | 205a8690906ed0f07a721df09213d79bb8fb635a | [
"MIT"
] | 8 | 2021-03-03T16:09:26.000Z | 2022-02-13T18:01:47.000Z | lib/analyze.ml | kit-ty-kate/bechamel | 205a8690906ed0f07a721df09213d79bb8fb635a | [
"MIT"
] | 5 | 2021-09-26T11:39:11.000Z | 2022-03-30T12:06:51.000Z | module OLS = struct
module Ci95 = struct
(* 95% confidence interval *)
type t = { r : float; l : float }
let pp ppf x = Fmt.pf ppf "@[<hov>%f to %f@]" x.r x.l
let bad = { r = neg_infinity; l = neg_infinity }
end
(* Linear regression inputs *)
let make_lr_inputs ~responder ~predictors m =
... | 32.306818 | 81 | 0.586177 |
8ae8d285d8e1ac8476011c15e3b273cf0e47e750 | 2,753 | ml | OCaml | src/lib/precomputed_values/gen_values/gen_values.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | src/lib/precomputed_values/gen_values/gen_values.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | src/lib/precomputed_values/gen_values/gen_values.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | [%%import
"../../../config.mlh"]
open Ppxlib
open Asttypes
open Parsetree
open Longident
open Core
open Coda_state
(* TODO: refactor to do compile time selection *)
[%%if
proof_level = "full"]
let use_dummy_values = false
[%%else]
let use_dummy_values = true
[%%endif]
module type S = sig
val base_hash_expr : P... | 24.149123 | 77 | 0.671631 |
8ac4a945d59e54dd6120ad0abe4faba3aeb08e86 | 1,823 | ml | OCaml | hphp/hack/src/full_fidelity/full_fidelity_parser.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/full_fidelity/full_fidelity_parser.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/full_fidelity/full_fidelity_parser.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"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.
*
*)
module Token ... | 35.745098 | 80 | 0.762479 |
8ae9ce2afad35903e0be007b5ca6ac5e3cd49c33 | 128 | ml | OCaml | data/derived/comb/progs/unify/prog2687.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/prog2687.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2687.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let wwhile (f,b) = let (func,boo) = f in func;;
let _ = let f x = let xx = (x * x) * x in (xx, (xx < 100)) in wwhile (f, 2);;
| 25.6 | 77 | 0.5 |
4410511556ef5c0be0f300c22be782deec1597d0 | 51 | ml | OCaml | hollight/valid/mathd-numbertheory-133.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/valid/mathd-numbertheory-133.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/valid/mathd-numbertheory-133.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let mathd-numbertheory-133 = `gcd(180,168) = 12`;;
| 25.5 | 50 | 0.666667 |
d2d4cf05e6883432ea310a8995e92e9fffc74bf7 | 3,780 | ml | OCaml | test/irmin-graphql/common.ml | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 1,491 | 2015-01-04T05:34:56.000Z | 2022-03-31T09:53:17.000Z | test/irmin-graphql/common.ml | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 1,132 | 2015-01-05T17:06:31.000Z | 2022-03-30T19:56:47.000Z | test/irmin-graphql/common.ml | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 144 | 2015-01-30T14:00:16.000Z | 2022-03-29T16:30:47.000Z | (*
* Copyright (c) 2013-2021 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 32.307692 | 81 | 0.674868 |
8a2448f6d79a5b272edf3eb5096b006d8351dab8 | 3,255 | mli | OCaml | lib.mli | monadius/FPTaylor | 55214506eaf1a5fbbecf098221b81c4cc375ac6f | [
"MIT"
] | 21 | 2015-11-24T20:52:23.000Z | 2022-02-18T15:04:48.000Z | lib.mli | monadius/FPTaylor | 55214506eaf1a5fbbecf098221b81c4cc375ac6f | [
"MIT"
] | 24 | 2016-10-31T16:46:00.000Z | 2021-04-07T04:35:37.000Z | lib.mli | monadius/FPTaylor | 55214506eaf1a5fbbecf098221b81c4cc375ac6f | [
"MIT"
] | 7 | 2018-01-11T17:52:41.000Z | 2021-08-24T01:52:59.000Z | (* ========================================================================== *)
(* FPTaylor: A Tool for Rigorous Estimation of Round-off Errors *)
(* *)
(* Author: Alexey Solovyev, University of Utah ... | 34.62766 | 80 | 0.363134 |
8ab23faaa25fa1edb47654d8a43c8d2eb2e7188a | 8,428 | mli | OCaml | code/src/equeue/uq_client.mli | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/equeue/uq_client.mli | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/equeue/uq_client.mli | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | (* $Id$ *)
open Uq_engines
(** Support for socket clients *)
(** Note that Win32 named pipes are also supported by the following
API's, although they are not sockets. These pipes have a feature
set comparable to Unix domain sockets.
*)
type inetspec =
[ `Sock_inet of (Unix.socket_type * Unix.inet_addr *... | 37.793722 | 80 | 0.66991 |
8a32105f5c68379d07131eb3da9c336cfc4b69a7 | 289 | ml | OCaml | src/create_tiny_url_handler.ml | jjd27/rage | e160ba4d570fc65498f1bca64ddb093200a50443 | [
"BSD-3-Clause"
] | 2 | 2015-10-09T06:28:35.000Z | 2019-05-29T01:52:56.000Z | src/create_tiny_url_handler.ml | DavidAlphaFox/rage | e8630659b2754b6621df7c49f3663fa7c4fac5eb | [
"BSD-3-Clause"
] | 17 | 2017-07-25T13:33:29.000Z | 2020-01-02T18:02:10.000Z | src/create_tiny_url_handler.ml | DavidAlphaFox/rage | e8630659b2754b6621df7c49f3663fa7c4fac5eb | [
"BSD-3-Clause"
] | 7 | 2015-10-14T05:38:23.000Z | 2019-12-19T17:32:36.000Z | open! Core.Std
let t ~args = object (self)
inherit Json_handler.t ~args
method private write_body =
let url = self#get_param_exn "url" in
let tuples = [("url", url)] in
let id = Sql.ensure_inserted_get_id ~conn ~tbl:"tiny_urls" ~tuples in
printf "{\"id\":%d}" id
end
| 24.083333 | 73 | 0.653979 |
8ad8ceca31954edd6d4eef010a65658e43d56da2 | 1,107 | mli | OCaml | api/docker.mli | shakthimaan/ocluster | ac776d53cc7dfeb89555e148b1626cb10b8c8a39 | [
"Apache-2.0"
] | 13 | 2020-07-19T18:32:53.000Z | 2022-03-23T14:29:52.000Z | api/docker.mli | shakthimaan/ocluster | ac776d53cc7dfeb89555e148b1626cb10b8c8a39 | [
"Apache-2.0"
] | 38 | 2020-07-16T09:41:52.000Z | 2022-03-29T13:53:35.000Z | api/docker.mli | shakthimaan/ocluster | ac776d53cc7dfeb89555e148b1626cb10b8c8a39 | [
"Apache-2.0"
] | 13 | 2020-07-19T16:56:27.000Z | 2022-03-03T15:46:05.000Z | module Image_id : sig
type t
(** A Docker image name and tag (e.g. "foo/bar:latest") *)
val v : repo:string -> tag:string -> t
val v_opt : repo:string -> tag:string -> (t, [> `Msg of string]) result
val of_string : string -> (t, [> `Msg of string]) result
val to_string : t -> string
val repo : t -> strin... | 27 | 85 | 0.612466 |
440b34d35c32d826a91253a5bebccf3b2f73e24e | 5,985 | mli | OCaml | infer/src/base/IssueType.mli | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | infer/src/base/IssueType.mli | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | infer/src/base/IssueType.mli | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** type of string used for localisation *)
type t = private
{ unique_id: string
; mutable enabled: bool
; mutable hum:... | 18.191489 | 95 | 0.795823 |
8a6a4b24e7d14171e8dde09c927ac5ff1f4df085 | 7,789 | ml | OCaml | src/hostnet_test/slirp_stack.ml | haesbaert/vpnkit | 854498c13b1884d4a48d84f3569eb34681af2126 | [
"Apache-2.0"
] | null | null | null | src/hostnet_test/slirp_stack.ml | haesbaert/vpnkit | 854498c13b1884d4a48d84f3569eb34681af2126 | [
"Apache-2.0"
] | null | null | null | src/hostnet_test/slirp_stack.ml | haesbaert/vpnkit | 854498c13b1884d4a48d84f3569eb34681af2126 | [
"Apache-2.0"
] | null | null | null | open Lwt.Infix
let src =
let src = Logs.Src.create "test" ~doc:"Test the slirp stack" in
Logs.Src.set_level src (Some Logs.Debug);
src
module Log = (val Logs.src_log src : Logs.LOG)
module Dns_policy = struct
let config_of_ips ips =
let open Dns_forward.Config in
let servers =
Server.Set.of_lis... | 33.573276 | 102 | 0.642573 |
8a7ab475cf646e09af412be73c61a277bbe02782 | 222 | ml | OCaml | tests/basic-more/testrandom.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | 1 | 2016-05-17T14:29:13.000Z | 2016-05-17T14:29:13.000Z | tests/basic-more/testrandom.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | tests/basic-more/testrandom.ml | objmagic/synsyn | afad917e975fe16cb725e6cdd5a46e72ac8cb735 | [
"WTFPL"
] | null | null | null | open Random
let _ =
for i = 0 to 20 do
print_char ' '; print_int (int 1000);
done;
print_newline (); print_newline ();
for i = 0 to 20 do
print_char ' '; print_float (float 1000.);
done
let _ = exit 0
| 17.076923 | 46 | 0.608108 |
afc2d0f749d982ac7d45e6e49f0eab61c406838d | 282 | mli | OCaml | server/httpdLib/listen.mli | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | 5 | 2015-01-30T06:16:32.000Z | 2020-04-14T09:08:49.000Z | server/httpdLib/listen.mli | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | server/httpdLib/listen.mli | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | (* © 2014 RunOrg *)
(** The type of a request handler. *)
type 'ctx handler = Request.t -> ('ctx, Response.t) Run.t
(** Start the server. Return a thread that executes all requests
received by the server. *)
val start : Common.config -> LogReq.ctx handler -> unit Run.thread
| 31.333333 | 66 | 0.673759 |
8ac43734f973e1667c4266e8d56eb8bd5b57454e | 1,128 | mli | OCaml | lib/contents.mli | CraigFe/oskel | 057129faaf8171ff4ed49022346e9179b04735b2 | [
"MIT"
] | 52 | 2020-01-06T02:14:30.000Z | 2022-02-07T05:45:52.000Z | lib/contents.mli | CraigFe/oskel | 057129faaf8171ff4ed49022346e9179b04735b2 | [
"MIT"
] | 7 | 2020-01-06T18:59:14.000Z | 2020-12-24T18:03:52.000Z | lib/contents.mli | CraigFe/oskel | 057129faaf8171ff4ed49022346e9179b04735b2 | [
"MIT"
] | 2 | 2020-01-17T13:14:16.000Z | 2020-04-28T01:31:19.000Z | type file_printer = Config.t -> Format.formatter -> unit
module Dune_project : sig
val package : file_printer
val minimal : file_printer
end
module Dune : sig
val library : file_printer
val executable :
name:string -> ?libraries:string list -> Format.formatter -> unit
val install : exe_name:string ->... | 18.491803 | 78 | 0.779255 |
44096aaee02bb6774ef291fb5dada4611e2e2ee7 | 3,830 | ml | OCaml | bin/build_cmd.ml | alexmusa/dune | 4974a5b8e54db90dde33802638f5fbab37264579 | [
"MIT"
] | 1 | 2022-03-18T02:24:50.000Z | 2022-03-18T02:24:50.000Z | bin/build_cmd.ml | alexmusa/dune | 4974a5b8e54db90dde33802638f5fbab37264579 | [
"MIT"
] | null | null | null | bin/build_cmd.ml | alexmusa/dune | 4974a5b8e54db90dde33802638f5fbab37264579 | [
"MIT"
] | 1 | 2021-05-07T18:08:53.000Z | 2021-05-07T18:08:53.000Z | open Stdune
open Import
let run_build_command_poll ~(common : Common.t) ~config ~targets ~setup =
let open Fiber.O in
let every () =
Cached_digest.invalidate_cached_timestamps ();
let* setup = setup () in
let* targets =
match
let open Option.O in
let* rpc = Common.rpc common in
... | 32.457627 | 80 | 0.614099 |
8ae92790902a87eb37e5e4d0effb7824a726f626 | 61,759 | mli | OCaml | gospel/test/ocaml-source-mli/unixLabels.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/test/ocaml-source-mli/unixLabels.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | gospel/test/ocaml-source-mli/unixLabels.mli | enieber/vocal | f1e0930863d4f9c44370d5bb9b435727b7c8efcf | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 41.172667 | 80 | 0.659969 |
8a45155296b76deb85008c3a2cb154bd3d5e9bdf | 92 | ml | OCaml | data/derived/comb/progs/unify/prog1195.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/prog1195.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1195.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 -> [x];;
| 23 | 70 | 0.467391 |
8ade64a8810b5486ebbbe2539dc55fc7a859d0a7 | 5,244 | ml | OCaml | src/lib/secrets/wallets.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/secrets/wallets.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/secrets/wallets.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | open Core
open Async
module Secret_keypair = Keypair
open Signature_lib
(* A simple cache on top of the fs *)
type t = {cache: Keypair.t Public_key.Compressed.Table.t; path: string}
(* TODO: Don't just generate bad passwords *)
let password = lazy (Deferred.Or_error.return (Bytes.of_string ""))
let get_path {path; _... | 39.134328 | 76 | 0.622807 |
aff51a51ca22fec80a748ebf31fd7717f0cb426a | 589 | ml | OCaml | lib/check_std.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/check_std.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib/check_std.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | (* These checks are here rather than in their corresponding modules because we want to
check a property of the module as it is exported in Core.Std. *)
open Std
TEST_MODULE = struct
module Check = Core_kernel.Std.Comparable.Check_sexp_conversion
include Check (struct
include Time
let examples = [ epo... | 19 | 86 | 0.697793 |
8a79c9973a6e097517d7a01a8a9f17a3cf6541f5 | 3,104 | ml | OCaml | src/proto_alpha/lib_protocol/time_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/time_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/time_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> *)
... | 46.328358 | 80 | 0.548325 |
8ad5900b143859352356e3ea3b4c0eccd45a54ab | 175 | ml | OCaml | data/derived/comb/progs/unify/prog7637.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/prog2837.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2837.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec wwhile (f,b) =
let temp = f b in
match temp with | (a,boolean) -> if boolean then wwhile (f, a) else a;;
let fixpoint (f,b) = wwhile (((f x), (x = (f x))), b);;
| 25 | 73 | 0.554286 |
8aecd7842b7f0d5557ea75570a40010b699545ca | 13,459 | ml | OCaml | src/services/coverage/coverage.ml | Hans-Halverson/flow | 361b0572cdce8074712084bd93cc676c4b832e04 | [
"MIT"
] | null | null | null | src/services/coverage/coverage.ml | Hans-Halverson/flow | 361b0572cdce8074712084bd93cc676c4b832e04 | [
"MIT"
] | 1 | 2021-09-02T18:19:09.000Z | 2021-09-02T18:19:09.000Z | src/services/coverage/coverage.ml | Hans-Halverson/flow | 361b0572cdce8074712084bd93cc676c4b832e04 | [
"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.
*)
(**
* This module computes whether a type is considered covered. It does so by
* visiting the type until a "concrete" constructor... | 29.776549 | 97 | 0.580578 |
8af44e6c2a01856c10ab8704421c53d5c9f36a2d | 13,681 | ml | OCaml | hphp/hack/src/watchman_event_watcher/watchmanEventWatcher.ml | Mu-L/hhvm | 972dcfd068c41f18ba5eadd1b833750917817225 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/watchman_event_watcher/watchmanEventWatcher.ml | cs-joy/hhvm | fcdbf247527cc38186691653dac9b675fb69a5a8 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/src/watchman_event_watcher/watchmanEventWatcher.ml | cs-joy/hhvm | fcdbf247527cc38186691653dac9b675fb69a5a8 | [
"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.
*
*)
(***************************************************
("Who watches the Watchmen?")
**********************... | 34.54798 | 80 | 0.689204 |
aff038f6b32d6250c7a8499d898b1d3cf847e1bb | 2,716 | ml | OCaml | src/gconf.ml | jeromemaloberti/obuild | 9db1f04d24d0a58ce3494f4675bb701c07015f87 | [
"BSD-2-Clause"
] | 1 | 2021-12-18T19:51:14.000Z | 2021-12-18T19:51:14.000Z | src/gconf.ml | jeromemaloberti/obuild | 9db1f04d24d0a58ce3494f4675bb701c07015f87 | [
"BSD-2-Clause"
] | null | null | null | src/gconf.ml | jeromemaloberti/obuild | 9db1f04d24d0a58ce3494f4675bb701c07015f87 | [
"BSD-2-Clause"
] | null | null | null | type verbosity = Silent | Report | Verbose | Debug | DebugPlus
type gconf =
{ mutable conf_verbosity : verbosity
; mutable conf_withopt : bool
; mutable conf_strict : bool
; mutable conf_prog_ocamlopt : string option
; mutable conf_prog_ocamlc : string option
; mutable conf_prog_ocamld... | 37.722222 | 92 | 0.667158 |
aff7bb8f926c1a6ed0838a2a82098fad75b0b631 | 986 | mli | OCaml | src/path.mli | Strikeskids/bonsai | 8fc8cd4cd931d34fe58eccd766ef95ca84787ba4 | [
"MIT"
] | null | null | null | src/path.mli | Strikeskids/bonsai | 8fc8cd4cd931d34fe58eccd766ef95ca84787ba4 | [
"MIT"
] | null | null | null | src/path.mli | Strikeskids/bonsai | 8fc8cd4cd931d34fe58eccd766ef95ca84787ba4 | [
"MIT"
] | null | null | null | open! Core_kernel
open! Import
module Elem : sig
module Keyed : T
val keyed : compare:('a -> 'a -> int) -> 'a Type_equal.Id.t -> ('a -> Keyed.t) Staged.t
(** We only have path nodes for places in the computation graph that could
introduce a branch. *)
type t =
| Subst_from
| Subst_into
| As... | 27.388889 | 89 | 0.6714 |
affe3dcf32a6615694aee36426231a5181d0d4e7 | 305 | mli | OCaml | src/custom_set.mli | c-cube/dowsing | 33fd9dea1812ecf3b694482390ed0f92cc12090b | [
"0BSD"
] | null | null | null | src/custom_set.mli | c-cube/dowsing | 33fd9dea1812ecf3b694482390ed0f92cc12090b | [
"0BSD"
] | null | null | null | src/custom_set.mli | c-cube/dowsing | 33fd9dea1812ecf3b694482390ed0f92cc12090b | [
"0BSD"
] | null | null | null |
module type S = sig
type elt
type t
val compare : t CCOrd.t
val of_seq : elt Sequence.t -> t
val to_seq : t -> elt Sequence.t
val pp : elt CCFormat.printer -> t CCFormat.printer
end
module Array (M : Set.OrderedType) : sig
include S with type elt = M.t
val as_array : t -> elt array
end
| 20.333333 | 53 | 0.662295 |
afba92c05dc6b32a43166b8b076a556b2f928403 | 13,087 | ml | OCaml | source/new_server/serverConfiguration.ml | mata14/pyre-check | 0ba391675e6baafbb6beea4f1809095c53f7a97f | [
"MIT"
] | null | null | null | source/new_server/serverConfiguration.ml | mata14/pyre-check | 0ba391675e6baafbb6beea4f1809095c53f7a97f | [
"MIT"
] | null | null | null | source/new_server/serverConfiguration.ml | mata14/pyre-check | 0ba391675e6baafbb6beea4f1809095c53f7a97f | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open Pyre
module CriticalFile = struct
type t =
| BaseName of string
| FullPath of Path.t
[@@deriving sexp, ... | 34.349081 | 99 | 0.665928 |
440adbdaac1fe300c16238e26c10e82273730068 | 5,189 | ml | OCaml | src/proto_alpha/lib_benchmark/test/test_distribution.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_benchmark/test/test_distribution.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_benchmark/test/test_distribution.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | open Tezos_benchmark
open Michelson_samplers
open Protocol
open Internal_for_tests
let pp_type_name fmtr (t : type_name) =
Format.pp_print_string fmtr
@@
match t with
| `TString -> "string"
| `TNat -> "nat"
| `TPair -> "pair"
| `TKey -> "key"
| `TLambda -> "lambda"
| `TUnion -> "union"
| `TOperatio... | 33.262821 | 79 | 0.661014 |
8a09aacb842529cf2f66f2acbb712eb2df994fb0 | 106 | ml | OCaml | data/derived/comb/progs/unify/prog2778.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/prog2778.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2778.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs =
let f a x a d = x a in let base d = d in List.fold_left f base fs;;
let _ = pipe [] 3;;
| 17.666667 | 69 | 0.575472 |
afe725f047973644454a041a11901d851f220f87 | 5,747 | mli | OCaml | external/fixpoint/fixConstraint.mli | abakst/liquid-fixpoint | 1a9e1aa1d073e4a42cb69f9f5ec46a19d13db2eb | [
"BSD-3-Clause"
] | null | null | null | external/fixpoint/fixConstraint.mli | abakst/liquid-fixpoint | 1a9e1aa1d073e4a42cb69f9f5ec46a19d13db2eb | [
"BSD-3-Clause"
] | null | null | null | external/fixpoint/fixConstraint.mli | abakst/liquid-fixpoint | 1a9e1aa1d073e4a42cb69f9f5ec46a19d13db2eb | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright © 2009 The Regents of the University of California. All rights reserved.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copyr... | 40.188811 | 89 | 0.63929 |
8a6fe5c75375dbf307e7d248be67a74b3feae4c7 | 1,026 | ml | OCaml | lib/measurement_raw.ml | lyrm/bechamel | 941676f2a91ff5990a98aaa7fe97d1099523e828 | [
"MIT"
] | 16 | 2021-01-07T11:24:13.000Z | 2022-02-28T09:00:20.000Z | lib/measurement_raw.ml | lyrm/bechamel | 941676f2a91ff5990a98aaa7fe97d1099523e828 | [
"MIT"
] | 8 | 2021-03-03T16:09:26.000Z | 2022-02-13T18:01:47.000Z | lib/measurement_raw.ml | lyrm/bechamel | 941676f2a91ff5990a98aaa7fe97d1099523e828 | [
"MIT"
] | 5 | 2021-09-26T11:39:11.000Z | 2022-03-30T12:06:51.000Z | type t = { run : float; measures : float array; labels : string array }
let make ~measures ~labels run =
if Array.length measures <> Array.length labels
then invalid_arg "Measures and labels differ"
else { run; measures; labels }
exception Find
let get_index ~label m =
let i0 = ref 0 in
try
while !i0 <... | 22.8 | 71 | 0.620858 |
8ad4f543f9c30ca1676449b3b11ff9ca5cfb328a | 20,079 | ml | OCaml | lib/js/menu_surface.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | 1 | 2020-05-04T15:49:02.000Z | 2020-05-04T15:49:02.000Z | lib/js/menu_surface.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | null | null | null | lib/js/menu_surface.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | 1 | 2020-05-04T15:49:06.000Z | 2020-05-04T15:49:06.000Z | open Js_of_ocaml
open Js_of_ocaml_tyxml
include Components_tyxml.Menu_surface
module D = Make (Tyxml_js.Xml) (Tyxml_js.Svg) (Tyxml_js.Html)
module R = Make (Tyxml_js.R.Xml) (Tyxml_js.R.Svg) (Tyxml_js.R.Html)
let ( >>= ) = Lwt.bind
let transform_prop_name = ref None
let px_js v = Js.string @@ Printf.sprintf "%dpx" v
... | 33.80303 | 89 | 0.629464 |
af8b31c5bd0810778e8be0066d4096b57e646df3 | 4,241 | ml | OCaml | src/lib/codegen.ml | DasNaCl/toadml | 5e5446668d3d85087d32a5b99287c65f2d2b3573 | [
"Apache-2.0"
] | 8 | 2022-03-05T13:49:31.000Z | 2022-03-28T12:56:06.000Z | src/lib/codegen.ml | DasNaCl/toadml | 5e5446668d3d85087d32a5b99287c65f2d2b3573 | [
"Apache-2.0"
] | null | null | null | src/lib/codegen.ml | DasNaCl/toadml | 5e5446668d3d85087d32a5b99287c65f2d2b3573 | [
"Apache-2.0"
] | null | null | null | let boilerplate x stack_size = {|
.text
.global _start
get:
push %rbp
mov %rsp, %rbp
mov $42, %rax
leave
ret
_start:
mov %rsp, %rbp
add $-|} ^ string_of_int stack_size ^ {|, %rsp
jmp main
|} ^ x ^ {|
_final:
mov $60, %rax
syscall
|}
type offset = int
type context = (string * offset) list
let loo... | 31.887218 | 123 | 0.46074 |
8a33384765f820fc08fd1cea3427e598b1c37de8 | 13,890 | mli | OCaml | infer/src/base/Config.mli | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | 1 | 2019-09-11T13:16:25.000Z | 2019-09-11T13:16:25.000Z | infer/src/base/Config.mli | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | null | null | null | infer/src/base/Config.mli | aspirin0109/infer | d397ea03d15c90394138d7227237e4990f745c8e | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Configuration values: either constant, determined at compile time, or se... | 18.569519 | 97 | 0.790209 |
8aa1c382f8ee64dde385c39fe483707fc93c4098 | 7,443 | ml | OCaml | parser/qd_based/Wasm_Parse_Opt_datasec.ml | secure-foundations/vWasm | 6d9340c94cf0aa39be4173051fc8eeea373bd183 | [
"BSD-3-Clause"
] | null | null | null | parser/qd_based/Wasm_Parse_Opt_datasec.ml | secure-foundations/vWasm | 6d9340c94cf0aa39be4173051fc8eeea373bd183 | [
"BSD-3-Clause"
] | null | null | null | parser/qd_based/Wasm_Parse_Opt_datasec.ml | secure-foundations/vWasm | 6d9340c94cf0aa39be4173051fc8eeea373bd183 | [
"BSD-3-Clause"
] | null | null | null | open Prims
type opt_datasec =
| X_absent of unit
| X_present of Wasm_Parse_Datasec.datasec
let (uu___is_X_absent : opt_datasec -> Prims.bool) =
fun projectee ->
match projectee with | X_absent _0 -> true | uu___ -> false
let (uu___is_X_present : opt_datasec -> Prims.bool) =
fun projectee ->
match pro... | 40.451087 | 78 | 0.62542 |
440af38b37482b2d6b6dcd2d4101f357360a28fe | 2,207 | ml | OCaml | data/fa15/repaired/rite/0009.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/repaired/rite/0009.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15/repaired/rite/0009.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 listZeros =
clone numZeros numZeros in
if numZeros > 0
then [(l1 , listZero... | 20.820755 | 79 | 0.502945 |
8aee30f9377f0b6eac560582c4a5270c7f04cc4a | 1,602 | ml | OCaml | examples/mnist/linear.ml | rchavezj/ocaml-torch | 321b172696897ff717e5d07b87c332b8c5535908 | [
"Apache-2.0"
] | 1 | 2019-07-04T16:21:29.000Z | 2019-07-04T16:21:29.000Z | examples/mnist/linear.ml | rchavezj/ocaml-torch | 321b172696897ff717e5d07b87c332b8c5535908 | [
"Apache-2.0"
] | null | null | null | examples/mnist/linear.ml | rchavezj/ocaml-torch | 321b172696897ff717e5d07b87c332b8c5535908 | [
"Apache-2.0"
] | null | null | null | (* Linear model for the MNIST dataset.
The 4 following dataset files can be downloaded from http://yann.lecun.com/exdb/mnist/
These files should be extracted in the 'data' directory.
train-images-idx3-ubyte.gz
train-labels-idx1-ubyte.gz
t10k-images-idx3-ubyte.gz
t10k-labels-idx1-ubyte.gz
T... | 33.375 | 89 | 0.665418 |
afcba189ef4f79d2be67e151b973d4cd8d6fc75d | 2,475 | ml | OCaml | extraction/ergoc.ml | tbrooke/ergo | d04622ccca0a2e379303e9edc845a2dba56d7469 | [
"Apache-2.0"
] | null | null | null | extraction/ergoc.ml | tbrooke/ergo | d04622ccca0a2e379303e9edc845a2dba56d7469 | [
"Apache-2.0"
] | null | null | null | extraction/ergoc.ml | tbrooke/ergo | d04622ccca0a2e379303e9edc845a2dba56d7469 | [
"Apache-2.0"
] | null | null | null | (*
* 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 by applicable law or agreed to in writing, software
* distributed u... | 33 | 77 | 0.694141 |
8a3c67ebf4a46d85d006b22065c8112bf6498c17 | 328 | mli | OCaml | src/thread_worker/thread_worker.mli | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | src/thread_worker/thread_worker.mli | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | src/thread_worker/thread_worker.mli | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | (** A system thread used to execute blocking functions asynchronously *)
type t
(** Spawn a new worker thread *)
val create : spawn_thread:((unit -> unit) -> unit) -> t
(** [add_work t ~f] add the work of running [f] to this worker *)
val add_work : t -> f:(unit -> unit) -> (unit, [ `Stopped ]) result
val stop : t ... | 27.333333 | 72 | 0.637195 |
8ad2ceb3d51a7d3af33086acba55bc89adf681f2 | 3,459 | ml | OCaml | bin/main.ml | omstrumpf/photo_archiver | 2b87b31548a4e4a49c67061e71260fcd313a3bd5 | [
"MIT"
] | null | null | null | bin/main.ml | omstrumpf/photo_archiver | 2b87b31548a4e4a49c67061e71260fcd313a3bd5 | [
"MIT"
] | null | null | null | bin/main.ml | omstrumpf/photo_archiver | 2b87b31548a4e4a49c67061e71260fcd313a3bd5 | [
"MIT"
] | null | null | null | open! Core
open! Async
let log_param =
let%map_open.Command () = Log.Global.set_level_via_param ()
and log_file =
flag "-log-file" (optional Filename.arg_type) ~doc:"FILE write logs to FILE"
in
match log_file with
| None -> ()
| Some filename -> Log.Global.set_output [ Log.Output.file `Sexp_hum ~filena... | 31.162162 | 90 | 0.682278 |
8ab14bbf5cd1970ff0169fb23974ec10617cdfa1 | 16,717 | ml | OCaml | geas/fzn/polarity.ml | AppleGamer22/FIT2082 | 298459dbfdb158bdd4e6d8428e6c958d186fdb20 | [
"MIT"
] | 3 | 2021-09-29T08:06:31.000Z | 2022-03-25T10:24:54.000Z | geas/fzn/polarity.ml | AppleGamer22/FIT2082 | 298459dbfdb158bdd4e6d8428e6c958d186fdb20 | [
"MIT"
] | null | null | null | geas/fzn/polarity.ml | AppleGamer22/FIT2082 | 298459dbfdb158bdd4e6d8428e6c958d186fdb20 | [
"MIT"
] | null | null | null | (** Module for inferring polarity information *)
module U = Util
module H = Hashtbl
module HS = Util.HashSet
module Dy = DynArray
module Ar = Array
module Pr = Problem
module S = Simplify
let print_warning = Format.fprintf Format.err_formatter
type vref =
| Int of Pr.ival_id
| Bool of Pr.bval_id
type polarity =
... | 34.186094 | 105 | 0.588323 |
af4b620e1092f27bd58d7c8e1aec85421075b6f9 | 15,922 | ml | OCaml | src/ast/analyzing/langs/python/parsing/src/printer.ml | mstmhsmt/cca | 0dc69b0f0da1def4e8404e5f7b7fe35b6ac3198a | [
"Apache-2.0"
] | null | null | null | src/ast/analyzing/langs/python/parsing/src/printer.ml | mstmhsmt/cca | 0dc69b0f0da1def4e8404e5f7b7fe35b6ac3198a | [
"Apache-2.0"
] | null | null | null | src/ast/analyzing/langs/python/parsing/src/printer.ml | mstmhsmt/cca | 0dc69b0f0da1def4e8404e5f7b7fe35b6ac3198a | [
"Apache-2.0"
] | null | null | null | (*
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... | 26.986441 | 95 | 0.624482 |
8aaf46799d9973132415093dda8898761c696265 | 980 | ml | OCaml | src/type.ml | kit-ty-kate/binaryen.ml | 230840090d1eac7f6a07f64413ce7ac7d6cc9419 | [
"Apache-2.0"
] | null | null | null | src/type.ml | kit-ty-kate/binaryen.ml | 230840090d1eac7f6a07f64413ce7ac7d6cc9419 | [
"Apache-2.0"
] | null | null | null | src/type.ml | kit-ty-kate/binaryen.ml | 230840090d1eac7f6a07f64413ce7ac7d6cc9419 | [
"Apache-2.0"
] | null | null | null | type t
external none : unit -> t = "caml_binaryen_type_none"
let none = none ()
external int32 : unit -> t = "caml_binaryen_type_int32"
let int32 = int32 ()
external int64 : unit -> t = "caml_binaryen_type_int64"
let int64 = int64 ()
external float32 : unit -> t = "caml_binaryen_type_float32"
let float32 = floa... | 21.777778 | 67 | 0.721429 |
8a7d7cc205b1e2176f7b696bbb0cc5c63a48bf55 | 147 | ml | OCaml | benchmarks/sigma/sigma1/submissions/sub208.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/sigma/sigma1/submissions/sub208.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/sigma/sigma1/submissions/sub208.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec sigma : int*int*(int->int) -> int =
fun (a,b,f)->
if a=b then f a
else if a>b then 0
else (f a)+(sigma ((a+1),b,f))
| 21 | 43 | 0.47619 |
af9ed62ed9d476a22d30d6153e0c7541153c4085 | 6,796 | ml | OCaml | data/derived/comb/progs/unify/prog1042.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/prog1042.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1042.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList (l : int list): int =
match l with
[] -> 0
| hd::tl -> hd + (sumList tl)
failwith "TBD:sumList"
;;
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let _ = sumList [1; 2; 3; 4... | 24.534296 | 94 | 0.634932 |
8a922b711497057bc96eae06b86306543589c3e8 | 843 | mli | OCaml | src/many_getter.mli | janestreet/accessor | fa4bdf1b7853f894d5c239b557af32de575b12e3 | [
"MIT"
] | 32 | 2020-02-17T14:38:15.000Z | 2022-02-02T20:16:11.000Z | src/many_getter.mli | janestreet/accessor | fa4bdf1b7853f894d5c239b557af32de575b12e3 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/many_getter.mli | janestreet/accessor | fa4bdf1b7853f894d5c239b557af32de575b12e3 | [
"MIT"
] | 3 | 2020-02-28T17:58:18.000Z | 2021-12-17T02:53:34.000Z | open! Base
open! Import
(** [t] is an appendable type for defining [many_getter] accessors. See the documentation
of [Accessor.many_getter] for more information. *)
type +'a t
include Monad.S with type 'a t := 'a t
(** [access a] "accesses" [a]. *)
val access : 'a -> 'a t
(** Don't access anything. *)
val empty... | 25.545455 | 89 | 0.600237 |
8af1c15e9a138f8152c85f51df3d2537719b4f56 | 6,366 | ml | OCaml | src/fixAstInterface.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | null | null | null | src/fixAstInterface.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | 1 | 2018-04-24T10:43:07.000Z | 2018-04-24T10:43:07.000Z | src/fixAstInterface.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright © 1990-2009 The Regents of the University of California. All rights reserved.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above ... | 32.984456 | 105 | 0.609488 |
8aa28969d2b08d737cabbc48d2cf1b3425b63b4f | 1,784 | ml | OCaml | libraries/route53/lib/testDNSAnswer.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/route53/lib/testDNSAnswer.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/route53/lib/testDNSAnswer.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = TestDNSAnswerRequest.t
type output = TestDNSAnswerResponse.t
type error = Errors_internal.t
let service = "route53"
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.u... | 30.758621 | 95 | 0.575673 |
8a73219dd74efb078e8d765c049ee08653287b34 | 2,007 | ml | OCaml | src/passes/09.5-inference/pretty_print_variables.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | src/passes/09.5-inference/pretty_print_variables.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | src/passes/09.5-inference/pretty_print_variables.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | module Pair = Simple_utils.Pair
module Var = Simple_utils.Var
let global_mutable_pending_prints : (unit -> unit) list ref = ref []
let queue_print (print_thunk : unit -> unit) = global_mutable_pending_prints := print_thunk :: !global_mutable_pending_prints
let rec number_to_letters_ : int -> string = fun n ->
let... | 47.785714 | 305 | 0.624813 |
af3f27d50a8b96a793b2d310a4fae56198016786 | 160 | mli | OCaml | src/dune_engine/print_diff.mli | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | src/dune_engine/print_diff.mli | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | src/dune_engine/print_diff.mli | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | open! Stdune
(** Diff two files that are expected not to match. *)
val print :
?skip_trailing_cr:bool -> User_error.Annot.t -> Path.t -> Path.t -> _ Fiber.t
| 26.666667 | 79 | 0.675 |
8ad171aca5725d088807f0ff1d4879835d108fbc | 109 | mli | OCaml | src/gen.mli | strojacek/nqcc-144 | c30e4c33ec7adfe9710edb948cda380b1fc01715 | [
"MIT"
] | 222 | 2017-11-16T02:29:35.000Z | 2022-03-30T10:44:02.000Z | src/gen.mli | strojacek/nqcc-144 | c30e4c33ec7adfe9710edb948cda380b1fc01715 | [
"MIT"
] | 11 | 2017-12-03T02:15:20.000Z | 2020-05-16T08:14:19.000Z | src/gen.mli | strojacek/nqcc-144 | c30e4c33ec7adfe9710edb948cda380b1fc01715 | [
"MIT"
] | 18 | 2018-02-22T02:27:47.000Z | 2022-03-22T05:08:02.000Z | (** Given filename 'file.c' and AST, write assembly to 'file.s' **)
val generate : string -> Ast.prog -> unit | 54.5 | 67 | 0.66055 |
8aa193149618db3ad549d62a3cdce01919f3b926 | 1,283 | ml | OCaml | lib/omigrate/source.ml | tmattio/omigrate | 2b5b16aa2c33b2beea6e3478272aeb3f36c6b197 | [
"MIT"
] | 26 | 2020-05-24T18:51:11.000Z | 2021-11-03T08:31:32.000Z | lib/omigrate/source.ml | tmattio/omigrate | 2b5b16aa2c33b2beea6e3478272aeb3f36c6b197 | [
"MIT"
] | 1 | 2021-11-02T06:57:11.000Z | 2021-11-02T06:57:11.000Z | lib/omigrate/source.ml | tmattio/omigrate | 2b5b16aa2c33b2beea6e3478272aeb3f36c6b197 | [
"MIT"
] | 1 | 2021-10-20T08:57:34.000Z | 2021-10-20T08:57:34.000Z | type t = Local_dir of string
module Local_dir = struct
let migration_of_file f =
let basename = Filename.basename f in
match String.split_on_char basename ~sep:'_' with
| hd :: _ ->
let version = hd in
let rest =
String.sub
basename
~pos:(String.length hd + 1)
... | 28.511111 | 80 | 0.603274 |
8aec1057ec70da8d155aa2958d90005b6a2d5c61 | 21,214 | ml | OCaml | src/lib_crypto/signature.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_crypto/signature.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_crypto/signature.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 33.834131 | 102 | 0.643962 |
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.