_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 |
|---|---|---|---|---|---|---|---|---|
ab554db2947d7ac7834a22b2bb2fe0130b5bcf6ee55bd9880fca82288dd7c87e | jumarko/web-development-with-clojure | env.clj | ;---
Excerpted from " Web Development with Clojure , Second Edition " ,
published by The Pragmatic Bookshelf .
Copyrights apply to this code . It may not be used to create training material ,
; courses, books, articles, and the like. Contact us if you are in doubt.
; We make no guarantees that this code is fit fo... | null | https://raw.githubusercontent.com/jumarko/web-development-with-clojure/dfff6e40c76b64e9fcd440d80c7aa29809601b6b/code/guestbook/env/dev/clj/guestbook/env.clj | clojure | ---
courses, books, articles, and the like. Contact us if you are in doubt.
We make no guarantees that this code is fit for any purpose.
Visit for more book information.
--- | Excerpted from " Web Development with Clojure , Second Edition " ,
published by The Pragmatic Bookshelf .
Copyrights apply to this code . It may not be used to create training material ,
(ns guestbook.env
(:require [selmer.parser :as parser]
[clojure.tools.logging :as log]
[guestbook.dev... |
d55df891a69e65cae2d734d63f2bd7fc0244e164f1267697e533b5e374ef5917 | matsen/pplacer | fasta.ml | open Ppatteries
type token =
| Name of string
| Sequence of string
let fasta_regexp = Str.regexp begin
(* each line is either ... *)
"\\(" ^ (String.concat "\\|" [
(* nothing but whitespace (matched at the end of the group), *)
"";
(* a comment (not captured), *)
";[^\n\r]*";
a sequence name... | null | https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/pplacer_src/fasta.ml | ocaml | each line is either ...
nothing but whitespace (matched at the end of the group),
a comment (not captured), | open Ppatteries
type token =
| Name of string
| Sequence of string
let fasta_regexp = Str.regexp begin
"\\(" ^ (String.concat "\\|" [
"";
";[^\n\r]*";
a sequence name ( group 3 ; group 2 should be non - matching ) ,
"\\(>[ \t]*\\([^ \t\n\r]+\\)[^\n\r]*\\)";
or a sequence chunk ( group 4 ) .
... |
c9874fe8a05150ee29d8813c6d2c6e3f269bbd7b0d144d6b3ecee6ab92de461e | fractalide/fractalide | halter.rkt | #lang racket/base
(require fractalide/modules/rkt/rkt-fbp/agent)
(define-agent
#:input '("in") ; in port
(define msg (recv (input "in")))
(define msg2 (recv (input "in")))
(void))
| null | https://raw.githubusercontent.com/fractalide/fractalide/9c54ec2615fcc2a1f3363292d4eed2a0fcb9c3a5/modules/rkt/rkt-fbp/agents/halter.rkt | racket | in port | #lang racket/base
(require fractalide/modules/rkt/rkt-fbp/agent)
(define-agent
(define msg (recv (input "in")))
(define msg2 (recv (input "in")))
(void))
|
c299c2ba081c509f83b3677c9f272702d98d8c4573b3a39ee8e12310764210ed | takikawa/racket-ppa | mpfr.rkt | #lang racket/base
(require (for-syntax racket/base)
ffi/unsafe
ffi/unsafe/cvector
ffi/unsafe/custodian
ffi/unsafe/define
ffi/unsafe/atomic
ffi/unsafe/global
ffi/unsafe/custodian
racket/math
racket/runtime-path
racket/promise
... | null | https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/share/pkgs/math-lib/math/private/bigfloat/mpfr.rkt | racket | Parameters
Type predicate
Conversion to and from Real
String conversion
Low-level stuff
Arithmetic, comparison, and other functions are provided by the macros that create them
===================================================================================================
Setup/takedown
The mpfr_buildopt_tl... | #lang racket/base
(require (for-syntax racket/base)
ffi/unsafe
ffi/unsafe/cvector
ffi/unsafe/custodian
ffi/unsafe/define
ffi/unsafe/atomic
ffi/unsafe/global
ffi/unsafe/custodian
racket/math
racket/runtime-path
racket/promise
... |
79108fa8730745bfc8914fd57198bca29a5f6ede9e860244cd65b6935a26e7dd | richmit/mjrcalc | use-matt.lisp | ;; -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;; @file use-matt.lisp
@author < >
;; @brief Generat... | null | https://raw.githubusercontent.com/richmit/mjrcalc/96f66d030034754e7d3421688ff201f4f1db4833/use-matt.lisp | lisp | -*- Mode:Lisp; Syntax:ANSI-Common-LISP; Coding:us-ascii-unix; fill-column:158 -*-
@file use-matt.lisp
@brief Generate and compute with various test matrices.@EOL
@std Common Lisp
@see tst-matt.lisp
Redistribution and use in source and binary forms, with or without modification, are permit... | @author < >
@parblock
Copyright ( c ) 1998,2004,2010,2012,2013,2015 , < > All rights reserved .
1 . Redistributions of source code must retain the above copyright notice , this list of conditions , and the following disclaimer .
2 . Redistributions in binary form must reproduce the above cop... |
a12036e8e01bbbc888e14fdaee597a4f45d75898b50b7d0742f15e8b1b24c1ff | AdaCore/why3 | simplify.ml | (********************************************************************)
(* *)
The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
(* ... | null | https://raw.githubusercontent.com/AdaCore/why3/74914e765153d7eb4b34cd0246a623719f4aa670/src/printer/simplify.ml | ocaml | ******************************************************************
This software is distributed under the terms of the GNU Lesser
on linking described in file LICENSE. ... | The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
General Public License version 2.1 , with the special exception
open Format
open Pp
open Ident
open Term
open Decl
open Printer
let ident_printer =
let bls = ["select"... |
02eb4082a716f4521cf98c897dd9a54bd017e726b7cab167d1e4f25f689155a8 | josefs/Gradualizer | tuple_union_pattern_pass.erl | -module(tuple_union_pattern_pass).
-export([f/1]).
-type type() :: af_annotated_type() | af_fun_type().
-type anno() :: erl_anno:anno().
-type af_anno() :: af_variable().
-type af_variable() :: {'var', anno(), atom()}. % | af_anon_variable()
-type af_annotated_type() ::
[ Var , Type ]
-type af_fun_type() :: {'... | null | https://raw.githubusercontent.com/josefs/Gradualizer/9493c66e724ff6b322f0a437de84fe0869c2f872/test/should_pass/tuple_union_pattern_pass.erl | erlang | | af_anon_variable() | -module(tuple_union_pattern_pass).
-export([f/1]).
-type type() :: af_annotated_type() | af_fun_type().
-type anno() :: erl_anno:anno().
-type af_anno() :: af_variable().
-type af_annotated_type() ::
[ Var , Type ]
-type af_fun_type() :: {'type', anno(), 'fun', []}
| {'type', anno(), 'fun'... |
9f13d54be60b6a2dd462c3011fe70e214c87fcb152b277316855bee8aa8b3056 | GrammaTech/elf | disassemblable.lisp | ;;; disassemblable --- Extensions for disassemblable ELF files
(in-package :elf)
;;; Disassembly classes and functions
(defclass disassemblable (elf) ())
#+sbcl
(defclass capstone (disassemblable) ())
(defclass objdump (disassemblable) ())
(defclass csurf (disassemblable)
((sw-project :initarg :project :accessor ... | null | https://raw.githubusercontent.com/GrammaTech/elf/89b7cf6c3021e71275a6a985e53f6040e9750e03/disassemblable.lisp | lisp | disassemblable --- Extensions for disassemblable ELF files
Disassembly classes and functions
bytes
If only 1 byte is returned,
disassembled assembly text
parse addresses
Implementation of disasm using the objdump support provided by | (in-package :elf)
(defclass disassemblable (elf) ())
#+sbcl
(defclass capstone (disassemblable) ())
(defclass objdump (disassemblable) ())
(defclass csurf (disassemblable)
((sw-project :initarg :project :accessor project :initform nil)))
(defclass elf-const (disassemblable)
((disassembly :initarg :disassembly ... |
d88b89c6da4b331c31e899943719363a99864ba1c02cccf0ad950cfed6da6f7a | pepe/two-in-shadows | server.cljs | (ns two-in-shadows.server
"Server part of the project"
(:require ["koa" :as Koa]
["koa-json" :as json]
["@koa/cors" :as cors]
["koa-conditional-get" :as conditional]
["koa-etag" :as etag]
[two-in-shadows.server.routes :as routes]))
(defn main
"Main fun... | null | https://raw.githubusercontent.com/pepe/two-in-shadows/b49a484cf1cc1a9a2e0a5ffb358acfe0f56d895c/src/two_in_shadows/server.cljs | clojure | (ns two-in-shadows.server
"Server part of the project"
(:require ["koa" :as Koa]
["koa-json" :as json]
["@koa/cors" :as cors]
["koa-conditional-get" :as conditional]
["koa-etag" :as etag]
[two-in-shadows.server.routes :as routes]))
(defn main
"Main fun... | |
d3101adec55008d51c5fb5b6dbe8288c547414b22b871d3887322bede7e26a29 | threatgrid/ctim | tool.cljc | (ns ctim.schemas.tool
(:require #?(:clj [flanders.core :as f :refer [def-entity-type def-map-type def-eq]]
:cljs [flanders.core :as f :refer-macros [def-entity-type def-map-type def-eq]])
[ctim.schemas.common :as c]
[ctim.schemas.vocabularies :as v]))
(def type-identifier "too... | null | https://raw.githubusercontent.com/threatgrid/ctim/2ecae70682e69495cc3a12fd58a474d4ea57ae9c/src/ctim/schemas/tool.cljc | clojure | (ns ctim.schemas.tool
(:require #?(:clj [flanders.core :as f :refer [def-entity-type def-map-type def-eq]]
:cljs [flanders.core :as f :refer-macros [def-entity-type def-map-type def-eq]])
[ctim.schemas.common :as c]
[ctim.schemas.vocabularies :as v]))
(def type-identifier "too... | |
dcc8851247fabb5994d8248007917fe2f25661a47eb863f42782006a3ae31acc | IagoAbal/haskell-z3 | Opts.hs | # LANGUAGE CPP #
-- |
-- Module : Z3.Opts
Copyright : ( c ) Iago Abal , 2013 - 2015
( c ) , 2013
-- License : BSD3
-- Maintainer: Iago Abal <>,
< >
--
-- Configuring Z3.
--
Z3 has plenty of configuration options and these had varied quite
a lot from Z3 3.x to Z3 4.x . We dec... | null | https://raw.githubusercontent.com/IagoAbal/haskell-z3/247dac33c82b52f6ca568c1cdb3ec5153351394d/src/Z3/Opts.hs | haskell | |
Module : Z3.Opts
License : BSD3
Maintainer: Iago Abal <>,
Configuring Z3.
Configurations are essentially sets of 'String' pairs, assigning
values to parameters. We just provide a thin layer of abstraction
on top of this.
For instance, @opt \"proof\" True@ creates a configuration where
and we do not... | # LANGUAGE CPP #
Copyright : ( c ) Iago Abal , 2013 - 2015
( c ) , 2013
< >
Z3 has plenty of configuration options and these had varied quite
a lot from Z3 3.x to Z3 4.x . We decided to keep things simple .
proof generation is enabled . The first argument of ' opt ' is the
op... |
fb40cc4782b648632a8ebd55b257c77690ab49f8fabb98d5b2b2bc42fbf3b0bb | ocsigen/obrowser | build-stubs.ml | module Id = struct
let name = "External stubs extractor"
let version = "$Id: $"
end
module Make (Syntax : Camlp4.Sig.Camlp4Syntax) =
struct
include Syntax
let print_interf ?input_file ?output_file ast = ()
let print_implem ?input_file ?output_file ast =
let input_file = match input_file with Some s -> ... | null | https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/rt/caml/build-stubs/build-stubs.ml | ocaml | module Id = struct
let name = "External stubs extractor"
let version = "$Id: $"
end
module Make (Syntax : Camlp4.Sig.Camlp4Syntax) =
struct
include Syntax
let print_interf ?input_file ?output_file ast = ()
let print_implem ?input_file ?output_file ast =
let input_file = match input_file with Some s -> ... | |
b530bd010b40b0ccde05cc65392498d27e3b170cdcf6a38541f282fc0ba23ffc | lisp-korea/sicp | lazy-eval-likeriver12.scm | ;; racket -l r5rs/run
4.2 Scheme 바꿔보기 - 제때 계산법(lazy evaluation )
값을 구해야할 인자와 밀쳐놓을 인자를 판별해야한다 .
밀쳐놓을 인자는 그 값을 구하지 않는 대신 만든다 .
;;; 썽크에는 프로시저 적용이 이루어진 환경과 그 인자 식이 들어 있다.
;;; 언어 실행기 고치기
;;; eval 정의
(define (my-eval exp env)
(cond ((self-evaluating? exp) exp)
((variable? exp) (lookup-variable-value exp env)... | null | https://raw.githubusercontent.com/lisp-korea/sicp/4cdc1b1d858c6da7c9f4ec925ff4a724f36041cc/ch04/4.2/lazy-eval-likeriver12.scm | scheme | racket -l r5rs/run
썽크에는 프로시저 적용이 이루어진 환경과 그 인자 식이 들어 있다.
언어 실행기 고치기
eval 정의
(my-apply (my-eval (operator exp) env)
(list-of-values (operands exp) env)))
apply
(apply-primitive-procedure procedure arguments))
바뀜
(extend-environment
(procedure-parameters procedure)
arguments
바뀜
(display "actual-value :")... |
4.2 Scheme 바꿔보기 - 제때 계산법(lazy evaluation )
값을 구해야할 인자와 밀쳐놓을 인자를 판별해야한다 .
밀쳐놓을 인자는 그 값을 구하지 않는 대신 만든다 .
(define (my-eval exp env)
(cond ((self-evaluating? exp) exp)
((variable? exp) (lookup-variable-value exp env))
((quoted? exp) (text-of-quotation exp))
((assignment? exp) (eval-assignment exp env))
... |
a8bb4739ba64c5c05c8b19258b11a08fecffce65e2de89f83c02afd045722864 | mhkoji/Senn | viterbi.lisp | (defpackage :hachee.kkc.convert.viterbi
(:use :cl)
(:export :execute
:node
:node-entry))
(in-package :hachee.kkc.convert.viterbi)
(defstruct node entry score-so-far prev-node)
(defun compute-score (score-fn entry prev-entry)
(funcall score-fn entry prev-entry))
(defun connect-by-max-score... | null | https://raw.githubusercontent.com/mhkoji/Senn/6508e7d2e61a4dd895465de6feb7ede9d1dde82d/hachee/src/kkc/convert/viterbi.lisp | lisp | Create table
skip end-entry | (defpackage :hachee.kkc.convert.viterbi
(:use :cl)
(:export :execute
:node
:node-entry))
(in-package :hachee.kkc.convert.viterbi)
(defstruct node entry score-so-far prev-node)
(defun compute-score (score-fn entry prev-entry)
(funcall score-fn entry prev-entry))
(defun connect-by-max-score... |
412ad1ab957be3908fa760a5e0c30242278c48fe9fe92246ecb0f52433896c92 | shayne-fletcher/zen | newton.ml | let fabs x = if x > 0. then x else (~-.x)
Newton 's formula for ( P + PQ)**(m / n ) with P , Q in R and m , n in
Z
Z*)
let newton
(p : float)
(q : float)
(m : int)
(n : int)
(term : int -> float -> bool) =
let rec loop acc =
let s, last, i = acc in
let num = float_of_int (m - ((i - ... | null | https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/newton/newton.ml | ocaml | let fabs x = if x > 0. then x else (~-.x)
Newton 's formula for ( P + PQ)**(m / n ) with P , Q in R and m , n in
Z
Z*)
let newton
(p : float)
(q : float)
(m : int)
(n : int)
(term : int -> float -> bool) =
let rec loop acc =
let s, last, i = acc in
let num = float_of_int (m - ((i - ... | |
98ffbccc6400c593fcf38a994d467fac237b75fbce3624f85bb23f50ccfb9fa6 | alesaccoia/festival_flinger | cmu_us_gka_duration.scm | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ;;;
Carnegie Mellon University ; ; ;
and and ; ; ;
Copyright ( c ) 1998 - 2000 ... | null | https://raw.githubusercontent.com/alesaccoia/festival_flinger/87345aad3a3230751a8ff479f74ba1676217accd/lib/voices/us/cmu_us_gka_cg/festvox/cmu_us_gka_duration.scm | scheme |
;;;
; ;
; ;
; ;
; ;
;;;
Permission is hereby granted, free of charge, to use and distribute ;;;
this software and its documentation without restriction, including ;;;
withou... | Duration for English
(require 'cmu_us_gka_durdata)
(define (cmu_us_gka::select_duration)
"(cmu_us_gka::select_duration)
Set up duration for English."
(set! duration_cart_tree cmu_us_gka::zdur_tree)
(set! duration_ph_info cmu_us_gka::phone_durs)
(Parameter.set 'Duration_Method 'Tree_ZScores)
(Parameter.set... |
f9ea4caa4475f714824119740771ec99483403200737f98d2968f40e2d54bdef | nikita-volkov/rebase | ForeignPtr.hs | module Rebase.Foreign.ForeignPtr
(
module Foreign.ForeignPtr
)
where
import Foreign.ForeignPtr
| null | https://raw.githubusercontent.com/nikita-volkov/rebase/7c77a0443e80bdffd4488a4239628177cac0761b/library/Rebase/Foreign/ForeignPtr.hs | haskell | module Rebase.Foreign.ForeignPtr
(
module Foreign.ForeignPtr
)
where
import Foreign.ForeignPtr
| |
ee01ed22783fb58343a867fb895fea1ce414801ee4cce8692ca6d41e3c7fccf1 | metosin/malli | regex.cljc | (ns malli.impl.regex
"Regular expressions of sequences implementation namespace.
The implementation is very similar to Packrat or GLL parser combinators.
The parsing functions need to be written in CPS to support backtracking
inside :*, :+ and :repeat. They also need to be trampolined because the
(manually) ... | null | https://raw.githubusercontent.com/metosin/malli/546eb663484e66ef1271b99189b17dbeca215ec8/src/malli/impl/regex.cljc | clojure | # Driver Protocols
# Primitives
## Seq Item
# Combinators
`m` is in hash order, so have to iterate over `unparsers` to restore seq order:
remember fallback
remember fallback
remember fallback
remember fallback
remember fallback
remember fallback
TCO
remember fallback
TCO
TCO
remember fallback
TCO
reme... | (ns malli.impl.regex
"Regular expressions of sequences implementation namespace.
The implementation is very similar to Packrat or GLL parser combinators.
The parsing functions need to be written in CPS to support backtracking
inside :*, :+ and :repeat. They also need to be trampolined because the
(manually) ... |
b07a36ef6bc776209e7b6cad2e31a80e306e6843b14c5e591bc5a78bdd16ff3f | maxhbr/LDBcollector | FactLicenses.hs | module Generators.FactLicenses
( writeFactsLicenses
) where
import qualified Prelude as P
import MyPrelude
import qualified Data.Vector as V
import qualified Data.Map as M
import qualified Data.Text.IO as T
import Model.License
import Generators.FindClusters
writeFactsLicenses :: F... | null | https://raw.githubusercontent.com/maxhbr/LDBcollector/51d940f0af00b2acdd7de246b2be16fa30fc8a6b/src/Generators/FactLicenses.hs | haskell | module Generators.FactLicenses
( writeFactsLicenses
) where
import qualified Prelude as P
import MyPrelude
import qualified Data.Vector as V
import qualified Data.Map as M
import qualified Data.Text.IO as T
import Model.License
import Generators.FindClusters
writeFactsLicenses :: F... | |
25ef6c5885b72e6138c469a8fdcc80aabc732d1b897e4a312972f689900b560b | roburio/dnsvizor | config.ml | Copyright Robur , 2020
open Mirage
let dns_upstream =
let doc = Key.Arg.info ~doc:"Upstream DNS resolver" ["dns-upstream"] in
Key.(create "dns-upstream" Arg.(opt (some string) None doc))
let dns_cache =
let doc = Key.Arg.info ~doc:"DNS cache size" ["dns-cache"] in
Key.(create "dns-cache" Arg.(opt (some int... | null | https://raw.githubusercontent.com/roburio/dnsvizor/6c31f0adaad69c3342affcd836b44e0a5746db5f/dns-only/config.ml | ocaml | Copyright Robur , 2020
open Mirage
let dns_upstream =
let doc = Key.Arg.info ~doc:"Upstream DNS resolver" ["dns-upstream"] in
Key.(create "dns-upstream" Arg.(opt (some string) None doc))
let dns_cache =
let doc = Key.Arg.info ~doc:"DNS cache size" ["dns-cache"] in
Key.(create "dns-cache" Arg.(opt (some int... | |
19f6b438f91d1f18fb4d1e3aefebaba710a76fe39f920b361c632975618ce0eb | exercism/clojure | beer_song.clj | (ns beer-song)
(defn verse
"Returns the nth verse of the song."
[num])
(defn sing
"Given a start and an optional end, returns all verses in this interval. If
end is not given, the whole song from start is sung."
([start])
([start end]))
| null | https://raw.githubusercontent.com/exercism/clojure/7ed96a5ae3c471c37db2602baf3db2be3b5a2d1a/exercises/practice/beer-song/src/beer_song.clj | clojure | (ns beer-song)
(defn verse
"Returns the nth verse of the song."
[num])
(defn sing
"Given a start and an optional end, returns all verses in this interval. If
end is not given, the whole song from start is sung."
([start])
([start end]))
| |
45a5f00391a0108210ae5498381b29c4597085760ed514ee6290f6d87d300bc5 | Clozure/ccl-tests | dribble.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Sun May 15 12:56:29 2005
;;;; Contains: Tests of DRIBBLE
(in-package :cl-test)
;;; Error tests only -- cannot depend on using it in a program
;;; See the CLHS DRIBBLE and issue DRIBBLE-TECHNIQUE for an explanation
(deftest dribble.error.1
(signals-error (dribbl... | null | https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/dribble.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of DRIBBLE
Error tests only -- cannot depend on using it in a program
See the CLHS DRIBBLE and issue DRIBBLE-TECHNIQUE for an explanation
FIXME -- more error tests here | Author :
Created : Sun May 15 12:56:29 2005
(in-package :cl-test)
(deftest dribble.error.1
(signals-error (dribble "dribble.out" nil) program-error)
t)
|
81de167428a6627e20aef9c2d681f83180070e9d4fedee95b9504b0a68f8af19 | pelle/clauth | auth_code.clj | (ns clauth.auth-code
(:require [clauth
[store :as store]
[token :as token]]
[clj-time.core :as time]))
(defn oauth-code
"The oauth-code defines supports various functions to verify the validity
The following keys are defined:
* auth-code - a unique auth-code identifying ... | null | https://raw.githubusercontent.com/pelle/clauth/6f33d256e7cd5be72334ea58d6122395c7e305ca/src/clauth/auth_code.clj | clojure | (ns clauth.auth-code
(:require [clauth
[store :as store]
[token :as token]]
[clj-time.core :as time]))
(defn oauth-code
"The oauth-code defines supports various functions to verify the validity
The following keys are defined:
* auth-code - a unique auth-code identifying ... | |
1e2da0bc76a33710f097e0fccb0b091a1db7022bb8cf76da2f5e6584ea4d1b10 | mejgun/haskell-tdlib | DeleteAllCallMessages.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Query.DeleteAllCallMessages where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
-- |
-- Deletes all call messages @revoke Pass true to delete the messages for all users
data DeleteAllCallMessages = DeleteAllCallMe... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/DeleteAllCallMessages.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
Deletes all call messages @revoke Pass true to delete the messages for all users
| |
module TD.Query.DeleteAllCallMessages where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
data DeleteAllCallMessages = DeleteAllCallMessages
revoke :: Maybe Bool
}
deriving (Eq)
instance Show DeleteAllCallMessages where
show
DeleteAllCallMessages
... |
08306ae1f16ee472f6bf349e1577a6b11052dacc7911cf21f3fb6592390c0c9a | RefactoringTools/HaRe | MultiFunBind1.hs | module MoveDef.MultiFunBind1 where
foo 0 = 0
foo x = y + 1
y = 3
| null | https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/MoveDef/MultiFunBind1.hs | haskell | module MoveDef.MultiFunBind1 where
foo 0 = 0
foo x = y + 1
y = 3
| |
c8e70259732f2ade77941735b9ff1d6bf8d2787d0cb5bfa25169b4dfa89ea1f8 | stepcut/plugins | Extra.hs | module Extra where
extra = "an extra value"
| null | https://raw.githubusercontent.com/stepcut/plugins/52c660b5bc71182627d14c1d333d0234050cac01/testsuite/eval/unsafeidir/a/Extra.hs | haskell | module Extra where
extra = "an extra value"
| |
f80ee15cb2ef60bd4fb6e80c82176bcb568d80d0c3d1dedd62a8b1a6577b6242 | slipstream/SlipStreamServer | session_template.clj | (ns com.sixsq.slipstream.ssclj.resources.session-template
"
A collection of templates that allow users to authenticate with the server by
creating a Session resource. The concrete templates support a variety of
credentials and protocols.
Most SlipStream resources are only visible to authenticated users. The login
pr... | null | https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi/src/com/sixsq/slipstream/ssclj/resources/session_template.clj | clojure |
schemas
multimethods for validation
identifiers for these resources are the same as the :instance value
CRUD operations
override the operations method to add describe action
actions
initialization: create metadata for this collection
| (ns com.sixsq.slipstream.ssclj.resources.session-template
"
A collection of templates that allow users to authenticate with the server by
creating a Session resource. The concrete templates support a variety of
credentials and protocols.
Most SlipStream resources are only visible to authenticated users. The login
pr... |
f10cff18369fba3522f157d9d0e1e63cd3e429bb7dce966c609279b0d0c18ff5 | ztellman/sleight | core_test.clj | (ns sleight.core-test
(:require
[clojure.test :refer :all]))
(deftest ^:make-odd test-make-odd
(is (= 2 3))
(is (not= 1 2))
(is (= 2 2))
(is (= 3 3)))
(deftest test-normal
(is (not= 2 3))
(is (not= 1 2))
(is (= 2 2))
(is (= 3 3)))
| null | https://raw.githubusercontent.com/ztellman/sleight/788d7c11164713cc393058cc8fc5f6ec9c441d7f/test/sleight/core_test.clj | clojure | (ns sleight.core-test
(:require
[clojure.test :refer :all]))
(deftest ^:make-odd test-make-odd
(is (= 2 3))
(is (not= 1 2))
(is (= 2 2))
(is (= 3 3)))
(deftest test-normal
(is (not= 2 3))
(is (not= 1 2))
(is (= 2 2))
(is (= 3 3)))
| |
d7758480ec461d9a1001ce1ce7f5c15a22c9064035ed6b89093d1dbd0944deea | inaka/serpents | spts_test_utils.erl | %% @doc General Test Utils
-module(spts_test_utils).
-author('').
-type config() :: proplists:proplist().
-export_type([config/0]).
-export([ all/1
, init_per_suite/1
, end_per_suite/1
]).
-export([ api_call/2
, api_call/3
, api_call/4
]).
-export([ get_events/2
... | null | https://raw.githubusercontent.com/inaka/serpents/b21b63cee117e0b98fd3a9be4fb326e9de3ee861/test/spts_test_utils.erl | erlang | @doc General Test Utils | -module(spts_test_utils).
-author('').
-type config() :: proplists:proplist().
-export_type([config/0]).
-export([ all/1
, init_per_suite/1
, end_per_suite/1
]).
-export([ api_call/2
, api_call/3
, api_call/4
]).
-export([ get_events/2
, get_events_after/3
... |
c36ee6c916c669fe8f6b76b4a4263054294b042baf66af69c47b60334865d2c6 | basvandijk/concurrent-extra | RLock.hs | # LANGUAGE CPP
, BangPatterns
, DeriveDataTypeable
, NoImplicitPrelude
#
, BangPatterns
, DeriveDataTypeable
, NoImplicitPrelude
#-}
#if __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE Safe #-}
#endif
-----------------------------------------------... | null | https://raw.githubusercontent.com/basvandijk/concurrent-extra/52470da10fa8efe8ae603098b95b28ab901641d0/Control/Concurrent/RLock.hs | haskell | # LANGUAGE Safe #
------------------------------------------------------------------------------
|
Module : Control.Concurrent.RLock
License : BSD3 (see the file LICENSE)
This module provides the 'RLock' synchronisation mechanism. It was inspired
similar way. See:
<#rlock-objects>
and:
<>
All funct... | # LANGUAGE CPP
, BangPatterns
, DeriveDataTypeable
, NoImplicitPrelude
#
, BangPatterns
, DeriveDataTypeable
, NoImplicitPrelude
#-}
#if __GLASGOW_HASKELL__ >= 704
#endif
Copyright : ( c ) 2010 - 2011
Maintainer : < >
... |
fee6fbf7f9bcce747d99113ce46ac35d49cdfdf6744a7950890970c8167c347f | databrary/databrary | Volume.hs |
module View.Volume
(
htmlVolumeViewLink
, htmlVolumeView
, , , htmlVolumeSearch
, htmlVolumeView
, htmlVolumeEdit
, htmlVolumeLinksEdit
, htmlVolumeSearch
-}
) where
import Control . ( when , forM _ )
import Data . Monoid ( ( < > ) )
import Network.HTTP.Types.QueryLike (QueryL... | null | https://raw.githubusercontent.com/databrary/databrary/685f3c625b960268f5d9b04e3d7c6146bea5afda/src/View/Volume.hs | haskell | import qualified Text.Blaze.Html5.Attributes as HA
import Has (view)
import View.Template
import View.Form
import View.Paginate
import {-# SOURCE #-} Controller.Angular
import {-# SOURCE #-} Controller.Party
# SOURCE #
format
format |
module View.Volume
(
htmlVolumeViewLink
, htmlVolumeView
, , , htmlVolumeSearch
, htmlVolumeView
, htmlVolumeEdit
, htmlVolumeLinksEdit
, htmlVolumeSearch
-}
) where
import Control . ( when , forM _ )
import Data . Monoid ( ( < > ) )
import Network.HTTP.Types.QueryLike (QueryL... |
74eabc1ec99b33fc8accf845b50d7fa38339ce2649529c5c60d4dd142e4be8f4 | markostanimirovic/re-action | prod.cljs | (ns todo-routing-app.prod
(:require
[todo-routing-app.core :as core]))
;;ignore println statements in prod
(set! *print-fn* (fn [& _]))
(core/init!)
| null | https://raw.githubusercontent.com/markostanimirovic/re-action/d6cb33d9ac73bedeac4f09996c2c741d21bda7ba/examples/todo-routing-app/env/prod/cljs/todo_routing_app/prod.cljs | clojure | ignore println statements in prod | (ns todo-routing-app.prod
(:require
[todo-routing-app.core :as core]))
(set! *print-fn* (fn [& _]))
(core/init!)
|
15d1d9cd8e908127851f7a44cdcece84e7e9477506e76eac129b713f15e1ea1b | fredrikt/yxa | table_update.erl | %%%-------------------------------------------------------------------
%%% File : table_update.erl
@author < >
%%% @doc This code updates older database tables.
to disk ( and erlang shell ) .
%%%
@since 25 Oct 2004 by < >
%%% @end
@private
%%%--------------------------------------... | null | https://raw.githubusercontent.com/fredrikt/yxa/85da46a999d083e6f00b5f156a634ca9be65645b/src/database/table_update.erl | erlang | -------------------------------------------------------------------
File : table_update.erl
@doc This code updates older database tables.
@end
-------------------------------------------------------------------
--------------------------------------------------------------------
External exports
----------... | @author < >
to disk ( and erlang shell ) .
@since 25 Oct 2004 by < >
@private
-module(table_update).
-export([
update/0
]).
-include("phone.hrl").
-include("siprecords.hrl").
-include("database_regexproute.hrl").
Records
Macros
. : update databases
update() ->
logger... |
33468fefc706f7cf4d02058b902b87fc0ab0365a3293238af9364933437783a4 | openx/ox-thrift | test_constants.erl | %%
Autogenerated by Thrift Compiler ( 0.10.0 )
%%
%% DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
%%
-module(test_constants).
-include("test_types.hrl").
| null | https://raw.githubusercontent.com/openx/ox-thrift/d8dee712fc40438e250ca21caf23204a04e58c1a/test/test_constants.erl | erlang |
DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
| Autogenerated by Thrift Compiler ( 0.10.0 )
-module(test_constants).
-include("test_types.hrl").
|
fec35b01b5855a46205f8253f3cfdefa4e510cb915c24079d57c67f5ded83688 | justinmeiners/exercises | 2_47.scm | (load "2_46.scm")
(define (make-frame1 origin xp yp)
(list origin xp yp))
(define (origin-frame1 frame) (car frame))
(define (xp-frame1 frame) (car (cdr frame)))
(define (yp-frame1 frame) (car (cdr (cdr frame))))
(define (make-frame origin xp yp)
(cons origin (cons xp yp)))
(define (origin-frame frame) (car fra... | null | https://raw.githubusercontent.com/justinmeiners/exercises/9491bc16925eae12e048ccd3f424b870ebdc73aa/sicp/2/2_47.scm | scheme | (newline)
(display (xp-frame1 test1))
(newline)
(display (yp-frame1 test1)))
(newline)
(let ((test2 (make-frame2 (make-vec 0 0) (make-vec 1 0) (make-vec 0 1))))
(display (origin-frame2 test2))
(newline)
(display (xp-frame2 test2))
(newline)
(display (yp-frame2 test2))) | (load "2_46.scm")
(define (make-frame1 origin xp yp)
(list origin xp yp))
(define (origin-frame1 frame) (car frame))
(define (xp-frame1 frame) (car (cdr frame)))
(define (yp-frame1 frame) (car (cdr (cdr frame))))
(define (make-frame origin xp yp)
(cons origin (cons xp yp)))
(define (origin-frame frame) (car fra... |
dd2b08798dc4c8c0832438c60914a7c2799165f74e333dc30a81f3b42f12f4f3 | Cipherwraith/hblog | Main.hs | module Main where
import qualified Data.Text.Lazy as T
import qualified Data.Text.Lazy.IO as T
import Input
import Publish
import CSS
import RSS
import Text.RSS
import Config
import System.FilePath
import GenerateArchives
import GenerateIndex
import GeneratePosts
import RecentPosts
main = do
posts <- getPosts
let ... | null | https://raw.githubusercontent.com/Cipherwraith/hblog/f92d96a60e301302c8a0e46fd68ee1e1810eb031/Main.hs | haskell | module Main where
import qualified Data.Text.Lazy as T
import qualified Data.Text.Lazy.IO as T
import Input
import Publish
import CSS
import RSS
import Text.RSS
import Config
import System.FilePath
import GenerateArchives
import GenerateIndex
import GeneratePosts
import RecentPosts
main = do
posts <- getPosts
let ... | |
ff4d99cbf26e21a2bca57040a8084fd963c5e2966267695b00f21ef36e9f9d81 | RDTK/generator | util.lisp | ;;;; util.lisp --- Utilities used in the deployment.makefile module.
;;;;
Copyright ( C ) 2018 - 2022 Jan Moringen
;;;;
Author : < >
(cl:in-package #:build-generator.deployment.makefile)
;;; Escape dollars in shell fragments
(defun escape-dollars (string)
(with-output-to-string (stream)
(loop :for char ... | null | https://raw.githubusercontent.com/RDTK/generator/8d9e6e47776f2ccb7b5ed934337d2db50ecbe2f5/src/deployment/makefile/util.lisp | lisp | util.lisp --- Utilities used in the deployment.makefile module.
Escape dollars in shell fragments
Work around problems with recipe lines starting with -, + or @
to interpret it and strip it from the recipe before passing the
remainder to the shell. To avoid problems with, for example,
patches (which contain li... | Copyright ( C ) 2018 - 2022 Jan Moringen
Author : < >
(cl:in-package #:build-generator.deployment.makefile)
(defun escape-dollars (string)
(with-output-to-string (stream)
(loop :for char :across string
:when (char= char #\$)
:do (write-char #\$ stream)
:do (write-char cha... |
7269ce5f08ab7613d1941ec47c203000567929ad92c39a75297f5018757258f1 | HunterYIboHu/htdp2-solution | ex501-how-many.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-advanced-reader.ss" "lang")((modname ex501-how-many) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-de... | null | https://raw.githubusercontent.com/HunterYIboHu/htdp2-solution/6182b4c2ef650ac7059f3c143f639d09cd708516/Chapter6/Section32-Designing-accumulator-style-function/ex501-how-many.rkt | racket | about the language level of this file in a form that our tools can easily process.
[List-of Any] -> N
it signals an error when the input is not list.
[List-of Any] N -> N
produce the number of items on l
accumulator len represent the number of items meet since the
first one.
Questions
Q1: Does the accumulator ... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-advanced-reader.ss" "lang")((modname ex501-how-many) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #t #t none #f () #f)))
produces the number of items on l.
(check-expect (how-... |
1ceedc5a80136efdc449eff921fd459549fefeac40b55e3c11e4ad4f7ec9eb15 | philnguyen/soft-contract | tetris.rkt | #lang racket
(provide
(contract-out
;; data
[struct block ([x real?] [y real?] [color COLOR/C])]
[struct posn ([x real?] [y real?])]
[struct tetra ([center POSN/C] [blocks BSET/C])]
[struct world ([tetra TETRA/C] [blocks BSET/C])]
[posn=? (POSN/C POSN/C . -> . boolean?)]
[COLOR/C any/c]
[POSN/C any/c]... | null | https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/unsafe/games/tetris.rkt | racket | data
consts
block
bset
elim
tetras
world
image
aux
ha!
visual
data
consts
block
block=? : Block Block -> Boolean
block-move : Number Number Block -> Block
block-rotate-ccw : Posn Block -> Block
block-rotate-cw : Posn Block -> Block
list
TODO: some way to attach our specialized contract to li... | #lang racket
(provide
(contract-out
[struct block ([x real?] [y real?] [color COLOR/C])]
[struct posn ([x real?] [y real?])]
[struct tetra ([center POSN/C] [blocks BSET/C])]
[struct world ([tetra TETRA/C] [blocks BSET/C])]
[posn=? (POSN/C POSN/C . -> . boolean?)]
[COLOR/C any/c]
[POSN/C any/c]
[BLOCK/... |
c9bb06239f15d8f6b6231b745166854a1a709aae3dd0df2fd58aa026a67c74c3 | lanl/APPFL | HMBU.hs | {-# LANGUAGE TypeSynonymInstances #-}
# LANGUAGE FlexibleInstances #
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE ParallelListComp #-}
import ADT
import AST
import Data.Set (Set)
import qualified Data.Set as Set
import qualified Data.Map as Map
import Control.Monad.State
type Subst = Map.Map TyVar Monot... | null | https://raw.githubusercontent.com/lanl/APPFL/0f29f390d4735e863904348711a48b8f38ca5d03/codegen/HMBU.hs | haskell | # LANGUAGE TypeSynonymInstances #
# LANGUAGE NamedFieldPuns #
# LANGUAGE ParallelListComp #
apply = Set.map . apply
bind var to monotype in a substitution if passes occurs check
just a special type constructor
for testing, a simple enriched lambda calculus
tests
let x = x in x
in y
let id = \... | # LANGUAGE FlexibleInstances #
import ADT
import AST
import Data.Set (Set)
import qualified Data.Set as Set
import qualified Data.Map as Map
import Control.Monad.State
type Subst = Map.Map TyVar Monotype
idSubst = Map.empty
compose :: Subst -> Subst -> Subst
compose s1 s2 = Map.map (apply s1) s2 `Map.union` s1
... |
3437555d844b8fea4516b0c55b24caa072fa2f817241627a650a523d74b3bbb2 | airbus-seclab/bincat | env.ml |
This file is part of BinCAT .
Copyright 2014 - 2018 - Airbus
BinCAT is free software : 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
opti... | null | https://raw.githubusercontent.com/airbus-seclab/bincat/493a03890b3b472fd198ce58c7e9280abd0f9f93/ocaml/src/domains/env.ml | ocaml | abstract environment for non relational domains
interval of addresses, from init
address to single byte |
This file is part of BinCAT .
Copyright 2014 - 2018 - Airbus
BinCAT is free software : 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
opti... |
22bf68db97c90e7cdded501bece985e8e92a6082e09199c8bc81ed76dc18637d | replete-repl/replete-shared | prepl.cljs | (ns replete.prepl
(:refer-clojure :exclude [resolve eval])
(:require-macros [cljs.env.macros :refer [ensure with-compiler-env]]
[cljs.analyzer.macros :refer [no-warn]])
(:require [clojure.string :as string]
[cljs.repl :as repl]
[cljs.js :as cljs]
[cljs.analyz... | null | https://raw.githubusercontent.com/replete-repl/replete-shared/8c289b6c8be4eb7ffabcd92a712155b03d8dc665/src/replete/prepl.cljs | clojure | Remove unwanted errors providing 'cljs.user
TODO ... provide a side debug 'tap'? | (ns replete.prepl
(:refer-clojure :exclude [resolve eval])
(:require-macros [cljs.env.macros :refer [ensure with-compiler-env]]
[cljs.analyzer.macros :refer [no-warn]])
(:require [clojure.string :as string]
[cljs.repl :as repl]
[cljs.js :as cljs]
[cljs.analyz... |
bea7976c14cfdee4cb9458453adaa18c3492f23739a4649e053b1ae5c3761f46 | llvm-hs/llvm-hs-examples | Main.hs | # LANGUAGE ForeignFunctionInterface #
{-# LANGUAGE OverloadedStrings #-}
# OPTIONS_GHC -Wall #
module Main where
import Control.Monad.Except
import qualified Data.ByteString.Char8 as BS
import Data.IORef
import Data.Int
import qualified Data.Map.Strict as Map
import Foreign.Ptr
import LLVM.AST
import qualified LLVM.A... | null | https://raw.githubusercontent.com/llvm-hs/llvm-hs-examples/7308a4c063b17946aa55f18468ba63f62ac95b4a/orc/Main.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE ForeignFunctionInterface #
# OPTIONS_GHC -Wall #
module Main where
import Control.Monad.Except
import qualified Data.ByteString.Char8 as BS
import Data.IORef
import Data.Int
import qualified Data.Map.Strict as Map
import Foreign.Ptr
import LLVM.AST
import qualified LLVM.AST as AST
import LLVM.AST.Constant
... |
e72b801ce821684ab00c5a3182bc466cbf86f383fc3fe709883246a33511b41f | Chris00/ocaml-cairo | tips_letter.ml | (* This file is part of the tutorial
/
*)
open Cairo
let () =
let alphabet = "AbCdEfGhIjKlMnOpQrStUvWxYz" in
let surface = Cairo.Image.create Cairo.Image.ARGB32 ~w:780 ~h:30 in
let cr = Cairo.create surface in
Examples are in 26.0 x 1.0 coordinate space
Cairo.scale cr 30. 30.;
Cairo.set_font_size cr 0.... | null | https://raw.githubusercontent.com/Chris00/ocaml-cairo/202674a8d0c533b689ceacdb523ca167611e1b4c/examples/tips_letter.ml | ocaml | This file is part of the tutorial
/
Drawing code goes here
Write output |
open Cairo
let () =
let alphabet = "AbCdEfGhIjKlMnOpQrStUvWxYz" in
let surface = Cairo.Image.create Cairo.Image.ARGB32 ~w:780 ~h:30 in
let cr = Cairo.create surface in
Examples are in 26.0 x 1.0 coordinate space
Cairo.scale cr 30. 30.;
Cairo.set_font_size cr 0.8;
Cairo.set_source_rgb cr 0.0 0.0 0.0;
... |
d1856aa10adc28c99bbcb9462f8d92f26698c23cacce0bf11e2e237c630c8331 | fourmolu/fourmolu | linear-arrows-four-out.hs | {-# LANGUAGE LinearTypes #-}
# LANGUAGE UnicodeSyntax #
type a % b = (a, b)
type Foo a m b = a % m -> b
type Bar a m b = a %m -> b
type Baz = a %1 -> b
type M =
a %1 ->
b %m ->
c %1 ->
d
test ::
a %1 ->
b %1 ->
c %m ->
d
test = test
| null | https://raw.githubusercontent.com/fourmolu/fourmolu/1f8903a92c8d5001dc1ec8ecfd4a04a3b61c3283/data/examples/other/linear-arrows-four-out.hs | haskell | # LANGUAGE LinearTypes # | # LANGUAGE UnicodeSyntax #
type a % b = (a, b)
type Foo a m b = a % m -> b
type Bar a m b = a %m -> b
type Baz = a %1 -> b
type M =
a %1 ->
b %m ->
c %1 ->
d
test ::
a %1 ->
b %1 ->
c %m ->
d
test = test
|
3b695a38faa2af62823f58e854ec7099b636ddd6cce3e69bda423c1588828f71 | sgbj/MaximaSharp | zuni2.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/zuni2.lisp | lisp | Compiled by f2cl version:
"f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $"
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':simple-array)
(:array-slicing nil) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ "
" macros.l , v fceac53... |
53e3565bc4822fc7756def3880201e8e87a4bf8cc6aab9f2a8c0dacaf86619a5 | thufschmitt/tix | type_annotations.ml | *
* Definition of the types used by tix
* Definition of the types used by tix
*)
module F = Format
let (%>) f g x = g (f x)
module Infix_constructors =
struct
type t =
| Arrow
| And
| Or
| Diff
let show = function
| Arrow -> "->"
| And -> "&"
| Or -> "|"
| Diff -> "\\... | null | https://raw.githubusercontent.com/thufschmitt/tix/bfbf7b6de9160bae8af3e0686b783bbc75c79fd7/lib/common/type_annotations.ml | ocaml | *
* Definition of the types used by tix
* Definition of the types used by tix
*)
module F = Format
let (%>) f g x = g (f x)
module Infix_constructors =
struct
type t =
| Arrow
| And
| Or
| Diff
let show = function
| Arrow -> "->"
| And -> "&"
| Or -> "|"
| Diff -> "\\... | |
c5e1459dd5cd2ec51bcbb4442011515dc57d8dc399cf478eb34d0b5e419aba27 | kaos/ecapnp | ecapnp_serialize.erl | %%
Copyright 2013 , < >
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law or agreed to in writing, software... | null | https://raw.githubusercontent.com/kaos/ecapnp/f351c07730ba134b41b137dd6a6b93069a0908fc/src/ecapnp_serialize.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 lang... | Copyright 2013 , < >
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
2013 ,
@author < >
< a href=" / capnproto / encoding.html#packing">Cap'n
Proto packing</a > .
@doc Serialize messages .
-module... |
d4dda9e0365eda2adf1fa4be67a3f9d75a321455478a0265bd5fd9b8935f53fc | audreyt/interpolatedstring-perl6 | Perl6.hs | # LANGUAGE TemplateHaskell , TypeSynonymInstances , FlexibleInstances ,
UndecidableInstances , OverlappingInstances , MultiParamTypeClasses ,
IncoherentInstances
#
UndecidableInstances, OverlappingInstances, MultiParamTypeClasses,
IncoherentInstances
#-}
| for interpolated strings using Perl 6 syn... | null | https://raw.githubusercontent.com/audreyt/interpolatedstring-perl6/81841be3828a5ed5bbe0c9aa4e3335e12befdd01/src/Text/InterpolatedString/Perl6.hs | haskell |
no interpolation at all:
@
{-\# LANGUAGE QuasiQuotes, ExtendedDefaultRules #-}
' Text ' , ' ByteString ' etc also works
foo = [q|
Well here is a
multi-line string!
|]
@
it will have 'show' called if it is not.
Escaping of '{' is done with backslash.
For interpolating numeric expressions witho... | # LANGUAGE TemplateHaskell , TypeSynonymInstances , FlexibleInstances ,
UndecidableInstances , OverlappingInstances , MultiParamTypeClasses ,
IncoherentInstances
#
UndecidableInstances, OverlappingInstances, MultiParamTypeClasses,
IncoherentInstances
#-}
| for interpolated strings using Perl 6 syn... |
a4dad3fcd1b924efe5d300c1484ad41e148650635bc56afd0c1597b521a28a1c | cblp/notifaika | Cache.hs |
Notifaika reposts notifications
from different feeds to chats .
Copyright ( C ) 2015
This program is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the L... | null | https://raw.githubusercontent.com/cblp/notifaika/db8f9b69d3417db337bce7fb44b2da8e0337a466/src/Notifaika/Cache.hs | haskell |
Notifaika reposts notifications
from different feeds to chats .
Copyright ( C ) 2015
This program is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the L... | |
e3c10970d764423aaf380bb55ec4e8f74c1f75ffe8eaf2fc0c69a4337c227b4d | wdebeaum/step | trips-library.lisp | ;;;;
;;;; trips-library.lisp
;;;;
, , 30 Mar 2001
Time - stamp : < Mon Jan 12 20:44:53 EST 2004 ferguson >
;;;;
(in-package :defcomponent)
(defclass trips-library (trips-component)
()
(:documentation "Base class for TRIPS library components."))
| null | https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/defcomponent/trips-library.lisp | lisp |
trips-library.lisp
| , , 30 Mar 2001
Time - stamp : < Mon Jan 12 20:44:53 EST 2004 ferguson >
(in-package :defcomponent)
(defclass trips-library (trips-component)
()
(:documentation "Base class for TRIPS library components."))
|
7c8d99a195b1389580e9dd3b96ca77ca3b400dc788d153ce40b69c0f8f60cf9f | processone/stun | stun_shaper.erl | %%%----------------------------------------------------------------------
%%% File : stun_shaper.erl
Author : < >
%%% Purpose : Functions to control connections traffic
Created : 9 Feb 2003 by < >
%%%
%%%
Copyright ( C ) 2002 - 2023 ProcessOne , SARL . All Rights Reserved .
%%%
Licensed under the A... | null | https://raw.githubusercontent.com/processone/stun/5e41e347d97da0f68182a0870af806354996ab99/src/stun_shaper.erl | erlang | ----------------------------------------------------------------------
File : stun_shaper.erl
Purpose : Functions to control connections traffic
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 ... | Author : < >
Created : 9 Feb 2003 by < >
Copyright ( C ) 2002 - 2023 ProcessOne , SARL . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(stun_shaper).
-author('').
-export([new... |
bf821a8b52be464f810b1332df0550b0f712fe94a5e3e9c1d91e255180289587 | cronburg/antlr-haskell | GLRPartial.hs | # LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes
, DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances
, FlexibleInstances , UndecidableInstances , FlexibleContexts , TemplateHaskell
, DeriveDataTypeable #
, DataKinds, ScopedTypeVariables, OverloadedStr... | null | https://raw.githubusercontent.com/cronburg/antlr-haskell/7a9367038eaa58f9764f2ff694269245fbebc155/test/lr/GLRPartial.hs | haskell | Correct, should not have parsed | # LANGUAGE DeriveAnyClass , DeriveGeneric , TypeFamilies , QuasiQuotes
, DataKinds , ScopedTypeVariables , OverloadedStrings , TypeSynonymInstances
, FlexibleInstances , UndecidableInstances , FlexibleContexts , TemplateHaskell
, DeriveDataTypeable #
, DataKinds, ScopedTypeVariables, OverloadedStr... |
6f9dd92a4a4d2b78fbd107957b40758e1111a7d72f27535c63ab6e231d68b5e8 | p1mps/roterabebot | nlp_test.clj | (ns roterabebot.nlp-test
(:require
[clojure.test :as t]
[roterabebot.markov :as markov]
[roterabebot.nlp :as sut]))
(def message
{:message "I love pizza"})
(def sentences
'(("pizza" "is" "love")
("no")))
(t/deftest clean
(t/testing "cleaning message"
(t/is (= "aaaa bb aaa" (sut/clean-me... | null | https://raw.githubusercontent.com/p1mps/roterabebot/11c563989eeb00039eb88099163254f6dcbc370f/test/roterabebot/nlp_test.clj | clojure | (ns roterabebot.nlp-test
(:require
[clojure.test :as t]
[roterabebot.markov :as markov]
[roterabebot.nlp :as sut]))
(def message
{:message "I love pizza"})
(def sentences
'(("pizza" "is" "love")
("no")))
(t/deftest clean
(t/testing "cleaning message"
(t/is (= "aaaa bb aaa" (sut/clean-me... | |
72eb7830212a93b3d3bb7abc12e8e3dcc5c1c83984c2de9c76cebe8094527aba | cedlemo/OCaml-GI-ctypes-bindings-generator | Requested_size.ml | open Ctypes
open Foreign
type t
let t_typ : t structure typ = structure "Requested_size"
let f_data = field t_typ "data" (ptr void)
let f_minimum_size = field t_typ "minimum_size" (int32_t)
let f_natural_size = field t_typ "natural_size" (int32_t)
let _ = seal t_typ
| null | https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Requested_size.ml | ocaml | open Ctypes
open Foreign
type t
let t_typ : t structure typ = structure "Requested_size"
let f_data = field t_typ "data" (ptr void)
let f_minimum_size = field t_typ "minimum_size" (int32_t)
let f_natural_size = field t_typ "natural_size" (int32_t)
let _ = seal t_typ
| |
9d3c5da274e2c985aa8b8ac4859ba2f3c06d147c0ded21608fe8b6fdedf740ba | CloudI/CloudI | epgsql_codec_intrange.erl | %%% @doc
Codec for ` int4range ' , ` int8range ' types .
%%%
%%% <ul>
%%% <li>[#rangetypes-builtin]</li>
%%% <li>$PG$/src/backend/utils/adt/rangetypes.c</li>
%%% </ul>
%%% @end
%%% @see epgsql_codec_integer
%%% @end
Created : 14 Oct 2017 by < >
%%% TODO: universal range, based on pg_range table
%%% TODO: inc... | null | https://raw.githubusercontent.com/CloudI/CloudI/3e45031c7ee3e974ead2612ea7dd06c9edf973c9/src/external/cloudi_x_epgsql/src/epgsql_codec_intrange.erl | erlang | @doc
<ul>
<li>[#rangetypes-builtin]</li>
<li>$PG$/src/backend/utils/adt/rangetypes.c</li>
</ul>
@end
@see epgsql_codec_integer
@end
TODO: universal range, based on pg_range table
TODO: inclusive/exclusive ranges `[]' `[)' `(]' `()' | Codec for ` int4range ' , ` int8range ' types .
Created : 14 Oct 2017 by < >
-module(epgsql_codec_intrange).
-behaviour(epgsql_codec).
-export([init/2, names/0, encode/3, decode/3, decode_text/3]).
-include("epgsql_protocol.hrl").
-export_type([data/0]).
-type data() :: {left(), right()} | empty.
-type lef... |
df6948690760f3769df663b5e98067acc7f6768d3d32bf5ae628fe9146c8de44 | 2600hz-archive/whistle | rebar_log.erl | -*- erlang - indent - level : 4;indent - tabs - mode : nil -*-
%% ex: ts=4 sw=4 et
%% -------------------------------------------------------------------
%%
rebar : Erlang Build Tools
%%
Copyright ( c ) 2009 ( )
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this softw... | null | https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/utils/rebar/src/rebar_log.erl | erlang | ex: ts=4 sw=4 et
-------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense, and/or sel... | -*- erlang - indent - level : 4;indent - tabs - mode : nil -*-
rebar : Erlang Build Tools
Copyright ( c ) 2009 ( )
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the... |
f0ac9a07760f8f5d985a5fc3c4790e9c30ba4dccc7faf839247b48dd2fa6ccdb | ShamoX/cash | user_group_3_6.ml | (***********************************************************************)
(* Cash *)
(* *)
, projet Cristal , INRIA Rocquencourt
(* ... | null | https://raw.githubusercontent.com/ShamoX/cash/aa97231154c3f64c9d0a62823e1ed71e32ab8718/user_group_3_6.ml | ocaml | *********************************************************************
Cash
under the terms of the GNU Lesser Gene... | , projet Cristal , INRIA Rocquencourt
Copyright 2002 Institut National de Recherche en Informatique et
en Automatique . All rights reserved . This file is distributed
Cash is based on , by .
type user_info =
{ ui_name : string;
ui_uid : i... |
51251432193a6f0a45fb1ac25f12820d943e9369d91142b0242af87245b02b2a | GaloisInc/semmc | Unfold.hs | {-# LANGUAGE ConstraintKinds #-}
# LANGUAGE DataKinds #
# LANGUAGE PolyKinds #
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE GADTs #-}
# LANGUAGE TypeOperators #
module Data.Parameterized.Unfold (
unfoldShape
) where
import Control.Monad.Catch ( MonadThrow )
import qualified Data.Parameterized.List as SL
unf... | null | https://raw.githubusercontent.com/GaloisInc/semmc/4dc4439720b3b0de8812a68f8156dc89da76da57/semmc/src/Data/Parameterized/Unfold.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE RankNTypes #
# LANGUAGE GADTs # | # LANGUAGE DataKinds #
# LANGUAGE PolyKinds #
# LANGUAGE TypeOperators #
module Data.Parameterized.Unfold (
unfoldShape
) where
import Control.Monad.Catch ( MonadThrow )
import qualified Data.Parameterized.List as SL
unfoldShape :: (MonadThrow m)
=> SL.List r sh
-> (a -> m (b '[]... |
ba9cc0b4a87fe3f4d2ffe08ce3916d7f4f455f29cf8ad19a2a43e850d27981f1 | garrigue/lablgtk | i_channel.mli | (**************************************************************************)
Lablgtk - Camlirc
(* *)
(* * You are free to do anything you want with this code as long *)
(* as it i... | null | https://raw.githubusercontent.com/garrigue/lablgtk/504fac1257e900e6044c638025a4d6c5a321284c/applications/camlirc/i_channel.mli | ocaml | ************************************************************************
* You are free to do anything you want with this code as long
as it is for personal use.
... | Lablgtk - Camlirc
< >
< >
class i_channel_signals :
object ('a)
val after : bool
val mutable disconnectors : (GtkSignal.id -> bool) list
method after : 'a
method disconnect : GtkS... |
a1e242ce35b90a4f1af277fe3ca2e37f9096eb33d26caed248d008ef9cb178af | AdaCore/why3 | mltree.mli | (********************************************************************)
(* *)
The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
(* ... | null | https://raw.githubusercontent.com/AdaCore/why3/be1023970d48869285e68f12d32858c3383958e0/src/extract/mltree.mli | ocaml | ******************************************************************
This software is distributed under the terms of the GNU Lesser
on linking described in file LICENSE. ... | The Why3 Verification Platform / The Why3 Development Team
Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University
General Public License version 2.1 , with the special exception
type ty =
| Tvar of Ty.tvsymbol
| Tapp of Ident.ident * ty list
| Tarrow of ty * ty
| Ttuple of ty ... |
30c0ca36a30961c53fc208d9425856c354ce4ad548fe0bae4b9e169b5771a844 | carotene/carotene | api_messages_handler.erl | -module(api_messages_handler).
-export([init/3]).
-export([terminate/3]).
-export([allowed_methods/2]).
-export([content_types_accepted/2]).
-export([publish_in_channel/3]).
-export([publish_message/2]).
init(_Type, Req, _Opts) ->
{{IP, _Port}, _} = cowboy_req:peer(Req),
case carotene_api_authorization:author... | null | https://raw.githubusercontent.com/carotene/carotene/963ecad344ec1c318c173ad828a5af3c000ddbfc/src/api_messages_handler.erl | erlang | {[
{{<<"application">>, <<"json">>, []}, channel_to_json} | -module(api_messages_handler).
-export([init/3]).
-export([terminate/3]).
-export([allowed_methods/2]).
-export([content_types_accepted/2]).
-export([publish_in_channel/3]).
-export([publish_message/2]).
init(_Type, Req, _Opts) ->
{{IP, _Port}, _} = cowboy_req:peer(Req),
case carotene_api_authorization:author... |
90f74dcaec3ec405c2566dcc22304542c9809a1eb064baa6ce73e068883dc160 | lambdabot/IOSpec | MVar.hs | # LANGUAGE DeriveDataTypeable , FlexibleContexts , TypeOperators #
-- | A pure specification of basic operations on MVars.
module Test.IOSpec.MVar
(
-- * The 'MVarS' spec
MVarS
-- * Supported functions
, MVar
, newEmptyMVar
, takeMVar
, putMVar
)
where
import Data.Dynamic
import Data.M... | null | https://raw.githubusercontent.com/lambdabot/IOSpec/76235f77942ab7672f70fca4b9e133ef667606a4/src/Test/IOSpec/MVar.hs | haskell | | A pure specification of basic operations on MVars.
* The 'MVarS' spec
* Supported functions
The 'MVarS' data type and its instances.
computation that uses shared, mutable variables and returns a
By itself, 'MVarS' is not terribly useful. You will probably want
| The 'takeMVar' function removes the value stor... | # LANGUAGE DeriveDataTypeable , FlexibleContexts , TypeOperators #
module Test.IOSpec.MVar
(
MVarS
, MVar
, newEmptyMVar
, takeMVar
, putMVar
)
where
import Data.Dynamic
import Data.Maybe (fromJust)
import Test.IOSpec.Types
import Test.IOSpec.VirtualMachine
| An expression of type @IOSpec... |
95d0ddb549f571f64f583b203c1d5afc992da30b3a0a53600b7a7182505cc69d | cirodrig/triolet | TypeInference.hs | | Type inference and name resolution for low - level source code .
The responsibilities of this module are to resolve names and infer data types .
There are two kinds of names : variable names and type names .
The currently visible names are stored in an ' Env ' value and found by
' lookupEntity ' . The envi... | null | https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/LLParser/TypeInference.hs | haskell | | A type-annotated expression
Show instances, for debugging.
evaluation if we try to show them during type inference, because of
how they interace with name lookup.
-----------------------------------------------------------------------------
Type-parameterized things
| An applicative interpretation of manyar... | | Type inference and name resolution for low - level source code .
The responsibilities of this module are to resolve names and infer data types .
There are two kinds of names : variable names and type names .
The currently visible names are stored in an ' Env ' value and found by
' lookupEntity ' . The envi... |
dfcc676c06fac5760c3b26a8d8b448a0ed5f899f135bf5876509c2fb9dbebe80 | xmonad/xmonad-extras | Desktop.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE TypeFamilies #
{-# LANGUAGE ConstraintKinds #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE DataKinds #
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -fno - warn - missing - signatures #
|
Module : XMonad . Config . Alt . Desktop
Copyright : < >
License ... | null | https://raw.githubusercontent.com/xmonad/xmonad-extras/d45b4cbfadbd8a6c2f0c062e5027a1c800b0e959/XMonad/Config/Alt/Desktop.hs | haskell | # LANGUAGE ConstraintKinds #
* "XMonad.Hooks.DynamicLog"
* "XMonad.Hooks.EwmhDesktops"
* "XMonad.Hooks.ManageDocks"
* precedences (apply modifiers in what should be the right order)
| See 'E.ewmh'
| See 'ManageDocks.avoidStrutsOn'
| See 'ManageDocks.avoidStruts'
| See 'DynamicLog.statusBar'
doesn't set struts
... | # LANGUAGE FlexibleContexts #
# LANGUAGE TypeFamilies #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE DataKinds #
# LANGUAGE TemplateHaskell #
# OPTIONS_GHC -fno - warn - missing - signatures #
|
Module : XMonad . Config . Alt . Desktop
Copyright : < >
License : BSD3 - style ( see LICENSE ... |
afd1bb3b26bb48eb28af46040976a8597b86b2870b244afbcdb1a43531d51071 | project-oak/hafnium-verification | ToplMonitor.mli |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/project-oak/hafnium-verification/6071eff162148e4d25a0fedaea003addac242ace/experiments/ownership-inference/infer/infer/src/topl/ToplMonitor.mli | ocaml | * For debug. |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... |
1eea140c9ca9ea99822ef3b26c0292984657bd00ca264aedd542c926d991fef2 | sgbj/MaximaSharp | dqcheb.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/numerical/slatec/dqcheb.lisp | lisp | Compiled by f2cl version:
"f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $"
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':array)
(:array-slicing t) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 46c1f6a93b0d 2012/05/03 04:40:28 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl6.l , v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $ "
" macros.l , v fceac53... |
0a532c6db4522c77fb9db48fc4f3f4ae2558e09402838f952fbb3ce56111f083 | penpot/penpot | demo.clj | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
;;
;; Copyright (c) KALEIDOS INC
(ns app.rpc.commands.demo
"A demo specific mutations."
(:require
[app.common.exceptions :as ex]
[app... | null | https://raw.githubusercontent.com/penpot/penpot/42e97f8be105af41757f8e896b93a99032a2b72a/backend/src/app/rpc/commands/demo.clj | clojure |
Copyright (c) KALEIDOS INC | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
(ns app.rpc.commands.demo
"A demo specific mutations."
(:require
[app.common.exceptions :as ex]
[app.config :as cf]
[app.db :as db... |
f193fe416faa91995e69f06c6f771f19a837f348677f6547e951887660fa4b9c | SimulaVR/godot-haskell | Light2D.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.Light2D
(Godot.Core.Light2D._SHADOW_FILTER_PCF7,
... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/Light2D.hs | haskell | | The Light2D's energy value. The larger the value, the stronger the light.
| The Light2D's energy value. The larger the value, the stronger the light.
| The height of the Light2D. Used with 2D normal mapping.
| The height of the Light2D. Used with 2D normal mapping.
| The layer mask. Only objects with a matching ... | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.Light2D
(Godot.Core.Light2D._SHADOW_FILTER_PCF7,
... |
8170fc353f04d684c7f27b09808ef6962b94b687d82862d5cc3ccfce5f3b8579 | bytekid/mkbtt | termPermutation.ml | Copyright 2010
* GNU Lesser General Public License
*
* This file is part of MKBtt .
*
* is free software : you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation , either version 3 of the License , or (... | null | https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mkbtt/isomorphisms/termPermutation.ml | ocaml | ** OPENS *******************************************************************
** SUBMODULES *********************************************************
** EXCEPTIONS *********************************************************
** TYPES *************************************************************
** FUNCTIONS ***************... | Copyright 2010
* GNU Lesser General Public License
*
* This file is part of MKBtt .
*
* is free software : you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation , either version 3 of the License , or (... |
7ca9ad8d5858359de6d9f433e705c9c5c1a7124c9cb83a8950e958bca2ab6d33 | aryx/xix | main.ml | Copyright 2016 , 2018 , see copyright.txt
open Common
module G = Graph
module R = Rules
(*****************************************************************************)
(* Prelude *)
(*****************************************************************************)
An OCaml port of mk , the Plan 9 build system .
... | null | https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/mk/main.ml | ocaml | ***************************************************************************
Prelude
***************************************************************************
***************************************************************************
Testing
************************************************************************... | Copyright 2016 , 2018 , see copyright.txt
open Common
module G = Graph
module R = Rules
An OCaml port of mk , the Plan 9 build system .
*
* Main limitations compared to mk :
* - no regexp rules
* ( not worth it , ' % ' are good enough )
* - no special handling for archives
* ( fast... |
e716f37e4ea43f60e1658a846b2e5e17105b0c038487db237f2e447ad7f133bb | clojure-interop/aws-api | AWSStepFunctionsAsync.clj | (ns com.amazonaws.services.stepfunctions.AWSStepFunctionsAsync
"Interface for accessing AWS SFN asynchronously. Each asynchronous method will return a Java Future object
overloads which accept an AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Note: Do not directly im... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.stepfunctions/src/com/amazonaws/services/stepfunctions/AWSStepFunctionsAsync.clj | clojure | (ns com.amazonaws.services.stepfunctions.AWSStepFunctionsAsync
"Interface for accessing AWS SFN asynchronously. Each asynchronous method will return a Java Future object
overloads which accept an AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Note: Do not directly im... | |
37db9213ddc72d514c336362575ff646ba4855dca5553ba5749c3162fddfb0e9 | liamoc/dixi | Docs.hs | {-# OPTIONS -fno-warn-orphans #-}
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE QuasiQuotes #-}
# LANGUAGE OverloadedStrings #
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
# LANGUAGE FlexibleInstances #
import Data.Proxy
import Data.Patch(HunkStatus (..))
import Di... | null | https://raw.githubusercontent.com/liamoc/dixi/4a2aeef11378adf63ddf3d5787611e49220d6f6e/api-docs/Docs.hs | haskell | # OPTIONS -fno-warn-orphans #
# LANGUAGE QuasiQuotes #
# LANGUAGE DataKinds #
# LANGUAGE TypeOperators # | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleInstances #
import Data.Proxy
import Data.Patch(HunkStatus (..))
import Dixi.API
import Dixi.Forms()
import Dixi.Markup()
import Servant.Docs
import Servant.API
import Servant.HTML.Blaze
import System.Environment
import Data.... |
e2be13a5a8cebdc6fa565911fe0131b71859e733745588c000dbe357bccc9f70 | valpackett/octohipster | handlers_spec.clj | (ns octohipster.handlers-spec
(:use [speclj core]
[octohipster json]
[octohipster.handlers core util json edn yaml hal cj middleware]))
(defn wrap-handler-test [handler]
(fn [ctx] "hello"))
(describe "wrap-handler-json"
(it "outputs json for json requests"
(let [h (-> identity wrap-handler-j... | null | https://raw.githubusercontent.com/valpackett/octohipster/4c1d210643940576eed42a194f810c5c719da63f/spec/octohipster/handlers_spec.clj | clojure | liberator does this constantly thing | (ns octohipster.handlers-spec
(:use [speclj core]
[octohipster json]
[octohipster.handlers core util json edn yaml hal cj middleware]))
(defn wrap-handler-test [handler]
(fn [ctx] "hello"))
(describe "wrap-handler-json"
(it "outputs json for json requests"
(let [h (-> identity wrap-handler-j... |
6b0ae0ad53b6e1347830ac244d71b3d05a4093baa13e6a93eb166de8242c73a0 | danhper/evm-analyzer | sourcemap.mli | open Core
module JumpType: sig
type t = In | Out | Regular
val of_string: String.t -> t
end
module Mapping: sig
type t = {
start: Int.t;
length: Int.t;
source_index: Int.t;
jump: JumpType.t;
}
val of_string: ?current_mappings:t List.t -> String.t -> t
end
type t = Mapping.t List.t
val of... | null | https://raw.githubusercontent.com/danhper/evm-analyzer/9fb1cf6dc743c2f779973b2f0892047ebbd4e5fd/src/sourcemap.mli | ocaml | open Core
module JumpType: sig
type t = In | Out | Regular
val of_string: String.t -> t
end
module Mapping: sig
type t = {
start: Int.t;
length: Int.t;
source_index: Int.t;
jump: JumpType.t;
}
val of_string: ?current_mappings:t List.t -> String.t -> t
end
type t = Mapping.t List.t
val of... | |
469e5ec8bf415560f2d052aadcbe270feb2924401d5da6be637b97e9e3566e5a | ocaml-sf/learn-ocaml-corpus | partial.ml | let make (n : int) (x : 'a) : 'a parray =
let data = Array.make n x in
ref (Array { data })
let set (base : 'a parray) (i : int) (value : 'a) =
ref (Apply { base; i; value })
let rec revert (a : 'a parray) : 'a array =
match !a with
| Array { data } ->
data
| Apply { base; i; value } ->
let da... | null | https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/persistent_arrays/wrong/partial.ml | ocaml | base := Apply { base = a; i; value = v };
wrong | let make (n : int) (x : 'a) : 'a parray =
let data = Array.make n x in
ref (Array { data })
let set (base : 'a parray) (i : int) (value : 'a) =
ref (Apply { base; i; value })
let rec revert (a : 'a parray) : 'a array =
match !a with
| Array { data } ->
data
| Apply { base; i; value } ->
let da... |
d8fd41a51b9e051f63382207812a15f5fa667e6ee1b796c93ed612205b367e25 | rtoy/ansi-cl-tests | truename.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Tue Jan 6 05:32:37 2004
;;;; Contains: Tests of TRUENAME
(in-package :cl-test)
(deftest truename.1
(let* ((pn #p"truename.lsp")
(tn (truename pn)))
(values
(notnot (pathnamep pn))
(typep pn 'logical-pathname)
(equalt (pathname-name ... | null | https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/truename.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests of TRUENAME
Error tests | Author :
Created : Tue Jan 6 05:32:37 2004
(in-package :cl-test)
(deftest truename.1
(let* ((pn #p"truename.lsp")
(tn (truename pn)))
(values
(notnot (pathnamep pn))
(typep pn 'logical-pathname)
(equalt (pathname-name pn) (pathname-name tn))
(equalt (pathname-type pn) (... |
aee23fb52be58d50e99c8759eed0c0710af6cf665f4ee4766d2fc59828371889 | kadena-io/pact | ParserSpec.hs | {-# LANGUAGE OverloadedStrings #-}
module ParserSpec (spec) where
import Data.Default
import Test.Hspec
import Pact.Repl
import Pact.Repl.Types
import Data.Either
import Data.Text (Text)
import Control.Monad.State.Strict
import Pact.Compile
import Pact.Parse
import Pact.Types.PactError
import Pact.Types.Exp
import Pa... | null | https://raw.githubusercontent.com/kadena-io/pact/407420abc31ac584b1a7954fcdc8fd042d6fbc0c/tests/ParserSpec.hs | haskell | # LANGUAGE OverloadedStrings #
code from bad-term-in-list.repl |
module ParserSpec (spec) where
import Data.Default
import Test.Hspec
import Pact.Repl
import Pact.Repl.Types
import Data.Either
import Data.Text (Text)
import Control.Monad.State.Strict
import Pact.Compile
import Pact.Parse
import Pact.Types.PactError
import Pact.Types.Exp
import Pact.Types.ExpParser
import Pact.Type... |
8b5ab670d7c38ac5d1c66728eadafc8c0ce9b71ef6ae78219096c3a422a231fc | adrieng/pulsar | scal.ml | This file is part of Pulsar , a temporal functional language .
* Copyright ( C ) 2017
*
* This program is free software : you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation , either version 3 of the License , or ... | null | https://raw.githubusercontent.com/adrieng/pulsar/c3901388659d9c7978b04dce0815e3ff9aea1a0c/pulsar-lib/scal.ml | ocaml | This file is part of Pulsar , a temporal functional language .
* Copyright ( C ) 2017
*
* This program is free software : you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation , either version 3 of the License , or ... | |
74aada7d190dee48c59ab69fe624d9516de53794347f91435550f5d6c6490de3 | shriram/gradescope-racket | defs.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname defs) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #... | null | https://raw.githubusercontent.com/shriram/gradescope-racket/56aacb9caf6d0d233d9e267c6e7a4ba216fde073/tests/sq/s2/defs.rkt | racket | about the language level of this file in a form that our tools can easily process. | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname defs) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(define (sq n) (* n n n))
|
9eddd20f73742c8603118d5b19a770b3d626e001ce79c396904235a10bf389b0 | bit-ranger/scheme-bootstrap | types.scm | (load "lib/table.scm")
(define operation-table
(make-table))
(define get (operation-table 'lookup-proc))
(define put (operation-table 'insert-proc!))
;;;为数据实体增加类型标签
;type-tag 类型符号
;contents 数据实体
(define (attach-tag type-tag contents)
(cons type-tag contents))
;;;取出类型标签
(define (type-tag z)
(if (pair? z)
... | null | https://raw.githubusercontent.com/bit-ranger/scheme-bootstrap/a9155ebd29efe1196854b2dcd76941357dab151e/eval/types.scm | scheme | 为数据实体增加类型标签
type-tag 类型符号
contents 数据实体
取出类型标签
取出数据实体
对函数进行应用,应用规则是根据参数类型自动分派
args 参数列表
参数类型的列表 | (load "lib/table.scm")
(define operation-table
(make-table))
(define get (operation-table 'lookup-proc))
(define put (operation-table 'insert-proc!))
(define (attach-tag type-tag contents)
(cons type-tag contents))
(define (type-tag z)
(if (pair? z)
(car z)
(error "Bad tagged datum -- TYPE-TAG" ... |
d6cebae5add411dfbcf487229854dd02f29fdc341c14046af63b491040114977 | elastic/eui-cljs | icon_token_element.cljs | (ns eui.icon-token-element
(:require ["@elastic/eui/lib/components/icon/assets/tokenElement.js" :as eui]))
(def tokenElement eui/icon)
| null | https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_token_element.cljs | clojure | (ns eui.icon-token-element
(:require ["@elastic/eui/lib/components/icon/assets/tokenElement.js" :as eui]))
(def tokenElement eui/icon)
| |
85b000b191d3f0c140e1a02677e9f37aa5a89aef952af05c86b99f7cca7853fe | bittide/bittide-hardware | tests.hs | SPDX - FileCopyrightText : 2022 Google LLC
--
SPDX - License - Identifier : Apache-2.0
import Prelude
import Test.Tasty (defaultMain,
testGroup)
import qualified Tests.ContranomySim.Print
import qua... | null | https://raw.githubusercontent.com/bittide/bittide-hardware/b44dac8ee0fb14b0c6a94fcbe830fdd8d140bec4/contranomy-sim/tests/tests.hs | haskell | SPDX - FileCopyrightText : 2022 Google LLC
SPDX - License - Identifier : Apache-2.0
import Prelude
import Test.Tasty (defaultMain,
testGroup)
import qualified Tests.ContranomySim.Print
import qualif... | |
ff7eba54e4cd226b68079450ab66c0988285ae0c4bb9b040f48958f28baa0e5b | hakaru-dev/hakaru | Maple.hs | # LANGUAGE CPP , OverloadedStrings , LambdaCase #
{-# OPTIONS_GHC -Wall -fwarn-tabs #-}
module Language.Hakaru.Parser.Maple where
import Prelude hiding (not, and, sum, product)
import Control.Monad.Identity
import Data.Text (Text)
import qualified Data.Text ... | null | https://raw.githubusercontent.com/hakaru-dev/hakaru/94157c89ea136c3b654a85cce51f19351245a490/haskell/Language/Hakaru/Parser/Maple.hs | haskell | # OPTIONS_GHC -Wall -fwarn-tabs #
--------------------------------------------------------------
Type symbols
--------------------------------------------------------------
| Grammar of Inert Expressions
--------------------------------------------------------------
Parsing String into Inert Expression
-------------... | # LANGUAGE CPP , OverloadedStrings , LambdaCase #
module Language.Hakaru.Parser.Maple where
import Prelude hiding (not, and, sum, product)
import Control.Monad.Identity
import Data.Text (Text)
import qualified Data.Text as Text
import Data.Ratio
#... |
849829bb5544cf41e378d09d1450189be316b4f07f35446a20345ce6646bee00 | mikeplus64/Greg | Simple.hs | # LANGUAGE OverloadedStrings , BangPatterns #
module Greg.Simple (createBot, client, monitor) where
import qualified Data.Text as T (Text, append, isPrefixOf, take, drop, unpack)
import qualified Data.Text.IO as T (hGetLine, getLine, putStrLn, readFile)
import Control.Concurrent (newMVar)
import Control.Applicative... | null | https://raw.githubusercontent.com/mikeplus64/Greg/bb3d5af691eed895e330cb3e5425e43419b0244c/src/Greg/Simple.hs | haskell | quotes file
permissions file
`forkIO client` in a main function.
| Monitor a 'Bot''s handle, send and receive messages, parse commands etc. | # LANGUAGE OverloadedStrings , BangPatterns #
module Greg.Simple (createBot, client, monitor) where
import qualified Data.Text as T (Text, append, isPrefixOf, take, drop, unpack)
import qualified Data.Text.IO as T (hGetLine, getLine, putStrLn, readFile)
import Control.Concurrent (newMVar)
import Control.Applicative... |
47a0e00e129a0c8a1fd283fcfa943de4cda633143978bd305f2127f0f90b43ea | lancelet/wgpu-hs | Texture.hs | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE RecordWildCards #
{-# LANGUAGE TypeSynonymInstances #-}
# OPTIONS_GHC -Wno - missing - fields #
-- |
-- Module : WGPU.Internal.Texture
-- Description : Textures and texture views.
module WGPU.Internal.Texture
( -- * Types
TextureView (..),
TextureFormat (..)... | null | https://raw.githubusercontent.com/lancelet/wgpu-hs/8e002bd2d9210688ccf63eef613889f6c62b05aa/wgpu-hs/src-internal/WGPU/Internal/Texture.hs | haskell | # LANGUAGE TypeSynonymInstances #
|
Module : WGPU.Internal.Texture
Description : Textures and texture views.
* Types
* Functions
-----------------------------------------------------------------------------
| Handle to a texture view.
rendering pipeline or bind group.
--------------------------------------... | # LANGUAGE MultiParamTypeClasses #
# LANGUAGE RecordWildCards #
# OPTIONS_GHC -Wno - missing - fields #
module WGPU.Internal.Texture
TextureView (..),
TextureFormat (..),
TextureUsage (..),
TextureViewDimension (..),
TextureDimension (..),
TextureDescriptor (..),
TextureViewDescriptor (..),... |
190bf47869048531e0616cf000c2e075037a22d8edc09867e7886f5846323409 | andrewmcveigh/cljs-time | extend_test.cljs | (ns cljs-time.extend-test
(:require-macros
[cljs.test :refer [deftest is]])
(:require
[cljs-time.core :as time]
[cljs-time.extend :as extend])
(:import
[goog.date Date DateTime UtcDateTime]))
(deftest equals-test
(is (= (UtcDateTime.fromIsoString "2016-03-06T15:01:22.182-00:00")
... | null | https://raw.githubusercontent.com/andrewmcveigh/cljs-time/7f86226ef2bc5e1c8e00ab9c36096e76f84a73e1/test/cljs_time/extend_test.cljs | clojure | (ns cljs-time.extend-test
(:require-macros
[cljs.test :refer [deftest is]])
(:require
[cljs-time.core :as time]
[cljs-time.extend :as extend])
(:import
[goog.date Date DateTime UtcDateTime]))
(deftest equals-test
(is (= (UtcDateTime.fromIsoString "2016-03-06T15:01:22.182-00:00")
... | |
3f9405f055e388d47b04019f1313f9e962123318d7fbb30072b94ce62dbcde1a | ml4tp/tcoq | topconstr.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/interp/topconstr.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i
********************************... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2017
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Pp
open CErrors
open Uti... |
de55e07f105dcfc021dfc77489d033e801ca5d73d9dbbdd925e3209e85730310 | facebook/infer | Gradle.mli |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/facebook/infer/9d9a3a42b75697db86bc0da3092137f175782773/infer/src/integration/Gradle.mli | ocaml | * parse a single gradle output line and extract files and javac opts
* do a gradle capture with the given prog (i.e. gradle) and args |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... |
213155573d3a1e55d46a2e34b4adcf0fedcb18164d7eb4c4cbfb70c62b58d9fc | ThoughtWorksInc/stonecutter | user_list.cljs | (ns stonecutter.js.controller.user-list
(:require [ajax.core :refer [POST]]
[dommy.core :as d])
(:require-macros [dommy.core :as dm]))
( defn handler [ response ]
; (.log js/console (str "successful response: " status " " status-text)))
(defn error-handler [{:keys [status status-text]}]
(.log js/co... | null | https://raw.githubusercontent.com/ThoughtWorksInc/stonecutter/37ed22dd276ac652176c4d880e0f1b0c1e27abfe/src-cljs/stonecutter/js/controller/user_list.cljs | clojure | (.log js/console (str "successful response: " status " " status-text)))
:handler handler
| (ns stonecutter.js.controller.user-list
(:require [ajax.core :refer [POST]]
[dommy.core :as d])
(:require-macros [dommy.core :as dm]))
( defn handler [ response ]
(defn error-handler [{:keys [status status-text]}]
(.log js/console (str "something bad happened: " status " " status-text)))
(defn anti... |
2de34e98523d65f2243a6775cd11a61aabadd21cab0b3fb4fc9d80e13ce69338 | erlcloud/erlcloud | erlcloud_http.erl | -module(erlcloud_http).
-export([make_query_string/1, make_query_string/2, value_to_string/1, url_encode/1, url_encode_loose/1]).
encode_query_term(Key, [], no_assignment) ->
[Key];
encode_query_term(Key, [], empty_assignment) ->
[Key, "="];
encode_query_term(Key, Value, _) ->
[Key, "=", url_encode(value_to_stri... | null | https://raw.githubusercontent.com/erlcloud/erlcloud/d1d60130929436b5524a0e70ae17f6da6a2a14b9/src/erlcloud_http.erl | erlang | encode an empty value query string differently based on the
sign url differently, S3 requires that empty arguments have no
default behaviour is adding '='
| Accum]).
]. | -module(erlcloud_http).
-export([make_query_string/1, make_query_string/2, value_to_string/1, url_encode/1, url_encode_loose/1]).
encode_query_term(Key, [], no_assignment) ->
[Key];
encode_query_term(Key, [], empty_assignment) ->
[Key, "="];
encode_query_term(Key, Value, _) ->
[Key, "=", url_encode(value_to_stri... |
d2e443d9589d8abb3fd8d2885545e42ffd390b3b2647a97f1fb48c75309d8192 | Decentralized-Pictures/T4L3NT | test_scenario.ml | open Mockup_simulator
let bootstrap1 = Signature.Public_key.hash bootstrap1
let bootstrap2 = Signature.Public_key.hash bootstrap2
let bootstrap3 = Signature.Public_key.hash bootstrap3
let bootstrap4 = Signature.Public_key.hash bootstrap4
let bootstrap5 = Signature.Public_key.hash bootstrap5
let some_seed s = Some... | null | https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_delegate/test/test_scenario.ml | ocaml | Stop the node as soon as we receive a proposal with a level
higher than [level_to_reach].
Here we use custom hooks to make each node/baker behave according to
its role in the scenario.
If any of the checks fails the whole scenario will fail.
Node A stops immediately.
Stop as soon as B has pro... | open Mockup_simulator
let bootstrap1 = Signature.Public_key.hash bootstrap1
let bootstrap2 = Signature.Public_key.hash bootstrap2
let bootstrap3 = Signature.Public_key.hash bootstrap3
let bootstrap4 = Signature.Public_key.hash bootstrap4
let bootstrap5 = Signature.Public_key.hash bootstrap5
let some_seed s = Some... |
19fe1de58a0bcbb07142179558cc13245212d5f022c8718ef312b4c1a6c08a7d | erlcloud/erlcloud | erlcloud_mes.erl | @author < >
%% @doc
An Erlang interface to Marketplace Entitlement Service .
%%
%% TODO: Verify URLs
%% []
%%
%% []
%%
Method names match Marketplace Entitlement Service operations converted to
%% lower_case_with_underscores.
%%
%% Required parameters are passed as function arguments. In addition
all method... | null | https://raw.githubusercontent.com/erlcloud/erlcloud/d1d60130929436b5524a0e70ae17f6da6a2a14b9/src/erlcloud_mes.erl | erlang | @doc
TODO: Verify URLs
[]
[]
lower_case_with_underscores.
Required parameters are passed as function arguments. In addition
pass optional parameters.
Output is in the form of `{ok, Value}' or `{error, Reason}'.
As to the error retries, we use `erlcloud_retry:default_retry/1'
as the default retry strateg... | @author < >
An Erlang interface to Marketplace Entitlement Service .
Method names match Marketplace Entitlement Service operations converted to
all methods take an options proplist argument which can be used to
-module(erlcloud_mes).
-author('').
-include("erlcloud.hrl").
-include("erlcloud_aws.hrl").
... |
a86356148caa502b7109bf15fab6db955aec66ea4f18f355be313cd904766e83 | jamii/erl-telehash | th_event.erl | % a global gen_event which publishes incoming/outgoing telexes
-module(th_event).
-include("conf.hrl").
-include("types.hrl").
-include("log.hrl").
-export([start_link/0, listen/0, deafen/0, notify/1]).
-define(EVENT, th_event).
-define(HANDLER, th_event_handler).
% --- api ---
-spec start_link() -> {ok, pid()}.
... | null | https://raw.githubusercontent.com/jamii/erl-telehash/2c0218bbf7a543e318ed50a1d48fb481963f151e/src/th_event.erl | erlang | a global gen_event which publishes incoming/outgoing telexes
--- api ---
--- end --- |
-module(th_event).
-include("conf.hrl").
-include("types.hrl").
-include("log.hrl").
-export([start_link/0, listen/0, deafen/0, notify/1]).
-define(EVENT, th_event).
-define(HANDLER, th_event_handler).
-spec start_link() -> {ok, pid()}.
start_link() ->
{ok, _Pid} = gen_event:start_link({local, ?EVENT}).
-spe... |
c4424cf20a65decdb58ac201fbfa86ea824b426582048c72d05b97708c67016e | reagent-project/reagent-template | server.clj | (ns {{project-ns}}.server
(:require
[{{project-ns}}.handler :refer [app]]
[config.core :refer [env]]
[ring.adapter.jetty :refer [run-jetty]])
(:gen-class))
(defn -main [& args]
(let [port (or (env :port) 3000)]
(run-jetty #'app {:port port :join? false})))
| null | https://raw.githubusercontent.com/reagent-project/reagent-template/c769c6806540a9faafec36c27b07a1c86ae5eff7/resources/leiningen/new/reagent/src/clj/reagent/server.clj | clojure | (ns {{project-ns}}.server
(:require
[{{project-ns}}.handler :refer [app]]
[config.core :refer [env]]
[ring.adapter.jetty :refer [run-jetty]])
(:gen-class))
(defn -main [& args]
(let [port (or (env :port) 3000)]
(run-jetty #'app {:port port :join? false})))
| |
b60a93d4e28272de128bd9a054c7a8353f3f6eccebc52c8fdf9df496db1d5efc | Tritlo/spectacular | Enumeration.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
module Data.ECTA.Internal.ECTA.Enumeration (
TermFragment(..)
, termFragToTruncatedTerm
, SuspendedConstraint(..)
, scGetPathTrie
, scGetUVar
, descendScs
, UVarValue(..)
, EnumerationState(..)
, uvarCounter
, uvarRepresentative... | null | https://raw.githubusercontent.com/Tritlo/spectacular/00621f4f0f03e5d0afea3c730434a8842e473546/src/Data/ECTA/Internal/ECTA/Enumeration.hs | haskell | # LANGUAGE OverloadedStrings #
-----------------------------------------------------------------------------
-------------------------------------------------------------------------
----------------------------- Term fragments ----------------------------
---------------------------------------------------------------... | # LANGUAGE TemplateHaskell #
module Data.ECTA.Internal.ECTA.Enumeration (
TermFragment(..)
, termFragToTruncatedTerm
, SuspendedConstraint(..)
, scGetPathTrie
, scGetUVar
, descendScs
, UVarValue(..)
, EnumerationState(..)
, uvarCounter
, uvarRepresentative
, uvarValues
, pruneDeps
, i... |
6dad44a132dcdd902d02203da45ab25836da4cb318b3bd510d1386bbc45c73df | weavejester/lein-ring | uberjar.clj | (ns leiningen.ring.uberjar
(:use [leiningen.ring.util :only [ensure-handler-set! merge-profiles
unmerge-profiles]]
[leiningen.ring.server :only (add-server-dep)])
(:require [leiningen.ring.jar :as jar]
[leiningen.clean :as clean]
leiningen.uberjar)... | null | https://raw.githubusercontent.com/weavejester/lein-ring/12ec5d880e066b4a6333b61aa5c11b0f1955e523/src/leiningen/ring/uberjar.clj | clojure | (ns leiningen.ring.uberjar
(:use [leiningen.ring.util :only [ensure-handler-set! merge-profiles
unmerge-profiles]]
[leiningen.ring.server :only (add-server-dep)])
(:require [leiningen.ring.jar :as jar]
[leiningen.clean :as clean]
leiningen.uberjar)... | |
c55536cb9dbc20d6abc9757845f2f6e5f85c59b5f6e93f159c1ccc15cd7a56a1 | andreaslyn/mini-yu | Main.hs | module Main (main, plus) where
data Nat = Zero | Succ Nat
one :: Nat
one = Succ Zero
two :: Nat
two = Succ one
three :: Nat
three = Succ two
four :: Nat
four = Succ three
five :: Nat
five = Succ four
six :: Nat
six = Succ five
seven :: Nat
seven = Succ six
eight :: Nat
eight = Succ seven
nine :: Nat
nine = Su... | null | https://raw.githubusercontent.com/andreaslyn/mini-yu/c29563815b3c090c6b7c4fa0096d1549b440632c/test/code-gen/HsNatTest/Main.hs | haskell | module Main (main, plus) where
data Nat = Zero | Succ Nat
one :: Nat
one = Succ Zero
two :: Nat
two = Succ one
three :: Nat
three = Succ two
four :: Nat
four = Succ three
five :: Nat
five = Succ four
six :: Nat
six = Succ five
seven :: Nat
seven = Succ six
eight :: Nat
eight = Succ seven
nine :: Nat
nine = Su... | |
0eaa7a746a6681571dcfe63e7207d592a609c69028c39866be4af3fc0f50cfa3 | SimulaVR/godot-haskell | InputEventMouse.hs | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.InputEventMouse
(Godot.Core.InputEventMouse.get_butt... | null | https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/InputEventMouse.hs | haskell | # LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving ,
TypeFamilies , TypeOperators , FlexibleContexts , DataKinds ,
MultiParamTypeClasses #
TypeFamilies, TypeOperators, FlexibleContexts, DataKinds,
MultiParamTypeClasses #-}
module Godot.Core.InputEventMouse
(Godot.Core.InputEventMouse.get_butt... | |
3fee0f19f85b8fdd6a56e33fd8711a66630b8667b0eb889820b29edd7a5d262c | purescript/spago | UnitSpec.hs | -- Unit tests
module UnitSpec where
import Data.List.Extra (nubOrd)
import qualified Data.Map as Map
import Data.Text (Text)
import qualified Data.Text as Text
import Prelude
import Test.Hspec (Spec, describe, it, shouldBe)
import ... | null | https://raw.githubusercontent.com/purescript/spago/8e466899c322d1c561788e5fac1148570bff71d5/test/UnitSpec.hs | haskell | Unit tests
A value of this type represents a failure of a function to be injective,
specifically, that all of the distinct values in the `inputs` list each
mapped to the same output.
| Given a generator some type, return a new generator which returns a list
of that type, with the given length, where all elements ... | module UnitSpec where
import Data.List.Extra (nubOrd)
import qualified Data.Map as Map
import Data.Text (Text)
import qualified Data.Text as Text
import Prelude
import Test.Hspec (Spec, describe, it, shouldBe)
import Test.QuickChe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.