_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 |
|---|---|---|---|---|---|---|---|---|
e3797b6254d92cf361eb4f2b19347e571d07e2e12f1926faaba5ce75b98fd1f6 | xmonad/xmonad-contrib | Commands.hs | -----------------------------------------------------------------------------
-- |
Module : XMonad . Actions . Commands
-- Description : Run internal xmonad commands using a dmenu menu.
Copyright : ( c ) 2007
-- License : BSD3
--
Maintainer :
-- Stability : stable
-- Portability : po... | null | https://raw.githubusercontent.com/xmonad/xmonad-contrib/571d017b8259340971db1736eedc992a54e9022c/XMonad/Actions/Commands.hs | haskell | ---------------------------------------------------------------------------
|
Description : Run internal xmonad commands using a dmenu menu.
License : BSD3
Stability : stable
Portability : portable
Allows you to run internal xmonad commands (X () actions) using
a dmenu menu in addition to key binding... | Module : XMonad . Actions . Commands
Copyright : ( c ) 2007
Maintainer :
the Dmenu XMonad . Actions module .
module XMonad.Actions.Commands (
commandMap,
runCommand,
runCommandConfig,
... |
8c76f100910d6fef610fa56985ad85fa0fc10bca6cd8b6736e5e1e3a01099070 | alaricsp/chicken-scheme | embedded2.scm | #>
#include <assert.h>
int main()
{
static char buffer[ 4096 ];
void C_toplevel(C_word x, C_word y, C_word z);
CHICKEN_run((void*)C_toplevel);
assert(CHICKEN_eval_string_to_string("(oink (make-vector 10 'ok))",
buffer, sizeof(buffer)));
printf("--> %s\n", buffer);
return 0;
}
<#
(##sys#fudge... | null | https://raw.githubusercontent.com/alaricsp/chicken-scheme/1eb14684c26b7c2250ca9b944c6b671cb62cafbc/tests/embedded2.scm | scheme | #>
#include <assert.h>
int main()
{
assert(CHICKEN_eval_string_to_string("(oink (make-vector 10 'ok))",
}
<#
(##sys#fudge 36)
(gc)
(print "starting...")
(define (oink x)
(pp x)
(vector-length x))
(return-to-host)
| |
74c6e1919fb3ee01063fcd07faaa808a02e587a42a36e4b679425c1ec3aacdbb | xapi-project/xen-api-client | xen_api.ml |
* Copyright ( C ) 2012 Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking described in fi... | null | https://raw.githubusercontent.com/xapi-project/xen-api-client/f23b43428076e9b9773f27368230102a924b6575/lib/xen_api.ml | ocaml | * HTTP-layer rejected the request. Assume permanent failure as probably
the address belonged to some other server.
* No http-level response. Assume ok to retransmit request.
for debugging --
wrong server?
wrong server?
busy? |
* Copyright ( C ) 2012 Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking described in fi... |
fd4929f56535faf98353bb0a37a8a05118aa5bc5b57d41d80d8f2ae34af379bf | openmusic-project/openmusic | fluid.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/56d1f86363845812ad518149551475be5d4c9b1b/OPENMUSIC/code/projects/fluid/fluid.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 ... |
6c02873264b25cb2250235e905a50961ece88b2b4436f6e08fb3238ea3d679a7 | kafka4beam/snabbkaffe | snabbkaffe_nemesis.erl | Copyright 2019 - 2020 , 2022 Klarna Bank AB
Copyright 2021 snabbkaffe contributors
%%
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/kafka4beam/snabbkaffe/13bda71d0dfd2c7c23352412f365f23145b43d06/src/snabbkaffe_nemesis.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright 2019 - 2020 , 2022 Klarna Bank AB
Copyright 2021 snabbkaffe contributors
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
? maybe_crash(kind1 , # { data1 = > Foo , field2 = > Bar } )
? inject_crash ( # { ? s... |
faa39c58096f55c528dcd19f25d2e727bd82191bb2dda2410dbf1a8708220719 | lambdabot/lambdabot | Pointful.hs | # LANGUAGE ScopedTypeVariables #
# LANGUAGE PatternSynonyms #
# LANGUAGE ViewPatterns #
-- Undo pointfree transformations. Plugin code derived from Pl.hs.
module Lambdabot.Plugin.Haskell.Pointful (pointfulPlugin) where
import Lambdabot.Module as Lmb (Module)
import Lambdabot.Plugin
import Lambdabot.Util.Parser (withPa... | null | https://raw.githubusercontent.com/lambdabot/lambdabot/de01f362c7a8fc6f85c37e604168dcccb1283a0e/lambdabot-haskell-plugins/src/Lambdabot/Plugin/Haskell/Pointful.hs | haskell | Undo pointfree transformations. Plugin code derived from Pl.hs.
-- Utilities ----
varsBoundHere returns variables bound by top patterns or binders
note: the tempting idea of using a pattern synonym for the frequent
return free variables
return number of free occurrences of a variable
variable capture avoiding sub... | # LANGUAGE ScopedTypeVariables #
# LANGUAGE PatternSynonyms #
# LANGUAGE ViewPatterns #
module Lambdabot.Plugin.Haskell.Pointful (pointfulPlugin) where
import Lambdabot.Module as Lmb (Module)
import Lambdabot.Plugin
import Lambdabot.Util.Parser (withParsed, prettyPrintInLine)
import Control.Monad.Reader
import Contro... |
551c5a834573cb9abc24c05e283cdca803002bcdf436d9c8de5ff6131153feea | haskell-compat/base-compat | Compat.hs | # LANGUAGE CPP , NoImplicitPrelude , PackageImports #
module System.Environment.Compat (
module Base
) where
import "base-compat" System.Environment.Compat as Base
| null | https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat-batteries/src/System/Environment/Compat.hs | haskell | # LANGUAGE CPP , NoImplicitPrelude , PackageImports #
module System.Environment.Compat (
module Base
) where
import "base-compat" System.Environment.Compat as Base
| |
6586a01057cf7aa0f17cdcf951d754aa31dc3117d0c68e37b4fec64d6458a0f1 | louisabraham/domical | js_of_ocaml_toplevel_camlp4.ml | Js_of_ocaml library
* /
* Copyright ( C ) 2014 Hugo Heuzard
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the... | null | https://raw.githubusercontent.com/louisabraham/domical/9293b7f7a1dd405561a3f2e0bd168a2b49eed708/toplevel/lib/camlp4/js_of_ocaml_toplevel_camlp4.ml | ocaml | Js_of_ocaml library
* /
* Copyright ( C ) 2014 Hugo Heuzard
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the... | |
07bbfc487752058eb72f9f3d1835961d8b963bb06478cb7ee91581086fc121be | LexiFi/menhir | lookahead.ml | (******************************************************************************)
(* *)
(* *)
... | null | https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/lookahead.ml | ocaml | ****************************************************************************
file LICEN... |
, Paris
, PPS , Université Paris Diderot
. All rights reserved . This file is distributed under the
terms of the GNU General Public License version 2 , as... |
cc810c04054d9ca4b39cf46985706fbba415d1de46061f82be09cc60e09dcf09 | realworldocaml/book | ast_pattern.mli | * First class AST patterns
open! Import
* PPX rewriters often need to recognize fragments , for instance
to parse the payload of an attribute / expression . You can do that with a
pattern matching and manual error reporting when the input is not what you
expect but this has proven to quickly beco... | null | https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/ppxlib/src/ast_pattern.mli | ocaml | * Type of a pattern:
- ['a] is the type of value matched by the pattern
- ['b] is the continuation, for instance for a pattern that captures an
[int] and a [string], ['b] will be [int -> string -> _]
- ['c] is the result of the continuation.
* Matches a value against a pattern. Raise a located error... | * First class AST patterns
open! Import
* PPX rewriters often need to recognize fragments , for instance
to parse the payload of an attribute / expression . You can do that with a
pattern matching and manual error reporting when the input is not what you
expect but this has proven to quickly beco... |
70a09383626b46a0482e72c303700c8066ed53d925756c7542416b0d45c8cdb6 | ThomasHintz/keep-the-records | pdf.scm | (use pdf srfi-1)
(define (if-first l)
(if (> (length l) 0) (first l) ""))
(define (if-second l)
(if (> (length l) 1) (second l) ""))
(define (if-third l)
(if (> (length l) 2) (third l) ""))
(define (if-fourth l)
(if (> (length l) 3) (fourth l) ""))
(define (if-fifth l)
(if (> (length l) 4) (fifth l) ""))
(de... | null | https://raw.githubusercontent.com/ThomasHintz/keep-the-records/c20e648e831bed2ced3f2f74bfc590dc06b5f076/pdf.scm | scheme | (use pdf srfi-1)
(define (if-first l)
(if (> (length l) 0) (first l) ""))
(define (if-second l)
(if (> (length l) 1) (second l) ""))
(define (if-third l)
(if (> (length l) 2) (third l) ""))
(define (if-fourth l)
(if (> (length l) 3) (fourth l) ""))
(define (if-fifth l)
(if (> (length l) 4) (fifth l) ""))
(de... | |
8ccb2f7731ca45358921db0b1c6588db8dfbbda052b3155bfe90480ce4a4ef93 | juliannagele/ebso | uninterpreted_instruction.ml | Copyright 2019 and 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 ... | null | https://raw.githubusercontent.com/juliannagele/ebso/8e516036fcb98074b6be14fc81ae020f76977712/lib/uninterpreted_instruction.ml | ocaml | Copyright 2019 and 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 ... | |
540fe4fd87a105e74d36aadfc778117624c5219caeea28c453f8e48c9a421fc5 | benzap/eden | environment_test.cljc | (ns eden.std.environment-test
(:require
[clojure.test :refer [deftest is testing]]
[eden.std.environment :refer [new-environment get-var set-var]]
[eden-test.utils :refer [are-eq*] :include-macros true]))
(deftest main-test
(testing "Setting and Getting"
(let [env (-> (new-environment)
... | null | https://raw.githubusercontent.com/benzap/eden/dbfa63dc18dbc5ef18a9b2b16dbb7af0e633f6d0/test/eden/std/environment_test.cljc | clojure | (ns eden.std.environment-test
(:require
[clojure.test :refer [deftest is testing]]
[eden.std.environment :refer [new-environment get-var set-var]]
[eden-test.utils :refer [are-eq*] :include-macros true]))
(deftest main-test
(testing "Setting and Getting"
(let [env (-> (new-environment)
... | |
e87cd4d3bbcdfda19229ea2857ba6f1a048342a5edd534e771c861583b421a41 | inconvergent/cl-grph | qry-utils.lisp | (in-package :grph)
(declaim (inline any? bindable? eq-car? eq-car? free? not? var? ^var? val? fx?
has-symchar? interned? get-var get-all-vars symlen no-dupes?))
(defun symlen (s)
(declare (optimize speed) (symbol s))
(length (symbol-name s)))
(defun interned? (s)
(declare (optimize speed))
(... | null | https://raw.githubusercontent.com/inconvergent/cl-grph/d46e921b32bcff0545ab2932238bb7c81594bd89/src/qry-utils.lisp | lisp | undup use is ok
undup use is ok | (in-package :grph)
(declaim (inline any? bindable? eq-car? eq-car? free? not? var? ^var? val? fx?
has-symchar? interned? get-var get-all-vars symlen no-dupes?))
(defun symlen (s)
(declare (optimize speed) (symbol s))
(length (symbol-name s)))
(defun interned? (s)
(declare (optimize speed))
(... |
fcd5a6e41008c150580499f207724597958a2515daca0c7f027fa4a4db701d62 | ober/metis | db-sqlite.lisp | (in-package :metis)
(defvar *sqlite-db* ":memory:")
;;(defvar *sqlite-db* "/tmp/metis.db")
(defvar *sqlite-conn* nil)
(defun sqlite-disconnect (conn)
(if (equal *db-backend* :sqlite)
(sqlite:disconnect conn)))
(defun sqlite-drop-table (table &optional (conn *sqlite-conn*))
(sqlite:execute-non-query conn (fo... | null | https://raw.githubusercontent.com/ober/metis/b8de5fe34682202e9d7d417fbcc2645d3e3d047d/src/old/db-sqlite.lisp | lisp | (defvar *sqlite-db* "/tmp/metis.db")
(format t "~% in sqlite-emit-conn!!!~%")
(defun sqlite-get-or-insert-id
(format t "~%sgoii: table:~A value:~A" table value)
(declare (special *conn*))
(sqlite:with-transaction *sqlite-conn*
(format t "~%record:~A~%" record)
(format t "values:~{~A~^,~} tables:~A~%" record values... | (in-package :metis)
(defvar *sqlite-db* ":memory:")
(defvar *sqlite-conn* nil)
(defun sqlite-disconnect (conn)
(if (equal *db-backend* :sqlite)
(sqlite:disconnect conn)))
(defun sqlite-drop-table (table &optional (conn *sqlite-conn*))
(sqlite:execute-non-query conn (format nil "drop table if exists ~A" tabl... |
69c96f7f5594896b2b8002f0aea06f065264a7574c7e76e4cb1d72700f3f74d9 | nurturenature/jepsen-tigerbeetle | tigerbeetle.clj | (ns tigerbeetle.tigerbeetle
(:require [clojure.set :as set]
[clojure.string :refer [join]]
[clojure.tools.logging :refer [info warn]]
[jepsen
[util :as u]]
[jepsen.control.net :as cn]
[slingshot.slingshot :refer [try+]])
(:import (com.tigerbee... | null | https://raw.githubusercontent.com/nurturenature/jepsen-tigerbeetle/a1a0421efd3af14a2e4597f04f36fe8b16dc663b/src/tigerbeetle/tigerbeetle.clj | clojure | TODO: create linked/pending transfers | (ns tigerbeetle.tigerbeetle
(:require [clojure.set :as set]
[clojure.string :refer [join]]
[clojure.tools.logging :refer [info warn]]
[jepsen
[util :as u]]
[jepsen.control.net :as cn]
[slingshot.slingshot :refer [try+]])
(:import (com.tigerbee... |
9d130f45b3aea979ac990e07749be1cf10913b3d586712a85b983609c59ff65c | blindglobe/clocc | transform.lisp | -*- Mode : Common - Lisp ; Package : PICTURES ; -*-
;;;
;;;
;;;
TEXAS INSTRUMENTS INCORPORATED
P.O. BOX 149149
AUSTIN , TEXAS 78714 - 9149
;;;
Copyright ( C)1987,1988,1989,1990 Texas Instruments Incorporated .
;;;
;;; Permission is granted to any individual or institution to use, copy, modify,... | null | https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/gui/clue/pictures/transform.lisp | lisp | Package : PICTURES ; -*-
Permission is granted to any individual or institution to use, copy, modify,
and distribute this software, provided that this complete copyright and
permission notice is maintained, intact, in all copies and supporting
documentation.
express or implied warranty.
Change TRANSFORM... | TEXAS INSTRUMENTS INCORPORATED
P.O. BOX 149149
AUSTIN , TEXAS 78714 - 9149
Copyright ( C)1987,1988,1989,1990 Texas Instruments Incorporated .
Texas Instruments Incorporated provides this software " as is " without
Authors : , ,
Contributors : , ,
Severely hacked by for eff... |
8184ca57e709c5cad8533684e1ce7fa4088a03ee003cdfe401f25c51f60c45b5 | okuoku/nausicaa | make-inspector.sps | ;;;!mosh
-*- coding : utf-8 - unix -*-
;;;
Part of : / Nettle
;;;Contents: foreign library inspection generator
Date : Thu Jan 7 , 2010
;;;
;;;Abstract
;;;
;;;
;;;
Copyright ( c ) 2010 < >
;;;
;;;This program is free software: you can redistribute it and/or modify
;;;it under the terms of the GNU General Publ... | null | https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/nettle/make-inspector.sps | scheme | !mosh
Contents: foreign library inspection generator
Abstract
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
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ... | -*- coding : utf-8 - unix -*-
Part of : / Nettle
Date : Thu Jan 7 , 2010
Copyright ( c ) 2010 < >
the Free Software Foundation , either version 3 of the License , or ( at
General Public License for more details .
You should have received a copy of the GNU General Public License
(import (nausicaa)
(... |
951d6fdfc9476e02641ff32c0b365b6c73e31e18aeb5063342d0185cd9c4f6bb | conscell/hugs-android | AssocDefaults.hs | Copyright ( c ) 1998 .
-- See COPYRIGHT file for terms and conditions.
module AssocDefaults
{-# DEPRECATED "This module is unmaintained, and will disappear soon" #-}
where
import Prelude hiding (null,map,lookup,foldr,foldl,foldr1,foldl1,filter)
import Assoc
import qualified Sequence as S
import qualified a... | null | https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/oldlib/AssocDefaults.hs | haskell | See COPYRIGHT file for terms and conditions.
# DEPRECATED "This module is unmaintained, and will disappear soon" # | Copyright ( c ) 1998 .
module AssocDefaults
where
import Prelude hiding (null,map,lookup,foldr,foldl,foldr1,foldl1,filter)
import Assoc
import qualified Sequence as S
import qualified as L
fromSeqUsingInsertSeq ::
(AssocX m k,S.Sequence seq) => seq (k,a) -> m k a
fromSeqUsingInsertSeq kvs = insertSeq ... |
7f7b405944a2380acb7b4fde82a56e5f5390b82fda2b35765584fbff4f093633 | bennn/dissertation | zo-shell.rkt | #lang racket/base
;; Command-line UI for exploring decompiled bytecode.
;; (Use `raco make` to generate bytecode)
(provide
zo-read
init)
(require require-typed-check
(only-in racket/string string-split string-join string-trim)
racket/match)
(require "zo-string.rkt"
"zo-transition.rkt"
"zo-find... | null | https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/zordoz/untyped/zo-shell.rkt | racket | Command-line UI for exploring decompiled bytecode.
(Use `raco make` to generate bytecode)
-----------------------------------------------------------------------------
--- constants & contracts
when set, print extra debugging information
For aesthetic purposes
(define-type History (Listof Context))
--- API funct... | #lang racket/base
(provide
zo-read
init)
(require require-typed-check
(only-in racket/string string-split string-join string-trim)
racket/match)
(require "zo-string.rkt"
"zo-transition.rkt"
"zo-find.rkt"
"../base/untyped.rkt"
"../base/compiler-zo-parse.rkt")
(define DEBUG #f)
(define VE... |
9a40a770ceef920fbe60da3199baf9561b27c3b7cd7058b9b52844f43ddb15a4 | jiujiu1123/defensive-to-contracts | textedit.rkt | #lang racket
(require framework)
(require racket/gui)
(require "chspans.rkt")
(require "definitions.rkt")
(require "syntax-to-contract.rkt")
(require racket/format)
(require racket/pretty)
;(define editor-stream
; (make-object editor-stream-in%
; (make-object editor-stream-in-bytes-base%
( file->bytes " /U... | null | https://raw.githubusercontent.com/jiujiu1123/defensive-to-contracts/f64d8cb80a17fb981eb8269ef15f1fdb2f4d190b/textedit.rkt | racket | (define editor-stream
(make-object editor-stream-in%
(make-object editor-stream-in-bytes-base%
l(send text read-from-file editor-stream 'start)
racket:text
(define sub-pane (new horizontal-panel% [parent frame] [vert-margin 0] [horiz-margin 0]))
(define apply-btn (new button%
[parent... | #lang racket
(require framework)
(require racket/gui)
(require "chspans.rkt")
(require "definitions.rkt")
(require "syntax-to-contract.rkt")
(require racket/format)
(require racket/pretty)
( file->bytes " /Users / peterzhong / Desktop / OneDrive / Northwestern / Research / defensive - anlysis - removal / sample... |
1028fcaa67b2d3f997324e6cc2558c3daaef72d40b26e90e62ea9d0d18a26444 | dnaeon/clingon | command.lisp | TODO : add PRINT - DOCUMENTATION for : DOT to represent the command tree
;; TODO: Specialize this method on keyword, string (for long options)
;; and character (for short options) to allow for more flexibility
;; TODO: Add getopt method which can get the option by long or short option name
TODO : Add this one
( ... | null | https://raw.githubusercontent.com/dnaeon/clingon/ff4fda1768551fecdf1c527a3097ae99ba5f40b5/src/command.lisp | lisp | TODO: Specialize this method on keyword, string (for long options)
and character (for short options) to allow for more flexibility
TODO: Add getopt method which can get the option by long or short option name
TODO: Confirmation options: y/n prompt
TODO: Password options
TODO: Prompt options
TODO: Add case-insens... | TODO : add PRINT - DOCUMENTATION for : DOT to represent the command tree
TODO : Add this one
( - or - lose ( ) )
TODO : Alternating options , e.g. ` and -x ` , option : " + w/-w "
TODO : Consider adding the option category as part of the zsh - completions generation
TODO : Add ` conflicting ' option... |
b0f8e3648f7bb2778a4880f202f11088abcb6aa131138952fdfbd52c3a35c7e8 | restyled-io/restyler | RestylerResult.hs | module Restyler.RestylerResult
( RestylerResult(..)
, noPathsRestylerResult
, getRestylerResult
, restylerCommittedChanges
) where
import Restyler.Prelude
import Restyler.CommitTemplate
import Restyler.Config
import Restyler.Git
import Restyler.Restyler
data RestyleOutcome
= NoPaths
| NoC... | null | https://raw.githubusercontent.com/restyled-io/restyler/3da7d1cb62ec078c03794d4a2c5fbeb5c26fd005/src/Restyler/RestylerResult.hs | haskell | | A @'RestylerResult'@ indicating there were no paths to restyle
N.B. This will create commits if appropriate.
| Does this @'RestylerResult'@ indicate changes were comitted? | module Restyler.RestylerResult
( RestylerResult(..)
, noPathsRestylerResult
, getRestylerResult
, restylerCommittedChanges
) where
import Restyler.Prelude
import Restyler.CommitTemplate
import Restyler.Config
import Restyler.Git
import Restyler.Restyler
data RestyleOutcome
= NoPaths
| NoC... |
95ffaae57b9890e3be5970abb7cb2bcca7a285136990dd1d51b6c95fb764cde2 | brunjlar/protop | Indexed.hs | # LANGUAGE ScopedTypeVariables #
{-# LANGUAGE GADTs #-}
# LANGUAGE KindSignatures #
# LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
# LANGUAGE TypeFamilies #
module Protop.Logic.Indexed
( Kind(..)
, Scope(..)
, headSC
, tailSC
, lengthSC
, Sig
, Entity
, HasScope(..)
, Liftable
... | null | https://raw.githubusercontent.com/brunjlar/protop/9f520aeb4dd9baf9ebed8751584e33e3a3e23df6/src/Protop/Logic/Indexed.hs | haskell | # LANGUAGE GADTs #
case sig e of SgmS s -> case scope s of Cons t -> t
eta reduction
beta reduction | # LANGUAGE ScopedTypeVariables #
# LANGUAGE KindSignatures #
# LANGUAGE DataKinds #
# LANGUAGE TypeOperators #
# LANGUAGE TypeFamilies #
module Protop.Logic.Indexed
( Kind(..)
, Scope(..)
, headSC
, tailSC
, lengthSC
, Sig
, Entity
, HasScope(..)
, Liftable
, lft'
, lft
... |
a78f28488e916079138128f368bb9df25efb8041d9eacb13dc8f18458a615a07 | SchornacklabSLCU/amfinder | imgShared.mli | AMFinder - img / imgShared.mli
*
* MIT License
* Copyright ( c ) 2021
*
* 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... | null | https://raw.githubusercontent.com/SchornacklabSLCU/amfinder/1053045b431b9e9e85a7bcebea2e38cda92a8dcd/amfbrowser/sources/img/imgShared.mli | ocaml | * Image-related shared functions. | AMFinder - img / imgShared.mli
*
* MIT License
* Copyright ( c ) 2021
*
* 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... |
8d3134c3875e2e9fe1d6558c9c56d523862b0f0ba417161be1801a837462adae | gedge-platform/gedge-platform | rabbit_tracing_sup.erl | 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 /.
%%
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(rabbit_tracing_sup).
-behaviour(supervis... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_tracing/src/rabbit_tracing_sup.erl | erlang |
----------------------------------------------------------------------------
---------------------------------------------------------------------------- | 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 /.
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbit_tracing_sup).
-behaviour(supervisor).
... |
bfdd43b1fb68566d027d910c519c2748a4049f4ecc7dcbb18bd6284d9537b094 | amccausl/Swish | N3ParserTest.hs | --------------------------------------------------------------------------------
$ I d : N3ParserTest.hs , v 1.25 2004/02/09 22:22:44 graham Exp $
--
Copyright ( c ) 2003 , . All rights reserved .
-- See end of this file for licence information.
--------------------------------------------------------... | null | https://raw.githubusercontent.com/amccausl/Swish/9a7356300960c62e3f0468067bda0c34ee3606bd/Swish/HaskellRDF/N3ParserTest.hs | haskell | ------------------------------------------------------------------------------
See end of this file for licence information.
------------------------------------------------------------------------------
|
Module : N3ParserTest
Stability : provisional
Portability : H98
This Module cont... | $ I d : N3ParserTest.hs , v 1.25 2004/02/09 22:22:44 graham Exp $
Copyright ( c ) 2003 , . All rights reserved .
Copyright : ( c ) 2003 ,
License : GPL V2
Maintainer :
WNH RIP OUT module Swish . HaskellRDF.N3ParserTest where
import Swish.HaskellRDF.N3Parser
... |
45fc6108dd519d5edff3e4fadd745d25eedd37dfe7ecd8163f7464fc5c2b834d | scslab/hails | MP.hs | {-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE ScopedTypeVariables #
{-# LANGUAGE OverloadedStrings #-}
module HailsRock.MP ( HailsRockModule
, withHailsRockDB
, Game(..)
, Play(..)
... | null | https://raw.githubusercontent.com/scslab/hails/4d4dfe0cdfb7c8941a55ce882cba20d82c6d9cfd/examples/hails-rock/HailsRock/MP.hs | haskell | # LANGUAGE DeriveDataTypeable #
# LANGUAGE OverloadedStrings #
| A game contains can be public or contain a single opponent
| A play is a move played by a user for a game
| @outcome our_move their_move@
Ignore empty-string opponents
Sensitive getStats function
Helpers
| Generic lookup with possible t... | # LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE ScopedTypeVariables #
module HailsRock.MP ( HailsRockModule
, withHailsRockDB
, Game(..)
, Play(..)
, Move(..)
, Outcome(..)
... |
787ce5e5d27cef2095bc2a575b695e3033bd3d77e41ac26b465a60f99ce9a565 | tnelson/Forge | amalgam.rkt | #lang racket ;forge/core
( set - verbosity 1 )
(require forge/amalgam/desugar/desugar)
(require forge/amalgam/lift-bounds/lift-bounds)
(require forge/send-to-kodkod)
;(require "amalgam/tests/forge_ex.rkt")
( require " amalgam / userStudies / KittyBacon.rkt " )
(require racket/hash)
(require (prefix-in @ racket/set))... | null | https://raw.githubusercontent.com/tnelson/Forge/1687cba0ebdb598c29c51845d43c98a459d0588f/forge/amalgam.rkt | racket | forge/core
(require "amalgam/tests/forge_ex.rkt")
TODO: Comment this out later
(run udt
#:preds[isUndirectedTree]
#:preds[KittyBaconIsAFancyFeline]
This is a sketch for the moment
We have the orig-run without using the run macro
which means we have its Run-spec
which is post-processing by the run macro... |
( set - verbosity 1 )
(require forge/amalgam/desugar/desugar)
(require forge/amalgam/lift-bounds/lift-bounds)
(require forge/send-to-kodkod)
( require " amalgam / userStudies / KittyBacon.rkt " )
(require racket/hash)
(require (prefix-in @ racket/set))
(require (prefix-in @ (only-in racket -> >= >)))
(require (only... |
f812c16858edd2e1b3937933ea46b66d054755816a204e1085a9f8ac63c9c8b9 | abdulapopoola/SICPBook | Ex2.45.scm | #lang planet neil/sicp
(define (split placement1 placement2)
(define (splitter painter n)
(if (= n 0)
painter
(let ((smaller (splitter painter (- n 1))))
(placement1 painter
(placement2 smaller smaller)))))
(lambda (painter n) (splitter painter n)))
(define right-split (sp... | null | https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.2/Ex2.45.scm | scheme | #lang planet neil/sicp
(define (split placement1 placement2)
(define (splitter painter n)
(if (= n 0)
painter
(let ((smaller (splitter painter (- n 1))))
(placement1 painter
(placement2 smaller smaller)))))
(lambda (painter n) (splitter painter n)))
(define right-split (sp... | |
72a45258861ecb432d7531d3c6c49207b87e7b95d52e7b9ae4745f5d1d6746dc | theodormoroianu/SecondYearCourses | HaskellChurch_20210415163934.hs | {-# LANGUAGE RankNTypes #-}
module HaskellChurch where
A boolean is any way to choose between two alternatives
newtype CBool = CBool {cIf :: forall t. t -> t -> t}
An instance to show as regular Booleans
instance Show CBool where
show b = "cBool " <> show (cIf b True False)
The boolean constant true always ... | null | https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415163934.hs | haskell | # LANGUAGE RankNTypes #
The boolean negation switches the alternatives
The boolean conjunction can be built as a conditional
The boolean disjunction can be built as a conditional
a pair is a way to compute something based on the values
contained within the pair.
a function to be applied on the values, it will apply i... | module HaskellChurch where
A boolean is any way to choose between two alternatives
newtype CBool = CBool {cIf :: forall t. t -> t -> t}
An instance to show as regular Booleans
instance Show CBool where
show b = "cBool " <> show (cIf b True False)
The boolean constant true always chooses the first alternativ... |
8285d5218c1c58238ed2e4aecc73b1ab47ea5ad0091b88be6d2c9f08c2a62ab4 | tqtezos/stablecoin | Parser.hs | SPDX - FileCopyrightText : 2020
SPDX - License - Identifier : MIT
module Test.Stablecoin.Client.Parser
( test_deployCmd
) where
import Debug qualified (show)
import Options.Applicative (ParserResult(Failure, Success), defaultPrefs, execParserPure)
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.H... | null | https://raw.githubusercontent.com/tqtezos/stablecoin/0780ec8f3784c107742b266fcd11ee8ee5442ff6/haskell/test/Test/Stablecoin/Client/Parser.hs | haskell | SPDX - FileCopyrightText : 2020
SPDX - License - Identifier : MIT
module Test.Stablecoin.Client.Parser
( test_deployCmd
) where
import Debug qualified (show)
import Options.Applicative (ParserResult(Failure, Success), defaultPrefs, execParserPure)
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.H... | |
06323e9a058eea20c9577dcd03a4c4d621332e43d6cc76e5aaebf5adefa568e5 | adomokos/haskell-katas | Ex43_FaNewTypeSpec.hs | module Solutions.Ex43_FaNewTypeSpec
( spec
) where
import Test.Hspec
main :: IO ()
main = hspec spec
This would work :
data ZipList a = ZipList { getZipList : : [ a ] }
But this is better :
newtype ZipList a = ZipList { getZipList : : [ a ] }
* faster ( no boxing / unboxing )
... | null | https://raw.githubusercontent.com/adomokos/haskell-katas/be06d23192e6aca4297814455247fc74814ccbf1/test/Solutions/Ex43_FaNewTypeSpec.hs | haskell | module Solutions.Ex43_FaNewTypeSpec
( spec
) where
import Test.Hspec
main :: IO ()
main = hspec spec
This would work :
data ZipList a = ZipList { getZipList : : [ a ] }
But this is better :
newtype ZipList a = ZipList { getZipList : : [ a ] }
* faster ( no boxing / unboxing )
... | |
907cd4fb4ef3ab9b0de096b1f90535a012501d2103628f9dc69598f82cc960c1 | fare/lisp-interface-library | maybe.lisp | ;;; Interface Passing Style : Monad : Transformer : Maybe
(defpackage :lil/interface/monad/transformer/maybe
(:use :cl :lil/interface/monad :lil/core)
(:import-from :lil/interface/monad/identity
#:<identity>)
(:import-from :lil/interface/group
#:<zero-plus> #:zero #:plus)
(:import-from :lil/interface/empty
... | null | https://raw.githubusercontent.com/fare/lisp-interface-library/ac2e0063dc65feb805f0c57715d52fda28d4dcd8/interface/monad/transformer/maybe.lisp | lisp | Interface Passing Style : Monad : Transformer : Maybe | (defpackage :lil/interface/monad/transformer/maybe
(:use :cl :lil/interface/monad :lil/core)
(:import-from :lil/interface/monad/identity
#:<identity>)
(:import-from :lil/interface/group
#:<zero-plus> #:zero #:plus)
(:import-from :lil/interface/empty
#:empty #:empty-p)
(:import-from :lil/interface/monad/... |
b7246eeb98667c9600596a044a036a848ddb4ee801d4acf541d07ad4f4481c55 | helium/blockchain-http | bh_route_locations_SUITE.erl | -module(bh_route_locations_SUITE).
-compile([nowarn_export_all, export_all]).
-include("ct_utils.hrl").
all() ->
[
get_test
].
init_per_suite(Config) ->
?init_bh(Config).
end_per_suite(Config) ->
?end_bh(Config).
get_test(_Config) ->
{ok, {_, _, Json}} = ?json_request("/v1/locations/8c... | null | https://raw.githubusercontent.com/helium/blockchain-http/3d17c608891b758a6bee1cab42cae35357cde57f/test/bh_route_locations_SUITE.erl | erlang | -module(bh_route_locations_SUITE).
-compile([nowarn_export_all, export_all]).
-include("ct_utils.hrl").
all() ->
[
get_test
].
init_per_suite(Config) ->
?init_bh(Config).
end_per_suite(Config) ->
?end_bh(Config).
get_test(_Config) ->
{ok, {_, _, Json}} = ?json_request("/v1/locations/8c... | |
8789511f55628e3cd8931bbcd3ea8c132f7ce9ddf2b326572621b990f6a0f6f1 | theodormoroianu/SecondYearCourses | HaskellChurch_20210415163602.hs | {-# LANGUAGE RankNTypes #-}
module HaskellChurch where
A boolean is any way to choose between two alternatives
newtype CBool = CBool {cIf :: forall t. t -> t -> t}
An instance to show as regular Booleans
instance Show CBool where
show b = "cBool " <> show (cIf b True False)
The boolean constant true always ... | null | https://raw.githubusercontent.com/theodormoroianu/SecondYearCourses/5e359e6a7cf588a527d27209bf53b4ce6b8d5e83/FLP/Laboratoare/Lab%209/.history/HaskellChurch_20210415163602.hs | haskell | # LANGUAGE RankNTypes #
The boolean negation switches the alternatives
The boolean conjunction can be built as a conditional
The boolean disjunction can be built as a conditional
a pair is a way to compute something based on the values
contained within the pair.
a function to be applied on the values, it will apply i... | module HaskellChurch where
A boolean is any way to choose between two alternatives
newtype CBool = CBool {cIf :: forall t. t -> t -> t}
An instance to show as regular Booleans
instance Show CBool where
show b = "cBool " <> show (cIf b True False)
The boolean constant true always chooses the first alternativ... |
ad6c6a59665828f54361ef0a09e2dc86895aa7bb1c2446dbabcc6d52ebe8bae8 | laser/cis-194-spring-2017 | Week02Spec.hs | module Homework.Week02Spec (
main,
spec
) where
import Test.Hspec
import Homework.Week02.Assignment
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "LogAnalysis" $ do
it "should parse error lines" $ do
pending
parseMessage "E 2 562 help help" `shouldBe` LogMessage (Error 2) 562... | null | https://raw.githubusercontent.com/laser/cis-194-spring-2017/c6023cd611532c9bbd77eb97c14db360bfd5111c/test/Homework/Week02Spec.hs | haskell | module Homework.Week02Spec (
main,
spec
) where
import Test.Hspec
import Homework.Week02.Assignment
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "LogAnalysis" $ do
it "should parse error lines" $ do
pending
parseMessage "E 2 562 help help" `shouldBe` LogMessage (Error 2) 562... | |
4869d66575118dd601c2fccb7d58444140edcda45d550644da81be5424895390 | okuoku/nausicaa | compile-lang.racket.sps | ;;;
Part of : / Scheme
;;;Contents: compile script for Racket, basic language only
Date : We d Apr 6 , 2011
;;;
;;;Abstract
;;;
;;;
;;;
Copyright ( c ) 2011 < >
;;;
;;;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... | null | https://raw.githubusercontent.com/okuoku/nausicaa/50e7b4d4141ad4d81051588608677223fe9fb715/scheme/src/libraries/compile-lang.racket.sps | scheme |
Contents: compile script for Racket, basic language only
Abstract
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
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHO... | Part of : / Scheme
Date : We d Apr 6 , 2011
Copyright ( c ) 2011 < >
the Free Software Foundation , either version 3 of the License , or ( at
General Public License for more details .
You should have received a copy of the GNU General Public License
#!r6rs
(import (rnrs)
Core libraries
(only (nausic... |
baf2401ae7add90bccb8b224c790671bffeb31cdcf0adfc8a2de984a84fcd3ec | fmthoma/vgrep | Testable.hs | # OPTIONS_GHC -fno - warn - orphans #
module Vgrep.Environment.Testable
( module Vgrep.Environment
) where
import Test.QuickCheck
import Vgrep.Environment
instance Arbitrary Environment where
arbitrary = do
FIXME tweak numbers
FIXME tweak numbers
pure Env
{ _viewport = Viewport w... | null | https://raw.githubusercontent.com/fmthoma/vgrep/f3b140bf3150a3699234469c34ff8c13a298998e/test/Vgrep/Environment/Testable.hs | haskell | # OPTIONS_GHC -fno - warn - orphans #
module Vgrep.Environment.Testable
( module Vgrep.Environment
) where
import Test.QuickCheck
import Vgrep.Environment
instance Arbitrary Environment where
arbitrary = do
FIXME tweak numbers
FIXME tweak numbers
pure Env
{ _viewport = Viewport w... | |
1a0c28cc39be234fb8f72f8f0a67ab79af66589802c0209607b8b2ec5775a832 | hexlet-basics/exercises-clojure | test.clj | (ns data-and-code-test
(:require [test-helper :refer [assert-solution]]
[index :refer [postfix-notation]]))
(assert-solution
[[[2 2 =]] [[2 2 +]] [[2 2 >]] [[2 2 /]]] [true 4 false 1]
(fn [[op1 op2 operation]] (postfix-notation (op1 op2 operation))))
| null | https://raw.githubusercontent.com/hexlet-basics/exercises-clojure/fecc5027666f1f7860ec1e87c03af4498c69b2a1/modules/55-macros/30-data-and-code/test.clj | clojure | (ns data-and-code-test
(:require [test-helper :refer [assert-solution]]
[index :refer [postfix-notation]]))
(assert-solution
[[[2 2 =]] [[2 2 +]] [[2 2 >]] [[2 2 /]]] [true 4 false 1]
(fn [[op1 op2 operation]] (postfix-notation (op1 op2 operation))))
| |
27f26908630eb75293678b154080a6f7a4c8f84661eb0b5e3ea8b48ce59d8bc8 | larrychristensen/orcpub | common.cljc | (ns orcpub.dnd.e5.common)
(defn slot-level-key [level]
(keyword "orcpub.dnd.e5.spells" (str "slots-" level)))
| null | https://raw.githubusercontent.com/larrychristensen/orcpub/e83995857f7e64af1798009a45a0b03abcd3a4be/src/cljc/orcpub/dnd/e5/common.cljc | clojure | (ns orcpub.dnd.e5.common)
(defn slot-level-key [level]
(keyword "orcpub.dnd.e5.spells" (str "slots-" level)))
| |
8d4be676887834b54c92afc35ad9bd34c69e673a60b70098da9ec8044e5f49e0 | lipas-liikuntapaikat/lipas | subs.cljs | (ns lipas.ui.analysis.reachability.subs
(:require
[clojure.string :as string]
[goog.date.duration :as gduration]
[goog.object :as gobj]
[goog.color :as gcolor]
[lipas.utils :as utils]
[re-frame.core :as re-frame]))
(re-frame/reg-sub
::reachability
(fn [db _]
(-> db :analysis :reachability)))
... | null | https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/b49e5479582462f61462b643552c4118725d6438/webapp/src/cljs/lipas/ui/analysis/reachability/subs.cljs | clojure | travel time
distance
Calc cumulative results
Calculate cumulative results | (ns lipas.ui.analysis.reachability.subs
(:require
[clojure.string :as string]
[goog.date.duration :as gduration]
[goog.object :as gobj]
[goog.color :as gcolor]
[lipas.utils :as utils]
[re-frame.core :as re-frame]))
(re-frame/reg-sub
::reachability
(fn [db _]
(-> db :analysis :reachability)))
... |
f9f8ba1a36b64d4cc35a365b216c3c9c2b09f868b1d61e23aff5ac06395c2d05 | wireapp/wire-server | Cassandra.hs | module Brig.Effects.BlacklistStore.Cassandra
( interpretBlacklistStoreToCassandra,
)
where
import Brig.Data.UserKey
import Brig.Effects.BlacklistStore (BlacklistStore (..))
import Cassandra
import Imports
import Polysemy
interpretBlacklistStoreToCassandra ::
forall m r a.
(MonadClient m, Member (Embed m) r) =... | null | https://raw.githubusercontent.com/wireapp/wire-server/e084f131c4fec095ee62d703d7a21638d89cbf24/services/brig/src/Brig/Effects/BlacklistStore/Cassandra.hs | haskell | ------------------------------------------------------------------------------ | module Brig.Effects.BlacklistStore.Cassandra
( interpretBlacklistStoreToCassandra,
)
where
import Brig.Data.UserKey
import Brig.Effects.BlacklistStore (BlacklistStore (..))
import Cassandra
import Imports
import Polysemy
interpretBlacklistStoreToCassandra ::
forall m r a.
(MonadClient m, Member (Embed m) r) =... |
cf9073416648ad10663b4817430bd87be1bbdb5e7a3631bc6fbdfadbbd600086 | RobYang1024/OCaMOSS | winnowing.ml | module type BoundedQueueWithCounter = sig
type 'a t
val empty : int -> 'a t
val create : int -> 'a -> 'a t
val is_empty : 'a t -> bool
val is_full : 'a t -> bool
val size : 'a t -> int
val enqueue : 'a -> 'a t -> 'a t
val dequeue : 'a t -> 'a option * 'a t
val count : 'a t -> int
val fold : ('b -> '... | null | https://raw.githubusercontent.com/RobYang1024/OCaMOSS/86ecd2359f86a8d746e62ceab4ddb6d0e44bbd0f/winnowing.ml | ocaml | h = hashes list, w = window size
helper function | module type BoundedQueueWithCounter = sig
type 'a t
val empty : int -> 'a t
val create : int -> 'a -> 'a t
val is_empty : 'a t -> bool
val is_full : 'a t -> bool
val size : 'a t -> int
val enqueue : 'a -> 'a t -> 'a t
val dequeue : 'a t -> 'a option * 'a t
val count : 'a t -> int
val fold : ('b -> '... |
bbb6f39584427182f0bf54d2e5d515d6dd2bf73e1eec110af50d8a5414a51c87 | mirage/mirage-console | mirage_console.ml |
* Copyright ( c ) 2011 - present < >
* Copyright ( c ) 2013 - present < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
... | null | https://raw.githubusercontent.com/mirage/mirage-console/5e31c2c92f341c0b593217d4a1370a5e0084f722/src/mirage_console.ml | ocaml | * Console signature for MirageOS
* Console signature.
* The type representing the internal state of the console.
* Disconnect from the console. While this might take some time to
complete, it can never result in an error.
* [log t str] writes [str] to the console [t], appending appropriate line
endings.... |
* Copyright ( c ) 2011 - present < >
* Copyright ( c ) 2013 - present < >
*
* 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 .
... |
f36bfc22eabd42bf29eba5778481a67b03cdae571d55309f896c1758a866fbba | LexiFi/menhir | SortInference.ml | (******************************************************************************)
(* *)
(* *)
... | null | https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/SortInference.ml | ocaml | ****************************************************************************
file LICEN... |
, Paris
, PPS , Université Paris Diderot
. All rights reserved . This file is distributed under the
terms of the GNU General Public License version 2 , as... |
6ecb095db116bbb8279379c045bad7565152835220cb1965b459c48709ffd48c | weavery/clarc | debug.mli | (* This is free and unencumbered software released into the public domain. *)
val print_debug : Format.formatter -> program -> unit
| null | https://raw.githubusercontent.com/weavery/clarc/1fb1c43210f52b4022e7f0ae30b7c7d4a9e7ca01/lib/EVM/debug.mli | ocaml | This is free and unencumbered software released into the public domain. |
val print_debug : Format.formatter -> program -> unit
|
bcc3a9f447d84e11623a7cfbd417ca16ffcc09192725aa7e5bcc82d4cb4f88d8 | hmac/kite | Common.hs | -- Shared types and functions for parsing the surface syntax
module Syn.Parse.Common where
import Control.Monad ( guard )
import Control.Monad.Reader ( Reader
, local
, runRead... | null | https://raw.githubusercontent.com/hmac/kite/a48839fa5a4edce3bc7a758e4fcb1bda38a556f0/src/Syn/Parse/Common.hs | haskell | Shared types and functions for parsing the surface syntax
- They all consume trailing whitespace, including newlines
- Before consuming any input, they compare the current column to the 'indentCol' in
'ParseSettings'. If the current column is less than 'indentCol', they fail.
Together, these rules mean that par... | module Syn.Parse.Common where
import Control.Monad ( guard )
import Control.Monad.Reader ( Reader
, local
, runReader
)
import ... |
a4ce604fd03ebb55bb0b9b4ff893e0d39d3b2b9c415a9ebd82877a98483351f3 | kuberlog/daemon-clj | todo.clj | (ns daemon.temporal-lobe.todo
(:require
[daemon.settings :as settings]
[daemon.voice.core :as voice]))
(defn load-todo-file
"Attempts to find the todo file. If it can not, then it will say so."
[]
(try
settings/todo-file
(catch Exception e (voice/speak "I can not find your todo list."))))
... | null | https://raw.githubusercontent.com/kuberlog/daemon-clj/904699d005ea2df3d86426d8aa1d3b030178e683/src/daemon/temporal_lobe/todo.clj | clojure | (ns daemon.temporal-lobe.todo
(:require
[daemon.settings :as settings]
[daemon.voice.core :as voice]))
(defn load-todo-file
"Attempts to find the todo file. If it can not, then it will say so."
[]
(try
settings/todo-file
(catch Exception e (voice/speak "I can not find your todo list."))))
... | |
e3f27de1a080972067ec7bdc7f27400b36dd95a188b04ba7592b1c66799328f4 | lispbuilder/lispbuilder | rwops.lisp | SDL ( Simple Media Layer ) library using CFFI for foreign function interfacing ...
( C)2006 Justin Heyes - Jones < > and < >
Thanks to and
;; see COPYING for license
This file contains some useful functions for using SDL from Common lisp
;; using sdl.lisp (the CFFI wrapper)
(in-package #:lispbuilder-sd... | null | https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/base/rwops.lisp | lisp | see COPYING for license
using sdl.lisp (the CFFI wrapper)
(format t "create-RWops-from-file: ~A~%" rwops) | SDL ( Simple Media Layer ) library using CFFI for foreign function interfacing ...
( C)2006 Justin Heyes - Jones < > and < >
Thanks to and
This file contains some useful functions for using SDL from Common lisp
(in-package #:lispbuilder-sdl-base)
(defun create-RWops-from-file (filename)
(let ((file... |
33d499c395622047cc4e5731201fb94d2da3f966233d810f3d599c17b75d82be | justinmeiners/exercises | ring-matrix.scm | ; An excercise in tropical semirings for my Abstract Algebra course.
The applications came from book
[ From Mathematics to Generic Programming](/ ) .
(define (ring-create add-op add-identity mult-op mult-identity)
(cons (cons add-op add-identity) (cons mult-op mult-identity)))
(define (ring-add-op ring) (ca... | null | https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/semiring-paths/ring-matrix.scm | scheme | An excercise in tropical semirings for my Abstract Algebra course.
matrix operation
find the index of an item in a list | The applications came from book
[ From Mathematics to Generic Programming](/ ) .
(define (ring-create add-op add-identity mult-op mult-identity)
(cons (cons add-op add-identity) (cons mult-op mult-identity)))
(define (ring-add-op ring) (car (car ring)))
(define (ring-add-identity ring) (cdr (car ring)))
(def... |
2c277ee6b886f1bec3096cfe41d7feea651a2b8a476b5160255b6a835c1b1926 | janestreet/core_unix | test_uuid.ml | open! Core
open! Expect_test_helpers_core
open! Uuid
open! Uuid_unix
module Thread = Core_thread
let%test_unit "nil is valid" = Private.(is_valid_exn nil)
module _ = struct
let test_size = 100_000
let no_collisions l =
let rec loop set l =
match l with
| [] -> true
| t :: rest -> if Core.Se... | null | https://raw.githubusercontent.com/janestreet/core_unix/0426d9f0da51e6e2c228cf87f2ab130f7e0efbc8/uuid_unix/test/test_uuid.ml | ocaml | open! Core
open! Expect_test_helpers_core
open! Uuid
open! Uuid_unix
module Thread = Core_thread
let%test_unit "nil is valid" = Private.(is_valid_exn nil)
module _ = struct
let test_size = 100_000
let no_collisions l =
let rec loop set l =
match l with
| [] -> true
| t :: rest -> if Core.Se... | |
f6533a9260d245c8573f414e446da26ffcf7d9f266524e13bffe580fe107b8cf | shirok/Gauche | selector.scm | ;;;
;;; selector - simple event loop by select()
;;;
Copyright ( c ) 2000 - 2022 < >
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; 1. Redistributions of source code must retain the... | null | https://raw.githubusercontent.com/shirok/Gauche/b773899dbe0b2955e1c4f1daa066da874070c1e4/lib/gauche/selector.scm | scheme |
selector - simple event loop by select()
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the followi... | Copyright ( c ) 2000 - 2022 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
(define-module gauche.selector
(use schem... |
d0897a875e574343d68994efb555e0628df1623930c77470b3c37b963ca038b8 | dyne/freecoin-lib | api_key.clj | Freecoin - lib - library to facilitate blockchain functions
part of Decentralized Citizen Engagement Technologies ( D - CENT )
R&D funded by the European Commission ( FP7 / CAPS 610349 )
Copyright ( C ) 2018- Dyne.org foundation
designed , written and maintained by
< >
Freecoin - lib is free softw... | null | https://raw.githubusercontent.com/dyne/freecoin-lib/70eca6858b3765310fdf134378a3026de9adb121/src/freecoin_lib/db/api_key.clj | clojure | you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version .
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See th... | Freecoin - lib - library to facilitate blockchain functions
part of Decentralized Citizen Engagement Technologies ( D - CENT )
R&D funded by the European Commission ( FP7 / CAPS 610349 )
Copyright ( C ) 2018- Dyne.org foundation
designed , written and maintained by
< >
You should have received a... |
6d7c968679b7f8b14518cce88a35bd09f846d519a0717e444ad52189e87d9834 | danx0r/festival | multisyn.scm | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ;;
Centre for Speech Technology Research ; ;
University of Edinburgh , UK ; ;
... | null | https://raw.githubusercontent.com/danx0r/festival/6701715566aee6519a8b7949b567f2fdad1e2772/lib/multisyn/multisyn.scm | scheme |
;;
;
;
;
;
;;
Permission is hereby granted, free of charge, to use and distribute ;;
this software and its documentation without restriction, including ;;
without l... | Multisyn top level scheme code ( and )
(require_module 'UniSyn)
(require_module 'MultiSyn)
(require 'multisyn_pauses)
(require 'target_cost)
use a global parameter to specify which UnitSelection voice
(defvar currentMultiSynVoice nil)
(defvar relp t)
(defvar flattenVoice nil)
extract utt list from a .dat... |
82026904675ddf872d999e12b0f5f0dd3731f60e7b5b234e2ab01cfd4b058bad | spawngrid/cowboy_session | example_http_handler.erl | -module(example_http_handler).
-export([init/3, handle/2, terminate/2]).
init({tcp, http}, Req, _Opts) ->
{ok, Req, undefined_state}.
handle(Req, State) ->
{Session, _} = cowboy_session:from_req(Req),
case Session of
undefined ->
{ok, Req2} = cowboy_http_req:reply(200, [], <<"No session">>, Req)... | null | https://raw.githubusercontent.com/spawngrid/cowboy_session/515c17c42b414ce516468c3c3236c2f16ca16482/example/src/example_http_handler.erl | erlang | -module(example_http_handler).
-export([init/3, handle/2, terminate/2]).
init({tcp, http}, Req, _Opts) ->
{ok, Req, undefined_state}.
handle(Req, State) ->
{Session, _} = cowboy_session:from_req(Req),
case Session of
undefined ->
{ok, Req2} = cowboy_http_req:reply(200, [], <<"No session">>, Req)... | |
60082288d6f35a0f074e6b7c5f4f76c6c7abb873e9a6ffb7777d074bda6c2ead | benedekfazekas/mranderson | project.clj | (def project-version "0.5.4-SNAPSHOT")
(defproject thomasa/mranderson project-version
:description "Dependency inlining and shadowing tool."
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:eval-in :leiningen
:java-source-paths ["java-src"]
:javac-options ~(if (re-find #"^1\.... | null | https://raw.githubusercontent.com/benedekfazekas/mranderson/8caf97625e0e36a11da68138bbcc3a59b5ef2219/project.clj | clojure | /
copy of plugin.mranderson/config profile, needed here so mrandersoned pom/jar can be built for mranderson itself
see Makefile for usage | (def project-version "0.5.4-SNAPSHOT")
(defproject thomasa/mranderson project-version
:description "Dependency inlining and shadowing tool."
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:eval-in :leiningen
:java-source-paths ["java-src"]
:javac-options ~(if (re-find #"^1\.... |
eb29ec65156f6c90d6b251c9b8ddf581a4a131aaa8dfe14ec634473ce8b39672 | sifbiri/project-resources-operations | import.cljs | (ns app.model.import
(:require [com.fulcrologic.fulcro.mutations :as mutations :refer [defmutation]]
[com.fulcrologic.fulcro.networking.file-url :as file-url]
[com.fulcrologic.fulcro.components :as comp]
[com.fulcrologic.fulcro.algorithms.normalized-state :as ns]
[com.... | null | https://raw.githubusercontent.com/sifbiri/project-resources-operations/b08adb09ef03f123ca7ad19ec1c2bdc070a66291/src/main/app/model/import.cljs | clojure | body will be a js ArrayBuffer. file-url ns has helpers to convert to data url | (ns app.model.import
(:require [com.fulcrologic.fulcro.mutations :as mutations :refer [defmutation]]
[com.fulcrologic.fulcro.networking.file-url :as file-url]
[com.fulcrologic.fulcro.components :as comp]
[com.fulcrologic.fulcro.algorithms.normalized-state :as ns]
[com.... |
a3e767b92ab0356e52bc07a65a643c21f8dad57af4cf13c55388c02e43ff594a | Opetushallitus/aipal | kayttaja.clj | (ns aipal.infra.kayttaja
(:require [clojure.tools.logging :as log]
clojure.set))
(def ^:dynamic *kayttaja*)
(defn kayttajalla-on-jokin-rooleista? [roolit]
(let [aktiivinen-rooli (get-in *kayttaja* [:aktiivinen-rooli :rooli])]
(boolean (some #{aktiivinen-rooli} roolit))))
(defn yllapitaja? []
(k... | null | https://raw.githubusercontent.com/Opetushallitus/aipal/767bd14ec7153dc97fdf688443b9687cdb70082f/aipal/src/clj/aipal/infra/kayttaja.clj | clojure | (ns aipal.infra.kayttaja
(:require [clojure.tools.logging :as log]
clojure.set))
(def ^:dynamic *kayttaja*)
(defn kayttajalla-on-jokin-rooleista? [roolit]
(let [aktiivinen-rooli (get-in *kayttaja* [:aktiivinen-rooli :rooli])]
(boolean (some #{aktiivinen-rooli} roolit))))
(defn yllapitaja? []
(k... | |
c20c88e28514882f156809410217b9752191d5dc925cc6420e9421931f76125b | LuisThiamNye/chic | clipboard.clj | (ns chic.clipboard
(:refer-clojure :exclude [get set])
(:import
(io.github.humbleui.jwm Clipboard ClipboardFormat ClipboardEntry)))
(def kw->format
{:text:plain ClipboardFormat/TEXT})
(defn get [fmt]
(let [a ^"[Lio.github.humbleui.jwm.ClipboardFormat;" (make-array ClipboardFormat 1)]
(aset a 0 ^Clipboa... | null | https://raw.githubusercontent.com/LuisThiamNye/chic/813633a689f9080731613f788a295604d4d9a510/src/chic/clipboard.clj | clojure | (ns chic.clipboard
(:refer-clojure :exclude [get set])
(:import
(io.github.humbleui.jwm Clipboard ClipboardFormat ClipboardEntry)))
(def kw->format
{:text:plain ClipboardFormat/TEXT})
(defn get [fmt]
(let [a ^"[Lio.github.humbleui.jwm.ClipboardFormat;" (make-array ClipboardFormat 1)]
(aset a 0 ^Clipboa... | |
54e55ce81d9e1bb4a5aa5a70db90b4d3c9bc6b0b8acc68f2e35ef521c482bf8a | input-output-hk/ouroboros-network | ConnectionTable.hs |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
module Ouroboros.Network.Server.ConnectionTable
( ConnectionTable
, ConnectionTableRef (..)
, ValencyCounter
, newConnectionTableSTM... | null | https://raw.githubusercontent.com/input-output-hk/ouroboros-network/a8c9cfc8636172e519f7522fac04b5f6e476037b/ouroboros-network-framework/src/Ouroboros/Network/Server/ConnectionTable.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE FlexibleContexts #
# LANGUAGE RankNTypes #
import Control.Tracer XXX Not Yet
servers and subscription workers. It's main purpose is to avoid the creation of duplicate
connections (especially connections with identical source address, destination addres... |
# LANGUAGE NamedFieldPuns #
# LANGUAGE ScopedTypeVariables #
module Ouroboros.Network.Server.ConnectionTable
( ConnectionTable
, ConnectionTableRef (..)
, ValencyCounter
, newConnectionTableSTM
, newConnectionTable
, refConnectionSTM
, refConnection
, addConnection
, removeConnectionSTM
, re... |
64a4525b957a6fa2dbf2f94aa017423fb4851527c26c658ae0e9bd813102de3b | quil/quil-examples | 18_warped_circle_from_fading_opposing_lines.clj | (ns quil-sketches.gen-art.18-warped-circle-from-fading-opposing-lines
(:require [quil.core :refer :all]
[quil.helpers.seqs :refer [range-incl steps]]
[quil.helpers.calc :refer [mul-add]]))
;; Example 18 - Warped Circle from Fading Opposing Lines
Taken from Section 4.2 , p79 ( Figure 4.13 )
... | null | https://raw.githubusercontent.com/quil/quil-examples/9ff9d5578d93682af29d9a080b917a19f8deafc8/src/quil_sketches/gen_art/18_warped_circle_from_fading_opposing_lines.clj | clojure | Example 18 - Warped Circle from Fading Opposing Lines
void setup() {
size(500,300);
smooth();
float radius;
float x1, y1, x2, y2;
float lastx = -999;
float lasty = -999;
float radiusNoise = random(10);
ang < = 360 ; ang + = 1 ) {
float rad = radians(ang);
x1 = centX + (radius * co... | (ns quil-sketches.gen-art.18-warped-circle-from-fading-opposing-lines
(:require [quil.core :refer :all]
[quil.helpers.seqs :refer [range-incl steps]]
[quil.helpers.calc :refer [mul-add]]))
Taken from Section 4.2 , p79 ( Figure 4.13 )
(defn setup []
(background 255)
(stroke-weight 0.5)... |
df0a01f412d43d86a1cff32289b14253832b76bf8b1dc57b4f3d6cc1ea8fcc31 | Ferada/cl-inotify | suite.lisp | -*- mode : lisp ; syntax : common - lisp ; coding : utf-8 - unix ; package : cl - inotify - tests ; -*-
Copyright ( c ) 2011 - 15 , Frahm
;; All rights reserved.
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are me... | null | https://raw.githubusercontent.com/Ferada/cl-inotify/bcc063b2be65b4bd726ec84a220ad3d9948550bc/tests/suite.lisp | lisp | syntax : common - lisp ; coding : utf-8 - unix ; package : cl - inotify - tests ; -*-
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer.
n... |
Copyright ( c ) 2011 - 15 , Frahm
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL ,
SPECIAL ,... |
bb22accaf5d34373a117a3f3e7222e764958142c7e05af7a3200e2b123461647 | clojure-interop/aws-api | AWSS3Control.clj | (ns com.amazonaws.services.s3control.AWSS3Control
"Interface for accessing AWS S3 Control.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSS3Control instead.
AWS S3 Control provides access to Amazon S3 control plane operations."
(:refer-clojure... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.s3control/src/com/amazonaws/services/s3control/AWSS3Control.clj | clojure | (ns com.amazonaws.services.s3control.AWSS3Control
"Interface for accessing AWS S3 Control.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSS3Control instead.
AWS S3 Control provides access to Amazon S3 control plane operations."
(:refer-clojure... | |
eafb1d6b751351f59095d44364db96963438c0357b7736b1492b1a7c835b5e85 | agrafix/funblog | Utils.hs | # LANGUAGE TypeFamilies #
module Web.Utils where
import Control.Monad.Logger
import Control.Monad.Trans
import Control.Monad.Trans.Resource
import Database.Persist.Sql (SqlBackend, SqlPersistT, runSqlConn)
import Text.Blaze.Html (Html)
import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
import Web.Spock
import qualified... | null | https://raw.githubusercontent.com/agrafix/funblog/d401fb61aef9a0d8310b767f44893ee7b13015c7/src/Web/Utils.hs | haskell | # INLINE blaze #
# INLINE decodeHex # | # LANGUAGE TypeFamilies #
module Web.Utils where
import Control.Monad.Logger
import Control.Monad.Trans
import Control.Monad.Trans.Resource
import Database.Persist.Sql (SqlBackend, SqlPersistT, runSqlConn)
import Text.Blaze.Html (Html)
import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
import Web.Spock
import qualified... |
1378c4d9b0b5e3f458fc8afdc2e8afdaf8f936d718f27435d3c81a12198ec672 | softwarelanguageslab/maf | R5RS_various_sat-2.scm | ; Changes:
* removed : 0
* added : 0
* swaps : 0
* negated predicates : 1
; * swapped branches: 0
* calls to i d fun : 3
(letrec ((phi (lambda (x1 x2 x3 x4)
(if (let ((__or_res x1)) (if __or_res __or_res (let ((__or_res (not x2))) (if __or_res __or_res (not x3)))))
(if (let ... | null | https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_sat-2.scm | scheme | Changes:
* swapped branches: 0 | * removed : 0
* added : 0
* swaps : 0
* negated predicates : 1
* calls to i d fun : 3
(letrec ((phi (lambda (x1 x2 x3 x4)
(if (let ((__or_res x1)) (if __or_res __or_res (let ((__or_res (not x2))) (if __or_res __or_res (not x3)))))
(if (let ((__or_res (not x2))) (<change> (if... |
1a3ff5d7bb442760b0b7fd6f246b4ec9d5473f30c17cb8c1fe203d42ec412f9f | scrintal/heroicons-reagent | hand_raised.cljs | (ns com.scrintal.heroicons.outline.hand-raised)
(defn render []
[:svg {:xmlns ""
:fill "none"
:viewBox "0 0 24 24"
:strokeWidth "1.5"
:stroke "currentColor"
:aria-hidden "true"}
[:path {:strokeLinecap "round"
:strokeLinejoin "round"
... | null | https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/hand_raised.cljs | clojure | (ns com.scrintal.heroicons.outline.hand-raised)
(defn render []
[:svg {:xmlns ""
:fill "none"
:viewBox "0 0 24 24"
:strokeWidth "1.5"
:stroke "currentColor"
:aria-hidden "true"}
[:path {:strokeLinecap "round"
:strokeLinejoin "round"
... | |
3497763fb6148ae35b15fe16a0f0df9ad06026cbbb485b22cb981080c57e32b5 | racketscript/racketscript | rename-and-import.rkt | #lang racket
(require (rename-in "private/simple-provide.rkt"
[say-hello say-hi]
[say-ahoy say-hi2]))
(say-hi "World!")
(say-hi2 "World!")
| null | https://raw.githubusercontent.com/racketscript/racketscript/f94006d11338a674ae10f6bd83fc53e6806d07d8/tests/modules/rename-and-import.rkt | racket | #lang racket
(require (rename-in "private/simple-provide.rkt"
[say-hello say-hi]
[say-ahoy say-hi2]))
(say-hi "World!")
(say-hi2 "World!")
| |
9210456f327a96327bdb384370bc67e3cdea1e0b3a5bad7806323dbb70178cbd | tolysz/ghcjs-stack | Internals.hs | # LANGUAGE CPP , MagicHash , UnboxedTuples , NoImplicitPrelude #
{-# OPTIONS_HADDOCK hide #-}
#ifdef ghcjs_HOST_OS
{-# LANGUAGE JavaScriptFFI, UnliftedFFITypes #-}
#endif
#include "MachDeps.h"
Fast integer logarithms to base 2 .
-- integerLog2# and wordLog2# are of general usefulness,
-- the others are only needed ... | null | https://raw.githubusercontent.com/tolysz/ghcjs-stack/83d5be83e87286d984e89635d5926702c55b9f29/special/integer-gmp/GHC/Integer/Logarithms/Internals.hs | haskell | # OPTIONS_HADDOCK hide #
# LANGUAGE JavaScriptFFI, UnliftedFFITypes #
integerLog2# and wordLog2# are of general usefulness,
the others are only needed for a fast implementation of
fromRational.
Since they are needed in GHC.Float, we must expose this
module, but it should not show up in the docs.
When larger word ... | # LANGUAGE CPP , MagicHash , UnboxedTuples , NoImplicitPrelude #
#ifdef ghcjs_HOST_OS
#endif
#include "MachDeps.h"
Fast integer logarithms to base 2 .
module GHC.Integer.Logarithms.Internals
( integerLog2#
, integerLog2IsPowerOf2#
, wordLog2#
, roundingMode#
) where
import GHC.Prim
import GHC.... |
3fa399a922e89648229c833eb2b94a3aa6d4769f4906135803fb856674e24a0b | softwarelanguageslab/maf | test_scv_NguyenGTH18_safe_mochi_neg.rkt.scm | (main -2147483647.0 112.0)
| null | https://raw.githubusercontent.com/softwarelanguageslab/maf/beac532a84f4f18f9eeac93946233aec4529ff0d/input/generated/test_scv_NguyenGTH18_safe_mochi_neg.rkt.scm | scheme | (main -2147483647.0 112.0)
| |
c8c2c8b0388e292d04a1a1782987df846aa60ddaaaedaed986422bf98f4a5cfc | rwmjones/guestfs-tools | drivers.ml | virt - drivers
* Copyright ( C ) 2009 - 2023 Red Hat Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 2 of the License , or
* ( at your option ) any la... | null | https://raw.githubusercontent.com/rwmjones/guestfs-tools/d9eb94c0dd50fab4f8ddfd725ed312c6d04d1cc2/drivers/drivers.ml | ocaml | Check -a and -d options.
ignore CDs, data drives
Display some of the standard virt-inspector fields.
Now mount up the disks in order to detect bootloader and kernels.
XXX This shouldn't be necessary. Linux_* modules should do it.
Decrypt the disks.
Can't call inspect_mount_root here (ie. normal processing... | virt - drivers
* Copyright ( C ) 2009 - 2023 Red Hat Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 2 of the License , or
* ( at your option ) any la... |
437eff2be0983b83e03414a827848b38d51ab5a071dd9f092e5d4c3092e61801 | sockjs/sockjs-erlang | sockjs_session.erl | -module(sockjs_session).
-behaviour(gen_server).
-export([init/0, start_link/3]).
-export([maybe_create/3, reply/1, reply/2, received/2]).
-export([send/2, close/3, info/1]).
-export([init/1, handle_call/3, handle_info/2, terminate/2, code_change/3,
handle_cast/2]).
-include("sockjs_internal.hrl").
-type(... | null | https://raw.githubusercontent.com/sockjs/sockjs-erlang/66ea7f3fabac8d0f66aa88a354577b7c6be8fe9a/src/sockjs_session.erl | erlang | --------------------------------------------------------------------------
--------------------------------------------------------------------------
Mark a process as waiting for data.
Prolong session lifetime.
3) Event from someone else? Ignore.
------------------------------------------------------------------... | -module(sockjs_session).
-behaviour(gen_server).
-export([init/0, start_link/3]).
-export([maybe_create/3, reply/1, reply/2, received/2]).
-export([send/2, close/3, info/1]).
-export([init/1, handle_call/3, handle_info/2, terminate/2, code_change/3,
handle_cast/2]).
-include("sockjs_internal.hrl").
-type(... |
b2bc21b4ef30129bfcf3d7e40a3c6fb04b8e81e732b24c0bc318a171d9bfa3be | ocaml-omake/omake | omake_target.mli | val target_is_buildable : Omake_cache.t -> Omake_env.t -> Omake_value_type.pos -> Omake_node.Node.t -> bool
val target_is_buildable_proper : Omake_cache.t -> Omake_env.t -> Omake_value_type.pos -> Omake_node.Node.t -> bool
val venv_find_buildable_implicit_rule : Omake_cache.t -> Omake_env.t -> Omake_value_type.pos -> O... | null | https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/build/omake_target.mli | ocaml | val target_is_buildable : Omake_cache.t -> Omake_env.t -> Omake_value_type.pos -> Omake_node.Node.t -> bool
val target_is_buildable_proper : Omake_cache.t -> Omake_env.t -> Omake_value_type.pos -> Omake_node.Node.t -> bool
val venv_find_buildable_implicit_rule : Omake_cache.t -> Omake_env.t -> Omake_value_type.pos -> O... | |
032bfef1cecc7e29e084b1148c13a32690999d05600dbd8b5383ae6c97059948 | sheyll/mediabus | Media.hs | | This module contains mainly the informative ' IsMedia ' type class and
-- corresponding type classes for media lenses.
module Data.MediaBus.Media.Media
( IsMedia (),
MediaDescription (..),
HasMedia (..),
type HasMedia',
media',
type HasMediaL,
type HasMediaL',
EachMedia (..),
type ... | null | https://raw.githubusercontent.com/sheyll/mediabus/351272b2bb26a1bde7b0ffda6ceabc623ede2b14/src/Data/MediaBus/Media/Media.hs | haskell | corresponding type classes for media lenses.
* Media
| Very abstract class of media content types. The only universal feature is that it has a static description.
TODO HasDuration instance??
| A proxy type to display static media info via a 'Show' instance
* Media container 'Lens'es
| A 'Lens' for the media with... | | This module contains mainly the informative ' IsMedia ' type class and
module Data.MediaBus.Media.Media
( IsMedia (),
MediaDescription (..),
HasMedia (..),
type HasMedia',
media',
type HasMediaL,
type HasMediaL',
EachMedia (..),
type EachMedia',
eachMedia',
type EachMediaL,... |
e765f23c62aa70c08c88a03efd119bebd56dfcf9831e3233e815aea81a93e841 | maybevoid/casimir | Pipeline.hs |
module Casimir.Computation.Pipeline
( Pipeline (..)
, BasePipeline
, TransformerHandler (..)
, SimplePipeline
, GenericPipeline
, opsHandlerToPipeline
, transformePipeline
, castPipelineOps
, castPipelineHandler
, composePipelines
, composeExactPipelines
, runPipeline
, runPipelineWithCast
... | null | https://raw.githubusercontent.com/maybevoid/casimir/ebbfa403739d6f258e6ac6793549006a0e8bff42/casimir/src/lib/Casimir/Computation/Pipeline.hs | haskell |
module Casimir.Computation.Pipeline
( Pipeline (..)
, BasePipeline
, TransformerHandler (..)
, SimplePipeline
, GenericPipeline
, opsHandlerToPipeline
, transformePipeline
, castPipelineOps
, castPipelineHandler
, composePipelines
, composeExactPipelines
, runPipeline
, runPipelineWithCast
... | |
f2801d250e0e88256bf65c17d342f531d56124da75d26bcbb6c98fa80a47a07f | erlang/rebar3 | r3_hex_tarball.erl | %% Vendored from hex_core v0.7.1, do not edit manually
-module(r3_hex_tarball).
-export([create/2, create/3, create_docs/1, create_docs/2, unpack/2, unpack/3,
unpack_docs/2, unpack_docs/3, format_checksum/1, format_error/1]).
-ifdef(TEST).
-export([do_decode_metadata/1, gzip/1, normalize_requirements/1]).
-endif.
... | null | https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/apps/rebar/src/vendored/r3_hex_tarball.erl | erlang | Vendored from hex_core v0.7.1, do not edit manually
====================================================================
API functions
====================================================================
@doc
Creates a package tarball.
Returns the binary of the tarball the "inner checksum" and "outer checksum".
... |
-module(r3_hex_tarball).
-export([create/2, create/3, create_docs/1, create_docs/2, unpack/2, unpack/3,
unpack_docs/2, unpack_docs/3, format_checksum/1, format_error/1]).
-ifdef(TEST).
-export([do_decode_metadata/1, gzip/1, normalize_requirements/1]).
-endif.
-define(VERSION, <<"3">>).
-define(BUILD_TOOL_FILES, [
... |
50e6b95ebf93ea27d46bd202d3f999dd53fbf7976ecb1670ecb6fc6d14296bff | opencog/opencog | filter-#3.scm | ;; antecedent's number > anaphora's number
;; Examples:
" saw an apple under a tree , he ate a banana . "
;; While resolving the pronoun "he", "banana" should not be an antecedent.
(define filter-#3
(BindLink
(VariableList
(TypedVariableLink
(VariableNode "$word-inst-antece... | null | https://raw.githubusercontent.com/opencog/opencog/53f2c2c8e26160e3321b399250afb0e3dbc64d4c/opencog/nlp/anaphora/rules/filters/filter-%233.scm | scheme | antecedent's number > anaphora's number
Examples:
While resolving the pronoun "he", "banana" should not be an antecedent.
filter |
" saw an apple under a tree , he ate a banana . "
(define filter-#3
(BindLink
(VariableList
(TypedVariableLink
(VariableNode "$word-inst-antecedent")
(TypeNode "WordInstanceNode")
)
(TypedVariableLink
(VariableNode "$w... |
2987dfef61342e4c0169fe9d2d3d7f440c03f03a59265e2fac4449d7940e722c | Workiva/eva | aggregates.clj | Copyright 2015 - 2019 Workiva Inc.
;;
;; Licensed under the Eclipse Public License 1.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -1.0.php
;;
;; Unless required by applicable law or agreed to in writing, software
dist... | null | https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/query/dialect/aggregates.clj | clojure |
Licensed under the Eclipse Public License 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-1.0.php
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | Copyright 2015 - 2019 Workiva Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns eva.query.dialect.aggregates
"Aggregates usable in the :find specification of queries."
(:require [utiliva.comparator :as cmp]
[eva.query.error :refer [raise-builtin]]
[recide.san... |
a3c05f60133750e0920ac76788f521dde68ade27bdec6e45a5918752ee05a9ca | aryx/yacfe | map_.ml | pad : same than for Setb , module : OrderedType ) = struct
(***********************************************************************)
(* *)
(* Objective Caml *)
(* ... | null | https://raw.githubusercontent.com/aryx/yacfe/86a4994822abca03ec9e03f1a7e60eca66db0a08/commons/map_.ml | ocaml | *********************************************************************
Objective Caml
... | pad : same than for Setb , module : OrderedType ) = struct
, projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
under the terms of the GNU Library General Pub... |
fcc8af780752030b665de72cc4dc8e9e7040cb0e207108ec20345f8a5291346a | fukamachi/rove | dot.lisp | (defpackage #:rove/reporter/dot
(:use #:cl
#:rove/reporter
#:rove/core/stats
#:rove/core/result
#:rove/misc/stream
#:rove/misc/color
#:rove/utils/reporter)
(:export #:dot-reporter))
(in-package #:rove/reporter/dot)
(defclass dot-reporter (reporter) ())
(defmethod re... | null | https://raw.githubusercontent.com/fukamachi/rove/861dd0528914cf5ed91f7a63cf1081ba58df3788/reporter/dot.lisp | lisp | (defpackage #:rove/reporter/dot
(:use #:cl
#:rove/reporter
#:rove/core/stats
#:rove/core/result
#:rove/misc/stream
#:rove/misc/color
#:rove/utils/reporter)
(:export #:dot-reporter))
(in-package #:rove/reporter/dot)
(defclass dot-reporter (reporter) ())
(defmethod re... | |
9c27f41fb16c55825f468ccb1ed8c051eb7e96a00bffb205de0d8b7153348651 | stepcut/plugins | Main.hs | import System.Plugins
import API
import System.Directory
main = do
#if __GLASGOW_HASKELL__ >= 604
tmpDir <- getTemporaryDirectory
#else
let tmpDir = "/tmp"
#endif
status <- make "../Plugin.hs" [ "-i../api", "-odir", tmpDir ]
o <- case status of
MakeSuccess _ o -> return ... | null | https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/testsuite/make/odir/prog/Main.hs | haskell | import System.Plugins
import API
import System.Directory
main = do
#if __GLASGOW_HASKELL__ >= 604
tmpDir <- getTemporaryDirectory
#else
let tmpDir = "/tmp"
#endif
status <- make "../Plugin.hs" [ "-i../api", "-odir", tmpDir ]
o <- case status of
MakeSuccess _ o -> return ... | |
6d6b3be81b47b387879f4cfb4c45063c9e04bdbe2de9b7ef51afd62a44f28c05 | skogsbaer/roundtrip | Classes.hs | module Text.Roundtrip.Classes where
import Prelude hiding ((<*>), pure)
import Data.Eq (Eq)
import Data.Char (Char)
import Data.Text as T
import Data.XML.Types (Name(..), Content)
import Control.Isomorphism.Partial (IsoFunctor)
infixl 3 <|>
infixl 3 <||>
infixr 6 <*>
class ProductFunctor f where
(<*>) :: f alph... | null | https://raw.githubusercontent.com/skogsbaer/roundtrip/a0c6b7c285f99db227bfb421158ab60dfb9e17e7/src/Text/Roundtrip/Classes.hs | haskell | (<*>) :: delta alpha -> delta beta -> delta (alpha, beta)
(<|>) :: delta alpha -> delta alpha -> delta alpha
empty :: delta alpha
FIXME: parser for attr value | module Text.Roundtrip.Classes where
import Prelude hiding ((<*>), pure)
import Data.Eq (Eq)
import Data.Char (Char)
import Data.Text as T
import Data.XML.Types (Name(..), Content)
import Control.Isomorphism.Partial (IsoFunctor)
infixl 3 <|>
infixl 3 <||>
infixr 6 <*>
class ProductFunctor f where
(<*>) :: f alph... |
23c9cfd528b6cd9ecffa6a01e8f65d871a37d26c79d55f36886a0299165442d6 | pedestal/pedestal-app | build.clj | Copyright 2014 Cognitect , 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-tools/src/io/pedestal/app_tools/build.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 2014 Cognitect , Inc.
Eclipse Public License 1.0 ( )
(ns io.pedestal.app-tools.build
(:use [io.pedestal.app-tools.compile.config :only [cljs-compilation-options]]
[io.pedestal.app-tools.host-page :only [application-host]]
[io.pedestal.app.templates :only [load-html html-dependencies]]... |
0efe9a53092d06cff0c4d6a0dd434169e881484f822671a919e8b87588d40866 | lorepub/moot | Main.hs | module Main where
import Prelude (IO)
import Model (runDevDB)
import Model.Fixtures (wipeAndReinstallFixtures)
main :: IO ()
main =
runDevDB wipeAndReinstallFixtures
| null | https://raw.githubusercontent.com/lorepub/moot/793c72d046762ec01a250416667e041b35eec7f8/app/fixtures/Main.hs | haskell | module Main where
import Prelude (IO)
import Model (runDevDB)
import Model.Fixtures (wipeAndReinstallFixtures)
main :: IO ()
main =
runDevDB wipeAndReinstallFixtures
| |
0c2d0b814d604cc80f5139b94ea3e563557a2afaacecf3128c854a4dc33b94f8 | AbstractMachinesLab/caramel | Parse_with_comments.mli | (**************************************************************************)
(* *)
(* OCamlFormat *)
(* *)
... | null | https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocamlformat-0.17.0/lib/Parse_with_comments.mli | ocaml | ************************************************************************
OCamlFormat
... | Copyright ( c ) Facebook , Inc. and its affiliates .
This source code is licensed under the MIT license found in
type 'a with_comments =
{ast: 'a; comments: Cmt.t list; prefix: string; source: Source.t}
module W : sig
type t
val in_lexer : int list
val disable : int ->... |
678c7197b95b18541ad2f28e35ba4b29a3b9d8538a956a5fb43b05e769b7e7d7 | biocaml/biocaml | biocaml_tags.ml | open Core.Std
open Biocaml_internal_utils
module Gff = Biocaml_gff
module Wig = Biocaml_wig
let dbg = Debug.make "tags"
type file_format =
[ `gzip of file_format
| `raw_zip of file_format
| `gff of Gff.Tags.t
| `wig of Wig.Tags.t
| `table of Biocaml_table.Row.Tags.t
| `bam
| `sam
| `bed
| `fastq
|... | null | https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/src/tmp/biocaml_tags.ml | ocaml | * Generic union of possible output transforms.
must be int-sequence
We let `output_transform` try its best for any pair of file-formats
no way we got there through another path
Qualities Fasta-full-item → string, no possible error
must be int-sequence because of previous case | open Core.Std
open Biocaml_internal_utils
module Gff = Biocaml_gff
module Wig = Biocaml_wig
let dbg = Debug.make "tags"
type file_format =
[ `gzip of file_format
| `raw_zip of file_format
| `gff of Gff.Tags.t
| `wig of Wig.Tags.t
| `table of Biocaml_table.Row.Tags.t
| `bam
| `sam
| `bed
| `fastq
|... |
2d584c43a3987c008faca41b1aafe16866f7c0c2d96c041bf09272ad2e0bf4e4 | ocaml-multicore/effects-examples | state.ml | (* state.ml *)
This file introduces the type [ CELL ] formalizing a memory cell
as a functor that , for any given type , implements the [ STATE ]
interface .
Three cell implementations are given :
( 1 ) [ GlobalMutVar ] , an implementation using global state .
( 2 ) [ LocalMutVar ] , an imp... | null | https://raw.githubusercontent.com/ocaml-multicore/effects-examples/27934789d037743dee7d7281653f718451993166/state.ml | ocaml | state.ml
---------------------------------------------------------------------------
* Type Definitions.
[TYPE] specifies a type [t].
[STATE] is the type of a module that offers the functions [get] and [set]
for manipulating a piece of mutable state with contents in the type [t].
This module must also off... |
This file introduces the type [ CELL ] formalizing a memory cell
as a functor that , for any given type , implements the [ STATE ]
interface .
Three cell implementations are given :
( 1 ) [ GlobalMutVar ] , an implementation using global state .
( 2 ) [ LocalMutVar ] , an implementation usi... |
125daed6224274c9e0edccf41aba03ce9fe056f55092bcfe2446683fdd68e15c | jacekschae/learn-reagent-course-files | admin_panel.cljs | (ns giggin.components.admin-panel
(:require [giggin.state :as state]
[giggin.fb.db :refer [db-save!]]))
(defn admin-panel
[]
[:div.admin-panel
[:button.btn.btn--primary
{:styles {:width "100%"}
:on-click #(db-save! ["gigs"] (clj->js @state/gigs))}
"Publish"]])
| null | https://raw.githubusercontent.com/jacekschae/learn-reagent-course-files/bad40303c8e0a8526318a69fdf9c2d786b4240cb/increments/26-security-rules/src/giggin/components/admin_panel.cljs | clojure | (ns giggin.components.admin-panel
(:require [giggin.state :as state]
[giggin.fb.db :refer [db-save!]]))
(defn admin-panel
[]
[:div.admin-panel
[:button.btn.btn--primary
{:styles {:width "100%"}
:on-click #(db-save! ["gigs"] (clj->js @state/gigs))}
"Publish"]])
| |
1003e9e766094cae717c51f99cdaf903397a04ac4b501a59ec2128aea720e9bb | xapi-project/xen-api | pool_db_backup.ml |
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking describe... | null | https://raw.githubusercontent.com/xapi-project/xen-api/fa6f118fb512a2c90159368a1a0bc1cc730c895b/ocaml/xapi/pool_db_backup.ml | ocaml | * Synchronises a copy of the master database amongst the pool's hosts
* @group Pool Management
* Write the database dump out to a file/socket
* Make sure the backup database version is compatible
To prevent duplicate installation_uuids or duplicate IP address confusing the
"no other masters" check we remov... |
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc.
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ; version 2.1 only . with the special
* exception on linking describe... |
ac0d910269a3e5d6c12d42d8b6e0970ac99f8ce6429dc1b2627aa290e4de885b | Ericson2314/lighthouse | Scale.hs | {-# OPTIONS -Wall -Werror #-}
-- #hide
module Data.Time.Clock.Scale
(
-- * Universal Time
| Time as measured by the earth .
UniversalTime(..),
-- * Absolute intervals
DiffTime,
secondsToDiffTime, picosecondsToDiffTime
) where
import Data.Ratio ((%))
import Data.Fixed
| The Modified Julian Date is th... | null | https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/time/Data/Time/Clock/Scale.hs | haskell | # OPTIONS -Wall -Werror #
#hide
* Universal Time
* Absolute intervals
| This is a length of time, as measured by a clock.
Conversion functions will treat it as seconds.
necessary because H98 doesn't have "cunning newtype" derivation
necessary because H98 doesn't have "cunning newtype" derivation
necessary becau... |
module Data.Time.Clock.Scale
(
| Time as measured by the earth .
UniversalTime(..),
DiffTime,
secondsToDiffTime, picosecondsToDiffTime
) where
import Data.Ratio ((%))
import Data.Fixed
| The Modified Julian Date is the day with the fraction of the day , measured from UT midnight .
It 's used to repr... |
572473286f9ba8e573d650e57f02ee1aee5d1cdf6b7d8dd251929c8f24a063b3 | solita/mnt-teet | slack.clj | (ns teet.test.slack
"Report test status to slack"
(:require [kaocha.report :as report]
[kaocha.hierarchy :as hierarchy]
[clojure.java.io :as io]
[cheshire.core :as cheshire]
[org.httpkit.client :as http]
[clojure.string :as str]
[clojure.java.s... | null | https://raw.githubusercontent.com/solita/mnt-teet/7a5124975ce1c7f3e7a7c55fe23257ca3f7b6411/app/backend/test/teet/test/slack.clj | clojure | (ns teet.test.slack
"Report test status to slack"
(:require [kaocha.report :as report]
[kaocha.hierarchy :as hierarchy]
[clojure.java.io :as io]
[cheshire.core :as cheshire]
[org.httpkit.client :as http]
[clojure.string :as str]
[clojure.java.s... | |
69d8faafc27edf671df8138a5751980862f76642c0f8974a654a89b1494e69ff | robstewart57/rdf4h | Rdf4hQueryMain.hs | module Main where
import System.Console.GetOpt
main :: IO ()
main = putStrLn "Not Implemented Yet"
data Flag
= Help | Verbose
| InputFormat String | InputBaseUri String
deriving (Show)
header :: String
header =
"\nrdf4h_query: utility for querying RDF data\n\n" <>
"\nUsage: rdf4h_quer... | null | https://raw.githubusercontent.com/robstewart57/rdf4h/22538a916ec35ad1c46f9946ca66efed24d95c75/src/Rdf4hQueryMain.hs | haskell | module Main where
import System.Console.GetOpt
main :: IO ()
main = putStrLn "Not Implemented Yet"
data Flag
= Help | Verbose
| InputFormat String | InputBaseUri String
deriving (Show)
header :: String
header =
"\nrdf4h_query: utility for querying RDF data\n\n" <>
"\nUsage: rdf4h_quer... | |
fbd36bcfb8a3da0c3c8eecf7e21c4f87b7047ad8d0f87fdaa8cbce6a78da1bc2 | andreas/ocaml-dataloader | test.ml | open Lwt.Infix
let suite = [
("load one", `Quick, fun () ->
let loader = Dataloader_lwt.create ~load:(fun keys ->
Lwt_result.return keys
) in
(Dataloader_lwt.load loader 1 >|= function
| Error _ -> Alcotest.fail "Loader failed, expected 1"
| Ok value -> Alcotest.(check int) "Load value" 1 v... | null | https://raw.githubusercontent.com/andreas/ocaml-dataloader/ad136fdf76e53bb985634e7094a762a69ec963a3/dataloader-lwt/test/test.ml | ocaml | open Lwt.Infix
let suite = [
("load one", `Quick, fun () ->
let loader = Dataloader_lwt.create ~load:(fun keys ->
Lwt_result.return keys
) in
(Dataloader_lwt.load loader 1 >|= function
| Error _ -> Alcotest.fail "Loader failed, expected 1"
| Ok value -> Alcotest.(check int) "Load value" 1 v... | |
ca003b2621220fae58abc79e6a7eb7a6282fc4581dede04acfb147992fb5bea7 | let-def/sturgeon | sturgeon_recipes_command.mli | { { { COPYING * (
This file is part of , a toolkit for remote higher - order control
flow .
Copyright ( C ) 2016 < frederic.bour(_)lakaban.net >
Permission is hereby granted , free of charge , to any person obtaining a
copy of this software and associated documentation files ( the " Softw... | null | https://raw.githubusercontent.com/let-def/sturgeon/97023209c6ddea3b113ef791b40e8e670742379d/lib/recipes_command/sturgeon_recipes_command.mli | ocaml | { { { COPYING * (
This file is part of , a toolkit for remote higher - order control
flow .
Copyright ( C ) 2016 < frederic.bour(_)lakaban.net >
Permission is hereby granted , free of charge , to any person obtaining a
copy of this software and associated documentation files ( the " Softw... | |
cbb3e8070a7e035a6571889b5e00097253750cc12cd44822c2671ee70379e280 | armedbear/abcl | or.lisp | ;;; or.lisp
;;;
Copyright ( C ) 2004
$ Id$
;;;
;;; This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later version .
;;;
;;; This... | null | https://raw.githubusercontent.com/armedbear/abcl/0631ea551523bb93c06263e772fbe849008e2f68/src/org/armedbear/lisp/or.lisp | lisp | or.lisp
This program is free software; you can redistribute it and/or
either version 2
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for mor... | Copyright ( C ) 2004
$ Id$
modify it under the terms of the GNU General Public License
of the License , or ( at your option ) any later version .
You should have received a copy of the GNU General Public License
Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
Adapte... |
61f034d9e4baa908b11f82dc68cce230edd2a8a21d3592bd44c894500ce4cb3a | ghcjs/jsaddle-dom | HTMLLinkElement.hs | # LANGUAGE PatternSynonyms #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.HTMLLinkElement
(setDisabled, getDisabled, setCharset, getCharset, setHref,
getHref, setHreflang, getHrefla... | null | https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/HTMLLinkElement.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/HTMLLinkElement.rev Mozilla HTMLLinkElement.rev documentation>
| <-US/docs/Web/API/HTMLLinkElement.rev Mozilla HTMLLinkElement.rev documentation>
| <-US/docs/Web/API/HTMLLinkElement.crossOrigin Mozilla ... | # LANGUAGE PatternSynonyms #
# OPTIONS_GHC -fno - warn - unused - imports #
module JSDOM.Generated.HTMLLinkElement
(setDisabled, getDisabled, setCharset, getCharset, setHref,
getHref, setHreflang, getHreflang, setMedia, getMedia, setRel,
getRel, setRev, getRev, getSizes, setTarget, getTarget, set... |
54f1739b59a7832b600e43809f744241fd5589566ac21fdec7b922e22466a3ff | lojic/LearningRacket | day21-part1.rkt | #lang racket
(define players '((1 0) (3 0)))
(define-values (position score) (values first second))
(define (solve [ players players ])
(cond [ (winner players) (* (score (loser players)) (dice-rolls)) ]
[ else (solve (turn players)) ]))
(define (turn players)
(let* ([ th... | null | https://raw.githubusercontent.com/lojic/LearningRacket/a805e3e21f3493d469cf280f57fc14ce90156448/advent-of-code-2021/solutions/day21/day21-part1.rkt | racket | Tests -------------------------------------------------------------------------------------- | #lang racket
(define players '((1 0) (3 0)))
(define-values (position score) (values first second))
(define (solve [ players players ])
(cond [ (winner players) (* (score (loser players)) (dice-rolls)) ]
[ else (solve (turn players)) ]))
(define (turn players)
(let* ([ th... |
90c02b56283fc7ed05117bbefb51d701f3b805caf56b4e64152fdf78abc0c527 | ocaml/dune | pform.mli | open Stdune
open Dune_sexp
module Var : sig
type t =
| User_var of string
| Nothing
| Project_root
| Workspace_root
| First_dep
| Deps
| Targets
| Target
| Cc
| Cxx
| Ccomp_type
| Cpp
| Pa_cpp
| Make
| Ocaml_version
| Ocaml
| Ocamlc
| Ocamlopt
... | null | https://raw.githubusercontent.com/ocaml/dune/991f9b77e2ced07f5906941814cc640b49d710ea/src/dune_lang/pform.mli | ocaml | * Enode using the latest name for a given percent form.
* "macro" or "variable"
* Decoding environment
* Introduce the renaming "<" -> "input-file". In [initial], "<" is marked as
deleted. | open Stdune
open Dune_sexp
module Var : sig
type t =
| User_var of string
| Nothing
| Project_root
| Workspace_root
| First_dep
| Deps
| Targets
| Target
| Cc
| Cxx
| Ccomp_type
| Cpp
| Pa_cpp
| Make
| Ocaml_version
| Ocaml
| Ocamlc
| Ocamlopt
... |
11cff474ad161346838902566cff5c38e564ddf212cefb88dc2374f5c2073e51 | bluemont/kria | content.clj | (ns kria.pb.content
"Functions for Riak content (e.g. values stored with object keys)"
(:require
[kria.conversions :refer
[byte-string?
byte-string<-utf8-string
utf8-string<-byte-string]]
[kria.pb.link :refer [Link->pb pb->Link]]
[kria.pb.pair :refer [Pair->pb pb->Pair]])
(:import
[com.b... | null | https://raw.githubusercontent.com/bluemont/kria/8ed7fb1ebda8bfa1a2a6d7a3acf05e2255fcf0f0/src/clojure/kria/pb/content.clj | clojure | required bytes
optional bytes
optional bytes
optional bytes
optional bytes
repeated RpbLink
optional bool | (ns kria.pb.content
"Functions for Riak content (e.g. values stored with object keys)"
(:require
[kria.conversions :refer
[byte-string?
byte-string<-utf8-string
utf8-string<-byte-string]]
[kria.pb.link :refer [Link->pb pb->Link]]
[kria.pb.pair :refer [Pair->pb pb->Pair]])
(:import
[com.b... |
f0af6b52f89e3bad9a1f20e03b0e071307019ad44ac2da5f702821f6eb6619ce | rbkmoney/hellgate | hg_dummy_fault_detector.erl | -module(hg_dummy_fault_detector).
-behaviour(woody_server_thrift_handler).
-export([child_spec/0]).
-export([handle_function/4]).
-include_lib("fault_detector_proto/include/fd_proto_fault_detector_thrift.hrl").
-spec child_spec() -> term().
child_spec() ->
woody_server:child_spec(
?MODULE,
#{
... | null | https://raw.githubusercontent.com/rbkmoney/hellgate/0dcc31939db74ad5dee15f42af44c9c8093a98a7/apps/hellgate/test/hg_dummy_fault_detector.erl | erlang | -module(hg_dummy_fault_detector).
-behaviour(woody_server_thrift_handler).
-export([child_spec/0]).
-export([handle_function/4]).
-include_lib("fault_detector_proto/include/fd_proto_fault_detector_thrift.hrl").
-spec child_spec() -> term().
child_spec() ->
woody_server:child_spec(
?MODULE,
#{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.