_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
4edddef1a224edd404b978092a4404c006e4cc27a12b6006e488359d8150a774
NorfairKing/haphviz
subgraph.hs
{-# LANGUAGE OverloadedStrings #-} import Text.Dot main :: IO () main = renderToStdOut $ graph directed "example" $ do a <- node "a" b <- node "b" subgraph "a" $ do a --> b b --> a subgraph "b" $ do b --> b
null
https://raw.githubusercontent.com/NorfairKing/haphviz/90f1e8e0cbcd2a0745cfa66a46e878b473b3cf7e/examples/subgraph.hs
haskell
# LANGUAGE OverloadedStrings # > b > a > b
import Text.Dot main :: IO () main = renderToStdOut $ graph directed "example" $ do a <- node "a" b <- node "b" subgraph "a" $ do subgraph "b" $ do
f3dcd41ac0047c00f1700e51bf54fb4c0fc3c0493059be58b5fdf9714318e375
Liutos/cl-github-page
package.lisp
(defpackage #:com.liutos.cl-github-page.compile (:use #:cl) (:import-from #:drakma #:http-request) (:import-from #:json #:encode-json-alist-to-string) (:export #:*executor* #:*mode* #:compile-from-markdown))
null
https://raw.githubusercontent.com/Liutos/cl-github-page/336e4ad925c95969a8686ea2267099f49c1e01a6/src/compile/package.lisp
lisp
(defpackage #:com.liutos.cl-github-page.compile (:use #:cl) (:import-from #:drakma #:http-request) (:import-from #:json #:encode-json-alist-to-string) (:export #:*executor* #:*mode* #:compile-from-markdown))
b5a9a30db3731a1b2f260b4b43829443098d9acf15f0e24a80d558a80c1971d0
monadfix/ormolu-live
CmdLineParser.hs
# LANGUAGE CPP # # LANGUAGE DeriveFunctor # ------------------------------------------------------------------------------- -- -- | Command-line parser -- This is an abstract command - line parser used by DynFlags . -- ( c ) The University of Glasgow 2005 -- --------------------------------------------------------...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/compiler/main/CmdLineParser.hs
haskell
----------------------------------------------------------------------------- | Command-line parser ----------------------------------------------------------------------------- ------------------------------------------------------ ------------------------------------------------------ Flag, without the leading ...
# LANGUAGE CPP # # LANGUAGE DeriveFunctor # This is an abstract command - line parser used by DynFlags . ( c ) The University of Glasgow 2005 module CmdLineParser ( processArgs, OptKind(..), GhcFlagMode(..), CmdLineP(..), getCmdLineState, putCmdLineState, Flag(..), defFlag, defGhcFlag, defGh...
5915dca216653ac725a02d3031bce2a54f98c6084d97f2e0e8510bf42e5d272d
FireEmblemUniverse/EAFormattingSuite
FlagUtilities.hs
Utilities for parsing commandline options module FlagUtilities where isFlag::String->Bool isFlag [] = False isFlag x = (=='-') . head $ x isOption::String->Bool isOption = (=="--") . take 2 getFlags::[String]->[String] getFlags = filter isFlag getOptions::[String]->[String] getOptions = filter isOption getParams...
null
https://raw.githubusercontent.com/FireEmblemUniverse/EAFormattingSuite/af63810897c80c0cffee34313997dd3b2b58694e/FlagUtilities.hs
haskell
Utilities for parsing commandline options module FlagUtilities where isFlag::String->Bool isFlag [] = False isFlag x = (=='-') . head $ x isOption::String->Bool isOption = (=="--") . take 2 getFlags::[String]->[String] getFlags = filter isFlag getOptions::[String]->[String] getOptions = filter isOption getParams...
98e1c30f18fac1205bef527602046837eca2d43e41900dfa01f4a5daa26579c8
wilbowma/cur
base.rkt
#lang s-exp "../main.rkt" ;; Proof tree representation and top-level syntax (require "../stdlib/sugar.rkt" (only-in racket [define r:define]) (for-syntax "ctx.rkt" macrotypes/stx-utils racket/match racket/list racket/pretty)) (provide define-theorem define-theorem/for-export ntac ntac...
null
https://raw.githubusercontent.com/wilbowma/cur/e039c98941b3d272c6e462387df22846e10b0128/cur-lib/cur/ntac/base.rkt
racket
Proof tree representation and top-level syntax proof tree zipper NTac proof Tree This is gross boilerplate to obtain default fields. TODO: track number of holes/subgoals? prev : ntt -> nttz Produces a new zipper from the current focus replace with new param (pretty-print (syntax->datum pf)) XXX Error ...
#lang s-exp "../main.rkt" (require "../stdlib/sugar.rkt" (only-in racket [define r:define]) (for-syntax "ctx.rkt" macrotypes/stx-utils racket/match racket/list racket/pretty)) (provide define-theorem define-theorem/for-export ntac ntac/debug) (begin-for-syntax (provide ntac-synt...
f4d6d28fab701335dedf1f20e7e4144e6fbdb731e6f3a8e7a6497f31ab6e0386
dxtr/clsql
transaction.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; ;;;; Transaction support ;;;; This file is part of CLSQL . ;;;; CLSQL users are granted the rights to distribute and use this software as governed by the terms of t...
null
https://raw.githubusercontent.com/dxtr/clsql/8061aae1ecb878954115c7aacd90685a65bf4107/sql/transaction.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* Transaction support (), also known as the LLGPL. ************************************************************************* TODO: database-autocommit might get lost in some scenarios when poo...
This file is part of CLSQL . CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-package #:clsql-sys) (defclass transaction () ((commit-hooks :initform () :accessor commit-hooks) (rollback-hooks :initform () :accessor rol...
2adc10a974f8eb45c8184bfc6db3ed422ae643eec62c7d328b21fa851c0fa6bb
HaskellZhangSong/Introduction_to_Haskell_2ed_source
UnsafeIOTest.hs
import System.IO.Unsafe import Data.IORef ref :: IORef Int ref = unsafePerformIO $ newIORef 0 plus :: IO () plus = do x <- readIORef ref y <- writeIORef ref 1 >> return 100 print (x + y) plus' :: IO () plus' = do x <- unsafeInterleaveIO $ readIORef ref y <- unsafeInterleaveIO $ writeIORef r...
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell_2ed_source/140c50fdccfe608fe499ecf2d8a3732f531173f5/C11/UnsafeIOTest.hs
haskell
import System.IO.Unsafe import Data.IORef ref :: IORef Int ref = unsafePerformIO $ newIORef 0 plus :: IO () plus = do x <- readIORef ref y <- writeIORef ref 1 >> return 100 print (x + y) plus' :: IO () plus' = do x <- unsafeInterleaveIO $ readIORef ref y <- unsafeInterleaveIO $ writeIORef r...
9aa5a698c514a837b4fb1e9e123bec8212b2c8dfb78ad87d6facaa59f6be9998
WeiDUorg/weidu
arch_mingw.ml
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 6 November 2005 . All changes for this file are listed in ...
null
https://raw.githubusercontent.com/WeiDUorg/weidu/9b984cb7153c4ff83fb23feff06a6d1ecd5e5761/src/arch_mingw.ml
ocaml
MinGW Arch-Specific Definitions how to view a text file
This file has been edited by , a.k.a . , starting from 18 December 2012 and WeiDU 231.06 . starting from 18 December 2012 and WeiDU 231.06. *) Note added due to LGPL terms . This file was edited by , AKA The Bigg , starting from 6 November 2005 . All changes for this file are listed in ...
7fb7badf54c2802607487b547b58fbb138dcdf36a3b5497fc5ff2543da65bf20
bgamari/ghc-debug
SaveIPEPause.hs
import GHC.Debug.Stub import System.Mem import Control.Concurrent import System.IO import Data.Word import GHC.Stats main :: IO () main = withGhcDebug $ do print "sync" hFlush stdout saveClosures [Box (id 5)] performGC -- Give the test a chance to RequestPoll threadDelay 50000000
null
https://raw.githubusercontent.com/bgamari/ghc-debug/a72e75449df0833eaaccd9ae67948aabb6b3da38/test/test-progs/SaveIPEPause.hs
haskell
Give the test a chance to RequestPoll
import GHC.Debug.Stub import System.Mem import Control.Concurrent import System.IO import Data.Word import GHC.Stats main :: IO () main = withGhcDebug $ do print "sync" hFlush stdout saveClosures [Box (id 5)] performGC threadDelay 50000000
c3c4bc5b028daace1de7d957568d1a8757404e1cc1a5388155e30b39958e04f4
dfinity/motoko
definedness.mli
open Mo_def val check_prog : Syntax.prog -> unit Diag.result val check_lib : Syntax.lib -> unit Diag.result
null
https://raw.githubusercontent.com/dfinity/motoko/399b8e8b0b47890388cd38ee0ace7638d9092b1a/src/mo_frontend/definedness.mli
ocaml
open Mo_def val check_prog : Syntax.prog -> unit Diag.result val check_lib : Syntax.lib -> unit Diag.result
23906ed69d3264dbacc90a35ea206d253e040f1bb5a72b4f4e405f2b7190d10d
untangled-web/untangled-ui
Layout__01_Basics.cljs
(ns untangled.ui.Layout--01-Basics (:require [devcards.core :as dc :refer-macros [defcard defcard-doc]] [om.dom :as dom] [untangled.ui.layout :as l] [untangled.ui.elements :as ele] [untangled.client.core :as uc])) (comment "TODO" (defn responsive-alt [& kv-pairs]) (ui-fixed {:className "bo...
null
https://raw.githubusercontent.com/untangled-web/untangled-ui/ae101f90cd9b7bf5d0c80e9453595fdfe784923c/src/guide/untangled/ui/Layout__01_Basics.cljs
clojure
(ns untangled.ui.Layout--01-Basics (:require [devcards.core :as dc :refer-macros [defcard defcard-doc]] [om.dom :as dom] [untangled.ui.layout :as l] [untangled.ui.elements :as ele] [untangled.client.core :as uc])) (comment "TODO" (defn responsive-alt [& kv-pairs]) (ui-fixed {:className "bo...
9b9ea4232831706fd5dafc932c8893ffda3ff36662d2f1ba3f3aa86c29a0dcb3
Clozure/ccl
arm-misc.lisp
-*- Mode : Lisp ; Package : CCL -*- ;;; ;;; Copyright 2010 Clozure Associates ;;; 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 applica...
null
https://raw.githubusercontent.com/Clozure/ccl/6c1a9458f7a5437b73ec227e989aa5b825f32fd3/level-0/ARM/arm-misc.lisp
lisp
Package : CCL -*- Copyright 2010 Clozure Associates 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. ...
distributed under the License is distributed on an " AS IS " BASIS , (in-package "CCL") (defun %copy-ptr-to-ivector (src src-byte-offset dest dest-byte-offset nbytes) (declare (fixnum src-byte-offset dest-byte-offset nbytes) (optimize (speed 3) (safety 0))) (let* ((ptr-align (logand 7 (%ptr-to...
332d8248e71dbcd6f27c828aff7e0f5daf01ae13ddde8a18689ae433351817ef
tokenmill/timewords
standard.clj
(ns timewords.standard.standard (:require [clojure.string :as s] [clj-time.coerce :refer [from-date]] [timewords.standard.formats :as formats] [timewords.standard.utils :as utils]) (:import (org.joda.time DateTime) (java.util Locale))) (def date-part-normalizations ...
null
https://raw.githubusercontent.com/tokenmill/timewords/431ef3aa9eb899f2abd47cebc20a232f8c226b4a/src/timewords/standard/standard.clj
clojure
for cases where multiple patterns match
(ns timewords.standard.standard (:require [clojure.string :as s] [clj-time.coerce :refer [from-date]] [timewords.standard.formats :as formats] [timewords.standard.utils :as utils]) (:import (org.joda.time DateTime) (java.util Locale))) (def date-part-normalizations ...
db008bbb2456bbd51dbf8384f9c18ef125976eae7f400191a1b197d66397fe87
jgm/pandoc-citeproc
CSL.hs
# LANGUAGE NoImplicitPrelude # ----------------------------------------------------------------------------- -- | Module : Text . CSL Copyright : ( c ) -- License : BSD-style (see LICENSE) -- Maintainer : < > -- Stability : unstable -- Portability : unportable -- /citeproc - hs/ i...
null
https://raw.githubusercontent.com/jgm/pandoc-citeproc/473378e588c40a6c3cb3b24330431b89cf4f81b4/src/Text/CSL.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see LICENSE) Stability : unstable Portability : unportable bibliographic reference citations into a variety of styles using a This module documents and exports the library API. -------------------------...
# LANGUAGE NoImplicitPrelude # Module : Text . CSL Copyright : ( c ) Maintainer : < > /citeproc - hs/ is a library for automatically formatting macro language called Citation Style Language ( CSL ) . More details on CSL can be found here : < / > . module Text.CSL readBiblioFil...
3fb915d3d45a17c4ebf2486062e8e7ab244dbcdc965856c66768bc43165d2419
40ants/ci
sh.lisp
(defpackage #:40ants-ci/steps/sh (:use #:cl) (:import-from #:40ants-ci/steps/step) (:import-from #:40ants-ci/github) (:import-from #:alexandria #:remove-from-plistf) (:import-from #:40ants-ci/utils #:dedent) (:export #:sh #:sections)) (in-package 40ants-ci/steps/sh) (...
null
https://raw.githubusercontent.com/40ants/ci/f8de02181e78a610d928187c7fd642dac352560d/src/steps/sh.lisp
lisp
ignore-critiques: if-no-else
(defpackage #:40ants-ci/steps/sh (:use #:cl) (:import-from #:40ants-ci/steps/step) (:import-from #:40ants-ci/github) (:import-from #:alexandria #:remove-from-plistf) (:import-from #:40ants-ci/utils #:dedent) (:export #:sh #:sections)) (in-package 40ants-ci/steps/sh) (...
d38ff398bcde21fdfdf17184d2aa8455f19f1184aa0cadcedbdde88825fa1e1c
conal/Fran
Main.hs
module Main where import qualified TwoFloorSimBut2 as Lift main = Lift.main
null
https://raw.githubusercontent.com/conal/Fran/a113693cfab23f9ac9704cfee9c610c5edc13d9d/demos/LiftSim/Main.hs
haskell
module Main where import qualified TwoFloorSimBut2 as Lift main = Lift.main
68153d96568782da043e274f3e3946fe4ce195b6828de2ce77f68257279ae50e
sharkdp/yinsh
Main.hs
import Happstack.Server.SimpleHTTPS import Happstack.Server import Data.Maybe (listToMaybe, fromJust) import Yinsh import AI import Floyd backendAI :: AIFunction backendAI = aiFloyd 3 mhNumber rhControlledMarkers | Get new game state after AI turn . This also resolves and -- @WaitAddMarker@ turns for the *human* ...
null
https://raw.githubusercontent.com/sharkdp/yinsh/b74e4f9ec0259206f8cc894e19e0b071af181d27/backend/Main.hs
haskell
@WaitAddMarker@ turns for the *human* player.
import Happstack.Server.SimpleHTTPS import Happstack.Server import Data.Maybe (listToMaybe, fromJust) import Yinsh import AI import Floyd backendAI :: AIFunction backendAI = aiFloyd 3 mhNumber rhControlledMarkers | Get new game state after AI turn . This also resolves and aiTurn' :: AIFunction aiTurn' gs = let gs...
f7fb4d7eef4a3d367553fa755fa0baf243d75e46ecbb7a9e09084e61ef886b88
inaka/lasse
lasse_server_sup.erl
-module(lasse_server_sup). -behavior(supervisor). -export([ start_link/0 , start_listeners/0 ]). -export([init/1]). -spec start_link() -> {'ok', pid()} | {'error', any()}. start_link() -> supervisor:start_link(?MODULE, {}). -spec start_listeners() -> {ok, pid()} | {error, any()}. start_listeners()...
null
https://raw.githubusercontent.com/inaka/lasse/19c9e00c7666f210d0935589936bd2252a333e95/test/lasse_server_sup.erl
erlang
Supervisor behavior functions
-module(lasse_server_sup). -behavior(supervisor). -export([ start_link/0 , start_listeners/0 ]). -export([init/1]). -spec start_link() -> {'ok', pid()} | {'error', any()}. start_link() -> supervisor:start_link(?MODULE, {}). -spec start_listeners() -> {ok, pid()} | {error, any()}. start_listeners()...
3b5c7f87e970a92113ef0cdbf13153e661b6a6e5a667f3cfe279c8e77ee64ba4
imandra-ai/catapult
ser.ml
(* generated from "ser.bare" using bare-codegen *) [@@@ocaml.warning "-26-27"] module Bare = Bare_encoding module Arg_value = struct type t = | Int64 of int64 | String of string | Bool of bool | Float64 of float | Void (** @raise Invalid_argument in case of error. *) let decode (dec: B...
null
https://raw.githubusercontent.com/imandra-ai/catapult/02b9141fb53aa8ba1276590580d7e861d28908d9/src/core/ser.ml
ocaml
generated from "ser.bare" using bare-codegen * @raise Invalid_argument in case of error. * @raise Invalid_argument in case of error. * @raise Invalid_argument in case of error. * @raise Invalid_argument in case of error. * @raise Invalid_argument in case of error. * @raise Invalid_argument in case of error. * @...
[@@@ocaml.warning "-26-27"] module Bare = Bare_encoding module Arg_value = struct type t = | Int64 of int64 | String of string | Bool of bool | Float64 of float | Void let decode (dec: Bare.Decode.t) : t = let tag = Bare.Decode.uint dec in match tag with | 0L -> Int64 (Bare.D...
cd91e9367a8d13a82d2275770097b59ebc5948e656d504967bd455b459f35a4d
buntine/Simply-Scheme-Exercises
18-3.scm
; Write depth, a procedure that takes a tree as argument and returns the largest ; number of nodes connected through parent-child links. That is, a leaf node has depth 1 ; a tree in which all the children of the root node are leaves has depth 2 . Our world tree has depth 4 ( because the longest path from the root t...
null
https://raw.githubusercontent.com/buntine/Simply-Scheme-Exercises/c6cbf0bd60d6385b506b8df94c348ac5edc7f646/18-trees/18-3.scm
scheme
Write depth, a procedure that takes a tree as argument and returns the largest number of nodes connected through parent-child links. That is, a leaf node has depth a tree in which all the children of the root node are leaves has depth 2 . Our world country, state, city). think about trees recursively.
tree has depth 4 ( because the longest path from the root to a leaf is , for example , world , note : This one took me AGES . It 's embarressing , but I my brain melts when I try to (define (leaf? tree) (null? (children tree))) (define (depth tree) (if (leaf? tree) 1 (find-depth tree 1))) (define (...
bc0b0d8f094a24248a12836c0e492783a4bd289f90fc7a430561e3a749425fc4
97jaz/gregor
info.rkt
#lang info (define collection 'multi) (define deps '("base" "data-lib" "memoize-lib" "parser-tools-lib" "tzinfo" "cldr-core" "cldr-bcp47" "cldr-numbers-modern" "cldr-dates-modern" "cl...
null
https://raw.githubusercontent.com/97jaz/gregor/9b8fb5399470acfba13d7d02d3eb250626e64774/gregor-lib/info.rkt
racket
#lang info (define collection 'multi) (define deps '("base" "data-lib" "memoize-lib" "parser-tools-lib" "tzinfo" "cldr-core" "cldr-bcp47" "cldr-numbers-modern" "cldr-dates-modern" "cl...
924a1ad8a78e72ead90b9569a8731372a81976184a98ba57149a33a6a931fceb
pallet/pallet
automated_admin_user_test.clj
(ns pallet.crate.automated-admin-user-test (:require [clojure.test :refer :all] [pallet.actions :refer [exec-checked-script user]] [pallet.api :refer [lift make-user node-spec plan-fn server-spec]] [pallet.build-actions :as build-actions] [pallet.common.logging.logutils :refer [logging-threshold-fixtur...
null
https://raw.githubusercontent.com/pallet/pallet/30226008d243c1072dcfa1f27150173d6d71c36d/test/pallet/crate/automated_admin_user_test.clj
clojure
tests a node specific admin user
(ns pallet.crate.automated-admin-user-test (:require [clojure.test :refer :all] [pallet.actions :refer [exec-checked-script user]] [pallet.api :refer [lift make-user node-spec plan-fn server-spec]] [pallet.build-actions :as build-actions] [pallet.common.logging.logutils :refer [logging-threshold-fixtur...
c40ecf93fbc91e7f77ef381807ab1533f04f6541538c8618adc65adbab6a3920
AdRoll/rebar3_format
bad_ignored_file_comment.erl
-module(bad_ignored_file_comment). you have to place the ` @ ` sign exactly one space after the last ` % ` @format ignore . %%%% you have to place the whole map with options in a single line... @format # { paper = > 10 ribbon = > 9 } . %%%% ...that **has to end** in period (`.`). @format ignore -...
null
https://raw.githubusercontent.com/AdRoll/rebar3_format/5ffb11341796173317ae094d4e165b85fad6aa19/test_app/src/per-file-config/bad_ignored_file_comment.erl
erlang
` you have to place the whole map with options in a single line... ...that **has to end** in period (`.`).
-module(bad_ignored_file_comment). @format ignore . @format # { paper = > 10 ribbon = > 9 } . @format ignore -export([formatted_func/0]). Since every @format above is misconfigured , this will be formatted . formatted_func() -> case 2 > 3 of true -> ok; false -> error end.
a69bf28779046f96d78877c298e4df70a3fac7193737657697c2e88b7fc403ed
xvw/muhokama
io.ml
type filename = string type dirname = string type dirpath = string type filepath = string let read_dir path = try Ok (Sys.readdir path |> Array.to_list) with | _ -> Error.(to_try @@ io_unreadable_dir ~dirpath:path) ;; let read_file path = try let channel = open_in path in let length = in_channel_length ...
null
https://raw.githubusercontent.com/xvw/muhokama/d628d05e2fc5af3fbf86d2177458336b647ece08/lib/common/io.ml
ocaml
type filename = string type dirname = string type dirpath = string type filepath = string let read_dir path = try Ok (Sys.readdir path |> Array.to_list) with | _ -> Error.(to_try @@ io_unreadable_dir ~dirpath:path) ;; let read_file path = try let channel = open_in path in let length = in_channel_length ...
dbdb94c2d706bec591b05b7de0508117716ca2294fe2130af71d90e484129785
aliaksandr-s/prototyping-with-clojure
layout.clj
(ns visitera.layout (:require [selmer.parser :as parser] [selmer.filters :as filters] [markdown.core :refer [md-to-html-string]] [ring.util.http-response :refer [content-type ok]] [ring.util.anti-forgery :refer [anti-forgery-field]] [ring.middleware.anti-forgery :refer [*anti-forgery-token*]])...
null
https://raw.githubusercontent.com/aliaksandr-s/prototyping-with-clojure/e1f90bf66c315de1dfa72624895637f1c609c42e/app/chapter-04/end/visitera/src/clj/visitera/layout.clj
clojure
(ns visitera.layout (:require [selmer.parser :as parser] [selmer.filters :as filters] [markdown.core :refer [md-to-html-string]] [ring.util.http-response :refer [content-type ok]] [ring.util.anti-forgery :refer [anti-forgery-field]] [ring.middleware.anti-forgery :refer [*anti-forgery-token*]])...
552cd591c3b84db97b737b8e3854547bc62c7d36fdb6dc5ce091501f2128c369
habit-lang/alb
MangleIds.hs
# OPTIONS_GHC -fwarn - incomplete - patterns # module Syntax.MangleIds (mangleChar, mangleProgram, mangleId) where -------------------------------------------------------------------------------- This module mangles variable names to be compatible with the CompCert back - end ----------------------------------------...
null
https://raw.githubusercontent.com/habit-lang/alb/567d4c86194a884cc1ceeffca9663211de2d554c/src/Syntax/MangleIds.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
# OPTIONS_GHC -fwarn - incomplete - patterns # module Syntax.MangleIds (mangleChar, mangleProgram, mangleId) where This module mangles variable names to be compatible with the CompCert back - end import Prelude hiding (pure) import Data.Char (ord, isAlpha, isDigit) import Data.Generics import Common import Syntax...
9d10dd0d943fa0b662cacdf7093c46a928e093e77c96dfd13ba0c9f7d0196777
axelarge/advent-of-code
day02_test.clj
(ns advent-of-code.y2016.day02-test (:require [clojure.test :refer :all] [advent-of-code.y2016.day02 :refer :all])) (def test-input "ULL\nRRDDD\nLURDL\nUUUUD") (deftest test-solve1 (is (= (solve1 test-input) "1985")) (is (= (solve1 input) "47978"))) (deftest test-solve2 (is (= (solve2 test-input)...
null
https://raw.githubusercontent.com/axelarge/advent-of-code/4c62a53ef71605780a22cf8219029453d8e1b977/test/advent_of_code/y2016/day02_test.clj
clojure
(ns advent-of-code.y2016.day02-test (:require [clojure.test :refer :all] [advent-of-code.y2016.day02 :refer :all])) (def test-input "ULL\nRRDDD\nLURDL\nUUUUD") (deftest test-solve1 (is (= (solve1 test-input) "1985")) (is (= (solve1 input) "47978"))) (deftest test-solve2 (is (= (solve2 test-input)...
b0ee46049cb50cf4518d6481d251c5db0bb020b1496e9b70270b1cece3487cd5
Jell/euroclojure-2016
no_details.cljs
(ns euroclojure.no-details) (defn slide [{:keys [speaker]}] [:div.slide.left [:h1.centered "Won't cover everything"] [:em.centered "BUT..."] (when speaker [:div "not much code"])])
null
https://raw.githubusercontent.com/Jell/euroclojure-2016/a8ca883e8480a4616ede19995aaacd4a495608af/src/euroclojure/no_details.cljs
clojure
(ns euroclojure.no-details) (defn slide [{:keys [speaker]}] [:div.slide.left [:h1.centered "Won't cover everything"] [:em.centered "BUT..."] (when speaker [:div "not much code"])])
2974efb12079b9c6e33d53b2265782e7416fb0aa62f36f5fa8f6eb32de8ff609
sonowz/advent-of-code-haskell
Day07.hs
import Control.Monad import Data.Function import Data.List import Data.Char import Data.Graph import Data.Array import qualified Data.Foldable as Foldable vertexRange = (ord 'A', ord 'Z') getEdge :: String -> Edge getEdge line = (ord $ w !! 1, ord $ w !! 7) where w = map head $ words line ord' = ord . head ...
null
https://raw.githubusercontent.com/sonowz/advent-of-code-haskell/6cec825c5172bbec687aab510e43832e6f2c0372/Y2018/Day07.hs
haskell
Topological sort followed by lexicological (actually natural) order This solution assumes that there are enough workers (same answer with infinite workers)
import Control.Monad import Data.Function import Data.List import Data.Char import Data.Graph import Data.Array import qualified Data.Foldable as Foldable vertexRange = (ord 'A', ord 'Z') getEdge :: String -> Edge getEdge line = (ord $ w !! 1, ord $ w !! 7) where w = map head $ words line ord' = ord . head ...
b5399120b2c789a04845152060ff51851fd2b66239adc21dac56835741167050
EarnestResearch/yambda
HttpClient.hs
HLINT ignore " Unused LANGUAGE pragma " {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} module AWS.Lambda.HttpClient where import Control.Lens import Data...
null
https://raw.githubusercontent.com/EarnestResearch/yambda/b1f45e42447c08d7da4b3f470bdb849c9ea1b200/core/src/AWS/Lambda/HttpClient.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # Lambda enforces a timeout so we can wait indefinitely for the next event
HLINT ignore " Unused LANGUAGE pragma " # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # module AWS.Lambda.HttpClient where import Control.Lens import Data.Aeson import qualified Data.ByteString as SB import qualified Data.ByteString.L...
8508d25bda1b3f7ba764c29c9e2f02db5055eda1be3ae1d49c1497bc93338c1b
clojure-emacs/cider-nrepl
info_test.clj
(ns cider.nrepl.middleware.info-test (:require [clojure.data] [clojure.test :refer :all] [clojure.string :as str] [cider.nrepl.middleware.info :as info] [cider.nrepl.test-session :as session] [cider.test-ns.first-test-ns :as test-ns]) (:import [cider.nrepl.test TestClass AnotherTestClass YetAno...
null
https://raw.githubusercontent.com/clojure-emacs/cider-nrepl/05be239f2d66b2f035af0afe1b40e6af3086eb2f/test/clj/cider/nrepl/middleware/info_test.clj
clojure
resolved either locally or online unfound nses should fall through protorol docstring either symbol or (class method) should be passed this is a replacement for (is (not (thrown? ..))) Used below in an integration test YetAnotherTest eldoc datomic query
(ns cider.nrepl.middleware.info-test (:require [clojure.data] [clojure.test :refer :all] [clojure.string :as str] [cider.nrepl.middleware.info :as info] [cider.nrepl.test-session :as session] [cider.test-ns.first-test-ns :as test-ns]) (:import [cider.nrepl.test TestClass AnotherTestClass YetAno...
b7f9de0aa2650f5330e3297229df622e7a2c26db4fb1f675df05694d66bfd9e1
soegaard/racket-cas
example.rkt
#lang racket/base (require racket/format "racket-cas.rkt") ;;; ;;; Examples ;;; (define x 'x) (define y 'y) (define z 'z) (define h 'h) (define (examples) (let () (displayln "Is tan'(x) = 1 +tan(x)^2 ?") (equal? (diff (Tan x) x) (expand (⊕ 1 (Sqr (Tan x)))))) (let () (displayln "Proof of (x...
null
https://raw.githubusercontent.com/soegaard/racket-cas/440762257be1f137e34e9c56c31ab2e194b6d522/racket-cas/example.rkt
racket
Examples (require latex-pict pict) (define (render u) Example from the REPL. Require start makes ' automatically normalize all expressions. '(+ 1 x) > '(+ x 1 y) '(+ 1 x y) > (limit '(sin x) x 0) > (limit '(cos x) x 0) ... ;;; ;;; Examples ;;; (define x 'x) (define y 'y) (define z 'z) (define h 'h) (define (...
#lang racket/base (require racket/format "racket-cas.rkt") (define x 'x) (define y 'y) (define z 'z) (define h 'h) (define (examples) (let () (displayln "Is tan'(x) = 1 +tan(x)^2 ?") (equal? (diff (Tan x) x) (expand (⊕ 1 (Sqr (Tan x)))))) (let () (displayln "Proof of (x^2)' = 2x.") (def...
e5f50a46449c31ebfab156cdf2b00beda32b42ae860f5a65df162ba505011aec
pedestal/pedestal-app
optimized2.clj
Copyright 2013 Relevance , Inc. ; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( ) ; 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 licens...
null
https://raw.githubusercontent.com/pedestal/pedestal-app/509ab766a54921c0fbb2dd7c6a3cb20223b8e1a1/app/test/clj/io/pedestal/app/perf/model/optimized2.clj
clojure
The use and distribution terms for this software are covered by the 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 this notice, or any other, from this software.
Copyright 2013 Relevance , Inc. Eclipse Public License 1.0 ( ) (ns io.pedestal.app.perf.model.optimized2 (:require [io.pedestal.app.perf.model.diff2 :as diff] [clojure.core.async :refer [go chan <! >!]])) (defn apply-transform "Given a model and a transform message, return a map with an update...
107976cd0194e7dff3da32cd55b9e1d682800ae97279d796b175bf7308997764
facebookarchive/duckling_old
cycles.clj
; Cycles are like a heart beat, the next starts just when the previous ends. ; Unlike durations, they have an absolute position in the time, it's just that this position is periodic. ; Examples of phrases involving cycles: - this week ; - today (= this day) ; - last month ; - last 2 calendar months (last 2 months is ...
null
https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/zh/rules/cycles.clj
clojure
Cycles are like a heart beat, the next starts just when the previous ends. Unlike durations, they have an absolute position in the time, it's just that this position is periodic. Examples of phrases involving cycles: - today (= this day) - last month - last 2 calendar months (last 2 months is interpreted as a dur...
- this week As soon as you put a quantity ( 2 months ) , the cycle becomes a duration . Not clear if we need hours , etc . What does ' last hour ' mean ? ( "second (cycle)" #"秒[钟|鐘]?" {:dim :cycle :grain :second} "minute (cycle)" #"分[钟|鐘]?" {:dim :cycle :grain :minute} "hour (cycle)" #"小...
ece12ac00766ece6e5a1db76d935cc3c7e0bd386a2f82d5989ed46859364f3be
Ptival/chick
Tactic.hs
module Parsing.Tactic -- ( atomicP, -- tacticP, ( ) where import import . Atomic import . Utils import Tactic -- import Term.Variable import Text . . Combinator import Text . . String atomicP : : ( Tactic Variable ) -- atomicP = -- Atomic -- <$> choice -- [ admitP, -- exact...
null
https://raw.githubusercontent.com/Ptival/chick/5f21b154acbc04f6572692ad1d592a50c37a638e/backend/lib/Parsing/Tactic.hs
haskell
( atomicP, tacticP, import Term.Variable atomicP = Atomic <$> choice [ admitP, exactP, introP ] tacticP = choice [ semicolonP, atomicP ]
module Parsing.Tactic ( ) where import import . Atomic import . Utils import Tactic import Text . . Combinator import Text . . String atomicP : : ( Tactic Variable ) semicolonP : : ( Tactic Variable ) semicolonP = atomicP ( symbol " ; " $ > Semicolon ) tacticP : : ( Tactic Variable ...
04835b96230bce1c8f1fadee38aa282869c4beb73c00a40dfbfdf46a0b48e167
samrocketman/home
rule-of-thirds.scm
; -*-scheme-*- 2009 . No copyright . Public Domain . Script based on guides-new-percent.scm by (define (script-fu-guide-rot image drawable) (let* ( (width (car (gimp-image-width image))) (height (car (gimp-image-height image))) ) (gimp-image-add-hguide image (/ height 3)) ...
null
https://raw.githubusercontent.com/samrocketman/home/63a8668a71dc594ea9ed76ec56bf8ca43b2a86ca/dotfiles/.gimp/scripts/rule-of-thirds.scm
scheme
-*-scheme-*-
2009 . No copyright . Public Domain . Script based on guides-new-percent.scm by (define (script-fu-guide-rot image drawable) (let* ( (width (car (gimp-image-width image))) (height (car (gimp-image-height image))) ) (gimp-image-add-hguide image (/ height 3)) (gimp-image-...
073fecda1007c31e46847fbce6291ee14981a0e3c0586a08fa2001eeb6667949
gafiatulin/codewars
Split.hs
-- Almost Even module Split where splitInteger :: Int -> Int -> [Int] splitInteger a b = case diff of EQ -> ds LT -> (drop (a - (sum ds)) ds) ++ replicate (a - (sum ds)) (d+1) GT -> replicate ((sum ds) - a) (d-1) ++ (drop ((sum ds)- a) ds) where d = round (fromIntegral a / fromIntegral b) ...
null
https://raw.githubusercontent.com/gafiatulin/codewars/535db608333e854be93ecfc165686a2162264fef/src/6%20kyu/Split.hs
haskell
Almost Even
module Split where splitInteger :: Int -> Int -> [Int] splitInteger a b = case diff of EQ -> ds LT -> (drop (a - (sum ds)) ds) ++ replicate (a - (sum ds)) (d+1) GT -> replicate ((sum ds) - a) (d-1) ++ (drop ((sum ds)- a) ds) where d = round (fromIntegral a / fromIntegral b) ds = replicate...
babf11e85031456fadfdb3e65b58750341ed59f38bc7d092b8eb6e4ec11a48f7
roburio/albatross
albatross_cli.ml
( c ) 2018 , all rights reserved open Vmm_core open Lwt.Infix let process = Metrics.field ~doc:"name of the process" "vm" Metrics.String let init_influx name data = match data with | None -> () | Some (ip, port) -> Logs.info (fun m -> m "stats connecting to %a:%d" Ipaddr.pp ip port); Metrics.ena...
null
https://raw.githubusercontent.com/roburio/albatross/83dff4a3fe6a4a1486d935550136c59a35645c34/command-line/albatross_cli.ml
ocaml
/ or This is larger than Vmm_unix.supported as this should work for clients too exit status already in use: - 0 success - 2 OCaml exception - 123 "some error" - 124 "cli error" - 125 "internal error" - 126 (bash) command invoked cannot execute - 127 (bash) command not found - 255 OCaml abo...
( c ) 2018 , all rights reserved open Vmm_core open Lwt.Infix let process = Metrics.field ~doc:"name of the process" "vm" Metrics.String let init_influx name data = match data with | None -> () | Some (ip, port) -> Logs.info (fun m -> m "stats connecting to %a:%d" Ipaddr.pp ip port); Metrics.ena...
a1ae264188094f68fb36c961ad00acc41050fc58c6394fcae7b59f14bc0cf129
zotonic/zotonic
action_wires_toggle.erl
@author < > 2009 %% Based on code copyright ( c ) 2008 - 2009 Copyright 2009 %% 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 b...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_wires/src/actions/action_wires_toggle.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
@author < > 2009 Based on code copyright ( c ) 2008 - 2009 Copyright 2009 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(action_wires_toggle). -include_lib("zotonic_core/include/zotonic.hrl"). -ex...
6a81df882593235d4a7c56c3b95dae2d239e795eb30622761346f313fa02ed83
davazp/cl-icalendar
types-date.lisp
;; types-date.lisp --- ;; Copyrigth ( C ) 2009 , 2010 < marioxcc > Copyrigth ( C ) 2009 , 2010 , 2011 ;; This file is part of cl - icalendar . ;; ;; cl-icalendar is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software ...
null
https://raw.githubusercontent.com/davazp/cl-icalendar/b5295ac245f5d333fa593352039ca4fd6a52a058/types-date.lisp
lisp
types-date.lisp --- cl-icalendar is free software: you can redistribute it and/or modify (at your option) any later version. cl-icalendar is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See ...
Copyrigth ( C ) 2009 , 2010 < marioxcc > Copyrigth ( C ) 2009 , 2010 , 2011 This file is part of cl - icalendar . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General P...
a503be4de46dd9758895edb59f7c9fec5831646456d2cf9b5ea3ebf101dc2b7d
c-cube/ocaml-containers
CCSimple_queue.mli
(* This file is free software, part of containers. See file "license" for more details. *) (** Functional queues (fifo) *) * Simple implementation of functional queues @since 1.3 @since 1.3 *) type 'a iter = ('a -> unit) -> unit * Fast internal iterator . @since 2.8 @since 2.8 *) type 'a printer...
null
https://raw.githubusercontent.com/c-cube/ocaml-containers/69f2805f1073c4ebd1063bbd58380d17e62f6324/src/data/CCSimple_queue.mli
ocaml
This file is free software, part of containers. See file "license" for more details. * Functional queues (fifo) * Queue containing elements of type 'a * Push element at the end of the queue. * Flip version of {!push}. * Same as {!peek} but @raise Invalid_argument if the queue is empty. * Same as {!pop}, but ...
* Simple implementation of functional queues @since 1.3 @since 1.3 *) type 'a iter = ('a -> unit) -> unit * Fast internal iterator . @since 2.8 @since 2.8 *) type 'a printer = Format.formatter -> 'a -> unit type 'a gen = unit -> 'a option type +'a t val empty : 'a t val is_empty : 'a t -> bool...
e55f87335b453483a0b37e2b710fe8e4d13d1b1eb21de76f1e377ec11decd1b4
zkat/cl-openal
packages.lisp
(cl:defpackage #:cl-openal-examples (:use #:cl)) (in-package #:cl-openal-examples)
null
https://raw.githubusercontent.com/zkat/cl-openal/bc0805530de2a241135d4d2f4e756e937e7b77e6/examples/packages.lisp
lisp
(cl:defpackage #:cl-openal-examples (:use #:cl)) (in-package #:cl-openal-examples)
d50d4e027188754b109dc2acb4d24182b650e21231c698d0e024be025c763118
fpco/ide-backend
ParseUtils.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.ParseUtils Copyright : ( c ) The University of Glasgow 2004 -- -- Maintainer : -- Portability : portable -- Utilities for parsing ' PackageDescription ' and ' InstalledPackageInfo ' . -- -- The...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.18.1.5/Distribution/ParseUtils.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.ParseUtils Maintainer : Portability : portable The @.cabal@ file format is not trivial, especially with the introduction of configurations and the section syntax that goes with that. This module has a...
Copyright : ( c ) The University of Glasgow 2004 Utilities for parsing ' PackageDescription ' and ' InstalledPackageInfo ' . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : *...
c13c425b461ef3e743624dcc8af4f617c408105851e40cf0b4fefb5af9a03ac7
MyDataFlow/ttalk-server
cyrsasl_anonymous.erl
%%%---------------------------------------------------------------------- %%% File : cyrsasl_anonymous.erl Author : < > %%% Purpose : ANONYMOUS SASL mechanism %%% See -drafts/draft-ietf-sasl-anon-05.txt Created : 23 Aug 2005 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% T...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/cyrsasl_anonymous.erl
erlang
---------------------------------------------------------------------- File : cyrsasl_anonymous.erl Purpose : ANONYMOUS SASL mechanism See -drafts/draft-ietf-sasl-anon-05.txt This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distr...
Author : < > Created : 23 Aug 2005 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
08d714d92acf2f6c5fe00479e9dc5aee3b15ed8b74f3f2e45b8c820d1d7ca03b
oflatt/space-orbs
on-draw.rkt
#lang racket (require pict3d rackunit "frame-handling.rkt" "structures.rkt" "current-roll-and-pos.rkt" "variables.rkt" "landscape.rkt" "shots.rkt" "draw-enemys.rkt" "scores-and-more.rkt") (provide on-draw draw-enemy) (define (on-draw g n ot) ;;(println (game-player-team g)) (define t (- ot MASTER-TIME-OFFSET)) (...
null
https://raw.githubusercontent.com/oflatt/space-orbs/3d6301e576f304a9994d42b49939ad2432069aac/client/on-draw.rkt
racket
(println (game-player-team g))
#lang racket (require pict3d rackunit "frame-handling.rkt" "structures.rkt" "current-roll-and-pos.rkt" "variables.rkt" "landscape.rkt" "shots.rkt" "draw-enemys.rkt" "scores-and-more.rkt") (provide on-draw draw-enemy) (define (on-draw g n ot) (define t (- ot MASTER-TIME-OFFSET)) (define p (game-player g)) (combin...
b8359a6b603311acc58348393e4607ad6435a9e9f25ddafaf33504ae62a9c45c
coco33920/ocaml-baguettesharp-interpreter
naive.ml
let read_file filename = let lines = ref [] in let chan = open_in filename in try while true do let a = input_line chan in if not (String.starts_with ~prefix:"//" a) then lines := a :: !lines done; !lines with End_of_file -> close_in chan; List.rev !lines let t file outname = ...
null
https://raw.githubusercontent.com/coco33920/ocaml-baguettesharp-interpreter/e29765961cdfd294cf9163c462636fcdbd403c92/src/transpiler/naive.ml
ocaml
let read_file filename = let lines = ref [] in let chan = open_in filename in try while true do let a = input_line chan in if not (String.starts_with ~prefix:"//" a) then lines := a :: !lines done; !lines with End_of_file -> close_in chan; List.rev !lines let t file outname = ...
c812d7217184510b8d6e84e9c3fef6c84b36d44592e89d8ee505f4cf4d6166ab
inaka/serpents
spts_cli_greedy.erl
%% @doc Just go for the fruit, man! %% This client is awesome for empty (i.e. no walls, no serpents) games. -module(spts_cli_greedy). -behaviour(spts_cli). %%% gen_server callbacks -export([init/3, handle_update/4, terminate/4]). %%% API -export([play/2, quit/1]). -record(state, {direction = left :: spts_games...
null
https://raw.githubusercontent.com/inaka/serpents/b21b63cee117e0b98fd3a9be4fb326e9de3ee861/src/clients/ai/spts_cli_greedy.erl
erlang
@doc Just go for the fruit, man! This client is awesome for empty (i.e. no walls, no serpents) games. gen_server callbacks API External API Callback implementation NOTE: no changes, nothing to do NOTE: no fruit, nothing to do
-module(spts_cli_greedy). -behaviour(spts_cli). -export([init/3, handle_update/4, terminate/4]). -export([play/2, quit/1]). -record(state, {direction = left :: spts_games:direction()}). -type state() :: #state{}. -spec play(spts_games:id(), spts_serpents:name()) -> {ok, pid()}. play(GameId, SerpentName) -> spts...
28eff2ee06e4d2f5ffcca5436588276b0d7c5d19e8e8e4dcb3a0eb6dfec65e06
jean-lopes/dfm-to-json
AST.hs
{-# LANGUAGE OverloadedStrings #-} module AST where import Data.Aeson ((.=)) import qualified Data.Aeson as Aeson import Data.List.NonEmpty (NonEmpty) import qualified Data.List.NonEmpty as NonEmpty import Data.Text (Text) import qualified Data.Text as Tex...
null
https://raw.githubusercontent.com/jean-lopes/dfm-to-json/8c2e51f3e43267c948d307659db9745129578a96/src/AST.hs
haskell
# LANGUAGE OverloadedStrings #
module AST where import Data.Aeson ((.=)) import qualified Data.Aeson as Aeson import Data.List.NonEmpty (NonEmpty) import qualified Data.List.NonEmpty as NonEmpty import Data.Text (Text) import qualified Data.Text as Text data Object = Object { objectK...
49c278ead711f1037b7c2b9d24e1007288d4bbc3c2deb1de08c7ea1f641d599a
Martoon-00/toy-compiler
Operations.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Toy.Exp.Operations where import Control.Lens (has, ix, (.=)) import Control.Monad.Error.Class (MonadError (..)) import Control.Monad.State (get) import Data.Bits (xor, (.&.), (.|.)) import ...
null
https://raw.githubusercontent.com/Martoon-00/toy-compiler/a325d56c367bbb673608d283197fcd51cf5960fa/src/Toy/Exp/Operations.hs
haskell
* Unary operations * Binary operations argument expiration + actual deallocation
# LANGUAGE GeneralizedNewtypeDeriving # module Toy.Exp.Operations where import Control.Lens (has, ix, (.=)) import Control.Monad.Error.Class (MonadError (..)) import Control.Monad.State (get) import Data.Bits (xor, (.&.), (.|.)) import ...
22dd4ec6ee080ee1af789495324e10676927f80651f1321e93d9957787b006ab
facebook/duckling
Corpus.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. {-# LANGUAGE OverloadedStrings #-} module Duckling.Time.ZH.CN.Corpus ( allExamples ) where import Data...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/ZH/CN/Corpus.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. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Time.ZH.CN.Corpus ( allExamples ) where import Data.String import Prelude import Duckling.Testing.Types hiding (examples) import Duckling.Time.Corpus import Duckling.Time.Types hiding (Month) import Duckling.TimeGrain.Types hiding (add) allExa...
ce228d85f3b380b04e346f2553c003fb2b28d35058dd590de2e2cc0486b844eb
spechub/Hets
StatAna.hs
| Module : ./Fpl / StatAna.hs Description : static basic analysis for FPL Copyright : ( c ) , DFKI GmbH 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable basic static analysis for FPL Module : ./Fp...
null
https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/Fpl/StatAna.hs
haskell
| put parens around terms | put parens around final term CHECK: consider pattern variables | get constructors for input sort assume unique type of top-level term for now | type check rhs and assume function to be in the signature save restore all others are formulas
| Module : ./Fpl / StatAna.hs Description : static basic analysis for FPL Copyright : ( c ) , DFKI GmbH 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable basic static analysis for FPL Module : ./Fp...
42411355f5f3b9b43a842a8798abe02e9f4bf47e05cb2b294466ff4d476d2d8c
weldr/bdcs
Requirements.hs
Copyright ( C ) 2016 - 2017 Red Hat , Inc. -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . -- -- Th...
null
https://raw.githubusercontent.com/weldr/bdcs/cf360c3240644b4847336b9d58b2067f3aa1ec50/src/BDCS/Requirements.hs
haskell
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU...
Copyright ( C ) 2016 - 2017 Red Hat , Inc. License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public module BDCS.Requirements(insertRequirement, i...
37e968e9c6376ea5b569dae2590cfe559e1ce446a6851d26431ac747605b7f9f
buntine/Simply-Scheme-Exercises
23-10.scm
Why does n’t this solution to Exercise 23.9 work ? ; ; (define (leader) ( leader - helper 0 1 ) ) ; (define (leader-helper leader index) ( cond ( (= index 100 ) leader ) ; ((> (lap index) (lap leader)) ( leader - helper index ( + index 1 ) ) ) ( else ( leader - helper leader ( + i...
null
https://raw.githubusercontent.com/buntine/Simply-Scheme-Exercises/c6cbf0bd60d6385b506b8df94c348ac5edc7f646/23-vectors/23-10.scm
scheme
(define (leader) (define (leader-helper leader index) ((> (lap index) (lap leader)) Solution: This will not work because the "lap" procedure mutates state and is not functional (it will not return the same value each time it is called with the same arguments!). This version will ...
Why does n’t this solution to Exercise 23.9 work ? ( leader - helper 0 1 ) ) ( cond ( (= index 100 ) leader ) ( leader - helper index ( + index 1 ) ) ) ( else ( leader - helper leader ( + index 1 ) ) ) ) )
0402c03f817a50618538d5a169222a7f460c54519b888ed88a8f2c3b0ec7d6a0
TempusMUD/cl-tempus
act-obj.lisp
(in-package #:tempus) (defvar +money-log-limit+ 1000000) (defun explode-sigil (ch obj) (cond ((or (room-flagged (in-room-of ch) +room-peaceful+) (eql (pk-style-of (zone-of (in-room-of ch))) :nopk)) (act ch :item obj :subject-emit "$p feels rather warm to the touch and shudders violently....
null
https://raw.githubusercontent.com/TempusMUD/cl-tempus/c5008c8d782ba44373d89b77c23abaefec3aa6ff/src/actions/act-obj.lisp
lisp
Notify the world of this momentous event Only loot the corpse if the character can see it, and if the corpse isn't a player corpse in a NPK zone The pig is drunk Change weight of container TODO: do something useful with radioactive drinks stomach full perform foody magics Handle emptied container Transfer poi...
(in-package #:tempus) (defvar +money-log-limit+ 1000000) (defun explode-sigil (ch obj) (cond ((or (room-flagged (in-room-of ch) +room-peaceful+) (eql (pk-style-of (zone-of (in-room-of ch))) :nopk)) (act ch :item obj :subject-emit "$p feels rather warm to the touch and shudders violently....
0ea0929e2d51eff0c5a90a2322bc40223ff6a349680e19be11e1e722dc97cc62
spechub/Hets
RuleUtils.hs
| Module : $ Id$ Copyright : ( c ) DFKI GmbH License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable utilities for writing new rules . Module : $Id$ Copyright : (c) DFKI GmbH License : GPLv2 or higher, see ...
null
https://raw.githubusercontent.com/spechub/Hets/4cedaf8dbdb8909955e0066b465c331973043bbf/utils/DrIFT-src/RuleUtils.hs
haskell
Rule Declarations New Pretty Printers --------------- equivalent of `opt' for singleton lists new simple docs useful for warnings / error messages - Utility Functions ------------------------------------------------------- Instances instance header, handling class constraints etc. instance function little var...
| Module : $ Id$ Copyright : ( c ) DFKI GmbH License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable utilities for writing new rules . Module : $Id$ Copyright : (c) DFKI GmbH License : GPLv2 or higher, see ...
37c8610835c09492d2c242858f736319f4e750a95d000e38ef453aef816e1714
markbastian/partsbin
simple_web_app.clj
(ns partsbin.examples.simple-web-app (:require [partsbin.core :as partsbin] [partsbin.immutant.web.core :as web] [clojure.pprint :as pp])) (defn app [request] {:status 200 :body (with-out-str (pp/pprint request))}) (def config {::web/server {:custom-key "This is a custom key" ...
null
https://raw.githubusercontent.com/markbastian/partsbin/8dc159327f296c9625d129b5943ec79433019e54/src/partsbin/examples/simple_web_app.clj
clojure
(ns partsbin.examples.simple-web-app (:require [partsbin.core :as partsbin] [partsbin.immutant.web.core :as web] [clojure.pprint :as pp])) (defn app [request] {:status 200 :body (with-out-str (pp/pprint request))}) (def config {::web/server {:custom-key "This is a custom key" ...
538ebc4658ffe5ca6798489a94bbde93f17517629296d221730d5f9d109fba28
sysbio-bioinf/avatar
application.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the Eclipse Public License 2.0 ( -v20.html ) ; which can be found in the file LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the terms of ...
null
https://raw.githubusercontent.com/sysbio-bioinf/avatar/cbf9968485f96fb61725aaa7381dba53624d6189/src/clojure/avatar/ui/application.clj
clojure
The use and distribution terms for this software are covered by the which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software. return p...
Copyright ( c ) . All rights reserved . Eclipse Public License 2.0 ( -v20.html ) (ns avatar.ui.application (:require [clojure.java.io :as io] [clojure.edn :as edn] [com.stuartsierra.component :as c] [clojure.tools.logging :as log] [avatar.util :as u] to get it AOT compiled by leiningen ...
d7e2917287dcc65e5b0d2d89ee8e6648aafd776575dd95a97b7911322ccd63d2
McCLIM/McCLIM
region-bounding-rectangles.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) copyright 1998 - 2003 < > ( c ) copyright 1998 - 2000 < > ( c ) copyright ...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/d49fef5c2bb1307a006cdadfc4061e0a6b0fff79/Core/geometry/region-bounding-rectangles.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- Methods for computing bound...
( c ) copyright 1998 - 2003 < > ( c ) copyright 1998 - 2000 < > ( c ) copyright 2005 < > ( c ) copyright 2016 < > ( c ) copyright 2017 - 2019 < > ( c ) copyright 2021 Jan Moringen < > (in-package #:climi)
631fab11522d36aef6b3b517590c0b834b69029bfe02e11333937ae5c2f609ee
unisonweb/unison
Types.hs
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # module Unison.Server.Types where -- Types common to endpoints -- import Control.Lens hiding ((.=)) import Data.Aeson import qualified Data.Aeson as Aeson import Data.Bifoldable (Bifoldable (..)) import Data.Bitraversable (Bitraversable (..)) import qualified Data.By...
null
https://raw.githubusercontent.com/unisonweb/unison/cf278f9fb66ccb9436bf8a2eb4ab03fc7a92021d/unison-share-api/src/Unison/Server/Types.hs
haskell
Types common to endpoints -- # is special in URLs, so we use @ for hash qualification instead; e.g. ".base.List.map@abc" e.g. ".base.Nat@@Nat" The name of the term, should be hash qualified if conflicted, otherwise name only. Helpers
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # module Unison.Server.Types where import Control.Lens hiding ((.=)) import Data.Aeson import qualified Data.Aeson as Aeson import Data.Bifoldable (Bifoldable (..)) import Data.Bitraversable (Bitraversable (..)) import qualified Data.ByteString.Lazy as LZ import quali...
ca2a5f55efd965d2f2ce3fad7da11378ab8e5e7dd8d6ae052bc6cf89baf288ed
ocaml/dune
test.ml
let () = Vendored.say_hello ()
null
https://raw.githubusercontent.com/ocaml/dune/f6ab21268f5dfd030655a8b823ab02192cdfc548/test/blackbox-tests/test-cases/vendor/duniverse.t/duniverse/vendored/tests/test.ml
ocaml
let () = Vendored.say_hello ()
66bc676559ed2ac53ece1359bf91e7b525bfc2758e7f08dfa5b281ce6b69d1e1
DYCI2/om-dyci2
channels.lisp
;============================================================================ OM - SuperVP SuperVP sound analysis and processing for OpenMusic ;============================================================================ ; ; This program is free software. For information on usage ; and redistribution, see the ...
null
https://raw.githubusercontent.com/DYCI2/om-dyci2/a51e6c51ec60ffabb799c9ee08d2173c30509ac2/om-dyci2/dependencies/OM-SuperVP%202.13/sources/channels.lisp
lisp
============================================================================ ============================================================================ This program is free software. For information on usage and redistribution, see the "LICENSE" file in this distribution. This program is distributed in th...
OM - SuperVP SuperVP sound analysis and processing for OpenMusic PLIT / MERGE MULTICHANNEL FILES File author : (in-package :svp) (defmethod sound-n-channels ((self om::sound)) (om::om-sound-n-channels self)) (defmethod sound-n-channels ((self pathname)) (let ((thesound (om::get-sound self))) (...
86f6cc341274f608f38e779911bba20bc70f310520243c307a35832ace138cd4
qitab/pyjure
cleanup.clj
(ns pyjure.cleanup (:use [clojure.core.match :only [match]] [pyjure.debug] [pyjure.utilities])) TODO ? maintain a lexical environment , resolve bindings , ;; error on binding any but a local variable. TODO ? insert vars for type inference TODO ? group together with another phase ? (defn ...
null
https://raw.githubusercontent.com/qitab/pyjure/b9aa49b4f74c85f2b617e924f61eaddb194119bf/src/pyjure/cleanup.clj
clojure
error on binding any but a local variable. Most of the language passes through unchanged Generators: mark them as their own thing. If delimited continuations are available, macroexpand to a wrapper that uses them here. TODO: either use a different code generator, or implement and use delimited continuations ...
(ns pyjure.cleanup (:use [clojure.core.match :only [match]] [pyjure.debug] [pyjure.utilities])) TODO ? maintain a lexical environment , resolve bindings , TODO ? insert vars for type inference TODO ? group together with another phase ? (defn c [x] (letfn [(m [f] (copy-meta f x)) (v...
beee5fa173088f3f8d95c708c095e8d4867058c7b18143fcc61f02583ca5a396
arnemileswinter/itc
IntervalTreeSpec.hs
module Data.Clock.IntervalTreeSpec where import Test.Hspec import Test.Hspec.QuickCheck import Test.QuickCheck import Control.Monad (foldM) import Data.Clock.IntervalTree import Data.Clock.IntervalTree.Format newtype ArbitraryITC = ArbitraryITC Stamp | The arbitrary instance for ITC . Note the newtype wrapp...
null
https://raw.githubusercontent.com/arnemileswinter/itc/4482d9a863837a5e48c8d63dc09822ba74765125/test/Data/Clock/IntervalTreeSpec.hs
haskell
| Show instance for test subjects. Note that this is for human-friendly output and violates Read.
module Data.Clock.IntervalTreeSpec where import Test.Hspec import Test.Hspec.QuickCheck import Test.QuickCheck import Control.Monad (foldM) import Data.Clock.IntervalTree import Data.Clock.IntervalTree.Format newtype ArbitraryITC = ArbitraryITC Stamp | The arbitrary instance for ITC . Note the newtype wrapp...
d19b3a8243dbef3ade0d8829533627e57b20e0665ac26d45fe89e45f22eee4c6
PrecursorApp/precursor
team.clj
(ns pc.views.team (:require [cemerick.url :as url] [hiccup.core :as h] [pc.http.urls :as urls] [pc.profile :as profile] [pc.views.content :as content] [ring.middleware.anti-forgery :as csrf] [ring.util.anti-forgery :refer (anti-forgery-field)])) ...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src/pc/views/team.clj
clojure
keep up to date with outer/nav-head keep up to date with outer/nav-head
(ns pc.views.team (:require [cemerick.url :as url] [hiccup.core :as h] [pc.http.urls :as urls] [pc.profile :as profile] [pc.views.content :as content] [ring.middleware.anti-forgery :as csrf] [ring.util.anti-forgery :refer (anti-forgery-field)])) ...
ce5c044452109b4c46aa5a69e0985715daab572a6c9bf834aa459aa194b2b7a4
waddlaw/TAPL
Seq.hs
{-# LANGUAGE OverloadedStrings #-} | 図 11.2 Unit 型 + 逐次実行 module Language.FullSimpleLambda.System.Seq ( Term (..), Ty (..), Context (..), eval, typeof, ) where import Language.FullSimpleLambda.Class import RIO hiding (Seq) data Seq type Value = Term Seq instance System Seq where data Term S...
null
https://raw.githubusercontent.com/waddlaw/TAPL/94576e46821aaf7abce6d1d828fc3ce6d05a40b8/subs/lambda-fullsimple/src/Language/FullSimpleLambda/System/Seq.hs
haskell
# LANGUAGE OverloadedStrings # | 変数 | ラムダ抽象 | 定数 unit | 逐次実行 (t1;t2) | 関数の型 E-APP2 E-SEQNEXT T-VAR T-ABS T-APP T-UNIT T-SEQ ラムダ抽象値 定数 unit
| 図 11.2 Unit 型 + 逐次実行 module Language.FullSimpleLambda.System.Seq ( Term (..), Ty (..), Context (..), eval, typeof, ) where import Language.FullSimpleLambda.Class import RIO hiding (Seq) data Seq type Value = Term Seq instance System Seq where data Term Seq TmVar Int TmLam VarN...
e59a907c3ebf51923594d4d4cb18effd3fba7b12188a333d44db4a3951cd1cd3
ocaml-doc/doc-ock-xml
coverage.ml
(** An interface with all of the module system features *) module type Empty = sig type t end (** An ambiguous, misnamed module type *) module type MissingComment = sig type t end (** A plain, empty module. *) module Empty = struct end (** A plain module alias. *) module EmptyAlias = Empty (** A plain, empty modul...
null
https://raw.githubusercontent.com/ocaml-doc/doc-ock-xml/d279deb51bb813a6a9adc1b2b0bf7c2b2c7aa73b/test/coverage.ml
ocaml
* An interface with all of the module system features * An ambiguous, misnamed module type * A plain, empty module. * A plain module alias. * A plain, empty module signature. * A plain, empty module signature alias. * A plain module of a signature. * A plain module with an alias signature. * has type "one" * T...
module type Empty = sig type t end module type MissingComment = sig type t end module Empty = struct end module EmptyAlias = Empty module type EmptySig = sig end module type EmptySigAlias = EmptySig module ModuleWithSignature = struct end module ModuleWithSignatureAlias = struct end module One = struct type on...
9e43eebc3d5bd72f0c2aa251905eca84636d49e742cc68f69e5fb050c4a3e610
kolmodin/hinotify
test004-modify-file.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Exception import Control.Monad import System.Directory import System.IO import System.INotify as INotify import Utils file :: String file = "hello" write :: String -> IO () write path = writeFile (path ++ '/':file) "" modify :: String -> IO ...
null
https://raw.githubusercontent.com/kolmodin/hinotify/d225a1aacce290f054917177c17ce5f097421ec0/tests/test004-modify-file.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Control.Exception import Control.Monad import System.Directory import System.IO import System.INotify as INotify import Utils file :: String file = "hello" write :: String -> IO () write path = writeFile (path ++ '/':file) "" modify :: String -> IO () modify path = bracket ...
711cc522044b77743c49c8efdc86bf5f3f18007494fe61db53cdf22543e05a7a
bgaster/hopencl
CLUtil2.hs
# OPTIONS_GHC -XFlexibleContexts # {-# LANGUAGE DeriveDataTypeable #-} module CLUtil2 ( clInit2, CLEnv2(..)) where import Language.OpenCL.Host import Language.OpenCL.Host.FFI import Control.Monad.Trans (liftIO, lift) import Control.Monad (join) import Foreign.C (castCCharToChar) import Modu...
null
https://raw.githubusercontent.com/bgaster/hopencl/a5b6387cd32d3ca3338b4f433a363e3a581c0bf9/examples/CLUtil2.hs
haskell
# LANGUAGE DeriveDataTypeable # aux :: MonadIO m => m () aux = return () instance Lifespan () where retain = liftIO . return () release = liftIO . return ()
# OPTIONS_GHC -XFlexibleContexts # module CLUtil2 ( clInit2, CLEnv2(..)) where import Language.OpenCL.Host import Language.OpenCL.Host.FFI import Control.Monad.Trans (liftIO, lift) import Control.Monad (join) import Foreign.C (castCCharToChar) import Module import ParserQuote data CLEnv2...
2c86d20466f9722f1e30fe80075a7915b5a3cc7f93a5db74c15bf011486bb470
8c6794b6/haskell-sc-scratch
Scratch.hs
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : portable Demo code from memcached github . Module : $Header$ CopyRight : (c) 8c6794b6 License : BSD3 Maintainer : Stability : unstable Portability : portable Demo code ...
null
https://raw.githubusercontent.com/8c6794b6/haskell-sc-scratch/22de2199359fa56f256b544609cd6513b5e40f43/Scratch/Memcache/Scratch.hs
haskell
| Module : $ Header$ CopyRight : ( c ) 8c6794b6 License : : Stability : unstable Portability : portable Demo code from memcached github . Module : $Header$ CopyRight : (c) 8c6794b6 License : BSD3 Maintainer : Stability : unstable Portability : portable Demo code ...
ec3e4408a168b8f12c8993a5fee5c9603a577ea18f6b3994d5a0a587cc151060
troy-west/apache-kafka-number-stations-clj
compute_test.clj
(ns numbers.compute-test (:require [clojure.test :refer [deftest is testing]] [numbers.compute :as compute] [numbers.serdes :as serdes]) (:import (org.apache.kafka.streams.test ConsumerRecordFactory) (org.apache.kafka.streams StreamsBuilder TopologyTestDriver) (org.apac...
null
https://raw.githubusercontent.com/troy-west/apache-kafka-number-stations-clj/d38b8ef57c38c056b41e1d24a2b8671479113300/test/numbers/compute_test.clj
clojure
Confirm the timestamp extracted for a consumer record matches the time provided by the message Prove the result of grouping, windowing, and aggregating the stream into a k-table ("PT10S-Store")
(ns numbers.compute-test (:require [clojure.test :refer [deftest is testing]] [numbers.compute :as compute] [numbers.serdes :as serdes]) (:import (org.apache.kafka.streams.test ConsumerRecordFactory) (org.apache.kafka.streams StreamsBuilder TopologyTestDriver) (org.apac...
06ce4ba29235dcd86e5df41cdb60d470ccca3588802f9090da59f069272c4150
unnohideyuki/bunny
sample071.hs
main = let f = putStrLn e f = f "Hello, Let Expression!" in e f
null
https://raw.githubusercontent.com/unnohideyuki/bunny/501856ff48f14b252b674585f25a2bf3801cb185/compiler/test/samples/sample071.hs
haskell
main = let f = putStrLn e f = f "Hello, Let Expression!" in e f
f8b90cc3e16328f85f1adbc85bdb321cdb2292268789334c8d24505e58a6bb58
containium/containium
socket.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns containium.deployer.socket (:require [containium.systems :refer (require-system Startable Stoppable)] [containium.systems.con...
null
https://raw.githubusercontent.com/containium/containium/dede4098de928bed9ce8fccfc0a3891655ee162e/src/containium/deployer/socket.clj
clojure
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns containium.deployer.socket (:require [containium.systems :refer (require-system Startable Stoppable)] [containium.systems.con...
208b5727b3c91ac7d996f95df8281271e54335adcd26d27e43722a1f05d2ded4
igorhvr/bedlam
counter-sps.scm
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in compliance with ;;; the License. You may obtain a copy of the License at ;;; / ;;; Software distributed under the License is distributed on an " AS IS " basis , ;;; WITHOUT WAR...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/examples/scm/examples/counter-sps.scm
scheme
you may not use this file except in compliance with the License. You may obtain a copy of the License at / WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Contributor(s): Alternatively, the contents of th...
The contents of this file are subject to the Mozilla Public License Version Software distributed under the License is distributed on an " AS IS " basis , The Original Code is SISCweb . The Initial Developer of the Original Code is . Portions created by the Initial Developer are Copyright ( C ) 2005 - 2007 ...
3594afd44281af1af5ccaa79f8a7ed8eb379ffee006df5c29cad939d084294c9
jepsen-io/maelstrom
g_set.clj
(ns maelstrom.workload.g-set "A grow-only set workload: clients add elements to a set, and read the current value of the set." (:refer-clojure :exclude [read]) (:require [maelstrom [client :as c] [net :as net]] [jepsen [checker :as checker] [client :as clie...
null
https://raw.githubusercontent.com/jepsen-io/maelstrom/50608759036ebd5da6b3d113a8df93734763f6a2/src/maelstrom/workload/g_set.clj
clojure
(ns maelstrom.workload.g-set "A grow-only set workload: clients add elements to a set, and read the current value of the set." (:refer-clojure :exclude [read]) (:require [maelstrom [client :as c] [net :as net]] [jepsen [checker :as checker] [client :as clie...
7926428573724885148e11a1f3cbf87bcc6ef312c1d81164efffbd4a46acb397
spechub/Hets
AS_BASIC_PLpatt.hs
{-# LANGUAGE DeriveDataTypeable #-} module PLpatt.AS_BASIC_PLpatt where import Data.Typeable type Id = String type Var = Int data Bool' = True' | False' | And Bool' Bool' | Or Bool' Bool' | Not Bool' | Impl Bool' Bool' | Equiv Bool' Bool' deriving ( Show, Typeable, Eq, Ord) data Dot = Dot Id Bool' deriving ( Show, ...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/PLpatt/AS_BASIC_PLpatt.hs
haskell
# LANGUAGE DeriveDataTypeable #
module PLpatt.AS_BASIC_PLpatt where import Data.Typeable type Id = String type Var = Int data Bool' = True' | False' | And Bool' Bool' | Or Bool' Bool' | Not Bool' | Impl Bool' Bool' | Equiv Bool' Bool' deriving ( Show, Typeable, Eq, Ord) data Dot = Dot Id Bool' deriving ( Show, Typeable, Eq) data Prop = Prop Id d...
67872d7dcbd914cddfe14cfa8a5f0c268375b1894f9cb5e600d1e292bb403b6b
haskell-mafia/mafia
IO.hs
{-# LANGUAGE DoAndIfThenElse #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # module Mafia.IO ( -- * Directory Operations ListingOptions(..) , getDirectoryListing , getDirectoryContents , createDirectoryIfMissing , removeDi...
null
https://raw.githubusercontent.com/haskell-mafia/mafia/529440246ee571bf1473615e6218f52cd1e990ae/src/Mafia/IO.hs
haskell
# LANGUAGE DoAndIfThenElse # # LANGUAGE OverloadedStrings # * Directory Operations * Existence Tests * Timestamps * File Operations * Environment * Pre-defined directories * Concurrency * Exceptions * Temporary ---------------------------------------------------------------------- -----------------------------...
# LANGUAGE NoImplicitPrelude # # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # module Mafia.IO ListingOptions(..) , getDirectoryListing , getDirectoryContents , createDirectoryIfMissing , removeDirectoryRecursive , renameDirectory , setCurrentDirectory , getCurrentDirectory , makeRelat...
01237059207cae448e11a01fc3e6535d3ed5ef68fe9d53bc6b1abb78953a87a1
Nick-Chapman/niz
options.ml
type t = { trace : int; tandy : bool; cheat : bool; no_buffer : bool; no_line_wrap : bool; hide_unimplemented : bool; }
null
https://raw.githubusercontent.com/Nick-Chapman/niz/603a437ace7c6babcb08648a98c6ace099e99216/lib/options.ml
ocaml
type t = { trace : int; tandy : bool; cheat : bool; no_buffer : bool; no_line_wrap : bool; hide_unimplemented : bool; }
ec3e32a34f06ac87bbb24e0204496301002e9b706b189dc52491baaee6f165eb
magnars/prone
demo.clj
(ns prone.demo (:require [clojure.java.io :as io] [datomic.api :as d] [prone.debug :refer [debug]] [prone.middleware :refer [wrap-exceptions]] [hiccup.core :as h]) (:import [java.io ByteArrayInputStream] (java.sql SQLException))) (defrecord MyRecord [num])...
null
https://raw.githubusercontent.com/magnars/prone/50ed099bb95ad3dfa6d70d506f62faf0fdccebf8/dev/prone/demo.clj
clojure
throw exception in dependency (outside of app) throw an ex-info with data attached throw an exception with a cause use the debug function to halt rendering (and inspect data) basic case A map with nil as key, that is too big to render inline serve source maps
(ns prone.demo (:require [clojure.java.io :as io] [datomic.api :as d] [prone.debug :refer [debug]] [prone.middleware :refer [wrap-exceptions]] [hiccup.core :as h]) (:import [java.io ByteArrayInputStream] (java.sql SQLException))) (defrecord MyRecord [num])...
b10c3d2676c5d0fc4dccda1955721346d0e820e68b9a0d9f179f407b56f9082e
conscell/hugs-android
Fusion.hs
# OPTIONS_GHC -cpp - orphans # -- -- Module : Data.ByteString.Fusion -- License : BSD-style Maintainer : -- Stability : experimental Portability : portable , requires ffi and Tested with : GHC 6.4.1 and Hugs March 2005 -- -- #hide | Functional array fusion for ByteStrings . -- Original...
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/packages/base/Data/ByteString/Fusion.hs
haskell
Module : Data.ByteString.Fusion License : BSD-style Stability : experimental #hide </~chak/project/dph> * Fusion utilities ** Alternative Fusion stuff | This replaces 'loopU' with 'loopUp' and adds several further special cases of loops. | These are the special fusion cases for combining ...
# OPTIONS_GHC -cpp - orphans # Maintainer : Portability : portable , requires ffi and Tested with : GHC 6.4.1 and Hugs March 2005 | Functional array fusion for ByteStrings . Originally based on code from the Data Parallel Haskell project , module Data.ByteString.Fusion ( loopU, loopL, fuseEFL...
6af69d0f4b2e778d2cddc3772742f7bfe073376bd5f7fd544472b22d3bccbb27
janestreet/memtrace_viewer_with_deps
app.ml
open! Core_kernel open! Bonsai_web open Vdom_keyboard open Memtrace_viewer_common let main_panel ~(data : Data.t Bonsai.Value.t) : Main_panel.t Bonsai.Computation.t = Main_panel.component ~data ;; let info_panel ~(data : Data.t Bonsai.Value.t) : Vdom.Node.t Bonsai.Computation.t = let open Bonsai.Let_syntax in l...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/client/app.ml
ocaml
data.info should only be None when there's no data anyway
open! Core_kernel open! Bonsai_web open Vdom_keyboard open Memtrace_viewer_common let main_panel ~(data : Data.t Bonsai.Value.t) : Main_panel.t Bonsai.Computation.t = Main_panel.component ~data ;; let info_panel ~(data : Data.t Bonsai.Value.t) : Vdom.Node.t Bonsai.Computation.t = let open Bonsai.Let_syntax in l...
07490420cac56ec0bcd484871c4b4092f27c4f7ab9433608f1869303ced7e867
haroldcarr/learn-haskell-coq-ml-etc
P358_state_machine_vending_p2.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} # LANGUAGE RankNTypes # # LANGUAGE RebindableSyntax # {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeInType #-} {-# LANGUAGE TypeOperators #-} module P358_state_machine_vending_p2 where import P358_state_...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/idris/book/2017-Type_Driven_Development_with_Idris/src/P358_state_machine_vending_p2.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE TypeFamilies # # LANGUAGE TypeInType # # LANGUAGE TypeOperators # machineLoop :: MachineIO p c machineLoop = do x <- GetInput case x of Nothing -> do Display "Invalid input" machineLoop Just x -> ...
# LANGUAGE RankNTypes # # LANGUAGE RebindableSyntax # module P358_state_machine_vending_p2 where import P358_state_machine_vending_p1 import Data.Proxy import Data.Reflection hiding (Z) import Prelude hiding ((>>), (>>=)) (>>) ...
9647d5921827b9afca445da8f6efc12e9a5afdcea51a607414bd24dbf4b3476d
takikawa/racket-ppa
parallel-do.rkt
#lang racket/base (require racket/file racket/future racket/place racket/port racket/match racket/path racket/class racket/stxparam setup/dirs (for-syntax syntax/parse racket/base)) (provide parallel-do curr...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/collects/setup/parallel-do.rkt
racket
(begin a ...) spawns a new worker spawn a worker and add it to the list; disable breaks because we want to make sure that a new worker is added to the list of workers before a break exception is raised: If any exception (including a break exception) happens before the work loop ends, then send a break to inter...
#lang racket/base (require racket/file racket/future racket/place racket/port racket/match racket/path racket/class racket/stxparam setup/dirs (for-syntax syntax/parse racket/base)) (provide parallel-do curr...
f70179be944baf208dc9d2e0f57e2fc9dd19e35ca514262a255c3809cdad251b
racket/redex
delim-cont-2.rkt
#lang racket/base (require redex/benchmark "util.rkt" redex/reduction-semantics) (provide (all-defined-out)) (define the-error "list/c contracts aren't applied properly in the cons case") (define-rewrite bug2 (monitor (list/c ctc) (cons v_1 v_2) k l j) ==> (monitor ctc (cons v_1 v_2) k l j) ...
null
https://raw.githubusercontent.com/racket/redex/4c2dc96d90cedeb08ec1850575079b952c5ad396/redex-benchmark/redex/benchmark/models/delim-cont/delim-cont-2.rkt
racket
#lang racket/base (require redex/benchmark "util.rkt" redex/reduction-semantics) (provide (all-defined-out)) (define the-error "list/c contracts aren't applied properly in the cons case") (define-rewrite bug2 (monitor (list/c ctc) (cons v_1 v_2) k l j) ==> (monitor ctc (cons v_1 v_2) k l j) ...
867feff76cfb3ad1418190d8424062263aeb0ab7c1b3c9e109198cf40cef251a
ucsd-progsys/liquidhaskell
Lit.hs
{-@ LIQUID "--expect-any-error" @-} module Lit where @ test : : { v : Int | v = = 30 } @ test = length "cat"
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/neg/Lit.hs
haskell
@ LIQUID "--expect-any-error" @
module Lit where @ test : : { v : Int | v = = 30 } @ test = length "cat"
afe9d29873b4ae51244e87ef6f983ff92ccc212fe4b9239fd73214746bc1489b
oakes/play-cljs
play_cljs.clj
(ns leiningen.new.play-cljs (:require [leiningen.new.templates :as t] [clojure.string :as str])) (defn sanitize-name [s] (as-> s $ (str/trim $) (str/lower-case $) (str/replace $ "'" "") (str/replace $ #"[^a-z0-9]" " ") (str/split $ #" ") (remove empty? $)...
null
https://raw.githubusercontent.com/oakes/play-cljs/6e007c4fc2aba84f75b03796672826ba5617732e/template/src/leiningen/new/play_cljs.clj
clojure
(ns leiningen.new.play-cljs (:require [leiningen.new.templates :as t] [clojure.string :as str])) (defn sanitize-name [s] (as-> s $ (str/trim $) (str/lower-case $) (str/replace $ "'" "") (str/replace $ #"[^a-z0-9]" " ") (str/split $ #" ") (remove empty? $)...
6907ad595c093273dc6a456020d03b521a6c45a1bd22cb8bb57ba547c5e8886b
degree9/uikit-hl
column.cljs
(ns uikit-hl.column (:require [clojure.string :as s] [hoplon.core :as h])) (defn- format-column [column] (-> (str "uk-" column) (s/replace #"-s$" "@s") (s/replace #"-m$" "@m") (s/replace #"-l$" "@l") (s/replace #"-xl$" "@xl"))) (defmethod h/do! ::default [elem kw v] (h/do! elem :cl...
null
https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/src/uikit_hl/column.cljs
clojure
(ns uikit-hl.column (:require [clojure.string :as s] [hoplon.core :as h])) (defn- format-column [column] (-> (str "uk-" column) (s/replace #"-s$" "@s") (s/replace #"-m$" "@m") (s/replace #"-l$" "@l") (s/replace #"-xl$" "@xl"))) (defmethod h/do! ::default [elem kw v] (h/do! elem :cl...
094088966e3e17d4f9a0bc340053587c0751665d3fdb973d013ef14750b5b015
openmusic-project/openmusic
multiplayer.lisp
;========================================================================= OpenMusic : Visual Programming Language for Music Composition ; Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . ; This file is part of the OpenMusic environment sources ; OpenMusic is free software : you can redist...
null
https://raw.githubusercontent.com/openmusic-project/openmusic/e55f59d9e3c794b42c04323164bed3d8af9f24bc/OPENMUSIC/code/projects/omsounds/players/multiplayer.lisp
lisp
========================================================================= (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. =================...
OpenMusic : Visual Programming Language for Music Composition Copyright ( c ) 1997- ... IRCAM - Centre , Paris , France . This file is part of the OpenMusic environment sources OpenMusic is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License ...
8d7e0b0fa66dc5a2705efb19776d117bfe03687568e1a660706e13e17889e0f5
MLanguage/mlang
oir.ml
Copyright ( C ) 2019 - 2021 Inria , contributors : < > This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later ...
null
https://raw.githubusercontent.com/MLanguage/mlang/043516564f98f2ac8db88eff8a2cdc2ecd2db440/src/mlang/optimizing_ir/oir.ml
ocaml
Copyright ( C ) 2019 - 2021 Inria , contributors : < > This program is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later ...
a87f6e3a5d4128dbb7e762dab9212e30e382363348d05316c5280278b1d549e9
mbj/stratosphere
SecretTargetAttachment.hs
module Stratosphere.SecretsManager.SecretTargetAttachment ( SecretTargetAttachment(..), mkSecretTargetAttachment ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data Sec...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/secretsmanager/gen/Stratosphere/SecretsManager/SecretTargetAttachment.hs
haskell
module Stratosphere.SecretsManager.SecretTargetAttachment ( SecretTargetAttachment(..), mkSecretTargetAttachment ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data Sec...
dcd082bc6d36026cb85a0215b4c371b3ad2e0a929806255d1422305a34b55f60
clingen-data-model/genegraph
iri.clj
; Defines clinvar iri namespaces and iri builder functions (ns genegraph.transform.clinvar.iri (:require [genegraph.database.names :refer [prefix-ns-map]] [genegraph.transform.clinvar.util :refer :all])) (def clinvar-variation ":") (def clinvar-vcv "/") (def clinvar-assertion ":") clingen terms (def c...
null
https://raw.githubusercontent.com/clingen-data-model/genegraph/70b2930fb856c9fbf1ee35902dfb8ea6680d7570/src/genegraph/transform/clinvar/iri.clj
clojure
Defines clinvar iri namespaces and iri builder functions (def prefix-cv "/") Submitted assertion sub-nodes Normalized assertion nodes (def variation (path-join cgterms "clinvar.variation/"))
(ns genegraph.transform.clinvar.iri (:require [genegraph.database.names :refer [prefix-ns-map]] [genegraph.transform.clinvar.util :refer :all])) (def clinvar-variation ":") (def clinvar-vcv "/") (def clinvar-assertion ":") clingen terms (def cgterms (prefix-ns-map "cgterms")) (defn ns-cg [term] (str c...
e08f98954d395555635e34bce414be6f26a698bb47ff28639fa3d83375d231a9
typed-wire/typed-wire
Check.hs
# LANGUAGE FlexibleContexts # module TW.Check where import TW.Ast import TW.BuiltIn import Control.Monad.Except import qualified Data.Map as M data DefinedType = DefinedType { dt_name :: QualTypeName , dt_args :: [TypeVar] } deriving (Show, Eq) builtInToDefTy :: BuiltIn -> DefinedType builtInToDefTy bi ...
null
https://raw.githubusercontent.com/typed-wire/typed-wire/cce9f8fa14b5033084d941d7be630b495967543a/src/TW/Check.hs
haskell
# LANGUAGE FlexibleContexts # module TW.Check where import TW.Ast import TW.BuiltIn import Control.Monad.Except import qualified Data.Map as M data DefinedType = DefinedType { dt_name :: QualTypeName , dt_args :: [TypeVar] } deriving (Show, Eq) builtInToDefTy :: BuiltIn -> DefinedType builtInToDefTy bi ...
697808e77bf00448567e0773a22dd3af7ba0048df8f70d8baba42ad186b2bda9
haroldcarr/learn-haskell-coq-ml-etc
XSpec.hs
{-# LANGUAGE Strict #-} {-# LANGUAGE StrictData #-} module XSpec where ------------------------------------------------------------------------------ import DataForTest import UseRWSIO import UseRWSTIO import UseRWST ---------------------------------------------------------...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/monads/2020-06-hc-reader-and-monad-write-state-io/test/XSpec.hs
haskell
# LANGUAGE Strict # # LANGUAGE StrictData # ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ----------------------------------------------------------------------------
module XSpec where import DataForTest import UseRWSIO import UseRWSTIO import UseRWST import Test.Hspec spec :: Spec spec = do mrwsi <- runIO (runMonadRWSInts False) rwstioi <- runIO (runRWSTIOInts False) rwsti <- runIO (runRWSTInts False) mrwsd ...
821fb7d53adca3fb7926ac3319f9109465298647161fb77ae2c85d910330a33c
AlexKnauth/debug
test.rkt
#lang debug racket/base originally from mbutterick / sugar , sugar / test / debug - meta - lang.rkt ;; -meta-lang.rkt (require rackunit (for-meta 1 (only-in racket/base begin-for-syntax)) (for-meta 2 (only-in racket/base begin-for-syntax)) (for-meta 3 (only-in racket/base let #%app open-o...
null
https://raw.githubusercontent.com/AlexKnauth/debug/aa798842c09ece55c2a088f09d30e398d2b77fee/debug/test/test.rkt
racket
-meta-lang.rkt
#lang debug racket/base originally from mbutterick / sugar , sugar / test / debug - meta - lang.rkt (require rackunit (for-meta 1 (only-in racket/base begin-for-syntax)) (for-meta 2 (only-in racket/base begin-for-syntax)) (for-meta 3 (only-in racket/base let #%app open-output-string get-o...
5dcc13477e0c82f71a8cb8c95f033abd3d219c41d11af029fdfbc492c30a64e7
hjcapple/reading-sicp
exercise_2_46.scm
#lang racket P92 - [ 练习 2.46 ] (define (make-vect x y) (cons x y)) (define (xcor-vect v) (car v)) (define (ycor-vect v) (cdr v)) (define (add-vect v0 v1) (make-vect (+ (xcor-vect v0) (xcor-vect v1)) (+ (ycor-vect v0) (ycor-vect v1)))) (define (sub-vect v0 v1) (make-vect (- (xcor-vect v0) ...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_2/exercise_2_46.scm
scheme
#lang racket P92 - [ 练习 2.46 ] (define (make-vect x y) (cons x y)) (define (xcor-vect v) (car v)) (define (ycor-vect v) (cdr v)) (define (add-vect v0 v1) (make-vect (+ (xcor-vect v0) (xcor-vect v1)) (+ (ycor-vect v0) (ycor-vect v1)))) (define (sub-vect v0 v1) (make-vect (- (xcor-vect v0) ...
689e96d906c69c8f8dfd60d8659876e2fcc1d0946873ff414a25d4cac4eafa69
CodyReichert/qi
test.lisp
Copyright ( C ) 2008 ;;; See LICENSE for details. #| (load "test.lisp") |# (defpackage :ssl-test (:use :cl)) (in-package :ssl-test) (defvar *port* 8080) (defvar *cert* "/home/david/newcert.pem") (defvar *key* "/home/david/newkey.pem") (eval-when (:compile-toplevel :load-toplevel :execute) (asdf:operate 'a...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cl%2Bssl-latest/test.lisp
lisp
See LICENSE for details. (load "test.lisp") global as one might hope deadline at the socket cration ( the WITH-TIMEOUT macro). we need read/write deadlines on the SSL client stream. Simple echo-server test. Write a line and check that the result - :UNWRAP-STREAMS T - :UNWRAP-STREAMS :CLIENT Conve...
Copyright ( C ) 2008 (defpackage :ssl-test (:use :cl)) (in-package :ssl-test) (defvar *port* 8080) (defvar *cert* "/home/david/newcert.pem") (defvar *key* "/home/david/newkey.pem") (eval-when (:compile-toplevel :load-toplevel :execute) (asdf:operate 'asdf:load-op :trivial-sockets) (asdf:operate 'asdf:lo...
c15b42bed12306c986cc15c5433461f92882690ba3517dcca99db1f781c81f5b
webyrd/n-grams-for-synthesis
113.scm
Copyright ( C ) ( 2017 ) . All Rights ;; Reserved. ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;; restriction, including without limitation the rights to use, copy...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-146/srfi/113.scm
scheme
Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following co...
Copyright ( C ) ( 2017 ) . All Rights files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , BE ...
a700f12b149ccc95b18f023406ffed7ba6712e780b30a5926f860ea175daad0b
rainyt/ocaml-haxe
sys.ml
#2 "stdlib/sys.mlp" (**************************************************************************) (* *) (* OCaml *) (* ...
null
https://raw.githubusercontent.com/rainyt/ocaml-haxe/387b9685d0befc6c69a954b970597a44109f38ec/ocaml-extern/ocaml/sys.ml
ocaml
************************************************************************ OCaml ...
#2 "stdlib/sys.mlp" , projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the WARNING : sys.ml is generated from sys.mlp . DO NOT EDIT sys.ml or your chan...
6605e13bac058ebc253e189d416cc4c86cc8a939d2978d4d195da57afc9014f2
oriansj/mes-m2
display_number.scm
GNU --- Maxwell Equations of Software Copyright © 2016,2018 Jan ( janneke ) Nieuwenhuizen < > ;;; This file is part of GNU . ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version...
null
https://raw.githubusercontent.com/oriansj/mes-m2/b44fbc976ae334252de4eb82a57c361a195f2194/test/test003/display_number.scm
scheme
you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
GNU --- Maxwell Equations of Software Copyright © 2016,2018 Jan ( janneke ) Nieuwenhuizen < > This file is part of GNU . under the terms of the GNU General Public License as published by GNU is distributed in the hope that it will be useful , but You should have received a copy of the GNU General Public...
7b9d9df83f1687908cfff98933790b4556ef46328ff9b27c6f2fba6ff62d32d5
hannesm/logs-syslog
logs_syslog_lwt.ml
open Lwt.Infix open Logs_syslog_lwt_common open Logs_syslog let udp_reporter ?hostname ip ?(port = 514) ?(truncate = 65535) ?facility () = let sa = Lwt_unix.ADDR_INET (ip, port) in let s = Lwt_unix.(socket PF_INET SOCK_DGRAM 0) in let send msg = Lwt.catch (fun () -> let b = Bytes.of_string msg in ...
null
https://raw.githubusercontent.com/hannesm/logs-syslog/3988a4be9bae5f4487c84769f6b456857a698d39/src/lwt/logs_syslog_lwt.ml
ocaml
open Lwt.Infix open Logs_syslog_lwt_common open Logs_syslog let udp_reporter ?hostname ip ?(port = 514) ?(truncate = 65535) ?facility () = let sa = Lwt_unix.ADDR_INET (ip, port) in let s = Lwt_unix.(socket PF_INET SOCK_DGRAM 0) in let send msg = Lwt.catch (fun () -> let b = Bytes.of_string msg in ...
8a6e1e2eae7c7788bb6c0c43313a614e20e26e2fbcae1341b7c0b1f76705c3ef
karlhof26/gimp-scheme
adjustment_pattern-fill-adjustment-layer.scm
; ; pattern-fill-adjustment-layer ; ; Creates a pattern fill "adjustment layer". ; ( ) At xMedia , The Netherlands ; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of t...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/1dc7b78920df8e55621b43ad8cd11322feb8146c/adjustment_pattern-fill-adjustment-layer.scm
scheme
pattern-fill-adjustment-layer Creates a pattern fill "adjustment layer". This program is free software; you can redistribute it and/or modify either version 2 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; wi...
( ) At xMedia , The Netherlands it under the terms of the GNU General Public License as published by (define (script-fu-pattern-fill-adjustment-layer inImage inLayer inPattern ...