_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 |
|---|---|---|---|---|---|---|---|---|
6045460f34c0266a78bf5f135700211b35d80654445fdf217c984d19ea7f7259 | cracauer/sbcl-ita | compiler.pure-cload.lisp | ;;;; miscellaneous tests of compiling toplevel forms
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
While most of SBCL is derived from the CMU CL system , the test
;;;; files (like this one) were written from scratch after the fork
from CMU CL .
;;;;
;;;; This soft... | null | https://raw.githubusercontent.com/cracauer/sbcl-ita/f85a8cf0d1fb6e8c7b258e898b7af3233713e0b9/tests/compiler.pure-cload.lisp | lisp | miscellaneous tests of compiling toplevel forms
more information.
files (like this one) were written from scratch after the fork
This software is in the public domain and is provided with
absolutely no warranty. See the COPYING and CREDITS files for
more information.
Exercise a compiler bug (by causing a call ... |
This software is part of the SBCL system . See the README file for
While most of SBCL is derived from the CMU CL system , the test
from CMU CL .
(in-package :cl-user)
(let ((a 1) (b 1))
(declare (type (mod 1000) a b))
(let ((tmp (= 10 (+ (incf a) (incf a) (incf b) (incf b)))))
(or tmp (error "TMP not t... |
259045b2a341886275af55ad8cc6af59540b4ebd9693264c50734b0ea98e6dc6 | Clojure2D/clojure2d-examples | randomdistribution_I_2.clj | (ns examples.NOC.introduction.randomdistribution-I-2
(:require [clojure2d.core :refer :all]
[fastmath.random :as r]
[fastmath.core :as m]))
(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(m/use-primitive-operators)
(defn bar
"Draw bar"
[canvas x y w h c1 c2]
(-... | null | https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/NOC/introduction/randomdistribution_I_2.clj | clojure | (ns examples.NOC.introduction.randomdistribution-I-2
(:require [clojure2d.core :refer :all]
[fastmath.random :as r]
[fastmath.core :as m]))
(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(m/use-primitive-operators)
(defn bar
"Draw bar"
[canvas x y w h c1 c2]
(-... | |
a89e6a9491d75e5c8e08ac1e6e6cbd0d881aac5071fa0ced381305a0407cf2ee | andrenth/sequoia | table.mli | (** SQL tables *)
type 'a t
(** The type of tables. *)
val called : string -> 'a t
(** Define a table with the given name. *)
val name : 'a t -> string
(** Returns the name of a table. *)
| null | https://raw.githubusercontent.com/andrenth/sequoia/77d1a429042213f2ff76e5d397c876bc18f4ab64/src/table.mli | ocaml | * SQL tables
* The type of tables.
* Define a table with the given name.
* Returns the name of a table. |
type 'a t
val called : string -> 'a t
val name : 'a t -> string
|
1076d3266f833a483fcd9453c9a79c857bcf7849aa8f8dc396db4dbae1eba8a7 | GaloisInc/parameterized-utils | UnitTest.hs | import Test.Tasty
import Test.Tasty.Ingredients
import Test.Tasty.Runners.AntXML
import qualified Test.Context
import qualified Test.Fin
import qualified Test.FinMap
import qualified Test.List
import qualified Test.NatRepr
import qualified Test.Some
import qualified Test.SymbolRepr
import qualified Test.TH
import qual... | null | https://raw.githubusercontent.com/GaloisInc/parameterized-utils/a888f5862b73a1575d36fef9327fcbe3dbcbff51/test/UnitTest.hs | haskell | import Test.Tasty
import Test.Tasty.Ingredients
import Test.Tasty.Runners.AntXML
import qualified Test.Context
import qualified Test.Fin
import qualified Test.FinMap
import qualified Test.List
import qualified Test.NatRepr
import qualified Test.Some
import qualified Test.SymbolRepr
import qualified Test.TH
import qual... | |
949771dc251703a3e5c50436e074603b035000dae61d3514bef39bf44dcdc5b9 | lunarcoffee/advent-of-code | Day15.hs | # LANGUAGE FlexibleContexts #
# LANGUAGE QuasiQuotes #
import Control.Parallel.Strategies (parMap, rseq)
import Data.Foldable (asum)
import Data.List (find, foldl', sort)
import Text.Regex.PCRE.Heavy (re, scan)
type Pos = (Int, Int)
noBeaconRanges :: Int -> [(Pos, Pos)] -> [(Int, Int)]
noBeaconRanges y = (foldl' mer... | null | https://raw.githubusercontent.com/lunarcoffee/advent-of-code/97501bb4ca3cc065f7ceae620d0b4249c118021b/2022/Day15.hs | haskell | # LANGUAGE FlexibleContexts #
# LANGUAGE QuasiQuotes #
import Control.Parallel.Strategies (parMap, rseq)
import Data.Foldable (asum)
import Data.List (find, foldl', sort)
import Text.Regex.PCRE.Heavy (re, scan)
type Pos = (Int, Int)
noBeaconRanges :: Int -> [(Pos, Pos)] -> [(Int, Int)]
noBeaconRanges y = (foldl' mer... | |
ab11c395a9f3b866f70d34ce53368e9859711f59ac4522f8f0e4f1d671fcf186 | goblint/analyzer | mCPRegistry.ml | open Prelude.Ana
open Analyses
type spec_modules = { name : string
; dep : string list
; spec : (module MCPSpec)
; dom : (module Lattice.S)
; glob : (module Lattice.S)
; cont : (module Printable.S)
... | null | https://raw.githubusercontent.com/goblint/analyzer/fa837900d5e9bbda294f0fd58f9518bc831ce412/src/analyses/mCPRegistry.ml | ocaml | for default invariant, tag, ...
for default invariant, tag, ... | open Prelude.Ana
open Analyses
type spec_modules = { name : string
; dep : string list
; spec : (module MCPSpec)
; dom : (module Lattice.S)
; glob : (module Lattice.S)
; cont : (module Printable.S)
... |
6e8b74993a931cea8e2746b882f83a3efd5c1e07cf065aaaeb7e1f0f4cffb895 | mstksg/inCode | TestNumber.hs | " What operations on a number will make it a multiple of three ? "
--
-- To test/run:
-- $ ghci
-- λ: :i TestNumber.hs
λ : testNumber 9
--
-- -fun-with-monads-the-list-monadplus#testing-multiple-paths
import Control.Monad (guard)
isMultThree :: Int -> Bool
isMultThree a = a `mod` 3 == 0
testNumber :: Int -> [Str... | null | https://raw.githubusercontent.com/mstksg/inCode/e1f80a3dfd83eaa2b817dc922fd7f331cd1ece8a/code-samples/monad-plus/TestNumber.hs | haskell |
To test/run:
$ ghci
λ: :i TestNumber.hs
-fun-with-monads-the-list-monadplus#testing-multiple-paths | " What operations on a number will make it a multiple of three ? "
λ : testNumber 9
import Control.Monad (guard)
isMultThree :: Int -> Bool
isMultThree a = a `mod` 3 == 0
testNumber :: Int -> [String]
testNumber n = do
(f, fName) <- [ ((*2) , "times two")
, ((*3) , "time... |
cdf429c16742729263a0d0ff3b3fe5bd8e3b412357282956412c9f231228e1e0 | racket/web-server | bad-xexpr.rkt | #lang web-server/insta
(define (start initial-request)
(response/xexpr
`(html (head (title "Foo"))
(body (a ([href #f])
"Zog")))))
| null | https://raw.githubusercontent.com/racket/web-server/f718800b5b3f407f7935adf85dfa663c4bba1651/web-server-lib/web-server/default-web-root/htdocs/servlets/examples/bad-xexpr.rkt | racket | #lang web-server/insta
(define (start initial-request)
(response/xexpr
`(html (head (title "Foo"))
(body (a ([href #f])
"Zog")))))
| |
42231123ff678c6f861ea62f44f07fbfccfd8846e40d8d3478858233ab6425f6 | eWert-Online/OSnap | Zip.ml | type compression_method =
| Stored
| Deflated
type entry =
{ lastmod_time : int
; lastmod_date : int
; crc : int32
; compressed_size : int
; uncompressed_size : int
; file_offset : int64
; name : string
; extra : string
; comment : string
; compression_method : compression_method
; is_directo... | null | https://raw.githubusercontent.com/eWert-Online/OSnap/0f4fe2a96809e0f49217cb8e9f3db2d0326c2972/lib/OSnap_Browser/Zip.ml | ocaml | Reads a ZIP file from the given input channel and extracts information about its
central directory. Returns a tuple containing the number of entries in the central
directory, the size of the directory, the offset of the directory, and the comment
field from the directory.
Make room for "toread" extra bytes,... | type compression_method =
| Stored
| Deflated
type entry =
{ lastmod_time : int
; lastmod_date : int
; crc : int32
; compressed_size : int
; uncompressed_size : int
; file_offset : int64
; name : string
; extra : string
; comment : string
; compression_method : compression_method
; is_directo... |
1a63ac029e343c344b6c3e31c21912fe8da07bd1cb0c24d85c8e3b7b49e2844e | jiangpengnju/htdp2e | ex173.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname ex173) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ... | null | https://raw.githubusercontent.com/jiangpengnju/htdp2e/d41555519fbb378330f75c88141f72b00a9ab1d3/arbitrarily-large-data/more-on-lists/ex173.rkt | racket | about the language level of this file in a form that our tools can easily process.
Design a program that removes all articles from a text file. The program consumes
the name n of a file, reads the file, removes the articles, and writes the
result out to a file whose name is the result of concatenating "no-articles-... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname ex173) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
with For this exercise , an article is one of the following thr... |
6776b3c0a4eb797bc29241f8ce3ade535f6c0560e102018261ec14e55f7d03ef | Tim-ats-d/Postem-markup | enumerate.mli | (** High level oriented object numbering library. *)
module Base = Base
module Builtins = Builtins
| null | https://raw.githubusercontent.com/Tim-ats-d/Postem-markup/4e53b5a58d67e8f0a1d4e5d1867dede6974a7d27/src/common/enumerate/enumerate.mli | ocaml | * High level oriented object numbering library. |
module Base = Base
module Builtins = Builtins
|
044599f6b4128904a5f080d5b106bfacf1d5f839afe58852a73e2214c6eb573e | Bogdanp/rackcheck | unicode.rkt | #lang racket/base
(require "base.rkt"
"syntax.rkt")
(provide
gen:unicode
gen:unicode-letter
gen:unicode-mark
gen:unicode-number
gen:unicode-punctuation
gen:unicode-symbol
gen:unicode-separator)
(define chars-mu (make-semaphore 1))
(define chars
(make-hasheq))
(define (generate-chars)
(for/fold (... | null | https://raw.githubusercontent.com/Bogdanp/rackcheck/965d21fdeefdde356cd563f0d916b1fd8469ea6f/rackcheck-lib/gen/unicode.rkt | racket | #lang racket/base
(require "base.rkt"
"syntax.rkt")
(provide
gen:unicode
gen:unicode-letter
gen:unicode-mark
gen:unicode-number
gen:unicode-punctuation
gen:unicode-symbol
gen:unicode-separator)
(define chars-mu (make-semaphore 1))
(define chars
(make-hasheq))
(define (generate-chars)
(for/fold (... | |
137be54615e0edc8a4d1595aa5546375eef1c91b4986a6c6c5929b622bc89be9 | NoRedInk/haskell-libraries | Redis.hs | {-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -fno - warn - redundant - constraints #
-- | A simple Redis library providing high level access to Redis features we
use here at NoRedInk
--
As with our Ruby Redis access , we enforce working within a " namespace " .
module Redis
( -- * C... | null | https://raw.githubusercontent.com/NoRedInk/haskell-libraries/8a0ea7e1a80fc711810e5d225328826ac82393ea/nri-redis/src/Redis.hs | haskell | # LANGUAGE RankNTypes #
| A simple Redis library providing high level access to Redis features we
* Creating a redis handler
* Creating a redis API
* Creating redis queries
* Running Redis queries
| a API type can be used to enforce a mapping of keys to values.
without an API type, it can be easy to naiively se... | # LANGUAGE ScopedTypeVariables #
# OPTIONS_GHC -fno - warn - redundant - constraints #
use here at NoRedInk
As with our Ruby Redis access , we enforce working within a " namespace " .
module Redis
Real.handler,
Real.handlerAutoExtendExpire,
Internal.Handler,
Internal.HandlerAutoExtendExpire,
In... |
957e46e0006af816c25371cb1976a7fe6e551feb6b4dc851d504fdd1f085caef | solita/mnt-teet | environment.clj | (ns teet.environment
"Configuration from environment"
(:require [clojure.string :as str]
[clojure.java.io :as io]
[teet.log :as log]
[datomic.client.api :as d]
[cognitect.aws.client.api :as aws]
[teet.util.collection :as cu]
[teet.util.cache :a... | null | https://raw.githubusercontent.com/solita/mnt-teet/bb378bd8ab754f77349df5986e969cdc0bfa0bb6/app/backend/src/clj/teet/environment.clj | clojure | Replaced by parameter store value in actual env, value used for local env only
"road-information-view, component-view"
so we partition keys and invoke the operation for each batch | (ns teet.environment
"Configuration from environment"
(:require [clojure.string :as str]
[clojure.java.io :as io]
[teet.log :as log]
[datomic.client.api :as d]
[cognitect.aws.client.api :as aws]
[teet.util.collection :as cu]
[teet.util.cache :a... |
e21eba671fa65ad1e5d4ce2ffa3461730013dadbede18e3389f43c61970c2f80 | ghcjs/ghcjs-dom | SVGMatrix.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
module GHCJS.DOM.JSFFI.Generated.SVGMatrix
(js_multiply, multiply, multiply_, js_inverse, inverse, inverse_,
js_... | null | https://raw.githubusercontent.com/ghcjs/ghcjs-dom/749963557d878d866be2d0184079836f367dd0ea/ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGMatrix.hs | haskell | For HasCallStack compatibility
# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
| <-US/docs/Web/API/SVGMatrix.scaleNonUniform Mozilla SVGMatrix.scaleNonUniform documentation>
| <-US/docs/Web/API/SVGMatrix.scaleNonUniform Mozilla SVGMatrix.scaleNonUniform documentation>
| <-US/docs/Web/API/SVGMatrix.fl... | # LANGUAGE PatternSynonyms #
# LANGUAGE ForeignFunctionInterface #
# LANGUAGE JavaScriptFFI #
module GHCJS.DOM.JSFFI.Generated.SVGMatrix
(js_multiply, multiply, multiply_, js_inverse, inverse, inverse_,
js_translate, translate, translate_, js_scale, scale, scale_,
js_scaleNonUniform, scaleNonUnif... |
0cb87adcfa5be16f0241092c0927f642124162d0e639d74cec323a57059b7c48 | pixlsus/registry.gimp.org_static | sf-will-wood.scm | ;; Wood - This is a script for The GIMP to generate a wood grain pattern
Copyright ( C ) 2010
;;
;; This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or... | null | https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/sf-will-wood.scm | scheme | Wood - This is a script for The GIMP to generate a wood grain pattern
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
MERC... | Copyright ( C ) 2010
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
(define (script-fu-wood-grain img width height)
(let* ( (new-layer1 0) )
(... |
57752048c453c7b3b1f5009f7bb45ea503c08a07304d26c4d1754e605d0ac918 | adambard/bandito | bandito_spec.clj | (ns bandito.bandito_spec
(:use speclj.core)
(:require [bandito.core :as bandito]))
(defn view1 [req] "View #1")
(defn view2 [req] "View #2")
(defn view3 [req] "View #3")
(def viewmap {:view1 view1 :view2 view2 :view3 view3})
(defn reset-report [experiment views conversions]
(reset!
(:report experiment)
... | null | https://raw.githubusercontent.com/adambard/bandito/c76039f15b37c93e91dc27ec0473f56046cef6a8/spec/bandito/bandito_spec.clj | clojure | (ns bandito.bandito_spec
(:use speclj.core)
(:require [bandito.core :as bandito]))
(defn view1 [req] "View #1")
(defn view2 [req] "View #2")
(defn view3 [req] "View #3")
(def viewmap {:view1 view1 :view2 view2 :view3 view3})
(defn reset-report [experiment views conversions]
(reset!
(:report experiment)
... | |
0b5cf786615c2c228f0766e33e4c6372bf26f19cc49cf7507271bd2b7f4c4ddc | Clojure2D/clojure2d-examples | interval.clj | (ns rt4.the-rest-of-your-life.ch02b.interval
(:refer-clojure :exclude [empty size])
(:require [fastmath.core :as m]))
(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(m/use-primitive-operators)
(defprotocol IntervalProto
(contains [interval x]) ;; a <= x <= b
;; introduced due to the b... | null | https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/f47e1655902cc6bf1590aaecc144ac274ed3af66/src/rt4/the_rest_of_your_life/ch02b/interval.clj | clojure | a <= x <= b
introduced due to the bug in the book (in the time of writing this code), a < x <= b | (ns rt4.the-rest-of-your-life.ch02b.interval
(:refer-clojure :exclude [empty size])
(:require [fastmath.core :as m]))
(set! *warn-on-reflection* true)
(set! *unchecked-math* :warn-on-boxed)
(m/use-primitive-operators)
(defprotocol IntervalProto
(contains- [interval x])
(clamp [interval x])
(expand [interval... |
cecc17b69027d093783d75bcdabca85a6d4cd2ea87991de0b2b8a71d153e0b38 | saltysystems/enet | enet_api_SUITE.erl | -module(enet_api_SUITE).
-compile(export_all).
-include_lib("common_test/include/ct.hrl").
-include_lib("enet/include/enet.hrl").
suite() ->
[{timetrap, {seconds, 30}}].
init_per_suite(Config) ->
application:ensure_all_started(enet),
Config.
end_per_suite(_Config) ->
ok.
init_per_group(_GroupName, ... | null | https://raw.githubusercontent.com/saltysystems/enet/327f0cd4f408ce750027c736ab3cd021c0bb031b/test/enet_api_SUITE.erl | erlang | How long time is enough? (This is ugly) | -module(enet_api_SUITE).
-compile(export_all).
-include_lib("common_test/include/ct.hrl").
-include_lib("enet/include/enet.hrl").
suite() ->
[{timetrap, {seconds, 30}}].
init_per_suite(Config) ->
application:ensure_all_started(enet),
Config.
end_per_suite(_Config) ->
ok.
init_per_group(_GroupName, ... |
bf68d22a3a671bdb1e0d09b8caa8dc355ffb654fdc97e090667f9f63f73cd694 | mediachainlabs/bionic-eye | project.clj | (defproject bionic-eye "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[opencv/opencv "3.0.0"]
[opencv/opencv-native "3.0.0"]])
| null | https://raw.githubusercontent.com/mediachainlabs/bionic-eye/f1a3f5f7986e0f37c742a00df3716aa5a9fe8efe/project.clj | clojure | (defproject bionic-eye "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url "-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[opencv/opencv "3.0.0"]
[opencv/opencv-native "3.0.0"]])
| |
d22a446f01ef5a13303555c7f1aba989f551fa08d9eae3afb3a83d3d296dd7cb | bjorng/wings | wings_image.erl | %%
%% wings_image.erl --
%%
%% This module manages images.
%%
Copyright ( c ) 2003 - 2011
%%
%% See the file "license.terms" for information on usage and redistribution
%% of this file, and for a DISCLAIMER OF ALL WARRANTIES.
%%
%% $Id$
%%
-module(wings_image).
-export([from_file/1,new/2,new_temp/2,new... | null | https://raw.githubusercontent.com/bjorng/wings/1e2c2d62e93a98c263b167c7a41f8611e0ff08cd/src/wings_image.erl | erlang |
wings_image.erl --
This module manages images.
See the file "license.terms" for information on usage and redistribution
of this file, and for a DISCLAIMER OF ALL WARRANTIES.
$Id$
Debug (avoid unused warning)
Client API.
screenshot of just the viewport scene
Server implementation.
Reason... | Copyright ( c ) 2003 - 2011
-module(wings_image).
-export([from_file/1,new/2,new_temp/2,new_hidden/2, create/1,
rename/2,info/1,images/0,
screenshot/2,viewport_screenshot/1,
txid/1,bumpid/1, combid/1,
is_normalmap/1,
next_id/0,delete_older/1,delete_from/1,delete/1,
filter_images/1,
update/2,u... |
cbdaf07a3391d674c34ad0de187a4c650a68c441ba5aa1d34bfe904eea3b35fa | jhartikainen/hs-language-php | StringFunctions.hs | module StringFunctions where
import Tokenizer
import Evaluator
import Conversion
import Control.Monad.Error
import Data.Char
functions :: [(String, PHPFunctionType)]
functions = [ ("strlen", phpStrLen)
, ("strtoupper", phpStrToUpper)
, ("strtolower", phpStrToLower)]
Conversion of a PHPStrin... | null | https://raw.githubusercontent.com/jhartikainen/hs-language-php/23ba35cb6462f9c51bac73573b35bcd0b07bf1e9/StringFunctions.hs | haskell | Throws an arity error | module StringFunctions where
import Tokenizer
import Evaluator
import Conversion
import Control.Monad.Error
import Data.Char
functions :: [(String, PHPFunctionType)]
functions = [ ("strlen", phpStrLen)
, ("strtoupper", phpStrToUpper)
, ("strtolower", phpStrToLower)]
Conversion of a PHPStrin... |
114c40eb229044006521bffe9b0e25ec69adcd0ed7cb1ca41d02ccce83c178bf | brendanhay/amazonka | SpeakerSummary.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE RecordWildCards #
{-# LANGUAGE StrictData #-}
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
Derived fr... | null | https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-voice-id/gen/Amazonka/VoiceId/Types/SpeakerSummary.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE StrictData #
|
Stability : auto-generated
| Contains a summary of information about a speaker.
/See:/ 'newSpeakerSummary' smart constructor.
| A timestamp showing the speaker\'s creation time.
| The client-provided identifier for the speaker.
| The identifier of the d... | # LANGUAGE DeriveGeneric #
# LANGUAGE DuplicateRecordFields #
# LANGUAGE NamedFieldPuns #
# LANGUAGE RecordWildCards #
# LANGUAGE NoImplicitPrelude #
# OPTIONS_GHC -fno - warn - unused - imports #
# OPTIONS_GHC -fno - warn - unused - matches #
Derived from AWS service descriptions , licensed under Apache 2.0 .
Mo... |
91785581f67d3aff3091d442a61bbd9927825060ddf6407028346e8b675297aa | bomberstudios/mtasc | global.mli |
* Global - Mutable global variable
* Copyright ( C ) 2003
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at your opt... | null | https://raw.githubusercontent.com/bomberstudios/mtasc/d7c2441310248776aa89d60f9c8f98d539bfe8de/src/extlib-dev/global.mli | ocaml | * Mutable global variable.
Often in OCaml you want to have a global variable, which is mutable
and uninitialized when declared. You can use a ['a option ref] but
this is not very convenient. The Global module provides functions
to easily create and manipulate such variables.
* Abstract type of a global
* Re... |
* Global - Mutable global variable
* Copyright ( C ) 2003
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at your opt... |
1d36518fe12d0b2b4d86a386626f4dba783488dca6d22734bd0d832df8fa8f6e | footprintanalytics/footprint-web | env_var_dox.clj | (ns metabase.cmd.env-var-dox
"Code to generate docs for environment variables. You can generate
docs by running: `clojure -M:ee:run environment-variables-documentation`"
(:require [clojure.java.classpath :as classpath]
[clojure.java.io :as io]
[clojure.string :as str]
[clojure.... | null | https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/cmd/env_var_dox.clj | clojure | Formatting functions
Drop brackets used to create source code links
Filter functions
Ideally, we'd move off of this list completely, but not all environment variables
are defsettings. | (ns metabase.cmd.env-var-dox
"Code to generate docs for environment variables. You can generate
docs by running: `clojure -M:ee:run environment-variables-documentation`"
(:require [clojure.java.classpath :as classpath]
[clojure.java.io :as io]
[clojure.string :as str]
[clojure.... |
82e1e3fac254d720530b0530406e31022fd8be2f8bd4c07a8e1fe6d595c7fd73 | DHSProgram/DHS-Indicators-SPSS | MS_tables_MR.sps | * Encoding: windows-1252.
*****************************************************************************************************
Program: MS_tables_MR.sps
Purpose: produce tables for indicators
Author: Ivana Bjelic
Date last modified: Sept 29 2019 by Ivana Bjelic
*This do file will produce the following tables... | null | https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap04_MS/MS_tables_MR.sps | scheme | * Encoding: windows-1252.
*****************************************************************************************************
Program: MS_tables_MR.sps
Purpose: produce tables for indicators
Author: Ivana Bjelic
Date last modified: Sept 29 2019 by Ivana Bjelic
*This do file will produce the following tables... | |
e4400f2cf3ae6972faacfa4f881a5449151b4c29dcf40992ee3ca549e722c71e | Odie/gd-edit | qst_reader_test.clj | (ns gd-edit.qst-reader-test
(:require [clojure.java.io :as io]
[clojure.string :as str]
[gd-edit.io.qst :as sut]
[gd-edit.utils :as u]
[midje.sweet :refer :all]))
;;------------------------------------------------------------------------------
;; Try loading some test ... | null | https://raw.githubusercontent.com/Odie/gd-edit/abc91b6350ca0faa60e6b448cdfaddf056dafa04/test/gd_edit/qst_reader_test.clj | clojure | ------------------------------------------------------------------------------
Try loading some test quest files
------------------------------------------------------------------------------
----------------------------------------------------------------------------
There isn't a very good way to test qst reading a... | (ns gd-edit.qst-reader-test
(:require [clojure.java.io :as io]
[clojure.string :as str]
[gd-edit.io.qst :as sut]
[gd-edit.utils :as u]
[midje.sweet :refer :all]))
(let [test-file (-> (io/resource "quest-def-files")
(io/file "test.qst"))]
(let [qu... |
727a7353daf6ce9a33e8ae07bba574b3e0896c69e2f71e344fb79fced83031b1 | haskell-foundation/foundation | Hasher.hs | module Foundation.Hashing.Hasher
( Hasher(..)
) where
import Basement.Compat.Base
import Basement.IntegralConv
import Foundation.Array (UArray)
import qualified Basement.UArray as A
import Data.Bits
-- | Incremental Hashing state. Represent an hashing algorithm
--
-- th... | null | https://raw.githubusercontent.com/haskell-foundation/foundation/58568e9f5368170d272000ecf16ef64fb91d0732/foundation/Foundation/Hashing/Hasher.hs | haskell | | Incremental Hashing state. Represent an hashing algorithm
the base primitive of this class is `hashMix8`, append
mix a Word8 in the state
The class allow to define faster mixing function that works on
# MINIMAL hashNew, hashNewParam, hashMix8, hashEnd #
| Associate type when finalizing the state with 'hashEnd'... | module Foundation.Hashing.Hasher
( Hasher(..)
) where
import Basement.Compat.Base
import Basement.IntegralConv
import Foundation.Array (UArray)
import qualified Basement.UArray as A
import Data.Bits
bigger Word size and any unboxed array of any elements
class Hasher ... |
6ef47cce92f719602a4a2e2575c6b4e836ad2c3faadd41deb6934ef21b4b1e84 | RolfRolles/PandemicML | Kao.ml | (*
#use "c:\\paframework\\Projects\\Kao.ml";;
*)
(* A convenience function to create a default initial state. Once again, this
is for convenience, and you should override specific registers and memory
locations. *)
| null | https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/Projects/Kao.ml | ocaml |
#use "c:\\paframework\\Projects\\Kao.ml";;
A convenience function to create a default initial state. Once again, this
is for convenience, and you should override specific registers and memory
locations. | |
dc132afb5b147974d0804c9ed141085553ed7cda4596e62da7afbc50ea77536a | vincenthz/hs-cryptohash | MD5.hs | {-# LANGUAGE PackageImports #-}
-- |
-- Module : Crypto.Hash.MD5
-- License : BSD-style
Maintainer : < >
-- Stability : experimental
-- Portability : unknown
--
A module containing MD5 bindings
--
module Crypto.Hash.MD5
( Ctx(..)
-- * Incremental hashing Functions
: :
, update -- ... | null | https://raw.githubusercontent.com/vincenthz/hs-cryptohash/bc7993c104964a2a593265266730ebc78ef59774/Crypto/Hash/MD5.hs | haskell | # LANGUAGE PackageImports #
|
Module : Crypto.Hash.MD5
License : BSD-style
Stability : experimental
Portability : unknown
* Incremental hashing Functions
:: Ctx -> ByteString -> Ctx
:: Ctx -> [ByteString] -> Ctx
* Single Pass hashing
:: ByteString -> ByteString
:: ByteString -> ByteString
| MD5... |
Maintainer : < >
A module containing MD5 bindings
module Crypto.Hash.MD5
( Ctx(..)
: :
: : Ctx - > ByteString
) where
import Prelude hiding (init)
import qualified Data.ByteString.Lazy as L
import Data.ByteString (ByteString)
import Crypto.Hash.Internal (digestToByteString, digestToByteStringW... |
57a3584cf24a673019e0dbd4e61f939cb275d898df2cd01c6692dfacc95747ed | argp/bap | batSeq.ml |
* Copyright ( C ) 2009
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at your option ) any later version ,
* with th... | null | https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batSeq.ml | ocaml | This function could be used to eliminate a lot of duplicate code below...
let exceptionless_arg f s e =
try Some (f s)
with Invalid_argument e -> None
let make n e =
try Some (make n e)
with Invalid_argument "Seq.make" -> None
let init n e =
try Some (init n e)
with Invalid_argu... |
* Copyright ( C ) 2009
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation ; either
* version 2.1 of the License , or ( at your option ) any later version ,
* with th... |
13eca4bc428d42641b61b83faae621da13bb7f1e9a402de863da4da33e2c4742 | achirkin/vulkan | VK_AMD_device_coherent_memory.hs | # OPTIONS_HADDOCK not - home #
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE MagicHash #-}
# LANGUAGE PatternSynonyms #
{-# LANGUAGE Strict #-}
{-# LANGUAGE ViewPatterns #-}
module Graphics.Vulkan.Ext.VK_AMD_device_coherent_memory
* Vulkan extension : @VK_AMD_device_coherent_memory@
-- |
... | null | https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Ext/VK_AMD_device_coherent_memory.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE MagicHash #
# LANGUAGE Strict #
# LANGUAGE ViewPatterns #
|
supported: @vulkan@
type: @device@
Extension number: @230@
> #include "vk_platform.h" | # OPTIONS_HADDOCK not - home #
# LANGUAGE PatternSynonyms #
module Graphics.Vulkan.Ext.VK_AMD_device_coherent_memory
* Vulkan extension : @VK_AMD_device_coherent_memory@
contact : @tobski@
author :
module Graphics.Vulkan.Marshal, AHardwareBuffer(),
ANativeWindow(), CAMetalLayer(), VkBool32(..),... |
5e6b6f04a7947cae2dd62c1e72b5ab98dbcbcd828cf99a6b5561a9aed7e59648 | shayan-najd/NativeMetaprogramming | T12063.hs | module T12063 where
import T12063a
x :: S
x = undefined
| null | https://raw.githubusercontent.com/shayan-najd/NativeMetaprogramming/24e5f85990642d3f0b0044be4327b8f52fce2ba3/testsuite/tests/typecheck/should_fail/T12063.hs | haskell | module T12063 where
import T12063a
x :: S
x = undefined
| |
7145981f394d20211578d440d1bdf2e546e42b00f026f3e39e3e9c2e08289f50 | janestreet/core | debug.mli | (** Utilities for printing debug messages. *)
open! Import
(** [eprint message] prints to stderr [message], followed by a newline and flush. This is
the same as [prerr_endline]. *)
val eprint : string -> unit
(** [eprints message a sexp_of_a] prints to stderr [message] and [a] as a sexp, followed
by a newli... | null | https://raw.githubusercontent.com/janestreet/core/b0be1daa71b662bd38ef2bb406f7b3e70d63d05f/core/src/debug.mli | ocaml | * Utilities for printing debug messages.
* [eprint message] prints to stderr [message], followed by a newline and flush. This is
the same as [prerr_endline].
* [eprints message a sexp_of_a] prints to stderr [message] and [a] as a sexp, followed
by a newline and flush.
* [eprintf message arg1 ... argn] print... |
open! Import
val eprint : string -> unit
val eprints : string -> 'a -> ('a -> Sexp.t) -> unit
* [ sexp ] prints [ sexp ] to stderr , followed by a newline and a flush .
val eprint_s : Sexp.t -> unit
val eprintf : ('r, unit, string, unit) format4 -> 'r
* [ Debug . Make ] produces a [ debug ] function used to wrap... |
6679f1f17c0cbfb6364dad173f9c1b956489c751ae2c1ef15851cae4d3b31447 | NorfairKing/tickler | ListItemsSpec.hs | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
{-# LANGUAGE OverloadedStrings #-}
module Tickler.Server.Handler.ListItemsSpec
( spec,
)
where
import TestImport
import Tickler.API
import Tickler.API.Gen ()
import Tickler.Client
import Tickler.Server.TestUtils
spec :: Spec
spec =
withFreeTicklerServer $
... | null | https://raw.githubusercontent.com/NorfairKing/tickler/1b0c05dc1d32847596bd3ffe4f93d094e1f6382a/tickler-server-gen/test/Tickler/Server/Handler/ListItemsSpec.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
module Tickler.Server.Handler.ListItemsSpec
( spec,
)
where
import TestImport
import Tickler.API
import Tickler.API.Gen ()
import Tickler.Client
import Tickler.Server.TestUtils
spec :: Spec
spec =
withFreeTicklerServer $
describe "ListItems" $ do
i... |
7ddeff4c32a602b99d2851c99f92002f35cc6b0087173fe804ddc9db4a6b5fc6 | webyrd/mediKanren | api-query.rkt | #lang racket
(provide (all-defined-out))
(require "../common.rkt" json net/url)
(define (js-count js)
(cond ((pair? js) (foldl + 0 (map js-count js)))
((hash? js) (foldl + 0 (hash-map js (lambda (k v) (js-count v)))))
(else 1)))
BKB Pathway Provider ( currently uses a non - standard query pa... | null | https://raw.githubusercontent.com/webyrd/mediKanren/d5cd5dcb9beb0efe61da6036c58e5c6824c378b2/medikanren2/open-api/api-query.rkt | racket | {'query':
{'edges':
[{'id': 'e0', 'type': 'gene_to_disease_association', 'source_id': 'n0', 'target_id': 'n2'},
{'id': 'e1', 'type': 'gene_to_disease_association', 'source_id': 'n1', 'target_id': 'n2'},
'nodes':
[{'id': 'n0', 'type': 'Gene', 'curie': 'ENSEMBL:ENSG00000132155'},
... | #lang racket
(provide (all-defined-out))
(require "../common.rkt" json net/url)
(define (js-count js)
(cond ((pair? js) (foldl + 0 (map js-count js)))
((hash? js) (foldl + 0 (hash-map js (lambda (k v) (js-count v)))))
(else 1)))
BKB Pathway Provider ( currently uses a non - standard query pa... |
de98463220032a2f24e3e9d4c39809d3c73dc76dba7b246b26310ce5b76a7218 | ideas-edu/ideas | Symbol.hs | -----------------------------------------------------------------------------
Copyright 2019 , Ideas project team . This file is distributed under the
terms of the Apache License 2.0 . For more information , see the files
" LICENSE.txt " and " NOTICE.txt " , which are included in the distribution .
-------... | null | https://raw.githubusercontent.com/ideas-edu/ideas/f84907f92a8c407b7313f99e65a08d2646dc1565/src/Ideas/Text/OpenMath/Symbol.hs | haskell | ---------------------------------------------------------------------------
---------------------------------------------------------------------------
|
Maintainer :
Stability : provisional
---------------------------------------------------------------------------
* Constructor functions
* Selecto... | Copyright 2019 , Ideas project team . This file is distributed under the
terms of the Apache License 2.0 . For more information , see the files
" LICENSE.txt " and " NOTICE.txt " , which are included in the distribution .
Portability : portable ( depends on ghc )
module Ideas.Text.OpenMath.Symbol wh... |
c03a90e0ebe7888e4298a919dd6adbf8e54631be27fbd289882a133e71e494ff | binaryage/chromex | mojo_private.clj | (ns chromex.ext.mojo-private
"The chrome.mojoPrivate API provides access to the mojo modules.
* available since Chrome 42"
(:refer-clojure :only [defmacro defn apply declare meta let partial])
(:require [chromex.wrapgen :refer [gen-wrap-helper]]
[chromex.callgen :refer [gen-call-helper gen-tap-... | null | https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts_private/chromex/ext/mojo_private.clj | clojure | -- convenience ------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
-- API TABLE --------------------------------------------------------... | (ns chromex.ext.mojo-private
"The chrome.mojoPrivate API provides access to the mojo modules.
* available since Chrome 42"
(:refer-clojure :only [defmacro defn apply declare meta let partial])
(:require [chromex.wrapgen :refer [gen-wrap-helper]]
[chromex.callgen :refer [gen-call-helper gen-tap-... |
0df05b1c090c21be7a9fe8a3278771d116d7f12db4aa84b9489422a302d36a6a | hatsugai/SyncStitch | check.ml | open Printf
open Col
open IdCol
open TCol
type result =
ResultOk
| ResultExplore of Id.t
| ResultError
| ResultDeadlock of Unfold.deadlock_info
| ResultDivergence of Divergence.divergence_info
| ResultTraceViolation of Refinement.trace_violation_info
| ResultFailureViolation of Refinement.failure_violation_info
let... | null | https://raw.githubusercontent.com/hatsugai/SyncStitch/cbf0d28aa77a6f4579233ff64227fd7150e300e0/src/check.ml | ocaml | open Printf
open Col
open IdCol
open TCol
type result =
ResultOk
| ResultExplore of Id.t
| ResultError
| ResultDeadlock of Unfold.deadlock_info
| ResultDivergence of Divergence.divergence_info
| ResultTraceViolation of Refinement.trace_violation_info
| ResultFailureViolation of Refinement.failure_violation_info
let... | |
59a320104ff6074f4e6fbd2e9b96e0e6fed91b8c31c0f6b224603b0cf0524e5f | OpenBookStore/openbookstore | test-bookshops.lisp | (defpackage bookshops-test
(:shadow :search)
(:use :cl
:bookshops
:bookshops.models
:mito
:sxql
:prove
;; :parachute
)
(:import-from :bookshops-test.utils
:with-empty-db))
(in-package :bookshops-test)
(plan nil)
(subtest "Simple creation an... | null | https://raw.githubusercontent.com/OpenBookStore/openbookstore/13f16e5460ba7149c9f3108b7f3519e4614e4580/tests/test-bookshops.lisp | lisp | :parachute
contacts
places
Our fixtures work.
delete a list of objects
(finalize) ;; done in the last test file (test-contacts). | (defpackage bookshops-test
(:shadow :search)
(:use :cl
:bookshops
:bookshops.models
:mito
:sxql
:prove
)
(:import-from :bookshops-test.utils
:with-empty-db))
(in-package :bookshops-test)
(plan nil)
(subtest "Simple creation and access"
(let ((boo... |
ca53275bebad19fb2edf690d49d3276f12d24b71e63a4494bcad85eed6d75fba | janegca/htdp2e | Exercise-284-search-bst.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 Exercise-284-search-bst) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t cons... | null | https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/04-Intertwined%20Data/Exercise-284-search-bst.rkt | racket | about the language level of this file in a form that our tools can easily process.
Design search-bst. The function consumes a number n and a BST. If the tree
performs as few comparisons as necessary.
Compare searching in binary search trees with searching in sorted lists
– NONE
-- Example BST's
Number BST -... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-284-search-bst) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
Exercise 284 .
contains a node whose... |
c4bd4f13cb93a2be511f8b0092308e1e397561f100a2dcfce7afcab859126152 | pigworker/Syrup | Sub.hs | ------------------------------------------------------------------------------
----- -----
----- Sub: Type alias Substitution for Syrup -----
----- -----
----... | null | https://raw.githubusercontent.com/pigworker/Syrup/d59e3a9b65274075f14f19b48746182a773bafc5/SRC/Sub.hs | haskell | ----------------------------------------------------------------------------
--- -----
--- Sub: Type alias Substitution for Syrup -----
--- -----
------------... |
# LANGUAGE TupleSections #
module Syrup.SRC.Sub where
import Syrup.SRC.BigArray
import Syrup.SRC.Ty
import Syrup.SRC.Syn
import Data.Void
import Data.Maybe
class TySubst t where
tySubst :: TyEnv -> t String -> Either String (t Void)
instance TySubst TY' where
tySubst rho t = case t of
BIT -> pure BIT... |
b5da0ae8d475c980e92482ee3591777aa2ca316c212b61350918b38361b940a7 | alanz/ghc-exactprint | ExtraConstraintsWildcardInTypeSplice.hs | # LANGUAGE TemplateHaskell #
module ExtraConstraintsWildcardInTypeSplice where
import Language.Haskell.TH
metaType :: TypeQ
metaType = [t| _ => _ |]
| null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/ExtraConstraintsWildcardInTypeSplice.hs | haskell | # LANGUAGE TemplateHaskell #
module ExtraConstraintsWildcardInTypeSplice where
import Language.Haskell.TH
metaType :: TypeQ
metaType = [t| _ => _ |]
| |
71c886b1fdea515ccf2840834eb7f0ef39c653219b49955b9a15090caab2e148 | ulfsauer0815/ghmm | Config.hs | module Config
( Config(..)
, RepositoryConfig(..)
, BotConfig(..)
, Priority(..)
, BaseUrl(..)
, parseBaseUrl
, showBaseUrl
, loadConfig
) where
import Config.Env
import Config.Types
import Config.Yaml
import System.Log (Priority (..))
import ... | null | https://raw.githubusercontent.com/ulfsauer0815/ghmm/fc81948316156c67f6af9fe08a8a49472e9a42b8/src/Config.hs | haskell | ---------------------------------------------- | module Config
( Config(..)
, RepositoryConfig(..)
, BotConfig(..)
, Priority(..)
, BaseUrl(..)
, parseBaseUrl
, showBaseUrl
, loadConfig
) where
import Config.Env
import Config.Types
import Config.Yaml
import System.Log (Priority (..))
import ... |
91253786c56ae782de5cc58910009b1f3e9a49a9b79f3734dab57416e728e180 | dschrempf/mcmc | PhylogeneticLikelihood.hs | # LANGUAGE FlexibleInstances #
{-# LANGUAGE RankNTypes #-}
# OPTIONS_GHC -fno - warn - orphans #
-- |
-- Module : Main
-- Description : Approximate phylogenetic likelihood using normal distribution
Copyright : 2021
License : GPL-3.0 - or - later
--
-- Maintainer :
-- Stability : unstable... | null | https://raw.githubusercontent.com/dschrempf/mcmc/18e73fe1cbaea521edcf84a6d8bdaedac026987f/mcmc-examples/PhylogeneticLikelihood/PhylogeneticLikelihood.hs | haskell | # LANGUAGE RankNTypes #
|
Module : Main
Description : Approximate phylogenetic likelihood using normal distribution
Maintainer :
Stability : unstable
Portability : portable
Node (vertex) label.
Branch length.
The state space is a tree. We apply the branch length to the 'Distance'
data construc... | # LANGUAGE FlexibleInstances #
# OPTIONS_GHC -fno - warn - orphans #
Copyright : 2021
License : GPL-3.0 - or - later
Creation date : We d Jun 10 22:07:11 2020 .
module Main
( main,
)
where
import Algebra.Graph.Label
import Algebra.Graph.Labelled.AdjacencyMap
import Control.Monad
import Data.Ae... |
cd9973eca7149730c3401bb912de31059e6c204ee3feffa4f0ddaee4f737b2c2 | TorXakis/TorXakis | SetUnions.hs |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and University of Twente
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and University of Twente
See LICENSE at root directory of this repository.
-}
-----------------------------------... | null | https://raw.githubusercontent.com/TorXakis/TorXakis/038463824b3d358df6b6b3ff08732335b7dbdb53/sys/lpeutils/src/SetUnions.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD3
Maintainer :
Stability : experimental
--------------------------------------------------------------------------- |
TorXakis - Model Based Testing
Copyright ( c ) 2015 - 2017 TNO and University of Twente
See LICENSE at root directory of this repository .
TorXakis - Model Based Testing
Copyright (c) 2015-2017 TNO and University of Twente
See LICENSE at root directory of this repository.
-}
Module : SetUnions
Copy... |
2d77cedf073cbc2257314979fadc76a7a081efce5494606b729a9d2586f39903 | lisp-mirror/clpm | node.lisp | ;;;; Requirement resolution search node
;;;;
This software is part of CLPM . See README.org for more information . See
;;;; LICENSE for license information.
(uiop:define-package #:clpm/resolve/node
(:use #:cl
#:alexandria
#:clpm/groveler
#:clpm/log
#:clpm/source)
(:expor... | null | https://raw.githubusercontent.com/lisp-mirror/clpm/59359128104fe8f021d78c8bd4afb25147915451/clpm/resolve/node.lisp | lisp | Requirement resolution search node
LICENSE for license information.
anything. | This software is part of CLPM . See README.org for more information . See
(uiop:define-package #:clpm/resolve/node
(:use #:cl
#:alexandria
#:clpm/groveler
#:clpm/log
#:clpm/source)
(:export #:copy-node
#:node
#:node-activated-releases
#:n... |
05aacf966747ed2308415bf3e6164355c660efefc1078a330d18d744f5aadc54 | byorgey/diagrams-play | Fun2.hs | # LANGUAGE NoMonomorphismRestriction #
import Diagrams.Prelude
import Diagrams.Backend.Cairo.CmdLine
sq c = square 1 # fc c # lw 0
row n c1 c2 = map sq (cycle [c1,c2])
# take n
# hcat
board n c1 c2 = centerXY
. vcat
. take n . map (uncurry (row n))
... | null | https://raw.githubusercontent.com/byorgey/diagrams-play/5362c715db394be6848ff5de1bbe71178e5f173f/Fun2.hs | haskell | # LANGUAGE NoMonomorphismRestriction #
import Diagrams.Prelude
import Diagrams.Backend.Cairo.CmdLine
sq c = square 1 # fc c # lw 0
row n c1 c2 = map sq (cycle [c1,c2])
# take n
# hcat
board n c1 c2 = centerXY
. vcat
. take n . map (uncurry (row n))
... | |
089880867fca2dc6d42202cf41d20aa3c51fa9caad369e6d2087a38b49a0a3be | tweag/crem | Spec.hs | # OPTIONS_GHC -F #
# OPTIONS_GHC -Wno - prepositive - qualified - module #
| null | https://raw.githubusercontent.com/tweag/crem/125135a8ff9010e97e2453840d7ea29d6a2779f9/spec/Spec.hs | haskell | # OPTIONS_GHC -F #
# OPTIONS_GHC -Wno - prepositive - qualified - module #
| |
50f2eb5325ccfa2414ba716e6eeaea19a042a13c08d590a13041b554f7b26d0f | LauraVoinea/protocol-reengineering-implementation | pintan_expected.erl | -module(pintan_expected).
-behaviour(gen_statem).
-define(SERVER, ?MODULE).
-export([act_fail/1,
act_ok/1,
callback_mode/0,
init/1,
receive_pin/1,
receive_tan/1,
send_id/1,
start_link/0,
state1/3,
state2/3,
state3/3,
s... | null | https://raw.githubusercontent.com/LauraVoinea/protocol-reengineering-implementation/23a8d99fe1663b249c4c46fdf03fd24cc01c060c/src/examples/banking/pintan_expected.erl | erlang | assert pin
consume pay
assert tan | -module(pintan_expected).
-behaviour(gen_statem).
-define(SERVER, ?MODULE).
-export([act_fail/1,
act_ok/1,
callback_mode/0,
init/1,
receive_pin/1,
receive_tan/1,
send_id/1,
start_link/0,
state1/3,
state2/3,
state3/3,
s... |
324f346fcbb201c889e83ec39eeff84e10536784d19675e18716188796841e27 | mirage/cactus | integritytest.ml |
* Copyright ( c ) 2021 Tarides < >
* Copyright ( c ) 2021 < >
*
* 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 SO... | null | https://raw.githubusercontent.com/mirage/cactus/3eb2a4abee79bf8f20de5b4b12a57c3421c3e2fe/tests/integritytest.ml | ocaml | ("Recover", `Slow, test_recovery version 100_000); |
* Copyright ( c ) 2021 Tarides < >
* Copyright ( c ) 2021 < >
*
* 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 SO... |
9681a7a65403f7005b1a21612fe420d2091936621219858b178f43cbac445c04 | skanev/playground | 97-tests.scm | (require rackunit rackunit/text-ui)
(load "../97.scm")
(define (poly var . coeffs)
(define (to-term-list coeffs)
(cond ((null? coeffs) '())
((=zero? (car coeffs)) (to-term-list (cdr coeffs)))
(else (cons (list (- (length coeffs) 1) (car coeffs))
(to-term-list (cdr coeffs... | null | https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/02/tests/97-tests.scm | scheme | (require rackunit rackunit/text-ui)
(load "../97.scm")
(define (poly var . coeffs)
(define (to-term-list coeffs)
(cond ((null? coeffs) '())
((=zero? (car coeffs)) (to-term-list (cdr coeffs)))
(else (cons (list (- (length coeffs) 1) (car coeffs))
(to-term-list (cdr coeffs... | |
8e94cb521c506830b75ccf0fa88018ac9ceb36c1fb5d4fd7bc8af55a62d95c81 | martinodb/bobtailbot | user.clj | (ns user
(:require [clojure.tools.namespace.repl :as tnr]))
(def testing "this is a test")
(defn refresh [] (tnr/refresh))
usage in " repl " : > ( u / refresh )
| null | https://raw.githubusercontent.com/martinodb/bobtailbot/c7d5a2bc31bebfdbe68f5cbae1f3b7ecc2d4d8d9/dev/user.clj | clojure | (ns user
(:require [clojure.tools.namespace.repl :as tnr]))
(def testing "this is a test")
(defn refresh [] (tnr/refresh))
usage in " repl " : > ( u / refresh )
| |
eaac7e96d503be3ef5cefbcc3ac76af82276311edd093e5ef93ab3fc67c05134 | jimrthy/frereth | root.cljs | (ns tracker.ui.root
(:require
[tracker.model.session :as session]
[clojure.string :as str]
[com.fulcrologic.fulcro.dom :as dom :refer [div ul li p h3 button]]
[com.fulcrologic.fulcro.dom.html-entities :as ent]
[com.fulcrologic.fulcro.dom.events :as evt]
[com.fulcrologic.fulcro.application :as ap... | null | https://raw.githubusercontent.com/jimrthy/frereth/e1c4a5c031355ff1ff3bb60741eb03dff2377e1d/apps/racing/sonic-forces/tracker/src/main/tracker/ui/root.cljs | clojure | c.l. state for security
Stop bubbling (would trigger the menu toggle) | (ns tracker.ui.root
(:require
[tracker.model.session :as session]
[clojure.string :as str]
[com.fulcrologic.fulcro.dom :as dom :refer [div ul li p h3 button]]
[com.fulcrologic.fulcro.dom.html-entities :as ent]
[com.fulcrologic.fulcro.dom.events :as evt]
[com.fulcrologic.fulcro.application :as ap... |
65cf9a45d9243af0d6d9bfc149e58c566dcb2a4f3dddee804e0020a37e8c333b | protojure/lib | core.clj | Copyright © 2019 State Street Bank and Trust Company . All rights reserved
Copyright © 2019 - 2022 Manetu , Inc. All rights reserved
;;
SPDX - License - Identifier : Apache-2.0
(ns protojure.pedestal.core
"A [Pedestal](/) [chain provider](-providers) compatible with simultaneously serving both [GRPC-HTTP2]... | null | https://raw.githubusercontent.com/protojure/lib/6be6119f8c298e515a86d63b56a8253e50455622/modules/grpc-server/src/protojure/pedestal/core.clj | clojure |
resize if smaller
hard-flush in a loop until the channel is drained
Set Response Headers
Start asynchronous output
start http listener when no ssl-context is set
or if ssl-port is set in addition to port
listens on port unless ssl-port is set | Copyright © 2019 State Street Bank and Trust Company . All rights reserved
Copyright © 2019 - 2022 Manetu , Inc. All rights reserved
SPDX - License - Identifier : Apache-2.0
(ns protojure.pedestal.core
"A [Pedestal](/) [chain provider](-providers) compatible with simultaneously serving both [GRPC-HTTP2](-H... |
efb24ce20922b11658fe55675f3b9343b0255c0b682c43c766bf007626f340c3 | jdan/ocaml-web-framework | template.ml | let rec tag name ?(attrs=[]) children =
let rec string_of_attr_list = function
| [] -> ""
| (key, value) :: rest ->
(Printf.sprintf " %s=\"%s\"" key value) ^
(string_of_attr_list rest)
in
Printf.sprintf "<%s%s>%s</%s>"
name
(string_of_attr_list attrs)
(String.concat "" children)
... | null | https://raw.githubusercontent.com/jdan/ocaml-web-framework/bfa2f240a9aecc4edbf02ab87a73cfd20da482a4/src/template.ml | ocaml | let rec tag name ?(attrs=[]) children =
let rec string_of_attr_list = function
| [] -> ""
| (key, value) :: rest ->
(Printf.sprintf " %s=\"%s\"" key value) ^
(string_of_attr_list rest)
in
Printf.sprintf "<%s%s>%s</%s>"
name
(string_of_attr_list attrs)
(String.concat "" children)
... | |
0bc56cceb380f9802412185ac94869b9c4e5470a0057ad37b9c2a119219d7280 | ygmpkk/house | Stable.hs | module Stable (module Foreign.StablePtr, module System.Mem.StableName) where
import Foreign.StablePtr
import System.Mem.StableName
| null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/hslibs/lang/Stable.hs | haskell | module Stable (module Foreign.StablePtr, module System.Mem.StableName) where
import Foreign.StablePtr
import System.Mem.StableName
| |
794d8ffb90f358e3f6e000ac8daea7547bbbf180083c1fbc4dbfb954824aac34 | emqx/emqx | emqx_sys_SUITE.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2019 - 2023 EMQ Technologies Co. , Ltd. 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.
%% You may obtain a copy o... | null | https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx/test/emqx_sys_SUITE.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 ... | Copyright ( c ) 2019 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqx_sys_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
-include_lib("euni... |
503d15e1c818bf2dc18c85a2a9ff3ec552c916119900c76784772a302d00e786 | ragkousism/Guix-on-Hurd | conkeror.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2014 < >
Copyright © 2014 , 2015 < >
Copyright © 2016 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
... | null | https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/conkeror.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2014 < >
Copyright © 2014 , 2015 < >
Copyright © 2016 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (gnu packages conkeror)
#:use-module ... |
a70ab18906c3adc996c72340b1b168e597b513f3291c43e3de7671cfcb09e2ce | monadbobo/ocaml-core | extra_fields.ml | open Core.Std
exception Not_a_record_type of Sexp.t with sexp
let fields sexp =
match sexp with
| Sexp.Atom _ -> raise (Not_a_record_type sexp)
| Sexp.List l ->
List.map l ~f:(function
| Sexp.List (Sexp.Atom field::_) -> field
| _ -> raise (Not_a_record_type sexp)
)
module Make (M:Sexpable)... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/extra_fields.ml | ocaml | open Core.Std
exception Not_a_record_type of Sexp.t with sexp
let fields sexp =
match sexp with
| Sexp.Atom _ -> raise (Not_a_record_type sexp)
| Sexp.List l ->
List.map l ~f:(function
| Sexp.List (Sexp.Atom field::_) -> field
| _ -> raise (Not_a_record_type sexp)
)
module Make (M:Sexpable)... | |
855769395ce4820decea4ffc8591d6a7ba3c45c01bd4558334e6b7646b734618 | igorhvr/bedlam | srfi-60.scm | (module srfi-60-defs
(logand
logxor
lognot
logior
logcount
bitwise-if
logtest
integer-length
log2-binary-factors
logbit?
copy-bit
bit-field
copy-bit-field
arithmetic-shift
rotate-bit-field
reverse-bit-field
integer->list
list->integer
booleans->integer)
(... | null | https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/sisc/sisc-1.16.6/full-src/sisc/src/sisc/libs/srfi/srfi-60.scm | scheme | (module srfi-60-defs
(logand
logxor
lognot
logior
logcount
bitwise-if
logtest
integer-length
log2-binary-factors
logbit?
copy-bit
bit-field
copy-bit-field
arithmetic-shift
rotate-bit-field
reverse-bit-field
integer->list
list->integer
booleans->integer)
(... | |
5c5612eaeee623d37c8daf0eca2ab732f27ddab647f9833dd512d463e49bfc49 | sgbj/MaximaSharp | dznrm2.lisp | ;;; Compiled by f2cl version:
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ... | null | https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/blas/dznrm2.lisp | lisp | Compiled by f2cl version:
Using Lisp CMU Common Lisp 20d (20D Unicode)
Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
(:coerce-assigns :as-needed) (:array-type ':array)
(:array-slicing t) (:declare-common nil)
(:float-format double-float)) | ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ "
" f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ "
" f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ "
" f2cl6.l , v 1d5cbacbb... |
5717093a9273afc78fa3caa18e0f0131873b75e2961865a2b9056353d8e3de4a | JoeDralliam/Ocsfml | ocsfmlAudio.ml | open OcsfmlSystem
type 'a reference = 'a
let do_if f = function | Some x -> f x | None -> ()
module Listener =
struct
external set_global_volume : float -> unit =
"Listener_setGlobalVolume__impl"
external get_global_volume : unit -> float =
"Listener_getGlobalVolume__impl"
external se... | null | https://raw.githubusercontent.com/JoeDralliam/Ocsfml/e1bf50665aa34dea4e4d249bf73ab0036b3731fb/OcsfmlAudio/ocsfmlAudio.ml | ocaml | constructor copy | open OcsfmlSystem
type 'a reference = 'a
let do_if f = function | Some x -> f x | None -> ()
module Listener =
struct
external set_global_volume : float -> unit =
"Listener_setGlobalVolume__impl"
external get_global_volume : unit -> float =
"Listener_getGlobalVolume__impl"
external se... |
f2cde1e14cfe49278e29672b456d2a0c566185c86e033093d5d7f1a979431b64 | tezos/tezos-mirror | mikhailsky_to_michelson.ml | (*****************************************************************************)
(* *)
(* Open Source License *)
Copyright ( c ) 2021 Nomadic Labs , < >
(* ... | null | https://raw.githubusercontent.com/tezos/tezos-mirror/32c9ef7c4ad3c6ec14e16ab3d75e353266925fb1/src/proto_alpha/lib_benchmark/mikhailsky_to_michelson.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 A... |
41692ceff25845912cc4d00f6c8776d55ca9e97bedd90cbe60d569024652f9e9 | rmloveland/scheme48-0.53 | bug.scm | Copyright ( c ) 1993 - 1999 by and . See file COPYING .
(define (church n)
(let loop ((application 'x) (n n))
(if (zero? n)
`(lambda (f) (lambda (x) ,application))
(loop `(f ,application) (- n 1)))))
(define c10000 (church 10000))
(define (f)
(eval c10000 (interaction-environment)))
| null | https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/scheme/vm/bug.scm | scheme | Copyright ( c ) 1993 - 1999 by and . See file COPYING .
(define (church n)
(let loop ((application 'x) (n n))
(if (zero? n)
`(lambda (f) (lambda (x) ,application))
(loop `(f ,application) (- n 1)))))
(define c10000 (church 10000))
(define (f)
(eval c10000 (interaction-environment)))
| |
739d97aeb79434dde4d65b37f25283cd4d7560b1bc623535c1b7e2b1ff465aeb | ekmett/intervals | Interval.hs | -----------------------------------------------------------------------------
-- |
-- Module : Numeric.Interval
Copyright : ( c ) 2010 - 2014
-- License : BSD3
-- Maintainer :
-- Stability : experimental
-- Portability : DeriveDataTypeable
--
-- Interval arithmetic
---------------------------... | null | https://raw.githubusercontent.com/ekmett/intervals/9a274528fabddc483dc33fb93ca6572e8f6f2f1e/src/Numeric/Interval.hs | haskell | ---------------------------------------------------------------------------
|
Module : Numeric.Interval
License : BSD3
Maintainer :
Stability : experimental
Portability : DeriveDataTypeable
Interval arithmetic
--------------------------------------------------------------------------- | Copyright : ( c ) 2010 - 2014
module Numeric.Interval
( Interval
, (...)
, (+/-)
, interval
, whole
, empty
, null
, singleton
, member
, notMember
, elem
, notElem
, inf
, sup
, singular
, width
, midpoint
, intersection
, hull
, bisect
, bisectIntegral
, magnitude
... |
ec44097c4e8aa25aa72662ae455f1cbdc380e272d1dbe2b51101ea0259223b45 | moby/datakit | cI_live_log.ml | open Lwt.Infix
open Astring
module Log = CI_utils.Log
type t = {
title : string;
buffer : Buffer.t;
cond : unit Lwt_condition.t;
(* Fires when [buffer] changes *)
mutable finished : bool;
mutable pending : string list;
Stack : first item is current reason .
mutable pending_updated : unit Lwt.t;
(* Re... | null | https://raw.githubusercontent.com/moby/datakit/e047e55a2dfa3aaec02398d7d7699f4f7afd2b47/ci/src/cI_live_log.ml | ocaml | Fires when [buffer] changes
Resolves when [pending] changes.
Branch -> current live log | open Lwt.Infix
open Astring
module Log = CI_utils.Log
type t = {
title : string;
buffer : Buffer.t;
cond : unit Lwt_condition.t;
mutable finished : bool;
mutable pending : string list;
Stack : first item is current reason .
mutable pending_updated : unit Lwt.t;
mutable pending_waker : unit Lwt.u;
bra... |
586a4947b32436e60a7b1205ae31fb0e799336df685f4ada5d47a242617d6d8b | btmura/b1 | Google.hs | module B1.Data.Price.Google
( getGooglePrices
, parseGoogleCsv
) where
import Control.Exception
import Data.Either
import Data.Maybe
import Data.Time
import Network.HTTP hiding (close)
import Network.Stream hiding (close)
import System.IO
import System.Locale
import B1.Data.Price
import B1.Data.String.Utils
... | null | https://raw.githubusercontent.com/btmura/b1/9cf0514ba1e03e9f4da05be9231acde07b199864/src/B1/Data/Price/Google.hs | haskell | Returns a tuple of Nothing and a list of error messages if tthere was a
network problem or parsing issue.
Exposed only for testing purposes. | module B1.Data.Price.Google
( getGooglePrices
, parseGoogleCsv
) where
import Control.Exception
import Data.Either
import Data.Maybe
import Data.Time
import Network.HTTP hiding (close)
import Network.Stream hiding (close)
import System.IO
import System.Locale
import B1.Data.Price
import B1.Data.String.Utils
... |
f9d3aa903f4da43ef5e690bea15c3856460dcd06ed2c245e266a1a4d19dceecb | emillon/ocaml-noise | infix.ml | open OUnit2
let (>:=) s f =
s >:: f s
| null | https://raw.githubusercontent.com/emillon/ocaml-noise/d5a3e0f634fba1f8d948a91c70a1dad6470722b0/test/helpers/infix.ml | ocaml | open OUnit2
let (>:=) s f =
s >:: f s
| |
294240dc325ab5f69838e780abb23c981630eaf88ec63cefee6e3bb351fc2c89 | BumblebeeBat/FlyingFox | channel_manager_feeder.erl | -module(channel_manager_feeder).
-behaviour(gen_server).
-export([start_link/0,code_change/3,handle_call/3,handle_cast/2,handle_info/2,init/1,terminate/2, recieve/3,recieve_account/3,channel/1,recieve_locked_payment/4,spend_locked_payment/4,spend/2,new_channel/3,create_unlock_hash/2,spend_account/2,read_channel/1,unloc... | null | https://raw.githubusercontent.com/BumblebeeBat/FlyingFox/0fa039cd2394b08b1a85559f9392086c6be47fa6/src/channels/channel_manager_feeder.erl | erlang | error here.
this ensures that they didn't adjust anything else in the channel besides the amount and nonce and bet.
BH = hash:doit(BetCode),
channel_block_tx:add,
this ensures that they didn't adjust anything else in the channel besides the amount and nonce.
we need to verify that the other party signed it.
Pub2 = acco... | -module(channel_manager_feeder).
-behaviour(gen_server).
-export([start_link/0,code_change/3,handle_call/3,handle_cast/2,handle_info/2,init/1,terminate/2, recieve/3,recieve_account/3,channel/1,recieve_locked_payment/4,spend_locked_payment/4,spend/2,new_channel/3,create_unlock_hash/2,spend_account/2,read_channel/1,unloc... |
ceaf4c5eca79defc73dde67ea2c47b9bfaad3e01bc4c964c6a2d3da68a70cd79 | LPCIC/matita | predefined_virtuals.ml | let logic = "logic";;
let symbol = "symbols";;
let fraction = "fractions";;
let letter = "letters";;
let asciiart = "ASCII art";;
let equivalence = "equivalence relations";;
let order = "order relations";;
let circle = "circles";;
let square = "squares";;
let triangle = "triangles";;
let arrow = "arrows";;
let set = "s... | null | https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/matita/predefined_virtuals.ml | ocaml | {{{ logics
}}}
{{{ symbols
}}}
{{{ fraction
}}}
{{{ letters
}}}
{{{ ASCII art
}}}
{{{ equivalence
}}}
{{{ order
}}}
{{{ circles
}}}
{{{ squares
}}}
{{{ triangles
}}}
{{{ arrows
}}}
{{{ set operations
}}}
{{{ math
}}}
{{{ spaces
}}}
}}}
{{{ Missing font
}}} | let logic = "logic";;
let symbol = "symbols";;
let fraction = "fractions";;
let letter = "letters";;
let asciiart = "ASCII art";;
let equivalence = "equivalence relations";;
let order = "order relations";;
let circle = "circles";;
let square = "squares";;
let triangle = "triangles";;
let arrow = "arrows";;
let set = "s... |
7b7fce84ed50756dfa176ea7a1758f52a3b707848ed558f519ed135ce324351a | pokepay/cl-fluent-logger | logger.lisp | (uiop:define-package #:cl-fluent-logger/logger
(:use #:cl)
(:shadow #:log
#:trace
#:debug
#:warn
#:error)
(:import-from #:cl-fluent-logger/logger/level
#:with-log-level)
(:use-reexport #:cl-fluent-logger/logger/base
#:cl-fluent-logger/... | null | https://raw.githubusercontent.com/pokepay/cl-fluent-logger/688e4fbf8762b9fa7c4d2f72fb524a9f1c3236ac/logger.lisp | lisp | (uiop:define-package #:cl-fluent-logger/logger
(:use #:cl)
(:shadow #:log
#:trace
#:debug
#:warn
#:error)
(:import-from #:cl-fluent-logger/logger/level
#:with-log-level)
(:use-reexport #:cl-fluent-logger/logger/base
#:cl-fluent-logger/... | |
833f30683ee8dc0fa38704cb5a921af2ccf350939ae02e9a5df5f28591ba3e17 | rtoy/cmucl | vm.lisp | ;;; -*- Package: MIPS -*-
;;;
;;; **********************************************************************
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
;;;
(ext:file-comment
"$Header: src/compiler/mips/vm.lisp $")
;;;
;;; ***... | null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/compiler/mips/vm.lisp | lisp | -*- Package: MIPS -*-
**********************************************************************
**********************************************************************
This file contains the VM definition for the MIPS R2000 and the new
object format.
Registers
eval-when
First C argument reg.
First saved reg
... | This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
(ext:file-comment
"$Header: src/compiler/mips/vm.lisp $")
Written by and .
(in-package "MIPS")
(eval-when (compile eval)
(defmacro defreg (name offset)
(let ((offset... |
7101ca318b753c871773f86638c26bb1b31a0a0b72f99d0512cd6b68a891e4bb | lehins/primal | Foldable.hs | # LANGUAGE CPP #
{-# LANGUAGE ConstraintKinds #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE FunctionalDependencies #
# LANGUAGE PolyKinds #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
#if __GLASGOW_HASKELL__ >= 801
# LANGUAGE UndecidableSuperClasses #
#endif
-- |
-- Module ... | null | https://raw.githubusercontent.com/lehins/primal/c620bfd4f2a6475f1c12183fbe8138cf29ab1dad/primal-container/src/Primal/Container/Foldable.hs | haskell | # LANGUAGE ConstraintKinds #
# LANGUAGE RankNTypes #
|
Module : Primal.Container.Foldable
License : BSD3
Stability : experimental
Portability : non-portable
| Corresponds to a `pure` from applicative
| Corresponds to a Functor
app :: Lift f b => [a -> b] -> f a -> f b
instance KeyPFunctor [] Int a ... | # LANGUAGE CPP #
# LANGUAGE FlexibleInstances #
# LANGUAGE FunctionalDependencies #
# LANGUAGE PolyKinds #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
#if __GLASGOW_HASKELL__ >= 801
# LANGUAGE UndecidableSuperClasses #
#endif
Copyright : ( c ) 2020
Maintainer : < >
module Primal.Container.... |
fa3275c8544822bb3e9216225b18bc34d8d33d40c45b3f1639e8b1cb2acb21de | tlehman/sicp-exercises | ex-1.04.scm | ; Exercise 1.4: Observe that our model of computation allows for combinations whose operators are compound expressions.
(define (a-plus-abs-b a b)
((if (> b 0) + -)) a b)
; => a-plus-abs-b
(a-plus-abs-b 24 -7) ; FIX THIS
| null | https://raw.githubusercontent.com/tlehman/sicp-exercises/57151ec07d09a98318e91c83b6eacaa49361d156/ex-1.04.scm | scheme | Exercise 1.4: Observe that our model of computation allows for combinations whose operators are compound expressions.
=> a-plus-abs-b
FIX THIS |
(define (a-plus-abs-b a b)
((if (> b 0) + -)) a b)
|
b68dffa240b0b1257ab64543afeb129f915948f4a5714095941fefe3f734b5b7 | nionita/Barbarossa | Params.hs | # LANGUAGE TemplateHaskell #
Disclaimer : it 's a nightmare to work with Template Haskell ! !
-- It feels like programming in machine code in the 50's
-- But in this case it must be, otherwise the changes of the parameter records
-- when trying different parameters and weights is too time consuming
module Struct.Pa... | null | https://raw.githubusercontent.com/nionita/Barbarossa/f6168ea77508f75256fb23ce0afc89c5a5fe928d/Struct/Params.hs | haskell | It feels like programming in machine code in the 50's
But in this case it must be, otherwise the changes of the parameter records
when trying different parameters and weights is too time consuming
The configurable parameters we use
The format is: (paramName, defaultValue)
All parameters have type Int
The configu... | # LANGUAGE TemplateHaskell #
Disclaimer : it 's a nightmare to work with Template Haskell ! !
module Struct.Params (
genEvalParams,
genEvalWeights
) where
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
type EvalParamSpec = (String, Integer)
type EvalWeightSpec = (String, (Integer, Integer))... |
e604a9fa477505bfdef73e37fd678cba44d236e148d18ef4cd785b10f12d624c | 8c6794b6/guile-tjit | t-br-if-u64-=-scm-01.scm | ;;; Simple root trace with `br-if-u64-=-scm'. Last bytecode in recorded
;;; trace gets out from the loop.
(define (loop n)
(let lp ((i n) (acc 0))
(if (= 0 i)
acc
(lp (- i 1) (+ acc 1)))))
(do ((i 0 (+ i 1))
(acc '() (cons (loop 3) acc)))
((= i 65) acc))
| null | https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/test-suite/tjit/t-br-if-u64-%3D-scm-01.scm | scheme | Simple root trace with `br-if-u64-=-scm'. Last bytecode in recorded
trace gets out from the loop. |
(define (loop n)
(let lp ((i n) (acc 0))
(if (= 0 i)
acc
(lp (- i 1) (+ acc 1)))))
(do ((i 0 (+ i 1))
(acc '() (cons (loop 3) acc)))
((= i 65) acc))
|
bc7ecf85788f380e5f6744b685c8b34a0819ede082c09248987c43d9385246d2 | aziem/binaryninja-ocaml | test_bindings.ml | open Binaryninja
let _ =
let i = get_build_id () in
Printf.printf "Build Id: %d\n" i
| null | https://raw.githubusercontent.com/aziem/binaryninja-ocaml/5773d791ebb717816b8c47863bce8122f39764b4/test_bindings.ml | ocaml | open Binaryninja
let _ =
let i = get_build_id () in
Printf.printf "Build Id: %d\n" i
| |
56337b05e1ce6aef0d4c2193c0bc36992ecd7d17d8f96c6bd145a484003a6da8 | fulcro-legacy/semantic-ui-wrapper | ui_menu_item.cljs | (ns fulcrologic.semantic-ui.collections.menu.ui-menu-item
(:require
[fulcrologic.semantic-ui.factory-helpers :as h]
["semantic-ui-react/dist/commonjs/collections/Menu/MenuItem" :default MenuItem]))
(def ui-menu-item
"A menu can contain an item.
Props:
- active (bool): A menu item can be active.
... | null | https://raw.githubusercontent.com/fulcro-legacy/semantic-ui-wrapper/b0473480ddfff18496df086bf506099ac897f18f/semantic-ui-wrappers-shadow/src/main/fulcrologic/semantic_ui/collections/menu/ui_menu_item.cljs | clojure | (ns fulcrologic.semantic-ui.collections.menu.ui-menu-item
(:require
[fulcrologic.semantic-ui.factory-helpers :as h]
["semantic-ui-react/dist/commonjs/collections/Menu/MenuItem" :default MenuItem]))
(def ui-menu-item
"A menu can contain an item.
Props:
- active (bool): A menu item can be active.
... | |
11b5c2f016330b66d999be90eb70dc1adacffa9f53f7e74c0cab9e15cceb709c | facebookarchive/pfff | comment_js.mli |
val strip_comment_marks: string -> string
| null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_js/analyze/comment_js.mli | ocaml |
val strip_comment_marks: string -> string
| |
f89a9195e8afc9bf4c2f0ec458fcd351b2b927b39ce859f0b5820c038f925676 | nikodemus/SBCL | float.impure.lisp | ;;;; This file is for floating-point-related tests which have side
effects ( e.g. executing DEFUN ) .
This software is part of the SBCL system . See the README file for
;;;; more information.
;;;;
While most of SBCL is derived from the CMU CL system , the test
;;;; files (like this one) were written from scratch... | null | https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/tests/float.impure.lisp | lisp | This file is for floating-point-related tests which have side
more information.
files (like this one) were written from scratch after the fork
This software is in the public domain and is provided with
absolutely no warranty. See the COPYING and CREDITS files for
more information.
present after all, presumabl... | effects ( e.g. executing DEFUN ) .
This software is part of the SBCL system . See the README file for
While most of SBCL is derived from the CMU CL system , the test
from CMU CL .
(cl:in-package :cl-user)
reported a CMU CL bug on 26
Jun 2000 . This is the test case for it .
The bug was listed as " 3... |
00969a54c691fc29e55ddb54b74bf413bdd3eb9f2a3e545608be4194b3119080 | jhb563/MazeGame | Main.hs | module Main where
import qualified Runner as R
main :: IO ()
main = R.main
| null | https://raw.githubusercontent.com/jhb563/MazeGame/c921e77ff24cd6c2185e97808e2d54abf7c334c4/app/Main.hs | haskell | module Main where
import qualified Runner as R
main :: IO ()
main = R.main
| |
85f78a4b1d12d3326cf868a7b5d5a07177ae463edb3cd9f6ab6eb547c23ea92e | yawaramin/re-web | RequestTest.ml | module H = Httpaf
module Reqd = struct
module Body = struct
type _ t = {
chunks : Bigstringaf.t H.IOVec.t array;
length : int;
mutable index : int;
mutable curr : Bigstringaf.t H.IOVec.t option;
}
We need to reuse the same buffer when we call [ on_read ] because
that 's ho... | null | https://raw.githubusercontent.com/yawaramin/re-web/3a49aec5fad939ea917a4b46e7a50f9aa23f1450/ReWebTest/RequestTest.ml | ocaml | module H = Httpaf
module Reqd = struct
module Body = struct
type _ t = {
chunks : Bigstringaf.t H.IOVec.t array;
length : int;
mutable index : int;
mutable curr : Bigstringaf.t H.IOVec.t option;
}
We need to reuse the same buffer when we call [ on_read ] because
that 's ho... | |
35739de8853af85fc493cd9a69aa5b759c200e9b4d486d0269ab4f1d81da6b68 | obsidiansystems/obelisk | Configs.hs | # LANGUAGE CPP #
# LANGUAGE DataKinds #
# LANGUAGE DefaultSignatures #
# LANGUAGE DeriveFunctor #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
# LANGUAGE TypeFamilies... | null | https://raw.githubusercontent.com/obsidiansystems/obelisk/e7ccc91806b94b424b086bf75087a0a5fd3ff0b5/lib/executable-config/lookup/src/Obelisk/Configs.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE RankNTypes # | # LANGUAGE CPP #
# LANGUAGE DataKinds #
# LANGUAGE DefaultSignatures #
# LANGUAGE DeriveFunctor #
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE TypeFamilies #
# LANGUAGE UndecidableInstances #
module Obelisk.Configs
(... |
04622cd0a61144852a395efea408801e140ae61b42d26cc01a9464f1e488ae62 | BillHallahan/G2 | MiniLib.hs | {-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
module MiniLib where
import G2.QuasiQuotes.G2Rep
import Data.Data
addTwo :: Int -> Int
addTwo = (+ 2)
bothTrue :: Bool -> Bool -> Bool
bothTrue = (&&)
data InfList a = InfCons a (InfList a) deriving (Show, Data)
$(d... | null | https://raw.githubusercontent.com/BillHallahan/G2/55b9fb7881da7923b78c1c4d202d9f2d0a629d63/tests_quasiquote/MiniLib.hs | haskell | # LANGUAGE DeriveDataTypeable # | # LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
module MiniLib where
import G2.QuasiQuotes.G2Rep
import Data.Data
addTwo :: Int -> Int
addTwo = (+ 2)
bothTrue :: Bool -> Bool -> Bool
bothTrue = (&&)
data InfList a = InfCons a (InfList a) deriving (Show, Data)
$(derivingG2Rep ''InfList)
repeatInf :... |
465efcd50a1a73ddd7fe18aa1cfde5e5cb21e8dfd8feb2baeef36aacb1716f6f | fpco/ide-backend | Bench.hs | -----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Bench
Copyright : 2011
--
-- Maintainer :
-- Portability : portable
--
-- This is the entry point into running the benchmarks in a built
-- package. It performs the \"@.\/setup bench@\" ... | null | https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.14.0/Distribution/Simple/Bench.hs | haskell | ---------------------------------------------------------------------------
|
Module : Distribution.Simple.Bench
Maintainer :
Portability : portable
This is the entry point into running the benchmarks in a built
package. It performs the \"@.\/setup bench@\" action. It runs
benchmarks designated in th... | Copyright : 2011
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are
met :
* Redistributions of source code must retain the above copyright
notice , this list of conditions and... |
b46ca04fef26b5de18280e57ceb2381dd0e315ed768e2083177eedd73702c87c | Elzair/nazghul | vehicles.scm |
;;---------------------------------------------------------------
;; utility stuff
(define (vehicle-broadside-facing vehicle dx dy)
(let ((facing (kern-obj-get-facing vehicle)))
(cond ((< dx 0) ;;west side
(if (equal? facing NORTH) NORTH SOUTH))
((> dx 0) ;;east side
(if (equal? facing SOUTH) SOUTH N... | null | https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/template/lib/vehicles.scm | scheme | ---------------------------------------------------------------
utility stuff
west side
east side
north side
south side
--------------------------------------------------------------------------
vehicle objects: wheel
---------------------------------------------------------------------------
boarding ramp handling
... |
(define (vehicle-broadside-facing vehicle dx dy)
(let ((facing (kern-obj-get-facing vehicle)))
(if (equal? facing NORTH) NORTH SOUTH))
(if (equal? facing SOUTH) SOUTH NORTH))
(if (equal? facing WEST) WEST EAST))
(if (equal? facing EAST) EAST WEST))
(else facing)
)))
(define (map-paste-cent... |
f1253054ff034c25cca7e7dc29345efaf7a24eda3a0d1e2a0714922e4cfdad9f | alanz/ghc-exactprint | T10846.hs | {-# LANGUAGE ImplicitParams, PartialTypeSignatures #-}
module Main where
import GHC.Stack
f1 :: (?loc :: CallStack) => String
f1 = show $ map (srcLocStartLine . snd) $ getCallStack ?loc
f2 :: (?loc :: CallStack) => _
f2 = show $ map (srcLocStartLine . snd) $ getCallStack ?loc
f3 :: (?loc :: CallStack, _) => String... | null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/T10846.hs | haskell | # LANGUAGE ImplicitParams, PartialTypeSignatures # |
module Main where
import GHC.Stack
f1 :: (?loc :: CallStack) => String
f1 = show $ map (srcLocStartLine . snd) $ getCallStack ?loc
f2 :: (?loc :: CallStack) => _
f2 = show $ map (srcLocStartLine . snd) $ getCallStack ?loc
f3 :: (?loc :: CallStack, _) => String
f3 = show $ map (srcLocStartLine . snd) $ getCallStack... |
bf3447cbad9d11247d2d2e2d37c4dea6a76fa756e997fe571e93cbb9883cf469 | ntoronto/pict3d | camera-ray-trace.rkt | #lang typed/racket
(require pict3d)
(printf "starting...~n")
(current-pict3d-width 512)
(current-pict3d-height 512)
(define pict
(with-color (rgba "salmon" 0.5)
(scale
(combine
(for/list : (Listof Pict3D) ([_ (in-range 2000)])
(cube (pos (- (random) 0.5) (- (random) 0.5) (- (random) 0.5)) ... | null | https://raw.githubusercontent.com/ntoronto/pict3d/09283c9d930c63b6a6a3f2caa43e029222091bdb/pict3d/tests/camera-ray-trace.rkt | racket | #lang typed/racket
(require pict3d)
(printf "starting...~n")
(current-pict3d-width 512)
(current-pict3d-height 512)
(define pict
(with-color (rgba "salmon" 0.5)
(scale
(combine
(for/list : (Listof Pict3D) ([_ (in-range 2000)])
(cube (pos (- (random) 0.5) (- (random) 0.5) (- (random) 0.5)) ... | |
6d9a9fd57e3f64bf408739d159fea74991442794026b0385af39d3140c1b950f | dlesl/erqwest | erqwest_sup.erl | @private
-module(erqwest_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(SERVER, ?MODULE).
start_link() ->
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
init([]) ->
SupFlags = #{strategy => one_for_all},
ChildSpecs = [#{ id => erqwest_runtime
... | null | https://raw.githubusercontent.com/dlesl/erqwest/1d5907b23ca8e9afa9e9885532634e7f063ff1a1/src/erqwest_sup.erl | erlang | @private
-module(erqwest_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(SERVER, ?MODULE).
start_link() ->
supervisor:start_link({local, ?SERVER}, ?MODULE, []).
init([]) ->
SupFlags = #{strategy => one_for_all},
ChildSpecs = [#{ id => erqwest_runtime
... | |
d84732e21de6eec1e96b693391be09ea748811ae2dc6fb1a2deecf283435f20a | thierry-martinez/metapp | metapp.mli | [%%metadir "version_info/.metapp_version_info.objs/byte/"]
[%%metaload "version_info/metapp_version_info.cmxs"]
val ppxlib_version : int * int * int
val ast_version : int * int
(** {1 String constant destructor} *)
type string_constant = {
s : string;
loc : Location.t;
delim : string option;
}
val de... | null | https://raw.githubusercontent.com/thierry-martinez/metapp/f8b200cf21d860edbc47c1842269f1a09d7a29b4/metapp/metapp.mli | ocaml | * {1 String constant destructor}
* {1 Longident }
* {1 Constructing function application}
* [destruct_type_variant type_kind] returns a pair [Some (ctors, repr)]
if [type_kind] is a [Type_variant], for compatibility between OCaml 4.13
and older versions of OCaml.
* [destruct_tpackage type_desc] returns a ... | [%%metadir "version_info/.metapp_version_info.objs/byte/"]
[%%metaload "version_info/metapp_version_info.cmxs"]
val ppxlib_version : int * int * int
val ast_version : int * int
type string_constant = {
s : string;
loc : Location.t;
delim : string option;
}
val destruct_string_constant : Ppxlib.consta... |
250d3300a0079a72e3e99c12fcaf2dfde0cdd0e7d88fb1d242b519bfe414b514 | linuxscout/festival-tts-arabic-voices | tree_f0.scm | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ;;;
Carnegie Mellon University ; ; ;
and and ; ; ;
Copyright ( c ) 1998 - 2000 ... | null | https://raw.githubusercontent.com/linuxscout/festival-tts-arabic-voices/ab9fe26120bf6cf3079afa2484b985cfd6ecd56a/voices/ara_norm_ziad_hts/festvox/tree_f0.scm | scheme |
;;;
; ;
; ;
; ;
; ;
;;;
Permission is hereby granted, free of charge, to use and distribute ;;;
this software and its documentation without restriction, including ;;;
withou... | To use this train three CART trees that predict start , mid and
end values F0 ( cf . the features syl_startpitch , syl_midpitch and
( set !
( set ! )
' ( ( target_f0_mean 110 ) ( target_f0_std 10 )
( model_f0_mean 170 ) ( model_f0_std 40 ) ) )
(define (Int_Targets_Tree utt)
"(Int_Targets_Tree ut... |
90ded4e63995ac7d3e1f44046659c6cf83a0943fcff6b4cdd5869310588335b2 | alainfrisch/mtt | bdd.ml | module Make(X : Hashtbl.HashedType) = struct
type 'a _var =
{ mutable level: int;
mutable unique: 'a;
mutable data: X.t;
}
type 'a _node =
| Zero
| One
| Var of 'a _var * 'a _node * 'a _node * 'a _node * int
type 'a _node_var =
{ mutable v: 'a _var;
mutable p: 'a _node;... | null | https://raw.githubusercontent.com/alainfrisch/mtt/b94f64aa216b1d16b6c02e434bf20c18e6869a78/bdd.ml | ocaml | Book-keeping of variables
Reordering | module Make(X : Hashtbl.HashedType) = struct
type 'a _var =
{ mutable level: int;
mutable unique: 'a;
mutable data: X.t;
}
type 'a _node =
| Zero
| One
| Var of 'a _var * 'a _node * 'a _node * 'a _node * int
type 'a _node_var =
{ mutable v: 'a _var;
mutable p: 'a _node;... |
d39b3144813412e03d47736070c649d3b7377dbc5cedc493a77456b0c36c0d9b | lambda-study-group/sicp | anabastos.clj |
Prove que fib that ) é o inteiro mais perto de φ^n/√5 , onde φ = ( 1 + √5)/2 .
ψ = ( 1 - √5)/2 .
; E φ = (1 + √5)/2 pois é a goden ratio
; Fib(n) = (φ^n - ψ^n) / √5
Fib(0 ) = ( φ^0 - ψ^0)/sqrt(5 ) = 0
Fib(1 ) = ( φ^1 - ψ^1)/sqrt(5 ) = 1
Fib(2 ) = Fib(0 ) + Fib(1 ) = 1
Para n = 0
; (φn - ψn) / √5 = (... | null | https://raw.githubusercontent.com/lambda-study-group/sicp/70819ea6156dfc4e49a2d174dff62c6527c8f024/1.2-ProceduresandtheProcessesTheyGenerate/ex-1.13/anabastos.clj | clojure | E φ = (1 + √5)/2 pois é a goden ratio
Fib(n) = (φ^n - ψ^n) / √5
(φn - ψn) / √5 = (φ0 - ψ0) / √5
= 0 / √5
(φn - ψn) / √5 = (φ1 - ψ1) / √5
= ((1 + √5)/2) - ((1 - √5)/2) / √5
= (√5/2 + √5/2) / √5
= √5 / √5
(φn - ψn) / √5 = (φ2 - ψ2) / √5
= ((φ + 1) - (ψ + 1)) / √5
= ((1 + √5)/2 - (1 - √5)/2) / √5
= ((1 + √5) -... |
Prove que fib that ) é o inteiro mais perto de φ^n/√5 , onde φ = ( 1 + √5)/2 .
ψ = ( 1 - √5)/2 .
Fib(0 ) = ( φ^0 - ψ^0)/sqrt(5 ) = 0
Fib(1 ) = ( φ^1 - ψ^1)/sqrt(5 ) = 1
Fib(2 ) = Fib(0 ) + Fib(1 ) = 1
Para n = 0
= ( 1 - 1 ) / √5
= 0
Para n = 1
= ( 1/2 + √5/2 ) - ( 1/2 - √5/2 ) / √5
= ( 1/... |
34350491568b3f19ec768401ebf1f997809471cb2a49aedd719a6d6677b0932f | janegca/htdp2e | Exercise-165-EditorTextFn.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname Exercise-165-EditorTextFn) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2... | null | https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/02-ArbitrarilyLargeData/Exercise-165-EditorTextFn.rkt | racket | about the language level of this file in a form that our tools can easily process.
Design editor-text. That is, use the standard design recipe and do not fall
back on implode.
Lo1s -> Image
| The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-abbr-reader.ss" "lang")((modname Exercise-165-EditorTextFn) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp... |
e7aaadfab5b534807d6afbd4f055599625fb1df77f3bc65e80d141042261c5db | ecraven/r7rs-benchmarks | Picrin-postlude.scm | (define (this-scheme-implementation-name) (string-append "picrin-" "unknown"))
| null | https://raw.githubusercontent.com/ecraven/r7rs-benchmarks/cd6ea87a6fa7d20424449b5d08dcd5bf990f26e4/src/Picrin-postlude.scm | scheme | (define (this-scheme-implementation-name) (string-append "picrin-" "unknown"))
| |
0ee909a09a6953bb72d70af1ca98c8725667c4bb1b6993ee49fee1be830de2d8 | semperos/clj-webdriver | core_driver.clj | # # Core WebDriver - related Functions # #
;; This namespace provides the implementations for the following
;; protocols:
;; * IDriver
;; * ITargetLocator
*
;; * IOptions
*
(in-ns 'webdriver.core)
(defn ^Actions new-actions
"Create a new Actions object given a `WebDriver`"
[^WebDriver wd]
(Actions... | null | https://raw.githubusercontent.com/semperos/clj-webdriver/508eb95cb6ad8a5838ff0772b2a5852dc802dde1/src/webdriver/core_driver.clj | clojure | This namespace provides the implementations for the following
protocols:
* IDriver
* ITargetLocator
* IOptions
Basic Functions
get back to a window that is open before proceeding
Window and Frame Handling
reflection warnings
Alert dialogs
(authenticate-using [wd username password]
Find Functions
TODO: r... | # # Core WebDriver - related Functions # #
*
*
(in-ns 'webdriver.core)
(defn ^Actions new-actions
"Create a new Actions object given a `WebDriver`"
[^WebDriver wd]
(Actions. wd))
Needed by window and target locator implementations in core_driver and core_window
(defn ^WebDriver$Window window*
"R... |
86d224dfecbd2bf56fb60ad1a0385154e884a06b61038d0078f60eac8e68e043 | tek/proteome | Project.hs | module Proteome.Test.Project where
import Path (parseRelDir, (</>))
import Path.IO (ensureDir)
import Polysemy.Test (TestError (TestError))
import Ribosome (Settings)
import qualified Ribosome.Settings as Settings
import Proteome.Data.ProjectConfig (ProjectConfig (ProjectConfig))
import Proteome.Data.ProjectLang (Pro... | null | https://raw.githubusercontent.com/tek/proteome/019928432bd5f5ba87d35eab19e341a5c98b1bba/packages/proteome/test/Proteome/Test/Project.hs | haskell | module Proteome.Test.Project where
import Path (parseRelDir, (</>))
import Path.IO (ensureDir)
import Polysemy.Test (TestError (TestError))
import Ribosome (Settings)
import qualified Ribosome.Settings as Settings
import Proteome.Data.ProjectConfig (ProjectConfig (ProjectConfig))
import Proteome.Data.ProjectLang (Pro... | |
1d2e8b07be1a36229a3b0cb75d72e73ca037b3c48bff7880739f05600734df8b | ocaml-batteries-team/batteries-included | pa_optcomp.ml |
* pa_optcomp.ml
* -------------
* Copyright : ( c ) 2008 , < >
* Licence : BSD3
*
* This file is a part of optcomp .
* pa_optcomp.ml
* -------------
* Copyright : (c) 2008, Jeremie Dimino <>
* Licence : BSD3
*
* This file is a part of optcomp.
*)
open Camlp4.Sig
open Camlp4.PreCast
... | null | https://raw.githubusercontent.com/ocaml-batteries-team/batteries-included/f143ef5ec583d87d538b8f06f06d046d64555e90/build/optcomp/pa_optcomp.ml | ocaml | Subset of supported caml types
Subset of supported caml values
An identifier. It is either a lower or a upper identifier.
Quotations are evaluated by the token filters, but are expansed
after. Evaluated quotations are kept in this table, which quotation
id to to values:
+-------------+
| Environment |... |
* pa_optcomp.ml
* -------------
* Copyright : ( c ) 2008 , < >
* Licence : BSD3
*
* This file is a part of optcomp .
* pa_optcomp.ml
* -------------
* Copyright : (c) 2008, Jeremie Dimino <>
* Licence : BSD3
*
* This file is a part of optcomp.
*)
open Camlp4.Sig
open Camlp4.PreCast
... |
bbdfa266bb3af5119aacbbff6b740e8e0d7ed39b0d3410eb32d967e17d09b4f2 | ollef/sixty | Syntax.hs | {-# LANGUAGE DeriveAnyClass #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE GeneralizedNewtypeDeriving #
module ClosureConverted.Syntax where
import Boxity
import Data.OrderedHashMap (OrderedHashMap)
import Data.Persist
import Index
import Literal (Literal)
import Name (Name)
import qualifie... | null | https://raw.githubusercontent.com/ollef/sixty/2582551f3c12f84489afb961b800f0d7cfa74844/src/ClosureConverted/Syntax.hs | haskell | # LANGUAGE DeriveAnyClass #
-----------------------
---------------
------------------------------------
----------------------------------------
-----------------------
---------------
------------------------------------
----------------------------------------
| Saturated constructor application
^ Type paramet... | # LANGUAGE DeriveGeneric #
# LANGUAGE DerivingStrategies #
# LANGUAGE GeneralizedNewtypeDeriving #
module ClosureConverted.Syntax where
import Boxity
import Data.OrderedHashMap (OrderedHashMap)
import Data.Persist
import Index
import Literal (Literal)
import Name (Name)
import qualified Name
import Protolude hiding (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.