_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
f8fbe4cde44f829b16ed92a2847312809cc43baf3c73a042095c9663dc4340be
cunger/pythia
spotlight.clj
(ns core.external.ner.spotlight (:require [settings] [core.external.http :as http] [clojure.data.json :as json])) (declare type-list) (defn http-request [input] (settings/language (settings/domain { :dbpedia { :de (str "=" input "&spotter=Default") :en (str "=" input ...
null
https://raw.githubusercontent.com/cunger/pythia/f58e35395968d4c46aef495fd363c26b1102003c/src/core/external/ner/spotlight.clj
clojure
Main must implement: get-entities, filter-entities Aux
(ns core.external.ner.spotlight (:require [settings] [core.external.http :as http] [clojure.data.json :as json])) (declare type-list) (defn http-request [input] (settings/language (settings/domain { :dbpedia { :de (str "=" input "&spotter=Default") :en (str "=" input ...
8d48afaf562f9e5a378743add857efba78a94da33189c9cf5414ef2f1c7aa891
ds-wizard/engine-backend
DocumentTemplateFormatSM.hs
module Shared.Api.Resource.DocumentTemplate.DocumentTemplateFormatSM where import Data.Swagger import Shared.Api.Resource.DocumentTemplate.DocumentTemplateFormatDTO import Shared.Api.Resource.DocumentTemplate.DocumentTemplateFormatJM () import Shared.Database.Migration.Development.DocumentTemplate.Data.DocumentTempla...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-shared/src/Shared/Api/Resource/DocumentTemplate/DocumentTemplateFormatSM.hs
haskell
module Shared.Api.Resource.DocumentTemplate.DocumentTemplateFormatSM where import Data.Swagger import Shared.Api.Resource.DocumentTemplate.DocumentTemplateFormatDTO import Shared.Api.Resource.DocumentTemplate.DocumentTemplateFormatJM () import Shared.Database.Migration.Development.DocumentTemplate.Data.DocumentTempla...
240f2e36657f1341c292d0b81fd24559402c623c1ad95501d7c8fcac07e629fd
kepler16/gx.cljc
impl.cljc
(ns k16.gx.beta.impl (:refer-clojure :exclude [ref]) #?(:cljs (:require-macros [k16.gx.beta.error-context :refer [with-err-ctx]])) (:require [clojure.walk :as walk] [k16.gx.beta.errors :as gx.err] [k16.gx.beta.schema :as gx.schema] #?(:cljs [clojure.string :as string]) ...
null
https://raw.githubusercontent.com/kepler16/gx.cljc/fdd8103ce5a1fcf7fc974b82493fab0b9b53002f/src/k16/gx/beta/impl.cljc
clojure
(ns k16.gx.beta.impl (:refer-clojure :exclude [ref]) #?(:cljs (:require-macros [k16.gx.beta.error-context :refer [with-err-ctx]])) (:require [clojure.walk :as walk] [k16.gx.beta.errors :as gx.err] [k16.gx.beta.schema :as gx.schema] #?(:cljs [clojure.string :as string]) ...
7236d404ea9376a8e5feceab066a4058598b6bbc6bca6d7bb370333ec46b2af1
riemann/riemann
logging.clj
(ns riemann.logging (:import (org.slf4j LoggerFactory) (ch.qos.logback.classic Level Logger) (ch.qos.logback.core ConsoleAppender FileAppender) (ch.qos.logback.core.util FileSize) (ch.qos.logback....
null
https://raw.githubusercontent.com/riemann/riemann/1649687c0bd913c378701ee0b964a9863bde7c7c/src/riemann/logging.clj
clojure
its changes are destructive. Options: Basic console logging Also log to a file With rotation Rotate at a certain size Multiple files in different formats Lord help me.
(ns riemann.logging (:import (org.slf4j LoggerFactory) (ch.qos.logback.classic Level Logger) (ch.qos.logback.core ConsoleAppender FileAppender) (ch.qos.logback.core.util FileSize) (ch.qos.logback....
dbd95e2a65d61f146144cf6660ca696c0e65b4bebea2df903bcfeca44af4e5fb
static-analysis-engineering/codehawk
bCHExtractInvariants.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/15765b4be65024f1687ccc3cc7b645347ce72063/CodeHawk/CHB/bchanalyze/bCHExtractInvariants.mli
ocaml
bchlib
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
450975b99cc112f44795aedafa6829ce837a9d9a708bc5f483632d8668fb19d0
tolysz/ghcjs-stack
GlobalFlags.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE DeriveGeneric # # LANGUAGE ExistentialQuantification # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # module Distribution.Client.GlobalFlags ( GlobalFlags(..) , defaultGlobalFlags , RepoContext(..) , withRepoContext , withRe...
null
https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/cabal-next/cabal-install/Distribution/Client/GlobalFlags.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE RankNTypes # ------------------------------------------------------------ * Global flags ------------------------------------------------------------ | Flags that apply at the top level, not to any sub-command. ^ Available Hackage servers. ^ Ignore security expiry dates -----...
# LANGUAGE DeriveGeneric # # LANGUAGE ExistentialQuantification # # LANGUAGE ScopedTypeVariables # # LANGUAGE RecordWildCards # module Distribution.Client.GlobalFlags ( GlobalFlags(..) , defaultGlobalFlags , RepoContext(..) , withRepoContext , withRepoContext' ) where import Distribution.Client.Types ...
82284587cb68b515f27436afd216fb6e1c552c4de4a79ac432832a13af417752
stassats/lisp-bots
mop.lisp
((:name "mop" :description "Metaobject Protocol" :url-prefix "-MOP/" :abbreviate t) ("accessor-method-slot-definition" "accessor-method-slot-definition.html") ("add-dependent" "add-dependent.html") ("add-direct-method" "add-direct-method.html") ("add-direct-subclass" "add-direct-subclass.html") ("add-method"...
null
https://raw.githubusercontent.com/stassats/lisp-bots/09bfce724afd20c91a08acde8816be6faf5f54b2/specs/mop.lisp
lisp
((:name "mop" :description "Metaobject Protocol" :url-prefix "-MOP/" :abbreviate t) ("accessor-method-slot-definition" "accessor-method-slot-definition.html") ("add-dependent" "add-dependent.html") ("add-direct-method" "add-direct-method.html") ("add-direct-subclass" "add-direct-subclass.html") ("add-method"...
5901ac1b622ad79f188ada09cd1a41f8e092b16fa144a7097474c5f0dcf4cd0b
kowainik/cake-slayer
Random.hs
{- | Utilities for generating random strings. -} module CakeSlayer.Random ( mkRandomDigits , mkRandomString ) where import Relude.Unsafe ((!!)) import System.Random (newStdGen, randomRIO, randomRs) -- | Generates @n@ random digits. mkRandomDigits :: (MonadIO m) => Int -> m Text mkRandomDigits l...
null
https://raw.githubusercontent.com/kowainik/cake-slayer/744f072c0eeaf50e43210e4b548705e1948e5a39/src/CakeSlayer/Random.hs
haskell
| Utilities for generating random strings. | Generates @n@ random digits. ^ Length of the string ^ Generated string of the given length
module CakeSlayer.Random ( mkRandomDigits , mkRandomString ) where import Relude.Unsafe ((!!)) import System.Random (newStdGen, randomRIO, randomRs) mkRandomDigits :: (MonadIO m) => Int -> m Text mkRandomDigits len = toText . take len . randomRs ('0', '9') <$> liftIO newStdGen | Make a rando...
7bbfc2185cb9872d86ad1621639768765447ebdd1fc69768c1224aae55e1c841
startalkIM/ejabberd
node_public.erl
%%%---------------------------------------------------------------------- File : node_public.erl Author : %%% Purpose : Created : 1 Dec 2007 by %%% %%% ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it under ...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/node_public.erl
erlang
---------------------------------------------------------------------- Purpose : This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warr...
File : node_public.erl Author : Created : 1 Dec 2007 by ejabberd , Copyright ( C ) 2002 - 2016 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 Gener...
e96e8c5eea53204a2c9a461284fcf2aa2dafe422aae74abe9ce785496dc3c9fb
CatalaLang/catala
from_dcalc.mli
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
null
https://raw.githubusercontent.com/CatalaLang/catala/4f059883c1b30d5c4efde77cecbd977704cbf972/compiler/lcalc/from_dcalc.mli
ocaml
* Translation from the default calculus to the lambda calculus. This translation uses exceptions to handle empty default terms.
This file is part of the Catala compiler , a specification language for tax and social benefits computation rules . Copyright ( C ) 2020 , contributor : < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . ...
9993a7adcba57a62452659ffdeacf2d79bfd08cd46acc1b124c7eb3a293d3444
nikita-volkov/rebase
Strict.hs
module Rebase.Data.STRef.Strict ( module Data.STRef.Strict ) where import Data.STRef.Strict
null
https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Data/STRef/Strict.hs
haskell
module Rebase.Data.STRef.Strict ( module Data.STRef.Strict ) where import Data.STRef.Strict
2c5377437517b03d96690384e664cf3266aa582b219a6f0b0d342cbca83a1520
fpco/stack-docker-image-build
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import System.Process.Typed import System.FilePath import Data.Foldable import System.Directory import System.Environment (getArgs) import Control.Exception import Control.Monad import qualified Data.Text as T import qualified Data.Text.Lazy as TL import Data...
null
https://raw.githubusercontent.com/fpco/stack-docker-image-build/8aa2ff15e7a5807e295f6ff6b2f70f74f5d08722/app/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main (main) where import System.Process.Typed import System.FilePath import Data.Foldable import System.Directory import System.Environment (getArgs) import Control.Exception import Control.Monad import qualified Data.Text as T import qualified Data.Text.Lazy as TL import Data.Text.Lazy.Encoding (decodeUtf8) im...
52aaf9bbbb665fac4c939b34fdbecf3f098567139b92bfe5f9deb1c2b6833d0d
lmj/lparallel
kernel-test.lisp
Copyright ( c ) 2011 - 2012 , . All rights reserved . ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this li...
null
https://raw.githubusercontent.com/lmj/lparallel/9c11f40018155a472c540b63684049acc9b36e15/test/kernel-test.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary...
Copyright ( c ) 2011 - 2012 , . All rights reserved . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY...
36542d02c484f2d7b330af14cb44c5f7244a919497c9b311045a883bdd513bea
madstap/comfy
project.clj
(defproject madstap/comfy "1.0.5" :description "Clojure(script) utils" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1.9.946" :scope "provided"]] :plugins [[lein-codox "0.10.3"] ...
null
https://raw.githubusercontent.com/madstap/comfy/0af9cc940bcf1726e0c11c6f19986620d8cfd345/project.clj
clojure
¯\_(ツ)_/¯
(defproject madstap/comfy "1.0.5" :description "Clojure(script) utils" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [org.clojure/clojurescript "1.9.946" :scope "provided"]] :plugins [[lein-codox "0.10.3"] ...
c0485baea4035191ebeba91eed2285ce5edb45d00e7aba43a08b49d1b9b0e904
charlieg/Sparser
compile-singletons.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(CL-USER COMMON-LISP) -*- Copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved $ I d : compile-singletons.lisp 207 2009 - 06 - 18 20:59:16Z cgreenba $ ;;; ;;; File: "compile-singletons" ;;; Module: "init;scripts:" version : March 2007 ;; De...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/init/scripts/compile-singletons.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(CL-USER COMMON-LISP) -*- File: "compile-singletons" Module: "init;scripts:" Derived from compile-everthing on 3/20/07 -------------------------------------------------- compile individual files in the preloader, etc. -----------------------------------------...
Copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved $ I d : compile-singletons.lisp 207 2009 - 06 - 18 20:59:16Z cgreenba $ version : March 2007 (in-package :sparser) (just-compile "init;everything") (just-compile "init;Lisp:kind-of-lisp") (just-compile "init;Lisp:grammar-module") (just-compil...
2a158bd53e3f5eaf51db78ecd149879964f7516bedd85dc706efa569256e1f3f
avsm/platform
test.ml
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and (* ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/ocamlgraph.1.8.8%2Bdune/tests/test.ml
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2007 , and modify it under the terms of the GNU Library General Public License version 2 , with the special exception on linking open Form...
1fa4dbcb1799f9f9cf25347ecd197741923658e9810bed2056d07b67775ba2d6
yellowtides/owenbot-hs
Config.hs
# LANGUAGE DeriveGeneric # module Config where import Control.Exception (IOException, try) import Data.Aeson (FromJSON, ToJSON, eitherDecode, encode) import qualified Data.ByteString as BS (ByteString, readFile, writeFile) import qualified Data.ByteString.Lazy as BL (ByteString, fromStrict, toStrict) import qualified ...
null
https://raw.githubusercontent.com/yellowtides/owenbot-hs/74669e8620b5202e7ad9c5ac69cbf74118fc9b64/src/Config.hs
haskell
because reading values every time is slow and a solution can't be thought of maybe move this into a per-guild db (commented since writing to config is never necessary and goes against rules) | Takes a filename (with no suffix) and a data structure, and writes a json file to that location. writeConfig file db = do...
# LANGUAGE DeriveGeneric # module Config where import Control.Exception (IOException, try) import Data.Aeson (FromJSON, ToJSON, eitherDecode, encode) import qualified Data.ByteString as BS (ByteString, readFile, writeFile) import qualified Data.ByteString.Lazy as BL (ByteString, fromStrict, toStrict) import qualified ...
1d6e98dc726ddaa88ed26b7ba120d3d0ee53f3e041cedee9b3a288cc4547052c
haskell-tools/haskell-tools
Quoted.hs
# LANGUAGE TemplateHaskell # module TH.Quoted where import qualified Text.Read.Lex (Lexeme) $(let x = ''Text.Read.Lex.Lexeme in return [])
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/examples/TH/Quoted.hs
haskell
# LANGUAGE TemplateHaskell # module TH.Quoted where import qualified Text.Read.Lex (Lexeme) $(let x = ''Text.Read.Lex.Lexeme in return [])
8e48bab51ee4eac5a200fe448dee61e5cb123b9e425f4e58810d21b0fc0bf685
bobzhang/fan
S.ml
open Fan.Syntax; module Ast = Camlp4Ast; open FanUtil; let open FanParsers in begin pa_r (module Fan); pa_rp (module Fan); pa_q (module Fan); pa_g (module Fan); pa_l (module Fan); pa_m (module Fan); end; Fan.iter_and_take_callbacks (fun (_,f) -> f ()) ; let t e s = Gram.parse_string e FanLoc.string_...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/testr/S.ml
ocaml
{:extend.create|Gram s v|}; {:extend|Gram s: ["`"; a_ident{s} -> {| `$s |} |"`"; a_ident{s}; `LID x -> {| `$s $lid:x |} |"`"; a_ident{s}; "("; L1 v SEP ","{v}; ")" -> match v with [ [x] -> {| `$s $x |} | _ -> assert false ] ] v: [ `STR(_,s) -> {| $str:s|} | `...
open Fan.Syntax; module Ast = Camlp4Ast; open FanUtil; let open FanParsers in begin pa_r (module Fan); pa_rp (module Fan); pa_q (module Fan); pa_g (module Fan); pa_l (module Fan); pa_m (module Fan); end; Fan.iter_and_take_callbacks (fun (_,f) -> f ()) ; let t e s = Gram.parse_string e FanLoc.string_...
08f2630fa66f364d7212d5ff5520548fbb64665e67e8558fc24cb9a99ae9a8de
naushadh/hello-world
Lib.hs
{-# LANGUAGE OverloadedStrings #-} module Lib ( dbFour , PSQL.defaultConnectInfo , PSQL.ConnectInfo(..) ) where import qualified Database.PostgreSQL.Simple as PSQL dbFour :: PSQL.ConnectInfo -> IO () dbFour connectInfo = do conn <- PSQL.connect connectInfo [PSQL.Only i] <- PSQL.query_ conn "select 2 + 2"...
null
https://raw.githubusercontent.com/naushadh/hello-world/742b24ed9be53d95a7f6f9177b44132c635b78ab/hello-postgresql/src/Lib.hs
haskell
# LANGUAGE OverloadedStrings #
module Lib ( dbFour , PSQL.defaultConnectInfo , PSQL.ConnectInfo(..) ) where import qualified Database.PostgreSQL.Simple as PSQL dbFour :: PSQL.ConnectInfo -> IO () dbFour connectInfo = do conn <- PSQL.connect connectInfo [PSQL.Only i] <- PSQL.query_ conn "select 2 + 2" putStrLn "dbFour" putStrLn . s...
a5fca846a777dc63dcaf9066866da266ab6fe1e1cfe8fd8efce0a870b3b68ff9
liquidz/antq
edn.clj
(ns antq.report.edn (:require [antq.report :as report])) (defmethod report/reporter "edn" [deps _options] (->> deps ;; Convert a record to just a map (map #(merge {} %)) ;; NOTE Add diff-url for backward compatibility (map #(assoc % :diff-url (:changes-url %))) (pr-str) ...
null
https://raw.githubusercontent.com/liquidz/antq/ca8472b28702f5e568492001bc476fb09e5b2e6b/src/antq/report/edn.clj
clojure
Convert a record to just a map NOTE Add diff-url for backward compatibility
(ns antq.report.edn (:require [antq.report :as report])) (defmethod report/reporter "edn" [deps _options] (->> deps (map #(merge {} %)) (map #(assoc % :diff-url (:changes-url %))) (pr-str) (println)))
9facb518cfcdb95f99f0c96280bdaabcb3dafcd819a13f5dccd5aeb1d767a751
avsm/platform
chaoticIteration.mli
(**************************************************************************) (* *) : a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and (* ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/ocamlgraph.1.8.8%2Bdune/src/chaoticIteration.mli
ocaml
************************************************************************ This software is free software; you can redistribute it and/or described in file LICENSE....
: a generic graph library for OCaml Copyright ( C ) 2004 - 2010 , and modify it under the terms of the GNU Library General Public License version 2.1 , with the special exception on linking Copyrig...
ca13a580e63fd3733485a2e16698253fa27ce22e67c8d6ac0aa9bb2285db8321
jrm-code-project/LISP-Machine
character.lisp
-*- Mode : LISP ; Package : SI ; Cold - Load : T ; : CL ; ; Lowercase : T -*- ;;; Character functions and variables. ; character lossage of the most complete kind (defconstant char-code-limit #o400 "Character code values must be less than this.") (defconstant char-font-limit #o400 "Font codes in characters mu...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/sys2/character.lisp
lisp
Package : SI ; Cold - Load : T ; : CL ; ; Lowercase : T -*- Character functions and variables. character lossage of the most complete kind These are now microcoded (defsubst alpha-char-p (char) (or ( #/A (ldb %%ch-char char) #/Z) ( #/a (ldb %%ch-char char) #/z)))) (defsubst upper-case-p (char) ...
(defconstant char-code-limit #o400 "Character code values must be less than this.") (defconstant char-font-limit #o400 "Font codes in characters must be less than this.") (defconstant char-bits-limit #o20 "All the special bits in a character must be less than this. They are Control, Meta, Super and Hyper.") ...
8f25ba741d7e981839e9fa0c28447ede0172f200bb696cb2adde349694076dff
returntocorp/semgrep
ast_php.ml
, * * Copyright ( C ) 2011 - 2013 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in ...
null
https://raw.githubusercontent.com/returntocorp/semgrep/dcea978347df81cbc8f2c2b49b80c1980f6194cf/languages/php/ast/ast_php.ml
ocaml
*************************************************************************** Prelude *************************************************************************** *************************************************************************** Token (leaves) *****************************************************************...
, * * Copyright ( C ) 2011 - 2013 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in ...
7c767a0a935701e0abd2f928089d50a44b5ecaa8fcd293efc25f905db83be597
juhp/fbrnch
Bump.hs
module Cmd.Bump ( bumpPkgs, ) where import Branches import Common import Common.System import Git import Koji import Package import System.IO.Extra -- FIXME --force FIXME --target FIXME detect rpmautospec and add empty commit bumpPkgs :: Bool -> Maybe CommitOpt -> (BranchesReq,[String]) -> IO () bumpPkgs loc...
null
https://raw.githubusercontent.com/juhp/fbrnch/c724daa9e24a999328c3f7cad0213dafdf8183a8/src/Cmd/Bump.hs
haskell
FIXME --force target FIXME quiet commit?
module Cmd.Bump ( bumpPkgs, ) where import Branches import Common import Common.System import Git import Koji import Package import System.IO.Extra FIXME detect rpmautospec and add empty commit bumpPkgs :: Bool -> Maybe CommitOpt -> (BranchesReq,[String]) -> IO () bumpPkgs local mopt = withPackagesByBranches...
5658eac1e5d0215e2d7da9bb890275d1db4273fca868b9fe64b331e348b7d35f
slindley/effect-handlers
ParameterisedState.hs
-- state using parameterised handlers # LANGUAGE TypeFamilies , NoMonomorphismRestriction , FlexibleContexts , TypeOperators , ScopedTypeVariables # FlexibleContexts, TypeOperators, ScopedTypeVariables #-} import ParameterisedHandlers data Get s = Get instance Op (Get s) where type Para...
null
https://raw.githubusercontent.com/slindley/effect-handlers/39d0d09582d198dd6210177a0896db55d92529f4/Examples/experimental/ParameterisedState.hs
haskell
state using parameterised handlers handle state in the standard way The handleStateWith function generalises handleState to support horizontal composition, either for throwing other effects or for composing with compatible effects such as random choice.
# LANGUAGE TypeFamilies , NoMonomorphismRestriction , FlexibleContexts , TypeOperators , ScopedTypeVariables # FlexibleContexts, TypeOperators, ScopedTypeVariables #-} import ParameterisedHandlers data Get s = Get instance Op (Get s) where type Param (Get s) = () type Return (Get s) ...
01b791c12e9e919d592ad75dfaec4416b712a56ae3db4aa0100697fc2c0e4826
spechub/Hets
ParseAS.hs
# LANGUAGE TupleSections # module OWL2.ParseAS where import Prelude hiding (lookup) import OWL2.AS as AS import Common.AnnoParser (newlineOrEof, commentLine) import Common.IRI hiding (parseIRI) import Common.Parsec import Common.Lexer (getNumber, value, nestCommentOut) import qualified Common.GlobalAnnotations as G...
null
https://raw.githubusercontent.com/spechub/Hets/c27bd92f22f3b92e792eff0adaa3baec9d61c2b1/OWL2/ParseAS.hs
haskell
| Performs an arbitrary lookahead over choices of parsers # Basic constructs | Parses a comment | Skips trailing whitespaces and comments | Parses plain string with skip | Parses a full iri | rfc3987 plus '+' from scheme (scheme does not allow the dots) | Parses an abbreviated or full iri # Entities, Literals,...
# LANGUAGE TupleSections # module OWL2.ParseAS where import Prelude hiding (lookup) import OWL2.AS as AS import Common.AnnoParser (newlineOrEof, commentLine) import Common.IRI hiding (parseIRI) import Common.Parsec import Common.Lexer (getNumber, value, nestCommentOut) import qualified Common.GlobalAnnotations as G...
cb8cea1d77d4a354285424ae00b7c005b39106930dcd9adb400fa2a4ac0f7136
yzh44yzh/practical_erlang
mylib_worker.erl
-module(mylib_worker). -behavior(gen_server). -export([start_link/0, get_version/0, get_modules/0, get_min_val/0, get_connection_timeout/0, all_apps/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
null
https://raw.githubusercontent.com/yzh44yzh/practical_erlang/c9eec8cf44e152bf50d9bc6d5cb87fee4764f609/13_application/exercise/src/mylib_worker.erl
erlang
-module(mylib_worker). -behavior(gen_server). -export([start_link/0, get_version/0, get_modules/0, get_min_val/0, get_connection_timeout/0, all_apps/0]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
a9507e4dbe1ec744425b8d15120235a056048efe1cd0ec836bbca10d1c819ac6
karimarttila/clojure
config.clj
(ns simpleserver.util.config (:require [aero.core :as aero] [clojure.java.io :as io])) ;; clj-kondo requires this? (defn create-config [] (aero/read-config (io/resource "config.edn"))) ;; Commented out for clj-kondo ;; Testing locally. #_(comment (def config (cre...
null
https://raw.githubusercontent.com/karimarttila/clojure/ee1261b9a8e6be92cb47aeb325f82a278f2c1ed3/webstore-demo/re-frame-demo/src/clj/simpleserver/util/config.clj
clojure
clj-kondo requires this? Commented out for clj-kondo Testing locally.
(ns simpleserver.util.config (:require [aero.core :as aero] (defn create-config [] (aero/read-config (io/resource "config.edn"))) #_(comment (def config (create-config)) (def table-name "session") (def my-env :dev) (def my-table-prefix "ss") )
9e9c89c914ee51670a65eea8f30b98d54497e410f137deb24baf2f55c1085cec
juxtin/clj-bob
lang.clj
(ns clj-bob.lang (:refer-clojure :exclude [atom cons + < num if]) (:require [clojure.string :as str])) (defn if-nil [q a e] (if (or (nil? q) (= 'nil q)) (e) (a))) (defn if [Q A E] (if-nil Q (fn [] A) (fn [] E))) (defrecord Pair [car cdr]) (defmethod print-method Pair [...
null
https://raw.githubusercontent.com/juxtin/clj-bob/daec6cae0582e9bb4a72153e97f01fab5872ed1f/src/clj_bob/lang.clj
clojure
this is a bit different
(ns clj-bob.lang (:refer-clojure :exclude [atom cons + < num if]) (:require [clojure.string :as str])) (defn if-nil [q a e] (if (or (nil? q) (= 'nil q)) (e) (a))) (defn if [Q A E] (if-nil Q (fn [] A) (fn [] E))) (defrecord Pair [car cdr]) (defmethod print-method Pair [...
0682241e1480796801caa572d6bc9cc343975ae48d530719843bba1b23f5fa46
kitnil/dotfiles
dotfiles.scm
(use-modules (packages containers) (packages kubernetes) (packages networking)) (packages->manifest (list cisco plumber k3d k9s kompose kubectl kubernetes-helm nerdctl virtctl))
null
https://raw.githubusercontent.com/kitnil/dotfiles/68c67af0cbaa7f56f3e53f660f7e3b46e6d3fb4e/dotfiles/manifests/dotfiles.scm
scheme
(use-modules (packages containers) (packages kubernetes) (packages networking)) (packages->manifest (list cisco plumber k3d k9s kompose kubectl kubernetes-helm nerdctl virtctl))
41f6f42a4460c026a280dbde9405f87aa4a0dacd837d688b40b0cdb34f035f40
avsm/mirage-duniverse
tcptimer.mli
* Copyright ( c ) 2012 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/tcpip/src/tcp/tcptimer.mli
ocaml
* Copyright ( c ) 2012 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
115cd7e38aa11596c46d2ebaf3c18d2b1729a1e68810fe3da6a76c689e54e1e4
debasishg/hask
Service.hs
-- | All service-related functions. module Lib.Service ( module Service ) where import Lib.Service.AccountService as Service (AccountService (..))
null
https://raw.githubusercontent.com/debasishg/hask/1745ed50c8175cd035e8070c9cb988f4f5063653/h3layer/src/Lib/Service.hs
haskell
| All service-related functions.
module Lib.Service ( module Service ) where import Lib.Service.AccountService as Service (AccountService (..))
db416a063be971c5827c9d52838b7c0b18972dca0eda900ef6b9434fb2ac762f
alesaccoia/festival_flinger
ogi_aec_diphone.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<--OHSU-->;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; Oregon Health & Science University ; ; Division of Biomedical Computer Science ; ; ...
null
https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/lib/voices/english/ogi_aec_diphone/festvox/ogi_aec_diphone.scm
scheme
<--OHSU-->;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ; ; ; ; ; ;; ; release of the Festival TTS system. ;; ...
OGI AEC diphones : male American English collected May 1997 (set! ogi_aec_diphone_dir (cdr (assoc 'ogi_aec_diphone voice-locations))) (set! load-path (cons (path-append ogi_aec_diphone_dir "festvox") load-path)) (set! load-path (cons (path-append libdir "ogi") load-path)) (require 'ogi_configure_voice) (define ...
d2aef96194b2e5a861a7f58525e6fe3718ad328b8d907a9367c287dc7f0310e1
ayato-p/mokuhan
renderer_test.cljc
(ns org.panchromatic.mokuhan.renderer-test (:require [clojure.test :as t] [org.panchromatic.mokuhan.renderer :as sut] [org.panchromatic.mokuhan.ast :as ast])) (def ^:private delimiters {:open "{{" :close "}}"}) (t/deftest render-escaped-variable-test (t/testing "Single path" (let [v ...
null
https://raw.githubusercontent.com/ayato-p/mokuhan/8f6de17b5c4a3712aa83ba4f37234de86f3c630b/test/org/panchromatic/mokuhan/renderer_test.cljc
clojure
(ns org.panchromatic.mokuhan.renderer-test (:require [clojure.test :as t] [org.panchromatic.mokuhan.renderer :as sut] [org.panchromatic.mokuhan.ast :as ast])) (def ^:private delimiters {:open "{{" :close "}}"}) (t/deftest render-escaped-variable-test (t/testing "Single path" (let [v ...
6f4947175e9394e316d0b7679bf7a33f69138a679b5146778f63f7a99cfa0bf6
monadbobo/ocaml-core
test.ml
type t = {foo:int ; bar : int ; baz : int} with compare
null
https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/compare/sample_output/test.ml
ocaml
type t = {foo:int ; bar : int ; baz : int} with compare
957195459c8ca38faaab9927d168140725b48dd661f7e529ea9bcc5c468f3a9f
nikomatsakis/a-mir-formality
wf--outlives.rkt
#lang racket (require redex/reduction-semantics "../../util.rkt" "../grammar.rkt" "../prove.rkt" "../libcore.rkt" ) (module+ test (redex-let* formality-rust [(Rust/Program (term ([(crate C { (struct Ref[(type T) (lifetime a)] ...
null
https://raw.githubusercontent.com/nikomatsakis/a-mir-formality/71be4d5c4bd5e91d326277eaedd19a7abe3ac76a/racket-src/rust/test/wf--outlives.rkt
racket
key point here: requires proving `A : 'b`, but that's implied by imply a connection between `A` and `b`
#lang racket (require redex/reduction-semantics "../../util.rkt" "../grammar.rkt" "../prove.rkt" "../libcore.rkt" ) (module+ test (redex-let* formality-rust [(Rust/Program (term ([(crate C { (struct Ref[(type T) (lifetime a)] ...
fee5dd349e94e0dde694da8c30a7cf772f3e9ce5ed542303f2d7e7c307f81b2c
sKabYY/palestra
p68.scm
(load "stream.scm") ; Don't run this file!!! (define (wrong-pairs s t) (interleave (stream-map-n (lambda (x) (list (stream-car s) x)) t) (wrong-pairs (stream-cdr s) (stream-cdr t)))) ;(define hehe (wrong-pairs integers integers)) ;(stream-for-n println hehe 10) (display (stream-car (wrong-pairs...
null
https://raw.githubusercontent.com/sKabYY/palestra/0906cc3a1fb786093a388d5ae7d59120f5aae16c/old1/sicp/3/p68.scm
scheme
Don't run this file!!! (define hehe (wrong-pairs integers integers)) (stream-for-n println hehe 10)
(load "stream.scm") (define (wrong-pairs s t) (interleave (stream-map-n (lambda (x) (list (stream-car s) x)) t) (wrong-pairs (stream-cdr s) (stream-cdr t)))) (display (stream-car (wrong-pairs integers integers) ))(newline)
e002d82651e9e1a5af85311d7c0681f286cb3e21d431075194beea685fc86366
sealchain-project/sealchain
Swagger.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeFamilies #-} # LANGUAGE UndecidableInstances # # LANGUAGE ViewPatterns ...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/wallet/src/Cardano/Wallet/API/V1/Swagger.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE QuasiQuotes # # LANGUAGE RankNTypes # # LANGUAGE TypeFamilies # Helper functions | Surround a Text with another | Display a multi-line code-block inline (e.g. in tables) | Drill in the 'Swagger' file in an unsafe way to modify a specific oper...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE UndecidableInstances # # LANGUAGE ViewPatterns # # OPTIONS_GHC -fno - warn - orphans # module Cardano.Wallet.API.V1.Swagger where import Universum hiding (get, put) import C...
418f2e4a28c1eee5c23b1e2879f3f0f450980f61b7b287beb97fcf50477102db
arenadotio/pgx
test_pgx_value_core.ml
open Core_kernel module Value = Pgx_value_core let time_roundtrip str = Value.of_string str |> Value.to_time_exn let printer = Time.to_string_abs ~zone:Time.Zone.utc let time_testable = Alcotest.testable (fun ppf t -> Format.pp_print_string ppf (printer t)) Time.equal ;; let check_time = Alcotest.check time_testab...
null
https://raw.githubusercontent.com/arenadotio/pgx/8d5ca02213faa69e692c5d0dc3e81408db3774a1/pgx_value_core/test/test_pgx_value_core.ml
ocaml
open Core_kernel module Value = Pgx_value_core let time_roundtrip str = Value.of_string str |> Value.to_time_exn let printer = Time.to_string_abs ~zone:Time.Zone.utc let time_testable = Alcotest.testable (fun ppf t -> Format.pp_print_string ppf (printer t)) Time.equal ;; let check_time = Alcotest.check time_testab...
8d35a45e41a48d54970a4d4b22cc2ddb8b1634a954206029ec680281a4a49f75
bytekid/mkbtt
codeTree.ml
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * 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 3 of the License , or (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mkbtt/termindexing/codeTree.ml
ocaml
* Term indexing using code trees ** OPENS ******************************************************************* ** EXCEPTIONS ********************************************************* ** MODULES ************************************************************ ** SUBMODULES ***************************************************...
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * 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 3 of the License , or (...
2d15462f3dfb7abb6a87dfbb0692273cd9c76cdfcae05b89b48377f7c0244d7c
haskellari/indexed-traversable
GhcList.hs
{-# LANGUAGE CPP #-} #if MIN_VERSION_base(4,17,0) {-# LANGUAGE Safe #-} #elif __GLASGOW_HASKELL__ >= 702 # LANGUAGE Trustworthy # #endif module GhcList ( build, ) where #if MIN_VERSION_base(4,17,0) import GHC.List (build) #else import GHC.Exts (build) #endif
null
https://raw.githubusercontent.com/haskellari/indexed-traversable/8403a52163e5b8f3ec32a2846b53ccc2e8088a6f/indexed-traversable/src/GhcList.hs
haskell
# LANGUAGE CPP # # LANGUAGE Safe #
#if MIN_VERSION_base(4,17,0) #elif __GLASGOW_HASKELL__ >= 702 # LANGUAGE Trustworthy # #endif module GhcList ( build, ) where #if MIN_VERSION_base(4,17,0) import GHC.List (build) #else import GHC.Exts (build) #endif
5f4bf801f0e07c26630f9b98714dcb90238998b8f63796e2642b954c933544e2
alanz/ghc-exactprint
SH_Overlap9.hs
# OPTIONS_GHC -fwarn - safe # # LANGUAGE FlexibleInstances # -- | Same as `SH_Overlap6`, but now we are inferring safety. Should be inferred -- unsafe due to overlapping instances at call site `f`. module SH_Overlap9 where import SH_Overlap9_A instance C [a] where f _ = "[a]" test :: String test = f ([1,2,3,4...
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/SH_Overlap9.hs
haskell
| Same as `SH_Overlap6`, but now we are inferring safety. Should be inferred unsafe due to overlapping instances at call site `f`.
# OPTIONS_GHC -fwarn - safe # # LANGUAGE FlexibleInstances # module SH_Overlap9 where import SH_Overlap9_A instance C [a] where f _ = "[a]" test :: String test = f ([1,2,3,4] :: [Int])
85cccff35599098082d332fcc983d93f978779fc63b43311cca246dda1f99ee0
janestreet/async_rpc_kernel
rpc_metadata.mli
* Metadata is arbitrary information provided by a caller along with the query . It is opaque to the Async RPC protocol , and may not be present on all queries . Metadata should generally be small , middleware - provided data that does not affect the callee 's behavior ( e.g. tracing ids ) . It may be ...
null
https://raw.githubusercontent.com/janestreet/async_rpc_kernel/541fb417b39fad5c930ac73b729a7aaf59bd1001/src/rpc_metadata.mli
ocaml
* Metadata is arbitrary information provided by a caller along with the query . It is opaque to the Async RPC protocol , and may not be present on all queries . Metadata should generally be small , middleware - provided data that does not affect the callee 's behavior ( e.g. tracing ids ) . It may be ...
6771c3d64b28efe1bd2eead1a00e0d49576f11f430ff39602d538a7c8f4d162a
pqwy/notty
notty_top_init.ml
Copyright ( c ) 2017 . All rights reserved . See LICENSE.md . See LICENSE.md. *) open Notty;; #install_printer Notty.Render.pp_image;; #install_printer Notty.Render.pp_attr;;
null
https://raw.githubusercontent.com/pqwy/notty/389366c023396017aa21efcdbb07ade5ba0974c5/src/notty_top_init.ml
ocaml
Copyright ( c ) 2017 . All rights reserved . See LICENSE.md . See LICENSE.md. *) open Notty;; #install_printer Notty.Render.pp_image;; #install_printer Notty.Render.pp_attr;;
c6b904a109064fdbcdd47b942a4448d1892030c35f153fa778071da196ef2869
hasktorch/ffi-experimental
Scalar.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Torch.Scalar where import Foreign.ForeignPtr import qualified ATen.Const as ATen import qualified ATen.Managed.Type.Scalar as ATen import qualified ATen.Type as ATen import ATen.Managed.Cast import ATen.Class (Cast...
null
https://raw.githubusercontent.com/hasktorch/ffi-experimental/54192297742221c4d50398586ba8d187451f9ee0/hasktorch/src/Torch/Scalar.hs
haskell
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module Torch.Scalar where import Foreign.ForeignPtr import qualified ATen.Const as ATen import qualified ATen.Managed.Type.Scalar as ATen import qualified ATen.Type as ATen import ATen.Managed.Cast import ATen.Class (Cast...
e8e44553c6bc715e30d1f0cfe4aee8dba9a3f8964713f76f40af4bf96db3856f
threatgrid/ctia
crud.clj
(ns ctia.stores.es.crud (:require [clojure.set :as set] [clojure.string :as string] [clojure.tools.logging :as log] [ctia.domain.access-control :as ac :refer [allow-read? allow-write? restricted-read?]] [ctia.lib.pagination :refer [list-response-schema]] [ctia.schemas.core :refer [SortExtension ...
null
https://raw.githubusercontent.com/threatgrid/ctia/6c11ba6a7c57a44de64c16601d3914f5b0cf308e/src/ctia/stores/es/crud.clj
clojure
Add partial results to the exception data map
(ns ctia.stores.es.crud (:require [clojure.set :as set] [clojure.string :as string] [clojure.tools.logging :as log] [ctia.domain.access-control :as ac :refer [allow-read? allow-write? restricted-read?]] [ctia.lib.pagination :refer [list-response-schema]] [ctia.schemas.core :refer [SortExtension ...
1474dc7693ddebbfcbd686f2889a6603019a6cd4face2891224b437c797d7c3a
argp/bap
bench_map.ml
cd .. & & ocamlbuild benchsuite / bench_map.native & & _ build / benchsuite / bench_map.native (* The purpose of this test is to compare different implementation of the Map associative data structure. *) let total_length = 500_000 let (%) = BatPervasives.(%) module MapBench (M : sig val input_length : int end)...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/benchsuite/bench_map.ml
ocaml
The purpose of this test is to compare different implementation of the Map associative data structure. A benchmark for key insertion A benchmark for fast import A benchmark for key lookup A benchmark for key removal A benchmark for merging compare fold-based and merge-based union, diff, intersect
cd .. & & ocamlbuild benchsuite / bench_map.native & & _ build / benchsuite / bench_map.native let total_length = 500_000 let (%) = BatPervasives.(%) module MapBench (M : sig val input_length : int end) = struct let input_length = M.input_length let nb_iter = max 10 (total_length / input_length) let (...
679d955390e90fde7e78b0a061ac74e3c7b9e356f35d688d8edc4745799d3804
Oblosys/proxima
SemHsTokens.hs
UUAGC 0.9.10 ( SemHsTokens.ag ) module SemHsTokens where import qualified Data.Sequence as Seq import Data.Sequence(Seq,empty,singleton,(><)) import Data.Foldable(toList) import Pretty import TokenDef import HsToken import ErrorMessages import CommonTypes import UU.Scanner.Position(Pos) isNTname allnts (Just (...
null
https://raw.githubusercontent.com/Oblosys/proxima/f154dff2ccb8afe00eeb325d9d06f5e2a5ee7589/uuagc/src-derived/SemHsTokens.hs
haskell
--------------------------------------------------- cata semantic domain copy rule (from local) -------------------------------------------------- cata semantic domain copy rule (down) copy rule (down) copy rule (down) copy rule (down) copy rule (down) copy rule (down) copy rule (down) copy rule (down) co...
UUAGC 0.9.10 ( SemHsTokens.ag ) module SemHsTokens where import qualified Data.Sequence as Seq import Data.Sequence(Seq,empty,singleton,(><)) import Data.Foldable(toList) import Pretty import TokenDef import HsToken import ErrorMessages import CommonTypes import UU.Scanner.Position(Pos) isNTname allnts (Just (...
9f01966b071397927bcb7d951499d0e2382d81176ce11c2fd6eaa3a32be64223
alex-gutev/tridash
macros.lisp
macros.lisp ;;;; ;;;; Tridash Programming Language. Copyright ( C ) 2019 - 2021 ;;;; ;;;; 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 you...
null
https://raw.githubusercontent.com/alex-gutev/tridash/c7dbb36efe32a14ad9c4484ed45b1000e2f7132e/test/macros.lisp
lisp
Tridash Programming Language. This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO...
macros.lisp Copyright ( C ) 2019 - 2021 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 Public License (defpackage :tridash/test.macros (:use :generic-cl ...
52096dd415375980c51bdb241c422076cda95fd89885d7a1deae03274dfa66d3
cstar/ec2nodefinder
awssign.erl
-module(awssign). -author(''). -include_lib("xmerl/include/xmerl.hrl"). -export([sign_and_send/5, describe_instances/5]). sign_and_send(Params, Host,APIVersion, AccessKey, SecretKey)-> SortedParams = sort([{"Timestamp", create_timestamp()}, {"SignatureVersion", "2"}, ...
null
https://raw.githubusercontent.com/cstar/ec2nodefinder/42534509b88120d5581ad4a4e822bb806f3b950f/src/awssign.erl
erlang
lifted from lifted from the ever precious yaws_utils.erl FIXME: more.. , X, Y | url_encode(T)];
-module(awssign). -author(''). -include_lib("xmerl/include/xmerl.hrl"). -export([sign_and_send/5, describe_instances/5]). sign_and_send(Params, Host,APIVersion, AccessKey, SecretKey)-> SortedParams = sort([{"Timestamp", create_timestamp()}, {"SignatureVersion", "2"}, ...
bc49153ea403dca985ea28d8ecf0e5ce1fa3402b9e79b81628f06680e6d03f53
gentoo-haskell/hackport
Host.hs
module Portage.Host ( getInfo -- :: IO [(String, String)] , LocalInfo(..) ) where import Util (run_cmd) import qualified Data.List.Split as DLS import Data.Maybe (fromJust, isJust, mapMaybe) import qualified System.Directory as D import System.FilePath ((</>)) import System.IO data LocalInfo = L...
null
https://raw.githubusercontent.com/gentoo-haskell/hackport/61baf96390e7ddc071f9a49fc78919683988c0ca/src/Portage/Host.hs
haskell
:: IO [(String, String)] relative to home dir ------------------------ fastest: config reading ------------------------ -------- Paludis -------- ------- Emerge ------- but maybe no hsRepo defined yet. init: kill newline char
module Portage.Host , LocalInfo(..) ) where import Util (run_cmd) import qualified Data.List.Split as DLS import Data.Maybe (fromJust, isJust, mapMaybe) import qualified System.Directory as D import System.FilePath ((</>)) import System.IO data LocalInfo = LocalInfo { distfiles_dir :: String ...
7e45d3afedd144feee769d4d2d1e918df0da9d7a490075a9bf08f7bd1b16e4dc
ghcjs/jsaddle-dom
ConvolverNode.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.ConvolverNode (setBuffer, getBuffer, getBufferUnsafe, getBufferUnchecked, setNormalize, getNormalize, Convo...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/ConvolverNode.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.ConvolverNode (setBuffer, getBuffer, getBufferUnsafe, getBufferUnchecked, setNormalize, getNormalize, ConvolverNode(..), gTypeConvolverNode) where import Prelude ((.), (==), (>>=), return, IO, Int, F...
238edc5ab7a83ebe55c5f21ab46c7d5b18764a38ae8a2a9fc3e37b27511d2e31
realark/vert
game-scene.lisp
(in-package :recurse.vert) @export-class (defclass game-scene (scene gl-pipeline) ((scene-background :initform nil :initarg :background :type scene-background :accessor scene-background) (scene-audio-state :initform nil :document...
null
https://raw.githubusercontent.com/realark/vert/6b1938be9084224cf9ce1cfcb71f787f0ac14655/src/scene/game-scene.lisp
lisp
(render-queue-add render-queue overlay) fast path for adding objects outside of scene update (i.e. initialization) (render-queue-remove (slot-value scene 'render-queue) overlay) pre-update frame to mark positions call super update frame TODO: counter is slightly inaccurate because spatial partitions may visit th...
(in-package :recurse.vert) @export-class (defclass game-scene (scene gl-pipeline) ((scene-background :initform nil :initarg :background :type scene-background :accessor scene-background) (scene-audio-state :initform nil :document...
16f37d0f61a1dd10973c1d70eae652e9e4e695b83cb8aeb9e0189cb2bb4bd772
ndmitchell/catch
Blur.hs
module RegExp.Blur(blur) where import RegExp.Type -- the output of blur must be a finite set -- assuming a finite input blur :: (Eq a, Show a) => RegExp a -> RegExp a blur x = f x where f (RegKleene x) = regKleene (f x) f (RegUnion x) = regUnion (map f x) f (RegConcat x) = regConcat (g x)...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/src/RegExp/Blur.hs
haskell
the output of blur must be a finite set assuming a finite input
module RegExp.Blur(blur) where import RegExp.Type blur :: (Eq a, Show a) => RegExp a -> RegExp a blur x = f x where f (RegKleene x) = regKleene (f x) f (RegUnion x) = regUnion (map f x) f (RegConcat x) = regConcat (g x) f x = x g (a : RegKleene b : c) | a == b = g...
6f38c355955756cad424182fdb05b92e563b0b1feff4286292687e994838d2c9
ropas/sparrow
instrumentedMem.ml
(***********************************************************************) (* *) Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . (* All rights reserved...
null
https://raw.githubusercontent.com/ropas/sparrow/3ec055b8c87b5c8340ef3ed6cde34f5835865b31/src/domain/instrumentedMem.ml
ocaml
********************************************************************* All rights reserved. See the LICENSE file for details. ...
Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . This software is distributed under the term of the BSD license . module type S = sig include MapDom.CPO module Access : Access.S with type Loc.t = A.t and type...
02dd07a645cc9e530baec9c86afa0826065c0687915f626790bb9d08de33a90d
apache/couchdb-mochiweb
mochiweb_websocket_tests.erl
-module(mochiweb_websocket_tests). -author(''). The MIT License ( MIT ) Copyright ( c ) 2012 Zadane.pl sp . %% 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 , ...
null
https://raw.githubusercontent.com/apache/couchdb-mochiweb/fce80ef5e2c105405a39d3cdf4615f21e0d1d734/test/mochiweb_websocket_tests.erl
erlang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice an...
-module(mochiweb_websocket_tests). -author(''). The MIT License ( MIT ) Copyright ( c ) 2012 Zadane.pl sp . in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Sof...
ad0c2e6c0fa094fe033c197f80346df8bac985220b3467aa53920dafb8550612
naoto-ogawa/h-xproto-mysql
NodeSession.hs
| module : Database . MySQLX.NodeSession description : Session management copyright : ( c ) , 2017 license : MIT maintainer : stability : experimental portability : Session ( a.k.a . Connection ) module : Database.MySQLX.NodeSession description : Session management copy...
null
https://raw.githubusercontent.com/naoto-ogawa/h-xproto-mysql/1eacd6486c99b849016bf088788cb8d8b166f964/src/DataBase/MySQLX/NodeSession.hs
haskell
* Message * Session Infomation * Node Session * Session Management * Transaction * Expectation * Helper functions * Internal Use Only general, standard library protocol buffer library generated library my library ----------------------------------------------------------------------------- ----------...
| module : Database . MySQLX.NodeSession description : Session management copyright : ( c ) , 2017 license : MIT maintainer : stability : experimental portability : Session ( a.k.a . Connection ) module : Database.MySQLX.NodeSession description : Session management copy...
146dd9da32755c31eb2b8d40877a8ded50fee86dfa05ee58556bc2cf291c02bf
rubenbarroso/EOPL
3_34.scm
(load "/Users/ruben/Dropbox/EOPL/src/interps/r5rs.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/define-datatype.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/sllgen.scm") (define-datatype environment nameless-environment? (empty-nameless-env-record) (extended-nameless-env-record (vals vector?) (e...
null
https://raw.githubusercontent.com/rubenbarroso/EOPL/f9b3c03c2fcbaddf64694ee3243d54be95bfe31d/src/chapter3/3_34.scm
scheme
> (apply-nameless-env (extend-nameless-env-recursively '(even odd) '((var-exp h) (var-exp j)) (extend-nameless-env (empty-nameless-env))) helpers the interpreter Helper procedures from exercise 1.31 > (lexical-address-calc (scan&parse "letrec in (odd 13)")) (a-program ...
(load "/Users/ruben/Dropbox/EOPL/src/interps/r5rs.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/define-datatype.scm") (load "/Users/ruben/Dropbox/EOPL/src/interps/sllgen.scm") (define-datatype environment nameless-environment? (empty-nameless-env-record) (extended-nameless-env-record (vals vector?) (e...
ad9c4785c7b740ba34b9f2dc0d64d14cbfdc8c0ec6ff040bd568e927bec1d9cd
jappeace/awesome-project-name
frontend.hs
module Main where import qualified Awe.Front.Main as App import Reflex.Dom main :: IO () main = mainWidget $ App.main $ App.IniState Nothing
null
https://raw.githubusercontent.com/jappeace/awesome-project-name/e80a52dc2673c748a922ec19945cf75368aa3a53/frontend/app/frontend.hs
haskell
module Main where import qualified Awe.Front.Main as App import Reflex.Dom main :: IO () main = mainWidget $ App.main $ App.IniState Nothing
0b661532ff59e0c8aa19c3913ebeb1f8d4a5a1d3f696805485357057203940b2
haskell-gi/gi-gtk-examples
FastDraw.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # {-# OPTIONS -O #-} -- Example of an drawing graphics onto a canvas. import Control.Applicative import Prelude import Data.IORef import Graphics.Rendering.Cairo import Foreign (allocaArray) import Graphics.Rendering.Cairo.T...
null
https://raw.githubusercontent.com/haskell-gi/gi-gtk-examples/4c4f06dc91fbb9b9f50cdad295c8afe782e0bdec/fastdraw/FastDraw.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS -O # Example of an drawing graphics onto a canvas. print blue unchecked indexing arrange for the canvas to be redrawn now that we've changed update the blue state ready for next time Than it is at optimising loops like this: > sequence_ [ do ... do the action for [fr...
# LANGUAGE PatternSynonyms # # LANGUAGE ScopedTypeVariables # import Control.Applicative import Prelude import Data.IORef import Graphics.Rendering.Cairo import Foreign (allocaArray) import Graphics.Rendering.Cairo.Types (Cairo(..), PixelData) import Foreign.Storable (Storable(..)) import Foreign.C (CUChar) import qua...
3ccad40dd1db3c7b2e9ee962c405a8f537247873317933be62d5a75a48ee543c
spell-music/csound-expression
Pretty.hs
module Csound.Dynamic.Render.Pretty( Doc, vcatSep, ppCsdFile, ppGen, ppNotes, ppInstr, ppStmt, ppTotalDur, PrettyE(..), PrettyShowE(..), ppE ) where import Control.Monad.Trans.State.Strict import qualified Data.IntMap as IM import Text.PrettyPrint.Leijen.Text import Csound.Dynamic.Types import Csound....
null
https://raw.githubusercontent.com/spell-music/csound-expression/345df2c91c9831dd895f58951990165598504814/csound-expression-dynamic/src/Csound/Dynamic/Render/Pretty.hs
haskell
ElseIfBegin a -> left >> (succTab $ text "elseif " <> ppCond a <> text " then") x -> error $ "unknown expression: " ++ show x pp macros pp arrays ----------------------------------- expressions booleans numeric ------------------------------------------------------------ debug
module Csound.Dynamic.Render.Pretty( Doc, vcatSep, ppCsdFile, ppGen, ppNotes, ppInstr, ppStmt, ppTotalDur, PrettyE(..), PrettyShowE(..), ppE ) where import Control.Monad.Trans.State.Strict import qualified Data.IntMap as IM import Text.PrettyPrint.Leijen.Text import Csound.Dynamic.Types import Csound....
3e249bf493c1ef45a931b1c5e58252c2274a7b8ef6ee58e09ad1ff3a8a392510
clash-lang/clash-compiler
PatError.hs
module PatError where import Prelude topEntity :: Maybe Int -> Int topEntity (Just x) = x
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/Basic/PatError.hs
haskell
module PatError where import Prelude topEntity :: Maybe Int -> Int topEntity (Just x) = x
1183936d161e464928944a8c3599ab205acb38e27c191c9a3312d98b1103bce9
klajo/hacks
beam_renamer_tests.erl
%%%------------------------------------------------------------------- %%% @doc Test {@link beam_renamer}. @author ( ) %%% @end %%%------------------------------------------------------------------- -module(beam_renamer_tests). -include_lib("eunit/include/eunit.hrl"). replaces_in_atom_table_test() -> 'x^' = ...
null
https://raw.githubusercontent.com/klajo/hacks/80afdad130b9b914d410cb382ebb1b6ee1236e94/beam/test/beam_renamer_tests.erl
erlang
------------------------------------------------------------------- @doc Test {@link beam_renamer}. @end -------------------------------------------------------------------
@author ( ) -module(beam_renamer_tests). -include_lib("eunit/include/eunit.hrl"). replaces_in_atom_table_test() -> 'x^' = run_literal(x, 'x^', x). replaces_in_constant_pool_test() -> ['x^'] = run_literal(x, 'x^', [x]), ['x^', 'x^'] = run_literal(x, 'x^', [x, x]), {'x^', 'x^'} = run_literal...
3e8a841b1a590d0222f030e46885e26f247f3f9885e2f2c7d02e171facb46a0e
Lysxia/generic-data
Prelude.hs
# LANGUAGE FlexibleContexts # -- | Generic deriving for standard classes in base -- -- === Warning -- -- This is an internal module: it is not subject to any versioning policy, -- breaking changes can happen at any time. -- -- If something here seems useful, please report it or create a pull request to -- export it fr...
null
https://raw.githubusercontent.com/Lysxia/generic-data/846fafb9ec1e4e60424e4f266451665fe25fdfa9/src/Generic/Data/Internal/Prelude.hs
haskell
| Generic deriving for standard classes in base === Warning This is an internal module: it is not subject to any versioning policy, breaking changes can happen at any time. If something here seems useful, please report it or create a pull request to export it from an external module. @ ('==') = 'geq' @ ...
# LANGUAGE FlexibleContexts # module Generic.Data.Internal.Prelude where import Control.Applicative (liftA2, Alternative(..)) import Data.Function (on) import Data.Functor.Classes import Data.Semigroup import GHC.Generics import Generic.Data.Internal.Utils (from', to', liftG2) * ' ' | Generic instance ' ...
b3a1dcdaf55a70a28bc1b23a9a68ef333dda5c9779984e25eb61316b079a3c7e
williamleferrand/accretio
core_invite.ml
(* * core - invite * * * *) open Lwt open Printf open CalendarLib open Api open Eliom_content.Html5 open Eliom_content.Html5.D open Message_parsers let has_already_declined = sprintf "core-invite-has-already-declined-%d" let tag_timer_reminder = sprintf "core-invite-reminded-%d" let key_email_anchor = sprin...
null
https://raw.githubusercontent.com/williamleferrand/accretio/394f855e9c2a6a18f0c2da35058d5a01aacf6586/playbooks/core_invite.ml
ocaml
* core - invite * * * check if the member hasn't declined already
open Lwt open Printf open CalendarLib open Api open Eliom_content.Html5 open Eliom_content.Html5.D open Message_parsers let has_already_declined = sprintf "core-invite-has-already-declined-%d" let tag_timer_reminder = sprintf "core-invite-reminded-%d" let key_email_anchor = sprintf "core-invite-anchor-%d" let in...
6b79bf8204c2560a98fd1b57438c1c67a852a1f6bdfc379cf3ec924ba2c70262
LaurentRDC/pandoc-plot
Prelude.hs
{-# LANGUAGE OverloadedStrings #-} -- | -- Module : $header$ Copyright : ( c ) , 2019 - present License : GNU GPL , version 2 or above -- Maintainer : -- Stability : internal -- Portability : portable -- -- Prelude for renderers, containing some helpful utilities. module Text.Pandoc.Filter.Pl...
null
https://raw.githubusercontent.com/LaurentRDC/pandoc-plot/933daba593196bf3b1ae1f2022d17389552f275c/src/Text/Pandoc/Filter/Plot/Renderers/Prelude.hs
haskell
# LANGUAGE OverloadedStrings # | Module : $header$ Maintainer : Stability : internal Portability : portable Prelude for renderers, containing some helpful utilities. | A shortcut to append capture script fragments to scripts | R paths use the '/' path separator
Copyright : ( c ) , 2019 - present License : GNU GPL , version 2 or above module Text.Pandoc.Filter.Plot.Renderers.Prelude ( module Prelude, module Text.Pandoc.Filter.Plot.Monad, Text, st, unpack, findExecutable, appendCapture, toRPath, ) where import Data.Text (Text, ...
eb2259778274d44093ba70d8ba8192f57d237cb82c1d2726aae5f7cd0b2b8a8f
rob7hunter/leftparen
loc.scm
;; how much code have you written? #lang scheme/base (require "util.scm") (provide loc) ;; counts all lines except for comment lines and blank lines (define (loc #:comment-chars (comment-chars (list #\;)) . filenames) (fold + 0 (map (lambda (filename) (file-line-fold (lambda ...
null
https://raw.githubusercontent.com/rob7hunter/leftparen/169c896bda989b6a049fe49253a04d6f8b62402b/loc.scm
scheme
how much code have you written? counts all lines except for comment lines and blank lines )) . filenames)
#lang scheme/base (require "util.scm") (provide loc) (fold + 0 (map (lambda (filename) (file-line-fold (lambda (line-str total-loc) (let ((trimmed (string-trim-both line-str #\space))) (cond ((string=? trimmed "") total-loc) ...
edcbdbbce0fdac8d366b70a28a717a3431f760e7d8d96f0c396af1b9675ca8df
madmax96/brave-clojure-solutions
section_8.clj
(ns clojure-brave.exercises.section-8) setup for exercise 1 (def order-details-validation {:name ["Please enter a name" not-empty] :email ["Please enter an email address" not-empty "Your email address doesn't look like an email address" #(or (empty? %) (re-seq #"@" %))]}) (def order-details-good {:...
null
https://raw.githubusercontent.com/madmax96/brave-clojure-solutions/3be234bdcf3704acd2aca62d1a46fa03463e5735/section_8.clj
clojure
we need if-valid macro in order to implement when-valid in most straightforward way, similar to how 'when' macro from `clojure.core` is implemented in terms of 'if' Should execute both functions Should return false Check expanded forms
(ns clojure-brave.exercises.section-8) setup for exercise 1 (def order-details-validation {:name ["Please enter a name" not-empty] :email ["Please enter an email address" not-empty "Your email address doesn't look like an email address" #(or (empty? %) (re-seq #"@" %))]}) (def order-details-good {:...
335cd37f510fea2c873504bdbf2484f4eec983570939507828c7671f0c5df325
geocaml/ocaml-geojson
geojsone.mli
Copyright ( c ) 2021 - 2022 < > Permission to use , copy , modify , and/or distribute this software for any purpose with or without fee is hereby granted , provided that the above copyright notice and this permission notice appear in all copies . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT W...
null
https://raw.githubusercontent.com/geocaml/ocaml-geojson/1342f4627caa813cd153d5724f73c2fb8f0eac31/src/geojsone/geojsone.mli
ocaml
* [fold_geometry f acc src] is much like {!map_geometry} but allows you to accumulate some result that is then returned to you. * [fold_props f init src] * [iter_props f src] will apply [f] to each feature's properties field.
Copyright ( c ) 2021 - 2022 < > Permission to use , copy , modify , and/or distribute this software for any purpose with or without fee is hereby granted , provided that the above copyright notice and this permission notice appear in all copies . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT W...
bda02469c7de385dfb454449b2e2466c5cdbe512c7de07d562364fffe6bd5f45
acieroid/scala-am
nqueens.scm
(define (one-to n) (letrec ((loop (lambda (i l) (if (= i 0) l (loop (- i 1) (cons i l)))))) (loop n '()))) (define (ok? row dist placed) (if (null? placed) #t (and (not (= (car placed) (+ row dist))) (not (= (car placed) (-...
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/R5RS/gambit/nqueens.scm
scheme
(define (one-to n) (letrec ((loop (lambda (i l) (if (= i 0) l (loop (- i 1) (cons i l)))))) (loop n '()))) (define (ok? row dist placed) (if (null? placed) #t (and (not (= (car placed) (+ row dist))) (not (= (car placed) (-...
a9f730699351ac9802f59db29444d24785563bff66d67a9a0eec9662899ea1a8
haskell/vector
take.hs
import qualified Data.Vector as U import Data.Bits main = print . U.length . U.take 100000 . U.replicate 1000000 $ (7 :: Int)
null
https://raw.githubusercontent.com/haskell/vector/4c87e88f07aad166c6ae2ccb94fa539fbdd99a91/old-testsuite/microsuite/take.hs
haskell
import qualified Data.Vector as U import Data.Bits main = print . U.length . U.take 100000 . U.replicate 1000000 $ (7 :: Int)
d552abab566a0a3f50e8d1787878e8def49d571c4c6be967ef64bece40a65253
cloudant/monic
monic_utils.erl
Copyright 2011 Cloudant %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not %% use this file except in compliance with the License. You may obtain a copy of %% the License at %% %% -2.0 %% %% Unless required by applicable law or agreed to in writing, software distributed under t...
null
https://raw.githubusercontent.com/cloudant/monic/9b7670d53ee40efea57c777f044b3de74c66e6de/src/monic_utils.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitation...
Copyright 2011 Cloudant Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(monic_utils). -export([path/2, exists/2, open/2]). -export([write_term/2, pread_term/2]). -include("monic.hrl"). -define...
9f21b932842b907468e2f9d2612fce45e89c5d990b310af4d7bd5e7d4e7e28d9
incoherentsoftware/defect-process
BubbleProjectile.hs
module Enemy.All.BubbleTurret.BubbleProjectile ( bubbleSpinPath , bubbleExplodePath , mkBubbleProjectile ) where import Control.Monad.IO.Class (MonadIO) import qualified Data.Set as S import Attack import Attack.Projectile import Collision import Configs.All.Enemy import Configs.All.Enemy.BubbleTurret...
null
https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Enemy/All/BubbleTurret/BubbleProjectile.hs
haskell
module Enemy.All.BubbleTurret.BubbleProjectile ( bubbleSpinPath , bubbleExplodePath , mkBubbleProjectile ) where import Control.Monad.IO.Class (MonadIO) import qualified Data.Set as S import Attack import Attack.Projectile import Collision import Configs.All.Enemy import Configs.All.Enemy.BubbleTurret...
be9a2e7955dbf0f7e98f37c1d86c47f5e50fea70b0bd46bda1e799f973b8fbb6
racket/racket7
main.rkt
#lang racket/base (printf "pkg-b first main\n") (exit 42)
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/pkgs/racket-test/tests/pkg/test-pkgs/pkg-b-first/pkg-b/main.rkt
racket
#lang racket/base (printf "pkg-b first main\n") (exit 42)
234b89d41f4977c73e7ed100c381fa1e961cfa8a62cfae3adc0d7444d9778256
clojerl/clojerl
clojerl_Atom_SUITE.erl
-module(clojerl_Atom_SUITE). -include("clojerl.hrl"). -include("clj_test_utils.hrl"). -export([ all/0 , init_per_suite/1 , end_per_suite/1 ]). -export([ deref/1 , swap/1 , reset/1 , compare_and_set/1 , equiv/1 , meta/1 , str/1 , complete...
null
https://raw.githubusercontent.com/clojerl/clojerl/aa35847ca64e1c66224867ca4c31ca6de95bc898/test/clojerl_Atom_SUITE.erl
erlang
------------------------------------------------------------------------------ Test Cases ------------------------------------------------------------------------------
-module(clojerl_Atom_SUITE). -include("clojerl.hrl"). -include("clj_test_utils.hrl"). -export([ all/0 , init_per_suite/1 , end_per_suite/1 ]). -export([ deref/1 , swap/1 , reset/1 , compare_and_set/1 , equiv/1 , meta/1 , str/1 , complete...
61c56175e2501a86f347f6c09b3b349eaac8d9147c2da5ddfaf2b64bf89ea5f1
jellelicht/guix
gnu.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2014 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of the Lice...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/guix/scripts/import/gnu.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2014 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (guix scripts import gnu) #:use-module (guix ui) #:use-module (guix utils) #:use-module (guix...
3808527b4a8541e5865943714d06c824c9f05b816fb0b8e61cc0edc86f522baa
sampou-org/ghc_users_guide_ja
PhasePrograms.hs
module Options.PhasePrograms where import Types phaseProgramsOptions :: [Flag] phaseProgramsOptions = [ flag { flagName = "-pgmL ⟨cmd⟩" , flagDescription = "⟨cmd⟩ を文芸的コードのプリプロセッサとして使う" , flagType = DynamicFlag } , flag { flagName = "-pgmP ⟨cmd⟩" , flagDescription = "...
null
https://raw.githubusercontent.com/sampou-org/ghc_users_guide_ja/91ac4ee4347802bbfc63686cfcbd4fc12f95a584/8.2.2/mkUserGuidePart/Options/PhasePrograms.hs
haskell
module Options.PhasePrograms where import Types phaseProgramsOptions :: [Flag] phaseProgramsOptions = [ flag { flagName = "-pgmL ⟨cmd⟩" , flagDescription = "⟨cmd⟩ を文芸的コードのプリプロセッサとして使う" , flagType = DynamicFlag } , flag { flagName = "-pgmP ⟨cmd⟩" , flagDescription = "...
27cf0ba744fad5994af301dddadbcc762e8e7f814852e58d080e2bfc6b33e369
philopon/apiary
Persist.hs
# LANGUAGE UndecidableInstances # # LANGUAGE OverlappingInstances # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # {-# LANGUAGE Rank2Types #-} # LANGUAGE LambdaCase # # LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} module Web.Apiary.Database.Persist ( Persist -- * initial...
null
https://raw.githubusercontent.com/philopon/apiary/7da306fcbfcdec85d073746968298de4540d7235/apiary-persistent/src/Web/Apiary/Database/Persist.hs
haskell
# LANGUAGE Rank2Types # # LANGUAGE GADTs # * initializer ** low level * query * filter | construct persist extension initializer with no connection pool. example: @ @ | execute sql in action. | filter by sql query. since 0.9.0.0. ^ documentation. ^ result check function. Nothing: fail filter, Just a: suc...
# LANGUAGE UndecidableInstances # # LANGUAGE OverlappingInstances # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # LANGUAGE LambdaCase # # LANGUAGE DataKinds # module Web.Apiary.Database.Persist ( Persist , Migrator(..), With , initPersist, initPersistNoLog ...
9d928bf2be8912124ea0eca64a778884772879aee1238b0a03647238a4db5afb
TrustInSoft/tis-interpreter
zones.mli
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/scope/zones.mli
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
f058a5e6bc7d4a02c9821e136b9dc035fc3816f4f74ca7863c824ee6b1bc14ba
brevis-us/brevis
globals.clj
(ns us.brevis.globals (:import [us.brevis.graphics BrCamera])) (def enable-display-text (atom true)) (def default-gui-state {:fullscreen false : camera ( BrCamera . 300 300 -50 90 -70 45 60 ( / 4 3 ) 0.1 4000 ) : camera ( BrCamera . 300 300 -50 162 -56 0 60 ( / 4 3 ) 0.1 4000 ) :camera (BrCa...
null
https://raw.githubusercontent.com/brevis-us/brevis/de51c173279e82cca6d5990010144167050358a3/src/main/clojure/us/brevis/globals.clj
clojure
:input (BrInput.) -30 (def #^:dynamic *brevis-params* (atom {})) (def #^:dynamic *brevis-state* (atom {}))
(ns us.brevis.globals (:import [us.brevis.graphics BrCamera])) (def enable-display-text (atom true)) (def default-gui-state {:fullscreen false : camera ( BrCamera . 300 300 -50 90 -70 45 60 ( / 4 3 ) 0.1 4000 ) : camera ( BrCamera . 300 300 -50 162 -56 0 60 ( / 4 3 ) 0.1 4000 ) :camera (BrCa...
81f66040c8b28d4d5326c5b2d5cc7fd1b91ba8baa56dde06adf56af7a86cb412
KavehYousefi/Esoteric-programming-languages
types.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; This file serves in the declaration of the globally significant ;; types. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -- Declara...
null
https://raw.githubusercontent.com/KavehYousefi/Esoteric-programming-languages/86116d6045f426dbe74f881b92944ad76df59c68/SOAP/SOAP_001/types.lisp
lisp
This file serves in the declaration of the globally significant types. -- Declaration of types. -- ;; ------------------------------------------------------- ------------------------------------------------------- -----------------------------------------------------...
(deftype list-of (&optional (element-type T)) "The ``list-of'' type defines a list of zero or more elements, each member of which conforms to the ELEMENT-TYPE, defaulting to the comprehensive ``T''." (let ((predicate (gensym))) (declare (type symbol predicate)) (setf (symbol-function predicate) ...
65ee4e700d62c98cfe275cfc749fa26906769e8a07e90b9c30fd72f70fd27002
dizengrong/erlang_game
sales_test.erl
-module (sales_test). -include ("sales.hrl"). -include_lib ("amnesia/include/amnesia.hrl"). -compile ([export_all]). populate() -> amnesia:open({local, sales}, sales), {ok, Cust1} = amnesia:add_new (sales, #customer {customer_code = 102341, ...
null
https://raw.githubusercontent.com/dizengrong/erlang_game/4598f97daa9ca5eecff292ac401dd8f903eea867/gerl/lib/amnesia/examples/sales_test.erl
erlang
-module (sales_test). -include ("sales.hrl"). -include_lib ("amnesia/include/amnesia.hrl"). -compile ([export_all]). populate() -> amnesia:open({local, sales}, sales), {ok, Cust1} = amnesia:add_new (sales, #customer {customer_code = 102341, ...
eafead00353d62cf3f87cb2ce301404270a1b20635a5474485f77056f0028da7
SuzanneSoy/anaphoric
acond-test.rkt
#lang racket (require anaphoric/acond rackunit) (define lst '(x y z a b c)) (define seen 0) ;; With else branch (check-equal? (acond [(member 'a lst) (set! seen (add1 seen)) (check-equal? it '(a b c)) 'seen-01] ...
null
https://raw.githubusercontent.com/SuzanneSoy/anaphoric/c648ec2aad6d2b2ec72acc729143454d1e855cf6/test/acond-test.rkt
racket
With else branch multiple body statements Just else branch Multiple body statements Without else branch No branch Single branch
#lang racket (require anaphoric/acond rackunit) (define lst '(x y z a b c)) (define seen 0) (check-equal? (acond [(member 'a lst) (set! seen (add1 seen)) (check-equal? it '(a b c)) 'seen-01] [(member 'b lst) (f...
235f8bad04cb0fa799bd2d2e5e0ee94427f26199188a1fdbedbbe8c0b24e937e
dyzsr/ocaml-selectml
t330-compact-2.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; Gc.compact ();; let _ = Pervasives.do_at_exit();; * 0 C...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t330-compact-2.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; Gc.compact ();; let _ = Pervasives.do_at_exit();; * 0 C...
1066710e01cdda0f4ce9c743f62c21693a49348e3eff5e199fadcac5b51e17b5
shirok/WiLiKi
rss.scm
;;; wiliki / rss - an ad - hoc RSS generation routine for WiLiKi ;;; Copyright ( c ) 2000 - 2009 < > ;;; ;;; 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 restri...
null
https://raw.githubusercontent.com/shirok/WiLiKi/c910d5d936c833887f7c7bc99e0e681e262b5334/src/wiliki/rss.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of furnished to do so, subject to the following conditions: ...
wiliki / rss - an ad - hoc RSS generation routine for WiLiKi Copyright ( c ) 2000 - 2009 < > files ( the " Software " ) , to deal in the Software without restriction , the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . TH...
c690364e591a5769521efd47dd5cff6c7cde5e8d612327964e51d04b0da6ea9d
tezos-checker/checker
testChecker.ml
open Ctok open Kit open Tok open Lqt open Burrow open OUnit2 open TestLib open CheckerTypes open Fa2Interface open Fa2Ledger open Fa2Implementation open Error open Ptr open LiquidationAuctionTypes open LiquidationAuction let property_test_count = 10000 let qcheck_to_ounit t = OUnit.ounit2_of_ounit1 @@ QCheck_ounit.to_...
null
https://raw.githubusercontent.com/tezos-checker/checker/e4bd0f16aa14e10e8a62b28e85f8c98c388a0a6a/tests/testChecker.ml
ocaml
The starting checker state should satisfy the invariants to begin with. Create some burrows and mint some kit Note: setting the transaction to far in the future to ensure that the protected_index will become adequately high * for the burrows to be liquidatable. Touch burrows Check the expected properties ...
open Ctok open Kit open Tok open Lqt open Burrow open OUnit2 open TestLib open CheckerTypes open Fa2Interface open Fa2Ledger open Fa2Implementation open Error open Ptr open LiquidationAuctionTypes open LiquidationAuction let property_test_count = 10000 let qcheck_to_ounit t = OUnit.ounit2_of_ounit1 @@ QCheck_ounit.to_...
0a8f25532cf0971dde3236b9b47e1c109be42b879b02b5a765e5a27342932666
exercism/common-lisp
affine-cipher.lisp
(defpackage :affine-cipher (:use :cl) (:export :encode :decode)) (in-package :affine-cipher) (defun encode (plaintext a b)) (defun decode (ciphertext a b))
null
https://raw.githubusercontent.com/exercism/common-lisp/4bf94609c7ef0f9ca7ec0b6dca04cc10314cb598/exercises/practice/affine-cipher/affine-cipher.lisp
lisp
(defpackage :affine-cipher (:use :cl) (:export :encode :decode)) (in-package :affine-cipher) (defun encode (plaintext a b)) (defun decode (ciphertext a b))
b7ec84b46d276604ff9a1cdceaf78ec6d78cc1f28205716dd22d9eda14b7ea30
coq/coq
extend.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/f66b58cc7e6a8e245b35c3858989181825c591ce/parsing/extend.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
3bf1a899432101bb7482989a15f22c893ae938fa93801a4d53a8da84702149d2
emanjavacas/cosycat
results_frame.cljs
(ns cosycat.review.components.results-frame (:require [reagent.core :as reagent] [re-frame.core :as re-frame] [react-bootstrap.components :as bs] [cosycat.components :refer [error-panel throbbing-panel]] [cosycat.app-utils :refer [parse-hit-id]] [cosycat.sni...
null
https://raw.githubusercontent.com/emanjavacas/cosycat/a7186363d3c0bdc7b714af126feb565f98793a6e/src/cljs/cosycat/review/components/results_frame.cljs
clojure
(ns cosycat.review.components.results-frame (:require [reagent.core :as reagent] [re-frame.core :as re-frame] [react-bootstrap.components :as bs] [cosycat.components :refer [error-panel throbbing-panel]] [cosycat.app-utils :refer [parse-hit-id]] [cosycat.sni...
cb9ed9478a4d22f62b2ca09141e35797bb1fe89e08300a8ab41d4b959ce3b598
kiselgra/c-mera
version.lisp
(in-package :c-mera) (defparameter *version* (asdf:component-version (asdf:find-system :c-mera))) (defparameter *generator* :undefined) (defun print-version () (format t "~a~%" *version*))
null
https://raw.githubusercontent.com/kiselgra/c-mera/d06ed96d50a40a3fefe188202c8c535d6784f392/src/c-mera/version.lisp
lisp
(in-package :c-mera) (defparameter *version* (asdf:component-version (asdf:find-system :c-mera))) (defparameter *generator* :undefined) (defun print-version () (format t "~a~%" *version*))
a1a25142787e2a42ab680a10e6441fea2092ed0d95338d09d9706830d633b512
jeffshrager/biobike
doc-objects.lisp
-*- Package : help ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :help) ;;; +=========================================================================+ | Copyright ( c ) 2002 - 2006 JP , , | ;;; | | ;;; ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Help/doc-objects.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :help) | Copyright ( c ) 2002 - 2006 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to ...
30a50b63c3ecf654875c6c6afdd4fa9e3bf4343a85b180670388b1bef846aa42
jixiuf/helloerlang
emysql_app.erl
Copyright ( c ) 2009 < > < > %% %% 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, modify, mer...
null
https://raw.githubusercontent.com/jixiuf/helloerlang/3960eb4237b026f98edf35d6064539259a816d58/gls/sgLogServer/deps/emysql/src/emysql_app.erl
erlang
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 Software is furnished to do so, subject to the following condit...
Copyright ( c ) 2009 < > < > files ( the " Software " ) , to deal in the Software without copies of the Software , and to permit persons to whom the included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , -module(emysql_app...
880432877c4576b2b53a6ab8d82cfcf659217ae9f40897338270e33faf2d362d
kenbot/church
ChurchList.hs
{-# LANGUAGE RankNTypes #-} module ChurchList where type CList a = forall r. (a -> r -> r) -> r -> r cNil :: CList a cNil f nil = nil cCons :: a -> CList a -> CList a cCons a clist = \f b -> f a (clist f b) cListToList :: CList a -> [a] cListToList clist = clist (:) [] listToCList :: [a] -> CList a listToCLis...
null
https://raw.githubusercontent.com/kenbot/church/a3da46b584dde00b66da14943154f225f062eb86/ChurchList.hs
haskell
# LANGUAGE RankNTypes #
module ChurchList where type CList a = forall r. (a -> r -> r) -> r -> r cNil :: CList a cNil f nil = nil cCons :: a -> CList a -> CList a cCons a clist = \f b -> f a (clist f b) cListToList :: CList a -> [a] cListToList clist = clist (:) [] listToCList :: [a] -> CList a listToCList [] = cNil listToCList (a :...
4fe3c1118b59f0dea430902df4d1007ca2565110ef0da6b5820a22aaf91e766e
vvvvalvalval/mapdag
default.cljc
(ns mapdag.test.runtime.default (:require [clojure.test :refer :all] [mapdag.test.core] [mapdag.runtime.default])) (deftest compute--examples (mapdag.test.core/test-implementation--examples mapdag.runtime.default/compute))
null
https://raw.githubusercontent.com/vvvvalvalval/mapdag/c0758a7dcd986e7062d80c3dd368ea769d0d5b41/test/mapdag/test/runtime/default.cljc
clojure
(ns mapdag.test.runtime.default (:require [clojure.test :refer :all] [mapdag.test.core] [mapdag.runtime.default])) (deftest compute--examples (mapdag.test.core/test-implementation--examples mapdag.runtime.default/compute))
eb9144d628de1e3551cfcd9ac43fcb375008cf9a1d19819e0bdcb413fc287fd3
alevy/postgresql-orm
Model_old.hs
# LANGUAGE Trustworthy # {-# LANGUAGE RankNTypes #-} # LANGUAGE DeriveGeneric # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE FunctionalDependencies # # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGU...
null
https://raw.githubusercontent.com/alevy/postgresql-orm/9316db2f226c512036c2b72983020f6bdefd41bd/src/Database/PostgreSQL/ORM/LIO/Model_old.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # # LANGUAGE DeriveDataTypeable # { M.connectDatabase = pd } - EXAMPLE
# LANGUAGE Trustworthy # # LANGUAGE DeriveGeneric # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ScopedTypeVariables # # LANGUAGE FunctionalDependencies # # LANGUAGE TypeOperators # # LANGUAGE FlexibleInstances # # LANGUAGE DefaultSignatures # module Database.PostgreSQL.ORM.LIO.Model where import qualified Data.Byte...
079a9581678803d1db11a5532e99753bb7f9380076b7da3e20f4f3725a4665f2
fission-codes/fission
Init.hs
-- | Initialize a new Fission app in an existing directory module Fission.CLI.Handler.App.Init (appInit) where import qualified Crypto.PubKey.Ed25519 as Ed25519 import qualified Data.Yaml as YAML import qualified System.Console.ANSI as ANSI imp...
null
https://raw.githubusercontent.com/fission-codes/fission/e5a5d6f30fb4451918efba5b72787cbc7632aecf/fission-cli/library/Fission/CLI/Handler/App/Init.hs
haskell
| Initialize a new Fission app in an existing directory
module Fission.CLI.Handler.App.Init (appInit) where import qualified Crypto.PubKey.Ed25519 as Ed25519 import qualified Data.Yaml as YAML import qualified System.Console.ANSI as ANSI import Fission.Prelude import qualified Fission.App...
755f3076fcb051d464f7dacf35ce09e4f8a5bb8d808cd80d344aad7c19313bc2
dbuenzli/remat
descr.ml
--------------------------------------------------------------------------- Copyright 2012 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Copyright...
null
https://raw.githubusercontent.com/dbuenzli/remat/28d572e77bbd1ad46bbfde87c0ba8bd0ab99ed28/src-remat/descr.ml
ocaml
Repository description Description filename lookup Description decoder Member lookup Formatting TODO better error reports, correct string extractors. # let err fmt = Printf.ksprintf (fun e -> R.error e) fmt let rec product vss = (* ordered cartesian product of lists. Variable envir...
--------------------------------------------------------------------------- Copyright 2012 . All rights reserved . Distributed under the BSD3 license , see license at the end of the file . % % NAME%% release % % --------------------------------------------------------------------------- Copyright...
657a6cd99033f97e945cf6b4f87a957ce5827c72d837271d7e728fce049d8792
acieroid/scala-am
church-2-num-1.scm
(letrec ((zero (lambda (f x) x)) (inc (lambda (n) (lambda (f x) (f (n f x))))) (plus (lambda (m n) (lambda (f x) (m f (n f x)))))) ((inc (inc zero)) (lambda (x) (+ x 1)) 0))
null
https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/changesBenevolPaper/church-2-num-1.scm
scheme
(letrec ((zero (lambda (f x) x)) (inc (lambda (n) (lambda (f x) (f (n f x))))) (plus (lambda (m n) (lambda (f x) (m f (n f x)))))) ((inc (inc zero)) (lambda (x) (+ x 1)) 0))
6febfa553216a882c43330bcab22bc2bad66244caf548a9e136e371549e11481
funcool/httpurr
generators.cljc
(ns httpurr.test.generators (:require [clojure.test.check.generators :as gen] [httpurr.status :as http])) (defn gen-statuses [coll] (gen/such-that #(not (empty? %)) (gen/map (gen/return :status) (gen/elements coll)))) (def informational-response (gen-statuses http/inform...
null
https://raw.githubusercontent.com/funcool/httpurr/22fb1b921864155a6b4eff113e2456ee924dd681/test/httpurr/test/generators.cljc
clojure
(ns httpurr.test.generators (:require [clojure.test.check.generators :as gen] [httpurr.status :as http])) (defn gen-statuses [coll] (gen/such-that #(not (empty? %)) (gen/map (gen/return :status) (gen/elements coll)))) (def informational-response (gen-statuses http/inform...