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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a2d4058fd04b9e51d995f9ca1e47249e69e8fd0 | 3,478 | ml | OCaml | duniverse/patdiff/test/test_whitespace_changes_and_deletion.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/patdiff/test/test_whitespace_changes_and_deletion.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/patdiff/test/test_whitespace_changes_and_deletion.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open! Core
open! Async
open! Import
let prev =
{|
assert (
Int.( = ) (Set.length t.by_varying_usage) (Set.length t.by_constant_usage));
assert (
Int.( = )
(Set.length t.by_varying_usage)
(Hashtbl.length t.bucket_id_to_keys)))
|}
;;
let next =
{|
assert (Int.( = ) (Set.length... | 34.78 | 121 | 0.562967 |
44c61cc9a90e78195219c5c2577eb6f14169073a | 15,666 | ml | OCaml | hack/monitor/monitorConnection.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | 1 | 2016-10-08T12:13:09.000Z | 2016-10-08T12:13:09.000Z | hack/monitor/monitorConnection.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | null | null | null | hack/monitor/monitorConnection.ml | kevinold/flow | ef3393c014ef3dc1e006fd17e16462e3c3acb563 | [
"MIT"
] | 1 | 2018-01-18T10:09:27.000Z | 2018-01-18T10:09:27.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open ServerMo... | 53.467577 | 81 | 0.58228 |
bc4c8d53ab680171111b107c34035defae75a3dd | 7,186 | ml | OCaml | hphp/hack/src/options/typecheckerOptions.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/options/typecheckerOptions.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/options/typecheckerOptions.ml | muglug/hhvm | fdc0f02b0a10a133d9b2f6fc1216617bac17e8bd | [
"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.
*
*)
type t = GlobalOptions.t [@@deriving eq, show]
let num_local_workers = GlobalOptions.tco_num_local_workers
let par... | 31.243478 | 79 | 0.887142 |
bc4cc88851dcb3ec3d29ceb8195899e5dfc0bf4d | 2,173 | mli | OCaml | src/lib_protocol_environment/tezos_protocol_environment.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | null | null | null | src/lib_protocol_environment/tezos_protocol_environment.mli | d4hines/marigold-tezos | d106ccb9208af16d673aaa4ca48878eeba37527b | [
"MIT"
] | 1 | 2022-02-18T09:54:32.000Z | 2022-02-18T09:54:32.000Z | src/lib_protocol_environment/tezos_protocol_environment.mli | Ngoguey42/tezos | 68f0f84ed58f3c72b1bf3e732d8ee385461a2d14 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 63.911765 | 79 | 0.49931 |
8a49384519218c8770a5c7d0c67962352609b06b | 10,876 | ml | OCaml | src/proto_010_PtGRANAD/lib_protocol/test/test_origination.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_010_PtGRANAD/lib_protocol/test/test_origination.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_010_PtGRANAD/lib_protocol/test/test_origination.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 45.316667 | 99 | 0.63801 |
bc6b9017a99dfa5e9f14897e274ec9b082a9a09d | 7,778 | ml | OCaml | test/passing/tests/attributes.ml | rbjorklin/ocamlformat | 2ceaf76b9f84cb632327c1479d0f30acfa3eeba2 | [
"MIT"
] | 1 | 2021-11-07T18:54:48.000Z | 2021-11-07T18:54:48.000Z | test/passing/tests/attributes.ml | MaxMood96/ocamlformat | 2d6fc3f11c5c7d06b74a1678b03c4b3abc29c035 | [
"MIT"
] | 1 | 2022-02-15T17:15:16.000Z | 2022-02-15T17:15:16.000Z | test/passing/tests/attributes.ml | MaxMood96/ocamlformat | 2d6fc3f11c5c7d06b74a1678b03c4b3abc29c035 | [
"MIT"
] | null | null | null | let _ = (function[@warning "-4"] None -> true | _ -> false) None
let f (x [@warning ""]) = ()
let v = (fun [@inline] x -> x) 1
external f : (float[@unboxed]) -> int = "blah" [@@noalloc]
val x : ?x:unit (** not dropped *) -> unit
type t =
{ a: int
; b: int [@default 1] [@drop_if]
; c: int [@default 1] [@drop_... | 20.255208 | 81 | 0.55657 |
4444e35d0726def598afee970626d2eb5e551936 | 2,093 | ml | OCaml | duniverse/core_kernel/test/src/test_string.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/test/src/test_string.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/core_kernel/test/src/test_string.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | open! Core_kernel
open! Import
open! String
(*TEST = slice "hey" 0 0 = ""*)
(* This is what I would expect *)
let%test _ = slice "hey" 0 0 = "hey"
(* But this is what we get! *)
let%test _ = slice "hey" 0 1 = "h"
let%test _ = slice "hey" 0 2 = "he"
let%test _ = slice "hey" 0 3 = "hey"
let%test _ = slice "hey" 1 1 = ... | 28.671233 | 88 | 0.61204 |
bc6239a525aac8bf977e8245086b300c3ddc1439 | 6,653 | ml | OCaml | src/server/error_collator/errorCollator.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/server/error_collator/errorCollator.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/server/error_collator/errorCollator.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | 1 | 2019-11-30T03:40:04.000Z | 2019-11-30T03:40:04.000Z | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open ServerEnv
open Utils_js
(* combine error maps into a single error set and a filtered warning map
*
* This can be a little ... | 43.201299 | 102 | 0.652037 |
44fe4ae29bd871ab6ebcdf74168ee99a63db0a3e | 4,115 | ml | OCaml | hphp/hack/src/hhbc/hhas_class.ml | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/src/hhbc/hhas_class.ml | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_class.ml | kkopachev/hhvm | a9f242ec029c37b1e9d1715b13661e66293d87ab | [
"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.
*
*)
(* Notes:
* require-implements is not represented in HHAS.
* require-extends is not represented in HHAS.
* TODO: c_u... | 31.174242 | 77 | 0.781774 |
8a6de4626f9a42456b38e0a34a49218b812481a6 | 4,791 | ml | OCaml | src/app/client_sdk/js_util.ml | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | src/app/client_sdk/js_util.ml | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | src/app/client_sdk/js_util.ml | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | (* js_util.ml -- types and transformers for Javascript *)
open Js_of_ocaml
open Snark_params.Tick
open Mina_base
module Global_slot = Mina_numbers.Global_slot
module Memo = Signed_command_memo
let raise_js_error s = Js.raise_js_error (new%js Js.error_constr (Js.string s))
type string_js = Js.js_string Js.t
type key... | 32.815068 | 79 | 0.756836 |
8aef13deff97523626df97676b8909564e70ada8 | 4,706 | mli | OCaml | infer/src/base/DB.mli | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 1 | 2017-09-14T09:03:44.000Z | 2017-09-14T09:03:44.000Z | infer/src/base/DB.mli | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | null | null | null | infer/src/base/DB.mli | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"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... | 35.119403 | 98 | 0.718445 |
44034c8a919ad4abae246553bfa9ab54a7d446cb | 2,284 | ml | OCaml | code/src/netgss-system/gssapi.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netgss-system/gssapi.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netgss-system/gssapi.ml | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | (* This file is included into netgss_bindings.ml *)
exception Null_pointer
type memory =
(char,Bigarray.int8_unsigned_elt,Bigarray.c_layout) Bigarray.Array1.t
external buffer_of_string : string -> int -> int -> gss_buffer_t
= "netgss_buffer_of_string"
external buffer_of_bytes : Bytes.t -> int -> int -> gss_b... | 24.826087 | 73 | 0.746935 |
bc4cf6c09911cf3bee409071b029028e92338793 | 10,374 | ml | OCaml | src/parser/semantics.ml | bryphe/odoc | 3e1aa0450a53585a93a3336fb5d53e03f845c736 | [
"ISC"
] | null | null | null | src/parser/semantics.ml | bryphe/odoc | 3e1aa0450a53585a93a3336fb5d53e03f845c736 | [
"ISC"
] | null | null | null | src/parser/semantics.ml | bryphe/odoc | 3e1aa0450a53585a93a3336fb5d53e03f845c736 | [
"ISC"
] | null | null | null | open Compat
module Location = Model.Location_
module Error = Model.Error
module Comment = Model.Comment
type 'a with_location = 'a Location.with_location
type status = {
permissive : bool;
mutable warnings : Error.t list;
sections_allowed : Ast.sections_allowed;
parent_of_sections : Model.Paths.Identifier.... | 29.058824 | 80 | 0.668884 |
4428b08dcd60d5930413571823291e1484e56fe5 | 3,720 | ml | OCaml | src/cdomains/concDomain.ml | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 2 | 2021-04-15T17:38:12.000Z | 2021-06-17T10:09:04.000Z | src/cdomains/concDomain.ml | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 27 | 2021-07-01T17:00:28.000Z | 2021-07-08T13:12:32.000Z | src/cdomains/concDomain.ml | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | null | null | null | open Cil
module type S =
sig
include Lattice.S
val is_multi: t -> bool
val is_bad: t -> bool
val get_single: unit -> t
val get_multi: unit -> t
val get_main: unit -> t
val switch: t -> t -> bool
end
module Trivial = struct
module TrivialNames = struct
let truename = "Multithreaded"
let falsen... | 26.571429 | 105 | 0.655376 |
bc4dd76f544032ca6a84f937c41c5eb78ce506a1 | 19,452 | ml | OCaml | duniverse/owl/src/owl/stats/owl_stats_dist.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/owl/src/owl/stats/owl_stats_dist.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/owl/src/owl/stats/owl_stats_dist.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2019 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
open Bigarray
open Owl_types
(* OCaml stub for owl_stats_dist_ functions *)
external std_uniform_rvs : unit -> float = "owl_stub_std_uniform_rvs"
external uniform_int_rvs : a:int -> b:int -> ... | 43.516779 | 148 | 0.722394 |
bc35dc8b3cf4c8c2ca9a7b079c5e2ae9c0d4f809 | 131 | ml | OCaml | data/derived/comb/progs/unify/prog7354.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/prog2544.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog2544.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec mulByDigit i l =
match l with
| [] -> []
| z::x::x' -> [(x * i) / 10] @ (mulByDigit i [((x * i) mod 10) + z; x']);;
| 21.833333 | 76 | 0.419847 |
bc01d2f6d34b172cf42c9763b18307b60478c44d | 1,218 | mli | OCaml | src/mmap_server.mli | gitoleg/bap-server | fa2d9d8fc95e0c73ab16973562caa6e7fe82558e | [
"MIT"
] | 2 | 2016-02-05T12:19:27.000Z | 2020-07-07T16:06:18.000Z | src/mmap_server.mli | gitoleg/bap-server | fa2d9d8fc95e0c73ab16973562caa6e7fe82558e | [
"MIT"
] | 1 | 2018-12-24T13:42:17.000Z | 2018-12-24T13:42:17.000Z | src/mmap_server.mli | gitoleg/bap-server | fa2d9d8fc95e0c73ab16973562caa6e7fe82558e | [
"MIT"
] | 5 | 2016-09-29T13:14:13.000Z | 2019-01-31T19:39:19.000Z | (** shares files using mmaping.
mmap server and clients doesn't actually transfer data between,
but share the data using URL to address a piece of data in the
filesystem.
The server responsibility is to create files for memory chunks
if they are unowned, i.e., doesn't have a file.
The URI fo... | 36.909091 | 71 | 0.703612 |
8ab679ea9e8edce6ff2cf87640e91b224de547ee | 2,103 | ml | OCaml | external/ocamlgraph/src/topological.ml | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | 3 | 2019-11-29T01:33:47.000Z | 2021-05-30T16:40:40.000Z | external/ocamlgraph/src/topological.ml | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | 1 | 2018-04-24T10:43:07.000Z | 2018-04-24T10:43:07.000Z | external/ocamlgraph/src/topological.ml | gridaphobe/liquid-fixpoint | fcca9d786eba38341ac13996bd352d773aa7d37c | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* *)
(* Ocamlgraph: a generic graph library for OCaml *)
(* Copyright (C) 2004-2007 *)
(* Sylvain ... | 36.258621 | 76 | 0.439848 |
8a68a07bb7a228e88a8d2aa32316f8586c20f1f0 | 96 | ml | OCaml | src/external_job.ml | Leonidas-from-XIV/async_kernel | 8e74f62594bf0b3b4c848fe1c5546ecc51195dff | [
"MIT"
] | null | null | null | src/external_job.ml | Leonidas-from-XIV/async_kernel | 8e74f62594bf0b3b4c848fe1c5546ecc51195dff | [
"MIT"
] | null | null | null | src/external_job.ml | Leonidas-from-XIV/async_kernel | 8e74f62594bf0b3b4c848fe1c5546ecc51195dff | [
"MIT"
] | null | null | null | open! Core_kernel
open! Import
include Types.External_job
let sexp_of_t _ = Sexp.Atom "<job>"
| 13.714286 | 35 | 0.760417 |
446ce08453ea326569220881490d232086e272a3 | 26,818 | ml | OCaml | infer/src/biabduction/Absarray.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/biabduction/Absarray.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/biabduction/Absarray.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* 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 L = Logging
(** This function should be used before adding a new inde... | 37.403068 | 101 | 0.639757 |
4466548a50b7366638b15410d8f9016e0f8b9c72 | 3,808 | mli | OCaml | src/mipsEval.mli | timed-c/kta | 0d12216963095a7a13fea6d07076755dd010851b | [
"MIT"
] | 5 | 2017-08-07T12:53:16.000Z | 2021-07-29T02:40:19.000Z | src/mipsEval.mli | timed-c/kta | 0d12216963095a7a13fea6d07076755dd010851b | [
"MIT"
] | null | null | null | src/mipsEval.mli | timed-c/kta | 0d12216963095a7a13fea6d07076755dd010851b | [
"MIT"
] | 2 | 2017-08-07T12:53:20.000Z | 2018-06-15T15:28:45.000Z |
open Ustring.Op
open MipsAst
exception Function_not_found of string
exception Out_of_Bound of string
type machinestate =
{
registers : int32 array;
data : bytes;
sdata : bytes;
bss : bytes;
sbss : bytes;
rodata : bytes;
stack : bytes;
mutable pc : int;
mutabl... | 39.257732 | 102 | 0.684611 |
bc5d7302fb00067772d4b7d5f4830d26122270b9 | 6,575 | ml | OCaml | compiler/libbsl/bslIncludeFormats.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 643 | 2015-01-02T23:57:37.000Z | 2022-03-18T18:50:24.000Z | compiler/libbsl/bslIncludeFormats.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 52 | 2015-01-17T07:26:16.000Z | 2021-03-08T14:16:08.000Z | compiler/libbsl/bslIncludeFormats.ml | Machiaweliczny/oppailang | 60ddea53e56babcc1e8954b5585150098b0e4d88 | [
"MIT"
] | 58 | 2015-01-02T23:57:42.000Z | 2022-03-02T12:44:42.000Z | (*
Copyright © 2011 MLstate
This file is part of Opa.
Opa is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.
Opa is distributed in the hope that it will be useful, but WI... | 33.545918 | 107 | 0.648365 |
44b55163297799649cc103b9f6ba2afe3541e372 | 220 | mli | OCaml | libraries/cloudformation/lib/listStackResources.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/cloudformation/lib/listStackResources.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/cloudformation/lib/listStackResources.mli | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = ListStackResourcesInput.t
type output = ListStackResourcesOutput.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 20 | 85 | 0.772727 |
bc027e5d90be61878f0516aafb545e591ac9bfe9 | 7,950 | ml | OCaml | src/base/compute/owl_computation_type_sig.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/base/compute/owl_computation_type_sig.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/base/compute/owl_computation_type_sig.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
open Owl_types_common
(* Functor of making the symbols of a computation graph. *)
module type Sig = sig
module Device : Owl_types_computation_device.Sig
open Device
(** {5 Type definition} *)
... | 30.228137 | 89 | 0.513082 |
bc62b017f592d136ef18cca34a5cc41cc75b0ce3 | 14,981 | ml | OCaml | eval/ocaml/asmcomp/asmlink.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/asmcomp/asmlink.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/asmcomp/asmlink.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 36.012019 | 86 | 0.657366 |
bc628fe722719501e4988cd0117ebb55c78cb514 | 12,180 | ml | OCaml | src/ocaml-output/FStar_SMTEncoding_ErrorReporting.ml | YaccConstructor/FStar | a8db6c47e8b699b98be4c7c6f8c2e0edbce85933 | [
"Apache-2.0"
] | 1 | 2021-06-24T15:18:39.000Z | 2021-06-24T15:18:39.000Z | src/ocaml-output/FStar_SMTEncoding_ErrorReporting.ml | YaccConstructor/FStar | a8db6c47e8b699b98be4c7c6f8c2e0edbce85933 | [
"Apache-2.0"
] | null | null | null | src/ocaml-output/FStar_SMTEncoding_ErrorReporting.ml | YaccConstructor/FStar | a8db6c47e8b699b98be4c7c6f8c2e0edbce85933 | [
"Apache-2.0"
] | 2 | 2015-10-22T11:55:17.000Z | 2016-07-20T14:59:29.000Z |
open Prims
type label =
FStar_SMTEncoding_Term.error_label
type labels =
FStar_SMTEncoding_Term.error_labels
let sort_labels : labels -> ((Prims.string * FStar_SMTEncoding_Term.sort) * Prims.string * FStar_Range.range) Prims.list = (fun l -> (FStar_List.sortWith (fun _84_7 _84_13 -> (match (((_84_7), (_84_13)))... | 32.741935 | 616 | 0.702463 |
8a1ac2923d42f05c59516338a8d5ccbc19425bfa | 7,254 | mll | OCaml | lexer.mll | Global19/asl-interpreter | 5565e7c78abb72a317940aafdd18b6be845b6640 | [
"BSD-3-Clause"
] | 83 | 2019-08-29T14:45:13.000Z | 2022-02-04T15:42:29.000Z | lexer.mll | QPC-database/asl-interpreter | 5565e7c78abb72a317940aafdd18b6be845b6640 | [
"BSD-3-Clause"
] | 2 | 2020-01-02T20:18:02.000Z | 2020-12-01T16:21:20.000Z | lexer.mll | QPC-database/asl-interpreter | 5565e7c78abb72a317940aafdd18b6be845b6640 | [
"BSD-3-Clause"
] | 16 | 2019-08-29T14:34:04.000Z | 2022-02-03T01:43:49.000Z | (****************************************************************
* ASL lexer
*
* Copyright Arm Limited (c) 2017-2019
* SPDX-Licence-Identifier: BSD-3-Clause
****************************************************************)
{
open Asl_parser (* The type token is defined in parser.mli *)
open Asl_ast
except... | 43.437126 | 107 | 0.394265 |
bc421d5bf6f2acde689fb1160c9c3568598bad44 | 6,328 | ml | OCaml | hphp/hack/src/utils/config_file/config_file_common.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/config_file/config_file_common.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/config_file/config_file_common.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Sys_utils
type t = string SMap.t
let file_path_relative_to_repo_root = ".hhconfig"
let prin... | 33.305263 | 96 | 0.652497 |
44b870ab2cdf90b69893211bb032c74ccb82cb55 | 1,226 | ml | OCaml | data/sp14/1891.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/1891.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/1891.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let g (f,x) = let xx = f x in (xx, (xx = (f x)));;
let rec wwhile (f,b) = let (b',c') = f b in if c' then wwhile (f, b') else b';;
let fixpoint (f,b) = wwhile (g, b);;
(* fix
let g h x = let xx = h x in (xx, (xx = (h x)));;
let rec wwhile (f,b) = let (b',c') = f b in if c' then wwhile (f, b') else b';;
let fixp... | 14.423529 | 79 | 0.449429 |
bc300e234845c6f6bcaa3a29195acb4c9b07e97a | 15,484 | ml | OCaml | implicitly_typed/algebraic_types_imp/lib/term.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | 1 | 2020-05-13T13:51:57.000Z | 2020-05-13T13:51:57.000Z | implicitly_typed/algebraic_types_imp/lib/term.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | implicitly_typed/algebraic_types_imp/lib/term.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | module Id = Identifier
module Infer = Type.Inferencer
module IR = Algebraic_types_exp
module Kind_env = Kind.Environment
module Loc = Location
module Misc = Miscellaneous
module Opt = Option
module Type_env = Type.Environment
type desc =
| Variable of Id.t
| Abstraction of Id.t * t
| Application of t * t
| Bin... | 38.326733 | 80 | 0.571816 |
44823aa6c684beb6afca9223ee18182c70672311 | 3,536 | mli | OCaml | infer/src/bufferoverrun/symb.mli | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 2 | 2020-12-14T18:07:39.000Z | 2021-01-02T15:39:42.000Z | infer/src/bufferoverrun/symb.mli | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 6 | 2021-06-28T20:30:19.000Z | 2022-02-27T10:48:57.000Z | infer/src/bufferoverrun/symb.mli | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | 1 | 2021-01-29T07:48:02.000Z | 2021-01-29T07:48:02.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 F = Format
module BoundEnd : sig
type t = LowerBound | UpperBound
val neg : t -> t
end
module SymbolPath :... | 25.438849 | 99 | 0.669118 |
bc38d8cef8a9c69ae693f0ea79e5900fea84b1c4 | 1,754 | ml | OCaml | main.ml | lindig/ascii85 | c18fb3b651386a325d1b39972c5699a5836c34de | [
"BSD-2-Clause"
] | 3 | 2015-03-24T18:59:46.000Z | 2021-07-08T13:42:18.000Z | main.ml | lindig/ascii85 | c18fb3b651386a325d1b39972c5699a5836c34de | [
"BSD-2-Clause"
] | 1 | 2020-04-16T06:54:12.000Z | 2020-04-16T06:54:12.000Z | main.ml | lindig/ascii85 | c18fb3b651386a325d1b39972c5699a5836c34de | [
"BSD-2-Clause"
] | 1 | 2019-09-09T03:40:45.000Z | 2019-09-09T03:40:45.000Z | (**
Command line driver for encoding a file or stdin into Ascii85.
@author Christian Lindig
*)
(* A pseudo random number generator to generate byte sequences to
test the encode *)
let step x = x * 22695477 + 1
let s = ref 0 (* never used with this value *)
let int () =
( s ... | 27.84127 | 73 | 0.570696 |
44e944543c91f688b551a1e8ba195314140ce473 | 174 | ml | OCaml | ocoi/test/ppx/test_compiles.ml | roddyyaga/ocoi | 0a07e9457add9890cb507ac8bb4e55044d86a640 | [
"MIT"
] | 62 | 2019-12-26T18:28:25.000Z | 2022-01-26T18:05:31.000Z | ocoi/test/ppx/test_compiles.ml | roddyyaga/ocoi | 0a07e9457add9890cb507ac8bb4e55044d86a640 | [
"MIT"
] | 2 | 2020-05-05T21:47:49.000Z | 2021-07-16T22:17:39.000Z | ocoi/test/ppx/test_compiles.ml | roddyyaga/ocoi | 0a07e9457add9890cb507ac8bb4e55044d86a640 | [
"MIT"
] | 2 | 2020-04-10T07:19:10.000Z | 2020-05-26T13:05:00.000Z | module M = struct
type t = { id: int; name: string; cool: bool; another_id: int }
[@@deriving yojson, ocoi]
end
let f = M.No_id.t_of_yojson
let g = M.No_id.yojson_of_t
| 19.333333 | 65 | 0.672414 |
bc5256ebc7686a45e7b2c37ced3f7065037b6bd7 | 10,506 | ml | OCaml | kernel/rule.ml | baloone/Dedukti | 6feba600b2ab0c77240eff1b47a1f1012a528407 | [
"CECILL-B"
] | null | null | null | kernel/rule.ml | baloone/Dedukti | 6feba600b2ab0c77240eff1b47a1f1012a528407 | [
"CECILL-B"
] | null | null | null | kernel/rule.ml | baloone/Dedukti | 6feba600b2ab0c77240eff1b47a1f1012a528407 | [
"CECILL-B"
] | null | null | null | open Basic
open Format
open Term
type pattern =
| Var of loc * ident * int * pattern list (* Y x1 ... xn *)
| Pattern of loc * name * pattern list
| Lambda of loc * ident * pattern
| Brackets of term
type wf_pattern =
| LJoker
| LVar of ident * int * int list
| LLambda of ident * wf_patte... | 34.221498 | 94 | 0.618884 |
af3fa53f49412965ebee58b064648be9932f6bb5 | 14,894 | ml | OCaml | ocaml_modules/sexplib0/sexp_conv.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/sexplib0/sexp_conv.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/sexplib0/sexp_conv.ml | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | (* Utility Module for S-expression Conversions *)
open StdLabels
open MoreLabels
open Printf
open Sexp
type sexp_bool = bool
type 'a sexp_option = 'a option
type 'a sexp_list = 'a list
type 'a sexp_array = 'a array
type 'a sexp_opaque = 'a
(* Conversion of OCaml-values to S-expressions *)
external format_float : st... | 33.245536 | 112 | 0.655297 |
bc3a3dea35b80fbfee2c382f1a385a958046dd94 | 25,043 | ml | OCaml | src/hazel_semantics.ml | asolove/hazel | bd1b3e9d7374301d90b9268226a42253b2eddfc5 | [
"MIT"
] | null | null | null | src/hazel_semantics.ml | asolove/hazel | bd1b3e9d7374301d90b9268226a42253b2eddfc5 | [
"MIT"
] | null | null | null | src/hazel_semantics.ml | asolove/hazel | bd1b3e9d7374301d90b9268226a42253b2eddfc5 | [
"MIT"
] | null | null | null | (* Comments below indicate the corresponding rule names from the appendix in
* the extended version of the POPL 2017 paper: https://arxiv.org/pdf/1607.04180.pdf *)
module HTyp = struct
type t =
| Num
| Arrow of t * t
| Sum of t * t
| Hole
let rec eq ty1 ty2 = match (ty1, ty2) with
| (Num, Num... | 38.587057 | 113 | 0.525895 |
af76171c9bdfff254e9a94f7b42a771b573742bf | 1,271 | mli | OCaml | hphp/hack/src/typing/typing_helpers.mli | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_helpers.mli | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_helpers.mli | ianhoffman/hhvm | decc4e479e0e689c65f936f0828cb761d34075b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module ExpectedTy : sig
type t = private {
pos: Pos.t;
reason: Typing_reason.ureason;
ty: Typing_defs.locl_possi... | 23.981132 | 80 | 0.713611 |
bc4261a1f9d1cacc6979ced343dbbe710a364446 | 3,296 | ml | OCaml | src/utils.ml | wiltonlazary/ppxlib | f4b766497fa0c20df4e3403783ccb184733790f6 | [
"MIT"
] | 2 | 2019-06-28T07:03:50.000Z | 2021-12-17T02:58:14.000Z | src/utils.ml | wiltonlazary/ppxlib | f4b766497fa0c20df4e3403783ccb184733790f6 | [
"MIT"
] | null | null | null | src/utils.ml | wiltonlazary/ppxlib | f4b766497fa0c20df4e3403783ccb184733790f6 | [
"MIT"
] | 2 | 2018-08-24T01:30:01.000Z | 2021-12-17T02:59:06.000Z | open Import
let with_output fn ~binary ~f =
match fn with
| None | Some "-" -> f stdout
| Some fn -> Out_channel.with_file fn ~binary ~f
;;
module Kind = struct
type t = Intf | Impl
let of_filename fn : t option =
if Caml.Filename.check_suffix fn ".ml" then
Some Impl
else if Caml.Filename.che... | 28.17094 | 83 | 0.632282 |
bc465d264deef84f932afd3f20e9055ff0b81719 | 9,775 | ml | OCaml | hphp/hack/src/typing/tast_env.ml | sarahhenkens/hhvm | 68341cff28c09163f96796387666d35b6eae063c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_env.ml | sarahhenkens/hhvm | 68341cff28c09163f96796387666d35b6eae063c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_env.ml | sarahhenkens/hhvm | 68341cff28c09163f96796387666d35b6eae063c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Aast
type class_or_typedef_result =
| ClassResult of Decl_provider.class_decl
| TypedefRes... | 29.892966 | 84 | 0.74977 |
44199a70c155422e19c4d152192292a823506965 | 1,731 | ml | OCaml | libraries/rds/lib/createDBCluster.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/rds/lib/createDBCluster.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/rds/lib/createDBCluster.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = CreateDBClusterMessage.t
type output = CreateDBClusterResult.t
type error = Errors_internal.t
let service = "rds"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of... | 26.630769 | 90 | 0.622184 |
44b62bbc88d286ef1d37a2b3edae1774d87dc183 | 1,165 | ml | OCaml | src/lib/mina_base/hack_snarky_tests.ml | olton/mina | 35a0be706602a3187a21ba757c89d197ff914d7e | [
"Apache-2.0"
] | 929 | 2020-10-02T07:23:16.000Z | 2022-03-31T15:02:09.000Z | src/lib/mina_base/hack_snarky_tests.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 3,154 | 2020-09-29T15:47:44.000Z | 2022-03-31T16:22:28.000Z | src/lib/mina_base/hack_snarky_tests.ml | umiterkol/mina | af76cb7980d5e81e704120290a850ea9c6f8522e | [
"Apache-2.0"
] | 216 | 2020-09-29T19:47:41.000Z | 2022-03-27T08:44:29.000Z | open Core_kernel
let%test_module "merkle_tree" =
( module struct
open Snarky_backendless.Merkle_tree
let merge x y = Free_hash.Merge (x, y)
let hash =
Option.value_map ~default:Free_hash.Hash_empty ~f:(fun x ->
Free_hash.Hash_value x)
let create_tree n =
let tree = create ~ha... | 24.787234 | 65 | 0.582833 |
44914c274b382656c9649edfa7bf181ec3452762 | 4,383 | ml | OCaml | src/lib/pickles/plonk_checks/gen_scalars/gen_scalars.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/pickles/plonk_checks/gen_scalars/gen_scalars.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/pickles/plonk_checks/gen_scalars/gen_scalars.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core_kernel
let output_file = Out_channel.create Sys.argv.(1)
let output_string str = Out_channel.output_string output_file str
let () =
output_string
{ocaml|
(* This file is generated by gen_scalars/gen_scalars.exe. *)
type curr_or_next = Curr | Next
module Gate_type = struct
module T = struct
ty... | 20.577465 | 78 | 0.54757 |
bc4db103bea54b31a0d0bb77c75d15166b5d9939 | 5,846 | ml | OCaml | source/analysis/test/annotatedCallableTest.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | 1 | 2022-02-10T10:51:32.000Z | 2022-02-10T10:51:32.000Z | source/analysis/test/annotatedCallableTest.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/analysis/test/annotatedCallableTest.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open OUnit2
open Ast
open Analysis
open Statement
open Test
module Callable = Annotated.Callable
open Pyre
let test_re... | 28.656863 | 101 | 0.597332 |
445fbc1ffc3a456b18aa8022a7e162888062d4f3 | 2,680 | mli | OCaml | src/lib_protocol_environment/sigs/v0/logging.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_protocol_environment/sigs/v0/logging.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_protocol_environment/sigs/v0/logging.mli | blockchain-app12/cuprumMainnet | 089174cfc4f8ebce45e61107d090a7933b8dc9cd | [
"MIT"
] | 4 | 2021-04-27T15:00:34.000Z | 2021-09-26T21:50:01.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 57.021277 | 79 | 0.524254 |
8aab42cd41ed78e3a5a8eb45a03e56970521bab5 | 657 | ml | OCaml | ucontrib/CoreCrypto/ml/db/DBMap.ml | jaybosamiya/FStar | b879c339e9c7d6880a0c52667a71b9b1fe8ec235 | [
"Apache-2.0"
] | 2,231 | 2015-01-05T02:19:24.000Z | 2022-03-30T05:54:05.000Z | src/support/ocaml/src/db/DBMap.ml | HanumathRao/FStar | 6346714883a101d47859f7f2080b2110a9975bf8 | [
"Apache-2.0"
] | 2,151 | 2015-01-06T05:01:08.000Z | 2022-03-31T23:16:08.000Z | src/support/ocaml/src/db/DBMap.ml | HanumathRao/FStar | 6346714883a101d47859f7f2080b2110a9975bf8 | [
"Apache-2.0"
] | 281 | 2015-02-13T00:14:17.000Z | 2022-03-13T12:51:04.000Z | (* -------------------------------------------------------------------- *)
type ('a, 'b) dbmap = DB.db
(* -------------------------------------------------------------------- *)
let create (db : DB.db) : ('a, 'b) dbmap =
db
(* -------------------------------------------------------------------- *)
let put (k : 'a) ... | 34.578947 | 74 | 0.284627 |
8a5d343ac1f528b195bea6fb633d087c454685d6 | 1,032 | ml | OCaml | corpus/timeres.ml | glennsl/timere | fea615f8e9148331516e612601286a45d5fd35c5 | [
"MIT"
] | null | null | null | corpus/timeres.ml | glennsl/timere | fea615f8e9148331516e612601286a45d5fd35c5 | [
"MIT"
] | null | null | null | corpus/timeres.ml | glennsl/timere | fea615f8e9148331516e612601286a45d5fd35c5 | [
"MIT"
] | null | null | null | let texts =
[
"2020 jun";
"jan";
"jan 6th";
"jan 6";
"jan 6 00:00";
"jan 6 12pm to 2pm";
"12pm to 2pm";
"jun 12, 13th";
"12th, 13, 20";
"12th, 13 to 15, 20";
"10 to 12, 13th to 15, 20";
"thursday";
"fri";
"tue";
"16th 7:30am";
"16th 7:30:01am";
"16th... | 22.933333 | 80 | 0.516473 |
bc392e9aa4189fa854a38caac292703db0df5313 | 24,132 | ml | OCaml | infer/src/IR/Procdesc.ml | rutvijraut/infer | de0ca94756fdbd0ba8a789a2b2747cbbdeb51ad0 | [
"MIT"
] | null | null | null | infer/src/IR/Procdesc.ml | rutvijraut/infer | de0ca94756fdbd0ba8a789a2b2747cbbdeb51ad0 | [
"MIT"
] | null | null | null | infer/src/IR/Procdesc.ml | rutvijraut/infer | de0ca94756fdbd0ba8a789a2b2747cbbdeb51ad0 | [
"MIT"
] | 1 | 2019-10-24T14:47:52.000Z | 2019-10-24T14:47:52.000Z | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module Hashtbl = Caml.Hashtbl
module L = Logging
module F = Format
module NodeKey ... | 31.34026 | 102 | 0.666335 |
bc755733bb0b267b4eaea6da2d7623ed36da6e65 | 2,675 | ml | OCaml | ReWeb/ReWeb__Manual/Ch03_Requests.ml | tatchi/re-web | a430547b368b695b5e24b166619f3b1aa77ab7c1 | [
"MIT"
] | null | null | null | ReWeb/ReWeb__Manual/Ch03_Requests.ml | tatchi/re-web | a430547b368b695b5e24b166619f3b1aa77ab7c1 | [
"MIT"
] | null | null | null | ReWeb/ReWeb__Manual/Ch03_Requests.ml | tatchi/re-web | a430547b368b695b5e24b166619f3b1aa77ab7c1 | [
"MIT"
] | null | null | null | (** A ReWeb request data structure is a thin wrapper over an
{{: https://docs.mirage.io/httpaf/Httpaf/Reqd/index.html} Httpaf request descriptor}.
It additionally contains the request query string, and a generic
'context' value. This makes the request itself generic--in other
words, the request type exp... | 49.537037 | 89 | 0.741308 |
bc601ac910572d265dc9e326a4f3c78dd57f3991 | 1,266 | ml | OCaml | result/fixml/formula/sub81/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/formula/sub81/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/formula/sub81/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 calc : exp -> int =
fun exp ->
match exp with
| Num a -> a
... | 26.375 | 75 | 0.496051 |
44fcf7a2d59504f685e8f201e99bb134fe9572af | 10,698 | ml | OCaml | hphp/hack/src/stubs/logging/hackEventLogger.ml | emptyIIknowledge/hhvm | 64834993b347f3d6b1973817a702a8a4ec86b055 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2021-09-20T18:47:18.000Z | 2021-09-20T23:02:22.000Z | hphp/hack/src/stubs/logging/hackEventLogger.ml | emptyIIknowledge/hhvm | 64834993b347f3d6b1973817a702a8a4ec86b055 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/stubs/logging/hackEventLogger.ml | emptyIIknowledge/hhvm | 64834993b347f3d6b1973817a702a8a4ec86b055 | [
"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.
*
*)
type serialized_globals = Serialized_globals
let serialize_globals () = Serialized_globals
type rollout_flags = {
... | 20.338403 | 80 | 0.713498 |
bc284ef302e4244d2f19b687cb63461e420a17b9 | 3,389 | mli | OCaml | src/parser_utils/output/js_layout_generator.mli | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 1 | 2020-11-02T02:15:55.000Z | 2020-11-02T02:15:55.000Z | src/parser_utils/output/js_layout_generator.mli | mochja/flow | f5351e5ece186468278f5a94a5c59f00315243c1 | [
"MIT"
] | 17 | 2020-10-12T16:16:07.000Z | 2021-08-07T04:38:39.000Z | src/parser_utils/output/js_layout_generator.mli | 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.
*)
type opts = {
preserve_formatting: bool;
bracket_spacing: bool;
}
type expression_context = {
left: expression_context_left;... | 29.469565 | 98 | 0.733845 |
443ad9a7bdd1d3e534ddfa3e9e4beed3ab588325 | 759 | ml | OCaml | hphp/hack/src/stubs/hackEventLogger.ml | jazzdan/hhvm | f968e49bb25a9ac0b2fb728ae3b185ce3079e69a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/stubs/hackEventLogger.ml | jazzdan/hhvm | f968e49bb25a9ac0b2fb728ae3b185ce3079e69a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/stubs/hackEventLogger.ml | jazzdan/hhvm | f968e49bb25a9ac0b2fb728ae3b185ce3079e69a | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
let init _ _ ... | 26.172414 | 80 | 0.679842 |
44a50c447ed6668137f1a480355686ada881c443 | 1,725 | ml | OCaml | test/unit/fixtures/instrument/class.reference.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/class.reference.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | test/unit/fixtures/instrument/class.reference.ml | mbouaziz/bisect_ppx | a5320eaf2c9c72f1dcd8c04d63a1a4c40aeeaa24 | [
"MIT"
] | null | null | null | [@@@ocaml.text "/*"]
module Bisect_visit___class___ml =
struct
let ___bisect_visit___ =
let point_definitions =
"\132\149\166\190\000\000\000:\000\000\000\012\000\000\000-\000\000\000-\b\000\000,\000\160q@\160\001\000\138A\160\001\000\160B\160\001\000\218C\160\001\001[D\160\001\001\169E\160\001\002 ... | 36.702128 | 266 | 0.710725 |
bc39ada10b79e94bbdf7039dbcf84e2079f7ae15 | 14,112 | ml | OCaml | hphp/hack/src/server/serverRpc.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverRpc.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverRpc.ml | Nicztin/hhvm | 25d78f95e739823350a1a48e0f60d5a05598ad83 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open ServerEnv
open ServerCommandTypes
open Utils
let remove_dead_fixme_warning =
"hh_server was... | 38.140541 | 93 | 0.674391 |
bc2e27b78f9661c738a39e28b13a4a94f000404a | 291 | mli | OCaml | src/sim_provider.mli | ujamjar/hardcaml | 1a834d25523417a768ebfa45cca4071a48481479 | [
"0BSD"
] | 123 | 2015-01-01T21:34:09.000Z | 2021-11-23T10:14:56.000Z | src/sim_provider.mli | ujamjar/hardcaml | 1a834d25523417a768ebfa45cca4071a48481479 | [
"0BSD"
] | 26 | 2015-03-31T13:38:18.000Z | 2017-10-18T00:10:51.000Z | src/sim_provider.mli | ujamjar/hardcaml | 1a834d25523417a768ebfa45cca4071a48481479 | [
"0BSD"
] | 10 | 2015-11-08T22:07:40.000Z | 2018-08-07T14:25:22.000Z | module type S = functor (B : Bits.Ext.Comb.S) -> sig
val make : Circuit.t -> B.t Cyclesim.Api.cyclesim
end
val add_provider : string -> (module S) -> unit
val get_provider : string -> (module S)
val load_provider : string -> unit
val load_provider_from_package : string -> string -> unit
| 32.333333 | 57 | 0.701031 |
bc65584a63ba86eeb4887934b3db52225380997e | 20,767 | mli | OCaml | src/owl/linalg/owl_linalg_generic.mli | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/owl/linalg/owl_linalg_generic.mli | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | src/owl/linalg/owl_linalg_generic.mli | gbaydin/owl | 2cd67547543cd7fdd54bbbfbf5a094e0c92ef399 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
(** Linear algebra module including high-level functions to solve linear
systems, factorisation, and etc.
*)
(**
The module includes a set of advanced linear algebra operations such as
sin... | 31.417549 | 128 | 0.600568 |
af71e5726e59191b78028530fb6fcdf077d1afb0 | 71 | mli | OCaml | ocaml/expand.mli | nilern/centring | d0cf9e30813fc962c93209ccd9f7611e7c202eb7 | [
"BSD-3-Clause"
] | 1 | 2021-05-31T18:18:00.000Z | 2021-05-31T18:18:00.000Z | ocaml/expand.mli | nilern/centring | d0cf9e30813fc962c93209ccd9f7611e7c202eb7 | [
"BSD-3-Clause"
] | null | null | null | ocaml/expand.mli | nilern/centring | d0cf9e30813fc962c93209ccd9f7611e7c202eb7 | [
"BSD-3-Clause"
] | null | null | null | open Core.Std
open Data
val expand : Phase.t -> env -> value -> value
| 14.2 | 45 | 0.661972 |
bc4ff8f64e59a9c93c74a48e86caae9cd65dc991 | 20,638 | mli | OCaml | code/src/netstring/netasn1.mli | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netstring/netasn1.mli | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | code/src/netstring/netasn1.mli | UnixJunkie/ocamlnet | 81282279d073a85e3ed6e8b7030710ed9b7b2d02 | [
"BSD-3-Clause"
] | null | null | null | (* $Id$ *)
(** ASN.1 support functions *)
(** See below for a little intro into ASN.1: {!Netasn1.intro} *)
open Netsys_types
exception Out_of_range
exception Parse_error of int (** Byte position in string *)
exception Header_too_short
module Type_name : sig
type type_name =
| Bool
| Integer
| Enum
... | 38.218519 | 80 | 0.667507 |
bc2cd4a4fea146c09682173e3c61f88a67dcb83c | 28,327 | ml | OCaml | src/parser/test/run_tests.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | src/parser/test/run_tests.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | src/parser/test/run_tests.ml | fizker/flow | e1d0038042c2cba942ece36f96a0e1bd7fb138bd | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
module String_utils = struct
let spf = Printf.sprintf
let string_starts_with long short =
try
... | 37.272368 | 102 | 0.519187 |
bc76b9955c02bd7b12528a8275b83809a786d822 | 16,382 | mly | OCaml | emmett/parser.mly | vmware-archive/vprobe-toolkit | 81ec188659b3da53e81c2922691fb0a04dd85092 | [
"BSD-3-Clause"
] | 1 | 2020-11-15T07:08:27.000Z | 2020-11-15T07:08:27.000Z | emmett/parser.mly | vmware-archive/vprobe-toolkit | 81ec188659b3da53e81c2922691fb0a04dd85092 | [
"BSD-3-Clause"
] | null | null | null | emmett/parser.mly | vmware-archive/vprobe-toolkit | 81ec188659b3da53e81c2922691fb0a04dd85092 | [
"BSD-3-Clause"
] | 1 | 2020-07-24T07:52:09.000Z | 2020-07-24T07:52:09.000Z | /* **********************************************************
* Copyright 2009 VMware, Inc. All rights reserved.
* **********************************************************/
/*
* Emmett.mly: the grammar for Emmett, a language for specifying
* dynamic instrumentation. Since the expression and type syntax is a
* ... | 33.917184 | 79 | 0.616713 |
44a01cc4f187c9b64e4bf499118b26e6ee0ce9da | 6,368 | ml | OCaml | interprocedural_analyses/taint/features.ml | GreyElaina/pyre-check | abcb5daa64c38a25aed9ab238bb61290444ab06c | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/features.ml | GreyElaina/pyre-check | abcb5daa64c38a25aed9ab238bb61290444ab06c | [
"MIT"
] | null | null | null | interprocedural_analyses/taint/features.ml | GreyElaina/pyre-check | abcb5daa64c38a25aed9ab238bb61290444ab06c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Core
open Ast
open Analysis
open Pyre
module Breadcrumb = struct
type first_kind =
| FirstField
| FirstIndex
[@@d... | 33.693122 | 99 | 0.688599 |
44dd216853e40d50d56cbef6a53b4085e1238a6f | 24,373 | ml | OCaml | value_set/lib/src/cbat_ai_memmap.ml | dbeigi/cbat_tools | ebba824f2a1d217c5a1f12cdce6555676d036099 | [
"MIT"
] | null | null | null | value_set/lib/src/cbat_ai_memmap.ml | dbeigi/cbat_tools | ebba824f2a1d217c5a1f12cdce6555676d036099 | [
"MIT"
] | null | null | null | value_set/lib/src/cbat_ai_memmap.ml | dbeigi/cbat_tools | ebba824f2a1d217c5a1f12cdce6555676d036099 | [
"MIT"
] | null | null | null | (***************************************************************************)
(* *)
(* Copyright (C) 2018/2019 The Charles Stark Draper Laboratory, Inc. *)
(* *)
(* This... | 37.439324 | 99 | 0.618266 |
44dbb0436362cf6981945ec037a2a2f6cdeef5da | 448 | ml | OCaml | ocaml-sources/testsuite/tests/backtrace/lazy.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T15:31:36.000Z | 2021-03-05T16:01:39.000Z | ocaml-sources/testsuite/tests/backtrace/lazy.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | 2 | 2021-03-03T16:08:23.000Z | 2021-03-03T19:31:03.000Z | ocaml-sources/testsuite/tests/backtrace/lazy.ml | Naereen/ocaml-mots-cles-en-francais | 77b1d41e3277d0356e676330f2284b8c01ba14ee | [
"MIT"
] | null | null | null | (* TEST
flags = "-g"
* native
*)
let l1 : unit lazy_t = lazy (raise Not_found)
let test1 () =
let () = Lazy.force l1 in ()
let l2 : unit lazy_t = lazy (raise Not_found)
let test2 () =
let (lazy ()) = l2 in ()
let run test =
try
test ();
with exn ->
Printf.printf "Uncaught exception %s\n" (Pr... | 16 | 69 | 0.616071 |
44a771eaaf66d8541e86c18f857da0e5980ae459 | 126,536 | ml | OCaml | analysis/analysisError.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/analysisError.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/analysisError.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | (* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. *)
open Core
open Ast
open Pyre
open Statement
module Type = struct
include Type
let compare = Type.namespace_insensitive_compare
end
(* ... | 40.34949 | 102 | 0.648709 |
bc4de6d887b7a63be95324d5b6afb439fadc4f5f | 17,214 | ml | OCaml | src/res_parsetree_viewer.ml | amiralies/syntax | cf2d0c5de112143a7e1f7bd923971dc42c9a2f2e | [
"MIT"
] | null | null | null | src/res_parsetree_viewer.ml | amiralies/syntax | cf2d0c5de112143a7e1f7bd923971dc42c9a2f2e | [
"MIT"
] | null | null | null | src/res_parsetree_viewer.ml | amiralies/syntax | cf2d0c5de112143a7e1f7bd923971dc42c9a2f2e | [
"MIT"
] | null | null | null | open Parsetree
let arrowType ct =
let rec process attrsBefore acc typ = match typ with
| {ptyp_desc = Ptyp_arrow (Nolabel as lbl, typ1, typ2); ptyp_attributes = []} ->
let arg = ([], lbl, typ1) in
process attrsBefore (arg::acc) typ2
| {ptyp_desc = Ptyp_arrow (Nolabel as lbl, typ1, typ2); ptyp_attributes ... | 29.833622 | 117 | 0.61845 |
448c2fecbc579b90a0540f8d654c5bd5842ee04f | 10,795 | ml | OCaml | hphp/hack/src/parser/schema/full_fidelity_schema.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/schema/full_fidelity_schema.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/schema/full_fidelity_schema.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(* If you make changes to the schema that cause it to serialize / deserialize
differently, please update this versio... | 27.123116 | 79 | 0.66679 |
bc3d439a0d456e73e9041513c6265d350d75e6b2 | 37,677 | ml | OCaml | src/lsolvers/sundials_Matrix.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 24 | 2015-02-14T17:16:38.000Z | 2021-12-23T16:02:13.000Z | src/lsolvers/sundials_Matrix.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 10 | 2016-03-20T22:14:49.000Z | 2022-03-16T09:54:31.000Z | src/lsolvers/sundials_Matrix.ml | kit-ty-kate/sundialsml | 52cdf008e267aa55373f123866478a6d881d3fee | [
"BSD-3-Clause"
] | 5 | 2015-04-14T14:21:54.000Z | 2022-03-10T16:14:55.000Z | (***********************************************************************)
(* *)
(* OCaml interface to Sundials *)
(* *)
(* Timothy B... | 29.094208 | 84 | 0.600154 |
44d45c932e6bbbdc6c819bf1d024529068ba5a9a | 1,576 | ml | OCaml | libraries/ec2/lib/copyImage.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/copyImage.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/copyImage.ml | skolemlabs/ocaml-aws-pub | 50a21c5b825bac43a8cf332b2da405578c416182 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = CopyImageRequest.t
type output = CopyImageResult.t
type error = Errors_internal.t
let service = "ec2"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service reg... | 26.711864 | 90 | 0.624365 |
bc701906e89a57a654fd374a39ee84bf4f075eba | 2,979 | mli | OCaml | proposition.mli | KirrimK/Poussin | 9dd238fa2d3ca41e8eca0b24b19cbf2742444d75 | [
"MIT"
] | 5 | 2021-12-03T10:23:37.000Z | 2022-01-03T09:26:13.000Z | proposition.mli | KirrimK/Poulet | 9dd238fa2d3ca41e8eca0b24b19cbf2742444d75 | [
"MIT"
] | null | null | null | proposition.mli | KirrimK/Poulet | 9dd238fa2d3ca41e8eca0b24b19cbf2742444d75 | [
"MIT"
] | null | null | null | type t
val p_true : t
(* Proposition égale au vrai logique *)
val p_false : t
(* Proposition égale au faux logique *)
val p_name : string -> t
(* Constructeur d'une proposition de nom <argument>
Argument: nom de la proposition
Retourne: la proposition *)
val p_not : t -> t
(* Constructeur de la négation d'une... | 33.1 | 113 | 0.659953 |
bc5ab67bb5210e912718aa07546c949ff2636f6b | 5,240 | ml | OCaml | src/fifo_intf.ml | ostera/hardcaml | 1100988ea72e3b79c4c47a0a954a122e6c1f9131 | [
"MIT"
] | null | null | null | src/fifo_intf.ml | ostera/hardcaml | 1100988ea72e3b79c4c47a0a954a122e6c1f9131 | [
"MIT"
] | null | null | null | src/fifo_intf.ml | ostera/hardcaml | 1100988ea72e3b79c4c47a0a954a122e6c1f9131 | [
"MIT"
] | null | null | null | open! Import
module type Config = sig
val data_width : int
val capacity : int
val showahead : bool
end
module T = struct
type 'a t =
{ q : 'a
; full : 'a
; empty : 'a
; nearly_full : 'a
; nearly_empty : 'a
; used : 'a
}
[@@deriving sexp_of, hardcaml]
type 'a create_params =
... | 33.806452 | 92 | 0.650382 |
bc1b80f981bd517a6a6875bb6a9866b9b4512359 | 5,068 | ml | OCaml | lib/Exposed.ml | giltho/ocamlformat | 2327d0e29c810e5e7d568e2684b75d215f62f492 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | lib/Exposed.ml | giltho/ocamlformat | 2327d0e29c810e5e7d568e2684b75d215f62f492 | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | lib/Exposed.ml | giltho/ocamlformat | 2327d0e29c810e5e7d568e2684b75d215f62f492 | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
(* ... | 38.393939 | 77 | 0.551894 |
bc0022f5ad48a8fa8ac244f52f312d4c7cee35a4 | 103 | mli | OCaml | src/lib/o1trace/execution_timer.mli | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/o1trace/execution_timer.mli | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/o1trace/execution_timer.mli | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core_kernel
include Plugins.Plugin_intf
val elapsed_time_of_thread : Thread.t -> Time_ns.Span.t
| 17.166667 | 55 | 0.815534 |
bc1c505996ef5d4e1b7e8473eaa31d0344f3f919 | 3,210 | ml | OCaml | lib/monitor.ml | mor1/core-network | ef3102a51d5ea53d7311e06f1cc990d52d3721c3 | [
"MIT"
] | null | null | null | lib/monitor.ml | mor1/core-network | ef3102a51d5ea53d7311e06f1cc990d52d3721c3 | [
"MIT"
] | null | null | null | lib/monitor.ml | mor1/core-network | ef3102a51d5ea53d7311e06f1cc990d52d3721c3 | [
"MIT"
] | null | null | null | open Lwt.Infix
let monitor = Logs.Src.create "monitor" ~doc:"Interface monitor"
module Log = (val Logs_lwt.src_log monitor : Logs_lwt.LOG)
let intf_event l =
let open Re in
let up = "(eth[0-9]+).* (([0-9]+.){3}[0-9]+/[0-9]+) .* eth[0-9]+" in
let down = "Deleted.* (([0-9]+.){3}[0-9]+/[0-9]+) " in
let regex = P... | 35.666667 | 93 | 0.575389 |
bc07ecd0151942c445f013fa354d14d65e15eee3 | 5,076 | ml | OCaml | infer/src/cost/costDomain.ml | amaksoft/infer | 11e3acb20e5f998efb82fcefb799fcce81613388 | [
"MIT"
] | 1 | 2021-02-17T06:08:10.000Z | 2021-02-17T06:08:10.000Z | infer/src/cost/costDomain.ml | amaksoft/infer | 11e3acb20e5f998efb82fcefb799fcce81613388 | [
"MIT"
] | 1 | 2021-04-19T09:50:03.000Z | 2021-04-19T09:50:03.000Z | infer/src/cost/costDomain.ml | amaksoft/infer | 11e3acb20e5f998efb82fcefb799fcce81613388 | [
"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 BasicCost = struct
include Polynomials.NonNegativePolynomial
(* NOTE: Increment the versi... | 35.496503 | 101 | 0.748818 |
bc096a2431fa83416cecf9311e90074682a58c5f | 3,346 | ml | OCaml | data/fa15/0685.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/0685.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/0685.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Hoi of expr* expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec exprToString e =
let exp = exprToString in
match e with
| VarX -> "x"
| VarY -> "y"
| Sine a -> "sin(pi*" ^ ((exp a) ^ ")... | 18.184783 | 75 | 0.452182 |
8abb9688bcc9a157b5d8ad065f10a80a6e85621b | 813 | ml | OCaml | server/unturingLib/compiler.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | 5 | 2015-01-30T06:16:32.000Z | 2020-04-14T09:08:49.000Z | server/unturingLib/compiler.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | server/unturingLib/compiler.ml | RunOrg/RunOrg | b53ee2357f4bcb919ac48577426d632dffc25062 | [
"MIT"
] | null | null | null | (* © 2014 RunOrg *)
open Std
type script = Ast.t
let compile str inline =
let inline = Array.of_list inline in
let inline x = if x >= Array.length inline || x < 0 then Json.Null else inline.(x) in
let lexbuf = Lexing.from_string str in
let token = Lexer.token inline in
let last () = Lexing.(
l... | 25.40625 | 87 | 0.660517 |
44f897f2fcc2907b388f8ed9349cb261b1c83a1c | 3,730 | mli | OCaml | hphp/hack/src/decl/decl_counters.mli | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/decl/decl_counters.mli | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/decl/decl_counters.mli | Wilfred/hhvm | 87cea12a34ec7edb94111be6bfb9458aac7b1997 | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(** This opaque type carries decl_counter-specific context that will be used
in telemetry to relate the subdecl accessors like... | 30.826446 | 85 | 0.722252 |
8aa7634aa5d59690a7faf0d0209aa555149a68e6 | 2,681 | ml | OCaml | hphp/hack/test/unit/heap/test_rawheap.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/unit/heap/test_rawheap.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/test/unit/heap/test_rawheap.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"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.
*
*
*)
type key = Digest.t
module IntVal = struct
type t = int
let prefix = Prefix.make ()
let description = "T... | 24.372727 | 80 | 0.603133 |
44024a2e6da57ebbf0ae624eee5787bee22651a5 | 20,230 | ml | OCaml | infer/src/al/ALIssues.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/al/ALIssues.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"MIT"
] | null | null | null | infer/src/al/ALIssues.ml | kupl/npex-analyzer | c9a6d60aa76f39bbab04af5186b0399bc4fcdb49 | [
"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 = Logging
module MF = MarkupFormatter
type linter =
{ condition: CTLTypes.t
; issue_desc... | 37.393715 | 100 | 0.669748 |
bc56b110979100539470b510486216c9c6389ad7 | 38,665 | ml | OCaml | infer/src/pulse/PulseInterproc.ml | aalen9/lfa | 355f5f67281d01544dd1e0af4b7177369677edba | [
"MIT"
] | 1 | 2019-12-27T12:18:57.000Z | 2019-12-27T12:18:57.000Z | infer/src/pulse/PulseInterproc.ml | aalen9/lfa | 355f5f67281d01544dd1e0af4b7177369677edba | [
"MIT"
] | 7 | 2017-12-03T16:09:45.000Z | 2018-01-08T15:15:34.000Z | infer/src/pulse/PulseInterproc.ml | aalen9/lfa | 355f5f67281d01544dd1e0af4b7177369677edba | [
"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 = Logging
open PulseBasicInterface
open PulseDomainInterface
(* {2 machinery to apply a pre/... | 45.222222 | 104 | 0.695771 |
44e3538e54a91fad087b29fe0c9aed9fb76ee7bf | 3,188 | ml | OCaml | src/typing/flow_common.ml | mourner/flow | 8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb | [
"MIT"
] | null | null | null | src/typing/flow_common.ml | mourner/flow | 8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb | [
"MIT"
] | null | null | null | src/typing/flow_common.ml | mourner/flow | 8bb9d4ef01786d18b9033f16fb0c6eec21f4b0eb | [
"MIT"
] | null | null | null | (**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Reason
open Type
(* This is here instead of assert_ground.ml to avoid the duplication of the enforce strict
* signature *)
... | 51.419355 | 106 | 0.664053 |
bc7af2ba7d7efdf944ada6866dbe275a50d396c5 | 116 | ml | OCaml | benchmarks/C/sigma/sol635.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/sigma/sol635.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/sigma/sol635.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec sigma : (int -> int) -> int -> int -> int
= fun f a b ->
if a > b then 0
else f a + sigma f (a + 1) b;;
| 23.2 | 49 | 0.482759 |
44add57a3f6630e98fd15a1a98c76fe10ae787cc | 2,886 | ml | OCaml | src/shp.ml | cyril-allignol/ocaml-shapefile | 81793bb7cdeaacb83fe50372fcbf0d7203edd1ab | [
"Apache-2.0"
] | 3 | 2019-05-07T14:11:34.000Z | 2020-08-31T15:39:11.000Z | src/shp.ml | cyril-allignol/ocaml-shapefile | 81793bb7cdeaacb83fe50372fcbf0d7203edd1ab | [
"Apache-2.0"
] | 3 | 2019-05-07T15:43:06.000Z | 2020-09-25T14:19:18.000Z | src/shp.ml | cyril-allignol/ocaml-shapefile | 81793bb7cdeaacb83fe50372fcbf0d7203edd1ab | [
"Apache-2.0"
] | 1 | 2019-05-07T12:59:01.000Z | 2019-05-07T12:59:01.000Z | (* Copyright 2018 Cyril Allignol
*
* 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 agreed to in w... | 41.826087 | 80 | 0.68122 |
bc67f97c9d1f54bce33784cd73af600d8c0b385a | 1,866 | mll | OCaml | src/dune_rules/ocamlobjinfo.mll | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 1,056 | 2018-01-17T23:27:17.000Z | 2022-03-28T08:28:13.000Z | src/dune_rules/ocamlobjinfo.mll | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 3,824 | 2018-01-17T15:09:57.000Z | 2022-03-31T14:46:35.000Z | src/dune_rules/ocamlobjinfo.mll | mndrix/dune | 30b84ff370351b13f05db34fd952dfe5d0249bcb | [
"MIT"
] | 314 | 2018-01-21T13:57:15.000Z | 2022-03-24T16:17:13.000Z | {
open Dune_engine
open Import
type t = Module_name.Unique.Set.t Ml_kind.Dict.t
let to_dyn = Ml_kind.Dict.to_dyn Module_name.Unique.Set.to_dyn
let empty =
{ Ml_kind.Dict.
intf = Module_name.Unique.Set.empty
; impl = Module_name.Unique.Set.empty
}
let add_intf (t : t) i =
{ t with intf = Module_name.Uniq... | 27.043478 | 86 | 0.639871 |
bc5d699f755cf78c7c27c48f412bde3b65ec1048 | 265 | ml | OCaml | testdata/from-mincaml/inprod-loop.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 770 | 2017-01-25T13:29:15.000Z | 2022-03-28T01:11:57.000Z | testdata/from-mincaml/inprod-loop.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 22 | 2017-02-21T03:01:15.000Z | 2020-02-27T15:56:40.000Z | testdata/from-mincaml/inprod-loop.ml | rhysd/gocaml | 535c093eec557e7b2356b21181cc31cbbc174aff | [
"MIT"
] | 37 | 2017-02-26T07:22:24.000Z | 2022-03-27T18:26:14.000Z | external truncate: float -> int = "truncate";
let rec inprod v1 v2 acc i =
if i < 0 then acc else
inprod v1 v2 (acc +. v1.(i) *. v2.(i)) (i - 1) in
let v1 = Array.make 3 1.23 in
let v2 = Array.make 3 4.56 in
print_int (truncate (1000000. *. inprod v1 v2 0. 2))
| 33.125 | 52 | 0.626415 |
bc354d185fb58e1cf030e442c706f3a68001b934 | 16 | ml | OCaml | code/packing/A.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 328 | 2015-01-08T13:55:08.000Z | 2022-03-11T12:56:04.000Z | code/packing/A.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 17 | 2015-01-04T00:26:01.000Z | 2018-05-31T08:16:44.000Z | code/packing/A.ml | bguil/examples | 506e420c23c127430533ca5ee0b04be12278218b | [
"Unlicense"
] | 83 | 2015-01-21T15:07:56.000Z | 2022-03-11T12:56:08.000Z | let v = "hello"
| 8 | 15 | 0.5625 |
440267e6fe7cab3f787b5ef234ff9e6d5345a34c | 897 | ml | OCaml | src/signal.ml | npm-opam/async_unix | bf384d5a8c5f66b6c4b78410a2907bc4e8a1afdc | [
"Apache-2.0"
] | null | null | null | src/signal.ml | npm-opam/async_unix | bf384d5a8c5f66b6c4b78410a2907bc4e8a1afdc | [
"Apache-2.0"
] | null | null | null | src/signal.ml | npm-opam/async_unix | bf384d5a8c5f66b6c4b78410a2907bc4e8a1afdc | [
"Apache-2.0"
] | null | null | null | open Core.Std
open Import
include Core.Std.Signal
let handle_default `Do_not_use_with_async = assert false
let ignore `Do_not_use_with_async = assert false
module Scheduler = Raw_scheduler
let the_one_and_only = Scheduler.the_one_and_only
let handle ?stop ts ~f =
let scheduler = the_one_and_only ~sho... | 28.03125 | 65 | 0.764771 |
8afa4273d995e7b4c9c55f443ef3b9c26031d05f | 355 | ml | OCaml | example/dl_rev.ml | OCamlPro/swhid | 43633dcee95686a94847fcf7c0b4a1e681d3551d | [
"0BSD"
] | null | null | null | example/dl_rev.ml | OCamlPro/swhid | 43633dcee95686a94847fcf7c0b4a1e681d3551d | [
"0BSD"
] | 8 | 2021-07-23T14:16:52.000Z | 2021-08-17T12:25:25.000Z | example/dl_rev.ml | OCamlPro/swhid | 43633dcee95686a94847fcf7c0b4a1e681d3551d | [
"0BSD"
] | 7 | 2021-07-23T14:04:17.000Z | 2021-08-04T14:17:11.000Z | let id = "swh:1:rev:db21f0afdb54c16b265754ca599869fda0ca4bfc"
let url =
match Swhid.Parse.from_string id with
| Error e -> Error e
| Ok id -> Swhid.Download.revision id
let () =
match url with
| Error e -> Format.eprintf "can't get download URL: `%s`@." e
| Ok url ->
Format.printf "you can download th... | 27.307692 | 72 | 0.667606 |
bc2c47db607c4b00dd7d129c38b2e86b2f571b33 | 3,205 | mli | OCaml | src/dune_rules/workspace.mli | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | null | null | null | src/dune_rules/workspace.mli | esope/dune | a79a071739b9537da8f9dc236a964793979da849 | [
"MIT"
] | 1 | 2019-09-17T12:49:47.000Z | 2019-09-17T12:49:47.000Z | src/dune_rules/workspace.mli | staronj/dune | cf0ceccef1e177625b9361323bd7a3401a988d45 | [
"MIT"
] | null | null | null | (** Workspaces definitions *)
open Import
module Context : sig
module Target : sig
type t =
| Native
| Named of Context_name.t
val equal : t -> t -> bool
end
module Common : sig
type t =
{ loc : Loc.t
; profile : Profile.t
; targets : Target.t list
; env : Dune_... | 27.393162 | 80 | 0.648986 |
bc417378e36972d3b0885b44a84f2f2b470ef064 | 1,555 | ml | OCaml | source/interprocedural_analyses/taint/metrics.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | 1 | 2022-02-10T10:51:32.000Z | 2022-02-10T10:51:32.000Z | source/interprocedural_analyses/taint/metrics.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | source/interprocedural_analyses/taint/metrics.ml | dmitryvinn/pyre-check-1 | b5e7c164397825ac32851bfe79a6f1a03399ed4c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Ast
let register_alarm callback = Sys.signal Sys.sigalrm (Sys.Signal_handle callback)
let start_alarm time = ignore (Unix.... | 27.280702 | 84 | 0.673955 |
bc56653a27432566a5d1639d592e6439c4a1f4cd | 1,072 | ml | OCaml | data/derived/fa15/progs/cnstr/prog4075.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/cnstr/prog4075.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog4075.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pi = 4.0 *. (atan 1.0);;
type expr =
| VarX
| VarY
| Neg of expr
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Smallest of expr* expr* expr
| Thresh of expr* expr* expr* expr;;
let rec eval (e,x,y) =
match e with
| VarX -> x
| VarY -> y
| Neg e1 -> (e... | 26.8 | 70 | 0.459888 |
44eb08c1e2fed8d6ecd374f1419d2e3369601e94 | 4,338 | ml | OCaml | src/ocaml-3.12.0/debugger/frames.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/debugger/frames.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/debugger/frames.ml | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Jerome Vouil... | 33.369231 | 80 | 0.569387 |
afc2cbf5b854132e2825b38f5ec5790c2faa1903 | 4,991 | ml | OCaml | src/nursery/nursery_main.ml | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 41 | 2015-02-11T03:23:36.000Z | 2020-12-27T12:13:52.000Z | src/nursery/nursery_main.ml | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 36 | 2015-01-04T16:58:51.000Z | 2020-11-12T12:05:37.000Z | src/nursery/nursery_main.ml | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 7 | 2015-07-10T08:04:01.000Z | 2021-09-28T08:09:23.000Z | (*
Copyright (2010-2014) INCUBAID BVBA
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 agreed to in writing, sof... | 31.99359 | 98 | 0.667001 |
bc79ef46e58b1103ba66222c95b2dd968eca7cb8 | 8,035 | mly | OCaml | Checker/parser.mly | NikhilAshodariya/TypeChecker | e4c5e409c236c675a0a4a20aca43dc0825a56e54 | [
"MIT"
] | null | null | null | Checker/parser.mly | NikhilAshodariya/TypeChecker | e4c5e409c236c675a0a4a20aca43dc0825a56e54 | [
"MIT"
] | null | null | null | Checker/parser.mly | NikhilAshodariya/TypeChecker | e4c5e409c236c675a0a4a20aca43dc0825a56e54 | [
"MIT"
] | null | null | null | (* The first section of the grammar definition, called the *header*,
is the part that appears below between %{ and %}. It is code
that will simply be copied literally into the generated parser.ml.
Here we use it just to open the Ast module so that, later on
in the grammar definition, we can write expressio... | 34.337607 | 148 | 0.645426 |
bc7da0a61e55f989d011eb652399914ca99f5587 | 9,721 | mli | OCaml | src/cc.mli | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | 3 | 2020-07-23T15:11:49.000Z | 2020-08-25T11:56:33.000Z | src/cc.mli | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | null | null | null | src/cc.mli | jberdine/ICS | 62b67db7e213bf1f4ac183eedec2c3e5072f3278 | [
"MIT"
] | 4 | 2020-05-14T22:47:12.000Z | 2020-12-16T09:54:31.000Z | (*
* The MIT License (MIT)
*
* Copyright (c) 2020 SRI International
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* t... | 35.608059 | 81 | 0.641189 |
bc3f2601e8acef14e7849259befcc313adb9ab25 | 2,122 | ml | OCaml | lewicowe/leftist.ml | sebastianjaszczur/wpf | 5eac6b9e693f992b95a4cb85c843c273ff9664be | [
"MIT"
] | null | null | null | lewicowe/leftist.ml | sebastianjaszczur/wpf | 5eac6b9e693f992b95a4cb85c843c273ff9664be | [
"MIT"
] | null | null | null | lewicowe/leftist.ml | sebastianjaszczur/wpf | 5eac6b9e693f992b95a4cb85c843c273ff9664be | [
"MIT"
] | 1 | 2020-11-17T23:27:57.000Z | 2020-11-17T23:27:57.000Z | (* 'Drzewa lewicowe' *)
(* Sebastian Jaszczur *)
(* 2014-11-01 *)
module Leftist : sig
type 'a leftist
val empty : 'a leftist
val push : 'a leftist -> 'a -> 'a leftist
val join : 'a leftist -> 'a leftist -> 'a leftist
val min : 'a leftist -> 'a
val pop : 'a leftist -> 'a leftist
exception Empty
end =
struct
ty... | 24.113636 | 82 | 0.660226 |
bc6a493930bd6d951d51bad3404da175dc2cd955 | 15,683 | ml | OCaml | totoconf.ml | ppedrot/ocaml-melt | 0e58bb97e2afe2b7cadbaac906481f28cea1932e | [
"BSD-3-Clause"
] | 9 | 2018-04-29T20:53:47.000Z | 2020-06-18T22:28:35.000Z | totoconf.ml | ppedrot/ocaml-melt | 0e58bb97e2afe2b7cadbaac906481f28cea1932e | [
"BSD-3-Clause"
] | 2 | 2019-10-18T17:04:49.000Z | 2020-02-24T12:09:56.000Z | totoconf.ml | ppedrot/ocaml-melt | 0e58bb97e2afe2b7cadbaac906481f28cea1932e | [
"BSD-3-Clause"
] | 1 | 2019-10-18T16:49:29.000Z | 2019-10-18T16:49:29.000Z | (**************************************************************************)
(* Copyright (c) 2009, Romain BARDOU *)
(* All rights reserved. *)
(* *)
(* Redistrib... | 29.759013 | 76 | 0.488491 |
4433f09b5315bca8e5fca518e91f5f4da3383e6f | 18,889 | ml | OCaml | hack/typing/typing_variance.ml | ptmt/flow | 47e762ba3f1249a0bd09de72ab1774cc442bceb5 | [
"BSD-3-Clause"
] | 1 | 2016-11-07T22:24:41.000Z | 2016-11-07T22:24:41.000Z | hack/typing/typing_variance.ml | WFBosnia/flow | 7dc35b0aff2ac751d801f21285de2f5519fa81a3 | [
"BSD-3-Clause"
] | null | null | null | hack/typing/typing_variance.ml | WFBosnia/flow | 7dc35b0aff2ac751d801f21285de2f5519fa81a3 | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Utils
op... | 39.682773 | 80 | 0.586849 |
44adcabcd3ed2c46213eeca5ca1244d90fa033ad | 56,027 | ml | OCaml | src/html/generator.ml | nikgraf/odoc | 0b2a39a19d5c3cf56afd07bb0d2d7cf805eb8eb4 | [
"ISC"
] | null | null | null | src/html/generator.ml | nikgraf/odoc | 0b2a39a19d5c3cf56afd07bb0d2d7cf805eb8eb4 | [
"ISC"
] | null | null | null | src/html/generator.ml | nikgraf/odoc | 0b2a39a19d5c3cf56afd07bb0d2d7cf805eb8eb4 | [
"ISC"
] | null | null | null | (*
* Copyright (c) 2016 Thomas Refis <trefis@janestreet.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" ... | 32.879695 | 88 | 0.599818 |
44293edfa91445ec41b7ea6f769cb2a403aeeda5 | 5,024 | ml | OCaml | vendor/core/test/bin/comparable_test.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/core/test/bin/comparable_test.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/core/test/bin/comparable_test.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open OUnit;;
open Core
module F
(M : sig
type t
include Comparable.S with type t := t
val one : t
val two : t
val three : t
end) : sig
val test : OUnit.test
end = struct
open M
let equal = M.(=)
let (=) = Bool.equal
let test =
let foreach f = f one; f two; f t... | 24.507317 | 74 | 0.527866 |
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.