_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
a5ae4e9894e5019cb5221f5cecfe06bb97ccfb81c20e0769e184f84e0d627c61
irr/erl-tutorials
cdrv_sup.erl
-module(cdrv_sup). -vsn(1.0). -author(''). -behaviour(supervisor). -export([start_link/0, init/1, child_spec/1, child_spec/3, start_child/1, stop_child/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, [cdrv]). init([Id]) when is_atom(Id) -> RestartStrategy = one_for_one, MaxRestarts...
null
https://raw.githubusercontent.com/irr/erl-tutorials/da68b1c08baf6bdf46e7e8d3381d796e93c0357c/cdrv/src/cdrv_sup.erl
erlang
-module(cdrv_sup). -vsn(1.0). -author(''). -behaviour(supervisor). -export([start_link/0, init/1, child_spec/1, child_spec/3, start_child/1, stop_child/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, [cdrv]). init([Id]) when is_atom(Id) -> RestartStrategy = one_for_one, MaxRestarts...
2605a6c2383fdc4ca175d43f659370d7a0742ff448d51b4186fa03f39a3ee611
minoki/unboxing-vector
Poly.hs
{-# LANGUAGE BangPatterns #-} module Poly where import Prelude hiding (gcd, div, mod, divMod, const) import Control.Monad import qualified Data.Vector.Generic as G import qualified Data.Vector.Generic.Mutable as GM for writing SPECIALIZE instance pragma for writing SPECIALIZE instance pragma infixl 7 `div`, `mod` ...
null
https://raw.githubusercontent.com/minoki/unboxing-vector/ca13ee80eb92e2a9a650eddbb75e8c5ebb03dfc1/benchmark/Poly.hs
haskell
# LANGUAGE BangPatterns # univariate polynomial, coefficients in ascending order multiplication: naive method # INLINE (+) # # INLINE (-) # # INLINE (*) # invariant: f == q * g + scale b p # INLINABLE powMod #
module Poly where import Prelude hiding (gcd, div, mod, divMod, const) import Control.Monad import qualified Data.Vector.Generic as G import qualified Data.Vector.Generic.Mutable as GM for writing SPECIALIZE instance pragma for writing SPECIALIZE instance pragma infixl 7 `div`, `mod` newtype Poly vect a = Poly (v...
5f86152079ed91afc779d78046564a552a0608e28bca73a97d0fd7ac2782335f
webyrd/miniKanren-hangout-summaries
trans.scm
Chez Scheme Version 9.4.1 Copyright 1984-2016 Cisco Systems, Inc. > rember Exception: variable rember is not bound Type (debug) to enter the debugger. > Exception: variable z is not bound Type (debug) to enter the debugger. > (define rember (lambda (x ls) (cond [(null? ls) '()] [(eqv? (car ls) x) (...
null
https://raw.githubusercontent.com/webyrd/miniKanren-hangout-summaries/06b33ba37e298c14babb7c6c0f63fe01bc65d547/code/intro-hangouts/intro-hangout-9/trans.scm
scheme
Chez Scheme Version 9.4.1 Copyright 1984-2016 Cisco Systems, Inc. > rember Exception: variable rember is not bound Type (debug) to enter the debugger. > Exception: variable z is not bound Type (debug) to enter the debugger. > (define rember (lambda (x ls) (cond [(null? ls) '()] [(eqv? (car ls) x) (...
d006da4989e85eb95dee96d8ad57f08ecefe9bf8ec3b948510d1176c5d1f84a6
pveber/biotk
sam.mli
* SAM files . Documentation here assumes familiarity with the { { : -specs/SAMv1.pdf } SAM specification } . Note : this module is adapted from biocaml 0.8 released under LGPL -specs/SAMv1.pdf } SAM specification}. Note: this module is adapted from biocaml 0.8 released under LGPL *) op...
null
https://raw.githubusercontent.com/pveber/biotk/422640d9303c90c43ecb4b679a8bf5867998119c/lib/sam.mli
ocaml
* {2 Types} * Header item tags define the different types of header lines. The term "tag" in this context should not be confused with its use in "tag-value" pairs, which comprise the content of header items. * A tag-value pair comprising the content of header items. Tag-value pairs occur in other places t...
* SAM files . Documentation here assumes familiarity with the { { : -specs/SAMv1.pdf } SAM specification } . Note : this module is adapted from biocaml 0.8 released under LGPL -specs/SAMv1.pdf } SAM specification}. Note: this module is adapted from biocaml 0.8 released under LGPL *) op...
ea8449a0129ea350c2d4d3f05ba30d8a470d5256bdd8e7a0448ced15c0c3fab8
tommaisey/aeon
lf-par.help.scm
;; See lf-cub.
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/oscillators/lf-par.help.scm
scheme
See lf-cub.
bfdb5c027da30d3028950849b0540cb7d5142d5fde0cb915d76c2074da8734b1
sneeuwballen/zipperposition
util_zf.mli
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Utils for ZF } open Logtk type parse_cache (** Cache that remembers the set of files that have been parsed so far *) val create_parse_cache : unit -> parse_cache type parser_res = (UntypedAST.statement Iter.t, st...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/7f1455fbe2e7509907f927649c288141b1a3a247/src/parsers/util_zf.mli
ocaml
* Cache that remembers the set of files that have been parsed so far * parse lexbuf. @param recursive if true, parse includes too, relative to current dir. Default true. @param cache parse cache to use if [recursive = true] * [parse_file ~recursive file] parses [file] @param recursive if true, recursively...
This file is free software , part of Zipperposition . See file " license " for more details . * { 1 Utils for ZF } open Logtk type parse_cache val create_parse_cache : unit -> parse_cache type parser_res = (UntypedAST.statement Iter.t, string) CCResult.t type 'a parser_ = 'a -> parser_res val parse_lexbuf : ?c...
a4e069236d39593d1c9b345fb09e8acc6c2385460e125ceae56296fc8d0f0f35
noinia/hgeometry
Lee.hs
# LANGUAGE TemplateHaskell # -------------------------------------------------------------------------------- -- | Module : Algorithms . Geometry . VisibilityPolygon . Copyright : ( C ) -- License : see the LICENSE file Maintainer : -- -- \(O(n\log n)\) time algorithm to compute the vis...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry/src/Algorithms/Geometry/VisibilityPolygon/Lee.hs
haskell
------------------------------------------------------------------------------ | License : see the LICENSE file \(O(n\log n)\) time algorithm to compute the visibility polygon of a point inside a polygon (possibly containing holes) with \(n\) in: ------------------------------------------------------------...
# LANGUAGE TemplateHaskell # Module : Algorithms . Geometry . VisibilityPolygon . Copyright : ( C ) Maintainer : vertices , or among a set of \(n\ ) disjoint segments . The alogirhtm used is the the rotational sweepline algorithm by , described . Proximity and reachability in the p...
a7ea20db8a1c3afaf7083c4250b688b89cfce101a1cf36a230400a8cfe09d58f
dradtke/Lisp-Text-Editor
enc-unicode.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; enc-unicode.lisp --- Unicode encodings. ;;; Copyright ( C ) 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software ...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/babel-20120208-git/src/enc-unicode.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- enc-unicode.lisp --- Unicode encodings. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub...
Copyright ( C ) 2007 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , Copyright ( C ) 20...
2a6dfb1739f04cff4736aa047b2383d3e43a16d1de3ecddcb4c7b30d489cf860
facebook/duckling
Corpus.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Time.ZH.Corpus ( corpus , defaultCorpus ) where i...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Time/ZH/Corpus.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.Time.ZH.Corpus ( corpus , defaultCorpus ) where import Data.String import Prelude import Duckling.Locale import Duckling.Resolve import Duckling.Time.Corpus import Duckling.TimeGrain.Types hiding (add) import Duckling.Testing.Types hiding (ex...
7878d15124cdf7838e845093043ec17ffe4ee953d7c6d05d55bb510da5d0cf1a
nammayatri/beckn-gateway
Domain.hs
Copyright 2022 - 23 , Juspay India Pvt Ltd This program 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 option ) any later version . This program ...
null
https://raw.githubusercontent.com/nammayatri/beckn-gateway/dcdadbb647a3049d62df283d35ae61eb5420d50e/app/gateway/src/Types/Beckn/Domain.hs
haskell
Copyright 2022 - 23 , Juspay India Pvt Ltd This program 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 option ) any later version . This program ...
6dd01a3b2f43c16318985dbb050315c229fec0575a1fa2f9f406cbdfd083a7b5
karamellpelle/grid
Screen.hs
grid is a game written in Haskell Copyright ( C ) 2018 -- -- This file is part of grid. -- -- grid is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or -- (at your optio...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/source/MEnv/Screen.hs
haskell
This file is part of grid. grid is free software: you can redistribute it and/or modify (at your option) any later version. grid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GN...
grid is a game written in Haskell Copyright ( C ) 2018 it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License module MEnv.Screen ( #ifdef GRID_PLATFORM_IOS ...
3ecfab0ad409706c3d16915103bf8434e5c4aaf085964ce7f8eabc21180942fb
Andromedans/andromeda
path.ml
type index = Index of Name.t * int type level = Level of Name.t * int type t = | Direct of level | Module of t * level type ml_constructor = t * level module PathSet = Set.Make( struct type nonrec t = t let rec compare x y = ...
null
https://raw.githubusercontent.com/Andromedans/andromeda/a5c678450e6c6d4a7cd5eee1196bde558541b994/src/utils/path.ml
ocaml
type index = Index of Name.t * int type level = Level of Name.t * int type t = | Direct of level | Module of t * level type ml_constructor = t * level module PathSet = Set.Make( struct type nonrec t = t let rec compare x y = ...
10e16ec1442a5c309a8b6a2891e4c2fee7aa476d4d8d8072d1711c37ded284be
dxtr/clsql
benchmarks.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: benchmarks.lisp Purpose : Time performance tests for CLSQL Authors : Created : March 5 , 2004 ;;;; This file is p...
null
https://raw.githubusercontent.com/dxtr/clsql/8061aae1ecb878954115c7aacd90685a65bf4107/tests/benchmarks.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: benchmarks.lisp (), also known as the LLGPL. *************************************************************************
Purpose : Time performance tests for CLSQL Authors : Created : March 5 , 2004 This file is part of CLSQL . CLSQL users are granted the rights to distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License (in-package #:clsql-tests) (defun run-benchmarks-append...
8271f4e72ac5f4c4d9e8002f4a6a2cab27a77a2c765c18c3399509b900ca6a83
dym/movitz
arithmetic-macros.lisp
;;;;------------------------------------------------------------------ ;;;; Copyright ( C ) 2003 - 2005 , Department of Computer Science , University of Tromso , Norway . ;;;; ;;;; For distribution policy, see the accompanying file COPYING. ;;;; ;;;; Filename: arithmetic-macros.lisp ;;;; Descriptio...
null
https://raw.githubusercontent.com/dym/movitz/56176e1ebe3eabc15c768df92eca7df3c197cb3d/losp/muerte/arithmetic-macros.lisp
lisp
------------------------------------------------------------------ For distribution policy, see the accompanying file COPYING. Filename: arithmetic-macros.lisp Description: Transformation of arithmethic operators. -----------------------------------------------------...
Copyright ( C ) 2003 - 2005 , Department of Computer Science , University of Tromso , Norway . Author : < > Created at : Sat Jul 17 13:42:46 2004 $ I d : arithmetic - macros.lisp , v 1.23 2008 - 04 - 27 19:26:14 ffjeld Exp $ (require :muerte/basic-macros) (require :muerte/typep) (provid...
c37a1d2bdb3f7855c4397825ac5ec64d98e7f5824a34df4c2cc62b84b35b4453
tmattio/js-bindings
vscode_languageserver_protocol_protocol_folding_range.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 open Vscode_jsonrpc open Vscode_languageserver_types open Vscode_languageserver_protocol_messages open Vscode_languageserver_protocol_protocol module FoldingRangeClientCapabilities : sig type t val t_to_js : t -> Ojs...
null
https://raw.githubusercontent.com/tmattio/js-bindings/ca3bd6a12db519c8de7f41b303f14cf70cfd4c5f/lib/vscode-languageserver-protocol/vscode_languageserver_protocol_protocol_folding_range.mli
ocaml
TODO: Move me TODO: Move me TODO: Move me
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 open Vscode_jsonrpc open Vscode_languageserver_types open Vscode_languageserver_protocol_messages open Vscode_languageserver_protocol_protocol module FoldingRangeClientCapabilities : sig type t val t_to_js : t -> Ojs...
9610501d5a6217972a7d99394760d5bd8783d992f1a1ba9e54f1593b3d890a1b
blindglobe/clocc
event-parse.lisp
-*- Mode : Lisp ; Package : CLUEI ; Syntax : COMMON - LISP ; ; Lowercase : T -*- ;;; TEXAS INSTRUMENTS INCORPORATED P.O. BOX 149149 AUSTIN , TEXAS 78714 - 9149 ;;; Copyright ( C)1987,1988,1989,1990 Texas Instruments Incorporated . ;;; ;;; Permission is granted to any individual or instituti...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/gui/clue/clue/event-parse.lisp
lisp
Package : CLUEI ; Syntax : COMMON - LISP ; ; Lowercase : T -*- Permission is granted to any individual or institution to use, copy, modify, and distribute this software, provided that this complete copyright and permission notice is maintained, intact, in all copies and supporting documentation. express or i...
TEXAS INSTRUMENTS INCORPORATED P.O. BOX 149149 AUSTIN , TEXAS 78714 - 9149 Copyright ( C)1987,1988,1989,1990 Texas Instruments Incorporated . Texas Instruments Incorporated provides this software " as is " without (in-package "CLUEI") (export '( check-function ) "CLUEI") and ev...
4eae791ef8b78fd4ad0e10fe8a6a88d1d1358af246cf5036bd1ca79e8edd33a5
haskell-opengl/OpenGLRaw
Sync.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.Sync Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ---------------------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/Sync.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.ARB.Sync License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums * Functions
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.Sync ( glGetARBSync, gl_ARB_sync, pattern GL_ALREADY_SIGNALED, pattern GL_CONDITION_SATISFIED, pattern GL_MAX_SERVER_WAIT_TIMEOUT, pattern GL_OBJECT_TYPE, pattern GL_SIGNALED, pattern GL_SYNC_C...
6a47b4b2e1f5d28cd811b7f84d8614155190bb96661f49a3cabbbbbad210471e
returntocorp/semgrep
Find_files.mli
(** Iterate over a file tree. *) val fold : ?excluded_paths:string list -> ?accept_file_name:(string -> bool) -> ?accept_dir_name:(string -> bool) -> ('acc -> string -> 'acc) -> 'acc -> string list -> 'acc * [ fold f acc roots ] scans the files or directories [ roots ] and their children , a...
null
https://raw.githubusercontent.com/returntocorp/semgrep/6e182e59a3d7cb8d3c837032dd2fc51091098c10/libs/spacegrep/src/lib/Find_files.mli
ocaml
* Iterate over a file tree. * Simplified interface to [fold], operating by side effects. * Simplified interface to [fold], which lists all the matching paths.
val fold : ?excluded_paths:string list -> ?accept_file_name:(string -> bool) -> ?accept_dir_name:(string -> bool) -> ('acc -> string -> 'acc) -> 'acc -> string list -> 'acc * [ fold f acc roots ] scans the files or directories [ roots ] and their children , applying [ f ] on each path correspon...
922934e4cb43f4aa5d89b25835aaef1e4a4d5b5dde8096e5ee75429762f1ac73
dgtized/shimmers
ellipse.cljc
(ns shimmers.math.geometry.ellipse (:require [thi.ng.geom.core :as g :refer [*resolution*]] [thi.ng.geom.vector :as v :refer [vec2]] #?(:clj [thi.ng.geom.types] :cljs [thi.ng.geom.types :refer [Circle2 Ellipse2 Rect2]]) [thi.ng.math.core :as m :refer [PI TWO_PI]]) #?(:clj (:import [thi.ng.geo...
null
https://raw.githubusercontent.com/dgtized/shimmers/f096c20d7ebcb9796c7830efcd7e3f24767a46db/src/shimmers/math/geometry/ellipse.cljc
clojure
g/ICircumference (circumfrence []) Exact requires infinite series / calculus? This is not a uniform distribution of points on the circumfrence. From it sounds like calculating the circumfrence or total arc length, and finding a random point on that and then backtracking to find it's theta and project it back m...
(ns shimmers.math.geometry.ellipse (:require [thi.ng.geom.core :as g :refer [*resolution*]] [thi.ng.geom.vector :as v :refer [vec2]] #?(:clj [thi.ng.geom.types] :cljs [thi.ng.geom.types :refer [Circle2 Ellipse2 Rect2]]) [thi.ng.math.core :as m :refer [PI TWO_PI]]) #?(:clj (:import [thi.ng.geo...
70c863db04f3539a3879de585d1617965237ebf73c736bf5aa73e86ff300f2af
futurice/haskell-mega-repo
Main.hs
module Main (main) where import Futurice.App.Library (defaultMain) main :: IO () main = defaultMain
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/library-app/srv/Main.hs
haskell
module Main (main) where import Futurice.App.Library (defaultMain) main :: IO () main = defaultMain
ce91bbd271307a3e7f94f65d1b9359edb7980d6afb744f0aeecde15e09e86578
PearsonEducation/subpub
pe_realm.erl
SubPub - Copyright ( c ) 2013 Pearson . All rights reserved . % Licensed under the Apache License , Version 2.0 ( the " License " ) ; % % you may not use this file except in compliance with the License. -module(pe_realm). -export([validate_realm_string/1, is_within_realm/2]). validate_realm_string(unde...
null
https://raw.githubusercontent.com/PearsonEducation/subpub/f2275c5da24d8860d206cff81d1ce87ecd956c72/src/pe_realm.erl
erlang
you may not use this file except in compliance with the License.
SubPub - Copyright ( c ) 2013 Pearson . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; -module(pe_realm). -export([validate_realm_string/1, is_within_realm/2]). validate_realm_string(undefined) -> {invalid, undefined}; validate_realm_string("") -> {invalid...
e68720451fd6bfb44d8a23dda47e1ca7d14fc047806dc9d7866f6920a456de7b
rcampbell/blocker
core.clj
(ns blocker.test.core (:use [blocker.core] :reload) (:use [clojure.test])) (deftest replace-me ;; FIXME: write (is false "No tests have been written."))
null
https://raw.githubusercontent.com/rcampbell/blocker/34633478e856ccff94ed583c91a3e5d47b31baa0/test/blocker/test/core.clj
clojure
FIXME: write
(ns blocker.test.core (:use [blocker.core] :reload) (:use [clojure.test])) (is false "No tests have been written."))
5d9deeed26b1d9c8497b8fc145920b2220e0413defdea1793146505846c03f54
gregtatcam/imaplet-lwt
mailbox_storage.ml
* Copyright ( c ) 2013 - 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/gregtatcam/imaplet-lwt/d7b51253e79cffa97e98ab899ed833cd7cb44bb6/lib/commands/mailbox_storage.ml
ocaml
user status select mailbox examine mailbox create mailbox delete mailbox subscribe mailbox unsubscribe mailbox list * returns list of files/folders with list of flags append message(s) to selected mailbox delete a message search selected mailbox fetch messages from selected mailbox fe...
* Copyright ( c ) 2013 - 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
6222fdab79c8d1cc809d428c8516bf33587beb47d8e534d60525eefa68225bd2
master/ejabberd
ejabberd_auth.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd_auth.erl Author : < > %%% Purpose : Authentification Created : 23 Nov 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne %%% %%% This program is free software; you can redistribute it and...
null
https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/ejabberd_auth.erl
erlang
---------------------------------------------------------------------- File : ejabberd_auth.erl Purpose : Authentification This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOU...
Author : < > Created : 23 Nov 2002 by < > ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
19ebb07e167c32562ef94bfb1e515b53fba35c54542e31cefbe5fa4adcec31fc
stamourv/racket-benchmark
results.rkt
#lang racket (require racket/date racket/serialize "types.rkt") (provide get-past-results record-results make-fresh-file-name) ; for incremental result recording ;; path? exact-integer? -> bench-results? (define (get-past-results file [version #f]) (map deserialize (file->list (get-file file vers...
null
https://raw.githubusercontent.com/stamourv/racket-benchmark/de7e84539de23834508dba42e07859cf13bde20c/benchmark/results.rkt
racket
for incremental result recording path? exact-integer? -> bench-results? bench-results? path? -> void? serialization is used as otherwise read (write date) /= date in the equal? sense write each result separately, as opposed to a single big list, to allow incremental recording get latest version of file-base if ...
#lang racket (require racket/date racket/serialize "types.rkt") (provide get-past-results record-results (define (get-past-results file [version #f]) (map deserialize (file->list (get-file file version) #:mode 'text))) (define (record-results results file) (let ([fresh-name (make-fresh-file-name file)]...
77955142d6cdce0354b1a06017c23df88064a7fb7167f9ba3475691c20bb1ce6
racket/rhombus-prototype
char.rkt
#lang racket/base (require (for-syntax racket/base) "provide.rkt" "name-root.rkt" "define-arity.rkt" (submod "annotation.rkt" for-class)) (provide (for-spaces (rhombus/annot rhombus/namespace) Char)) (define-annotation-syntax Char (identif...
null
https://raw.githubusercontent.com/racket/rhombus-prototype/60070a3edd2b850bf429298b84b66eee3ea79194/rhombus/private/char.rkt
racket
#lang racket/base (require (for-syntax racket/base) "provide.rkt" "name-root.rkt" "define-arity.rkt" (submod "annotation.rkt" for-class)) (provide (for-spaces (rhombus/annot rhombus/namespace) Char)) (define-annotation-syntax Char (identif...
9234286fccd8c47d97ae9755de44ed1050e3edb73f4848de5a69c54719529890
dyoo/whalesong
image-equality.rkt
#lang s-exp "../../lang/wescheme.rkt" (require "../../image/image.rkt") ;; Tests on images. ;; ;; An image can be a circle, star, ns:rectangle, rectangle, triangle, ellipse, line, text, place-image, overlay, underlay (define a-circle (circle 20 'solid 'green)) (define a-star (star 5 20 30 'solid 'blue)) (define a-nw-...
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/tests/older-tests/moby-programs/image-equality.rkt
racket
Tests on images. An image can be a circle, star, ns:rectangle, rectangle, triangle, ellipse, line, text, place-image, overlay, underlay Let's show these at the toplevel to make sure the drawing is working ok check-fail-contract: (-> void) -> void Make sure we fail with a contract error. Now do image comparisons...
#lang s-exp "../../lang/wescheme.rkt" (require "../../image/image.rkt") (define a-circle (circle 20 'solid 'green)) (define a-star (star 5 20 30 'solid 'blue)) (define a-nw-rect (nw:rectangle 20 30 'solid 'turquoise)) (define a-rect (rectangle 50 60 'outline 'black)) (define a-triangle (triangle 50 'solid 'magenta)) ...
51be1ec89bf91058f231418646344c8961bb6db9eda562dafb0244278d758b0e
ekmett/linear-accelerate
Warning.hs
module Warning {-# WARNING ["You are configuring this package without cabal-doctest installed.", "The doctests test-suite will not work as a result.", "To fix this, install cabal-doctest before configuring."] #-} () where
null
https://raw.githubusercontent.com/ekmett/linear-accelerate/7b2438c93add45e0ac884b09ff009036d3e540eb/Warning.hs
haskell
# WARNING ["You are configuring this package without cabal-doctest installed.", "The doctests test-suite will not work as a result.", "To fix this, install cabal-doctest before configuring."] #
module Warning () where
2d8d14b7a4c1253056b2b5b1b27992162dfff7b150b62be40a16d7512a641294
clojure/core.typed
method_return_nilables.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/clojure/core.typed/f5b7d00bbb29d09000d7fef7cca5b40416c9fa91/typed/checker.jvm/src/clojure/core/typed/checker/jvm/method_return_nilables.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns clojure.core.typed.checker.jvm.method-return-nilables (:require [clojure.core.typed.env :as env] [clojure.core.typed.current-impl :as impl])) (def add-nonnilable-method-return impl/add-nonnilable-method-return) (defn reset-nonnilable-method-return-env! [...
2587e97f6e5ffaff0071a18d71d1a7c9217126431940d6f2f0cd8d24fa72de43
onedata/op-worker
atm_dataset_value.erl
%%%------------------------------------------------------------------- @author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module implements `atm_data_v...
null
https://raw.githubusercontent.com/onedata/op-worker/71d2ac527f4d20ca40b8f5ae28b8107b68ca90e9/src/modules/automation/data/type/atm_dataset_value.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module implements `atm_data_validator`, `atm_tree_forest_container_iterator` and `atm_data_compressor` functionality for `atm_dataset_type`. @end -----------------...
@author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(atm_dataset_value). -author("Michal Stanisz"). -behaviour(atm_data_validator). -behaviour(atm_data_compressor). -behaviour(atm_tree_forest_store_container_iterator). -include("modules/auto...
0e038e2a4d21f401e6c0a82578e17778e487df392062b767f3982c32b83e9d99
simonmar/par-tutorial
BingTranslate.hs
module BingTranslate ( detectLanguage, getLanguages, translateText ) where import GetURL import Text.XML.Light import Text.Printf import Data.ByteString.UTF8 as UTF8 , please get your own from -us/library/ff512386.aspx myAppId = "3157F269F56493B5581BAA4AE7B99C35052DA38B" -- New v2 API: getlanguag...
null
https://raw.githubusercontent.com/simonmar/par-tutorial/f9061ea177800eb4ed9660bcabc8d8d836e1c73c/code/BingTranslate.hs
haskell
New v2 API: --------------------------------------------------------------------------- Hacky XML decoding This will fail utterly if the input is not in the right form. OLD stuff that we might need later: httpRequestUTF8 url body = do request | Just text <- body = request_hdr `addRequestContent` text ...
module BingTranslate ( detectLanguage, getLanguages, translateText ) where import GetURL import Text.XML.Light import Text.Printf import Data.ByteString.UTF8 as UTF8 , please get your own from -us/library/ff512386.aspx myAppId = "3157F269F56493B5581BAA4AE7B99C35052DA38B" getlanguagesUri = "=" ++ ...
f4402c6014f3c8346314463da38a1e9bef215fcd55c61d2f257781986a145c53
matsen/pplacer
multiprocessing.ml
(* Run embarrassingly parallel computation in multiple processes. This module implements an event loop and some classes that operate on top of the event loop in order to fork, compute things in the new processes, and transfer ocaml values between processes. Basic example classes are provided which implemen...
null
https://raw.githubusercontent.com/matsen/pplacer/f40a363e962cca7131f1f2d372262e0081ff1190/pplacer_src/multiprocessing.ml
ocaml
Run embarrassingly parallel computation in multiple processes. This module implements an event loop and some classes that operate on top of the event loop in order to fork, compute things in the new processes, and transfer ocaml values between processes. Basic example classes are provided which implement ...
external quiet_close: int -> unit = "quiet_close" external fd_of_file_descr: Unix.file_descr -> int = "%identity" module OrderedFileDescr = struct type t = Unix.file_descr let compare a b = compare (fd_of_file_descr a) (fd_of_file_descr b) end module FDM = Map.Make(OrderedFileDescr) type handler = { ch: in_cha...
4b7036f6b187cb7c592fd41b8b654d08f40c90d0ce319c2cd398811056f7d993
kupl/LearnML
patch.ml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff ((e : aexp), (x : string)) : aexp = match e with | Const n -> Const 0 | Var y -> if y = x then Const 1 else Const 0 | Power (x, 0) -> Const 0 | Power (y, n) -> if y = x th...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/diff/sub130/patch.ml
ocaml
type aexp = | Const of int | Var of string | Power of (string * int) | Times of aexp list | Sum of aexp list let rec diff ((e : aexp), (x : string)) : aexp = match e with | Const n -> Const 0 | Var y -> if y = x then Const 1 else Const 0 | Power (x, 0) -> Const 0 | Power (y, n) -> if y = x th...
1b55b6129d12fc85daffd2f1174f7900e9193225d58f481f0b6c542c35c2d385
xh4/web-toolkit
generic.lisp
;;;; -*- mode: lisp; indent-tabs-mode: nil -*- ;;;; generic.lisp -- generic function definitions (in-package :crypto) ;;; Authenticated encryption (defgeneric process-associated-data (mode data &key start end) (:documentation "Update the internal state of MODE with the contents of DATA between START and END so th...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/ironclad-v0.47/src/generic.lisp
lisp
-*- mode: lisp; indent-tabs-mode: nil -*- generic.lisp -- generic function definitions Authenticated encryption Ciphers the remaining parameters Key derivation functions Message authentication codes Padding Pseudo random number generators if it is sequence of bytes, use those bytes if it if it is NIL then t...
(in-package :crypto) (defgeneric process-associated-data (mode data &key start end) (:documentation "Update the internal state of MODE with the contents of DATA between START and END so that they are taken into consideration in the authentication tag.")) (defgeneric produce-tag (mode &key tag tag-start) (:docu...
f22720901ad18ca96f6f09e604cd2c370ef7bba2351272b1299f6373db613cda
resttime/cl-liballegro
fixed-point-math.lisp
(in-package #:cl-liballegro) ;;; Fixed point math (defcfun ("al_itofix" itofix) fixed (x :int)) (defcfun ("al_fixtoi" fixtoi) :int (x fixed)) (defcfun ("al_fixfloor" fixfloor) :int (x fixed)) (defcfun ("al_fixceil" fixceil) :int (x fixed)) (defcfun ("al_ftofix" ftofix) fixed (x c-double)) (defcfun ("al_fixtof" fixtof)...
null
https://raw.githubusercontent.com/resttime/cl-liballegro/0f8a3a77d5c81fe14352d9a799cba20e1a3a90b4/src/ffi-functions/fixed-point-math.lisp
lisp
Fixed point math Fixed point trig
(in-package #:cl-liballegro) (defcfun ("al_itofix" itofix) fixed (x :int)) (defcfun ("al_fixtoi" fixtoi) :int (x fixed)) (defcfun ("al_fixfloor" fixfloor) :int (x fixed)) (defcfun ("al_fixceil" fixceil) :int (x fixed)) (defcfun ("al_ftofix" ftofix) fixed (x c-double)) (defcfun ("al_fixtof" fixtof) c-double (x fixed)) ...
a0d1d8d20a16179c48b75625fb7172bac07a4316a022cf04ff1e97d34f9a02d9
witan-org/witan
polynome.mli
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/theories/LRA/polynome.mli
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
572a2697c4ae962bc9301c264fd5cda3c8fe4c46d1db6a795aa39fff492ba1fe
andreasabel/java-adt
Printer.hs
module Printer where requires GHC > = 7.6 to not be an error import Text.PrettyPrint import Data.Char (toLower) import Syntax import Options type ClassDef = String data Class = Class { classId :: ClassId , classUsesList :: Bool , classDef :: ClassDef } -- | Indentation level ind :: Int ind = ...
null
https://raw.githubusercontent.com/andreasabel/java-adt/db346d3112cc31823bd70957d331b73af806f3eb/src/Printer.hs
haskell
| Indentation level | Java type application @T<A,B>@.
module Printer where requires GHC > = 7.6 to not be an error import Text.PrettyPrint import Data.Char (toLower) import Syntax import Options type ClassDef = String data Class = Class { classId :: ClassId , classUsesList :: Bool , classDef :: ClassDef } ind :: Int ind = 4 | Entry point 1 : ...
687899b955473ee894714fc3aa197a5ec5fcd7e0044e35f96b162a19d689fe97
YoshikuniJujo/test_haskell
TypeLevelProlog.hs
# LANGUAGE TypeApplications # # LANGUAGE MultiParamTypeClasses , AllowAmbiguousTypes # # LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances # # OPTIONS_GHC -Wall -fno - warn - tabs # module TypeLevelProlog where class Likes a b where likes :: () class Female a where female :: () data Taro data Hana...
null
https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/871e64ffcf3e9b8c6eea0604e723dc421179f7fe/tribial/tribial-trials/src/TypeLevelProlog.hs
haskell
# LANGUAGE TypeApplications # # LANGUAGE MultiParamTypeClasses , AllowAmbiguousTypes # # LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances # # OPTIONS_GHC -Wall -fno - warn - tabs # module TypeLevelProlog where class Likes a b where likes :: () class Female a where female :: () data Taro data Hana...
04c6d974093cec124f96c42fbc9370d18bde1c188bec5b8d7febf2d80de94f5e
shonfeder/nomad
new_project.ml
open! Bos type config = { name : string ; kind : Project.Kind.t } (* Create an opam switch *) let run : Common.t -> config -> (unit, string) result = fun { config; _ } { name; kind } -> Result.of_rresult @@ let open Result.Let in let* () = Dune_cmd.init name kind in (* Add config files *) let dir =...
null
https://raw.githubusercontent.com/shonfeder/nomad/aff078bfebdaaa67c0e7f1610491f64bc55b4881/lib/new_project.ml
ocaml
Create an opam switch Add config files Enter project dir and set up
open! Bos type config = { name : string ; kind : Project.Kind.t } let run : Common.t -> config -> (unit, string) result = fun { config; _ } { name; kind } -> Result.of_rresult @@ let open Result.Let in let* () = Dune_cmd.init name kind in let dir = Fpath.v name in let* () = Add.dune_project ~dir ~n...
6b8c49505a8638e36a2d557e796dfa14eaea9433abd046bb0a5d66129c1936ee
ananthakumaran/eopl
letrec_lang.clj
(ns eopl.core.letrec-lang (:use eopl.core.define-datatype) (:use eopl.core.env) (:use eopl.core.letrec-lang-parser) (:use clojure.set) (:use clojure.test)) (defn expval->num [val] (cases expval val (num-val (num) num) (else (throw (Exception. (str "invalid number " val)))))) (defn expval...
null
https://raw.githubusercontent.com/ananthakumaran/eopl/876d6c2e44865e2c89a05a683d99a289c71f1487/src/eopl/core/letrec_lang.clj
clojure
(ns eopl.core.letrec-lang (:use eopl.core.define-datatype) (:use eopl.core.env) (:use eopl.core.letrec-lang-parser) (:use clojure.set) (:use clojure.test)) (defn expval->num [val] (cases expval val (num-val (num) num) (else (throw (Exception. (str "invalid number " val)))))) (defn expval...
07aac3fe637271a69be8374e441f58d13399f9c450d8351b33384b9078ca7419
AccelerateHS/accelerate-cuda
CUDA.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # -- | -- Module : Data.Array.Accelerate.CUDA Copyright : [ 2008 .. 2014 ] , [ 2008 .. 2009 ] [ 2009 .. 2014 ] -- License : BSD...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-cuda/6285f87859788628ce68d1ff76ce7b348f585f9e/Data/Array/Accelerate/CUDA.hs
haskell
# LANGUAGE BangPatterns # | Module : Data.Array.Accelerate.CUDA License : BSD3 Stability : experimental This module implements the CUDA backend for the embedded array language /Accelerate/. Expressions are on-line translated into CUDA code, compiled, The accelerate-cuda library is hosted at:...
# LANGUAGE CPP # # LANGUAGE GADTs # # LANGUAGE ScopedTypeVariables # Copyright : [ 2008 .. 2014 ] , [ 2008 .. 2009 ] [ 2009 .. 2014 ] Maintainer : < > Portability : non - portable ( GHC extensions ) and executed in parallel on t...
b0e192df602bc0bb5548e82a2f7ad78dfdb23bc0b3c7f5a622f54ff00050ffa3
discus-lang/ddc
DaConPrim.hs
module DDC.Core.Flow.Prim.DaConPrim ( xBool, dcBool , xNat, dcNat , dcTuple1 , xTuple2, dcTuple2 , dcTupleN) where import DDC.Core.Flow.Prim.Base import DDC.Core.Flow.Exp.Simple.Compounds import DDC.Core.Flow.Exp.Simple.Exp -- | A literal @Bool#@ xBool :: Bool -> Exp a Na...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-flow/DDC/Core/Flow/Prim/DaConPrim.hs
haskell
| A literal @Bool#@ | A literal @Bool#@ data constructor. | Data constructor for @Tuple1#@ | Data constructor for n-tuples
module DDC.Core.Flow.Prim.DaConPrim ( xBool, dcBool , xNat, dcNat , dcTuple1 , xTuple2, dcTuple2 , dcTupleN) where import DDC.Core.Flow.Prim.Base import DDC.Core.Flow.Exp.Simple.Compounds import DDC.Core.Flow.Exp.Simple.Exp xBool :: Bool -> Exp a Name xBool b = XCon (dcB...
bc8fa33e082641f75d9256421caca34d89cb8cd9bd63c0852bb9130ed448d4ff
yesodweb/serversession
Persistent.hs
-- | Storage backend for @serversession@ using persistent. -- -- In order to use this backend, you have to include -- 'serverSessionDefs' on your migration code. For example, the Yesod scaffold usually includes the following code : -- -- @ -- On Model.hs share [ mkPersist sqlSettings , mkMigrate \"migrateAll\ " ...
null
https://raw.githubusercontent.com/yesodweb/serversession/bdede5fb660890df670f103d64a5e69024b13e57/serversession-backend-persistent/src/Web/ServerSession/Backend/Persistent.hs
haskell
| Storage backend for @serversession@ using persistent. In order to use this backend, you have to include 'serverSessionDefs' on your migration code. For example, @ On Model.hs -- On Application.hs makeFoundation = ... ... @ You should changed those lines to: @ On Model.hs share [mkPersist s...
the Yesod scaffold usually includes the following code : share [ mkPersist sqlSettings , mkMigrate \"migrateAll\ " ] runLoggingT ( runSqlPool ( runMigration migrateAll ) pool ) logFunc import Web . ServerSession . Backend . Persistent mkMigrate \"migrateAll\ " ( entityDefs \`embedEntityDefs\ ` serverSessi...
f17f6debeab120bef3d89da709fefaf24b63a93aa56129d8276b147ab06cba48
jaspervdj/advent-of-code
Main.hs
-- | Utilities for writing a main function. # LANGUAGE FlexibleInstances # module AdventOfCode.Main ( defaultMain , pureMain , simpleMain ) where import Data.Bifunctor (bimap) import Data.Word (Word64) import System.Environment (getArgs, getProgName) import qu...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/bdc9628d1495d4e7fdbd9cea2739b929f733e751/lib/hs/AdventOfCode/Main.hs
haskell
| Utilities for writing a main function. | 'defaultMain' is the most general main function. | 'pureMain' avoids using 'IO' and rather uses 'Either' for error handling. | 'simpleMain' can be used in case there's no errors alltogether.
# LANGUAGE FlexibleInstances # module AdventOfCode.Main ( defaultMain , pureMain , simpleMain ) where import Data.Bifunctor (bimap) import Data.Word (Word64) import System.Environment (getArgs, getProgName) import qualified System.IO as IO import ...
8bad3a683a9cbc69fa542b043cafbc9911d43a0da144c25b1ef3a18a0c157c9f
sharplispers/split-sequence
api.lisp
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (in-package :split-sequence) (defun list-long-enough-p (list length) (or (zerop length) (not (null (nthcdr (1- length) list))))) (defun check-bounds (sequence start end) (progn (check-type start unsigned-byte "a non-negative integer") (check-type end (...
null
https://raw.githubusercontent.com/sharplispers/split-sequence/49d403bddd4d27ef647a036883a2c6338ddd00bf/api.lisp
lisp
-*- Mode: Lisp; indent-tabs-mode: nil -*-
(in-package :split-sequence) (defun list-long-enough-p (list length) (or (zerop length) (not (null (nthcdr (1- length) list))))) (defun check-bounds (sequence start end) (progn (check-type start unsigned-byte "a non-negative integer") (check-type end (or null unsigned-byte) "a non-negative integer ...
bb9c85c3fa0fbc1d2a9bc9f297d64f7bbf2f1336434a1e0658154bdccfcca923
msaitow/BraHKet
Fock.hs
Copyright ( C ) 2013 - 2014 by ( ) -- -- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or -- (at your option) any later version -- -- This program is dist...
null
https://raw.githubusercontent.com/msaitow/BraHKet/fff30d68a0693494a76fb3b0cf5d9f0f5104690f/BraHKet/Fock.hs
haskell
This program is free software; you can redistribute it and/or modify (at your option) any later version This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public ...
Copyright ( C ) 2013 - 2014 by ( ) it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place , Suite 330 , Boston , MA 02111 -...
852ad389095c051d6cfc5bf9bc7e34e57bd0c10eec86d2a0bd17fef319fb5bfb
soupi/yh
TextBox.hs
# LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DuplicateRecordFields # # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} module TextBox where import qualified SDL import qualified SDL.Font as ...
null
https://raw.githubusercontent.com/soupi/yh/4cfbcc7da6f3ca5e330b7fd7d4adeacee7e2dff4/app/TextBox.hs
haskell
# LANGUAGE TypeSynonymInstances # # LANGUAGE OverloadedStrings # # UNPACK # # UNPACK #
# LANGUAGE FunctionalDependencies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE DuplicateRecordFields # # LANGUAGE TemplateHaskell # # LANGUAGE FlexibleInstances # module TextBox where import qualified SDL import qualified SDL.Font as SDLF import qualified Play.Engine.MySDL.MySDL as MySDL import Data.Monoid ...
88bf83e86b95af3b0781f1b045b464275bc0d5cbfa060742444716609ec640af
maxlapshin/fix
fix_proxy.erl
#!/usr/bin/env escript main(Args) -> Root = filename:dirname(escript:script_name()), code:add_pathz(Root ++ "/ebin"), [code:add_pathz(Path) || Path <- filelib:wildcard(Root ++ "/../../deps/*/ebin")], application:start(fix), Debug = lists:member("-d", Args), application:set_env(fix, debug, Debug), fix:sta...
null
https://raw.githubusercontent.com/maxlapshin/fix/f603ff807112df92741f64955aacd5e3deb50495/fix_proxy.erl
erlang
#!/usr/bin/env escript main(Args) -> Root = filename:dirname(escript:script_name()), code:add_pathz(Root ++ "/ebin"), [code:add_pathz(Path) || Path <- filelib:wildcard(Root ++ "/../../deps/*/ebin")], application:start(fix), Debug = lists:member("-d", Args), application:set_env(fix, debug, Debug), fix:sta...
b0b07fb9e2d958291d677075e8ebf72d86fb8c2ad7f98de3f4635a915ed96935
Mbodin/murder-generator
translation.mli
(** Module Translation. Provides utilities to store and deal with translations. *) open Libutils (** The type of language. *) type language (** A special “language” for internal use. It typically stores the developping name of each object. *) val generic : language (** The type of grammatical tags. A tag c...
null
https://raw.githubusercontent.com/Mbodin/murder-generator/2024a924ffb4ee12d1b7119b699346b21e098892/src/translation.mli
ocaml
* Module Translation. Provides utilities to store and deal with translations. * The type of language. * A special “language” for internal use. It typically stores the developping name of each object. * The type of grammatical tags. A tag can be used to represent any language case (accusative, genitive, l...
open Libutils type language val generic : language type tag val base : tag type command = bool option * tag val get_tag : string -> tag val print_tag : tag -> string type 'a t type 'a gt type ('a, 'b) st type 'b sitem = | Variable of 'b * tag PSet.t * tag PSet.t * tag PSet.t * A variable , which is suppos...
9ccc2fd7656cbe1de80083bb34fdf5c70aa6b356b281fae03faa1bd4dc7da01d
dhall-lang/dhall-to-cabal
DhallLocation.hs
{-# language OverloadedStrings #-} module DhallLocation ( DhallLocation(..) , dhallFromGitHub ) where import Data.Version ( showVersion ) import qualified Data.Text as StrictText import qualified Dhall.Core import qualified Paths_dhall_to_cabal as Paths data DhallLocation = DhallLocation { preludeLocati...
null
https://raw.githubusercontent.com/dhall-lang/dhall-to-cabal/d16c510b87e966c3031e07b1810d152b051bc0d8/lib/DhallLocation.hs
haskell
# language OverloadedStrings #
module DhallLocation ( DhallLocation(..) , dhallFromGitHub ) where import Data.Version ( showVersion ) import qualified Data.Text as StrictText import qualified Dhall.Core import qualified Paths_dhall_to_cabal as Paths data DhallLocation = DhallLocation { preludeLocation :: Dhall.Core.Import , typesLo...
6746690b4bfd7da4991e91c5e062611b11ee13c2c2113eb5c7e6c42678ae96ff
LightTable/Clojure
handler.clj
(ns lighttable.nrepl.handler (:require [clojure.tools.nrepl.server :refer [start-server stop-server default-handler]] [clojure.tools.nrepl.transport :as transport] [clojure.tools.nrepl.middleware.session :refer [session]] [clojure.tools.nrepl.middleware.interruptible-eval :refer [i...
null
https://raw.githubusercontent.com/LightTable/Clojure/6f335ff3bec841b24a0b8ad7ca0dc126b3352a15/lein-light-nrepl/src/lighttable/nrepl/handler.clj
clojure
(ns lighttable.nrepl.handler (:require [clojure.tools.nrepl.server :refer [start-server stop-server default-handler]] [clojure.tools.nrepl.transport :as transport] [clojure.tools.nrepl.middleware.session :refer [session]] [clojure.tools.nrepl.middleware.interruptible-eval :refer [i...
4f8c1892d086c747a76bdbf8b0380a2c2676513b74014f3a83f51abea166818e
input-output-hk/marlowe-cardano
Client.hs
# LANGUAGE DataKinds # {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} -- | A view of the filtered chain sync protocol from the point of view of the -- client. This provides a simplified interface for implementing the client -- role of the protocol. The types should be much easier to use than the -- underlying type...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/67bc22d725c8ad164e2a64202325e3ecb5a1c161/marlowe-protocols/src/Network/Protocol/ChainSeek/Client.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # | A view of the filtered chain sync protocol from the point of view of the client. This provides a simplified interface for implementing the client role of the protocol. The types should be much easier to use than the underlying typed protocol types. | A filtered chain sy...
# LANGUAGE DataKinds # module Network.Protocol.ChainSeek.Client where import Network.Protocol.ChainSeek.Types import Network.TypedProtocol (Peer(..), PeerHasAgency(..)) import Network.TypedProtocol.Core (PeerRole(..)) newtype ChainSeekClient query point tip m a = ChainSeekClient { runChainSeekClient :: m (Clien...
156e9d74e03699b37562661ea81c619da7bba8b7b911c440209c04a9b3e94df8
alpheccar/HPDF
Horizontal.hs
--------------------------------------------------------- -- | Copyright : ( c ) 2006 - 2016 , alpheccar.org -- License : BSD-style -- -- Maintainer : -- Stability : experimental -- Portability : portable -- Horizontal mode --------------------------------------------------------- -- #hide # LANGUAGE CPP...
null
https://raw.githubusercontent.com/alpheccar/HPDF/5a901376470b549b2354cdd8013e655f7ac19e0b/Graphics/PDF/Typesetting/Horizontal.hs
haskell
------------------------------------------------------- | License : BSD-style Maintainer : Stability : experimental Portability : portable ------------------------------------------------------- #hide WARNING Sentences are created when no word style is present, otherwise we just create words ^ Adjust...
Copyright : ( c ) 2006 - 2016 , alpheccar.org Horizontal mode # LANGUAGE CPP # module Graphics.PDF.Typesetting.Horizontal ( HBox(..) , mkHboxWithRatio , horizontalPostProcess ) where #if !MIN_VERSION_base(4,8,0) import Data.Monoid #endif import Graphics.PDF.LowLevel.Types import Graphics.PDF.Typesetting....
d17d22008ec79825e36efd2b31e70c4252a58bfdee86a759c9f098e8dcd06e0c
igorhvr/bedlam
query.scm
The contents of this file are subject to the Mozilla Public License Version 1.1 ( the " License " ) ; you may not use this file except in compliance with ;;; the License. You may obtain a copy of the License at ;;; / ;;; Software distributed under the License is distributed on an " AS IS " basis , ;;; WITHOUT WAR...
null
https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/siscweb/siscweb-src-0.5/opt/sql/scm/sql/query.scm
scheme
you may not use this file except in compliance with the License. You may obtain a copy of the License at / WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. Contributor(s): Alternatively, the contents of th...
The contents of this file are subject to the Mozilla Public License Version Software distributed under the License is distributed on an " AS IS " basis , The Original Code is SISCweb . The Initial Developer of the Original Code is . Portions created by the Initial Developer are Copyright ( C ) 2005 . Al...
0c8d3387a2c486223c853d5dc41c95f6ee8b375923d085752c2ad80fdc8140e3
jqueiroz/lojban.io
ExerciseUtils.hs
-- | This module provides utilities for manipulating exercises. module Study.Framework.Lojban.ExerciseUtils ( simplifyTerminatorsInCanonicalAnswer ) where import Core import Language.Lojban.Refinement (simplifyTerminatorsInSentence) -- * Terminator ellisis -- | Decorates an exercise so that 'simplifyTerminatorsInSent...
null
https://raw.githubusercontent.com/jqueiroz/lojban.io/68c3e919f92ea1294f32ee7772662ab5667ecef6/haskell/src/Study/Framework/Lojban/ExerciseUtils.hs
haskell
| This module provides utilities for manipulating exercises. * Terminator ellisis | Decorates an exercise so that 'simplifyTerminatorsInSentence' is applied to its canonical answer.
module Study.Framework.Lojban.ExerciseUtils ( simplifyTerminatorsInCanonicalAnswer ) where import Core import Language.Lojban.Refinement (simplifyTerminatorsInSentence) simplifyTerminatorsInCanonicalAnswer :: Exercise -> Exercise simplifyTerminatorsInCanonicalAnswer (TypingExercise title sentences validate canonicalA...
19cb7ebeefe9ca69d3020182485ef36dc514d57219e77002da95224e6a1d7910
nikita-volkov/graph-db
StorageTests.hs
# OPTIONS_GHC -F -pgmF htfpp # module InternalTests.StorageTests where import Test.Framework import GraphDB.Util.Prelude import qualified GraphDB.Storage as Storage import qualified GraphDB.Util.FileSystem as FS data A = A { ref :: IORef Float } deriving (Generic) instance Serializable IO A data Event = Increas...
null
https://raw.githubusercontent.com/nikita-volkov/graph-db/3e886f6b298d2b2b09eb94c2818a7b648f42cb0a/executables/InternalTests/StorageTests.hs
haskell
# OPTIONS_GHC -F -pgmF htfpp # module InternalTests.StorageTests where import Test.Framework import GraphDB.Util.Prelude import qualified GraphDB.Storage as Storage import qualified GraphDB.Util.FileSystem as FS data A = A { ref :: IORef Float } deriving (Generic) instance Serializable IO A data Event = Increas...
5ea02e7765152ba56bd17524f408808841ec0e0106973505623a3c3fbcca4287
WFP-VAM/RAMResourcesScripts
nut7_coverage.sps
* Encoding: UTF-8. *can only download repeat csv data as zip file from moda with group names - will update this code to remove group names *rename to remove group names - because of the variable length SPSS changes name slightly RENAME VARIABLES (Nutrition_moduleNutProg_submoduleRepeatNutProgPNutProgPartic = PNutPro...
null
https://raw.githubusercontent.com/WFP-VAM/RAMResourcesScripts/236e1a630f053d27161c73dfe01a9ef04b7ebdcc/Indicators/Nutrition-CRF-7-coverage/nut7_coverage.sps
scheme
* Encoding: UTF-8. *can only download repeat csv data as zip file from moda with group names - will update this code to remove group names *rename to remove group names - because of the variable length SPSS changes name slightly RENAME VARIABLES (Nutrition_moduleNutProg_submoduleRepeatNutProgPNutProgPartic = PNutPro...
90a213b1e055b189230b857a803ee84cc748d75983d15899c56bb06b0645f45c
donaldsonjw/bigloo
find_gdefs.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / Ast / find_gdefs.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/comptime/Ast/find_gdefs.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * This module implements a function which travers an entire */ * unit in order to find t...
* serrano / prgm / project / bigloo / comptime / Ast / find_gdefs.scm * / * Author : * / * Creation : Mon Jun 3 11:21:26 1996 * / * Last change : Mon Nov 30 09:08:17 2015 ( serrano ) * / (module ...
a1a23c1166493124fe933ebbe2cfa69b8b1e9bf14e550051baa88bfcf3d6d485
coord-e/ad-hoc-poly
Type.hs
{-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeFamilies #-} module AST.Type where import AST.Name import Reporting.Report import Control.Lens.TH import Data.Functor.F...
null
https://raw.githubusercontent.com/coord-e/ad-hoc-poly/cb436ede2ac4f564cddd96fcab879c1ebc7a379e/src/AST/Type.hs
haskell
# LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable # # LANGUAGE TypeFamilies # Report instances
# LANGUAGE TemplateHaskell # module AST.Type where import AST.Name import Reporting.Report import Control.Lens.TH import Data.Functor.Foldable import Data.Functor.Foldable.TH import Data.List (intercalate) data Type = TVar TVarName | ...
c56bfc05bc196e2e69f1e4ea90d3cc5c39acdf3599902434e6cded164ab1e6e0
erlang/rebar3
rebar_file_utils.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/erlang/rebar3/dc3eca5aaf7b7afd9c6c07adbe21a2d07b8a8670/apps/rebar/src/rebar_file_utils.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...
12a63ef6961fc619e1841a8f0cdec97ab685f83cd79867114b8a5ef1360bb597
vernemq/vernemq
vmq_reg.erl
Copyright 2018 Erlio GmbH Basel Switzerland ( ) %% 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, sof...
null
https://raw.githubusercontent.com/vernemq/vernemq/234d253250cb5371b97ebb588622076fdabc6a5f/apps/vmq_server/src/vmq_reg.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2018 Erlio GmbH Basel Switzerland ( ) Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(vmq_reg). -include_lib("vmq_commons/include/vmq_types.hrl"). -include("vmq_server.hrl"). -export([ used in mqtt fs...
418004797cb231ee08c1d428668be276874fc00e2c59d2fee975a180147ebccc
pfdietz/ansi-test
set-exclusive-or.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Apr 20 07:45:46 2003 ;;;; Contains: Tests of SET-EXCLUSIVE-OR (deftest set-exclusive-or.1 (set-exclusive-or nil nil) nil) (deftest set-exclusive-or.2 (let ((result (set-exclusive-or-with-check '(a b c) nil))) (check-set-exclusive-or '(a ...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/cons/set-exclusive-or.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of SET-EXCLUSIVE-OR (deftest set-exclusive-or.13 (do-random-set-exclusive-ors 100 100) nil) Check that set-exclusive-or does not invert the order of the arguments to the test function Order of argument evaluation tests Keyword tests Error tests Randomized test
Author : Created : Sun Apr 20 07:45:46 2003 (deftest set-exclusive-or.1 (set-exclusive-or nil nil) nil) (deftest set-exclusive-or.2 (let ((result (set-exclusive-or-with-check '(a b c) nil))) (check-set-exclusive-or '(a b c) nil result)) t) (deftest set-exclusive-or.3 (let ((resu...
f721cf8b31d6c1448e81ba6f1fd45bd8716c2ead48892267f0654907de5cdb6a
hstreamdb/hstream
Types.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # {-# LANGUAGE StandaloneDeriving #-} module DiffFlow.Type...
null
https://raw.githubusercontent.com/hstreamdb/hstream/b7d0038aa9a1725964c7e00fab8231866d495458/hstream-diffflow/src/DiffFlow/Types.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE StandaloneDeriving # [outermost <--> innermost] -- Move later: remove timestamps that are earlier than ts. Move earlier: remove timestamps that are later than ts. FIXME: when to stop or error? -- ...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # module DiffFlow.Types where import Control.DeepSeq (NFData) import Control.Exception (throw) import Control.Monad import Data...
daa2c2c7f680b9a1fd2187ab23b30a45cd9b476e98383d864df57b69dc7b7df5
jeromesimeon/Galax
stream_analysis.ml
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/streaming_xpath/stream_analysis.ml
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : stream_analysis.ml , v 1.5 2007/02/01 22:08:54 simeon Exp $ Module : Stream_analysis Description : This module provides a whole - program analysis function for performing a stream analysis on a specified XQuery co...
a70296a82e98cf209690707430f82e60af62fc322669e3da41c7f809aea4ac62
rd--/hsc3
combN.help.hs
-- combN ; comb filter as resonator, the resonant fundamental is equal to reciprocal of the delay time let n = whiteNoiseId 'α' ar * 0.02 dt = xLine kr 0.0001 0.01 20 RemoveSynth in combN n 0.01 dt 0.2
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/combN.help.hs
haskell
combN ; comb filter as resonator, the resonant fundamental is equal to reciprocal of the delay time
let n = whiteNoiseId 'α' ar * 0.02 dt = xLine kr 0.0001 0.01 20 RemoveSynth in combN n 0.01 dt 0.2
1003b54c4134fc5902b2be87959c5e6521923056f8928b015d94da09917bcacf
NetComposer/nkpacket
dns_test.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the...
null
https://raw.githubusercontent.com/NetComposer/nkpacket/4d74ab31b20ba7a1449f1f72c1c51829f18d2d5c/test/dns_test.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2015 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(dns_test). -author('...
6b9d3175871226e5379d8ded8d8bcfd5fd7a9de3b414af938f2342aa4f9d97b6
well-typed-lightbulbs/ocaml-esp32
host.ml
TEST include dynlink files = " host.ml plugin.ml " libraries = " " flags + = " -g " ocamldebug_script = " $ { test_source_directory}/input_script " * debugger * * shared - libraries * * * setup - ocamlc.byte - build - env * * * * ocamlc.byte module = " host.ml " * * * * * ocamlc.byte module...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/tool-debugger/dynlink/host.ml
ocaml
TEST include dynlink files = " host.ml plugin.ml " libraries = " " flags + = " -g " ocamldebug_script = " $ { test_source_directory}/input_script " * debugger * * shared - libraries * * * setup - ocamlc.byte - build - env * * * * ocamlc.byte module = " host.ml " * * * * * ocamlc.byte module...
9c03c9007e05b4d3a6005ce54149af81b657ae153cba0a9c6fb98280d8af6521
cedlemo/OCaml-GI-ctypes-bindings-generator
Tree_model_sort.mli
open Ctypes type t val t_typ : t typ val clear_cache : t -> unit val convert_child_iter_to_iter : t -> Tree_iter.t structure ptr -> (bool * Tree_iter.t structure) val convert_child_path_to_path : t -> Tree_path.t structure ptr -> Tree_path.t structure ptr option val convert_iter_to_child_iter : t -> Tree_iter...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Tree_model_sort.mli
ocaml
Not implemented gtk_tree_model_sort_get_model return type interface not handled
open Ctypes type t val t_typ : t typ val clear_cache : t -> unit val convert_child_iter_to_iter : t -> Tree_iter.t structure ptr -> (bool * Tree_iter.t structure) val convert_child_path_to_path : t -> Tree_path.t structure ptr -> Tree_path.t structure ptr option val convert_iter_to_child_iter : t -> Tree_iter...
acf654a4ae8a6acadc845eb449fe11affa791b759adccd00ec39379c6c4754e2
DHSProgram/DHS-Indicators-SPSS
FP_KNOW_MR.sps
* Encoding: windows-1252. * /***************************************************************************************************** Program: FP_KNOW_MR.sps Purpose: Code contraceptive knowledge indicators Data inputs: MR dataset Data outputs: coded variables Author: Shireen Assaf and translated to SPSS by I...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap07_FP/FP_KNOW_MR.sps
scheme
* Encoding: windows-1252. * /***************************************************************************************************** Program: FP_KNOW_MR.sps Purpose: Code contraceptive knowledge indicators Data inputs: MR dataset Data outputs: coded variables Author: Shireen Assaf and translated to SPSS by I...
7839cd5ea1613ec7419e2b35321127061ae3abee6091c49288d0218305b20136
iburzynski/EMURGO_73
BST.hs
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-} # HLINT ignore " Eta reduce " # import Data.Foldable (toList, foldl') data Tree a = Empty | Node (Tree a) a (Tree a) deriving (Eq, Show) a Tree can contain data of any one type ... -- and is either Empty or a Node consisting of: -- * a left subtree (type Tree a) -- ...
null
https://raw.githubusercontent.com/iburzynski/EMURGO_73/91785434993df400ba98b4472de35d5fb933e61d/AdvTypes/BST.hs
haskell
# OPTIONS_GHC -Wno-unrecognised-pragmas # and is either Empty or a Node consisting of: * a left subtree (type Tree a) * a value (type a) * a right subtree (type Tree a) / \ / \ / \ Write a function that inserts a value into the appropriate position of a binary search tree Base case: insert a nod...
# HLINT ignore " Eta reduce " # import Data.Foldable (toList, foldl') data Tree a = Empty | Node (Tree a) a (Tree a) deriving (Eq, Show) a Tree can contain data of any one type ... myTree = Node (Node (Node Empty 1 Empty) 2 (Node Empty 3 Empty)) 4 (Node (Node Empty 5 Empty) 6 (Node Empty 7 Empty)) 4 ...
1548725115c566ae38e8eaab5c87fca4c2b9553f4b826e58783d45882cc548b7
bmeurer/ocamljit2
ident.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/typing/ident.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ type t val create: string ->...
89fbf4960cb6b1fbf629125eca10ba0d88dc19d99334edca63e404972abfd385
BranchTaken/Hemlock
test_merge.ml
open! Basis.Rudiments open! Basis open Result let test () = let result_pairs = [ (Ok "ok0", Ok "ok1"); (Error "error0", Ok "ok1"); (Ok "ok0", Error "error1"); (Error "error0", Error "error1") ] in List.iter result_pairs ~f:(fun (a, b) -> let f a b = String.Fmt.empty |> Fmt.fmt a |> Fmt.fmt " ...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/f3604ceda4f75cf18b6ee2b1c2f3c5759ad495a5/bootstrap/test/basis/result/test_merge.ml
ocaml
open! Basis.Rudiments open! Basis open Result let test () = let result_pairs = [ (Ok "ok0", Ok "ok1"); (Error "error0", Ok "ok1"); (Ok "ok0", Error "error1"); (Error "error0", Error "error1") ] in List.iter result_pairs ~f:(fun (a, b) -> let f a b = String.Fmt.empty |> Fmt.fmt a |> Fmt.fmt " ...
3694685bf98319c033b1aab7500d2234afb387987523f0c39676285ea0eeb226
donaldsonjw/bigloo
atom.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / api / web / src / Llib / atom.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : Fri Aug 29 14:56:48 2...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/api/web/src/Llib/atom.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Even if the latter is deprecated, google still use it for */ * google mail. ...
* serrano / prgm / project / bigloo / api / web / src / Llib / atom.scm * / * Author : * / * Creation : Fri Aug 29 14:56:48 2008 * / * Last change : Thu Oct 1 14:09:50 2009 ( serrano ) * / * Copyright : 2008 - 09...
f15424fd9c48ee049a92e897177fc5dd81865b0d97931bcbb74906fa7f7c3abe
mzp/bs-lwt
lwt_timeout.ml
Lightweight thread library for OCaml * * Module Lwt_timeout * Copyright ( C ) 2005 - 2008 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published ...
null
https://raw.githubusercontent.com/mzp/bs-lwt/f37a3c47d038f4efcd65912c41fab95d1e6633ce/lwt/src/unix/lwt_timeout.ml
ocaml
** ** XXX Should probably report any exception
Lightweight thread library for OCaml * * Module Lwt_timeout * Copyright ( C ) 2005 - 2008 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published ...
da301d655b3545a8a0af9ae24f7ec4af4d31c4a594b90d20729ba11cb799e269
dtgoitia/civil-autolisp
ContourUtilities.lsp
(defun c:xx () ; Trigger (defun *error* ( errorMessage ) (princ (strcat "n-------- ERROR: " errorMessage " --------n")) (vl-bt) (DT:ReportError)) (DT:AutoLoadFileFromCivilTemp "ErrorTracing.lsp") (DT:AutoLoadFileFromCivilTemp "ContourUtilities.lsp") (c:entryFunction) v0.0 - 2017.09.29 - First issue Autho...
null
https://raw.githubusercontent.com/dtgoitia/civil-autolisp/72d68139d372c84014d160f8e4918f062356349f/Dump%20folder/ContourUtilities.lsp
lisp
Trigger END if END foreach END if Update text (ename) rotation to be a readable angle END progn END if
(defun c:xx () (defun *error* ( errorMessage ) (princ (strcat "n-------- ERROR: " errorMessage " --------n")) (vl-bt) (DT:ReportError)) (DT:AutoLoadFileFromCivilTemp "ErrorTracing.lsp") (DT:AutoLoadFileFromCivilTemp "ContourUtilities.lsp") (c:entryFunction) v0.0 - 2017.09.29 - First issue Author : Last...
41d1538824a1646c7f79028f3430a2c7aca069d9c7e6aa82896b2705328cac9d
louispan/glazier
Internal.hs
# LANGUAGE DeriveFunctor # # LANGUAGE GeneralizedNewtypeDeriving # module Glazier.Command.Internal where import qualified Data.DList as DL import Data.IORef -- | (read all the results from a mutable list, write a value to a mutable list) newBusIO :: IO (IO [a], a -> IO ()) newBusIO = (\v -> (DL.toList <$> readIO...
null
https://raw.githubusercontent.com/louispan/glazier/cc879c4044f53debba81315f84fbce41ad05c80d/src/Glazier/Command/Internal.hs
haskell
| (read all the results from a mutable list, write a value to a mutable list)
# LANGUAGE DeriveFunctor # # LANGUAGE GeneralizedNewtypeDeriving # module Glazier.Command.Internal where import qualified Data.DList as DL import Data.IORef newBusIO :: IO (IO [a], a -> IO ()) newBusIO = (\v -> (DL.toList <$> readIORef v , \a -> atomicModifyIORef v (\b -> (b <> DL.singleton a, ()))) ) <$...
e08103f1f95a1922b90ff421e3cbed0838cf31cae97918d58187cbcce93668cf
ynadji/lisp
config-parser.lisp
(defpackage :config-parser (:use :cl) (:export #:sudoku-config-parse) (:export #:sudoku-config-dump)) (provide :config-parser) (in-package :config-parser) (defun c2i (c) (if (not (null c)) (let ((h (char-int c))) if char falls within this boundry , it 's an integer ( 0 - 9 ) ; returns integer (cond ...
null
https://raw.githubusercontent.com/ynadji/lisp/758b5aebaa01f4994407d20026e617ebef90739e/sudoku/config-parser.lisp
lisp
returns integer if it's a space, return -1 can't use NIL b/c of DO loop constraint if the value returned by c2i is -1 it was a space, so set it to NIL if the puzzle is nil, everything has been written out already
(defpackage :config-parser (:use :cl) (:export #:sudoku-config-parse) (:export #:sudoku-config-dump)) (provide :config-parser) (in-package :config-parser) (defun c2i (c) (if (not (null c)) (let ((h (char-int c))) if char falls within this boundry , it 's an integer ( 0 - 9 ) (cond ((and (> h 47) (< h...
d09578925ea8727ed35942183eaf4e12974b7dda2545f36164880e1a60217b79
jorgetavares/zsort
packages.lisp
Copyright ( c ) 2012 < > ;;;; ;;;; Permission is hereby granted, free of charge, to any person obtaining ;;;; a copy of this software and associated documentation files (the " Software " ) , to deal in the Software without restriction , including ;;;; without limitation the rights to use, copy, modify, merge, pu...
null
https://raw.githubusercontent.com/jorgetavares/zsort/f6724a6fff7662a942195cedb0d7f00da59c74ed/packages.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: The above copyright notice and this permission notice shall be included EXPRESS OR ...
Copyright ( c ) 2012 < > " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to in all copies or substantial portions of the Software . THE SOFTWA...
a25081bc5fe82d3f64a27956aee3c6c0cc356403042c96d47d8aff6c3a47a405
arachne-framework/factui
project.clj
(defproject org.arachne-framework/factui "1.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.9.0-alpha17" :scope "provided"] [org.clojure/clojurescript "1.9.671" :scope "provided"] [org.clojure/core.async "0.3.443"] [com.cerner/clara-rules "0.15.1" :exclusions [p...
null
https://raw.githubusercontent.com/arachne-framework/factui/818ea79d7f84dfe80ad23ade0b6b2ed5bb1c6287/project.clj
clojure
:pretty-print true :source-map "target/public/js/dev.map.js"
(defproject org.arachne-framework/factui "1.1.0-SNAPSHOT" :dependencies [[org.clojure/clojure "1.9.0-alpha17" :scope "provided"] [org.clojure/clojurescript "1.9.671" :scope "provided"] [org.clojure/core.async "0.3.443"] [com.cerner/clara-rules "0.15.1" :exclusions [p...
7bd9bde3d649c57b691bfa8e2627f5aeadc10cdc2815fd43145ea5f6f9135d14
mzp/coq-ruby
inv.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/tactics/inv.mli
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 _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * i $ I d : inv.mli 11309 200...
4024edb938f660884e54b7c7449789a05a732b244438d767b4dfb7841700f1d0
braidchat/braid
global_settings.cljs
(ns braid.core.client.ui.styles.pages.global-settings (:require [braid.core.client.ui.styles.mixins :as mixins] [garden.units :refer [rem px]])) (def global-settings-page [:>.page.global-settings [:>.title {:font-size "large"}] (mixins/settings-style)])
null
https://raw.githubusercontent.com/braidchat/braid/2e44eb6e77f1d203115f9b9c529bd865fa3d7302/src/braid/core/client/ui/styles/pages/global_settings.cljs
clojure
(ns braid.core.client.ui.styles.pages.global-settings (:require [braid.core.client.ui.styles.mixins :as mixins] [garden.units :refer [rem px]])) (def global-settings-page [:>.page.global-settings [:>.title {:font-size "large"}] (mixins/settings-style)])
d37ffd41906ce15193a26a693c0d1eae9072d1f3f3fae6f129e32f05856dd4aa
ryanpbrewster/haskell
P049Test.hs
module Problems.P049Test ( case_049_main ) where import Problems.P049 import Test.Tasty.Discover (Assertion, (@?=)) case_049_main :: Assertion case_049_main = solve @?= "296962999629"
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/tests/Problems/P049Test.hs
haskell
module Problems.P049Test ( case_049_main ) where import Problems.P049 import Test.Tasty.Discover (Assertion, (@?=)) case_049_main :: Assertion case_049_main = solve @?= "296962999629"
005dd875d4b28d45fa628f053c04af384ef167baeb4c69d9665ab961aee04713
ekmett/representable-functors
Store.hs
# LANGUAGE TypeFamilies , FlexibleContexts , FlexibleInstances , MultiParamTypeClasses , UndecidableInstances # , FlexibleContexts , FlexibleInstances , MultiParamTypeClasses , UndecidableInstances #-} ----------------------...
null
https://raw.githubusercontent.com/ekmett/representable-functors/907ecfce49b1dff60f82797fad5b226285e6af2f/src/Control/Comonad/Representable/Store.hs
haskell
-------------------------------------------------------------------- | Module : Control.Comonad.Representable.Store License : BSD3 Maintainer : Stability : experimental The representation of that functor serves as the index of the store. ---------------------------------------------------------...
# LANGUAGE TypeFamilies , FlexibleContexts , FlexibleInstances , MultiParamTypeClasses , UndecidableInstances # , FlexibleContexts , FlexibleInstances , MultiParamTypeClasses , UndecidableInstances #-} Copyright : ( c...
e8cbbac42bec223b991a1531aba705403218f90ac4d8ed605194e846d0f1e692
plai-group/daphne
address_transformation.clj
(ns daphne.address-transformation "See Section 6.2 in Introduction to Probabilistic Programming." (:require [daphne.gensym :refer [*my-gensym*]])) (defn dispatch-address-trafo [exp _] (cond (and (list? exp) (= (first exp) 'fn)) :fn (and (list? exp) (= (first exp) 'if...
null
https://raw.githubusercontent.com/plai-group/daphne/b0f43fbb9c856116ec44419fea91c4011072dd74/src/daphne/address_transformation.clj
clojure
we do not know about primitives functions here and therefore also create new symbols for those invocations => (+ 1 2)
(ns daphne.address-transformation "See Section 6.2 in Introduction to Probabilistic Programming." (:require [daphne.gensym :refer [*my-gensym*]])) (defn dispatch-address-trafo [exp _] (cond (and (list? exp) (= (first exp) 'fn)) :fn (and (list? exp) (= (first exp) 'if...
8f5a5031fd7cde6993eaa80665a5ef763ecfc899767c30c97ac11bca61be3d7c
juspay/atlas
RentalRideBooking.hs
# LANGUAGE TypeApplications # | Copyright 2022 Juspay Technologies Pvt Ltd 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 agree...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/Storage/Queries/RideBooking/RentalRideBooking.hs
haskell
# LANGUAGE TypeApplications # | Copyright 2022 Juspay Technologies Pvt Ltd 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 agree...
56a43354682139779f04113064092d738a9387bcd95c93fe2a9d8e16283711aa
TheInnerLight/dormouse
PayloadSpec.hs
module Dormouse.Client.PayloadSpec ( spec ) where import Control.Monad.IO.Class import qualified Data.Map as Map import Data.Text.Encoding import Dormouse.Client.Types import Dormouse.Client.Generators.Text import Dormouse.Client.Payload import Streamly import qualified Streamly.Prelude as S import Data.Proxy i...
null
https://raw.githubusercontent.com/TheInnerLight/dormouse/f2bba11c19d21e2779302bab167b9120c8179178/dormouse-client/test/Dormouse/Client/PayloadSpec.hs
haskell
module Dormouse.Client.PayloadSpec ( spec ) where import Control.Monad.IO.Class import qualified Data.Map as Map import Data.Text.Encoding import Dormouse.Client.Types import Dormouse.Client.Generators.Text import Dormouse.Client.Payload import Streamly import qualified Streamly.Prelude as S import Data.Proxy i...
fd9407ae852c5f59b4ba0b32f9c93ca54aef8254420f69ea82ced08820cbd02f
modular-macros/ocaml-macros
test.ml
module S = struct include Stack let to_list s = (* from bottom to top *) let l = ref [] in iter (fun x -> l := x :: !l) s; !l end let does_raise f s = try ignore (f s : int); false with S.Empty -> true let () = let s = S.create () in (); assert (S.to_list s = ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/lib-stack/test.ml
ocaml
from bottom to top
module S = struct include Stack let l = ref [] in iter (fun x -> l := x :: !l) s; !l end let does_raise f s = try ignore (f s : int); false with S.Empty -> true let () = let s = S.create () in (); assert (S.to_list s = [ ] && S.length s = 0); S.push 1 s;...
6ba4309f3ba2cc02bc34a7949b9c1ff2a8b5cf57a5543a2b3f7c2a9485733a3f
phadej/hooglite
Hooglite.hs
module Hooglite ( -- * Database Database, Entry (..), apiToDatabase, query, -- * Queries Query (..), parseQuery, -- * Parsing hoogle.txt files API (..), apiPackageId, parseHoogleFile, -- * Declarations Declaration (..), declarationSrc, -- * Extras pret...
null
https://raw.githubusercontent.com/phadej/hooglite/8414b270254f595940edde6fe6ea3f800919b71b/src/Hooglite.hs
haskell
* Database * Queries * Parsing hoogle.txt files * Declarations * Extras
module Hooglite ( Database, Entry (..), apiToDatabase, query, Query (..), parseQuery, API (..), apiPackageId, parseHoogleFile, Declaration (..), declarationSrc, pretty, ) where import Hooglite.Database import Hooglite.Declaration import Hooglite.Haddock import Hooglite.M...
8683cbf196cd706fc420dab2cb41c9390749415e93b5baa10fe1693c9993d6b7
evturn/haskellbook
21.12-ski-free.hs
# LANGUAGE FlexibleContexts # module SkiFree where import Test.QuickCheck import Test.QuickCheck.Checkers import Test.QuickCheck.Classes data S n a = S (n a) a deriving (Eq, Show) instance Functor n => Functor (S n) where fmap f (S x y) = S (fmap f x) (f y) instance Foldable n => ...
null
https://raw.githubusercontent.com/evturn/haskellbook/3d310d0ddd4221ffc5b9fd7ec6476b2a0731274a/21/21.12-ski-free.hs
haskell
# LANGUAGE FlexibleContexts # module SkiFree where import Test.QuickCheck import Test.QuickCheck.Checkers import Test.QuickCheck.Classes data S n a = S (n a) a deriving (Eq, Show) instance Functor n => Functor (S n) where fmap f (S x y) = S (fmap f x) (f y) instance Foldable n => ...
95b652425bea6fcef7ed5147db65a1df48793404b4c7e33cc386b8d7136ae925
kelamg/HtDP2e-workthrough
ex384.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-intermediate-lambda-reader.ss" "lang")((modname ex384) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Intertwined-Data/ex384.rkt
racket
about the language level of this file in a form that our tools can easily process. – Symbol – String – Number – (cons Symbol (cons Attribute*.v3 [List-of Xexpr.v3])) – (cons Symbol [List-of Xexpr.v3]) An Attribute*.v3 is a [List-of Attribute.v3]. (list Symbol String) font size "__w" denotes a du...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex384) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/abstraction) (require 2htdp/batch-io) (...
62b21a3c230a6232271beb98ca72bc5f5ff331fae919db61fb58a448802ef4af
samrushing/irken-compiler
socket.scm
;; -*- Mode: Irken -*- (require "lib/net/socket.scm") (require "doom/scheduler.scm") (require "doom/sync.scm") we have two different styles of wait / retry : 1 ) normal : try the syscall , if EWOULDBLOCK then wait & retry it . 2 ) connect : try the syscall , if EWOULDBLOCK then wait - for - write . ;; we may n...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/doom/socket.scm
scheme
-*- Mode: Irken -*- we may need a loop anyway because of EINTR - though signals create a doom socket with attached buffers. NOTE: when specifying buffer sizes for a listening socket, those are the sizes that will be given to each new connection. socket with buffers attached. non-blocking connect() is managed dif...
(require "lib/net/socket.scm") (require "doom/scheduler.scm") (require "doom/sync.scm") we have two different styles of wait / retry : 1 ) normal : try the syscall , if EWOULDBLOCK then wait & retry it . 2 ) connect : try the syscall , if EWOULDBLOCK then wait - for - write . * should * be redirected when us...
fbcb794e9704293a879a779dbb960ab014385f76bf47560d1790070c3d76f966
kenpratt/wgbase
wg_tmp_sup.erl
%%%---------------------------------------------------------------------- %%% wg copyright © 2009 %%% @author %%% @doc the simple supervisour with temporary restart strategy %%% %%%---------------------------------------------------------------------- -module(wg_tmp_sup). -author(''). -vsn('0.1'). -behaviour(super...
null
https://raw.githubusercontent.com/kenpratt/wgbase/04f35c3f23a2f6045244b5e1bcd6c5694a7cdeae/src/wg_tmp_sup.erl
erlang
---------------------------------------------------------------------- @doc the simple supervisour with temporary restart strategy ---------------------------------------------------------------------- @doc start the supervisor @doc the supervisor callback
wg copyright © 2009 @author -module(wg_tmp_sup). -author(''). -vsn('0.1'). -behaviour(supervisor). -include("wg.hrl"). -export([start_link/2, init/1]). start_link(Name, Module) -> supervisor:start_link({local, Name}, ?MODULE, Module). init(Module) -> {ok, {{simple_one_for_one, 10, 1}, [{undefine...
1b05f161cc25d4621580533c8d1dfb745605e72ae08cef66ed0cbacd01da71f2
brendanhay/gogol
List.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-safebrowsing/gen/Gogol/SafeBrowsing/ThreatLists/List.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated Lists the Safe Browsing threat lists available for download. /See:/ <-browsing/ Safe Browsing API Reference> for @safebrowsing.threatLists.list@. * Resource ** Constructing a Request | A resource alias for @safebrowsing.threa...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
48c7665b501cb4785403cf87ac49e4874b6daa4c2ecbadd4871dd1c8747b8fa5
ygmpkk/house
HGL.hs
----------------------------------------------------------------------------- -- | -- Module : Graphics.HGL Copyright : ( c ) , 1999 - 2003 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- A simple grap...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/HGL/Graphics/HGL.hs
haskell
--------------------------------------------------------------------------- | Module : Graphics.HGL License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : provisional Portability : portable A simple graphics library. ----------------------------------------------...
Copyright : ( c ) , 1999 - 2003 module Graphics.HGL ( module Graphics.HGL.PLATFORM ) where import Graphics.HGL.PLATFORM
ad8d5910e6281ed6184af2bcd65ad788064fddf21e8897559b512b55be6bbff3
lilactown/lilac.town
core.cljs
(ns lilactown.workspace.core (:require [nubank.workspaces.core :as ws] [lilactown.workspace.title] [lilactown.workspace.pts] [lilactown.workspace.react] [lilactown.workspace.sweeper] [lilactown.workspace.sound] [lilactown.workspace.visual-spec]))...
null
https://raw.githubusercontent.com/lilactown/lilac.town/295669e4511e79877da14232457dea26f098acd8/src/lilactown/workspace/core.cljs
clojure
(ns lilactown.workspace.core (:require [nubank.workspaces.core :as ws] [lilactown.workspace.title] [lilactown.workspace.pts] [lilactown.workspace.react] [lilactown.workspace.sweeper] [lilactown.workspace.sound] [lilactown.workspace.visual-spec]))...
987926bc4fd3fe196fd8a8081b7a5ee028564a69c890923954bd1d77d7ee6a2c
lalzy/Lazyfoo-CL-SDL2
main.lisp
Tutorial 19 : and Joysticks (defpackage #:tutorial-19 (:use #:cl) (:export :main)) (in-package #:tutorial-19) (defun file-path (path file) (let ((path-end (aref path (1- (length path))))) (if (or (string-equal path-end #\\) (string-equal path-end #\/)) (concatenate 'string path file) (concatenate 'st...
null
https://raw.githubusercontent.com/lalzy/Lazyfoo-CL-SDL2/7bf0d255112e354672686d8ad3d6772ebde34c51/tutorial-19/main.lisp
lisp
Prevent slime from hanging if crashing Slime doesn't like recompiling with ttf even though we close it. Unwind-protect fixes this Slime doesn't close controllers correctly causing a new ID to be chosen every restart
Tutorial 19 : and Joysticks (defpackage #:tutorial-19 (:use #:cl) (:export :main)) (in-package #:tutorial-19) (defun file-path (path file) (let ((path-end (aref path (1- (length path))))) (if (or (string-equal path-end #\\) (string-equal path-end #\/)) (concatenate 'string path file) (concatenate 'st...
38c8ea76dd9f14cefddcf1d80b6c84537ed73a3044c1f770ade1181e41680b9a
haskell-jp/makeMistakesToLearnHaskell
no-arrow.hs
main = putStr (unlines (reverse (lines getContents)))
null
https://raw.githubusercontent.com/haskell-jp/makeMistakesToLearnHaskell/1174d5c6bb82e57622be8033607a4d049e30ae7e/test/assets/4/no-arrow.hs
haskell
main = putStr (unlines (reverse (lines getContents)))
f99173bffd2839e3b2e3e85b133bfdee5c98f59b3f36ddc1fc36b24ba70977c3
Decentralized-Pictures/T4L3NT
perform_benchmarks.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/tezt/snoop/perform_benchmarks.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
75a030baae25d287ba499ec212da1a93b9335b09e9a91f4debfdb94c8bbcf4af
hexlet-codebattle/battle_asserts
char_remove.clj
(ns battle-asserts.issues.char-remove (:require [clojure.string :as s] [clojure.test.check.generators :as gen] [faker.generate :as faker])) (def level :elementary) (def tags ["strings" "collections"]) (def description {:en "Write a function that removes every `character` from every string...
null
https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/c1db167b1c64aa5dd3d95b748c3dc8b280946d96/src/battle_asserts/issues/char_remove.clj
clojure
(ns battle-asserts.issues.char-remove (:require [clojure.string :as s] [clojure.test.check.generators :as gen] [faker.generate :as faker])) (def level :elementary) (def tags ["strings" "collections"]) (def description {:en "Write a function that removes every `character` from every string...
13fcfee897e4d4c859d4cf7a81d9b78120f172599cfdfff5a519be070df471d1
Apress/common-lisp-condition-system
condition-hierarchy.lisp
src / conditions.lisp (in-package #:portable-condition-system) ;;; Standard conditions ;;; ;;; The standard condition types defined within this file are not documented via ;;; documentation strings due to the repetitiveness of the contents of this ;;; file. (define-condition warning (condition) ()) (define-condit...
null
https://raw.githubusercontent.com/Apress/common-lisp-condition-system/7f4533e20d6397a59ca5bbfdc139b3389a135c34/Sources%20-%20PCS/src/condition-hierarchy.lisp
lisp
Standard conditions The standard condition types defined within this file are not documented via documentation strings due to the repetitiveness of the contents of this file. Non-standard condition types
src / conditions.lisp (in-package #:portable-condition-system) (define-condition warning (condition) ()) (define-condition serious-condition (condition) ()) (define-condition error (serious-condition) ()) (define-condition style-warning (warning) ()) (defun report-simple-condition (condition stream) (let ((f...