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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3c0f9b014109de5e96ccd13a49abba7fa817f2d | 1,018 | mli | OCaml | src/lib/coda_base/payment_payload.mli | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2022-03-21T15:43:42.000Z | 2022-03-21T15:43:42.000Z | src/lib/coda_base/payment_payload.mli | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/payment_payload.mli | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | open Core
open Fold_lib
open Tuple_lib
open Coda_numbers
open Snark_params.Tick
open Sha256_lib
open Import
type ('pk, 'amount) t_ = {receiver: 'pk; amount: 'amount}
[@@deriving bin_io, eq, sexp, hash, yojson]
type t = (Public_key.Compressed.t, Currency.Amount.t) t_
[@@deriving bin_io, eq, sexp, hash, yojson]
val du... | 23.136364 | 73 | 0.687623 |
f3c5c8e93bba794240bb30290d806357618d567a | 1,614 | mli | OCaml | src/parser/loc.mli | Sam9799/flow | 3255fc9ed24e0913923459cad3392339757b6472 | [
"MIT"
] | null | null | null | src/parser/loc.mli | Sam9799/flow | 3255fc9ed24e0913923459cad3392339757b6472 | [
"MIT"
] | null | null | null | src/parser/loc.mli | Sam9799/flow | 3255fc9ed24e0913923459cad3392339757b6472 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type position = {
line: int;
column: int;
}
[@@deriving show]
type t = {
source: File_key.t option;
start: position;
_en... | 24.830769 | 83 | 0.668525 |
afa65197deb9cf58ff210f767c6fe6d1af978eb0 | 521 | ml | OCaml | test/test_bandersnatch_affine_montgomery.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | 1 | 2022-02-01T11:14:20.000Z | 2022-02-01T11:14:20.000Z | test/test_bandersnatch_affine_montgomery.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | null | null | null | test/test_bandersnatch_affine_montgomery.ml | dannywillems/ocaml-ec | 82bcddc87459a86d032549e75a9098ac7276de7c | [
"MIT"
] | null | null | null | module ValueGeneration =
Mec.Curve.Utils.PBT.MakeValueGeneration
(Mec.Curve.Bandersnatch.AffineMontgomery)
module Equality =
Mec.Curve.Utils.PBT.MakeEquality (Mec.Curve.Bandersnatch.AffineMontgomery)
module Properties =
Mec.Curve.Utils.PBT.MakeECProperties (Mec.Curve.Bandersnatch.AffineMontgomery)
let () =
... | 30.647059 | 80 | 0.756238 |
af5d21e5d6bd8fe8cbfd09099d049aac13587e3a | 575 | ml | OCaml | data/derived/comb/progs/unify/prog6854.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/prog2038.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2038.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
(((clone 0 ((List.length l2) - (List.length l1))) @ l1),
((clone 0 ((List.length l1) - (List.length l2))) @ l2));;
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then removeZero t else h :: t;;
let big... | 31.944444 | 76 | 0.551304 |
af6f3268a1ad90023282b208f2c298f35a6fa1a1 | 3,768 | mli | OCaml | src/program/intraCfg.mli | prosyslab/sparrow | a525084b22ae45b63f1a1d6b451924e34d34213b | [
"BSD-3-Clause"
] | null | null | null | src/program/intraCfg.mli | prosyslab/sparrow | a525084b22ae45b63f1a1d6b451924e34d34213b | [
"BSD-3-Clause"
] | 8 | 2020-03-19T10:21:01.000Z | 2020-08-20T14:02:06.000Z | src/program/intraCfg.mli | prosyslab/sparrow | a525084b22ae45b63f1a1d6b451924e34d34213b | [
"BSD-3-Clause"
] | 2 | 2020-03-11T10:07:41.000Z | 2020-04-23T02:06:00.000Z | (***********************************************************************)
(* *)
(* Copyright (c) 2007-present. *)
(* Programming Research Laboratory (ROPAS), Seoul National University. *)
(* All rights reserved. ... | 24.789474 | 76 | 0.545382 |
af9a85cf788d7f49def67a9586c47470170f60ce | 184 | ml | OCaml | benchmarks/I/iter/sub36.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/I/iter/sub36.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/I/iter/sub36.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec iter : int * (int -> int) -> (int -> int)
= fun (n,f) ->
let rec compose f g = fun x ->f(g(x)) in
if n<2 then f else compose f (iter(n-1,f));;
iter(15,fun x->x+2) 0;;
| 26.285714 | 49 | 0.516304 |
af9cac6a4e783884c8b54d45aa0fc583860d2868 | 10,463 | ml | OCaml | infer/src/IR/Pvar.ml | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"MIT"
] | null | null | null | infer/src/IR/Pvar.ml | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"MIT"
] | null | null | null | infer/src/IR/Pvar.ml | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"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.
*)
(** The Smallfoot Intermediate Language *)
open! IStd
module L = Logging
module F = For... | 34.19281 | 100 | 0.691962 |
afa60ec3b809ae849b92c12504db04bb9ba8a203 | 1,040 | ml | OCaml | test/unit/fixtures/instrument/function.reference.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/function.reference.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/function.reference.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | [@@@ocaml.text "/*"]
module Bisect_visit___function___ml =
struct
let ___bisect_visit___ =
let point_definitions =
"\132\149\166\190\000\000\000\"\000\000\000\b\000\000\000\029\000\000\000\029\240\160\000T@\160\000aA\160\001\000\166B\160\001\000\179C\160\001\000\228D\160\001\000\233E\160\001\000\246... | 32.5 | 198 | 0.610577 |
af39ef9b77e8656c97a013f657de5da26014d7e4 | 3,298 | mli | OCaml | internal/lib/command.mli | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | internal/lib/command.mli | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | internal/lib/command.mli | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | 39 | 2016-12-14T23:10:34.000Z | 2022-03-22T21:35:17.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 42.831169 | 86 | 0.570952 |
af03c37b18ad54216aefa15e3df171acc374bd71 | 1,319 | ml | OCaml | test/runner.ml | cyrus-/relit | 7eb8dcb1d76044d92bbf070a08f8fdcc7df38089 | [
"MIT"
] | 202 | 2018-05-14T23:48:33.000Z | 2022-03-15T15:38:09.000Z | test/runner.ml | cyrus-/relit | 7eb8dcb1d76044d92bbf070a08f8fdcc7df38089 | [
"MIT"
] | 15 | 2018-05-28T15:41:42.000Z | 2019-04-27T18:57:22.000Z | test/runner.ml | cyrus-/relit | 7eb8dcb1d76044d92bbf070a08f8fdcc7df38089 | [
"MIT"
] | 3 | 2018-11-25T13:55:26.000Z | 2018-12-21T01:22:31.000Z | let write_to_file ~file ~text =
let c = open_out file in
Printf.fprintf c "%s" text;
close_out c
let with_process cmd lambda =
let p = Unix.open_process_in cmd in
let out = lambda p in
Unix.close_process_in p |> ignore;
out
let line_stream_of_channel channel =
Stream.from (fun _ -> try Some (input_lin... | 29.977273 | 83 | 0.69674 |
f3520ab414d303460e3fa05f457587e9cdda4292 | 30,537 | ml | OCaml | gen/top_gen.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | gen/top_gen.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | gen/top_gen.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* The diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 32.314286 | 90 | 0.513181 |
af8e3f1fa2a4fd1d5da7d180dbdd9ac4fa6c93ef | 68,103 | ml | OCaml | src/parser_utils/flow_ast_mapper.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"MIT"
] | null | null | null | src/parser_utils/flow_ast_mapper.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"MIT"
] | null | null | null | src/parser_utils/flow_ast_mapper.ml | oonsamyi/flow | 9739400610f400ed50b6b921a79642563642b7fe | [
"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
let map_opt: 'node. ('node -> 'node) -> 'node option -> 'node option =
fun map opt ->
match opt with
... | 44.222727 | 117 | 0.674904 |
f36c50e40840755e7c6fb408988dca43e18d7675 | 12,056 | ml | OCaml | src/test/multisig_v2_tests.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/test/multisig_v2_tests.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/test/multisig_v2_tests.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | module Var = Simple_utils.Var
open Test_helpers
let get_program = get_program "./contracts/multisig-v2.ligo" (Contract (Stage_common.Var.of_input_var "main"))
let compile_main ~raise ~add_warning () =
Test_helpers.compile_main ~raise ~add_warning "./contracts/multisig-v2.ligo" ()
open Ast_imperative
let empty_op_... | 46.548263 | 121 | 0.678915 |
afce9dba537f3afbe58a15375f69e4ba2d453903 | 36,938 | ml | OCaml | hphp/hack/src/client/clientCheck.ml | umanda/hhvm | 4ae8526da6ac1eb475fa1e021e0207d7c064a4cd | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/client/clientCheck.ml | cs-joy/hhvm | fcdbf247527cc38186691653dac9b675fb69a5a8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientCheck.ml | cs-joy/hhvm | fcdbf247527cc38186691653dac9b675fb69a5a8 | [
"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 ClientEnv
open Utils
open ClientRefactor
open Ocaml_overrides
module Rpc = ServerCommandTypes
m... | 36.717694 | 120 | 0.635172 |
af28e415743df26ca4f23ce175901cd0f1b6c962 | 611 | ml | OCaml | src/ocaml/dhclient_signal.ml | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | src/ocaml/dhclient_signal.ml | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | src/ocaml/dhclient_signal.ml | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z | (* Sends a signal based on first argument ("SIGUSR1"|"SIGUSR2"|"SIGHUP")
* to the process whose pid is found in
* /var/run/l2tpgw/l2tpgw-runner.pid if any. *)
exception InvalidArgument;;
let send_signal signal =
let buf = Scanf.Scanning.from_file "/var/run/l2tpgw/l2tpgw-runner.pid" in
let kill pid = Unix.... | 33.944444 | 75 | 0.715221 |
af032ee4e465ee86f7ea2a60319400a9a7ddc47e | 10,067 | ml | OCaml | ocaml/pa_coq.ml | roglo/puiseuxth | 7caa78c5c969e3d881b06f6dbc3b3f9da7545471 | [
"CECILL-B"
] | 3 | 2017-05-02T16:04:21.000Z | 2017-10-20T17:13:34.000Z | ocaml/pa_coq.ml | roglo/puiseuxth | 7caa78c5c969e3d881b06f6dbc3b3f9da7545471 | [
"CECILL-B"
] | null | null | null | ocaml/pa_coq.ml | roglo/puiseuxth | 7caa78c5c969e3d881b06f6dbc3b3f9da7545471 | [
"CECILL-B"
] | null | null | null | (* $Id: pa_coq.ml,v 1.60 2013-10-11 12:27:21 deraugla Exp $ *)
#load "pa_extend.cmo";
#load "q_MLast.cmo";
open Pcaml;
value fun_decl_of_label (loc, i, _, _) =
<:str_item< value $lid:i$ x = x.$lid:i$ >>
;
value rec generalized_type_of_type =
fun
[ <:ctyp< $t1$ -> $t2$ >> ->
let (tl, rt) = generalized_ty... | 29.96131 | 78 | 0.416013 |
afc99c846856962329c57cc194be747f3759e0b2 | 2,157 | ml | OCaml | hg/std.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | hg/std.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | hg/std.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | open! Core
open! Import
module Attributed_file = Attributed_file
module Brain = Brain
module Catch_up_session = Catch_up_session
module Compilation_status = Hydra_state_for_bookmark.Compilation_status
module Cr_comment = Cr_comment
module... | 50.162791 | 88 | 0.612888 |
f3c8408e36216f2aedece77f48d78022f855404e | 22,751 | ml | OCaml | src/modules.ml | sylvarant/moduleml-witness-algorithm | 7a5307c293524ad3fae14dc123b7b48d61553e47 | [
"Artistic-2.0"
] | 3 | 2015-09-02T22:37:05.000Z | 2015-10-24T11:14:25.000Z | src/modules.ml | sylvarant/moduleml-witness-algorithm | 7a5307c293524ad3fae14dc123b7b48d61553e47 | [
"Artistic-2.0"
] | null | null | null | src/modules.ml | sylvarant/moduleml-witness-algorithm | 7a5307c293524ad3fae14dc123b7b48d61553e47 | [
"Artistic-2.0"
] | null | null | null | (* A modular module system.
The type-checker for the language-independent module system.
Copyright 1999 Xavier Leroy.
This file is distributed under the GNU Public Licence. *)
exception Error of string
let error s = raise(Error s)
(* Section 2.1: Identifiers *)
module type IDENT =
sig
type t
... | 38.890598 | 88 | 0.582788 |
afd0a4db3c99c762ac3e66efd078d9fd4a86c792 | 8,323 | ml | OCaml | data/derived/comb/progs/unify/prog1729.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/prog1729.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1729.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.591054 | 148 | 0.638832 |
f3e9ebcf714583d9c673d471d4c051b88d2767ba | 86 | ml | OCaml | codegen/testdata/arrstore_bug.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 770 | 2017-01-25T13:29:15.000Z | 2022-03-28T01:11:57.000Z | codegen/testdata/arrstore_bug.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 22 | 2017-02-21T03:01:15.000Z | 2020-02-27T15:56:40.000Z | codegen/testdata/arrstore_bug.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 37 | 2017-02-26T07:22:24.000Z | 2022-03-27T18:26:14.000Z | let arr = Array.make 1 0 in
let rec f x =
arr.(0) <- 42
in
f 0;
print_int arr.(0)
| 12.285714 | 27 | 0.581395 |
af24fb79b52c0e53555835b212391a67bbe01b43 | 174 | ml | OCaml | src/types.ml | brendanlong/ocaml-postgres-protocol | cb28520dd857602b7b55b1354b2cf1e784c56da7 | [
"Unlicense"
] | null | null | null | src/types.ml | brendanlong/ocaml-postgres-protocol | cb28520dd857602b7b55b1354b2cf1e784c56da7 | [
"Unlicense"
] | null | null | null | src/types.ml | brendanlong/ocaml-postgres-protocol | cb28520dd857602b7b55b1354b2cf1e784c56da7 | [
"Unlicense"
] | null | null | null | open Angstrom
let any_null_terminated_string : string t =
take_while (function
| '\x00' -> false
| _ -> true)
>>= fun str -> char '\x00' >>| fun _ -> str
;;
| 19.333333 | 45 | 0.568966 |
afcf557e2d6b246cff226ae3987744c5e51a823e | 22,908 | ml | OCaml | src/domains/printable.ml | MartinSpiessl/analyzer | aad69262820ebf812b3e2e8ff12d1aede4c2c8fa | [
"MIT"
] | null | null | null | src/domains/printable.ml | MartinSpiessl/analyzer | aad69262820ebf812b3e2e8ff12d1aede4c2c8fa | [
"MIT"
] | null | null | null | src/domains/printable.ml | MartinSpiessl/analyzer | aad69262820ebf812b3e2e8ff12d1aede4c2c8fa | [
"MIT"
] | null | null | null | (** Some things are not quite lattices ... *)
open Pretty
type json = Yojson.Safe.t
let json_to_yojson x = x
module type S =
sig
type t
val equal: t -> t -> bool
val hash: t -> int
val compare: t -> t -> int
val short: int -> t -> string
val isSimple: t -> bool
val pretty: unit -> t -> doc
val pretty... | 31.467033 | 285 | 0.60014 |
afb61e6b71a0a71791eae01d0ff31d05f02b5464 | 8,496 | ml | OCaml | switch/q.ml | lippirk/message-switch | 8526c8f150d5a0c1db32e4fc63dc23e1c7c1d088 | [
"0BSD"
] | 6 | 2015-05-09T18:10:05.000Z | 2022-02-04T19:09:55.000Z | switch/q.ml | lippirk/message-switch | 8526c8f150d5a0c1db32e4fc63dc23e1c7c1d088 | [
"0BSD"
] | 35 | 2015-04-08T10:32:16.000Z | 2021-11-05T15:17:13.000Z | switch/q.ml | lippirk/message-switch | 8526c8f150d5a0c1db32e4fc63dc23e1c7c1d088 | [
"0BSD"
] | 21 | 2015-06-17T13:55:18.000Z | 2022-02-04T19:13:23.000Z | (*
* Copyright (c) Citrix Systems Inc.
*
* 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" AND THE AUTHOR DISCLAI... | 27.584416 | 81 | 0.645127 |
afb87b7cecb17477d4aae31d81939dac6ff567f1 | 2,253 | ml | OCaml | eval/sherrloc/easyocaml++/camlp4/Camlp4Filters/Camlp4Tracer.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/camlp4/Camlp4Filters/Camlp4Tracer.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/camlp4/Camlp4Filters/Camlp4Tracer.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (* camlp4r *)
(****************************************************************************)
(* *)
(* Objective Caml *)
(* ... | 38.186441 | 86 | 0.4332 |
af956d5683fe873af18a03a10582ad333d83afce | 8,933 | ml | OCaml | src/utils.ml | aantron/soupault | ef003748b9da4ce9d0deafed6c58da6b537549ee | [
"MIT"
] | null | null | null | src/utils.ml | aantron/soupault | ef003748b9da4ce9d0deafed6c58da6b537549ee | [
"MIT"
] | null | null | null | src/utils.ml | aantron/soupault | ef003748b9da4ce9d0deafed6c58da6b537549ee | [
"MIT"
] | null | null | null | include Soupault_common
type process_result = Output of string | ExecutionError of (((Unix.process_status, string) result) * string * string)
(** Reads a file and return its content *)
let get_file_content file =
try Ok (Soup.read_file file)
with Sys_error msg -> Error msg
(* Result wrapper for FileUtil.cp *)
le... | 35.3083 | 129 | 0.668085 |
af4d2995a3f20b69729d74450f57135aae21e15f | 370 | mli | OCaml | interprocedural/callResolution.mli | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | null | null | null | interprocedural/callResolution.mli | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | null | null | null | interprocedural/callResolution.mli | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"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.
*)
val is_local : Ast.Identifier.t -> bool
(* Evaluates to the representation of literal strings, integers and enums. *)
val extract_... | 30.833333 | 77 | 0.737838 |
af2cd4e50edc38af7defa98a6b1efbb9291a0a47 | 693 | mli | OCaml | lib/encoder.mli | reynir/cri | e720587814f5c01dafa0322c873dd33fe8dccbb7 | [
"MIT"
] | 23 | 2021-05-25T09:45:46.000Z | 2021-08-24T18:59:09.000Z | lib/encoder.mli | reynir/cri | e720587814f5c01dafa0322c873dd33fe8dccbb7 | [
"MIT"
] | 1 | 2021-07-26T08:53:39.000Z | 2021-07-26T08:53:39.000Z | lib/encoder.mli | reynir/cri | e720587814f5c01dafa0322c873dd33fe8dccbb7 | [
"MIT"
] | 1 | 2021-06-18T07:39:23.000Z | 2021-06-18T07:39:23.000Z | type error = [ `No_enough_space ]
val pp_error : error Fmt.t
type encoder
type 'err state =
| Write of { buffer : string; off : int; len : int; continue : int -> 'err state; }
| Error of 'err
| Done
val encoder : unit -> encoder
val flush : (unit -> ([> error ] as 'err) state) -> encoder -> 'err state
val wri... | 26.653846 | 85 | 0.614719 |
afaf3e717f84913e442c87b7c35a2a635020d996 | 3,135 | ml | OCaml | 2A/S8/STDL/TPs/TP1/Ast.ml | MOUDDENEHamza/ENSEEIHT | a90b1dee0c8d18a9578153a357278d99405bb534 | [
"Apache-2.0"
] | 4 | 2020-05-02T12:32:32.000Z | 2022-01-12T20:20:35.000Z | 2A/S8/STDL/TPs/TP1/Ast.ml | MOUDDENEHamza/ENSEEIHT | a90b1dee0c8d18a9578153a357278d99405bb534 | [
"Apache-2.0"
] | 2 | 2021-01-14T20:03:26.000Z | 2022-01-30T01:10:00.000Z | 2A/S8/STDL/TPs/TP1/Ast.ml | MOUDDENEHamza/ENSEEIHT | a90b1dee0c8d18a9578153a357278d99405bb534 | [
"Apache-2.0"
] | 13 | 2020-11-11T21:28:11.000Z | 2022-02-19T13:54:22.000Z | (* Type des opérateurs binaires *)
type binary =
| Add
| Substract
| Or
| Multiply
| Divide
| And
| Equal
| Different
| Lesser
| LesserEqual
| Greater
| GreaterEqual
(* Type des opérateurs unaires *)
type unary =
| Opposite
| Negation
(* Type pour la construction de l'arbre a... | 31.666667 | 76 | 0.479426 |
d2ded3c1dbed057caa8788a14ae313b51ad3ef1d | 6,751 | ml | OCaml | src/main/api/run.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 1 | 2021-11-12T11:41:16.000Z | 2021-11-12T11:41:16.000Z | src/main/api/run.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | src/main/api/run.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | open Api_helpers
open Simple_utils
open Trace
module Compile = Ligo_compile
module Helpers = Ligo_compile.Helpers
module Run = Ligo_run.Of_michelson
let test source_file syntax steps infer protocol_version display_format =
Trace.warning_with @@ fun add_warning get_warnings ->
format_result ~display_format (L... | 72.591398 | 138 | 0.757369 |
afc590db6b6470c6df73c6e335224c66d61a9f67 | 3,427 | ml | OCaml | src/lib/network_peer/peer.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/lib/network_peer/peer.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | src/lib/network_peer/peer.ml | ansonla3/coda | 5b7b3a71f9b4fb55cb2c1af315b2510ac2c3c1dc | [
"Apache-2.0"
] | null | null | null | (* peer.ml -- peer with discovery port and communications port *)
open Core
open Module_version
module Stable = struct
module V1 = struct
module T = struct
type t =
{ host: Core.Unix.Inet_addr.Stable.V1.t (* IPv4 or IPv6 address *)
; discovery_port: int (* UDP *)
; communication_po... | 30.061404 | 78 | 0.646922 |
f3275a5722df9e3b7715a3bfe20ad8a978e909e0 | 386 | mli | OCaml | interfaces/4.08/complex.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2017-11-16T10:01:56.000Z | 2021-06-23T08:44:44.000Z | interfaces/4.08/complex.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 15 | 2018-04-21T13:49:52.000Z | 2022-02-16T11:19:38.000Z | interfaces/4.08/complex.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-04-23T18:10:00.000Z | 2021-12-14T14:31:22.000Z | type t = {
re: float ;
im: float }
val zero : t
val one : t
val i : t
val neg : t -> t
val conj : t -> t
val add : t -> t -> t
val sub : t -> t -> t
val mul : t -> t -> t
val inv : t -> t
val div : t -> t -> t
val sqrt : t -> t
val norm2 : t -> float
val norm : t -> float
val arg : t -> float
val polar : float -> f... | 17.545455 | 31 | 0.497409 |
f3e3e9a89a4308cf2dd151d58cc26bb990529762 | 24,372 | mli | OCaml | src/owl/stats/owl_stats.mli | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | src/owl/stats/owl_stats.mli | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | src/owl/stats/owl_stats.mli | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | (*
* OWL - an OCaml numerical library for scientific computing
* Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(**
Statistics: random number generators, PDF and CDF functions, and hypothesis
tests. The module also includes some basic statistical functions such as mean,
variance, skew, and etc.
*)... | 28.945368 | 111 | 0.644469 |
af4fe381496350a0775f5f491d0e04e0fe098979 | 3,649 | ml | OCaml | test/irmin-unix/test_unix.ml | gowthamk/irmin | 6fbb2c30afbf92280d1b47a84b5029f230d8f5ff | [
"ISC"
] | null | null | null | test/irmin-unix/test_unix.ml | gowthamk/irmin | 6fbb2c30afbf92280d1b47a84b5029f230d8f5ff | [
"ISC"
] | null | null | null | test/irmin-unix/test_unix.ml | gowthamk/irmin | 6fbb2c30afbf92280d1b47a84b5029f230d8f5ff | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 29.192 | 80 | 0.640723 |
af0efa7d2b5219537b30a44588132d4290df9569 | 303 | ml | OCaml | duniverse/bisect_ppx/test/unit/fixtures/instrument/expr_binding.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/bisect_ppx/test/unit/fixtures/instrument/expr_binding.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/bisect_ppx/test/unit/fixtures/instrument/expr_binding.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | let x = 3
let y = [1; 2; 3]
let z = [|1; 2; 3|]
let f x = print_endline x
let f' x =
let x' = String.uppercase x in
print_endline x'
let g x y z = (x + y) * z
let g' x y =
print_endline x;
print_endline y
let () =
let f _ = 0 in
let _g _ = 1 in
print_endline (string_of_int (f ()))
| 13.173913 | 38 | 0.561056 |
af3e62b2713a6750127bb94a9239b4885aa5bf16 | 6,119 | ml | OCaml | infer/src/backend/infer.ml | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 1 | 2017-09-14T09:03:44.000Z | 2017-09-14T09:03:44.000Z | infer/src/backend/infer.ml | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/infer.ml | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"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... | 39.993464 | 290 | 0.677235 |
f3efa2a0e0b58f815db7b3b2684f2352f452f349 | 126,375 | ml | OCaml | hphp/hack/src/typing/typing_subtype.ml | IceCruelStuff/hhvm | a951c9f704e2a10678581bc1176e47388dcbc849 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_subtype.ml | IceCruelStuff/hhvm | a951c9f704e2a10678581bc1176e47388dcbc849 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_subtype.ml | IceCruelStuff/hhvm | a951c9f704e2a10678581bc1176e47388dcbc849 | [
"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 Common
open Utils
open Typing_defs
open Typing_env_types
open Typing_logic_helpers
module Reaso... | 36.169147 | 104 | 0.588487 |
f36de5ccf8235d883fccd7fed5a9bd4a454cd152 | 1,903 | ml | OCaml | libraries/ec2/lib/deleteTrafficMirrorFilter.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deleteTrafficMirrorFilter.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/ec2/lib/deleteTrafficMirrorFilter.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteTrafficMirrorFilterRequest.t
type output = DeleteTrafficMirrorFilterResult.t
type error = Errors_internal.t
let service = "ec2"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_optio... | 31.196721 | 105 | 0.584341 |
afb40b3158113d81329ce120cbac418c6e82bc50 | 1,386 | ml | OCaml | data/derived/comb/progs/unify/prog3537.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/prog3537.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3537.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n =
let rec helper a b acc = if b > 0 then helper a (b - 1) (a :: acc) else acc in
helper x n [];;
let padZero l1 l2 =
let l1_len = List.length l1 in
let l2_len = List.length l2 in
let l_diff = l1_len - l2_len in
if l_diff < 0
then (((clone 0 (l_diff * (-1))) @ l1), l2)
else (l1, ((clo... | 30.8 | 80 | 0.491342 |
af438d52ce5fa1cc6403fda9d35f20fa13697f5b | 34,471 | ml | OCaml | src/dune_engine/dune_project.ml | janestreet/jbuilder | 863174b353146a5af143fd78530b1eafad987eda | [
"Apache-2.0"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | src/dune_engine/dune_project.ml | janestreet/jbuilder | 863174b353146a5af143fd78530b1eafad987eda | [
"Apache-2.0"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | src/dune_engine/dune_project.ml | janestreet/jbuilder | 863174b353146a5af143fd78530b1eafad987eda | [
"Apache-2.0"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | open! Stdune
open Import
module Stanza = Dune_lang.Stanza
open Dune_lang.Decoder
module Name : sig
type t = private
| Named of string
| Anonymous of Path.Source.t
val to_dyn : t -> Dyn.t
val equal : t -> t -> bool
val compare : t -> t -> Ordering.t
val to_string_hum : t -> string
val encode : ... | 33.663086 | 81 | 0.612283 |
af6517381c19885ddbdac58fed12df6d35117cb2 | 554 | ml | OCaml | src/support/ocaml/fstar-lib/src/utf8.ml | silky/FStar | 52c5a2465d45679344fb33fae7678a46ad9fa238 | [
"Apache-2.0"
] | 2 | 2019-06-27T11:31:55.000Z | 2021-06-24T15:18:09.000Z | src/support/ocaml/src/utf8.ml | HanumathRao/FStar | 6346714883a101d47859f7f2080b2110a9975bf8 | [
"Apache-2.0"
] | null | null | null | src/support/ocaml/src/utf8.ml | HanumathRao/FStar | 6346714883a101d47859f7f2080b2110a9975bf8 | [
"Apache-2.0"
] | null | null | null | (* -------------------------------------------------------------------- *)
module Impl = BatUTF8
(* -------------------------------------------------------------------- *)
type ustring = Impl.t
exception InvalidEncoding
(* -------------------------------------------------------------------- *)
let of_utf8 (b : strin... | 32.588235 | 74 | 0.3213 |
af89bfee9560ea2237855bb6edaf3f7cd1200bb8 | 88 | ml | OCaml | data/derived/comb/progs/unify/prog6341.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/prog1496.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1496.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs =
let f a x result = a x in let base = f 1 in List.fold_left f base fs;;
| 22 | 72 | 0.636364 |
af5385c1416f29a4eddf1d44bf11efbed48183b2 | 10,779 | ml | OCaml | src/meta_michelson/misc.ml | web-vertalo/ligo | 153bf691992580f4d163f4e8129292f7759efd5b | [
"MIT"
] | null | null | null | src/meta_michelson/misc.ml | web-vertalo/ligo | 153bf691992580f4d163f4e8129292f7759efd5b | [
"MIT"
] | null | null | null | src/meta_michelson/misc.ml | web-vertalo/ligo | 153bf691992580f4d163f4e8129292f7759efd5b | [
"MIT"
] | 1 | 2021-08-18T16:15:52.000Z | 2021-08-18T16:15:52.000Z | module Signature = Tezos_base.TzPervasives.Signature
open Proto_alpha_utils.Memory_proto_alpha
module Data_encoding = Alpha_environment.Data_encoding
module MBytes = Alpha_environment.MBytes
module Error_monad = Proto_alpha_utils.Error_monad
open Error_monad
module Context_init = struct
type account = {
pkh :... | 35.574257 | 112 | 0.653122 |
f34011b1bba21f367c4ccfdd3d048de89563929e | 17,330 | ml | OCaml | src/dune_rules/gen_rules.ml | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/dune_rules/gen_rules.ml | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | src/dune_rules/gen_rules.ml | ghennequin/dune | 0693738306e5cbcbc4d64ea68ead9fbe650d32ea | [
"MIT"
] | null | null | null | open! Dune_engine
open! Stdune
open Import
module Menhir_rules = Menhir
module Toplevel_rules = Toplevel.Stanza
open Dune_file
open! No_io
open Memo.Build.O
module For_stanza : sig
type ('merlin, 'cctx, 'js, 'source_dirs) t =
{ merlin : 'merlin
; cctx : 'cctx
; js : 'js
; source_dirs : 'source_dirs
... | 36.484211 | 80 | 0.606694 |
af8501c196a7a6a2c19b046774b33f7b76c3aaee | 461 | ml | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/asmcomp/register_typing.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/testsuite/tests/asmcomp/register_typing.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/testsuite/tests/asmcomp/register_typing.ml | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (* TEST
* native
*)
type 'a typ = Int : int typ | Ptr : int list typ
let f (type a) (t : a typ) (p : int list) : a =
match t with
| Int -> 100
| Ptr -> p
let allocate_garbage () =
for i = 0 to 100 do
ignore (Array.make 200 0.0)
done
let g (t : int list typ) x =
Gc.minor ();
let x = f t ([x; x; ... | 18.44 | 71 | 0.555315 |
f35f3a3c8abdec821a72f17efa2d7f8e50556b77 | 189 | ml | OCaml | Task/Combinations-with-repetitions/Standard-ML/combinations-with-repetitions-1.ml | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Combinations-with-repetitions/Standard-ML/combinations-with-repetitions-1.ml | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | null | null | null | Task/Combinations-with-repetitions/Standard-ML/combinations-with-repetitions-1.ml | mullikine/RosettaCodeData | 4f0027c6ce83daa36118ee8b67915a13cd23ab67 | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | let rec combs_with_rep k xxs =
match k, xxs with
| 0, _ -> [[]]
| _, [] -> []
| k, x::xs ->
List.map (fun ys -> x::ys) (combs_with_rep (k-1) xxs)
@ combs_with_rep k xs
| 23.625 | 59 | 0.502646 |
af14f27e73b6f62ab379f0abf69eac949d97156d | 38 | ml | OCaml | data/derived/comb/progs/unify/prog7861.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/prog3066.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3066.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = x List.map x n;;
| 12.666667 | 36 | 0.605263 |
afae929bb30f24e297d50fbad885cd00b81848a6 | 2,083 | mll | OCaml | gen/lexUtil.mll | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | gen/lexUtil.mll | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | gen/lexUtil.mll | artkhyzha/herdtools7 | fd87bd59d8e8b7688a9956b02076a7d7e91e3193 | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 32.546875 | 78 | 0.473356 |
af1a2c266b24800ff4f22bd5a3311a4ed68285fc | 278 | ml | OCaml | data/fa15/2797.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/2797.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15/2797.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let pipe fs = let f a x = x x in let base f = f in List.fold_left f base fs;;
(* fix
let pipe fs = let f a x = x in let base f = f in List.fold_left f base fs;;
*)
(* changed spans
(2,27)-(2,30)
x
VarG
*)
(* type error slice
(2,27)-(2,28)
(2,27)-(2,30)
(2,29)-(2,30)
*)
| 12.086957 | 77 | 0.564748 |
f33a6ea16495fe19bcba5cf772268996d3d46f15 | 17,510 | ml | OCaml | src/boot/util/common.ml | spastorino/rust-prehistory | 08ba0a74a7dd74b42c967b9c0263eb63627e9bb9 | [
"MIT"
] | 393 | 2016-11-08T07:47:46.000Z | 2022-03-25T14:08:41.000Z | src/boot/util/common.ml | spastorino/rust-prehistory | 08ba0a74a7dd74b42c967b9c0263eb63627e9bb9 | [
"MIT"
] | 1 | 2021-05-03T19:05:35.000Z | 2021-05-03T19:05:35.000Z | src/boot/util/common.ml | spastorino/rust-prehistory | 08ba0a74a7dd74b42c967b9c0263eb63627e9bb9 | [
"MIT"
] | 35 | 2016-11-08T09:54:18.000Z | 2022-03-19T10:36:26.000Z | (*
* This module goes near the *bottom* of the dependency DAG, and holds basic
* types shared across all phases of the compiler.
*)
type filename = string
type pos = (filename * int * int)
type span = {lo: pos; hi: pos}
type node_id = Node of int
type temp_id = Temp of int
type opaque_id = Opaque of int
type const... | 24.661972 | 76 | 0.574814 |
af7c57b3b240797fdd795636918da7139c2d3482 | 3,839 | ml | OCaml | hphp/hack/test/unit/utils/sys_utils_test.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/test/unit/utils/sys_utils_test.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/test/unit/utils/sys_utils_test.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"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
let restore_std (f : unit -> 'a) : 'a =
let old_stdout = Unix.dup Unix.stdout in
let old_std... | 31.467213 | 81 | 0.63428 |
f37b1ab36a903b8a58fba7ec62be83e831d3edcb | 3,239 | ml | OCaml | eigen/eigen_dsmat_c.ml | mseri/eigen | 068a74666322f575e32795ee9290b92a30e4a123 | [
"MIT"
] | null | null | null | eigen/eigen_dsmat_c.ml | mseri/eigen | 068a74666322f575e32795ee9290b92a30e4a123 | [
"MIT"
] | null | null | null | eigen/eigen_dsmat_c.ml | mseri/eigen | 068a74666322f575e32795ee9290b92a30e4a123 | [
"MIT"
] | null | null | null | (*
* Eigen - an OCaml interface to C++ Eigen library
* Copyright (c) 2016-2017 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
open Ctypes
open Eigen_types.DSMAT_C
let create m n =
let x = ml_eigen_new (Int64.of_int m) (Int64.of_int n) in
Gc.finalise ml_eigen_delete x;
x
let delete x = ml_eigen_delete x
let zeros ... | 30.271028 | 87 | 0.718432 |
af3a9120755c6f2e4821d1500c0d8771c0fb8277 | 281 | ml | OCaml | data/derived/comb/progs/unify/prog0224.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/prog0224.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0224.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec mulByDigit i l =
match List.rev l with
| [] -> []
| h::t ->
(match (mulByDigit i (List.rev (List.map (fun x -> x * 10) t))) @
[h * i]
with
| [] -> []
| h::t -> let rec helper v = [(helper v) / 10; h1 mod 10] in helper h);;
| 25.545455 | 79 | 0.430605 |
af5429b9c0a8adeb16d177185aaac49ac6e9e2d6 | 335 | mli | OCaml | experimental/src/customrep.mli | janestreet/typerep_extended | eb0f3cf70718fb822deec3918af21ee3bb311b8e | [
"Apache-2.0"
] | 2 | 2015-06-14T11:32:48.000Z | 2021-12-17T03:00:58.000Z | experimental/src/customrep.mli | janestreet/typerep_extended | eb0f3cf70718fb822deec3918af21ee3bb311b8e | [
"Apache-2.0"
] | null | null | null | experimental/src/customrep.mli | janestreet/typerep_extended | eb0f3cf70718fb822deec3918af21ee3bb311b8e | [
"Apache-2.0"
] | 1 | 2021-12-17T03:02:07.000Z | 2021-12-17T03:02:07.000Z | (*
This module is there to enforce that we register at the same time a customization of
serialization. This takes care of registering the implementation in the right tables.
*)
val register0 : (module Customrep_intf.S0) -> unit
val register1 : (module Customrep_intf.S1) -> unit
val register2 : (module Customrep_in... | 37.222222 | 87 | 0.761194 |
afc3daf5de26fd86b09aac187d87ab99f55158c1 | 782 | ml | OCaml | src/CryptoRandom.ml | schubev/bs-webcrypto | 48b962bf5e522038baff898c0ec617423d359c20 | [
"MIT"
] | null | null | null | src/CryptoRandom.ml | schubev/bs-webcrypto | 48b962bf5e522038baff898c0ec617423d359c20 | [
"MIT"
] | null | null | null | src/CryptoRandom.ml | schubev/bs-webcrypto | 48b962bf5e522038baff898c0ec617423d359c20 | [
"MIT"
] | null | null | null | open Js.Typed_array
open CryptoBase
external getRandomUint8Values : crypto -> Uint8Array.t -> Uint8Array.t = "getRandomValues" [@@bs.send]
external getRandomUint8ClampedValues : crypto -> Uint8ClampedArray.t -> Uint8ClampedArray.t = "getRandomValues" [@@bs.send]
external getRandomUint16Values : crypto -> Uint16Array.t... | 71.090909 | 123 | 0.759591 |
afcc1f22975feb131b6a28269298e0d7f09cf39f | 1,421 | ml | OCaml | hphp/hack/src/server/symbolTypeService.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/symbolTypeService.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/symbolTypeService.ml | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"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_core
open Aast
open ServerCommandTypes.Symbol_type
module Result_set = Set.Make(struct
type t = ServerCo... | 24.929825 | 75 | 0.659395 |
af944e2decd01743d1605808c8bbf8262d8bea31 | 16,274 | ml | OCaml | hphp/hack/src/hackfmt/chunk_builder.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:47.000Z | 2021-05-15T22:07:47.000Z | hphp/hack/src/hackfmt/chunk_builder.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/hackfmt/chunk_builder.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.000Z | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
type open_span = { open_span_start: int }
type rule_state =
| NoRule
| RuleKind of Rule.kind
... | 33.077236 | 84 | 0.604891 |
afc184ac3583be091b58b130d192f179e613fc0c | 8,815 | ml | OCaml | data/derived/comb/progs/unify/prog3240.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/prog3240.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3240.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.476879 | 148 | 0.602382 |
f31b548adc2ee166a2cf00830fde4625fc665571 | 1,259 | mli | OCaml | src/typing/typed_ast_utils.mli | Bannerets/flow | a43b5befd26c6cd14cc0cd9bd601b005e8c3d947 | [
"MIT"
] | 1 | 2019-05-17T11:06:58.000Z | 2019-05-17T11:06:58.000Z | src/typing/typed_ast_utils.mli | Bannerets/flow | a43b5befd26c6cd14cc0cd9bd601b005e8c3d947 | [
"MIT"
] | null | null | null | src/typing/typed_ast_utils.mli | Bannerets/flow | a43b5befd26c6cd14cc0cd9bd601b005e8c3d947 | [
"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.
*)
(* It's convenient to use Loc.t here, since this is usually called in direct response to a user
* query, where the user has provi... | 44.964286 | 102 | 0.749007 |
af391ec65e6ea8dcb0705df7fefd698cbebf72bc | 78 | ml | OCaml | data/derived/fa15/progs/cnstr/prog3219.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/prog3219.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog3219.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let padZero l1 l2 = if (List.length l1) = (List.length l2) then [(l1, l2)];;
| 26 | 76 | 0.615385 |
af82305cdb0f8f2037f1d1518022e4b6757f1f58 | 37,983 | ml | OCaml | interpreter/merkle/mproof.ml | hellolyf/ocaml-offchain | 927caca8699c5d2a707fd417acdda778ed30e284 | [
"MIT"
] | 47 | 2017-09-12T17:56:49.000Z | 2022-03-25T11:59:15.000Z | interpreter/merkle/mproof.ml | hellolyf/ocaml-offchain | 927caca8699c5d2a707fd417acdda778ed30e284 | [
"MIT"
] | 51 | 2017-09-18T15:43:47.000Z | 2018-10-30T17:39:09.000Z | interpreter/merkle/mproof.ml | hellolyf/ocaml-offchain | 927caca8699c5d2a707fd417acdda778ed30e284 | [
"MIT"
] | 14 | 2017-09-17T22:09:43.000Z | 2021-11-05T17:44:19.000Z |
open Merkle
open Values
open Mrun
open Mbinary
open Byteutil
let trace = Merkle.trace
let to_hex a = "\"0x" ^ w256_to_string a ^ "\""
let machine_to_string m =
"{" ^
" \"vm\": " ^ to_hex m.bin_vm ^ "," ^
" \"op\": " ^ to_hex (microp_word m.bin_microp) ^ "," ^
" \"reg1\": " ^ to_hex (get_value m.bin_regs.re... | 42.534155 | 233 | 0.694153 |
af99cf5b7e9bf349be643e2d79ad2a9615375c18 | 23,213 | ml | OCaml | src/proto_012_Psithaca/lib_client/operation_result.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_012_Psithaca/lib_client/operation_result.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_012_Psithaca/lib_client/operation_result.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> *)
... | 34.802099 | 82 | 0.570155 |
af96c1182fa3b67425bb73dd9954c2e2f0015c4a | 3,243 | ml | OCaml | src/html/jsx/jsx.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 23 | 2019-10-31T11:55:18.000Z | 2021-12-17T10:18:45.000Z | src/html/jsx/jsx.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 29 | 2019-11-27T09:57:52.000Z | 2021-12-13T13:34:56.000Z | src/html/jsx/jsx.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 3 | 2020-10-11T21:43:58.000Z | 2021-05-30T14:38:43.000Z | open Ppxlib
module Build = Ast_builder.Default
let make_opt ~loc name args rest : (arg_label * expression) list =
match args with
| [] -> rest
| _ :: _ -> (Labelled name, Build.elist ~loc args) :: rest
(** Allow writing class_ instead of class, and some_attr rather than some-attr *)
let normalise_name name =
... | 37.275862 | 102 | 0.470244 |
afa404061a3d7fea0db9e88e3ef319013b78d3f3 | 671 | ml | OCaml | src-ocaml/baijiu_sha3_384.ml | Eyyub/digestif | fc510e57bbb27ceb020ca73b1067e79a1b933f47 | [
"MIT"
] | 8 | 2015-08-21T23:54:04.000Z | 2017-03-15T09:50:45.000Z | src-ocaml/baijiu_sha3_384.ml | Eyyub/digestif | fc510e57bbb27ceb020ca73b1067e79a1b933f47 | [
"MIT"
] | 2 | 2017-03-28T16:39:48.000Z | 2017-03-28T16:40:16.000Z | src-ocaml/baijiu_sha3_384.ml | Eyyub/digestif | fc510e57bbb27ceb020ca73b1067e79a1b933f47 | [
"MIT"
] | null | null | null | module By = Digestif_by
module Bi = Digestif_bi
module type S = sig
type ctx
type kind = [ `SHA3_384 ]
val init : unit -> ctx
val unsafe_feed_bytes : ctx -> By.t -> int -> int -> unit
val unsafe_feed_bigstring : ctx -> Bi.t -> int -> int -> unit
val unsafe_get : ctx -> By.t
val dup : ctx -> ctx
end
mod... | 20.96875 | 63 | 0.673621 |
af44b5c877577c97139097291c25c9302311ed63 | 2,735 | ml | OCaml | src/parser_utils/signature_builder_deps_sig.ml | segmentationfaulter/flow | 3dddd0603fef8034949c3a04b24688125d1a2d71 | [
"MIT"
] | 1 | 2022-02-06T01:14:40.000Z | 2022-02-06T01:14:40.000Z | src/parser_utils/signature_builder_deps_sig.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"MIT"
] | null | null | null | src/parser_utils/signature_builder_deps_sig.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"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 Sort = Signature_builder_kind.Sort
module type S = sig
module L : Loc_sig.S
module Error : sig
type t =
| E... | 26.047619 | 88 | 0.606581 |
f30777ed628040fb6a81e2c84a423f874df0abfa | 1,657 | ml | OCaml | lexer.ml | icefoxen/kaleidoscope | 8d40720bf2f4112d3c7af1633e625675a905a78c | [
"MIT"
] | null | null | null | lexer.ml | icefoxen/kaleidoscope | 8d40720bf2f4112d3c7af1633e625675a905a78c | [
"MIT"
] | null | null | null | lexer.ml | icefoxen/kaleidoscope | 8d40720bf2f4112d3c7af1633e625675a905a78c | [
"MIT"
] | null | null | null | let rec lex = parser
(* Ick, camlp4.
* Skip whitespace.
*)
| [< ' (' ' | '\n' | '\r' | '\t'); stream >] -> lex stream
(* Identifiers: [a-zA-Z][a-zA-Z0-9] *)
| [< ' ('A' .. 'Z' | 'a' .. 'z' as c); stream >] ->
let buffer = Buffer.create 1 in
Buffer.add_char buffer c;
lex_id... | 29.589286 | 76 | 0.488232 |
af17fc28ff684e92e6b17d4a8796b8c82fb0a0c8 | 1,500 | ml | OCaml | infer/src/java/jSourceAST.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/java/jSourceAST.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/java/jSourceAST.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
type location = {line: int; col: int}
type class_kind = Class of string | Interface of string | AnonymousClass | Enum ... | 34.090909 | 89 | 0.732667 |
f3b749011f66ce9431d18f1657da3782fc983874 | 1,019 | ml | OCaml | giraf10/motif_comb_stat.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | giraf10/motif_comb_stat.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | giraf10/motif_comb_stat.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | #use "topfind";;
#require "extlib";;
open ExtLib
module Ht = Hashtbl
let read () =
let lines = input_lines stdin in
let ht = Ht.create 100 in
Enum.iter (fun l ->
let chk = Array.of_list (String.nsplit l "\t") in
Ht.add ht (chk.(0),chk.(1)) (float_of_string chk.(2))) lines;
ht
let get_prob hp =
... | 24.261905 | 65 | 0.552502 |
afa6f694f50a5d115b9db1ff37a78d2f6d98cbed | 584 | ml | OCaml | otherlibs/stdune-unstable/fdecl.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | otherlibs/stdune-unstable/fdecl.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | otherlibs/stdune-unstable/fdecl.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | type 'a state =
| Unset
| Set of 'a
type 'a t =
{ mutable state : 'a state
; to_dyn : 'a -> Dyn.t
}
let create to_dyn = { state = Unset; to_dyn }
let set t new_ =
match t.state with
| Unset -> t.state <- Set new_
| Set old ->
Code_error.raise "Fdecl.set: already set"
[ ("old", t.to_dyn old)... | 20.857143 | 56 | 0.583904 |
afba317ff30aab835aa1a0592f5a8a6619ce7f9a | 12,875 | ml | OCaml | src/typing/assert_ground.ml | brookemitchell/flow | 2ca328a33dc2cf634a554b5b0c99b0c22369aae3 | [
"MIT"
] | 1 | 2022-02-06T01:14:40.000Z | 2022-02-06T01:14:40.000Z | src/typing/assert_ground.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"MIT"
] | null | null | null | src/typing/assert_ground.ml | villesau/flow | 81272dd05d96d0c7547eb00859020ebfc6aee4da | [
"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 Constraint
open Reason
open Utils_js
open Type
module Marked = Marked.IdMarked
module FlowError = Flow_error
class type_find... | 41.938111 | 102 | 0.615068 |
af97cd6196875b7063fed4aff69456485363bead | 3,686 | ml | OCaml | src/irmin/contents_intf.ml | maiste/irmin | b5b8186ca9eeafb1fb5ea34fea3417d7e8931457 | [
"0BSD"
] | null | null | null | src/irmin/contents_intf.ml | maiste/irmin | b5b8186ca9eeafb1fb5ea34fea3417d7e8931457 | [
"0BSD"
] | null | null | null | src/irmin/contents_intf.ml | maiste/irmin | b5b8186ca9eeafb1fb5ea34fea3417d7e8931457 | [
"0BSD"
] | null | null | null | (*
* 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... | 35.442308 | 83 | 0.672816 |
afbb6a877f5dc85b119459f9675648ccf7142268 | 437 | ml | OCaml | result/fixml/diff/sub44/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/diff/sub44/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/diff/sub44/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec diff : aexp * string -> aexp =
fun (aexp, x) ->
match aexp with
| Sum list1 -> ( match list1 with hd :: tl -> hd )
| Const x -> Const x
| Var y -> Var y
| Power (z1, z2) ->
if... | 24.277778 | 52 | 0.556064 |
af81ce284f5736fbd8865f51a2c53c29098ca686 | 7,641 | ml | OCaml | data/derived/comb/progs/unify/prog1201.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/prog1201.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1201.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.901695 | 148 | 0.655673 |
af8e82d997e96afc4b7d3a2b169e61d438aff27a | 1,516 | ml | OCaml | explorations/read_print_file.ml | msgoff/examples | 5771b89374a9399c911a051cb385f295dac32b61 | [
"Unlicense"
] | null | null | null | explorations/read_print_file.ml | msgoff/examples | 5771b89374a9399c911a051cb385f295dac32b61 | [
"Unlicense"
] | null | null | null | explorations/read_print_file.ml | msgoff/examples | 5771b89374a9399c911a051cb385f295dac32b61 | [
"Unlicense"
] | null | null | null | open Core
open Printf
let string_split s = String.split_on_chars s ~on:[':';'\n';'='];;
let parse line =
let p = Re2.create_exn "\\s+.*" in
Re2.find_all p line;;
let string_opt s =
match s with
Some s -> s
| None -> "";;
let core_kernel_msg l =
match l with
Core_kernel__.Result.Ok l -> string_o... | 22.969697 | 65 | 0.600264 |
afb5abd9ece0bb9cf174a440951afd7bc53eb7d1 | 2,492 | ml | OCaml | hack/utils/find.ml | mcanthony/flow-type | fb50e311cbc4d6b716889419796ff8a8746bd7f1 | [
"BSD-3-Clause"
] | 1 | 2015-10-01T01:50:43.000Z | 2015-10-01T01:50:43.000Z | hack/utils/find.ml | mcanthony/flow-type | fb50e311cbc4d6b716889419796ff8a8746bd7f1 | [
"BSD-3-Clause"
] | null | null | null | hack/utils/find.ml | mcanthony/flow-type | fb50e311cbc4d6b716889419796ff8a8746bd7f1 | [
"BSD-3-Clause"
] | 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.
*
*)
(************... | 32.789474 | 80 | 0.565409 |
af8f21a9c5017c7d0c5478d5d285d89d1448e7a8 | 2,085 | ml | OCaml | lib/unification/Bitv.ml | kit-ty-kate/dowsing | c8f1b67af16498158c60818c062ae9fd2e3f02d8 | [
"ISC"
] | 29 | 2017-02-06T16:56:34.000Z | 2021-12-13T19:05:06.000Z | lib/unification/Bitv.ml | kit-ty-kate/dowsing | c8f1b67af16498158c60818c062ae9fd2e3f02d8 | [
"ISC"
] | 13 | 2017-07-27T00:04:16.000Z | 2021-11-04T14:26:14.000Z | lib/unification/Bitv.ml | kit-ty-kate/dowsing | c8f1b67af16498158c60818c062ae9fd2e3f02d8 | [
"ISC"
] | 2 | 2021-01-03T20:47:32.000Z | 2021-09-14T12:04:41.000Z | module type S = sig
type t
val empty : t
val (&&) : t -> t -> t
val (||) : t -> t -> t
val not : t -> t
val add : t -> int -> t
val singleton : int -> t
val all_until : int -> t
val is_empty : t -> bool
val mem : int -> t -> bool
val is_subset : t -> t -> bool
val is_singleton : t -> bool
val ... | 22.180851 | 58 | 0.554436 |
af993eba8c5e2c31012f0de1e24ebd599d558827 | 7,862 | ml | OCaml | src/proto_alpha/lib_client/proxy.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | src/proto_alpha/lib_client/proxy.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | 1 | 2021-08-04T17:54:43.000Z | 2021-08-04T17:54:43.000Z | src/proto_alpha/lib_client/proxy.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | 1 | 2021-08-01T15:56:04.000Z | 2021-08-01T15:56:04.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 42.268817 | 83 | 0.642585 |
f33cdb2fbbb1206331136fa4883bce8d49ff8fda | 325 | ml | OCaml | benchmarks/C/sigma/sol68.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/sigma/sol68.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/sigma/sol68.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | (* 2008-11874 Lee, Sujee *)
(* EXERCISE 1 *)
let rec sigma f a b = (* sigma : int * int * (int -> int) -> int = <fun> *)
if b>a then (f b) + (sigma f a (b-1))
else if b=a then (f b)
else 0
(*
let sum = sigma(1,5,fun n -> n+1)
let _ =
print_string "EXERCISE 1 : ";
print_int sum;
print_newline(... | 20.3125 | 76 | 0.523077 |
af361cd02e6f75c5e8f5e23b448a9a18e7a12255 | 277 | mli | OCaml | hphp/hack/src/hackfmt/hack_format.mli | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/hackfmt/hack_format.mli | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/hackfmt/hack_format.mli | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* 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.
*
*)
val transform : Format_env.t -> Full_fidelity_editable_syntax.t -> Doc.t
| 25.181818 | 72 | 0.707581 |
f314b22898738b955341a07a40bd5192c80603dd | 232 | ml | OCaml | data/derived/comb/progs/unify/prog6148.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/prog1288.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1288.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec split l =
let base = (0, [], []) in
let fold_fn (i,l1,l2) elmt =
if i < (l / 2)
then ((i + 1), ([elmt] @ l1), l2)
else (i, l1, ([elmt] @ l2)) in
let (_,l1,l2) = List.fold_left fold_fn base l in (l1, l2);;
| 25.777778 | 61 | 0.491379 |
f30251c4b898f946b78213b0683ef0fd0289b1bb | 848 | mli | OCaml | bin/test.mli | NathanReb/mdx | a441e67a014fe3db1359b8b0ffc75bf5629bafff | [
"0BSD"
] | 4 | 2019-01-07T13:58:18.000Z | 2020-09-18T15:25:20.000Z | bin/test.mli | NathanReb/mdx | a441e67a014fe3db1359b8b0ffc75bf5629bafff | [
"0BSD"
] | 1 | 2019-09-16T13:53:16.000Z | 2019-09-23T09:13:49.000Z | bin/test.mli | NathanReb/mdx | a441e67a014fe3db1359b8b0ffc75bf5629bafff | [
"0BSD"
] | 2 | 2019-02-22T03:49:43.000Z | 2019-07-21T14:00:11.000Z | (*
* Copyright (c) 2018 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 PROVIDED "AS... | 42.4 | 75 | 0.76533 |
afc25e749fe3e607a8d84575a8e134e0f2ac0a8c | 1,833 | mli | OCaml | duniverse/core_extended/delimited_kernel/src/parse_state.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_extended/delimited_kernel/src/parse_state.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_extended/delimited_kernel/src/parse_state.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open Core_kernel
(** Row up to the error, and the field with the error up to the point of failure *)
exception Bad_csv_formatting of string list * string
(** At the lowest level, we model csv parsing as a fold over string arrays, one array
per row. It is up to you to interpret the header row. *)
type 'a t
(** A... | 39 | 88 | 0.6503 |
afd617607da443879cacfe04373102cd55fc1a84 | 416 | ml | OCaml | data/fa15_min/2786.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/2786.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/2786.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let x l = List.map string_of_int;;
let pipe fs = let f a x = a x in let base = x in List.fold_left f base fs;;
(* fix
let x l = List.map string_of_int;;
let pipe fs = let f a x = a in let base = x in List.fold_left f base fs;;
*)
(* changed spans
(4,27)-(4,30)
a
VarG
*)
(* type error slice
(4,15)-(4,74)
(4,21... | 13 | 75 | 0.564904 |
afc4234473355c4c8108e3e3997485842457035c | 1,010 | mli | OCaml | libraries/route-53/lib/updateTrafficPolicyComment.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/route-53/lib/updateTrafficPolicyComment.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/route-53/lib/updateTrafficPolicyComment.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Updates the comment for a specified traffic policy version.</p>" *)
open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
module UpdateTrafficPolicyCommentRequest :
sig
type t = {
id: String.t ;
version: Integer.t ;
comment: String.t }[@@ocaml.doc
"<p... | 38.846154 | 141 | 0.70099 |
af8893587cac3682909656657e83e836672d24ce | 927 | ml | OCaml | main_codebase/VST-master/aes/testing/t.ml | Jmw150/Coq-VST-DLC | 1af793083d71d87bc7023d35638c785685d424e7 | [
"FTL"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq_projects/VST/aes/testing/t.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq_projects/VST/aes/testing/t.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (* this file is not extracted, but written manually, to print Z numbers as hex *)
(* open the ocaml repl with command "ocaml", then
#use "ciphertext1.ml";;
then
#use "t.ml";;
*)
open Printf
let rec pos_to_int p = match p with
| XH -> 1
| XI q -> 1 + (pos_to_int(q)*2)
| XO q -> (pos_to_int(q)*2) ;;
let... | 37.08 | 443 | 0.647249 |
f3b34e7cdc5f396ace105cc01f18fc2d9357294b | 8,266 | ml | OCaml | test/alpha/test_regex_holes.ml | mseri/comby | bb8a9de5a5812ef799f8a3787b8b44c6da6fc8d1 | [
"Apache-2.0"
] | 1 | 2021-03-28T22:59:18.000Z | 2021-03-28T22:59:18.000Z | test/alpha/test_regex_holes.ml | deepanprabhu/comby | df1491cb9609a0a921a0d1f72745c176f6462c06 | [
"Apache-2.0"
] | null | null | null | test/alpha/test_regex_holes.ml | deepanprabhu/comby | df1491cb9609a0a921a0d1f72745c176f6462c06 | [
"Apache-2.0"
] | null | null | null | open Core
open Rewriter
open Matchers.Alpha
let configuration = Matchers.Configuration.create ~match_kind:Fuzzy ()
let run ?(configuration = configuration) (module M : Matchers.Matcher.S) source match_template ?rule rewrite_template =
let rule =
match rule with
| Some rule -> Language.Rule.Alpha.create ru... | 27.83165 | 119 | 0.644326 |
d2e13d9a657583721ae5457c06b6a037761b328d | 2,337 | ml | OCaml | src/proto_alpha/lib_client_commands/alpha_commands_registration.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_client_commands/alpha_commands_registration.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_client_commands/alpha_commands_registration.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 68.735294 | 79 | 0.516474 |
af7f6fe3190eb5920b6fe29181f14dc63aa962c4 | 3,305 | ml | OCaml | src/code/Lisp.ml | dryproject/drylib.ocaml | d3ccb387585c5dbabb53481f5c1dbd8de9b2141b | [
"Unlicense"
] | 4 | 2017-09-02T13:37:38.000Z | 2018-06-05T07:29:47.000Z | src/code/Lisp.ml | dryproject/drylib.ocaml | d3ccb387585c5dbabb53481f5c1dbd8de9b2141b | [
"Unlicense"
] | null | null | null | src/code/Lisp.ml | dryproject/drylib.ocaml | d3ccb387585c5dbabb53481f5c1dbd8de9b2141b | [
"Unlicense"
] | null | null | null | (* This is free and unencumbered software released into the public domain. *)
(* See: http://www.lispworks.com/documentation/HyperSpec/Front/index.htm *)
(* See: http://cltl2.lisp.se/cltl/cltl2.html *)
(* See: http://sellout.github.io/2012/03/03/common-lisp-type-hierarchy/ *)
(* See: https://docs.google.com/document/p... | 25.229008 | 95 | 0.688351 |
af5259cf03f3ba49162b39ec329ddeef231c0e78 | 11,045 | ml | OCaml | source/interprocedural/interproceduralResult.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | null | null | null | source/interprocedural/interproceduralResult.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | null | null | null | source/interprocedural/interproceduralResult.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 Ast
open Statement
module Kind = AnalysisKind
(* Implemented by an individual analysis to be plugged into the global fixpoint... | 34.195046 | 106 | 0.711091 |
afd415fba093ce589dbc76d63a02dc5a5389d92a | 10,569 | ml | OCaml | src/lib/snark_worker/functor.ml | olton/mina | 35a0be706602a3187a21ba757c89d197ff914d7e | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/snark_worker/functor.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/snark_worker/functor.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Core
open Async
open Mina_base
type Structured_log_events.t +=
| Merge_snark_generated of
{ time :
(Time.Span.t
[@to_yojson fun total -> `String (Time.Span.to_string_hum total)]
[@of_yojson
function
| `String time ->
Ok (Time.Span.of_st... | 36.697917 | 82 | 0.574321 |
af6ca0e875a86ae51ccf426e14e8387557c143d9 | 13,436 | mli | OCaml | src/typing/context.mli | Jankyboy/flow | f9839688acace8af5dbda39d808924347286862d | [
"MIT"
] | null | null | null | src/typing/context.mli | Jankyboy/flow | f9839688acace8af5dbda39d808924347286862d | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/typing/context.mli | Jankyboy/flow | f9839688acace8af5dbda39d808924347286862d | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Loc_collections
exception Props_not_found of Type.Properties.id
exception Exports_not_found of Type.Exports.id
exception Re... | 28.587234 | 100 | 0.726853 |
f32d1938501a90b4437800c9c14e84dfb821ebf0 | 1,925 | ml | OCaml | src/ast.ml | BoaLanguage/boa | bd43f4fdcc03e2be5f1425ddccf8965c5c01a1d8 | [
"MIT"
] | null | null | null | src/ast.ml | BoaLanguage/boa | bd43f4fdcc03e2be5f1425ddccf8965c5c01a1d8 | [
"MIT"
] | null | null | null | src/ast.ml | BoaLanguage/boa | bd43f4fdcc03e2be5f1425ddccf8965c5c01a1d8 | [
"MIT"
] | null | null | null | type var = string
type tvar = int
module Object = Map.Make(String)
module Mappings = Map.Make(String)
module Substitution = Map.Make(Int)
type typ =
| TFun of typ * typ
| TBase of string
| TTuple of typ list
| TList of typ
| TDict of typ * typ
| TVar of tvar
| TMutable of typ
| TLimbo of typ
| TObj ... | 19.25 | 64 | 0.610909 |
af94bf813547d7fa42ad0c58c443fb4e956a38ab | 12,848 | ml | OCaml | src/typing/scope.ml | vikr01/flow | b594c0b0c035670c4a139a006ec76e0f07cc7c66 | [
"MIT"
] | null | null | null | src/typing/scope.ml | vikr01/flow | b594c0b0c035670c4a139a006ec76e0f07cc7c66 | [
"MIT"
] | null | null | null | src/typing/scope.ml | vikr01/flow | b594c0b0c035670c4a139a006ec76e0f07cc7c66 | [
"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.
*)
open Utils_js
let mk_id = Reason.mk_id
(******************************************************************************)
(* Scopes ... | 30.088993 | 96 | 0.681351 |
f344aaeb9e2b9618e9eeeb6a72721c872fcbcc15 | 1,030 | ml | OCaml | lib/fuzz/src/path_kind.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 7 | 2018-11-27T23:53:58.000Z | 2020-11-22T11:56:16.000Z | lib/fuzz/src/path_kind.ml | MattWindsor91/act | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 235 | 2018-10-03T16:37:36.000Z | 2020-11-22T16:26:51.000Z | lib/fuzz/src/path_kind.ml | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 1 | 2018-11-13T16:43:19.000Z | 2018-11-13T16:43:19.000Z | (* This file is part of c4f.
Copyright (c) 2018-2022 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 26.410256 | 76 | 0.694175 |
af7f24d7f40cb696550432714bdcfd199c887a7a | 227 | ml | OCaml | result/fixml/iter/sub41/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/iter/sub41/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/iter/sub41/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec iter : int * (int -> int) -> int -> int =
fun (n, f) ->
let compose f g x = f (g x) in
if n <= 1 then if n = 1 then f else fun __x__ -> __x__
else compose f (iter (n - 1, f))
let _ = iter (7, fun x -> 2 + x) 0
| 25.222222 | 56 | 0.515419 |
afa8850cbc7f786c4ca104f092a210ffd2731dbb | 36,039 | ml | OCaml | sledge/src/ses/equality.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | sledge/src/ses/equality.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | sledge/src/ses/equality.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Equality over uninterpreted functions and linear rational arithmetic *)
(** Classification of Terms by Theory *)
type kind = ... | 33.839437 | 79 | 0.56142 |
af7a0839e281bb173ea4b87837a7b7288fba4b77 | 5,815 | ml | OCaml | lib/stream.ml | jeffa5/ocaml-h2 | e92be081d775011cc791c35538a33a5334eaa96a | [
"BSD-3-Clause"
] | 203 | 2019-03-27T21:05:54.000Z | 2022-03-05T08:24:14.000Z | lib/stream.ml | jeffa5/ocaml-h2 | e92be081d775011cc791c35538a33a5334eaa96a | [
"BSD-3-Clause"
] | 21 | 2019-06-04T20:36:45.000Z | 2022-03-16T18:45:59.000Z | lib/stream.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... | 41.241135 | 79 | 0.703009 |
afb8fba38172f2abc254e1c4e84f987a4bb65c43 | 99 | ml | OCaml | simple_1.ml | kayceesrk/ocaml15-eff | 4c71005c5b1f27c8f6c83a8d28977875e05580e8 | [
"0BSD"
] | 16 | 2016-01-30T00:12:13.000Z | 2021-03-19T10:06:45.000Z | simple_1.ml | kayceesrk/ocaml15-eff | 4c71005c5b1f27c8f6c83a8d28977875e05580e8 | [
"0BSD"
] | 1 | 2019-06-13T14:57:12.000Z | 2019-06-13T14:57:12.000Z | simple_1.ml | kayceesrk/ocaml15-eff | 4c71005c5b1f27c8f6c83a8d28977875e05580e8 | [
"0BSD"
] | 1 | 2016-01-28T14:12:46.000Z | 2016-01-28T14:12:46.000Z | exception Foo of int
let f () = (raise (Foo 3)) + 1
let r =
try
f ()
with Foo i -> i + 1
| 11 | 30 | 0.494949 |
afa9d522708e09113bcb1eb4a983a5e65a87f9a9 | 11,188 | ml | OCaml | src/lib/mina_base/permissions.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/lib/mina_base/permissions.ml | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | 1 | 2021-03-06T14:52:32.000Z | 2021-03-06T14:52:32.000Z | src/lib/mina_base/permissions.ml | obazl/mina | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | 3 | 2021-03-14T18:19:04.000Z | 2021-03-25T16:37:07.000Z | [%%import
"/src/config.mlh"]
open Core_kernel
[%%ifdef
consensus_mechanism]
open Snark_params.Tick
module Mina_numbers = Mina_numbers
[%%else]
module Mina_numbers = Mina_numbers_nonconsensus.Mina_numbers
module Currency = Currency_nonconsensus.Currency
module Random_oracle = Random_oracle_nonconsensus.Random_oracl... | 30.485014 | 89 | 0.617894 |
f3fc145c61631b09558b5f7afd8e4bbfd520e0a3 | 678 | ml | OCaml | data/derived/comb/progs/unify/prog4837.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/prog4837.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4837.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let x x = x;;
let clone x n =
let rec helper x n acc =
if n <= 0 then acc else helper x (n - 1) (x :: acc) in
helper x n [];;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then ((List.append (clone 0 ((List.length l2) - (List.length l1))) l1), l2)
else (l1, (List.append (clone 0 ((List.len... | 29.478261 | 79 | 0.569322 |
af436b81917a3c9e3d95eb82519c0fcb3f5c4add | 5,194 | ml | OCaml | src/irmin-containers/linked_log.ml | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 1,491 | 2015-01-04T05:34:56.000Z | 2022-03-31T09:53:17.000Z | src/irmin-containers/linked_log.ml | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 1,132 | 2015-01-05T17:06:31.000Z | 2022-03-30T19:56:47.000Z | src/irmin-containers/linked_log.ml | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 144 | 2015-01-30T14:00:16.000Z | 2022-03-29T16:30:47.000Z | (*
* Copyright (c) 2020 KC Sivaramakrishnan <kc@kcsrk.info>
* Copyright (c) 2020 Anirudh Sunder Raj <anirudh6626@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 noti... | 30.733728 | 79 | 0.608587 |
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.