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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bca257f6f27b002bfa630d0793d37541f925884b | 986 | mli | OCaml | src/typing/type_visitor.mli | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | src/typing/type_visitor.mli | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | null | null | null | src/typing/type_visitor.mli | disnet/flow | f916c6d4300220fda951d123b85b8f05a75a3427 | [
"MIT"
] | 2 | 2021-02-02T14:51:26.000Z | 2021-02-02T14:52:05.000Z | (**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
class ['a] t: object
(* Only exposing a few methods for now. *)
method type_ : Context.t -> Type.polarity -> 'a -> Type.t -> 'a
me... | 46.952381 | 91 | 0.633874 |
449dfaae81664c0c54e8ed4b671e5c10fc3d8026 | 2,195 | ml | OCaml | hphp/hack/src/typing/tast_check/string_cast_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/string_cast_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/typing/tast_check/string_cast_check.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"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
open Typing_defs
module Env = Tast_env
module SN = Naming_special_names
(** Produce an er... | 27.78481 | 85 | 0.66697 |
bcb523857ac1a7298bdecb3b25bf37e2ee76dcf0 | 1,482 | ml | OCaml | src/th-data/types.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | 12 | 2019-06-10T22:13:36.000Z | 2022-01-05T08:19:07.000Z | src/th-data/types.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | 10 | 2019-08-20T14:44:03.000Z | 2022-01-06T16:56:14.000Z | src/th-data/types.ml | c-cube/cdcl | 4cdbaf17bfa60e166f6404a071f520ed15e97ebe | [
"Apache-2.0"
] | 12 | 2019-07-17T16:00:18.000Z | 2021-12-06T18:24:08.000Z | (*
and datatype = {
data_cstors: data_cstor ID.Map.t lazy_t;
}
(* TODO: in cstor, add:
- for each selector, a special "magic" term for undefined, in
case the selector is ill-applied (Collapse 2) *)
(* a constructor *)
and data_cstor = {
cstor_ty: ty;
cstor_args: ty IArray.t; (* argument types *)
cst... | 27.962264 | 71 | 0.659919 |
bca5f871fc70b83a748ab6ed86d992b13bf4f601 | 71 | ml | OCaml | test/test.ml | npm-opam/ppx_optcomp | d4f8588b08cebe23aecf57de9d8cdb40f7625601 | [
"Apache-2.0"
] | 1 | 2021-12-17T03:01:57.000Z | 2021-12-17T03:01:57.000Z | test/test.ml | npm-opam/ppx_optcomp | d4f8588b08cebe23aecf57de9d8cdb40f7625601 | [
"Apache-2.0"
] | null | null | null | test/test.ml | npm-opam/ppx_optcomp | d4f8588b08cebe23aecf57de9d8cdb40f7625601 | [
"Apache-2.0"
] | 1 | 2021-12-17T03:02:53.000Z | 2021-12-17T03:02:53.000Z | #import "config.h"
#ifdef FOO
let x = true
#else
let y = false
#endif
| 8.875 | 18 | 0.661972 |
bce04a34332af898ef5834c798f37ea70afdc72e | 5,793 | ml | OCaml | lib/PCSat/classification/BFSB_Classifier.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 5 | 2021-05-01T05:32:32.000Z | 2021-12-18T08:57:13.000Z | lib/PCSat/classification/BFSB_Classifier.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | null | null | null | lib/PCSat/classification/BFSB_Classifier.ml | fahadnayyar/coar | 231ff92d5ce493922c66ec6beaa50c47bedc7295 | [
"Apache-2.0"
] | 1 | 2021-08-04T22:48:55.000Z | 2021-08-04T22:48:55.000Z | open Core
open Common
open Common.Util
open Ast
open Ast.LogicOld
open PCSatCommon
open Bf_synthesis
module Config = struct
type strategy =
| Single
| MultHeight of int
| MultSize of int
| SeqHeight of int
| SeqSize of int [@@ deriving yojson]
type t = {
verbose: bool;
qualifier_generat... | 42.595588 | 148 | 0.641809 |
8aa140e31c4aed48c3570fff623acaf8bf566446 | 3,845 | ml | OCaml | src/poly/interpret.ml | vrotaru/plzoo | ae6041c65baf1eebf65a60617819efeb8dcd3420 | [
"MIT"
] | 1,267 | 2015-01-01T18:23:48.000Z | 2022-03-31T06:31:51.000Z | src/poly/interpret.ml | vrotaru/plzoo | ae6041c65baf1eebf65a60617819efeb8dcd3420 | [
"MIT"
] | 20 | 2016-05-19T11:24:40.000Z | 2020-11-11T09:36:21.000Z | src/poly/interpret.ml | vrotaru/plzoo | ae6041c65baf1eebf65a60617819efeb8dcd3420 | [
"MIT"
] | 83 | 2015-07-04T15:28:52.000Z | 2022-03-24T13:11:49.000Z | (** An efficient interpreter. *)
open Syntax
type environment = (name * value ref) list
and value =
| VInt of int
| VBool of bool
| VNil
| VClosure of environment * expr
exception Runtime_error of string
let runtime_error msg = raise (Runtime_error msg)
let rec interp env = function
| Var x ->
(tr... | 32.584746 | 79 | 0.576593 |
bcc05e38b2e42909ebc22158c3cfedc72bfa69c3 | 20,652 | ml | OCaml | hphp/hack/src/hackfmt.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hackfmt.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hackfmt.ml | tahmidbintaslim/hhvm | 64adfea366cfcd3488bddd4b482d5d9963817db8 | [
"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.
*
*)
open Core_kernel
module SyntaxTree = Full_fidelity_syntax_tree
module SourceText = Full_fidelity_source_text
module ... | 32.990415 | 82 | 0.629092 |
bcb7f83a0c3f45f81ae82c4f2181ef2f33c3e3c5 | 1,347 | ml | OCaml | exercises/luhn/test.ml | fsalvini/ocaml | 6cc2df5cedb90688c63463cfaeea13cfafd35db8 | [
"MIT"
] | null | null | null | exercises/luhn/test.ml | fsalvini/ocaml | 6cc2df5cedb90688c63463cfaeea13cfafd35db8 | [
"MIT"
] | null | null | null | exercises/luhn/test.ml | fsalvini/ocaml | 6cc2df5cedb90688c63463cfaeea13cfafd35db8 | [
"MIT"
] | null | null | null | open Base
open OUnit2
open Luhn
let assert_valid expected input _test_ctxt =
assert_equal ~printer:Bool.to_string expected (valid input)
let tests = [
"single digit strings can not be valid" >::
assert_valid false "1";
"a single zero is invalid" >::
assert_valid false "0";
"a simple valid SIN that re... | 32.853659 | 62 | 0.687454 |
bc27fd8239ecfa7666b577792ab99c88dcdad97b | 40,570 | ml | OCaml | src/ocaml/typing/409/typetexp.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | src/ocaml/typing/409/typetexp.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | src/ocaml/typing/409/typetexp.ml | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* ... | 37.739535 | 80 | 0.595958 |
bc2a23a02444d934b996d18e6b1fa75063ef6da2 | 416 | mli | OCaml | hphp/hack/src/utils/core/exception.mli | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2019-10-03T00:45:08.000Z | 2019-10-03T00:45:08.000Z | hphp/hack/src/utils/core/exception.mli | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | 8 | 2020-04-06T11:23:08.000Z | 2022-03-24T12:41:12.000Z | hphp/hack/src/utils/core/exception.mli | enjmusic/hhvm | 5e931f1beea84a609fbe71872a8f2101ee516d86 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type t
val wrap: exn -> t
val reraise: t -> 'a
val to_string: t -> string
val get_ctor_string: t -> string
val get_backtrace_string: t... | 19.809524 | 66 | 0.716346 |
bcbea01bb2ede863d3301e9fd84e904ec45346cd | 1,991 | ml | OCaml | lib/bindings.ml | yallop/ocaml-ctypes-inverted-stubs-example | 8e9ff91b591a5a3043b31deed72153e81b825a10 | [
"MIT"
] | 28 | 2015-06-05T04:52:22.000Z | 2022-01-31T18:42:18.000Z | lib/bindings.ml | yallop/ocaml-ctypes-inverted-stubs-example | 8e9ff91b591a5a3043b31deed72153e81b825a10 | [
"MIT"
] | 11 | 2015-11-10T14:42:51.000Z | 2018-08-29T07:01:09.000Z | lib/bindings.ml | yallop/ocaml-ctypes-inverted-stubs-example | 8e9ff91b591a5a3043b31deed72153e81b825a10 | [
"MIT"
] | 10 | 2015-06-04T20:13:55.000Z | 2020-05-19T13:45:09.000Z | (*
* Copyright (c) 2014-2015 Jeremy Yallop.
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*)
open Ctypes
open Foreign
(* Define a struct of callbacks (C function pointers) *)
let handlers : [`handlers] structure typ = structure "handlers"
let (--) s f = fiel... | 33.745763 | 84 | 0.636364 |
bcb396fb0cdabedf18ca88138f2efd347f707ede | 21,226 | ml | OCaml | lib/fs.ml | samoht/ocaml-fat | 536b33826a8882edd9361ed71a1636a016ab1082 | [
"0BSD"
] | null | null | null | lib/fs.ml | samoht/ocaml-fat | 536b33826a8882edd9361ed71a1636a016ab1082 | [
"0BSD"
] | null | null | null | lib/fs.ml | samoht/ocaml-fat | 536b33826a8882edd9361ed71a1636a016ab1082 | [
"0BSD"
] | null | null | null | (*
* Copyright (C) 2011-2013 Citrix Systems Inc
*
* 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" AND THE AUTHO... | 41.215534 | 118 | 0.619806 |
bcc59f04ecd1f1751121dd4751871faf98440280 | 23 | ml | OCaml | src/bin/todo/todo.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 24 | 2019-04-13T21:09:47.000Z | 2022-03-28T10:43:52.000Z | src/bin/todo/todo.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 5 | 2019-10-21T08:15:39.000Z | 2020-03-12T08:41:58.000Z | src/bin/todo/todo.ml | ludovicdeluna/planet | 753a68d96ec7933697e9c6d2b15ee2a494da4ecd | [
"MIT"
] | 1 | 2020-03-12T08:24:13.000Z | 2020-03-12T08:24:13.000Z | let () = Cli.invoke ()
| 11.5 | 22 | 0.521739 |
bce8e79c304698f8f3de4b3b8d3a17ff1cef104a | 3,576 | ml | OCaml | src/tree_traversal/tree_traversal.ml | yuanqing/code-problems | 30eb34ad616146306cddc50594a47deff111f341 | [
"MIT"
] | 8 | 2017-04-21T17:30:09.000Z | 2020-10-28T21:14:11.000Z | src/tree_traversal/tree_traversal.ml | yuanqing/code-problems | 30eb34ad616146306cddc50594a47deff111f341 | [
"MIT"
] | null | null | null | src/tree_traversal/tree_traversal.ml | yuanqing/code-problems | 30eb34ad616146306cddc50594a47deff111f341 | [
"MIT"
] | 3 | 2018-01-18T22:45:50.000Z | 2020-10-29T03:04:34.000Z | type 'a node =
| Empty
| Node of 'a * 'a node * 'a node
let naive_pre_order (x:'a node) : 'a list =
let rec aux x =
match x with
| Empty -> []
| Node (v, l, r) -> v::(aux l)@(aux r) in
aux x
let pre_order (x:'a node) : 'a list =
let rec aux l rs =
match l with
| Empty ->
(*... | 29.8 | 78 | 0.513423 |
bc8cfc5e48aec1794a0b60d2c1e4da4647eeba19 | 408 | ml | OCaml | data/derived/fa15/progs/cnstr/prog0851.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | 4 | 2017-07-04T22:30:05.000Z | 2021-03-29T14:44:52.000Z | data/derived/fa15/progs/cnstr/prog0851.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/cnstr/prog0851.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;;
let rec exprToString e =
match e with
| VarX -> "x"
| VarY -> "y"
| Sine e1 -> "sin" + (exprToSring e1)
| Cosine e1 -> "cos" + (exprToString e1)
| Av... | 20.4 | 43 | 0.544118 |
bc76c6ec4c24c62f93abafbb8cb2324ae03cfe60 | 788 | mli | OCaml | src/ocaml-3.12.0/otherlibs/lablGL/gluQuadric.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/otherlibs/lablGL/gluQuadric.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/otherlibs/lablGL/gluQuadric.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (* $Id: gluQuadric.mli,v 1.2 1999/11/15 14:32:14 garrigue Exp $ *)
type t
val create : unit -> t
(* If you omit the quadric, a new one will be created *)
val cylinder :
base:float -> top:float ->
height:float -> slices:int -> stacks:int -> ?quad:t -> unit -> unit
val disk :
inner:float -> outer:float ->
sl... | 25.419355 | 69 | 0.615482 |
bceabc93f69dc656b66606f1df4839244fadc2c2 | 7,652 | ml | OCaml | src/enfa.ml | Drup/regular_bazar | 21c914eb5e198e4057b2339cbd049c655d47c66f | [
"0BSD"
] | 3 | 2022-03-30T17:27:23.000Z | 2022-03-31T08:01:59.000Z | src/enfa.ml | Drup/regular_bazar | 21c914eb5e198e4057b2339cbd049c655d47c66f | [
"0BSD"
] | null | null | null | src/enfa.ml | Drup/regular_bazar | 21c914eb5e198e4057b2339cbd049c655d47c66f | [
"0BSD"
] | null | null | null | (** Non-Deterministic Finite Automatons with ε-transitions *)
(* Partially stolen from https://github.com/yallop/ocaml-re-nfa *)
module State : sig
type t
val pp : t Fmt.t
val gen : string -> t
val compare : t -> t -> int
val id : t -> int
val name : t -> string
end = struct
type t = { id : int ; name :... | 30.125984 | 88 | 0.576843 |
bcba239dae6b49a7d2aebcda7023224c22badb4c | 20,372 | ml | OCaml | src/Synthesizer.ml | SaswatPadhi/LIG-CHC | 221c3f1c2996ced60384abb8716239086d24ec53 | [
"MIT"
] | null | null | null | src/Synthesizer.ml | SaswatPadhi/LIG-CHC | 221c3f1c2996ced60384abb8716239086d24ec53 | [
"MIT"
] | null | null | null | src/Synthesizer.ml | SaswatPadhi/LIG-CHC | 221c3f1c2996ced60384abb8716239086d24ec53 | [
"MIT"
] | null | null | null | open Core_kernel
open Exceptions
open Utils
module Config = struct
type cost_attr = Height | Size
type t = {
cost_limit : int ;
cost_attribute : cost_attr ;
logic : Logic.t ;
max_expressiveness_level : int ;
min_satisfaction : float ;
order : int -> int -> float ;
}
let default : t =... | 47.266821 | 163 | 0.550167 |
bcce574e23e45f985cac11cf5e1f000d908c735a | 1,272 | mli | OCaml | subtyping/subtyping_build_regexp.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | subtyping/subtyping_build_regexp.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | subtyping/subtyping_build_regexp.mli | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 45.428571 | 116 | 0.417453 |
44ea1dd313f9e6f11d9b4bf45beca480a653afc7 | 948 | mli | OCaml | src/ocaml-3.12.0/driver/opterrors.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | 1 | 2015-01-27T00:11:26.000Z | 2015-01-27T00:11:26.000Z | src/ocaml-3.12.0/driver/opterrors.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | src/ocaml-3.12.0/driver/opterrors.mli | mzp/coq-for-ipad | 4fb3711723e2581a170ffd734e936f210086396e | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* Objective Caml *)
(* *)
(* Xavier Ler... | 52.666667 | 73 | 0.306962 |
bc05c43007fe0787c11a7d4f014049abe4a155f0 | 97 | mli | OCaml | crypto.mli | constfun/esns | a06f749f733516bf166b96ab4103a26fb0e5048f | [
"BSD-2-Clause"
] | 2 | 2020-03-21T01:32:04.000Z | 2020-03-21T01:38:30.000Z | crypto.mli | constfun/esns | a06f749f733516bf166b96ab4103a26fb0e5048f | [
"BSD-2-Clause"
] | null | null | null | crypto.mli | constfun/esns | a06f749f733516bf166b96ab4103a26fb0e5048f | [
"BSD-2-Clause"
] | 1 | 2020-03-21T01:32:05.000Z | 2020-03-21T01:32:05.000Z | type t
val create : string -> t
val with_file : string -> key:t -> f:(string -> string) -> unit
| 19.4 | 63 | 0.618557 |
bc44a406e6f22230194d092cc652d4c39fd31622 | 579 | ml | OCaml | src/owl/sparse/owl_sparse_ndarray_c.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/owl/sparse/owl_sparse_ndarray_c.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | src/owl/sparse/owl_sparse_ndarray_c.ml | pvdhove/owl | 072a7dba92cd52d7c87ab3dd5ec1e4c11a3cdf31 | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific and Engineering Computing
* Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk>
*)
open Bigarray
module M = Owl_sparse_ndarray_generic
include M
type elt = Complex.t
type arr = (Complex.t, Bigarray.complex32_elt) Owl_sparse_ndarray_generic.t
(* overload functions in Owl_dense... | 23.16 | 75 | 0.753022 |
bcebb4ef2372ca8f72ea8b2d605bed38a99f1409 | 1,169 | ml | OCaml | benchmarks/I/diff/sub125.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/I/diff/sub125.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/I/diff/sub125.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (* problem 4*)
type aexp =
| Const of int
| Var of string
| Power of string * int
| Times of aexp list
| Sum of aexp list
let rec diff : aexp * string -> aexp
= fun (e,x) -> match e with
| Const(a) -> Const(0)
| Var(a) -> if a = x then Const(1) else Var(a)
| P... | 44.961538 | 92 | 0.33704 |
bc0f07f9a697e50eebc2f94051120ffcb29c8093 | 31,308 | ml | OCaml | src/ast/analyzing/diffastcore.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 4 | 2021-03-26T01:43:06.000Z | 2022-02-22T13:16:26.000Z | src/ast/analyzing/diffastcore.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 2 | 2020-10-25T07:44:54.000Z | 2021-03-28T08:15:14.000Z | src/ast/analyzing/diffastcore.ml | petr-bauch/cca | 6011c602e1184fff4fc9a9b880cb59a070746929 | [
"Apache-2.0"
] | 3 | 2017-02-28T02:57:32.000Z | 2022-02-09T07:01:11.000Z | (*
Copyright 2012-2020 Codinuum Software Lab <https://codinuum.com>
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... | 34.480176 | 109 | 0.549253 |
bc429656282c708a62c96b5c702247f38b8f97d7 | 9,068 | ml | OCaml | src/proto_013_PtJakart/lib_protocol/test/helpers/lqt_fa12_repr.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_013_PtJakart/lib_protocol/test/helpers/lqt_fa12_repr.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | src/proto_013_PtJakart/lib_protocol/test/helpers/lqt_fa12_repr.ml | maiste-forks/tezos | ec9b0074da63e061fafa8635b5acba3e052f6df1 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021-2022 Nomadic Labs <contact@nomadic-labs.com> *)
... | 36.272 | 88 | 0.578738 |
bc626691016bf759972113796ebe452220ce9a4f | 3,661 | mli | OCaml | src/sentry.mli | gtrak/sentry-ocaml | 3bd66c490ae91ada771968204f8ccdcdc531571c | [
"Unlicense"
] | null | null | null | src/sentry.mli | gtrak/sentry-ocaml | 3bd66c490ae91ada771968204f8ccdcdc531571c | [
"Unlicense"
] | null | null | null | src/sentry.mli | gtrak/sentry-ocaml | 3bd66c490ae91ada771968204f8ccdcdc531571c | [
"Unlicense"
] | null | null | null | open Core_kernel
open Async_kernel
module Breadcrumb = Breadcrumb
module Client = Client
module Config = Config
module Context = Context
module Dsn = Dsn
module Event = Event
module Exception = Exception
module Platform = Platform
module Sdk = Sdk
module Severity_level = Severity_level
(** [with_dsn dsn f] overrides ... | 38.135417 | 83 | 0.706638 |
44a2cbb2e6b53716753038fac97d41cff35b9d91 | 1,326 | ml | OCaml | src/stdlib.ml | idkjs/bs-stdlib-shims | 66f64c315f831e45b880192fcf09cc31b8b39588 | [
"BSD-3-Clause"
] | null | null | null | src/stdlib.ml | idkjs/bs-stdlib-shims | 66f64c315f831e45b880192fcf09cc31b8b39588 | [
"BSD-3-Clause"
] | null | null | null | src/stdlib.ml | idkjs/bs-stdlib-shims | 66f64c315f831e45b880192fcf09cc31b8b39588 | [
"BSD-3-Clause"
] | null | null | null | module Arg = Arg
module Array = Array
module ArrayLabels = ArrayLabels
module Buffer = Buffer
module Bytes = Bytes
module BytesLabels = BytesLabels
module Callback = Callback
module Char = Char
module Complex = Complex
module Digest = Digest
module Filename = Fi... | 28.826087 | 37 | 0.604072 |
bc7b0351b83422d737a61f6eba20db048e6c3b28 | 7,750 | ml | OCaml | data/derived/comb/progs/unify/prog2007.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/prog2007.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog2007.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.271186 | 148 | 0.688774 |
bcebff985563554adb73f9de53dc1384d918daa0 | 193 | ml | OCaml | benchmarks/C/iter/sol244.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/iter/sol244.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/iter/sol244.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (*
2011-10634
JooHyun Jo / Major in Economics
problem 3 for HW1
*)
let rec iter ((n:int), (f:'a->'a)):('a->'a)=
match n with
|0 -> fun x -> x
|_ -> fun x -> (iter ((n-1), f)) (f x)
| 16.083333 | 44 | 0.502591 |
44c2dc6f69c40ce0ed4b42c3c14eb45a5905ff02 | 2,062 | ml | OCaml | data/sp14/1346.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/sp14/1346.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/sp14_min/1346.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 = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
let l = (List.length l1) - (List.length l2) in
if l < 0
then (((clone 0 ((-1) * l)) @ l1), l2)
else (l1, ((clone 0 l) @ l2));;
let rec removeZero l =
match l with | [] -> [] | h::t -> if h = 0 then removeZero t else h :... | 25.45679 | 109 | 0.517459 |
8aa9d4d6d2cd8c0deb9bef531e815a84a641411a | 2,982 | ml | OCaml | controller/selection_and_mutate.ml | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | controller/selection_and_mutate.ml | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | controller/selection_and_mutate.ml | fyquah95/fyp-worker-dispatcher | 1ebf764e41202d18ccd1013ec2270caa6c44565a | [
"RSA-MD",
"CECILL-B"
] | null | null | null | [@@@ocaml.warning "+a-4-9-30-40-41-42-44"]
open Core
module Data_collector = Fyp_compiler_lib.Data_collector.V0
module Results = Protocol.Results
type exec_time =
{ exec_times : float Array.t;
mean : float;
id : Results.Work_unit_id.t;
}
let selection all_results =
let rec loop exec_time... | 33.505618 | 72 | 0.595238 |
bcc52f39273dc9cdab5d5eceb49276bef6c9e40b | 306,711 | ml | OCaml | src/typing/statement.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"MIT"
] | null | null | null | src/typing/statement.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"MIT"
] | null | null | null | src/typing/statement.ml | kof/flow | 39cb6bd32f0ce1d1258f0a582dc3b9844135713f | [
"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 Tast_utils = Typed_ast_utils
(* This module contains the traversal functions which set up subtyping
... | 42.693625 | 104 | 0.564616 |
8ad1f53be1b5cbea41c14e64aa628e12fe5c93e1 | 2,188 | ml | OCaml | src/ocaml_400/parsing/syntaxerr.ml | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | src/ocaml_400/parsing/syntaxerr.ml | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | src/ocaml_400/parsing/syntaxerr.ml | jpdeplaix/merlin | 81a6f05bcdc32ab2ec32057bd37dd0d6db315426 | [
"MIT"
] | null | null | null | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Ler... | 41.283019 | 75 | 0.504113 |
bc1012c4e7f43b03a0467272b75db60262b87d8f | 3,573 | mli | OCaml | src/proto_alpha/lib_delegate/baking_scheduling.mli | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/baking_scheduling.mli | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | src/proto_alpha/lib_delegate/baking_scheduling.mli | Sudha247/tezos | 63361867c3b3c18c530f5636254a0c5541dc041e | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 42.535714 | 79 | 0.589141 |
bcb80c2fad7f28badf4fa126c58bb56a9699c22b | 2,686 | ml | OCaml | hphp/hack/src/server/serverIdentifyFunction.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverIdentifyFunction.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/server/serverIdentifyFunction.ml | sathvikl/hiphop-php | 34fa1033968d6ef243dcdb46eca2289d6ad674d2 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
open Core
ope... | 37.830986 | 80 | 0.752792 |
bcebd19729e55ff0f2e4dfc7aa09695cb0ae13e9 | 2,037 | mli | OCaml | CodeHawk/CHB/bchlibarm32/bCHARMAssemblyInstructions.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 17 | 2020-08-17T15:35:57.000Z | 2022-03-23T14:40:19.000Z | CodeHawk/CHB/bchlibarm32/bCHARMAssemblyInstructions.mli | Databean/codehawk | 91bef3806d87d93b4371a4d1c22a7dc8648e2a16 | [
"MIT"
] | 6 | 2020-07-17T05:43:51.000Z | 2021-01-06T03:41:46.000Z | CodeHawk/CHB/bchlibarm32/bCHARMAssemblyInstructions.mli | sipma/codehawk | e4eeb41fdea6a8467d1892b9467ec54ef04953b0 | [
"MIT"
] | 3 | 2020-08-13T23:18:39.000Z | 2021-12-11T11:10:06.000Z | (* =============================================================================
CodeHawk Binary Analyzer
Author: Henny Sipma
------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2021 Aarno Labs, LLC
Permission is hereby granted, free o... | 41.571429 | 83 | 0.672558 |
bce05ff0d179b355f7beee3cb1206d1999cbc47f | 22,043 | ml | OCaml | src/xref/component_table.ml | ocamllabs/odoc-dev | d4b1b9479eb200a5b67b1e266c4d2423da889a8e | [
"0BSD"
] | 1 | 2018-03-14T23:24:55.000Z | 2018-03-14T23:24:55.000Z | src/xref/component_table.ml | ocamllabs/odoc-dev | d4b1b9479eb200a5b67b1e266c4d2423da889a8e | [
"0BSD"
] | null | null | null | src/xref/component_table.ml | ocamllabs/odoc-dev | d4b1b9479eb200a5b67b1e266c4d2423da889a8e | [
"0BSD"
] | null | null | null | (*
* Copyright (c) 2014 Leo White <lpw25@cl.cam.ac.uk>
*
* 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" AND TH... | 32.949178 | 80 | 0.640748 |
447c5185a95f741849f3623e2d64839429245dfb | 13,435 | ml | OCaml | src/codemods/utils/codemod_annotator.ml | sharique413/flow | 8a755602f9f3f07f52a79192698d36326056b266 | [
"MIT"
] | null | null | null | src/codemods/utils/codemod_annotator.ml | sharique413/flow | 8a755602f9f3f07f52a79192698d36326056b266 | [
"MIT"
] | 3 | 2021-08-21T07:49:07.000Z | 2022-02-27T23:12:34.000Z | src/codemods/utils/codemod_annotator.ml | sharique413/flow | 8a755602f9f3f07f52a79192698d36326056b266 | [
"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 LSet = Loc_collections.LocSet
module ALSet = Loc_collections.ALocSet
module LMap = Loc_collections.Loc... | 34.626289 | 98 | 0.593971 |
8af499f0332546c92837e163a69d24ba92ebe6d3 | 11,281 | ml | OCaml | tests/idempotency/lwt/ppx/ppx_lwt.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 166 | 2020-08-11T15:49:10.000Z | 2022-03-23T17:28:36.000Z | tests/idempotency/lwt/ppx/ppx_lwt.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 305 | 2020-08-12T07:41:01.000Z | 2022-03-25T06:33:14.000Z | tests/idempotency/lwt/ppx/ppx_lwt.ml | cknitt/syntax | b6932372454c0c635dc3746c18df5cb059c1ded1 | [
"MIT"
] | 19 | 2020-08-30T14:25:33.000Z | 2022-03-21T07:58:43.000Z | open! Migrate_parsetree
open! OCaml_411.Ast
open Ast_mapper
open! Ast_helper
open Asttypes
open Parsetree
open Ast_convenience_411
(** {2 Convenient stuff} *)
let with_loc f {txt ; loc = _loc} =
(f txt) [@metaloc _loc]
(** Test if a case is a catchall. *)
let is_catchall case =
let rec is_catchall_pat p = match... | 30.654891 | 93 | 0.566085 |
bc69dea7c9368b6709b5bc1c01d9e2470916928a | 3,233 | ml | OCaml | src/fold_main.ml | rizo/fold-pratt | 84029a7b3d59200ef7fdfb87385752ea4e9eef94 | [
"Apache-2.0"
] | 1 | 2017-07-21T13:08:10.000Z | 2017-07-21T13:08:10.000Z | src/fold_main.ml | rizo/fold-pratt | 84029a7b3d59200ef7fdfb87385752ea4e9eef94 | [
"Apache-2.0"
] | null | null | null | src/fold_main.ml | rizo/fold-pratt | 84029a7b3d59200ef7fdfb87385752ea4e9eef94 | [
"Apache-2.0"
] | null | null | null |
module Lang = Fold_lang
module Eval = Fold_evaluator
open Elements
open Pratt
open Pratt.Foundation
open Pratt.Syntax
open Pratt.Lexer
open Pratt.Parser
open Pratt.Env
module List = ListLabels
let fold_logo =
blue (" ▗▐▝ ▐▐ ▐▐ ") ^ ("|" ^ bright_white " A modern pragmatic functional language.\... | 32.009901 | 111 | 0.52923 |
bcf0971056673bfcf3b1e1b788db3556e79f9ee4 | 109 | ml | OCaml | benchmarks/C/sigma/sol269.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | 9 | 2021-06-04T04:38:13.000Z | 2021-12-15T05:45:28.000Z | benchmarks/C/sigma/sol269.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | benchmarks/C/sigma/sol269.ml | kupl/LearnML | 933f6c61f8a24493e1c2c8acf5c93827ee190d2a | [
"MIT"
] | null | null | null | let func n = n+1
let rec sigma f a b =
if a=b then f a
else if a>b then 0
else (f b) + sigma f a (b-1)
| 15.571429 | 29 | 0.568807 |
bcd5e14bc105c85044b216ba6997836b1244e146 | 4,436 | ml | OCaml | src/cinaps.ml | kit-ty-kate/dune | 7b37f89424e39d212f8efca29e38f9895031d5b7 | [
"MIT"
] | null | null | null | src/cinaps.ml | kit-ty-kate/dune | 7b37f89424e39d212f8efca29e38f9895031d5b7 | [
"MIT"
] | null | null | null | src/cinaps.ml | kit-ty-kate/dune | 7b37f89424e39d212f8efca29e38f9895031d5b7 | [
"MIT"
] | null | null | null | open Import
open! No_io
open Build.O
type t =
{ loc : Loc.t
; files : Predicate_lang.t
; libraries : Dune_file.Lib_dep.t list
; preprocess : Dune_file.Preprocess_map.t
; preprocessor_deps : Dune_file.Dep_conf.t list
; flags : Ocaml_flags.Spec.t
}
type Stanza.t += T of t
let syntax =
Syntax.create
... | 29.573333 | 79 | 0.6578 |
bc20b08c05e05b80640eb5c8eee137c6b1a26277 | 23,031 | ml | OCaml | src/camlsnark_c/bindings/bindings.ml | kunxian-xia/snarky | d2b475c55a15da933a6ddff2e6218b89bacccf57 | [
"MIT"
] | null | null | null | src/camlsnark_c/bindings/bindings.ml | kunxian-xia/snarky | d2b475c55a15da933a6ddff2e6218b89bacccf57 | [
"MIT"
] | null | null | null | src/camlsnark_c/bindings/bindings.ml | kunxian-xia/snarky | d2b475c55a15da933a6ddff2e6218b89bacccf57 | [
"MIT"
] | null | null | null | open Core_kernel
open Ctypes
open Bindings_base
open Backend_types
module Group_coefficients (Fq : Foreign_intf) = struct
module type Bound = sig
include Foreign_types
val a : (unit -> Fq.t return) result
val b : (unit -> Fq.t return) result
end
module Bind
(F : Ctypes.FOREIGN) (P : sig
... | 24.397246 | 80 | 0.590639 |
bcd2434d3731fa57f209145037f48242b58a8c01 | 9,439 | ml | OCaml | hphp/hack/src/hhbc/ast_constant_folder.ml | thekid/hhvm | 3f7d3bdde3cbab3b90dd0f156ae56445738432b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/ast_constant_folder.ml | thekid/hhvm | 3f7d3bdde3cbab3b90dd0f156ae56445738432b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/hhbc/ast_constant_folder.ml | thekid/hhvm | 3f7d3bdde3cbab3b90dd0f156ae56445738432b1 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (**
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the "hack" directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*)
module A = Ast
... | 34.075812 | 84 | 0.660769 |
bc69743acb82f6461c636f6334aff9da4dce8319 | 8,032 | ml | OCaml | data/derived/comb/progs/unify/prog7867.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/prog3072.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog3072.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.498413 | 148 | 0.659612 |
44b50a9e0e6bdafb0bc8c86ea980cda3f16ef9fb | 3,953 | mli | OCaml | ast_convenience_405.mli | let-def/ppx_tools | 00a0150cdabfa7f0dad2c5e0e6b32230d22295ca | [
"MIT"
] | 13 | 2017-08-18T14:31:59.000Z | 2020-07-16T02:38:52.000Z | ast_convenience_405.mli | let-def/ppx_tools | 00a0150cdabfa7f0dad2c5e0e6b32230d22295ca | [
"MIT"
] | 26 | 2017-12-25T02:40:38.000Z | 2021-09-16T15:59:11.000Z | ast_convenience_405.mli | let-def/ppx_tools | 00a0150cdabfa7f0dad2c5e0e6b32230d22295ca | [
"MIT"
] | 12 | 2017-09-18T05:06:27.000Z | 2021-12-12T19:18:57.000Z | open Migrate_parsetree.Ast_405
(* This file is part of the ppx_tools package. It is released *)
(* under the terms of the MIT license (see LICENSE file). *)
(* Copyright 2013 Alain Frisch and LexiFi *)
(** {1 Convenience functions to help build and deconstruct AST fragments.} *)
open... | 34.982301 | 113 | 0.674172 |
bcba7ae8119d88efb6d1c5d6e1820ff8f072e190 | 1,167 | ml | OCaml | vendor/async_unix/src/time_source_tests.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 24 | 2015-02-10T21:51:44.000Z | 2022-03-20T23:00:46.000Z | vendor/async_unix/src/time_source_tests.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 18 | 2015-01-29T03:57:07.000Z | 2021-05-30T05:40:22.000Z | vendor/async_unix/src/time_source_tests.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 23 | 2015-02-04T18:52:09.000Z | 2022-02-17T20:25:31.000Z | open! Core
open! Import
module Time_source = Async_kernel.Time_source
let run_cycles_until_no_jobs_remain = Kernel_scheduler.run_cycles_until_no_jobs_remain
let%bench_module "Clock.every" =
(module struct
let scheduler = Kernel_scheduler.t ()
let time_source = scheduler.time_source |> Time_source.of_synchro... | 28.463415 | 86 | 0.634961 |
bcde894b219a22c598ca3e06b9ca8fc98700ae52 | 454 | mli | OCaml | src/libexec/bcm283x/mmap32.mli | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 2 | 2015-09-23T19:18:50.000Z | 2015-09-24T21:08:13.000Z | src/libexec/bcm283x/mmap32.mli | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | 3 | 2015-09-24T20:38:41.000Z | 2015-09-26T21:26:49.000Z | src/libexec/bcm283x/mmap32.mli | bendiken/consensus | e03328ef1f0056b58e4ffe181a279a1dc776e094 | [
"Unlicense"
] | null | null | null | (* This is free and unencumbered software released into the public domain. *)
(* read addr offset return value read *)
external read: int32 -> int -> int32 = "caml_mmap32_read"
(* write addr offset data return unit *)
external write: int32 -> int -> int32 -> unit = "caml_mmap32_write"
(* mmap addr len return locatio... | 30.266667 | 77 | 0.693833 |
bc9ff9e1918be4020b601de1dd005740e1d73a7a | 5,784 | ml | OCaml | lib/http2.ml | pm-mck/piaf | eeb774cac3dd3ce0b2d69c9db18ee0b2285f69a3 | [
"BSD-3-Clause"
] | null | null | null | lib/http2.ml | pm-mck/piaf | eeb774cac3dd3ce0b2d69c9db18ee0b2285f69a3 | [
"BSD-3-Clause"
] | null | null | null | lib/http2.ml | pm-mck/piaf | eeb774cac3dd3ce0b2d69c9db18ee0b2285f69a3 | [
"BSD-3-Clause"
] | null | null | null | (*----------------------------------------------------------------------------
* Copyright (c) 2019-2020, António Nuno Monteiro
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redist... | 35.484663 | 79 | 0.667877 |
bc3fed4968289a2df2221e7c3f61f6b82362ee63 | 5,171 | ml | OCaml | src/dune_engine/fs_memo.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | null | null | null | src/dune_engine/fs_memo.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | null | null | null | src/dune_engine/fs_memo.ml | Niols/dune | 6481d0fac8ebf670957de0916b271562f50c954c | [
"MIT"
] | null | null | null | open! Stdune
open! Import
open Memo.Build.O
(* Files and directories have non-overlapping sets of paths, so we can track
them using the same memoization table. *)
let memo =
Memo.create "fs_memo" ~input:(module Path) (fun _path -> Memo.Build.return ())
(* Declare a dependency on a path. Instead of calling [depen... | 39.473282 | 80 | 0.735254 |
bca8bbf5a1dfcad453acfd56edc3cad1130e637f | 936 | mli | OCaml | src/procs/multiWorkerLwt.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 1 | 2021-09-20T07:39:05.000Z | 2021-09-20T07:39:05.000Z | src/procs/multiWorkerLwt.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | null | null | null | src/procs/multiWorkerLwt.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"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 Hh_bucket = Bucket
type worker
val call :
worker list option ->
job:('c -> 'a -> 'b) ->
merge:('b -> 'c -> 'c) ->
... | 23.4 | 78 | 0.660256 |
bc70f1735b775e80506892ae4cc98a42bfbd67d5 | 381 | ml | OCaml | node-test/bindings/expected/console.ml | cannorin/gen_js_api | c5c4de90f76c21040a4c6e591c57ec6ae820ff05 | [
"MIT"
] | null | null | null | node-test/bindings/expected/console.ml | cannorin/gen_js_api | c5c4de90f76c21040a4c6e591c57ec6ae820ff05 | [
"MIT"
] | null | null | null | node-test/bindings/expected/console.ml | cannorin/gen_js_api | c5c4de90f76c21040a4c6e591c57ec6ae820ff05 | [
"MIT"
] | null | null | null | [@@@js.dummy "!! This code has been generated by gen_js_api !!"]
[@@@ocaml.warning "-7-32-39"]
let (log : 'a -> unit) =
fun x1 ->
ignore
(Ojs.call (Ojs.get_prop_ascii Ojs.global "console") "log"
[|(Obj.magic x1)|])
let (error : 'a -> unit) =
fun x2 ->
ignore
(Ojs.call (Ojs.get_prop_asci... | 29.307692 | 65 | 0.56168 |
441316421bda78b1e6d0ee6d025f439151a2bac3 | 8,738 | ml | OCaml | infer/src/java/jFrontend.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | infer/src/java/jFrontend.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | infer/src/java/jFrontend.ml | ryoon/infer | 7b8dc59386529801f9a7fb67ead94053dbf53b42 | [
"BSD-3-Clause"
] | null | null | null | (*
* Copyright (c) 2009 - 2013 Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS... | 37.82684 | 93 | 0.694896 |
bc4b66a926d2a1a776777b9a11e17209d3568922 | 1,371 | ml | OCaml | tests_pa_ocaml/variants.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 2 | 2018-02-12T20:06:48.000Z | 2018-04-09T14:08:38.000Z | tests_pa_ocaml/variants.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 12 | 2017-08-30T10:44:32.000Z | 2019-08-02T11:33:33.000Z | tests_pa_ocaml/variants.ml | rlepigre/ocaml-earley-ocaml | 60cf1e63f30b670d0bc4bc22cdff36b453c502e3 | [
"CECILL-B"
] | 1 | 2020-04-25T05:58:29.000Z | 2020-04-25T05:58:29.000Z | let three = `Int 3;;
let four = `Float 4.;;
let nan = `Not_a_number;;
let l =[three; four; nan];;
let is_positive = function
| `Int x -> x > 0
| `Float x -> x > 0.
;;
let exact = List.filter is_positive [three;four];;
type basic_color =
[ `Black | `Blue | `Cyan | `Green
| `Magenta | `Red | `White... | 33.439024 | 179 | 0.541211 |
440b1a51fe0cc7b00af9f350d3adfc3e5491b4b5 | 4,126 | ml | OCaml | infer/src/absint/LowerHil.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/absint/LowerHil.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | infer/src/absint/LowerHil.ml | sjcjoosten/infer | 4b69087ad50ad50c43e536351777999e8c256fd4 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open! IStd
module L = Logging
module type HilConfig = sig
val include_array_indexes : bool
end
module DefaultConfig : HilConfig = str... | 40.851485 | 99 | 0.719341 |
bcebcd7b44d476c39a425f3f60f7c0f2ccdb981c | 2,362 | mli | OCaml | upstream/ocaml_409/typing/typedecl_variance.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 961 | 2020-09-15T11:01:50.000Z | 2022-03-26T00:25:17.000Z | upstream/ocaml_409/typing/typedecl_variance.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 83 | 2020-09-27T18:51:24.000Z | 2022-03-08T10:57:53.000Z | upstream/ocaml_409/typing/typedecl_variance.mli | rvantonder/merlin | 09d6b2762f0be7129decae97bc2d87fc854bbbce | [
"MIT"
] | 26 | 2020-10-13T10:39:13.000Z | 2021-12-07T04:57:33.000Z | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Gabriel... | 41.438596 | 76 | 0.518205 |
bceee5741b83b231436cddddeb7d699a96b2036d | 2,535 | ml | OCaml | day_10/day_10.ml | Babnik21/Advent-of-Code | 2606b1b6f923460a127eeac42a3776b7a15991b9 | [
"MIT"
] | null | null | null | day_10/day_10.ml | Babnik21/Advent-of-Code | 2606b1b6f923460a127eeac42a3776b7a15991b9 | [
"MIT"
] | null | null | null | day_10/day_10.ml | Babnik21/Advent-of-Code | 2606b1b6f923460a127eeac42a3776b7a15991b9 | [
"MIT"
] | null | null | null | open Printf
let day = "10"
let in_file = "day_" ^ day ^ "/day_" ^ day ^ ".in";;
let out_file_1 = "day_" ^ day ^ "/day_" ^ day ^"_1.out";;
let out_file_2 = "day_" ^ day ^ "/day_" ^ day ^ "_2.out";;
(* Import *)
let read_file in_file =
let lines = ref [] in (*ref na prazen seznam*)
let ic = open_in in_file i... | 34.256757 | 142 | 0.60355 |
bcbc880f40ce998d9a7ccefda26878c947b8e85b | 2,993 | ml | OCaml | src/context/display/diagnosticsPrinter.ml | R32/haxe | 9dd62f10ab6200d356591fa43218eb795e3a5769 | [
"MIT"
] | null | null | null | src/context/display/diagnosticsPrinter.ml | R32/haxe | 9dd62f10ab6200d356591fa43218eb795e3a5769 | [
"MIT"
] | null | null | null | src/context/display/diagnosticsPrinter.ml | R32/haxe | 9dd62f10ab6200d356591fa43218eb795e3a5769 | [
"MIT"
] | null | null | null | open Globals
open Json
open DisplayTypes
open DiagnosticsKind
open DisplayTypes
open DiagnosticsTypes
type t = DiagnosticsKind.t * pos
let is_diagnostics_file file =
let file = Path.unique_full_path file in
match (!Parser.display_mode) with
| DMDiagnostics [] -> true
| DMDiagnostics files -> List.exists (fun file... | 28.504762 | 169 | 0.686268 |
bcebcc6ddd494531d8e2766d6ccb47830f670add | 12,074 | ml | OCaml | src/dune_rules/modules_field_evaluator.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 2 | 2022-03-03T01:38:24.000Z | 2022-03-03T01:54:36.000Z | src/dune_rules/modules_field_evaluator.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 1 | 2021-11-08T19:54:28.000Z | 2021-11-08T19:54:28.000Z | src/dune_rules/modules_field_evaluator.ml | jeremiedimino/dune | ba112ce967bb9307db7d92efcb13c603724947e5 | [
"MIT"
] | 1 | 2017-12-07T21:21:12.000Z | 2017-12-07T21:21:12.000Z | open! Dune_engine
open Stdune
module Buildable = Dune_file.Buildable
module Virtual = struct
type t = { virtual_modules : Ordered_set_lang.t }
end
module Implementation = struct
type t =
{ existing_virtual_modules : Module_name.Set.t
; allow_new_public_modules : bool
}
end
type kind =
| Virtual of ... | 37.265432 | 81 | 0.652062 |
bcb5bc47037b3f79a0846c462e442e59f07db20b | 667 | ml | OCaml | benchmarks/crazy2add/crazy2add/submissions/sub172.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/crazy2add/crazy2add/submissions/sub172.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/crazy2add/crazy2add/submissions/sub172.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z |
type crazy2 = NIL | ZERO of crazy2 | ONE of crazy2 | MONE of crazy2
let rec crazy2add (a,b) =
match (a,b) with
| (ZERO(a'), ZERO(b')) -> ZERO(crazy2add(a',b'))
| (ZERO(a'), ONE(b')) -> ONE(crazy2add(a',b'))
| (ZERO(a'), MONE(b')) -> MONE(crazy2add(a',b'))
| (ONE(a'), ZERO(b')) -> ONE(crazy2add(a... | 37.055556 | 73 | 0.50075 |
44c891d7041614880d2a8d8bb68af5a337636a5a | 140 | ml | OCaml | data/derived/comb/progs/unify/prog6136.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/prog1276.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/fa15/progs/unify/prog1276.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null |
type 'a set =
| Set of 'a list;;
let del x s =
match s with
| Set l -> let meh = Set (List.filter (fun z -> z = x) l) in Set meh;;
| 17.5 | 73 | 0.528571 |
440fa3449c09ca7e822d4f4ed82a95f9fd7fe3f9 | 19,045 | ml | OCaml | data/derived/comb/progs/unify/prog3707.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/prog3707.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | data/derived/sp14/progs/unify/prog3707.orig.ml | ucsd-progsys/yunounderstand-data | 4321f31638d3d8e8e9710dcf6ddb32929ab649bf | [
"CC0-1.0"
] | null | null | null | (*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*)
(*XXX... | 33.412281 | 208 | 0.654082 |
bca907e77a900587fac919c1f424990d92f6d689 | 6,223 | mly | OCaml | src/parser.mly | ebarsoum/sip | d718823551a39d5327b57b11bb0269305bca2d55 | [
"BSD-3-Clause"
] | 3 | 2020-01-04T04:42:25.000Z | 2020-06-12T06:45:46.000Z | src/parser.mly | ebarsoum/sip | d718823551a39d5327b57b11bb0269305bca2d55 | [
"BSD-3-Clause"
] | null | null | null | src/parser.mly | ebarsoum/sip | d718823551a39d5327b57b11bb0269305bca2d55 | [
"BSD-3-Clause"
] | null | null | null | %{(*
Columbia University
PLT 4115 Course - SIP Compiler Project
Under the Supervision of: Prof. Stephen A. Edwards
Name: Emad Barsoum
UNI: eb2871
parser.mly for SIP language
*)
open Ast %}
%token READ WRITE
%token PLUS MINUS TIMES DIVIDES MOD CONV ASSIGN
%token NEQ LT LEQ GT GEQ EQ AND OR N... | 31.75 | 149 | 0.530934 |
bcdeb6cf2553f8d984670aa8db9767043269bef6 | 2,233 | ml | OCaml | src/asa.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | src/asa.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | src/asa.ml | arkinjo/PDBjTk3 | 483730cb9d0784aeaa6922938abb316698dcf601 | [
"MIT"
] | null | null | null | module Ht = Hashtbl
let pi4 = Vec3.pi *. 4.0
let angle_sphere v0 v1 v2 =
let d1 = Vec3.normalize (Vec3.cross v0 (Vec3.subtract v1 v0)) in
let d2 = Vec3.normalize (Vec3.cross v0 (Vec3.subtract v2 v0)) in
acos (Vec3.dot d1 d2)
let weight_vertices vs ts =
let ht = Ht.create 100 in
List.iter (fun (i,v) -> H... | 32.838235 | 79 | 0.626959 |
bcb9f94260b3342204add540e038cd819b1cea80 | 47,663 | ml | OCaml | infer/src/IR/Typ.ml | prmis/infer | 4acad5ca90d2fc18f1b7440b83aeb81f964d6199 | [
"MIT"
] | null | null | null | infer/src/IR/Typ.ml | prmis/infer | 4acad5ca90d2fc18f1b7440b83aeb81f964d6199 | [
"MIT"
] | null | null | null | infer/src/IR/Typ.ml | prmis/infer | 4acad5ca90d2fc18f1b7440b83aeb81f964d6199 | [
"MIT"
] | null | null | null | (*
* Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** The Smallfoot Intermediate Language: Types *)
open! IStd
module Hashtbl = Caml.Hashtbl
mo... | 30.204689 | 121 | 0.638483 |
8ad235df89afb63908a560d6cd12e02102ba95fc | 2,370 | ml | OCaml | optimizations/lib/fftw-3.3.4/genfft/assoctable.ml | albertsgrc/ftdock-opt | 3361d1f18bf529958b78231fdcf139b1c1c1f232 | [
"MIT"
] | 34 | 2019-05-03T14:45:49.000Z | 2022-01-05T17:43:27.000Z | optimizations/lib/fftw-3.3.4/genfft/assoctable.ml | albertsgrc/ftdock-opt | 3361d1f18bf529958b78231fdcf139b1c1c1f232 | [
"MIT"
] | 61 | 2017-04-02T05:50:44.000Z | 2017-11-22T02:32:43.000Z | optimizations/lib/fftw-3.3.4/genfft/assoctable.ml | albertsgrc/ftdock-opt | 3361d1f18bf529958b78231fdcf139b1c1c1f232 | [
"MIT"
] | 15 | 2019-04-29T14:49:59.000Z | 2021-11-15T13:29:27.000Z | (*
* Copyright (c) 1997-1999 Massachusetts Institute of Technology
* Copyright (c) 2003, 2007-14 Matteo Frigo
* Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... | 35.909091 | 81 | 0.625316 |
bc05a39e0e7c64aad26129752e820c35ed1a4ddf | 7,392 | ml | OCaml | src/passes/04-tree_abstraction/cameligo/errors.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 1 | 2021-11-12T11:41:16.000Z | 2021-11-12T11:41:16.000Z | src/passes/04-tree_abstraction/cameligo/errors.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 4 | 2021-11-10T15:04:00.000Z | 2022-01-14T07:49:14.000Z | src/passes/04-tree_abstraction/cameligo/errors.ml | Zett98/ligolang | 5217d4afa1f88401b3880c59aa553cd3aba3d627 | [
"MIT"
] | 1 | 2022-03-30T09:12:37.000Z | 2022-03-30T09:12:37.000Z | open Simple_utils.Display
module Raw = Cst.Cameligo
module Parsing = Parsing.Cameligo
let stage = "abstracter"
type abs_error = [
| `Concrete_cameligo_recursive_fun of Region.t
| `Concrete_cameligo_unknown_constant of string * Location.t
| `Concrete_cameligo_unsupported_pattern_type of Raw.pattern list
| `Co... | 42.728324 | 160 | 0.698458 |
bc5c8c3695374868cc9a66a706a81b3b6fb0a02e | 4,481 | ml | OCaml | vendor/base/src/comparable.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 8 | 2020-09-16T01:37:52.000Z | 2021-12-17T03:01:18.000Z | vendor/base/src/comparable.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 4 | 2021-05-18T10:06:59.000Z | 2021-10-21T05:48:27.000Z | vendor/base/src/comparable.ml | chambart/memtrace_viewer_with_deps | 3ab670c89c934e445a1f470a2cc70c3bb17c0d20 | [
"MIT"
] | 5 | 2020-10-08T13:26:18.000Z | 2021-12-17T03:02:23.000Z | open! Import
include Comparable_intf
module With_zero (T : sig
type t [@@deriving_inline compare]
val compare : t -> t -> int
[@@@end]
val zero : t
end) =
struct
open T
let is_positive t = compare t zero > 0
let is_non_negative t = compare t zero >= 0
let is_negative t = compare t zero < ... | 22.517588 | 89 | 0.606115 |
bca1f53a75c52559622546921d76a2b621ae1ab0 | 2,237 | mli | OCaml | src/lib/mina_numbers/token_id.mli | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | src/lib/mina_numbers/token_id.mli | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | src/lib/mina_numbers/token_id.mli | arjundashrath/mina | 629c6d767fbf2fdb7ce1ebd04337960c6f5baf55 | [
"Apache-2.0"
] | null | null | null | [%%import "/src/config.mlh"]
open Core_kernel
open Snark_params
open Tick
[%%versioned:
module Stable : sig
module V1 : sig
type t [@@deriving sexp, equal, hash, compare, yojson]
end
end]
val to_input : t -> Field.t Random_oracle.Input.Chunked.t
val to_input_legacy : t -> (Field.t, bool) Random_oracle.Input... | 21.103774 | 78 | 0.645507 |
44afac357742163e25c88927fd6443decc78648f | 8,971 | ml | OCaml | src/lib/coda_base/staged_ledger_hash.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/staged_ledger_hash.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_base/staged_ledger_hash.ml | johnwu93/coda | 7423f8d943faed91c4372012be3af57b2a7fafb3 | [
"Apache-2.0"
] | null | null | null | open Core
open Fold_lib
open Tuple_lib
open Snark_params.Tick
open Coda_digestif
open Module_version
module Aux_hash = struct
let length_in_bits = 256
let length_in_bytes = length_in_bits / 8
module Stable = struct
module V1 = struct
module T = struct
type t = string [@@deriving bin_io, sexp,... | 28.753205 | 154 | 0.673615 |
bc5f5e2fbdee2d930e14616e8cd9805409fda52e | 2,016 | ml | OCaml | hphp/hack/src/client/clientSymbolInfo.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientSymbolInfo.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/client/clientSymbolInfo.ml | kavoor/hhvm | 4b86dba3f3dadfa05b7fac391f0b28e1f011989c | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
open Core_kernel
open Hh_json
let fun_call_to_json fun_call_results =
ServerCommandTypes.Symbol_info_service.(
... | 31.015385 | 69 | 0.665675 |
bcbcc13f507da6eaf20fad85a951d3864e21093c | 9,410 | ml | OCaml | namespace/namespace_symbols.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 3 | 2016-05-03T23:32:16.000Z | 2019-07-04T10:29:09.000Z | namespace/namespace_symbols.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 1 | 2016-05-10T09:10:16.000Z | 2016-05-10T09:10:16.000Z | namespace/namespace_symbols.ml | tsuyoshi2/Galax | 8871d4b4afb623e1a496cfe5fe142de9ebb2a2a8 | [
"LPL-1.02"
] | 2 | 2019-05-08T16:29:48.000Z | 2020-02-20T21:44:11.000Z | (***********************************************************************)
(* *)
(* GALAX *)
(* XQuery Engine *)
(* ... | 26.657224 | 74 | 0.618385 |
bcd624ef70155e118f8ea13a2e60e17fca7d67e3 | 2,006 | ml | OCaml | data/fa15_min/0908.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 15 | 2020-05-10T13:06:57.000Z | 2021-07-15T19:23:32.000Z | data/fa15/0908.ml | gsakkas/rite | 958a0ad2460e15734447bc07bd181f5d35956d3b | [
"BSD-3-Clause"
] | 4 | 2020-01-28T22:51:35.000Z | 2022-02-10T00:36:31.000Z | data/fa15_min/0908.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 = if n <= 0 then [] else x :: (clone x (n - 1));;
let padZero l1 l2 =
if (List.length l1) < (List.length l2)
then (clone 0 ((List.length l2) - (List.length l1))) @ l1
else (clone 0 ((List.length l1) - (List.length l2))) @ l2;;
let rec removeZero l =
let f a x =
if (List.length a) = 0 th... | 26.051948 | 95 | 0.54337 |
bc705552a5f8b875410be84a896d915519ac73f2 | 45,933 | ml | OCaml | src/common/profiling/profiling_js.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/common/profiling/profiling_js.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | src/common/profiling/profiling_js.ml | gpetiot/flow | 52ca4ffe1a95eadd784b4764ef1ab8dd529bfaea | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(**
* This module is used to time stuff. And not stuff that runs a million times. Stuff that runs
* maybe once or twice.
*
* ... | 37.132579 | 103 | 0.645592 |
bcad20acaa0c2d98c416d201b07648bba81eb3c5 | 2,455 | mli | OCaml | src/coq/logicutils/hofs/debruijn.mli | uwplse/coq-plugin-lib | 346f674bc54974ba431ac964806211f3d25d22a9 | [
"MIT"
] | 7 | 2019-08-20T15:33:15.000Z | 2021-09-22T17:09:41.000Z | src/coq/logicutils/hofs/debruijn.mli | uwplse/coq-plugin-lib | 346f674bc54974ba431ac964806211f3d25d22a9 | [
"MIT"
] | 28 | 2019-07-23T17:28:08.000Z | 2021-03-01T17:51:49.000Z | src/coq/logicutils/hofs/debruijn.mli | uwplse/coq-plugin-lib | 346f674bc54974ba431ac964806211f3d25d22a9 | [
"MIT"
] | 1 | 2020-10-09T18:47:12.000Z | 2020-10-09T18:47:12.000Z | (*
* DeBruijn management
*)
open Environ
open Constr
(* --- Numbers --- *)
(*
* Shifting and unshifting by an amount
*)
val unshift_i_by : int -> int -> int
val shift_i_by : int -> int -> int
(*
* Shifting and unshifting
*)
val unshift_i : int -> int
val shift_i : int -> int
(* --- Terms --- *)
(*
* Shift... | 26.397849 | 80 | 0.638697 |
44c512dbbc148d0a80d1159c2056e5e1e0800464 | 886 | mli | OCaml | duniverse/opam/src/repository/opamHg.mli | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/repository/opamHg.mli | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | duniverse/opam/src/repository/opamHg.mli | gpetiot/opam-monorepo | 93584def27ee2c4073b437b9405f413c227c9c57 | [
"0BSD"
] | null | null | null | (**************************************************************************)
(* *)
(* Copyright 2012-2016 OCamlPro *)
(* Copyright 2012 INRIA *)
(* ... | 52.117647 | 76 | 0.318284 |
f32bd2028eac5c89a85c9c67656d412032a900ab | 408 | ml | OCaml | src/parser/enum_common.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/parser/enum_common.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | src/parser/enum_common.ml | dmitryvinn/flow-1 | 9ef203b34fd36fe390467456cbd0ce6c4920522e | [
"MIT"
] | null | null | null | (*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type explicit_type =
| Boolean
| Number
| String
| Symbol
[@@deriving ord]
let string_of_explicit_type = function
| Bo... | 20.4 | 66 | 0.669118 |
bc66a86250faadb9cca7b8dda9aa97c7e14625e8 | 13,801 | ml | OCaml | src/lib/coda_intf/transition_frontier_intf.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_intf/transition_frontier_intf.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | src/lib/coda_intf/transition_frontier_intf.ml | vitaliel/coda | 2e59cbb5b5fbadfdf98d6b1c03e7711ccd47a144 | [
"Apache-2.0"
] | null | null | null | open Core_kernel
open Async_kernel
open Pipe_lib
open Coda_base
open Coda_incremental
open Coda_transition
(** An extension to the transition frontier that provides a view onto the data
other components can use. These are exposed through the broadcast pipes
accessible by calling extension_pipes on a Transition... | 31.365909 | 135 | 0.694732 |
bc9c14ec6693498a8f506aaed9a963a55aaefaf1 | 2,590 | ml | OCaml | analysis/abstractSetDomain.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | 1 | 2020-08-12T14:33:46.000Z | 2020-08-12T14:33:46.000Z | analysis/abstractSetDomain.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"MIT"
] | null | null | null | analysis/abstractSetDomain.ml | Mohd4633/pyre-check | 7aafc399e6887dfe9f5aeb1e09426460a9796025 | [
"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 AbstractDomain
module Make (Element : Set.Elt) = struct
module Set = struct
module ElementSet = Set.Make (Element)
... | 28.461538 | 95 | 0.61583 |
bc3768a17d703913802fb3664e1eb880b3263492 | 10,811 | mli | OCaml | src/cfg/cfg.mli | mfurr/Diamondback-Ruby | f70ea254a9711c0ffbb12103f3ca397c2d50f0d4 | [
"BSD-3-Clause"
] | 13 | 2015-01-25T14:14:56.000Z | 2019-04-21T20:32:57.000Z | src/cfg/cfg.mli | mfurr/Diamondback-Ruby | f70ea254a9711c0ffbb12103f3ca397c2d50f0d4 | [
"BSD-3-Clause"
] | 1 | 2017-07-25T21:51:14.000Z | 2018-11-11T09:07:23.000Z | src/cfg/cfg.mli | mfurr/Diamondback-Ruby | f70ea254a9711c0ffbb12103f3ca397c2d50f0d4 | [
"BSD-3-Clause"
] | null | null | null |
open Utils
type pos = Lexing.position
type unary_op =
Op_UMinus
| Op_UPlus
| Op_UTilde
type binary_op =
| Op_Plus
| Op_Minus
| Op_Times
| Op_Rem
| Op_Div
| Op_CMP
| Op_EQ
| Op_EQQ
| Op_GEQ
| Op_LEQ
| Op_LT
| Op_GT
| Op_BAnd
| Op_BOr
| Op_Match
| Op_XOR
| Op_Pow
| Op_ARef
... | 27.791774 | 85 | 0.672371 |
4409a38240f7044c120cca3b7af8928014c78e1c | 4,550 | ml | OCaml | tests/test_redis_key_space.ml | tategakibunko/ocaml-redis | 684c510dd73efc1e82dda0434794668255517222 | [
"BSD-3-Clause"
] | 10 | 2015-09-17T05:47:35.000Z | 2021-08-03T15:07:34.000Z | tests/test_redis_key_space.ml | tategakibunko/ocaml-redis | 684c510dd73efc1e82dda0434794668255517222 | [
"BSD-3-Clause"
] | null | null | null | tests/test_redis_key_space.ml | tategakibunko/ocaml-redis | 684c510dd73efc1e82dda0434794668255517222 | [
"BSD-3-Clause"
] | 2 | 2015-02-20T18:53:46.000Z | 2016-03-17T18:14:32.000Z | (* Copyright (C) 2011 Rory Geoghegan - r.geoghegan@gmail.com
Released under the BSD license. See the LICENSE.txt file for more info.
Tests for "Commands operating on the key space" *)
let test_keys () =
let test_func connection =
Redis.set "rory" "cool" connection;
Redis.set "tim" "uncool" c... | 32.042254 | 74 | 0.554505 |
bc964909c17b967d1319611b9f2fc158cdb1e898 | 33,421 | ml | OCaml | hphp/hack/src/annotated_ast/aast.ml | jewarner57/hhvm | a7ee6b5b3e994f9dec933f5a6abce602f756b7af | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/annotated_ast/aast.ml | jewarner57/hhvm | a7ee6b5b3e994f9dec933f5a6abce602f756b7af | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/hack/src/annotated_ast/aast.ml | jewarner57/hhvm | a7ee6b5b3e994f9dec933f5a6abce602f756b7af | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | (*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the "hack" directory of this source tree.
*
*)
include Aast_defs
(* Ensure that doc comments are always on a separate line by
requiring a lot of padding for in... | 29.03649 | 90 | 0.580922 |
bc87d43bac3a194afe397d744d9092653f8e0313 | 996 | mli | OCaml | src/third-party/fuzzy-path/src/fuzzy_path.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 20,996 | 2015-01-01T13:51:47.000Z | 2022-03-31T17:44:01.000Z | src/third-party/fuzzy-path/src/fuzzy_path.mli | Egrodo/flow | 3aaf52aeaab019a8f6e292100b18dec6bb3fda4b | [
"MIT"
] | 8,315 | 2015-01-01T19:56:43.000Z | 2022-03-31T15:58:10.000Z | src/third-party/fuzzy-path/src/fuzzy_path.mli | tbergq/flow | 8c866379d12dc32c6a0e129739148c8cd9169db8 | [
"MIT"
] | 2,338 | 2015-01-05T03:28:26.000Z | 2022-03-26T20:40:56.000Z | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type options = {
case_sensitive: bool;
(** Prefers case-sensitive matches when the query contains an uppercase letter. *)
sm... | 21.652174 | 84 | 0.687751 |
bcd168d18dc3e113c1da45a0cee903bac4c334b7 | 4,131 | ml | OCaml | hphp/hack/src/utils/perf/profile.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 9,491 | 2015-01-01T00:30:28.000Z | 2022-03-31T20:22:11.000Z | hphp/hack/src/utils/perf/profile.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 4,796 | 2015-01-01T00:26:31.000Z | 2022-03-31T01:09:05.000Z | hphp/hack/src/utils/perf/profile.ml | divinity76/hhvm | cfde9bb3d7d49740d0ca0228e2d714637b155a13 | [
"PHP-3.01",
"Zend-2.0"
] | 2,126 | 2015-01-01T11:13:29.000Z | 2022-03-28T19:58:15.000Z | (*
* Copyright (c) 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.
*
*)
type gc_alloc = {
minor_words: float;
major_words: float;
(* words in major heap _including_ promoted ones *)
... | 29.719424 | 96 | 0.676592 |
bce571e4c2d8bdf4fd8201ef8c9706c1760a7246 | 2,003 | mli | OCaml | hg/cr_soons.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | hg/cr_soons.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | hg/cr_soons.mli | Rjected/iron | dfb106cb82abf5d16e548d4ee4f419d0994d3644 | [
"Apache-2.0"
] | null | null | null | (** All CR-soons in the feature forest, where assignees have been resolved to user
names.
*)
open! Core
open! Import
(** All CR-soons in a feature, where assignees are unresolved names. *)
module In_feature : sig
type t [@@deriving sexp_of]
include Equal. S with type t := t
include Invariant. S with t... | 27.067568 | 87 | 0.664004 |
bc4827c541b4c8345dcfc53236c44774c9e1d913 | 205 | ml | OCaml | 2/main.ml | cevans87/euler | 72f7063948df3d487dd4d0df0220349d9ad31841 | [
"MIT"
] | null | null | null | 2/main.ml | cevans87/euler | 72f7063948df3d487dd4d0df0220349d9ad31841 | [
"MIT"
] | null | null | null | 2/main.ml | cevans87/euler | 72f7063948df3d487dd4d0df0220349d9ad31841 | [
"MIT"
] | null | null | null | open Base
open Stdio
let rec fib a b accum =
match a with
| a when a > 4_000_000 -> accum
| a when a % 2 = 0 -> fib b (a + b) (accum + a)
| _ -> fib b (a + b) accum
let () = printf "%d\n" (fib 1 2 0)
| 18.636364 | 48 | 0.546341 |
bc4e8fa21dc63b459a9857036d129635a7f0ed14 | 8,977 | ml | OCaml | template-coq/src/constr_reification.ml | jakobbotsch/metacoq | 29dddffcb4a95dd42ac99f425aa5d620042f5fc6 | [
"MIT"
] | 1 | 2018-01-11T11:32:20.000Z | 2018-01-11T11:32:20.000Z | template-coq/src/constr_reification.ml | jakobbotsch/metacoq | 29dddffcb4a95dd42ac99f425aa5d620042f5fc6 | [
"MIT"
] | 2 | 2018-04-11T13:01:02.000Z | 2018-05-14T15:15:33.000Z | template-coq/src/constr_reification.ml | jakobbotsch/metacoq | 29dddffcb4a95dd42ac99f425aa5d620042f5fc6 | [
"MIT"
] | 1 | 2021-12-30T18:38:20.000Z | 2021-12-30T18:38:20.000Z |
(** The reifier to Coq values *)
module ConstrReification =
struct
type t = Constr.t
type quoted_ident = Constr.t (* of type Ast.ident *)
type quoted_int = Constr.t (* of type nat *)
type quoted_bool = Constr.t (* of type bool *)
type quoted_name = Constr.t (* of type Ast.name *)
type quoted_sort = Constr... | 43.158654 | 104 | 0.724073 |
bccb1112e2472735a9f2deba89b9b2d49075f72a | 90,415 | ml | OCaml | src/parser.ml | vigor-nf/verifast | 8c5566d64ff691f691d953e8044d5dc855611d4f | [
"MIT"
] | 1 | 2018-08-17T13:50:15.000Z | 2018-08-17T13:50:15.000Z | src/parser.ml | vigor-nf/verifast | 8c5566d64ff691f691d953e8044d5dc855611d4f | [
"MIT"
] | null | null | null | src/parser.ml | vigor-nf/verifast | 8c5566d64ff691f691d953e8044d5dc855611d4f | [
"MIT"
] | null | null | null | open Big_int
open Num
open Util
open Stats
open Lexer
open Ast
(* Region: the parser *)
let common_keywords = [
"switch"; "case"; ":"; "return"; "for";
"void"; "if"; "else"; "while"; "!="; "<"; ">"; "<="; ">="; "&&"; "++"; "--"; "+="; "-="; "*="; "/="; "&="; "|="; "^="; "%="; "<<="; ">>="; ">>>=";
"... | 48.978873 | 345 | 0.566112 |
bc1beb5232d3ced922cefe11ad690403734d4e06 | 131 | ml | OCaml | benchmarks/max/max/submissions/sub42.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 5 | 2019-08-26T05:41:41.000Z | 2020-05-03T03:58:50.000Z | benchmarks/max/max/submissions/sub42.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | null | null | null | benchmarks/max/max/submissions/sub42.ml | kupl/TestML | 55a6200222303bc06349f3379894f5174d47df5d | [
"MIT"
] | 2 | 2020-02-06T00:36:38.000Z | 2020-07-27T09:53:35.000Z | (* Problem 3 *)
let rec max : int list -> int
=fun l -> match l with
| [] -> 0
| hd::tl -> if hd > (max tl) then hd else (max tl)
| 21.833333 | 50 | 0.534351 |
bcb7a432d6888777b2e4599176623899e6d5b515 | 224 | ml | OCaml | src/languages/line/dolmen_line.ml | quicquid/dolmen | 86bc56a194660a2d6a4cc513c1341f0d934e2d9d | [
"BSD-2-Clause"
] | 1 | 2021-05-18T16:21:03.000Z | 2021-05-18T16:21:03.000Z | src/languages/line/dolmen_line.ml | quicquid/dolmen | 86bc56a194660a2d6a4cc513c1341f0d934e2d9d | [
"BSD-2-Clause"
] | null | null | null | src/languages/line/dolmen_line.ml | quicquid/dolmen | 86bc56a194660a2d6a4cc513c1341f0d934e2d9d | [
"BSD-2-Clause"
] | 1 | 2021-05-18T16:21:55.000Z | 2021-05-18T16:21:55.000Z |
(* This file is free software, part of dolmen. See file "LICENSE" for more information *)
let rec consume lexbuf =
match LexLine.token lexbuf with
| LexLine.CHAR '\n' -> Lexing.new_line lexbuf
| _ -> consume lexbuf
| 24.888889 | 89 | 0.705357 |
bc80c8ae5297c1d756ac6772c554c5ac437793a4 | 1,018 | mli | OCaml | lib/abort.mli | tov/shcaml | 43ae852a00e3a11520f90f2451baa71863409774 | [
"MIT"
] | 50 | 2015-01-30T17:10:43.000Z | 2021-11-20T16:35:01.000Z | lib/abort.mli | tov/shcaml | 43ae852a00e3a11520f90f2451baa71863409774 | [
"MIT"
] | 8 | 2015-01-03T12:41:32.000Z | 2019-08-16T18:25:12.000Z | lib/abort.mli | tov/shcaml | 43ae852a00e3a11520f90f2451baa71863409774 | [
"MIT"
] | 7 | 2016-04-03T22:41:25.000Z | 2020-08-20T00:33:28.000Z | (** Protocol to discard the current continuation and replace it
* with a thunk. In short, [E\[ abort M \] -> M ()]
*
* Often we want to fork a child process with a limited task, after
* which it should exit. The idea of {!Abort.abort} is that it enforces
* that control does not escape the given thunk. Furtherm... | 44.26087 | 72 | 0.693517 |
44dab8a93ee00b0c23054f3fa76fd3cfb30e043e | 664 | ml | OCaml | enigma.ml | melwyn95/learn-ocaml | 1567ccac269452b6ede28e2f89cc8f4bee7ee253 | [
"MIT"
] | null | null | null | enigma.ml | melwyn95/learn-ocaml | 1567ccac269452b6ede28e2f89cc8f4bee7ee253 | [
"MIT"
] | null | null | null | enigma.ml | melwyn95/learn-ocaml | 1567ccac269452b6ede28e2f89cc8f4bee7ee253 | [
"MIT"
] | null | null | null | let exchange k =
let a = k / 10 in
let b = k mod 10 in
b * 10 + a
let is_valid_answer (grand_father_age, grand_son_age) =
grand_son_age * 4 = grand_father_age &&
(exchange grand_son_age) = (exchange grand_father_age) * 3
let rec find (max_grand_father_age, min_grand_son_age) =
if min_grand_son_age * 4 > ... | 34.947368 | 68 | 0.71988 |
affdf66bd3dffd02defef7581093d6cefa665269 | 3,019 | ml | OCaml | lib/tyxml/notched_outline.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | 1 | 2020-05-04T15:49:02.000Z | 2020-05-04T15:49:02.000Z | lib/tyxml/notched_outline.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | null | null | null | lib/tyxml/notched_outline.ml | monstasat/components | 011b513208c2053a22236e3df6fc3f38a2ec7630 | [
"MIT"
] | 1 | 2020-05-04T15:49:06.000Z | 2020-05-04T15:49:06.000Z | module CSS = struct
(** Mandatory. Container for the outline's sides and notch. *)
let root = "mdc-notched-outline"
(** Mandatory. Element representing the leading side of the notched outline
(before the notch). *)
let leading = BEM.add_element root "leading"
(** Mandatory. Element representing the no... | 30.19 | 89 | 0.596224 |
bc02fba46d1ec0c0c4a42581cadb09ff63c5c7d8 | 5,046 | ml | OCaml | tezt/tests/main.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | 3 | 2021-12-16T20:28:56.000Z | 2022-01-21T01:37:49.000Z | tezt/tests/main.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | 5 | 2022-01-20T21:30:24.000Z | 2022-03-11T14:43:56.000Z | tezt/tests/main.ml | Decentralized-Pictures/T4L3NT | 3a9265949d50d2e925b5d6b3df21f283211df6a2 | [
"MIT"
] | null | null | null | (*****************************************************************************)
(* *)
(* Open Source License *)
(* Copyright (c) 2021 Nomadic Labs <contact@nomadic-labs.com> *)
... | 52.5625 | 92 | 0.633175 |
bc6a6897ede0529c725f3fa0dfe884a038d2e077 | 101 | ml | OCaml | 3/test.ml | Daniel-Chin/ocaml-99-problems | 8c36468379e3ba99ce847803689263b9ea9ad862 | [
"CC0-1.0"
] | null | null | null | 3/test.ml | Daniel-Chin/ocaml-99-problems | 8c36468379e3ba99ce847803689263b9ea9ad862 | [
"CC0-1.0"
] | null | null | null | 3/test.ml | Daniel-Chin/ocaml-99-problems | 8c36468379e3ba99ce847803689263b9ea9ad862 | [
"CC0-1.0"
] | null | null | null | #use "main.ml" ;;
at 1 ["1"; "2"; "3"];;
at 2 ["1"; "2"; "3"];;
at 3 ["1"; "2"; "3"];;
at 3 ["1"];;
| 14.428571 | 22 | 0.306931 |
bcb48f07bb47e200e007470e361d4606b22fd477 | 3,792 | ml | OCaml | src/commands/startCommand.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | 1 | 2019-07-30T15:59:45.000Z | 2019-07-30T15:59:45.000Z | src/commands/startCommand.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"MIT"
] | null | null | null | src/commands/startCommand.ml | jiaweihli/flow | cb9d84618326e0edff4bb2252378e57ef682774c | [
"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.
*)
(***********************************************************************)
(* start command *)
(***********************************... | 30.580645 | 258 | 0.641086 |
446e8eef2867ca3f8c389a59807d50c356bb0adf | 206 | mll | OCaml | hphp/hack/src/third-party/cppo/examples/lexer.mll | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 34 | 2018-12-15T08:52:32.000Z | 2022-01-22T14:31:54.000Z | hphp/hack/src/third-party/cppo/examples/lexer.mll | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 16 | 2018-11-22T20:52:45.000Z | 2022-03-08T17:11:06.000Z | hphp/hack/src/third-party/cppo/examples/lexer.mll | sepatus/sepatus | 48ae001f2082a5335d64b2567941a8271153de05 | [
"PHP-3.01",
"Zend-2.0"
] | 8 | 2019-03-26T18:14:33.000Z | 2021-09-29T11:30:18.000Z | (* Warning: ocamllex doesn't accept cppo directives
within the rules section. *)
rule token = parse
['a'-'z']+ { `String (Lexing.lexeme lexbuf) }
{
#ifndef NOFOO
let foo () = ()
#endif
}
| 20.6 | 51 | 0.601942 |
bc841312cfa7f893814076e14d3a083e9e2cf39f | 3,205 | ml | OCaml | bin/owl_bin_viz.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | bin/owl_bin_viz.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | bin/owl_bin_viz.ml | jzstark/owl | eead31f1920e63b876421e6a30e61c947f29827f | [
"MIT"
] | null | null | null | (*
* OWL - OCaml Scientific Computing
* Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz>
*)
open Owl
(* all supported modules by computation graph *)
module CGraph_S = Owl_computation_engine.Make_Graph (Owl_computation_cpu_device.Make (Owl_algodiff_primal_ops.S))
module CGraph_D = Owl_computation_engine.Mak... | 26.270492 | 113 | 0.670203 |
bcee404f28b2c0bda6ea5b980a36bb983d8d772b | 13,600 | ml | OCaml | src/queue.ml | EduardoRFS/base | 8993e35ba2e83e5020b2deb548253ef1e4a699d4 | [
"MIT"
] | 641 | 2016-09-16T15:51:06.000Z | 2022-03-31T19:30:56.000Z | src/queue.ml | EduardoRFS/base | 8993e35ba2e83e5020b2deb548253ef1e4a699d4 | [
"MIT"
] | 121 | 2016-09-17T07:30:00.000Z | 2022-03-03T21:00:03.000Z | src/queue.ml | EduardoRFS/base | 8993e35ba2e83e5020b2deb548253ef1e4a699d4 | [
"MIT"
] | 95 | 2016-09-16T23:31:38.000Z | 2022-03-19T01:35:06.000Z | open! Import
(* [t] stores the [t.length] queue elements at consecutive increasing indices of [t.elts],
mod the capacity of [t], which is [Option_array.length t.elts]. The capacity is
required to be a power of two (user-requested capacities are rounded up to the nearest
power), so that mod can quickly be co... | 27.419355 | 90 | 0.648971 |
bcdcc7b9c7a5ab10776cbac057a328c390d56df0 | 3,504 | ml | OCaml | test/sat/instr_trap_sat.ml | jrrk/hardcaml-riscv | 3240751afc76ab13f5a4b4646fcdfcb791725db9 | [
"MIT"
] | 14 | 2015-08-23T02:45:51.000Z | 2022-01-04T20:44:13.000Z | test/sat/instr_trap_sat.ml | jrrk/hardcaml-riscv | 3240751afc76ab13f5a4b4646fcdfcb791725db9 | [
"MIT"
] | 2 | 2015-08-20T16:27:51.000Z | 2017-09-21T21:47:44.000Z | test/sat/instr_trap_sat.ml | jrrk/hardcaml-riscv | 3240751afc76ab13f5a4b4646fcdfcb791725db9 | [
"MIT"
] | 4 | 2015-08-23T02:45:53.000Z | 2019-02-09T08:35:03.000Z | (* Use a SAT checker to ensure the instruction
* decoder is valid.
*
* We check on a vector which encodes a bit for
* each of the base RV32I instructions and a
* trap bit.
*
* In the 'riscv' project we have a mask/match
* specification of all the instructions generated
* from https://github.com/riscv/riscv-o... | 29.2 | 83 | 0.61387 |
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.