_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
a62c03d3639986e5d8c1803eabf1b115d0bdb656d3729077050c890d744d782f
huiqing/percept2
sim_code_v5.erl
Copyright ( c ) 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...
null
https://raw.githubusercontent.com/huiqing/percept2/fa796a730d6727210a71f185e6a39a960c2dcb90/case_studies/par_sim_code/sim_code_v5.erl
erlang
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 the following disclaimer. %% Redi...
Copyright ( c ) 2011 , , IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR Incremental similar code detection for Erlang programs . @private -module(sim_code_v5). -export([sim_code_detection/8,sim_code_de...
39a6c8a2dbb847022349ef0cfcbabd45b46652cbcc8b40e6aaf9b01755d10714
JunSuzukiJapan/cl-reex
to-list-test.lisp
(defpackage to-list-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip) ) (in-package :to-list-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 1) ;; blah blah blah. (defparameter logger (make-instan...
null
https://raw.githubusercontent.com/JunSuzukiJapan/cl-reex/94928c7949c235b41902138d9e4a5654b92d67eb/tests/to-list-test.lisp
lisp
blah blah blah.
(defpackage to-list-test (:use :cl :cl-reex :cl-reex-test.logger :prove) (:shadowing-import-from :cl-reex :skip) ) (in-package :to-list-test) NOTE : To run this test file , execute ` ( asdf : test - system : cl - reex ) ' in your Lisp . (plan 1) (defparameter logger (make-instance 'logger)) (defp...
e1ebf9ee606defa53b63c3c198970f9ff08d1540c532e0bdb1fafbc3b58ddfe1
lukaszcz/coqhammer
utils.ml
let runline s = let ic = Unix.open_process_in s in let ret = input_line ic in close_in ic; ret;; let uniq l = let rec uniq2 acc = function x::(y::_ as t) -> uniq2 (if Stdlib.compare x y = 0 then acc else x :: acc) t | [x] -> List.rev (x :: acc) | [] -> List.rev acc in uniq2 [] l;; let rec un...
null
https://raw.githubusercontent.com/lukaszcz/coqhammer/fe83fb0eaf33f56da9ea1983114d0d94a2c41b9b/eval/tools/utils.ml
ocaml
Generate the (inclusive) sequence [l, .., u].
let runline s = let ic = Unix.open_process_in s in let ret = input_line ic in close_in ic; ret;; let uniq l = let rec uniq2 acc = function x::(y::_ as t) -> uniq2 (if Stdlib.compare x y = 0 then acc else x :: acc) t | [x] -> List.rev (x :: acc) | [] -> List.rev acc in uniq2 [] l;; let rec un...
873cf276a80b5f6ae80e96628061e281752e4e98bfa9d6a3bf4b3da80b383e2d
fukamachi/lack
directory.lisp
(defpackage #:lack.app.directory (:use #:cl) (:import-from #:lack.app.file #:lack-app-file #:should-handle #:serve-path) (:import-from #:cl-ppcre #:regex-replace-all) (:import-from #:trivial-rfc-1123 #:as-rfc-1123) (:import-from #...
null
https://raw.githubusercontent.com/fukamachi/lack/105da5efc22045470fcdce5558d8fe8be8ba4a1d/src/app/directory.lisp
lisp
") } } } } text-align: center; } }
(defpackage #:lack.app.directory (:use #:cl) (:import-from #:lack.app.file #:lack-app-file #:should-handle #:serve-path) (:import-from #:cl-ppcre #:regex-replace-all) (:import-from #:trivial-rfc-1123 #:as-rfc-1123) (:import-from #...
650a859f92ce69a5a5ac65b8804be035f7ec3679567a6bfba5aa2814cdc54b70
ocaml/oasis
BaseDoc.mli
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/src/base/BaseDoc.mli
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
3a1e6e2112b0358cdf899928e3c4fa6ec1667e33f504860fa443b38fc90947d5
plumatic/grab-bag
core.cljs
(ns cljs-request.core (:require [clojure.string :as str] [dommy.core :as dommy :include-macros true])) (defn map->query-string "{:foo \"bar\" :lorem \"ipsum\"} => foo=bar&lorem=ipsum" [query-params] (->> query-params (sort-by first) (map (fn [[k v]] (str (name k) "=" (js/enc...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/lib/cljs-request/src/cljs_request/core.cljs
clojure
(ns cljs-request.core (:require [clojure.string :as str] [dommy.core :as dommy :include-macros true])) (defn map->query-string "{:foo \"bar\" :lorem \"ipsum\"} => foo=bar&lorem=ipsum" [query-params] (->> query-params (sort-by first) (map (fn [[k v]] (str (name k) "=" (js/enc...
7f184b68c0a2550e78a33e11fbc7e1a92eedf8506781af6877dd01639e1dfd15
ndmitchell/catch
MakeHite.hs
module MakeHite(makeHite) where import System.Directory import System.Environment import System.Cmd import List import Monad import Data.Char import General.General import Hite import Core import Convert.CoreHite import qualified Data.Set as Set when_ cond action = when cond (action >> return ()) take a haskel...
null
https://raw.githubusercontent.com/ndmitchell/catch/5d834416a27b4df3f7ce7830c4757d4505aaf96e/src/MakeHite.hs
haskell
now do a transitive closure on the depandancies (requires-data, requires-code) (core-location, cache-location) from a module, find the FilePath * Figure out which file it is that you require return the folder, and the fully qualified file * tracking , through import statements * Dependancy tracking, through i...
module MakeHite(makeHite) where import System.Directory import System.Environment import System.Cmd import List import Monad import Data.Char import General.General import Hite import Core import Convert.CoreHite import qualified Data.Set as Set when_ cond action = when cond (action >> return ()) take a haskel...
ca5fd7c064539b4b4172872fb273138981e7348d94f69fcdb8a2b8999ff0ce9a
prikhi/ksp-automation
Automation.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} | Utilities for automating Kerbal Space Program using the mod . TODO Functionality : * Parameterized Tasks(set LKO Apoapsis ) * Function to warp to & execute an manually placed maneuver node * Function to match the inclination of a target * Transf...
null
https://raw.githubusercontent.com/prikhi/ksp-automation/6934c694feced0ba7d8f571712319e6b34e2e309/src/KSP/Automation.hs
haskell
# LANGUAGE OverloadedStrings # | A function used by Automation programs to log messages. | Log Messages to StdOut Sub-Orbital ^ Subject Title --> Run Count TODO: Warp to ~40km TODO: Align Retrograde Execute Maneuver | A Program for executing a maneuver node. A basic wrapper around the `executeManeuver` sub-rou...
# LANGUAGE LambdaCase # | Utilities for automating Kerbal Space Program using the mod . TODO Functionality : * Parameterized Tasks(set LKO Apoapsis ) * Function to warp to & execute an manually placed maneuver node * Function to match the inclination of a target * Transfer * Rendezvous * Docking * L...
e59d299a8ee2b0f32d4a639d1f2e2afa155cd6bf3b2d5ce8c344b4bd8fa445e0
monstasat/janus-ocaml
plugin_types.ml
open Js_of_ocaml open Webrtc type typ = | Audiobridge | Echotest | Recordplay | Sip | Streaming | Textroom | Videocall | Videoroom | Voicemail | Custom of string let typ_to_string : typ -> string = function | Sip -> "janus.plugin.sip" | Textroom -> "janus.plugin.textroom" | Echotest -> "janu...
null
https://raw.githubusercontent.com/monstasat/janus-ocaml/b68e8b23a95dead8bd6921206ad8c1fe64e25e30/lib/jsoo/plugin_types.ml
ocaml
Callbacks
open Js_of_ocaml open Webrtc type typ = | Audiobridge | Echotest | Recordplay | Sip | Streaming | Textroom | Videocall | Videoroom | Voicemail | Custom of string let typ_to_string : typ -> string = function | Sip -> "janus.plugin.sip" | Textroom -> "janus.plugin.textroom" | Echotest -> "janu...
80c720f5aeb266563827c0c44dfe0f76a2a0a5062812dd5a22af3795727beeeb
cram2/cram
roots-multi.lisp
;;; Multivariate roots. 2008 - 01 - 12 12:49:08 Time - stamp : < 2012 - 01 - 13 12:01:17EST roots-multi.lisp > ;; Copyright 2008 , 2009 , 2011 Distributed under the terms of the GNU General Public License ;; ;; This program is free software: you can redistribute it and/or modify it under ...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_3rdparty/gsll/src/solve-minimize-fit/roots-multi.lisp
lisp
Multivariate roots. This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR...
2008 - 01 - 12 12:49:08 Time - stamp : < 2012 - 01 - 13 12:01:17EST roots-multi.lisp > Copyright 2008 , 2009 , 2011 Distributed under the terms of the GNU General Public License it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the L...
0f4c0f2d19bb96d044f34f4db61e144395c6cb1dc205f7a2b60420383267acf6
glutamate/bugpan
Statement.hs
module Statement where import Expr import EvalM import Data . HashTable as H import Data.Map.Strict as H import Control.Concurrent import Numbers data Stmt = InitSig String E | Env String E | SigUpdateRule String E | EventAddRule String E | SigSnkConn String String | ...
null
https://raw.githubusercontent.com/glutamate/bugpan/d0983152f5afce306049262cba296df00e52264b/Statement.hs
haskell
| SigSwitch String [(String, E)] E
module Statement where import Expr import EvalM import Data . HashTable as H import Data.Map.Strict as H import Control.Concurrent import Numbers data Stmt = InitSig String E | Env String E | SigUpdateRule String E | EventAddRule String E | SigSnkConn String String | ...
ff632673bea2d63c924c750a1d88f671607af22536625f06aa0606dae840816e
onyx-platform/onyx
project.clj
(defproject org.onyxplatform/onyx "0.14.6" :description "Distributed, masterless, high performance, fault tolerant data processing for Clojure" :url "-platform/onyx" :license {:name "Eclipse Public License" :url "-v10.html"} :repositories {"snapshots" {:url "" :username...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/project.clj
clojure
:branch "compatibility" :release-branch "master" :release-script "scripts/release.sh" :skip-compatibility? true :merge "master"} :branch "compatibility" :release-branch "master" :release-script "scripts/release.sh" :merge "master"} :branch "compatibility" :release-branch "master" :release-script ...
(defproject org.onyxplatform/onyx "0.14.6" :description "Distributed, masterless, high performance, fault tolerant data processing for Clojure" :url "-platform/onyx" :license {:name "Eclipse Public License" :url "-v10.html"} :repositories {"snapshots" {:url "" :username...
aafa9b2e7c0acaae4ed8fab27b28f4da48fed005811fd1ad53f785e192394f04
dfinity/motoko
resolve_import.ml
open Mo_def open Ic module Traversals = Mo_frontend.Traversals This module traverses the syntax tree . For each ` import ` statement , it looks at the given relative path and tries to resolve it to a full path ( where full means relative to the current working directory , so that source directories do not cree...
null
https://raw.githubusercontent.com/dfinity/motoko/399b8e8b0b47890388cd38ee0ace7638d9092b1a/src/pipeline/resolve_import.ml
ocaml
The Set variant is used in the pipeline module Resolve the argument to --package. Resolve the argument to --actor-alias. Check eagerly for well-formedness
open Mo_def open Ic module Traversals = Mo_frontend.Traversals This module traverses the syntax tree . For each ` import ` statement , it looks at the given relative path and tries to resolve it to a full path ( where full means relative to the current working directory , so that source directories do not cree...
65643c84d11aa8d26a60742d9a0c2ec4faa769a4d5882995bc79f88dd0176179
FlowForwarding/LINC-Switch
linc_us4_oe_meter_sup.erl
%%------------------------------------------------------------------------------ Copyright 2012 FlowForwarding.org %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %%...
null
https://raw.githubusercontent.com/FlowForwarding/LINC-Switch/9c28e7c8677c03440a62023292dd700fef0c3420/apps/linc_us4_oe/src/linc_us4_oe_meter_sup.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, eithe...
Copyright 2012 FlowForwarding.org Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author Erlang Solutions Ltd. < > 2012 FlowForwarding.org -module(linc_us4_oe_meter_sup). -behaviour(supervisor). -export([start_lin...
c525911641fcea8f28758d3ae99d379f394b978178481836090ee60615ddf02d
GlideAngle/flare-timing
Reach.hs
# LANGUAGE DuplicateRecordFields # | Module : Flight . Track . Mask . Reach Copyright : ( c ) Block Scope Limited 2017 License : MPL-2.0 Maintainer : Stability : experimental Tracks masked with task control zones . Module : Flight.Track.Mask.Reach Copyright : (c) Block Scope L...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/comp/library/Flight/Track/Mask/Reach.hs
haskell
^ The bolstered reach, reach clamped below to minimum distance. ^ The reach as flown, possibly less than minimum distance. ^ For each task, the rank order of reach and linear distance fraction. ^ The best distance of each pilot landing out. | For each task, the masking for reach for that task. ^ The bolstered rea...
# LANGUAGE DuplicateRecordFields # | Module : Flight . Track . Mask . Reach Copyright : ( c ) Block Scope Limited 2017 License : MPL-2.0 Maintainer : Stability : experimental Tracks masked with task control zones . Module : Flight.Track.Mask.Reach Copyright : (c) Block Scope L...
24cff977ce9c8707f724274d7e088db33abcd288d4d2bf30983b10582a70c2a3
soegaard/remacs
racket-mode.rkt
#lang racket/base (provide color-buffer ; from "syntax-coloring.rkt" racket-indent-for-tab ; from "indentation.rkt" ; --- racket-mode ; --- get-repl racket-run) ;;; ;;; RACKET MODE ;;; ; Racket mode is for editing and running programs written in...
null
https://raw.githubusercontent.com/soegaard/remacs/8681b3acfe93335e2bc2133c6f144af9e0a1289e/racket-mode/racket-mode.rkt
racket
from "syntax-coloring.rkt" from "indentation.rkt" --- --- RACKET MODE Racket mode is for editing and running programs written in the Racket programming language. The mode provides: - syntax coloring - indentation - a repl The implementation of racket-mode is heavily influenced by the implementation ...
#lang racket/base racket-mode get-repl racket-run) of racket - mode for Emacs by . (require racket/match racket/pretty "../buffer.rkt" "../buffer-locals.rkt" "../chars.rkt" "../command-loop.rkt" "../commands.rkt" "../locals...
67b8068f43259214d6428877fc1a0946e10d991fedb0446721cf4917e5c6d24b
zack-bitcoin/amoveo-exchange
config.erl
-module(config). -compile(export_all). %mode() -> test. mode() -> production. message_frequency() -> 1.%this is how often each ip address can check the status of a trade. trade_frequency() -> 0.2.%this is how often each ip address can put trades into the order book. market_data_frequency() -> 3.%this is how often each...
null
https://raw.githubusercontent.com/zack-bitcoin/amoveo-exchange/df6b59c139b710faf79e851bdf7e861983511cbe/apps/amoveo_exchange/src/config.erl
erlang
mode() -> test. this is how often each ip address can check the status of a trade. this is how often each ip address can put trades into the order book. this is how often each ip address can look up the open orders from the order book. in miliseconds. in miliseconds. seconds when turning on the node with empty database...
-module(config). -compile(export_all). mode() -> production. this is how many confirmations we wait after a tx is included in a block until we accept the payment as spent . TM = mode(), case TM of test -> 1; _ -> 4 end; confirmations(bitcoin) -> 3. in seconds full_node() -> TM = mode(), case TM ...
4f0514f5f64f5996c188b33f6c76b23c365df79b587acf822823e7abbbab2bb6
dparis/gen-phzr
scale_manager.cljs
(ns phzr.scale-manager (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->ScaleManager "Create a new ScaleManager object - this is done automatically by {@link Phaser.Game} The `width` and `height` constructor parameters ...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/scale_manager.cljs
clojure
or or or or only changed if specified. only changed if specified."
(ns phzr.scale-manager (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->ScaleManager "Create a new ScaleManager object - this is done automatically by {@link Phaser.Game} The `width` and `height` constructor parameters ...
43f5781c6b899d6e3b0697525e9e9d7d33fe9c349aa79f3496113f06a5cc636b
soulomoon/SICP
Exercise 2.59.scm
Exercise 2.59 : Implement the union - set operation for the unordered - list representation of sets . (define (element-of-set? x set) (cond ((null? set) false) ((equal? x (car set)) true) (else (element-of-set? x (cdr set))))) (define (adjoin-set x set) (if (element-of-set? x set) ...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter2/Exercise%202.59.scm
scheme
memory limit : 128 MB . (a 1 2 3 b c) >
Exercise 2.59 : Implement the union - set operation for the unordered - list representation of sets . (define (element-of-set? x set) (cond ((null? set) false) ((equal? x (car set)) true) (else (element-of-set? x (cdr set))))) (define (adjoin-set x set) (if (element-of-set? x set) ...
52c28423ef64a8599e49c21b19d678550e4cd4698619270fa114b4739c4a07c3
takikawa/racket-ppa
provide-syntax.rkt
#lang racket/base (provide define-provide-syntax (for-syntax syntax-local-provide-introduce)) (require (for-syntax racket/base syntax/apply-transformer "provide-transform.rkt")) (define-for-syntax (syntax-local-provide-introduce x) (unless (syntax? x) (raise-a...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/d336bb10e3e0ec3a20020e9ade9e77d2f6f80b6d/collects/racket/provide-syntax.rkt
racket
#lang racket/base (provide define-provide-syntax (for-syntax syntax-local-provide-introduce)) (require (for-syntax racket/base syntax/apply-transformer "provide-transform.rkt")) (define-for-syntax (syntax-local-provide-introduce x) (unless (syntax? x) (raise-a...
4dfe8c290208dc47b8275ab7da23811aa00eddb8070f1d980162153b7619736e
nikodemus/SBCL
vm.lisp
;;;; miscellaneous VM definition noise for HPPA This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public ...
null
https://raw.githubusercontent.com/nikodemus/SBCL/3c11847d1e12db89b24a7887b18a137c45ed4661/src/compiler/hppa/vm.lisp
lisp
miscellaneous VM definition noise for HPPA more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. Registers Wired-zero This gets trashed by the C call convention. and saved by lisp before callin...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!VM") (eval-when (:compile-toplevel :load-toplevel :execute) (defvar *register-names* (make-array 32 :in...
930d6401ebca34330bb54755e5650a933e6723f4cad0c9a920d460151116a631
takikawa/racket-ppa
machine-def.rkt
#lang racket/base (require (only-in racket/file file->string)) (provide open-file-with-machine.def-redirect) (define (open-file-with-machine.def-redirect filename target-machine dir) (define (build-path* dir f) (if (eq? dir 'same) f (build-path dir f))) (cond [(equal? filename "machine.def") (define def...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/5f2031309f6359c61a8dfd1fec0b77bbf9fb78df/src/ChezScheme/rktboot/machine-def.rkt
racket
#lang racket/base (require (only-in racket/file file->string)) (provide open-file-with-machine.def-redirect) (define (open-file-with-machine.def-redirect filename target-machine dir) (define (build-path* dir f) (if (eq? dir 'same) f (build-path dir f))) (cond [(equal? filename "machine.def") (define def...
c39d930d8cc2a8adb9923ce79dc90408396d0a35c165a86195295be70b7cad93
runeksvendsen/restful-payment-channel-server
Util.hs
# LANGUAGE OverloadedStrings , DataKinds , FlexibleContexts , LambdaCase , TypeOperators # module AppPrelude.Util ( module X , cs , (<>), mempty , readerToEither , fmapL , errorWithDescription , runLocalhost , envRead ) where import AppPrelude.Util.Hex as X import AppPr...
null
https://raw.githubusercontent.com/runeksvendsen/restful-payment-channel-server/0fe65eadccad5ef2b840714623ec407e509ad00b/src/AppPrelude/Util.hs
haskell
|Transform an 'AppM conf' into a 'Servant.Handler'
# LANGUAGE OverloadedStrings , DataKinds , FlexibleContexts , LambdaCase , TypeOperators # module AppPrelude.Util ( module X , cs , (<>), mempty , readerToEither , fmapL , errorWithDescription , runLocalhost , envRead ) where import AppPrelude.Util.Hex as X import AppPr...
1307d9bd319c743db9ef763706dec38ad5d4421a67756d9aa828fd5af1b35e87
asdr/selenium-lisp-connector
package.lisp
package.lisp (defpackage #:selenium (:use #:cl #:drakma) (:export #:with-new-session #:session-setup #:session-start #:session-stop #:open-page #:type-string #:click #:test1 #:wait-for-page-to-load #:double-click #:context-menu #:fire-event #:focus #:key-press ...
null
https://raw.githubusercontent.com/asdr/selenium-lisp-connector/612bf4f4fb750811b0c89f044ea2e2d34d5797af/package.lisp
lisp
package.lisp (defpackage #:selenium (:use #:cl #:drakma) (:export #:with-new-session #:session-setup #:session-start #:session-stop #:open-page #:type-string #:click #:test1 #:wait-for-page-to-load #:double-click #:context-menu #:fire-event #:focus #:key-press ...
6a564d2b589a4d17bbaffd424fa732431fecad4003e15032b7e4d8212fc16e99
haskell-hvr/missingh
Eithertest.hs
arch - tag : Data . Either . Utils tests Copyright ( C ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (C) 2004-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICENSE -} # LANGUAGE CPP # mod...
null
https://raw.githubusercontent.com/haskell-hvr/missingh/2354a2b881d8ba3c259aec90046451de3d22a31d/testsrc/Eithertest.hs
haskell
arch - tag : Data . Either . Utils tests Copyright ( C ) 2004 - 2011 < > All rights reserved . For license and copyright information , see the file LICENSE Copyright (C) 2004-2011 John Goerzen <> All rights reserved. For license and copyright information, see the file LICENSE -} # LANGUAGE CPP # mod...
4cf7e36f90dfa6be6fb01f67726d7887983b41d5023c504f12a785a5fea63cd2
input-output-hk/cardano-ledger
ScriptTranslation.hs
# LANGUAGE TypeApplications # module Test.Cardano.Ledger.Allegra.ScriptTranslation ( testScriptPostTranslation, ) where import Cardano.Ledger.Allegra (Allegra) import Cardano.Ledger.Block (txid) import Cardano.Ledger.Crypto (StandardCrypto) import Cardano.Ledger.Shelley (Shelley) import qualified Cardano.Ledger.She...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/ac405a977557a7c58ce1cf69d3c2a0bf148cf19f/eras/shelley-ma/test-suite/test/Test/Cardano/Ledger/Allegra/ScriptTranslation.hs
haskell
# LANGUAGE TypeApplications # module Test.Cardano.Ledger.Allegra.ScriptTranslation ( testScriptPostTranslation, ) where import Cardano.Ledger.Allegra (Allegra) import Cardano.Ledger.Block (txid) import Cardano.Ledger.Crypto (StandardCrypto) import Cardano.Ledger.Shelley (Shelley) import qualified Cardano.Ledger.She...
c6285a2e64ba43ced244410662435133cd89a5d3608ecb4df647908193ec565b
OCamlPro/typerex-lint
lintParsingPlugin.ml
(**************************************************************************) (* *) (* OCamlPro Typerex *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/typerex-lint/6d9e994c8278fb65e1f7de91d74876531691120c/plugins/ocp-lint-plugin-parsing/lintParsingPlugin.ml
ocaml
************************************************************************ OCamlPro Typerex This file is distributed ...
Copyright OCamlPro 2011 - 2016 . All rights reserved . ( GNU General Public Licence version 3.0 ) . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , NONINFRINGEMENT . IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE...
f32101de37f92fe4cc1c0d7a2b3d424bcd97ea999df71ff0c02c951cb19f41a9
tisnik/clojure-examples
core_test.clj
; ( C ) Copyright 2015 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns seesaw8.core-test (:require [c...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/seesaw8/test/seesaw8/core_test.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2015 , 2020 -v10.html (ns seesaw8.core-test (:require [clojure.test :refer :all] [seesaw8.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
ac32fa754b6e9c46b1a2846ee6a6cee7480e300f852635e7e60a8bc18ea2f4f4
xvw/preface
indexed_bind.ml
open Preface_core.Fun module Core_via_map_and_bind (Req : Preface_specs.Indexed_bind.WITH_MAP_AND_BIND) = struct include Req let join m = bind id m let compose_left_to_right f g x = bind g (f x) end module Core_over_functor_via_bind (Functor : Preface_specs.Indexed_functor.WITH_MAP) (Req : Preface_...
null
https://raw.githubusercontent.com/xvw/preface/51892a7ce2ddfef69de963265da3617968cdb7ad/lib/preface_make/indexed_bind.ml
ocaml
open Preface_core.Fun module Core_via_map_and_bind (Req : Preface_specs.Indexed_bind.WITH_MAP_AND_BIND) = struct include Req let join m = bind id m let compose_left_to_right f g x = bind g (f x) end module Core_over_functor_via_bind (Functor : Preface_specs.Indexed_functor.WITH_MAP) (Req : Preface_...
8c77509608a56c56b26373fe8a2b989d297b759ba1d12a011cb092aeeb944128
herbelin/coq-hh
redexpr.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/proofs/redexpr.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** call by value normalisation functio...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Pp open Util open Names ...
a2c4eab29ef5ad6657c414a738dc116499dff065ee1fd0595e4bfb223e19a039
ocaml-sf/learn-ocaml-corpus
eof_trivial.ml
(* The type [parser] satisfies the monad API: [delay], [return], [>>=]. *) (* [delay p] behaves like [p()], except the construction of the monadic computation is delayed until the moment when this computation is run. *) let delay (p : unit -> 'a parser) : 'a parser = fun cursor -> NonDet.delay (fun () -> p (...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/parser_combinators/wrong/eof_trivial.ml
ocaml
The type [parser] satisfies the monad API: [delay], [return], [>>=]. [delay p] behaves like [p()], except the construction of the monadic computation is delayed until the moment when this computation is run. [return a] always succeeds, consumes no input, and returns [a]. [p >>= f] is the sequential compositio...
let delay (p : unit -> 'a parser) : 'a parser = fun cursor -> NonDet.delay (fun () -> p () cursor) let return (a : 'a) : 'a parser = fun cursor -> NonDet.return (a, cursor) let (>>=) (p : 'a parser) (f : 'a -> 'b parser) : 'b parser = fun cursor -> let open NonDet in p cursor >>= fun (a, cur...
0b18b8d1434e01903af159e58ed374b39a3218865d86c8c18b2b0f11653028a2
madstap/comfy
comfy.cljc
(ns madstap.comfy "A small collection of functions and macros that (mostly) wouldn't be out of place in clojure.core." (:refer-clojure :exclude [keep run! group-by for]) #?(:cljs (:require-macros [madstap.comfy :refer [for forv]])) (:require [clojure.string :as str] [clojure.spec.alpha :as s] #?(:clj...
null
https://raw.githubusercontent.com/madstap/comfy/0af9cc940bcf1726e0c11c6f19986620d8cfd345/src/madstap/comfy.cljc
clojure
Variations on for This spec, and the specs that depend on it need the conditional Already in medley, but repeated here for symmetry with assoc-in-some rf => the untransduced reducing function rf* => the transduced rf (for each key) res => result (for each key) rfs => reducing functions acc => the map that's bu...
(ns madstap.comfy "A small collection of functions and macros that (mostly) wouldn't be out of place in clojure.core." (:refer-clojure :exclude [keep run! group-by for]) #?(:cljs (:require-macros [madstap.comfy :refer [for forv]])) (:require [clojure.string :as str] [clojure.spec.alpha :as s] #?(:clj...
3d214356035bc9fda95a38449f7d18f55588f4abfe5cd94fed476e7d66ce0c49
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedStrings #-} # LANGUAGE NoRebindableSyntax # # LANGUAGE LambdaC...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Numeral/TA/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE NoRebindableSyntax # # LANGUAGE LambdaCase # module Duckling.Numeral.TA.Rules ( rules ) where import Data.HashMap.Strict (HashMap) import Data.Maybe import Data.String import Data.Text (Text) import Prelude import qualified Data.HashMap.Strict as Has...
51f52a016dab55a107dfc1c1590ce03cb9cd228f8f37b7b3b0b0c4bfb6143369
kishanov/re-frame-spec-forms-example
formatters.cljs
(ns re-frame-spec-forms.formatters (:require [cljs.pprint :as pp] [cljs.repl :as r] [clojure.walk :as walk])) (defn formatted-code [data] [:pre [:code {:class "clojure"} (with-out-str (pp/pprint data))]]) (defn inspect [data & [pprint?]] [:pre [:code (if pp...
null
https://raw.githubusercontent.com/kishanov/re-frame-spec-forms-example/275637cb11fb992f9c6ff6d76ca06daebc22098a/src/cljs/re_frame_spec_forms/formatters.cljs
clojure
(ns re-frame-spec-forms.formatters (:require [cljs.pprint :as pp] [cljs.repl :as r] [clojure.walk :as walk])) (defn formatted-code [data] [:pre [:code {:class "clojure"} (with-out-str (pp/pprint data))]]) (defn inspect [data & [pprint?]] [:pre [:code (if pp...
d56714831823d6a3d48af4e3a1515b0303b83b4460b57f41600d710066eb3f4f
minoki/haskell-floating-point
Float.hs
-- This file was generated by etc/gen-ffi-wrapper.sh -- DO NOT EDIT this file directly! # LANGUAGE MagicHash # {-# LANGUAGE UnliftedFFITypes #-} module FFIWrapper.Float ( roundedAdd , roundedSub , roundedMul , roundedDiv , roundedSqrt , roundedFMA , roundedFMAIfFast , roundedFromInt64 , roundedFromWor...
null
https://raw.githubusercontent.com/minoki/haskell-floating-point/7d7bb31bb2b07c637a5eaeda92fc622566e9b141/rounded-hw/src/FFIWrapper/Float.hs
haskell
This file was generated by etc/gen-ffi-wrapper.sh DO NOT EDIT this file directly! # LANGUAGE UnliftedFFITypes # # INLINE [1] roundedFMAIfFast # # INLINE [1] roundedFromWord64 #
# LANGUAGE MagicHash # module FFIWrapper.Float ( roundedAdd , roundedSub , roundedMul , roundedDiv , roundedSqrt , roundedFMA , roundedFMAIfFast , roundedFromInt64 , roundedFromWord64 , intervalMul_down , intervalMul_up , intervalDiv_down , intervalDiv_up , intervalMulAdd_down , intervalMu...
aa6c40d31eb47cea78ac25cc5dcabcb383dc848ca273b612fdddf7d827ecce8a
mentat-collective/functional-numerics
aggregate.cljc
(ns quadrature.util.aggregate "Utilities for aggregating sequences.") (defn kahan-sum "Implements a fold that tracks the summation of a sequence of floating point numbers, using Kahan's trick for maintaining stability in the face of accumulating floating point errors." ([] [0.0 0.0]) ([[sum c] x] (let [...
null
https://raw.githubusercontent.com/mentat-collective/functional-numerics/44856b0e3cd1f0dd9f8ebb2f67f4e85a68aa8380/src/quadrature/util/aggregate.cljc
clojure
(ns quadrature.util.aggregate "Utilities for aggregating sequences.") (defn kahan-sum "Implements a fold that tracks the summation of a sequence of floating point numbers, using Kahan's trick for maintaining stability in the face of accumulating floating point errors." ([] [0.0 0.0]) ([[sum c] x] (let [...
b29ffc930380d33d30f2e907defafeb3e563458af610f98a73cde3c43579c17f
mejgun/haskell-tdlib
GetApplicationConfig.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.GetApplicationConfig where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | -- Returns application config, provided by the server. Can be called before authorization data GetApplicationConfig = GetApplicat...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/GetApplicationConfig.hs
haskell
# LANGUAGE OverloadedStrings # | | Returns application config, provided by the server. Can be called before authorization
module TD.Query.GetApplicationConfig where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U data GetApplicationConfig = GetApplicationConfig { } deriving (Eq) instance Show GetApplicationConfig where show GetApplicationConfig = "GetApplicationConfig" ...
48a0326e6444cbf2e13fad90fa1e2846a514e341348b32eab812c5d8ef8f70cd
ygrek/mldonkey
gui_results.ml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/gtk/gui/gui_results.ml
ocaml
* GUI for the lists of files. TODO RESULT List.memq r.result_network !Gui_global.networks_filtered method remove_extend_search_button = match wb_extend_search with None -> () | Some wb -> wtool#remove wb#coerce; wb_extend_search <- None wb_extend_search <- Some
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
915085509aede280c69fbf37299e16987ae29b8566b1151edae9fe9408dd6326
ertugrulcetin/ClojureNews
login.clj
(ns clj.controller.login (:require [liberator.core :refer [resource defresource]] [liberator.representation :as rep] [clj.util.resource :as resource-util] [clj.dao.user :as user-dao] [cljc.validation :as validation] [clj.util.entity :as entity-util] ...
null
https://raw.githubusercontent.com/ertugrulcetin/ClojureNews/28002f6b620fa4977d561b0cfca0c7f6a635057b/src/clj/controller/login.clj
clojure
ignoring case sensivity for username
(ns clj.controller.login (:require [liberator.core :refer [resource defresource]] [liberator.representation :as rep] [clj.util.resource :as resource-util] [clj.dao.user :as user-dao] [cljc.validation :as validation] [clj.util.entity :as entity-util] ...
c54d1678768102c6a42e1dd992e431567cb2c446f79f9a111dbdd8de130706dc
AshleyYakeley/Truth
Type.hs
{-# OPTIONS -fno-warn-orphans #-} module Pinafore.Language.Type ( module I ) where import Data.Shim as I import Language.Expression.Common as I import Language.Expression.Dolan as I import Pinafore.Language.Type.DynamicSupertype as I import Pinafore.Language.Type.Family as I import Pinafore.Language.Type.GetD...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/3e1bec60a9ccf03d0d76ad4b2714717d5c197c49/Pinafore/pinafore-language/lib/Pinafore/Language/Type.hs
haskell
# OPTIONS -fno-warn-orphans #
module Pinafore.Language.Type ( module I ) where import Data.Shim as I import Language.Expression.Common as I import Language.Expression.Dolan as I import Pinafore.Language.Type.DynamicSupertype as I import Pinafore.Language.Type.Family as I import Pinafore.Language.Type.GetDynamicSupertype as I import Pinafo...
8bbb7b4ba8df6c466d2441df7347cbbe12b726453653c77a5f17e6bf4ed5083c
GaloisInc/pate
Monad.hs
{-# LANGUAGE GADTs #-} # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE KindSignatures # {-# LANGUAGE RankNTypes #-} # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE FlexibleContexts # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE UndecidableInstances # # LANGUAG...
null
https://raw.githubusercontent.com/GaloisInc/pate/a48c447156d95686c308a6d5ec696464120e0970/src/Pate/Monad.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE ConstraintKinds # # LANGUAGE OverloadedStrings # sat helpers assumption management nonces caching equivalence | Execute actions if the given configuration flag is set (not set) | Start the timer to be used as the initial time when computing the duration in ...
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeOperator...
e513b6ad2fabe838d2d3dd6f5fca9af3b96f7a9e56835f6f963d635e9555e1ff
mtolly/onyxite-customs
Project.hs
# OPTIONS_GHC -fno - warn - orphans # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE DerivingVia #-} # LANGUAGE Dupl...
null
https://raw.githubusercontent.com/mtolly/onyxite-customs/0c8acd6248fe92ea0d994b18b551973816adf85b/haskell/packages/onyx-lib/src/Onyx/Project.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # # LANGUAGE DeriveTraversable # # LANGUAGE DerivingStrategies # # LANGUAGE DerivingVia # # LANGUAGE LambdaCase # # LANGUAGE NoFieldSelectors # # LANGUAGE OverloadedRecordDot # # LANGUAGE RankNTypes # # LAN...
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE TupleSections # # LANGUAGE ViewPatterns ...
a3292bd95ea6ed7a72528497d7206524cbd2309badabeab7b3c98457d195b077
pbrisbin/devsite
Profile.hs
module Helpers.Profile ( profileForm , saveProfile ) where import Import data ProfileForm = ProfileForm { pfUsername :: Maybe Text , pfEmail :: Maybe Text } profileForm :: User -> Form ProfileForm profileForm u = renderBootstrap $ ProfileForm <$> aopt textField "User name" { ...
null
https://raw.githubusercontent.com/pbrisbin/devsite/d12682cf9add9ac1f91abd51cb576f12ca7ca424/Helpers/Profile.hs
haskell
module Helpers.Profile ( profileForm , saveProfile ) where import Import data ProfileForm = ProfileForm { pfUsername :: Maybe Text , pfEmail :: Maybe Text } profileForm :: User -> Form ProfileForm profileForm u = renderBootstrap $ ProfileForm <$> aopt textField "User name" { ...
879ab7ce7bcdf6789e7d9541cd3df1809af674beb0662077d7c9aa4f34215f88
arichiardi/replumb
macros.cljc
(ns foo.bar.macros) (defmacro str->int [s] #?(:clj (Integer/parseInt s) :cljs (js/parseInt s)))
null
https://raw.githubusercontent.com/arichiardi/replumb/dde2228f2e364c3bafdf6585bb1bc1c27a3e336c/dev-resources/private/test/src/cljc/foo/bar/macros.cljc
clojure
(ns foo.bar.macros) (defmacro str->int [s] #?(:clj (Integer/parseInt s) :cljs (js/parseInt s)))
312b85efdcd0c3f912bbe493e1ec4047b302d2c84fd9c9b2063864f12dbe2fce
kelamg/HtDP2e-workthrough
ex20.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 ex20) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Fixed-size-Data/ex20.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex20) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define (string-insert str i) (if (> (string-length str) 0) ...
178387dc8e9decab9dabde11668cb82c61170f92927f014a3c446610844f3fa5
MarkCurtiss/sicp
4_1_to_4_10_spec.scm
(load "4_1_to_4_10.scm") (describe "List of values" (it "evaluates from left to right" (lambda () (define env '()) (assert (equal? (list-of-values-left-to-right '(1 2 () 3 4) user-initial-environment) '(1 2 () 3 4))) )) (it "evaluates from right to left" (lambda () (asser...
null
https://raw.githubusercontent.com/MarkCurtiss/sicp/8b55a3371458014c815ba8792218b6440127ab40/chapter_4_exercises/spec/4_1_to_4_10_spec.scm
scheme
(load "4_1_to_4_10.scm") (describe "List of values" (it "evaluates from left to right" (lambda () (define env '()) (assert (equal? (list-of-values-left-to-right '(1 2 () 3 4) user-initial-environment) '(1 2 () 3 4))) )) (it "evaluates from right to left" (lambda () (asser...
78509480f0378846f2daafc89dd170720f3583c70ab1047234a2010ff363eaa9
Zetawar/zetawar
router.cljs
(ns zetawar.system.router (:require [cljs.core.async :as async] [integrant.core :as ig] [zetawar.router :as router])) (defmethod ig/init-key :zetawar.system/router [_ opts] (let [{:keys [datascript renderer players]} opts {:keys [conn]} datascript {:keys [handler-wrapper-fn]} renderer ...
null
https://raw.githubusercontent.com/Zetawar/zetawar/dc1ee8d27afcac1cd98904859289012c2806e58c/src/cljs/zetawar/system/router.cljs
clojure
(ns zetawar.system.router (:require [cljs.core.async :as async] [integrant.core :as ig] [zetawar.router :as router])) (defmethod ig/init-key :zetawar.system/router [_ opts] (let [{:keys [datascript renderer players]} opts {:keys [conn]} datascript {:keys [handler-wrapper-fn]} renderer ...
da3689b7c3619f0342869bb991fd98d5e6dcab1ae272aa6b94b02efa7efb0d46
metaocaml/ber-metaocaml
test.ml
(* TEST flags = "-strict-sequence" * expect *) external a : (int [@untagged]) -> unit = "a" "a_nat" external b : (int32 [@unboxed]) -> unit = "b" "b_nat" external c : (int64 [@unboxed]) -> unit = "c" "c_nat" external d : (nativeint [@unboxed]) -> unit = "d" "d_nat" external e : (float [@unboxed]) -> unit = "e" "e...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/typing-unboxed/test.ml
ocaml
TEST flags = "-strict-sequence" * expect Should output a warning: no native implementation provided Bad: attributes not reported in the interface Bad: attributes in the interface but not in the implementation Bad: unboxed or untagged with the wrong type Bad: unboxing the function type Bad: unboxing a...
external a : (int [@untagged]) -> unit = "a" "a_nat" external b : (int32 [@unboxed]) -> unit = "b" "b_nat" external c : (int64 [@unboxed]) -> unit = "c" "c_nat" external d : (nativeint [@unboxed]) -> unit = "d" "d_nat" external e : (float [@unboxed]) -> unit = "e" "e_nat" type t = private int external f : (t [@untagg...
5b11fcd2e12fe1bbb86cfb2f1e1d963339ce1aa3fef96b4c6a27c567076da868
jabber-at/ejabberd-contrib
mod_message_log.erl
%%%---------------------------------------------------------------------- %%% File : mod_message_log.erl Author : < > Purpose : Log one line per message transmission Created : 27 May 2014 by < > %%% %%% ejabberd , Copyright ( C ) 2018 ProcessOne %%% %%% This program is free software; you can redis...
null
https://raw.githubusercontent.com/jabber-at/ejabberd-contrib/d5eb036b786c822d9fd56f881d27e31688ec6e91/mod_message_log/src/mod_message_log.erl
erlang
---------------------------------------------------------------------- File : mod_message_log.erl This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without ev...
Author : < > Purpose : Log one line per message transmission Created : 27 May 2014 by < > ejabberd , Copyright ( C ) 2018 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy...
4ca076551de0abbb78e585cdc53e8a8ff095435e840f5fd062025d3204b8c7ab
dharmatech/abstracting
glut-header.scm
(include "glu-header.scm") (c-define-type int* (pointer int)) ;; /* ;; * The freeglut and GLUT API versions ;; */ (define FREEGLUT 1) (define VERSION 4) ( define 0 1 ) (define IMPLEMENTATION 13) ;; /* ;; * GLUT API macro definitions -- the special key codes: ;; */ (define GLUT_KEY_F1 #x0001) (define GLUT_KEY_...
null
https://raw.githubusercontent.com/dharmatech/abstracting/9dc5d9f45a9de03c6ee379f1928ebb393dfafc52/support/gambit/glut/glut-header.scm
scheme
/* * The freeglut and GLUT API versions */ /* * GLUT API macro definitions -- the special key codes: */ /* * GLUT API macro definitions -- mouse state definitions */ /* * GLUT API macro definitions -- the display mode definitions */ /* * GLUT API macro definitions -- windows and menu related defi...
(include "glu-header.scm") (c-define-type int* (pointer int)) (define FREEGLUT 1) (define VERSION 4) ( define 0 1 ) (define IMPLEMENTATION 13) (define GLUT_KEY_F1 #x0001) (define GLUT_KEY_F2 #x0002) (define GLUT_KEY_F3 #x0003) (define GLUT_KEY_F4 #x0004) (define GLUT_KEY_F5 #x0005) (define GLUT_KEY_F6 #x0006) (de...
9926c7f4f38573a3c4191b2b25a486a85ea7bb2b7633361c17905da2d6b4fe1f
ucsd-progsys/liquidhaskell
TwiceM.hs
{-@ LIQUID "--expect-any-error" @-} module TwiceM where {-@ LIQUID "--short-names" @-} import RIO @ appM : : forall < pre : : World - > Bool , post : : World - > b - > World - > Bool > . ( a - > RIO < pre , post > b ) - > a - > RIO < pre , post > b @ (a -> RIO <pre, post> b) -> a -> RIO <pre,...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/benchmarks/icfp15/neg/TwiceM.hs
haskell
@ LIQUID "--expect-any-error" @ @ LIQUID "--short-names" @ @ measure counter :: World -> Int @
module TwiceM where import RIO @ appM : : forall < pre : : World - > Bool , post : : World - > b - > World - > Bool > . ( a - > RIO < pre , post > b ) - > a - > RIO < pre , post > b @ (a -> RIO <pre, post> b) -> a -> RIO <pre, post> b @-} appM :: (a -> RIO b) -> a -> RIO b appM f x = f x @ ...
7cc87afa22a3a276c07ba87bb01279335165911d8af0ec86d1d00e93f6a7ac18
viebel/google-api-clj
drive_service.clj
(ns google-api-clj.drive-service (:require [clojure.java.io :as io] [google-api-clj.net-utils :refer [execute]]) (:import (com.google.api.client.http FileContent) (com.google.api.services.drive Drive$Builder) (com.google.api.client.googleapis.json GoogleJsonResponseException) (com.google.api...
null
https://raw.githubusercontent.com/viebel/google-api-clj/c868e80d6be2c97e721b946013d1dbc9a2f796c2/src/google_api_clj/drive_service.clj
clojure
=========================================================================== utils =========================================================================== API
(ns google-api-clj.drive-service (:require [clojure.java.io :as io] [google-api-clj.net-utils :refer [execute]]) (:import (com.google.api.client.http FileContent) (com.google.api.services.drive Drive$Builder) (com.google.api.client.googleapis.json GoogleJsonResponseException) (com.google.api...
a0156e5584252da67ccef2c8cf8db5d97f707085a1c0e3fb313dd2d192940578
ExtremaIS/ttc-haskell
mkvalid.hs
------------------------------------------------------------------------------ -- | -- Module : Main -- Description : example of compile-time validation Copyright : Copyright ( c ) 2019 - 2022 License : MIT -- -- 'TTC.mkValid' is used to create @valid@ function, to validate constants of -- a specific...
null
https://raw.githubusercontent.com/ExtremaIS/ttc-haskell/283ca48904f7e94905cc5b2f59abf9bad75a3bff/examples/mkvalid/mkvalid.hs
haskell
---------------------------------------------------------------------------- | Module : Main Description : example of compile-time validation 'TTC.mkValid' is used to create @valid@ function, to validate constants of a specific type. The sample username is validated at compile-time. ------------------------...
Copyright : Copyright ( c ) 2019 - 2022 License : MIT # LANGUAGE TemplateHaskell # module Main (main) where import qualified Username import Username (Username) sample :: Username sample = $$(Username.valid "tcard") main :: IO () main = print sample
31aa6bd59bfcf960bc039b1dc04b0672d78cfd05fa3e53f2b8a05088b4f0c65d
tippenein/imgup
Main.hs
module Main (main) where import qualified Imgup main :: IO () main = putStrLn =<< Imgup.uploadAndReturnUrl
null
https://raw.githubusercontent.com/tippenein/imgup/3c3f9066a27452dfb41feecce25c53df8c0f6fa5/executable/Main.hs
haskell
module Main (main) where import qualified Imgup main :: IO () main = putStrLn =<< Imgup.uploadAndReturnUrl
f0aed837bad272209265dcb35316fdffa43042431b0e9fd4eba5f65983a5040c
diogob/pg-recorder
Prelude.hs
Welcome to your custom Prelude Export here everything that should always be in your library scope For more info on what is exported by Protolude check : Welcome to your custom Prelude Export here everything that should always be in your library scope For more info on what is exported by Protolude check: -} ...
null
https://raw.githubusercontent.com/diogob/pg-recorder/b4fdd2952f8b0f4c66e140cadebdc2316fc03fe3/src/PgRecorder/Prelude.hs
haskell
Welcome to your custom Prelude Export here everything that should always be in your library scope For more info on what is exported by Protolude check : Welcome to your custom Prelude Export here everything that should always be in your library scope For more info on what is exported by Protolude check: -} ...
c49bcaa8472fd5674c1f3b0d7159afd0816b4ec17224e0965c13d0e89188fef5
ua-parser/uap-haskell
SuiteUtils.hs
{-# LANGUAGE OverloadedStrings #-} module Web.UAParser.SuiteUtils ( UserAgentTestCase(..) , OSTestCase(..) , DevTestCase(..) , loadTests ) where ------------------------------------------------------------------------------- import Control.Applicative import Control.Monad ...
null
https://raw.githubusercontent.com/ua-parser/uap-haskell/c1f4789ee3d12e6b53dbbdbf4025abf3d316620f/src/Web/UAParser/SuiteUtils.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Loading Test Cases ----------------------------------------------------------------------------- -----------------------------------...
module Web.UAParser.SuiteUtils ( UserAgentTestCase(..) , OSTestCase(..) , DevTestCase(..) , loadTests ) where import Control.Applicative import Control.Monad (join) import Data.Aeson hiding ((.:?)) import qualified Data.Aeson as A import ...
64262e6701aee10573d45512d44f9c80c572d0452d1dace2821fadae6693d89f
zyrolasting/polyglot
paths.rkt
#lang racket/base (require racket/contract racket/runtime-path racket/file racket/path unlike-assets) (define path-el/c (and/c (or/c path-for-some-system? path-string?) (not/c complete-path?))) (define path-builder/c (->* () #...
null
https://raw.githubusercontent.com/zyrolasting/polyglot/d27ca7fe90fd4ba2a6c5bcd921fce89e72d2c408/polyglot-lib/polyglot/paths.rkt
racket
We'll need paths to private skeleton files to make sure the test package can build them. The extra "." provides a trailing directory separator we'll need for assertions. Use to bind path building functions
#lang racket/base (require racket/contract racket/runtime-path racket/file racket/path unlike-assets) (define path-el/c (and/c (or/c path-for-some-system? path-string?) (not/c complete-path?))) (define path-builder/c (->* () #...
be0010a0963235959a24ecfc083a0610e6eaebdb03cdf02093fe114826a9f313
racket/math
flonum-log.rkt
#lang typed/racket/base (require racket/performance-hint (only-in racket/math pi) "flonum-functions.rkt" "flonum-constants.rkt" "flonum-exp.rkt" "flonum-error.rkt" "flonum-polyfun.rkt" "expansion/expansion-base.rkt" "flvector.rkt") (provide fllog...
null
https://raw.githubusercontent.com/racket/math/3409a8e6e3b456fd3a5622e525931af49cd456b5/math-lib/math/private/flonum/flonum-log.rkt
racket
Computes the value of log(1+x) in a way that is accurate for small x approximation for log1p around 0. remap (log1p x) to (+ (log n) (log1p (/ (- x (- n 1)) n))) <= change boundary map at / upper limit #x0.a0 / #x-0.5a #x0.d4 / #x-0.24 #x0.e3 / _ #x1.3 / #x0.38 #x1.4 / #x0.5 #x1.6 / #x0.7 #x1.c / #x0.e #x3...
#lang typed/racket/base (require racket/performance-hint (only-in racket/math pi) "flonum-functions.rkt" "flonum-constants.rkt" "flonum-exp.rkt" "flonum-error.rkt" "flonum-polyfun.rkt" "expansion/expansion-base.rkt" "flvector.rkt") (provide fllog...
0fe2f4671151a9c5ed89f03a4cdd7a1b893fa2a1efb3a9715177b992a8ad7a2d
thelema/ocaml-community
builtin_GetBitmap.ml
(* Tk_GetBitmap emulation *) ##ifdef CAMLTK (* type *) type bitmap = | BitmapFile of string (* path of file *) | Predefined of string (* bitmap name *) ;; /type ##else (* type *) type bitmap = [ | `File of string (* path of file *) | `Predefined of string ...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/builtin/builtin_GetBitmap.ml
ocaml
Tk_GetBitmap emulation type path of file bitmap name type path of file bitmap name
##ifdef CAMLTK type bitmap = ;; /type ##else type bitmap = [ ] ;; /type ##endif
0851de5bdd845db992056e68140d07cb10787dd5b74579f65a71ae2cb4e02831
picty/parsifal
x509Extensions.ml
open Parsifal open PTypes open Asn1Engine open Asn1PTypes open X509Basics (*************************************) (* General Name / AltName extensions *) (*************************************) let subjectAltName_oid = [85;29;17] let issuerAltName_oid = [85;29;18] (* TODO? *) (* OtherName ::= SEQUENCE { *) (* ...
null
https://raw.githubusercontent.com/picty/parsifal/767a1d558ea6da23ada46d8d96a057514b0aa2a8/crypto/x509Extensions.ml
ocaml
*********************************** General Name / AltName extensions *********************************** TODO? OtherName ::= SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id } ORAddress ::= SEQUENCE { built-in-standard-attributes BuiltInStandardAttribute...
open Parsifal open PTypes open Asn1Engine open Asn1PTypes open X509Basics let subjectAltName_oid = [85;29;17] let issuerAltName_oid = [85;29;18] partyName [ 1 ] DirectoryString } asn1_union generalName [enrich; exhaustive] (UnparsedGeneralName) = | (C_ContextSpecific, true, T_Unknown...
78a31732d475e4a23cd06c88e9b63413253fdff4ee7bc24469a1203e7f71a81c
goderich/aoc2020
day07.rkt
#lang racket This day 's puzzle works great with parser combinators . I am using ;; megaparsack library, because it's pleasant to ;; work with and well documented. ;; ;; The imports below are all needed for the ;; parser. (require megaparsack megaparsack/text data/monad data/applicat...
null
https://raw.githubusercontent.com/goderich/aoc2020/96db9aab107e1f4a594319f38a9a309591bd331e/day07.rkt
racket
megaparsack library, because it's pleasant to work with and well documented. The imports below are all needed for the parser. We start by defining simple parsers to be combined later on. When a bag of a particular colour contains other bags, the string begins with a number, followed by the colour of the conta...
#lang racket This day 's puzzle works great with parser combinators . I am using (require megaparsack megaparsack/text data/monad data/applicative data/either) (define word/p (do (word <- (many/p letter/p)) (pure (list->string word)))) (define color/p (do (w1 <-...
dfe7e6bbbc11d83d60d56a99cc279208a1644e151a33c048a776a27b3e02d554
jjmeyer0/gt
pp.mli
(** A reference to keep track of the current line number. *) val cur_line : int ref * This function will print the right number of newlines in the correct places for any parseable file . @param os where to print the information @param do_print if true newlines will be printed otherwise nothing will happen...
null
https://raw.githubusercontent.com/jjmeyer0/gt/c0c7febc2e3fd532d44617f663b224cc0b9c7cf2/doc/manual/ref/generated-funs/pp.mli
ocaml
* A reference to keep track of the current line number. * Just a dummy function to make it easier to generate functions.
val cur_line : int ref * This function will print the right number of newlines in the correct places for any parseable file . @param os where to print the information @param do_print if true newlines will be printed otherwise nothing will happen . @param p if do_print is true then the difference betwe...
3f00826d430f0abe22529446232ee272adc4c9a454ccc222b7eb80bc3dff9560
yomimono/ocaml-certify
csr.ml
open Cmdliner open Common let org = let doc = "Organization name for the certificate signing request." in Arg.(required & pos ~rev:false 1 (some string) None & info [] ~doc ~docv:"O") let certfile = let doc = "Filename to which to save the completed certificate-signing request." in Arg.(value & opt string "cs...
null
https://raw.githubusercontent.com/yomimono/ocaml-certify/a762373207e9d9128df0e7f6ede8f0d2acf306e9/src/csr.ml
ocaml
open Cmdliner open Common let org = let doc = "Organization name for the certificate signing request." in Arg.(required & pos ~rev:false 1 (some string) None & info [] ~doc ~docv:"O") let certfile = let doc = "Filename to which to save the completed certificate-signing request." in Arg.(value & opt string "cs...
d9b5bf8df5eca21c83aeb74151c27cf8b816534bb65125bb32cd5101639cc63e
eeng/mercurius
ticker_repository.clj
(ns mercurius.trading.domain.repositories.ticker-repository) (defprotocol TickerRepository (update-ticker [this last-trade] "Updates the ticker current price and volume. Returns the updated ticker data.") (get-tickers [this] "Returns a map of all tickers and its stats (current price, volume, etc.)")) ...
null
https://raw.githubusercontent.com/eeng/mercurius/f83778ddde99aa13692e4fe2e70b2e9dc2fd70e9/src/mercurius/trading/domain/repositories/ticker_repository.clj
clojure
(ns mercurius.trading.domain.repositories.ticker-repository) (defprotocol TickerRepository (update-ticker [this last-trade] "Updates the ticker current price and volume. Returns the updated ticker data.") (get-tickers [this] "Returns a map of all tickers and its stats (current price, volume, etc.)")) ...
5b14d2c3cb0ea664ade8d35dbbdab78f564e6ef7a1f3d871a374b5690816ddbd
mstksg/backprop-learn
Loss.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleContexts # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} {-# OPTIONS_GHC -Wno-redundant-constraints #...
null
https://raw.githubusercontent.com/mstksg/backprop-learn/59aea530a0fad45de6d18b9a723914d1d66dc222/src/Backprop/Learn/Loss.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # # OPTIONS_GHC -Wno-redundant-constraints # * Loss functions , totalCov ** Manipulate loss functions * Regularization ** Manipulate regularizers...
# LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # module Backprop.Learn.Loss ( Loss , crossEntropy, crossEntropy1 , squaredError, absError, totalSquaredError, squaredErrorV , scaleLoss , sumLoss , sumLossDecay , lastLoss , zipLoss , t2Loss , Regularizer , l...
4543a7b28281e4aeb0f3adf41fb2cccaa53f56c8990089bae7c912a48cf19504
racket/scribble
tag.rkt
#lang racket/base ;; It might make sense to make these functions public, but since they weren't originally, ;; I am going to keep them in the private folder for now. -- With Love , (provide (all-defined-out)) (require racket/list scribble/core "../tag.rkt") (define (gen-tag content) (datum-in...
null
https://raw.githubusercontent.com/racket/scribble/beb2d9834169665121d34b5f3195ddf252c3c998/scribble-lib/scribble/private/tag.rkt
racket
It might make sense to make these functions public, but since they weren't originally, I am going to keep them in the private folder for now. ASCII for most purposes helps avoid encoding issues for uncooperative environments, but constraining to ASCII is too too many conflicting tags).
#lang racket/base -- With Love , (provide (all-defined-out)) (require racket/list scribble/core "../tag.rkt") (define (gen-tag content) (datum-intern-literal Generate tag from ASCII plus CJK characters . Constraining to uncooperative in another direction for CJK text ( i.e. , creates (...
0af4e2ec38b47db26c83c034f70d6846801572d15ee82c1ebb886ad736bf0cab
well-typed/large-records
R000.hs
#if PROFILE_CORESIZE {-# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl #-} #endif #if PROFILE_TIMING {-# OPTIONS_GHC -ddump-to-file -ddump-timings #-} #endif module Experiment.PreEval_Nominal.Sized.R000 where
null
https://raw.githubusercontent.com/well-typed/large-records/c6c2b51af11e90f30822543d7ce4d1cb28cee294/large-records-benchmarks/bench/experiments/Experiment/PreEval_Nominal/Sized/R000.hs
haskell
# OPTIONS_GHC -ddump-to-file -ddump-ds-preopt -ddump-ds -ddump-simpl # # OPTIONS_GHC -ddump-to-file -ddump-timings #
#if PROFILE_CORESIZE #endif #if PROFILE_TIMING #endif module Experiment.PreEval_Nominal.Sized.R000 where
a80b183bc03a8454ded19af87f34138e19b7fbf912c7699e665a7831298294f6
rmloveland/scheme48-0.53
eval.scm
Copyright ( c ) 1994 by . See file COPYING . ; Evaluator for nodes. ; This doesn't handle n-ary procedures. ; (NAME-NODE-BINDING name-node) is used as an EQ? key in local environments, ; and passed as-is to the global-environment arguments. ; Exports: ( EVAL - NODE node global - ref global - set ! eval - pr...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/ps-compiler/prescheme/eval.scm
scheme
Evaluator for nodes. This doesn't handle n-ary procedures. (NAME-NODE-BINDING name-node) is used as an EQ? key in local environments, and passed as-is to the global-environment arguments. Exports: CLOSURE? (CLOSURE-NODE closure) (CLOSURE-ENV closure) Environments Closures exported Particular operators Used b...
Copyright ( c ) 1994 by . See file COPYING . ( EVAL - NODE node global - ref global - set ! eval - primitive ) ( UNSPECIFIC ? thing ) (define (eval-node node global-ref global-set! eval-primitive) (eval node (make-env '() (make-eval-data global-ref global-set! eval-primit...
f9428f94cb35fccf1bbcd5598bf25ec2654f3e8acee500956039bdeedc413c1a
abdulapopoola/SICPBook
Ex2.66.scm
#lang planet neil/sicp (define (lookup key records) (cond ((null? records) false) ((= key (entry records)) (entry records)) ((< key (entry records)) (lookup key (left-branch records))) (else (lookup key (right-branch records)))))
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.3/Ex2.66.scm
scheme
#lang planet neil/sicp (define (lookup key records) (cond ((null? records) false) ((= key (entry records)) (entry records)) ((< key (entry records)) (lookup key (left-branch records))) (else (lookup key (right-branch records)))))
aa88be38fad3d879502f3fad3f32c8e4825f67595e24c3593ee9ae24255b50f6
jasonrudolph/one-rep-max
statistics.cljs
(ns one.repmax.sets.statistics (:refer-clojure :exclude [set])) (defn one-rep-max "Returns the calculated one-repetition maximum (1RM) based on the given set. Uses the Epley formula to calculate the 1RM: -repetition_maximum#Epley_Fomula " [set] (let [weight (:weight set) reps (:reps set) ...
null
https://raw.githubusercontent.com/jasonrudolph/one-rep-max/8bdc8eccd4f36cf91b0dd57b0a378efb1b24f7a3/src/app/cljs/one/repmax/sets/statistics.cljs
clojure
(ns one.repmax.sets.statistics (:refer-clojure :exclude [set])) (defn one-rep-max "Returns the calculated one-repetition maximum (1RM) based on the given set. Uses the Epley formula to calculate the 1RM: -repetition_maximum#Epley_Fomula " [set] (let [weight (:weight set) reps (:reps set) ...
7cf172e72544ea91b9982afdc8e7eb0caf99e25b1c3f71328e25611679c2fe42
haskell-foundation/foundation
Storable.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Test.Foundation.Storable ( testForeignStorableRefs , testPropertyStorable, testPropertyStorableFixed ) where import Foundatio...
null
https://raw.githubusercontent.com/haskell-foundation/foundation/58568e9f5368170d272000ecf16ef64fb91d0732/foundation/tests/Test/Foundation/Storable.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE OverloadedStrings # , testPropertyStorablePoke p , testPropertyStorableFixedPeekOff p , testPropertyStorableFixedPokeOff p o <- choose (0, sz - minsz)
# LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # module Test.Foundation.Storable ( testForeignStorableRefs , testPropertyStorable, testPropertyStorableFixed ) where import Foundation import Foundation.Class.Storable import Foundation.Primitive import Foun...
6b1d006dea9c5666141ae4676915847dab3ce5dfbf088a475c5af8eb979490d6
jubnzv/iec-checker
config.mli
(** Configuration values including platform and implementation dependent options. *) val max_string_len : int (** Maximum size of STRING and WSTRING data types. *) val mccabe_complexity_threshold : int (** Threshold of McCabe complexity to generate warnings. *) val statements_num_threshold : int * Threshold of maxim...
null
https://raw.githubusercontent.com/jubnzv/iec-checker/43ac759a26d874988cf6954a9de51e3790e30d59/src/core/config.mli
ocaml
* Configuration values including platform and implementation dependent options. * Maximum size of STRING and WSTRING data types. * Threshold of McCabe complexity to generate warnings. {{{ List of the enabled checks }}}
val max_string_len : int val mccabe_complexity_threshold : int val statements_num_threshold : int * Threshold of maximum number of statements in POU to generate warnings . val check_plcopen_cp1 : bool val check_plcopen_cp2 : bool val check_plcopen_cp3 : bool val check_plcopen_cp4 : bool val check_plcopen_cp6 : bool...
2c21aa16d10adcf6516eab2e58ff51a29c88d679f99f3ce70c93392e211f5753
triffon/fp-2022-23
07.count-p.rkt
#lang racket (require rackunit) (require rackunit/text-ui) (require "common.03.rkt") # # # Зад 7 , ` pred ? ` сред ` a ` , ` ( next a ) ` , ` ( next ( next a ) ) ` , ... , ` b ` . (define (count-p pred? a b next) (accumulate + 0 a b (lambda (i) (if (pred? i) 1 0)) next)) (define (2+ n) (+ n 2)) (run-tests...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/0c6f1c2b47bc67494f4ca6d004e0f6cf4de17be7/exercises/cs2/03.scheme.hof-accumulate/solutions/07.count-p.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) (require "common.03.rkt") # # # Зад 7 , ` pred ? ` сред ` a ` , ` ( next a ) ` , ` ( next ( next a ) ) ` , ... , ` b ` . (define (count-p pred? a b next) (accumulate + 0 a b (lambda (i) (if (pred? i) 1 0)) next)) (define (2+ n) (+ n 2)) (run-tests...
be2510c53c438886af6846826eeb4c7a9b4445a11eff30b9f0e4e3d4d7632272
haroldcarr/learn-haskell-coq-ml-etc
XMonad.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies ...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/topic/program-structure/2019-01-hc-example-based-on-adjointio-raft/src/XMonad.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE TypeFamilyDependencies # ---------------------------------------------------------------------------- ------------------------------------------------------------------------------ --------------------------------------------...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module XMonad where import XActionOutput import XConf...
21566b95fd97cf69cdaf2c5d2e3ea8f55e858ace62eb0f76b955b2bc4bc9bc94
unnohideyuki/Tiger-in-Haskell
cflow.hs
import Control.Monad.State import Parser (parse) import Lexer (alexScanTokens, prettyToken) import Semant import Env import FindEscape import qualified Canon as C import DalvikFrame as Frame import qualified Assem as A import qualified Codegen as CG import qualified Temp import MakeGraph compile_frags :: [Frame.Frag...
null
https://raw.githubusercontent.com/unnohideyuki/Tiger-in-Haskell/69fc976e64bfe7abfa842d7179e06eae740d36b9/chap10_11/cflow.hs
haskell
import Control.Monad.State import Parser (parse) import Lexer (alexScanTokens, prettyToken) import Semant import Env import FindEscape import qualified Canon as C import DalvikFrame as Frame import qualified Assem as A import qualified Codegen as CG import qualified Temp import MakeGraph compile_frags :: [Frame.Frag...
d959897cce19c27323dda38baa9cad6f6448f2ba2ec7aae62d93902e7dbd0b92
mput/sicp-solutions
1_17.test.rkt
#lang racket (require rackunit/text-ui) (require rackunit "../solutions/1_17.rkt") (define (tests proc) (test-suite "simple suite" (check-equal? (proc 3 5) (* 3 5) "Simple mult") (check-equal? (proc 123 13423) (* 123 13423)) (check-equal? (proc 5 123456789) (* 5 123456789)) (check-equal? (proc ...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/tests/1_17.test.rkt
racket
#lang racket (require rackunit/text-ui) (require rackunit "../solutions/1_17.rkt") (define (tests proc) (test-suite "simple suite" (check-equal? (proc 3 5) (* 3 5) "Simple mult") (check-equal? (proc 123 13423) (* 123 13423)) (check-equal? (proc 5 123456789) (* 5 123456789)) (check-equal? (proc ...
5e4c91efcc6f82035c71997ea0e662b83ab16adb9d45a55f1aa2a1c3a1a8a223
MinaProtocol/mina
load_data.ml
(* load_data.ml -- load archive db data to "native" OCaml data *) open Core_kernel open Async open Mina_base let pk_of_id pool pk_id = let%map pk_str = Mina_caqti.query pool ~f:(fun db -> Processor.Public_key.find_by_id db pk_id ) in Signature_lib.Public_key.Compressed.of_base58_check_exn pk_str le...
null
https://raw.githubusercontent.com/MinaProtocol/mina/9a97ea71909a802f2ade0305a8069f7cbace5619/src/app/archive/lib/load_data.ml
ocaml
load_data.ml -- load archive db data to "native" OCaml data same fields, different types TODO: token permissions is going away
open Core_kernel open Async open Mina_base let pk_of_id pool pk_id = let%map pk_str = Mina_caqti.query pool ~f:(fun db -> Processor.Public_key.find_by_id db pk_id ) in Signature_lib.Public_key.Compressed.of_base58_check_exn pk_str let token_of_id pool token_id = let%map { value; _ } = Mina_ca...
2090fa77d2da93d05d4a4888cd8c611bd8c1c1d4de6677e8ad4c0c43159df5bd
quephird/fun-with-quil
klein.clj
(ns hello-quil.animations.klein (:require [quil.core :as q :include-macros true] [quil.middleware :as m])) (defn surface [θ φ] (let [a 200 b 125 m 1 n 2] [(* (+ a (* (q/cos (* n θ 0.5)) (q/sin φ)) (* (- b) (q/sin (* n θ 0.5)) (q/sin (* 2 φ)))) (q/cos (* m θ 0.5))) (* (+ a (* (q/cos (* n θ 0.5)...
null
https://raw.githubusercontent.com/quephird/fun-with-quil/3b3a6885771f5a1a4cffeb8379f05a28048a1616/src/fun_with_quil/animations/klein.clj
clojure
(ns hello-quil.animations.klein (:require [quil.core :as q :include-macros true] [quil.middleware :as m])) (defn surface [θ φ] (let [a 200 b 125 m 1 n 2] [(* (+ a (* (q/cos (* n θ 0.5)) (q/sin φ)) (* (- b) (q/sin (* n θ 0.5)) (q/sin (* 2 φ)))) (q/cos (* m θ 0.5))) (* (+ a (* (q/cos (* n θ 0.5)...
ebcc80196558a302ee892edfb39e47a6944829c7ab588578c32ecb0a6f58147e
ucsd-progsys/liquid-fixpoint
Refinements.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE OverloadedSt...
null
https://raw.githubusercontent.com/ucsd-progsys/liquid-fixpoint/20ce180b091775a5380bf001ba76be79dca8234f/src/Language/Fixpoint/Types/Refinements.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE DeriveGeneric # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE OverloadedStrings # # LANGUAGE UndecidableInstances # # LANGUAGE GADTs # # LANGUAGE PatternSynonyms # | This module has the types for represe...
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # LANGUAGE ViewPatterns # # OPTIONS_GHC -Wno - orphans ...
e296bd85069bf3d3344eb5ad68f920af39541c96c4b40b4515542f2fa774d746
sacerdot/CovidMonitoring
utenti.erl
-module(utenti). -export([start/0]). Avvio utenti in N attori ( N = 5 ) start()-> [spawn(fun utente/0) || _ <- lists:seq(1,5)]. Avvio utente padre utente()-> process_flag(trap_exit, true), Server = global:whereis_name(server), Ospedale = global:whereis_name(hospital), link(Server), Figlio ...
null
https://raw.githubusercontent.com/sacerdot/CovidMonitoring/fe969cd51869bbe6479da509c9a6ab21d43e6d11/LamiDrusianiCalarota/utenti.erl
erlang
Figlio per per gestire i contatti fra utenti
-module(utenti). -export([start/0]). Avvio utenti in N attori ( N = 5 ) start()-> [spawn(fun utente/0) || _ <- lists:seq(1,5)]. Avvio utente padre utente()-> process_flag(trap_exit, true), Server = global:whereis_name(server), Ospedale = global:whereis_name(hospital), link(Server), Figlio ...
5d7caa0e356c5dcfd67ddd072808d14ebfb347ac1bf08c88e1e59f67f28fb11f
lemmaandrew/CodingBatHaskell
startOz.hs
From Given a string , return a string made of the first 2 chars ( if present ) , however include first char only if it is ' o ' and include the second only if it is ' z ' , so \"ozymandias\ " yields \"oz\ " . Given a string, return a string made of the first 2 chars (if present), however include first char ...
null
https://raw.githubusercontent.com/lemmaandrew/CodingBatHaskell/d839118be02e1867504206657a0664fd79d04736/CodingBat/Warmup-1/startOz.hs
haskell
From Given a string , return a string made of the first 2 chars ( if present ) , however include first char only if it is ' o ' and include the second only if it is ' z ' , so \"ozymandias\ " yields \"oz\ " . Given a string, return a string made of the first 2 chars (if present), however include first char ...
f66cb9b55ca0c1d51cf1d77825521a2fd3113ea2ed34d4af523272fd62c9cffe
grav/seq
node.clj
(require 'cljs.build.api) (cljs.build.api/build "src-nodejs" {:main 'seq.nodejs :output-to "main.js" :target :nodejs})
null
https://raw.githubusercontent.com/grav/seq/ca0bccbe8e12b8cbfffdae4c3af85584de27be5a/script/node.clj
clojure
(require 'cljs.build.api) (cljs.build.api/build "src-nodejs" {:main 'seq.nodejs :output-to "main.js" :target :nodejs})
ea9cf13921edba859fa3d7a3577651ec6aef7e4c0a2889438bbe19f5699eb483
ocaml-doc/doc-ock
docOckLookup.mli
* Copyright ( c ) 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/ocaml-doc/doc-ock/788aabe6e3d157633890f67042d6a4d0161835a7/src/docOckLookup.mli
ocaml
* Copyright ( c ) 2014 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
3e28684b5d9ad3f0ca8ea5c6ebb05fc577c2752831c6221ae6ce2132515aa66b
jackfirth/lens
sublist.rkt
#lang reprovide lens/private/list/sublist
null
https://raw.githubusercontent.com/jackfirth/lens/733db7744921409b69ddc78ae5b23ffaa6b91e37/lens-unstable/unstable/lens/sublist.rkt
racket
#lang reprovide lens/private/list/sublist
6b5985227dc901954460c903eab2caa18c2a8a4ecf7fea3c3028316ae22a4ecf
rtrusso/scp
core.scm
(need util/string) (need util/vector) (need scheme/syntax/expand-context) (need scheme/syntax/core/specform) (need scheme/syntax/core/macro) (need scheme/syntax/core/reference) (need scheme/syntax/core/expand) (need scheme/syntax/core/env) (need scheme/syntax/core/context) (define (expand-immediate obj env c...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/scheme/syntax/core.scm
scheme
(display "binding->global ") (write binding) (newline)
(need util/string) (need util/vector) (need scheme/syntax/expand-context) (need scheme/syntax/core/specform) (need scheme/syntax/core/macro) (need scheme/syntax/core/reference) (need scheme/syntax/core/expand) (need scheme/syntax/core/env) (need scheme/syntax/core/context) (define (expand-immediate obj env c...
12766f1c4fd41bda3b1bd4a79efc9887405cf77f119cb7543589a933e95e4c8e
michaelballantyne/syntax-spec
qi-core.rkt
#lang racket/base (require "../../testing.rkt") (syntax-spec (nonterminal/nesting binding-floe (nested) (as v:racket-var) #:binding {(bind v) nested} (thread f:binding-floe ...) #:binding (nest f nested) f:simple-floe #:binding [f nested]) (nonterminal simple-floe v:racket-var (...
null
https://raw.githubusercontent.com/michaelballantyne/syntax-spec/87c308e1ea48a8ca02cc89552d15ecb71704482c/test/dsls/qi-core.rkt
racket
#lang racket/base (require "../../testing.rkt") (syntax-spec (nonterminal/nesting binding-floe (nested) (as v:racket-var) #:binding {(bind v) nested} (thread f:binding-floe ...) #:binding (nest f nested) f:simple-floe #:binding [f nested]) (nonterminal simple-floe v:racket-var (...
a89563feaa36c6ffcd83643c1c36c0f3ffb9e274010cbe22e24a1b9658eea137
glguy/advent
04.hs
# Language BlockArguments , ScopedTypeVariables , QuasiQuotes , TemplateHaskell , ViewPatterns # | Module : Main Description : Day 4 solution Copyright : ( c ) , 2020 License : ISC Maintainer : < > Passport validation Module : Main Description : Day 4 solution Copyright : (...
null
https://raw.githubusercontent.com/glguy/advent/d72f6fec89c1a57d90345ffa185fc8dbd3e2d595/solutions/src/2020/04.hs
haskell
| >>> :main
# Language BlockArguments , ScopedTypeVariables , QuasiQuotes , TemplateHaskell , ViewPatterns # | Module : Main Description : Day 4 solution Copyright : ( c ) , 2020 License : ISC Maintainer : < > Passport validation Module : Main Description : Day 4 solution Copyright : (...
c1bad198f641c2cece3bf9321912171b4565540a17542bfa18e229add6c24457
TrustInSoft/tis-kernel
options.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/occurrence/options.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of Frama - C. Copyright ( C ) 2007 - 2015 ...
94514bdc197974204fe84440ac9850aec46ea485e52063a908c05b631b8eee4e
err0r500/realworld-app-simple-haskell
Router.hs
module Adapter.Http.Scotty.Router where import qualified Adapter.Http.Lib as Lib import Adapter.Http.Scotty.LoginUser import Adapter.Http.Scotty.RegisterUser import qualified Network.HTTP.Types as HttpTypes import RIO import qualified Usecase.Interactor as UC import qualified Usecase.LogicHandler as UC import qualifie...
null
https://raw.githubusercontent.com/err0r500/realworld-app-simple-haskell/20ec982256ec890f0c77b572eccef987cd3799bf/src/Adapter/Http/Scotty/Router.hs
haskell
health check
module Adapter.Http.Scotty.Router where import qualified Adapter.Http.Lib as Lib import Adapter.Http.Scotty.LoginUser import Adapter.Http.Scotty.RegisterUser import qualified Network.HTTP.Types as HttpTypes import RIO import qualified Usecase.Interactor as UC import qualified Usecase.LogicHandler as UC import qualifie...
ed72ded37e4a545de52303045fd4eb06813ab068a8f3212df1d071186790f9e5
FranklinChen/hugs98-plus-Sep2006
STM.hs
----------------------------------------------------------------------------- -- | Module : Control . . STM Copyright : ( c ) The University of Glasgow 2004 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : experimental Portability : non - p...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/stm/Control/Monad/STM.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Software Transactional Memory: a modular composable concurrency abstraction. See <> -----------------------------------...
Module : Control . . STM Copyright : ( c ) The University of Glasgow 2004 Portability : non - portable ( requires STM ) * /Composable memory transactions/ , by , , , and , in /ACM Conference on Principles and Practice of Parallel Programming/ 2005 . module Control.Monad.STM ...
208fa6853e6c6a5de5041ba30b71fdcec03fb621442e8ad80b08ddc12328a329
DeathKing/Hit-DataStructure-On-Scheme
matrix-extend.scm
;; MATRIX-EXTENSION (define (matrix-each-with-index matrix proc) (let ((r (matrix-row-length matrix)) (c (matrix-col-length matrix))) (map (lambda (x) (map (lambda (y) (proc (matrix-ref matrix x y) x y)) (iota c))) (iota r)))) (define (matrix-each matrix proc) (let ((r (matrix-...
null
https://raw.githubusercontent.com/DeathKing/Hit-DataStructure-On-Scheme/11677e3c6053d6c5b37cf0509885f74ab5c2bab9/library/matrix-extend.scm
scheme
MATRIX-EXTENSION
(define (matrix-each-with-index matrix proc) (let ((r (matrix-row-length matrix)) (c (matrix-col-length matrix))) (map (lambda (x) (map (lambda (y) (proc (matrix-ref matrix x y) x y)) (iota c))) (iota r)))) (define (matrix-each matrix proc) (let ((r (matrix-row-length matrix)) ...
2a5872392b0fcb0bf5aaad8ac3a869547f9f4e9577224300938f193cdcfe0063
deadpendency/deadpendency
QualifiedRepo.hs
# OPTIONS_GHC -fno - warn - orphans # module Common.HtmlReport.Instances.QualifiedRepo () where import Common.HtmlReport.HtmlReport import Common.HtmlReport.HtmlReportDecodeError import Common.HtmlReport.Instances.Internal import Common.Model.Git.QualifiedRepo import Common.Model.Git.RepoHost import Common.Parsing.Re...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common/src/Common/HtmlReport/Instances/QualifiedRepo.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Common.HtmlReport.Instances.QualifiedRepo () where import Common.HtmlReport.HtmlReport import Common.HtmlReport.HtmlReportDecodeError import Common.HtmlReport.Instances.Internal import Common.Model.Git.QualifiedRepo import Common.Model.Git.RepoHost import Common.Parsing.Re...
f70a83ed3378ee7ef24ec11c1ce274e8ed46f7e2d8e59c655f3c99cb00a49f86
provinciesincijfers/gebiedsniveaus
3 kern_winkelgebieden.sps
* Encoding: windows-1252. * De dummy-gebiedsniveau introduceren een extra stap tussen de (K)WG en de gemeente. Dit om te voorkomen dat de (onvolledige!) data geaggregeerd zou worden naar gemeenteniveau. * Wacht op de definitieve versies (1 april) * haal de winkelgebieden en kernwinkelgebieden af van Teams * hint: nee...
null
https://raw.githubusercontent.com/provinciesincijfers/gebiedsniveaus/3862dd3774f5c9f24f33e912212e3f7a6d1ee1bb/scripts/3%20kern_winkelgebieden.sps
scheme
* Encoding: windows-1252. * De dummy-gebiedsniveau introduceren een extra stap tussen de (K)WG en de gemeente. Dit om te voorkomen dat de (onvolledige!) data geaggregeerd zou worden naar gemeenteniveau. * Wacht op de definitieve versies (1 april) * haal de winkelgebieden en kernwinkelgebieden af van Teams * hint: nee...
14d4c5e30c5fe4848b2ef6414159d399b5fbe0822e4bdfa17d81614a290dcada
scrintal/heroicons-reagent
arrow_right_circle.cljs
(ns com.scrintal.heroicons.outline.arrow-right-circle) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "rou...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/outline/arrow_right_circle.cljs
clojure
(ns com.scrintal.heroicons.outline.arrow-right-circle) (defn render [] [:svg {:xmlns "" :fill "none" :viewBox "0 0 24 24" :strokeWidth "1.5" :stroke "currentColor" :aria-hidden "true"} [:path {:strokeLinecap "round" :strokeLinejoin "rou...
f1ea99abe4057191902b005d547b5bac26892b21dee76d51e119eb3f53c67d09
achirkin/vulkan
Filter.hs
# OPTIONS_HADDOCK ignore - exports # {-# LANGUAGE DataKinds #-} # LANGUAGE GeneralizedNewtypeDeriving # {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE Strict #-} module Graphics.Vulkan.Types.Enum.Filter (VkFilter(VkFilter, VK_FILTER_NEAREST, VK_FILTER_LINEAR)) where...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Types/Enum/Filter.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # | type = @enum@
# OPTIONS_HADDOCK ignore - exports # # LANGUAGE GeneralizedNewtypeDeriving # module Graphics.Vulkan.Types.Enum.Filter (VkFilter(VkFilter, VK_FILTER_NEAREST, VK_FILTER_LINEAR)) where import Foreign.Storable (Storable) import GHC.Read (choose, expectP) import Graphics.Vulkan.M...
36c429bdba48de83c8474a574d1e42ad324a5e4b3ddacf4c5bced3ca9bfe167e
skypher/blackthorn
package.lisp
Blackthorn -- Lisp Game Engine ;;;; Copyright ( c ) 2007 - 2011 , < > ;;;; ;;;; Permission is hereby granted, free of charge, to any person ;;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;;;; restriction, including without limita...
null
https://raw.githubusercontent.com/skypher/blackthorn/914b38a95f1d192219f197e4b4a77b1632daa94b/src/collision-test/package.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following conditions:...
Blackthorn -- Lisp Game Engine Copyright ( c ) 2007 - 2011 , < > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRA...
3892ee380f97b7aaf6251f419049ed858bfc275821bbbf33ef31c9e2c6e2dfdf
ghcjs/ghcjs
Main.hs
module Main where import Pretty main = putStr ((ppShow (80::Int) pretty_stuff) ++ "\n") where pretty_stuff = ppAboves [ ppBesides [ppInt (-42), ppChar '@', ppStr "This is a string"], pp'SP, ppHang (ppStr "This is the label") (8::Int) (ppCat (take (50::Int) pp_words)) ] pp_words = pp_word : pp_w...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/nofib/spectral/pretty/Main.hs
haskell
module Main where import Pretty main = putStr ((ppShow (80::Int) pretty_stuff) ++ "\n") where pretty_stuff = ppAboves [ ppBesides [ppInt (-42), ppChar '@', ppStr "This is a string"], pp'SP, ppHang (ppStr "This is the label") (8::Int) (ppCat (take (50::Int) pp_words)) ] pp_words = pp_word : pp_w...
55eaf078888edc89872f8adcf398f8a8fa196ed92ee0a18e810ca30e0a917d04
SFML-haskell/SFML
SFBounded.hs
module SFML.Graphics.SFBounded where import SFML.Graphics.Rect class SFBounded a where -- | Get the local bounding rectangle of a boundable. -- -- The returned rectangle is in local coordinates, which means -- that it ignores the transformations (translation, rotation, -- scale, ...) that are a...
null
https://raw.githubusercontent.com/SFML-haskell/SFML/1d1ceee6bc782f4f194853fbd0cc4acb33b86d41/src/SFML/Graphics/SFBounded.hs
haskell
| Get the local bounding rectangle of a boundable. The returned rectangle is in local coordinates, which means that it ignores the transformations (translation, rotation, scale, ...) that are applied to the entity. In other words, this function returns the bounds of the entity in the entity's coordinate system. ...
module SFML.Graphics.SFBounded where import SFML.Graphics.Rect class SFBounded a where getLocalBounds :: a -> IO FloatRect getGlobalBounds :: a -> IO FloatRect
08e26935368c2fb4f28c97f101103e430c9c7cb59c8b68560b4adeeb8d8691db
racket/rhombus-prototype
nested-bindings.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse/pre shrubbery/print) racket/unsafe/undefined "binding.rkt" "parse.rkt" "forwarding-sequence.rkt" "composite.rkt" "static-info.rkt") (provide nested-bindings) ...
null
https://raw.githubusercontent.com/racket/rhombus-prototype/dcf7fb9b002c0957fc0adbf9bd3475c26a8b2c01/rhombus/private/nested-bindings.rkt
racket
#lang racket/base (require (for-syntax racket/base syntax/parse/pre shrubbery/print) racket/unsafe/undefined "binding.rkt" "parse.rkt" "forwarding-sequence.rkt" "composite.rkt" "static-info.rkt") (provide nested-bindings) ...
cfaade7b241c1d574197f64a70cfc1d63625aa1539b71cc4da19b4f8e451c26f
antoniogarrote/clj-ml
distance_functions_test.clj
(ns clj-ml.distance-functions-test (:use [clj-ml distance-functions] :reload-all) (:use [clojure.test])) (deftest make-distance-function-euclidean (let [dist (clj-ml.distance-functions/make-distance-function :euclidean {:attributes [0 1 2 3]}) options (.getOptions dist)] (is (= (aget options 0) ...
null
https://raw.githubusercontent.com/antoniogarrote/clj-ml/a6e3a41b7eed0c31ea344b286ebbeb0e81ce68bc/test/clj_ml/distance_functions_test.clj
clojure
(ns clj-ml.distance-functions-test (:use [clj-ml distance-functions] :reload-all) (:use [clojure.test])) (deftest make-distance-function-euclidean (let [dist (clj-ml.distance-functions/make-distance-function :euclidean {:attributes [0 1 2 3]}) options (.getOptions dist)] (is (= (aget options 0) ...