_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
5e4707c29e7e401ba026bf071bcdac50f3f668c2f0c813bd435e630446ad27eb
haskus/packages
Helper.hs
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # module Haskus.Binary.Bits.Helper ( bitOffset , byteOffset ) where import Haskus.Binary.Bits.Shift import Haskus.Binary.Bits.Mask | Compute bit offset ( equivalent to x ` mod ` 8 but faster ) bitOffset :: Word -> Word # INLINABLE bitOffset # bitOffset n ...
null
https://raw.githubusercontent.com/haskus/packages/40ea6101cea84e2c1466bc55cdb22bed92f642a2/haskus-binary/src/lib/Haskus/Binary/Bits/Helper.hs
haskell
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # module Haskus.Binary.Bits.Helper ( bitOffset , byteOffset ) where import Haskus.Binary.Bits.Shift import Haskus.Binary.Bits.Mask | Compute bit offset ( equivalent to x ` mod ` 8 but faster ) bitOffset :: Word -> Word # INLINABLE bitOffset # bitOffset n ...
42c21fca7e344a81a1792e33cc8308ed1f50f61afe102252dd81e6ba88f94d8f
avsm/platform
breakout.ml
--------------------------------------------------------------------------- Copyright ( c ) 2009 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/react.1.2.1%2Bdune/test/breakout.ml
ocaml
Breakout clone. Logs values, signals and events to stderr. Vectors. Rectangles. lower left corner and extents. Draw with ANSI escape sequences. Keyboard and time events. time event. keyboard event. suppress input echo and buffering. updates primitive events. Game simulation and logic. Collision...
--------------------------------------------------------------------------- Copyright ( c ) 2009 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
7b86d89f6dba12695450af83071dc2d3272023601ae884ab98c507d19bc28bf3
marianoguerra/tanodb
tanodb_coverage_fsm_sup.erl
-module(tanodb_coverage_fsm_sup). -behavior(supervisor). -export([start_link/0, start_fsm/1]). -export([init/1]). -ignore_xref([start_link/0, init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> CoverageFSM = {undefined, {tanodb_coverage_fsm, start_li...
null
https://raw.githubusercontent.com/marianoguerra/tanodb/7b8bb0ddc0fd1e67b2522cff8a0dac40b412acdb/apps/tanodb/src/tanodb_coverage_fsm_sup.erl
erlang
-module(tanodb_coverage_fsm_sup). -behavior(supervisor). -export([start_link/0, start_fsm/1]). -export([init/1]). -ignore_xref([start_link/0, init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> CoverageFSM = {undefined, {tanodb_coverage_fsm, start_li...
33035510b9f3deadd456298eba772aa31211fada3e4ffe1e9c50eb5802978dd1
ghc/testsuite
T5329.hs
# LANGUAGE UnicodeSyntax # {-# LANGUAGE EmptyDataDecls #-} # LANGUAGE TypeOperators # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE GADTs #-} # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module T5329 where data PZero data PSucc p data Peano...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/simplCore/should_compile/T5329.hs
haskell
# LANGUAGE EmptyDataDecls # # LANGUAGE GADTs #
# LANGUAGE UnicodeSyntax # # LANGUAGE TypeOperators # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # module T5329 where data PZero data PSucc p data Peano n where PZero ∷ Peano PZero PSucc ∷ IsPeano p ⇒ Pe...
a863f019ac624df1f8b82e8f7622e6ce59f5e17b3d96bfa8c01c5801ce2eabb7
kevinmershon/copy-trader
event.clj
(ns copy-trader.websocket.event) (defmulti on-event (fn [_uri {:keys [message-code _payload]}] message-code)) (defmethod on-event :default [_uri _msg] :not-implemented) TODO -- implement too - many - clients error handler (def ONE-DAY (* 1000 60 60 24))
null
https://raw.githubusercontent.com/kevinmershon/copy-trader/3262a1b4a2dd7e145a5673b6e6c22f94ab4f4e72/src/clj/copy_trader/websocket/event.clj
clojure
(ns copy-trader.websocket.event) (defmulti on-event (fn [_uri {:keys [message-code _payload]}] message-code)) (defmethod on-event :default [_uri _msg] :not-implemented) TODO -- implement too - many - clients error handler (def ONE-DAY (* 1000 60 60 24))
328793b005a2fcab8660e842ad49e78ab7338ddb36f6ed2c2579a2d10f3c3f7a
ralsei/graphite
faceting.rkt
#lang racket (require data-frame graphite rackunit racket/runtime-path "util.rkt") (define-runtime-path facet-1-data "./test-data/facet-1.dat") (define facet-1-df (begin (random-seed 888) (let ([int-data (make-data-frame)] [xs (build-vector 1000 (λ (_) (* (random) 30)))] ...
null
https://raw.githubusercontent.com/ralsei/graphite/303becd5036f9181f729a4c480dbf9fecb2a50bc/graphite-test/faceting.rkt
racket
stress test. this one takes a while to render OOMs the test server, so commented out unless running locally... (define-runtime-path facet-4-data "./test-data/facet-4.dat") (define facet-4 (graph #:data facet-1-df (bar))) (check-draw-steps facet-4 facet-4-data))
#lang racket (require data-frame graphite rackunit racket/runtime-path "util.rkt") (define-runtime-path facet-1-data "./test-data/facet-1.dat") (define facet-1-df (begin (random-seed 888) (let ([int-data (make-data-frame)] [xs (build-vector 1000 (λ (_) (* (random) 30)))] ...
7458bd1eeaf26662a4cc0ead748209576a3dbd1f2b9b86616201f287fd4a1e50
glv/snergly
grid.cljc
(ns snergly.grid # ? (: [ clojure.spec : as s ] : cljs [ cljs.spec : as s ] ) [clojure.spec.alpha :as s] [snergly.util :as util] [clojure.set :as set] # ? (: [ clojure.spec.gen : as gen ] ; :cljs [cljs.spec.impl.gen :as gen]) [clojure.spec.gen.al...
null
https://raw.githubusercontent.com/glv/snergly/2f09860b3b3f8d2a58d8a2b2b63184c4a7240f05/src/main/snergly/grid.cljc
clojure
:cljs [cljs.spec.impl.gen :as gen]) If we don't want other namespaces to have to use the keywords from this namespace to gather information from these maps, what other methods would we need to provide? For snergly.algorithms: * grid, w: (g/grid-set-algorithm grid "algorithm-name") * √ cell, r: (g/cell-neigh...
(ns snergly.grid # ? (: [ clojure.spec : as s ] : cljs [ cljs.spec : as s ] ) [clojure.spec.alpha :as s] [snergly.util :as util] [clojure.set :as set] # ? (: [ clojure.spec.gen : as gen ] [clojure.spec.gen.alpha :as gen] )) * chgs , r : ( g / cha...
592cac4f329a9c06dab3e0d84b271a5a252dbafe784c834494d77878252dafe9
melange-re/melange
matching_polyfill.mli
Copyright ( C ) 2020- Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ...
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/core/matching_polyfill.mli
ocaml
Copyright ( C ) 2020- Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later version ...
a03c8cf9a9d54dc57c1cc2837a4385c63ec4e2f4c3dce27cf96a34f598b9090d
karamellpelle/grid
Types.hs
module OpenGL.GLFW.Types ( GLvoid, GLchar, GLenum, GLboolean, GLbitfield, GLbyte, GLshort, GLint, GLsizei, GLubyte, GLushort, GLuint, GLfloat, GLclampf, GLfixed, GLclampx, GLintptr, GLsizeiptr, ) where import Foreign.C.Types type GLvoid = ...
null
https://raw.githubusercontent.com/karamellpelle/grid/56729e63ed6404fd6cfd6d11e73fa358f03c386f/designer/source/OpenGL/GLFW/Types.hs
haskell
module OpenGL.GLFW.Types ( GLvoid, GLchar, GLenum, GLboolean, GLbitfield, GLbyte, GLshort, GLint, GLsizei, GLubyte, GLushort, GLuint, GLfloat, GLclampf, GLfixed, GLclampx, GLintptr, GLsizeiptr, ) where import Foreign.C.Types type GLvoid = ...
6dc664f66ff8f3ab1a073f2d7fc84d3e0bd530b77f483545ccbe5b22636785f0
songyahui/AlgebraicEffect
loop1.ml
effect Foo : (unit -> unit) effect Goo : (unit -> unit) let f () (*@ requires (true, emp, ()) @*) (*@ ensures (true, (Foo!).(Goo!).Foo?(), ()) @*) = let h = perform Foo in let g = perform Goo in h () let handler (*@ requires (true, emp, ()) @*) (*@ ensures (true, Foo^w, ()) @*) = match f () ...
null
https://raw.githubusercontent.com/songyahui/AlgebraicEffect/27688952b598a101a27523be796e8011d70b02de/src/demo/loop1.ml
ocaml
@ requires (true, emp, ()) @ @ ensures (true, (Foo!).(Goo!).Foo?(), ()) @ @ requires (true, emp, ()) @ @ ensures (true, Foo^w, ()) @
effect Foo : (unit -> unit) effect Goo : (unit -> unit) let f () = let h = perform Foo in let g = perform Goo in h () let handler = match f () with | x -> x | effect Foo k -> continue k (fun () -> perform Goo ) | effect Goo k -> continue k (fun () -> perform Foo ) ( Foo!).Foo ? ( ) h...
771fda0f156b63f59261793625d38e34b1d74840f38ae34e9c56a8e2b70a1999
funcool/octet
string.cljc
Copyright ( c ) 2015 - 2016 < > ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, this ;; list of conditions...
null
https://raw.githubusercontent.com/funcool/octet/6afe46d98717e5a538c97c5445a29686524bd0c9/src/octet/spec/string.cljc
clojure
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions ...
Copyright ( c ) 2015 - 2016 < > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXE...
c3495b77d1126e6fc1af2eff6908ed99c991de89ad731f73333b06d388e8672f
JHU-PL-Lab/jaylang
CE-1CFA09.ml
let rec bot _ = bot () let fail _ = assert false let rec c7_COEFFICIENT_1128 = 0 let rec c6_COEFFICIENT_1126 = 0 let rec c5_COEFFICIENT_1125 = 0 let rec c4_COEFFICIENT_1123 = 0 let rec c3_COEFFICIENT_1120 = 0 let rec c2_COEFFICIENT_1118 = 0 let rec c1_COEFFICIENT_1117 = 0 let rec c0_COEFFICIEN...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/484b3876986a515fb57b11768a1b3b50418cde0c/benchmark/cases/mochi_origin/termination/CE-1CFA09.ml
ocaml
let rec bot _ = bot () let fail _ = assert false let rec c7_COEFFICIENT_1128 = 0 let rec c6_COEFFICIENT_1126 = 0 let rec c5_COEFFICIENT_1125 = 0 let rec c4_COEFFICIENT_1123 = 0 let rec c3_COEFFICIENT_1120 = 0 let rec c2_COEFFICIENT_1118 = 0 let rec c1_COEFFICIENT_1117 = 0 let rec c0_COEFFICIEN...
17900c1bd6b6bc59902783f1c55ca14f3d5b3af03e6fa71933a7538780b14ca4
kowainik/github-graphql
Data.hs
module Test.Data ( githubGraphqlRepositoryId ) where import GitHub.Id (Id (..), RepositoryId) githubGraphqlRepositoryId :: RepositoryId githubGraphqlRepositoryId = Id "MDEwOlJlcG9zaXRvcnkyOTA1MDA2MzI="
null
https://raw.githubusercontent.com/kowainik/github-graphql/5ffa6fc31631bc0e2f9b5b071e340cb49002c009/test/Test/Data.hs
haskell
module Test.Data ( githubGraphqlRepositoryId ) where import GitHub.Id (Id (..), RepositoryId) githubGraphqlRepositoryId :: RepositoryId githubGraphqlRepositoryId = Id "MDEwOlJlcG9zaXRvcnkyOTA1MDA2MzI="
8bddeb23be27b2f9821b4c093fbb7612ac826c69e7f9b440b077c47268914108
m4b/elf2json
E2j_ElfProgramHeader.ml
open Elf.ProgramHeader open E2j_Json let program_header2json ph = `O [ "p_type" , to_float ph.p_type; "p_flags", to_float ph.p_flags; "p_offset", to_float ph.p_offset; "p_vaddr", to_float ph.p_vaddr; "p_paddr", to_float ph.p_paddr; "p_filesz", to_float ph.p_filesz; "p_memsz", to_float ph....
null
https://raw.githubusercontent.com/m4b/elf2json/72dfb62e797f68e4ad24cf3e74547ef91f8a1e62/lib/E2j_ElfProgramHeader.ml
ocaml
open Elf.ProgramHeader open E2j_Json let program_header2json ph = `O [ "p_type" , to_float ph.p_type; "p_flags", to_float ph.p_flags; "p_offset", to_float ph.p_offset; "p_vaddr", to_float ph.p_vaddr; "p_paddr", to_float ph.p_paddr; "p_filesz", to_float ph.p_filesz; "p_memsz", to_float ph....
1209775a0e7928bf2df2fcbd6aa30e8b36984d22cf52b405e78533272d54d224
RolfRolles/PandemicML
X86FeatureUtil.ml
open X86 open X86InternalOperand This array exists in two places , which is obviously bad . Should refactor this out of X86Random and this file , and into a common file . X86Random and this file, and into a common file. *) let x86_mnem_arr = [| Aaa; Aad; Aam; Aas; Adc; Add; Addpd; Addps; ...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/Projects/DetectVM/X86FeatureUtil.ml
ocaml
Since the encoder doesn't handle these encodings (due to their relative addressing), we include them manually.
open X86 open X86InternalOperand This array exists in two places , which is obviously bad . Should refactor this out of X86Random and this file , and into a common file . X86Random and this file, and into a common file. *) let x86_mnem_arr = [| Aaa; Aad; Aam; Aas; Adc; Add; Addpd; Addps; ...
09825bf93957c462853739bf301a08a65ffbc09262ff577962b44a8f71482ea8
LambdaHack/LambdaHack
LoopM.hs
-- | The main loop of the server, processing human and computer player -- moves turn by turn. module Game.LambdaHack.Server.LoopM ( loopSer #ifdef EXPOSE_INTERNAL -- * Internal operations , factionArena, arenasForLoop, handleFidUpd, loopUpd, endClip , manageCalmAndDomination, applyPeriodicLevel , handleTraj...
null
https://raw.githubusercontent.com/LambdaHack/LambdaHack/57007a41e02f8c13e872acc23af2ff6ec00f531f/engine-src/Game/LambdaHack/Server/LoopM.hs
haskell
| The main loop of the server, processing human and computer player moves turn by turn. * Internal operations | Start a game session, including the clients, and then loop, communicating with the clients. The loop is started in server state that is empty, see 'emptyStateServer'. ^ player-supplied server options ...
module Game.LambdaHack.Server.LoopM ( loopSer #ifdef EXPOSE_INTERNAL , factionArena, arenasForLoop, handleFidUpd, loopUpd, endClip , manageCalmAndDomination, applyPeriodicLevel , handleTrajectories, hTrajectories, advanceTrajectory , handleActors, hActors, handleUIunderAI, dieSer, restartGame #endif ) where...
963184dc85a0f7d04ea1aa21b90db4e369b465daad22864674512d3260470d65
liquidz/antq
github_action_test.clj
(ns antq.upgrade.github-action-test (:require [antq.constant.github-action :as const.gh-action] [antq.dep.github-action :as dep.gha] [antq.record :as r] [antq.test-helper :as h] [antq.upgrade :as upgrade] [antq.upgrade.github-action] [clojure.java.io :as io] [clojure.test :as t])) (def ^:priv...
null
https://raw.githubusercontent.com/liquidz/antq/638cde7681128e8e4a540d9160571241e2f6bc17/test/antq/upgrade/github_action_test.clj
clojure
(ns antq.upgrade.github-action-test (:require [antq.constant.github-action :as const.gh-action] [antq.dep.github-action :as dep.gha] [antq.record :as r] [antq.test-helper :as h] [antq.upgrade :as upgrade] [antq.upgrade.github-action] [clojure.java.io :as io] [clojure.test :as t])) (def ^:priv...
e2b47ef39ebced3da08b0523e73db1b13c2975f4f2c3f046b9b23316daf16988
rkallos/wrek
wrek_vert_t.erl
-module(wrek_vert_t). -export([ new/0, cancel/1, fail/2, from_defn/1, has_succeeded/1, is_finished/1, succeed/2, to_list/1, % getters args/1, deps/1, dir/1, id/1, kv/1, module/1, name/1, reason/1, status/1, timeout/1, % setters set_arg...
null
https://raw.githubusercontent.com/rkallos/wrek/3859e9efdf21227e6e8e0ea81095b229eceb6641/src/wrek_vert_t.erl
erlang
getters setters private
-module(wrek_vert_t). -export([ new/0, cancel/1, fail/2, from_defn/1, has_succeeded/1, is_finished/1, succeed/2, to_list/1, args/1, deps/1, dir/1, id/1, kv/1, module/1, name/1, reason/1, status/1, timeout/1, set_args/2, set_deps/2, set...
0cba433b2d91888ab412fffc20f4cd160cb031b31b22c6de59cc747df6b5d24c
spawnfest/eep49ers
wxActivateEvent.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxActivateEvent.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2008 - 2020 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(wxActivateEvent). -include("wxe.hrl"). -export([getActive/1]). -export([getId/1,getSkipped/1,getTimestamp/1...
983fecaa8d00d3ffaac6da0ca9aaf84289d917fefb724773d15f0d3bde0f46d7
hiroshi-unno/coar
problem.ml
open Core open Graph open Common.Ext open Ast open Ast.LogicOld let nondet_prefix = "#nondet" cutpoint and transition = string * command * string and command = Skip | Assume of LogicOld.Formula.t | Subst of (Ident.tvar * LogicOld.Sort.t) * LogicOld.Term.t | Seq of command * command | Choice of command * command type...
null
https://raw.githubusercontent.com/hiroshi-unno/coar/90a23a09332c68f380efd4115b3f6fdc825f413d/lib/LTS/problem.ml
ocaml
: Sig.ORDERED_TYPE_DFT print_endline ("eliminating edge (" ^ s ^ ", " ^ d ^ ")"); ignore start node ignore vertex with a self-loop print_endline ("eliminating vertex " ^ v); ignore start node ignore vertex with a self-loop print_endline ("eliminating vertex " ^ v); ignore start node ignore vertex with a self-loop...
open Core open Graph open Common.Ext open Ast open Ast.LogicOld let nondet_prefix = "#nondet" cutpoint and transition = string * command * string and command = Skip | Assume of LogicOld.Formula.t | Subst of (Ident.tvar * LogicOld.Sort.t) * LogicOld.Term.t | Seq of command * command | Choice of command * command type...
c2976f53af4be1735ea171064f119af1693f899349b1e8eac6104e91a42c005a
jeffshrager/biobike
json-builder.lisp
(in-package :com.gigamonkeys.json.parser) Parser for JSON syntax ( < / > ) (defvar *empty-object* (make-symbol "EMPTY-OBJECT")) (defchartype string-char '(not (member #\\ #\"))) (defchartype digit1-9 '(member #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9)) (defchartype digit '(or (eql #\0) digit1-9)) (defchartype he...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/ThirdParty/monkeylib/json/json-builder.lisp
lisp
Main productions
(in-package :com.gigamonkeys.json.parser) Parser for JSON syntax ( < / > ) (defvar *empty-object* (make-symbol "EMPTY-OBJECT")) (defchartype string-char '(not (member #\\ #\"))) (defchartype digit1-9 '(member #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9)) (defchartype digit '(or (eql #\0) digit1-9)) (defchartype he...
70ad4defc3b734981887eb4a13ebbe89a87e28d17b808fe00c93d6809561426e
codinuum/cca
label.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/c22bbe5b4d8824695a5844b23309a8652d371e70/src/ast/analyzing/langs/verilog/parsing/src/label.ml
ocaml
specparam assignment trans repetition trans repetition trans repetition
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
8c9188cf5df18f84a889c91c2fbe0edf4257bf9e26f0170fd65cfad97f4ebef1
mmontone/cl-xul
test.lisp
(in-package :xul-test) (defparameter *test-app* (make-instance 'xul-application :name "testapp" :javascripts (list (asdf::system-relative-pathname :cl-xul #p"test/test-app.js")) :xul (xul (window (:title "Test application" :width "500" :height "500") (menu-bar (:id "...
null
https://raw.githubusercontent.com/mmontone/cl-xul/049c8664bb58d177c71d93ac5b5e1a2ba9b9469b/test/test.lisp
lisp
(textbox (:id "user"))
(in-package :xul-test) (defparameter *test-app* (make-instance 'xul-application :name "testapp" :javascripts (list (asdf::system-relative-pathname :cl-xul #p"test/test-app.js")) :xul (xul (window (:title "Test application" :width "500" :height "500") (menu-bar (:id "...
6f09e7e9395b80e31f7a30b53d7a50d18b107dcc22fdfabbedfa846141ed1c03
alphagov/govuk-guix
signon.scm
(define-module (gds services govuk signon) #:use-module (srfi srfi-1) #:use-module (ice-9 match) #:use-module (ice-9 rdelim) #:use-module (srfi srfi-26) #:use-module (guix records) #:use-module (guix gexp) #:use-module (guix build utils) #:use-module (gnu services) #:use-module (gnu services shepherd)...
null
https://raw.githubusercontent.com/alphagov/govuk-guix/dea8c26d2ae882d0278be5c745e23abb25d4a4e2/gds/services/govuk/signon.scm
scheme
If #f, the default pattern will be used TODO Ideally this would not be in this module, as it's not (service-extension govuk-tailon-service-type (lambda (parameters) (let ((log-files (apply generic-rails-app-log-file...
(define-module (gds services govuk signon) #:use-module (srfi srfi-1) #:use-module (ice-9 match) #:use-module (ice-9 rdelim) #:use-module (srfi srfi-26) #:use-module (guix records) #:use-module (guix gexp) #:use-module (guix build utils) #:use-module (gnu services) #:use-module (gnu services shepherd)...
1cd82b5c3f90344f5f1f4953b1b85829d43abdd1343c7ed14241bf4b77cf96f0
basho/rebar
rebar_erlydtl_compiler.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- %% ex: ts=4 sw=4 et %% ------------------------------------------------------------------- %% rebar : Erlang Build Tools %% Copyright ( c ) 2009 ( ) , ( ) %% %% Permission is hereby granted, free of charge, to any person obt...
null
https://raw.githubusercontent.com/basho/rebar/cd55176009df794f506771fd574de9303ff2a42e/src/rebar_erlydtl_compiler.erl
erlang
ex: ts=4 sw=4 et ------------------------------------------------------------------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sel...
-*- erlang - indent - level : 4;indent - tabs - mode : nil -*- rebar : Erlang Build Tools Copyright ( c ) 2009 ( ) , ( ) in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies ...
6b6d8ac405530db3feb508fa59c4f500d7457273393baeda3e03f878d95fb971
micahcantor/racket-lox
function.rkt
#lang typed/racket/base (require "stmt.rkt") (require "env.rkt") (provide (all-defined-out)) (struct function ([declaration : FunDecl] [closure : Env] [is-initalizer? : Boolean])) (define-type Function function) (struct return exn ([value : Any])) (define-type Return return) (: make-return (-> Any Return)) (define...
null
https://raw.githubusercontent.com/micahcantor/racket-lox/6bc0b4b3af39977cac34478c9ba8874d1379dcdf/src/function.rkt
racket
#lang typed/racket/base (require "stmt.rkt") (require "env.rkt") (provide (all-defined-out)) (struct function ([declaration : FunDecl] [closure : Env] [is-initalizer? : Boolean])) (define-type Function function) (struct return exn ([value : Any])) (define-type Return return) (: make-return (-> Any Return)) (define...
73bf578be709ea540b769eab9e550490cc8b5b4c87afe9249cfe21da2c225925
mzp/websocket-ocaml
frame.ml
open Base open ExtString type t = Text of string let rec unpack s = match s with parser [< '\x00' = Stream.next; xs = Parsec.until '\xFF'>] -> Text (String.implode xs) | [< >] -> unpack s let pack = function | Text s -> Printf.sprintf "\x00%s\xFF" s
null
https://raw.githubusercontent.com/mzp/websocket-ocaml/b584bd20dfe6d95f65bc6e1ba8838b1ecfa8ec0e/webSocket/frame.ml
ocaml
open Base open ExtString type t = Text of string let rec unpack s = match s with parser [< '\x00' = Stream.next; xs = Parsec.until '\xFF'>] -> Text (String.implode xs) | [< >] -> unpack s let pack = function | Text s -> Printf.sprintf "\x00%s\xFF" s
fe2f5fcc9357b7b15d8a6091c8384e435f4e88bb5ee5eef6f9ffe61e782baef1
biocad/cobot
Main.hs
module Main where import Bio.Chain (Chain, fromList) import Bio.Chain.Alignment (AffineGap (..), GlobalAlignment (..), LocalAlignment (..), ...
null
https://raw.githubusercontent.com/biocad/cobot/44a3f017a8630812e45f7ca2dba1ca4f20f05c35/bench/Main.hs
haskell
module Main where import Bio.Chain (Chain, fromList) import Bio.Chain.Alignment (AffineGap (..), GlobalAlignment (..), LocalAlignment (..), ...
6f9ed502b74ea6892f167eb12b51e7bffea5d98d95c64dd170310f1377708705
janestreet/async_smtp
smtp_extension.mli
open! Core type t = | Start_tls | Auth of string list | Mime_8bit_transport | Other of string [@@deriving compare, sexp, enumerate] include Equal.S with type t := t val of_string : string -> t val to_string : t -> string
null
https://raw.githubusercontent.com/janestreet/async_smtp/c2c1f8b7b27f571a99d2f21e8a31ce150fbd6ced/types/smtp_extension.mli
ocaml
open! Core type t = | Start_tls | Auth of string list | Mime_8bit_transport | Other of string [@@deriving compare, sexp, enumerate] include Equal.S with type t := t val of_string : string -> t val to_string : t -> string
e3cb55ea703a9d0710e24c13621613d21a9f99381df1ba1102d67bd30948623f
ocaml-community/obus
oBus_bus.mli
* oBus_bus.mli * ------------ * Copyright : ( c ) 2008 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * oBus_bus.mli * ------------ * Copyright : (c) 2008, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml imple...
null
https://raw.githubusercontent.com/ocaml-community/obus/8d38ee6750587ae6519644630b75d53a0a011acd/src/protocol/oBus_bus.mli
ocaml
* Message buses management * [system ?switch ()] returns a connection to the system message bus. As for {!session}, subsequent calls to {!system} will return the same bus. However, if the connection is closed or crashes, {!system} will try to reopen it. * {6 Creation} * [get_peer bus name] returns ...
* oBus_bus.mli * ------------ * Copyright : ( c ) 2008 , < > * Licence : BSD3 * * This file is a part of obus , an ocaml implementation of D - Bus . * oBus_bus.mli * ------------ * Copyright : (c) 2008, Jeremie Dimino <> * Licence : BSD3 * * This file is a part of obus, an ocaml imple...
857e5e88c14b3e0a3ca5b28f5b831dce91cfe221f96dcfaf438c8d3ce49a1c2f
ailisp/Graphic-Forms
progress-bar.lisp
(in-package :graphic-forms.uitoolkit.widgets) ;;; ;;; helper functions ;;; (declaim (inline pb-get-pos)) (defun pb-get-pos (p-bar) "Returns the current position of a progress bar." (gfs::send-message (gfs:handle p-bar) gfs::+pbm-getpos+ 0 0)) (defun pb-get-range (p-bar) "Returns the range of a prog...
null
https://raw.githubusercontent.com/ailisp/Graphic-Forms/1e0723d07e1e4e02b8ae375db8f3d65d1b444f11/src/uitoolkit/widgets/progress-bar.lisp
lisp
helper functions methods primary progress-bar styles styles that can be combined
(in-package :graphic-forms.uitoolkit.widgets) (declaim (inline pb-get-pos)) (defun pb-get-pos (p-bar) "Returns the current position of a progress bar." (gfs::send-message (gfs:handle p-bar) gfs::+pbm-getpos+ 0 0)) (defun pb-get-range (p-bar) "Returns the range of a progress bar." (cffi:with-foreign...
0f1cacd13bef81e6710120acedb8fe56204a7b5ebff49e7d65962d4a08752333
batebobo/fp1819
15-repeat-lists.rkt
#lang racket (require rackunit) (require rackunit/text-ui) Искаме да създадем поток , като повтаряме няколко списъка (define tests (test-suite "repeat lists tests" (test-case "" (check-equal? (stream->list (stream-take (repeat-lists '(1 2) '(3 4)) 7)) '(1 2 3 4 1 2 3))) ) ) (run-tests tests 'verbose) ...
null
https://raw.githubusercontent.com/batebobo/fp1819/2061b7e62a1a9ade3a5fff9753f9fe0da5684275/scheme/7/15-repeat-lists.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) Искаме да създадем поток , като повтаряме няколко списъка (define tests (test-suite "repeat lists tests" (test-case "" (check-equal? (stream->list (stream-take (repeat-lists '(1 2) '(3 4)) 7)) '(1 2 3 4 1 2 3))) ) ) (run-tests tests 'verbose) ...
53ff78a5504d5cea50ede26890819a20a6fb3086fd860b7bfcbf1387eec7b132
yakaz/yamerl
yamerl_constr.erl
%- Copyright ( c ) 2012 - 2014 Yakaz Copyright ( c ) 2016 - 2022 < > % All rights reserved. % % Redistribution and use in source and binary forms, with or without % modification, are permitted provided that the following conditions % are met: 1 . Redistributions of source code must retain the above copyright...
null
https://raw.githubusercontent.com/yakaz/yamerl/bf9d8b743bfc9775f2ddad9fb8d18ba5dc29d3e1/src/yamerl_constr.erl
erlang
- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documen...
Copyright ( c ) 2012 - 2014 Yakaz Copyright ( c ) 2016 - 2022 < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ` ` AS IS '' AND IMPLIED WARRANTIES OF MERC...
894aee4ca43facfdd7b953178a5777faa13182042eab5dbc4ba06d4b2c1a6c7c
masaeedu/selectivemonoidal
Decisive.hs
module Decisive where import Data.Void (Void) -- Represents a context with static choice class Functor f => Decide f where decide :: f (Either a b) -> Either (f a) (f b) -- Choosing among no options class Decide f => Decisive f where force :: f Void -> Void
null
https://raw.githubusercontent.com/masaeedu/selectivemonoidal/39d32c3743889bd9ce05b04ed4029dc7528dc48d/src/Decisive.hs
haskell
Represents a context with static choice Choosing among no options
module Decisive where import Data.Void (Void) class Functor f => Decide f where decide :: f (Either a b) -> Either (f a) (f b) class Decide f => Decisive f where force :: f Void -> Void
6cca0b6daa6eda4fe6cfff16b25b45d8eee06338c88d6bd5810e81cc77bf0ebb
janestreet/core
zone_intf.ml
(** Time-zone handling. *) open! Import * The internal time representation of [ Zone.t ] . This is a tiny subset of [ Time0_intf . S ] , see that interface for details such as the meaning of [ Span ] and [ Date_and_ofday ] . The name of the interface reflects the fact that the interface only gives you ac...
null
https://raw.githubusercontent.com/janestreet/core/4b6635d206f7adcfac8324820d246299d6f572fe/core/src/zone_intf.ml
ocaml
* Time-zone handling. * The type of a time-zone. bin_io and sexp representations of Zone.t are the name of the zone, and not the full data that is read from disk when Zone.find is called. The full Zone.t is reconstructed on the receiving/reading side by reloading the zone file from disk. Any...
open! Import * The internal time representation of [ Zone.t ] . This is a tiny subset of [ Time0_intf . S ] , see that interface for details such as the meaning of [ Span ] and [ Date_and_ofday ] . The name of the interface reflects the fact that the interface only gives you access to the seconds o...
db86946caad54e14828d6ed5f6fb3dbe7278ca593257bc57b206256a593e686f
didierverna/tfm
font.lisp
;;; font.lisp --- Font Information Copyright ( C ) 2018 , 2019 Author : < > This file is part of TFM . ;; Permission to use, copy, modify, and distribute this software for any ;; purpose with or without fee is hereby granted, provided that the above ;; copyright notice and this permission notice appear i...
null
https://raw.githubusercontent.com/didierverna/tfm/192c10b04eaec381638bfcf9bbea66b208141f5a/core/src/font.lisp
lisp
font.lisp --- Font Information Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABI...
Copyright ( C ) 2018 , 2019 Author : < > This file is part of TFM . THIS SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS ALL WARRANTIES ANY SPECIAL , DIRECT , INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE , DATA OR PROFITS , WHETHER IN AN (i...
43ce3fd5fe925f3bce772939b9f930f68ca8277a51da059944c54f2d00652d70
moonpolysoft/dynomite
dmerkle_test.erl
-include_lib("eunit/include/eunit.hrl"). test_cleanup() -> file:delete(data_file()), file:delete(data_file(1)). open_and_close_test() -> test_cleanup(), {ok, Pid} = open(data_file(), 256), Merkle = get_state(Pid), Root = Merkle#dmerkle.root, error_logger:info_msg("root ~p~n", [Root]), ?assertEqual(?h...
null
https://raw.githubusercontent.com/moonpolysoft/dynomite/a5618dcbe17b16cefdc9c567f27a1f4445aee005/etest/dmerkle_test.erl
erlang
[] = Diff, swapping trees may not be something we want to support nomo swap_tree_test() -> test_cleanup(), update(lists:concat(["key", N]), lists:concat(["value", N]), Tree) update(lists:concat(["key", N]), lists:concat(["value", N]), Tree) true = lists:all(fun(N) -> Hash = hash(lists:con...
-include_lib("eunit/include/eunit.hrl"). test_cleanup() -> file:delete(data_file()), file:delete(data_file(1)). open_and_close_test() -> test_cleanup(), {ok, Pid} = open(data_file(), 256), Merkle = get_state(Pid), Root = Merkle#dmerkle.root, error_logger:info_msg("root ~p~n", [Root]), ?assertEqual(?h...
a70a84337536b08df2b7445fe3d0c86a407b9faba80049d6bbb7bd5d9f62fcb6
orx/ocaml-orx
orx.mli
type camera type obj module Status : sig * { 1 Specialization of { ! } values for orx } type 'ok result = ('ok, [ `Orx ]) Stdlib.result (** Errors are all grouped as [`Orx]. *) type t = unit result (** Status of a side effect only operation. *) val ok : t (** Success! *) val error : t (** Not succ...
null
https://raw.githubusercontent.com/orx/ocaml-orx/169db0178c7bdce8e4e916050150aa3323760c25/src/lib/orx.mli
ocaml
* Errors are all grouped as [`Orx]. * Status of a side effect only operation. * Success! * Not success! * Convenience function to open the [`Orx] type to make composing results from other libraries easier. * [get result] is [()] if [result] is [Ok ()], otherwise it raises {!Invalid_argument}. * [get_o...
type camera type obj module Status : sig * { 1 Specialization of { ! } values for orx } type 'ok result = ('ok, [ `Orx ]) Stdlib.result type t = unit result val ok : t val error : t val open_error : 'ok result -> ('ok, [> `Orx ]) Stdlib.result val get : t -> unit val get_ok : 'ok result -> 'ok ...
0445c87dcabe49eafd619c453b51f5add098c1adec1d6fe81f310d23073396f5
clojure-interop/java-jdk
ZoneView.clj
(ns javax.swing.text.ZoneView "ZoneView is a View implementation that creates zones for which the child views are not created or stored until they are needed for display or model/view translations. This enables a substantial reduction in memory consumption for situations where the model being represented is ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/text/ZoneView.clj
clojure
(ns javax.swing.text.ZoneView "ZoneView is a View implementation that creates zones for which the child views are not created or stored until they are needed for display or model/view translations. This enables a substantial reduction in memory consumption for situations where the model being represented is ...
2f5498dc4cf9502f424dac53592374dbb284d8bb3a4d770c036c3471de89e98f
1Jajen1/Brokkr
Word24.hs
# LANGUAGE MagicHash # module Util.Word24 ( Word24(..) , byteSwap24 ) where import GHC.Exts newtype Word24 = Word24 Word deriving newtype (Eq, Show, Enum, Ord, Num, Real, Integral) byteSwap24 :: Word24 -> Word24 byteSwap24 (Word24 (W# w)) = Word24 $ W# (byteSwap24# w) byteSwap24# :: Word# -> Word# byteSwap24# w...
null
https://raw.githubusercontent.com/1Jajen1/Brokkr/fe56efaf450f29a5571cc34fa01f7301678f3eaf/src/Util/Word24.hs
haskell
# LANGUAGE MagicHash # module Util.Word24 ( Word24(..) , byteSwap24 ) where import GHC.Exts newtype Word24 = Word24 Word deriving newtype (Eq, Show, Enum, Ord, Num, Real, Integral) byteSwap24 :: Word24 -> Word24 byteSwap24 (Word24 (W# w)) = Word24 $ W# (byteSwap24# w) byteSwap24# :: Word# -> Word# byteSwap24# w...
2558f2e3a10072e40fc55dc2e281d15065f8b9d4ffb25fabf8985ee99e0e52bd
solidsnack/shell-escape
Bench.hs
{-# LANGUAGE OverloadedStrings #-} import Data.ByteString.Char8 (ByteString) import Criterion.Main import Data.ByteString.ShellEscape strings :: [ByteString] strings = [ "echo * $PWD" , "" , "~/Music/M.I.A. & Diplo - Piracy Funds Terrorism Vol. 1 (2004)" , "abcds" , "\x00\n\204\DE...
null
https://raw.githubusercontent.com/solidsnack/shell-escape/8a4a0e8153c5e2bcc0dc30773b0009e8f4d5e6cc/bench/Bench.hs
haskell
# LANGUAGE OverloadedStrings #
import Data.ByteString.Char8 (ByteString) import Criterion.Main import Data.ByteString.ShellEscape strings :: [ByteString] strings = [ "echo * $PWD" , "" , "~/Music/M.I.A. & Diplo - Piracy Funds Terrorism Vol. 1 (2004)" , "abcds" , "\x00\n\204\DEL" , "\x00\n\204\DELecho * $PWD" ] ...
68056c4b2642f41dc5b6aa5a98baa5aa858a78ea7f3041801f3d68ff4c08204f
ConsumerDataStandardsAustralia/validation-prototype
AccountsTest.hs
# LANGUAGE QuasiQuotes # module Web.ConsumerData.Au.LambdaBank.Banking.AccountsTest where import Control.Lens import Web.ConsumerData.Au.Api.Client import Web.ConsumerData.Au.Api.Types import Control.Monad.IO.Class (liftIO) import Data.Text (pack) import Test.Tasty (TestTree) import Test.Tast...
null
https://raw.githubusercontent.com/ConsumerDataStandardsAustralia/validation-prototype/ff63338b77339ee49fa3e0be5bb9d7f74e50c28b/consumer-data-au-lambdabank/tests/Web/ConsumerData/Au/LambdaBank/Banking/AccountsTest.hs
haskell
# LANGUAGE QuasiQuotes # module Web.ConsumerData.Au.LambdaBank.Banking.AccountsTest where import Control.Lens import Web.ConsumerData.Au.Api.Client import Web.ConsumerData.Au.Api.Types import Control.Monad.IO.Class (liftIO) import Data.Text (pack) import Test.Tasty (TestTree) import Test.Tast...
baa1d577ad416ac19d9211ba434a02bff2922361eb4193f3c29425c7f16eee16
avsm/platform
recent.mli
(* These tests are run on only the most recent version of the compiler that is explicitly supported by odoc. This allows us to test doc generation for new language features. *) module type S = sig end module type S1 = S -> S type variant = | A | B of int | C (** foo *) | D (** {e bar} *) | E of {a : ...
null
https://raw.githubusercontent.com/avsm/platform/b254e3c6b60f3c0c09dfdcde92eb1abdc267fa1c/duniverse/odoc.1.4.2/test/html/cases/recent.mli
ocaml
These tests are run on only the most recent version of the compiler that is explicitly supported by odoc. This allows us to test doc generation for new language features. * foo * {e bar} * foo * foo * bar Conjunctive types: dune compilation scheme exposes a bug in old versions of the compiler
module type S = sig end module type S1 = S -> S type variant = | A | B of int | E of {a : int} type _ gadt = | A : int gadt | C : {a : int} -> unit gadt type polymorphic_variant = [ | `A | `B of int ] type nonrec nonrec_ = int type empty_conj= X: [< `X of & 'a & int * float ] -> empty_conj type c...
217668a5e42d0bd6dd14cc01654896dc6981bb06437bbbc8adb2c66ac8b7f58d
Tim-ats-d/Laius
text.mli
type t = DotPoint of bullet * t list | Text of string and bullet = string val text : string -> t val dot_point : ?bullet:string -> t list -> t val eval : t list -> string list
null
https://raw.githubusercontent.com/Tim-ats-d/Laius/feb8336fe72751b28fa574ed9e9d3d06c9e13843/src/text.mli
ocaml
type t = DotPoint of bullet * t list | Text of string and bullet = string val text : string -> t val dot_point : ?bullet:string -> t list -> t val eval : t list -> string list
b20071d242f4c5854628f6587083eb8e0c8398fd1789efe12bb989560fcf93e6
sellout/Kilns
unification.lisp
(in-package #:kilns) This file extends the CL - Unification package with the missing pieces to allow it to unify terms in the Kell calculus (defmethod unify ((pattern process-variable) agent &optional (substitutions (make-empty-environment)) &key &allow-other-keys) (unify (intern (format nil "?~a"...
null
https://raw.githubusercontent.com/sellout/Kilns/467ba599f457812daea41a7c56f74a1ec1cdc9b2/src/unification.lisp
lisp
this is probably not necessary, but I don't understand these environments well ---------------------------------------------------------------------------- top-level match that sends off all the sub-matches, so it works a little with messages. NOTE: FIND-VARIABLE-VALUE isn't generic, so we use a different name It...
(in-package #:kilns) This file extends the CL - Unification package with the missing pieces to allow it to unify terms in the Kell calculus (defmethod unify ((pattern process-variable) agent &optional (substitutions (make-empty-environment)) &key &allow-other-keys) (unify (intern (format nil "?~a"...
0cd3c7aa9d4498931379b277bfb0f2a920cfd081b55d3667ea06375ac991085a
danielfm/bencode
list.clj
(ns bencode.type.list (:use [bencode.protocol] [bencode.utils]) (:import [java.util Set] [java.io InputStream OutputStream])) (defn- bencode-seq! "Bencodes the given sequence." [seq ^OutputStream out opts] (.write out (int \l)) (doall (map #(bencode! % out opts) seq)) (.write out (int ...
null
https://raw.githubusercontent.com/danielfm/bencode/4b47e1c94394c1b5b74171f053873a5df772a8c7/src/main/clojure/bencode/type/list.clj
clojure
(ns bencode.type.list (:use [bencode.protocol] [bencode.utils]) (:import [java.util Set] [java.io InputStream OutputStream])) (defn- bencode-seq! "Bencodes the given sequence." [seq ^OutputStream out opts] (.write out (int \l)) (doall (map #(bencode! % out opts) seq)) (.write out (int ...
6b6d53c4521484185fe96ac92e9ae15598a247dfb99d5663431e1803311922c1
imrehg/ypsilon
shape.scm
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango shape) (export pango_shape) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libpango-1.0.so.0") ...
null
https://raw.githubusercontent.com/imrehg/ypsilon/e57a06ef5c66c1a88905b2be2fa791fa29848514/sitelib/ypsilon/pango/shape.scm
scheme
[end]
#!nobacktrace Ypsilon Scheme System Copyright ( c ) 2004 - 2009 Y.FUJITA / LittleWing Company Limited . See license.txt for terms and conditions of use . (library (ypsilon pango shape) (export pango_shape) (import (rnrs) (ypsilon ffi)) (define lib-name (cond (on-linux "libpango-1.0.so.0") ...
bd19eb9347680b71313d2c9475a7963039cdd5d43d183908b09a7eff032dfb8c
ocaml-flambda/flambda-backend
test_iarray.ml
(* TEST flags = "-extension immutable_arrays_experimental" * expect *) module Iarray = Stdlib__Iarray;; external ( .:() ) : 'a iarray -> int -> 'a = "%array_safe_get";; (** Create some immutable and mutable arrays *) let iarray : int iarray = [:1;2;3;4;5:];; let ifarray : float iarray = [:1.5;2.5;3.5;4.5;5...
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/1d905beda2707698d36835ef3acd77a5992fc389/ocaml/testsuite/tests/lib-array/test_iarray.ml
ocaml
TEST flags = "-extension immutable_arrays_experimental" * expect * Create some immutable and mutable arrays * Pattern-match on some immutable arrays, and check the typing of array patterns, both mutable and immutable * Confirm that immutable and mutable arrays have the same representation, even when t...
module Iarray = Stdlib__Iarray;; external ( .:() ) : 'a iarray -> int -> 'a = "%array_safe_get";; let iarray : int iarray = [:1;2;3;4;5:];; let ifarray : float iarray = [:1.5;2.5;3.5;4.5;5.5:];; let marray : int array = [|1;2;3;4;5|];; let mfarray : float array = [|1.5;2.5;3.5;4.5;5.5|];; [%%expect{| module...
da124b8ffaa3d3507317b2166f3a344cd4f08d8619e748577a03ecc0ef05806d
chrovis/cljam
sam.clj
(ns cljam.io.sam "Functions to read and write the SAM (Sequence Alignment/Map) format and BAM (its binary equivalent). See -specs/ for the detail SAM/BAM specifications." (:refer-clojure :exclude [indexed?]) (:require [cljam.io.sam.reader :as sam-reader] [cljam.io.sam.writer :as sam-writer] ...
null
https://raw.githubusercontent.com/chrovis/cljam/2b8e7386765be8efdbbbb4f18dbc52447f4a08af/src/cljam/io/sam.clj
clojure
Reading ------- Writing -------
(ns cljam.io.sam "Functions to read and write the SAM (Sequence Alignment/Map) format and BAM (its binary equivalent). See -specs/ for the detail SAM/BAM specifications." (:refer-clojure :exclude [indexed?]) (:require [cljam.io.sam.reader :as sam-reader] [cljam.io.sam.writer :as sam-writer] ...
a6fb09140b34da1c8d390105c41071df71afee8ef6d437f985e54a50946a6380
haskell-tools/haskell-tools
MixedInstance.hs
# LANGUAGE TypeFamilies , MultiParamTypeClasses # module Decl.MixedInstance where data Canvas = Canvas data V2 = V2 class Backend c v e where data Options c v e :: * instance Backend Canvas V2 Double where data Options Canvas V2 Double = CanvasOptions
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/refactor/examples/Decl/MixedInstance.hs
haskell
# LANGUAGE TypeFamilies , MultiParamTypeClasses # module Decl.MixedInstance where data Canvas = Canvas data V2 = V2 class Backend c v e where data Options c v e :: * instance Backend Canvas V2 Double where data Options Canvas V2 Double = CanvasOptions
4ab63b0c6d0dba6da749ac2a2862b7f85e69f1aeb56d20e52a2759777649e8f7
bmeurer/ocaml-arm
typedtree.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/typing/typedtree.mli
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Asttypes open Types ty...
1866b5e719e1b0d5f3a55e91205273c95fe32224057a1ced5e163a22ee5ea057
michalkonecny/aern2
Integration.hs
module AERN2.Frac.Integration where import AERN2.MP.Ball import AERN2.Frac.Type import AERN2.Frac.Conversion import qualified AERN2.PPoly.Integration as PPoly import AERN2.RealFun.Operations import AERN2.Interval integral :: Frac MPBall -> MPBall -> MPBall -> MPBall integral f = PPoly.integral (toPPoly f) instan...
null
https://raw.githubusercontent.com/michalkonecny/aern2/1c8f12dfcb287bd8e3353802a94865d7c2c121ec/aern2-fun-univariate/src/AERN2/Frac/Integration.hs
haskell
module AERN2.Frac.Integration where import AERN2.MP.Ball import AERN2.Frac.Type import AERN2.Frac.Conversion import qualified AERN2.PPoly.Integration as PPoly import AERN2.RealFun.Operations import AERN2.Interval integral :: Frac MPBall -> MPBall -> MPBall -> MPBall integral f = PPoly.integral (toPPoly f) instan...
f91538ba3cfafb95d4c518689260226429a94740852066b93f33b481899ea95e
rundis/acme-buddy
views.clj
(ns acme-webstore.views (:require [hiccup.page :as page] [acme-webstore.roles :refer [any-granted?]])) (defn include-page-styles [sources] (map #(page/include-css %) sources)) (defn- render-menu [req] (let [user (:auth-user req)] [:nav.menu [:div {:class "collapse navbar-collapse bs-navba...
null
https://raw.githubusercontent.com/rundis/acme-buddy/4134ee33391c858c1c6c517eb22f65aaff34a40e/acme-webstore/src/acme_webstore/views.clj
clojure
(ns acme-webstore.views (:require [hiccup.page :as page] [acme-webstore.roles :refer [any-granted?]])) (defn include-page-styles [sources] (map #(page/include-css %) sources)) (defn- render-menu [req] (let [user (:auth-user req)] [:nav.menu [:div {:class "collapse navbar-collapse bs-navba...
807dc9e182c8d5aa0b973ac29281e0f321197489867eb35201b4910d2f6ac013
basho/riak_core
riak_core_handoff_sender_sup.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2011 - 2012 Basho Technologies , Inc. %% This file is provided to you 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...
null
https://raw.githubusercontent.com/basho/riak_core/762ec81ae9af9a278e853f1feca418b9dcf748a3/src/riak_core_handoff_sender_sup.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2011 - 2012 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(riak_core_handof...
1aa517064f6e3191771e67695484dd210837ed9b42255af1394ce41883a2978a
marcoheisig/Typo
test-objects.lisp
(in-package #:typo.test-suite) (defparameter *test-integers* (let ((integers '())) (loop for integer in (list -1338 -1337 -19 -3 0 3 19 1337 1338) do (push integer integers)) (loop for bits = 1 then (* bits 2) until (>= bits 64) do (push (1+ (+ (expt 2 bits))) integers) (push (1- (+ (expt 2...
null
https://raw.githubusercontent.com/marcoheisig/Typo/a06eecdcee6994fb5731409fe75fad6b7c59d3a9/code/test-suite/test-objects.lisp
lisp
(in-package #:typo.test-suite) (defparameter *test-integers* (let ((integers '())) (loop for integer in (list -1338 -1337 -19 -3 0 3 19 1337 1338) do (push integer integers)) (loop for bits = 1 then (* bits 2) until (>= bits 64) do (push (1+ (+ (expt 2 bits))) integers) (push (1- (+ (expt 2...
67c2e6aa83bd86d84763c32258bafbf5185a20800ee2c2e8cc928e50c14ff74c
lspector/Clojush
penn.clj
;; penn.clj ;; , , 20170607 ;; ;; Adapted from bioavailibility.clj. (ns clojush.problems.classification.penn (:use [clojush.pushgp.pushgp] [clojush random util pushstate interpreter] clojush.instructions.tag [local-file] [clojure.math.numeric-tower]) (:require [clojure.string :...
null
https://raw.githubusercontent.com/lspector/Clojush/685b991535607cf942ae1500557171a0739982c3/src/clojush/problems/classification/penn.clj
clojure
penn.clj Adapted from bioavailibility.clj. split used for training and the other half reserved for testing, which is done only for to report on the best (lowest total training error) individual at the end of each generation. allows one to specify that only some proportion of that data is actually used. In add...
, , 20170607 (ns clojush.problems.classification.penn (:use [clojush.pushgp.pushgp] [clojush random util pushstate interpreter] clojush.instructions.tag [local-file] [clojure.math.numeric-tower]) (:require [clojure.string :as string] [clojure-csv.core :as csv])) ...
7496e7c39bcff80f622c45aeb99e85c0f6ed7a8f186ee5ce60e168e1c6a3f756
kitnil/dotfiles
mail.scm
(define-module (packages mail) #:use-module (gnu packages mail) #:use-module (gnu packages) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix utils)) (define-public exim-lmtp (package (inherit exim) (name "exim-lmtp") (arguments (substitute-keyword-arguments (package...
null
https://raw.githubusercontent.com/kitnil/dotfiles/bdae9b6ae3261d75dff1657a3f3ab2ac88cf200a/dotfiles/guixsd/modules/packages/mail.scm
scheme
(define-module (packages mail) #:use-module (gnu packages mail) #:use-module (gnu packages) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix utils)) (define-public exim-lmtp (package (inherit exim) (name "exim-lmtp") (arguments (substitute-keyword-arguments (package...
ea90af444105abd03b42d6749caff1a1b3abc97d06cf6ecccd1c7a6815c5b089
IBM/probzelus
run.ml
* Copyright 2018 - 2020 IBM Corporation * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writin...
null
https://raw.githubusercontent.com/IBM/probzelus/c56573201b43780b9c103e5616bb193ababa3399/benchmarks/trackerdelay/semi_symb/run.ml
ocaml
* Copyright 2018 - 2020 IBM Corporation * * Licensed under the Apache License , Version 2.0 ( the " License " ) ; * you may not use this file except in compliance with the License . * You may obtain a copy of the License at * * -2.0 * * Unless required by applicable law or agreed to in writin...
9936960faa0168e8a2ff8efa201b9c0f3d4e8bf2da3d981a25f3b3d2f6c51502
marick/fp-oo
build-zipper-3.clj
Exercise 3 (def seq-zip (fn [tree] {:here tree :parents '() :lefts '() :rights '()})) (def zdown (fn [zipper] (if (empty? (:here zipper)) nil (assoc zipper :here (first (:here zipper)) :lefts '() :rights (rest (:here...
null
https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/solutions/pieces/build-zipper-3.clj
clojure
Exercise 3 (def seq-zip (fn [tree] {:here tree :parents '() :lefts '() :rights '()})) (def zdown (fn [zipper] (if (empty? (:here zipper)) nil (assoc zipper :here (first (:here zipper)) :lefts '() :rights (rest (:here...
9423fe4b7e53bbebe5b7e242d14177f3093822825ab87190be8719bfcbe088e1
Beluga-lang/Beluga
hashtbl.mli
include module type of Stdlib.Hashtbl (** [map f m] maps the values in [m] by [f]. This involves converting [m] to a {!Seq}, mapping the values by [m], then constructing the new hashtable from the resulting sequence. *) val map : ('a -> 'b) -> ('k, 'a) t -> ('k, 'b) t * [ k l ] groups the values in [ l ] by ...
null
https://raw.githubusercontent.com/Beluga-lang/Beluga/a8027a9052559411ba5da7939ed4cfd73993c957/src/support/hashtbl.mli
ocaml
* [map f m] maps the values in [m] by [f]. This involves converting [m] to a {!Seq}, mapping the values by [m], then constructing the new hashtable from the resulting sequence.
include module type of Stdlib.Hashtbl val map : ('a -> 'b) -> ('k, 'a) t -> ('k, 'b) t * [ k l ] groups the values in [ l ] by the keys assigned by [ k ] into a hashtable . hashtable. *) val group_by : ('a -> 'k) -> 'a list -> ('k, 'a list) t
0583b4f47934c2bfb7aa14cc313cc3543823468f20836f79b470fb1a9bb332a5
pveber/bistro
bed.ml
open Core open Bistro open Bistro.Shell_dsl let keep ~n bed = if n < 1 then raise (Invalid_argument "Bed.keep") ; Workflow.shell ~descr:"bed.keep" [ cmd "cut" ~stdout:dest [ string (sprintf "-f 1-%d" n) ; dep bed ; ] ] let keep3 x = keep ~n:3 x let keep4 x = keep ~n:4 x let keep5 x = keep ...
null
https://raw.githubusercontent.com/pveber/bistro/d363bd2d8257babbcb6db15bd83fd6465df7c268/lib/bio/bed.ml
ocaml
open Core open Bistro open Bistro.Shell_dsl let keep ~n bed = if n < 1 then raise (Invalid_argument "Bed.keep") ; Workflow.shell ~descr:"bed.keep" [ cmd "cut" ~stdout:dest [ string (sprintf "-f 1-%d" n) ; dep bed ; ] ] let keep3 x = keep ~n:3 x let keep4 x = keep ~n:4 x let keep5 x = keep ...
6fe24bb9364590e4dc67ab389f0b2fb884f71a670482da77c3f9e85a7b63fbbf
dyzsr/ocaml-selectml
x86_ast.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/asmcomp/x86_ast.mli
ocaml
************************************************************************ OCaml ...
, projet Gallium , INRIA Rocquencourt Copyright 2014 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Structured representation of Intel assembly language ( 32 and 64 bit ) . type condition = | LE | G | BE...
c80093893dd26ef2e9ad794a176dda861852d60f5284040ca175acc39afcc03f
ciderpunx/57-exercises-for-programmers
P13CompoundInterest.hs
module P13CompoundInterest where import Library main :: IO () main = do principal <- promptNonNegFloat "Principal: " rate <- promptNonNegFloat "Rate of interest: " years <- promptNonNegFloat "Num years: " numComp <- promptNonNegFloat "Num times compounded/year: " let interest = computeC...
null
https://raw.githubusercontent.com/ciderpunx/57-exercises-for-programmers/25958ab80cc3edc29756d3bddd2d89815fd390bf/src/P13CompoundInterest.hs
haskell
TODO: reverse program i.e. given a total and a rate show the required principal Make a GUI for it.
module P13CompoundInterest where import Library main :: IO () main = do principal <- promptNonNegFloat "Principal: " rate <- promptNonNegFloat "Rate of interest: " years <- promptNonNegFloat "Num years: " numComp <- promptNonNegFloat "Num times compounded/year: " let interest = computeC...
c9113626af7f14a6f99e2b2db58df1c0ce307c0b2398fb7b7ebfd16c996bd0a6
caradoc-org/caradoc
TestEntry.ml
(*****************************************************************************) (* Caradoc: a PDF parser and validator *) Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 (* ...
null
https://raw.githubusercontent.com/caradoc-org/caradoc/100f53bc55ef682049e10fabf24869bc019dc6ce/test/TestEntry.ml
ocaml
*************************************************************************** Caradoc: a PDF parser and validator This program is free software; you can redistribute it and/or modify ...
Copyright ( C ) 2015 ANSSI Copyright ( C ) 2015 - 2017 it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . You should have rece...
3a3a602d25f1f3381cda2a6d5c25be5145efee91d6661c6df4e48d4b53604408
TheLortex/mirage-monorepo
angstrom.mli
---------------------------------------------------------------------------- Copyright ( c ) 2016 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/754836818dc5c861bf3b0a78029315a065a543cc/duniverse/angstrom/lib/angstrom.mli
ocaml
* A parser for values of type ['a]. * [peek_char_fail] accepts any char and returns it. If end of input has been reached, it will fail. This parser does not advance the input. Use it for lookahead. * [peek_string n] accepts exactly [n] characters and returns them as a string. If there is not enough input...
---------------------------------------------------------------------------- Copyright ( c ) 2016 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
0661d7fe365bc5f54ab65edbd4bd782faabd1742f6864925e64bf9ce928fdc4f
ocaml-omake/omake
omake_builtin_rule.ml
* Some builtin functions . * * \begin{doc } * functions and utilities } * \label{chapter : build } * \cutname{omake - build.html } * \end{doc } * * Some builtin functions. * * \begin{doc} * \chapter{Build functions and utilities} * \label{chapter:build} * \cutname{omake-build.html} * ...
null
https://raw.githubusercontent.com/ocaml-omake/omake/08b2a83fb558f6eb6847566cbe1a562230da2b14/src/builtin/omake_builtin_rule.ml
ocaml
* Table of built-in functions.
* Some builtin functions . * * \begin{doc } * functions and utilities } * \label{chapter : build } * \cutname{omake - build.html } * \end{doc } * * Some builtin functions. * * \begin{doc} * \chapter{Build functions and utilities} * \label{chapter:build} * \cutname{omake-build.html} * ...
d1b96728183839034960ffa40d99a0853148f0639cde843a9f130947b1b4c51a
bnoordhuis/chicken-core
port-tests.scm
(require-extension srfi-1 ports utils srfi-4 extras tcp posix) (define-syntax assert-error (syntax-rules () ((_ expr) (assert (handle-exceptions _ #t expr #f))))) (define *text* #<<EOF this is a test 33 > ( let ( ( in ( open - input - string " " ) ) ) ( close - input - port in ) (read-char in)) [09...
null
https://raw.githubusercontent.com/bnoordhuis/chicken-core/56d30e3be095b6abe1bddcfe10505fa726a43bb5/tests/port-tests.scm
scheme
copy-port read-char -> write-char read -> custom read-char -> custom custom -> write-char fill buffers Not sure about abandon-port other platforms, possibly due to multiprocessing: read-line with EINTR would loop endlessly and process-wait would signal a condition when interrupted rather than retrying. close...
(require-extension srfi-1 ports utils srfi-4 extras tcp posix) (define-syntax assert-error (syntax-rules () ((_ expr) (assert (handle-exceptions _ #t expr #f))))) (define *text* #<<EOF this is a test 33 > ( let ( ( in ( open - input - string " " ) ) ) ( close - input - port in ) (read-char in)) [09...
488f1130628433d37b284d862242d84c32acf6111989c7d4d53425ebcba8fd2e
active-group/active-clojure
validation_test.cljc
(ns active.clojure.validation-test (:require #?(:clj [active.clojure.record :refer [define-record-type]] :cljs [active.clojure.cljs.record :refer-macros [define-record-type]]) #?(:clj [clojure.test :as t] :cljs [cljs.test :as t :include-macros true]) [active.cloju...
null
https://raw.githubusercontent.com/active-group/active-clojure/44050a1292fa610dde732d5fbfc42c37ad976d3a/test/active/clojure/validation_test.cljc
clojure
(ns active.clojure.validation-test (:require #?(:clj [active.clojure.record :refer [define-record-type]] :cljs [active.clojure.cljs.record :refer-macros [define-record-type]]) #?(:clj [clojure.test :as t] :cljs [cljs.test :as t :include-macros true]) [active.cloju...
636844afedb502483a5b25818aa0352abd96ff2fd168b9a61b99ef2b17602272
erlang-ls/erlang_ls
els_definition_SUITE.erl
%%============================================================================== %% Unit Tests for Code Navigation %%============================================================================== -module(els_definition_SUITE). %% CT Callbacks -export([ all/0, init_per_suite/1, end_per_suite/1, init_per...
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/4ad07492c2f577da4a1fbd79877036f820d9e2c3/apps/els_lsp/test/els_definition_SUITE.erl
erlang
============================================================================== Unit Tests for Code Navigation ============================================================================== CT Callbacks Test cases ============================================================================== Includes ===============...
-module(els_definition_SUITE). -export([ all/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2, end_per_testcase/2, suite/0 ]). -export([ application_local/1, application_remote/1, atom/1, behaviour/1, definition_after_closing/1, duplicate_definition/1, expo...
7f0a6a00024ec8c072b207dd64b7b390625add980ae2ac13625e2167f4e0b2f1
ocaml-multicore/tezos
views.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/tezt/tests/views.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN AN...
5eec4844b94407be16c84facbae4d850424017104e2e6f55e45a8eac048d6f1a
jaybosamiya/automatic-differentiation
auto_differentiate.ml
open Dual_number module D = struct type t = Dual.t let variable x = Dual.from_floats x 1. let constant x = Dual.from_floats x 0. let value f = fun x -> variable x |> f |> Dual.real let derivative f = fun x -> variable x |> f |> Dual.non_real let val_deriv f = value f, derivative f modu...
null
https://raw.githubusercontent.com/jaybosamiya/automatic-differentiation/b7935851afaaaca317d78f6cf187a94adfaa795f/auto_differentiate.ml
ocaml
open Dual_number module D = struct type t = Dual.t let variable x = Dual.from_floats x 1. let constant x = Dual.from_floats x 0. let value f = fun x -> variable x |> f |> Dual.real let derivative f = fun x -> variable x |> f |> Dual.non_real let val_deriv f = value f, derivative f modu...
9964adc7c4b1a9680307152ac063da1b64328dca27a047d288fd71c901e80ca4
kevinlynx/dhtcrawler
start_dep_app.erl
%% %% 06.15.2013 %% -module(start_dep_app). -export([startcouchdb/0, startmongo/0]). Damn , couchbeam requires jiffy , ibrowse , public_key , sasl , crypto . startcouchdb() -> code:add_path("e:/prj/ibrowse/ebin"), code:add_path("e:/prj/couchbeam/ebin"), code:add_path("e:/prj/jiffy/ebin"), Apps = ...
null
https://raw.githubusercontent.com/kevinlynx/dhtcrawler/b8a486dbebb57f9672a773a6901d59ddae97a278/test/start_dep_app.erl
erlang
06.15.2013
-module(start_dep_app). -export([startcouchdb/0, startmongo/0]). Damn , couchbeam requires jiffy , ibrowse , public_key , sasl , crypto . startcouchdb() -> code:add_path("e:/prj/ibrowse/ebin"), code:add_path("e:/prj/couchbeam/ebin"), code:add_path("e:/prj/jiffy/ebin"), Apps = [crypto, public_key,...
d89a0e996115db4caee0ba97cf77259b7586f2979898700452783340cac73cad
DeepSec-prover/deepsec
generic_equivalence.mli
(**************************************************************************) (* *) DeepSec (* *) ...
null
https://raw.githubusercontent.com/DeepSec-prover/deepsec/8ddc45ec79de5ec49810302ea7da32d3dc9f46e4/Source/query_solving/generic_equivalence.mli
ocaml
************************************************************************ ...
DeepSec , project PESTO , , project PESTO , , project PESTO , Copyright ( C ) INRIA 2017 - 2020 the GNU General Publ...
b326a89b3cd85d8971c06c08bd8934bfda93c25437e8592ea04b4519837a4f95
matterhorn-chat/matterhorn
TabbedWindow.hs
{-# LANGUAGE MultiWayIf #-} module Matterhorn.Types.TabbedWindow ( TabbedWindow(..) , TabbedWindowEntry(..) , TabbedWindowTemplate(..) , tabbedWindow , getCurrentTabbedWindowEntry , tabbedWindowNextTab , tabbedWindowPreviousTab , runTabShowHandlerFor ) where import Prelude () import ...
null
https://raw.githubusercontent.com/matterhorn-chat/matterhorn/19a73ce833a8a8de3616cf884c03e9f08a4db0a7/src/Matterhorn/Types/TabbedWindow.hs
haskell
# LANGUAGE MultiWayIf # | An entry in a tabbed window corresponding to a tab and its content. Parameterized over an abstract handle type ('a') for the tabs so we can give each a unique handle. ^ The handle for this tab. ^ The rendering function to use when this tab is selected. ^ The event-handling function to u...
module Matterhorn.Types.TabbedWindow ( TabbedWindow(..) , TabbedWindowEntry(..) , TabbedWindowTemplate(..) , tabbedWindow , getCurrentTabbedWindowEntry , tabbedWindowNextTab , tabbedWindowPreviousTab , runTabShowHandlerFor ) where import Prelude () import Matterhorn.Prelude impo...
618f1174237df92e2d0fde9127b6eada800990a83e4292fe2b5a919766e71655
jaspervdj/advent-of-code
21.hs
module Main where import Data.Either (partitionEithers) import Data.Foldable.Extra (maximumOn, minimumOn) import Data.List.Extra (selectN) data Combatant = Combatant { cHitpoints :: !Int , cDamage :: !Int , cArmor :: !Int } deriving (Show) simulate :: C...
null
https://raw.githubusercontent.com/jaspervdj/advent-of-code/75f426c4fc149cf6ab5fb6d95c96f3132097bdfd/2015/21.hs
haskell
module Main where import Data.Either (partitionEithers) import Data.Foldable.Extra (maximumOn, minimumOn) import Data.List.Extra (selectN) data Combatant = Combatant { cHitpoints :: !Int , cDamage :: !Int , cArmor :: !Int } deriving (Show) simulate :: C...
cd23dcf89a392288a3e75e673f0f33eacc25cd32edbf647faaa5472f149ebba8
jeanparpaillon/erlang-dbus
dbus_marshaller.erl
%% 2006 - 2007 , 2014 - 2106 Jean Parpaillon %% @author < > @author < > %% @doc D-Bus binary format (un)marshaling. %% %% See <a href="-specification.html#message-protocol-marshaling" >D-Bus Specification</a>. %% %% @end -module(dbus_marshaller). -include("dbus.hrl"). -ifdef(TEST). -include_lib("eunit/...
null
https://raw.githubusercontent.com/jeanparpaillon/erlang-dbus/48a095b40bc81973ea49e542fe1d8854abc83efc/src/dbus_marshaller.erl
erlang
@doc D-Bus binary format (un)marshaling. See <a href="-specification.html#message-protocol-marshaling" >D-Bus Specification</a>. @end api API @doc Encode a message As defined in dbus.hrl, a message is a header record and a body. The marshal_message/1 function marshals the header but passes through the bo...
2006 - 2007 , 2014 - 2106 Jean Parpaillon @author < > @author < > -module(dbus_marshaller). -include("dbus.hrl"). -ifdef(TEST). -include_lib("eunit/include/eunit.hrl"). -endif. -export([ marshal_message/1, marshal_signature/1, marshal_list/2, unmarshal_data/1, ...
b1e5962cd6ec27ccb88b1cc974c1a82fa6b91bb4c889a78361c2cf4cf9dda889
serokell/ariadne
Face.hs
module Ariadne.UI.Vty.Face ( UiFeatures (..) , UiFace (..) , UiLangFace (..) , UiHistoryFace (..) , UiEvent (..) , UiCommandId (..) , UiCommandEvent (..) , UiCommandAction (..) , UiBackendEvent (..) , UiBackendStatusUpdate (..) , UiWalletEve...
null
https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ui/vty-lib/src/Ariadne/UI/Vty/Face.hs
haskell
| UI library settings for a particular currency implementation Mostly boolean flags for enabled widgets ^ "Secret key"/"Mnemonic"/etc -------------------------------------------------------------------------- Faces -------------------------------------------------------------------------- API for the UI. Update t...
module Ariadne.UI.Vty.Face ( UiFeatures (..) , UiFace (..) , UiLangFace (..) , UiHistoryFace (..) , UiEvent (..) , UiCommandId (..) , UiCommandEvent (..) , UiCommandAction (..) , UiBackendEvent (..) , UiBackendStatusUpdate (..) , UiWalletEve...
1b0a395381b4611934efa133c29a6056241963994561890856a74a4e5d245bd2
emqx/emqx-auth-ldap
emqx_auth_ldap_cli.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/emqx-auth-ldap/2b8a5cb782a4620f708ba7d0acac20264d2f54a8/src/emqx_auth_ldap_cli.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_auth_ldap_cli). -behaviour(ecpool_worker). -include("emqx_auth_ldap.hrl"). -include_lib...
61369ee562b39b4e664a59c2cc3ed430fd8ac159c5feb73e72a28f50f2f76989
mlin/ocaml-sqlite3EZ
unit_tests.ml
Printf.printf "Tests go here, please!\n"
null
https://raw.githubusercontent.com/mlin/ocaml-sqlite3EZ/7071b0589dc6444cf988240229f03f4e0fb54f70/unit_tests.ml
ocaml
Printf.printf "Tests go here, please!\n"
dcbeef5f29d8cd612e9141606a0475ea8931b6ef941d4847d43c45bbdcfb6655
flexsurfer/conduitrn
views.cljs
(ns conduit.ui.edit.views (:require [re-frame.core :as re-frame] [clojure.string :as string] [conduit.ui.components :as ui] [steroid.rn.core :as rn])) (defn reset-fields [content refs] (fn [] (re-frame/dispatch [:reset-edit-article]) (reset! content {}) (doseq [ref @...
null
https://raw.githubusercontent.com/flexsurfer/conduitrn/e0c4860a24a7413b08d807b3aa3f1a76d93a444b/src/conduit/ui/edit/views.cljs
clojure
(ns conduit.ui.edit.views (:require [re-frame.core :as re-frame] [clojure.string :as string] [conduit.ui.components :as ui] [steroid.rn.core :as rn])) (defn reset-fields [content refs] (fn [] (re-frame/dispatch [:reset-edit-article]) (reset! content {}) (doseq [ref @...
8212b9dc498f18d3878e98d7df885dcf892f8b999abf89a972792aac63b4f0b0
sfrank/minheap
binary-heap.lisp
MINHEAP is by < > , 2007 - 2012 . ;;;; ;;;; Permission is hereby granted, free of charge, to any person obtaining ;;;; a copy of this software and associated documentation files (the " Software " ) , to deal in the Software without restriction , including ;;;; without limitation the rights to use, copy, modify, ...
null
https://raw.githubusercontent.com/sfrank/minheap/51cc9edcbbe13d9132fe12b0b197848f31513232/binary-heap.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: The above copyright notice and this permission notice shall be included EXPRESS OR ...
MINHEAP is by < > , 2007 - 2012 . " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to in all copies or substantial portions of the Software . T...
9b85eeaae43f1305dce9bd96ce53575414191739e66d1452a1dfda7ce3a8febd
kendru/restful-clojure
products.clj
(ns restful-clojure.models.products (:use korma.core) (:require [restful-clojure.entities :as e])) (defn create [product] (insert e/products (values product))) (defn find-all [] (select e/products)) (defn find-by [field value] (first (select e/products (where {field value}) (limit 1))))...
null
https://raw.githubusercontent.com/kendru/restful-clojure/d321066aa368516aec28a4102cf013f764548505/restful-clojure/src/restful_clojure/models/products.clj
clojure
(ns restful-clojure.models.products (:use korma.core) (:require [restful-clojure.entities :as e])) (defn create [product] (insert e/products (values product))) (defn find-all [] (select e/products)) (defn find-by [field value] (first (select e/products (where {field value}) (limit 1))))...
92d41882f1b3df04b8f0df54b5705932cf8f29d7387feae6dd5f1b2311b98ad2
coalton-lang/coalton
utilities.lisp
(in-package #:coalton-tests) (defun run-coalton-tests () (run-package-tests :packages '(:coalton-tests :quil-coalton-tests :thih-coalton-tests) :interactive t)) (defun set-equalp (set1 set2) (null (set-exclusive-or set1 set2 :test #'equalp))) (defun dag-equalp (dag1 dag2) ;;...
null
https://raw.githubusercontent.com/coalton-lang/coalton/1d756c71c033fd750cd4757a3c2e91f6272e8814/tests/utilities.lisp
lisp
XXX: This will not check ordering of edges within vertices
(in-package #:coalton-tests) (defun run-coalton-tests () (run-package-tests :packages '(:coalton-tests :quil-coalton-tests :thih-coalton-tests) :interactive t)) (defun set-equalp (set1 set2) (null (set-exclusive-or set1 set2 :test #'equalp))) (defun dag-equalp (dag1 dag2) (s...
91ae2f885ad8e00887e5f13600134bb905a814a6230d697a8c2ebb9559e73c35
vascokk/rivus_cep
rivus_cep_event_creator_tests.erl
-module(rivus_cep_event_creator_tests). -include_lib("eunit/include/eunit.hrl"). create_event_1_test() -> {ok, Tokens, _Endline} = rivus_cep_scanner:string("define event10 as (attr1, attr2, attr3);"), {ok, ParseRes} = rivus_cep_parser:parse(Tokens), ?assertEqual({event, {event10, [attr1, attr2, attr3]}}, Pars...
null
https://raw.githubusercontent.com/vascokk/rivus_cep/e9fe6ed79201d852065f7fb2a24a880414031d27/test/rivus_cep_event_creator_tests.erl
erlang
-module(rivus_cep_event_creator_tests). -include_lib("eunit/include/eunit.hrl"). create_event_1_test() -> {ok, Tokens, _Endline} = rivus_cep_scanner:string("define event10 as (attr1, attr2, attr3);"), {ok, ParseRes} = rivus_cep_parser:parse(Tokens), ?assertEqual({event, {event10, [attr1, attr2, attr3]}}, Pars...
86714ef7148fb01e147730ea8cd87ebf276c7b1376d907defa8b28077e154b79
evolutics/haskell-formatter
TreeFormat.hs
{-| Description : Parsing nested maps according to a format -} module Language.Haskell.Formatter.Internal.TreeFormat (TreeFormat, Leaf(..), parseYamlFile) where import qualified Control.Arrow as Arrow import qualified Data.HashMap.Strict as HashMap import qualified Data.Map.Strict as Map import qualified Data.Mo...
null
https://raw.githubusercontent.com/evolutics/haskell-formatter/3919428e312db62b305de4dd1c84887e6cfa9478/src/library/Language/Haskell/Formatter/Internal/TreeFormat.hs
haskell
| Description : Parsing nested maps according to a format
module Language.Haskell.Formatter.Internal.TreeFormat (TreeFormat, Leaf(..), parseYamlFile) where import qualified Control.Arrow as Arrow import qualified Data.HashMap.Strict as HashMap import qualified Data.Map.Strict as Map import qualified Data.Monoid as Monoid import qualified Data.Scientific as Scientific i...
22456b3475b4a5c236b0e90d742f94c9638ee0c6e29ca5c322afd3e2b14f7acc
vikram/lisplibraries
glyf.lisp
Copyright ( c ) 2006 , All Rights Reserved ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list of conditions...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/zpb-ttf-0.7/glyf.lisp
lisp
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form ...
Copyright ( c ) 2006 , All Rights Reserved DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , glyf.lisp , v 1.13 2006/03/23 22:22:01 xach Exp (in-package #:zpb-ttf) (defclass control-point () ((x :initarg :x :accessor x) ...
69e48b9157f2d3c97d6df95880bcec7a77eb931790b1c09225f6b37d895cab27
pezipink/fairylog
info.rkt
#lang info (define collection "fairylog") (define version "0.0.1") (define deps '("base")) (define build-deps '("scribble-lib" "racket-doc")) (define pkg-desc "Verilog dialect") (define pkg-authors '("")) (define scribblings '(("scribblings/fairylog.scrbl" ())))
null
https://raw.githubusercontent.com/pezipink/fairylog/f0c1d0d82e2ed9ff02486ddd91a0ede5c5483ef7/info.rkt
racket
#lang info (define collection "fairylog") (define version "0.0.1") (define deps '("base")) (define build-deps '("scribble-lib" "racket-doc")) (define pkg-desc "Verilog dialect") (define pkg-authors '("")) (define scribblings '(("scribblings/fairylog.scrbl" ())))
8342385841f6bf8c0a43eed41aa05d49159a9ed6016276e9a918ab3322f9c5d5
tolysz/prepare-ghcjs
Void.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # # LANGUAGE EmptyCase # {-# LANGUAGE Safe #-} # LANGUAGE StandaloneDeriving # ----------------------------------------------------------------------------- -- | Copyright : ( C ) 2008 - 2014 -- License : BSD-style (see the file libraries/base/...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/base-pure/Data/Void.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE Safe # --------------------------------------------------------------------------- | License : BSD-style (see the file libraries/base/LICENSE) Stability : provisional Portability : portable A logically uninhabited data type, used to indicate that a given term ...
# LANGUAGE DeriveGeneric # # LANGUAGE EmptyCase # # LANGUAGE StandaloneDeriving # Copyright : ( C ) 2008 - 2014 Maintainer : < > @since 4.8.0.0 module Data.Void ( Void , absurd , vacuous ) where import Control.Exception import Data.Data import Data.Ix import GHC.Generics @since ...
b39098c9eb0fba81545c6583196be24f3946091c71e710949871ef17e0a57e4c
shoreleave/shoreleave-browser
webstorage.cljs
(ns shoreleave.browser.storage.webstorage "An idiomatic interface to the browser's storage mechanisms (local and sessions)" (:require [cljs.reader :as reader] [goog.storage.mechanism.HTML5WebStorage :as html5webstorage] [goog.iter :as g-iter])) Google Closure attaches a common prototype t...
null
https://raw.githubusercontent.com/shoreleave/shoreleave-browser/8623525398eaf3d7bfba88ee22f608f282df2af9/src/shoreleave/browser/storage/webstorage.cljs
clojure
---------------------- For general information on localStorage, please see the docs in `localstorage.cljs` For general information on sessionStorage, please see the docs in `sessionstorage.cljs` The extension supports the following calls: * map-style lookup - `(:search-results storage "default value")` * `g...
(ns shoreleave.browser.storage.webstorage "An idiomatic interface to the browser's storage mechanisms (local and sessions)" (:require [cljs.reader :as reader] [goog.storage.mechanism.HTML5WebStorage :as html5webstorage] [goog.iter :as g-iter])) Google Closure attaches a common prototype t...
88251cc53efa2a407847d4a03610f20a72f152a1a062e9eb541cbc1ad442be2f
aryx/xix
queue.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/lib_core/collections/todo/queue.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . Module [ Queue ] : first - in first - out queues type 'a t exception Empty val create: unit -> 'a t val a...
0413d49ff12fb70471c9e8f88431ce299a895cc77aed291917feabd52018175e
hiredman/clojurebot
clojars.clj
(ns hiredman.clojurebot.clojars (:use [hiredman.utilities :only (get-url)] [clojure.set :only (difference)]) (:require [hiredman.clojurebot.core :as core] [hiredman.utilities :as util] [hiredman.schedule :as sched])) (def recent (ref #{})) (defn startparse-tagsoup [s ch] (let...
null
https://raw.githubusercontent.com/hiredman/clojurebot/1e8bde92f2dd45bb7928d4db17de8ec48557ead1/src/hiredman/clojurebot/clojars.clj
clojure
(ns hiredman.clojurebot.clojars (:use [hiredman.utilities :only (get-url)] [clojure.set :only (difference)]) (:require [hiredman.clojurebot.core :as core] [hiredman.utilities :as util] [hiredman.schedule :as sched])) (def recent (ref #{})) (defn startparse-tagsoup [s ch] (let...
2c34b9e967d7409b94a3d3034331d70060f40bc2959653e998a32a73c731f7cd
open-company/open-company-web
site.clj
(ns oc.site (:require [hiccup.page :as hp] [environ.core :refer (env)] [cuerdas.core :as string] [oc.shared :as shared] [oc.pages.not-found :as not-found] [oc.pages.server-error :as server-error] [oc.pages.about :as about] [oc.pages.a...
null
https://raw.githubusercontent.com/open-company/open-company-web/dfce3dd9bc115df91003179bceb87cca1f84b6cf/site/oc/site.clj
clojure
(ns oc.site (:require [hiccup.page :as hp] [environ.core :refer (env)] [cuerdas.core :as string] [oc.shared :as shared] [oc.pages.not-found :as not-found] [oc.pages.server-error :as server-error] [oc.pages.about :as about] [oc.pages.a...
af7109b4930882575b9468e886d2f67ad95e5155133ec110bce89dd60041394b
bcbio/bcbio.variation.recall
vcfheader.clj
(ns bcbio.variation.recall.vcfheader "Create VCF headers using algorithms contained in Picard/Tribble tools. This does the best job of cleanly merging and organizing headers from multiple variant calling approaches." (:import [htsjdk.variant.vcf VCFUtils VCFHeader] [htsjdk.variant.variantcontext.wr...
null
https://raw.githubusercontent.com/bcbio/bcbio.variation.recall/b7aa436dcb558535f87d004ba0abc5d7bc380b70/src/bcbio/variation/recall/vcfheader.clj
clojure
(ns bcbio.variation.recall.vcfheader "Create VCF headers using algorithms contained in Picard/Tribble tools. This does the best job of cleanly merging and organizing headers from multiple variant calling approaches." (:import [htsjdk.variant.vcf VCFUtils VCFHeader] [htsjdk.variant.variantcontext.wr...
68d4dade547b352ebeb7589b30bd2caefefe50195243e8235f34259804563ef8
LLNL/rhizome
ngram.clj
(ns rhizome.turbotopics.ngram "Functions for recursively identifying n-grams" (:use [clojure.contrib.seq-utils :only (indexed)]) (:use [rhizome.turbotopics.util :only (pfhmap pmapcat not-nil?)]) (:use [rhizome.turbotopics.bigram :only (get-occur-counts valid-bigram?)]) (:use [rhiz...
null
https://raw.githubusercontent.com/LLNL/rhizome/af8e00ac89a98e2d07fe7a6272857951c2781182/src/rhizome/turbotopics/ngram.clj
clojure
Represents a single position within the corpus we're done either at start, or earlier symbol was bigram bigram hit not a hit, emit prev no new n-grams, quit
(ns rhizome.turbotopics.ngram "Functions for recursively identifying n-grams" (:use [clojure.contrib.seq-utils :only (indexed)]) (:use [rhizome.turbotopics.util :only (pfhmap pmapcat not-nil?)]) (:use [rhizome.turbotopics.bigram :only (get-occur-counts valid-bigram?)]) (:use [rhiz...
fa728403f84fb7d22e69670e44336cc6b7a6fe64d7e5688aacb01402b69d483a
zenspider/schemers
exercise.3.43.scm
#lang racket/base Exercise 3.43 Suppose that the balances in three accounts start out as $ 10 , $ 20 , and $ 30 , and that multiple processes run , exchanging the balances ;; in the accounts. Argue that if the processes are run sequentially, ;; after any number of concurrent exchanges, the account balances sh...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_3/exercise.3.43.scm
scheme
in the accounts. Argue that if the processes are run sequentially, after any number of concurrent exchanges, the account balances version of the account-exchange program in this section. On the other hand, argue that even with this `exchange' program, the sum of the balances in the accounts will be preserved. Draw...
#lang racket/base Exercise 3.43 Suppose that the balances in three accounts start out as $ 10 , $ 20 , and $ 30 , and that multiple processes run , exchanging the balances should be $ 10 , $ 20 , and $ 30 in some order . Draw a timing diagram like the one in * Note Figure 3 - 29 : : to show how this conditi...
ac370de883a1989d9aac53d115b1618165f1cb3ed52fb79ce939914f4247305c
onedata/op-worker
middleware_worker_handlers.erl
%%%------------------------------------------------------------------- @author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module routes middleware oper...
null
https://raw.githubusercontent.com/onedata/op-worker/14d788c29cb80ac83bef9885c13daed68c68e559/src/middleware/worker/middleware_worker_handlers.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module routes middleware operations to corresponding handler modules. @end ------------------------------------------------------------------- API =================...
@author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(middleware_worker_handlers). -author("Bartosz Walkowicz"). -include("middleware/middleware.hrl"). -export([execute/3]). Archives -spec execute( user_ctx:ctx(), file_ctx:ctx(...
ac5be38b4b712ededfdb095aae693c6bbdb04565f2467f3aa1c21652e48209a3
schemedoc/ffi-cookbook
iota-gambit.scm
;; TODO: Are we using still vs movable objects correctly? ;; ;; Relevant example from the manual: ;; /~gambit/doc/gambit.html#c_002ddefine_002dtype (define c-iota (c-lambda (int) scheme-object " ___SCMOBJ list = ___NUL; ___SCMOBJ new_list; int n = ___arg1; while (n > 0) { n--; new_list = ___EXT(___make_pair...
null
https://raw.githubusercontent.com/schemedoc/ffi-cookbook/75d3594135b5a4c5deea9a064a1aef5a95312f85/return-list/iota-gambit.scm
scheme
TODO: Are we using still vs movable objects correctly? Relevant example from the manual: /~gambit/doc/gambit.html#c_002ddefine_002dtype /* allocation failed */
(define c-iota (c-lambda (int) scheme-object " while (n > 0) { } ")) (display (c-iota 100)) (newline)
ef2f266ad0884d06f87598e70366d67446829b467a811f01a4f3029dbbf255f0
phadej/cabal-fmt
Type.hs
-- | -- License: GPL-3.0-or-later Copyright : {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} module CabalFmt.Refactoring.Type ( FieldRefactoring, CommentsPragmas, rewriteFields, ) where import qualified Distribution.Fields as C import CabalFmt.Comments import CabalFmt....
null
https://raw.githubusercontent.com/phadej/cabal-fmt/ead940a3dd955a2c7b32b8817b03885ff550c128/src/CabalFmt/Refactoring/Type.hs
haskell
| License: GPL-3.0-or-later # LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # ----------------------------------------------------------------------------- Refactoring type ----------------------------------------------------------------------------- ------------------------------------------------------...
Copyright : module CabalFmt.Refactoring.Type ( FieldRefactoring, CommentsPragmas, rewriteFields, ) where import qualified Distribution.Fields as C import CabalFmt.Comments import CabalFmt.Monad import CabalFmt.Pragma type CommentsPragmas = (Comments, [FieldPragma]) type FieldRefactoring ...
3caaa5409c6fcb900bd24afbe1e1d717447d589d1ac6957a346d20bee0e83efb
alertlogic/rebar3_erllambda
rebar3_erllambda_release.erl
%%%--------------------------------------------------------------------------- @doc rebar3_erllambda_release - Build a erlang lambda release %% %% This module will build an erllambda release on top of a standard relx %% release so that the result can just be started. %% %% 2017 Alert Logic , Inc %%%---------------...
null
https://raw.githubusercontent.com/alertlogic/rebar3_erllambda/62b40daacf57ca63995c8354eb29bdf58bcdf543/src/rebar3_erllambda_release.erl
erlang
--------------------------------------------------------------------------- This module will build an erllambda release on top of a standard relx release so that the result can just be started. --------------------------------------------------------------------------- =============================================...
@doc rebar3_erllambda_release - Build a erlang lambda release 2017 Alert Logic , Inc -module(rebar3_erllambda_release). -author('Paul Fisher <>'). -behaviour(provider). -export([init/1, do/1, format_error/1]). -define(PROVIDER, release). -define(NAMESPACE, erllambda). -define(DEPS, [{default, compile}]). -spe...
7b52cd4122d074f48ccf1cd4a63631e85dd06e363397df182ec6cfa291b60dc1
juspay/atlas
Issue.hs
| Copyright 2022 Juspay Technologies Pvt Ltd 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 dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/app-backend/src/Types/Issue.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd 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 dis...