_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
547a66d09755f0f02dde82908ea7cdbc0f76fb0955796377e12e342c998c2c01
tonyfloatersu/solution-haskell-craft-of-FP
Queues3.hs
------------------------------------------------------------------------- -- -- Queues3.hs -- An abstract data type of queues , implemnted as two lists , with new elements added at the beginning of the second list . -- ( c ) Addison - Wes...
null
https://raw.githubusercontent.com/tonyfloatersu/solution-haskell-craft-of-FP/0d4090ef28417c82a7b01e4a764f657641cb83f3/Chapter16/Queues3.hs
haskell
----------------------------------------------------------------------- Queues3.hs ----------------------------------------------------------------------- Queue a Queue a -> Bool a -> Queue a -> Queue a Queue a -> ( a , Queue a )
An abstract data type of queues , implemnted as two lists , with new elements added at the beginning of the second list . ( c ) Addison - Wesley , 1996 - 2011 . module Queues3 ( Queue , ) where data Queue a = Queue [a] [a] emptyQ :: Queue a emptyQ = Que...
4e5abea50a9b5b2edf207ecafe9abdbfc16507e026138305e68a1ac034abab7b
snapframework/snap
Snaplet.hs
# LANGUAGE BangPatterns # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TypeOperators #-} | Snaplets allow you to ...
null
https://raw.githubusercontent.com/snapframework/snap/d63110d7b2776ccba0336a69438c84f106f60567/src/Snap/Snaplet.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE TypeOperators # $snapletDoc * Lenses $lenses * Snaplet Helper Functions $snapletHelpers $monadSnaplet $snapletState , wrap , wrapTop * Initializer $initializer * Routes $routes * Handlers * Serving Applications $snapletDoc The heart of t...
# LANGUAGE BangPatterns # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # | Snaplets allow you to build web applications out of composable parts . This allows you to build self - conta...
e875d2343e3491cd4bac076291a35333d21fc61524f1f925808bf32a360390b6
idontgetoutmuch/Kalman
Spec.hs
# LANGUAGE DataKinds # # LANGUAGE ParallelListComp # # LANGUAGE TupleSections # module Main where import Data.Random import Data.Random.Distribution.MultiNormal import Numeric.Kalman import Control.Monad (replicateM) import import Graphics.Rendering.Chart.Easy import Graphics.Rendering.Chart.Backend.Cair...
null
https://raw.githubusercontent.com/idontgetoutmuch/Kalman/619d57e980d53c43bb1675efb17c73127fa924d0/test/Spec.hs
haskell
main = putStrLn "Test suite not yet implemented" main = runUKFTest1 main = runNoisySine1 main = runGSTest1 ------------------------- - Gaussian sum filter --- ------------------------- ,opaque hotpink , opaque blue ,opaque hotpink , opaque blue ,opaque hotpink , opaque blue ,opaque hotpink ,opaque hotpink , opaque blue...
# LANGUAGE DataKinds # # LANGUAGE ParallelListComp # # LANGUAGE TupleSections # module Main where import Data.Random import Data.Random.Distribution.MultiNormal import Numeric.Kalman import Control.Monad (replicateM) import import Graphics.Rendering.Chart.Easy import Graphics.Rendering.Chart.Backend.Cair...
63cb8dffbab8bd8dedcdc82fa143fd6d40bd55bf7c0da4afc376412c32ee5ade
ocaml-sf/learn-ocaml-corpus
template.ml
let rotate a = let n = Array.length a in let v = a.(0) in for i = 0 to n-2 do a.(i) <- a.(i+1) done; a.(n-1)<-v ;; let rotate_by a n = "Replace this string with your implementation." ;;
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/mooc/week5/seq4/ex1/template.ml
ocaml
let rotate a = let n = Array.length a in let v = a.(0) in for i = 0 to n-2 do a.(i) <- a.(i+1) done; a.(n-1)<-v ;; let rotate_by a n = "Replace this string with your implementation." ;;
b24f446ec9ebe32bc4962292dd68abc8e45265356fc158a5d75a2f6bd2a65b01
ayamada/copy-of-svn.tir.jp
form.scm
;;; coding: euc-jp ;;; -*- scheme -*- ;;; vim:set ft=scheme ts=8 sts=2 sw=2 et: $ Id$ ;;; 目的: ;;; - htmlフォーム出力、パラメータのサニタイズ、 ;;; (spaceのトリミングや半角全角等の)変換、verify、 ;;; 入力値のエラー表示、プレビュー表示、(文字列から数値等への)型変換、 ;;; (input hiddenによる)CGIパラメータの保持。 、 ;;; 通常、あちこちにバラバラに実装される事になる。 ;;; これらを何とかして一箇所にまとめたい。 ;;; 仕様: ;;...
null
https://raw.githubusercontent.com/ayamada/copy-of-svn.tir.jp/101cd00d595ee7bb96348df54f49707295e9e263/Gauche-tir/branches/Gauche-tir03/0.0.4/lib/tir03/cgi/form.scm
scheme
coding: euc-jp -*- scheme -*- vim:set ft=scheme ts=8 sts=2 sw=2 et: 目的: - htmlフォーム出力、パラメータのサニタイズ、 (spaceのトリミングや半角全角等の)変換、verify、 入力値のエラー表示、プレビュー表示、(文字列から数値等への)型変換、 (input hiddenによる)CGIパラメータの保持。 通常、あちこちにバラバラに実装される事になる。 これらを何とかして一箇所にまとめたい。 仕様: - text.html-liteを拡張したミニ言語(?)を実装する必要がある。 ...
$ Id$ 、 -- ( html : input : type " text " : name " " : value " hoge " (define-module tir03.cgi.form (use gauche.parameter) (export <cgi-form> ToDo : ↑邪魔なデータを除外する手段を提供する必要がある )) (select-module tir03.cgi.form) (define-class <cgi-form> () ( (template-html :accessor templat...
7860e1ffe790dbfc2fcaef1a1447519fc4fe6ebac6704a932fb3abd2b803e5c0
Helium4Haskell/helium
PositionInsertedBrace.hs
x = y = 3
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/test/parser/PositionInsertedBrace.hs
haskell
x = y = 3
6dc61cdd7597e9d02b809bd6b37a596d0da65431cc2e4d50dafd0560e2f91c9b
garrigue/labltk
pplex.mli
(***********************************************************************) (* *) MLTk , Tcl / Tk interface of OCaml (* *) , , and ...
null
https://raw.githubusercontent.com/garrigue/labltk/c7f50b4faed57f1ac03cb3c9aedc35b10d36bdb6/compiler/pplex.mli
ocaml
********************************************************************* described in file LICENSE found in the...
MLTk , Tcl / Tk interface of OCaml , , and projet Cristal , INRIA Rocquencourt , Kyoto University RIMS Copyright 2002 Institut National de Recherche en Informatique et en Automatique and...
8630860ffc24cae221b33655f263dcd5b82828e746b966959567eaef629651e3
ocaml-flambda/flambda-backend
machin.ml
type 'a ref = { mutable contents : 'a } external ref : 'a -> ('a ref[@local_opt]) = "%makemutable" external ( ! ) : ('a ref[@local_opt]) -> 'a = "%field0" external ( := ) : ('a ref[@local_opt]) -> 'a -> unit = "%setfield0" external incr : ( int ref[@local_opt ] ) - > unit = " % incr " * external : ( int ref[@l...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/92dbdba868235321a48916b8f1bb3f04ee884d3f/middle_end/flambda2/tests/ref_to_var/ref/machin.ml
ocaml
let f x = * let a = ref x in * incr a; * !a let f b x = * let a = ref x in * while b do * incr a; * done; * !a
type 'a ref = { mutable contents : 'a } external ref : 'a -> ('a ref[@local_opt]) = "%makemutable" external ( ! ) : ('a ref[@local_opt]) -> 'a = "%field0" external ( := ) : ('a ref[@local_opt]) -> 'a -> unit = "%setfield0" external incr : ( int ref[@local_opt ] ) - > unit = " % incr " * external : ( int ref[@l...
2b241865e9aa0455dc566f16d871cad560345304a55aef4f7d996106ac73f6c2
david-christiansen/pudding-old
pict-helpers.rkt
#lang racket (require pict pict/convert) (provide (all-defined-out) pict-convertible?) (define/contract (opaque pict) (-> pict? pict?) (cc-superimpose (filled-rectangle (pict-width pict) (pict-height pict) #:color "white" #:draw-border? #f) ...
null
https://raw.githubusercontent.com/david-christiansen/pudding-old/6b9ee633b551226df61d40191bafa14386fc86ad/gui/pict-helpers.rkt
racket
Highlights
#lang racket (require pict pict/convert) (provide (all-defined-out) pict-convertible?) (define/contract (opaque pict) (-> pict? pict?) (cc-superimpose (filled-rectangle (pict-width pict) (pict-height pict) #:color "white" #:draw-border? #f) ...
666d0cf42a0a4dc1d154e4d724267294a94a72dfa5babce5fb0c93154e58902f
FlowForwarding/lincx
gen_switch.erl
%%------------------------------------------------------------------------------ Copyright 2012 FlowForwarding.org %% 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 %%...
null
https://raw.githubusercontent.com/FlowForwarding/lincx/7795923b51fa1e680511669f4a27404b2ed1f1dc/apps/linc/src/gen_switch.erl
erlang
------------------------------------------------------------------------------ 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 CONDITIONS OF ANY KIND, eithe...
Copyright 2012 FlowForwarding.org Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author Erlang Solutions Ltd. < > 2012 FlowForwarding.org -module(gen_switch). -include_lib("of_protocol/include/of_protocol.hrl"). ...
2d4be11df9928c27de5229de335b3bdaf69f21e1c5743a8a9909471f2fff1e25
iskandr/ocaml_llvm
main.ml
open Printf open Dsl let f : Dsl.fn = { name = "f"; inputs=["k"]; body = Sum("i", Num 1.0, Var "k", Div(Num 1.0, Mult(Var "i", Var "i"))) } let f_ocaml k = let rec aux acc i = if i > k then acc else aux (acc +. (1.0 /. (i*.i))) (i +. 1.0) in aux 0.0 1.0 let g : Dsl.fn = { name = "g"; inputs...
null
https://raw.githubusercontent.com/iskandr/ocaml_llvm/04012d2060b0c22c4d1f32aa6166fca2bb449912/main.ml
ocaml
warm up the JIT
open Printf open Dsl let f : Dsl.fn = { name = "f"; inputs=["k"]; body = Sum("i", Num 1.0, Var "k", Div(Num 1.0, Mult(Var "i", Var "i"))) } let f_ocaml k = let rec aux acc i = if i > k then acc else aux (acc +. (1.0 /. (i*.i))) (i +. 1.0) in aux 0.0 1.0 let g : Dsl.fn = { name = "g"; inputs...
4b1156b3afe4d5a2c8c4238ea52f8bef2acd2c0797735631b497151d759210cd
metosin/reitit
server.clj
(ns example.server (:require [io.pedestal.http :as server] [reitit.ring :as ring] [reitit.http :as http] [reitit.coercion.spec] [reitit.swagger :as swagger] [reitit.swagger-ui :as swagger-ui] [reitit.http.coercion :as coercion] [reiti...
null
https://raw.githubusercontent.com/metosin/reitit/1ab075bd353966636f154ac36ae9b7990efeb008/examples/pedestal-swagger/src/example/server.clj
clojure
Uncomment to use [reitit.http.interceptors.dev :as dev] [spec-tools.spell :as spell] :reitit.interceptor/transform dev/print-context-diffs ;; pretty context diffs :validate spec/validate ;; enable spec validation for route data ; strict top - level validation swagger feature query-params & form-params content-ne...
(ns example.server (:require [io.pedestal.http :as server] [reitit.ring :as ring] [reitit.http :as http] [reitit.coercion.spec] [reitit.swagger :as swagger] [reitit.swagger-ui :as swagger-ui] [reitit.http.coercion :as coercion] [reiti...
0506253e9b4e57d6ec3437ab164a86ee48b5fd6188a077e1d1f77ee0a36fcc2d
takikawa/racket-ppa
type-alias-helper.rkt
#lang racket/base ;; This module provides helper functions for type aliases (require "../utils/utils.rkt" "../utils/tarjan.rkt" "../utils/tc-utils.rkt" "type-alias-env.rkt" "type-name-env.rkt" "../rep/type-rep.rkt" "../rep/type-constr.rkt" "tvar-env.rkt" ...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/typed-racket-lib/typed-racket/env/type-alias-helper.rkt
racket
This module provides helper functions for type aliases Data definitions for aliases Find strongly connected type aliases in order to find mutually recursive aliases Returns the components in topologically sorted order extract the identifiers out of the results since we don't need the whole vertex registe...
#lang racket/base (require "../utils/utils.rkt" "../utils/tarjan.rkt" "../utils/tc-utils.rkt" "type-alias-env.rkt" "type-name-env.rkt" "../rep/type-rep.rkt" "../rep/type-constr.rkt" "tvar-env.rkt" "type-constr-env.rkt" "../private/parse-...
5f5dbbf56af047e6b4872f93e58893303bb05d91ef498284cb9b67a293365788
Clozure/ccl
spell-aug.lisp
;;; -*- Log: hemlock.log; Package: Spell -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; #+CMU (ext:file-comment "$Header$") ;;; ;;; ******...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/cocoa-ide/hemlock/unused/archive/spell-aug.lisp
lisp
-*- Log: hemlock.log; Package: Spell -*- ********************************************************************** ********************************************************************** This file contains the code to grow the spelling dictionary in system space by reading a text file of entries or adding one at ...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . #+CMU (ext:file-comment "$Header$") Written by Designed by and code relies on implementation dependent code found in Spell - RT.Lisp . (in-package "SPELL") ...
5b8ddb601f2c440775b3fea1a7af4a933a1c28fd09617f101ac037b491020a78
coq/coq
envars.ml
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/07537426ad106c721e67d513c6db2e9047131e7b/lib/envars.ml
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
5ec85d649db607f49d7fcd9e9ce350537007f6053776a102b48378f530ebeed6
lindig/polly
polly.mli
* Module Polly provides access to the Linux epoll system call for monitoring a set of file descriptors for events that the client is interested in . Module Polly provides access to the Linux epoll system call for monitoring a set of file descriptors for events that the client is interested in. *) ...
null
https://raw.githubusercontent.com/lindig/polly/3356cba7840d6d4a323b38b7f2060ec52d88858d/lib/polly.mli
ocaml
* [create ()] returns an epoll(2) file descriptor which is passed * later to [wait], [add], [upd], and [del]. It must be passed to * [close] when no longer needed. * [close t] closes the file descriptor underlying [t] * a set of events * empty set The values below define singleton sets containing exactly one ...
* Module Polly provides access to the Linux epoll system call for monitoring a set of file descriptors for events that the client is interested in . Module Polly provides access to the Linux epoll system call for monitoring a set of file descriptors for events that the client is interested in. *) ...
7f404c6d32b60a4c1e43e404f9c2303e006cbbaa15e26acbcee46d950ef72628
shirok/Gauche
libsym.scm
;;; ;;; libsym.scm - built-in symbol and keyword procedures ;;; Copyright ( c ) 2000 - 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of source code must...
null
https://raw.githubusercontent.com/shirok/Gauche/b773899dbe0b2955e1c4f1daa066da874070c1e4/src/libsym.scm
scheme
libsym.scm - built-in symbol and keyword procedures Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and ...
Copyright ( c ) 2000 - 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (select-module gauche.internal) (inline-stub...
ca60ffe368a814439b786b2c89d40cf7b91ec387d14fe65a9872065670effa8b
verement/etamoo
Unparser.hs
{-# LANGUAGE OverloadedStrings #-} | Recovering MOO code from an abstract syntax tree for the @verb_code()@ -- built-in function module MOO.Unparser (unparse) where import Control.Applicative ((<$>)) import Control.Monad (unless, (<=<)) import Control.Monad.Reader (ReaderT, runReaderT, asks, local) import Control....
null
https://raw.githubusercontent.com/verement/etamoo/af65e2581ab5d093c9490f43692ef89bafc2efc1/src/MOO/Unparser.hs
haskell
# LANGUAGE OverloadedStrings # built-in function tree. If /fully-paren/ is true, all expressions are fully parenthesized, show the nesting structure of statements. newline characters. ^ /fully-paren/ ^ /indent/ avoid digits followed by dot (-> float) Left-associative operators Right-associative operators
| Recovering MOO code from an abstract syntax tree for the @verb_code()@ module MOO.Unparser (unparse) where import Control.Applicative ((<$>)) import Control.Monad (unless, (<=<)) import Control.Monad.Reader (ReaderT, runReaderT, asks, local) import Control.Monad.Writer (Writer, execWriter, tell) import Data.Char...
d5d4585c340cf5a88ae36872a22b5ae6c06afb0651a7847dd5a16edc4fb184f4
dgiot/dgiot
emqx_cm.erl
%%------------------------------------------------------------------- Copyright ( c ) 2017 - 2021 EMQ Technologies Co. , Ltd. All Rights Reserved . %% 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...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/src/emqx_cm.erl
erlang
------------------------------------------------------------------- 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 CONDITIONS OF ANY KIND, either express o...
Copyright ( c ) 2017 - 2021 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_cm). -behaviour(gen_server). -include("emqx.hrl"). -include("logger.hrl"). -inclu...
b282acd1725f93b456a5ec155329e7f0ddb525bbf9ea0b9708fcb4d4bbbbfffb
vladimir-g/zoglog
statistics.lisp
;;; Message statistics processing with in-memory cache (in-package #:zoglog) (defvar *message-stats* (make-hash-table :test #'equal #+sbcl :synchronized #+sbcl t)) (defvar *message-stats-lock* (bt:make-lock "stats")) (defmacro with-stats-lock (&body body) "Execute BODY with...
null
https://raw.githubusercontent.com/vladimir-g/zoglog/49cb16bd56900260bf27219afebcccca305f4863/statistics.lisp
lisp
Message statistics processing with in-memory cache
(in-package #:zoglog) (defvar *message-stats* (make-hash-table :test #'equal #+sbcl :synchronized #+sbcl t)) (defvar *message-stats-lock* (bt:make-lock "stats")) (defmacro with-stats-lock (&body body) "Execute BODY with lock on implementations where lock is required. CCL an...
df70d2fe4d47520ee991c7b57363c11d182e2b359917b84a9f25dd3a19dd5b87
brite-code/brite
UnifySpec.hs
{-# LANGUAGE OverloadedStrings #-} module Brite.Semantics.UnifySpec (spec) where import Brite.Diagnostic import qualified Brite.Semantics.AST as AST import Brite.Semantics.Check (checkPolytype) import Brite.Semantics.CheckMonad import qualified Brite.Semantics.Prefix as Prefix import qualified Brite.Semantics.Type as...
null
https://raw.githubusercontent.com/brite-code/brite/154d7fc93be050626af48051f71a446ec329f612/old/test/Brite/Semantics/UnifySpec.hs
haskell
# LANGUAGE OverloadedStrings # In the [MLF thesis][1] Section 4.3 the unification algorithm is described as: > unifies `t1` and `t2` under `Q`. So we write our tests like they are directly calling that unification algorithm so we can reason about our tests in theory. , "unify(<X: <A: !> {t: {t: A}}, Y: <A: <B> ...
module Brite.Semantics.UnifySpec (spec) where import Brite.Diagnostic import qualified Brite.Semantics.AST as AST import Brite.Semantics.Check (checkPolytype) import Brite.Semantics.CheckMonad import qualified Brite.Semantics.Prefix as Prefix import qualified Brite.Semantics.Type as Type import Brite.Semantics.TypePr...
1d256f90ea7784679f8732dead927a3937c3d8be9c085204865ad9999f8aaad9
kaoskorobase/mescaline
Player.hs
{-# LANGUAGE BangPatterns #-} module Mescaline.Pattern.Player ( Process , start , stop , send , setSlot , setTempo , events ) where import Control.Applicative ((<|>)) import Control.Concurrent.Async (Async) import qualified Control.Concurrent.Async as Async import Control....
null
https://raw.githubusercontent.com/kaoskorobase/mescaline/13554fc4826d0c977d0010c0b4fb74ba12ced6b9/lib/mescaline-patterns/src/Mescaline/Pattern/Player.hs
haskell
# LANGUAGE BangPatterns # registerDelayUntil c s = do print c print dt else newTVarIO True Get next input event Update clock Dispatch event
module Mescaline.Pattern.Player ( Process , start , stop , send , setSlot , setTempo , events ) where import Control.Applicative ((<|>)) import Control.Concurrent.Async (Async) import qualified Control.Concurrent.Async as Async import Control.Concurrent.STM import ...
e30e0136248e113dc5964e74ea11542dea1c9ed0caa8f2c6573e201bb88dadab
VisionsGlobalEmpowerment/webchange
views.cljs
(ns webchange.admin.pages.books.views (:require [re-frame.core :as re-frame] [webchange.admin.pages.books.state :as state] [webchange.admin.widgets.books-list.views :refer [books-list]] [webchange.admin.widgets.page.views :as page] [webchange.admin.widgets.search.views :refer [search]] [webcha...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/dc73f0a95fa4eeeb47c54f2fb8e41d0a5e4fd3ee/src/cljs/webchange/admin/pages/books/views.cljs
clojure
(ns webchange.admin.pages.books.views (:require [re-frame.core :as re-frame] [webchange.admin.pages.books.state :as state] [webchange.admin.widgets.books-list.views :refer [books-list]] [webchange.admin.widgets.page.views :as page] [webchange.admin.widgets.search.views :refer [search]] [webcha...
fc0de5bb7ab4b79ffed345f7e3a530730cb501332479e0529daa34653b5e7a5a
liebke/apogee
xml.cljs
(ns apogee.xml (:require [clojure.zip :as z])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; XML FUNCTIONS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (defn ^:export has-attrs? [tag] (map? (second tag))) (defn ^:export has-content? [tag] ...
null
https://raw.githubusercontent.com/liebke/apogee/b29e8d71142d666b4656a93da441973c31a28356/src/apogee/xml.cljs
clojure
XML FUNCTIONS FUNCTIONS FOR PARSING XML FILES (parse-xml-map (get-xml-map xml-string)))
(ns apogee.xml (:require [clojure.zip :as z])) (defn ^:export has-attrs? [tag] (map? (second tag))) (defn ^:export has-content? [tag] (if (has-attrs? tag) (> (count tag) 2) (> (count tag) 1))) (defn ^:export get-name [tag] (if-let [n (first tag)] (name n))) (defn ^:export get-attrs [tag] (if ...
09ba20c01eded67a4edd0eff41ba95502b726b8f9836585fe8378aba5605a4f2
fission-codes/fission
User.hs
module Fission.CLI.User (ensureNotLoggedIn) where import qualified Crypto.PubKey.Ed25519 as Ed25519 import qualified Data.Yaml as YAML import Servant.Client.Core import Fission.Prelude import Fission.Authorization.ServerDID import ...
null
https://raw.githubusercontent.com/fission-codes/fission/ae177407dccc20be67948a901956b99f40d37ac8/fission-cli/library/Fission/CLI/User.hs
haskell
module Fission.CLI.User (ensureNotLoggedIn) where import qualified Crypto.PubKey.Ed25519 as Ed25519 import qualified Data.Yaml as YAML import Servant.Client.Core import Fission.Prelude import Fission.Authorization.ServerDID import ...
2f4bda4f033320cb38408c495d8739ae795248b386c57fd7e1927f3aed4a4d38
dmjio/miso
Storage.hs
----------------------------------------------------------------------------- -- | -- Module : Miso.FFI.Storage Copyright : ( C ) 2016 - 2018 -- License : BSD3-style (see the file LICENSE) Maintainer : < > -- Stability : experimental -- Portability : non-portable ---------------------...
null
https://raw.githubusercontent.com/dmjio/miso/f38f28d86780b3f2137f16419ff9ec3e39e890af/src/Miso/FFI/Storage.hs
haskell
--------------------------------------------------------------------------- | Module : Miso.FFI.Storage License : BSD3-style (see the file LICENSE) Stability : experimental Portability : non-portable --------------------------------------------------------------------------
Copyright : ( C ) 2016 - 2018 Maintainer : < > module Miso.FFI.Storage ( Storage , localStorage , sessionStorage , getItem , removeItem , setItem , length , clear ) where import GHCJS.Types import Prelude hiding (length) import Language.Javascript.JSaddle ((!), (#), JSM, fromJSVa...
aeda51615b5ef5cede6f9f3b5113bc48135263961fb4d56a6932b139e6f0e5f7
MLstate/opalang
config.mli
Copyright © 2011 , 2012 MLstate This file is part of . Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to u...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/tools/build/config.mli
ocaml
* the installation library directory * the base directory of external ocaml libraries * the ocamlopt compiler to use * related ocamlbuild tool * are we compiling in release or debug mode ? In release mode, assertions and debug variables are disabled * the target OS type * the installation directory of externa...
Copyright © 2011 , 2012 MLstate This file is part of . Permission is hereby granted , free of charge , to any person obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without restriction , including without limitation the rights to u...
9f39c221c1081a830e8f6f89becc1ac896bbfe126b6cdf3bb732e7dd460e2ad6
TerrorJack/ghc-alter
GHCWrapper.hs
# LANGUAGE RecordWildCards # module Language.Haskell.GHC.Alter.GHCWrapper ( WrapperOptions(..) , wrapperMain ) where import Distribution.Simple.Compiler import Language.Haskell.GHC.Alter.BuildInfo import System.Environment import System.Process data WrapperOptions = WrapperOptions { pluginModule, pluginPacka...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/src/Language/Haskell/GHC/Alter/GHCWrapper.hs
haskell
# LANGUAGE RecordWildCards # module Language.Haskell.GHC.Alter.GHCWrapper ( WrapperOptions(..) , wrapperMain ) where import Distribution.Simple.Compiler import Language.Haskell.GHC.Alter.BuildInfo import System.Environment import System.Process data WrapperOptions = WrapperOptions { pluginModule, pluginPacka...
bf8b639f964e7087d63f00f7a6f8134cc7618038a2ea64826d5763bcf8961aa3
klarna/katt
katt_tests.erl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Copyright 2013 Klarna AB %%% 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 %%% %...
null
https://raw.githubusercontent.com/klarna/katt/5708aecf271a7f732430397e310bf487330942f6/test/katt_tests.erl
erlang
Copyright 2013 Klarna AB 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 CONDITIONS OF ANY KIND, either express or implied. See the License for the speci...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , 2013 Klarna AB KATT tests -module(katt_tests). -include_lib("eunit/include/eunit.hrl"). katt_test_() -> { setup , spawn , fun() -> meck:new(katt_blueprint_...
1f9dc04c28dd4e8b0abfe54274813d2ddc55c6286b0a3b2234e866dfe042d39c
Tener/deeplearning-thesis
experiment-cli.hs
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable #-} module Main where import System.Process import System.Environment import System.Exit import Control.Applicative import Control.Monad import Data.Maybe data Experiment = Experiment { mainPane :: FilePath , watchCommands :: [Command] ...
null
https://raw.githubusercontent.com/Tener/deeplearning-thesis/c56866bf6f48db3185b4b62348d292bf39a7a2af/src/experiment-cli.hs
haskell
# LANGUAGE OverloadedStrings, DeriveDataTypeable # detach = [";", "detach-client", "-s", (sessionName exp)]
module Main where import System.Process import System.Environment import System.Exit import Control.Applicative import Control.Monad import Data.Maybe data Experiment = Experiment { mainPane :: FilePath , watchCommands :: [Command] , extraCommands :: [String]...
1c37f21a40d752fefc6d214330365d992fb2f566069dec71cd7c8216a1ce01b3
facebook/infer
AbstractInterpreter.mli
* 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/facebook/infer/3199c49bb27f3cc823db10137f04f01a51025b3d/infer/src/absint/AbstractInterpreter.mli
ocaml
* type of an intraprocedural abstract interpreter * invariant map from node id -> state representing postcondition for node id * compute and return invariant map for the given procedure starting from [initial] * extract the postcondition for a node id from the given invariant map * extract the precondition for a no...
* 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 ...
0477b292f846ac1e22c04dc2c6259b28108424a4c3f2fa3136f6a82709831f1d
nextjournal/viewers
viewer.cljs
(ns nextjournal.viewer (:refer-clojure :exclude [meta with-meta vary-meta]) (:require [applied-science.js-interop :as j] [cljs.reader] [clojure.core :as core] [clojure.string :as str] [cognitect.transit :as transit] [goog.object] [nextjournal.d...
null
https://raw.githubusercontent.com/nextjournal/viewers/f4a32b05ff4382a85a3dcf66cdec89c2389ac3c8/modules/viewer/src/nextjournal/viewer.cljs
clojure
Custom metadata handling - supporting any cljs value - not compatible with core meta Viewers (built on metadata) viewers registered here can be invoked via `:nextjournal/viewer` metadata (as returned by view-as, with-viewer, and with-viewers) Should we do something else here? a list of keys we have navigated do...
(ns nextjournal.viewer (:refer-clojure :exclude [meta with-meta vary-meta]) (:require [applied-science.js-interop :as j] [cljs.reader] [clojure.core :as core] [clojure.string :as str] [cognitect.transit :as transit] [goog.object] [nextjournal.d...
ef49fb091c970e32562de767908f9ce24aaa0288d0c2159341729db5834cd9ee
tzemanovic/haskell-yesod-realworld-example-app
Articles.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # module Handler.Articles ( getArticlesR , getArticlesFeedR , getArticleR , postArticlesR , putA...
null
https://raw.githubusercontent.com/tzemanovic/haskell-yesod-realworld-example-app/d9f5191a909fa3c0087c5f28fcaae7ad1eca8b9a/app/src/Handler/Articles.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE OverloadedLabels # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # ------------------------------------------------------------------------------ List Articles ------------------------------------------------------------------------------ Article feed -...
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module Handler.Articles ( getArticlesR , getArticlesFeedR , getArticleR , postArticlesR , putArticleR , deleteArticleR , getArticleCommentsR , postArticleCommentsR , deleteArticleCommentR , postArticleFavoriteR , deleteArticleFavo...
bd639b3741ca338cc23462cd9e40b629779e515744f41a15d0f7bb5698e9ef1b
fission-codes/fission
Types.hs
| The name of a Fission app ( i.e. the subdomain in Fission 's app namespace ) module Fission.App.Name.Types ( Name , raw , mkName ) where import qualified RIO.ByteString.Lazy as Lazy import qualified RIO.Text as Text import Data.Swagger hiding (name) import Se...
null
https://raw.githubusercontent.com/fission-codes/fission/11d14b729ccebfd69499a534445fb072ac3433a3/fission-core/library/Fission/App/Name/Types.hs
haskell
| The name of a Fission app ( i.e. the subdomain in Fission 's app namespace ) module Fission.App.Name.Types ( Name , raw , mkName ) where import qualified RIO.ByteString.Lazy as Lazy import qualified RIO.Text as Text import Data.Swagger hiding (name) import Se...
6c13b9b920ab534fd6eb7dce86e443cc4c3f95a6d30ca08a15c2ddeed62c49ea
fstamour/breeze
snippet-server.lisp
(defvar *code-id-counter* 0) (defparameter *code* (make-hash-table)) ;; (clrhash *code*) (define-easy-handler (code :uri "/code") ((id :parameter-type 'integer) (snippet :parameter-type 'string)) (let ((id (or id (incf *code-id-counter*)))) (with-output-to-string (*html*) (with-html ("Code") ...
null
https://raw.githubusercontent.com/fstamour/breeze/15353f7451355ae2ee32dd16d6b5c490d5214c8e/scratch-files/snippet-server.lisp
lisp
(clrhash *code*) Append the current code with the result of calling the snippet. Call the snippet function Transform the parameters to keywords Warning: internalizing strings from the internet _might_ not be a good idea
(defvar *code-id-counter* 0) (defparameter *code* (make-hash-table)) (define-easy-handler (code :uri "/code") ((id :parameter-type 'integer) (snippet :parameter-type 'string)) (let ((id (or id (incf *code-id-counter*)))) (with-output-to-string (*html*) (with-html ("Code") (:ul (loop ...
f58053066338301ee82037c697e2c8ac98b6eb67267b29912b08cc7e0535f789
ghc/ghc
T15862.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} {-# LANGUAGE ImpredicativeTypes #-} # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # # LANGUAGE TypeApplications # # LANGUAGE UnboxedSums # module Bug where import Data.Kind import Type.Reflection newtype Foo = MkFoo (forall a. a) foo :: TypeR...
null
https://raw.githubusercontent.com/ghc/ghc/3c3060e4645b12595b187e7dbaa758e8adda15e0/testsuite/tests/typecheck/should_fail/T15862.hs
haskell
# LANGUAGE GADTs # # LANGUAGE ImpredicativeTypes # # LANGUAGE RankNTypes #
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE TypeApplications # # LANGUAGE UnboxedSums # module Bug where import Data.Kind import Type.Reflection newtype Foo = MkFoo (forall a. a) foo :: TypeRep MkFoo foo = typeRep @MkFoo type family F a type instance F Int = Type data Bar = f...
a256f26858ea00c8d5e718d2513dc1c808de395d4277ca9e68335bb6081a467d
mirage/ocaml-qcow
qcow_virtual.mli
* Copyright ( C ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/mirage/ocaml-qcow/2418c66627dcce8420bcb06d7547db171528060a/lib/qcow_virtual.mli
ocaml
index within the cluster * [make cluster_bits byte] computes the address within the file of the virtual [byte] offset * [to_offset cluster_bits address] computes the virtual byte offset of the virtual address
* Copyright ( C ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
6746d54c7e4cf34ca56c490447bc125469b501e9ba2f3b820bc6dc2ceed6e090
avik-das/garlic
parser.scm
(require string => str) (require "ast") (require "compiler-error" => err) (require "result") (require "tokens" => tok) PARSE LOGIC ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;; Given a list of tokens, construct an abstract synta...
null
https://raw.githubusercontent.com/avik-das/garlic/b5f0698f287239eca6b1dd10b2d69d760f3e2e55/recursive/parser.scm
scheme
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Given a list of tokens, construct an abstract syntax tree. @param tokens - a flat list of tokens, as produced by the lexer @return the abstract syntax tree, with the nesting suggested by ...
(require string => str) (require "ast") (require "compiler-error" => err) (require "result") (require "tokens" => tok) (define (parse tokens) (result:transform-success (lambda (tree) (result:new-success (tree-to-ast tree))) (toplevel-list-to-tree tokens))) (define (expression-to-tree tokens) (let (((f...
c14f313b592c57c311a354b2bc2fadcc226f1057e0be3077df7431445a377be1
panicz/grasp
pane.scm
(import (srfi :17)) (import (hash-table)) (import (define-property)) (import (define-syntax-rule)) (import (assert)) (import (define-interface)) (import (define-type)) (import (define-object)) (import (default-value)) (import (define-parameter)) (import (define-cache)) (import (mapping)) (import (infix)) (import (match...
null
https://raw.githubusercontent.com/panicz/grasp/be2392a6701e3a824f79767d4fb4041c64fb8de5/src/pane.scm
scheme
(when (pair? (car items)) from box)) at x::real y::real with vx::real vy::real) to x::real y::real by vx::real vy::real) this parameter must be set by the and changed every time the hosting window is resized At the top level, (the-pane-extent) must be bound to the same object as (the-screen-extent). at x y)) at ...
(import (srfi :17)) (import (hash-table)) (import (define-property)) (import (define-syntax-rule)) (import (assert)) (import (define-interface)) (import (define-type)) (import (define-object)) (import (default-value)) (import (define-parameter)) (import (define-cache)) (import (mapping)) (import (infix)) (import (match...
1b87d8663deec224640ae1388a8d5873e0c2e090c81683104de9c7b32ad65511
mbillingr/lisp-in-small-pieces
10-08-08-main.scm
(define (generate-main out form) (format out "~%/* Expression: */~%void main(void) {~%") (format out " SCM_print") (between-parentheses out (->C form out)) (format out ";~% exit(0);~%}~%"))
null
https://raw.githubusercontent.com/mbillingr/lisp-in-small-pieces/b2b158dfa91dc95d75af4bd7d93f8df22219047e/10-to-c/10-08-08-main.scm
scheme
(define (generate-main out form) (format out "~%/* Expression: */~%void main(void) {~%") (format out " SCM_print") (between-parentheses out (->C form out)) (format out ";~% exit(0);~%}~%"))
dc2e9577cf1725dca19f173cacb2aba9d041213fdca3ce621d3b958d6925a9dc
clj-commons/potemkin
namespaces.clj
(ns potemkin.namespaces (:require [clj-kondo.hooks-api :as api])) (defn import-macro* ([sym] `(def ~(-> sym name symbol) ~sym)) ([sym name] `(def ~name ~sym))) (defmacro import-fn ([sym] (import-macro* sym)) ([sym name] (import-macro* sym name))) (defmacro import-macro ([sym] (import-macro...
null
https://raw.githubusercontent.com/clj-commons/potemkin/f22d9725a2203f9c5cab90fc3459da78e7229956/resources/clj-kondo.exports/potemkin/potemkin/potemkin/namespaces.clj
clojure
(ns potemkin.namespaces (:require [clj-kondo.hooks-api :as api])) (defn import-macro* ([sym] `(def ~(-> sym name symbol) ~sym)) ([sym name] `(def ~name ~sym))) (defmacro import-fn ([sym] (import-macro* sym)) ([sym name] (import-macro* sym name))) (defmacro import-macro ([sym] (import-macro...
b9a32bdbcb353eefddcc8102c0ebb10e01df48d423ad9354318e65433c23c709
mirage/ocaml-rpc
all_types.ml
* Copyright ( C ) 2006 - 2009 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 describe...
null
https://raw.githubusercontent.com/mirage/ocaml-rpc/fdbf7f5c3e4f0c75837f0a96d5d4d6458805fd57/tests/ppx/all_types.ml
ocaml
Testing basic marshalling/unmarshalling Testing calls and responses
* Copyright ( C ) 2006 - 2009 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 describe...
4d37cdfa6e204ff7cebb72e89c04a41457211d0f38b1940ea772f59774da1582
haslab/HAAP
GHC.hs
HAAP : Haskell Automated Assessment Platform This module runs the @GHC@ plugin with the flag to give all kinds of warnings on code quality . HAAP: Haskell Automated Assessment Platform This module runs the @GHC@ plugin with the @-Wall@ flag to give all kinds of warnings on code quality. -} # LANGUAGE EmptyD...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/src/HAAP/Code/GHC.hs
haskell
relative to the path where homplexity is executed relative to the project path copy the generated documentation
HAAP : Haskell Automated Assessment Platform This module runs the @GHC@ plugin with the flag to give all kinds of warnings on code quality . HAAP: Haskell Automated Assessment Platform This module runs the @GHC@ plugin with the @-Wall@ flag to give all kinds of warnings on code quality. -} # LANGUAGE EmptyD...
ba23f26715ba9db0da916c8bd6c5be54c14b7fb860dcb84ea891be185170d14f
d-cent/mooncake
mongo.clj
(ns mooncake.db.mongo (:require [monger.core :as mcore] [monger.operators :as mop] [monger.collection :as mcoll] [clojure.tools.logging :as log] [mooncake.helper :as mh])) (defprotocol Store (fetch [this coll k] "Find the item based on a key.") (fetch-all [this...
null
https://raw.githubusercontent.com/d-cent/mooncake/eb16b7239e7580a73b98f7cdacb324ab4e301f9c/src/mooncake/db/mongo.clj
clojure
(ns mooncake.db.mongo (:require [monger.core :as mcore] [monger.operators :as mop] [monger.collection :as mcoll] [clojure.tools.logging :as log] [mooncake.helper :as mh])) (defprotocol Store (fetch [this coll k] "Find the item based on a key.") (fetch-all [this...
5751c81e27b0d0b284425609d6cf5940c60ad3c154e55bfbf962c73435050f0c
master/ejabberd
mod_vcard_xupdate.erl
%%%---------------------------------------------------------------------- %%% File : mod_vcard_xupdate.erl Author : < > %%% Purpose : Add avatar hash in presence on behalf of client (XEP-0153) Created : 9 Mar 2007 by < > %%%---------------------------------------------------------------------- -module(m...
null
https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/mod_vcard_xupdate.erl
erlang
---------------------------------------------------------------------- File : mod_vcard_xupdate.erl Purpose : Add avatar hash in presence on behalf of client (XEP-0153) ---------------------------------------------------------------------- gen_mod callbacks hooks =================================================...
Author : < > Created : 9 Mar 2007 by < > -module(mod_vcard_xupdate). -behaviour(gen_mod). -export([start/2, stop/1]). -export([update_presence/3, vcard_set/3]). -include("ejabberd.hrl"). -include("jlib.hrl"). -record(vcard_xupdate, {us, hash}). start(Host, _Opts) -> mnesia:create_tabl...
6b2216f8e6ed92e05442b0e0e263f22dd7f280be00a2a6e932d0f3aa6e482a7a
hiratara/Haskell-Nyumon-Sample
chap07-samples-7-6-1-complex.hs
# LANGUAGE TemplateHaskell # module Main(main) where import Data.Aeson import Data.Aeson.TH import qualified Data.ByteString.Lazy.Char8 as B data Human = Human { name :: String , age :: Int } deriving Show deriveJSON defaultOptions ''Human data Department = Department { departmentName :: String , coworker...
null
https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap07-samples/chap07-samples-7-6-1-complex.hs
haskell
# LANGUAGE TemplateHaskell # module Main(main) where import Data.Aeson import Data.Aeson.TH import qualified Data.ByteString.Lazy.Char8 as B data Human = Human { name :: String , age :: Int } deriving Show deriveJSON defaultOptions ''Human data Department = Department { departmentName :: String , coworker...
44e0486842e07e880e3619470d22a45e847022074028465e35681de5637190cb
karlhof26/gimp-scheme
grunge_stamp_gimp_2_8.scm
Début du script - fu grunge_stamp_gimp_2_8.scm ; Accès par : > Créer > Logos > Grunge stamp ... ; File > Create > Logos > Grunge stamp... ; ; adaptation " Create a simple Grunge - Stamp ! " sur -a-simple-grunge-stamp ; ; ; Licence GNU/GPL ; ; --------------------------------...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/a8de87a29db39337929b22eb4f81345f91765f55/grunge_stamp_gimp_2_8.scm
scheme
File > Create > Logos > Grunge stamp... Licence GNU/GPL -------------------------------------------------------------------- -------------------------------------------------------------------- affectation des variables caractéristiques de la surface occupée par le texte ...
Début du script - fu grunge_stamp_gimp_2_8.scm Accès par : > Créer > Logos > Grunge stamp ... adaptation " Create a simple Grunge - Stamp ! " sur -a-simple-grunge-stamp version 1.0 par samj ( www.aljacom.com/~gimp ) 2010/12/14 version 1.01 par samj ( www.aljacom.com/~gimp ) 2010/12/15 ver...
05a9d87660bc192afd6d4f12914a997b5c619c6986c80d46f85d443c118e31e8
shop-planner/shop3
shop-pprint.lisp
;;; Version : MPL 1.1 / GPL 2.0 / LGPL 2.1 ;;; The contents of this file are subject to the Mozilla Public License ;;; Version 1.1 (the "License"); you may not use this file except in ;;; compliance with the License. You may obtain a copy of the License at ;;; / ;;; Software distributed under the License is distr...
null
https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/io/shop-pprint.lisp
lisp
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Portions crea...
Version : MPL 1.1 / GPL 2.0 / LGPL 2.1 The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is SHOP2 . The Initial Developer of the Original Code is the University of Maryland . Portions created by the Ini...
169610108ca9696cce5bfa7d55c17074ef6a107a83e326c0d7c57fecf2bb8119
webyrd/relational-parsing-with-derivatives
regex-derivative.scm
Author : ; Site: / In about 100 lines of Scheme , this file implements a ; regular-expression matcher based on the derivative of ; regular expressions. ; The derivative of a regular expression 're' with respect ; to a character 'c' is a new regular expression which matches what the expression 're ' would ma...
null
https://raw.githubusercontent.com/webyrd/relational-parsing-with-derivatives/2b5fea523ed2b35fb1687954449ee75dc67e94dd/matts-original-non-relational-scheme-version/regex-derivative.scm
scheme
Site: / regular-expression matcher based on the derivative of regular expressions. The derivative of a regular expression 're' with respect to a character 'c' is a new regular expression which matches For example, using POSIX notation, the derivative of (foo|frak)* with respect to 'f' is (oo|rak)(foo|frak)* ...
Author : In about 100 lines of Scheme , this file implements a what the expression 're ' would match if it first matched ' c ' . [ 1 ] . " Derivatives of Regular Expressions . " 1964 . [ 2 ] , , . " Regular expression derivatives re - examined . " 2009 . (define (regex-alt? re) (and (pai...
6e395a180a7789afacfac86e4fbd5a49a56f2f64afdd441c9d2962b02ff10801
marigold-dev/chusai
constants.ml
let tezos_client = "./_build/tezos-client" let tezos_node = "./_build/tezos-node" let chusai_node = "./_build/default/layer2/bin/node/main.exe"
null
https://raw.githubusercontent.com/marigold-dev/chusai/09f798c585121d3b02bf3fed0f52f15c3bdc79a1/tezt/lib/constants.ml
ocaml
let tezos_client = "./_build/tezos-client" let tezos_node = "./_build/tezos-node" let chusai_node = "./_build/default/layer2/bin/node/main.exe"
28d32fe7c3298c761edb96bbe2e41e96b31bcf30f8f67bafd1658ba04dc856dc
nyu-acsys/drift
Fibonacci00.ml
let rec bot _ = bot () let fail _ = assert false let rec fib_without_checking_1060 set_flag_fib_1052 s_fib_n_1049 n_1031 = let set_flag_fib_1052 = true in let s_fib_n_1049 = n_1031 in if n_1031 < 2 then 1 else fib_without_checking_1060 set_flag_fib_1052 s_fib_n_1...
null
https://raw.githubusercontent.com/nyu-acsys/drift/51a3160d74b761626180da4f7dd0bb950cfe40c0/tests/benchmarks/r_type/termination/Fibonacci00.ml
ocaml
-:{v:Int | true}
let rec bot _ = bot () let fail _ = assert false let rec fib_without_checking_1060 set_flag_fib_1052 s_fib_n_1049 n_1031 = let set_flag_fib_1052 = true in let s_fib_n_1049 = n_1031 in if n_1031 < 2 then 1 else fib_without_checking_1060 set_flag_fib_1052 s_fib_n_1...
24ea05a18bb524174ea5c3bc142435a6071baba1a3c91f903d38bdf2917e3d01
GaloisInc/pate
AbstractDomain.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} # LANGUAGE KindSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE Und...
null
https://raw.githubusercontent.com/GaloisInc/pate/a48c447156d95686c308a6d5ec696464120e0970/src/Pate/Verification/AbstractDomain.hs
haskell
# LANGUAGE GADTs # # LANGUAGE MultiWayIf # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # workaround for type families bug | Defining abstract domains which propagate forwards during strongest postcondition analysis. The critical domain information is the equality domain (a 'PED.EquivalenceDomain' indicati...
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # # LANGUAGE UndecidableInstances # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeCla...
9dca2a08d7969b74391d3a1ddb5fdd632e92e4b7ab7fffa43f0f3f1ea58025ae
auser/beehive
misc_utils.erl
-module (misc_utils). -include ("common.hrl"). -compile (export_all). -compile({no_auto_import, [max/2]}). -define (ADJECTIVES, [ "fast", "quick", "clean", "positive", "generous", "silly", "enjoyable", "friendly", "flighty", "handsome", "hot", "adorable", "cool", "cold", "odd" ]). -define (NOUNS, [ "giant", "bee...
null
https://raw.githubusercontent.com/auser/beehive/dfe257701b21c56a50af73c8203ecac60ed21991/lib/erlang/apps/beehive/src/bh_utils/misc_utils.erl
erlang
clean up the tempfile, if necessary Only choose values that are actually in the proplist make them be appended name of the local node Get the name of the local node Turn the proplists into atoms Reload all the beehive modules Reload code on all attached nodes
-module (misc_utils). -include ("common.hrl"). -compile (export_all). -compile({no_auto_import, [max/2]}). -define (ADJECTIVES, [ "fast", "quick", "clean", "positive", "generous", "silly", "enjoyable", "friendly", "flighty", "handsome", "hot", "adorable", "cool", "cold", "odd" ]). -define (NOUNS, [ "giant", "bee...
ddcd0731647660bb560191238b7f0049dba00c2308f1fa0711fd23b7946a73bc
g000001/MacLISP-compat
DEBUG.lisp
; -*- Mode:LISP;Lowercase:T-*- ;;; DEBUG ==> Allows user to inspect LISP stack BT = = > Prints out an indented list of the user functions called ;;; Debugging function for examining stack. ;;; (DEBUG ARG) sets *RSET and NOUUO to arg, thus typical usage is: ;;; (DEBUG T) ;;; T ;;; (FOO BAR BAZ) ; BKPT * RSET - ...
null
https://raw.githubusercontent.com/g000001/MacLISP-compat/a147d09b98dca4d7c089424c3cbaf832d2fd857a/DEBUG.lisp
lisp
-*- Mode:LISP;Lowercase:T-*- DEBUG ==> Allows user to inspect LISP stack Debugging function for examining stack. (DEBUG ARG) sets *RSET and NOUUO to arg, thus typical usage is: (DEBUG T) T (FOO BAR BAZ) BKPT * RSET - TRAP (DEBUG) ( ...) ==> Top of stack D ==> Command to debug ( ...) ==> Next to last ...
BT = = > Prints out an indented list of the user functions called DEBUG of no arguments prints ( with the PRINLEVEL set to 4 . and PRINDEPTH to 3 . ) Last S - Expression evaluated and S -- Sprinter current level . If given non - zero arg , always sprinter . A -- Print indented list of all user calls , ...
d182d23638e433d64fdb32b11dba82c1c96e5a9e6bdfa599ce7c528d42b66f38
alan-turing-institute/advent-of-code-2021
day_3.rkt
#lang racket ran out of time with this and have a very messy part two without early exit ! ( and a messy part one to be honest ... ) PART ONE ; given multiline input of arbitrary length, each line is a binary number of abitrary length (consistent throughout file) ; gamma rate can be determined by finding the m...
null
https://raw.githubusercontent.com/alan-turing-institute/advent-of-code-2021/686310b3accc852065e187da730f1db4b8caf8da/day-03/racket_lannelin/day_3.rkt
racket
given multiline input of arbitrary length, each line is a binary number of abitrary length (consistent throughout file) gamma rate can be determined by finding the most common bit in the corresponding position of all numbers in the diagnostic report convert list of strings to list of list of numbers compare each it...
#lang racket ran out of time with this and have a very messy part two without early exit ! ( and a messy part one to be honest ... ) PART ONE (define (literal-number->char x) (integer->char (+ x 48)) ) (define (char->literal-number x) (- (char->integer x) 48) ) e.g ( " 0110 " " 0010 " ) - > ( ( ...
5cfefa762480ffb287ac90725dd46a4bc7ddd854a6647b00470433d454634e5c
askonomm/clarktown
horizontal_line_block_test.clj
(ns clarktown.renderers.horizontal-line-block-test (:require [clojure.test :refer [deftest testing is]] [clarktown.renderers.horizontal-line-block :as horizontal-line-block])) (deftest horizontal-line-block-renderer-test (testing "Creating a horizontal line" (is (= (horizontal-line-block/render "***" ...
null
https://raw.githubusercontent.com/askonomm/clarktown/dcb21ec0104cdec3ca9976374868c5837ad9d0b9/test/clarktown/renderers/horizontal_line_block_test.clj
clojure
(ns clarktown.renderers.horizontal-line-block-test (:require [clojure.test :refer [deftest testing is]] [clarktown.renderers.horizontal-line-block :as horizontal-line-block])) (deftest horizontal-line-block-renderer-test (testing "Creating a horizontal line" (is (= (horizontal-line-block/render "***" ...
fda4d230c534ccd059bef6e1093ed24dbf3c71428324581e6dd30dc948166e67
alexandergunnarson/quantum
core.cljc
(ns quantum.apis.facebook.core) / ; GET /v2.3/me HTTP/1.1 ; Host: graph.facebook.com ; User access token #_(defn oauth-access-token [] (http/request! {:url "" :query-params {"client_id" app-id "redirect_uri" redirect-uri}})) ; Rate limitations ; -api/api-rate-limiting ; Quor...
null
https://raw.githubusercontent.com/alexandergunnarson/quantum/0c655af439734709566110949f9f2f482e468509/src/quantum/apis/facebook/core.cljc
clojure
GET /v2.3/me HTTP/1.1 Host: graph.facebook.com User access token Rate limitations -api/api-rate-limiting Quora: there is no official limit I'm aware of or can find in the documentation. about where they stop you. I've also seen some application based rate limiting but don't have any numbers. TOS: If you exce...
(ns quantum.apis.facebook.core) / #_(defn oauth-access-token [] (http/request! {:url "" :query-params {"client_id" app-id "redirect_uri" redirect-uri}})) After some testing and discussion with the Facebook platform team , However , I 've found 600 calls per 600 seconds ,...
c2969601987e287d64a242d7f04306412389f42f1ac6a7a0d438f0a2a79d66fc
zadean/xqerl
fn_exists_SUITE.erl
-module('fn_exists_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(['fn-existsint1args-1'/1]). -export(['fn-existsint1args-2'/1]). -export(['fn-existsint...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_exists_SUITE.erl
erlang
-module('fn_exists_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(['fn-existsint1args-1'/1]). -export(['fn-existsint1args-2'/1]). -export(['fn-existsint...
44eb8fbf522b4dd8f0a031bfbf43af2f05e381241300df39622509c0a56ea467
commercialhaskell/stack
FileWatch.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Stack.FileWatch ( WatchMode (WatchModePoll) , fileWatch , fileWatchPoll ) where import Control.Concurrent.STM ( check ) import qualified Data.Map.Merge.Strict as Map import qualified Data.Map.Strict as Map import qualified Data...
null
https://raw.githubusercontent.com/commercialhaskell/stack/7e35041ed27ebc9f3076d201a1c3f42dd04111db/src/Stack/FileWatch.hs
haskell
# LANGUAGE OverloadedStrings # | Run an action, watching for file changes The action provided takes a callback that is used to set the files to be watched. When any of those files are changed, we rerun the action again. Ignore invalid argument error - it can happen if the directory is removed. Clear dirtiness fl...
# LANGUAGE NoImplicitPrelude # module Stack.FileWatch ( WatchMode (WatchModePoll) , fileWatch , fileWatchPoll ) where import Control.Concurrent.STM ( check ) import qualified Data.Map.Merge.Strict as Map import qualified Data.Map.Strict as Map import qualified Data.Set as Set import GHC.IO...
f8ed0189af0266bcc5663581d290018ca62940220c2549ffe2844ecff7f7e7fd
zeniuseducation/poly-euler
p277.clj
(ns alfa.special.p277 (:require [clojure.set :refer [union difference intersection subset?]] [clojure.core.reducers :as r] [clojure.string :refer [split-lines]] [alfa.common :refer :all] [clojure.string :as cs])) (defn next-col [^long n] (cond (== 0 (rem n 3)) ["D" (quot n 3)] (== 1 (...
null
https://raw.githubusercontent.com/zeniuseducation/poly-euler/734fdcf1ddd096a8730600b684bf7398d071d499/Alfa/src/alfa/special/p277.clj
clojure
(ns alfa.special.p277 (:require [clojure.set :refer [union difference intersection subset?]] [clojure.core.reducers :as r] [clojure.string :refer [split-lines]] [alfa.common :refer :all] [clojure.string :as cs])) (defn next-col [^long n] (cond (== 0 (rem n 3)) ["D" (quot n 3)] (== 1 (...
56b810adbb35d8387e474bb8fddc78f542d10c2c9e0c07e2757db641b87fcb46
esl/MongooseIM
mod_offline_mnesia.erl
%%%---------------------------------------------------------------------- Copyright notice from the originam %%% File : Author : < > Purpose : Store and manage offline messages in database . Created : 5 Jan 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% Thi...
null
https://raw.githubusercontent.com/esl/MongooseIM/dda03c16c83f5ea9f5c9b87c3b36c989813b9250/src/offline/mod_offline_mnesia.erl
erlang
---------------------------------------------------------------------- This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of ME...
Copyright notice from the originam File : Author : < > Purpose : Store and manage offline messages in database . Created : 5 Jan 2003 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software...
302a8dd13ae2ebfdfc2cb8ea249bb8eb90222a02e955725404282df39824835d
chiroptical/optics-by-example
Spec.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # import Control.Lens import Control.Lens.Properties import Lib import Test.QuickCheck prop_worded = isTraversal (worded :: Traversal' String String) prop_c_ = isTraversal (c_ "hello" :: Traversal' (String, Int) Int) prop_d_ = isTraversal (d_ :: Traversal' ...
null
https://raw.githubusercontent.com/chiroptical/optics-by-example/3ee33546ee18c3a6f5510eec17a69d34e750198e/chapter7/test/Spec.hs
haskell
# LANGUAGE RankNTypes # Unsure how to do `taking` and `beside`
# LANGUAGE ScopedTypeVariables # import Control.Lens import Control.Lens.Properties import Lib import Test.QuickCheck prop_worded = isTraversal (worded :: Traversal' String String) prop_c_ = isTraversal (c_ "hello" :: Traversal' (String, Int) Int) prop_d_ = isTraversal (d_ :: Traversal' String String) prop_each = ...
617d1595835b8632fb42f140d3d65e317c144e5b1439e60ddcf72d7e3b13b5b7
clojure-interop/java-jdk
WrappedPlainView.clj
(ns javax.swing.text.WrappedPlainView "View of plain text (text with only one font and color) that does line-wrapping. This view expects that its associated element has child elements that represent the lines it should be wrapping. It is implemented as a vertical box that contains logical line views. The ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/text/WrappedPlainView.clj
clojure
(ns javax.swing.text.WrappedPlainView "View of plain text (text with only one font and color) that does line-wrapping. This view expects that its associated element has child elements that represent the lines it should be wrapping. It is implemented as a vertical box that contains logical line views. The ...
b5550df3f910d9b8e7f43fe0a799be7b0500ba774254696d2465a745b13cfea5
jagajaga/FP-Course-ITMO
DFS.hs
module DFS where import Control.Monad (forM_) import Control.Monad.Extra (whenM) import Control.Monad.State (State, evalState, execState, get, gets, modify, put) -- void dfs(int from, int[][] g, boolean[] visited) { -- visited[from] = true; -- for (int u : g[from]) { ...
null
https://raw.githubusercontent.com/jagajaga/FP-Course-ITMO/1417c4e929050518f8ad1e56008f061af204825b/lecture-07-dfs/DFS.hs
haskell
void dfs(int from, int[][] g, boolean[] visited) { visited[from] = true; for (int u : g[from]) { } } holy shh... state represented as list of visited vertices
module DFS where import Control.Monad (forM_) import Control.Monad.Extra (whenM) import Control.Monad.State (State, evalState, execState, get, gets, modify, put) if ( ! visited[u ] ) dfs(u , g , visitied ) ; type Vertex = Int type Graph = [[Vertex]] dfs :: Vertex -> Ve...
a4e794ffd5427214983cc541497a8902aa8e5ec58a446d4f9ea5889d53e572a4
juspay/atlas
Booking.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/Domain/Types/Booking.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...
addb80fc9c37df1c8ca627ca0929c74e490aefd359452f81d48e7830e4eb4f55
facebook/pyre-check
intKey.ml
* 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/pyre-check/98b8362ffa5c715c708676c1a37a52647ce79fe0/source/hack_parallel/hack_parallel/utils/collections/intKey.ml
ocaml
TODO(T132410158) Add a module-level doc comment.
* 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...
e93f6efa3e25e6b82cf8627957c29ef32477dfc6c8e0903e35aebfe7ae070a63
kingcons/cl-6502
addressing.lisp
# # # The Protocol (in-package :6502) (defparameter *address-modes* nil "A list of all the 6502 Address Modes.") (defgeneric reader (mode) (:documentation "Return a Perl-compatible regex suitable for parsing MODE.") (:method (mode) (error 'invalid-mode :mode mode))) (defgeneric writer (mode) (:documentati...
null
https://raw.githubusercontent.com/kingcons/cl-6502/0fbce82c55a63df0ceaf17d6e3d952219514a949/src/addressing.lisp
lisp
# # # The Protocol (in-package :6502) (defparameter *address-modes* nil "A list of all the 6502 Address Modes.") (defgeneric reader (mode) (:documentation "Return a Perl-compatible regex suitable for parsing MODE.") (:method (mode) (error 'invalid-mode :mode mode))) (defgeneric writer (mode) (:documentati...
6c506e393b8e3affe2957e3a6f0031a27acca9074746bd5910d389deb1c2358e
TorXakis/TorXakis
ValExpr.hs
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} ----------------------------------------...
null
https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/valexpr/src/ValExpr.hs
haskell
--------------------------------------------------------------------------- | Stability : experimental Portability : portable ---------------------------------------------------------------------------
TorXakis - Model Based Testing Copyright ( c ) 2015 - 2017 TNO and Radboud University See LICENSE at root directory of this repository . TorXakis - Model Based Testing Copyright (c) 2015-2017 TNO and Radboud University See LICENSE at root directory of this repository. -} Module : ValExpr Copyright ...
4bc0383a54d400fa38cb506af81a744539e4c6090b4028448938414e7633686b
turlando/airhead
libshout.clj
(ns airhead.libshout (:require [clj-native.direct :as jna]) (:import (java.io InputStream) (java.nio IntBuffer ByteBuffer))) (def loaded? (atom false)) (jna/defclib libshout (:libname "libshout") (:functions (shout_version [int* int* int*] constchar*) (shout_init []) (shout_shutdown []) ...
null
https://raw.githubusercontent.com/turlando/airhead/f38d8b3177d90462ad377c207a84966388cb326e/backend/src/airhead/libshout.clj
clojure
(ns airhead.libshout (:require [clj-native.direct :as jna]) (:import (java.io InputStream) (java.nio IntBuffer ByteBuffer))) (def loaded? (atom false)) (jna/defclib libshout (:libname "libshout") (:functions (shout_version [int* int* int*] constchar*) (shout_init []) (shout_shutdown []) ...
2d1cf20c4a456eb9b99f7f6ebef987cd7086aa21e9d325d4b3b02d60a062ab11
ghollisjr/cl-ana
h5ex-d-gzip.lisp
Copyright by The HDF Group . ;;;; All rights reserved. ;;;; This file is part of hdf5 - cffi . The full hdf5 - cffi copyright notice , including terms governing ;;;; use, modification, and redistribution, is contained in the file COPYING, ;;;; which can be found at th...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/hdf-cffi/examples/datasets/h5ex-d-gzip.lisp
lisp
All rights reserved. use, modification, and redistribution, is contained in the file COPYING, which can be found at the root of the source code distribution tree. If you do not have access to this file, you may request a copy from . This example shows how to read and write data to a dataset using gzip compressi...
Copyright by The HDF Group . This file is part of hdf5 - cffi . The full hdf5 - cffi copyright notice , including terms governing program first checks if is available , then closes the file . Next , it reopens the file , reads -by-api/hdf5-examples/1_8/C/H...
a57f064fd9017733c003620b0a9539f458bbe009f379475e29c18a5e87423332
Mushy-pea/Game-Dangerous
ConvMsg.hs
Game : : Dangerous code by . You are free to use this software and view its source code . -- If you wish to redistribute it or use it as part of your own work, this is permitted as long as you acknowledge the work is by the abovementioned author. This is a development tool used to encode text in the message ti...
null
https://raw.githubusercontent.com/Mushy-pea/Game-Dangerous/f77bb6b9606dc326e89ab5b91abec978b0018898/app/ConvMsg.hs
haskell
If you wish to redistribute it or use it as part of your own work, this is permitted as long as you acknowledge the work is by the abovementioned author.
Game : : Dangerous code by . You are free to use this software and view its source code . This is a development tool used to encode text in the message tile reference format used with the scripting language . module Main where import System.IO char_list = "_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw...
b1e722ba5a1c6213bce364761c412d86b82412e029d120dab6a8dd801d57a420
ghcjs/ghcjs-boot
PprLib.hs
# LANGUAGE FlexibleInstances # -- | Monadic front-end to Text.PrettyPrint module Language.Haskell.TH.PprLib ( -- * The document type Doc, -- Abstract, instance of Show PprM, -- * Primitive Documents empty, semi, comma, colon, space, equals, arrow, l...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-boot/8c549931da27ba9e607f77195208ec156c840c8a/boot/template-haskell/Language/Haskell/TH/PprLib.hs
haskell
| Monadic front-end to Text.PrettyPrint * The document type Abstract, instance of Show * Primitive Documents * Converting values into documents * Wrapping documents in delimiters * Combining documents * Predicates on documents --------------------------------------------------------------------------- The int...
# LANGUAGE FlexibleInstances # module Language.Haskell.TH.PprLib ( PprM, empty, semi, comma, colon, space, equals, arrow, lparen, rparen, lbrack, rbrack, lbrace, rbrace, text, char, ptext, int, integer, float, double, rational, parens, brackets, braces, quot...
90d63a5cee92fa774ab9006b579cabc5e3f5440883f5ca6cabb1812fe27281df
epiccastle/bbssh
callbacks.clj
(ns pod.epiccastle.bbssh.pod.callbacks) (def result-register (atom {})) (defn return-result [id result] (let [p (@result-register id)] (deliver p result) nil)) (defn call-method [reply-fn method args] (let [id (str (gensym "callback-")) p (promise)] (swap! result-register assoc id p) (rep...
null
https://raw.githubusercontent.com/epiccastle/bbssh/d44b2f6ed09a7e2ca2e2e694f9a40a727a173677/src/clj/pod/epiccastle/bbssh/pod/callbacks.clj
clojure
(ns pod.epiccastle.bbssh.pod.callbacks) (def result-register (atom {})) (defn return-result [id result] (let [p (@result-register id)] (deliver p result) nil)) (defn call-method [reply-fn method args] (let [id (str (gensym "callback-")) p (promise)] (swap! result-register assoc id p) (rep...
9fb271d984cc6e7fdb89757a9a8f688a362ba78321ea0a8e083c2bb1f504d6b5
gedge-platform/gedge-platform
rabbit_web_mqtt_app.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 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_web_mqtt_app). -behaviour(applica...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_web_mqtt/src/rabbit_web_mqtt_app.erl
erlang
API Implementation
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 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_web_mqtt_app). -behaviour(application)....
dd689578c268614c123f72a4f9262d149217dfa15671b42b0b19b37a35cce59a
DeaR/xl-git
editmsg.lisp
-*- mode : lisp ; package : xl - git ; encoding : shift_jis -*- @name xl - git / editmsg.lisp @description A front - end for git in xyzzy . ;; @namespace / ;; @author DeaR @timestamp < 2012 - 05 - 01 15:42:16 DeaR > Copyright ( c ) 2012 DeaR < > ;; ;; Permission is hereby granted, free of...
null
https://raw.githubusercontent.com/DeaR/xl-git/ae9da0ee87f45f51569bd31c475f622ebc32e42b/site-lisp/xl-git/editmsg.lisp
lisp
package : xl - git ; encoding : shift_jis -*- @namespace / @author DeaR Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in use, copy, modify, merge, publish, distribute, sublicense, and/or sell copie...
@name xl - git / editmsg.lisp @description A front - end for git in xyzzy . @timestamp < 2012 - 05 - 01 15:42:16 DeaR > Copyright ( c ) 2012 DeaR < > the Software without restriction , including without limitation the rights to the Software , and to permit persons to whom the Software is furni...
caa566d20cc769ccf489dbd9386201eb4485116f8d2e094dbefb0b555c518025
number571/Haskell
head.hs
module Main where head' :: [a] -> a head' [] = undefined head' (x:_) = x main :: IO() main = print $ head' [1..10]
null
https://raw.githubusercontent.com/number571/Haskell/7da2676c2604706d43791dc89c0ca8c9842aea48/Templates/head.hs
haskell
module Main where head' :: [a] -> a head' [] = undefined head' (x:_) = x main :: IO() main = print $ head' [1..10]
f412b4bd3a2c3c39bdb3feb8fe971bbb33213d76846b1dd5b4aa9e1ac53f9c3f
bhauman/advent-of-clojure
day1.clj
(ns advent-2016.day1 (:require [clojure.java.io :as io])) (def data (read-string (str "[" (slurp (io/resource "2016/day1")) "]"))) (defn parse-data [d] (->> d (map name) (map (juxt first #(Integer/parseInt (apply str (rest %))))))) (defn positions [d] (->> (map first d) ...
null
https://raw.githubusercontent.com/bhauman/advent-of-clojure/856763baf45bf7bf452ffd304dc1b89f9bc879a6/src/advent-2016/day1.clj
clojure
(ns advent-2016.day1 (:require [clojure.java.io :as io])) (def data (read-string (str "[" (slurp (io/resource "2016/day1")) "]"))) (defn parse-data [d] (->> d (map name) (map (juxt first #(Integer/parseInt (apply str (rest %))))))) (defn positions [d] (->> (map first d) ...
707d6f487abc7f22bea4e388332ebf1b6ce7db5a00ed86b69d91fcbfa5c72d69
korya/efuns
inline.ml
(***********************************************************************) (* *) (* AsmOpt *) (* *) Fabrice Le Fessa...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/inliner/inline.ml
ocaml
********************************************************************* AsmOpt ...
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Misc open Asm open Args let stat_inline = ref 0 let stat_delete_frame = ref 0 let stat_noal...
7c134e86de3d147221e9397fc05e14947e3944ccabaa099fe46667d06cb23810
atgreen/lisp-openshift
ffi-buffer-all.lisp
#+xcvb (module (:depends-on ("package"))) (in-package :cl+ssl) (defconstant +initial-buffer-size+ 2048) (declaim (inline make-buffer buffer-length buffer-elt set-buffer-elt v/b-replace b/v-replace))
null
https://raw.githubusercontent.com/atgreen/lisp-openshift/40235286bd3c6a61cab9f5af883d9ed9befba849/quicklisp/dists/quicklisp/software/cl%2Bssl-20120305-git/ffi-buffer-all.lisp
lisp
#+xcvb (module (:depends-on ("package"))) (in-package :cl+ssl) (defconstant +initial-buffer-size+ 2048) (declaim (inline make-buffer buffer-length buffer-elt set-buffer-elt v/b-replace b/v-replace))
2d7662eaa8661daba722a83ba04014507c591eca214d79033ba72e5898a59051
FranklinChen/hugs98-plus-Sep2006
Calendar.hs
{-# OPTIONS -Wall -Werror #-} module Data.Time.Calendar ( module Data.Time.Calendar.Days, module Data.Time.Calendar.Gregorian ) where import Data.Time.Calendar.Days import Data.Time.Calendar.Gregorian
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/time/Data/Time/Calendar.hs
haskell
# OPTIONS -Wall -Werror #
module Data.Time.Calendar ( module Data.Time.Calendar.Days, module Data.Time.Calendar.Gregorian ) where import Data.Time.Calendar.Days import Data.Time.Calendar.Gregorian
010be7d95c27d016c2bb63d0cefc4a04b1809eec8199dcca50826966ef9446a4
haskell-webgear/webgear
Core.hs
{-# OPTIONS_GHC -Wno-unused-imports #-} {- | WebGear is a library to build composable, type-safe HTTP APIs. The modules below have haddock documentation that can be used as reference material. If you are completely new to WebGear, a good starting point is the [WebGear User Guide](-webgear.github.io/user_guide/1.0...
null
https://raw.githubusercontent.com/haskell-webgear/webgear/60e5547f9450aac36727e8d9980e0a8cbdb69660/webgear-core/src/WebGear/Core.hs
haskell
# OPTIONS_GHC -Wno-unused-imports # | WebGear is a library to build composable, type-safe HTTP APIs. The modules below have haddock documentation that can be used as reference material. If you are completely new to WebGear, a good starting point is the [WebGear User Guide](-webgear.github.io/user_guide/1.0.0/inde...
module WebGear.Core ( module Control.Arrow, module Data.Text, module WebGear.Core.Trait, module WebGear.Core.Request, module WebGear.Core.Response, module WebGear.Core.Modifiers, module WebGear.Core.Handler, module WebGear.Core.Handler.Static, module WebGear.Core.Traits, ) where import Control.Arrow...
1dadb35a0c2830d4a20cb0712e017c27ca472c56f1c9730731f8f471dbc9fedf
rtoy/cmucl
bit-display.lisp
-*- Log : hemlock.log ; Package : Hemlock - Internals -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; (ext:file-comment "$Header: src/hem...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/hemlock/bit-display.lisp
lisp
Package : Hemlock - Internals -*- ********************************************************************** ********************************************************************** Called by make-window to do whatever redisplay wants to set up a new window. Dumb window redisplay. This assumes the cursor has...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (ext:file-comment "$Header: src/hemlock/bit-display.lisp $") Written by Modified by to run under X on IBM RT 's . (in-package "HEMLOCK-INTERNALS") (export '(redis...
7d1a98722aa1b894db0f6a49b50694aad042a3f781d00507fea57a6d499e3979
appleshan/cl-http
variables.lisp
-*- Mode : LISP ; Package : http ; BASE : 10 ; Syntax : ANSI - Common - Lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- ;;; ( c ) Copyright 2000 , 2006 , ;;; All Rights Reserved. ;;; ( C ) Copyright 1996 - 1997 , and ;;; All Rights Reserved. ;;;-----------------------------...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/proxy/variables.lisp
lisp
Package : http ; BASE : 10 ; Syntax : ANSI - Common - Lisp ; Default - Character - Style : ( : FIX : ROMAN : NORMAL);-*- All Rights Reserved. All Rights Reserved. ------------------------------------------------------------------- VARIABLES All other headers are end-to-end by default. (:proxy-connecti...
( c ) Copyright 2000 , 2006 , ( C ) Copyright 1996 - 1997 , and (in-package :http) (defvar *cache-counter* 0 "A number used to identify caches.") 206 requires more general handling of range requests 5/4/2000 -- JCMa . (defconstant *cacheable-response-status-codes* '(200 203 300 301 302 307 410) ...
b057450236518a0672bd1001ac8d6721b1bfeae9720d6128467b4678da1cf839
mauricioszabo/generic-lsp
status_bar.cljs
(ns generic-lsp.status-bar) (defonce service (atom nil)) (defn consumer [s] (reset! service s))
null
https://raw.githubusercontent.com/mauricioszabo/generic-lsp/ab5d0a62ef9459392758c9549386790a06c31adf/src/generic_lsp/status_bar.cljs
clojure
(ns generic-lsp.status-bar) (defonce service (atom nil)) (defn consumer [s] (reset! service s))
3bd8a1272df072bd76eb86ffb5b418ed59138945d9082ae252dda96bb377ab4d
snmsts/cl-langserver
arglist.lisp
(in-package :ls-base) ;;;; Simple arglist display (defslyfun operator-arglist (name package) (ignore-errors (let ((args (arglist (parse-symbol name (guess-buffer-package package))))) (cond ((eq args :not-available) nil) (t (princ-to-string (cons name args)))))))
null
https://raw.githubusercontent.com/snmsts/cl-langserver/3b1246a5d0bd58459e7a64708f820bf718cf7175/src/helitage/arglist.lisp
lisp
Simple arglist display
(in-package :ls-base) (defslyfun operator-arglist (name package) (ignore-errors (let ((args (arglist (parse-symbol name (guess-buffer-package package))))) (cond ((eq args :not-available) nil) (t (princ-to-string (cons name args)))))))
21e9135fd02fa85f0f8f778c1833a7f0dff981f6dadfdba1c96cbd320035c098
vincenthz/hs-asn1
Encoding.hs
-- | -- Module : Data.ASN1.Encoding -- License : BSD-style Maintainer : < > -- Stability : experimental -- Portability : unknown -- module Data.ASN1.Encoding ( -- * generic class for decoding and encoding stream ASN1Decoding(..) , ASN1DecodingRepr(..) , ASN1Encoding(..) -- * ...
null
https://raw.githubusercontent.com/vincenthz/hs-asn1/c017c03b0f71a3b45165468a1d1028a0ed7502c0/encoding/Data/ASN1/Encoding.hs
haskell
| Module : Data.ASN1.Encoding License : BSD-style Stability : experimental Portability : unknown * generic class for decoding and encoding stream * strict bytestring version | transition class. | encode a stream into a lazy bytestring | decode a strict bytestring into an ASN1Repr stream | encode ...
Maintainer : < > module Data.ASN1.Encoding ( ASN1Decoding(..) , ASN1DecodingRepr(..) , ASN1Encoding(..) , decodeASN1' , decodeASN1Repr' , encodeASN1' ) where import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as L import Data.ASN1.Stream import Data.ASN...
1be1e1d6f657cf333240f760f37f11ebcb15c47e78fa173750f7e00f97382b1a
aarvid/Actors
actors-components.lisp
(in-package #:actors-components) #| ;; ---------------------------------------------------------------------------- ;; Easy priting to repl from threads. (defun pr (item) (print item *standard-output*) (format t "~%")) ;; ---------------------------------------------------------------------------- ;; A printing...
null
https://raw.githubusercontent.com/aarvid/Actors/645552194e505a9131555fd22f2d1337bd92918c/actors-components.lisp
lisp
;; ---------------------------------------------------------------------------- ;; Easy priting to repl from threads. (defun pr (item) (print item *standard-output*) (format t "~%")) ;; ---------------------------------------------------------------------------- ;; A printing actor (def-factory make-printer-acto...
(in-package #:actors-components) (defun broadcast (actors &rest message) (map nil (lambda (actor) (apply #'send actor message)) actors)) (def-factory make-timestamper (&rest msg) ((dest #'lw:do-nothing) (timestamp #'get-universal-time)) (um:dcase msg (:control-command (acto...
ae7815f3b9f4354ad55c18db07ce7faede4ba38cde78f917f3d7be731c6d7b66
ghcjs/jsaddle-dom
InputEvent.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.InputEvent (newInputEvent, getTargetRanges, getTargetRanges_, getInputType, getData, getDataUnsafe, getData...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/InputEvent.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/InputEvent.inputType Mozilla InputEvent.inputType documentation>
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.InputEvent (newInputEvent, getTargetRanges, getTargetRanges_, getInputType, getData, getDataUnsafe, getDataUnchecked, getDataTransfer, getDataTransferUnsafe, getDataTransferUnchecked, InputEvent(..)...
9957fc28ce34c49d6cb289245f427b33de1fcb2dbada44743cf52e7651e7828b
AbstractMachinesLab/caramel
parse_wyc.mli
module Invalid_locations : sig val structure : Lexing.lexbuf -> Location.t list val signature : Lexing.lexbuf -> Location.t list val use_file : Lexing.lexbuf -> Location.t list end module Make_parsable : sig val structure : string -> string * [ structure s ] tries to parse [ s ] as a structure node of the AS...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocamlformat-0.17.0/vendor/parse-wyc/lib/parse_wyc.mli
ocaml
module Invalid_locations : sig val structure : Lexing.lexbuf -> Location.t list val signature : Lexing.lexbuf -> Location.t list val use_file : Lexing.lexbuf -> Location.t list end module Make_parsable : sig val structure : string -> string * [ structure s ] tries to parse [ s ] as a structure node of the AS...
c9f797cc56714391efe9f960e65c62ab89c9223d5a9d13e47634c4c911a15008
abridgewater/nq-clim
basic-sheet.lisp
;;; nq - clim / sheet / basic - sheet ;;; The BASIC - SHEET class ( per CLIM II 7.1 ) . ;;; (cl:defpackage :nq-clim/sheet/basic-sheet (:use :cl :nq-clim/sheet/sheet :nq-clim/sheet/sheet-geometry-mixin :nq-clim/sheet/sheet-hierarchy-protocol :nq-clim/sheet/sheet-notification-protoc...
null
https://raw.githubusercontent.com/abridgewater/nq-clim/11d339fd0ac77b6d624fc5537b170294a191a3de/sheet/basic-sheet.lisp
lisp
nq - clim / sheet / basic - sheet The BASIC - SHEET class ( per CLIM II 7.1 ) . (cl:defpackage :nq-clim/sheet/basic-sheet (:use :cl :nq-clim/sheet/sheet :nq-clim/sheet/sheet-geometry-mixin :nq-clim/sheet/sheet-hierarchy-protocol :nq-clim/sheet/sheet-notification-protocol :...
81f8c1cb5825ee8d8ee37c9ff77054501870bc2aabaa6a9281c815c4aa34ed80
benoitc/erlang-metrics
metrics_tests.erl
Copyright ( c ) 2016 , . %% This file is part of barrel_metrics released under the BSD license . %% See the NOTICE for more information. Created by benoitc on 26/06/16 . -module(metrics_tests). -author("Benoit Chesneau"). -include_lib("eunit/include/eunit.hrl"). setup() -> {ok, _} = application:ensure_a...
null
https://raw.githubusercontent.com/benoitc/erlang-metrics/3ea572b5b6ca4a3e5dfc12009058f8771baf5789/test/metrics_tests.erl
erlang
See the NOTICE for more information.
Copyright ( c ) 2016 , . This file is part of barrel_metrics released under the BSD license . Created by benoitc on 26/06/16 . -module(metrics_tests). -author("Benoit Chesneau"). -include_lib("eunit/include/eunit.hrl"). setup() -> {ok, _} = application:ensure_all_started(metrics), {ok, _} = applicati...
31aca1ad14407895e5d990407df6da7e0d3e69c8e761ebaa926d3ff456c990ec
gregr/dbKanren
common.rkt
#lang racket/base (provide symbolo numbero stringo byteso pairo vectoro booleano integero not-symbolo not-numbero not-stringo not-byteso not-pairo not-vectoro not-booleano not-integero vector==listo bytes==listo <=o <o string<=o string<o absento appendo removeo membero not-membero un...
null
https://raw.githubusercontent.com/gregr/dbKanren/75bccf6fd7f3f62b8edfe0c4fd085ea856644960/dbk/common.rkt
racket
#lang racket/base (provide symbolo numbero stringo byteso pairo vectoro booleano integero not-symbolo not-numbero not-stringo not-byteso not-pairo not-vectoro not-booleano not-integero vector==listo bytes==listo <=o <o string<=o string<o absento appendo removeo membero not-membero un...
3682fb672b0cf0091d9632494363c4f0be2f48f89fd291ec2c017734cbadcd06
active-group/reacl-c
perf.cljs
(ns reacl-c.test-util.perf (:require [reacl-c.base :as base] [reacl-c.dom :as dom] [clojure.data :as data] [active.clojure.lens :as lens] [reacl-c.base :as base] cljs.test)) (def ^:private dummy-ref (reify base/Ref (-deref-ref [th...
null
https://raw.githubusercontent.com/active-group/reacl-c/90e67a38e10561186baa6b83b299b5d2da63fa4f/src/reacl_c/test_util/perf.cljs
clojure
the dynamics the dynamics the wrappers and the error fn? Note: only non-empty fragments here! the leafs FIXME: anything else? lift-class? unknowns? TODO: something else, like [_ _ x _] ...? returns [path differences] path=[item ...] and differences {:name [left right]} dynamics wrappers containers empty fr...
(ns reacl-c.test-util.perf (:require [reacl-c.base :as base] [reacl-c.dom :as dom] [clojure.data :as data] [active.clojure.lens :as lens] [reacl-c.base :as base] cljs.test)) (def ^:private dummy-ref (reify base/Ref (-deref-ref [th...
ece4426c944b59ecf733bb645cb0d824ee93f6fb654eecb1b70f832d392a565b
maximedenes/native-coq
decl_kinds.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/library/decl_kinds.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Informal mathematical status of dec...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Errors open Util open Li...
84e1e8053a10c29cb63295f13a7239e49acff2425c54da902643cecd3de95231
charlesneimog/OM-CKN
iterate.lisp
;;;-*- syntax:COMMON-LISP; Package: (ITERATE :use "COMMON-LISP" :colon-mode :external) -*- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ITERATE , An Iteration Macro ;;; Copyright 1989 by Adapted to ANSI Common Lisp in 2003 by ;;;...
null
https://raw.githubusercontent.com/charlesneimog/OM-CKN/892e146e0cc6b7b9ea7b7c20c19825662dc7b7b5/Sources/quicklisp-packages/iterate.lisp
lisp
-*- syntax:COMMON-LISP; Package: (ITERATE :use "COMMON-LISP" :colon-mode :external) -*- Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that this copyright and permission notice appear in all copies and supporting doc...
ITERATE , An Iteration Macro Copyright 1989 by Adapted to ANSI Common Lisp in 2003 by FIXES . ( v. 1.2 - ansi ) 2004 - 11 - 30 - Joerg Hoehle : a dozen small fixes to various functions 2003 - 12 - 16 - Tested a bit more , implemented FOR - HASHTABLE a...
5784060d671dd33256a17b48f1ed747ab263530de5687b79588a68517fb874be
mhuebert/maria
trusted_frame.cljs
(ns maria.frames.trusted-frame (:require [chia.routing :as routing] [chia.view :as v] [maria.frames.trusted-routes :as routes] [chia.db :as d] [chia.reactive :as reactive])) (v/defclass layout [] [:div {:style {:width "100%" :height "100%"}} #_(remote-progress) (routes/match-r...
null
https://raw.githubusercontent.com/mhuebert/maria/15586564796bc9273ace3101b21662d0c66b4d22/editor/src/maria/frames/trusted_frame.cljs
clojure
(ns maria.frames.trusted-frame (:require [chia.routing :as routing] [chia.view :as v] [maria.frames.trusted-routes :as routes] [chia.db :as d] [chia.reactive :as reactive])) (v/defclass layout [] [:div {:style {:width "100%" :height "100%"}} #_(remote-progress) (routes/match-r...
5cd6f91e80ad980e987621f24e0d90865c3c2763dfd8d3d9ff9f023654dc822c
onyx-platform/onyx-benchmark
aeron_media_driver.clj
(ns onyx-benchmark.aeron-media-driver (:require [clojure.core.async :refer [chan <!!]]) (:import [uk.co.real_logic.aeron Aeron$Context] [uk.co.real_logic.aeron.driver MediaDriver MediaDriver$Context ThreadingMode])) (defn -main [& [threading-mode]] (let [threading-mode (cond (or (nil? threading-mode) ...
null
https://raw.githubusercontent.com/onyx-platform/onyx-benchmark/bad93b27b9d7139330697616b04c31f4f040034b/src/onyx_benchmark/aeron_media_driver.clj
clojure
(ns onyx-benchmark.aeron-media-driver (:require [clojure.core.async :refer [chan <!!]]) (:import [uk.co.real_logic.aeron Aeron$Context] [uk.co.real_logic.aeron.driver MediaDriver MediaDriver$Context ThreadingMode])) (defn -main [& [threading-mode]] (let [threading-mode (cond (or (nil? threading-mode) ...
64f63af769662e1b0bb9359a9dc3cb5175ea76789c94167d022ba307da83e5ef
Zulu-Inuoe/clution
parse.lisp
This file is part of yason , a Common Lisp JSON parser / encoder ;; Copyright ( c ) 2008 - 2014 and contributors ;; All rights reserved. ;; ;; Please see the file LICENSE in the distribution. (in-package :yason) (defconstant +default-string-length+ 20 "Default length of strings that are created while reading ...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/yason-v0.7.6/parse.lisp
lisp
All rights reserved. Please see the file LICENSE in the distribution. would be (cl-ppcre:scan-to-strings "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+|)(?:[eE][-+]?[0-9]+|)" buffer) but we want to operate on streams backward compatibility code end of backward compatibility code
This file is part of yason , a Common Lisp JSON parser / encoder Copyright ( c ) 2008 - 2014 and contributors (in-package :yason) (defconstant +default-string-length+ 20 "Default length of strings that are created while reading json input.") (defvar *parse-object-key-fn* #'identity "Function to call to con...
ddc76a40de47b6ffb106aca2aee29504d15fea1ab055e5e312e34ca910b18d30
haskell-works/avro
RawBlocksSpec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Avro.Decode.RawBlocksSpec where import Avro.Data.Endpoint import Control.Monad (forM_) import Data.Avro (decodeContainerWithEmbeddedSchema, encodeContainerWithSchema, encodeV...
null
https://raw.githubusercontent.com/haskell-works/avro/aeea12b07a1c6fcc3708d1afe7209c5497665296/test/Avro/Decode/RawBlocksSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module Avro.Decode.RawBlocksSpec where import Avro.Data.Endpoint import Control.Monad (forM_) import Data.Avro (decodeContainerWithEmbeddedSchema, encodeContainerWithSchema, encodeValueWithSchema, nullCodec) import Dat...
1323740f5a31c5442b2fd037c1c49e57c0d25c8ee3fa741fe9ff4fdb16880a9a
Bogdanp/racket-smtp-server
client.rkt
#lang racket/base (require net/head net/smtp openssl racket/cmdline) (define-values (subject sender recipients) (let ([the-subject "Hello!"]) (command-line #:once-each [("--subject") subject "the e-mail subject line (default: 'Hello!')" (set! the-subject subject)] #:arg...
null
https://raw.githubusercontent.com/Bogdanp/racket-smtp-server/03d3d3fbbc93086b172164d5bc41319d5f711688/example/client.rkt
racket
#lang racket/base (require net/head net/smtp openssl racket/cmdline) (define-values (subject sender recipients) (let ([the-subject "Hello!"]) (command-line #:once-each [("--subject") subject "the e-mail subject line (default: 'Hello!')" (set! the-subject subject)] #:arg...