_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 |
|---|---|---|---|---|---|---|---|---|
f556c8a9b32bd9f5f72d731139651808b30d7c6bc05ed7e8be99ae11c713aae1 | jeapostrophe/exp | pkg-in.rkt | #lang s-exp "../core/pkg-in.rkt"
(require safe) | null | https://raw.githubusercontent.com/jeapostrophe/exp/43615110fd0439d2ef940c42629fcdc054c370f9/pkgs/use/pkg-in.rkt | racket | #lang s-exp "../core/pkg-in.rkt"
(require safe) | |
659184e96d9e79f68711f742ee62adce596d0a7f0723980f6517b6e59e4ee037 | haskell-compat/base-compat | Compat.hs | # LANGUAGE CPP , NoImplicitPrelude #
module Data.String.Compat (
module Base
, String
, lines
, words
, unlines
, unwords
) where
import Data.String as Base
#if !(MIN_VERSION_base(4,4,0))
import Prelude (String, lines, words, unlines, unwords)
#endif
| null | https://raw.githubusercontent.com/haskell-compat/base-compat/847aa35c4142f529525ffc645cd035ddb23ce8ee/base-compat/src/Data/String/Compat.hs | haskell | # LANGUAGE CPP , NoImplicitPrelude #
module Data.String.Compat (
module Base
, String
, lines
, words
, unlines
, unwords
) where
import Data.String as Base
#if !(MIN_VERSION_base(4,4,0))
import Prelude (String, lines, words, unlines, unwords)
#endif
| |
f68a80544ebd41fd7269957f5e07ee3b08c4efa41b6fbc8e97f869d78bb46abe | kloimhardt/clj-tiles | tutorials_fizzbuzz.cljs | (ns cljtiles.tutorials-fizzbuzz
(:require
[cljtiles.tutorials-advent1 :as adv]
[cljtiles.codeexplode :as explode]))
(defn explode-all [tuts-mapvec]
(map #(-> %
( assoc : solpos - yx ( adv / calc - y - for - solution (: solution % ) ) )
(merge (explode/explode (:code %) nil)))
tuts-mapvec))... | null | https://raw.githubusercontent.com/kloimhardt/clj-tiles/bbcd192cd0a6ebc5bb2e621566b1b4554679a52d/src/cljtiles/tutorials_fizzbuzz.cljs | clojure | (ns cljtiles.tutorials-fizzbuzz
(:require
[cljtiles.tutorials-advent1 :as adv]
[cljtiles.codeexplode :as explode]))
(defn explode-all [tuts-mapvec]
(map #(-> %
( assoc : solpos - yx ( adv / calc - y - for - solution (: solution % ) ) )
(merge (explode/explode (:code %) nil)))
tuts-mapvec))... | |
92452c3eceb4351b18c65f4db5b10ea07f776b95ff3e2bed597990f52393fa4e | vseloved/cl-agraph | package.lisp | CL - AGRAPH package definition
( c ) Vsevolod Dyomkin . see LICENSE file for permissions
(in-package :cl-user)
(defpackage #:agraph
(:use :common-lisp #:rtl
#+dev #:should-test)
(:local-nicknames (#:re #:ppcre))
(:export #:ag-error
#:*ag*
#:ag-config
#:make-ag-conf... | null | https://raw.githubusercontent.com/vseloved/cl-agraph/e605b34fa57a9ede6fb6cc13ef82fc3438898567/src/package.lisp | lisp | CL - AGRAPH package definition
( c ) Vsevolod Dyomkin . see LICENSE file for permissions
(in-package :cl-user)
(defpackage #:agraph
(:use :common-lisp #:rtl
#+dev #:should-test)
(:local-nicknames (#:re #:ppcre))
(:export #:ag-error
#:*ag*
#:ag-config
#:make-ag-conf... | |
11aac6f22fd6e6a5cbb83ecbf3f9e1186e484bce103f9d613d4bdc14d8b558b1 | tmattio/js-bindings | es2016_array_include.mli | [@@@ocaml.warning "-7-11-32-33-39"]
[@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]]
open Es2015
module Array : sig
include module type of struct
include Array
end
val includes : 'T t -> search_element:'T -> ?from_index:int -> unit -> bool
[@@js.call "includes"]
val to_ml : 'T t -> 'T list [@@js.... | null | https://raw.githubusercontent.com/tmattio/js-bindings/f1d36bba378e4ecd5310542a0244dce9258b6496/lib/es2016/es2016_array_include.mli | ocaml | [@@@ocaml.warning "-7-11-32-33-39"]
[@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]]
open Es2015
module Array : sig
include module type of struct
include Array
end
val includes : 'T t -> search_element:'T -> ?from_index:int -> unit -> bool
[@@js.call "includes"]
val to_ml : 'T t -> 'T list [@@js.... | |
d40e0103858b5dc5e324a1beef2d6d86221a6b4cad77a1489ca334914ff48e0e | AndrewRademacher/coinbase-exchange | Main.hs | {-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad
import qualified Data.ByteString.Char8 as CBS
import Network.HTTP.Client.TLS
import Network.HTTP.Conduit
import System.Environment
import Test.Tasty
import Coinbase.Exchan... | null | https://raw.githubusercontent.com/AndrewRademacher/coinbase-exchange/77945f2dddb1699927c354dfd221f366289ea19c/test/Main.hs | haskell | # LANGUAGE OverloadedStrings # |
module Main where
import Control.Monad
import qualified Data.ByteString.Char8 as CBS
import Network.HTTP.Client.TLS
import Network.HTTP.Conduit
import System.Environment
import Test.Tasty
import Coinbase.Exchange.Types
import Coinbase.... |
2c7ac69984567fc6c813f055918cddb7436784dce033d2818cc14e32c04d6fda | mollerhoj/MiniRuby | MiniRubyParserInternal.hs | module MiniRubyParserInternal where
import MiniRubyAST
import SimpleParse
import Control.Applicative ((<|>))
import Data.Char (isLetter,isDigit)
program :: Parser [ClassDecl]
program = do x <- classDecls
more space
return x
Utilities
digits :: Parser String
digits = munch1 isDigit
isUnde... | null | https://raw.githubusercontent.com/mollerhoj/MiniRuby/ca85a3b1f3bf797a1c1f9c30a7b7e9328a43d226/MiniRubyParserInternal.hs | haskell | -- Int Const, String Const
Classes
Parameters and args
These aliases are used to make the code more readable:
Exprs
Ariteritmics
Read & Write variables
TermLiteral Name [Expr] | module MiniRubyParserInternal where
import MiniRubyAST
import SimpleParse
import Control.Applicative ((<|>))
import Data.Char (isLetter,isDigit)
program :: Parser [ClassDecl]
program = do x <- classDecls
more space
return x
Utilities
digits :: Parser String
digits = munch1 isDigit
isUnde... |
ae50ade9a56928208351023899ab8c3cdd03d3c28403c69a3699a4c2603f1024 | rtoy/ansi-cl-tests | loop16.lsp | ;-*- Mode: Lisp -*-
Author :
Created : Thu Nov 21 09:46:27 2002
;;;; Contains: Tests that uninterned symbols can be loop keywords
(in-package :cl-test)
(deftest loop.16.30
(loop #:for i #:from 1 #:to 10 #:collect i)
(1 2 3 4 5 6 7 8 9 10))
(deftest loop.16.31
(loop #:for i #:upfrom 1 #:below 10... | null | https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/loop16.lsp | lisp | -*- Mode: Lisp -*-
Contains: Tests that uninterned symbols can be loop keywords | Author :
Created : Thu Nov 21 09:46:27 2002
(in-package :cl-test)
(deftest loop.16.30
(loop #:for i #:from 1 #:to 10 #:collect i)
(1 2 3 4 5 6 7 8 9 10))
(deftest loop.16.31
(loop #:for i #:upfrom 1 #:below 10 #:by 2 #:collect i)
(1 3 5 7 9))
(deftest loop.16.32
(loop #:with x = 1 #:and y = 2 ... |
36f802a7afd072353cc854fb40c313d9ea65946d2805030523c7fe67eca1a238 | deadpendency/deadpendency | SearchRepoFilesBackendSpec.hs | module Effect.GitHub.SearchRepoFiles.SearchRepoFilesBackendSpec (spec) where
import Common.Effect.GitHub.SearchRepoFiles.Backend.Model.GetAllRepoFile
import Common.Effect.GitHub.SearchRepoFiles.Backend.SearchRepoFilesBackend (githubGetAllRepoFiles)
import Common.Model.Config.AppEnv
import Common.Model.Git.GitPath
impo... | null | https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/common-test/test/Effect/GitHub/SearchRepoFiles/SearchRepoFilesBackendSpec.hs | haskell | module Effect.GitHub.SearchRepoFiles.SearchRepoFilesBackendSpec (spec) where
import Common.Effect.GitHub.SearchRepoFiles.Backend.Model.GetAllRepoFile
import Common.Effect.GitHub.SearchRepoFiles.Backend.SearchRepoFilesBackend (githubGetAllRepoFiles)
import Common.Model.Config.AppEnv
import Common.Model.Git.GitPath
impo... | |
77e74d919b74744d9abc9c351f711f4c9c2735dddfb4ffce45607e30458feef9 | xh4/web-toolkit | package.lisp | (defpackage :alexandria.1.0.0
(:nicknames :alexandria)
(:use :cl)
#+sb-package-locks
(:lock t)
(:export
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; BLESSED
;;
;; Binding constructs
#:if-let
#:when-let
#:when-let*
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | null | https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/vendor/alexandria-20191227-git/package.lisp | lisp |
BLESSED
Binding constructs
REVIEW IN PROGRESS
Control flow
-- no clear consensus yet --
-- problem free? --
REVIEW PENDING
Definitions
Hash tables
Functions
Lists
Numbers
Arrays
Sequences
Symbols
Strings
Types
Conditions
Features
io
new additions collected at the end (subject to removal or f... | (defpackage :alexandria.1.0.0
(:nicknames :alexandria)
(:use :cl)
#+sb-package-locks
(:lock t)
(:export
#:if-let
#:when-let
#:when-let*
#:cswitch
#:eswitch
#:switch
#:multiple-value-prog2
#:nth-value-or
#:whichever
#:xor
#:define-constant
#:alist-hash-table
#:copy-hash-t... |
571f8bfbaeafc611d5a71eeab81b848587c3a7420891b07a8b8bef223f272451 | spurious/sagittarius-scheme-mirror | window.scm | -*- mode : scheme ; coding : utf-8 ; -*-
;;;
;;; win32/gui/window.scm - Win32 GUI window
;;;
Copyright ( c ) 2015 < >
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; 1. Red... | null | https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/ext/ffi/win32/gui/window.scm | scheme | coding : utf-8 ; -*-
win32/gui/window.scm - Win32 GUI window
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | Copyright ( c ) 2015 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
(library (win32 gui window)
(export make-win32-... |
7b6707f312940c2825a23569aa476f36d725eefb428667ebc9bb30ed0b0013c5 | unisonweb/unison | Operations.hs | # LANGUAGE RecordWildCards #
-- | This module contains sqlite-specific operations on high-level "parser-typechecker" types all in the Transaction
-- monad.
--
The Codebase record - of - functions wraps this functionality , and runs each transaction to IO , so that the operations '
are unified with non - sqlite ope... | null | https://raw.githubusercontent.com/unisonweb/unison/649215726982e20b45952f514ad20def213c86ea/parser-typechecker/src/Unison/Codebase/SqliteCodebase/Operations.hs | haskell | | This module contains sqlite-specific operations on high-level "parser-typechecker" types all in the Transaction
monad.
----------------------------------------------------------------------------------------------------------------------
Buffer entry
* can write component provided all of its dependency componen... | # LANGUAGE RecordWildCards #
The Codebase record - of - functions wraps this functionality , and runs each transaction to IO , so that the operations '
are unified with non - sqlite operations in the Codebase interface , like ' appendReflog ' .
module Unison.Codebase.SqliteCodebase.Operations where
import Data.Bi... |
ea693d8ee24f6891444b8fbcec510e0a0510da1b5c350e6106d62fdb097343ca | kazu-yamamoto/cab | Options.hs | module Options (optionDB, getOptDB) where
import Distribution.Cab
import System.Console.GetOpt
import Types
----------------------------------------------------------------
getOptDB :: GetOptDB
getOptDB = [
Option ['n'] ["dry-run"]
(NoArg OptNoharm)
"Run without destructive operations"
, Option ['... | null | https://raw.githubusercontent.com/kazu-yamamoto/cab/dd9e59877b08b476268000967340e86e72fbda45/src/Options.hs | haskell | -------------------------------------------------------------- | module Options (optionDB, getOptDB) where
import Distribution.Cab
import System.Console.GetOpt
import Types
getOptDB :: GetOptDB
getOptDB = [
Option ['n'] ["dry-run"]
(NoArg OptNoharm)
"Run without destructive operations"
, Option ['r'] ["recursive"]
(NoArg OptRecursive)
"Follow depend... |
b6cb6dcf0ba2594e0dde05d6233eadbee469060a3025bc29e46c5c1cc36f7c14 | SKS-Keyserver/sks-keyserver | ptree_replay.ml | (***********************************************************************)
(* ptree_replay.ml - Test for verifying consistency of prefix tree *)
(* data structure *)
(* *)
Copyright ( C ) 2002 ,... | null | https://raw.githubusercontent.com/SKS-Keyserver/sks-keyserver/a4e5267d817cddbdfee13d07a7fb38a9b94b3eee/ptree_replay.ml | ocaml | *********************************************************************
ptree_replay.ml - Test for verifying consistency of prefix tree
data structure
... | Copyright ( C ) 2002 , 2003 , 2004 , 2005 , 2006 , 2007 , 2008 , 2009 , 2010 ,
2011 , 2012 , 2013 and Contributors
This file is part of SKS . SKS is free software ; you can
Public License as published by the Free Software Foundation ; either
version 2 of the License , or... |
d054d2c4f10445ffdba6a9cae8f9439370d6444e106cdde46711661268a4e3f5 | mejgun/haskell-tdlib | AnswerPreCheckoutQuery.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Query.AnswerPreCheckoutQuery where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
-- |
Sets the result of a pre - checkout query ; for bots only @pre_checkout_query_id Identifier of the pre - checkout query @erro... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/9bd82101be6e6218daf816228f6141fe89d97e8b/src/TD/Query/AnswerPreCheckoutQuery.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
|
| |
module TD.Query.AnswerPreCheckoutQuery where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
Sets the result of a pre - checkout query ; for bots only @pre_checkout_query_id Identifier of the pre - checkout query @error_message An error message , empty on success... |
b229b4a4cde3866a9645947cda102edf711f7c99ce2f9ce2fb6bc148e2fb5e20 | monadbobo/ocaml-core | std.ml | include Extended_common
module Array = struct
include Core.Std.Array
include Extended_array
end
module Ascii_table = Ascii_table
module Alternating_primary_backup_assignment = Alternating_primary_backup_assignment
module Atomic_edit = Atomic_edit
module Bench = Bench
module Bin_io_utils = Bin_io_utils
module Bitar... | null | https://raw.githubusercontent.com/monadbobo/ocaml-core/9c1c06e7a1af7e15b6019a325d7dbdbd4cdb4020/base/core/extended/lib/std.ml | ocaml | include Extended_common
module Array = struct
include Core.Std.Array
include Extended_array
end
module Ascii_table = Ascii_table
module Alternating_primary_backup_assignment = Alternating_primary_backup_assignment
module Atomic_edit = Atomic_edit
module Bench = Bench
module Bin_io_utils = Bin_io_utils
module Bitar... | |
0435d8218d0819bb9de11faac6c2fe11d942c2df837ef1f1b791ca321fd0b630 | gsakkas/rite | 20060302-19:07:08-0c9a74768b1ce28cda245bf0300484f0.seminal.ml | let rec reverseHelp place str =
if place > 0 then
reverseHelp place-1 (str ^ Char.escaped str.[place])
else
str ^ Char.escaped str.[place]
let reverse str =
let currChar = str.[0] in
str
let testVal = "fast"
let strLen = String.length testVal
let place = strLen - 1
let _ = print_string... | null | https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060302-19%3A07%3A08-0c9a74768b1ce28cda245bf0300484f0.seminal.ml | ocaml | let rec reverseHelp place str =
if place > 0 then
reverseHelp place-1 (str ^ Char.escaped str.[place])
else
str ^ Char.escaped str.[place]
let reverse str =
let currChar = str.[0] in
str
let testVal = "fast"
let strLen = String.length testVal
let place = strLen - 1
let _ = print_string... | |
6a77672c0acef5d3728ced3bf4be19090d1650ada08261aa4360aba562658608 | aws-beam/aws-erlang | aws_rekognition.erl | %% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
See -beam/aws-codegen for more details .
@doc This is the API Reference for Amazon Rekognition Image , Amazon
Rekognition Custom Labels , Amazon Rekognition Stored Video , Amazon
%% Rekognition Streaming Video.
%%
%% It provides descriptions of actions, data types, c... | null | https://raw.githubusercontent.com/aws-beam/aws-erlang/699287cee7dfc9dc8c08ced5f090dcc192c9cba8/src/aws_rekognition.erl | erlang | WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
Rekognition Streaming Video.
It provides descriptions of actions, data types, common parameters, and
common errors.
<ul> <li> CompareFaces
</li> <li> CreateCollection
</li> <li> DeleteCollection
</li> <li> DeleteFaces
</li> <li> DescribeCollection
</li> <li> ... | See -beam/aws-codegen for more details .
@doc This is the API Reference for Amazon Rekognition Image , Amazon
Rekognition Custom Labels , Amazon Rekognition Stored Video , Amazon
Amazon Rekognition Image
< /li > < li > RecognizeCelebrities
< /li > < li >
< /li > < li > DescribeDataset
< /li > < li > U... |
fc7049c35f07a85953b7d2feec7403df20fe2b3d751a0ea9146142e59188dfe3 | show-matz/CL-STL | cl-stl-iterator.lisp |
(in-package :cl-stl)
(declaim (inline prev
next
back_inserter
front_inserter
inserter
#-cl-stl-noextra stream_writer
#-cl-stl-noextra stream_reader))
;;------------------------------------------------------------------------------
;;
;; utility implementation
;;
;;-------------------------------... | null | https://raw.githubusercontent.com/show-matz/CL-STL/c6ffeac2815fa933121bc4c8b331d9c3516dff88/src/cl-stl-iterator.lisp | lisp | ------------------------------------------------------------------------------
utility implementation
------------------------------------------------------------------------------
input_iterator or forward_iterator
bidirectional_iterator
randomaccess_iterator
input_iterator or forward_iterator or bidirectional_... |
(in-package :cl-stl)
(declaim (inline prev
next
back_inserter
front_inserter
inserter
#-cl-stl-noextra stream_writer
#-cl-stl-noextra stream_reader))
(locally (declare (optimize speed))
(defmethod advance ((itr input_iterator) (n integer))
(declare (type fixnum n))
(__error-unless-non-negati... |
765bc1cf865a74f8bc3783ceabdf9d4d5939b2d021988fbf66a454db578d95fa | Chris00/mesh | attributes.ml | open Printf
open Bigarray
let square_pslg r1 r2 =
(* Square ]-r1, r1[² inside ]-r2, r2[² *)
let point =
Array2.of_array float64 fortran_layout
[| [| -. r1; r1; r1; -. r1; -. r2; r2; r2; -. r2 |];
[| -. r1; -. r1; r1; r1; -. r2; -. r2; r2; r2 |] |]
and poin... | null | https://raw.githubusercontent.com/Chris00/mesh/a998a3d898b0013517a5f7f6078791b61e6a0fe2/tests/attributes.ml | ocaml | Square ]-r1, r1[² inside ]-r2, r2[²
if m#point_attribute.{1,i} <> 0. then (
else Graphics.green in
Graphics.set_color c;
) in | open Printf
open Bigarray
let square_pslg r1 r2 =
let point =
Array2.of_array float64 fortran_layout
[| [| -. r1; r1; r1; -. r1; -. r2; r2; r2; -. r2 |];
[| -. r1; -. r1; r1; r1; -. r2; -. r2; r2; r2 |] |]
and point_attribute =
Array2.of_array float64 fo... |
52a17183157f6b49b795787a1b571c6d8b82a404defc9695cb95072d9ed3580d | armedbear/abcl | compiler-stack-inconsistency.lisp | (in-package :cl-user)
(prove:plan 1)
(defun two-arg-fn (one two)
(format t "Two args: ~S and ~S~%" one two))
(prove:ok
(let ((fn (compile nil '(lambda ()
(two-arg-fn
(block test-block
(unwind-protect
... | null | https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/t/compiler-stack-inconsistency.lisp | lisp | (in-package :cl-user)
(prove:plan 1)
(defun two-arg-fn (one two)
(format t "Two args: ~S and ~S~%" one two))
(prove:ok
(let ((fn (compile nil '(lambda ()
(two-arg-fn
(block test-block
(unwind-protect
... | |
0a9c496b23ed2015570082dd1f6f8c77847b8292e647c3daa32f84b9620dc9e5 | billstclair/trubanc-lisp | md2.lisp | md2.lisp -- the MD2 message digest algorithm from RFC 1319
(in-package :crypto)
(defconst +md2-permutation+
#8@(41 46 67 201 162 216 124 1 61 54 84 161 236 240 6
19 98 167 5 243 192 199 115 140 152 147 43 217 188
76 130 202 30 155 87 60 253 212 224 22 103 66 111 24
138 23 229 18 190 78 196 214 218 158 222 73 ... | null | https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/ironclad_0.26/md2.lisp | lisp | save original input and prepare encryption block
encrypt block
update checksum
handle the remaining buffered input
pad with appropriate padding
extend the message with the checksum | md2.lisp -- the MD2 message digest algorithm from RFC 1319
(in-package :crypto)
(defconst +md2-permutation+
#8@(41 46 67 201 162 216 124 1 61 54 84 161 236 240 6
19 98 167 5 243 192 199 115 140 152 147 43 217 188
76 130 202 30 155 87 60 253 212 224 22 103 66 111 24
138 23 229 18 190 78 196 214 218 158 222 73 ... |
a5f7a98c7d57bbbe59910eac010bb0d72bf8116b1a574d4af70f87de55ea96fd | rpav/dynamic-mixins | dynamic-mixins.lisp | (in-package :dynamic-mixins)
(defvar *dynamic-mix-classes* (make-hash-table :test 'equal))
(defclass mixin-class (standard-class)
((classes :initform nil :initarg :classes)))
(defmethod validate-superclass ((class mixin-class) (super standard-class)) t)
(defmethod print-object ((o mixin-class) stream)
(with-slo... | null | https://raw.githubusercontent.com/rpav/dynamic-mixins/7cc09bee7d68527f37406671fabe910e8235b746/src/dynamic-mixins.lisp | lisp | further elements must be class names or classes." | (in-package :dynamic-mixins)
(defvar *dynamic-mix-classes* (make-hash-table :test 'equal))
(defclass mixin-class (standard-class)
((classes :initform nil :initarg :classes)))
(defmethod validate-superclass ((class mixin-class) (super standard-class)) t)
(defmethod print-object ((o mixin-class) stream)
(with-slo... |
b8da417706169fa4c7cfd1123a90fdc42c82347fdeb68816324deefcd23bd123 | okeuday/erlbench | os_time.erl | -*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*-
ex : set utf-8 sts=4 ts=4 sw=4 et nomod :
%%%
%%%------------------------------------------------------------------------
%%%
MIT License
%%%
Copyright ( c ) 2016 - 2017 < mjtruog at protonmail dot com >
%%%
%%% P... | null | https://raw.githubusercontent.com/okeuday/erlbench/9fc02a2e748b287b85f6e9641db6b2ca68791fa4/src/os_time.erl | erlang |
------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
the rights to use, copy, modify, merge, publish, distribute, sublicense,
Software is furnish... | -*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*-
ex : set utf-8 sts=4 ts=4 sw=4 et nomod :
MIT License
Copyright ( c ) 2016 - 2017 < mjtruog at protonmail dot com >
to deal in the Software without restriction , including without limitation
and/or sell copies... |
86d40919f4b7b56a0eb2776ce8c79cfcd52799f6f1a245aa7cad49f0bfb884f2 | privet-kitty/cl-competitive | geometric-sequence.lisp | (defpackage :cp/geometric-sequence
(:use :cl)
(:export #:make-geometric-sequence))
(in-package :cp/geometric-sequence)
(declaim (inline make-geometric-sequence))
(defun make-geometric-sequence (rate length modulus &key (scale 1) (element-type '(unsigned-byte 31)))
"Returns a vector of the given length: VECTOR[x]... | null | https://raw.githubusercontent.com/privet-kitty/cl-competitive/2c4d4e82af2a1672eef334a0a229c67d4fb37188/module/geometric-sequence.lisp | lisp | (defpackage :cp/geometric-sequence
(:use :cl)
(:export #:make-geometric-sequence))
(in-package :cp/geometric-sequence)
(declaim (inline make-geometric-sequence))
(defun make-geometric-sequence (rate length modulus &key (scale 1) (element-type '(unsigned-byte 31)))
"Returns a vector of the given length: VECTOR[x]... | |
11dcf7ef916188f1c281e5bf0950808b61c7a7673e4b1798f1a987aa1feedda5 | jadeallenx/udon_ng | udon_console.erl | %% @doc Interface for riak_searchng-admin commands.
-module(udon_console).
-export([staged_join/1,
down/1,
ringready/1]).
-ignore_xref([join/1,
leave/1,
remove/1,
ringready/1]).
staged_join([NodeStr]) ->
Node = list_to_atom(NodeStr),
join(NodeStr, fun... | null | https://raw.githubusercontent.com/jadeallenx/udon_ng/14519df8cc79d9c9793c3f80b8fba7875fe99e81/apps/udon/src/udon_console.erl | erlang | @doc Interface for riak_searchng-admin commands. | -module(udon_console).
-export([staged_join/1,
down/1,
ringready/1]).
-ignore_xref([join/1,
leave/1,
remove/1,
ringready/1]).
staged_join([NodeStr]) ->
Node = list_to_atom(NodeStr),
join(NodeStr, fun riak_core:staged_join/1,
"Success: staged ... |
80369b8116b2cfd0614a06eefe8d0f75cf0fc746176ed10342a6d1e494734186 | threatgrid/ctia | example_test.clj | (ns redismq-java-client.example-test
(:require [cheshire.core :as json]
[clj-momo.properties :as mp]
[clojure.spec.alpha :as cs]
[clojure.test.check.clojure-test :refer [defspec]]
[clojure.test.check.generators :as gen]
[clojure.test.check.properties :refer ... | null | https://raw.githubusercontent.com/threatgrid/ctia/32857663cdd7ac385161103dbafa8dc4f98febf0/examples/redismq-java-client/test/redismq_java_client/example_test.clj | clojure | Empty the queue
Load the queue
Count COA events | (ns redismq-java-client.example-test
(:require [cheshire.core :as json]
[clj-momo.properties :as mp]
[clojure.spec.alpha :as cs]
[clojure.test.check.clojure-test :refer [defspec]]
[clojure.test.check.generators :as gen]
[clojure.test.check.properties :refer ... |
98cb68e8955d655ad1562f065575ec77d7f42c39c5d293464359c0d40f63c1ee | c4-project/c4f | flag.ml | This file is part of c4f . Copyright ( c ) 2018 - -2020 and
contributors - c4 t itself is licensed under the MIT License . See the
LICENSE file in the project root for more information . - ACT is based in
part on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
proje... | null | https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/fuzz/test/flag.ml | ocaml | This file is part of c4f . Copyright ( c ) 2018 - -2020 and
contributors - c4 t itself is licensed under the MIT License . See the
LICENSE file in the project root for more information . - ACT is based in
part on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
proje... | |
0d8f040edc025a8e12cda4d99b59a8435d152ac245f4307214c5d83e1c7d0483 | Incubaid/arakoon | registry.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/plugins/registry.ml | ocaml | open and user plugin_helper so that it's available for plugins!
input and output channel |
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... |
fab78152dfd2f987d7afdd865a70be2d2fe85c1f37890da8d72bc776d6a29635 | tokenrove/imago | jupyter.lisp | (in-package :imago-jupyter)
(defgeneric show-image (image)
(:documentation "Show an image in Jupyter notebook"))
: since binary images can not be saved , convert them to
grayscale first .
Maybe write saver functions to binary images ? But since is
;; lossy format, such images will cease to be binary after
;... | null | https://raw.githubusercontent.com/tokenrove/imago/7bf4bc00114d7a757b019360956908b43cf8ed45/jupyter/jupyter.lisp | lisp | lossy format, such images will cease to be binary after
saving. This is tricky... | (in-package :imago-jupyter)
(defgeneric show-image (image)
(:documentation "Show an image in Jupyter notebook"))
: since binary images can not be saved , convert them to
grayscale first .
Maybe write saver functions to binary images ? But since is
(defmethod show-image ((image image))
(jpeg
(usb8-arra... |
744f2438496d00c9ed0a73a951c4067b4b4203af043daa93a17fb2478a438ebc | RolfRolles/PandemicML | IDAX86Graph.ml | let show_x86_cfg cfg title =
let open X86CFG.X86CFGBuilder.C in
let open IDAGraph in
let open X86 in
let rup i = (i * 3) / 2 in
let n = rup (G.nb_vertex cfg) in
let i2vmap = Hashtbl.create n in
let v2imap = Hashtbl.create n in
let _ = G.fold_vertex (fun v i -> Hashtbl.add i2vmap i v; Hashtbl.add v2ima... | null | https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/IDAX86/IDAX86Graph.ml | ocaml | let show_x86_cfg cfg title =
let open X86CFG.X86CFGBuilder.C in
let open IDAGraph in
let open X86 in
let rup i = (i * 3) / 2 in
let n = rup (G.nb_vertex cfg) in
let i2vmap = Hashtbl.create n in
let v2imap = Hashtbl.create n in
let _ = G.fold_vertex (fun v i -> Hashtbl.add i2vmap i v; Hashtbl.add v2ima... | |
8c597bf20b4946d8c57841ae1f59d3f4616925c1b8cdf8e5856c6770c43d21b4 | Rhywun/get-programming-with-haskell | Main.hs | module Main where
import Control.Monad
import Data.Aeson
import Data.ByteString.Lazy as B
import Data.ByteString.Lazy.Char8 as BC
import Data.Text as T
import GHC.Generics
data NOAAResult = NOAAResult
{ uid :: T.Tex... | null | https://raw.githubusercontent.com/Rhywun/get-programming-with-haskell/b9cf06f725b2ef038d69ed49f7d2900f55e98ca3/Unit07/Lesson40/json-lesson/app/Main.hs | haskell | was Int - bug in the book
"id"
Code in the book was broken
Summary
Q1
Q2
BC.putStrLn $ encode intListExample
{"tag":"Cons","contents":[1,{"tag":"Cons","contents":[2,{"tag":"EmptyList"}]}]}
| module Main where
import Control.Monad
import Data.Aeson
import Data.ByteString.Lazy as B
import Data.ByteString.Lazy.Char8 as BC
import Data.Text as T
import GHC.Generics
data NOAAResult = NOAAResult
{ uid :: T.Tex... |
39daae195dfe6208ef16ad96e618617de152d2066c1f97a45809ed98ee1ee30f | laser/cis-194-spring-2017 | Week06Spec.hs | module Homework.Week06Spec (
main,
spec
) where
import Test.Hspec
import Homework.Week06.Assignment
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "fib" $ do
it "returns fibonacci numbers" $ do
pending
fib 0 `shouldBe` 0
fib 1 `shouldBe` 1
fib 2 `shouldBe` 1
... | null | https://raw.githubusercontent.com/laser/cis-194-spring-2017/c6023cd611532c9bbd77eb97c14db360bfd5111c/test/Homework/Week06Spec.hs | haskell | module Homework.Week06Spec (
main,
spec
) where
import Test.Hspec
import Homework.Week06.Assignment
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "fib" $ do
it "returns fibonacci numbers" $ do
pending
fib 0 `shouldBe` 0
fib 1 `shouldBe` 1
fib 2 `shouldBe` 1
... | |
c5acd89431f58416494b71e3eff1bf23e317091e8fabdfccf957da2f45b31130 | DSTOQ/haskell-stellar-sdk | Lumen.hs | module Stellar.Core.Types.Lumen
( XLM (..)
, Stroop (..)
, xlmToStroop
, stroopToXlm
, xlm
) where
import Control.Newtype (Newtype, pack, unpack)
import Data.Aeson (FromJSON, ToJSON)
import Data.Binary (Binary)
import Protolude
newtype Stroop
= Stroop Int64
deriving (Eq, Ord, Show, Enum, Num... | null | https://raw.githubusercontent.com/DSTOQ/haskell-stellar-sdk/82a76c2f951a2aaabdc38092fdc89044b278c53d/core/src/Stellar/Core/Types/Lumen.hs | haskell | module Stellar.Core.Types.Lumen
( XLM (..)
, Stroop (..)
, xlmToStroop
, stroopToXlm
, xlm
) where
import Control.Newtype (Newtype, pack, unpack)
import Data.Aeson (FromJSON, ToJSON)
import Data.Binary (Binary)
import Protolude
newtype Stroop
= Stroop Int64
deriving (Eq, Ord, Show, Enum, Num... | |
d1b573e9d4b08eb4b18ef5672227ff60da70c2d463857075d242a4249a0df865 | ygmpkk/house | Wire.hs | module Net.Wire where
import Net.Concurrent
import Net.Interface as Net
type Wire m a = Interface m a a
-- | An unbounded buffer
--unbounded :: ChannelIO c m => m (Wire m a)
unbounded () =
do channel <- newChan
return Interface{rx=readChan channel,tx=writeChan channel}
newWire () = bounded (unbounded ())
... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Net/Wire.hs | haskell | | An unbounded buffer
unbounded :: ChannelIO c m => m (Wire m a)
| A bounded buffer that discards input when full
just something unique | module Net.Wire where
import Net.Concurrent
import Net.Interface as Net
type Wire m a = Interface m a a
unbounded () =
do channel <- newChan
return Interface{rx=readChan channel,tx=writeChan channel}
newWire () = bounded (unbounded ())
newWire' n = bounded' n (unbounded ())
bounded new = bounded' (10::In... |
c6fee82d46963fc2de3d13416ce6072e72ccbfab2c3b7c518845c332b408606b | karlhof26/gimp-scheme | FU_edges_fade-outline.scm | ; FU_edges_fade-outline.scm
version 2.8 [ gimphelp.org ]
last modified / tested by
02/14/2014 on GIMP-2.8.10
; 22/07/2020 on Gimp-2.10.20
;
; 10/17/2010 - fixed undefined variable (old-selection)
; when using a growing selection. Discovered and
corrected by < >
02/14/2014 - convert to RGB if needed
;===... | null | https://raw.githubusercontent.com/karlhof26/gimp-scheme/bcaaae384fa57fd919607d5599989e6dfcc7f7c7/FU_edges_fade-outline.scm | scheme | FU_edges_fade-outline.scm
22/07/2020 on Gimp-2.10.20
10/17/2010 - fixed undefined variable (old-selection)
when using a growing selection. Discovered and
==============================================================
Installation:
This script should be placed in the user or system-wide script folder.
Windo... | version 2.8 [ gimphelp.org ]
last modified / tested by
02/14/2014 on GIMP-2.8.10
corrected by < >
02/14/2014 - convert to RGB if needed
C:\Program Files\GIMP 2\share\gimp\2.0\scripts
C:\Users\YOUR - NAME\.gimp-2.10\scripts
/home / yourname/.gimp-2.8 / scripts
it under the terms of the ... |
ab65e689d4e59d9ac6742b77bf1ad549ca84a23c4d95fd33d12d6f2c46b8150f | thierry-martinez/traverse | traverse_meta.ml | let variable_count = 32
let mklid s =
Metapp.mkloc (Longident.Lident s)
let rec compose_n n f unit =
if n > 0 then
let i = pred n in
compose_n i f (f i unit)
else
unit
let compose f unit =
compose_n variable_count f unit
let type_of_string s =
Ppxlib.Ast_helper.Typ.constr (mklid s) []
let mk_... | null | https://raw.githubusercontent.com/thierry-martinez/traverse/9d03cf1e650dc70273b981b1178a16a4929987e6/traverse_meta/traverse_meta.ml | ocaml | let variable_count = 32
let mklid s =
Metapp.mkloc (Longident.Lident s)
let rec compose_n n f unit =
if n > 0 then
let i = pred n in
compose_n i f (f i unit)
else
unit
let compose f unit =
compose_n variable_count f unit
let type_of_string s =
Ppxlib.Ast_helper.Typ.constr (mklid s) []
let mk_... | |
239bd0c75fa4bd4547e7818daadc84de7047375a9442d14099fb73a569ea5163 | jrh13/hol-light | theorems.ml | (* ========================================================================= *)
(* Additional theorems, mainly about quantifiers, and additional tactics. *)
(* *)
, University of Cambridge Computer Laboratory
(* ... | null | https://raw.githubusercontent.com/jrh13/hol-light/d125b0ae73e546a63ed458a7891f4e14ae0409e2/theorems.ml | ocaml | =========================================================================
Additional theorems, mainly about quantifiers, and additional tactics.
===============... | , University of Cambridge Computer Laboratory
( c ) Copyright , University of Cambridge 1998
( c ) Copyright , 1998 - 2007
( c ) Copyright , 2012
needs "simp.ml";;
let EQ_REFL = p... |
91285f8af69bccfed1bc6b892916bb6b48c51639f4333323353d5b87521faea3 | reflectionalist/S9fES | random-sort.scm | Scheme 9 from Empty Space , Function Library
By , 2010
; Placed in the Public Domain
;
; (random-sort list) ==> list
; (random-sort list integer) ==> list
;
Create a random permutation of LIST and return it . When INTEGER
is specified , use it to initialize a random state ( see ) .
; When no see... | null | https://raw.githubusercontent.com/reflectionalist/S9fES/0ade11593cf35f112e197026886fc819042058dd/lib/random-sort.scm | scheme | Placed in the Public Domain
(random-sort list) ==> list
(random-sort list integer) ==> list
When no seed or the same seed is specified, RANDOM-SORT will
always deliver the same permutation.
Example: (random-sort '(1 2 3 4 5)) ==> (2 3 5 1 4) | Scheme 9 from Empty Space , Function Library
By , 2010
Create a random permutation of LIST and return it . When INTEGER
is specified , use it to initialize a random state ( see ) .
(load-from-library "hof.scm")
(load-from-library "random.scm")
(load-from-library "sort.scm")
(define (random-sort a . seed)
... |
b524faf2ce2f998b42587316eb6412100ee2ad4b5d437bb5b6c6886ad1087614 | stan-dev/stanc3 | Mir_utils.mli | open Core_kernel
open Middle
open Dataflow_types
val var_declarations : ('a, 'b) Stmt.Fixed.t -> string Set.Poly.t
val num_expr_value : Expr.Typed.t -> (float * string) option
type bound_values =
{ lower: [`None | `Nonlit | `Lit of float]
; upper: [`None | `Nonlit | `Lit of float] }
val trans_bounds_values : Exp... | null | https://raw.githubusercontent.com/stan-dev/stanc3/e83fe4be8acf8880a1522d1908ce7aad95d58a55/src/analysis_and_optimization/Mir_utils.mli | ocaml | *
A traversal that simultaneously accumulates a state (type 'f) and replaces the
substatement values from ('a to 'c). Traversal is done in-order but ignores branching,
e.g., and if's then block is followed by the else block rather than branching.
*
Return the names of the variables in an expression.
* The... | open Core_kernel
open Middle
open Dataflow_types
val var_declarations : ('a, 'b) Stmt.Fixed.t -> string Set.Poly.t
val num_expr_value : Expr.Typed.t -> (float * string) option
type bound_values =
{ lower: [`None | `Nonlit | `Lit of float]
; upper: [`None | `Nonlit | `Lit of float] }
val trans_bounds_values : Exp... |
0d2e5499ff4fcd8fd0c40ab3413e7b9939f207fed97d93827f041f44843f9f85 | YoshikuniJujo/test_haskell | VulkanSubpassEnum.hs | # OPTIONS_GHC -Wall -fno - warn - tabs #
module VulkanSubpassEnum where
import MakeEnum
make :: IO ()
make = createFile'' "/usr/include/vulkan/vulkan_core.h"
"Subpass.Enum" ["Data.Bits", "Data.Word"] [
( [("DescriptionFlagsZero", Int 0)],
( "DescriptionFlagBits", "VkSubpassDescriptionFlagBits",
["Show", "Eq"... | null | https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/6ea44c1048805a62979669c185ab32ba9f4d2e02/themes/gui/vulkan/try-vulkan-middle/tools/VulkanSubpassEnum.hs | haskell | # OPTIONS_GHC -Wall -fno - warn - tabs #
module VulkanSubpassEnum where
import MakeEnum
make :: IO ()
make = createFile'' "/usr/include/vulkan/vulkan_core.h"
"Subpass.Enum" ["Data.Bits", "Data.Word"] [
( [("DescriptionFlagsZero", Int 0)],
( "DescriptionFlagBits", "VkSubpassDescriptionFlagBits",
["Show", "Eq"... | |
21d45dabd2fc240b8819e042d645df76b37dacfaaff69df91148c681a711bf3c | UnixJunkie/consent | bond.ml |
very small bond module to help compute atom environments ( a la molprint2d ) from MOL2 files
open Printf
type t = { idx: int ;
src: int ;
dst: int }
indexes start at 1 in the MOL2 file format
let create (idx: int) (src: int) (dst: int): t =
{ idx = idx - 1; src = src - 1; dst = dst - 1 }... | null | https://raw.githubusercontent.com/UnixJunkie/consent/f065ee7ba5a1ae014b5c3a28d0985ba5ad1abda5/src/bond.ml | ocaml |
very small bond module to help compute atom environments ( a la molprint2d ) from MOL2 files
open Printf
type t = { idx: int ;
src: int ;
dst: int }
indexes start at 1 in the MOL2 file format
let create (idx: int) (src: int) (dst: int): t =
{ idx = idx - 1; src = src - 1; dst = dst - 1 }... | |
1c60a7c2f676d69d26bf623851218eacc44445f5e3ceb8c6274c881c950b0882 | vulcanize/purplechain | Message.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE OverloadedStrings #-}
module Purplechain.Module.Message where
import Control.Arrow (left)
import Control.Error.Util (note)
import Control.Lens
import Control.Monad ((<=<))
import Data.Text ... | null | https://raw.githubusercontent.com/vulcanize/purplechain/a5921e6337c8e595cc869224c6051bc70f94799a/purplechain/src/Purplechain/Module/Message.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
module Purplechain.Module.Message where
import Control.Arrow (left)
import Control.Error.Util (note)
import Control.Lens
import Control.Monad ((<=<))
import Data.Text (Text)
import GHC.Generics ... |
4e064742365b6e46f0dcb547d616698838c1d1b17f5bd07b59b2cb2ac3b58380 | oxheadalpha/TZComet | text_editor.ml | open Import
let code_mirror = ""
type status = Non_initialized | Initialized
type t =
{ id: string
; language: string
; code: string Reactive.Bidirectional.t
; status: status Reactive.var
; mutable text_area: Html_types.div Meta_html.t option }
let create ?(language = "mllike") id ~code =
{id; language;... | null | https://raw.githubusercontent.com/oxheadalpha/TZComet/c77a08acf5663ba6fdd50359aae0ca100e54ab76/src/client/text_editor.ml | ocaml | open Import
let code_mirror = ""
type status = Non_initialized | Initialized
type t =
{ id: string
; language: string
; code: string Reactive.Bidirectional.t
; status: status Reactive.var
; mutable text_area: Html_types.div Meta_html.t option }
let create ?(language = "mllike") id ~code =
{id; language;... | |
4633bf08a6bdb6c34d507ae58ac4f067fdbce6e34d14b0470a6863d33048e55d | binsec/haunted | cfg.mli | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2019
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/utils/cfg.mli | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
630f40b2dfcdf8fa8333a212192fee5a672372cc16dfe9e445163467c29c382f | scheme/edwin48 | load.scm | ;;; -*- Mode: Scheme; scheme48-package: (exec) -*-
;;;
Copyright © 2007 < >
;;;
;;; This code is placed in the Public Domain. All warranties are
;;; disclaimed.
;;;
;;; This script loads the code for Edwin48 and its dependencies. To run it, execute the following on
;;; the scsh repl from this directory:
;;;
;;; >... | null | https://raw.githubusercontent.com/scheme/edwin48/fbe3c7ca14f1418eafddebd35f78ad12e42ea851/load.scm | scheme | -*- Mode: Scheme; scheme48-package: (exec) -*-
This code is placed in the Public Domain. All warranties are
disclaimed.
This script loads the code for Edwin48 and its dependencies. To run it, execute the following on
the scsh repl from this directory:
> ,exec ,load load.scm
Load srfi's before the other pack... | Copyright © 2007 < >
(user)
(config '(load "config-macros.scm"))
(config '(load "edwin48/srfi-packages.scm"
"edwin48/scsh/packages.scm"))
(config '(load "terminfo/interfaces.scm"
"terminfo/scsh-packages.scm"))
(config '(load "soosy/interfaces.scm"
"soosy/packages.s... |
78138b4681bac185b2d9a88b1e38b6c94f1455147fc92afbfb8aa2be83ed406d | dyzsr/ocaml-selectml | topmain.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/toplevel/native/topmain.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
let preload_objects = ref []
Position of the first non expanded argument
let first_nonexpanded_pos = r... |
6f6228ee7c09367b2b73f45fa33c1bba08f960a88ce672916a91be386de57175 | glguy/advent2015 | Day9.hs | module Main where
import qualified Data.Map as Map
import qualified Data.Set as Set
import Data.Map ( Map )
import Data.List
data Edge = Edge String String deriving (Eq, Ord, Show, Read)
edge :: String -> String -> Edge
edge x y
| x < y = Edge x y
| otherwise = Edge y x
edgeParts :: Edge -> [String]
edge... | null | https://raw.githubusercontent.com/glguy/advent2015/e59b93c41363be85eb7f11396db5c95e79e485ad/Day9.hs | haskell | module Main where
import qualified Data.Map as Map
import qualified Data.Set as Set
import Data.Map ( Map )
import Data.List
data Edge = Edge String String deriving (Eq, Ord, Show, Read)
edge :: String -> String -> Edge
edge x y
| x < y = Edge x y
| otherwise = Edge y x
edgeParts :: Edge -> [String]
edge... | |
8fd15e8dfd665f569f50f65f0fbd9d7f894a1ef2249e9e77b7e4fc6d77df78d8 | cbaggers/cepl.examples | basic-3d-objects.lisp | ;; More 3D - Multiple objects rotating
(in-package :cepl.examples+camera)
(defparameter *entities* nil)
(defparameter *camera* nil)
(defun-g b3d-vert ((vert g-pc) &uniform (model->world :mat4) (world->cam :mat4)
(cam->clip :mat4))
(values (* cam->clip
(* world->cam
(*... | null | https://raw.githubusercontent.com/cbaggers/cepl.examples/87ac3def3e674632662350c809edf09f4820fbd1/examples/basic-3d-objects.lisp | lisp | More 3D - Multiple objects rotating | (in-package :cepl.examples+camera)
(defparameter *entities* nil)
(defparameter *camera* nil)
(defun-g b3d-vert ((vert g-pc) &uniform (model->world :mat4) (world->cam :mat4)
(cam->clip :mat4))
(values (* cam->clip
(* world->cam
(* model->world
(v! (p... |
16a2e96f9fc4edd26f7a5e77d0fbd9b3f28747e73db3908d5fad0093f7064dc9 | rcherrueau/APE | proverif.rkt | #! /usr/bin/env racket
#lang racket/base
(require (file "/home/rl3x-desktop/prog/APE/racket/proverif/fill-rastache/rastache/main.rkt")
racket/system
racket/cmdline)
(cond
Proverif is installed
[(system "hash proverif 2>/dev/null")
;; proverif evaluation namespace
(define proverif-ns (make-... | null | https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/proverif/proverif.rkt | racket | proverif evaluation namespace
Command line
The given file exists
Compile option
Expand rastache file
Call proverif on expanded file
The given file doesn't exist | #! /usr/bin/env racket
#lang racket/base
(require (file "/home/rl3x-desktop/prog/APE/racket/proverif/fill-rastache/rastache/main.rkt")
racket/system
racket/cmdline)
(cond
Proverif is installed
[(system "hash proverif 2>/dev/null")
(define proverif-ns (make-base-namespace))
(define color-m... |
3307de2da9da4c8338c3298b88df1d8537dd2199f5ff07d58678b55a24fef175 | japonophile/synaptic | convolution_test.clj | (ns synaptic.convolution-test
(:require [clojure.test :refer :all]
[synaptic.net :refer :all]
[synaptic.datasets :refer :all]
[synaptic.training :refer :all]
[synaptic.convolution :refer :all]
[synaptic.util :refer :all]
[clatrix.core :as m])
(... | null | https://raw.githubusercontent.com/japonophile/synaptic/2739c4f37cb37fb2a93589f985823a1fcd4d7eb9/test/synaptic/convolution_test.clj | clojure | featuremap #1
featuremap #2
featuremap #3
2 2 1 1
2 2 1 1
2 2 1 1
this is not doing anything right now, because using
clatrix m/rand and not our own. keeping it for now
to try generating new failure modes | (ns synaptic.convolution-test
(:require [clojure.test :refer :all]
[synaptic.net :refer :all]
[synaptic.datasets :refer :all]
[synaptic.training :refer :all]
[synaptic.convolution :refer :all]
[synaptic.util :refer :all]
[clatrix.core :as m])
(... |
c01d550ebc54c438cc9124a5666a75e913b6868beaddc014c7ec04af5ccaa682 | dwayne/eopl3 | env.rkt | #lang eopl
(provide
;; Build
empty-env
extend-env
;; Query
env?
apply-env
identifier? identifier=?)
(define-datatype env env?
[empty]
[extend
(var identifier?)
(val any?)
(saved-env env?)])
(define (empty-env)
(empty))
(define (extend-env var val env)
(extend var val env))
(define (apply... | null | https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/03-ch3/interpreters/racket/PROC-3.27/env.rkt | racket | Build
Query | #lang eopl
(provide
empty-env
extend-env
env?
apply-env
identifier? identifier=?)
(define-datatype env env?
[empty]
[extend
(var identifier?)
(val any?)
(saved-env env?)])
(define (empty-env)
(empty))
(define (extend-env var val env)
(extend var val env))
(define (apply-env env1 search-var... |
530ceb5e200bb081fa2addd1daf946ca7bdedb8ec09667f7ccf3dadd4bb97d37 | clojure-interop/aws-api | AWSTransferAsyncClientBuilder.clj | (ns com.amazonaws.services.transfer.AWSTransferAsyncClientBuilder
"Fluent builder for AWSTransferAsync. Use of the builder is preferred over
using constructors of the client class."
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws.services.transfer AWSTransferAsyncClientBuilder]))
(defn... | null | https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.transfer/src/com/amazonaws/services/transfer/AWSTransferAsyncClientBuilder.clj | clojure | (ns com.amazonaws.services.transfer.AWSTransferAsyncClientBuilder
"Fluent builder for AWSTransferAsync. Use of the builder is preferred over
using constructors of the client class."
(:refer-clojure :only [require comment defn ->])
(:import [com.amazonaws.services.transfer AWSTransferAsyncClientBuilder]))
(defn... | |
3c8691691e0e1cdb52654e9c12a59e08d10906e0be688a68f544c6134638929d | mirage/ocaml-hex | test.ml | let () = Random.self_init ()
let random_string () =
let s = Bytes.create (Random.int 20483) in
for i = 0 to Bytes.length s - 1 do
Bytes.set s i (Char.chr (Random.int 256))
done;
Bytes.to_string s
let check msg x y =
if x = y then ()
else (
Printf.eprintf "\n---\n%S\n---\n%S\n%s: \027[31mERROR!\027... | null | https://raw.githubusercontent.com/mirage/ocaml-hex/85fe242997b61dc2f07ca1b62600b4d01ac0da94/lib_test/test.ml | ocaml | unprintable
Test out the various padding situations we need to get right
Less than 1 row
Exactly 2 rows long | let () = Random.self_init ()
let random_string () =
let s = Bytes.create (Random.int 20483) in
for i = 0 to Bytes.length s - 1 do
Bytes.set s i (Char.chr (Random.int 256))
done;
Bytes.to_string s
let check msg x y =
if x = y then ()
else (
Printf.eprintf "\n---\n%S\n---\n%S\n%s: \027[31mERROR!\027... |
2f62744835234821181e84149c065a47c2ad12d009ac02811b2afc042e28d540 | moby/datakit | cI_process.ml | open! Astring
open CI_utils
open Lwt.Infix
let child_src =
Logs.Src.create "datakit-ci.child" ~doc:"Output from child process"
module Child = (val Logs.src_log child_src : Logs.LOG)
let pp_args =
let sep = Fmt.(const string) " " in
Fmt.array ~sep String.dump
let pp_cmd f = function
| "", args -> pp_args f a... | null | https://raw.githubusercontent.com/moby/datakit/e047e55a2dfa3aaec02398d7d7699f4f7afd2b47/ci/src/cI_process.ml | ocaml | Just to detect problems with this scheme early
Copy to [dst] until end-of-file or [switch] is turned off.
(passing a count tells it not to buffer)
Hack because child#terminate may not kill sub-children.
Hopefully closing [stream] will encourage them to exit.
Also includes stderr
Wait for both stream... | open! Astring
open CI_utils
open Lwt.Infix
let child_src =
Logs.Src.create "datakit-ci.child" ~doc:"Output from child process"
module Child = (val Logs.src_log child_src : Logs.LOG)
let pp_args =
let sep = Fmt.(const string) " " in
Fmt.array ~sep String.dump
let pp_cmd f = function
| "", args -> pp_args f a... |
017e0b6c2680424460c15d3e5497f6f72f9036e8c95714c1af548dcd8fe8533f | stevenvar/OMicroB | test.ml | let () =
trace "Hello"
type color = [
| `GreenYellow | `Yellow | `Goldenrod | `Dandelion | `Apricot | `Peach | `Melon | `YellowOrange
| `Orange | `BurntOrange | `Bittersweet | `RedOrange | `Mahogany | `Maroon | `BrickRed | `Red
| `OrangeRed | `RubineRed | `WildStrawberry | `Salmon | `CarnationPink | `Magenta |... | null | https://raw.githubusercontent.com/stevenvar/OMicroB/e4324d0736ac677b3086741dfdefb0e46775642b/tests/polyvar/test.ml | ocaml | let () =
trace "Hello"
type color = [
| `GreenYellow | `Yellow | `Goldenrod | `Dandelion | `Apricot | `Peach | `Melon | `YellowOrange
| `Orange | `BurntOrange | `Bittersweet | `RedOrange | `Mahogany | `Maroon | `BrickRed | `Red
| `OrangeRed | `RubineRed | `WildStrawberry | `Salmon | `CarnationPink | `Magenta |... | |
2c8c6f602c0dc66567704c2ba0f5a92a4594f778b6d914c0310a90899f7c23df | jepsen-io/jepsen | adya.clj | (ns jepsen.adya
"Moved to jepsen.tests.adya.")
| null | https://raw.githubusercontent.com/jepsen-io/jepsen/a75d5a50dd5fa8d639a622c124bf61253460b754/jepsen/src/jepsen/adya.clj | clojure | (ns jepsen.adya
"Moved to jepsen.tests.adya.")
| |
d5505057248072338eee6d51ad0cde145a7ed817d9f7419032058edc98e25b24 | shop-planner/shop3 | package.lisp | (defpackage shop3.plan-grapher
(:nicknames #:shop3-plan-grapher #:shop2-plan-grapher #:shop-plan-grapher #:spg)
(:use common-lisp shop3)
(:export #:graph-plan-tree ;API function
#:plan-tree-graph ;Class to control graph generation: may
;be s... | null | https://raw.githubusercontent.com/shop-planner/shop3/ba429cf91a575e88f28b7f0e89065de7b4d666a6/shop3/plan-grapher/package.lisp | lisp | API function
Class to control graph generation: may
be subclassed
Class to control graph generation: may be subclassed | (defpackage shop3.plan-grapher
(:nicknames #:shop3-plan-grapher #:shop2-plan-grapher #:shop-plan-grapher #:spg)
(:use common-lisp shop3)
#:graph-enhanced-plan-tree
))
|
f91c3cc7a819b6cd75e8f9d98a2c8c51b0762ab0a4d153c1e3b93c6aa57a4260 | cj1128/sicp-review | sd-basic.scm | ; basic code for symbolic differentiation
(define (variable? x) (symbol? x))
(define (same-variable? v1 v2)
(and
(variable? v1)
(variable? v2)
(eq? v1 v2)))
(define (=number? exp n)
(and (number? exp) (= exp n)))
(define (make-sum a1 a2)
(cond
((=number? a1 0) a2)
((=number? a2 0) a1)
... | null | https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.3/sd-basic.scm | scheme | basic code for symbolic differentiation |
(define (variable? x) (symbol? x))
(define (same-variable? v1 v2)
(and
(variable? v1)
(variable? v2)
(eq? v1 v2)))
(define (=number? exp n)
(and (number? exp) (= exp n)))
(define (make-sum a1 a2)
(cond
((=number? a1 0) a2)
((=number? a2 0) a1)
((and
(number? a1)
(number? ... |
f1ee82d9ad63400c7ed7eeffc01ccbf480b30a6e43c46c40e54ca8c539a4de54 | adacapo21/plutusPioneerProgram | IsData.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
# LANGUAGE NoImplicitPrelude #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
{-# LANGUAGE TypeOperators #-}
# ... | null | https://raw.githubusercontent.com/adacapo21/plutusPioneerProgram/d76d46ea72267a19d7ea91ae9b39cafcf08ac962/week02/src/Week02/IsData.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE FlexibleContexts #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeOperators #
above instead of using I r, we use toData (MySillyRedeemer r) | # LANGUAGE NoImplicitPrelude #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies #
# OPTIONS_GHC -fno - warn - unused - imports #
module Week02.IsData where
import Control.Monad hiding (fmap)
import Data.... |
3a08bc2e0fc48a67e6ba340294bfb5ebbac5da8f49298aea6bc684b35472d088 | Workiva/eva | rule_tests.clj | Copyright 2015 - 2019 Workiva Inc.
;;
;; Licensed under the Eclipse Public License 1.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;; -1.0.php
;;
;; Unless required by applicable law or agreed to in writing, software
dist... | null | https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/test/eva/query/datalog/rule_tests.clj | clojure |
Licensed under the Eclipse Public License 1.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-1.0.php
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | Copyright 2015 - 2019 Workiva Inc.
distributed under the License is distributed on an " AS IS " BASIS ,
(ns eva.query.datalog.rule-tests
(:require [eva.query.datalog.protocols :refer :all :as prot]
[eva.query.datalog.predicate :refer :all]
[eva.query.datalog.rule :refer :all]
... |
1582a5170feb04a4b5d901adf1a8f92b4daed75d7d4ef6a12d546b0b645505c6 | e-bigmoon/haskell-blog | Example2.hs | #!/usr/bin/env stack
{- stack repl --resolver lts-15.4
--package base16-bytestring
--package crypto-api
--package exceptions
--package monadcryptorandom
--package mtl
--package text
--package unliftio
--package yesod
-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses... | null | https://raw.githubusercontent.com/e-bigmoon/haskell-blog/5c9e7c25f31ea6856c5d333e8e991dbceab21c56/sample-code/yesod/ch13/Example2.hs | haskell | stack repl --resolver lts-15.4
--package base16-bytestring
--package crypto-api
--package exceptions
--package monadcryptorandom
--package mtl
--package text
--package unliftio
--package yesod
# LANGUAGE QuasiQuotes #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeSynonymI... | #!/usr/bin/env stack
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeFamilies #
import Control.Monad (join)
import Control.Monad.Catch (throwM)
import Control.Monad.CryptoRandom
import ... |
e206cbc148558be6effd001939f25c5ee79b0e561f1c4f041dd636759ae32ead | static-analysis-engineering/codehawk | bCHBasicTypes.ml | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Co... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/dd2c3b9f84b4b5f3c88898505ee912e1e461e809/CodeHawk/CHB/bchlib/bCHBasicTypes.ml | ocaml | chutil
bchlib
raised when control flow is found to be altered | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Binary Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Co... |
5570180241cb0a384c7d8a3f267bfbda8aa8eb59ed7220647a3e5fa1b71ada58 | sweirich/pi-forall | PrettyPrint.hs | {- pi-forall language -}
-- | A Pretty Printer.
module PrettyPrint (Disp (..), D (..), SourcePos, PP.Doc, PP.render) where
import Control.Monad.Reader (MonadReader (ask, local), asks)
import Data.Set qualified as S
import Syntax
import Text.ParserCombinators.Parsec.Error (ParseError)
import Text.ParserCombinators.Par... | null | https://raw.githubusercontent.com/sweirich/pi-forall/93de2eee777c9123bf67534b7b8453656370542d/version1/src/PrettyPrint.hs | haskell | pi-forall language
| A Pretty Printer.
-----------------------------------------------------------------------
* Classes and Types for Pretty Printing
-----------------------------------------------------------------------
| The 'Disp' class governs all types which can be turned into 'Doc's
The `disp` function is... |
module PrettyPrint (Disp (..), D (..), SourcePos, PP.Doc, PP.render) where
import Control.Monad.Reader (MonadReader (ask, local), asks)
import Data.Set qualified as S
import Syntax
import Text.ParserCombinators.Parsec.Error (ParseError)
import Text.ParserCombinators.Parsec.Pos (SourcePos, sourceColumn, sourceLine, so... |
19d4064815ddb9210dacb09418788e75e2d4fa26307988fedb7778f0c9d810b3 | PagingMatt/osilo | Auth.mli | (** Provides all capability operations, including managing capabilities other
peers have delegated out. *)
module Token : sig
type t = R | W | D
* Tokens are either read [ R ] , write [ W ] or delete [ D ] . Unlike UNIX write
implies read etc .
implies read etc. *)
exception Invalid_token of string
(*... | null | https://raw.githubusercontent.com/PagingMatt/osilo/3ef63a3c0970444c19bd5abf52ad9db154829904/src/Auth.mli | ocaml | * Provides all capability operations, including managing capabilities other
peers have delegated out.
* Raised when [token_of_string] is called on an invalid input.
* Serialises [Token.t] to [string] [R] -> "R", [W] -> "W" and [D] -> "D".
* Permissions tokens. These are used to express the difference between being... |
module Token : sig
type t = R | W | D
* Tokens are either read [ R ] , write [ W ] or delete [ D ] . Unlike UNIX write
implies read etc .
implies read etc. *)
exception Invalid_token of string
val token_of_string : string -> t
* Used to deserialise a string representing a token . " R " - > [ R ] , " ... |
98395567b82bad93d9e04de151cac4178790d8df820e5a95d11f0890b69f34e8 | PrincetonUniversity/lucid | Cid.mli | (* Compound Identifiers *)
type id = Id.t
type t =
| Id of id
| Compound of id * t
(* Constructors *)
val create : string list -> t
val create_ids : Id.t list -> t
val create_ids_rev : Id.t list -> t
val fresh : string list -> t
val id : Id.t -> t
val compound : Id.t -> t -> t
val str_cons : string -> t -> t
val... | null | https://raw.githubusercontent.com/PrincetonUniversity/lucid/3a8f1638858b180e009a914735e474b7cf01845f/src/lib/frontend/datastructures/Cid.mli | ocaml | Compound Identifiers
Constructors
Destructors | type id = Id.t
type t =
| Id of id
| Compound of id * t
val create : string list -> t
val create_ids : Id.t list -> t
val create_ids_rev : Id.t list -> t
val fresh : string list -> t
val id : Id.t -> t
val compound : Id.t -> t -> t
val str_cons : string -> t -> t
val concat : t -> t -> t
val from_string : string... |
73d8589a130c01860eec8f1d3a2145abe9692bc057dcc8688b255ade1252e01c | yallop/ocaml-asp | sexp_benchmark.ml |
* Copyright ( c ) 2018 and
*
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* Copyright (c) 2018 Neelakantan Krishnaswami and Jeremy Yallop
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*... | null | https://raw.githubusercontent.com/yallop/ocaml-asp/a092f17ea55d427c63414899e39a8fe80b30db14/benchmarks/sexp/sexp_benchmark.ml | ocaml |
* Copyright ( c ) 2018 and
*
* This file is distributed under the terms of the MIT License .
* See the file LICENSE for details .
* Copyright (c) 2018 Neelakantan Krishnaswami and Jeremy Yallop
*
* This file is distributed under the terms of the MIT License.
* See the file LICENSE for details.
*... | |
888c882fdfe9be250af55eef2d2288252b7c7cf7b189cc21e8231c598c14c7cf | racket/typed-racket | optional-shallow-id-3.rkt | #lang typed/racket/base/shallow
(module uuu racket/base
(provide bad-sym)
(define bad-sym #f))
(module opt typed/racket/base/optional
(require/typed/provide (submod ".." uuu)
(bad-sym Symbol)))
(require 'opt)
bad-sym
| null | https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/optional/optional-shallow-id-3.rkt | racket | #lang typed/racket/base/shallow
(module uuu racket/base
(provide bad-sym)
(define bad-sym #f))
(module opt typed/racket/base/optional
(require/typed/provide (submod ".." uuu)
(bad-sym Symbol)))
(require 'opt)
bad-sym
| |
5eb08279762dea6b201ceb0685e2e4e7f1cb65ed55ec5486721e103335dc8076 | ppaml-op3/insomnia | Example.hs | # LANGUAGE MultiParamTypeClasses , FlexibleContexts #
module Gambling.Example where
import Unbound.Generics.LocallyNameless
import Gambling.Racket
import Gambling.Emit (Emit(..), emitIt)
var :: String -> (Var, Expr)
var s = let x = s2n s
in (x, Var x)
lam :: [Var] -> Body -> Expr
lam vs = Lam . bind vs
bod... | null | https://raw.githubusercontent.com/ppaml-op3/insomnia/5fc6eb1d554e8853d2fc929a957c7edce9e8867d/src/Gambling/Example.hs | haskell | # LANGUAGE MultiParamTypeClasses , FlexibleContexts #
module Gambling.Example where
import Unbound.Generics.LocallyNameless
import Gambling.Racket
import Gambling.Emit (Emit(..), emitIt)
var :: String -> (Var, Expr)
var s = let x = s2n s
in (x, Var x)
lam :: [Var] -> Body -> Expr
lam vs = Lam . bind vs
bod... | |
859c9433a572b232df11d987708334157fae678d5b34ddb504dc796d3161c1dc | eugeneia/athens | node-set.lisp | node-set.lisp
;;;
;;; This file is part of the cl-libxml2 library, released under Lisp-LGPL.
;;; See file COPYING for details.
;;;
Author : < >
(in-package #:libxml2.xpath)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; node-set
;;;;;;;;;;;;;;;;;;;;;;;;... | null | https://raw.githubusercontent.com/eugeneia/athens/cc9d456edd3891b764b0fbf0202a3e2f58865cbf/quicklisp/dists/quicklisp/software/cl-libxml2-20130615-git/xpath/node-set.lisp | lisp |
This file is part of the cl-libxml2 library, released under Lisp-LGPL.
See file COPYING for details.
node-set
int nodeNr : number of nodes in the set
int nodeMax : size of the array as allocated
xmlNodePtr * nodeTab : array of nodes in no particular order @
node-set-length
node-set-at
| node-set.lisp
Author : < >
(in-package #:libxml2.xpath)
(defcstruct %xmlNodeSet
(%nodeNr :int)
(%nodeMax :int)
(%nodeTab %xmlNodePtr))
(defwrapper node-set %xmlNodeSet)
(defun node-set-length (nodeset)
(foreign-slot-value (pointer nodeset)
'(:struct %xmlNodeSet)
... |
9f27eba9582468671ab4313b01179c5689a985a5a633d7ca8f05ae79de0f56c3 | dyoo/whalesong | vararity.rkt | #lang s-exp "../../lang/wescheme.rkt"
"vararity"
(define f (lambda args args))
(check-expect (f) empty)
(check-expect (f 1 2) '(1 2))
"vararity done" | null | https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/tests/older-tests/moby-programs/vararity.rkt | racket | #lang s-exp "../../lang/wescheme.rkt"
"vararity"
(define f (lambda args args))
(check-expect (f) empty)
(check-expect (f 1 2) '(1 2))
"vararity done" | |
3d7025f48da18b7756290d61ef5d6b2b99fc49ba737a90dece5b665a4997b357 | juxt/reap | rfc7234.clj | Copyright © 2020 , JUXT LTD .
(ns juxt.reap.alpha.decoders.rfc7234
(:require
[juxt.reap.alpha.combinators :as p]
[juxt.reap.alpha.regex :as re]
[juxt.reap.alpha.rfc7234 :as rfc]
[juxt.reap.alpha.decoders.rfc5234 :refer [DIGIT]]
[juxt.reap.alpha.decoders.rfc7230 :refer [OWS token quoted-string unesca... | null | https://raw.githubusercontent.com/juxt/reap/29ffc8664df26041ebd93a53f009d2606d1a5b6c/src/juxt/reap/alpha/decoders/rfc7234.clj | clojure | Accept-Ranges = acceptable-ranges
Cache-Control = *( "," OWS ) cache-directive *( OWS "," [ OWS
cache-directive ] )
cache-directive = token [ "=" ( token / quoted-string ) ] | Copyright © 2020 , JUXT LTD .
(ns juxt.reap.alpha.decoders.rfc7234
(:require
[juxt.reap.alpha.combinators :as p]
[juxt.reap.alpha.regex :as re]
[juxt.reap.alpha.rfc7234 :as rfc]
[juxt.reap.alpha.decoders.rfc5234 :refer [DIGIT]]
[juxt.reap.alpha.decoders.rfc7230 :refer [OWS token quoted-string unesca... |
70e852dd26cef39892a5240912af8d6274c6bbcc8d60491ed31468ba5a5ad05a | fpco/ide-backend | Verbosity.hs | -----------------------------------------------------------------------------
-- |
-- Module : Distribution.Verbosity
Copyright : 2007
--
-- Maintainer :
-- Portability : portable
--
A simple ' Verbosity ' type with associated utilities . There are 4 standard
-- verbosity levels from 'silent', 'nor... | null | https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.14.0/Distribution/Verbosity.hs | haskell | ---------------------------------------------------------------------------
|
Module : Distribution.Verbosity
Maintainer :
Portability : portable
verbosity levels from 'silent', 'normal', 'verbose' up to 'deafening'. This
is used for deciding what logging messages to print.
* Verbosity
We shouldn't ... | Copyright : 2007
A simple ' Verbosity ' type with associated utilities . There are 4 standard
Verbosity for functions
Copyright ( c ) 2007 ,
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following condi... |
ebf441336c441633d8c769f46786d45abdb6c94c4dae81f20e5432a2d168c994 | mlemerre/l-lang | base.ml | Copyright 2013
module Astprint = Ast.Print;;
module Ast = Ast.Def;;
module Build = Cpsbase.Build;;
module type EXPRESSION = sig
val transform :
?v:Cpsbase.Var.var ->
Ast.Expression.t ->
Cpsbase.Var.Occur.maker Ast.Variable.Map.t ->
(Cpsbase.Var.Occur.maker -> Build.fresh) -> Build.fresh
end
mod... | null | https://raw.githubusercontent.com/mlemerre/l-lang/88201e861c6cc30bb3b9510d7f55c681eded4085/src/cps/cpstransform/base.ml | ocaml | Copyright 2013
module Astprint = Ast.Print;;
module Ast = Ast.Def;;
module Build = Cpsbase.Build;;
module type EXPRESSION = sig
val transform :
?v:Cpsbase.Var.var ->
Ast.Expression.t ->
Cpsbase.Var.Occur.maker Ast.Variable.Map.t ->
(Cpsbase.Var.Occur.maker -> Build.fresh) -> Build.fresh
end
mod... | |
6df640205411e10b213bd41a4b892d6311531a556452071a6b98876feaf84733 | mswift42/themecreator | app.cljs | (ns app.app
(:require [reagent.core :as reagent :refer [atom]]
[reagent.dom :as rdom]
[app.db :refer [app-db white-sand]]
[app.db :as db]
[app.components :as comps]
[app.colors :refer [derive-colors-from-theme hexToBgrHex]]
[cljsjs.mustache]
... | null | https://raw.githubusercontent.com/mswift42/themecreator/5a76da7997735de53f7c52b9410800a22bdf661a/app.core/src/app/app.cljs | clojure | (ns app.app
(:require [reagent.core :as reagent :refer [atom]]
[reagent.dom :as rdom]
[app.db :refer [app-db white-sand]]
[app.db :as db]
[app.components :as comps]
[app.colors :refer [derive-colors-from-theme hexToBgrHex]]
[cljsjs.mustache]
... | |
e9cc39c5478efcd709081d452c3d4c1ae1f31ac3f87e0a0f2be9613cb717935a | robert-strandh/SICL | utilities.lisp | (cl:in-package #:sicl-iteration)
;;; Check that the binding var is a symbol.
(defun binding-var-must-be-symbol (binding-var)
(unless (symbolp binding-var)
(error 'malformed-binding-var
:datum binding-var)))
;;; Check that the list-form is a list
;;; FIXME: signal a warning if list-form is not a prope... | null | https://raw.githubusercontent.com/robert-strandh/SICL/d2112f28d4c7dd98989c1ba472505038cc5c6dbc/Code/Iteration/utilities.lisp | lisp | Check that the binding var is a symbol.
Check that the list-form is a list
FIXME: signal a warning if list-form is not a proper-list
Check that the count form is a positive integer.
Check that iteration body is a proper list. | (cl:in-package #:sicl-iteration)
(defun binding-var-must-be-symbol (binding-var)
(unless (symbolp binding-var)
(error 'malformed-binding-var
:datum binding-var)))
(defun list-form-must-be-list (list-form)
(unless (or (listp list-form) (symbolp list-form))
(error 'malformed-list-form
... |
5d802c7add0dddb078d220aa299e195b42fd5c433bf63c46d2256ef73c6734a2 | cljdoc/cljdoc | pedestal.clj | (ns cljdoc.server.pedestal
"Weaves together the various HTTP components of cljdoc.
Routing and HTTP concerns are handled via Pedestal and
endpoints are implemented as [intereceptors]().
For more details on routing see [[cljdoc.server.routes]].
The main aspects handlded via HTTP (and thus through this namesp... | null | https://raw.githubusercontent.com/cljdoc/cljdoc/28aeb720db6a6b048c502925f1b95dacf2067894/src/cljdoc/server/pedestal.clj | clojure | fixes
instead of rendering a mostly white page we
I feel like pedestal should take care of this url-decoding
NOTE: We do not filter by artifact-id b/c in the UI version we want
This is not appropriate for Dash, so we only do this for :built docs
not found
redirect
dual purpose endpoint, used for both website... | (ns cljdoc.server.pedestal
"Weaves together the various HTTP components of cljdoc.
Routing and HTTP concerns are handled via Pedestal and
endpoints are implemented as [intereceptors]().
For more details on routing see [[cljdoc.server.routes]].
The main aspects handlded via HTTP (and thus through this namesp... |
ae186aea86dde37b0b6ddff863eab3fdeda67d923c1223911fcac4c09a88add1 | kazu-yamamoto/simple-sendfile | Types.hs | # LANGUAGE CPP #
module Network.Sendfile.Types where
#ifdef VERSION_unix
import qualified Data.ByteString as B
import qualified System.Posix.IO as P
import qualified System.Posix.IO.ByteString as PB
import qualified System.Posix.Types as P
#endif
-- |
-- File range for 'sendfile'.
data FileRang... | null | https://raw.githubusercontent.com/kazu-yamamoto/simple-sendfile/154c2c87ab16b3936c3384198eb29800b4604338/Network/Sendfile/Types.hs | haskell | |
File range for 'sendfile'.
To avoid build error in windows
| 'openFd's signature changed in @unix-2.8@. This is a portable wrapper.
| 'openFd's signature changed in @unix-2.8@. This is a portable wrapper. | # LANGUAGE CPP #
module Network.Sendfile.Types where
#ifdef VERSION_unix
import qualified Data.ByteString as B
import qualified System.Posix.IO as P
import qualified System.Posix.IO.ByteString as PB
import qualified System.Posix.Types as P
#endif
data FileRange = EntireFile
| Part... |
b9e6faf0d6b51b1c49a0e58a1489fd74d967a7c98dfb934b3ab05092743e50bd | chrisnc/tangaroa | Client.hs | module Main
( main
) where
import Network.Tangaroa.Byzantine.Spec.Simple
import Command
getCommand :: IO CommandType
getCommand = do
cmd <- getLine
case words cmd of
["insert", k, v] -> return (Insert k v)
["delete", k] -> return (Delete k)
["set", k, v] -> return (Set k v)
["get", k] ... | null | https://raw.githubusercontent.com/chrisnc/tangaroa/5dc68d9de0bdc23506e58f86357576f2c4a0c178/bin/Byzantine/Client.hs | haskell | module Main
( main
) where
import Network.Tangaroa.Byzantine.Spec.Simple
import Command
getCommand :: IO CommandType
getCommand = do
cmd <- getLine
case words cmd of
["insert", k, v] -> return (Insert k v)
["delete", k] -> return (Delete k)
["set", k, v] -> return (Set k v)
["get", k] ... | |
4af665201467179f52a875bddec4518671f002441917704bcdc5cd48aa151a24 | dto/cypress | lore.lisp | (in-package :cypress)
(defparameter *amalia-report*
"Official Report
of the Expedition to the Abyss
38th Council of Nothbehem
In Nothbehem before the Western Wars,
there was born a girl-child, Amalia,
with the seeming power of Premonition.
While in a trance-like state she would
write mysterious messages in a strang... | null | https://raw.githubusercontent.com/dto/cypress/c33c26f8bf470dbd74b14ed5afa2cbf25aea0ca6/lore.lisp | lisp | for just as much as they desired
our brother
and nearby, an
and our
for our evidence is merely our
watchmen
much of the
seek them out in the
others could emit
inhabiting strange
| (in-package :cypress)
(defparameter *amalia-report*
"Official Report
of the Expedition to the Abyss
38th Council of Nothbehem
In Nothbehem before the Western Wars,
there was born a girl-child, Amalia,
with the seeming power of Premonition.
While in a trance-like state she would
write mysterious messages in a strang... |
c86378b22bb775b81e04d18518d8c0f0276025319b878776e997480991b1ff53 | alt-romes/ghengin | Component.hs | module Ghengin.Component
( module Apecs
) where
import Apecs
| null | https://raw.githubusercontent.com/alt-romes/ghengin/da91a3a44b8a7f687efe9d2ee20feac51aa90a27/src/Ghengin/Component.hs | haskell | module Ghengin.Component
( module Apecs
) where
import Apecs
| |
b3e26ddb6b7a332f8102d42cfe179c5209f84757e89ce385de0665ed32d34f2f | modular-macros/ocaml-macros | evaluation_order_2.ml | A variant of evaluation_order_1.ml where the side - effects
are inside the blocks .
Effect are not named to allow different evaluation orders ( flambda
and clambda differ on this point ) .
are inside the blocks.
Effect are not named to allow different evaluation orders (flambda
and clambda d... | null | https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/letrec/evaluation_order_2.ml | ocaml | A variant of evaluation_order_1.ml where the side - effects
are inside the blocks .
Effect are not named to allow different evaluation orders ( flambda
and clambda differ on this point ) .
are inside the blocks.
Effect are not named to allow different evaluation orders (flambda
and clambda d... | |
eb8f3ecb9f34a2deb804f3dd894c93600144dbd790e9ea9d38400577c441e5d8 | jubnzv/moonsmith | generatorFuncDefs.mli | (** Generates top-level function and method definitions for the [ctx]. *)
val generate : Context.t -> Context.t
| null | https://raw.githubusercontent.com/jubnzv/moonsmith/820d08b99020b0cc0ff6cd5d8b1d94ca4e81eb8d/src/generatorFuncDefs.mli | ocaml | * Generates top-level function and method definitions for the [ctx]. | val generate : Context.t -> Context.t
|
dc1a25d5bb91815bd218b1c587a09df68254f006cb46e9dcd3b29a694f6e78ca | georgegarrington/Syphon | Definition.hs | module AST.Definition where
import qualified Data.Set as S
import AST.Type
import AST.Expression
import AST.Pattern
--Make the subscribe definition have a name of "subscribe" just so it fits in nicely with the rest of the pipeline
data Dfn
= Fun {name :: String, line :: Int, sch :: Scheme, cases :: [Case], wheres :... | null | https://raw.githubusercontent.com/georgegarrington/Syphon/402a326b482e3ce627a15b651b3097c2e09e8a53/src/AST/Definition.hs | haskell | Make the subscribe definition have a name of "subscribe" just so it fits in nicely with the rest of the pipeline
Line number, argument patterns and body expression
Given a record, extract all the field names | module AST.Definition where
import qualified Data.Set as S
import AST.Type
import AST.Expression
import AST.Pattern
data Dfn
= Fun {name :: String, line :: Int, sch :: Scheme, cases :: [Case], wheres :: [Dfn]}
| ADT {name :: String, line :: Int, constructors :: [Constructor]}
| Record {name :: String, line :: Int... |
cb25aa107d764f9aa06aa5f712d7e0006aeb8fef9a23956845cf61c0f2461c59 | Johni0702/guile-language-server | protocol.scm | Copyright ( C ) 2018 < >
;;;;
;;;; 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 option) any later version.
;;;;
;;;; This program is dis... | null | https://raw.githubusercontent.com/Johni0702/guile-language-server/db134354e20720f1c198e213b340e90dcec710e0/language-server/protocol.scm | scheme |
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public... | Copyright ( C ) 2018 < >
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
(define-module (language-server protocol)
#:use-module (json-rpc)
#:use-modu... |
cdea82e9f558a71110c70e0cd8706d543954e122654c5555c39d7ab98b8e1843 | pavlobaron/ErlangOTPBookSamples | wechselkurs_client.erl | -module(wechselkurs_client).
-export([kursinfo/0, umrechnung/0, dummy/0]).
kursinfo() ->
wechselkurs_server:kursinfo(eur, usd, {9,12,2010}).
umrechnung() ->
wechselkurs_server:umrechnung(eur, 100, usd, {9,12,2010}).
dummy() ->
io:format("I'm a bloody dummy").
| null | https://raw.githubusercontent.com/pavlobaron/ErlangOTPBookSamples/50094964ad814932760174914490e49618b2b8c2/entwicklung/wechselkurs/src/wechselkurs_client.erl | erlang | -module(wechselkurs_client).
-export([kursinfo/0, umrechnung/0, dummy/0]).
kursinfo() ->
wechselkurs_server:kursinfo(eur, usd, {9,12,2010}).
umrechnung() ->
wechselkurs_server:umrechnung(eur, 100, usd, {9,12,2010}).
dummy() ->
io:format("I'm a bloody dummy").
| |
48d1b0253535efe5cd801ad52c555ed09416eae20d9a2a1a35513ad66d959f20 | status-im/clj-rn | utils.clj | (ns clj-rn.utils
(:require [clj-rn.shell :as shell]))
(defn colorizer [c]
(fn [& args]
(str c (apply str args) shell/color-reset)))
(defn println-colorized [message color]
(println ((colorizer color) message)))
(defn log
([s]
(log s shell/color-green))
([s color]
(println-colorized s color)))
(d... | null | https://raw.githubusercontent.com/status-im/clj-rn/db8b76c02af8fbec70a22130cc8c47c120858dd1/src/clj_rn/utils.clj | clojure | (ns clj-rn.utils
(:require [clj-rn.shell :as shell]))
(defn colorizer [c]
(fn [& args]
(str c (apply str args) shell/color-reset)))
(defn println-colorized [message color]
(println ((colorizer color) message)))
(defn log
([s]
(log s shell/color-green))
([s color]
(println-colorized s color)))
(d... | |
2d9acd2ff64f4def71d4073e7b5fcedd6cd043d8deaa807660e42dc89486344c | ocaml-multicore/parafuzz | pr4989.ml | (* TEST *)
let rec f = let g = f in fun x -> g x;;
| null | https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/testsuite/tests/letrec-compilation/pr4989.ml | ocaml | TEST |
let rec f = let g = f in fun x -> g x;;
|
df6f72f5f2263ae8e2e446402bdbb8db3bbb2b4f7256f4bab13e65c5eeb1eb75 | helium/router | router_cli_device_worker.erl | -module(router_cli_device_worker).
-behavior(clique_handler).
-export([register_cli/0]).
-define(USAGE, fun(_, _, _) -> usage end).
-define(ID_FLAG, {id, [{longname, "id"}]}).
-include("router_device_worker.hrl").
register_cli() ->
register_all_usage(),
register_all_cmds().
register_all_usage() ->
lis... | null | https://raw.githubusercontent.com/helium/router/4a3132ba8a87d2a07e627623b273c1185d70cac5/src/cli/router_cli_device_worker.erl | erlang | --------------------------------------------------------------------
device
--------------------------------------------------------------------
--------------------------------------------------------------------
device lookup
--------------------------------------------------------------------
---------------------... | -module(router_cli_device_worker).
-behavior(clique_handler).
-export([register_cli/0]).
-define(USAGE, fun(_, _, _) -> usage end).
-define(ID_FLAG, {id, [{longname, "id"}]}).
-include("router_device_worker.hrl").
register_cli() ->
register_all_usage(),
register_all_cmds().
register_all_usage() ->
lis... |
4bf13236167240a5801aac7b03ba5baeb8ae137a0959c255c0c14913e27de121 | awslabs/s2n-bignum | bignum_triple_p256.ml |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
(* =================================================================... | null | https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/x86/proofs/bignum_triple_p256.ml | ocaml | =========================================================================
=========================================================================
*** print_literal_from_elf "x86/p256/bignum_triple_p256.o";;
***
XOR (% eax) (% eax)
ADCX (% rdx) (% rdx)
ADCX (% rdx) (% rdx)
ADCX (% rdx) (% rdx)
ADCX (% rd... |
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved .
* SPDX - License - Identifier : Apache-2.0 OR ISC
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0 OR ISC
*)
Tripling modulo p_256 , the field characteristic for the NIST P-25... |
e496fbfb25a09ca137e124a03e830a82ca841717b12a3f55d44c67e9086d2ec9 | manuel-serrano/bigloo | checksum.scm | ;*=====================================================================*/
* ... /prgm / project / bigloo / / comptime / Module / checksum.scm * /
;* ------------------------------------------------------------- */
;* Author : SERRANO Manuel */
* Creation ... | null | https://raw.githubusercontent.com/manuel-serrano/bigloo/6afa8068fa5889b3615f4b6fe5991b7d2387318a/comptime/Module/checksum.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* Author : SERRANO Manuel */
* ------------------------------------------------------------- */
* We compute checksum for... | * ... /prgm / project / bigloo / / comptime / Module / checksum.scm * /
* Creation : Thu Aug 21 08:38:45 1997 * /
* Last change : We d Apr 28 09:37:22 2021 ( serrano ) * /
* Copyright : 1997 - 2021 , see LICENSE file * /
* for ... |
8f2dcc42920158f3a303ddd97e5c3ea6833ed8e256dd8daa2feaba0a40c24df3 | garrigue/lablgl | lesson4.ml |
* This code was created by 99
* If you 've found this code useful , please let me know .
*
* Visit Jeff at /
*
* Ported to O'Caml / lablglut by 8/02
* For port - specific issues , comments , etc . , please
* contact
* This code was created by Jeff Molofee '99
* If you've found this c... | null | https://raw.githubusercontent.com/garrigue/lablgl/d76e4ac834b6d803e7a6c07c3b71bff0e534614f/LablGlut/examples/nehe/lesson4.ml | ocaml | Draw the triangle
Draw the square
Handle window reshape events
Handle keyboard events
Draw the scene whever idle |
* This code was created by 99
* If you 've found this code useful , please let me know .
*
* Visit Jeff at /
*
* Ported to O'Caml / lablglut by 8/02
* For port - specific issues , comments , etc . , please
* contact
* This code was created by Jeff Molofee '99
* If you've found this c... |
1a6d5652ace573a2d936cd3d7115d9a8880bd721ea9477458af76e4f58869d8f | erlang/erlide_kernel | erlide_builder_slave.erl | %%% ******************************************************************************
Copyright ( c ) 2009 and others .
%%% 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 avai... | null | https://raw.githubusercontent.com/erlang/erlide_kernel/763a7fe47213f374b59862fd5a17d5dcc2811c7b/common/apps/erlide_builder/src/erlide_builder_slave.erl | erlang | ******************************************************************************
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:
************************... | Copyright ( c ) 2009 and others .
-v10.html
Author :
-module(erlide_builder_slave).
-behaviour(gen_server).
-define(DEBUG , 1 ) .
-include_lib("erlide_common/include/erlide_dbglog.hrl").
-export([
start/2,
stop/1,
build_full/1,
build_incremental/2,
clean/1
]).
-export([i... |
b48430756a37a6dceacf857fef663e3de325eb77d1a9f7bda916adcb3beee9b8 | LexiFi/menhir | default.ml | (******************************************************************************)
(* *)
(* *)
... | null | https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/default.ml | ocaml | ****************************************************************************
file LICEN... |
, Paris
, PPS , Université Paris Diderot
. All rights reserved . This file is distributed under the
terms of the GNU General Public License version 2 , as... |
e762f82867886ee7b6c1c2778c23b425296ae013d2a0bc11535374e55c292668 | Kakadu/fp2022 | REPL.ml | * Copyright 2022 - 2023 , studokim and contributors
* SPDX - License - Identifier : LGPL-3.0 - or - later
open Lua_lib
* Reads file contents and executes them as Repl does ;
fails if the file does n't exist .
fails if the file doesn't exist. *)
let interpret_file filepath =
if Sys.file_exists filepath
... | null | https://raw.githubusercontent.com/Kakadu/fp2022/4250001b7af5e38ab92c9625adbdc781439c562d/lua/REPL.ml | ocaml | * Entry point.
Parses args, then runs repl-mode or single-file-mode. | * Copyright 2022 - 2023 , studokim and contributors
* SPDX - License - Identifier : LGPL-3.0 - or - later
open Lua_lib
* Reads file contents and executes them as Repl does ;
fails if the file does n't exist .
fails if the file doesn't exist. *)
let interpret_file filepath =
if Sys.file_exists filepath
... |
c3d50c6332f7ac5280900512043c805ac8b49fc85c534040596a313ff8172f12 | ygmpkk/house | SplayHeap.hs | Copyright ( c ) 1999 .
-- See COPYRIGHT file for terms and conditions.
module SplayHeap (
-- type of splay heaps
instance of Coll / CollX , OrdColl / OrdCollX
CollX operations
empty,single,fromSeq,insert,insertSeq,union,unionSeq,delete,deleteAll,
deleteSeq,null,size,member,count,
-- Coll op... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/hslibs/data/edison/Coll/SplayHeap.hs | haskell | See COPYRIGHT file for terms and conditions.
type of splay heaps
Coll operations
OrdCollX operations
other supported operations
documentation
Adapted from
Section 5.4.
be used in conjunction with MinHeap.
could specialize calls to filterLT/filterGT
the remaining functions all use defaults
instance declar... | Copyright ( c ) 1999 .
module SplayHeap (
instance of Coll / CollX , OrdColl / OrdCollX
CollX operations
empty,single,fromSeq,insert,insertSeq,union,unionSeq,delete,deleteAll,
deleteSeq,null,size,member,count,
toSeq, lookup, lookupM, lookupAll, lookupWithDefault, fold, fold1,
filter, partit... |
b24996abdb266d32f6cf369281f1ba28a4e56060f77037e790fd6a1957661c92 | facebook/infer | Process.ml |
* Copyright ( c ) Facebook , Inc. and its 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) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/facebook/infer/b1024aade8b9c7d7ba88ca381a5b8610534ddf02/infer/src/base/Process.ml | ocaml | * Given a command to be executed, create a process to execute this command, and wait for it to
terminate. The standard out and error are not redirected. If the command fails to execute, print
an error message and exit.
redirect producer's stdout to pipe_out
close producer's copy of pipe ends
exec producer... |
* Copyright ( c ) Facebook , Inc. and its 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) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... |
29572e827b6a34d62b460029d3da7076d015179011628b04f3180cbd5389a914 | gebi/jungerl | esmb_rpc.erl | %%% --------------------------------------------------------------------
%%% File : esmb_rpc.erl
Created : 20 Sep 2004 by < >
%%% Purpose :
%%%
%%% @doc Implementation of DCE/RPC over SMB.
@author < >
" 1.1 : RPC " , Spec . C706 from
%%% <a href="">
%%% www.opengroup.org</a>
" / RPC ove... | null | https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/esmb/src/esmb_rpc.erl | erlang | --------------------------------------------------------------------
File : esmb_rpc.erl
Purpose :
@doc Implementation of DCE/RPC over SMB.
<a href="">
www.opengroup.org</a>
@end
--------------------------------------------------------------------
For testing
===================================... | Created : 20 Sep 2004 by < >
@author < >
" 1.1 : RPC " , Spec . C706 from
" / RPC over SMB " , , ISBN-1 - 57870 - 150 - 3 .
$ Id$
-module(esmb_rpc).
-export([rpc_samr_connect/3, rpc_samr_close/3, rpc_samr_enum_doms/3,
rpc_samr_lookup_doms/4, rpc_samr_lookup_names/5,
rpc_samr_open_domain/5, r... |
156cb61f4bfe2c8fcf439ec820b4966d9f564a76329cca837de575d2d5cf1460 | cirodrig/triolet | Structure.hs | | Structural type computation .
This module computes what is really in a data type , after we strip off
its type information . It is \"structural\ " in the sense that two types
look the same after transformation iff they have the same contents .
The ' Structure ' computed from a type by ' computeStructure '... | null | https://raw.githubusercontent.com/cirodrig/triolet/e515a1dc0d6b3e546320eac7b71fb36cea5b53d0/src/program/SystemF/Datatypes/Structure.hs | haskell | | The structure of the outermost term of a data type.
^ A primitive type
^ Special case for a
@Stored t@ type
^ An array
# UNPACK #
^ An algebraic data type
# UNPACK #
^ A universally quantified type
^ Variable structure
^ A type having no values
| An algebraic data structure
| Whether an algebraic data ty... | | Structural type computation .
This module computes what is really in a data type , after we strip off
its type information . It is \"structural\ " in the sense that two types
look the same after transformation iff they have the same contents .
The ' Structure ' computed from a type by ' computeStructure '... |
44f09eee822bcdc05a4d73334c18d4adaa7c2ed69380b5e7c204f41a1694534b | cblp/stack-offline | Operator.hs | # LANGUAGE PatternSynonyms #
# LANGUAGE TypeOperators #
module Data.Tuple.Operator ((:-), pattern (:-)) where
type a :- b = (a, b)
pattern a :- b = (a, b)
infixr 1 :-
| null | https://raw.githubusercontent.com/cblp/stack-offline/94215104d0cd295e39815db307513a5cc959e02f/tuple-operator/Data/Tuple/Operator.hs | haskell | # LANGUAGE PatternSynonyms #
# LANGUAGE TypeOperators #
module Data.Tuple.Operator ((:-), pattern (:-)) where
type a :- b = (a, b)
pattern a :- b = (a, b)
infixr 1 :-
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.