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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
449229e1185640d5e7d2c8b2c46db11f7a7a9f26 | 14,941 | ml | OCaml | lib/worker/job_worker.ml | samoht/ciso | cd64117e0a97df7461b1311d107fe80e5a71dd49 | [
"0BSD"
] | 12 | 2015-08-24T17:12:46.000Z | 2016-03-23T21:53:22.000Z | lib/worker/job_worker.ml | samoht/ciso | cd64117e0a97df7461b1311d107fe80e5a71dd49 | [
"0BSD"
] | 10 | 2015-08-12T17:45:12.000Z | 2015-12-30T01:22:42.000Z | lib/worker/job_worker.ml | sevenEng/ocaml-ci | cd64117e0a97df7461b1311d107fe80e5a71dd49 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2015 David Sheets <sheets@alum.mit.edu>
* Copyright (c) 2015 Qi Li <liqi0425@gmail.com>
* Copyright (c) 2015 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provid... | 32.837363 | 83 | 0.620574 |
bcac3d0edfa25f169e826e8aa7ad44167cc7e1ea | 2,424 | ml | OCaml | src/support/support.ml | workflowfm/workflowfm-reasoner | 7629437c36174e4b27c95bb8804eba9e5b62680e | [
"Apache-2.0"
] | 1 | 2021-06-20T15:33:32.000Z | 2021-06-20T15:33:32.000Z | src/support/support.ml | workflowfm/workflowfm-reasoner | 7629437c36174e4b27c95bb8804eba9e5b62680e | [
"Apache-2.0"
] | 2 | 2021-06-10T14:55:00.000Z | 2021-06-10T15:01:22.000Z | src/support/support.ml | workflowfm/workflowfm-reasoner | 7629437c36174e4b27c95bb8804eba9e5b62680e | [
"Apache-2.0"
] | null | null | null | (* ========================================================================= *)
(* Useful general functions, theorems, tactics, conversions, etc. *)
(* *)
(* Petros Papapanagiotou *)
... | 47.529412 | 97 | 0.411304 |
8a2404d146e03cb3f3d24b5b64d997b60d3d1012 | 2,216 | ml | OCaml | tests_native/fragment_definition.ml | baransu/graphql_ppx_re | eb8648d1552fbc11989b9197ef41a7a958b2545f | [
"MIT"
] | 60 | 2019-08-11T07:11:16.000Z | 2020-01-15T13:24:06.000Z | tests_native/fragment_definition.ml | reasonml-community/graphql_ppx | eb8648d1552fbc11989b9197ef41a7a958b2545f | [
"MIT"
] | 90 | 2020-01-23T18:15:26.000Z | 2020-06-18T01:05:42.000Z | tests_native/fragment_definition.ml | teamwalnut/graphql-ppx | 4a1fbfebf99a3b291bf647a49e069eba1f471f52 | [
"MIT"
] | 13 | 2019-10-07T04:47:32.000Z | 2020-01-04T20:00:33.000Z | open Test_shared;;
[%graphql
{|
fragment ListFragment on Lists {
nullableOfNullable
nullableOfNonNullable
}
|}]
module MyQuery =
[%graphql
{|
query {
l1: lists {
...ListFragment
}
l2: lists {
...ListFragment @bsField(name: "frag1")
...ListFragment @bsField(name: "frag2")... | 23.827957 | 80 | 0.548736 |
bc8d878b6cf23638e451d2bc56ac6e982c192d1f | 463 | ml | OCaml | result/cafe2/formula/sub86/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/prog/formula/sub86/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/prog/formula/sub86/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type formula =
| True
| False
| Not of formula
| AndAlso of (formula * formula)
| OrElse of (formula * formula)
| Imply of (formula * formula)
| Equal of (exp * exp)
and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp)
let rec eval (f : formula) : bool =
match f with True -> true | False ... | 24.368421 | 65 | 0.591793 |
bced72557a6a24b2f6f29872a9d880bc5386c82d | 663 | ml | OCaml | ppx/standalone/standalone.ml | Khady/lrt | 696760ffb8fa7962a14b4cfb1603f04e9b732a21 | [
"MIT"
] | 24 | 2020-05-29T19:35:23.000Z | 2021-11-14T17:12:04.000Z | ppx/standalone/standalone.ml | Khady/lrt | 696760ffb8fa7962a14b4cfb1603f04e9b732a21 | [
"MIT"
] | 2 | 2020-06-29T17:26:23.000Z | 2020-11-02T09:28:03.000Z | ppx/standalone/standalone.ml | Khady/lrt | 696760ffb8fa7962a14b4cfb1603f04e9b732a21 | [
"MIT"
] | 2 | 2020-08-29T00:07:30.000Z | 2020-11-02T09:25:42.000Z | (******************************************************************************)
(* Copyright (C) 2020 by LexiFi. *)
(* *)
(* This source file is released under the terms of the MIT license as part ... | 39 | 80 | 0.387632 |
bc9afae6ac18e96b1094ef75ed1a412ee95aabb3 | 1,442 | ml | OCaml | day03/day03.ml | illbexyz/advent-of-code-2020 | dfb7cad0fa1eddf875967ed1f11a9ab6e6cf3cc1 | [
"MIT"
] | 6 | 2020-12-01T13:40:27.000Z | 2021-12-01T05:21:37.000Z | day03/day03.ml | illbexyz/advent-of-code-2020 | dfb7cad0fa1eddf875967ed1f11a9ab6e6cf3cc1 | [
"MIT"
] | null | null | null | day03/day03.ml | illbexyz/advent-of-code-2020 | dfb7cad0fa1eddf875967ed1f11a9ab6e6cf3cc1 | [
"MIT"
] | null | null | null | open Base
open Stdio
let slopes = [ (1, 1); (3, 1); (5, 1); (7, 1); (1, 2) ]
module Forest = struct
type cell = Open | Tree
type t = cell array array
let build lines : t =
lines |> Array.of_list
|> Array.map ~f:(fun line ->
line |> String.to_array
|> Array.map ~f:(fun c -> if Cha... | 28.84 | 78 | 0.626214 |
445a29fd4466d7be943c1286749e809752f06433 | 2,112 | mli | OCaml | server/review_analysis.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | server/review_analysis.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | server/review_analysis.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | open! Core
open! Import
(** This module only contains the types and some accessors to manipulate the review
analysis, to be used by various modules such as review_manager without introducing a
cyclic dependency. The whole logic to build values of that types needs to access the
server state and thus lives ... | 34.064516 | 89 | 0.735795 |
bce3b7089b7d7f15637c70702850865b163df378 | 11,046 | ml | OCaml | src/www/main.ml | gfxmonk/passe | 276cea0cdb3b647ae9a1077845d98bb37ee21d95 | [
"MIT"
] | 4 | 2015-12-28T13:48:05.000Z | 2019-06-05T11:54:44.000Z | src/www/main.ml | gfxmonk/passe | 276cea0cdb3b647ae9a1077845d98bb37ee21d95 | [
"MIT"
] | null | null | null | src/www/main.ml | gfxmonk/passe | 276cea0cdb3b647ae9a1077845d98bb37ee21d95 | [
"MIT"
] | null | null | null | open Js_of_ocaml
open Vdoml
open Passe
open Passe_js
open Lwt
open Js
open Dom_html
open Common
open React_ext
module J = Json_ext
module Log = (val Logging.log_module "main")
let s = Js.string
exception Fail
type dialog_type = [ `about | `account_settings ]
type t = {
incognito : bool;
dialog: dialog_type option;
... | 30.429752 | 120 | 0.7218 |
bc93cb2d1c742caf5140c54aba8030f58819ffb9 | 3,505 | ml | OCaml | src/ffi/bindings/mmdb_ffi_bindings.ml | issuu/ocaml-mmdb | cd7b081df73685825e2527dbc3bc6f6a306a3659 | [
"Apache-2.0"
] | 2 | 2019-09-30T20:24:44.000Z | 2019-09-30T23:21:38.000Z | src/ffi/bindings/mmdb_ffi_bindings.ml | issuu/ocaml-mmdb | cd7b081df73685825e2527dbc3bc6f6a306a3659 | [
"Apache-2.0"
] | 11 | 2019-02-26T13:35:16.000Z | 2019-08-22T10:44:06.000Z | src/ffi/bindings/mmdb_ffi_bindings.ml | issuu/ocaml-mmdb | cd7b081df73685825e2527dbc3bc6f6a306a3659 | [
"Apache-2.0"
] | null | null | null | module T = Mmdb_types
module M (F : Ctypes.FOREIGN) = struct
module C = struct
include Ctypes
let ( @-> ) = F.( @-> )
let returning = F.returning
end
module Core = struct
let open_file =
F.foreign "MMDB_open" C.(ptr char @-> int @-> T.Mmdb.t @-> returning int)
let close = F.foreign ... | 31.294643 | 89 | 0.677889 |
44f9a94a7c379a7110a8d7810334a90d3ea7033f | 3,284 | ml | OCaml | src/ctx.ml | ilyasergey/AdaptiveFuzz | 8c834a21de2e8c04b07f0e9e5d209a015675247c | [
"BSD-3-Clause"
] | 5 | 2017-08-24T06:03:24.000Z | 2018-10-04T18:48:59.000Z | src/ctx.ml | ilyasergey/AdaptiveFuzz | 8c834a21de2e8c04b07f0e9e5d209a015675247c | [
"BSD-3-Clause"
] | null | null | null | src/ctx.ml | ilyasergey/AdaptiveFuzz | 8c834a21de2e8c04b07f0e9e5d209a015675247c | [
"BSD-3-Clause"
] | 3 | 2017-09-25T02:14:35.000Z | 2021-07-22T07:05:40.000Z | (* Copyright (c) 2013, The Trustees of the University of Pennsylvania
All rights reserved.
LICENSE: 3-clause BSD style.
See the LICENSE file for details on licensing.
*)
open Types
open Syntax
(* ---------------------------------------------------------------------- *)
(* Context *)
(* A default empty cont... | 32.84 | 141 | 0.595615 |
bc7fed6f79e8234cab39daa82f1db2bd78d16e51 | 20,972 | ml | OCaml | src/ocaml/parsing/406/ast_helper.ml | actionshrimp/merlin | c6b5704417a550caeb9cb9806cc2fb5eda52c454 | [
"MIT"
] | null | null | null | src/ocaml/parsing/406/ast_helper.ml | actionshrimp/merlin | c6b5704417a550caeb9cb9806cc2fb5eda52c454 | [
"MIT"
] | null | null | null | src/ocaml/parsing/406/ast_helper.ml | actionshrimp/merlin | c6b5704417a550caeb9cb9806cc2fb5eda52c454 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 35.849573 | 79 | 0.599752 |
44fc268bb8bc3b775a1f4fe603ed0996fbe2eaf6 | 4,630 | ml | OCaml | infer/src/checkers/inefficientKeysetIterator.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | 1 | 2020-07-16T19:38:04.000Z | 2020-07-16T19:38:04.000Z | infer/src/checkers/inefficientKeysetIterator.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | 8 | 2021-03-01T21:21:21.000Z | 2022-02-27T09:02:52.000Z | infer/src/checkers/inefficientKeysetIterator.ml | abhinavsinha001/infer | 2547a75b8b4089d315c9103a20108468808e3095 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module CFG = ProcCfg.Normal
module LoopNodes = AbstractDomain.FiniteSet (Procdesc.Node)
let find_loade... | 37.95082 | 100 | 0.633477 |
bcdd01fde2361ce1cef0342fda6f0edba10ffcec | 7,142 | ml | OCaml | duniverse/ocaml-migrate-parsetree/src/migrate_parsetree_406_405.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ocaml-migrate-parsetree/src/migrate_parsetree_406_405.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/ocaml-migrate-parsetree/src/migrate_parsetree_406_405.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml Migrate Parsetree *)
(* *)
(* ... | 54.519084 | 140 | 0.637076 |
bc41d13740fc836a7b08a805d0db0110543e938d | 4,459 | ml | OCaml | src/ListComponents.ml | SaswatPadhi/LIG-CHC | 221c3f1c2996ced60384abb8716239086d24ec53 | [
"MIT"
] | null | null | null | src/ListComponents.ml | SaswatPadhi/LIG-CHC | 221c3f1c2996ced60384abb8716239086d24ec53 | [
"MIT"
] | null | null | null | src/ListComponents.ml | SaswatPadhi/LIG-CHC | 221c3f1c2996ced60384abb8716239086d24ec53 | [
"MIT"
] | null | null | null | open Base
open Expr
let all_qf = [
{
(MakeComponent.unary "len") with
codomain = Type.INT;
domain = Type.[LIST (TVAR 0)];
check_arg_ASTs = (function _ -> true);
evaluate = Value.(fun [@warning "-8"] [List (_,l)] -> Int (List.length l))
} ;
{
(MakeComponent.unary "hd") with
codomain =... | 41.672897 | 117 | 0.553487 |
442fe2cf9efb8f9214c26e5693255f4dd7b4d552 | 1,738 | ml | OCaml | libraries/ec2/lib/registerImage.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/registerImage.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/registerImage.ml | apeschar/ocaml-aws | 4d76d0d760b0e94f496ee49bd3f68fcb671308b8 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = RegisterImageRequest.t
type output = RegisterImageResult.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)))
(List.appen... | 30.491228 | 93 | 0.567894 |
bce7243ffa6a34b9b62c542714a8c93d29fcf256 | 205 | mli | OCaml | libraries/sdb/lib/batchPutAttributes.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/sdb/lib/batchPutAttributes.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/sdb/lib/batchPutAttributes.mli | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | open Types
type input = BatchPutAttributesRequest.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 29.285714 | 74 | 0.736585 |
8aca040f851a0aa4f723243649d0d9c15fcf6efd | 2,825 | ml | OCaml | lib/util.ml | voodoos/mdx | b056a89e37383731f2795a2cf62edeea5c60b8a4 | [
"0BSD"
] | null | null | null | lib/util.ml | voodoos/mdx | b056a89e37383731f2795a2cf62edeea5c60b8a4 | [
"0BSD"
] | null | null | null | lib/util.ml | voodoos/mdx | b056a89e37383731f2795a2cf62edeea5c60b8a4 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2019 Nathan Rebours <nathan.p.rebours@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "... | 26.401869 | 75 | 0.613805 |
bcd0d2c6b3ba17af03ddb229b19f9b4e879dfb32 | 9,653 | ml | OCaml | infer/src/biabduction/RetainCycles.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | infer/src/biabduction/RetainCycles.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | infer/src/biabduction/RetainCycles.ml | Static-Analysis-Tools/infer | 2a920fc3e510384b51daad9e4e81ff7c6785ab4f | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module MF = MarkupFormatter
let desc_retain_cycle tenv (cycle : RetainCyclesType.t) =
let open RetainCyclesType in
L... | 38.305556 | 103 | 0.64612 |
bcc4d13f7e23ab709121624eb11e14b197e6236d | 7,808 | ml | OCaml | src/lib_stdlib_unix/file_descriptor_sink.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/lib_stdlib_unix/file_descriptor_sink.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/lib_stdlib_unix/file_descriptor_sink.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | (******************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2019 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* ... | 39.04 | 80 | 0.580686 |
bcf2f4f717f10216040ef014be2acdf08fe5d66c | 7,615 | ml | OCaml | src/incremental/compareCFG.ml | TDacik/analyzer | f5a98a0d321f02b6c217cbbb1c0f058315409c42 | [
"MIT"
] | null | null | null | src/incremental/compareCFG.ml | TDacik/analyzer | f5a98a0d321f02b6c217cbbb1c0f058315409c42 | [
"MIT"
] | null | null | null | src/incremental/compareCFG.ml | TDacik/analyzer | f5a98a0d321f02b6c217cbbb1c0f058315409c42 | [
"MIT"
] | null | null | null | open MyCFG
open Queue
open Cil
include CompareAST
let eq_node (x, fun1) (y, fun2) =
match x,y with
| Statement s1, Statement s2 -> (try eq_stmt ~cfg_comp:true (s1, fun1) (s2, fun2) with Invalid_argument _ -> false)
| Function f1, Function f2 -> eq_varinfo f1.svar f2.svar
| FunctionEntry f1, FunctionEntry f2 ->... | 57.255639 | 182 | 0.68956 |
44387cc1f19a7e00115f9fd002501fcb47561bd0 | 1,853 | ml | OCaml | libraries/ec2/lib/describeSecurityGroups.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeSecurityGroups.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/describeSecurityGroups.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
open Aws
type input = DescribeSecurityGroupsRequest.t
type output = DescribeSecurityGroupsResult.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 ... | 30.883333 | 102 | 0.576363 |
bced235a22b2f60ac2a8215b74d1f434a4c0f3fd | 328 | mli | OCaml | core/src/lazy.mli | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | core/src/lazy.mli | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | core/src/lazy.mli | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | (** This module extends {{!Base.Lazy}[Base.Lazy]}. *)
open! Import
type 'a t = 'a Base.Lazy.t
[@@deriving bin_io, compare, hash, quickcheck, sexp, sexp_grammar, typerep]
include module type of Base.Lazy with type 'a t := 'a t (** @inline *)
module Stable : sig
module V1 : Stable_module_types.S1 with type 'a t = '... | 25.230769 | 75 | 0.67378 |
af81a65a878ee19cef242e98d3a05a70ef7500a8 | 4,756 | mli | OCaml | src/middle/Semantic_error.mli | metrumresearchgroup/stanc3 | c3f71d11b64746fc99d615e62dc287b44a2ceb3c | [
"BSD-3-Clause"
] | null | null | null | src/middle/Semantic_error.mli | metrumresearchgroup/stanc3 | c3f71d11b64746fc99d615e62dc287b44a2ceb3c | [
"BSD-3-Clause"
] | null | null | null | src/middle/Semantic_error.mli | metrumresearchgroup/stanc3 | c3f71d11b64746fc99d615e62dc287b44a2ceb3c | [
"BSD-3-Clause"
] | null | null | null | type t
val pp : Format.formatter -> t -> unit
val location : t -> Location_span.t
val mismatched_return_types :
Location_span.t -> UnsizedType.returntype -> UnsizedType.returntype -> t
val mismatched_array_types :
Location_span.t -> UnsizedType.t -> UnsizedType.t -> t
val invalid_row_vector_types : Location_spa... | 38.666667 | 77 | 0.763246 |
bc9eff1a06248d4e35d2f0cb604f094b3bd8877f | 11,614 | mli | OCaml | src/fiber.mli | dbuenzli/affect | 5ccf1e2fea197f6257ccebffaff8ca0970a0d86c | [
"0BSD"
] | 32 | 2022-02-28T23:19:45.000Z | 2022-03-09T11:49:51.000Z | src/fiber.mli | dbuenzli/affect | 5ccf1e2fea197f6257ccebffaff8ca0970a0d86c | [
"0BSD"
] | 4 | 2022-02-28T23:28:24.000Z | 2022-03-15T18:37:41.000Z | src/fiber.mli | dbuenzli/affect | 5ccf1e2fea197f6257ccebffaff8ca0970a0d86c | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2022 The affect programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
(** Fibers.
Fiber... | 41.927798 | 79 | 0.651025 |
bc2c366cb85c0ddc5a28d2b4506e813b6e559ffc | 5,268 | ml | OCaml | src/dune_rules/scheme.ml | nojb/dune | fc4a21a513995d20a6b749ddea690ea491a893ae | [
"MIT"
] | 1 | 2022-03-18T02:24:50.000Z | 2022-03-18T02:24:50.000Z | src/dune_rules/scheme.ml | nojb/dune | fc4a21a513995d20a6b749ddea690ea491a893ae | [
"MIT"
] | null | null | null | src/dune_rules/scheme.ml | nojb/dune | fc4a21a513995d20a6b749ddea690ea491a893ae | [
"MIT"
] | 1 | 2021-05-07T18:08:53.000Z | 2021-05-07T18:08:53.000Z | open! Dune_engine
open! Stdune
open Memo.Build.O
module T = struct
type 'rules t =
| Empty
| Union of 'rules t * 'rules t
| Approximation of Path.Build.w Dir_set.t * 'rules t
| Finite of 'rules Path.Build.Map.t
| Thunk of (unit -> 'rules t Memo.Build.t)
end
include T
module Evaluated : sig
ty... | 31.927273 | 80 | 0.570046 |
44dcbd0ec5450aaef3e4e4727c7e39f00b7002fc | 4,397 | ml | OCaml | lib/Zinc_types.ml | Zett98/zinc | 577164574ce67f48ca1f09f8f4fc7fdce23c30b9 | [
"MIT"
] | null | null | null | lib/Zinc_types.ml | Zett98/zinc | 577164574ce67f48ca1f09f8f4fc7fdce23c30b9 | [
"MIT"
] | null | null | null | lib/Zinc_types.ml | Zett98/zinc | 577164574ce67f48ca1f09f8f4fc7fdce23c30b9 | [
"MIT"
] | null | null | null | open Zinc_utils
type address = string [@@deriving show { with_path = false }, eq, yojson]
type contract = string * address option
[@@deriving show { with_path = false }, eq, yojson]
type 'a zinc_instruction =
(*
Everything in here should be safe and trustworthy. Our assumption is that an adversary
can ... | 28.185897 | 106 | 0.668638 |
bce40d2423191e9ffd53bf3d96347c9988f5ab8b | 5,515 | mli | OCaml | server/dns_server.mli | roburio/udns | 585c40933ac3d5eceb351f7edd3f45cf2615a9f8 | [
"BSD-2-Clause"
] | 54 | 2018-01-10T19:41:01.000Z | 2019-05-20T11:52:04.000Z | server/dns_server.mli | roburio/udns | 585c40933ac3d5eceb351f7edd3f45cf2615a9f8 | [
"BSD-2-Clause"
] | 19 | 2018-02-20T17:35:04.000Z | 2019-06-27T20:47:08.000Z | server/dns_server.mli | roburio/udns | 585c40933ac3d5eceb351f7edd3f45cf2615a9f8 | [
"BSD-2-Clause"
] | 6 | 2018-02-25T23:51:16.000Z | 2019-04-11T11:57:29.000Z | (* (c) 2017, 2018 Hannes Mehnert, all rights reserved *)
open Dns
(** DNS Server implementation *)
(** Authentication, stored in a Dns_trie with privileges to operations embedded in the name. *)
module Authentication : sig
type operation = [
| `Update
| `Transfer
]
(** The type of operations. *)
typ... | 39.676259 | 113 | 0.643518 |
bcf97bdf554260907850dbac30342fd8eb61c5f0 | 26,617 | ml | OCaml | lib/types.ml | alexchang8/petr4 | e80fefa9e02f5f88bf399983f5a0cc96c66ae86f | [
"Apache-2.0"
] | null | null | null | lib/types.ml | alexchang8/petr4 | e80fefa9e02f5f88bf399983f5a0cc96c66ae86f | [
"Apache-2.0"
] | null | null | null | lib/types.ml | alexchang8/petr4 | e80fefa9e02f5f88bf399983f5a0cc96c66ae86f | [
"Apache-2.0"
] | null | null | null | (* Copyright 2018-present Cornell University
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 27.988433 | 78 | 0.527708 |
bc6518d4403728509509756574c67ae96ff0e52b | 271 | ml | OCaml | src/os_fd.ml | glennsl/luv | 97497dec2fc205f13fef392423a9333e9ae5c3e1 | [
"MIT"
] | 253 | 2018-07-12T20:32:22.000Z | 2022-02-16T03:43:40.000Z | src/os_fd.ml | glennsl/luv | 97497dec2fc205f13fef392423a9333e9ae5c3e1 | [
"MIT"
] | 124 | 2018-11-21T03:06:42.000Z | 2022-03-11T01:48:36.000Z | src/os_fd.ml | glennsl/luv | 97497dec2fc205f13fef392423a9333e9ae5c3e1 | [
"MIT"
] | 23 | 2019-02-09T15:59:04.000Z | 2021-12-13T12:53:41.000Z | (* This file is part of Luv, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/aantron/luv/blob/master/LICENSE.md. *)
module Fd =
struct
type t = C.Types.Os_fd.t
end
module Socket =
struct
type t = C.Types.Os_socket.t
end
| 18.066667 | 79 | 0.712177 |
bce65195fddf0360b246719bd678ff9fcefdce0f | 201 | ml | OCaml | result/cafe2/sigma/sub5/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/cafe2/sigma/sub5/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/cafe2/sigma/sub5/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let rec sigma (f : int -> int) (a : int) (b : int) : int =
if b = b - 1 then raise Invalid_argument "negative argument"
else if a = b then f b
else if a > b then 0
else f a + sigma f (a + 1) b
| 33.5 | 62 | 0.58209 |
449eb67732dc54884f5be4dca8846a87d1c78b6c | 110,142 | ml | OCaml | src/core/lwt.ml | DavidAlphaFox/lwt | 2b71571c5e01d317ad6ade653b5da7cd40ea622a | [
"MIT"
] | null | null | null | src/core/lwt.ml | DavidAlphaFox/lwt | 2b71571c5e01d317ad6ade653b5da7cd40ea622a | [
"MIT"
] | null | null | null | src/core/lwt.ml | DavidAlphaFox/lwt | 2b71571c5e01d317ad6ade653b5da7cd40ea622a | [
"MIT"
] | null | null | null | (* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *)
(* Reading guide
Welcome to the implementation of the Lwt core! This is a big file, but we
hope that reading it (parts at a time!) will not be scary :)... | 35.472464 | 94 | 0.671524 |
aa005633f5bba1863207634de13cb2b15dba5d31 | 93,145 | mli | OCaml | src/raylib/raylib.mli | sjpgarcia/raylib-ocaml | 82ec6d86423308364016bc68266a72af3a1e34d3 | [
"MIT"
] | null | null | null | src/raylib/raylib.mli | sjpgarcia/raylib-ocaml | 82ec6d86423308364016bc68266a72af3a1e34d3 | [
"MIT"
] | null | null | null | src/raylib/raylib.mli | sjpgarcia/raylib-ocaml | 82ec6d86423308364016bc68266a72af3a1e34d3 | [
"MIT"
] | null | null | null | (** {1 Ctypes reexports}
Basic types and utility functions shared by the following modules *)
(* Normally the ctypes show up as
* ('a, ['Struct]) Ctypes_static.structured.
* To shorten this a bit we make it private. Ideally it would be
* a completely abstract type but the gui bindings need to be able to
* handl... | 30.439542 | 188 | 0.696978 |
bcb5eb877d270f14c529dd14ac0ce40c092cc163 | 1,859 | mll | OCaml | duniverse/opam/src/format/opamInterpLexer.mll | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/format/opamInterpLexer.mll | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/format/opamInterpLexer.mll | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* Copyright 2016 MetaStack Solutions Ltd. *)
(* *)
(* All righ... | 43.232558 | 76 | 0.372243 |
bcfab4383d7712f81e19eb42f7da7fb21c590e7f | 100,141 | mli | OCaml | ocaml_modules/topkg/src/topkg.mli | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/topkg/src/topkg.mli | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/topkg/src/topkg.mli | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2016 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
(** ... | 39.612737 | 174 | 0.653449 |
bcc01953037d208839dbc01b72b097d442205017 | 793 | ml | OCaml | interpreter/spec/instance.ml | backes/spec | a8fbb8589ac152d5ad892e532e0a616839022246 | [
"Apache-2.0"
] | null | null | null | interpreter/spec/instance.ml | backes/spec | a8fbb8589ac152d5ad892e532e0a616839022246 | [
"Apache-2.0"
] | null | null | null | interpreter/spec/instance.ml | backes/spec | a8fbb8589ac152d5ad892e532e0a616839022246 | [
"Apache-2.0"
] | null | null | null | open Values
module ExportMap = Map.Make(struct type t = Ast.name let compare = compare end)
type global = value ref
type closure =
| AstFunc of instance ref * Ast.func
| HostFunc of Types.func_type * (value list -> value list)
and extern =
| ExternalFunc of closure
| ExternalTable of Table.t
| ExternalMem... | 22.657143 | 79 | 0.686003 |
aa0f12727cc3bafe1a8c896d3a30c07706302eae | 10,779 | ml | OCaml | src/dune_rules/findlib/meta.ml | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | src/dune_rules/findlib/meta.ml | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | src/dune_rules/findlib/meta.ml | ocaml/jbuilder | bd53904712bf5991d7a02c70a3a1daf7be333c80 | [
"MIT"
] | null | null | null | open Import
module Meta_parser = Dune_meta_parser.Meta_parser.Make (struct
include Stdune
module Lib_name = Lib_name
end)
include Meta_parser
let dyn_of_action = function
| Set -> Dyn.variant "Set" []
| Add -> Dyn.variant "Add" []
let dyn_of_predicate =
let open Dyn in
function
| Pos s -> variant "Pos... | 29.211382 | 80 | 0.59319 |
44c9a4e134dea5ea2d629fc0d8f8377783751621 | 330 | ml | OCaml | ecaml_value/src/ecaml_value.ml | andersfugmann/ecaml | c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c | [
"MIT"
] | 245 | 2016-08-29T14:21:13.000Z | 2022-03-12T04:08:52.000Z | ecaml_value/src/ecaml_value.ml | andersfugmann/ecaml | c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c | [
"MIT"
] | 13 | 2016-08-29T14:55:35.000Z | 2021-07-30T04:25:32.000Z | ecaml_value/src/ecaml_value.ml | andersfugmann/ecaml | c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c | [
"MIT"
] | 13 | 2016-08-30T00:53:52.000Z | 2021-12-17T02:51:25.000Z | module Caml_embed = Caml_embed
module Ecaml_callback = Ecaml_callback
module Feature = Feature
module Form = Form
module Funcall = Funcall
module Function = Function
module Symbol = Symbol
module Value = Value
module Valueable = Valueable
let message = Value.message
let messagef = Value.messagef
let message_s = Value.... | 23.571429 | 38 | 0.806061 |
8a801ca3152206f4a200b47af570f6aedbbdebd9 | 2,010 | ml | OCaml | 2nd/compiler/block.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/block.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | null | null | null | 2nd/compiler/block.ml | keitaroskmt/cpuex2020_1 | 33cdc033a6184286232f4ce7729030708213b6f8 | [
"BSD-3-Clause-Attribution",
"FSFAP"
] | 3 | 2020-10-08T04:16:58.000Z | 2021-10-11T13:19:30.000Z | type t =
| OPER of {
dst: (Id.t * Type.t) list;
src: (Id.t * Type.t) list;
jump: Id.l list option;
}
| LABEL of {
lab: Id.l;
}
| MOVE of {
dst: (Id.t * Type.t) list;
src: (Id.t * Type.t) list;
}
let block_debug oc l =
let rec print_t = function
| OPER {dst; src; jump} ->
... | 27.162162 | 79 | 0.547761 |
bceb938a4e95cb35908073902f35d6b9dc0689cd | 18,035 | ml | OCaml | src/ocaml_400/typing/typedtree.ml | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | 1 | 2021-03-12T10:45:56.000Z | 2021-03-12T10:45:56.000Z | src/ocaml_400/typing/typedtree.ml | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | src/ocaml_400/typing/typedtree.ml | jordwalke/merlin | 40cd1704df97d7e74e17824b684438a4e55c1771 | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 30.516074 | 80 | 0.680676 |
bcf3a2df0ac017c32ebc3240376360636bcd8a63 | 1,389 | mli | OCaml | infer/src/clang/CLintersContext.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | 1 | 2019-11-23T14:35:34.000Z | 2019-11-23T14:35:34.000Z | infer/src/clang/CLintersContext.mli | seonhoLee-ms/symexec | 1e04ee78410e01fcc5346213fbfa13d9d15949a5 | [
"MIT"
] | null | null | null | infer/src/clang/CLintersContext.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
type if_context =
{ within_responds_to_selector_block: string list
; within_available_class_block: string list
; ... | 38.583333 | 95 | 0.74874 |
bcf57905f1fe2d9ee2be47bb6596ac242dfee5c4 | 252 | ml | OCaml | lib/parser.ml | davesnx/ocaml-css-parser | 08725162863857348f36d19fcc507d21b3eab92f | [
"MIT"
] | null | null | null | lib/parser.ml | davesnx/ocaml-css-parser | 08725162863857348f36d19fcc507d21b3eab92f | [
"MIT"
] | null | null | null | lib/parser.ml | davesnx/ocaml-css-parser | 08725162863857348f36d19fcc507d21b3eab92f | [
"MIT"
] | null | null | null | let parse_stylesheet ?container_lnum ?pos css =
Lexer.parse_string ?container_lnum ?pos css Menhir_parser.stylesheet
let parse_declaration_list ?container_lnum ?pos css =
Lexer.parse_string ?container_lnum ?pos css Menhir_parser.declaration_list
| 36 | 76 | 0.833333 |
bca9261eb6771a049ed2874d67aaf650c8ece64d | 2,264 | ml | OCaml | bytecomp/types.ml | nojb/ocaml-c0 | f4dd0d04603c0ad16e8e1c910a79dfdee36c50b2 | [
"MIT"
] | 4 | 2015-04-23T21:30:12.000Z | 2018-05-29T20:29:05.000Z | bytecomp/types.ml | nojb/ocaml-c0 | f4dd0d04603c0ad16e8e1c910a79dfdee36c50b2 | [
"MIT"
] | null | null | null | bytecomp/types.ml | nojb/ocaml-c0 | f4dd0d04603c0ad16e8e1c910a79dfdee36c50b2 | [
"MIT"
] | null | null | null | (* The MIT License (MIT)
Copyright (c) 2014 Nicolas Ojeda Bar <n.oje.bar@gmail.com>
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 t... | 33.294118 | 83 | 0.689488 |
aa03dbc53a2d461425879fa08707e9c5216e8ac0 | 24,200 | ml | OCaml | src/analysis/completion.ml | alfa07/merlin | 95d1fad48bcdcd3032feb4ff5d2fa3a4834aca46 | [
"MIT"
] | null | null | null | src/analysis/completion.ml | alfa07/merlin | 95d1fad48bcdcd3032feb4ff5d2fa3a4834aca46 | [
"MIT"
] | null | null | null | src/analysis/completion.ml | alfa07/merlin | 95d1fad48bcdcd3032feb4ff5d2fa3a4834aca46 | [
"MIT"
] | 1 | 2017-11-06T17:46:59.000Z | 2017-11-06T17:46:59.000Z | (* {{{ COPYING *(
This file is part of Merlin, an helper for ocaml editors
Copyright (C) 2013 - 2015 Frédéric Bour <frederic.bour(_)lakaban.net>
Thomas Refis <refis.thomas(_)gmail.com>
Simon Castellan <simon.castellan(_)iuwt.fr>
... | 37.636081 | 100 | 0.606446 |
bcd180592e57aadfdc784300f65b2a0bd1e3e59c | 203 | ml | OCaml | benchmarks/C/iter/sol416.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/iter/sol416.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/iter/sol416.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec iter : int * (int -> int) -> (int -> int)
= fun (n,f) -> (*TODO*)
match n with
| 0 -> (fun x -> x)
| _ -> (fun x -> f(iter(n-1, f) x));;
iter(3, fun x -> 2+x) 0;;
iter(5, fun x -> 2+x) 0;; | 25.375 | 49 | 0.433498 |
bcae016346750a608f463cac94da6a6920ad36df | 834 | ml | OCaml | result/fixml/diff/sub39/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/diff/sub39/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/diff/sub39/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec diff : aexp * string -> aexp =
fun (aexp, x) ->
match aexp with
| Const n -> Const 0
| Var v -> if v = x then Const 1 else Const 0
| Power (v, n) ->
if v = x then
if n =... | 26.0625 | 80 | 0.435252 |
bc049eabdc68ff3090f3a6ac13e8a308703a2717 | 30,325 | mll | OCaml | lexer.mll | suma/masmfront | 63b3acd4b1696efd942b5a53c50278ade43a17d3 | [
"Apache-2.0"
] | 2 | 2015-06-29T13:27:30.000Z | 2019-09-23T19:55:56.000Z | lexer.mll | suma/masmfront | 63b3acd4b1696efd942b5a53c50278ade43a17d3 | [
"Apache-2.0"
] | null | null | null | lexer.mll | suma/masmfront | 63b3acd4b1696efd942b5a53c50278ade43a17d3 | [
"Apache-2.0"
] | 1 | 2021-04-05T19:16:45.000Z | 2021-04-05T19:16:45.000Z |
{
open Parser
open Parserhelper
open Type
open Printf
let delete_front str rm =
let len = (String.length str) - rm in
String.sub str rm len
let delete_back str rm =
let len = (String.length str) - rm in
String.sub str 0 len
let string_cut str front back =
let len = (String.length str) - front - back in
... | 32.677802 | 92 | 0.634031 |
bc823b010a1a4894cb8207f7a9678d73ef743c76 | 4,792 | ml | OCaml | test/canonical/test_linearize.ml | arucil/tiger | f3c26019925e70f01e35f41664934fe99d451eab | [
"MIT"
] | null | null | null | test/canonical/test_linearize.ml | arucil/tiger | f3c26019925e70f01e35f41664934fe99d451eab | [
"MIT"
] | null | null | null | test/canonical/test_linearize.ml | arucil/tiger | f3c26019925e70f01e35f41664934fe99d451eab | [
"MIT"
] | null | null | null | open Base
open OUnit2
open Lex
open Parse
open Semantic
open Canonical
open Stdio
open Platform
open Common
let run_linearize s =
let temp_file = Caml.Filename.temp_file "tiger_canonical_" "" in
let oc = Out_channel.create ~append:false temp_file in
Errors.set_out oc;
Errors.set_source_name "-";
let expr = P... | 27.54023 | 107 | 0.574499 |
bc6832ea30fa44623fa457d19c70ff38a24e46ed | 302 | ml | OCaml | benchmarks/C/lambda/sol45.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/lambda/sol45.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/lambda/sol45.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 rec check2(l, m) =
match m with
V a -> List.exists (fun n-> n=a) l
|P(a, b) -> check2(a::l, b)
|C(a, b) -> check2(l, a) && check2(l, b)
;;
let check m =
check2([], m)
;;
| 17.764706 | 48 | 0.480132 |
bced3fc126c5185d143ea6f18ddf61b10d024083 | 1,862 | ml | OCaml | examples/webmachine_lwt_counter.ml | avsm/ocaml-session | 160a8a779a9fb555e255b930b085f25f09708d0c | [
"BSD-3-Clause"
] | null | null | null | examples/webmachine_lwt_counter.ml | avsm/ocaml-session | 160a8a779a9fb555e255b930b085f25f09708d0c | [
"BSD-3-Clause"
] | null | null | null | examples/webmachine_lwt_counter.ml | avsm/ocaml-session | 160a8a779a9fb555e255b930b085f25f09708d0c | [
"BSD-3-Clause"
] | null | null | null | module Session = struct
module Backend = struct
include Session.Lift.IO(Lwt)(Session.Memory)
let create () = Session.Memory.create ()
end
include Session_webmachine.Make(Lwt)(Backend)
end
let cookie_key = "__counter_session"
module Rd = Webmachine.Rd
include Webmachine.Make(Cohttp_lwt_unix_io)
open Lwt... | 26.6 | 83 | 0.676155 |
aa1846625f13c1db3983811ea4f1030d6f3b7fe0 | 21,896 | ml | OCaml | bin/gdfuse.ml | josuearisty/google-drive-ocamlfuse | 500e400dbde827aac27a4a8cad3f0e81be467118 | [
"MIT"
] | 1 | 2018-08-22T08:30:34.000Z | 2018-08-22T08:30:34.000Z | bin/gdfuse.ml | josuearisty/google-drive-ocamlfuse | 500e400dbde827aac27a4a8cad3f0e81be467118 | [
"MIT"
] | null | null | null | bin/gdfuse.ml | josuearisty/google-drive-ocamlfuse | 500e400dbde827aac27a4a8cad3f0e81be467118 | [
"MIT"
] | null | null | null | open GapiUtils.Infix
open GapiLens.Infix
let default_fs_label = "default"
let client_id = "564921029129.apps.googleusercontent.com"
let redirect_uri = GaeProxy.gae_proxy_url ^ "/oauth2callback"
(* Authorization *)
let get_authorization_url request_id =
GapiOAuth2.authorization_code_url
~redirect_uri
~scope... | 31.68741 | 80 | 0.656056 |
aa002a0351258214cdd44e49327736b1cec25ff7 | 2,201 | ml | OCaml | Examples/KingOfTheTezos/KingOfTheTezos_V2.ml | postables/Michelson | 36e4ead09e34e95ab0e82037643e8fe0d0888d13 | [
"MIT"
] | 22 | 2018-07-30T06:42:36.000Z | 2019-10-30T20:55:12.000Z | Examples/KingOfTheTezos/KingOfTheTezos_V2.ml | postables/Michelson | 36e4ead09e34e95ab0e82037643e8fe0d0888d13 | [
"MIT"
] | null | null | null | Examples/KingOfTheTezos/KingOfTheTezos_V2.ml | postables/Michelson | 36e4ead09e34e95ab0e82037643e8fe0d0888d13 | [
"MIT"
] | 1 | 2018-11-11T12:54:11.000Z | 2018-11-11T12:54:11.000Z | [%%version 0.3]
(* KingOfTheTezos - Tezos version of King Of The Ether *)
(* Author - Postables *)
(* Version - 0.2 *)
(* Must be played from kt1 addresses *)
type storage = {
owner : key_hash;
king : key_hash;
king_address : address;
throne : tez;
tribute : tez;
}
(* This is used to initialize our storage... | 34.936508 | 67 | 0.678782 |
aa0f84949c3bb194023195a1e08bf88b6f760846 | 22,010 | ml | OCaml | vendor/dune/src/scheduler.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/scheduler.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/scheduler.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Fiber.O
type job =
{ pid : int
; ivar : Unix.process_status Fiber.Ivar.t
}
module Signal = struct
type t = Int | Quit | Term
let compare : t -> t -> Ordering.t = compare
include Comparable.Make(struct
type nonrec t = t
let compare = compare
let to_dyn _ = ... | 27.931472 | 88 | 0.598183 |
44fc472ae60be195c4a51bff77f76c4970526505 | 1,956 | ml | OCaml | data/sp14_min/0033.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/0033.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0033.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 > 0 with | true -> x :: (clone x (n - 1)) | false -> [];;
let padZero l1 l2 =
let length1 = List.length l1 in
let length2 = List.length l2 in
match length1 >= length2 with
| true ->
let n = length1 - length2 in
let zeroes = clone 0 n in (l1, (List.append zeroes l2)... | 24.759494 | 79 | 0.547035 |
bcc3bd9de82ae29f3b68f7eb670c1bcd859eef9b | 1,361 | ml | OCaml | src/lib/Res.ml | c-cube/frog-utils | 3f68c606a7abe702f9e22a0606080191a2952b18 | [
"BSD-2-Clause"
] | 4 | 2015-03-18T16:27:30.000Z | 2019-05-14T11:49:53.000Z | src/lib/Res.ml | c-cube/frog-utils | 3f68c606a7abe702f9e22a0606080191a2952b18 | [
"BSD-2-Clause"
] | 29 | 2015-02-04T18:45:07.000Z | 2017-06-15T14:13:49.000Z | src/lib/Res.ml | c-cube/frog-utils | 3f68c606a7abe702f9e22a0606080191a2952b18 | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of frog-utils. See file "license" for more details. *)
[@@@warning "-39"]
type t =
| Sat
| Unsat
| Unknown
| Timeout
| Error
[@@deriving yojson,eq]
[@@@warning "+39"]
let to_string = function
| Sat -> "sat"
| Unsat -> "unsat"
| Unknown -> "unknown"
| Timeout ->... | 22.311475 | 90 | 0.583395 |
bceca9996eaaf3989427f3da7dfdb69561354d5a | 720 | ml | OCaml | lib/transept_genlex/lexeme.ml | d-plaindoux/transept | 4d8dccb48bda810b05fe8ebf24bc98b6ab73714e | [
"MIT"
] | 20 | 2020-02-10T10:54:56.000Z | 2021-11-09T17:59:57.000Z | lib/transept_genlex/lexeme.ml | d-plaindoux/transept | 4d8dccb48bda810b05fe8ebf24bc98b6ab73714e | [
"MIT"
] | 3 | 2020-03-06T08:21:36.000Z | 2020-06-08T16:49:44.000Z | lib/transept_genlex/lexeme.ml | d-plaindoux/transept | 4d8dccb48bda810b05fe8ebf24bc98b6ab73714e | [
"MIT"
] | 1 | 2020-05-27T17:27:15.000Z | 2020-05-27T17:27:15.000Z | type t =
| Float of float
| String of string
| Char of char
| Ident of string
| Keyword of string
| Spaces of string
| Special of char
module Make (Parser : Transept_specs.PARSER with type e = t) = struct
open Parser
let spaces = any >>= (function Spaces v -> return v | _ -> fail)
let any = opt s... | 24 | 76 | 0.595833 |
bcf01d326267e294b2d83fa7bac427b8d652d201 | 1,583 | mli | OCaml | lib/utils/src/my_map.mli | MattWindsor91/c4f | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 7 | 2018-11-27T23:53:58.000Z | 2020-11-22T11:56:16.000Z | lib/utils/src/my_map.mli | MattWindsor91/act | 8939477732861789abc807c8c1532a302b2848a5 | [
"CECILL-B",
"MIT"
] | 235 | 2018-10-03T16:37:36.000Z | 2020-11-22T16:26:51.000Z | lib/utils/src/my_map.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... | 35.977273 | 76 | 0.661402 |
aa077991c50f233572d2b91b48e3b2bfb0376db5 | 23,913 | mly | OCaml | src/passes/02-parsing/jsligo/Parser.mly | tezos-checker/ligo | a7fa6d848e09ca546331df827caa48b2d7925dff | [
"MIT"
] | null | null | null | src/passes/02-parsing/jsligo/Parser.mly | tezos-checker/ligo | a7fa6d848e09ca546331df827caa48b2d7925dff | [
"MIT"
] | null | null | null | src/passes/02-parsing/jsligo/Parser.mly | tezos-checker/ligo | a7fa6d848e09ca546331df827caa48b2d7925dff | [
"MIT"
] | null | null | null | %{
(* START HEADER *)
[@@@warning "-42"]
[@@@warning "-33"]
[@@@warning "-32"]
open Simple_utils.Region
module CST = Cst.Jsligo
open! CST
(* Utilities *)
let first_region = function
[] -> None
| x::_ -> Some x.Region.region
(* END HEADER *)
%}
(* To solve the dangling else problem. *)
%nonassoc below_ELSE
%non... | 23.015399 | 102 | 0.528834 |
bcbd154db96148250aed189f3de716906badef25 | 2,664 | ml | OCaml | VM/Private/Scope.ml | 5HT/ant | 6acf51f4c4ebcc06c52c595776e0293cfa2f1da4 | [
"0BSD"
] | 10 | 2021-09-24T12:15:42.000Z | 2021-11-02T13:50:22.000Z | VM/Private/Scope.ml | 5HT/ant | 6acf51f4c4ebcc06c52c595776e0293cfa2f1da4 | [
"0BSD"
] | null | null | null | VM/Private/Scope.ml | 5HT/ant | 6acf51f4c4ebcc06c52c595776e0293cfa2f1da4 | [
"0BSD"
] | 1 | 2021-10-24T02:48:48.000Z | 2021-10-24T02:48:48.000Z |
open Unicode.Types;
open Unicode.SymbolTable;
open Types;
type scope =
{
symbol_table : Hashtbl.t uc_string Lexer.token_class;
global_symbols : Hashtbl.t int unknown;
local_symbols : Hashtbl.t int (int * int);
depth : int;
shift : int
};
value create () =
{
symbol_table = Lexer.ini... | 19.880597 | 80 | 0.651652 |
bcd6276c2620489752207dada7407c6b0243e249 | 5,027 | ml | OCaml | benchmarks/multicore-minilight/parallel/minilight_multicore.ml | dinosaure/sandmark | 41c5f1276771ebe2651f5de8f7d9efdd36856d93 | [
"CC0-1.0"
] | null | null | null | benchmarks/multicore-minilight/parallel/minilight_multicore.ml | dinosaure/sandmark | 41c5f1276771ebe2651f5de8f7d9efdd36856d93 | [
"CC0-1.0"
] | null | null | null | benchmarks/multicore-minilight/parallel/minilight_multicore.ml | dinosaure/sandmark | 41c5f1276771ebe2651f5de8f7d9efdd36856d93 | [
"CC0-1.0"
] | null | null | null | (*------------------------------------------------------------------------------
MiniLight OCaml : minimal global illumination renderer
Copyright (c) 2006-2008, Harrison Ainsworth / HXA7241.
http://www.hxa7241.org/
------------------------------------------------------------------------------*)
(**
* Cont... | 30.652439 | 80 | 0.5371 |
44d8c05cbdc58ee3592909ee1a9350d51183b7f7 | 609 | mli | OCaml | hphp/hack/src/typing/typing_extends.mli | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_extends.mli | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_extends.mli | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(*****************************************************************************)
(* Checks that a class implements an... | 27.681818 | 79 | 0.53202 |
bccd22e1b7bbecdadad198e36fcba77c796245ac | 614 | ml | OCaml | test/preface_examples_test/preface_example_test.ml | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 109 | 2021-04-08T18:41:14.000Z | 2022-03-26T10:28:45.000Z | test/preface_examples_test/preface_example_test.ml | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 35 | 2021-04-10T06:28:02.000Z | 2022-01-31T10:43:36.000Z | test/preface_examples_test/preface_example_test.ml | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 3 | 2021-05-07T21:53:35.000Z | 2021-08-28T12:28:12.000Z | let () =
let open Alcotest in
run "Preface examples"
( Arrow_tutorial.cases
@ Formlet.cases
@ Free_applicative_formlet.cases
@ Shape.cases
@ Free_monad_consoleIO.cases
@ Free_monad_consoleIO_composition.cases
@ Freer_monad_consoleIO.cases
@ Freer_monad_os_effect.cases
@ Freer_mon... | 27.909091 | 48 | 0.739414 |
bcf3fb964991cff16090657618b96b3bffeef3d3 | 8,038 | ml | OCaml | infer/src/pulse/unit/PulseFormulaTest.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | 1 | 2020-08-28T14:00:56.000Z | 2020-08-28T14:00:56.000Z | infer/src/pulse/unit/PulseFormulaTest.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | null | null | null | infer/src/pulse/unit/PulseFormulaTest.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"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 AbstractValue = PulseAbstractValue
open PulseFormula
open SatUnsatMonad
(** {2 Utilities for defining formulas e... | 32.023904 | 101 | 0.570789 |
aa17683c40d28ea0363f0ed83a2538bd2225a6f5 | 739 | ml | OCaml | src/common/ustring.ml | pitag-ha/embedded_ocaml_templates | e2c7fa93bcd5ca5f6fe3520798198f0a1f4689e2 | [
"MIT"
] | 11 | 2020-07-21T20:12:32.000Z | 2021-10-09T09:34:21.000Z | src/common/ustring.ml | pitag-ha/embedded_ocaml_templates | e2c7fa93bcd5ca5f6fe3520798198f0a1f4689e2 | [
"MIT"
] | 2 | 2021-02-26T16:17:19.000Z | 2021-06-25T07:45:26.000Z | src/common/ustring.ml | pitag-ha/embedded_ocaml_templates | e2c7fa93bcd5ca5f6fe3520798198f0a1f4689e2 | [
"MIT"
] | 3 | 2021-02-26T10:49:25.000Z | 2021-06-24T12:21:33.000Z | open Containers
type t = Uchar.t array
let to_buffer ustring =
let buffer = Buffer.create (Array.length ustring) in
Array.iter (Uutf.Buffer.add_utf_8 buffer) ustring;
buffer
let print ustring = print_string (Buffer.contents (to_buffer ustring))
let of_string string =
let src = `String string in
let decode... | 24.633333 | 70 | 0.675237 |
bce0df9bca0913de784166547fe96c83adb38f42 | 1,489 | ml | OCaml | bootstrap/test/basis/n/test_of_real_to_real.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 25 | 2020-02-03T20:31:04.000Z | 2022-03-30T17:22:35.000Z | bootstrap/test/basis/n/test_of_real_to_real.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 152 | 2020-02-03T23:16:05.000Z | 2022-02-24T22:14:04.000Z | bootstrap/test/basis/n/test_of_real_to_real.ml | BranchTaken/Hemlock | 25a3fce449caa06ad46db351efcfb428f423184d | [
"MIT"
] | 4 | 2020-02-03T07:36:22.000Z | 2020-10-31T03:44:52.000Z | open! Basis.Rudiments
open! Basis
open N
let test () =
let rec test_rs rs = begin
match rs with
| [] -> ()
| r :: rs' -> begin
let x = of_real r in
File.Fmt.stdout
|> Fmt.fmt "of_real "
|> Real.fmt ~alt:true ~base:Fmt.Hex r
|> Fmt.fmt " -> "
|> fmt ~alt:tru... | 20.680556 | 55 | 0.522498 |
44b9f029dd01f3df2ddc7d9493aa5201af4c319d | 21,670 | ml | OCaml | Functional_Language_Lab/13submit/reversi-ml/play.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | Functional_Language_Lab/13submit/reversi-ml/play.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | Functional_Language_Lab/13submit/reversi-ml/play.ml | yoshi-ki/BACHELOR | 65d01c62ab2ea4a6d2616a6b6c535bd4f1645630 | [
"MIT"
] | null | null | null | open Array
open Color
open Command
(*これがincludeされているlet opposite_color c = (2-c) + 1*)
let myiro = ref 0
type board = color array array
(*最初はnoneで埋めてるよ*)
let init_board () =
let board = Array.make_matrix 10 10 none in
for i=0 to 9 do
board.(i).(0) <- sentinel ;
board.(i).(9) <- sentinel ;
bo... | 28.43832 | 186 | 0.558422 |
8accc1f5f119cebf78d6e1389593cd271d3b2e9a | 733 | ml | OCaml | data/sp14_min/0711.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/0711.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0711.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ x) in
let base = h in let l = t in List.fold_left f base l;;
let stringOfList f l = "[" ^ (sepConcat "; " (List.map f l) "]");;
(* fix
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let... | 17.452381 | 70 | 0.478854 |
442a2e95177b3825ece4c0eae5da61b5bfb46fdc | 193 | ml | OCaml | benchmarks/C/mirror/sol35.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/mirror/sol35.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/mirror/sol35.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (* problem 1*)
type btree = Empty | Node of int * btree * btree
let rec mirror : btree -> btree
= fun t ->
match t with
|Empty -> Empty
|Node (a,b,c) -> Node (a,(mirror c),(mirror b));;
| 21.444444 | 51 | 0.585492 |
bc8426f068d93c57ea65d9694561db1c4799ee9a | 672 | ml | OCaml | benchmarks/C/formula/sol168.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/formula/sol168.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/formula/sol168.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type formula = True
| False
| Not of formula
| AndAlso of formula * formula
| OrElse of formula * formula
| Imply of formula * formula
| Equal of exp * exp
and exp = Num of int
| Plus of exp * exp
| Minus of exp * exp
let rec eval = fun f ->
let rec calc = fun ex ->
... | 24.888889 | 45 | 0.511905 |
aa09fcdf34adb38823715ca4c7f41ef7d1fb4ffb | 17,782 | ml | OCaml | src/expr/e_deref.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | null | null | null | src/expr/e_deref.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | null | null | null | src/expr/e_deref.ml | kape1395/tlapm | eeafc565abdfc4247f7a48b95b71fabf4dc038f8 | [
"BSD-2-Clause"
] | null | null | null | (*
* expr/deref.ml --- dereferencing subexpression references
*
*
* Copyright (C) 2008-2010 INRIA and Microsoft Corporation
*)
Revision.f "$Rev$";;
open Ext
open Property
open E_t
open E_subst
open E_fmt
module Visit = E_visit;;
let atomic : unit pfuncs = Property.make "Expr.Deref.atom"
let clean =
let cl... | 36.513347 | 147 | 0.496963 |
bcff4f21a864595a9adc2e9aa3fa0f871e0c7696 | 2,159 | ml | OCaml | src/js/rpc_client_js.ml | CGenie/ocaml-rpc | 7edfdf0803ff58541b378bc1e51d0156f923c94b | [
"ISC"
] | null | null | null | src/js/rpc_client_js.ml | CGenie/ocaml-rpc | 7edfdf0803ff58541b378bc1e51d0156f923c94b | [
"ISC"
] | null | null | null | src/js/rpc_client_js.ml | CGenie/ocaml-rpc | 7edfdf0803ff58541b378bc1e51d0156f923c94b | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2006-2009 Citrix Systems Inc.
* Copyright (c) 2006-2014 Jon Ludlam <jonathan.ludlam@eu.citrix.com>
* Copyright (c) 2006-2014 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provi... | 44.061224 | 103 | 0.691524 |
bcc86572b3ccdecd5a926f6ba20e0877093da3b9 | 4,368 | mli | OCaml | src/lib/mina_base/signed_command_payload.mli | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | 1 | 2022-01-21T01:52:20.000Z | 2022-01-21T01:52:20.000Z | src/lib/mina_base/signed_command_payload.mli | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | src/lib/mina_base/signed_command_payload.mli | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | [%%import "/src/config.mlh"]
open Core_kernel
open Import
[%%ifdef consensus_mechanism]
open Snark_params.Tick
[%%else]
open Snark_params_nonconsensus
module Currency = Currency_nonconsensus.Currency
module Mina_numbers = Mina_numbers_nonconsensus.Mina_numbers
module Random_oracle = Random_oracle_nonconsensus.Rand... | 23.483871 | 76 | 0.65957 |
aa06877fb1a14641c7944bc2a6f5c9f421166b17 | 2,330 | ml | OCaml | src/bin/errors.ml | hra687261/dolmen | decc525cca878fd19c7c33f7370aa61840ee54af | [
"BSD-2-Clause"
] | null | null | null | src/bin/errors.ml | hra687261/dolmen | decc525cca878fd19c7c33f7370aa61840ee54af | [
"BSD-2-Clause"
] | null | null | null | src/bin/errors.ml | hra687261/dolmen | decc525cca878fd19c7c33f7370aa61840ee54af | [
"BSD-2-Clause"
] | null | null | null |
(* Exceptions *)
(* ************************************************************************* *)
let exn st = function
(* Internal exception used for jumping.
This should only be used ot raise a state that has just been
'errored' (i.e. where State.error has been called on the state),
which, for the ... | 40.877193 | 80 | 0.657511 |
aa161f3241028ac58119843508b9cf8a7b352912 | 13,334 | ml | OCaml | hphp/hack/test/unit/utils/errors_test.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/utils/errors_test.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/utils/errors_test.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.000Z | (**
* Tests documenting various invariants about the order of things coming out
* of Errors module. Some of them are __probably__ not necessary for
* correctness, but if you break them you will still change a bunch of tests
* outputs and will have to spend time wondering whether the changes are
* significant or no... | 30.865741 | 79 | 0.668142 |
bcfda2be6afc045a1cfef36fd3da3e35085f4bd1 | 4,866 | ml | OCaml | src/computation.ml | osener/bonsai | 761d04847d5f947318b64c0a46dffa17ad413536 | [
"MIT"
] | null | null | null | src/computation.ml | osener/bonsai | 761d04847d5f947318b64c0a46dffa17ad413536 | [
"MIT"
] | null | null | null | src/computation.ml | osener/bonsai | 761d04847d5f947318b64c0a46dffa17ad413536 | [
"MIT"
] | null | null | null | open! Core
open! Import
type ('input, 'action, 'model) apply_action =
inject:('action -> Event.t)
-> schedule_event:(Event.t -> unit)
-> 'input
-> 'model
-> 'action
-> 'model
type ('model, 'action, 'result) t =
| Return : 'result Value.t -> (unit, Nothing.t, 'result) t
| Leaf :
{ input : 'input ... | 36.313433 | 90 | 0.527538 |
bcddec967ae3f5d3e25cd533440fa44532dbc8a7 | 1,409 | mli | OCaml | infer/src/backend/rearrange.mli | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/rearrange.mli | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | infer/src/backend/rearrange.mli | squaresLab/infer-linux64-v0.9.3 | b9d7c23d3556eab55d25584183dc9e1bc40f298f | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2009 - 2013 Monoidics ltd.
* 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... | 42.69697 | 112 | 0.710433 |
bc280436ef6ed9ead902be08d91c24e117c0787f | 5,209 | ml | OCaml | js/expression.ml | phated/binaryen.ml | 335e6859d9b4f7f251beab0f235733646fd1a788 | [
"Apache-2.0"
] | null | null | null | js/expression.ml | phated/binaryen.ml | 335e6859d9b4f7f251beab0f235733646fd1a788 | [
"Apache-2.0"
] | null | null | null | js/expression.ml | phated/binaryen.ml | 335e6859d9b4f7f251beab0f235733646fd1a788 | [
"Apache-2.0"
] | null | null | null | open Js_of_ocaml.Js
open Js_of_ocaml.Js.Unsafe
type t = int
let block wasm_mod name children =
meth_call wasm_mod "block"
[|
inject (string name);
inject (array (Array.of_list children));
inject Type.auto;
|]
let if_ wasm_mod cond if_true if_false =
meth_call wasm_mod "if" [| inject con... | 29.429379 | 78 | 0.679593 |
bc5e1c6ee4469b36ec1e33810e29060f202ea906 | 448 | ml | OCaml | data/fa15_min/0773.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/0773.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/0773.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 if n = 1 then [x] else [x] @ ((clone x n) - 1);;
(* fix
let rec clone x n =
if n <= 0 then [] else if n = 1 then [x] else [x] @ (clone x (n - 1));;
*)
(* changed spans
(3,55)-(3,72)
clone x (n - 1)
AppG [VarG,BopG EmptyG EmptyG]
*)
(* type error slice
(2,4)-(3,74)
... | 14 | 73 | 0.488839 |
bcb647fc265f4394e1859c1649872906dc7388c8 | 7,793 | ml | OCaml | hpack/util/gen_static.ml | clecat/ocaml-h2 | 8ca6c696bc45eecc401c82416d230ca7e410036a | [
"BSD-3-Clause"
] | 203 | 2019-03-27T21:05:54.000Z | 2022-03-05T08:24:14.000Z | hpack/util/gen_static.ml | clecat/ocaml-h2 | 8ca6c696bc45eecc401c82416d230ca7e410036a | [
"BSD-3-Clause"
] | 21 | 2019-06-04T20:36:45.000Z | 2022-03-16T18:45:59.000Z | hpack/util/gen_static.ml | clecat/ocaml-h2 | 8ca6c696bc45eecc401c82416d230ca7e410036a | [
"BSD-3-Clause"
] | 15 | 2019-03-28T14:29:59.000Z | 2022-03-14T22:55:54.000Z | (*----------------------------------------------------------------------------
Copyright (c) 2019 António Nuno Monteiro
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of s... | 34.635556 | 81 | 0.48813 |
aa0804749cedb45418efa84385864981af0cc1d6 | 10,943 | ml | OCaml | src/lib/pickles/types_map.ml | creativcoder/mina | 91d6d536345f7e313b73fcb78bdea657ff584b72 | [
"Apache-2.0"
] | 2 | 2021-07-11T21:51:34.000Z | 2021-07-29T14:33:45.000Z | src/lib/pickles/types_map.ml | yusuftrl/mina | 42bbe89e0e84366fd1673672750eb6041462e449 | [
"Apache-2.0"
] | 1 | 2021-03-06T14:52:32.000Z | 2021-03-06T14:52:32.000Z | src/lib/pickles/types_map.ml | obazl/mina | 0612b142738c68155e9a9bba16cd3787bba4feed | [
"Apache-2.0"
] | 3 | 2021-03-14T18:19:04.000Z | 2021-03-25T16:37:07.000Z | open Core_kernel
open Pickles_types
open Import
open Backend
(* TODO: max_branching is a terrible name. It should be max_width. *)
(* We maintain a global hash table which stores for each inductive proof system some
data.
*)
type inner_curve_var =
Tick.Field.t Snarky_backendless.Cvar.t
* Tick.Field.t Snarky_ba... | 32.665672 | 87 | 0.635018 |
aa20654e155a0be671e76b8864409544e6692a4d | 1,160 | ml | OCaml | data/fa15/1479.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/1479.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/1479.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec wwhile (f,b) =
match f b with | (h,t) -> if t = true then wwhile (f, h) else h;;
let fixpoint (f,b) =
wwhile (if (wwhile (f, b)) = b then b else ((wwhile (f, b)), b));;
(* fix
let rec wwhile (f,b) =
match f b with | (h,t) -> if t = true then wwhile (f, h) else h;;
let fixpoint (f,b) =
wwhile
(... | 14.683544 | 77 | 0.462069 |
aa035eedcf2104bfd880affe84ab445ebe3a6f93 | 10,551 | ml | OCaml | src/common/compile.ml | pitag-ha/embedded_ocaml_templates | e2c7fa93bcd5ca5f6fe3520798198f0a1f4689e2 | [
"MIT"
] | null | null | null | src/common/compile.ml | pitag-ha/embedded_ocaml_templates | e2c7fa93bcd5ca5f6fe3520798198f0a1f4689e2 | [
"MIT"
] | null | null | null | src/common/compile.ml | pitag-ha/embedded_ocaml_templates | e2c7fa93bcd5ca5f6fe3520798198f0a1f4689e2 | [
"MIT"
] | null | null | null | open Template
open File_handling
open Ocaml.Builder
open Ocaml.Primitive
let prefix s = "__eml_" ^ s
let n_escape = prefix "escape"
let n_buffer = prefix "buffer"
let n_push = prefix "push"
let n_continuation = prefix "continuation"
let e_app_continuation e = e_app (e_var n_continuation) [e]
let e_push e = e_app (e_va... | 47.742081 | 322 | 0.659843 |
bc48a315b23bab713eb5b0f87097bd150595cce2 | 31,718 | ml | OCaml | infer/src/bufferoverrun/bufferOverrunSemantics.ml | joaofranciscomartins/infer | a54de2e0dd1efba9f1adafbc9e268e19a3eaf3eb | [
"MIT"
] | 1 | 2020-07-16T19:38:04.000Z | 2020-07-16T19:38:04.000Z | infer/src/bufferoverrun/bufferOverrunSemantics.ml | joaofranciscomartins/infer | a54de2e0dd1efba9f1adafbc9e268e19a3eaf3eb | [
"MIT"
] | null | null | null | infer/src/bufferoverrun/bufferOverrunSemantics.ml | joaofranciscomartins/infer | a54de2e0dd1efba9f1adafbc9e268e19a3eaf3eb | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2016-present, Programming Research Laboratory (ROPAS)
* Seoul National University, Korea
* 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.
... | 38.122596 | 100 | 0.630998 |
aa08270b3c96d9e7b54152e3ec526c6aef3f8a0a | 7,958 | ml | OCaml | data/derived/comb/progs/unify/prog3635.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/prog3635.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3635.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.264026 | 148 | 0.670143 |
aa09933303cac6fa2c0b7b01b9a2f70d3a87b9ef | 3,280 | mli | OCaml | fs_test/lib/fs_test_system.mli | sibylfs/sibylfs_src | 30675bc3b91e73f7133d0c30f18857bb1f4df8fa | [
"ISC"
] | 32 | 2015-09-28T13:30:14.000Z | 2022-02-11T02:40:09.000Z | fs_test/lib/fs_test_system.mli | sibylfs/sibylfs_src | 30675bc3b91e73f7133d0c30f18857bb1f4df8fa | [
"ISC"
] | 17 | 2015-10-01T14:33:44.000Z | 2019-08-15T09:53:09.000Z | fs_test/lib/fs_test_system.mli | sibylfs/sibylfs_src | 30675bc3b91e73f7133d0c30f18857bb1f4df8fa | [
"ISC"
] | 1 | 2015-10-02T21:29:51.000Z | 2015-10-02T21:29:51.000Z | (****************************************************************************)
(* Copyright (c) 2013, 2014, 2015, Tom Ridge, David Sheets, Thomas Tuerk, *)
(* Andrea Giugliano (as part of the SibylFS project) *)
(* *)
(* ... | 42.051282 | 80 | 0.551524 |
bceb4dd34d1b109e6b27b527b46dd48de54398f2 | 183 | ml | OCaml | data/derived/comb/progs/unify/prog5245.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/prog0338.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0338.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec listReverse l =
let newList = [] in
match l with
| [] -> newList
| head::tail -> (listReverse tail) @ (newList :: head);;
let _ = listReverse ["a"; "b"; "c"; "d"];;
| 20.333333 | 58 | 0.546448 |
aa01daafddbb4096793882b4f67f9b6f71ead2b1 | 94 | ml | OCaml | morpion_prelude.ml | KevinD-UP/MorpionV2 | 4ddcf80f219659085567d246902e75293e004541 | [
"MIT"
] | null | null | null | morpion_prelude.ml | KevinD-UP/MorpionV2 | 4ddcf80f219659085567d246902e75293e004541 | [
"MIT"
] | null | null | null | morpion_prelude.ml | KevinD-UP/MorpionV2 | 4ddcf80f219659085567d246902e75293e004541 | [
"MIT"
] | null | null | null | type plateau = int option Matrix.t
type coup =
{ joueur : int
; position : int * int
}
| 13.428571 | 34 | 0.617021 |
bc14b39d8942add940e41140f1992d5c197184c1 | 2,671 | ml | OCaml | daq/Sat1/fftw-3.0.1/genfft/littlesimp.ml | abrahamneben/orbcomm_beam_mapping | 71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004 | [
"MIT"
] | 1 | 2019-04-10T02:50:19.000Z | 2019-04-10T02:50:19.000Z | power_data_to_sat_passes/Sat1/fftw-3.0.1/genfft/littlesimp.ml | abrahamneben/orbcomm_beam_mapping | 71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004 | [
"MIT"
] | null | null | null | power_data_to_sat_passes/Sat1/fftw-3.0.1/genfft/littlesimp.ml | abrahamneben/orbcomm_beam_mapping | 71b3e7d6e4214db0a6f4e68ebeeb7d7f846f5004 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 1997-1999 Massachusetts Institute of Technology
* Copyright (c) 2003 Matteo Frigo
* Copyright (c) 2003 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 published by
* the Fre... | 36.589041 | 76 | 0.658555 |
4414e7daf1d9aeae16f55e3208203d764583fb6a | 25,842 | ml | OCaml | src/s.ml | coder0xff/ocaml-redis | 9a5c0ba79fc714ce719061349fd4457d9f119828 | [
"BSD-3-Clause"
] | 1 | 2019-06-11T20:20:03.000Z | 2019-06-11T20:20:03.000Z | src/s.ml | DavidAlphaFox/ocaml-redis | 9a5c0ba79fc714ce719061349fd4457d9f119828 | [
"BSD-3-Clause"
] | null | null | null | src/s.ml | DavidAlphaFox/ocaml-redis | 9a5c0ba79fc714ce719061349fd4457d9f119828 | [
"BSD-3-Clause"
] | null | null | null | module type IO = sig
type 'a t
type fd
type in_channel
type out_channel
type 'a stream
type stream_count
val connect : string -> int -> fd t
val close : fd -> unit t
val sleep : float -> unit t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val catch : (unit -> 'a t) -> (exn -> 'a t) -> 'a t
val t... | 39.634969 | 183 | 0.662758 |
bce11c8a78b371a1487d400b64a7b0ef88fe0c18 | 23,205 | ml | OCaml | src/proto_012_Psithaca/lib_client/operation_result.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_012_Psithaca/lib_client/operation_result.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_012_Psithaca/lib_client/operation_result.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 34.790105 | 82 | 0.570351 |
4480dde61cdfdf546e852be613017d1f2f0d0073 | 24,749 | ml | OCaml | vendor/dune/src/context.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/context.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | vendor/dune/src/context.ml | prashant-shahi/pesy | 5562d9387ba62704f6505c505c906b82f5d73a51 | [
"MIT"
] | null | null | null | open! Stdune
open Import
open Fiber.O
module Kind = struct
module Opam = struct
type t =
{ root : string option
; switch : string
}
end
type t = Default | Opam of Opam.t
let to_dyn : t -> Dyn.t =
function
| Default -> Dyn.Encoder.string "default"
| Opam o ->
Dyn.Enco... | 34.373611 | 79 | 0.598529 |
44cfb58316adb9c8ea6148ac2cf3ef175f101f15 | 10,630 | ml | OCaml | duniverse/owl/src/owl/nlp/owl_nlp_lda0.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | 1 | 2019-11-17T23:16:15.000Z | 2019-11-17T23:16:15.000Z | duniverse/owl/src/owl/nlp/owl_nlp_lda0.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/owl/src/owl/nlp/owl_nlp_lda0.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2017
* Ben Catterall <bpwc2@cam.ac.uk>
* Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** NLP: LDA module *)
open Bigarray
module MS = Owl_sparse.Dok_matrix
module MD = Owl_dense.Matrix.D
type lda_typ = SimpleLDA | FTreeLDA | LightLDA | ... | 31.731343 | 126 | 0.531044 |
44ddba8c6f1c0f91c69a77abaab6dd85c706a840 | 2,051 | ml | OCaml | src/lib/coda_state/genesis_protocol_state.ml | jackpaparian/coda | 6da61361bdfda7f0de0ce525230b35bac965cb17 | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/lib/coda_state/genesis_protocol_state.ml | kunxian-xia/coda | 93295e8b4db5f4f2d192a26f90146bf322808ef8 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_state/genesis_protocol_state.ml | kunxian-xia/coda | 93295e8b4db5f4f2d192a26f90146bf322808ef8 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Coda_base
let create_with_custom_ledger ~genesis_consensus_state ~genesis_ledger =
let negative_one_protocol_state_hash =
Protocol_state.(hash (negative_one ~genesis_ledger))
in
let root_ledger_hash = Ledger.merkle_root (Lazy.force genesis_ledger) in
let staged_ledger_hash =
Stage... | 35.362069 | 77 | 0.793759 |
bc647c2556bbd7ac9ce0f1ca8434298292952340 | 248 | mli | OCaml | libraries/ec2/lib/associateClientVpnTargetNetwork.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/associateClientVpnTargetNetwork.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/associateClientVpnTargetNetwork.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 = AssociateClientVpnTargetNetworkRequest.t
type output = AssociateClientVpnTargetNetworkResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 22.545455 | 85 | 0.798387 |
bccfcea8c3b448f907ae89b16cdcc01c98496dcd | 5,298 | mli | OCaml | tezt/lib/base.mli | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | tezt/lib/base.mli | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | tezt/lib/base.mli | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | 1 | 2021-07-19T07:00:37.000Z | 2021-07-19T07:00:37.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2020-2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 37.048951 | 79 | 0.567195 |
bcfaa808d61a07e98c3d8e5d848bc421759c8fe1 | 1,698 | ml | OCaml | tests/idempotency/lwt/core/lwt_result.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 166 | 2020-08-11T15:49:10.000Z | 2022-03-23T17:28:36.000Z | tests/idempotency/lwt/core/lwt_result.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 305 | 2020-08-12T07:41:01.000Z | 2022-03-25T06:33:14.000Z | tests/idempotency/lwt/core/lwt_result.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 19 | 2020-08-30T14:25:33.000Z | 2022-03-21T07:58:43.000Z | (* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *)
(** Module [Lwt_result]: explicit error handling *)
open Result
type (+'a, +'b) t = ('a, 'b) Result.result Lwt.t
let return x = Lwt.return (Ok x)
let fail ... | 18.06383 | 79 | 0.542403 |
bcb35aa5886048ac52c2a01a9b18f63806621146 | 580 | ml | OCaml | test/interface/golden/product/Company.ml | LumiGuide/ocaml-export | 7f803eb961851ceb4853fae0e741378d86237d2b | [
"BSD-3-Clause"
] | 13 | 2018-02-16T08:30:21.000Z | 2021-06-15T21:38:32.000Z | test/interface/golden/product/Company.ml | plow-technologies/reason-export | 752167f5df37d43534d27d9f63bb512eec1e750d | [
"BSD-3-Clause"
] | 10 | 2018-01-17T02:10:28.000Z | 2019-04-23T21:56:43.000Z | test/interface/golden/product/Company.ml | plow-technologies/reason-export | 752167f5df37d43534d27d9f63bb512eec1e750d | [
"BSD-3-Clause"
] | 1 | 2021-07-03T20:02:22.000Z | 2021-07-03T20:02:22.000Z | type company =
{ address : string
; employees : (Person.person) list
}
let encodeCompany x =
Aeson.Encode.object_
[ ( "address", Aeson.Encode.string x.address )
; ( "employees", (Aeson.Encode.list Person.encodePerson) x.employees )
]
let decodeCompany json =
match Aeson.Decode.
{ address = f... | 29 | 97 | 0.672414 |
8af06bced1ab0e32d2ec79fc72b5f226443f829f | 72,835 | ml | OCaml | hphp/hack/src/server/serverTypeCheck.ml | jewarner57/hhvm | a7ee6b5b3e994f9dec933f5a6abce602f756b7af | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverTypeCheck.ml | jewarner57/hhvm | a7ee6b5b3e994f9dec933f5a6abce602f756b7af | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverTypeCheck.ml | jewarner57/hhvm | a7ee6b5b3e994f9dec933f5a6abce602f756b7af | [
"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 Hh_prelude
open ServerCheckUtils
open SearchServiceRunner
open ServerEnv
open Reordered_argument_collections
mo... | 35.356796 | 120 | 0.635436 |
bc9e63dc6dc4ecf39d71bcf5498ddbbe122d470f | 414 | ml | OCaml | test/test_find_function.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | test/test_find_function.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | test/test_find_function.ml | neojski/ecaml | 00adeed63c00e3e52a4a2475c3a8256fd70c66b6 | [
"MIT"
] | null | null | null | open! Core_kernel
open! Async_kernel
open! Import
open! Find_function
module Q = struct
include Q
let find_function = "find-function" |> Symbol.intern
end
let%expect_test "[find_function]" =
let%bind () =
Echo_area.inhibit_messages Async (fun () -> find_function Q.find_function)
in
print_s [%sexp (Curr... | 20.7 | 78 | 0.683575 |
bcd2411aebd33125b4ad9764ad1e97737bf234c4 | 156 | ml | OCaml | src/sub_system_name.ml | Khady/dune | 9afd3d215759f65d52c74def6992b2771def3363 | [
"MIT"
] | 1 | 2018-09-14T10:47:11.000Z | 2018-09-14T10:47:11.000Z | src/sub_system_name.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | src/sub_system_name.ml | nandor/shmap | 6a730de81a1e8568a61ac0f53af3aebabde8e58b | [
"MIT"
] | null | null | null | open Stdune
include Interned.Make(struct
let initial_size = 16
let resize_policy = Interned.Conservative
let order = Interned.Natural
end)()
| 19.5 | 45 | 0.730769 |
aa1ea06ca1407813278c45324173d664f77d1e56 | 1,210 | ml | OCaml | src/dune/stringlike_intf.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 11 | 2020-11-25T14:23:49.000Z | 2021-07-22T07:45:09.000Z | src/dune/stringlike_intf.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2020-07-27T17:35:13.000Z | 2020-09-21T11:17:06.000Z | src/dune/stringlike_intf.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2020-10-05T13:41:44.000Z | 2020-10-05T13:41:44.000Z | open Import
module type S_base = sig
type t
(** The name of the module, for use in error messages. For example
["Lib_name"], ["Context_name"]. *)
val module_ : string
(** A short description of the type, for use in user-facing error messages.
For example "context name", "library name". *)
val d... | 25.208333 | 78 | 0.657851 |
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.