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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2f02000e1a59cc046090e273d0ec0335b526bad | 173,155 | ml | OCaml | setup.ml | yomimono/mirage-profile | 52b0605445b3a9cc20ccd4f360a5ab499fa18649 | [
"BSD-2-Clause"
] | null | null | null | setup.ml | yomimono/mirage-profile | 52b0605445b3a9cc20ccd4f360a5ab499fa18649 | [
"BSD-2-Clause"
] | null | null | null | setup.ml | yomimono/mirage-profile | 52b0605445b3a9cc20ccd4f360a5ab499fa18649 | [
"BSD-2-Clause"
] | null | null | null | (* setup.ml generated for the first time by OASIS v0.4.4 *)
(* OASIS_START *)
(* DO NOT EDIT (digest: d2c51e266e22e05c50d7295f040653cd) *)
(*
Regenerated by OASIS v0.4.4
Visit http://oasis.forge.ocamlcore.org for more information and
documentation about functions used in this file.
*)
module OASISGettext = st... | 25.652593 | 82 | 0.470503 |
f3022fb0c9873d75b9118737fcb67f29688389cb | 1,577 | ml | OCaml | src/main.ml | mraszyk/hydra | db77b0d2288daf20b0c912f31d58e72dd1f0a9e0 | [
"BSD-3-Clause"
] | 1 | 2021-11-24T20:03:48.000Z | 2021-11-24T20:03:48.000Z | src/main.ml | mraszyk/hydra | db77b0d2288daf20b0c912f31d58e72dd1f0a9e0 | [
"BSD-3-Clause"
] | null | null | null | src/main.ml | mraszyk/hydra | db77b0d2288daf20b0c912f31d58e72dd1f0a9e0 | [
"BSD-3-Clause"
] | 1 | 2021-11-24T12:21:45.000Z | 2021-11-24T12:21:45.000Z | open Const
open Verified
exception EXIT
let usage () = Format.printf "Usage: vydra MDL LOG [-mdlaerial]\n"; raise EXIT
external init: string -> int = "caml_init"
external run: int -> (int * string * string list) option = "caml_run"
external close: unit -> unit = "caml_close"
let rec process_args = function
| x ::... | 37.547619 | 95 | 0.611921 |
f3511eab54f4a661b703feedd0b38731cdc372d7 | 1,421 | ml | OCaml | tests/encode_decode.ml | darrenldl/olt | 8cd73de2a77fe2c3853f0e7f1f83b42278ae4cb9 | [
"MIT"
] | 1 | 2021-07-21T07:45:30.000Z | 2021-07-21T07:45:30.000Z | tests/encode_decode.ml | darrenldl/olt | 8cd73de2a77fe2c3853f0e7f1f83b42278ae4cb9 | [
"MIT"
] | null | null | null | tests/encode_decode.ml | darrenldl/olt | 8cd73de2a77fe2c3853f0e7f1f83b42278ae4cb9 | [
"MIT"
] | null | null | null | module Qc = struct
let encode_decode_systematic_no_erasure =
QCheck.Test.make ~count:10_000 ~name:"encode_decode_systematic_no_erasure"
QCheck.(
pair
(array_of_size (Gen.int_range 1 50) (string_of_size (Gen.return 10)))
(int_bound 70))
(fun (data_blocks, drop_count_offset) ... | 40.6 | 81 | 0.558058 |
f3998fbd327af96f6044738489ff3cd9072ce1c4 | 400 | ml | OCaml | TwentySix/RandomIntGenerator.ml | jgrieger/2-to-the-5th | b085d4f19c635054b47034f48b8fc848e0ae9182 | [
"MIT"
] | null | null | null | TwentySix/RandomIntGenerator.ml | jgrieger/2-to-the-5th | b085d4f19c635054b47034f48b8fc848e0ae9182 | [
"MIT"
] | null | null | null | TwentySix/RandomIntGenerator.ml | jgrieger/2-to-the-5th | b085d4f19c635054b47034f48b8fc848e0ae9182 | [
"MIT"
] | null | null | null | (*
cerner_2^5_2018
Reads the upper boundary from the std input aka console
and generates a random integer with random sign
Example:
- input: 1000
- output: -234
*)
let () =
Random.self_init();
let max = read_int() in
let n =
if Random.bool () then
let n = Random.int max in
(n... | 16.666667 | 57 | 0.585 |
f3d8b724aaa7416af1a5adbb0a97fab425968ae3 | 2,069 | ml | OCaml | min-caml/while.ml | cpuex2015group6/compiler | 4d8608b4e0c62e3f5bac3561b44819df9fed13a1 | [
"Unlicense"
] | 3 | 2017-10-04T01:36:37.000Z | 2019-09-29T22:54:32.000Z | min-caml/while.ml | cpuex2015group6/compiler | 4d8608b4e0c62e3f5bac3561b44819df9fed13a1 | [
"Unlicense"
] | null | null | null | min-caml/while.ml | cpuex2015group6/compiler | 4d8608b4e0c62e3f5bac3561b44819df9fed13a1 | [
"Unlicense"
] | 1 | 2022-01-19T03:29:30.000Z | 2022-01-19T03:29:30.000Z | open KNormal
(* ループ関連の最適化 *)
(*
let union m1 m2 = M.fold (fun k v m -> M.add k v m) m1 m2
let rec g destt env = function
| If(c, x, y, e1, e2) ->
let fl1, e1 = g destt env e1 in
let fl2, e2 = g destt env e2 in
union fl1 fl2, If(c, x, y, e1, e2)
| While(x, yts, zs, e) as exp ->
let x' = Id.gen... | 35.672414 | 116 | 0.509425 |
d2e4c73f4618270ea5909cbc552273876edf2d01 | 3,126 | ml | OCaml | src/main/fuzz/cameligo/fuzz.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/main/fuzz/cameligo/fuzz.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/main/fuzz/cameligo/fuzz.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | open Helpers
open Cst.Cameligo
include Fuzz_shared.Monad
(* Helpers for swapping operators *)
let arith_bin_op_ctor =
let add op = Add op in
let sub op = Sub op in
let mult op = Mult op in
let div op = Div op in
let mod_ op = Mod op in
[add;sub;mult;div;mod_]
let bool_bin_op_ctor =
let and_ op = And op... | 33.978261 | 101 | 0.606206 |
f3cd7f9d4c9701ae64d9b0a36d5402fa40bab43e | 37,121 | ml | OCaml | infer/src/base/IssueType.ml | piyushjainb/infer | b073b55b1a92313437d08f58716cadfa894bd060 | [
"MIT"
] | 2 | 2020-12-01T19:17:41.000Z | 2021-11-16T11:16:32.000Z | infer/src/base/IssueType.ml | rushatgabhane/infer | 14b32f172791daa32b26a88c35a368ce1081a5f4 | [
"MIT"
] | 5 | 2021-06-28T20:41:36.000Z | 2022-02-27T11:23:29.000Z | infer/src/base/IssueType.ml | cluesblues/infer | 7dcbacf69309d113e6374d03ee267fe2f7d44797 | [
"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 L = Die
type visibility = User | Developer | Silent [@@deriving compare, equal]
let string_of... | 36.717112 | 121 | 0.75825 |
d2d656bb5db8034a3db1453c067f459d1984adf0 | 1,608 | ml | OCaml | hphp/hack/src/server/serverEnvBuild.ml | geraldvillorente/hhvm | cf047fe5c43aa7133ce5703d883251a3da486821 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverEnvBuild.ml | geraldvillorente/hhvm | cf047fe5c43aa7133ce5703d883251a3da486821 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverEnvBuild.ml | geraldvillorente/hhvm | cf047fe5c43aa7133ce5703d883251a3da486821 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(***********... | 31.529412 | 80 | 0.616915 |
f3a8ac00c644e1a36b5a39b28bcfa02b4505df24 | 8,528 | ml | OCaml | Gillian-JS/lib/Semantics/External.ml | raduml97/Gillian | 10b9d80b0edecdd9d52f7711993dc208084f13e1 | [
"MIT"
] | 1 | 2020-05-30T11:39:31.000Z | 2020-05-30T11:39:31.000Z | Gillian-JS/lib/Semantics/External.ml | alexismarinoiu/Gillian | cf14a9b992d75194db38b90ef41222e6c7253c89 | [
"MIT"
] | null | null | null | Gillian-JS/lib/Semantics/External.ml | alexismarinoiu/Gillian | cf14a9b992d75194db38b90ef41222e6c7253c89 | [
"MIT"
] | null | null | null | open Gillian.Gil_syntax.Literal
open Gillian.General
open Js2jsil_lib
module GProg = Gillian.Gil_syntax.Prog
module GProc = Gillian.Gil_syntax.Proc
module Literal = Gillian.Gil_syntax.Literal
module Annot = Gillian.Gil_syntax.Annot
(** JSIL external procedure calls *)
module M
(Val : Val.S)
(Subst : Subst.S wi... | 38.763636 | 80 | 0.50856 |
f3d742b029bdfe896fab6215fcbf0c36b364e127 | 7,761 | ml | OCaml | data/derived/comb/progs/unify/prog2763.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/prog2763.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2763.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.131313 | 148 | 0.688829 |
f32fac1494808680dff96f0a2558bcaa06671454 | 10,861 | ml | OCaml | tool/examples/787-example.ml | ge-high-assurance/safety-analysis | ccbeb4937f76bf9901646c8b5e67bec8edb5f429 | [
"BSD-3-Clause"
] | 3 | 2019-05-02T17:02:04.000Z | 2020-12-20T11:31:17.000Z | tool/examples/787-example.ml | ge-high-assurance/safety-analysis | ccbeb4937f76bf9901646c8b5e67bec8edb5f429 | [
"BSD-3-Clause"
] | null | null | null | tool/examples/787-example.ml | ge-high-assurance/safety-analysis | ccbeb4937f76bf9901646c8b5e67bec8edb5f429 | [
"BSD-3-Clause"
] | 1 | 2021-06-16T17:19:43.000Z | 2021-06-16T17:19:43.000Z | (* This example is an architecture inspired by the B787 IMA architecture.
The B787 has five head down displays (HDD) and two head up displays (HUD). The
HDDs are the two primary flight displays (PFD) and the two navigation displays,
one set of each for the pilot and the co-pilot. This display in the middle is
the "ais... | 49.821101 | 112 | 0.474266 |
f353910762cdcd10bb58844b788cf5a039b62f16 | 15,080 | ml | OCaml | infer/src/checkers/uninit.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | null | null | null | infer/src/checkers/uninit.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | null | null | null | infer/src/checkers/uninit.ml | mihelem/infer | e3360c684f2737b77d772b69910c52149c319def | [
"MIT"
] | 1 | 2019-04-26T02:27:43.000Z | 2019-04-26T02:27:43.000Z | (*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module L = Logging
(** Forward analysis to compute uninitialized variables at each program point *)
module ... | 41.428571 | 104 | 0.660809 |
f3c0cabdd3303adca7a576fa52587087c50cd1df | 18,332 | ml | OCaml | x86/proofs/bignum_montmul_p256k1.ml | awslabs/s2n-bignum | 9075bb1fbad74e38a03fb3e4dcb51f03fef7154a | [
"Apache-2.0"
] | 33 | 2021-03-11T16:12:01.000Z | 2022-03-06T17:01:18.000Z | x86/proofs/bignum_montmul_p256k1.ml | awslabs/s2n-bignum | 9075bb1fbad74e38a03fb3e4dcb51f03fef7154a | [
"Apache-2.0"
] | 8 | 2021-09-06T12:58:47.000Z | 2022-01-03T16:43:09.000Z | x86/proofs/bignum_montmul_p256k1.ml | awslabs/s2n-bignum | 9075bb1fbad74e38a03fb3e4dcb51f03fef7154a | [
"Apache-2.0"
] | 4 | 2021-03-11T19:28:16.000Z | 2021-12-12T23:40:44.000Z | (*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "LICENSE" file ... | 50.224658 | 109 | 0.528911 |
d2faf165536c7094c0ec88c617bb253b946faf1c | 2,237 | ml | OCaml | src/kernel/ident.ml | groupoid/anders | a096a1cdf972026ab638255a0210179e8b326d2f | [
"0BSD"
] | 115 | 2021-06-05T11:47:07.000Z | 2022-03-16T08:12:33.000Z | ident.ml | forked-from-1kasper/tt | 2bb38f523f3e806a18d6430afa66b2fbe71681ce | [
"0BSD"
] | null | null | null | ident.ml | forked-from-1kasper/tt | 2bb38f523f3e806a18d6430afa66b2fbe71681ce | [
"0BSD"
] | 6 | 2021-06-08T15:07:48.000Z | 2022-02-28T12:25:35.000Z | type name =
| Irrefutable
| Name of string * int
let showName : name -> string = function
| Irrefutable -> "_"
| Name (p, n) -> if !Prefs.indices then p ^ "#" ^ string_of_int n else p
module Name =
struct
type t = name
let compare x y =
match (x, y) with
| Irrefutable, Irrefutable -> 0
| Irref... | 23.547368 | 98 | 0.623603 |
d2e0c3b26eae3a2689b14be8f1b827a69c4d3e44 | 7,988 | ml | OCaml | hphp/hack/src/decl/decl_fun_utils.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-03-11T02:25:37.000Z | 2022-03-11T02:25:37.000Z | hphp/hack/src/decl/decl_fun_utils.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2022-02-17T04:00:03.000Z | 2022-03-24T03:45:33.000Z | hphp/hack/src/decl/decl_fun_utils.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-01-06T04:58:57.000Z | 2022-01-06T04:58:57.000Z | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
open Typing_defs
module SN = Naming_special_names
let get_classname_or_literal_attribute_... | 34.882096 | 80 | 0.675638 |
d2dab8a238450bdd27e6bec1014508947b7c0571 | 4,222 | ml | OCaml | src/common/path_matcher.ml | Shraymonks/flow | 430b1c107e8f299a8895063e551caf063dfe8c5a | [
"BSD-3-Clause"
] | null | null | null | src/common/path_matcher.ml | Shraymonks/flow | 430b1c107e8f299a8895063e551caf063dfe8c5a | [
"BSD-3-Clause"
] | null | null | null | src/common/path_matcher.ml | Shraymonks/flow | 430b1c107e8f299a8895063e551caf063dfe8c5a | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open ... | 33.507937 | 80 | 0.65064 |
f3cdca785ade96e8212246a1fae5addfa35cdd3d | 125 | mly | OCaml | test/blackbox-tests/test-cases/github1372.t/dir/parser.mly | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | test/blackbox-tests/test-cases/github1372.t/dir/parser.mly | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | test/blackbox-tests/test-cases/github1372.t/dir/parser.mly | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | %start <char list> main
%token <char> TOKEN
%token EOF
%%
main:
| c = TOKEN EOF { [c] }
| c = TOKEN xs = main { c :: xs }
| 12.5 | 34 | 0.544 |
f3027465128c9bcee3b6a90a30e6538f57482896 | 1,368 | ml | OCaml | src/lib/utils/RecordUtils.ml | nickgian/ProbNV | 60091faf43135a5e3ff431c7b20ea4b8b9f0b965 | [
"MIT"
] | null | null | null | src/lib/utils/RecordUtils.ml | nickgian/ProbNV | 60091faf43135a5e3ff431c7b20ea4b8b9f0b965 | [
"MIT"
] | 1 | 2021-05-05T21:33:27.000Z | 2021-06-10T00:16:40.000Z | src/lib/utils/RecordUtils.ml | nickgian/ProbNV | 60091faf43135a5e3ff431c7b20ea4b8b9f0b965 | [
"MIT"
] | null | null | null | open Batteries
open PrimitiveCollections
(* It's probably that most of this module is unnecessary.
These utility functions primarily make sure that everything is
properly ordered. If we're optimizing, we just need to make
sure that the builtin functions always return things in the
proper order *)
(* Retur... | 26.307692 | 68 | 0.682018 |
d2f689f42942f104e0573128bf477f2711edd841 | 7,087 | ml | OCaml | interprocedural_analyses/taint/test/accessPathTest.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/test/accessPathTest.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/test/accessPathTest.ml | dirn/pyre-check | 34b87fd73ae38451843fea37cf27ab951bf7f5ae | [
"MIT"
] | 1 | 2021-02-20T13:09:30.000Z | 2021-02-20T13:09:30.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 Core
open Taint
open Test
let test_of_expression context =
let ( !+ ) expression = Test.parse_single_expression... | 33.116822 | 102 | 0.583463 |
f3aa34d76957017b3a4c53e80b996f4ced38fad8 | 1,127 | ml | OCaml | physicaldm/physical_table.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | physicaldm/physical_table.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | physicaldm/physical_table.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 30.459459 | 73 | 0.328305 |
f36654c69c88aba8e50ff3b233bea30dc2c320db | 512 | ml | OCaml | src/state/heaps/parsing/exceptions/parsing_heaps_exceptions.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/state/heaps/parsing/exceptions/parsing_heaps_exceptions.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/state/heaps/parsing/exceptions/parsing_heaps_exceptions.ml | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"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.
*)
exception Ast_not_found of string
exception Sig_ast_not_found of string
exception Sig_ast_ALoc_table_not_found of string
excepti... | 22.26087 | 66 | 0.816406 |
f3a6cae105940bdf903e95d9eeb0edcc98c15654 | 3,559 | mli | OCaml | src/b00/kit/b00_pager.mli | fdopen/b0 | acf67fe6dcec3477a2093b47c3d1c8ac66a28960 | [
"ISC"
] | 32 | 2018-07-24T00:16:14.000Z | 2021-11-04T10:04:42.000Z | src/b00/kit/b00_pager.mli | fdopen/b0 | acf67fe6dcec3477a2093b47c3d1c8ac66a28960 | [
"ISC"
] | 8 | 2019-03-10T16:46:41.000Z | 2022-02-08T20:37:54.000Z | src/b00/kit/b00_pager.mli | fdopen/b0 | acf67fe6dcec3477a2093b47c3d1c8ac66a28960 | [
"ISC"
] | 3 | 2019-12-29T00:14:28.000Z | 2021-02-12T18:11:02.000Z | (*---------------------------------------------------------------------------
Copyright (c) 2018 The b0 programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
(** Pager interaction. *)
... | 40.443182 | 79 | 0.612532 |
f3c423c5e177dfad2c9d62a29395472e6583931c | 3,505 | ml | OCaml | Data/sparseVector.ml | gallais/ocaml-sparse-matrix | 428528fc930c91a80372c917a731df8182455740 | [
"WTFPL",
"Unlicense"
] | 1 | 2017-11-15T16:34:53.000Z | 2017-11-15T16:34:53.000Z | Data/sparseVector.ml | gallais/ocaml-sparse-matrix | 428528fc930c91a80372c917a731df8182455740 | [
"WTFPL",
"Unlicense"
] | null | null | null | Data/sparseVector.ml | gallais/ocaml-sparse-matrix | 428528fc930c91a80372c917a731df8182455740 | [
"WTFPL",
"Unlicense"
] | null | null | null | open Index
open AdditiveGroup
open Ring
module Make (I : Index) (AG : AdditiveGroup) = struct
module Vector = BatMap.Make (I)
module AGExt = AGExt (AG)
open AGExt
open OptionExt
type zF
type wK
type idx = I.t
type ag = AG.t
type 'a t = AG.t Vector.t
let is_empty (v : zF t) = Vector.is_empty v
let safeGet i ... | 27.81746 | 68 | 0.543509 |
f3345f10fe1c5f89e0505aeff37965d911f915b3 | 91 | ml | OCaml | examples/long.ml | Et7f3/ocaml-repl | deabb4017f1bc1d5143d6dc860602babe1997ed8 | [
"MIT"
] | 1 | 2021-06-04T13:19:40.000Z | 2021-06-04T13:19:40.000Z | examples/long.ml | Et7f3/ocaml-repl | deabb4017f1bc1d5143d6dc860602babe1997ed8 | [
"MIT"
] | 2 | 2018-10-21T16:42:59.000Z | 2019-03-03T05:37:44.000Z | examples/long.ml | Et7f3/ocaml-repl | deabb4017f1bc1d5143d6dc860602babe1997ed8 | [
"MIT"
] | 2 | 2018-10-20T19:56:27.000Z | 2020-09-04T13:21:45.000Z | let rec f : int -> int
= fun a ->
if a = 0 then 0
else f (a - 1);;
f 1000000000
| 13 | 22 | 0.483516 |
f388c0a6343983a6b25eda8d0ef376b7109258da | 179,425 | ml | OCaml | hphp/hack/src/errors/errors.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/errors.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/errors/errors.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"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 Reordered_argument_collections
open String_utils
type error_code = int [@@deriving eq]
(** We... | 31.561126 | 284 | 0.678902 |
f38d654dbf8b77589ccfad40cf35791799a82201 | 2,351 | ml | OCaml | vendor/core_kernel/src/substring_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/core_kernel/src/substring_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/core_kernel/src/substring_intf.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | (** Interface for {{!Core_kernel.Substring}[Substring]}. *)
open! Import
module type S = sig
(** The type of strings that type [t] is a substring of. *)
type base
type t
include Container.S0 with type t := t with type elt := char
val base : t -> base
(** [pos] refers to the position in the base string... | 30.141026 | 89 | 0.635474 |
f3c81957b2d411ba2ed96beb4770d219f09dbc1c | 1,268 | mli | OCaml | interprocedural_analyses/taint/flow.mli | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/flow.mli | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/flow.mli | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | (* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Ast
open Statement
open Domains
type flow = {
source_taint: ForwardTaint.t;
sink_taint: BackwardTaint.t;
}
[@@deriving sexp]
type ... | 20.451613 | 71 | 0.705836 |
f3014541ecf1b4bf0b84cf958bc623b4478a734f | 1,070 | mli | OCaml | src/udp/udp.mli | well-typed-lightbulbs/mirage-tcpip | 259439ba1ac8f2114a549223ce11d121373671ab | [
"0BSD"
] | 1 | 2021-06-14T11:29:01.000Z | 2021-06-14T11:29:01.000Z | src/udp/udp.mli | well-typed-lightbulbs/mirage-tcpip | 259439ba1ac8f2114a549223ce11d121373671ab | [
"0BSD"
] | null | null | null | src/udp/udp.mli | well-typed-lightbulbs/mirage-tcpip | 259439ba1ac8f2114a549223ce11d121373671ab | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2010 Anil Madhavapeddy <anil@recoil.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" A... | 42.8 | 81 | 0.74486 |
f384ce4e7229b0329533ca34b0d2e5d9807f01ca | 1,464 | mli | OCaml | src/stats.mli | gbelouze/index | cfc44727c08ee972427231c2742e76f27d6f66e6 | [
"MIT"
] | null | null | null | src/stats.mli | gbelouze/index | cfc44727c08ee972427231c2742e76f27d6f66e6 | [
"MIT"
] | null | null | null | src/stats.mli | gbelouze/index | cfc44727c08ee972427231c2742e76f27d6f66e6 | [
"MIT"
] | null | null | null | type t = {
mutable bytes_read : int;
mutable nb_reads : int;
mutable bytes_written : int;
mutable nb_writes : int;
mutable nb_merge : int;
mutable merge_durations : float list;
mutable nb_replace : int;
mutable replace_durations : float list;
mutable nb_sync : int;
mutable time_sync : float;
}
(** T... | 29.877551 | 77 | 0.699454 |
f3c02d92f790e3e6ae923a3986b24a1b55632f5b | 435 | mli | OCaml | src/current_sesame/github/api.mli | reynir/sesame | cc44462adab82ab35c51a26b3452a7f4023dcbc2 | [
"MIT"
] | 56 | 2020-11-11T22:00:55.000Z | 2022-01-14T12:16:44.000Z | src/current_sesame/github/api.mli | reynir/sesame | cc44462adab82ab35c51a26b3452a7f4023dcbc2 | [
"MIT"
] | 12 | 2021-01-23T12:31:52.000Z | 2022-03-16T15:33:16.000Z | src/current_sesame/github/api.mli | reynir/sesame | cc44462adab82ab35c51a26b3452a7f4023dcbc2 | [
"MIT"
] | 4 | 2021-05-23T09:55:34.000Z | 2022-03-08T11:03:08.000Z | module FileContents : sig
type t = [ `Blob of string option ] [@@deriving yojson]
end
module Release : sig
type r = { name : string; created_at : Ptime.t; url : Uri.t }
[@@deriving yojson]
type t = r option array array [@@deriving yojson]
end
module File : sig
type t = string [@@deriving yojson]
end
modul... | 20.714286 | 63 | 0.662069 |
f3650e5d7c6f40dbea277875c94ece9db1ad19b5 | 1,166 | ml | OCaml | src/FS_poll.ml | lessp/luv | e0788bd840219427a2744963f11fff68f2d20087 | [
"MIT"
] | null | null | null | src/FS_poll.ml | lessp/luv | e0788bd840219427a2744963f11fff68f2d20087 | [
"MIT"
] | null | null | null | src/FS_poll.ml | lessp/luv | e0788bd840219427a2744963f11fff68f2d20087 | [
"MIT"
] | null | null | null | (* This file is part of Luv, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/aantron/luv/blob/master/LICENSE.md. *)
type t = [ `FS_poll ] Handle.t
let init ?loop () =
let poll = Handle.allocate C.Types.FS_poll.t in
C.Functions.FS_poll.init (Loop.or_default loop) poll
... | 28.439024 | 79 | 0.725557 |
f392d71a64f97d7e4ba2e80163e8075e169c763a | 309 | mli | OCaml | ocaml/exams/2015_feb/intervalI.mli | samdsk/lp-lab | 39164e7b925ceba062356dc4a3ac33d1ed32cdfd | [
"MIT"
] | 2 | 2021-12-10T11:02:07.000Z | 2022-01-02T07:23:29.000Z | ocaml/exams/2015_feb/intervalI.mli | samdsk/lp-lab | 39164e7b925ceba062356dc4a3ac33d1ed32cdfd | [
"MIT"
] | 1 | 2021-10-19T20:12:37.000Z | 2021-10-19T20:12:57.000Z | ocaml/exams/2015_feb/intervalI.mli | samdsk/lp-lab | 39164e7b925ceba062356dc4a3ac33d1ed32cdfd | [
"MIT"
] | null | null | null | module type IntervalI = sig
type endpoint
type interval
val create : endpoint -> endpoint -> interval
val is_empty : interval -> bool
val contains : interval -> endpoint -> bool
val intersect : interval -> interval -> interval
val tostring : interval -> string
exception WrongInterval
end | 30.9 | 50 | 0.708738 |
f3911f2dbc2bf2d9290024d6439b6f9586dedfea | 4,766 | mli | OCaml | lib/store_client.mli | sevenEng/lib-ml-databox | 11beb3d99d76fe6c190efdf7f6ecb1a34e95759d | [
"MIT"
] | 6 | 2017-12-09T11:15:56.000Z | 2020-04-29T09:58:18.000Z | lib/store_client.mli | sevenEng/lib-ml-databox | 11beb3d99d76fe6c190efdf7f6ecb1a34e95759d | [
"MIT"
] | null | null | null | lib/store_client.mli | sevenEng/lib-ml-databox | 11beb3d99d76fe6c190efdf7f6ecb1a34e95759d | [
"MIT"
] | null | null | null | (** [Store_client] provides the interface to interact with a databox store,
for both drivers and apps. *)
(** {1 Key-value store} *)
(** Type for content format to be written into a key-value store. *)
type content_format = [`Json | `Text | `Binary]
(** Type for content to be written into a key-value store. *)
t... | 39.38843 | 120 | 0.683172 |
f36a9b4d1dae28812f05b3eee751b08e10a0695d | 44,838 | ml | OCaml | src/typing/ty_normalizer.ml | fastpack/flow | 40a4ddf4334b1167e1fbfe6bf795f5a7d1472776 | [
"MIT"
] | null | null | null | src/typing/ty_normalizer.ml | fastpack/flow | 40a4ddf4334b1167e1fbfe6bf795f5a7d1472776 | [
"MIT"
] | null | null | null | src/typing/ty_normalizer.ml | fastpack/flow | 40a4ddf4334b1167e1fbfe6bf795f5a7d1472776 | [
"MIT"
] | 1 | 2018-01-18T10:09:27.000Z | 2018-01-18T10:09:27.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Pervasives
open Utils_js
open Reason
module T = Type
module VSet = ISet
(* The type normalizer converts infered types (of type `T... | 34.411358 | 87 | 0.607164 |
f38c9096bde6de579ca5eb3e9f93892fd6efea97 | 276 | mli | OCaml | src/translate.mli | tetsuo-jp/Minimal | f4504979daedeab16c946297fcce7cb7f5bc4443 | [
"BSD-3-Clause"
] | null | null | null | src/translate.mli | tetsuo-jp/Minimal | f4504979daedeab16c946297fcce7cb7f5bc4443 | [
"BSD-3-Clause"
] | null | null | null | src/translate.mli | tetsuo-jp/Minimal | f4504979daedeab16c946297fcce7cb7f5bc4443 | [
"BSD-3-Clause"
] | 1 | 2019-07-18T01:40:39.000Z | 2019-07-18T01:40:39.000Z | (* $Id: translate.mli,v 1.2 2004/09/24 00:51:16 garrigue Exp $ *)
open Common;;
open Syntax;;
val expression :
(string * ident) list -> expression -> Untyped.expression
val command :
(string * ident) list -> command ->
Untyped.command list * (string * ident) list
;;
| 23 | 65 | 0.65942 |
f3261fc02534f5501bb27416aa1ec61a8264e5ea | 38 | ml | OCaml | lib/backend.ml | igarnier/vplot | 146467257f110f71d48415fc3ddaf0f46a71035a | [
"MIT"
] | 10 | 2017-11-27T16:37:17.000Z | 2020-11-06T18:27:59.000Z | lib/backend.ml | igarnier/vplot | 146467257f110f71d48415fc3ddaf0f46a71035a | [
"MIT"
] | null | null | null | lib/backend.ml | igarnier/vplot | 146467257f110f71d48415fc3ddaf0f46a71035a | [
"MIT"
] | null | null | null | include Vlayout.Backends.Cairo (Cmds)
| 19 | 37 | 0.815789 |
f3d5369d302e38a4d859fccd290c2048cc968309 | 1,557 | ml | OCaml | librange/source/mlrange.ml | xadrnd/range | 49727d2fdba5b9bb3724189f5611c24b2c887405 | [
"BSD-3-Clause"
] | 28 | 2015-03-11T09:03:40.000Z | 2020-04-30T09:46:55.000Z | librange/source/mlrange.ml | eam/range | 78faff4fafb2b36be2af0ab9f5e8dec71d19b1a3 | [
"BSD-3-Clause"
] | 5 | 2015-01-25T20:30:10.000Z | 2020-04-13T19:22:09.000Z | librange/source/mlrange.ml | eam/range | 78faff4fafb2b36be2af0ab9f5e8dec71d19b1a3 | [
"BSD-3-Clause"
] | 10 | 2015-01-25T20:24:34.000Z | 2021-02-23T05:52:36.000Z | open Evaluate
let do_count = ref false
let do_expand = ref false
let range = ref ""
let _ =
let warn_hash = Hashtbl.create 1733 in
let add_warning warn_type node =
if Hashtbl.mem warn_hash warn_type then
let new_list = node :: (Hashtbl.find warn_hash warn_type) in
Hashtbl.replace warn_hash warn_type ne... | 27.803571 | 98 | 0.649968 |
f3a599c0cd12105945b1635ea2773291385b673d | 765 | ml | OCaml | tests/asm_writer_tests.ml | stevejb71/c-compiler | 9d38f15ef84aa0280286b90759a4bfdb744b5a0d | [
"MIT"
] | 1 | 2018-08-10T15:11:55.000Z | 2018-08-10T15:11:55.000Z | tests/asm_writer_tests.ml | stevejb71/c-compiler | 9d38f15ef84aa0280286b90759a4bfdb744b5a0d | [
"MIT"
] | null | null | null | tests/asm_writer_tests.ml | stevejb71/c-compiler | 9d38f15ef84aa0280286b90759a4bfdb744b5a0d | [
"MIT"
] | null | null | null | open Base
open OUnit2
open Asm_writer
let assert_asm_strings_equal exp asm _ctxt =
let got = asm_to_string asm in
assert_equal exp got ~printer:Fn.id
let asm_writer_tests = [
"movl on val + reg" >::
assert_asm_strings_equal "movl $42, %eax" (Movl (I 42,Eax));
"movl on reg + reg" >::
assert_asm_string... | 34.772727 | 79 | 0.648366 |
f34df8cc41af5bdf7fadfcd6b3eca1b1883307ff | 10,605 | ml | OCaml | node_modules/bs-platform/jscomp/stdlib-406/printexc.ml | Et7f3/esy-glfw | cd10f4754ee3e0a1404e2cca7b3ed711230d5202 | [
"Zlib"
] | null | null | null | node_modules/bs-platform/jscomp/stdlib-406/printexc.ml | Et7f3/esy-glfw | cd10f4754ee3e0a1404e2cca7b3ed711230d5202 | [
"Zlib"
] | null | null | null | node_modules/bs-platform/jscomp/stdlib-406/printexc.ml | Et7f3/esy-glfw | cd10f4754ee3e0a1404e2cca7b3ed711230d5202 | [
"Zlib"
] | null | null | null | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 32.136364 | 80 | 0.619048 |
f3982f84eeaa078d45620e8a9f529cb528e8a839 | 10,259 | ml | OCaml | src/panel.ml | rbardou/med | e23c2830909b9e5cd6afe563313435ddaeda90bf | [
"MIT"
] | 9 | 2018-07-31T00:49:01.000Z | 2021-03-16T12:06:30.000Z | src/panel.ml | rbardou/med | e23c2830909b9e5cd6afe563313435ddaeda90bf | [
"MIT"
] | null | null | null | src/panel.ml | rbardou/med | e23c2830909b9e5cd6afe563313435ddaeda90bf | [
"MIT"
] | 1 | 2020-07-06T13:47:24.000Z | 2020-07-06T13:47:24.000Z | open Misc
type t =
{
mutable view: File.view; (* current view *)
(* Contains only [File] views. *)
mutable previous_views: File.view list;
}
let get_current_main_view panel =
panel.view
let get_current_view panel =
let view = panel.view in
match view.prompt with
| Some { prompt_view } ->
... | 30.900602 | 109 | 0.567112 |
f379e71f682ddc76af9d4a8f4f1f1c7f2fc3e969 | 3,439 | ml | OCaml | hphp/hack/src/parser/hh_autoimport.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/hh_autoimport.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/hh_autoimport.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2017; Facebook; Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(* The auto alias map for Hack types. This is adapted from the
* Parser::AutoAliasMap in hphp/compiler/parser/{pars... | 29.393162 | 69 | 0.68014 |
f372c9ed880c5c4c012e9a8ae6baa9210518df9f | 2,601 | ml | OCaml | src/commands/initCommand.ml | mxstbr/flow | a0ed2e28278e66add6f963d9c4f2328428c04480 | [
"MIT"
] | 2 | 2019-01-31T09:33:15.000Z | 2019-01-31T09:35:08.000Z | src/commands/initCommand.ml | mxstbr/flow | a0ed2e28278e66add6f963d9c4f2328428c04480 | [
"MIT"
] | null | null | null | src/commands/initCommand.ml | mxstbr/flow | a0ed2e28278e66add6f963d9c4f2328428c04480 | [
"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.
*)
(***********************************************************************)
(* flow init command *)
(*************************************... | 35.630137 | 99 | 0.67128 |
d2dbaf2a232e47c128ac52064049f1804f56dd9c | 3,649 | ml | OCaml | src/dlist.ml | BYVoid/Dlist | 4f57f7cd0231d30b51673da7a64ed2cf52c14074 | [
"BSD-3-Clause"
] | 19 | 2016-03-30T11:31:52.000Z | 2019-10-20T19:14:50.000Z | src/dlist.ml | BYVoid/Dlist | 4f57f7cd0231d30b51673da7a64ed2cf52c14074 | [
"BSD-3-Clause"
] | 3 | 2015-03-21T16:11:54.000Z | 2019-12-26T05:46:41.000Z | src/dlist.ml | batsh-dev-team/Dlist | 4f57f7cd0231d30b51673da7a64ed2cf52c14074 | [
"BSD-3-Clause"
] | 1 | 2019-11-22T14:02:46.000Z | 2019-11-22T14:02:46.000Z | (*
Copyright (c) 2013, BYVoid <byvoid@byvoid.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditio... | 24.993151 | 79 | 0.671691 |
f339738d794b5d6cc4043c410c15fb3547a05d4e | 29,726 | ml | OCaml | hphp/hack/src/typing/typing_compare.ml | craigcarnell/hhvm | 8f5e53a707c6158d2c81222ee73e09bce945c215 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_compare.ml | craigcarnell/hhvm | 8f5e53a707c6158d2c81222ee73e09bce945c215 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_compare.ml | craigcarnell/hhvm | 8f5e53a707c6158d2c81222ee73e09bce945c215 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(***********... | 40.832418 | 106 | 0.597221 |
f3a92535ae7566c47e54f1fb1ab91eb3236c6246 | 90 | ml | OCaml | data/derived/comb/progs/unify/prog0039.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/prog0039.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog0039.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec listReverse l =
match l with | x::[] -> x | hd::tl -> (listReverse tl) :: hd;;
| 22.5 | 64 | 0.544444 |
f39c619e1e7da6425f074117b511c368c41db6d8 | 127 | ml | OCaml | test/interface/golden/__tests__/sum/OnOrOff_spec.ml | LumiGuide/ocaml-export | 7f803eb961851ceb4853fae0e741378d86237d2b | [
"BSD-3-Clause"
] | 13 | 2018-02-16T08:30:21.000Z | 2021-06-15T21:38:32.000Z | test/interface/golden/__tests__/sum/OnOrOff_spec.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/__tests__/sum/OnOrOff_spec.ml | plow-technologies/reason-export | 752167f5df37d43534d27d9f63bb512eec1e750d | [
"BSD-3-Clause"
] | 1 | 2021-07-03T20:02:22.000Z | 2021-07-03T20:02:22.000Z | let () =
AesonSpec.goldenDirSpec
OnOrOff.decodeOnOrOff
OnOrOff.encodeOnOrOff
"onOrOff"
"golden/sum/OnOrOff";
| 18.142857 | 25 | 0.692913 |
f31aa5132a141f32e5ecaf4f8e0de078aa731862 | 255 | ml | OCaml | hphp/hack/src/stubs/linting_service.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-05-15T22:07:47.000Z | 2021-05-15T22:07:47.000Z | hphp/hack/src/stubs/linting_service.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/stubs/linting_service.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-01-29T08:44:22.000Z | 2021-01-29T08:44:22.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.
*
*)
let lint _ _ _ = ()
let lint_xcontroller _ _ = ()
| 19.615385 | 66 | 0.666667 |
f32ffeebacabc855f92dd02eaa8283d344f7535e | 2,349 | ml | OCaml | hphp/hack/src/typing/nast_check/pocket_universes_check.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nast_check/pocket_universes_check.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nast_check/pocket_universes_check.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Base
open Aast
let handler =
object
inherit Nast_visitor.handler_base
method! at_class_ _env c =
... | 31.32 | 81 | 0.597701 |
f30e0f687d81f244c24b15243dac705f33d280b7 | 701 | mli | OCaml | src/Die.mli | sangwoo-joh/infer_parallel | 6a19056a5249ec725075f7b5f54be0ee33d76df1 | [
"MIT"
] | 1 | 2021-07-23T06:32:31.000Z | 2021-07-23T06:32:31.000Z | src/Die.mli | sangwoo-joh/infer_parallel | 6a19056a5249ec725075f7b5f54be0ee33d76df1 | [
"MIT"
] | 2 | 2021-05-21T06:45:09.000Z | 2021-10-06T06:40:52.000Z | src/Die.mli | sangwoo-joh/infer_parallel | 6a19056a5249ec725075f7b5f54be0ee33d76df1 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
* Modified work Copyright (c) Sangwoo Joh
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
exception
(* WARNING: ONLY USE IF Logging IS NOT AVAILABLE TO YOU FOR SOME... | 26.961538 | 98 | 0.721826 |
f355338e7f9d5622c25f1685bb0f674b6738f535 | 7,413 | ml | OCaml | src/OCaml/ocaml-tls-snapshot-20150609/lwt/tls_lwt.ml | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 34 | 2015-02-04T18:03:14.000Z | 2020-11-10T06:45:28.000Z | src/OCaml/ocaml-tls-snapshot-20150609/lwt/tls_lwt.ml | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 5 | 2015-06-30T21:17:00.000Z | 2016-06-14T22:31:51.000Z | src/OCaml/ocaml-tls-snapshot-20150609/lwt/tls_lwt.ml | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 15 | 2015-10-29T14:21:58.000Z | 2022-01-19T07:33:14.000Z | open Lwt
exception Tls_alert of Tls.Packet.alert_type
exception Tls_failure of Tls.Engine.failure
let o f g x = f (g x)
type tracer = Sexplib.Sexp.t -> unit
(* This really belongs just about anywhere else: generic unix name resolution. *)
let resolve host service =
let open Lwt_unix in
lwt tcp = getprotobynam... | 29.891129 | 84 | 0.588426 |
f3c79a250671c2f1b0e5e74e576949240ebcfd2e | 3,254 | ml | OCaml | src/camera.ml | igarnier/ddgeo | 14759a6c74358ed828b632744d1d31610ae4035b | [
"MIT"
] | null | null | null | src/camera.ml | igarnier/ddgeo | 14759a6c74358ed828b632744d1d31610ae4035b | [
"MIT"
] | null | null | null | src/camera.ml | igarnier/ddgeo | 14759a6c74358ed828b632744d1d31610ae4035b | [
"MIT"
] | null | null | null | open Gg
type t = {
view : M4.t;
projection : M4.t;
eye : V3.t;
towards : V3.t;
up : V3.t;
}
let pp fmtr {eye; towards; up; _} =
Format.fprintf
fmtr
"eye=%a towards=%a up=%a"
V3.pp
eye
V3.pp
towards
V3.pp
up
let pi = acos ~-.1.
let neutral =
{
view = M4.id;
proje... | 26.032 | 75 | 0.600492 |
f3168be316e4dd1ab959932e67d27672304938d9 | 4,514 | ml | OCaml | init/gha.ml | jfyuen/ocamlnn | fa199f798b5866c560627dac03ef08b7623c9735 | [
"MIT"
] | null | null | null | init/gha.ml | jfyuen/ocamlnn | fa199f798b5866c560627dac03ef08b7623c9735 | [
"MIT"
] | null | null | null | init/gha.ml | jfyuen/ocamlnn | fa199f798b5866c560627dac03ef08b7623c9735 | [
"MIT"
] | null | null | null | module Fam = Matrix;;
let sep = "************************\n";;
module Gha_neuron =
struct
type neuron =
{
input : float Fam.matrix;
output : float;
last_output : float;
err_sum : float;
}
let create input out =
{
input = input;
output = out;
last_output = out;
err_sum = 0.... | 24.802198 | 80 | 0.61121 |
f3610b2172f241ae2a89eeb2f4f36baedcf67d31 | 655 | ml | OCaml | data/derived/comb/progs/unify/prog3694.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/prog3694.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3694.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec listReverse2 l dest =
match l with | [] -> dest | h::t -> listReverse2 t (h :: dest);;
let rec digitsOfInt n =
match n / 10 with
| 0 -> [n mod 10]
| _ -> (n mod 10) :: (digitsOfInt (n / 10));;
let rec digitsToList n =
match n / 10 with
| 0 -> [n mod 10]
| _ -> (n mod 10) :: (digitsOfInt (n / 10... | 25.192308 | 76 | 0.589313 |
d2e544541cba8486401ac568512629e7ac0e8d59 | 6,113 | mli | OCaml | lib/binary_packing.mli | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/binary_packing.mli | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | lib/binary_packing.mli | chambart/core_kernel | 025f7a0695bf51317b23750c23f7c7824a0f9af1 | [
"Apache-2.0"
] | null | null | null | (** Packs and unpacks various types of integers into and from strings.
Functions ending in _int should not be used on 32 bit programs because native ocaml
ints will not be big enough.
[pos] arguments refer to the location in the buf string.
We support big and little endian ints. Note that for an 8 bit (... | 53.156522 | 90 | 0.670865 |
f3e460454b619322317e425a905ed739ba59a357 | 676 | mli | OCaml | infer/src/clang/ClangLogging.mli | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/clang/ClangLogging.mli | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/clang/ClangLogging.mli | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
val log_caught_exception :
CFrontend_config.translation_unit_context -> string -> Logging.ocaml_pos
-> Clang_ast_t.source... | 33.8 | 88 | 0.757396 |
f391a32c9983c725e8b1ca81c31c4d7faeb60688 | 393 | ml | OCaml | src/monomorphic/mkshims.ml | bbc2/ocaml-containers | bfaffc5c39cdb1c1c5a4e6e10f01c07ce5835907 | [
"BSD-2-Clause"
] | 403 | 2015-03-04T09:50:16.000Z | 2022-03-31T07:15:26.000Z | src/monomorphic/mkshims.ml | bbc2/ocaml-containers | bfaffc5c39cdb1c1c5a4e6e10f01c07ce5835907 | [
"BSD-2-Clause"
] | 326 | 2015-01-01T06:30:20.000Z | 2022-03-23T13:02:47.000Z | src/monomorphic/mkshims.ml | bbc2/ocaml-containers | bfaffc5c39cdb1c1c5a4e6e10f01c07ce5835907 | [
"BSD-2-Clause"
] | 92 | 2015-01-10T22:07:33.000Z | 2022-01-25T17:03:55.000Z |
module C = Configurator.V1
let shims_pre_408 = "module Stdlib = Pervasives"
let shims_post_408 = "module Stdlib = Stdlib"
let () =
C.main ~name:"mkshims" (fun c ->
let version = C.ocaml_config_var_exn c "version" in
let major, minor = Scanf.sscanf version "%u.%u" (fun maj min -> maj, min) in
print_endl... | 32.75 | 86 | 0.687023 |
f39806f28269aec2ed42f0502964e31acbb538cc | 20,605 | ml | OCaml | hphp/hack/test/rust/rust_ocaml_test.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/test/rust/rust_ocaml_test.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/test/rust/rust_ocaml_test.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* Copyright (c) 2019, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module OcamlPrintf = Printf
open Hh_prelude
module Printf = OcamlPrintf
[@@@warning "-3"]
module SourceText = Full... | 33.073836 | 99 | 0.60563 |
f3ad8e9e827574ae0c1ab0f2189249b7d3fd8760 | 930 | ml | OCaml | libraries/ec2/lib/deletePlacementGroup.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deletePlacementGroup.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deletePlacementGroup.ml | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
open Aws
type input = DeletePlacementGroupRequest.t
type output = unit
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.append... | 31 | 78 | 0.629032 |
f372820c2b1d1293887f7c2dcf356258347e287f | 704 | ml | OCaml | src/level.ml | williamsam1/spartan-type-theory | 1136c5e6e9153c4927925a39ab1869c00b698975 | [
"MIT"
] | 201 | 2017-12-14T15:42:36.000Z | 2022-03-15T18:22:46.000Z | src/level.ml | unshorn/spartan-type-theory | 3806830b2a52a630696b7d218f033fd92b148d2e | [
"MIT"
] | 4 | 2021-05-03T12:35:45.000Z | 2021-05-06T12:56:19.000Z | src/level.ml | unshorn/spartan-type-theory | 3806830b2a52a630696b7d218f033fd92b148d2e | [
"MIT"
] | 18 | 2018-01-24T11:00:24.000Z | 2021-12-03T13:59:02.000Z | (** Precedence levels, support for pretty-printing. *)
type t = int
let parenthesize ~at_level ~max_level = max_level < at_level
type infix =
| Infix0
| Infix1
| Infix2
| Infix3
| Infix4
let highest = 1000
let least = 0
let no_parens = least
let prefix = 50
let prefix_arg = 50
let app = 100
let app_lef... | 16 | 60 | 0.646307 |
f385e3c323bb3fd47eef655f7a673a916d6661c2 | 10,732 | mli | OCaml | ocaml/yojson_conv.mli | roddyyaga/bs-ppx_yojson_conv_lib | 1b05b7cac4433ea4c7e5dbacd85d6d983b7e3bc4 | [
"MIT"
] | 4 | 2019-11-20T16:19:48.000Z | 2021-12-17T02:55:26.000Z | ocaml/yojson_conv.mli | roddyyaga/bs-ppx_yojson_conv_lib | 1b05b7cac4433ea4c7e5dbacd85d6d983b7e3bc4 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | ocaml/yojson_conv.mli | roddyyaga/bs-ppx_yojson_conv_lib | 1b05b7cac4433ea4c7e5dbacd85d6d983b7e3bc4 | [
"MIT"
] | 4 | 2020-01-06T21:30:13.000Z | 2021-12-17T02:56:06.000Z | (** Utility Module for Yojson Conversions *)
(** {6 Conversion of OCaml-values to Yojsons} *)
(** [yojson_of_unit ()] converts a value of type [unit] to an Yojson. *)
val yojson_of_unit : unit -> Yojson.Safe.t
(** [yojson_of_bool b] converts the value [b] of type [bool] to an
Yojson. *)
val yojson_of_bool : bool... | 39.167883 | 87 | 0.670332 |
d2df3e212cc4c6b39cd9171c39e7010278c95907 | 3,363 | ml | OCaml | src/backend/Gen1.ml | Joshua-401/OpenSC | 665a83fb628ac7feeaa9afb0c5d990bd0470c572 | [
"MIT"
] | 1 | 2020-05-11T05:31:46.000Z | 2020-05-11T05:31:46.000Z | src/backend/Gen1.ml | Joshua-401/OpenSC | 665a83fb628ac7feeaa9afb0c5d990bd0470c572 | [
"MIT"
] | 4 | 2020-03-29T00:17:22.000Z | 2020-04-21T03:34:16.000Z | src/backend/Gen1.ml | Joshua-401/OpenSC | 665a83fb628ac7feeaa9afb0c5d990bd0470c572 | [
"MIT"
] | 1 | 2020-06-02T22:21:02.000Z | 2020-06-02T22:21:02.000Z | open Datatypes
open Globalenvs
open Language3
open Language1
open Language2
open Maps0
open Options
open Trees
(** val cbasic_stm : bool option -> node -> Language1.statement -> bblock **)
let cbasic_stm ismethod nthis = function
| Sskip n -> Coq_cons ((Sjump n), Coq_nil)
| Language1.Sassign (lv, rv, n) ->
Coq_cons... | 36.554348 | 79 | 0.703539 |
f3bcb5b947c5c2885c32ddc817307f6e34babae4 | 18,474 | ml | OCaml | data/derived/comb/progs/unify/prog6315.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/prog1470.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1470.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.639576 | 208 | 0.659088 |
f356e64fe8a7368b18495f1a2d317723f858ca28 | 2,193 | ml | OCaml | src/abort.ml | paulp/unison | 1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2 | [
"MIT"
] | 2 | 2016-03-17T02:42:43.000Z | 2016-03-17T13:59:31.000Z | src/abort.ml | paulp/unison | 1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2 | [
"MIT"
] | null | null | null | src/abort.ml | paulp/unison | 1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2 | [
"MIT"
] | null | null | null | (* Unison file synchronizer: src/abort.ml *)
(* Copyright 1999-2020, Benjamin C. Pierce
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your op... | 30.458333 | 74 | 0.693114 |
f308e73038bad299eb624a58a09a5a3d4bd707fe | 2,519 | ml | OCaml | duniverse/core_kernel/test/src/test_union_find.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/test/src/test_union_find.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/test/src/test_union_find.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open! Core_kernel
open! Import
open! Union_find
open! Union_find.Private
(* invariant checking wrapper functions *)
let create x =
let t = create x in
assert (is_compressed t);
t
;;
let union t1 t2 =
union t1 t2;
invariant ignore t1;
invariant ignore t2;
assert (is_compressed t1 || is_compressed t2)
;;... | 20.479675 | 80 | 0.597856 |
f3e0f347cfe204417ccbde12384d3692c6db88eb | 154 | ml | OCaml | test/unit/fixtures/instrument/letexception_404.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/letexception_404.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/letexception_404.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | 1 | 2020-11-17T11:14:18.000Z | 2020-11-17T11:14:18.000Z | (* Non-tail position. *)
let () =
let exception E in
print_endline "bar"
(* Tail position. *)
let f () =
let exception E in
print_endline "bar"
| 14 | 24 | 0.623377 |
f3d58d3fd6c36acd140d737fd67ee1386b1e9689 | 954 | mli | OCaml | kernel/src/file_name.mli | vch9/patdiff | be5ff865a73e51efc43555e411faf99964061387 | [
"MIT"
] | 180 | 2015-02-18T16:13:14.000Z | 2022-03-28T16:46:56.000Z | kernel/src/file_name.mli | vch9/patdiff | be5ff865a73e51efc43555e411faf99964061387 | [
"MIT"
] | 15 | 2015-08-05T10:17:15.000Z | 2021-07-14T16:58:06.000Z | kernel/src/file_name.mli | vch9/patdiff | be5ff865a73e51efc43555e411faf99964061387 | [
"MIT"
] | 15 | 2015-11-17T08:55:19.000Z | 2021-12-17T02:47:00.000Z | (** Used to determine which name to use for a file, depending on the operation. *)
open! Core
open! Import
type t =
| Real of
{ real_name : string
; alt_name : string option
}
(** A name corresponding to a real file on disk. [alt_name] is used to display
the file name and for file extensi... | 29.8125 | 86 | 0.67086 |
f364c0cb44598dd2d9876729c4dec1b333190c85 | 2,863 | mli | OCaml | hphp/hack/src/providers/rust_provider_backend.mli | leikahing/hhvm | 26617c88ca35c5e078c3aef12c061d7996925375 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/rust_provider_backend.mli | leikahing/hhvm | 26617c88ca35c5e078c3aef12c061d7996925375 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/rust_provider_backend.mli | leikahing/hhvm | 26617c88ca35c5e078c3aef12c061d7996925375 | [
"PHP-3.01",
"Zend-2.0"
] | 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 "hack" directory of this source tree.
*
*)
type t
val make : ParserOptions.t -> t
val push_local_changes : t -> unit
val pop_local_changes : t -> unit
module Decl ... | 28.068627 | 81 | 0.7073 |
f3c4cfc7c70e18c9a358f3b3ce6397a11fce5ca8 | 3,818 | ml | OCaml | src/gen/import.ml | pitag-ha/ppxlib | bdefa10bdfd98d8926e078f23bb072c31e62329e | [
"MIT"
] | null | null | null | src/gen/import.ml | pitag-ha/ppxlib | bdefa10bdfd98d8926e078f23bb072c31e62329e | [
"MIT"
] | null | null | null | src/gen/import.ml | pitag-ha/ppxlib | bdefa10bdfd98d8926e078f23bb072c31e62329e | [
"MIT"
] | null | null | null | include Ppxlib_ast
include Ast
open Ast_helper
let loc =
(* This is fine, because the location info is thrown away when the generated code
written out to the .ml file *)
Location.none
let lident x = Longident.Lident x
module Loc = struct
let mk x = { Location.loc; txt = x }
let lident x = mk (Longid... | 24.164557 | 92 | 0.606076 |
f30d016384d8f3265ff97df8dcfbbd36d71b501f | 5,607 | ml | OCaml | src/utils/Optims.ml | victornicolet/Synduce | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 3 | 2021-11-23T04:43:40.000Z | 2021-12-09T17:20:59.000Z | src/utils/Optims.ml | victornicolet/Synduce | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | null | null | null | src/utils/Optims.ml | victornicolet/Synduce | 86a96d263f49c1eccd8f584d624de119180e0eea | [
"MIT"
] | 1 | 2021-05-12T15:14:40.000Z | 2021-05-12T15:14:40.000Z | open Base
let turn_off x = x := false
(* ============================================================================================= *)
(* SYSTEM OF EQUATIONS OPTIMIZATION FLAGS *)
(* ==============================================================================... | 28.461929 | 99 | 0.64901 |
f38d8b439d9d30da264c1f638252a74e87f4fc09 | 536 | ml | OCaml | chapter12/lib/validationapplicative.ml | pengnam/fpinocaml | 7cc0ce6a90b0e77d8ff41404579fe404aff9eca9 | [
"MIT"
] | 4 | 2021-06-25T09:55:12.000Z | 2021-06-26T20:30:35.000Z | chapter12/lib/validationapplicative.ml | pengnam/fpinocaml | 7cc0ce6a90b0e77d8ff41404579fe404aff9eca9 | [
"MIT"
] | null | null | null | chapter12/lib/validationapplicative.ml | pengnam/fpinocaml | 7cc0ce6a90b0e77d8ff41404579fe404aff9eca9 | [
"MIT"
] | null | null | null | open Core
module T = struct
(*right is success*)
type ('a, 'e) t = Success of 'a | Fail of ('e * 'e List.t)
let return a = Success a
let _map2 ta tb f = match ta, tb with
| Success a, Success b -> Success (f a b)
| Success _, Fail (h, t) -> Fail (h, t)
| Fail (h, t), Success _ ->... | 24.363636 | 76 | 0.552239 |
f3a01028c46c5017e0abbe044bac6750cb3f2b41 | 304 | ml | OCaml | data/sp14_min/3525.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/3525.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/3525.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 (digitsOfInt n) mod 10;;
(* fix
let rec digitsOfInt n = if n < 0 then [] else digitsOfInt (n / 10);;
*)
(* changed spans
(2,47)-(2,69)
digitsOfInt (n / 10)
AppG [BopG EmptyG EmptyG]
*)
(* type error slice
(2,25)-(2,69)
(2,39)-(2,41)
(2,47)-(2,69)
*)
| 13.217391 | 70 | 0.585526 |
f3cc2f2f14c8b7b1ff3dac5cacb1d45a0030bace | 863 | ml | OCaml | src/snapshot.ml | diaozheng999/incremental | 240c52e868d915543c4a8309e9c4512ae37868f6 | [
"MIT"
] | 725 | 2015-07-06T19:39:26.000Z | 2022-03-25T07:08:27.000Z | src/snapshot.ml | diaozheng999/incremental | 240c52e868d915543c4a8309e9c4512ae37868f6 | [
"MIT"
] | 13 | 2015-07-07T14:27:20.000Z | 2021-09-07T13:32:57.000Z | src/snapshot.ml | diaozheng999/incremental | 240c52e868d915543c4a8309e9c4512ae37868f6 | [
"MIT"
] | 51 | 2016-02-01T16:31:33.000Z | 2022-03-22T23:35:24.000Z | open Core
open! Import
open Types.Kind
module Node = Types.Node
type 'a t = 'a Types.Snapshot.t =
{ main : 'a Node.t
; at : Time_ns.t
; before : 'a
; value_at : 'a Node.t
; clock : (Types.Clock.t[@sexp.opaque])
}
[@@deriving fields, sexp_of]
let invariant invariant_a t =
Invariant.invariant [%here] t [%... | 26.96875 | 74 | 0.575898 |
f3b84cebf390b4d9645b4faf22f761dace28664f | 294 | mli | OCaml | ppx-standalone/gen_js_api.mli | hhugo/gen_js_api | b0ac205727d9bfe319ef86dbc674728c02e4a43f | [
"MIT"
] | null | null | null | ppx-standalone/gen_js_api.mli | hhugo/gen_js_api | b0ac205727d9bfe319ef86dbc674728c02e4a43f | [
"MIT"
] | null | null | null | ppx-standalone/gen_js_api.mli | hhugo/gen_js_api | b0ac205727d9bfe319ef86dbc674728c02e4a43f | [
"MIT"
] | null | null | null | (* The gen_js_api is released under the terms of an MIT-like license. *)
(* See the attached LICENSE file. *)
(* Copyright 2015 by LexiFi. *)
(* Empty interface, to enable unused-declaration warnings. *)
| 49 | 76 | 0.5 |
f3bc9b3b61c455b957a0aa351049f501a64ab3c5 | 1,021 | mli | OCaml | lib/VarState.mli | SEICS/dice | 7811bb43de3e35fa6ac8718ce48018825ab8793b | [
"Apache-2.0"
] | 47 | 2020-01-11T18:18:19.000Z | 2022-03-22T19:46:08.000Z | lib/VarState.mli | SEICS/dice | 7811bb43de3e35fa6ac8718ce48018825ab8793b | [
"Apache-2.0"
] | 32 | 2020-01-14T01:48:12.000Z | 2022-03-21T06:46:02.000Z | lib/VarState.mli | SEICS/dice | 7811bb43de3e35fa6ac8718ce48018825ab8793b | [
"Apache-2.0"
] | 15 | 2020-01-18T04:23:35.000Z | 2022-03-21T04:33:30.000Z | open Core
(** A simple generic btree datastructure. *)
type 'a btree =
Leaf of 'a
| Node of 'a btree * 'a btree
[@@deriving sexp]
val map_tree: 'a btree -> ('a -> 'b) -> 'b btree
val iter_tree: 'a btree -> ('a -> unit) -> unit
val collect_leaves: 'a btree -> 'a List.t
val zip_tree : 'a btree -> 'b btree -> ('a ... | 37.814815 | 109 | 0.641528 |
f3166e4d4fa4e9715ce87610e96c6844f545497d | 2,615 | ml | OCaml | core/bench-bin/core_string_search_pattern.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 834 | 2015-01-02T03:14:35.000Z | 2022-03-28T05:17:24.000Z | core/bench-bin/core_string_search_pattern.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 99 | 2015-01-03T09:30:25.000Z | 2022-02-23T02:40:57.000Z | core/bench-bin/core_string_search_pattern.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | 100 | 2015-02-01T10:54:19.000Z | 2022-03-15T18:23:22.000Z | open Core
open Core_bench
let rec make_needle k =
if k < 0
then ""
else (
let b = make_needle (k - 1) in
String.concat ~sep:(String.of_char (Char.of_int_exn (65 + k))) [ b; b ])
;;
let make_haystack k j =
let c = make_needle (k - 1) in
String.concat ~sep:"$" (List.init j ~f:(fun _ -> c) @ [ make_nee... | 35.821918 | 99 | 0.557553 |
f353e5edf9faa24fd1af89c4ac3c96e5b960f6ef | 2,386 | mli | OCaml | lib/fir/src/atomic_fetch.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 2 | 2021-06-09T22:28:00.000Z | 2021-06-30T18:08:22.000Z | lib/fir/src/atomic_fetch.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 13 | 2021-02-10T08:57:29.000Z | 2021-02-16T16:17:25.000Z | lib/fir/src/atomic_fetch.mli | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 1 | 2021-06-09T22:28:01.000Z | 2021-06-09T22:28:01.000Z | (* This file is part of c4f.
Copyright (c) 2018-2021 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.61194 | 77 | 0.692791 |
f3214310e83964a708fe205a5e95618f5266cc76 | 4,202 | mli | OCaml | src/core/CCOpt.mli | struktured/ocaml-containers | da09bfa02e2d4c74949834847df654a7859729e9 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCOpt.mli | struktured/ocaml-containers | da09bfa02e2d4c74949834847df654a7859729e9 | [
"BSD-2-Clause"
] | null | null | null | src/core/CCOpt.mli | struktured/ocaml-containers | da09bfa02e2d4c74949834847df654a7859729e9 | [
"BSD-2-Clause"
] | null | null | null |
(*
copyright (c) 2013-2014, simon cruanes
all rights reserved.
redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
redistributions of source code must retain the above copyright notice, this
list of conditions and the followin... | 32.076336 | 94 | 0.609948 |
f321f97bdcba66bcdb3bcf9d75616c796b0457d6 | 13,142 | ml | OCaml | src/dune_rules/obj_dir.ml | snowleopard/dune | dcf921ca5cd825ddb054682809bc4032e0d92ebc | [
"MIT"
] | null | null | null | src/dune_rules/obj_dir.ml | snowleopard/dune | dcf921ca5cd825ddb054682809bc4032e0d92ebc | [
"MIT"
] | null | null | null | src/dune_rules/obj_dir.ml | snowleopard/dune | dcf921ca5cd825ddb054682809bc4032e0d92ebc | [
"MIT"
] | null | null | null | open! Dune_engine
open! Stdune
open Import
module Paths = struct
let library_object_directory ~dir name =
Path.Build.relative dir ("." ^ Lib_name.Local.to_string name ^ ".objs")
let library_native_dir ~obj_dir = Path.Build.relative obj_dir "native"
let library_byte_dir ~obj_dir = Path.Build.relative obj_di... | 29.868182 | 80 | 0.65888 |
f390b3dd534c8437ef958c6f02c8929fde831892 | 590 | mli | OCaml | src/input/semantics.mli | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 19 | 2018-08-19T14:41:41.000Z | 2021-09-14T14:07:03.000Z | src/input/semantics.mli | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 2 | 2019-04-10T02:05:47.000Z | 2022-03-07T15:41:36.000Z | src/input/semantics.mli | Gbury/archsat | 322fbefa4a58023ddafb3fa1a51f8199c25cde3d | [
"MIT"
] | 2 | 2019-02-12T14:25:50.000Z | 2021-05-14T11:12:52.000Z | (* This file is free software, part of Archsat. See file "LICENSE" for more details. *)
(** {2 Semantic extensions} *)
type ext
(** The type of a semantic extension. *)
module Addon : Extension.S with type ext = ext
(** Module for registering addons *)
val section : Section.t
(** Section for semantics extensions. *... | 24.583333 | 87 | 0.7 |
f3d478aadfbc9f0bfa70a2b5431688eaa3d272a9 | 84,402 | ml | OCaml | src/typing/errors/error_message.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | src/typing/errors/error_message.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | src/typing/errors/error_message.ml | bnelo12/flow | 65f2158e01d5b50df0be0b4fe1f2363fd3b8e7a0 | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Type
open Reason
open Utils_js
exception EDebugThrow of ALoc.t
exception EMergeTimeout of float
exception ECheckTimeout of f... | 40.558385 | 138 | 0.66316 |
f3de8eaad4c45dcd17bfe189650c570159753bda | 3,491 | ml | OCaml | data/sp14/2722.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/2722.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/2722.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec clone x n =
if n < 0
then []
else (match n with | 0 -> [] | _ -> (clone x (n - 1)) @ [x]);;
let padZero l1 l2 =
let num1 = (List.length l2) - (List.length l1) in
let num2 = (List.length l1) - (List.length l2) in
(((clone 0 num1) @ l1), ((clone 0 num2) @ l2));;
let rec removeZero l =
match l wit... | 17.994845 | 71 | 0.494414 |
f3aac0beb7bbd9d6b620c779178245cde6de3c9f | 462 | ml | OCaml | src/ppx/decode_cases.ml | green-labs/ppx_spice | 9becfd02146c529cc2108cb5a3c3ad4db76393ef | [
"MIT"
] | 10 | 2021-11-01T02:41:05.000Z | 2022-01-09T14:14:54.000Z | src/ppx/decode_cases.ml | mattdamon108/ppx_spice | 82ef119e08372d78d5f1ad35f08abd54de37d03d | [
"MIT"
] | 5 | 2021-10-30T09:48:16.000Z | 2021-11-12T03:21:30.000Z | src/ppx/decode_cases.ml | mattdamon108/ppx_spice | 82ef119e08372d78d5f1ad35f08abd54de37d03d | [
"MIT"
] | 1 | 2021-11-12T03:06:33.000Z | 2021-11-12T03:06:33.000Z | open Ppxlib
open Parsetree
open Ast_helper
open Utils
let generate_error_case numArgs i _ =
{
pc_lhs =
Array.init numArgs (fun which ->
match which == i with
| true -> [%pat? Belt.Result.Error (e : Spice.decodeError)]
| false -> [%pat? _])
|> Array.to_list
|> tuple... | 24.315789 | 78 | 0.588745 |
f3bef8c67b987b24853926adfa158f420e168ce4 | 2,226 | ml | OCaml | lib/encode.ml | pveber/biotk | 66789e2780268855e20931affd3a4ffef7df70eb | [
"CECILL-B"
] | 5 | 2020-03-08T17:18:32.000Z | 2021-10-03T11:56:07.000Z | lib/encode.ml | pveber/biotk | 66789e2780268855e20931affd3a4ffef7df70eb | [
"CECILL-B"
] | null | null | null | lib/encode.ml | pveber/biotk | 66789e2780268855e20931affd3a4ffef7df70eb | [
"CECILL-B"
] | 1 | 2022-03-07T09:36:55.000Z | 2022-03-07T09:36:55.000Z | open Core_kernel
module Experiment_list = struct
type t = item list
and item = {
data_type : [ | `CAGE | `ChIA_PET | `ChIP_seq
| `Combined | `DNA_PET | `DNase_DGF
| `DNase_seq | `Exon_array | `FAIRE_seq
| `GENCODE | `Genotype | `_5C ] ;
cell_type : ... | 31.352113 | 152 | 0.614555 |
f390605a6db3ee0b0f1e72462f4cc73673ca29f1 | 147 | ml | OCaml | data/sp14/clusters/0024.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/clusters/0024.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14/clusters/0024.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z | BopG VarG LitG
n mod 10
n - 50
n < 0
n = 0
a < 10
n < 10
x * 1
i = 0
q + 1
n / 10
n > 0
prod / 10
prod mod 10
x + 1
n >= 10
x * 10
v mod 10
x <> 0
| 7.35 | 14 | 0.496599 |
d2d230b09b4e2a855b017af40d870342d24e2502 | 596 | ml | OCaml | pkg/pkg.ml | dinosaure/mirage-solo5 | ef89ad2e5e7a30ea5aff28254016d68f02ef7606 | [
"ISC"
] | null | null | null | pkg/pkg.ml | dinosaure/mirage-solo5 | ef89ad2e5e7a30ea5aff28254016d68f02ef7606 | [
"ISC"
] | 2 | 2019-11-01T18:54:40.000Z | 2019-11-01T18:54:56.000Z | pkg/pkg.ml | dinosaure/mirage-solo5 | ef89ad2e5e7a30ea5aff28254016d68f02ef7606 | [
"ISC"
] | null | null | null | #!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
#require "ocb-stubblr.topkg"
open Topkg
open Ocb_stubblr_topkg
let opams = [
Pkg.opam_file "opam" ~lint_deps_excluding:(Some ["ocaml-freestanding"])
]
let nowhere ?force ?built ?cond ?exts ?dst _ = Pkg.nothing
let () =
Pkg.describe ~build:(Pkg.build ~cmd()) ~o... | 27.090909 | 74 | 0.689597 |
f3251317e51c66c03392ffdce5e45c1bd2b21448 | 5,265 | ml | OCaml | lib/fuzz_run/src/action_pool.ml | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 2 | 2021-06-09T22:28:00.000Z | 2021-06-30T18:08:22.000Z | lib/fuzz_run/src/action_pool.ml | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 13 | 2021-02-10T08:57:29.000Z | 2021-02-16T16:17:25.000Z | lib/fuzz_run/src/action_pool.ml | c4-project/c4f | c2765061ad816d41d0545eabe3f3cd7c574383f4 | [
"CECILL-B",
"MIT"
] | 1 | 2021-06-09T22:28:01.000Z | 2021-06-09T22:28:01.000Z | (* This file is part of c4f.
Copyright (c) 2018-2021 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... | 36.310345 | 77 | 0.678822 |
f3dffe84960037b5de027140b4a647d469e0c8b0 | 4,690 | ml | OCaml | src/external/rpc_parallel/example/workers_as_masters.ml | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/external/rpc_parallel/example/workers_as_masters.ml | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | src/external/rpc_parallel/example/workers_as_masters.ml | rahulmutt/coda | 7a7dbb04c4dafea860ac03e5f88e58637e8040d3 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
(* An example demonstrating how workers can themselves act as masters and spawn more
workers. We have two layers of workers, where the first layer spawns the workers of the
second layer. *)
module Secondary_worker = struct
module T = struct
type 'worker functions =
{ ping:('work... | 33.262411 | 91 | 0.628998 |
f308ab7fc1f8764d9eb0f9185519d78c51a73a78 | 19,616 | mly | OCaml | src/parser.mly | yurug/archetype-lang | 0bee9ae5b8dbd50f94704f2eb4ae2a5b15b23fb9 | [
"MIT"
] | null | null | null | src/parser.mly | yurug/archetype-lang | 0bee9ae5b8dbd50f94704f2eb4ae2a5b15b23fb9 | [
"MIT"
] | null | null | null | src/parser.mly | yurug/archetype-lang | 0bee9ae5b8dbd50f94704f2eb4ae2a5b15b23fb9 | [
"MIT"
] | null | null | null | /* parser */
%{
open ParseTree
open Location
let emit_error loc =
let str : string = "syntax error" in
let pos : Position.t list = [Tools.location_to_position loc] in
Error.error_alert pos str (fun _ -> ())
let emit_error_msg loc msg =
let str : string = "syntax error: " ^ msg in
let pos :... | 21.723145 | 100 | 0.626478 |
f36dd9af5ffc97f3744d4c2532bd3f85bc751d14 | 633,648 | ml | OCaml | benchmarks/data/Napkinscript.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 166 | 2020-08-11T15:49:10.000Z | 2022-03-23T17:28:36.000Z | benchmarks/data/Napkinscript.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 305 | 2020-08-12T07:41:01.000Z | 2022-03-25T06:33:14.000Z | benchmarks/data/Napkinscript.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 19 | 2020-08-30T14:25:33.000Z | 2022-03-21T07:58:43.000Z | module MiniBuffer : sig
type t
val add_char : t -> char -> unit
val add_string : t -> string -> unit
val contents : t -> string
val create : int -> t
val flush_newline : t -> unit
val length : t -> int
val unsafe_get : t -> int -> char
end = struct
type t = {
mutable buffer : bytes;
mutable p... | 32.42659 | 328 | 0.58524 |
f3a417ebf418ccf39de16db627bb68a007db0307 | 2,002 | mli | OCaml | src/ocaml/typing/405/path.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | src/ocaml/typing/405/path.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | src/ocaml/typing/405/path.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 30.8 | 76 | 0.420579 |
d2ea958a7487384f2aaeb71cbcb253dc3ccf9b4d | 2,543 | mli | OCaml | third_party/flow/src/typing/module_js.mli | bowlofstew/kythe | 23a3524de3924901ffaba4b8bcab8abe96de6f3a | [
"Apache-2.0"
] | 1 | 2021-04-24T08:18:15.000Z | 2021-04-24T08:18:15.000Z | third_party/flow/src/typing/module_js.mli | bowlofstew/kythe | 23a3524de3924901ffaba4b8bcab8abe96de6f3a | [
"Apache-2.0"
] | 3 | 2020-12-31T09:08:34.000Z | 2021-09-28T05:42:02.000Z | third_party/flow/src/typing/module_js.mli | moul/kythe | 2e198cc818981fc6cffa14d8263fda3a33da6429 | [
"Apache-2.0"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Utils
t... | 33.025974 | 80 | 0.688164 |
f39b4c43ccab5e50801708a9c7953dfd3edef41f | 6,743 | ml | OCaml | src/zed_lines.ml | npm-opam/zed | c67ea0ae9621fb32bf2367ce4a0d4b7915554b14 | [
"BSD-3-Clause"
] | null | null | null | src/zed_lines.ml | npm-opam/zed | c67ea0ae9621fb32bf2367ce4a0d4b7915554b14 | [
"BSD-3-Clause"
] | null | null | null | src/zed_lines.ml | npm-opam/zed | c67ea0ae9621fb32bf2367ce4a0d4b7915554b14 | [
"BSD-3-Clause"
] | null | null | null | (*
* zed_lines.ml
* ------------
* Copyright : (c) 2011, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of Zed, an editor engine.
*)
open CamomileLibraryDyn.Camomile
exception Out_of_bounds
(* +-----------------------------------------------------------------+
| Representati... | 28.939914 | 85 | 0.468486 |
f3565c1eb996848eaf089823f1f493d9b05ac68e | 658 | ml | OCaml | example/9-error/error.eml.ml | shawn-mcginty/dream | d54b466b4a4444129883dcec06b6220c9cc60236 | [
"MIT"
] | null | null | null | example/9-error/error.eml.ml | shawn-mcginty/dream | d54b466b4a4444129883dcec06b6220c9cc60236 | [
"MIT"
] | 2 | 2022-01-04T12:57:37.000Z | 2022-01-05T16:17:41.000Z | example/9-error/error.eml.ml | shawn-mcginty/dream | d54b466b4a4444129883dcec06b6220c9cc60236 | [
"MIT"
] | 1 | 2022-01-03T17:03:27.000Z | 2022-01-03T17:03:27.000Z | let my_error_template _error debug_info suggested_response =
let status = Dream.status suggested_response in
let code = Dream.status_to_int status
and reason = Dream.status_to_string status in
suggested_response
|> Dream.with_header "Content-Type" Dream.text_html
|> Dream.with_body begin
<html>
<bo... | 23.5 | 67 | 0.656535 |
f391021e56f6d6b9066bd40659be5fbdf396d682 | 759 | ml | OCaml | data/fa15/clusters/0112.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/clusters/0112.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15/clusters/0112.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z | CaseG VarG [(ConPatG Nothing,Nothing,VarG),(ConPatG Nothing,Nothing,VarG),(ConPatG (Just EmptyPatG),Nothing,BopG EmptyG EmptyG),(ConPatG (Just EmptyPatG),Nothing,AppG [EmptyG]),(ConPatG (Just EmptyPatG),Nothing,AppG [EmptyG]),(ConPatG (Just EmptyPatG),Nothing,BopG EmptyG EmptyG),(ConPatG (Just EmptyPatG),Nothing,IteG E... | 58.384615 | 341 | 0.557312 |
f368b72b8f0ca6acd1c23d499aec305d069d3a28 | 5,386 | ml | OCaml | src/tools/smt2coq/print.ml | Harvard-PRINCESS/Cassiopea-Release | 3fc731463575e9cc6e614f2bcfd11215b7651b5f | [
"BSD-3-Clause"
] | null | null | null | src/tools/smt2coq/print.ml | Harvard-PRINCESS/Cassiopea-Release | 3fc731463575e9cc6e614f2bcfd11215b7651b5f | [
"BSD-3-Clause"
] | null | null | null | src/tools/smt2coq/print.ml | Harvard-PRINCESS/Cassiopea-Release | 3fc731463575e9cc6e614f2bcfd11215b7651b5f | [
"BSD-3-Clause"
] | null | null | null | (****************************************************************************************
BSD License
Copyright (c) 2016-2019, Harvard University
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Red... | 31.497076 | 89 | 0.550687 |
d2d555ab57de2d8829b0da50ffafe1b69de5efb6 | 1,474 | mli | OCaml | source/interprocedural_analyses/type_inference/typeInferenceData.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | 1 | 2022-02-10T10:51:32.000Z | 2022-02-10T10:51:32.000Z | source/interprocedural_analyses/type_inference/typeInferenceData.mli | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/interprocedural_analyses/type_inference/typeInferenceData.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.
*)
val type_to_reference : Type.t -> Ast.Reference.t
module Inference : sig
type target =
| Return
| Parameter of { name:... | 22 | 99 | 0.652646 |
f3cfeba382570f34ace359bb92bcd4f9e059d0f1 | 10,971 | ml | OCaml | hphp/hack/src/decl/shallow_decl.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/shallow_decl.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/decl/shallow_decl.ml | 2BitSalute/hhvm | da549f6612ca8531398a24c44dfc1027707da633 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Decl_defs
open Shallow_decl_defs
open Aast
open Typing_deps
open Typing_defs
module Attrs = Nam... | 31.43553 | 80 | 0.65664 |
f3cc129c8f22eb58d5f35bd1adc668dd54626182 | 177 | ml | OCaml | benchmarks/maxmin/maxmin/submissions/sub19.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 10 | 2018-11-06T00:08:12.000Z | 2019-12-05T11:05:16.000Z | benchmarks/maxmin/maxmin/submissions/sub19.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | null | null | null | benchmarks/maxmin/maxmin/submissions/sub19.ml | kupl/FixML | 0a032a733d68cd8ccc8b1034d2908cd43b241fce | [
"MIT"
] | 2 | 2020-02-06T14:59:50.000Z | 2022-03-16T19:25:43.000Z |
let rec fold f l a =
match l with
|[] -> a
|hd::tl -> f hd(fold f tl a);;
let rec max : int list -> int
= fun lst ->
fold (fun x y -> if x > y then x else y) lst 0 ;;
| 14.75 | 50 | 0.514124 |
f36c87f46a7c544ceb5884946578b8e6d665bc79 | 9,073 | ml | OCaml | src/lib/merkle_address/merkle_address.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2022-03-21T15:43:42.000Z | 2022-03-21T15:43:42.000Z | src/lib/merkle_address/merkle_address.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_address/merkle_address.ml | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | open Core
open Bitstring
module type S = sig
type t [@@deriving sexp, bin_io, hash, eq, compare]
module Stable : sig
module V1 : sig
type nonrec t = t [@@deriving sexp, bin_io, hash, eq, compare]
end
end
include Hashable.S with type t := t
val of_byte_string : string -> t
val of_direction... | 27.831288 | 79 | 0.620522 |
d2d3181efc1e68e1647bdd54ce2d1b75bb89750b | 240 | ml | OCaml | src/main/FomBasis/Option.ml | polytypic/f-omega-mu | 3ced242c94db041f1b6d7e59f762feb1b81c5eb7 | [
"MIT"
] | 20 | 2021-01-31T13:37:35.000Z | 2022-03-24T11:12:46.000Z | src/main/FomBasis/Option.ml | polytypic/f-omega-mu | 3ced242c94db041f1b6d7e59f762feb1b81c5eb7 | [
"MIT"
] | null | null | null | src/main/FomBasis/Option.ml | polytypic/f-omega-mu | 3ced242c94db041f1b6d7e59f762feb1b81c5eb7 | [
"MIT"
] | 1 | 2021-02-24T09:54:33.000Z | 2021-02-24T09:54:33.000Z | open Applicative.Syntax
include Stdlib.Option
let iter_fr xF = function None -> unit | Some x -> xF x
let or_else r l = match l with None -> r () | some -> some
let both f l r = match (l, r) with Some l, Some r -> Some (f l r) | _ -> None
| 34.285714 | 77 | 0.641667 |
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.