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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ae5a7767296c403035958adac4438a6f87c5a35 | 9,888 | ml | OCaml | test/test.ml | samarthkishor/crafting-interpreters | c95c43516da60fd50cee6856f82833aec7ab2864 | [
"Unlicense"
] | 8 | 2019-12-24T03:19:32.000Z | 2022-01-16T23:34:32.000Z | test/test.ml | samarthkishor/crafting-interpreters | c95c43516da60fd50cee6856f82833aec7ab2864 | [
"Unlicense"
] | null | null | null | test/test.ml | samarthkishor/crafting-interpreters | c95c43516da60fd50cee6856f82833aec7ab2864 | [
"Unlicense"
] | null | null | null | (* Scanner tests *)
let test_scanner_basic () =
let open Lox.Scanner in
Alcotest.(check (list string))
"same lists"
[ "var"; "i"; ";"; "" ]
(make_scanner "var i;" |> scan_tokens |> List.map (fun t -> t.lexeme))
;;
let test_scanner_advanced () =
let open Lox.Scanner in
Alcotest.(check (list string)... | 29.693694 | 95 | 0.577468 |
bc91cfd5b42eea80771b972cb56762287c12b406 | 711 | ml | OCaml | src/util/Backtrackable_ref.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | 91 | 2015-02-09T11:20:08.000Z | 2021-11-19T19:02:32.000Z | src/util/Backtrackable_ref.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | 23 | 2015-05-07T13:56:40.000Z | 2021-09-30T14:53:41.000Z | src/util/Backtrackable_ref.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | 12 | 2019-07-17T16:00:18.000Z | 2021-12-06T18:24:08.000Z |
type 'a t = {
mutable cur: 'a;
stack: 'a Vec.t;
copy: ('a -> 'a) option;
}
let create ?copy x: _ t =
{cur=x; stack=Vec.create(); copy}
let[@inline] get self = self.cur
let[@inline] set self x = self.cur <- x
let[@inline] update self f = self.cur <- f self.cur
let[@inline] n_levels self = Vec.size self.stack... | 23.7 | 77 | 0.635724 |
bc4400e2e60fb058a1d60481d68434f6ffece248 | 11,394 | ml | OCaml | lib/rke.ml | dinosaure/ke | ddbee541580d0d3c4ac4c200237edd9b69bb1544 | [
"MIT"
] | 4 | 2018-12-11T17:52:02.000Z | 2018-12-20T09:14:31.000Z | lib/rke.ml | dinosaure/ke | ddbee541580d0d3c4ac4c200237edd9b69bb1544 | [
"MIT"
] | null | null | null | lib/rke.ml | dinosaure/ke | ddbee541580d0d3c4ac4c200237edd9b69bb1544 | [
"MIT"
] | null | null | null | type ('a, 'b) t = {
mutable r : int;
mutable w : int;
mutable c : int;
k : ('a, 'b) Bigarray.kind;
mutable v : ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t;
}
exception Empty
external ( = ) : 'a -> 'a -> bool = "%equal"
let ( = ) (a : int) b = a = b
let[@inline always] mask t v = v land (t.c - 1)
let[@inl... | 28.413965 | 79 | 0.559066 |
bcaf8ed7d34c1057ac743fc0a15aca1c7cb55e00 | 1,777 | ml | OCaml | lib/main.ml | talex5/mirage-trace-dump-xen | 5e4a8806b7ae171a6e00ad9c7bc42589ef9bfc76 | [
"BSD-2-Clause"
] | 2 | 2021-04-08T15:16:21.000Z | 2021-04-08T15:27:56.000Z | lib/main.ml | talex5/mirage-trace-dump-xen | 5e4a8806b7ae171a6e00ad9c7bc42589ef9bfc76 | [
"BSD-2-Clause"
] | null | null | null | lib/main.ml | talex5/mirage-trace-dump-xen | 5e4a8806b7ae171a6e00ad9c7bc42589ef9bfc76 | [
"BSD-2-Clause"
] | null | null | null | (* Copyright (C) 2014, Thomas Leonard *)
let save_as domid path =
let open Bigarray in
match Xen_trace_source.connect domid with
| `Error m -> `Error (false, m)
| `Ok source ->
let ba = Array1.create char c_layout (Xen_trace_source.size source) in
Xen_trace_source.load source ba;
begin match path w... | 32.907407 | 90 | 0.623523 |
8ad7f1627f5761919e4e38f40ccba963a42c8451 | 89,674 | ml | OCaml | trained/NYSE-MS-day-2014-08-12-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-08-12-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2014-08-12-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | 2 | 2020-05-03T11:14:09.000Z | 2021-11-18T10:26:30.000Z | [BASIC]
[BASIC:PARAMS]
[BASIC:NETWORK]
beginTraining=0
connectionLimit=0
contextTargetOffset=0,0,0
contextTargetSize=0,0,0
endTraining=2
hasContext=f
inputCount=180
layerCounts=4,37,181
layerFeedCounts=4,36,180
layerContextCount=0,0,0
layerIndex=0,4,41
output=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | 2,989.133333 | 27,259 | 0.816714 |
bc60b63ad368a20274cf9d563a4f762f0c2e48a6 | 15,897 | ml | OCaml | infer/src/base/CommandDoc.ml | andrecostea/infer | fac81e50e2a020d6c97b09c46eb32684ad318194 | [
"MIT"
] | null | null | null | infer/src/base/CommandDoc.ml | andrecostea/infer | fac81e50e2a020d6c97b09c46eb32684ad318194 | [
"MIT"
] | null | null | null | infer/src/base/CommandDoc.ml | andrecostea/infer | fac81e50e2a020d6c97b09c46eb32684ad318194 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module CLOpt = CommandLineOption
module L = Die
type data = {name: string; command_doc: CLOpt.command_doc}
let inferco... | 44.529412 | 113 | 0.614959 |
44a311ca2a78a530086a7e92a5ac5f6ede60454b | 1,240 | ml | OCaml | src/stdune/set.ml | zploskey/dune | 8bc5e202b7f192b965f59a975307f069d11133a4 | [
"MIT"
] | null | null | null | src/stdune/set.ml | zploskey/dune | 8bc5e202b7f192b965f59a975307f069d11133a4 | [
"MIT"
] | null | null | null | src/stdune/set.ml | zploskey/dune | 8bc5e202b7f192b965f59a975307f069d11133a4 | [
"MIT"
] | null | null | null | module type S = Set_intf.S
module Make(Elt : Comparable.S) : S with type elt = Elt.t = struct
module M = MoreLabels.Set.Make(struct
type t = Elt.t
let compare a b = Ordering.to_int (Elt.compare a b)
end)
include struct
[@@@warning "-32"]
(* [map] is only available since 4.04 *)
let map... | 24.313725 | 66 | 0.614516 |
bc3dd2f7045c39ed56e91e196e79bac8ad1a3541 | 3,507 | ml | OCaml | infer/src/erlang/ErlangBlock.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/erlang/ErlangBlock.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/erlang/ErlangBlock.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
module Env = ErlangEnvironment
module L = Logging
module Node = ErlangNode
type t = {start: Procdesc.Node.t; exit_succe... | 33.4 | 100 | 0.690048 |
8ab10e462a86fe0ee50a7efd40896dfd411d4de7 | 124 | ml | OCaml | 04-bigger-projects/fuzzy-finder/solutions/incremental/src/import.ml | ghuntley/learn-ocaml-workshop | 17ba08609a1a28ce2bd123b63ae8bfa489761acf | [
"Apache-2.0"
] | 4 | 2018-05-21T00:40:36.000Z | 2022-01-26T08:55:54.000Z | 04-bigger-projects/fuzzy-finder/solutions/incremental/src/import.ml | ghuntley/learn-ocaml-workshop | 17ba08609a1a28ce2bd123b63ae8bfa489761acf | [
"Apache-2.0"
] | null | null | null | 04-bigger-projects/fuzzy-finder/solutions/incremental/src/import.ml | ghuntley/learn-ocaml-workshop | 17ba08609a1a28ce2bd123b63ae8bfa489761acf | [
"Apache-2.0"
] | 3 | 2018-05-21T00:40:50.000Z | 2018-09-26T04:57:48.000Z | open! Base
module Incr = Incremental_lib.Incremental.Make ()
module Incr_map = Incr_map.Make(Incr)
module Time = Core.Time
| 20.666667 | 49 | 0.774194 |
bc0a907751bacf1781b316383ef05626ad12c13e | 10,993 | ml | OCaml | infer/src/nullsafe/eradicate.ml | krArrow/infer | ae3f1d79c9cec09242239360e459c077bc54a8aa | [
"MIT"
] | 1 | 2020-11-04T19:59:45.000Z | 2020-11-04T19:59:45.000Z | infer/src/nullsafe/eradicate.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | null | null | null | infer/src/nullsafe/eradicate.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module L = Logging
module F = Format
(* make sure that this is initialized *)
let () = NullsafeInit.init ()
let callba... | 44.506073 | 108 | 0.736014 |
44c86d13bfa5bdbaff0bf65b751d50f358769885 | 3,652 | ml | OCaml | src/dune/dep_rules.ml | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | src/dune/dep_rules.ml | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | src/dune/dep_rules.ml | Julow/dune | 2aac0728daa65780df9187a409a1c166ff9ab6bf | [
"MIT"
] | null | null | null | open! Import
open Build.O
let transitive_deps_contents modules =
List.map modules ~f:(fun m -> Module_name.to_string (Module.name m))
|> String.concat ~sep:"\n"
let ooi_deps cctx ~vlib_obj_map ~(ml_kind : Ml_kind.t) (m : Module.t) =
let cm_kind =
match ml_kind with
| Intf -> Cm_kind.Cmi
| Impl ->
... | 33.504587 | 80 | 0.684556 |
bc77225d0d2d201a9b2451a556c18df4129c259f | 2,385 | ml | OCaml | test/testBufferPool.ml | patilswapnilv/google-drive-ocamlfuse | 9459d2fec1d198f1960c80cd05f7b6909d75601b | [
"MIT"
] | null | null | null | test/testBufferPool.ml | patilswapnilv/google-drive-ocamlfuse | 9459d2fec1d198f1960c80cd05f7b6909d75601b | [
"MIT"
] | null | null | null | test/testBufferPool.ml | patilswapnilv/google-drive-ocamlfuse | 9459d2fec1d198f1960c80cd05f7b6909d75601b | [
"MIT"
] | null | null | null | open OUnit
open GapiUtils.Infix
let test_max_buffers () =
let buffer_pool = BufferPool.create ~pool_size:1000 ~buffer_size:100 in
let max_buffers = BufferPool.max_buffers buffer_pool in
assert_equal
~printer:string_of_int
10
max_buffers
let test_max_buffers_remainder () =
let buffer_pool = Buffer... | 32.22973 | 73 | 0.727883 |
bc4d1687d0489df610076240dea9ec15d525a9f4 | 7,921 | ml | OCaml | data/derived/comb/progs/unify/prog1153.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/prog1153.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1153.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.315615 | 148 | 0.696377 |
bc2ec38f0db0ce57d62875ecaf8d7035a0c33433 | 743 | ml | OCaml | server/alexa_home_automation.ml | jaaron/shades-controller | 2b88178db8f0bc2b7846366a933deecb5decaaae | [
"BSD-3-Clause"
] | 2 | 2018-07-23T15:58:28.000Z | 2021-06-14T10:31:55.000Z | server/alexa_home_automation.ml | jaaron/shades-controller | 2b88178db8f0bc2b7846366a933deecb5decaaae | [
"BSD-3-Clause"
] | null | null | null | server/alexa_home_automation.ml | jaaron/shades-controller | 2b88178db8f0bc2b7846366a933deecb5decaaae | [
"BSD-3-Clause"
] | 1 | 2018-12-02T01:09:18.000Z | 2018-12-02T01:09:18.000Z | (** types used by the Alexa Home Automation API,
* the Lambda function handling the skill backend
* just shunts these to this server.
*)
type supported_property = {
name : string;
} [@@deriving yojson];;
type endpoint_property = {
supported : supported_property list;
} [@@deriving yojson];;
type endpoint_capa... | 24.766667 | 56 | 0.717362 |
bc5e5cd067e3cad65638ce91e7996459a18423e7 | 453 | mli | OCaml | interprocedural_analyses/taint/backwardAnalysis.mli | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-08-08T16:01:55.000Z | 2020-08-08T16:01:55.000Z | interprocedural_analyses/taint/backwardAnalysis.mli | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 4 | 2022-02-15T02:42:33.000Z | 2022-02-28T01:30:07.000Z | interprocedural_analyses/taint/backwardAnalysis.mli | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-11-22T12:08:51.000Z | 2020-11-22T12:08:51.000Z | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Ast
open Analysis
open Statement
val run
: environment:TypeEnvironment.ReadOnly.t ->
qualifier:Reference.t ->
define:Define.t No... | 26.647059 | 66 | 0.757174 |
bc3c93eb494c5a397f54a4f9e7d026f2eeb0fbe3 | 337 | mli | OCaml | samples/openapi3/client/petstore/ocaml-client/src/apis/store_api.mli | aeternity/openapi-generator | 4c9d0234683e82335554573498282198a9e305da | [
"Apache-2.0"
] | null | null | null | samples/openapi3/client/petstore/ocaml-client/src/apis/store_api.mli | aeternity/openapi-generator | 4c9d0234683e82335554573498282198a9e305da | [
"Apache-2.0"
] | null | null | null | samples/openapi3/client/petstore/ocaml-client/src/apis/store_api.mli | aeternity/openapi-generator | 4c9d0234683e82335554573498282198a9e305da | [
"Apache-2.0"
] | null | null | null | (*
* This file has been generated by the OCamlClientCodegen generator for openapi-generator.
*
* Generated by: https://openapi-generator.tech
*
*)
val delete_order : string -> unit Lwt.t
val get_inventory : unit -> (string * int32) list Lwt.t
val get_order_by_id : int64 -> Order.t Lwt.t
val place_order : Order.t ... | 28.083333 | 90 | 0.718101 |
bc7c4d567e2303746e40197d4f0af975d704df6c | 4,394 | ml | OCaml | src/opamAction.ml | rbonichon/opam2nix | c320d6f1162d839d044c681cd58fd378a943ab6c | [
"MIT"
] | null | null | null | src/opamAction.ml | rbonichon/opam2nix | c320d6f1162d839d044c681cd58fd378a943ab6c | [
"MIT"
] | null | null | null | src/opamAction.ml | rbonichon/opam2nix | c320d6f1162d839d044c681cd58fd378a943ab6c | [
"MIT"
] | 1 | 2021-06-03T01:55:53.000Z | 2021-06-03T01:55:53.000Z | (* This module is a copy/pasted subset of upstream opamAction.ml,
to avoid a full dependency on opam-client *)
(**************************************************************************)
(* *)
(* Copyright 2012-2020 OCamlPro ... | 36.31405 | 80 | 0.532772 |
bc59bbf8de2d2ca5ea6031484171f2c701b95faf | 4,367 | mli | OCaml | tezt/lib_tezos/signer.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | tezt/lib_tezos/signer.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | tezt/lib_tezos/signer.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Nomadic Labs <contact@nomadic-labs.com> *)
... | 44.111111 | 80 | 0.587589 |
44ad3f13267761cb0bb6aafb099ecf980d3071f7 | 977 | ml | OCaml | setup.ml | chrismamo1/utop | f84b9b10ae0b9b58f2d41d4d5216891da4d49d55 | [
"BSD-3-Clause"
] | null | null | null | setup.ml | chrismamo1/utop | f84b9b10ae0b9b58f2d41d4d5216891da4d49d55 | [
"BSD-3-Clause"
] | null | null | null | setup.ml | chrismamo1/utop | f84b9b10ae0b9b58f2d41d4d5216891da4d49d55 | [
"BSD-3-Clause"
] | null | null | null | (*
* setup.ml
* --------
* Copyright : (c) 2012, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of utop.
*)
(* OASIS_START *)
#use "topfind";;
#require "oasis.dynrun";;
open OASISDynRun;;
(* OASIS_STOP *)
let search_compiler_libs () =
prerr_endline "I: Searching for OCaml comp... | 25.051282 | 117 | 0.628454 |
44a77440f40ba5e52336a2dc3e009057441005ea | 133 | ml | OCaml | src/refmterr/errs/print_func_parens.ml | prometheansacrifice/reason-native | a33f1528a6dd86c67f365e226c81312733181c87 | [
"MIT"
] | 439 | 2018-11-30T01:07:26.000Z | 2021-01-04T16:18:22.000Z | src/refmterr/errs/print_func_parens.ml | SNU-Programming-Tools/reason-native | 0ed854f986256e52e59aeecfa90e9af60f105b15 | [
"MIT"
] | 190 | 2018-11-30T00:40:08.000Z | 2020-12-05T01:01:07.000Z | src/refmterr/errs/print_func_parens.ml | SNU-Programming-Tools/reason-native | 0ed854f986256e52e59aeecfa90e9af60f105b15 | [
"MIT"
] | 35 | 2018-12-04T01:35:16.000Z | 2020-11-13T03:29:43.000Z | let () = print_string String.capitalize "asd"
(* err bc need parens, precedence *)
let () = print_string (String.capitalize "asd")
| 22.166667 | 47 | 0.699248 |
bc9a5743dea566bea726f3f822279a65890f61f8 | 2,142 | ml | OCaml | data/sp14_min/3150.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/3150.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/3150.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let l1 = [0; 0; 9; 9];;
let l2 = [1; 0; 0; 2];;
let x = (3, 3) :: (List.rev (List.combine l1 l2));;
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 ((Li... | 24.906977 | 79 | 0.535481 |
bc9106b03b52d2a6c8041022c0af294201df4f58 | 2,128 | ml | OCaml | resitve/day_2.ml | Gasper-Kozelj/AdventOfCode | ba22047b1a2fe74bc527d3f94b1351d2e04aa060 | [
"MIT"
] | null | null | null | resitve/day_2.ml | Gasper-Kozelj/AdventOfCode | ba22047b1a2fe74bc527d3f94b1351d2e04aa060 | [
"MIT"
] | null | null | null | resitve/day_2.ml | Gasper-Kozelj/AdventOfCode | ba22047b1a2fe74bc527d3f94b1351d2e04aa060 | [
"MIT"
] | null | null | null | let reverse sez =
let rec aux sez acc = match sez with
| [] -> acc
| x :: xs -> aux xs (x :: acc)
in
aux sez []
let sez_v_par sez = match sez with
| x :: y :: [] -> (x, int_of_string y)
| _ -> failwith "Nekaj je narobe."
let razbij sez =
let rec aux sez acc = match sez with
| [] -> acc
|... | 30.84058 | 87 | 0.646617 |
bc40634aef48b1fd85864881b11a17313a19efa3 | 997 | ml | OCaml | src/reason_toploop.ml | fredyr/reason-fork | d195f52841dc1d0f28a49445df944f7f435ebb06 | [
"BSD-3-Clause"
] | 1 | 2017-07-06T23:13:09.000Z | 2017-07-06T23:13:09.000Z | src/reason_toploop.ml | fredyr/reason-fork | d195f52841dc1d0f28a49445df944f7f435ebb06 | [
"BSD-3-Clause"
] | null | null | null | src/reason_toploop.ml | fredyr/reason-fork | d195f52841dc1d0f28a49445df944f7f435ebb06 | [
"BSD-3-Clause"
] | 1 | 2017-08-07T00:55:16.000Z | 2017-08-07T00:55:16.000Z | (* Portions Copyright (c) 2015-present, Facebook, Inc. All rights reserved. *)
let () =
if List.exists ((=) "camlp4o") !Topfind.predicates ||
List.exists ((=) "camlp4r") !Topfind.predicates then
print_endline "Reason is incompatible with camlp4!"
else begin
Toploop.parse_toplevel_phrase := Reason_uti... | 49.85 | 103 | 0.731194 |
bca9b15f74783a16cf1ab65c01efa9edf26183cf | 56,860 | ml | OCaml | herd/eventsMonad.ml | herd/herdtools7 | 04f1c0b6c09e8b22de9d5bfbd45ae2b01ce4d375 | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | herd/eventsMonad.ml | herd/herdtools7 | 04f1c0b6c09e8b22de9d5bfbd45ae2b01ce4d375 | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | herd/eventsMonad.ml | herd/herdtools7 | 04f1c0b6c09e8b22de9d5bfbd45ae2b01ce4d375 | [
"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... | 36.970091 | 122 | 0.533503 |
bc62baf16960117c8328b3d7e24a39acd7cc219c | 20,428 | ml | OCaml | data/derived/comb/progs/unify/prog6329.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/fa15/progs/unify/prog1484.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1484.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.598684 | 208 | 0.629234 |
44d2d44b1e1befdbde2165e062c2fef3f8459fd1 | 552 | ml | OCaml | data/sp14/0304.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/0304.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0304.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec append l1 l2 = match l1 with | [] -> l2 | h::t -> h :: (append t l2);;
let rec listReverse l =
match l with | [] -> [] | h::t -> append ((listReverse t), [h]);;
(* fix
let rec append l1 l2 = match l1 with | [] -> l2 | h::t -> h :: (append t l2);;
let rec listReverse l = match l with | [] -> [] | h::t ->... | 17.25 | 78 | 0.507246 |
bc9a31a1108ca23b7ec11b576d16f8c447d142b0 | 536 | ml | OCaml | src/article_author_avatar.ml | jchavarri/rescript-react-realworld-example-app | 3d26ad7c0a74069ed3b051c70833c5eba59e74da | [
"MIT"
] | 4 | 2022-01-23T17:03:10.000Z | 2022-03-04T12:51:49.000Z | src/article_author_avatar.ml | jchavarri/rescript-react-realworld-example-app | 3d26ad7c0a74069ed3b051c70833c5eba59e74da | [
"MIT"
] | null | null | null | src/article_author_avatar.ml | jchavarri/rescript-react-realworld-example-app | 3d26ad7c0a74069ed3b051c70833c5eba59e74da | [
"MIT"
] | 1 | 2022-03-24T21:14:59.000Z | 2022-03-24T21:14:59.000Z | open React.Dom.Dsl
open Html
let%component make ~article =
article
|> Async_result.getOk
|> Option.map (fun (ok : Shape.article_response) -> ok.author)
|> Option.map (fun (author : Shape.author) ->
Link.make
~onClick:(Link.profile ~username:author.username |> Link.location)
~children:
... | 25.52381 | 75 | 0.511194 |
bc10b3d3231cf577f832a1453bac33bb73ffed7e | 5,368 | mli | OCaml | trans/ils.mli | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | 1 | 2018-02-10T02:52:09.000Z | 2018-02-10T02:52:09.000Z | trans/ils.mli | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | trans/ils.mli | block8437/FailSafeC | 1458e382518ba8b56f680436873c3b42a89e1636 | [
"Apache-2.0"
] | null | null | null | (*
Part of Fail-Safe C Compiler. Produced by Yutaka Oiwa.
(c) 2001-2005 Yutaka Oiwa.
(c) 2005-2007 AIST.
This file is written by Yutaka Oiwa in 2003-2006. *)
(** ILS: an intermediate language with base/ofs separation *)
(** The type of IL in this module is used for both SSA/non-SSA representations. *)
... | 30.327684 | 131 | 0.755589 |
44bc20d9428d75dd030cc9591b3b6306b86c2184 | 3,849 | mli | OCaml | hack/utils/collections/lazy_string_table.mli | moroine/flow | c9ea44db14e30cb5ba7d25818e14c79c8070f507 | [
"MIT"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hack/utils/collections/lazy_string_table.mli | moroine/flow | c9ea44db14e30cb5ba7d25818e14c79c8070f507 | [
"MIT"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hack/utils/collections/lazy_string_table.mli | moroine/flow | c9ea44db14e30cb5ba7d25818e14c79c8070f507 | [
"MIT"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.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.
*
*)
open Core_kernel
(** [Lazy_string_table.t] provides a memoization cache for any
[(string * 'a) Sequence.t] wher... | 47.518519 | 80 | 0.728501 |
bc8475917b97096d64a74f111df1baaaa11b8828 | 1,044 | ml | OCaml | hphp/hack/src/server/ideProcessPipeInit.ml | lavagetto/hhvm | f9ed7ff466944c533733f3d49dcf6405c22ce57d | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2015-07-05T07:32:31.000Z | 2015-07-13T02:31:10.000Z | hphp/hack/src/server/ideProcessPipeInit.ml | h4ck3rm1k3/hhvm | 79e045f3ad1cbe079ff15c163131eb184db025f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/ideProcessPipeInit.ml | h4ck3rm1k3/hhvm | 79e045f3ad1cbe079ff15c163131eb184db025f9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open IdeProces... | 27.473684 | 80 | 0.72318 |
bca9d9b464a1be09fd597e30022e09d16b2dbb03 | 9,697 | mll | OCaml | src/lexer.mll | sagotch/pastek-lang | d2378a0dec0a6ddb17dd58c81990200c33ad1e11 | [
"MIT"
] | 2 | 2016-06-02T23:39:00.000Z | 2016-12-28T03:34:25.000Z | src/lexer.mll | sagotch/pastek-lang | d2378a0dec0a6ddb17dd58c81990200c33ad1e11 | [
"MIT"
] | 3 | 2015-01-09T12:27:14.000Z | 2015-12-28T10:10:33.000Z | src/lexer.mll | sagotch/pastek-lang | d2378a0dec0a6ddb17dd58c81990200c33ad1e11 | [
"MIT"
] | null | null | null | {
open Buffer
open Parser
(* token list addition operator *)
let ( <<< ) acc buf =
match contents buf with
| "" -> acc
| txt -> PLAIN txt :: acc
let ( << ) acc tok = tok :: acc
(* Buffer addition operators *)
let ( >>> ) str buff = Buffer.add_string buff str; buff
let ( >> ) c buff = B... | 48.00495 | 79 | 0.454058 |
bc704ac2303306401bde8eacdc42471d946ce4f6 | 13,643 | ml | OCaml | api/processor.ml | firewall2142/Dedukti | c65e7e66fe4bb8285db1856b8fe2a2532da2bd50 | [
"CECILL-B"
] | 160 | 2017-11-16T16:16:09.000Z | 2022-03-03T07:14:11.000Z | api/processor.ml | firewall2142/Dedukti | c65e7e66fe4bb8285db1856b8fe2a2532da2bd50 | [
"CECILL-B"
] | 188 | 2017-11-24T18:14:54.000Z | 2022-03-17T09:11:41.000Z | api/processor.ml | firewall2142/Dedukti | c65e7e66fe4bb8285db1856b8fe2a2532da2bd50 | [
"CECILL-B"
] | 19 | 2018-02-09T10:18:02.000Z | 2022-02-26T13:05:00.000Z | open Kernel
open Basic
open Parsers
module type CustomEnv = module type of Env with type t = Env.t
module type S = sig
type t
(** [handle_entry env entry] processed the entry [entry] in the environment [env] *)
val handle_entry : Env.t -> Parsers.Entry.entry -> unit
(** [get_data ()] returns the data comput... | 32.795673 | 86 | 0.590559 |
bc7864e8a0236f745cb7757286c78619201a680d | 2,069 | ml | OCaml | test/test.ml | fccm/ocaml-dlffi | 4d0c26e3c7f37e531c9e12ef8dccd742fe0307ad | [
"0BSD"
] | 2 | 2015-11-08T02:32:39.000Z | 2016-10-21T11:31:30.000Z | test/test.ml | fccm/ocaml-dlffi | 4d0c26e3c7f37e531c9e12ef8dccd742fe0307ad | [
"0BSD"
] | null | null | null | test/test.ml | fccm/ocaml-dlffi | 4d0c26e3c7f37e531c9e12ef8dccd742fe0307ad | [
"0BSD"
] | null | null | null | (* Copyright (c) 2010 Florent Monnier *)
open Dlffi
let handle_return = function
| Int v -> Printf.printf "ocaml: got (Int %d)\n%!" v
| Float v -> Printf.printf "ocaml: got (Float %g)\n%!" v
| Double v -> Printf.printf "ocaml: got (Double %g)\n%!" v
| String v -> Printf.printf "ocaml: got (String \"%s\")\n... | 31.830769 | 78 | 0.644756 |
44eb99542874aee8783ff5fe7a9ac30159ffdd8f | 523 | mli | OCaml | src/l2-lib/v1_engine.mli | nguyenkvi/comp403s18-L2 | d799fbd02d23a85491b68fc4516332eb2c397c5a | [
"Apache-2.0"
] | null | null | null | src/l2-lib/v1_engine.mli | nguyenkvi/comp403s18-L2 | d799fbd02d23a85491b68fc4516332eb2c397c5a | [
"Apache-2.0"
] | null | null | null | src/l2-lib/v1_engine.mli | nguyenkvi/comp403s18-L2 | d799fbd02d23a85491b68fc4516332eb2c397c5a | [
"Apache-2.0"
] | null | null | null | open Core
open Collections
open Infer
type config = {
verbosity: int;
untyped: bool;
deduction: bool;
infer_base: bool;
max_exhaustive_depth: int;
flat_cost:bool;
}
val default_init : TypedExpr.t List.t
(* val extended_init : TypedExpr.t List.t *)
(* val default_operators : Expr.Op.t List.t *)
(* va... | 18.678571 | 46 | 0.636711 |
af759a0e7bef3fec7db1de2292434f9cbbec90df | 989 | ml | OCaml | data/fa15/3227.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/3227.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/3227.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec mulByDigit i l =
match l with
| [] -> []
| x::x'::x'' ->
[(x * i) / 10] @ ([((x * i) mod 10) + x'] @ ((mulByDigit i x') :: x''));;
(* fix
let rec mulByDigit i l =
match l with
| [] -> []
| x::x'::x'' ->
[(x * i) / 10] @
([((x * i) mod 10) + x'] @ ((mulByDigit i [x']) @ x''));... | 13.736111 | 79 | 0.402427 |
44eb9d80146062cb557c4756ce5602dbd052b207 | 1,218 | ml | OCaml | src/lib/pickles_types/hlist0.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | 2 | 2020-11-14T20:16:02.000Z | 2021-08-19T12:44:52.000Z | src/lib/pickles_types/hlist0.ml | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | 11 | 2021-09-02T10:10:36.000Z | 2022-02-27T08:56:41.000Z | src/lib/pickles_types/hlist0.ml | obazl/mina | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | 3 | 2021-03-14T18:19:04.000Z | 2021-03-25T16:37:07.000Z | module Length = struct
type (_, _) t =
| Z : (unit, Nat.z) t
| S : ('tail, 'n) t -> ('a * 'tail, 'n Nat.s) t
let rec to_nat : type xs n. (xs, n) t -> n Nat.t = function
| Z ->
Z
| S n ->
S (to_nat n)
type 'xs n = T : 'n Nat.t * ('xs, 'n) t -> 'xs n
let rec contr : type xs n m.... | 19.967213 | 73 | 0.42775 |
bc7dfb3c3952f779a1cf0c3d911fac8290381555 | 652 | ml | OCaml | src/lib/ledger_proof/ledger_proof_intf.ml | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/lib/ledger_proof/ledger_proof_intf.ml | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | null | null | null | src/lib/ledger_proof/ledger_proof_intf.ml | nireno/coda | 40c1957c788a021c7bc25cf1e0b8ea8d5770d2d9 | [
"Apache-2.0"
] | null | null | null | open Coda_base
module type S = sig
(* bin_io omitted intentionally *)
type t [@@deriving sexp, to_yojson]
module Stable :
sig
module V1 : sig
type t [@@deriving bin_io, compare, sexp, version, to_yojson]
end
module Latest = V1
end
with type V1.t = t
val create :
... | 21.032258 | 78 | 0.665644 |
bc48ebc627222d459425e02e955bb8490624ba4a | 2,513 | mly | OCaml | unparser/lab/lib/q_parser.mly | spiral-software/spiral-package-quantum | dd2323983495adbbc6261c0cdf840320d19d099d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | unparser/lab/lib/q_parser.mly | spiral-software/spiral-package-quantum | dd2323983495adbbc6261c0cdf840320d19d099d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | unparser/lab/lib/q_parser.mly | spiral-software/spiral-package-quantum | dd2323983495adbbc6261c0cdf840320d19d099d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | %{
(*
# Copyright (c) 2018-2020, Carnegie Mellon University
# See LICENSE for details
#
# Some materials taken from CMU 15-411 Starter Code
#
# Parser
#
*)
let mark
(data : 'a)
(start_pos : Lexing.position)
(end_pos : Lexing.position) : 'a Mark.t =
let src_span = Mark.of_positions start_pos end_pos in
Mark.m... | 18.614815 | 88 | 0.559491 |
44be5401040ad69ab3cc322b0f5d295ca1af9102 | 218 | mli | OCaml | libraries/elasticache/lib/addTagsToResource.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticache/lib/addTagsToResource.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/elasticache/lib/addTagsToResource.mli | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = AddTagsToResourceMessage.t
type output = TagListMessage.t
type error = Errors_internal.t
include
(Aws.Call with type input := input and type output := output and type
error := error) | 31.142857 | 75 | 0.738532 |
44c97e2f6920f520e569bcc846810058f1a4e869 | 542 | ml | OCaml | backend/cn/assertion_parser_util.ml | vzaliva/cerberus | eb70aa3a9222f54b494552ac04e56a6f03611b16 | [
"BSD-2-Clause"
] | null | null | null | backend/cn/assertion_parser_util.ml | vzaliva/cerberus | eb70aa3a9222f54b494552ac04e56a6f03611b16 | [
"BSD-2-Clause"
] | null | null | null | backend/cn/assertion_parser_util.ml | vzaliva/cerberus | eb70aa3a9222f54b494552ac04e56a6f03611b16 | [
"BSD-2-Clause"
] | 1 | 2022-02-22T05:55:37.000Z | 2022-02-22T05:55:37.000Z | (* adapting from core_parser_util *)
type token =
| Z of Z.t
| NAME of string
| TRUE
| FALSE
| LET
| EQUAL
| UNCHANGED
| PLUS
| MINUS
| STAR
| SLASH
| POWER
| PERCENT
| FLIPBIT
| EQ
| NE
| LT
| GT
| LE
| GE
| LPAREN
| RPAREN
| LBRACKET
| RBRACKET
| LBRACE
| RBR... | 8.741935 | 36 | 0.52952 |
bc70d7de1f963f0c51658b3d4f80faf16cd2e350 | 1,244 | ml | OCaml | protocol/update_valid_users_and_aliases.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | protocol/update_valid_users_and_aliases.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | protocol/update_valid_users_and_aliases.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | module Stable = struct
open! Import_stable
module User_aliases = struct
module V1 = struct
type t =
{ user_name : User_name.V1.t
; aliases : Alternate_name.V1.t list
}
[@@deriving bin_io, sexp]
let%expect_test _ =
print_endline [%bin_dig... | 23.037037 | 60 | 0.603698 |
bc2b936fc17691c7b0a1e77c8f64e2bbb0ff4431 | 76 | ml | OCaml | example_router/src/routes.ml | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 2 | 2018-07-21T13:30:51.000Z | 2021-07-20T11:26:54.000Z | example_router/src/routes.ml | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 1 | 2017-03-30T04:24:57.000Z | 2017-03-30T04:25:40.000Z | example_router/src/routes.ml | holyshared/ocaml-scrap | 922e2805e3f9e738cfb68ec052cb811a488f45d1 | [
"MIT"
] | 1 | 2021-07-20T11:24:30.000Z | 2021-07-20T11:24:30.000Z | type t = Route.routed_handler list
module type S = sig
val routes: t
end
| 12.666667 | 34 | 0.723684 |
44ca827ce51e69b3bde3fd79edb98494dccaf877 | 1,431 | ml | OCaml | HW-4/fbdk-1.23/src/FbSR/fbdktoploop.ml | thewickedaxe/Programming-Languages---600.426 | 9c903f406c835f22fd9763f0a8fbcfc4db4cda64 | [
"MIT"
] | 1 | 2019-03-08T17:20:09.000Z | 2019-03-08T17:20:09.000Z | HW-5/fbdk-1.23/src/FbSR/fbdktoploop.ml | thewickedaxe/Programming-Languages---600.426 | 9c903f406c835f22fd9763f0a8fbcfc4db4cda64 | [
"MIT"
] | null | null | null | HW-5/fbdk-1.23/src/FbSR/fbdktoploop.ml | thewickedaxe/Programming-Languages---600.426 | 9c903f406c835f22fd9763f0a8fbcfc4db4cda64 | [
"MIT"
] | null | null | null | (*
File: fbdktoploop.ml
Author: Scott Smith
This file allows interactive testing of your interpreter using the FbDK.
Before this file can be #use-d you need to execute
make byte
from the src/ directory of the FbDK-1.1 distribution.
*)
(* First load all the relevant compiled structs. These c... | 20.73913 | 77 | 0.657582 |
bca44fdc3d49c2deb68ff1c5dd368948936894f0 | 1,098 | ml | OCaml | src/notations.ml | codeanonorg/Autowp | eb46e5408ef6f0f4b57c1b7230d4b1156b21ab4f | [
"MIT"
] | 4 | 2020-11-09T15:55:44.000Z | 2021-05-12T12:02:38.000Z | src/notations.ml | codeanonorg/Autowp | eb46e5408ef6f0f4b57c1b7230d4b1156b21ab4f | [
"MIT"
] | null | null | null | src/notations.ml | codeanonorg/Autowp | eb46e5408ef6f0f4b57c1b7230d4b1156b21ab4f | [
"MIT"
] | null | null | null | (**
Notations to write IMP programs and their specification
in OCaml.
*)
open Imp
open Logic
(** {2 Programs} *)
(** Affectation *)
let (<--) a b = Aff (a, b)
(** Condition (If) *)
let ifThen a b = If (a, b)
(** Condition (If else) *)
let ifElse a b c = IfElse (a, b, c)
(** Equality test *)
let eq a b = Pr... | 15.913043 | 58 | 0.478142 |
bc5f9361ce0827cee45e63b83f96427a2d8fcd98 | 471 | mli | OCaml | src/simple_type.mli | LaurentMazare/cmt-fun | 29581b968ed58929a41c237a414a56ece663f9ce | [
"Apache-2.0"
] | 5 | 2020-01-02T12:47:43.000Z | 2020-01-03T16:11:49.000Z | src/simple_type.mli | LaurentMazare/cmt-fun | 29581b968ed58929a41c237a414a56ece663f9ce | [
"Apache-2.0"
] | null | null | null | src/simple_type.mli | LaurentMazare/cmt-fun | 29581b968ed58929a41c237a414a56ece663f9ce | [
"Apache-2.0"
] | null | null | null | open Base
module Arg : sig
type t = Asttypes.arg_label =
| Nolabel
| Labelled of string
| Optional of string
end
type t =
| Atom of Module_env.P.t * string
| Tuple2 of t * t
| Tuple3 of t * t * t
| Tuple4 of t * t * t * t
| Tuple5 of t * t * t * t * t
| Arrow of Arg.t * t * t
| Apply of t ... | 21.409091 | 70 | 0.596603 |
bc7f519d5821a256f669ff142cd9c3fddcaf336b | 15,848 | ml | OCaml | hphp/hack/src/typing/nastInitCheck.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/typing/nastInitCheck.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nastInitCheck.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"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.
*
*)
(* Module checking that all the class members are properly initialized.
* To be more precise, this checks that if t... | 28.76225 | 80 | 0.606007 |
bc69683fa88bc5871decaf5bcbce9e0c9a51e712 | 1,702 | ml | OCaml | test/consumer.ml | CraigFe/ocaml-crunch | 38550b6b40ef6c6410b81b830917d948639650bc | [
"0BSD"
] | 50 | 2015-01-01T20:18:09.000Z | 2022-03-08T07:25:53.000Z | test/consumer.ml | CraigFe/ocaml-crunch | 38550b6b40ef6c6410b81b830917d948639650bc | [
"0BSD"
] | 17 | 2015-03-09T21:30:34.000Z | 2021-04-21T17:11:48.000Z | test/consumer.ml | CraigFe/ocaml-crunch | 38550b6b40ef6c6410b81b830917d948639650bc | [
"0BSD"
] | 18 | 2015-02-03T10:29:15.000Z | 2022-02-21T10:18:39.000Z | open Lwt.Infix
let key s = Mirage_kv.Key.v s
let size t1 key =
T1.get t1 key >|= function
| Ok r -> Ok (String.length r)
| Error e -> Error e
let main =
T1.connect() >>= fun src ->
(T1.get src (key "a") >>= function
| Ok res ->
if res = "foo\n" then
(print_endline "read a successfully" ; ... | 36.212766 | 99 | 0.569918 |
bcb4f7164096729227da2383478f87d7b6181337 | 492 | ml | OCaml | bootstrap/test/basis/i64/test_of_sint_to_sint.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2021-08-13T04:54:39.000Z | 2021-08-13T04:54:39.000Z | bootstrap/test/basis/i64/test_of_sint_to_sint.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2020-02-14T19:21:40.000Z | 2020-02-14T19:21:40.000Z | bootstrap/test/basis/i64/test_of_sint_to_sint.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | null | null | null | open! Basis.Rudiments
open! Basis
open I64
open Format
let test () =
printf "@[<h>";
let rec test_xs xs = begin
match xs with
| [] -> ()
| x :: xs' -> begin
let sx = x in
printf "to_sint %a -> %a; of_sint -> %a\n"
pp_x x Sint.pp_x sx pp_x sx;
test_xs xs'
end
en... | 15.870968 | 50 | 0.518293 |
bc975797fc4645ff14ccf559320e3ab671c1779a | 785 | ml | OCaml | tests/try_ex2.ml | c-cube/bare-ocaml | d4705aedb1d1cd0dd24658a9d9deaa75b3165779 | [
"MIT"
] | 19 | 2020-09-01T06:12:11.000Z | 2022-01-24T19:17:47.000Z | tests/try_ex2.ml | c-cube/bare-ocaml | d4705aedb1d1cd0dd24658a9d9deaa75b3165779 | [
"MIT"
] | 3 | 2020-09-04T15:56:56.000Z | 2020-09-21T21:58:01.000Z | tests/try_ex2.ml | c-cube/bare-ocaml | d4705aedb1d1cd0dd24658a9d9deaa75b3165779 | [
"MIT"
] | 2 | 2020-09-05T10:30:05.000Z | 2020-09-11T14:51:51.000Z |
module E = Example2
module Bare = Bare_encoding
let () =
print_endline ">>> run encoding test 2";
let p1 = E.PTreeNode {
left=E.PTreeNil;
person={E.Person.first="jean"; last="valjean"};
right=E.PTreeNode{
left=E.PTreeNil;
person={E.Person.first="something something"; last="ja... | 23.088235 | 72 | 0.616561 |
bc698f7d4d51c9a608ef0f96bf86dc9bb2d38fee | 3,009 | ml | OCaml | protocol/dump.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | protocol/dump.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | protocol/dump.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | module Stable = struct
open! Import_stable
module Which_user_info = struct
module V1 = struct
type t =
| Aliases
| Existing_users
| Typos
| Valid_users
[@@deriving bin_io, sexp]
let%expect_test _ =
print_endline [%bin_digest: t];
[%expect {| 8... | 31.020619 | 91 | 0.479229 |
44d4fb0c81f5154baf699d4d62f75fe2e384ee9d | 49 | ml | OCaml | codegen/testdata/external_function_var.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 770 | 2017-01-25T13:29:15.000Z | 2022-03-28T01:11:57.000Z | codegen/testdata/external_function_var.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 22 | 2017-02-21T03:01:15.000Z | 2020-02-27T15:56:40.000Z | codegen/testdata/external_function_var.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 37 | 2017-02-26T07:22:24.000Z | 2022-03-27T18:26:14.000Z | let rec ext_fun _ = print_int in
(ext_fun ()) 42
| 16.333333 | 32 | 0.693878 |
8a653f585b17d9567660de1421bc5f867181f45d | 194,820 | ml | OCaml | third_party/flow/src/typing/type_inference_js.ml | bowlofstew/kythe | 23a3524de3924901ffaba4b8bcab8abe96de6f3a | [
"Apache-2.0"
] | 1 | 2021-04-24T08:18:15.000Z | 2021-04-24T08:18:15.000Z | third_party/flow/src/typing/type_inference_js.ml | bowlofstew/kythe | 23a3524de3924901ffaba4b8bcab8abe96de6f3a | [
"Apache-2.0"
] | 3 | 2020-12-31T09:08:34.000Z | 2021-09-28T05:42:02.000Z | third_party/flow/src/typing/type_inference_js.ml | moul/kythe | 2e198cc818981fc6cffa14d8263fda3a33da6429 | [
"Apache-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(* This modul... | 34.457022 | 99 | 0.612904 |
44b1f01ce4df3d83cf8d3e2ccddb4e92154dc8ec | 4,594 | ml | OCaml | core/test/src/test_filename.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | core/test/src/test_filename.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | core/test/src/test_filename.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | open! Core
open! Import
open! Filename
open Poly
let%test _ = split_extension "/foo/my_file" = ("/foo/my_file", None)
let%test _ = split_extension "/foo/my_file.txt" = ("/foo/my_file", Some "txt")
let%test _ = split_extension "/foo/my_file.1.txt" = ("/foo/my_file.1", Some "txt")
let%test _ = split_extension "/home/c.f... | 33.289855 | 109 | 0.578798 |
bc05bce82fd0091714e30e76d3b45b78599d10d6 | 4,435 | ml | OCaml | libraries/ec2/lib/rejectTransitGatewayVpcAttachment.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/rejectTransitGatewayVpcAttachment.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/rejectTransitGatewayVpcAttachment.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module RejectTransitGatewayVpcAttachmentRequest =
struct
type t =
{
transit_gateway_attachment_id: String.t
[@ocaml.doc "<p>The ID of the attachment.</p>"];
dry_run: Boolean.t option
[@ocaml.doc
... | 36.652893 | 297 | 0.601804 |
bc1d7c79cab60ff4d7c46f66cd3f7cc681484509 | 243 | ml | OCaml | test/com/facebook/buck/features/ocaml/testdata/ocaml/calc/calc.ml | fkorotkov/buck | 4d63790ceda1028281600af9cf75153ccb92a5f5 | [
"Apache-2.0"
] | 8,027 | 2015-01-02T05:31:44.000Z | 2022-03-31T07:08:09.000Z | test/com/facebook/buck/features/ocaml/testdata/ocaml/calc/calc.ml | fkorotkov/buck | 4d63790ceda1028281600af9cf75153ccb92a5f5 | [
"Apache-2.0"
] | 2,355 | 2015-01-01T15:30:53.000Z | 2022-03-30T20:21:16.000Z | test/com/facebook/buck/features/ocaml/testdata/ocaml/calc/calc.ml | fkorotkov/buck | 4d63790ceda1028281600af9cf75153ccb92a5f5 | [
"Apache-2.0"
] | 1,280 | 2015-01-09T03:29:04.000Z | 2022-03-30T15:14:14.000Z | let _ =
try
let lexbuf = Lexing.from_channel stdin in
while true do
let result = Parser.main Lexer.token lexbuf in
print_int result;
print_newline();
flush stdout
done
with Lexer.Eof ->
exit 0
| 20.25 | 52 | 0.613169 |
bc9f854fa2e31606f2a0f99f44885b9ec85bc656 | 3,505 | ml | OCaml | src/app/rosetta/lib/signer.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/app/rosetta/lib/signer.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | null | null | null | src/app/rosetta/lib/signer.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | null | null | null | (* A to-spec signer library that uses internal coda libs *)
open Core_kernel
open Signature_lib
open Rosetta_lib
open Rosetta_coding
module Signature = Mina_base.Signature
module User_command = Mina_base.User_command
module Signed_command = Mina_base.Signed_command
module Keys = struct
type t = {keypair: Keypair.t;... | 36.134021 | 78 | 0.743224 |
447871e9cd9d72fd9d19320abf1b6074c997830c | 4,224 | ml | OCaml | src/parameter.ml | nickdecr/hardcaml | b1222bf55c927fa0c9200388068662ac32bfe24d | [
"MIT"
] | 372 | 2018-05-25T10:51:24.000Z | 2022-03-25T14:38:34.000Z | src/parameter.ml | nickdecr/hardcaml | b1222bf55c927fa0c9200388068662ac32bfe24d | [
"MIT"
] | 9 | 2018-07-15T02:52:39.000Z | 2022-01-05T15:11:16.000Z | src/parameter.ml | nickdecr/hardcaml | b1222bf55c927fa0c9200388068662ac32bfe24d | [
"MIT"
] | 18 | 2018-08-12T06:08:50.000Z | 2022-02-22T11:42:17.000Z | open Base
module type Unstable = sig
type t [@@deriving compare, sexp]
end
module Unstable = struct
module Std_logic = struct
type t =
| U
| X
| L0
| L1
| Z
| W
| L
| H
| Don't_care
[@@deriving compare, enumerate, sexp, variants]
end
module Std_lo... | 22.468085 | 86 | 0.583333 |
bc60a7851b2d02e721d8e660cb826a3421ab43e7 | 26,454 | ml | OCaml | src/ast.ml | Coda-Coda/archetype-lang | 711cd7b0fcc846a8a3558c09ca8a0560ec398227 | [
"MIT"
] | null | null | null | src/ast.ml | Coda-Coda/archetype-lang | 711cd7b0fcc846a8a3558c09ca8a0560ec398227 | [
"MIT"
] | null | null | null | src/ast.ml | Coda-Coda/archetype-lang | 711cd7b0fcc846a8a3558c09ca8a0560ec398227 | [
"MIT"
] | null | null | null | open Location
open Ident
type lident = ident loced
let pp_ident fmt i = Format.fprintf fmt "%s" i
let pp_lident fmt i = Format.fprintf fmt "%s" (unloc i)
type container =
| Collection
| Aggregate
| Partition
| View
[@@deriving show {with_path = false}]
type currency =
| Tz
| Mtz
| Utz
[@@deriving show... | 28.537217 | 209 | 0.609435 |
4482ec61dfdc915c630fc2a226fd479e16f63302 | 32,327 | ml | OCaml | hphp/hack/src/typing/typing_extends.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/typing/typing_extends.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_extends.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"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.
*
*)
(*****************************************************************************)
(* Checks that a class implements an... | 35.602423 | 83 | 0.652798 |
bcc0c690ae902ab5df6fd78ee90b018a209da3e9 | 1,441 | ml | OCaml | B0.ml | b0-system/b0caml | 38d212b61a8080fd8177ab8604c00ec4f5fa599e | [
"0BSD"
] | 15 | 2019-10-02T20:16:46.000Z | 2021-11-04T10:04:54.000Z | B0.ml | b0-system/b0caml | 38d212b61a8080fd8177ab8604c00ec4f5fa599e | [
"0BSD"
] | null | null | null | B0.ml | b0-system/b0caml | 38d212b61a8080fd8177ab8604c00ec4f5fa599e | [
"0BSD"
] | null | null | null | open B0_kit.V000
open B00_std
(* OCaml library names *)
let cmdliner = B0_ocaml.libname "cmdliner"
let b0_b00_std = B0_ocaml.libname "b0.b00.std"
let b0_b00 = B0_ocaml.libname "b0.b00"
let b0_b00_kit = B0_ocaml.libname "b0.b00.kit"
let b0caml = B0_ocaml.libname "b0caml"
(* Units *)
let b0caml_lib =
let requires =... | 33.511628 | 73 | 0.681471 |
44f141c8aa3358d012559a717bd1e4aac06c1e04 | 24,122 | ml | OCaml | pptinyocaml.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | pptinyocaml.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | pptinyocaml.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | open Tinyocaml
open Asttypes
open Parsetree
let debug = ref false
(* Use bold and underlining *)
let syntax = ref true
(* To output \textbf{} and \underline{} for thesis writing. *)
let syntax_tex = ref false
(* If true, whole program printed on one line *)
let simple = ref false
let is_operator_char = function
... | 29.597546 | 115 | 0.540005 |
bca46b3448781f1f84a06b66a7cb389c2815ca36 | 1,114 | ml | OCaml | data/fa15/2067.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2067.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2067.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ x) in
let base = h in let l = t in List.fold_left f base l;;
let stringOfList f l = sepConcat "; " List.map (f, l);;
(* fix
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ... | 14.657895 | 60 | 0.469479 |
bcaf0961c274b332e7501f498ce1d36e221046e0 | 6,133 | mli | OCaml | src/sets.mli | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | 3 | 2020-07-23T15:11:49.000Z | 2020-08-25T11:56:33.000Z | src/sets.mli | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | null | null | null | src/sets.mli | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | 4 | 2020-05-14T22:47:12.000Z | 2020-12-16T09:54:31.000Z | (*
* The MIT License (MIT)
*
* Copyright (c) 2020 SRI International
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* t... | 35.656977 | 81 | 0.648459 |
44a46ea75147abce79534b8f127bb4d208391d4e | 33,335 | ml | OCaml | src/frontend/query_commands.ml | gpetiot/merlin | 6060708fd70224d4d6540179af5c4aca33d497d2 | [
"MIT"
] | null | null | null | src/frontend/query_commands.ml | gpetiot/merlin | 6060708fd70224d4d6540179af5c4aca33d497d2 | [
"MIT"
] | null | null | null | src/frontend/query_commands.ml | gpetiot/merlin | 6060708fd70224d4d6540179af5c4aca33d497d2 | [
"MIT"
] | 1 | 2019-10-23T21:29:19.000Z | 2019-10-23T21:29:19.000Z | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby... | 38.097143 | 95 | 0.632248 |
8aab3f7fd074de266f8b5bcfa932db2fc9b0c4cd | 2,066 | mli | OCaml | rock/src/request.mli | ywnv/opium | 6e2bce2354e5385ba98b8e507d639addb98cc613 | [
"MIT"
] | 683 | 2015-01-08T20:21:40.000Z | 2022-02-23T08:40:16.000Z | rock/src/request.mli | ywnv/opium | 6e2bce2354e5385ba98b8e507d639addb98cc613 | [
"MIT"
] | 157 | 2015-01-25T23:36:45.000Z | 2022-03-28T15:14:55.000Z | rock/src/request.mli | ywnv/opium | 6e2bce2354e5385ba98b8e507d639addb98cc613 | [
"MIT"
] | 71 | 2015-02-03T14:12:24.000Z | 2022-01-29T08:26:25.000Z | (** Module to create HTTP requests. *)
type t =
{ version : Httpaf.Version.t
; target : string
; headers : Httpaf.Headers.t
; meth : Httpaf.Method.t
; body : Body.t
; env : Context.t
}
(** {1 Constructors} *)
(** {3 [make]} *)
(** [make ?version ?body ?env ?headers target method] creates a new request... | 23.213483 | 90 | 0.629235 |
bc87eaf9c0e1927683b00fb411a832e7a4969ca4 | 236 | ml | OCaml | unix/lex_yacc/calc/calc.ml | yimng/personal-stuff | 48b426ea6b8d22c5e63b3528a146bf3562c5b4a9 | [
"MIT"
] | 1 | 2017-06-26T01:23:38.000Z | 2017-06-26T01:23:38.000Z | unix/lex_yacc/calc/calc.ml | yimng/personal-stuff | 48b426ea6b8d22c5e63b3528a146bf3562c5b4a9 | [
"MIT"
] | null | null | null | unix/lex_yacc/calc/calc.ml | yimng/personal-stuff | 48b426ea6b8d22c5e63b3528a146bf3562c5b4a9 | [
"MIT"
] | null | null | null | let _ =
try
let lexbuf = Lexing.from_channel stdin in
while true do
let result = Parser.main Lexer.token lexbuf in
print_int result; print_newline(); flush stdout
done
with Lexer.Eof ->
exit 0
| 21.454545 | 54 | 0.631356 |
bcbfc36d3051e47947f3473e6c8edcdcf2bc60f8 | 97 | ml | OCaml | vendor/core_kernel/src/fn.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | vendor/core_kernel/src/fn.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | vendor/core_kernel/src/fn.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | (** Extends {{!Base.Fn}[Base.Fn]}. *)
include Base.Fn (** @open *)
include Deprecate_pipe_bang
| 16.166667 | 37 | 0.639175 |
bc87eaf69d23349d0c3f5bde1be89b87f7ea35f5 | 72 | mli | OCaml | src/record_generator.mli | janestreet/ppx_typed_fields | d9a109286d1a6e3aa981daf88e7561eec0558987 | [
"MIT"
] | 9 | 2021-08-16T01:44:24.000Z | 2022-03-30T18:00:36.000Z | src/record_generator.mli | janestreet/ppx_typed_fields | d9a109286d1a6e3aa981daf88e7561eec0558987 | [
"MIT"
] | null | null | null | src/record_generator.mli | janestreet/ppx_typed_fields | d9a109286d1a6e3aa981daf88e7561eec0558987 | [
"MIT"
] | 1 | 2021-12-17T02:48:14.000Z | 2021-12-17T02:48:14.000Z | open Ppxlib
include Product_kind_intf.S with type t = label_declaration
| 24 | 59 | 0.847222 |
bc4781e49564ab5b21b28435944c8cfde5dfecca | 14,763 | ml | OCaml | src/ecOptions.ml | oskgo/easycrypt | 38c4947433b1a42896540edfa534f76502fc8f92 | [
"MIT"
] | null | null | null | src/ecOptions.ml | oskgo/easycrypt | 38c4947433b1a42896540edfa534f76502fc8f92 | [
"MIT"
] | null | null | null | src/ecOptions.ml | oskgo/easycrypt | 38c4947433b1a42896540edfa534f76502fc8f92 | [
"MIT"
] | null | null | null | (* -------------------------------------------------------------------- *)
open EcUtils
open EcMaps
(* -------------------------------------------------------------------- *)
type command = [
| `Compile of cmp_option
| `Cli of cli_option
| `Config
| `Why3Config
]
and options = {
o_options : glb_options;
o_c... | 30.439175 | 92 | 0.550701 |
44fb467abd89d16bd54464597bb9b92b2a14313d | 1,484 | ml | OCaml | hphp/hack/src/parser/full_fidelity_type_lexer.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_type_lexer.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_type_lexer.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"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.
*
*)
(* This lexer... | 44.969697 | 80 | 0.830189 |
bcb299ff3dc63c645ace6c87ccb4b09d994b9554 | 65,527 | ml | OCaml | analysis/test/integration/typedDictionaryTest.ml | KaisongHuang/pyre-check | 12e0804b72a8c39318245fa56349806ee8bf8116 | [
"MIT"
] | null | null | null | analysis/test/integration/typedDictionaryTest.ml | KaisongHuang/pyre-check | 12e0804b72a8c39318245fa56349806ee8bf8116 | [
"MIT"
] | null | null | null | analysis/test/integration/typedDictionaryTest.ml | KaisongHuang/pyre-check | 12e0804b72a8c39318245fa56349806ee8bf8116 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open OUnit2
open IntegrationTest
open Test
let test_check_typed_dictionaries context =
let assert_test_typed_dictionary source =
let m... | 32.600498 | 109 | 0.582905 |
44fd7690f926189dcabccd802672f5c7e4a4cffd | 1,314 | mli | OCaml | herd/BellBarrier.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | herd/BellBarrier.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 4 | 2021-06-29T09:31:26.000Z | 2021-07-02T15:26:56.000Z | herd/BellBarrier.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 54.75 | 78 | 0.417047 |
bcc3da16935b31195063c272bd6a1b4975864425 | 69 | ml | OCaml | data/derived/comb/progs/unify/prog8659.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/prog3875.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3875.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let sumlist xs = match 1 with | [] -> 0 | h::t -> h + (sumlist t);;
| 23 | 67 | 0.492754 |
44b3551f8322275197d43d2df4a1ff6f0a459993 | 8,086 | ml | OCaml | CPU/ver2/compiler/2nd-mc/igraph.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | CPU/ver2/compiler/2nd-mc/igraph.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | CPU/ver2/compiler/2nd-mc/igraph.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | open Enums
type liverange = Id.t
(* adj_tblには同じ型のLRしか存在しないことが保証されていなければならない *)
type node_t = { tp : Type.t; deg : int ; adjs : S.t }
type inter_graph = { mutable size : int; node_tbl : node_t H.t }
let create_graph n = { size = 0; node_tbl = H.create n }
let new_node tp deg adjs = (* nodeのコンスト... | 32.736842 | 83 | 0.603018 |
44f4ae625c8a42e87e8f81a7d7c42906e2a4b92f | 205 | mli | OCaml | src/metaCoqInstr.mli | beta-ziliani/Mtac2 | 88ad6d9da8ff78ecff46210fc32821590adf114e | [
"MIT"
] | 38 | 2017-10-14T23:17:08.000Z | 2021-12-20T16:10:06.000Z | src/metaCoqInstr.mli | beta-ziliani/Mtac2 | 88ad6d9da8ff78ecff46210fc32821590adf114e | [
"MIT"
] | 282 | 2017-09-18T20:04:53.000Z | 2022-03-31T10:33:50.000Z | src/metaCoqInstr.mli | beta-ziliani/Mtac2 | 88ad6d9da8ff78ecff46210fc32821590adf114e | [
"MIT"
] | 20 | 2017-11-02T02:05:13.000Z | 2021-09-01T09:18:15.000Z | (** This module defines the abstract syntax tree for MetaCoq instructions. *)
(** MetaCoq uses the syntax of Coq to represent programs. *)
type mproof_instr =
| MetaCoq_constr of Constrexpr.constr_expr
| 34.166667 | 77 | 0.765854 |
bc4c3bdaf4ed32982540d998e427d58eacc5ce92 | 1,123 | ml | OCaml | ocaml/src/fibonacci.ml | vitorebatista/my-tests | 696b2290259d8179d0b3399569dd9e77e6eaa750 | [
"MIT"
] | null | null | null | ocaml/src/fibonacci.ml | vitorebatista/my-tests | 696b2290259d8179d0b3399569dd9e77e6eaa750 | [
"MIT"
] | null | null | null | ocaml/src/fibonacci.ml | vitorebatista/my-tests | 696b2290259d8179d0b3399569dd9e77e6eaa750 | [
"MIT"
] | null | null | null | let rec fib n =
match n with
| (0 | 1) -> 1
| x when x > 0 -> (fib (x-2) + fib (x-1))
| _ -> raise (Invalid_argument "Negative value supplied to fib");;
let rec fib2 = function
| 0 -> 0
| 1 -> 1
| n -> fib2 (n-1) + fib2 (n-2)
let rec fib3 n =
if n < 3 then
1
else
fib3 (n-1) + fib3 (n... | 19.033898 | 77 | 0.545859 |
bc76d2f27fcbf7bfe0530df20b8237e54134b028 | 11,595 | ml | OCaml | x86/proofs/bignum_triple_p256k1.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | x86/proofs/bignum_triple_p256k1.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | x86/proofs/bignum_triple_p256k1.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | (*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "LICENSE" file ... | 47.520492 | 109 | 0.576542 |
bc8d35b01c31346afd9dccce7ab6e26914405e1d | 1,036 | ml | OCaml | basis/Error.ml | clayrat/dreamtt | aa30a57ca869e91a295e586773a892c6601b5ddb | [
"Apache-2.0"
] | 75 | 2020-10-15T01:15:28.000Z | 2022-02-13T05:18:29.000Z | basis/Error.ml | clayrat/dreamtt | aa30a57ca869e91a295e586773a892c6601b5ddb | [
"Apache-2.0"
] | 14 | 2020-10-15T01:52:20.000Z | 2021-09-13T21:06:38.000Z | basis/Error.ml | clayrat/dreamtt | aa30a57ca869e91a295e586773a892c6601b5ddb | [
"Apache-2.0"
] | 4 | 2020-10-22T20:47:23.000Z | 2021-09-13T14:54:14.000Z | module type Ops =
sig
type 'a m
val throw : exn -> 'a m
val catch : 'a m -> (('a, exn) Result.t -> 'b m) -> 'b m
end
module type T =
sig
include Monad.Trans
include Ops with type 'a m := 'a m
val run : 'a m -> (('a, exn) Result.t -> 'b n) -> 'b n
val run_exn : 'a m -> 'a n
end
module type S = T with ty... | 18.836364 | 64 | 0.480695 |
bc9c833a82211c53e0538be7e3d589ab57eeb9f5 | 26,566 | ml | OCaml | src/proto_alpha/lib_protocol/test/helpers/rewards.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_protocol/test/helpers/rewards.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_protocol/test/helpers/rewards.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019--2021 Nomadic Labs, <contact@nomadic-labs.com> *)
... | 16.17905 | 79 | 0.4703 |
44ab5169f61c4f65e013fd824f41e3a4548bf8d1 | 1,858 | mli | OCaml | src/domain/powDom.mli | hyunsooda/sparrow | 2edbd00a906394874c7b266db7e53e3519a9caf1 | [
"BSD-3-Clause"
] | 1 | 2020-01-31T17:43:58.000Z | 2020-01-31T17:43:58.000Z | src/domain/powDom.mli | hyunsooda/sparrow | 2edbd00a906394874c7b266db7e53e3519a9caf1 | [
"BSD-3-Clause"
] | 8 | 2020-03-19T10:21:01.000Z | 2020-08-20T14:02:06.000Z | src/domain/powDom.mli | hyunsooda/sparrow | 2edbd00a906394874c7b266db7e53e3519a9caf1 | [
"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.12987 | 73 | 0.410118 |
bc35a6bfcaad618e74ca139e5f6a5fc3200fdb71 | 3,186 | ml | OCaml | hphp/hack/test/integration_ml/ide/test_ide_disk.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-05-25T13:42:36.000Z | 2019-05-25T13:42:36.000Z | hphp/hack/test/integration_ml/ide/test_ide_disk.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration_ml/ide/test_ide_disk.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*
*)
open Integration_test_base_types
open ServerEnv
module Test = Integration_test_base
let foo_name = "foo.php"
... | 28.446429 | 79 | 0.705901 |
44b3e9e681668b2fe3a8c2b4f3975becc29eb807 | 752 | ml | OCaml | benchmarks/lambda/lambda2/submissions/sub37.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/lambda/lambda2/submissions/sub37.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/lambda/lambda2/submissions/sub37.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z |
type exp = V of var
| P of var * exp
| C of exp * exp
and var = string
let rec check : exp -> bool
=fun e ->
let a = (eval e []) in
match a with
| true -> true
| false -> false
and eval: exp -> var list -> bool
= fun e env->
match e with
| V x -> lookup x env
| P(x,e1)... | 19.282051 | 41 | 0.509309 |
8aa377a3b6bb27c8b4a607a125252b0c216ac19d | 5,518 | ml | OCaml | Unpacker/RealLive/rldev/src/vaconv/image.ml | CATION-M/X-moe | 2bac3bb45ff21e50921aac8422f2e00839f546e5 | [
"MIT"
] | 2 | 2020-02-25T15:18:53.000Z | 2020-08-24T13:30:34.000Z | Unpacker/RealLive/rldev/src/vaconv/image.ml | CATION-M/X-moe | 2bac3bb45ff21e50921aac8422f2e00839f546e5 | [
"MIT"
] | null | null | null | Unpacker/RealLive/rldev/src/vaconv/image.ml | CATION-M/X-moe | 2bac3bb45ff21e50921aac8422f2e00839f546e5 | [
"MIT"
] | 1 | 2019-11-25T05:29:30.000Z | 2019-11-25T05:29:30.000Z | (*
vaconv: internal bitmap format
Copyright (C) 2006 Haeleth
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
... | 32.081395 | 104 | 0.629757 |
bc4b279342a19ddd2ff5b00651eccd4263012263 | 228 | mli | OCaml | src/default/ortac_default.mli | pascutto/ortac | 783b5447d5c540f6256f08dcc186f79225db9604 | [
"MIT"
] | 5 | 2021-05-04T16:49:44.000Z | 2021-11-22T16:46:59.000Z | src/default/ortac_default.mli | pascutto/ortac | 783b5447d5c540f6256f08dcc186f79225db9604 | [
"MIT"
] | 6 | 2021-11-04T11:24:31.000Z | 2022-03-29T18:46:21.000Z | src/default/ortac_default.mli | pascutto/ortac | 783b5447d5c540f6256f08dcc186f79225db9604 | [
"MIT"
] | 1 | 2021-03-09T07:43:41.000Z | 2021-03-09T07:43:41.000Z | val generate : string -> out_channel -> unit
(** [generate path out] generate the code of the tests corresponding to the
specifications present in [path] in the default configuration and print it
on the [out] channel *)
| 45.6 | 78 | 0.732456 |
448d4b3d6e46876770ee8624db0b4e74a07e074e | 651 | ml | OCaml | result/func/lambda/sub121/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/func/lambda/sub121/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/func/lambda/sub121/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
and var = string
type bounded = var list
let update_bounded (a : string) (stk : 'a list) : 'a list = a :: stk
let rec find_bounded a (stk : 'b list) : bool =
match stk with
| [] -> false
| hd :: tl -> if hd = a then true else find_bounded a... | 26.04 | 70 | 0.615975 |
bc8b0b968fe54a441bf6cd4cb040f9482bdba81f | 844 | mli | OCaml | src/irmin/hash.mli | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 1,491 | 2015-01-04T05:34:56.000Z | 2022-03-31T09:53:17.000Z | src/irmin/hash.mli | gs0510/irmin | d6701925517d2d9874fe9d77a9a1fad905c72bd3 | [
"0BSD"
] | 1,132 | 2015-01-05T17:06:31.000Z | 2022-03-30T19:56:47.000Z | src/irmin/hash.mli | 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... | 44.421053 | 75 | 0.764218 |
bc07d0b7da477d770a782320d7aac9e6bc2834ef | 4,210 | ml | OCaml | lib_test/simple.ml | samoht/orm | bb944eaa8f93ab22cbfb7c292961d60e87fa9694 | [
"0BSD"
] | 33 | 2015-03-22T23:06:35.000Z | 2022-02-01T20:31:25.000Z | lib_test/simple.ml | samoht/orm | bb944eaa8f93ab22cbfb7c292961d60e87fa9694 | [
"0BSD"
] | 5 | 2016-05-21T07:12:07.000Z | 2021-12-05T14:41:36.000Z | lib_test/simple.ml | samoht/orm | bb944eaa8f93ab22cbfb7c292961d60e87fa9694 | [
"0BSD"
] | 5 | 2016-03-05T21:31:30.000Z | 2020-08-16T22:11:57.000Z | (*pp camlp4orf *)
open Printf
type x = {
foo: int;
bar: string
} with
orm
open OUnit
open Test_utils
let name = "simple.db"
let x = { foo = (Random.int 100); bar="hello world" }
let x2 = { foo = (Random.int 100); bar="bye world" }
let test_init () =
ignore(open_db x_init name);
ignore(open_db ~rm:false ... | 27.880795 | 134 | 0.597625 |
bcb4d17ddbd75c4a12bd53904f1b17b8e3dae38b | 17,795 | mli | OCaml | infer/src/IR/Sil.mli | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | 1 | 2018-11-10T08:04:26.000Z | 2018-11-10T08:04:26.000Z | infer/src/IR/Sil.mli | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | null | null | null | infer/src/IR/Sil.mli | jhonpj/infer | 01a83e694b2c55e240753cf1dfa5237faf4472f8 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* 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.
*)
(** The Smallfoot Intermediate Language *)
open! IStd
module F = Format
(** {2 Programs and ... | 35.30754 | 99 | 0.679461 |
bc6ceb2b22e3cb3eebc6dc32ad1ada4b42da5d8a | 98 | ml | OCaml | examples/SH/P/ml/main.ml | sessionstar/sessionstar | 9649edc7c864a2bb15a46ab7633ffa391667b068 | [
"Apache-2.0"
] | 5 | 2020-11-20T09:23:24.000Z | 2022-01-24T16:59:08.000Z | examples/SH/P/ml/main.ml | sessionstar/sessionstar | 9649edc7c864a2bb15a46ab7633ffa391667b068 | [
"Apache-2.0"
] | null | null | null | examples/SH/P/ml/main.ml | sessionstar/sessionstar | 9649edc7c864a2bb15a46ab7633ffa391667b068 | [
"Apache-2.0"
] | 3 | 2021-01-01T17:33:35.000Z | 2021-01-08T10:40:23.000Z | (*let time = Unix.gettimeofday ()
let () = Random.init (int_of_float time)*)
let () = SHP.main ()
| 24.5 | 42 | 0.632653 |
bc9ed229e3f1eb783a8f7a203ac15f121a1a870c | 8,943 | ml | OCaml | tezt/tests/double_bake.ml | selbor28/tezos | 57cfc7f42e1312d05b0d7f6742f517edc421aef4 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | tezt/tests/double_bake.ml | selbor28/tezos | 57cfc7f42e1312d05b0d7f6742f517edc421aef4 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | tezt/tests/double_bake.ml | selbor28/tezos | 57cfc7f42e1312d05b0d7f6742f517edc421aef4 | [
"MIT"
] | 1 | 2021-07-19T07:00:37.000Z | 2021-07-19T07:00:37.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 44.715 | 83 | 0.639495 |
441f8a8078f22d89fc5aa394c99fb000e1e05fb7 | 26,147 | ml | OCaml | src/owl/dense/owl_dense_matrix_generic.ml | tachukao/owl | 126274834577f879c85fbe1d0c9bb861f6240379 | [
"MIT"
] | 1 | 2019-01-23T14:51:03.000Z | 2019-01-23T14:51:03.000Z | src/owl/dense/owl_dense_matrix_generic.ml | tachukao/owl | 126274834577f879c85fbe1d0c9bb861f6240379 | [
"MIT"
] | null | null | null | src/owl/dense/owl_dense_matrix_generic.ml | tachukao/owl | 126274834577f879c85fbe1d0c9bb861f6240379 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
open Bigarray
open Owl_ndarray
open Owl_base_dense_common
include Owl_dense_ndarray_generic
(* area function *)
let shape x =
let x_shape = shape x in
assert (Array.length x_shape = 2);
x_... | 18.609964 | 90 | 0.480896 |
bc0f31d276db01e50302887bb621f52ab8d9a732 | 1,965 | ml | OCaml | vendor/menhir/src/InfiniteArray.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | vendor/menhir/src/InfiniteArray.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | vendor/menhir/src/InfiniteArray.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z | (******************************************************************************)
(* *)
(* Menhir *)
(* ... | 30.703125 | 80 | 0.43715 |
449a9a43ce1f3024b7f61bb508d4022f08604f44 | 514 | ml | OCaml | bootstrap/test/basis/ordmap/test_kreduce.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2021-08-13T04:54:39.000Z | 2021-08-13T04:54:39.000Z | bootstrap/test/basis/ordmap/test_kreduce.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2020-02-14T19:21:40.000Z | 2020-02-14T19:21:40.000Z | bootstrap/test/basis/ordmap/test_kreduce.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | null | null | null | open! Basis.Rudiments
open! Basis
open! OrdmapTest
open Ordmap
open Format
let test () =
printf "@[<h>";
let test ks = begin
let ordmap = of_klist ks in
let sum = kreduce ~f:( + ) ordmap in
printf "kreduce ~f:( + ) %a -> %a\n"
(List.pp Uns.pp) ks
(Option.pp Uns.pp) sum
end in
let test_l... | 17.133333 | 40 | 0.527237 |
bcb2d02ad7157be7b64945190e69152f2cf63a17 | 3,885 | ml | OCaml | src/parser_utils/output/source.ml | KevinGrandon/flow | 7360702fe9214cd30286a5362561953f21af4c1c | [
"MIT"
] | 2 | 2019-01-31T09:33:15.000Z | 2019-01-31T09:35:08.000Z | src/parser_utils/output/source.ml | KevinGrandon/flow | 7360702fe9214cd30286a5362561953f21af4c1c | [
"MIT"
] | null | null | null | src/parser_utils/output/source.ml | KevinGrandon/flow | 7360702fe9214cd30286a5362561953f21af4c1c | [
"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.
*)
module LocMap = Utils_js.LocMap
type t = {
buffer: Buffer.t;
sourcemap: Sourcemap.t option;
pos: Sourcemap.line_col;
loc_stack:... | 28.992537 | 88 | 0.666409 |
bc679ff7dc07660946bf01a4589fe13fccd7fc5e | 3,771 | ml | OCaml | src/bitcointalk.ml | vbmithr/ocaml-bitcointalk | 2df4fd17e5804a41713c24fe23a37464fa4806bc | [
"0BSD"
] | 1 | 2017-08-14T17:52:24.000Z | 2017-08-14T17:52:24.000Z | src/bitcointalk.ml | vbmithr/ocaml-bitcointalk | 2df4fd17e5804a41713c24fe23a37464fa4806bc | [
"0BSD"
] | null | null | null | src/bitcointalk.ml | vbmithr/ocaml-bitcointalk | 2df4fd17e5804a41713c24fe23a37464fa4806bc | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2017 Vincent Bernardoff. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
mo... | 30.168 | 79 | 0.577566 |
bcc8c1178257207b8d38b60ea15f80e800eb458f | 2,570 | ml | OCaml | src/git/blob.ml | patricoferris/ocaml-git | 8ddb937e4888151dc639200f548b9494354f0a57 | [
"0BSD"
] | null | null | null | src/git/blob.ml | patricoferris/ocaml-git | 8ddb937e4888151dc639200f548b9494354f0a57 | [
"0BSD"
] | null | null | null | src/git/blob.ml | patricoferris/ocaml-git | 8ddb937e4888151dc639200f548b9494354f0a57 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
* and Romain Calascibetta <romain.calascibetta@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... | 30.595238 | 75 | 0.699611 |
bc3a2ea01b883835dba8365613777c5d89760601 | 8,635 | ml | OCaml | xen/xen-4.2.2/tools/ocaml/xenstored/logging.ml | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2018-02-02T00:15:26.000Z | 2018-02-02T00:15:26.000Z | xen/xen-4.2.2/tools/ocaml/xenstored/logging.ml | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | null | null | null | xen/xen-4.2.2/tools/ocaml/xenstored/logging.ml | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2019-05-27T09:47:18.000Z | 2019-05-27T09:47:18.000Z | (*
* Copyright (C) 2006-2007 XenSource Ltd.
* Copyright (C) 2008 Citrix Ltd.
* Author Thomas Gazagnaire <thomas.gazagnaire@citrix.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Fo... | 32.340824 | 131 | 0.669485 |
bc0ceb07b088dab740b29a48fb4b0eb51f94aba5 | 19,745 | ml | OCaml | vendor/menhir/src/IncrementalEngine.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/menhir/src/IncrementalEngine.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/menhir/src/IncrementalEngine.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | (******************************************************************************)
(* *)
(* Menhir *)
(* ... | 42.462366 | 85 | 0.674145 |
bc6a6287b297e08f292af9d39615da8adedeb8ff | 7,740 | ml | OCaml | src/proto_alpha/lib_protocol/test/test_timelock.ml | daachi/tezos | 00118e91ff13bb54ff658907ed8ffc1c4d3d2266 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/test_timelock.ml | daachi/tezos | 00118e91ff13bb54ff658907ed8ffc1c4d3d2266 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/test/test_timelock.ml | daachi/tezos | 00118e91ff13bb54ff658907ed8ffc1c4d3d2266 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 41.612903 | 80 | 0.635788 |
44b25ce740c91fc7508fec406236e01c81340b47 | 1,716 | ml | OCaml | mailgun/example/send.ml | aantron/tidy-email | b567e063bde7eb426a03e08a11d6abb9a4080471 | [
"MIT"
] | null | null | null | mailgun/example/send.ml | aantron/tidy-email | b567e063bde7eb426a03e08a11d6abb9a4080471 | [
"MIT"
] | null | null | null | mailgun/example/send.ml | aantron/tidy-email | b567e063bde7eb426a03e08a11d6abb9a4080471 | [
"MIT"
] | null | null | null | module Email = Tidy_email.Email
module Mailgun = Tidy_email_mailgun
let html_body =
Email.Html
{|
<html>
<body>
<h3><b>Hello from Tidy-Email!</b><h3>
<p>This is what an HTML email body looks like.</p>
</body>
</html>
|}
let text_body = Email.Text "This is what a plain text email body looks like.... | 30.105263 | 77 | 0.662587 |
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.