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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa6495b2618f8da36f4e90a9027baf2ccbd7623f | 222 | mli | OCaml | libraries/s3/lib/listBuckets.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/listBuckets.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/listBuckets.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
type input = Aws.BaseTypes.Unit.t
type output = ListBucketsOutput.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 31.714286 | 74 | 0.743243 |
aa5e9b91c357998ed2c53a67394f70ef33cf7e93 | 111,401 | ml | OCaml | hphp/hack/src/naming/naming.ml | marscore/hhvm | b3d09b6b9a6beb521149f47e67d0691ac291e2b9 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-05-25T13:42:36.000Z | 2019-05-25T13:42:36.000Z | hphp/hack/src/naming/naming.ml | marscore/hhvm | b3d09b6b9a6beb521149f47e67d0691ac291e2b9 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming.ml | marscore/hhvm | b3d09b6b9a6beb521149f47e67d0691ac291e2b9 | [
"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 "naming" a program.
*
* The naming phase consists in several things
* 1- get all the global names
* ... | 38.613865 | 115 | 0.608801 |
bca9909ed3373b2bb92dcab98cf20ca44d406504 | 8,008 | ml | OCaml | data/derived/comb/progs/unify/prog4381.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/prog4381.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4381.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.915858 | 148 | 0.660465 |
8ae27fbbd22c2324a313cfc9c5bd94f8b6329624 | 5,132 | ml | OCaml | examples/process.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | null | null | null | examples/process.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"0BSD"
] | 2 | 2020-09-24T07:16:37.000Z | 2021-01-07T18:03:13.000Z | examples/process.ml | jthelin/irmin | f989de227332918b12c25415c0fa8ed2a1e34ec9 | [
"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... | 28.511111 | 81 | 0.557093 |
aa67f46df2020a53e471ead500fc958b36213c82 | 786 | mli | OCaml | infer/src/backend/cluster.mli | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | 1 | 2016-12-19T07:33:16.000Z | 2016-12-19T07:33:16.000Z | infer/src/backend/cluster.mli | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/cluster.mli | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"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... | 26.2 | 78 | 0.701018 |
bca65e582694977a99c20d93771a94ad24813ae5 | 158 | ml | OCaml | hollight/valid/amc12-2001-p2.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/valid/amc12-2001-p2.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/valid/amc12-2001-p2.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let amc12-2001-p2 = `!a:num b:num n:num.
(1 <= a /\ a <= 9) /\
(0 <= b /\ b <= 9) /\
(n = 10 * a + b) /\
(n = a * b + a + b) ==>
b = 9`;;
| 22.571429 | 40 | 0.291139 |
aa6bfc67a6f1e9954d89a21dc3cf60462ad28ad1 | 647 | mli | OCaml | hphp/hack/src/client/clientStart.mli | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/client/clientStart.mli | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/client/clientStart.mli | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-01-04T09:54:09.000Z | 2019-01-04T09:54:09.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
type env = {
root: Path.t;
from: string;
no_load: bool;
watchman_debug_logging : bool;
log_inference_cons... | 22.310345 | 66 | 0.697063 |
bc7336fcf600008a54c745d984cffd62bfbab94d | 22,297 | ml | OCaml | src/lib/kademlia/membership.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2022-03-21T15:43:42.000Z | 2022-03-21T15:43:42.000Z | src/lib/kademlia/membership.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/lib/kademlia/membership.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | open Async_kernel
open Core_kernel
open Banlist_lib
open Pipe_lib
exception Child_died
module type S = sig
type t
type banlist
val connect :
initial_peers:Host_and_port.t list
-> me:Peer.t
-> parent_log:Logger.t
-> conf_dir:string
-> banlist:banlist
-> t Deferred.Or_error.t
val p... | 33.130758 | 85 | 0.565816 |
bc795ea3f530aa59caba6e42066da3c6a1f0ae39 | 6,735 | ml | OCaml | data/derived/comb/progs/unify/prog6104.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/prog1243.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1243.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs =
match xs with
| [] -> []
| h::t ->
2+2;;
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 24.314079 | 94 | 0.643059 |
aa0f86219e98cc0a67437ece292679bd20ad7cf0 | 248 | mli | OCaml | libraries/rds/lib/modifyDBClusterParameterGroup.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/modifyDBClusterParameterGroup.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/rds/lib/modifyDBClusterParameterGroup.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = ModifyDBClusterParameterGroupMessage.t
type output = DBClusterParameterGroupNameMessage.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 35.428571 | 74 | 0.778226 |
aa5f1b1818822870cb17a08192270e398a1f7d38 | 42 | mli | OCaml | Przelewanka/przelewanka.mli | niedziol/OCaml | 4e9b345931e653397c5a8fea5324802793ace2a1 | [
"MIT"
] | null | null | null | Przelewanka/przelewanka.mli | niedziol/OCaml | 4e9b345931e653397c5a8fea5324802793ace2a1 | [
"MIT"
] | null | null | null | Przelewanka/przelewanka.mli | niedziol/OCaml | 4e9b345931e653397c5a8fea5324802793ace2a1 | [
"MIT"
] | null | null | null | val przelewanka : (int * int) array -> int | 42 | 42 | 0.666667 |
bc8f749f4b95b05623bac2115674a0c1f291a912 | 18,530 | ml | OCaml | src/common/ty/ty.ml | eyx092/flow | 6e02e520acf9c39c446ca3611b1f64555c968559 | [
"MIT"
] | null | null | null | src/common/ty/ty.ml | eyx092/flow | 6e02e520acf9c39c446ca3611b1f64555c968559 | [
"MIT"
] | null | null | null | src/common/ty/ty.ml | eyx092/flow | 6e02e520acf9c39c446ca3611b1f64555c968559 | [
"MIT"
] | 1 | 2021-05-12T18:13:36.000Z | 2021-05-12T18:13:36.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
include Ty_symbol
include Ty_ancestors
type aloc = (ALoc.t[@printer (fun fmt loc -> fprintf fmt "%s" (ALoc.to_string_no_source loc... | 25.66482 | 100 | 0.610146 |
bc2ed752a319e2aa93e4ad53a86184ff13e0086e | 3,736 | ml | OCaml | src/lib_stdlib_unix/moving_average.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_stdlib_unix/moving_average.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_stdlib_unix/moving_average.ml | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.580952 | 81 | 0.528373 |
bc84055e43f85d8c270d75e11265af628bbca5ff | 14,173 | ml | OCaml | src/dune/upgrader.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/upgrader.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/upgrader.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | open! Stdune
open Import
(* Return a mapping [Path.t -> Dune_lang.Ast.t list] containing [path] and all
the files in includes, recursiverly *)
let scan_included_files path =
let files = ref Path.Source.Map.empty in
let rec iter path =
if not (Path.Source.Map.mem !files path) then (
let s = Io.read_fil... | 35.256219 | 79 | 0.577436 |
afda20ac51f0b137c448c85af8eef9f125cdfab0 | 886 | ml | OCaml | data/derived/comb/progs/unify/prog1745.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/prog1745.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1745.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 =
let diff = (List.length l2) - (List.length l1) in
(((clone 0 diff) @ l1), ((clone 0 (- diff)) @ l2));;
let rec removeZero l =
match l with | [] -> l | h::t -> if h = 0 then removeZero t else l;;
let bigAdd l1 l2 =
let ad... | 26.848485 | 74 | 0.524831 |
aa4c60c91c1fa144bd33ed18112ab1c7258fd117 | 581 | ml | OCaml | src/LamJS/setExt.ml | ravichugh/djs | c4a13e06adb3e0945f39966523a4d944448c1941 | [
"Apache-2.0",
"BSD-3-Clause"
] | 49 | 2015-01-03T00:23:05.000Z | 2021-12-22T22:08:55.000Z | src/LamJS/setExt.ml | ravichugh/djs | c4a13e06adb3e0945f39966523a4d944448c1941 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2017-10-30T03:55:27.000Z | 2020-06-12T12:24:01.000Z | src/LamJS/setExt.ml | ravichugh/djs | c4a13e06adb3e0945f39966523a4d944448c1941 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | open Format
open FormatExt
module type S = sig
type elt
type t
val unions : t list -> t
val from_list : elt list -> t
val to_list : t -> elt list
val p_set : (elt -> printer) -> t -> printer
end
module Make (Set : Set.S) = struct
type elt = Set.elt
type t = Set.t
let unions lst = List.fold_lef... | 18.15625 | 61 | 0.621343 |
aa4fcab8f85c3924036a5c0b7f933c2f3b3615dc | 2,725 | mly | OCaml | experiments/ownership-inference/infer/infer/src/topl/ToplParser.mly | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 30 | 2019-06-28T15:20:25.000Z | 2021-08-25T11:37:30.000Z | experiments/ownership-inference/infer/infer/src/topl/ToplParser.mly | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 39 | 2019-06-28T15:08:12.000Z | 2020-07-17T01:44:33.000Z | experiments/ownership-inference/infer/infer/src/topl/ToplParser.mly | SunghoLee/hafnium-verification | 382494a2280a751a1e33f2676e8bbf5d5e2d9dbf | [
"Apache-2.0"
] | 17 | 2019-06-28T14:40:41.000Z | 2021-03-11T19:26:13.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
%}
%token <int> INDENT (* The lexer uses this token only internally. *)
%token <int> INTEGER
%token <string> LID
%t... | 23.491379 | 79 | 0.686606 |
bc8b1f3e300b38853f6edd035747ceb66e887a1e | 459 | ml | OCaml | graphql-lwt/src/graphql_lwt.ml | emillon/ocaml-graphql-server | 940e86f9ff1a017be2ff64b3a35c71804d9a4729 | [
"MIT"
] | 629 | 2016-11-07T03:36:47.000Z | 2022-03-05T20:06:09.000Z | graphql-lwt/src/graphql_lwt.ml | emillon/ocaml-graphql-server | 940e86f9ff1a017be2ff64b3a35c71804d9a4729 | [
"MIT"
] | 158 | 2016-11-07T19:15:15.000Z | 2022-03-30T19:50:28.000Z | graphql-lwt/src/graphql_lwt.ml | emillon/ocaml-graphql-server | 940e86f9ff1a017be2ff64b3a35c71804d9a4729 | [
"MIT"
] | 66 | 2016-11-19T23:58:28.000Z | 2021-12-10T23:44:21.000Z | module Schema =
Graphql_schema.Make
(struct
include Lwt
module Stream = struct
type 'a t = 'a Lwt_stream.t * (unit -> unit)
let map (t, close) f = (Lwt_stream.map_s f t, close)
let iter (t, _close) f = Lwt_stream.iter_s f t
let close (_, close) = close ()
end
... | 19.956522 | 60 | 0.575163 |
aa664fb428225b9a17324f62d37bc75beb19d34d | 10,223 | ml | OCaml | vendor/base/src/applicative_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 641 | 2016-09-16T15:51:06.000Z | 2022-03-31T19:30:56.000Z | vendor/base/src/applicative_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 121 | 2016-09-17T07:30:00.000Z | 2022-03-03T21:00:03.000Z | vendor/base/src/applicative_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 95 | 2016-09-16T23:31:38.000Z | 2022-03-19T01:35:06.000Z | (** Applicatives model computations in which values computed by subcomputations cannot
affect what subsequent computations will take place.
Relative to monads, this restriction takes power away from the user of the interface
and gives it to the implementation. In particular, because the structure of the
... | 29.979472 | 90 | 0.518243 |
aa15405ad2e1cb6cac05ed6a1ee9e7ca11327819 | 1,409 | mli | OCaml | ag_pathanalysis/ocaml/deadcode.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2019-12-05T19:47:42.000Z | 2021-05-05T13:41:16.000Z | ag_pathanalysis/ocaml/deadcode.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | null | null | null | ag_pathanalysis/ocaml/deadcode.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2021-04-20T07:44:02.000Z | 2021-04-20T08:38:41.000Z | (** Dead code elimination for SSA graphs. *)
val do_dce : ?globals:Var.t list -> Cfg.SSA.G.t -> Cfg.SSA.G.t * bool
(** Performs dead code elimination, returning the new CFG and a bool
indicating whether anything changed. A statement [s] is considered live if:
- [s] has the [Liveout] attribute
- OR [s] appe... | 41.441176 | 84 | 0.684883 |
bc8b7f7acd39a974d30459f14dd43627fa2ecae2 | 100 | ml | OCaml | solutions/beecrowd/1007/1007.ml | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 18 | 2015-01-22T04:08:51.000Z | 2022-01-08T22:36:47.000Z | solutions/beecrowd/1007/1007.ml | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 4 | 2016-04-25T12:32:46.000Z | 2021-06-15T18:01:30.000Z | solutions/beecrowd/1007/1007.ml | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 25 | 2015-03-02T06:21:51.000Z | 2021-09-12T20:49:21.000Z | Scanf.scanf "%d %d %d %d\n" (fun a b c d ->
Printf.printf "DIFERENCA = %d\n" (a * b - c * d);
)
| 25 | 53 | 0.49 |
aa4ab0c2fb179f8407fb979ca03a5d500ce8340f | 6,096 | mli | OCaml | lib/cil/liveness.inferred.mli | coslu/cil | b3b8b0dac5e009e9419b77a9116681c2230a5013 | [
"BSD-3-Clause"
] | null | null | null | lib/cil/liveness.inferred.mli | coslu/cil | b3b8b0dac5e009e9419b77a9116681c2230a5013 | [
"BSD-3-Clause"
] | null | null | null | lib/cil/liveness.inferred.mli | coslu/cil | b3b8b0dac5e009e9419b77a9116681c2230a5013 | [
"BSD-3-Clause"
] | null | null | null | module DF = Dataflow
module UD = Usedef
module IH = Inthash
module E = Errormsg
val debug : bool ref
val ignore_inst : (Cil.instr -> bool) ref
val ignore_call : (Cil.instr -> bool) ref
val registerIgnoreInst : (Cil.instr -> bool) -> unit
val registerIgnoreCall : (Cil.instr -> bool) -> unit
val live_label : string ref
v... | 45.155556 | 75 | 0.700295 |
bcfb38cf463daed9711d193726c4700c729d0b5f | 33,075 | ml | OCaml | bs/src/tablecloth.ml | figitaki/tablecloth | 065159ec1e9aa5156183bea347227b7accccb095 | [
"MIT"
] | null | null | null | bs/src/tablecloth.ml | figitaki/tablecloth | 065159ec1e9aa5156183bea347227b7accccb095 | [
"MIT"
] | null | null | null | bs/src/tablecloth.ml | figitaki/tablecloth | 065159ec1e9aa5156183bea347227b7accccb095 | [
"MIT"
] | null | null | null | let ( <| ) a b = a b
let ( >> ) (f1 : 'a -> 'b) (f2 : 'b -> 'c) : 'a -> 'c = fun x -> x |> f1 |> f2
let ( << ) (f1 : 'b -> 'c) (f2 : 'a -> 'b) : 'a -> 'c = fun x -> x |> f2 |> f1
let identity (value : 'a) : 'a = value
let flip f x y = f y x
module Array = struct
let empty : 'a array = [||]
let singleton a = [... | 23.743719 | 141 | 0.554104 |
aa587f730c28c37885855c2ad97af7f55419aab0 | 1,061 | mli | OCaml | src/catala/surface/desugaring.mli | svenski/catala | faedeaf3ce7e7bad5a931e81eb72d4d18e168da4 | [
"Apache-2.0"
] | 792 | 2020-04-17T16:13:37.000Z | 2022-03-31T06:19:48.000Z | src/catala/surface/desugaring.mli | wozniakpl/catala | fa05ac4882edc5ba3467cc5982d21f82eccbca5c | [
"Apache-2.0"
] | 177 | 2020-05-13T11:28:20.000Z | 2022-03-31T09:03:16.000Z | src/catala/surface/desugaring.mli | wozniakpl/catala | fa05ac4882edc5ba3467cc5982d21f82eccbca5c | [
"Apache-2.0"
] | 37 | 2020-04-20T08:35:06.000Z | 2022-03-29T07:05:36.000Z | (* This file is part of the Catala compiler, a specification language for tax and social benefits
computation rules. Copyright (C) 2020 Inria, contributor: Nicolas Chataing
<nicolas.chataing@ens.fr> Denis Merigoux <denis.merigoux@inria.fr>
Licensed under the Apache License, Version 2.0 (the "License"); you ma... | 48.227273 | 100 | 0.755891 |
bceff6b508a84f12a5c5ae7af7a6abd845364f8a | 2,955 | ml | OCaml | hack/utils/disk/realDisk.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | 2 | 2019-01-31T09:33:15.000Z | 2019-01-31T09:35:08.000Z | hack/utils/disk/realDisk.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | hack/utils/disk/realDisk.ml | aryzing/flow | e352b6b3ff135e78b402234dfbfa7e6653580b70 | [
"MIT"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | include Disk_sig.Types
let cat (filename : string) : string =
let ic = open_in_bin filename in
let len =
try
in_channel_length ic
with Sys_error _ -> 0 in
(* in_channel_length returns 0 for non-regular files; try reading it
using a fixed-sized buffer if it appears to be empty.
NOTE: JaneStr... | 30.463918 | 93 | 0.669036 |
bca2121e1c1c244000d53776684856810f260b16 | 6,175 | ml | OCaml | src/tests/benchmark/benchmark_single_ml.ml | anmolsahoo25/ocaml-protoc | 802dc25c2ac029a7ea5e9624f5727f35c8824a15 | [
"MIT"
] | 143 | 2016-01-25T18:42:38.000Z | 2022-03-20T15:49:38.000Z | src/tests/benchmark/benchmark_single_ml.ml | anmolsahoo25/ocaml-protoc | 802dc25c2ac029a7ea5e9624f5727f35c8824a15 | [
"MIT"
] | 79 | 2015-11-11T12:15:19.000Z | 2022-03-19T23:30:52.000Z | src/tests/benchmark/benchmark_single_ml.ml | anmolsahoo25/ocaml-protoc | 802dc25c2ac029a7ea5e9624f5727f35c8824a15 | [
"MIT"
] | 25 | 2016-04-10T17:58:13.000Z | 2022-01-18T14:08:05.000Z | module type T_sig = Ocaml_test_runner.T_sig
module Bench_t = Benchmark_types
module Util = struct
let shuffle_array a n =
let len = Array.length a in
for _=1 to n do
let pos = Random.int len in
let pos'= Random.int len in
let tmp = a.(pos) in
a.(pos) <- a.(pos');
a.... | 32.161458 | 98 | 0.648745 |
aa33e33c30f2ef536d9d68d9a4d7f3cd38f34c15 | 29,020 | ml | OCaml | Gillian-JS/lib/Compiler/JS2JSIL_Preprocessing.ml | raduml97/Gillian | 10b9d80b0edecdd9d52f7711993dc208084f13e1 | [
"MIT"
] | 1 | 2020-05-30T11:39:31.000Z | 2020-05-30T11:39:31.000Z | Gillian-JS/lib/Compiler/JS2JSIL_Preprocessing.ml | alexismarinoiu/Gillian | cf14a9b992d75194db38b90ef41222e6c7253c89 | [
"MIT"
] | null | null | null | Gillian-JS/lib/Compiler/JS2JSIL_Preprocessing.ml | alexismarinoiu/Gillian | cf14a9b992d75194db38b90ef41222e6c7253c89 | [
"MIT"
] | null | null | null | open Containers
open JS_Parser.Syntax
open Jsil_syntax
open Jslogic
open Jslogic.JSLogicCommon
open JS2JSIL_Helpers
open JS_Utils
open Parsing
module Flag = Gillian.Gil_syntax.Flag
exception CannotHappen
exception No_Codename
exception EarlyError of string
(********************************************)
(***********... | 35.433455 | 157 | 0.591764 |
bcc5080b6d662c23856002224c18989ea2e0f086 | 4,130 | ml | OCaml | src/common/ty/ty_visitor.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | 1 | 2021-03-12T10:46:28.000Z | 2021-03-12T10:46:28.000Z | src/common/ty/ty_visitor.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"MIT"
] | null | null | null | src/common/ty/ty_visitor.ml | parviz-93/flow | bd22f98a8b254cd3f75586f642121c21fb56ee8f | [
"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 Ty
module type Env = sig
type t
val descend : Ty.t -> t -> t
end
module Make(M: Monoid.S)(E: Env) = struct
include Writer.... | 37.889908 | 90 | 0.593947 |
447364081caf0524fe0971eef82e10b8cc44c0ba | 2,089 | ml | OCaml | src/lib/snark_worker/snark_worker.ml | junjiequ123/mina | 0d0e15cc3276f5d9f66ef9024ecad929fc93ddac | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/snark_worker/snark_worker.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/snark_worker.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | module Intf = Intf
module Inputs = Prod.Inputs
module Worker = struct
include Functor.Make (Inputs)
module Rpcs_versioned = struct
open Core_kernel
open Mina_base
open Signature_lib
module Work = struct
type ledger_proof = Inputs.Ledger_proof.t
include Work
end
module Get_wo... | 24.576471 | 67 | 0.597894 |
aa4a9e06c306d5daff89871a52d0b59b05dc06d6 | 165 | mli | OCaml | external/fixpoint/timeout.mli | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | 3 | 2019-11-29T01:33:47.000Z | 2021-05-30T16:40:40.000Z | external/fixpoint/timeout.mli | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | 1 | 2018-04-24T10:43:07.000Z | 2018-04-24T10:43:07.000Z | external/fixpoint/timeout.mli | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | null | null | null | (* simple timeout mechanism executes a function for a number of seconds
* specified by the first argument *)
val do_timeout: int -> ('a -> 'b) -> 'a -> 'b option
| 33 | 71 | 0.672727 |
aa2c921f7a80dcb76d5ea7da647056b6b713fbbd | 30,201 | ml | OCaml | infer/src/concurrency/RacerDConfig.ml | kuailenanhai/infer | 74d3ab7684873f3a0599ff401fc11349a051e9ba | [
"MIT"
] | null | null | null | infer/src/concurrency/RacerDConfig.ml | kuailenanhai/infer | 74d3ab7684873f3a0599ff401fc11349a051e9ba | [
"MIT"
] | null | null | null | infer/src/concurrency/RacerDConfig.ml | kuailenanhai/infer | 74d3ab7684873f3a0599ff401fc11349a051e9ba | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module L = Logging
module MF = MarkupFormatter
module AnnotationAliases = struct
let of_json = function
... | 38.768935 | 105 | 0.628853 |
aa3c4d872b99a0048dd43991c6dc31c406a4fcbd | 1,206 | ml | OCaml | hphp/hack/src/hhbc/hhas_asm.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2016-10-08T12:13:09.000Z | 2016-10-08T12:13:09.000Z | hphp/hack/src/hhbc/hhas_asm.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_asm.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(* Everything ... | 28.046512 | 80 | 0.729685 |
8a59150af92106adc1eb5915a1bf4ef110b9062f | 138 | ml | OCaml | data/derived/comb/progs/unify/prog0637.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/prog0637.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0637.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs = let f a x = x a 0 in let base y = y in List.fold_left f base fs;;
let _ = pipe [(fun x -> x + x); (fun x -> x + 3)] 3;;
| 27.6 | 79 | 0.521739 |
aa00c494b0390fe2010e83eb9a19a54222c540f2 | 1,995 | ml | OCaml | src/import.ml | diaozheng999/incremental | 240c52e868d915543c4a8309e9c4512ae37868f6 | [
"MIT"
] | 725 | 2015-07-06T19:39:26.000Z | 2022-03-25T07:08:27.000Z | src/import.ml | diaozheng999/incremental | 240c52e868d915543c4a8309e9c4512ae37868f6 | [
"MIT"
] | 13 | 2015-07-07T14:27:20.000Z | 2021-09-07T13:32:57.000Z | src/import.ml | diaozheng999/incremental | 240c52e868d915543c4a8309e9c4512ae37868f6 | [
"MIT"
] | 51 | 2016-02-01T16:31:33.000Z | 2022-03-22T23:35:24.000Z | [%%import "debug.mlh"]
open Core
include Int.Replace_polymorphic_compare
(* All [assert]s and other checks throughout the code are guarded by [if debug]. The
DEBUG variable is set in the lib [incremental] and unset in the lib
[incremental_debug], but apart from that they are identical. Tests are run with both... | 23.197674 | 89 | 0.709774 |
aa2ef50dba5cbe252e38aef7252cc49f014adc98 | 18,838 | ml | OCaml | hphp/hack/src/errors/nast_check_error.ml | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-02-10T10:48:39.000Z | 2022-02-10T10:48:39.000Z | hphp/hack/src/errors/nast_check_error.ml | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/nast_check_error.ml | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
module Error_code = Error_codes.NastCheck
type t =
| Repeated_record_field_name of {
pos: Pos.t;
... | 30.781046 | 98 | 0.701614 |
bccdf115920b2d13f6d176abe7b92f309fc52899 | 2,433 | ml | OCaml | cours8.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | 1 | 2022-01-27T20:37:21.000Z | 2022-01-27T20:37:21.000Z | cours8.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | null | null | null | cours8.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | null | null | null |
(* ÉCHAUFFEMENT DES BLAIREAUX MASQUÉS *)
let rec puissance x n = match n with
0 -> 1
|n when n mod 2 = 0 -> puissance (x*x) (n/2)
|n -> x*(puissance (x*x) (n/2));;
(* SUJET N°1 *)
(*
Question 9 -
On va discuter selon la position du noeud x :
- Si x < s, le fils gauche n'est pas modifié et x qui re... | 21.723214 | 77 | 0.59104 |
8af8316b3c087895ea7a6be8555d36ce63220062 | 6,970 | ml | OCaml | data/derived/comb/progs/unify/prog0315.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/prog0315.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0315.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXX*)
let rec myAppend l n = match l with
| [] -> [n]
| h::t -> h::(myAppend t n);;
let rec getDigits n = match n with
| 0 -> []
| _ -> myAppend (getDigits (n/10)) (n mod 10);;
let rec listCompare l k =
if (List.hd l) = [] && (List.hd k) ... | 24.716312 | 94 | 0.6099 |
aa3560dd7afac65d5d1ed211584436a35047293d | 6,750 | mly | OCaml | explicitly_typed/algebraic_types_exp/lib/parser.mly | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | 1 | 2020-05-13T13:51:57.000Z | 2020-05-13T13:51:57.000Z | explicitly_typed/algebraic_types_exp/lib/parser.mly | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | explicitly_typed/algebraic_types_exp/lib/parser.mly | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | %{
module Id = Identifier
module Loc = Location
module Opt = Option
let get_loc () =
Loc.of_lex_pos
(Parsing.symbol_start_pos ())
(Parsing.symbol_end_pos ())
let error msg =
failwith @@
Printf.sprintf "%s %s: %s"
(Loc.to_string @@ get_loc ())
__MODULE__
msg
module Type = struct
... | 28.008299 | 72 | 0.569185 |
aa32404563f0881351f252bcbf80c7e3d22e9c59 | 13,069 | ml | OCaml | src/typing/destructuring.ml | radex/flow | 803afdc9990c4bdc3d489ec498f2b032fa7b2c08 | [
"MIT"
] | null | null | null | src/typing/destructuring.ml | radex/flow | 803afdc9990c4bdc3d489ec498f2b032fa7b2c08 | [
"MIT"
] | 1 | 2021-04-16T12:04:57.000Z | 2021-04-16T12:04:57.000Z | src/typing/destructuring.ml | radex/flow | 803afdc9990c4bdc3d489ec498f2b032fa7b2c08 | [
"MIT"
] | 1 | 2021-05-12T18:13:36.000Z | 2021-05-12T18:13:36.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.
*)
(* Destructuring visitor for tree-shaped patterns, parameteric over an action f
to perform at the leaves. A type for the pattern... | 38.780415 | 100 | 0.641136 |
aa412e0037c7c94dc8ce66a89fb531e3356864ab | 76 | mli | OCaml | src/lib/allocation_functor/table.mli | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/allocation_functor/table.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/allocation_functor/table.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | val attach_finalizer : string -> 'a -> 'a
val dump : unit -> Yojson.Safe.t
| 19 | 41 | 0.644737 |
aa2d1db048959244082b51ab1729602666751dbd | 137 | ml | OCaml | src/test_rules.boot.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | null | null | null | src/test_rules.boot.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | 2 | 2018-01-12T08:41:59.000Z | 2020-12-30T21:57:31.000Z | src/test_rules.boot.ml | bobzhang/dune | 5d690c55085c036b72003f89daec5ad273311a9c | [
"MIT"
] | null | null | null |
let rules _ ~sctx:_ ~dir:_ ~scope:_ ~expander:_ ~dir_contents:_
~dir_kind:_ =
failwith "test stanza not supported in bootstrap"
| 27.4 | 63 | 0.70073 |
44a6040026beb396498bd7cc3cae834e59a07431 | 28 | ml | OCaml | code/packing/test.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 328 | 2015-01-08T13:55:08.000Z | 2022-03-11T12:56:04.000Z | code/packing/test.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 17 | 2015-01-04T00:26:01.000Z | 2018-05-31T08:16:44.000Z | code/packing/test.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 83 | 2015-01-21T15:07:56.000Z | 2022-03-11T12:56:08.000Z | let v = X.A.v
let w = X.B.w
| 9.333333 | 13 | 0.5 |
bc835ef47e7d3a18c80469f83e06c44090ea080d | 464 | ml | OCaml | gen/cl_bindgen.ml | a12n/ocaml-opencl | 3482d228edc5d31e7ad203cb8b7cc3abd1260dfa | [
"MIT"
] | null | null | null | gen/cl_bindgen.ml | a12n/ocaml-opencl | 3482d228edc5d31e7ad203cb8b7cc3abd1260dfa | [
"MIT"
] | null | null | null | gen/cl_bindgen.ml | a12n/ocaml-opencl | 3482d228edc5d31e7ad203cb8b7cc3abd1260dfa | [
"MIT"
] | null | null | null | let headers =
"#ifdef __APPLE__\n" ^
"# include <OpenCL/cl.h>\n" ^
"#else\n" ^
"# include <CL/cl.h>\n" ^
"#endif\n"
let () =
let fmt = Format.std_formatter in
let prefix = "caml_" in
match Sys.argv.(1) with
| "c" -> (Format.fprintf fmt "%s@." headers;
Cstubs.write_c fmt ~prefix (modul... | 29 | 65 | 0.614224 |
aa321cbe2c902ed35ea7fce111fdd8e4fadc31f9 | 294 | ml | OCaml | vendor/base_quickcheck/src/observer0.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 10 | 2019-06-25T03:35:58.000Z | 2021-12-17T02:52:42.000Z | vendor/base_quickcheck/src/observer0.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 3 | 2018-07-29T20:04:27.000Z | 2022-01-03T11:24:59.000Z | vendor/base_quickcheck/src/observer0.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Base
type 'a t = 'a -> size:int -> hash:Hash.state -> Hash.state
let create f : _ t = f
let observe (t : _ t) x ~size ~hash =
if size < 0
then raise_s [%message "Base_quickcheck.Observer.observe: size < 0" (size : int)]
else t x ~size ~hash
;;
let opaque _ ~size:_ ~hash = hash
| 21 | 83 | 0.622449 |
f373b56d04e3255fa13d3e88d555290ed97fde70 | 2,475 | ml | OCaml | src/typing/module_info.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/typing/module_info.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/typing/module_info.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(**
* This module tracks the exports from a given file, or declared module.
*
* Initially, we assume we're dealing with a Comm... | 33.445946 | 100 | 0.647273 |
bccfc4c1955238b190389a9d105235cecd55c576 | 131 | mli | OCaml | src/res_driver_reason_binary.mli | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 57 | 2020-07-01T16:57:41.000Z | 2020-07-21T19:26:37.000Z | src/res_driver_reason_binary.mli | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 65 | 2020-07-01T17:55:29.000Z | 2020-08-09T10:43:23.000Z | src/res_driver_reason_binary.mli | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 4 | 2020-07-03T11:33:08.000Z | 2020-07-08T09:12:03.000Z | (* This module represents a general interface to parse marshalled reason ast *)
val parsingEngine : unit Res_driver.parsingEngine
| 32.75 | 79 | 0.80916 |
bcf5fbed57239217fd143a3a5af49214d29f75fe | 3,601 | mli | OCaml | shredded/shredded_main_memory/shredded_main_memory_btree.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | shredded/shredded_main_memory/shredded_main_memory_btree.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | shredded/shredded_main_memory/shredded_main_memory_btree.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 45.582278 | 111 | 0.603721 |
aa2d20961728156d08a44e599e29fe9ac082a023 | 4,235 | ml | OCaml | lib/day_15/day_15.ml | p1xelHer0/advent-of-code-2021-ocaml | 769e3f8f7b201085963108a4536cd33b32683b90 | [
"MIT"
] | 2 | 2021-12-01T11:00:41.000Z | 2021-12-03T17:24:17.000Z | lib/day_15/day_15.ml | p1xelHer0/advent-of-code-2021-ocaml | 769e3f8f7b201085963108a4536cd33b32683b90 | [
"MIT"
] | null | null | null | lib/day_15/day_15.ml | p1xelHer0/advent-of-code-2021-ocaml | 769e3f8f7b201085963108a4536cd33b32683b90 | [
"MIT"
] | null | null | null | open ContainersLabels
module Coordinate = struct
type t = {
x : int;
y : int;
value : int;
}
let make ~x ~y value = { x; y; value }
let compare t1 t2 =
match compare t1.x t2.x with 0 -> compare t1.y t2.y | _ as x -> x
let pp t =
"(("
^ string_of_int t.x
^ ","
^ string_of_in... | 24.2 | 79 | 0.56954 |
aa1565599ab2072899164ab0f08c1aba511781be | 5,088 | ml | OCaml | data/sp14/0726.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/0726.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/0726.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr
| Nom of expr* expr* expr
| Squa of expr;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine expr -> "sin(pi*" ^ ((exprToString ... | 20.433735 | 84 | 0.466588 |
bcdcb62c7fddfc8a9ce0758452848f59dc68bb29 | 64 | ml | OCaml | src/cstar.ml | kkysen/cstar | c853e2dc37120a7b80baaf68cd8cb8ec2dcc5faf | [
"MIT"
] | 1 | 2021-10-20T04:43:41.000Z | 2021-10-20T04:43:41.000Z | src/cstar.ml | kkysen/cstar | c853e2dc37120a7b80baaf68cd8cb8ec2dcc5faf | [
"MIT"
] | null | null | null | src/cstar.ml | kkysen/cstar | c853e2dc37120a7b80baaf68cd8cb8ec2dcc5faf | [
"MIT"
] | null | null | null | let main () : unit =
Driver.run ();
()
;;
let () = main ()
| 9.142857 | 20 | 0.421875 |
bc6a73bb32375a4da6a46a46a548dc9bd31663a9 | 6,483 | ml | OCaml | src/rewriting/term.ml | ksk/maedmax | 487f9a13af6877b50bde6e19b44c959eb5bec813 | [
"BSD-3-Clause"
] | null | null | null | src/rewriting/term.ml | ksk/maedmax | 487f9a13af6877b50bde6e19b44c959eb5bec813 | [
"BSD-3-Clause"
] | null | null | null | src/rewriting/term.ml | ksk/maedmax | 487f9a13af6877b50bde6e19b44c959eb5bec813 | [
"BSD-3-Clause"
] | null | null | null | (*** OPENS *******************************************************************)
open Format
open Formatx
open Signature
module Var = struct
type t = Signature.var
let compare = Stdlib.compare
end
module Sub = Map.Make(Var)
(*** TYPES *******************************************************************)
type t = ... | 27.705128 | 80 | 0.55391 |
bc76f3bb1368b6521640346a3f51c0810cd50f5d | 12,483 | mli | OCaml | api/ocaml/datakit_client.mli | rn/datakit | 8b4a98d268d9ba98643c8689553c42de9b8c621e | [
"Apache-2.0"
] | 1 | 2018-01-16T18:04:26.000Z | 2018-01-16T18:04:26.000Z | api/ocaml/datakit_client.mli | rn/datakit | 8b4a98d268d9ba98643c8689553c42de9b8c621e | [
"Apache-2.0"
] | null | null | null | api/ocaml/datakit_client.mli | rn/datakit | 8b4a98d268d9ba98643c8689553c42de9b8c621e | [
"Apache-2.0"
] | null | null | null | (** DataKit client API *)
type stat = {
kind: [`File | `Dir | `Link | `Exec];
size: int64;
}
type status_state =
[ `Pending
| `Success
| `Error
| `Failure ]
type 'a diff = [ `Added of 'a | `Removed of 'a | `Updated of 'a ]
(** The type for diffs. *)
type value = [`File of Cstruct.t | `Dir of string list... | 34.2 | 86 | 0.612673 |
aa5819d6cde097c4ffc7bebd24a57ecf3e07b05c | 34,372 | ml | OCaml | src/api/ocaml/external/num-1.1/test/test_ratios.ml | khzmk/repo1 | 8592061652dbf88fddfca9b65a6a12a01d9e3b47 | [
"MIT"
] | 260 | 2015-01-02T12:59:27.000Z | 2022-03-13T00:43:38.000Z | external/num-1.1/test/test_ratios.ml | CloudI/cloudi_api_ocaml | 0b6f619095c5600923ce78933d6268f659030b7b | [
"MIT"
] | 107 | 2015-01-03T21:51:25.000Z | 2021-12-22T05:09:46.000Z | external/num-1.1/test/test_ratios.ml | CloudI/cloudi_api_ocaml | 0b6f619095c5600923ce78933d6268f659030b7b | [
"MIT"
] | 34 | 2015-02-11T05:49:41.000Z | 2020-07-13T21:07:43.000Z | open Test;;
open Nat;;
open Big_int;;
open Ratio;;
open Arith_status;;
set_error_when_null_denominator false
;;
let infinite_failure = "infinite or undefined rational number";;
testing_function "create_ratio"
;;
let r = create_ratio (big_int_of_int 1) (big_int_of_int (-2)) in
test 1 eq_big_int (numerator_ratio r, b... | 28.73913 | 80 | 0.651228 |
bc32c306c28c87ca89aa5c756c5d23d318acfe44 | 3,580 | mli | OCaml | hphp/hack/src/heap/sharedMem.mli | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2017-09-13T22:07:37.000Z | 2017-09-13T22:07:37.000Z | hphp/hack/src/heap/sharedMem.mli | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2017-04-10T11:50:15.000Z | 2017-04-10T11:50:15.000Z | hphp/hack/src/heap/sharedMem.mli | wmde/hhvm | f43ae21551b3e37ec955bce770ca9a99677388fc | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-03-24T20:14:38.000Z | 2021-03-24T20:14:38.000Z | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(************... | 37.684211 | 80 | 0.515922 |
bc5c3d2fb8ab45fe58d4ac647d697e952d6fe2f9 | 871 | mli | OCaml | src/memo/implicit_output.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | src/memo/implicit_output.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/memo/implicit_output.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2017-12-07T21:21:12.000Z | 2017-12-07T21:21:12.000Z | (** Uses dynamic scope to collect implicit output produced by functions. *)
type 'o t
(** [produce] and [produce_opt] are used by effectful functions to produce
output. *)
val produce : 'o t -> 'o -> unit
val produce_opt : 'o t -> 'o option -> unit
(** [collect*] and [forbid*] take a potentially effectful funct... | 27.21875 | 80 | 0.639495 |
bce0997e746c2755d96a37af0053a510c8718dd8 | 4,033 | ml | OCaml | src/bindings/node/node.ml | mbacarella/vscode-ocaml-platform | 768fb66ef7e4be21d5d1a04077b4a9796ecb1120 | [
"ISC"
] | null | null | null | src/bindings/node/node.ml | mbacarella/vscode-ocaml-platform | 768fb66ef7e4be21d5d1a04077b4a9796ecb1120 | [
"ISC"
] | null | null | null | src/bindings/node/node.ml | mbacarella/vscode-ocaml-platform | 768fb66ef7e4be21d5d1a04077b4a9796ecb1120 | [
"ISC"
] | null | null | null | open Interop
module Process = struct
val cwd : unit -> string [@@js.global "process.cwd"]
val platform : string [@@js.global "process.platform"]
module Env = struct
val env : Ojs.t [@@js.global "process.env"]
let get k = [%js.to: string or_undefined] (Ojs.get env k)
let set k v = Ojs.set env k ([... | 25.36478 | 78 | 0.60005 |
aa6e283e84900d659e0565fdc7ed834e8ace84d3 | 23,450 | ml | OCaml | arm/proofs/bignum_sqr_p521_alt.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | arm/proofs/bignum_sqr_p521_alt.ml | jargh/s2n-bignum | 60e0181906811865bec1501e18c1384482585a46 | [
"Apache-2.0"
] | null | null | null | arm/proofs/bignum_sqr_p521_alt.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 ... | 46.806387 | 196 | 0.61258 |
bcf0b93af3eff6237e0f0b4f90cfec40c9a3da66 | 10,680 | ml | OCaml | src/hostnet_test/test_forward_protocol.ml | tiborvass/vpnkit | 7d18ec48982340f49461379d718a4538f3090e13 | [
"Apache-2.0"
] | null | null | null | src/hostnet_test/test_forward_protocol.ml | tiborvass/vpnkit | 7d18ec48982340f49461379d718a4538f3090e13 | [
"Apache-2.0"
] | null | null | null | src/hostnet_test/test_forward_protocol.ml | tiborvass/vpnkit | 7d18ec48982340f49461379d718a4538f3090e13 | [
"Apache-2.0"
] | null | null | null | (* Test the protocol used by vpnkit-forwarder *)
let src =
let src =
Logs.Src.create "test-forwarder"
~doc:"Test the protocol used by the vpnkit-forwarder"
in
Logs.Src.set_level src (Some Logs.Info) ;
src
module Log = (val Logs.src_log src : Logs.LOG)
open Forwarder.Frame
let inputs =
[ ( "open_... | 30.42735 | 83 | 0.612079 |
bc33e41ef458f97bc17514df8f202f4f5ffa85f6 | 2,491 | ml | OCaml | infer/src/unit/GradleTests.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 4 | 2020-06-16T14:40:24.000Z | 2021-07-28T18:02:26.000Z | infer/src/unit/GradleTests.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 25 | 2021-02-08T13:49:24.000Z | 2022-02-28T03:34:19.000Z | infer/src/unit/GradleTests.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 1 | 2021-01-29T07:48:02.000Z | 2021-01-29T07:48:02.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
open OUnit2
open Gradle
let javac_data_eq {files= f1; opts= o1} {files= f2; opts= o2} =
let string_list_eq = List.equ... | 39.539683 | 100 | 0.61943 |
aa651a1adcdccc0f6d0864381276f5d993de55f8 | 29,622 | ml | OCaml | infer/src/clang/cTrans_utils.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 2 | 2020-12-01T19:17:41.000Z | 2021-11-16T11:16:32.000Z | infer/src/clang/cTrans_utils.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 6 | 2021-06-28T20:30:19.000Z | 2022-02-27T10:48:57.000Z | infer/src/clang/cTrans_utils.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module Hashtbl = Caml.Hashtbl
(** Utility methods to support the translation of clang ast constructs ... | 37.260377 | 100 | 0.715245 |
bc109ccf37b7cc91b0fa7388b61fdafeb33e22e4 | 44,397 | ml | OCaml | interprocedural_analyses/taint/forwardAnalysis.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/forwardAnalysis.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/forwardAnalysis.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open Analysis
open Ast
open Expression
open Pyre
open Statement
open Domains
open AccessPath
module type FixpointState = sig
typ... | 41.146432 | 101 | 0.62547 |
bc236f2f254cadf59624c364f885b533cc950149 | 372 | ml | OCaml | benchmarks/C/nat/sol404.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/nat/sol404.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/nat/sol404.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type nat = ZERO | SUCC of nat;;
let rec natadd : nat -> nat -> nat =
fun n1 n2 ->
match n1 with
| ZERO -> n2
| SUCC n1' -> SUCC (natadd n1' n2)
;;
let rec natmul : nat -> nat -> nat =
fun n1 n2 ->
match (n1, n2) with
| (ZERO, n) | (n, ZERO) -> ZERO
| (SUCC ZERO, n) | (n, SUCC ZERO) -> n
... | 21.882353 | 49 | 0.497312 |
aa6df2cfe1e962634bf577e046156404afc87d54 | 1,850 | ml | OCaml | src/04-backends/multicore/multicore.ml | jO-Osko/eff | d1a0405ed6c1ffe4ceb872d05994ac817300d9fd | [
"BSD-2-Clause"
] | 659 | 2015-01-09T21:04:44.000Z | 2022-03-30T05:54:03.000Z | src/04-backends/multicore/multicore.ml | jO-Osko/eff | d1a0405ed6c1ffe4ceb872d05994ac817300d9fd | [
"BSD-2-Clause"
] | 44 | 2015-03-27T03:37:05.000Z | 2022-03-04T12:27:21.000Z | src/04-backends/multicore/multicore.ml | jO-Osko/eff | d1a0405ed6c1ffe4ceb872d05994ac817300d9fd | [
"BSD-2-Clause"
] | 38 | 2015-03-27T23:28:30.000Z | 2022-03-29T00:21:25.000Z | (* Compilation to multicore ocaml *)
open Utils
module Backend : Language.BackendSignature.T = struct
(* ------------------------------------------------------------------------ *)
(* Setup *)
type state = { prog : Syntax.cmd list }
let initial_state = { prog = [] }
(* Auxiliary functions *)
let update... | 29.83871 | 80 | 0.615676 |
bc8b73161c6d0cb82bc4921226d1d1878427a096 | 16,722 | ml | OCaml | src/typing/type_normalizer.ml | nkt/flow | 2811b484442cff224a82cae47bbb877caa7ed3de | [
"BSD-3-Clause"
] | null | null | null | src/typing/type_normalizer.ml | nkt/flow | 2811b484442cff224a82cae47bbb877caa7ed3de | [
"BSD-3-Clause"
] | null | null | null | src/typing/type_normalizer.ml | nkt/flow | 2811b484442cff224a82cae47bbb877caa7ed3de | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open Rea... | 33.377246 | 83 | 0.642387 |
8a7e607992bf578368e1018846c1a32d894ca0bf | 308 | ml | OCaml | data/derived/comb/progs/unify/prog6483.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/prog1643.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1643.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let removeDuplicates l =
let rec helper (seen,rest) =
match rest with
| [] -> seen
| h::t ->
let x = List.mem h seen in
if x
then helper (seen, t)
else
(let seen' = seen :: h in let rest' = t in helper (seen', rest')) in
List.rev (helper ([], l));;
| 23.692308 | 78 | 0.496753 |
bc5c1c00d20e8f42105ae97970c0893592348c4a | 722 | ml | OCaml | src/stages/6-mini_c/formatter.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | src/stages/6-mini_c/formatter.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | src/stages/6-mini_c/formatter.ml | ligolang/ligo-mirror | 8b491cbb5830071a8ef691f80148382eac1b2937 | [
"MIT"
] | null | null | null | open Simple_utils.Display
open Types
(* this type is not necessary if the output of CLI command 'print-mini-c' have the
same type when optimized and when not *)
type optim =
| Optimized of expression
| Raw of program
let program_ppformat ~display_format f p =
match display_format with
| Human_readable |... | 26.740741 | 83 | 0.6759 |
aa46ee87fbf892a4e8cb4a8c6eacda6f981b47d9 | 3,007 | ml | OCaml | src/services/type_info/type_info_service.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/services/type_info/type_info_service.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/services/type_info/type_info_service.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
let json_data_of_result str acc = ("result", Hh_json.JSON_String str) :: acc
let json_data_of_error str acc = ("error", Hh_json.... | 33.043956 | 100 | 0.661124 |
bcf23fe7be647ae1d16ef8fa9315b2b089326eef | 16,583 | ml | OCaml | hphp/hack/src/hhbc/emit_memoize_method.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_memoize_method.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/emit_memoize_method.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Instruction_sequence
open Emit_memoize_helpers
open Hhbc_ast
module R = Hhbc_string_utils.Rei... | 35.433761 | 95 | 0.739733 |
bc60db659c0ff957149e83d67f6f2c13344f5865 | 5,440 | ml | OCaml | src/solvers/backend/query/minisat/MiniPosQuery.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | 7 | 2016-08-31T19:50:12.000Z | 2019-01-21T04:51:07.000Z | src/solvers/backend/query/minisat/MiniPosQuery.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null | src/solvers/backend/query/minisat/MiniPosQuery.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null |
(***********************************************************************)
(* *)
(* LEAP *)
(* *)
(* Alejan... | 45.714286 | 93 | 0.423529 |
bcd0508f150f1e78b106f209eafd78bac0e34ca5 | 38,138 | ml | OCaml | hack/heap/sharedMem.ml | danstiner/flow | b76ad725177284681d483247e89739c292ed982b | [
"MIT"
] | null | null | null | hack/heap/sharedMem.ml | danstiner/flow | b76ad725177284681d483247e89739c292ed982b | [
"MIT"
] | null | null | null | hack/heap/sharedMem.ml | danstiner/flow | b76ad725177284681d483247e89739c292ed982b | [
"MIT"
] | 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
(* Don't change the ordering of this record without updating hh_shared_init in
* hh_shared.c, which ... | 31.183974 | 85 | 0.579947 |
aa4c9b4f794de39142da1ba86a7c570d6da850b3 | 458 | ml | OCaml | data/sp14_min/1046.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1046.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1046.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec assoc (d,k,l) =
match l with
| [] -> d
| h::t -> if (fst h) = k then snd h else assoc (d k t);;
(* fix
let rec assoc (d,k,l) =
match l with
| [] -> d
| h::t -> if (fst h) = k then snd h else assoc (d, k, t);;
*)
(* changed spans
(5,50)-(5,57)
(d , k , t)
TupleG [VarG,VarG,VarG]
*)
(* type er... | 13.085714 | 60 | 0.473799 |
aa3d232681b15553d718f9d486cb4e620b2349d7 | 154 | ml | OCaml | result/cafe2/mirror/sub4/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/mirror/sub4/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/mirror/sub4/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type btree = Empty | Node of (int * btree * btree)
let rec mirror (t : btree) : btree =
match t with Empty -> Empty | Node (a, b, c) -> Node (a, c, b)
| 30.8 | 64 | 0.584416 |
bcf435c39a762e5d7a917fc227364add83bc2b08 | 257,019 | ml | OCaml | src/typing/statement.ml | gregeinfrank/flow | 466ff9b70de57ed2ffef9de8bea9f2f16cf170bb | [
"MIT"
] | null | null | null | src/typing/statement.ml | gregeinfrank/flow | 466ff9b70de57ed2ffef9de8bea9f2f16cf170bb | [
"MIT"
] | null | null | null | src/typing/statement.ml | gregeinfrank/flow | 466ff9b70de57ed2ffef9de8bea9f2f16cf170bb | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
(* This module contains the traversal functions which set up subtyping
constraints for every expression, state... | 38.995448 | 100 | 0.614367 |
bcebe9c8b6ca80de5679bbb0b8079237cfbd5d9e | 364 | ml | OCaml | data/derived/comb/progs/unify/prog8070.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/prog3277.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3277.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec exprToString e =
match e with
| VarX -> "VarX"
| VarY -> "VarY"
| Sine e -> "Sine"
| Cosine e -> "Cosine"
| Average (e,e) -> "Average"
| Ti... | 18.2 | 38 | 0.552198 |
44f0b9bccde593a685b37ceae27515e11533108e | 96 | mli | OCaml | lib/bap_main/bap_main_log.mli | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1,697 | 2015-01-09T07:17:41.000Z | 2022-03-26T17:48:05.000Z | lib/bap_main/bap_main_log.mli | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 685 | 2015-01-10T21:32:42.000Z | 2022-03-23T23:44:53.000Z | lib/bap_main/bap_main_log.mli | dvntaudio/bap | 5cfc3e584ea32d6c0c33013e050fb1a1e8f260de | [
"MIT"
] | 294 | 2015-01-10T15:51:57.000Z | 2022-03-20T05:37:22.000Z | val in_directory : ?logdir:string -> unit -> unit
val process_events : Format.formatter -> unit
| 32 | 49 | 0.739583 |
bc631436b1d73e7e9a9c709edbee47e20c016786 | 3,608 | ml | OCaml | src/base-solver/sidekick_base_solver.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | null | null | null | src/base-solver/sidekick_base_solver.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | null | null | null | src/base-solver/sidekick_base_solver.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | null | null | null |
(** SMT Solver and Theories for [Sidekick_base].
This contains instances of the SMT solver, and theories,
from {!Sidekick_core}, using data structures from
{!Sidekick_base}. *)
open! Sidekick_base
(** Argument to the SMT solver *)
module Solver_arg = struct
module T = Sidekick_base.Solver_arg
module... | 29.57377 | 85 | 0.663803 |
442336826e878e12c27db2433b3ac82e60407773 | 2,914 | mli | OCaml | src/typing/class_sig.mli | nkt/flow | 2811b484442cff224a82cae47bbb877caa7ed3de | [
"BSD-3-Clause"
] | 2 | 2019-04-15T09:36:00.000Z | 2021-01-19T15:27:20.000Z | src/typing/class_sig.mli | gajus/flow | 8a475d7b6304297fbb4740d3325e99385c8a4f68 | [
"BSD-3-Clause"
] | null | null | null | src/typing/class_sig.mli | gajus/flow | 8a475d7b6304297fbb4740d3325e99385c8a4f68 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T01:42:06.000Z | 2018-10-10T01:42:06.000Z | (** Intermediate representation for classes and interfaces *)
type t
type field = Type.t * Type.polarity * Spider_monkey_ast.Expression.t option
(** 1. Constructors **)
(** Create signature with no elements. *)
val empty:
?structural:bool ->
int -> (* id *)
Reason.t ->
Type.typeparam list ->
Type.t SMap.t... | 30.041237 | 78 | 0.688058 |
bcfe03b1193957a1769ff62ef7e982928477e213 | 31,101 | ml | OCaml | src/lib_lwt_result_stdlib/bare/structs/list.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/lib_lwt_result_stdlib/bare/structs/list.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/lib_lwt_result_stdlib/bare/structs/list.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 29.73327 | 82 | 0.529983 |
aa52169281b92558c3361212c435009f30541b19 | 2,901 | ml | OCaml | lib/pins.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | lib/pins.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | lib/pins.ml | snowleopard/duniverse | 8af7ca1d4043b76d96cfe146926621186a0c75aa | [
"ISC"
] | null | null | null | open Astring
open Rresult.R
let compute_deps ~opam_entries =
Dune_cmd.log_invalid_packages opam_entries;
let get_default_branch remote = Exec.git_default_branch ~remote () in
Duniverse.Deps.from_opam_entries ~get_default_branch opam_entries
let resolve_ref deps =
let resolve_ref ~upstream ~ref = Exec.git_res... | 39.202703 | 98 | 0.697001 |
bc2780074437f5e67c7478e8eba9f7c3b1d9a8c9 | 11,835 | ml | OCaml | src/backend/treeManipulation.ml | dratini0/etpl | 0f08863a5468f08fcc924193259738a6f9937991 | [
"Apache-2.0"
] | 2 | 2018-03-10T15:20:15.000Z | 2018-03-12T10:35:36.000Z | src/backend/treeManipulation.ml | dratini0/etpl | 0f08863a5468f08fcc924193259738a6f9937991 | [
"Apache-2.0"
] | null | null | null | src/backend/treeManipulation.ml | dratini0/etpl | 0f08863a5468f08fcc924193259738a6f9937991 | [
"Apache-2.0"
] | null | null | null | (*
* treeManipulation.ml
* Copyright 2017-2018 Balint Kovacs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 43.833333 | 153 | 0.668357 |
bca15136389475a0247a9a4be3e49a8ac8ddd22a | 171,396 | ml | OCaml | src/boot/me/trans.ml | spastorino/rust-prehistory | 08ba0a74a7dd74b42c967b9c0263eb63627e9bb9 | [
"MIT"
] | 393 | 2016-11-08T07:47:46.000Z | 2022-03-25T14:08:41.000Z | src/boot/me/trans.ml | spastorino/rust-prehistory | 08ba0a74a7dd74b42c967b9c0263eb63627e9bb9 | [
"MIT"
] | 1 | 2021-05-03T19:05:35.000Z | 2021-05-03T19:05:35.000Z | src/boot/me/trans.ml | spastorino/rust-prehistory | 08ba0a74a7dd74b42c967b9c0263eb63627e9bb9 | [
"MIT"
] | 35 | 2016-11-08T09:54:18.000Z | 2022-03-19T10:36:26.000Z | (* Translation *)
open Semant;;
open Common;;
open Transutil;;
let log cx = Session.log "trans"
cx.ctxt_sess.Session.sess_log_trans
cx.ctxt_sess.Session.sess_log_out
;;
let arr_max a = (Array.length a) - 1;;
type quad_idx = int
;;
type call =
{
call_ctrl: call_ctrl;
call_callee_ptr: Il.operand;... | 34.061208 | 78 | 0.573975 |
bc8387f398a5507c94ef7f07bf702dcf407f6a40 | 20,264 | ml | OCaml | src/lib/genesis_ledger/testnet_postake_ledger.ml | knarz/coda | efec9ba276083cef14a0cd81902e285cc9172e1d | [
"Apache-2.0"
] | null | null | null | src/lib/genesis_ledger/testnet_postake_ledger.ml | knarz/coda | efec9ba276083cef14a0cd81902e285cc9172e1d | [
"Apache-2.0"
] | null | null | null | src/lib/genesis_ledger/testnet_postake_ledger.ml | knarz/coda | efec9ba276083cef14a0cd81902e285cc9172e1d | [
"Apache-2.0"
] | null | null | null | open Functor.Without_private
module Public_key = Signature_lib.Public_key
include Make (struct
let accounts =
[ { pk=
Public_key.Compressed.of_base58_check_exn
"tNciXRzP5ViAqK6TbwfBhNkuppA2XVatF6uEvWNrrh6eBY7hsYbQfQTBkfNjpQZuY3s4jU5LYD3ZBhM2z4mbvmHeHQvCHqe7vwr2wQH4gJLSv14tf6iWHyoRWHZ4XS2s6o... | 54.767568 | 160 | 0.774131 |
bcebdd3686f0453855cb857e864dab2e09ccba39 | 1,372 | mli | OCaml | src/rescript-editor-support/vendor/omd/omd_lexer.mli | amiralies/rescript-editor-support | 33287cf8f74001fb8d767855e49036dc56a1c54b | [
"MIT"
] | 33 | 2020-11-19T11:45:40.000Z | 2021-04-21T19:21:21.000Z | src/rescript-editor-support/vendor/omd/omd_lexer.mli | amiralies/rescript-editor-support | 33287cf8f74001fb8d767855e49036dc56a1c54b | [
"MIT"
] | 68 | 2020-11-19T13:39:39.000Z | 2021-04-23T14:29:05.000Z | src/rescript-editor-support/vendor/omd/omd_lexer.mli | amiralies/rescript-editor-support | 33287cf8f74001fb8d767855e49036dc56a1c54b | [
"MIT"
] | 4 | 2020-11-21T01:31:44.000Z | 2021-04-23T23:52:18.000Z | type token = Omd_representation.tok
type t = token list
val lex : string -> t
(** Translate a raw string into tokens for the parser. To implement
an extension to the lexer, one may process its result before
giving it to the parser. To implement an extension to the
parser, one may extend it using the const... | 35.179487 | 69 | 0.706268 |
44f8740f8ab9fa5bc6c58bc34f4b36ea297d2878 | 1,184 | ml | OCaml | mlml/tree/type_expression.ml | coord-e/mlml | ec34b1fe8766901fab6842b790267f32b77a2861 | [
"MIT"
] | 51 | 2019-04-06T14:22:22.000Z | 2021-11-24T09:53:15.000Z | mlml/tree/type_expression.ml | coord-e/mlml | ec34b1fe8766901fab6842b790267f32b77a2861 | [
"MIT"
] | null | null | null | mlml/tree/type_expression.ml | coord-e/mlml | ec34b1fe8766901fab6842b790267f32b77a2861 | [
"MIT"
] | 4 | 2019-12-30T01:08:42.000Z | 2022-02-11T06:36:55.000Z | module NS = Namespace
type 'a t =
| Ident of 'a
| Tuple of 'a t list
| Var of string
| Ctor of 'a t list * 'a
| Function of 'a t * 'a t
(* apply `f` on reference names, apply `g` on binding names *)
let rec apply_on_names f g e =
let apply = apply_on_names f g in
match e with
| Ident x -> Ident (f x N... | 28.190476 | 81 | 0.605574 |
bccf284eff53d923b27a489baa6f54d9c29c725b | 69 | ml | OCaml | Kody/wygladzaniefunkcji.ml | niedziol/OCaml | 4e9b345931e653397c5a8fea5324802793ace2a1 | [
"MIT"
] | null | null | null | Kody/wygladzaniefunkcji.ml | niedziol/OCaml | 4e9b345931e653397c5a8fea5324802793ace2a1 | [
"MIT"
] | null | null | null | Kody/wygladzaniefunkcji.ml | niedziol/OCaml | 4e9b345931e653397c5a8fea5324802793ace2a1 | [
"MIT"
] | null | null | null | let wygladzenie dx f = fun x -> (f(x - dx) + f(x) + f(x + dx)) /. 3;; | 69 | 69 | 0.463768 |
bcee1ca93170ea028a0bfa9d441200dc91f5988d | 38,235 | ml | OCaml | hphp/hack/src/full_fidelity/full_fidelity_expression_parser.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/full_fidelity/full_fidelity_expression_parser.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/full_fidelity/full_fidelity_expression_parser.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module Token ... | 38.699393 | 80 | 0.690519 |
aa63ade6c367f9b67d44e8c5676bf610709dacf0 | 2,618 | ml | OCaml | net/test2/server.ml | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | 3 | 2021-03-15T17:57:46.000Z | 2021-09-29T13:11:36.000Z | net/test2/server.ml | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | net/test2/server.ml | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* Copyright (c) 2009, Romain BARDOU *)
(* All rights reserved. *)
(* *)
(* Redistrib... | 54.541667 | 76 | 0.548892 |
aa3e30cba52d246277a193b91b7c5e9893f1916e | 3,041 | mli | OCaml | src/pathTree.mli | andersfischernielsen/eba | ceb42493d995120cc266f15fc85c0e07fea3d9b7 | [
"BSD-3-Clause"
] | 1 | 2017-06-08T14:45:35.000Z | 2017-06-08T14:45:35.000Z | src/pathTree.mli | andersfischernielsen/eba | ceb42493d995120cc266f15fc85c0e07fea3d9b7 | [
"BSD-3-Clause"
] | null | null | null | src/pathTree.mli | andersfischernielsen/eba | ceb42493d995120cc266f15fc85c0e07fea3d9b7 | [
"BSD-3-Clause"
] | 1 | 2017-05-17T14:00:04.000Z | 2017-05-17T14:00:04.000Z |
open Batteries
open Type
open Abs
type test_kind = TWhile of bool (* enter branch *) | TOther
(* A computation step: either the execution of an statement;
* the evaluation of a branch condition; or the return of
* a function (possibly) with an expression.
*)
type step_kind =
| Stmt of Cil.instr list
| Test of ... | 26.215517 | 101 | 0.653403 |
aa5faeaaa687044f2282f5c736c8bbb916c7f80b | 205,921 | ml | OCaml | coq/tactics/tactics.ml | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/tactics/tactics.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/tactics/tactics.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 40.211092 | 154 | 0.669621 |
aa48dda138de3a9b1f782f177c6e01bed305ec98 | 3,560 | ml | OCaml | day_09.ml | StrahR/AoC-2019 | b4c796689d17142f7dbb97a38eddf5cf02767d7d | [
"MIT"
] | null | null | null | day_09.ml | StrahR/AoC-2019 | b4c796689d17142f7dbb97a38eddf5cf02767d7d | [
"MIT"
] | null | null | null | day_09.ml | StrahR/AoC-2019 | b4c796689d17142f7dbb97a38eddf5cf02767d7d | [
"MIT"
] | null | null | null | let get_from_mem mem p =
if Hashtbl.mem mem p
then Hashtbl.find mem p
else 0
let get_loc rel_pos mode parameter =
if mode = 1 || mode = 0
then parameter
else parameter + rel_pos
let get_data mem rel_pos mode parameter =
if mode = 1 then parameter
else get_from_mem mem (get_loc rel_pos mode parameter)
... | 35.6 | 103 | 0.645506 |
44ea1910ae46424bbf91cc68144856c6570f0443 | 1,482 | ml | OCaml | src/lib/verifier/dummy.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | src/lib/verifier/dummy.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | src/lib/verifier/dummy.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
open Coda_base
type t = unit
type ledger_proof = Ledger_proof.Debug.t
let create ~logger:_ ~proof_level ~pids:_ ~conf_dir:_ =
match proof_level with
| Genesis_constants.Proof_level.Full ->
failwith "Unable to handle proof-level=Full"
| Check | None ->
Deferred.ret... | 30.875 | 79 | 0.687584 |
bcbc6430b1a92befb6e94dce21b227ca71b313ee | 11,307 | ml | OCaml | lib/docstrings.ml | let-def/ocaml-recovery-parser | 87a87a25c9436f2e3187b82ec59a5f75c0e2446b | [
"MIT"
] | 6 | 2021-05-11T09:14:12.000Z | 2022-02-12T05:09:06.000Z | lib/docstrings.ml | let-def/ocaml-recovery-parser | 87a87a25c9436f2e3187b82ec59a5f75c0e2446b | [
"MIT"
] | null | null | null | lib/docstrings.ml | let-def/ocaml-recovery-parser | 87a87a25c9436f2e3187b82ec59a5f75c0e2446b | [
"MIT"
] | 1 | 2021-09-14T14:50:17.000Z | 2021-09-14T14:50:17.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 26.793839 | 79 | 0.633678 |
aa6d47acbc7cf95d4c11e9e4eccb38d5372afa93 | 925 | ml | OCaml | src/common/transaction/transaction.ml | Ricardo-Marques/flow | e3983c7a423eefa1678e33e026c453487dd626bc | [
"MIT"
] | null | null | null | src/common/transaction/transaction.ml | Ricardo-Marques/flow | e3983c7a423eefa1678e33e026c453487dd626bc | [
"MIT"
] | null | null | null | src/common/transaction/transaction.ml | Ricardo-Marques/flow | e3983c7a423eefa1678e33e026c453487dd626bc | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type mutator = {
commit: unit -> unit Lwt.t;
rollback: unit -> unit Lwt.t;
}
type t = {
mutable mutators: mutator list
}
let ad... | 23.717949 | 75 | 0.685405 |
bc810c85be19a30bccdbb5ce786ef8be589a45c1 | 3,382 | ml | OCaml | lib/clientSignalling.ml | avsm/signpostd | b7f43919531626a19f472b180ad4e8dc52955eea | [
"0BSD"
] | 1 | 2017-09-28T10:59:18.000Z | 2017-09-28T10:59:18.000Z | lib/clientSignalling.ml | avsm/signpostd | b7f43919531626a19f472b180ad4e8dc52955eea | [
"0BSD"
] | null | null | null | lib/clientSignalling.ml | avsm/signpostd | b7f43919531626a19f472b180ad4e8dc52955eea | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2012 Sebastian Probst Eide <sebastian.probst.eide@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE I... | 38.873563 | 77 | 0.650503 |
aa64246c0aa0a51eec898aae1b794ced68f47708 | 9,662 | ml | OCaml | infer/src/IR/Pvar.ml | awesome-archive/infer | c91d0a777d9692cf77ec2a287d588a4cdc886b67 | [
"MIT"
] | null | null | null | infer/src/IR/Pvar.ml | awesome-archive/infer | c91d0a777d9692cf77ec2a287d588a4cdc886b67 | [
"MIT"
] | null | null | null | infer/src/IR/Pvar.ml | awesome-archive/infer | c91d0a777d9692cf77ec2a287d588a4cdc886b67 | [
"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 L = Logging
module F = Format
t... | 34.262411 | 100 | 0.692196 |
aa44db8aca969a220ed3db4679b08081bc5b74b0 | 6,029 | ml | OCaml | src/ast/analyzing/engine/flattreediff.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 4 | 2021-03-26T01:43:06.000Z | 2022-02-22T13:16:26.000Z | src/ast/analyzing/engine/flattreediff.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 2 | 2020-10-25T07:44:54.000Z | 2021-03-28T08:15:14.000Z | src/ast/analyzing/engine/flattreediff.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 3 | 2017-02-28T02:57:32.000Z | 2022-02-09T07:01:11.000Z | (*
Copyright 2012-2020 Codinuum Software Lab <https://codinuum.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required... | 26.099567 | 81 | 0.593631 |
448f218ee8be918dc45dc992e80f06d7ece40bda | 16,494 | ml | OCaml | wp/plugin/wp.ml | whst/cbat_tools | 6c2d659881e6b694f97258115aac25f6c2622db4 | [
"MIT"
] | null | null | null | wp/plugin/wp.ml | whst/cbat_tools | 6c2d659881e6b694f97258115aac25f6c2622db4 | [
"MIT"
] | null | null | null | wp/plugin/wp.ml | whst/cbat_tools | 6c2d659881e6b694f97258115aac25f6c2622db4 | [
"MIT"
] | null | null | null | (***************************************************************************)
(* *)
(* Copyright (C) 2018/2019 The Charles Stark Draper Laboratory, Inc. *)
(* *)
(* This... | 46.991453 | 88 | 0.656784 |
8a6480912a0cf846f2f15909fc9038c3223a41a1 | 4,956 | ml | OCaml | src/lib/merkle_ledger_tests/test_stubs.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_ledger_tests/test_stubs.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_ledger_tests/test_stubs.ml | phreelyfe/mina | 34328cd4e9b6ac699c3330003e40976a1059ed90 | [
"Apache-2.0"
] | null | null | null | open Core
module Balance = Currency.Balance
module Account = struct
(* want bin_io, not available with Account.t *)
type t = Coda_base.Account.Stable.Latest.t
[@@deriving bin_io_unversioned, sexp, eq, compare, hash, yojson]
type key = Coda_base.Account.Key.Stable.Latest.t
[@@deriving bin_io_unversioned, sex... | 25.285714 | 94 | 0.700767 |
aa7243a61a8596f048908ff04d452ac4c8196f59 | 6,559 | mli | OCaml | src/oDate.mli | dmbaturin/odate | 4818467f40cddf7f58ac2974527a6f2ef46c5c17 | [
"MIT"
] | 15 | 2015-09-18T14:36:23.000Z | 2021-04-02T21:16:03.000Z | src/oDate.mli | dmbaturin/odate | 4818467f40cddf7f58ac2974527a6f2ef46c5c17 | [
"MIT"
] | 6 | 2018-02-01T01:02:33.000Z | 2020-12-02T20:29:01.000Z | src/oDate.mli | dmbaturin/odate | 4818467f40cddf7f58ac2974527a6f2ef46c5c17 | [
"MIT"
] | 9 | 2017-11-27T22:33:45.000Z | 2021-12-13T16:16:37.000Z | type weekday =
[ `Monday | `Tuesday | `Wednesday | `Thursday | `Friday | `Saturday | `Sunday ]
type month =
[ `January
| `February
| `March
| `April
| `May
| `June
| `July
| `August
| `September
| `October
| `November
| `December ]
type year = int
type day = int
type tz_internal = int
typ... | 19.696697 | 81 | 0.606952 |
bc588ac2493b3c01a159831f60ace19bd048837d | 7,775 | mli | OCaml | src/prometheus_async.mli | issuu/prometheus | 363c8996b6bdeaf090a092ee8ded5a00c9e78490 | [
"Apache-2.0"
] | null | null | null | src/prometheus_async.mli | issuu/prometheus | 363c8996b6bdeaf090a092ee8ded5a00c9e78490 | [
"Apache-2.0"
] | null | null | null | src/prometheus_async.mli | issuu/prometheus | 363c8996b6bdeaf090a092ee8ded5a00c9e78490 | [
"Apache-2.0"
] | null | null | null | (** Collect metrics for Prometheus.
See: https://prometheus.io/
Notes:
- The Prometheus docs require that client libraries are thread-safe. We interpret this to mean safe
with Lwt threads, NOT with native threading.
- This library is intended to be a dependency of any library that might need to... | 37.560386 | 150 | 0.674598 |
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.