_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
c7bfdfa377034f360f880996436527ab0d4a7f8edd5b7fc9773af775721cfff2
yogthos/migratus
test_script_args.clj
(ns migratus.test.migration.edn.test-script-args (:require [clojure.java.io :as io])) (defn migrate-up [{:keys [output-dir]} filename msg] (.mkdirs (io/file output-dir)) (spit (io/file output-dir filename) msg)) (defn migrate-down [{:keys [output-dir]} filename] (let [f (io/file output-dir filename)] (whe...
null
https://raw.githubusercontent.com/yogthos/migratus/1dff096ee877198d038e7c22241024dd41613f72/test/migratus/test/migration/edn/test_script_args.clj
clojure
(ns migratus.test.migration.edn.test-script-args (:require [clojure.java.io :as io])) (defn migrate-up [{:keys [output-dir]} filename msg] (.mkdirs (io/file output-dir)) (spit (io/file output-dir filename) msg)) (defn migrate-down [{:keys [output-dir]} filename] (let [f (io/file output-dir filename)] (whe...
5c98698eab0073281fbe7abe6e75b55d4c5b845c4ab4adf7715347981496757a
egobrain/dbschema
dbschema_migration.erl
-module(dbschema_migration). -callback up(epgpool:connection()) -> ok | {error, Reason :: any()}. -callback down(epgpool:connection()) -> ok | {error, Reason :: any()}.
null
https://raw.githubusercontent.com/egobrain/dbschema/ce479b6b81b55f3ccd6c88647cfb6dbdc29d951a/src/dbschema_migration.erl
erlang
-module(dbschema_migration). -callback up(epgpool:connection()) -> ok | {error, Reason :: any()}. -callback down(epgpool:connection()) -> ok | {error, Reason :: any()}.
1e912a37f8400d1b83992e8f3367875c1ea33b9290dd9a1b767bd8787cb7ad71
ocharles/zero-to-quake-3
Memory.hs
# language DataKinds # # language TypeApplications # module Vulkan.Memory ( allocateMemoryFor ) where -- base import Control.Monad ( (>=>), guard ) import Control.Monad.IO.Class ( MonadIO, liftIO ) import Data.Bits import Data.Foldable ( for_ ) import qualified Foreign import qualified Foreign.Marshal -- vulkan-api ...
null
https://raw.githubusercontent.com/ocharles/zero-to-quake-3/6fe4ef61955b8a816369cf70c0edd2cacfd911db/src/Vulkan/Memory.hs
haskell
base vulkan-api
# language DataKinds # # language TypeApplications # module Vulkan.Memory ( allocateMemoryFor ) where import Control.Monad ( (>=>), guard ) import Control.Monad.IO.Class ( MonadIO, liftIO ) import Data.Bits import Data.Foldable ( for_ ) import qualified Foreign import qualified Foreign.Marshal import Graphics.Vulkan...
3dea8ba6a92c758b97cc64d5a25285c147c58a2e4b0644efb4b50b9d857eea07
janestreet/ppx_css
inline_css.mli
open! Core val print_for_testing : unit -> unit module Private : sig val append : string -> unit end
null
https://raw.githubusercontent.com/janestreet/ppx_css/5848e1dc76b0ecf504e3b01d07d05741759cee72/inline_css/src/inline_css.mli
ocaml
open! Core val print_for_testing : unit -> unit module Private : sig val append : string -> unit end
9bd715b8aa1fd8508f71f388865d51e9e0b0244f1f476e038626de008c76d5d1
haskell-compat/base-compat
dumpindex.hs
module Main (main) where import qualified Data.List as List import System.Environment import Util main :: IO () main = do [module_] <- getArgs index module_ index :: String -> IO () index module_ = inCabalNewRepl ("check-hs/" ++ module_ ++ ".check.hs") input >>= putStr . normalize where ...
null
https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/check/exes/dumpindex.hs
haskell
module Main (main) where import qualified Data.List as List import System.Environment import Util main :: IO () main = do [module_] <- getArgs index module_ index :: String -> IO () index module_ = inCabalNewRepl ("check-hs/" ++ module_ ++ ".check.hs") input >>= putStr . normalize where ...
328c5d2d615fe1bece2275d175c93a713ad206cfe8e4bfbdf3aa8ec38c24390e
Frama-C/Frama-C-snapshot
gui_printers.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/gui/gui_printers.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
c47a7e4d7953da62ddbcef635083b29554ac920767fb5be481d56aea378e413c
reasonml/reason
migrate_parsetree_407_408_migrate.ml
module From = Ast_407 module To = Ast_408 let rec copy_toplevel_phrase : From.Parsetree.toplevel_phrase -> To.Parsetree.toplevel_phrase = function | From.Parsetree.Ptop_def x0 -> To.Parsetree.Ptop_def (copy_structure x0) | From.Parsetree.Ptop_dir (x0,x1) -> To.Parsetree.Ptop_dir { To.Parset...
null
https://raw.githubusercontent.com/reasonml/reason/4f6ff7616bfa699059d642a3d16d8905d83555f6/src/vendored-omp/src/migrate_parsetree_407_408_migrate.ml
ocaml
module From = Ast_407 module To = Ast_408 let rec copy_toplevel_phrase : From.Parsetree.toplevel_phrase -> To.Parsetree.toplevel_phrase = function | From.Parsetree.Ptop_def x0 -> To.Parsetree.Ptop_def (copy_structure x0) | From.Parsetree.Ptop_dir (x0,x1) -> To.Parsetree.Ptop_dir { To.Parset...
fc5b33eddebb47287b6b7bb3f6fbb350099c49e883856bec373e9e0b14caab29
ldnclj/Coloured-Balls
midje.clj
;; -*- indent-tabs-mode: nil -*- (ns leiningen.midje (:refer-clojure :exclude [test]) (:use [leiningen.util.ns :only [namespaces-in-dir]] [leiningen.compile :only [eval-in-project]])) (defn require-namespaces-form [namespaces] `(do (require 'clojure.test) (require 'clojure.string) ;; Thi...
null
https://raw.githubusercontent.com/ldnclj/Coloured-Balls/065eaab19c1b00a17bdc66e4c515f73a7bccd19a/leiningen/midje.clj
clojure
-*- indent-tabs-mode: nil -*- This turns off "Testing ...." lines, which I hate, especially when there's no failure output. Stashed clojure.test output For some reason, empty lines are swallowed, so I use >>> to demarcate sections. A non-nil return value is printed, so I'll just exit here.
(ns leiningen.midje (:refer-clojure :exclude [test]) (:use [leiningen.util.ns :only [namespaces-in-dir]] [leiningen.compile :only [eval-in-project]])) (defn require-namespaces-form [namespaces] `(do (require 'clojure.test) (require 'clojure.string) (defmethod clojure.test/report :begin-t...
1f18aa4c08fc0304a27548dcc96e39b58a54d5969183630e2e54199c8041e737
ogaml/ogaml
objParser.mli
type token = | EOF | STRING of (string) | INT of (int) | FLOAT of (float) | VERTEX | UV | NORMAL | FACE | PARAM | USEMTL | MATLIB | OBJECT | GROUP | SMOOTH | OFF | LEFTBRACKET | RIGHTBRACKET | SLASH val file : (Lexing.lexbuf -> token) -> Lexing.lexbuf -> ObjAST.t list
null
https://raw.githubusercontent.com/ogaml/ogaml/5e74597521abf7ba2833a9247e55780eabfbab78/src/graphics/model/objParser.mli
ocaml
type token = | EOF | STRING of (string) | INT of (int) | FLOAT of (float) | VERTEX | UV | NORMAL | FACE | PARAM | USEMTL | MATLIB | OBJECT | GROUP | SMOOTH | OFF | LEFTBRACKET | RIGHTBRACKET | SLASH val file : (Lexing.lexbuf -> token) -> Lexing.lexbuf -> ObjAST.t list
b85921ee997d865df559fd3d3cfe4861d4c524912c52caf2f3477e112280b9cf
borkdude/api-diff
api_diff_test.clj
(ns borkdude.api-diff-test (:require [borkdude.api-diff :as api-diff] [clojure.string :as str] [clojure.test :as t :refer [deftest testing is]])) (defn- osify [lines] (mapv (fn [l] (if (str/starts-with? l "test-resources") (let [[p r] (str/split l #" " 2)] ...
null
https://raw.githubusercontent.com/borkdude/api-diff/1f0d963baf95645e4cf29ba2dbb7919caa5d65e9/test/borkdude/api_diff_test.clj
clojure
=> #'borkdude.api-diff-test/diff-test
(ns borkdude.api-diff-test (:require [borkdude.api-diff :as api-diff] [clojure.string :as str] [clojure.test :as t :refer [deftest testing is]])) (defn- osify [lines] (mapv (fn [l] (if (str/starts-with? l "test-resources") (let [[p r] (str/split l #" " 2)] ...
11cb9a4279fcae867f11f82e572e55cba966c02ce39b21a976c6f4cd4729b369
1HaskellADay/1HAD
Exercise.hs
module HAD.Y2014.M02.D28.Exercise where | use elements of the first lists to zip elements of the second and third lists -- -- Examples > > > zipBinary [ ( + ) , ( * ) , ( * ) ] [ 2,2,2 ] [ 4,4,4 ] [ 6,8,8 ] > > > zipBinary [ ( + ) ] [ 2,2,2 ] [ 4,4,4 ] [ 6 ] > > ( cycle [ ( + ) , ( * ) ] ) [ 1 .. 4 ] [...
null
https://raw.githubusercontent.com/1HaskellADay/1HAD/3b3f9b7448744f9b788034f3aca2d5050d1a5c73/exercises/HAD/Y2014/M02/D28/Exercise.hs
haskell
Examples [3,6,7,20]
module HAD.Y2014.M02.D28.Exercise where | use elements of the first lists to zip elements of the second and third lists > > > zipBinary [ ( + ) , ( * ) , ( * ) ] [ 2,2,2 ] [ 4,4,4 ] [ 6,8,8 ] > > > zipBinary [ ( + ) ] [ 2,2,2 ] [ 4,4,4 ] [ 6 ] > > ( cycle [ ( + ) , ( * ) ] ) [ 1 .. 4 ] [ 2 .. 5 ] zipBi...
f2f45e4f611ac62903d6d855c0107e3c6c2361e94620e41e84cb40045264e3a3
reagent-project/reagent
core.cljs
(ns example.core (:require [reagent.core :as r] [reagent.dom :as rdom] ["react-transition-group" :refer [TransitionGroup CSSTransition]] [goog.object :as gobj])) (defn transition-group-example [] (let [state (r/atom {:i 1 :elements []})] (fn [] [...
null
https://raw.githubusercontent.com/reagent-project/reagent/c214466bbcf099eafdfe28ff7cb91f99670a8433/examples/react-transition-group/src/example/core.cljs
clojure
Can't move this to separate function, or reagent will add component in between and transitions break
(ns example.core (:require [reagent.core :as r] [reagent.dom :as rdom] ["react-transition-group" :refer [TransitionGroup CSSTransition]] [goog.object :as gobj])) (defn transition-group-example [] (let [state (r/atom {:i 1 :elements []})] (fn [] [...
fb6d1c051012582cbe9f098c38947a32a9039f67c9a6ad12042c5766b1bfbe24
thheller/shadow-graft
fs_watch.clj
(ns shadow.graft.fs-watch (:require [shadow.graft :as graft] [clojure.edn :as edn] [clojure.java.io :as io])) (defn read-manifest [file] (edn/read-string (slurp file))) (defn start [svc path-to-graft-edn] (let [keep-watching-ref (atom true) manifest-file (io/file path-to-gra...
null
https://raw.githubusercontent.com/thheller/shadow-graft/b0c0d08eeda438983bf05afc61ca907e85bcda52/src/main/shadow/graft/fs_watch.clj
clojure
assumes the keep-watching-ref is now false and the thread will exit
(ns shadow.graft.fs-watch (:require [shadow.graft :as graft] [clojure.edn :as edn] [clojure.java.io :as io])) (defn read-manifest [file] (edn/read-string (slurp file))) (defn start [svc path-to-graft-edn] (let [keep-watching-ref (atom true) manifest-file (io/file path-to-gra...
1e2b451bfb6108202b529f6507e40b23f85c4fe32e6c482e792d9a920310071c
sbcl/sbcl
tests.lisp
(defpackage sb-cover-test (:use :cl)) (in-package sb-cover-test) (defparameter *source-directory* cl-user::*source-directory*) (defparameter *output-directory* cl-user::*coverage-report-directory*) (defun compile-load (x) (load (compile-file (merge-pathnames (merge-pathnames x ".*lisp") *source-directory*) ...
null
https://raw.githubusercontent.com/sbcl/sbcl/fbd46c52ea5ea4b3ba98a14ebdd4991d35989c6d/contrib/sb-cover/tests.lisp
lisp
No instrumentation Only the top level forms have been executed Call the function again And now we should have complete expression coverage Reset-coverage clears the instrumentation So none of the code should be marked as executed Forget all about that file Another file, with some branches Complete expression c...
(defpackage sb-cover-test (:use :cl)) (in-package sb-cover-test) (defparameter *source-directory* cl-user::*source-directory*) (defparameter *output-directory* cl-user::*coverage-report-directory*) (defun compile-load (x) (load (compile-file (merge-pathnames (merge-pathnames x ".*lisp") *source-directory*) ...
f0107650ed46316d7fb8fb9fda37fec53453554235ab69cb537f19d9f044b512
xapi-project/xcp-rrdd
xcp_rrdd.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xcp-rrdd/f810004ae88d308043b73365a959562302b1d4b5/bin/rrdd/xcp_rrdd.ml
ocaml
Bind the service interface to the server implementation. A helper function for processing HTTP requests on a socket. Bind server to the file descriptor. Monitoring code --- START. *************************************************** xenstore related code ****************************...
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
5914b04ee9068f9c596026380e2e43d329d5cdbeda57c983b37ffe616721df64
CryptoKami/cryptokami-core
CryptoSpec.hs
-- | Pos.Crypto specification module Test.Pos.CryptoSpec ( spec ) where import Crypto.Hash (Blake2b_224, Blake2b_256) import qualified Data.ByteString as BS import qualified Data.HashMap.Strict as HM import Formatting (sformat) import Prelude ((!!)) import Test.Hs...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/lib/test/Test/Pos/CryptoSpec.hs
haskell
| Pos.Crypto specification Let's protect ourselves against *accidental* random gen changes behave differently in a new version) specify "[0,1000)" $ Let's protect ourselves against *accidental* hash changes Blake2b_512 "c43b29d95a3585cb5264b3223d70e853f899a82e01cb3e62b0bdd871" -- Blake2s_224 "4bd3a3255713f33d6c...
module Test.Pos.CryptoSpec ( spec ) where import Crypto.Hash (Blake2b_224, Blake2b_256) import qualified Data.ByteString as BS import qualified Data.HashMap.Strict as HM import Formatting (sformat) import Prelude ((!!)) import Test.Hspec (Expectation, Spec, descri...
c83552f1c5412e7b8004b35f5fb876bf439686b13c4bc6cdfff767e30533911d
jeanparpaillon/averell
averell_cors_policy.erl
@author < > @author @doc Cross - Origin Resource Sharing ( CORS ) policy behaviour . %% %% This code is imported from %% %% @see / -module(averell_cors_policy). -type state() :: any(). -callback policy_init(Req) -> {ok, Req, state()} when Req :: cowboy_req:req().
null
https://raw.githubusercontent.com/jeanparpaillon/averell/c69eb7d816b3130e6c64c0a5b2e19130d3c1a7df/src/averell_cors_policy.erl
erlang
This code is imported from @see /
@author < > @author @doc Cross - Origin Resource Sharing ( CORS ) policy behaviour . -module(averell_cors_policy). -type state() :: any(). -callback policy_init(Req) -> {ok, Req, state()} when Req :: cowboy_req:req().
62769c62cb7b07404ddfdc392f3fbab45713157c22553a04010b5452ca6f57a0
tonsky/advent-of-code
day14.clj
(ns advent-of-code.year2018.day14 (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.set :as set])) (defn part1 ([] (part1 190221)) ([input] (loop [data [3 7] elf1 0 elf2 1] (if (>= (count data) (+ input 10)) (str/join "" (subvec data input (+ input 1...
null
https://raw.githubusercontent.com/tonsky/advent-of-code/094747f9e9b8d62e525ecde642f49db1c4327659/src/advent_of_code/year2018/day14.clj
clojure
(ns advent-of-code.year2018.day14 (:require [clojure.java.io :as io] [clojure.string :as str] [clojure.set :as set])) (defn part1 ([] (part1 190221)) ([input] (loop [data [3 7] elf1 0 elf2 1] (if (>= (count data) (+ input 10)) (str/join "" (subvec data input (+ input 1...
f0299d9c0396e05ce52697276639b427bb52f5084eebef087154671bbcc92812
solita/mnt-teet
user_db.clj
(ns teet.user.user-db (:require [datomic.client.api :as d] [teet.permission.permission-db :as permission-db] [teet.user.user-model :as user-model] [teet.util.datomic :as du] [clojure.string :as str])) (defn user-info "Fetch user information with current valid permiss...
null
https://raw.githubusercontent.com/solita/mnt-teet/03ba0610f45c22dc3beb372155e2018c3eb2c4f9/app/backend/src/clj/teet/user/user_db.clj
clojure
(ns teet.user.user-db (:require [datomic.client.api :as d] [teet.permission.permission-db :as permission-db] [teet.user.user-model :as user-model] [teet.util.datomic :as du] [clojure.string :as str])) (defn user-info "Fetch user information with current valid permiss...
0fe91caeeeaa82866b2d457fbccfa77142ec1cf8be55264f5bb7b19db433f724
softwarelanguageslab/maf
R5RS_WeiChenRompf2019_meta-circ-3.scm
; Changes: * removed : 1 * added : 10 * swaps : 0 * negated predicates : 2 * swapped branches : 5 * calls to i d fun : 11 (letrec ((map (lambda (f lst) (if (pair? lst) (cons (f (car lst)) (map f (cdr lst))) ()))) (for-each (lambda (f lst) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_WeiChenRompf2019_meta-circ-3.scm
scheme
Changes:
* removed : 1 * added : 10 * swaps : 0 * negated predicates : 2 * swapped branches : 5 * calls to i d fun : 11 (letrec ((map (lambda (f lst) (if (pair? lst) (cons (f (car lst)) (map f (cdr lst))) ()))) (for-each (lambda (f lst) ...
89b06f5a9ae45f629b8f4f9fe56e15d91cf8716d67012144d8cab68d56fce854
AbstractMachinesLab/caramel
ocaml.mli
module Module : sig type t end val of_typescript : Ts_types.Resolved.t list -> Module.t list val output : Module.t list -> kind:Ml.Kind.t -> out_channel -> unit
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocaml-lsp-1.4.0/lsp/bin/ocaml/ocaml.mli
ocaml
module Module : sig type t end val of_typescript : Ts_types.Resolved.t list -> Module.t list val output : Module.t list -> kind:Ml.Kind.t -> out_channel -> unit
1f646b5307a33883d0502993b49a0941f8a40d39b0127a19f8f59946513508b7
janestreet/memtrace
hotspots.ml
open Memtrace.Trace module Heavy_hitters (A : Hashtbl.HashedType) : sig type t val make : int -> t val add : t -> A.t -> unit val length : t -> int val iter : t -> (A.t -> int -> int -> unit) -> unit end = struct module Tbl = Hashtbl.Make(A) type counter = { ( hits - misses ) is the usual Misra - Grie...
null
https://raw.githubusercontent.com/janestreet/memtrace/f9b7b3cddf17575373b855d1bab46fd54d42a628/bin/hotspots.ml
ocaml
number of elements added before this one (including duplicates) number of elements skipped before this one was added let upper_bound t c = c.skipped_before check t; compare (avg_dist_to_alloc c) (avg_dist_to_alloc c') let pfreq = float_of_int freq /. float_of_int total_samples in
open Memtrace.Trace module Heavy_hitters (A : Hashtbl.HashedType) : sig type t val make : int -> t val add : t -> A.t -> unit val length : t -> int val iter : t -> (A.t -> int -> int -> unit) -> unit end = struct module Tbl = Hashtbl.Make(A) type counter = { ( hits - misses ) is the usual Misra - Grie...
275ac87f6469d978ee87c674b549e22434fc26554c339acb36106c9db8c42871
sharplispers/prepl
debug.lisp
This file was taken from SBCL 's sb - aclrepl contrib , written by and available under SBCL 's public domain status . ;;; ;;; Changes since then are: Copyright ( c ) 2009 . All rights reserved . ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided t...
null
https://raw.githubusercontent.com/sharplispers/prepl/025d3b16db81e4bb8cb391c43e355f83f5a206a1/debug.lisp
lisp
Changes since then are: 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. * Redist...
This file was taken from SBCL 's sb - aclrepl contrib , written by and available under SBCL 's public domain status . Copyright ( c ) 2009 . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-...
b8072e305cb9fd5661abe4371a3218cafd9ed49163eb6a5eaee69f08385b057c
200ok-ch/easy
util.cljs
(ns easy.util (:require [cljs.spec.alpha :as s] [clojure.pprint :refer [pprint]] [clojure.string :refer [join replace]] ["fs" :as fs] ["js-yaml" :as yaml] ["sync-exec" :as exec] ["sprintf-js" :refer [sprintf]] [cljs-time.format :as ti...
null
https://raw.githubusercontent.com/200ok-ch/easy/628a76ea1c1f8239668cb41934a830ea12cc07f2/src/easy/util.cljs
clojure
FIXME: this is a hack TODO: output an error message here? NOTE don't use this, this does not return an instance of Date (assoc evt field (time/parse util/iso-formatter date))
(ns easy.util (:require [cljs.spec.alpha :as s] [clojure.pprint :refer [pprint]] [clojure.string :refer [join replace]] ["fs" :as fs] ["js-yaml" :as yaml] ["sync-exec" :as exec] ["sprintf-js" :refer [sprintf]] [cljs-time.format :as ti...
311f454bfe602c12660afd4862d6d0cdaeb322c8af6600f821954090b58b6498
rzetterberg/orgmode-sql
TestImport.hs
module TestImport ( module TestImport , module X ) where import Test.Hspec as X import Data.Text as X (Text) import Database.Persist.Sqlite as X import Control.Monad.IO.Class as X (liftIO, MonadIO) import Control.Monad ...
null
https://raw.githubusercontent.com/rzetterberg/orgmode-sql/98cf35b96e6ce63f60ce11ace18be55e5770352e/test/TestImport.hs
haskell
----------------------------------------------------------------------------- | Imports the given example file to the database | Helper for reading a org-mode example file from the `examples` directory in test. | Helper for parsing org-mode document contents and then importing the result into the database. Does nothi...
module TestImport ( module TestImport , module X ) where import Test.Hspec as X import Data.Text as X (Text) import Database.Persist.Sqlite as X import Control.Monad.IO.Class as X (liftIO, MonadIO) import Control.Monad ...
95af642585c48620ca4a99d2a5cca8d622cca18caa75bdd133c6d137bed15f51
ssor/erlangDemos
simple_cache.erl
-module(simple_cache). -export([insert/2, lookup/1, delete/1]). -define(HBASE_NODE, 'hbase@localhost'). insert(Key, Value) -> case sc_store:lookup(Key) of {ok, Pid} -> sc_event:replace(Key, Value), sc_element:replace(Pid, Value); {error, _} -> {ok, Pid} = sc_el...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/erlware-Erlang-and-OTP-in-Action-Source/chapter_13/simple_cache/src/simple_cache.erl
erlang
-module(simple_cache). -export([insert/2, lookup/1, delete/1]). -define(HBASE_NODE, 'hbase@localhost'). insert(Key, Value) -> case sc_store:lookup(Key) of {ok, Pid} -> sc_event:replace(Key, Value), sc_element:replace(Pid, Value); {error, _} -> {ok, Pid} = sc_el...
03bd647c828c6981a501f43613b04363a9952b3f8f25574b586048c20382b08f
mirage/ocaml-cohttp
test_parser.ml
{ { { Copyright ( c ) 2012 Anil Madhavapeddy < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " A...
null
https://raw.githubusercontent.com/mirage/ocaml-cohttp/0e566eb070a6bda98e3d8d5f594ffe37f61da37a/cohttp-lwt-unix/test/test_parser.ml
ocaml
A subsequent request for the body will have consumed it, therefore None A subsequent request for the body will have consumed it, therefore None Extract the substring of the byte buffer that has been written to Use the low-level write_header/footer API Use the low-level write_header/footer API
{ { { Copyright ( c ) 2012 Anil Madhavapeddy < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " A...
322dd5fd4fac359ce66e8637095ebce9d7a1823374c8e3498f0ba0278313dc5b
chrisdone/lucid
Html5.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoMonomorphismRestriction # {-# OPTIONS -fno-warn-type-defaults #-} -- | Html5 terms. module Lucid.Html5 where import Lucid.Base import Data.ByteString import Data.Text (Text) ------------------------------------------------------------------------------- -- Elements ...
null
https://raw.githubusercontent.com/chrisdone/lucid/95e4672aae22146b3fb10d7f373a37cdda61ecf9/lucid2/src/Lucid/Html5.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS -fno-warn-type-defaults # | Html5 terms. ----------------------------------------------------------------------------- Elements | @DOCTYPE@ element This is implemented as "raw output", because the doctype doesn't accept attributes. | @DOCTYPE@ element + @html@ element |...
# LANGUAGE NoMonomorphismRestriction # module Lucid.Html5 where import Lucid.Base import Data.ByteString import Data.Text (Text) doctype_ :: Monad m => HtmlT m () doctype_ = toHtmlRaw ("<!DOCTYPE HTML>" :: ByteString) doctypehtml_ :: Monad m => HtmlT m a -> HtmlT m a doctypehtml_ m = doctype_ *> html_ m a_ :: T...
3eabff0b801a533e393eb47b687bea812e7ca8232ba2cf76b5907826fa82dbdc
launchdarkly/haskell-server-sdk
AesonCompat.hs
# LANGUAGE CPP # -- | The LaunchDarkly SDK supports a subset of Aeson 1.x and 2.x . These two -- versions differ in their type signatures, but are otherwise largely -- compatible. To support both versions, we provide this compatibility module. -- Depending on the version of you have installed , this module will -...
null
https://raw.githubusercontent.com/launchdarkly/haskell-server-sdk/b8642084591733e620dfc5c1598409be7cc40a63/src/LaunchDarkly/AesonCompat.hs
haskell
| versions differ in their type signatures, but are otherwise largely compatible. To support both versions, we provide this compatibility module. expose a KeyMap type that is either The compatibility layer exposes common map operations that the SDK needs and may prove useful to customers. In nearly all instanc...
# LANGUAGE CPP # The LaunchDarkly SDK supports a subset of Aeson 1.x and 2.x . These two Depending on the version of you have installed , this module will - In the case of 1.x , a HashMap T.Text , or - In the case of 2.x , the new KeyMap type aliases for the underlying equivalents . The Aeson 2.x is key...
200d2e66673259976dfa1dd9d36c9bdb5d95a776220018a88b7110121189734a
privet-kitty/cl-competitive
complex-pack.lisp
(eval-when (:compile-toplevel :load-toplevel :execute) (when (find-symbol "DOUBLE-FLOAT-BITS" :sb-kernel) (pushnew :double-float-bits *features*))) (defpackage :cp/complex-pack (:use :cl) (:export #:define-complex-pack) (:import-from :sb-kernel #:make-double-float #+double-f...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/4d1c601ff42b10773a5d0c5989b1234da5bb98b6/module/complex-pack.lisp
lisp
TODO: unify define-cons-pack and define-complex-pack slot := (slot-name slot-size position) define most positive integer for every slot as constant getter TODO: define setter with define-setf-expander constructor destructuring-bind-style macro
(eval-when (:compile-toplevel :load-toplevel :execute) (when (find-symbol "DOUBLE-FLOAT-BITS" :sb-kernel) (pushnew :double-float-bits *features*))) (defpackage :cp/complex-pack (:use :cl) (:export #:define-complex-pack) (:import-from :sb-kernel #:make-double-float #+double-f...
0139d59662802818499b6566ae1dfbe1fff711730b11101827ae6dd27a8ea67f
bigmlcom/clj-bigml
centroid.clj
Copyright 2016 , 2017 BigML Licensed under the Apache License , Version 2.0 ;; -2.0 (ns bigml.api.centroid "Offers functions specific for BigML centroids. ." (:require (bigml.api [core :as api] [utils :as utils])) (:refer-clojure :exclude [list])) (defn create "Creates a centro...
null
https://raw.githubusercontent.com/bigmlcom/clj-bigml/61579ad473d7e191ed06fb6338847dcb0a664497/src/bigml/api/centroid.clj
clojure
-2.0
Copyright 2016 , 2017 BigML Licensed under the Apache License , Version 2.0 (ns bigml.api.centroid "Offers functions specific for BigML centroids. ." (:require (bigml.api [core :as api] [utils :as utils])) (:refer-clojure :exclude [list])) (defn create "Creates a centroid from ...
5fe23763bf1e406dcfb9e9615601cee36b9d52edeb5c61562b155faed8a70344
daveconservatoire/dcsite-cljs
core_test.cljs
(ns pathom.core-test (:require-macros [cljs.core.async.macros :refer [go]]) (:require [cljs.test :refer [do-report is are async testing deftest use-fixtures]] [pathom.core :as p] [cljs.core.async :refer [<!]] [om.next :as om])) (defn q [q] (-> (om/query->ast q) :children first))...
null
https://raw.githubusercontent.com/daveconservatoire/dcsite-cljs/0b9c17569de092b5ea7fbf000ab528ac1b82851c/test/server/pathom/core_test.cljs
clojure
(ns pathom.core-test (:require-macros [cljs.core.async.macros :refer [go]]) (:require [cljs.test :refer [do-report is are async testing deftest use-fixtures]] [pathom.core :as p] [cljs.core.async :refer [<!]] [om.next :as om])) (defn q [q] (-> (om/query->ast q) :children first))...
947e3e32caf31596679df34f11a88e0053e1b139685947e00d63ce0dd1ea3471
racket/htdp
reader-settings.rkt
#lang racket (require rackunit) (define (run-program str #:repl-interaction [repl-interaction #f]) (parameterize ([current-namespace (make-base-namespace)]) (define stx (parameterize ([read-accept-reader #t]) (read-syntax "x.rkt" (open-input-string str)))) (parameterize ([current-module-declare...
null
https://raw.githubusercontent.com/racket/htdp/bbc40cc66c0c06df1d9542b8283f1c3c1d4773d5/htdp-test/tests/htdp-lang/reader-settings.rkt
racket
#lang racket (require rackunit) (define (run-program str #:repl-interaction [repl-interaction #f]) (parameterize ([current-namespace (make-base-namespace)]) (define stx (parameterize ([read-accept-reader #t]) (read-syntax "x.rkt" (open-input-string str)))) (parameterize ([current-module-declare...
3e587db41820d135d2107cc81845257f0f8f88c3da0d8e204f10d033d4db083d
teknql/pablo
version_test.clj
(ns pablo.version-test (:require [pablo.version :as sut] [clojure.test :refer [deftest testing is]])) (deftest from-tags-test (testing "returns 0.0.1 if no semvar tag exists" (is (= "0.0.1" (sut/from-tags [] false)))) (testing "adds a snapshot if instructed to" (is (= "0.0.1-SNAPSHOT" (sut/...
null
https://raw.githubusercontent.com/teknql/pablo/b26fc77a13ea67d3ed7d8a077977014310314fd8/test/pablo/version_test.clj
clojure
(ns pablo.version-test (:require [pablo.version :as sut] [clojure.test :refer [deftest testing is]])) (deftest from-tags-test (testing "returns 0.0.1 if no semvar tag exists" (is (= "0.0.1" (sut/from-tags [] false)))) (testing "adds a snapshot if instructed to" (is (= "0.0.1-SNAPSHOT" (sut/...
ce34e3bc19530cd3c8265528cbe7b40d8c464d98ce8a0979bda893a47625357a
anwarmamat/cmsc330spring18-public
lexer.ml
open SmallCTypes let tokenize input = failwith "Unimplemented"
null
https://raw.githubusercontent.com/anwarmamat/cmsc330spring18-public/b401e5157c05c7f47ee2d0ec1b21c7b142316031/p3a/lexer.ml
ocaml
open SmallCTypes let tokenize input = failwith "Unimplemented"
43b41e0a578468ef0495a0af7318d7c528e00374870e03c427f5f3af989c2972
FranklinChen/hugs98-plus-Sep2006
Chan.hs
----------------------------------------------------------------------------- -- | Module : Control . Concurrent . Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : experimental -- Portability : ...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/base/Control/Concurrent/Chan.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : non-portable (concurrency) Unbounded channels. ---------------------------------------------------------------...
Module : Control . Concurrent . Copyright : ( c ) The University of Glasgow 2001 module Control.Concurrent.Chan ( * The ' ' type : : IO ( a ) : : a - > IO ( ) : : IO a : : IO ( a ) : : a - > IO ( ) : : IO Bool : : IO [ a ] : : [ a ] - > IO ( ) ...
3d2f4ea8cf762be6ba340f68e90e29f3dd6345983a66eef8129b6bdedd80a151
evertedsphere/preposterous
Monad.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Eval.Monad where import Control.Lens import Praeludium import Types newtype EvalM a = EvalM { unEvalM :: ExceptT Text (ReaderT EvalEnv (Writer [LogItem])) a } deriving ( Functor , Applicative , Monad , MonadReader EvalEnv ,...
null
https://raw.githubusercontent.com/evertedsphere/preposterous/d8ee12fbef3589c6a93294c14eb6c51a0e49b8b5/lib/Eval/Monad.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # module Eval.Monad where import Control.Lens import Praeludium import Types newtype EvalM a = EvalM { unEvalM :: ExceptT Text (ReaderT EvalEnv (Writer [LogItem])) a } deriving ( Functor , Applicative , Monad , MonadReader EvalEnv ,...
9383b04e10fc8b600b074039f4331875e934710d2ac70eda73b32dedd7476f1b
pveber/biotk
fastq.ml
open Core type item = { description : string ; sequence : string ; comment : string ; quality : string ; } [@@deriving sexp] type parsing_error = [ | `Malformed_line of int * string | `Unexpected_EOF ] [@@deriving sexp] let or_eof = function | None -> Error `Unexpected_EOF | Some x -> Ok x let read_...
null
https://raw.githubusercontent.com/pveber/biotk/422640d9303c90c43ecb4b679a8bf5867998119c/lib/fastq.ml
ocaml
open Core type item = { description : string ; sequence : string ; comment : string ; quality : string ; } [@@deriving sexp] type parsing_error = [ | `Malformed_line of int * string | `Unexpected_EOF ] [@@deriving sexp] let or_eof = function | None -> Error `Unexpected_EOF | Some x -> Ok x let read_...
d17892933bb1a411d84c99f34467d7e0b42792807952053e62531faad7e263b2
tz-wrapped/tezos-btc
Impl.hs
SPDX - FileCopyrightText : 2020 Tocqueville Group - - SPDX - License - Identifier : LicenseRef - MIT - TQ - - SPDX-License-Identifier: LicenseRef-MIT-TQ -} # LANGUAGE RebindableSyntax # # OPTIONS_GHC -fno - warn - unused - do - bind # module Lorentz.Contracts.TZBTC.V1.ManagedLedger.Impl ( transfer , ...
null
https://raw.githubusercontent.com/tz-wrapped/tezos-btc/f646e8597bba92ce7ea9d622953ce6ff354a5209/src/Lorentz/Contracts/TZBTC/V1/ManagedLedger/Impl.hs
haskell
-------------------------------------------------------------------------- Entrypoints -------------------------------------------------------------------------- Check whether we need to consider allowance Consume allowance if necessary Perform transfer | Implementation of @approve@ entrypoint. | Implementation o...
SPDX - FileCopyrightText : 2020 Tocqueville Group - - SPDX - License - Identifier : LicenseRef - MIT - TQ - - SPDX-License-Identifier: LicenseRef-MIT-TQ -} # LANGUAGE RebindableSyntax # # OPTIONS_GHC -fno - warn - unused - do - bind # module Lorentz.Contracts.TZBTC.V1.ManagedLedger.Impl ( transfer , ...
fd61155d6dd71ee053e00cd471383d22cb078405557fc0fba8ce2755afb1f81d
yi-editor/yi
Main.hs
{-# LANGUAGE OverloadedStrings #-} import Data.Prototype import Lens.Micro.Platform ((.=)) import Yi.Boot (configMain, reload) import Yi.Config import Yi.Config.Default (defaultConfig) import Yi.Config.Defa...
null
https://raw.githubusercontent.com/yi-editor/yi/58c239e3a77cef8f4f77e94677bd6a295f585f5f/example-configs/yi-vim-colemak-vty-dynamic/Main.hs
haskell
# LANGUAGE OverloadedStrings # Here we can add custom bindings. In case of conflict, that is if there exist multiple bindings Tab traversal Press space to clear incremental search highlight for times when you don't press shift hard enough Disable beautification
import Data.Prototype import Lens.Micro.Platform ((.=)) import Yi.Boot (configMain, reload) import Yi.Config import Yi.Config.Default (defaultConfig) import Yi.Config.Default.HaskellMode (configureHaskel...
7b8ee00c2b7977725989e9a9495a32ebe50abed869b8940b2f55c5c47e358383
returntocorp/semgrep
graph_code.ml
* * Copyright ( C ) 2012 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
null
https://raw.githubusercontent.com/returntocorp/semgrep/fec5eeb43168060f73a2134c9bc49e15f166f9c2/libs/graph_code/graph_code.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Types **************************************************************************...
* * Copyright ( C ) 2012 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
0a67f1691e0e1bc61903c498a47fe280e2842012214714489a9f1df7f12c8bfd
flipstone/haskell-for-beginners
4_derived_instances.hs
import Data.List (maximumBy) import Data.Function (on) -- Augment your complex number data definition from section 3 allow complex numbers to be equated , shown and read -- -- Create a Player type that includes a name and a Score. -- Then define a function to pick a winner from a list of -- Players based on who ha...
null
https://raw.githubusercontent.com/flipstone/haskell-for-beginners/e586a1f3ef08f21d5181171fe7a7b27057391f0b/problems/chapter_08/4_derived_instances.hs
haskell
Augment your complex number data definition from section Create a Player type that includes a name and a Score. Then define a function to pick a winner from a list of Players based on who has the highest score.
import Data.List (maximumBy) import Data.Function (on) 3 allow complex numbers to be equated , shown and read
da5e09019fe5f1218b5ae6bf08639a32fcb08d656fd3ee25dd67be33b7b848ff
ad-si/TaskLite
Utils.hs
{-| Several utility functions (e.g for parsing & serializing UTC stamps) -} module Utils where import Protolude as P ( Alternative ((<|>)), Applicative (pure), Char, Double, Eq, Foldable (elem), Fractional (fromRational, (/)), Functor (fmap), IO, Int, Integer, Integral (div, mod), Maybe (..),...
null
https://raw.githubusercontent.com/ad-si/TaskLite/e36e1cb7998ff35185d86b7b3c988cb062622db5/tasklite-core/source/Utils.hs
haskell
| Several utility functions (e.g for parsing & serializing UTC stamps) From long (specific) to short (unspecific) TODO: Remove after -hourglass/issues/52 TODO: Remove after -hourglass/issues/45 | Currently not needed addStartUtc :: DateTime -> Iso8601.Interval -> Iso8601.Interval addStartUtc utc interval = case i...
module Utils where import Protolude as P ( Alternative ((<|>)), Applicative (pure), Char, Double, Eq, Foldable (elem), Fractional (fromRational, (/)), Functor (fmap), IO, Int, Integer, Integral (div, mod), Maybe (..), Monoid (mempty), Num ((*), (+)), Ord ((<), (>)), Rational, Real (...
8d6c842d425144720c4646e2ac8db6d0b4ab64cffad939b790077c7894e62b7c
facebook/infer
PulseModelsSmartPointers.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/f4695a46432b7d3b6849a44c0b4219286e93ceb1/infer/src/pulse/PulseModelsSmartPointers.ml
ocaml
Check dereference to show an error at the callsite of `operator*()` or `operator->()` ref_count greater than one: decrement ref_count ref_count is one: deallocate the backing_pointer and the ref_count We need an expression corresponding to the value of the argument we pass to the destructor. See e.g...
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
1c2ddf68e47ea3d466ce540cf4b8b33cc05577eacea174af071b00176181d773
txkaduo/weixin-mp-sdk
OAuth.hs
# LANGUAGE GeneralizedNewtypeDeriving # module WeiXin.PublicPlatform.OAuth ( OAuthCode(..) , deniedOAuthCode , oauthScopeCanGetUserInfo , oauthScopeAccessTokenWithUnionID , oauthScopeMinForUnionID , oauthScopeIsUnknown , oauthScopesKnown , WxppAuthConfig(..) , OAuthAccessToken(..) ...
null
https://raw.githubusercontent.com/txkaduo/weixin-mp-sdk/77abe31d06ccf266aad358373b9cde34b222b305/WeiXin/PublicPlatform/OAuth.hs
haskell
| 文档说用户拒绝授权, code 为空,实际上会出现 authdeny 这样的字串 | 某个 scope 是否有权限获取用户基本信息 仅对于微信内使用有意义,因为微信外只有一个 AS_SnsApiLogin 可用 不想其它代码写死这部分逻辑 | 所有已知的 OAuthScope | 当仅需要做 OAuth 认证时,不需要 WxppAppConfig 那么多信息 这个相当于为 OAuth 简化的 WxppAppConfig 注意:这个实现刻意地跟 WxppAppConfig 的实现兼容 ^ return to this url ^ state to return ^ return to this url ^ ...
# LANGUAGE GeneralizedNewtypeDeriving # module WeiXin.PublicPlatform.OAuth ( OAuthCode(..) , deniedOAuthCode , oauthScopeCanGetUserInfo , oauthScopeAccessTokenWithUnionID , oauthScopeMinForUnionID , oauthScopeIsUnknown , oauthScopesKnown , WxppAuthConfig(..) , OAuthAccessToken(..) ...
afec69d56616242b7349d60da6a443b0fa1bce2f3fdd73991b61b399bedc9bc0
Reisen/pixel
API.hs
module Pixel.API ( module API , API ) where import Servant import Pixel.API.Types as API import qualified Pixel.API.AppendImageTags as AppendImageTags import qualified Pixel.API.AuthenticateUser as AuthenticateUser import qualified Pixel.API.CreateImage as CreateImage import qua...
null
https://raw.githubusercontent.com/Reisen/pixel/9096cc2c5b909049cdca6d14856ffc1fc99d81b5/src/lib/Pixel/API.hs
haskell
------------------------------------------------------------------------------ Define a Servant API Type By using this global API type, we can generate a whole bunch of things a swagger doc, a mock, etc. POST /image/ GET /image/ GET /image/:uuid GET /image/:uuid/tags POST /image/:uuid/tags D...
module Pixel.API ( module API , API ) where import Servant import Pixel.API.Types as API import qualified Pixel.API.AppendImageTags as AppendImageTags import qualified Pixel.API.AuthenticateUser as AuthenticateUser import qualified Pixel.API.CreateImage as CreateImage import qua...
9da280066e2c5f3889cbf54ec70d1127d1e551bb41166fb4285718b844ff210b
cl-axon/shop2
graph-plan-tree.lisp
(in-package :spg) (defun graph-plan-tree (plan-forest &key (tree-processor 'identity) (graph-object (make-instance 'plan-tree-graph))) "Takes a SHOP2 plan forest (PLAN-TREE) as input, and returns a CL-DOT graph object. Note that the PLAN-TREE name is a misnomer that reflects ...
null
https://raw.githubusercontent.com/cl-axon/shop2/9136e51f7845b46232cc17ca3618f515ddcf2787/plan-grapher/graph-plan-tree.lisp
lisp
(in-package :spg) (defun graph-plan-tree (plan-forest &key (tree-processor 'identity) (graph-object (make-instance 'plan-tree-graph))) "Takes a SHOP2 plan forest (PLAN-TREE) as input, and returns a CL-DOT graph object. Note that the PLAN-TREE name is a misnomer that reflects ...
94d06a6887e936b34b553cbec6e05234dc8e53bd66e8e137da17eee134893a88
3b/cl-opengl
library.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; library.lisp --- GLUT foreign library definition. ;;; Copyright ( c ) 2006 , ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are ...
null
https://raw.githubusercontent.com/3b/cl-opengl/e2d83e0977b7e7ac3f3d348d8ccc7ccd04e74d59/glut/library.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- library.lisp --- GLUT foreign library definition. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: o Redistributions of source code must retain the a...
Copyright ( c ) 2006 , " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT (in-package :cl-glut)...
66eed8503e8dd532a393269075fae425a9b81f7ddf818c9ca69d40050b81cba1
erlio/vmq_diversity
vmq_diversity_plugin_SUITE.erl
-module(vmq_diversity_plugin_SUITE). -export([ %% suite/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2, all/0 ]). -export([auth_on_register_test/1, auth_on_publish_test/1, auth_on_subscribe_test/1, o...
null
https://raw.githubusercontent.com/erlio/vmq_diversity/cdfb41c684971c617da55da43cd518c926839027/test/vmq_diversity_plugin_SUITE.erl
erlang
suite/0, =================================================================== common_test callbacks =================================================================== Actual Tests
-module(vmq_diversity_plugin_SUITE). -export([ init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2, all/0 ]). -export([auth_on_register_test/1, auth_on_publish_test/1, auth_on_subscribe_test/1, on_register_test/1, ...
718fac17cb53be00d6b698bb65adf17e21ba05fb03b98fec3feed2abba3e2efd
sjpeterson/quark
Colors.hs
module Quark.Colors where import Quark.Types Color IDs defaultBg = (-1) :: Int defaultColor = (-1) :: Int black = 0 :: Int red = 1 :: Int green = 2 :: Int orange = 3 :: Int blue = 4 :: Int purple = 5 :: Int teal = 6 :: Int lightGray = 7 :: Int darkGray = ...
null
https://raw.githubusercontent.com/sjpeterson/quark/0b8e3a879d7d7c9be434703bc9dc6d08dd1054d3/src/Quark/Colors.hs
haskell
module Quark.Colors where import Quark.Types Color IDs defaultBg = (-1) :: Int defaultColor = (-1) :: Int black = 0 :: Int red = 1 :: Int green = 2 :: Int orange = 3 :: Int blue = 4 :: Int purple = 5 :: Int teal = 6 :: Int lightGray = 7 :: Int darkGray = ...
72b546841796a2eaa87306132d33a4ed5846754ca0b73f77819b5c301cad98bc
clj-kafka/franzy
wrappers.clj
(ns franzy.common.async.wrappers (:import (java.util.concurrent Future) (clojure.lang IPending IBlockingDeref IDeref))) TODO : revisit , this is probably unnecessary but added quickly to ensure that any futures from do n't need to be tamped with to work seamlessly . (defn wrap-future "Wraps a Java Futu...
null
https://raw.githubusercontent.com/clj-kafka/franzy/6c2e2e65ad137d2bcbc04ff6e671f97ea8c0e380/common/src/franzy/common/async/wrappers.clj
clojure
(ns franzy.common.async.wrappers (:import (java.util.concurrent Future) (clojure.lang IPending IBlockingDeref IDeref))) TODO : revisit , this is probably unnecessary but added quickly to ensure that any futures from do n't need to be tamped with to work seamlessly . (defn wrap-future "Wraps a Java Futu...
f8f8b7348b79a496ddab4e73f24fb35d4bb750eb2e3f463883100a09238b35c7
iokasimov/pandora
P_Q_T.hs
module Pandora.Paradigm.Schemes.P_Q_T where import Pandora.Core.Interpreted (Interpreted (Primary, run, unite)) newtype P_Q_T (p :: * -> * -> *) (q :: * -> * -> *) (t :: * -> *) (a :: *) (b :: *) = P_Q_T (p a (q (t b) a)) instance Interpreted (->) (P_Q_T p q t a) where type Primary (P_Q_T p q t a) b = (p a (q (t b)...
null
https://raw.githubusercontent.com/iokasimov/pandora/4a8eb485febeedc9e0954d7a47db202eea11ed07/Pandora/Paradigm/Schemes/P_Q_T.hs
haskell
module Pandora.Paradigm.Schemes.P_Q_T where import Pandora.Core.Interpreted (Interpreted (Primary, run, unite)) newtype P_Q_T (p :: * -> * -> *) (q :: * -> * -> *) (t :: * -> *) (a :: *) (b :: *) = P_Q_T (p a (q (t b) a)) instance Interpreted (->) (P_Q_T p q t a) where type Primary (P_Q_T p q t a) b = (p a (q (t b)...
007d446c6ef9967f4a45e1fa5bf8e139acc313c691673b60b8740a26a58a4f91
reborg/reclojure
persistent_map_test.clj
(ns reclojure.lang.protocols.persistent-map-test (:require [midje.sweet :refer :all] [reclojure.lang.protocols.persistent-map :as pm])) (facts "output to string rapresentation" (fact "string again" (pm/->toString {:a 1 :b 2}) => "{:b 2, :a 1}"))
null
https://raw.githubusercontent.com/reborg/reclojure/c8aae4cc384d59262569cbc9c332e08619f292ef/test/reclojure/lang/protocols/persistent_map_test.clj
clojure
(ns reclojure.lang.protocols.persistent-map-test (:require [midje.sweet :refer :all] [reclojure.lang.protocols.persistent-map :as pm])) (facts "output to string rapresentation" (fact "string again" (pm/->toString {:a 1 :b 2}) => "{:b 2, :a 1}"))
d257526093bf5e32c67c0dedc667430de55c0a99634cb4e2c7c0a147acf74900
kriyative/clojurejs
project.clj
(defproject org.clojars.kriyative/clojurejs "1.2.18" :description "A naive Clojure to Javascript translator" :url "" :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"]] :dev-dependencies [[swank-clojure "1.2.1"] [lein-clojars "0.5.0"] ...
null
https://raw.githubusercontent.com/kriyative/clojurejs/2339b57835e884f12f0c13ae1f3036c50f1846b3/project.clj
clojure
(defproject org.clojars.kriyative/clojurejs "1.2.18" :description "A naive Clojure to Javascript translator" :url "" :dependencies [[org.clojure/clojure "1.2.0"] [org.clojure/clojure-contrib "1.2.0"]] :dev-dependencies [[swank-clojure "1.2.1"] [lein-clojars "0.5.0"] ...
cb48fdb87614d3528a27fc2c06081327b95da0b4dab198d5a144947d042f9b49
belambert/cl-asr
lda.lisp
Copyright 2010 - 2018 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 L...
null
https://raw.githubusercontent.com/belambert/cl-asr/a734ddb396f18bf4a504e9ecb3c91e507764358c/src/interface/lda.lisp
lisp
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permis...
Copyright 2010 - 2018 distributed under the License is distributed on an " AS IS " BASIS , (in-package :cl-asr) (defun read-feature-transform-verbose (&key checksum-p checksum computed-checksum feature-stream-count cepstral-feature-count transformed-feature-count data-length-given) "Print summa...
f559cb220efcf5676fe1f3af7c736855dc45bf5696382d8a2e70c5bef6467e52
racket/typed-racket
type-alias-rec-struct.rkt
#lang typed/racket/base ;; Iteratee (define-type (Alias A D) (U #f (Main A D))) (struct: (A D) Main ([resume : (Alias A D)])) ;
null
https://raw.githubusercontent.com/racket/typed-racket/0236151e3b95d6d39276353cb5005197843e16e4/typed-racket-test/succeed/type-alias-rec-struct.rkt
racket
Iteratee
#lang typed/racket/base (define-type (Alias A D) (U #f (Main A D))) (struct: (A D) Main
bc8dc44b70a0fd15fbc541649703a2b4c51a0b0970098de6796a39ca6f0f2710
Shinmera/promptfont
fixup.lisp
#| sbcl --noinform --load "$0" --eval '(fixup)' --quit; exit |# (ql:quickload :shasht) (defvar *here* #. (make-pathname :name NIL :type NIL :defaults *load-pathname*)) (defun fixup (&optional (file (merge-pathnames "glyphs.json" *here*))) (let ((data (with-open-file (stream file) (shasht:read-json s...
null
https://raw.githubusercontent.com/Shinmera/promptfont/dda714d8d0c3512c9e0b0517bd4003c59a61a9dd/fixup.lisp
lisp
sbcl --noinform --load "$0" --eval '(fixup)' --quit; exit
(ql:quickload :shasht) (defvar *here* #. (make-pathname :name NIL :type NIL :defaults *load-pathname*)) (defun fixup (&optional (file (merge-pathnames "glyphs.json" *here*))) (let ((data (with-open-file (stream file) (shasht:read-json stream)))) (loop for entry across data for cp = (or...
6f7e553a70b7ce3c31f9214136255c8f29c4c3e9149c784ee449bde2719bec31
xapi-project/xen-api
rrdd_plugin.ml
* Copyright ( C ) 2013 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in fi...
null
https://raw.githubusercontent.com/xapi-project/xen-api/47fae74032aa6ade0fc12e867c530eaf2a96bf75/ocaml/xcp-rrdd/lib/plugin/rrdd_plugin.ml
ocaml
* Copyright ( C ) 2013 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in fi...
de09cbc4d8da0cd49fc9c81bc7b95547e97028c262f04ab8d4971b193d5c966a
korya/efuns
ocaml_mode.mli
(***********************************************************************) (* *) xlib for (* *) Fabrice Le Fessant , projet Para / SOR , INRIA Rocq...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/efuns/ocaml_mode.mli
ocaml
********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . type token = | AMPERAMPER | AMPERSAND | AND | AS ...
10b4c8a9340783d456f6de8753fbae2854377e3baaf578b3ebf3c4ca346d7358
mfelleisen/Evolution
player-external.rkt
#lang racket ;; =================================================================================================== ;; overrides player-external's create-feed-* from ../ with a serializable versions of constructors ;; EXTERNAL SERVICES (require (only-in "next.rkt" external-player/c pre-choose)) (provide (all-from...
null
https://raw.githubusercontent.com/mfelleisen/Evolution/cf5ef02696339f8e83cc831932206c6a4ead689e/Xternal/player-external.rkt
racket
=================================================================================================== overrides player-external's create-feed-* from ../ with a serializable versions of constructors EXTERNAL SERVICES creating players that act badly during feed-next ===================================================...
#lang racket (require (only-in "next.rkt" external-player/c pre-choose)) (provide (all-from-out "../player-external.rkt") (contract-out [create-external (-> (external-player/c pre-choose))]) [ Natural Boards Cards Natural Players - > Any ] - > ExternalPlayer create-bad-feed [ Cards Boards - > Any ] -...
887c59aad9981772e7dd6c4a788cf08d0f3a409eb65cff95b4a54be9bdc7c8e4
randomlurker/reframe-auth0
auth0.cljs
(ns reframe-auth0.auth0 (:require [re-frame.core :as re-frame] [reframe-auth0.config :as config] [cljsjs.auth0-lock])) (def lock "The auth0 lock instance used to login and make requests to Auth0" (let [client-id (:client-id config/auth0) domain (:domain config/auth0) optio...
null
https://raw.githubusercontent.com/randomlurker/reframe-auth0/f14ad3e3de7ae30958ad9925925a40cd36e48f54/src/cljs/reframe_auth0/auth0.cljs
clojure
events subscriptions
(ns reframe-auth0.auth0 (:require [re-frame.core :as re-frame] [reframe-auth0.config :as config] [cljsjs.auth0-lock])) (def lock "The auth0 lock instance used to login and make requests to Auth0" (let [client-id (:client-id config/auth0) domain (:domain config/auth0) optio...
c3533b9a2f52036797c62fc72b8b34607828898c792d911c94981bc1e8785973
typedclojure/typedclojure
core__ns.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/5fd7cdf7941c6e7d1dd5df88bf44474fa35e1fca/typed/lib.clojure/src/typed/clj/ext/clojure/core__ns.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:no-doc typed.clj.ext.clojure.core__ns "Typing rules clojure.core/ns" (:require [typed.cljc.analyzer :as ana2] [typed.cljc.checker.check-below :as below] [typed.cljc.checker.filter-ops :as fo] [typed.cljc.checker.filter-rep :as fl...
ef47f88ff416697aecc4a3f6eb8da9b5e058a7a6987a9fcc0e46b8d3439b7342
LexiFi/menhir
MyMap.ml
(******************************************************************************) (* *) (* *) ...
null
https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/attic/src/MyMap.ml
ocaml
**************************************************************************** file LICEN...
, Paris , PPS , Université Paris Diderot . All rights reserved . This file is distributed under the terms of the GNU General Public License version 2 , as...
8162fe213b538edec1a8ae3798a18a54acff582c2d75f4c3a414df826dc64920
FranklinChen/hugs98-plus-Sep2006
Capture.hs
-------------------------------------------------------------------------------- -- | -- Module : Sound.OpenAL.ALC.Capture Copyright : ( c ) 2005 -- License : BSD-style (see the file libraries/OpenAL/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : portable -- This m...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/OpenAL/Sound/OpenAL/ALC/Capture.hs
haskell
------------------------------------------------------------------------------ | Module : Sound.OpenAL.ALC.Capture License : BSD-style (see the file libraries/OpenAL/LICENSE) Maintainer : Stability : provisional Portability : portable ---------------------------------------------------------...
Copyright : ( c ) 2005 This module corresponds to section 6.4.2 . ( Capture ) of the OpenAL Specification and Reference ( version 1.1 ) . module Sound.OpenAL.ALC.Capture ( NumSamples, captureOpenDevice, captureStart, captureNumSamples, captureSamples, captureStop, captureCloseDevice, captureDefau...
013abb811f8c2bf253905d94b4e6356b4483b00b83584f3d54caaaf1a8432a9c
dimitri/AdventOfCode
d02.lisp
(in-package :advent/2018) (defparameter *input/d2/p1* (asdf:system-relative-pathname :advent "2018/d02.input")) (defun contains-two-or-three-of-any-letter (string) "Returns non-nil when STRING contains exactly two of any letter, and exactly three of any letter, as separate values.." (declare (type string str...
null
https://raw.githubusercontent.com/dimitri/AdventOfCode/fcb9f5e9d7e75c82efffc4069c0c54c5cce2d180/2018/d02.lisp
lisp
quadratic approach, good enough for the input size build the resulting label
(in-package :advent/2018) (defparameter *input/d2/p1* (asdf:system-relative-pathname :advent "2018/d02.input")) (defun contains-two-or-three-of-any-letter (string) "Returns non-nil when STRING contains exactly two of any letter, and exactly three of any letter, as separate values.." (declare (type string str...
d5d371480087024d56e89022ae7df488b23246162f8992033f76caab14b9ced8
eliassona/bchain
coinmarketcap.clj
(ns bchain.coinmarketcap (:require [bchain.core :refer [http-call]])) (defn btg->btc [] (read-string (get (first (http-call "/" "bitcoin-gold")) "price_btc")))
null
https://raw.githubusercontent.com/eliassona/bchain/8a49bad4a5810228290ed6c6b99acb5784579c87/src/bchain/coinmarketcap.clj
clojure
(ns bchain.coinmarketcap (:require [bchain.core :refer [http-call]])) (defn btg->btc [] (read-string (get (first (http-call "/" "bitcoin-gold")) "price_btc")))
b556e8c6abee969dfb309b4ca42543daeadcdf1bf2b98b19f1817d350aff0ce4
input-output-hk/cardano-wallet-legacy
Setup.hs
#! /usr/bin/env nix-shell #! nix-shell ./default.nix -i runghc import Distribution.Simple main = defaultMain
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet-legacy/143e6d0dac0b28b3274600c6c49ec87e42ec9f37/Setup.hs
haskell
#! /usr/bin/env nix-shell #! nix-shell ./default.nix -i runghc import Distribution.Simple main = defaultMain
7ec874b461ac066b5d969d637e371b22ef6fb7783b443e64ab5c61cdeb507467
ocamllabs/ocaml-modular-implicits
pr3918b.mli
type 'a vlist = ('a * 'b) Pr3918a.voption as 'b
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/typing-polyvariants-bugs-2/pr3918b.mli
ocaml
type 'a vlist = ('a * 'b) Pr3918a.voption as 'b
fb2fe97ccd49b9434a03cb44a90f662d78d8e2d504652a4851ff5424d25330a6
thephoeron/quipper-language
WithComputed.hs
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the -- file COPYRIGHT for a list of authors, copyright holders, licensing, -- and other details. All rights reserved. -- -- ====================================================================== import Quipper crazy :: (QData a, QCData b) => (...
null
https://raw.githubusercontent.com/thephoeron/quipper-language/15e555343a15c07b9aa97aced1ada22414f04af6/tests/WithComputed.hs
haskell
file COPYRIGHT for a list of authors, copyright holders, licensing, and other details. All rights reserved. ======================================================================
This file is part of Quipper . Copyright ( C ) 2011 - 2014 . Please see the import Quipper crazy :: (QData a, QCData b) => (a -> Circ b) -> (a -> Circ (a,b)) crazy f a = do mapUnary hadamard a y <- with_computed (f a) $ \b -> do b' <- qc_copy b return (a,b') return y circuit :: [Qubit] -> Circ ([Qubi...
136e000364a57a2f31def146f3e6de320c7c960c8802c6b4aa42f7b580747e7f
fortytools/holumbus
NodeMain.hs
-- ---------------------------------------------------------------------------- | Module : Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Module : Copyright : Copyright (C) 2...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/storage/Examples/FileSystem/NodeMain.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ----------------------------------------------------------------------------
| Module : Copyright : Copyright ( C ) 2008 License : MIT Maintainer : ( ) Stability : experimental Portability : portable Version : 0.1 Module : Copyright : Copyright (C) 2008 Stefan Schmidt License : MIT Maintainer : Stefan Schmidt () Stabil...
aeb58c49ee92630b459d7edb98629800cbec676ae635971717d33632f00d917d
heraldry/heraldicon
charge_group.cljs
(ns heraldicon.reader.blazonry.process.charge-group (:require [clojure.walk :as walk] [heraldicon.reader.blazonry.transform.charge-group :as charge-group])) (defn- add-charge-group-defaults [{::charge-group/keys [default-charge-group-amount] :keys [type] ...
null
https://raw.githubusercontent.com/heraldry/heraldicon/f3298ed0b3394f8db78c4e5e548adc61cd9a256d/src/heraldicon/reader/blazonry/process/charge_group.cljs
clojure
(ns heraldicon.reader.blazonry.process.charge-group (:require [clojure.walk :as walk] [heraldicon.reader.blazonry.transform.charge-group :as charge-group])) (defn- add-charge-group-defaults [{::charge-group/keys [default-charge-group-amount] :keys [type] ...
164488ab27c91718aaa2b8ec81a06db12d52cf5c529a0748f7dcdae2e89dce59
thattommyhall/offline-4clojure
p48.clj
;; Intro to some - Easy The some function takes a predicate function and a collection . It returns the first logical true value of ( predicate x ) where x is an item in the collection . ;; tags - ;; restricted - (ns offline-4clojure.p48 (:use clojure.test)) (def __ ;; your solution here ) (defn -main [] (ar...
null
https://raw.githubusercontent.com/thattommyhall/offline-4clojure/73e32fc6687816aea3c514767cef3916176589ab/src/offline_4clojure/p48.clj
clojure
Intro to some - Easy tags - restricted - your solution here
The some function takes a predicate function and a collection . It returns the first logical true value of ( predicate x ) where x is an item in the collection . (ns offline-4clojure.p48 (:use clojure.test)) (def __ ) (defn -main [] (are [soln] soln (= __ (some #{2 7 6} [5 6 7 8])) (= __ (some #(when (even? %...
3cf27d0bf8a191ffcb92336b782c6470c530570dd087ab5f90a05cd832b6e5c6
typeclasses/dsv
Fold.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module DSV.Fold ( Fold (Fold), FoldM (FoldM) , foldDrop, foldDropM , foldProducer, foldProducerM , foldVectorM ) where import DSV.Numbers import DSV.Pipes import DSV.Prelude -- foldl import qualified Control.Foldl as L import Control.Foldl (Fo...
null
https://raw.githubusercontent.com/typeclasses/dsv/ae4eb823e27e4c569c4f9b097441985cf865fbab/dsv/library/DSV/Fold.hs
haskell
foldl pipes
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # module DSV.Fold ( Fold (Fold), FoldM (FoldM) , foldDrop, foldDropM , foldProducer, foldProducerM , foldVectorM ) where import DSV.Numbers import DSV.Pipes import DSV.Prelude import qualified Control.Foldl as L import Control.Foldl (Fold (Fold)...
dec2e256548dd680bd0e45695ddd6da33424f395ec61f0bb60d26d627bd93b4f
morphismtech/squeal
Select.hs
| Module : Squeal . PostgreSQL.Query . Select Description : select statements Copyright : ( c ) , 2019 Maintainer : Stability : experimental select statements Module: Squeal.PostgreSQL.Query.Select Description: select statements Copyright: (c) Eitan Chatav, 2019 Maintainer: Stability: experimental s...
null
https://raw.githubusercontent.com/morphismtech/squeal/f25c3052bcecebe5e88ee95143c4ae446c24ca85/squeal-postgresql/src/Squeal/PostgreSQL/Query/Select.hs
haskell
** Select $setup >>> import Squeal.PostgreSQL ---------------------------------------- SELECT queries ---------------------------------------- ^ `Additional` `Selection` | the `TableExpression` in the `select` command constructs an intermediate virtual table by possibly combining tables, views, eliminating rows, ...
| Module : Squeal . PostgreSQL.Query . Select Description : select statements Copyright : ( c ) , 2019 Maintainer : Stability : experimental select statements Module: Squeal.PostgreSQL.Query.Select Description: select statements Copyright: (c) Eitan Chatav, 2019 Maintainer: Stability: experimental s...
52c7dfc1e2ac20a41b3e0c84de477cb05fae8d56e33219acd1a392f27ee71326
coccinelle/herodotos
eldestdeath.ml
open Helper let age vlist factor bugs idx = let eldestage = List.fold_left (fun eldest bug -> let (_,_, _, _, bmin, bmax, _) = bug in if idx = bmax then let (_, dmin, _, _) = Array.get vlist bmin in let (_, dmax, _, _) = Array.get vlist bmax in max eldest (dmax - dmin) else eldest...
null
https://raw.githubusercontent.com/coccinelle/herodotos/5da230a18962ca445ed2368bc21abe0a8402e00f/herodotos/graph/eldestdeath.ml
ocaml
open Helper let age vlist factor bugs idx = let eldestage = List.fold_left (fun eldest bug -> let (_,_, _, _, bmin, bmax, _) = bug in if idx = bmax then let (_, dmin, _, _) = Array.get vlist bmin in let (_, dmax, _, _) = Array.get vlist bmax in max eldest (dmax - dmin) else eldest...
98574997c4c1829ed151c896d119ab866e06581aa2f7194d82ccc5053e5d7300
egobrain/emodel
emodel_converters_tests.erl
-module(emodel_converters_tests). -include_lib("eunit/include/eunit.hrl"). get_converter(Type) -> get_converter(Type, #{ converters => fun get_converter/2 }). get_converter(Type, Opts) -> emodel_converters:get_converter(Type, Opts). fun1_test() -> Converter = get_converter( fun (a) -...
null
https://raw.githubusercontent.com/egobrain/emodel/361f5eef0aabc63c390e26b43c602e14e06425cb/test/emodel_converters_tests.erl
erlang
-module(emodel_converters_tests). -include_lib("eunit/include/eunit.hrl"). get_converter(Type) -> get_converter(Type, #{ converters => fun get_converter/2 }). get_converter(Type, Opts) -> emodel_converters:get_converter(Type, Opts). fun1_test() -> Converter = get_converter( fun (a) -...
2c2a5b0eba7425cf238990a884d6c2821f4382dc750bcb51f1404a29032a154c
nextjournal/clerk
builder.clj
(ns nextjournal.clerk.builder "Clerk's Static App Builder." (:require [babashka.fs :as fs] [babashka.process :refer [sh]] [clojure.java.browse :as browse] [clojure.java.io :as io] [clojure.string :as str] [nextjournal.clerk.analyzer :as analyzer] ...
null
https://raw.githubusercontent.com/nextjournal/clerk/94dfb96138cfc549c3e4c0948f6ebf71380a4676/src/nextjournal/clerk/builder.clj
clojure
no user-defined index page NOTE: a .cjs extension is safer in case the current npm project is of type module (like Clerk's): in this case all .js files
(ns nextjournal.clerk.builder "Clerk's Static App Builder." (:require [babashka.fs :as fs] [babashka.process :refer [sh]] [clojure.java.browse :as browse] [clojure.java.io :as io] [clojure.string :as str] [nextjournal.clerk.analyzer :as analyzer] ...
09561752f6236e86f0ac641f07f06292a87ff3a382e5f7984726156d1b3e46a0
jscl-project/jscl
tests-report.lisp
(format t "~%Finished. The execution took ~a seconds.~%" (/ (- (get-internal-real-time) *timestamp*) internal-time-units-per-second 1.0)) (if (= *passed-tests* *total-tests*) (format t "All the tests (~a) passed successfully.~%" *total-tests*) (format t "~a/~a test(s) passed successfully.~%" *passed-te...
null
https://raw.githubusercontent.com/jscl-project/jscl/d38eec2aeb47d04f1caf3d1cda82dc968d67c305/tests-report.lisp
lisp
(format t "~%Finished. The execution took ~a seconds.~%" (/ (- (get-internal-real-time) *timestamp*) internal-time-units-per-second 1.0)) (if (= *passed-tests* *total-tests*) (format t "All the tests (~a) passed successfully.~%" *total-tests*) (format t "~a/~a test(s) passed successfully.~%" *passed-te...
c632ad182c08135fb30c9ceb61295339b888b03fc8f92cbad4fb6300704acbfe
LeventErkok/sbv
Enumerate.hs
----------------------------------------------------------------------------- -- | -- Module : BenchSuite.Optimization.Enumerate Copyright : ( c ) -- License : BSD3 -- Maintainer: -- Stability : experimental -- Bench suite for Documentation . SBV.Examples . Optimization . Enumerate -----...
null
https://raw.githubusercontent.com/LeventErkok/sbv/cfaa40b8c8ff8e1b7ff9ab71304654f6f531ba72/SBVBenchSuite/BenchSuite/Optimization/Enumerate.hs
haskell
--------------------------------------------------------------------------- | Module : BenchSuite.Optimization.Enumerate License : BSD3 Maintainer: Stability : experimental --------------------------------------------------------------------------- # OPTIONS_GHC -Wall -Werror # benchmark suite
Copyright : ( c ) Bench suite for Documentation . SBV.Examples . Optimization . Enumerate module BenchSuite.Optimization.Enumerate(benchmarks) where import Documentation.SBV.Examples.Optimization.Enumerate import BenchSuite.Bench.Bench as B import BenchSuite.Optimization.Instances() bench...
f622973de9f6aa1356ab1895ec808bc872967b43e32610d90e349f5a77c8a4e7
bhaskara/programmable-reinforcement-learning
ve-prog1.lisp
(defpackage ve-prog (:documentation "Package ve-prog. Types ----- <ve-prog> Program symbols --------------- footman peasant wait ") (:export <ve-prog> footman peasant wait) (:use cl set utils calisp-prog) (:import-from ve-env train-footman train-pe...
null
https://raw.githubusercontent.com/bhaskara/programmable-reinforcement-learning/8afc98116a8f78163b3f86076498d84b3f596217/lisp/calisp-examples/ve-env/ve-prog1.lisp
lisp
env features
(defpackage ve-prog (:documentation "Package ve-prog. Types ----- <ve-prog> Program symbols --------------- footman peasant wait ") (:export <ve-prog> footman peasant wait) (:use cl set utils calisp-prog) (:import-from ve-env train-footman train-pe...
6da7ad8a2405105017e66971a1feeadf270150045ea595b565f9a87b1d8af8a4
slagyr/joodo
views_spec.clj
(ns joodo.views-spec (:use [speclj.core] [joodo.views]) (:import [java.io StringReader])) (def foo "FOO") (describe "Views" (it "default context" (should= "layout" (:layout *view-context*)) (should= "view" (:template-root *view-context*)) (should= `joodo.default-rendering (:ns *view-con...
null
https://raw.githubusercontent.com/slagyr/joodo/e7edbc707a7901d1a1c5465382dd25db368f4596/joodo/spec/joodo/views_spec.clj
clojure
(ns joodo.views-spec (:use [speclj.core] [joodo.views]) (:import [java.io StringReader])) (def foo "FOO") (describe "Views" (it "default context" (should= "layout" (:layout *view-context*)) (should= "view" (:template-root *view-context*)) (should= `joodo.default-rendering (:ns *view-con...
ba06bcc4a0e1589f61561197d4d6cf850d8474a75f466a598acfbb52539caf7e
riemann/riemann
blueflood_test.clj
(ns riemann.blueflood-test (:require [riemann.blueflood :refer :all] [riemann.config :refer [apply!]] [riemann.logging :as logging] [riemann.streams :refer :all] [riemann.test :refer [run-stream]] [riemann.time.controlled :refer :all] [riemann.ti...
null
https://raw.githubusercontent.com/riemann/riemann/1649687c0bd913c378701ee0b964a9863bde7c7c/test/riemann/blueflood_test.clj
clojure
These tests assume you've got blueflood running on the localhost Fix the host:port below if that's not the case the timestamp causes the the batch to complete and be sent Create the async executor Feed the input into BF Read it back from BF test synchronously test asynchronously
(ns riemann.blueflood-test (:require [riemann.blueflood :refer :all] [riemann.config :refer [apply!]] [riemann.logging :as logging] [riemann.streams :refer :all] [riemann.test :refer [run-stream]] [riemann.time.controlled :refer :all] [riemann.ti...
88c395186dcfd4b0717b25a5c39446ed822f7d38b70eec74ced0f79353e7b438
GaloisInc/ivory-rtverification
Types.hs
module Ivory.RTVerification.Types where -- | Types we support runtime monitoring over. data Type = Int | LongInt | Double | Float | Char deriving (Eq, Show, Read) data VarId = VarId { vType :: Type , idx :: Integer , varStr :: String } deriving (Show, Read)
null
https://raw.githubusercontent.com/GaloisInc/ivory-rtverification/b4c50f85aea48be2fe26fb3310e01b68b3d163af/rtv-lib/src/Ivory/RTVerification/Types.hs
haskell
| Types we support runtime monitoring over.
module Ivory.RTVerification.Types where data Type = Int | LongInt | Double | Float | Char deriving (Eq, Show, Read) data VarId = VarId { vType :: Type , idx :: Integer , varStr :: String } deriving (Show, Read)
f617bfe081d0e14f54eaac655c04957ee72c1f7d52eb148423e184702deae87d
tolysz/prepare-ghcjs
Handle.hs
# LANGUAGE Trustworthy # {-# LANGUAGE CPP , NoImplicitPrelude , RecordWildCards , NondecreasingIndentation #-} {-# OPTIONS_GHC -Wno-unused-matches #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.IO.Handle Copyright : ...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/base-pure/GHC/IO/Handle.hs
haskell
# LANGUAGE CPP , NoImplicitPrelude , RecordWildCards , NondecreasingIndentation # # OPTIONS_GHC -Wno-unused-matches # --------------------------------------------------------------------------- | Module : GHC.IO.Handle License : see libraries/base/LICENSE Maintainer :...
# LANGUAGE Trustworthy # Copyright : ( c ) The University of Glasgow , 1994 - 2009 External API for GHC 's Handle implementation module GHC.IO.Handle ( Handle, BufferMode(..), mkFileHandle, mkDuplexHandle, hFileSize, hSetFileSize, hIsEOF, hLookAhead, hSetBuffering, hSetBinaryMode, hSetEncodi...
fdb95930902c7e27d1c1f092e61fbd9fdd2612ed5970ee7071b62c97f3ce18a0
basho/riak_test
ts_degraded_activate_table_fail_1.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the Li...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/ts_degraded_activate_table_fail_1.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2015 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY @doc A module to test riak_ts ...
136ea720e33486dd6efae0317a2160243d84a54a3c241e94c382a3c5b58c0a6c
pmai/sha3
pkgdef.lisp
SHA3 --- Secure Hash Algorithm 3 ( Keccak ) Implementation ;;;; Copyright ( C ) 2012 -- 2018 PMSF IT Consulting . ;;;; ;;;; Permission is hereby granted, free of charge, to any person obtaining ;;;; a copy of this software and associated documentation files (the " Software " ) , to deal in the Software without...
null
https://raw.githubusercontent.com/pmai/sha3/92e0e0b916502085932e15a27525922135d9d065/pkgdef.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: The above copyright notice and this permission notice shall be EXPRESS OR IMPLIED,...
SHA3 --- Secure Hash Algorithm 3 ( Keccak ) Implementation Copyright ( C ) 2012 -- 2018 PMSF IT Consulting . " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do ...
1f8b0d423e5cef4936459422ea155b5911da5f769bd19b067c1db66f0b11d57a
haskell/containers
Internal.hs
# LANGUAGE CPP # {-# LANGUAGE BangPatterns #-} # LANGUAGE PatternGuards # #ifdef __GLASGOW_HASKELL__ {-# LANGUAGE DeriveLift #-} # LANGUAGE MagicHash # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # #endif #if !defined(TESTING) && defined(__GLASGOW_HASKELL__) # LANGUAGE Trustworthy # #endif # OPTIONS_HADDOC...
null
https://raw.githubusercontent.com/haskell/containers/848286d531e9700b5a16970a8b50aac0fb969406/containers/src/Data/IntSet/Internal.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveLift # --------------------------------------------------------------------------- | Module : Data.IntSet.Internal License : BSD-style Maintainer : Portability : portable = WARNING This module is considered __internal__. The contents of this module m...
# LANGUAGE CPP # # LANGUAGE PatternGuards # #ifdef __GLASGOW_HASKELL__ # LANGUAGE MagicHash # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # #endif #if !defined(TESTING) && defined(__GLASGOW_HASKELL__) # LANGUAGE Trustworthy # #endif # OPTIONS_HADDOCK not - home # #include "containers.h" Copyright : ...
61ae340fb0227759bca053e1abfac0fc0d4f38c5efe0951f9867e8e2ce5eb1b6
xapi-project/xen-api
daemon_manager.ml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/xapi-project/xen-api/6c2aadbb44166b389a3bd956c8a6af5787003d68/ocaml/xapi/daemon_manager.ml
ocaml
* Tristate value for representing the state of a daemon we want to manage. * No threads which care about the state of the daemon are running. * Daemon should be started when the last thread exits with_daemon_stopped. * Daemon should not be started when the last thread exits with_daemon_stop...
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
30b4fe76eb28f1b7af83effa569f9ef671ff712c4aca3221157a277f045c0009
AndrasKovacs/ELTE-func-lang
ParseWhile.hs
module ParseWhile where import Control.Applicative import Syntax import Parser iLit :: Parser Lit iLit = LInt <$> token natural bLit :: Parser Lit bLit = (LBool True <$ string' "true") <|> (LBool False <$ string' "false") lit :: Parser Lit lit = iLit <|> bLit parens :: Parser a -> Parser a parens p = string...
null
https://raw.githubusercontent.com/AndrasKovacs/ELTE-func-lang/88d41930999d6056bdd7bfaa85761a527cce4113/2019-20-1/jan13-pre/ParseWhile.hs
haskell
module ParseWhile where import Control.Applicative import Syntax import Parser iLit :: Parser Lit iLit = LInt <$> token natural bLit :: Parser Lit bLit = (LBool True <$ string' "true") <|> (LBool False <$ string' "false") lit :: Parser Lit lit = iLit <|> bLit parens :: Parser a -> Parser a parens p = string...
e3f0f079f5c4253645847e0c425145356d4e29de2fcc3d675e9e928734a81131
mejgun/haskell-tdlib
LanguagePackStringValue.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.LanguagePackStringValue where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | Represents the value of a string in a language pack data LanguagePackStringValue | An ordinary language pack string @value St...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Data/LanguagePackStringValue.hs
haskell
# LANGUAGE OverloadedStrings # | | Represents the value of a string in a language pack | | A language pack string which has different forms based on the number of some object it mentions. See for more information | Default value | Value for many objects | Value for few objects
module TD.Data.LanguagePackStringValue where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U data LanguagePackStringValue | An ordinary language pack string @value String value LanguagePackStringValueOrdinary value :: Maybe String } Language...
f43769305d3d22bd30401b72412fb5d408066a00f4a7c80f79b5a9e4c8086502
UU-ComputerScience/uhc
MonadFix1.hs
{- ---------------------------------------------------------------------------------------- what : mfix tying the knot should work expected: ok ---------------------------------------------------------------------------------------- -} module MonadFix1 where import Data.IORef import FixIO import System ....
null
https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/regress/99/MonadFix1.hs
haskell
---------------------------------------------------------------------------------------- what : mfix tying the knot should work expected: ok ----------------------------------------------------------------------------------------
module MonadFix1 where import Data.IORef import FixIO import System . IO import Control.Monad.Fix returnIO :: a -> IO a returnIO = return data Shape w = Shape { getPos :: IO ((Int,Int)) , getX :: IO Int , getY :: IO Int , shapeTail' :: w } shape x y tail self = do xRef <- newIORef x yRef <- newIORe...
7fc7ee42d4ac4b022243b8b20c0adf2f77303c407db2d0685ca4177294a5b304
marick/fp-oo
klass.clj
Exercise 1 I 'm using a new Clojure function : ` assoc - in ` . It lets you create a ;;; new map with a deeply nested value changed. You give it the path ;;; to the value you want replaced. (def Klass (assoc-in Klass [:__instance_methods__ :to-string] (fn [class] ...
null
https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/solutions/klass.clj
clojure
new map with a deeply nested value changed. You give it the path to the value you want replaced. I'll mark classes invisible by tagging them with metadata. Change the already-defined metaclasses to be invisible: Ancestors just removes invisible classes from the reversed lineage. New metaclasses need to be create...
Exercise 1 I 'm using a new Clojure function : ` assoc - in ` . It lets you create a (def Klass (assoc-in Klass [:__instance_methods__ :to-string] (fn [class] (str "class " (:__own_symbol__ class))))) Exercise 2 (def invisible (fn [class] (ass...
8ceabd3d73536f536dd7bbc3713223e26fee21329823e21d96bb3eed004038eb
haskell-github/github
EventsSpec.hs
{-# LANGUAGE OverloadedStrings #-} module GitHub.EventsSpec where import Data.Either (isRight) import Data.String (fromString) import Prelude () import Prelude.Compat import System.Environment (lookupEnv) import Test.Hspec (Spec, describe, it, shouldSatisfy, pendingWith...
null
https://raw.githubusercontent.com/haskell-github/github/d9ac0c7ffbcc720a24d06f0a96ea4e3891316d1a/spec/GitHub/EventsSpec.hs
haskell
# LANGUAGE OverloadedStrings #
module GitHub.EventsSpec where import Data.Either (isRight) import Data.String (fromString) import Prelude () import Prelude.Compat import System.Environment (lookupEnv) import Test.Hspec (Spec, describe, it, shouldSatisfy, pendingWith) import qualified GitHub import G...
5a69efd12459ef03a6ceded51cb0759412adb9a37ef3172c2651823c3918d504
dfinity-side-projects/gossip
Test.hs
import Data.List import Test.Tasty import Test.Tasty.HUnit import Kautz assertInverse :: (Int, Int) -> Assertion assertInverse (m, n) = s @=? (fromKautz m . toKautz m n <$> s) where s = [0..kautzSize m n - 1] assertSizeBounds :: Int -> Assertion assertSizeBounds sz = withinBounds @? "in range" where withinBo...
null
https://raw.githubusercontent.com/dfinity-side-projects/gossip/fe0311fc37d79f2abf6aaa7bc00def5c43569852/Test.hs
haskell
import Data.List import Test.Tasty import Test.Tasty.HUnit import Kautz assertInverse :: (Int, Int) -> Assertion assertInverse (m, n) = s @=? (fromKautz m . toKautz m n <$> s) where s = [0..kautzSize m n - 1] assertSizeBounds :: Int -> Assertion assertSizeBounds sz = withinBounds @? "in range" where withinBo...
9e082c4c4fd3ac457938112f827288a84d8527ce7daa1aea7496bb8228646833
ChrisPenner/eve
Testing.hs
module Eve.Testing ( noIOTest ) where import Eve.Internal.Actions import Eve.Internal.AppState import Control.Monad.Identity import Data.Default noIOTest :: AppT AppState Identity a -> (a, AppState) noIOTest = runIdentity . runEve def
null
https://raw.githubusercontent.com/ChrisPenner/eve/6081b1ff13229b93e5e5a4505fd23aa0a25c96b1/src/Eve/Testing.hs
haskell
module Eve.Testing ( noIOTest ) where import Eve.Internal.Actions import Eve.Internal.AppState import Control.Monad.Identity import Data.Default noIOTest :: AppT AppState Identity a -> (a, AppState) noIOTest = runIdentity . runEve def
2cc873a6212d3caa1784b933f196bc6fc84d2ffa978f04c8f8a591468d03b5a3
haslab/HAAP
OracleT4.hs
# LANGUAGE PatternGuards # module OracleT4 where import LI11718 import OracleT3 import Test.QuickCheck.Gen import Data.List import Data.Maybe import Safe --import Debug.Trace import Data.Fixed validaJogo :: Tempo -> Jogo -> Int -> Bool validaJogo t j i = length (carros j) == length (nitros j) && leng...
null
https://raw.githubusercontent.com/haslab/HAAP/5acf9efaf0e5f6cba1c2482e51bda703f405a86f/examples/plab/svn/2017li1g183/src/OracleT4.hs
haskell
import Debug.Trace going right going left
# LANGUAGE PatternGuards # module OracleT4 where import LI11718 import OracleT3 import Test.QuickCheck.Gen import Data.List import Data.Maybe import Safe import Data.Fixed validaJogo :: Tempo -> Jogo -> Int -> Bool validaJogo t j i = length (carros j) == length (nitros j) && length (carros j) == leng...
76c9ac7cf7f3d8a39e318e5a8f718e270fd7d909c99efd27b7a132c9add18833
inhabitedtype/ocaml-aws
removeTags.mli
open Types type input = RemoveTagsInput.t type output = unit type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/elasticloadbalancing/lib/removeTags.mli
ocaml
open Types type input = RemoveTagsInput.t type output = unit type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
182636b22f2fdcc2ba9e87f8218d80c0da1254fdd3067e421555f3f5cd7e43ab
Carnap/Carnap
Home.hs
module Handler.Home where import Import getHomeR :: Handler Html getHomeR = do defaultLayout $ do --attempt to preload ghcjs runtime addScript $ StaticR ghcjs_rts_js setTitle "Welcome To Carnap!" $(widgetFile "homepage")
null
https://raw.githubusercontent.com/Carnap/Carnap/99546e377008247c5a1e8de1e294aac8e22584d7/Carnap-Server/Handler/Home.hs
haskell
attempt to preload ghcjs runtime
module Handler.Home where import Import getHomeR :: Handler Html getHomeR = do defaultLayout $ do addScript $ StaticR ghcjs_rts_js setTitle "Welcome To Carnap!" $(widgetFile "homepage")
924bf63628b55a56895d373f73868b82962c995d1d52f55e9905e30fa50bab83
clojure-interop/java-jdk
DefaultEditorKit$DefaultKeyTypedAction.clj
(ns javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction "The action that is executed by default if a key typed event is received and there is no keymap entry. There is a variation across different VM's in what gets sent as a key typed event, and this action tries to filter out the undesired events. Th...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/text/DefaultEditorKit%24DefaultKeyTypedAction.clj
clojure
(ns javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction "The action that is executed by default if a key typed event is received and there is no keymap entry. There is a variation across different VM's in what gets sent as a key typed event, and this action tries to filter out the undesired events. Th...
820edec61daf5c057eed7608e99c36fc456c0de81d215fdf0f78df86591f58a4
fpco/casa
Backend.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - missing - signatures # # LANGUAGE NoMonomorphismRestriction # -- | module Casa.Backend (module X, withBackendPool,manualMigration) where import Control.Monad.Trans.Reader import Data.Functor import D...
null
https://raw.githubusercontent.com/fpco/casa/471a0cbab34e7a821f8db7911aca124e79c35bff/casa-server/src/postgresql/Casa/Backend.hs
haskell
# LANGUAGE OverloadedStrings # |
# LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # OPTIONS_GHC -fno - warn - missing - signatures # # LANGUAGE NoMonomorphismRestriction # module Casa.Backend (module X, withBackendPool,manualMigration) where import Control.Monad.Trans.Reader import Data.Functor import Database.Persist.Postgresql as X import Y...