_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
c62db1bf6cbed2eb7f8374eb35797f388b4d3338304c2e24dba87d30f093741f
SFML-haskell/SFML
SoundRecorder.hs
module SFML.Audio.SoundRecorder ( module SFML.Utils , SoundRecorderStartCallback , SoundRecorderProcessCallback , SoundRecorderStopCallback , createSoundRecorder , destroy , startRecording , stopRecording , getSampleRate , isSoundRecorderAvailable , setProcessingInterval , getAvailableSoundRec...
null
https://raw.githubusercontent.com/SFML-haskell/SFML/1d1ceee6bc782f4f194853fbd0cc4acb33b86d41/src/SFML/Audio/SoundRecorder.hs
haskell
| Type of the callback used when starting a capture. | Type of the callback used to process audio data. | Type of the callback used when stopping a capture. typedef sfBool (*sfSoundRecorderStartCallback)(void*); typedef sfBool (*sfSoundRecorderProcessCallback)(const sfInt16*, size_t, void*); typedef void (*sfSo...
module SFML.Audio.SoundRecorder ( module SFML.Utils , SoundRecorderStartCallback , SoundRecorderProcessCallback , SoundRecorderStopCallback , createSoundRecorder , destroy , startRecording , stopRecording , getSampleRate , isSoundRecorderAvailable , setProcessingInterval , getAvailableSoundRec...
af4553de8c6517ed75e1fb418240ee33bddaef6822ca19a9c89e7d0805acf6e0
Shinmera/3d-matrices
staple.ext.lisp
(asdf:load-system :staple-markdown) (defmethod staple:definition-wanted-p ((_ definitions:setf-expander) page) NIL) #+sbcl (defmethod staple:definition-wanted-p ((_ definitions:source-transform) page) NIL)
null
https://raw.githubusercontent.com/Shinmera/3d-matrices/562540726d3f42adcd4e8c9debaa162189e8f654/staple.ext.lisp
lisp
(asdf:load-system :staple-markdown) (defmethod staple:definition-wanted-p ((_ definitions:setf-expander) page) NIL) #+sbcl (defmethod staple:definition-wanted-p ((_ definitions:source-transform) page) NIL)
ad22c8d603f0c68c6da7bca8044efc0de56cfc744bed96f2fad03f7008472c07
uw-unsat/serval
info.rkt
#lang info (define collection 'multi) (define deps '("rosette" "base" "rackunit-lib" "scribble-lib" "racket-doc")) (define pkg-desc "Serval verification framework") (define version "0.0.1a")
null
https://raw.githubusercontent.com/uw-unsat/serval/be11ecccf03f81b8bd0557acf8385a6a5d4f51ed/info.rkt
racket
#lang info (define collection 'multi) (define deps '("rosette" "base" "rackunit-lib" "scribble-lib" "racket-doc")) (define pkg-desc "Serval verification framework") (define version "0.0.1a")
3afb9afb321986b5371a3274ddd9bd812bb7e5418d9ba227dc8d3fa7097737a9
tschady/advent-of-code
d10.clj
(ns aoc.2018.d10 (:require [aoc.elfscript :as elfscript] [aoc.file-util :as f] [aoc.grid :as grid] [aoc.string-util :as s])) (def input (f/read-lines "2018/d10.txt")) (defn make-pixel [s] (let [[x y dx dy] (s/ints s)] {:x x :y y :dx dx :dy dy})) (defn tick-pixel ([pixel] (tick-pixel 1 pixel)) ...
null
https://raw.githubusercontent.com/tschady/advent-of-code/4d119897230821f545dca5b4cba1f8024372639d/src/aoc/2018/d10.clj
clojure
Find out the y-acceleration of process, use that to determine time required to get readout of correct size
(ns aoc.2018.d10 (:require [aoc.elfscript :as elfscript] [aoc.file-util :as f] [aoc.grid :as grid] [aoc.string-util :as s])) (def input (f/read-lines "2018/d10.txt")) (defn make-pixel [s] (let [[x y dx dy] (s/ints s)] {:x x :y y :dx dx :dy dy})) (defn tick-pixel ([pixel] (tick-pixel 1 pixel)) ...
2664dadec4b90baf2a7cb15a8685dc438925a0c0e5812ea6c6aeb2f255a7ba15
pandeiro/jaki
req.cljs
(ns jaki.req (:use [jaki.util :only [clj->js]]) (:require [goog.net.XhrIo :as xhr] [goog.json :as json]) (:refer-clojure :exclude [get])) For some odd reason , goog.json.parse uses eval , which is not allowed in Chrome extensions and is generally evil . So if native JSON support exists ( it 's 20...
null
https://raw.githubusercontent.com/pandeiro/jaki/7eb88b31a4d70af4553bda85a456c1329da88c5f/src/jaki/req.cljs
clojure
use that.
(ns jaki.req (:use [jaki.util :only [clj->js]]) (:require [goog.net.XhrIo :as xhr] [goog.json :as json]) (:refer-clojure :exclude [get])) For some odd reason , goog.json.parse uses eval , which is not allowed in Chrome extensions and is generally evil . So if native JSON support exists ( it 's 20...
13f44017ca8c8dd8c1d51900eb440740c44a44dd2b09c7b2ca41dc0284c7d77d
cburgmer/buildviz
csv_test.clj
(ns buildviz.util.csv-test (:require [buildviz.util.csv :refer :all] [clj-time [coerce :as tc] [core :as t]] [clojure.test :refer :all])) (def a-datetime (t/from-time-zone (t/date-time 1986 10 14 4 3 27 456) (t/default-time-zone))) (deftest CSV (testing "export" (is (= "col 1,col 2" (export ["col 1",...
null
https://raw.githubusercontent.com/cburgmer/buildviz/396f4f854e306acf08ac04b7a084dea9b2a606c6/test/buildviz/util/csv_test.clj
clojure
(ns buildviz.util.csv-test (:require [buildviz.util.csv :refer :all] [clj-time [coerce :as tc] [core :as t]] [clojure.test :refer :all])) (def a-datetime (t/from-time-zone (t/date-time 1986 10 14 4 3 27 456) (t/default-time-zone))) (deftest CSV (testing "export" (is (= "col 1,col 2" (export ["col 1",...
3b301d27370e5dc208c697e13e4078659bc8af668f7ec11d0bb74b4feb16a510
josefs/Gradualizer
bc_pass.erl
-module(bc_pass). -compile([export_all, nowarn_export_all]). bc1() -> << <<X:4, Y:4>> || X <- [$a, $b], <<Y:4>> <= <<"xy">> >>. -spec bc2(binary()) -> binary(). bc2(Bin) -> << <<X:4, Y:4>> || X <- binary_to_list(<<"ab">>), <<Y:4>> <= Bin >>. -spec bc3(any()) -> binary(). bc3(Bin) -> << <<X:4, Y:4>> || X...
null
https://raw.githubusercontent.com/josefs/Gradualizer/00d907accacfc29a3241dc42c1cd6d00f7e3ca37/test/should_pass/bc_pass.erl
erlang
Returns fixed size binary Returns a bitstring of a fixed size plus a multiple of some size Returns a union of bitstring types Returns a union of lists of some bitstring type
-module(bc_pass). -compile([export_all, nowarn_export_all]). bc1() -> << <<X:4, Y:4>> || X <- [$a, $b], <<Y:4>> <= <<"xy">> >>. -spec bc2(binary()) -> binary(). bc2(Bin) -> << <<X:4, Y:4>> || X <- binary_to_list(<<"ab">>), <<Y:4>> <= Bin >>. -spec bc3(any()) -> binary(). bc3(Bin) -> << <<X:4, Y:4>> || X...
9f426aee5c3498e2c770cbdbb1b227b3329726e9f8b458601215dc71cf71d226
HaskellCNOrg/snap-web
ReplySplicesTest.hs
{-# LANGUAGE OverloadedStrings #-} module Views.ReplySplicesTest (tests) where import Data.Bson (ObjectId) import Data.Time import System.IO.Unsafe (unsafePerformIO) import Test.Framework (Test, testGroup) import Tes...
null
https://raw.githubusercontent.com/HaskellCNOrg/snap-web/f104fd9b8fc5ae74fc7b8002f0eb3f182a61529e/tests/Views/ReplySplicesTest.hs
haskell
# LANGUAGE OverloadedStrings # | All replies which have no children replies | All children replies | reply and its children. -------------------------------------------------------
module Views.ReplySplicesTest (tests) where import Data.Bson (ObjectId) import Data.Time import System.IO.Unsafe (unsafePerformIO) import Test.Framework (Test, testGroup) import Test.Framework.Providers.HUnit (testCa...
431ae84def7395f03aeb8d4c1b13fc867c166d60109ea6d2b91ccdeb74cadb72
bittide/bittide-hardware
ClockControl.hs
SPDX - FileCopyrightText : 2022 Google LLC -- SPDX - License - Identifier : Apache-2.0 module Bittide.Instances.ClockControl where import Clash.Prelude import Bittide.ClockControl.Callisto import Bittide.Instances.Domains import Bittide.ClockControl config :: ClockControlConfig Basic200 12 config = $(lift (defC...
null
https://raw.githubusercontent.com/bittide/bittide-hardware/b44dac8ee0fb14b0c6a94fcbe830fdd8d140bec4/bittide-instances/src/Bittide/Instances/ClockControl.hs
haskell
| Data counts from elastic buffers | Speed change requested from clock multiplier all links available
SPDX - FileCopyrightText : 2022 Google LLC SPDX - License - Identifier : Apache-2.0 module Bittide.Instances.ClockControl where import Clash.Prelude import Bittide.ClockControl.Callisto import Bittide.Instances.Domains import Bittide.ClockControl config :: ClockControlConfig Basic200 12 config = $(lift (defCloc...
8b9773661a9d24e73d15395868628c849b2ff8684ebca52dd3d2ca489102d527
rtoy/cmucl
mixed-compare.lisp
(defun foo (x y) (< (the single-float x) (the rational y)))
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/tests/mixed-compare.lisp
lisp
(defun foo (x y) (< (the single-float x) (the rational y)))
04554ef251cc7224d50cabcfec9c2d8ba37455e475b6c91edbdc3418713919ce
alanning/meteor-load-test
http_binding.clj
;; ;; Using rebinding and reporting with The Grinder ;; (ns math.http (:import [net.grinder.script Grinder Test] [net.grinder.plugin.http HTTPRequest]) (:use math.test) (:require [clj-http.client :as http]) ) (let [grinder Grinder/grinder stats (.getStatistics grinder) test (Test. 5 "...
null
https://raw.githubusercontent.com/alanning/meteor-load-test/76bb3a2bdc4e6bfb81755606ac18963f088d5751/grinder/http_binding.clj
clojure
Using rebinding and reporting with The Grinder if testing reports an error, let the grinder know about it the arity of the instrumented fn changes to match the rebound fn rebind the http/get fn to our instrumented fn rebind test reporting to capture errors delay grinder reporting for test reporting to work
(ns math.http (:import [net.grinder.script Grinder Test] [net.grinder.plugin.http HTTPRequest]) (:use math.test) (:require [clj-http.client :as http]) ) (let [grinder Grinder/grinder stats (.getStatistics grinder) test (Test. 5 "Rebinding and reporting")] (defn log [& text] (.....
e91a61faac5292e08f52efbc663ce913628d9b459c0aca56c0159754ac4fdd65
inaka/elvis_core
elvis_SUITE.erl
-module(elvis_SUITE). -behaviour(ct_suite). -export([all/0, init_per_suite/1, end_per_suite/1, chunk_fold_task/2]). -export([rock_with_empty_map_config/1, rock_with_empty_list_config/1, rock_with_incomplete_config/1, rock_with_list_config/1, rock_with_file_config/1, rock_with_old_config/1, rock_with...
null
https://raw.githubusercontent.com/inaka/elvis_core/3aad6aecb71f89dc67811a40c97ef2faab679f77/test/elvis_SUITE.erl
erlang
Common test Test Cases This is related to the test case `rock_with_non_parsable_file`, which will print an error to the standard output and CT will capture it. Thus, we remove it from the list of captures before doing the actual check elvis_config will load default elvis_core rules for every rule_group in ...
-module(elvis_SUITE). -behaviour(ct_suite). -export([all/0, init_per_suite/1, end_per_suite/1, chunk_fold_task/2]). -export([rock_with_empty_map_config/1, rock_with_empty_list_config/1, rock_with_incomplete_config/1, rock_with_list_config/1, rock_with_file_config/1, rock_with_old_config/1, rock_with...
8532da979f4dfc30e27c523965e8d1b6ff51e5c535f53b1fb165d0a861ab7042
rbkmoney/cds
cds_storage_riak.erl
-module(cds_storage_riak). -behaviour(cds_storage). -export([start/1]). -export([put/5]). -export([get/2]). -export([update/5]). -export([delete/2]). -export([search_by_index_value/5]). -export([search_by_index_range/6]). -export([get_keys/3]). -include_lib("riakc/include/riakc.hrl"). -define(DEFAULT_POOLER_TIMEOUT...
null
https://raw.githubusercontent.com/rbkmoney/cds/e5024a06a65a3195f9a677fcbd5b383ffea8c1e4/apps/cds/src/cds_storage_riak.erl
erlang
milliseconds cds_storage behaviour
-module(cds_storage_riak). -behaviour(cds_storage). -export([start/1]). -export([put/5]). -export([get/2]). -export([update/5]). -export([delete/2]). -export([search_by_index_value/5]). -export([search_by_index_range/6]). -export([get_keys/3]). -include_lib("riakc/include/riakc.hrl"). -define(DEFAULT_POOLER_TIMEOUT...
71a00c6e0353279cc03abe4ba995dc1059747d31d9d264ae4ee776bed401bb0d
nathell/solitaire
subs.cljs
(ns solitaire.subs (:require [re-frame.core :as rf] [solitaire.board :as board])) (rf/reg-sub ::board (fn [db _] (:board db))) (rf/reg-sub ::board-dimensions :<- [::board] (fn [board _] (board/dimensions board))) (rf/reg-sub ::field (fn [db [_ x y]] ;; Your task is to add a new key to t...
null
https://raw.githubusercontent.com/nathell/solitaire/02c951d7886aa391b2cea6b49fc6d892dd9c0fa4/exercises/ex_03/subs.cljs
clojure
Your task is to add a new key to the output of this subscription: `:selected?`, containing a boolean value that tells us whether the peg is selected (highlighted). Remember that `db` will now contain `:selected-field`. Look at how the views in `solitaire.views` have changed. We subscribe to this subscription i...
(ns solitaire.subs (:require [re-frame.core :as rf] [solitaire.board :as board])) (rf/reg-sub ::board (fn [db _] (:board db))) (rf/reg-sub ::board-dimensions :<- [::board] (fn [board _] (board/dimensions board))) (rf/reg-sub ::field (fn [db [_ x y]] {:x x :y y :type (get-in db [...
91d3ddce3784d7261006911e2769ae86a756b39f9ac1fa7528e720a9bae77ab1
threatgrid/ctia
vulnerability_test.clj
(ns ctia.entity.vulnerability-test (:require [cheshire.core :as json] [clj-momo.test-helpers.core :as mth] [clojure.test :refer [deftest is join-fixtures use-fixtures]] [clojure.tools.reader.edn :as edn] [ctia.entity.vulnerability :as sut] [ctia.entity.vulne...
null
https://raw.githubusercontent.com/threatgrid/ctia/5e3644cb0b340465fdf43cab7176140d44855df9/test/ctia/entity/vulnerability_test.clj
clojure
(ns ctia.entity.vulnerability-test (:require [cheshire.core :as json] [clj-momo.test-helpers.core :as mth] [clojure.test :refer [deftest is join-fixtures use-fixtures]] [clojure.tools.reader.edn :as edn] [ctia.entity.vulnerability :as sut] [ctia.entity.vulne...
5cce259848f670a71bb41492f5a8ee14c2c61672bd892187112bf29ae71f7e6a
ArulselvanMadhavan/haskell-first-principles
Addition.hs
module Addition where import Test.Hspec import Test.QuickCheck sayHello :: IO () sayHello = putStrLn "Hello" genBool :: Gen Bool genBool = choose (False, True) genBool' :: Gen Bool genBool' = elements [False, True] genOrdering :: Gen Ordering genOrdering = elements [LT, EQ, GT] genChar :: Gen C...
null
https://raw.githubusercontent.com/ArulselvanMadhavan/haskell-first-principles/06e0c71c502848c8e75c8109dd49c0954d815bba/chapter14/src/Addition.hs
haskell
module Addition where import Test.Hspec import Test.QuickCheck sayHello :: IO () sayHello = putStrLn "Hello" genBool :: Gen Bool genBool = choose (False, True) genBool' :: Gen Bool genBool' = elements [False, True] genOrdering :: Gen Ordering genOrdering = elements [LT, EQ, GT] genChar :: Gen C...
64fd243088c8b9fc8354a060e8aeb7bc6eec0a37cac154854eb3645b385cb3e0
TyOverby/mono
bonsai_web_ui_notifications.mli
open! Core open! Bonsai_web (** This is a notifications component that provides pretty and user-friendly(ish) notifications, with automatic fade-out & dismissal after a time span. *) type t val create * default = 15s -> ?dismiss_errors_automatically:bool Value.t (** default = false *) -> Source_code_position...
null
https://raw.githubusercontent.com/TyOverby/mono/7666c0328d194bf9a569fb65babc0486f2aaa40d/vendor/janestreet-bonsai/web_ui/notifications/src/bonsai_web_ui_notifications.mli
ocaml
* This is a notifications component that provides pretty and user-friendly(ish) notifications, with automatic fade-out & dismissal after a time span. * default = false * [add_error] will create a notification with [text] in primary focus and [error] pretty printed in small font (if provided). * [add_success]...
open! Core open! Bonsai_web type t val create * default = 15s -> Source_code_position.t -> t Computation.t val add_error : ?error:Error.t -> t -> text:string -> unit Ui_effect.t val add_success : t -> text:string -> unit Ui_effect.t module Notification_style : sig module type S = sig * These CSS classes are...
4780f53c6f0c99cb41a2be51db4da8ce0dda4d589a39369eeb5c9c81044276bd
ept/compsci
tick3.ml
ML ASSESSED EXERCISES . TICK 3 SUBMISSION FROM M.A. KLEPPMANN Estimated time to complete : 20 mins . Actual time : 25 mins . ( not including extra work for Tick 3(asterisk ) ) (not including extra work for Tick 3(asterisk)) *) Note that in all three solutions , it is assume...
null
https://raw.githubusercontent.com/ept/compsci/ed666bb4cf52ac2af5c2d13894870bdc23dca237/ml/tick3.ml
ocaml
************************************************************************** EXTRA STUFF FOR TICK 3(asterisk) Function choose(k,xs) returns a list containing all possible k-element lists that can be drawn from xs, ignoring the order of list elements. Definitely not the most efficient solution, but it works.
ML ASSESSED EXERCISES . TICK 3 SUBMISSION FROM M.A. KLEPPMANN Estimated time to complete : 20 mins . Actual time : 25 mins . ( not including extra work for Tick 3(asterisk ) ) (not including extra work for Tick 3(asterisk)) *) Note that in all three solutions , it is assume...
89c6694d9a63aa96b4b7ade02a8a32f5304567d4c2f1eded9a85b2c899ad8cac
exoscale/seql
core.clj
(ns seql.core "Namespace kept for backward compatibility" (:require [seql.query :as query] [seql.env :as env] [seql.mutation :as mutation] [seql.listener :as listener])) (def ^:deprecated query "use `seql.query/execute`" #'query/execute) (def ^:deprecated mutate! ...
null
https://raw.githubusercontent.com/exoscale/seql/7142132a5c364baf201936052095589489320e99/src/seql/core.clj
clojure
(ns seql.core "Namespace kept for backward compatibility" (:require [seql.query :as query] [seql.env :as env] [seql.mutation :as mutation] [seql.listener :as listener])) (def ^:deprecated query "use `seql.query/execute`" #'query/execute) (def ^:deprecated mutate! ...
184060ab9238cad151f4a3a5a0bd43cdafba7739b7ad3ee56de588e36e924300
EwenG/replique
server.clj
(ns replique.server (:require [clojure.main :as m] [replique.utils :as utils] [replique.http :as http] [replique.tooling-msg :as tooling-msg]) (:import [java.net InetAddress Socket ServerSocket SocketException] [java.util.concurrent.locks ReentrantLock] [jav...
null
https://raw.githubusercontent.com/EwenG/replique/45719ec95f463107f4c4ca79b7f83a7882b450cb/src/replique/server.clj
clojure
lock protects servers The caller is responsible for catching exceptions Socket closed Response is sent asynchronously Socket closed nil returns loopback request request \G unread the char because it is part of the HTTP request \P unread the char because it is part of the HTTP request Don't unread the char ...
(ns replique.server (:require [clojure.main :as m] [replique.utils :as utils] [replique.http :as http] [replique.tooling-msg :as tooling-msg]) (:import [java.net InetAddress Socket ServerSocket SocketException] [java.util.concurrent.locks ReentrantLock] [jav...
ce8b0d34a13dc8177b81c1d71fc304056bc56ddef8a643d4d83ee7dc312ae04c
tisnik/clojure-examples
core_test.clj
; ( C ) Copyright 2015 , 2020 ; ; All rights reserved. This program and the accompanying materials ; are made available under the terms of the Eclipse Public License v1.0 ; which accompanies this distribution, and is available at -v10.html ; ; Contributors: ; (ns seesaw10.core-test (:require [...
null
https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/seesaw10/test/seesaw10/core_test.clj
clojure
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors:
( C ) Copyright 2015 , 2020 -v10.html (ns seesaw10.core-test (:require [clojure.test :refer :all] [seesaw10.core :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
c541b9bc65e3d81726fe054fe4ddf2fe180314a506964a184da8984c8c92137d
jeffshrager/biobike
logic-comparison-doc.lisp
-*- Package : bbi ; mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- (in-package :bbi) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | ...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Doc/bbldf/logic-comparison-doc.lisp
lisp
mode : lisp ; base : 10 ; Syntax : Common - Lisp ; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and as...
(in-package :bbi) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject to ...
f3f532400e7b5f473d77a0bb6235950931478863dfca05caf286bfb99cde7eab
plumatic/grab-bag
home.cljs
(ns dashboard.home (:require-macros [om-tools.core :refer [defcomponent]] [cljs.core.async.macros :refer [go go-loop]]) (:require [clojure.string :as str] [schema.utils :as utils] [om.core :as om :include-macros true] [om-tools.dom :as dom :include-macros true] [d3-tools.core :as d3] [tubes....
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/service/dashboard/src/cljs/dashboard/home.cljs
clojure
Components Reactive class names don't work within svg. Public & Export
(ns dashboard.home (:require-macros [om-tools.core :refer [defcomponent]] [cljs.core.async.macros :refer [go go-loop]]) (:require [clojure.string :as str] [schema.utils :as utils] [om.core :as om :include-macros true] [om-tools.dom :as dom :include-macros true] [d3-tools.core :as d3] [tubes....
84327f4275f36d06971e5f6d6423b8da1a5e05aaea6dcfb70bf4be89f94ffc66
master/ejabberd
ejabberd_sm.erl
%%%---------------------------------------------------------------------- File : Author : < > %%% Purpose : Session manager Created : 24 Nov 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne %%% %%% This program is free software; you can redistribute it and/or modify it und...
null
https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/ejabberd_sm.erl
erlang
---------------------------------------------------------------------- Purpose : Session manager This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even t...
File : Author : < > Created : 24 Nov 2002 by < > ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public Li...
4b6bb9d7a644252ed0857c460b3e8850c617f47dbb1ed7d7a0d55cf6a39ce89b
typedclojure/typedclojure
core__defprotocol.clj
Copyright ( c ) , contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/6c697798cef6fa6c936aaa3cbf26ec51f8e7e2ed/typed/lib.clojure/src/typed/clj/ext/clojure/core__defprotocol.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , contributors . (ns ^:no-doc typed.clj.ext.clojure.core__defprotocol "Typing rules for clojure.core/defprotocol" (:require [typed.cljc.checker.check-below :as below] [typed.cljc.checker.type-rep :as r] [typed.cljc.checker.utils :as u] [typed.cljc.chec...
c51ccc5996636aecaf3650403ee00cc79961b2f50cf43a3d6717dd904cba4170
ocaml-ppx/ppx_tools_versioned
ast_convenience_402.ml
open Migrate_parsetree.Ast_402 (* This file is part of the ppx_tools package. It is released *) under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi open Parsetree open Asttypes open Location open Ast_helper module Label = struct type t = s...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx_tools_versioned/00a0150cdabfa7f0dad2c5e0e6b32230d22295ca/ast_convenience_402.ml
ocaml
This file is part of the ppx_tools package. It is released
open Migrate_parsetree.Ast_402 under the terms of the MIT license ( see LICENSE file ) . Copyright 2013 and LexiFi open Parsetree open Asttypes open Location open Ast_helper module Label = struct type t = string type desc = Nolabel | Labelled of string | Op...
2d1c22bed34bb748a1fbd570d2cce678cd93b304256bab42ac067f71eec907b3
uim/uim
ng-key.scm
;;; ng-key.scm: Key definitions and utilities (next generation) ;;; Copyright ( c ) 2005 - 2013 uim Project ;;; ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: 1 . Redistributions...
null
https://raw.githubusercontent.com/uim/uim/d1ac9d9315ff8c57c713b502544fef9b3a83b3e5/scm/ng-key.scm
scheme
ng-key.scm: Key definitions and utilities (next generation) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list ...
Copyright ( c ) 2005 - 2013 uim Project 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of authors nor the names of its contributors THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTOR...
4e1a9bcc44d0a34341064972586e7b254320a7b1786b9a56f90c9d98cac8a6c2
clojure-interop/google-cloud-clients
TransactionRunner.clj
(ns com.google.cloud.spanner.TransactionRunner "An interface for executing a body of work in the context of a read-write transaction, with retries for transaction aborts. See TransactionContext for a description of transaction semantics. TransactionRunner instances are obtained by calling DatabaseClient.readWrite...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.spanner/src/com/google/cloud/spanner/TransactionRunner.clj
clojure
implementations
(ns com.google.cloud.spanner.TransactionRunner "An interface for executing a body of work in the context of a read-write transaction, with retries for transaction aborts. See TransactionContext for a description of transaction semantics. TransactionRunner instances are obtained by calling DatabaseClient.readWrite...
6e1429d0bae1c4994de57895f50d8808cde3f4f91e990c36c79115d18fbefc19
zotonic/zotonic
controller_default_contact.erl
@author author < > YYYY author . %% @doc Example contact-form handler. -module(controller_default_contact). -export([event/2]). -include_lib("zotonic_core/include/zotonic.hrl"). event(#submit{message={contact, []}}, Context) -> Vars = [{mail, z_context:get_q("mail", Context)}, {name, z_context:...
null
https://raw.githubusercontent.com/zotonic/zotonic/852f627c28adf6e5212e8ad5383d4af3a2f25e3f/apps/zotonic_mod_zotonic_site_management/priv/skel/blog/src/controllers/controller_default_contact.erl
erlang
@doc Example contact-form handler.
@author author < > YYYY author . -module(controller_default_contact). -export([event/2]). -include_lib("zotonic_core/include/zotonic.hrl"). event(#submit{message={contact, []}}, Context) -> Vars = [{mail, z_context:get_q("mail", Context)}, {name, z_context:get_q("name", Context)}, {...
4cbbf6c1b3a164775bc777f4decbbe3c8c2f8e93548a2243970abd289227f9ea
janestreet/memtrace_viewer_with_deps
vdom_based_tests.ml
open! Core_kernel open Bonsai.Let_syntax open Virtual_dom open Proc This test basically just exists because it 's really hard to dispatch events deep into a tree without an intermediate representation . Turns out that Vdom . Node.t is a pretty good intermediate representation . events deep into a tree...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/bonsai/web_test/vdom_based_tests.ml
ocaml
open! Core_kernel open Bonsai.Let_syntax open Virtual_dom open Proc This test basically just exists because it 's really hard to dispatch events deep into a tree without an intermediate representation . Turns out that Vdom . Node.t is a pretty good intermediate representation . events deep into a tree...
99128574717ea36340e3cff31265528edc89f9f1bffd2dac756a847ed1123345
nuprl/gradual-typing-performance
classes.rkt
#lang typed/racket/base (require typed/racket/class (prefix-in mred: typed/racket/gui) "require-typed-check.rkt" ; benchmark infrastructure "typed-base.rkt" ; replace this with base, after defining interfaces racket/math string-constants) (require/typed/if "region-typed.rk...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/benchmarks/gofish/typed/classes.rkt
racket
benchmark infrastructure replace this with base, after defining interfaces utils.rk inlined here -------------------- constants.rkt inlined here -------------------------- Since we use size-in-pixels, the letters the descender), but the space above the letter center on 12 , splitting the difference for the ...
#lang typed/racket/base (require typed/racket/class (prefix-in mred: typed/racket/gui) racket/math string-constants) (require/typed/if "region-typed.rkt" "region.rkt") (require/typed/check "make-cards.rkt" [back (Instance mred:Bitmap%)]) (require/typed/check "show-hel...
3a49c0534fe0111384e80a417a42117a32b77b20811ffacba92dcb4498f5bcff
ghcjs/jsaddle-dom
WebGL2RenderingContext.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.WebGL2RenderingContext (bufferDataPtr, bufferData, bufferSubData, bufferDataView, bufferSubDataView, copyBu...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/WebGL2RenderingContext.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/WebGL2RenderingContext.getBufferSubData Mozilla WebGL2RenderingContext.getBufferSubData documentation> | <-US/docs/Web/API/WebGL2RenderingContext.texStorage2D Mozilla WebGL2RenderingContext.texStorage2D d...
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.WebGL2RenderingContext (bufferDataPtr, bufferData, bufferSubData, bufferDataView, bufferSubDataView, copyBufferSubData, getBufferSubData, blitFramebuffer, framebufferTextureLayer, getInterna...
c67f777e67b652d46ba3f0d95d52e9494039e8c0d95cf137adfa749106c5aadd
xh4/web-toolkit
macros.lisp
(in-package :alexandria) (defmacro with-gensyms (names &body forms) "Binds a set of variables to gensyms and evaluates the implicit progn FORMS. Each element within NAMES is either a symbol SYMBOL or a pair (SYMBOL STRING-DESIGNATOR). Bare symbols are equivalent to the pair (SYMBOL SYMBOL). Each pair (SYMBOL STRIN...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/alexandria-20191227-git/macros.lisp
lisp
=> => >> bind in user-macro bind in final expansion bind in user-macro DESTRUCTURING-*CASE =| error
(in-package :alexandria) (defmacro with-gensyms (names &body forms) "Binds a set of variables to gensyms and evaluates the implicit progn FORMS. Each element within NAMES is either a symbol SYMBOL or a pair (SYMBOL STRING-DESIGNATOR). Bare symbols are equivalent to the pair (SYMBOL SYMBOL). Each pair (SYMBOL STRIN...
02ff6cd221007d6bc1e043fb10e504eb0230e953b47f600d62b21637e93ea2ac
input-output-hk/plutus-apps
Tx.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PolyKinds # {-# LANGUAGE RankNTypes #-} # LAN...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/b80116b9dd97e83b61f016924f83ad4284212796/plutus-chain-index-core/src/Plutus/ChainIndex/Tx.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # | The chain index' version of a transaction ** Lenses | Convert a 'OnChainTx' to a 'ChainIndexTx'. An invalid 'OnChainTx' will not produce any 'ChainIndexTx' outputs and the collateral inputs of the 'OnChainTx' will ...
# LANGUAGE DerivingVia # # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE NamedFieldPuns # # LANGUAGE PolyKinds # # LANGUAGE ScopedTypeVariables # # LANGUAGE TupleSections # module Plutus.ChainIndex.Tx( ChainIndexTx(..)...
e9b9ac5cac049275efedcf2191ff8f20b59570573b62213444902e4225eba134
roosta/herb
code.cljs
(ns site.components.code (:require [reagent.core :as r] [cljsjs.highlight] [cljsjs.highlight.langs.clojure] [cljsjs.highlight.langs.xml] )) (defn code [{:keys [lang]} content] (let [el (r/atom nil)] (r/create-class {:component-did-mount #(.highlightBlock j...
null
https://raw.githubusercontent.com/roosta/herb/64afb133a7bf51d7171a3c5260584c09dbe4e504/site/src/site/components/code.cljs
clojure
(ns site.components.code (:require [reagent.core :as r] [cljsjs.highlight] [cljsjs.highlight.langs.clojure] [cljsjs.highlight.langs.xml] )) (defn code [{:keys [lang]} content] (let [el (r/atom nil)] (r/create-class {:component-did-mount #(.highlightBlock j...
e0cda0d4f1defa93c6eb1f96b485477b5eac267a5f03aeffdff0bfeda02278e6
christian-marie/git-vogue
git-vogue-ghc-mod.hs
-- Copyright © 2013 - 2015 Anchor Systems , Pty Ltd and Others -- -- The code in this file, and the program it is a part of, is -- made available to you by its authors as open source software: -- you can redistribute it and/or modify it under the terms of the 3 - clause BSD licence . -- # LANGUAGE LambdaCase # --...
null
https://raw.githubusercontent.com/christian-marie/git-vogue/b9e9c5f0e0dc8d47bd0f397dea6fc64f41e04a8c/src/git-vogue-ghc-mod.hs
haskell
The code in this file, and the program it is a part of, is made available to you by its authors as open source software: you can redistribute it and/or modify it under the terms of | Description: Check with "cabal check". will be sad. HLint.hs is weird and more of a config file than a source file, so Setup....
Copyright © 2013 - 2015 Anchor Systems , Pty Ltd and Others the 3 - clause BSD licence . # LANGUAGE LambdaCase # module Main where import Control.Applicative import Control.Monad import Data.Char import Data.Foldable import Data.List hiding (and) imp...
3fdccf2a606f8273ec06af7998507de5014f0f6760393a7a19d7c567402f760e
unison-code/uni-instr-sel
UniTarGen.hs
Main authors : < > Main authors: Gabriel Hjort Blindell <> -} Copyright ( c ) 2012 - 2017 , < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of so...
null
https://raw.githubusercontent.com/unison-code/uni-instr-sel/2edb2f3399ea43e75f33706261bd6b93bedc6762/uni-targen/UniTarGen.hs
haskell
----------- Functions ----------- | Returns output directory specified on the command line. Reports error if no directory is specified. | If an output file is given as part of the options, then the returned function will emit all data to the output file with the output ID suffixed to the output file name (this ma...
Main authors : < > Main authors: Gabriel Hjort Blindell <> -} Copyright ( c ) 2012 - 2017 , < > All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : * Redistributions of so...
d6772a87674c211863e04ca82ca9afa5ad2133c8b95402b894fa506588366e43
bennn/dissertation
include.rkt
#lang racket/base (require (except-in greenman-thesis #%module-begin) re - use 's doclang2 module - begin to sort everything ;; into a doc binding (only-in scribble/doclang2 #%module-begin)) (provide (all-from-out greenman-thesis) #%module-begin)
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/include.rkt
racket
into a doc binding
#lang racket/base (require (except-in greenman-thesis #%module-begin) re - use 's doclang2 module - begin to sort everything (only-in scribble/doclang2 #%module-begin)) (provide (all-from-out greenman-thesis) #%module-begin)
acae0732cc93080bebd616e9e0706c3d4f767bc4ba962b3a7cc4d31c570fbca5
afiniate/aws_async
ddb_describetable.mli
open Core.Std open Async.Std val exec: Ddb_system.t -> String.t -> (Ddb_system.t * Ddb_describetable_t.result, Exn.t) Deferred.Result.t
null
https://raw.githubusercontent.com/afiniate/aws_async/44c27bf9f18f76e9e6405c2252098c4aa3d9a8bc/lib/dynamodb/ddb_describetable.mli
ocaml
open Core.Std open Async.Std val exec: Ddb_system.t -> String.t -> (Ddb_system.t * Ddb_describetable_t.result, Exn.t) Deferred.Result.t
7ca61d0d09d08610c6d42e66a5e602fd2f60b6be7f67b5f3b63f928bc1bbeb39
maybevoid/casimir
EffFunctor.hs
# LANGUAGE UndecidableInstances # module Casimir.Base.EffFunctor ( EffFunctor (..) ) where import Data.Kind import Casimir.Base.Lift import Casimir.Base.Effect class EffFunctor (lift :: (Type -> Type) -> (Type -> Type) -> Type) (comp :: (Type -> Type) -> Type) where effmap :: forall eff1 eff2 ...
null
https://raw.githubusercontent.com/maybevoid/casimir/ebbfa403739d6f258e6ac6793549006a0e8bff42/casimir/src/lib/Casimir/Base/EffFunctor.hs
haskell
# OVERLAPPABLE #
# LANGUAGE UndecidableInstances # module Casimir.Base.EffFunctor ( EffFunctor (..) ) where import Data.Kind import Casimir.Base.Lift import Casimir.Base.Effect class EffFunctor (lift :: (Type -> Type) -> (Type -> Type) -> Type) (comp :: (Type -> Type) -> Type) where effmap :: forall eff1 eff2 ...
38532232ef0d9589200543f90e5bd835879ca2083fda8dfdc7496c9adcf27798
eeng/shevek
es.cljs
(ns shevek.locales.es) (def translations {:sessions {:logout "Salir"} :home {:menu "Inicio" :title "Bienvenido!" :subtitle "Qué te gustaría analizar hoy?"} :cubes {:title "Cubos" :subtitle "Cubos de datos disponibles" :name "Nombre" :description "Descripci...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/src/cljs/shevek/locales/es.cljs
clojure
(ns shevek.locales.es) (def translations {:sessions {:logout "Salir"} :home {:menu "Inicio" :title "Bienvenido!" :subtitle "Qué te gustaría analizar hoy?"} :cubes {:title "Cubos" :subtitle "Cubos de datos disponibles" :name "Nombre" :description "Descripci...
47be4c8fcdbe3a3b555eda2b17476946ebd77c0b5c92a2a3b6c0c9b6ddf7c264
bpoweski/consul-clojure
project.clj
(defproject consul-clojure "0.7.2" :description "A Consul client for Clojure applications." :url "-clojure" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[camel-snake-kebab "0.3.1" :exclusions [org.clojure/clojure com.keminglabs/cljx]] [cheshire "5.5.0"] ...
null
https://raw.githubusercontent.com/bpoweski/consul-clojure/11627a538eabf3c2e8a9b0e3caf6d1944291ffd6/project.clj
clojure
(defproject consul-clojure "0.7.2" :description "A Consul client for Clojure applications." :url "-clojure" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[camel-snake-kebab "0.3.1" :exclusions [org.clojure/clojure com.keminglabs/cljx]] [cheshire "5.5.0"] ...
7da83cbfe9560302c25096366fc7b0ef47a6ee66dd51df28fa3fd9385c406cdf
tschady/advent-of-code
d05.clj
(ns aoc.2017.d05 (:require [aoc.file-util :as file-util])) (def input (->> "2017/d05.txt" file-util/read-lines (mapv #(Integer/parseInt %)))) (defn steps-to-exit [tape update-fn] (loop [loc 0 tape tape steps 1] (let [cur-val (get tape loc) new-loc (+ loc cur-val) new-ta...
null
https://raw.githubusercontent.com/tschady/advent-of-code/1e4a95ef580c3bf635837eff52aa998b0acfc666/src/aoc/2017/d05.clj
clojure
(ns aoc.2017.d05 (:require [aoc.file-util :as file-util])) (def input (->> "2017/d05.txt" file-util/read-lines (mapv #(Integer/parseInt %)))) (defn steps-to-exit [tape update-fn] (loop [loc 0 tape tape steps 1] (let [cur-val (get tape loc) new-loc (+ loc cur-val) new-ta...
47f38856d42de9270cf573dfe7f154971e12e814f02090ce6ee5f0aa18b859ce
exercism/ocaml
test.ml
open OUnit2 open Connect let show_player = function | Some X -> "X" | Some O -> "O" | None -> "None" let ae exp got = assert_equal ~printer:show_player exp got let tests = [ "an empty board has no winner" >::(fun _ctxt -> let board = [ ". . . . ."; " . . . . ."; " . . . . ."; ...
null
https://raw.githubusercontent.com/exercism/ocaml/bfd6121f757817865a34db06c3188b5e0ccab518/exercises/practice/connect/test.ml
ocaml
open OUnit2 open Connect let show_player = function | Some X -> "X" | Some O -> "O" | None -> "None" let ae exp got = assert_equal ~printer:show_player exp got let tests = [ "an empty board has no winner" >::(fun _ctxt -> let board = [ ". . . . ."; " . . . . ."; " . . . . ."; ...
b6cf0e5307b390e294cd6b001440daa1c9902516b92e0d4215ddd99aeaa963da
davexunit/guile-allegro5
image.scm
(define-module (allegro addons image) #:use-module (system foreign) #:use-module (allegro utils) #:export (al-init-image-addon al-shutdown-image-addon al-get-allegro-image-version)) (define liballegro-image (dynamic-link "liballegro_image")) (define-syntax-rule (define-foreign name ret s...
null
https://raw.githubusercontent.com/davexunit/guile-allegro5/614ecc978e034f7b7ba5bd23e27111c8fef81b56/allegro/addons/image.scm
scheme
(define-module (allegro addons image) #:use-module (system foreign) #:use-module (allegro utils) #:export (al-init-image-addon al-shutdown-image-addon al-get-allegro-image-version)) (define liballegro-image (dynamic-link "liballegro_image")) (define-syntax-rule (define-foreign name ret s...
d941258742a1f644c44b3f97392ab218a91b4fd50e37de7e6b01e99fbc606e39
erlang/otp
ssl_key_update_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2020 - 2022 . 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/erlang/otp/32f6ee47b1b55c3e4aec1273fb259fdcbfdbcf07/lib/ssl/test/ssl_key_update_SUITE.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 2020 - 2022 . 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(ssl_key_update_SUITE). -behaviour(ct_suite). -export([all/0, groups/0, init_per_suite/1, ...
d02eefc04afbcfe8791ba276db8d517b37c9fff2269e87a15de54f15b00da8e1
ocaml-ppx/ocamlformat
foo.ml
val a : aaa -> bbb -> ccc -> ddd -> eee -> fff -> ggg
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/5ce32d2aeb1f7ca38b0bbc65d5d77eb64f78484e/test/rpc/big_margin/foo.ml
ocaml
val a : aaa -> bbb -> ccc -> ddd -> eee -> fff -> ggg
586d1b56362b2774f50b5586b7c9f6d33ce0da4f7fc526c66eacd9a4555da4da
mirage/ocaml-xenstore-server
interdomain.mli
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
null
https://raw.githubusercontent.com/mirage/ocaml-xenstore-server/2a8ae397d2f9291107b5d9e9cfc6085fde8c0982/userspace/interdomain.mli
ocaml
* Copyright ( C ) Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LI...
3a944d431f61eb847f91d735ff233b190bc2c17f100ff7efcb77bc573cc6dce8
whilo/denisovan
core_test.clj
(ns denisovan.core-test (:use [clojure test] [clojure.core.matrix]) (:require [clojure.core.matrix.protocols :refer [norm] :as p] [denisovan.core :as d] [clojure.core.matrix.compliance-tester])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (set-current-im...
null
https://raw.githubusercontent.com/whilo/denisovan/fd6eabaec4f3d91f598332a97208e6268fe32196/test/denisovan/core_test.clj
clojure
(ns denisovan.core-test (:use [clojure test] [clojure.core.matrix]) (:require [clojure.core.matrix.protocols :refer [norm] :as p] [denisovan.core :as d] [clojure.core.matrix.compliance-tester])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (set-current-im...
dae268d724337069fc938429eb9392e93026b2ae01ca0a06eda2af2a69e5d155
Lysxia/test-monad-laws
Mutants.hs
# LANGUAGE FlexibleInstances # module Test.Monad.Trans.Mutants where import Control.Monad.Trans import Control.Monad.Trans.Maybe import Data.Functor (($>)) import Test.Mutants -- | An general way to get 'MonadTrans' wrong is to run the base -- computation twice. data LiftTwice instance {-# OVERLAPPING #-} MonadT...
null
https://raw.githubusercontent.com/Lysxia/test-monad-laws/1cb9e116769771cb49fbd1614f50b05e120a2709/src/Test/Monad/Trans/Mutants.hs
haskell
| An general way to get 'MonadTrans' wrong is to run the base computation twice. # OVERLAPPING # Other kinds of mistakes are difficult to make, by parametricity. lift :: m a -> (s -> m (a, s)) Except: lift :: m a -> m (Either e a) Writer: lift :: m a -> m (w, a) Reader: lift :: m a -> (r -> m a) Maybe: lift...
# LANGUAGE FlexibleInstances # module Test.Monad.Trans.Mutants where import Control.Monad.Trans import Control.Monad.Trans.Maybe import Data.Functor (($>)) import Test.Mutants data LiftTwice MonadTrans t => MonadTrans (Mutant LiftTwice t) where lift m = lift (m >> m) State : data LiftMaybeNothing M...
f6a26f163945754782f8d3619e763aa7c287410e58e493a5c78ab0af8924e4f2
tsloughter/rebar3_tests
db_manager.erl
-module(db_manager). -behaviour(gen_server). %% API functions -export([start_link/1 ,get_metric_type/1 ,get_metric_fd/1 ,get_metric_fd/2 ,get_metric_maps/0 ,load_metric_map/1 ,pre_process_metric/1 ]). %% gen_server callbacks -export([init/1, handle_cal...
null
https://raw.githubusercontent.com/tsloughter/rebar3_tests/090bfef7d3a4790bb6b16e4c38df6e4c0460b4b2/sub_app_eleveldb/apps/graph_db/src/db_manager.erl
erlang
API functions gen_server callbacks -record(state, {}). =================================================================== API functions =================================================================== metric storing seconds is assumed to be live return all metric maps if the Granularity req was not for live i...
-module(db_manager). -behaviour(gen_server). -export([start_link/1 ,get_metric_type/1 ,get_metric_fd/1 ,get_metric_fd/2 ,get_metric_maps/0 ,load_metric_map/1 ,pre_process_metric/1 ]). -export([init/1, handle_call/3, handle_cast/2, han...
0e81b47686c75e17c88ec6da0ae26e4c688b0c64afa3caae03b34dd8f397711b
evertedsphere/silica
Internal.hs
# LANGUAGE CPP # ----------------------------------------------------------------------------- -- | -- Module : Silica.Internal Copyright : ( C ) 2012 - 16 -- License : BSD-style (see the file LICENSE) Maintainer : < > -- Stability : experimental -- Portability : Rank2Types -- -- These ...
null
https://raw.githubusercontent.com/evertedsphere/silica/346006f7b58142c6479395e93338134f541034cc/src/Silica/Internal.hs
haskell
--------------------------------------------------------------------------- | Module : Silica.Internal License : BSD-style (see the file LICENSE) Stability : experimental Portability : Rank2Types These are some of the explicit 'Functor' instances that leak into the module directly for most use-ca...
# LANGUAGE CPP # Copyright : ( C ) 2012 - 16 Maintainer : < > type signatures of You should n't need to import this module Silica.Internal ( module Silica.Internal.Bazaar , module Silica.Internal.Context , module Silica.Internal.Fold , module Silica.Internal.Getter , module Silica.Interna...
30fe9077a78c719512f18af43fdf76320f610305effcce781bc365516865fab2
MarcoPolo/iso-country-codes
project.clj
(defproject iso-country-codes "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.4.0"] [org.clojure/data.json "0.2.1"]])
null
https://raw.githubusercontent.com/MarcoPolo/iso-country-codes/489fd3ad50e175714955e567917c07ceea7907df/project.clj
clojure
(defproject iso-country-codes "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.4.0"] [org.clojure/data.json "0.2.1"]])
b9f3b25fc1b8e33b5f9e72c2d4d7de8716ecb2ad965cec34ef26a226d646688c
logseq/logseq
namespaces.cljc
(ns ^:no-doc frontend.namespaces #?(:cljs (:require-macros [frontend.namespaces]))) ;; copy from -commons/potemkin/issues/31#issuecomment-110689951 (defmacro import-def "import a single fn or var (import-def a b) => (def b a/b) " [from-ns def-name] (let [from-sym# (symbol (str from-ns) (str def-name))] ...
null
https://raw.githubusercontent.com/logseq/logseq/9c7b4ea2016fb28b16ee42a7136c73dd52d8ce4b/src/main/frontend/namespaces.cljc
clojure
copy from -commons/potemkin/issues/31#issuecomment-110689951 FIXME:
(ns ^:no-doc frontend.namespaces #?(:cljs (:require-macros [frontend.namespaces]))) (defmacro import-def "import a single fn or var (import-def a b) => (def b a/b) " [from-ns def-name] (let [from-sym# (symbol (str from-ns) (str def-name))] `(def ~def-name ~from-sym#))) (defmacro import-vars "import...
51c032dae8484cf0755bbb425e138fb495962903c5c397598e7020ede7a55d90
reiddraper/knockbox
core.clj
(ns knockbox.test.core (:use [knockbox.core]) (:use [clojure.test]))
null
https://raw.githubusercontent.com/reiddraper/knockbox/ed22221759d0d3dbe4f1b1f83355e95e945de729/test/knockbox/test/core.clj
clojure
(ns knockbox.test.core (:use [knockbox.core]) (:use [clojure.test]))
0662d4575d8f7a45cdeabde33939cd02de261f317bb6defd396315b398981d22
gpwwjr/LISA
strategies.lisp
This file is part of LISA , the Lisp - based Intelligent Software ;;; Agents platform. Copyright ( C ) 2000 ( ) ;;; 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 versi...
null
https://raw.githubusercontent.com/gpwwjr/LISA/bc7f54b3a9b901d5648d7e9de358e29d3b794c78/src/core/strategies.lisp
lisp
Agents platform. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License either version 2.1 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FI...
This file is part of LISA , the Lisp - based Intelligent Software Copyright ( C ) 2000 ( ) of the License , or ( at your option ) any later version . GNU Lesser General Public License for more details . You should have received a copy of the GNU Lesser General Public License Foundation , Inc. , 59 T...
15df06200ba085faac45db5d78850049af78a7c5242e76ca5178f2e68824e759
reenberg/wobot
LiftN.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # Copyright ( c...
null
https://raw.githubusercontent.com/reenberg/wobot/ce7f112096ba1abd43b8d29da7e8944c2a004125/fladuino/fladuino/Fladuino/LiftN.hs
haskell
# LANGUAGE RankNTypes # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documen...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # Copyright ( c ) 2008 The Presid...
f093dc1bc9d2c84e4444e57fb27e091de99a1febc21401240667eb5166b2ddaa
facebook/pyre-check
modulePath.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/2ae0e5f9eccceb2f085135724a0654db999da0fb/source/ast/modulePath.ml
ocaml
TODO(T132410158) Add a module-level doc comment. NOTE(grievejia): Symlink are generally not followed by the type checker. This usage comes from legacy code and should not be replicated elsewhere. Ensure extension is not stripped when creating qualifier Stub file always takes precedence Priority based on...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
6beaa3d0a1c8d7ef1f4f78635d3af744f3ca23970dd69a92308b0aeffcbba20f
dieu/consulerl
consulerl_eunit.erl
-module(consulerl_eunit). -include("consulerl.hrl"). -include_lib("eunit/include/eunit.hrl"). %% API -export([ setup_app/0, setup_httpc_200/1, setup_httpc_200/2, setup_httpc_200_plain/1, setup_httpc_404/0, setup_httpc_405/0, setup_httpc_409/1, setup_httpc_timeout/0, setup_error/0 ]). -export([ st...
null
https://raw.githubusercontent.com/dieu/consulerl/a8c003dbc380911a1ad90a3468e60017aef38c79/test/consulerl_eunit.erl
erlang
API
-module(consulerl_eunit). -include("consulerl.hrl"). -include_lib("eunit/include/eunit.hrl"). -export([ setup_app/0, setup_httpc_200/1, setup_httpc_200/2, setup_httpc_200_plain/1, setup_httpc_404/0, setup_httpc_405/0, setup_httpc_409/1, setup_httpc_timeout/0, setup_error/0 ]). -export([ stop_app/...
b5c12487f7e11858f5769bc2701241269f1a9d2dcd39a2ac14b6101804e5ab06
anoma/juvix
IndexTable.hs
module Juvix.Compiler.Core.Translation.FromInternal.Data.IndexTable where import Data.HashMap.Strict qualified as HashMap import Juvix.Compiler.Abstract.Data.Name import Juvix.Compiler.Core.Language data IndexTable = IndexTable { _indexTableVarsNum :: Index, _indexTableVars :: HashMap NameId Index } makeLens...
null
https://raw.githubusercontent.com/anoma/juvix/807b3b1770289b8921304e92e7305c55c2e11f8f/src/Juvix/Compiler/Core/Translation/FromInternal/Data/IndexTable.hs
haskell
module Juvix.Compiler.Core.Translation.FromInternal.Data.IndexTable where import Data.HashMap.Strict qualified as HashMap import Juvix.Compiler.Abstract.Data.Name import Juvix.Compiler.Core.Language data IndexTable = IndexTable { _indexTableVarsNum :: Index, _indexTableVars :: HashMap NameId Index } makeLens...
71980104b644597068a151b26001288c6cc34ec29cc46e0c2e240b324efa8759
janestreet/core
day_of_week_intf.ml
* For representing a day of the week . open! Import module type Day_of_week = sig type t = | Sun | Mon | Tue | Wed | Thu | Fri | Sat [@@deriving bin_io, compare, hash, quickcheck, sexp, sexp_grammar, typerep] include Comparable.S_binable with type t := t include Hashable.S_binable...
null
https://raw.githubusercontent.com/janestreet/core/f382131ccdcb4a8cd21ebf9a49fa42dcf8183de6/core/src/day_of_week_intf.ml
ocaml
* [shift] goes forward (or backward) the specified number of days. * [ Mon; Tue; Wed; Thu; Fri ] * [ Sat; Sun ]
* For representing a day of the week . open! Import module type Day_of_week = sig type t = | Sun | Mon | Tue | Wed | Thu | Fri | Sat [@@deriving bin_io, compare, hash, quickcheck, sexp, sexp_grammar, typerep] include Comparable.S_binable with type t := t include Hashable.S_binable...
6714a4940296db8c1d8efb1d52a97a6759be060364b3ca298955ac1edba1e90e
jarcane/clojurice
core.clj
;;;; core.clj - app.core ;;; The main entry point for production application. (ns app.core (:gen-class) (:require [system.repl :refer [set-init! start]] [app.systems :as system])) (defn -main "The main entry point for production deployments." [& args] (set-init! #'system/prod-system) (start))
null
https://raw.githubusercontent.com/jarcane/clojurice/8fd899a5bbad918902d306c6aa28e3724a6e0bbe/src/clj/app/core.clj
clojure
core.clj - app.core The main entry point for production application.
(ns app.core (:gen-class) (:require [system.repl :refer [set-init! start]] [app.systems :as system])) (defn -main "The main entry point for production deployments." [& args] (set-init! #'system/prod-system) (start))
3cd54868416c444c8c6fe7de71b688c440b3a37c474b72fae86d8ff50da5361d
Incubaid/arakoon
compression_test.ml
Copyright ( 2010 - 2014 ) INCUBAID BVBA 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/Incubaid/arakoon/43a8d0b26e4876ef91d9657149f105c7e57e0cb0/src/tlog/compression_test.ml
ocaml
Copyright ( 2010 - 2014 ) INCUBAID BVBA 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...
2c4748bdf6b9212cc605a083f912705d8082b0488f4d6cd14bb12c61f957792b
mfikes/fifth-postulate
ns22.cljs
(ns fifth-postulate.ns22) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (xs...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns22.cljs
clojure
(ns fifth-postulate.ns22) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (xs...
6b5b66101fb4a1e79ac63f21588985ac4e3443edddf00ed680830f65756b9da4
sibylfs/sibylfs_src
check.ml
(****************************************************************************) Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) (* *) (* Permission to use, copy, modify, and/or d...
null
https://raw.githubusercontent.com/sibylfs/sibylfs_src/30675bc3b91e73f7133d0c30f18857bb1f4df8fa/fs_test/check.ml
ocaml
************************************************************************** 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 no...
Copyright ( c ) 2013 , 2014 , 2015 , , , , ( as part of the SibylFS project ) THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNE...
04876d97743c189326ebb8c20d694ed7903151049f0572e4ce82fe287baa1bf6
exoscale/clojure-kubernetes-client
v1beta1_volume_error.clj
(ns clojure-kubernetes-client.specs.v1beta1-volume-error (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1beta1-volume-error-data v1beta1-volume-error) (def v1beta1-volume-error-data { (ds/opt :message) string? (ds/opt :time)...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1beta1_volume_error.clj
clojure
(ns clojure-kubernetes-client.specs.v1beta1-volume-error (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1beta1-volume-error-data v1beta1-volume-error) (def v1beta1-volume-error-data { (ds/opt :message) string? (ds/opt :time)...
43fb8d3e63976fb4af58dc3d6d9433c0718766ca07f55921c9be39dcebcc52b4
diagrams/diagrams-solve
Polynomial.hs
----------------------------------------------------------------------------- -- | -- Module : Diagrams.Solve.Polynomial Copyright : ( c ) 2011 - 2015 diagrams - solve team ( see LICENSE ) -- License : BSD-style (see LICENSE) -- Maintainer : -- Exact solving of low - degree ( n < = 4 ) polynomial...
null
https://raw.githubusercontent.com/diagrams/diagrams-solve/c6fa6ab304cd155cb4e06ee607cb3f120ef22ee7/src/Diagrams/Solve/Polynomial.hs
haskell
--------------------------------------------------------------------------- | Module : Diagrams.Solve.Polynomial License : BSD-style (see LICENSE) Maintainer : --------------------------------------------------------------------------- | The fundamental circle constant, /i.e./ ratio between a circl...
Copyright : ( c ) 2011 - 2015 diagrams - solve team ( see LICENSE ) Exact solving of low - degree ( n < = 4 ) polynomials . module Diagrams.Solve.Polynomial ( quadForm , cubForm , quartForm , cubForm' , quartForm' ) where import Data.List (maximumBy) import ...
1f07b7d433589877db81f3e51a2e898e3c7fa2d91b37aac8f7b0b8708f8bd5f9
appliedfm/vstyle-tools
doctree.mli
class doc_node : Style_group.body_node -> object inherit Style.node val body : Style_group.body_node val css_margin : int val css_max_indent : int method load_style : style:Css.Types.Stylesheet.t -> ctx:Style.node list -> unit method styled_pp : ppf:Format.formatter -> ctx:Style.node lis...
null
https://raw.githubusercontent.com/appliedfm/vstyle-tools/c639e5acff3fd1dfae6af423d7ce9bce9433f140/src/doctree.mli
ocaml
class doc_node : Style_group.body_node -> object inherit Style.node val body : Style_group.body_node val css_margin : int val css_max_indent : int method load_style : style:Css.Types.Stylesheet.t -> ctx:Style.node list -> unit method styled_pp : ppf:Format.formatter -> ctx:Style.node lis...
14abcf894c7696e1e90ad20bfe3f374c9cf3ee18ae8e250806921eada563c7ae
inhabitedtype/ocaml-aws
modifyVpnConnection.mli
open Types type input = ModifyVpnConnectionRequest.t type output = ModifyVpnConnectionResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/ec2/lib/modifyVpnConnection.mli
ocaml
open Types type input = ModifyVpnConnectionRequest.t type output = ModifyVpnConnectionResult.t type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
692ea0dfe8c00be788882a87555e01bc9d621e93338c53bb643e46093629e0a8
ghc/ghc
FastString.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # {-# LANGUAGE UnliftedFFITypes #-} {-# OPTIONS_GHC -O2 -funbox-strict-fields #-} -- We always optimise this, otherw...
null
https://raw.githubusercontent.com/ghc/ghc/93f0e3c49cea484bd6e838892ff8702ec51f34c3/compiler/GHC/Data/FastString.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DeriveDataTypeable # # LANGUAGE UnliftedFFITypes # # OPTIONS_GHC -O2 -funbox-strict-fields # We always optimise this, otherwise performance of a non-optimised compiler is severely affected | * A compact, hash-consed, representation of character strings. * Generated by 'fs...
# LANGUAGE CPP # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # There are two principal string types used internally by GHC : [ ' FastString ' ] * O(1 ) but non - deterministic with Unique comparison ( ` uniqCompareFS ` ) * Tur...
4f4fac53c129f40a99ed9bd94551e43683490537328670a845ab323fda2e3026
cyverse-archive/DiscoveryEnvironmentBackend
build_profiles.clj
{:user {:plugins [[lein-exec "0.3.4"]]}}
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/docker/de-backend-buildenv/build_profiles.clj
clojure
{:user {:plugins [[lein-exec "0.3.4"]]}}
bf6b5d0fbbdc633762784727dede0d5f19602d8d85e4d6e23bd90f0098242b6b
abdulapopoola/SICPBook
4.42.scm
#lang racket (define (xor x y) (or (and x (not y)) (and y (not x)))) (define (liars-puzzle) (let ((Betty (amb 1 2 3 4 5)) (Ethel (amb 1 2 3 4 5)) (Joan (amb 1 2 3 4 5)) (Kitty (amb 1 2 3 4 5)) (Mary (amb 1 2 3 4 5))) (require (xor (= Betty 3) (= Kitty 3))) (require (x...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%204/4.3/4.42.scm
scheme
#lang racket (define (xor x y) (or (and x (not y)) (and y (not x)))) (define (liars-puzzle) (let ((Betty (amb 1 2 3 4 5)) (Ethel (amb 1 2 3 4 5)) (Joan (amb 1 2 3 4 5)) (Kitty (amb 1 2 3 4 5)) (Mary (amb 1 2 3 4 5))) (require (xor (= Betty 3) (= Kitty 3))) (require (x...
a0b56ab824c51c0b0845e4aa7c470756ce932dd8826486dc2115199657344c70
pavlobaron/ErlangOTPBookSamples
mod3.erl
-module(mod3). -vsn(1.0). -export([calc/2]). calc(A, B) -> A + B.
null
https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/entwicklung/upgrade/mod3.erl
erlang
-module(mod3). -vsn(1.0). -export([calc/2]). calc(A, B) -> A + B.
8bfef3a990738d56ddcf640861467833c3e3df1720f420a382ab20e6b12ccaf8
mpickering/apply-refact
Structure12.hs
foo (Bar _ _) = x
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Structure12.hs
haskell
foo (Bar _ _) = x
f1a8c28afecf6bd0441d57dfe401fe5e28626ccbeec8fc5fae06578b0bf8fb57
xguerin/netml
NetML_Layer.mli
module II = NetML_Layer_II module III = NetML_Layer_III module IV = NetML_Layer_IV
null
https://raw.githubusercontent.com/xguerin/netml/de9d277d2f1ac055aea391b89391df6830f80eff/src/NetML_Layer.mli
ocaml
module II = NetML_Layer_II module III = NetML_Layer_III module IV = NetML_Layer_IV
3f7090f6170568bc3142036bbfce3749ac42f1247ebe8ad854f611e24505d06f
racket/rhombus-prototype
name-root-ref.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse/pre racket/symbol (prefix-in enforest: enforest/name-root) enforest/syntax-local shrubbery/property "srcloc.rkt" ...
null
https://raw.githubusercontent.com/racket/rhombus-prototype/6832f0778330d1a7079443d55ca1aeaa9e2dbe18/rhombus/private/name-root-ref.rkt
racket
convert a hierachical layer implemented as portal syntax to a name-root reverse order search path: (cons get prefix) try again with the shallowest to report an error keep looking at dots? Gets information on a name ref that can be used with `import` possibilities in `ids` must be `map` portal syntax to allow ext...
#lang racket/base (require (for-syntax racket/base syntax/parse/pre racket/symbol (prefix-in enforest: enforest/name-root) enforest/syntax-local shrubbery/property "srcloc.rkt" ...
bc955f1fb9958a464b1274c731e9ab20a3a332d018fbb6f44942b3156d63af30
PacktWorkshops/The-Clojure-Workshop
core.cljs
(ns minmacros.core (:require-macros [minmacros.macros :as mm])) (println "Hello from clojurescript") (mm/minimal-macro)
null
https://raw.githubusercontent.com/PacktWorkshops/The-Clojure-Workshop/3d309bb0e46a41ce2c93737870433b47ce0ba6a2/Chapter11/Examples/minmacros/src/minmacros/core.cljs
clojure
(ns minmacros.core (:require-macros [minmacros.macros :as mm])) (println "Hello from clojurescript") (mm/minimal-macro)
757cc090bc5b8baad1d224d1627be55873e93cc6e7043c057947002d9eeb07b0
composewell/streamly
Parallel.hs
# OPTIONS_GHC -Wno - deprecations # -- | -- Module : Main Copyright : ( c ) 2018 Composewell Technologies -- -- License : BSD3 -- Maintainer : # LANGUAGE FlexibleContexts # import Prelude hiding (mapM) import Data.Function ((&)) import Streamly.Prelude ( SerialT, fromParallel, parallel, fromS...
null
https://raw.githubusercontent.com/composewell/streamly/5327f181db2cf956461b74ed50720eebf119f25a/benchmark/Streamly/Benchmark/Prelude/Parallel.hs
haskell
| Module : Main License : BSD3 Maintainer : ----------------------------------------------------------------------------- Merging ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Application/fold...
# OPTIONS_GHC -Wno - deprecations # Copyright : ( c ) 2018 Composewell Technologies # LANGUAGE FlexibleContexts # import Prelude hiding (mapM) import Data.Function ((&)) import Streamly.Prelude ( SerialT, fromParallel, parallel, fromSerial, maxBuffer, maxThreads) import qualified Streamly.Prelude as S...
34bb95422625f353fe9f528945680aadeaf87fc0a6f03a931b3bca06f4fbfa21
gorillalabs/sparkling
validation.clj
(ns sparkling.ml.validation (:import [org.apache.spark.api.java JavaRDD JavaPairRDD JavaSparkContext] [org.apache.spark.ml.tuning ParamGridBuilder CrossValidator CrossValidatorModel TrainValidationSplit TrainValidationSplitModel] [org.apache.spark.ml.param ParamMap] [org.apache.spark.mllib.evaluation...
null
https://raw.githubusercontent.com/gorillalabs/sparkling/ffedcc70fd46bf1b48405be8b1f5a1e1c4f9f578/src/clojure/sparkling/ml/validation.clj
clojure
(ns sparkling.ml.validation (:import [org.apache.spark.api.java JavaRDD JavaPairRDD JavaSparkContext] [org.apache.spark.ml.tuning ParamGridBuilder CrossValidator CrossValidatorModel TrainValidationSplit TrainValidationSplitModel] [org.apache.spark.ml.param ParamMap] [org.apache.spark.mllib.evaluation...
5424e5678f98d2c8c64f56d46bb5856a2f9b6f68b120b896c795120a0f8bab41
stedolan/ocaml-afl-persistent
aflPersistent.mli
val run : (unit -> unit) -> unit
null
https://raw.githubusercontent.com/stedolan/ocaml-afl-persistent/a37c4f581ba417d7e09a6efb34fdd8a90a7e9ede/aflPersistent.mli
ocaml
val run : (unit -> unit) -> unit
03bd01d7df34e4657ed9813f654770aa0c50898c3a752dacb7d9c695b2dd1c21
vim-erlang/vim-erlang-tags
vim-erlang-tags.erl
#!/usr/bin/env escript -mode(compile). main(_Args) -> Help = "The vim-erlang-tags.erl script has been moved to vim_erlang_tags.erl. Please use that script instead." , io:format("~s", [Help]).
null
https://raw.githubusercontent.com/vim-erlang/vim-erlang-tags/d7eaa8f6986de0f266dac48b7dcfbf41d67ce611/bin/vim-erlang-tags.erl
erlang
#!/usr/bin/env escript -mode(compile). main(_Args) -> Help = "The vim-erlang-tags.erl script has been moved to vim_erlang_tags.erl. Please use that script instead." , io:format("~s", [Help]).
57fa15eb6c8f1e53277d5bcb84d7b56027ea9a90123a53dd8addab419b933db2
circleci/stefon
expires.clj
(ns stefon.middleware.expires "Middleware for overriding expiration headers for cached Stefon resources" (:require [ring.util.response :as res] [ring.middleware.file :as file] [stefon.path :as path] [stefon.util :refer (dump)]) (:import (java.util Date Locale TimeZone) ...
null
https://raw.githubusercontent.com/circleci/stefon/7c36114923ef7ec41316e22354d2e31217a1a416/stefon-core/src/stefon/middleware/expires.clj
clojure
(ns stefon.middleware.expires "Middleware for overriding expiration headers for cached Stefon resources" (:require [ring.util.response :as res] [ring.middleware.file :as file] [stefon.path :as path] [stefon.util :refer (dump)]) (:import (java.util Date Locale TimeZone) ...
0f490980f837e2ed294399a2edd4ec27cbc6716edcbdf4fd275a68f3c378bf9c
cmsc430/www
env.rkt
#lang racket (provide lookup ext) ;; Env Variable -> Answer (define (lookup env x) (match env ['() 'err] [(cons (list y i) env) (match (symbol=? x y) [#t i] [#f (lookup env x)])])) ;; Env Variable Value -> Value (define (ext r x i) (cons (list x i) r))
null
https://raw.githubusercontent.com/cmsc430/www/3a2cc63191b75e477660961794958cead7cae35a/langs/outlaw/env.rkt
racket
Env Variable -> Answer Env Variable Value -> Value
#lang racket (provide lookup ext) (define (lookup env x) (match env ['() 'err] [(cons (list y i) env) (match (symbol=? x y) [#t i] [#f (lookup env x)])])) (define (ext r x i) (cons (list x i) r))
df884ed0e63fe000176ea4b723531d1cb1027bae62a2bcc23337839bb9837503
lulf/hcoap
Main.hs
import Network.CoAP.Server import Network.CoAP.Transport import Network.Socket import qualified Data.ByteString.Char8 as B findPath :: [Option] -> B.ByteString findPath [] = B.empty findPath (option:options) = case option of UriPath value -> value _ -> findPath options requestHandler :: RequestH...
null
https://raw.githubusercontent.com/lulf/hcoap/8127520b767430b5513be6cfe646894ae7a2e616/example-server/Main.hs
haskell
import Network.CoAP.Server import Network.CoAP.Transport import Network.Socket import qualified Data.ByteString.Char8 as B findPath :: [Option] -> B.ByteString findPath [] = B.empty findPath (option:options) = case option of UriPath value -> value _ -> findPath options requestHandler :: RequestH...
491d0e8a6824d3673cd2e5bee6baac91b482d1bcb126c864e844b1d91382a07e
cblp/crdt
TwoPSet.hs
module CRDT.Cv.TwoPSet ( TwoPSet (..) , add , initial , member , remove , singleton , isKnown ) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Semilattice (Semilattice) newtype TwoPSet a = TwoPSet (Map a Bool) deriving (E...
null
https://raw.githubusercontent.com/cblp/crdt/175d7ee7df66de1f013ee167ac31719752e0c20b/crdt/lib/CRDT/Cv/TwoPSet.hs
haskell
| XXX Internal
module CRDT.Cv.TwoPSet ( TwoPSet (..) , add , initial , member , remove , singleton , isKnown ) where import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Data.Semilattice (Semilattice) newtype TwoPSet a = TwoPSet (Map a Bool) deriving (E...
2a2df0e21e0352ffc13eb766b983115dc4ee3814cd2d5f66a04299c38f0b9190
Clojure2D/clojure2d-examples
motion101_acceleration_list_1_11.clj
(ns examples.NOC.ch01.motion101-acceleration-list-1-11 (:require [clojure2d.core :refer :all] [fastmath.random :as r] [fastmath.vector :as v] [clojure2d.color :as c]) (:import fastmath.vector.Vec2)) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (def ^:...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/9de82f5ac0737b7e78e07a17cf03ac577d973817/src/NOC/ch01/motion101_acceleration_list_1_11.clj
clojure
it's slower than original version, probably due to overhead in mapv and immutable way of updating
(ns examples.NOC.ch01.motion101-acceleration-list-1-11 (:require [clojure2d.core :refer :all] [fastmath.random :as r] [fastmath.vector :as v] [clojure2d.color :as c]) (:import fastmath.vector.Vec2)) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (def ^:...
c6621e95acaf8cb7f64880ad2b0f16a7b7fc4d498828e6c4b92d0d57ff08bd35
jeffshrager/biobike
converter.lisp
(in-package :pb) ;;; This has to be loaded into the running Trouble server and ;;; excecuted. It does a major reorganization of the knowledge ;;; base. (defvar *pub-id->frame* (make-hash-table :test #'equal)) (defvar *author-id->frame* (make-hash-table :test #'equal)) (defvar *temp-table* (make-hash-table :test #'...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Trbl/converter.lisp
lisp
This has to be loaded into the running Trouble server and excecuted. It does a major reorganization of the knowledge base. Server connection Get the descriptions?? The #^genes are actually gene models; For each we create a locus object which holds onto the positions, and the genes point to the loci. The loci...
(in-package :pb) (defvar *pub-id->frame* (make-hash-table :test #'equal)) (defvar *author-id->frame* (make-hash-table :test #'equal)) (defvar *temp-table* (make-hash-table :test #'equal)) (defvar *year-frames* nil) (eval-when (:compile-toplevel :load-toplevel :execute) (export '(*year-frames*))) (defun reorg-a...
d45c64d4422db49c54679595b4337e7c36caa3c33df317f0fc2d1eb377b509e7
c4-project/c4f
abstract_expr.mli
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/litmus_c/src/abstract_expr.mli
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
22ff3e244757ec525d3c01a3789aab67e5475c3edaf59cfad8266ef3153d76b5
JeanHuguesdeRaigniac/effects-landscape
Polysemy.hs
module Internal.Polysemy ( module Polysemy, module Polysemy.Error, module Polysemy.Reader, module Polysemy.State, module Polysemy.Trace, module Polysemy.Writer, Trace embeddedLog, -- Error throwError, State get, ) where import Polysemy import Polysemy.Error import Polysemy.R...
null
https://raw.githubusercontent.com/JeanHuguesdeRaigniac/effects-landscape/e44aea11053ac4db85b862fab027d3777d35e232/app/Internal/Polysemy.hs
haskell
Error
module Internal.Polysemy ( module Polysemy, module Polysemy.Error, module Polysemy.Reader, module Polysemy.State, module Polysemy.Trace, module Polysemy.Writer, Trace embeddedLog, throwError, State get, ) where import Polysemy import Polysemy.Error import Polysemy.Reader import ...
693eea68255325b12e9c00e004fc86af16b1384e8774017375d9e26ef86c0a55
lixiangqi/medic
src3-medic.rkt
#lang medic (layer layer1 (in #:module "src3.rkt" ; scope of multiple functions [(g inc) [on-entry @log{function @function-name : x = @x}]] ; each-function primitive [each-function [on-entry @log{function @function-name entered}]]))
null
https://raw.githubusercontent.com/lixiangqi/medic/0920090d3c77d6873b8481841622a5f2d13a732c/demos/demo3/src3-medic.rkt
racket
scope of multiple functions each-function primitive
#lang medic (layer layer1 (in #:module "src3.rkt" [(g inc) [on-entry @log{function @function-name : x = @x}]] [each-function [on-entry @log{function @function-name entered}]]))
360a0f84cb1bc33842ba4f70ed6146ad2751c28562ec640ea105aeb78075dd2f
ghosthamlet/algorithm-data-structure
project.clj
(defproject algorithm-data-structure "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-kibit "0.1.6"] check / fix [lein-cljfmt "0.5.7"] [lein-with-env-vars "0.1.0"]] use neandertha...
null
https://raw.githubusercontent.com/ghosthamlet/algorithm-data-structure/017f41a79d8b1d62ff5a6cceffa1b0f0ad3ead6b/project.clj
clojure
category thoery to reduce functional programming duplicate codes?
(defproject algorithm-data-structure "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :plugins [[lein-kibit "0.1.6"] check / fix [lein-cljfmt "0.5.7"] [lein-with-env-vars "0.1.0"]] use neandertha...
bf7fa71fddec9366e3ba9f7d7bd6ce17b66a7292505ff587c83ca8be3d15be4c
pixlsus/registry.gimp.org_static
10pct_edge_guides.scm
;=============================================================== = = GIMP Add Guides Vertically and Horizontally @ 10 % and 90 % = = = = Copyright ( c ) 2006 = = ;=============================================================== (define (script-fu-10%-edge-guides img drawable) ...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/10pct_edge_guides.scm
scheme
=============================================================== ===============================================================
= = GIMP Add Guides Vertically and Horizontally @ 10 % and 90 % = = = = Copyright ( c ) 2006 = = (define (script-fu-10%-edge-guides img drawable) (let* ((ImageW (car (gimp-drawable-width drawable))) (ImageH (car (gimp-drawable-height drawable))) (Vert_Offset (car...
6671cb1c5167070e354b2952b9c06e4b03ff38cc3ceae43cbe9a0b5a143b8a3c
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
PaymentMethodDetailsAchDebit.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} -- | Contains the types generated from the schema PaymentMethodDetailsAchDebit module StripeAPI.Types.PaymentMethodDetailsAch...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/PaymentMethodDetailsAchDebit.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Contains the types generated from the schema PaymentMethodDetailsAchDebit | Defines the object schema located at @components.schemas.payment_method_details_ach_debit@ in the specification. | bank_name: Name of the bank associated with the bank account. Const...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . module StripeAPI.Types.PaymentMethodDetailsAchDebit where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as Data.Aeson.Encoding.Internal impor...
8e7be9021e1d84dca04aa6201a10f633c27c80c6ea42729f59b51bd33199fb0e
input-output-hk/plutus
Type.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Normalization.Type ( test_typeNormalization ) where import PlutusCore import PlutusCore.Generators.Hedgehog.AST import PlutusCore.MkPlc import PlutusCore.Normalize import Control.Monad.Morph (hoist) import Hedgehog import Hedgehog.Int...
null
https://raw.githubusercontent.com/input-output-hk/plutus/867fd234301d28525404de839d9a3c8220cbea63/plutus-core/plutus-core/test/Normalization/Type.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeApplications # module Normalization.Type ( test_typeNormalization ) where import PlutusCore import PlutusCore.Generators.Hedgehog.AST import PlutusCore.MkPlc import PlutusCore.Normalize import Control.Monad.Morph (hoist) import Hedgehog import Hedgehog.Internal.Property (forAllT) import Tes...
8e84b6775f102db3f3ea3e82f1e0ca181300ec12194d895811ef8d2acd507fa1
koji-kojiro/lem-pygments-colorthemes
murphy.lisp
(in-package :lem-user) (define-color-theme "murphy" () (foreground "#000000") (background "#ffffff") (cursor :foreground "#ffffff" :background "#000000") (syntax-warning-attribute :foreground "#ff0000" :background "#ffffff") (syntax-string-attribute :foreground nil :background "#ffffff") (syntax-comment-at...
null
https://raw.githubusercontent.com/koji-kojiro/lem-pygments-colorthemes/f7de93ca7a68be7fb99ec48cc571e132292a6712/themes/murphy.lisp
lisp
(in-package :lem-user) (define-color-theme "murphy" () (foreground "#000000") (background "#ffffff") (cursor :foreground "#ffffff" :background "#000000") (syntax-warning-attribute :foreground "#ff0000" :background "#ffffff") (syntax-string-attribute :foreground nil :background "#ffffff") (syntax-comment-at...
f842d56abdb1c2c0609689e7bb5af2c2c44dfc63ec71c4c6bdad75902c1ce847
tomjridge/kv-lite
trace.ml
(** Some utility code for traces *) open Sexplib.Std type op = string * [ `Insert of string | `Delete | `Find of string option ][@@deriving sexp] type ops = op list[@@deriving sexp] let write fn ops = let oc = Stdlib.open_out_bin fn in Sexplib.Sexp.output_hum oc (sexp_of_ops ops); Stdlib.close_out_noerr oc ...
null
https://raw.githubusercontent.com/tomjridge/kv-lite/4f5377a37f3ff55504613912f38af661e4df4d4d/src/trace.ml
ocaml
* Some utility code for traces
open Sexplib.Std type op = string * [ `Insert of string | `Delete | `Find of string option ][@@deriving sexp] type ops = op list[@@deriving sexp] let write fn ops = let oc = Stdlib.open_out_bin fn in Sexplib.Sexp.output_hum oc (sexp_of_ops ops); Stdlib.close_out_noerr oc let read fn = let ic = Stdlib.open...
70445631ce54c8b2ac456c5cfaac172078da59769211a9df0c08cc43de5f19fc
masateruk/micro-caml
env.ml
type t = { venv : Type.t M.t; tenv : Type.t M.t; tycons : Type.tycon M.t } let predeftypes = [ ("bool", Type.TyFun([], Type.App(Type.Bool, []))); ("int", Type.TyFun([], Type.App(Type.Int, []))); ("list", Type.TyFun(["a"], Type.App(Type.Variant("list", [("Nil", []); ("Cons", [Type.Var("a"); Ty...
null
https://raw.githubusercontent.com/masateruk/micro-caml/0c0bd066b87cf54ce33709355c422993a85a86a1/env.ml
ocaml
type t = { venv : Type.t M.t; tenv : Type.t M.t; tycons : Type.tycon M.t } let predeftypes = [ ("bool", Type.TyFun([], Type.App(Type.Bool, []))); ("int", Type.TyFun([], Type.App(Type.Int, []))); ("list", Type.TyFun(["a"], Type.App(Type.Variant("list", [("Nil", []); ("Cons", [Type.Var("a"); Ty...
ed7e6e7691b778ba7a67e33e4c128bbee7e3a6e0f2faba032fdc1afdbc398948
onaio/hatti
views.cljs
(ns hatti.views (:require [om.core :as om])) ;; GENERIC DISPATCHER (def view-type-dispatcher (fn [_ owner & args] (om/get-shared owner :view-type))) (def view-type-fn-dispatcher (fn [owner] (om/get-shared owner :view-type))) TABBED DATAVIEW (defmulti tabbed-dataview view-type-dispatcher) (defmulti dataview-i...
null
https://raw.githubusercontent.com/onaio/hatti/7dc23c1c60b9fc46e1ff5b023eb6c794ebd04773/src/hatti/views.cljs
clojure
GENERIC DISPATCHER MAP TABLE MAP TABLE DETAILS PAGE PHOTOS PAGE SAVED CHARTS PAGE - temporary USER GUIDE PAGE
(ns hatti.views (:require [om.core :as om])) (def view-type-dispatcher (fn [_ owner & args] (om/get-shared owner :view-type))) (def view-type-fn-dispatcher (fn [owner] (om/get-shared owner :view-type))) TABBED DATAVIEW (defmulti tabbed-dataview view-type-dispatcher) (defmulti dataview-infobar view-type-dispa...
e0f9dc794ad4d28dd73103f9a1060da4e1d30f36c69d37c11d1e29b8dc36b48a
rtoy/ansi-cl-tests
rassoc-if.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Apr 20 07:34:59 2003 ;;;; Contains: Tests of RASSOC-IF (in-package :cl-test) (compile-and-load "cons-aux.lsp") (deftest rassoc-if.1 (let* ((x (rev-assoc-list '((1 . a) (3 . b) (6 . c) (7 . d)))) (xcopy (make-scaffold-copy x)) (result...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/rassoc-if.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of RASSOC-IF Order of argument evaluation Keyword tests Error tests
Author : Created : Sun Apr 20 07:34:59 2003 (in-package :cl-test) (compile-and-load "cons-aux.lsp") (deftest rassoc-if.1 (let* ((x (rev-assoc-list '((1 . a) (3 . b) (6 . c) (7 . d)))) (xcopy (make-scaffold-copy x)) (result (rassoc-if #'evenp x))) (and (check-scaffold...
936ade32152b7813c58a7a9f2c3842d603ee82d0eaabb92c8ab13dd3a6b1ef98
modular-macros/ocaml-macros
camlinternalAST.mli
type constant = Pconst_integer of string * char option 3 3l 3L 3n Suffixes [ g - z][G - Z ] are accepted by the parser . Suffixes except ' l ' , ' L ' and ' n ' are rejected by the typechecker Suffixes [g-z][G-Z] are accepted by the parser. Suffixes except 'l', 'L' and 'n' are rejec...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/stdlib/camlinternalAST.mli
ocaml
'c' 3.4 2e5 1.4e-4 Suffixes [g-z][G-Z] are accepted by the parser. Suffixes are rejected by the typechecker. label:T -> ... ?label:T -> ... 'a = attribute 'b = core_type 'c = module_expr 'd = class_structure
type constant = Pconst_integer of string * char option 3 3l 3L 3n Suffixes [ g - z][G - Z ] are accepted by the parser . Suffixes except ' l ' , ' L ' and ' n ' are rejected by the typechecker Suffixes [g-z][G-Z] are accepted by the parser. Suffixes except 'l', 'L' and 'n' are rejec...