_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
b4a496e45950618602f8c05048255ac0c40a84bd45d88e079f9b542e5daf81a5
ianmbloom/gudni
Segment.hs
{-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE TemplateHaskell #-} ----------------------------------------------------------------------------- -- | -- Module : Graphics.Gudni.Figure.Segment Copyright : ( c ) 2019 -- License : BSD-style (see the file libraries/base/LICENSE) -- Maintai...
null
https://raw.githubusercontent.com/ianmbloom/gudni/fa69f1bf08c194effca05753afe5455ebae51234/src/Graphics/Gudni/Figure/Segment.hs
haskell
# LANGUAGE PatternSynonyms # # LANGUAGE TemplateHaskell # --------------------------------------------------------------------------- | Module : Graphics.Gudni.Figure.Segment License : BSD-style (see the file libraries/base/LICENSE) Stability : experimental Portability : portable Segm...
Copyright : ( c ) 2019 Maintainer : module Graphics.Gudni.Figure.Segment ( Segment (..) , anchor , control , pattern Straight , straight , pattern Curved , curved , hasControl , overSegment , randomSegmentFromPoints ) where import Graphics.Gudni.Figure.Space import Graphics.Gud...
4591694578b3e26f94ec8b59e9e9063541f7149dd1ce625e55b46f6cd4511273
tsloughter/kuberl
kuberl_v1beta1_daemon_set_list.erl
-module(kuberl_v1beta1_daemon_set_list). -export([encode/1]). -export_type([kuberl_v1beta1_daemon_set_list/0]). -type kuberl_v1beta1_daemon_set_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v1_list_meta:kuberl_v1_list_meta() }. encod...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_daemon_set_list.erl
erlang
-module(kuberl_v1beta1_daemon_set_list). -export([encode/1]). -export_type([kuberl_v1beta1_daemon_set_list/0]). -type kuberl_v1beta1_daemon_set_list() :: #{ 'apiVersion' => binary(), 'items' := list(), 'kind' => binary(), 'metadata' => kuberl_v1_list_meta:kuberl_v1_list_meta() }. encod...
42767deb02e9156687ff71387de170885694ed3f1a5397493ddce50699a28bf5
turion/rhine
Combined.hs
| A pure @gloss@ backend for Rhine , with separated event and simulation loop . To run pure Rhine apps with @gloss@ , write a signal network ( ' SN ' ) in the ' GlossCombinedClock ' and use ' flowGlossCombined ' . As an easy starter , you can use the helper function ' buildGlossRhine ' . with separated eve...
null
https://raw.githubusercontent.com/turion/rhine/068d9751f2c082be7563e872a85bfda8777a721b/rhine-gloss/src/FRP/Rhine/Gloss/Pure/Combined.hs
haskell
# LANGUAGE Arrows # rhine rhine-gloss | The overall clock of a pure @rhine@ 'SN' that can be run by @gloss@. @a@ is the type of subevents that are selected. | Schedule the subclocks of the 'GlossCombinedClock'. ** Events | Select the relevant events by converting them to @Just a@, and the irrelevant ones to...
| A pure @gloss@ backend for Rhine , with separated event and simulation loop . To run pure Rhine apps with @gloss@ , write a signal network ( ' SN ' ) in the ' GlossCombinedClock ' and use ' flowGlossCombined ' . As an easy starter , you can use the helper function ' buildGlossRhine ' . with separated eve...
5b7d91edeedd8a1a3b35a634df20874ffe1f193d7a6852f19934af97665af9de
simingwang/emqx-plugin-kafkav5
erl_boot_server.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2018 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/simingwang/emqx-plugin-kafkav5/bbf919e56dbc8fd2d4c1c541084532f844a11cbc/_build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/erl_boot_server.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1996 - 2018 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , A simple boot_server at a CP . This server should know about which slaves ( DP 's or whatever ) to boot . -modul...
02a192b02136360322e82537912e6b7d085b6826fcbcacb23ab6b6628a97fc7a
petelliott/pscheme
file.scm
(define-library (pscheme compiler file) (import (scheme base) (scheme char) (pscheme compiler error)) (export make-span span? span-form span-file span-sr span-sc span-er span-ec copy-span span-read-all ...
null
https://raw.githubusercontent.com/petelliott/pscheme/b529ac9d102047e332a6f03ca9a65868b0b82a59/scm/pscheme/compiler/file.scm
scheme
) hex support is an extension ) non-standard extension
(define-library (pscheme compiler file) (import (scheme base) (scheme char) (pscheme compiler error)) (export make-span span? span-form span-file span-sr span-sc span-er span-ec copy-span span-read-all ...
08475d0577367a6eeb2675da9a0669537b76816af929c9dc58c02a3fa76e55a5
huiqing/percept2
test.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2010 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/huiqing/percept2/fa796a730d6727210a71f185e6a39a960c2dcb90/case_studies/pp_v0/test.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2007 - 2010 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " @doc Percept2 - An Enhanced version of th...
f6dd5e2d3e4d628aaea033a1817ddceabf3c7b63da20339200b5b6bc3a5c0a47
samcf/ogres
hooks.cljs
(ns ogres.app.hooks (:require [ogres.app.provider.events :as provider.events] [ogres.app.provider.image :as provider.image] [ogres.app.provider.portal :as provider.portal] [ogres.app.provider.state :as provider.state] [ogres.app.provider.storage :as provider.storage] ...
null
https://raw.githubusercontent.com/samcf/ogres/c6441f6556403b3c4ed4300f38718173c18e8838/src/main/ogres/app/hooks.cljs
clojure
use this
(ns ogres.app.hooks (:require [ogres.app.provider.events :as provider.events] [ogres.app.provider.image :as provider.image] [ogres.app.provider.portal :as provider.portal] [ogres.app.provider.state :as provider.state] [ogres.app.provider.storage :as provider.storage] ...
d188342eca277cb3242824a44709b695bf1377ca5896b507bb21c7732a9979d1
ladderlife/clj-tutorial
core.clj
;; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ;; An Introduction to ClojureScript for Light Table users ;; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ;; Basics ;; ============================================================================ To be...
null
https://raw.githubusercontent.com/ladderlife/clj-tutorial/9302f94ff0bfdf5aae9801b2b1ee855a8d88bc5d/src/clj-tutorial/core.clj
clojure
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ An Introduction to ClojureScript for Light Table users +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Basics ============================================================================ Light Table UI. Onc...
To begin , open the command pane ( type Control - SPACE ) , Add Connection , select IMPORTANT : You must evaluate the very first form , the namespace ClojureScript supports modularity via namespaces . They allow you to group (ns clj-tutorial.core (:require [clojure.string :as string])) (clojure.string/...
0b9d1d1c356ce54611c616ef8941a057130c7b434c6bb9cd6d2dda5e555d2c3b
huangz1990/SICP-answers
80-install-rational-package.scm
;;; 80-install-rational-package.scm (load "p123-put-and-get.scm") (load "p119-tag.scm") (define (install-rational-package) (define (numer x) (car x)) (define (denom x) (cdr x)) (define (make-rat n d) (let ((g (gcd n d))) (cons (/ n g) (/ d g)))) ;;; interface to ...
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/80-install-rational-package.scm
scheme
80-install-rational-package.scm interface to rest of the system 新增
(load "p123-put-and-get.scm") (load "p119-tag.scm") (define (install-rational-package) (define (numer x) (car x)) (define (denom x) (cdr x)) (define (make-rat n d) (let ((g (gcd n d))) (cons (/ n g) (/ d g)))) (define (tag x) (attach-tag 'rational x)) ...
0234292fe3b9d70648a59711d05da9b6dcc53a28754b43a6657c9a33ab35fb27
sgbj/MaximaSharp
autoconf-variables.lisp
; -*- Lisp -*- (in-package :maxima) (defparameter *autoconf-variables-set* "@variables_set@") (defparameter *autoconf-prefix* "c:/maxima") (defparameter *autoconf-exec_prefix* "c:/maxima") (defparameter *autoconf-package* "maxima") (defparameter *autoconf-version* "5.30.0") (defparameter *autoconf-libdir* "c:/maxima/l...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/src/autoconf-variables.lisp
lisp
-*- Lisp -*-
(in-package :maxima) (defparameter *autoconf-variables-set* "@variables_set@") (defparameter *autoconf-prefix* "c:/maxima") (defparameter *autoconf-exec_prefix* "c:/maxima") (defparameter *autoconf-package* "maxima") (defparameter *autoconf-version* "5.30.0") (defparameter *autoconf-libdir* "c:/maxima/lib") (defparame...
cf97669dd5cb1fa0ee8c1d733327ee7ddd1151409b899d555bf57daa29c06081
dzen-dhall/dzen-dhall
Main.hs
# LANGUAGE QuasiQuotes # module Main where import qualified DzenDhall.Test.AST import qualified DzenDhall.Test.AST.Render import qualified DzenDhall.Test.Animation.Marquee import qualified DzenDhall.Test.Arguments import qualified DzenDhall.Test.Config import qualified DzenDhall.Test.Event import qualified DzenDhall.T...
null
https://raw.githubusercontent.com/dzen-dhall/dzen-dhall/ee43b74272d6776ce57adfd7b7d85650580a6cbb/test/Main.hs
haskell
# LANGUAGE QuasiQuotes # module Main where import qualified DzenDhall.Test.AST import qualified DzenDhall.Test.AST.Render import qualified DzenDhall.Test.Animation.Marquee import qualified DzenDhall.Test.Arguments import qualified DzenDhall.Test.Config import qualified DzenDhall.Test.Event import qualified DzenDhall.T...
3afd2cab442827c2427e6c1f49f5a348b4abd226da45a20c9b427401b17fb865
dams/graphite-riakts
graphite_riakts_sup.erl
%%%------------------------------------------------------------------- %% @doc graphite_riakts top level supervisor. %% @end %%%------------------------------------------------------------------- -module(graphite_riakts_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([i...
null
https://raw.githubusercontent.com/dams/graphite-riakts/9f1e77984556cec99fe21d9d7ca2dbcde9c80bc3/src/graphite_riakts_sup.erl
erlang
------------------------------------------------------------------- @doc graphite_riakts top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks Helper macro for declaring children of supervisor
-module(graphite_riakts_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). Child : : { Id , StartFunc , Restart , Shutdown , Type , Modules } -define(CHILD(I, J), {I, {I, start_link, []}, J, 5000, worker, [I]}). start_link() -> supervisor:start_link(...
c1010a6159a442ec390bd5935e97c3759f416f727d3d13dc683927185d11e764
d-cent/objective8
users.clj
(ns objective8.back-end.domain.users (:require [objective8.back-end.storage.storage :as storage])) (defn retrieve-user [user-uri] (let [result (storage/pg-retrieve-entity-by-uri user-uri)] (when (get result :_id) result))) (defn find-user-by-auth-provider-user-id [auth-provider-user-id] (-> (storage/pg-retr...
null
https://raw.githubusercontent.com/d-cent/objective8/db8344ba4425ca0b38a31c99a3b282d7c8ddaef0/src/objective8/back_end/domain/users.clj
clojure
(ns objective8.back-end.domain.users (:require [objective8.back-end.storage.storage :as storage])) (defn retrieve-user [user-uri] (let [result (storage/pg-retrieve-entity-by-uri user-uri)] (when (get result :_id) result))) (defn find-user-by-auth-provider-user-id [auth-provider-user-id] (-> (storage/pg-retr...
17d2481783d524ed1b24abedf3c3b2b0e6ff6744217e1c566b11efbdbdb9db2c
NathanReb/ppx_yojson
test_integer_const.ml
let test_is_binary = let make_test input expected = let test_name = Printf.sprintf "is_binary: %S" input in let test_fun () = Alcotest.(check bool) test_name expected (Ppx_yojson_lib.Integer_const.is_binary input) in (test_name, `Quick, test_fun) in [ make_test "0b1" true; ma...
null
https://raw.githubusercontent.com/NathanReb/ppx_yojson/085844cbbbc199689faeeee0c9bc1f4d9bc5f4f9/test/lib/test_integer_const.ml
ocaml
let test_is_binary = let make_test input expected = let test_name = Printf.sprintf "is_binary: %S" input in let test_fun () = Alcotest.(check bool) test_name expected (Ppx_yojson_lib.Integer_const.is_binary input) in (test_name, `Quick, test_fun) in [ make_test "0b1" true; ma...
8428d909dc4802386d7d1868f19e735bf2d1311818163534e025dc81f13d5d2b
rorra/rorracasts_erlang
multiplicador.erl
-module(multiplicador). -compile(export_all). -vsn(1.0). loop() -> receive {multiplicar, Nro} -> io:format("Resultado: ~w~n", [Nro * 5]), loop(); upgradear -> multiplicador:loop(); Mensaje -> io:format("Error: ~w~n", [Mensaje]), loop() end.
null
https://raw.githubusercontent.com/rorra/rorracasts_erlang/c50d20abe3f1a65001576734caedae90f36e3ecd/019-actualizacion-de-codigo/multiplicador.erl
erlang
-module(multiplicador). -compile(export_all). -vsn(1.0). loop() -> receive {multiplicar, Nro} -> io:format("Resultado: ~w~n", [Nro * 5]), loop(); upgradear -> multiplicador:loop(); Mensaje -> io:format("Error: ~w~n", [Mensaje]), loop() end.
d35da9886191bb87edb7a2c4e36b38f3cd691b3c9f35736dce405dd75edd28c2
bsaleil/lc
triangl.scm.scm
;;------------------------------------------------------------------------------ Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst...
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/tools/benchtimes/resultbak/m5eponly/triangl.scm.scm
scheme
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Gabriel benchmarks C benchmarks Other benchmarks
Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst) `(vector ,@lst)) (def-macro (FLOATmake-vector n . init) `(make-vector ,...
883f4e2680cd3f73148c79806c9dc1994d21df4d8fff92109117130a0b302151
NalaGinrut/artanis
debug.scm
-*- indent - tabs - mode : nil ; coding : utf-8 -*- Copyright ( C ) 2015,2016 " Mu Lei " known as " NalaGinrut " < > Artanis is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License and GNU Lesser General Public License published by the Free ...
null
https://raw.githubusercontent.com/NalaGinrut/artanis/3412d6eb5b46fde71b0965598ba085bacc2a6c12/artanis/debug.scm
scheme
coding : utf-8 -*- any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and GNU Lesser General Public License for more details. and GNU Lesser General Public License along with this program...
Copyright ( C ) 2015,2016 " Mu Lei " known as " NalaGinrut " < > Artanis is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License and GNU Lesser General Public License published by the Free Software Foundation , either version 3 of the License ...
710eddbef90b7943544eec2c2784fe3063e1c695082af993d528d5262767ffb5
kelamg/HtDP2e-workthrough
ex262.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex262) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Abstraction/ex262.rkt
racket
about the language level of this file in a form that our tools can easily process. N -> [List-of N]
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-reader.ss" "lang")((modname ex262) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) An NMatrix is a [ List - of [ List - of N ] ] N - > NMat...
bdf4902ad85f4739a099236261a8f0f3bbf1033d317065c50e9146d02dc6068b
van-clj/zetta-parser
clojure.clj
(ns zetta.examples.clojure ^{:doc "A parser for a subset of Clojure"} (:refer-clojure :exclude [char]) (:require [clojure.core :as core] [clojure.string :as str] [clojure.java.io :as io] [zetta.core :as z :refer [<$> <* *>]] [zetta.combinators ...
null
https://raw.githubusercontent.com/van-clj/zetta-parser/303cee3dab514ba615fd032cb1fff2405a33ce82/src/zetta/examples/clojure.clj
clojure
(ns zetta.examples.clojure ^{:doc "A parser for a subset of Clojure"} (:refer-clojure :exclude [char]) (:require [clojure.core :as core] [clojure.string :as str] [clojure.java.io :as io] [zetta.core :as z :refer [<$> <* *>]] [zetta.combinators ...
7329384db2ca3c75300e1099a4eaac205f74f5d2b72391528c47a60e34c53970
dwayne/eopl3
interpreter.test.rkt
#lang racket (require "./interpreter.rkt") (require rackunit) (check-equal? (run "5") (num-val 5)) (check-equal? (run "x") (num-val 10)) (check-equal? (run "zero?(i)") (bool-val #f)) (check-equal? (run "zero?(-(i, 1))") (bool-val #t)) (check-equal? (run "-(55, -(x, 11))") (num-val 56)) (check-equal? ...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/03-ch3/interpreters/racket/LET-3.7/interpreter.test.rkt
racket
#lang racket (require "./interpreter.rkt") (require rackunit) (check-equal? (run "5") (num-val 5)) (check-equal? (run "x") (num-val 10)) (check-equal? (run "zero?(i)") (bool-val #f)) (check-equal? (run "zero?(-(i, 1))") (bool-val #t)) (check-equal? (run "-(55, -(x, 11))") (num-val 56)) (check-equal? ...
2b07f648bef7f486894911cbf7b84f22273fb09d004d08c0c83dd0e5a16242f9
ppelleti/normalization-insensitive
NormalizationInsensitive.hs
# LANGUAGE NoImplicitPrelude , Trustworthy # ----------------------------------------------------------------------------- -- | Module : Data . Unicode . NormalizationInsensitive Copyright : ( c ) 2011 - 2013 , ( c ) 2016 -- License : BSD-style (see the file LICENSE) Maint...
null
https://raw.githubusercontent.com/ppelleti/normalization-insensitive/5f18e8a6a5261405e15fd418ca279da62f96e54e/Data/Unicode/NormalizationInsensitive.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) This module is intended to be imported qualified. May I suggest: @ @ ---------------------------------------------------------------------------
# LANGUAGE NoImplicitPrelude , Trustworthy # Module : Data . Unicode . NormalizationInsensitive Copyright : ( c ) 2011 - 2013 , ( c ) 2016 Maintainer : < > import Data . Unicode . NormalizationInsensitive ( NI ) import qualified Data . Unicode . Normaliz...
c707bc73717516e234d76d808b9eadee150d0a062248c76a7f63ab94aa4f0440
BitGameEN/bitgamex
recon_lib.erl
@author < > %%% [/] %%% @doc Regroups useful functionality used by recon when dealing with data %%% from the node. The functions in this module allow quick runtime access %%% to fancier behaviour than what would be done using recon module itself. %%% @end -module(recon_lib). -export([sliding_window/2, sample/2, c...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/recon/src/recon_lib.erl
erlang
[/] @doc Regroups useful functionality used by recon when dealing with data from the node. The functions in this module allow quick runtime access to fancier behaviour than what would be done using recon module itself. @end private exports @doc Runs a fun once, waits `Ms', runs the fun again, and returns both ...
@author < > -module(recon_lib). -export([sliding_window/2, sample/2, count/1, port_list/1, port_list/2, proc_attrs/1, proc_attrs/2, inet_attrs/1, inet_attrs/2, triple_to_pid/3, term_to_pid/1, term_to_port/1, time_map/5, time_fold/6, scheduler_usage_dif...
e0bcabf12f326c8a1430404367453f4bb382b79a1c7ca992336ade77cf681621
finnishtransportagency/harja
toimenpiteet_test.clj
(ns harja.palvelin.integraatiot.sampo.kasittely.toimenpiteet-test (:require [clojure.test :refer [deftest is use-fixtures]] [harja.testi :refer :all] [harja.palvelin.integraatiot.sampo.tyokalut :refer :all] [harja.palvelin.integraatiot.sampo.tyokalut.virheet :as virheet] ...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/67b0ec8ba5029942438fb8979508ec735354835e/test/clj/harja/palvelin/integraatiot/sampo/kasittely/toimenpiteet_test.clj
clojure
(ns harja.palvelin.integraatiot.sampo.kasittely.toimenpiteet-test (:require [clojure.test :refer [deftest is use-fixtures]] [harja.testi :refer :all] [harja.palvelin.integraatiot.sampo.tyokalut :refer :all] [harja.palvelin.integraatiot.sampo.tyokalut.virheet :as virheet] ...
aa9031f5a320be29c57d729157d5e1bca9179c57df6d293ce1c202ed1c0d2462
GrantMatejka/rasm
expand.rkt
#lang racket (require syntax/kerncase syntax/stx racket/syntax syntax/parse "types.rkt" "utils.rkt") (provide expand-file build-ast) (define TOP_LVL_FORM_ERROR "ERROR: Please provide a module as the top form to compile") Opens the specified file and returns fully expan...
null
https://raw.githubusercontent.com/GrantMatejka/rasm/c7cd46cf57131a430a67bbe77910c8f30f206c08/expand.rkt
racket
exp is a fully expanded racket program split our top level forms into provides and declarations We expect a module as the top level form to compile This handles module and submodule form, any false return values mean the form is ignored For the general top level forms These will all be top level definitions, so e...
#lang racket (require syntax/kerncase syntax/stx racket/syntax syntax/parse "types.rkt" "utils.rkt") (provide expand-file build-ast) (define TOP_LVL_FORM_ERROR "ERROR: Please provide a module as the top form to compile") Opens the specified file and returns fully expan...
995c5077829e9d061fc6ceeb0d3851c0b8b7086bdf603739aa1fab4448f39135
conjure-cp/conjure
Supset.hs
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.Supset where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common import qualified Data.Aeson as JSON -- aeson import qualified Data.HashMap.Strict as M ...
null
https://raw.githubusercontent.com/conjure-cp/conjure/dd5a27df138af2ccbbb970274c2b8f22ac6b26a0/src/Conjure/Language/Expression/Op/Supset.hs
haskell
aeson unordered-containers vector
# LANGUAGE DeriveGeneric , DeriveDataTypeable , DeriveFunctor , , DeriveFoldable # module Conjure.Language.Expression.Op.Supset where import Conjure.Prelude import Conjure.Language.Expression.Op.Internal.Common data OpSupset x = OpSupset x x deriving (Eq, Ord, Show, Data, Functor, Traversable, Foldable, Typea...
36cc45c1d432e9b740cd1945fb44f5eadf4e3f6d765fc1919952af06b1b91567
plow-technologies/hspec-golden-aeson
GoldenSpecs.hs
| Module : Test . Aeson . Internal . GoldenSpecs Description : Golden tests for Arbitrary Copyright : ( c ) Plow Technologies , 2016 License : : Stability : Beta Internal module , use at your own risk . Module : Test.Aeson.Internal.GoldenSpecs Description : Golden tests for A...
null
https://raw.githubusercontent.com/plow-technologies/hspec-golden-aeson/2d8ed8ea6edad8e2d2a4f0ea1017b388d93c467d/src/Test/Aeson/Internal/GoldenSpecs.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RecordWildCards # # LANGUAGE RankNTypes # | Tests to ensure that JSON encoding has not unintentionally changed. This could be caused by the following: - Selectors have been edited, added or deleted. works. If you run this function and the golden files do not exi...
| Module : Test . Aeson . Internal . GoldenSpecs Description : Golden tests for Arbitrary Copyright : ( c ) Plow Technologies , 2016 License : : Stability : Beta Internal module , use at your own risk . Module : Test.Aeson.Internal.GoldenSpecs Description : Golden tests for A...
4cb6ae5e1a132b64331b127fb72b2bc13cec89501a9ee1e6616bd8826a4cec3c
lispgames/perfectstorm
util.lisp
(in-package :storm) ; sybs dirty little secrets (defclass range () ((left-bound :initform (error "Missing left-bound.") :initarg :left-bound) (open-to-left :initform nil :initarg :open-to-left) (right-bound :initform (error "Missing right-bound.") :initarg :right-bound) (open-to-rig...
null
https://raw.githubusercontent.com/lispgames/perfectstorm/a21e0420deb3ec83e9d776241ab37e78c5f29b94/perfectstorm/util.lisp
lisp
sybs dirty little secrets
(in-package :storm) (defclass range () ((left-bound :initform (error "Missing left-bound.") :initarg :left-bound) (open-to-left :initform nil :initarg :open-to-left) (right-bound :initform (error "Missing right-bound.") :initarg :right-bound) (open-to-right :initform nil :in...
391530bfc47cd702d2990a9283ee50623662928266849d4b6eff95180f1a445f
palainp/torrefacteur
tor_constants.ml
from : /-/blob/main/tor-spec.txt The ' Command ' field of a fixed - length cell holds one of the following values : 0 -- PADDING ( Padding ) ( See Sec 7.2 ) 1 -- CREATE ( Create a circuit ) ( See Sec 5.1 ) 2 -- CREATED ( Acknowledge ...
null
https://raw.githubusercontent.com/palainp/torrefacteur/a679aaf7bb6295b2738c91f2312edd379946d05f/tor_constants.ml
ocaml
from : /-/blob/main/tor-spec.txt The ' Command ' field of a fixed - length cell holds one of the following values : 0 -- PADDING ( Padding ) ( See Sec 7.2 ) 1 -- CREATE ( Create a circuit ) ( See Sec 5.1 ) 2 -- CREATED ( Acknowledge ...
181318abbac88103da893c9e9c668cbd4be90ff3a365764781bb569478b459f3
haskell/vector
length-int32.hs
import qualified Data.Vector as U import Data.Int main = print (U.length (U.replicate 1 (7 :: Int32)))
null
https://raw.githubusercontent.com/haskell/vector/4c87e88f07aad166c6ae2ccb94fa539fbdd99a91/old-testsuite/microsuite/length-int32.hs
haskell
import qualified Data.Vector as U import Data.Int main = print (U.length (U.replicate 1 (7 :: Int32)))
3798884bc50641f3a50c43d55081e3ab4a5bc1f798c12523f233f0aff04a0be0
maxsnew/modal-scheme
main.rkt
#lang racket/base (require "fiddle.rkt" syntax/parse (for-syntax racket/base syntax/parse) (only-in turnstile define-primop)) (provide (all-from-out "fiddle.rkt") require for-syntax only-in except-in provide begin-for-syntax define-syntax define-primop (re...
null
https://raw.githubusercontent.com/maxsnew/modal-scheme/3bcda7f40e7b878049d23ed553767988d6a83324/fiddle/main.rkt
racket
#;#:do Notice To install (from within the package directory): To install (once uploaded to pkgs.racket-lang.org): To uninstall: To view documentation: $ raco docs <<name>> desired license. Some users like to add a `private/` directory, place auxiliary files there, and require them in `main.rkt`. See the ...
#lang racket/base (require "fiddle.rkt" syntax/parse (for-syntax racket/base syntax/parse) (only-in turnstile define-primop)) (provide (all-from-out "fiddle.rkt") require for-syntax only-in except-in provide begin-for-syntax define-syntax define-primop (re...
55555827e72f68300dde16f8b3eba065aabd1ec588babe3528ae733d8e798ea6
gedge-platform/gs-broker
eetcd_health_gen.erl
%%%------------------------------------------------------------------- @doc Behaviour to implement for eectd Etcd . Health @private %% All detail documents please visit -io/etcd/blob/master/Documentation/dev-guide/api_reference_v3.md %% @end %%%---------------------------------------------------------------...
null
https://raw.githubusercontent.com/gedge-platform/gs-broker/c4c1ad39e563537d46553eae1363317cf75aff26/broker-server/deps/eetcd/src/clients/eetcd_health_gen.erl
erlang
------------------------------------------------------------------- All detail documents please visit -io/etcd/blob/master/Documentation/dev-guide/api_reference_v3.md @end ------------------------------------------------------------------- @doc Unary RPC for service at path "/etcdserverpb.Health/Check"
@doc Behaviour to implement for eectd Etcd . Health @private This module was generated on 2020 - 04 - 02T02:00:45 + 00:00 and should not be modified manually -module(eetcd_health_gen). -export([check/1]). -export([watch/1]). -spec check(router_pb:'Etcd.HealthCheckRequest'()) -> {ok, router_p...
8f8269cb660db71ed928e198091d1a1f458c0cb125d12435ee9bcbd31634ebe2
dktr0/estuary
MultilingualEditor.hs
# LANGUAGE RecursiveDo # module Estuary.Widgets.MultilingualEditor where import Reflex import Reflex.Dom import Reflex.Dynamic import Data.Text import Data.Map as M import Data.Maybe import Estuary.Widgets.Reflex import Estuary.Widgets.W import Estuary.Types.Language import Estuary.Types.TranslatableText type Tr...
null
https://raw.githubusercontent.com/dktr0/estuary/d35fdb37bee3a55701131ccdbda3eb5255b86929/client/src/Estuary/Widgets/MultilingualEditor.hs
haskell
Event Text Event t (CalendarEvent -> CalendarEvent)-- Event t CalendarEvent debe ser solo Dynamic Text Dynamic t Text Dynamic t Text Dynamic t (Map Int Text) Map k Text -> Dynamic t k -> m (Event t k) Dynamic t Text main = mainWidget $ do : : TranslatableText Event TranslatableText delta <- holdDyn init...
# LANGUAGE RecursiveDo # module Estuary.Widgets.MultilingualEditor where import Reflex import Reflex.Dom import Reflex.Dynamic import Data.Text import Data.Map as M import Data.Maybe import Estuary.Widgets.Reflex import Estuary.Widgets.W import Estuary.Types.Language import Estuary.Types.TranslatableText type Tr...
d912e442fedd6e8759d6fdddd4b82fa053d488ee556c5a39a2e0a5c59e3bea78
jordanthayer/ocaml-search
rrt_bias_plot.ml
* @author jtd7 @since 2012 - 01 - 30 @author jtd7 @since 2012-01-30 *) let get_first_non_inf (times,costs) = let first_finite = ref (-1) in Array.iteri (fun i el -> if !first_finite < 0 && Math.finite_p el then first_finite := i) costs; if !first_finite < 0 then (try ti...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/spt_plot/scripts/jtd7/rrt_bias_plot.ml
ocaml
Array.map (fun v -> v -. pc) ~y_max:20. ~y_max:1000. ~y_min:0. bias, hweight, iterations, stepsize, instance
* @author jtd7 @since 2012 - 01 - 30 @author jtd7 @since 2012-01-30 *) let get_first_non_inf (times,costs) = let first_finite = ref (-1) in Array.iteri (fun i el -> if !first_finite < 0 && Math.finite_p el then first_finite := i) costs; if !first_finite < 0 then (try ti...
a34f0b31df43129e0ae69d90d76c0ff9467b8fc86c1ec64f28b7d37568374392
noinia/hgeometry
ConvexHull.hs
# LANGUAGE OverloadedLabels # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Main where import Algorithms.Geometry.ConvexHull.GrahamScan (convexHull) import Control.Exception (catch) import Control.Lens import Data.Ext import Data.GI.Base im...
null
https://raw.githubusercontent.com/noinia/hgeometry/89cd3d3109ec68f877bf8e34dc34b6df337a4ec1/hgeometry-web/old/ConvexHull.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ openFileMenuItem <- castB b "openFileMenuItem" Gtk.ImageMenuItem openFileClickE <- signalE0 openFileMenuItem #activate colorButton <- castB b "colorButton" Gtk.Button pressedE <- signalE0 c...
# LANGUAGE OverloadedLabels # # LANGUAGE ScopedTypeVariables # module Main where import Algorithms.Geometry.ConvexHull.GrahamScan (convexHull) import Control.Exception (catch) import Control.Lens import Data.Ext import Data.GI.Base import Geometry import ...
cd98d17896dc91e99e1bde3d2e6b81631721be30754a8fb3aa84ba352b77651c
mpickering/apply-refact
Comment1.hs
-- {- INLINE X -}
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Comment1.hs
haskell
{- INLINE X -}
dbdf5a9771f76e18ea110e75561677c9b1a92f07b2eae9ed424fc8874029f22e
philnguyen/soft-contract
issue-105a.rkt
#lang racket (struct foo (x)) (provide (contract-out (foo-x (-> foo? integer?))))
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/issues/issue-105a.rkt
racket
#lang racket (struct foo (x)) (provide (contract-out (foo-x (-> foo? integer?))))
29e2851cd10d5062cb22143dce69c058d5f3c4ab3a51f448d1a2c0c85a57d559
phaazon/luminance
Query.hs
----------------------------------------------------------------------------- -- | Copyright : ( C ) 2015 , 2016 -- License : BSD3 -- Maintainer : < > -- Stability : experimental -- Portability : portable ----------------------------------------------------------------------------- module Graphics....
null
https://raw.githubusercontent.com/phaazon/luminance/88b8f40b8d1ceec1f8fd1a111ccaffec5d9283a8/src/Graphics/Luminance/Query.hs
haskell
--------------------------------------------------------------------------- | License : BSD3 Stability : experimental Portability : portable --------------------------------------------------------------------------- * Available queries
Copyright : ( C ) 2015 , 2016 Maintainer : < > module Graphics.Luminance.Query ( getGLVendor , getGLRenderer , getGLVersion , getGLSLVersion , getGLExtensions ) where import Graphics.Luminance.Core.Query
95606658bcfb32a4b04bb9e9cfdcc5dc7181bebecc3d3fe41a4c880bd2d44ae5
cbiffle/ruckus
model.rkt
#lang racket ; Basic data types. (provide (struct-out node) node-att-ref node-att-set node-set-color node-color node-set-id node-id) (struct node (type atts children) #:transparent) (define (node-att-ref n k [fail (lambda () (error "no attribute foun...
null
https://raw.githubusercontent.com/cbiffle/ruckus/62cd4a00837783a88a007c2d5979909a4e86ca0f/core/model.rkt
racket
Basic data types. Well known attributes.
#lang racket (provide (struct-out node) node-att-ref node-att-set node-set-color node-color node-set-id node-id) (struct node (type atts children) #:transparent) (define (node-att-ref n k [fail (lambda () (error "no attribute found with key:" k))]) ...
b9659c34fe72ddf14c61e8f54d1cde6556450d06f349fdec668af8b98b5e5b94
SKA-ScienceDataProcessor/RC
writeOSKAR.hs
{-# LANGUAGE BangPatterns #-} module Main where import Control.Exception (finally) import System.IO.MMap ( Mode(..) , mmapFilePtr , munmapFilePtr ) import Foreign.Ptr (plusPtr) import Foreign.Storable (sizeOf) import System.Environment (getArgs) import System.FilePath (addExtension) import Foreign.C.Types (...
null
https://raw.githubusercontent.com/SKA-ScienceDataProcessor/RC/1b5e25baf9204a9f7ef40ed8ee94a86cc6c674af/MS2/OskarReader/RW_Haskell/writeOSKAR.hs
haskell
# LANGUAGE BangPatterns #
module Main where import Control.Exception (finally) import System.IO.MMap ( Mode(..) , mmapFilePtr , munmapFilePtr ) import Foreign.Ptr (plusPtr) import Foreign.Storable (sizeOf) import System.Environment (getArgs) import System.FilePath (addExtension) import Foreign.C.Types (CDouble) import OskarFFI wri...
6ec65e782f244ba541b00706987e635c0a3c71f0effb384786580ca071740137
lehins/primal
Fold.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE BangPatterns #-} # LANGUAGE ScopedTypeVariables # -- | -- Module : Primal.Memory.Fold Copyright : ( c ) 2020 - 2021 -- License : BSD3 Maintainer : < > -- Stability : experimental -- Portability : non-portable -- module Primal.Memory.Fold where impo...
null
https://raw.githubusercontent.com/lehins/primal/c752d8788cb9597224d6f7e6a5163473a74b7b5a/primal-memory/src/Primal/Memory/Fold.hs
haskell
# LANGUAGE BangPatterns # | Module : Primal.Memory.Fold License : BSD3 Stability : experimental Portability : non-portable ^ Folding function ^ Initial accumulator ^ Memory region to iterate over ^ Folding function ^ Initial accumulator ^ Memory region to iterate over ^ Initial offset to start a...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE ScopedTypeVariables # Copyright : ( c ) 2020 - 2021 Maintainer : < > module Primal.Memory.Fold where import Primal.Monad import Primal.Element.Unbox import Primal.Memory.Internal import Data.Semigroup foldlMem :: forall e a mr. (Unbox e, MemRead mr) => ...
e2a4f8f442f9cba64804028b8bb1d9980b67b50b6078463717b4ead52c7bba1d
quan-nh/adventofcode
day12.clj
(ns adventofcode2016.day12 (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.core.match :refer [match]])) (def input (-> (io/resource "2016/day12") slurp str/split-lines)) (loop [i 0 result {"a" 0 "b" 0 "c" 0 "d" 0}] (if (>= i (count ...
null
https://raw.githubusercontent.com/quan-nh/adventofcode/98542934a121d1df85dd271d28fedc1f25b98206/src/adventofcode2016/day12.clj
clojure
(ns adventofcode2016.day12 (:require [clojure.string :as str] [clojure.java.io :as io] [clojure.core.match :refer [match]])) (def input (-> (io/resource "2016/day12") slurp str/split-lines)) (loop [i 0 result {"a" 0 "b" 0 "c" 0 "d" 0}] (if (>= i (count ...
ec716064888da24e9cc21d124504d4e2a4447d2cdbae07875bb1118437ca543f
BinaryAnalysisPlatform/bap-plugins
path_producer.ml
open Bap.Std open Core_kernel open Pathlib open Options open Simple open Ctxt open Check open Trim open Poly open Graphlib.Std let (^::) = Seq.cons let print_count ~v count = if v then (Format.printf "%08d%!" count; Format.printf "\x08\x08\x08\x08\x08\x08\x08\x08%!") (** For each direct jmp, if the ne...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap-plugins/2e9aa5c7c24ef494d0e7db1b43c5ceedcb4196a8/minos/path_producer.ml
ocaml
* For each direct jmp, if the next block in the sequence is not the jmp target, erase this jmp. Sequence must be ordered!! It would be wonderful if we could just remove jmp terms that correspond to back-edges in the graph. Debug * used for should_produce * doesnt matter * doesn't matter * Pre-empt pro...
open Bap.Std open Core_kernel open Pathlib open Options open Simple open Ctxt open Check open Trim open Poly open Graphlib.Std let (^::) = Seq.cons let print_count ~v count = if v then (Format.printf "%08d%!" count; Format.printf "\x08\x08\x08\x08\x08\x08\x08\x08%!") let remove_jmps_path sub path = ...
99c3f454367078e9ec6ad2cc78b73014666cdc632336f25b3475427921038592
FundingCircle/topology-grapher
render.clj
(ns topology-grapher.render (:require [digest :refer [md5]] [clojure.java.io :as io] [clojure.string :as s] [clojure.edn :as edn] [topology-grapher.analytics :as a :refer [prune-to-topology]] [topology-grapher.gviz :as gviz] [topology-grapher.con...
null
https://raw.githubusercontent.com/FundingCircle/topology-grapher/c1e3518ef90f95097b3310d3d5cbd48750498e81/src/topology_grapher/render.clj
clojure
(ns topology-grapher.render (:require [digest :refer [md5]] [clojure.java.io :as io] [clojure.string :as s] [clojure.edn :as edn] [topology-grapher.analytics :as a :refer [prune-to-topology]] [topology-grapher.gviz :as gviz] [topology-grapher.con...
1e3808425953474f468be860c7bc314470013154a7ba7c83b8de395109bd902a
repl-acement/repl-acement
show_team_data.cljs
(ns replacement.ui.views.show-team-data (:require [re-frame.core :refer [subscribe dispatch]] [re-com.core :refer [v-box h-box box button gap line border label p input-text input-textarea modal-panel title radio-button]] [replacement.ui.events :as events] [replacement.ui.subs ...
null
https://raw.githubusercontent.com/repl-acement/repl-acement/0a043e1ca790b04cad2af2f5151c613742dd55c7/repl-ui/replacement/ui/views/show_team_data.cljs
clojure
Add copy to clipboard function Add copy to clipboard function
(ns replacement.ui.views.show-team-data (:require [re-frame.core :refer [subscribe dispatch]] [re-com.core :refer [v-box h-box box button gap line border label p input-text input-textarea modal-panel title radio-button]] [replacement.ui.events :as events] [replacement.ui.subs ...
8581bbd8686e0254833f56e186a1cd2a2c7181bdd028613ec3f071a33b8fa221
jeromesimeon/Galax
schema_norm.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/schema/schema_norm.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : schema_norm.mli , v 1.8 2007/02/01 22:08:53 simeon Exp $ val normalize : Namespace_context.nsenv -> Xquery_type_ast.xschema -> Xquery_type_core_ast.cxschema val normalize_type : Namespace_context.nsenv -> Xquery_type_ast.xschema ->...
aed932559251034996f6f85031b8790127fd72eca9db9e7018634046c63f014f
haskell-waargonaut/waargonaut
JArray.hs
-- | -- Builder function for ' ' -- module Waargonaut.Encode.Builder.JArray (jArrayBuilder) where import Waargonaut.Types.JArray (JArray (..)) import Waargonaut.Encode.Builder.CommaSep (commaSeparatedBuilder) import Waargonaut.Encode.Builder.Types (Builder) | Using th...
null
https://raw.githubusercontent.com/haskell-waargonaut/waargonaut/ba1dbbc170c2279749ea29bc8aaf375bdb659ad2/src/Waargonaut/Encode/Builder/JArray.hs
haskell
|
Builder function for ' ' module Waargonaut.Encode.Builder.JArray (jArrayBuilder) where import Waargonaut.Types.JArray (JArray (..)) import Waargonaut.Encode.Builder.CommaSep (commaSeparatedBuilder) import Waargonaut.Encode.Builder.Types (Builder) | Using the given bui...
f055d7e719913a8b07c0aeaf1c23912aa7ec25a6c3a7064c7405473158cabdf2
bbusching/libgit2
proxy.rkt
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "transport.rkt" "utils.rkt") (provide (all-defined-out)) ; Types (define _git_proxy_t (_enum '(GIT_PROXY_NONE GIT_PROXY_AUTO GIT_PROXY_SPECIFIED))) (define-cstruct _git_proxy_opts ([version _uint]...
null
https://raw.githubusercontent.com/bbusching/libgit2/6d6a007543900eb7a6fbbeba55850288665bdde5/libgit2/include/proxy.rkt
racket
Types Functions
#lang racket (require ffi/unsafe "define.rkt" "types.rkt" "transport.rkt" "utils.rkt") (provide (all-defined-out)) (define _git_proxy_t (_enum '(GIT_PROXY_NONE GIT_PROXY_AUTO GIT_PROXY_SPECIFIED))) (define-cstruct _git_proxy_opts ([version _uint] [typ...
c3685b29258a6e42b55358506b16bbf03836d60acaa76d789d39a77f3a3d170d
uncomplicate/clojurecuda
info.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) or later ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be boun...
null
https://raw.githubusercontent.com/uncomplicate/clojurecuda/532ef26e0467d7963a37d7806634125ce091728b/src/clojure/uncomplicate/clojurecuda/info.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) or later which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) . All rights reserved . (ns ^{:author "Dragan Djuric"} uncomplicate.clojurecuda.info "Info functions for all CUDA objects (devices, etc...). " (:require [clojure.string :as str] [uncomplicate.commons.core :refer [Info info wrap extract]] [uncomplicate.fluokitten....
5d43ea8d7997e8d937aa7c93e6f5213b47e30a7bb289d7501f6ec2db149cdad7
byulparan/cl-nextstep
core-image.lisp
(defpackage :core-image (:nicknames :ci) (:use :cl) (:export #:make-context #:draw-image #:render-to-bitmap #:load-image #:image-from-texture #:image-from-cg-image #:extent #:draw-image-to-view #:make-filter #:active #:set-filter-param #:apply-filter)) (in-package :cor...
null
https://raw.githubusercontent.com/byulparan/cl-nextstep/a65704ed5f1b640473f1ad2b1cdc140d0e3e2934/frameworks/core-image.lisp
lisp
ci-context ci-image ci-filter
(defpackage :core-image (:nicknames :ci) (:use :cl) (:export #:make-context #:draw-image #:render-to-bitmap #:load-image #:image-from-texture #:image-from-cg-image #:extent #:draw-image-to-view #:make-filter #:active #:set-filter-param #:apply-filter)) (in-package :cor...
7e05cc83ef5d754eff17afcf68037f3822a90402bd1f51c740aff75f5517de4d
ninenines/gun
gun_SUITE.erl
Copyright ( c ) 2017 - 2023 , < > %% %% Permission to use, copy, modify, and/or 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 AUTHOR DISC...
null
https://raw.githubusercontent.com/ninenines/gun/33223e751267c5f249f3db1277c13904a1801b92/test/gun_SUITE.erl
erlang
Permission to use, copy, modify, and/or 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. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVE...
Copyright ( c ) 2017 - 2023 , < > THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN -module(gun_SUITE). -compile(export_all). -compile(no...
99b174b2f7471b697475331122cb5b257f39fec6e88a2f1e992158156d01784f
parapluu/Concuerror
safeops_coverage.erl
-module(safeops_coverage). -compile(export_all). scenarios() -> [ test ]. test() -> erlang:adler32("42"), [1, 2, 3, 4] = erlang:append([1, 2], [3, 4]), erlang:bump_reductions(10), erlang:crc32("42"), erlang:decode_packet(raw, <<"foo">>, []), {c} = erlang:delete_element(1, {b, c}), erlang:external_s...
null
https://raw.githubusercontent.com/parapluu/Concuerror/152a5ccee0b6e97d8c3329c2167166435329d261/tests/suites/basic_tests/src/safeops_coverage.erl
erlang
-module(safeops_coverage). -compile(export_all). scenarios() -> [ test ]. test() -> erlang:adler32("42"), [1, 2, 3, 4] = erlang:append([1, 2], [3, 4]), erlang:bump_reductions(10), erlang:crc32("42"), erlang:decode_packet(raw, <<"foo">>, []), {c} = erlang:delete_element(1, {b, c}), erlang:external_s...
e096c20ddd90884bf30aa3ba0244c875ea98c833c8e2e16dc8623a2fae9a3e4f
unclebob/more-speech
formatters_spec.clj
(ns more-speech.ui.formatters-spec (:require [speclj.core :refer :all] [more-speech.db.gateway :as gateway] [more-speech.db.in-memory :as in-memory] [more-speech.nostr.util :refer [hexify]] [more-speech.ui.formatters :refer :all] [more-speech.ui.formatter-ut...
null
https://raw.githubusercontent.com/unclebob/more-speech/6a629f6837f056f33bf928d3826a0b96e53934ac/spec/more_speech/ui/formatters_spec.clj
clojure
(ns more-speech.ui.formatters-spec (:require [speclj.core :refer :all] [more-speech.db.gateway :as gateway] [more-speech.db.in-memory :as in-memory] [more-speech.nostr.util :refer [hexify]] [more-speech.ui.formatters :refer :all] [more-speech.ui.formatter-ut...
22f18eddd97489ff5b3415ba42a77c97935a204602770caa3823479f3b270c83
csg-tokyo/typelevelLR
TestInvalid4.hs
import Expr main :: IO () main = print $ begin |> num 1 |> add |> num 2 |> rp |> end
null
https://raw.githubusercontent.com/csg-tokyo/typelevelLR/ca5853890fac7fb819a026f0fd15d8b43f7c8470/examples/haskell/expr/TestInvalid4.hs
haskell
import Expr main :: IO () main = print $ begin |> num 1 |> add |> num 2 |> rp |> end
492a51c83c5a76b027cd268ffaab76178505683dc37f50f398007346a8bbe7bf
input-output-hk/plutus-apps
Contexts.hs
{-# LANGUAGE NamedFieldPuns #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - import - lists # module Plutus.Script.Utils.V1.Contexts ( module Contexts , outputsAt , valuePaidTo ) where import Plutus.V1.Ledger.Api (Address, Value) import Plutus.V1.Ledger.Contexts as Contexts hiding (...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/c83f3159b574dc6fce3b7c6bf0f8a1796a69d885/plutus-script-utils/src/Plutus/Script/Utils/V1/Contexts.hs
haskell
# LANGUAGE NamedFieldPuns # | Get the values paid to a public key address by a pending transaction. | Get the total value paid to a public key address by a pending transaction.
# LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -Wno - missing - import - lists # module Plutus.Script.Utils.V1.Contexts ( module Contexts , outputsAt , valuePaidTo ) where import Plutus.V1.Ledger.Api (Address, Value) import Plutus.V1.Ledger.Contexts as Contexts hiding (valuePaidTo) import PlutusTx.Prelud...
a58220f3f29fa4d1ec7c3ea3bb3ca0a0c9af84ef1c9931384ed7c30ef9ef2fd9
pontarius/pontarius-xmpp
InbandRegistration.hs
| XEP 0077 : In - Band Registration -- -0077.html # LANGUAGE NamedFieldPuns # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE PatternGuards # {-# LANGUAGE OverloadedStrings #-} module Network.Xmpp.Xep.InbandRegistration where import Control.Applicative((<$>)) import Control.Arrow(left) import...
null
https://raw.githubusercontent.com/pontarius/pontarius-xmpp/08e4a24e6408adb6320b4e73f7be691de060b583/source/Network/Xmpp/Xep/InbandRegistration.hs
haskell
-0077.html # LANGUAGE OverloadedStrings # In-Band Registration name space TODO: That doesn't seem right TODO: That doesn't seem right | Retrieve the necessary fields and fill them in to register an account with the server. endsession con | Terminate your account on the server. You have to be logged in for t...
| XEP 0077 : In - Band Registration # LANGUAGE NamedFieldPuns # # LANGUAGE NoMonomorphismRestriction # # LANGUAGE PatternGuards # module Network.Xmpp.Xep.InbandRegistration where import Control.Applicative((<$>)) import Control.Arrow(left) import Control.Exception import Con...
fd2bd93a17b4f4cdd9e4f8b974cef932083ab75ef3245dec6625f4190b629f94
dgiot/dgiot
dgiot_tdengine_handler.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy...
null
https://raw.githubusercontent.com/dgiot/dgiot/a6b816a094b1c9bd024ce40b8142375a0f0289d8/apps/dgiot_device/src/handler/dgiot_tdengine_handler.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 - 2021 DGIOT Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(dgiot_tdengine_handler). -author("dgiot"). -behavior(dgiot_rest). -dgiot_rest(all). -i...
998ba644f6eea5836bcb11f1478d2d9969cabdf547eb7ef9da8a6a0091388845
McCLIM/McCLIM
gadget-test-kr.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) Copyright 2000 by Iban Hatchondo < > ( c ) Copyright 2000 by < > ;;; ;;; ------...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/c079691b0913f8306ceff2620b045b6e24e2f745/Examples/gadget-test-kr.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- example gadget definition ...
( c ) Copyright 2000 by Iban Hatchondo < > ( c ) Copyright 2000 by < > Copied from colorslider (in-package #:clim-internals) (defclass gadget-test-pane (basic-gadget) ()) (in-package #:clim-demo) (defun gadget-test () (loop for port in climi::*all-ports* do (destroy-port port)) (setq climi::*...
bbe5a779a8345af0fe1d0fdb10919177753aa07d211d89beccf02b945da96a94
soegaard/metapict
grammar-expressions.rkt
#lang ragg expression : subexpression | expression tertiary-binop tertiary | path-subexpression direction-specifier | path-subexpression path-join "cycle" atom : variable | argument | number-or-fraction | "(" expression ")" | nullary-op ; | internal-variabl...
null
https://raw.githubusercontent.com/soegaard/metapict/47ae265f73cbb92ff3e7bdd61e49f4af17597fdf/metapict/todo/grammar-expressions.rkt
racket
| internal-variable | "begingroup" statement-list expression "endgroup" | "btex" typesetting-commands "etex" | pseudo-function | of-operator expression "of" primary | "str" suffix | "z" suffix NUMBER/ is a number where with / as the next token. NUMBER is a number where / is not the next token. should have b...
#lang ragg expression : subexpression | expression tertiary-binop tertiary | path-subexpression direction-specifier | path-subexpression path-join "cycle" atom : variable | argument | number-or-fraction | "(" expression ")" | nullary-op primary : atom ...
5ae8ffa2aea833771d9aa00c203bf1e6542347f5b85dd91696cad08b5fc75c87
gas2serra/mcclim-desktop
presentations.lisp
(in-package :desktop-launcher)
null
https://raw.githubusercontent.com/gas2serra/mcclim-desktop/f85d19c57d76322ae3c05f98ae43bfc8c0d0a554/Apps/launcher/gui/presentations.lisp
lisp
(in-package :desktop-launcher)
1a2692d8fa5d47d101574f6ec46513032e8f6e5ab44b64bbf96fde11d73de429
monadfix/ormolu-live
ConLike.hs
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1998 \section[ConLike]{@ConLike@ : Constructor - like things } (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1998 \section[ConLike]{@ConLike@: Constructor-like things} -} # LANGUAGE...
null
https://raw.githubusercontent.com/monadfix/ormolu-live/d8ae72ef168b98a8d179d642f70352c88b3ac226/ghc-lib-parser-8.10.1.20200412/compiler/basicTypes/ConLike.hs
haskell
************************************************************************ * * \subsection{Constructor-like things} * * ***************************************************************...
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1998 \section[ConLike]{@ConLike@ : Constructor - like things } (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1998 \section[ConLike]{@ConLike@: Constructor-like things} -} # LANGUAGE...
c651fc802bd0a588e3825807b2d63245267a71587b718c55cd681b89cc7be590
funcool/rumext
controls.cljs
(ns rumext.examples.controls (:require [goog.dom :as dom] [rumext.alpha :as mf] [rumext.examples.util :as util])) ;; generic “atom editor” component (mf/defc input [{:keys [color] :as props}] (let [value (mf/deref color)] [:input {:type "text" :value value :s...
null
https://raw.githubusercontent.com/funcool/rumext/e02163e9c60ce8f79920ae14abfbd5c4b9d2727a/examples/rumext/examples/controls.cljs
clojure
generic “atom editor” component Raw top-level component, everything interesting is happening inside
(ns rumext.examples.controls (:require [goog.dom :as dom] [rumext.alpha :as mf] [rumext.examples.util :as util])) (mf/defc input [{:keys [color] :as props}] (let [value (mf/deref color)] [:input {:type "text" :value value :style {:width 100} :on-...
516bb7c976acd8d8cedb90481331191125abf540bf37218d69f48b276fd219c1
nathanmarz/cascalog
types.clj
(ns cascalog.cascading.types (:require [jackknife.core :as u] [cascalog.logic.algebra :refer (plus Semigroup)] [cascalog.logic.platform :refer (generator compile-query)] [cascalog.logic.parse :refer (build-rule)] [cascalog.cascading.tap :as tap]) (:import [cascalog Ut...
null
https://raw.githubusercontent.com/nathanmarz/cascalog/deaad977aa98985f68f3d1cc3e081d345184c0c8/cascalog-core/src/clj/cascalog/cascading/types.clj
clojure
## Platform TODO: We should probably have our tuple converter typeclass follow the same pattern as scalding. Go to the tuple, come back from the tuple. Accomplish this with a from-tuple method. TODO: do this in clojure. source-map is a map of identifier to tap, or source. Pipe is the current pipe that the user ...
(ns cascalog.cascading.types (:require [jackknife.core :as u] [cascalog.logic.algebra :refer (plus Semigroup)] [cascalog.logic.platform :refer (generator compile-query)] [cascalog.logic.parse :refer (build-rule)] [cascalog.cascading.tap :as tap]) (:import [cascalog Ut...
d3983e1883ba3c2e8dbedc982cb926af6b4920137472bd29220ad66281aa0121
hammerlab/epidisco
final_report.ml
open Nonstd module String = Sosa.Native_string let (//) = Filename.concat (** Makes the below equivalent. {[let x = canonicalize "/dsde/deds///desd//de/des/" let y = canonicalize "./dsde/deds///desd//de/des/" let z = canonicalize "../../dsde/deds///desd//de/des/" ]} *) let canonicalize path = let rec build acc dir...
null
https://raw.githubusercontent.com/hammerlab/epidisco/0fdbcc2b4f3bb1c4af74411af69b371870f76d6a/src/lib/final_report.ml
ocaml
* Makes the below equivalent. {[let x = canonicalize "/dsde/deds///desd//de/des/" let y = canonicalize "./dsde/deds///desd//de/des/" let z = canonicalize "../../dsde/deds///desd//de/des/" ]} * Here a few useful utility functions to make constructing the report data structures easier * Helps when the tool is optio...
open Nonstd module String = Sosa.Native_string let (//) = Filename.concat let canonicalize path = let rec build acc dir = match Filename.dirname dir with | d when d = dir -> acc | p -> build (Filename.basename dir :: acc) p in let parts = build [] path in String.concat ~sep:"/" (if Filename.is...
43b2d524af82dae7d4eb954092b5141ca05382d7366bae1438453790f019ff4e
jvf/scalaris
mymaps.erl
2016 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distribut...
null
https://raw.githubusercontent.com/jvf/scalaris/c069f44cf149ea6c69e24bdb08714bda242e7ee0/src/mymaps.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2016 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > are not available ( Erlang versions below 17.0 ) . -module(mymaps). -author(''). -vsn('$Id$'). -export([new/0, ...
c490f26eedc5e38fd8d31cf40fae0c0bc3f3f763ad859770f0cd7af359f45e70
pixlsus/registry.gimp.org_static
split-tone_0.scm
is a script for The GIMP ; This script converts an image to one that has one colour for highlights ; and one for shadows. ; ; The script is located in "<Image> / Script-Fu / Colours / Split Tone..." ; Last changed : 5 August 2007 ; Copyright ( C ) 2007 < > ; ; -------------------------------...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/split-tone_0.scm
scheme
and one for shadows. The script is located in "<Image> / Script-Fu / Colours / Split Tone..." -------------------------------------------------------------------- Changelog: - Removed redundant code by designing a single function that does all the actions - Added GPL3 licence -...
is a script for The GIMP This script converts an image to one that has one colour for highlights Last changed : 5 August 2007 Copyright ( C ) 2007 < > Version 1.8 ( 8th August 2007 ) Version 1.7 ( 5th August 2007 ) Version 1.6 - Made the script compatible with GIMP 2.3 it unde...
68f1a651e256d6e7b9f1d3222cd5e2227ece7b7a03a6f6342815a6e19ad09fff
evrim/core-server
application.lisp
Core Server : Web Application Server Copyright ( C ) 2006 - 2008 , Aycan iRiCAN ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ;; (at your opti...
null
https://raw.githubusercontent.com/evrim/core-server/200ea8151d2f8d81b593d605b183a9cddae1e82d/src/application.lisp
lisp
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public L...
Core Server : Web Application Server Copyright ( C ) 2006 - 2008 , Aycan iRiCAN it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (in-package :core...
9eb95df4b59c7087cc0cfb9281636b67e5140b4f97964a1e7fbf2bbffb78a3a5
olivo/redos-detector
Common.ml
© Copyright University of Birmingham , UK open ParsingData let zmin = '\x00';; let zmax = '\x7f';; let zprev u = if u <= zmin then zmin else Char.chr (Char.code u - 1);; let znext u = if u >= zmax then zmax else Char.chr (Char.code u + 1);; let chr_ignore_case c = let c_up = Char.uppercase c in let c_low = Cha...
null
https://raw.githubusercontent.com/olivo/redos-detector/470711a1103a2cb3d0805f8e7094bf83a04b8e08/regex_checker/rxxr/code/Common.ml
ocaml
© Copyright University of Birmingham , UK open ParsingData let zmin = '\x00';; let zmax = '\x7f';; let zprev u = if u <= zmin then zmin else Char.chr (Char.code u - 1);; let znext u = if u >= zmax then zmax else Char.chr (Char.code u + 1);; let chr_ignore_case c = let c_up = Char.uppercase c in let c_low = Cha...
28287ab4a871c031b78bb74ca919cde8a8835af644ca5033fa44a514a9739815
8c6794b6/guile-tjit
foreign-object.scm
;;; Wrapping foreign objects in Scheme Copyright ( C ) 2014 , 2015 Free Software Foundation , Inc. ;;; ;;; This library is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the L...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/system/foreign-object.scm
scheme
Wrapping foreign objects in Scheme This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ...
Copyright ( C ) 2014 , 2015 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA (define-module (system foreign-object) #:...
8e2d2688b5278da3ce1ffb5c4b0132f69bf04e370cd2efae3e583b6c97b51550
mbutterick/beautiful-racket
funstacker.rkt
#lang br/quicklang (define (read-syntax path port) (define src-lines (port->lines port)) (define src-datums (format-datums '~a src-lines)) (define module-datum `(module funstacker-mod "funstacker.rkt" (handle-args ,@src-datums))) (datum->syntax #f module-datum)) (provide read-syntax) ...
null
https://raw.githubusercontent.com/mbutterick/beautiful-racket/f0e2cb5b325733b3f9cbd554cc7d2bb236af9ee9/beautiful-racket-demo/funstacker-demo/funstacker.rkt
racket
#lang br/quicklang (define (read-syntax path port) (define src-lines (port->lines port)) (define src-datums (format-datums '~a src-lines)) (define module-datum `(module funstacker-mod "funstacker.rkt" (handle-args ,@src-datums))) (datum->syntax #f module-datum)) (provide read-syntax) ...
31eaa9169cb6a18014a0b369b73880116b1c1e9d4b96b6e5e7c1c7998187793d
haskell-numerics/hmatrix
plot.hs
import Numeric.LinearAlgebra import Graphics.Plot import Numeric.GSL.Special(erf_Z, erf) sombrero n = f x y where (x,y) = meshdom range range range = linspace n (-2,2) f x y = exp (-r2) * cos (2*r2) where r2 = x*x+y*y f x = sin x + 0.5 * sin (5*x) gaussianPDF = erf_Z cumdist x = 0.5 * (1+ erf ...
null
https://raw.githubusercontent.com/haskell-numerics/hmatrix/2694f776c7b5034d239acb5d984c489417739225/examples/plot.hs
haskell
import Numeric.LinearAlgebra import Graphics.Plot import Numeric.GSL.Special(erf_Z, erf) sombrero n = f x y where (x,y) = meshdom range range range = linspace n (-2,2) f x y = exp (-r2) * cos (2*r2) where r2 = x*x+y*y f x = sin x + 0.5 * sin (5*x) gaussianPDF = erf_Z cumdist x = 0.5 * (1+ erf ...
c538d61579471edb450416a88c4065ed583b21f98dd378ac9202d80e0a054e61
aryx/ocamltarzan
pa_type_conv.ml
pp camlp4orf * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Type - conv * * ...
null
https://raw.githubusercontent.com/aryx/ocamltarzan/4140f5102cee83a2ca7be996ca2d92e9cb035f9c/pa/pa_type_conv.ml
ocaml
Pa_type_conv: Preprocessing Module for Registering Type Conversions Utility functions Module/File path management Initial state already in a submodule, too late to initialize Actually initialized Reference storing the path to the currently preprocessed module Get path to the currently preprocessed module...
pp camlp4orf * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Type - conv * * ...
0e4d4a5ce9af17ecc88b7ad971de5db401a8a4859916b545655b034272c471b8
jrm-code-project/LISP-Machine
print-screen.lisp
-*- Mode : LISP ; Package : TCP - APPLICATION ; Patch - File : T ; ; : ZL -*- ;;; patches for dawna for paint program screen dumps. (defvar *imagen-override-magnification* nil) (defvar *imagen-paper* (list ;; these may need adjustment on a per-printer ;; basis....
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/lambda/gjcx/print-screen.lisp
lisp
Package : TCP - APPLICATION ; Patch - File : T ; ; : ZL -*- patches for dawna for paint program screen dumps. these may need adjustment on a per-printer basis. landscape~]~D-~D-~D,~ the measurements units must be off, but this looks ok. pad ORIGIN: physical AXES: +90 deg (regular)
(defvar *imagen-override-magnification* nil) (defvar *imagen-paper* (list :landscape-h-available 11.0 :landscape-v-available 8.5 :landscape-h-offset 0.0 :landscape-v-offset 11.0 :por...
d01dc0a89ebbd81e941b4bcfd99fc1f0a224c871fc8a2c7d1e93ecf79dd3bdcb
dktr0/estuary
ZonedTime.hs
module Estuary.Types.ZonedTime where import Data.Time instance Eq ZonedTime where (ZonedTime zonedTimeToLocalTime1 zonedTimeZone1) == (ZonedTime zonedTimeToLocalTime2 zonedTimeZone2) = (zonedTimeToLocalTime1 == zonedTimeToLocalTime2) && (zonedTimeZone1 == zonedTimeZone2) data ZonedTime = ZonedTime { -- zoned...
null
https://raw.githubusercontent.com/dktr0/estuary/b87fcafcbc56e957305b7dd8c1fb4fb111e1815b/common/src/Estuary/Types/ZonedTime.hs
haskell
zonedTimeToLocalTime :: LocalTime } times that are actually the same but have different expressions because of different time zones, will be, in our instance, not equal
module Estuary.Types.ZonedTime where import Data.Time instance Eq ZonedTime where (ZonedTime zonedTimeToLocalTime1 zonedTimeZone1) == (ZonedTime zonedTimeToLocalTime2 zonedTimeZone2) = (zonedTimeToLocalTime1 == zonedTimeToLocalTime2) && (zonedTimeZone1 == zonedTimeZone2) data ZonedTime = ZonedTime { zonedT...
1f5e86caeb03fba109188b362f70f3f521697bd573f05af05bc3e5f5102cd3b5
irastypain/sicp-on-language-racket
exercise_1_31r-test.rkt
#lang racket (require rackunit rackunit/text-ui "../../src/chapter01/exercise_1_31r.rkt" (only-in "../../lib/base.rkt" cube inc square)) (define tolerance 0.00001) (define tests (test-suite "Product of sequence [Recursive process]...
null
https://raw.githubusercontent.com/irastypain/sicp-on-language-racket/0052f91d3c2432a00e7e15310f416cb77eeb4c9c/test/chapter01/exercise_1_31r-test.rkt
racket
#lang racket (require rackunit rackunit/text-ui "../../src/chapter01/exercise_1_31r.rkt" (only-in "../../lib/base.rkt" cube inc square)) (define tolerance 0.00001) (define tests (test-suite "Product of sequence [Recursive process]...
e33a969faf890f4339d1a6edd31ff3439672e1c88618d1d5f6fb3a50037fd95b
huangjs/cl
demo_mcjudge.lsp
(load "mcmops.lsp") (load "mcjudge.lsp") (clear-memory) (load "mcmops.mops") (load "mcjudge.mops") (judge-demo)
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cs325/www.cs.northwestern.edu/academics/courses/325/programs/icbr/demo_mcjudge.lsp
lisp
(load "mcmops.lsp") (load "mcjudge.lsp") (clear-memory) (load "mcmops.mops") (load "mcjudge.mops") (judge-demo)
425ad03aa0450d6e22d1bf1a4cae86fd7342d25f0fe0de201c25d586e85077e3
tlaplus/tlapm
isabelle.ml
Interface to Isabelle . This file contains functions to handle isabelle theories , which are used in two ways : 1 . to use as a back - end to prove obligations 2 . to use to check proofs output by TLAPM and Zenon . Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation This file contains funct...
null
https://raw.githubusercontent.com/tlaplus/tlapm/581ebd8afbe927b2b7d31c62ccec3a3409d9d8ce/src/backend/isabelle.ml
ocaml
Logic operators Function operators Set operators Set theory operators Modal operators raise (Unsupported "ENABLED") unary (cook "ENABLED") e raise (Unsupported "\\cdot" binary (cook "\\cdot") e f binary (cook "-+->") e f raise (Unsupported "Box") raise (Unsupported "Diamond") Arithmetic operato...
Interface to Isabelle . This file contains functions to handle isabelle theories , which are used in two ways : 1 . to use as a back - end to prove obligations 2 . to use to check proofs output by TLAPM and Zenon . Copyright ( C ) 2008 - 2010 INRIA and Microsoft Corporation This file contains funct...
0ed5abe1794d747636c5d8350f026812e85ff002cd852752d8840b6d03d5a0b5
ujihisa/cloft
skill.clj
(ns cloft.skill (:use [cloft.cloft :only [later]]) (:require [cloft.cloft :as c]) (:require [cloft.block :as block]) (:require [cloft.loc :as loc]) (:require [cloft.material :as m]) (:require [cloft.sound :as s]) (:import [org.bukkit Location Effect TreeType]) (:import [org.bukkit.entity Animals Arrow B...
null
https://raw.githubusercontent.com/ujihisa/cloft/98284fa763d16280d4685478b2be2ab0efbb00b0/src/cloft/skill.clj
clojure
(ns cloft.skill (:use [cloft.cloft :only [later]]) (:require [cloft.cloft :as c]) (:require [cloft.block :as block]) (:require [cloft.loc :as loc]) (:require [cloft.material :as m]) (:require [cloft.sound :as s]) (:import [org.bukkit Location Effect TreeType]) (:import [org.bukkit.entity Animals Arrow B...
b9de0647440f12f2c0467283e787e16fc936fe7484c0376851c40c0b3d002e5f
herd/herdtools7
mfilter.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/aba96608b33be9f7e29c266c65214393b5e1370c/tools/mfilter.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2012 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
8948644338022d1f86c10466fcb92bf36e5b07953ccefa3073bacdf17d7f3aff
isovector/circuitry
Product.hs
# LANGUAGE FunctionalDependencies # # LANGUAGE UndecidableInstances # # LANGUAGE AllowAmbiguousTypes # module Circuitry.Product (proj, replace, ProjName, FlattenSels) where import Circuitry.Category import Clash.Sized.Vector (Vec (..)) import Data.Kind (Type) import Data.Proxy import GHC.Generics import GHC.Overlo...
null
https://raw.githubusercontent.com/isovector/circuitry/81f018a67937de9348eda9f2e95236e75c90ea85/src/Circuitry/Product.hs
haskell
# OVERLAPPING #
# LANGUAGE FunctionalDependencies # # LANGUAGE UndecidableInstances # # LANGUAGE AllowAmbiguousTypes # module Circuitry.Product (proj, replace, ProjName, FlattenSels) where import Circuitry.Category import Clash.Sized.Vector (Vec (..)) import Data.Kind (Type) import Data.Proxy import GHC.Generics import GHC.Overlo...
9f61271f4929c9e4370ea44eee00c3ca3bc53f772f42875ff567ac938b26c2c8
johnwhitington/ocamli
type.mli
type op = Add | Sub | Mul | Div type patconstant = IntConstant of int type pattern = PatAny | PatVar of string | PatConstr of string * pattern list | PatConstant of patconstant type peekinfo = {underline : bool} type cmpop = LT | LTE | GT | GTE | EQ | NEQ type boolop = AND | OR type t' = Value of Obj.t | ...
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/ocamli2/type.mli
ocaml
Polymorphic comparison recflag recflag
type op = Add | Sub | Mul | Div type patconstant = IntConstant of int type pattern = PatAny | PatVar of string | PatConstr of string * pattern list | PatConstant of patconstant type peekinfo = {underline : bool} type cmpop = LT | LTE | GT | GTE | EQ | NEQ type boolop = AND | OR type t' = Value of Obj.t | ...
dcb215a25a3346b9f90e530e76e360fd7fa49bedb28091e2bae6cab5e8811ac5
MercuryTechnologies/slack-web
UsersConversationsSpec.hs
module Web.Slack.UsersConversationsSpec (spec) where import JSONGolden import TestImport import Web.Slack.UsersConversations (UsersConversationsResponse) spec :: Spec spec = describe "User conversations method" do describe "Response FromJSON" do mapM_ (oneGoldenTestDecode @UsersConversationsResponse) ["im_and_c...
null
https://raw.githubusercontent.com/MercuryTechnologies/slack-web/1ce60453e3ceb36b98bbb2937f70dfbfcc5f8928/tests/Web/Slack/UsersConversationsSpec.hs
haskell
module Web.Slack.UsersConversationsSpec (spec) where import JSONGolden import TestImport import Web.Slack.UsersConversations (UsersConversationsResponse) spec :: Spec spec = describe "User conversations method" do describe "Response FromJSON" do mapM_ (oneGoldenTestDecode @UsersConversationsResponse) ["im_and_c...
ce4b3f39e4284cf781f9610502ef49a8ebf21ec5471285b562dfbd011cebe6c1
clojure-interop/aws-api
SimpleDBResponseMetadata.clj
(ns com.amazonaws.services.simpledb.SimpleDBResponseMetadata "Extension of ResponseMetadata with Amazon SimpleDB specific data. In addition to the standard AWS request ID contained in all services' response metadata, Amazon SimpleDB also includes information on how much compute capacity, or box usage, was used to...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.simpledb/src/com/amazonaws/services/simpledb/SimpleDBResponseMetadata.clj
clojure
(ns com.amazonaws.services.simpledb.SimpleDBResponseMetadata "Extension of ResponseMetadata with Amazon SimpleDB specific data. In addition to the standard AWS request ID contained in all services' response metadata, Amazon SimpleDB also includes information on how much compute capacity, or box usage, was used to...
7c5f04dd19d9f43077dff453495748bed69df1ceed489e85268946f50801d840
bobatkey/foveran
Checked.hs
# LANGUAGE TypeSynonymInstances , DeriveFunctor , FlexibleInstances # module Language.Foveran.Syntax.Checked ( Ident , Irrelevant (..) , Term , TermCon (..) , Binding (..) , tmApp , tmFree , tmBound , tmFst , tmSnd , bindFree , generalise , toDisplaySyntax ...
null
https://raw.githubusercontent.com/bobatkey/foveran/e57463e3f6923becdf1249cd2fd0ccfcd566f7c5/src/Language/Foveran/Syntax/Checked.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----...
# LANGUAGE TypeSynonymInstances , DeriveFunctor , FlexibleInstances # module Language.Foveran.Syntax.Checked ( Ident , Irrelevant (..) , Term , TermCon (..) , Binding (..) , tmApp , tmFree , tmBound , tmFst , tmSnd , bindFree , generalise , toDisplaySyntax ...
b2ed757055f65c119564e80bee2154948e5100dd93fc3167f7c697dba56ef321
crategus/cl-cffi-gtk
gtk.main-loop.lisp
;;; ---------------------------------------------------------------------------- ;;; gtk.main-loop.lisp ;;; ;;; The documentation of this file is taken from the GTK 3 Reference Manual Version 3.24 and modified to document the Lisp binding to the GTK library . ;;; See <>. The API documentation of the Lisp binding is ...
null
https://raw.githubusercontent.com/crategus/cl-cffi-gtk/ba198f7d29cb06de1e8965e1b8a78522d5430516/gtk/gtk.main-loop.lisp
lisp
---------------------------------------------------------------------------- gtk.main-loop.lisp The documentation of this file is taken from the GTK 3 Reference Manual See <>. The API documentation of the Lisp binding is This program is free software: you can redistribute it and/or modify it under the terms of...
Version 3.24 and modified to document the Lisp binding to the GTK library . available from < -cffi-gtk/ > . Copyright ( C ) 2009 - 2011 Copyright ( C ) 2011 - 2021 as published by the Free Software Foundation , either version 3 of the the GNU Lesser General Public License that clarifies the terms for us...
757fc9be4a5f92606a9a52050ab6ca0cbf48eb8b5cada162b60c7c91add3b075
Ericson2314/lighthouse
Device.hs
-- #hide ----------------------------------------------------------------------------- -- | -- Module : Menu.Device Copyright : ( c ) 2002 -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -------------------------------------------------------...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/ObjectIO/Graphics/UI/ObjectIO/Menu/Device.hs
haskell
#hide --------------------------------------------------------------------------- | Module : Menu.Device License : BSD-style Maintainer : Stability : provisional Portability : portable --------------------------------------------------------------------------- Apply the Menu(Mods)Function o...
Copyright : ( c ) 2002 module Graphics.UI.ObjectIO.Menu.Device(menuFunctions) where import Graphics.UI.ObjectIO.CommonDef import Graphics.UI.ObjectIO.StdId import Graphics.UI.ObjectIO.StdGUI import Graphics.UI.ObjectIO.Process.IOState import Graphics.UI.ObjectIO.Menu.Create import Graphics.UI.ObjectIO.Menu....
1ef75738e086682070450daa4f97a5720139dc4e6e49f88886eb321073d7613c
heshrobe/joshua-dist
mop.lisp
;;; Mode: Common-lisp; package: aisl-clos -*- (in-package :aisl-clos) #+MCL (defun generic-function-name (instance) (function-name instance)) #+MCL (defmethod generic-function-lambda-list ((me generic-function)) (let ((args (arglist (function-name me)))) ;; reader-methods don't return arglist this way, for s...
null
https://raw.githubusercontent.com/heshrobe/joshua-dist/f59f06303f9fabef3e945a920cf9a26d9c2fd55e/clim-env/aisl-clos/mop.lisp
lisp
Mode: Common-lisp; package: aisl-clos -*- reader-methods don't return arglist this way, for some reason see definition of slotd-initform for more info here
(in-package :aisl-clos) #+MCL (defun generic-function-name (instance) (function-name instance)) #+MCL (defmethod generic-function-lambda-list ((me generic-function)) (let ((args (arglist (function-name me)))) (if (eq (car args) 'CCL::&METHOD) (cddr args) args))) #+Allegro-ignore-if-the-next-one-...
182f5c97612d69332f697c4e2c66837e27ad2bc314a861dc15436a8b247da4b9
jeromesimeon/Galax
norm_expr.mli
(***********************************************************************) (* *) (* GALAX *) (* XQuery Engine *) (* ...
null
https://raw.githubusercontent.com/jeromesimeon/Galax/bc565acf782c140291911d08c1c784c9ac09b432/normalization/norm_expr.mli
ocaml
********************************************************************* GALAX XQuery Engine ...
Copyright 2001 - 2007 . $ I d : norm_expr.mli , v 1.7 2007/05/18 15:32:13 mff Exp $ Module : Description : This module implements normalization for XQuery expressions . Description: This module implements normalization for XQuery expressions...
3e2ec7f521d8ee826104f7cedbb83d7873e2f96c69b250983adce722cb099046
thoughtbot/date-conversions
DateConversions.hs
module Data.Time.Calendar.DateConversions -- beginning ( beginningOfWeek , beginningOfBiweek , beginningOfMonth , beginningOfQuarter , beginningOfYear -- end , endOfWeek , endOfBiweek , endOfMonth , endOfQuarter , endOfYear -- next , nextWeek , nextBiweek ...
null
https://raw.githubusercontent.com/thoughtbot/date-conversions/2e99de7d8974905b14e1d4fee8962a9af05f47ef/src/Data/Time/Calendar/DateConversions.hs
haskell
beginning end next previous
module Data.Time.Calendar.DateConversions ( beginningOfWeek , beginningOfBiweek , beginningOfMonth , beginningOfQuarter , beginningOfYear , endOfWeek , endOfBiweek , endOfMonth , endOfQuarter , endOfYear , nextWeek , nextBiweek , nextMonth , nextQuarter , next...
1e594141322f1727c8412958a9bc6dbcb8909ab72dff9b140d028a24356da3e6
atlas-engineer/nyxt
no-webgl.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt/tests) (define-test toggle-no-webgl-mode () (let ((buffer (make-instance 'modable-buffer))) (with-current-buffer buffer (assert-true (enable-modes* 'nyxt/no-webgl-mode:no-webgl-mode buffer)) ...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/65a9aa568b16c109281fa403a7c045b3b6d87025/tests/offline/mode/no-webgl.lisp
lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt/tests) (define-test toggle-no-webgl-mode () (let ((buffer (make-instance 'modable-buffer))) (with-current-buffer buffer (assert-true (enable-modes* 'nyxt/no-webgl-mode:no-webgl-mode buffer)) ...
a21c5aa13f3e1c3338776c6e2977134693128e7689dd06ee1f64048539d98fbe
informatimago/lisp
c-operators.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** ;;;;FILE: c-operators.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; ;;;; XXX ;;;; < PJB > < > MODIFI...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/languages/linc/c-operators.lisp
lisp
coding : utf-8 -*- ************************************************************************** FILE: c-operators.lisp LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION XXX LEGAL This program is free software: you can redistribute it and/or modify (at your option) a...
USER - INTERFACE : < PJB > < > MODIFICATIONS 2012 - 07 - 02 < PJB > AGPL3 Copyright 2012 - 2016 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or GNU Affero General Public Lice...
9cea4cc38b880519eb09ed8fece6307a5943c106865de7aab2d9f936b7378cdc
Happstack/happstack-server
MultimasterTest2.hs
# LANGUAGE TemplateHaskell , DeriveDataTypeable , MultiParamTypeClasses , TypeFamilies , FlexibleContexts # module Main where import Happstack.Server import Happstack.State import Data.Typeable import Control.Monad.State import Control.Monad.Reader data MyState = MyState Int deriving (Typeable) instance Version MySt...
null
https://raw.githubusercontent.com/Happstack/happstack-server/d9cdb9af5635b1ebd9db0801b66dbf4e58aba66b/attic/Examples/MultimasterTest2.hs
haskell
# LANGUAGE TemplateHaskell , DeriveDataTypeable , MultiParamTypeClasses , TypeFamilies , FlexibleContexts # module Main where import Happstack.Server import Happstack.State import Data.Typeable import Control.Monad.State import Control.Monad.Reader data MyState = MyState Int deriving (Typeable) instance Version MySt...
5aac7f9a191788a4f4dd22a42024fad0b90c9f2597d26c3b6f9c36c3d5fc432b
TheClimateCorporation/lemur
shell.clj
Copyright 2012 The Climate Corporation ; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;you may not use this file except in compliance with the License. ;You may obtain a copy of the License at ; ; -2.0 ; ;Unless required by applicable law or agreed to in writing, software distributed under t...
null
https://raw.githubusercontent.com/TheClimateCorporation/lemur/00eb21b6f534ceefe354ab89042826188d156991/src/main/clj/com/climate/shell.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissio...
Copyright 2012 The Climate Corporation distributed under the License is distributed on an " AS IS " BASIS , Based on Copyright ( c ) . All rights reserved . (ns com.climate.shell (:use [clojure.java.io :only [as-file copy input-stream output-stream]]) (:import [java.io File InputStreamReader OutputStr...
65595a613540a230c74e10c62706411846b0c11637e01618ee14840e981e37fe
psibi/tldr-hs
Constant.hs
module Tldr.App.Constant where tldrDirName :: String tldrDirName = "tldr" pagesUrl :: String pagesUrl = "" checkDirs :: [String] checkDirs = "common" : platformDirs platformDirs :: [String] platformDirs = ["linux", "osx", "windows", "sunos"]
null
https://raw.githubusercontent.com/psibi/tldr-hs/a2c781bded727b8bbc17bdbce50cc15a76e96d10/src/Tldr/App/Constant.hs
haskell
module Tldr.App.Constant where tldrDirName :: String tldrDirName = "tldr" pagesUrl :: String pagesUrl = "" checkDirs :: [String] checkDirs = "common" : platformDirs platformDirs :: [String] platformDirs = ["linux", "osx", "windows", "sunos"]
e15e3189eda1ac9c7e8a652a4d1662b55d108377e412eca3cd12fe593a2b966c
qkrgud55/ocamlmulti
genprintval.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet Cr...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/toplevel/genprintval.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : genprintval.mli 12689 2012 - 07 ...
018701663e414f8a436628f6d8eee7e7780c8f7f7b67edc475593985069d91ac
donaldsonjw/bigloo
utils.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / bglpkg / utils.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : ...
null
https://raw.githubusercontent.com/donaldsonjw/bigloo/a4d06e409d0004e159ce92b9908719510a18aed5/bglpkg/utils.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * bglpkg utils */ *===========================...
* serrano / prgm / project / bigloo / bglpkg / utils.scm * / * Author : * / * Creation : We d Jan 3 15:34:26 2007 * / * Last change : Fri Nov 29 21:13:16 2013 ( serrano ) * / * Copy...
f75862e86d36696368d3995f5f446f2d08ae762435c4ccca7e6658423a512bec
byulparan/cl-collider
swank-extensions.lisp
(in-package #:cl-collider) ;; make slime show the synthdef's argument list for (synth ...) (defmethod swank::compute-enriched-decoded-arglist ((operator-form (eql 'synth)) argument-forms) (let* ((fst (car argument-forms)) (controls (unless (typep fst 'swank::arglist-dummy) (synthdef-met...
null
https://raw.githubusercontent.com/byulparan/cl-collider/1ad7f59c36acb61987e65973b77c5deb180285b1/swank-extensions.lisp
lisp
make slime show the synthdef's argument list for (synth ...)
(in-package #:cl-collider) (defmethod swank::compute-enriched-decoded-arglist ((operator-form (eql 'synth)) argument-forms) (let* ((fst (car argument-forms)) (controls (unless (typep fst 'swank::arglist-dummy) (synthdef-metadata (if (and (listp fst) ...
68488b70bd77deceaaac936c15a6c86c8db121d118b6ab7b52e249fedf615428
nirum-lang/nirum
CodeGen.hs
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedLists # # LANGUAGE QuasiQuotes # {-# LANGUAGE TypeSynonymInstances #-} module Nirum.Targets.Python.CodeGen ( Code , CodeGen , CodeGenContext (..) , CompileError , Python (..) , PythonVersion (..) , RenameMap , addDependency , ad...
null
https://raw.githubusercontent.com/nirum-lang/nirum/4d4488b0524874abc6e693479a5cc70c961bad33/src/Nirum/Targets/Python/CodeGen.hs
haskell
# LANGUAGE TypeSynonymInstances # | The set of Python reserved keywords. | Python version already stasified. | PyPI package name. | Indent the given code. If there are empty lines these are not indented.
# LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedLists # # LANGUAGE QuasiQuotes # module Nirum.Targets.Python.CodeGen ( Code , CodeGen , CodeGenContext (..) , CompileError , Python (..) , PythonVersion (..) , RenameMap , addDependency , addOptionalDependency , baseIntegerC...
e8573671c2d930c2e98abdf04f1a48d9e62f57bed4e386d0ed71c616bf97a2d5
ucsd-progsys/dsolve
myaset.mli
type +'a set val empty: 'a set val mem: 'a -> 'a set -> bool val eq: 'a set -> 'a set -> bool val of_list: 'a list -> 'a set val cap: 'a set -> 'a set -> 'a set val cup: 'a set -> 'a set -> 'a set val sng: 'a -> 'a set val mns: 'a set -> 'a set -> 'a set val xtr: 'a set -> 'a val un: unit -> bool
null
https://raw.githubusercontent.com/ucsd-progsys/dsolve/bfbbb8ed9bbf352d74561e9f9127ab07b7882c0c/theories/myaset.mli
ocaml
type +'a set val empty: 'a set val mem: 'a -> 'a set -> bool val eq: 'a set -> 'a set -> bool val of_list: 'a list -> 'a set val cap: 'a set -> 'a set -> 'a set val cup: 'a set -> 'a set -> 'a set val sng: 'a -> 'a set val mns: 'a set -> 'a set -> 'a set val xtr: 'a set -> 'a val un: unit -> bool
9b5f4c32b335c7402ca24c8887716889ab085e719074325dc50bb2c44b0083a5
ocsigen/obrowser
complex.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocsigen/obrowser/977c09029ea1e4fde4fb0bf92b4d893835bd9504/rt/caml/complex.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : complex.ml 7164 2005 - 10 - 2...
bed263b87af64b034260d6fb2dc3312891bee5f0696e1b318b4d390e34a3497d
dalaing/little-languages
STLC.hs
# LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # {-# LANGUAGE Deri...
null
https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/prototypes/nb/src/STLC.hs
haskell
# LANGUAGE RankNTypes # # LANGUAGE DeriveTraversable # matcher app function, to apply a type to an arr and get a result or an error especially if we want to work past the location annotation precedence printer parser need a style here, with the appropriate reserved words pTArr = curry (review _TyArr) <$ tReserv...
# LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # # LANGUAGE TypeFamilies # # LANGUAGE ScopedTypeVariables # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveFoldable # module STLC where import Data.Maybe (fromMay...