_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
19e1617e42a000faa5b4e7e22e340436051241970c3e1390b90dfa3c246f1229
erlang/erlide_kernel
erlide_indent_tests.erl
%% Author: jakob Created : 24 nov 2009 -module(erlide_indent_tests). %% %% Include files %% -include_lib("eunit/include/eunit.hrl"). %% %% test Functions %% -define(Test_indent(SIndent, S), ?_assertEqual(SIndent, erlide_indent:indent_lines(S, 0, length(S), 8, 8, false, []))). simple...
null
https://raw.githubusercontent.com/erlang/erlide_kernel/763a7fe47213f374b59862fd5a17d5dcc2811c7b/ide/apps/erlide_ide/test/erlide_indent_tests.erl
erlang
Author: jakob Include files test Functions -indentation---doesn-t-handle-binaries-with-macros-or-expressions binary comprehensions -indent--can-t-handle-binary-compehensions -indent---confused-by-macros-in-case-clauses -indent--macros-in-list-comprehensions for multi-line strings TODO when scanner can h...
Created : 24 nov 2009 -module(erlide_indent_tests). -include_lib("eunit/include/eunit.hrl"). -define(Test_indent(SIndent, S), ?_assertEqual(SIndent, erlide_indent:indent_lines(S, 0, length(S), 8, 8, false, []))). simple_function_test_() -> S = "a() ->\nb.\n", SIndent = "a() ...
59ffd68d478dbe3cc278d3955815685b0c5e531be1040da40b118726152443fe
kryonix/pg_cuckoo
Main.hs
module Main where import System.Environment import Data.ConfigFile import Data.Either.Utils import Control.Monad import Text.Show.Pretty as PP hiding (List, Value, Float) import Data.List import Database.PgCuckoo.Lib as L import Database.PgCuckoo.Validate as V import Database.PgCucko...
null
https://raw.githubusercontent.com/kryonix/pg_cuckoo/755e3199b4831d99e716637fbbebbe794a9a7104/PgCuckoo/app/Main.hs
haskell
Query would be: select a as "foo", b as "bar" from grp ------------------------------------------------------------------------------ NEUMANN UNNESTING Q1 , A.TargetEntry , A.targetresname = "course" , A.resjunk = False } ------------------------------------------------------------------------------ A.HASH...
module Main where import System.Environment import Data.ConfigFile import Data.Either.Utils import Control.Monad import Text.Show.Pretty as PP hiding (List, Value, Float) import Data.List import Database.PgCuckoo.Lib as L import Database.PgCuckoo.Validate as V import Database.PgCucko...
6646531efbdb3404ffd549b665004e3b684dd8a02ace88dd3e9dc32efd7f19de
EFanZh/EOPL-Exercises
exercise-6.20-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-6.20.rkt") (check-equal? (run "11") (num-val 11)) (check-equal? (run "-33") (num-val -33)) (check-equal? (run "-(44, 33)") (num-val 11)) (check-equal? (run "-(-(44, 33), 22)") (num-val -11)) (check-equal? (run "-(55, -(22, 11))") (num-val 44)) (che...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-6.20-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-6.20.rkt") (check-equal? (run "11") (num-val 11)) (check-equal? (run "-33") (num-val -33)) (check-equal? (run "-(44, 33)") (num-val 11)) (check-equal? (run "-(-(44, 33), 22)") (num-val -11)) (check-equal? (run "-(55, -(22, 11))") (num-val 44)) (che...
54afec1bdeadf36b8bb3629f7e435e66836cf1dd117dbe7cd6dc995704151907
ulisses/Static-Code-Analyzer
AstAnalysis.hs
{-# LANGUAGE ScopedTypeVariables, PatternGuards #-} ----------------------------------------------------------------------------- -- | Module : Language . . Translation Copyright : ( c ) 2008 -- License : BSD-style -- Maintainer : -- Stability : alpha Portability : ghc -- -- Analyse t...
null
https://raw.githubusercontent.com/ulisses/Static-Code-Analyzer/4c3f6423d43e1bccb9d1cf04e74ae60d9170186f/Analyzer/language-c-0.3.2.1/src/Language/C/Analysis/AstAnalysis.hs
haskell
# LANGUAGE ScopedTypeVariables, PatternGuards # --------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : alpha Analyse the parse tree Traverses the AST, analyses declarations and invokes handlers. --------------------------------------...
Module : Language . . Translation Copyright : ( c ) 2008 Portability : ghc module Language.C.Analysis.AstAnalysis ( analyseAST, analyseExt,analyseFunDef,analyseExtDecls, ) where import Language.C.Analysis.SemError import Language.C.Analysis.SemRep import Language.C.Analysis.TravMonad imp...
1a6ca3bb62c6fc1ee513496521ee3ab6c3d1d0a36578a82ad750d09d69ac734d
angavrilov/cl-gpu
utils-array.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; -*- ;;; Copyright ( c ) 2010 by . ;;; ;;; See LICENCE for details. ;;; ;;; This file defines utility functions for working ;;; with arrays; some depend on the implementation. ;;; (in-package :cl-gpu.buffers) ;;; Array element size #+sbcl (sb-ext:defglobal %%size-shift-tab...
null
https://raw.githubusercontent.com/angavrilov/cl-gpu/1523ec3c42db904815f7276a776d354ec30c6b7b/buffers/utils-array.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; -*- See LICENCE for details. This file defines utility functions for working with arrays; some depend on the implementation. Array element size Array I/O break; break; assert it is safe assert it is safe Array copying Reference vector Raw data vector Unknown Veri...
Copyright ( c ) 2010 by . (in-package :cl-gpu.buffers) #+sbcl (sb-ext:defglobal %%size-shift-table%% (let ((arr (make-array (1+ sb-vm:widetag-mask) :initial-element nil))) (loop for info across sb-vm:*specialized-array-element-type-properties* for shift = (and (subtypep (sb-vm:saetp-s...
480b7ec52bea4771726a2e4d0d70526a47617c1f79eea717ab6dfcb88502ace4
carylee/s3-browser
project.clj
(defproject s3-browser "0.1.0-SNAPSHOT" :description "Demo project using Clojure 1.10's nav and the REBL to browse S3" :url "-browser" :license {:name "Public Domain" :url "/"} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/core.async "0.4.490"] [com.cog...
null
https://raw.githubusercontent.com/carylee/s3-browser/0267e9cbdd88d66828e00fb73196e2cb0f874b61/project.clj
clojure
(defproject s3-browser "0.1.0-SNAPSHOT" :description "Demo project using Clojure 1.10's nav and the REBL to browse S3" :url "-browser" :license {:name "Public Domain" :url "/"} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/core.async "0.4.490"] [com.cog...
a313b86543167268278118fd56d619df519a687e1599435772b1a95bda081041
ghcjs/ghcjs
t12243.hs
# LANGUAGE AllowAmbiguousTypes , DataKinds , ExplicitForAll , KindSignatures , OverloadedLabels , RebindableSyntax , ScopedTypeVariables , ImplicitPrelude # , DataKinds , ExplicitForAll , Kind...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/overloadedrecflds/t12243.hs
haskell
# LANGUAGE AllowAmbiguousTypes , DataKinds , ExplicitForAll , KindSignatures , OverloadedLabels , RebindableSyntax , ScopedTypeVariables , ImplicitPrelude # , DataKinds , ExplicitForAll , Kind...
4fb751bdd674f579384c458f95b0b29aeb69487521a8332ffce1b4041413f74a
inria-parkas/sundialsml
ark_brusselator1D_manyvec.ml
--------------------------------------------------------------- { { { * Programmer(s ): @ LLNL * @ SMU * --------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright ( c ) 2002 - 2021 , National Security * and Southern Methodist Univers...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a72ebfc84b55470ed97fbb0b45d700deebfc1664/examples/arkode/C_manyvector/ark_brusselator1D_manyvec.ml
ocaml
realtype constant macros user data structure number of intervals mesh spacing constant forcing on u steady-state value of w diffusion coeff for u diffusion coeff for v diffusion coeff for w stiffness parameter fe routine to compute the diffusion portion of the ODE RHS. ...
--------------------------------------------------------------- { { { * Programmer(s ): @ LLNL * @ SMU * --------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright ( c ) 2002 - 2021 , National Security * and Southern Methodist Univers...
8e642f09078be30852b81a432cd9db2911f8f9c4f9b0196bb7f45f2c5e7cd861
MercuryTechnologies/ghc-specter
Run.hs
| This module is originated from Concur . Replica . Run . However , we use IHTML instead of HTML . module GHCSpecter.UI.ConcurReplica.Run ( run, runDefault, runDefaultWithStyle, ) where import Concur.Core (SuspendF (Forever, StepBlock, StepIO, StepSTM, StepView), Widget, step) import Control.Concurrent.STM (at...
null
https://raw.githubusercontent.com/MercuryTechnologies/ghc-specter/d911e610e0ee0fb43497dad9e762fec2abbf9e08/daemon/src/GHCSpecter/UI/ConcurReplica/Run.hs
haskell
| No need to use this directly if you're using 'run' or 'runDefault'.
| This module is originated from Concur . Replica . Run . However , we use IHTML instead of HTML . module GHCSpecter.UI.ConcurReplica.Run ( run, runDefault, runDefaultWithStyle, ) where import Concur.Core (SuspendF (Forever, StepBlock, StepIO, StepSTM, StepView), Widget, step) import Control.Concurrent.STM (at...
0d5bcf6547dcbb1384c27c657a6456b9eff4d2e360795cf3db8443c08e6ceb6d
brendanhay/terrafomo
Settings.hs
-- This module is auto-generated. # LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # -- | Module : . Triton . Settings Copyright : ( c ) 2017 - 2018 License : ...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-triton/gen/Terrafomo/Triton/Settings.hs
haskell
This module is auto-generated. | Stability : auto-generated * PackageFilter | The @cns@ nested settings definition. ^ @disable@ - (Optional) Disable CNS for this instance (after create) ^ @services@ - (Optional) Assign CNS service names to this instance | Construct a new @cns@ settings value. | The @nic...
# LANGUAGE NoImplicitPrelude # # LANGUAGE RecordWildCards # # LANGUAGE StrictData # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - unused - imports # Module : . Triton . Settings Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Mai...
693cf5804e06178fc09a8b45d619584ca26d8c856e62c152384f01ccf960dac1
clj-commons/aleph
http.clj
(ns aleph.examples.http (:import [io.netty.handler.ssl SslContextBuilder]) (:require [aleph.http :as http] [clj-commons.byte-streams :as bs] [clojure.core.async :as a] [clojure.java.io :refer [file]] [manifold.deferred :as d] [manifold.stream :as s] [reitit.ring :as ring] [ring.middleware...
null
https://raw.githubusercontent.com/clj-commons/aleph/8a5ec7e6059363c2c30f13c8bce05c7aab01378e/examples/src/aleph/examples/http.clj
clojure
[Ring spec](-clojure/ring/blob/master/SPEC), which means it can be allow for asynchronous responses, however, it allows for the use of [Manifold](-commons/manifold) deferreds and streams. Uses of both will be illustrated below. ## building servers create a goroutine that emits incrementing numbers once every 100...
(ns aleph.examples.http (:import [io.netty.handler.ssl SslContextBuilder]) (:require [aleph.http :as http] [clj-commons.byte-streams :as bs] [clojure.core.async :as a] [clojure.java.io :refer [file]] [manifold.deferred :as d] [manifold.stream :as s] [reitit.ring :as ring] [ring.middleware...
526342133a527f42fa61aa9f1161733e207e831c5990677ead93d1cd3510d7d9
SimulaVR/godot-haskell
Physics2DDirectSpaceState.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Physics2DDirectSpaceState (Godot.Core.Physics2DDirec...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/Physics2DDirectSpaceState.hs
haskell
# NOINLINE bindPhysics2DDirectSpaceState_cast_motion # | Checks how far the shape can travel toward a point. If the shape can not move, the array will be empty. | Checks how far the shape can travel toward a point. If the shape can not move, the array will be empty. # NOINLINE bindPhysics2DDirectSpaceState_collide_sh...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.Physics2DDirectSpaceState (Godot.Core.Physics2DDirec...
1d7f722530f6034de29c85982d861143ce51867740399f8b777832db489d725f
auser/beehive
home_controller.erl
%%%------------------------------------------------------------------- %%% File : home_controller.erl Author : %%% Description : %%% Created : Fri Nov 13 11:43:49 PST 2009 %%%------------------------------------------------------------------- -module (home_controller). -include ("common.hrl"). -include (...
null
https://raw.githubusercontent.com/auser/beehive/dfe257701b21c56a50af73c8203ecac60ed21991/lib/erlang/apps/beehive/src/bh_rest/app_controllers/home_controller.erl
erlang
------------------------------------------------------------------- File : home_controller.erl Description : -------------------------------------------------------------------
Author : Created : Fri Nov 13 11:43:49 PST 2009 -module (home_controller). -include ("common.hrl"). -include ("beehive.hrl"). -include ("http.hrl"). -export ([get/2, post/2, put/2, delete/2]). get(_, _Data) -> {"beehive", ["apps", "nodes", "bees", "stats", "users"]}. post(_Path, _Data) -> app_error("unh...
9e1af009a23ff859bf3b5eee3e471ff9ee24d3c0d5a1f09345582bb37ae1974b
softwarelanguageslab/maf
R5RS_WeiChenRompf2019_scheme2java-2.scm
; Changes: * removed : 0 * added : 5 * swaps : 0 * negated predicates : 1 * swapped branches : 2 * calls to i d fun : 5 (letrec ((string->list (lambda (s) (letrec ((f (lambda (i) (if (< i (string-length s)) ...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_WeiChenRompf2019_scheme2java-2.scm
scheme
Changes:
* removed : 0 * added : 5 * swaps : 0 * negated predicates : 1 * swapped branches : 2 * calls to i d fun : 5 (letrec ((string->list (lambda (s) (letrec ((f (lambda (i) (if (< i (string-length s)) (cons ...
5e2cdbfdbfc4596488c41f0948388fb9e5ad308c29bb68062b50e01d2517b7ac
srid/neuron
ID.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # # LANGUAGE NoImplicitPrelude # module Neuron.Zettelkasten.ID ( ZettelID (..), Inval...
null
https://raw.githubusercontent.com/srid/neuron/39597ae4ed537db141f436666b8a136f86025ee9/src/Neuron/Zettelkasten/ID.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # ------- ------- | Characters, aside from alpha numeric characters, to allow in IDs This gets replaced with underscope in ID slug Allow some puctuation letters that are common in note titles Apply unicode normalization per
# LANGUAGE DeriveGeneric # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # LANGUAGE ViewPatterns # # LANGUAGE NoImplicitPrelude # module Neuron.Zettelkasten.ID ( ZettelID (..), InvalidID (..), Slug, indexZid, parseZettelID, allowedSpecialChars, idParse...
f7fc2e784ccbf1f717ed59bd3788bf5e73ea092482f3890dd9ff5340ad944b0f
webyrd/wreckto-verseo
numbers.scm
(defrel (appendo l s out) (conde [(== '() l) (== s out)] [(fresh (a d res) (== `(,a . ,d) l) (== `(,a . ,res) out) (appendo d s res))])) (define build-num (lambda (n) (cond ((odd? n) (cons 1 (build-num (quotient (- n 1) 2)))) ((and (not (zero? n)) (even?...
null
https://raw.githubusercontent.com/webyrd/wreckto-verseo/45ce27643a18ff7d6a8080f37a3e5d2ec984b051/faster-minikanren/numbers.scm
scheme
(defrel (appendo l s out) (conde [(== '() l) (== s out)] [(fresh (a d res) (== `(,a . ,d) l) (== `(,a . ,res) out) (appendo d s res))])) (define build-num (lambda (n) (cond ((odd? n) (cons 1 (build-num (quotient (- n 1) 2)))) ((and (not (zero? n)) (even?...
66ca5557b0d9a84a413ddde639c2386966b59e0207334a365c5d9baf163bc6a1
someodd/waffle
Progress.hs
| Handle events for ` ProgressMode ` module BrickApp.Handle.Progress where import qualified Graphics.Vty as V import qualified Brick.Main as M import qualified Brick.Types as T import BrickApp.Types import BrickApp.Types.Names import BrickApp.ModeAction.Progress...
null
https://raw.githubusercontent.com/someodd/waffle/71586b271878df4cb2368ae3bd6e2961cb79fa15/src/BrickApp/Handle/Progress.hs
haskell
and match from there TODO: handleProgressEvents FIXME: no need for this left/right nonsense because they're both should do this soon... This is extremely hacky!
| Handle events for ` ProgressMode ` module BrickApp.Handle.Progress where import qualified Graphics.Vty as V import qualified Brick.Main as M import qualified Brick.Types as T import BrickApp.Types import BrickApp.Types.Names import BrickApp.ModeAction.Progress...
3aa5d670d63527eb23cafaa9a3c231ebc3651569607be863d31d10fdb1abf43c
mikera/ironclad
test_units.clj
(ns ic.test.test-units (:use clojure.test) (:use [ic protocols map engine command game units]) (:require [mc.util :as mcu]) (:import [ic.units.Unit])) (deftest test-identity (let [u (unit "Steam Tank")] (is (= (ic.units/unit "Steam Tank") (ic.units/unit-type-map "Steam Tank"))) (is (= u (unit "Steam...
null
https://raw.githubusercontent.com/mikera/ironclad/ef647bcd097eeaf45f058d43e9e5f53ce910b4b2/src/test/clojure/ic/test/test_units.clj
clojure
off map onto map onto occupied hex get unit back, should now have a valid ID
(ns ic.test.test-units (:use clojure.test) (:use [ic protocols map engine command game units]) (:require [mc.util :as mcu]) (:import [ic.units.Unit])) (deftest test-identity (let [u (unit "Steam Tank")] (is (= (ic.units/unit "Steam Tank") (ic.units/unit-type-map "Steam Tank"))) (is (= u (unit "Steam...
3cb967a5e32f060b9be214241ecd5e77fc421afe6a08bfea45d733a785a7f39e
avsm/mirage-duniverse
textutils_kernel.ml
module Text_block = Text_block module Text_graph = Text_graph
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/textutils_kernel/src/textutils_kernel.ml
ocaml
module Text_block = Text_block module Text_graph = Text_graph
d3f5ca171f4388b6ad73ed4d69645ed0a6d6db3c95889e6401eaa4c301458330
cnuernber/dtype-next
pprint.clj
(ns tech.v3.datatype.pprint (:require [tech.v3.datatype.protocols :as dtype-proto] [tech.v3.datatype.packing :as packing])) ;; pretty-printing utilities for matrices (def ^:dynamic *number-format* "%.4G") (defn format-num [x] (if (integer? x) (str x) (format *number-format* (double x)))) (...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/4e43212942aafa0145640cf6b655bb83855f567d/src/tech/v3/datatype/pprint.clj
clojure
pretty-printing utilities for matrices
(ns tech.v3.datatype.pprint (:require [tech.v3.datatype.protocols :as dtype-proto] [tech.v3.datatype.packing :as packing])) (def ^:dynamic *number-format* "%.4G") (defn format-num [x] (if (integer? x) (str x) (format *number-format* (double x)))) (defn format-object [x] (if (number? x)...
bf1f1af300b620524f87acda3bb3318dc47e212793cad93963138a13b9cce69f
istathar/vaultaire
DayMapTest.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Data.ByteString import qualified Data.Map as Map import Test.Hspec import Vaultaire.DayMap main :: IO () main = hspec suite goodDayFile, badDayFile,nonZeroDayFile :: ByteString goodDayMap :: DayMap badDayFile = "wat?" nonZeroDayFile = "AAAAAAAABBBBBBB...
null
https://raw.githubusercontent.com/istathar/vaultaire/75603ea614b125568ca871e88280bd29b3aef4ba/tests/DayMapTest.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Data.ByteString import qualified Data.Map as Map import Test.Hspec import Vaultaire.DayMap main :: IO () main = hspec suite goodDayFile, badDayFile,nonZeroDayFile :: ByteString goodDayMap :: DayMap badDayFile = "wat?" nonZeroDayFile = "AAAAAAAABBBBBBBB" goodDayFile = "\x00\x00\x00\x00...
384ea7525a3971051ae8b888be3cbfd647ecf501361231134e9e9b3b817202f5
mfoemmel/erlang-otp
megaco_binary_term_id.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2000 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/megaco/src/binary/megaco_binary_term_id.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2000 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " Purpose : Handle ASN.1 BER encoding of M...
1895c4271ad47c0719ee1537a1a631b9317d6363b839825e0091735f020d7bbf
skanev/playground
15-tests.scm
(require rackunit rackunit/text-ui) (load "helpers/simulator.scm") (load "../15.scm") (define sicp-5.15-tests (test-suite "Tests for SICP exercise 5.15" (test-begin "Counting instructions" (let ((machine (make-machine '(a) '() '(begin ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/05/tests/15-tests.scm
scheme
(require rackunit rackunit/text-ui) (load "helpers/simulator.scm") (load "../15.scm") (define sicp-5.15-tests (test-suite "Tests for SICP exercise 5.15" (test-begin "Counting instructions" (let ((machine (make-machine '(a) '() '(begin ...
7f75f86867fd716b62c6024381a06bd7f68d11a392b9ed2e742bd49ee04d5747
cffi/cffi
foreign-globals.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; foreign-globals.lisp --- Tests on foreign globals. ;;; Copyright ( C ) 2005 - 2007 , loliveira(@)common - lisp.net > ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files...
null
https://raw.githubusercontent.com/cffi/cffi/677cabae64b181330a3bbbda9c11891a2a8edcdc/tests/foreign-globals.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- foreign-globals.lisp --- Tests on foreign globals. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
Copyright ( C ) 2005 - 2007 , loliveira(@)common - lisp.net > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY ...
abde2ccc4cd53bbb066ef25763af3f059d36cbce2a0ce1d783920bc693bd2f88
tsloughter/kuberl
kuberl_v1_persistent_volume_claim_spec.erl
-module(kuberl_v1_persistent_volume_claim_spec). -export([encode/1]). -export_type([kuberl_v1_persistent_volume_claim_spec/0]). -type kuberl_v1_persistent_volume_claim_spec() :: #{ 'accessModes' => list(), 'dataSource' => kuberl_v1_typed_local_object_reference:kuberl_v1_typed_local_object_reference(), ...
null
https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_persistent_volume_claim_spec.erl
erlang
-module(kuberl_v1_persistent_volume_claim_spec). -export([encode/1]). -export_type([kuberl_v1_persistent_volume_claim_spec/0]). -type kuberl_v1_persistent_volume_claim_spec() :: #{ 'accessModes' => list(), 'dataSource' => kuberl_v1_typed_local_object_reference:kuberl_v1_typed_local_object_reference(), ...
4e81f350e13f09ace2ef73c9a6549fad7aa0fc1e5d0ef9cf99671896bd53ba6b
boris-ci/boris
Commit.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - name - shadowing # module Boris.Http.Template.Page.Commit where import qualified Projector.Html.Runtime import Boris.Http.Template.Data.Build.Data import Boris.Http.Template.Data....
null
https://raw.githubusercontent.com/boris-ci/boris/c321187490afc889bf281442ac4ef9398b77b200/boris-http/gen/Boris/Http/Template/Page/Commit.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - name - shadowing # module Boris.Http.Template.Page.Commit where import qualified Projector.Html.Runtime import Boris.Http.Template.Data.Build.Data import Boris.Http.Template.Data.Commit.Data import Boris.Http.Templ...
f7c78543d1b3e355aa2332df97624b5f0afc6db8230bb3e90a9e86071195fac3
vseloved/progalgs-code
ch5-arrays.lisp
(in-package :progalgs) (defun map-vec (fn vec) "Map function FN over each element of VEC and return the new vector with the results." (let ((rez (make-array (length vec)))) (dotimes (i (length vec)) (setf (aref rez i) (funcall fn (aref vec i)))) rez)) (deftest map-vec () (should be equalp #(2 ...
null
https://raw.githubusercontent.com/vseloved/progalgs-code/f16786ad2ff153dcd6f66b89da663002efd44678/ch5-arrays.lisp
lisp
that is evaluated only after the loop finishes normally if it does we have found a completely sorted permutation! current variant is not sorted, skip it this is the Lisp swap operator swap the pivot (last element) in its proper place decrement i to reprocess newly swapped point so we need to copy it to preserve ...
(in-package :progalgs) (defun map-vec (fn vec) "Map function FN over each element of VEC and return the new vector with the results." (let ((rez (make-array (length vec)))) (dotimes (i (length vec)) (setf (aref rez i) (funcall fn (aref vec i)))) rez)) (deftest map-vec () (should be equalp #(2 ...
79910351777b6e5ccfe9d4deab0519ca2951b761a8aeb1496e9e4e601fbc5af2
Practical-Formal-Methods/adiff
Instrumentation.hs
MIT License -- Copyright ( c ) 2018 -- -- 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, merge, pu...
null
https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/adiff/src/ADiff/Instrumentation.hs
haskell
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 sell furnished to do so, subject to the following conditions: The above copyright notice...
MIT License Copyright ( c ) 2018 in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS...
22fd1ae821d8a1ea43e6b72e54df779cf381920e559df95cf8fa48832da5de46
rtoy/ansi-cl-tests
environment-functions.lsp
;-*- Mode: Lisp -*- Author : Created : Sat Dec 11 22:15:54 2004 Contains : Tests of various string - returning functions from section 25 (in-package :cl-test) (defmacro def-env-tests (fn-name) (flet ((%name (suffix) (intern (concatenate 'string (symbol-name fn-name) suffix) ...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/environment-functions.lsp
lisp
-*- Mode: Lisp -*-
Author : Created : Sat Dec 11 22:15:54 2004 Contains : Tests of various string - returning functions from section 25 (in-package :cl-test) (defmacro def-env-tests (fn-name) (flet ((%name (suffix) (intern (concatenate 'string (symbol-name fn-name) suffix) (find-package :...
3317b9c0545f909937aa495063f82f6e3b066968b3e7da27cf0c6caeeed05674
commercialhaskell/stack
Sub.hs
module Sub.Sub ( someFunc ) where someFunc :: IO () someFunc = putStrLn "someFunc"
null
https://raw.githubusercontent.com/commercialhaskell/stack/255cd830627870cdef34b5e54d670ef07882523e/test/integration/tests/cabal-sublibrary-dependency/files/src/Sub/Sub.hs
haskell
module Sub.Sub ( someFunc ) where someFunc :: IO () someFunc = putStrLn "someFunc"
0c185821861f9c33a8b0cb6619d9c530724712e4cdb6b4ccb83c6640e2316d4f
rtoy/cmucl
float.lisp
;;; -*- Package: SPARC -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . ;;; (ext:file-comment "$Header: src/compiler/sparc/float.lisp $") ;;; ;;...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/compiler/sparc/float.lisp
lisp
-*- Package: SPARC -*- ********************************************************************** ********************************************************************** Move functions: temporarily modified but is restored if restore-offset is true. temporarily modified but is restored if restore-offset is true...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . (ext:file-comment "$Header: src/compiler/sparc/float.lisp $") This file contains floating point support for the MIPS . Written by Sparc conversion by . Complex - floa...
470065b7c5cbc6ef729e2e195cf0a751e134b6e8946777247b5d0dd811c954c3
haskell-effectful/effectful
Plugin.hs
# LANGUAGE CPP # module Effectful.Plugin (plugin) where import Data.Either import Data.Function import Data.IORef import Data.Maybe import Data.Set (Set) import Data.Traversable import qualified Data.Set as Set import GHC.Core.Class (Class) import GHC.Core.InstEnv (InstEnvs, lookupInstEnv) import GHC.Core.TyCo.Rep (P...
null
https://raw.githubusercontent.com/haskell-effectful/effectful/7a23dc47692c428eadd3306af1a61c4d158ba9ac/effectful-plugin/src/Effectful/Plugin.hs
haskell
-------------------------------------- -------------------------------------- - 'allGivens' are constraints already in our context, In the following notes, the words "give/given" and "want/wanted" all refer to this specific technical concept: given constraints are those that we can use, and wanted constraints ar...
# LANGUAGE CPP # module Effectful.Plugin (plugin) where import Data.Either import Data.Function import Data.IORef import Data.Maybe import Data.Set (Set) import Data.Traversable import qualified Data.Set as Set import GHC.Core.Class (Class) import GHC.Core.InstEnv (InstEnvs, lookupInstEnv) import GHC.Core.TyCo.Rep (P...
923d5eec486d85fa441f68c6f70fd913cef0279e3e58f866e43c37e4857c2179
samrushing/irken-compiler
sexp.scm
;; -*- Mode: Irken -*- ;; an s-expression datatype. (datatype sexp (:list (list sexp)) (:symbol symbol) (:string string) (:char char) (:bool bool) (:int int) (:undef) (:vector (list sexp)) (:record (list field)) (:cons symbol symbol) ;; constructor ':' syntax (:attr sexp symbol) ;; attribute '.'...
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/lib/sexp.scm
scheme
-*- Mode: Irken -*- an s-expression datatype. constructor ':' syntax attribute '.' syntax ----- sexp format macro ------ build a (list field) exp is (list sexp) XXX append & splice? already a sexp build a (list sexp) build a sexp:list ------------------------------ utility functions build an s-expression ...
(datatype sexp (:list (list sexp)) (:symbol symbol) (:string string) (:char char) (:bool bool) (:int int) (:undef) (:vector (list sexp)) (:record (list field)) ) (datatype field (:t symbol sexp) ) (defmacro sexprec (sexprec) -> '() (sexprec (name val) rest ...) -> (list:cons (fi...
056f01bf8603d3723e04664b158a4cd36907a17f582dc819b5a626329a0cfccc
blindglobe/common-lisp-stat
test.lisp
;;; This file is used to support interactive testing for LISP-MATRIX ;;; it manages to remind (me) how to stage the development. (ql:quickload :antik) (ql:quickload :cls) (in-package :lisp-stat-unittests) (run-lisp-stat-tests) ; long summary (describe (run-lisp-stat-tests)) ; long summary cur...
null
https://raw.githubusercontent.com/blindglobe/common-lisp-stat/0c657e10a4ee7e8d4ef3737f8c2d4e62abace2d8/src/unittests/test.lisp
lisp
This file is used to support interactive testing for LISP-MATRIX it manages to remind (me) how to stage the development. long summary long summary code for memory (run-lisp-stat-tests) ; quick summary (remove-test :test-case 'data-initialize :suite 'lisp-stat-ut) EVERYTHING (run-lisp-stat-t...
(ql:quickload :antik) (ql:quickload :cls) (in-package :lisp-stat-unittests) current : 55 tests , 3 errors , 16 failures (describe (run-test :test-case 'bind2-dims-conditions)) (describe (run-test :test-case 'r-apply-columns)) (describe (run-test :test-case 'diagonalf-vectors)) (describe (run-test :test-case...
1b72b61898ff89c0015b59a95b96b7e50012e0a47a09e52efbdd04256e40fa32
cmsc430/www
parse.rkt
#lang racket (provide parse) (require "ast.rkt") ;; S-Expr -> Expr (define (parse s) (match s [(? exact-integer?) (Int s)] [(list (? op1? o) e) (Prim1 o (parse e))] [_ (error "Parse error")])) ;; Any -> Boolean (define (op1? x) (memq x '(add1 sub1)))
null
https://raw.githubusercontent.com/cmsc430/www/99cece16a9b2cd1c011eab07d76d30d8b963c458/langs/blackmail/parse.rkt
racket
S-Expr -> Expr Any -> Boolean
#lang racket (provide parse) (require "ast.rkt") (define (parse s) (match s [(? exact-integer?) (Int s)] [(list (? op1? o) e) (Prim1 o (parse e))] [_ (error "Parse error")])) (define (op1? x) (memq x '(add1 sub1)))
7ae431195bb092bb63bd54a441c5753d6d3204c9e4ad2a7c6a290e37b3f90a6b
cloverage/cloverage
custom_reporter.clj
(ns cloverage.custom-reporter "Testing for a custom reporter") (defn reporter-fn [{:keys [:args]}] (first args))
null
https://raw.githubusercontent.com/cloverage/cloverage/dba7d72547748cf494f2bbc784b8a70ed8d9901f/cloverage/sample/cloverage/custom_reporter.clj
clojure
(ns cloverage.custom-reporter "Testing for a custom reporter") (defn reporter-fn [{:keys [:args]}] (first args))
a5f4b8043127a3c7bfd8c15952eedb0796438afcc236096140e72e365bd6bfa0
falsetru/htdp
40.4.3.scm
#lang racket (define (swap v) (local ((define tmp (vector-ref v 0))) (begin (vector-set! v 0 (vector-ref v 1)) (vector-set! v 1 tmp)))) (require rackunit) (require rackunit/text-ui) (define swap-tests (test-suite "Test for swap" (test-case "" (define v (vector 3 4)) ...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/40/40.4.3.scm
scheme
#lang racket (define (swap v) (local ((define tmp (vector-ref v 0))) (begin (vector-set! v 0 (vector-ref v 1)) (vector-set! v 1 tmp)))) (require rackunit) (require rackunit/text-ui) (define swap-tests (test-suite "Test for swap" (test-case "" (define v (vector 3 4)) ...
c9cebb37b7a943c8cab3a3291dfbded460dfcc7dd849ddb326d1da6fd082e822
msa/cloudberry
mysteps.erl
-module(mysteps). -compile(export_all). step("Step without parameter") -> io:format("Step without parameter"); step("Another step") -> io:format("Running another step"); step("Givet att jag märker det") -> io:format("Märksteg"); step("Nar den har storyn kors") -> io:format("Körsteg"); step("Sa blir jag gla...
null
https://raw.githubusercontent.com/msa/cloudberry/812e3da843417ffd2d12e3f241a43d7f91ee4ab1/src/mysteps.erl
erlang
-module(mysteps). -compile(export_all). step("Step without parameter") -> io:format("Step without parameter"); step("Another step") -> io:format("Running another step"); step("Givet att jag märker det") -> io:format("Märksteg"); step("Nar den har storyn kors") -> io:format("Körsteg"); step("Sa blir jag gla...
5b86d312694da33b01cfa9735735fbc6b8aac07a362ae591079a0fef6e51bd9f
ijvcms/chuanqi_dev
buff_base_lib.erl
%%%------------------------------------------------------------------- @author zhengsiying ( C ) 2015 , < COMPANY > %%% @doc %%% %%% @end Created : 24 . 九月 2015 下午4:20 %%%------------------------------------------------------------------- -module(buff_base_lib). -include("common.hrl"). -include("record.hrl"). -...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/buff/buff_base_lib.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API ==================================================================== API functions ==================================================================== 其他buff统一处理...
@author zhengsiying ( C ) 2015 , < COMPANY > Created : 24 . 九月 2015 下午4:20 -module(buff_base_lib). -include("common.hrl"). -include("record.hrl"). -include("cache.hrl"). -include("config.hrl"). -include("proto.hrl"). -include("language_config.hrl"). -export([ init/1, trigger/4, trigger/3, store_buff/3, re...
8aebe94387a59a138c1be8dd1b6248c60e9ee38557f3f19e3ad66ca0ad522e39
m-2k/erlach
db_attachment.erl
-module(db_attachment). % -include_lib("kvs/include/kvs.hrl"). -include_lib("kvs/include/metainfo.hrl"). % -include_lib("kvs/include/feed.hrl"). % -include_lib("db/include/db.hrl"). -include_lib("db/include/attachment.hrl"). -compile(export_all). rr(kvs ) , rr("apps / db / include / attachment.hrl " ) , rr("deps / k...
null
https://raw.githubusercontent.com/m-2k/erlach/ce0a19a0550c3457a1fc1d7c40e4f1cb577d7924/apps/db/src/db_attachment.erl
erlang
-include_lib("kvs/include/kvs.hrl"). -include_lib("kvs/include/feed.hrl"). -include_lib("db/include/db.hrl").
-module(db_attachment). -include_lib("kvs/include/metainfo.hrl"). -include_lib("db/include/attachment.hrl"). -compile(export_all). rr(kvs ) , rr("apps / db / include / attachment.hrl " ) , rr("deps / kvs / include / feed.hrl " ) . metainfo() -> #schema{name=kvs,tables=[ #table{name=attachment,container=...
74a61921f2c981ce72f6aeec94ad100748120483e7a945367c55f4a8743964a0
NovoLabs/gregor
consumer.clj
(ns gregor.consumer (:require [gregor.details.consumer :refer [make-consumer]] [gregor.details.transform :as xform] [gregor.details.transducer :refer [ex-handler]] [gregor.details.protocols.consumer :as consumer] [gregor.defaults :refer [default-output-buffer default-ti...
null
https://raw.githubusercontent.com/NovoLabs/gregor/017488d88abe23df1f0389080629d6f26ba2a84e/src/gregor/consumer.clj
clojure
is made in the go-loop created by `wakeup-loop` function. This exception is thrown when we call `.poll!` without being subscribed to any topics. We handle it here and return it as a control event. This will allow us to handle control events prior to being subscribed to a topic. Most important, we can handle the ...
(ns gregor.consumer (:require [gregor.details.consumer :refer [make-consumer]] [gregor.details.transform :as xform] [gregor.details.transducer :refer [ex-handler]] [gregor.details.protocols.consumer :as consumer] [gregor.defaults :refer [default-output-buffer default-ti...
5865b040b15c23fc10d5942618be9bcae96ab8d9fb876742580c1b425fcf41a0
discus-lang/ddc
Config.hs
module DDC.Driver.Config ( Config (..) , ConfigPretty (..) , defaultConfigPretty , prettyModeOfConfig , objectPathsOfConfig , exePathOfConfig , ViaBackend (..) , RuntimeLinkStrategy (..)) where import DDC.Build.Builder import DDC.Core.Simplif...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-driver/DDC/Driver/Config.hs
haskell
------------------------------------------------------------------------------------------------- | Configuration for main compiler stages. | Print status to console during builds. | Dump intermediate code. | Use bidirectional type inference on the input code. | Backend code generator to use | Runtime system conf...
module DDC.Driver.Config ( Config (..) , ConfigPretty (..) , defaultConfigPretty , prettyModeOfConfig , objectPathsOfConfig , exePathOfConfig , ViaBackend (..) , RuntimeLinkStrategy (..)) where import DDC.Build.Builder import DDC.Core.Simplif...
c4febb2537b1e785553a7b13ffdd5f76d9e86060bd74412cc52eeb2ae5097049
bobzhang/fan
ast_printer_test.ml
type u = v:(int->int) -> int type u = ?v:(int->int) -> int type u = ?v:int option list -> int type u = ?v:int option -> int type u = (int -> (int -> int) -> int)-> int ->int -> int type u = int option type u = (int,bool) option list (* type u = int (option , list ) *) type u = ?...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/printer/ast_printer_test.ml
ocaml
type u = int (option , list ) empty should not print
type u = v:(int->int) -> int type u = ?v:(int->int) -> int type u = ?v:int option list -> int type u = ?v:int option -> int type u = (int -> (int -> int) -> int)-> int ->int -> int type u = int option type u = ?v:int -> ?l:int -> m:int -> string type u = (a*b) -> ?v:int -> ?l:int...
6d84ce11f4938afb6b9a5d4d0f1007fdea3c0498963b84b301701ad1dc294c13
mbj/stratosphere
SingleHeaderProperty.hs
module Stratosphere.WAFv2.WebACL.SingleHeaderProperty ( SingleHeaderProperty(..), mkSingleHeaderProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data SingleHeade...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/wafv2/gen/Stratosphere/WAFv2/WebACL/SingleHeaderProperty.hs
haskell
module Stratosphere.WAFv2.WebACL.SingleHeaderProperty ( SingleHeaderProperty(..), mkSingleHeaderProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data SingleHeade...
37889e0355fa04270364d636356df3a10e841c86c2d4054444b367fa5750981b
ucsd-progsys/nate
ccomp.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/ocaml/utils/ccomp.ml
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 . let command cmdline = if !Clflags.ve...
d4b47c4be08b6c0a97e12e4d2c1497b9174125a51177ed872f89fef5ec1df553
ghcjs/jsaddle-dom
SVGPathSegLinetoVerticalRel.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGPathSegLinetoVerticalRel (setY, getY, SVGPathSegLinetoVerticalRel(..), gTypeSVGPathSegLinetoVerticalRel)...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/SVGPathSegLinetoVerticalRel.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.SVGPathSegLinetoVerticalRel (setY, getY, SVGPathSegLinetoVerticalRel(..), gTypeSVGPathSegLinetoVerticalRel) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, ma...
29f33e243517edff2a41da78e16583f82eb01c91b08d8f0aa410aac65e3abd26
2600hz-archive/whistle
erlsom_simple_form.erl
Copyright ( C ) 2006 - 2008 %%% This file is part of Erlsom . %%% Erlsom 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...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/erlsom-1.3/src/erlsom_simple_form.erl
erlang
it under the terms of the GNU Lesser General Public License as but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the </>. Author contact: user interface It is also possible to call erlsom_simple_form:callback from within another callb...
Copyright ( C ) 2006 - 2008 This file is part of Erlsom . Erlsom is free software : you can redistribute it and/or modify published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . Erlsom is distributed in the hope that it will be useful , GN...
5fac68ebdc91ccdf9a9f6b20cc6ee91036b9f8744f20571774dc696ccfd3cfe4
mikewin/cspbox-trading
hist_data.clj
(ns cspbox.trading.ecn.source.hist-data (:require [cspbox.trading.ecn.local.hist :refer [read-local-hist-day read-local-hist-min]] [cspbox.runtime.tools.csv :refer [change-keyword]] [cspbox.trading.ecn.format.conv :refer [select-bar-data]])) ;; generate data source for DSL using (defn pop-bu...
null
https://raw.githubusercontent.com/mikewin/cspbox-trading/76f9cfb780d5f36e5fbd6d8cec7c978a0e51cb94/src/cspbox/trading/ecn/source/hist_data.clj
clojure
generate data source for DSL using from old date select value need change the keyword name test
(ns cspbox.trading.ecn.source.hist-data (:require [cspbox.trading.ecn.local.hist :refer [read-local-hist-day read-local-hist-min]] [cspbox.runtime.tools.csv :refer [change-keyword]] [cspbox.trading.ecn.format.conv :refer [select-bar-data]])) (defn pop-buf "a fn wrap a buffer used like pop"...
6481df9bf2693c546a9ee101f308bc0d180bd7f035528e8cd5feb98b159a0585
herd/herdtools7
tblRename.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b86aec8db64f8812e19468893deb1cdf5bbcfb83/lib/tblRename.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2010 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
8526c59c1ecbd1a0748ba89dc0976d130ec49483e105f85accf36edd8f1f152c
B-Lang-org/bsc
TopUtils.hs
# LANGUAGE FlexibleInstances , GeneralizedNewtypeDeriving , CPP # module TopUtils where -- Haskell libs #if defined(__GLASGOW_HASKELL__) && (__GLASGOW_HASKELL__ >= 804) import Prelude hiding ((<>)) #endif import Text.Printf(printf) import System.IO(hFlush, stdout) import System.CPUTime(getCPUTime) import Control.Monad...
null
https://raw.githubusercontent.com/B-Lang-org/bsc/bd141b505394edc5a4bdd3db442a9b0a8c101f0f/src/comp/TopUtils.hs
haskell
Haskell libs XXX: from old-time package hbc libs import CSyntax import Debug.Trace MAKEFLAGS is a reserved variable that make uses for recursive calls; it should not be explicitly added to calls to 'make' dfltMAKEFLAGS = "" file name (last path component) package name module name or empty force evaluation ...
# LANGUAGE FlexibleInstances , GeneralizedNewtypeDeriving , CPP # module TopUtils where #if defined(__GLASGOW_HASKELL__) && (__GLASGOW_HASKELL__ >= 804) import Prelude hiding ((<>)) #endif import Text.Printf(printf) import System.IO(hFlush, stdout) import System.CPUTime(getCPUTime) import Control.Monad(when, unless) i...
5ef7dc02818fac52774464424b1fcda557b62595bc0dbd0b664d43fcfafa2a9d
Opetushallitus/ataru
application_handlers.cljs
(ns ataru.hakija.application-handlers (:require [clojure.string :as string] [re-frame.core :refer [reg-event-db reg-event-fx dispatch subscribe after inject-cofx]] [ataru.application-common.application-field-common :refer [sanitize-value]] [schema.core :as s] [ataru.app...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/6546e947e02e03fcc9f765b0f2062b5044deb133/src/cljs/ataru/hakija/application_handlers.cljs
clojure
Use handle attachment delete here since when calling with nil it 'initializes' an empty answer. Hacky solution but others would require much rework on the codebase. misc error in resumable file transfer, retry: rate limited: forbidden file type: generic error, e.g. transfer interrupted:
(ns ataru.hakija.application-handlers (:require [clojure.string :as string] [re-frame.core :refer [reg-event-db reg-event-fx dispatch subscribe after inject-cofx]] [ataru.application-common.application-field-common :refer [sanitize-value]] [schema.core :as s] [ataru.app...
f1ce9094ef53b6344fee85780568a70bfa842cb4026cc0b83de4a7595123fb82
IBM/probzelus
infer_ds_streaming_copy.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/3bdd60e3c4010452239bfe7bc79165802e5d941b/probzelus/inference/infer_ds_streaming_copy.ml
ocaml
* Inference with delayed sampling type 'a random_var = RV : ('b, 'a) Ds_streaming_low_level.ds_node -> 'a random_var module Gnodes = struct type t = int let equal (x: int) (y: int) = (x = y) let hash (x: int) = Hashtbl.hash x (\* let compare (x:int) (y:int) = compare x y *\) en...
* 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...
ecff16fdde1dd2e3ea46fb7d78e660e8b00e241e921470a4886d55edd38f63a3
codedownio/sandwich
Main.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE CPP # module Main where import Control.Concurrent import Control.Monad.IO.Class import Data.Time import GHC.Stack import Test.Sandwich import Test.Sandwich.Formatters.Print import Test.Sandwich.Formatters.Slack #ifndef mingw32_HOST_OS import Test.Sandwich.Formatters.Term...
null
https://raw.githubusercontent.com/codedownio/sandwich/80c5244a47a29c3ec20d68afec89297e014847b9/sandwich-slack/app/Main.hs
haskell
# LANGUAGE OverloadedStrings # * Util
# LANGUAGE CPP # module Main where import Control.Concurrent import Control.Monad.IO.Class import Data.Time import GHC.Stack import Test.Sandwich import Test.Sandwich.Formatters.Print import Test.Sandwich.Formatters.Slack #ifndef mingw32_HOST_OS import Test.Sandwich.Formatters.TerminalUI #endif simple :: TopSpec s...
2823c39c54c37b250bd6b382be0c621a46fb35ae2e5068000cc5e8d9642d99d9
ocurrent/ocaml-multicore-ci
test_index.ml
module Index = Ocaml_multicore_ci.Index module Ref_map = Index.Ref_map let jobs = let state f (variant, state) = Fmt.pf f "%s:%a" variant Index.pp_job_state state in Alcotest.testable (Fmt.Dump.list state) ( = ) let test_simple () = let owner = "owner" in let name = "name" in let repo = { Current_gith...
null
https://raw.githubusercontent.com/ocurrent/ocaml-multicore-ci/d46eecaf7269283a4b95ee40d2a9d6c7ec34a7bf/test/test_index.ml
ocaml
module Index = Ocaml_multicore_ci.Index module Ref_map = Index.Ref_map let jobs = let state f (variant, state) = Fmt.pf f "%s:%a" variant Index.pp_job_state state in Alcotest.testable (Fmt.Dump.list state) ( = ) let test_simple () = let owner = "owner" in let name = "name" in let repo = { Current_gith...
8a9d235500473148c881a37df7ebc5ff383b773ffd4bbff76cebd2d5e0b3cd6e
hasktorch/hasktorch
Native12.hs
-- generated by using spec/Declarations.yaml # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} module Torch.Internal.Managed.Native.Native12 where import Foreign.C.String import Foreign.C.Types imp...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/6233c173e1dd9fd7218fd13b104da15fc457f67e/libtorch-ffi/src/Torch/Internal/Managed/Native/Native12.hs
haskell
generated by using spec/Declarations.yaml # LANGUAGE OverloadedStrings # _upsample_bilinear2d_aa_tlbd :: ForeignPtr Tensor -> ForeignPtr IntArray -> CBool -> CDouble -> IO (ForeignPtr Tensor) _upsample_bilinear2d_aa_tlbd = _cast4 Unmanaged._upsample_bilinear2d_aa_tlbd :: ForeignPtr Tensor -> For...
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # module Torch.Internal.Managed.Native.Native12 where import Foreign.C.String import Foreign.C.Types import Foreign import Torch.Internal.Type import Torch.Internal.Class import Torch....
6b3c07bb35a1cfd21b15149ade27cfa77852c448d916534179c0e09716068e8a
broom-lang/broom
Matching.ml
open Streaming open Asserts module OvHashSet = CCHashSet.Make (struct type t = Fc.Type.ov let hash = Hashtbl.hash (* HACK *) let equal = (=) (* HACK *) end) module ResidualMonoid = struct include Monoid.OfSemigroup(Residual) let skolemized skolems m = match Vector1.of_vector skolems with ...
null
https://raw.githubusercontent.com/broom-lang/broom/36d4d9ae234a16bc4da287eef751e9447705ee58/compiler_prev/lib/Typechecker/Matching.ml
ocaml
HACK HACK Massage `typ` into a `With`, returning `(coercion, base, field_t)`: let template = T.WithL {base = Hole; label = label'; field = Hole} in Env.reportError env pos (Unusable (template, typ)) OPTIMIZE: computing `co` n times is probably redundant: # Resolution # Focalization # Subtyping TODO: uv ...
open Streaming open Asserts module OvHashSet = CCHashSet.Make (struct type t = Fc.Type.ov end) module ResidualMonoid = struct include Monoid.OfSemigroup(Residual) let skolemized skolems m = match Vector1.of_vector skolems with | Some skolems -> Option.map (fun r -> Residual.Skolems (skolems, r)) ...
8ee78bb61ebaff63f5b52fbd2064939c3c5128aa7133056cb76eef674955e203
gilith/hol-light
hardware-thm.ml
(* ========================================================================= *) (* PROPERTIES OF THE HARDWARE MODEL *) (* ========================================================================= *) export_theory ...
null
https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/opentheory/theories/hardware/hardware-thm.ml
ocaml
========================================================================= PROPERTIES OF THE HARDWARE MODEL ========================================================================= ------------------------------------------------------------------------- Cycles are the ...
export_theory "hardware-thm";; let mk_wire_signal = prove (`!s t. signal (mk_wire s) t = snth s t`, REWRITE_TAC [signal_def; wire_tybij]);; export_thm mk_wire_signal;; let signal_eq_imp = prove (`!w1 w2. (!t. signal w1 t = signal w2 t) ==> w1 =...
a374be6f888f09293cad0a2a4bd58ae9cb4c39d61f3b296477b42f0a05088b66
ekmett/haskell
Par.hs
module Par where -- internal state of a Worker data Worker = Worker { ident : : { - # UNPACK # -- internal state of a Worker data Worker = Worker { ident :: {-# UNPACK #-} !Int , pool :: !(Deque (Fiber ())) , workers :: !(MutableArray RealWorld Worker) -- Other Workers. They will get shuffled as ...
null
https://raw.githubusercontent.com/ekmett/haskell/37ad048531f5a3a13c6dfbf4772ee4325f0e4458/par/src/Par.hs
haskell
internal state of a Worker internal state of a Worker # UNPACK # Other Workers. They will get shuffled as we schedule work stealing # UNPACK # # UNPACK # # UNPACK #
module Par where data Worker = Worker { ident : : { - # UNPACK # data Worker = Worker , pool :: !(Deque (Fiber ())) , seed :: !(Gen RealWorld) } -}
e1841f105cd9ce6f706e6bdabed2c8406006698090b8bc5d3ccb07f34e1eaff5
jorams/birch
parse.lisp
(defpackage :birch.test/parse (:use :cl :birch/parse :birch/replies :prove)) (in-package :birch.test/parse) (diag "Parse tests") (plan 3) (deftest "parse-prefix" (plan 3) (is (multiple-value-list (parse-prefix ":WiZ!")) '("WiZ" "jto" "tolsun.oulu.fi")) (is (multiple-value-list (parse-prefix ":")) ...
null
https://raw.githubusercontent.com/jorams/birch/50f1313cabb89c1ec2f275cdc4fb10bd145fdd9d/test/parse.lisp
lisp
Also test replies, whose primary use is in parsing
(defpackage :birch.test/parse (:use :cl :birch/parse :birch/replies :prove)) (in-package :birch.test/parse) (diag "Parse tests") (plan 3) (deftest "parse-prefix" (plan 3) (is (multiple-value-list (parse-prefix ":WiZ!")) '("WiZ" "jto" "tolsun.oulu.fi")) (is (multiple-value-list (parse-prefix ":")) ...
f89cb118983dc26f448e35bc07825d9489c3502e1c50f80750e35e8f8862a31a
hasktorch/hasktorch
Transformer.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplicatio...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/cf0ed1aba9c41123ba46f7c0788a4df10fbfe1ef/hasktorch/src/Torch/Typed/NN/Transformer.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE GADTs # # OPTIONS_GHC -fconstraint-solver-iterations=0 # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ | spec for dropout | in-projection for query | in-projection fo...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
26fca7c55e25228e6175e9aa8f9e9e4427f7f32d1d6a0d1d99d1563217a6ea03
gregorycollins/hashtables
Main.hs
# LANGUAGE BangPatterns # # LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # module Main (main) where import Control.DeepSeq import Control.Monad import Control.Monad.ST import Control.Monad.Trans import Data.Benchmarks.Uno...
null
https://raw.githubusercontent.com/gregorycollins/hashtables/5775cf6d01d759e76b56ee650ea5efdaa61531ca/benchmark/src/Main.hs
haskell
---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ------------...
# LANGUAGE BangPatterns # # LANGUAGE CPP # # LANGUAGE GeneralizedNewtypeDeriving # module Main (main) where import Control.DeepSeq import Control.Monad import Control.Monad.ST import Control.Monad.Trans import Data.Benchmarks.Uno...
390524dfc0bdabcdbb8341ace26381651407047b93eaac75f01d008fff9b5805
input-output-hk/voting-tools
Esqueleto.hs
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # module Cardano.Catalyst.Query.Esqueleto where import Cardano.Catalyst.Query.Types (Query) import Cardano.Catalyst.Registra...
null
https://raw.githubusercontent.com/input-output-hk/voting-tools/d14c5a456dc440b1dfe7901b6f19e53e8aadea12/src/Cardano/Catalyst/Query/Esqueleto.hs
haskell
^ Tx Id ^ Registration Tx Metadata Reconstruct full JSON from individual metadata entries Given a snapshot of the txins and outs before the given slot number, return those that haven't been spent. Ensure every stake hash asked for is represented to ensure that the size of the input list matches the size of the o...
# LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE TypeOperators # module Cardano.Catalyst.Query.Esqueleto where import Cardano.Catalyst.Query.Types (Query) import Cardano.Catalyst.Registra...
7acb1633ea597412e3d5f8b9ac9403b333e48f8d3c9f582fb46eaeb6b14e1898
Cahu/krpc-hs
Tuple.hs
# LANGUAGE BangPatterns , DeriveDataTypeable , FlexibleInstances , MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - unused - imports # module PB.KRPC.Tuple (Tuple(..)) where import Prelude ((+), (/)) import qualified Prelude as Prelude' import qualified Data.Typeable as Prelude' import qualified Data.Data as Prelu...
null
https://raw.githubusercontent.com/Cahu/krpc-hs/418f88f2acad8d50dd716d9a3477178332f00806/src/PB/KRPC/Tuple.hs
haskell
# LANGUAGE BangPatterns , DeriveDataTypeable , FlexibleInstances , MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - unused - imports # module PB.KRPC.Tuple (Tuple(..)) where import Prelude ((+), (/)) import qualified Prelude as Prelude' import qualified Data.Typeable as Prelude' import qualified Data.Data as Prelu...
3e2fd7e265436142ea323303529db76ad14d08742f8e690154e9043e07b2fc42
circleci/stefon
reference.clj
(ns stefon.asset.reference (:refer-clojure :exclude [compile]) (:require [stefon.asset :as asset] [stefon.digest :as digest] [clojure.java.shell :as shell] [clojure.string :as str] [ring.util.mime-type :as mime] [stefon.util :refer (dump)]) (:import org....
null
https://raw.githubusercontent.com/circleci/stefon/7c36114923ef7ec41316e22354d2e31217a1a416/stefon-core/src/stefon/asset/reference.clj
clojure
strip quotes recurse to handle multiple entries per line
(ns stefon.asset.reference (:refer-clojure :exclude [compile]) (:require [stefon.asset :as asset] [stefon.digest :as digest] [clojure.java.shell :as shell] [clojure.string :as str] [ring.util.mime-type :as mime] [stefon.util :refer (dump)]) (:import org....
c609f84377b9c8117f0c3560d71f3bd02a4262782e277e7d66856b34a104a422
mflatt/sirmail
main.rkt
(module main scheme/base (require "sirmail.rkt"))
null
https://raw.githubusercontent.com/mflatt/sirmail/5a08636d126ea04b5c903ab42a6e7eb2b143d864/sirmail/main.rkt
racket
(module main scheme/base (require "sirmail.rkt"))
d4346dd508b8a5fd7f6b8f3f8f7aa4052507d02cc4c3740cba17beb69e2692ac
kuhumcst/DanNet
i18n.cljc
(ns dk.cst.dannet.web.i18n "Functions for working with RDF LangStrings." #?(:clj (:require [ont-app.vocabulary.lstr :as lstr] [clojure.core.memoize :as memo]) :cljs (:require [ont-app.vocabulary.lstr :as lstr :refer [LangStr]])) #?(:clj (:import [ont_app.vocabulary.lstr LangStr]))) ;; ...
null
https://raw.githubusercontent.com/kuhumcst/DanNet/00f088341b68d7bf94b90bc690eb049627799229/src/main/dk/cst/dannet/web/i18n.cljc
clojure
TODO: derive dynamically?
(ns dk.cst.dannet.web.i18n "Functions for working with RDF LangStrings." #?(:clj (:require [ont-app.vocabulary.lstr :as lstr] [clojure.core.memoize :as memo]) :cljs (:require [ont-app.vocabulary.lstr :as lstr :refer [LangStr]])) #?(:clj (:import [ont_app.vocabulary.lstr LangStr]))) (de...
fb2f9b15ac6df8aa932eac433e361b558064705fb5112630ddb1980395aaf65c
kelamg/HtDP2e-workthrough
ex465.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex465) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Generative-Recursion/ex465.rkt
racket
about the language level of this file in a form that our tools can easily process. interpretation represents a system of linear equations An Equation is a [List-of Number]. interpretation if (list a1 ... an b) is an Equation, a1, ..., an are the left-hand-side variable coefficients and b is the right-hand side ...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex465) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/abstraction) An SOE is a non - empty...
9391c249b1436a91dfad6f7265ad64d6cd225759b6252d8d4003145ecf3d0387
janestreet/expect_test_helpers_async
test_printf_via_async_and_core.ml
open! Core open! Async open! Import let%expect_test "{Core,Async}.printf" = Core.printf "Core.printf\n"; Async.printf "Async.printf\n"; [%expect {| Core.printf Async.printf |}]; return () ;; let%expect_test "{Async,Core}.printf" = Async.printf "Async.printf\n"; Core.printf "Core.printf\n"; [%exp...
null
https://raw.githubusercontent.com/janestreet/expect_test_helpers_async/d17cc3dd46abfbe6f09755e55efe04d28ba8d624/test/test_printf_via_async_and_core.ml
ocaml
open! Core open! Async open! Import let%expect_test "{Core,Async}.printf" = Core.printf "Core.printf\n"; Async.printf "Async.printf\n"; [%expect {| Core.printf Async.printf |}]; return () ;; let%expect_test "{Async,Core}.printf" = Async.printf "Async.printf\n"; Core.printf "Core.printf\n"; [%exp...
b36d2d6f193b2eb6ec410caa4c5badbd820d6f2907df49dfb2e531fa82ab22a6
returntocorp/semgrep
Parse.mli
an ml file and extract the type definitions Parse an ml file and extract the type definitions *) val extract_typedefs_from_ml_file : Common.filename -> Ast_ml.type_declaration list list helpers used also in Test_otarzan.ml val parse : Common.filename -> Ast_ml.program
null
https://raw.githubusercontent.com/returntocorp/semgrep/855abad9ada6ea5fd72d437fd69ff2e5fa42c1f1/tools/otarzan/lib/Parse.mli
ocaml
an ml file and extract the type definitions Parse an ml file and extract the type definitions *) val extract_typedefs_from_ml_file : Common.filename -> Ast_ml.type_declaration list list helpers used also in Test_otarzan.ml val parse : Common.filename -> Ast_ml.program
bf321623cf1b2f26a8b8ac464b95561ee9e724e605f22df3030f9c0b1b6c3be1
ocaml/dune
id.mli
module type S = sig type t [@@immediate] include Comparable_intf.S with type key := t module Table : Hashtbl.S with type key = t (** Generate a new id. *) val gen : unit -> t (** Get the next id that would be generated, without actually generating it. *) val peek : unit -> t (** Convert the id to a...
null
https://raw.githubusercontent.com/ocaml/dune/714626f4d408e5c71c24ba91d0d520588702ec52/otherlibs/stdune/src/id.mli
ocaml
* Generate a new id. * Get the next id that would be generated, without actually generating it. * Convert the id to an integer. * A functor to create a new ID generator module.
module type S = sig type t [@@immediate] include Comparable_intf.S with type key := t module Table : Hashtbl.S with type key = t val gen : unit -> t val peek : unit -> t val to_int : t -> int * Compare two ids . val compare : t -> t -> Ordering.t val equal : t -> t -> bool val hash : t -> int ...
ca44910a1d466f208075071b4b4af2706013117d6b19f6bf54072b590ea5f80a
atlas-engineer/nyxt
tokenize.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :analysis) (defun word-tokenize (string &key (remove-stop-words t) (stem nil) (down-case t) (alphabetic t)) "Split a string into a list of words." (let* ((alpha-scanner (cl-ppcre:create-scanner "^[A-Za-z]*$"...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/39429c7f6b61b1d1723b998e831c173a4c3ddb9b/libraries/analysis/tokenize.lisp
lisp
TODO: Use "\\p{Terminal_Punctuation}" regexp instead to catch all terminal punctuation marks, including "," and ";"?
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :analysis) (defun word-tokenize (string &key (remove-stop-words t) (stem nil) (down-case t) (alphabetic t)) "Split a string into a list of words." (let* ((alpha-scanner (cl-ppcre:create-scanner "^[A-Za-z]*$"...
a715286f1d1ea9baa2f3945a71f26a3eaa631f145f4c7b499a083f696b1a3851
ruricolist/FXML
xmls-compat.lisp
;;;; xml-compat.lisp -- XMLS-compatible data structures ;;;; This file is part of the FXML parser , released under Lisp - LGPL . ;;;; See file COPYING for details. ;;;; Developed 2004 for headcraft - / Copyright : (defpackage fxml.xmls (:use :cl :fxml.runes) (:export #:make-node #:node-name #:node-ns #:nod...
null
https://raw.githubusercontent.com/ruricolist/FXML/a0e73bb48ef03adea94a55986cc27f522074c8e1/xml/xmls-compat.lisp
lisp
xml-compat.lisp -- XMLS-compatible data structures See file COPYING for details. Knoten Be careful to accept both rods and strings here, so that xmls can be used with strings even if fxml is configured to use octet string rods. erweitern, sonst ist das Dokument nicht normalisiert. let the normalizer fix it let...
This file is part of the FXML parser , released under Lisp - LGPL . Developed 2004 for headcraft - / Copyright : (defpackage fxml.xmls (:use :cl :fxml.runes) (:export #:make-node #:node-name #:node-ns #:node-attrs #:node-children #:make-xmls-builder #:map-node #:make-xpath-navigator)) (in-packa...
99def091bdbafd803d61ade529a343f4daf3e6781c9237b0a48cf6a51a4bd42f
janestreet/core_unix
bigstring_unix.mli
* String type based on [ Bigarray ] , for use in I / O and C - bindings , extending { { ! Core . Bigstring}[Core . ] } . {{!Core.Bigstring}[Core.Bigstring]}. *) open! Core module Unix := Core_unix include module type of struct include Core.Bigstring end * Type of I / O errors . In [ IOError ( n , ex...
null
https://raw.githubusercontent.com/janestreet/core_unix/abfad608bb4ab04d16478a081cc284a88c3b3184/bigstring_unix/src/bigstring_unix.mli
ocaml
* default = [length bstr - pos] * default = [length bstr - pos] * default = [length bstr - pos] * default = [length bstr - pos] * [recvfrom_assume_fd_is_nonblocking sock ?pos ?len bstr] reads up to [len] bytes into bigstring [bstr] starting at position [pos] from socket [sock] without yielding to other OCam...
* String type based on [ Bigarray ] , for use in I / O and C - bindings , extending { { ! Core . Bigstring}[Core . ] } . {{!Core.Bigstring}[Core.Bigstring]}. *) open! Core module Unix := Core_unix include module type of struct include Core.Bigstring end * Type of I / O errors . In [ IOError ( n , ex...
6597be1658e17e446a45882d884d76599c4e990c74ebe24fef8f984426429c45
jyh/metaprl
itt_hoas_normalize.mli
* Additional well - formedness rule for bterms . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2005 Mojave Group , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU Ge...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/reflection/experimental/itt_hoas_normalize.mli
ocaml
* Normalization resource. * Normalize the term. * Debugging. ! * @docoff * * -*- * Local Variables: * Caml-master: "compile" * End: * -*-
* Additional well - formedness rule for bterms . * * ---------------------------------------------------------------- * * @begin[license ] * Copyright ( C ) 2005 Mojave Group , Caltech * * This program is free software ; you can redistribute it and/or * modify it under the terms of the GNU Ge...
5e2da47bc6845823a839ada61bbaab67d46b120e3b612676f5e7477a7dc83da4
DavidAlphaFox/RabbitMQ
dynamic_ha.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License %% at / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/DavidAlphaFox/RabbitMQ/0a64e6f0464a9a4ce85c6baa52fb1c584689f49a/plugins-src/rabbitmq-test/test/src/dynamic_ha.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. rabbit_tests:te...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . -module(...
d3bfc8f1bf199a1e2233308dc951ce66c77d7efa5e91f60387b11b89d84f9b51
utahstreetlabs/risingtide
drpc.clj
(ns risingtide.storm.drpc (require [backtype.storm [clojure :as clj]]) (:import [backtype.storm Constants] [backtype.storm.drpc PrepareRequest DRPCSpout JoinResult ReturnResults] [backtype.storm.coordination CoordinatedBolt CoordinatedBolt$SourceArgs])) (def prepare-request-id "prepare-reques...
null
https://raw.githubusercontent.com/utahstreetlabs/risingtide/bc5b798396679739469b1bd8ee1b03db76178cde/src/risingtide/storm/drpc.clj
clojure
(ns risingtide.storm.drpc (require [backtype.storm [clojure :as clj]]) (:import [backtype.storm Constants] [backtype.storm.drpc PrepareRequest DRPCSpout JoinResult ReturnResults] [backtype.storm.coordination CoordinatedBolt CoordinatedBolt$SourceArgs])) (def prepare-request-id "prepare-reques...
ddc3fe325443306aa999681056541e086fcfda8952b8d5dc7fe68b0da2de9fff
martinklepsch/custom-comparator-set
cc_set.cljc
(ns org.martinklepsch.cc-set #?(:clj (:require [clojure.string :as string] [org.martinklepsch.cc-set.impl])) #?(:clj (:import [org.martinklepsch.cc_set.impl CustomComparatorSet])) #?(:cljs (:require [org.martinklepsch.cc-set.impl :refer [CustomComparatorSet]]))) (defn custom-comparator-set ...
null
https://raw.githubusercontent.com/martinklepsch/custom-comparator-set/66e358845fcc3cab71351ecf281ecf88797ef1af/src/org/martinklepsch/cc_set.cljc
clojure
(ns org.martinklepsch.cc-set #?(:clj (:require [clojure.string :as string] [org.martinklepsch.cc-set.impl])) #?(:clj (:import [org.martinklepsch.cc_set.impl CustomComparatorSet])) #?(:cljs (:require [org.martinklepsch.cc-set.impl :refer [CustomComparatorSet]]))) (defn custom-comparator-set ...
90ccd0907e87e665d52e5e6dad71d0e8911517bbabafb7ea8e00e0ada224ca65
GrammaticalFramework/gf-core
OldBinary.hs
| Read PGF files created with GF 3.5 and a few older releases module PGF.OldBinary(getPGF,getPGF',version) where import PGF.CId import PGF.Data import PGF.Optimize import Data.Binary import Data.Binary.Get import Data.Array.IArray import qualified Data.Map as Map import qualified Data.IntMap as IntMap import qualifi...
null
https://raw.githubusercontent.com/GrammaticalFramework/gf-core/9b4f2dd18b64b770aaebfa1885085e8e3447f119/src/runtime/haskell/PGF/OldBinary.hs
haskell
getArray2 :: (IArray a1 (a2 Int e), IArray a2 e) => Get e -> Get (a1 Int (a2 Int e))
| Read PGF files created with GF 3.5 and a few older releases module PGF.OldBinary(getPGF,getPGF',version) where import PGF.CId import PGF.Data import PGF.Optimize import Data.Binary import Data.Binary.Get import Data.Array.IArray import qualified Data.Map as Map import qualified Data.IntMap as IntMap import qualifi...
328761954190140ce25cb7a70184392820918af838c46a1b34b812149da8077e
haskell-tools/haskell-tools
RecordWildcards.hs
# LANGUAGE RecordWildCards # module Refactor.RenameDefinition.RecordWildcards where data Point = Point { x :: Int, y :: Int } p1 = let x = 3; y = 4 in Point { x = 1, .. } p2 = let Point { .. } = Point 1 2 in y
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/RenameDefinition/RecordWildcards.hs
haskell
# LANGUAGE RecordWildCards # module Refactor.RenameDefinition.RecordWildcards where data Point = Point { x :: Int, y :: Int } p1 = let x = 3; y = 4 in Point { x = 1, .. } p2 = let Point { .. } = Point 1 2 in y
c62bc431c50b36c3be7547d91c499b272ed5a73aeefd995d9a4862555bcc7dac
racket/typed-racket
for.rkt
#lang typed/racket/base/shallow ;; For combinators don't need a codomain check, ;; or a domain check on the `for-loop` functions ;; ;; Expand, look for: ;; - no "shape-check" around the final result ;; - no domain "shape-check" for any functions ;; - no shape-check around unsafe-cdr (void? (for ((x (in-list '(A B ...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/unit-tests/shallow-rewrite-expansion/for.rkt
racket
For combinators don't need a codomain check, or a domain check on the `for-loop` functions Expand, look for: - no "shape-check" around the final result - no domain "shape-check" for any functions - no shape-check around unsafe-cdr
#lang typed/racket/base/shallow (void? (for ((x (in-list '(A B C)))) x)) (list? (for/list : (Listof Symbol) ((x '(A B C))) x)) (list? (for/fold ((acc : (Listof Symbol) '())) ((x (in-list '(A B C)))) (cons x acc)))
5b342f127c2ff84297a1af81c5d914bbd38c0fe2478464a4856b832d1191a430
klutometis/clrs
insertion-quicksort.scm
(define (insertion-quicksort! vector p r k) (quicksort-k! vector p r k) (insertion-sort (vector->list vector))) (define (quicksort-k! vector p r k) (if (and (< p r) (> k (- r p))) (let ((q (partition! vector p r))) (quicksort-k! vector p (- q 1)) (quicksort-k! vector (+ q 1) r)))...
null
https://raw.githubusercontent.com/klutometis/clrs/f85a8f0036f0946c9e64dde3259a19acc62b74a1/7.4/insertion-quicksort.scm
scheme
(define (insertion-quicksort! vector p r k) (quicksort-k! vector p r k) (insertion-sort (vector->list vector))) (define (quicksort-k! vector p r k) (if (and (< p r) (> k (- r p))) (let ((q (partition! vector p r))) (quicksort-k! vector p (- q 1)) (quicksort-k! vector (+ q 1) r)))...
d842d28a7fbc90eeaf672970858cbed90dc1b1af6fe6893e7fe7bb4cfe98bb49
int-index/kalium
Tokenize.hs
# LANGUAGE FlexibleContexts # module Kalium.Pascal.Tokenize (tokenCC, Token(..)) where import Prelude import Data.Functor import Control.Monad import Data.Ratio import Data.Char (toLower, digitToInt) import qualified Data.HashMap.Strict as M import Text.Parsec data Token = KwVar | KwBegin | KwEnd | ...
null
https://raw.githubusercontent.com/int-index/kalium/0653b4229001880322acf3016de595360de726ec/src/Kalium/Pascal/Tokenize.hs
haskell
# LANGUAGE FlexibleContexts # module Kalium.Pascal.Tokenize (tokenCC, Token(..)) where import Prelude import Data.Functor import Control.Monad import Data.Ratio import Data.Char (toLower, digitToInt) import qualified Data.HashMap.Strict as M import Text.Parsec data Token = KwVar | KwBegin | KwEnd | ...
1f2bec8325e2133de82245f706c76928070e525196106f1e401ef5af09e7ce1f
mpickering/apply-refact
Bracket23.hs
foo ((True)) = 1
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Bracket23.hs
haskell
foo ((True)) = 1
3165fc4816085b164807240d7f1018f6fbdbe3596090c6d3552eadf30e46b3da
deusdat/waller
project.clj
(defproject deusdatsolutions/waller "0.7.3" :description "A Ragtime migration implementation for ArangoDB." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [ragtime "0.5.2"] [deusdatsolutions/t...
null
https://raw.githubusercontent.com/deusdat/waller/bf003cf328defe73fc6189c0d7912eea687af6f9/project.clj
clojure
(defproject deusdatsolutions/waller "0.7.3" :description "A Ragtime migration implementation for ArangoDB." :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.6.0"] [ragtime "0.5.2"] [deusdatsolutions/t...
d93f0bb9220e6f42497c2f0a578988dfbc4b06f2ef44e54d3db993cbcb0bed61
NorfairKing/smos
Account.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Smos.Web.Server.Handler.Account ( getAccountR, postAccountDeleteR, ) where import Control.Monad.Except import Smos.Web.Server.Handler.Import getAccountR...
null
https://raw.githubusercontent.com/NorfairKing/smos/91efacaede3574e2f8f9d9601bf0383897eebfd8/smos-web-server/src/Smos/Web/Server/Handler/Account.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module Smos.Web.Server.Handler.Account ( getAccountR, postAccountDeleteR, ) where import Control.Monad.Except import Smos.Web.Server.Handler.Import getAccountR :: Handler Html getAccountR = with...
e86af2e5c7f759994338b39808984a3a713b25bfa23021442bf13628f7c8aff5
RichiH/git-annex
Glacier.hs
Amazon Glacier remotes . - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Remote.Glacier (remote, jobList, checkSaneGlacierCommand) where import qualified Data.Map as M imp...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Remote/Glacier.hs
haskell
Disabled until jobList gets support for chunks. empty, the content is not available yet. glacier checkpresent outputs the archive name to stdout if - it's present. Partitions the input list of keys into ones which have - glacier retieval jobs that have succeeded, or failed. - - A complication is that `glacie...
Amazon Glacier remotes . - - Copyright 2012 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2012 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} module Remote.Glacier (remote, jobList, checkSaneGlacierCommand) where import qualified Data.Map as M imp...
4d5f5440a67bc157238b668aa2d5e4dd78122d44c1df7042d0b8578f64016c51
LPCIC/matita
interpretations.mli
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/ng_cic_content/interpretations.mli
ocaml
id / description * @raise Interpretation_not_found symbol * {3 Interpretations toggling} id -> reference id -> reference id -> reference id -> reference id -> reference
Copyright ( C ) 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of the GNU...
95c4929e68a889a90f0a885ce7cccf1e3c2bce6458434d169d36380d18ce33b5
mirage/colombe
received.mli
(** Received field *) type t (** Type of [Received] value. *) val compare : t -> t -> int val equal : t -> t -> bool type 'a with_info = Only of 'a | With of 'a * info and info = [ `Address of Colombe.Domain.t | `Domain_and_address of Colombe.Domain.t * Colombe.Domain.t ] val received_by : t -> Colombe.Domain....
null
https://raw.githubusercontent.com/mirage/colombe/74deed1259698a5d6b8e31f9287f4e224c99cbc2/received/received.mli
ocaml
* Received field * Type of [Received] value. * Type of underlying protocol used to receive email. * Type of protocol used to receive email: - [SMTP] - [ESMTP] - Other protocol
type t val compare : t -> t -> int val equal : t -> t -> bool type 'a with_info = Only of 'a | With of 'a * info and info = [ `Address of Colombe.Domain.t | `Domain_and_address of Colombe.Domain.t * Colombe.Domain.t ] val received_by : t -> Colombe.Domain.t with_info option val received_from : t -> Colombe.Dom...
cb8eca4f8320d191332700d23393563cd8cf6471268b1f7cafe9bb5d95bf5d5e
avatar29A/hs-aitubots-api
UIState.hs
# LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GADTs #-} # LANGUAGE StandaloneDeriving # module Aitu.Bot.Types.UIState ( UIState(..) , mkDefaultUIState ) where import Data.Maybe import Data.Aeson import Data.Text import GHC.Generics im...
null
https://raw.githubusercontent.com/avatar29A/hs-aitubots-api/9cc3fd1e4e9e81491628741a6bbb68afbb85704e/src/Aitu/Bot/Types/UIState.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE GADTs # doc: -api-contract/uistate.html
# LANGUAGE RecordWildCards # # LANGUAGE StandaloneDeriving # module Aitu.Bot.Types.UIState ( UIState(..) , mkDefaultUIState ) where import Data.Maybe import Data.Aeson import Data.Text import GHC.Generics import Aitu.Bot.Types.ReplyCommand ( ReplyComma...
4d3b4442bac147d14a21b6f1380b01ae6665109a9e00552ce6ef84c71214893b
fresnel/fresnel
Internal.hs
module Fresnel.Iso.Internal ( IsIso ) where import Control.Arrow (Kleisli) import Data.Profunctor import Fresnel.Profunctor.Coexp (Coexp) import Fresnel.Profunctor.OptionalStar (OptionalStar) import Fresnel.Profunctor.Recall (Recall) class Profunctor p => IsIso p instance IsIso (->) instance Monad m => IsIso (Kleisl...
null
https://raw.githubusercontent.com/fresnel/fresnel/8f0d267779703049568694834c25f619034ca74d/fresnel/src/Fresnel/Iso/Internal.hs
haskell
module Fresnel.Iso.Internal ( IsIso ) where import Control.Arrow (Kleisli) import Data.Profunctor import Fresnel.Profunctor.Coexp (Coexp) import Fresnel.Profunctor.OptionalStar (OptionalStar) import Fresnel.Profunctor.Recall (Recall) class Profunctor p => IsIso p instance IsIso (->) instance Monad m => IsIso (Kleisl...
6fe14174d770554d25aa510624884f3360978be280698ab6c591e438b5560d1d
tmfg/mmtis-national-access-point
user_edit.cljs
(ns ote.views.admin.user-edit (:require [ote.ui.form :as form] [ote.ui.list-header :as list-header] [ote.ui.buttons :as buttons] [ote.localization :refer [tr tr-key]] [reagent.core :as r] [ote.db.user :as user] [ote.app.controller.user-edit :as u...
null
https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/a86cc890ffa1fe4f773083be5d2556e87a93d975/ote/src/cljs/ote/views/admin/user_edit.cljs
clojure
(ns ote.views.admin.user-edit (:require [ote.ui.form :as form] [ote.ui.list-header :as list-header] [ote.ui.buttons :as buttons] [ote.localization :refer [tr tr-key]] [reagent.core :as r] [ote.db.user :as user] [ote.app.controller.user-edit :as u...
4734c915ceeeff71f7f431674c1b873989edb5ca1dde63ae7fcf96e1c042240b
racket/math
for-each.rkt
#lang typed/racket/base (require racket/performance-hint "../unsafe.rkt" "utils.rkt") (provide (all-defined-out)) (define-syntax-rule (for-each-array+data-index ds-expr f-expr) (let*: ([ds : Indexes ds-expr] [dims : Index (vector-length ds)]) (define-syntax-rule (f js j) ((a...
null
https://raw.githubusercontent.com/racket/math/f221527a39525b896ec39a6a924da753dd346369/math-lib/math/private/array/for-each.rkt
racket
#lang typed/racket/base (require racket/performance-hint "../unsafe.rkt" "utils.rkt") (provide (all-defined-out)) (define-syntax-rule (for-each-array+data-index ds-expr f-expr) (let*: ([ds : Indexes ds-expr] [dims : Index (vector-length ds)]) (define-syntax-rule (f js j) ((a...
627832555666c5b4f9e45fcbcdac31ae1c4fdecd51aedef268f1f05b3a3cb08b
chenyukang/eopl
interp.scm
(module interp (lib "eopl.ss" "eopl") ;; interpreter for the CALL-BY-REFERENCE language (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "environments.scm") (require "store.scm") (require "pairvals.scm") (provide value-of-program value-of inst...
null
https://raw.githubusercontent.com/chenyukang/eopl/0406ff23b993bfe020294fa70d2597b1ce4f9b78/base/chapter4/call-by-reference/interp.scm
scheme
interpreter for the CALL-BY-REFERENCE language switches for instrument-let ;;;;;;;;;;;;;;;; say (instrument-let #t) to turn instrumentation on. (instrument-let #f) to turn it off again. the interpreter ;;;;;;;;;;;;;;;; straightforward version of LET, without instrumentation (let-exp (id rhs body) ...
(module interp (lib "eopl.ss" "eopl") (require "drscheme-init.scm") (require "lang.scm") (require "data-structures.scm") (require "environments.scm") (require "store.scm") (require "pairvals.scm") (provide value-of-program value-of instrument-let instrument-newref) (define instrume...
665dc93fb75bf9e687a610c0f56b8a113c65b5abb768fc19b8b1c33001c945d5
scheme/scsh
char-package.scm
;;; These defs are things for characters *not* in SRFIs 13 & 14. It includes some R5RS defs that are not correct in S48 in a Latin-1 world . (define-interface char-predicates-interface (export R5RS R5RS R5RS R5RS R5RS char-alphanumeric? ; For compatibility w/old code char-letter? ; Scsh ...
null
https://raw.githubusercontent.com/scheme/scsh/114432435e4eadd54334df6b37fcae505079b49f/scheme/lib/char-package.scm
scheme
These defs are things for characters *not* in SRFIs 13 & 14. For compatibility w/old code Scsh ERROR DEPRECATED-PROC don't handle full Latin-1. Obsolete scsh.
It includes some R5RS defs that are not correct in S48 in a Latin-1 world . (define-interface char-predicates-interface (export R5RS R5RS R5RS R5RS R5RS char-digit? char-letter+digit? char-graphic? char-printing? char-blank? char-iso-control? char-punctuation? ch...
0dd615de69b3b3ccbc192408e64a9fa461a6eaf09442024855523fb06014bd5c
binaryage/chromex
tabs.clj
(ns chromex.ext.tabs "Use the chrome.tabs API to interact with the browser's tab system. You can use this API to create, modify, and rearrange tabs in the browser. * available since Chrome 36 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts/chromex/ext/tabs.clj
clojure
-- properties ------------------------------------------------------------------------------------------------------------- defaults to the selected tab of the current window. permission or the activeTab permission . In addition to sites that extensions can defaults to the active tab of the current window. default...
(ns chromex.ext.tabs "Use the chrome.tabs API to interact with the browser's tab system. You can use this API to create, modify, and rearrange tabs in the browser. * available since Chrome 36 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer...
8739a881adbc3ae6ad6dbd7f2ca9f79120940c515a9b1cfb6c985b90d28921b5
CodeforSouth/fbi-api
core.clj
(ns fbi-api.core (:require [org.httpkit.server :refer [run-server]] [ring.middleware.reload :as reload] [compojure.middleware :as middleware] [compojure.handler :refer [site]] [taoensso.timbre :as log] [compojure.api.sweet :as sweet] ;; internal ...
null
https://raw.githubusercontent.com/CodeforSouth/fbi-api/ddc1f1c45269bd9a0401c5047d0c5ab1dbe299ba/src/fbi_api/core.clj
clojure
internal
(ns fbi-api.core (:require [org.httpkit.server :refer [run-server]] [ring.middleware.reload :as reload] [compojure.middleware :as middleware] [compojure.handler :refer [site]] [taoensso.timbre :as log] [compojure.api.sweet :as sweet] [fbi-api.con...
ae1e78349c23252468839565fe3738dffbbdca24be925616510a49a0bd0c05c9
ubf/ubf
socket_test_server.erl
%%% The MIT License %%% Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by %%% %%% 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 li...
null
https://raw.githubusercontent.com/ubf/ubf/c876f684fbd4959548ace1eb1cfc91941f93d377/test/unit/socket_test_server.erl
erlang
The MIT License 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 sell furnished to do so, subject to the following conditions: The above...
Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by 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 or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITH...
cec6c9147c48982e5c75ffbccf96d75ca2c48d57383744d7d87dc62bd1ec4254
onyx-platform/onyx-examples
core.clj
(ns parameterized.core (:require [clojure.core.async :refer [chan >!! <!! close!]] [onyx.plugin.core-async :refer [take-segments!]] [onyx.api]) (:gen-class)) (def id (java.util.UUID/randomUUID)) (def env-config {:zookeeper/address "127.0.0.1:2188" :zookeeper/server? true :zookeeper...
null
https://raw.githubusercontent.com/onyx-platform/onyx-examples/668fddd26bc6b692a478fb8dc0e6d3d329879396/parameterized/src/parameterized/core.clj
clojure
(ns parameterized.core (:require [clojure.core.async :refer [chan >!! <!! close!]] [onyx.plugin.core-async :refer [take-segments!]] [onyx.api]) (:gen-class)) (def id (java.util.UUID/randomUUID)) (def env-config {:zookeeper/address "127.0.0.1:2188" :zookeeper/server? true :zookeeper...
0890bccf64023da0448487baac958f2b381e12c70f51f0efd18b4eed16c159e5
jeffshrager/biobike
load.lisp
;;; -*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- (in-package :cl-user) ;;; +=========================================================================+ | Copyright ( c ) 2002 , 2003 , 2004 JP , , | ;;; | | ;;; | Permission is...
null
https://raw.githubusercontent.com/jeffshrager/biobike/5313ec1fe8e82c21430d645e848ecc0386436f57/BioLisp/Matching/load.lisp
lisp
-*- mode: Lisp; Syntax: Common-Lisp; Package: user; -*- +=========================================================================+ | | | Permission is hereby granted, free of charge, to any person obtaining | | a copy of this software and a...
(in-package :cl-user) | Copyright ( c ) 2002 , 2003 , 2004 JP , , | | " Software " ) , to deal in the Software without restriction , including | | distribute , sublicense , and/or sell copies of the Software , and to | | permit persons to whom the Software is furnished to do so , subject t...
afbb3e00720eea9e0b29d5ba8de05fdb70513d6ae4ac96449c40aae2a2bddd32
vraid/earthgen
math.rkt
#lang racket (require "require.rkt") (require/provide "math/constants.rkt" "math/common.rkt" "math/flvector3.rkt" "math/quaternion.rkt" "math/matrix3.rkt")
null
https://raw.githubusercontent.com/vraid/earthgen/208ac834c02208ddc16a31aa9e7ff7f91c18e046/package/vraid/math.rkt
racket
#lang racket (require "require.rkt") (require/provide "math/constants.rkt" "math/common.rkt" "math/flvector3.rkt" "math/quaternion.rkt" "math/matrix3.rkt")