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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd4966b548910bef6f2e2e7b03f1cb9f7a7262f4 | 8,105 | ml | OCaml | src/util/jsonSchema.ml | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 2 | 2021-04-15T17:38:12.000Z | 2021-06-17T10:09:04.000Z | src/util/jsonSchema.ml | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 27 | 2021-07-01T17:00:28.000Z | 2021-07-08T13:12:32.000Z | src/util/jsonSchema.ml | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | null | null | null | (** A simpler schema than http://json-schema.org *)
open Prelude
open Json
(** type of a [jvalue] *)
type jtype =
| JBool | JInt | JNum | JNull | JString
| JArray of jarray
| JObj of jobj
(** a schema for a [jvalue] *)
and jschema =
{ sid : string option (** identificator *)
; sdescr... | 38.231132 | 121 | 0.567304 |
aa38ea4cfc42154706f6eb8daf4eb0dc1a3f0a1f | 18,503 | ml | OCaml | data/derived/comb/progs/unify/prog3429.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/prog3429.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3429.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 32.982175 | 208 | 0.669675 |
cd68139a767353c4c07560b1c500ffd461cda8c3 | 5,805 | ml | OCaml | src/lib/merkle_ledger/location.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | 1 | 2020-05-05T07:31:26.000Z | 2020-05-05T07:31:26.000Z | src/lib/merkle_ledger/location.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | src/lib/merkle_ledger/location.ml | jjangg96/coda | f9607eb8536e4a897ca48e1e4fe5a085513cf1ff | [
"Apache-2.0"
] | null | null | null | open Core
open Unsigned
(* add functions to library module Bigstring so we can derive hash for the type t below *)
module Bigstring = struct
[%%versioned
module Stable = struct
module V1 = struct
type t = Core_kernel.Bigstring.Stable.V1.t [@@deriving sexp, compare]
let to_latest = Fn.id
let... | 31.721311 | 99 | 0.639966 |
cd17e6fb497ffc8070c7d4c33d9cad152c703371 | 376 | ml | OCaml | tests/lua/nested_match.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | 1 | 2021-11-23T13:07:37.000Z | 2021-11-23T13:07:37.000Z | tests/lua/nested_match.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | tests/lua/nested_match.ml | CrazedProgrammer/amulet | a4f37db434a7d69e1f40d25402cf9ec4f1f54fbe | [
"BSD-3-Clause"
] | null | null | null | let a :: b = Cons (a, b)
let rec zip f xs ys =
match xs, ys with
| Nil, _ -> [1]
| _, Nil -> [2]
(* This arm purely exists to ensure the last branch may occur multiple
times. Yes, the actual code is nonsense *)
| Cons (0, _), Cons (0, _) -> [3]
| Cons (x, xs), Cons (y, ys) -> f x y :: zip f xs ys
ext... | 26.857143 | 72 | 0.547872 |
aad8909ecb812ee3ced4876f50d078d72ea6080e | 234 | ml | OCaml | benchmarks/C/mem/sol33.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/mem/sol33.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/mem/sol33.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type btree =
| Empty
| Node of int * btree * btree
let rec mem : int -> btree -> bool
= fun n tree ->
match tree with
| Empty -> false
| Node(value, left, right) ->
if(value = n) then true
else mem n left || mem n right ;; | 21.272727 | 35 | 0.598291 |
aae02210ee2e4aa36b42e17ee9e91f1f7007e577 | 2,165 | ml | OCaml | src/tree.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 146 | 2015-01-02T10:32:42.000Z | 2021-09-16T14:13:40.000Z | src/tree.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 44 | 2015-04-28T19:26:48.000Z | 2021-09-20T22:40:37.000Z | src/tree.ml | lthms/coq-of-ocaml | 594a3ddedfaa731e75cc85ced93fd3e9060b55ae | [
"MIT"
] | 10 | 2015-05-08T23:28:54.000Z | 2021-03-08T15:29:32.000Z | (** We use the trees to represent abstract type parameters of signatures. *)
open SmartPrint
open Monad.Notations
type 'a item =
| Item of string * 'a
| Module of string * 'a t
and 'a t = 'a item list
let rec map (f : 'a -> 'b) (tree : 'a t) : 'b t =
let map_item (item : 'a item) : 'b item =
match item wi... | 31.376812 | 77 | 0.549654 |
17d8dd0236b4b9c35ff71dd9bafec13ac225b472 | 10,914 | ml | OCaml | src/BFL.ml | Miltnoid/LoopInvGen | b5f22502371c33227f649ff45da9bb4eb41e3cba | [
"MIT"
] | null | null | null | src/BFL.ml | Miltnoid/LoopInvGen | b5f22502371c33227f649ff45da9bb4eb41e3cba | [
"MIT"
] | null | null | null | src/BFL.ml | Miltnoid/LoopInvGen | b5f22502371c33227f649ff45da9bb4eb41e3cba | [
"MIT"
] | null | null | null | open Base
open CNF
open Exceptions
open Utils
type conjunct = int list
type truthAssignment = (int, bool) Hashtbl.t
type config = {
auto_incr_k : bool ;
k : int ;
strengthen : bool ;
}
let default_config = {
auto_incr_k = true ;
k = 1 ;
strengthen = false ;
}
let truthAssignment_to_string (ta : truthA... | 46.442553 | 83 | 0.598497 |
cd87529cff4a88a453f363a48ca3f8e9ca615a49 | 17,443 | ml | OCaml | src/lib/consensus/intf.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/consensus/intf.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | src/lib/consensus/intf.ml | paul-schaaf/coda | 2292aed8e1b3c495e1e9ec2a956e07f6d4ab57ba | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Coda_numbers
open Async
open Currency
open Signature_lib
open Coda_base
module type Constants = sig
[%%versioned:
module Stable : sig
module V1 : sig
type t
end
end]
val create : protocol_constants:Genesis_constants.Protocol.t -> t
val gc_parameters :
t
-> [`A... | 28.224919 | 153 | 0.636416 |
17e47f2a7d0dd9806559c048cb49f7149415fac0 | 2,671 | mli | OCaml | src/owl/linalg/owl_linalg_d.mli | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | src/owl/linalg/owl_linalg_d.mli | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | src/owl/linalg/owl_linalg_d.mli | Drup/owl | cc2520b2f057d6b7f64d175e97ae810b63d3d14b | [
"MIT"
] | null | null | null | (*
* OWL - an OCaml numerical library for scientific computing
* Copyright (c) 2016-2017 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
open Bigarray
type elt = float
type mat = Owl_dense_matrix_d.mat
type complex_mat = Owl_dense_matrix_z.mat
type int32_mat = (int32, int32_elt) Owl_dense_matrix_generic.t
(** {6 Basi... | 18.809859 | 94 | 0.611007 |
1757e5a226e3981cb669991368f23294bef8cf5f | 29,934 | mli | OCaml | src/irmin/irmin.mli | Keerthana-Jayakumaran/irmin | d0ab60fc41547f73baf695d3c7052a5e02c2c126 | [
"ISC"
] | null | null | null | src/irmin/irmin.mli | Keerthana-Jayakumaran/irmin | d0ab60fc41547f73baf695d3c7052a5e02c2c126 | [
"ISC"
] | 1 | 2021-12-07T13:01:28.000Z | 2021-12-07T13:01:28.000Z | src/irmin/irmin.mli | CraigFe/irmin | 727fcbb6be81fd75061425440f6c6f404bb02777 | [
"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... | 32.822368 | 83 | 0.628182 |
cd1e6f6627f883ccb1adb9db64420613dd5c22fd | 785 | mli | OCaml | bildb/lib/bildb_init.mli | whst/cbat_tools | 6c2d659881e6b694f97258115aac25f6c2622db4 | [
"MIT"
] | 91 | 2018-10-17T13:02:45.000Z | 2022-03-11T08:42:00.000Z | bildb/lib/bildb_init.mli | whst/cbat_tools | 6c2d659881e6b694f97258115aac25f6c2622db4 | [
"MIT"
] | 283 | 2018-10-23T12:34:01.000Z | 2022-02-24T19:53:45.000Z | bildb/lib/bildb_init.mli | whst/cbat_tools | 6c2d659881e6b694f97258115aac25f6c2622db4 | [
"MIT"
] | 16 | 2018-10-17T07:54:17.000Z | 2021-12-10T15:56:32.000Z | (** This module loads initial state information from a file.
In particular, this module loads a file that looks like this:
{[
Variables:
RAX: 0x00000abc
RDI: 0xdeadbeaf
Locations:
0x3ffffff1: 0x00000003
]}
It parses that file, and bui... | 31.4 | 70 | 0.649682 |
cd7e2a644edf73b8be4a488674a3f3ed537694fb | 2,874 | mli | OCaml | src/lib_shell/peer_validator.mli | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/lib_shell/peer_validator.mli | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | src/lib_shell/peer_validator.mli | hinshun/tezos | 453abc2f2ea65c94cc99674958201fcebcf7eae9 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 50.421053 | 94 | 0.551844 |
17bdec0e72c8367379ea4113ceac1f1b9d83ba3e | 1,135 | ml | OCaml | pkg/pkg.ml | dbuenzli/fut | 907de63df12815f2df2cb796baa7fa37ac2758d4 | [
"ISC"
] | 10 | 2015-01-14T09:59:14.000Z | 2020-10-22T01:28:25.000Z | pkg/pkg.ml | dbuenzli/fut | 907de63df12815f2df2cb796baa7fa37ac2758d4 | [
"ISC"
] | null | null | null | pkg/pkg.ml | dbuenzli/fut | 907de63df12815f2df2cb796baa7fa37ac2758d4 | [
"ISC"
] | 1 | 2016-03-30T18:31:32.000Z | 2016-03-30T18:31:32.000Z | #!/usr/bin/env ocaml
#use "topfind"
#require "topkg"
open Topkg
let base_unix = Conf.with_pkg "base-unix"
let react = Conf.with_pkg "react"
let jsoo = Conf.with_pkg "js_of_ocaml"
let jsoo_test ~cond test =
Pkg.flatten
[ Pkg.test ~run:false ~cond ~auto:false (test ^ ".js");
Pkg.test ~run:false ~cond ~auto:... | 28.375 | 71 | 0.628194 |
cd6c59ec615caad32f8d2467892878d17d6c96cd | 14,793 | ml | OCaml | src/parser_utils/scope_builder.ml | dizzydaizy/flow | dddadf96f00e9c85ad6b52ad997d19d8f0977cd7 | [
"MIT"
] | null | null | null | src/parser_utils/scope_builder.ml | dizzydaizy/flow | dddadf96f00e9c85ad6b52ad997d19d8f0977cd7 | [
"MIT"
] | null | null | null | src/parser_utils/scope_builder.ml | dizzydaizy/flow | dddadf96f00e9c85ad6b52ad997d19d8f0977cd7 | [
"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
open Flow_ast_visitor
open Hoister
module Make (L : Loc_sig.S) (Api : Scope_api_sig.S with module L = L) :
... | 33.468326 | 100 | 0.572839 |
cd88cf863a2c456d9eae59947afaf093311538a1 | 1,226 | ml | OCaml | source/analysis/customAnalysis.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 5,975 | 2018-05-11T15:54:32.000Z | 2022-03-31T14:38:00.000Z | source/analysis/customAnalysis.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 524 | 2018-05-11T16:47:20.000Z | 2022-03-22T17:43:06.000Z | source/analysis/customAnalysis.ml | zhuang-93/pyre-check | 460b4c7bd81b152f386d6867c963564e1b20f19c | [
"MIT"
] | 501 | 2018-05-11T16:46:29.000Z | 2022-03-19T04:41:57.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 Core
open Ast
open Statement
module NestedDefines = struct
type 'state nested = {
nested_define: Define.t;
state: '... | 29.190476 | 97 | 0.7031 |
cd59cb3ec5d4c3b3e1865ce8cc8fa40006cc2154 | 720 | ml | OCaml | internal/config/discover.ml | janestreet/krb | 96feb2c8721bc0e33e87fd4ed7c0839d3b0f51f8 | [
"MIT"
] | 10 | 2020-09-16T01:37:54.000Z | 2021-12-17T02:50:03.000Z | internal/config/discover.ml | janestreet/krb | 96feb2c8721bc0e33e87fd4ed7c0839d3b0f51f8 | [
"MIT"
] | null | null | null | internal/config/discover.ml | janestreet/krb | 96feb2c8721bc0e33e87fd4ed7c0839d3b0f51f8 | [
"MIT"
] | 2 | 2021-02-13T22:01:10.000Z | 2021-12-17T02:50:56.000Z | open Base
open Stdio
module Configurator = Configurator.V1
let () =
Configurator.main ~name:"krb" (fun configurator ->
let { Configurator.Pkg_config.libs; cflags } =
configurator
|> Configurator.Pkg_config.get
|> Option.map ~f:(fun pkg_config ->
Configurator.Pkg_config.query pkg_config ... | 34.285714 | 81 | 0.645833 |
bcf54ef8d49b253c5feb1ef4d46af11d66eee7a1 | 15,405 | mli | OCaml | lib/current.mli | shonfeder/ocurrent | 120f2117afc030c0c10ac1eefdfc757b98279c8e | [
"Apache-2.0"
] | null | null | null | lib/current.mli | shonfeder/ocurrent | 120f2117afc030c0c10ac1eefdfc757b98279c8e | [
"Apache-2.0"
] | null | null | null | lib/current.mli | shonfeder/ocurrent | 120f2117afc030c0c10ac1eefdfc757b98279c8e | [
"Apache-2.0"
] | null | null | null | type 'a or_error = ('a, [`Msg of string]) result
module Level = Level
module Config : sig
type t
val v : ?auto_release:Duration.t -> ?confirm:Level.t -> unit -> t
(** A new configuration.
@param auto_release Remove confirmation requirement this period (unless changed manually first).
@param confirm... | 38.609023 | 120 | 0.666796 |
174f96e3fb234cf8f0434b8cc714d58f22be4170 | 218 | mli | OCaml | libraries/ec2/lib/getCoipPoolUsage.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/ec2/lib/getCoipPoolUsage.mli | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/ec2/lib/getCoipPoolUsage.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 = GetCoipPoolUsageRequest.t
type output = GetCoipPoolUsageResult.t
type error = Errors_internal.t
include
Aws.Call with type input := input and type output := output and type error := error
| 19.818182 | 85 | 0.770642 |
cd5f6af6b810d6edefc2cd34a10debfaadf8d01a | 3,288 | mli | OCaml | ag_pathanalysis/batteries/src/batDigest.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2019-12-05T19:47:42.000Z | 2021-05-05T13:41:16.000Z | ag_pathanalysis/batteries/src/batDigest.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | null | null | null | ag_pathanalysis/batteries/src/batDigest.mli | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2021-04-20T07:44:02.000Z | 2021-04-20T08:38:41.000Z | (*
* BatDigest - Additional functions for MD5 message digests
* Copyright (C) 1996 Xavier Leroy, INRIA Rocquencourt
* Copyright (C) 2009 David Teller, LIFO, Universite d'Orleans
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Licens... | 37.793103 | 76 | 0.710158 |
178f5c6b250a84088d93972a39345b66614e29d0 | 18,092 | ml | OCaml | synth/main.ml | FourierACceleratorCompiler/FACC | 601c77789114b623af8760756949d879e8398896 | [
"Apache-2.0"
] | null | null | null | synth/main.ml | FourierACceleratorCompiler/FACC | 601c77789114b623af8760756949d879e8398896 | [
"Apache-2.0"
] | 3 | 2022-02-15T16:30:06.000Z | 2022-03-05T18:21:30.000Z | synth/main.ml | FourierACceleratorCompiler/FACC | 601c77789114b623af8760756949d879e8398896 | [
"Apache-2.0"
] | null | null | null | open Cmdliner
open Gir
open Parse_compile_settings
open Parse_iospec
open Parse_classmap
open Parse_api
open Synthesize
open Options
open Spec_utils
let () = Printexc.record_backtrace true;;
let _ = Random.init 0
let main options iospec_file api_file =
let () = Printf.printf "Loading specifications...\n" in
let... | 48.374332 | 310 | 0.756191 |
cd33087755ce74d34e59be3b861653c9af56e3c5 | 5,447 | ml | OCaml | srk/src/test_WeightedGraph.ml | JakeSilverman/duet | bf2071a8ba608093816ba2515a15e1a91d3a50ef | [
"MIT"
] | null | null | null | srk/src/test_WeightedGraph.ml | JakeSilverman/duet | bf2071a8ba608093816ba2515a15e1a91d3a50ef | [
"MIT"
] | null | null | null | srk/src/test_WeightedGraph.ml | JakeSilverman/duet | bf2071a8ba608093816ba2515a15e1a91d3a50ef | [
"MIT"
] | null | null | null | open OUnit
open Abstract
open Syntax
open SrkApron
open Test_pervasives
module V = struct
type t = string
let typ_table = Hashtbl.create 991
let sym_table = Hashtbl.create 991
let rev_sym_table = Hashtbl.create 991
let register_var name typ =
assert (not (Hashtbl.mem typ_table name));
let sym = Ctx... | 27.099502 | 72 | 0.577382 |
17b4d744da2898c9aa6d4fb9824800aa945b2824 | 12,689 | ml | OCaml | abs.ml | itu-square/eba-legacy | 9354fab1df558f63ad38cb038cde48f8500f1ac4 | [
"BSD-3-Clause"
] | null | null | null | abs.ml | itu-square/eba-legacy | 9354fab1df558f63ad38cb038cde48f8500f1ac4 | [
"BSD-3-Clause"
] | null | null | null | abs.ml | itu-square/eba-legacy | 9354fab1df558f63ad38cb038cde48f8500f1ac4 | [
"BSD-3-Clause"
] | null | null | null |
open Batteries
open Type
(* [OCaml Quirks]
* Apparently if we name this module `File' rather than `AFile', in the scope of
* `Fun' signature `File' will refer to `Batteries.File' rather than to `Abs.File'.
*)
module rec AFile : sig
type t
val create : no_globals:int -> t
val add_var : t -> Cil.varinfo -> s... | 25.686235 | 114 | 0.656711 |
17b699e53ca3dd4e608d217931b2b1cbbd6363ab | 3,441 | ml | OCaml | cours12.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | 1 | 2022-01-27T20:37:21.000Z | 2022-01-27T20:37:21.000Z | cours12.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | null | null | null | cours12.ml | TheoBessel/OCamlMPE | 3d52166eee5cee2daca4c0091c9cdc15cf8214df | [
"MIT"
] | null | null | null | let affiche n =
let rec aux k = match k with
0 -> [n]
|k -> (n-k)::(aux (k-1))
in aux n;;
let affiche n =
let rec aux acc = function
|k when k<0 -> acc
|k -> aux (k::acc) (k-1)
in aux [] n;;
(*
Exo 5 :
tu = vw <=> ((t=vz et zu = w) ou (v=tz et zw=u)).
Supposons |t| <= |v| pour se fixer les idées, tu=v... | 25.87218 | 128 | 0.618425 |
cd4c29e62fc4428db900811acba5209483b6509e | 289 | ml | OCaml | hphp/hack/src/stubs/serverHotClassesDescription.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/stubs/serverHotClassesDescription.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/stubs/serverHotClassesDescription.ml | Tiththa/hhvm | d6f984c858544ae716c12413048772f831959307 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2018-11-17T04:11:10.000Z | 2018-11-17T04:11:10.000Z | (**
* Copyright (c) 2018, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE fn in the "hack" directory of this source tree.
*
*)
let comment = ["generated by hh_client --gen-hot-classes-file"]
let postprocess x = x
| 24.083333 | 66 | 0.692042 |
aa2cb6ac8e3123d1728f3259782028b376a762b8 | 3,892 | ml | OCaml | src/irmin-pack/closeable.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | null | null | null | src/irmin-pack/closeable.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | 1 | 2020-03-02T22:43:44.000Z | 2020-03-06T15:35:44.000Z | src/irmin-pack/closeable.ml | TheLortex/irmin | ce58b43e54b1a57d66bbd5ff37f1a2d4edd086bf | [
"0BSD"
] | null | null | null | (* Permission to use, copy, modify, and/or 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" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS S... | 23.029586 | 75 | 0.665211 |
cd7c36a30b7caa0ed4d28b5534fa3732e351aed9 | 17,980 | ml | OCaml | litmus/compile.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | litmus/compile.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | litmus/compile.ml | fshaked/herdtools7 | 0935581355bf1b4ab0a53478947d0ec288d4c94f | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 31.053541 | 83 | 0.517964 |
cd709b213d2adc7e8f7b0cf44f96bf6b704d64d9 | 791 | ml | OCaml | data/derived/comb/progs/unify/prog2142.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/prog2142.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2142.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 len1 = List.length l1 in
let len2 = List.length l2 in
let shorter = if len1 < len2 then l1 else l2 in
let zeros = if shorter = l1 then len2 - len1 else len1 - len2 in
if shorter = l1
then ((List.append (clone 0 zer... | 32.958333 | 76 | 0.585335 |
cd8b471dc646a3297b9b317d7ad2b78f9ad31dd9 | 2,800 | ml | OCaml | lib/compat.ml | Julow/mdx | 523a139313f3bb653d393079f5a9a7cf9fb1ec9a | [
"0BSD"
] | null | null | null | lib/compat.ml | Julow/mdx | 523a139313f3bb653d393079f5a9a7cf9fb1ec9a | [
"0BSD"
] | 1 | 2019-09-16T13:53:16.000Z | 2019-09-23T09:13:49.000Z | lib/compat.ml | Julow/mdx | 523a139313f3bb653d393079f5a9a7cf9fb1ec9a | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2018 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 PROVIDED "AS... | 26.168224 | 75 | 0.635714 |
cd922698e4dfd41d0c09fcb7d38fe0ac89b939bc | 16,288 | ml | OCaml | src/lib/Quote.ml | EntropyFails/cooltt | 134dece9b9cc1157309f91af252c02ff7b7e2906 | [
"Apache-2.0"
] | null | null | null | src/lib/Quote.ml | EntropyFails/cooltt | 134dece9b9cc1157309f91af252c02ff7b7e2906 | [
"Apache-2.0"
] | null | null | null | src/lib/Quote.ml | EntropyFails/cooltt | 134dece9b9cc1157309f91af252c02ff7b7e2906 | [
"Apache-2.0"
] | null | null | null | module S = Syntax
module D = Domain
module Sem = Semantics
module TB = TermBuilder
exception CCHM
exception CJHM
exception CFHM
open Basis
open Cubical
open Monads
module Error =
struct
type t = IllTypedQuotationProblem of D.tp * D.con
let pp fmt =
function
| IllTypedQuotationProblem (tp, con) ->
F... | 27.986254 | 103 | 0.573797 |
cd7cf7fb240c7787c67d9d23c357747b6647bc95 | 20,105 | ml | OCaml | data/derived/comb/progs/unify/prog3538.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/prog3538.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3538.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.121911 | 208 | 0.638349 |
cd68f0110e402aa6107fcc1906a4b287fb41537c | 10,785 | ml | OCaml | client/cmd_catch_up.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | client/cmd_catch_up.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | client/cmd_catch_up.ml | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | open! Core
open! Async
open! Import
let clear =
let ok_if_nothing_cleared_switch = "-ok-if-nothing-cleared" in
let only_those_reviewed_by_switch = "-only-those-reviewed-by" in
Command.async'
~summary:"clear all catch-up review for a user in a feature"
~readme:(fun () ->
concat [ "\
This command fai... | 35.130293 | 90 | 0.623644 |
17981a00cea3a58b226c12baa60efc0f5944ffb4 | 39,455 | ml | OCaml | src/generators/gencommon/closuresToClass.ml | nadako/haxe | 2561756669d7e21c4fae1b76fb2db5cceecf6f0d | [
"MIT"
] | 1 | 2021-01-19T07:06:17.000Z | 2021-01-19T07:06:17.000Z | src/generators/gencommon/closuresToClass.ml | nadako/haxe | 2561756669d7e21c4fae1b76fb2db5cceecf6f0d | [
"MIT"
] | 2 | 2016-04-15T20:13:51.000Z | 2020-02-27T00:29:35.000Z | src/generators/gencommon/closuresToClass.ml | nadako/haxe | 2561756669d7e21c4fae1b76fb2db5cceecf6f0d | [
"MIT"
] | null | null | null | (*
The Haxe Compiler
Copyright (C) 2005-2017 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... | 35.227679 | 226 | 0.64732 |
cd84c0cad6db869657079bb3bc22c005fb4d9204 | 55 | ml | OCaml | code/chap2/record.ml | lvercouter/INFO_MP2I | 50f6d2852e1b2a63be1f6a33fd5cdb2fe5e4a114 | [
"CC0-1.0"
] | 2 | 2021-10-02T17:45:51.000Z | 2021-10-03T09:49:14.000Z | code/chap2/record.ml | lvercouter/INFO_MP2I | 50f6d2852e1b2a63be1f6a33fd5cdb2fe5e4a114 | [
"CC0-1.0"
] | null | null | null | code/chap2/record.ml | lvercouter/INFO_MP2I | 50f6d2852e1b2a63be1f6a33fd5cdb2fe5e4a114 | [
"CC0-1.0"
] | null | null | null | type point = {x : int; y : int};;
let p = {x=10;y=5};;
| 18.333333 | 33 | 0.472727 |
cd0e6e4c7149fa4a68d79cbbabc5b568592ac4ed | 423 | ml | OCaml | result/cafe2/diff/sub119/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/cafe2/diff/sub119/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/cafe2/diff/sub119/original.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let diff ((e : aexp), (x : string)) : aexp =
let rec helper ((e : aexp), (x : string)) : aexp =
match e with
| Const a -> Const 0
| Var v -> if v = x then Const 1 else Const 0
| Powe... | 26.4375 | 70 | 0.539007 |
17e8f6ee477dd906e676417edf50c1fb98ed3bb3 | 10,774 | ml | OCaml | src/proto_008_PtEdo2Zk/lib_protocol/test/seed.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/proto_008_PtEdo2Zk/lib_protocol/test/seed.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | src/proto_008_PtEdo2Zk/lib_protocol/test/seed.ml | callistonianembrace/tezos | d7c25242bd6b0b368c731fc264a112e00f126818 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 44.155738 | 83 | 0.647763 |
cd35e410f8dc9db8f00e11ec0deac722fd2ee0dd | 25,317 | mll | OCaml | src/ocaml/preprocess/409/lexer_raw.mll | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 1 | 2021-06-14T11:08:56.000Z | 2021-06-14T11:08:56.000Z | src/ocaml/preprocess/409/lexer_raw.mll | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 4 | 2019-01-19T10:08:04.000Z | 2019-02-27T21:41:30.000Z | src/ocaml/preprocess/409/lexer_raw.mll | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 1 | 2021-06-14T11:07:29.000Z | 2021-06-14T11:07:29.000Z | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 33.756 | 92 | 0.561283 |
aade4d7a65ec2bfcca6948f86e760d919ab84a2a | 3,704 | ml | OCaml | data/fa15/2991.ml | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | data/fa15/2991.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | null | null | null | data/fa15/2991.ml | ucsd-progsys/ml2 | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z |
let rec clone x n = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let d = (List.length l1) - (List.length l2) in
if d < 0 then (((clone 0 (0 - d)) @ l1), l2) else (l1, ((clone 0 d) @ l2));;
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then removeZero t else l;;
let b... | 17.89372 | 78 | 0.475162 |
cd25e12d05fd36b411920ec02471f567968cbded | 1,905 | ml | OCaml | lib/sql_types.ml | eras/influxdb-write-to-postgresql | e12eb2c540b5bcf09f5c60ad47261bce9bb3c861 | [
"MIT"
] | 1 | 2021-01-23T19:39:18.000Z | 2021-01-23T19:39:18.000Z | lib/sql_types.ml | eras/influxdb-write-to-postgresql | e12eb2c540b5bcf09f5c60ad47261bce9bb3c861 | [
"MIT"
] | 1 | 2021-01-24T10:41:17.000Z | 2021-01-24T10:41:17.000Z | lib/sql_types.ml | eras/influxdb-write-to-postgresql | e12eb2c540b5bcf09f5c60ad47261bce9bb3c861 | [
"MIT"
] | 2 | 2021-01-23T19:39:27.000Z | 2022-03-18T18:38:06.000Z | type value =
| V_Integer of Int64.t
| V_String of string
type expression =
| E_Literal of value
| E_Identifier of string
| E_FunCall of string * expression list
| E_RelOp of expression * string * expression
| E_Cast of expression * string
type index_field =
[`Column of string
|`Expression of express... | 29.307692 | 107 | 0.666142 |
176feb7e4d64d48e2cef7c0806dcd53225b4fd5c | 154 | ml | OCaml | src/lib_time_measurement/ppx/test/valid/test_checkpoint_metadata_output.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 8 | 2021-11-02T13:06:58.000Z | 2021-11-18T19:07:33.000Z | src/lib_time_measurement/ppx/test/valid/test_checkpoint_metadata_output.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 14 | 2020-05-07T15:51:28.000Z | 2022-02-06T10:11:51.000Z | src/lib_time_measurement/ppx/test/valid/test_checkpoint_metadata_output.ml | g302ge/tezos | 18cb82485b100aebef3b8e8fad6bdf6d426bb0a1 | [
"MIT"
] | 3 | 2021-01-06T00:06:10.000Z | 2021-05-31T18:07:55.000Z | let f x y z = x + y + z
let _ =
Tezos_time_measurement_runtime.Default.Time_measurement.timestamp_pre
("fun_app", ["123"])
(fun () -> f 1 2 3)
| 22 | 71 | 0.62987 |
175920846330e065f72b1f59c8978328b46262d7 | 1,815 | mli | OCaml | eval/sherrloc/easyocaml++/camlp4/Camlp4_config.mli | ucsd-progsys/nate | 8b1267cd8b10283d8bc239d16a28c654a4cb8942 | [
"BSD-3-Clause"
] | 9 | 2017-08-30T23:00:52.000Z | 2021-02-25T23:08:55.000Z | src/ocaml-3.12.0/camlp4/Camlp4_config.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/camlp4/Camlp4_config.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2022-03-31T19:50:33.000Z | 2022-03-31T19:50:33.000Z | (****************************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* ... | 51.857143 | 78 | 0.414325 |
17985e169fdb4e38e1ff5e4ea5e24bb304ee030d | 14,956 | ml | OCaml | ast/visit.ml | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | 1 | 2020-08-12T14:33:46.000Z | 2020-08-12T14:33:46.000Z | ast/visit.ml | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"MIT"
] | null | null | null | ast/visit.ml | fabiomassimo/pyre-check | e2f2be7c14a4125d19158b265aebcc666fdd0600 | [
"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 Pyre
open Expression
open Statement
type node =
| Expression of Expression.t
| Statement of Statement.t
| Identifier of... | 32.726477 | 95 | 0.648502 |
cd3f9fb2bfdbfef039b5029fc02b487f3a4c2fa8 | 1,013 | ml | OCaml | 3_lists/3.3_listes_choix.ml | etaghayor/tp-pf5 | 2a11647213ac5a593f0c10b78a304864f87ed6c1 | [
"MIT"
] | null | null | null | 3_lists/3.3_listes_choix.ml | etaghayor/tp-pf5 | 2a11647213ac5a593f0c10b78a304864f87ed6c1 | [
"MIT"
] | null | null | null | 3_lists/3.3_listes_choix.ml | etaghayor/tp-pf5 | 2a11647213ac5a593f0c10b78a304864f87ed6c1 | [
"MIT"
] | null | null | null | (* GRADE: 100% *)
let choose l =
List.nth l (Random.int (List.length l))
let choose_elements l n =
let rec choose_and_remove l res k=
match l,k with
| [], x -> failwith "out of bounds"
| x::xs , 0 -> List.append res xs, x
| x::xs, m -> choose_and_remove xs ( List.rev (x::(List.rev res))) (m-1)
... | 28.138889 | 76 | 0.51925 |
cd7f9fcaa604f1f7e3afc45a9f11a00310f625c3 | 2,228 | ml | OCaml | data/sp14_min/3165.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/3165.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/3165.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 2 | 2019-09-19T12:24:29.000Z | 2021-08-18T11:44:40.000Z |
let l1 = [0; 0; 9; 9];;
let l2 = [1; 0; 0; 2];;
let x = (3, 3) :: (List.rev (List.combine l1 l2));;
let clone x n =
let rec helper x n acc =
if n <= 0 then acc else helper x (n - 1) (x :: acc) in
helper x n [];;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then ((List.append (clone 0 ((Li... | 25.033708 | 79 | 0.529623 |
cd32a16dbd1a8aa1c91ec15905d91021ee932156 | 30 | mli | OCaml | src/depfunc.mli | CTSRD-CHERI/ccured | 8e6824ae70cfe109390866748ae58d4fb1c87511 | [
"BSD-3-Clause"
] | 5 | 2015-11-26T19:53:41.000Z | 2021-06-15T06:46:09.000Z | src/depfunc.mli | CTSRD-CHERI/ccured | 8e6824ae70cfe109390866748ae58d4fb1c87511 | [
"BSD-3-Clause"
] | null | null | null | src/depfunc.mli | CTSRD-CHERI/ccured | 8e6824ae70cfe109390866748ae58d4fb1c87511 | [
"BSD-3-Clause"
] | 3 | 2015-03-19T12:44:34.000Z | 2020-12-13T02:53:57.000Z |
val doit: Cil.file -> unit
| 10 | 27 | 0.6 |
cd578569873ba223c9d1f966acea29b0bb749025 | 77,576 | ml | OCaml | src/unix/lwt_unix.cppo.ml | madroach/lwt | d8350109f4620018e061362cc5e739ee01503c3c | [
"MIT"
] | null | null | null | src/unix/lwt_unix.cppo.ml | madroach/lwt | d8350109f4620018e061362cc5e739ee01503c3c | [
"MIT"
] | null | null | null | src/unix/lwt_unix.cppo.ml | madroach/lwt | d8350109f4620018e061362cc5e739ee01503c3c | [
"MIT"
] | null | null | null | (* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. *)
(* [Lwt_sequence] is deprecated – we don't want users outside Lwt using it.
However, it is still used internally by Lwt. So, briefly disable warning 3
(... | 29.229842 | 152 | 0.614688 |
cd89946fc2f88440f27aba85e3d2d9e3f426063a | 108,072 | ml | OCaml | infer/src/base/Config.ml | HybridDeveloper/infer | d01ada643d70202d9afd5e5c2d6ece715335a426 | [
"MIT"
] | null | null | null | infer/src/base/Config.ml | HybridDeveloper/infer | d01ada643d70202d9afd5e5c2d6ece715335a426 | [
"MIT"
] | null | null | null | infer/src/base/Config.ml | HybridDeveloper/infer | d01ada643d70202d9afd5e5c2d6ece715335a426 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
(** Configuration values: either constant, determined at compile time, or se... | 34.873185 | 172 | 0.727802 |
cd93be01d3abc8fdfbdf7eab9bd83cb2459edbb9 | 9,664 | ml | OCaml | src/git-paf/git_paf.ml | gpetiot/ocaml-git | ba60f55c9def77279be45e11bc12f49d26165bb0 | [
"0BSD"
] | null | null | null | src/git-paf/git_paf.ml | gpetiot/ocaml-git | ba60f55c9def77279be45e11bc12f49d26165bb0 | [
"0BSD"
] | null | null | null | src/git-paf/git_paf.ml | gpetiot/ocaml-git | ba60f55c9def77279be45e11bc12f49d26165bb0 | [
"0BSD"
] | null | null | null | open Lwt.Infix
let src = Logs.Src.create "git.paf"
module Log = (val Logs.src_log src : Logs.LOG)
let scheme = Mimic.make ~name:"git-scheme"
let port = Mimic.make ~name:"git-port"
let domain_name = Mimic.make ~name:"git-domain-name"
let ipaddr = Mimic.make ~name:"git-ipaddr"
let sleep = Mimic.make ~name:"git-sleep"
... | 32.982935 | 80 | 0.628001 |
17855d1a08053748c755d5c0d24f79c7b85e2984 | 5,119 | ml | OCaml | test/unit/Dependence_analysis.ml | adamhaber/stanc3 | a4650e45ec7ff1be8bc27ab06b27ddf272914ea9 | [
"BSD-3-Clause"
] | null | null | null | test/unit/Dependence_analysis.ml | adamhaber/stanc3 | a4650e45ec7ff1be8bc27ab06b27ddf272914ea9 | [
"BSD-3-Clause"
] | null | null | null | test/unit/Dependence_analysis.ml | adamhaber/stanc3 | a4650e45ec7ff1be8bc27ab06b27ddf272914ea9 | [
"BSD-3-Clause"
] | null | null | null | open Core_kernel
open Frontend
open Analysis_and_optimization.Dependence_analysis
open Analysis_and_optimization.Dataflow_types
let semantic_check_program ast =
Option.value_exn
(Result.ok
(Semantic_check.semantic_check_program
(Option.value_exn (Result.ok ast))))
let example1_program =
let a... | 39.682171 | 81 | 0.421371 |
aa761d7ddc9db21c3d183a04f015f6a66d3aa830 | 84 | ml | OCaml | ulib/ml/FStar_HyperStack_IO.ml | jaybosamiya/FStar | b879c339e9c7d6880a0c52667a71b9b1fe8ec235 | [
"Apache-2.0"
] | 2,231 | 2015-01-05T02:19:24.000Z | 2022-03-30T05:54:05.000Z | ulib/ml/FStar_HyperStack_IO.ml | shiatsumat/FStar | 2a518c125e15eef6a3443cb1d29531411c995069 | [
"Apache-2.0"
] | 2,151 | 2015-01-06T05:01:08.000Z | 2022-03-31T23:16:08.000Z | ulib/ml/FStar_HyperStack_IO.ml | shiatsumat/FStar | 2a518c125e15eef6a3443cb1d29531411c995069 | [
"Apache-2.0"
] | 281 | 2015-02-13T00:14:17.000Z | 2022-03-13T12:51:04.000Z | open Prims
let print_string : Prims.string -> Prims.unit =
FStar_IO.print_string
| 16.8 | 47 | 0.761905 |
cd686dec9ec7e51dec120391f141c0be7d337c30 | 138 | ml | OCaml | data/derived/comb/progs/unify/prog4284.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/prog4284.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4284.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
let pipe fs = let f a x j = x a in let base x = x in List.fold_left f base fs;;
let _ = pipe [(fun x -> x + x); (fun x -> x + 3)] 3;;
| 27.6 | 79 | 0.521739 |
cd55ff1c0c97c4b11c8dc762047efd79e36aee2c | 1,454 | ml | OCaml | src/cipher_stream.ml | TheLortex/mirage-crypto | 42563a78f0ee9e106e045f4bda3284dd58935ca4 | [
"0BSD"
] | 98 | 2015-01-06T03:07:39.000Z | 2022-03-29T22:23:57.000Z | src/cipher_stream.ml | TheLortex/mirage-crypto | 42563a78f0ee9e106e045f4bda3284dd58935ca4 | [
"0BSD"
] | 122 | 2015-01-17T10:43:25.000Z | 2021-05-10T17:49:12.000Z | src/cipher_stream.ml | TheLortex/mirage-crypto | 42563a78f0ee9e106e045f4bda3284dd58935ca4 | [
"0BSD"
] | 56 | 2015-04-20T12:29:08.000Z | 2021-07-25T15:42:25.000Z | open Uncommon
module type S = sig
type key
type result = { message : Cstruct.t ; key : key }
val of_secret : Cstruct.t -> key
val encrypt : key:key -> Cstruct.t -> result
val decrypt : key:key -> Cstruct.t -> result
end
module ARC4 = struct
type key = int * int * int array
type result = { message : Cs... | 26.436364 | 79 | 0.504127 |
cd4f67f40926e353d5263139e54c58d2abe474b1 | 47,125 | ml | OCaml | typecheck.ml | dbp/funtal | 1125889a3819c714f2aef1d9820f01dbd8197045 | [
"0BSD"
] | 32 | 2017-02-20T22:41:17.000Z | 2021-07-27T05:47:12.000Z | typecheck.ml | dbp/funtal | 1125889a3819c714f2aef1d9820f01dbd8197045 | [
"0BSD"
] | 6 | 2017-02-20T21:23:18.000Z | 2017-02-21T03:03:09.000Z | typecheck.ml | dbp/funtal | 1125889a3819c714f2aef1d9820f01dbd8197045 | [
"0BSD"
] | 4 | 2017-02-20T21:22:07.000Z | 2019-06-16T11:05:34.000Z | open Utils
open Syntax
module rec FTAL : sig
open Syntax
open FTAL
val tytrans : Syntax.F.t -> TAL.t
exception TypeError of string * l
val default_context : TAL.q -> context
val tc : FTAL.context -> e -> t * TAL.sigma
val tc_is : l -> context -> TAL.instr list -> unit
val tc_w : context -> TAL.w -> T... | 55.181499 | 197 | 0.533029 |
cd62a8e3a9771f7c09bccb1fbf58a5370d7e01e3 | 8,980 | ml | OCaml | quark/bt/u_quark_binarytree.ml | papannda444/minoda.shu | 685e607bddb0cd174521a7532ebad93357acec79 | [
"MIT"
] | null | null | null | quark/bt/u_quark_binarytree.ml | papannda444/minoda.shu | 685e607bddb0cd174521a7532ebad93357acec79 | [
"MIT"
] | null | null | null | quark/bt/u_quark_binarytree.ml | papannda444/minoda.shu | 685e607bddb0cd174521a7532ebad93357acec79 | [
"MIT"
] | 1 | 2021-12-12T12:21:54.000Z | 2021-12-12T12:21:54.000Z | (*
u_quark_binarytree.ml
Created by Shu Minoda on 2021/12/12
Copyright (c) 2021 Shu Minoda
*)
let capacity = 16
let rate = 1
let width = 17
let digest = width
let _iv = [0xd8; 0xda; 0xca; 0x44; 0x41; 0x4a; 0x09; 0x97;
0x19; 0xc8; 0x0a; 0xa3; 0xaf; 0x06; 0x56; 0x44; 0xdb]
let iv = Binarytree.tree_of_list _iv... | 55.092025 | 184 | 0.660579 |
17e21aa11bcfec035e1543c170047b70f97b8e19 | 2,691 | ml | OCaml | solvers/line.ml | cgc/ec | eaa708a51c7c528866390a2e3129a7bd95705ac6 | [
"MIT"
] | null | null | null | solvers/line.ml | cgc/ec | eaa708a51c7c528866390a2e3129a7bd95705ac6 | [
"MIT"
] | null | null | null | solvers/line.ml | cgc/ec | eaa708a51c7c528866390a2e3129a7bd95705ac6 | [
"MIT"
] | null | null | null | open Core
open Client
open Timeout
open Task
open Utils
open Program
open Type
(* hurk need this random variable there to avoid "the first declaration uses unboxed representation" *)
type line_state = {pos : int; hitmp: int;}
(* tline_cont = state -> (state, list of blocks) *)
type line_cont = line_state -> line_sta... | 33.222222 | 123 | 0.574136 |
17920618003e47f2ea0942f47d4e4be4a68d2bc1 | 2,082 | ml | OCaml | result/cafe2/diff/sub21/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | result/cafe2/diff/sub21/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | result/cafe2/diff/sub21/patch.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | exception InvalidArgument
type aexp =
| Const of int
| Var of string
| Power of (string * int)
| Times of aexp list
| Sum of aexp list
let rec r_diff ((aexp : aexp), (str : string)) : aexp =
match aexp with
| Const i -> Const 0
| Var v -> if v = str then Const 1 else Const 0
| Power (v, i) ->
... | 27.394737 | 81 | 0.571085 |
cd681ddeb50ca7e6a392eb24a025bcb1de6893d8 | 88 | mli | OCaml | instrumentor/testHarness.mli | liblit/sampler | eaedba51ee8367b9b355e6f85a6c677878160d49 | [
"BSD-3-Clause"
] | null | null | null | instrumentor/testHarness.mli | liblit/sampler | eaedba51ee8367b9b355e6f85a6c677878160d49 | [
"BSD-3-Clause"
] | null | null | null | instrumentor/testHarness.mli | liblit/sampler | eaedba51ee8367b9b355e6f85a6c677878160d49 | [
"BSD-3-Clause"
] | 1 | 2019-01-08T11:09:59.000Z | 2019-01-08T11:09:59.000Z | val time : string -> (unit -> 'a) -> 'a
val doOne : Phase.phase list -> string -> unit
| 22 | 46 | 0.579545 |
cd2585f9109b86dd34beb80f5de779d9793439e3 | 49,808 | ml | OCaml | src/system/System.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | 7 | 2016-08-31T19:50:12.000Z | 2019-01-21T04:51:07.000Z | src/system/System.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null | src/system/System.ml | imdea-software/leap | 5f946163c0f80ff9162db605a75b7ce2e27926ef | [
"Apache-2.0"
] | null | null | null |
(***********************************************************************)
(* *)
(* LEAP *)
(* *)
(* Alejan... | 35.962455 | 97 | 0.556095 |
1798c0055e9ad91f98212cb522c863b29b40f7a6 | 7,793 | ml | OCaml | infer/src/integration/TraceBugs.ml | krArrow/infer | ae3f1d79c9cec09242239360e459c077bc54a8aa | [
"MIT"
] | 1 | 2020-08-28T14:00:56.000Z | 2020-08-28T14:00:56.000Z | infer/src/integration/TraceBugs.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | 8 | 2021-03-01T21:21:21.000Z | 2022-02-27T09:02:52.000Z | infer/src/integration/TraceBugs.ml | asadrockk1234/infer | 06489dced05bd0e7d19015c0375721885d6f2c1c | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
module L = Logging
[@@@warning "+9"]
let is_past_limit limit =
match limit with None -> fun _ -> fa... | 37.830097 | 99 | 0.65623 |
17c3c5965fd5d9262f9b5f9f9a621718882a90a3 | 6,646 | ml | OCaml | src/Translation.ml | cristianoc/genType | fbe231482608c3ee3b7b56208ab271d4df4a9876 | [
"MIT"
] | 428 | 2018-10-02T08:15:16.000Z | 2020-05-25T06:20:02.000Z | src/Translation.ml | cristianoc/genType | fbe231482608c3ee3b7b56208ab271d4df4a9876 | [
"MIT"
] | 255 | 2018-10-02T09:30:07.000Z | 2020-05-26T18:40:41.000Z | src/Translation.ml | cristianoc/genType | fbe231482608c3ee3b7b56208ab271d4df4a9876 | [
"MIT"
] | 23 | 2018-10-04T07:46:59.000Z | 2020-05-15T17:32:49.000Z | open GenTypeCommon
type t = CodeItem.translation
let empty = ({importTypes = []; codeItems = []; typeDeclarations = []} : t)
let getImportTypeUniqueName ({typeName; asTypeName} : CodeItem.importType) =
typeName ^ match asTypeName with None -> "" | Some s -> "_as_" ^ s
let importTypeCompare i1 i2 =
compare (i1 |... | 32.90099 | 80 | 0.626091 |
aaa7204c70983f5b00497f7a62131ddf0846b274 | 13,592 | ml | OCaml | src/lib_shell/block_validator.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | null | null | null | src/lib_shell/block_validator.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | null | null | null | src/lib_shell/block_validator.ml | Engil/tezos | cca83908754e611c3a7e2a9cbd85aaf6185ff802 | [
"MIT"
] | 1 | 2021-07-19T07:00:37.000Z | 2021-07-19T07:00:37.000Z | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2018 Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
... | 35.581152 | 80 | 0.592481 |
cd2ebad34d934ddb42f0649a2d2a2e90c7a9e9a9 | 865 | ml | OCaml | benchmarks/C/formula/sol367.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/formula/sol367.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/formula/sol367.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | type formula =
| True
| False
| Not of formula
| AndAlso of formula * formula
| OrElse of formula * formula
| Imply of formula * formula
| Equal of exp * exp
and exp =
| Num of int
| Plus of exp * exp
| Minus of exp * exp
let rec exptoint : exp -> int
= fun e ->
match e with
| Num(a) -> a
| Plus... | 20.595238 | 48 | 0.586127 |
1758cbef87732e3c2055e661d095ec5aa62343ca | 7,757 | ml | OCaml | data/derived/comb/progs/unify/prog8192.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/prog3402.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3402.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... | 25.516447 | 148 | 0.641872 |
cd5d93916237fcd3dd4af962ad374354a37f74a0 | 1,652 | ml | OCaml | data/derived/comb/progs/unify/prog2233.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/prog2233.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2233.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times of expr* expr
| Thresh of expr* expr* expr* expr
| FiboPlus of expr* expr
| TheThing of expr* expr* expr;;
type expr =
| VarX
| VarY
| Sine of expr
| Cosine of expr
| Average of expr* expr
| Times o... | 25.415385 | 77 | 0.542978 |
cd3e4e01dd12abd9bc67c1d78ed4d4998fb5e081 | 282 | ml | OCaml | benchmarks/filter/filter/submissions/sub52.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/filter/filter/submissions/sub52.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/filter/filter/submissions/sub52.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (*********************)
(* Problem 1: filter *)
(*********************)
let rec filter pred lst =
match lst with
| [] -> []
| hd::tl -> if pred hd then hd::filter pred tl else filter pred tl;;
(*********************)
(* Problem 2: zipper *)
(*********************) | 25.636364 | 76 | 0.37234 |
cd70f668277ccd221eb0dbd01b48193f00912553 | 583 | ml | OCaml | src/lib/transition_chain_verifier/transition_chain_verifier.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 512 | 2018-10-24T23:22:35.000Z | 2020-09-29T02:54:20.000Z | src/lib/transition_chain_verifier/transition_chain_verifier.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 3,150 | 2018-10-25T00:06:09.000Z | 2020-09-29T15:22:14.000Z | src/lib/transition_chain_verifier/transition_chain_verifier.ml | hanabi1224/mina | 66da4ad53fe8737b6980dd76a264a9a39ffca52f | [
"Apache-2.0"
] | 105 | 2018-10-25T00:02:43.000Z | 2020-09-01T12:31:15.000Z | open Core
open Mina_base
open Mina_state
module Merkle_list_verifier = Merkle_list_verifier.Make (struct
type proof_elem = State_body_hash.t
type hash = State_hash.t [@@deriving equal]
let hash previous_state_hash state_body_hash =
(Protocol_state.hashes_abstract ~hash_body:Fn.id
{ previous_state_ha... | 30.684211 | 80 | 0.780446 |
cd8f66cd55403810084b6cad50e890382d219d27 | 1,846 | ml | OCaml | src/lib/sequme_flow_app_util.ml | cgsb/sequme | 9da8796062089998b05cf4b064fde046ce49a9a0 | [
"0BSD"
] | null | null | null | src/lib/sequme_flow_app_util.ml | cgsb/sequme | 9da8796062089998b05cf4b064fde046ce49a9a0 | [
"0BSD"
] | null | null | null | src/lib/sequme_flow_app_util.ml | cgsb/sequme | 9da8796062089998b05cf4b064fde046ce49a9a0 | [
"0BSD"
] | null | null | null | (** Utilities for applications around the flow monad. *)
open Core.Std
open Sequme_flow
open Sequme_flow_list
module Messages = struct
let message_head = ref ">>>"
let debug_head = ref "DEBUG:"
let format_message head s =
let indent_str = String.(make (length head + 1) ' ') in
let l = String.split ... | 21.465116 | 75 | 0.587757 |
bc5e9272dcea9976a3c39763d09f52253ba4b155 | 72 | mli | OCaml | vendor/incr_map/bench/src/stats.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 22 | 2016-07-11T21:48:58.000Z | 2021-12-17T02:44:47.000Z | vendor/incr_map/bench/src/stats.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 2 | 2020-11-02T15:17:31.000Z | 2021-01-08T10:29:59.000Z | vendor/incr_map/bench/src/stats.mli | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Core
open! Import
val reporter : unit -> (unit -> unit) Staged.t
| 14.4 | 46 | 0.666667 |
cd87dd3687a2ade33d4b5a5da23bce885877d24a | 2,833 | mli | OCaml | ocaml_modules/base/src/sexpable.mli | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/base/src/sexpable.mli | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | ocaml_modules/base/src/sexpable.mli | samoht/opam-monorepo | 77309015d51a321f88ee42ecb14af5e31649efd5 | [
"0BSD"
] | null | null | null | (** Provides functors for making modules sexpable. New code should use the [[@@deriving
sexp]] syntax directly. These module types ([S], [S1], [S2], and [S3]) are exported
for backwards compatibility only. *)
open! Import
module type S = sig type t [@@deriving_inline sexp]
include
sig
[... | 29.821053 | 88 | 0.563007 |
cd5df8e106d82d75fb60efcf41b29ea44d276e5e | 1,685 | ml | OCaml | libraries/sqs/lib/createQueue.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 134 | 2016-01-11T19:35:49.000Z | 2022-02-19T15:57:41.000Z | libraries/sqs/lib/createQueue.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 66 | 2016-01-12T00:32:47.000Z | 2022-03-31T03:34:49.000Z | libraries/sqs/lib/createQueue.ml | anuragsoni/ocaml-aws | 4acdbcdc95449e7c5f08528f472d25986dd4f8a2 | [
"BSD-3-Clause"
] | 33 | 2016-01-11T23:13:26.000Z | 2022-03-28T23:49:11.000Z | open Types
open Aws
type input = CreateQueueRequest.t
type output = CreateQueueResult.t
type error = Errors_internal.t
let service = "sqs"
let signature_version = Request.V4
let to_http service region req =
let uri =
Uri.add_query_params
(Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of service... | 26.328125 | 88 | 0.617804 |
cd8eebc0a2820306a52d8b3399154d4a71f31b9c | 691 | ml | OCaml | 02-exercises/01-introduction/problem.ml | dra27/learn-ocaml-workshop | 650626f27dacb6ff15c0832a78eca42ac5b17cb1 | [
"Apache-2.0"
] | null | null | null | 02-exercises/01-introduction/problem.ml | dra27/learn-ocaml-workshop | 650626f27dacb6ff15c0832a78eca42ac5b17cb1 | [
"Apache-2.0"
] | null | null | null | 02-exercises/01-introduction/problem.ml | dra27/learn-ocaml-workshop | 650626f27dacb6ff15c0832a78eca42ac5b17cb1 | [
"Apache-2.0"
] | null | null | null | (* Welcome to OCaml challenges!
This exercise is just meant to familiarize you with the system.
Write OCaml code using your favorite text editor; if you aren't already
committed to one, we recommend Visual Studio Code.
To compile your code and run inline tests, run
[dune runtest]
in a terminal se... | 31.409091 | 77 | 0.733719 |
17c75cd98d9e0e16b5db8584842b0365a68c829b | 1,360 | mli | OCaml | tools/collectRegs.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 103 | 2016-11-28T10:00:41.000Z | 2022-03-08T05:06:00.000Z | tools/collectRegs.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 193 | 2017-02-28T19:04:04.000Z | 2022-03-25T14:33:24.000Z | tools/collectRegs.mli | AymenQ/herdtools7 | 9dc22b11334f7c40810349e8223f0bfe5f46326d | [
"CECILL-B"
] | 39 | 2016-12-14T23:10:34.000Z | 2022-03-22T21:35:17.000Z | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 56.666667 | 78 | 0.428676 |
cd87f16dd8efc0c8aa143ab704c9fa9d0fc95876 | 43,508 | ml | OCaml | lib/b_main.ml | sanette/bogue | be44317b2314c64a4b1d80756435092e434cc147 | [
"0BSD"
] | 96 | 2019-02-11T13:16:53.000Z | 2022-03-26T00:47:44.000Z | lib/b_main.ml | sanette/bogue | be44317b2314c64a4b1d80756435092e434cc147 | [
"0BSD"
] | 9 | 2019-08-28T14:17:43.000Z | 2022-02-21T16:00:19.000Z | lib/b_main.ml | sanette/bogue | be44317b2314c64a4b1d80756435092e434cc147 | [
"0BSD"
] | 8 | 2020-11-20T20:05:16.000Z | 2022-03-29T18:03:45.000Z | (** BOGUE *)
(** A GUI Library for Ocaml, using SDL2 *)
(** Vu Ngoc San, December 2013 -- now *)
(* doc on threads:
http://ocamlunix.forge.ocamlcore.org/threads.html
*)
open B_utils
open Tsdl
module E = Sdl.Event
module Layout = B_layout
module Widget = B_widget
module Shortcut = B_shortcut
module Avar = B_avar
modu... | 43.991911 | 127 | 0.641146 |
cd892fd9905304b900892608e18eaee4f7f8cd4b | 47 | ml | OCaml | hollight/test/mathd-numbertheory-66.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/test/mathd-numbertheory-66.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/test/mathd-numbertheory-66.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let mathd-numbertheory-66 = `194 MOD 11 = 7`;;
| 23.5 | 46 | 0.659574 |
cd1dfbae18c1f4a842045b7a915feade83a8feee | 4,297 | ml | OCaml | src/app/cli/src/init/graphql_client.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/init/graphql_client.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/app/cli/src/init/graphql_client.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | open Core
open Async
open Signature_lib
let graphql_error_to_string e =
let error_obj_to_string obj =
let open Yojson.Basic in
let obj_message =
let open Option.Let_syntax in
let%bind message = Util.to_option (Util.member "message") obj in
let%map path = Util.to_option (Util.member "path") ... | 33.310078 | 79 | 0.653014 |
cd84285d5f66082852bdc01e4ebdcd45493dafca | 1,150 | mli | OCaml | stdppx/io.mli | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 57 | 2019-05-15T14:23:37.000Z | 2021-05-24T19:23:19.000Z | stdppx/io.mli | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 53 | 2019-06-06T16:27:15.000Z | 2020-05-14T18:05:50.000Z | stdppx/io.mli | ceastlund/ppx | e9367353e0ac7f6e1b408be21b01645475eea623 | [
"MIT"
] | 7 | 2019-06-03T15:07:32.000Z | 2020-04-06T14:06:22.000Z | (** IO operations *)
val close_in : in_channel -> unit
val close_out : out_channel -> unit
val input_lines : in_channel -> string list
val copy_channels : in_channel -> out_channel -> unit
val read_all : in_channel -> string
type path = string
val open_in : ?binary:bool (* default true *) -> path -> in_channel... | 27.380952 | 75 | 0.654783 |
aa6e573ad9c4f1dc63473c6106caa78a66fd45bc | 675 | mli | OCaml | benchmark/maps.mli | recoules/ocaml-hamt | b6d331e4132db35fda41ce39df79a5e63f6244c3 | [
"MIT"
] | 1 | 2019-07-17T00:31:16.000Z | 2019-07-17T00:31:16.000Z | benchmark/maps.mli | recoules/ocaml-hamt | b6d331e4132db35fda41ce39df79a5e63f6244c3 | [
"MIT"
] | null | null | null | benchmark/maps.mli | recoules/ocaml-hamt | b6d331e4132db35fda41ce39df79a5e63f6244c3 | [
"MIT"
] | null | null | null | module type S = sig
type key = Key.t
type 'a t
val name: string
val pure: bool
val empty: unit -> 'a t
val add: key -> 'a -> 'a t -> 'a t
val remove: key -> 'a t -> 'a t
val mem: key -> 'a t -> bool
val find: key -> 'a t -> 'a
val bindings: 'a t -> (key * 'a) list
val union: (key -> 'a -> 'a... | 15 | 67 | 0.545185 |
cd642783233bc4fce16106e243014ff67cd7e229 | 504 | mli | OCaml | src/infrastructure/resources/directory_resource.mli | SquidDev/scrutiny | 48c3b3c7fef6292107d01dfa8b6958ac5c511be0 | [
"BSD-3-Clause"
] | 1 | 2020-12-10T02:58:26.000Z | 2020-12-10T02:58:26.000Z | src/infrastructure/resources/directory_resource.mli | SquidDev/scrutiny | 48c3b3c7fef6292107d01dfa8b6958ac5c511be0 | [
"BSD-3-Clause"
] | null | null | null | src/infrastructure/resources/directory_resource.mli | SquidDev/scrutiny | 48c3b3c7fef6292107d01dfa8b6958ac5c511be0 | [
"BSD-3-Clause"
] | null | null | null | open Scrutiny_infrastructure
type dir_state = {
user : User.t;
group : User.t;
perms : Unix.file_perm;
}
(** Ensure a directory exists. *)
val directory :
Fpath.t -> (unit -> (dir_state Lwt.t, unit) Action.t) -> ('ctx, (unit, [ `Resource ]) key) Rules.t
(** A simpler version of {!directory}, where nothing va... | 24 | 100 | 0.617063 |
17b8a8827a6ee1fd3fbe71e41b57654ac5cef212 | 14,432 | ml | OCaml | libraries/cloudtrail/lib/errors_internal.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | libraries/cloudtrail/lib/errors_internal.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | 1 | 2021-06-22T14:33:23.000Z | 2021-06-22T14:33:23.000Z | libraries/cloudtrail/lib/errors_internal.ml | Nymphium/ocaml-aws | 91567339845eedfe5dabbcfd229df3b38889a09e | [
"BSD-3-Clause"
] | null | null | null | type t =
| AuthFailure
| Blocked
| CloudTrailARNInvalidException
| CloudTrailAccessNotEnabledException
| CloudWatchLogsDeliveryUnavailableException
| DryRunOperation
| IdempotentParameterMismatch
| IncompleteSignature
| InsightNotEnabledException
| InsufficientDependencyServiceAccessPermiss... | 42.698225 | 76 | 0.795524 |
aa6f1fd843c41e5dc4dffdd5945ab00fbd6c3269 | 1,713 | ml | OCaml | atdgen/src/biniou.ml | returntocorp/atd | 9523f5a2f9d0844336381ae5d406a90d58347f52 | [
"BSD-3-Clause"
] | null | null | null | atdgen/src/biniou.ml | returntocorp/atd | 9523f5a2f9d0844336381ae5d406a90d58347f52 | [
"BSD-3-Clause"
] | null | null | null | atdgen/src/biniou.ml | returntocorp/atd | 9523f5a2f9d0844336381ae5d406a90d58347f52 | [
"BSD-3-Clause"
] | null | null | null | (*
Mapping from ATD to biniou
*)
type biniou_int =
[ `Svint | `Uvint | `Int8 | `Int16 | `Int32 | `Int64 ]
type biniou_float = [ `Float32 | `Float64 ]
type biniou_list = [ `Array | `Table ]
type biniou_field = { biniou_unwrapped : bool }
type biniou_repr =
| Unit
| Bool
| Int of biniou_int
| Float of ... | 18.619565 | 58 | 0.614711 |
170d9cd66a76ded699f10365fc7f79f9b7a4bec8 | 30,650 | ml | OCaml | Gillian-JS/lib/Semantics/JSILSMemory.ml | z5146542/Gillian | b4646d35932a9066cdbe9246536f38ddbe85c350 | [
"BSD-3-Clause"
] | null | null | null | Gillian-JS/lib/Semantics/JSILSMemory.ml | z5146542/Gillian | b4646d35932a9066cdbe9246536f38ddbe85c350 | [
"BSD-3-Clause"
] | null | null | null | Gillian-JS/lib/Semantics/JSILSMemory.ml | z5146542/Gillian | b4646d35932a9066cdbe9246536f38ddbe85c350 | [
"BSD-3-Clause"
] | null | null | null | open Gillian
open Gillian.Gil_syntax
open Javert_utils
open Js2jsil_lib
module GAsrt = Asrt
module SSubst = Gillian.Symbolic.Subst
module L = Logging
module SVal = Gillian.Symbolic.Values
module PFS = Gillian.Symbolic.PureContext
module TypEnv = Gillian.Symbolic.TypEnv
open Gillian.Logic
module M = struct
type vt = ... | 36.662679 | 117 | 0.531746 |
170f5bce236ec3c2ae3a8adb032c5ccce456d04b | 25,382 | mli | OCaml | ci/src/datakit_ci.mli | samoht/datakit | 5b98f909ef04ac686c65bee699ac3b53c727bd87 | [
"Apache-2.0"
] | null | null | null | ci/src/datakit_ci.mli | samoht/datakit | 5b98f909ef04ac686c65bee699ac3b53c727bd87 | [
"Apache-2.0"
] | null | null | null | ci/src/datakit_ci.mli | samoht/datakit | 5b98f909ef04ac686c65bee699ac3b53c727bd87 | [
"Apache-2.0"
] | null | null | null | (** Datakit CI
[Datakit_ci] is a library to describe reproducible, cachable and
distributed computations. The library is specialiazed to handle
build pipelines, where computations can take time, and where
seeing the live outputs of the computation is as useful as the
final step (think of live-logs ... | 34.627558 | 109 | 0.641912 |
cd8d7bd3a0a531d58d4c37e358ad88a1e0f244ee | 1,320 | mli | OCaml | lib/smyth/timer.mli | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 15 | 2020-08-27T10:51:14.000Z | 2021-12-24T08:17:28.000Z | lib/smyth/timer.mli | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 18 | 2020-06-28T18:13:20.000Z | 2021-03-12T16:18:05.000Z | lib/smyth/timer.mli | VictorYYW/smyth | 3ea96eaaf508883bd6259341165ffcc68c1b898a | [
"MIT"
] | 5 | 2021-02-23T16:22:25.000Z | 2022-01-24T18:36:45.000Z | (** A collection of timers used to cut off program execution early. *)
module Single : sig
(** The available single timers. *)
type t =
| Total (** The timer for the total synthesis time. *)
| Eval (** The timer for live evaluation and resumption. *)
val start : t -> unit
(** Starts the timer. *)
v... | 28.085106 | 83 | 0.633333 |
cd86f891d99a15dd7c56048531bb6d6c94cc6a08 | 12,384 | ml | OCaml | src/datastructure/signature.ml | slomo/leo2 | 7fb476ccdeb2e20e3b3d27b96fef878b3fc87cfd | [
"BSD-3-Clause"
] | 1 | 2017-07-08T22:01:26.000Z | 2017-07-08T22:01:26.000Z | src/datastructure/signature.ml | slomo/leo2 | 7fb476ccdeb2e20e3b3d27b96fef878b3fc87cfd | [
"BSD-3-Clause"
] | null | null | null | src/datastructure/signature.ml | slomo/leo2 | 7fb476ccdeb2e20e3b3d27b96fef878b3fc87cfd | [
"BSD-3-Clause"
] | null | null | null | (* ========================================================================= *)
(* The Signature *)
(* ========================================================================= *)
open Hol_type
open Term
open List
type ('a,'b) hashtbl = ('a,'b) Hashtbl.t
ty... | 32.166234 | 240 | 0.628068 |
17d1f5d0fc64721f263a9060efae084206884b4a | 1,160 | mll | OCaml | ag_pathanalysis/ocaml/yices_lexer.mll | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2019-12-05T19:47:42.000Z | 2021-05-05T13:41:16.000Z | ag_pathanalysis/ocaml/yices_lexer.mll | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | null | null | null | ag_pathanalysis/ocaml/yices_lexer.mll | BambooL/AutoGrader | f537d396605d1b943137b1b964c5a2ebecbf2aca | [
"MIT"
] | 2 | 2021-04-20T07:44:02.000Z | 2021-04-20T08:38:41.000Z | {
open Yices_grammar
(* TODO: add support for memories *)
exception LexError of string
}
let digit = ['0'-'9''A'-'F''a'-'f']
let varname = ['A'-'Z''a'-'z']['A'-'Z''a'-'z''0'-'9''_''['']']*
rule token = parse
| [' ' '\t' '\n'] { token lexbuf }
| '=' { EQUAL }
| ',' { COMMA }
|... | 27.619048 | 63 | 0.399138 |
17ae1ccc51ee7caf84336dcf541f502075f18839 | 114 | ml | OCaml | test/testdata/spdx_content_test/testcase.ml | dongzl/skywalking-eyes | 43bbe62e0002679e4e4d33b802d8eb4dc615bfae | [
"Apache-2.0"
] | null | null | null | test/testdata/spdx_content_test/testcase.ml | dongzl/skywalking-eyes | 43bbe62e0002679e4e4d33b802d8eb4dc615bfae | [
"Apache-2.0"
] | null | null | null | test/testdata/spdx_content_test/testcase.ml | dongzl/skywalking-eyes | 43bbe62e0002679e4e4d33b802d8eb4dc615bfae | [
"Apache-2.0"
] | null | null | null | (* SPDX-License-Identifier: Apache-2.0
let to_string = function Left -> "Left" | Non -> "Non" | Right -> "Right"
| 28.5 | 73 | 0.640351 |
cd1b9f14446f449c331a4e87358b8f136c67d01a | 11,360 | ml | OCaml | hphp/hack/src/hackfmt/solve_state.ml | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hackfmt/solve_state.ml | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hackfmt/solve_state.ml | fyunaz/hhvm | fc52cae6762431395818de9edbb0b918167c4b65 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
module Env = Format_env
open Hh_prelude
type t = {
chunk_group: Chunk_group.t;
lines: (int * ISet.t) list;
(*... | 31.555556 | 80 | 0.689789 |
aad4356ab9bec5fb561bcc73ada6bd690c9528ba | 7,757 | ml | OCaml | data/derived/comb/progs/unify/prog4483.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/prog4483.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4483.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.206081 | 148 | 0.688539 |
cd8d892483d46d550f53872f0f90895bf83e7487 | 11,004 | ml | OCaml | infer/src/concurrency/StarvationModels.ml | smorimoto/infer | 374c09c6c7f16e039455fe23cb82ad9eab1094c8 | [
"MIT"
] | 1 | 2019-11-23T14:35:34.000Z | 2019-11-23T14:35:34.000Z | infer/src/concurrency/StarvationModels.ml | imbsky/infer | 374c09c6c7f16e039455fe23cb82ad9eab1094c8 | [
"MIT"
] | null | null | null | infer/src/concurrency/StarvationModels.ml | imbsky/infer | 374c09c6c7f16e039455fe23cb82ad9eab1094c8 | [
"MIT"
] | null | null | null | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module F = Format
let is_synchronized_library_call =
let targets = ["java.lang.StringBuffer"; "java.util.Hashtable"; ... | 37.944828 | 106 | 0.66803 |
cd575dcb370822aa482a27f4357466696f956ba0 | 3,794 | mli | OCaml | hphp/hack/src/typing/write_symbol_info/symbol_add_fact.mli | donsbot/hhvm | ac98a590f75c569e1249b6c1145c7512c7bd240e | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2022-03-11T02:25:14.000Z | 2022-03-11T02:25:14.000Z | hphp/hack/src/typing/write_symbol_info/symbol_add_fact.mli | SNU-2D/hhvm | df882620c248a51cb5644acf8d176ea915289304 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/write_symbol_info/symbol_add_fact.mli | SNU-2D/hhvm | df882620c248a51cb5644acf8d176ea915289304 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
(*
* These functions build up the JSON necessary and then add facts
* to the running result.
*)
module Fact_id = Symbol_... | 22.187135 | 79 | 0.675277 |
cd93b675dc12415d84943750e99273f30f64c58a | 1,131 | ml | OCaml | src/tools/ini.ml | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 41 | 2015-02-11T03:23:36.000Z | 2020-12-27T12:13:52.000Z | src/tools/ini.ml | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 36 | 2015-01-04T16:58:51.000Z | 2020-11-12T12:05:37.000Z | src/tools/ini.ml | Incubaid/arakoon | 43a8d0b26e4876ef91d9657149f105c7e57e0cb0 | [
"Apache-2.0"
] | 7 | 2015-07-10T08:04:01.000Z | 2021-09-28T08:09:23.000Z | (*
Copyright (2010-2014) INCUBAID BVBA
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | 26.928571 | 84 | 0.721485 |
cd919df6d90599bbf3d5e5eb5b3c6ec36de09d19 | 476 | ml | OCaml | basis/Symbol.ml | clayrat/dreamtt | aa30a57ca869e91a295e586773a892c6601b5ddb | [
"Apache-2.0"
] | 75 | 2020-10-15T01:15:28.000Z | 2022-02-13T05:18:29.000Z | basis/Symbol.ml | clayrat/dreamtt | aa30a57ca869e91a295e586773a892c6601b5ddb | [
"Apache-2.0"
] | 14 | 2020-10-15T01:52:20.000Z | 2021-09-13T21:06:38.000Z | basis/Symbol.ml | clayrat/dreamtt | aa30a57ca869e91a295e586773a892c6601b5ddb | [
"Apache-2.0"
] | 4 | 2020-10-22T20:47:23.000Z | 2021-09-13T14:54:14.000Z | type t = {gen : int; name : string option}
let global = ref 0
let compare s1 s2 =
Int.compare s1.gen s2.gen
let equal s1 s2 =
s1.gen = s2.gen
let named_opt ostr =
let i = !global in
let s = {gen = i; name = ostr} in
global := i + 1;
s
let named str = named_opt (Some str)
let fresh () = named_opt None
... | 18.307692 | 52 | 0.62605 |
17722d3e4fcea90826bcc7950e2ad8934a2abefa | 1,243 | ml | OCaml | test/test.ml | avsm/git-delve | b44b130ad92781d23ef0fe58d70a51570c516e4e | [
"0BSD"
] | 6 | 2017-01-11T13:49:23.000Z | 2018-03-27T17:11:53.000Z | test/test.ml | avsm/git-delve | b44b130ad92781d23ef0fe58d70a51570c516e4e | [
"0BSD"
] | null | null | null | test/test.ml | avsm/git-delve | b44b130ad92781d23ef0fe58d70a51570c516e4e | [
"0BSD"
] | null | null | null | (*---------------------------------------------------------------------------
Copyright (c) 2017 Anil Madhavapeddy. All rights reserved.
Distributed under the ISC license, see terms at the end of the file.
%%NAME%% %%VERSION%%
---------------------------------------------------------------------------*)
(*-... | 56.5 | 79 | 0.571199 |
cd17ae72af40e9ad8e2313afff1d234528338220 | 20,584 | ml | OCaml | src/protocol/oBus_server.ml | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 14 | 2015-02-25T10:37:07.000Z | 2019-06-04T11:58:53.000Z | src/protocol/oBus_server.ml | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 10 | 2019-07-11T08:43:53.000Z | 2021-07-17T09:54:49.000Z | src/protocol/oBus_server.ml | NathanReb/obus | 8aaf3d4e5538e42a62ae206dcfc01d2b898e54dc | [
"BSD-3-Clause"
] | 7 | 2017-10-15T13:14:48.000Z | 2018-12-12T05:17:28.000Z | (*
* oBus_server.ml
* --------------
* Copyright : (c) 2008, Jeremie Dimino <jeremie@dimino.org>
* Licence : BSD3
*
* This file is a part of obus, an ocaml implementation of D-Bus.
*)
let section = Lwt_log.Section.make "obus(server)"
open Unix
open Lwt.Infix
(* +---------------------------------------------... | 39.814313 | 153 | 0.515449 |
cd9f8d78f4b557fa159e0ede6964c74456bcaa8b | 8,619 | ml | OCaml | ocaml/mlfind/src/finder.ml | clarkcb/xfind | fbe5d970d0a604e0d357a5c6d78eb26dbcd3294a | [
"MIT"
] | null | null | null | ocaml/mlfind/src/finder.ml | clarkcb/xfind | fbe5d970d0a604e0d357a5c6d78eb26dbcd3294a | [
"MIT"
] | null | null | null | ocaml/mlfind/src/finder.ml | clarkcb/xfind | fbe5d970d0a604e0d357a5c6d78eb26dbcd3294a | [
"MIT"
] | null | null | null | open Core.Std
open Common
module Regex = Re2.Regex
(* find :: Findsettings.t -> string list *)
let validate_settings (settings : Findsettings.t) =
let errs = [
if (List.is_empty settings.paths) then (Some "Startpath not defined") else None;
if (Sys.file_exists_exn settings.startpath) then None else (Some "S... | 46.842391 | 146 | 0.671888 |
cd1d5bbffb90df122a390a29b23d320ec43c3538 | 1,101 | ml | OCaml | data/derived/comb/progs/unify/prog4535.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/prog4535.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog4535.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 leng1 = List.length l1 in
let leng2 = List.length l2 in
(((clone 0 (leng2 - leng1)) @ l1), ((clone 0 (leng1 - leng2)) @ l2));;
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then removeZero t else l... | 33.363636 | 77 | 0.563124 |
172331b6dbaedc526e548f3ef39b9d380bc0a0f0 | 2,457 | ml | OCaml | src/usuba/src/normalization/expand_permut.ml | pedagand/Tornado | d44d20e1a1d1dc76eb3849d70960afff1de213a9 | [
"MIT"
] | 17 | 2020-05-14T06:31:19.000Z | 2020-12-27T08:25:58.000Z | src/usuba/src/normalization/expand_permut.ml | pedagand/Tornado | d44d20e1a1d1dc76eb3849d70960afff1de213a9 | [
"MIT"
] | 4 | 2020-05-17T15:07:08.000Z | 2021-03-14T11:14:04.000Z | src/usuba/src/normalization/expand_permut.ml | pedagand/Tornado | d44d20e1a1d1dc76eb3849d70960afff1de213a9 | [
"MIT"
] | 6 | 2020-05-20T05:36:00.000Z | 2021-03-14T10:55:47.000Z | (***************************************************************************** )
expand_permut.ml
This module converts permutation tables into regular nodes.
This is actually a temporary solution, as we'd rather like the permutation
tables to just rename registers.
After... | 39.629032 | 92 | 0.546195 |
cd9408f8ced859e6c9213d04b2ad0a00c5813f97 | 348 | ml | OCaml | hollight/test/amc12a-2020-p4.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 102 | 2021-05-04T09:50:13.000Z | 2022-03-27T12:00:05.000Z | hollight/test/amc12a-2020-p4.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 49 | 2021-05-06T09:36:49.000Z | 2022-03-31T18:58:23.000Z | hollight/test/amc12a-2020-p4.ml | openai/miniF2F | 8a41b05c9d8c49f0724f2e41d2236e6eb5e44cb7 | [
"MIT"
] | 17 | 2021-05-06T09:04:02.000Z | 2022-03-29T11:25:46.000Z | let amc12a-2020-p4 = `!a:num b:num c:num d:num.
(1 <= a /\ a <= 9 /\ EVEN a) /\
(0 <= b /\ b <= 9 /\ EVEN b) /\
(0 <= c /\ c <= 9 /\ EVEN c) /\
(0 <= d /\ d <= 9 /\ EVEN d) /\
(FINITE {n:num | (n = 10 * (10*(10*a + b) + c) + d /\ 5 divides n)})
==>
CARD {n:num | (n = 10 * (10*(10*a + b) + c) + d... | 34.8 | 74 | 0.367816 |
cd3d3404f6934e2242cb08c19593fc12137bc9c4 | 297 | mli | OCaml | src/Ast.mli | vmerckle/dlpag | 3739940ec39383624590e53d4510ce9c0f186778 | [
"BSD-2-Clause"
] | null | null | null | src/Ast.mli | vmerckle/dlpag | 3739940ec39383624590e53d4510ce9c0f186778 | [
"BSD-2-Clause"
] | null | null | null | src/Ast.mli | vmerckle/dlpag | 3739940ec39383624590e53d4510ce9c0f186778 | [
"BSD-2-Clause"
] | null | null | null | include module type of Types.AST with module T = Types.AST.T
module Print :
sig
val cname : T.cname -> string
val eoperator : T.eoperator -> string
val foperator : T.foperator -> string
val poperator : T.poperator -> string
val expr : T.expr -> string
val file : T.file -> string
end
| 24.75 | 60 | 0.686869 |
44533dfb52fa2f9be0ccd60b1ce271466fe7b3d9 | 13,873 | ml | OCaml | src/Helpers.ml | robinleander/kremlin | 89727358c7255a38005ce83e61df6c27de21450a | [
"Apache-2.0"
] | null | null | null | src/Helpers.ml | robinleander/kremlin | 89727358c7255a38005ce83e61df6c27de21450a | [
"Apache-2.0"
] | null | null | null | src/Helpers.ml | robinleander/kremlin | 89727358c7255a38005ce83e61df6c27de21450a | [
"Apache-2.0"
] | null | null | null | (** A bunch of little helpers to deal with our AST. *)
open Ast
open DeBruijn
open PrintAst.Ops
(** For each declaration in [files], call [f map decl], where [map] is the map
* being filled. *)
let build_map files f =
let map = Hashtbl.create 41 in
(object inherit [_] iter method visit_decl _ = f map end)#visit_... | 29.643162 | 96 | 0.605925 |
aa37c4dfa2e0b391dc98eb49537326b9d9a8b4f2 | 1,226 | ml | OCaml | lib/UInt128Value.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | lib/UInt128Value.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | lib/UInt128Value.ml | HadrienRenaud/herdtools7 | 3eb29a5a03e33b02505c63338e6bc10ab3da5a5b | [
"CECILL-B"
] | null | null | null | (****************************************************************************)
(* the diy toolsuite *)
(* *)
(* Jade Alglave, University College London, UK. *)
(* L... | 68.111111 | 78 | 0.407015 |
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.