_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
32f820f91ed22e6f96f16a7853eb4b3b92624f8aa1abb40dfb54b3a5c57195c3
zcaudate/hara
watch_test.clj
(ns hara.io.file.watch-test (:use hara.test) (:require [hara.io.file.watch :refer :all] [hara.core.base.watch :as watch] [clojure.java.io :as io]) (:import [java.nio.file WatchService Paths FileSystems])) ^{:refer hara.io.file.watch/pattern :added "3.0"} (comment "creates a regex pattern ...
null
https://raw.githubusercontent.com/zcaudate/hara/481316c1f5c2aeba5be6e01ae673dffc46a63ec9/test/hara/io/file/watch_test.clj
clojure
(ns hara.io.file.watch-test (:use hara.test) (:require [hara.io.file.watch :refer :all] [hara.core.base.watch :as watch] [clojure.java.io :as io]) (:import [java.nio.file WatchService Paths FileSystems])) ^{:refer hara.io.file.watch/pattern :added "3.0"} (comment "creates a regex pattern ...
76c6a5f7d1fc9bfd76c4b51243a2cd7d48a977538d8d25a03252b6beb1185b9a
greglook/cljstyle
comment_test.clj
(ns cljstyle.format.comment-test (:require [cljstyle.format.comment :as comment] [cljstyle.test-util] [clojure.test :refer [deftest testing is]])) (def default-config {:enabled? true :inline-prefix " " :leading-prefix "; "}) (deftest top-level (testing "correct prefix" (is (rule-reformat...
null
https://raw.githubusercontent.com/greglook/cljstyle/1f58e2e7af4c193aa77ad0695f6c2b9ac2c5c5ec/test/cljstyle/format/comment_test.clj
clojure
some comment about the some comment about the some comment about the some comment about the an inline comment which is really the start of many an inline comment which is really the start of many multiline comment in a map multiline comment in a map
(ns cljstyle.format.comment-test (:require [cljstyle.format.comment :as comment] [cljstyle.test-util] [clojure.test :refer [deftest testing is]])) (def default-config {:enabled? true :inline-prefix " " :leading-prefix "; "}) (deftest top-level (testing "correct prefix" (is (rule-reformat...
b76d136959d3b5fe4d5580216388c235bb3cfc57423c57b6c2b744ce3ee6a9f0
ocurrent/mirage-ci
config.mli
val profile : [ `Dev | `Production | `Docker ] type build_config val cmdliner : build_config Cmdliner.Term.t type t val make : ?secrets:(string * string) list -> build_config -> t val build : ?label:string -> ?cache_hint:string -> t -> pool:string -> src:Current_git.Commit_id.t Current.t list -> Spec.t...
null
https://raw.githubusercontent.com/ocurrent/mirage-ci/22a060c6e4727495e3c234e327a9bbbadd33f30c/src/lib/common/config.mli
ocaml
val profile : [ `Dev | `Production | `Docker ] type build_config val cmdliner : build_config Cmdliner.Term.t type t val make : ?secrets:(string * string) list -> build_config -> t val build : ?label:string -> ?cache_hint:string -> t -> pool:string -> src:Current_git.Commit_id.t Current.t list -> Spec.t...
8ef77b2feb4559a91447993b74c43199c21980adc538b511eae650b279cd2db4
m4dc4p/haskelldb
PPHelpers.hs
----------------------------------------------------------- -- | Module : PPHelpers Copyright : HWT Group ( c ) 2004 , -- License : BSD-style -- Maintainer : -- Stability : experimental -- Portability : non-portable -- -- Various functions used when pretty printing stuff -- -- --------...
null
https://raw.githubusercontent.com/m4dc4p/haskelldb/a1fbc8a2eca8c70ebe382bf4c022275836d9d510/src/Database/HaskellDB/DBSpec/PPHelpers.hs
haskell
--------------------------------------------------------- | License : BSD-style Stability : experimental Portability : non-portable Various functions used when pretty printing stuff --------------------------------------------------------- no explicit export, we want ALL of it -----------------------...
Module : PPHelpers Copyright : HWT Group ( c ) 2004 , Maintainer : module Database.HaskellDB.DBSpec.PPHelpers where import Data.Char (toLower, toUpper, isAlpha, isAlphaNum, ) import Text.PrettyPrint.HughesPJ newline = char '\n' ppComment txt = commentLine $$ vcat (map commentText txt) $$ co...
ac0f8f6dc160be539218a27be7fd7ac4e5d959209259c176450b51a5c66b28a0
ericclack/overtone-loops
beats.clj
(ns overtone-loops.proto.beats (:use [overtone.live] [overtone-loops.loops] [overtone-loops.samples])) We want to use amps between 0 and 9 in our lists (amp-scale 1/9) ;; (defloop countin 1 cymbal-closed [4 4 4 4 ]) (defloop ticks 1/2 cymbal-closed [_ 4 _ 2 _ 4 _ 2 ]) (defloop kick...
null
https://raw.githubusercontent.com/ericclack/overtone-loops/54b0c230c1e6bd3d378583af982db4e9ae4bda69/src/overtone_loops/proto/beats.clj
clojure
--------------------------------------------- (stop)
(ns overtone-loops.proto.beats (:use [overtone.live] [overtone-loops.loops] [overtone-loops.samples])) We want to use amps between 0 and 9 in our lists (amp-scale 1/9) (defloop countin 1 cymbal-closed [4 4 4 4 ]) (defloop ticks 1/2 cymbal-closed [_ 4 _ 2 _ 4 _ 2 ]) (defloop kicks ...
5315d5ca29d6ebbb600ae1220576220748e2df32f1c9374edf927d69435080e9
GumTreeDiff/cgum
setb.ml
pad : taken from set.ml from stdlib ocaml , functor sux : module : OrderedType ) = (* with some addons such as from list *) (***********************************************************************) (* *) (* Objective Caml ...
null
https://raw.githubusercontent.com/GumTreeDiff/cgum/8521aa80fcf4873a19e60ce8c846c886aaefb41b/commons/ocamlextra/setb.ml
ocaml
with some addons such as from list ********************************************************************* Objective Caml ...
pad : taken from set.ml from stdlib ocaml , functor sux : module : OrderedType ) = , 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 ...
b321af1ba62bf01e2b76fd5194a5236902f1678d988ddc562df827bdd5df6817
stchang/lazyprofile-tool
http-request-parser-profiled.rkt
# lang racket #lang s-exp "../../lazy-profile.rkt" ;(require "parser-with-errors.rkt") ;(provide (all-defined-out)) ;(require "string-helpers.rkt") (define (str-empty? str) (string=? str "")) (define (str-fst str) (string-ref str 0)) (define (str-rst str) (substring str 1)) ;(require (only-in racket [string mk-string]...
null
https://raw.githubusercontent.com/stchang/lazyprofile-tool/f347cbe6e91f671320d025d9217dfe1795b8d0f0/examples-popl2014/parsec/http-request-parser-profiled.rkt
racket
(require "parser-with-errors.rkt") (provide (all-defined-out)) (require "string-helpers.rkt") (require (only-in racket [string mk-string])) (provide (all-defined-out)) - (Consumed [Reply X]) - (Empty [Reply X]) should be lazy? (see >>= def) - (Ok X State Message) - (Error Message) creates a parser that consumes n...
# lang racket #lang s-exp "../../lazy-profile.rkt" (define (str-empty? str) (string=? str "")) (define (str-fst str) (string-ref str 0)) (define (str-rst str) (substring str 1)) (define (mk-string x) (string x)) Parsec with errors messages Parsec with errors messages A [ Parser X ] is a function State - > [ Co...
bb6b2a01b4c9f557562f819a41fb4e41b69c8c7ada66658e2e0b83b569b129b6
project-oak/hafnium-verification
BiabductionConfig.mli
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/biabduction/BiabductionConfig.mli
ocaml
* Call f x with footprint set to true. Restore the initial value of footprint also in case of exception. * Call f x with footprint set to false. Restore the initial value of footprint also in case of exception.
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
01a8e0caec26582892ff4fe2467e8f1d8c97045e483394ecb1d5b7eddbf07520
khibino/haskell-relational-record
MySQL.hs
# LANGUAGE TemplateHaskell # module Database.Relational.Schema.MySQL ( module Database.Relational.Schema.MySQL.Config , normalizeColumn , notNull , getType , columnsQuerySQL , primaryKeyQuerySQL ) where import Data.Int (Int8, Int16, Int32, Int64) import ...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/relational-schemas/src/Database/Relational/Schema/MySQL.hs
haskell
TODO: Need to check unsigned int types to avoid wrong mapping
# LANGUAGE TemplateHaskell # module Database.Relational.Schema.MySQL ( module Database.Relational.Schema.MySQL.Config , normalizeColumn , notNull , getType , columnsQuerySQL , primaryKeyQuerySQL ) where import Data.Int (Int8, Int16, Int32, Int64) import ...
cc189b7f0c08071f7f91ec1dee3345686bc5aa1d205c200b1bfecb3d2f8b86ff
yetibot/yetibot
numbers.clj
(ns yetibot.commands.numbers (:require [yetibot.core.hooks :refer [cmd-hook]] [yetibot.core.util.http :refer [fetch]])) (defn endpoint [number] (format "" number)) (def random-endpoint "") (defn random-number "number # lookup trivia on a random number" {:yb/cat #{:info}} [_] (fetch random-endpoint)...
null
https://raw.githubusercontent.com/yetibot/yetibot/2fb5c1182b1a53ab0e433d6bab2775ebd43367de/src/yetibot/commands/numbers.clj
clojure
(ns yetibot.commands.numbers (:require [yetibot.core.hooks :refer [cmd-hook]] [yetibot.core.util.http :refer [fetch]])) (defn endpoint [number] (format "" number)) (def random-endpoint "") (defn random-number "number # lookup trivia on a random number" {:yb/cat #{:info}} [_] (fetch random-endpoint)...
bd726e7f3f629b96f10154629d30dd7eded8d69f1e29af3e23884e7fc0d0d17b
jbclements/portaudio
mac-make.rkt
#lang racket ;; tired of makefile, but actually, this is just the very beginning of a make script.... (define min-version-flag "-mmacosx-version-min=10.5") (define flags (list #;"-arch" #;"x86_84" min-version-flag)) (define gcc (build-path "/usr/bin/gcc")) (when (file-exists? "callbacks.o") (delete-file "cal...
null
https://raw.githubusercontent.com/jbclements/portaudio/bb4faf5e5500d2b89c22f16ba9adf455b263f097/portaudio/lib/mac-make.rkt
racket
tired of makefile, but actually, this is just the very beginning of a make script.... "-arch" #;"x86_84" min-version-flag)) all : x86_64; $(CSTGT)/callbacks.dylib : $(CSTGT)/callbacks.o gcc -o $(CSTGT)/callbacks.dylib -dynamiclib $(FLAGS) $(CSTGT)/callbacks.o $(CSTGT)/callbacks.o : callbacks.c # they're just the...
#lang racket (define min-version-flag "-mmacosx-version-min=10.5") (define flags (define gcc (build-path "/usr/bin/gcc")) (when (file-exists? "callbacks.o") (delete-file "callbacks.o")) (apply system* gcc (append (list "-o" "callbacks.o") flags (list "-c" "callbacks.c"))) (apply system* gcc `("-o" "librsoundca...
a4b534b21feddfd2161a18b84e7e179437a2bade36a7f8c4cf53e6b7661573ac
frictionlessdata/tableschema-clj
profile_test.clj
(ns tableschema-clj.profile-test (:require [tableschema-clj.profile :as sut] [clojure.test :as t]))
null
https://raw.githubusercontent.com/frictionlessdata/tableschema-clj/c907da7eabe752eb47a0b18064c0de23937474d1/test/tableschema_clj/profile_test.clj
clojure
(ns tableschema-clj.profile-test (:require [tableschema-clj.profile :as sut] [clojure.test :as t]))
64af17029749c3a011a7a2c371b4c359df90c9ca4ccf3cc1deed5281c82c8bc9
AlexanderMann/unclogging
project.clj
(defproject alexandermann/unclogging "0.1.0-SNAPSHOT" :description "A repo designed to help you unclog your Clojure logging woes" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [cheshire "5.8.0"] [com.taoensso/t...
null
https://raw.githubusercontent.com/AlexanderMann/unclogging/3cb60c8929175de1970a15cd53cd84fb73dc6e95/project.clj
clojure
(defproject alexandermann/unclogging "0.1.0-SNAPSHOT" :description "A repo designed to help you unclog your Clojure logging woes" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [cheshire "5.8.0"] [com.taoensso/t...
2fa41d3feca7ca6219ea607f501219380e76ccb9558e4f82a15af46f19790c98
karlhof26/gimp-scheme
RMA_path_blend.scm
; RMA_path_blend.scm by ; Version 1.3 ( 20120418 ) ; Description ; Fills a gradient blend between two paths . ; ; Changelog ; ; V1.1 added more math to find the orthagonal blending point for eash segment...yeah baby - I gots the maths! ; V1.2 reversing the the path selection reverses the bl...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/b70258ee08394321a0eba0aa566b546c4c6e27ff/RMA_path_blend.scm
scheme
RMA_path_blend.scm Description Changelog V1.1 added more math to find the orthagonal blending point for eash segment...yeah baby - I gots the maths! V1.2 reversing the the path selection reverses the blend, and an overlap slider Supporting paths with multiple segments, so long as the mumber of segme...
by Version 1.3 ( 20120418 ) Fills a gradient blend between two paths . it under the terms of the GNU General Public License as published by The GNU Public License is available at (define (path_length p s) (let* ( (varStrokeObj 0) (varLength 0) (varCheck 0) ...
4eb5e969d301757b0eaab2a3af7873bcdc91b681f3df9fab1524cf22d38ee74d
LeventErkok/sbv
Control.hs
----------------------------------------------------------------------------- -- | Module : Data . SBV.Trans . Control Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- More generalized alternative to @Data . SBV.Control@ for advanced client use -------...
null
https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/Data/SBV/Trans/Control.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Maintainer: Stability : experimental --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror # * User queries * Create a fresh variable * Create a fresh array * Checki...
Module : Data . SBV.Trans . Control Copyright : ( c ) More generalized alternative to @Data . SBV.Control@ for advanced client use module Data.SBV.Trans.Control ( ExtractIO(..), MonadQuery(..), QueryT, Query, query , freshVar_, freshVar , freshArray_, freshArray ...
924858b1bc89d3c2a14fa72b64935285786a05bcecda68cca3a473d08eb302ca
verystable/warframe-autobuilder
ModMaker.hs
# LANGUAGE NoImplicitPrelude # -- | Module : ModMaker . ModMaker -- Maintainer : -- Stability : Work in progress -- -- This module contains functions that parse userinput into a mod. module ModMaker.ModMaker where import ClassyPrelude import Types.GeneralTypes | parsePotentialMod ...
null
https://raw.githubusercontent.com/verystable/warframe-autobuilder/015e0bb6812711ea27071816d054cbaa1c65770b/src/ModMaker/ModMaker.hs
haskell
| Maintainer : Stability : Work in progress This module contains functions that parse userinput into a mod. Weapon Category, Weapon Type, Weapon Name, Mod Name, [Mod Stats] Sample user input Primary Weapon, Rifle, Example Rifle, Example Mod, [+90% Magazine Size, +60% Heat Damage]
# LANGUAGE NoImplicitPrelude # Module : ModMaker . ModMaker module ModMaker.ModMaker where import ClassyPrelude import Types.GeneralTypes | parsePotentialMod parses given user input into a PotentialMod type parsePotentialMod :: Text -> PotentialMod parsePotentialMod userinput = Potent...
5fb53cfea0172cf0fc748f1f4e5f5d508e92ec173ccdb57d0ecf574fd7c7af77
moon-chilled/loop
for-as-equals-then-clause.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Clause FOR-AS-EQUALS-THEN. (defclass for-as-equals-then (for-as-subclause) (initial-form subsequent-form) (bound-variables ((subclause for-as-equals-then)) (map car (extract-variables (subclause 'var-spec) #f))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/moon-chilled/loop/9c38fd0968f9ae1f2fd0f25bb3554dda06b9cc00/src/for-as-equals-then-clause.scm
scheme
Clause FOR-AS-EQUALS-THEN. Compute the bindings. Compute the declarations. todo...? Compute the prologue-form. Compute the step-form. Accept anything for now. Analyze later. Accept anything for now. Analyze later. last.
(defclass for-as-equals-then (for-as-subclause) (initial-form subsequent-form) (bound-variables ((subclause for-as-equals-then)) (map car (extract-variables (subclause 'var-spec) #f))) (initial-bindings (clause) (let ((d-var-spec (clause 'var-spec)) (d-type-spec (clause 'type-spec))) (ma...
57d98ac6874822b7500b36cee1b79483153ee306b4a8327cb4feee26c3a6c001
LexiFi/gen_js_api
promise.ml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] module UntypedPromise = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 let (resolve : Ojs.t -> Ojs.t) = fun (x3 : Ojs.t) -...
null
https://raw.githubusercontent.com/LexiFi/gen_js_api/bee3b595898fdaf7db0366a9b1a009db9a6c6026/node-test/bindings/expected/promise.ml
ocaml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] module UntypedPromise = struct type t = Ojs.t let rec t_of_js : Ojs.t -> t = fun (x2 : Ojs.t) -> x2 and t_to_js : t -> Ojs.t = fun (x1 : Ojs.t) -> x1 let (resolve : Ojs.t -> Ojs.t) = fun (x3 : Ojs.t) -...
f779dbd43407fb809d724ca84595301d7a0d7ee3c8830e700bbaeb7d75f19ca4
andrewvc/engulf
web_server.clj
(ns engulf.web-server (:use aleph.http noir.core lamina.core) (:require [noir.server :as nr-server] engulf.web-views.index engulf.web-views.jobs engulf.web-views.nodes engulf.web-views.test-responses engulf.web-views.river)) (defn start-webserver [p...
null
https://raw.githubusercontent.com/andrewvc/engulf/31c71c1e0b304a6c99189d0448105299ef05619c/src/engulf/web_server.clj
clojure
(ns engulf.web-server (:use aleph.http noir.core lamina.core) (:require [noir.server :as nr-server] engulf.web-views.index engulf.web-views.jobs engulf.web-views.nodes engulf.web-views.test-responses engulf.web-views.river)) (defn start-webserver [p...
c9e3413fbaad9f09b5efaf23f666288ab9ec91ef7da901d8c4abf770f36c42a9
hkoktay/the-reasoned-schemer
chapter02.scm
Chapter 2 : Teaching Old Toys New Tricks (load "test-check.scm") (load "minikanren/mkprelude.scm") Page 17 (test "let" (let ((x (lambda (a) a)) (y 'c)) (x y)) 'c) Page 17 (test "lists as variables" (run* (r) (fresh (y x) (== `(,x ,y) r))) '((_.0 _.1...
null
https://raw.githubusercontent.com/hkoktay/the-reasoned-schemer/847d1e4a5a1bb777604b02828b3497be6de8d189/chapter02.scm
scheme
Page 20 Page 20 Page 20 Page 20 Page 20 Page 20 Reasoning: `(,x a ,x c) `( d a ,x c) -> '(d a d c) -> d Page 20 This time we are looking for the complete list. Reasoning: (cdro l s) -> `(,w a n s) (caro l x) -> `(,x ,w a n s) (== 'b x) -> `(b ,w a n s) (cdro l d) -> `(,w a n s) (car...
Chapter 2 : Teaching Old Toys New Tricks (load "test-check.scm") (load "minikanren/mkprelude.scm") Page 17 (test "let" (let ((x (lambda (a) a)) (y 'c)) (x y)) 'c) Page 17 (test "lists as variables" (run* (r) (fresh (y x) (== `(,x ,y) r))) '((_.0 _.1...
49281e8fe9283a30f854fd52566e6eed9a9be586d805724923f544554c8520ed
den1k/vimsical
queries.clj
(ns vimsical.backend.components.delta-store.queries (:require [clojure.spec.alpha :as s] [qbits.alia.codec.nippy :as nippy] [qbits.hayt :as cql] [vimsical.backend.adapters.cassandra.util :as util] [vimsical.backend.components.delta-store.schema :as schema] [vimsical.vcs.delta :as delta])) ;; ;; * V...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/src/backend/vimsical/backend/components/delta_store/queries.clj
clojure
* Values * Queries * Commands
(ns vimsical.backend.components.delta-store.queries (:require [clojure.spec.alpha :as s] [qbits.alia.codec.nippy :as nippy] [qbits.hayt :as cql] [vimsical.backend.adapters.cassandra.util :as util] [vimsical.backend.components.delta-store.schema :as schema] [vimsical.vcs.delta :as delta])) (defn- d...
2332be366835c9f0eddd96f656f2e6494609502ad04fe3e69e434ad72533383b
rgrinberg/ocaml-mustache
user_program.ml
module Mustache = Mustache_v200 A simple user program that could have been written against 2.0.0 ; we check that it keeps working as expected . 2.0.0; we check that it keeps working as expected. *) let json = `O [ ("name", `String "OCaml") ; ( "qualities" , `A [ `O [ ("name", `S...
null
https://raw.githubusercontent.com/rgrinberg/ocaml-mustache/d0c45499f9a5ee91c38cf605ae20ecee47142fd8/lib_test/compat/user_program.ml
ocaml
module Mustache = Mustache_v200 A simple user program that could have been written against 2.0.0 ; we check that it keeps working as expected . 2.0.0; we check that it keeps working as expected. *) let json = `O [ ("name", `String "OCaml") ; ( "qualities" , `A [ `O [ ("name", `S...
449687629ce2737dcf724121f66413963c8e90e30fdb8dd136d5a4a64345672a
RefactoringTools/wrangler
refac_new_dummy_argument2.erl
%% @hidden @private -module(refac_new_dummy_argument2). -behaviour(gen_refac_2). -compile(export_all). %% Include files -include("wrangler.hrl"). %%%=================================================================== %% gen_refac callbacks -export([input_par_prompts/0,select_focus/1, check...
null
https://raw.githubusercontent.com/RefactoringTools/wrangler/97e4bfd9ea9f7a9af38945a662ee1a3078e49af3/src/gen_refacs_2/refac_new_dummy_argument2.erl
erlang
@hidden Include files =================================================================== gen_refac callbacks =================================================================== gen_refac callbacks =================================================================== -------------------------------------------...
@private -module(refac_new_dummy_argument2). -behaviour(gen_refac_2). -compile(export_all). -include("wrangler.hrl"). -export([input_par_prompts/0,select_focus/1, check_pre_cond/1, selective/0, rule_def/1, rule_appl/1]). @private input_par_prompts ( ) - > [ string ( ) ] ...
6e50bc1996f2da539e43cbab52dedeeef40ccff0ad5404fe4cc42504e9a972b2
HaskellZhangSong/Introduction_to_Haskell
Main.hs
module Main where import Control.Applicative import Data.Char type Line = Int type Column = Int data Pos = Pos { getLine :: Line , getColumn :: Column } deriving (Eq,Show) updatePos :: Pos -> Char -> Pos updatePos (Pos l c) char = case char of '\n' -> Pos (l+...
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell/0478693817f761c17624b1eebf20b0cad8810993/Chapter13/Main.hs
haskell
module Main where import Control.Applicative import Data.Char type Line = Int type Column = Int data Pos = Pos { getLine :: Line , getColumn :: Column } deriving (Eq,Show) updatePos :: Pos -> Char -> Pos updatePos (Pos l c) char = case char of '\n' -> Pos (l+...
c60d739b522c2d48db59e24fdf1ea2e6304191c14f5fcbb43bb8897b33afaffc
alvatar/spheres
hash-table.scm
;;!!! SRFI-69: Basic hash tables .author . Implemented based on 's tables .author , 2014 - 2015 ;; This SRFI is provided for supporting modules that require this API . Implementation is based upon 's tables , which are more powerful . They are ;; actually the same type, thus being compatible. (define...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/spheres/structure/hash-table.scm
scheme
!!! SRFI-69: Basic hash tables actually the same type, thus being compatible. Manual hash table declaration, in case define-type fails to expand (define-macro (macro-table-flags obj) obj 1 '##table-type #f)) (define-macro (macro-table-flags-set! obj val) obj ...
.author . Implemented based on 's tables .author , 2014 - 2015 This SRFI is provided for supporting modules that require this API . Implementation is based upon 's tables , which are more powerful . They are (define-type table id: 5917e472-85e5-11d9-a2c0-00039301ba52 type-exhibitor: macro-type-ta...
7c207be9c40d0ce570a8722dd8a9a5de14c29053a57b513e92108c0989a398ec
smallmelon/sdzmmo
goods_util.erl
%%%-------------------------------------- @Module : @Author : xhg %%% @Email : @Created : 2010.08.03 %%% @Description : 物品实用工具类 %%%-------------------------------------- -module(goods_util). -include("common.hrl"). -include("record.hrl"). -export( [ init_goods/0, init_go...
null
https://raw.githubusercontent.com/smallmelon/sdzmmo/254ff430481de474527c0e96202c63fb0d2c29d2/src/lib/goods_util.erl
erlang
-------------------------------------- @Email : @Description : 物品实用工具类 -------------------------------------- 初始化物品类型列表 初始化装备类型附加属性表 初始化物品属性规则列表 初始化装备套装属性表 初始化装备品质升级规则表 初始化装备品质拆除规则表 初始化装备强化规则表 初始化宝石合成规则表 初始化物品掉落数量规则表 初始化物品掉落规则表 初始化商店表 初始化在线玩家背包物品表 初始化在线玩家物品属性表 当玩家下线时,删除ets物品表 初始化物品类...
@Module : @Author : xhg @Created : 2010.08.03 -module(goods_util). -include("common.hrl"). -include("record.hrl"). -export( [ init_goods/0, init_goods_online/1, goods_offline/1, get_list/2, get_ets_info/2, get_ets_list/2, make_info/2...
fe79a1fc1a11e980e28ce5fdb44e3ccec6682019b2a55e10daf15213dd7b8ee3
juxt/jinx
validate_test.cljc
Copyright © 2019 , JUXT LTD . (ns juxt.jinx.validate-test #?@(:clj [(:require [juxt.jinx.alpha.validate :as validate] [clojure.test :refer [deftest is are testing]])] :cljs [(:require [juxt.jinx.alpha.validate :as validate] [cljs.test :refer-macros [defte...
null
https://raw.githubusercontent.com/juxt/jinx/48c889486e5606e39144043946063803ad6effa8/test/juxt/jinx/validate_test.cljc
clojure
A string is a valid string. A number is not a valid string. Nil is not a valid string. Even if there is a default string, nil isn't valid. Prefer the existing instance to the default. Prefer the existing instance to the default, even if invalid. (reinstate) A nil value is replaced with the default value, even...
Copyright © 2019 , JUXT LTD . (ns juxt.jinx.validate-test #?@(:clj [(:require [juxt.jinx.alpha.validate :as validate] [clojure.test :refer [deftest is are testing]])] :cljs [(:require [juxt.jinx.alpha.validate :as validate] [cljs.test :refer-macros [defte...
2d6c3f76f008a749f6010c4b163e2dd366831aa44d1e06e912e2ad3cadc46e4d
oscoin/oscoin
Logging.hs
-- | Minimalistic logging library with a @printf()@-style interface. -- -- >>> :{ -- withStdLogger defaultConfig $ \lgr -> info lgr ( " Listening on " % string % " : " % int ) " localhost " 1234 -- :} -- Listening on localhost:1234 level="I" loc="interactive:Ghci2:66:39" -- -- < logfmt>-style "structured" logging...
null
https://raw.githubusercontent.com/oscoin/oscoin/2eb5652c9999dd0f30c70b3ba6b638156c74cdb1/src/Oscoin/Telemetry/Logging.hs
haskell
| Minimalistic logging library with a @printf()@-style interface. >>> :{ withStdLogger defaultConfig $ \lgr -> :} Listening on localhost:1234 level="I" loc="interactive:Ghci2:66:39" < logfmt>-style "structured" logging is encouraged by convention: >>> :{ withStdLogger defaultConfig $ \lgr -> do tid <- ...
info lgr ( " Listening on " % string % " : " % int ) " localhost " 1234 Concurrently thread="ThreadId 2196 " level="I " loc="interactive : Ghci5:71:39 " module Oscoin.Telemetry.Logging Logger , HasLogger (..) , MonadLogger , Severity (..) , Namespace , LogMsg , Config (..) , d...
63bcf4a6d43291f5117738d389af1dcf4443174e798372ff114e5ef122ac3bc9
rixed/ramen
RamenProcesses.ml
(* Tools for running worker processes *) open Batteries open RamenConsts open RamenLog open RamenHelpersNoLog open RamenHelpers module C = RamenConf module Default = RamenConstsDefault module E = RamenExpr module Files = RamenFiles module N = RamenName module O = RamenOperation module OWD = Output_specs_wire.DessserGen...
null
https://raw.githubusercontent.com/rixed/ramen/1457d65ed6eaa11e173f7de0fe6d9a8f280dcb24/src/RamenProcesses.ml
ocaml
Tools for running worker processes $inject open Batteries * Helpers: To be called before synchronize_running !logger.info "Received signal %s" (name_of_signal s) ; Reset the default, in case some library sets it to ignore, because * we rely on this not being explicitly set to ignore when we use waitpid. ...
open Batteries open RamenConsts open RamenLog open RamenHelpersNoLog open RamenHelpers module C = RamenConf module Default = RamenConstsDefault module E = RamenExpr module Files = RamenFiles module N = RamenName module O = RamenOperation module OWD = Output_specs_wire.DessserGen module OutRef = RamenOutRef module Paths...
8093087672ad25eb892b6c94c60eb1c0f7ca2f00effccd322c918530dcf1edec
lisp-mirror/clpm
install.lisp
;;;; clpm bundle install ;;;; This software is part of CLPM . See README.org for more information . See ;;;; LICENSE for license information. (uiop:define-package #:clpm-cli/commands/bundle/install (:use #:cl #:clpm-cli/commands/bundle/common #:clpm-cli/common-args #:clpm-cli/interf...
null
https://raw.githubusercontent.com/lisp-mirror/clpm/ad9a704fcdd0df5ce30ead106706ab6cc5fb3e5b/cli/commands/bundle/install.lisp
lisp
clpm bundle install LICENSE for license information.
This software is part of CLPM . See README.org for more information . See (uiop:define-package #:clpm-cli/commands/bundle/install (:use #:cl #:clpm-cli/commands/bundle/common #:clpm-cli/common-args #:clpm-cli/interface-defs) (:import-from #:adopt) (:import-from #:clpm)) (in-pac...
9a7f8b982cfb7d3a447b3efaf22beef8c3bae613923b1e536921de31a1936d1d
thheller/shadow-cljs
env.clj
(ns shadow.test.env (:require [cljs.env :as env] [cljs.analyzer :as ana] )) (defmacro get-test-data [] (reduce (fn [m {:keys [name defs] :as the-ns}] (let [{:syms [cljs-test-once-fixtures cljs-test-each-fixtures]} defs vars (->> (vals defs) ...
null
https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/main/shadow/test/env.clj
clojure
(ns shadow.test.env (:require [cljs.env :as env] [cljs.analyzer :as ana] )) (defmacro get-test-data [] (reduce (fn [m {:keys [name defs] :as the-ns}] (let [{:syms [cljs-test-once-fixtures cljs-test-each-fixtures]} defs vars (->> (vals defs) ...
06bae0901de47479ba4e150ea126ec139d68748ccb976b410e5867b3f9fbc742
klakplok/goji
PPrintCombinators.ml
(**************************************************************************) (* *) (* PPrint *) (* *) , INRIA...
null
https://raw.githubusercontent.com/klakplok/goji/78da18fafdd32910fc85f334210c9cd3aae2f974/pprint-20130324/src/PPrintCombinators.ml
ocaml
************************************************************************ PPrint ...
, INRIA Paris - Rocquencourt , IT University of Copenhagen Copyright 2007 - 2013 INRIA . All rights reserved . This file is distributed under the terms of the CeCILL - C license , as described open PPrintEngine let lparen = ...
25d1853868c83b2f6a34dfbaa4e904e1e80c49a45d1c7980e788ecd80f6a5515
teamwalnut/graphql-ppx
rule_no_invalid_default_values.ml
module Visitor : Traversal_utils.VisitorSig = struct open Traversal_utils open Graphql_ast open Source_pos open Type_utils.Generic include AbstractVisitor type t = { variable_types : (string, tree) Hashtbl.t; mutable arg_type : (string spanning * tree) option; } let make_self () = { variable_t...
null
https://raw.githubusercontent.com/teamwalnut/graphql-ppx/8276452ebe8d89a748b6b267afc94161650ab620/src/graphql_compiler/rule_no_invalid_default_values.ml
ocaml
module Visitor : Traversal_utils.VisitorSig = struct open Traversal_utils open Graphql_ast open Source_pos open Type_utils.Generic include AbstractVisitor type t = { variable_types : (string, tree) Hashtbl.t; mutable arg_type : (string spanning * tree) option; } let make_self () = { variable_t...
0ddb2c6a98a9627320a57e299399fe2e12079b11ae3ec57e94c52322b72990e9
clj-commons/seesaw
full_screen.clj
Copyright ( c ) , 2012 . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this ; distribution. ; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/clj-commons/seesaw/4ca89d0dcdf0557d99d5fa84202b7cc6e2e92263/test/seesaw/test/examples/full_screen.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remo...
Copyright ( c ) , 2012 . All rights reserved . (ns seesaw.test.examples.full-screen (:use [seesaw core] seesaw.test.examples.example)) (defn make-frame [] (frame :title "Seesaw Full-screen Example" :width 400 :height 400 :content (vertical-panel :it...
4b9573a696676747447a11b3040dc8f216315674e9449ec5e26415b0bfd0e8d5
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. module Duckling.Time.IT.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/Time/IT/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Time.IT.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import Duckling.Dimensions.Types import Duckling.Testing.Asserts import Duckling.Time.IT.Corpus tests :: TestTree tests = testGroup "IT Tests" [ makeCorpusTest [S...
4ac17ab2d6374ac7c4910932b80b97d229648eef95e889882bcd6400e5595e59
haskell/cabal
cabal.test.hs
import Test.Cabal.Prelude main = cabalTest . void $ do isWin <- isWindows ghc94 <- isGhcVersion "== 9.4.*" expectBrokenIf (isWin && ghc94) 8451 $ do cabal' "v2-build" ["script.hs"] cabalWithStdin "v2-repl" ["script.hs"] ""
null
https://raw.githubusercontent.com/haskell/cabal/410f871df899e5af0847089354e0031fe051551d/cabal-testsuite/PackageTests/NewBuild/CmdBuild/ScriptBuildRepl/cabal.test.hs
haskell
import Test.Cabal.Prelude main = cabalTest . void $ do isWin <- isWindows ghc94 <- isGhcVersion "== 9.4.*" expectBrokenIf (isWin && ghc94) 8451 $ do cabal' "v2-build" ["script.hs"] cabalWithStdin "v2-repl" ["script.hs"] ""
d87bf6afb38708bdc56340603484c4f87ef53f60cfa2a461f814522cbb2f6b27
5HT/ant
Bitmap.mli
open Unicode.Types; type bitmap = { bm_width : int; bm_height : int; bm_bytes_per_row : int; bm_data : string }; value make : int -> int -> bitmap; value point : bitmap -> int -> int -> bool; value set_point : bitmap -> int -> int -> unit; value unset_point : bitmap -> ...
null
https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/Runtime/Bitmap.mli
ocaml
open Unicode.Types; type bitmap = { bm_width : int; bm_height : int; bm_bytes_per_row : int; bm_data : string }; value make : int -> int -> bitmap; value point : bitmap -> int -> int -> bool; value set_point : bitmap -> int -> int -> unit; value unset_point : bitmap -> ...
3e0d0cf952c876283eb47f3097c82a7c7587c5591afc1a71c587cea59a92784f
chaoxu/fancy-walks
C.hs
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances # {-# OPTIONS_GHC -O2 #-} import Data.List import Data.Maybe import Data.Char import Data.Array.IArray import Data.Array.Unboxed (UArray) import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control ...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/codeforces.com/111/C.hs
haskell
# OPTIONS_GHC -O2 # -------------------------------------------------------------------- -------------------------------------------------------------------- --------------------------------------------------------------------
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleInstances # import Data.List import Data.Maybe import Data.Char import Data.Array.IArray import Data.Array.Unboxed (UArray) import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control . Monad . State import C...
51be9dc1909d1974518c1e327284fdc1b49992a2dbc73b5e1d9ec2509e0055b7
phantomics/seed
main.lisp
(IN-PACKAGE #:DEMO-SHEET) (DEFVAR GEN-SPACE-APL) ] ⍪ ⍺ } ⍳ ( 2 ⌷ ⍴ ⍵ )-1;],[2 ] ⍺ } field←16 16 16⍴0 field←1 addWalls 2 addFloor field 5 6;4]←3 4;6]←4 8;]←1 field") (DEFVAR GENERATED-SPACE) (SETQ GENERATED-SPACE (ARRAY-TO-NESTED-VECTOR (APRIL GEN-SPACE-APL))) (DEFVAR DOCUMENT-CONTENT) (SETQ DOCUMENT-CONTENT (D...
null
https://raw.githubusercontent.com/phantomics/seed/f128969c671c078543574395d6b23a1a5f2723f8/demo-sheet/main.lisp
lisp
],[2 ] ⍺ } 4]←3 6]←4 ]←1
(IN-PACKAGE #:DEMO-SHEET) (DEFVAR GEN-SPACE-APL) ] ⍪ ⍺ } field←16 16 16⍴0 field←1 addWalls 2 addFloor field field") (DEFVAR GENERATED-SPACE) (SETQ GENERATED-SPACE (ARRAY-TO-NESTED-VECTOR (APRIL GEN-SPACE-APL))) (DEFVAR DOCUMENT-CONTENT) (SETQ DOCUMENT-CONTENT (DOCUMENT-AS-HTML (:DOCUMENT (:N...
dfc00400736b7943fd0ae8257db4d0adf43c1f105a8b6cb45877f55ad96f69d0
basho/riak_cs
list_objects_v2_test.erl
%% --------------------------------------------------------------------- %% Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . Y...
null
https://raw.githubusercontent.com/basho/riak_cs/c0c1012d1c9c691c74c8c5d9f69d388f5047bcd2/riak_test/tests/list_objects_v2_test.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 permiss...
Copyright ( c ) 2007 - 2013 Basho Technologies , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY ...
6993a8edb918ec80d4377ef0c96fcc8dd751b61da0df34cf5f6574eb531e4858
marcoheisig/the-cost-of-nothing
utilities.lisp
(in-package :the-cost-of-nothing) (defun compiled-lambda (lambda-list &rest body) (compile nil `(lambda ,lambda-list ,@body))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Printing (defvar *si-prefix-alist* '(("yotta" . 1d+24) ("zetta" . 1d+21) ("exa" . 1d+18)...
null
https://raw.githubusercontent.com/marcoheisig/the-cost-of-nothing/f364029fbbf37ae5786f2f9ddf6185dd204a7185/core/utilities.lisp
lisp
Printing Lambda Lists
(in-package :the-cost-of-nothing) (defun compiled-lambda (lambda-list &rest body) (compile nil `(lambda ,lambda-list ,@body))) (defvar *si-prefix-alist* '(("yotta" . 1d+24) ("zetta" . 1d+21) ("exa" . 1d+18) ("peta" . 1d+15) ("tera" . 1d+12) ("giga" . 1d+09) ("mega" . 1d+06) ("ki...
e8bf4171418ee35e63c62b99cd6efde0389e8a4f266be9a44b1c7d75d0ed4840
herd/herdtools7
CLang.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/aef181181408f40dbdb4ed35c5338335a83d983f/litmus/CLang.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
080da9d5e9bb8748ee48f429d0a38b9217fcc6d194721b83a53fb237cd58c140
metosin/komponentit
common-test.cljs
(ns komponentit.common-test) (defn container-div [] (let [id (str "container-" (gensym)) div (.createElement js/document "div")] (aset div "id" id) [div (str id)])) (defn append-container [container] (-> js/document .-body (.appendChild container))) (defn create-container [] (let [[n id] (con...
null
https://raw.githubusercontent.com/metosin/komponentit/d962ce1d69ccc3800db0d6b4fc18fc2fd30b494a/test/lomakkeet/common-test.cljs
clojure
(ns komponentit.common-test) (defn container-div [] (let [id (str "container-" (gensym)) div (.createElement js/document "div")] (aset div "id" id) [div (str id)])) (defn append-container [container] (-> js/document .-body (.appendChild container))) (defn create-container [] (let [[n id] (con...
2d57b96a52b083239562aa2034db5d3bc368769069a33781ef6ff7b3debea51d
pbl64k/gpif-datakinds
IxFunctor.hs
{-# LANGUAGE GADTs #-} # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE KindSignatures # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE InstanceSigs # # LANGUAGE In...
null
https://raw.githubusercontent.com/pbl64k/gpif-datakinds/1ae07ec5274f258c6bdf6633bd88532f6c3c1e04/src/Control/IxFunctor/IxFunctor.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # |Indexed functors map indexed types (and associated arrows) to indexed types. Being parametrized by an indexed type is essentially the same thing as being parametrized by an arbitrary number of type parameters. for covariant n-ary functors. |Void functor. |Unit functor m...
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE KindSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE InstanceSigs # # LANGUAGE IncoherentInstances # | Module : Control . I...
a1b99de07714a88c08f1c6b8e04ef8be70b044d301c24a7b1e1d4a4fd6d7b06d
mirage/irmin
stores.ml
* Copyright ( c ) 2020 < > * Copyright ( c ) 2020 Anirudh Sunder Raj < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * ...
null
https://raw.githubusercontent.com/mirage/irmin/09c0226673906c738e8036e7f58ecb8dce6848ba/src/irmin-containers/stores.ml
ocaml
* Copyright ( c ) 2020 < > * Copyright ( c ) 2020 Anirudh Sunder Raj < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * ...
2b5775d8fb8f55fc618f0e0f12a48ef553251798ccc750368e48b2b08c456b87
anmonteiro/aemette
controllers_navigation.cljs
(ns {{name}}.controllers.navigation (:require [clojure.string :as str] [om.next :as om])) (defmulti navigated-to (fn [history-imp navigation-point args reconciler] navigation-point)) (defmulti post-navigated-to! (fn [history-imp navigation-point args reconciler] navigation-point)) (defn- naviga...
null
https://raw.githubusercontent.com/anmonteiro/aemette/c49983e71154db4b4a9c4f751d4413682647f5a5/src/leiningen/new/aemette/next/controllers_navigation.cljs
clojure
(ns {{name}}.controllers.navigation (:require [clojure.string :as str] [om.next :as om])) (defmulti navigated-to (fn [history-imp navigation-point args reconciler] navigation-point)) (defmulti post-navigated-to! (fn [history-imp navigation-point args reconciler] navigation-point)) (defn- naviga...
d2db17e6e57a6a003c103131e4283b25fe9cd216156fa4ddac6f22950eaa357d
robert-strandh/SICL
packages.lisp
(cl:in-package #:common-lisp-user) (defpackage #:sicl-type (:use #:common-lisp) (:local-nicknames (#:env #:sicl-environment)) (:export #:typep ;; The symbol TYPEQ names a special operator. It is similar to TYPEP , except that it does not evaluate its TYPE argument . #:typeq #:type-expander #:ty...
null
https://raw.githubusercontent.com/robert-strandh/SICL/55aa5273ca8c558f4ae270c2e5c7521f7244d001/Code/Types/packages.lisp
lisp
The symbol TYPEQ names a special operator. It is similar to
(cl:in-package #:common-lisp-user) (defpackage #:sicl-type (:use #:common-lisp) (:local-nicknames (#:env #:sicl-environment)) (:export #:typep TYPEP , except that it does not evaluate its TYPE argument . #:typeq #:type-expander #:typexpand))
e91615289817c7f074068e6a01dea48d97aba5ef99cc0a008843253a425c1149
ejgallego/coq-lsp
diagnostic.mli
(************************************************************************) (* Flèche => document manager: Language Support *) Copyright 2019 - 2023 Inria -- Dual License LGPL 2.1 / GPL3 + Written by : (****************************************...
null
https://raw.githubusercontent.com/ejgallego/coq-lsp/ecbc2f2b11e0db08564dada4c737e4de1b2d38f5/lang/diagnostic.mli
ocaml
********************************************************************** Flèche => document manager: Language Support **********************************************************************
Copyright 2019 - 2023 Inria -- Dual License LGPL 2.1 / GPL3 + Written by : module Extra : sig type t = | FailedRequire of { prefix : Libnames.qualid option ; refs : Libnames.qualid list } end type t = { range : Range.t ; severity ...
20c9350e914e99d45dd60844d04a30981d73c5067d10502a2d057d45151dac21
ucsd-progsys/230-wi19-web
Lec_2_6.hs
{-@ LIQUID "--reflection" @-} {- LIQUID "--diff" @-} {-@ LIQUID "--ple" @-} TODO : to have to rewrite this annotation ! {-# LANGUAGE GADTs #-} module Lec_2_6 where import Prelude hiding ((++)) import ProofCombinators import Lists import Expressions import q...
null
https://raw.githubusercontent.com/ucsd-progsys/230-wi19-web/7f5fc5414886fae4e2382cd5a0e48f638be06f0f/src/Week4/Lec_2_6.hs
haskell
@ LIQUID "--reflection" @ LIQUID "--diff" @ @ LIQUID "--ple" @ # LANGUAGE GADTs # How to define "Even"? @ reflect isEven @ isEven (S Z) = False isEven (S (S n)) = isEven n (isEven k) data List a = Nil | Cons a (List a) data List a where Nil :: List a Cons :: a ->...
TODO : to have to rewrite this annotation ! module Lec_2_6 where import Prelude hiding ((++)) import ProofCombinators import Lists import Expressions import qualified State as S data Peano where Z :: Peano S :: Peano -> Peano isEven :: Peano -> Bool isEven...
73ff26117c7741c4d3a38f341f932812d232ae7ba114d93f7cbf59d603f0af44
DaveWM/lobster-writer
coeffects.cljs
(ns lobster-writer.coeffects (:require [re-frame.core :as rf] [lobster-writer.constants :as constants])) (rf/reg-cofx ::id-generator (fn [coeffects _] (assoc coeffects ::id-generator (comp str random-uuid)))) (rf/reg-cofx ::persisted-app-db (fn [coeffects _] (assoc coeffects ::persisted...
null
https://raw.githubusercontent.com/DaveWM/lobster-writer/98eef942cc61725f0a2e00c34e6952c1e262f1ad/src/cljs/lobster_writer/coeffects.cljs
clojure
(ns lobster-writer.coeffects (:require [re-frame.core :as rf] [lobster-writer.constants :as constants])) (rf/reg-cofx ::id-generator (fn [coeffects _] (assoc coeffects ::id-generator (comp str random-uuid)))) (rf/reg-cofx ::persisted-app-db (fn [coeffects _] (assoc coeffects ::persisted...
e80bef1ecf1cf14ec29d282507fd1a52e3b803a26c6eb0fe580db4ee8734d78b
noinia/hgeometry
EuclideanMST.hs
-------------------------------------------------------------------------------- -- | -- Module : Algorithms.Geometry.EuclideanMST Copyright : ( C ) -- License : see the LICENSE file Maintainer : -- \(O(n\log n)\ ) time algorithm algorithm to compute the Euclidean minimum -- spanning tree ...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry/src/Algorithms/Geometry/EuclideanMST.hs
haskell
------------------------------------------------------------------------------ | Module : Algorithms.Geometry.EuclideanMST License : see the LICENSE file spanning tree of a set of \(n\) points in \(\mathbb{R}^2\). ------------------------------------------------------------------------------ ----------...
Copyright : ( C ) Maintainer : \(O(n\log n)\ ) time algorithm algorithm to compute the Euclidean minimum module Algorithms.Geometry.EuclideanMST ( euclideanMST ) where import Algorithms.Geometry.DelaunayTriangulation.DivideAndConquer import Algorithms.Geometry.DelaunayTriangulati...
0f29ea5d340fc3560bf0e4551673fb18e4eacd9a9ff4510ca5b8e3070ec82b94
sbcl/sbcl
redblack.pure.lisp
;;;; Tests (let ((*evaluator-mode* :compile)) (load "../src/code/redblack.lisp")) (add-package-local-nickname "REDBLACK" "SB-RBTREE.MAP") (use-package 'sb-int) (import 'sb-rbtree::(red black)) (import 'redblack::(redp blackp color-of left right node-key node-value data ...
null
https://raw.githubusercontent.com/sbcl/sbcl/7846cfce297e9175c44ea0d03d5dd5af6a42c669/tests/redblack.pure.lisp
lisp
Tests Binary search tree invariant every descendant to the left has a key strictly less than this key every descendant to the right has a key strictly more than this key Red/black tree invariants Child colors and black height If a node is red then both its children are black Change some nodes Find everything a...
(let ((*evaluator-mode* :compile)) (load "../src/code/redblack.lisp")) (add-package-local-nickname "REDBLACK" "SB-RBTREE.MAP") (use-package 'sb-int) (import 'sb-rbtree::(red black)) (import 'redblack::(redp blackp color-of left right node-key node-value data ...
44b665657b9829afec7eb4ce1ad5074b116bc428ed5f9f095e65452aae489463
nicolasavru/cl-nn
package.lisp
package.lisp (defpackage #:cl-nn (:use #:cl :alexandria))
null
https://raw.githubusercontent.com/nicolasavru/cl-nn/eccc5e5ef7b2e82126ff5db826bce60b965413db/package.lisp
lisp
package.lisp (defpackage #:cl-nn (:use #:cl :alexandria))
fdc79ba4b81a39750e13858bd13ef58bc94a6da7b48f02e20bf7a11df18e6d6d
janestreet/core
time.ml
See time_float.ml for the primary instantiation of this functor that is visible outside of Core as Time ( see core.ml ) . of Core as Time (see core.ml). *) open! Import open Std_internal open! Int.Replace_polymorphic_compare include Time_intf module Make (Time0 : Time0_intf.S) = struct module Time0 = Time0...
null
https://raw.githubusercontent.com/janestreet/core/8c81161d689ea21df9acfff1f267c41db0835f77/core/src/time.ml
ocaml
no exn because [index] always returns a valid index no exn because [index] always returns a valid index no exn because [index_of_date_and_ofday] always returns a valid index start and end of the "problematic region" no exn because [Zone.index] always returns a valid index Using [date] and raising on [None] h...
See time_float.ml for the primary instantiation of this functor that is visible outside of Core as Time ( see core.ml ) . of Core as Time (see core.ml). *) open! Import open Std_internal open! Int.Replace_polymorphic_compare include Time_intf module Make (Time0 : Time0_intf.S) = struct module Time0 = Time0...
6a2103585b405d4638399ecf819b14ceb78b38c1601b8215882c5a687028dd1a
gixxi/lambdaroyal-dispatch
test_core.clj
(ns lambdaroyal.dispatch.test-core (:require [midje.sweet :refer :all] [lambdaroyal.dispatch.core :refer :all])) (facts "test correct behaviour without jobs throwing errors" (let [c 10000 threads 100 max-job-postpone 100 ;; jobs are pending max 100 ms from now ...
null
https://raw.githubusercontent.com/gixxi/lambdaroyal-dispatch/f122ee4b86e4505cf1ac93fa9b111917c88b3b36/test/lambdaroyal/dispatch/test_core.clj
clojure
jobs are pending max 100 ms from now jobs are pending max 100 ms from now Queuename
(ns lambdaroyal.dispatch.test-core (:require [midje.sweet :refer :all] [lambdaroyal.dispatch.core :refer :all])) (facts "test correct behaviour without jobs throwing errors" (let [c 10000 threads 100 poll-frequency 50 jobs (atom []) d (dispatcher...
77a74ee579c8f976c447d7159cc6a783a4fec2adbcafa0496a273f8716f8ae32
cyverse-archive/DiscoveryEnvironmentBackend
incoming_xforms.clj
(ns jex.incoming-xforms (:use [jex.common]) (:require [clojure.string :as string] [clojure.tools.logging :as log] [clojure-commons.file-utils :as ut] [jex.config :as cfg])) (def replacer "Params: [regex replace-str str-to-modify]." #(.replaceAll (re-matcher %1 %3) %2)) (def...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/JEX/src/jex/incoming_xforms.clj
clojure
(ns jex.incoming-xforms (:use [jex.common]) (:require [clojure.string :as string] [clojure.tools.logging :as log] [clojure-commons.file-utils :as ut] [jex.config :as cfg])) (def replacer "Params: [regex replace-str str-to-modify]." #(.replaceAll (re-matcher %1 %3) %2)) (def...
279ea63952fc489716f050494e00661442c7d59f9a1ae87d79558ceb50a8cba9
mpickering/apply-refact
Default100.hs
foo = return $! 1
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Default100.hs
haskell
foo = return $! 1
7f961f57cd24792f327c825ce727d16b25c67e54ee244440360690c729446ae4
msantos/wierl
wierl_monitor.erl
Copyright ( c ) 2011 - 2021 , < > %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions %% are met: %% %% Redistributions of source code must retain the above copyright %% notice, this list of condition...
null
https://raw.githubusercontent.com/msantos/wierl/26fe31d85b5dc04e1c0395030a2e99ac56a2fec7/src/wierl_monitor.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in bi...
Copyright ( c ) 2011 - 2021 , < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF U...
1d228906057cb47424a9c226af239a865364dcab9c39c132242b8891238285b7
borkdude/grasp
pprint.clj
(ns grasp.impl.pprint {:no-doc true} (:require [clojure.pprint :as pprint] [sci.core :as sci] [sci.impl.namespaces :refer [copy-var]] [sci.impl.vars :as vars])) (alter-var-root #'pprint/write-option-table (fn [m] (zipmap (keys m) ...
null
https://raw.githubusercontent.com/borkdude/grasp/97bac55bc88ec1de659a0121e8b5ef59ab72a346/src/grasp/impl/pprint.clj
clojure
we alter-var-root-ed write above, so this should copy the right function
(ns grasp.impl.pprint {:no-doc true} (:require [clojure.pprint :as pprint] [sci.core :as sci] [sci.impl.namespaces :refer [copy-var]] [sci.impl.vars :as vars])) (alter-var-root #'pprint/write-option-table (fn [m] (zipmap (keys m) ...
b3a5304b67a3e2577b4ba015479b5964547a32498407931ee91ff7cea0ffb91e
sharplispers/slitch
binary-types.lisp
;;;;------------------------------------------------------------------ ;;;; Copyright ( C ) 200120001999 , Department of Computer Science , University of Tromsø , Norway ;;;; ;;;; Filename: binary-types.lisp ;;;; Description: Reading and writing of binary data in streams. Author : < > ...
null
https://raw.githubusercontent.com/sharplispers/slitch/edd96fde7722ed4ce4678d7041aad69eb0762c9f/src/binary-types.lisp
lisp
------------------------------------------------------------------ Filename: binary-types.lisp Description: Reading and writing of binary data in streams. Distribution: See the accompanying file COPYING. ------------------------------------------------------------------ ...
Copyright ( C ) 200120001999 , Department of Computer Science , University of Tromsø , Norway Author : < > Created at : Fri Nov 19 18:53:57 1999 $ I d : binary - types.lisp , v 1.2 2003/05/05 13:46:14 lukeg Exp $ (defpackage binary-types (:nicknames bt) (:use common-lisp) [ type -...
6f2812d9104c6d9214af8c4d08141795beedd1242425358cbb460e407c0c84e8
hspec/hspec
Spec.hs
# OPTIONS_GHC -F - discover #
null
https://raw.githubusercontent.com/hspec/hspec/b48eee41032450123044de82c4c02213813563b1/hspec-discover/test/Spec.hs
haskell
# OPTIONS_GHC -F - discover #
34a6349b9925963318a8d13571c19d6c18cdbe7a93acfde49bf862534ef23d31
tezos/tezos-mirror
baking_nonces.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/f0fac81ca8d49f180e663316b2566780ddc1517e/src/proto_alpha/lib_delegate/baking_nonces.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
843c664bd1593fbd377a1c413eb58b02b59c648c72866bdf046cf6196dc8926a
andrejbauer/plzoo
calc.ml
module Calc = Zoo.Main(struct let name = "calc" type command = Syntax.expression type environment = unit let options = [] let initial_environment = () let file_parser = None let toplevel_parser = Some (Parser.toplevel Lexer.lexeme) let exec () e = let n = Eval.eval e in Zoo.print_info "%d...
null
https://raw.githubusercontent.com/andrejbauer/plzoo/ae6041c65baf1eebf65a60617819efeb8dcd3420/src/calc/calc.ml
ocaml
module Calc = Zoo.Main(struct let name = "calc" type command = Syntax.expression type environment = unit let options = [] let initial_environment = () let file_parser = None let toplevel_parser = Some (Parser.toplevel Lexer.lexeme) let exec () e = let n = Eval.eval e in Zoo.print_info "%d...
596367781e16660d3bd6211daa3b0af2e9d147862020da71be09c9cc922c0c16
manuel-serrano/bigloo
simple.scm
;*=====================================================================*/ * ... /prgm / project / bigloo / / comptime / Inline / simple.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : M...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/fdeac39af72d5119d01818815b0f395f2907d6da/comptime/Inline/simple.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * The inlining of simple functions (non recursive functions). */ *===========================...
* ... /prgm / project / bigloo / / comptime / Inline / simple.scm * / * Author : * / * Creation : Mon Jun 17 14:01:30 1996 * / * Last change : Thu Jul 8 11:27:25 2021 ( serrano ) * / * Copyrigh...
fcdaf39c74cabcfca44c78049d5ecd5f81eaaf2a310ec0eab57a5c802f185ebc
khibino/haskell-debian-build
odebuild.hs
import Control.Monad (void, when, (>=>)) import Control.Monad.Trans.Maybe (MaybeT (..)) import Data.Maybe (listToMaybe) import Data.List (intercalate) import System.Environment (getProgName, getArgs) import System.Console.GetOpt (OptDescr (Option), ArgDescr (ReqArg, NoArg), ArgOrder (RequireOrder), usageInfo, getO...
null
https://raw.githubusercontent.com/khibino/haskell-debian-build/bf3d210635ea4325411bb614caadc79743191295/mains/odebuild.hs
haskell
import Control.Monad (void, when, (>=>)) import Control.Monad.Trans.Maybe (MaybeT (..)) import Data.Maybe (listToMaybe) import Data.List (intercalate) import System.Environment (getProgName, getArgs) import System.Console.GetOpt (OptDescr (Option), ArgDescr (ReqArg, NoArg), ArgOrder (RequireOrder), usageInfo, getO...
d90edc5f9243b5aaf825e1cad5a540da82804b5c58f52127031060848b947703
takikawa/racket-clojure
test.rkt
#lang clojure (require rackunit racket/list racket/stream (only-in racket/match (== =:))) (prn [1 2 3]) (check-true (vector? [1 2 3])) (check-true (vector? '[1 2 3])) (check-true (immutable? [1 2 3])) (check-true (immutable? '[1 2 3])) (check-true (immutable? (vector 1 2 3))) (check-equal? ...
null
https://raw.githubusercontent.com/takikawa/racket-clojure/6a65b4348770dee984bd6fe8d0e33445887fff17/clojure/tests/test.rkt
racket
TODO: make `nil` reader syntax thrush operators quote behavior boolean and not cond tests
#lang clojure (require rackunit racket/list racket/stream (only-in racket/match (== =:))) (prn [1 2 3]) (check-true (vector? [1 2 3])) (check-true (vector? '[1 2 3])) (check-true (immutable? [1 2 3])) (check-true (immutable? '[1 2 3])) (check-true (immutable? (vector 1 2 3))) (check-equal? ...
b59b7750a2e5b06ffafcf31deaf6bc06094efa1653a0c0f854ed6a834b6d09ad
fulcrologic/fulcro-rad-demo
database_queries.clj
(ns com.example.components.database-queries (:require [com.fulcrologic.rad.database-adapters.datomic-options :as do] [datomic.client.api :as d] [taoensso.timbre :as log] [taoensso.encore :as enc])) (defn- env->db [env] (some-> env (get-in [do/databases :production]) (deref))) (defn get-all-account...
null
https://raw.githubusercontent.com/fulcrologic/fulcro-rad-demo/8b6d3b01ebe5cc65798e5e8dfbabbc4706efca61/src/datomic/com/example/components/database_queries.clj
clojure
(ns com.example.components.database-queries (:require [com.fulcrologic.rad.database-adapters.datomic-options :as do] [datomic.client.api :as d] [taoensso.timbre :as log] [taoensso.encore :as enc])) (defn- env->db [env] (some-> env (get-in [do/databases :production]) (deref))) (defn get-all-account...
161badb5e3693482f111d959af98338886f09275b5dbaf3f56a59fc3f2363db0
erleans/erleans
erleans_provider_sup.erl
%%%---------------------------------------------------------------------------- Copyright 2019 . All Rights Reserved . %%% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file except in compliance with the License. %%% You may obtain a copy of the License at %%% %%% ...
null
https://raw.githubusercontent.com/erleans/erleans/7d640d84654b45a27399ca258406c31005d600df/src/erleans_provider_sup.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 ...
Copyright 2019 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(erleans_provider_sup). -export([start_link/0, start_child/2, init/1]). start_link() -> supervisor:star...
dd163418b4ddcb34a4c808a3d381e09687e1227953633f22d3106888bf18a407
fetburner/Coq2SML
editable_cells.ml
open GTree open Gobject let create l = let hbox = GPack.hbox () in let scw = GBin.scrolled_window ~hpolicy:`AUTOMATIC ~vpolicy:`AUTOMATIC ~packing:(hbox#pack ~expand:true) () in let columns = new GTree.column_list in let command_col = columns#add Data.string in let coq_col = columns#ad...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/ide/utils/editable_cells.ml
ocaml
populate the store Alternate colors for the rows
open GTree open Gobject let create l = let hbox = GPack.hbox () in let scw = GBin.scrolled_window ~hpolicy:`AUTOMATIC ~vpolicy:`AUTOMATIC ~packing:(hbox#pack ~expand:true) () in let columns = new GTree.column_list in let command_col = columns#add Data.string in let coq_col = columns#ad...
0bd8e5afcd89be1ce6ccf113206a8731a9cc2d2061fa61f64ce0bdf4b23074c3
mirage/spamtacus
bayesianBody_004.ml
open Database open BayesianBody_003 let db = db |> Map.add "inquiry" { in_spam = 35; in_ham = 7 } |> Map.add "insane" { in_spam = 0; in_ham = 14 } |> Map.add "insecure" { in_spam = 0; in_ham = 8 } |> Map.add "insert" { in_spam = 8; in_ham = 28 } |> Map.add "inserted" { in_spam = 3; in_ham = 9 } |> Map.ad...
null
https://raw.githubusercontent.com/mirage/spamtacus/9d9882d67b2b24292f7134e7ba87715c3555dae9/bayesian_filter/database/bayesianBody_004.ml
ocaml
open Database open BayesianBody_003 let db = db |> Map.add "inquiry" { in_spam = 35; in_ham = 7 } |> Map.add "insane" { in_spam = 0; in_ham = 14 } |> Map.add "insecure" { in_spam = 0; in_ham = 8 } |> Map.add "insert" { in_spam = 8; in_ham = 28 } |> Map.add "inserted" { in_spam = 3; in_ham = 9 } |> Map.ad...
cd52a9931bacb2e53c92c723abe11deee1d89619f4e5a8f5d191388c3022061f
Xandaros/MinecraftCLI
Crypt.hs
{-# LANGUAGE ForeignFunctionInterface, EmptyDataDecls #-} module Foreign.Crypt ( newCipher , closeCipher , decrypt , Cipher ) where import Data.ByteString (ByteString) import qualified Data.ByteString as BS import Foreign import Fore...
null
https://raw.githubusercontent.com/Xandaros/MinecraftCLI/f1cc7f83ede1575cb7244e154a5161d31ca0d5e2/src/Foreign/Crypt.hs
haskell
# LANGUAGE ForeignFunctionInterface, EmptyDataDecls #
module Foreign.Crypt ( newCipher , closeCipher , decrypt , Cipher ) where import Data.ByteString (ByteString) import qualified Data.ByteString as BS import Foreign import Foreign.C.String import Foreign.C.Types data CCipher type Cip...
5dc0d9eacdcc881168a74084a79441f6bcb2c199a6af7ef87864140b36ed6748
input-output-hk/cardano-ledger
STSTestUtils.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE Typ...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/1c2f8aab38d7e22166209aba232e39b6aa5a55b2/libs/cardano-ledger-test/src/Test/Cardano/Ledger/Examples/STSTestUtils.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # ================================================================= ========================= Shared data ========================= Data with specific semantics ("constants") ============================================================...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module Test.Cardano.Ledger.Examples.STSTestU...
0ddb876fb7e646add8c4c604bf6abc5a9dfee0376a7a3cff1e987cf5ff6ef1a4
well-typed-lightbulbs/rpi
UART.ml
module type S = sig val read_byte : unit -> int Lwt.t val write_byte : int -> unit end (* interrupt-based reading *) external irq_enable : unit -> unit = "irq_enable" module UART0 = struct open Rpi open UART.UART0 let stream, push = Lwt_stream.create () let read_byte () = Lwt_stream.next stream let sta...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/rpi/9bedf5735277c66009dffb0c70489ca0f88d84fc/src/drivers/UART/UART.irq/UART.ml
ocaml
interrupt-based reading UART SET UP mask interrupts clear all interrupts
module type S = sig val read_byte : unit -> int Lwt.t val write_byte : int -> unit end external irq_enable : unit -> unit = "irq_enable" module UART0 = struct open Rpi open UART.UART0 let stream, push = Lwt_stream.create () let read_byte () = Lwt_stream.next stream let state = Ke.Rke.create ~capacity:1...
02d0ee01dfda8a149c49bfc16af3a78f5e1a59a4a7bb930a6e2dcc3063d9d3d5
erlangonrails/devdb
kai_tcp_server_acceptor.erl
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 distributed under the License is distributed on an ...
null
https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/kai-0.4.0/src/kai_tcp_server_acceptor.erl
erlang
the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. External APIs Callbacks Internal Functions
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 distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(kai_tcp_server_acceptor). -export([start_link/6]). -export([init...
2f0ebfe35036ec7d9688f4f1145622bff326eadd63da65202e704adc0ab765ba
juspay/atlas
Notifications.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/driver-offer-bpp/src/Utils/Notifications.hs
haskell
Send notification to device, i.e. notifications that should not be shown to the user, but contains payload used by the app
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
af2ea30179971682737b3e58f9e586dbd32cff22076adf9c428c09f5bd842ebb
clf/lollimon
index.ml
* * Title : index.ml Description : Implementation of discrimination tree data structure for LolliMon . Author : * * Title: index.ml Description: Implementation of discrimination tree data structure for LolliMon. Author: Jeff Polakow ***) type indexElm 'a = [ Body | App | Lam' of string | ...
null
https://raw.githubusercontent.com/clf/lollimon/bc4290f5bb221c514b2a66ec427e85eec498c7be/src/index.ml
ocaml
^"<"^(soi lvl)^">" ^(list2str f " | " x) ** this is really a bound variable ** ** this is actually a logic variable, to be generated later ** raise (Failure "show2") let _ = ps 0 ("inserting: "^(index2str 0 [tm])^" ordered:"^(sob ordered)^"\n") in
* * Title : index.ml Description : Implementation of discrimination tree data structure for LolliMon . Author : * * Title: index.ml Description: Implementation of discrimination tree data structure for LolliMon. Author: Jeff Polakow ***) type indexElm 'a = [ Body | App | Lam' of string | ...
1b78b151e383d6ca8595208418563516e38cbc8d6afcfaefe3695330742be949
onedata/op-worker
atm_test_inventory.erl
%%%------------------------------------------------------------------- @author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module handles management of ...
null
https://raw.githubusercontent.com/onedata/op-worker/e3be6921e3b43bf9f82cd38a451193ad583a6865/test_distributed/utils/atm/atm_test_inventory.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module handles management of singleton automation inventory created for use in CT tests. @end ------------------------------------------------------------------- ==...
@author ( C ) 2022 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(atm_test_inventory). -author("Bartosz Walkowicz"). -include("atm/atm_test_schema.hrl"). -include("onenv_test_utils.hrl"). -include_lib("ctool/include/test/assertions.hrl"). -export([ i...
570d7a07d38122afb5ee6ae00c2982fef72bd468926980be42c55623d7b561fd
iokasimov/apart
Prefix.hs
module Test.Apart.Structures.Tree.Prefix (after_successful_insert_length_should_be_incremented) where import "hedgehog" Hedgehog (Property (..), Gen (..), forAll, property, assert) import "hedgehog" Hedgehog.Gen (enumBounded, list, integral) import "hedgehog" Hedgehog.Range (linear) import Data.Apart.Structures.Stac...
null
https://raw.githubusercontent.com/iokasimov/apart/5a3a8c0cfb516d5a55121dc39f7465f572866c90/Test/Apart/Structures/Tree/Prefix.hs
haskell
module Test.Apart.Structures.Tree.Prefix (after_successful_insert_length_should_be_incremented) where import "hedgehog" Hedgehog (Property (..), Gen (..), forAll, property, assert) import "hedgehog" Hedgehog.Gen (enumBounded, list, integral) import "hedgehog" Hedgehog.Range (linear) import Data.Apart.Structures.Stac...
39fb79dc6d7f2c1bbdb9fa92fcd76a6e93c6d7ab7c4f55ae015df9f908828bed
jeromesimeon/Galax
ast_walker_annotate.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/ast_walker/ast_walker_annotate.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : ast_walker_annotate.ml , v 1.31 2007/10/16 01:25:34 open Error open Datatypes open Xquery_core_ast open Xquery_core_ast_util open Ast_walker_annotate_context Annotation walker let rec annotate_cexpr (annotate_ctxt : 'a ann...
04cdeef6a658d225624bff2cd5fb632a40a3da045e67267fc072045977fdb489
ocaml-gospel/gospel
t4.mli
(**************************************************************************) (* *) GOSPEL -- A Specification Language for OCaml (* *) Copyright ( ...
null
https://raw.githubusercontent.com/ocaml-gospel/gospel/79841c510baeb396d9a695ae33b290899188380b/test/negative/t4.mli
ocaml
************************************************************************ (as described in file LICE...
GOSPEL -- A Specification Language for OCaml Copyright ( c ) 2018- The VOCaL Project This software is free software , distributed under the MIT license { gospel_expected| [ 125 ] File " t4.mli " , line 11 , characters 29 - 30 : ...
b9beb1bc3b42324359d6bca3e3f490c15db1e7f3df752634bd58b5a9346ec67a
awto/chr2sql
Compile.hs
{-# LANGUAGE QuasiQuotes, RecordWildCards, FlexibleContexts #-} module CHR2.Compile where import CHR2.AST.Untyped import Data.String.Interpolate import Data.Function import Control.Monad import Control.Monad.Error import Control.Monad.RWS.Strict import Control.Monad.State.Strict import Control.Monad.Writer.Strict impo...
null
https://raw.githubusercontent.com/awto/chr2sql/a26b5c3825761b96d913417bca47974460f9fd5e/CHR2/Compile.hs
haskell
# LANGUAGE QuasiQuotes, RecordWildCards, FlexibleContexts # | rule analyzer monad | rule writer monad pre stages allow binding more vars to be used in future stage special case because it may define variables TODO: TODO:
module CHR2.Compile where import CHR2.AST.Untyped import Data.String.Interpolate import Data.Function import Control.Monad import Control.Monad.Error import Control.Monad.RWS.Strict import Control.Monad.State.Strict import Control.Monad.Writer.Strict import Control.Monad.Reader import qualified Data.Text as T import D...
9c02b15b40893e361b9ce51d8726e10f530033b487224d6b466df6a6798d3cab
wilkerlucio/pathom3
eql_test.cljc
(ns com.wsscode.pathom3.format.eql-test (:require [clojure.test :refer [deftest is testing]] [com.wsscode.misc.coll :as coll] [com.wsscode.pathom3.connect.runner :as pcr] [com.wsscode.pathom3.format.eql :as pf.eql] [com.wsscode.pathom3.plugin :as p.plugin] [edn-query-language.core :as eql])) ...
null
https://raw.githubusercontent.com/wilkerlucio/pathom3/d4f5992240a8e4f3b729195c954c035f5f52b845/test/com/wsscode/pathom3/format/eql_test.cljc
clojure
(ns com.wsscode.pathom3.format.eql-test (:require [clojure.test :refer [deftest is testing]] [com.wsscode.misc.coll :as coll] [com.wsscode.pathom3.connect.runner :as pcr] [com.wsscode.pathom3.format.eql :as pf.eql] [com.wsscode.pathom3.plugin :as p.plugin] [edn-query-language.core :as eql])) ...
dec5d3d30298a18acad0b5918c0f20bd1eef623d2e96511cfd92b718f20c9976
input-output-hk/rscoin-haskell
StageRestriction.hs
| GHC stage restriction . module Bench.RSCoin.Remote.StageRestriction ( defaultOptions , leaveTagOptions ) where import qualified Data.Aeson.TH as A import Data.Char (isLower, isPunctuation, isUpper, toLower) import Data.List (findIndex) headToLower :: String -> Str...
null
https://raw.githubusercontent.com/input-output-hk/rscoin-haskell/109d8f6f226e9d0b360fcaac14c5a90da112a810/bench/Bench/RSCoin/Remote/StageRestriction.hs
haskell
| These options don't modify constructor tags
| GHC stage restriction . module Bench.RSCoin.Remote.StageRestriction ( defaultOptions , leaveTagOptions ) where import qualified Data.Aeson.TH as A import Data.Char (isLower, isPunctuation, isUpper, toLower) import Data.List (findIndex) headToLower :: String -> Str...
f8d120ecf41f8949e343a2cb014653977093a31879f5deb567a7732aa3a65059
input-output-hk/cardano-ledger
AuxiliaryData.hs
# LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # module Cardano.Ledger.AuxiliaryData ( AuxiliaryDataHash (..), * ValidateAuxiliaryData, ) where import C...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/49a84725c4c2ecabc80f6dac215881bc23920962/libs/cardano-ledger-core/src/Cardano/Ledger/AuxiliaryData.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # module Cardano.Ledger.AuxiliaryData ( AuxiliaryDataHash (..), * ValidateAuxiliaryData, ) where import C...
88d62424fab40d7ff8e03fdd28f3f08979197e863631bdeaf6912c12c8ea06de
rtoy/cmucl
stream-vector-io.lisp
;;; -*- Package: Lisp -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; (ext:file-comment "$Header: src/code/stream-vector-io.lisp $") ;;; ;;...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/code/stream-vector-io.lisp
lisp
-*- Package: Lisp -*- ********************************************************************** ********************************************************************** Stream I/O for vectors Not sure that this is really need, but for completeness ... (disassemble 'endian-swap-vector) (declare (type (kernel:simple...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (ext:file-comment "$Header: src/code/stream-vector-io.lisp $") Written by (in-package "EXT") (intl:textdomain "cmucl") (export '(read-vector write-vector)) READ - VECTO...
cb5de564d64159df1e378629521e9af996f4c6ff3597acd696a26baf1236b7a8
awslabs/s2n-bignum
bignum_mod_p521_9.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_mod_p521_9.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "x86/p521/bignum_mod_p521_9.o";; *** PUSH (% rbx) AND (% rdx) (% rax) ADC (% rcx) (Imm8 (word 0)) ADC (% r8) (Imm8 (word 0)) ADC (%...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Reduction modulo p_521 , the field characteristic of the NIST curv...
2b993f34db029ecaec9675ef259cf25f944027f3ee1780928d5cd81876751828
webyrd/mediKanren
repr.rkt
#lang racket/base (provide concept-cui concept-category concept-name concept-props concept->synonyms concept->xrefs edge/props-subject edge/props-pid edge/props-object edge/props-props edge-predicate edge-dst-category edge-dst edge-eid edge->bytes bytes->edge string-key->bytes byt...
null
https://raw.githubusercontent.com/webyrd/mediKanren/a2b80ea94f66bcdd4305b9369ad4184c2afe9829/medikanren/repr.rkt
racket
This is the edge representation for edges.scm, not for edges-by-X.detail. This is the edge representation for edges-by-X.detail, not for edges.scm. Stream edges-by-X by mask for a particular source concept, e.g., #(#f dst-cat-id #f): get all with some destination category, any pid. #(#f _ dst-id...
#lang racket/base (provide concept-cui concept-category concept-name concept-props concept->synonyms concept->xrefs edge/props-subject edge/props-pid edge/props-object edge/props-props edge-predicate edge-dst-category edge-dst edge-eid edge->bytes bytes->edge string-key->bytes byt...
0a8e44f13ba2e333a201df223229ad745a52f24703e38fa7986d70bac8e3e4b4
alaq/learning-clojure-in-public
project.clj
(defproject pegthing "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.1"]] :main ^:skip-aot pegthing.core :target-path "target/%s" :profiles {:uber...
null
https://raw.githubusercontent.com/alaq/learning-clojure-in-public/27d11c1d8cad289b3fb9278082812a019d42b8d8/code/pegthing/project.clj
clojure
(defproject pegthing "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "-2.0/"} :dependencies [[org.clojure/clojure "1.10.1"]] :main ^:skip-aot pegthing.core :target-path "target/%s" :profiles {:uber...
476ca968380eecf0909f891375fd06e93cd82300ed32eb408eb2cb013fe80cb1
poseidon-framework/poseidon-hs
PackageSpec.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module Poseidon.PackageSpec (spec) where import Poseidon.GenotypeData (GenotypeDataSpec (..), GenotypeFormatSpec (..), SNPSetSpec (..)) import ...
null
https://raw.githubusercontent.com/poseidon-framework/poseidon-hs/aa24e9753e5a44ba82fc691421c6a25ecb6316b6/test/Poseidon/PackageSpec.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # just to make the linter happy
module Poseidon.PackageSpec (spec) where import Poseidon.GenotypeData (GenotypeDataSpec (..), GenotypeFormatSpec (..), SNPSetSpec (..)) import Poseidon.Package (PackageReadOptions (..), ...
4a683be43f7a8647b841bea418c4cbc1bbcd740793187a8c4b44bf92501949f6
pupeno/free-form
core.cljs
Copyright © 2015 - 2017 (ns free-form.core (:require clojure.string [clojure.walk :refer [postwalk prewalk]] [free-form.extension :as extension] [free-form.util :refer [field? key->keys attributes-index]])) (defn- extract-attributes [node key] (let [attributes (get nod...
null
https://raw.githubusercontent.com/pupeno/free-form/df700ba9903717afae09d95d07d88351a7a3361e/src/cljs/free_form/core.cljs
clojure
for all other cases, we extract it ourselves.
Copyright © 2015 - 2017 (ns free-form.core (:require clojure.string [clojure.walk :refer [postwalk prewalk]] [free-form.extension :as extension] [free-form.util :refer [field? key->keys attributes-index]])) (defn- extract-attributes [node key] (let [attributes (get nod...
0418e44bcad86ea70ebc8e9ad15e98fd976836e468f2763935304d1ca7cede15
windock/erlyvideo
misultin_get_variable.erl
% ========================================================================================================== MISULTIN - Example : Gets the GET variable ' value ' and prints it out as XML if found . % % >-|-|-(°> % Copyright ( C ) 2009 , < > % All rights reserved. % % BSD License % % Redistribution and use in s...
null
https://raw.githubusercontent.com/windock/erlyvideo/80fdc4175de86f0ab5fb6db20a5b3c2fd4d5a075/deps/misultin/examples/misultin_get_variable.erl
erlang
========================================================================================================== >-|-|-(°> All rights reserved. BSD License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistribu...
MISULTIN - Example : Gets the GET variable ' value ' and prints it out as XML if found . Copyright ( C ) 2009 , < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS OR PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR FOR ANY DIRE...
848c04daee6e8ed8557752a5ad4fdc039e83de49219be221b8e4ac9aa558bd70
skeuchel/needle
SubstSubord.hs
{-# LANGUAGE GADTs #-} # OPTIONS_GHC -Wall # module KnotCore.Elaboration.Interaction.SubstSubord where import Coq.Syntax import KnotCore.Syntax import KnotCore.Elaboration.Core lemmas :: Elab m => [SortGroupDecl] -> m [Sentence] lemmas sdgs = do ntns <- getNamespaces concat <$> sequenceA [ do (stna,...
null
https://raw.githubusercontent.com/skeuchel/needle/25f46005d37571c1585805487a47950dcd588269/src/KnotCore/Elaboration/Interaction/SubstSubord.hs
haskell
# LANGUAGE GADTs #
# OPTIONS_GHC -Wall # module KnotCore.Elaboration.Interaction.SubstSubord where import Coq.Syntax import KnotCore.Syntax import KnotCore.Elaboration.Core lemmas :: Elab m => [SortGroupDecl] -> m [Sentence] lemmas sdgs = do ntns <- getNamespaces concat <$> sequenceA [ do (stna,_) <- getNamespaceCtor ...
08baead4408ed75a4179baee54634afdabfb96f6983fa142d7de0555d0a4db86
KULeuven-CS/CPL
CALL-BY-NEED-LETLAZ.rkt
#lang eopl (require "syntax.rkt") ;(require "store.rkt") (require "../EXPLICIT-REFS/store.rkt") (provide (all-defined-out)) Semantics (define-datatype expval expval? (num-val (value number?)) (bool-val (boolean boolean?)) (proc-val (proc proc?)) ) ;; proc? : SchemeVal -> Bool ;; procedure : Var * ...
null
https://raw.githubusercontent.com/KULeuven-CS/CPL/0c62cca832edc43218ac63c4e8233e3c3f05d20a/chapter4/4.42-CALL-BY-NEED-LETLAZ/CALL-BY-NEED-LETLAZ.rkt
racket
(require "store.rkt") proc? : SchemeVal -> Bool procedure : Var * Exp * Env -> Proc expval->num : ExpVal -> Int expval->bool : ExpVal -> Bool expval->proc : ExpVal -> Proc Environments new for implicit-refs apply-env: Env x Var -> Ref n : (maybe int) location : Sym * Listof(Sym) -> Maybe(Int) else (locatio...
#lang eopl (require "syntax.rkt") (require "../EXPLICIT-REFS/store.rkt") (provide (all-defined-out)) Semantics (define-datatype expval expval? (num-val (value number?)) (bool-val (boolean boolean?)) (proc-val (proc proc?)) ) (define-datatype proc proc? (procedure (var symbol?) (body expres...
e77f9bf48275a21530fe9634f1337b1ab4f3a761f6fcf8aba4f7987a01c4205d
aartaka/nyxt-config
init.lisp
(in-package #:nyxt-user) ;;; Reset ASDF registries to allow loading Lisp systems from ;;; everywhere. #+nyxt-3 (reset-asdf-registries) ;;; Load quicklisp. Not sure it works. #-quicklisp (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname)))) (when (probe-file quicklisp-init) ...
null
https://raw.githubusercontent.com/aartaka/nyxt-config/22421d41b3baea232c142840e1cfee8a770fc8a8/init.lisp
lisp
Reset ASDF registries to allow loading Lisp systems from everywhere. Load quicklisp. Not sure it works. Loading files from the same directory. matching files for where to find those extensions. Usually, though, it boils down to cloning a git repository into your `*extensions-path*' (usually ~/.local/share/nyxt/...
(in-package #:nyxt-user) #+nyxt-3 (reset-asdf-registries) #-quicklisp (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname)))) (when (probe-file quicklisp-init) (load quicklisp-init))) (defvar *web-buffer-modes* '(nyxt/emacs-mode:emacs-mode #+(or nyxt-2 nyxt-3-pre-r...
45cff5464618fd837766f7ae30225be04b525a28ba14615266da6a4fda1cb2f6
heraldry/heraldicon
details.cljs
(ns heraldicon.frontend.library.collection.details (:require [cljs.core.async :refer [go]] [heraldicon.context :as c] [heraldicon.font :as font] [heraldicon.frontend.attribution :as attribution] [heraldicon.frontend.component.element :as component.element] [heraldicon.frontend.component.entity.colle...
null
https://raw.githubusercontent.com/heraldry/heraldicon/e1d3e4eef6afe493478ef8867f7c40c7f32debdc/src/heraldicon/frontend/library/collection/details.cljs
clojure
index not valid anymore
(ns heraldicon.frontend.library.collection.details (:require [cljs.core.async :refer [go]] [heraldicon.context :as c] [heraldicon.font :as font] [heraldicon.frontend.attribution :as attribution] [heraldicon.frontend.component.element :as component.element] [heraldicon.frontend.component.entity.colle...
f64dc6a3a146f1341cebd3806ec54e0da257c51844ce7e6fc017da3d84eeddb0
APTE/APTE
strategy.mli
open Standard_library val apply_strategy_input : (Constraint_system.matrix -> unit) -> Constraint_system.matrix -> unit val apply_strategy_output : (Constraint_system.matrix -> unit) -> Constraint_system.matrix -> unit val apply_full_strategy : (Constraint_system.matrix -> unit) -> Constraint_s...
null
https://raw.githubusercontent.com/APTE/APTE/d5f1bbd29c2fc324a6015ac50173a0cc8ad66623/Source/trace_equivalence/strategy.mli
ocaml
open Standard_library val apply_strategy_input : (Constraint_system.matrix -> unit) -> Constraint_system.matrix -> unit val apply_strategy_output : (Constraint_system.matrix -> unit) -> Constraint_system.matrix -> unit val apply_full_strategy : (Constraint_system.matrix -> unit) -> Constraint_s...
6e628525b8ddbf1d3ce1cfd343655f5dbb0f4e6c0c4b739bf8785ad4de652fcf
jessealama/racketcon-2018-web-devel-workshop
third.rkt
#lang racket/base (provide start) (require web-server/http web-server/http/response-structs web-server/http/request-structs web-server/servlet-env web-server/dispatch racket/list web-server/dispatch web-server/templates racket/string rac...
null
https://raw.githubusercontent.com/jessealama/racketcon-2018-web-devel-workshop/a115d32ee4016c05c1d2d6cc400c572c1d5456f2/third.rkt
racket
The database Products is there a dl element here at all? let's look at the elemenets: they should have the content we expect: request? -> product? a catalog item the whole catalog adding a new product
#lang racket/base (provide start) (require web-server/http web-server/http/response-structs web-server/http/request-structs web-server/servlet-env web-server/dispatch racket/list web-server/dispatch web-server/templates racket/string rac...
81b18b9c2639ef939313dc0a58a54a5111cc31062b1dca5eebc5428bb999d6ca
ocharles/hadoom
GUI.hs
module Hadoom.Editor.GUI (HadoomGUI(..)) where import BasePrelude import Hadoom.Editor.Render (Diagram) import Linear import qualified Graphics.UI.Gtk as GTK data HadoomGUI = HadoomGUI {appWindow :: GTK.Window ,outRef :: IORef Diagram ,guiMap :: GTK.DrawingArea ,mapExtents :: V2 ...
null
https://raw.githubusercontent.com/ocharles/hadoom/13d5ea590282cdbbd343fa4a3d9144d7a1bcf9fd/hadoom-editor/Hadoom/Editor/GUI.hs
haskell
module Hadoom.Editor.GUI (HadoomGUI(..)) where import BasePrelude import Hadoom.Editor.Render (Diagram) import Linear import qualified Graphics.UI.Gtk as GTK data HadoomGUI = HadoomGUI {appWindow :: GTK.Window ,outRef :: IORef Diagram ,guiMap :: GTK.DrawingArea ,mapExtents :: V2 ...
7a806f5d6e83612940a377c58f9584ad150ae58db9039f4e62d93e71c40d3a6c
quchen/stgi
QuasiQuoter.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # | Quasiquoters for easier generation of STG syntax trees . The ' stg ' is most convenient , I suggest you use it unless you have a -- reason not to. module Stg.Parser.QuasiQuoter ( -- * Heuristic quasiquoter stg, -- * Specific syntax...
null
https://raw.githubusercontent.com/quchen/stgi/2920b7c1f83f5516030d1806ce4913d46a8a2463/src/Stg/Parser/QuasiQuoter.hs
haskell
# LANGUAGE OverloadedStrings # reason not to. * Heuristic quasiquoter * Specific syntax element quasiquoters $setup >>> :set -XTemplateHaskell >>> :set -XQuasiQuotes To gain more fine-grained control over what the input should be parsed to, use one of the non-heuristic quoters, such as 'stgProgram' or 'stgLam...
# LANGUAGE TemplateHaskell # | Quasiquoters for easier generation of STG syntax trees . The ' stg ' is most convenient , I suggest you use it unless you have a module Stg.Parser.QuasiQuoter ( stg, program, binds, lambdaForm, expr, alts, nonDefaultAlts, algebraicAlt, primit...
e9c4d1c752df8a30cb9252a7c2fd24be000b50b69ba93666841591af858d67f8
nasser/magic
interfaces.clj
(ns magic.interfaces (:require [mage.core :as il]) (:import [System.Reflection TypeAttributes MethodAttributes FieldAttributes FieldInfo MethodInfo PropertyInfo])) (defn generic-params [n] (->> (range \A (+ \A n)) (map (comp symbol st...
null
https://raw.githubusercontent.com/nasser/magic/7a46f773bc7785c82d9527d52c1a8c28ac16e195/src/magic/interfaces.clj
clojure
(ns magic.interfaces (:require [mage.core :as il]) (:import [System.Reflection TypeAttributes MethodAttributes FieldAttributes FieldInfo MethodInfo PropertyInfo])) (defn generic-params [n] (->> (range \A (+ \A n)) (map (comp symbol st...