_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
49f91b4ae6e43bf4e030c737b8e0a194315b527897469a84089ac20393753ea3
ptal/AbSolute
hc4.ml
Copyright 2019 AbSolute Team This program is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at your option ) any later version . This prog...
null
https://raw.githubusercontent.com/ptal/AbSolute/469159d87e3a717499573c1e187e5cfa1b569829/src/transformers/propagator_completion/hc4.ml
ocaml
special case: squares are positive refines binary operator to handle constants u + v = r => u = r - v /\ v = r - u u - v = r => u = r + v /\ v = u - r a > b <=> b < a
Copyright 2019 AbSolute Team This program is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at your option ) any later version . This prog...
e332b713b6261d7e4cdf94dd2bd4548d8dbae622b2698d6ab1fd8f9058446f8f
emqx/emqx
emqx_ee_conf_schema_SUITE.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %%-------------------------------------------------------------------- -module(emqx_ee_conf_schema_SUITE). -compile(nowarn_export_all). -compile(export_all). -include...
null
https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/lib-ee/emqx_ee_conf/test/emqx_ee_conf_schema_SUITE.erl
erlang
-------------------------------------------------------------------- -------------------------------------------------------------------- ------------------------------------------------------------------------------ Tests ------------------------------------------------------------------------------
Copyright ( c ) 2022 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . -module(emqx_ee_conf_schema_SUITE). -compile(nowarn_export_all). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). all() -> emqx_common_test_helpers:all(?MODULE). t_namespac...
b6ec07b961947f15a8bab2666d475c587cacd811add48c97188fbd5c18650e97
exercism/babashka
change_test.clj
(ns change-test (:require [clojure.test :refer [deftest is]] [change :refer [issue]])) (deftest single-coin-change (is (= (issue 25 #{1 5 10 25 100}) '(25)))) (deftest multiple-coin-change (is (= (issue 15 #{1 5 10 25 100}) '(5 10)))) (deftest change-with-lilliputian-coins (is (...
null
https://raw.githubusercontent.com/exercism/babashka/707356c52e08490e66cb1b2e63e4f4439d91cf08/exercises/practice/change/test/change_test.clj
clojure
(ns change-test (:require [clojure.test :refer [deftest is]] [change :refer [issue]])) (deftest single-coin-change (is (= (issue 25 #{1 5 10 25 100}) '(25)))) (deftest multiple-coin-change (is (= (issue 15 #{1 5 10 25 100}) '(5 10)))) (deftest change-with-lilliputian-coins (is (...
a2366a636b6d62f738c49a72a91e7253f3315039f6fd9826a37a4af74e57458b
korya/efuns
top.ml
(***********************************************************************) (* *) xlib for (* *) Fabrice Le Fessant , projet Para / SOR , INRIA Rocq...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/gwml/top.ml
ocaml
********************************************************************* ...
xlib for Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1999 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Xtypes open Gwml open Wob type top_internals = { ...
a49bd227d764191d8080f890c177a084052585c1db80e9fed710f23ccb39fa1c
jsoo1/guix-channel
yaft.scm
(define-module (yaft) #:use-module (gnu packages gcc) #:use-module (gnu packages image) #:use-module (gnu packages ncurses) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (libsixel) #:export (yaft ...
null
https://raw.githubusercontent.com/jsoo1/guix-channel/934b830110f4f7169257f107311cd10f628e0682/yaft.scm
scheme
TODO: Fix license TODO: fix license
(define-module (yaft) #:use-module (gnu packages gcc) #:use-module (gnu packages image) #:use-module (gnu packages ncurses) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) #:use-module (libsixel) #:export (yaft ...
64418f8b36c6e7ede0c29a386b807dff88afdbc41833faec8cd04efb4f00da51
ashinn/chibi-scheme
modules.scm
;; modules.scm -- module introspection utilities Copyright ( c ) 2011 - 2013 . All rights reserved . ;; BSD-style license: ;;> Module introspection library. (define (file->sexp-list file) (call-with-input-file file (lambda (in) (port-source?-set! in #t) (let lp ((res '())) (let ((x (r...
null
https://raw.githubusercontent.com/ashinn/chibi-scheme/3cf62f033aefaf9be6fc3522e2f29dcd379c7e90/lib/chibi/modules.scm
scheme
modules.scm -- module introspection utilities BSD-style license: > Module introspection library. assuming mod-name was found in file, resolves to the containing lib dir break cycles, just in case finding all available modules
Copyright ( c ) 2011 - 2013 . All rights reserved . (define (file->sexp-list file) (call-with-input-file file (lambda (in) (port-source?-set! in #t) (let lp ((res '())) (let ((x (read in))) (if (eof-object? x) (reverse res) (lp (cons x res)))))))) ...
2574eac740a2c86db32da386e6466d712d38f46a6a9b06666eb313a92365f132
yi-editor/yi
Search.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_HADDOCK show-extensions #-} -- | -- Module : Yi.Search -- License : GPL-2 -- Maintainer : -- Stability : experimental -- ...
null
https://raw.githubusercontent.com/yi-editor/yi/65c157580e93f496a1acc6117ad02594dbcd9f35/yi-core/src/Yi/Search.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE OverloadedStrings # # OPTIONS_HADDOCK show-extensions # | Module : Yi.Search License : GPL-2 Maintainer : Stability : experimental Portability : portable :: SearchExp -> EditorM () :: EditorM () :: (Maybe String) -> [SearchOption] ...
# LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # Search / Replace functions module Yi.Search ( : : EditorM ( Maybe ) SearchMatch, SearchResult(..), SearchOption(..), - > IO : : - > IO makeSimpleSearch, searchReplaceRegionB, ...
7b2b881ca802ef6ba67da4bf1c655b363299877f9ee0453655eab637face775c
shayan-najd/HsAST
HsTypes.hs
# OPTIONS_GHC -Wall # # LANGUAGE TypeFamilies # module HsTypes where import Dependencies import HsExtension import {-# SOURCE #-} HsExpr (HsSplice) import HsDoc type LHsIPName = Located HsIPName newtype HsIPName = HsIPName FastString type LBangType p = Located (BangType p) type BangType p = HsType p ty...
null
https://raw.githubusercontent.com/shayan-najd/HsAST/9bd46612c63165d0925b866fc2922a9150a89943/HsTypes.hs
haskell
# SOURCE #
# OPTIONS_GHC -Wall # # LANGUAGE TypeFamilies # module HsTypes where import Dependencies import HsExtension import HsDoc type LHsIPName = Located HsIPName newtype HsIPName = HsIPName FastString type LBangType p = Located (BangType p) type BangType p = HsType p type LHsContext p = Located (HsContext p...
d128524c37be137eb92d4fb87f9064155dcae373c96fcbe069802afc9e6bcccf
janestreet/core
hashable_intf.ml
open! Import module type Common = sig type t [@@deriving compare, hash] val hashable : t Hashtbl.Hashable.t end module type S_plain = sig include Common module Table : Hashtbl.S_plain with type key = t module Hash_set : Hash_set.S_plain with type elt = t module Hash_queue : Hash_queue.S with type key = t...
null
https://raw.githubusercontent.com/janestreet/core/4b6635d206f7adcfac8324820d246299d6f572fe/core/src/hashable_intf.ml
ocaml
open! Import module type Common = sig type t [@@deriving compare, hash] val hashable : t Hashtbl.Hashable.t end module type S_plain = sig include Common module Table : Hashtbl.S_plain with type key = t module Hash_set : Hash_set.S_plain with type elt = t module Hash_queue : Hash_queue.S with type key = t...
0b616a638560125caaca0185370948becde537a405ec3b27e557a72ec847c8b5
patrikja/AFPcourse
Snake.hs
{- A simple single player snake game. -} module Snake where import ANSI (ansiGoto, ansiColour, Colour(..)) import Program (Program, putS, getC) import Game (runGame, Game) import Coord (Coord, Dir(..), outOfBounds, movePos) | A snake is a list of body coord.s and a dir . of travel . data Snake = Snake { p...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L3/src/Snake.hs
haskell
A simple single player snake game. | The starting position of the snake. | Check if a snake has collided with itself. | Output a string at a given coordinate (uses some ANSI magic). | Draw the snake. The last part of the tail is erased. erase previous tail print new head | The different actions that the play...
module Snake where import ANSI (ansiGoto, ansiColour, Colour(..)) import Program (Program, putS, getC) import Game (runGame, Game) import Coord (Coord, Dir(..), outOfBounds, movePos) | A snake is a list of body coord.s and a dir . of travel . data Snake = Snake { pos :: [Coord] , dir :: D...
600c5405dd140e57395f6aaf2227b0f674373767477982d19f5d5d9d896bb6bf
disconcision/fructure
legacy.rkt
#lang racket (require racket/hash "../../shared/fructerm/fructerm.rkt" "../language/syntax.rkt" "../common.rkt") (provide mode:legacy) (define (mode:legacy key state) (define transform (hash-ref (hash-union packaged-alpha-constructors keymap #:combine/key (...
null
https://raw.githubusercontent.com/disconcision/fructure/d434086052eab3c450f631b7b14dcbf9358f45b7/src/mode/legacy.rkt
racket
------------------------------------------------- packaged constructors and their helpers structure for annotating transformation rules map from keys to functions this is mostly deprecated by transform mode but is still useful for editing identifers pending a more structure solution constructors [sort pat] / (i...
#lang racket (require racket/hash "../../shared/fructerm/fructerm.rkt" "../language/syntax.rkt" "../common.rkt") (provide mode:legacy) (define (mode:legacy key state) (define transform (hash-ref (hash-union packaged-alpha-constructors keymap #:combine/key (...
acc55e39e388b424c1b49ac26204a692748dcbcbcbc15d955951aee26b1772d2
bmeurer/ocaml-arm
moreLabels.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , Kyot...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/stdlib/moreLabels.mli
ocaml
********************************************************************* OCaml ...
, Kyoto University RIMS Copyright 2001 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ Id$ * Extra labeled libraries . T...
498ab522406553d6e8a6c851647a463c57a9f063af8422f1b5d5080181a96015
titola/incudine
error.lisp
Copyright ( c ) 2013 ;;; ;;; This library is free software; you can redistribute it and/or ;;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 2.1 of the License , or ( at your option ) any later version . ;;; ;;; This library is d...
null
https://raw.githubusercontent.com/titola/incudine/325174a54a540f4daa67bcbb29780073c35b7b80/contrib/cl-sndfile/error.lisp
lisp
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
Copyright ( c ) 2013 version 2.1 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA (in-package :sndfile) (define-condition sndfile-error (simple-e...
c072dec6eebc162bcd3503590e339f5e553fd16528f9454239ab153b47a8b3e6
willowtreeapps/wombats-api
helpers.clj
(ns wombats.handlers.helpers (:require [wombats.constants :refer [errors]] [cemerick.url :refer [url url-encode]])) (defn wombat-error "Throws an error that will be caught by the exception interceptor." [{code :code details :details params :params message :message field-error :field-e...
null
https://raw.githubusercontent.com/willowtreeapps/wombats-api/738e4cc8d7011998695ec85e663f650be71f60ae/src/wombats/handlers/helpers.clj
clojure
(ns wombats.handlers.helpers (:require [wombats.constants :refer [errors]] [cemerick.url :refer [url url-encode]])) (defn wombat-error "Throws an error that will be caught by the exception interceptor." [{code :code details :details params :params message :message field-error :field-e...
813edc305e1dffa711f431454072e79c1af13089588963be5f20097abe1cc23b
deepmarker/ocaml-fastws
leak.ml
open Core open Async (* let uri = Uri.make ~scheme:"https" ~host:"echo.websocket.org" () *) (* let uri = Uri.make ~scheme:"http" ~host:"demos.kaazing.com" ~path:"echo" () *) let url = Uri.make ~scheme:"https" ~host:"ftx.com" ~path:"ws/" () (* This does not leak. *) let rec inner = function * | n when n < 0 - ...
null
https://raw.githubusercontent.com/deepmarker/ocaml-fastws/b8ff3200dd3d516a905e531177ca5087ab0053ab/bin/leak.ml
ocaml
let uri = Uri.make ~scheme:"https" ~host:"echo.websocket.org" () let uri = Uri.make ~scheme:"http" ~host:"demos.kaazing.com" ~path:"echo" () This does not leak. This does not leak.
open Core open Async let url = Uri.make ~scheme:"https" ~host:"ftx.com" ~path:"ws/" () let rec inner = function * | n when n < 0 - > invalid_arg " inner " * | 0 - > Deferred.unit * | n - > * Fastws_async.connect > > = function * | Error _ - > failwith " error " * | Ok { r...
85294f3fa9b77390d76d6783ed115adcf28cb59dcc2e6d741879127ddba69ccc
gfngfn/otfed
decodeAdvancedTableScheme.ml
open Basic open DecodeBasic open DecodeOperation.Open include GeneralTable(struct type t = unit end) let make core ~offset ~length = make_scheme core offset length () type script = { script_source : t; script_tag : string; script_offset_Script : offset; script_offset_Fea...
null
https://raw.githubusercontent.com/gfngfn/otfed/aa2624d29f2fea934c65308816fb6788f3bd818a/src/decodeAdvancedTableScheme.ml
ocaml
The position is set to the beginning of a Feature table.
open Basic open DecodeBasic open DecodeOperation.Open include GeneralTable(struct type t = unit end) let make core ~offset ~length = make_scheme core offset length () type script = { script_source : t; script_tag : string; script_offset_Script : offset; script_offset_Fea...
38635ce78c1b1fde3f3e5f351b47901def4f22d9c46450bb8394e2d30bce6737
joedevivo/hpack
hpack_integer_tests.erl
-module(hpack_integer_tests). -include_lib("eunit/include/eunit.hrl"). -compile([export_all]). decode_zero_test() -> ?assertEqual({0, <<>>}, hpack_integer:decode(<<0:5>>, 5)), ?assertEqual({0, <<1>>}, hpack_integer:decode(<<0:5,1:8>>, 5)), ok. decode_sixtytwo_test() -> ?assertEqual({62, <<>>}, hpack_i...
null
https://raw.githubusercontent.com/joedevivo/hpack/d61d06bf156b6c9517b3a5c3e571b87ec81d7f5d/test/hpack_integer_tests.erl
erlang
-module(hpack_integer_tests). -include_lib("eunit/include/eunit.hrl"). -compile([export_all]). decode_zero_test() -> ?assertEqual({0, <<>>}, hpack_integer:decode(<<0:5>>, 5)), ?assertEqual({0, <<1>>}, hpack_integer:decode(<<0:5,1:8>>, 5)), ok. decode_sixtytwo_test() -> ?assertEqual({62, <<>>}, hpack_i...
0c77eb756284a6be742bb2f50f7b692634a3dacdbe3142420cb3cdf46716d4e2
input-output-hk/cardano-ledger
Constants.hs
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Test.Cardano.Ledger.Shelley.Generator.Constants ( Constants (..), defaultConstants, ) where import Cardano.Ledger.BaseTypes (Version, natVersion) import Cardano.Ledger.Coin (Coin (..)) import Data.Word (Word64) data Constants = Constants { minNumGenIn...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/1c2f8aab38d7e22166209aba232e39b6aa5a55b2/eras/shelley/test-suite/src/Test/Cardano/Ledger/Shelley/Generator/Constants.hs
haskell
^ minimal number of transaction inputs to select ^ maximal number of transaction inputs to select ^ Relative frequency of generated credential registration certificates ^ Relative frequency of generated pool registration certificates ^ Relative frequency of generated delegation certificates ^ Relative frequency o...
# LANGUAGE DataKinds # # LANGUAGE TypeApplications # module Test.Cardano.Ledger.Shelley.Generator.Constants ( Constants (..), defaultConstants, ) where import Cardano.Ledger.BaseTypes (Version, natVersion) import Cardano.Ledger.Coin (Coin (..)) import Data.Word (Word64) data Constants = Constants { minNumGenIn...
f7dd9b612a5e87fdb9ab545bbd01488edf44e7e11096da3105ed48b4bd0eb5fe
qfpl/applied-fp-course
Types.hs
module Level06.DB.Types where import Data.Text (Text) import Data.Time (UTCTime) import Database.SQLite.Simple.FromRow (FromRow (fromRow), field) -- To try to avoid leaking various types and expected functionality around the -- application, we c...
null
https://raw.githubusercontent.com/qfpl/applied-fp-course/d5a94a9dcee677bc95a5184c2ed13329c9f07559/src/Level06/DB/Types.hs
haskell
To try to avoid leaking various types and expected functionality around the application, we create a stand alone type that will represent the data we store in the database. In this instance, it is the raw types that make up a comment. This type class instance comes from our DB package and tells the DB package how...
module Level06.DB.Types where import Data.Text (Text) import Data.Time (UTCTime) import Database.SQLite.Simple.FromRow (FromRow (fromRow), field) data DBComment = DBComment { dbCommentId :: Int , dbCommentTopic :: Text , dbCommentCo...
2fe0a5fd6ea2103af863074ab53ee6f7674c9666894def47e1d3906b7e3b0526
dyzsr/ocaml-selectml
set.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/stdlib/set.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * Sets over ordered types . This module implements the set data structure , given a total ordering...
89b2290818b593f17a9eef00e717b83066538e0e04d7be3a17156b31c22f4c1d
returntocorp/ocaml-tree-sitter-core
Codegen_util.ml
(* Various reusable utilities involved in code generation. *) open Printf let translate_ident = let map = Protect_ident.create ~reserved_dst:Protect_ident.ocaml_reserved () in fun ident -> Protect_ident.add_translation map ident let interleave sep l = let rec loop = function | [] -> [] | x :: ...
null
https://raw.githubusercontent.com/returntocorp/ocaml-tree-sitter-core/28f750bb894ea4c0a7f6b911e568ab9d731cc0b5/src/gen/lib/Codegen_util.ml
ocaml
Various reusable utilities involved in code generation. Prevent code injections from tree-sitter token nodes with funny names. It's like sprintf "%S", but tries to not double-quote things that don't need it.
open Printf let translate_ident = let map = Protect_ident.create ~reserved_dst:Protect_ident.ocaml_reserved () in fun ident -> Protect_ident.add_translation map ident let interleave sep l = let rec loop = function | [] -> [] | x :: xs -> sep :: x :: loop xs in match l with | x :: xs -> x ::...
6bb6bf06d1323ccb5869980b859543b724c557e0ca4c23a1394721ffbcd721a3
b0-system/b0
b0_cmd_scope.ml
--------------------------------------------------------------------------- Copyright ( c ) 2020 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/b0-system/b0/cbe12b8a55da6b50ab01ed058b339dbed3cfe894/tool-b0/b0_cmd_scope.ml
ocaml
XXX what should we use here ? Command line interface Commands let scope c details path root excludes all full_cmd keep_going action action_args = match action with | `List -> list c root excludes details path | `Exec -> exec c root excludes keep_going action_args | `Git -> git c root excludes all k...
--------------------------------------------------------------------------- Copyright ( c ) 2020 The b0 programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
b6be41d37af991a67c6b13c62cb0e2040be562581a11dea6b7c3b59bf334cd8c
GNOME/aisleriot
gold-mine.scm
; AisleRiot - gold_mine.scm Copyright ( C ) 1998 , 2003 < > ; ; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ; (at your option) any later version. ; ;...
null
https://raw.githubusercontent.com/GNOME/aisleriot/5ab7f90d8a196f1fcfe5a552cef4a4c1a4b5ac39/games/gold-mine.scm
scheme
AisleRiot - gold_mine.scm This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ...
Copyright ( C ) 1998 , 2003 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (use-modules (aisleriot interface) (aisleriot api)) (primitive-load-path...
7256f8a9a5f3d7ace766fd1feab2f783e8dc5fab199ad01c4b3e6ea767d2ca65
kwanghoon/bidi
Main.hs
module Main where import AST import Context import NameGen import Pretty import Type import Worklist import System.Environment (getArgs, withArgs) main :: IO () main = do args <- getArgs if "worklist" `elem` args then runAlty else runBidi benchmark = [ idnotype, idunitnotype, poly...
null
https://raw.githubusercontent.com/kwanghoon/bidi/b3a63dcf11995fe1c37dab2fd315522d66cd3e16/app/Main.hs
haskell
Todo: alty bug??
module Main where import AST import Context import NameGen import Pretty import Type import Worklist import System.Environment (getArgs, withArgs) main :: IO () main = do args <- getArgs if "worklist" `elem` args then runAlty else runBidi benchmark = [ idnotype, idunitnotype, poly...
1b063f1ccc798287ed0bb32078de01a5dcb864c9a380c820014560f19accb1b6
AmpersandTarski/Ampersand
ShowMeatGrinder.hs
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # module Ampersand.FSpec.ShowMeatGrinder ( grind, metaModel, MetaModel (..), ) where import Ampersand.ADL1 import Ampersand.Basics import Ampersand.Core.A2P_Converters import Ampersand.Core.ParseTree import Am...
null
https://raw.githubusercontent.com/AmpersandTarski/Ampersand/054079bd7f6ce40c73e30bd81ecdba5b6b36dba5/src/Ampersand/FSpec/ShowMeatGrinder.hs
haskell
| This produces the metamodel of either | The 'grind' function lifts a model to the population of a metamodel. The model is "ground" with respect to a metamodel defined in transformersFormalAmpersand,
# LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # module Ampersand.FSpec.ShowMeatGrinder ( grind, metaModel, MetaModel (..), ) where import Ampersand.ADL1 import Ampersand.Basics import Ampersand.Core.A2P_Converters import Ampersand.Core.ParseTree import Am...
7275d67c5e3ca999a545d3eee750a4ac33b0ced62dc84f973071ee910d729785
funcool/promesa
exec_bulkhead_test.clj
(ns promesa.tests.exec-bulkhead-test (:require [promesa.core :as p] [promesa.exec.bulkhead :as pbh] [promesa.exec :as px] [promesa.util :as pu] [clojure.test :as t])) (def ^:dynamic *executor* nil) (t/use-fixtures :each (fn [next] (binding [px/*default-executor* (px/forkjoin-e...
null
https://raw.githubusercontent.com/funcool/promesa/5c3ba347f6be1e22d48e1dc70488b755f5e33920/test/promesa/tests/exec_bulkhead_test.clj
clojure
(prn "PRE" px/*default-executor*) (prn "POST" px/*default-executor*) (t/deftest basic-operations-submit (t/is (p/promise? res))
(ns promesa.tests.exec-bulkhead-test (:require [promesa.core :as p] [promesa.exec.bulkhead :as pbh] [promesa.exec :as px] [promesa.util :as pu] [clojure.test :as t])) (def ^:dynamic *executor* nil) (t/use-fixtures :each (fn [next] (binding [px/*default-executor* (px/forkjoin-e...
129a4f9da135deb4f8619657bf477bedbc59a22969a2eb34f6980ac14cec6cae
hasktorch/hasktorch
Main.hs
module Main where import Torch import Torch.NN.Recurrent.Cell.Elman convTest = do input : minibatch , channels , input width input <- randnIO' [1, 2, 5] -- weights: out channels, in channels, kernel width let weights = asTensor ( [ [[0, 1, 0], [0, 1, 0]], [[0, 1, 0], [0, 0, 1]]...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/experimental/untyped-nlp/Main.hs
haskell
weights: out channels, in channels, kernel width bias: out channels bias: out channels hidden dimensions input dimensions batch size hidden dimensions input dimensions Convolutions cosineSimilarity
module Main where import Torch import Torch.NN.Recurrent.Cell.Elman convTest = do input : minibatch , channels , input width input <- randnIO' [1, 2, 5] let weights = asTensor ( [ [[0, 1, 0], [0, 1, 0]], [[0, 1, 0], [0, 0, 1]] ] :: [[[Float]]] ...
36f70ff23f9ef904c3b6d6d037e747d255e9e34a000d500035044fb6722ebe05
rtoy/ansi-cl-tests
ba-test-package.lsp
;-*- Mode: Lisp -*- Author : Created : Sat May 28 06:38:29 2005 ;;;; Contains: Definition of BA-TEST package. (in-package :cl-user) (let* ((name :ba-test) (pkg (find-package name))) (unless pkg (setq pkg (make-package name :use '(:cl :regression-test ...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/beyond-ansi/ba-test-package.lsp
lisp
-*- Mode: Lisp -*- Contains: Definition of BA-TEST package.
Author : Created : Sat May 28 06:38:29 2005 (in-package :cl-user) (let* ((name :ba-test) (pkg (find-package name))) (unless pkg (setq pkg (make-package name :use '(:cl :regression-test :cl-test)))) (let ((*package* pkg)) (shadow '(#:handl...
950919677418c3fb7a8e16f525ed02e5ff0fc9e2afdb53e57c3c53ece784ec69
YoshikuniJujo/funpaala
safeRecip.hs
safeRecip 0 = Nothing safeRecip x = Just (1 / x)
null
https://raw.githubusercontent.com/YoshikuniJujo/funpaala/5366130826da0e6b1180992dfff94c4a634cda99/samples/05_function/safeRecip.hs
haskell
safeRecip 0 = Nothing safeRecip x = Just (1 / x)
fac7e201e8de98fb96f23c7863604c74ebd8115b103a43c9fdf37bc24e09dbad
DavidAlphaFox/RabbitMQ
rabbit_auth_mechanism_ssl_app.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-auth-mechanism-ssl/src/rabbit_auth_mechanism_ssl_app.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.
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...
2c49901afe32be0a83dc4000a2c610671de831f7a8b5225a66e3c66b493a1c4e
max-au/erlperf
erlperf_sup.erl
( C ) 2019 - 2023 , @private %%% Top-level supervisor. Always starts process group scope %%% for `erlperf'. Depending on the configuration starts %%% a number of jobs or a cluster-wide monitoring solution. -module(erlperf_sup). -author(""). -behaviour(supervisor). -export([ start_link/0, init/1 ]). ...
null
https://raw.githubusercontent.com/max-au/erlperf/430310d3141d668c402a9900c9d19486ceb27493/src/erlperf_sup.erl
erlang
Top-level supervisor. Always starts process group scope for `erlperf'. Depending on the configuration starts a number of jobs or a cluster-wide monitoring solution. start own pg scope, needed for cluster-wide operations even if the node-wide monitoring is not running, the scope needs to be up to send "job start...
( C ) 2019 - 2023 , @private -module(erlperf_sup). -author(""). -behaviour(supervisor). -export([ start_link/0, init/1 ]). -spec start_link() -> supervisor:startlink_ret(). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). -spec init([]) -> {ok, {supervisor:sup_flags(), [super...
fac435b3f97f7f662e7243a90ac781177ba7f19e3ae8c40b66bdf6564978f131
jaspervdj/psqueues
OrdPSQ.hs
| An ' OrdPSQ ' uses the ' ' instance of the key type to build a priority -- search queue. -- It is based on work . -- * , R. , A Simple Implementation Technique for Priority Search Queues , ICFP 2001 , pp . 110 - 121 -- -- <> -- -- This means it is similar to the < -1.1 PSQueue > package but -- our be...
null
https://raw.githubusercontent.com/jaspervdj/psqueues/f6c8e112a7e6bc3e75303d87473f72e3c34822ec/src/Data/OrdPSQ.hs
haskell
search queue. <> This means it is similar to the our benchmarks showed it perform quite a bit faster. # LANGUAGE Safe # * Type * Query * Construction * Insertion * Delete/Update * Conversion * Views * Validity check
| An ' OrdPSQ ' uses the ' ' instance of the key type to build a priority It is based on work . * , R. , A Simple Implementation Technique for Priority Search Queues , ICFP 2001 , pp . 110 - 121 < -1.1 PSQueue > package but # LANGUAGE ScopedTypeVariables # module Data.OrdPSQ OrdPSQ , null ...
988c987d369817eaac5c21f4af3e54631f4bc371f69316d9c0ae3f48dcea1ac9
PJK/haskell-pattern-matching
IntOps.hs
module IntOps where Not exhaustive and the first clause is redundant because it 's always false f :: Int -> Int f x | 2 `div` 1 == 1 = 1 Second is redundant g :: Int -> Int g x | 2 `rem` 3 == 2 = 1 | otherwise = 2 -- Same but with infix h :: Int -> Int h x | 2 `rem` 3 == 2 = 1 | otherwise = 2
null
https://raw.githubusercontent.com/PJK/haskell-pattern-matching/7ef4a45731beba92ee01614ae563df65be36e8ba/data/exact/IntOps.hs
haskell
Same but with infix
module IntOps where Not exhaustive and the first clause is redundant because it 's always false f :: Int -> Int f x | 2 `div` 1 == 1 = 1 Second is redundant g :: Int -> Int g x | 2 `rem` 3 == 2 = 1 | otherwise = 2 h :: Int -> Int h x | 2 `rem` 3 == 2 = 1 | otherwise = 2
5e79e5529b2bddc087937a2502b6143640db259ddc88833cc5ca44ebfe141234
viercc/kitchen-sink-hs
Heap.hs
# OPTIONS_GHC -Wall # module Heap where import Prelude hiding (repeat, zipWith, (!!)) import Data.Bits data Heap a = Heap a (Heap a) (Heap a) deriving (Show) instance Functor Heap where fmap f = go where go (Heap a al ar) = Heap (f a) (go al) (go ar) instance Applicative Heap where pure = repeat (<*>) =...
null
https://raw.githubusercontent.com/viercc/kitchen-sink-hs/5038b17a39e4e6f19e6fb4779a7c8aaddf64d922/experiment/src/Heap.hs
haskell
# OPTIONS_GHC -Wall # module Heap where import Prelude hiding (repeat, zipWith, (!!)) import Data.Bits data Heap a = Heap a (Heap a) (Heap a) deriving (Show) instance Functor Heap where fmap f = go where go (Heap a al ar) = Heap (f a) (go al) (go ar) instance Applicative Heap where pure = repeat (<*>) =...
020d31ed9b3d158ef28bbac5fb423aa94ec5e96d3660e74196645cad90820733
scsibug/feedparser-clj
core.clj
(ns feedparser-clj.test.core (:import [com.sun.syndication.io SyndFeedInput XmlReader] [java.net URL] [java.io InputStreamReader] [com.sun.syndication.feed.synd SyndFeed]) (:require [feedparser-clj.core :refer :all :reload true] [clojure.test :refer :all])) (defn load-f...
null
https://raw.githubusercontent.com/scsibug/feedparser-clj/6dd3aa07ee9e41c2a723892b90756966dc1d4e62/test/feedparser_clj/test/core.clj
clojure
(ns feedparser-clj.test.core (:import [com.sun.syndication.io SyndFeedInput XmlReader] [java.net URL] [java.io InputStreamReader] [com.sun.syndication.feed.synd SyndFeed]) (:require [feedparser-clj.core :refer :all :reload true] [clojure.test :refer :all])) (defn load-f...
e90ec55fda19b5acbaf7471dbb165252b963c199797057cf887d4c0005531bfe
spurious/sagittarius-scheme-mirror
generators-and-accumulators.scm
-*- mode : scheme ; coding : utf-8 ; -*- ;;; ;;; srfi/%3a158/generators-and-accumulators.scm - Generators and Accumulators ;;; Copyright ( c ) 2017 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/sitelib/srfi/%253a158/generators-and-accumulators.scm
scheme
coding : utf-8 ; -*- srfi/%3a158/generators-and-accumulators.scm - Generators and Accumulators Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above ...
Copyright ( c ) 2017 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING (library (srfi :158 generators-and-accumulators) ...
24793959054573d773aa624c12a55ce0af58d2a94a4281017cb24da6e4681298
Bogdanp/koyo
dispatch.rkt
#lang racket/base (require (for-syntax racket/base syntax/parse) racket/function web-server/dispatch web-server/dispatchers/dispatch) (provide dispatch-rules+roles) (begin-for-syntax (define-syntax-class dispatch-fun (pattern fun:id #:attr name #''f...
null
https://raw.githubusercontent.com/Bogdanp/koyo/93f3fd06ee596a62bb0b286cb6290a800e911154/koyo-lib/koyo/dispatch.rkt
racket
#lang racket/base (require (for-syntax racket/base syntax/parse) racket/function web-server/dispatch web-server/dispatchers/dispatch) (provide dispatch-rules+roles) (begin-for-syntax (define-syntax-class dispatch-fun (pattern fun:id #:attr name #''f...
0685ca5a41584ead627ceed2f7fd456d483f3fb1fedd7f2ee041c8f1db69af40
Chris00/ocaml-cairo
textextents.ml
(* This file is part of the tutorial / *) open Cairo let () = let text = "joy" in let surface = Cairo.Image.create Cairo.Image.ARGB32 ~w:600 ~h:600 in let cr = Cairo.create surface in Examples are in 1.0 x 1.0 coordinate space Cairo.scale cr 600. 600.; Cairo.set_font_size cr 0.5; (* Drawing code goe...
null
https://raw.githubusercontent.com/Chris00/ocaml-cairo/202674a8d0c533b689ceacdb523ca167611e1b4c/examples/textextents.ml
ocaml
This file is part of the tutorial / Drawing code goes here The position of the text will be (x, y) baseline, descent, ascent, height (in dashed green) extents: width & height (in dashed blue) text bearing (solid blue line) text's advance (blue dot) reference point (x,y) (red dot) Write output
open Cairo let () = let text = "joy" in let surface = Cairo.Image.create Cairo.Image.ARGB32 ~w:600 ~h:600 in let cr = Cairo.create surface in Examples are in 1.0 x 1.0 coordinate space Cairo.scale cr 600. 600.; Cairo.set_font_size cr 0.5; Cairo.set_source_rgb cr 0.0 0.0 0.0; Cairo.select_font_face cr...
47349dd00de9437f76828cda28e54eb9c901954cf51f5dd1bfca83a71c1567cd
HealthSamurai/pg3
utils.clj
(ns pg3.utils (:require [k8s.core :as k8s] [pg3.naming :as naming] [clojure.string :as str] [unifn.core :as u])) (defn find-pginstances-by-role [instances role] (filter #(= role (get-in % [:spec :role])) instances)) (defn find-pginstance-by-role [instances role] (first (find-...
null
https://raw.githubusercontent.com/HealthSamurai/pg3/3fc680c9849b00f08ccb18dc64b72dc19b04fd2a/src/pg3/utils.clj
clojure
(ns pg3.utils (:require [k8s.core :as k8s] [pg3.naming :as naming] [clojure.string :as str] [unifn.core :as u])) (defn find-pginstances-by-role [instances role] (filter #(= role (get-in % [:spec :role])) instances)) (defn find-pginstance-by-role [instances role] (first (find-...
2ce2c31a2cd635c9b527f0cce059be03014ec4e18887a46c534c5404f1792065
soulomoon/SICP
Exercise 1.35.scm
; Exercise 1.35: Show that the golden ratio φφ (1.2.2) is a fixed point of the transformation x↦1+1/xx↦1+1/x, and use this fact to compute φφ by means of the fixed-point procedure. #lang planet neil/sicp (define tolerence 0.00001) (define (fixedPoint f first_guess) (define (closeEnough x y) (let ((dis (abs...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter1/Exercise%201.35.scm
scheme
Exercise 1.35: Show that the golden ratio φφ (1.2.2) is a fixed point of the transformation x↦1+1/xx↦1+1/x, and use this fact to compute φφ by means of the fixed-point procedure.
#lang planet neil/sicp (define tolerence 0.00001) (define (fixedPoint f first_guess) (define (closeEnough x y) (let ((dis (abs (- x y)))) (if (< dis tolerence) true false ) ) ) (define (try old_guess) (let ((new_guess (f old_gu...
794d5edeb8a66a9c86f911e21b44c40233887b9d720a774ee980ce76804622f5
aryx/xix
file.ml
Copyright 2016 , see copyright.txt open Common (* could be moved in graph.ml *) (* opti? time cache, and flag to skip cache if want refresh *) let timeof file = try (* bugfix: use stat, not lstat, to get the time of what is pointed * by the symlink, not the symlink *) let stat = Unix.stat file...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/mk/file.ml
ocaml
could be moved in graph.ml opti? time cache, and flag to skip cache if want refresh bugfix: use stat, not lstat, to get the time of what is pointed * by the symlink, not the symlink
Copyright 2016 , see copyright.txt open Common let timeof file = try let stat = Unix.stat file in Some (stat.Unix.st_mtime) with Unix.Unix_error (_, _, _) -> None let str_of_time timeopt = match timeopt with | None -> "0" | Some t -> spf "%.1f" t
09dbd325015d3ecbcaaf8cee0fa75ff49a8a43dcf30a97b38c15d4139bc10eaa
pink-gorilla/pinkie
pinkie_render.cljs
(ns pinkie.pinkie-render (:require [pinkie.error :refer [error-boundary]] [pinkie.pinkie :refer [tag-inject convert-style-as-strings-to-map convert-render-as]] [pinkie.text])) (defn reagent-inject [{:keys [map-keywords fix-style] :or {map-keywords true fix-...
null
https://raw.githubusercontent.com/pink-gorilla/pinkie/f129cf6eb21d3822ef677bbbc0ef67bf785b197e/src/pinkie/pinkie_render.cljs
clojure
_ (info "map-keywords: " map-keywords "widget: " widget " reagent component: " component) _ (info "meta data: " (meta component)) _ (println "after convert-render-as " component) _ (info "inject result: " component) :hidden true} components "displays pinkie component table as text. useful for debugging a...
(ns pinkie.pinkie-render (:require [pinkie.error :refer [error-boundary]] [pinkie.pinkie :refer [tag-inject convert-style-as-strings-to-map convert-render-as]] [pinkie.text])) (defn reagent-inject [{:keys [map-keywords fix-style] :or {map-keywords true fix-...
cd9b79d835d7e672ad8fd94eaf801b5457c96ec2556dbac41eebe54ffc0b38bc
jyp/prettiest
Compact.hs
# LANGUAGE TupleSections # {-# LANGUAGE OverloadedStrings #-} -- | Compact pretty-printer. -- -- == Examples -- Assume that we want to pretty print S - Expressions , which can either be atom or a list of S - Expressions . -- > > > data SExpr = SExpr [ SExpr ] | Atom String deriving Show > > > let pretty : : SExpr...
null
https://raw.githubusercontent.com/jyp/prettiest/e5ce6cd6b4da71860c3d97da84bed4a827fa00ef/Text/PrettyPrint/Compact.hs
haskell
# LANGUAGE OverloadedStrings # | Compact pretty-printer. == Examples >>> putStrLn $ render $ pretty abcd (a b c d) or (a b c d) >>> putStrLn $ render $ pretty testData ((abcde ((a b c d) (a b c d) (a b c d) (a b c d))) ((abcde ((a b c d) (a b c d) (a b c d) (a b...
# LANGUAGE TupleSections # Assume that we want to pretty print S - Expressions , which can either be atom or a list of S - Expressions . > > > data SExpr = SExpr [ SExpr ] | Atom String deriving Show > > > let pretty : : SExpr - > Doc ( ) ; pretty ( Atom s ) = text s ; pretty ( SExpr xs ) = text " ( " < > ( sep $...
ff90ea7682a166efef35d4f44d753ccf3dfaed19d07e9decf603a3fb1754bf0c
luchiniatwork/cambada
native_image.clj
(ns cambada.native-image (:require [cambada.cli :as cli] [cambada.compile :as compile] [cambada.jar-utils :as jar-utils] [cambada.utils :as utils] [clojure.java.io :as io] [clojure.java.shell :as shell] [clojure.tools.deps.alpha :as tools.deps] ...
null
https://raw.githubusercontent.com/luchiniatwork/cambada/99654689f8b6656c615543b3ed47d9b3a3c5773f/src/cambada/native_image.clj
clojure
(ns cambada.native-image (:require [cambada.cli :as cli] [cambada.compile :as compile] [cambada.jar-utils :as jar-utils] [cambada.utils :as utils] [clojure.java.io :as io] [clojure.java.shell :as shell] [clojure.tools.deps.alpha :as tools.deps] ...
0494f823f381c39c9869626481837f493977cb74df942fca376fafc895e6db7b
metaocaml/ber-metaocaml
match_failure.ml
(* TEST *) (** Test that value match failure in a match block raises Match_failure. *) let return_some_3 () = Some (1 + 2) ;; let test_match_partial_match = try let _ = (match return_some_3 () with | Some x when x < 3 -> "Some x" | exception Failure _ -> "failure" | exception Invalid_argument _ -...
null
https://raw.githubusercontent.com/metaocaml/ber-metaocaml/4992d1f87fc08ccb958817926cf9d1d739caf3a2/testsuite/tests/match-exception/match_failure.ml
ocaml
TEST * Test that value match failure in a match block raises Match_failure.
let return_some_3 () = Some (1 + 2) ;; let test_match_partial_match = try let _ = (match return_some_3 () with | Some x when x < 3 -> "Some x" | exception Failure _ -> "failure" | exception Invalid_argument _ -> "invalid argument" | None -> "None" ) [@ocaml.warning "-8"] in assert false ...
4d53c3f25a043c3d80685f2a4bf731675cf2f4e96215786c7de601556008f5c3
takikawa/racket-ppa
info.rkt
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define build-deps (quote ("errortrace-doc" "macro-debugger" "profile-doc" "readline-doc" "macro-debugger-text-lib" "profile-lib" "readline-lib" "xrepl-lib" "racket-doc"))) (define deps (quote ("base" "sandbox-lib" "scribble-lib"))) (define up...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/26d6ae74a1b19258c9789b7c14c074d867a4b56b/share/pkgs/xrepl-doc/info.rkt
racket
(module info setup/infotab (#%module-begin (define collection (quote multi)) (define build-deps (quote ("errortrace-doc" "macro-debugger" "profile-doc" "readline-doc" "macro-debugger-text-lib" "profile-lib" "readline-lib" "xrepl-lib" "racket-doc"))) (define deps (quote ("base" "sandbox-lib" "scribble-lib"))) (define up...
a73843729dcda17ca507b7dc04976128af3523efc7150f6b5d8eaab2f661402e
byteally/dbrecord
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import DBRecord.Postgres.Internal.Reify import Database.PostgreSQL.Simple import Data.Function main = do let hints = defHints getPostgresDbSchemaInfo localConnectInfo where localConnectInfo = defaultConnectInfo { connectHost = "localhost" ...
null
https://raw.githubusercontent.com/byteally/dbrecord/991efe9a293532ee9242b3e9a26434cf16f5b2a0/dbrecord-postgres-simple/reify-test/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import DBRecord.Postgres.Internal.Reify import Database.PostgreSQL.Simple import Data.Function main = do let hints = defHints getPostgresDbSchemaInfo localConnectInfo where localConnectInfo = defaultConnectInfo { connectHost = "localhost" , connectPa...
58eda2830d8be5e2644a7e4fc6fba1ad2c95f39bc63e0d8b067f3944a6bfadc2
ds-wizard/engine-backend
List_GET.hs
module Wizard.Specs.API.Questionnaire.Version.List_GET ( list_GET, ) where import Data.Aeson (encode) import qualified Data.ByteString.Char8 as BS import qualified Data.UUID as U import Network.HTTP.Types import Network.Wai (Application) import Test.Hspec import Test.Hspec.Wai hiding (shouldRespondWith) import Test....
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/d392b751192a646064305d3534c57becaa229f28/engine-wizard/test/Wizard/Specs/API/Questionnaire/Version/List_GET.hs
haskell
------------------------------------------------------------------------ GET /questionnaires/{qtnUuid}/versions ------------------------------------------------------------------------ ---------------------------------------------------- ---------------------------------------------------- -----------------------...
module Wizard.Specs.API.Questionnaire.Version.List_GET ( list_GET, ) where import Data.Aeson (encode) import qualified Data.ByteString.Char8 as BS import qualified Data.UUID as U import Network.HTTP.Types import Network.Wai (Application) import Test.Hspec import Test.Hspec.Wai hiding (shouldRespondWith) import Test....
e05c3dabc6878c8a9e27cbbb38a8c2fd9b29454247b1b0a317a5cd02f69f0fb5
ku-fpg/blank-canvas
Utils.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} module Graphics.Blank.Utils where import qualified Data.ByteString as B import Data.ByteString.Base64 import Data.Text (Text) import qualified Data.Text as Text import Data.Text.Enc...
null
https://raw.githubusercontent.com/ku-fpg/blank-canvas/c6e8342d60ddbe09af2dc97ae6400e8c848f6266/Graphics/Blank/Utils.hs
haskell
# LANGUAGE OverloadedStrings # | Clear the screen. Restores the default transformation matrix. | Wrap a canvas computation in 'save' / 'restore'. | Read a file, and generate a data URL. > url <- readDataURL "image/png" "image/foo.png" | Find the MIME type for a data URL. > "image/png" | Write a data URL to...
# LANGUAGE NoImplicitPrelude # module Graphics.Blank.Utils where import qualified Data.ByteString as B import Data.ByteString.Base64 import Data.Text (Text) import qualified Data.Text as Text import Data.Text.Encoding (decodeUtf8, encodeUtf...
28f11453a8e970791842b254d8bae95eb68d8b39cb27cabc1300a3201d6ed3b5
Opetushallitus/ataru
render_field_schema.cljs
(ns ataru.hakija.schema.render-field-schema (:require [schema.core :as s])) (s/defschema RenderFieldArgs {:field-descriptor s/Any :render-field s/Any :idx (s/maybe s/Int)})
null
https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/src/cljs/ataru/hakija/schema/render_field_schema.cljs
clojure
(ns ataru.hakija.schema.render-field-schema (:require [schema.core :as s])) (s/defschema RenderFieldArgs {:field-descriptor s/Any :render-field s/Any :idx (s/maybe s/Int)})
2d192d7781cbd907e61b34a45f6c0968d43e4e7412d2633571b592a4c7ea9b19
plumatic/grab-bag
config.clj
{:service {:type "test-service" :jvm-opts "-Xmx2g -Xms2g"} :machine {:tags {:owner "grabbag-corp"}} :parameters {:foo 1 :swank-port 6666 :forward-ports {6666 :swank-port}} :envs {:publisher {:env :stage :machine {:groups ["woven" "grabbag-test"]} ...
null
https://raw.githubusercontent.com/plumatic/grab-bag/a15e943322fbbf6f00790ce5614ba6f90de1a9b5/service/test-service/src/test_service/config.clj
clojure
{:service {:type "test-service" :jvm-opts "-Xmx2g -Xms2g"} :machine {:tags {:owner "grabbag-corp"}} :parameters {:foo 1 :swank-port 6666 :forward-ports {6666 :swank-port}} :envs {:publisher {:env :stage :machine {:groups ["woven" "grabbag-test"]} ...
9161ce3c0f09a2d7ba957d635d6f60fa8e85ae22e197c5003a29addfa4a258ba
elnewfie/lslforge
DOMCombinators.hs
# OPTIONS_GHC -XNoMonomorphismRestriction # module Language.Lsl.Internal.DOMCombinators where import Control.Monad.State import Control.Monad.Except import Data.Maybe import Language.Lsl.Internal.DOMProcessing import Text.XML.HaXml(Attribute,AttValue(..),Document(..),Element(..),Content(..),Reference(..),xmlParse,inf...
null
https://raw.githubusercontent.com/elnewfie/lslforge/27eb84231c53fffba6bdb0db67bde81c1c12dbb9/lslforge/haskell/src/Language/Lsl/Internal/DOMCombinators.hs
haskell
--------------------
# OPTIONS_GHC -XNoMonomorphismRestriction # module Language.Lsl.Internal.DOMCombinators where import Control.Monad.State import Control.Monad.Except import Data.Maybe import Language.Lsl.Internal.DOMProcessing import Text.XML.HaXml(Attribute,AttValue(..),Document(..),Element(..),Content(..),Reference(..),xmlParse,inf...
9753e5812da26a2d952bc7c72fe356e076b6c4475bee62760f62b100634fff23
clojurewerkz/ogre
local_test.clj
(ns clojurewerkz.ogre.suite.local-test (:refer-clojure :exclude [and count drop filter group-by key key identity iterate loop map max min next not or range repeat reverse sort shuffle]) (:require [clojurewerkz.ogre.core :refer :all]) (:import (org.apache.tinkerpop.gremlin.structure T))) (defn get_g_V_localXoutE_...
null
https://raw.githubusercontent.com/clojurewerkz/ogre/cfc5648881d509a55f8a951e01d7b2a166e71d17/test/clojure/clojurewerkz/ogre/suite/local_test.clj
clojure
"
(ns clojurewerkz.ogre.suite.local-test (:refer-clojure :exclude [and count drop filter group-by key key identity iterate loop map max min next not or range repeat reverse sort shuffle]) (:require [clojurewerkz.ogre.core :refer :all]) (:import (org.apache.tinkerpop.gremlin.structure T))) (defn get_g_V_localXoutE_...
2be5b19e43c72aef7aabfff20f1e61d12b451de2ae1f53455c153ad48fe40650
iijlab/direct-hs
sample.hs
{-# LANGUAGE OverloadedStrings #-} module Main where -- | Sample application of wss-client. -- A simple command like wscat. import Control.Monad (forever, unless) import Control.Concurrent (forkIO, killThread) import qualified Data.ByteString.Char8 as B import System.Environment (ge...
null
https://raw.githubusercontent.com/iijlab/direct-hs/2422fd6fe008109e8dfb74f31d65b0d5a0330788/wss-client/app/sample.hs
haskell
# LANGUAGE OverloadedStrings # | Sample application of wss-client. A simple command like wscat.
module Main where import Control.Monad (forever, unless) import Control.Concurrent (forkIO, killThread) import qualified Data.ByteString.Char8 as B import System.Environment (getArgs) import qualified Network.WebSockets.Client as WS main :: IO () main = do url <- head <$> getArgs ...
de2e21d02dbcc33708765afd1557fb835239a73f1a8b464d67075396642b969b
bytekid/mkbtt
nodeTermIndex.mli
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * 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 (...
null
https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mascott/src/nodeTermIndex.mli
ocaml
** TYPES ************************************************************* ** VALUES ************************************************************
Copyright 2010 * GNU Lesser General Public License * * This file is part of MKBtt . * * 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 (...
53e99e954b494e7d9b3f87dd7ad2cb143e4b3886c277d09ea0e6be3973161504
rd--/hsc3
localIn.help.hs
-- localIn ; ping pong ; warning=feedback let z = soundIn 0 a1 = localIn 2 ar 0 + mce [z,0] a2 = delayN a1 0.2 0.2 a3 = mceEdit reverse a2 * 0.8 in mrg [z + a2,localOut a3] localIn ; tape - delay ; ; warning = feedback let rotate2_mce z p = case mceChannels z of [l,r] -> rotate2 l r p ...
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/localIn.help.hs
haskell
localIn ; ping pong ; warning=feedback
let z = soundIn 0 a1 = localIn 2 ar 0 + mce [z,0] a2 = delayN a1 0.2 0.2 a3 = mceEdit reverse a2 * 0.8 in mrg [z + a2,localOut a3] localIn ; tape - delay ; ; warning = feedback let rotate2_mce z p = case mceChannels z of [l,r] -> rotate2 l r p _ -> error "rotate2_mce" tape_del...
f5c2fa85dce318d70bc9cb0a1e45b7be0e517c5b23e9ec41d9f3a88473e5425d
chrondb/chrondb
main_test.clj
(ns counter.main-test (:require [chrondb.api-v1 :as api-v1] [chrondb.config :as config] [chrondb.func :as func] [clojure.pprint :as pp] [clojure.test :refer [deftest is]] [counter.main :as counter] [io.pedestal.http :as http] [io.pede...
null
https://raw.githubusercontent.com/chrondb/chrondb/6542716a5dbd7898d33a88e9fbb7e984d8059b06/samples/counter/test/counter/main_test.clj
clojure
(ns counter.main-test (:require [chrondb.api-v1 :as api-v1] [chrondb.config :as config] [chrondb.func :as func] [clojure.pprint :as pp] [clojure.test :refer [deftest is]] [counter.main :as counter] [io.pedestal.http :as http] [io.pede...
3035f04a6b1bf579aeea5804d4c40299bd1915de6e4fd90e134265a4b1104831
philnguyen/soft-contract
data.rkt
#lang racket/base (require racket/contract) (provide label/c node/c suffix-tree/c (contract-out [struct label ([datum (vectorof (or/c char? symbol?))] [i exact-nonnegative-integer?] [j exact-nonnegative-integer?])] [struct suffix-tree ([root node/c])] [struct node ([up-label label/c] [parent (or/c not node/...
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/gradual-typing-benchmarks/suffixtree/data.rkt
racket
A suffix tree consists of a root node. up-label: label parent: (union #f node) suffix-link: (union #f node)
#lang racket/base (require racket/contract) (provide label/c node/c suffix-tree/c (contract-out [struct label ([datum (vectorof (or/c char? symbol?))] [i exact-nonnegative-integer?] [j exact-nonnegative-integer?])] [struct suffix-tree ([root node/c])] [struct node ([up-label label/c] [parent (or/c not node/...
d2099293fe6dde66a1abe4d9dbef43bcab389e34d6d0a078d6d69908fa493584
jordanthayer/ocaml-search
iterative_deepening_search.ml
* Iterative deepening search - July 2009 Iterative deepening search Jordan Thayer - July 2009 *) type 'a node = { data : 'a; g : float; depth: int; } let wrap f = (** takes a function to be applied to the data payload such as the goal-test or the domain heuristic and wraps it so...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/search/iterative/iterative_deepening_search.ml
ocaml
* takes a function to be applied to the data payload such as the goal-test or the domain heuristic and wraps it so that it can be applied to the entire node * Unwraps a solution which is in the form of a search node and presents it in the format the domain expects it, which is domain data follo...
* Iterative deepening search - July 2009 Iterative deepening search Jordan Thayer - July 2009 *) type 'a node = { data : 'a; g : float; depth: int; } let wrap f = (fun n -> f n.data) let unwrap_sol s = match s with Limit.Nothing -> None | Limit.Incumbent (q,n) -> Some (n.data,...
2027845474021618d3ce5f7fcbe8fe54a78be89ee1ed355fe733729fa626e61a
planetfederal/signal
response.clj
Copyright 2016 - 2018 Boundless , ;; Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -2.0 ;; ;; Unless required by applicable law or agreed to in writing, software distribute...
null
https://raw.githubusercontent.com/planetfederal/signal/e3eae56c753f0a56614ba8522278057ab2358c96/src/signal/components/http/response.clj
clojure
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permiss...
Copyright 2016 - 2018 Boundless , distributed under the License is distributed on an " AS IS " BASIS , (ns signal.components.http.response (:require [camel-snake-kebab.core :refer :all] [camel-snake-kebab.extras :refer [transform-keys]] [clojure.tools.logging :as log])) (defn is-error? ...
fa2979824c5761d8c5727b1f72f2ab97c3af68a42623ab0017d8ef994fe980f3
mivoq/hunpos
main_ocaml.ml
let _ = Hello.hello_world (); Gc.full_major (); ;;
null
https://raw.githubusercontent.com/mivoq/hunpos/0f0f775039fa749e67711c07ac681a16c0979349/ocaml-cmake/examples/hello_world_lib/main_ocaml.ml
ocaml
let _ = Hello.hello_world (); Gc.full_major (); ;;
b716364a340a45be1988dd065a1e8434d2c8655c8bf220e6a4c286a358d9f446
gonimo/gonimo
GonimoFront.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecursiveDo #-} # LANGUAGE ScopedTypeVariables # import qualified Gonimo.Client.Host.Impl as Gonimo import qualified Gonimo.Client.Main as Gonimo import qualified GHCJS.DOM.Types as ...
null
https://raw.githubusercontent.com/gonimo/gonimo/f4072db9e56f0c853a9f07e048e254eaa671283b/front-ghcjs/app/GonimoFront.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE RecursiveDo #
# LANGUAGE CPP # # LANGUAGE ScopedTypeVariables # import qualified Gonimo.Client.Host.Impl as Gonimo import qualified Gonimo.Client.Main as Gonimo import qualified GHCJS.DOM.Types as JS main :: IO () main = Gonimo.main =<< Gonimo.makeEmptyHostVars
58ac4fafdf417d5af7b936311a8a2c0d9516d4ebea2b11c0b3d59379abee144c
alvatar/spheres
make-lib.scm
Copyright ( c ) 2007 - 2011 , ;; All rights reserved. ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; * Redistributions of source code must retain the above copyright ;; notice, this list of con...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/doc/string/unicode/bigloo-unicode/make-lib.scm
scheme
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Red...
Copyright ( c ) 2007 - 2011 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED DISCLAIMED . IN NO EVENT SHALL < COPYRIGHT HOLDER > BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPEC...
a4e4bad691559314d30b00fb712eb6b89e8a8fed414f4e784473770a23e4979d
d-cent/mooncake
activity.clj
(ns mooncake.test.domain.activity (:require [midje.sweet :refer :all] [mooncake.domain.activity :as activity])) (fact "about activity->default-action-text" (let [activity-1 {:type "Create" :published "2015-09-06T11:05:53+03:00" :object {:type ...
null
https://raw.githubusercontent.com/d-cent/mooncake/eb16b7239e7580a73b98f7cdacb324ab4e301f9c/test/mooncake/test/domain/activity.clj
clojure
(ns mooncake.test.domain.activity (:require [midje.sweet :refer :all] [mooncake.domain.activity :as activity])) (fact "about activity->default-action-text" (let [activity-1 {:type "Create" :published "2015-09-06T11:05:53+03:00" :object {:type ...
b172acd71e280abedbed4218d4a18f17be36238672906f43315f9c500ce7d57f
Jell/euroclojure-2016
diagram_rails.cljs
(ns euroclojure.diagram-rails (:require-macros [euroclojure.inline :refer [inline-file]])) (defn slide [] [:div.slide [:div.diagram {:dangerouslySetInnerHTML {:__html (inline-file "resources/public/images/RailsProcess.svg")}}]])
null
https://raw.githubusercontent.com/Jell/euroclojure-2016/a8ca883e8480a4616ede19995aaacd4a495608af/src/euroclojure/diagram_rails.cljs
clojure
(ns euroclojure.diagram-rails (:require-macros [euroclojure.inline :refer [inline-file]])) (defn slide [] [:div.slide [:div.diagram {:dangerouslySetInnerHTML {:__html (inline-file "resources/public/images/RailsProcess.svg")}}]])
b08fa7023816dd95f704dc06ee775e81d7fb31576514c1baa4ccf37d7cd98823
smaccoun/polysemy-servant
DB.hs
module Effects.DB where import AppBase import Polysemy import Data.Pool (Pool) import Database.Persist.Sql (SqlBackend, toSqlKey) import qualified Database.Persist.Sql as P import Database.Persist type CommonRecordConstraint record = (PersistQueryRead SqlBackend, PersistEntityBackend record ~ BaseBackend SqlBackend, ...
null
https://raw.githubusercontent.com/smaccoun/polysemy-servant/93f7977d6c03995d03674e9e5e0c24f02458b182/src/Effects/DB.hs
haskell
module Effects.DB where import AppBase import Polysemy import Data.Pool (Pool) import Database.Persist.Sql (SqlBackend, toSqlKey) import qualified Database.Persist.Sql as P import Database.Persist type CommonRecordConstraint record = (PersistQueryRead SqlBackend, PersistEntityBackend record ~ BaseBackend SqlBackend, ...
370d664bd8f6369c5eeace896946406a17ac2e4d61c550df81b9848a99f5678f
nasa/Common-Metadata-Repository
project.clj
(defproject gov.nasa.earthdata/cmr-authz "0.1.3" :description "An authorization utility library for CMR services" :url "-exchange/authz" :license {:name "Apache License, Version 2.0" :url "-2.0"} :dependencies [[cheshire "5.8.1"] [clojusc/trifl "0.4.2"] [clojusc/twi...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/authz/project.clj
clojure
Dev & Testing Aliases ["eastwood"] Build tasks Publishing
(defproject gov.nasa.earthdata/cmr-authz "0.1.3" :description "An authorization utility library for CMR services" :url "-exchange/authz" :license {:name "Apache License, Version 2.0" :url "-2.0"} :dependencies [[cheshire "5.8.1"] [clojusc/trifl "0.4.2"] [clojusc/twi...
d1a2ed69b9d732be50ed31be57207242a0d69d299e2b9a1a6c37294a01c65b22
falsetru/htdp
39.1.3.scm
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-advanced-reader.ss" "lang")((modname 39.1.3) (read-case-sensitive #t) (teachpacks ((lib "gui.ss" "teachpack" "htdp") (lib "draw.ss" "teach...
null
https://raw.githubusercontent.com/falsetru/htdp/4cdad3b999f19b89ff4fa7561839cbcbaad274df/39/39.1.3.scm
scheme
about the language level of this file in a form that our tools can easily process. the positions of the bulbs View: draw-light : TL-color number -> true to (re)draw the traffic light on the canvas Model: make-traffic-light : symbol number -> ( -> true) to create a red light with (make-posn x-posn 0) as th...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-advanced-reader.ss" "lang")((modname 39.1.3) (read-case-sensitive #t) (teachpacks ((lib "gui.ss" "teachpack" "htdp") (lib "draw.ss" "teachpack" "htdp") (lib "guess.ss" "teachpack" "htdp"))) (htdp-settings #(#t constructor re...
279bc75216659c4570f4b64f5402e82e0e1ae271fce986945d7898bb6f34cef5
backtracking/mlpost
fonts.mli
open Dvi_util (** Load fonts and extract information *) type type1 = private { glyphs_tag : int; (* unique tag *) glyphs_ft : Mlpost_ft.t; the file , pfb or pfa , which define the glyphs glyphs_enc : int -> int; (* the conversion of the charactersx between tex and the font *) slant : float option; ext...
null
https://raw.githubusercontent.com/backtracking/mlpost/bd4305289fd64d531b9f42d64dd641d72ab82fd5/src/fonts.mli
ocaml
* Load fonts and extract information unique tag the conversion of the charactersx between tex and the font Font on which the virtual font is defined The dvi command which define each character * the type of a loaded font * [load_font def f] loads font [def] scaled by [f] * Obtain the font metric * get the na...
open Dvi_util type type1 = private { glyphs_tag : int; glyphs_ft : Mlpost_ft.t; the file , pfb or pfa , which define the glyphs glyphs_enc : int -> int; slant : float option; extend : float option; glyphs_ratio_cm : float; } type vf = private { vf_design_size : float; vf_font_map : Dvi_util.font_de...
bf070d191b3e672efcfbb00c1b03f935179aba41c5ebc522b2552f43aa7986c1
mpickering/apply-refact
Pragma10.hs
# LANGUAGE DataKinds # # LANGUAGE GADTs , DataKinds #
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Pragma10.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE GADTs , DataKinds #
516c440a92a572e1141c5736d990ea489d4f839e0e1b89397191e3f0850c0b92
keybase/colorbase
db.clj
(ns colorbase.db (:require [colorbase.config :refer [config]] [colorbase.util :as util] [hugsql.core :as hugsql])) (defn result-one-snake->kebab [this result options] (let [row (hugsql.adapter/result-one this result options)] (util/map-keys util/keyword-snake->kebab row))) (defn result...
null
https://raw.githubusercontent.com/keybase/colorbase/f4b4a87e98c91b6b184db8d84ccd523ac9842a15/src/colorbase/db.clj
clojure
(ns colorbase.db (:require [colorbase.config :refer [config]] [colorbase.util :as util] [hugsql.core :as hugsql])) (defn result-one-snake->kebab [this result options] (let [row (hugsql.adapter/result-one this result options)] (util/map-keys util/keyword-snake->kebab row))) (defn result...
99a638be3d68d180341006029b2cdc91204e00e9f2f4523f8abd5a22f61f290a
WFP-VAM/RAMResourcesScripts
LCS-EN-indicator.sps
SPSS Syntax to compute LCS essential needs (LCS_EN) Please refer to Github for additonal scripts in R and STATA data analysis tools ***Livelihood Coping *** ***define value labels Value labels LcsEN_stress_DomAsset LcsEN_stress_CrdtFood LcsEN_stress_Saving LcsEN_stress_BorrowCash LcsEN_crisis_ProdAsset LcsE...
null
https://raw.githubusercontent.com/WFP-VAM/RAMResourcesScripts/236e1a630f053d27161c73dfe01a9ef04b7ebdcc/Indicators/Livelihood-Coping-Strategies-EN/LCS-EN-indicator.sps
scheme
SPSS Syntax to compute LCS essential needs (LCS_EN) Please refer to Github for additonal scripts in R and STATA data analysis tools ***Livelihood Coping *** ***define value labels Value labels LcsEN_stress_DomAsset LcsEN_stress_CrdtFood LcsEN_stress_Saving LcsEN_stress_BorrowCash LcsEN_crisis_ProdAsset LcsE...
c621a27a36cec258a46a1c1563c84a15bf7d95b3ef304555aae73be4fb16641d
apache/couchdb-erlfdb
erlfdb_key.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/apache/couchdb-erlfdb/0fa8eac025253c56ddacfe0e0420d4d3ac5e9768/src/erlfdb_key.erl
erlang
use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(erlfdb_key). -export([ to_selector/1, last_less_than/1, last_less_or_equal/1, first_greater_than/1, first_greater_or_equal/1, ...
a7b9979f0f5816c2ef30eeca6f830078f0cb01530cd990f2d17aac5ff77858e5
Hendrick/ring-okta
session.clj
(ns ring.ring-okta.session (:require [ring.ring-okta.saml :as saml] [clojure.core.incubator :refer [dissoc-in]] [ring.util.response :as response])) (defn login [{:keys [params okta-config-location]}] (let [okta-response (saml/respond-to-okta-post params okta-config-location)] (assoc-in ...
null
https://raw.githubusercontent.com/Hendrick/ring-okta/bad2278d2ef7287da108684de8e9f5206d74d510/src/ring/ring_okta/session.clj
clojure
(ns ring.ring-okta.session (:require [ring.ring-okta.saml :as saml] [clojure.core.incubator :refer [dissoc-in]] [ring.util.response :as response])) (defn login [{:keys [params okta-config-location]}] (let [okta-response (saml/respond-to-okta-post params okta-config-location)] (assoc-in ...
bde69650216764b31e1bce2871a84eb724facb59eb334073fb05195850762880
marick/fp-oo
building-data.clj
(def fap (fn [] (fn [lookup-key] nil))) (def fassoc (fn [fap new-key value] (fn [lookup-key] (if (= lookup-key new-key) value (fap lookup-key)))))
null
https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/old-code/sources/building-data.clj
clojure
(def fap (fn [] (fn [lookup-key] nil))) (def fassoc (fn [fap new-key value] (fn [lookup-key] (if (= lookup-key new-key) value (fap lookup-key)))))
0526b2251987ab366fd602c441aeeadb1b5b07ca5e46dc0bcc87ddc198741c24
sealchain-project/sealchain
Binary.hs
module Pos.Infra.Binary () where import Pos.Infra.Binary.DHTModel ()
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/infra/src/Pos/Infra/Binary.hs
haskell
module Pos.Infra.Binary () where import Pos.Infra.Binary.DHTModel ()
26e353e5717999748999e2beb338ea0a89af9329155cbcd63621ee88926716f7
mattmundell/nightshade
ambiguous-files.lisp
;;; Tests of lisp:ambiguous-files. (in-package "LISP") (import '(deftest:deftest deftest:with-test-dir deftest:with-test-search-list)) (defmacro files= (list1 list2 list2-dir) "Return true if $list1 lists the same set of files as those in $list2 merged with $dir." `(equal (sort (mapcar #'namestring ,list...
null
https://raw.githubusercontent.com/mattmundell/nightshade/d8abd7bd3424b95b70bed599e0cfe033e15299e0/src/tests/code/filesys.lisp/ambiguous-files.lisp
lisp
Tests of lisp:ambiguous-files. Directory with siblings. File with siblings. Failure. Symlink to file. Symlink to directory. Hidden file. Backup file. Mixed. Search list. Ancestor directory. Inside a is b. Errors.
(in-package "LISP") (import '(deftest:deftest deftest:with-test-dir deftest:with-test-search-list)) (defmacro files= (list1 list2 list2-dir) "Return true if $list1 lists the same set of files as those in $list2 merged with $dir." `(equal (sort (mapcar #'namestring ,list1) #'string<) (sort (mapcar (lam...
8806a19eec34f167854373203b2cc916c4763cd4992b783b29e6329c0617a17a
tek/proteome
InitTest.hs
module Proteome.Test.InitTest where import Polysemy.Test (UnitTest, (===)) import Ribosome.Api (nvimCommand, vimGetVar) import qualified Ribosome.Settings as Settings import Ribosome.Test (testError) import Proteome.Data.ProjectName (ProjectName (ProjectName)) import Proteome.Data.ProjectType (ProjectType (ProjectTyp...
null
https://raw.githubusercontent.com/tek/proteome/019928432bd5f5ba87d35eab19e341a5c98b1bba/packages/proteome/test/Proteome/Test/InitTest.hs
haskell
module Proteome.Test.InitTest where import Polysemy.Test (UnitTest, (===)) import Ribosome.Api (nvimCommand, vimGetVar) import qualified Ribosome.Settings as Settings import Ribosome.Test (testError) import Proteome.Data.ProjectName (ProjectName (ProjectName)) import Proteome.Data.ProjectType (ProjectType (ProjectTyp...
47186c7637f3d9ba6c34b5f89c57ac9f56ef42fab756072fb52e7409b3d22054
hackinghat/cl-mysql
package.lisp
;;;; -*- Mode: Lisp -*- $ Id$ ;;;; Copyright ( c ) 2009 < > ;;;; ;;;; 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...
null
https://raw.githubusercontent.com/hackinghat/cl-mysql/3fbf6e1421484f64c5bcf2ff3c4b96c6f0414f09/package.lisp
lisp
-*- Mode: Lisp -*- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, merge, publish, the following conditions: The above copyright notice and this permission notice shall b...
$ Id$ Copyright ( c ) 2009 < > " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to included in all copies or substantial portions of the Softwa...
15d0f6da8ed50547d1f0e874202beeede35877985676ad36d8f99c04174c3e57
staples-sparx/kits
homeless.clj
(ns ^{:doc "Unfortunate, uncategorized utility functions and macros. Please help one of these poor souls find a home in a focused, Single-Responsibility namespace instead :("} kits.homeless (:require [clojure.pprint :as pprint] [clojure.set :as set] [clojure.string :as str]) (:...
null
https://raw.githubusercontent.com/staples-sparx/kits/66ae99bce83e8fd1248cc5c0da1f23673f221073/src/clojure/kits/homeless.clj
clojure
they all deal with changing call semantics. -sd wait-until, attempt-until, wrap-periodic, periodic-fn with-timeout, call-with-timeout, etc. progress reporting
(ns ^{:doc "Unfortunate, uncategorized utility functions and macros. Please help one of these poor souls find a home in a focused, Single-Responsibility namespace instead :("} kits.homeless (:require [clojure.pprint :as pprint] [clojure.set :as set] [clojure.string :as str]) (:...
9a53e3314b25764b58ad804fa7b2e51e2ea111e79047d70e1d714627c25e56c4
xvw/planet
console.mli
(** Generic Console Binding. *) open Bedrock * { 2 API } * { 3 Log / Print } (** Log value on [console]. *) val log : 'a -> unit (** Print [string] on [console]. *) val print : string -> unit (** Clear [console]. *) val clear : unit -> unit (** Log info on [console]. *) val info : 'a -> unit (** Log error on [c...
null
https://raw.githubusercontent.com/xvw/planet/c2a77ea66f61cc76df78b9c2ad06d114795f3053/src/facade/console.mli
ocaml
* Generic Console Binding. * Log value on [console]. * Print [string] on [console]. * Clear [console]. * Log info on [console]. * Log error on [console]. * Log warning on [console]. * Outputs a stack trace. * Display a table on the [console]. * {3 Counters} * If supplied, [count_reset] resets the count for th...
open Bedrock * { 2 API } * { 3 Log / Print } val log : 'a -> unit val print : string -> unit val clear : unit -> unit val info : 'a -> unit val error : 'a -> unit val warning : 'a -> unit * Display a JavaScript object whose properties should be output . val dir : 'a -> unit val trace : unit -> unit val tabl...
8d4356ddca451f162ee0652f5f52c9d8f80f37482c8002e45329b7f78918f1fd
racket/gui
main-extracts.rkt
#lang racket/base (require scribble/extract) (provide-extracted (lib "framework/main.rkt"))
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-doc/scribblings/framework/main-extracts.rkt
racket
#lang racket/base (require scribble/extract) (provide-extracted (lib "framework/main.rkt"))
5bd570c8975f727c24296d06d20df965b60a44db240fb71b5fef0ca4c449c96d
bazqux/bazqux-urweb
Basic.hs
# LANGUAGE BangPatterns , OverloadedStrings , RecordWildCards # -- | -- Module: Network.Riak.Basic Copyright : ( c ) 2011 MailRank , Inc. License : Apache Maintainer : < > , < > -- Stability: experimental -- Portability: portable -- Basic support for the Riak decentralized data store . -...
null
https://raw.githubusercontent.com/bazqux/bazqux-urweb/bf2d5a65b5b286348c131e91b6e57df9e8045c3f/crawler/Lib/riak-0.7.2.0/src/Network/Riak/Basic.hs
haskell
| Module: Network.Riak.Basic Stability: experimental Portability: portable When storing and retrieving data, the functions in this module do not perform any encoding or decoding of data, nor do they resolve conflicts. * Client configuration and identification * Connection management * Data management...
# LANGUAGE BangPatterns , OverloadedStrings , RecordWildCards # Copyright : ( c ) 2011 MailRank , Inc. License : Apache Maintainer : < > , < > Basic support for the Riak decentralized data store . module Network.Riak.Basic ( ClientID , Client(..) , defaultClient , Connect...
06d3ed6329a3da9a0227950b6aeefbb1145b4d4f0f9efc1d937ff8694a1cd365
haskell-CI/haskell-ci
Config.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # module HaskellCI.Config where import HaskellCI.Prelude import qualified Data.ByteString ...
null
https://raw.githubusercontent.com/haskell-CI/haskell-ci/c3a891f871775a1bd61a95ffac9b414b72987af3/src/HaskellCI/Config.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # ----------------------------------------------------------------------------- Config ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Grammar...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE OverloadedStrings # # LANGUAGE TypeApplications # module HaskellCI.Config where import HaskellCI.Prelude import qualified Data.ByteString as BS import qualified Data.Map as M import qual...
0043b517972ebfd301b2bb2044d7a9267354094c5f028067e746b08298e47ce9
mirage/irmin
commit_intf.ml
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/irmin/commit_intf.ml
ocaml
* {1 Commit values} * The type for commit values. * Type for node keys. * Type for commit keys. * The type for commit info. * Create a commit. * The underlying node key. * The commit parents. * The commit info. * {1 Commit Store} * Commit info. * [Val] provides functions for commit values. * [Node] is the u...
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
3b5fbe46db53a20c496ff73e00c5cbc6253361d09ffbf611657531c932e0c653
berke/aurochs
cgidemo.ml
(* Cgi-bin *) open Aurochs_pack open Peg open Cgi open Xml open Pffpsf let error_html msg = [ U(N("h1", [], [D"Error"])); U(N("p", [], [D msg])) ] let br = O("br",[]) let paragraph x = N("p",[],x) let div taxon child = N("div", [{n="class"; v=S taxon}], child) let span taxon child = N("span", [{n="cl...
null
https://raw.githubusercontent.com/berke/aurochs/637bdc0d4682772837f9e44112212e7f20ab96ff/examples/cgidemo/cgidemo.ml
ocaml
Cgi-bin Examples let host = remote_host in
open Aurochs_pack open Peg open Cgi open Xml open Pffpsf let error_html msg = [ U(N("h1", [], [D"Error"])); U(N("p", [], [D msg])) ] let br = O("br",[]) let paragraph x = N("p",[],x) let div taxon child = N("div", [{n="class"; v=S taxon}], child) let span taxon child = N("span", [{n="class"; v=S taxo...
98050d2e93e8970b81a8e4861d63f4c48ab85fea12da358342d1208cf6ee0746
siraben/mini-haskell
classy.hs
------------------------------------------------------------------------ A mini Haskell compiler with typeclasses . Originally written by , modified by ------------------------------------------------------------------------ Delete code below and uncomment the block to compile in GHC {- {-# LANGUAGE FlexibleI...
null
https://raw.githubusercontent.com/siraben/mini-haskell/d2f30da94cda0fa511a0cea75febbb03f54ce3de/classy.hs
haskell
---------------------------------------------------------------------- ---------------------------------------------------------------------- {-# LANGUAGE FlexibleInstances # # LANGUAGE TypeSynonymInstances # fpair = flip curry fold a list flist :: [a] -> b -> (a -> [a] -> b) -> b (==) on lists maybe :: b -> (a -...
A mini Haskell compiler with typeclasses . Originally written by , modified by Delete code below and uncomment the block to compile in GHC # LANGUAGE OverlappingInstances # # LANGUAGE CPP # # LANGUAGE TupleSections # # LANGUAGE NoMonomorphismRestriction # module Compiler where import Prelude (Char, Int, Strin...
8c7e36d8793a7bef65d2e758b57ca7216d49657ab5db45f059009e61aa8fb89e
auser/beehive
system_controller.erl
%%%------------------------------------------------------------------- File : Author : %%% Description : %%% Created : Thu Dec 31 12:52:24 PST 2009 %%%------------------------------------------------------------------- -module (system_controller). -include ("http.hrl"). -export ([get/2, post/2, put/2...
null
https://raw.githubusercontent.com/auser/beehive/dfe257701b21c56a50af73c8203ecac60ed21991/lib/erlang/apps/beehive/src/bh_rest/app_controllers/system_controller.erl
erlang
------------------------------------------------------------------- Description : ------------------------------------------------------------------- /system/reload/config
File : Author : Created : Thu Dec 31 12:52:24 PST 2009 -module (system_controller). -include ("http.hrl"). -export ([get/2, post/2, put/2, delete/2]). get(_, _Data) -> {"beehive", ["routes"]}. post(["reload", "config"], _Data) -> node_manager:read_bee_configs(), {ok, "reloaded"}; post(["reloa...
20e06d2c29f5e7817538589d016994aff2d633d3ca204ecf12939858b9551e86
seckcoder/course-compiler
r2_12.rkt
(if (if (not #t) #f #t) 42 777)
null
https://raw.githubusercontent.com/seckcoder/course-compiler/4363e5b3e15eaa7553902c3850b6452de80b2ef6/tests/student-tests/r2_12.rkt
racket
(if (if (not #t) #f #t) 42 777)
77ab730bfb8e00d440b68527e1a98f1d5f02818fa5ee1a95aa2736b0f563251d
y-taka-23/miso-vue-example
Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Data.Aeson (FromJSON (..), Value (Object), decodeStrict, (.:)) import qualified Data.JSString as J import JavaScript.Web.XMLHttpRequest import Mi...
null
https://raw.githubusercontent.com/y-taka-23/miso-vue-example/4d3fe5a129fa8e126ed4aa786db58c454e79add4/github-commits/Main.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Data.Aeson (FromJSON (..), Value (Object), decodeStrict, (.:)) import qualified Data.JSString as J import JavaScript.Web.XMLHttpRequest import Miso import Miso.String ...
3240614fb33195f41d39d1401ca2fec5a902a230e4bd8f6b5d83d9771d776569
digitallyinduced/ihp
QQ.hs
# LANGUAGE TemplateHaskell , UndecidableInstances , BangPatterns , PackageImports , FlexibleInstances , OverloadedStrings # | Module : IHP.HSX.QQ Description : Defines the @[hsx||]@ syntax Copyright : ( c ) digitally induced GmbH , 2022 Module: IHP.HSX.QQ Description: Defines the @[hsx||]@ syntax Copyright: (c...
null
https://raw.githubusercontent.com/digitallyinduced/ihp/f8afa474de77a8ae5ba6626f9d9878889653a6cb/ihp-hsx/IHP/HSX/QQ.hs
haskell
# INLINE spreadAttributes # "true" for data attributes data attribute set to "false" html boolean attribute, like <input disabled/> will be dropped as there is no other way to specify that it's set to false # OVERLAPPABLE #
# LANGUAGE TemplateHaskell , UndecidableInstances , BangPatterns , PackageImports , FlexibleInstances , OverloadedStrings # | Module : IHP.HSX.QQ Description : Defines the @[hsx||]@ syntax Copyright : ( c ) digitally induced GmbH , 2022 Module: IHP.HSX.QQ Description: Defines the @[hsx||]@ syntax Copyright: (c...
a99b45bd4273c3e96fb6e3789d5b2ce7f16394f8cd7f88ae461244b4b91e291c
alan-j-hu/ocaml-textmate-language
tmLanguage.ml
include Common include Reader include Tokenizer
null
https://raw.githubusercontent.com/alan-j-hu/ocaml-textmate-language/06f80e6d1cdf99949514281f1705a1a29604ff75/src/tmLanguage.ml
ocaml
include Common include Reader include Tokenizer
052756fc25325f0d66d6b3dec4f7853ed84e5046ba4dfe190556356aeba34dd2
smucclaw/dsl
NLG.hs
{-# OPTIONS_GHC -Wno-name-shadowing #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GADTs, NamedFieldPuns, FlexibleContexts #-} {-# LANGUAGE RankNTypes #-} module LS.NLP.NLG where import LS.NLP.NL4 import LS.NLP.NL4Transformations import LS.Types import LS.Rule (Rule(..)) import PGF import Data.Maybe (catMaybes)...
null
https://raw.githubusercontent.com/smucclaw/dsl/c4519c02c303b836c738f20b6f3fdda69516803a/lib/haskell/natural4/src/LS/NLP/NLG.hs
haskell
# OPTIONS_GHC -Wno-name-shadowing # # LANGUAGE OverloadedStrings # # LANGUAGE GADTs, NamedFieldPuns, FlexibleContexts # # LANGUAGE RankNTypes # --------------------------------------------------------------------------- Main :: [GConstraint] -- this will not become a question | rewrite statements into questions, for...
module LS.NLP.NLG where import LS.NLP.NL4 import LS.NLP.NL4Transformations import LS.Types import LS.Rule (Rule(..)) import PGF import Data.Maybe (catMaybes) import qualified Data.Text as Text import qualified AnyAll as AA import System.Environment (lookupEnv) import Paths_natural4 import Data.Foldable as F data NL...
5743aff8d6a7dd413062c6d772b1a8eea824176ec76b10dfd32b98f91ddf382e
dhess/sicp-solutions
ex2.68.scm
(define (make-leaf symbol weight) (list 'leaf symbol weight)) (define (leaf? object) (eq? (car object) 'leaf)) (define (symbol-leaf x) (cadr x)) (define (weight-leaf x) (caddr x)) (define (make-code-tree left right) (list left right (append (symbols left) (symbols right)) (+ ...
null
https://raw.githubusercontent.com/dhess/sicp-solutions/2cf78db98917e9cb1252efda76fddc8e45fe4140/chap2/ex2.68.scm
scheme
(define (make-leaf symbol weight) (list 'leaf symbol weight)) (define (leaf? object) (eq? (car object) 'leaf)) (define (symbol-leaf x) (cadr x)) (define (weight-leaf x) (caddr x)) (define (make-code-tree left right) (list left right (append (symbols left) (symbols right)) (+ ...
4f65b6aa8b7a0f79ce6a3581c8e7734711c378d47bea2d4b88f85358297db84a
yoshihiro503/ocamltter
api_intf.ml
open Spotlib.Spot open Meta_conv.Open open OCamltter_oauth open Camlon open Ocaml_conv.Default open Json_conv.Default module Json = struct include Tiny_json.Json let json_of_t x = x let t_of_json ?trace:_ x = Ok x let ocaml_of_t t = Ocaml.String (show t) let t_of_ocaml = Ocaml_conv.Helper.of_deconstr (funct...
null
https://raw.githubusercontent.com/yoshihiro503/ocamltter/be7ac68c8076bc2ca8ccec216d6647c94ec9f814/twitter/api_intf.ml
ocaml
HTML encoded text Lots of optional fields! profile_background_color : string; notifications : bool option; profile_background_image_url_https : string profile_background_image_url : string; utc_offset : float profile_link_color ...
open Spotlib.Spot open Meta_conv.Open open OCamltter_oauth open Camlon open Ocaml_conv.Default open Json_conv.Default module Json = struct include Tiny_json.Json let json_of_t x = x let t_of_json ?trace:_ x = Ok x let ocaml_of_t t = Ocaml.String (show t) let t_of_ocaml = Ocaml_conv.Helper.of_deconstr (funct...
c9efa192f42fc38e8cb1467bc44db4ce1d3e9a937d29d27222648c8f8b399dc9
harpocrates/inline-rust
Main.hs
# LANGUAGE TemplateHaskell , QuasiQuotes , CPP # #ifdef darwin_HOST_OS # OPTIONS_GHC -optl - Wl,-all_load # #else # OPTIONS_GHC -optl - Wl,--whole - archive # #endif module Main where import Language.Rust.Inline import SimpleTypes import GhcUnboxedTypes import PointerTypes import FunctionPointerTypes import Prelude...
null
https://raw.githubusercontent.com/harpocrates/inline-rust/5ecff8c92526000e5fc358a2dfede9b60ef59a1a/tests/Main.hs
haskell
whole - archive #
# LANGUAGE TemplateHaskell , QuasiQuotes , CPP # #ifdef darwin_HOST_OS # OPTIONS_GHC -optl - Wl,-all_load # #else #endif module Main where import Language.Rust.Inline import SimpleTypes import GhcUnboxedTypes import PointerTypes import FunctionPointerTypes import PreludeTypes import AlgebraicDataTypes import Data.W...
55919e3d32267c68c651a4ea72178462665a3b741e110ad88be3ce8e8b500347
yutopp/rill
functions.ml
* Copyright 2020 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2020 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * ) *) ...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/lib/sema/functions.ml
ocaml
* Copyright 2020 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2020 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * ) *) ...
95c6318f3e8f4fb03c219a97e4eeffbc9e0d0856f3c355cbe729df220510cce4
BillHallahan/G2
M18.hs
{-@ LIQUID "--no-termination" @-} module M19 (main) where @ main : : Int - > { b : | b } @ main :: Int -> Bool main flag = case while flag (0, 0) of (_, j) -> if flag >= 0 then j == 100 else True @ while : : flag : Int - > xs : { xs:(Int , Int ) | ( flag > = 0 = > x_Tuple21 xs = = x_Tuple22 ...
null
https://raw.githubusercontent.com/BillHallahan/G2/f2584eb2ec211aed73b3ccd88c6e232c3cf4386d/tests/LiquidInf/Paper/Eval/CompareVerified/M18.hs
haskell
@ LIQUID "--no-termination" @
module M19 (main) where @ main : : Int - > { b : | b } @ main :: Int -> Bool main flag = case while flag (0, 0) of (_, j) -> if flag >= 0 then j == 100 else True @ while : : flag : Int - > xs : { xs:(Int , Int ) | ( flag > = 0 = > x_Tuple21 xs = = x_Tuple22 xs ) & & x_Tuple21 xs < = 100 } ...
00e6227f91832ed1674eb6850e2be9e782d624da0669a2c8d4eda49a8b982609
clojure/core.rrb-vector
test_common.cljs
(ns clojure.core.rrb-vector.test-common (:require [clojure.test :as test :refer [deftest testing is are]] [clojure.core.reducers :as r] [clojure.core.rrb-vector.test-utils :as u] [clojure.core.rrb-vector :as fv] [clojure.core.rrb-vector.debug :as dv] [clojur...
null
https://raw.githubusercontent.com/clojure/core.rrb-vector/88c2f814b47c0bbc4092dad82be2ec783ed2961f/src/test/cljs/clojure/core/rrb_vector/test_common.cljs
clojure
The intent is to keep this file as close to for this library, this file and that one can be replaced with a This problem reproduction code is from CRRBV-12 ticket: -12 I would prefer to have all of the data that is the value of crrbv-12-data read from a separate file, but it is not terribly long, and having it ...
(ns clojure.core.rrb-vector.test-common (:require [clojure.test :as test :refer [deftest testing is are]] [clojure.core.reducers :as r] [clojure.core.rrb-vector.test-utils :as u] [clojure.core.rrb-vector :as fv] [clojure.core.rrb-vector.debug :as dv] [clojur...
0088d9f9e224aab959738e0893367f201c29b080e13ee2e7f02f76a84acecca2
reflectionalist/S9fES
search-path.scm
Scheme 9 from Empty Space , Function Library By , 2010 ; Placed in the Public Domain ; ( search - path ) = = > string | # f ; Search the Unix search path STRING2 for the executable STRING1 . Return the full path of the first executable found or # F if not executable named STRING1 can be found in th...
null
https://raw.githubusercontent.com/reflectionalist/S9fES/0ade11593cf35f112e197026886fc819042058dd/ext/search-path.scm
scheme
Placed in the Public Domain STRING2 is a colon-separated list of paths, e.g.: "/bin:/usr/bin:/usr/local/bin" file is executable. (Example): (search-path "vi" "/bin:/usr/bin") ==> "/usr/bin/vi"
Scheme 9 from Empty Space , Function Library By , 2010 ( search - path ) = = > string | # f Search the Unix search path STRING2 for the executable STRING1 . Return the full path of the first executable found or # F if not executable named STRING1 can be found in the given path . SEARCH - PATH use...