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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd7f369b77836faf2395fe0d3ed44fd75d56d1ba | 12,905 | ml | OCaml | test/fmts.ml | sanette/tsdl | d0a9b510ec88f1d200c9209da5e04f5f2b2f035a | [
"BSD-3-Clause"
] | null | null | null | test/fmts.ml | sanette/tsdl | d0a9b510ec88f1d200c9209da5e04f5f2b2f035a | [
"BSD-3-Clause"
] | null | null | null | test/fmts.ml | sanette/tsdl | d0a9b510ec88f1d200c9209da5e04f5f2b2f035a | [
"BSD-3-Clause"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2013 Daniel C. Bünzli. All rights reserved.
Distributed under the BSD3 license, see license at the end of the file.
tsdl release 0.9.0
---------------------------------------------------------------------------*)
(* ... | 42.311475 | 79 | 0.692522 |
cd992580af573c81b92612d7bb8852cefdd8cc30 | 1,551 | mli | OCaml | src/graph/var.mli | paralax/tensorflow-ocaml | 38536a16e785b1b0d5afa521311f11d797925546 | [
"Apache-2.0"
] | null | null | null | src/graph/var.mli | paralax/tensorflow-ocaml | 38536a16e785b1b0d5afa521311f11d797925546 | [
"Apache-2.0"
] | 1 | 2019-04-08T08:37:44.000Z | 2019-04-08T08:37:44.000Z | src/graph/var.mli | issuu/tensorflow-ocaml | 908ad63f39597f265db93c2978a9aa256c24d606 | [
"Apache-2.0"
] | null | null | null | val create
: int list
-> type_:'a Node.Type.t
-> init:'a Node.t
-> 'a Node.t
val float : int list -> init:([ `float ] Node.t) -> [ `float ] Node.t
val double : int list -> init:([ `double ] Node.t) -> [ `double ] Node.t
val f_or_d
: int list
-> float
-> type_:([< `float | `double] as 'a) Node.Type.t
... | 27.210526 | 79 | 0.604771 |
17989f1362aa2ddd17c0fe1914d1bb2f1fc4d50b | 4,905 | ml | OCaml | lib/tyxml/snackbar.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | 1 | 2020-05-04T15:49:02.000Z | 2020-05-04T15:49:02.000Z | lib/tyxml/snackbar.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | null | null | null | lib/tyxml/snackbar.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | 1 | 2020-05-04T15:49:06.000Z | 2020-05-04T15:49:06.000Z | module CSS = struct
(** Mandatory. Container for the snackbar elements. *)
let root = "mdc-snackbar"
(** Mandatory. Snackbar surface. *)
let surface = BEM.add_element root "surface"
(** Mandatory. Message text. *)
let label = BEM.add_element root "label"
(** Optonal. Wraps the action button/icon elemen... | 30.092025 | 87 | 0.577982 |
cd453303e58f80aaa2564b24144878eba894cfcd | 6,662 | ml | OCaml | command-line/recover.ml | rvantonder/crypto-oss-data-msr-2019 | acd931433f70fd097930b2e62a294af6d31a2a77 | [
"MIT"
] | 8 | 2019-03-16T01:52:30.000Z | 2021-04-17T14:44:16.000Z | command-line/recover.ml | rvantonder/crypto-oss-data-msr-2019 | acd931433f70fd097930b2e62a294af6d31a2a77 | [
"MIT"
] | 2 | 2019-05-25T08:06:06.000Z | 2019-05-25T08:06:42.000Z | command-line/recover.ml | rvantonder/CryptOSS | acd931433f70fd097930b2e62a294af6d31a2a77 | [
"MIT"
] | null | null | null | open Core
open Option
open Record
type t = Record.t String.Table.t Date.Table.t
let (--) date days = Date.add_days date (-days)
let (!!) date =
let year = Date.year date in
let month = Date.month date |> Month.to_int in
let day = Date.day date in
Format.sprintf "%d-%02d-%02d" year month day
let f table lin... | 42.433121 | 118 | 0.637046 |
cd1c6618ac90d72de22ee5cefbf1712625358942 | 17,504 | ml | OCaml | vendor/async_kernel/src/time_source.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/async_kernel/src/time_source.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/async_kernel/src/time_source.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Core_kernel
open! Import
open! Deferred_std
let debug = Debug.clock
module Alarm = Timing_wheel.Alarm
module Deferred = Deferred1
module Scheduler = Scheduler1
let upon = Deferred.upon
let choose = Deferred.choose
let choice = Deferred.choice
let ( >>> ) = upon
module T1 = struct
include Synchronous_time_so... | 31.941606 | 91 | 0.644196 |
cd1adff34dc7a75aebd0fa09a616b48a1230b825 | 819 | ml | OCaml | lib_test/command-tests/demo_full_flag.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib_test/command-tests/demo_full_flag.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | lib_test/command-tests/demo_full_flag.ml | agarwal/core | 5ee4c65df85e5720dbbcc14087e2ef28259930ab | [
"Apache-2.0"
] | null | null | null | open Core.Std
let command =
Command.basic ~summary:"Test full flag validation" ~readme:(Fn.const "Simple readme")
Command.Spec.(
empty
+> flag "-full-flag-required"
~full_flag_required:()
~aliases:["full-alias-required"]
~doc:" make sure if the full argument is not pr... | 32.76 | 87 | 0.631258 |
cda259494e1a755359040f3836ac70e8b8134dff | 3,453 | ml | OCaml | src/lib_benchmark/crypto_samplers.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_benchmark/crypto_samplers.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_benchmark/crypto_samplers.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@tezos.com> *)
... | 40.623529 | 79 | 0.554011 |
cd6d723068e424514abc8551b110e06b37229fff | 5,016 | mli | OCaml | src/proto_009_PsFLorBA/lib_client/client_proto_baker.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_client/client_proto_baker.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_009_PsFLorBA/lib_client/client_proto_baker.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Metastate AG <hello@metastate.dev> *)
... | 33.44 | 79 | 0.626595 |
17414f2b113c87137e12446d62acfd77cd147e57 | 46,844 | ml | OCaml | hphp/hack/src/typing/typing_check_service.ml | aorenste/hhvm | e778b4f2841f077eeb4d453a3ad891d04dcf5e1e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_check_service.ml | aorenste/hhvm | e778b4f2841f077eeb4d453a3ad891d04dcf5e1e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_check_service.ml | aorenste/hhvm | e778b4f2841f077eeb4d453a3ad891d04dcf5e1e | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-01-06T04:58:57.000Z | 2022-01-06T04:58:57.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module Hack_bucket = Bucket
open Hh_prelude
open Option.Monad_infix
module Bucket = Hack_bucket
open Typing_service_types
open... | 35.514784 | 135 | 0.682457 |
cd09f8fdb77f1a7a2e9c10c058ba0182a70d8aa8 | 1,371 | ml | OCaml | infer/src/checkers/Sink.ml | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | 1 | 2018-11-10T08:04:26.000Z | 2018-11-10T08:04:26.000Z | infer/src/checkers/Sink.ml | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | infer/src/checkers/Sink.ml | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | 1 | 2019-10-24T14:47:52.000Z | 2019-10-24T14:47:52.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! IStd
module F = Format
module type Kind = sig
include TraceElem.Kind
val get : Typ.Procname.t -> HilExp.t list -> CallFlags.t... | 22.112903 | 93 | 0.658643 |
aa7fcfbd96fbdc602722ba39338011b7c5f757b3 | 455 | ml | OCaml | problems/accumulator.ml | ujamjar/hardcaml-tutorial | 258b5b2172916cd935758bd693b611fc83ce1917 | [
"BSD-4-Clause-UC"
] | 3 | 2017-01-17T00:56:14.000Z | 2017-01-17T08:09:53.000Z | problems/accumulator.ml | ujamjar/hardcaml-tutorial | 258b5b2172916cd935758bd693b611fc83ce1917 | [
"BSD-4-Clause-UC"
] | null | null | null | problems/accumulator.ml | ujamjar/hardcaml-tutorial | 258b5b2172916cd935758bd693b611fc83ce1917 | [
"BSD-4-Clause-UC"
] | null | null | null | open HardCaml.Signal
open HardCaml.Signal.Comb
module I = struct
type 'a t = {
input : 'a[@bits 1];
}[@@deriving hardcaml]
end
module O = struct
type 'a t = {
output : 'a[@bits 8];
}[@@deriving hardcaml]
end
module Seq = Make_seq(struct
let reg_spec = HardCaml.Signal.Seq.r_sync
let ram_spec = Har... | 18.2 | 59 | 0.67033 |
cd4e615a863cc683065ad4284c4d09e9ef945fd4 | 1,368 | mli | OCaml | libraries/cloudformation/lib/deregisterType.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/cloudformation/lib/deregisterType.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/deregisterType.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Removes a type or type version from active use in the CloudFormation registry. If a type or type version is deregistered, it cannot be used in CloudFormation operations.</p> <p>To deregister a type, you must individually deregister all registered versions of that type. If a type has only a single registered ver... | 48.857143 | 579 | 0.714181 |
17712f053c80c786fcc5cf29e24bd2571522d26f | 1,028 | ml | OCaml | hphp/hack/src/typing/nast_check/class_typeconst_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/typing/nast_check/class_typeconst_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/typing/nast_check/class_typeconst_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
open Nast_check_env
(* TODO: delete this check *)
let error_if_abstract_type_constant_wit... | 26.358974 | 75 | 0.714008 |
17fe3a16274de2ab633737d7801bfc93aa5cf241 | 857 | ml | OCaml | src/error.ml | thizanne/tiger | 14e4c9a6005d1455122f366a965e487434219f47 | [
"MIT"
] | 25 | 2015-04-07T17:06:40.000Z | 2020-10-16T16:43:03.000Z | src/error.ml | thizanne/tiger | 14e4c9a6005d1455122f366a965e487434219f47 | [
"MIT"
] | null | null | null | src/error.ml | thizanne/tiger | 14e4c9a6005d1455122f366a965e487434219f47 | [
"MIT"
] | 7 | 2016-01-11T03:59:18.000Z | 2019-02-17T09:22:32.000Z | open Printf
type t =
| LexingError
| SyntaxError
| TypeError
| NameError
exception Error of t * Location.t * string
let name_of_error = function
| LexingError -> "Lexing error"
| SyntaxError -> "Syntax error"
| TypeError -> "Type error"
| NameError -> "Name error"
let raise_error err loc msg =
rai... | 25.205882 | 70 | 0.716453 |
cd9ed2524b2ba79d1cfeddce72b8f900f2f29ff1 | 8,629 | ml | OCaml | test/passing/break_separators.ml | chrismamo1/ocamlformat | e6e1aa8728cb16868b0ad1394af3283e5473b6a2 | [
"MIT"
] | null | null | null | test/passing/break_separators.ml | chrismamo1/ocamlformat | e6e1aa8728cb16868b0ad1394af3283e5473b6a2 | [
"MIT"
] | null | null | null | test/passing/break_separators.ml | chrismamo1/ocamlformat | e6e1aa8728cb16868b0ad1394af3283e5473b6a2 | [
"MIT"
] | null | null | null | [@@@ocamlformat "break-separators=before"]
type t =
{ (* fooooooooooooooooooooooooooooooooooooooooooooooooooooooo *)
foooooooooooooooooooooooo: foooooooooooooooooooooooooooooooooooooooo
; (* foooooooooooooooooooooooooooooooooooooooooooo *)
fooooooooooooooooooooooooooooo: fooooooooooooooooooooooooooo }
typ... | 30.817857 | 76 | 0.679685 |
cd0a54144c4347101499d29b49f7ef586829f608 | 1,678 | mli | OCaml | ag_pathanalysis/ocaml/copy_prop.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2019-12-05T19:47:42.000Z | 2021-05-05T13:41:16.000Z | ag_pathanalysis/ocaml/copy_prop.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | null | null | null | ag_pathanalysis/ocaml/copy_prop.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2021-04-20T07:44:02.000Z | 2021-04-20T08:38:41.000Z | (** Copy propagation analysis. *)
(** Compute copy propagation for SSA CFGs. Returns a tuple
[cm,rm,lookup]. [cm] maps all variables with known copy
propagations to their copy propagated expression. [rm] maps all
variables to their known constant expression, if any, without copy
propagating any subexp... | 62.148148 | 206 | 0.702026 |
cd32eaf500949eadfc75057dbbf10200132a660b | 414 | ml | OCaml | data/derived/comb/progs/unify/prog8928.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/prog4151.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog4151.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 pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine e' -> sin (pi * (eval (e', x, y)))
| Cosine e' -> cos ... | 20.7 | 68 | 0.492754 |
cd048b62788d91e92615bca9d043bcc64a9f8b41 | 3,346 | mli | OCaml | src/lib_base/distributed_db_version.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_base/distributed_db_version.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_base/distributed_db_version.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 42.897436 | 79 | 0.564555 |
17b0d5d0eee47daf5b988c1452541204c6459859 | 134 | ml | OCaml | negative-tests/missing.ml | npm-opam/ppx_expect | 4db88629425ef5edce7bd5e10dec7709922e40cb | [
"Apache-2.0"
] | null | null | null | negative-tests/missing.ml | npm-opam/ppx_expect | 4db88629425ef5edce7bd5e10dec7709922e40cb | [
"Apache-2.0"
] | null | null | null | negative-tests/missing.ml | npm-opam/ppx_expect | 4db88629425ef5edce7bd5e10dec7709922e40cb | [
"Apache-2.0"
] | null | null | null | open! Core.Std
(* Example with no [%expect] node at all *)
let%expect_test _ =
print_string "hello\n";
print_string "goodbye\n"
| 16.75 | 43 | 0.686567 |
cd8c47bc61114394da2d6efda0fd9f79354b0648 | 7,594 | mli | OCaml | src/lib_protocol_environment/environment_V2.mli | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_protocol_environment/environment_V2.mli | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_protocol_environment/environment_V2.mli | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 52.372414 | 80 | 0.639057 |
cd9a6002cd706deaf6bdb615bf0c134b68ae8ac8 | 2,265 | mli | OCaml | src/core/CCHash.mli | nilsbecker/ocaml-containers | 2aa801631c73e962d65f8f538eb8d7de20249dc8 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCHash.mli | nilsbecker/ocaml-containers | 2aa801631c73e962d65f8f538eb8d7de20249dc8 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCHash.mli | nilsbecker/ocaml-containers | 2aa801631c73e962d65f8f538eb8d7de20249dc8 | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of containers. See file "license" for more details. *)
(** {1 Hash combinators} *)
(** {2 Definitions} *)
type hash = int
(** A hash value is a positive integer. *)
type 'a t = 'a -> hash
(** A hash function for values of type ['a]. *)
val const : hash -> _ t
(** [const h] hash... | 27.289157 | 90 | 0.577042 |
17f964a7f2d0fe395ee29f7de6477f5236d60c04 | 2,360 | ml | OCaml | infer/src/base/Process.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/base/Process.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/base/Process.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"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! IStd
module L = Logging
module F = Format
(** Prints an error message to a log file, prints a message saying that the error can be... | 35.757576 | 96 | 0.65 |
cd905334b4015c0ec429ed8c711217cdb1121ae3 | 28,467 | ml | OCaml | command/startCommand.ml | KaisongHuang/pyre-check | 12e0804b72a8c39318245fa56349806ee8bf8116 | [
"MIT"
] | null | null | null | command/startCommand.ml | KaisongHuang/pyre-check | 12e0804b72a8c39318245fa56349806ee8bf8116 | [
"MIT"
] | null | null | null | command/startCommand.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 Core
open Pyre
open Network
open Scheduler
open Server
open State
open Socket
open Protocol
module Time = Core_kernel.Time_ns.Span
modul... | 39.59249 | 102 | 0.64436 |
17713938fd21654c8cdab9108820957aa7f01e20 | 25,988 | ml | OCaml | src/ocaml/typing/btype.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 4 | 2020-12-02T04:11:43.000Z | 2021-08-09T00:45:21.000Z | src/ocaml/typing/btype.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 4 | 2020-11-18T00:34:48.000Z | 2021-09-16T08:55:11.000Z | src/ocaml/typing/btype.ml | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 5 | 2020-01-28T22:20:05.000Z | 2022-02-01T18:46:06.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier L... | 30.864608 | 80 | 0.597968 |
cd7cf88e558b4e40b7cb54a1c6de2e281c92f877 | 154 | ml | OCaml | tests/compiler/modules.t/simple_nested.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | tests/compiler/modules.t/simple_nested.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | tests/compiler/modules.t/simple_nested.ml | progman1/caramel | 728830719a2a583eb894aed92a82a779d81bd2c3 | [
"Apache-2.0"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | module A = struct
let f () = 0
end
module B : sig
val f : unit -> int
end = struct
let f () = 2
let g () = ()
end
let run () = A.f () + B.f ()
| 11 | 28 | 0.474026 |
17ba985a8d9e169da6575c89fa45863a9cf597ec | 1,668 | mli | OCaml | interfaces/4.02/array.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 23 | 2017-11-16T10:01:56.000Z | 2021-06-23T08:44:44.000Z | interfaces/4.02/array.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 15 | 2018-04-21T13:49:52.000Z | 2022-02-16T11:19:38.000Z | interfaces/4.02/array.mli | crabtw/stdcompat | 667cb7bf93f423e3c7f56b319e9366394d6adc4a | [
"BSD-2-Clause-FreeBSD"
] | 8 | 2018-04-23T18:10:00.000Z | 2021-12-14T14:31:22.000Z | external length : 'a array -> int = "%array_length"
external get : 'a array -> int -> 'a = "%array_safe_get"
external set : 'a array -> int -> 'a -> unit = "%array_safe_set"
external make : int -> 'a -> 'a array = "caml_make_vect"
external create : int -> 'a -> 'a array = "caml_make_vect"[@@ocaml.deprecated
... | 53.806452 | 89 | 0.53777 |
cd148452084b31385856cc93bd7ccde4360618f5 | 1,818 | mli | OCaml | private/cie/list.mli | andrejbauer/rz | d92cacaf78fb50d61fc6712c74b8fdaf5d2c6d28 | [
"MIT"
] | 7 | 2019-08-28T10:12:29.000Z | 2021-08-07T21:04:22.000Z | private/cie/list.mli | andrejbauer/rz | d92cacaf78fb50d61fc6712c74b8fdaf5d2c6d28 | [
"MIT"
] | null | null | null | private/cie/list.mli | andrejbauer/rz | d92cacaf78fb50d61fc6712c74b8fdaf5d2c6d28 | [
"MIT"
] | null | null | null | module type List =
functor (S : sig
type s
(** predicate (=s=) : s -> s -> bool *)
(** Assertion symmetric_s =
forall x:s, y:s, x =s= y -> y =s= x
Assertion transitive_s =
... | 33.054545 | 76 | 0.384488 |
cd0a6d20eea1aa6050c34b57b14c23c544a009cb | 73,303 | ml | OCaml | hphp/hack/src/utils/errors.ml | edwinsmith/hhvm-armjit | 486a041a0dfe25c5d6a9a06bab657ab2cb5aa8ea | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2015-07-28T23:53:32.000Z | 2015-07-31T15:17:21.000Z | hphp/hack/src/utils/errors.ml | edwinsmith/hhvm-armjit | 486a041a0dfe25c5d6a9a06bab657ab2cb5aa8ea | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/errors.ml | edwinsmith/hhvm-armjit | 486a041a0dfe25c5d6a9a06bab657ab2cb5aa8ea | [
"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 Core
ope... | 38.378534 | 107 | 0.631407 |
17ad5fd2929380321451c9c1eec776fae341e505 | 2,865 | ml | OCaml | example/Index.ml | joelburget/monaco-ocaml | b30eb6ff95294a8886dc9eda78ae4f8aa19b9e2d | [
"0BSD"
] | null | null | null | example/Index.ml | joelburget/monaco-ocaml | b30eb6ff95294a8886dc9eda78ae4f8aa19b9e2d | [
"0BSD"
] | null | null | null | example/Index.ml | joelburget/monaco-ocaml | b30eb6ff95294a8886dc9eda78ae4f8aa19b9e2d | [
"0BSD"
] | null | null | null | open Brr
let initial_content =
{|// Type source code in your language here...
class MyClass {
@attribute
void main() {
Console.writeln( "Hello Monarch world\n");
}
}|}
;;
let () =
match Document.find_el_by_id G.document (Jstr.v "container") with
| None -> Console.(log [ str "couldn't find container" ]... | 34.107143 | 87 | 0.502269 |
cd12b9f3f1111645768b1d1f16798b9d77a19dfa | 97 | mli | OCaml | src/clusters.mli | superfunc/ocamlfdo | f87576b1f93e4ca38952f2f152c2bc335d6161ac | [
"MIT"
] | 23 | 2019-10-30T15:21:21.000Z | 2021-11-30T15:04:52.000Z | src/clusters.mli | superfunc/ocamlfdo | f87576b1f93e4ca38952f2f152c2bc335d6161ac | [
"MIT"
] | 3 | 2019-10-31T11:09:18.000Z | 2021-04-26T12:30:45.000Z | src/clusters.mli | superfunc/ocamlfdo | f87576b1f93e4ca38952f2f152c2bc335d6161ac | [
"MIT"
] | 4 | 2019-09-26T14:11:00.000Z | 2021-04-24T21:18:25.000Z | val optimize_layout : Cfg_label.t list -> Cfg_info.t -> Cfg_label.t list
val verbose : bool ref
| 24.25 | 72 | 0.742268 |
cd84f5562e518edb8cb03106e59ac7a487bd2c0b | 2,626 | ml | OCaml | hphp/hack/src/decl/decl_class_elements.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/decl/decl_class_elements.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/decl/decl_class_elements.ml | seanwallawalla-forks/hhvm | 4685a57b633609727c9755efe6d647aebf91ea77 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.000Z | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Decl_defs
open Decl_heap
type t = {
props: Props.KeySet.t;
sprops: StaticProps.KeySet.t;
... | 24.314815 | 77 | 0.685834 |
cd2cb135b4090834114ad3261e0dc443d981f906 | 4,287 | ml | OCaml | src/sast.ml | Joshua-401/OpenSC | 665a83fb628ac7feeaa9afb0c5d990bd0470c572 | [
"MIT"
] | 1 | 2020-05-11T05:31:46.000Z | 2020-05-11T05:31:46.000Z | src/sast.ml | Joshua-401/OpenSC | 665a83fb628ac7feeaa9afb0c5d990bd0470c572 | [
"MIT"
] | 4 | 2020-03-29T00:17:22.000Z | 2020-04-21T03:34:16.000Z | src/sast.ml | Joshua-401/OpenSC | 665a83fb628ac7feeaa9afb0c5d990bd0470c572 | [
"MIT"
] | 1 | 2020-06-02T22:21:02.000Z | 2020-06-02T22:21:02.000Z | open Ast
(* type sparam = *)
type varscope =
| Sglobal
| Slocal
type sexpr = typ * sx
and sx =
| SNumLit of int (* number literal *)
| SBoolLit of bool
| SStrLit of string
| SId of varscope * string
(* | SVar of sexpr * typ *)
| SEnvLit of string * string
| SMapexpr of sexpr * sexpr list
| SBinop of... | 37.938053 | 132 | 0.644273 |
cd172b6f5f0667cf6cd8bbfa8c60319a2474b0a0 | 3,128 | ml | OCaml | src/commands/config/version_regex.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 1 | 2019-07-15T20:48:46.000Z | 2019-07-15T20:48:46.000Z | src/commands/config/version_regex.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | src/commands/config/version_regex.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* given a string like "1.2.3", generates a regex that matches all versions
less than or equal to the given version. for exampl... | 36.372093 | 95 | 0.535806 |
17acdd5b6b0f348c4d1098ef8075b902a502ad33 | 23,654 | mli | OCaml | hphp/hack/src/utils/lsp/lsp.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/lsp/lsp.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/lsp/lsp.mli | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2019, 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 lsp_id =
| NumberId of int
| StringId of string
(* Note: this datatype provides no invariants that the str... | 23.677678 | 80 | 0.718145 |
cd8b938e109d63d84ceaaf768317e6c85793bc2f | 207 | ml | OCaml | src/import.ml | Octachron/base | f615735519cdb4cf2011133dba2884971a72ffb4 | [
"MIT"
] | null | null | null | src/import.ml | Octachron/base | f615735519cdb4cf2011133dba2884971a72ffb4 | [
"MIT"
] | 1 | 2017-11-08T23:21:19.000Z | 2017-11-08T23:21:19.000Z | src/import.ml | bcc32/bs-base | 5b7d907544d296964edcdc75ec88258137934a8c | [
"MIT"
] | 2 | 2021-06-16T23:18:39.000Z | 2022-03-01T19:47:33.000Z | include Import0
include Sexplib0.Sexp_conv
include Sexp.Grammar.Builtin
include Hash.Builtin
include Ppx_compare_lib.Builtin
include Int_replace_polymorphic_compare
exception Not_found_s = Sexp.Not_found_s
| 23 | 40 | 0.884058 |
cd71f52ed877cef11f430fcd05fdfa51834477cf | 1,673 | ml | OCaml | libraries/s3/lib/uploadPart.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/uploadPart.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/uploadPart.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = UploadPartRequest.t
type output = UploadPartOutput.t
type error = Errors_internal.t
let service = "s3"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string
(Aws.Util.of_option_exn (Endpoints.url_of service region)))
(List.append [("Ve... | 30.981481 | 90 | 0.574417 |
cd4c574dd781cfcf7517b4d701e7c59ff48f23a9 | 46 | mli | OCaml | compiler/lib/Optimizer/Untuple.mli | nilern/mulled | 45df2af868542be92202ea0aca2c8dc489418d2b | [
"BSD-3-Clause"
] | 6 | 2018-11-27T02:03:49.000Z | 2020-06-16T11:21:18.000Z | compiler/lib/Optimizer/Untuple.mli | nilern/mulled | 45df2af868542be92202ea0aca2c8dc489418d2b | [
"BSD-3-Clause"
] | 65 | 2019-10-17T14:56:37.000Z | 2020-08-31T18:54:20.000Z | compiler/lib/Optimizer/Untuple.mli | broom-lang/broom | c91b155e4385f498112afac5bc26f0e33e87459e | [
"BSD-3-Clause"
] | 1 | 2019-10-17T16:23:27.000Z | 2019-10-17T16:23:27.000Z | val untuple : Cps.Program.t -> Cps.Program.t
| 15.333333 | 44 | 0.695652 |
170189498edd527809f5c152eeedb8096455afdf | 1,198 | ml | OCaml | benchmarks/ocaml/002_generator/002_generator_ocaml.ml | jO-Osko/effect-handlers-bench | 42a50951ecea64f60404c6c5ec4b7fc8809c0b6f | [
"MIT"
] | 5 | 2021-07-23T14:12:26.000Z | 2021-12-04T02:19:23.000Z | benchmarks/ocaml/002_generator/002_generator_ocaml.ml | jO-Osko/effect-handlers-bench | 42a50951ecea64f60404c6c5ec4b7fc8809c0b6f | [
"MIT"
] | 13 | 2021-07-28T08:16:22.000Z | 2021-09-24T11:01:43.000Z | benchmarks/ocaml/002_generator/002_generator_ocaml.ml | jO-Osko/effect-handlers-bench | 42a50951ecea64f60404c6c5ec4b7fc8809c0b6f | [
"MIT"
] | 1 | 2021-08-03T10:45:37.000Z | 2021-08-03T10:45:37.000Z | let n = try int_of_string (Sys.argv.(1)) with _ -> 25
module MkGen (S :sig
type 'a t
val iter : ('a -> unit) -> 'a t -> unit
end) : sig
val gen : 'a S.t -> (unit -> 'a option)
end = struct
let gen : type a. a S.t -> (unit -> a option) = fun l ->
let module M = struct effect Yield : a -> unit end in
let... | 21.392857 | 58 | 0.53005 |
cd9c79ad0e153a30793afcb723aac1351ec8dea8 | 2,891 | ml | OCaml | lib/cutter_actions.ml | m4c0/quicktime-mov-stuff | 615838bdc9fb37c6ca022886bf264d6e313e7185 | [
"MIT"
] | 1 | 2022-02-18T12:52:53.000Z | 2022-02-18T12:52:53.000Z | lib/cutter_actions.ml | m4c0/quicktime-mov-stuff | 615838bdc9fb37c6ca022886bf264d6e313e7185 | [
"MIT"
] | null | null | null | lib/cutter_actions.ml | m4c0/quicktime-mov-stuff | 615838bdc9fb37c6ca022886bf264d6e313e7185 | [
"MIT"
] | null | null | null | open Cutter_data
let tree : Atoms.t list ref = ref []
let dump () =
Cutter_parser.tree !tree |> Cutter_debug.movie
let load file =
tree := Atoms.from_file file;
Cutter_undo.purge ();
dump ()
let save_as file =
Atoms.to_file file !tree;
print_endline "done"
let mapi idx fn l =
let mapi_fn idx fn i e =... | 27.798077 | 92 | 0.631615 |
17e04968731b69d1db60cd69ef0728ab1d1ab626 | 205 | ml | OCaml | data/derived/comb/progs/unify/prog3564.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/prog3564.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3564.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec listReverse l =
match l with | [] -> [] | h::t -> (listReverse t) @ [h];;
let rec digitsOfInt n =
if n <= 0
then []
else (let l = (digitsOfInt (n / 10)) :: (n mod 10) in listReverse l);;
| 22.777778 | 72 | 0.541463 |
bc6f658e2ea41b4ad3a07271b36e1b81ba146bc6 | 12,976 | ml | OCaml | plugins/bil/bil_ir.ml | bmourad01/bap | c487c764746e7a7a40d67d04312b298a4c767306 | [
"MIT"
] | null | null | null | plugins/bil/bil_ir.ml | bmourad01/bap | c487c764746e7a7a40d67d04312b298a4c767306 | [
"MIT"
] | null | null | null | plugins/bil/bil_ir.ml | bmourad01/bap | c487c764746e7a7a40d67d04312b298a4c767306 | [
"MIT"
] | null | null | null | open Core_kernel
open Bap.Std
open Format
open Bap_knowledge
open Bap_core_theory
open Knowledge.Syntax
open KB.Let
include Self()
type blk = {
name : Theory.Label.t;
keep : bool;
weak : bool;
defs : def term list;
jmps : jmp term list;
} [@@deriving bin_io]
type cfg = {
blks : blk list;
entry : Theo... | 26.921162 | 73 | 0.539072 |
cd70e38a969d64581f49c8afb91a17d13d0cf620 | 1,878 | ml | OCaml | mq_stomp_client_comm.ml | ahrefs/ocaml-stomp | c24233782259f73c2226b55905c67d01ece03ed1 | [
"MIT"
] | 1 | 2017-12-27T17:08:48.000Z | 2017-12-27T17:08:48.000Z | mq_stomp_client_comm.ml | ahrefs/ocaml-stomp | c24233782259f73c2226b55905c67d01ece03ed1 | [
"MIT"
] | null | null | null | mq_stomp_client_comm.ml | ahrefs/ocaml-stomp | c24233782259f73c2226b55905c67d01ece03ed1 | [
"MIT"
] | null | null | null | (** Functor [Make] can be used to create STOMP client that uses lwt_comm
library. It is useful to make ocamlmq + ocaml-stomp work in single
binary.
Make is parametrized by [LWT_COMM], part of signature of Lwt_comm module
from lwt_comm library.
Note: [Make(Lwt_comm).connect] has argument [?eof_nl]... | 30.786885 | 78 | 0.651757 |
cd4d8ea2a056f3826cfc00cf4419248043d0abc3 | 4,925 | mli | OCaml | eval/sherrloc/easyocaml++/otherlibs/num/num.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/sherrloc/easyocaml++/otherlibs/num/num.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/sherrloc/easyocaml++/otherlibs/num/num.mli | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Valerie Menissier-... | 28.633721 | 75 | 0.568934 |
cd7e7e24da8e70aef52481b2700acd9e49348277 | 8,004 | ml | OCaml | src/prover_calculi/qle.ml | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | 1 | 2021-12-04T02:49:56.000Z | 2021-12-04T02:49:56.000Z | src/prover_calculi/qle.ml | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | null | null | null | src/prover_calculi/qle.ml | Guoyanzeng/zipperposition | cf8ea447d3c19946cfe5f9762deb1c9dcb1c3103 | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of Zipperposition. See file "license" for more details. *)
(** {1 Quasipure Literal Elimination} *)
open Logtk
open Libzipperposition
let k_enabled = Flex_state.create_key ()
let k_inprocessing = Flex_state.create_key ()
let k_check_at = Flex_state.create_key ()
let k_pure_only = ... | 34.649351 | 119 | 0.601199 |
179010d5b70681358bbb9e4a2825b24a26e7119f | 2,718 | ml | OCaml | util_dateonly.ml | esperco/esper-util | 316c74663e59a8af3c93bba8e211ed37b060b535 | [
"BSD-3-Clause"
] | 2 | 2017-08-15T18:58:29.000Z | 2017-08-16T09:41:48.000Z | util_dateonly.ml | esperco/esper-util | 316c74663e59a8af3c93bba8e211ed37b060b535 | [
"BSD-3-Clause"
] | null | null | null | util_dateonly.ml | esperco/esper-util | 316c74663e59a8af3c93bba8e211ed37b060b535 | [
"BSD-3-Clause"
] | null | null | null | open Printf
type t = {
year : int;
month : int;
day : int;
string : string;
}
let invalid label value =
invalid_arg (sprintf "Util_dateonly.create: invalid %s %s" label value)
let is_leap_year year =
year mod 4 = 0 && not (year mod 100 = 0)
|| year mod 400 = 0
let create ~year ~month ~day =
let vali... | 20.748092 | 76 | 0.597498 |
cd49d593da64d53ced18d9f0979681e7b481c8e9 | 133 | ml | OCaml | lib/json/B2J_Config.ml | m4b/bin2json | 9aeeef017a4446cfc134e593aca76e8ac573b7f7 | [
"BSD-3-Clause"
] | 20 | 2015-11-06T05:20:35.000Z | 2022-03-22T12:34:09.000Z | lib/json/B2J_Config.ml | m4b/bin2json | 9aeeef017a4446cfc134e593aca76e8ac573b7f7 | [
"BSD-3-Clause"
] | null | null | null | lib/json/B2J_Config.ml | m4b/bin2json | 9aeeef017a4446cfc134e593aca76e8ac573b7f7 | [
"BSD-3-Clause"
] | 3 | 2016-06-01T11:54:14.000Z | 2017-07-19T07:03:26.000Z | type t = {
minify: bool;
include_coverage: bool;
include_base64: bool;
install_name: string;
only: bool;
name: string;
}
| 14.777778 | 25 | 0.669173 |
cd3184e1c7a27d53e0e554073729369be50b76fe | 6,499 | mli | OCaml | ark/linear.mli | sumanthsprabhu/strategy-improvement | 12c1d45980f3563f0cfb97bc764e05b22687f83a | [
"MIT"
] | null | null | null | ark/linear.mli | sumanthsprabhu/strategy-improvement | 12c1d45980f3563f0cfb97bc764e05b22687f83a | [
"MIT"
] | null | null | null | ark/linear.mli | sumanthsprabhu/strategy-improvement | 12c1d45980f3563f0cfb97bc764e05b22687f83a | [
"MIT"
] | null | null | null | open Syntax
(** Various operations for the vector space [int -> QQ] *)
(** Raised for unsolvable systems of linear equations *)
exception No_solution
exception Nonlinear
module type Vector = sig
type t
type dim
type scalar
val equal : t -> t -> bool
val add : t -> t -> t
val scalar_mul : scalar -> t ->... | 29.40724 | 79 | 0.609478 |
cd130bd0474f353b682d492d8a06531e6aca6417 | 89,818 | ml | OCaml | src/parser_utils/flow_ast_differ.ml | mourner/flow | 8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb | [
"MIT"
] | null | null | null | src/parser_utils/flow_ast_differ.ml | mourner/flow | 8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb | [
"MIT"
] | null | null | null | src/parser_utils/flow_ast_differ.ml | mourner/flow | 8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast_utils = Flow_ast_utils
module Ast = Flow_ast
open Utils_js
type 'a change' =
| Replace of 'a * 'a
| Insert of (* ... | 45.477468 | 167 | 0.670022 |
cda290565a77c10a0961ad21ae6b48d4797fef53 | 492 | ml | OCaml | srk/src/algebra.ml | nclskoh/duet | bb2e84f8184683cac59b914d5d8f2c959fdf6b0c | [
"MIT"
] | 25 | 2016-10-10T13:52:45.000Z | 2021-12-15T07:49:04.000Z | srk/src/algebra.ml | nclskoh/duet | bb2e84f8184683cac59b914d5d8f2c959fdf6b0c | [
"MIT"
] | 3 | 2016-02-10T14:03:46.000Z | 2019-08-18T13:59:53.000Z | srk/src/algebra.ml | nclskoh/duet | bb2e84f8184683cac59b914d5d8f2c959fdf6b0c | [
"MIT"
] | 20 | 2016-02-10T13:46:19.000Z | 2022-02-18T16:02:16.000Z | (** Signatures for algebraic structures. *)
module type Semigroup = sig
type t
val mul : t -> t -> t
end
module type Ring = sig
type t
val equal : t -> t -> bool
val add : t -> t -> t
val negate : t -> t
val zero : t
val mul : t -> t -> t
val one : t
end
module type Semilattice = sig
type t
val... | 16.4 | 43 | 0.552846 |
aacb3d9339e48f3929c0d0e2d662d9a6ecde3b5b | 8,376 | ml | OCaml | ocaml-sources/ocamldoc/odoc_env.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/ocamldoc/odoc_env.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/ocamldoc/odoc_env.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 35.948498 | 132 | 0.600287 |
cd1f1d1711e80f5965218e5e3650b635bcb58958 | 3,745 | ml | OCaml | test/test_indexed_container.ml | acatton/fork--janestreet--base | 41ec9567646519714dcfbceffaccb4f53425c6ab | [
"MIT"
] | 1 | 2019-09-11T00:04:16.000Z | 2019-09-11T00:04:16.000Z | test/test_indexed_container.ml | martindeegan/base | 049689b506be62122705be551b51bebecc44cb8b | [
"MIT"
] | null | null | null | test/test_indexed_container.ml | martindeegan/base | 049689b506be62122705be551b51bebecc44cb8b | [
"MIT"
] | null | null | null | open! Import
module type S = Indexed_container.S1 with type 'a t = 'a list
module This_list : S = struct
include List
include (Indexed_container.Make (struct
type 'a t = 'a list
let fold = List.fold
let iter = `Custom List.iter
let foldi = `Define_using_fold
... | 20.353261 | 67 | 0.561816 |
cd58a4b381a55a43af3b2db74fb2081c47a92696 | 348 | ml | OCaml | cours7.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | 1 | 2022-01-27T20:37:21.000Z | 2022-01-27T20:37:21.000Z | cours7.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | null | null | null | cours7.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | null | null | null | (* ========================================== *)
let calcul a = let c = ref (-1) in
let rec aux b h = match b with
Nil -> (0,h)
|N(g,_,d) -> let (ng,pg) = aux g!
(* À terminer *)
(* ========================================== *)
let calcul a =
let rec aux b h =
match b with
Nil -> 0
|N(g,_,d) -> (au... | 24.857143 | 48 | 0.350575 |
cd5de1618e9c2b07808841990221c32ca1cb8860 | 23,061 | ml | OCaml | exprOut.ml | oanaoana/FPTaylor | c14d05eb9dc59a1736f043789e9f8d2659f742a0 | [
"MIT"
] | 1 | 2020-03-26T20:00:32.000Z | 2020-03-26T20:00:32.000Z | exprOut.ml | oanaoana/FPTaylor | c14d05eb9dc59a1736f043789e9f8d2659f742a0 | [
"MIT"
] | null | null | null | exprOut.ml | oanaoana/FPTaylor | c14d05eb9dc59a1736f043789e9f8d2659f742a0 | [
"MIT"
] | null | null | null | (* ========================================================================== *)
(* FPTaylor: A Tool for Rigorous Estimation of Round-off Errors *)
(* *)
(* Author: Alexey Solovyev, University of Utah ... | 43.347744 | 85 | 0.544079 |
cd7dbdb4ab39f6825469c07644b773f146f286fa | 99 | ml | OCaml | itest-aux/simple_camltk.ml | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 18 | 2019-10-02T13:19:18.000Z | 2022-03-17T11:20:10.000Z | itest-aux/simple_camltk.ml | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 27 | 2019-10-21T16:13:08.000Z | 2022-03-23T23:36:56.000Z | itest-aux/simple_camltk.ml | AltGr/ocamlfind | d905d242d1b52037416e106db998ef38c7e6f06f | [
"MIT"
] | 17 | 2019-10-03T20:57:42.000Z | 2022-02-12T05:51:51.000Z | open Tk;;
let top = openTk() in
Frx_after.idle
closeTk;
mainLoop()
;;
print_string "OK\n"
;;
| 8.25 | 22 | 0.636364 |
1778b6bf62b0d9c18ea2810d564d65bfcfc9ecd1 | 2,167 | ml | OCaml | ocaml/p0017.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | ocaml/p0017.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | ocaml/p0017.ml | kwj/project-euler | 8d12664f69a99725d475208273898b1aabe06fbf | [
"Unlicense"
] | null | null | null | (* Project Euler: Problem 17 *)
let words = [
(1, String.length "one");
(2, String.length "two");
(3, String.length "three");
(4, String.length "four");
(5, String.length "five");
(6, String.length "six");
(7, String.length "seven");
(8, String.length "eight");
(9, String.length "ni... | 33.859375 | 135 | 0.527457 |
17c7284cd5915ae6dfc08c28d34f31110523a3de | 16,418 | ml | OCaml | Resources/coq-8.3pl2/plugins/subtac/subtac_coercion.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | Resources/coq-8.3pl2/plugins/subtac/subtac_coercion.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | Resources/coq-8.3pl2/plugins/subtac/subtac_coercion.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (* -*- compile-command: "make -C ../.. bin/coqtop.byte" -*- *)
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010 *)
(* \VV/ *********************... | 32.640159 | 100 | 0.587282 |
cd33508574c26cc706d61a38e68218409d9e13d3 | 815,136 | ml | OCaml | example/firework/src/servo_dom.ml | 0zat/gen-bs | 20348991775d9ef3974c3b824968a0ab219502a8 | [
"MIT"
] | 7 | 2017-08-01T09:11:27.000Z | 2020-10-23T09:20:32.000Z | test/servo_dom.ml | 0zat/gen-bs | 20348991775d9ef3974c3b824968a0ab219502a8 | [
"MIT"
] | null | null | null | test/servo_dom.ml | 0zat/gen-bs | 20348991775d9ef3974c3b824968a0ab219502a8 | [
"MIT"
] | null | null | null | (* generated by gen-bs 0.1.0 *)
(* internal use *)
type _baseClass
(* functions for variadic *)
type ('own, 'return, 'args) variadic_func
type 'args variadic_args
external apply : ('own, 'return, 'args) variadic_func ->
'own -> 'args variadic_args -> 'return = "apply" [@@bs.send]
let to_arg ary =
... | 56.610598 | 1,188 | 0.697323 |
cd069d1eb8f78ab6bb5dcfe0c31f4cd8bb7980a9 | 10,772 | ml | OCaml | infer/src/clang/ClangCommand.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/src/clang/ClangCommand.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/src/clang/ClangCommand.ml | rompic/infer | 9013e38594ad377e068555761829ac5e4f1eabf9 | [
"MIT"
] | 1 | 2019-10-24T14:47:52.000Z | 2019-10-24T14:47:52.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! IStd
module L = Logging
type t =
{ exec: string
; argv: string list
; orig_argv: string list
; quoting_style: ClangQuotes.... | 41.114504 | 115 | 0.678147 |
cd8d29fe7213104654a0bd3d3aba6903615541af | 23,508 | ml | OCaml | src/proto_013_PtJakart/lib_protocol/test/integration/michelson/test_ticket_lazy_storage_diff.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_013_PtJakart/lib_protocol/test/integration/michelson/test_ticket_lazy_storage_diff.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_013_PtJakart/lib_protocol/test/integration/michelson/test_ticket_lazy_storage_diff.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Trili Tech, <contact@trili.tech> *)
... | 33.630901 | 82 | 0.631657 |
173987ed43fd80639d9346157c2cbc06aa644b12 | 35,962 | ml | OCaml | src/ppx_deriving_yojson.cppo.ml | emillon/ppx_deriving_yojson | cadb5f653d4c2a94bc9e601c02dac75698cd5b97 | [
"MIT"
] | 1 | 2022-01-10T22:28:59.000Z | 2022-01-10T22:28:59.000Z | src/ppx_deriving_yojson.cppo.ml | emillon/ppx_deriving_yojson | cadb5f653d4c2a94bc9e601c02dac75698cd5b97 | [
"MIT"
] | null | null | null | src/ppx_deriving_yojson.cppo.ml | emillon/ppx_deriving_yojson | cadb5f653d4c2a94bc9e601c02dac75698cd5b97 | [
"MIT"
] | null | null | null | #if OCAML_VERSION >= (4, 06, 0)
#define Rtag(label, attrs, has_empty, args) \
Rtag({ txt = label }, attrs, has_empty, args)
#endif
open Longident
open Location
open Asttypes
open Parsetree
open Ast_helper
open Ast_convenience
let deriver = "yojson"
let raise_errorf = Ppx_deriving.raise_errorf
let argn = Prin... | 43.379976 | 144 | 0.608309 |
cd13d6f680b71c577ac08ebd374d2b993cc6b976 | 4,674 | mll | OCaml | lexer.mll | RBornat/Arsenic | e8fc9bca7ed666ab1c61c4c8ed0ca3a71d0b8a20 | [
"MIT"
] | null | null | null | lexer.mll | RBornat/Arsenic | e8fc9bca7ed666ab1c61c4c8ed0ca3a71d0b8a20 | [
"MIT"
] | null | null | null | lexer.mll | RBornat/Arsenic | e8fc9bca7ed666ab1c61c4c8ed0ca3a71d0b8a20 | [
"MIT"
] | null | null | null | (* This file is part of Arsenic, a proofchecker for New Lace logic.
Copyright (c) 2015 Richard Bornat.
Licensed under the MIT license (sic): see LICENCE.txt or
https://opensource.org/licenses/MIT
*)
{
open Parser
exception LexError of Sourcepos.sourcepos * string
let inc_linenum lexbuf =
le... | 24.34375 | 77 | 0.44095 |
cd17551253b5eb89eb26882ed4cff2d5fffea9cb | 2,136 | mli | OCaml | lib/foundation.mli | nickrobison/cowabloga | d99f11f30e1ff413d330dd86ac1ca5b8d601077c | [
"0BSD"
] | null | null | null | lib/foundation.mli | nickrobison/cowabloga | d99f11f30e1ff413d330dd86ac1ca5b8d601077c | [
"0BSD"
] | null | null | null | lib/foundation.mli | nickrobison/cowabloga | d99f11f30e1ff413d330dd86ac1ca5b8d601077c | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 29.666667 | 169 | 0.672753 |
cd8a98816502f7f475402a89c6335a869308723a | 68 | ml | OCaml | test/unit/fixtures/instrument/array.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/array.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/array.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | 1 | 2020-11-17T11:14:18.000Z | 2020-11-17T11:14:18.000Z | (* Basic. *)
let _ =
[|print_endline "foo", print_endline "bar"|]
| 17 | 46 | 0.602941 |
cd90bb906c59f2312919c19b7b1ff78e0af3dfaf | 499 | mli | OCaml | sledge/src/llair_to_Fol.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | sledge/src/llair_to_Fol.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | sledge/src/llair_to_Fol.mli | 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 Fol
val lookup_func : (string -> 'a option) -> Term.t -> 'a option
val global : Llair.Global.t -> Term.t
val reg : ThreadID.t... | 31.1875 | 66 | 0.671343 |
cd4131142e5864f8369af543be14baef90341b5c | 1,274 | ml | OCaml | ocaml/dev/dt2st.ml | epstabler/mgtdb | 41e0018a2aebee90a5bdafe21dfac8d743aca4a7 | [
"Apache-2.0"
] | 9 | 2015-07-26T23:09:34.000Z | 2021-01-20T23:54:55.000Z | ocaml/dev/dt2st.ml | epstabler/mgtdb | 41e0018a2aebee90a5bdafe21dfac8d743aca4a7 | [
"Apache-2.0"
] | null | null | null | ocaml/dev/dt2st.ml | epstabler/mgtdb | 41e0018a2aebee90a5bdafe21dfac8d743aca4a7 | [
"Apache-2.0"
] | 7 | 2015-07-20T16:46:03.000Z | 2021-08-14T02:01:17.000Z | (* file: dt2st.ml
creator: E Stabler, stabler@ucla.edu
creation date: 2010-09-17 10:30:06 PDT
purpose: put "states" of dtState into tree
requires dtState.ml for selectUnique
*)
type stateTree =
LS of feature list list
| XS of feature list list * stateTree * stateTree
| OS of feature... | 32.666667 | 80 | 0.583203 |
cd223522695de0f8d57fba1291d3badf7c04273b | 2,273 | mli | OCaml | src/fb.mli | dbuenzli/rpi-boot-ocaml | aea53ba7765866b61b53ac52d470c0639f6cecee | [
"BSD-3-Clause"
] | 52 | 2015-10-10T16:40:29.000Z | 2022-03-30T07:22:08.000Z | src/fb.mli | dbuenzli/rpi-boot-ocaml | aea53ba7765866b61b53ac52d470c0639f6cecee | [
"BSD-3-Clause"
] | 11 | 2015-10-10T17:03:30.000Z | 2015-10-10T17:32:55.000Z | src/fb.mli | dbuenzli/rpi-boot-ocaml | aea53ba7765866b61b53ac52d470c0639f6cecee | [
"BSD-3-Clause"
] | 3 | 2016-04-07T13:40:57.000Z | 2017-09-17T23:56:26.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2015 Daniel C. Bünzli. All rights reserved.
Distributed under the BSD3 license, see license at the end of the file.
%%NAME%% release %%VERSION%%
------------------------------------------------------------------------... | 43.711538 | 79 | 0.640123 |
172457ba62ee31abf5fd94ccd7f0d22210b9e152 | 5,473 | ml | OCaml | duniverse/ocaml-re/lib_test/test_perl.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | duniverse/ocaml-re/lib_test/test_perl.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | duniverse/ocaml-re/lib_test/test_perl.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z | open Re
open Re.Perl
open Fort_unit
let eq_re ?opts r s = expect_equal_app ~msg:s id r (re ?opts) s
;;
let parse_error_re ?opts s =
try ignore (re ?opts s); OUnit2.assert_failure s with
| Re.Perl.Parse_error -> ()
(*
* Tests based on description of Perl regular expressions given at
* http://www.perl.com/CPA... | 31.635838 | 68 | 0.40782 |
cd38ef11ca168ff7b65e89cb6384429ec1d2fa2f | 1,509 | mli | OCaml | src/dune/preprocessing.mli | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 4 | 2020-02-04T15:33:29.000Z | 2020-02-04T21:37:09.000Z | src/dune/preprocessing.mli | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | null | null | null | src/dune/preprocessing.mli | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | null | null | null | (** Preprocessing of OCaml source files *)
open! Stdune
open! Import
(** Preprocessing object *)
type t
val dummy : t
val make :
Super_context.t
-> dir:Path.Build.t
-> expander:Expander.t
-> dep_kind:Lib_deps_info.Kind.t
-> lint:Dune_file.Preprocess_map.t
-> preprocess:Dune_file.Preprocess_map.t
->... | 26.017241 | 76 | 0.6945 |
17c4b2244f61c845131d7e0f56670752d56645a3 | 1,022 | ml | OCaml | d07/ex00/main.ml | ygarrot/piscine_ocaml | b7bd6fe657be2c2d9ae232440ed821c738d9682c | [
"MIT"
] | null | null | null | d07/ex00/main.ml | ygarrot/piscine_ocaml | b7bd6fe657be2c2d9ae232440ed821c738d9682c | [
"MIT"
] | null | null | null | d07/ex00/main.ml | ygarrot/piscine_ocaml | b7bd6fe657be2c2d9ae232440ed821c738d9682c | [
"MIT"
] | null | null | null | (* ************************************************************************** *)
(* *)
(* ::: :::::::: *)
(* main.ml :+: :+: :+: ... | 56.777778 | 80 | 0.170254 |
17b97dee3274d34251f0c3d71da404f9223dd34e | 17,865 | ml | OCaml | src/analyses/libraryFunctions.ml | mikcp/analyzer | c506fa4bfed6dfd4d81c549e7a4c59be8122a855 | [
"MIT"
] | null | null | null | src/analyses/libraryFunctions.ml | mikcp/analyzer | c506fa4bfed6dfd4d81c549e7a4c59be8122a855 | [
"MIT"
] | null | null | null | src/analyses/libraryFunctions.ml | mikcp/analyzer | c506fa4bfed6dfd4d81c549e7a4c59be8122a855 | [
"MIT"
] | null | null | null | (** Tools for dealing with library functions. *)
open Prelude.Ana
open GobConfig
module M = Messages
type categories = [
| `Malloc of exp
| `Calloc of exp * exp
| `Realloc of exp * exp
| `Assert of exp
| `Lock of bool * bool * bool (* try? * write? * return on success *)
... | 35.516899 | 144 | 0.6192 |
cd8769aac39b1a925720f1a53739068031f5004b | 1,287 | mli | OCaml | src/options.mli | kit-ty-kate/labrys | ffa21b27f2557942073bcdfbe37af96b8bd53902 | [
"MIT"
] | 65 | 2018-08-10T11:51:20.000Z | 2022-03-25T10:44:56.000Z | src/options.mli | kit-ty-kate/cervoise | 568bddf46d147df062e6a7cd045966cc0a279c22 | [
"MIT"
] | 3 | 2021-12-26T01:37:08.000Z | 2022-01-03T14:39:17.000Z | src/options.mli | kit-ty-kate/cervoise | 568bddf46d147df062e6a7cd045966cc0a279c22 | [
"MIT"
] | 5 | 2020-12-30T14:50:11.000Z | 2022-03-25T10:30:29.000Z | (* Copyright (c) 2013-2017 The Labrys developers. *)
(* See the LICENSE file at the top-level directory. *)
type file = string
type directory = string
type program_name = string
class type restrained_base = object
method src_dir : directory
method build_dir : directory
end
class type base = object
inherit rest... | 17.391892 | 54 | 0.771562 |
cd266b422b1e31bff6c2ec0e34344cde9399150d | 12,684 | ml | OCaml | hphp/hack/src/typing/typing_reason.ml | geraldvillorente/hhvm | cf047fe5c43aa7133ce5703d883251a3da486821 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_reason.ml | geraldvillorente/hhvm | cf047fe5c43aa7133ce5703d883251a3da486821 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_reason.ml | geraldvillorente/hhvm | cf047fe5c43aa7133ce5703d883251a3da486821 | [
"PHP-3.01",
"Zend-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 "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(* The reason... | 39.886792 | 122 | 0.581047 |
17ff1c9af3d7b211516018813d9bdb6de8436d82 | 5,098 | ml | OCaml | src/LIG.ml | Miltnoid/LoopInvGen | b5f22502371c33227f649ff45da9bb4eb41e3cba | [
"MIT"
] | null | null | null | src/LIG.ml | Miltnoid/LoopInvGen | b5f22502371c33227f649ff45da9bb4eb41e3cba | [
"MIT"
] | null | null | null | src/LIG.ml | Miltnoid/LoopInvGen | b5f22502371c33227f649ff45da9bb4eb41e3cba | [
"MIT"
] | null | null | null | open Core_kernel
open SyGuS
open Utils
open VPIE
type 'a config = {
for_VPIE : 'a VPIE.config ;
base_random_seed : string ;
max_restarts : int ;
max_steps_on_restart : int ;
model_completion_mode : [ `RandomGeneration | `UsingZ3 ] ;
}
let default_config = {
for_VPIE = {
VPIE.default_config with simp... | 47.64486 | 120 | 0.564535 |
aa446151ecaece6c5f8b05a32509826a4f1d03a2 | 5,887 | ml | OCaml | Gillian-JS/lib/Compiler/JS_PreParser.ml | raduml97/Gillian | 10b9d80b0edecdd9d52f7711993dc208084f13e1 | [
"MIT"
] | 1 | 2020-05-30T11:39:31.000Z | 2020-05-30T11:39:31.000Z | Gillian-JS/lib/Compiler/JS_PreParser.ml | alexismarinoiu/Gillian | cf14a9b992d75194db38b90ef41222e6c7253c89 | [
"MIT"
] | null | null | null | Gillian-JS/lib/Compiler/JS_PreParser.ml | alexismarinoiu/Gillian | cf14a9b992d75194db38b90ef41222e6c7253c89 | [
"MIT"
] | null | null | null | open String
let string_split (s : string) (len : int) : string option * string option =
assert (len > 0);
try
let char = String.sub s 0 len in
let str = String.sub s len (String.length s - len) in
(Some char, Some str)
with Invalid_argument _ -> (None, None)
let string_head_and_tail s = string_split... | 39.510067 | 79 | 0.496178 |
cd2702c6b1f03ba78767e95ce547a751a5a980c8 | 6,167 | ml | OCaml | duniverse/owl/src/aeos/owl_aeos_utils.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | 1 | 2019-11-17T23:16:15.000Z | 2019-11-17T23:16:15.000Z | duniverse/owl/src/aeos/owl_aeos_utils.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/owl/src/aeos/owl_aeos_utils.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2019 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
open Bigarray
(** NDarray functions *)
let empty kind dimension = Genarray.create kind c_layout dimension
let fill x a = Genarray.fill x a
let create dimension a =
let x = empty Float32 d... | 20.353135 | 79 | 0.572888 |
174f8ab7301fdccd9fd8f221bf7a2baf6f18cedd | 2,018 | mli | OCaml | infer/src/integration/Buck.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/integration/Buck.mli | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/integration/Buck.mli | 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 Target : sig
type t
val of_string : string -> t
val to_string : t -> string
val add_flavor : BuckMode... | 42.93617 | 100 | 0.719524 |
17e4c1b9947c440938bb29ebb2caeeded1212bb4 | 5,146 | mli | OCaml | src/owl/nlp/owl_nlp_tfidf.mli | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/owl/nlp/owl_nlp_tfidf.mli | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/owl/nlp/owl_nlp_tfidf.mli | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** NLP: TFIDF module *)
(** {6 Type definition} *)
type tf_typ =
| Binary
| Count
| Frequency
| Log_norm (** Type of term frequency. *)
type df_typ =
| Unary
| Idf
| Idf_Smooth (... | 35.489655 | 152 | 0.675865 |
cd409e2e731ea0643d4fe0d907722860d648d722 | 200 | ml | OCaml | tests/lua/arithmetic.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/lua/arithmetic.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/lua/arithmetic.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | external val (+) : int -> int -> int =
"function(x, y) return x + y end"
let main f =
let a = f 1
let b = f 2
let c = (+) a
c b
external val ignore : 'a -> () = "nil"
let () = ignore main
| 16.666667 | 38 | 0.51 |
177c50210a5f45ad6eac458c0e440e3d8777b908 | 38,383 | ml | OCaml | ag_pathanalysis/batteries/testsuite/test_container.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2019-12-05T19:47:42.000Z | 2021-05-05T13:41:16.000Z | ag_pathanalysis/batteries/testsuite/test_container.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | null | null | null | ag_pathanalysis/batteries/testsuite/test_container.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2021-04-20T07:44:02.000Z | 2021-04-20T08:38:41.000Z | open OUnit
module type Container = sig
type 'a t
val iter : ('a -> unit) -> 'a t -> unit
val iter_right : ('a -> unit) -> 'a t -> unit
val map : ('a -> 'b) -> 'a t -> 'b t
val map_right : ('a -> 'b) -> 'a t -> 'b t
val fold_left : ('acc -> 'a -> 'acc) -> 'acc -> 'a t -> 'acc
val fold_lefti : (int -> 'acc... | 30.829719 | 141 | 0.559987 |
cd528770ad0f884109a7f7869b3d7c02d687cde7 | 1,300 | ml | OCaml | jsref/mlparser/CalcSyntax.ml | Docteur-Lalla/jsexplain | b9b0d46fdd39fa566a3e4f8a13ac4c0af1bd0f34 | [
"Apache-2.0"
] | 1 | 2019-03-26T11:02:11.000Z | 2019-03-26T11:02:11.000Z | jsref/mlparser/CalcSyntax.ml | Docteur-Lalla/mlexplain | b9b0d46fdd39fa566a3e4f8a13ac4c0af1bd0f34 | [
"Apache-2.0"
] | null | null | null | jsref/mlparser/CalcSyntax.ml | Docteur-Lalla/mlexplain | b9b0d46fdd39fa566a3e4f8a13ac4c0af1bd0f34 | [
"Apache-2.0"
] | 1 | 2017-06-21T06:54:54.000Z | 2017-06-21T06:54:54.000Z | type position = {
line : int ; [@f line]
column : int [@f column]
}
type location = {
file : string ; [@f file]
start : position ; [@f start]
stop : position [@f stop]
}
type token_value =
| Int of int [@f value]
| Float of float [@f value]
| Char of char [@f value]
| String of string [@f value]
| Kwd of st... | 24.074074 | 79 | 0.666154 |
17a7d27000f6d5ebef256f7d70ee4234c5a4c78e | 18,227 | ml | OCaml | src/proto_006_PsCARTHA/lib_client/client_proto_context.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/proto_006_PsCARTHA/lib_client/client_proto_context.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/proto_006_PsCARTHA/lib_client/client_proto_context.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 33.567219 | 80 | 0.63768 |
cd0815cf1a9e87cb1cc6da898959a911f1bf7131 | 1,327 | mli | OCaml | src/handle.mli | lessp/luv | e0788bd840219427a2744963f11fff68f2d20087 | [
"MIT"
] | null | null | null | src/handle.mli | lessp/luv | e0788bd840219427a2744963f11fff68f2d20087 | [
"MIT"
] | null | null | null | src/handle.mli | lessp/luv | e0788bd840219427a2744963f11fff68f2d20087 | [
"MIT"
] | null | null | null | (* This file is part of Luv, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/aantron/luv/blob/master/LICENSE.md. *)
type 'kind t = 'kind C.Types.Handle.t Ctypes.ptr
val close : _ t -> (unit -> unit) -> unit
val is_active : _ t -> bool
val is_closing : _ t -> bool
val ref... | 29.488889 | 79 | 0.617182 |
cd8e7a6df363f16345f50c4f3047f2c5d59fb1b7 | 1,370 | ml | OCaml | src/dumpfp.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | null | null | null | src/dumpfp.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | null | null | null | src/dumpfp.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | null | null | null | (*
* Copyright (C) 2011 INRIA and Microsoft Corporation
*)
Revision.f "$Rev$";;
open Printf;;
open Obj;;
(* NOTE: This module uses Obj, but that's OK because this is
DEBUGGING code. Production code must NEVER use Obj. *)
let tag_name t =
List.assoc t [
lazy_tag, "lazy";
closure_tag, "closure";
... | 22.833333 | 61 | 0.583212 |
cd357a173c95e6d4271767b79d39365e62d65561 | 815 | mly | OCaml | grammar-artefacts/07-menhir-modules/_2.7_tokens.mly | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2020-11-26T18:53:46.000Z | 2020-11-26T18:53:46.000Z | grammar-artefacts/07-menhir-modules/_2.7_tokens.mly | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | null | null | null | grammar-artefacts/07-menhir-modules/_2.7_tokens.mly | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2019-04-11T11:27:01.000Z | 2019-04-11T11:27:01.000Z | // Tokens for versions: 2.7, generated on 2018-01-16 at 20:28:52.345+00:00
%{
%}
// 83 tokens, in alphabetical order:
%token AMPEREQUAL AMPERSAND AND AS ASSERT AT BACKQUOTE BAR BREAK CIRCUMFLEX
%token CIRCUMFLEXEQUAL CLASS COLON COMMA CONTINUE DEDENT DEF DEL DOT DOUBLESLASH
%token DOUBLESLASHEQUAL DOUBLESTAR DOUBLEST... | 38.809524 | 80 | 0.81227 |
172ff4c64f109ff8e966b1fbaa383fb568adca77 | 1,646 | mll | OCaml | lexer.mll | sizumita/DML | c7a706ccddfc000366b217751e41934192cfb17c | [
"MIT"
] | null | null | null | lexer.mll | sizumita/DML | c7a706ccddfc000366b217751e41934192cfb17c | [
"MIT"
] | null | null | null | lexer.mll | sizumita/DML | c7a706ccddfc000366b217751e41934192cfb17c | [
"MIT"
] | 1 | 2021-03-26T05:31:16.000Z | 2021-03-26T05:31:16.000Z | {
open Parser
}
let space = [' ' '\t' '\n' '\r']
let digit = ['0'-'9']
let lower = ['a'-'z']
let upper = ['A'-'Z']
let id = ['a'-'z' '_'] ['a'-'z' 'A'-'Z' '0'-'9' '_']*
let space_name = upper (lower|upper|digit|'_')*
rule token = parse
| space+ { token lexbuf }
| digit+ as num { NUM (int_of_string num) }
| digi... | 23.514286 | 93 | 0.438639 |
17973bb47b5ab0885b4b61b77c4072cbe2434741 | 18,370 | ml | OCaml | src/dataflow.ml | parisaF163/cil | 2f88503bbfdc4b82cfec529ff9567ba72a8584b9 | [
"BSD-3-Clause"
] | 266 | 2015-01-23T16:06:52.000Z | 2022-03-17T19:49:34.000Z | src/dataflow.ml | parisaF163/cil | 2f88503bbfdc4b82cfec529ff9567ba72a8584b9 | [
"BSD-3-Clause"
] | 93 | 2015-07-31T21:38:04.000Z | 2022-03-24T03:21:34.000Z | src/dataflow.ml | parisaF163/cil | 2f88503bbfdc4b82cfec529ff9567ba72a8584b9 | [
"BSD-3-Clause"
] | 73 | 2015-01-11T17:06:17.000Z | 2022-02-21T06:20:37.000Z |
module IH = Inthash
module E = Errormsg
open Cil
open Pretty
(** A framework for data flow analysis for CIL code. Before using
this framework, you must initialize the Control-flow Graph for your
program, e.g using {!Cfg.computeFileCFG} *)
type 't action =
Default (** The default action *)
| Done of... | 36.019608 | 93 | 0.533097 |
17e488e5b7de1b1c9eaadfb8d51dcf9433e2282f | 8,745 | ml | OCaml | implicitly_typed/type_operators_imp/lib/term.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | 1 | 2020-05-13T13:51:57.000Z | 2020-05-13T13:51:57.000Z | implicitly_typed/type_operators_imp/lib/term.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | implicitly_typed/type_operators_imp/lib/term.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | module Id = Identifier
module Infer = Type.Inferencer
module IR = Type_operators_exp
module Kind_env = Kind.Environment
module Loc = Location
module Type_env = Type.Environment
type desc =
| Variable of Id.t
| Abstraction of Id.t * t
| Application of t * t
| Binding of Id.t * t * t
and t =
{ desc : desc;
... | 36.136364 | 80 | 0.590166 |
cd9ed51860a23af7809357a25d68257f71ff40e7 | 706 | ml | OCaml | data/derived/comb/progs/cnstr/prog3893.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/cnstr/prog3893.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/cnstr/prog3893.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 buildAverage (e1,e2) = Average (e1, e2);;
let buildCosine e = Cosine e;;
let buildSine e = Sine e;;
let buildTimes (e1,e2) = Times (e1, e2);;
let buildX ()... | 22.0625 | 56 | 0.630312 |
cdacb7adb723edcc005de268dce04c6e0240dc77 | 2,897 | mli | OCaml | lib/fs/irmin_fs.mli | tezos/irmin | 3a751e132f4ffade81604a4bc9b952b8329e05a1 | [
"0BSD"
] | 5 | 2017-06-25T19:35:30.000Z | 2021-07-18T12:40:51.000Z | lib/fs/irmin_fs.mli | tezos/irmin | 3a751e132f4ffade81604a4bc9b952b8329e05a1 | [
"0BSD"
] | null | null | null | lib/fs/irmin_fs.mli | tezos/irmin | 3a751e132f4ffade81604a4bc9b952b8329e05a1 | [
"0BSD"
] | 2 | 2017-07-03T09:54:16.000Z | 2018-10-25T16:09:46.000Z | (*
* Copyright (c) 2013-2015 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 32.188889 | 77 | 0.681395 |
cd5e45c4326c5985eee6b50ed831537034832ba2 | 2,395 | ml | OCaml | src/jekyll_liquid.ml | patricoferris/jekyll-format | de8cc7d6c8be6982775e9ced1d2c66814e9dc61a | [
"ISC"
] | null | null | null | src/jekyll_liquid.ml | patricoferris/jekyll-format | de8cc7d6c8be6982775e9ced1d2c66814e9dc61a | [
"ISC"
] | null | null | null | src/jekyll_liquid.ml | patricoferris/jekyll-format | de8cc7d6c8be6982775e9ced1d2c66814e9dc61a | [
"ISC"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2016 Anil Madhavapeddy. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
ope... | 37.421875 | 80 | 0.614196 |
cd78cecdd522d746a7c908d370b69fa346b277d6 | 510 | ml | OCaml | basics/lists.ml | haohangxu/why-ocaml-talk | 402a5d13355ac4458db6fd8c3260d9e2c8222bb5 | [
"MIT"
] | null | null | null | basics/lists.ml | haohangxu/why-ocaml-talk | 402a5d13355ac4458db6fd8c3260d9e2c8222bb5 | [
"MIT"
] | null | null | null | basics/lists.ml | haohangxu/why-ocaml-talk | 402a5d13355ac4458db6fd8c3260d9e2c8222bb5 | [
"MIT"
] | null | null | null | open Core
(* We can define a list using brackets and semicolons. *)
let xs = [ 1; 2; 3 ]
(* We can also define a list using the "::" (cons) operator. *)
let ys = 1 :: 2 :: 3 :: []
(* The cons operator can be used to prepend an element to a list. *)
let zs = 1 :: [ 2; 3 ]
(* We can match on lists! *)
let print_first... | 25.5 | 92 | 0.605882 |
bcb9552519a63b7314d7fa95bf33ecfef8fdec90 | 5,146 | ml | OCaml | orderme/order_list.ml | let-def/grenier | 3391e5e31db88e587100436e9407881fb8ef7873 | [
"0BSD"
] | 44 | 2016-05-13T20:14:57.000Z | 2022-02-10T00:47:49.000Z | orderme/order_list.ml | let-def/grenier | 3391e5e31db88e587100436e9407881fb8ef7873 | [
"0BSD"
] | 5 | 2016-12-10T18:35:48.000Z | 2020-03-08T20:15:07.000Z | orderme/order_list.ml | let-def/grenier | 3391e5e31db88e587100436e9407881fb8ef7873 | [
"0BSD"
] | 4 | 2016-05-13T20:14:58.000Z | 2020-08-07T23:50:10.000Z | type t = {
mutable tag: int;
mutable prev: t;
mutable next: t;
counter: int ref;
}
let average x y = (x land y) + (x lxor y) / 2
let curr_index t = t.tag
let rec sentinel = { tag = 0; prev = sentinel; next = sentinel; counter = ref 0 }
let is_first t = t.prev == t
let is_last t = t == t.next
let is_valid ... | 23.714286 | 81 | 0.598329 |
cd71f7a3496b8813e65b4bf99ab227992e0982c8 | 1,967 | ml | OCaml | result/cafe2/formula/sub27/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/formula/sub27/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/formula/sub27/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type formula =
| True
| False
| Not of formula
| AndAlso of (formula * formula)
| OrElse of (formula * formula)
| Imply of (formula * formula)
| Equal of (exp * exp)
and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp)
let rec exp_to_int (e : exp) : int =
match e with
| Num i -> i
| P... | 29.80303 | 65 | 0.613116 |
aaaeb2b6d7860a14ae430990c1f5c0fcdd5ee570 | 14,191 | ml | OCaml | src/external/ocaml-dune/vendor/cmdliner/src/cmdliner_docgen.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 3 | 2020-09-06T21:32:35.000Z | 2020-09-08T14:27:27.000Z | src/external/ocaml-dune/vendor/cmdliner/src/cmdliner_docgen.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/external/ocaml-dune/vendor/cmdliner/src/cmdliner_docgen.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2011 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
cmdliner v1.0.0
---------------------------------------------------------------------------*)
let rev_c... | 40.201133 | 79 | 0.655204 |
cda292c6271f16e94bfd3f740c39886eccb98874 | 36,706 | ml | OCaml | cil/src/check.ml | spl/ivy | b1b516484fba637eb24e83d27555d273495e622b | [
"BSD-3-Clause"
] | 21 | 2016-08-20T16:44:01.000Z | 2019-10-08T12:16:55.000Z | lib/cil-1.3.7/src/check.ml | tracer-x/TRACER | c91fa7dae8f4fd92f9cefa842e2d2a4e67c95a19 | [
"RSA-MD"
] | 3 | 2016-01-29T21:16:41.000Z | 2016-01-31T09:16:57.000Z | external/cil/src/check.ml | ucsd-progsys/csolve-bak | 89cfeb5403e617f45ece4bae9f88f8e6cd7ca934 | [
"BSD-3-Clause"
] | 6 | 2016-11-27T04:07:40.000Z | 2018-04-22T01:54:15.000Z | (*
*
* Copyright (c) 2001-2002,
* George C. Necula <necula@cs.berkeley.edu>
* Scott McPeak <smcpeak@cs.berkeley.edu>
* Wes Weimer <weimer@cs.berkeley.edu>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provide... | 35.464734 | 112 | 0.546368 |
cd0c3f2a554f021eb223b55b6467ba3ff459a558 | 4,968 | mli | OCaml | analysis/typeOrder.mli | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"MIT"
] | null | null | null | analysis/typeOrder.mli | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"MIT"
] | null | null | null | analysis/typeOrder.mli | aspin/pyre-check | fe78b41789ba3ef091b0b021d9a1c6267905a7f8 | [
"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
exception Cyclic
exception Incomplete
exception Untracked of Type.t
module Target: sig
type t = {
target: int;
parame... | 29.39645 | 100 | 0.690419 |
cd17a1e2d7e6a7a8380dab3266f7d27fc644d3d5 | 5,404 | ml | OCaml | hphp/hack/src/typing/typing_make_type.ml | umanda/hhvm | 4ae8526da6ac1eb475fa1e021e0207d7c064a4cd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_make_type.ml | umanda/hhvm | 4ae8526da6ac1eb475fa1e021e0207d7c064a4cd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_make_type.ml | umanda/hhvm | 4ae8526da6ac1eb475fa1e021e0207d7c064a4cd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Typing_defs
module SN = Naming_special_names
module Reason = Typing_reason
module Nast = Aast
let class_type r... | 25.490566 | 77 | 0.665063 |
cd86074a9298e753efb961f753a0f995e25e5407 | 1,672 | ml | OCaml | test/test.ml | phink/ocaml-ipv6-multicast | 67ecd08127e29a9552d6afdadcf9e8418ade83fc | [
"ISC"
] | null | null | null | test/test.ml | phink/ocaml-ipv6-multicast | 67ecd08127e29a9552d6afdadcf9e8418ade83fc | [
"ISC"
] | null | null | null | test/test.ml | phink/ocaml-ipv6-multicast | 67ecd08127e29a9552d6afdadcf9e8418ade83fc | [
"ISC"
] | null | null | null | open Ipv6_multicast
module L = Ipv6_multicast_lwt
module Error_monad = struct
include Lwt.Infix
let (>>=?) a f =
a >>= function
| Ok v -> f v
| Error e -> Lwt.return_error e
let (>>|?) a f =
a >>= function
| Ok v -> Lwt.return (f v)
| Error e -> Lwt.return_error e
let (>>>=?) a b =
... | 24.588235 | 82 | 0.629785 |
173acaf872262e92e95c61f5363dff57615c8934 | 4,339 | ml | OCaml | Unpacker/RealLive/rldev/src/rlc/directive.ml | CATION-M/X-moe | 2bac3bb45ff21e50921aac8422f2e00839f546e5 | [
"MIT"
] | 2 | 2020-02-25T15:18:53.000Z | 2020-08-24T13:30:34.000Z | Unpacker/RealLive/rldev/src/rlc/directive.ml | CATION-M/X-moe | 2bac3bb45ff21e50921aac8422f2e00839f546e5 | [
"MIT"
] | null | null | null | Unpacker/RealLive/rldev/src/rlc/directive.ml | CATION-M/X-moe | 2bac3bb45ff21e50921aac8422f2e00839f546e5 | [
"MIT"
] | 1 | 2019-11-25T05:29:30.000Z | 2019-11-25T05:29:30.000Z | (*
Rlc: compiler directive implementation
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
... | 43.828283 | 159 | 0.652915 |
17f51ecadeff181d55b29458fc0309c6a48126c2 | 1,635 | ml | OCaml | src/parser_utils/output/__tests__/layout_generator_test_utils.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 1 | 2018-11-26T06:52:29.000Z | 2018-11-26T06:52:29.000Z | src/parser_utils/output/__tests__/layout_generator_test_utils.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | null | null | null | src/parser_utils/output/__tests__/layout_generator_test_utils.ml | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 1 | 2018-11-26T06:49:40.000Z | 2018-11-26T06:49:40.000Z | (**
* 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 OUnit2
open Ast_builder
let space_regex = Str.regexp_string " "
let newline_regex = Str.regexp_string "\n"
let assert_output ~ctx... | 35.543478 | 83 | 0.746789 |
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.