_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 |
|---|---|---|---|---|---|---|---|---|
369be65d15bfd991cc890763cd1f69c05d3b61cb58c1b874611f9dbdd43c0aac | earl-ducaine/cl-garnet | jewel-pixmap-lab.lisp | -*- Mode : LISP ; Syntax : Common - Lisp ; Package : DEMO - ANIMATOR ; Base : 10 -*-
;;
;; (defpackage :xlib-lab
;; (:use :common-lisp :kr)
;; (:export do-go do-stop))
(in-package :xlib-lab)
(defparameter agg nil)
(defparameter *top-win* nil)
(defparameter *xlib-display* nil)
(defparameter *pixmap-lab-std-out*... | null | https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/jewel/jewel-lab/jewel-pixmap-lab.lisp | lisp | Syntax : Common - Lisp ; Package : DEMO - ANIMATOR ; Base : 10 -*-
(defpackage :xlib-lab
(:use :common-lisp :kr)
(:export do-go do-stop))
(load "/home/rett/dev/garnet/cl-garnet/macro-patch.lisp")
(load "src/gem/anti-alias-graphics.lisp")
(xlib::describe-trace (get-the-xlib-display *top-window*))
closing sid... |
(in-package :xlib-lab)
(defparameter agg nil)
(defparameter *top-win* nil)
(defparameter *xlib-display* nil)
(defparameter *pixmap-lab-std-out* *standard-output*)
(defun get-the-xlib-display (garnet-window)
(gem::the-display garnet-window))
(defun display-trace-history ()
(xlib::display-trace-history (get-t... |
cf0b52518e6032b40bf8910495dc24e0dcab25c824e928333a5015764728b8e1 | soegaard/sketching | mouse-dragged.rkt | #lang sketching
;; Drag (click and hold) your mouse across the
;; image to change the color of the rectangle.
(define col 0)
(define (draw)
(fill col)
(rect 25 25 50 50))
(define (on-mouse-dragged)
(:= col (+ col 5))
(when (> col 255)
(:= col 0)))
| null | https://raw.githubusercontent.com/soegaard/sketching/3773cb790ac69201c967201a2fa1727d90a4ad62/sketching-examples/reference-snippets/mouse-dragged.rkt | racket | Drag (click and hold) your mouse across the
image to change the color of the rectangle. | #lang sketching
(define col 0)
(define (draw)
(fill col)
(rect 25 25 50 50))
(define (on-mouse-dragged)
(:= col (+ col 5))
(when (> col 255)
(:= col 0)))
|
1f1f5d59dc42a71e96a4fffc09b518efcdab850c29ae30fff2470241ee0452ad | quil-lang/quilc | magicl-constructors.lisp | ;;;; magicl-constructors.lisp
;;;;
Author :
;;;;
Collaborators :
(in-package #:cl-quil.frontend)
;;; This file aims to provide shims for magicl constructors with
;;; '(COMPLEX DOUBLE-FLOAT) as the default tensor type.
(alexandria:define-constant +default-magicl-type+ '(complex double-float) :test #'equal)
(... | null | https://raw.githubusercontent.com/quil-lang/quilc/f1a01a02adfa7c2f357bbe65e19150a2c6e58267/src/magicl-constructors.lisp | lisp | magicl-constructors.lisp
This file aims to provide shims for magicl constructors with
'(COMPLEX DOUBLE-FLOAT) as the default tensor type. | Author :
Collaborators :
(in-package #:cl-quil.frontend)
(alexandria:define-constant +default-magicl-type+ '(complex double-float) :test #'equal)
(defun empty (shape &key (type +default-magicl-type+) layout)
"CL-QUIL version of MAGICL:EMPTY"
(magicl:empty shape :type type :layout layout))
(defun const ... |
8849a80561605e5e3cbf8f430647c0f7eb9d00a25527a66b24b83ea9e413b5b2 | aryx/yacfe | ast_cocci.ml | Copyright ( C ) 2006 , 2007
*
* This program is free software ; you can redistribute it and/or
* modify it under the terms of the GNU General Public License ( GPL )
* version 2 as published by the Free Software Foundation .
*
* This program is distributed in the hope that it will be useful ,
* ... | null | https://raw.githubusercontent.com/aryx/yacfe/86a4994822abca03ec9e03f1a7e60eca66db0a08/parsing_c/ast_cocci.ml | ocaml | charpos
charpos + offset
---------------------------------------------------------------------
Modified code
line
col
line
col
free vars
minus free vars
seed
fresh vars
inherited vars
witness vars
the following is for or expressions
pos info, try not to duplicate
isos relevant to the term; ultimate... | Copyright ( C ) 2006 , 2007
*
* This program is free software ; you can redistribute it and/or
* modify it under the terms of the GNU General Public License ( GPL )
* version 2 as published by the Free Software Foundation .
*
* This program is distributed in the hope that it will be useful ,
* ... |
8d7fd18a0728e21f821295fe68a318727da44b76fbdef95dd40c0fc7d4a40dc0 | dongcarl/guix | boot-parameters.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2019 , 2020 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of... | null | https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/tests/boot-parameters.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 © 2019 , 2020 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (test-boot-parameters)
#:use-module (gnu bootloader)
#:use-module (gnu bootloader gru... |
f846502fb1ffe335da86a79370e446357b2bbaca50ca690ee5129631b1a995b0 | penpot/penpot | effects.cljc | (ns app.common.geom.shapes.effects)
(defn update-shadow-scale
[shadow scale]
(-> shadow
(update :offset-x * scale)
(update :offset-y * scale)
(update :spread * scale)
(update :blur * scale)))
(defn update-shadows-scale
[shape scale]
(update shape :shadow
(fn [shadow]
... | null | https://raw.githubusercontent.com/penpot/penpot/94e87f8a7de0f14dd1e1faa0bdf6999ae0041fe8/common/src/app/common/geom/shapes/effects.cljc | clojure | (ns app.common.geom.shapes.effects)
(defn update-shadow-scale
[shadow scale]
(-> shadow
(update :offset-x * scale)
(update :offset-y * scale)
(update :spread * scale)
(update :blur * scale)))
(defn update-shadows-scale
[shape scale]
(update shape :shadow
(fn [shadow]
... | |
82047fec32ae7a1f0367e57cd30ea57f059b020eb8f4fbfd29e36f884dcb6b32 | ymyzk/lambda-dti | test_typing.ml | open Format
open OUnit2
open Lambda_dti
open Syntax
open Typing
let id x = x
module ITGL = struct
open Typing.ITGL
let parse str =
Parser.toplevel Lexer.main @@ Lexing.from_string str
let test_type_of_program =
let tyenv = Environment.empty in
let test (program, expected) =
program >:: fun... | null | https://raw.githubusercontent.com/ymyzk/lambda-dti/f476c0094832cbaaa336dc1bc86babfb8b652f14/test/test_typing.ml | ocaml | NOTE: Currently we do not care about contents of the exception
OK | open Format
open OUnit2
open Lambda_dti
open Syntax
open Typing
let id x = x
module ITGL = struct
open Typing.ITGL
let parse str =
Parser.toplevel Lexer.main @@ Lexing.from_string str
let test_type_of_program =
let tyenv = Environment.empty in
let test (program, expected) =
program >:: fun... |
66822e3b1de7573a2064482e4bfbef8613e2da1d3fe308821056c539552d12bc | progman1/genprintlib | main.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.07.1/main.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
OCaml port by and
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
open Input_handling
open Question
open Command_line
open... |
a005f55525dca87ffa4dd7fc0233c9e25b02e833da80074bff9ac58967a6dbc3 | untangled-web/untangled-ui | calendar_cards.cljs | (ns untangled.ui.calendar-cards
(:require
[devcards.core :as dc :refer-macros [defcard]]
[untangled.client.cards :refer [untangled-app]]
[om.next :as om :refer [defui]]
[om.dom :as dom]
[untangled.i18n :refer [tr trc trf]]
[untangled.i18n.core :as i18n]
[untangled.client.core :as uc]
[... | null | https://raw.githubusercontent.com/untangled-web/untangled-ui/ae101f90cd9b7bf5d0c80e9453595fdfe784923c/src/guide/untangled/ui/calendar_cards.cljs | clojure | :onDateSelected #(js/alert (str "Start " %))
:onDateSelected #(js/alert (str "End " %)) | (ns untangled.ui.calendar-cards
(:require
[devcards.core :as dc :refer-macros [defcard]]
[untangled.client.cards :refer [untangled-app]]
[om.next :as om :refer [defui]]
[om.dom :as dom]
[untangled.i18n :refer [tr trc trf]]
[untangled.i18n.core :as i18n]
[untangled.client.core :as uc]
[... |
5b8ca1619d00a32512a8b02cc495f3bc9a0aac8d54c8a44f4ef33dd6ed1cf3a1 | OffCourse/cljs-lambda | core.cljs | (ns app.core
(:require [cljs.nodejs :as node]
[cljs.core.async :refer [<! chan >!]])
(:require-macros [cljs.core.async.macros :refer [go]]))
(def AWS (node/require "aws-sdk"))
(node/enable-util-print!)
(defn ^:export handler [event context cb]
(go
(cb nil (clj->js event))))
(defn -main [] id... | null | https://raw.githubusercontent.com/OffCourse/cljs-lambda/3234232ed4d4d89c5e844c539b1725a548653cb1/src/app/core.cljs | clojure | (ns app.core
(:require [cljs.nodejs :as node]
[cljs.core.async :refer [<! chan >!]])
(:require-macros [cljs.core.async.macros :refer [go]]))
(def AWS (node/require "aws-sdk"))
(node/enable-util-print!)
(defn ^:export handler [event context cb]
(go
(cb nil (clj->js event))))
(defn -main [] id... | |
021f5f5f0ac13606bb5eb677a082d31a9b7fb4d5d1cb0ccedf6ab175406ff217 | ymherklotz/verismith | Unit.hs | module Unit
( unitTests,
)
where
import Control.Lens
import Data.List.NonEmpty (NonEmpty (..))
import Parser (parseUnitTests)
import Reduce (reduceUnitTests)
import Test.Tasty
import Test.Tasty.HUnit
import Verismith
unitTests :: TestTree
unitTests =
testGroup
"Unit tests"
[ testCase "Transformation of ... | null | https://raw.githubusercontent.com/ymherklotz/verismith/773acb06f15d49b810b76508505f5df5a84f8172/test/Unit.hs | haskell | module Unit
( unitTests,
)
where
import Control.Lens
import Data.List.NonEmpty (NonEmpty (..))
import Parser (parseUnitTests)
import Reduce (reduceUnitTests)
import Test.Tasty
import Test.Tasty.HUnit
import Verismith
unitTests :: TestTree
unitTests =
testGroup
"Unit tests"
[ testCase "Transformation of ... | |
890e804d34c456b990ab985e85f883dd88f73fdef9646117d6bc6aac16cc17ea | RedPRL/asai | Marker.mli | module type S =
sig
val mark_section : Flattened.section -> Marked.section
end
module Make (R : Reader.S) : S
| null | https://raw.githubusercontent.com/RedPRL/asai/51f3350b19f9214370d65edfc5c61fe92df1fbb7/src/file/Marker.mli | ocaml | module type S =
sig
val mark_section : Flattened.section -> Marked.section
end
module Make (R : Reader.S) : S
| |
0da0329ba6f97b8b626903ad882cfad7df380c37008335280a8d405b04569fa0 | texmacs/tm-forge | fontawesome.scm |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; MODULE : fontawesome.scm
DESCRIPTION : Support for the Fontawesome glyphs collections
COPYRIGHT : ( C ) 2021
;;
This software falls under the GNU general public license version 3 or later .
;; It comes WITHOUT ANY WAR... | null | https://raw.githubusercontent.com/texmacs/tm-forge/d3042808e9fb018634e441b849233582be73a387/miscellanea/fontawesome/progs/fontawesome.scm | scheme |
MODULE : fontawesome.scm
It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
in the root directory or <-3.0.html>.
install the fonts
not working well
else " ; i++ ; sub("0x","",$1 ) ; print " ( \""$2"\ " . \ " < # " $ 1 " > \") " } ' |
DESCRIPTION : Support for the Fontawesome glyphs collections
COPYRIGHT : ( C ) 2021
This software falls under the GNU general public license version 3 or later .
(texmacs-module (fontawesome))
(display "Load Fontawesome fonts in TeXmacs\n")
(font-database-extend-local
(url-complete "$TEXMACS_HOME_PA... |
602498a170a778da489d70f1154b8b4a2a203ce743ff61bdc79bfca56f9508f1 | szktty/starlight | bitstr.ml | open Common
open Core
type ('value, 'size) t = {
value : 'value;
size : 'size;
spec : spec;
}
and spec = {
ty : [ `Int | `Float | `Binary | `Bitstr | `Utf8 | `Utf16 | `Utf32 ];
sign : [ `Signed | `Unsigned ];
endian : [ `Big | `Little | `Native ];
unit : int option;
}
let create ~value ~size ~ty ~sign ... | null | https://raw.githubusercontent.com/szktty/starlight/0dec4d272c3ea5dd0f82940a24dfe758ab641ca5/compiler/bitstr.ml | ocaml | open Common
open Core
type ('value, 'size) t = {
value : 'value;
size : 'size;
spec : spec;
}
and spec = {
ty : [ `Int | `Float | `Binary | `Bitstr | `Utf8 | `Utf16 | `Utf32 ];
sign : [ `Signed | `Unsigned ];
endian : [ `Big | `Little | `Native ];
unit : int option;
}
let create ~value ~size ~ty ~sign ... | |
2ab36c2bea451811abdd61cd2c2dcf6c60bf598ff521964624cd150ed5453fae | well-typed/large-records | SmallHashMap.hs | # LANGUAGE CPP #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
# LANGUAGE TypeApplications #
-- | Strict hash table designed for small hash tables
--
Currently this is is just a wrapper around a ' Map ' . We do not use ' ' ,
-- since for small hash tables the overhead from having to copy al... | null | https://raw.githubusercontent.com/well-typed/large-records/2e0bdae735c0861436907ed5e30e78afa42eeb9f/large-anon/src/Data/Record/Anon/Internal/Util/SmallHashMap.hs | haskell | | Strict hash table designed for small hash tables
since for small hash tables the overhead from having to copy all the small
Having this as a separate abstraction also allows us to easily change the
Intended for qualified import.
> import Data.Record.Anon.Internal.Util.SmallHashMap (SmallHashMap)
* Standard ... | # LANGUAGE CPP #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TupleSections #
# LANGUAGE TypeApplications #
Currently this is is just a wrapper around a ' Map ' . We do not use ' ' ,
arrays defeats the purpose of having a ' Diff ' in the first place .
representation of the ' ' without affecting the r... |
e4e5ca1595beed7b1d6aafd32ee51e6046390000dcbad5d41fad5ac58de53ade | threatgrid/ctia | coa.clj | (ns ctia.entity.coa
(:require
[ctia.domain.entities :refer [default-realize-fn]]
[ctia.http.routes.common :as routes.common]
[ctia.http.routes.crud :refer [services->entity-crud-routes]]
[ctia.schemas.core :refer [APIHandlerServices def-acl-schema def-stored-schema]]
[ctia.schemas.sorting :refer [defau... | null | https://raw.githubusercontent.com/threatgrid/ctia/aec0c858103bc2c9e4d9a29a2f1aa6a86c4dd6c8/src/ctia/entity/coa.clj | clojure | (ns ctia.entity.coa
(:require
[ctia.domain.entities :refer [default-realize-fn]]
[ctia.http.routes.common :as routes.common]
[ctia.http.routes.crud :refer [services->entity-crud-routes]]
[ctia.schemas.core :refer [APIHandlerServices def-acl-schema def-stored-schema]]
[ctia.schemas.sorting :refer [defau... | |
e6e820dd501d8142a5f4f9b724f5993639a32d4a2fbd9af00eb8a230b6f9687d | junegunn/mini-file-server | handler.clj | (ns mini-file-server.core.handler
(:require [mini-file-server.core.view.index :as index]
[mini-file-server.core.fs :as fs]
[clojure.string :as str]
[clojure.java.io :as io]
[clojure.tools.logging :as log]
[compojure.core :refer :all]
[compojure.r... | null | https://raw.githubusercontent.com/junegunn/mini-file-server/892931078f2e825d689e67405fec1f0581a9d0d2/src/mini_file_server/core/handler.clj | clojure | (ns mini-file-server.core.handler
(:require [mini-file-server.core.view.index :as index]
[mini-file-server.core.fs :as fs]
[clojure.string :as str]
[clojure.java.io :as io]
[clojure.tools.logging :as log]
[compojure.core :refer :all]
[compojure.r... | |
44241edfbd8cf8c90cc89ef74c06e0de9339d50847ca948c261578a07cd2d461 | losfair/Violet | Issue.hs | module Violet.Backend.Issue where
import Clash.Prelude
import Data.Maybe
import Violet.Types.Issue
import qualified Violet.Types.Fifo as FifoT
import qualified Violet.Types.Fetch as FetchT
import qualified Violet.Types.Pipe as PipeT
import qualified Violet.Types.Memory as MemoryT
import qualified Violet.Types.Branch a... | null | https://raw.githubusercontent.com/losfair/Violet/dcdd05f8dc08a438a157347f424966da73ccc9b8/src/Violet/Backend/Issue.hs | haskell | This requires `FetchT.isValidInst == True`: IC miss is still a "valid instruction", although a
special one.
lui
jal
jalr
load
store
mul
div
fence
ecall/ebreak
See whether this is a deferrable ALU (int/branch) instruction.
Data blocked if a load/latealu-use hazard is detected or we are resolving an exceptio... | module Violet.Backend.Issue where
import Clash.Prelude
import Data.Maybe
import Violet.Types.Issue
import qualified Violet.Types.Fifo as FifoT
import qualified Violet.Types.Fetch as FetchT
import qualified Violet.Types.Pipe as PipeT
import qualified Violet.Types.Memory as MemoryT
import qualified Violet.Types.Branch a... |
59469877f547c797be1893f4b06e2eb25f590a5c7eadaa1e7ccb1acf5ced5211 | binsec/haunted | smtlib_options.mli | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2019
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/smtlib/smtlib_options.mli | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
8b8c9acf99beed4b55b25e15bb24103c0113a06741802b4c21ffd4d1fb530e90 | cushon/project-euler | 8.rkt | #lang racket
(require "common.rkt")
Find the greatest product of five consecutive digits in the 1000 - digit number .
(define (solve)
(define (helper lst len acc)
(if (>= len 5)
(helper (cdr lst) (sub1 len) (max (foldl * 1 (take lst 5)) acc))
acc))
(define n (string->number
(l... | null | https://raw.githubusercontent.com/cushon/project-euler/d7fcbfff0cd59b2c3691293ff35bb2043b409f68/8.rkt | racket | #lang racket
(require "common.rkt")
Find the greatest product of five consecutive digits in the 1000 - digit number .
(define (solve)
(define (helper lst len acc)
(if (>= len 5)
(helper (cdr lst) (sub1 len) (max (foldl * 1 (take lst 5)) acc))
acc))
(define n (string->number
(l... | |
0587ee87a74853f48ca784c69914aae120a3c001add009a8368284447c237ae1 | maximedenes/native-coq | cooking.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/kernel/cooking.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
This module implements kernel-level... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Created by out of V6.3 ... |
8266af8824419f24472a7afd2a55d59bc75ae12ef8b8be4c401ff52ff0f43a17 | tarides/unikernels | config.ml | ( c ) 2017 , 2018 , all rights reserved
open Mirage
let dns_handler =
let packages =
[
package "logs" ;
package "dns";
package "dns-server";
package "dns-mirage";
package ~sublibs:[ "mirage" ] "dns-resolver";
]
in
foreign
~packages
"Unikernel.Main" (console @-> ... | null | https://raw.githubusercontent.com/tarides/unikernels/1280e2c34271b6fbca2e140f5d84fd608932935f/dns-resolver/config.ml | ocaml | ( c ) 2017 , 2018 , all rights reserved
open Mirage
let dns_handler =
let packages =
[
package "logs" ;
package "dns";
package "dns-server";
package "dns-mirage";
package ~sublibs:[ "mirage" ] "dns-resolver";
]
in
foreign
~packages
"Unikernel.Main" (console @-> ... | |
9811f9a38f6f075c09e1a33356398cf97d367348406fe0e5d46edf6fb6c18f85 | rbkmoney/fistful-server | ff_withdrawal_machine.erl | %%%
%%% Withdrawal machine
%%%
-module(ff_withdrawal_machine).
-behaviour(machinery).
%% API
-type id() :: machinery:id().
-type change() :: ff_withdrawal:event().
-type event() :: {integer(), ff_machine:timestamped_event(change())}.
-type st() :: ff_machine:st(withdrawal()).
-type withdrawal() :: ff_withdrawal:wit... | null | https://raw.githubusercontent.com/rbkmoney/fistful-server/60b964d0e07f911c841903bc61d8d9fb20a32658/apps/ff_transfer/src/ff_withdrawal_machine.erl | erlang |
Withdrawal machine
API
API
Machinery
Internal types
API
Machinery |
-module(ff_withdrawal_machine).
-behaviour(machinery).
-type id() :: machinery:id().
-type change() :: ff_withdrawal:event().
-type event() :: {integer(), ff_machine:timestamped_event(change())}.
-type st() :: ff_machine:st(withdrawal()).
-type withdrawal() :: ff_withdrawal:withdrawal_state().
-type external_id() :... |
0cafa18ff72f85bb32d6df093f9ea109b3350a0523c1fef1521febf3500852d3 | timewald/clj-rest-svc | logging.clj | (ns clj-rest-svc.logging
(:use clojure.pprint
[clojure.contrib.logging :only [debug]]))
(def static-file-regex
#".*\.(css|js|png|jpg|gif|ico)$")
(defn wrap-logging [handler prefix]
(fn [request]
(if (re-find static-file-regex (:uri request))
(debug (str prefix (:uri request)))
(debug ... | null | https://raw.githubusercontent.com/timewald/clj-rest-svc/653282edcc8d927b49fcbad71e30c58d2db033f5/src/clj_rest_svc/logging.clj | clojure | (ns clj-rest-svc.logging
(:use clojure.pprint
[clojure.contrib.logging :only [debug]]))
(def static-file-regex
#".*\.(css|js|png|jpg|gif|ico)$")
(defn wrap-logging [handler prefix]
(fn [request]
(if (re-find static-file-regex (:uri request))
(debug (str prefix (:uri request)))
(debug ... | |
761c820be170bc2b3a008c04d5930001bab6b973e539e587781c402b2acd2e66 | timbertson/passe | account_settings.ml | open Js_of_ocaml
open Passe
open Passe_js
open Common
module Log = (val Logging.log_module "account_settings")
open Vdoml
open Html
open Bootstrap
type user_deletion = {
deletion_error : string option;
password_confirm: string;
}
type password_change = {
password_change_error: string option;
old_password: string... | null | https://raw.githubusercontent.com/timbertson/passe/467a79ea0cd7b08a97b52be3bd1307a3bdf55799/src/www/account_settings.ml | ocaml | command-only messages | open Js_of_ocaml
open Passe
open Passe_js
open Common
module Log = (val Logging.log_module "account_settings")
open Vdoml
open Html
open Bootstrap
type user_deletion = {
deletion_error : string option;
password_confirm: string;
}
type password_change = {
password_change_error: string option;
old_password: string... |
9cbe732ebeb141bb83eda102fd4a6aa7eac9552fc0df2f989c9211a0a86f73c2 | zadean/xqerl | prod_ExtensionExpr_SUITE.erl | -module('prod_ExtensionExpr_SUITE').
-include_lib("common_test/include/ct.hrl").
-export([
all/0,
groups/0,
suite/0
]).
-export([
init_per_suite/1,
init_per_group/2,
end_per_group/2,
end_per_suite/1
]).
-export(['extexpr-1'/1]).
-export(['extexpr-2'/1]).
-export(['extexpr-3'/1]).
-export... | null | https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/prod/prod_ExtensionExpr_SUITE.erl | erlang | -module('prod_ExtensionExpr_SUITE').
-include_lib("common_test/include/ct.hrl").
-export([
all/0,
groups/0,
suite/0
]).
-export([
init_per_suite/1,
init_per_group/2,
end_per_group/2,
end_per_suite/1
]).
-export(['extexpr-1'/1]).
-export(['extexpr-2'/1]).
-export(['extexpr-3'/1]).
-export... | |
b00d329933b3daa872dd08d3840e6024dc22cd7a9b6723174401465fac6b1f85 | Martoon-00/toy-compiler | Data.hs | {-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TypeFamilies #-}
module Toy.X86.Data
( Operand (..)
, Inst (..)
, Insts
, Program (..)
, StackDirection (..)
, (?)
, (//)
, jmp
, ret
, eax
, edx
, esi
... | null | https://raw.githubusercontent.com/Martoon-00/toy-compiler/a325d56c367bbb673608d283197fcd51cf5960fa/src/Toy/X86/Data.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE LambdaCase #
# LANGUAGE QuasiQuotes #
# LANGUAGE TypeFamilies #
^ Register
^ Constant
^ Memory reference. This keeps amount of /qword/s to look back on stack
^ Like `Mem`, but won't be moved by 'Toy.X86.Translator.fixMemRefs'
^ Memory reference to heap. Operand m... |
module Toy.X86.Data
( Operand (..)
, Inst (..)
, Insts
, Program (..)
, StackDirection (..)
, (?)
, (//)
, jmp
, ret
, eax
, edx
, esi
, edi
, esp
, withStackSpace
, traverseOperands
, InstContainer
) where
import Data.Int ... |
24ce96b1a6c415f3219ec7234aa355cd01d25205346d155202a699ed62955e06 | haskell-suite/base | Exit.hs | # LANGUAGE Trustworthy #
# LANGUAGE CPP #
-----------------------------------------------------------------------------
-- |
-- Module : System.Exit
Copyright : ( c ) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer :
-- Stability : p... | null | https://raw.githubusercontent.com/haskell-suite/base/1ee14681910c76d0a5a436c33ecf3289443e65ed/System/Exit.hs | haskell | ---------------------------------------------------------------------------
|
Module : System.Exit
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : provisional
Portability : portable
Exiting the program.
-----------------------------------------------------... | # LANGUAGE Trustworthy #
# LANGUAGE CPP #
Copyright : ( c ) The University of Glasgow 2001
module System.Exit
(
ExitCode(ExitSuccess,ExitFailure)
, exitWith
, exitFailure
, exitSuccess
) where
import Prelude
#ifdef __GLASGOW_HASKELL__
import GHC.IO
import GHC.IO.Exception
#endif
#ifd... |
ed6e9ed0605bd38ce6aefe551edb994ba5a252f450e34cde19d4f7769bb2d0dc | Plutonomicon/plutarch-plutus | Unsafe.hs | module Plutarch.Unsafe (
PI.punsafeBuiltin,
PI.punsafeCoerce,
PI.punsafeConstant,
punsafeDowncast,
) where
import Plutarch.Internal (Term)
import Plutarch.Internal qualified as PI
import Plutarch.Internal.PlutusType (PInner)
|
Unsafely coerce from the ' ' representation of a Term ,
assuming that th... | null | https://raw.githubusercontent.com/Plutonomicon/plutarch-plutus/9b83892057f2aaaed76e3af6193ad1ae242244cc/Plutarch/Unsafe.hs | haskell | module Plutarch.Unsafe (
PI.punsafeBuiltin,
PI.punsafeCoerce,
PI.punsafeConstant,
punsafeDowncast,
) where
import Plutarch.Internal (Term)
import Plutarch.Internal qualified as PI
import Plutarch.Internal.PlutusType (PInner)
|
Unsafely coerce from the ' ' representation of a Term ,
assuming that th... | |
838fab0429d837b9aa2d1439a8dff1082f62bf842b15ed09615572c7df9794ad | PatrickMaier/HdpH | sumeuler-2level.hs | Sum of totients in
--
Author :
-----------------------------------------------------------------------------
# LANGUAGE FlexibleInstances #
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -fno - warn - orphans #
module Main where
import Prelude
import Control.Exception (evaluate)
import Control.Monad (when)
impor... | null | https://raw.githubusercontent.com/PatrickMaier/HdpH/e836a5bcf5a6c93239f9c0d0109d7b81b459897f/hdph/src/Test/HdpH/sumeuler-2level.hs | haskell |
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
sequential sum of totients
---------------------------------------------------------------... | Sum of totients in
Author :
# LANGUAGE FlexibleInstances #
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -fno - warn - orphans #
module Main where
import Prelude
import Control.Exception (evaluate)
import Control.Monad (when)
import Data.List (stripPrefix)
import Data.Functor ((<$>))
import Data.Monoid (mconcat... |
413e0e4171ecba7d52fbdfa4149ca39ee5822120a0efcec2cfa8ad047e49a38c | nvim-treesitter/nvim-treesitter | locals.scm | ; let bindings
(let_expression (binding_set (binding . (attrpath) @definition.var))) @scope
rec attrsets
(rec_attrset_expression (binding_set (binding . (attrpath) @definition.field))) @scope
; functions and parameters
(function_expression . [
(identifier) @definition.parameter
(formals (formal . (identifie... | null | https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/29b0ea8093c49fe1ae639f41279f23a1a95f5cf0/queries/nix/locals.scm | scheme | let bindings
functions and parameters
I couldn't get this to work properly inside the (function) | (let_expression (binding_set (binding . (attrpath) @definition.var))) @scope
rec attrsets
(rec_attrset_expression (binding_set (binding . (attrpath) @definition.field))) @scope
(function_expression . [
(identifier) @definition.parameter
(formals (formal . (identifier) @definition.parameter))
]) @scope
(var... |
b7226ec109e1d721a37887eb43156630b2d81f8e8847386aa57934e4abb01ec1 | uw-unsat/serval | test.rkt | #lang rosette
(require serval/riscv/base
serval/riscv/interp2
serval/riscv/decode)
(define-symbolic rs1 rs2 rd (bitvector 5))
(displayln (decode (concat (bv 0 7) rs2 rs1 (bv 0 3) rd (bv #b0110011 7)))) | null | https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/test/riscv/test.rkt | racket | #lang rosette
(require serval/riscv/base
serval/riscv/interp2
serval/riscv/decode)
(define-symbolic rs1 rs2 rd (bitvector 5))
(displayln (decode (concat (bv 0 7) rs2 rs1 (bv 0 3) rd (bv #b0110011 7)))) | |
4c10b042fb465135875a2ec25dd998de8c2c1e1028041fedc7d092085f61d01c | mirage/conan | test_parser.ml | let () = Printexc.record_backtrace true
let test_parser filename =
Alcotest.test_case filename `Quick @@ fun () ->
let open Conan in
let ic = open_in ("../database/" ^ filename) in
match Parse.parse_in_channel ic with
| Ok _ -> Alcotest.(check pass) "parser" () ()
| Error err -> Alcotest.failf "%a" Parse.p... | null | https://raw.githubusercontent.com/mirage/conan/46cdc0857881b24460d03a656b1efde5552c1480/test/test_parser.ml | ocaml | "der"; | let () = Printexc.record_backtrace true
let test_parser filename =
Alcotest.test_case filename `Quick @@ fun () ->
let open Conan in
let ic = open_in ("../database/" ^ filename) in
match Parse.parse_in_channel ic with
| Ok _ -> Alcotest.(check pass) "parser" () ()
| Error err -> Alcotest.failf "%a" Parse.p... |
e30eadb7f01493f2ffeaa771c93fbc22333981c95aa13e65b92689d840b822bd | avsm/eeww | cmm.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/avsm/eeww/651d8da20a3cc9e88354ed0c8da270632b9c0c19/boot/ocaml/asmcomp/cmm.ml | 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
type machtype_component =
| Val
| Addr
| Int
| Float
type machtype = machtype_component array
l... |
a611f892c7bc376e339781730fe164cfac5cfdc7d2fc4a849756e096d96927d5 | lasp-lang/types | state_pncounter.erl | %%
Copyright ( c ) 2015 - 2016 . All Rights Reserved .
Copyright ( c ) 2007 - 2012 Basho Technologies , Inc. All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%... | null | https://raw.githubusercontent.com/lasp-lang/types/e35b9b3a32b8f580daff1a7d1102813ad530835e/src/state_pncounter.erl | erlang |
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
----------------------------... | Copyright ( c ) 2015 - 2016 . All Rights Reserved .
Copyright ( c ) 2007 - 2012 Basho Technologies , Inc. All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
"... |
fab22218e771e298cdfc20812d9ad55926bede7f27c22c0dc0afb4856e56c419 | ygmpkk/house | CmdLineParser.hs | +
Command - Line Parsing Combinators
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Command-Line Parsing Combinators
================================
-}
module Util.CmdLineParser(
Parser type :
P,
Parser constructors :
token,cmd,(!),(<@),(#@),chk,nil,oneof,many,arg,kw,opt,flag,readP,named... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Util/CmdLineParser.hs | haskell | run,
+
The Parser Data Type
--------------------
+
Parsing combinators
-------------------
- descr) p
+
Common tokens
+
Extracting the documentation from a grammar
------------------------------------------
+
Running a parser
----------------
| +
Command - Line Parsing Combinators
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Command-Line Parsing Combinators
================================
-}
module Util.CmdLineParser(
Parser type :
P,
Parser constructors :
token,cmd,(!),(<@),(#@),chk,nil,oneof,many,arg,kw,opt,flag,readP,named... |
fe95d2f8deda156ea5b477fc340d050ffd20674bf4647f1a202ce2adc98b4a25 | heraldry/heraldicon | mascle.cljs | (ns heraldicon.heraldry.charge.type.mascle
(:require
[heraldicon.heraldry.charge.interface :as charge.interface]
[heraldicon.heraldry.charge.shared :as charge.shared]
[heraldicon.interface :as interface]))
(def charge-type :heraldry.charge.type/mascle)
(defmethod charge.interface/display-name charge-type [... | null | https://raw.githubusercontent.com/heraldry/heraldicon/3b52869f611023b496a29473a98c35ca89262aab/src/heraldicon/heraldry/charge/type/mascle.cljs | clojure | (ns heraldicon.heraldry.charge.type.mascle
(:require
[heraldicon.heraldry.charge.interface :as charge.interface]
[heraldicon.heraldry.charge.shared :as charge.shared]
[heraldicon.interface :as interface]))
(def charge-type :heraldry.charge.type/mascle)
(defmethod charge.interface/display-name charge-type [... | |
e39ac0b9cd1657725d6b63dd2e734eb0d40559452b9f73fc8711bd36b3c96ff2 | mhuebert/chia | view_specs.cljs | (ns chia.view.legacy.view-specs
(:require [clojure.string :as string]
["react" :as react]
[clojure.spec.alpha :as s]))
(defonce spec-meta
;; clojure spec doesn't support metadata, but we want our docstrings
(atom {}))
(def ReactElement? react/isValidElement)
(def Hiccup? #(and (vector? ... | null | https://raw.githubusercontent.com/mhuebert/chia/74ee3ee9f86efbdf81d8829ab4f0a44d619c73d3/view/src/chia/view/legacy/view_specs.cljs | clojure | clojure spec doesn't support metadata, but we want our docstrings | (ns chia.view.legacy.view-specs
(:require [clojure.string :as string]
["react" :as react]
[clojure.spec.alpha :as s]))
(defonce spec-meta
(atom {}))
(def ReactElement? react/isValidElement)
(def Hiccup? #(and (vector? %)
(keyword? (first %))))
(def SVG? #(and (Hiccup? ... |
b9cd18f9357be57f26c8dca86595b0acf7aa9b6bd9e432fc5e206aca55388abc | everpeace/programming-erlang-code | name_server.erl | -module(name_server).
-export([init/0, add/2, whereis/1, handle/2]).
-import(server1, [rpc/2]).
%% client routines
add(Name, Place) -> rpc(name_server, {add, Name, Place}).
whereis(Name) -> rpc(name_server, {whereis, Name}).
%% callback routines
init() -> dict:new().
handle({add, Name, Place}, Dict) -> {ok, dict:... | null | https://raw.githubusercontent.com/everpeace/programming-erlang-code/8ef31aa13d15b41754dda225c50284915c29cb48/code/name_server.erl | erlang | client routines
callback routines | -module(name_server).
-export([init/0, add/2, whereis/1, handle/2]).
-import(server1, [rpc/2]).
add(Name, Place) -> rpc(name_server, {add, Name, Place}).
whereis(Name) -> rpc(name_server, {whereis, Name}).
init() -> dict:new().
handle({add, Name, Place}, Dict) -> {ok, dict:store(Name, Place, Dict)};
handle({where... |
c7eed465911bdc2569e476ec8148af243ec30819ab198e089d80a7bb3978b9a2 | jacekschae/learn-pedestal-course-files | interceptors.clj | (ns cheffy.interceptors
(:require [datomic.client.api :as d]
[io.pedestal.interceptor :as interceptor]))
(def db-interceptor
(interceptor/interceptor
{:name ::db-interceptor
:enter (fn [ctx]
(let [conn (get-in ctx [:request :system/database :conn])
db (d/db co... | null | https://raw.githubusercontent.com/jacekschae/learn-pedestal-course-files/1da2b92888af7512993ee02a348c021c0194c9f3/increments/32-query-interceptor/src/main/cheffy/interceptors.clj | clojure | (ns cheffy.interceptors
(:require [datomic.client.api :as d]
[io.pedestal.interceptor :as interceptor]))
(def db-interceptor
(interceptor/interceptor
{:name ::db-interceptor
:enter (fn [ctx]
(let [conn (get-in ctx [:request :system/database :conn])
db (d/db co... | |
c0f6526619eb14371b904696bcdbf1a1404debce67ed0e5d7a2015d173a419b5 | ocaml-community/obus | uDisks_port.mli |
* uDisks_port.mli
* ---------------
* Copyright : ( c ) 2010 , < >
* Licence : BSD3
*
* This file is a part of obus , an ocaml implementation of D - Bus .
* uDisks_port.mli
* ---------------
* Copyright : (c) 2010, Jeremie Dimino <>
* Licence : BSD3
*
* This file is a part of obus, an... | null | https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/bindings/udisks/uDisks_port.mli | ocaml | * UDisks port interface |
* uDisks_port.mli
* ---------------
* Copyright : ( c ) 2010 , < >
* Licence : BSD3
*
* This file is a part of obus , an ocaml implementation of D - Bus .
* uDisks_port.mli
* ---------------
* Copyright : (c) 2010, Jeremie Dimino <>
* Licence : BSD3
*
* This file is a part of obus, an... |
f77cd2ed49cf96bc941a8167723f73d0383e378362a72e0a8a75322e56ec67f3 | liquidz/misaki | string.clj | (ns misaki.test.util.string
(:require
[misaki.util.string :refer :all]
[clojure.test :refer :all]))
;;; escape-string
(deftest escape-string-test
(are [x y] (= x (escape-string y))
"a&b" "a&b"
"a"b" "a\"b"
"a<b" "a<b"
"a>b" "a>b"
"&"<>" "&\"<>")... | null | https://raw.githubusercontent.com/liquidz/misaki/b8104e632058e3b3da4487513d10e666e5914ec9/test/misaki/test/util/string.clj | clojure | escape-string
msec->string
str-contains?
str-split-last
render | (ns misaki.test.util.string
(:require
[misaki.util.string :refer :all]
[clojure.test :refer :all]))
(deftest escape-string-test
(are [x y] (= x (escape-string y))
"a&b" "a&b"
"a"b" "a\"b"
"a<b" "a<b"
"a>b" "a>b"
"&"<>" "&\"<>"))
(deftest msec->... |
7e7c1e2919c0f8effd4aee67f83aa99d444e5ecd52717fb46d60f40464edf07f | inaka/serpents | spts_cli_random.erl | @doc dumb AI client that just moves in random directions
-module(spts_cli_random).
-behaviour(spts_cli).
%%% gen_server callbacks
-export([init/3, handle_update/4, terminate/4]).
%%% API
-export([play/2, quit/1]).
-record(state, {}).
-type state() :: #state{}.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... | null | https://raw.githubusercontent.com/inaka/serpents/b21b63cee117e0b98fd3a9be4fb326e9de3ee861/src/clients/ai/spts_cli_random.erl | erlang | gen_server callbacks
API
External API
Callback implementation
| @doc dumb AI client that just moves in random directions
-module(spts_cli_random).
-behaviour(spts_cli).
-export([init/3, handle_update/4, terminate/4]).
-export([play/2, quit/1]).
-record(state, {}).
-type state() :: #state{}.
-spec play(spts_games:id(), spts_serpents:name()) -> {ok, pid()}.
play(GameId, Serpe... |
c040eb85e446437f023fe3e478b18cd748b2487a48fa0ce86e411f539d785e57 | nathell/spleen | build.clj | (ns spleen.build
(:require [clojure.string :as string]))
(defn build [{:keys [args]}]
(let [args (string/split args #" ")]
(morfologik.tools.Launcher/main (into-array String args))))
| null | https://raw.githubusercontent.com/nathell/spleen/741b77e1158ed99461da068e125317bf888d5db0/src/spleen/build.clj | clojure | (ns spleen.build
(:require [clojure.string :as string]))
(defn build [{:keys [args]}]
(let [args (string/split args #" ")]
(morfologik.tools.Launcher/main (into-array String args))))
| |
698c5c5261979d6e19721c9d97ce17dc714d48703d94ba732ccd373d61cb1f4e | mit-plv/riscv-semantics | ExecuteA.hs | # LANGUAGE ScopedTypeVariables #
module Spec.ExecuteA where
import Spec.Decode
import Spec.Machine
import Utility.Utility
import Spec.VirtualMemory
import Control.Monad
import Data.Bits
import Prelude
execute :: forall p t. (RiscvMachine p t) => InstructionA -> p ()
-- begin ast
execute (Lr_w rd rs1 aqrl) = do
a <- ... | null | https://raw.githubusercontent.com/mit-plv/riscv-semantics/1c0da3cac9d3f8dd813d26c0d2fbaccbb2210313/src/Spec/ExecuteA.hs | haskell | begin ast
TODO: Eventually stop cheating.
end ast | # LANGUAGE ScopedTypeVariables #
module Spec.ExecuteA where
import Spec.Decode
import Spec.Machine
import Utility.Utility
import Spec.VirtualMemory
import Control.Monad
import Data.Bits
import Prelude
execute :: forall p t. (RiscvMachine p t) => InstructionA -> p ()
execute (Lr_w rd rs1 aqrl) = do
a <- getRegister r... |
33148ab5f3e16281d08b31bf84500b755d7487274af2fed3d7c01adfd005b5cb | AndrasKovacs/setoidtt | FPEF.hs |
module FPEF
(
runSexp,
runLongws,
runNumcsv
)
where
import FlatParse
ws = many_ do
ensureBytes# 1
c <- scanAny8#
case c of
32 -> pure ()
10 -> pure ()
_ -> empty
open = $(char '(') >> ws
close = $(char ')') >> ws
iden... | null | https://raw.githubusercontent.com/AndrasKovacs/setoidtt/621aef2c4ae5a6acb418fa1153575b21e2dc48d2/setoidtt/flatparse/bench/FPEF.hs | haskell |
module FPEF
(
runSexp,
runLongws,
runNumcsv
)
where
import FlatParse
ws = many_ do
ensureBytes# 1
c <- scanAny8#
case c of
32 -> pure ()
10 -> pure ()
_ -> empty
open = $(char '(') >> ws
close = $(char ')') >> ws
iden... | |
44a014d59e7746ad450debf7b2ef60513d38857e7d0a8e70f1b80b26e5a795bd | LeventErkok/sbv | ModelExtract.hs | -----------------------------------------------------------------------------
-- |
Module : . Misc . ModelExtract
Copyright : ( c )
-- License : BSD3
-- Maintainer:
-- Stability : experimental
--
Bench suite for Documentation . SBV.Examples . Misc . ModelExtract
---------------------... | null | https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/SBVBenchSuite/BenchSuite/Misc/ModelExtract.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD3
Maintainer:
Stability : experimental
---------------------------------------------------------------------------
# OPTIONS_GHC -Wall -Werror #
benchmark suite | Module : . Misc . ModelExtract
Copyright : ( c )
Bench suite for Documentation . SBV.Examples . Misc . ModelExtract
module BenchSuite.Misc.ModelExtract(benchmarks) where
import Documentation.SBV.Examples.Misc.ModelExtract
import BenchSuite.Bench.Bench
benchmarks :: Runner
benchmar... |
19764363c2a0ccf6056216ddea47e20ee9f0079ecaace92707de4df9a89c36e7 | mistupv/cauder | cauder_semantics_forwards.erl | %%%-----------------------------------------------------------------------------
@doc Forwards ( reversible ) semantics for Erlang .
This module includes two functions , one to get the evaluation options for a
%%% given system and one to perform an evaluation step in a process of a given
%%% system.
%%% @end
%%%---... | null | https://raw.githubusercontent.com/mistupv/cauder/c9bfb72a4aed70979e53f4b3ca4a085a19b6c195/src/cauder_semantics_forwards.erl | erlang | -----------------------------------------------------------------------------
given system and one to perform an evaluation step in a process of a given
system.
@end
-----------------------------------------------------------------------------
API
====================================================================... | @doc Forwards ( reversible ) semantics for Erlang .
This module includes two functions , one to get the evaluation options for a
-module(cauder_semantics_forwards).
-export([step/4, options/2]).
-import(cauder_eval, [is_reducible/2]).
-include("cauder_system.hrl").
-include("cauder_message.hrl").
-include("caud... |
2cf2e500872a46266955f8d63296ef8937f2232e7c22aee9a039e9712b56848a | binsec/haunted | sse_options.mli | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2019
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/sse/sse_options.mli | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
31e839e6002f4d38a63e71dd5af6c183c7329db47fc696f74477526257aa8555 | erlang/rebar3 | r3_hex_http_httpc.erl | %% Vendored from hex_core v0.7.1, do not edit manually
%% @hidden
-module(r3_hex_http_httpc).
-behaviour(r3_hex_http).
-export([request/5]).
%%====================================================================
%% API functions
%%====================================================================
request(Method, ... | null | https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/apps/rebar/src/vendored/r3_hex_http_httpc.erl | erlang | Vendored from hex_core v0.7.1, do not edit manually
@hidden
====================================================================
API functions
====================================================================
====================================================================
====================================... |
-module(r3_hex_http_httpc).
-behaviour(r3_hex_http).
-export([request/5]).
request(Method, URI, ReqHeaders, Body, AdapterConfig) ->
Profile = maps:get(profile, AdapterConfig, default),
Request = build_request(URI, ReqHeaders, Body),
case httpc:request(Method, Request, [], [{body_format, binary}], Profil... |
bf94da4b9ecb3c12cfe1947f1385346190ec51e3395098a55375db6f0ad66d7d | FranklinChen/hugs98-plus-Sep2006 | Trace.hs | -----------------------------------------------------------------------------
-- |
-- Module : Debug.Trace
Copyright : ( c ) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer :
-- Stability : provisional
-- Portability : portable
--
--... | null | https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/base/Debug/Trace.hs | haskell | ---------------------------------------------------------------------------
|
Module : Debug.Trace
License : BSD-style (see the file libraries/base/LICENSE)
Maintainer :
Stability : provisional
Portability : portable
The 'trace' function.
----------------------------------------------------... | Copyright : ( c ) The University of Glasgow 2001
module Debug.Trace (
) where
import Prelude
import System.IO.Unsafe
#ifdef __GLASGOW_HASKELL__
import Foreign.C.String
#else
import System.IO (hPutStrLn,stderr)
#endif
| ' putTraceMsg ' function outputs the trace message from IO monad .
from Windows GUI ... |
975f6fed69415beb2188b13a8cd274e3fefb9c329915d70652376d44030c3e8d | OtpChatBot/Ybot | irc_lib_client.erl | %%%-----------------------------------------------------------------------------
%%% @author 0xAX <>
%%% @doc
Irc client with ssl support .
%%% @end
%%%-----------------------------------------------------------------------------
-module(irc_lib_client).
-behaviour(gen_server).
-export([start_link/7]).
%% gen_serv... | null | https://raw.githubusercontent.com/OtpChatBot/Ybot/5ce05fea0eb9001d1c0ff89702729f4c80743872/src/transport/irc/irc_lib_client.erl | erlang | -----------------------------------------------------------------------------
@author 0xAX <>
@doc
@end
-----------------------------------------------------------------------------
gen_server callbacks
irc client state
irc server host
irc server port
irc server password
% irc channel
irc_channel = <<>> :: bi... | Irc client with ssl support .
-module(irc_lib_client).
-behaviour(gen_server).
-export([start_link/7]).
-export([init/1,
handle_call/3,
handle_cast/2,
handle_info/2,
terminate/2,
code_change/3]).
-record(state, {
irc nick
login = <<>> :: binary(),
host = <<>>... |
77f2f1f629381556c10e36f8265de0d70ec616d1d9dbd3980a0b26a2f793f9e3 | project-oak/hafnium-verification | FileScheduler.ml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/backend/FileScheduler.ml | ocaml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | |
57e6e340ce1f3f587cf60515021c2b37a04242084cb45600cb49fe14daa0034c | EveryTian/Haskell-Codewars | bankers-plan.hs | -- -plan
module Codewars.G964.Bankerplan where
fortune :: Int -> Double -> Int -> Int -> Double -> Bool
fortune f0 p c0 n i
| f0 < 0 = False
| n <= 1 = True
| otherwise = fortune (truncate $ fromIntegral f0 * (1 + p / 100) - fromIntegral c0)
p
(truncate ... | null | https://raw.githubusercontent.com/EveryTian/Haskell-Codewars/dc48d95c676ce1a59f697d07672acb6d4722893b/6kyu/bankers-plan.hs | haskell | -plan |
module Codewars.G964.Bankerplan where
fortune :: Int -> Double -> Int -> Int -> Double -> Bool
fortune f0 p c0 n i
| f0 < 0 = False
| n <= 1 = True
| otherwise = fortune (truncate $ fromIntegral f0 * (1 + p / 100) - fromIntegral c0)
p
(truncate $ fromInt... |
8d5465d9c67adcb8cb451be910ff96613626cb4ae0e65309cf3ab1750b5948f3 | alang9/dynamic-graphs | Tree.hs | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
module Data.Graph.Dynamic.Internal.Tree
( Tree (..)
, concat
, TestTree (..)
) where
import Control.Monad (foldM)
import Control.Monad.Primitive (PrimMonad (..))
import Data.List.NonEmpty (N... | null | https://raw.githubusercontent.com/alang9/dynamic-graphs/b88f001850c7bee8faa62099e93172a0bb0df613/src/Data/Graph/Dynamic/Internal/Tree.hs | haskell | | The chosen represenation of the tree has a big impact on the performance of
the algorithms. This typeclass allows us to swap them out more easily.
| A management structure used to create new trees
| Create a tree gen itself
| Create a tree with a single element.
| Prepend a singleton tree
| Append a singleton... | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
module Data.Graph.Dynamic.Internal.Tree
( Tree (..)
, concat
, TestTree (..)
) where
import Control.Monad (foldM)
import Control.Monad.Primitive (PrimMonad (..))
import Data.List.NonEmpty (N... |
01e3ee5b1ef16545f46a60b3f64c2321130ba55fa95b14f44dd55c47b1d1474e | nonguix/nonguix | gog.scm | SPDX - License - Identifier : GPL-3.0 - or - later
Copyright © 2019 , 2020 < >
Copyright © 2021 - 2022
(define-module (nongnu packages gog)
#:use-module (gnu packages boost)
#:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
#:use-module (gnu packages curl)
#:use-module ... | null | https://raw.githubusercontent.com/nonguix/nonguix/71252d2d9d1908a1f1b005d2025b0907d5d5c377/nongnu/packages/gog.scm | scheme | no tests | SPDX - License - Identifier : GPL-3.0 - or - later
Copyright © 2019 , 2020 < >
Copyright © 2021 - 2022
(define-module (nongnu packages gog)
#:use-module (gnu packages boost)
#:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
#:use-module (gnu packages curl)
#:use-module ... |
5d04218794861e507fee2b8bed2c68bfbd988cea7226b3e8dec6e94712404dc1 | lachenmayer/arrowsmith | Solve.hs | module Type.Solve (solve) where
import Control.Monad
import Control.Monad.State
import qualified Data.List as List
import qualified Data.Map as Map
import qualified Data.Traversable as Traversable
import qualified Data.UnionFind.IO as UF
import Type.Type
import Type.Unify
import qualified Type.ExtraChecks as Check
imp... | null | https://raw.githubusercontent.com/lachenmayer/arrowsmith/34b6bdeddddb2d8b9c6f41002e87ec65ce8a701a/elm-compiler/src/Type/Solve.hs | haskell | | Every variable has rank less than or equal to the maxRank of the pool.
This sorts variables into the young and old pools accordingly.
Sort the youngPool variables by rank.
get the ranks right for each entry.
start at low ranks so that we only have to pass
over the information once.
For variables that have ra... | module Type.Solve (solve) where
import Control.Monad
import Control.Monad.State
import qualified Data.List as List
import qualified Data.Map as Map
import qualified Data.Traversable as Traversable
import qualified Data.UnionFind.IO as UF
import Type.Type
import Type.Unify
import qualified Type.ExtraChecks as Check
imp... |
a0b0ca941f58ab32b3a0def9c216a0bbc63f0aad53c85a106ee408f1eb83a6ba | rd--/hsc3 | squiz.help.hs | -- squiz ; of sin oscillator
let zmax = 10
x = mouseX kr 1 10 Exponential 0.2
y = mouseY kr 1 zmax Linear 0.2
in X.squiz (sinOsc ar 440 0) x y 0.1 * 0.1
-- squiz ; of soundin
let zmax = 100
s = sinOsc ar 440 0
x = mouseX kr 1 10 Exponential 0.2
y = mouseY kr 1 zmax Linear 0.2
in X.squiz (soundIn 0)... | null | https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Ugen/squiz.help.hs | haskell | squiz ; of sin oscillator
squiz ; of soundin
; setup ; nc=2 | let zmax = 10
x = mouseX kr 1 10 Exponential 0.2
y = mouseY kr 1 zmax Linear 0.2
in X.squiz (sinOsc ar 440 0) x y 0.1 * 0.1
let zmax = 100
s = sinOsc ar 440 0
x = mouseX kr 1 10 Exponential 0.2
y = mouseY kr 1 zmax Linear 0.2
in X.squiz (soundIn 0) x y 0.1 * 0.1
squiz ; of buffer ; requires = bu... |
138fdf3a2ebda4d38f039935cd73034196ea632ac9fb7cfe491db86221cd5ee7 | Liutos/cl-github-page | index.lisp | (in-package #:com.liutos.cl-github-page.page)
(defun make-category-path (category-id)
"返回指定分类的页面地址"
(check-type category-id integer)
(merge-pathnames (format nil "categories/~D.html" category-id)
(com.liutos.cl-github-page.config:get-blog-root)))
(defun make-pagination-path (page-number)
(l... | null | https://raw.githubusercontent.com/Liutos/cl-github-page/336e4ad925c95969a8686ea2267099f49c1e01a6/src/page/index.lisp | lisp | EXPORT | (in-package #:com.liutos.cl-github-page.page)
(defun make-category-path (category-id)
"返回指定分类的页面地址"
(check-type category-id integer)
(merge-pathnames (format nil "categories/~D.html" category-id)
(com.liutos.cl-github-page.config:get-blog-root)))
(defun make-pagination-path (page-number)
(l... |
acc1fdb97b752fff2c003cf33cb6b909b9825200d3c2a26cbd12c74af19ca616 | 8c6794b6/guile-tjit | rnrs.scm | ;;; rnrs.scm --- The R6RS composite library
Copyright ( C ) 2010 , 2011 Free Software Foundation , Inc.
;;
;; This library 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 ; either
version 3 of... | null | https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/rnrs.scm | scheme | rnrs.scm --- The R6RS composite library
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
either
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY... |
Copyright ( C ) 2010 , 2011 Free Software Foundation , Inc.
version 3 of the License , or ( at your option ) any later version .
You should have received a copy of the GNU Lesser General Public
Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA
(library (rnrs (6))
( rnrs arithmet... |
61b51baf02210b6d9643da0bb63d71ef10373560523b6a219cb417d0fb0f2bdb | emanjavacas/cosycat | projects_panel.cljs | (ns cosycat.front.components.projects-panel
(:require [reagent.core :as reagent]
[re-frame.core :as re-frame]
[react-bootstrap.components :as bs]
[cosycat.routes :refer [nav!]]
[cosycat.utils :refer [human-time]]
[cosycat.components :refer [user-selection-co... | null | https://raw.githubusercontent.com/emanjavacas/cosycat/a7186363d3c0bdc7b714af126feb565f98793a6e/src/cljs/cosycat/front/components/projects_panel.cljs | clojure | (ns cosycat.front.components.projects-panel
(:require [reagent.core :as reagent]
[re-frame.core :as re-frame]
[react-bootstrap.components :as bs]
[cosycat.routes :refer [nav!]]
[cosycat.utils :refer [human-time]]
[cosycat.components :refer [user-selection-co... | |
084cefa0f421680c0aaa64564d8f18b78348933cdb9694ca24f8d7e22acdf32b | finnschiermer/x86prime | predictors.ml | exception PredictorMismatch
type return_predictor_state = {
mutable stack_p : int;
stack : int array;
}
type predictor_machine = SNT | WNT | WT | ST
type dynamic_predictor_state = {
mutable history : int;
predictors : predictor_machine array;
}
type predictor_kind =
| PredTaken | PredNotTaken... | null | https://raw.githubusercontent.com/finnschiermer/x86prime/6c95457fce945b22fbab3c6a3203a3d3980e70cb/lib/predictors.ml | ocaml | exception PredictorMismatch
type return_predictor_state = {
mutable stack_p : int;
stack : int array;
}
type predictor_machine = SNT | WNT | WT | ST
type dynamic_predictor_state = {
mutable history : int;
predictors : predictor_machine array;
}
type predictor_kind =
| PredTaken | PredNotTaken... | |
426fdd818a9df872572901e1804f3474bf71e5efb6a377a8e065a9f43f22a035 | pirapira/coq2rust | decls.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/library/decls.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
* This module registers tables for s... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Util
open Names
open Co... |
d035b067158178dd2b8e47a8b8d943ef95a6cd329207a90eb5926eb8cd4e0315 | manuel-serrano/bigloo | equiv.scm | ;*=====================================================================*/
* serrano / prgm / project / bigloo / / runtime / Ieee / equiv.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : ... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/e2ff532e9fa1d5d5458becf0026790d946f30b62/runtime/Ieee/equiv.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
*=====================================================================*/
*---------------------------... | * serrano / prgm / project / bigloo / / runtime / Ieee / equiv.scm * /
* Author : * /
* Creation : Fri Jan 20 09:57:55 1995 * /
* Last change : Fri Nov 4 16:33:19 2022 ( serrano ) * /
* 6.2 . E... |
24f38ade649fb942fb5338f960e04e1a9428264c9e56ae3801cd99a6e09a47f1 | ngorogiannis/cyclist | abduce.mli | (** This module contains functions to answer various abduction questions for
use in program verification. *)
open Generic
val max_depth : int
(** Returns the maximum depth for the underlying proof search *)
val set_depth : int -> unit
(** Set the maximum depth for the underlying proof search *)
val set_defs : D... | null | https://raw.githubusercontent.com/ngorogiannis/cyclist/c93a168d586b308ab2a2c730cd1b2375ab263167/src/seplog/abduce.mli | ocaml | * This module contains functions to answer various abduction questions for
use in program verification.
* Returns the maximum depth for the underlying proof search
* Set the maximum depth for the underlying proof search
* Specify the set of inductive definitions available for the proof search |
open Generic
val max_depth : int
val set_depth : int -> unit
val set_defs : Defs.t -> unit
val abd_substs :
?used_tags:Tags.t
-> ?init_state:Unify.Unidirectional.state
-> ?update_check:Unify.Unidirectional.update_check
-> ?verify:Unify.Unidirectional.state_check
-> ?allow_frame:bool
-> Form.t
-> F... |
1dabd24b014cbbf33616ee7cf0f0fd12f7fee1164e168abcaf5519fb9ea4ffc5 | ghcjs/ghcjs-dom | GamepadButton.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
module GHCJS.DOM.JSFFI.Generated.GamepadButton
(js_getPressed, getPressed, js_getValue, getValue,
GamepadButton(... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/GamepadButton.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
module GHCJS.DOM.JSFFI.Generated.GamepadButton
(js_getPressed, getPressed, js_getValue, getValue,
GamepadButton(..), gTypeGamepadButton)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Dou... |
fa4b26f94aeb4081be1e3a073b977d4937530f19625ad38704ee64c6fc484e21 | K2InformaticsGmbH/dderl | dderl_resource.erl | %% @doc POST ajax handler.
-module(dderl_resource).
-author('Bikram Chatterjee <>').
-behaviour(cowboy_loop).
-include("dderl.hrl").
-include("dderl_request.hrl").
-export([init/2]).
-export([info/3]).
-export([terminate/3]).
-export([samlRelayStateHandle/2, conn_info/1]).
-record(state, {sessionToken}).
init(Re... | null | https://raw.githubusercontent.com/K2InformaticsGmbH/dderl/84697547fe8009db7964baa4eceb876fd78512a0/src/dderl_resource.erl | erlang | @doc POST ajax handler.
delete session cookie
first/continue
Reply templates
Status is fin or nofin | -module(dderl_resource).
-author('Bikram Chatterjee <>').
-behaviour(cowboy_loop).
-include("dderl.hrl").
-include("dderl_request.hrl").
-export([init/2]).
-export([info/3]).
-export([terminate/3]).
-export([samlRelayStateHandle/2, conn_info/1]).
-record(state, {sessionToken}).
init(Req0, []) ->
Req = ?COW_R... |
fead5ad8fb0751af6aa36c7fe1c88b4b592b56c6acacfaa7ec35305901bd442f | mbj/stratosphere | BucketPolicy.hs | module Stratosphere.S3Outposts.BucketPolicy (
BucketPolicy(..), mkBucketPolicy
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BucketPolicy
= BucketPolicy {bucket... | null | https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/s3outposts/gen/Stratosphere/S3Outposts/BucketPolicy.hs | haskell | module Stratosphere.S3Outposts.BucketPolicy (
BucketPolicy(..), mkBucketPolicy
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BucketPolicy
= BucketPolicy {bucket... | |
263f6f099b4941908fae5bb0762a35c5e3d2246220e4733f9518482ae3c55de4 | ghcjs/ghcjs | t4267.hs | data Tree a = Leaf | Node a !(Tree a) !(Tree a)
This should produce a walker with unboxed integers .
Bad :
Rec {
go_r1us
: : . Int - > Main . . Int - > GHC.Types . Int
[ GblId , Arity=2 , Caf = NoCafRefs , Str = DmdType SS ]
go_r1us =
\ ( z_aeS : : . Int ) ( ds_dmD : : Main . . Int ) - >
... | null | https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/perf/t4267.hs | haskell | Strict, pre-order fold. | data Tree a = Leaf | Node a !(Tree a) !(Tree a)
This should produce a walker with unboxed integers .
Bad :
Rec {
go_r1us
: : . Int - > Main . . Int - > GHC.Types . Int
[ GblId , Arity=2 , Caf = NoCafRefs , Str = DmdType SS ]
go_r1us =
\ ( z_aeS : : . Int ) ( ds_dmD : : Main . . Int ) - >
... |
bc4fed7de6463866a531c175e723775c60c207ca34ddec35302fe8c82275bba6 | moonpolysoft/dynomite | dynomite_sup.erl | %%%-------------------------------------------------------------------
%%% File: dynomite_sup.erl
@author < > [ ]
2008
%%% @doc
%%%
%%% @end
%%%
@since 2008 - 06 - 27 by
%%%-------------------------------------------------------------------
-module(dynomite_sup).
-author('').
-behaviour(supervis... | null | https://raw.githubusercontent.com/moonpolysoft/dynomite/a5618dcbe17b16cefdc9c567f27a1f4445aee005/elibs/dynomite_sup.erl | erlang | -------------------------------------------------------------------
File: dynomite_sup.erl
@doc
@end
-------------------------------------------------------------------
API
Supervisor callbacks
====================================================================
API functions
==============================... | @author < > [ ]
2008
@since 2008 - 06 - 27 by
-module(dynomite_sup).
-author('').
-behaviour(supervisor).
-export([start_link/1]).
-export([init/1]).
-include("../include/config.hrl").
-define(SERVER, ?MODULE).
( ) - > { ok , Pid } | ignore | { error , Error }
start_link(ConfigFile) ->
s... |
868f25ab3d902a8ec0712f16140a2fd1c7a71f01053a527e73e1a12e06bdf3cb | juspay/atlas | Status.hs | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | null | https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/public-transport-bap/src/Core/ACL/Status.hs | haskell | |
Copyright 2022 Juspay Technologies Pvt Ltd
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing , software
dis... | |
de31ada67c62fd1dab2ff7ac5b381fe8920a53dae93010b51685cd301f05b7fe | input-output-hk/ouroboros-network | Version.hs |
module Ouroboros.Consensus.Ledger.Query.Version (
QueryVersion (..)
, nodeToClientVersionToQueryVersion
) where
import Ouroboros.Network.NodeToClient.Version
-- | Version of the `Query blk` type.
--
-- Multiple top level queries are now supported. The encoding now has
-- constructor tags for the di... | null | https://raw.githubusercontent.com/input-output-hk/ouroboros-network/162c2b426ca66047f92a7d073036c13a434bf026/ouroboros-consensus/src/Ouroboros/Consensus/Ledger/Query/Version.hs | haskell | | Version of the `Query blk` type.
Multiple top level queries are now supported. The encoding now has
constructor tags for the different top level queries for QueryVersion1 onwards.
Adds support for 'GetSystemStart'.
Adds support for 'GetChainBlockNo' and 'GetChainPoint'. |
module Ouroboros.Consensus.Ledger.Query.Version (
QueryVersion (..)
, nodeToClientVersionToQueryVersion
) where
import Ouroboros.Network.NodeToClient.Version
data QueryVersion
= QueryVersion1
| QueryVersion2
deriving (Eq, Ord, Enum, Bounded, Show)
| Get the @QueryVersion@ supported by thi... |
dcb8826a5743a08f481fc5c1806ce4f21b560dd61df1c8d3244acba80dc16323 | pfdietz/ansi-test | bit.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Sun Jan 26 13:22:59 2003
;;;; Contains: Tests for accessor BIT
(deftest bit.1
(bit #*0010 2)
1)
(deftest bit.2
(let ((a #*00000000))
(loop for i from 0 below (length a)
collect (let ((b (copy-seq a)))
(setf (bit b i) 1)
... | null | https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/arrays/bit.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests for accessor BIT
Check that the fill pointer is ignored
Check that adjustability is not relevant
Order of evaluation tests | Author :
Created : Sun Jan 26 13:22:59 2003
(deftest bit.1
(bit #*0010 2)
1)
(deftest bit.2
(let ((a #*00000000))
(loop for i from 0 below (length a)
collect (let ((b (copy-seq a)))
(setf (bit b i) 1)
b)))
(#*10000000
#*01000000
#*001000... |
5f7c2c71ab44c11dd5931684d35ce96fb495c62cf52697915f47bdde1c8fc06f | Kalimehtar/gtk-cffi | buildable.lisp | ;;;
;;; buildable.lisp -- GtkBuildable
;;;
Copyright ( C ) 2012 , < >
;;;
(in-package :gtk-cffi)
(defclass buildable (object)
())
(defslot buildable name :string) | null | https://raw.githubusercontent.com/Kalimehtar/gtk-cffi/fbd8a40a2bbda29f81b1a95ed2530debfe2afe9b/gtk/buildable.lisp | lisp |
buildable.lisp -- GtkBuildable
| Copyright ( C ) 2012 , < >
(in-package :gtk-cffi)
(defclass buildable (object)
())
(defslot buildable name :string) |
b3bc9510439d23a25842da483323311287630265a71cfdbd792d9978c58c1ae8 | CryptoKami/cryptokami-core | Context.hs | | Whole in - memory state of UpdateSystem .
module Pos.Update.Context
( UpdateContext(..)
, mkUpdateContext
) where
import Universum
import Pos.Core (HasConfiguration)
import Pos.DB.Class (MonadDBRead)
import Pos.Slotting (MonadSlots)
import Po... | null | https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/update/Pos/Update/Context.hs | haskell | | A semaphore which is unlocked when update data is downloaded and
ready to apply.
| In-memory state of update-system-as-block-component. | | Whole in - memory state of UpdateSystem .
module Pos.Update.Context
( UpdateContext(..)
, mkUpdateContext
) where
import Universum
import Pos.Core (HasConfiguration)
import Pos.DB.Class (MonadDBRead)
import Pos.Slotting (MonadSlots)
import Po... |
aee5adc9692a6a223f23f02840a8c359d146af33f06f742a669aa77493aef93a | mediocregopher/chdl | function.clj | (ns chdl.beta.function
"The VHDL function emmitter"
(:require
[chdl.beta.comp :refer [do-statements]]
[chdl.beta.contracts :as contracts]
[chdl.alpha.literal :as lit]
[chdl.alpha.expr :as expr]
[chdl.alpha.proto :as p]))
(defn function
"Takes in a fun... | null | https://raw.githubusercontent.com/mediocregopher/chdl/b48b33e9215a84fbcdfa3f15446efc092c86d079/src/chdl/beta/function.clj | clojure | Check to make sure that the function is given at least a name and body | (ns chdl.beta.function
"The VHDL function emmitter"
(:require
[chdl.beta.comp :refer [do-statements]]
[chdl.beta.contracts :as contracts]
[chdl.alpha.literal :as lit]
[chdl.alpha.expr :as expr]
[chdl.alpha.proto :as p]))
(defn function
"Takes in a fun... |
8fe0ccaffd2da1cf6e052bfc93f7a55bf34d05b4676de9f345bd1a9ee882f308 | nklein/draw | state.lisp | (in-package #:draw-backend)
(defgeneric %with-saved-state (renderer thunk)
(:method :around ((renderer renderer) thunk)
(push-start-of-path renderer)
(push-location renderer)
(push-text-location renderer)
(unwind-protect
(call-next-method renderer thunk)
... | null | https://raw.githubusercontent.com/nklein/draw/2b7a51fa06c81a46dffc439a35b3b0ac18c94893/src/base/backend/state.lisp | lisp | (in-package #:draw-backend)
(defgeneric %with-saved-state (renderer thunk)
(:method :around ((renderer renderer) thunk)
(push-start-of-path renderer)
(push-location renderer)
(push-text-location renderer)
(unwind-protect
(call-next-method renderer thunk)
... | |
dcfb52c7464b138ca795894e8feb8490138b6defd036428f5422b0327e5c1154 | bakul/s9fes | ndf.scm | Scheme 9 from Empty Space , Function Library
By , 2015
; Placed in the Public Domain
;
; (ndf real) ==> real
; (ndf* real) ==> real
;
; (load-from-library "ndf.scm")
;
; Compute the probability density at the given standard deviation
; (normal distribution function). Assuming a standard normal
; distributio... | null | https://raw.githubusercontent.com/bakul/s9fes/74c14c0db5f07f5bc6d94131e9e4ee15a29275aa/lib/ndf.scm | scheme | Placed in the Public Domain
(ndf real) ==> real
(ndf* real) ==> real
(load-from-library "ndf.scm")
Compute the probability density at the given standard deviation
(normal distribution function). Assuming a standard normal
distribution.
| Scheme 9 from Empty Space , Function Library
By , 2015
( Example :) ( ndf 0 ) = = > 0.4
(define (ndf x)
(* (/ (sqrt (* 2 pi)))
(expt 2.71828182845904523536028747135266249775724709369995
(/ (- (* x x)) 2))))
(define (ndf* x mu sigma)
(* (/ (* sigma (sqrt (* 2 pi))))
(expt 2.718... |
236d5fe7348f484759520f027c214ca39b9214e2640c89e45cf8dc39b61feac1 | ndmitchell/bake | Store.hs | # LANGUAGE RecordWildCards , ScopedTypeVariables , TupleSections , TypeOperators , ViewPatterns , Arrows , CPP #
-- Stuff on disk on the server
module Development.Bake.Server.Store(
Store, newStore, storeSave, storeSQL,
PatchInfo(..), paAlive, storeIsPatch, storePatch, storeAlive,
PointInfo(..), poTest, st... | null | https://raw.githubusercontent.com/ndmitchell/bake/967de648990e06fa1eb9a8fd629fcf155be5891f/src/Development/Bake/Server/Store.hs | haskell | Stuff on disk on the server
-------------------------------------------------------------------
DATA TYPES
may be in both pass and fail
It's not applicable, and thus passes
-------------------------------------------------------------------
CACHED INFORMATION
-------------------------------------------------------... | # LANGUAGE RecordWildCards , ScopedTypeVariables , TupleSections , TypeOperators , ViewPatterns , Arrows , CPP #
module Development.Bake.Server.Store(
Store, newStore, storeSave, storeSQL,
PatchInfo(..), paAlive, storeIsPatch, storePatch, storeAlive,
PointInfo(..), poTest, storePoint, storeSupersetPass,
... |
d46c8e7c4882824ed91510d566d02fe7647a06121d8e4060e7d079a13c1b1ab7 | khotyn/4clojure-answer | 103-generating-k-combinations.clj | (fn [k s]
(set (filter #(= k (count %)) (reduce #(concat %1 (map (fn [i] (set (conj i %2))) %1)) #{#{}} s)))) | null | https://raw.githubusercontent.com/khotyn/4clojure-answer/3de82d732faedceafac4f1585a72d0712fe5d3c6/103-generating-k-combinations.clj | clojure | (fn [k s]
(set (filter #(= k (count %)) (reduce #(concat %1 (map (fn [i] (set (conj i %2))) %1)) #{#{}} s)))) | |
6aee419a94ed0ca25a2b81b723ed2c76ca25b3e72b1bf91d8510add9e944325a | kellymclaughlin/rebar3-tidy-deps-plugin | rebar_tidy_deps.erl | -module(rebar_tidy_deps).
-export([init/1]).
%% ===================================================================
%% Public API
%% ===================================================================
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.
init(State) ->
{ok, rebar_state:add_resource(State, {githu... | null | https://raw.githubusercontent.com/kellymclaughlin/rebar3-tidy-deps-plugin/ddf67b93ed07290d5cf1d4ed5555689ee6ff008b/src/rebar_tidy_deps.erl | erlang | ===================================================================
Public API
=================================================================== | -module(rebar_tidy_deps).
-export([init/1]).
-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.
init(State) ->
{ok, rebar_state:add_resource(State, {github, rebar_github_resource})}.
|
3ebe68aa2f5d09da1116154074984688a428baefdef0dec58becb9727be4eb9b | ocaml-flambda/ocaml-jst | deep.ml | (* TEST
* expect
*)
module M : sig
val x : bool * int
end = struct
let x = false , "not an int"
end
[%%expect{|
Lines 3-5, characters 6-3:
3 | ......struct
4 | let x = false , "not an int"
5 | end
Error: Signature mismatch:
Modules do not match:
sig val x : bool * string end
is not incl... | null | https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/testsuite/tests/typing-misc/deep.ml | ocaml | TEST
* expect
Alpha-equivalence |
module M : sig
val x : bool * int
end = struct
let x = false , "not an int"
end
[%%expect{|
Lines 3-5, characters 6-3:
3 | ......struct
4 | let x = false , "not an int"
5 | end
Error: Signature mismatch:
Modules do not match:
sig val x : bool * string end
is not included in
sig va... |
4d1baec5e1c12c14ba899afb2116a4bc7d3a40c71d12ee723d0843b4416f1bdf | thheller/shadow-cljs | env.cljs | (ns shadow.test.env
(:require-macros [shadow.test.env]))
(goog-define UI-DRIVEN false)
;; this should be how cljs.test works out of the box IMHO
;; all those macros don't compose and make writing testing utilities painful
;; (eg. you have to recompile the namespace containing the macro to pick up new tests)
;; only... | null | https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/main/shadow/test/env.cljs | clojure | this should be how cljs.test works out of the box IMHO
all those macros don't compose and make writing testing utilities painful
(eg. you have to recompile the namespace containing the macro to pick up new tests)
only the macros were replaced, the functionality remains unchanged | (ns shadow.test.env
(:require-macros [shadow.test.env]))
(goog-define UI-DRIVEN false)
(defonce tests-ref (atom {:namespaces {}}))
(defn reset-test-data! [test-data]
(swap! tests-ref assoc :namespaces test-data))
(defn get-tests []
(get @tests-ref :namespaces))
(defn get-test-vars []
(for [[ns ns-info] (ge... |
4debb1c0228733976214f51b735fdcce364482eeb25ed6a6864e25e884ca7344 | ocsigen/macaque | base.ml | (* This is an example of table description
An associated sql base description with some toy data is given in
base.sql
*)
let recette = <:table< recette (
id integer NOT NULL,
nom text
) >>
let ingredient = <:table< ingredient (
id integer NOT NULL,
nom text
) >>
let liste = <:table< liste (
re... | null | https://raw.githubusercontent.com/ocsigen/macaque/a92e91c7ed443086551d909c3cfad22c71144f54/src/base.ml | ocaml | This is an example of table description
An associated sql base description with some toy data is given in
base.sql
|
let recette = <:table< recette (
id integer NOT NULL,
nom text
) >>
let ingredient = <:table< ingredient (
id integer NOT NULL,
nom text
) >>
let liste = <:table< liste (
recette integer,
ingredient integer
) >>
let test1 = <:table< test1 ( text text ) >>
let test2 = <:table< test2 ( text text ) >>
|
7c03602ee95a9bca57ba22d0c3cbbd443990109fb3c9c930c670cd3907402832 | S8A/htdp-exercises | ex140.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-beginner-reader.ss" "lang")((modname ex140) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt... | null | https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex140.rkt | racket | about the language level of this file in a form that our tools can easily process.
A List-of-booleans is one of:
- '()
- (cons Boolean List-of-booleans)
List-of-booleans -> Boolean
determines whether all the elements of the list are #true
List-of-booleans -> Boolean | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname ex140) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t ... |
75503a6219184bd2c6b28ceb9bf790c0b0c9e4e1647c22229b4e6123bca6751d | elastic/eui-cljs | icon_index_close.cljs | (ns eui.icon-index-close
(:require ["@elastic/eui/lib/components/icon/assets/index_close.js" :as eui]))
(def indexClose eui/icon)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_index_close.cljs | clojure | (ns eui.icon-index-close
(:require ["@elastic/eui/lib/components/icon/assets/index_close.js" :as eui]))
(def indexClose eui/icon)
| |
9311d2af8eec6a039a67743c9723b15af90abe730d00c12622fa0dc354ee6e05 | metanivek/irmin-ipfs | ipns.mli | module Key : sig
type t
val hash : t -> string
val name : t -> string
end
val create : string -> Key.t
(** [create name] creates a key named [name] *)
val resolve : Key.t -> Ipfs.hash option
* [ resolve key ] resolves [ key ] to its IPFS hash
val publish : Key.t -> Ipfs.hash -> unit
* [ publish key hash ] upd... | null | https://raw.githubusercontent.com/metanivek/irmin-ipfs/80c8704f1cefa1cc304b416e122f9453764c8064/src/ipns.mli | ocaml | * [create name] creates a key named [name]
* [lookup name] looks up a local key with the give name. | module Key : sig
type t
val hash : t -> string
val name : t -> string
end
val create : string -> Key.t
val resolve : Key.t -> Ipfs.hash option
* [ resolve key ] resolves [ key ] to its IPFS hash
val publish : Key.t -> Ipfs.hash -> unit
* [ publish key hash ] updates IPNS to point [ key ] to [ hash ]
val look... |
d37b3882c14af550f016fd4581b24d27e8948d95ee00d8e58038ae40344f9a1b | digital-asset/ghc | WerrorFail.hs | {-# OPTIONS_GHC -Wmissing-signatures -Werror=incomplete-patterns #-}
module WerrorFail where
-- this should generate incomplete-patterns warning
foo :: Maybe a -> ()
foo Nothing = ()
| null | https://raw.githubusercontent.com/digital-asset/ghc/323dc6fcb127f77c08423873efc0a088c071440a/testsuite/tests/warnings/should_fail/WerrorFail.hs | haskell | # OPTIONS_GHC -Wmissing-signatures -Werror=incomplete-patterns #
this should generate incomplete-patterns warning | module WerrorFail where
foo :: Maybe a -> ()
foo Nothing = ()
|
888b9d60c96ad7c0448820b89c237682224512a2778cb617f45aa512b5adff96 | frictionlessdata/tableschema-clj | string.clj | (ns tableschema-clj.types.string
(:require [clojure.spec.alpha :as s])
(:import
(java.util Base64)
(org.apache.commons.validator UrlValidator)
(org.apache.commons.validator.routines EmailValidator)))
(defn valid-url? [url-str]
(let [validator (UrlValidator.)]
(.isValid validator url-str)))
(defn va... | null | https://raw.githubusercontent.com/frictionlessdata/tableschema-clj/c907da7eabe752eb47a0b18064c0de23937474d1/src/tableschema_clj/types/string.clj | clojure | (ns tableschema-clj.types.string
(:require [clojure.spec.alpha :as s])
(:import
(java.util Base64)
(org.apache.commons.validator UrlValidator)
(org.apache.commons.validator.routines EmailValidator)))
(defn valid-url? [url-str]
(let [validator (UrlValidator.)]
(.isValid validator url-str)))
(defn va... | |
80d5955e62cc37a66f82c7b2138062389689cddb4d2f524eb1434418407f51d7 | usocket/usocket | ecl.lisp | ;;;; -*- Mode: Lisp -*-
Foreign functions defined by ECL 's DFFI , used for # + ecl - bytecmp only .
;;;; See LICENSE for licensing information.
(in-package :usocket)
#+(and ecl-bytecmp windows)
(eval-when (:load-toplevel :execute)
(ffi:load-foreign-library "ws2_32.dll" :module "ws2_32"))
#+(and ecl-bytecmp win... | null | https://raw.githubusercontent.com/usocket/usocket/0e2c23192a74bd654b43528f41b62ee69a06b821/backend/ecl.lisp | lisp | -*- Mode: Lisp -*-
See LICENSE for licensing information.
#+(and ecl-bytecmp windows) |
Foreign functions defined by ECL 's DFFI , used for # + ecl - bytecmp only .
(in-package :usocket)
#+(and ecl-bytecmp windows)
(eval-when (:load-toplevel :execute)
(ffi:load-foreign-library "ws2_32.dll" :module "ws2_32"))
#+(and ecl-bytecmp windows)
(progn
(ffi:def-function ("gethostname" c-gethostname)
(... |
c7c184cd20190e47dfdd931a14388dadb8f5029876c2d337409d2d0fbfd995cd | yesodweb/wai | ResponseHeaderSpec.hs | {-# LANGUAGE OverloadedStrings #-}
module ResponseHeaderSpec (main, spec) where
import Data.ByteString
import qualified Network.HTTP.Types as H
import Network.Wai.Handler.Warp.ResponseHeader
import Network.Wai.Handler.Warp.Response
import Network.Wai.Handler.Warp.Header
import Test.Hspec
main :: IO ()
main = hspec s... | null | https://raw.githubusercontent.com/yesodweb/wai/f59e577f865d017b4726826ac5586bb916cf315b/warp/test/ResponseHeaderSpec.hs | haskell | # LANGUAGE OverloadedStrings # |
module ResponseHeaderSpec (main, spec) where
import Data.ByteString
import qualified Network.HTTP.Types as H
import Network.Wai.Handler.Warp.ResponseHeader
import Network.Wai.Handler.Warp.Response
import Network.Wai.Handler.Warp.Header
import Test.Hspec
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
des... |
9b38ad98bc42a9c25b1e611c59dc471faf2eef21b579a4b6ca8f6660df7f09e7 | michalkonecny/aern2 | Helpers.hs | # LANGUAGE CPP #
-- #define DEBUG
|
Module : AERN2.WithGlobalParam . Helpers
Description : helper functions for operations
Copyright : ( c ) : :
Stability : experimental
Portability : portable
Helper functions for defining operations over Wit... | null | https://raw.githubusercontent.com/michalkonecny/aern2/7ab41113ca8f73dca70d887d190ddab3b43ef084/aern2-net/src/AERN2/WithGlobalParam/Helpers.hs | haskell | #define DEBUG
generic implementations of operations of different arity | # LANGUAGE CPP #
|
Module : AERN2.WithGlobalParam . Helpers
Description : helper functions for operations
Copyright : ( c ) : :
Stability : experimental
Portability : portable
Helper functions for defining operations over WithGlobalParam obje... |
d825cdffcba6bf5497a5da205cdae92160bd648791a5b75721759e820635f51d | wdebeaum/DeepSemLex | though.lisp | ;;;;
;;;; W::THOUGH
;;;;
(define-words
:pos W::adv :templ DISC-PRE-TEMPL
:tags (:base500)
:words (
Start added list of sentenial connectives
(W::THOUGH
(SENSES
((LF-PARENT ONT::Qualification )
(TEMPL binary-constraint-s-decl-templ)
(meta-data :origin beetle2 :entry-date 20070609 :change-dat... | null | https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/though.lisp | lisp |
W::THOUGH
|
(define-words
:pos W::adv :templ DISC-PRE-TEMPL
:tags (:base500)
:words (
Start added list of sentenial connectives
(W::THOUGH
(SENSES
((LF-PARENT ONT::Qualification )
(TEMPL binary-constraint-s-decl-templ)
(meta-data :origin beetle2 :entry-date 20070609 :change-date nil :comments sententia... |
0693d7ca1d57a3f03d53925cfd7301638a078a9f82b3c8fbb07a177a69691567 | anoma/juvix-circuits | package.lisp | (defpackage #:alu.reference
(:documentation "Provides a mutable reference, that allows pass by
reference semantics in CL.")
(:use #:cl)
(:export :ref :ref-p :!))
| null | https://raw.githubusercontent.com/anoma/juvix-circuits/51f8ea2db5b1200c400ff1bc6d5f51249afc0073/src/reference/package.lisp | lisp | (defpackage #:alu.reference
(:documentation "Provides a mutable reference, that allows pass by
reference semantics in CL.")
(:use #:cl)
(:export :ref :ref-p :!))
| |
4fc7aa2209a0705a4bada0618af1276250d0905c3cbff47a7cfd59438a4ff020 | spectrum-finance/cardano-dex-backend | Process.hs | module Spectrum.Executor.Backlog.Process
( Backlog(..)
, mkBacklog
) where
import Prelude hiding (drop)
import Control.Monad.IO.Class
( MonadIO )
import Control.Monad.Trans.Control
( MonadBaseControl )
import Control.Monad.Catch
( MonadThrow )
import qualified Streamly.Prelude as S
import Streamly.Prelude... | null | https://raw.githubusercontent.com/spectrum-finance/cardano-dex-backend/47528f6a43124ab4f6849521d61dbb3fad476c19/amm-executor/src/Spectrum/Executor/Backlog/Process.hs | haskell | module Spectrum.Executor.Backlog.Process
( Backlog(..)
, mkBacklog
) where
import Prelude hiding (drop)
import Control.Monad.IO.Class
( MonadIO )
import Control.Monad.Trans.Control
( MonadBaseControl )
import Control.Monad.Catch
( MonadThrow )
import qualified Streamly.Prelude as S
import Streamly.Prelude... | |
b0fe9f95679e779d8421a1f13e192d0f4cfeee991f814a21519d465840331247 | lambe-lang/compiler | main_test.ml | let () =
let open Alcotest in
run "checker"
[
Kind_subsume.test_cases
; Type_check.test_cases
; Type_reduce.test_cases
; Type_subsume.test_cases
; Expr_check.test_cases
]
| null | https://raw.githubusercontent.com/lambe-lang/compiler/79d7937c06ca30e231855ec4ce99012ca0395cd5/test/checker/main_test.ml | ocaml | let () =
let open Alcotest in
run "checker"
[
Kind_subsume.test_cases
; Type_check.test_cases
; Type_reduce.test_cases
; Type_subsume.test_cases
; Expr_check.test_cases
]
| |
d4da0e76ce768f1b983743e0322fc8b42d056d83a73df6920a61ba3d83e0fad1 | Bogdanp/racket-wasm | opcase.rkt | #lang racket/base
(require (for-syntax racket/base
"core.rkt")
syntax/parse/define)
(provide opcase)
(define-for-syntax ns
(current-namespace))
(define-syntax-parser opcase
#:literals (else)
[(_ e:expr [opcode-id:id rhs ...] ... [else else-rhs ...])
#:with (opcode ...) (for/li... | null | https://raw.githubusercontent.com/Bogdanp/racket-wasm/c284f350a8618156c143342b2c9f5769f7349a8b/wasm-lib/private/opcase.rkt | racket | #lang racket/base
(require (for-syntax racket/base
"core.rkt")
syntax/parse/define)
(provide opcase)
(define-for-syntax ns
(current-namespace))
(define-syntax-parser opcase
#:literals (else)
[(_ e:expr [opcode-id:id rhs ...] ... [else else-rhs ...])
#:with (opcode ...) (for/li... | |
94ffcbb4d0b54d4136a7f4b75f264ab8ec1a00674a76a92a554961f20fe21946 | labra/Haws | Context.hs | module Haws.ShEx.Context where
import Haws.ShEx.RDFModel
import Haws.ShEx.Shape
import Haws.ShEx.Typing
data Context = Context {
graph :: RDFGraph ,
shEx :: ShEx,
typing :: Typing
}
| null | https://raw.githubusercontent.com/labra/Haws/2417adc37522994e2bbb8e9e397481a1f6f4f038/src/Haws/ShEx/Context.hs | haskell | module Haws.ShEx.Context where
import Haws.ShEx.RDFModel
import Haws.ShEx.Shape
import Haws.ShEx.Typing
data Context = Context {
graph :: RDFGraph ,
shEx :: ShEx,
typing :: Typing
}
| |
98d21beb9b22f9d2260ba6dc03b83b8cd836971fa0434c459cc9c06719cf0999 | GavinMendelGleason/Cocktail | Backup.Instance.hs | module Instance where
import Lang
import Utils
import Eval
--import Exceptions
import Data.Maybe
--import Pretty
import Data.List
type_instance :: Type -> Type -> Int -> [(Int,Type)] -> Maybe [(Int,Type)]
type_instance (TV i) (TV j) d env = if i == j
then return env
... | null | https://raw.githubusercontent.com/GavinMendelGleason/Cocktail/5828a3269d8f59b3af549f1a6998f32bf7d15b65/Backup.Instance.hs | haskell | import Exceptions
import Pretty
>- | module Instance where
import Lang
import Utils
import Eval
import Data.Maybe
import Data.List
type_instance :: Type -> Type -> Int -> [(Int,Type)] -> Maybe [(Int,Type)]
type_instance (TV i) (TV j) d env = if i == j
then return env
else Nothi... |
f9f3246f41c70f4ed83fc29cac2edda26be30d5aa0fc7308ed0e40092587bbe6 | lilactown/helix-spec-alpha | user.cljs | (ns user
(:require
["react-dom/client" :as rdom]
[cljs.pprint :refer [pprint]]
[clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as stest]
[helix.core :refer [defnc defcomponent $]]
[helix.dom :as d]
[helix.spec.alpha :as h.s]))
(def root (rdom/createRoot (js/document.getElementById "app")))... | null | https://raw.githubusercontent.com/lilactown/helix-spec-alpha/527bf17b10e7da4fc91cb7ebd79abd97ce04d6cb/dev/user.cljs | clojure | bad props | (ns user
(:require
["react-dom/client" :as rdom]
[cljs.pprint :refer [pprint]]
[clojure.spec.alpha :as s]
[clojure.spec.test.alpha :as stest]
[helix.core :refer [defnc defcomponent $]]
[helix.dom :as d]
[helix.spec.alpha :as h.s]))
(def root (rdom/createRoot (js/document.getElementById "app")))... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.