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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa0ad43d1a61bdec812c03aa38f9812eb45f8aaf | 874 | ml | OCaml | hphp/hack/src/utils/build_id.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | 10 | 2016-07-28T20:02:37.000Z | 2021-01-28T05:48:11.000Z | hphp/hack/src/utils/build_id.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/build_id.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | 5 | 2017-02-06T11:42:23.000Z | 2021-01-11T12:10:08.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.
*
*)
external get_... | 34.96 | 80 | 0.772311 |
1701abb24c9b51f383e7395eaef38465554eca14 | 5,742 | ml | OCaml | hphp/hack/src/typing/type_validator.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/type_validator.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/type_validator.ml | xtaofb/hhvm | 5a5d2787039965fa12d36d30820a724a5c0f041d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Hh_prelude
open Typing_defs
module Env = Tast_env
module MakeType = Typing_make_type
module Reason = Typing_reason
type ... | 33.776471 | 94 | 0.562173 |
175341df094b4b714428835f67f898f2157f8002 | 3,260 | mli | OCaml | coq/plugins/ltac/tactic_debug.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq/plugins/ltac/tactic_debug.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq/plugins/ltac/tactic_debug.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ *********... | 39.277108 | 129 | 0.661656 |
1748487520a3406db1a841658bfb389bf67612ca | 16,531 | ml | OCaml | src/litu.ml | dbuenzli/lit | 4058b8a133cd51d3bf756c66b9ab620e39e1d2c4 | [
"0BSD"
] | 15 | 2015-03-09T08:58:11.000Z | 2020-12-24T20:04:07.000Z | src/litu.ml | dbuenzli/lit | 4058b8a133cd51d3bf756c66b9ab620e39e1d2c4 | [
"0BSD"
] | 1 | 2020-08-30T01:04:50.000Z | 2020-08-30T01:34:20.000Z | src/litu.ml | dbuenzli/lit | 4058b8a133cd51d3bf756c66b9ab620e39e1d2c4 | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2014 Daniel C. Bünzli. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
open... | 36.573009 | 80 | 0.549876 |
aab59a16f4a87ca0cc03139ed8f28de69a05e27e | 206 | mli | OCaml | libraries/autoscaling/lib/executePolicy.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/autoscaling/lib/executePolicy.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | libraries/autoscaling/lib/executePolicy.mli | pm-mck/ocaml-aws | 7912f94e73941d07d350d7f06c625853298c962c | [
"BSD-3-Clause"
] | null | null | null | open Types_internal
type input = ExecutePolicyType.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type
error := error | 29.428571 | 74 | 0.737864 |
bcb665a200d9684f61f57f0f078c4e5fdcb86416 | 895 | ml | OCaml | exercises/difference-of-squares/test.ml | marionebl/ocaml | 6971e92f981714a4607dc76a339d149e31ea24a5 | [
"MIT"
] | null | null | null | exercises/difference-of-squares/test.ml | marionebl/ocaml | 6971e92f981714a4607dc76a339d149e31ea24a5 | [
"MIT"
] | null | null | null | exercises/difference-of-squares/test.ml | marionebl/ocaml | 6971e92f981714a4607dc76a339d149e31ea24a5 | [
"MIT"
] | null | null | null | open OUnit2
open Difference_of_squares
let ae exp got _test_ctxt = assert_equal exp got
let square_of_sum_tests = [
"square of sum 1" >::
ae 1 (square_of_sum 1);
"square of sum 5" >::
ae 225 (square_of_sum 5);
"square of sum 100" >::
ae 25502500 (square_of_sum 100);
]
let sum_of_squares_tests = [
"sum... | 22.948718 | 88 | 0.69162 |
174fe08f366508dbecf39310121f0e1f99c11da3 | 40,352 | ml | OCaml | upstream/ocaml_410/parsing/ast_mapper.ml | mnxn/merlin | c9761a552380838e9f530b5c47c0ea3c47c33565 | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | upstream/ocaml_410/parsing/ast_mapper.ml | mnxn/merlin | c9761a552380838e9f530b5c47c0ea3c47c33565 | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | upstream/ocaml_410/parsing/ast_mapper.ml | mnxn/merlin | c9761a552380838e9f530b5c47c0ea3c47c33565 | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 38.357414 | 80 | 0.615335 |
aa01ec75b1611e8dfa930a6749c656bbb6be3766 | 3,612 | ml | OCaml | src/js/common.ml | christyjacob4/motoko | 3fa395b14c167aa399a35ddba85964344501238b | [
"Apache-2.0"
] | null | null | null | src/js/common.ml | christyjacob4/motoko | 3fa395b14c167aa399a35ddba85964344501238b | [
"Apache-2.0"
] | 4 | 2021-12-03T20:33:12.000Z | 2021-12-09T02:33:13.000Z | src/js/common.ml | MikeOwino/motoko | e235956dbafca562dbd3946ad42154a6bd50ba42 | [
"Apache-2.0"
] | null | null | null | open Wasm_exts
open Source
open Mo_config
module Js = Js_of_ocaml.Js
module Sys_js = Js_of_ocaml.Sys_js
let position_of_pos pos =
object%js
(* The LSP spec requires zero-based positions *)
val line = if pos.line > 0 then pos.line - 1 else 0
val character = pos.column
end
let range_of_region at =
ob... | 32.25 | 106 | 0.701274 |
bc831a56d2f378461157b8aef807a8501ccde5cb | 35,770 | ml | OCaml | hphp/hack/src/naming/naming_special_names.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming_special_names.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/naming/naming_special_names.ml | Atry/hhvm | f195d3d81b52586d9b9fa2f17c05fe1bb68bcc3e | [
"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
(** Module consisting of the special names known to the typechecker *)
module Classes = struct
l... | 27.81493 | 182 | 0.585547 |
aa7a8d6cf5c5dd8d58de654f3668e8dfa8f66d68 | 7,847 | ml | OCaml | data/derived/comb/progs/unify/prog1416.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/prog1416.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1416.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.244147 | 148 | 0.690837 |
174f2e539737424538246f8c40ecf5bcd9cd6999 | 1,395 | ml | OCaml | lib/route.ml | roddyyaga/jsoo-mithril | acb60cf18cf5a42d6a4089c969fb6483f8bb4d02 | [
"MIT"
] | 21 | 2021-01-22T01:43:55.000Z | 2021-05-01T16:28:35.000Z | lib/route.ml | roddyyaga/jsoo-mithril | acb60cf18cf5a42d6a4089c969fb6483f8bb4d02 | [
"MIT"
] | 1 | 2021-01-23T12:07:57.000Z | 2021-01-23T12:28:29.000Z | lib/route.ml | roddyyaga/jsoo-mithril | acb60cf18cf5a42d6a4089c969fb6483f8bb4d02 | [
"MIT"
] | 1 | 2021-01-24T18:57:47.000Z | 2021-01-24T18:57:47.000Z | module Resolver = struct
type t = Jv.t
include (Jv.Id : Jv.CONV with type t := t)
type opts
type on_match = string -> string -> string -> (Component.t, Jv.t) Fut.result
type render = Vnode.t -> Vnode.t array
let opts ?on_match ?render () =
match (on_match, render) with
| None, None ->
E... | 24.473684 | 79 | 0.618638 |
174a7bcf766e25b7672904e738d04156331038a3 | 2,656 | ml | OCaml | src/stages/common/helpers.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 2 | 2021-03-06T12:11:41.000Z | 2021-11-21T13:54:18.000Z | src/stages/common/helpers.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | src/stages/common/helpers.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | open Types
let range i j =
let rec aux i j acc = if i >= j then acc else aux i (j-1) (j-1 :: acc) in
aux i j []
let label_range i j =
List.map ~f:(fun i -> Label (string_of_int i)) @@ range i j
let is_tuple_lmap m =
List.for_all ~f:(fun i -> LMap.mem i m) @@ (label_range 0 (LMap.cardinal m))
let get_pair m... | 28.869565 | 78 | 0.584337 |
aacf53bd73d85432d44cc86dce048b003426ee49 | 14,578 | ml | OCaml | hphp/hack/src/client/clientArgs.ml | bd808/hhvm | 5a9a5ac8b6b53c0e96a61339d8821195231ac233 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientArgs.ml | bd808/hhvm | 5a9a5ac8b6b53c0e96a61339d8821195231ac233 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientArgs.ml | bd808/hhvm | 5a9a5ac8b6b53c0e96a61339d8821195231ac233 | [
"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.
*
*)
open Core
ope... | 36.445 | 106 | 0.623954 |
aa67b19d26406960c5c173cd16b6c932f465a89f | 1,110 | ml | OCaml | hphp/hack/src/hhbc/hhas_param.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_param.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/hhas_param.ml | SiebelsTim/hhvm | ae63d696e8e97f113c4d8ef8c7dcd56d8633ef6c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, 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.
*
*)
type t = {
p... | 30 | 80 | 0.753153 |
aac0602a003fbf83a13c9ffa3ba5bb780a890eec | 321 | ml | OCaml | template/cli/template/lib/error.ml | pkel/spin | b2307a7be832589edd91e4894ff2838dcfc184f0 | [
"0BSD"
] | 299 | 2019-12-13T02:23:21.000Z | 2022-02-06T13:28:38.000Z | template/cli/template/lib/error.ml | pkel/spin | b2307a7be832589edd91e4894ff2838dcfc184f0 | [
"0BSD"
] | 90 | 2019-12-13T01:48:30.000Z | 2021-12-21T10:34:43.000Z | template/cli/template/lib/error.ml | pkel/spin | b2307a7be832589edd91e4894ff2838dcfc184f0 | [
"0BSD"
] | 18 | 2020-02-06T15:05:29.000Z | 2021-12-20T08:37:58.000Z | type t = [ `Missing_env_var of string ]
let to_string = function
| `Missing_env_var s ->
Printf.sprintf
"The environment variable %S is needed, but could not be found in \
your environment.\n\
Hint: Try setting it and run the program again."
s
let missing_env env = `Missing_env_var env... | 26.75 | 73 | 0.676012 |
aac9a7d315ad5989324d40ef906a735dd49b3440 | 69,697 | ml | OCaml | presentations/coq-workshop-2014-coq/plugins/omega/coq_omega.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/plugins/omega/coq_omega.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | presentations/coq-workshop-2014-coq/plugins/omega/coq_omega.ml | JasonGross/test-broken-tar | 6b52b8532879df53386b0f5413485888a1aa886a | [
"MIT"
] | null | null | null | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *)
(* \VV/ **************************************************************)
(* // * Th... | 37.331012 | 134 | 0.600872 |
17214d0c28c69dd1e1f662c878a51816f4cf737a | 17,349 | ml | OCaml | src/lib_shell/distributed_db.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | src/lib_shell/distributed_db.ml | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | src/lib_shell/distributed_db.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.697531 | 83 | 0.662344 |
bc5ff5941ca2b9818b9481f47688a1f0758fa581 | 1,202 | mli | OCaml | libraries/rds/lib/describeDBProxyTargets.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/rds/lib/describeDBProxyTargets.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/rds/lib/describeDBProxyTargets.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<note> <p>This is prerelease documentation for the RDS Database Proxy feature in preview release. It is subject to change.</p> </note> <p>Returns information about <code>DBProxyTarget</code> objects. This API supports pagination.</p>" *)
open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
m... | 40.066667 | 242 | 0.707987 |
aac2f54cd561e4dec6dea4be990a44085d945279 | 88,365 | ml | OCaml | src/Ast.ml | picojulien/ocamlformat | 63d4725c5a498d50f2c4ebf0d0bd460670454dd1 | [
"MIT"
] | null | null | null | src/Ast.ml | picojulien/ocamlformat | 63d4725c5a498d50f2c4ebf0d0bd460670454dd1 | [
"MIT"
] | null | null | null | src/Ast.ml | picojulien/ocamlformat | 63d4725c5a498d50f2c4ebf0d0bd460670454dd1 | [
"MIT"
] | null | null | null | (**********************************************************************
* *
* OCamlFormat *
* *
* Copyright (c) 2017-present, ... | 36.788093 | 78 | 0.542873 |
172ed44d8898cda2708e4f80aec52f27b8dae16a | 741 | ml | OCaml | data/derived/comb/progs/unify/prog5314.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/prog0410.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0410.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let difference = (List.length l1) - (List.length l2) in
if difference > 0
then (l1, ((clone 0 difference) @ l2))
else
if difference < 0
then (((clone 0 ((-1) * difference)) @ l1), l2)
else (l1, l2);;
let rec r... | 29.64 | 75 | 0.580297 |
aa6d4ea0286aad18c77146377252e8e12eee8c53 | 6,149 | ml | OCaml | infer/src/bufferoverrun/arrayBlk.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | infer/src/bufferoverrun/arrayBlk.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | infer/src/bufferoverrun/arrayBlk.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2016 - present
*
* Programming Research Laboratory (ROPAS)
* Seoul National University, Korea
* 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 ... | 30.29064 | 82 | 0.621077 |
173ef7779dc539b134d104b913124a5dc6fbfc99 | 3,182 | ml | OCaml | formal_lp/glpk/sphere.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 125 | 2016-03-22T22:29:23.000Z | 2022-02-15T05:43:43.000Z | formal_lp/glpk/sphere.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 4 | 2015-10-13T17:38:34.000Z | 2020-11-26T19:54:19.000Z | formal_lp/glpk/sphere.ml | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 9 | 2017-06-21T08:48:56.000Z | 2021-05-13T02:07:27.000Z | (* code automatically generated from Parse_ineq.ocaml_code *)
module Sphere_math = struct
let sqrt = Pervasives.sqrt
let pi = 4.0 *. atan(1.0);;
let sqrt2 = sqrt (2.) ;;
let sqrt8 = sqrt (8.) ;;
let delta_x (x1) (x2) (x3) (x4) (x5) (x6) = ((x1 *. (x4 *. ((-. x1) +. (x2 +. ((x3 -. x4) +. (x5 +. x6)))))... | 41.324675 | 344 | 0.369579 |
aa93ade42ceee51d5f8d5c6b34a9c21369796b26 | 10,973 | ml | OCaml | test/test.ml | reynir/ocaml-ssh-agent | 446db0964b735b8a3cffc236bc32da5f3bdafa63 | [
"BSD-2-Clause"
] | 13 | 2017-12-10T16:51:06.000Z | 2020-10-09T01:54:45.000Z | test/test.ml | reynir/ocaml-ssh-agent | 446db0964b735b8a3cffc236bc32da5f3bdafa63 | [
"BSD-2-Clause"
] | 13 | 2017-12-05T19:17:47.000Z | 2020-03-17T11:36:12.000Z | test/test.ml | reynir/ocaml-ssh-agent | 446db0964b735b8a3cffc236bc32da5f3bdafa63 | [
"BSD-2-Clause"
] | 2 | 2017-12-10T15:04:21.000Z | 2019-09-29T12:51:34.000Z | let with_faraday (f : Faraday.t -> unit) : string =
let buf = Faraday.create 1024 in
f buf;
Faraday.serialize_to_string buf
module Request : Alcotest.TESTABLE with type t = Ssh_agent.any_ssh_agent_request = struct
type t = Ssh_agent.any_ssh_agent_request
let pp fmt (_t : Ssh_agent.any_ssh_agent_request) =
... | 42.863281 | 113 | 0.748656 |
aacb743b61062a06a268011956420e63a3851426 | 585 | mli | OCaml | src/encoder.mli | roddyyaga/colombe | 654f75b8d394ab37d06fed8132cd53a86e6e4bd4 | [
"MIT"
] | null | null | null | src/encoder.mli | roddyyaga/colombe | 654f75b8d394ab37d06fed8132cd53a86e6e4bd4 | [
"MIT"
] | null | null | null | src/encoder.mli | roddyyaga/colombe | 654f75b8d394ab37d06fed8132cd53a86e6e4bd4 | [
"MIT"
] | null | null | null | type encoder
val io_buffer_size : int
val encoder : unit -> encoder
val pp : encoder Fmt.t
type error = [ `Not_enough_space ]
val pp_error : error Fmt.t
type 'err state =
| Write of { buffer : string
; off : int
; len : int
; continue : int -> 'err state }
| Error of 'err... | 24.375 | 76 | 0.584615 |
1750ad6d046f48c93738af4a518b0a482c2f6a36 | 2,550 | ml | OCaml | src/TSocket.ml | tmcgilchrist/ocaml-thrift-lib | 2821ec6151b757cf79cd1f09b5dd832a4396e73a | [
"Apache-2.0"
] | 16 | 2017-08-21T03:53:48.000Z | 2022-03-28T07:58:53.000Z | src/TSocket.ml | tmcgilchrist/ocaml-thrift-lib | 2821ec6151b757cf79cd1f09b5dd832a4396e73a | [
"Apache-2.0"
] | 1 | 2022-03-26T18:22:40.000Z | 2022-03-27T20:27:26.000Z | src/TSocket.ml | tmcgilchrist/ocaml-thrift-lib | 2821ec6151b757cf79cd1f09b5dd832a4396e73a | [
"Apache-2.0"
] | 5 | 2019-03-04T16:34:27.000Z | 2022-03-26T10:42:56.000Z | (*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use th... | 40.47619 | 195 | 0.656078 |
172ae845e7583f190796031422439961d2ffc0dd | 9,291 | ml | OCaml | src/filters/capturedVars.ml | axelhuizinga/haxe | 8aa4a010051660f8d0fd54412778bbb41125748d | [
"MIT"
] | null | null | null | src/filters/capturedVars.ml | axelhuizinga/haxe | 8aa4a010051660f8d0fd54412778bbb41125748d | [
"MIT"
] | null | null | null | src/filters/capturedVars.ml | axelhuizinga/haxe | 8aa4a010051660f8d0fd54412778bbb41125748d | [
"MIT"
] | 1 | 2021-09-28T15:13:28.000Z | 2021-09-28T15:13:28.000Z | (*
The Haxe Compiler
Copyright (C) 2005-2019 Haxe Foundation
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 2
of the License, or (at your option) any later version.
This prog... | 31.818493 | 144 | 0.627919 |
1708378236682df52206bcf67d3a951af4fe0911 | 21,180 | ml | OCaml | analysis/inference.ml | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | null | null | null | analysis/inference.ml | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | null | null | null | analysis/inference.ml | stvreumi/pyre-check | 94d13c8df37b53843ae92544b81042347b64315d | [
"MIT"
] | null | null | null | (** Copyright (c) 2016-present, Facebook, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree. *)
open Core
open Ast
open Expression
open Pyre
open Statement
module Error = AnalysisError
module State = struct
open TypeCheck
includ... | 35.3 | 99 | 0.555052 |
aa633f0a405b6807a57ff242a2e6d07edbd05161 | 20,789 | ml | OCaml | data/derived/comb/progs/cnstr/prog4558.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/cnstr/prog4558.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/cnstr/prog4558.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*
XXXXXXXXXXXX
XXXXXXXXXXX
XXXXXXXX
XXXXXXXXXXXXXXXXXX
*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | 34.02455 | 221 | 0.646592 |
1719a1aabb0b0166659841d5c4c145309e54a362 | 49 | ml | OCaml | src/Interface.ml | HBelusca/DES-Crypto-CaML | 8a73cc3ab7b2a94f1b64e0c4b0726e8c29a9ddfd | [
"CECILL-B"
] | null | null | null | src/Interface.ml | HBelusca/DES-Crypto-CaML | 8a73cc3ab7b2a94f1b64e0c4b0726e8c29a9ddfd | [
"CECILL-B"
] | null | null | null | src/Interface.ml | HBelusca/DES-Crypto-CaML | 8a73cc3ab7b2a94f1b64e0c4b0726e8c29a9ddfd | [
"CECILL-B"
] | null | null | null | include "Gui.ml";;
include "Main.ml";;
main();;
| 9.8 | 19 | 0.591837 |
aa2c45acd41c6b5877fe49823b79c01d258c8e84 | 3,385 | ml | OCaml | hphp/hack/src/server/serverGlobalState.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverGlobalState.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2020-10-11T22:54:12.000Z | 2021-07-20T22:12:10.000Z | hphp/hack/src/server/serverGlobalState.ml | Jankyboy/hhvm | afae3b129fe51c74d9c169254d1755eec4cb0940 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2014, 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 = {
saved_root: Path.t;
saved_hhi: Path.t;
saved_tmp: Path.t;
saved_gi_tmp: string;
trace: bool;
... | 28.931624 | 70 | 0.709306 |
aaf0d2b9b3d56fbd00e840ec711ee5cb98c52dba | 645 | ml | OCaml | tests/types/class/row-to-list.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/types/class/row-to-list.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/types/class/row-to-list.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | type proxy 'a = Proxy
type nil = Nil
type cons ('key : string) ('type : type) 'tail = Cons_ of 'type * 'tail
let cons : forall 'key -> forall 'type 'tail. 'type -> 'tail -> cons 'key 'type 'tail =
fun x t -> Cons_ (x, t)
class list_to_row 'list 'row | 'list -> 'row begin
val make_record : 'list -> 'row
end
inst... | 25.8 | 87 | 0.64186 |
173d1685f93e4e5a1a22d3f540eb2278e8ec5be5 | 1,235 | mli | OCaml | duniverse/textutils/console/src/console.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/textutils/console/src/console.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/textutils/console/src/console.mli | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (** Printing on console tty's *)
open! Core
(** Handling of ansi codes. *)
module Ansi : sig
val kill_line : unit -> unit
val bell : unit -> unit
val home_cursor : unit -> unit
val save_cursor : unit -> unit
val unsave_cursor : unit -> unit
type color = [
| `Black
| `Red
| `Green
| `Yello... | 24.215686 | 74 | 0.612146 |
1757f65c348546e7c7a4fbf18eb30c3ecc792ebc | 499 | ml | OCaml | src/post_intf.ml | bcc32/danbooru-tool | 2e926345cb55a2fc10d6f8c8420030865b7599be | [
"MIT"
] | 2 | 2018-04-20T06:34:41.000Z | 2020-08-15T11:24:38.000Z | src/post_intf.ml | bcc32/danbooru-tool | 2e926345cb55a2fc10d6f8c8420030865b7599be | [
"MIT"
] | null | null | null | src/post_intf.ml | bcc32/danbooru-tool | 2e926345cb55a2fc10d6f8c8420030865b7599be | [
"MIT"
] | null | null | null | open! Core
open! Async
module type M = sig
type t [@@deriving sexp]
val of_json : ?id:int -> Json.t -> t
end
module type S = sig
type t [@@deriving sexp]
val of_json : ?id:int -> Json.t -> t
val get : int -> t Deferred.Or_error.t
val search : string list -> t Pipe.Reader.t
val download : t -> basename... | 19.96 | 89 | 0.639279 |
175be743d876695aabbcacacc21b01a7b24e64a1 | 817 | ml | OCaml | src/server/server_utils/file_input.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/server/server_utils/file_input.ml | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/server/server_utils/file_input.ml | tbergq/flow | 8c866379d12dc32c6a0e129739148c8cd9169db8 | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type t =
| FileName of string
| FileContent of string option * string
(* filename, content *)
let path_of_file_input = functi... | 24.757576 | 66 | 0.689106 |
aa8b90752dbaafd88feae010eb66219bbb2c1407 | 43,836 | ml | OCaml | src/lib/block_producer/block_producer.ml | Rookie23/mina | b1c853d5d1a2101487755fcd87b2aafeaaba27b6 | [
"Apache-2.0"
] | null | null | null | src/lib/block_producer/block_producer.ml | Rookie23/mina | b1c853d5d1a2101487755fcd87b2aafeaaba27b6 | [
"Apache-2.0"
] | null | null | null | src/lib/block_producer/block_producer.ml | Rookie23/mina | b1c853d5d1a2101487755fcd87b2aafeaaba27b6 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Pipe_lib
open Mina_base
open Mina_state
open Mina_transition
open Signature_lib
open O1trace
open Otp_lib
module Time = Block_time
type Structured_log_events.t += Block_produced
[@@deriving register_event {msg= "Successfully produced a new block"}]
module Singleton_supervisor : sig
type ... | 44.368421 | 184 | 0.575235 |
aaf5e0ffbc33d711ea78f7c2f6a69b6067217d32 | 112 | ml | OCaml | vendor/parse-wyc/test/expect/structure/invalid_seq_modules.ml | cgaebel/ocamlformat | 7a1e34c95c494005cdb9e49628d953be920920eb | [
"MIT"
] | null | null | null | vendor/parse-wyc/test/expect/structure/invalid_seq_modules.ml | cgaebel/ocamlformat | 7a1e34c95c494005cdb9e49628d953be920920eb | [
"MIT"
] | null | null | null | vendor/parse-wyc/test/expect/structure/invalid_seq_modules.ml | cgaebel/ocamlformat | 7a1e34c95c494005cdb9e49628d953be920920eb | [
"MIT"
] | null | null | null | module M = struct
let foooooo = foooo
let foooooooooooooo = (* line 5 *)
let foooooooooooo = fooooo
end
| 14 | 36 | 0.678571 |
bc25cf89c7133e02394980da1f7a4fa2617fd892 | 1,047 | ml | OCaml | frontend/examples/axioms/bounds.ml | vasilisp/inez | 3bbbbb82a12918c1557f5fb0b49a8c73ab8d6da1 | [
"MIT"
] | 11 | 2015-03-04T16:11:52.000Z | 2021-05-14T00:11:03.000Z | frontend/examples/axioms/bounds.ml | vasilisp/inez | 3bbbbb82a12918c1557f5fb0b49a8c73ab8d6da1 | [
"MIT"
] | 3 | 2015-12-04T16:54:13.000Z | 2016-07-22T19:15:50.000Z | frontend/examples/axioms/bounds.ml | vasilisp/inez | 3bbbbb82a12918c1557f5fb0b49a8c73ab8d6da1 | [
"MIT"
] | 1 | 2018-06-25T18:30:20.000Z | 2018-06-25T18:30:20.000Z | open Core.Std ;;
open Script ;;
(* input *)
let n =
if not !Sys.interactive && Array.length argv >= 2 then
int_of_string argv.(1)
else
10 ;;
let unsat = Array.length argv >= 3 && argv.(2) = "--unsat" ;;
assert (n >= 0) ;;
(* bounds *)
let l = fresh_int_var () ;;
let u = fresh_int_var () ;;
let l' = ... | 16.887097 | 61 | 0.508118 |
bcb49a43f5bb69cb42e83b122fc0a5561142e0b1 | 2,064 | ml | OCaml | hphp/hack/src/client/clientSymbolInfo.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 2 | 2019-09-01T19:40:10.000Z | 2019-10-18T13:30:30.000Z | hphp/hack/src/client/clientSymbolInfo.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-12-16T15:39:15.000Z | 2018-12-16T15:39:16.000Z | hphp/hack/src/client/clientSymbolInfo.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-01-04T09:54:09.000Z | 2019-01-04T09:54:09.000Z | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Hh_json
let fun_call_to_json fun_call_results =
let open ServerCommandTypes.Symbol_info_s... | 28.666667 | 71 | 0.674903 |
aa980d1e218fd91e9fe8de5c12a3d4815db028d3 | 933 | mli | OCaml | src/catala/surface/parser_driver.mli | svenski/catala | faedeaf3ce7e7bad5a931e81eb72d4d18e168da4 | [
"Apache-2.0"
] | 1 | 2021-05-09T22:36:00.000Z | 2021-05-09T22:36:00.000Z | src/catala/surface/parser_driver.mli | wozniakpl/catala | fa05ac4882edc5ba3467cc5982d21f82eccbca5c | [
"Apache-2.0"
] | null | null | null | src/catala/surface/parser_driver.mli | wozniakpl/catala | fa05ac4882edc5ba3467cc5982d21f82eccbca5c | [
"Apache-2.0"
] | null | null | null | (* This file is part of the Catala compiler, a specification language for tax and social benefits
computation rules. Copyright (C) 2020 Inria, contributor: Denis Merigoux
<denis.merigoux@inria.fr>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compliance... | 46.65 | 100 | 0.765273 |
8ac440578e9ec0426f67048bf82ef809745ab55c | 10,450 | ml | OCaml | src/lib/mina_base/transaction_union_payload.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/mina_base/transaction_union_payload.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | src/lib/mina_base/transaction_union_payload.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | null | null | null | (* transaction_union_payload.ml *)
[%%import "/src/config.mlh"]
open Core_kernel
open Currency
[%%ifdef consensus_mechanism]
open Snark_params.Tick
[%%endif]
open Signature_lib
module Tag = Transaction_union_tag
module Body = struct
type ('tag, 'public_key, 'token_id, 'amount, 'bool) t_ =
{ tag : 'tag
... | 29.6875 | 80 | 0.655311 |
17346ee3cbbb9319595637227a5b851c063b92b8 | 4,605 | mll | OCaml | src/lexer.mll | andrejbauer/marshall | 7e30b546210ad7685ee74db64f13d5c3fdec6e59 | [
"BSD-2-Clause"
] | 78 | 2015-03-14T19:40:11.000Z | 2022-02-18T11:52:29.000Z | src/lexer.mll | andrejbauer/marshall | 7e30b546210ad7685ee74db64f13d5c3fdec6e59 | [
"BSD-2-Clause"
] | 5 | 2015-06-16T18:27:26.000Z | 2019-07-05T09:39:44.000Z | src/lexer.mll | andrejbauer/marshall | 7e30b546210ad7685ee74db64f13d5c3fdec6e59 | [
"BSD-2-Clause"
] | 10 | 2015-06-16T23:33:20.000Z | 2021-12-30T19:57:22.000Z | {
module Make = functor (D : Dyadic.DYADIC) ->
struct
module S = Syntax.Make(D)
module P = Parser.Make(D)
open Lexing
open P
let incr_linenum lexbuf =
let pos = lexbuf.lex_curr_p in
lexbuf.lex_curr_p <-
{ pos with
pos_lnum = pos.pos_lnum + 1;
pos_bol = pos.pos_cnum;
}
let res... | 30.90604 | 105 | 0.439957 |
aa6a9c2ff194e25751ba8c2d2209afa1a2b5418a | 57,794 | ml | OCaml | arm/proofs/bignum_sqr_p521.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 33 | 2021-03-11T16:12:01.000Z | 2022-03-06T17:01:18.000Z | arm/proofs/bignum_sqr_p521.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"Apache-2.0"
] | 8 | 2021-09-06T12:58:47.000Z | 2022-01-03T16:43:09.000Z | arm/proofs/bignum_sqr_p521.ml | SalusaSecondus/s2n-bignum | bf33aba81577a72924a9add994cba61fbb146026 | [
"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 ... | 49.019508 | 196 | 0.633318 |
aa972dc8324326dac5cd4810d5cd3745c8e565d2 | 12,637 | ml | OCaml | lib_test/bap_sema/test_ir.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | 1 | 2021-11-29T09:34:41.000Z | 2021-11-29T09:34:41.000Z | lib_test/bap_sema/test_ir.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | null | null | null | lib_test/bap_sema/test_ir.ml | dra27/bap | bc9679900822afac9c7f7f1dc098958bab217b0e | [
"MIT"
] | null | null | null | open Core_kernel
open Bap.Std
open OUnit2
let x = Var.create "x" bool_t
let y = Var.create "y" bool_t
let z = Var.create "z" bool_t
let o = Var.create "o" bool_t
let s = Var.create "s" bool_t
let p = Var.create "p" bool_t
let q = Var.create "q" bool_t
let r = Var.create "r" bool_t
let a = Var.create "a" bool_t
let b =... | 34.339674 | 72 | 0.610746 |
aad568160fe71af0a3c82c41c4c2ae7562fd154f | 2,097 | ml | OCaml | src/sdist.ml | dra27/obuild | 28252e8cee836448e85bfbc9e09a44e7674dae39 | [
"BSD-2-Clause"
] | 30 | 2015-02-08T13:32:06.000Z | 2021-12-18T12:02:09.000Z | src/sdist.ml | dra27/obuild | 28252e8cee836448e85bfbc9e09a44e7674dae39 | [
"BSD-2-Clause"
] | 78 | 2015-03-05T12:45:51.000Z | 2020-09-04T08:16:49.000Z | src/sdist.ml | dra27/obuild | 28252e8cee836448e85bfbc9e09a44e7674dae39 | [
"BSD-2-Clause"
] | 11 | 2015-09-17T22:17:05.000Z | 2022-03-19T15:22:06.000Z | open Ext.Fugue
open Ext.Filepath
open Ext
open Obuild.Helper
open Obuild.Target
open Obuild.Gconf
open Obuild
let run projFile isSnapshot =
let name = projFile.Project.name in
let ver = projFile.Project.version in
let sdistDir = name ^ "-" ^ ver in
let sdistName = fn (sdistDir ^ ".tar.gz") in
let ... | 35.542373 | 98 | 0.634716 |
aacb811c649c8dc8086c76acdf18074aebbb83b9 | 31,074 | ml | OCaml | bap-vibes/src/isel.ml | draperlaboratory/VIBES | 46d3284e7ff0f897bd553a1678023ea1ebc9005e | [
"MIT"
] | 12 | 2022-02-11T18:58:30.000Z | 2022-03-30T18:00:39.000Z | bap-vibes/src/isel.ml | draperlaboratory/VIBES | 46d3284e7ff0f897bd553a1678023ea1ebc9005e | [
"MIT"
] | 21 | 2022-02-13T06:18:16.000Z | 2022-03-31T18:09:17.000Z | bap-vibes/src/isel.ml | draperlaboratory/VIBES | 46d3284e7ff0f897bd553a1678023ea1ebc9005e | [
"MIT"
] | null | null | null | (***************************************************************************)
(* *)
(* Copyright (C) 2022/2023 The Charles Stark Draper Laboratory, Inc. *)
(* *)
(* This... | 41.935223 | 131 | 0.604364 |
aa77d7da22fb0f5d13bf16ea702e12634b0f2c86 | 2,905 | mli | OCaml | src/lib_crypto/secp256k1_group.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_crypto/secp256k1_group.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | null | null | null | src/lib_crypto/secp256k1_group.mli | noclouds/tezos-master | 6c31af7ab3ea782f89f988e389e9b0860207a8d6 | [
"MIT"
] | 1 | 2021-06-04T09:31:48.000Z | 2021-06-04T09:31:48.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 39.794521 | 79 | 0.502238 |
175fac6cd9e00ec9794424b9e1b4ebd265da7a4c | 141 | ml | OCaml | benchmarks/filter/filter/submissions/sub123.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/filter/filter/submissions/sub123.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/filter/filter/submissions/sub123.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | let rec filter pred lst = (* TODO *)
match lst with
| [] -> []
| hd::tl ->
if pred hd then hd::(filter pred tl)
else filter pred tl
| 20.142857 | 38 | 0.574468 |
1750877664eb5041699d73da3be8427b045ec76d | 7,680 | ml | OCaml | data/derived/comb/progs/unify/prog2026.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/prog2026.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2026.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.211604 | 148 | 0.642839 |
1711b251cf1355da22f258186bfb89c3914c0870 | 1,073 | mli | OCaml | src/typing/errors/flow_error.mli | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2019-07-30T15:59:45.000Z | 2019-07-30T15:59:45.000Z | src/typing/errors/flow_error.mli | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/typing/errors/flow_error.mli | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"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 'loc t
val loc_of_error : 'loc t -> 'loc option
val msg_of_error : 'loc t -> 'loc Error_message.t'
val source_file : 'loc ... | 29 | 99 | 0.699907 |
175c720f20b8e047876880b6a06db2a322e6aa8e | 976 | ml | OCaml | data/sp14/3504.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/3504.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/3504.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec wwhile (f,b) =
match f b with | (b',c') -> if c' then wwhile (f, b') else b';;
let fixpoint (f,b) = wwhile (fun f -> ((f, ((f b) = b)), b));;
(* fix
let rec wwhile (f,b) =
match f b with
| (b',c') -> (match c' with | true -> wwhile (f, b') | false -> b');;
let fixpoint (f,b) = wwhile (let func x ... | 14.787879 | 73 | 0.454918 |
1754a139322256889c34cec666214acaaacef7e4 | 22,476 | ml | OCaml | hphp/hack/src/providers/naming_provider.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/naming_provider.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/providers/naming_provider.ml | efiks/hhvm | bf7b5ffc1d87b90e5a1cdf84ff9e936b4634a822 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Reordered_argument_collections
let not_implemented (backend : Provider_backend.t) =
failwith
("no... | 41.932836 | 89 | 0.699902 |
17525e98d325f90be2438105e58332af10c75cd9 | 7,438 | ml | OCaml | src/lib/allocation_functor/make.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/allocation_functor/make.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/allocation_functor/make.ml | BearerPipelineTest/mina-1 | 9bc196df7b38afc6d05a4eddb4baf4eae87a2421 | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core_kernel
module Partial = struct
module Bin_io (M : Intf.Input.Bin_io_intf) :
Intf.Partial.Bin_io_intf with type t := M.t = struct
open Bin_prot.Type_class
let bin_size_t = M.bin_size_t
let bin_write_t = M.bin_write_t
let bin_read_t buf ~pos_ref =
Table.attach_finalizer M.id (M.b... | 23.993548 | 81 | 0.643049 |
aa84933ad7c3d127f91b79f42592ee5df6de7134 | 3,930 | ml | OCaml | src/lwt/lwt.ml | paulp/unison | 1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2 | [
"MIT"
] | 2 | 2016-03-17T02:42:43.000Z | 2016-03-17T13:59:31.000Z | src/lwt/lwt.ml | paulp/unison | 1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2 | [
"MIT"
] | null | null | null | src/lwt/lwt.ml | paulp/unison | 1bece7bf3b8f6ee62c64a0aa4e0045a6dbdd7eb2 | [
"MIT"
] | null | null | null |
(* Either a thread ['a t] has terminated, eithera successfully [Return of 'a] or
* unsuccessfully [Fail of exn], or it is sleeping
*)
type 'a state =
Return of 'a
| Fail of exn
| Sleep
(* A suspended thread is described by ['a t]
* It could have several [waiters], which are thunk functions
*)
type 'a t =... | 24.409938 | 80 | 0.587532 |
171fdfea1f2156060d2b8fd1d3cc9993f9f9c86a | 610 | ml | OCaml | explicitly_typed/algebraic_types_exp/exe/test/test.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | 1 | 2020-05-13T13:51:57.000Z | 2020-05-13T13:51:57.000Z | explicitly_typed/algebraic_types_exp/exe/test/test.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | explicitly_typed/algebraic_types_exp/exe/test/test.ml | enaudon/calculus-corral | d33e95c649defae013750bcd7b8d8bf12c00bdba | [
"MIT"
] | null | null | null | open OUnit
let _ =
let repl_exe, case_dir = Test_repl.parse_argv Sys.argv in
let repl_cases =
[ ("row_polymorphism.lc", []);
("function.lc", []);
("church_boolean.lc", []);
("church_natural.lc", []);
("church_pair.lc", ["church_boolean.lc"; "church_natural.lc"]);
("variant_boolean... | 29.047619 | 69 | 0.616393 |
174362eede746d24bc9ffd3bb51da65f818b880e | 204 | mli | OCaml | libraries/elasticloadbalancing/lib/deleteLoadBalancerPolicy.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/elasticloadbalancing/lib/deleteLoadBalancerPolicy.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/elasticloadbalancing/lib/deleteLoadBalancerPolicy.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
type input = DeleteLoadBalancerPolicyInput.t
type output = unit
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 18.545455 | 85 | 0.759804 |
bc18197940a99933ac7f09c054ae10d456b959af | 30,706 | ml | OCaml | src/OCaml/cryptokit-1.9/test/test.ml | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 34 | 2015-02-04T18:03:14.000Z | 2020-11-10T06:45:28.000Z | src/OCaml/cryptokit-1.9/test/test.ml | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 5 | 2015-06-30T21:17:00.000Z | 2016-06-14T22:31:51.000Z | src/OCaml/cryptokit-1.9/test/test.ml | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 15 | 2015-10-29T14:21:58.000Z | 2022-01-19T07:33:14.000Z | (***********************************************************************)
(* *)
(* The Cryptokit library *)
(* *)
(* Xavier Ler... | 44.891813 | 354 | 0.760275 |
aa4d476061c92cd101898ef86109e029b83e8e61 | 73 | ml | OCaml | OCaml from the Very Beginning/Chapter 3/example04.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 100 | 2017-09-08T09:49:08.000Z | 2022-03-10T12:12:50.000Z | OCaml from the Very Beginning/Chapter 3/example04.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | 1 | 2020-01-31T15:47:28.000Z | 2020-02-01T11:54:44.000Z | OCaml from the Very Beginning/Chapter 3/example04.ml | johnwhitington/ocamli | 28da5d87478a51583a6cb792bf3a8ee44b990e9f | [
"BSD-3-Clause"
] | null | null | null | let rec gcd a b =
match b with
0 -> a
| _ -> gcd b (a mod b)
| 14.6 | 25 | 0.452055 |
174fae5af598f3eb9e9cdad183f4fce9aa29d11d | 744 | ml | OCaml | data/sp14/2453.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/2453.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/2453.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ x) in
let base = h in let l = t in List.fold_left f base l;;
let stringOfList f l = List.map (sepConcat f l) l;;
(* fix
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (s... | 16.909091 | 69 | 0.489247 |
bccca0173a973ba5b92a18f144af1f0ba0a4c328 | 2,692 | mli | OCaml | src/proto_alpha/lib_protocol/tx_rollup_prefixes.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/tx_rollup_prefixes.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | src/proto_alpha/lib_protocol/tx_rollup_prefixes.mli | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2022 Nomadic Labs <contact@nomadic-labs.com> *)
... | 44.866667 | 79 | 0.528603 |
aaf3d79bf6785b3d4ff6123e7d218776e28a7402 | 2,614 | ml | OCaml | data/sp14/1915.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/sp14/1915.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/sp14/1915.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
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine e -> "sin(" ^ ((exprToString e) ^ ")")
| Cosine e -> "cos(" ^ ((exprToString e... | 18.539007 | 77 | 0.499235 |
44f3dfcb5abdaa74630067d0acf21d0c4330f0a9 | 19,182 | ml | OCaml | hphp/hack/test/rust/rust_ocaml_test.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/rust/rust_ocaml_test.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/test/rust/rust_ocaml_test.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.
*
*)
module OcamlPervasives = Pervasives
module OcamlPrintf = Printf
open Core_kernel
module Pervasives = OcamlPervasives... | 33.652632 | 99 | 0.637003 |
1706d353eaa90b50445eb05ceba1b5d2bdf9aee0 | 2,985 | mli | OCaml | hphp/hack/src/parser/full_fidelity_ast.mli | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2021-06-19T23:31:58.000Z | 2021-06-19T23:31:58.000Z | hphp/hack/src/parser/full_fidelity_ast.mli | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/parser/full_fidelity_ast.mli | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"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.
*
*)
include module type of struct
include Full_fidelity_ast_types
end
(**
* The `env` of the lowerer is "full reque... | 25.732759 | 96 | 0.703518 |
aaa6deb66ec0bfafbd4062dd303f3aa13a25986a | 260 | ml | OCaml | benchmarks/C/nat/sol13.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/nat/sol13.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/nat/sol13.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type nat = ZERO | SUCC of nat
let rec natadd : nat -> nat -> nat
=fun n1 n2 -> match n1 with
ZERO -> n2
|SUCC(n) -> SUCC(natadd n n2)
let rec natmul : nat -> nat -> nat
=fun n1 n2 -> match n1 with
ZERO -> ZERO
|SUCC(n) -> natadd (natmul n n2) n2 | 21.666667 | 35 | 0.584615 |
171bc1366e8b28b8f719218a517bbf7605b107e4 | 24,245 | mll | OCaml | src/ocaml/preprocess/402/lexer_raw.mll | vbmithr/merlin | cd78778a1f507f35292b6b5d7a3417ac86f2534d | [
"MIT"
] | null | null | null | src/ocaml/preprocess/402/lexer_raw.mll | vbmithr/merlin | cd78778a1f507f35292b6b5d7a3417ac86f2534d | [
"MIT"
] | null | null | null | src/ocaml/preprocess/402/lexer_raw.mll | vbmithr/merlin | cd78778a1f507f35292b6b5d7a3417ac86f2534d | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 33.861732 | 92 | 0.560817 |
44d94b8a3fcdc38f56858d67028d796c9fc27a8c | 423 | ml | OCaml | Flap/src/utilities/stdUserInput.ml | kolibs/School_projects | d6c45814bf21c1ae788eb2e070f9745414e07553 | [
"MIT"
] | 1 | 2020-01-11T19:49:51.000Z | 2020-01-11T19:49:51.000Z | Flap/src/utilities/stdUserInput.ml | kolibs/School_projects | d6c45814bf21c1ae788eb2e070f9745414e07553 | [
"MIT"
] | null | null | null | Flap/src/utilities/stdUserInput.ml | kolibs/School_projects | d6c45814bf21c1ae788eb2e070f9745414e07553 | [
"MIT"
] | 2 | 2020-01-11T19:07:41.000Z | 2020-10-08T14:12:54.000Z | let prompt = ref ""
let set_prompt = ( := ) prompt
let print_prompt () =
output_string stdout !prompt;
flush stdout
let input_char =
let display_prompt = ref true in
let ask stdin =
if !display_prompt then begin
display_prompt := false;
print_prompt ()
end;
let c = input_char stdin i... | 18.391304 | 44 | 0.631206 |
17063519a235e36c1cb878305c9a6c1e3a361482 | 5,704 | ml | OCaml | src/proto_008_PtEdoTez/lib_protocol/seed_storage.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/proto_008_PtEdoTez/lib_protocol/seed_storage.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/proto_008_PtEdoTez/lib_protocol/seed_storage.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"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> *)
... | 38.802721 | 79 | 0.575386 |
bc67e137e36048900d979f3f7a1a57ba0805d3c4 | 6,917 | ml | OCaml | intcode.ml | basile-henry/aoc2019 | 243ebf1db60d6e9640cf0831cb0caaaadfac0966 | [
"MIT"
] | 1 | 2019-12-02T12:15:22.000Z | 2019-12-02T12:15:22.000Z | intcode.ml | basile-henry/aoc2019 | 243ebf1db60d6e9640cf0831cb0caaaadfac0966 | [
"MIT"
] | null | null | null | intcode.ml | basile-henry/aoc2019 | 243ebf1db60d6e9640cf0831cb0caaaadfac0966 | [
"MIT"
] | null | null | null | type ram = int array ref
type program =
{ ram : ram
; relative_base : int ref
; program_counter : int ref
}
type input = int list
type output = int list
let resize (ram : ram) (size : int) : unit =
let len = Array.length !ram in
if size >= len then
let delta = 1 + size - len in
ram := Array... | 31.584475 | 90 | 0.546191 |
aac66d92225402771649ca98ac8880b43a1a89bb | 11,951 | ml | OCaml | src/lib/staged_ledger_diff/staged_ledger_diff.ml | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | 1 | 2021-08-22T12:02:53.000Z | 2021-08-22T12:02:53.000Z | src/lib/staged_ledger_diff/staged_ledger_diff.ml | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | src/lib/staged_ledger_diff/staged_ledger_diff.ml | P7-33/mining | aed227c269042efa4066ff0cf944f96897eda44e | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Mina_base
module At_most_two = struct
[%%versioned
module Stable = struct
[@@@no_toplevel_latest_type]
module V1 = struct
type 'a t = Zero | One of 'a option | Two of ('a * 'a option) option
[@@deriving compare, sexp, yojson]
end
end]
type 'a t = 'a Stable.Latest... | 29.220049 | 82 | 0.669149 |
aa98a6b34f3173089c567f21016d2ea42a01dfbb | 35,327 | ml | OCaml | eval/ocaml/bytecomp/bytegen.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/bytecomp/bytegen.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/bytecomp/bytegen.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 37.621938 | 80 | 0.604665 |
aa755523cc7ad66152b1949be0c8248b4bb195ba | 2,131 | mly | OCaml | parser1.mly | NavneelSinghal/LambdaSpreadsheets | d491ed914f6d04881926eaf8d45069604650a242 | [
"MIT"
] | null | null | null | parser1.mly | NavneelSinghal/LambdaSpreadsheets | d491ed914f6d04881926eaf8d45069604650a242 | [
"MIT"
] | null | null | null | parser1.mly | NavneelSinghal/LambdaSpreadsheets | d491ed914f6d04881926eaf8d45069604650a242 | [
"MIT"
] | null | null | null | %{
open Types
%}
/*Tokens are the same as assignment 2, except that they are now in the parsing file (this file) and an end of file is a token and not an exception*/
%token <float> Float
%token <int*int> Index
%token <(int*int)*(int*int)> Range
%token Assignment Termination Lparen Rparen Lbrac Rbrac Colon Comm... | 34.934426 | 152 | 0.506335 |
1760707d78a8c8126b6c3d1762c77d48a147c099 | 4,502 | mli | OCaml | lib/preface_specs/arrow_choice.mli | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 109 | 2021-04-08T18:41:14.000Z | 2022-03-26T10:28:45.000Z | lib/preface_specs/arrow_choice.mli | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 35 | 2021-04-10T06:28:02.000Z | 2022-01-31T10:43:36.000Z | lib/preface_specs/arrow_choice.mli | xvw/preface | 985b8c850d3e15c72c127ba47f7ad74be7143dfa | [
"MIT"
] | 3 | 2021-05-07T21:53:35.000Z | 2021-08-28T12:28:12.000Z | (** An [Arrow_choice] is an {!module:Arrow} with conditional capabilities. It is
a kind of {!module:Selective} in the arrow hierarchy. And an [Arrow_choice]
is also {!module:Arrow}. *)
(** {2 Laws}
To have a predictable behaviour, the instance of [Arrow_choice] must obey
some laws.
+ All {!module... | 27.790123 | 83 | 0.597512 |
173d72a7b4321a21c707a4c54e365b7f7b57e166 | 2,068 | ml | OCaml | src/dune_engine/dune_engine.ml | lefessan/dune | 855b085d889389e17dc914d094617090321fbfa5 | [
"MIT"
] | null | null | null | src/dune_engine/dune_engine.ml | lefessan/dune | 855b085d889389e17dc914d094617090321fbfa5 | [
"MIT"
] | null | null | null | src/dune_engine/dune_engine.ml | lefessan/dune | 855b085d889389e17dc914d094617090321fbfa5 | [
"MIT"
] | null | null | null | module Vcs = Vcs
module Context_name = Context_name
module Action_builder = Action_builder
module Local_install_path = Local_install_path
module Dep = Dep
module Lib_name = Lib_name
module String_with_vars = String_with_vars
module Install = Install
module Import = Import
module Package = Package
module Stanza = Stanza... | 30.865672 | 50 | 0.840426 |
aac8797a362af7143a422206b400c0af1748f408 | 3,569 | mli | OCaml | coq-serapi/serlib/ser_locus.mli | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq-serapi/serlib/ser_locus.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq-serapi/serlib/ser_locus.mli | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016 *)
(* \VV/ **************************************************************)
(* // * Th... | 41.022989 | 80 | 0.60325 |
175cecf43e245a91975a63611d89639bd8f58607 | 131,972 | ml | OCaml | hphp/hack/src/typing/typing_subtype.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_subtype.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_subtype.ml | Raulkumar/hhvm | dfc1a50aff4d3a1df508c685fee401262e530879 | [
"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 Common
open Utils
open Typing_defs
open Typing_env_types
open Typing_logic_helpers
module Reaso... | 36.305915 | 104 | 0.587087 |
aa09151d120ba012a12c3d8ba9941fd119eb56c4 | 739 | ml | OCaml | src/ocaml/infrastructure/forward_match_completer.ml | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | null | null | null | src/ocaml/infrastructure/forward_match_completer.ml | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | 11 | 2020-03-14T01:09:36.000Z | 2022-03-02T02:09:30.000Z | src/ocaml/infrastructure/forward_match_completer.ml | derui/sxfiler | b88f99d4aa495ef3958ad1ca823e5a10146ca33a | [
"MIT"
] | null | null | null | open Sxfiler_core
module T = Sxfiler_domain
(** Completer provides simple completion interface via string. *)
module Core = struct
type t = unit
let read ~input ~collection () =
let regexp = Re.Posix.compile_pat & ("^" ^ input) in
collection
|> List.map (fun s ->
let open Option in
... | 26.392857 | 79 | 0.619756 |
aac9278bb7e228f9146e2a2f5f0da6f5a134d155 | 9,499 | ml | OCaml | src/lib/rosetta_lib/errors.ml | Rookie23/mina | b1c853d5d1a2101487755fcd87b2aafeaaba27b6 | [
"Apache-2.0"
] | null | null | null | src/lib/rosetta_lib/errors.ml | Rookie23/mina | b1c853d5d1a2101487755fcd87b2aafeaaba27b6 | [
"Apache-2.0"
] | null | null | null | src/lib/rosetta_lib/errors.ml | Rookie23/mina | b1c853d5d1a2101487755fcd87b2aafeaaba27b6 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
module Partial_reason = struct
type t =
| Length_mismatch
| Fee_payer_and_source_mismatch
| Amount_not_some
| Account_not_some
| Invalid_metadata
| Incorrect_token_id
| Amount_inc_dec_mismatch
| Status_not_pending
| Can't_find_kind of string
[@... | 31.663333 | 81 | 0.601221 |
aa9fb1e4c3de1b7a158cb797545c919ee6544cf3 | 547 | ml | OCaml | tests/test-bigarrays/stubs/functions.ml | pqwy/ocaml-ctypes | 76f0f4c5773c71fe854f377f0c06411bc4fef2c0 | [
"MIT"
] | 1 | 2015-01-21T09:39:37.000Z | 2015-01-21T09:39:37.000Z | tests/test-bigarrays/stubs/functions.ml | cryptosense/ocaml-ctypes | 39af905fc8740cc4e5c42ef7864be1d07f8e451d | [
"MIT"
] | null | null | null | tests/test-bigarrays/stubs/functions.ml | cryptosense/ocaml-ctypes | 39af905fc8740cc4e5c42ef7864be1d07f8e451d | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2014 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
(* Foreign function bindings for the bigarrays tests. *)
open Ctypes
open Tests_common
module Stubs (F: Cstubs.FOREIGN) =
struct
open F
let matrix_mul = foreign "ma... | 21.88 | 63 | 0.665448 |
173a25cf5fa5a43cbcd43f577584cae239be06e6 | 8,339 | ml | OCaml | data/derived/comb/progs/unify/prog1749.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/prog1749.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog1749.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.473016 | 148 | 0.63221 |
1766078e97e0c9fce7ae1701be4c5c52657d1242 | 10,162 | ml | OCaml | hphp/hack/src/stubs/logging/hackEventLogger.ml | cobbles/hhvm | 583f879c7e1be697b1695a4506dd2f7171b921d0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/stubs/logging/hackEventLogger.ml | cobbles/hhvm | 583f879c7e1be697b1695a4506dd2f7171b921d0 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/stubs/logging/hackEventLogger.ml | cobbles/hhvm | 583f879c7e1be697b1695a4506dd2f7171b921d0 | [
"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.364729 | 80 | 0.717477 |
1733fb0970941836c47f698fee2b6daa5383b31a | 419 | ml | OCaml | src/working_directory.ml | andersfugmann/ecaml | c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c | [
"MIT"
] | 245 | 2016-08-29T14:21:13.000Z | 2022-03-12T04:08:52.000Z | src/working_directory.ml | andersfugmann/ecaml | c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c | [
"MIT"
] | 13 | 2016-08-29T14:55:35.000Z | 2021-07-30T04:25:32.000Z | src/working_directory.ml | andersfugmann/ecaml | c1bb0fb79f314c4de2e7664d62ad2b0b57b6ad6c | [
"MIT"
] | 13 | 2016-08-30T00:53:52.000Z | 2021-12-17T02:51:25.000Z | open! Core
open! Import
type t =
| Of_current_buffer
| Root
| This of string
[@@deriving sexp_of]
let to_filename = function
| Of_current_buffer -> Current_buffer.(get_buffer_local_exn directory)
| Root -> "/"
| This s -> s
;;
let within t sync_or_async ~f =
Current_buffer.set_value_temporarily
syn... | 18.217391 | 72 | 0.692124 |
aa6e64543748dff0bce37d6110704fe4a5871d6e | 1,154 | ml | OCaml | examples/lts/clock/main.ml | pitag-ha/lascar | 944cfad2ad591b8c3cc1e463ed8ee995a6cff40a | [
"MIT"
] | 24 | 2017-11-07T18:56:34.000Z | 2022-03-08T00:23:33.000Z | examples/lts/clock/main.ml | pitag-ha/lascar | 944cfad2ad591b8c3cc1e463ed8ee995a6cff40a | [
"MIT"
] | 1 | 2019-08-16T07:24:26.000Z | 2019-08-18T17:31:53.000Z | examples/lts/clock/main.ml | pitag-ha/lascar | 944cfad2ad591b8c3cc1e463ed8ee995a6cff40a | [
"MIT"
] | 2 | 2019-10-18T14:47:36.000Z | 2022-03-03T19:37:05.000Z | (* A clock described as a synchronized product of two automata :
one for the hours, the other for the minutes *)
open Utils
open Lascar
module H =
Lts.Make (Builtins.Int) (Builtins.String)
module M = H
let mk_state i = i
let mk_label p i = p ^ string_of_int i
let mk_transition p i j = i, mk_label p i, j
let ... | 26.227273 | 121 | 0.681976 |
1736f595ffb770fe4ac694e823d8373ad5bdc243 | 9,679 | ml | OCaml | Untrusted_Transformations/LazyCodeMotion/LCM.ml | jtristan/CompCert-Extensions | c416034cc75ebae26c2f1e58f778d66b1ac2ceee | [
"MIT"
] | 1 | 2020-11-01T19:57:43.000Z | 2020-11-01T19:57:43.000Z | Untrusted_Transformations/LazyCodeMotion/LCM.ml | jtristan/CompCert-Extensions | c416034cc75ebae26c2f1e58f778d66b1ac2ceee | [
"MIT"
] | null | null | null | Untrusted_Transformations/LazyCodeMotion/LCM.ml | jtristan/CompCert-Extensions | c416034cc75ebae26c2f1e58f778d66b1ac2ceee | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Compcert Extensions *)
(* *)
(* ... | 32.049669 | 96 | 0.559975 |
1724ee98cbf8705462fc975ac3b6fb082c1fd923 | 339 | mli | OCaml | infer/src/backend/mergeCapture.mli | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"MIT"
] | null | null | null | infer/src/backend/mergeCapture.mli | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"MIT"
] | null | null | null | infer/src/backend/mergeCapture.mli | abs12seth/infer | 90d0aa992ca57cc9ad51cd7dda732157ab21b9a8 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
val merge_captured_targets : unit -> unit
val merge_changed_functions : unit -> unit
val merge_test_determinator_resu... | 22.6 | 66 | 0.740413 |
17337020100ab718b1a5755077db898bc6534a6b | 116 | eliomi | OCaml | dictionary_mobile.eliomi | Sudha247/dictionary-app | cf8a088bd0b37f870ffeebfeee33f30cd7366dbd | [
"MIT"
] | 1 | 2020-10-08T17:57:49.000Z | 2020-10-08T17:57:49.000Z | dictionary_mobile.eliomi | Sudha247/dictionary-app | cf8a088bd0b37f870ffeebfeee33f30cd7366dbd | [
"MIT"
] | null | null | null | dictionary_mobile.eliomi | Sudha247/dictionary-app | cf8a088bd0b37f870ffeebfeee33f30cd7366dbd | [
"MIT"
] | null | null | null | (* This file was generated by Ocsigen Start.
Feel free to use it, modify it, and redistribute it as you wish. *)
| 38.666667 | 70 | 0.715517 |
bc9d93348be90b46f2e7e66fbb53e5de3ff2df2b | 655 | mll | OCaml | src/zzzz/firstorder/fo_lexer.mll | iceluke/cyclist | 6983f1c7a5aacf142fb7edc6a2803ebd8924310c | [
"BSD-3-Clause"
] | null | null | null | src/zzzz/firstorder/fo_lexer.mll | iceluke/cyclist | 6983f1c7a5aacf142fb7edc6a2803ebd8924310c | [
"BSD-3-Clause"
] | null | null | null | src/zzzz/firstorder/fo_lexer.mll | iceluke/cyclist | 6983f1c7a5aacf142fb7edc6a2803ebd8924310c | [
"BSD-3-Clause"
] | null | null | null | {
open Fo_parser
exception Error of string
}
rule token = parse
| [' ' '\t' '\n'] { token lexbuf }
| "true" { TRUE }
| "\\/" { OR }
| '&' { AND }
| '=' { EQ }
| "!=" { DEQ }
| '(' { LP }
| ')' { RP }
| '{' { LB }
| '}' { RB }
| ';' { SEMICOLON }
| ',' { COMMA }
| "|-" { TURNSTILE }
| "=>" { IND_IMPL... | 17.702703 | 50 | 0.40916 |
1724748c2c6a217b1d00650f8598904ecdb2527d | 8,082 | ml | OCaml | src/dune_engine/action.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2020-09-18T13:10:03.000Z | 2020-09-18T13:10:03.000Z | src/dune_engine/action.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2020-11-12T13:27:57.000Z | 2020-11-12T13:27:57.000Z | src/dune_engine/action.ml | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | null | null | null | open! Stdune
open Import
module Outputs = Action_ast.Outputs
module Inputs = Action_ast.Inputs
module Prog = struct
module Not_found = struct
type t =
{ context : Context_name.t
; program : string
; hint : string option
; loc : Loc.t option
}
let create ?hint ~context ~program ... | 24.640244 | 80 | 0.607028 |
aaaed64bb3cd979d13b2af4a4ba20a9c8c939232 | 13,944 | ml | OCaml | hphp/hack/src/client/clientArgs.ml | OrochiProject/hhvm-log | 67d6048eaad7dc65357c6cf91cfd10c24d32ed95 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientArgs.ml | OrochiProject/hhvm-log | 67d6048eaad7dc65357c6cf91cfd10c24d32ed95 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientArgs.ml | OrochiProject/hhvm-log | 67d6048eaad7dc65357c6cf91cfd10c24d32ed95 | [
"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.
*
*)
open ClientCo... | 35.390863 | 106 | 0.626865 |
172affab13de135a1e1e1aba96cba084524a5587 | 14,450 | ml | OCaml | coq_projects/CompCert/cparser/Diagnostics.ml | reichel3/TacTok | c344e76263de04311af8a0030c07aec95d87f71c | [
"MIT"
] | 7 | 2020-11-23T02:45:36.000Z | 2022-03-18T03:03:33.000Z | coq_projects/CompCert/cparser/Diagnostics.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 4 | 2021-02-23T03:03:51.000Z | 2021-11-13T00:07:38.000Z | coq_projects/CompCert/cparser/Diagnostics.ml | LASER-UMASS/Diva | 7dbb532cc6feec1e39c560b30a8e70f2691df365 | [
"MIT"
] | 2 | 2021-01-19T17:56:28.000Z | 2022-03-28T04:39:41.000Z | (* *********************************************************************)
(* *)
(* The Compcert verified compiler *)
(* *)
(* Xavier Leroy... | 29.429735 | 90 | 0.678616 |
aaf836599fa5ede2a186dcb9ad9c94d8d54fa473 | 85,743 | ml | OCaml | source/new_parser/test/statementTest.ml | esiebomaj/pyre-check | bc75489e04ca21f51ba1ebc6296e2ff5c27626c9 | [
"MIT"
] | 3 | 2021-06-17T16:32:46.000Z | 2021-09-20T14:47:23.000Z | source/new_parser/test/statementTest.ml | esiebomaj/pyre-check | bc75489e04ca21f51ba1ebc6296e2ff5c27626c9 | [
"MIT"
] | 87 | 2021-02-03T22:05:58.000Z | 2021-12-07T16:30:09.000Z | source/new_parser/test/statementTest.ml | esiebomaj/pyre-check | bc75489e04ca21f51ba1ebc6296e2ff5c27626c9 | [
"MIT"
] | 3 | 2021-06-17T16:32:54.000Z | 2021-10-13T20:53:12.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 Base
open OUnit2
open Test
open Ast.Expression
open Ast.Statement
let statements_location_insensitive_equal left right =
Li... | 32.751337 | 102 | 0.360426 |
aac5fde1cda3ddcb7d991ffebd4e6ee8ee7bb991 | 1,853 | ml | OCaml | plugins/powerpc/powerpc.ml | bmourad01/bap | c487c764746e7a7a40d67d04312b298a4c767306 | [
"MIT"
] | 1 | 2021-11-29T09:34:41.000Z | 2021-11-29T09:34:41.000Z | plugins/powerpc/powerpc.ml | bmourad01/bap | c487c764746e7a7a40d67d04312b298a4c767306 | [
"MIT"
] | null | null | null | plugins/powerpc/powerpc.ml | bmourad01/bap | c487c764746e7a7a40d67d04312b298a4c767306 | [
"MIT"
] | null | null | null | open Core_kernel
open Bap.Std
open Powerpc_types
module Model = Powerpc_model
module Std = struct
open Powerpc_rtl
include Powerpc_utils
include Powerpc_cpu
include Powerpc_dsl
include Powerpc_types
module RTL = struct
include Powerpc_rtl
include Infix
let foreach = foreach ~inverse:true
... | 21.546512 | 59 | 0.647598 |
1731519fad4de9ebeb8524ec333f0fba76769421 | 2,355 | ml | OCaml | lib/day_2/day_2.ml | p1xelHer0/advent-of-code-2021-ocaml | 769e3f8f7b201085963108a4536cd33b32683b90 | [
"MIT"
] | 2 | 2021-12-01T11:00:41.000Z | 2021-12-03T17:24:17.000Z | lib/day_2/day_2.ml | p1xelHer0/advent-of-code-2021-ocaml | 769e3f8f7b201085963108a4536cd33b32683b90 | [
"MIT"
] | null | null | null | lib/day_2/day_2.ml | p1xelHer0/advent-of-code-2021-ocaml | 769e3f8f7b201085963108a4536cd33b32683b90 | [
"MIT"
] | null | null | null | open ContainersLabels
type direction =
| Forward
| Down
| Up
and command = {
direction : direction;
value : int;
}
let direction_of_string s =
match s with
| "forward" -> Forward
| "down" -> Down
| "up" -> Up
| _ -> failwith (s ^ ": invalid input data")
let parsers =
[
Aoc_2021.Util.parse ... | 23.55 | 79 | 0.572399 |
aac8a5435dc3cd980df213aaae8bdcf21e58c142 | 265 | ml | OCaml | negative-tests/disabling/lib/test_ref.ml | renatoalencar/ppx_expect | cfb5ad59a1b6bb9c50bec748e32d3421df3d5349 | [
"MIT"
] | 97 | 2016-01-13T19:21:32.000Z | 2022-03-21T16:03:32.000Z | negative-tests/disabling/lib/test_ref.ml | renatoalencar/ppx_expect | cfb5ad59a1b6bb9c50bec748e32d3421df3d5349 | [
"MIT"
] | 34 | 2016-03-31T19:41:39.000Z | 2021-11-22T10:28:38.000Z | negative-tests/disabling/lib/test_ref.ml | renatoalencar/ppx_expect | cfb5ad59a1b6bb9c50bec748e32d3421df3d5349 | [
"MIT"
] | 16 | 2016-12-18T06:37:26.000Z | 2022-03-15T23:40:36.000Z | type t =
| Init
| Set_by_inline_test
[@@deriving sexp, compare]
let inner = ref Init
let%expect_test _ =
let module _ = struct
let () = inner := Set_by_inline_test
end
in
()
;;
let%test_unit _ = inner := Set_by_inline_test
let value () = !inner
| 13.947368 | 45 | 0.649057 |
173496f32020403de9b5cf7d9dd713f6801fe3d8 | 43,712 | ml | OCaml | src/lib_protocol_environment/environment_V5.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_protocol_environment/environment_V5.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_protocol_environment/environment_V5.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 31.111744 | 104 | 0.599012 |
17480c569c524ca40008d9cb2853a09e74e088d4 | 427 | mli | OCaml | opium_kernel/src/version.mli | hypercollective/opium | a840e4653387fc80529b1c48bc3c66b682eb1426 | [
"MIT"
] | null | null | null | opium_kernel/src/version.mli | hypercollective/opium | a840e4653387fc80529b1c48bc3c66b682eb1426 | [
"MIT"
] | null | null | null | opium_kernel/src/version.mli | hypercollective/opium | a840e4653387fc80529b1c48bc3c66b682eb1426 | [
"MIT"
] | null | null | null | include module type of Httpaf.Version
(** {2 Utilities} *)
(** [sexp_of_t t] converts the request [t] to an s-expression *)
val sexp_of_t : t -> Sexplib0.Sexp.t
(** [pp] formats the request [t] as an s-expression *)
val pp : Format.formatter -> t -> unit
[@@ocaml.toplevel_printer]
(** [pp_hum] formats the request... | 28.466667 | 66 | 0.676815 |
172d55cdf6b71ff665631ff9a9b0c2705d8137d4 | 3,066 | ml | OCaml | src/irmin-pack/pack_store_intf.ml | maiste/irmin | b5b8186ca9eeafb1fb5ea34fea3417d7e8931457 | [
"0BSD"
] | null | null | null | src/irmin-pack/pack_store_intf.ml | maiste/irmin | b5b8186ca9eeafb1fb5ea34fea3417d7e8931457 | [
"0BSD"
] | null | null | null | src/irmin-pack/pack_store_intf.ml | maiste/irmin | b5b8186ca9eeafb1fb5ea34fea3417d7e8931457 | [
"0BSD"
] | null | null | null | open! Import
(** A [Pack_store.S] is a closeable, persistent implementation of {!Indexable.S}
that uses an append-only file of variable-length data blocks.
Certain values in the data file are indexed by hash via a {!Pack_index.S}
implementation, but not all of them need be. *)
module type S = sig
includ... | 31.9375 | 80 | 0.666341 |
1747c6625055de14945a8d0efcb827804d48bcda | 19,179 | ml | OCaml | compiler/src/regalloc.ml | basavesh/jasmin | 8f6a1c147b1d4d411862b8ef4d55e827a4eeebf9 | [
"CECILL-B"
] | 88 | 2017-02-22T11:18:11.000Z | 2022-03-25T19:58:06.000Z | compiler/src/regalloc.ml | basavesh/jasmin | 8f6a1c147b1d4d411862b8ef4d55e827a4eeebf9 | [
"CECILL-B"
] | 72 | 2018-10-05T10:56:34.000Z | 2022-03-29T06:54:18.000Z | compiler/src/regalloc.ml | basavesh/jasmin | 8f6a1c147b1d4d411862b8ef4d55e827a4eeebf9 | [
"CECILL-B"
] | 22 | 2017-09-18T14:44:09.000Z | 2022-03-25T11:32:38.000Z | open Utils
open Expr
open Prog
open X86_decl
module IntSet = Sint
module IntMap = Mint
let fill_in_missing_names (f: 'info func) : 'info func =
let fresh_name : L.t -> ty -> ty gvar_i =
let count = ref 0 in
fun loc ty ->
let n = Printf.sprintf " _%d" !count in
incr count;
L.mk_loc loc (V.m... | 32.840753 | 143 | 0.604046 |
4447e5ab799e8fe2387db25b961442456a204a0d | 7,791 | ml | OCaml | src/lib/trust_system/trust_system.ml | mobileink/mina | 26ddf39370249a93011b1f1936066c5ed828716a | [
"Apache-2.0"
] | null | null | null | src/lib/trust_system/trust_system.ml | mobileink/mina | 26ddf39370249a93011b1f1936066c5ed828716a | [
"Apache-2.0"
] | null | null | null | src/lib/trust_system/trust_system.ml | mobileink/mina | 26ddf39370249a93011b1f1936066c5ed828716a | [
"Apache-2.0"
] | null | null | null | (** The trust system, instantiated with Coda-specific stuff. *)
open Core
open Async
module Actions = struct
type action =
| Incoming_connection_error
(** Connection error while peer connected to node. *)
| Outgoing_connection_error
(** Encountered connection error while connecting to a peer... | 44.267045 | 163 | 0.66795 |
aa71b4a5298c2b8b90b476716b13784887b0c033 | 113,766 | ml | OCaml | src/analysis/env_builder/__tests__/env_builder_refinement_test.ml | adithyaakrishna/flow | ebdd26fc67ac37fbbe73d7e701883dab1a8f7eb1 | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/analysis/env_builder/__tests__/env_builder_refinement_test.ml | adithyaakrishna/flow | ebdd26fc67ac37fbbe73d7e701883dab1a8f7eb1 | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/analysis/env_builder/__tests__/env_builder_refinement_test.ml | adithyaakrishna/flow | ebdd26fc67ac37fbbe73d7e701883dab1a8f7eb1 | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Test_utils
module ALocMap = Loc_collections.ALocMap
module ALocSet = Loc_collections.ALocSet
let jsx_mode = ref Options.Jsx_r... | 23.549162 | 184 | 0.381792 |
448aea5daf34c169b2e8c6ed90b5579c92b799a7 | 6,975 | ml | OCaml | src/instance/optimalcut.ml | aspire-project/uichisel | a50a182c4ff1921b81dc7e4d23af904ce9b23148 | [
"BSD-3-Clause"
] | 1 | 2021-12-03T11:49:18.000Z | 2021-12-03T11:49:18.000Z | src/instance/optimalcut.ml | aspire-project/uichisel | a50a182c4ff1921b81dc7e4d23af904ce9b23148 | [
"BSD-3-Clause"
] | null | null | null | src/instance/optimalcut.ml | aspire-project/uichisel | a50a182c4ff1921b81dc7e4d23af904ce9b23148 | [
"BSD-3-Clause"
] | null | null | null | open Graph
open Cil
open BasicDom
open Vocab
open Frontend
open IntraCfg
open ItvDom
open ArrayBlk
open AlarmExp
open Report
open Pretty
open Global
let string_of_inter_node pid2id node =
let pid = InterCfg.Node.get_pid node in
let cfgnode = InterCfg.Node.get_cfgnode node in
let node_str =
try
(* Printf.spr... | 43.59375 | 171 | 0.66552 |
171ecf5a46fcd8847d81726a7b82b993b0124f1f | 850 | ml | OCaml | eval/ocaml/ocamlbuild/test/test5/d.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | eval/ocaml/ocamlbuild/test/test5/d.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | eval/ocaml/ocamlbuild/test/test5/d.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (***********************************************************************)
(* *)
(* ocamlbuild *)
(* *)
(* Nicolas Pouillard, B... | 60.714286 | 73 | 0.274118 |
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.