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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bc668c1f0d0f7e7bb8dde022acaf4167f1d5c838 | 3,219 | ml | OCaml | lib/main.ml | dune-universe/mirage-xen | c32e520ea69c67b60c8312b98e2780df30490d4f | [
"ISC"
] | null | null | null | lib/main.ml | dune-universe/mirage-xen | c32e520ea69c67b60c8312b98e2780df30490d4f | [
"ISC"
] | 1 | 2019-11-01T18:54:08.000Z | 2019-11-01T18:54:08.000Z | lib/main.ml | dinosaure/mirage-xen | c32e520ea69c67b60c8312b98e2780df30490d4f | [
"ISC"
] | 1 | 2019-10-18T13:40:12.000Z | 2019-10-18T13:40:12.000Z | (* Lightweight thread library for Objective Caml
* http://www.ocsigen.org/lwt
* Module Lwt_main
* Copyright (C) 2009 Jérémie Dimino
* Copyright (C) 2010 Anil Madhavapeddy <anil@recoil.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Publ... | 35.373626 | 113 | 0.655794 |
bcf0fcf70bcb7d52c420125ff968d488f240728f | 7,693 | ml | OCaml | src/applicative_signatures_intf.ml | janestreet/accessor | fa4bdf1b7853f894d5c239b557af32de575b12e3 | [
"MIT"
] | 32 | 2020-02-17T14:38:15.000Z | 2022-02-02T20:16:11.000Z | src/applicative_signatures_intf.ml | janestreet/accessor | fa4bdf1b7853f894d5c239b557af32de575b12e3 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/applicative_signatures_intf.ml | janestreet/accessor | fa4bdf1b7853f894d5c239b557af32de575b12e3 | [
"MIT"
] | 3 | 2020-02-28T17:58:18.000Z | 2021-12-17T02:53:34.000Z | open! Base
open! Import
open Subtyping
module type Applicative_general = sig
type ('inner, 'outer, 'kind) accessor
type 'a optional_args
type ('a, 'd, 'e) t
val map
: ((unit -> 'a -> 'b, unit -> 'at -> 'bt, [> many ]) accessor
-> 'at
-> f:('a -> ('b, 'd, 'e) t)
-> ('bt, 'd, 'e) t)
... | 25.989865 | 90 | 0.465228 |
bc119fcb6d2fa5b69837dc67caddade71a0a87e2 | 2,677 | mli | OCaml | source/analysis/typeCheck.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | 1 | 2022-02-10T10:51:32.000Z | 2022-02-10T10:51:32.000Z | source/analysis/typeCheck.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/analysis/typeCheck.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
open Statement
module Error = AnalysisError
module LocalErrorMap : sig
type t
val empty : unit -> t
val all_err... | 24.787037 | 83 | 0.740007 |
8aa47a14a376ccd6cbd9f1c0b235bfbaae3fed37 | 16,617 | ml | OCaml | analysis/src/vendor/compiler-libs-406/typedtree.ml | tsnobip/rescript-vscode | 7ab2d231f91fee2f93cbf6cae1b38f94c06a58c1 | [
"MIT"
] | 428 | 2018-10-02T08:15:16.000Z | 2020-05-25T06:20:02.000Z | analysis/src/vendor/compiler-libs-406/typedtree.ml | tsnobip/rescript-vscode | 7ab2d231f91fee2f93cbf6cae1b38f94c06a58c1 | [
"MIT"
] | 262 | 2020-08-28T12:34:25.000Z | 2022-03-29T17:54:12.000Z | analysis/src/vendor/compiler-libs-406/typedtree.ml | tsnobip/rescript-vscode | 7ab2d231f91fee2f93cbf6cae1b38f94c06a58c1 | [
"MIT"
] | 30 | 2020-08-26T15:32:33.000Z | 2022-02-04T23:43:05.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 29.152632 | 80 | 0.675814 |
44db850628d875634e59d24970f96c662b09403c | 4,784 | ml | OCaml | src/dune/ocamldep.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 11 | 2020-11-25T14:23:49.000Z | 2021-07-22T07:45:09.000Z | src/dune/ocamldep.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2021-05-21T15:34:59.000Z | 2021-05-21T15:34:59.000Z | src/dune/ocamldep.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2020-11-25T12:01:04.000Z | 2020-11-25T12:01:04.000Z | open! Stdune
open Import
open Build.O
module CC = Compilation_context
module SC = Super_context
let parse_module_names ~(unit : Module.t) ~modules words =
List.filter_map words ~f:(fun m ->
let m = Module_name.of_string m in
Modules.find_dep modules ~of_:unit m)
let parse_deps_exn ~file lines =
let in... | 35.437037 | 80 | 0.62939 |
bce3238b5c73e59e86905104b27eb6cf002fe73e | 2,468 | ml | OCaml | compiler/opalang/opaTracker.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | compiler/opalang/opaTracker.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | compiler/opalang/opaTracker.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 58 | 2015-01-02T23:57:42.000Z | 2022-03-02T12:44:42.000Z | (*
Copyright © 2011 MLstate
This file is part of Opa.
Opa is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
Opa is distributed in the hope that it will be useful, but WI... | 29.035294 | 78 | 0.686386 |
bca61e7d73484bc66510a738376f272c8cc97739 | 144 | ml | OCaml | libhsem/lib/apply_bindings.ml | cogumbreiro/hj-coq | 2e7b1be0e25e53b4c6aba20a45700d6c743d7ce2 | [
"BSD-2-Clause"
] | 4 | 2018-01-21T04:49:37.000Z | 2020-08-18T04:26:50.000Z | libhsem/lib/apply_bindings.ml | cogumbreiro/habanero-coq | 2e7b1be0e25e53b4c6aba20a45700d6c743d7ce2 | [
"BSD-2-Clause"
] | null | null | null | libhsem/lib/apply_bindings.ml | cogumbreiro/habanero-coq | 2e7b1be0e25e53b4c6aba20a45700d6c743d7ce2 | [
"BSD-2-Clause"
] | null | null | null | (** Apply the Stubs functor to the generated bindings to link the generated
code into the library. *)
include Bindings.Stubs(Hsem_bindings)
| 36 | 75 | 0.770833 |
44e43fe0d269ce35effbe108db4570d2b6d0abcf | 16,066 | ml | OCaml | src/dune_rules/dune_package.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 245 | 2016-12-02T14:13:32.000Z | 2018-01-14T20:00:40.000Z | src/dune_rules/dune_package.ml | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 380 | 2017-01-28T18:46:52.000Z | 2018-01-17T13:34:51.000Z | src/dune_rules/dune_package.ml | staronj/dune | cf0ceccef1e177625b9361323bd7a3401a988d45 | [
"MIT"
] | 59 | 2016-12-02T13:58:19.000Z | 2018-01-06T18:23:02.000Z | open Import
module Vfile = Dune_lang.Versioned_file.Make (struct
type t = unit
end)
let fn = "dune-package"
module Lib = struct
type t =
{ info : Path.t Lib_info.t
; modules : Modules.t option
; main_module_name : Module_name.t option
}
let make ~info ~main_module_name ~modules =
let obj_d... | 36.596811 | 80 | 0.658222 |
bce8ac4b22959c1f0e66bfe2e474caf042b44156 | 794 | ml | OCaml | result/func/lambda/sub17/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/func/lambda/sub17/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/func/lambda/sub17/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type var = string
type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
let rec checkName ((n : string), (mtr : lambda)) : bool =
match mtr with
| V s -> if n = s then true else false
| P (n1, mtr1) -> checkName (n1, mtr1)
| C (m1, m2) -> (
match (m1, m2) with
| _, P (nm1, mt1) -> ... | 31.76 | 69 | 0.549118 |
bcf0f9636bde1f1add3f62b274b374b6d5454567 | 477 | ml | OCaml | benchmarks/C/lambda/sol220.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/lambda/sol220.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/lambda/sol220.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda =
V of var
| P of var * lambda
| C of lambda * lambda
and var =
string
let check(lambda: lambda): bool =
let rec checkInternal((lambda:lambda), (validNames: var list)) =
match lambda with
V(id) ->
List.mem id validNames
| P(id, lambda) ->
checkInternal(lambda, id :: vali... | 25.105263 | 66 | 0.628931 |
bc8dbd3b08057dfcf094e4c9307484e2765bc045 | 945 | ml | OCaml | tests/bitsize.ml | maelvls/ocamlyices2 | 554893d467a4bf3e9b0b630833b417348b15e771 | [
"0BSD"
] | 2 | 2017-04-05T13:53:54.000Z | 2018-11-23T00:16:01.000Z | tests/bitsize.ml | maelvalais/ocamlyices2 | 554893d467a4bf3e9b0b630833b417348b15e771 | [
"0BSD"
] | 5 | 2017-04-07T14:29:10.000Z | 2021-01-08T18:01:46.000Z | tests/bitsize.ml | maelvalais/ocamlyices2 | 554893d467a4bf3e9b0b630833b417348b15e771 | [
"0BSD"
] | 1 | 2017-04-05T16:58:14.000Z | 2017-04-05T16:58:14.000Z | open Yices2
open OUnit2
let bitsize _ =
let bv1 = Term.Bitvector.zero 5 in
let i64 = Term.Int.of_int64 64L in
OUnit2.assert_bool "is_bitvector bv1" (Term.is_bitvector bv1);
OUnit2.assert_bool "is_bitvector i64" (not (Term.is_bitvector i64));
OUnit2.assert_equal 5 (Term.bitsize bv1);
OUnit2.assert_equal 5... | 30.483871 | 87 | 0.701587 |
bcd62d4ea63f4897d988ad8b6f7f04f231b21d57 | 5,352 | ml | OCaml | hphp/hack/src/typing/typing_special_fun.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_special_fun.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_special_fun.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"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 Core_kernel
open Typing_defs
module SN = Naming_special_names
module MakeType = Typing_make_type
module TUtils ... | 34.089172 | 94 | 0.580717 |
bc133bc1d834f81c1aa88adf33f78d94c19964aa | 6,945 | ml | OCaml | src/bin_snoop/latex/lib/latex_pp.ml | zshipko/tezos | c097112b0c0f19d93a8de4cc379cf33de9e07355 | [
"MIT"
] | null | null | null | src/bin_snoop/latex/lib/latex_pp.ml | zshipko/tezos | c097112b0c0f19d93a8de4cc379cf33de9e07355 | [
"MIT"
] | null | null | null | src/bin_snoop/latex/lib/latex_pp.ml | zshipko/tezos | c097112b0c0f19d93a8de4cc379cf33de9e07355 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019 Nomadic Labs <contact@tezos.com> *)
... | 34.552239 | 80 | 0.564867 |
bce7035d2ca1fc413759e038dd6ba1b7be88c2c7 | 319 | ml | OCaml | week3/colors.ml | axhixh/ocamlmooc | 98409aaed94411733da531b8664fba3f9f302e7b | [
"MIT"
] | null | null | null | week3/colors.ml | axhixh/ocamlmooc | 98409aaed94411733da531b8664fba3f9f302e7b | [
"MIT"
] | null | null | null | week3/colors.ml | axhixh/ocamlmooc | 98409aaed94411733da531b8664fba3f9f302e7b | [
"MIT"
] | 2 | 2018-11-18T19:58:51.000Z | 2019-12-15T21:20:40.000Z | (* prelude
type color = Black | Gray | White;;
*)
let lighter c1 c2 =
match (c1, c2) with
| (Black, Black) -> false
| (White, White) -> false
| (Gray, Gray) -> false
| (Black, _) -> true
| (_, White) -> true
| (White, Gray) -> false
| (Gray, Black) -> false
| (White, Black) -> false
;;
| 19.9375 | 36 | 0.510972 |
44855dc0858fe7ffb8b96bfef024f68b82bbc993 | 17,663 | ml | OCaml | lib/bap_core_theory/bap_core_theory_target.ml | thestr4ng3r/bap | 79dc0479a190ba56ad04525b78fb0fd7ebad24ce | [
"MIT"
] | 1,697 | 2015-01-09T07:17:41.000Z | 2022-03-26T17:48:05.000Z | lib/bap_core_theory/bap_core_theory_target.ml | thestr4ng3r/bap | 79dc0479a190ba56ad04525b78fb0fd7ebad24ce | [
"MIT"
] | 685 | 2015-01-10T21:32:42.000Z | 2022-03-23T23:44:53.000Z | lib/bap_core_theory/bap_core_theory_target.ml | thestr4ng3r/bap | 79dc0479a190ba56ad04525b78fb0fd7ebad24ce | [
"MIT"
] | 294 | 2015-01-10T15:51:57.000Z | 2022-03-20T05:37:22.000Z | let package = "core"
open Core_kernel
open Bap_knowledge
module KB = Knowledge
module Var = Bap_core_theory_var
module Val = Bap_core_theory_value
module Mem = Val.Mem
module Bitv = Val.Bitv
module Sort = Val.Sort
module Name = KB.Name
module Endianness = struct
include KB.Enum.Make()
let le = declare ~package "... | 29.003284 | 78 | 0.618808 |
4468514f883b9f0f6abbd4f63740b05348cabefe | 41 | ml | OCaml | exercises/01_08-only_one/template.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/01_08-only_one/template.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | exercises/01_08-only_one/template.ml | acamanes/ocaml-public | 244d8874b472bb61aef598e06723903eb58bfec0 | [
"CC0-1.0"
] | null | null | null | let rec sum x y = failwith "Your answer"
| 20.5 | 40 | 0.707317 |
bca83daeada1a80924204cdb83ae69d370b29a3b | 21,255 | ml | OCaml | src/framework/analyses.ml | TimOrtel/analyzer | f29b1604963a72dca80d27ad2c06bcd17088dc54 | [
"MIT"
] | null | null | null | src/framework/analyses.ml | TimOrtel/analyzer | f29b1604963a72dca80d27ad2c06bcd17088dc54 | [
"MIT"
] | null | null | null | src/framework/analyses.ml | TimOrtel/analyzer | f29b1604963a72dca80d27ad2c06bcd17088dc54 | [
"MIT"
] | null | null | null | (** Signatures for analyzers, analysis specifications, and result output. *)
open Prelude
open Cil
open Pretty
open GobConfig
module GU = Goblintutil
module M = Messages
let currentFunctionName: string ref = ref ""
(** Analysis starts from lists of functions: start functions, exit functions, and
* other functio... | 35.016474 | 240 | 0.633686 |
aa0378972aa9aaf298b83ee5272cea52dabec50d | 24,627 | ml | OCaml | hphp/hack/src/typing/typing_unify.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2016-10-08T12:13:09.000Z | 2016-10-08T12:13:09.000Z | hphp/hack/src/typing/typing_unify.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_unify.ml | fredemmott/hhvm | e819c0c5016607c286384d9c76e33fa4ef42d4bb | [
"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 Hh_core
o... | 41.670051 | 84 | 0.626426 |
44f5ceef660d791358a73f58fc7a2673221f28f3 | 959 | mli | OCaml | duniverse/bisect_ppx/src/ppx/comments.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/bisect_ppx/src/ppx/comments.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/bisect_ppx/src/ppx/comments.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (* This Source Code Form is subject to the terms of the Mozilla Public License,
v. 2.0. If a copy of the MPL was not distributed with this file, You can
obtain one at http://mozilla.org/MPL/2.0/. *)
(** File lexer, used for 'special' comments. *)
val no_comment_parsing : bool ref
(** If set, Bisect_ppx does n... | 36.884615 | 154 | 0.705944 |
44efd677fb555fdbe27e6d104bcd606c150cde43 | 7,954 | ml | OCaml | data/derived/comb/progs/unify/prog0961.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/prog0961.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0961.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXX
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX... | 25.993464 | 148 | 0.63905 |
bce372b9aed43b9805da1ca87c54a977973844ce | 1,778 | mli | OCaml | src/tast_helper.mli | mariojppereira/gospel | da93ff37b69fb0b0759c4a096b691e583fea0144 | [
"MIT"
] | null | null | null | src/tast_helper.mli | mariojppereira/gospel | da93ff37b69fb0b0759c4a096b691e583fea0144 | [
"MIT"
] | 17 | 2021-10-14T12:07:31.000Z | 2022-03-28T22:14:31.000Z | src/tast_helper.mli | christinerose/gospel | 798464c971008bdb6b4ca28ef57299c9848d4d49 | [
"MIT"
] | null | null | null | open Ppxlib
open Tast
open Tterm
open Ttypes
val ty_of_lb_arg : lb_arg -> ty
val vs_of_lb_arg : lb_arg -> vsymbol
val type_spec :
bool ->
(lsymbol * bool) list ->
term list ->
string ->
Location.t ->
type_spec
val label_declaration :
'a -> mutable_flag -> Location.t -> attributes -> 'a label_declaratio... | 17.78 | 72 | 0.65748 |
bc8b92b78451343deb68cf1669e51fd1d4289be9 | 30,408 | ml | OCaml | source/analysis/test/integration/refinementTest.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | null | null | null | source/analysis/test/integration/refinementTest.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | null | null | null | source/analysis/test/integration/refinementTest.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 1 | 2021-05-13T13:30:24.000Z | 2021-05-13T13:30:24.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open OUnit2
open IntegrationTest
let test_assert_is_none context =
let assert_type_errors = assert_type_errors ~context in
ass... | 29.465116 | 100 | 0.575408 |
aa267767e722121156a4a9fed88cbb9324830ce8 | 687 | ml | OCaml | src/test/testCustomsearchV1Model.ml | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/test/testCustomsearchV1Model.ml | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | src/test/testCustomsearchV1Model.ml | pdonadeo/gapi-ocaml | 920977e242f49f1ed9909cfca8194ff3c4d69743 | [
"MIT"
] | null | null | null | open OUnit
open GapiCustomsearchV1Model
open GapiLens.Infix
open GapiUtils.Infix
let test_parse_search_results () =
let search_json =
Yojson.Safe.from_file "test_data/test_search_results.json" in
let tree = GapiJson.json_to_data_model search_json in
let search = Search.of_data_model tree in
let tree' = Sea... | 27.48 | 65 | 0.752547 |
bc047d9e0652cbfb4c09f3d113ed1fc5295fd2d7 | 2,468 | ml | OCaml | myocamlbuild.ml | trevorsummerssmith/ocaml-libuv | f3b5c3aac1f0675f2682137809b1c3ddbbddae78 | [
"MIT"
] | 16 | 2015-01-11T12:01:30.000Z | 2019-07-26T23:08:13.000Z | myocamlbuild.ml | trevorsummerssmith/ocaml-libuv | f3b5c3aac1f0675f2682137809b1c3ddbbddae78 | [
"MIT"
] | 1 | 2018-12-31T10:31:55.000Z | 2019-01-02T02:42:54.000Z | myocamlbuild.ml | trevorsummerssmith/ocaml-libuv | f3b5c3aac1f0675f2682137809b1c3ddbbddae78 | [
"MIT"
] | 2 | 2016-06-16T10:29:31.000Z | 2019-07-26T23:40:30.000Z | open Ocamlbuild_plugin;;
let make_accessors () =
(* Create the accessor wrapper c and h files.
1) Compile the ocaml script that generates these two files
2) Run it
3) Compile the c file into an object file
4) Add dependencies *)
flag ["compile"; "use_accessor_headers"] (S[A"-I"; Px ("../src")]);
flag ["c... | 43.298246 | 98 | 0.636953 |
aa0bf8059cd322ccd0fed84f4d1b95dd96d9b593 | 1,139 | ml | OCaml | src/typing/erlang_as_ocaml.ml | plux-kivra/caramel | f74da132a9bdc3cde75780eeb0fdb5fd3720a3cc | [
"Apache-2.0"
] | null | null | null | src/typing/erlang_as_ocaml.ml | plux-kivra/caramel | f74da132a9bdc3cde75780eeb0fdb5fd3720a3cc | [
"Apache-2.0"
] | null | null | null | src/typing/erlang_as_ocaml.ml | plux-kivra/caramel | f74da132a9bdc3cde75780eeb0fdb5fd3720a3cc | [
"Apache-2.0"
] | null | null | null | open Compile_common
let tool_name = "caramelc:typing:erlang_as_ocaml"
let parse ~source_file ~dump_ast =
let erlang_ast =
match Erlang.Parse.from_file source_file with
| exception exc ->
Format.fprintf Format.std_formatter "Unhandled parsing error: %s"
(Printexc.to_string exc);
exi... | 32.542857 | 79 | 0.71115 |
aa2577944fbbfb559ac0058b68ab219de8f06413 | 3,774 | ml | OCaml | hphp/hack/src/parser/fixmes.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-03T16:16:53.000Z | 2021-08-03T16:16:53.000Z | hphp/hack/src/parser/fixmes.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/fixmes.ml | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
(*****************************************************************************)
(* Table containi... | 36.288462 | 83 | 0.652888 |
af845d2ba813d5bd67ad1449cee65790fc4d1efa | 629 | mli | OCaml | src/FOLogic/Typing.mli | proglang/JaVerT2.0 | 982ece931cfc30b7558e9079bd79d5212ac70b80 | [
"BSD-3-Clause"
] | 21 | 2019-02-06T19:16:12.000Z | 2021-03-02T16:45:24.000Z | src/FOLogic/Typing.mli | proglang/JaVerT2.0 | 982ece931cfc30b7558e9079bd79d5212ac70b80 | [
"BSD-3-Clause"
] | 1 | 2020-04-03T15:46:46.000Z | 2020-09-21T13:11:18.000Z | src/FOLogic/Typing.mli | proglang/JaVerT2.0 | 982ece931cfc30b7558e9079bd79d5212ac70b80 | [
"BSD-3-Clause"
] | 2 | 2018-12-21T21:56:22.000Z | 2020-04-22T20:03:43.000Z | (*************************************
* Typing Algorithm *
**************************************)
val type_lexpr : TypEnv.t -> Expr.t -> Type.t option * bool * Formula.t list
val infer_types_expr : TypEnv.t -> Expr.t -> unit
val infer_types_formula : TypEnv.t -> Formula.t -> unit
val infer_typ... | 31.45 | 81 | 0.583466 |
bce5aa3f3b35f91687c2ccf4c3ff654ca456ecec | 15,359 | ml | OCaml | src/typing/codegen.ml | ebarahona/flow | 6d4e123d3122a72f6a603269589f00760bd8e9cf | [
"BSD-3-Clause"
] | 1 | 2017-03-25T19:40:07.000Z | 2017-03-25T19:40:07.000Z | src/typing/codegen.ml | angeloocana/flow | 6632dcaebe460c691e60cdc33253a5940068ff1e | [
"BSD-3-Clause"
] | null | null | null | src/typing/codegen.ml | angeloocana/flow | 6632dcaebe460c691e60cdc33253a5940068ff1e | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(**
... | 31.668041 | 89 | 0.621134 |
445af99f6d45e1b85ac57242739f8caad3092bd1 | 2,452 | mll | OCaml | src/rfc_lexer.mll | tahina-pro/quackyducky | 389e4e0581a2d3e578229f5131e7cb6f71678ee8 | [
"Apache-2.0"
] | null | null | null | src/rfc_lexer.mll | tahina-pro/quackyducky | 389e4e0581a2d3e578229f5131e7cb6f71678ee8 | [
"Apache-2.0"
] | null | null | null | src/rfc_lexer.mll | tahina-pro/quackyducky | 389e4e0581a2d3e578229f5131e7cb6f71678ee8 | [
"Apache-2.0"
] | null | null | null | {
open Lexing
open Format
open Rfc_parser
exception SyntaxError of string
}
let ospace = [' ' '\t']*
let space = [' ' '\t']+
let newln = "\r" | "\n" | "\r\n"
let int = ['0'-'9']+
let id = ['a'-'z' 'A'-'Z' '_'] ['a'-'z' 'A'-'Z' '0'-'9' '_' '-' '.']*
let hexb = ['0'-'9' 'a'-'f' 'A'-'F'] ['0'-'9' '... | 33.589041 | 83 | 0.501631 |
bc265a27d9cd62e480b4d7eda986911a9be1a856 | 156,602 | mli | OCaml | lib/bap_primus/bap_primus.mli | bmourad01/bap | c487c764746e7a7a40d67d04312b298a4c767306 | [
"MIT"
] | null | null | null | lib/bap_primus/bap_primus.mli | bmourad01/bap | c487c764746e7a7a40d67d04312b298a4c767306 | [
"MIT"
] | null | null | null | lib/bap_primus/bap_primus.mli | bmourad01/bap | c487c764746e7a7a40d67d04312b298a4c767306 | [
"MIT"
] | null | null | null | open Core_kernel
open Bap_knowledge
open Regular.Std
open Bap.Std
open Monads.Std
open Bap_future.Std
open Bap_strings.Std
open Bap_core_theory
module Std : sig
[@@@warning "-D"]
(** {1 The Primus Framework}
{2 Overview}
Primus is a microexecution framework that can be used to implement
CPU a... | 35.010507 | 94 | 0.597591 |
bc794882737b8ab2c65c630a1a17092dbcbaefa3 | 5,234 | ml | OCaml | hphp/hack/src/hhbc/hhbc_id.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/hhbc/hhbc_id.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/hhbc/hhbc_id.ml | azjezz/hhvm | bb38fc533db545c1e9be9b5c373c759cd28b0f33 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
module SU = Hhbc_string_utils
let elaborate_id ns kind id =
let autoimport =
if List.mem ~e... | 27.693122 | 89 | 0.688766 |
bc0ac58f6256056013230e1c88d0a464612ee1a3 | 13,736 | ml | OCaml | src/lib/mina_lib/coda_subscriptions.ml | bettery-io/mina | 691840a42c3efe7e14bf5f8c94fe49244f1377cc | [
"Apache-2.0"
] | 1 | 2021-03-29T18:24:14.000Z | 2021-03-29T18:24:14.000Z | src/lib/mina_lib/coda_subscriptions.ml | cashlimited/mina | 691840a42c3efe7e14bf5f8c94fe49244f1377cc | [
"Apache-2.0"
] | null | null | null | src/lib/mina_lib/coda_subscriptions.ml | cashlimited/mina | 691840a42c3efe7e14bf5f8c94fe49244f1377cc | [
"Apache-2.0"
] | 1 | 2021-12-18T20:29:13.000Z | 2021-12-18T20:29:13.000Z | open Core_kernel
open Async_kernel
open Pipe_lib
open Mina_base
open Signature_lib
open O1trace
type 'a reader_and_writer = 'a Pipe.Reader.t * 'a Pipe.Writer.t
module Optional_public_key = struct
module T = struct
type t = Public_key.Compressed.t option [@@deriving hash, compare, sexp]
end
include Hashable... | 41.002985 | 84 | 0.554965 |
44d102e602cc97e3978d556c4a8199ab295681ee | 357 | ml | OCaml | src/common/Common.ml | kendalfoster/stanc3 | 2b17789dae5690a92ec1e5c14aff3960a4dac88a | [
"BSD-3-Clause"
] | 123 | 2018-11-22T01:34:47.000Z | 2022-02-06T17:41:05.000Z | src/common/Common.ml | kendalfoster/stanc3 | 2b17789dae5690a92ec1e5c14aff3960a4dac88a | [
"BSD-3-Clause"
] | 947 | 2018-11-30T15:49:31.000Z | 2022-03-30T15:56:17.000Z | src/common/Common.ml | kendalfoster/stanc3 | 2b17789dae5690a92ec1e5c14aff3960a4dac88a | [
"BSD-3-Clause"
] | 50 | 2019-02-14T15:13:39.000Z | 2022-03-18T18:14:17.000Z | (* Type-class like signatures *)
module Foldable = Foldable
(* Other signatures *)
module Validation = Validation
module Pretty = Pretty
(* 'Two-level type' signatures and functors *)
module Pattern = Pattern
module Fixed = Fixed
module Label = Label
module Specialized = Specialized
(* General helpers *)
module Gens... | 21 | 46 | 0.753501 |
bce791da6b634569dbbd3d779c00d9241da026b8 | 1,647 | ml | OCaml | libraries/cloudformation/lib/listStacks.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/listStacks.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/listStacks.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = ListStacksInput.t
type output = ListStacksOutput.t
type error = Errors_internal.t
let service = "cloudformation"
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... | 26.564516 | 87 | 0.613236 |
44da25ad121dd281a9205386cdd450bdfbe16489 | 34 | ml | OCaml | OCaml from the Very Beginning/Chapter 2/example08.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | OCaml from the Very Beginning/Chapter 2/example08.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | OCaml from the Very Beginning/Chapter 2/example08.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | let addtoten a b =
a + b = 10
| 11.333333 | 19 | 0.5 |
bcf417b19343969eaa4e35e2e1c2adbd75c9565f | 16 | ml | OCaml | test/blackbox-tests/test-cases/merlin/server.t/lib3.ml | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | test/blackbox-tests/test-cases/merlin/server.t/lib3.ml | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | test/blackbox-tests/test-cases/merlin/server.t/lib3.ml | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | let foo ="bar2"
| 8 | 15 | 0.625 |
44b10b9dc55105b787d614e57f1b6c846f126c14 | 3,521 | mli | OCaml | game.mli | rishikzap/Flappy-Caml | ea102efd3ae7928fecd04e3b3246b976b5eabf59 | [
"MIT"
] | null | null | null | game.mli | rishikzap/Flappy-Caml | ea102efd3ae7928fecd04e3b3246b976b5eabf59 | [
"MIT"
] | null | null | null | game.mli | rishikzap/Flappy-Caml | ea102efd3ae7928fecd04e3b3246b976b5eabf59 | [
"MIT"
] | null | null | null |
(** [type t] is an abstract type used to represent a player in the game*)
type t
(** [type bomb] represents a bomb object. It is either Bomb of a position (x, y)
and a bool that reflects if the bomb has been dropped or not, or None, which
indicates that a bomb was not generated. *)
type bomb = Bomb of int * i... | 37.860215 | 81 | 0.694121 |
aa1eeb65caf85d63fe44f587576234adb2e32c3a | 19,414 | ml | OCaml | data/derived/comb/progs/unify/prog8575.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/prog3790.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3790.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.186325 | 208 | 0.647986 |
bc1b4cb36ca3bdc854142ba9d7e4d50c3277faf4 | 4,556 | ml | OCaml | Assignment 1/assignment1_final.ml | ankurshaswat/COL226 | 4fea1825d1e5599bd1e56f7c56351a40f6e908ea | [
"MIT"
] | null | null | null | Assignment 1/assignment1_final.ml | ankurshaswat/COL226 | 4fea1825d1e5599bd1e56f7c56351a40f6e908ea | [
"MIT"
] | null | null | null | Assignment 1/assignment1_final.ml | ankurshaswat/COL226 | 4fea1825d1e5599bd1e56f7c56351a40f6e908ea | [
"MIT"
] | 1 | 2020-04-06T10:12:40.000Z | 2020-04-06T10:12:40.000Z | exception Empty;;
exception AtLast;;
exception AtFirst;;
exception TooShort;;
exception Error;;
open List;;
open String;;
type 'a myString = {mutable a:'a list;mutable b:'a list;mutable c:'a;mutable d:'a};;
(* val rev : 'a list -> 'a list = <fun> Helping Function*)
let rec rev a = match a with
| [] -> []
| x:... | 42.185185 | 168 | 0.581431 |
bc0f55580aab28e6484a91cf1832182c04610ce3 | 2,386 | ml | OCaml | data/fa15_min/2271.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/2271.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/2271.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 = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let difference = (List.length l1) - (List.length l2) in
if difference > 0
then (l1, ((clone 0 difference) @ l2))
else
if difference < 0
then (((clone 0 ((-1) * difference)) @ l1), l2)
else (l1, l2);;
let rec r... | 22.942308 | 75 | 0.527242 |
bcbb1eeb22322d801b65928ada23a93adbd22f8d | 2,765 | mli | OCaml | duniverse/menhir/fix/src/Core.mli | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | duniverse/menhir/fix/src/Core.mli | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | duniverse/menhir/fix/src/Core.mli | pitag-ha/ppx_universe | 4d7dab337767961e346e4bfe1596f38370581dee | [
"MIT"
] | 1 | 2022-03-02T19:35:36.000Z | 2022-03-02T19:35:36.000Z | (******************************************************************************)
(* *)
(* Fix *)
(* ... | 40.661765 | 80 | 0.540687 |
bc4d6d53a373b660db602f2ef6f70c21bbc03ffd | 10,222 | ml | OCaml | src/dune/module.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/module.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | src/dune/module.ml | AltGr/dune | 5cd4eb6f228649218722caa14a6a5630cba991b0 | [
"MIT"
] | null | null | null | open! Stdune
open Import
module File = struct
type t =
{ path : Path.t
; dialect : Dialect.t
}
let path t = t.path
let set_src_dir t ~src_dir =
let path = Path.relative src_dir (Path.basename t.path) in
{ t with path }
let make dialect path = { dialect; path }
let to_dyn { path; diale... | 27.18617 | 79 | 0.629916 |
bc9474c3ae6d91a9623fe93756f6233708a545c7 | 113 | mli | OCaml | client/cmd_feature_table_of_csv.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | client/cmd_feature_table_of_csv.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | client/cmd_feature_table_of_csv.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | open! Core
open! Import
val main : Implement_command_rpc (Fe.Feature_table_of_csv).t
val command : Command.t
| 18.833333 | 63 | 0.769912 |
bc529cf012a71f22a1e84712b7ba9688c51de188 | 81 | ml | OCaml | data/derived/comb/progs/unify/prog2791.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/prog2791.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2791.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs = let f a x = a x in let base a' = a' in List.fold_left f base fs;;
| 27 | 79 | 0.617284 |
affb3704e8ed434754bc2bba3ac4502f3629cadf | 499 | ml | OCaml | lib/unique_queue.ml | roddyyaga/jay | 3aa1dd8e1e3fdb89e437333f52c3c138af0ad7ee | [
"MIT"
] | 11 | 2020-09-04T20:50:46.000Z | 2021-03-27T12:00:17.000Z | lib/unique_queue.ml | roddyyaga/jay | 3aa1dd8e1e3fdb89e437333f52c3c138af0ad7ee | [
"MIT"
] | null | null | null | lib/unique_queue.ml | roddyyaga/jay | 3aa1dd8e1e3fdb89e437333f52c3c138af0ad7ee | [
"MIT"
] | null | null | null | module Make (Key : Hashtbl.HashedType) = struct
module Tbl = Hashtbl.Make (Key)
type set = unit Tbl.t
type t = Key.t Queue.t * set
let create () = (Queue.create (), Tbl.create 16)
let is_empty (queue, _sets) = Queue.is_empty queue
let push x (queue, set) =
let check = Tbl.mem set x in
if check ... | 20.791667 | 52 | 0.621242 |
bc42ed158ff1ce2cec7a2168d62d1ae7b942ea4e | 1,803 | ml | OCaml | libraries/ec2/lib/describePrefixLists.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describePrefixLists.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describePrefixLists.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DescribePrefixListsRequest.t
type output = DescribePrefixListsResult.t
type error = Errors_internal.t
let service = "ec2"
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)))
... | 31.086207 | 99 | 0.574043 |
8af7e3747bf295dfea62245b492b6cf966d8dc41 | 23,942 | ml | OCaml | runtime/js_array.ml | facebookexperimental/JSCaml | adf48cc4aa87e02b6a70765dc1e0904c4739804f | [
"BSD-3-Clause"
] | 485 | 2017-03-21T16:22:46.000Z | 2018-08-31T05:15:24.000Z | runtime/js_array.ml | facebookarchive/JSCaml | adf48cc4aa87e02b6a70765dc1e0904c4739804f | [
"BSD-3-Clause"
] | 2 | 2017-03-21T21:45:58.000Z | 2017-03-22T08:42:37.000Z | runtime/js_array.ml | facebookexperimental/JSCaml | adf48cc4aa87e02b6a70765dc1e0904c4739804f | [
"BSD-3-Clause"
] | 21 | 2017-03-21T19:44:09.000Z | 2018-03-12T06:37:51.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module ... | 29.521578 | 80 | 0.678097 |
aa26078281f0922672c537c906fd386805d95194 | 2,200 | mli | OCaml | src/dune_rules/ocaml_version.mli | snowleopard/dune | dcf921ca5cd825ddb054682809bc4032e0d92ebc | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | src/dune_rules/ocaml_version.mli | snowleopard/dune | dcf921ca5cd825ddb054682809bc4032e0d92ebc | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | src/dune_rules/ocaml_version.mli | snowleopard/dune | dcf921ca5cd825ddb054682809bc4032e0d92ebc | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | (** Version numbers for ocamlc and ocamlopt *)
open! Dune_engine
type t
val make : int * int * int -> t
val of_ocaml_config : Ocaml_config.t -> t
(** Does this support [-no-keep-locs]? *)
val supports_no_keep_locs : t -> bool
(** Does this support [-opaque] for [.mli] files? *)
val supports_opaque_for_mli : t -> b... | 30.985915 | 78 | 0.719091 |
aa2c3e3037fbe266b3891f3793dee8abf04769e3 | 4,459 | ml | OCaml | infer/src/pulse/PulseInvalidation.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 4 | 2020-06-16T14:40:24.000Z | 2021-07-28T18:02:26.000Z | infer/src/pulse/PulseInvalidation.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | 25 | 2021-02-08T13:49:24.000Z | 2022-02-28T03:34:19.000Z | infer/src/pulse/PulseInvalidation.ml | NeatNerdPrime/infer | 8f797bab845830fed3e3da7c417ff611a6efe7f1 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
type std_vector_function =
| Assign
| Clear
| Emplace
| EmplaceBack
| Insert
| PushBack
... | 29.529801 | 99 | 0.686925 |
bce2d8d62a1f09626902dc2e2cc5d871cabf2e71 | 3,976 | mli | OCaml | src/typing/flow_js.mli | delprofundo/flow | f7d2698fe3650cfd9ac1ecd1078a8ffe23215802 | [
"MIT"
] | null | null | null | src/typing/flow_js.mli | delprofundo/flow | f7d2698fe3650cfd9ac1ecd1078a8ffe23215802 | [
"MIT"
] | null | null | null | src/typing/flow_js.mli | delprofundo/flow | f7d2698fe3650cfd9ac1ecd1078a8ffe23215802 | [
"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 Reason
(* exceptions *)
exception Not_expect_bound of string
exception Attempted_operation_on_bound of string
(* propagate... | 26.684564 | 100 | 0.665241 |
bc9e2928ed80de5f3b67b8fa041aff8d5df93459 | 1,512 | mli | OCaml | infer/src/IR/Annot.mli | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | infer/src/IR/Annot.mli | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | infer/src/IR/Annot.mli | JamesBrace/infer | bd3e061ae16ea5e79eedd8ddaa2e365e1d760e15 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** The Smallfoot Intermediate Language: Annotations *)
open! IStd
module F = Format
type pa... | 24 | 72 | 0.66336 |
bcbe9c89ad8d61730475fee63233ed0435eac6bf | 3,301 | mli | OCaml | src/fake.mli | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | src/fake.mli | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | src/fake.mli | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby granted, free of cha... | 36.274725 | 79 | 0.733414 |
aa1862dd29e2cad778de46ab5f0c65bb061d86f9 | 10,621 | ml | OCaml | src/common/errors/error_codes.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | null | null | null | src/common/errors/error_codes.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | null | null | null | src/common/errors/error_codes.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type error_code =
| AmbiguousObjectType
| CannotDelete
| CannotImplement
| CannotInferType
| CannotRead
| CannotReassig... | 34.70915 | 98 | 0.742303 |
bc848fe014b2ed673a0753d9e544dac757acf4c3 | 895 | ml | OCaml | data/derived/comb/progs/unify/prog1674.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/prog1674.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1674.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
| Sqrt of expr
| Abs of expr
| Logistic of expr* expr* expr;;
let pi = 4.0 *. (atan 1.0);;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y... | 26.323529 | 76 | 0.460335 |
bc83532a357a832212e9dd491dec48592ca7ea52 | 2,783 | ml | OCaml | etc/dpdgraph-0.4alpha/dpd.ml | fpvandoorn/HoTT | 90142d6596e40fcfaaecaf09500f830e1c3d9704 | [
"BSD-2-Clause"
] | 1 | 2020-04-22T14:56:15.000Z | 2020-04-22T14:56:15.000Z | etc/dpdgraph-0.4alpha/dpd.ml | fpvandoorn/HoTT | 90142d6596e40fcfaaecaf09500f830e1c3d9704 | [
"BSD-2-Clause"
] | 6 | 2017-02-16T14:34:13.000Z | 2017-11-19T17:12:29.000Z | etc/dpdgraph-0.4alpha/dpd.ml | fpvandoorn/HoTT | 90142d6596e40fcfaaecaf09500f830e1c3d9704 | [
"BSD-2-Clause"
] | 2 | 2017-03-17T13:49:22.000Z | 2017-06-26T13:18:13.000Z | (*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*)
(* This file is part of the DpdGraph tools. *)
(* Copyright (C) 2009-2013 Anne Pacalet (Anne.Pacalet@free.fr) *)
(* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *)... | 39.197183 | 80 | 0.552641 |
bcddd1f104bbfcc5d28cb2c8778126ce5767d8d4 | 1,887 | ml | OCaml | unparser/lab/lib/qst.ml | spiral-software/spiral-package-quantum | dd2323983495adbbc6261c0cdf840320d19d099d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | unparser/lab/lib/qst.ml | spiral-software/spiral-package-quantum | dd2323983495adbbc6261c0cdf840320d19d099d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | unparser/lab/lib/qst.ml | spiral-software/spiral-package-quantum | dd2323983495adbbc6261c0cdf840320d19d099d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | (*
# Copyright (c) 2018-2020, Carnegie Mellon University
# See LICENSE for details
#
# Some materials taken from CMU 15-411 Starter Code
#
# Quantum Assembly Syntax
#
*)
open! Core
type gate =
| I of Int32.t
| H of Int32.t
| X of Int32.t
| Y of Int32.t
| Z of Int32.t
| S of Int32.t
| Sdag of Int32.t
... | 31.45 | 169 | 0.600954 |
bcde4423bf98b3934c56a5d34db99096b43a43b6 | 12,790 | ml | OCaml | src/lib/transition_router/initial_validator.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/lib/transition_router/initial_validator.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | null | null | null | src/lib/transition_router/initial_validator.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
open Pipe_lib.Strict_pipe
open Mina_base
open Mina_state
open Signature_lib
open Mina_transition
open Network_peer
type validation_error =
[ `Invalid_time_received of [`Too_early | `Too_late of int64]
| `Invalid_genesis_protocol_state
| `Invalid_proof
| `Invalid_delta_transit... | 40.99359 | 83 | 0.635027 |
afcff17c0fd9c467dfcab56a1d6d0833be28dc9c | 55 | mli | OCaml | 2nd/compiler/toAssem.mli | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/toAssem.mli | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/toAssem.mli | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | 3 | 2020-10-08T04:16:58.000Z | 2021-10-11T13:19:30.000Z | val f : out_channel -> bool -> Asm.prog -> Assem.t list | 55 | 55 | 0.654545 |
bc3fa037549d07e361d15743a9df4187b1a2a685 | 6,836 | ml | OCaml | src/lib_p2p/test/test_p2p_ipv6set.ml | osiz-blockchainapp/micashsymbol | ea83b92cdc6acd1f47a16769cc34fcfd9f54188b | [
"MIT"
] | null | null | null | src/lib_p2p/test/test_p2p_ipv6set.ml | osiz-blockchainapp/micashsymbol | ea83b92cdc6acd1f47a16769cc34fcfd9f54188b | [
"MIT"
] | null | null | null | src/lib_p2p/test/test_p2p_ipv6set.ml | osiz-blockchainapp/micashsymbol | ea83b92cdc6acd1f47a16769cc34fcfd9f54188b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 39.287356 | 79 | 0.586308 |
bcea87e5cabb51a711ff6dd8ab33a92ca08251ae | 348 | ml | OCaml | tests/task-4/cossinprod_test.ml | E-Sh4rk/FuncProg | c35546ce64378054531b5e0ec5e19c6e08c8d70c | [
"Apache-2.0"
] | null | null | null | tests/task-4/cossinprod_test.ml | E-Sh4rk/FuncProg | c35546ce64378054531b5e0ec5e19c6e08c8d70c | [
"Apache-2.0"
] | null | null | null | tests/task-4/cossinprod_test.ml | E-Sh4rk/FuncProg | c35546ce64378054531b5e0ec5e19c6e08c8d70c | [
"Apache-2.0"
] | null | null | null | open DiffCat
include Cossinprod.Make (DiffCat)
let x = 37.
let y = 73.
let dx = epsilon
let dy = epsilon
let tests =
assert (epsilon_dapply sum (x, y) (dx, 0.) =
-. sin (x *. y) *. y *. dx +. cos (x *. y) *. y *. dx);
assert (epsilon_dapply sum (x, y) (0., dy) =
-. sin (x *. y) *. x *. dy ... | 24.857143 | 67 | 0.491379 |
44497609003c068c96a3f19def922b44eed8552a | 2,885 | ml | OCaml | src/ast_checker.ml | jdrprod/Pym-s | e68dfb840bd36fe60cda02de3b96762e9138071a | [
"MIT"
] | 3 | 2019-08-16T20:54:09.000Z | 2020-04-26T02:43:57.000Z | src/ast_checker.ml | jdrprod/Pym-s | e68dfb840bd36fe60cda02de3b96762e9138071a | [
"MIT"
] | null | null | null | src/ast_checker.ml | jdrprod/Pym-s | e68dfb840bd36fe60cda02de3b96762e9138071a | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* _____ *)
(* | __ \ *)
(* | ... | 38.466667 | 80 | 0.410052 |
44acaeb5f34abb23bd8e1190e77339d904db0aae | 8,607 | ml | OCaml | data/derived/comb/progs/unify/prog7553.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/prog2748.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2748.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.564815 | 148 | 0.652027 |
447c8c8745f704a3269dc013e1c65bf9231ba96f | 362 | ml | OCaml | data/sp14_min/1664.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1664.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1664.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec digitsOfInt n =
if n < 0 then [] else (n mod 10) :: ((digitsOfInt n) * 10);;
(* fix
let rec digitsOfInt n = if n < 0 then [] else (n mod 10) :: (digitsOfInt n);;
*)
(* changed spans
(3,39)-(3,61)
digitsOfInt n
AppG [VarG]
*)
(* type error slice
(2,4)-(3,63)
(2,21)-(3,61)
(3,3)-(3,61)
(3,25)-(3,61)
(3,... | 12.928571 | 77 | 0.533149 |
8aeefcdd5a62ff4972a4808fa9514bdb06dea5ab | 4,919 | ml | OCaml | src/typing/typed_ast.ml | Ricardo-Marques/flow | e3983c7a423eefa1678e33e026c453487dd626bc | [
"MIT"
] | null | null | null | src/typing/typed_ast.ml | Ricardo-Marques/flow | e3983c7a423eefa1678e33e026c453487dd626bc | [
"MIT"
] | null | null | null | src/typing/typed_ast.ml | Ricardo-Marques/flow | e3983c7a423eefa1678e33e026c453487dd626bc | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Error AST nodes. These are used when, while generating the typed AST,
errors prevent some part of the original AST from being tr... | 23.649038 | 83 | 0.595446 |
bcc87ed2656198972876b42611fbca213ae02737 | 3,147 | ml | OCaml | herd/variant.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | herd/variant.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | herd/variant.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 41.407895 | 100 | 0.564665 |
bc40942118374e745426abe8276ccd7cb55a79c8 | 2,455 | mli | OCaml | libs/extlib-leftovers/base64.mli | wiltonlazary/haxe | 4b46713050c78940abf6c1ce19c8337de3744203 | [
"MIT"
] | 4,753 | 2015-01-03T00:45:27.000Z | 2022-03-31T07:41:28.000Z | libs/extlib-leftovers/base64.mli | wiltonlazary/haxe | 4b46713050c78940abf6c1ce19c8337de3744203 | [
"MIT"
] | 6,784 | 2015-01-01T01:06:28.000Z | 2022-03-31T22:12:14.000Z | libs/extlib-leftovers/base64.mli | wiltonlazary/haxe | 4b46713050c78940abf6c1ce19c8337de3744203 | [
"MIT"
] | 641 | 2015-01-02T23:54:43.000Z | 2022-03-30T07:44:13.000Z | (*
* Base64 - Base64 codec
* Copyright (C) 2003 Nicolas Cannasse
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any late... | 37.19697 | 78 | 0.734012 |
bc6c45224f4f79ca245acc78c9018c91b4b8f63b | 62,150 | ml | OCaml | src/lib/mina_networking/mina_networking.ml | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | src/lib/mina_networking/mina_networking.ml | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | src/lib/mina_networking/mina_networking.ml | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Mina_base
module Sync_ledger = Mina_ledger.Sync_ledger
open Mina_state
open Mina_transition
open Network_peer
open Network_pool
open Pipe_lib
let refused_answer_query_string = "Refused to answer_query"
exception No_initial_peers
type Structured_log_events.t +=
| Block_received of { state_... | 32.866208 | 242 | 0.63712 |
bca77382bac9f97d93fb93d90f2ef0a306db8518 | 8,095 | ml | OCaml | src/common/lints/exactCover.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2020-06-21T01:14:46.000Z | 2020-06-21T01:14:46.000Z | src/common/lints/exactCover.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/common/lints/exactCover.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 1 | 2021-01-06T10:57:53.000Z | 2021-01-06T10:57:53.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.
*)
(* See exactCover.mli for a high-level explanation. *)
exception Uncovered of string
(* A builder is a sorted list of non-overlap... | 39.876847 | 96 | 0.705868 |
aa1864f8eb753d467bc8be1cb1384cd67f6ff50d | 29,362 | ml | OCaml | hphp/hack/test/unit/naming/naming_table_tests.ml | jie-pan/hhvm | 41853383c5b53a69ac2c67f9d3cce5e38c6eafa5 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-09T16:16:00.000Z | 2021-08-09T16:16:00.000Z | hphp/hack/test/unit/naming/naming_table_tests.ml | jie-pan/hhvm | 41853383c5b53a69ac2c67f9d3cce5e38c6eafa5 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-08-21T07:48:37.000Z | 2021-08-21T07:48:37.000Z | hphp/hack/test/unit/naming/naming_table_tests.ml | LaudateCorpus1/hhvm | 15914f0afb9dc408fe56949d5871a46ffa103b44 | [
"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.
*
*
*)
(* These are basically the same tests as in
* test/integration_ml/saved_state/test_naming_table_sqlite_fallback.... | 39.097204 | 161 | 0.662761 |
aa1107976f7a7aa6dc65f2fa6c129e21e34268bf | 3,584 | ml | OCaml | src/dag/dag.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/dag/dag.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | src/dag/dag.ml | progman1/dune | e937feef4fb03d83bd551489420a557a5a6fc1c0 | [
"MIT"
] | null | null | null | open! Stdune
include Dag_intf
module Make (Value : Value) : S with type value := Value.t = struct
(* Raw_graph here should have the same complexity than the assumed interface
on the incremental_cycles proofs, in particular [get_outgoing] should run
in constant time. *)
module Raw_graph = struct
type ... | 26.548148 | 80 | 0.604353 |
aa023e6986431a1d5b9846bc5090f6c1689403fe | 2,497 | ml | OCaml | coq/tools/coqdep_boot.ml | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/tools/coqdep_boot.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/tools/coqdep_boot.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 44.589286 | 74 | 0.553865 |
bcc5005d2a909ddb64a45f582b1dd5ed9060ec45 | 31,219 | ml | OCaml | src/ocaml/merlin_specific/403/browse_raw.ml | mreppen/merlin | db957668fa2be7b9d076f0c066178a65c48dd085 | [
"MIT"
] | 1 | 2021-06-14T11:08:56.000Z | 2021-06-14T11:08:56.000Z | src/ocaml/merlin_specific/403/browse_raw.ml | mreppen/merlin | db957668fa2be7b9d076f0c066178a65c48dd085 | [
"MIT"
] | null | null | null | src/ocaml/merlin_specific/403/browse_raw.ml | mreppen/merlin | db957668fa2be7b9d076f0c066178a65c48dd085 | [
"MIT"
] | 1 | 2021-06-14T11:07:29.000Z | 2021-06-14T11:07:29.000Z | (* {{{ Copying *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2017 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
Permission is hereby... | 37.298686 | 84 | 0.658125 |
aa16b8676b3b3c9512811e6b2f253061fd229910 | 2,955 | ml | OCaml | sha512.ml | MisterDA/ocaml-sha | c86a4c76b23a6bd3ae700ea054dc4b6e4d4feef7 | [
"0BSD"
] | null | null | null | sha512.ml | MisterDA/ocaml-sha | c86a4c76b23a6bd3ae700ea054dc4b6e4d4feef7 | [
"0BSD"
] | null | null | null | sha512.ml | MisterDA/ocaml-sha | c86a4c76b23a6bd3ae700ea054dc4b6e4d4feef7 | [
"0BSD"
] | null | null | null | (*
* Copyright (C) 2006-2009 Vincent Hanquez <tab@snarc.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" ... | 31.105263 | 92 | 0.698816 |
aa0fca24df9d9a0a48b6b591c451d9e276f7b42b | 2,159 | mli | OCaml | infer/src/backend/errlog.mli | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/errlog.mli | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/errlog.mli | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2015 - Facebook.
* All rights reserved.
*)
(** Module for error logs. *)
(** Element of a loc trace *)
type loc_trace_elem = {
lt_level : int; (** nesting level of procedure calls *)
lt_loc : Sil.location; (** source location at the current step in the trace *)
lt_description : string; (** de... | 31.289855 | 100 | 0.682723 |
bcb76b91815845c0b0df21417f73917151512840 | 10,911 | ml | OCaml | src/lib/simul.ml | jserot/rfsm | 5f6dcef41b8d1a8aae01520c0c638ba346e0b36c | [
"MIT"
] | 21 | 2018-04-23T10:08:40.000Z | 2021-03-24T16:04:53.000Z | src/lib/simul.ml | jserot/rfsm | 5f6dcef41b8d1a8aae01520c0c638ba346e0b36c | [
"MIT"
] | 3 | 2018-06-06T07:13:18.000Z | 2020-03-25T11:12:03.000Z | src/lib/simul.ml | jserot/rfsm | 5f6dcef41b8d1a8aae01520c0c638ba346e0b36c | [
"MIT"
] | null | null | null | (**********************************************************************)
(* *)
(* This file is part of the RFSM package *)
(* *)
(* Copyright (c) 2018-prese... | 44.353659 | 136 | 0.590505 |
aa104ee27397259aa805d9770670bbe54ae29874 | 9,515 | ml | OCaml | src/sparse/access.ml | ropas/ssft19-sparrow | 7b98f3c0d2b6b0b6fdd5b5029ed05574e4cf791e | [
"BSD-3-Clause"
] | 118 | 2017-04-05T15:50:21.000Z | 2021-07-10T18:52:34.000Z | src/sparse/access.ml | ropas/ssft19-sparrow | 7b98f3c0d2b6b0b6fdd5b5029ed05574e4cf791e | [
"BSD-3-Clause"
] | 5 | 2017-06-15T01:56:04.000Z | 2018-05-25T01:27:26.000Z | src/sparse/access.ml | ropas/ssft19-sparrow | 7b98f3c0d2b6b0b6fdd5b5029ed05574e4cf791e | [
"BSD-3-Clause"
] | 28 | 2017-04-02T00:39:26.000Z | 2021-09-07T01:54:09.000Z | (***********************************************************************)
(* *)
(* Copyright (c) 2007-present. *)
(* Programming Research Laboratory (ROPAS), Seoul National University. *)
(* All rights reserved. ... | 32.254237 | 103 | 0.584341 |
bc5c6260c1b7a3829d6a1a8c8960bdc768b09674 | 438 | mli | OCaml | src/parser_utils/package_json.mli | thalesfsp/flow | 0d5e954fcc631b3e0705b02d5305e0be65cec18e | [
"BSD-3-Clause"
] | null | null | null | src/parser_utils/package_json.mli | thalesfsp/flow | 0d5e954fcc631b3e0705b02d5305e0be65cec18e | [
"BSD-3-Clause"
] | 2 | 2021-05-11T23:33:41.000Z | 2022-03-28T18:43:26.000Z | src/parser_utils/package_json.mli | thalesfsp/flow | 0d5e954fcc631b3e0705b02d5305e0be65cec18e | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
type ... | 27.375 | 80 | 0.710046 |
bc6e9c0973801668e65cb38b9b2a136a42562cb4 | 2,845 | mli | OCaml | src/Source.mli | CraigFe/ocamlformat | ce9e53933cf80fe164bc12dac31913d33b0f6e3d | [
"MIT"
] | null | null | null | src/Source.mli | CraigFe/ocamlformat | ce9e53933cf80fe164bc12dac31913d33b0f6e3d | [
"MIT"
] | 1 | 2019-10-29T14:01:10.000Z | 2019-10-29T14:01:10.000Z | src/Source.mli | emillon/ocamlformat | 99444f3054e29e2322e56b23422e9984a378170f | [
"MIT"
] | null | null | null | (**********************************************************************
* *
* OCamlFormat *
* *
* Copyright (c) 2017-present, ... | 36.012658 | 77 | 0.576801 |
44eb0e47c752daa1c0ae9e43d605db7c2fac54cb | 1,320 | mli | OCaml | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/lex/outputbis.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/lex/outputbis.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | test_native/_opam/.opam-switch/sources/ocaml-base-compiler.4.07.1/lex/outputbis.mli | dauletisataev/form-ppx | caa4311ab58b171950dce74def61133830d4740c | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 55 | 76 | 0.333333 |
bc8799c4342a8bfe2bc889c83f350c96b312118f | 1,477 | ml | OCaml | source/service/test/inferTest.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | 1 | 2022-02-10T10:51:32.000Z | 2022-02-10T10:51:32.000Z | source/service/test/inferTest.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/service/test/inferTest.ml | 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 Core
open OUnit2
let should_analyze_file ~paths_to_modify path =
PyrePath.create_absolute path
|> Service.Infer.should_... | 33.568182 | 97 | 0.678402 |
bc5f52c4275dbaf5707d9704e74390a60b8b8764 | 2,304 | ml | OCaml | libraries/ssm/lib/cancelMaintenanceWindowExecution.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ssm/lib/cancelMaintenanceWindowExecution.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ssm/lib/cancelMaintenanceWindowExecution.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module CancelMaintenanceWindowExecutionRequest =
struct
type t =
{
window_execution_id: String.t
[@ocaml.doc
"<p>The ID of the maintenance window execution to stop.</p>"]}
let make ~window_execut... | 33.882353 | 79 | 0.652778 |
bcdfea475d190be2b26035ee68b68ec95c398cbb | 1,379 | mli | OCaml | test/parser/integration/definitions/jsonml-stringify.mli | jsigorg/parser | 6705ff5abb5c458931872dbeba795859376233c2 | [
"MIT"
] | 6 | 2015-01-29T10:27:13.000Z | 2016-02-01T09:30:48.000Z | test/parser/integration/definitions/jsonml-stringify.mli | jsigorg/parser | 6705ff5abb5c458931872dbeba795859376233c2 | [
"MIT"
] | 3 | 2015-05-11T17:53:11.000Z | 2015-10-21T08:15:16.000Z | test/parser/integration/definitions/jsonml-stringify.mli | jsigorg/parser | 6705ff5abb5c458931872dbeba795859376233c2 | [
"MIT"
] | 3 | 2015-05-10T04:49:55.000Z | 2015-09-20T12:57:28.000Z | type JsonMLSelector : String
type JsonMLTextContent : String
type JsonMLRawContent : {
raw: String
}
type JsonMLFragment : {
fragment: Array<JsonML>
}
type JsonMLAttributeKey : String
type JsonMLAttributeValue : String | Number | Boolean
type JsonMLAttrs : Object<JsonMLAttributeKey, JsonMLAttributeValue>
type... | 28.142857 | 69 | 0.715011 |
bcc7108d3ed3dbe10c36a8f19ff216652313a6a0 | 8,229 | ml | OCaml | src/boot/lib/repl.ml | david-broman/miking | 0ef6e57e5070aa6d330d581b4fb4af2006e608cf | [
"MIT"
] | null | null | null | src/boot/lib/repl.ml | david-broman/miking | 0ef6e57e5070aa6d330d581b4fb4af2006e608cf | [
"MIT"
] | null | null | null | src/boot/lib/repl.ml | david-broman/miking | 0ef6e57e5070aa6d330d581b4fb4af2006e608cf | [
"MIT"
] | 1 | 2019-06-18T05:30:56.000Z | 2019-06-18T05:30:56.000Z | (*
Miking is licensed under the MIT license.
Copyright (C) David Broman. See file LICENSE.txt
repl.ml contains most of the MCore REPL functionality. It is built upon the
bootstrap interpreter. Uses linenoise.
*)
open Ustring.Op
open Printf
open Ast
open Mlang
open Msg
open Pprint
open Intrinsics
open Pars... | 29.600719 | 79 | 0.681857 |
bcfce56422254348470988eb343e305ac5db6d86 | 106,239 | ml | OCaml | source/test/test.ml | nathanawmk/pyre-check | 23e79ae374759287dde305928493942bf7f108b0 | [
"MIT"
] | null | null | null | source/test/test.ml | nathanawmk/pyre-check | 23e79ae374759287dde305928493942bf7f108b0 | [
"MIT"
] | null | null | null | source/test/test.ml | nathanawmk/pyre-check | 23e79ae374759287dde305928493942bf7f108b0 | [
"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 Core
open OUnit2
open Analysis
open Ast
open Pyre
open PyreParser
open Statement
let initialize () =
Log.GlobalState.initia... | 34.16045 | 135 | 0.536432 |
bcb81755dbd2a628baad65aaca8395a1ae48e2ff | 6,665 | ml | OCaml | data/derived/comb/progs/unify/prog5546.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/prog0660.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0660.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXX*)
let rec sumList xs = match xs with
| [] -> 0
| h::t -> h + sumList t
;;
let _ = sumList [1; 2; 3; 4]
let _ = sumList [1; -2; 3; 5]
let _ = sumList [1; 3; 5; 7; 9; 11]
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 23.97482 | 94 | 0.627907 |
bcd1cb453f1ec20f139fb4e4683cf27f3daa3230 | 15,369 | ml | OCaml | solvers/Dreaming.ml | Hitoshi-Nakanishi/ec2 | b65905cdfb1a2451ad553fd15b937a7fc48fa9cf | [
"Unlicense"
] | 6 | 2020-11-19T14:53:55.000Z | 2021-09-27T19:28:51.000Z | solvers/Dreaming.ml | nathanael-fijalkow/ec | c20fd84ca3944f904f5c999ed5df46eb6b6f8ef5 | [
"MIT"
] | null | null | null | solvers/Dreaming.ml | nathanael-fijalkow/ec | c20fd84ca3944f904f5c999ed5df46eb6b6f8ef5 | [
"MIT"
] | 1 | 2020-11-18T19:36:56.000Z | 2020-11-18T19:36:56.000Z | open Core
open Pregex
open Program
open Enumeration
open Grammar
open Utils
open Timeout
open Type
open Tower
open PolyValue
open Yojson.Basic
let remove_bad_dreams behavior_to_programs : (PolyList.t * (float * program list)) list =
let start_time = Time.now () in
(* remove the extra costs *)
let behavior_t... | 39.816062 | 132 | 0.611035 |
bce490353cbc394211c375686c2bf48d979b2498 | 7,788 | ml | OCaml | data/derived/comb/progs/unify/prog5015.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/prog0098.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0098.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.046823 | 148 | 0.668978 |
aa2ea29ba9f7374cc4504f3d20a911fc018394ac | 777 | ml | OCaml | examples/cursor.ml | bcc32/notty | 2e7ecd96e68798c33d010f65dbb62b09d54c8df7 | [
"ISC"
] | null | null | null | examples/cursor.ml | bcc32/notty | 2e7ecd96e68798c33d010f65dbb62b09d54c8df7 | [
"ISC"
] | null | null | null | examples/cursor.ml | bcc32/notty | 2e7ecd96e68798c33d010f65dbb62b09d54c8df7 | [
"ISC"
] | null | null | null | (* Copyright (c) 2016-2017 David Kaloper Meršinjak. All rights reserved.
See LICENSE.md. *)
open Notty
open Common
let rec main t (x, y as pos) =
let img =
let dot = I.string A.(bg lightred ++ fg black) "✓" |> I.pad ~l:x ~t:y
and txt = I.strf ~attr:A.(fg lightblack) "@(%d, %d)" x y in
I.(txt </> dot)... | 28.777778 | 73 | 0.501931 |
bc423bb8a96ef6b88bb59f8ccde609c98015ebd4 | 953 | ml | OCaml | src/common/utils/nel.ml | vkurchatkin/ff | ed75401e7557bb9821da29160c008d665ca3241e | [
"BSD-3-Clause"
] | null | null | null | src/common/utils/nel.ml | vkurchatkin/ff | ed75401e7557bb9821da29160c008d665ca3241e | [
"BSD-3-Clause"
] | 2 | 2021-05-11T23:33:41.000Z | 2022-03-28T18:43:26.000Z | src/common/utils/nel.ml | ahutchings/flow | b815b351f7625fab4a174d53628f53a6a481460a | [
"BSD-3-Clause"
] | null | null | null | (* Non-empty list *)
type 'a t = 'a * 'a list
let to_list (x, xs) = x::xs
let one x = (x, [])
let cons x0 (x1, xs) = (x0, x1::xs)
let iter f (x, xs) =
f x;
List.iter f xs
let map f (x, xs) = (f x, List.map f xs)
let ident_map f ((x, xs) as original) =
let x' = f x in
let xs' = ListUtils.ident_map f xs in... | 20.276596 | 56 | 0.546695 |
44ca66af910107c24762f266debbce3445a612eb | 17,931 | ml | OCaml | hack/utils/pos_embedded.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"MIT"
] | 1 | 2019-07-15T20:48:46.000Z | 2019-07-15T20:48:46.000Z | hack/utils/pos_embedded.ml | wgao19/flow | 8e6b768fd787c5a1b5f7025fbf8b3b00111671de | [
"MIT"
] | null | null | null | hack/utils/pos_embedded.ml | wgao19/flow | 8e6b768fd787c5a1b5f7025fbf8b3b00111671de | [
"MIT"
] | null | null | null | (** Positions embedded with full position info inside its
* data structure. See "type 'a pos"
*
* Note: This module can only be used with the Lexbuf Pos_source
* module, as it will not compile with other Pos_source modules. So,
* when choosing a different Pos module, you must also choose its
* compatible Pos_sour... | 31.962567 | 89 | 0.672857 |
44b7da1b902d85d4b203e0fc38b39a0364f23fbf | 840 | ml | OCaml | examples/list_services.ml | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 14 | 2015-02-25T10:37:07.000Z | 2019-06-04T11:58:53.000Z | examples/list_services.ml | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 10 | 2019-07-11T08:43:53.000Z | 2021-07-17T09:54:49.000Z | examples/list_services.ml | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 7 | 2017-10-15T13:14:48.000Z | 2018-12-12T05:17:28.000Z | (*
* list_services.ml
* ----------------
* Copyright : (c) 2008, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of obus, an ocaml implementation of D-Bus.
*)
(* List services with their owner *)
open Lwt
open Lwt_io
let list name get_bus =
let%lwt () = printlf "service name m... | 24.705882 | 65 | 0.639286 |
bce5323e749b63e7cdca6008cad6f276b9c38f63 | 5,106 | ml | OCaml | src-common/nlang.ml | dbuenzli/remat | 28d572e77bbd1ad46bbfde87c0ba8bd0ab99ed28 | [
"BSD-3-Clause"
] | 2 | 2015-11-05T16:47:07.000Z | 2020-10-22T01:29:32.000Z | src-common/nlang.ml | dbuenzli/remat | 28d572e77bbd1ad46bbfde87c0ba8bd0ab99ed28 | [
"BSD-3-Clause"
] | null | null | null | src-common/nlang.ml | dbuenzli/remat | 28d572e77bbd1ad46bbfde87c0ba8bd0ab99ed28 | [
"BSD-3-Clause"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright 2012 Daniel C. Bünzli. All rights reserved.
Distributed under the BSD3 license, see license at the end of the file.
%%NAME%% release %%VERSION%%
---------------------------------------------------------------------------*... | 35.706294 | 80 | 0.608304 |
bcaac792c36a0a2e43eaebd009b3966a5554ab19 | 33,860 | ml | OCaml | template-coq/src/denote.ml | flupe/metacoq | 3f14a8941e6099631cdd059f0c06e3ab87f91030 | [
"MIT"
] | null | null | null | template-coq/src/denote.ml | flupe/metacoq | 3f14a8941e6099631cdd059f0c06e3ab87f91030 | [
"MIT"
] | null | null | null | template-coq/src/denote.ml | flupe/metacoq | 3f14a8941e6099631cdd059f0c06e3ab87f91030 | [
"MIT"
] | null | null | null | (* open Univ
* open Names *)
open Pp (* this adds the ++ to the current scope *)
open Names
open Quoted
open Denoter
(* todo: the recursive call is uneeded provided we call it on well formed terms *)
let strict_unquote_universe_mode = ref true
let map_evm (f : 'a -> 'b -> 'a * 'c) (evm : 'a) (l : 'b list) : 'a * ('... | 49.648094 | 169 | 0.598139 |
bc8fa9df1a6cfb8e73004d5d8525d8803704bfac | 10,597 | ml | OCaml | src/lib/pbs.ml | hammerlab/ketrew | 8940d48fbe174709f076b7130974ecd0ed831d58 | [
"Apache-2.0"
] | 73 | 2015-01-15T21:38:02.000Z | 2022-01-10T17:53:07.000Z | src/lib/pbs.ml | DavidAlphaFox/ketrew | 8940d48fbe174709f076b7130974ecd0ed831d58 | [
"Apache-2.0"
] | 396 | 2015-01-13T19:49:37.000Z | 2018-02-05T00:29:31.000Z | src/lib/pbs.ml | DavidAlphaFox/ketrew | 8940d48fbe174709f076b7130974ecd0ed831d58 | [
"Apache-2.0"
] | 10 | 2015-01-13T03:12:30.000Z | 2020-09-14T02:52:37.000Z | (**************************************************************************)
(* Copyright 2014, 2015: *)
(* Sebastien Mondet <seb@mondet.org>, *)
(* Leonid Rozenberg <leonidr@gmail.com>, *)
(* ... | 36.795139 | 82 | 0.545343 |
bcf52ecda0f1a07d38f9fccd8c86c635ef2e165f | 1,846 | ml | OCaml | libraries/cloudformation/lib/describeStackSetOperation.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/describeStackSetOperation.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudformation/lib/describeStackSetOperation.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DescribeStackSetOperationInput.t
type output = DescribeStackSetOperationOutput.t
type error = Errors_internal.t
let service = "cloudformation"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of servic... | 27.552239 | 90 | 0.62026 |
aa2855f95f7f17d93e9c12f277a8ef2dda9a8a3b | 3,092 | mli | OCaml | vendors/tezos-modded/src/lib_shell/validator.mli | web-vertalo/ligo | 153bf691992580f4d163f4e8129292f7759efd5b | [
"MIT"
] | null | null | null | vendors/tezos-modded/src/lib_shell/validator.mli | web-vertalo/ligo | 153bf691992580f4d163f4e8129292f7759efd5b | [
"MIT"
] | null | null | null | vendors/tezos-modded/src/lib_shell/validator.mli | web-vertalo/ligo | 153bf691992580f4d163f4e8129292f7759efd5b | [
"MIT"
] | 1 | 2021-08-18T16:15:52.000Z | 2021-08-18T16:15:52.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 44.811594 | 79 | 0.55304 |
bc67afae760aa9abc3e3e5777d8d7279a4ffa720 | 14,739 | ml | OCaml | src/ocaml-3.12.0/toplevel/genprintval.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/toplevel/genprintval.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/toplevel/genprintval.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Leroy and Jero... | 40.270492 | 79 | 0.502816 |
44fcf94a2376c91ca977ff3277d6e1cf71e33836 | 947 | mli | OCaml | ast/traverse_unstable_for_testing.mli | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 57 | 2019-05-15T14:23:37.000Z | 2021-05-24T19:23:19.000Z | ast/traverse_unstable_for_testing.mli | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 53 | 2019-06-06T16:27:15.000Z | 2020-05-14T18:05:50.000Z | ast/traverse_unstable_for_testing.mli | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 7 | 2019-06-03T15:07:32.000Z | 2020-04-06T14:06:22.000Z | (*$ Ppx_ast_cinaps.print_traverse_mli (Astlib.Version.of_string "Unstable_for_testing") *)
class map :
object
inherit Traverse_builtins.map
inherit Virtual_traverse.Unstable_for_testing.map
end
class iter :
object
inherit Traverse_builtins.iter
inherit Virtual_traverse.Unstable_for_testing.iter
... | 24.921053 | 90 | 0.760296 |
aa30818e48717eaf4388b2607f8802c7e5825c4c | 22,348 | ml | OCaml | tezt/lib_tezos/RPC.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | null | null | null | tezt/lib_tezos/RPC.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | null | null | null | tezt/lib_tezos/RPC.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | 1 | 2021-07-19T07:00:37.000Z | 2021-07-19T07:00:37.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)
... | 39.414462 | 80 | 0.64583 |
bcd6b95ec7e710629ccc9fe8582443e4b0bec4ac | 16,938 | ml | OCaml | ast.ml | larsiusprime/haxe | f47516d01fdfbe3b563eecad4b8dba51809ebf3e | [
"MIT"
] | null | null | null | ast.ml | larsiusprime/haxe | f47516d01fdfbe3b563eecad4b8dba51809ebf3e | [
"MIT"
] | null | null | null | ast.ml | larsiusprime/haxe | f47516d01fdfbe3b563eecad4b8dba51809ebf3e | [
"MIT"
] | null | null | null | (*
* Copyright (C)2005-2013 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge,... | 21.912031 | 141 | 0.617428 |
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.