_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
a31c5fd4bb9a793db87176e24789d7d2ebf6cb93ebd50778fb3e6a3c46ccfa41
softlab-ntua/bencherl
wooper_class_manager_test.erl
Copyright ( C ) 2003 - 2014 % This file is part of the WOOPER library . % % This library is free software: you can redistribute it and/or modify % it under the terms of the GNU Lesser General Public License or the GNU General Public License , as they are published by the Free Software Foundation , either vers...
null
https://raw.githubusercontent.com/softlab-ntua/bencherl/317bdbf348def0b2f9ed32cb6621e21083b7e0ca/app/sim-diasca/wooper/src/wooper_class_manager_test.erl
erlang
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License or any later version. You can also redistribute it and/or modify it under the terms of the This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; w...
Copyright ( C ) 2003 - 2014 This file is part of the WOOPER library . the GNU General Public License , as they are published by the Free Software Foundation , either version 3 of these Licenses , or ( at your option ) Mozilla Public License , version 1.1 or later . GNU Lesser General Public License and th...
4062d5cb9d2ac666771317119558b5a9e2dd8b4e6e80ee29d4c8c2d1152b4aac
ocsigen/js_of_ocaml
info.ml
Js_of_ocaml compiler * / * Copyright ( C ) 2020 Hugo Heuzard * * 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 , with linking exception ; * either version 2.1 of th...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/6e8200a6f31c2ccfba67fdd1d5db84dd893261ae/compiler/bin-js_of_ocaml/info.ml
ocaml
Js_of_ocaml compiler * / * Copyright ( C ) 2020 Hugo Heuzard * * 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 , with linking exception ; * either version 2.1 of th...
75d585452104a38f2695284ccafd0b3275407ff5df2bbdc7f0d4a6c907991cb1
ebaxt/ring-rewrite
server.clj
(ns com.ebaxt.server (:use [compojure.core] [com.ebaxt.ring-rewrite] [clojure.pprint]) (:require [compojure.route :as route])) (def html-page (slurp "resources/foo.html")) (defroutes app-routes (GET "/" [] (str "<h1>Dude, this is boring</h1>")) (GET "/resources/people/:name" [name] (throw (U...
null
https://raw.githubusercontent.com/ebaxt/ring-rewrite/e8176661a337bfd45882bd7cfffc6920ce4d3d55/test/com/ebaxt/server.clj
clojure
; ; ; curl --header " X - Secret : 42 " localhost:3000 / secret / name / bully <h1>Sorry, that's not it!</h1>
(ns com.ebaxt.server (:use [compojure.core] [com.ebaxt.ring-rewrite] [clojure.pprint]) (:require [compojure.route :as route])) (def html-page (slurp "resources/foo.html")) (defroutes app-routes (GET "/" [] (str "<h1>Dude, this is boring</h1>")) (GET "/resources/people/:name" [name] (throw (U...
078a4d91352edd27d4417d0f29a8d3f54f11f98726d57ce8a39b04758f99f0fc
a-sassmannshausen/guile-config
guix.scm
guix.scm --- GNU Guix package recipe -*- coding : utf-8 -*- ;; Copyright ( C ) 2015 - 2018 < > ;; Author : < > Created : 12 July 2015 ;; This file is part of Guile - Config . ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
null
https://raw.githubusercontent.com/a-sassmannshausen/guile-config/b05957743ee8ab8d111683697a56e46a82429b6f/guix.scm
scheme
This program is free software: you can redistribute it and/or modify it any later version. This program is distributed in the hope that it will be useful, but WITHOUT without even the implied warranty of MERCHANTABILITY or details. with this program. If not, see </>. Commentary: GNU Guix development pac...
guix.scm --- GNU Guix package recipe -*- coding : utf-8 -*- Copyright ( C ) 2015 - 2018 < > Author : < > Created : 12 July 2015 This file is part of Guile - Config . under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License ,...
5d5eb46543efcd2baddd2215c32efe37c443100b706694a304719b62269ddef7
gsakkas/rite
20060321-14:59:04-b1275c5a9b0b11add3e4dd1a9b0bf13c.seminal.ml
type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | While of exp * stmt type heap = (string * int) list let rec lookup h str = match h with # # # # #...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060321-14%3A59%3A04-b1275c5a9b0b11add3e4dd1a9b0bf13c.seminal.ml
ocaml
type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | While of exp * stmt type heap = (string * int) list let rec lookup h str = match h with # # # # #...
9cc74d6f81165dac7ddfc0f2ea9eb7294ebb0e23d6bf71692b3402a2046490df
clingen-data-model/genegraph
types.clj
(ns genegraph.source.graphql.schema.types) (def rdf-to-graphql-type-mappings {:type-mappings [[:sepio/Assertion :Statement] [:sepio/Proposition :Statement] [:prov/Agent :Agent] [:sepio/EvidenceLine :Statement] [:dc/BibliographicResource :BibliographicResource] [:sepio/ProbandWithVariantEvidenc...
null
https://raw.githubusercontent.com/clingen-data-model/genegraph/baae07c26b8ac4913a47d93e2959a8de5b9d63c3/src/genegraph/source/graphql/schema/types.clj
clojure
(ns genegraph.source.graphql.schema.types) (def rdf-to-graphql-type-mappings {:type-mappings [[:sepio/Assertion :Statement] [:sepio/Proposition :Statement] [:prov/Agent :Agent] [:sepio/EvidenceLine :Statement] [:dc/BibliographicResource :BibliographicResource] [:sepio/ProbandWithVariantEvidenc...
ecb80022874ac6f0e32b8e7955ca8cc4dec375e8fca3a2638407382c0ad5b1d6
malcolmreynolds/GSLL
gamma.lisp
Gamma distribution , Sat Sep 30 2006 Time - stamp : < 2009 - 05 - 24 20:16:57EDT gamma.lisp > $ Id$ (in-package :gsl) ;;; /usr/include/gsl/gsl_randist.h ;;; /usr/include/gsl/gsl_cdf.h (defmfun sample ((generator random-number-generator) (type (eql 'gamma)) &key a b) "gsl_ran_gamma" (((mpointer gene...
null
https://raw.githubusercontent.com/malcolmreynolds/GSLL/2f722f12f1d08e1b9550a46e2a22adba8e1e52c4/random/gamma.lisp
lisp
/usr/include/gsl/gsl_randist.h /usr/include/gsl/gsl_cdf.h Examples and unit test
Gamma distribution , Sat Sep 30 2006 Time - stamp : < 2009 - 05 - 24 20:16:57EDT gamma.lisp > $ Id$ (in-package :gsl) (defmfun sample ((generator random-number-generator) (type (eql 'gamma)) &key a b) "gsl_ran_gamma" (((mpointer generator) :pointer) (a :double) (b :double)) :definition :method ...
31a2242a8a555d29bb0184064b6477023afa8d5baf542de27ef6cf54fce708b5
racket/scribble
text-collect.rkt
#lang racket/base (require tests/eli-tester scribble/text/syntax-utils) (provide begin/collect-tests) (module+ main (begin/collect-tests)) (define (begin/collect-tests) (test ;; begin/collect scope etc (begin/collect 1) => 1 (begin/collect 1 2 3) => '(1 2 3) (begin/collect) => '() (begin/collect (de...
null
https://raw.githubusercontent.com/racket/scribble/beb2d9834169665121d34b5f3195ddf252c3c998/scribble-test/tests/scribble/text-collect.rkt
racket
begin/collect scope etc
#lang racket/base (require tests/eli-tester scribble/text/syntax-utils) (provide begin/collect-tests) (module+ main (begin/collect-tests)) (define (begin/collect-tests) (test (begin/collect 1) => 1 (begin/collect 1 2 3) => '(1 2 3) (begin/collect) => '() (begin/collect (define x 1) x) => 1 (begin/co...
174296ca6046d6bed09ba99aed1865998f7653ca413de1e53c84c34f02dd765d
input-output-hk/cardano-sl
RichmenBase.hs
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilies # | Richmen part of LRC DB . module Pos.DB.Lrc.RichmenBase ( -- * Generalization RichmenComponent (..) -- * Getters , getRichmen -- * Operations , putRichmen ) where import Uni...
null
https://raw.githubusercontent.com/input-output-hk/cardano-sl/1499214d93767b703b9599369a431e67d83f10a2/db/src/Pos/DB/Lrc/RichmenBase.hs
haskell
* Generalization * Getters * Operations -------------------------------------------------------------------------- Getters -------------------------------------------------------------------------- -------------------------------------------------------------------------- -------------------------------------------...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE TypeFamilies # | Richmen part of LRC DB . module Pos.DB.Lrc.RichmenBase ( RichmenComponent (..) , getRichmen , putRichmen ) where import Universum import Pos.Binary.Class (Bi, serialize') import ...
9f30fe768c22b469b640225b28bfd79521401b69e53dcd996002e2c6a3ce0c27
larrychristensen/orcpub
modifier_macros.cljc
(ns orcpub.dnd.e5.modifier-macros (:require [orcpub.modifiers :as mods] [orcpub.dnd.e5.skills :as skills] [clojure.string :as s])) (defmacro skill-proficiency-2 [skill-kw source conditions] `(mods/modifier ~'?skill-profs (assoc-in ~'?skill-profs [...
null
https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/src/cljc/orcpub/dnd/e5/modifier_macros.cljc
clojure
(ns orcpub.dnd.e5.modifier-macros (:require [orcpub.modifiers :as mods] [orcpub.dnd.e5.skills :as skills] [clojure.string :as s])) (defmacro skill-proficiency-2 [skill-kw source conditions] `(mods/modifier ~'?skill-profs (assoc-in ~'?skill-profs [...
6cd0325e106f192f9866153aecc09c06dd7b0e642f6b2171db1a1524e1e0d043
mikera/ironclad
test_game.clj
(ns ic.test.test-game (:use clojure.test) (:use [ic protocols engine game map units]) (:require [mc.util :as mcu])) (deftest t2 (let [ng (-> (new-game) (add-player (player {:name "Test player" :side 0 :is-human true})) (set-terrain 2 2 (terrain "Grassland"))) player (get-pla...
null
https://raw.githubusercontent.com/mikera/ironclad/ef647bcd097eeaf45f058d43e9e5f53ce910b4b2/src/test/clojure/ic/test/test_game.clj
clojure
(ns ic.test.test-game (:use clojure.test) (:use [ic protocols engine game map units]) (:require [mc.util :as mcu])) (deftest t2 (let [ng (-> (new-game) (add-player (player {:name "Test player" :side 0 :is-human true})) (set-terrain 2 2 (terrain "Grassland"))) player (get-pla...
6614bf5dfbb6dab9dcad4a13bc06f98422483e09df40f5bbffd215dd59bb7a47
g000001/tagger
lexicon-protocol.lisp
-*- Package : TDB ; Syntax : Common - Lisp ; Mode : Lisp ; Base : 10 -*- Copyright ( c ) 1992 by Xerox Corporation . (cl:in-package :tdb) #|(eval-when (compile eval load) (use-package :sv-resource) (export '(lexicon lexicon-tags lexicon-classes lexicon-open-class lexicon-lookup class-order lexic...
null
https://raw.githubusercontent.com/g000001/tagger/a4e0650c55aba44250871b96e2220e1b4953c6ab/analysis/lexicon-protocol.lisp
lisp
Syntax : Common - Lisp ; Mode : Lisp ; Base : 10 -*- (eval-when (compile eval load) (use-package :sv-resource) (export '(lexicon lexicon-tags lexicon-classes lexicon-open-class lexicon-lookup class-order lexicon-filter ts-lexicon *the-keyword-package* *tokenizer-class* re-read-lexicon))) ...
Copyright ( c ) 1992 by Xerox Corporation . (cl:in-package :tdb) (defvar *the-keyword-package* (find-package :keyword)) (defclass lexicon () ((lexicon-open-class :writer (setf lexicon-open-class)))) (defmethod initialize-instance :before ((lexicon lexicon) &key lexicon-open-class &allow-other-keys...
1fab0b7105c4737eaf195f3f2a09949030674cb47832a53c448ca2d7911a14b7
serperu/secer
typer_mod.erl
-*- erlang - indent - level : 2 -*- %% 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 distr...
null
https://raw.githubusercontent.com/serperu/secer/ffe2f9602356c34c9465c44534c82cc758b809b5/src/typer_mod.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 or implied. See the License for the specific language governing perm...
-*- erlang - indent - level : 2 -*- Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , Author(s ) : The first version of typer was written by Bingwen He with guidance from and . Since ...
e6f979a846b6c3436f894a85ea6c4e675c0679587de11774420684a7e252cd71
quickdocs/quickdocs-api
release.lisp
(defpackage #:quickdocs-api/views/release (:use #:cl) (:import-from #:utopian/views #:defview) (:import-from #:quickdocs-api/views #:jzon-view-class #:make-pagination) (:import-from #:quickdocs-api/models #:release-dist-version #:re...
null
https://raw.githubusercontent.com/quickdocs/quickdocs-api/3efed5c1e490d8dbe2d05a4bd221ed2238720912/views/release.lisp
lisp
(defpackage #:quickdocs-api/views/release (:use #:cl) (:import-from #:utopian/views #:defview) (:import-from #:quickdocs-api/views #:jzon-view-class #:make-pagination) (:import-from #:quickdocs-api/models #:release-dist-version #:re...
4bc07d26040717d121fef19b0b90cf704ca0ad2f4fd3453e862ffdf827e08114
rampion/ReadArgs
ReadArgsSpec.hs
# LANGUAGE ScopedTypeVariables # module Main where import Test.Hspec import ReadArgs import Data.Text (pack) import Filesystem.Path.CurrentOS (fromText) spec :: Spec spec = describe "parseArgsFrom" $ do it "can parse zero arguments" $ parseArgsFrom [] `shouldBe` Just () it "can parse a single ar...
null
https://raw.githubusercontent.com/rampion/ReadArgs/a2e3e38f1e19ee3989db767fc9d5423a9a997105/ReadArgsSpec.hs
haskell
# LANGUAGE ScopedTypeVariables # module Main where import Test.Hspec import ReadArgs import Data.Text (pack) import Filesystem.Path.CurrentOS (fromText) spec :: Spec spec = describe "parseArgsFrom" $ do it "can parse zero arguments" $ parseArgsFrom [] `shouldBe` Just () it "can parse a single ar...
12fe30be96ecacd426cf7834bc187b1335d4b2dfc97266174311c8025b302dce
BranchTaken/Hemlock
test_bit_pop_bit_clz_bit_ctz.ml
open! Basis.Rudiments open! Basis open I256 let test () = let rec test = function | [] -> () | x :: xs' -> begin File.Fmt.stdout |> Fmt.fmt "bit_{pop,clz,ctz} " |> fmt ~alt:true ~zpad:true ~width:64L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt " -> " |> Uns.pp (bit_pop ...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/a07e362d66319108c1478a4cbebab765c1808b1a/bootstrap/test/basis/i256/test_bit_pop_bit_clz_bit_ctz.ml
ocaml
open! Basis.Rudiments open! Basis open I256 let test () = let rec test = function | [] -> () | x :: xs' -> begin File.Fmt.stdout |> Fmt.fmt "bit_{pop,clz,ctz} " |> fmt ~alt:true ~zpad:true ~width:64L ~radix:Radix.Hex ~pretty:true x |> Fmt.fmt " -> " |> Uns.pp (bit_pop ...
4cb553e4af58fde9bb021facf2af4114805dc1661bf70c6ddb2d8d2cff85a188
bdeket/rktsicm
vector-fields.rkt
#lang racket/base (require rackunit "../../main.rkt" "../helper.rkt" ) (define tests (test-suite "calculus/vector-fields" (test-case "R3-rect" (define-coordinates (up x y z) R3-rect) (check-simplified? (((* (expt d/dy 2) x y d/dx) (* (sin x) (cos y))) ...
null
https://raw.githubusercontent.com/bdeket/rktsicm/a742d0c4d1bda06b31292541fe406736894776f9/rktsicm/sicm/tests/calculus/vector-fields.rkt
racket
#lang racket/base (require rackunit "../../main.rkt" "../helper.rkt" ) (define tests (test-suite "calculus/vector-fields" (test-case "R3-rect" (define-coordinates (up x y z) R3-rect) (check-simplified? (((* (expt d/dy 2) x y d/dx) (* (sin x) (cos y))) ...
20c8306d375cf23a41156dbe51f83a76bc5702f95ca37f3ed6bf921f12afed97
haskell/haskell-language-server
LayoutSplitLet.expected.hs
test :: a test = let t :: Bool -> a t False = _w0 t True = _w1 in _
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/LayoutSplitLet.expected.hs
haskell
test :: a test = let t :: Bool -> a t False = _w0 t True = _w1 in _
770629ef6e8ec5ecf74328a7acb93b9bdce903fb46a71dc03afebfbbb1ebb4ca
atolab/apero-core
state.ml
module StateFunc = struct module type S = sig type s type 'a m = s -> s * 'a val return : 'a -> s -> s * 'a val bind : (s -> 'a * 'b) -> ('b -> 'a -> 'c) -> s -> 'c val read : s -> s * s val write : 'a -> s -> 'a * unit val run : (s -> 'a) -> s -> 'a val eval : (s -> 'a * ...
null
https://raw.githubusercontent.com/atolab/apero-core/6e8b9bb8383de641396463fb4e5685b7f135755c/lib/state.ml
ocaml
module StateFunc = struct module type S = sig type s type 'a m = s -> s * 'a val return : 'a -> s -> s * 'a val bind : (s -> 'a * 'b) -> ('b -> 'a -> 'c) -> s -> 'c val read : s -> s * s val write : 'a -> s -> 'a * unit val run : (s -> 'a) -> s -> 'a val eval : (s -> 'a * ...
0515d93f0ae112a8f87653e32906bf7b608278e404e5e01be15db7438c55c9b3
haskell-distributed/distributed-process
Primitives.hs
# LANGUAGE CPP # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveFunctor # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE ExistentialQuantification # {-# LANGUAGE BangPatterns #-} -- | Cloud Haskell primitives -- -- We define these in a separate module so that we don't have to ...
null
https://raw.githubusercontent.com/haskell-distributed/distributed-process/ccc002c928d29335b5eb73be1d876007adaa0b53/src/Control/Distributed/Process/Internal/Primitives.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE DeriveDataTypeable # # LANGUAGE ScopedTypeVariables # # LANGUAGE BangPatterns # | Cloud Haskell primitives We define these in a separate module so that we don't have to rely on the closure combinators * Basic messaging * Channels * Unsafe messaging variants * Advanced messa...
# LANGUAGE CPP # # LANGUAGE DeriveFunctor # # LANGUAGE ExistentialQuantification # module Control.Distributed.Process.Internal.Primitives send , usend , expect , newChan , sendChan , receiveChan , mergePortsBiased , mergePortsRR , unsafeSend , unsafeUSend , unsafeSendChan , unsafeNSend ...
59816f89001d4128606f7a24833c960f6149d8d7e9ce09d41f63ac5f6f4e7275
noprompt/garden
compression.cljc
(ns garden.compression "Stylesheet compression utilities." #?(:clj (:import (java.io StringReader StringWriter) (com.yahoo.platform.yui.compressor CssCompressor)))) ;; --------------------------------------------------------------------- Clojure Clojure stylesheet compression leverages the ...
null
https://raw.githubusercontent.com/noprompt/garden/025c4d8c6a88fdb58def34122af0459e51e309a9/src/garden/compression.cljc
clojure
--------------------------------------------------------------------- provides a performant and excellent solution to CSS compression. --------------------------------------------------------------------- ClojureScript ClojureScript stylesheet compression uses a simple tokenizer and loop/recur to construct a new ...
(ns garden.compression "Stylesheet compression utilities." #?(:clj (:import (java.io StringReader StringWriter) (com.yahoo.platform.yui.compressor CssCompressor)))) Clojure Clojure stylesheet compression leverages the YUI Compressor as it #?(:clj (defn compress-stylesheet "Compress...
ac919b6d0645cfb53da6d01d5ab7428c7a4bc2ccd27fdc5453692a1f91df7800
tsloughter/kuberl
kuberl_v1beta2_deployment_list.erl
-module(kuberl_v1beta2_deployment_list). -export([encode/1]). -export_type([kuberl_v1beta2_deployment_list/0]). -type kuberl_v1beta2_deployment_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v1_list_meta:kuberl_v1_list_meta() }. encod...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta2_deployment_list.erl
erlang
-module(kuberl_v1beta2_deployment_list). -export([encode/1]). -export_type([kuberl_v1beta2_deployment_list/0]). -type kuberl_v1beta2_deployment_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v1_list_meta:kuberl_v1_list_meta() }. encod...
f72b6990d985296895b7ba162deb5fa3363092357eec5d4d5251034e96508ca8
glebec/haskell-programming-allen-moronuki
Ex22_06.hs
# LANGUAGE InstanceSigs # module Ex22_06 where 1 . myLiftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c myLiftA2 abc fa fb = abc <$> fa <*> fb 2 . newtype Reader r a = Reader { runReader :: r -> a } asks :: (r -> a) -> Reader r a asks = Reader 3 . instance Functor (Reader r) where fmap f (R...
null
https://raw.githubusercontent.com/glebec/haskell-programming-allen-moronuki/99bd232f523e426d18a5e096f1cf771228c55f52/22-reader/Ex22_06.hs
haskell
# LANGUAGE InstanceSigs # module Ex22_06 where 1 . myLiftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c myLiftA2 abc fa fb = abc <$> fa <*> fb 2 . newtype Reader r a = Reader { runReader :: r -> a } asks :: (r -> a) -> Reader r a asks = Reader 3 . instance Functor (Reader r) where fmap f (R...
610b89b3c803038e9e8e509bbf91fb90e73f291735763c0689d52941dd862064
tanrax/calculate-wordpress-usage
core.clj
(ns wordpress-used.core (:require [clojure.data.csv :as csv] [clojure.java.io :as io] [clojure.java.shell :as shell]) (:gen-class)) (defn wordpress? "Check if a web page is generated with WordPress" [url] (= (clojure.string/trim-newline (:out (shell/sh "bash" "./is-wordpress/is-wordpress" url))) "true...
null
https://raw.githubusercontent.com/tanrax/calculate-wordpress-usage/fa9fa1dca65c4fdb673ed86acfbbb212c5ae8ff9/src/wordpress_used/core.clj
clojure
Show info Name of the file containing the CSV with the domains Number of threads to be executed. Get domains from CSV Filters leaving those that have not been checked
(ns wordpress-used.core (:require [clojure.data.csv :as csv] [clojure.java.io :as io] [clojure.java.shell :as shell]) (:gen-class)) (defn wordpress? "Check if a web page is generated with WordPress" [url] (= (clojure.string/trim-newline (:out (shell/sh "bash" "./is-wordpress/is-wordpress" url))) "true...
c2145c0383d6038fa163c7a37e7a59233cbe8600d6c051c1b2ae55123932ffb0
haskell-waargonaut/waargonaut
NestedObjs.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} -- | Test case from -- -- -- module Prettier.NestedObjs where import Data.Functor.Identity import Prelude import qualified Data.Text.Lazy.Encoding as TLE import Data.Text.Lazy import Natural import ...
null
https://raw.githubusercontent.com/haskell-waargonaut/waargonaut/ba1dbbc170c2279749ea29bc8aaf375bdb659ad2/test/Prettier/NestedObjs.hs
haskell
# LANGUAGE OverloadedStrings # | Test case from Expected this Got this
# LANGUAGE NoImplicitPrelude # module Prettier.NestedObjs where import Data.Functor.Identity import Prelude import qualified Data.Text.Lazy.Encoding as TLE import Data.Text.Lazy import Natural import Waargonaut.Encode import Waargonaut.Prettier import ...
a3d534ef7843d4fb53366e3ef62d9d1ad5533bd87d080f8ee3d792d4d90d0263
ocsigen/eliom
eliom_lib.server.mli
Ocsigen * * Copyright ( C ) 2011 * * 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 , with linking exception ; * either version 2.1 of the License , or ( at your ...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_lib.server.mli
ocaml
* Deprecated. Use Lwt_log.ign_info_f instead * Marshal an OCaml value into a string. All characters are escaped
Ocsigen * * Copyright ( C ) 2011 * * 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 , with linking exception ; * either version 2.1 of the License , or ( at your ...
9841a9523ceb8851a4c67612661119c6dd2c13b71ef018329e157c0dee52fb20
uncomplicate/clojurecuda
info_test.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) or later ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be boun...
null
https://raw.githubusercontent.com/uncomplicate/clojurecuda/532ef26e0467d7963a37d7806634125ce091728b/test/clojure/uncomplicate/clojurecuda/info_test.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) or later which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) . All rights reserved . (ns uncomplicate.clojurecuda.info-test (:require [midje.sweet :refer :all] [uncomplicate.commons.core :refer [release with-release info]] [uncomplicate.clojurecuda [core :refer :all] [info :refer :all]] [uncom...
36cbb966f317db5d2571296b45b461cb2b9e4c819741b7edc9e977d96fe4acd6
bitnomial/bitcoind-rpc
Bitcoind.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Servant....
null
https://raw.githubusercontent.com/bitnomial/bitcoind-rpc/c9c95b08c4adc479fba94e4e8a5bc5518dfb6a0f/bitcoind-rpc/src/Servant/Bitcoind.hs
haskell
# LANGUAGE OverloadedStrings # * Types related to defaulting * Types related to the client * Client generation mechanism | Exceptions resulting from interacting with bitcoind | The error message returned by bitcoind on failure | An argument with a fixed value | An optional argument | An ordinary argument | Bit...
# LANGUAGE DataKinds # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Servant.Bitcoind ( * C, CX, ...
e92f1b1a8d67b7910d15768dcc872733c30c2c89e58a2cb2644977e3b1267108
sordina/servant-options
Simple.hs
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE LambdaCase # -- from module Simple where import Servant import Data.Text import Text.Read import Data.Time (UTCTime) import GHC.Generics import Data.Aeson import Network.Wai.Handler.Warp impor...
null
https://raw.githubusercontent.com/sordina/servant-options/aa9338b1925e7bc5d65bad35f02aec8c20f8365b/examples/Simple.hs
haskell
# LANGUAGE OverloadedStrings # from
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # # LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # module Simple where import Servant import Data.Text import Text.Read import Data.Time (UTCTime) import GHC.Generics import Data.Aeson import Network.Wai.Handler.Warp import Data.Time.Clock import Network.Wai.Middle...
9f04d3dd4eb6cd84d5d83e1d487a4867c1b8459637df6ff26e6c33133bfb0bf0
bennn/dissertation
main.rkt
#lang typed/racket #:transient (: f (-> Integer Any)) (define (f x) (+ 1 x)) (: g (All (a) (-> Integer a))) (define (g x) (cast (f x) a))
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/QA/transient-expressive/2020-02-19/main.rkt
racket
#lang typed/racket #:transient (: f (-> Integer Any)) (define (f x) (+ 1 x)) (: g (All (a) (-> Integer a))) (define (g x) (cast (f x) a))
bf6f55135acf3aef177b25dae93c552b2182dc61860f410b063bb9d7e78f13fe
nasa/Common-Metadata-Repository
granule_search_format_test.clj
(ns cmr.system-int-test.search.granule-search-format-test "Integration tests for searching granules in various formats" (:require [cheshire.core :as json] [clj-http.client :as client] [clojure.java.io :as io] [clojure.string :as string] [clojure.test :refer :all] [cmr.common.concepts :as cu] [c...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/97fd6b4ae0707f438b32e472b9545809b37dadcd/system-int-test/test/cmr/system_int_test/search/granule_search_format_test.clj
clojure
This granule contains additional file added in the new schema Umm granule size should be the same as the transferSize in the smap granule. An item ingested with and XML preprocessing line to ensure this is tested or the .native extension. .native extension, or not specifying any format. polygon with holes
(ns cmr.system-int-test.search.granule-search-format-test "Integration tests for searching granules in various formats" (:require [cheshire.core :as json] [clj-http.client :as client] [clojure.java.io :as io] [clojure.string :as string] [clojure.test :refer :all] [cmr.common.concepts :as cu] [c...
2620d15e2adea32a7010737447361fab0b05d9ce63c36cd9469618f7f9182e4e
OCamlPro/socaml-analyzer
tlambda.mli
open Common_types type tlambda = | Tlet of tlet | Trec of trec | Tend of tid and tlet = { te_id : tid; te_lam : tcontrol; te_kind : Lambda.let_kind; te_in : tlambda; } and trec = { tr_decls : ( tid * primitive * tid list ) list; tr_in : tlambda; } and tcontrol = | Tvar of tid | Tconst of Lambda.structur...
null
https://raw.githubusercontent.com/OCamlPro/socaml-analyzer/f39121e1d05a9e5bb6f005497eaaa5a67f256d4c/src/tlambda/tlambda.mli
ocaml
| Tassign of tid * tid
open Common_types type tlambda = | Tlet of tlet | Trec of trec | Tend of tid and tlet = { te_id : tid; te_lam : tcontrol; te_kind : Lambda.let_kind; te_in : tlambda; } and trec = { tr_decls : ( tid * primitive * tid list ) list; tr_in : tlambda; } and tcontrol = | Tvar of tid | Tconst of Lambda.structur...
fd0def909c4e57f269ccb1a511ec9811bc87de5a30cb829d0d68263753f3e634
jmmk/javascript-externs-generator
core.cljs
(ns javascript-externs-generator.ui.core (:require [reagent.core :as reagent] [re-frame.core :as rf] [goog.dom :as dom] [javascript-externs-generator.ui.subs] [javascript-externs-generator.ui.handlers] [javascript-externs-generator.ui.views :as ui])) (defn ...
null
https://raw.githubusercontent.com/jmmk/javascript-externs-generator/fe356e38e029d71b7a5585e396e0374720e06728/src/javascript_externs_generator/ui/core.cljs
clojure
(ns javascript-externs-generator.ui.core (:require [reagent.core :as reagent] [re-frame.core :as rf] [goog.dom :as dom] [javascript-externs-generator.ui.subs] [javascript-externs-generator.ui.handlers] [javascript-externs-generator.ui.views :as ui])) (defn ...
516a773d33456a279711bb79895cc26422e2f1caeea989b0a21023b275788194
input-output-hk/project-icarus-importer
Core.hs
# LANGUAGE NumDecimals # {-# LANGUAGE Rank2Types #-} -- | Global constants, configurable via Data.Reflection. module Pos.Core.Configuration.Core ( -- * The configuration structure CoreConfiguration(..) , GenesisConfiguration(..) , HasCoreConfiguration , withCoreConfigurat...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/core/src/Pos/Core/Configuration/Core.hs
haskell
# LANGUAGE Rank2Types # | Global constants, configurable via Data.Reflection. * The configuration structure * For testing - Should probably be moved from the library in JSON, not necessary canonical. | Specifies the genesis | Versioning for values in node's DB | DB format version. When serializing items into th...
# LANGUAGE NumDecimals # module Pos.Core.Configuration.Core ( CoreConfiguration(..) , GenesisConfiguration(..) , HasCoreConfiguration , withCoreConfiguration , coreConfiguration , dbSerializeVersion , defaultCoreConfiguration ) where import ...
b0d1c719affd2e2ee15833635ca4603fecd1000cde692403ff81838023af38ed
haskell-works/hw-dsv
QueryLazy.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module App.Commands.QueryLazy ( cmdQueryLazy ) where import App.Char import App.Commands.Options.Parse import Control.Applicative import...
null
https://raw.githubusercontent.com/haskell-works/hw-dsv/4f1274af383281589165232186f99219479d7898/app/App/Commands/QueryLazy.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DataKinds # # LANGUAGE OverloadedStrings #
# LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # module App.Commands.QueryLazy ( cmdQueryLazy ) where import App.Char import App.Commands.Options.Parse import Control.Applicative import Control.Lens import Control.Monad import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Reso...
23099ca55b24e5568322ee1d0c881f8f99eea5cbce68faf50592a5b704ab025d
MyDataFlow/ttalk-server
mim_ct_rest.erl
%%%============================================================================== %%% File : mim_ct_rest.erl Author : < > %%% Description : Service mocking authentication REST API Created : 6 Aug 2014 by < > %%%============================================================================== -module(mim_ct_r...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/test/mim_ct_rest.erl
erlang
============================================================================== File : mim_ct_rest.erl Description : Service mocking authentication REST API ============================================================================== gen_server exports API ------------------------------------- API ----------...
Author : < > Created : 6 Aug 2014 by < > -module(mim_ct_rest). -behaviour(gen_server). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -export([start/2, stop/0]). -export([listen/0, verify/1, cancel_listen/0, fail/0]). -export([op/1, consume_fail/0, get_basic_au...
738579662d12c5172bb6fe82e0e6acff223309b569993c682ba459fa3bd4f133
ashinn/chibi-scheme
base.scm
;; Miscellaneous Functions (define (translation? x) (and (vector? x) (vector-every exact-integer? x))) (define (permutation? x) (and (translation? x) (let* ((len (vector-length x)) (seen (make-vector len 0))) (let lp ((i 0)) (or (>= i len) (and (< -1 (vector...
null
https://raw.githubusercontent.com/ashinn/chibi-scheme/38fc7e09327bb86d480ce2482df4a119781b64ba/lib/srfi/231/base.scm
scheme
Miscellaneous Functions Intervals Storage Classes Parameters Note safety is ignored in this implementation. Arrays Indexing Converts the raw integer index to the multi-index in domain that would map to it using the default indexer (i.e. iterating over the possible multi-indices in domain in lexicographic orde...
(define (translation? x) (and (vector? x) (vector-every exact-integer? x))) (define (permutation? x) (and (translation? x) (let* ((len (vector-length x)) (seen (make-vector len 0))) (let lp ((i 0)) (or (>= i len) (and (< -1 (vector-ref x i) len) ...
8a8a223dfa0f33be65fb65f50004c2dafd529497486661f172320dd34faf2e28
nathanmarz/cascalog
jcascalog_cascading_test.clj
(ns cascalog.jcascalog-cascading-test (:use clojure.test cascalog.api cascalog.logic.testing cascalog.cascading.testing) (:require [cascalog.cascading.tap :as tap] [cascalog.cascading.io :as io]) (:import [cascalog.test MultiplyAgg RangeOp DoubleOp] [jcascalog Api Su...
null
https://raw.githubusercontent.com/nathanmarz/cascalog/deaad977aa98985f68f3d1cc3e081d345184c0c8/cascalog-core/test/cascalog/jcascalog_cascading_test.clj
clojure
(ns cascalog.jcascalog-cascading-test (:use clojure.test cascalog.api cascalog.logic.testing cascalog.cascading.testing) (:require [cascalog.cascading.tap :as tap] [cascalog.cascading.io :as io]) (:import [cascalog.test MultiplyAgg RangeOp DoubleOp] [jcascalog Api Su...
52a56d6d3dff22f9e0e511a8ea3f55abd773778067e5b15fac1b92b2f20c6aa8
onedata/op-worker
atm_openfaas_result_streamer_registration_report.erl
%%%------------------------------------------------------------------- @author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% Record expressing OpenFaaS result ...
null
https://raw.githubusercontent.com/onedata/op-worker/55775da68df2c5c6bf524bb8a30d8b67bbff04f2/src/modules/automation/task/executor/platforms/openfaas/activity_feed/result_streamer/protocol/reports/atm_openfaas_result_streamer_registration_report.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc Record expressing OpenFaaS result streamer report of type "registration" The record is not persistable, but is encoded to JSON on the activity feed channel. @end -------...
@author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . used in openfaas activity feed . -module(atm_openfaas_result_streamer_registration_report). -author("Lukasz Opiola"). -behaviour(jsonable_record). -include("modules/automation/atm_execution.hrl"...
bbaf00764fbc1484bf9634d79e0ce0c3b8e5b2efbb7309928a0ae21dd7005891
chetmurthy/ensemble
chk_hi_causal.ml
(**************************************************************) * TransisE , ( Version 0 ) * Hebrew University * Copyright Notice * * The contents of this file are subject to copyright by * the Hebrew University , which reserves all rights . Use , * distribution and copying of this m...
null
https://raw.githubusercontent.com/chetmurthy/ensemble/8266a89e68be24a4aaa5d594662e211eeaa6dc89/ensemble/server/layers/debug/chk_hi_causal.ml
ocaml
************************************************************ ************************************************************ ************************************************************ ************************************************************ ************************************************************ ***************...
* TransisE , ( Version 0 ) * Hebrew University * Copyright Notice * * The contents of this file are subject to copyright by * the Hebrew University , which reserves all rights . Use , * distribution and copying of this material is expressly * prohibited except by prior written pe...
3a39d13752cbfd8a2ef04dce9046d29225ca980b568592a9dcf9e971c4568d6d
jellelicht/guix
shadow.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2015 , 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either ...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/system/shadow.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2015 , 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu system shadow) #:use-module (guix records) #:use-module (guix gexp) ...
d3d1acae5a17ce6bfdd7768c0d9fb4770d26c15053d2059ef79a6b0e0c203706
ghcjs/ghcjs-dom
WebGPUCommandBuffer.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.WebGPUCommandBuffer (js_createRenderCommandEncoderWithDescriptor, createRenderC...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/WebGPUCommandBuffer.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/WebGPUCommandBuffer.createRenderCommandEncoderWithDescriptor Mozilla WebGPUCommandBuffer.createRenderCommandEncoderWithDescriptor documentation> | <-US/docs/Web/API/WebGPUCommandBuffer.createRenderCommand...
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.WebGPUCommandBuffer (js_createRenderCommandEncoderWithDescriptor, createRenderCommandEncoderWithDescriptor, createRenderCommandEncoderWithDescriptor_, js_createCo...
4d57e778c6b810a66191bd14e05944f4214698ff4f7ceb5d517e29e3c1b6052b
pfdietz/ansi-test
elt.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Oct 12 19:38:29 2002 Contains : Tests of ELT (in-package :cl-test) (declaim (optimize (safety 3))) ;; elt on lists (deftest elt.1 (signals-error (elt nil 0) type-error) t) (deftest elt.1a (signals-error (elt nil -10) type-error) t) (deftest elt....
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/sequences/elt.lsp
lisp
-*- Mode: Lisp -*- elt on lists ; actually undefined Adjustable arrays ; actually undefined displaced arrays Arrays with fill points Error tests
Author : Created : Sat Oct 12 19:38:29 2002 Contains : Tests of ELT (in-package :cl-test) (declaim (optimize (safety 3))) (deftest elt.1 (signals-error (elt nil 0) type-error) t) (deftest elt.1a (signals-error (elt nil -10) type-error) t) (deftest elt.1b (signals-error (locally (elt nil 0)...
067376316e85ea553a45efd81b11025aa6485da84795153e46020b8027e254b2
fpco/stackage-curator
CorePackages.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ViewPatterns #-} module Stackage.CorePackages ( getCorePackages , getCoreExecutables , getGhcVersion ) where import Control.Monad.State.Strict...
null
https://raw.githubusercontent.com/fpco/stackage-curator/c25cf6959a1d1b3129b18855ddbc7974324cc422/src/Stackage/CorePackages.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings # # LANGUAGE ViewPatterns # Specifically use a lazy Map insert since we inject bottom as a value. If anyone's curious as the presence of the bottom: we need to insert something to avoid cycles. We could keep a separate Set of already-traversed packag...
# LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # module Stackage.CorePackages ( getCorePackages , getCoreExecutables , getGhcVersion ) where import Control.Monad.State.Strict (StateT, execStateT, get, modify, put) import qualified Dat...
d3cf94c6f0f2d99e1bcf9542d716e1c442396dab8f938f8de4b83e759ff954f0
McCLIM/McCLIM
graphics.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) Copyright 2017 by < > ;;; ;;; -----------------------------------------------------...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/670a37df04d9b9c9f092d024130149ac48c8fd81/Backends/PDF/graphics.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- our bezier approximation of...
( c ) Copyright 2017 by < > (in-package #:clim-pdf) (defun put-line* (x1 y1 x2 y2) (pdf:move-to x1 y1) (pdf:line-to x2 y2) (pdf:stroke)) (defun put-circle* (x y radius) (pdf:circle x y radius) (pdf:close-fill-and-stroke)) (defmethod medium-draw-line* ((medium pdf-medium) x1 y1 x2 y2) (let ((tr (me...
ac5805553fb9a85caeb63d2206359ff2646e259042e7622f59c59bd555cf0a42
AlexKnauth/music
add-guitar-part.rkt
#lang agile (require "../time/main.rkt" "../score/main.rkt" "../chord/main.rkt" "../instrument/string-spec.rkt" "../instrument/chord-fingering.rkt") ;; ------------------------------------------------------------------------ (provide score-add-guitar-part) ;; score-add-guitar-par...
null
https://raw.githubusercontent.com/AlexKnauth/music/b4489c27d7c0f7116d769344c787fa76b479e5fa/music/data/instrument/add-guitar-part.rkt
racket
------------------------------------------------------------------------ score-add-guitar-part : Score -> Score ------------------------------------------------------------------------ analyze-chords/harmony-elements : ------------------------------------------------------------------------ ----------------------...
#lang agile (require "../time/main.rkt" "../score/main.rkt" "../chord/main.rkt" "../instrument/string-spec.rkt" "../instrument/chord-fingering.rkt") (provide score-add-guitar-part) (define (score-add-guitar-part s) one per measure (define harmony-elements (analyze-chords/...
52b1cab023a40909beb19f26cbdd8c4d44d4e3fcb78e5402c06262b81112dc48
icicle-lang/zebra-ambiata
test.hs
import Disorder.Core.Main main :: IO () main = disorderMain [ ]
null
https://raw.githubusercontent.com/icicle-lang/zebra-ambiata/394ee5f98b4805df2c76abb52cdaad9fd7825f81/zebra-cli/test/test.hs
haskell
import Disorder.Core.Main main :: IO () main = disorderMain [ ]
809a2df94625ad05157c92ba285fb4b48e87b142a5841567c2c41f932e61b9b4
chef-boneyard/opscode-pushy-server
pushy_node_states_resource.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et @author < > %%% @doc %%% REST resource getting config information for the push jobs %%% @end Copyright 2012 - 2012 Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apac...
null
https://raw.githubusercontent.com/chef-boneyard/opscode-pushy-server/7272326960fcc35eaa99fa8d5f5bd58959755b3e/apps/pushy/src/pushy_node_states_resource.erl
erlang
ex: ts=4 sw=4 et @doc REST resource getting config information for the push jobs @end 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, KIND, either express or...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- @author < > Copyright 2012 - 2012 Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT W...
37b923eeea867947e05219606e23e0e7f0864b3472e902cdedf09c29f17e91cf
openmusic-project/OMChroma
doc-chroma.lisp
(in-package :om) (init-chroma-ref-dir) ; evaluate this line to generate the documentation ; (chroma-classes-reference) (defun chroma-classes-reference () (gen-chroma-reference (gen-lib-entries (find-library "OMChroma") :exclude-packages '("Basic Classes" "Advanced Classes" ...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/5ded34f22b59a1a93ea7b87e182c9dbdfa95e047/sources/om6/doc-chroma.lisp
lisp
evaluate this line to generate the documentation (chroma-classes-reference) GLOBAL SLOTS DEFAULT GEN FUNCTIONS FOR CSOUND"
(in-package :om) (init-chroma-ref-dir) (defun chroma-classes-reference () (gen-chroma-reference (gen-lib-entries (find-library "OMChroma") :exclude-packages '("Basic Classes" "Advanced Classes" "Classes")) *chroma-classes-entries* *chroma-ref-direct...
5e9a4098f327f097654f3533d9673773ef23d8fceb90808368312d12fd1482a9
bradparker/bradparker.com
Main.hs
# LANGUAGE BlockArguments # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -Wall # module Main (main) where import Control.Applicative ((<|>)) import Data.Bool (bool) import Data.Function ((&)) import Network.Wai.Cli (defWaiMain) import Network.Wai.Middleware.ForceSSL (forceSSL) import Network.Wai.Middleware.Gzip ...
null
https://raw.githubusercontent.com/bradparker/bradparker.com/74c16bbdaff1208340d245a01f37810fa8e98552/bradparker.com/usr/local/src/bradparker.com/server/Main.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE BlockArguments # # OPTIONS_GHC -Wall # module Main (main) where import Control.Applicative ((<|>)) import Data.Bool (bool) import Data.Function ((&)) import Network.Wai.Cli (defWaiMain) import Network.Wai.Middleware.ForceSSL (forceSSL) import Network.Wai.Middleware.Gzip ( GzipFiles (GzipIgnore, GzipPreCo...
1ba366c9455737f3ee20de2a7832b02f5fd72a5f7a596802ffde68837ad49655
cbaggers/trivial-macroexpand-all
trivial-macroexpand-all.lisp
(in-package #:trivial-macroexpand-all) #+abcl (defun macroexpand-all (form &optional env) (values (ext:macroexpand-all form env) t t)) #+allegro (defun macroexpand-all (form &optional env) (declare (ignore env)) #+(and allegro-version>= (version>= 8 0)) (values (excl::walk-form form) t nil) #-(and allegro-v...
null
https://raw.githubusercontent.com/cbaggers/trivial-macroexpand-all/933270ac7107477de1bc92c1fd641fe646a7a8a9/trivial-macroexpand-all.lisp
lisp
(in-package #:trivial-macroexpand-all) #+abcl (defun macroexpand-all (form &optional env) (values (ext:macroexpand-all form env) t t)) #+allegro (defun macroexpand-all (form &optional env) (declare (ignore env)) #+(and allegro-version>= (version>= 8 0)) (values (excl::walk-form form) t nil) #-(and allegro-v...
cccd7e07e25a938ce53d99801274915617e7d586a308254081ce6d6bd551ea71
racket/racket7
modcollapse-noctc.rkt
#lang racket/base #| This file is used by the contract system's implementation, so it does not have contracts. Use syntax/modcollapse instead. |# (require racket/string racket/list racket/path "modhelp.rkt") (define (collapse-module-path s relto-mp) ;; relto-mp should be a path, '(lib ...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/collects/syntax/private/modcollapse-noctc.rkt
racket
This file is used by the contract system's implementation, so it does not have contracts. Use syntax/modcollapse instead. relto-mp should be a path, '(lib relative-path collection) or symbol, Used for 'lib paths, so it's always Unix-style strange case: relto is a root directory Used for 'file paths, so it's pla...
#lang racket/base (require racket/string racket/list racket/path "modhelp.rkt") (define (collapse-module-path s relto-mp) ' ( planet ... ) , ' ( file path ) , ' ( submod < relto - mp > symbol ... ) , or a thunk that produces one of those (define relto-submod '()) (define (a...
c719d9db1f9702bf4423738014bc9722d6b15ffb9eaadad97dbe649fd2492c1b
arttuka/reagent-material-ui
work_history_sharp.cljs
(ns reagent-mui.icons.work-history-sharp "Imports @mui/icons-material/WorkHistorySharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def work-history-sharp (c...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/work_history_sharp.cljs
clojure
(ns reagent-mui.icons.work-history-sharp "Imports @mui/icons-material/WorkHistorySharp as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def work-history-sharp (c...
6242c458a78f8de5e8a8cb4399fdd32efae2a61029c46925cc1afbfad382e48e
skypher/cl-oauth
consumer.lisp
(in-package :oauth) (defun uri-with-additional-query-part (uri query-part) "Given a URI string or PURI uri, adds the string QUERY-PART to the end of the URI. If it has query params already they are added onto it." (let* ((puri (puri:uri uri)) (existing-query-part (puri:uri-query puri))) (setf (puri:uri-quer...
null
https://raw.githubusercontent.com/skypher/cl-oauth/a7a463c8c2e4726ab0853d5b6623349b6428cb89/src/core/consumer.lisp
lisp
SBCL 1.1.6 on OS X does not generate proper random values with (random most-positive-fixnum). TODO url-decode
(in-package :oauth) (defun uri-with-additional-query-part (uri query-part) "Given a URI string or PURI uri, adds the string QUERY-PART to the end of the URI. If it has query params already they are added onto it." (let* ((puri (puri:uri uri)) (existing-query-part (puri:uri-query puri))) (setf (puri:uri-quer...
0af0832270900921434a3e4af2e3a151700532a782b133193618b970286529ff
haskell-graphql/graphql-api
ValueSpec.hs
# LANGUAGE DeriveGeneric # module ValueSpec (spec) where import Protolude import Test.Hspec.QuickCheck (prop) import Test.QuickCheck (forAll) import Test.Hspec import qualified GraphQL.Internal.Syntax.AST as AST import GraphQL.Internal.Arbitrary (arbitraryText, arbitraryNonEmpty) import GraphQL.Value ( Object , ...
null
https://raw.githubusercontent.com/haskell-graphql/graphql-api/8ced344485cd638cee50eeb6b653baecea359406/tests/ValueSpec.hs
haskell
| All of the fields in an object should have unique names.
# LANGUAGE DeriveGeneric # module ValueSpec (spec) where import Protolude import Test.Hspec.QuickCheck (prop) import Test.QuickCheck (forAll) import Test.Hspec import qualified GraphQL.Internal.Syntax.AST as AST import GraphQL.Internal.Arbitrary (arbitraryText, arbitraryNonEmpty) import GraphQL.Value ( Object , ...
0c84bb96ed5ef36a3dd420e276cdf75566f2f624856946fceaa3f64d2a3be9c1
thepower/tpnode
txstatus.erl
-module(txstatus). -include("include/tplog.hrl"). -behaviour(gen_server). -define(SERVER, ?MODULE). -define(CLEANUP, 30000). -define(TIMEOUT, 600). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. %% ------------------------------------------------------------------ %% API Function Exports %% ---------...
null
https://raw.githubusercontent.com/thepower/tpnode/a86406f732f75f28ea623a6e28c57909c6b776d4/apps/tpnode/src/txstatus.erl
erlang
------------------------------------------------------------------ API Function Exports ------------------------------------------------------------------ ------------------------------------------------------------------ ------------------------------------------------------------------ -------------------------...
-module(txstatus). -include("include/tplog.hrl"). -behaviour(gen_server). -define(SERVER, ?MODULE). -define(CLEANUP, 30000). -define(TIMEOUT, 600). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -export([start_link/1,get/1,get_json/1,jsonfy/1]). gen_server Function Exports -export([init/1, handl...
1fca3f51d54f3092c9e0ad846dd88ffdd9ee83164df411103b4618022a59e7cb
OCamlPro/freeton_wallet
db.ml
open Db_utils let int32_of_string = Int32.of_string let string_of_string s = s let int64_of_string = Int64.of_string let init = Updated.db_versions_hash let with_dbh f x = let>>> dbh = () in f dbh x module EVENTS : sig type t = { name: string ; args: string ; time: int64 ; ...
null
https://raw.githubusercontent.com/OCamlPro/freeton_wallet/624f359df9a755276e67d3ceb38161c91cf2f99e/src/freeton_crawler_lib/db.ml
ocaml
open Db_utils let int32_of_string = Int32.of_string let string_of_string s = s let int64_of_string = Int64.of_string let init = Updated.db_versions_hash let with_dbh f x = let>>> dbh = () in f dbh x module EVENTS : sig type t = { name: string ; args: string ; time: int64 ; ...
fe2ad3ce10670c64f8573f99c900e5554a8946da6007ab822b9916618f8eed39
ijvcms/chuanqi_dev
map_20007.erl
-module(map_20007). -export([ range/0, data/0 ]). range() -> {36, 24}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/map_data/map_20007.erl
erlang
-module(map_20007). -export([ range/0, data/0 ]). range() -> {36, 24}. data() -> { {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,1,1...
fb6f758e6b6c6637d1facb8d943f1dc5e25bbec3759076152c9926bd2bad3730
heyoka/faxe
node_metrics.erl
%%%------------------------------------------------------------------- @author ( C ) 2020 , < COMPANY > %%% @doc %%% %%% @end Created : 28 . May 2020 15:38 %%%------------------------------------------------------------------- -module(node_metrics). -author("heyoka"). -include("faxe.hrl"). %% API -export([ se...
null
https://raw.githubusercontent.com/heyoka/faxe/f76cbf6d3736509a0e9d414132208274547853ce/apps/faxe/src/lib/node_metrics.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % setup all metrics for a flow , @doc get extra node metrics from a component module @...
@author ( C ) 2020 , < COMPANY > Created : 28 . May 2020 15:38 -module(node_metrics). -author("heyoka"). -include("faxe.hrl"). -export([ setup/3, destroy/3, setup_node_metrics/2, setup_node_metrics/3, destroy_node_metrics/3, process_metrics/2, metric/3, metric/4, metric_name/3, node_metri...
d565fffb379a5b5dd0d4d71ec7ac02b76faca34ea301b87c3061eb20ada5a73f
Deducteam/zenon_modulo
lextptp.mli
Copyright 2005 INRIA $ I d : lextptp.mli , v 1.2 2005 - 11 - 05 11:13:17 doligez Exp $ val token : Lexing.lexbuf -> Parsetptp.token;;
null
https://raw.githubusercontent.com/Deducteam/zenon_modulo/9534fbdca0d009a513cb40d9a5a2a98329835c63/lextptp.mli
ocaml
Copyright 2005 INRIA $ I d : lextptp.mli , v 1.2 2005 - 11 - 05 11:13:17 doligez Exp $ val token : Lexing.lexbuf -> Parsetptp.token;;
12942933ea0b616087c1909ece2a2d6a032a391c93119e19369004649dbdc1cf
shentufoundation/deepsea
NameTablesExt.ml
open AST type ident_table = (ident, string) Hashtbl.t type name_tables = { mutable funcs_tbl : ident_table; mutable methods_tbl : (BinNums.coq_Z, string) Hashtbl.t; mutable vars_tbl : ident_table; mutable funcs_tmps_tbl : (ident, ident_table) Hashtbl.t; mutable methods_...
null
https://raw.githubusercontent.com/shentufoundation/deepsea/970576a97c8992655ed2f173f576502d73b827e1/src/backend/extraction/NameTablesExt.ml
ocaml
open AST type ident_table = (ident, string) Hashtbl.t type name_tables = { mutable funcs_tbl : ident_table; mutable methods_tbl : (BinNums.coq_Z, string) Hashtbl.t; mutable vars_tbl : ident_table; mutable funcs_tmps_tbl : (ident, ident_table) Hashtbl.t; mutable methods_...
44eaeef622a1ad623056fcebda72772d1ed5c4bbdebd21df097194289e0af158
waymonad/waymonad
Seat.hs
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2017 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
null
https://raw.githubusercontent.com/waymonad/waymonad/18ab493710dd54c330fb4d122ed35bc3a59585df/src/Waymonad/Input/Seat.hs
haskell
# SOURCE # # SOURCE # Make sure our seat has a keyboard This isn't really guaranteed, but nothing should depend on this and care about that, since it's going to Nothing This isn't really guaranteed, but nothing should depend on this and care about that, since it's going to Nothing
waymonad A wayland compositor in the spirit of xmonad Copyright ( C ) 2017 This library is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your op...
07b5faa4308e067f3ea73025421cb1073df913aa9d42182f09a5aa8ccf6ccbaa
glguy/advent
11.hs
# Language QuasiQuotes , TemplateHaskell # | Module : Main Description : Day 11 solution Copyright : ( c ) , 2017 License : ISC Maintainer : < > Day 11 asks us to implement a hex grid coordinate system and compute distances on it . < / > * X grid lines are diagonal from @sw@ ...
null
https://raw.githubusercontent.com/glguy/advent/6763583760755ee4a1b6890626d06fafd58673dc/solutions/src/2017/11.hs
haskell
+ 2,1 + 2,0 + 2,1 + 2,0 | Print the solutions to day 11. The input file can be overridden via the command-line. >>> :main | Compute minimum path distance from the origin on the hex grid. [1,1,1,1,1,1] >>> distance <$> [C (-1) (-1),C 1 1,C 2 (-1)] | Translate hex direction to grid projection.
# Language QuasiQuotes , TemplateHaskell # | Module : Main Description : Day 11 solution Copyright : ( c ) , 2017 License : ISC Maintainer : < > Day 11 asks us to implement a hex grid coordinate system and compute distances on it . < / > * X grid lines are diagonal from @sw@ ...
704c7c5d1a4ae2773951dca46912b12dbb5129bcfde175d8c91321c3acd846b8
kupl/LearnML
original.ml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec calc (exp : exp) : int = match exp with | Num a -> a | Plu...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/formula/sub81/original.ml
ocaml
type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) let rec calc (exp : exp) : int = match exp with | Num a -> a | Plu...
341cb6aed2e72f536187b8ea7a2f2db440f3495d4ea36c76ec1c538ca530c53b
ocaml-flambda/ocaml-jst
user_error3.ml
TEST ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) What happens if the user tries to write one of the...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/b1f0cf9f9114128db609bdd5a1edfda1e3144a30/testsuite/tests/jst-modular-extensions/user_error3.ml
ocaml
TEST ocamlc_byte_exit_status = " 2 " * setup - ocamlc.byte - build - env * * ocamlc.byte * * * check - ocamlc.byte - output ocamlc_byte_exit_status = "2" * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) What happens if the user tries to write one of the...
1eb64c852d13098dfbb9bf5552a0f6530239a575d224a3b01c10ec3dc3670627
juji-io/datalevin
pull_parser.cljc
(ns datalevin.test.pull-parser (:require #?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]] :clj [clojure.test :as t :refer [is are deftest testing]]) [datalevin.core :as d] [datalevin.db :as db] [datalevin.datom :as dd] [datalevin.util :as u] [datalevin.pull-parser :...
null
https://raw.githubusercontent.com/juji-io/datalevin/3a99364128a0216834bff767766141f117055566/test/datalevin/test/pull_parser.cljc
clojure
wildcards refs reverse sorting as limit default xform combined combined repeated map spec map spec limits refs attr-expr limit default xform map spec
(ns datalevin.test.pull-parser (:require #?(:cljs [cljs.test :as t :refer-macros [is are deftest testing]] :clj [clojure.test :as t :refer [is are deftest testing]]) [datalevin.core :as d] [datalevin.db :as db] [datalevin.datom :as dd] [datalevin.util :as u] [datalevin.pull-parser :...
44a5b5a9a1acf7642ac3df04f00a26c92edf099150543b4c61646e465d2391c0
bazurbat/chicken-scheme
reexport-tests-2.scm
;;; export of syntax referring to reexported syntax binding (use reexport-m4) (print (baz)) ;;; reexport of renamed syntax (import reexport-m6) (f:s1) ; expands to s2, which is reexported and refers to "s2", which is also visible in this context as "f:s2" (f:s2)
null
https://raw.githubusercontent.com/bazurbat/chicken-scheme/f0c9d1fd8b68eb322e320e65ec40b0bf7d1b41dc/tests/reexport-tests-2.scm
scheme
export of syntax referring to reexported syntax binding reexport of renamed syntax expands to s2, which is reexported and refers to "s2", which is also visible in this context as "f:s2"
(use reexport-m4) (print (baz)) (import reexport-m6) (f:s2)
9360e031bc5bb9c1890b0e4d6658190b43d6de58eec9b0ddf8f824baedcb987b
rbkmoney/consuela
consuela_client.erl
%%% %%% Simplistic Consul HTTP API client. -module(consuela_client). %% api -type datacenter() :: iodata(). -type token() :: iodata(). -type url() :: iodata(). cow_qs : qs_vals ( ) -type query() :: [{binary(), binary() | true}]. -type headers() :: [{binary(), {binary(), list({binary(), binary()} | binary())}}]. -...
null
https://raw.githubusercontent.com/rbkmoney/consuela/56d065bff0f1c8de4cede40d670b9061942b4ea8/src/consuela_client.erl
erlang
Simplistic Consul HTTP API client. api pulse api bytes milliseconds milliseconds pulse
-module(consuela_client). -type datacenter() :: iodata(). -type token() :: iodata(). -type url() :: iodata(). cow_qs : qs_vals ( ) -type query() :: [{binary(), binary() | true}]. -type headers() :: [{binary(), {binary(), list({binary(), binary()} | binary())}}]. -opaque t() :: #{ url := binary(), query :=...
8ee50858e4c45bb08218008c45edc83f2e5a3dfa279df66a979265db76dcfd60
ThomasHintz/keep-the-records
storage-funcs.scm
;;; utilities (use srfi-19 http-session spiffy-cookies http-session spiffy-cookies) (load "src/db/db-interface") (import db-interface) (load "src/utils/macs") (import macs) (define (todays-date) (date->string (current-date) "~Y/~m/~d")) (define (store? test) (if (> (length test) 0) #t #f)) ;;; macros (define-sy...
null
https://raw.githubusercontent.com/ThomasHintz/keep-the-records/c20e648e831bed2ced3f2f74bfc590dc06b5f076/storage-funcs.scm
scheme
utilities macros (define-syntax define-db-func (syntax-rules () ((define-db-func opts (procs ...)) (define (prop opts . prop) (if (store? prop) (db-store (car prop) "nepco" procs ...) club-meetings looks like this (("2013/01/17" . 0) (define (day-points club name date . points) (if (s...
(use srfi-19 http-session spiffy-cookies http-session spiffy-cookies) (load "src/db/db-interface") (import db-interface) (load "src/utils/macs") (import macs) (define (todays-date) (date->string (current-date) "~Y/~m/~d")) (define (store? test) (if (> (length test) 0) #t #f)) (define-syntax with-default (synt...
890627b726887dd83b659456585c1f14b99653d487d19a1d9fa6e354e0d7efd7
esl/MongooseIM
ct_helper.erl
-module(ct_helper). -export([is_ct_running/0, repeat_all_until_all_ok/1, repeat_all_until_all_ok/2, repeat_all_until_any_fail/1, repeat_all_until_any_fail/2, groups_to_all/1]). -type group_name() :: atom(). -type group_def_incomplete() :: {group_name(), [any()]}. -type gro...
null
https://raw.githubusercontent.com/esl/MongooseIM/367f27f920bbcb969ac016e923567ee45c34e38d/big_tests/tests/ct_helper.erl
erlang
We exclude forever @doc See repeat_all_until_all_ok/2 @doc repeat_all_until_all_ok/2 will rewrite your group definitions so that For example, for the following definitions: [{accounts, [sequence], [change_password, check_password_hash]}, {sessions, [sequence], [num_resources_num, kick_session]}, {vcard,...
-module(ct_helper). -export([is_ct_running/0, repeat_all_until_all_ok/1, repeat_all_until_all_ok/2, repeat_all_until_any_fail/1, repeat_all_until_any_fail/2, groups_to_all/1]). -type group_name() :: atom(). -type group_def_incomplete() :: {group_name(), [any()]}. -type gro...
9d2a2cd03c9f53f9c3301489d14f037210d8d7f2a82b2f8a7e725d27bedc396a
BinaryAnalysisPlatform/bap
bap_primus_env.mli
open Bap.Std open Bap_primus_types module Generator = Bap_primus_generator type exn += Undefined_var of var val generated : (var * value) Bap_primus_observation.t module Make(Machine : Machine) : sig val get : var -> value Machine.t val set : var -> value -> unit Machine.t val add : var -> Generator.t -> unit...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/97fb7fa6a8a90faeae2b077d8ad59b8b882d7c32/lib/bap_primus/bap_primus_env.mli
ocaml
open Bap.Std open Bap_primus_types module Generator = Bap_primus_generator type exn += Undefined_var of var val generated : (var * value) Bap_primus_observation.t module Make(Machine : Machine) : sig val get : var -> value Machine.t val set : var -> value -> unit Machine.t val add : var -> Generator.t -> unit...
b9bc49ac3d6851b205f43d16c2269d5e53a21bf94d0a918fcfe21fa52ae80a6b
justinmeiners/exercises
2_28.scm
(define (fringe x) (cond ((null? x) '()) ((pair? x) (append (fringe (car x)) (fringe (cdr x)))) (else (list x)))) (define x (list (list 1 2) (list 3 4))) (display (fringe x))
null
https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/2/2_28.scm
scheme
(define (fringe x) (cond ((null? x) '()) ((pair? x) (append (fringe (car x)) (fringe (cdr x)))) (else (list x)))) (define x (list (list 1 2) (list 3 4))) (display (fringe x))
ada0f3728979bbae7752459623b95dd87edd6d5bf5ce63057c0db93feccf9bd3
dfinity/motoko
source_lexer.mli
val token : Lexer_lib.mode -> Lexing.lexbuf -> Source_token.token (* raise Error *)
null
https://raw.githubusercontent.com/dfinity/motoko/399b8e8b0b47890388cd38ee0ace7638d9092b1a/src/mo_frontend/source_lexer.mli
ocaml
raise Error
8eab378b324678bbdcd7fd9cf2cf938f2e699c3deb874bf71ed05599bd9def23
slyrus/abcl
source-transform.lisp
;;; source-transform.lisp ;;; Copyright ( C ) 2004 - 2005 $ Id$ ;;; ;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any later v...
null
https://raw.githubusercontent.com/slyrus/abcl/881f733fdbf4b722865318a7d2abe2ff8fdad96e/src/org/armedbear/lisp/source-transform.lisp
lisp
source-transform.lisp This program is free software; you can redistribute it and/or either version 2 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public L...
Copyright ( C ) 2004 - 2005 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . (...
ced4aef9580d373a4234baeb715eeb3b7062b0bae15e7bcf9fe61fc8d595e67c
ravichugh/djs
test01.ml
#use "tests/functional/arrays/__arrays.ml" val tup0 :: {(and (v::Arr(Int)) (packed v) (= (len v) 0))} let _ :: {(= v 0)} = ([Int] length) tup0 in let _ :: Top = ([Int] geti) tup0 0 in let _ :: {(or (Int v) (= v undefined))} = ([Int] geti) tup0 0 in let _ :: {(= v undefined)} = ([Int] geti) tup0 0 in let tup1 = ([In...
null
https://raw.githubusercontent.com/ravichugh/djs/c4a13e06adb3e0945f39966523a4d944448c1941/tests/functional/arrays/test01.ml
ocaml
#use "tests/functional/arrays/__arrays.ml" val tup0 :: {(and (v::Arr(Int)) (packed v) (= (len v) 0))} let _ :: {(= v 0)} = ([Int] length) tup0 in let _ :: Top = ([Int] geti) tup0 0 in let _ :: {(or (Int v) (= v undefined))} = ([Int] geti) tup0 0 in let _ :: {(= v undefined)} = ([Int] geti) tup0 0 in let tup1 = ([In...
4f067da48440d09b1df9f7e952eed2826ef40a6245a359807751ac4d2bad7881
lem-project/lem
packages.lisp
(defpackage micros/backend (:use cl) (:export *debug-swank-backend* *log-output* sldb-condition compiler-condition original-condition message source-context condition severity with-compilation-hooks make-lo...
null
https://raw.githubusercontent.com/lem-project/lem/c1c3d35905bfd0c6d1af1df4f7c6a7f415a1c7e9/lib/micros/packages.lisp
lisp
interrupt macro for the backend inspector related symbols package helper for backend classes standard-class readers generic function readers method readers slot readers generic function protocol #:inspect-slot-for-emacs These are user-configurable variables: These are re-exported directly from the backend:
(defpackage micros/backend (:use cl) (:export *debug-swank-backend* *log-output* sldb-condition compiler-condition original-condition message source-context condition severity with-compilation-hooks make-lo...
39b64e9ffc685cb4eec8460696f62aa716f4588b499464eacd3a4f62198ecbfc
andrewthad/primitive-containers
Internal.hs
# LANGUAGE KindSignatures # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # # LANGUAGE UnboxedTuples # # LANGUAGE MagicHash # # OPTIONS_GHC -O2 -Wall # module Data.Diet.Map.Strict.Internal ( Map , empty , singleton , map , append , lookup...
null
https://raw.githubusercontent.com/andrewthad/primitive-containers/3eb6014e9d9199dff11c60bca1b169f1da851aaf/src/Data/Diet/Map/Strict/Internal.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE RankNTypes # list conversion The key array is twice as long as the value array since everything is stored as a range. Also, figure out how to Note: this is only correct when the function is a bijection. keys a values a keys b values b here we know that hiA > loA implementa...
# LANGUAGE KindSignatures # # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # # LANGUAGE UnboxedTuples # # LANGUAGE MagicHash # # OPTIONS_GHC -O2 -Wall # module Data.Diet.Map.Strict.Internal ( Map , empty , singleton , map , append , lookup , concat , equals , showsPrec , liftShowsPrec2 ...
9b30723cd64cd6815b6a45c6fa46bc7861fde09bfb6a65bbb5302b5da7169990
LightAndLight/typed-cfg
LibraryLMS.hs
{-# LANGUAGE RankNTypes #-} # LANGUAGE NoImplicitPrelude # module LibraryLMS where import LMS import Language.Haskell.TH.Syntax import Prelude hiding (Applicative(..)) map' :: (forall r . Ops r => (r a -> r b)) -> CFG () var c a -> CFG () var c b map' f = Map () (CodeOps (_lam $ \x -> f x)) (<.>) :: CFG () var c (a ...
null
https://raw.githubusercontent.com/LightAndLight/typed-cfg/ceb3c8d3ea8990959835af1d2cc9bd3dbb100502/src/LibraryLMS.hs
haskell
# LANGUAGE RankNTypes # | T → ε | "(" T ")" T | T ::= e | '(' U ')' T U ::= e | '{' V '}' U V ::= e | '{' T '}' V
# LANGUAGE NoImplicitPrelude # module LibraryLMS where import LMS import Language.Haskell.TH.Syntax import Prelude hiding (Applicative(..)) map' :: (forall r . Ops r => (r a -> r b)) -> CFG () var c a -> CFG () var c b map' f = Map () (CodeOps (_lam $ \x -> f x)) (<.>) :: CFG () var c (a -> b) -> CFG () var c a -> C...
67ac0f65c08587ff45c0c6412358b5bfc76b35ea368fea23b64aa48d648d765c
chrisa/acts_as_encrypted
encserver.erl
@author author < > YYYY author . %% @doc TEMPLATE. -module(encserver). -author('author <>'). -export([start/0, stop/0]). ensure_started(App) -> case application:start(App) of ok -> ok; {error, {already_started, App}} -> ok end. @spec start ( ) - > ok %% @doc Start the encserver server. ...
null
https://raw.githubusercontent.com/chrisa/acts_as_encrypted/587558a31876dfbbc47d7ab2070782fd3d9395d7/server/src/encserver.erl
erlang
@doc TEMPLATE. @doc Start the encserver server. @doc Stop the encserver server.
@author author < > YYYY author . -module(encserver). -author('author <>'). -export([start/0, stop/0]). ensure_started(App) -> case application:start(App) of ok -> ok; {error, {already_started, App}} -> ok end. @spec start ( ) - > ok start() -> encserver_deps:ensure(), ensure_sta...
eba41f6795aaec4b095f8c5d6eba76681c730fbc852b97d8fb16e4cd733d060d
achirkin/vulkan
VK_KHR_multiview.hs
# OPTIONS_GHC -fno - warn - missing - pattern - synonym - signatures # # OPTIONS_HADDOCK not - home # {-# LANGUAGE DataKinds #-} {-# LANGUAGE MagicHash #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE Strict #-} {-# LANGUAGE ViewPatterns #-} module Graphics.Vulkan.Ext.VK_KHR_multiview * Vulkan ex...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_KHR_multiview.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE MagicHash # # LANGUAGE Strict # # LANGUAGE ViewPatterns # | supported: @vulkan@ author: @KHR@ type: @device@ Extension number: @54@ Required extensions: 'VK_KHR_get_physical_device_properties2'. ** Required extensions: 'VK_KHR_get_physical_device_p...
# OPTIONS_GHC -fno - warn - missing - pattern - synonym - signatures # # OPTIONS_HADDOCK not - home # # LANGUAGE PatternSynonyms # module Graphics.Vulkan.Ext.VK_KHR_multiview * Vulkan extension : @VK_KHR_multiview@ contact : @Jeff Bolz @jeffbolznv@ VkPhysicalDeviceMultiviewFeaturesKHR, VkPhysicalDe...
6b68a49280cae7f1df3fe9d2408d062c937a60ffba55af14b461a58f88570e94
pietervdvn/ALGT
Expression.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module TypeSystem.Expression where {- This module defines expressions for functions -} import Utils.Utils import Utils.ToString import Utils.ToStringExtra import TypeSystem.Types import TypeSystem.ParseTree import TypeSystem.Syntax import TypeSystem....
null
https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/TypeSystem/Expression.hs
haskell
This module defines expressions for functions a 'value' a variable function call; not allowed in pattern matching checks wether the expression is built by this smaller rule. describes a pattern that searches a context returns as much typeinfo as possible, thus also the parsing rule choice (index of the option) ...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # module TypeSystem.Expression where import Utils.Utils import Utils.ToString import Utils.ToStringExtra import TypeSystem.Types import TypeSystem.ParseTree import TypeSystem.Syntax import TypeSystem.BNF import qualified Data.Map as M import Data.Map ...
8336534a801aca4b17f3ac022572b9903b665572fd0e690d376de824cbb2e290
inaka/serpents
spts_api_status_SUITE.erl
-module(spts_api_status_SUITE). -author(''). -include_lib("mixer/include/mixer.hrl"). -mixin([ {spts_test_utils, [ init_per_suite/1 , end_per_suite/1 ]} ]). -export([all/0]). -export([returns_ok/1]). -spec all() -> [atom()]. all() -> spts_test_utils:all(?MODULE). -spec retu...
null
https://raw.githubusercontent.com/inaka/serpents/b21b63cee117e0b98fd3a9be4fb326e9de3ee861/test/spts_api_status_SUITE.erl
erlang
-module(spts_api_status_SUITE). -author(''). -include_lib("mixer/include/mixer.hrl"). -mixin([ {spts_test_utils, [ init_per_suite/1 , end_per_suite/1 ]} ]). -export([all/0]). -export([returns_ok/1]). -spec all() -> [atom()]. all() -> spts_test_utils:all(?MODULE). -spec retu...
6c406eced40b76c1b2ccbe43cbb6b5dbf62060d2459c3664093d8c097a7d6f10
unifydb/unifydb
pull.clj
(ns unifydb.query.pull (:require [clojure.string :as str] [unifydb.binding :as bind] [unifydb.id :refer [id?]] [unifydb.util :as util :refer [deep-merge]])) (defn pull-exp? [exp] (and (list? exp) (= (first exp) 'pull))) (defn pull-exp [entity query] (list 'pull entity query))...
null
https://raw.githubusercontent.com/unifydb/unifydb/4c253eab5c8cf17c8188ec774e66c2f8211451a5/src/unifydb/query/pull.clj
clojure
--------- Overview of the strategy here: with bindings that will return entity IDs pull for each pull expression them, constraining each pull query using the list of entity IDs query. transacts a fact whose value is a map where all the keys are unifydb ids, this code will consider that map to be a su...
(ns unifydb.query.pull (:require [clojure.string :as str] [unifydb.binding :as bind] [unifydb.id :refer [id?]] [unifydb.util :as util :refer [deep-merge]])) (defn pull-exp? [exp] (and (list? exp) (= (first exp) 'pull))) (defn pull-exp [entity query] (list 'pull entity query))...
4a9ff1ef0b2c7e7f72e13d5bd8999a118606d31727821360c4b495ce5e13802f
basho/riak_pipe
riak_pipe_w_crash.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2011 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the Li...
null
https://raw.githubusercontent.com/basho/riak_pipe/a341b653408bd1517ccdd0f54ec27be1005dbeba/src/riak_pipe_w_crash.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2011 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(riak_pipe_w_crash). -b...
254ad6635db42d43b03c8df20ea3aa1387b9db756367ba0e62d9beb6b3269bc5
nuvla/api-server
configuration.cljc
(ns sixsq.nuvla.server.resources.spec.configuration (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.configuration-template :as ps] [sixsq.nuvla.server.resources.spec.configuration-template-nuvla :as nuvla] [sixsq.nuvla.server.resources.spec.configuration-template-session-github...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/spec/configuration.cljc
clojure
Note that all of the keys and keys specs are already defined list all attributes metadata.
(ns sixsq.nuvla.server.resources.spec.configuration (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.configuration-template :as ps] [sixsq.nuvla.server.resources.spec.configuration-template-nuvla :as nuvla] [sixsq.nuvla.server.resources.spec.configuration-template-session-github...
d2d36952e288b321d0468d2e8ba49d991c331bcbbaf1271e5c18ca67e3745033
gator1/jepsen
nemesis.clj
(ns jepsen.cockroach.nemesis "Nemeses for CockroachDB" (:require [jepsen [client :as client] [control :as c] [nemesis :as nemesis] [net :as net] [generator :as gen] [reconnect :as rc] [util :as util :refer [letr]]] ...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/cockroachdb/src/jepsen/cockroach/nemesis.clj
clojure
duration between interruptions seconds duration of an interruption seconds Common definitions ;;;;;;;;;;;;;;;;;;;;;; unwrap :f [name, inner] -> :f inner Function that selects our specific ops wrap :f inner -> :f [name, inner] ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; empty nemesis random ...
(ns jepsen.cockroach.nemesis "Nemeses for CockroachDB" (:require [jepsen [client :as client] [control :as c] [nemesis :as nemesis] [net :as net] [generator :as gen] [reconnect :as rc] [util :as util :refer [letr]]] ...
397869e5b6a54cb33f01f6b3d78ba1f4a582fb282ab725fbae758dbce4d09c1e
helpshift/mongrove
data.clj
(ns mongrove.generative.data (:require [clojure.spec.alpha :as s] [clojure.test.check.generators :as gen] [mongrove.core :as mcore])) (defonce test-db "gen-test-db") (defn gen-data-from-spec "Generate data from clojure.spec" [spec count] (gen/sample (s/gen spec) count)) ;; Insert data (defn in...
null
https://raw.githubusercontent.com/helpshift/mongrove/85f4723d7a11a17bb1fcd344250b6b371e790331/test/mongrove/generative/data.clj
clojure
Insert data
(ns mongrove.generative.data (:require [clojure.spec.alpha :as s] [clojure.test.check.generators :as gen] [mongrove.core :as mcore])) (defonce test-db "gen-test-db") (defn gen-data-from-spec "Generate data from clojure.spec" [spec count] (gen/sample (s/gen spec) count)) (defn insert-data-from-...
9c3062b66a57859b543f0817992e235b5fcf069394aa6425ee6f514109823b9b
rabbitmq/rabbitmq-ha
rabbit_mirror_queue_misc.erl
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 distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-ha/ec16a25cc6175f4cdf10421f4ac488090d6a0696/src/rabbit_mirror_queue_misc.erl
erlang
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.
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 RabbitMQ . The Initial Developer of the Original Code is VMware , Inc. Copyright ( c ) 2007 - 2010 VMware , Inc. All rights reserved . -module(rabbi...
113723a0981e3a2a8dd667afe734ed3c1b7862f884b6a9bc55b7c99cfafcd1af
janestreet/hardcaml_verify
hardcaml_verify_kernel.ml
module Basic_gates = Basic_gates module Cnf = Cnf module Comb_gates = Comb_gates module Dimacs = Dimacs module Is_one_hot = Is_one_hot module Label = Label module Nusmv = Nusmv module Sat = Sat module Sec = Sec module Solver = Solver module Tseitin = Tseitin
null
https://raw.githubusercontent.com/janestreet/hardcaml_verify/232b251e238d0515ef618a35b6c644ac3bb29600/src/hardcaml_verify_kernel.ml
ocaml
module Basic_gates = Basic_gates module Cnf = Cnf module Comb_gates = Comb_gates module Dimacs = Dimacs module Is_one_hot = Is_one_hot module Label = Label module Nusmv = Nusmv module Sat = Sat module Sec = Sec module Solver = Solver module Tseitin = Tseitin
dc37b45fb9344ed80416fe1a16290f645113c4990da0bb06b02e2d674071723c
spell-music/csound-expression
Patch.hs
# OPTIONS_GHC -fno - warn - missing - signatures # -- | Patches -- -- Collection of beautiful timbres. To try the instrument with midi device just type in the interpreter: -- > > dac $ atMidi hammondOrgan -- If you don't have the real device, you can try the virtual midi: -- -- > > vdac $ atMidi vibraphone1 -- The ...
null
https://raw.githubusercontent.com/spell-music/csound-expression/b2ebcfc7f7cf62d5e67779fea0aacefa3724db74/csound-catalog/src/Csound/Patch.hs
haskell
| Patches Collection of beautiful timbres. To try the instrument with midi device just type in the interpreter: If you don't have the real device, you can try the virtual midi: > > vdac $ atMidi vibraphone1 * Electric piano * Organ * Accordeon * Choir * Pad * Lead ** Lead Monosynth * Bowed * Plucked *...
# OPTIONS_GHC -fno - warn - missing - signatures # > > dac $ atMidi hammondOrgan The function @atMidi@ invokes a @Patch@ with . module Csound.Patch( Epiano1(..), epiano1, epiano1', MutedPiano(..), mutedPiano, mutedPiano', amPiano, fmPiano, epiano2, epianoHeavy, epianoBright, vibraphonePiano1, vibraphone...
e9c85654a1b5c3c672acf09f2722aff0fb1b7c015e93c248c2ae60b26dd2a324
EligiusSantori/L2Apf
target_unselected.scm
(module system racket/base (require "../../packet.scm") (provide game-server-packet/target-unselected) (define (game-server-packet/target-unselected buffer) (let ((s (open-input-bytes buffer))) (list (cons 'id (read-byte s)) (cons 'object-id (read-int32 #f s)) (cons 'position (read-point ...
null
https://raw.githubusercontent.com/EligiusSantori/L2Apf/30ffe0828e8a401f58d39984efd862c8aeab8c30/packet/game/server/target_unselected.scm
scheme
(module system racket/base (require "../../packet.scm") (provide game-server-packet/target-unselected) (define (game-server-packet/target-unselected buffer) (let ((s (open-input-bytes buffer))) (list (cons 'id (read-byte s)) (cons 'object-id (read-int32 #f s)) (cons 'position (read-point ...
ced73dd1f1f715f796f3406e027fdb26e22ec2201d5e07865ae2f8ad4d895945
sasha-glv/boards-io
context.clj
(remove-ns 'dev) (ns dev (:require [boards-io.system :as s] [boards-io.handler :as h] [boards-io.parser :as parser] [clojure.pprint :as pp] [datomic.api :as d] [om.next.server :as om])) (in-ns 'dev) (def token "token-yada-yada") (def conn (:connection (:d...
null
https://raw.githubusercontent.com/sasha-glv/boards-io/bbe97e68cfa9a25d7ef0e27d1997f941a33fef4b/resources/context.clj
clojure
(remove-ns 'dev) (ns dev (:require [boards-io.system :as s] [boards-io.handler :as h] [boards-io.parser :as parser] [clojure.pprint :as pp] [datomic.api :as d] [om.next.server :as om])) (in-ns 'dev) (def token "token-yada-yada") (def conn (:connection (:d...
f2d204f9dc379e18d6acebd461b69b9829a4afeac5f6fdd9852b00a3fa948c8d
korya/efuns
bytelibrarian.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/ocamlsrc/compat/2.04/include/bytelibrarian.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : bytelibrarian.mli , v 1.1 200...
6f99eba75a50bfac546dbf32078b4ec2478cb02fff626b067e8236d4764e8c8a
javalib-team/sawja
jControlFlow.ml
* This file is part of SAWJA * Copyright ( c)2007 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * as publ...
null
https://raw.githubusercontent.com/javalib-team/sawja/8307a939c30dc3b9dd2586842b28aa9b10776562/src/jControlFlow.ml
ocaml
Usefull functions for program pointers access functions return true if the method m is declared to throw exceptions of a subtype of exn If we are in a pp, we should have code available. Lookup and resolve procedure super = java.lang.object TODO : need to be accelerated (store intermediate result for future...
* This file is part of SAWJA * Copyright ( c)2007 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * as publ...
6c3b80d7ec002b55627b99a6912550a3f931e0be2a92a3bc1648876c3a0fa5aa
Jobhdez/scheme-to-c
parsing-tests.lisp
(in-package #:manifold-tests) (deftest test-parse-int () "Test if parsing an int works." (is (equalp (manifold-scheme::parse-exp 3) (manifold-scheme:make-int :i 3)))) (deftest test-parse-var () "Test if parsing a var works." (is (equalp (manifold-scheme::parse-exp 'f) (manifold-scheme:make-v...
null
https://raw.githubusercontent.com/Jobhdez/scheme-to-c/84992b7eecf0269ed09a60e0dbd3608d2e31aa74/tests/parsing-tests.lisp
lisp
(in-package #:manifold-tests) (deftest test-parse-int () "Test if parsing an int works." (is (equalp (manifold-scheme::parse-exp 3) (manifold-scheme:make-int :i 3)))) (deftest test-parse-var () "Test if parsing a var works." (is (equalp (manifold-scheme::parse-exp 'f) (manifold-scheme:make-v...
0225883e80ea85aedb86692c12d2f022485360c2c2c572cdccb1166cb50d82f8
Ashe/HSRogue
HandleInterfaceEvents.hs
# LANGUAGE ScopedTypeVariables # module HandleInterfaceEvents ( interfaceAction , interfaceActionWithMouse ) where import Apecs hiding (Map) import SDL hiding (get) import SDL.Font import Types as T import Common import Components -- For keyboard events that take place in the game interfaceAction :: InterfaceMode ...
null
https://raw.githubusercontent.com/Ashe/HSRogue/ced7b7631a3dd4f0e6919ae98bda1c4316c8be38/src/HandleInterfaceEvents.hs
haskell
For keyboard events that take place in the game Do something in game in response to the mouse Use context specific bindings to ascertain intent Initial bindings for intents Other functions
# LANGUAGE ScopedTypeVariables # module HandleInterfaceEvents ( interfaceAction , interfaceActionWithMouse ) where import Apecs hiding (Map) import SDL hiding (get) import SDL.Font import Types as T import Common import Components interfaceAction :: InterfaceMode -> GameMode -> Keycode -> System' () interfaceAction...
a7c6f134a4ccdf422d6979c035e895adaec6e0dfe16dd18b40924a4cee226201
ocsigen/wikidoc
ocsigen_messages.ml
let warning = print_endline
null
https://raw.githubusercontent.com/ocsigen/wikidoc/8c10fd2998297a15d58b0f8f5c4f31e78376e161/src/latex_of_wiki/ocsigen_messages.ml
ocaml
let warning = print_endline
1b06566910a1d9ba61c3858569ebca2a1f902ef46ef76ea75a5d4a9366f8adc1
adrianherrera/reil-parser
Parse.hs
| Module : $ Header$ Description : Parses a REIL text file Maintainer : Stability : experimental Module : $Header$ Description : Parses a REIL text file Maintainer : Adrian Herrera Stability : experimental -} | This module parses a text file containing REIL instructions . module Dat...
null
https://raw.githubusercontent.com/adrianherrera/reil-parser/061954fe1367df7e6a4679d0fe9c9f5521163288/src/Data/REIL/Parse.hs
haskell
----------------------------------------------------------------------------- Helper functions ----------------------------------------------------------------------------- Applicative cons (is this name accurate?) ----------------------------------------------------------------------------- | Parse an address. An a...
| Module : $ Header$ Description : Parses a REIL text file Maintainer : Stability : experimental Module : $Header$ Description : Parses a REIL text file Maintainer : Adrian Herrera Stability : experimental -} | This module parses a text file containing REIL instructions . module Dat...
a3f3bdb0b0f9231312c79cfdf18d822c603b88b34a7efeacc88f9b7a3d08f5a2
ghcjs/ghcjs-dom
VoidCallback.hs
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} module GHCJS.DOM.JSFFI.Generated.VoidCallback (newVoidCallback, newVoidCallbackSync, newVoidCallbackAsync, VoidC...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/VoidCallback.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # module GHCJS.DOM.JSFFI.Generated.VoidCallback (newVoidCallback, newVoidCallbackSync, newVoidCallbackAsync, VoidCallback) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), M...
3b6bba91e7ed78089c02064cd19e68b301c5c6f7151bf83a1f0ebb4d8965b371
rlepigre/pml
id_node.ml
(* Strict equality on nodes *) (** Equality functions on nodes. *) let id_v_nodes : v_node -> v_node -> bool = fun n1 n2 -> n1 == n2 || let eq_expr e1 e2 = eq_expr ~strict:true e1 e2 in let eq_bndr b1 b2 = eq_bndr ~strict:true b1 b2 in match (n1, n2) with | (VN_LAbs(b1) , VN_LAbs(b2) ) -> eq_bndr V b1 b2 ...
null
https://raw.githubusercontent.com/rlepigre/pml/cdfdea0eecc6767b16edc6a7bef917bc9dd746ed/attic/id_node.ml
ocaml
Strict equality on nodes * Equality functions on nodes.
let id_v_nodes : v_node -> v_node -> bool = fun n1 n2 -> n1 == n2 || let eq_expr e1 e2 = eq_expr ~strict:true e1 e2 in let eq_bndr b1 b2 = eq_bndr ~strict:true b1 b2 in match (n1, n2) with | (VN_LAbs(b1) , VN_LAbs(b2) ) -> eq_bndr V b1 b2 | (VN_Cons(c1,p1), VN_Cons(c2,p2)) -> c1.elt = c2.elt && p1 = p2 ...