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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2fa11c6443d888aa55db7c22d4a2034a73272b0 | 1,400 | ml | OCaml | data/fa15/3016.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/3016.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/3016.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let d = (List.length l1) - (List.length l2) in
if d < 0 then (((clone 0 (0 - d)) @ l1), l2) else (l1 * (clone 0 d)) @ l2;;
(* fix
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
le... | 15.384615 | 78 | 0.457857 |
af1880f8808d7688e81cf4985f5f0ec2e8337a5c | 389 | ml | OCaml | code/examples/cgi/netcgi2/counter_apache.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/examples/cgi/netcgi2/counter_apache.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/examples/cgi/netcgi2/counter_apache.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | (** Apache connector. This program must be compiled to .cma.
You could of course copy the code of counter.ml here but it is not
done in order to reuse counter.ml with other connectors. *)
open Netcgi
let () =
let buffered _ ch = new Netchannels.buffered_trans_channel ch in
Netcgi_apache.run ~output_type... | 32.416667 | 70 | 0.722365 |
af3d0e1637d1ffdc021d780243820b461093adab | 3,901 | ml | OCaml | ci/self-ci/selfCI.ml | rkazak/datakit | e047e55a2dfa3aaec02398d7d7699f4f7afd2b47 | [
"Apache-2.0"
] | 498 | 2017-04-18T17:31:39.000Z | 2022-03-14T23:18:08.000Z | ci/self-ci/selfCI.ml | rkazak/datakit | e047e55a2dfa3aaec02398d7d7699f4f7afd2b47 | [
"Apache-2.0"
] | 86 | 2017-04-19T11:08:23.000Z | 2021-02-15T13:53:34.000Z | ci/self-ci/selfCI.ml | rkazak/datakit | e047e55a2dfa3aaec02398d7d7699f4f7afd2b47 | [
"Apache-2.0"
] | 93 | 2017-04-23T16:36:40.000Z | 2022-03-05T13:36:28.000Z | open! Astring
open Datakit_ci
let minute = 60.
let pool = Monitored_pool.create "Docker" 10
module Dockerfile = struct
(* [v ~timeout file] is a caching builder for [file]. *)
let v ?label ~timeout file =
let label = label |> Utils.default file in
Docker.create ~logs ~pool ~timeout ~label file
let cli... | 31.208 | 95 | 0.642399 |
f35fa3259e9e39abe4fc76a80017d8e8924aef50 | 3,545 | mli | OCaml | lib/pred.mli | jfeser/castor | 06d860ad7ddd9c65f8d6ef015697e2a0b26bb437 | [
"MIT"
] | 10 | 2020-02-23T01:50:19.000Z | 2021-08-18T07:07:40.000Z | lib/pred.mli | jfeser/castor | 06d860ad7ddd9c65f8d6ef015697e2a0b26bb437 | [
"MIT"
] | null | null | null | lib/pred.mli | jfeser/castor | 06d860ad7ddd9c65f8d6ef015697e2a0b26bb437 | [
"MIT"
] | 1 | 2020-04-17T11:10:33.000Z | 2020-04-17T11:10:33.000Z | open Ast
module Binop = Ast.Binop
module Unop = Ast.Unop
type t = Ast.t Ast.pred [@@deriving compare, hash, sexp]
include Comparator.S with type t := t
module O : Comparable.Infix with type t := t
module Infix : sig
val name : Name.t -> 'a annot pred
val int : int -> 'a annot pred
val fixed : Fixed_point.t ... | 26.066176 | 81 | 0.616643 |
af64a2bd6c95ae5664781f6aef7ad8b1b2070cad | 4,587 | ml | OCaml | src/env_node.ml | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | src/env_node.ml | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | src/env_node.ml | TheLortex/dune | df3d1ab23f7bde17f45bfceeebf0c211f9573d47 | [
"MIT"
] | null | null | null | open Stdune
type t =
{ dir : Path.t
; inherit_from : t Lazy.t option
; scope : Scope.t
; config : Dune_env.Stanza.t option
; mutable local_binaries : string File_bindings.t option
; mutable ocaml_flags : Ocaml_flags.t option
; mutable c_flags ... | 27.8 | 78 | 0.619359 |
f3a8350ffdc0d943da4a5fb9fa693f90600ca44c | 28,202 | ml | OCaml | duniverse/0install/src/tests/test_solver.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/0install/src/tests/test_solver.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/0install/src/tests/test_solver.ml | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (* Copyright (C) 2013, Thomas Leonard
* See the README file for details, or visit http://0install.net.
*)
open Zeroinstall.General
open Support
open Support.Common
open OUnit
open Zeroinstall
module Q = Support.Qdom
module U = Support.Utils
module EString =
struct
type t = string
let compare = compare
let pp... | 42.092537 | 151 | 0.672435 |
f30f1bf4e80541cc1c83565a1bb49a2049989c69 | 53 | ml | OCaml | data/derived/comb/progs/unify/prog2067.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/prog2067.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2067.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let x z = z * z;;
let y x = x + 1;;
let q = y x;;
| 7.571429 | 17 | 0.377358 |
f339c3405744edbef1eec1fecf06ad7534bfd358 | 12,988 | ml | OCaml | lib/prettym/pretty.ml | shonfeder/mrmime | c5eb5fae36a99af5d7b6a5802c66908e3248b1d7 | [
"MIT"
] | null | null | null | lib/prettym/pretty.ml | shonfeder/mrmime | c5eb5fae36a99af5d7b6a5802c66908e3248b1d7 | [
"MIT"
] | null | null | null | lib/prettym/pretty.ml | shonfeder/mrmime | c5eb5fae36a99af5d7b6a5802c66908e3248b1d7 | [
"MIT"
] | null | null | null | [@@@warning "-32"] (* pretty-printers *)
type vec = { off: int; len: int; }
type box = Box | TBox of int | BBox
let pp_box ppf = function
| Box -> Fmt.string ppf "box"
| TBox tab -> Fmt.pf ppf "(TBox %d)" tab
| BBox -> Fmt.string ppf "bbox"
type value =
| String of vec * string
| Bytes of vec * bytes
| B... | 35.389646 | 104 | 0.593779 |
d2fe639086666ad422546b94d24d3fa8f0564274 | 9,379 | ml | OCaml | core_unix/test/cidr_tests.ml | EmmaJaneBonestell/core_unix | c970c1c4aabc628302e5af34c79a083a2a504991 | [
"MIT"
] | 6 | 2021-12-06T17:44:12.000Z | 2022-03-09T02:17:42.000Z | core_unix/test/cidr_tests.ml | EmmaJaneBonestell/core_unix | c970c1c4aabc628302e5af34c79a083a2a504991 | [
"MIT"
] | 2 | 2021-12-03T21:48:04.000Z | 2022-02-19T19:47:12.000Z | core_unix/test/cidr_tests.ml | EmmaJaneBonestell/core_unix | c970c1c4aabc628302e5af34c79a083a2a504991 | [
"MIT"
] | 5 | 2021-12-11T19:24:44.000Z | 2022-03-15T20:00:54.000Z | open! Core
open! Import
module Inet_addr = Unix.Inet_addr
module Cidr = Unix.Cidr
open Cidr
let does_match ?(expected = true) cidr inet_addr =
let matches = does_match cidr inet_addr in
require
[%here]
(Bool.equal expected matches)
~if_false_then_print_s:
(lazy
[%message
"[Cidr.... | 40.253219 | 90 | 0.669368 |
af6d997d8271cafedd4b148f56ee2bd178b1ff44 | 5,892 | ml | OCaml | hphp/hack/src/server/serverCommand.ml | ASSETLID/Aych.vm | 50efb4c6b162607bb9e277a2d29e641d8509774f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverCommand.ml | ASSETLID/Aych.vm | 50efb4c6b162607bb9e277a2d29e641d8509774f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverCommand.ml | ASSETLID/Aych.vm | 50efb4c6b162607bb9e277a2d29e641d8509774f | [
"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 Utils
t... | 36.825 | 80 | 0.573659 |
af56c01029100bfed683449810c0d1e457b7b94d | 4,864 | ml | OCaml | kernel/exsubst.ml | yannl35133/Dedukti | e85df96ca01823edd23c5339556bb32092543e16 | [
"CECILL-B"
] | null | null | null | kernel/exsubst.ml | yannl35133/Dedukti | e85df96ca01823edd23c5339556bb32092543e16 | [
"CECILL-B"
] | null | null | null | kernel/exsubst.ml | yannl35133/Dedukti | e85df96ca01823edd23c5339556bb32092543e16 | [
"CECILL-B"
] | null | null | null | open Basic
open Format
open Term
(** An extended substitution is a function mapping
- a variable (location, identifier and DB index)
- applied to a given number of arguments
- under a given number of lambda abstractions
to a term.
A substitution raises Not_found meaning that the variable is not sub... | 40.533333 | 100 | 0.625 |
f3df94158ceb0206d39217d83ffaef69964349c6 | 136,156 | ml | OCaml | src/parser/parser_flow.ml | hzoo/flow | 240c996154d297db28aa8d947ee5d70e89f5a022 | [
"BSD-3-Clause"
] | 1 | 2021-03-09T04:27:14.000Z | 2021-03-09T04:27:14.000Z | src/parser/parser_flow.ml | hzoo/flow | 240c996154d297db28aa8d947ee5d70e89f5a022 | [
"BSD-3-Clause"
] | null | null | null | src/parser/parser_flow.ml | hzoo/flow | 240c996154d297db28aa8d947ee5d70e89f5a022 | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Lexer_fl... | 35.670946 | 108 | 0.575759 |
af83115e69686434bbaebca77ea4e9dea12cdb13 | 678 | ml | OCaml | ag_pathanalysis/batteries/src/extlib.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2019-12-05T19:47:42.000Z | 2021-05-05T13:41:16.000Z | ag_pathanalysis/batteries/src/extlib.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | null | null | null | ag_pathanalysis/batteries/src/extlib.ml | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2021-04-20T07:44:02.000Z | 2021-04-20T08:38:41.000Z | module Base64 = BatBase64
module BitSet = BatBitSet
module Dllist = BatDllist
module DynArray = BatDynArray
module Enum = BatEnum
module ExtArray = struct
module Array = struct include Array include BatArray end
end
module ExtHashtbl = struct
module Hashtbl = BatHashtbl
end
module ExtList = struct
module List = s... | 24.214286 | 58 | 0.787611 |
f331cf8119f636e1e8192df46d795b4158db6876 | 2,023 | ml | OCaml | beer-song/test.ml | tmcgilchrist/xocaml | f8f8af5154f66d62e33608c2199b3c9dc17991ae | [
"MIT"
] | null | null | null | beer-song/test.ml | tmcgilchrist/xocaml | f8f8af5154f66d62e33608c2199b3c9dc17991ae | [
"MIT"
] | null | null | null | beer-song/test.ml | tmcgilchrist/xocaml | f8f8af5154f66d62e33608c2199b3c9dc17991ae | [
"MIT"
] | null | null | null | open Core.Std
open OUnit2
let ae exp got = assert_equal ~printer:String.to_string exp got
let tests =
["a verse">:: (fun _ ->
let exp = "8 bottles of beer on the wall, 8 bottles of beer.\nTake one down and pass it around, 7 bottles of beer on the wall.\n" in
ae exp (Beer.verse 8));
"verse 1">:: (fun _ ... | 69.758621 | 512 | 0.67474 |
af5b589283d693d19472ea12dbb0c04379d8681c | 254,198 | ml | OCaml | hphp/hack/src/errors/typing_error.ml | donsbot/hhvm | ac98a590f75c569e1249b6c1145c7512c7bd240e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/typing_error.ml | donsbot/hhvm | ac98a590f75c569e1249b6c1145c7512c7bd240e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/typing_error.ml | donsbot/hhvm | ac98a590f75c569e1249b6c1145c7512c7bd240e | [
"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.Typing
module Eval_result : sig
type 'a t
val to_string : 'a t -> ('a ->... | 31.754903 | 256 | 0.599741 |
af2f303019be10e88d902d83c706ca2dda8bd909 | 4,001 | ml | OCaml | matrix.ml | Hallot/machine_learning | abcbcb0820bb85dd119a1c9b30e5109976dcab4f | [
"MIT"
] | null | null | null | matrix.ml | Hallot/machine_learning | abcbcb0820bb85dd119a1c9b30e5109976dcab4f | [
"MIT"
] | null | null | null | matrix.ml | Hallot/machine_learning | abcbcb0820bb85dd119a1c9b30e5109976dcab4f | [
"MIT"
] | null | null | null | let nb_line mat = Array.length mat;;
let nb_col mat = Array.length mat.(0);;
let mult mat1 mat2 =
let m1 = nb_line mat1 in
let m2 = nb_line mat2 in
let n2 = if m2 == 0 then 0 else nb_col mat2 in
let res = Array.make_matrix m1 n2 0. in
for i = 0 to m1 - 1 do
for j = 0 to n2 - 1 do
for k = 0 t... | 21.281915 | 96 | 0.515121 |
f3d86fd47cba25d3c1efe872ed87d4d1284a6a26 | 5,179 | ml | OCaml | infer/src/bufferoverrun/arrayBlk.ml | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | infer/src/bufferoverrun/arrayBlk.ml | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | infer/src/bufferoverrun/arrayBlk.ml | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | 1 | 2019-10-24T14:47:52.000Z | 2019-10-24T14:47:52.000Z | (*
* Copyright (c) 2016-present
*
* Programming Research Laboratory (ROPAS)
* Seoul National University, Korea
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* Abstract Array Block *)
open! IStd
open AbsLoc
open! AbstractDomain.T... | 30.110465 | 99 | 0.650126 |
af39545f032d048ce48aa77e51832cd4fff0649c | 10,714 | mli | OCaml | src/proto_alpha/lib_protocol/round_repr.mli | Vertalo/tezos | f2f76ec444e6c8240e3afbc69a00e00eac249e3f | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/round_repr.mli | Vertalo/tezos | f2f76ec444e6c8240e3afbc69a00e00eac249e3f | [
"MIT"
] | 1 | 2021-08-04T17:54:43.000Z | 2021-08-04T17:54:43.000Z | src/proto_alpha/lib_protocol/round_repr.mli | Vertalo/tezos | f2f76ec444e6c8240e3afbc69a00e00eac249e3f | [
"MIT"
] | 1 | 2021-08-01T15:56:04.000Z | 2021-08-01T15:56:04.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 41.207692 | 88 | 0.547415 |
f35bd3b6b14e99f08c522207d39db260cae27d55 | 109 | mli | OCaml | src/lib/coda_base/frozen_ledger_hash.mli | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | 2 | 2020-11-14T20:16:02.000Z | 2021-08-19T12:44:52.000Z | src/lib/coda_base/frozen_ledger_hash.mli | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | 11 | 2021-09-02T10:10:36.000Z | 2022-02-27T08:56:41.000Z | src/lib/coda_base/frozen_ledger_hash.mli | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | include Ledger_hash_intf.S
val of_ledger_hash : Ledger_hash.t -> t
val to_ledger_hash : t -> Ledger_hash.t
| 18.166667 | 39 | 0.770642 |
f39403ad0d4759e98f27ca9b1e11e37e32508ec6 | 10,297 | ml | OCaml | bootstrap/4.07.1/pa_ast.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 2 | 2018-02-12T20:06:48.000Z | 2018-04-09T14:08:38.000Z | bootstrap/4.07.1/pa_ast.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 12 | 2017-08-30T10:44:32.000Z | 2019-08-02T11:33:33.000Z | bootstrap/4.07.1/pa_ast.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 1 | 2020-04-25T05:58:29.000Z | 2020-04-25T05:58:29.000Z | open Asttypes
open Parsetree
open Longident
let loc_str _loc desc = { pstr_desc = desc; pstr_loc = _loc }
let loc_sig _loc desc = { psig_desc = desc; psig_loc = _loc }
let loc_expr ?(attributes= []) _loc e =
{ pexp_desc = e; pexp_loc = _loc; pexp_attributes = attributes }
let loc_pat ?(attributes= []) _loc pat =
... | 36.514184 | 80 | 0.661455 |
af1c7c9cb7ea47a3184f5bc755b552056b84778f | 32,392 | ml | OCaml | src/deputy/infer/markptr.ml | spl/ivy | b1b516484fba637eb24e83d27555d273495e622b | [
"BSD-3-Clause"
] | null | null | null | src/deputy/infer/markptr.ml | spl/ivy | b1b516484fba637eb24e83d27555d273495e622b | [
"BSD-3-Clause"
] | 3 | 2016-01-29T21:16:41.000Z | 2016-01-31T09:16:57.000Z | src/deputy/infer/markptr.ml | spl/ivy | b1b516484fba637eb24e83d27555d273495e622b | [
"BSD-3-Clause"
] | 1 | 2020-08-16T06:03:00.000Z | 2020-08-16T06:03:00.000Z | (*
*
* Copyright (c) 2001-2006,
* 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 provided... | 34.168776 | 79 | 0.59456 |
f369d055e943b99c4e5a6ad38ae067400dedb975 | 5,556 | ml | OCaml | src/gen/g2.ml | dune-universe/bls12-381-legacy | 046a8a7ea0185deb5cfe47385b6ea687f6e8ea8d | [
"MIT"
] | null | null | null | src/gen/g2.ml | dune-universe/bls12-381-legacy | 046a8a7ea0185deb5cfe47385b6ea687f6e8ea8d | [
"MIT"
] | null | null | null | src/gen/g2.ml | dune-universe/bls12-381-legacy | 046a8a7ea0185deb5cfe47385b6ea687f6e8ea8d | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Copyright (c) 2020-2021 Danny Willems <be.danny.willems@gmail.com> *)
(* *)
... | 36.077922 | 79 | 0.605292 |
f3a3caf5afe585efedf22b0cb78dca941f72ad48 | 24,219 | ml | OCaml | upstream/ocaml_405/typing/includemod.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | upstream/ocaml_405/typing/includemod.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | upstream/ocaml_405/typing/includemod.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 36.806991 | 80 | 0.630868 |
af2d45193ab8ac8334fd1a9c88f4bbc4a758981a | 7,583 | ml | OCaml | data/derived/comb/progs/unify/prog1186.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/prog1186.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1186.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.148276 | 148 | 0.664513 |
f3c6a5e66b8ea4ab71bd12b0c925ef03b97ef7ca | 11,895 | ml | OCaml | lib/node/gen/path.ml | smorimoto/js-bindings | 0812fbba1ccd616a4591b5c3da89b8623c0e5d85 | [
"MIT"
] | 1 | 2021-04-15T05:05:29.000Z | 2021-04-15T05:05:29.000Z | lib/node/path.ml | smorimoto/js-bindings | 0812fbba1ccd616a4591b5c3da89b8623c0e5d85 | [
"MIT"
] | null | null | null | lib/node/path.ml | smorimoto/js-bindings | 0812fbba1ccd616a4591b5c3da89b8623c0e5d85 | [
"MIT"
] | null | null | null | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
[@@@ocaml.warning "-7-11-32-33-39"]
open Es2020
module Internal =
struct
module AnonymousInterfaces = struct end
module Types =
struct
open AnonymousInterfaces
type path_path_FormatInputPathOb... | 45.228137 | 78 | 0.435982 |
af22443c4805e0b7ccea41c7d6c170c3afa61d0b | 2,355 | ml | OCaml | tester/jsonTest.ml | pirapira/eth-isabelle | d0bb02b3e64a2046a7c9670545d21f10bccd7b27 | [
"Apache-2.0"
] | 252 | 2016-10-09T22:47:05.000Z | 2022-03-26T16:48:10.000Z | tester/jsonTest.ml | mmalvarez/eth-isabelle | 9c0091f7f24f0e1a36061f0f7f56bf4341da172c | [
"Apache-2.0"
] | 352 | 2016-10-11T10:28:54.000Z | 2018-07-18T01:24:08.000Z | tester/jsonTest.ml | pirapira/eth-isabelle | d0bb02b3e64a2046a7c9670545d21f10bccd7b27 | [
"Apache-2.0"
] | 42 | 2017-01-06T23:56:33.000Z | 2021-04-02T08:47:05.000Z | open Yojson.Basic
open BlockchainTestParser
let () =
(* let vm_arithmetic_test : json = Yojson.Basic.from_file "../tests/VMTests/vmArithmeticTest.json" in
let vm_arithmetic_test_assoc : (string * json) list = Util.to_assoc vm_arithmetic_test in
let () =
List.iter (fun (label, elm) ->
let () = Printf.p... | 51.195652 | 114 | 0.739278 |
d2ee865a06cac39d31090cf1f3293f63b2c360bd | 2,420 | ml | OCaml | camlp4/code/jake/test_json_float.ml | mgttlinger/ocaml-book | 09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75 | [
"BSD-3-Clause"
] | 142 | 2015-01-12T16:45:40.000Z | 2022-01-15T00:47:37.000Z | camlp4/code/jake/test_json_float.ml | mgttlinger/ocaml-book | 09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75 | [
"BSD-3-Clause"
] | 1 | 2018-10-09T13:53:43.000Z | 2018-12-03T04:15:48.000Z | camlp4/code/jake/test_json_float.ml | mgttlinger/ocaml-book | 09a575b0d1fedfce565ecb9a0ae9cf0df37fdc75 | [
"BSD-3-Clause"
] | 17 | 2015-02-10T18:12:15.000Z | 2021-06-21T06:57:32.000Z | type t =
Jq_null
|Jq_bool of bool
|Jq_number of float
|Jq_string of string
|Jq_array of t list
|Jq_object of (string*t) list
class map = Camlp4MapGenerator.generated
class fold = Camlp4FoldGenerator.generated
(**
type t =
| Jq_null
| Jq_bool of bool
| Jq_number of float
| Jq_string ... | 29.156627 | 78 | 0.522314 |
af1ac43c2e573ea53ebac39b677725326db4cd89 | 827 | ml | OCaml | data/derived/comb/progs/unify/prog6438.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/prog1596.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1596.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
| Uncreative of expr* expr* expr
| Creative of expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Sine ... | 25.84375 | 70 | 0.464329 |
af112cd0bcbf838852c482f169b121024bd27de4 | 293 | ml | OCaml | src/Util/StringPoly.ml | generic-group-analyzer/gga | 75d362fb3db4cc34b8e3fc7e6d76d8d31068457f | [
"MIT"
] | 2 | 2016-08-17T11:00:45.000Z | 2019-04-14T14:00:14.000Z | src/Util/StringPoly.ml | generic-group-analyzer/gga | 75d362fb3db4cc34b8e3fc7e6d76d8d31068457f | [
"MIT"
] | null | null | null | src/Util/StringPoly.ml | generic-group-analyzer/gga | 75d362fb3db4cc34b8e3fc7e6d76d8d31068457f | [
"MIT"
] | null | null | null | (* This file is distributed under the MIT License (see LICENSE). *)
open Poly
open Util
(* \ic{We use strings as variables for constraint polyomials.} *)
module SP = MakePoly(
struct
type t = string
let pp = pp_string
let equal = (=)
let compare = compare
end) (IntRing)
| 20.928571 | 67 | 0.665529 |
f3ef817036f1000bedc1ac9fbb6bb1ed7d0ab761 | 7,753 | ml | OCaml | src/X86.ml | EvgeniyGor/proglangdev | 12a1d4ddb368c2a17ba40ed5b710aa111aa7a701 | [
"WTFPL"
] | null | null | null | src/X86.ml | EvgeniyGor/proglangdev | 12a1d4ddb368c2a17ba40ed5b710aa111aa7a701 | [
"WTFPL"
] | null | null | null | src/X86.ml | EvgeniyGor/proglangdev | 12a1d4ddb368c2a17ba40ed5b710aa111aa7a701 | [
"WTFPL"
] | null | null | null | open StackMachine
open Instr
type opnd = R of int |
S of int |
L of int |
M of string
let regs = [|"%eax"; "%ebx"; "%ecx"; "%esi"; "%edi"; "%edx"; "%esp"; "%ebp"|]
let nregs = Array.length regs - 3
let [|eax; ebx; ecx; esi; edi; edx; esp; ebp|] = Array.mapi (fun i _ -> R i) re... | 35.893519 | 84 | 0.408745 |
af67bb9611453aaa80dd085be65fced1dac16971 | 11,487 | ml | OCaml | src/lib/prover/stateEncoder.ml | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | null | null | null | src/lib/prover/stateEncoder.ml | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | null | null | null | src/lib/prover/stateEncoder.ml | letonchanh/Coeus | 21d417a56a80d6c9014cbb6ed86b329d522fd9a3 | [
"Apache-2.0"
] | null | null | null | open Core
open Ast.Ecoeus
let rec expr_structural_same (e0 : Expr.t) (e1 : Expr.t) =
match (e0.bare_expr, e1.bare_expr) with
| Expr.LiteralExpr l0, Expr.LiteralExpr l1 ->
[%compare.equal: Literal.t] l0 l1
| Expr.VarExpr _, Expr.VarExpr _ -> true
| Expr.UnaryExpr (op0, e0), Expr.UnaryExpr (op1, e1) ->
... | 42.076923 | 80 | 0.687908 |
f32dfe165ef55d6ba0ed2d562272a60e30bed3fd | 6,376 | ml | OCaml | src/proto_008_PtEdo2Zk/lib_client/client_proto_contracts.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/proto_008_PtEdo2Zk/lib_client/client_proto_contracts.ml | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/proto_008_PtEdo2Zk/lib_client/client_proto_contracts.ml | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 36.022599 | 79 | 0.557873 |
af7f7565f68da416b6e52141d785dc4eb1ed6d7b | 12,604 | ml | OCaml | src/irmin/merge.ml | AntouanK/test-irmin | 07c8378acb835281d0fd2e4f492b84b0fc3b5588 | [
"0BSD"
] | null | null | null | src/irmin/merge.ml | AntouanK/test-irmin | 07c8378acb835281d0fd2e4f492b84b0fc3b5588 | [
"0BSD"
] | null | null | null | src/irmin/merge.ml | AntouanK/test-irmin | 07c8378acb835281d0fd2e4f492b84b0fc3b5588 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 28.908257 | 79 | 0.527055 |
af2e487dd085c0faa9caac636c4554c408df0d07 | 173 | mli | OCaml | src/linuxkit_test.mli | rn/linuxkit-ci | f2a559e888245a3ab3a561b77b8d3e3609eab16d | [
"Apache-2.0"
] | 7 | 2017-05-02T21:51:46.000Z | 2018-04-01T20:08:46.000Z | src/linuxkit_test.mli | rn/linuxkit-ci | f2a559e888245a3ab3a561b77b8d3e3609eab16d | [
"Apache-2.0"
] | 17 | 2017-04-28T10:33:16.000Z | 2018-09-03T11:09:22.000Z | src/linuxkit_test.mli | rn/linuxkit-ci | f2a559e888245a3ab3a561b77b8d3e3609eab16d | [
"Apache-2.0"
] | 13 | 2017-05-04T11:38:25.000Z | 2021-01-21T02:38:37.000Z | open Datakit_ci
type t
val make : logs:Live_log.manager -> google_pool:Monitored_pool.t -> vms:Gcp.t -> build_cache:Disk_cache.t -> t
val gcp : t -> Hash.t -> unit Term.t
| 24.714286 | 110 | 0.705202 |
af58db6d69ba5d94d2702521d9a449511d3bc4ee | 1,248 | mli | OCaml | benchmarks/source/superh/fftw-3.3alpha1/genfft/twiddle.mli | samuelmswong/sunflower-embedded-system-emulator | 703d01346ee6dde9bbec4a1bc11fcddbe7849278 | [
"BSD-3-Clause"
] | 14 | 2019-05-30T04:47:25.000Z | 2021-07-06T02:59:31.000Z | benchmarks/source/superh/fftw-3.3alpha1/genfft/twiddle.mli | samuelmswong/sunflower-embedded-system-emulator | 703d01346ee6dde9bbec4a1bc11fcddbe7849278 | [
"BSD-3-Clause"
] | 80 | 2019-08-27T14:43:46.000Z | 2020-12-16T11:56:19.000Z | benchmarks/source/superh/fftw-3.3alpha1/genfft/twiddle.mli | samuelmswong/sunflower-embedded-system-emulator | 703d01346ee6dde9bbec4a1bc11fcddbe7849278 | [
"BSD-3-Clause"
] | 98 | 2019-08-30T14:29:16.000Z | 2020-11-21T18:22:13.000Z | (*
* Copyright (c) 1997-1999 Massachusetts Institute of Technology
* Copyright (c) 2003, 2007-8 Matteo Frigo
* Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publish... | 37.818182 | 76 | 0.71875 |
af83c33d6298def54525a550de546425e175731c | 46,856 | ml | OCaml | src/app/replayer/replayer.ml | olton/mina | 35a0be706602a3187a21ba757c89d197ff914d7e | [
"Apache-2.0"
] | 2 | 2021-12-10T21:56:09.000Z | 2021-12-15T21:51:35.000Z | src/app/replayer/replayer.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | null | null | null | src/app/replayer/replayer.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | null | null | null | (* replayer.ml -- replay transactions from archive node database *)
open Core
open Async
open Mina_base
(* identify a target block B containing staking and next epoch ledgers
to be used in a hard fork, by giving its state hash
from B, we choose a predecessor block B_fork, which is the block to
fork from
... | 39.308725 | 95 | 0.642308 |
f303cadbd1c062ea76999a763f4d5dda5a21c723 | 335 | ml | OCaml | examples/cbuf/bindgen.ml | atrn0/ocaml-ctypes | 94ebbf6bb117a803f67df60e5bbcd914aafd5df1 | [
"MIT"
] | null | null | null | examples/cbuf/bindgen.ml | atrn0/ocaml-ctypes | 94ebbf6bb117a803f67df60e5bbcd914aafd5df1 | [
"MIT"
] | null | null | null | examples/cbuf/bindgen.ml | atrn0/ocaml-ctypes | 94ebbf6bb117a803f67df60e5bbcd914aafd5df1 | [
"MIT"
] | null | null | null | let () =
let fmt = Format.formatter_of_out_channel (open_out "cbuf_gen.c") in
Format.fprintf fmt "#include \"example.h\"\n#include <string.h>\n";
Cbuf.write_c fmt ~prefix:"caml_" (module Bindings.C);
let fmt = Format.formatter_of_out_channel (open_out "cbuf_gen.ml") in
Cbuf.write_ml fmt ~prefix:"caml_" (modu... | 41.875 | 71 | 0.722388 |
af59fbc6fa22fc7823700b4c40f074f8b76b7696 | 50,660 | ml | OCaml | src/core/Semantics.ml | mmcqd/cooltt | 88511e10cb9e17286f585882dee334f3d8ace47c | [
"Apache-2.0"
] | 14 | 2020-01-10T16:49:58.000Z | 2020-04-27T03:08:35.000Z | src/core/Semantics.ml | mmcqd/cooltt | 88511e10cb9e17286f585882dee334f3d8ace47c | [
"Apache-2.0"
] | 46 | 2020-01-12T19:12:26.000Z | 2020-05-09T03:27:35.000Z | src/core/Semantics.ml | mmcqd/cooltt | 88511e10cb9e17286f585882dee334f3d8ace47c | [
"Apache-2.0"
] | 2 | 2020-05-01T01:24:41.000Z | 2020-05-05T16:00:19.000Z | open Basis
open Bwd
open CodeUnit
module S = Syntax
module D = Domain
exception Todo
exception CJHM
exception CFHM
exception CCHM
exception NbeFailed of string
module Splice = Splice
module TB = TermBuilder
module CM = struct include Monads.CmpM include Monad.Notation (Monads.CmpM) module MU = Monad.Util (Monads.... | 29.470622 | 124 | 0.565002 |
af671ca438ab9f307bbe7765f439a7224fabe874 | 317 | ml | OCaml | tests/precise_signature.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 146 | 2015-01-02T10:32:42.000Z | 2021-09-16T14:13:40.000Z | tests/precise_signature.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 44 | 2015-04-28T19:26:48.000Z | 2021-09-20T22:40:37.000Z | tests/precise_signature.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 10 | 2015-05-08T23:28:54.000Z | 2021-03-08T15:29:32.000Z | module type Sig1 = sig
type t
val f : t -> t -> t * t
end
[@@coq_precise_signature]
module type Sig2 = sig
type t
val f : t -> t list
end
[@@coq_precise_signature]
module M1 : Sig1 = struct
type t = int
let f (n : t) m = (n, m)
end
module M2 : Sig2 = struct
type t = int
let f (n : t) = []
end
| 12.192308 | 26 | 0.577287 |
af83dcda29e77925006dfeeb0516be1540a5275a | 4,927 | ml | OCaml | test_cryptokit.ml | mstrhh/ocaml-samples | 12e91d369f5f26c366663eac623a41f70c50fbf0 | [
"Artistic-2.0"
] | null | null | null | test_cryptokit.ml | mstrhh/ocaml-samples | 12e91d369f5f26c366663eac623a41f70c50fbf0 | [
"Artistic-2.0"
] | null | null | null | test_cryptokit.ml | mstrhh/ocaml-samples | 12e91d369f5f26c366663eac623a41f70c50fbf0 | [
"Artistic-2.0"
] | null | null | null |
(*
Speed test for Cryptokit hash functions.
On the way we will show how to use the Hash module functions.
Compile with: make testcrypto -- see Makefile
Needs cryptokit >= 1.10 or there will not be all the hashes
*)
module C = Cryptokit (* shortening module names, you can still see where a functio... | 45.201835 | 138 | 0.597321 |
f32523bdaf6b4583f7f6efb420c55f944dc1985b | 12 | mli | OCaml | examples/oexe-deps/a.mli | dysinger/b0 | 59c24086f5bbee1484dea4e4ec9592bfdc6691fb | [
"ISC"
] | null | null | null | examples/oexe-deps/a.mli | dysinger/b0 | 59c24086f5bbee1484dea4e4ec9592bfdc6691fb | [
"ISC"
] | null | null | null | examples/oexe-deps/a.mli | dysinger/b0 | 59c24086f5bbee1484dea4e4ec9592bfdc6691fb | [
"ISC"
] | null | null | null | val v : int
| 6 | 11 | 0.583333 |
af79a1e84eedabbdccc5fc34586f8592b3914c76 | 13,848 | ml | OCaml | hphp/hack/test/integration/symbol_index_test.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration/symbol_index_test.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/integration/symbol_index_test.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | open Core_kernel
open IndexBuilderTypes
open SearchUtils
open Test_harness
module Args = Test_harness_common_args
module SA = Asserter.String_asserter
module IA = Asserter.Int_asserter
let rec assert_docblock_markdown
(expected : DocblockService.result) (actual : DocblockService.result) :
unit =
DocblockServ... | 32.055556 | 83 | 0.679809 |
af5bd42b384c58654376968d9582f29a3ea4afa6 | 2,857 | ml | OCaml | src/app/cli/src/tests/coda_archive_processor_test.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/tests/coda_archive_processor_test.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/tests/coda_archive_processor_test.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Signature_lib
let name = "coda-archive-processor-test"
let main () =
let archive_address = Host_and_port.of_string "localhost:3086" in
let postgres_address =
Uri.of_string "postgres://admin:codarules@localhost:5432/archiver"
in
let%bind conn =
match%map Caqti_async.connect po... | 33.611765 | 78 | 0.684284 |
f3a196263c3287ca1377a0a375529cbac8825331 | 345 | mli | OCaml | src/old_parser_cont_state.mli | janestreet/parsexp | 2e0c7a0cca617faec86256b4afe40b2ebad96662 | [
"MIT"
] | 27 | 2017-03-13T21:45:29.000Z | 2022-01-18T20:49:05.000Z | src/old_parser_cont_state.mli | janestreet/parsexp | 2e0c7a0cca617faec86256b4afe40b2ebad96662 | [
"MIT"
] | 8 | 2018-05-09T14:13:54.000Z | 2021-11-29T10:58:17.000Z | src/old_parser_cont_state.mli | janestreet/parsexp | 2e0c7a0cca617faec86256b4afe40b2ebad96662 | [
"MIT"
] | 8 | 2017-07-20T12:39:04.000Z | 2021-12-17T02:46:52.000Z | open! Import
type t =
| Parsing_toplevel_whitespace
| Parsing_nested_whitespace
| Parsing_atom
| Parsing_list
| Parsing_sexp_comment
| Parsing_block_comment
[@@deriving_inline sexp_of]
include sig
[@@@ocaml.warning "-32"]
val sexp_of_t : t -> Sexplib0.Sexp.t
end
[@@ocaml.doc "@inline"]
[@@@end]
val... | 15.681818 | 38 | 0.704348 |
af439cc79eee6a7e3de6c3e6086bfb94a2a74ce0 | 5,967 | ml | OCaml | src/typing/instantiation_utils.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/typing/instantiation_utils.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/typing/instantiation_utils.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.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 Utils_js
open Reason
open Type
(***********************)
(* instantiation utils *)
(***********************)
module Implici... | 37.062112 | 101 | 0.657784 |
f3accf4b1bc57ce26d5d16f7e9704562e86e3584 | 1,775 | mli | OCaml | infer/src/base/ResultsDatabase.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/base/ResultsDatabase.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/base/ResultsDatabase.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"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
val database_filename : string
(** the relative path to the database from the results directory *)
val database_fullpa... | 38.586957 | 177 | 0.743099 |
af240d449a129a9e0457d2b468ff240322ac6b9a | 701 | mli | OCaml | analysis/coverage.mli | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | null | null | null | analysis/coverage.mli | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | 1 | 2021-05-11T20:40:20.000Z | 2021-05-11T20:40:20.000Z | analysis/coverage.mli | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"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 Ast
type t = {
full: int;
partial: int;
untyped: int;
ignore: int;
crashes: int;
}
[@@deriving show]
val create
: ?full... | 18.447368 | 67 | 0.629101 |
af78e8d218483bcf0e2aa968dccba794b20dbb53 | 505 | mli | OCaml | src/heap/ident.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/heap/ident.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/heap/ident.mli | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.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.
*)
type t = int [@@deriving eq]
val compare : t -> t -> int
val track_names : bool ref
val tmp : unit -> t
val to_string : t -> st... | 18.703704 | 66 | 0.647525 |
f3f5c4b3f35f2ebf1e9f11f4d2a1a853e742008f | 3,465 | mll | OCaml | plang/tplToken.mll | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | 5 | 2015-01-30T06:16:32.000Z | 2020-04-14T09:08:49.000Z | plang/tplToken.mll | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | plang/tplToken.mll | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | {
(* © 2013 RunOrg *)
open TplParse
(** Return the comparison operator that corresponds to the
specified string. *)
let comparison_of_string = function
| "==" -> `Equal
| "===" -> `TypeEqual
| "<" -> `Lt
| "<=" -> `Leq
| ">" -> `Gt
| ">=" -> `Geq
| "!=" -> `NotEqual
... | 23.255034 | 95 | 0.470707 |
f36fe27bf47761ed13868e74777dc53ddb702087 | 941 | ml | OCaml | libraries/cloudwatch/lib/deleteAlarms.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudwatch/lib/deleteAlarms.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudwatch/lib/deleteAlarms.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
open Aws
type input = DeleteAlarmsInput.t
type output = unit
type error = Errors_internal.t
let service = "monitoring"
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
... | 31.366667 | 77 | 0.632306 |
f398525a9a8518c0ce88508a406dd970ceda186f | 415 | ml | OCaml | data/fa15_min/0627.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/0627.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/0627.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n = match n with | 1 -> [x] | n' -> [clone x (n - 1)];;
(* fix
let rec clone x n =
match n with | 1 -> [x] | n' -> List.append (clone x (n - 1)) [];;
*)
(* changed spans
(2,53)-(2,70)
List.append (clone x (n - 1))
[]
AppG [AppG [EmptyG,EmptyG],ListG []]
*)
(* type error slice
(2,4)... | 14.310345 | 71 | 0.474699 |
f37b2795185de93744a50a350f08d00a7b4196e5 | 4,987 | mli | OCaml | src/lib/transition_frontier/frontier_base/diff.mli | junjiequ123/mina | 0d0e15cc3276f5d9f66ef9024ecad929fc93ddac | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/transition_frontier/frontier_base/diff.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/transition_frontier/frontier_base/diff.mli | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Mina_base
open Mina_transition
type full = Full
type lite = Lite
(** A node can be represented in two different formats.
* A full node representation is a breadcrumb, which
* contains both an external transition and a computed
* staged ledger (masked off of the node parent's
* staged ledger). A lite nod... | 33.246667 | 76 | 0.694806 |
af3a842ecc9121fe974921dc7da8fdebb42ac195 | 33,318 | ml | OCaml | src/bin/main.ml | Mattlk13/vpnkit | b48a26306b767b033e189ffe362d126a673fa140 | [
"Apache-2.0"
] | 2 | 2017-08-03T21:41:02.000Z | 2018-01-16T18:04:25.000Z | src/bin/main.ml | rneugeba/vpnkit | 2ffc1dd8a84ea7359dd09b1f4b51bb728d4f46a0 | [
"Apache-2.0"
] | 1 | 2021-02-24T03:49:01.000Z | 2021-02-24T03:49:01.000Z | src/bin/main.ml | rneugeba/vpnkit | 2ffc1dd8a84ea7359dd09b1f4b51bb728d4f46a0 | [
"Apache-2.0"
] | 1 | 2020-01-22T13:14:59.000Z | 2020-01-22T13:14:59.000Z | open Lwt
let src =
let src = Logs.Src.create "9P" ~doc:"/port filesystem" in
Logs.Src.set_level src (Some Logs.Info);
src
module Log9P = (val Logs.src_log src : Logs.LOG)
let src =
let src = Logs.Src.create "usernet" ~doc:"Mirage TCP/IP <-> socket proxy" in
Logs.Src.set_level src (Some Logs.Info);
src
m... | 37.268456 | 159 | 0.632751 |
af28d99e3751d30f79a82445b534773c0b98af1f | 311,330 | ml | OCaml | src/parser/newLexer.ml | rleer/diamondback-ruby | 5df2ff2eac022d5c6a82250810e1169851546dee | [
"BSD-3-Clause"
] | null | null | null | src/parser/newLexer.ml | rleer/diamondback-ruby | 5df2ff2eac022d5c6a82250810e1169851546dee | [
"BSD-3-Clause"
] | null | null | null | src/parser/newLexer.ml | rleer/diamondback-ruby | 5df2ff2eac022d5c6a82250810e1169851546dee | [
"BSD-3-Clause"
] | null | null | null | # 1 "newLexer.mll"
open NewParser
open RubyLexerState
open Lexing
open Printf
let pop_lexer state =
let (_:cps_lexer) = Stack.pop state.lexer_stack in
()
let fail_eof f state lexbuf =
failwith "parse error: premature end of file"
(* emit the token [tok] and then proceed with the conti... | 56.718892 | 93 | 0.680503 |
f3d6dbf0227a108cce999c11121afd7de7e75d71 | 69,257 | ml | OCaml | src/proto_alpha/lib_client_commands/client_proto_context_commands.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_alpha/lib_client_commands/client_proto_context_commands.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_alpha/lib_client_commands/client_proto_context_commands.ml | 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> *)
... | 34.167242 | 84 | 0.524626 |
af0b6e98f750f53f3b37d5c5f1c73fe56a2ad683 | 820 | mli | OCaml | src/interactive/config.mli | ptal/nominal-workbench | 6587f9b4b904909c1b41f99148d713c99003e6fe | [
"MIT"
] | 1 | 2018-10-06T12:04:36.000Z | 2018-10-06T12:04:36.000Z | src/interactive/config.mli | fredokun/nominal-workbench | 43f878d5fffbd44e540dd025930516da553a4594 | [
"MIT"
] | null | null | null | src/interactive/config.mli | fredokun/nominal-workbench | 43f878d5fffbd44e540dd025930516da553a4594 | [
"MIT"
] | 3 | 2018-04-22T16:55:06.000Z | 2019-11-22T11:23:24.000Z | (* Distributed under the MIT License.
(See accompanying file LICENSE.txt)
(C) Copyright Vincent Botbol
*)
(** Configuration variables *)
open Arg
(** Current version *)
val version : string
(** Path variable *)
val get_path : unit -> string list
(** Suffix to rules files *)
val rule_suffix : string
(* If true... | 21.578947 | 71 | 0.689024 |
af340a9ebae702c2d532a157682f21e94ed5cae1 | 3,533 | ml | OCaml | src/uniform_array.ml | acatton/fork--janestreet--base | 41ec9567646519714dcfbceffaccb4f53425c6ab | [
"MIT"
] | null | null | null | src/uniform_array.ml | acatton/fork--janestreet--base | 41ec9567646519714dcfbceffaccb4f53425c6ab | [
"MIT"
] | null | null | null | src/uniform_array.ml | acatton/fork--janestreet--base | 41ec9567646519714dcfbceffaccb4f53425c6ab | [
"MIT"
] | null | null | null | open! Import
(* WARNING:
We use non-memory-safe things throughout the [Trusted] module.
Most of it is only safe in combination with the type signature (e.g. exposing
[val copy : 'a t -> 'b t] would be a big mistake). *)
module Trusted : sig
type 'a t
val empty : 'a t
val unsafe_create_uninitialized : l... | 29.940678 | 86 | 0.67195 |
af074fd252cce83c9032c79cab046a14c0fb5e1f | 93 | ml | OCaml | data/derived/comb/progs/unify/prog1151.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/prog1151.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1151.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let sqsum xs =
let f a x = (a * a) + x in let base = f 4 xs in List.fold_left f base xs;;
| 23.25 | 76 | 0.580645 |
f3d8065f31038d4a3b9976c40ea289b8c459fd2e | 817 | ml | OCaml | hphp/hack/src/typing/type_parameter_env.ml | swtaarrs/hhvm | dfb8867363623d7d02d03a64691610f1289ef5ad | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-02-04T22:07:59.000Z | 2021-02-04T22:07:59.000Z | hphp/hack/src/typing/type_parameter_env.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/type_parameter_env.ml | alisha/hhvm | 523dc33b444bd5b59695eff2b64056629b0ed523 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module TySet = Typing_set
type tparam_bounds = TySet.t
type tparam_info = {
lower_bounds : tparam_bounds;
upp... | 20.425 | 66 | 0.681763 |
af619eedd86d3808923abe2abc106d0c9b8ae6b7 | 4,683 | ml | OCaml | src/uploadQueue.ml | zarumaru/google-drive-ocamlfuse | 79a4aea495552cc17b6d0f448131bbf4176bb267 | [
"MIT"
] | 4,601 | 2015-01-01T08:14:52.000Z | 2022-03-30T08:39:09.000Z | src/uploadQueue.ml | zarumaru/google-drive-ocamlfuse | 79a4aea495552cc17b6d0f448131bbf4176bb267 | [
"MIT"
] | 677 | 2015-01-01T18:00:33.000Z | 2022-03-30T22:51:49.000Z | src/uploadQueue.ml | zarumaru/google-drive-ocamlfuse | 79a4aea495552cc17b6d0f448131bbf4176bb267 | [
"MIT"
] | 314 | 2015-01-27T03:16:50.000Z | 2022-03-25T08:04:25.000Z | open GapiLens.Infix
type t = {
stop_async_upload : bool;
upload_resource_by_id : int64 -> unit;
thread_pool : ThreadPool.t;
}
let stop_async_upload =
{
GapiLens.get = (fun x -> x.stop_async_upload);
GapiLens.set = (fun v x -> { x with stop_async_upload = v });
}
let upload_resource_by_id =
{
... | 31.857143 | 80 | 0.685031 |
af8648aae1e04a0a35a46d00494d92f8d6b84ca8 | 10,349 | ml | OCaml | ast_wrapper/ast_wrapper.ml | thierry-martinez/override | 8814efc841dc88ae295278768bd9db9d34472e0f | [
"BSD-2-Clause"
] | 3 | 2020-03-03T13:47:22.000Z | 2020-05-09T14:33:53.000Z | ast_wrapper/ast_wrapper.ml | thierry-martinez/override | 8814efc841dc88ae295278768bd9db9d34472e0f | [
"BSD-2-Clause"
] | 2 | 2021-03-04T17:37:43.000Z | 2021-09-22T13:05:25.000Z | ast_wrapper/ast_wrapper.ml | thierry-martinez/override | 8814efc841dc88ae295278768bd9db9d34472e0f | [
"BSD-2-Clause"
] | null | null | null | open Ppxlib
module type Ast_types = sig
type item
type module_binding
type module_expr
end
module Ast_definitions (Types : Ast_types) = struct
include Types
type contents = item list
type include_declaration = module_expr Parsetree.include_infos
type item_desc =
| Extension of Parsetree.extensi... | 33.063898 | 80 | 0.681515 |
af8f48956a2ca2d1d180e87034b75bbf79f260bd | 589 | ml | OCaml | ReWeb/ReWeb.ml | adrianmcli/re-web | f53cdb778c5a26135d7ea7c5290352b20d223749 | [
"MIT"
] | null | null | null | ReWeb/ReWeb.ml | adrianmcli/re-web | f53cdb778c5a26135d7ea7c5290352b20d223749 | [
"MIT"
] | null | null | null | ReWeb/ReWeb.ml | adrianmcli/re-web | f53cdb778c5a26135d7ea7c5290352b20d223749 | [
"MIT"
] | null | null | null | (** ReWeb - an ergonomic web framework. Start by looking at
{!module:Server} for an overview of the framework. See [bin/Main.re]
for an example server. *)
module Body = Body
(** Handle request and response bodies. *)
module Client = Client
(** Make web requests. *)
module Filter = Filter
(** Transform servic... | 22.653846 | 72 | 0.689304 |
af712798891caeacca153aef7f1207ffe5c62d5a | 3,216 | ml | OCaml | src/machdepenv.ml | rajshukla/Testgen | 8471ba24816842f694b3341486decf206d78e520 | [
"BSD-3-Clause"
] | 2 | 2017-02-15T23:36:49.000Z | 2018-09-11T09:34:14.000Z | src/machdepenv.ml | rajshukla/Testgen | 8471ba24816842f694b3341486decf206d78e520 | [
"BSD-3-Clause"
] | null | null | null | src/machdepenv.ml | rajshukla/Testgen | 8471ba24816842f694b3341486decf206d78e520 | [
"BSD-3-Clause"
] | 2 | 2015-10-15T07:41:09.000Z | 2019-10-08T12:55:13.000Z | open Machdep
module R = Str
module L = List
module H = Hashtbl
let preparse (s:string) : (string, string list) H.t =
let specTable = H.create 32 in
let commaRegexp = R.regexp "," in
let spaceRegexp = R.regexp "[ \t]+" in
let specRegexp = R.regexp "^\\([a-zA-Z_0-9]+\\)[ \t]*=\\(.*\\)$" in
let specs = R.split ... | 35.340659 | 77 | 0.701803 |
af49b63fdb2a86dc2b6c976d62d044ce5f6737dc | 837 | ml | OCaml | hphp/hack/src/utils/tmp.ml | yaslama/hhvm | 22887df5fd5e3f58652027800b5f4212e0af7c6c | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2015-07-28T23:53:32.000Z | 2015-07-31T15:17:21.000Z | hphp/hack/src/utils/tmp.ml | yaslama/hhvm | 22887df5fd5e3f58652027800b5f4212e0af7c6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/tmp.ml | yaslama/hhvm | 22887df5fd5e3f58652027800b5f4212e0af7c6c | [
"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.
*
*)
(***********... | 32.192308 | 80 | 0.575866 |
f3430480286ea882be9ac04a466c5a46466acdbb | 7,928 | ml | OCaml | data/derived/comb/progs/unify/prog4852.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/prog4852.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4852.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.604027 | 148 | 0.632694 |
af4ea2b4f8ebd725e48012a245ae28f268a4c50a | 238 | mli | OCaml | libraries/ec2/lib/describeScheduledInstances.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/describeScheduledInstances.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/describeScheduledInstances.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = DescribeScheduledInstancesRequest.t
type output = DescribeScheduledInstancesResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 21.636364 | 85 | 0.789916 |
af22f2f748946619d36f02addfc76df1c10850ce | 18,462 | mli | OCaml | lib/node/_gen/os.mli | tmattio/js-bindings | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 18 | 2021-04-14T02:52:09.000Z | 2021-11-14T17:08:09.000Z | lib/node/_gen/os.mli | tmattio/ocaml-ecmascript | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 4 | 2021-04-14T16:23:13.000Z | 2021-05-22T00:00:55.000Z | lib/node/_gen/os.mli | tmattio/ocaml-ecmascript | 109076fe682c84eb1cf01c7f38ee1f4163fb3a9a | [
"MIT"
] | 1 | 2021-04-14T15:29:24.000Z | 2021-04-14T15:29:24.000Z | [@@@ocaml.warning "-7-11-32-33-39"]
[@@@js.implem
[@@@ocaml.warning "-7-11-32-33-39"]
]
open Ts2ocaml_baselib
(*
unknown identifiers:
- Buffer
- BufferEncoding
- NodeJS.Dict<T1>
- NodeJS.Platform
*)
[@@@js.stop]
module type Missing = sig
module Buffer : sig
type t_0
val t_0_to_js: t_0 -> Ojs.t
... | 45.361179 | 181 | 0.614993 |
af8a73d7adf86f49f820ede29e8c0d8d7b58d1b8 | 311 | ml | OCaml | q37.ml | jiaowoshabi/99OCaml | 97d4109779e85b06702ce1c6e09df44a114a6dd0 | [
"MIT"
] | null | null | null | q37.ml | jiaowoshabi/99OCaml | 97d4109779e85b06702ce1c6e09df44a114a6dd0 | [
"MIT"
] | null | null | null | q37.ml | jiaowoshabi/99OCaml | 97d4109779e85b06702ce1c6e09df44a114a6dd0 | [
"MIT"
] | null | null | null | #use "q36.ml"
(* Naive power function. *)
let rec pow n p = if p < 1 then 1 else n * pow n (p-1);;
let phi_improved n =
let rec aux acc = function
| [] -> acc
| (t1, t2)::r -> aux (acc * (t1-1) * (pow t1 (t2-1))) r
in aux 1 (factors1 n)
let test0 = phi_improved 10 = 4;;
let test1 = phi_improved 13 = 12;; | 25.916667 | 56 | 0.581994 |
af19b923ad2ccc5f39e04b2cbe6292def49a053b | 30,523 | ml | OCaml | src/proto_006_PsCARTHA/lib_client/injection.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_006_PsCARTHA/lib_client/injection.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_006_PsCARTHA/lib_client/injection.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 36.554491 | 81 | 0.597484 |
af3a23e7ef77d07b4ac3b2cdfc19d2197f8ffa25 | 5,123 | ml | OCaml | src_top/screen_base.ml | bauereiss/rmem | 2883d4f5ddb4869fc6ccb1eb1d629bdefff34459 | [
"BSD-2-Clause"
] | null | null | null | src_top/screen_base.ml | bauereiss/rmem | 2883d4f5ddb4869fc6ccb1eb1d629bdefff34459 | [
"BSD-2-Clause"
] | null | null | null | src_top/screen_base.ml | bauereiss/rmem | 2883d4f5ddb4869fc6ccb1eb1d629bdefff34459 | [
"BSD-2-Clause"
] | null | null | null | (*===============================================================================*)
(* *)
(* rmem executable model *)
(* ===================== ... | 40.338583 | 140 | 0.535819 |
f3c11dbe459d4e2387e740741e3c38cdffde0bf2 | 514 | ml | OCaml | data/derived/comb/progs/unify/prog3323.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/prog3323.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3323.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 -> Printf.sprintf "x"
| VarY -> Printf.sprintf "y"
| Sine x -> Printf.sprintf "sin(pi*%s)" x
| Cosine x ->... | 25.7 | 62 | 0.570039 |
af8d93a19500dbc793d73007b1b05136e7311965 | 6,702 | mli | OCaml | src/terms/type.mli | daniel-larraz/kind2 | 168918803d5f834676c1d328573ee32b2bedee6e | [
"Apache-2.0"
] | 62 | 2015-02-04T17:49:51.000Z | 2022-03-19T21:52:06.000Z | src/terms/type.mli | daniel-larraz/kind2 | 168918803d5f834676c1d328573ee32b2bedee6e | [
"Apache-2.0"
] | 110 | 2015-01-20T14:26:17.000Z | 2022-03-22T02:25:49.000Z | src/terms/type.mli | daniel-larraz/kind2 | 168918803d5f834676c1d328573ee32b2bedee6e | [
"Apache-2.0"
] | 25 | 2017-02-20T21:13:55.000Z | 2021-07-20T19:46:09.000Z | (* This file is part of the Kind 2 model checker.
Copyright (c) 2015 by the Board of Trustees of the University of Iowa
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.a... | 25.195489 | 76 | 0.674276 |
f3cf4dbc687aac82f06537413525e9100f3e1e96 | 262 | ml | OCaml | code/files-modules-and-programs-freq-median/use_median_2.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 328 | 2015-01-08T13:55:08.000Z | 2022-03-11T12:56:04.000Z | code/files-modules-and-programs-freq-median/use_median_2.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 17 | 2015-01-04T00:26:01.000Z | 2018-05-31T08:16:44.000Z | code/files-modules-and-programs-freq-median/use_median_2.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 83 | 2015-01-21T15:07:56.000Z | 2022-03-11T12:56:08.000Z | open Core.Std
(* part 1 *)
let print_median m =
let module C = Counter in
match m with
| C.Median string -> printf "True median:\n %s\n" string
| C.Before_and_after (before, after) ->
printf "Before and after median:\n %s\n %s\n" before after
| 26.2 | 66 | 0.645038 |
af4f62ef71c0ea5944ac840c38513599682d7dde | 3,342 | ml | OCaml | data/fa15/0492.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/0492.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/0492.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let len1 = List.length l1 in
let len2 = List.length l2 in
if len1 > len2
then (l1, ((clone 0 (len1 - len2)) @ l2))
else (((clone 0 (len2 - len1)) @ l1), l2);;
let rec removeZero l =
match l with | [] -> [] | 0::t -> r... | 18.064865 | 76 | 0.496709 |
f382acd89132f7b3fd35d4619e8d96f0c1219c4d | 4,964 | ml | OCaml | example/workers_as_masters.ml | Cjen1/rpc_parallel | a96c725d3b350d755fafe3d5ff4ac60953c3224f | [
"MIT"
] | 38 | 2015-01-16T12:36:12.000Z | 2021-12-17T02:45:33.000Z | example/workers_as_masters.ml | Cjen1/rpc_parallel | a96c725d3b350d755fafe3d5ff4ac60953c3224f | [
"MIT"
] | 8 | 2015-07-12T17:17:56.000Z | 2021-06-18T19:25:34.000Z | example/workers_as_masters.ml | Cjen1/rpc_parallel | a96c725d3b350d755fafe3d5ff4ac60953c3224f | [
"MIT"
] | 10 | 2017-05-10T18:57:34.000Z | 2021-12-17T02:48:10.000Z | open Core
open Async
(* An example demonstrating how workers can themselves act as masters and spawn more
workers. We have two layers of workers, where the first layer spawns the workers of the
second layer. *)
module Secondary_worker = struct
module T = struct
type 'worker functions = { ping : ('worker, ... | 32.025806 | 90 | 0.609388 |
af1deec75fe7a4608a4017f1b65eecdfc2111944 | 2,551 | ml | OCaml | src/lib_lwt_result_stdlib/traced/sigs/map.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_lwt_result_stdlib/traced/sigs/map.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_lwt_result_stdlib/traced/sigs/map.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 63.775 | 79 | 0.523716 |
af22edfafed68ad20623b2de82d0257fd2bc2eab | 7,797 | ml | OCaml | src/stages/5-ast_typed/PP_annotated.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 1 | 2021-11-12T11:41:16.000Z | 2021-11-12T11:41:16.000Z | src/stages/5-ast_typed/PP_annotated.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | src/stages/5-ast_typed/PP_annotated.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | [@@@coverage exclude_file]
open Types
open Format
open PP_helpers
include Stage_common.PP
let lmap_sep value sep ppf m =
let lst = List.sort ~compare:(fun (Label a,_) (Label b,_) -> String.compare a b) m in
let new_pp ppf (k, v) = fprintf ppf "@[<h>%a -> %a@]" label k value v in
fprintf ppf "%a" (list_sep new_pp... | 42.375 | 132 | 0.681031 |
af8e6860e9a6b2158f195e145e03177988465843 | 874 | mli | OCaml | lib/fir_gen/src/atomic_load.mli | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 7 | 2018-11-27T23:53:58.000Z | 2020-11-22T11:56:16.000Z | lib/fir_gen/src/atomic_load.mli | MattWindsor91/act | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 235 | 2018-10-03T16:37:36.000Z | 2020-11-22T16:26:51.000Z | lib/fir_gen/src/atomic_load.mli | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 1 | 2018-11-13T16:43:19.000Z | 2018-11-13T16:43:19.000Z | (* This file is part of c4f.
Copyright (c) 2018-2022 C4 Project
c4t itself is licensed under the MIT License. See the LICENSE file in the
project root for more information.
Parts of c4t are based on code from the Herdtools7 project
(https://github.com/herd/herdtools7) : see the LICENSE.herd file in th... | 31.214286 | 76 | 0.724256 |
af74b6d427f66e353563217f8b4a15ca93610360 | 83 | ml | OCaml | bench/simples/apply.ml | lsylvestre/dsml | 0f55c8acdc2b959d866610e51bc45db306898231 | [
"CECILL-B"
] | null | null | null | bench/simples/apply.ml | lsylvestre/dsml | 0f55c8acdc2b959d866610e51bc45db306898231 | [
"CECILL-B"
] | null | null | null | bench/simples/apply.ml | lsylvestre/dsml | 0f55c8acdc2b959d866610e51bc45db306898231 | [
"CECILL-B"
] | null | null | null | circuit s(n) =
let id(a) = a in
let apply(f,x) = f(x) in
apply(id,n)
;;;;
| 11.857143 | 27 | 0.481928 |
af586d59ef6472bd799c98f4d88a6a0362a0e9bd | 8,527 | ml | OCaml | data/derived/comb/progs/unify/prog7721.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/prog2923.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2923.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 26.814465 | 148 | 0.67597 |
f3a46aa97b129441d2c0ddf49e207d2a583c453b | 88,828 | ml | OCaml | trained/NYSE-MS-day-2015-01-14-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2015-01-14-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | null | null | null | trained/NYSE-MS-day-2015-01-14-basic.ml | ReyderOlarte/Fintech_AutoStock | 59dba40d1cbc056739af33145b4b24682374e23a | [
"MIT"
] | 2 | 2020-05-03T11:14:09.000Z | 2021-11-18T10:26:30.000Z | [BASIC]
[BASIC:PARAMS]
[BASIC:NETWORK]
beginTraining=0
connectionLimit=0
contextTargetOffset=0,0,0
contextTargetSize=0,0,0
endTraining=2
hasContext=f
inputCount=180
layerCounts=4,37,181
layerFeedCounts=4,36,180
layerContextCount=0,0,0
layerIndex=0,4,41
output=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,... | 2,960.933333 | 27,030 | 0.824368 |
af8a5bf7dd1a150f76ab78223e7caef0df0557bd | 3,542 | mli | OCaml | source/analysis/resolution.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | 1 | 2022-02-10T10:51:32.000Z | 2022-02-10T10:51:32.000Z | source/analysis/resolution.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/analysis/resolution.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"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.
*)
open Ast
type t [@@deriving show]
type resolve_statement_result_t =
| Unreachable
| Reachable of {
resolution: t;
... | 27.457364 | 99 | 0.718803 |
f3655b8fb7b91f8d1808e79c578f46f2cbb7ebbc | 4,901 | mli | OCaml | CodeHawk/CHJ/jchpoly/jCHAnalysisUtils.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CHJ/jchpoly/jCHAnalysisUtils.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CHJ/jchpoly/jCHAnalysisUtils.mli | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk Java Analyzer
Author: Anca Browne
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2005-2020 Kestrel Technology LLC
Permission is hereby grante... | 36.036765 | 83 | 0.722506 |
f3b3a50acac43fa6ab25b717fa4a570ce2ef9fcb | 138 | ml | OCaml | tests/frontend/expect/desugaring/print_desugared_ast.ml | paulocoghi/bolt | a81627f95af6577cd465df09290a51c9d469c667 | [
"MIT"
] | 305 | 2020-05-08T11:09:53.000Z | 2022-03-19T18:43:58.000Z | tests/frontend/expect/desugaring/print_desugared_ast.ml | lqwu/bolt | 1faf19d698852fdb6af2ee005a5f036ee1c76503 | [
"MIT"
] | 53 | 2019-11-10T13:46:46.000Z | 2022-02-04T17:20:15.000Z | tests/frontend/expect/desugaring/print_desugared_ast.ml | lqwu/bolt | 1faf19d698852fdb6af2ee005a5f036ee1c76503 | [
"MIT"
] | 33 | 2020-05-09T00:35:53.000Z | 2022-03-14T21:10:25.000Z | open Compile_program_ir
let print_desugared_ast input_str =
compile_program_ir (Lexing.from_string input_str) ~should_pprint_dast:true
| 27.6 | 76 | 0.862319 |
f3f69f01d88c4c00c3f7e005fe99dc2da5adae4c | 2,290 | ml | OCaml | hphp/hack/src/typing/tast_check/class_parent_check.ml | gaurav1086/hhvm | 44b0edc7a9186a4ccc04ecbba0f5cf52619d37e0 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/hack/src/typing/tast_check/class_parent_check.ml | ecreeth/hhvm | 743948904dcf31985e25f68258f7afcd36d2b228 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/class_parent_check.ml | ecreeth/hhvm | 743948904dcf31985e25f68258f7afcd36d2b228 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
module Env = Tast_env
module Cls = Decl_provider.Class
let check_is_class env (p, h) =
... | 30.945946 | 80 | 0.647162 |
d2e1dabc73554cf180628db45602babb19217433 | 8,340 | ml | OCaml | test/irmin-pack/multiple_instances.ml | kluvin/irmin | 39cf6dcadebe6994b2972cf1f7cf8be31d396eac | [
"0BSD"
] | null | null | null | test/irmin-pack/multiple_instances.ml | kluvin/irmin | 39cf6dcadebe6994b2972cf1f7cf8be31d396eac | [
"0BSD"
] | null | null | null | test/irmin-pack/multiple_instances.ml | kluvin/irmin | 39cf6dcadebe6994b2972cf1f7cf8be31d396eac | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2018-2021 Tarides <contact@tarides.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AN... | 34.605809 | 81 | 0.635012 |
f3b8945115cf4e6c9f166ba3de7ceef4437ff415 | 922 | ml | OCaml | lib/handlers/event_handler.ml | tmattio/dream-analytics | 32a3e9eb2fca3e7102ad1d87ebc617c3bd717eaf | [
"0BSD"
] | 9 | 2021-05-03T16:59:12.000Z | 2022-01-07T16:55:51.000Z | lib/handlers/event_handler.ml | tmattio/dream-analytics | 32a3e9eb2fca3e7102ad1d87ebc617c3bd717eaf | [
"0BSD"
] | null | null | null | lib/handlers/event_handler.ml | tmattio/dream-analytics | 32a3e9eb2fca3e7102ad1d87ebc617c3bd717eaf | [
"0BSD"
] | null | null | null | let event (config : Config.t) req =
let (module Repo : Store.S) = config.Config.store in
let parse_event params =
let json = Yojson.Safe.from_string params in
let open Yojson.Safe.Util in
let name = member "n" json |> to_string in
let url = member "u" json |> to_string in
let referrer = member "... | 34.148148 | 76 | 0.646421 |
f382722f76d4f024a73439a4c73005f344beda36 | 253 | ml | OCaml | src/glue/database.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 24 | 2019-04-13T21:09:47.000Z | 2022-03-28T10:43:52.000Z | src/glue/database.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 5 | 2019-10-21T08:15:39.000Z | 2020-03-12T08:41:58.000Z | src/glue/database.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 1 | 2020-03-12T08:24:13.000Z | 2020-03-12T08:24:13.000Z | type _ t = string
let path database = Filename.concat "." database
let projects = "projects"
let sectors = "lexicons/sectors.qube"
let logs = "logs"
let stories = "content"
let twtxt = "feeds/twtxt"
let tasks = "logs/tasks"
let galleries = "galleries"
| 23 | 48 | 0.715415 |
f3461043a13c2ebd0df6d83daf756f4161548046 | 1,555 | mli | OCaml | test_native/_opam/lib/ocaml/compiler-libs/simplify_boxed_integer_ops.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | test_native/_opam/lib/ocaml/compiler-libs/simplify_boxed_integer_ops.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | test_native/_opam/lib/ocaml/compiler-libs/simplify_boxed_integer_ops.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 53.62069 | 79 | 0.379421 |
af1d0a83d42e85f9a40becf8ac5d24ebb55fd8d6 | 662 | ml | OCaml | benchmarks/formula/formula1/submissions/sub5.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/formula/formula1/submissions/sub5.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/formula/formula1/submissions/sub5.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type formula = TRUE
| FALSE
| NOT of formula
| ANDALSO of formula * formula
| ORELSE of formula * formula
| IMPLY of formula * formula
| LESS of expr * expr
and expr = NUM of int
| PLUS of expr * expr
| MINUS of expr * expr
let rec eval f =
let rec cal e =
match e with
NUM i -> i
| PLUS ... | 25.461538 | 48 | 0.540785 |
f3d8479465ce6249b99f4c4915cbf826caf0543b | 101,753 | ml | OCaml | src/typing/ty_normalizer.ml | radex/flow | 803afdc9990c4bdc3d489ec498f2b032fa7b2c08 | [
"MIT"
] | null | null | null | src/typing/ty_normalizer.ml | radex/flow | 803afdc9990c4bdc3d489ec498f2b032fa7b2c08 | [
"MIT"
] | null | null | null | src/typing/ty_normalizer.ml | radex/flow | 803afdc9990c4bdc3d489ec498f2b032fa7b2c08 | [
"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 Utils_js
open Reason
open Loc_collections
module Env = Ty_normalizer_env
module T = Type
module VSet = ISet
module File_sig = ... | 39.731745 | 100 | 0.592602 |
af1ff5cad8ab8dd8ee9e4710511d2b15b2f65ed5 | 6,640 | ml | OCaml | src/typing/subst.ml | ostera/flow | 5006818684fe3210edb57c07fbb978287fdd225f | [
"MIT"
] | 1 | 2019-07-15T20:48:46.000Z | 2019-07-15T20:48:46.000Z | src/typing/subst.ml | wgao19/flow | 8e6b768fd787c5a1b5f7025fbf8b3b00111671de | [
"MIT"
] | null | null | null | src/typing/subst.ml | wgao19/flow | 8e6b768fd787c5a1b5f7025fbf8b3b00111671de | [
"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 Type
open Reason
(*****************)
(* substitutions *)
(*****************)
(** Substitute bound type variables with associ... | 40.487805 | 109 | 0.617018 |
af626eb1e99a5673c66a3f61bb08a78f40204522 | 1,199 | ml | OCaml | camlp5/records/pa_records.ml | mjambon/mjambon2016 | bd644e0a42cacba56d0260982614d1ef5c8305b3 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-11-02T04:11:52.000Z | 2020-11-02T04:11:52.000Z | camlp5/records/pa_records.ml | mjambon/mjambon2016 | bd644e0a42cacba56d0260982614d1ef5c8305b3 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | camlp5/records/pa_records.ml | mjambon/mjambon2016 | bd644e0a42cacba56d0260982614d1ef5c8305b3 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | let make_record_expr loc l =
let fields =
List.map (fun ((loc, name, mut, t), default) ->
(<:patt< $lid:name$ >>, <:expr< $lid:name$ >>)) l in
<:expr< { $list:fields$ } >>
let expand_record loc type_name l =
let type_def =
let fields = List.map fst l in
<:str_item< type $lid:type_name$ = { $list:... | 29.243902 | 79 | 0.542952 |
af6ad0b213e9573fee1d4f904a1a0dae3f4dd94e | 1,293 | ml | OCaml | clients/ocaml/generated/src/models/pipelinelatest_run.ml | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/ocaml/generated/src/models/pipelinelatest_run.ml | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/ocaml/generated/src/models/pipelinelatest_run.ml | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | (*
* This file has been generated by the OCamlClientCodegen generator for openapi-generator.
*
* Generated by: https://openapi-generator.tech
*
*)
type t = {
artifacts: Pipelinelatest_runartifacts.t list;
duration_in_millis: int32 option [@default None];
estimated_duration_in_millis: int32 option [@de... | 29.386364 | 90 | 0.668987 |
af7f28eb2a41ce6f0b61e304c1090004f59ecfc6 | 8,088 | ml | OCaml | src/solvers/sLRterm.ml | vootelerotov/goblint-fork | 1aa04505362d2a89ab40fc1d0499afac09472d7b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/solvers/sLRterm.ml | vootelerotov/goblint-fork | 1aa04505362d2a89ab40fc1d0499afac09472d7b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/solvers/sLRterm.ml | vootelerotov/goblint-fork | 1aa04505362d2a89ab40fc1d0499afac09472d7b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | open Prelude
open Analyses
open Constraints
open Messages
open SLR
(** the terminating SLR3 box solver *)
module SLR3term =
functor (S:EqConstrSys) ->
functor (HM:Hash.H with type key = S.v) ->
struct
include Generic.SolverStats (S)
module VS = Set.Make (S.Var)
module P =
struct
type t = ... | 34.862069 | 150 | 0.517928 |
f3ce9f5e4b86a20d829905b61c9932861c70b076 | 20,643 | ml | OCaml | template-coq/src/run_template_monad.ml | liesnikov/metacoq | d834b58cd4c6b3aad77bf21fed7914ffc71d79f3 | [
"MIT"
] | null | null | null | template-coq/src/run_template_monad.ml | liesnikov/metacoq | d834b58cd4c6b3aad77bf21fed7914ffc71d79f3 | [
"MIT"
] | null | null | null | template-coq/src/run_template_monad.ml | liesnikov/metacoq | d834b58cd4c6b3aad77bf21fed7914ffc71d79f3 | [
"MIT"
] | null | null | null | open CErrors
open Univ
open Entries
open Names
open Redops
open Genredexpr
open Pp (* this adds the ++ to the current scope *)
open Tm_util
open Quoter
open Denote
open Constr_quoter
open Template_monad
open Constr_denoter
open CoqLiveDenoter
open TemplateCoqQuoter
let unquote_reduction_strategy env evm trm (* of t... | 43.642706 | 166 | 0.65412 |
af4d4b1f638c0309b4640efa18785dd48e0c0a69 | 8,341 | ml | OCaml | data/derived/comb/progs/unify/prog1508.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/prog1508.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1508.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... | 24.973054 | 148 | 0.627143 |
af635eea5579468d620a8c3ffd787c3235e82319 | 4,482 | ml | OCaml | lib/mirage/mirage_configure_xen.ml | nandor/mirage | 648938ee5a8fd89aa231a01422f80ec3d553d41a | [
"0BSD"
] | null | null | null | lib/mirage/mirage_configure_xen.ml | nandor/mirage | 648938ee5a8fd89aa231a01422f80ec3d553d41a | [
"0BSD"
] | null | null | null | lib/mirage/mirage_configure_xen.ml | nandor/mirage | 648938ee5a8fd89aa231a01422f80ec3d553d41a | [
"0BSD"
] | null | null | null | open Astring
open Functoria
module Log = Mirage_impl_misc.Log
(* We generate an example .xl with common defaults, and a generic
.xl.in which has @VARIABLES@ which must be substituted by sed
according to the preferences of the system administrator.
The common defaults chosen for the .xl file will be based on ... | 33.954545 | 85 | 0.594601 |
af7c3f122a7173c54132ee3ffdf64b4cda2e4d12 | 2,742 | mli | OCaml | benchmarks/lexifi-g2pp/math.mli | dinosaure/sandmark | 41c5f1276771ebe2651f5de8f7d9efdd36856d93 | [
"CC0-1.0"
] | 48 | 2019-07-24T13:03:03.000Z | 2022-01-25T21:02:32.000Z | benchmarks/lexifi-g2pp/math.mli | dinosaure/sandmark | 41c5f1276771ebe2651f5de8f7d9efdd36856d93 | [
"CC0-1.0"
] | 196 | 2019-06-11T10:44:20.000Z | 2022-03-31T17:25:31.000Z | benchmarks/lexifi-g2pp/math.mli | dinosaure/sandmark | 41c5f1276771ebe2651f5de8f7d9efdd36856d93 | [
"CC0-1.0"
] | 25 | 2019-06-13T13:40:51.000Z | 2022-03-29T17:18:57.000Z | (***************************************************************************)
(* Copyright (C) 2000-2013 LexiFi SAS. All rights reserved. *)
(* *)
(* This program is free software: you can redistribute it and/or modify *)
(* it un... | 54.84 | 116 | 0.557987 |
f3ff600bde4f3bb254204f2d9b228d4b56c1bdb1 | 56,567 | ml | OCaml | bindings/ocaml/llvm/llvm.ml | ardhipoetra/llvm | 124d95430a12aa6671e64478fb7f0361d1d2d1ab | [
"Apache-2.0"
] | 4,812 | 2015-01-02T19:38:10.000Z | 2022-03-27T12:42:24.000Z | bindings/ocaml/llvm/llvm.ml | ardhipoetra/llvm | 124d95430a12aa6671e64478fb7f0361d1d2d1ab | [
"Apache-2.0"
] | 127 | 2015-12-03T21:42:53.000Z | 2019-11-21T14:34:20.000Z | bindings/ocaml/llvm/llvm.ml | ardhipoetra/llvm | 124d95430a12aa6671e64478fb7f0361d1d2d1ab | [
"Apache-2.0"
] | 2,543 | 2015-01-01T11:18:36.000Z | 2022-03-22T21:32:36.000Z | (*===-- llvm/llvm.ml - LLVM OCaml Interface -------------------------------===*
*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*===----------------------------... | 40.754323 | 100 | 0.64405 |
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.