_id
stringlengths
64
64
repository
stringlengths
6
84
name
stringlengths
4
110
content
stringlengths
0
248k
license
null
download_url
stringlengths
89
454
language
stringclasses
7 values
comments
stringlengths
0
74.6k
code
stringlengths
0
248k
9a01fd3cd40fbf3fc3db50870eff52f62159955cd120bbf310857c57328204f6
facebook/flow
saved_state_scm_fetcher.mli
* 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 . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/flow/1ccfa98b476a9a19ae151e16ce50fb04e8442ccd/src/services/saved_state/fetcher/saved_state_scm_fetcher.mli
ocaml
* 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 . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
98c1e55e17ade124b8b4fda9f62bec4754c255e9dbb63d1caab587780c7004cd
spectrum-finance/cardano-dex-sdk-haskell
KeeperConfig.hs
module DatumKeeper.Config.KeeperConfig where import GHC.Natural data DatumKeeperConfig = DatumKeeperConfig { host :: String , port :: Natural }
null
https://raw.githubusercontent.com/spectrum-finance/cardano-dex-sdk-haskell/86aebebc3c193f5838634375da2488a8577baa93/datum-keeper-client/src/DatumKeeper/Config/KeeperConfig.hs
haskell
module DatumKeeper.Config.KeeperConfig where import GHC.Natural data DatumKeeperConfig = DatumKeeperConfig { host :: String , port :: Natural }
409e874687a6b345034644c8391467dd4f98c6ecba337a5686e4d6a6016e5bc7
maximedenes/native-coq
index.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/maximedenes/native-coq/3623a4d9fe95c165f02f7119c0e6564a83a9f4c9/tools/coqdoc/index.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * refers to the file being parsed *...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Filename open Lexing ope...
a5ccb7ae8d7a5b8cd626da411e24356629289a1ef6ca7d68665c071e378005cd
camlp5/camlp5
asttypes.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/camlp5/camlp5/15e03f56f55b2856dafe7dd3ca232799069f5dda/ocaml_stuff/4.03.1/parsing/asttypes.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Auxiliary a.s.t . types used by parsetree and typedtree . type constant = Const_int of int | Con...
a00fd0f958f1cb5086d20add8e78f25e5d3530ccf9c017967aca2ef64333e97a
JoelSanchez/ventas
api.cljs
(ns ventas.plugins.menu.api (:require [re-frame.core :as rf])) (rf/reg-event-fx ::autocompletions.get (fn [_ [_ options]] {:ws-request (merge {:name :ventas.plugins.menu.core/autocompletions.get} options)})) (rf/reg-event-fx ::routes.get-name (fn [_ [_ options]] {:ws-request (mer...
null
https://raw.githubusercontent.com/JoelSanchez/ventas/dc8fc8ff9f63dfc8558ecdaacfc4983903b8e9a1/src/cljs/ventas/plugins/menu/api.cljs
clojure
(ns ventas.plugins.menu.api (:require [re-frame.core :as rf])) (rf/reg-event-fx ::autocompletions.get (fn [_ [_ options]] {:ws-request (merge {:name :ventas.plugins.menu.core/autocompletions.get} options)})) (rf/reg-event-fx ::routes.get-name (fn [_ [_ options]] {:ws-request (mer...
d7c3c105f05afcb3d6bd122ebec048ab959c3fb46e5de9a87b852091f0ea9e36
staples-sparx/kits
firehose.clj
(ns kits.firehose "Infinite lazy seqs that can be globally turned on/off. Originally used for memory profiling." (:refer-clojure :exclude [cycle repeat])) (defonce off? (atom false)) (defonce sleep-millis (atom 100)) (defn repeat [x] (lazy-seq (if @off? nil (do (when (> @sleep-millis 0) ...
null
https://raw.githubusercontent.com/staples-sparx/kits/66ae99bce83e8fd1248cc5c0da1f23673f221073/src/clojure/kits/firehose.clj
clojure
(ns kits.firehose "Infinite lazy seqs that can be globally turned on/off. Originally used for memory profiling." (:refer-clojure :exclude [cycle repeat])) (defonce off? (atom false)) (defonce sleep-millis (atom 100)) (defn repeat [x] (lazy-seq (if @off? nil (do (when (> @sleep-millis 0) ...
07734fa7032273687ab4e5bb10daaeca573370e6d5e4716dabc6ca27d1d56dc8
reasonml-old/BetterErrors
func_no_arg_call.ml
let asd () = 5;; print_int asd;; (* err bc func with 0 arg need to be appended () *) let asd () = 5;; print_int (asd ());;
null
https://raw.githubusercontent.com/reasonml-old/BetterErrors/d439b92bfe377689c38fded5d8aa2b151133f25d/errs/func_no_arg_call.ml
ocaml
err bc func with 0 arg need to be appended ()
let asd () = 5;; print_int asd;; let asd () = 5;; print_int (asd ());;
ee17f791679fcc69eb259cb4b791ff0be248b4dafbbfc12539185dc42f593e74
thheller/shadow-cljs
fs_watch.clj
(ns shadow.cljs.devtools.server.fs-watch (:require [shadow.build.api :as cljs] [clojure.core.async :as async :refer (alt!! thread >!!)] [shadow.cljs.devtools.server.util :as util] [shadow.cljs.devtools.server.system-bus :as system-bus] [clojure.java.io :as io] ...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/f7e5b47bc2cb0b7aeac895e8febfc61c31d1652f/src/main/shadow/cljs/devtools/server/fs_watch.clj
clojure
ignore empty files shut down watchers when loop ends
(ns shadow.cljs.devtools.server.fs-watch (:require [shadow.build.api :as cljs] [clojure.core.async :as async :refer (alt!! thread >!!)] [shadow.cljs.devtools.server.util :as util] [shadow.cljs.devtools.server.system-bus :as system-bus] [clojure.java.io :as io] ...
0f3c2667e6815c5cc8aa85a72f246363a1f3c31eb8abc90927d985ccd92c7de7
ecavallo/ptt
eval.ml
module Syn = Syntax module D = Domain exception Eval_failed of string let eval_dim r (env : D.env) = match r with | Syn.DVar i -> begin match List.nth env i with | D.TopLevel _ -> raise (Eval_failed "Not a dimension term") | D.Dim s -> s | D.Tm _ -> raise (Eval_failed "Not a dimension ...
null
https://raw.githubusercontent.com/ecavallo/ptt/1234c3b645e1b99307c7a44cad87ffff382528f9/src/lib/eval.ml
ocaml
module Syn = Syntax module D = Domain exception Eval_failed of string let eval_dim r (env : D.env) = match r with | Syn.DVar i -> begin match List.nth env i with | D.TopLevel _ -> raise (Eval_failed "Not a dimension term") | D.Dim s -> s | D.Tm _ -> raise (Eval_failed "Not a dimension ...
612c3917a9458af479e7f21e0c51853bede3797dbf20912a2b123a5db421a75a
cardmagic/lucash
libscsh.scm
;;; This file is part of scsh. (define (return-from-vm n) (with-continuation (if #t #f) (lambda () n))) (define (startup user-context) (lambda (args) (start-new-session user-context (current-input-port) (current-output-port) (current-error-port) args #t) ;batch? ...
null
https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scsh/libscsh.scm
scheme
This file is part of scsh. batch? (display "error is "(current-error-port)) (display cond (current-error-port)) (newline (current-error-port)) (display "null as result" (current-error-port))) (display "evaluated to:" (current-error-port)) (display (car args)(current-error-port)) ...
(define (return-from-vm n) (with-continuation (if #t #f) (lambda () n))) (define (startup user-context) (lambda (args) (start-new-session user-context (current-input-port) (current-output-port) (current-error-port) args (with-interaction-environment (user-environme...
4a2989b94a6419ddd69591c2aefa3a278f35d13d6b94e5f638effc1aa07d74ed
sarabander/p2pu-sicp
3.51.scm
(define (show x) (display-line x) x) (define x (stream-map show (stream-enumerate-interval 0 10))) 0 (stream-ref x 5) 1 2 3 4 5 (stream-ref x 7) 6 7
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/3.5/3.51.scm
scheme
(define (show x) (display-line x) x) (define x (stream-map show (stream-enumerate-interval 0 10))) 0 (stream-ref x 5) 1 2 3 4 5 (stream-ref x 7) 6 7
c8386b1f9f70ff2ff0bc54ab77a2a1c14b9f224c88755f3d036cea389fc62550
charlescearl/DeepRacket
test-cudann.rkt
#lang racket/base (require rackunit rackunit/text-ui ffi/unsafe "lib-cudann.rkt") ;; define a test case (define handle-tests (test-suite "Tests for cudann" (test-case "Check handle creation" (let* ([block (malloc 'atomic-interior 8)] [hndlptr (cast block _pointer _cudnnHandle_t-poin...
null
https://raw.githubusercontent.com/charlescearl/DeepRacket/767560aab5c56c03e951e005b5b983b435afe7eb/test-cudann.rkt
racket
define a test case
#lang racket/base (require rackunit rackunit/text-ui ffi/unsafe "lib-cudann.rkt") (define handle-tests (test-suite "Tests for cudann" (test-case "Check handle creation" (let* ([block (malloc 'atomic-interior 8)] [hndlptr (cast block _pointer _cudnnHandle_t-pointer)] [res...
1c4d5640c47365ea13e5df9c434c7106a8f9d45fe9e2944c30e99577a37e4a1b
dongcarl/guix
mpi.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 , 2015 , 2018 , 2019 < > Copyright © 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2014 < > Copyright © 2016 < > Copyright © 2017 < > Copyright © 2017 < > Copyright © 2018–2021 < > Copy...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/gnu/packages/mpi.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2014 , 2015 , 2018 , 2019 < > Copyright © 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2014 < > Copyright © 2016 < > Copyright © 2017 < > Copyright © 2017 < > Copyright © 2018–2021 < > Copyright © 2018 < > Copyright © 2019 < > under t...
b2294c696a1b3d5644e0d68493ebe8bc82c04977fa6c129894db8a3c7bac3870
strictly-lang/compiler
Root.hs
module Compiler.Types.Root (compileRoot) where import Compiler.Types import Compiler.Types.Model.Base (compileModel) import Compiler.Types.Style.Base (compileStyle) import Compiler.Types.View.Base (compileView) import Compiler.Util (indent, propertyChainToString, slashToCamelCase, slashToDash) import Control.Monad.Sta...
null
https://raw.githubusercontent.com/strictly-lang/compiler/dc47868e35a6de1e0acabb642a630b2e96bb43fd/src-lib/Compiler/Types/Root.hs
haskell
module Compiler.Types.Root (compileRoot) where import Compiler.Types import Compiler.Types.Model.Base (compileModel) import Compiler.Types.Style.Base (compileStyle) import Compiler.Types.View.Base (compileView) import Compiler.Util (indent, propertyChainToString, slashToCamelCase, slashToDash) import Control.Monad.Sta...
15adb449fe3b28275b28d9ad4a064679082260b07a24f4fb9c4f7d43cf7e7239
functionally/mantis-oracle
PAB.hs
----------------------------------------------------------------------------- -- -- Module : $Headers Copyright : ( c ) 2021 License : MIT -- Maintainer : < > -- Stability : Experimental Portability : Portable -- | application backend simulation for oracle contracts . -- ---...
null
https://raw.githubusercontent.com/functionally/mantis-oracle/10331c6720d8413fd9a01b8c7fb6dc0ef0f20f31/src/Mantra/Oracle/PAB.hs
haskell
--------------------------------------------------------------------------- Module : $Headers Stability : Experimental --------------------------------------------------------------------------- # LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # # LANGUAGE Typ...
Copyright : ( c ) 2021 License : MIT Maintainer : < > Portability : Portable | application backend simulation for oracle contracts . # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE RankNTy...
3b40e25be2ac32288d56b2073e2b5a234d2a97dcd6bb990fcf379f80a6809f2d
dasuxullebt/uxul-world
xy-coordinates.lisp
Copyright 2009 - 2011 (in-package :uxul-world) (declaim (inline make-xy coordinate-distance)) (defstruct xy-struct (x 0 :type fixnum) (y 0 :type fixnum)) (defmethod x ((obj xy-struct)) (slot-value obj 'x)) (defmethod (setf x) (new-value (obj xy-struct)) (setf (slot-value obj 'x) (the number new-value))) (defm...
null
https://raw.githubusercontent.com/dasuxullebt/uxul-world/f05e44b099e5976411b3ef1f980ec616bd221425/xy-coordinates.lisp
lisp
Copyright 2009 - 2011 (in-package :uxul-world) (declaim (inline make-xy coordinate-distance)) (defstruct xy-struct (x 0 :type fixnum) (y 0 :type fixnum)) (defmethod x ((obj xy-struct)) (slot-value obj 'x)) (defmethod (setf x) (new-value (obj xy-struct)) (setf (slot-value obj 'x) (the number new-value))) (defm...
f8cbbdd9e33d5ac65cfbd3069243543de6219509bcca17d59ebd98da2f747f24
fluree/db
proto.cljc
(ns fluree.db.ledger.proto) #?(:clj (set! *warn-on-reflection* true)) (defprotocol iCommit ;; retrieving/updating DBs (-commit! [ledger db] [ledger db opts] "Commits a db to a ledger.")) (defprotocol iLedger ;; retrieving/updating DBs (-db [ledger] [ledger opts] "Returns queryable db with specified options")...
null
https://raw.githubusercontent.com/fluree/db/6da45af99665a158f01fe6153f61dac84a1d190d/src/fluree/db/ledger/proto.cljc
clojure
retrieving/updating DBs retrieving/updating DBs branching committing ledger data across time default did alias name for graph
(ns fluree.db.ledger.proto) #?(:clj (set! *warn-on-reflection* true)) (defprotocol iCommit (-commit! [ledger db] [ledger db opts] "Commits a db to a ledger.")) (defprotocol iLedger (-db [ledger] [ledger opts] "Returns queryable db with specified options") (-db-update [ledger db] "Updates ledger state with new ...
821c079acfa63b717363b1b5dd1b8dd2634e2185eaa74f959a12e3d71dd914a6
chaoxu/fancy-walks
38.hs
import Data.List check n = (=="123456789").sort $ mapping n mapping n = concatMap show $ last $ takeWhile (all ((==[]).tail).group.sort.concatMap show) $ inits [n,n+n..] answer :: [Integer] answer = map (read.mapping) $ filter check [1..9999] problem_38 = maximum answer main = print prob...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/projecteuler.net/38.hs
haskell
import Data.List check n = (=="123456789").sort $ mapping n mapping n = concatMap show $ last $ takeWhile (all ((==[]).tail).group.sort.concatMap show) $ inits [n,n+n..] answer :: [Integer] answer = map (read.mapping) $ filter check [1..9999] problem_38 = maximum answer main = print prob...
ad0a6e9a477b4f7a93ab110a59674199b5998fb2255d1c32b206848a642d8803
michaelklishin/langohr
util.clj
This source code is dual - licensed under the Apache License , version 2.0 , and the Eclipse Public License , version 1.0 . ;; ;; The APL v2.0: ;; ;; ---------------------------------------------------------------------------------- Copyright ( c ) 2011 - 2020 , , and the ClojureWerkz Team ;; Licensed unde...
null
https://raw.githubusercontent.com/michaelklishin/langohr/0c63ac3c6bc97d73e290ed366e9e97e07d39dedb/src/clojure/langohr/util.clj
clojure
The APL v2.0: ---------------------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDIT...
This source code is dual - licensed under the Apache License , version 2.0 , and the Eclipse Public License , version 1.0 . Copyright ( c ) 2011 - 2020 , , and the ClojureWerkz Team distributed under the License is distributed on an " AS IS " BASIS , The EPL v1.0 : Copyright ( c ) 2011 - 2020 , , ...
0c21a87b1f9daafa923270b71e3460744540fa92e35b3f293941bb55ec474ec6
mirage/ocaml-xenstore-server
logging.mli
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/mirage/ocaml-xenstore-server/2a8ae397d2f9291107b5d9e9cfc6085fde8c0982/server/logging.mli
ocaml
* An in-memory non-blocking logger with a fixed size circular buffer. If the buffer is full then some messages may be dropped. The logger will replace runs of dropped messages with a single message with a count of how many messages were dropped. * The application logger * [get logger] returns any availabl...
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
6b580e047f82f79af4c965c4c543d1d3b83d3c4fc04366901e5197a3a020fd38
yurug/ocaml4.04.0-copatterns
btype.ml
(**************************************************************************) (* *) (* OCaml *) (* *) and ,...
null
https://raw.githubusercontent.com/yurug/ocaml4.04.0-copatterns/b3ec6a3cc203bd2cde3b618546d29e10f1102323/typing/btype.ml
ocaml
************************************************************************ OCaml ...
and , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Asttypes open Types module TypeSet = Set.Make(TypeOps) module TypeMap = Map.Make (TypeOps) module Typ...
7b0ee3102bd2006e4001ddaad775dcfaf141609f116a8051614a59818a8a1fec
rabbitmq/osiris
osiris_util.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2007 - 2022 VMware , Inc. or its affiliates . All rights reserved . %% -module(osiris_util). -include("osiris.hrl"). -...
null
https://raw.githubusercontent.com/rabbitmq/osiris/399b470aac3da54da17ae3f149c768bedf91368d/src/osiris_util.erl
erlang
For testing For -ssl_dist_opt server_secure_renegotiate true client_secure_renegotiate true Write as {Module, Function, InitialUserState} Write as Erlang term boolean() | save Use old string format
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2007 - 2022 VMware , Inc. or its affiliates . All rights reserved . -module(osiris_util). -include("osiris.hrl"). -export...
89aeee4001dc1f60e26c8dc5983a22c6bafd35e0e2bd378ac7e070d604addb5b
mirage/ocaml-matrix
http.mli
module Server : sig type scheme = [ `Http | `Https ] type t = {scheme: scheme; host: string; port: int} val pp : Format.formatter -> t -> unit val v : scheme -> string -> int -> t val to_uri : t -> string -> (string * string list) list option -> Uri.t end type 'a or_error = ('a, Matrix_ctos.Errors.t) result...
null
https://raw.githubusercontent.com/mirage/ocaml-matrix/2a58d3d41c43404741f2dfdaf1d2d0f3757b2b69/ci-client/http.mli
ocaml
module Server : sig type scheme = [ `Http | `Https ] type t = {scheme: scheme; host: string; port: int} val pp : Format.formatter -> t -> unit val v : scheme -> string -> int -> t val to_uri : t -> string -> (string * string list) list option -> Uri.t end type 'a or_error = ('a, Matrix_ctos.Errors.t) result...
1474a4d0bb030a6d7a39f8aadacfae414d7a366f4373981ccea3c0d37950aa7e
axellang/axel
Error.hs
# LANGUAGE TemplateHaskell # module Axel.Haskell.Error where import Axel.Prelude import Axel.Sourcemap ( ModuleInfo , Position(Position) , SourcePosition , renderSourcePosition ) import qualified Axel.Sourcemap as SM import Axel.Utils.FilePath (replaceExtension) import Axel.Utils.Json (_Int) import Axel.Ut...
null
https://raw.githubusercontent.com/axellang/axel/f51b4d984ae1674727e90b81274b635693d389ea/src/Axel/Haskell/Error.hs
haskell
# LANGUAGE TemplateHaskell # module Axel.Haskell.Error where import Axel.Prelude import Axel.Sourcemap ( ModuleInfo , Position(Position) , SourcePosition , renderSourcePosition ) import qualified Axel.Sourcemap as SM import Axel.Utils.FilePath (replaceExtension) import Axel.Utils.Json (_Int) import Axel.Ut...
e62fe5ebf91ec284a6f7b810d78dd2ece256abdd50b5dc2a1f0e81fe2c70e26a
hgoes/vvt
Value.hs
# LANGUAGE RankNTypes , TypeFamilies , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , ScopedTypeVariables , GADTs , DeriveDataTypeable , DeriveFunctor , , DeriveTraversable # FlexibleInstances,ScopedTypeVariables,GADTs,DeriveDataTypeable, DeriveFu...
null
https://raw.githubusercontent.com/hgoes/vvt/dd2809753d7e5059d9103ea578f36afa8294cd84/Realization/Lisp/Value.hs
haskell
# LANGUAGE RankNTypes , TypeFamilies , MultiParamTypeClasses , FlexibleContexts , FlexibleInstances , ScopedTypeVariables , GADTs , DeriveDataTypeable , DeriveFunctor , , DeriveTraversable # FlexibleInstances,ScopedTypeVariables,GADTs,DeriveDataTypeable, DeriveFu...
c229ca7ecd138e1b6591594121e4012b3a8bca98318d5d75208852ae3f26dd32
mars0i/free
example_5.clj
This software is copyright 2016 by , and is distributed under the Gnu General Public License version 3.0 as specified in the ;; the file LICENSE. ;; This example shows that ( a ) Sigma responds to changing error rates due to changing ;; causes (i.e. change in the mean of generated inputs), by ;; going ...
null
https://raw.githubusercontent.com/mars0i/free/fe0fdc1c0bf1866cb07b4558a009a829f8d6ba23/src/clj/general/free/example_5.clj
clojure
the file LICENSE. This example shows that causes (i.e. change in the mean of generated inputs), by going up and down in response, (b) Eventually settling in a region with a stable cycle Here are command that will show this: (use '[free.plots] :reload) (require '[free.example-5 :as e] :reload) 300...
This software is copyright 2016 by , and is distributed under the Gnu General Public License version 3.0 as specified in the ( a ) Sigma responds to changing error rates due to changing ( c ) When change stops , sigma goes to zero ( or as low as we allow ) . ( plot - level ( e / make - stages ) 1 350000...
a8e2bcaadf01459386bd35e48dbf5442a7407fc5a0dd24dd91d82a17fc30c542
district0x/district-voting
countdown_timer.cljs
(ns district-voting.components.countdown-timer (:require [district-voting.styles :as styles] [district0x.utils :as u])) (defn countdown [time-remaining] (let [{:keys [:seconds :minutes :hours :days :caption]} time-remaining] [:h3 {:style (merge styles/full-width styles/text-cente...
null
https://raw.githubusercontent.com/district0x/district-voting/ef253671b00bdccec4575bcfa1b72b25e28afc22/src/cljs/district_voting/components/countdown_timer.cljs
clojure
(ns district-voting.components.countdown-timer (:require [district-voting.styles :as styles] [district0x.utils :as u])) (defn countdown [time-remaining] (let [{:keys [:seconds :minutes :hours :days :caption]} time-remaining] [:h3 {:style (merge styles/full-width styles/text-cente...
3b648cb0b76b2d0b876f5c94aaab12722a0d4c117b9691015135f2af3666d2d3
JustusAdam/marvin
Internal.hs
| Module : $ Header$ Description : Internal types for the slack adapter Copyright : ( c ) , 2016 License : : Stability : experimental Portability : POSIX See for documentation about this adapter . The contents of this module are intended to provide access to internal function...
null
https://raw.githubusercontent.com/JustusAdam/marvin/c49db1f7efbd5cc0803c9802ca31bb4488472ac3/src/Marvin/Adapter/Slack/Internal.hs
haskell
| Module : $ Header$ Description : Internal types for the slack adapter Copyright : ( c ) , 2016 License : : Stability : experimental Portability : POSIX See for documentation about this adapter . The contents of this module are intended to provide access to internal function...
3b1aea5119c60260796f554d47143e80093b9e004f2733e8a3b9f0790edabd26
ocaml/merlin
context.ml
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
null
https://raw.githubusercontent.com/ocaml/merlin/7607238326a9352cbee9ecf612669e28ae9fa36e/src/analysis/context.ml
ocaml
Similar to constructors. Assumption: if [Browse.enclosing] stopped on this node and not on the subpattern, then it must mean that the cursor is on the alias. Assumption: if [Browse.enclosing] stopped on this node and not on the subpattern, then it must mean that the cursor is on the constructor ...
{ { { COPYING * ( This file is part of Merlin , an helper for ocaml editors Copyright ( C ) 2013 - 2015 < frederic.bour(_)lakaban.net > refis.thomas(_)gmail.com > < simon.castellan(_)iuwt.fr > Permission is hereby granted , free...
ed51722359b986604097653ae2076d75be0ba05a71965e801b17642c8a138baf
juxt/site
repl.clj
Copyright © 2021 , JUXT LTD . (ns juxt.site.alpha.repl (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.walk :refer [postwalk]] [xtdb.api :as xt] [crypto.password.bcrypt :as password] [jsonista.core :as json] [clojure.java.shell :as sh] [io.aviso.ansi :as ansi] [juxt.pas...
null
https://raw.githubusercontent.com/juxt/site/222ca9bda164fdb6bde621959536e3af5f85c410/src/juxt/site/alpha/repl.clj
clojure
Create a regex pattern which detects anything as a mapping key Test the line can be read Awaiting a fix to
Copyright © 2021 , JUXT LTD . (ns juxt.site.alpha.repl (:require [clojure.edn :as edn] [clojure.java.io :as io] [clojure.walk :refer [postwalk]] [xtdb.api :as xt] [crypto.password.bcrypt :as password] [jsonista.core :as json] [clojure.java.shell :as sh] [io.aviso.ansi :as ansi] [juxt.pas...
887968d94e3542dd3ad47ee0a46c724755d04fa5989a7efa4241cbe253cdc6df
herbelin/coq-hh
evd.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/pretyping/evd.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** The kinds of existential variable ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Names ...
2375571bf3a921d81223b85bc9b602ce1f9b38696cba28972ac74d18f00a5d1a
ianmbloom/gudni
Bezier.hs
{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE PatternSynonyms #-} | Functions on quadratic curves module Graphics.Gudni.Figure.Bezier ( Bezier(..) , pattern Bez , maxStepsFromAccuracy , splitBezier , inverseArcLength , eval ) where import Graphics.Gudni.Figure.Space import Graphics.Gudni.Figure.P...
null
https://raw.githubusercontent.com/ianmbloom/gudni/fa69f1bf08c194effca05753afe5455ebae51234/src/Graphics/Gudni/Figure/Bezier.hs
haskell
# LANGUAGE TypeFamilies # # LANGUAGE PatternSynonyms # This computation is based on an analytical formula. Since that formula suffers from numerical instability when the curve is very close to a straight line, we This case happens for nearly straight Béziers. github.com / Pomax / BezierInfo-2 / issues/77 TO...
| Functions on quadratic curves module Graphics.Gudni.Figure.Bezier ( Bezier(..) , pattern Bez , maxStepsFromAccuracy , splitBezier , inverseArcLength , eval ) where import Graphics.Gudni.Figure.Space import Graphics.Gudni.Figure.Point import Graphics.Gudni.Figure.ArcLength import Numeric.Interval ...
d032b482528c09dc1980326862ed7ad9abfd65817d2aa6388e894968a5289867
BranchTaken/Hemlock
deq.ml
open Rudiments0 type 'a t = uns * 'a Stream.t * 'a Stream.t * uns * 'a Stream.t * 'a Stream.t Increment size for rebuilding ; must be either 2 or 3 . Reference : Double - ended queues section in * Purely Functional Data Structures by . * Purely Functional Data Structures by Chris Okasaki. *) let c = 2L let...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/src/basis/deq.ml
ocaml
open Rudiments0 type 'a t = uns * 'a Stream.t * 'a Stream.t * uns * 'a Stream.t * 'a Stream.t Increment size for rebuilding ; must be either 2 or 3 . Reference : Double - ended queues section in * Purely Functional Data Structures by . * Purely Functional Data Structures by Chris Okasaki. *) let c = 2L let...
041d97abed799e72caad35a7ca37074deea511a6c73aa7e4ba8f32a8a6e7a952
cxphoe/SICP-solutions
compiler.rkt
(load "ev-operations\\expression.rkt") (load "compiler-instruction-sequence.rkt") (load "compiler-label.rkt") (load "compiler-lexical-address.rkt") (load "compiler-open-code.rkt") (load "scan-out-defines.rkt") ; log: ; >> an original compiler > > adopt implementation about open code in ex-5.38 ; >> adopt implementat...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%205-Computing%20with%20Register%20Machines/5.%20Compile/compiler.rkt
racket
log: >> an original compiler >> adopt implementation about lexical address in ex-5.39 ~ ex-5.44 and change the implementation about open code >> adopt implementation of scan-out-defines >> adopt implementation of checking rebound open code operators >> use expression.rkt from directory <ev-operations> >> ext...
(load "ev-operations\\expression.rkt") (load "compiler-instruction-sequence.rkt") (load "compiler-label.rkt") (load "compiler-lexical-address.rkt") (load "compiler-open-code.rkt") (load "scan-out-defines.rkt") > > adopt implementation about open code in ex-5.38 (define (test text) (for-each (lambda (x) ...
b49d6e89f03cde34863f63e3ac98d7cbe131c8574b7701fe2ae15705d75b023b
rhaberkorn/ermacs
em_scan.erl
%%%---------------------------------------------------------------------- %%% File : em_scan.erl Author : < > %%% Purpose : Scanner for leex-style DFAs. Created : 1 May 2001 by < > %%%---------------------------------------------------------------------- -module(em_scan). -author(''). -record(scanner...
null
https://raw.githubusercontent.com/rhaberkorn/ermacs/35c8f9b83ae85e25c646882be6ea6d340a88b05b/mods/src/em_scan.erl
erlang
---------------------------------------------------------------------- File : em_scan.erl Purpose : Scanner for leex-style DFAs. ---------------------------------------------------------------------- discarded - all that's taken from the user-written "actions" is the token type. Instead we just keep the start/fi...
Author : < > Created : 1 May 2001 by < > -module(em_scan). -author(''). -record(scanner, {initial_state, dfa_fn, action_fn}). Token record . The actual lexeme , if returned by the scanner , is -record(token, { ' em_skipped ' , when the scanner returns ' ' but type, start, finish, numbe...
180b55e76098d88fa8fecc1df9b98f98b92f6c447caf319e44729cbe5e8a9d0b
HunterYIboHu/htdp2-solution
ex357-eval-definition1.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex357-eval-definition1) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t const...
null
https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter4/Section21-Refining-Interpreters/ex357-eval-definition1.rkt
racket
about the language level of this file in a form that our tools can easily process. (cons Symbol (cons Number '())). An Add is a structure: An Mul is a structure: An Func is a structure: (make-func Symbol [List-of Symbol] BSL-func-expr) - Number - Add - Mul - Number - Symbol - Add - Mul - Number - Sy...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex357-eval-definition1) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) An AL ( short for association list )...
deebed1911a0d57137a650b58381905bb0db1c6101f71511e5d774d724cc734c
igarnier/vplot
utils.ml
open Numerics.Float64 type float_ref = { mutable x : float } let min (f : float) (f' : float) = if f < f' then f else f' let max (f : float) (f' : float) = if f < f' then f' else f let vector_range (data : Vec.t) = let len = Vec.length data in let minv = { x = max_float } in let maxv = { x = -.max_float } in ...
null
https://raw.githubusercontent.com/igarnier/vplot/146467257f110f71d48415fc3ddaf0f46a71035a/lib/utils.ml
ocaml
open Numerics.Float64 type float_ref = { mutable x : float } let min (f : float) (f' : float) = if f < f' then f else f' let max (f : float) (f' : float) = if f < f' then f' else f let vector_range (data : Vec.t) = let len = Vec.length data in let minv = { x = max_float } in let maxv = { x = -.max_float } in ...
1fde5a4ffb31b01fb43f707e968e0037d15bf9c28985c4e6df96298d5c0d08a6
clojure/core.typed
fn.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/check/special/fn.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:skip-wiki clojure.core.typed.checker.check.special.fn (:require [clojure.core.typed :as t] [clojure.core.typed.checker.jvm.parse-unparse :as prs] [clojure.core.typed.checker.filter-ops :as fo] [clojure.core.typed.checker.object-rep...
23b2196f01317c405577837fd70fe2c92c06f70379e7d7fbd621d3dd2f2903e6
VisionsGlobalEmpowerment/webchange
events.cljs
(ns webchange.events (:require [re-frame.core :as re-frame] [webchange.db :as db] [day8.re-frame.tracing :refer-macros [fn-traced defn-traced]] [day8.re-frame.http-fx] [ajax.core :refer [json-request-format json-response-format]] [webchange.error-message.state :as error-message])) (re-frame/reg-eve...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/70dd9b1d1c7c6d39ae744eacf040dd95019b6479/src/cljs/webchange/events.cljs
clojure
credentials = {:email ... :password ...} {:user {:email ... :password ...}} make sure it's json json response and all keys to keywords trigger login-success trigger api-request-error with :login -- Request Handlers ----------------------------------------------------------- when we complete a request we need t...
(ns webchange.events (:require [re-frame.core :as re-frame] [webchange.db :as db] [day8.re-frame.tracing :refer-macros [fn-traced defn-traced]] [day8.re-frame.http-fx] [ajax.core :refer [json-request-format json-response-format]] [webchange.error-message.state :as error-message])) (re-frame/reg-eve...
fa601517fcf1f664d0b8955ec5c9155f49f7045f68157f39c30b4c23fc776c5f
nikvdp/bbb
dep_edn_alias.clj
(ns bbb.dep-edn-alias (:require [clj.native-image])) (defn tools-deps-entrypoint [{:keys [main-ns]}] (clj.native-image/-main main-ns "--initialize-at-build-time" "--allow-incomplete-classpath"))
null
https://raw.githubusercontent.com/nikvdp/bbb/2e08ea6ee4f0b750af735a80538fba4fdcf6af74/src/bbb/dep_edn_alias.clj
clojure
(ns bbb.dep-edn-alias (:require [clj.native-image])) (defn tools-deps-entrypoint [{:keys [main-ns]}] (clj.native-image/-main main-ns "--initialize-at-build-time" "--allow-incomplete-classpath"))
2f70a70f5c18f1a3815cd6976e597f87a7d2f4c6bf63d1e0d961be11764c1a26
cljdoc/cljdoc
sanitize.clj
(ns cljdoc.render.sanitize "Sanitize HTML Goals - disallow the blatantly dangerous, for example: `<script>` `onclick`, etc. - allow valid html generated from markdown styling - adoc generator includes `class` and very limited `style` attributes - md generator includes minimal `class` Of Interest -...
null
https://raw.githubusercontent.com/cljdoc/cljdoc/b3e0b98adbd8290159582971fcfb59f9a4140967/src/cljdoc/render/sanitize.clj
clojure
helpers for awkward interop adoc roles can, I think, appear in any class attribute. note that there are deprecated adoc roles such as colors (ex. `red` `background-green` etc) and github pipeline sanitization ref: -pipeline/blob/0e3d84eb13845e0d2521ef0dc13c9c51b88e5087/lib/html/pipeline/sanitization_filter.rb#L44-...
(ns cljdoc.render.sanitize "Sanitize HTML Goals - disallow the blatantly dangerous, for example: `<script>` `onclick`, etc. - allow valid html generated from markdown styling - adoc generator includes `class` and very limited `style` attributes - md generator includes minimal `class` Of Interest -...
dc050ff2396a7cee9b136bdbb1055b4bba979ae05b68bd0d808e864293a895df
issuu/ocaml-protoc-plugin
extensions.ml
open StdLabels type t = (int * Field.t) list let default = [] let pp_item fmt (index, field) = Format.fprintf fmt "(%d, %a)" index Field.pp field let pp : Format.formatter -> t -> unit = fun fmt -> Format.pp_print_list pp_item fmt let show : t -> string = Format.asprintf "%a" pp let equal _ _ = true let compare _ _ = 0...
null
https://raw.githubusercontent.com/issuu/ocaml-protoc-plugin/3d8b3eeb48e2a58dc80fbfdf9d749e69676625ab/src/ocaml_protoc_plugin/extensions.ml
ocaml
Back and forth - its the same, no?
open StdLabels type t = (int * Field.t) list let default = [] let pp_item fmt (index, field) = Format.fprintf fmt "(%d, %a)" index Field.pp field let pp : Format.formatter -> t -> unit = fun fmt -> Format.pp_print_list pp_item fmt let show : t -> string = Format.asprintf "%a" pp let equal _ _ = true let compare _ _ = 0...
2dae78702ebedff0bdf94ba5f40ec82c6bb4cba6c6669a1b5c00ead9ef55aaa9
NathanReb/ppx_yojson
utils.mli
(** General puprose helper functions *) val remove : idx:int -> 'a list -> 'a list (** Return the given list without the element at index [idx]. If [idx] is not a valid index in the given list, it is returned as is. *) val permutations : 'a list -> 'a list list (** Return all the permutations of the given list *)...
null
https://raw.githubusercontent.com/NathanReb/ppx_yojson/085844cbbbc199689faeeee0c9bc1f4d9bc5f4f9/lib/utils.mli
ocaml
* General puprose helper functions * Return the given list without the element at index [idx]. If [idx] is not a valid index in the given list, it is returned as is. * Return all the permutations of the given list
val remove : idx:int -> 'a list -> 'a list val permutations : 'a list -> 'a list list
a73067394976da58fab577c8226491f06d040a8828832ab14503f0bab3822976
raviksharma/bartosz-basics-of-haskell
showcontent.hs
data Operator = Plus | Minus | Times | Div deriving (Show, Eq) opToStr :: Operator -> String opToStr Plus = "+" opToStr Minus = "-" opToStr Times = "*" opToStr Div = "/" data Token = TokOp Operator | TokIdent String | TokNum Int deriving (Show, Eq) showContent :: Token -> String show...
null
https://raw.githubusercontent.com/raviksharma/bartosz-basics-of-haskell/86d40d831f61415ef0022bff7fe7060ae6a23701/05-tokenizer-data-types/showcontent.hs
haskell
data Operator = Plus | Minus | Times | Div deriving (Show, Eq) opToStr :: Operator -> String opToStr Plus = "+" opToStr Minus = "-" opToStr Times = "*" opToStr Div = "/" data Token = TokOp Operator | TokIdent String | TokNum Int deriving (Show, Eq) showContent :: Token -> String show...
f60f9d8296fe7ab74828a9e901c9ead5b6a6d51fc0317775fde7f8b54d8dabac
monadfix/ormolu-live
PatSyn.hs
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1998 \section[PatSyn]{@PatSyn@ : Pattern synonyms } (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1998 \section[PatSyn]{@PatSyn@: Pattern synonyms} -} # LANGUAGE CPP # module PatSy...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/compiler/basicTypes/PatSyn.hs
haskell
* Main data types ** Type deconstruction ************************************************************************ * * \subsection{Pattern synonyms} * * ***************************...
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1998 \section[PatSyn]{@PatSyn@ : Pattern synonyms } (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1998 \section[PatSyn]{@PatSyn@: Pattern synonyms} -} # LANGUAGE CPP # module PatSy...
eef5b80b2b8db68bdd9afc012d711565eb5b8818b8b86b952324e1d24d6166b6
puppetlabs/puppetdb
environments_test.clj
(ns puppetlabs.puppetdb.http.environments-test (:require [puppetlabs.puppetdb.cheshire :as json] [puppetlabs.puppetdb.scf.storage :as storage] [puppetlabs.puppetdb.query-eng :as eng] [clojure.test :refer :all] [puppetlabs.puppetdb.testutils.db :refer [without-db-var]] ...
null
https://raw.githubusercontent.com/puppetlabs/puppetdb/b3d6d10555561657150fa70b6d1e609fba9c0eda/test/puppetlabs/puppetdb/http/environments_test.clj
clojure
Basic facts subquery examples In syntax: select_facts In syntax: from Implicit subquery syntax Not-wrapped subquery syntax In syntax: select_facts In syntax: from Complex subquery example In syntax: select_<entity> In syntax: from Note: fact/resource comparison isn't a natural join, so there is no imp...
(ns puppetlabs.puppetdb.http.environments-test (:require [puppetlabs.puppetdb.cheshire :as json] [puppetlabs.puppetdb.scf.storage :as storage] [puppetlabs.puppetdb.query-eng :as eng] [clojure.test :refer :all] [puppetlabs.puppetdb.testutils.db :refer [without-db-var]] ...
db19e0e6af3e4ebb035030339f7ed47b861363db54455f9b7325c630ebb99478
wh5a/thih
Env.hs
------------------------------------------------------------------------------ Copyright : The Hatchet Team ( see file Contributors ) Module : Env Description : A generic environment that supports mappings from...
null
https://raw.githubusercontent.com/wh5a/thih/dc5cb16ba4e998097135beb0c7b0b416cac7bfae/hatchet/Env.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -----------------------------------------------------------------------------} ------------------------------------------------------------------------------ this m...
Copyright : The Hatchet Team ( see file Contributors ) Module : Env Description : A generic environment that supports mappings from names to values . Primary Authors : Notes : ...
4ca7b184b7b6dd0abe73b32862e7509e2b02816a51cafa92b5a5bd96ce7a4d63
well-typed-lightbulbs/ocaml-esp32
pr4466.ml
(* TEST * hassysthreads include systhreads ** native compare_programs = "false" *) open Printf Regression test for PR#4466 : select timeout with simultaneous read and write on socket in Windows . and write on socket in Windows. *) (* Scenario: - thread [server] implements a simple 'echo' server...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/lib-threads/pr4466.ml
ocaml
TEST * hassysthreads include systhreads ** native compare_programs = "false" Scenario: - thread [server] implements a simple 'echo' server on a socket - thread [reader] selects then reads from a socket connected to the echo server and copies to standard output - main program executes [wr...
open Printf Regression test for PR#4466 : select timeout with simultaneous read and write on socket in Windows . and write on socket in Windows. *) let server sock = let (s, _) = Unix.accept sock in let buf = Bytes.make 1024 '>' in for i = 1 to 3 do let n = Unix.recv s buf 2 (Bytes.length buf - ...
b9457353b83fd7c2eafe22ae7cb1cb10f76cd494a705dc7dd222c9dd6f91dcfa
cfpb/qu
user.clj
(ns user) (def namespaces (atom {})) (alter-var-root (var clojure.core/load-lib) (fn [f] (fn [prefix lib & options] (let [start (. java.lang.System (nanoTime)) return (apply f prefix lib options) end (. java.lang...
null
https://raw.githubusercontent.com/cfpb/qu/f460d9ab2f05ac22f6d68a98a9641daf0f7c7ba4/dev/user.clj
clojure
(ns user) (def namespaces (atom {})) (alter-var-root (var clojure.core/load-lib) (fn [f] (fn [prefix lib & options] (let [start (. java.lang.System (nanoTime)) return (apply f prefix lib options) end (. java.lang...
4f265b15774f6da924b5d45df3249c5f31e4d5b596625796ccfd1374272d4730
haskell-suite/haskell-names
PatternSynonyms.hs
{-# LANGUAGE PatternSynonyms, NamedFieldPuns #-} module PatternSynonyms where data Type = App String [Type] pattern Arrow t1 t2 = App "->" [t1, t2] pattern Int = App "Int" [] pattern Maybe t = App "Maybe" [t] collectArgs :: Type -> [Type] collectArgs (Arrow t1 t2) = t1 : collectArgs t2 collectArgs _ = ...
null
https://raw.githubusercontent.com/haskell-suite/haskell-names/795d717541484dbe456342a510ac8e712e1f16e4/tests/annotations/PatternSynonyms.hs
haskell
# LANGUAGE PatternSynonyms, NamedFieldPuns #
module PatternSynonyms where data Type = App String [Type] pattern Arrow t1 t2 = App "->" [t1, t2] pattern Int = App "Int" [] pattern Maybe t = App "Maybe" [t] collectArgs :: Type -> [Type] collectArgs (Arrow t1 t2) = t1 : collectArgs t2 collectArgs _ = [] isInt :: Type -> Bool isInt Int = True isInt ...
b19975f1937875c240de1c97fcaa0c99f176e440a0dced9699de710efc143214
clojure-lsp/clojure-lsp
restructure_keys_test.clj
(ns clojure-lsp.feature.restructure-keys-test (:require [clojure-lsp.feature.restructure-keys :as f.restructure-keys] [clojure-lsp.test-helper :as h] [clojure.test :refer [deftest is testing]])) (h/reset-components-before-test) (defn ^:private can-restructure-zloc? [zloc] (f.restructure-keys/can-restruct...
null
https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/a3ff38fca0a52e5b062ffc7e11b15851e9fec02e/lib/test/clojure_lsp/feature/restructure_keys_test.clj
clojure
This map establishes a local inside of it, so our heuristics suggest it should be restructurable. Rather than make the heuristics smarter to avoid offering the code action, we're satisified with not breaking the map.
(ns clojure-lsp.feature.restructure-keys-test (:require [clojure-lsp.feature.restructure-keys :as f.restructure-keys] [clojure-lsp.test-helper :as h] [clojure.test :refer [deftest is testing]])) (h/reset-components-before-test) (defn ^:private can-restructure-zloc? [zloc] (f.restructure-keys/can-restruct...
c50733d851ba8f913fa6fe3215f8be555293df18758897b86921d79b8d8c0505
Noeda/dfterm3
SubscriptionIO.hs
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving #-} module Dfterm3.GameSubscription.Internal.SubscriptionIO ( SubscriptionIO(..) , runSubscriptionIO , useAcidState ) where import Dfterm3.GameSubscription.Internal.Types import Dfterm3.Dfterm3State.Internal.Types import Data.IORef import Da...
null
https://raw.githubusercontent.com/Noeda/dfterm3/6b33c9b4712da486bb84356f6c9f48abb8074faf/src/Dfterm3/GameSubscription/Internal/SubscriptionIO.hs
haskell
# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving # | Actions that require reading or changing values on the disk live in the These actions can be issued concurrently; however internally there is a lock that prevents actions from running at the same time.
module Dfterm3.GameSubscription.Internal.SubscriptionIO ( SubscriptionIO(..) , runSubscriptionIO , useAcidState ) where import Dfterm3.GameSubscription.Internal.Types import Dfterm3.Dfterm3State.Internal.Types import Data.IORef import Data.Acid import Data.Typeable ( Typeable ) import Control.Lens im...
b6fa82325e90f363df41c111f191b0434523b07bf18be5987ff21bf460f3ff9b
ronxin/stolzen
zip.scm
#lang scheme (require rackunit) (define (zip . lists) (define (zip-inner params) (if (null? (car params)) null (cons (apply list (map car params)) (zip-inner (map cdr params))) ) ) (zip-inner lists) ) (check-equal? (zip '(1 2...
null
https://raw.githubusercontent.com/ronxin/stolzen/bb13d0a7deea53b65253bb4b61aaf2abe4467f0d/sicp/chapter3/3.3/zip.scm
scheme
#lang scheme (require rackunit) (define (zip . lists) (define (zip-inner params) (if (null? (car params)) null (cons (apply list (map car params)) (zip-inner (map cdr params))) ) ) (zip-inner lists) ) (check-equal? (zip '(1 2...
193600991beea239f205415b36e23ae5265ff075ce6e292372a437a55c160534
kanaka/bartender
cli.clj
(ns wend.cli (:require [clojure.tools.cli :refer [parse-opts summarize]] [clojure.java.io :as io] [clojure.string :refer [ends-with?]] [clojure.pprint :refer [pprint]] [instacheck.core :as icore] [instacheck.grammar :as igrammar] [instacheck.red...
null
https://raw.githubusercontent.com/kanaka/bartender/4357fde74adb228a3cd3fcc12cae4926da899b4e/src/wend/cli.clj
clojure
a parse grammar to a generator grammar. Default values to use for generator specific weights in order to create a usable generator weight map from a parsed one. Can be either a default value, a weight to lookup, or a function that is Adjust for different elements in :cat No great match, but use the closest eleme...
(ns wend.cli (:require [clojure.tools.cli :refer [parse-opts summarize]] [clojure.java.io :as io] [clojure.string :refer [ends-with?]] [clojure.pprint :refer [pprint]] [instacheck.core :as icore] [instacheck.grammar :as igrammar] [instacheck.red...
bc51255bf3f7ced08bb8c44a4f2b00e302cfcfe644e1270198f7843bc5ef1f22
creswick/ihaskell-notebook
Main.hs
module Main where import Test.Framework ( defaultMain ) import qualified JsonIO as JsonIO main :: IO () main = defaultMain $ concat [ JsonIO.tests ]
null
https://raw.githubusercontent.com/creswick/ihaskell-notebook/91dfd756d408e5cddf9b53286bca702d731b09b7/ghcj/tests/src/Main.hs
haskell
module Main where import Test.Framework ( defaultMain ) import qualified JsonIO as JsonIO main :: IO () main = defaultMain $ concat [ JsonIO.tests ]
8226a26c7a500295dccda442a3c5586c99ec8389ef6b4088f6e7c83d6b30631d
matsubara0507/git-plantation
Main.hs
# LANGUAGE OverloadedLabels # # OPTIONS_GHC -fno - warn - orphans # module Main where import Options import qualified Paths_git_plantation as Meta import RIO import Configuration.Dotenv (defaultConfig, loadFile) import Data.Extensible import Git.Plantation.Cmd a...
null
https://raw.githubusercontent.com/matsubara0507/git-plantation/7bd7ea01fec83dc02118eefcfeb145a1df4f564e/exec/tool/Main.hs
haskell
# LANGUAGE OverloadedLabels # # OPTIONS_GHC -fno - warn - orphans # module Main where import Options import qualified Paths_git_plantation as Meta import RIO import Configuration.Dotenv (defaultConfig, loadFile) import Data.Extensible import Git.Plantation.Cmd a...
73232e49423f46c97a56b054fb04485871243250943eb52e4220191dfc712d57
picty/parsifal
test_pci.ml
open Parsifal open Pci let _ = try let pci_filename = if Array.length Sys.argv > 1 then Sys.argv.(1) else "test.pci" in let input = string_input_of_filename pci_filename in let pci_file = parse_rom_file input in print_endline (print_value (value_of_rom_file pci_file)); exit...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/pci/test_pci.ml
ocaml
open Parsifal open Pci let _ = try let pci_filename = if Array.length Sys.argv > 1 then Sys.argv.(1) else "test.pci" in let input = string_input_of_filename pci_filename in let pci_file = parse_rom_file input in print_endline (print_value (value_of_rom_file pci_file)); exit...
d4f381cb868c59f98af749bb1042511fa632890b846a6d812972edf096510de3
ocsigen/ocaml-eliom
oprint.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocsigen/ocaml-eliom/497c6707f477cb3086dc6d8124384e74a8c379ae/typing/oprint.ml
ocaml
************************************************************************ OCaml ...
Projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Format open Outcometree exception Ellipsis let cautious f ppf arg = try f ppf arg with...
be2e8eb76bb95f1d199f99d3e35d0ca9a8cc35ddbbc3f7efff7a6d2def5c6858
yutopp/rill
builtin.ml
* Copyright 2020 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2020 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * ) *) ...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/sema/builtin.ml
ocaml
meta
* Copyright 2020 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2020 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * ) *) ...
58dec3436bf03aa76e4dc3c997466b59e2c65e2965bf01db7c5e8cf1cda80586
marick/Midje
wrapping.clj
(ns ^{:doc "midje.background uses these to wrap extra code around :contents, :facts, or :expects"} midje.parsing.util.wrapping (:require [clojure.zip :as zip] [midje.parsing.util.core :refer :all] [midje.util.thread-safe-var-nesting :refer [namespace-values-inside-out ...
null
https://raw.githubusercontent.com/marick/Midje/2b9bcb117442d3bd2d16446b47540888d683c717/src/midje/parsing/util/wrapping.clj
clojure
stashing wrapping targets
(ns ^{:doc "midje.background uses these to wrap extra code around :contents, :facts, or :expects"} midje.parsing.util.wrapping (:require [clojure.zip :as zip] [midje.parsing.util.core :refer :all] [midje.util.thread-safe-var-nesting :refer [namespace-values-inside-out ...
a6464aec87bfaec66d501404943e0b1f6d24149bd96e44fd9a3602609963d2c9
niquola/pg3
instance.clj
(ns pg3.instance (:require [clj-yaml.core :as yaml] [k8s.core :as k8s] [clojure.string :as str] [pg3.naming :as naming] [pg3.model :as model] [cheshire.core :as json])) (defn update-status [inst status] (k8s/patch (assoc inst :kind naming/ins...
null
https://raw.githubusercontent.com/niquola/pg3/5ae683813bd724fa2dad3162dcfb2b600f63bc7d/src/pg3/instance.clj
clojure
(ns pg3.instance (:require [clj-yaml.core :as yaml] [k8s.core :as k8s] [clojure.string :as str] [pg3.naming :as naming] [pg3.model :as model] [cheshire.core :as json])) (defn update-status [inst status] (k8s/patch (assoc inst :kind naming/ins...
16b8dcb1707f006b38459ad99c198ca7e69a7f33b325ab60ada2116ce530c9a0
myuon/minilight
Resolver.hs
# LANGUAGE DeriveGeneric # # LANGUAGE PatternSynonyms # # LANGUAGE ViewPatterns # module MiniLight.Loader.Internal.Resolver where import Control.Applicative import Control.Monad import Data.Aeson hiding (Result) import qualified Data.HashMap.Strict as HM import qualified Data.Text as T import qualified Data.Text.Encod...
null
https://raw.githubusercontent.com/myuon/minilight/3c6a4f6b9ed15c97c7de02a281c31152442fb4d7/src/MiniLight/Loader/Internal/Resolver.hs
haskell
^ reference syntax: ${ref:...} ^ variable syntax: ${var:...} ^ expr operator: +, -, *, / ^ constants (string or number or null) ^ token symbol ^ function application ($func(a,b,c)) low precedence infixl operator group high precedence infixl operator group | Interpret a JSON value, and unsafely apply fromRight
# LANGUAGE DeriveGeneric # # LANGUAGE PatternSynonyms # # LANGUAGE ViewPatterns # module MiniLight.Loader.Internal.Resolver where import Control.Applicative import Control.Monad import Data.Aeson hiding (Result) import qualified Data.HashMap.Strict as HM import qualified Data.Text as T import qualified Data.Text.Encod...
368dbc7c20e6687fbae9203b25d7d9840fe37cc90e93df30aec1a58bd884ebc4
orchid-hybrid/microKanren-sagittarius
chicken.scm
(include "./srfi/95.sld") (include "./test-check.sld") (include "./miruKanren/kanren.sld") (include "./miruKanren/utils.sld") (include "./miruKanren/variables.sld") (include "./miruKanren/monad.sld") (include "./miruKanren/micro.sld") (include "./miruKanren/mini.sld") (include "./miruKanren/streams.sld") (include "./mi...
null
https://raw.githubusercontent.com/orchid-hybrid/microKanren-sagittarius/9e740bbf94ed2930f88bbcf32636d3480934cfbb/chicken.scm
scheme
(include "./srfi/95.sld") (include "./test-check.sld") (include "./miruKanren/kanren.sld") (include "./miruKanren/utils.sld") (include "./miruKanren/variables.sld") (include "./miruKanren/monad.sld") (include "./miruKanren/micro.sld") (include "./miruKanren/mini.sld") (include "./miruKanren/streams.sld") (include "./mi...
0215dc77f6f6e7967ffd5158cea446deb0e3a6486417ee00d4a82f515972eef0
TOTBWF/teenytt
Tactic.hs
-- | Bidirectional Tactic for Elaboration module TeenyTT.Elaborator.Tactic ( -- * Type Formation Tactics Tp(..) , runTp -- * Check Tactics , Chk(..) , runChk , chk , match -- * Synthesis Tactics , Syn(..) , runSyn , ann , observe -- * Tactic Class , Tactic(....
null
https://raw.githubusercontent.com/TOTBWF/teenytt/b1363fe78183bb13ea447056a10ef1eac72dbff1/src/TeenyTT/Elaborator/Tactic.hs
haskell
| Bidirectional Tactic for Elaboration * Type Formation Tactics * Check Tactics * Synthesis Tactics * Tactic Class ------------------------------------------------------------------------------ Type Tactics ------------------------------------------------------------------------------ Check Tactics -------------...
module TeenyTT.Elaborator.Tactic ( Tp(..) , runTp , Chk(..) , runChk , chk , match , Syn(..) , runSyn , ann , observe , Tactic(..) ) where import TeenyTT.Base.Location import TeenyTT.Core.Syntax qualified as S import TeenyTT.Core.Domain qualified as D import TeenyTT....
260983b05c05a3ad615c991dd9d6c1163f6183d85ebf882b03f70089e35ba870
uim/sigscheme
test-srfi43.scm
Filename : test-srfi43.scm ;; About : unit tests for SRFI-43 ;; Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > ;; ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following condi...
null
https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/test/test-srfi43.scm
scheme
About : unit tests for SRFI-43 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and ...
Filename : test-srfi43.scm Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of authors nor the names of its contribut...
a766b643530636710db6140408179c2a51061c6a114a34fb1610bcaf100bcff7
migae/datastore
emap.clj
(ns test.emap (:refer-clojure :exclude [name hash]) (:import [com.google.appengine.tools.development.testing LocalServiceTestHelper LocalServiceTestConfig LocalMemcacheServiceTestConfig LocalMemcacheServiceTestConfig$SizeUnit LocalMailServiceTestConfig ...
null
https://raw.githubusercontent.com/migae/datastore/61b2fc243cfd95956d531a57c86ea58eb19af7b7/test/clj/test/emap.clj
clojure
(:use [clj-logging-config.log4j]) [ring-zombie.core :as zombie])) (defn- make-local-services-fixture-fn [services hook-helper] (em/init) (use-fixtures :once (fn [test-fn] (dss/get-datastore-service) (test-fn))) entity-map create funcs ! throw exception if already exists ?-! ignore em arg ...
(ns test.emap (:refer-clojure :exclude [name hash]) (:import [com.google.appengine.tools.development.testing LocalServiceTestHelper LocalServiceTestConfig LocalMemcacheServiceTestConfig LocalMemcacheServiceTestConfig$SizeUnit LocalMailServiceTestConfig ...
8d138a1e62b741c6ad530018bb267ae6e0837bca7c1534c1b530d9f58c0b008e
spechub/Hets
Prove.hs
# LANGUAGE CPP # | Module : ./VSE / Prove.hs Description : Interface to the VSE prover Copyright : ( c ) , DFKI 2008 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : needs POSIX call an adaption of VSE II to hets Mod...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/VSE/Prove.hs
haskell
try again
# LANGUAGE CPP # | Module : ./VSE / Prove.hs Description : Interface to the VSE prover Copyright : ( c ) , DFKI 2008 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : needs POSIX call an adaption of VSE II to hets Mod...
257277f9d49363445ac1a542e596242089874e9b0adb6826e6ebb1b2017b41ad
eslick/cl-registry
presentation-protocol.lisp
(in-package :registry) ;;;; * web presentations nominally we 'd use a protocl based object system here , but CLOS ;;;; is fine. (defvar *web-field-counter* 0) (defun genweb-field-name () (format nil "web-field-~D" (incf *web-field-counter*))) (defclass web-field-presentation () ((client-value :accessor clien...
null
https://raw.githubusercontent.com/eslick/cl-registry/d4015c400dc6abf0eeaf908ed9056aac956eee82/src/libs/presentations/presentation-protocol.lisp
lisp
* web presentations is fine. don't know why. don't update the client-value with invalid text. return now check if the lisp value is also valid.
(in-package :registry) nominally we 'd use a protocl based object system here , but CLOS (defvar *web-field-counter* 0) (defun genweb-field-name () (format nil "web-field-~D" (incf *web-field-counter*))) (defclass web-field-presentation () ((client-value :accessor client-value :initform "") (query-name :i...
b677b30f6ec41c27ff71ce7a91b7a04d345115801cadaa05755b94d89ddb000e
int28h/HaskellTasks
0030.hs
Напишите реализацию функции concatList > concatList [ [ 1,2],[],[3 ] ] [ 1,2,3 ] Напишите реализацию функции concatList через foldr GHCi> concatList [[1,2],[],[3]] [1,2,3] -} concatList :: [[a]] -> [a] concatList = foldr (++) []
null
https://raw.githubusercontent.com/int28h/HaskellTasks/38aa6c1d461ca5774350c68fa7dd631932f10f84/src/0030.hs
haskell
Напишите реализацию функции concatList > concatList [ [ 1,2],[],[3 ] ] [ 1,2,3 ] Напишите реализацию функции concatList через foldr GHCi> concatList [[1,2],[],[3]] [1,2,3] -} concatList :: [[a]] -> [a] concatList = foldr (++) []
3ad8d2917d7acc224dba73263bd2866e393c62bcd44de2f7c06c66ec6f4a6d49
google/ormolu
Foreign.hs
# LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} module Ormolu.Printer.Meat.Declaration.Foreign ( p_foreignDecl, ) where import BasicTypes import Control.Monad import Data.Text import ForeignCall import GHC import Ormolu.Printer.Combinators import Ormolu.Printer.Meat.Common i...
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/src/Ormolu/Printer/Meat/Declaration/Foreign.hs
haskell
# LANGUAGE OverloadedStrings # | Printer for the last part of an import\/export, which is function name and type signature. These have the form: > foreign import callingConvention [safety] [identifier] We need to check whether the safety has a good source, span, as it defaults to 'PlaySafe' if you don't have a...
# LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # module Ormolu.Printer.Meat.Declaration.Foreign ( p_foreignDecl, ) where import BasicTypes import Control.Monad import Data.Text import ForeignCall import GHC import Ormolu.Printer.Combinators import Ormolu.Printer.Meat.Common import Ormolu.Printer.Meat.Declarati...
f882168dc79704cad23d2d0a71baba4b1bfa65f79e9416889bef25c622e00c37
nd/sicp
4.43.scm
;;inefficient solution (define (girls) (let ((boat-of-mur (amb 'marry-ann 'gabriella 'lorna 'rozalinda 'mellisa)) (boat-of-dauning (amb 'marry-ann 'gabriella 'lorna 'rozalinda 'mellisa)) (boat-of-hall (amb 'marry-ann 'gabriella 'lorna 'rozalinda 'mellisa)) (boat-of-barnakl (amb 'marry-a...
null
https://raw.githubusercontent.com/nd/sicp/d8587a0403d95af7c7bcf59b812f98c4f8550afd/ch04/4.43.scm
scheme
inefficient solution
(define (girls) (let ((boat-of-mur (amb 'marry-ann 'gabriella 'lorna 'rozalinda 'mellisa)) (boat-of-dauning (amb 'marry-ann 'gabriella 'lorna 'rozalinda 'mellisa)) (boat-of-hall (amb 'marry-ann 'gabriella 'lorna 'rozalinda 'mellisa)) (boat-of-barnakl (amb 'marry-ann 'gabriella 'lorna 'r...
c00c50ee76823706c7bbe9b818bc15557810bce5eaa70f4c580c958bbcdaab1a
brendanhay/gogol
Run.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-run/gen/Gogol/Run.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated /See:/ </ Cloud Run Admin API Reference> * Configuration * Resources ** run.projects.locations.operations.delete ** run.projects.locations.operations.get ** run.projects.locations.operations.list ** run.projects.locations.s...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
a0388e6dbe0e5051704f205a42484d1fe50c228fccfc6dde43a3454dc600723a
aeternity/aeternity
aesc_create_tx.erl
%%%============================================================================= 2018 , Aeternity Anstalt %%% @doc Module defining the State Channel create transaction %%% @end %%%============================================================================= -module(aesc_create_tx). -behavior(aetx). -behaviour(...
null
https://raw.githubusercontent.com/aeternity/aeternity/b7ce6ae15dab7fa22287c2da3d4405c29bb4edd7/apps/aechannel/src/aesc_create_tx.erl
erlang
============================================================================= @doc @end ============================================================================= Behavior API Getters aesc_signable_transaction callbacks =================================================================== Types =================...
2018 , Aeternity Anstalt Module defining the State Channel create transaction -module(aesc_create_tx). -behavior(aetx). -behaviour(aesc_signable_transaction). -export([new/1, type/0, fee/1, gas/1, ttl/1, nonce/1, origin/1, check/3, proces...
99fdd61433bcbfb248ee7e3fe0d50bee8ec64ba9924a9aabfce9ad0ffef9d845
zakwilson/ceilingbounce
main.clj
(ns com.flashlightdb.ceilingbounce.main (:require [neko.activity :refer [defactivity set-content-view!]] [neko.notify :as notify] [neko.resource :as res] [neko.find-view :refer [find-view]] [neko.threading :refer [on-ui]] [neko.action-bar :refer ...
null
https://raw.githubusercontent.com/zakwilson/ceilingbounce/3701bf2f316b7b720701b7af0ca7a34cd01e7d72/src/clojure/com/flashlightdb/ceilingbounce/main.clj
clojure
We execute this function to import all subclasses of R class. This gives us access to all application resources.
(ns com.flashlightdb.ceilingbounce.main (:require [neko.activity :refer [defactivity set-content-view!]] [neko.notify :as notify] [neko.resource :as res] [neko.find-view :refer [find-view]] [neko.threading :refer [on-ui]] [neko.action-bar :refer ...
250369fc669d1753ac3822a0c36f8bb076f064670a0326f1764d6be8f5bc2b1e
astine/Sacraspot
utilities.lisp
website utilities.lisp - Andrew Stine ( C ) 2009 - 2010 (in-package #:sacraspot) ;;; ;;; General language extensions ;;; (defun alist-to-plist (alist) "Converts an association list to a properties list" (declare (type list alist)) (mapcan #'(lambda (pair) (list (car pair) (cdr pair))) alist)) (de...
null
https://raw.githubusercontent.com/astine/Sacraspot/9cdce12e8b15b7a00e40c9150fbafa04034f17f0/utilities.lisp
lisp
General language extensions "Defines a function with a cache that dispatches on its argument list." (with-gensyms (table value found) (let ((params (loop for param in lambda-list `(let ((,table (make-hash-table :test #'equal))) (defun ,name ,lambda-list (multiple-value-bind (,value ,found) (if ,found ,value evaluate...
website utilities.lisp - Andrew Stine ( C ) 2009 - 2010 (in-package #:sacraspot) (defun alist-to-plist (alist) "Converts an association list to a properties list" (declare (type list alist)) (mapcan #'(lambda (pair) (list (car pair) (cdr pair))) alist)) (defmacro with-gensyms (symbols &body body)...
dd2e4b96fd745c233f93b70335b00a8a9d6ad271cce742919161a27560b76bbe
ZHaskell/z-data
Builder.hs
| Module : Z.Data . Builder Description : Efficient serialization / format . Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable A ' Builder ' records a buffer writing function , which can be ' mappend ' in O(1 ) via c...
null
https://raw.githubusercontent.com/ZHaskell/z-data/64f43e58c608b322dbe05ff7e3773f79ec6b1d39/Z/Data/Builder.hs
haskell
* Builder type * Running builders * Basic buiders * More builders * Numeric builders ** Integral type formatting ** IEEE float formating * Builder helpers * Time * UUID * Specialized primitive builder
| Module : Z.Data . Builder Description : Efficient serialization / format . Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable A ' Builder ' records a buffer writing function , which can be ' mappend ' in O(1 ) via c...
41ad28b7177f5837f6b927b2aedfaf747be524cf90e334040c9f486dc5eb93dc
ctford/whelmed
dolorem_ipsum.clj
(ns whelmed.songs.dolorem-ipsum (:require [leipzig.melody :refer :all] [leipzig.live :refer :all] [whelmed.melody :refer :all] [leipzig.scale :refer :all] [leipzig.chord :refer :all] [leipzig.canon :refer :all] [leipzig.temperament :as temperament] [whelmed.instrument :refer :all])) ;...
null
https://raw.githubusercontent.com/ctford/whelmed/d396314654c95ddea599a1f55ecadea48989c2be/src/whelmed/songs/dolorem_ipsum.clj
clojure
Extra concepts Melody Arpeggios Oooh Pull it all together The arrangement
(ns whelmed.songs.dolorem-ipsum (:require [leipzig.melody :refer :all] [leipzig.live :refer :all] [whelmed.melody :refer :all] [leipzig.scale :refer :all] [leipzig.chord :refer :all] [leipzig.canon :refer :all] [leipzig.temperament :as temperament] [whelmed.instrument :refer :all])) (...
467d2e21f6e6f0579a98a6afe91054335adfb39dcb2d1fd5ec5b44854b52309b
8c6794b6/haskell-sc-scratch
CatList.hs
# LANGUAGE NoImplicitPrelude # | module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Scratch written while reading /purely functional data structure/ , by . Catenable list , showin in Figure 7.5 . module : $Header$...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/FP/PFDS/Bootstrap/CatList.hs
haskell
---------------------------------------------------------------------------- Test
# LANGUAGE NoImplicitPrelude # | module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : non - portable Scratch written while reading /purely functional data structure/ , by . Catenable list , showin in Figure 7.5 . module : $Header$...
26a13b7cdd09901a5f53367395c1190fb7297edc0cd19fb2c87bb072eaa479f6
BinaryAnalysisPlatform/bap
bap_primus_memory.mli
open Core_kernel[@@warning "-D"] open Bap.Std open Bap_primus_types module Generator = Bap_primus_generator val generated : (addr * value) Bap_primus_observation.t type exn += Pagefault of addr type memory module Descriptor : sig type t = memory [@@deriving compare, sexp_of] val create : addr_size:int -> data_s...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/f995d28a4a34abb4cef8e0b3bd3c41cd710ccf1a/lib/bap_primus/bap_primus_memory.mli
ocaml
open Core_kernel[@@warning "-D"] open Bap.Std open Bap_primus_types module Generator = Bap_primus_generator val generated : (addr * value) Bap_primus_observation.t type exn += Pagefault of addr type memory module Descriptor : sig type t = memory [@@deriving compare, sexp_of] val create : addr_size:int -> data_s...
da1c25b7c6648bec31c6b1e4549429e03d847c74fd82b2c71120086232fa518a
hstreamdb/hstream
HsGrpcHandler.hs
{-# LANGUAGE CPP #-} # LANGUAGE DataKinds # module HStream.Server.HsGrpcHandler (handlers) where import HsGrpc.Server import qualified HStream.Server.Handler.Admin as H import qualified HStream.Server.Handler.Cluster as H import qualified HStream.Server.Handler.Connector as H import qu...
null
https://raw.githubusercontent.com/hstreamdb/hstream/2d57ea42fdba2af19330e1ba06ef30235f5e6a6f/hstream/src/HStream/Server/HsGrpcHandler.hs
haskell
# LANGUAGE CPP # ----------------------------------------------------------------------------- Cluster Stream Reader Append Read Subscribe Stats Admin View Query
# LANGUAGE DataKinds # module HStream.Server.HsGrpcHandler (handlers) where import HsGrpc.Server import qualified HStream.Server.Handler.Admin as H import qualified HStream.Server.Handler.Cluster as H import qualified HStream.Server.Handler.Connector as H import qualified HStream.Server.Hand...
d6f87a5cc8166d5e5e8fcd18f787f80615ce64d4313b143d3cd30b3891f026fa
Elzair/nazghul
raise-merciful-death.scm
(define merciful-death-x 121) (define merciful-death-y 87) (define (raise-merciful-death) (let ((loc (mk-loc p_shard merciful-death-x merciful-death-y))) (kern-log-msg "From her watery grave...") (kern-log-msg "...THE MERCIFUL DEATH ARISES!") (shake-map 10) (kern-p...
null
https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/raise-merciful-death.scm
scheme
(define merciful-death-x 121) (define merciful-death-y 87) (define (raise-merciful-death) (let ((loc (mk-loc p_shard merciful-death-x merciful-death-y))) (kern-log-msg "From her watery grave...") (kern-log-msg "...THE MERCIFUL DEATH ARISES!") (shake-map 10) (kern-p...
a97903d044e761342e7b1a1ce241d925546fe9e7913b406426c647ef549b81fd
mtesseract/nakadi-client
Cursors.hs
| Module : Network . . Subscriptions . Cursors Description : Implementation of Nakadi Subscription Cursors API Copyright : ( c ) 2017 , 2018 License : : Stability : experimental Portability : POSIX This module implements the @\/subscriptions\/SUBSCRIPTIONS\/cursors@ API . Mo...
null
https://raw.githubusercontent.com/mtesseract/nakadi-client/f8eef3ac215459081b01b0b48f0b430ae7701f52/src/Network/Nakadi/Subscriptions/Cursors.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # | @POST@ to @\/subscriptions\/SUBSCRIPTION-ID\/cursors@. Commits cursors using low level interface. ^ Subsciption ID ^ Stream ID cursors using high level interface. ^ Values containing Subscription Cursors to commit | @GET@ to @\/subscriptions...
| Module : Network . . Subscriptions . Cursors Description : Implementation of Nakadi Subscription Cursors API Copyright : ( c ) 2017 , 2018 License : : Stability : experimental Portability : POSIX This module implements the @\/subscriptions\/SUBSCRIPTIONS\/cursors@ API . Mo...
df355fdf335a106289bd66c1ac1e02b373214cd011a1ae780054ace98a79e911
mwand/eopl3
interp.scm
(module interp (lib "eopl.ss" "eopl") cps interpreter for the LETREC language , using the data structure representation of continuations ( Figure 5.3 ) . ;; exercise: rewrite this using the procedural representation of continuations ( Figure 5.2 ) . exercise : rewrite this using a trampoline ( page 159 )...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter5/letrec-lang/interp.scm
scheme
exercise: rewrite this using the procedural representation of the interpreter ;;;;;;;;;;;;;;;; value-of-program : Program -> FinalAnswer value-of/k : Exp * Env * Cont -> FinalAnswer apply-cont : Cont * ExpVal -> FinalAnswer or (logged-print val) ; if you use drscheme-init-cps.scm apply-procedure/k : Proc * ExpV...
(module interp (lib "eopl.ss" "eopl") cps interpreter for the LETREC language , using the data structure representation of continuations ( Figure 5.3 ) . continuations ( Figure 5.2 ) . exercise : rewrite this using a trampoline ( page 159 ) . (require "drscheme-init.scm") (require "lang.scm") (requ...
621eb8bc79ae555b3fa2422b1d0b40f0f46633fa285a813ab324859ca2dc1479
nuprl/website
typed.rkt
#lang typed/racket (module+ test (require typed/rackunit) (define-syntax-rule (check-equal?* [i o] ...) (begin (check-equal? i o) ...))) (define-type Words (Listof String)) (define-type Lines (Listof Words)) (: kwic-read : Path-String -> (Listof String)) (define (kwic-read fi...
null
https://raw.githubusercontent.com/nuprl/website/6952d0572094feae39e515e6b421de81af5a5be9/blog/_src/posts/kwic/typed.rkt
racket
destruct multiple values for-each is like map, but always returns (void)
#lang typed/racket (module+ test (require typed/rackunit) (define-syntax-rule (check-equal?* [i o] ...) (begin (check-equal? i o) ...))) (define-type Words (Listof String)) (define-type Lines (Listof Words)) (: kwic-read : Path-String -> (Listof String)) (define (kwic-read fi...
243e084ab69a6d9ac3a8fe3309c1b8edb673d489972a4b07d87bffe91e9960b9
den1k/re-frame-utils
runner.cljs
(ns vimsical.re-frame.runner (:require [cljs.test :as test] [doo.runner :refer-macros [doo-all-tests doo-tests]] [vimsical.re-frame.cofx.inject-test] [vimsical.re-frame.fx.track-test])) (doo-all-tests #"vimsical.+\-test$")
null
https://raw.githubusercontent.com/den1k/re-frame-utils/8d13297ea5f85d848b5f7b14a92b93e3ca933d28/test/vimsical/re_frame/runner.cljs
clojure
(ns vimsical.re-frame.runner (:require [cljs.test :as test] [doo.runner :refer-macros [doo-all-tests doo-tests]] [vimsical.re-frame.cofx.inject-test] [vimsical.re-frame.fx.track-test])) (doo-all-tests #"vimsical.+\-test$")
fdfdb8b61bdb9316d33b69da682b45a121adfb3a614874a726abcfce3f10eee8
haskell-repa/repa
Index.hs
# LANGUAGE TypeOperators , FlexibleInstances , ScopedTypeVariables # -- | Index types. module Data.Array.Repa.Vector.Index ( -- * Index types Z (..) , (:.) (..) -- * Common dimensions. , DIM0, DIM1, DIM2, DIM3, DIM4, DIM5 , ix1, ix2, ix3, ix4, ix5) where import Data.Array.Repa.Vector.Shape i...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-vector/Data/Array/Repa/Vector/Index.hs
haskell
| Index types. * Index types * Common dimensions. | Our index type, used for both shapes and indices. Common dimensions | Helper for index construction. Use this instead of explicit constructors like @(Z :. (x :: Int))@. The this is sometimes needed to ensure that 'x' is constrained to be in @Int@. Sh...
# LANGUAGE TypeOperators , FlexibleInstances , ScopedTypeVariables # module Data.Array.Repa.Vector.Index ( Z (..) , (:.) (..) , DIM0, DIM1, DIM2, DIM3, DIM4, DIM5 , ix1, ix2, ix3, ix4, ix5) where import Data.Array.Repa.Vector.Shape import GHC.Base (quotInt, remInt) stage = "Data.Array.Repa....
2b171aa6ac38b6999cf8d27416e485b6e2b7c98eca9ad93079470fd81556fb21
exercism/clojure
annalyns_infiltration_test.clj
(ns annalyns-infiltration-test (:require annalyns-infiltration [clojure.test :refer [deftest is testing]])) (deftest ^{:task 1} fast-attack-awake-test (testing "Fast attack if knight is awake" (is (= false (annalyns-infiltration/can-fast-attack? true))))) (deftest ^{:task 1} fast-attack-asleep-tes...
null
https://raw.githubusercontent.com/exercism/clojure/7f11e4bee92c3d94fa4d65b2eef7a2b6354fea50/exercises/concept/annalyns-infiltration/test/annalyns_infiltration_test.clj
clojure
(ns annalyns-infiltration-test (:require annalyns-infiltration [clojure.test :refer [deftest is testing]])) (deftest ^{:task 1} fast-attack-awake-test (testing "Fast attack if knight is awake" (is (= false (annalyns-infiltration/can-fast-attack? true))))) (deftest ^{:task 1} fast-attack-asleep-tes...
3f185a6ee2aa7fa98da548ee98f1fec486a30a08479afcf1c0366306917ff533
haskoin/haskoin-core
SignatureSpec.hs
{-# LANGUAGE OverloadedStrings #-} module Haskoin.Crypto.SignatureSpec (spec) where import Control.Monad import Data.Bits (testBit) import Data.ByteString (ByteString) import qualified Data.ByteString as BS import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Maybe import Data.Serialize as...
null
https://raw.githubusercontent.com/haskoin/haskoin-core/d49455a27735dbe636453e870cf4e8720fb3a80a/test/Haskoin/Crypto/SignatureSpec.hs
haskell
# LANGUAGE OverloadedStrings # github.com/bitcoin/bitcoin/blob/master/src/script.cpp from function IsCanonicalSignature Non-canonical signature: too short Non-canonical signature: too long Non-canonical signature: wrong type Non-canonical signature: wrong length marker Non-canonical signature: S length misplaced...
module Haskoin.Crypto.SignatureSpec (spec) where import Control.Monad import Data.Bits (testBit) import Data.ByteString (ByteString) import qualified Data.ByteString as BS import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Maybe import Data.Serialize as S import Data.String.Conversions (...
b7f69c24e93212e0fae348bf2b6a0c46eff789d11042506c29084a6c2449713b
tek/polysemy-hasql
Database.hs
module Polysemy.Hasql.Test.Database where import Control.Lens (view) import qualified Data.UUID as UUID import Exon (exon) import Hasql.Connection (Connection) import Hasql.Session (QueryError) import qualified Polysemy.Db.Data.DbConfig as DbConfig import Polysemy.Db.Data.DbConfig (DbConfig (DbConfig)) import Polysemy...
null
https://raw.githubusercontent.com/tek/polysemy-hasql/831dfdb47f9246286db2c46e30194300a199ef38/packages/hasql/lib/Polysemy/Hasql/Test/Database.hs
haskell
module Polysemy.Hasql.Test.Database where import Control.Lens (view) import qualified Data.UUID as UUID import Exon (exon) import Hasql.Connection (Connection) import Hasql.Session (QueryError) import qualified Polysemy.Db.Data.DbConfig as DbConfig import Polysemy.Db.Data.DbConfig (DbConfig (DbConfig)) import Polysemy...
f36eb727aaf7000f76c0202f18e048f562f109f86471720497f44763c80c7a3e
namenu/bootcamp-maze
sidewinder.cljc
(ns maze.seq.sidewinder (:require [maze.core :refer [full-grid size link-toward advance]]) (:require-macros [maze.seq.macros :refer [defmaze]])) (defn close-out? "옆으로 진행하기를 멈추고 아래를 확장할 것인지?" [[rows cols] [r c]] (or (= c (dec cols)) (and (< r (dec rows)) (rand-nth [true false])))) (defmaze S...
null
https://raw.githubusercontent.com/namenu/bootcamp-maze/0558ba6b624bc0b6a5312415972398401396c4cf/src/maze/seq/sidewinder.cljc
clojure
(ns maze.seq.sidewinder (:require [maze.core :refer [full-grid size link-toward advance]]) (:require-macros [maze.seq.macros :refer [defmaze]])) (defn close-out? "옆으로 진행하기를 멈추고 아래를 확장할 것인지?" [[rows cols] [r c]] (or (= c (dec cols)) (and (< r (dec rows)) (rand-nth [true false])))) (defmaze S...
49c0710bf29e1025112a1d581f94b313f739f6ae31012e17496b160b037458a7
herbelin/coq-hh
proof_global.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/proofs/proof_global.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * This module defines the global pro...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * type proof_mode = { name :...
f0706a22dd231c62a8b56c36852312ec31f64f1e02d989c5c10bb8740fb63f13
robert-strandh/CLIMatis
camfer.lisp
;;; FIXME: the bends in the `f', the `t', and the `j' should look the ;;; same, but currently the code is duplicated. Improve by making ;;; the width and the start of the bend font-wide parameters. (in-package #:camfer) (defgeneric ascent (font)) (defgeneric descent (font)) (defgeneric width (font)) (defclass font...
null
https://raw.githubusercontent.com/robert-strandh/CLIMatis/4949ddcc46d3f81596f956d12f64035e04589b29/Fonts/Camfer/camfer.lisp
lisp
FIXME: the bends in the `f', the `t', and the `j' should look the same, but currently the code is duplicated. Improve by making the width and the start of the bend font-wide parameters. The horizontal distance from the right edge of the `j' to the min-point of the hook The vertical distance beteween the bottom ...
(in-package #:camfer) (defgeneric ascent (font)) (defgeneric descent (font)) (defgeneric width (font)) (defclass font () ((%ascent :initarg :ascent :reader ascent) (%lower-case-ascent :initarg :lower-case-ascent :reader lower-case-ascent) (%stroke-width :initarg :stroke-width :reader stroke-width) (%strok...
bea5078e0274c019839fb51e8bc58a0e042e902598775f141fa1855b7674f3ab
pfdietz/ansi-test
ensure-directories-exist.lsp
;-*- Mode: Lisp -*- Author : Created : Mon Jan 5 20:53:03 2004 Contains : Tests of ENSURE - DIRECTORIES - EXIST (deftest ensure-directories-exist.1 (let* ((pn (make-pathname :name "ensure-directories-exist.txt" :defaults *default-pathname-defaults*)) (results n...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/files/ensure-directories-exist.lsp
lisp
-*- Mode: Lisp -*- Case where directory shouldn't exist The directort ansi-tests/scratch must not exist before this test is run Create the file and write to it
Author : Created : Mon Jan 5 20:53:03 2004 Contains : Tests of ENSURE - DIRECTORIES - EXIST (deftest ensure-directories-exist.1 (let* ((pn (make-pathname :name "ensure-directories-exist.txt" :defaults *default-pathname-defaults*)) (results nil) (verbosity ...
c1385cbef3105ecfcc2d1d4b749f9c1d5eae8b775cfd832d6e1fe199edf96c33
kaznum/programming_in_ocaml_exercise
checkbox.ml
open Tk let top = openTk() let tv = Textvariable.create () let cb = Checkbutton.create top ~text:"Press me!" ~variable:tv ~onvalue:"on" ~offvalue:"off" let () = Checkbutton.configure cb ~command: (fun () -> Checkbutton.flash cb; print_endline (Textvariable.get tv)); pack [cb] ~side:`Top; mainLoop()
null
https://raw.githubusercontent.com/kaznum/programming_in_ocaml_exercise/6f6a5d62a7a87a1c93561db88f08ae4e445b7d4e/ch15/checkbox.ml
ocaml
open Tk let top = openTk() let tv = Textvariable.create () let cb = Checkbutton.create top ~text:"Press me!" ~variable:tv ~onvalue:"on" ~offvalue:"off" let () = Checkbutton.configure cb ~command: (fun () -> Checkbutton.flash cb; print_endline (Textvariable.get tv)); pack [cb] ~side:`Top; mainLoop()
2a612fe627ae9e3e98f8d30cf769d9f5448fe6bfe35d52519ac8320aa8bf538c
pirapira/coq2rust
ascii_syntax.ml
(***********************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - Rocquencourt & LRI - CNRS - Orsay \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/plugins/syntax/ascii_syntax.ml
ocaml
********************************************************************* // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 *********************************************************************
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - Rocquencourt & LRI - CNRS - Orsay \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Errors open Ut...
fa3890b532ad9a2ee2bbc8120b2a3b067ba7689017a7f8fff521cf4d80285308
binghe/cl-net-snmp
clozure-mib.lisp
;;;; -*- Mode: Lisp -*- Generated from MIB : LISP;CLOZURE - MIB.TXT by CL - NET - SNMP (in-package :asn.1) (eval-when (:load-toplevel :execute) (setf *current-module* '|Clozure-MIB|)) (defpackage :|ASN.1/Clozure-MIB| (:nicknames :|Clozure-MIB|) (:use :common-lisp :asn.1) (:import-from :|ASN.1/SNMPv2-SMI| mo...
null
https://raw.githubusercontent.com/binghe/cl-net-snmp/3cf053bce75734097f0d7e2245a53fa0c45f5e05/compiled-mibs/clozure-mib.lisp
lisp
-*- Mode: Lisp -*- CLOZURE - MIB.TXT by CL - NET - SNMP
(in-package :asn.1) (eval-when (:load-toplevel :execute) (setf *current-module* '|Clozure-MIB|)) (defpackage :|ASN.1/Clozure-MIB| (:nicknames :|Clozure-MIB|) (:use :common-lisp :asn.1) (:import-from :|ASN.1/SNMPv2-SMI| module-identity object-type object-identity notification-type |enterprises|...
5e96dce1a160a14f0ced4f4699061051ba02d8625d5cf8405f4ac550980690b8
robert-strandh/SICL
variable-description.lisp
(cl:in-package #:sicl-environment) ;;; Instances of this class are used to put compile-time information ;;; about variables in the compilation environment. (defclass variable-description () ((%type :initarg :type :initform t :reader type))) (defclass special-variable-description (variable-description) ()) (defu...
null
https://raw.githubusercontent.com/robert-strandh/SICL/87f626ff6d00526f33971e0d533024f5c6b06c1f/Code/Environment-Clostrum/variable-description.lisp
lisp
Instances of this class are used to put compile-time information about variables in the compilation environment.
(cl:in-package #:sicl-environment) (defclass variable-description () ((%type :initarg :type :initform t :reader type))) (defclass special-variable-description (variable-description) ()) (defun make-special-variable-description () (make-instance 'special-variable-description)) (defclass constant-variable-desc...
7d75cb8e85ed68c08ac253d962a5153e2607cbc7b3134483ce460379019f8c56
Ekdohibs/joujou
Apply.ml
(* This intermediate language describes the result of defunctionalization. It retains the key features of the previous calculus, [Tail], in that the ordering of computations is explicit and every function call is a tail call. Furthermore, lambda-abstractions disappear. A memory block [Con] now contains an i...
null
https://raw.githubusercontent.com/Ekdohibs/joujou/02ef5052f93623da99ed2e871a59c99a5e6026a1/Apply.ml
ocaml
This intermediate language describes the result of defunctionalization. It retains the key features of the previous calculus, [Tail], in that the ordering of computations is explicit and every function call is a tail call. Furthermore, lambda-abstractions disappear. A memory block [Con] now contains an int...
type tag = int and variable = Atom.atom and binop = Tail.binop = | OpAdd | OpSub | OpMul | OpDiv and value = Tail.value = | VVar of variable | VLit of int | VBinOp of value * binop * value and block = | Con of tag * value list and term = | Exit | TailCall of value * value list | ContCa...
21fa6761995fa7de3288a434a6f1bfd8b7868bdfbd756c960427305e533789ef
racket/racket7
syntax.rkt
#lang racket/base (require "test-util.rkt") (parameterize ([current-contract-namespace (make-basic-contract-namespace)]) (test/pos-blame 'syntax/c1 '(contract (syntax/c boolean?) #'x 'pos 'neg)) (test/spec-passed 'syntax/c2 '(contract (syn...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/pkgs/racket-test/tests/racket/contract/syntax.rkt
racket
#lang racket/base (require "test-util.rkt") (parameterize ([current-contract-namespace (make-basic-contract-namespace)]) (test/pos-blame 'syntax/c1 '(contract (syntax/c boolean?) #'x 'pos 'neg)) (test/spec-passed 'syntax/c2 '(contract (syn...
7999522f9086ad9d15af649c6accbed4ebb3f117995ec774b6bf9cf90b8be769
nickzuber/infrared
ast_utils.ml
* * 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 . * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENS...
null
https://raw.githubusercontent.com/nickzuber/infrared/b67bc728458047650439649605af7a8072357b3c/InfraredParser/flow_parser/lib/ast_utils.ml
ocaml
* * 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 . * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENS...