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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
170c41ce4a5406bafcc9c23239bc53ca10760b67 | 11,117 | ml | OCaml | src/generators/templates/max.ml | kant/vult | 6cb50f5ab423ac93965e3df2fd605bb1f06a5ca1 | [
"MIT"
] | null | null | null | src/generators/templates/max.ml | kant/vult | 6cb50f5ab423ac93965e3df2fd605bb1f06a5ca1 | [
"MIT"
] | null | null | null | src/generators/templates/max.ml | kant/vult | 6cb50f5ab423ac93965e3df2fd605bb1f06a5ca1 | [
"MIT"
] | null | null | null | (*
The MIT License (MIT)
Copyright (c) 2014 Leonardo Laguna Ruiz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify,... | 34.417957 | 175 | 0.67878 |
177208b960ee0de05047671d10666185ce223146 | 12,778 | ml | OCaml | analysis/test/resolutionTest.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/test/resolutionTest.ml | skylerberg/pyre-check | e7967e5ee65dd09608f162cdb36a5b0919aeb5e3 | [
"MIT"
] | null | null | null | analysis/test/resolutionTest.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 OUnit2
open Analysis
open Ast
open Pyre
open Statement
open Test
let test_set_local context =
let assert_local ~resolution ... | 32.186398 | 99 | 0.670293 |
aa671f670ac0d0dec3b4de76cc8e71e46e82c6ec | 3,565 | ml | OCaml | libraries/cloudwatch/lib/deleteAnomalyDetector.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/cloudwatch/lib/deleteAnomalyDetector.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudwatch/lib/deleteAnomalyDetector.ml | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | open Types[@@ocaml.warning "-33"]
open Aws.BaseTypes[@@ocaml.warning "-33"]
open Aws
module DeleteAnomalyDetectorInput =
struct
type t =
{
namespace: String.t
[@ocaml.doc
"<p>The namespace associated with the anomaly detection model to delete.</p>"];
metric_name: String.t
... | 36.752577 | 97 | 0.568022 |
179ab4cea9732c488f63e4bc77a2b341b4c83aac | 2,102 | ml | OCaml | src/stubs_gen.ml | LaurentMazare/ocaml-rust-stubs | 0946cded2ff3ba9af5d9666dc177f2cd52aa4f8f | [
"Apache-2.0"
] | 3 | 2020-07-11T20:10:48.000Z | 2021-11-08T02:09:57.000Z | src/stubs_gen.ml | LaurentMazare/ocaml-rust-stubs | 0946cded2ff3ba9af5d9666dc177f2cd52aa4f8f | [
"Apache-2.0"
] | null | null | null | src/stubs_gen.ml | LaurentMazare/ocaml-rust-stubs | 0946cded2ff3ba9af5d9666dc177f2cd52aa4f8f | [
"Apache-2.0"
] | null | null | null | open Base
open Stdio
type t =
{ fns : Stubs_fn.t list
; prefix : string
}
let abstract_ml_types t =
List.fold
t.fns
~init:(Set.empty (module String))
~f:(fun acc fn -> Stubs_fn.abstract_ml_types fn |> List.fold ~init:acc ~f:Set.add)
|> Set.to_list
let p outc s =
Printf.ksprintf
(fun line ... | 33.903226 | 90 | 0.620837 |
177a725dff0f09fe6527f87325d0bab8642bef3d | 4,558 | mli | OCaml | menu.mli | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | 3 | 2021-03-15T17:57:46.000Z | 2021-09-29T13:11:36.000Z | menu.mli | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | menu.mli | rbardou/furypuyo | f90b8e2a10f285d21fa018dc7ecb1ef7d4432ea6 | [
"BSD-3-Clause"
] | null | null | null | (**************************************************************************)
(* Copyright (c) 2009, Romain BARDOU *)
(* All rights reserved. *)
(* *)
(* Redistrib... | 47.978947 | 79 | 0.599386 |
179514e0b5b49a44ab4acf6e70244f18c94889e6 | 27,211 | ml | OCaml | src/services/autocomplete/autocompleteService_js.ml | marcmenn/flow | 96e2ae6e50401594a2fbffcce883cf7349a5a15a | [
"MIT"
] | 1 | 2020-12-23T05:42:50.000Z | 2020-12-23T05:42:50.000Z | src/services/autocomplete/autocompleteService_js.ml | Miazzy/flow | 9ec27c7b6582d0e46a57508a2491130e7912e533 | [
"MIT"
] | null | null | null | src/services/autocomplete/autocompleteService_js.ml | Miazzy/flow | 9ec27c7b6582d0e46a57508a2491130e7912e533 | [
"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 Autocomplete_js
open Base.Result
open Parsing_heaps_utils
open Loc_collections
let autocomplete_suffix = "AUTO332"
let suffi... | 34.619593 | 113 | 0.632759 |
170c1723c3d1156e091c2619d14f78fa0ebfc3f4 | 11,751 | ml | OCaml | hphp/hack/src/typing/typing_extends.ml | lucynuri22/hhvm | 86e557f7922f8fafb06c2de1d0b0fc2f9592720d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_extends.ml | lucynuri22/hhvm | 86e557f7922f8fafb06c2de1d0b0fc2f9592720d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/typing_extends.ml | lucynuri22/hhvm | 86e557f7922f8fafb06c2de1d0b0fc2f9592720d | [
"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.
*
*)
(***********... | 43.202206 | 88 | 0.679517 |
177711a0b855629f1cc22b83b0c92d4e47d1ef32 | 1,642 | mli | OCaml | src/async/rpc_async.mli | CGenie/ocaml-rpc | 7edfdf0803ff58541b378bc1e51d0156f923c94b | [
"ISC"
] | null | null | null | src/async/rpc_async.mli | CGenie/ocaml-rpc | 7edfdf0803ff58541b378bc1e51d0156f923c94b | [
"ISC"
] | null | null | null | src/async/rpc_async.mli | CGenie/ocaml-rpc | 7edfdf0803ff58541b378bc1e51d0156f923c94b | [
"ISC"
] | null | null | null | type client_implementation
type server_implementation
module T : sig
type 'a box
type ('a, 'b) resultb = ('a, 'b) Result.result box
type rpcfn = Rpc.call -> Rpc.response Async.Deferred.t
val lift : ('a -> 'b Async.Deferred.t) -> 'a -> 'b box
val bind : 'a box -> ('a -> 'b Async.Deferred.t) -> 'b box
... | 25.65625 | 79 | 0.571255 |
bcd340e004e84d3112a2c82162557329ab0dc4c3 | 2,321 | ml | OCaml | src/view.ml | FungusHumungus/noughtsandcrosses | aaef255b889c2cf87dca63c738111bec96e89cb1 | [
"MIT"
] | null | null | null | src/view.ml | FungusHumungus/noughtsandcrosses | aaef255b889c2cf87dca63c738111bec96e89cb1 | [
"MIT"
] | null | null | null | src/view.ml | FungusHumungus/noughtsandcrosses | aaef255b889c2cf87dca63c738111bec96e89cb1 | [
"MIT"
] | null | null | null | open Tea.Html
open Model
open! Types
open! Board
let border_style top right bottom left =
(string_of_int top) ^ "px " ^
(string_of_int right) ^ "px " ^
(string_of_int bottom) ^ "px " ^
(string_of_int left) ^ "px"
let border_for_idx = function
| 0 -> border_style 0 1 1 0
| 1 -> border_st... | 33.157143 | 91 | 0.437742 |
17975e349254b1f32db790c7a9d8323d33961c81 | 9,001 | ml | OCaml | ast_printer/print_type.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | ast_printer/print_type.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | ast_printer/print_type.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 30.825342 | 129 | 0.587268 |
17219997734a5bc106275d3c0105d060db12e9e6 | 14,006 | ml | OCaml | src/proto_006_PsCARTHA/lib_client/client_proto_args.ml | osiz-blockchainapp/micashsymbol | ea83b92cdc6acd1f47a16769cc34fcfd9f54188b | [
"MIT"
] | null | null | null | src/proto_006_PsCARTHA/lib_client/client_proto_args.ml | osiz-blockchainapp/micashsymbol | ea83b92cdc6acd1f47a16769cc34fcfd9f54188b | [
"MIT"
] | null | null | null | src/proto_006_PsCARTHA/lib_client/client_proto_args.ml | osiz-blockchainapp/micashsymbol | ea83b92cdc6acd1f47a16769cc34fcfd9f54188b | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 31.124444 | 79 | 0.61645 |
17736c9d8a663741553be44ee46732b4b2745271 | 5,284 | ml | OCaml | examples/ping_pong_chain/pong.ml | Smarthab/HAB | dc8b58e73e9e78e264c228522b0a3a4e4104fa44 | [
"MIT"
] | 3 | 2018-07-10T12:51:22.000Z | 2020-11-16T18:14:07.000Z | examples/ping_pong_chain/pong.ml | Smarthab/HAB | dc8b58e73e9e78e264c228522b0a3a4e4104fa44 | [
"MIT"
] | 1 | 2018-07-18T07:09:35.000Z | 2018-07-26T16:41:43.000Z | examples/ping_pong_chain/pong.ml | Smarthab/HAB | dc8b58e73e9e78e264c228522b0a3a4e4104fa44 | [
"MIT"
] | null | null | null | open Batteries
open Ocaml_geth
open Basic (* for Bits and Bytes *)
open Contract
(* --------------------------------------------------------------------- *)
(* Some helpful functions *)
(* --------------------------------------------------------------------- *)
(* Read password from stdin in a stealthy manner *)
let... | 28.874317 | 113 | 0.571726 |
17af1856fed12aa49b17ba0913606bb2865e0c8f | 14,172 | ml | OCaml | src/lib/coda_base/signed_command.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/signed_command.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/signed_command.ml | milkey-mouse/mina | ebeee239b923519ff3c10fb5051de8aa2e018639 | [
"Apache-2.0"
] | null | null | null | [%%import
"/src/config.mlh"]
open Core_kernel
open Import
[%%ifndef
consensus_mechanism]
module Coda_numbers = Coda_numbers_nonconsensus.Coda_numbers
module Currency = Currency_nonconsensus.Currency
module Quickcheck_lib = Quickcheck_lib_nonconsensus.Quickcheck_lib
[%%endif]
open Coda_numbers
module Fee = Currency... | 33.424528 | 80 | 0.663985 |
178658a86fc7d10ed04c3505d8611895925be7f4 | 9,137 | ml | OCaml | src/csexp.ml | voodoos/csexp | 19a2e7bc171a707059c73d78dd18e4e3ff03ac9b | [
"MIT"
] | null | null | null | src/csexp.ml | voodoos/csexp | 19a2e7bc171a707059c73d78dd18e4e3ff03ac9b | [
"MIT"
] | null | null | null | src/csexp.ml | voodoos/csexp | 19a2e7bc171a707059c73d78dd18e4e3ff03ac9b | [
"MIT"
] | null | null | null | module type Sexp = sig
type t =
| Atom of string
| List of t list
end
module type Monad = sig
type 'a t
val return : 'a -> 'a t
val bind : 'a t -> ('a -> 'b t) -> 'b t
end
module Make (Sexp : Sexp) = struct
open Sexp
(* This is to keep compatibility with 4.02 without writing [Result.]
ever... | 27.356287 | 80 | 0.55423 |
17366045bef28001ad32f10fb10f2fdbc3a9473c | 2,769 | mli | OCaml | src/parser_utils/output/js_layout_generator.mli | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | 1 | 2018-12-18T19:19:16.000Z | 2018-12-18T19:19:16.000Z | src/parser_utils/output/js_layout_generator.mli | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | null | null | null | src/parser_utils/output/js_layout_generator.mli | skeggse/flow | 49ab125ee158a2ac8ca675cff7460606a938f568 | [
"MIT"
] | null | null | null | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module LocMap = Utils_js.LocMap
type expression_context = {
left: expression_context_left;
group: expression_context_group;
}
and e... | 40.130435 | 109 | 0.769231 |
aa96b191211646fbcef7f274aba1ef06df9f5ab6 | 192 | ml | OCaml | duniverse/owl/src/opencl/owl_opencl.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | 1 | 2019-11-17T23:16:15.000Z | 2019-11-17T23:16:15.000Z | duniverse/owl/src/opencl/owl_opencl.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/owl/src/opencl/owl_opencl.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>
*)
module Base = Owl_opencl_base
module Context = Owl_opencl_context
| 19.2 | 63 | 0.739583 |
170f2b7bb4c9b3c0657335beb16abb536455b2f3 | 1,132 | ml | OCaml | poly/lib/unused/walk.ml | tari3x/visuals | 0162874552e0cceb6ca4c6bdbcd71dff60005343 | [
"BSD-3-Clause"
] | 1 | 2017-04-17T15:49:38.000Z | 2017-04-17T15:49:38.000Z | poly/lib/unused/walk.ml | tari3x/visuals | 0162874552e0cceb6ca4c6bdbcd71dff60005343 | [
"BSD-3-Clause"
] | null | null | null | poly/lib/unused/walk.ml | tari3x/visuals | 0162874552e0cceb6ca4c6bdbcd71dff60005343 | [
"BSD-3-Clause"
] | null | null | null | open Core
open Std_internal
let degree = 15
let config =
Config.create
~grid_size:(10, 10)
~cbrange:(-15., 15.)
~image_width:1500
()
let set_value x =
List.map ~f:(fun p -> (p, x))
let grid_points =
Lines.all_points config
|> List.map ~f:Vector.Int.to_float
let grid =
set_value 0. grid_po... | 22.196078 | 63 | 0.608657 |
17aaafb5fec68c88180327f84689f9769e53c4bb | 154 | mli | OCaml | lib/electron_plumbing/Size.mli | joprice/ocamlectron | 1f8e4d10e5fc6ead5bfa8d9dfdc083c09c5e1c76 | [
"MIT"
] | null | null | null | lib/electron_plumbing/Size.mli | joprice/ocamlectron | 1f8e4d10e5fc6ead5bfa8d9dfdc083c09c5e1c76 | [
"MIT"
] | null | null | null | lib/electron_plumbing/Size.mli | joprice/ocamlectron | 1f8e4d10e5fc6ead5bfa8d9dfdc083c09c5e1c76 | [
"MIT"
] | null | null | null | (** Describe a Size *)
open Js
class type size = object
method width : int readonly_prop
method height : int readonly_prop
end
type t = size Js.t | 15.4 | 35 | 0.701299 |
aacec2b231c2953ecf15aab3896a6c3b11f5b3af | 7,131 | ml | OCaml | src/analyses/region.ml | michael-schwarz/analyzer | 962a62b5e17329cda7972721954aa13acc403bfd | [
"BSD-3-Clause",
"MIT"
] | 1 | 2020-11-13T21:01:31.000Z | 2020-11-13T21:01:31.000Z | src/analyses/region.ml | michael-schwarz/analyzer | 962a62b5e17329cda7972721954aa13acc403bfd | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/analyses/region.ml | michael-schwarz/analyzer | 962a62b5e17329cda7972721954aa13acc403bfd | [
"BSD-3-Clause",
"MIT"
] | null | null | null | (** Assigning static regions to dynamic memory. *)
open Prelude.Ana
open Analyses
module Equ = MusteqDomain.Equ
module RegMap = RegionDomain.RegMap
module RegPart = RegionDomain.RegPart
module Reg = RegionDomain.Reg
module BS = Base.Main
module Spec =
struct
include Analyses.DefaultSpec
module LD = RegionD... | 32.861751 | 108 | 0.607909 |
aa15d832e8e1f6d52dda89984001f208ee7573bc | 25,245 | ml | OCaml | src/services/inference/types_js.ml | TheLarkInn/flow | d59d8f70cebbbec39627dd1efa32877e45af5c78 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T01:42:05.000Z | 2018-10-10T01:42:05.000Z | src/services/inference/types_js.ml | TheLarkInn/flow | d59d8f70cebbbec39627dd1efa32877e45af5c78 | [
"BSD-3-Clause"
] | null | null | null | src/services/inference/types_js.ml | TheLarkInn/flow | d59d8f70cebbbec39627dd1efa32877e45af5c78 | [
"BSD-3-Clause"
] | 1 | 2018-10-10T01:42:06.000Z | 2018-10-10T01:42:06.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "flow" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
(* Th... | 35.556338 | 82 | 0.693365 |
172ad751934e432c71b596ea6d67e1b259217410 | 50,166 | ml | OCaml | src/common/reason.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | null | null | null | src/common/reason.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | 2 | 2021-05-09T02:43:12.000Z | 2021-09-02T14:09:40.000Z | src/common/reason.ml | mirek/flow | fa1268d9153ec372796d7bf0fb364e648f1eb51f | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Ast = Flow_ast
(* This module defines a general notion of trace, which is used in modules
Type_inference_js and Flow_js ... | 34.266393 | 118 | 0.671112 |
aaaf552897a1a50be1b6304581d3b4d221ff9409 | 199 | ml | OCaml | test/run_tests.ml | daleiz/osql | cf6d26b42935fb216d35bcdb32e49ed87c8700c7 | [
"MIT"
] | null | null | null | test/run_tests.ml | daleiz/osql | cf6d26b42935fb216d35bcdb32e49ed87c8700c7 | [
"MIT"
] | null | null | null | test/run_tests.ml | daleiz/osql | cf6d26b42935fb216d35bcdb32e49ed87c8700c7 | [
"MIT"
] | null | null | null | (*
Run all the OCaml test suites defined in the project.
*)
let test_suites: unit Alcotest.test list = [
"osql_parser_test", Test_parser.Test.tests;
]
let () = Alcotest.run "osql" test_suites
| 19.9 | 56 | 0.713568 |
17b2b288195eb781bc43e8aeb21d93e2688b3fdb | 3,656 | ml | OCaml | src/lib_base/tzPervasives.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_base/tzPervasives.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/lib_base/tzPervasives.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 39.311828 | 79 | 0.640044 |
173efbb79580c78d0a40bf06865b75843709b416 | 21,084 | ml | OCaml | infer/src/absint/TaintTrace.ml | hakjoooh/infer | 27150cb7d3d0dc3b37b631e023fb3e4ac5e6c14d | [
"MIT"
] | 2 | 2020-12-14T18:07:39.000Z | 2021-01-02T15:39:42.000Z | infer/src/absint/TaintTrace.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"MIT"
] | 8 | 2021-03-01T21:21:21.000Z | 2022-02-27T09:02:52.000Z | infer/src/absint/TaintTrace.ml | OSSSP/infer | 9111526a5ed474c4ab5fafaeb357eb5874a6a1f5 | [
"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 type Spec = sig
module Source : Source.S
module Sink : Sink.S
module Sanitizer : Sanit... | 37.516014 | 101 | 0.684026 |
179c48e6463c1bb3bfcffea3cd418c92d54531f0 | 2,681 | mli | OCaml | src/module.mli | exced/dune | 559c3f0cb770f08a0a4f4bddd6c9a16eea86caf9 | [
"MIT"
] | null | null | null | src/module.mli | exced/dune | 559c3f0cb770f08a0a4f4bddd6c9a16eea86caf9 | [
"MIT"
] | null | null | null | src/module.mli | exced/dune | 559c3f0cb770f08a0a4f4bddd6c9a16eea86caf9 | [
"MIT"
] | null | null | null | open! Stdune
open! Import
module Name : sig
type t
include Dune_lang.Conv with type t := t
val add_suffix : t -> string -> t
val to_sexp : t Sexp.Encoder.t
val compare : t -> t -> Ordering.t
val of_string : string -> t
val to_string : t -> string
val uncapitalize : t -> string
val pp : Format.fo... | 22.341667 | 79 | 0.642671 |
173c250776ee1f1b910f84d165df16276419c6fc | 28 | mli | OCaml | src/lib/coda_base/state_body_hash.mli | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | 1 | 2022-03-21T15:43:42.000Z | 2022-03-21T15:43:42.000Z | src/lib/coda_base/state_body_hash.mli | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/state_body_hash.mli | jl777/coda | 62472b5212aefee52c9b6c0d6c9b5f7abb16125d | [
"Apache-2.0"
] | null | null | null | include Data_hash.Full_size
| 14 | 27 | 0.892857 |
bcdc692ab5f3f9ba206a46c71bdff369c595221e | 135 | mli | OCaml | src/dune_engine/report_error.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 11 | 2020-07-14T13:57:02.000Z | 2020-09-05T23:50:25.000Z | src/dune_engine/report_error.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/dune_engine/report_error.mli | marsam/dune | 8a3d7f2f2015b71384caa07226d1a89dba9d6c25 | [
"MIT"
] | 1 | 2021-05-07T18:08:53.000Z | 2021-05-07T18:08:53.000Z | open Stdune
(** Same as {!Stdune.Report_error.report} but also print the dependency path *)
val report : Exn_with_backtrace.t -> unit
| 27 | 79 | 0.748148 |
177b35122841d1111982b6d6cba6261a32d8d8bf | 21,394 | ml | OCaml | src/owl/core/owl_ndarray_pool.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/owl/core/owl_ndarray_pool.ml | syther-labs/owl | f43835e643ac31b6ecedeb2a32fcd99bcc003140 | [
"MIT"
] | null | null | null | src/owl/core/owl_ndarray_pool.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 Bigarray
open Owl_core_types
external owl_float32_ndarray_maxpool_spatial
: ('a, 'b) owl_arr
-> ('a, 'b) owl_arr
-> int
-> int
-> int
-> int
-> int
-> int
-> int
-> int
-> int... | 19.170251 | 119 | 0.665187 |
aaec690821e25c6eb907efbb5ac4c921d14298d4 | 63,752 | ml | OCaml | analysis/analysisTypeCheck.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | analysis/analysisTypeCheck.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"MIT"
] | null | null | null | analysis/analysisTypeCheck.ml | mzlee/pyre-check | e31eedeedd88aa92890ffe38afdc6063d8b21ef8 | [
"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 Configuration
open Expression
open Pyre
open Statement
module Annotation = AnalysisAnnotation
module Cfg = Analysi... | 36.893519 | 100 | 0.497255 |
177b402d6166b86bd3681ae004081cb745690707 | 4,559 | ml | OCaml | src/proto_010_PtGRANAD/lib_protocol/test/test_constants.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_constants.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_constants.ml | bikallem/tezos | 34eb0fd5cb977cc04c3648d91d16e6210de8c8e3 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 47.989474 | 97 | 0.630621 |
17298d08bf0760be345bfb6ecbb101729818f858 | 762 | ml | OCaml | out/euler42.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 22 | 2017-04-24T10:00:45.000Z | 2021-04-01T10:11:05.000Z | out/euler42.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 12 | 2017-03-26T18:34:21.000Z | 2019-03-21T19:13:03.000Z | out/euler42.ml | Melyodas/metalang | 399a9f1a71402c979d7f8024d4f98f081c80e771 | [
"BSD-2-Clause"
] | 7 | 2017-10-14T13:33:33.000Z | 2021-03-18T15:18:50.000Z | let is_triangular n =
(*
n = k * (k + 1) / 2
n * 2 = k * (k + 1)
*)
let a = ((int_of_float (sqrt (float_of_int ( n * 2))))) in
a * (a + 1) = n * 2
let score () =
let len = Scanf.scanf " %d " (fun len -> len) in
let sum = ref( 0 ) in
for _i = 1 to len do
let c = Scanf.scanf "%c" (fun c -> c) in... | 22.411765 | 63 | 0.497375 |
170c7e32f6e7741c8670b35ecf6b606eeb70a533 | 4,397 | ml | OCaml | test/unit/test_source.ml | ocaml-opam/opam-compiler | 3019cf1b079691ac160c05bccf30faf90b925310 | [
"0BSD"
] | 11 | 2020-08-05T14:13:12.000Z | 2021-11-14T17:12:09.000Z | test/unit/test_source.ml | ocaml-opam/opam-compiler | 3019cf1b079691ac160c05bccf30faf90b925310 | [
"0BSD"
] | 13 | 2020-10-06T09:17:03.000Z | 2021-10-12T08:56:22.000Z | test/unit/test_source.ml | ocaml-opam/opam-compiler | 3019cf1b079691ac160c05bccf30faf90b925310 | [
"0BSD"
] | 1 | 2020-08-07T13:18:48.000Z | 2020-08-07T13:18:48.000Z | open Opam_compiler
let error =
let pp_error ppf = function `Unknown -> Format.fprintf ppf "Unknown" in
let equal_error = ( = ) in
Alcotest.testable pp_error equal_error
let parse_tests =
let test name s expected =
( name,
`Quick,
fun () ->
let got = Source.parse s in
Alcotest.(... | 35.459677 | 82 | 0.559018 |
177483f339e4b69fea7ed45ab1a01756ca93e279 | 152,765 | ml | OCaml | src/ocaml-output/FStar_TypeChecker_NBE.ml | W95Psp/FStar | 6a6a43d623d9ec13984f2d8dc2fe1b117a6fffa5 | [
"Apache-2.0"
] | 2,231 | 2015-01-05T02:19:24.000Z | 2022-03-30T05:54:05.000Z | src/ocaml-output/FStar_TypeChecker_NBE.ml | W95Psp/FStar | 6a6a43d623d9ec13984f2d8dc2fe1b117a6fffa5 | [
"Apache-2.0"
] | 2,151 | 2015-01-06T05:01:08.000Z | 2022-03-31T23:16:08.000Z | src/ocaml-output/FStar_TypeChecker_NBE.ml | W95Psp/FStar | 6a6a43d623d9ec13984f2d8dc2fe1b117a6fffa5 | [
"Apache-2.0"
] | 281 | 2015-02-13T00:14:17.000Z | 2022-03-13T12:51:04.000Z | open Prims
let (max : Prims.int -> Prims.int -> Prims.int) =
fun a -> fun b -> if a > b then a else b
let map_rev : 'a 'b . ('a -> 'b) -> 'a Prims.list -> 'b Prims.list =
fun f ->
fun l ->
let rec aux l1 acc =
match l1 with
| [] -> acc
| x::xs ->
let uu___ = let uu___1 ... | 47.813772 | 117 | 0.508664 |
bc96b3895a1d9b0ba7b38d9c1e4ef7668348c9c3 | 2,154 | mli | OCaml | libraries/s3/lib/getBucketMetricsConfiguration.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/s3/lib/getBucketMetricsConfiguration.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/s3/lib/getBucketMetricsConfiguration.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Gets a metrics configuration (specified by the metrics configuration ID) from the bucket. Note that this doesn't include the daily storage metrics.</p> <p> To use this operation, you must have permissions to perform the <code>s3:GetMetricsConfiguration</code> action. The bucket owner has this permission by defa... | 93.652174 | 1,416 | 0.748375 |
17226defeda923298b58635c75c7bde3db877f3f | 8,844 | mli | OCaml | hphp/hack/src/utils/sys/sys_utils.mli | leikahing/hhvm | 26617c88ca35c5e078c3aef12c061d7996925375 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/sys/sys_utils.mli | leikahing/hhvm | 26617c88ca35c5e078c3aef12c061d7996925375 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/utils/sys/sys_utils.mli | leikahing/hhvm | 26617c88ca35c5e078c3aef12c061d7996925375 | [
"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.
*
*)
external realpath : string -> string option = "hh_realpath"
external is_nfs : string -> bool = "hh_is_nfs"
external is_apple... | 29.777778 | 84 | 0.72829 |
17a457895ca362782d647a2c7e59334a12990c28 | 161 | ml | OCaml | duniverse/base/src/ppx_hash_lib.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | 1 | 2019-09-11T00:04:16.000Z | 2019-09-11T00:04:16.000Z | duniverse/base/src/ppx_hash_lib.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | duniverse/base/src/ppx_hash_lib.ml | mseri/owl_tutorials | d41b92d68fa98fc03742edbd1ca5105d6e0d53c9 | [
"MIT"
] | null | null | null | (** This module is for use by ppx_hash, and is thus not in the interface of Base. *)
module Std = struct
(** @canonical Base.Hash *)
module Hash = Hash
end
| 23 | 84 | 0.677019 |
17aac098632d6bfd08154ce1f64e5ab6f4ba17f2 | 12,741 | ml | OCaml | src/irmin/merge.ml | smorimoto/irmin | 6287d115dc615459f8a4bc711e5388c353f98017 | [
"0BSD"
] | null | null | null | src/irmin/merge.ml | smorimoto/irmin | 6287d115dc615459f8a4bc711e5388c353f98017 | [
"0BSD"
] | null | null | null | src/irmin/merge.ml | smorimoto/irmin | 6287d115dc615459f8a4bc711e5388c353f98017 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2013-2017 Thomas Gazagnaire <thomas@gazagnaire.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 29.022779 | 80 | 0.532219 |
4431373f3787b84c835521fd35c1fda468e0baa0 | 5,109 | ml | OCaml | corpus/utils.ml | mirage/mrmime | 9784a03cdbbda61f250ec5c0a995ae9263fbcf4a | [
"MIT"
] | 35 | 2019-01-14T18:14:54.000Z | 2021-09-16T19:00:08.000Z | corpus/utils.ml | mirage/mrmime | 9784a03cdbbda61f250ec5c0a995ae9263fbcf4a | [
"MIT"
] | 33 | 2018-12-04T13:38:14.000Z | 2022-03-01T18:01:44.000Z | corpus/utils.ml | mirage/mrmime | 9784a03cdbbda61f250ec5c0a995ae9263fbcf4a | [
"MIT"
] | 10 | 2019-01-14T17:54:49.000Z | 2021-07-28T13:46:39.000Z | (** Saving mails function *)
let generate_filename dir =
let time = Unix.gettimeofday () in
let millisec = (time -. floor time) *. 1000000. |> floor |> Int.of_float in
let time = time |> floor |> Int.of_float in
dir ^ "/" ^ Int.to_string time ^ Int.to_string millisec
let build_oc dst =
match dst with
| `St... | 28.541899 | 79 | 0.58074 |
1796aeb3530474718af18231e72c3f7f5416ecc1 | 3,857 | ml | OCaml | src/lib/pickles/types_map.ml | acoglio/coda | f6a4bda2f3ce93ebfe426891411e06539c44a5f2 | [
"Apache-2.0"
] | null | null | null | src/lib/pickles/types_map.ml | acoglio/coda | f6a4bda2f3ce93ebfe426891411e06539c44a5f2 | [
"Apache-2.0"
] | null | null | null | src/lib/pickles/types_map.ml | acoglio/coda | f6a4bda2f3ce93ebfe426891411e06539c44a5f2 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Pickles_types
open Zexe_backend
(* TODO: max_branching is a terrible name. It should be max_width. *)
(* We maintain a global hash table which stores for each inductive proof system some
data.
*)
module Data = struct
type f = Impls.Dlog_based.field
type ('a_var, 'a_value, 'max_branching,... | 34.4375 | 84 | 0.64195 |
44f66030bff17e06e0330dfab7825f4ee94ec2eb | 42,309 | ml | OCaml | infer/src/pulse/PulseModels.ml | andrecostea/infer | fac81e50e2a020d6c97b09c46eb32684ad318194 | [
"MIT"
] | 1 | 2020-07-16T19:38:04.000Z | 2020-07-16T19:38:04.000Z | infer/src/pulse/PulseModels.ml | joaofranciscomartins/infer | a54de2e0dd1efba9f1adafbc9e268e19a3eaf3eb | [
"MIT"
] | null | null | null | infer/src/pulse/PulseModels.ml | joaofranciscomartins/infer | a54de2e0dd1efba9f1adafbc9e268e19a3eaf3eb | [
"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
open IResult.Let_syntax
open PulseBasicInterface
open PulseDomainInterface
type arg_payload = AbstractValue.t * ValueHis... | 47.114699 | 101 | 0.696377 |
179b6386a46d3e91c150c47f77a5f23c0e3ad492 | 530 | ml | OCaml | pkg/pkg.ml | AestheticIntegration/ocaml-engineio-client | 6897da292ac6b384a05405c89a59e055f765c3e7 | [
"Apache-2.0"
] | 3 | 2017-02-15T10:46:35.000Z | 2018-03-13T01:40:16.000Z | pkg/pkg.ml | AestheticIntegration/ocaml-engineio-client | 6897da292ac6b384a05405c89a59e055f765c3e7 | [
"Apache-2.0"
] | null | null | null | pkg/pkg.ml | AestheticIntegration/ocaml-engineio-client | 6897da292ac6b384a05405c89a59e055f765c3e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
open Topkg
let examples =
Conf.key
"build-examples"
Conf.bool
~doc:"Build the example programs"
~absent:false
let () =
Pkg.describe "socketio-client" @@ fun c ->
let examples = Conf.value c examples in
Ok [ Pkg.mllib ~api:["Engineio_client";... | 25.238095 | 88 | 0.662264 |
1756c815d5986b6e5f86cdc61deb466c62a75e5f | 3,240 | ml | OCaml | src/syntax/semver.ml | wiltonlazary/haxe | 4b46713050c78940abf6c1ce19c8337de3744203 | [
"MIT"
] | 4,753 | 2015-01-03T00:45:27.000Z | 2022-03-31T07:41:28.000Z | src/syntax/semver.ml | wiltonlazary/haxe | 4b46713050c78940abf6c1ce19c8337de3744203 | [
"MIT"
] | 6,784 | 2015-01-01T01:06:28.000Z | 2022-03-31T22:12:14.000Z | src/syntax/semver.ml | wiltonlazary/haxe | 4b46713050c78940abf6c1ce19c8337de3744203 | [
"MIT"
] | 641 | 2015-01-02T23:54:43.000Z | 2022-03-30T07:44:13.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... | 28.421053 | 90 | 0.646605 |
177943d0d9d2321a793502341be53bb8ac8cc295 | 5,889 | ml | OCaml | data/seminal/20060323-21:50:16-0a01d9e97b5fb61deca9c42f7b87e874.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/seminal/20060323-21:50:16-0a01d9e97b5fb61deca9c42f7b87e874.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/seminal/20060323-21:50:16-0a01d9e97b5fb61deca9c42f7b87e874.seminal.ml | ucsd-progsys/nanoml | 0de06f2c3a41063b1bf87d5f6dd11ad830be0512 | [
"BSD-3-Clause"
] | 3 | 2016-10-11T21:36:24.000Z | 2021-12-08T21:52:40.000Z |
exception Unimplemented
exception AlreadyDone
(*** part a ***)
type move = Home | Forward of float
| Turn of float | For of int * (move)list
(*** part b -- return move***)
let makePoly sides len =
let fSides = float_of_int sides in
let turnAmount = (2.0 *. 3.1416) /. fSides in
let rec makeP... | 29.298507 | 81 | 0.431822 |
aabb86e9130a441d8239662414a9655b41036385 | 2,052 | ml | OCaml | httpRequest.ml | olleharstedt/lwt-websocket | 71a48bb15b9a3001864890b156b5f77c603bc882 | [
"MIT"
] | null | null | null | httpRequest.ml | olleharstedt/lwt-websocket | 71a48bb15b9a3001864890b156b5f77c603bc882 | [
"MIT"
] | null | null | null | httpRequest.ml | olleharstedt/lwt-websocket | 71a48bb15b9a3001864890b156b5f77c603bc882 | [
"MIT"
] | null | null | null | (*
httpRequest.ml
Copyright (c) 2012- Masaki WATANABE
license: see LICENSE
*)
open Utils
open ExtString
open Lwt
type http_request = {
path_args : string list;
get_args : (string * string) list;
input_header_fields : (string * string) list;
}
type t = http_request
let string_until c stream =
Lwt_stream... | 27 | 76 | 0.648635 |
171685e5ce8c6561630a5555dff8747241b2557d | 104 | mli | OCaml | lib/np/dtype.mli | lehy/ocaml-sklearn | 69ba7acb0e4192a6e63d50cb833eb1382744dce9 | [
"BSD-3-Clause"
] | 25 | 2020-04-15T23:41:23.000Z | 2021-10-14T01:57:48.000Z | lib/np/dtype.mli | lehy/ocaml-sklearn | 69ba7acb0e4192a6e63d50cb833eb1382744dce9 | [
"BSD-3-Clause"
] | 7 | 2020-12-08T01:16:36.000Z | 2021-05-26T08:54:53.000Z | lib/np/dtype.mli | lehy/ocaml-sklearn | 69ba7acb0e4192a6e63d50cb833eb1382744dce9 | [
"BSD-3-Clause"
] | 1 | 2020-04-15T23:41:28.000Z | 2020-04-15T23:41:28.000Z | type t = [`Object | `S of string]
val to_pyobject : t -> Py.Object.t
val of_pyobject : Py.Object.t -> t
| 26 | 34 | 0.653846 |
aad5f3007f3ec88648de94c5d9ed2dddee9845ed | 371 | ml | OCaml | data/sp14_min/0378.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14_min/0378.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0378.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n = match n with | 0 -> [] | _ -> x :: (clone ((x n) - 1));;
(* fix
let rec clone x n = match n with | 0 -> [] | _ -> x :: (clone x (n - 1));;
*)
(* changed spans
(2,56)-(2,75)
clone x (n - 1)
AppG [VarG,BopG EmptyG EmptyG]
*)
(* type error slice
(2,4)-(2,77)
(2,15)-(2,75)
(2,56)-(2,75)
(2,57)-(... | 13.740741 | 76 | 0.474394 |
17862ae87125d483ee13e188a79bfcf3471e0ade | 1,961 | ml | OCaml | libraries/ec2/lib/deleteLocalGatewayRouteTableVpcAssociation.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deleteLocalGatewayRouteTableVpcAssociation.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/deleteLocalGatewayRouteTableVpcAssociation.ml | UnrealAkama/ocaml-aws | 6947ff1acc4c911702d25b462bb6640cd70997d4 | [
"BSD-3-Clause"
] | null | null | null | open Types
open Aws
type input = DeleteLocalGatewayRouteTableVpcAssociationRequest.t
type output = DeleteLocalGatewayRouteTableVpcAssociationResult.t
type error = Errors_internal.t
let service = "ec2"
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn... | 28.014286 | 90 | 0.621622 |
aae4c8547869840b05c703f1e204e102109f2e8a | 233 | ml | OCaml | bootstrap/test/basis/u128/test_constants.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2021-08-13T04:54:39.000Z | 2021-08-13T04:54:39.000Z | bootstrap/test/basis/u128/test_constants.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | 1 | 2020-02-14T19:21:40.000Z | 2020-02-14T19:21:40.000Z | bootstrap/test/basis/u128/test_constants.ml | cevans87/Hemlock | 448c17ba6a59064820f3c15e50b13a0323ea1aa0 | [
"MIT"
] | null | null | null | open! Basis.Rudiments
open! Basis
open U128
open Format
let test () =
printf "zero=%a\n" pp_x zero;
printf "one=%a\n" pp_x one;
printf "min_value=%a\n" pp_x min_value;
printf "max_value=%a\n" pp_x max_value
let _ = test ()
| 17.923077 | 41 | 0.678112 |
175a16a7b2944627c732f473214f0dbc67415ea7 | 19,701 | ml | OCaml | src/lib/coda_base/sparse_ledger.ml | fakecoinbase/CodaProtocolslashcoda | 12522986fd93008c06665bd3bea5627eac95652d | [
"Apache-2.0"
] | 2 | 2020-11-14T20:16:02.000Z | 2021-08-19T12:44:52.000Z | src/lib/coda_base/sparse_ledger.ml | fakecoinbase/CodaProtocolslashcoda | 12522986fd93008c06665bd3bea5627eac95652d | [
"Apache-2.0"
] | 11 | 2021-09-02T10:10:36.000Z | 2022-02-27T08:56:41.000Z | src/lib/coda_base/sparse_ledger.ml | fakecoinbase/CodaProtocolslashcoda | 12522986fd93008c06665bd3bea5627eac95652d | [
"Apache-2.0"
] | null | null | null | open Core
open Import
open Snark_params.Tick
[%%versioned
module Stable = struct
module V1 = struct
type t =
( Ledger_hash.Stable.V1.t
, Account_id.Stable.V1.t
, Account.Stable.V1.t
, Token_id.Stable.V1.t )
Sparse_ledger_lib.Sparse_ledger.T.Stable.V1.t
[@@deriving to_yojson, sex... | 36.687151 | 82 | 0.640171 |
1786f6491aece30321b52a6af487208df41fcb4c | 62,449 | ml | OCaml | test/test.ml | kit-ty-kate/capnp-rpc | fddf3fa2c8db19cca24282ea16abc2e6f5937e0c | [
"Apache-2.0"
] | 78 | 2017-05-17T19:10:16.000Z | 2022-03-30T19:47:06.000Z | test/test.ml | kit-ty-kate/capnp-rpc | fddf3fa2c8db19cca24282ea16abc2e6f5937e0c | [
"Apache-2.0"
] | 82 | 2017-05-17T18:59:50.000Z | 2022-02-28T15:13:28.000Z | test/test.ml | kit-ty-kate/capnp-rpc | fddf3fa2c8db19cca24282ea16abc2e6f5937e0c | [
"Apache-2.0"
] | 20 | 2017-05-23T14:45:07.000Z | 2021-11-29T15:26:28.000Z | open Astring
module Core_types = Testbed.Capnp_direct.Core_types
module Request = Testbed.Capnp_direct.String_content.Request
module Response = Testbed.Capnp_direct.String_content.Response
module Test_utils = Testbed.Test_utils
module Services = Testbed.Services
module CS = Testbed.Connection.Pair ( ) (* A client-s... | 38.668111 | 124 | 0.685567 |
bc8056198d30e135bd61901f05efed7039f737de | 3,734 | ml | OCaml | hack/server/serverConfig.ml | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | 1 | 2021-06-26T03:44:58.000Z | 2021-06-26T03:44:58.000Z | hack/server/serverConfig.ml | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | null | null | null | hack/server/serverConfig.ml | ASSETLID/Aych.flow | ad9ff08d0bdcca0b6c51c63af902d798ca38c839 | [
"BSD-3-Clause"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Core
ope... | 34.574074 | 80 | 0.750402 |
aa431847e1647817dc693b6e28e188235d133df5 | 3,076 | ml | OCaml | data/sp14_min/0645.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/0645.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/0645.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec clone x n =
match n with | n when n <= 0 -> [] | _ -> x :: (clone x (n - 1));;
let rec padZero l1 l2 =
if (List.length l1) > (List.length l2)
then (l1, ((clone 0 ((List.length l1) - (List.length l2))) @ l2))
else (((clone 0 ((List.length l2) - (List.length l1))) @ l1), l2);;
let rec removeZero l =
... | 26.290598 | 79 | 0.509103 |
176d34b38275e8a4f28c81de38573b7888cb7274 | 1,293 | ml | OCaml | src/utils.ml | LaurentMazare/ocaml-tqdm | a69e02408007038c2cb0cbb4793f564d5725a2ec | [
"Apache-2.0"
] | 19 | 2019-12-08T05:28:58.000Z | 2022-01-15T00:38:36.000Z | src/utils.ml | LaurentMazare/ocaml-tqdm | a69e02408007038c2cb0cbb4793f564d5725a2ec | [
"Apache-2.0"
] | null | null | null | src/utils.ml | LaurentMazare/ocaml-tqdm | a69e02408007038c2cb0cbb4793f564d5725a2ec | [
"Apache-2.0"
] | null | null | null | open Base
let format_rate rate =
match Float.classify rate with
| Infinite | Nan | Zero -> "n/a"
| Normal | Subnormal ->
if Float.( < ) rate 1e-3
then Printf.sprintf "s/%5.0fit" (1. /. rate)
else if Float.( < ) rate 1.
then Printf.sprintf "s/%5.2fit" (1. /. rate)
else if Float.( < ) rate 1e3
... | 27.510638 | 74 | 0.58314 |
aaa81403aa5c016013b558f99141ab45852b9cc7 | 1,670 | ml | OCaml | src/lint/lint_unresolved_member.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 23 | 2019-10-31T11:55:18.000Z | 2021-12-17T10:18:45.000Z | src/lint/lint_unresolved_member.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 29 | 2019-11-27T09:57:52.000Z | 2021-12-13T13:34:56.000Z | src/lint/lint_unresolved_member.ml | Lupus590/illuaminate | 6edf501198f1a71221431300628f964773d93efd | [
"BSD-3-Clause"
] | 3 | 2020-10-11T21:43:58.000Z | 2021-05-30T14:38:43.000Z | open IlluaminateCore.Syntax
open IlluaminateCore
open IlluaminateSemantics
open! Linter
module R = Module_resolve
module SSet = Set.Make (String)
let options : SSet.t IlluaminateConfig.Category.key =
let open IlluaminateConfig in
let open Term in
category
|> Category.add
@@ let+ f =
field ~name:... | 35.531915 | 98 | 0.64491 |
1706ebabc16b880f35993b9c4380f7c6fc5eb291 | 54 | mli | OCaml | src/pad.mli | schubev/human-factory | a5f455d598f0288d71026917a0816483b4cee9a7 | [
"MIT"
] | 2 | 2019-12-19T10:47:44.000Z | 2020-11-03T14:10:20.000Z | src/pad.mli | schubev/human-factory | a5f455d598f0288d71026917a0816483b4cee9a7 | [
"MIT"
] | 2 | 2021-05-08T11:26:11.000Z | 2021-05-10T19:19:14.000Z | src/pad.mli | schubev/human-factory | a5f455d598f0288d71026917a0816483b4cee9a7 | [
"MIT"
] | null | null | null | val left : ?padWith:string -> int -> string -> string
| 27 | 53 | 0.648148 |
175b5c59203a1cfc7fcfe3c2a4de103b02111693 | 13,569 | ml | OCaml | src/parser_utils/ast_builder.ml | segmentationfaulter/flow | 3dddd0603fef8034949c3a04b24688125d1a2d71 | [
"MIT"
] | 1 | 2019-03-28T12:09:30.000Z | 2019-03-28T12:09:30.000Z | src/parser_utils/ast_builder.ml | segmentationfaulter/flow | 3dddd0603fef8034949c3a04b24688125d1a2d71 | [
"MIT"
] | null | null | null | src/parser_utils/ast_builder.ml | segmentationfaulter/flow | 3dddd0603fef8034949c3a04b24688125d1a2d71 | [
"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 Identifiers = struct
let identifier ?(loc=Loc.none) name = Flow_ast_utils.ident_of_source (loc, na... | 29.497826 | 97 | 0.677132 |
179a81ebb93c193a5f91f0825720cfa657d22c92 | 5,918 | ml | OCaml | src/irmin-pack/mem/irmin_pack_mem.ml | gpetiot/irmin | 0619381cd2910bf0b0c25ec03d8ddcdd81bba419 | [
"0BSD"
] | null | null | null | src/irmin-pack/mem/irmin_pack_mem.ml | gpetiot/irmin | 0619381cd2910bf0b0c25ec03d8ddcdd81bba419 | [
"0BSD"
] | null | null | null | src/irmin-pack/mem/irmin_pack_mem.ml | gpetiot/irmin | 0619381cd2910bf0b0c25ec03d8ddcdd81bba419 | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2018-2021 Tarides <contact@tarides.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" AN... | 31.989189 | 78 | 0.616593 |
1787e1012f1521cd708fa863bf1a5174b22d50c4 | 1,852 | mli | OCaml | libraries/ec2/lib/runScheduledInstances.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T19:12:04.000Z | 2020-05-21T19:12:04.000Z | libraries/ec2/lib/runScheduledInstances.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | libraries/ec2/lib/runScheduledInstances.mli | anmonteiro/ocaml-aws | 81cc543a76731177f6d1be8953537297212030d8 | [
"BSD-3-Clause"
] | null | null | null | (** "<p>Launches the specified Scheduled Instances.</p> <p>Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using <a>PurchaseScheduledInstances</a>.</p> <p>You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but y... | 57.875 | 686 | 0.724622 |
1732ad294b9b565e06825ba0f2bd3cd5beede671 | 10,642 | ml | OCaml | sihl-email/src/sihl_email_template_repo.ml | emilgoldsmith/sihl | 588f9bc59b1f2d3c72fbde10bd1867caf7a1986c | [
"MIT"
] | null | null | null | sihl-email/src/sihl_email_template_repo.ml | emilgoldsmith/sihl | 588f9bc59b1f2d3c72fbde10bd1867caf7a1986c | [
"MIT"
] | null | null | null | sihl-email/src/sihl_email_template_repo.ml | emilgoldsmith/sihl | 588f9bc59b1f2d3c72fbde10bd1867caf7a1986c | [
"MIT"
] | null | null | null | module type Sig = sig
val register_migration : unit -> unit
val register_cleaner : unit -> unit
val get : string -> Sihl_contract.Email_template.t option Lwt.t
val get_by_label : string -> Sihl_contract.Email_template.t option Lwt.t
val insert : Sihl_contract.Email_template.t -> unit Lwt.t
val update : Sihl... | 25.520384 | 80 | 0.607029 |
175c18ebaff8fb5fb34b1c3fe97b998576013747 | 358 | ml | OCaml | tools/test-generator/templates/ocaml/anagram/test.ml | bcc32/exercism-ocaml | b535bccf069695ee9f6d607cad5dd10734066893 | [
"MIT"
] | null | null | null | tools/test-generator/templates/ocaml/anagram/test.ml | bcc32/exercism-ocaml | b535bccf069695ee9f6d607cad5dd10734066893 | [
"MIT"
] | null | null | null | tools/test-generator/templates/ocaml/anagram/test.ml | bcc32/exercism-ocaml | b535bccf069695ee9f6d607cad5dd10734066893 | [
"MIT"
] | null | null | null | open Core
open OUnit2
open Anagram
let ae exp got _test_ctxt =
let printer = List.to_string ~f:String.to_string in
assert_equal exp got ~cmp:(List.equal ~equal:String.equal) ~printer
let tests = [
(* TEST
"$description" >::
ae $expected (anagrams $subject $candidates);
END TEST *)
]
let () =
run_test_... | 19.888889 | 69 | 0.687151 |
aa0ec0f57351240e6078f7a324c329e49e877894 | 2,488 | ml | OCaml | hphp/hack/src/typing/nast_check_env.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nast_check_env.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/nast_check_env.ml | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"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
module SN = Naming_special_names
type control_context =
| Toplevel
| LoopContext
| ... | 24.392157 | 73 | 0.714228 |
177bc08a1d6d76cf20be1fe286847eb6f33f6ea5 | 2,582 | ml | OCaml | example/mirage/unikernel.ml | smorimoto/postgres-protocol | e3e1743c138e527a2285dfd1eb240f49fd764b25 | [
"BSD-3-Clause"
] | 22 | 2020-09-27T00:28:42.000Z | 2022-03-09T09:27:59.000Z | example/mirage/unikernel.ml | smorimoto/postgres-protocol | e3e1743c138e527a2285dfd1eb240f49fd764b25 | [
"BSD-3-Clause"
] | 6 | 2020-09-28T02:56:00.000Z | 2021-05-23T20:30:54.000Z | example/mirage/unikernel.ml | smorimoto/postgres-protocol | e3e1743c138e527a2285dfd1eb240f49fd764b25 | [
"BSD-3-Clause"
] | 1 | 2021-05-23T18:36:03.000Z | 2021-05-23T18:36:03.000Z | module Make
(STACK : Mirage_stack.V4)
(TIME : Mirage_time.S)
(RANDOM : Mirage_random.S)
(MCLOCK : Mirage_clock.MCLOCK)
(PCLOCK : Mirage_clock.PCLOCK) =
struct
module Logs_reporter = Mirage_logs.Make (PCLOCK)
module PG = Postgres_mirage.Make (STACK) (TIME) (MCLOCK) (RANDOM)
let make_parameters... | 32.275 | 86 | 0.618513 |
aa8c32a2a87e390b0d02aa665ea30ac7373f00af | 2,319 | ml | OCaml | lib/request.ml | clecat/ocaml-h2 | 8ca6c696bc45eecc401c82416d230ca7e410036a | [
"BSD-3-Clause"
] | null | null | null | lib/request.ml | clecat/ocaml-h2 | 8ca6c696bc45eecc401c82416d230ca7e410036a | [
"BSD-3-Clause"
] | null | null | null | lib/request.ml | clecat/ocaml-h2 | 8ca6c696bc45eecc401c82416d230ca7e410036a | [
"BSD-3-Clause"
] | null | null | null | (*----------------------------------------------------------------------------
* Copyright (c) 2017 Inhabited Type LLC.
* Copyright (c) 2019 Antonio N. Monteiro.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... | 39.982759 | 79 | 0.67141 |
171870fb78cc04c111f220c52e3361b44a896835 | 532 | ml | OCaml | simulator/lib/size.ml | mce-alves/MOBS | 81301b916e60b5ac2fd1c02df3524e09752008be | [
"MIT"
] | 1 | 2021-09-09T11:22:28.000Z | 2021-09-09T11:22:28.000Z | simulator/lib/size.ml | mce-alves/MOBS | 81301b916e60b5ac2fd1c02df3524e09752008be | [
"MIT"
] | null | null | null | simulator/lib/size.ml | mce-alves/MOBS | 81301b916e60b5ac2fd1c02df3524e09752008be | [
"MIT"
] | null | null | null | type t =
| Bit of int
| Byte of int
| Kilobyte of int
| Megabyte of int
| Gigabyte of int
let to_bits (s:t) : int =
match s with
| Bit(n) -> n
| Byte(n) -> 8*n
| Kilobyte(n) -> 8192*n
| Megabyte(n) -> 8388608*n
| Gigabyte(n) -> 8589934592*n
let to_megabytes (s:t) : float =
match s with
| Bi... | 21.28 | 45 | 0.578947 |
179cce64cb9411934ad02f7e6562402d16b61aca | 1,667 | ml | OCaml | data/fa15_min/2636.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15_min/2636.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/2636.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then removeZero t else l;;
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let rec mulByDigit i l =
let f a x =
let y = i * x in
match a with
| h::t -> ((h + y) / 10) :: ((h + y) mod 10) :: t
| _ -> [y / 10; y m... | 22.835616 | 77 | 0.536293 |
bcbe0865fe55a120fee9421387765186f405cd81 | 3,767 | ml | OCaml | bspacks/refmtJsApi.ml | mikaelbr/reason | fbbd689d7b777340160deb14be09305ddca3d803 | [
"MIT"
] | 1 | 2018-02-28T07:06:04.000Z | 2018-02-28T07:06:04.000Z | bspacks/refmtJsApi.ml | martina6hall/reason | fbbd689d7b777340160deb14be09305ddca3d803 | [
"MIT"
] | null | null | null | bspacks/refmtJsApi.ml | martina6hall/reason | fbbd689d7b777340160deb14be09305ddca3d803 | [
"MIT"
] | 1 | 2018-02-28T07:06:15.000Z | 2018-02-28T07:06:15.000Z | module RE = Refmt_api.Reason_toolchain.RE
module ML = Refmt_api.Reason_toolchain.ML
let locationToJsObj (loc: Location.t) =
let (file, start_line, start_char) = Location.get_pos_info loc.loc_start in
let (_, end_line, end_char) = Location.get_pos_info loc.loc_end in
(* The right way of handling ocaml syntax erro... | 38.835052 | 136 | 0.717547 |
aaf26ed22ed11e41c5beb41056d83a36711e174b | 513 | ml | OCaml | plugins/x86/x86_endbr.ml | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | plugins/x86/x86_endbr.ml | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | plugins/x86/x86_endbr.ml | aoidos-bin/bap | d3d8537db19f33bb65508e28458c2897f70df9a7 | [
"MIT-CMU",
"MIT"
] | null | null | null | open Core_kernel
open Bap.Std
open X86_asm.Reg
module IA32 = X86_backend.IA32
module AMD64 = X86_backend.AMD64
type endbr = [ `ENDBR32 | `ENDBR64 ] [@@deriving bin_io, sexp, compare, enumerate]
let lift _mem _insn = Ok [ Bil.special "end-of-branch" ]
let () =
Bap_main.Extension.declare @@ fun _ctxt ->
let name... | 28.5 | 82 | 0.701754 |
8a8606df9fde9fe9c2597c8f1ec97e7f038bd48b | 3,517 | ml | OCaml | hphp/hack/src/client/clientCheckStatus.ml | Majkl578/hhvm | fe70efe4efa8318536ea1d4940362e83e641d905 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-05-31T17:15:47.000Z | 2015-05-31T17:15:47.000Z | hphp/hack/src/client/clientCheckStatus.ml | Majkl578/hhvm | fe70efe4efa8318536ea1d4940362e83e641d905 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientCheckStatus.ml | Majkl578/hhvm | fe70efe4efa8318536ea1d4940362e83e641d905 | [
"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 ClientEnv... | 34.145631 | 80 | 0.674723 |
1758f06d503c620a1c211f20c876d703926ee74e | 51,240 | ml | OCaml | artifact/monpoly_no_errprobs/src/rewriting.ml | anon467308/hashmon | 1d8fa619097a3fffd7f50600923bb5ce13cd9d0f | [
"MIT"
] | null | null | null | artifact/monpoly_no_errprobs/src/rewriting.ml | anon467308/hashmon | 1d8fa619097a3fffd7f50600923bb5ce13cd9d0f | [
"MIT"
] | null | null | null | artifact/monpoly_no_errprobs/src/rewriting.ml | anon467308/hashmon | 1d8fa619097a3fffd7f50600923bb5ce13cd9d0f | [
"MIT"
] | 1 | 2021-11-02T09:29:23.000Z | 2021-11-02T09:29:23.000Z | (*
* This file is part of MONPOLY.
*
* Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
* Contact: Nokia Corporation (Debmalya Biswas: debmalya.biswas@nokia.com)
*
* Copyright (C) 2012 ETH Zurich.
* Contact: ETH Zurich (Eugen Zalinescu: eugen.zalinescu@inf.ethz.ch)
*
*
* This library is fre... | 33.644123 | 324 | 0.593599 |
171a727dc6998015fa35cf1c1bc633be4bbbd086 | 298 | mli | OCaml | vendors/Preprocessor/ModuleResolutions.mli | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | vendors/Preprocessor/ModuleResolutions.mli | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | vendors/Preprocessor/ModuleResolutions.mli | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | (* Module for resolving paths to external libraies *)
type t
val make : string -> t option
val get_root_inclusion_list : t option -> string list
val get_inclusion_list : file:string -> t option -> string list
val find_external_file : file:string -> inclusion_list:string list -> string option
| 24.833333 | 83 | 0.751678 |
aa5c1ca3c1aeeae44dbd783cb991039927210f38 | 1,179 | mli | OCaml | upstream/ocaml_412/typing/rec_check.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 1,031 | 2016-12-16T19:17:17.000Z | 2022-03-24T06:30:52.000Z | upstream/ocaml_412/typing/rec_check.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 754 | 2016-12-16T14:01:33.000Z | 2022-03-31T13:21:16.000Z | upstream/ocaml_412/typing/rec_check.mli | pereb4ik/merlin | f3565d0ef89cf8df9bc3f10a15dc12069658f45b | [
"MIT"
] | 177 | 2017-01-04T17:35:53.000Z | 2022-02-18T02:54:14.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 58.95 | 80 | 0.301103 |
aa9333e518f025fb1afec8487e0188b08e9363f9 | 21,540 | ml | OCaml | cil/src/zrapp.ml | petr-muller/abductor | 4c9199378e847e22660daab5e5843805d4035d0a | [
"Intel",
"Unlicense"
] | null | null | null | cil/src/zrapp.ml | petr-muller/abductor | 4c9199378e847e22660daab5e5843805d4035d0a | [
"Intel",
"Unlicense"
] | null | null | null | cil/src/zrapp.ml | petr-muller/abductor | 4c9199378e847e22660daab5e5843805d4035d0a | [
"Intel",
"Unlicense"
] | null | null | null |
open Escape
open Pretty
open Trace
open Cil
module E = Errormsg
module H = Hashtbl
module IH = Inthash
module M = Machdep
module U = Util
module RD = Reachingdefs
module UD = Usedef
module A = Cabs
module CH = Cabshelper
module GA = GrowArray
module RCT = Rmciltmps
module DCE = Deadcodeelim
module EC = Expcompare
le... | 33.292117 | 109 | 0.555525 |
aaedb7a41a6559000ce457ec5d168e998f5091f7 | 6,780 | ml | OCaml | ml/compiler.ml | 0918nobita/9cc | f15b189eba25baf2e7f261a4d995692eb9f7511d | [
"CC0-1.0"
] | 4 | 2019-02-08T11:59:05.000Z | 2019-05-27T10:25:48.000Z | ml/compiler.ml | 0918nobita/9cc | f15b189eba25baf2e7f261a4d995692eb9f7511d | [
"CC0-1.0"
] | null | null | null | ml/compiler.ml | 0918nobita/9cc | f15b189eba25baf2e7f261a4d995692eb9f7511d | [
"CC0-1.0"
] | null | null | null | type ast =
Str of string
| Char of char
| Int of int
| Add of (ast * ast)
| Sub of (ast * ast)
| Mul of (ast * ast)
| Div of (ast * ast)
let rec show_ast = function
Str str -> "Str(" ^ str ^ " )"
| Char c -> "Char(" ^ (Char.escaped c) ^ ")"
| Int i -> "Int(" ^ (string_of_int i) ^ ")"
| Add (l... | 33.399015 | 98 | 0.590855 |
1792a05329633335564d7e99c4ea1434fc063d94 | 1,027 | ml | OCaml | src/typing/polarity/polarity.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/typing/polarity/polarity.ml | https-justin3687-business-site/flow | e19583bb56f7cb385941f0f9cc34e5d09c38d222 | [
"MIT"
] | null | null | null | src/typing/polarity/polarity.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.
*)
type t =
| Negative
| Neutral
| Positive
[@@deriving show]
(* Subtype relation for polarities, interpreting neutral as posi... | 21.851064 | 75 | 0.64557 |
1765759332a299bfcd5c812746252fe5742c5b54 | 2,492 | ml | OCaml | src/dune/lib_archives.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 11 | 2020-07-14T13:57:02.000Z | 2020-09-05T23:50:25.000Z | src/dune/lib_archives.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2020-07-27T17:35:13.000Z | 2020-09-21T11:17:06.000Z | src/dune/lib_archives.ml | greedy/dune | 1ce1ceaa5eb43a033ee13fb5adb4a4ef135fb9e0 | [
"MIT"
] | 1 | 2020-10-05T13:41:44.000Z | 2020-10-05T13:41:44.000Z | open Stdune
type t =
{ dll_files : Path.Build.t list
; lib_files : Path.Build.t list
}
let lib_files t = t.lib_files
let dll_files t = t.dll_files
let has_native_archive lib config contents =
Lib_config.linker_can_create_empty_archives config
||
let name = Dune_file.Library.best_name lib in
let ml_sou... | 30.765432 | 79 | 0.635233 |
aaea7586ebd323848b3a9c3bc2173c703d805a0d | 528 | ml | OCaml | lib/grpc/server.ml | ansiwen/ocaml-grpc | 9d3417991a1af71e18156ff9847e03539c218533 | [
"BSD-3-Clause"
] | 20 | 2021-09-11T08:11:32.000Z | 2022-03-13T17:17:20.000Z | lib/grpc/server.ml | ansiwen/ocaml-grpc | 9d3417991a1af71e18156ff9847e03539c218533 | [
"BSD-3-Clause"
] | 8 | 2022-03-16T19:17:04.000Z | 2022-03-28T18:38:37.000Z | lib/grpc/server.ml | ansiwen/ocaml-grpc | 9d3417991a1af71e18156ff9847e03539c218533 | [
"BSD-3-Clause"
] | 3 | 2022-03-13T22:12:48.000Z | 2022-03-30T19:40:15.000Z | (** The type of a Server *)
module type S = sig
type t
(** [t] represents a server and its associated services and routing information. *)
val v : unit -> t
(** [v ()] creates a new server. *)
val add_service : name:string -> service:(H2.Reqd.t -> unit) -> t -> t
(** [add_service ~name ~service t] adds [s... | 35.2 | 105 | 0.638258 |
aad4913d658cb1d7d6381985337590ddf81569bd | 1,144 | ml | OCaml | bin/dowsindex/Convs.ml | kit-ty-kate/dowsing | c8f1b67af16498158c60818c062ae9fd2e3f02d8 | [
"ISC"
] | 29 | 2017-02-06T16:56:34.000Z | 2021-12-13T19:05:06.000Z | bin/dowsindex/Convs.ml | kit-ty-kate/dowsing | c8f1b67af16498158c60818c062ae9fd2e3f02d8 | [
"ISC"
] | 13 | 2017-07-27T00:04:16.000Z | 2021-11-04T14:26:14.000Z | bin/dowsindex/Convs.ml | kit-ty-kate/dowsing | c8f1b67af16498158c60818c062ae9fd2e3f02d8 | [
"ISC"
] | 2 | 2021-01-03T20:47:32.000Z | 2021-09-14T12:04:41.000Z | let env = Type.Env.make Query
open Cmdliner
let typ =
let parse str =
try Ok (Type.of_string env str)
with Invalid_argument _ -> Error (`Msg "ill-formed type")
in
Arg.conv (parse, Type.pp)
let scheme =
let parse str =
try Ok Scheme.(to_type @@ of_string env str)
with Invalid_argument _ -> Err... | 23.833333 | 69 | 0.646853 |
17a9ca4fec99cd826cb99d8b374c2ef70454cc36 | 617 | ml | OCaml | src/languages/tptp/v6.3.0/dolmen_tptp_v6_3_0.ml | hra687261/dolmen | decc525cca878fd19c7c33f7370aa61840ee54af | [
"BSD-2-Clause"
] | null | null | null | src/languages/tptp/v6.3.0/dolmen_tptp_v6_3_0.ml | hra687261/dolmen | decc525cca878fd19c7c33f7370aa61840ee54af | [
"BSD-2-Clause"
] | null | null | null | src/languages/tptp/v6.3.0/dolmen_tptp_v6_3_0.ml | hra687261/dolmen | decc525cca878fd19c7c33f7370aa61840ee54af | [
"BSD-2-Clause"
] | null | null | null |
(* This file is free software, part of dolmen. See file "LICENSE" formore information *)
module type Id = Ast.Id
module type Term = Ast.Term
module type Statement = Ast.Statement
module Make
(L : Dolmen_intf.Location.S)
(I : Id)
(T : Term with type location := L.t and type id := I.t)
(S : Statement w... | 29.380952 | 88 | 0.654781 |
17b99fed6d9e610ccb79243a0754de4e0a33be26 | 9,763 | ml | OCaml | src/commands/autofixCommand.ml | dylanirlbeck/flow | 33e628317b950f99e23648b722254cc377ae280f | [
"MIT"
] | null | null | null | src/commands/autofixCommand.ml | dylanirlbeck/flow | 33e628317b950f99e23648b722254cc377ae280f | [
"MIT"
] | null | null | null | src/commands/autofixCommand.ml | dylanirlbeck/flow | 33e628317b950f99e23648b722254cc377ae280f | [
"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 CommandUtils
open CommandSpec
(* This module implements the flow command `autofix insert-type` which inserts
a type annota... | 34.992832 | 255 | 0.618457 |
aac67e4a6ca1de284d974126bbf69fd9acb63bf5 | 4,268 | ml | OCaml | src/stages/typesystem/types.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/stages/typesystem/types.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | src/stages/typesystem/types.ml | DiningPhilosophersCo/ligo | 31e66141c8a6fc8442769a1b851c73610288281d | [
"MIT"
] | null | null | null | (* TODO: remove these and use the proper qualification where needed *)
type unionfind = Ast_core.unionfind
type constant_tag = Ast_core.constant_tag
type accessor = Ast_core.label
type type_value = Ast_core.type_value
type p_constraints = ... | 55.428571 | 217 | 0.648547 |
aa5d1a1947777d5d838f92f7089b93f3eae23bc9 | 6,540 | ml | OCaml | src/cstubs/cstubs_inverted.ml | cryptosense/ocaml-ctypes | 39af905fc8740cc4e5c42ef7864be1d07f8e451d | [
"MIT"
] | 1 | 2015-01-21T09:39:37.000Z | 2015-01-21T09:39:37.000Z | src/cstubs/cstubs_inverted.ml | cryptosense/ocaml-ctypes | 39af905fc8740cc4e5c42ef7864be1d07f8e451d | [
"MIT"
] | null | null | null | src/cstubs/cstubs_inverted.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.
*)
(* Cstubs_inverted public interface. *)
module type INTERNAL =
sig
val enum : (string * int64) list -> 'a Ctypes.typ -> unit
val structure : _ Ctypes.structure Ctypes... | 34.787234 | 102 | 0.639602 |
bccd56b5e49596a815dc9038eb73e3c1c6cb268b | 2,319 | mli | OCaml | src/binary_stream_reader.mli | tek/data-encoding | b2ed416587f3ce86ed4d2ebc2e4fb05e314d9f96 | [
"MIT"
] | null | null | null | src/binary_stream_reader.mli | tek/data-encoding | b2ed416587f3ce86ed4d2ebc2e4fb05e314d9f96 | [
"MIT"
] | null | null | null | src/binary_stream_reader.mli | tek/data-encoding | b2ed416587f3ce86ed4d2ebc2e4fb05e314d9f96 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 66.257143 | 80 | 0.508409 |
17af30570727f449cf72237d3694c8c3ca7263ba | 282 | mli | OCaml | clients/ocaml/generated/src/apis/move_category_api.mli | cliffano/pokeapi-clients | 92af296c68c3e94afac52642ae22057faaf071ee | [
"MIT"
] | null | null | null | clients/ocaml/generated/src/apis/move_category_api.mli | cliffano/pokeapi-clients | 92af296c68c3e94afac52642ae22057faaf071ee | [
"MIT"
] | null | null | null | clients/ocaml/generated/src/apis/move_category_api.mli | cliffano/pokeapi-clients | 92af296c68c3e94afac52642ae22057faaf071ee | [
"MIT"
] | null | null | null | (*
* This file has been generated by the OCamlClientCodegen generator for openapi-generator.
*
* Generated by: https://openapi-generator.tech
*
*)
val move_category_list : ?limit:int32 -> ?offset:int32 -> unit -> string Lwt.t
val move_category_read : id:int32 -> string Lwt.t
| 28.2 | 90 | 0.72695 |
aaea148fef0fe972aeb75efa8cadf3c19324a34d | 852 | ml | OCaml | daemon/test-bin/daemonize_test.ml | EmmaJaneBonestell/core_unix | c970c1c4aabc628302e5af34c79a083a2a504991 | [
"MIT"
] | 6 | 2021-12-06T17:44:12.000Z | 2022-03-09T02:17:42.000Z | daemon/test-bin/daemonize_test.ml | 1Crazymoney/core | 3234ee559d13cab14eeafa455fdc92bec187c618 | [
"MIT"
] | 2 | 2021-12-03T21:48:04.000Z | 2022-02-19T19:47:12.000Z | daemon/test-bin/daemonize_test.ml | 1Crazymoney/core | 3234ee559d13cab14eeafa455fdc92bec187c618 | [
"MIT"
] | 5 | 2021-12-11T19:24:44.000Z | 2022-03-15T20:00:54.000Z | open Core
open Poly
module Unix = Core_unix
let rec sleep x = if x <= 0. then () else sleep (Unix.nanosleep x)
let () =
let reader, writer = Unix.pipe () in
match Unix.fork () with
| `In_the_child ->
(* the child tries to daemonize itself, and also ignores USR1 signal *)
let _ = Core.Signal.Expert.handl... | 32.769231 | 89 | 0.664319 |
175032ea6152a09f7e03ea8107d34afdf766ab44 | 4,804 | mli | OCaml | src/kit/b0_jsoo.mli | fdopen/b0 | acf67fe6dcec3477a2093b47c3d1c8ac66a28960 | [
"ISC"
] | null | null | null | src/kit/b0_jsoo.mli | fdopen/b0 | acf67fe6dcec3477a2093b47c3d1c8ac66a28960 | [
"ISC"
] | null | null | null | src/kit/b0_jsoo.mli | fdopen/b0 | acf67fe6dcec3477a2093b47c3d1c8ac66a28960 | [
"ISC"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2020 The b0 programmers. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
---------------------------------------------------------------------------*)
(** [js_of_ocaml] B0 file ... | 42.892857 | 79 | 0.648834 |
174827d71495a3fd989b62c032e573cc49fbb041 | 41,769 | ml | OCaml | infer/src/bufferoverrun/itv.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | null | null | null | infer/src/bufferoverrun/itv.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"BSD-3-Clause"
] | 2 | 2020-11-13T19:42:27.000Z | 2020-11-13T19:49:19.000Z | infer/src/bufferoverrun/itv.ml | ievans/infer | c483fe101a3bdb3e86c4444a7b8d6197eada67c0 | [
"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 ... | 31.982389 | 102 | 0.548253 |
179ab81d1324229cc48d218a19f71a0bf8139ee3 | 377 | ml | OCaml | result/fixml/lambda/sub29/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/fixml/lambda/sub29/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/fixml/lambda/sub29/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda = V of var | P of (var * lambda) | C of (lambda * lambda)
and var = string
let rec checkArea n e =
match e with
| P (a, b) -> checkArea (n @ [ a ]) b
| C (a, b) -> checkArea n a && checkArea n b
| V a -> List.exists (fun x -> x = a) n
let rec check e =
match e with
| P (a, b) -> checkArea [ ... | 22.176471 | 69 | 0.525199 |
1793ed00487d498bf9ccc46bf6f4aed4c15503d3 | 218 | ml | OCaml | data/derived/comb/progs/unify/prog4159.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/prog4159.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4159.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let rec sepConcat sep sl =
match sl with
| [] -> ""
| h::t ->
let f a x = a ^ (sep ^ x) in
let base = h in let l = t in List.fold_left f base l;;
let stringOfList f l = sepConcat f (List.map f l);;
| 21.8 | 60 | 0.541284 |
17319ff5d3e1f5b1d5202193601d0c4218cc00df | 5,819 | mly | OCaml | tests/cudf.0.9-cudf_type_parser.mly | vbgl/Obelisk | ab8ab94f1974caca8a164768634fa171cfe47503 | [
"MIT"
] | 39 | 2017-07-06T09:41:44.000Z | 2022-02-09T17:01:07.000Z | tests/cudf.0.9-cudf_type_parser.mly | vbgl/Obelisk | ab8ab94f1974caca8a164768634fa171cfe47503 | [
"MIT"
] | 12 | 2017-07-07T11:14:24.000Z | 2022-03-21T19:31:02.000Z | tests/cudf.0.9-cudf_type_parser.mly | Lelio-Brun/MenhirBrav | ab8ab94f1974caca8a164768634fa171cfe47503 | [
"MIT"
] | 4 | 2020-03-13T11:08:08.000Z | 2022-03-14T13:16:00.000Z | (* Original file: cudf.0.9/cudf-0.9/cudf_type_parser.mly *)
/*****************************************************************************/
/* libCUDF - CUDF (Common Upgrade Description Format) manipulation library */
/* Copyright (C) 2009-2012 Stefano Zacchiroli <zack@upsilon.cc> */
/* ... | 26.45 | 81 | 0.604056 |
172531f7d99fc414291056a78ceca2c67a0ce9d3 | 9,401 | ml | OCaml | nonempty_list/src/nonempty_list.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | null | null | null | nonempty_list/src/nonempty_list.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | null | null | null | nonempty_list/src/nonempty_list.ml | Gopiandcode/core_kernel | fab2048ede720205e65f1831d07e2b28524166c7 | [
"MIT"
] | null | null | null | open Core.Core_stable
module Stable = struct
module V3 = struct
module T = struct
type nonrec 'a t = ( :: ) of 'a * 'a list [@@deriving compare, equal, hash]
let to_list (hd :: tl) : _ list = hd :: tl
let of_list_exn : _ list -> _ t = function
| [] -> Core.raise_s [%message "Nonempty_... | 25.203753 | 87 | 0.61068 |
aa72e1118747b82967d9894379a61607eac1403a | 1,243 | ml | OCaml | rw_server/pipe_from_server_thread.ml | gbe/repwatcher | 79d07fa32e0b33b7de8ebea79dbdd86ae096c058 | [
"MIT"
] | 2 | 2015-12-15T20:51:40.000Z | 2016-04-28T11:26:40.000Z | rw_server/pipe_from_server_thread.ml | gbe/repwatcher | 79d07fa32e0b33b7de8ebea79dbdd86ae096c058 | [
"MIT"
] | null | null | null | rw_server/pipe_from_server_thread.ml | gbe/repwatcher | 79d07fa32e0b33b7de8ebea79dbdd86ae096c058 | [
"MIT"
] | null | null | null | open Types;;
open Types_date;;
open Report;;
open Files_progress;;
(* This code runs in the father process *)
(* Listen for commands sent from the SSL process *)
let wait_pipe_from_child_process () =
let bufsize = 1024 in
let buf = String.create bufsize in
while true do
let recv = Unix.read Pipe.child2f... | 24.372549 | 78 | 0.670957 |
aa9cde982e695bb05698a583b31cac254741e9c8 | 29,966 | ml | OCaml | interprocedural/interproceduralAnalysis.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-08-08T16:01:55.000Z | 2020-08-08T16:01:55.000Z | interprocedural/interproceduralAnalysis.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 4 | 2022-02-15T02:42:33.000Z | 2022-02-28T01:30:07.000Z | interprocedural/interproceduralAnalysis.ml | terrorizer1980/pyre-check | 16659c7f6f19f3c364ba3a56e6c582371a8ff348 | [
"MIT"
] | 1 | 2020-11-22T12:08:51.000Z | 2020-11-22T12:08:51.000Z | (* 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 Json = Yojson.Safe
module Kind = AnalysisKind
module Result = InterproceduralResult
let a... | 36.410693 | 99 | 0.667056 |
aa47b0dcac5f12e8a772023e21310972ee4346fa | 46,365 | ml | OCaml | src/set.ml | Khady/base | db1981bd71ab3812aec02970c51bcc03b6c8fa61 | [
"MIT"
] | null | null | null | src/set.ml | Khady/base | db1981bd71ab3812aec02970c51bcc03b6c8fa61 | [
"MIT"
] | null | null | null | src/set.ml | Khady/base | db1981bd71ab3812aec02970c51bcc03b6c8fa61 | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 30.848303 | 90 | 0.594802 |
17b9ca555a3811e43b23f01b379a23e68e257c39 | 991 | ml | OCaml | src/app/cli/src/tests/coda_restart_node_test.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/tests/coda_restart_node_test.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/tests/coda_restart_node_test.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Signature_lib
let name = "coda-restart-node-test"
include Heartbeat.Make ()
let main () =
let logger = Logger.create () in
let largest_account_keypair =
Genesis_ledger.largest_account_keypair_exn ()
in
Deferred.don't_wait_for (print_heartbeat logger) ;
let n = 2 in
let propo... | 28.314286 | 79 | 0.742684 |
17bb5cac880ad9ac89fe0d8f0b69500d10cb0f9e | 4,251 | ml | OCaml | server/build_pkg_server.ml | janestreet/jane-street-build-server | 7dd5dacfae33a361ba10ea93c8b9b21a9ce812ef | [
"MIT"
] | 6 | 2016-05-21T04:51:04.000Z | 2021-12-17T03:01:38.000Z | server/build_pkg_server.ml | janestreet/jane-street-build-server | 7dd5dacfae33a361ba10ea93c8b9b21a9ce812ef | [
"MIT"
] | null | null | null | server/build_pkg_server.ml | janestreet/jane-street-build-server | 7dd5dacfae33a361ba10ea93c8b9b21a9ce812ef | [
"MIT"
] | 2 | 2017-07-20T12:27:30.000Z | 2021-12-17T03:02:41.000Z | open Core
open Poly
open Async
open Build_pkg_common.Std
let do_setup ~base_dir ~use_irill_solver _conn_closed (query : Rpcs.Setup.query)
: Rpcs.Setup.response Deferred.t =
Rpc_impls.setup ~base_dir ~use_irill_solver ~opam_switch:query
let do_build_v2 ~bin_path conn_closed (query : Rpcs.Build_v2.query)
: Rpcs.B... | 40.875 | 97 | 0.69466 |
aa09b1180488b9dc3dcdc245d7ec42dd63e62e8e | 18,424 | ml | OCaml | data/derived/comb/progs/unify/prog4990.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/fa15/progs/unify/prog0065.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog0065.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.136691 | 208 | 0.664188 |
173209888c75fa821f59e609b73e5ec7b5f32c23 | 40,286 | ml | OCaml | hack/heap/sharedMem.ml | eleith/flow | 22fe6fc7facccfe3394c6ecf20963a9ba66482a3 | [
"MIT"
] | null | null | null | hack/heap/sharedMem.ml | eleith/flow | 22fe6fc7facccfe3394c6ecf20963a9ba66482a3 | [
"MIT"
] | null | null | null | hack/heap/sharedMem.ml | eleith/flow | 22fe6fc7facccfe3394c6ecf20963a9ba66482a3 | [
"MIT"
] | 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_core
(* Don't change the ordering of this record without updating hh_shared_init in
* hh_shared.c, which ... | 31.326594 | 92 | 0.590031 |
aafb79d0a18105483ca8fe8e4e3b448a4fe7b47f | 6,895 | ml | OCaml | infer/src/integration/Maven.ml | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 1 | 2017-09-14T09:03:44.000Z | 2017-09-14T09:03:44.000Z | infer/src/integration/Maven.ml | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | null | null | null | infer/src/integration/Maven.ml | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2017 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*)
open! IStd
... | 38.954802 | 99 | 0.638434 |
aab9ca32c26979fae0f0b02f135b7c0a668692d7 | 8,905 | ml | OCaml | test/bin/gen_minimal_repo.ml | Leonidas-from-XIV/opam-monorepo | 8dee06afd8b268e3f82e817149cd7b78bc5bef14 | [
"ISC"
] | 59 | 2018-06-15T17:03:38.000Z | 2019-11-15T22:30:38.000Z | test/bin/gen_minimal_repo.ml | Leonidas-from-XIV/opam-monorepo | 8dee06afd8b268e3f82e817149cd7b78bc5bef14 | [
"ISC"
] | 54 | 2018-09-06T15:14:23.000Z | 2019-10-25T13:11:21.000Z | test/bin/gen_minimal_repo.ml | Leonidas-from-XIV/opam-monorepo | 8dee06afd8b268e3f82e817149cd7b78bc5bef14 | [
"ISC"
] | 7 | 2018-07-06T13:08:36.000Z | 2019-06-21T11:36:18.000Z | let write_pkg ~name ~version ~opam packages_dir =
let open OpamFilename.Op in
let dir = packages_dir / name in
OpamFilename.mkdir dir;
let vdir = dir / Printf.sprintf "%s.%s" name version in
OpamFilename.mkdir vdir;
let opam_file = OpamFile.make (vdir // "opam") in
OpamFile.OPAM.write opam_file opam
let ... | 30.920139 | 141 | 0.716901 |
aaa82764013c5e1a4443deb62b0e0134e82a13fe | 475 | ml | OCaml | benchmarks/C/lambda/sol249.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/lambda/sol249.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/lambda/sol249.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type lambda = V of var
| P of var * lambda
| C of lambda * lambda
and var = string
let check lambda =
let rec iter target vars =
match target with
| V station_var ->
(List.length (List.filter (fun x -> x = station_var) vars)) > 0
| P (area_var, new_target) -> iter new_target... | 29.6875 | 69 | 0.553684 |
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.