_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
a2c158d98f0caddf5b1efcc57522eab47d888b7f6e8fba49ea19284a5606cd01
dizengrong/erlang_game
util_map.erl
@author dzR < > %% @doc 与地图相关的一些util方法 -module (util_map). -include ("map.hrl"). -export ([is_can_move/3, move_used_tick/2]). %% @doc 检查该地图上的某个点是否能走 is_can_move(MapId, X, Y) -> cfg_map:is_can_move(MapId, X, Y). %% @doc 已速度MoveSpeed在地图中移动Length长度需要多少个tick %% 这里假设移动一个长度需要50毫秒, move_used_tick(MoveSpeed, Length) -> ...
null
https://raw.githubusercontent.com/dizengrong/erlang_game/4598f97daa9ca5eecff292ac401dd8f903eea867/gerl/src/util/util_map.erl
erlang
@doc 与地图相关的一些util方法 @doc 检查该地图上的某个点是否能走 @doc 已速度MoveSpeed在地图中移动Length长度需要多少个tick 这里假设移动一个长度需要50毫秒,
@author dzR < > -module (util_map). -include ("map.hrl"). -export ([is_can_move/3, move_used_tick/2]). is_can_move(MapId, X, Y) -> cfg_map:is_can_move(MapId, X, Y). move_used_tick(MoveSpeed, Length) -> util_math:ceil((Length * 50) / MoveSpeed).
8d5b8f91afabe12693634e5d5e420508b4f713558347ffe3468b2ff586e4c95e
lambdaisland/deja-fu
deja_fu.cljs
(ns lambdaisland.deja-fu "Time/Date types for use on the frontend. This provides the following equivalents: | #time/date \"2020-10-10\" | java.time.LocalDate | goog.date.Date | | #time/time \"05:30:45\" | java.time.LocalTime | lambdaisland.dej...
null
https://raw.githubusercontent.com/lambdaisland/deja-fu/886ef5b930067249615fc3cddd0670133aaad256/src/lambdaisland/deja_fu.cljs
clojure
bit weird to have epoch-ms here, but it helps to support other operations that rely on it The way goog.date.Date/DateTime are defined means the constructor function is anonymous, it's name is "", and this property is by default read-only. We goog.date.DateTime only has milliseconds, so we truncate. Not a huge los...
(ns lambdaisland.deja-fu "Time/Date types for use on the frontend. This provides the following equivalents: | #time/date \"2020-10-10\" | java.time.LocalDate | goog.date.Date | | #time/time \"05:30:45\" | java.time.LocalTime | lambdaisland.dej...
9799dbaf9f27b3a964b889cfe2fa0459c728de8705a0dd462537797b34f89519
hasktorch/hasktorch
Storage.hs
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module Torch.Internal.Unmanaged.Type.Storage where import qualified Language.C.Inline.Cpp a...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/6233c173e1dd9fd7218fd13b104da15fc457f67e/libtorch-ffi/src/Torch/Internal/Unmanaged/Type/Storage.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleInstances # module Torch.Internal.Unmanaged.Type.Storage where import qualified Language.C.Inline.Cpp as C import qualified Language.C.Inl...
42e906b9a281ed1471cab371d88328dbe571f97c40f9c7a173a9658e0452d737
hidaris/thinking-dumps
chap5.rkt
#lang racket (require "mk.rkt") ;;; Double your Fun (define append (lambda (l s) (cond ((null? l) s) (else (cons (car l) (append (cdr l) s)))))) (append '(a b c) '(d e)) ; => '(a b c d e) (append '(a b c) '()) ; => '(a b c) (append '() '(d e)) ; => '(d e) ;; (append 'a '(d e)) ;...
null
https://raw.githubusercontent.com/hidaris/thinking-dumps/3fceaf9e6195ab99c8315749814a7377ef8baf86/the-little-series/the-reasoned-schemer/chap5.rkt
racket
Double your Fun => '(a b c d e) => '(a b c) => '(d e) (append 'a '(d e)) It has no meaning. => '(d e . a) (caro l a) (cdro l d) => '((cake tastes yummy)) => '((cake with ice _.0 tastes yummy)) => '((cake with ice cream . _.0)) => '((cake with ice d t)) we can show that y is associated with the empty list: ...
#lang racket (require "mk.rkt") (define append (lambda (l s) (cond ((null? l) s) (else (cons (car l) (append (cdr l) s)))))) (append '(a b c) '(d e)) (append '(a b c) '()) (append '() '(d e)) (append '(d e) 'a) (define appendo (lambda (l s out) (conde ((nullo l) (=...
98d2e70cd8344693403436d399bb35fcea08d72cdcb549384ee6cd94e32b4f0b
jacekschae/learn-pedestal-course-files
api_server.clj
(ns cheffy.components.api-server (:require [com.stuartsierra.component :as component] [io.pedestal.http :as http] [cheffy.routes :as routes] [io.pedestal.interceptor :as interceptor])) (defn inject-system [system] (interceptor/interceptor {:name ::inject-system :ente...
null
https://raw.githubusercontent.com/jacekschae/learn-pedestal-course-files/929629d83e5f08f239b689dc15f1d84844029b22/increments/17-cheffy-interceptor/src/main/cheffy/components/api_server.clj
clojure
(ns cheffy.components.api-server (:require [com.stuartsierra.component :as component] [io.pedestal.http :as http] [cheffy.routes :as routes] [io.pedestal.interceptor :as interceptor])) (defn inject-system [system] (interceptor/interceptor {:name ::inject-system :ente...
1d55466c99a1f22923024a9fcfafa6503bd6dd8c96c5c1c2859169d6cd3cc8b5
mzp/coq-ruby
blaster_window.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/mzp/coq-ruby/99b9f87c4397f705d1210702416176b13f8769c1/ide/blaster_window.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** window#misc#hide () present
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ I d : blaster_window.ml...
bf37be9a1569d4049e9821cf13d2a5b8dca123c62c331a6bfcfdd8800f83241d
erlang/rebar3
rebar_dialyzer_format.erl
%%% %%% General colour conventions mostly follow the same schema %%% that git uses: %%% %%% * cyan: files/lines or locations in general %%% * bold: important text i.e. the human parts of warnings %%% this allows quickly 'scanning' over a warning fading out the bits %%% * red: things that went b...
null
https://raw.githubusercontent.com/erlang/rebar3/7fa21c6b72003b021d4e01c0d733551e8a3b5d1e/apps/rebar/src/rebar_dialyzer_format.erl
erlang
General colour conventions mostly follow the same schema that git uses: * cyan: files/lines or locations in general * bold: important text i.e. the human parts of warnings this allows quickly 'scanning' over a warning fading * red: things that went bad, i.e. the wrong argument in a call. ...
out the bits -module(rebar_dialyzer_format). -include("rebar.hrl"). -export([format_warnings/2]). format_warnings(Opts, Warnings) -> Fold = fun(Warning, Acc) -> format_warning_(Opts, Warning, Acc) end, {_, Res} = lists:foldl(Fold, {undefined, []}, Warnings), lists:reverse(Res). ` dialyze...
ac170bedab6c537346774ffa4ff551a66c6309fb7fc95c34ca51d0f0df4d7a2b
facebook/pyre-check
myMap.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/0a66c94120590e788caca8552cce80d1c0a51cd2/source/hack_parallel/hack_parallel/utils/collections/myMap.ml
ocaml
TODO(T132410158) Add a module-level doc comment.
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
8b3d865866f8d8fc5fca6914478ff4375e222e24374a64a2e876699836ca5525
overtone/overtone
sl.clj
(ns overtone.sc.machinery.ugen.metadata.extras.sl (:use [overtone.sc.machinery.ugen common check])) (def specs [ {:name "Breakcore" :summary "Breakcore simulator" :args [{:name "bufnum" :default 0 :doc ""} {:name "capturein" :default :none :d...
null
https://raw.githubusercontent.com/overtone/overtone/02f8cdd2817bf810ff390b6f91d3e84d61afcc85/src/overtone/sc/machinery/ugen/metadata/extras/sl.clj
clojure
make what you can of it!)"}
(ns overtone.sc.machinery.ugen.metadata.extras.sl (:use [overtone.sc.machinery.ugen common check])) (def specs [ {:name "Breakcore" :summary "Breakcore simulator" :args [{:name "bufnum" :default 0 :doc ""} {:name "capturein" :default :none :d...
5a05698054b2c25d31c2d8011b5e424c55d5ab6494b06d9797ea1bc44cba7fa2
solita/mnt-teet
x_road_test.clj
(ns teet.integration.x-road-test (:require [clojure.test :as test :refer [deftest is]] [teet.integration.x-road.property-registry :as property-registry] [teet.integration.x-road.core :refer [string->zipped-xml]])) (def joint-resp "<?xml version=\"1.0\" encoding=\"utf-8\"?> <s:Envelope xmlns:s...
null
https://raw.githubusercontent.com/solita/mnt-teet/7a5124975ce1c7f3e7a7c55fe23257ca3f7b6411/app/backend/test/teet/integration/x_road_test.clj
clojure
root/&gt;</a:kande_alus> root/&gt;</a:kande_alus>
(ns teet.integration.x-road-test (:require [clojure.test :as test :refer [deftest is]] [teet.integration.x-road.property-registry :as property-registry] [teet.integration.x-road.core :refer [string->zipped-xml]])) (def joint-resp "<?xml version=\"1.0\" encoding=\"utf-8\"?> <s:Envelope xmlns:s...
d255e19c5a486c7510e5f49deb098ea74d9376c86382a689c6556f8a7f487b60
valderman/haste-compiler
counter.hs
module Main where import Haste import Haste.DOM import Haste.Concurrent main = concurrent $ do ctr <- newEmptyMVar forkIO $ updater ctr counter ctr 0 -- | This thread counts. counter :: MVar Int -> Int -> CIO () counter ctr startval = go startval where go n = do putMVar ctr n wait 1000 ...
null
https://raw.githubusercontent.com/valderman/haste-compiler/47d942521570eb4b8b6828b0aa38e1f6b9c3e8a8/examples/concurrency/counter.hs
haskell
| This thread counts. | This thread updates the GUI.
module Main where import Haste import Haste.DOM import Haste.Concurrent main = concurrent $ do ctr <- newEmptyMVar forkIO $ updater ctr counter ctr 0 counter :: MVar Int -> Int -> CIO () counter ctr startval = go startval where go n = do putMVar ctr n wait 1000 go (n+1) updater :: M...
d5f0404ddf08c49ff2f39264f4b5be6be1b0cd361ac4b12fe5770beac1eff1d5
eta-lang/eta-prelude
Enum.hs
| The ' ' class defines operations on sequentially ordered types sequentially ordered types -} module Eta.Classes.Enum ( module Eta.Classes.Enum , Enum , toEnum , fromEnum ) where import qualified Prelude import Prelude | Successor of a value > > > successor 1 2 Successor of a value >>> succ...
null
https://raw.githubusercontent.com/eta-lang/eta-prelude/e25e9aa42093e090a86d2728b0cac288a25bc52e/src/Eta/Classes/Enum.hs
haskell
| Converts an 'Int' into the equivalent value of the enumeration >>> toEnumeration 1 :: Bool True
| The ' ' class defines operations on sequentially ordered types sequentially ordered types -} module Eta.Classes.Enum ( module Eta.Classes.Enum , Enum , toEnum , fromEnum ) where import qualified Prelude import Prelude | Successor of a value > > > successor 1 2 Successor of a value >>> succ...
c621f25c09e1d8b1959e7d09353e82101f6add2c767ae36fea780026aa583d41
EvoLogics/evins
role_nmea.erl
Copyright ( c ) 2015 , < > %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions %% are met: 1 . Redistributions of source code must retain the above copyright %% notice, this list of conditions and the following disclaim...
null
https://raw.githubusercontent.com/EvoLogics/evins/61b2745e712c89ca4cec56223a7f2a2fd31ccabf/src/role_nmea.erl
erlang
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions and the following disclaimer in the documentation and/or other mate...
Copyright ( c ) 2015 , < > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . The name of the author may not be used to endorse or promote products GNU General Public License ( " GPL " ) version 2 as published by the ...
ebd009fe6341e6679113ad4595c392fb529d25ead5e414be0dcb7646cefc3289
erlang-ls/erlang_ls
els_dt_document_index.erl
%%============================================================================== %% The 'document_index' table %%============================================================================== -module(els_dt_document_index). %%============================================================================== %% Behaviour ...
null
https://raw.githubusercontent.com/erlang-ls/erlang_ls/2dfb48aca3879e5b44f6fd676f8349525262779f/apps/els_lsp/src/els_dt_document_index.erl
erlang
============================================================================== The 'document_index' table ============================================================================== ============================================================================== Behaviour els_db_table ===============================...
-module(els_dt_document_index). -behaviour(els_db_table). -export([ name/0, opts/0 ]). -export([new/3]). -export([ find_by_kind/1, insert/1, lookup/1, delete_by_uri/1 ]). -include("els_lsp.hrl"). -record(els_dt_document_index, { id :: els_dt_document:id() | '_', uri :: uri() | '...
0735822b5e756a56377a7443c84622c1f2f7531d25016224709bf5843963de2c
bn-d/ppx_pyformat
printer_utils.ml
open Ppx_pyformat.Types let string_of_align = function | Left -> "Left" | Right -> "Right" | Center -> "Center" | Pad -> "Pad" let string_of_fill (fill : fill option) = match fill with | None -> "" | Some { align; char_; width } -> let char_str = String.make 1 char_ in let align_str = string...
null
https://raw.githubusercontent.com/bn-d/ppx_pyformat/80784ca113ae2a7a2890fe03ed1f68f42307df3a/test/parser/printer_utils.ml
ocaml
open Ppx_pyformat.Types let string_of_align = function | Left -> "Left" | Right -> "Right" | Center -> "Center" | Pad -> "Pad" let string_of_fill (fill : fill option) = match fill with | None -> "" | Some { align; char_; width } -> let char_str = String.make 1 char_ in let align_str = string...
ff4232a19bb8aa946d23ae12492570d177251a8f39fd050b15127be511313aff
hasktorch/hasktorch
Native2.hs
-- generated by using spec/Declarations.yaml # LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} module Torch.Internal.Managed.Native.Native2 where import Foreign.C.String import Foreign.C.Types impo...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/6233c173e1dd9fd7218fd13b104da15fc457f67e/libtorch-ffi/src/Torch/Internal/Managed/Native/Native2.hs
haskell
generated by using spec/Declarations.yaml # LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE ScopedTypeVariables # module Torch.Internal.Managed.Native.Native2 where import Foreign.C.String import Foreign.C.Types import Foreign import Torch.Internal.Type import Torch.Internal.Class import Torch.I...
840478b35c9fc5c96569a1f386b01292dc1b6f7d4d0070be856c45e3edbe6094
mdsebald/link_blox_app
lblx_gpio_do.erl
%%% @doc BLOCKTYPE GPIO Digital Output %%% DESCRIPTION %%% Configure a GPIO Pin as a Digital Output block %%% LINKS -plus-and-raspi2/README.md %%% @end -module(lblx_gpio_do). -author("Mark Sebald"). -include("../block_state.hrl"). %% ==================================================================== %% AP...
null
https://raw.githubusercontent.com/mdsebald/link_blox_app/64034fa5854759ad16625b93e3dde65a9c65f615/src/block_types/lblx_gpio_do.erl
erlang
@doc DESCRIPTION Configure a GPIO Pin as a Digital Output block LINKS @end ==================================================================== API functions ==================================================================== Merge the block type specific, Config, Input, and Output attributes with the comm...
BLOCKTYPE GPIO Digital Output -plus-and-raspi2/README.md -module(lblx_gpio_do). -author("Mark Sebald"). -include("../block_state.hrl"). -export([groups/0, version/0]). -export([create/2, create/4, create/5, upgrade/1, initialize/1, execute/2, delete/1]). groups() -> [digital, output]. version() -> "0.1.1". ...
f918d78f12bdd66cf32c6755ecb3d3e86c72f4ac2617c045e63386a0f0a2b7de
mirage/ocaml-gnt
test_gntshr.ml
Copyright ( C ) 2014 Citrix Inc * * 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 THE A...
null
https://raw.githubusercontent.com/mirage/ocaml-gnt/a59d4be6b13a4cd34b7cce0b7263be92e26438d6/test/test_gntshr.ml
ocaml
Copyright ( C ) 2014 Citrix Inc * * 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 THE A...
b8d25e1362920ffafc8345e2577ef2a41b0a7cbcc692b842a9614b2b9f4ed54d
hyperfiddle/electric
electric_diffing.cljc
(ns user.electric.electric-diffing (:require [hyperfiddle.electric :as e] [hyperfiddle.rcf :as rcf :refer [tests ! %]])) (hyperfiddle.rcf/enable!) (tests (def !order (atom {:account/email "" :order/items [{:item/sku 100 :order/count 2}]})) (def dispose (e/run (let [order (e/watch !order) ...
null
https://raw.githubusercontent.com/hyperfiddle/electric/c9c2d8504092d4a034c6f1cb9e85423964e1299c/src-docs/user/electric/electric_diffing.cljc
clojure
email item count sku sku count sku count item count sku sku count assert no more came ✅✅✅✅✅✅✅✅✅
(ns user.electric.electric-diffing (:require [hyperfiddle.electric :as e] [hyperfiddle.rcf :as rcf :refer [tests ! %]])) (hyperfiddle.rcf/enable!) (tests (def !order (atom {:account/email "" :order/items [{:item/sku 100 :order/count 2}]})) (def dispose (e/run (let [order (e/watch !order) ...
0c959d830b20d4eb652462198f58f89308a0d1b80516332f63e445a64df5e223
uncomplicate/bayadera
distributions_test.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) or later ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be boun...
null
https://raw.githubusercontent.com/uncomplicate/bayadera/4105fd0e02bbe1cb19b9413f454075d61def6945/test/clojure/uncomplicate/bayadera/distributions_test.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) or later which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) . All rights reserved . (ns ^{:author "Dragan Djuric"} uncomplicate.bayadera.distributions-test (:require [midje.sweet :refer :all] [uncomplicate.neanderthal [core :refer [sum]] [native :refer [fv]]] [uncomplicate.bayadera.distributions :ref...
1e40491e64c2f56a3c289c03b153ac7357ada8feb2c5d3e313b3e286fed61426
nshimaza/thread-supervisor
SupervisorInternal.hs
{-# LANGUAGE Strict #-} | Module : Control . Concurrent . SupervisorInternal Copyright : ( c ) 2018 - 2020 License : MIT ( see the file LICENSE ) Maintainer : Stability : experimental A simplified implementation of Erlang / OTP like supervisor over thread . This is internal module ...
null
https://raw.githubusercontent.com/nshimaza/thread-supervisor/ac7e21eadd2489c85aa9a630ae89c629280032bc/src/Control/Concurrent/SupervisorInternal.hs
haskell
# LANGUAGE Strict # | Message queue abstraction. ^ Concurrent queue receiving message from other threads. ^ Number of elements currently held by the 'Inbox'. ^ Saved massage by 'receiveSelect'. It keeps messages not selected by receiveSelect in reversed order. Latest message is kept at head of the list. ...
| Module : Control . Concurrent . SupervisorInternal Copyright : ( c ) 2018 - 2020 License : MIT ( see the file LICENSE ) Maintainer : Stability : experimental A simplified implementation of Erlang / OTP like supervisor over thread . This is internal module where all real implement...
2e3816f5bc7a2b4a0972bc0a541403e13973014927df41affcb95f848b7dfaf7
prg-titech/Kani-CUDA
diffusion3d-seq-synth.rkt
#lang rosette (require "diffusion3d-baseline.rkt" "../../lang.rkt" (rename-in rosette/lib/synthax [choose ?]) racket/hash) (current-bitwidth 9) (define switch-seq #t) (define seq (eq? switch-seq #f)) (define switch 0) (define switch-synth #t) (define (diffusion-kernel in ...
null
https://raw.githubusercontent.com/prg-titech/Kani-CUDA/e97c4bede43a5fc4031a7d2cfc32d71b01ac26c4/Emulator/Examples/Diffusion3d/diffusion3d-seq-synth.rkt
racket
Shared memory Index of a element to be updated on a global memory Index of a element to be updated on a shared memory Variables for register blocking (? (syncthreads) (void)) (? (syncthreads) (void)) #f #f #f (if switch-synth (? (syncthreads) (void)) (? (syncthreads) (void)) (? (syncthreads) (void)) (? (syncthrea...
#lang rosette (require "diffusion3d-baseline.rkt" "../../lang.rkt" (rename-in rosette/lib/synthax [choose ?]) racket/hash) (current-bitwidth 9) (define switch-seq #t) (define seq (eq? switch-seq #f)) (define switch 0) (define switch-synth #t) (define (diffusion-kernel in ...
500f3f7d89657ec1cc844ace8ac3e8fd3ca068833c61903e85edb6202799c4c4
monadfix/tagged-aeson
THSpec.hs
# LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE NoImplicitPrelude # | Note : all types here must not have instances . module Data.Aeson.Tagged.THSpe...
null
https://raw.githubusercontent.com/monadfix/tagged-aeson/230f0a813d7caa48b70762c091657cc67fbdde67/test/Data/Aeson/Tagged/THSpec.hs
haskell
Note: we are not testing 'deriveFromJSON' and 'deriveToJSON' because TODO: records with optional fields TODO: for fields that are lists, we want to make sure they _do_ require TODO: port all tests from TODO: make sure the 'conKey' hack doesn't interfere with parsing of record fields named "conKey" --------------...
# LANGUAGE TemplateHaskell # # LANGUAGE QuasiQuotes # # LANGUAGE DataKinds # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE AllowAmbiguousTypes # # LANGUAGE NoImplicitPrelude # | Note : all types here must not have instances . module Data.Aeson.Tagged.THSpe...
ca65ee5f149b074cae3d34e987aa686710bb94403725b932365bbb3d72c990fa
thicksteadTHpp/Obvius
gl-ffi-lock.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; gl-lock.lisp ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package 'gl) (export '(with-GL-lock process-owns-GL-lock-p nobody-owns-GL-lock-p)) GL Locking ;;; The GL libraries are not reentrant ; as a result , only one LISP pro...
null
https://raw.githubusercontent.com/thicksteadTHpp/Obvius/9a91673609def033539c9ebaf098e8f11eb0df6e/gl_ffi/gl-ffi-lock.lisp
lisp
gl-lock.lisp as a result , only one LISP process from Lispview.
(in-package 'gl) (export '(with-GL-lock process-owns-GL-lock-p nobody-owns-GL-lock-p)) GL Locking can run a GL library function at a time . Applications must wrap any code that uses GL functions with " with - GL - lock " . Code largely taken (defvar *GL-lock* nil) (defmacro with-GL-lock (&body body) `(l...
ee9a3e0685f8c7329c14db83d8c0f146ec89278d0def193c4310937cef6b7a17
SimulaVR/godot-haskell
Main.hs
module Game.Main where import Control.Lens import Control.Monad import Foreign.C.Types import Godot import Godot.Core.Node as Node import Godot.Core.Node2D as Node2D import Godot.Core.Object as Object import Godot.Core.PackedScene as PackedScene import Godot.Core.PathFollow2D as PathFollow2D import Godot.Core.RigidBody...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/examples/dodge-the-creeps/src/Game/Main.hs
haskell
Choose a random location on Path2D. Create a Mob instance and add it to the scene. Set the mob's direction perpendicular to the path direction. Set the mob's position to a random location. Add some randomness to the direction. Set the velocity' (speed & direction).
module Game.Main where import Control.Lens import Control.Monad import Foreign.C.Types import Godot import Godot.Core.Node as Node import Godot.Core.Node2D as Node2D import Godot.Core.Object as Object import Godot.Core.PackedScene as PackedScene import Godot.Core.PathFollow2D as PathFollow2D import Godot.Core.RigidBody...
1f91a0757217f8f05c3dc8dd87b5297d0a898d7710e27254966b59e55d54e115
thufschmitt/tix
tix.ml
let parse_chan fname chan = match MParser.parse_channel Parse.Parser.expr chan fname with | MParser.Success t -> t | MParser.Failed (msg, _) -> Format.print_string msg; Format.print_flush (); exit 1 let typecheck ast = Typing.(Typecheck.Infer.expr Environment.default) ast let process_file is_parse...
null
https://raw.githubusercontent.com/thufschmitt/tix/bfbf7b6de9160bae8af3e0686b783bbc75c79fd7/bin/tix.ml
ocaml
let parse_chan fname chan = match MParser.parse_channel Parse.Parser.expr chan fname with | MParser.Success t -> t | MParser.Failed (msg, _) -> Format.print_string msg; Format.print_flush (); exit 1 let typecheck ast = Typing.(Typecheck.Infer.expr Environment.default) ast let process_file is_parse...
1a4489d4dc85ddb622dfa5425ebc6d9529a0791a012b6fc0b5d573695211e53f
cmonty/brainiac
html_utils.clj
(ns brainiac.html-utils (:import [org.htmlcleaner HtmlCleaner] [org.apache.commons.lang StringEscapeUtils])) (defn parse-html [stream] (let [html (HtmlCleaner.)] (doto (.getProperties html) (.setOmitComments true) (.setPruneTags "script,style")) (.clean html stream))) (defn text-at ...
null
https://raw.githubusercontent.com/cmonty/brainiac/f0e1e1e112e1b10f3f135d959c34aa8b7f2ca086/src/brainiac/html_utils.clj
clojure
(ns brainiac.html-utils (:import [org.htmlcleaner HtmlCleaner] [org.apache.commons.lang StringEscapeUtils])) (defn parse-html [stream] (let [html (HtmlCleaner.)] (doto (.getProperties html) (.setOmitComments true) (.setPruneTags "script,style")) (.clean html stream))) (defn text-at ...
6aab1285e01118f764375a8ea8273da02bd783111ec63fb404d6037895426ff9
MisakaCenter/OPG_Parser
OPG_FileIO.hs
module Module.OPG_FileIO where import System.IO import Control.Monad (unless, when) import Module.OPG_core ( Grammar, Matrix, Relation (..), output_matrix, output_t, ) outputHeadLine_f :: Handle -> [String] -> IO () outputHeadLine_f f [] = hPutStr f "|\n" outputHeadLine_f f (x : xs) = do hPutStr...
null
https://raw.githubusercontent.com/MisakaCenter/OPG_Parser/6029914f7d5174795a1670c5f02a9aa3b32eaef2/Module/OPG_FileIO.hs
haskell
module Module.OPG_FileIO where import System.IO import Control.Monad (unless, when) import Module.OPG_core ( Grammar, Matrix, Relation (..), output_matrix, output_t, ) outputHeadLine_f :: Handle -> [String] -> IO () outputHeadLine_f f [] = hPutStr f "|\n" outputHeadLine_f f (x : xs) = do hPutStr...
49dff3d96b12547f27a050328d78f9572f29bc7bebef6ae96c0c4ac22c2713f6
silverbullettt/SICP
3.68.rkt
(load "stream.rkt") (define (interleave s1 s2) (if (stream-null? s1) s2 (cons-stream (stream-car s1) (interleave s2 (stream-cdr s1))))) (define (pairs s t) (interleave (stream-map (lambda (x) (list (stream-car s) x)) t) (pairs (stream-cdr s) (stream-cdr t)))) (...
null
https://raw.githubusercontent.com/silverbullettt/SICP/e773a8071ae2fae768846a2b295b5ed96b019f8d/3.68.rkt
racket
can't return a value, and fall into unlimited recursion because interleave can't take a value from (pairs (stream-cdr s) (stream-cdr t))
(load "stream.rkt") (define (interleave s1 s2) (if (stream-null? s1) s2 (cons-stream (stream-car s1) (interleave s2 (stream-cdr s1))))) (define (pairs s t) (interleave (stream-map (lambda (x) (list (stream-car s) x)) t) (pairs (stream-cdr s) (stream-cdr t)))) (...
c4fae84f3c72a2048064e35983096f900e2c308e58083eab69c1c639d2bafe9a
ruhler/smten
IO.hs
# LANGUAGE NoImplicitPrelude # module Smten.System.IO ( IO, FilePath, putChar, putStr, putStrLn, readFile, getContents, ) where import System.IO
null
https://raw.githubusercontent.com/ruhler/smten/16dd37fb0ee3809408803d4be20401211b6c4027/smten-base/Smten/System/IO.hs
haskell
# LANGUAGE NoImplicitPrelude # module Smten.System.IO ( IO, FilePath, putChar, putStr, putStrLn, readFile, getContents, ) where import System.IO
5480d4601f06773199e3ea76b5d5be2bda36c1366862e9f3e3c02ebd2516ddef
ocaml-flambda/ocaml-jst
float.ml
# 1 "float.ml" (**************************************************************************) (* *) (* OCaml *) (* ...
null
https://raw.githubusercontent.com/ocaml-flambda/ocaml-jst/5bf2820278c58f6715dcfaf6fa61e09a9b0d8db3/stdlib/float.ml
ocaml
************************************************************************ OCaml ...
# 1 "float.ml" , projet Cristal , INRIA Rocquencourt , LexiFi Copyright 2018 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open! Stdlib [@@@ocaml.flambd...
3b3999cec3126591e4da0429b15adbb22cb860b9e232b47901c1ce9e311a99ab
cwmaguire/zombunity-mud
msg_client_test.clj
(ns zombunity.msg-client-test (:use clojure.test) (:require [zombunity.dispatch :as disp] [zombunity.data :as data] [zombunity.data.simple-data :as simple-data])) (def conn-id (rand 100)) (def msg (str (rand 100))) (def client-msg {:type :client :message msg :conn-id conn-id :user-id nil}) ...
null
https://raw.githubusercontent.com/cwmaguire/zombunity-mud/ec14406f4addac9b9a0742d3043a6e7bccef1fa6/zombunity_server/test/zombunity/msg_client_test.clj
clojure
(ns zombunity.msg-client-test (:use clojure.test) (:require [zombunity.dispatch :as disp] [zombunity.data :as data] [zombunity.data.simple-data :as simple-data])) (def conn-id (rand 100)) (def msg (str (rand 100))) (def client-msg {:type :client :message msg :conn-id conn-id :user-id nil}) ...
745e609f6350566150b6b40a45113f69a70fb34eb323b8bbb6c82abf07713e77
warmte/hi
Pretty.hs
module HW3.Pretty where import HW3.Base (HiValue (..), HiFun (..), matchFunToString, HiAction(..)) import Prettyprinter.Render.Terminal (AnsiStyle) import Prettyprinter (Doc, Pretty (pretty), (<+>), emptyDoc, dquotes, brackets, slash, comma, space, braces, parens, colon) import Data.Scientific (Scientif...
null
https://raw.githubusercontent.com/warmte/hi/2f01ccb9cf98c6267a26c5fd7f397558c0dbc14d/src/HW3/Pretty.hs
haskell
prettyValue x = pretty "unshowable value: " <> pretty (show x)
module HW3.Pretty where import HW3.Base (HiValue (..), HiFun (..), matchFunToString, HiAction(..)) import Prettyprinter.Render.Terminal (AnsiStyle) import Prettyprinter (Doc, Pretty (pretty), (<+>), emptyDoc, dquotes, brackets, slash, comma, space, braces, parens, colon) import Data.Scientific (Scientif...
0836f619477bd3127b1707804e5c78406f877160aee03ffa8ab13559fde86ac6
ott-lang/ott
terminfo.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ott-lang/ott/29ac9ef84967686da35b9b42608b3aec3539a689/examples/ocaml_light/hol/ocamlpp/utils/terminfo.ml
ocaml
********************************************************************* Objective Caml ...
, 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 . $ I d : terminfo.ml , v 1.1 2007/09/2...
b4443761596dd6edc0bf1a4318bef6683613590e67f9d798c87985ed352edb87
polaris/echo
echo_server.erl
-module(echo_server). -export([start/1]). start(Client) -> loop(Client). loop(Client) -> receive {tcp, Client, Data} -> gen_tcp:send(Client, Data), inet:setopts(Client, [{active, once}]), loop(Client); {tcp_closed, _} -> ok; _ -> error end.
null
https://raw.githubusercontent.com/polaris/echo/a04eecde2383782025bc444ac62f89dc11ed0b80/src/echo_server.erl
erlang
-module(echo_server). -export([start/1]). start(Client) -> loop(Client). loop(Client) -> receive {tcp, Client, Data} -> gen_tcp:send(Client, Data), inet:setopts(Client, [{active, once}]), loop(Client); {tcp_closed, _} -> ok; _ -> error end.
478ff1d987079034cf2d6e3486c75eabeb47b75a8886b30afeb82204f3ffe317
kfl/adventofcode_2022
day8.hs
# LANGUAGE LambdaCase # module Main where import qualified Data.Char as C import qualified Data.Array.Unboxed as A test = parse [ "30373" , "25512" , "65332" , "33549" , "35390" ] input = parse . lines <$> readFile "input.txt" type Trees = A.Arr...
null
https://raw.githubusercontent.com/kfl/adventofcode_2022/7188bc5dfa27b9a8336b60d1cab98e4148712950/day08/day8.hs
haskell
# LANGUAGE LambdaCase # module Main where import qualified Data.Char as C import qualified Data.Array.Unboxed as A test = parse [ "30373" , "25512" , "65332" , "33549" , "35390" ] input = parse . lines <$> readFile "input.txt" type Trees = A.Arr...
96a1ed498f4077bb893759815cc6bbb7d22e63f3ccca33093e55e4a358ed30ee
mindreframer/clojure-stuff
project.clj
(defproject io.hoplon.vendor/momentjs "2.6.0-0" :description "A javascript date library for parsing, validating, manipulating, and formatting dates." :url "/" :license {:name "MIT" :url ""} :dependencies [[org.clojure/clojure "1.5.1"]])
null
https://raw.githubusercontent.com/mindreframer/clojure-stuff/1e761b2dacbbfbeec6f20530f136767e788e0fe3/github.com/tailrecursion/hoplon/vendor/momentjs/project.clj
clojure
(defproject io.hoplon.vendor/momentjs "2.6.0-0" :description "A javascript date library for parsing, validating, manipulating, and formatting dates." :url "/" :license {:name "MIT" :url ""} :dependencies [[org.clojure/clojure "1.5.1"]])
b00817e15f4ef62e33d66fba78062b9bc94b3a2dc3f2d4651deb23da907b6c6a
GaloisInc/cryptol
Interface.hs
{-# LANGUAGE Safe #-} module Cryptol.TypeCheck.Interface where import qualified Data.Map as Map import Cryptol.Utils.Ident(Namespace(..)) import Cryptol.ModuleSystem.Interface import Cryptol.TypeCheck.AST mkIfaceDecl :: Decl -> IfaceDecl mkIfaceDecl d = IfaceDecl { ifDeclName = dName d , ifDeclSig = dSi...
null
https://raw.githubusercontent.com/GaloisInc/cryptol/f8b55439467abe3e7427b80edc37ff95a13de62b/src/Cryptol/TypeCheck/Interface.hs
haskell
# LANGUAGE Safe #
module Cryptol.TypeCheck.Interface where import qualified Data.Map as Map import Cryptol.Utils.Ident(Namespace(..)) import Cryptol.ModuleSystem.Interface import Cryptol.TypeCheck.AST mkIfaceDecl :: Decl -> IfaceDecl mkIfaceDecl d = IfaceDecl { ifDeclName = dName d , ifDeclSig = dSignature d , ifDeclPr...
84d7d2db185ed9f9dde9085cd846ad2d5578924f24bf2897d73510ca0268bae6
amosr/folderol
Filter.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Folderol.Process.Filter where import Folderol.Typed import qualified Folderol.Typed.Process as Proc import P import qualified Folderol.Internal.Haskell as Haskell filter :: (Monad m) => Haskell.TExpQ (a -> Bool) -> Channel a -> Network m (Channel a)...
null
https://raw.githubusercontent.com/amosr/folderol/9b8c0cd30cfb798dadaa404cc66404765b1fc4fe/src/Folderol/Process/Filter.hs
haskell
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Folderol.Process.Filter where import Folderol.Typed import qualified Folderol.Typed.Process as Proc import P import qualified Folderol.Internal.Haskell as Haskell filter :: (Monad m) => Haskell.TExpQ (a -> Bool) -> Channel a -> Network m (Channel a)...
9971bc036bf3d86842ede92b1e3a4eab6465cf550e7d6018d0b976c9657cd475
passy/coding-puzzles
Main.hs
module Main where import Control.Monad (forM_) main :: IO () main = do line0 <- getLine line1 <- getLine forM_ (zip line0 line1) $ \(a, b) -> do putChar a putChar b putStrLn ""
null
https://raw.githubusercontent.com/passy/coding-puzzles/686bd0775ee5a98004229d44c913376d033b13de/hackerrank/string-mingling/Main.hs
haskell
module Main where import Control.Monad (forM_) main :: IO () main = do line0 <- getLine line1 <- getLine forM_ (zip line0 line1) $ \(a, b) -> do putChar a putChar b putStrLn ""
27bf1113430a96259354be6a3adcc8a86d3a57672f9d505e869d2b8336efe65f
typedclojure/typedclojure
check_docs.clj
#!/usr/bin/env bb (ns check-docs (:require [babashka.curl :as curl])) (defn check-api-typedclojure-org [{:keys [curl-get]}] (let [response (curl-get "")] (assert (= 200 (:status response)) (pr-str response))) :ok) (defn -main [& args] (check-api-typedclojure-org {:curl-get curl/get})) (when ...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/c70ad984f00ca332ab412b4a61e30ca1689bfc09/script/check_docs.clj
clojure
#!/usr/bin/env bb (ns check-docs (:require [babashka.curl :as curl])) (defn check-api-typedclojure-org [{:keys [curl-get]}] (let [response (curl-get "")] (assert (= 200 (:status response)) (pr-str response))) :ok) (defn -main [& args] (check-api-typedclojure-org {:curl-get curl/get})) (when ...
7be77978880a850a24f3971a34314c959bfa81b409a1ed314db07cd82339be2e
cedlemo/OCaml-GI-ctypes-bindings-generator
Style_context_print_flags.ml
open Ctypes open Foreign type t = None | Recurse | Show_style type t_list = t list let of_value v = if v = Unsigned.UInt32.of_int 0 then None else if v = Unsigned.UInt32.of_int 1 then Recurse else if v = Unsigned.UInt32.of_int 2 then Show_style else raise (Invalid_argument "Unexpected Style_context_print_flag...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Style_context_print_flags.ml
ocaml
open Ctypes open Foreign type t = None | Recurse | Show_style type t_list = t list let of_value v = if v = Unsigned.UInt32.of_int 0 then None else if v = Unsigned.UInt32.of_int 1 then Recurse else if v = Unsigned.UInt32.of_int 2 then Show_style else raise (Invalid_argument "Unexpected Style_context_print_flag...
67c697697a1380fa3f7a2c16412caca70843824c88be5ee38d5bd04e74dcda82
skogsbaer/HTF
TestMain.hs
# OPTIONS_GHC -F -pgmF htfpp # module Main where -- The main test program. import Test.Framework import Test.Framework.BlackBoxTest import {-@ HTF_TESTS @-} MyPkg.A import {-@ HTF_TESTS @-} MyPkg.B main = do bbts <- blackBoxTests "bbt-dir" "../scripts/run-sample" ".num" defaultBBTArgs htfMain (htf_importe...
null
https://raw.githubusercontent.com/skogsbaer/HTF/a42450c89b7a3a3a50e381f36de3ac28faab2a16/sample/TestMain.hs
haskell
The main test program. @ HTF_TESTS @ @ HTF_TESTS @
# OPTIONS_GHC -F -pgmF htfpp # module Main where import Test.Framework import Test.Framework.BlackBoxTest main = do bbts <- blackBoxTests "bbt-dir" "../scripts/run-sample" ".num" defaultBBTArgs htfMain (htf_importedTests ++ [makeTestSuite "bbts" bbts])
800e74a5499baf0a6ede286b1407dfe16d621ed645c39718b2eecb4ab9b96d7b
manuel-serrano/bigloo
fs.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / api / libuv / examples / fs.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/d315487d6a97ef7b4483e919d1823a408337bd07/api/libbacktrace/examples/fs.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * LIBUV fs */ *===========================...
* serrano / prgm / project / bigloo / api / libuv / examples / fs.scm * / * Author : * / * Creation : Tue May 6 12:10:13 2014 * / * Last change : Thu Jul 24 07:58:45 2014 ( serrano ) * / * C...
91160d6652682a24b9ddca27fbc4273c68e72ae129902ddfda70dfd5b9ed16b5
pallix/lacij
styles.clj
(ns lacij.examples.styles (:use lacij.edit.graph lacij.view.graphview)) (defn -main [] (-> (graph :width 800 :height 400) (add-default-node-style :fill "lightgreen") (add-default-edge-style :stroke "royalblue") (add-node :hermes "Hermes" :x 10 :y 30 :style {:fill "lightblue"}) (add-...
null
https://raw.githubusercontent.com/pallix/lacij/ee9b7dcda13f25f7460acb5995b7970a7564c11e/src/lacij/examples/styles.clj
clojure
(ns lacij.examples.styles (:use lacij.edit.graph lacij.view.graphview)) (defn -main [] (-> (graph :width 800 :height 400) (add-default-node-style :fill "lightgreen") (add-default-edge-style :stroke "royalblue") (add-node :hermes "Hermes" :x 10 :y 30 :style {:fill "lightblue"}) (add-...
b0c28d32bd17f2f39586f3d61e8ad89a0a39811458e28ef46f1242cd39d31584
2600hz/kazoo
kzsip_diversion.erl
%%%----------------------------------------------------------------------------- ( C ) 2014 - 2020 , 2600Hz %%% @doc Diversion SIP header manipulation. @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , Yo...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_sip/src/kzsip_diversion.erl
erlang
----------------------------------------------------------------------------- @doc Diversion SIP header manipulation. @end -----------------------------------------------------------------------------
( C ) 2014 - 2020 , 2600Hz @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kzsip_diversion). -export([to_binary/1 ,from_binary/1 ]). -export([reason/1,...
8728669b8f9df082f06a9bda09302a6781bb8bcc424f31dbaae642b614789690
krisajenkins/Cloud-Haskell-Game
HLint.hs
import "hint" HLint.Builtin.All import "hint" HLint.Default import "hint" HLint.Dollar import "hint" HLint.Generalise
null
https://raw.githubusercontent.com/krisajenkins/Cloud-Haskell-Game/abb5d906f1adc35ea73e13470f9a141c8172bb39/server/HLint.hs
haskell
import "hint" HLint.Builtin.All import "hint" HLint.Default import "hint" HLint.Dollar import "hint" HLint.Generalise
b6155d2ea8c59e9d7a0364105ed11fe5a1ddd28067dbbda14acac1dd97c55c86
exoscale/clojure-kubernetes-client
extensions_v1beta1_scale_spec.clj
(ns clojure-kubernetes-client.specs.extensions-v1beta1-scale-spec (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare extensions-v1beta1-scale-spec-data extensions-v1beta1-scale-spec) (def extensions-v1beta1-scale-spec-data { (ds/opt...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/extensions_v1beta1_scale_spec.clj
clojure
(ns clojure-kubernetes-client.specs.extensions-v1beta1-scale-spec (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare extensions-v1beta1-scale-spec-data extensions-v1beta1-scale-spec) (def extensions-v1beta1-scale-spec-data { (ds/opt...
1fc603816fd87ee9cc0eb9db1db18f1f6c7f689e51a2bc3929584118655092c2
inria-parkas/sundialsml
cvsRoberts_FSA_sps.ml
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2010/12/01 22:58:00 $ * ----------------------------------------------------------------- * Programmer(s ): , , and * @ LLNL * Programmer(s ): @ SMU * Based on cvsR...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/cvodes/serial/cvsRoberts_FSA_sps.ml
ocaml
Problem Constants number of equations initial y components scalar relative tolerance vector absolute tolerance components initial time first output time output time factor number of output times number of problem parameters number of sensitivities computed f routine. Compute f(t,y). EwtSet fun...
* ----------------------------------------------------------------- * $ Revision : 1.2 $ * $ Date : 2010/12/01 22:58:00 $ * ----------------------------------------------------------------- * Programmer(s ): , , and * @ LLNL * Programmer(s ): @ SMU * Based on cvsR...
d8ec9a4ddd8cb7b7159a4f8e524280f6b9280ea3061b6fb4cee8a466c217fa4e
Rainist/kubeletter
console.clj
(ns kubeletter.deliver.console ) (defn hand-over [msg] (println "Delivering to console") (println msg) true )
null
https://raw.githubusercontent.com/Rainist/kubeletter/da326a067147f45b069a49d22730ea07675f9e16/kubeletter/src/kubeletter/deliver/console.clj
clojure
(ns kubeletter.deliver.console ) (defn hand-over [msg] (println "Delivering to console") (println msg) true )
533ec401bf4ca417d04c5d05692eef29669c32f0f4c48685db67fab13945167b
chenyukang/rubytt
checker.ml
open Core open Node type env = { env_ty : string; mutable parent: env option; mutable visited: (string, Node.node_t) Hashtbl.t; mutable variables: (Node.node_t, bool) Hashtbl.t; mutable children: env list; } let make_env ?ty:(ty="top") ()= { env_ty = ty; parent = None; visited = Hashtbl.Poly.c...
null
https://raw.githubusercontent.com/chenyukang/rubytt/3b9898cd9e180594ee30fb74cea9a8356a6e0c14/src/checker.ml
ocaml
Printf.printf "check now: %s\n" name; add unvisited variable let res = Str.split (Str.regexp "\n") str in hard code! Printf.printf "%s\n\n" str; Printf.printf "set variable: %s\n" (name_node_id v); Printf.printf "lookup: %s\n" name; set func name
open Core open Node type env = { env_ty : string; mutable parent: env option; mutable visited: (string, Node.node_t) Hashtbl.t; mutable variables: (Node.node_t, bool) Hashtbl.t; mutable children: env list; } let make_env ?ty:(ty="top") ()= { env_ty = ty; parent = None; visited = Hashtbl.Poly.c...
e61f5a7120f30615df90f8333f3a96899e3ca624a74110515703fbab422ae9e5
camllight/camllight
normalization.mli
#open "external_type";; #open "type_for_matching";; type INTERMEDIARY_TYPE;; value full_iso : bool ref;; (* filter type -> normalized_type *) (* (froz_var_count, subst_var_count, type) -> normalized type *) value normalize_entry_to_pattern : int * int * EXTERNAL_TYPE -> int * int * PATTERN_TYPE;; value normalize_l...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/camlsearch/source/normalization.mli
ocaml
filter type -> normalized_type (froz_var_count, subst_var_count, type) -> normalized type filter type -> normalized_type (froz_var_count, subst_var_count, type) -> normalized type
#open "external_type";; #open "type_for_matching";; type INTERMEDIARY_TYPE;; value full_iso : bool ref;; value normalize_entry_to_pattern : int * int * EXTERNAL_TYPE -> int * int * PATTERN_TYPE;; value normalize_library_to_pattern : int * int * EXTERNAL_TYPE -> int * int * PATTERN_TYPE;; value normalize_subject...
fce2d0593a9f6c3e26c0003d2f4210b5ea5d4ba486732bc34fc64e8a6ca053e3
ailrk/blgol60
Tree.hs
-- doge-algol60 Copyright © 2021 ailrk -- 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, publis...
null
https://raw.githubusercontent.com/ailrk/blgol60/93492de4a14a74924d0b769841887d88b93c8e02/src/Tree.hs
haskell
doge-algol60 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, publish, distribute, sublicense, Software is furnished to do so, subject to the following conditions: The above co...
Copyright © 2021 ailrk to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , OF MERCHANTABIL...
2f3b7c723f613fc98ac221ed5a8751df8834c09b643196ad168e77cfd9123dea
karetsu/xmonad-aloysius
Dracula.hs
-- | XMonad-Aloysius dracula colour scheme module Theme.Dracula where basebg = "#282A36" basefg = "#F8F8F2" base00 = "#000000" base01 = "#FF5555" base02 = "#50FA7B" base03 = "#F1FA8C" base04 = "#BD93F9" base05 = "#FF79C6" base06 = "#8BE9FD" base07 = "#BFBFBF" base08 = "#4D4D4D" base09 = "#FF6E67" base10 = "#5AF78E" ...
null
https://raw.githubusercontent.com/karetsu/xmonad-aloysius/9910c8db4bb75600fc9af51b9e64ab5704e8126c/app/Theme/Dracula.hs
haskell
| XMonad-Aloysius dracula colour scheme
module Theme.Dracula where basebg = "#282A36" basefg = "#F8F8F2" base00 = "#000000" base01 = "#FF5555" base02 = "#50FA7B" base03 = "#F1FA8C" base04 = "#BD93F9" base05 = "#FF79C6" base06 = "#8BE9FD" base07 = "#BFBFBF" base08 = "#4D4D4D" base09 = "#FF6E67" base10 = "#5AF78E" base11 = "#F4F99D" base12 = "#CAA9FA" base1...
45bea8e1f4df2e717b28c4777d8655c0f6fd9290d31f1b65a16d2a676c72decc
namin/clpset-miniKanren
mktests.scm
;;; This file was generated by writeminikanren.pl Generated at 2007 - 10 - 25 15:24:42 (load "mk.scm") (define-syntax test-check (syntax-rules () ((_ title tested-expression expected-result) (begin (cout "Testing " title nl) (let* ((expected expected-result) (produced tested-...
null
https://raw.githubusercontent.com/namin/clpset-miniKanren/c0cf0342431b36467cf217555a63a3d0477bd477/mktests.scm
scheme
This file was generated by writeminikanren.pl Will sez: Uncomment the following line to properly test divergent code. Will sez: Uncomment the following line to properly test divergent code. Redefine 'test-check' to make the file load quickly. Will sez: Uncomment the following line to properly test divergent cod...
Generated at 2007 - 10 - 25 15:24:42 (load "mk.scm") (define-syntax test-check (syntax-rules () ((_ title tested-expression expected-result) (begin (cout "Testing " title nl) (let* ((expected expected-result) (produced tested-expression)) (or (equal? expected produce...
765f53bf01168993e9396647cc6e778aa98e300bf70324bf0db5ea699a45e3f5
ryukzak/nitta
Allocation.hs
{-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE NoMonomorphismRestriction # {-# OPTIONS -fno-warn-orphans #-} | Module : NITTA.Synthesis . Steps . Allocation Description : Implementation of SynthesisDecisionCls that allows to allocate PUs Copyright : ( c ) , , 2022 License ...
null
https://raw.githubusercontent.com/ryukzak/nitta/1e1e571fd73b2cb9bea4e5781bf658e7edd264c0/src/NITTA/Synthesis/Steps/Allocation.hs
haskell
# LANGUAGE GADTs # # OPTIONS -fno-warn-orphans # ^ PU prototype parallelism type ^ The number of remaining functions that can be bound to pu ^ The minimum number of PUs for each of the remaining functions that can process it ^ The maximum number of functions that could be processed in parallel ^ The number of func...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE NoMonomorphismRestriction # | Module : NITTA.Synthesis . Steps . Allocation Description : Implementation of SynthesisDecisionCls that allows to allocate PUs Copyright : ( c ) , , 2022 License : : Stability : experimental Module ...
e411c253a7e8ad13d4983ed4260a00d5e82d572753ae4444913843ee7a0febf0
tmattio/spin
glob.ml
(* From -glob *) let split c s = let len = String.length s in let rec loop acc last_pos pos = if pos = -1 then String.sub s 0 last_pos :: acc else if s.[pos] = c then let pos1 = pos + 1 in let sub_str = String.sub s pos1 (last_pos - pos1) in loop (sub_str :: acc) pos (pos - 1) e...
null
https://raw.githubusercontent.com/tmattio/spin/092ab5979d4f1d01f538743443b70465a2d5ed23/lib/spin_std/glob.ml
ocaml
From -glob * Returns list of indices of occurances of substr in x need to find a match that matches to end of string
let split c s = let len = String.length s in let rec loop acc last_pos pos = if pos = -1 then String.sub s 0 last_pos :: acc else if s.[pos] = c then let pos1 = pos + 1 in let sub_str = String.sub s pos1 (last_pos - pos1) in loop (sub_str :: acc) pos (pos - 1) else loop ac...
163bfde6077c32db26620c35f9dc4f06c7d88562b044e21ef5364669dc248037
audreyt/openafp
Buffer.hs
----------------------------------------------------------------------------- -- | -- Module : OpenAFP.Types.Buffer Copyright : ( c ) 2004 - 2011 License : PublicDomain -- -- Maintainer : -- Stability : experimental Portability : non - portable ( GHC - only ) -- -- This module handle...
null
https://raw.githubusercontent.com/audreyt/openafp/178e0dd427479ac7b8b461e05c263e52dd614b73/src/OpenAFP/Types/Buffer.hs
haskell
--------------------------------------------------------------------------- | Module : OpenAFP.Types.Buffer Maintainer : Stability : experimental This module handles sized binary buffers. --------------------------------------------------------------------------- representing its length.
Copyright : ( c ) 2004 - 2011 License : PublicDomain Portability : non - portable ( GHC - only ) module OpenAFP.Types.Buffer where import OpenAFP.Internals import Data.Binary.Get import Data.Binary.Put import qualified Data.ByteString as S import qualified Data.ByteString.Lazy as L | The Buf ...
46a857405434a82093575fabb2c063948c435670061e4e9cd4fb77d45ea35f78
gmr/pgsql-listen-exchange
validation_SUITE.erl
-module(validation_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). all() -> [validate_policy_ok_test]. validate_policy_ok_test(_Config) -> KeyList = [ {<<"pgsql-listen-host">>, <<"localhost">>}, {<<"pgsql-listen-port">>, 5432}, ...
null
https://raw.githubusercontent.com/gmr/pgsql-listen-exchange/033ea5ecc6e02b740d616812ba10d142915149ee/test/validation_SUITE.erl
erlang
-module(validation_SUITE). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile(export_all). all() -> [validate_policy_ok_test]. validate_policy_ok_test(_Config) -> KeyList = [ {<<"pgsql-listen-host">>, <<"localhost">>}, {<<"pgsql-listen-port">>, 5432}, ...
bb37d61484df213556647ec45ebc1f167614ff6dbfe9b314d587943f2591e284
nasa/Common-Metadata-Repository
granule_search_entry_id_test.clj
(ns cmr.system-int-test.search.granule-search-entry-id-test "Integration tests for searching by collection entry_id" (:require [clojure.test :refer :all] [cmr.common.util :as util :refer [are3]] [cmr.system-int-test.data2.core :as d] [cmr.system-int-test.data2.granule :as dg] [cmr.system-int-test.dat...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/1606a1949aad31833d37718d25dce3190be8a9fe/system-int-test/test/cmr/system_int_test/search/granule_search_entry_id_test.clj
clojure
(ns cmr.system-int-test.search.granule-search-entry-id-test "Integration tests for searching by collection entry_id" (:require [clojure.test :refer :all] [cmr.common.util :as util :refer [are3]] [cmr.system-int-test.data2.core :as d] [cmr.system-int-test.data2.granule :as dg] [cmr.system-int-test.dat...
457e0542f2cae2a1032752bda6bef2a9c06107ba3d57952f85c88476d04854a4
schemedoc/implementation-metadata
lips.scm
(short-title "LIPS") (title "LIPS") (long-title "LIPS is Pretty Simple") (tagline "Scheme LISP in JavaScript") (github "jcubic/lips") (homepage github)
null
https://raw.githubusercontent.com/schemedoc/implementation-metadata/6280d9c4c73833dc5bd1c9bef9b45be6ea5beb68/schemes/lips.scm
scheme
(short-title "LIPS") (title "LIPS") (long-title "LIPS is Pretty Simple") (tagline "Scheme LISP in JavaScript") (github "jcubic/lips") (homepage github)
961537eeca9356d9dfc641f4cdddc2d267763480241ec03f846be8f8c6bab439
Quid2/zm
K87f090a54ea3.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} module Test.ZM.ADT.ByType.K87f090a54ea3 (ByType(..)) where import qualified Prelude(Eq,Ord,Show) import qualified GHC.Generics import qualified Flat import qualified Data.Model data ByType a = ByType deriving (Prelude.Eq, Prelude.Ord, Prelude.Show, GH...
null
https://raw.githubusercontent.com/Quid2/zm/02c0514777a75ac054bfd6251edd884372faddea/test/Test/ZM/ADT/ByType/K87f090a54ea3.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric #
module Test.ZM.ADT.ByType.K87f090a54ea3 (ByType(..)) where import qualified Prelude(Eq,Ord,Show) import qualified GHC.Generics import qualified Flat import qualified Data.Model data ByType a = ByType deriving (Prelude.Eq, Prelude.Ord, Prelude.Show, GHC.Generics.Generic, Flat.Flat) instance ( Data.Model.Model a ) =...
3c26c72dc304bca33219160a4de981b0d348d4a5187d241fba0bc8670a2c3750
alanz/ghc-exactprint
SH_Overlap6.hs
{-# LANGUAGE Safe #-} # LANGUAGE FlexibleInstances # | Same as ` SH_Overlap5 ` but dependencies are now inferred - safe , not -- explicitly marked. Compilation should still fail. module SH_Overlap6 where import safe SH_Overlap6_A instance C [a] where f _ = "[a]" test :: String test = f ([1,2,3,4] :: [Int])
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/SH_Overlap6.hs
haskell
# LANGUAGE Safe # explicitly marked. Compilation should still fail.
# LANGUAGE FlexibleInstances # | Same as ` SH_Overlap5 ` but dependencies are now inferred - safe , not module SH_Overlap6 where import safe SH_Overlap6_A instance C [a] where f _ = "[a]" test :: String test = f ([1,2,3,4] :: [Int])
4f5974a46f943dfda26b80973e79156013735dcc393e575f95f447c0f7c57367
quil-lang/qvm
path-simulate-tests.lisp
path-simulate-tests.lisp ;;;; Author : (in-package #:qvm-tests) This file contains tests of the MADPI simulation technique . (defun test-path-eval-instance (s) (let* ((p (quil:parse-quil (format nil s))) (n (quil:qubits-needed p)) (qvm (make-qvm n))) (load-program qvm p) (run qvm)...
null
https://raw.githubusercontent.com/quil-lang/qvm/de95ead6e7df70a1f8e0212455a802bd0cef201c/tests/path-simulate-tests.lisp
lisp
Path simulate
path-simulate-tests.lisp Author : (in-package #:qvm-tests) This file contains tests of the MADPI simulation technique . (defun test-path-eval-instance (s) (let* ((p (quil:parse-quil (format nil s))) (n (quil:qubits-needed p)) (qvm (make-qvm n))) (load-program qvm p) (run qvm) ...
196d1a3200286f30b2577689a68314f9a22f39bdc38c15e5023f9785a084e0c8
fox000002/hy-fluent
panel.scm
;;; Copyright ( C ) 2009 huys , ; This program is free software : you can redistribute it and;or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ; (at your option) any later version. ; ; This program is distribute...
null
https://raw.githubusercontent.com/fox000002/hy-fluent/a26358455f92e304f3d62202587ccf5682a156f4/fluent_gui/panel.scm
scheme
or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. along with this program. If n...
Copyright ( C ) 2009 huys , it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (define hy-panel (let ((panel #f)(hy-value)) (define (update-cb) ...
b8b86a0563dc935a3406f9a3527982102239819ce0b1bc939b36f3cb67a4e4a0
MinaProtocol/mina
bindings_js_test.ml
open Kimchi_types open Pasta_bindings open Kimchi_bindings open Js_of_ocaml module Bigint_256 = BigInt256 module Pasta_fp = Fp module Pasta_fq = Fq module Pasta_fp_vector = FieldVectors.Fp module Pasta_fq_vector = FieldVectors.Fq module Pasta_pallas = Pallas module Pasta_vesta = Vesta module Pasta_fp_urs = Protocol.SRS...
null
https://raw.githubusercontent.com/MinaProtocol/mina/a4e030878c166014f8731c356b48ce362abd6f90/src/lib/crypto/kimchi_bindings/js/test/bindings_js_test.ml
ocaml
open Kimchi_types open Pasta_bindings open Kimchi_bindings open Js_of_ocaml module Bigint_256 = BigInt256 module Pasta_fp = Fp module Pasta_fq = Fq module Pasta_fp_vector = FieldVectors.Fp module Pasta_fq_vector = FieldVectors.Fq module Pasta_pallas = Pallas module Pasta_vesta = Vesta module Pasta_fp_urs = Protocol.SRS...
657a62b4b656f48389144e7e6531b28727f50334afce0e2cb2656cd061059b56
dancrossnyc/multics
emacs-object-mode.lisp
;;; *********************************************************** ;;; * * * Copyright , ( C ) Honeywell Information Systems Inc. , 1982 * ;;; * * * Copyright ( c ) 1978 by Massachusetts Institute of ...
null
https://raw.githubusercontent.com/dancrossnyc/multics/dc291689edf955c660e57236da694630e2217151/library_dir_dir/system_library_unbundled/source/bound_emacs_packages_.s.archive/emacs-object-mode.lisp
lisp
*********************************************************** * * * * * * *********************************************************** Emacs Object...
* Copyright , ( C ) Honeywell Information Systems Inc. , 1982 * * Copyright ( c ) 1978 by Massachusetts Institute of * * Technology and Honeywell Information Systems , Inc. * 1 ) change(81 - 05 - 05,Soley ) , approve ( ) , audit ( ) , 2 ) change(86 - 02 - 24,Margolin ) , approve(86 - 02 - 2...
570d0c74785bf2fe6af3110f723d6e9a472f80287c8b32dbeaccec7237d1e105
input-output-hk/plutus
Recursive.hs
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - missing - deriving - strategies # # LANGUAGE TemplateHaskell # {-# LANGUAGE TypeFamilies #-} module UntypedPlutusCore.Core.Instance.Recursive ( -- * Base functors TermF (..) ) where import UntypedPlutusCore.Core.Type import Data.Func...
null
https://raw.githubusercontent.com/input-output-hk/plutus/097f3e65789a51721152817b5c1c8eb0efedb441/plutus-core/untyped-plutus-core/src/UntypedPlutusCore/Core/Instance/Recursive.hs
haskell
# LANGUAGE TypeFamilies # * Base functors
# OPTIONS_GHC -fno - warn - orphans # # OPTIONS_GHC -fno - warn - missing - deriving - strategies # # LANGUAGE TemplateHaskell # module UntypedPlutusCore.Core.Instance.Recursive TermF (..) ) where import UntypedPlutusCore.Core.Type import Data.Functor.Foldable.TH $(makeBaseFunctor ''Term)
8ba92e376261d1bba118b43ff50821b43b90aabe9bc894aa875381bbd3e59f53
generateme/fastmath
transform.clj
(ns fastmath.transform "Transforms. See [[transformer]] and [[TransformProto]] for details. ### Wavelet Based on [JWave](/) library. Be aware that some of the wavelet types doesn't work properly. `:battle-23`, `:cdf-53`, `:cdf-97`. ### Cos/Sin/Hadamard Orthogonal or standard fast sine/cosine/had...
null
https://raw.githubusercontent.com/generateme/fastmath/e0e5d52ee84f33d870ed64f3cbb2f011b49a9b6b/src/fastmath/transform.clj
clojure
(ns fastmath.transform "Transforms. See [[transformer]] and [[TransformProto]] for details. ### Wavelet Based on [JWave](/) library. Be aware that some of the wavelet types doesn't work properly. `:battle-23`, `:cdf-53`, `:cdf-97`. ### Cos/Sin/Hadamard Orthogonal or standard fast sine/cosine/had...
f024bce390e39ca46564948ba0c603e82d7a5f0f48ee5e2559ad2b5361a4eb21
inria-parkas/sundialsml
cvsRoberts_ASAi_dns_constraints.ml
* ----------------------------------------------------------------- * $ Revision : 1.4 $ * $ Date : 2011/11/23 23:53:02 $ * ----------------------------------------------------------------- * Programmer(s ): @ LLNL * ----------------------------------------------------------------- * OCaml port :...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a1848318cac2e340c32ddfd42671bef07b1390db/examples/cvodes/serial/cvsRoberts_ASAi_dns_constraints.ml
ocaml
Problem Constants number of equations scalar relative tolerance vector absolute tolerance components absolute tolerance for adjoint vars. absolute tolerance for quadratures initial time final time starting point for adjoint...
* ----------------------------------------------------------------- * $ Revision : 1.4 $ * $ Date : 2011/11/23 23:53:02 $ * ----------------------------------------------------------------- * Programmer(s ): @ LLNL * ----------------------------------------------------------------- * OCaml port :...
b80f51dbbfbfed98057a39901c96455b3408c0c7ffd40daa8cd5aac50d2921f9
camllight/camllight
ouster-f16.8.ml
#open "tk";; let top = OpenTk() in let font = textvariable__new () in let rbs = map (function otheropts -> radiobutton__create top ([Variable font; Anchor W] @ otheropts)) [[Text "Times"; Value "times"]; [Text "Helvetica"; Value "helvetica"]; [Text "Courier"; Value "courier"];...
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/camltk/books-examples/ouster-f16.8.ml
ocaml
#open "tk";; let top = OpenTk() in let font = textvariable__new () in let rbs = map (function otheropts -> radiobutton__create top ([Variable font; Anchor W] @ otheropts)) [[Text "Times"; Value "times"]; [Text "Helvetica"; Value "helvetica"]; [Text "Courier"; Value "courier"];...
6e3d061d63862b00685d502487839435167055353589016a8a00b1796c3b0f01
yutopp/rill
syntax_test.ml
open OUnit2 let test_test_1 test_ctxt = assert_equal true true let rec suite = "syntax_suite" >::: [ "test_test_1" >:: test_test_1 ] let () = run_test_tt_main suite
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/_migrating/test/syntax_test.ml
ocaml
open OUnit2 let test_test_1 test_ctxt = assert_equal true true let rec suite = "syntax_suite" >::: [ "test_test_1" >:: test_test_1 ] let () = run_test_tt_main suite
98500e9b15d0bf3ea84a9e3f34ead50b272abab1fd0953f78d3322b7fb90a160
mtgred/netrunner
actions.clj
(ns game.core.actions (:require [clj-uuid :as uuid] [clojure.stacktrace :refer [print-stack-trace]] [clojure.string :as string] [game.core.agendas :refer [update-advancement-requirement update-all-advancement-requirements update-all-agenda-points]] [game.core.board :refer [get-zones installable-se...
null
https://raw.githubusercontent.com/mtgred/netrunner/c689b882a22b95c25fe584a14d092f300fe3816e/src/clj/game/core/actions.clj
clojure
Neutral actions allow moving from play-area always, otherwise only when same side, and to valid zone Remove all prompts associated with the trashed card Discard from hand, do not trigger trash default :Counter prompts deduct counters from the card trigger the prompt's effect function List of card titles for aut...
(ns game.core.actions (:require [clj-uuid :as uuid] [clojure.stacktrace :refer [print-stack-trace]] [clojure.string :as string] [game.core.agendas :refer [update-advancement-requirement update-all-advancement-requirements update-all-agenda-points]] [game.core.board :refer [get-zones installable-se...
b08bdb8a19b6c95b6e053247d1723c6c2426cc25d4e35713725d73246c99d2ad
vaibhavsagar/experiments
XmlElementTy.hs
module Dotnet.System.Xml.XmlElementTy where import Dotnet import Dotnet.System.Xml.XmlLinkedNode data XmlElement_ a type XmlElement a = Dotnet.System.Xml.XmlLinkedNode.XmlLinkedNode (XmlElement_ a)
null
https://raw.githubusercontent.com/vaibhavsagar/experiments/378d7ba97eabfc7bbeaa4116380369ea6612bfeb/hugs/dotnet/lib/Dotnet/System/Xml/XmlElementTy.hs
haskell
module Dotnet.System.Xml.XmlElementTy where import Dotnet import Dotnet.System.Xml.XmlLinkedNode data XmlElement_ a type XmlElement a = Dotnet.System.Xml.XmlLinkedNode.XmlLinkedNode (XmlElement_ a)
6efe4a826c570e14c2d03c8bc1565ff94727381d5876b658322c867aaeab6ed6
lspitzner/brittany
Expr.hs
# LANGUAGE LambdaCase # # LANGUAGE MonadComprehensions # # LANGUAGE NoImplicitPrelude # module Language.Haskell.Brittany.Internal.Layouters.Expr where import qualified Data.Data import qualified Data.Semigroup as Semigroup import qualified Data.Sequence as Seq import qualified Data.Text as Text import GHC (AnnKeyword...
null
https://raw.githubusercontent.com/lspitzner/brittany/7399b7538835411727e025e1480ea96b5496416c/source/library/Language/Haskell/Brittany/Internal/Layouters/Expr.hs
haskell
this code could be as simple as `colsWrapPat =<< layoutPat p` \ !x -> x \ ~x -> x These make it necessary to special-case an additional separator. (TODO: we create a BDCols here, but then make it ineffective by wrapping it in docSeq below. We _could_ add alignments for stuff like lists-of-lambdas. Nothing terrib...
# LANGUAGE LambdaCase # # LANGUAGE MonadComprehensions # # LANGUAGE NoImplicitPrelude # module Language.Haskell.Brittany.Internal.Layouters.Expr where import qualified Data.Data import qualified Data.Semigroup as Semigroup import qualified Data.Sequence as Seq import qualified Data.Text as Text import GHC (AnnKeyword...
9bd8dd3e40680f8e19e71a766bdff7ad75a4febe26e97c5d250b0d0d8849a3ca
SquidDev/illuaminate
server.mli
open! Import * * This encodes LSP RPC state machine . include module type of Rpc.Server
null
https://raw.githubusercontent.com/SquidDev/illuaminate/da18b101b4710881b71c42554d70a3a7d17c3cd6/vendor/ocaml-lsp-subtree/lsp-fiber/server.mli
ocaml
open! Import * * This encodes LSP RPC state machine . include module type of Rpc.Server
cd4d5c6007ffba03004124121e7613f17656ee4d194c85af7933a81b36dc3d73
jellelicht/guix
graph.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 , 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 t...
null
https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/tests/graph.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 , 2016 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (test-graph) #:use-module (guix tests) #:use-module (guix graph) #:use-module (guix sc...
b2145c71c5da773da7f4bce3ebd2cd5c9007172b0ab8a592ebf342cb122f4257
FBoisson/Camllight
asl.ml
$ I d : asl.ml , v 1.3 1994/11/10 09:57:19 xleroy Exp $ let init_env = ["+";"-";"*";"/";"="];;
null
https://raw.githubusercontent.com/FBoisson/Camllight/2e6d5ec31f93ec53d11232b7b2498adc719a8b13/examples/asl/asl.ml
ocaml
$ I d : asl.ml , v 1.3 1994/11/10 09:57:19 xleroy Exp $ let init_env = ["+";"-";"*";"/";"="];;
eb7cb675e4643974714e2c750b3bd566815b4e39a7e90f14b4430661a1de0c4a
DavidAlphaFox/aiwiki
srv_site.erl
-module(srv_site). -include("include/model.hrl"). -export([fetch/1]). -export([load/2]). fetch(site)-> to_map([brand,footer,keywords,intro,scripts,host]); fetch(header) -> to_map([header]); fetch(rss) -> to_map([host,brand,intro]); fetch(sitemap) -> to_map([host]). to_map(Keys)-> case db_site:fetch(Keys) of {...
null
https://raw.githubusercontent.com/DavidAlphaFox/aiwiki/3a2a78668d4a708fda4af35430f25a69c4b91a7e/src/service/srv_site.erl
erlang
-module(srv_site). -include("include/model.hrl"). -export([fetch/1]). -export([load/2]). fetch(site)-> to_map([brand,footer,keywords,intro,scripts,host]); fetch(header) -> to_map([header]); fetch(rss) -> to_map([host,brand,intro]); fetch(sitemap) -> to_map([host]). to_map(Keys)-> case db_site:fetch(Keys) of {...
88b8fc50d7993e6066d3e5f0247c22f6cd7c6cae35cccfd6b089498cc4cee8bb
LeiWangHoward/Common-Lisp-Playground
quicklisp-1.lisp
;;;; This is quicklisp.lisp , the quickstart file for Quicklisp . To use ;;;; it, start Lisp, then (load "quicklisp.lisp") ;;;; Quicklisp is beta software and comes with no warranty of any kind . ;;;; For more information about the Quicklisp beta , see : ;;;; / ;;;; If you have any questions or comments ab...
null
https://raw.githubusercontent.com/LeiWangHoward/Common-Lisp-Playground/4130232954f1bbf8aa003d856ccb2ab382da0534/quicklisp-1.lisp
lisp
it, start Lisp, then (load "quicklisp.lisp") contact: Defining implementation-specific packages and functionality Clozure CL MKCL Utility function Low-level networking implementations A text progress bar A simple HTTP client Octet data ASCII characters as integers Pattern matching (for find...
This is quicklisp.lisp , the quickstart file for Quicklisp . To use Quicklisp is beta software and comes with no warranty of any kind . For more information about the Quicklisp beta , see : / If you have any questions or comments about Quicklisp , please < > (cl:in-package #:cl-user) (cl:defpackag...
a4487f1f3d54dbc31679ab8502bb5ef851f557a9885c0cdc91418bf1d5990aa7
ghc/ghc
Typeable.hs
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1999 (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1999 -} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module GHC.Tc.Ins...
null
https://raw.githubusercontent.com/ghc/ghc/aacf616df0b4059e6b177ecb64624ae6fb1d1c87/compiler/GHC/Tc/Instance/Typeable.hs
haskell
entry-point of this module and is invoked by the typechecker driver in 'tcRnSrcDecls'. Create a binding for $trModule. Do this before processing any data type declarations, which need tcg_tr_module to be initialised Then we produce bindings for the user-defined types in this module. Should be set by now ******...
( c ) The University of Glasgow 2006 ( c ) The GRASP / AQUA Project , Glasgow University , 1992 - 1999 (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1999 -} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # module GHC.Tc.Ins...
f0b523c1738d58e54773e9e815fe3f9d8135d553c85ddb38098d6ea71e0ffd2b
composewell/streamly-coreutils
Stat.hs
-- | Module : Streamly . Coreutils . Stat Copyright : ( c ) 2022 Composewell Technologies -- License : Apache-2.0 -- Maintainer : -- Stability : experimental Portability : GHC -- gets the FileStatus information ( user ID , -- size, access times, etc.) for the file path. XXX Reexport the requ...
null
https://raw.githubusercontent.com/composewell/streamly-coreutils/edf66d29cdd6ae7b89b909f06821d760c9971609/src/Streamly/Coreutils/Stat.hs
haskell
| License : Apache-2.0 Maintainer : Stability : experimental size, access times, etc.) for the file path. * Options
Module : Streamly . Coreutils . Stat Copyright : ( c ) 2022 Composewell Technologies Portability : GHC gets the FileStatus information ( user ID , XXX Reexport the required types ? module Streamly.Coreutils.Stat ( stat , Stat , followLinks ) where import Streamly.Coreutils...
d5a45747d8ad2a0e4b0d75dce70acc69e4e0a38a004d28479375bb6b17af8f3b
dyoo/ragg
baby-json.rkt
#lang ragg ;; Simple baby example of JSON structure json: number | string | array | object number: NUMBER string: STRING array: "[" [json ("," json)*] "]" object: "{" [kvpair ("," kvpair)*] "}" kvpair: ID ":" json
null
https://raw.githubusercontent.com/dyoo/ragg/9cc648e045f7195702599b88e6b8db9364f88302/ragg/examples/baby-json.rkt
racket
Simple baby example of JSON structure
#lang ragg json: number | string | array | object number: NUMBER string: STRING array: "[" [json ("," json)*] "]" object: "{" [kvpair ("," kvpair)*] "}" kvpair: ID ":" json
9dbfd38499926c2ec1e01c077169c1723fa8de31d1df51f794cd6766bc299161
nonguix/nonguix
nvidia.scm
SPDX - License - Identifier : GPL-3.0 - or - later Copyright © 2020 < > Copyright © 2020 < > Copyright © 2020 , 2021 < > Copyright © 2020 - 2022 < > Copyright © 2021 < > Copyright © 2022 , 2023 Petr Hodina < > Copyright © 2022 < > ;;; Copyright © 2022 Hilton Chain <> (define-modul...
null
https://raw.githubusercontent.com/nonguix/nonguix/29d63cbac7b1e652932595adb583fcffe59bfaee/nongnu/packages/nvidia.scm
scheme
Copyright © 2022 Hilton Chain <> Extract the driver installer and make it a new origin instance for reusing. Add udev rules for nvidia NOTE: Kernels compiled with CONFIG_LTO_CLANG_THIN would cause an error here. See also: <-project/issues/55820> no test suite required for grafting
SPDX - License - Identifier : GPL-3.0 - or - later Copyright © 2020 < > Copyright © 2020 < > Copyright © 2020 , 2021 < > Copyright © 2020 - 2022 < > Copyright © 2021 < > Copyright © 2022 , 2023 Petr Hodina < > Copyright © 2022 < > (define-module (nongnu packages nvidia) #:use-mo...
3281bd4ee86f165b9a50f8a41fe8e2bad2cd68cecb6a3b445776d4890cbc120d
rowangithub/DOrder
46.ml
let rec loop w z x y = if (Random.bool ()) then let x = if (w mod 2 = 1) then x+1 else x in let w = if (w mod 2 = 1) then w+1 else w in let y = if (z mod 2 = 0) then y+1 else y in let z = if (z mod 2 = 0) then z+1 else z in loop w z x y else assert (x <= 1) let main () = let w = 1 in let z = 0 in le...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/hola/46.ml
ocaml
let rec loop w z x y = if (Random.bool ()) then let x = if (w mod 2 = 1) then x+1 else x in let w = if (w mod 2 = 1) then w+1 else w in let y = if (z mod 2 = 0) then y+1 else y in let z = if (z mod 2 = 0) then z+1 else z in loop w z x y else assert (x <= 1) let main () = let w = 1 in let z = 0 in le...
9c1e1b0d37422edcc5bd2429b220fd663dfc72598e287c8819fd2359e38bc6b2
MastodonC/kixi.datastore
migrators_201703220906_init.clj
(ns kixi.datastore.schemastore.migrators.dynamodb.migrators-201703220906-init (:require [kixi.datastore [application :refer [profile config-location]] [dynamodb :as db] [schemastore :as ss] [system :refer [read-config]]] [kixi.datastore.schemastore.dynam...
null
https://raw.githubusercontent.com/MastodonC/kixi.datastore/f33bba4b1fdd8c56cc7ac0f559ffe35254c9ca99/src/kixi/datastore/schemastore/migrators/dynamodb/migrators_201703220906_init.clj
clojure
(ns kixi.datastore.schemastore.migrators.dynamodb.migrators-201703220906-init (:require [kixi.datastore [application :refer [profile config-location]] [dynamodb :as db] [schemastore :as ss] [system :refer [read-config]]] [kixi.datastore.schemastore.dynam...
ea3b5c7748901e2b3649132b8030b8c84c2a7b0bca22ef1e9d89e0ee364f6de4
dbuenzli/hyperbib
user_html.mli
--------------------------------------------------------------------------- Copyright ( c ) 2021 University of Bern . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
null
https://raw.githubusercontent.com/dbuenzli/hyperbib/04a09ae1036c68a45114c080206364fecb64b7f6/src/html/user_html.mli
ocaml
* The login page.
--------------------------------------------------------------------------- Copyright ( c ) 2021 University of Bern . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 20...
ffd4b0c96877b265bb7e47812f7bfcbc16ca580ca20ec016e4c88a15e89eac14
mirage/irmin
test_mem.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/test/irmin-mem/test_mem.ml
ocaml
* 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...
225d4eb71a82f5f3bde48da842f12f8c84f10e02162dc71ab771d70f83050b7c
dwayne/eopl3
senv.rkt
#lang racket ;; Static environment (provide ;; Build empty-senv extend-senv ;; Query apply-senv) (define (empty-senv) '()) (define (extend-senv var senv) (cons var senv)) (define (apply-senv senv search-var) (if (null? senv) (error 'apply-senv "No binding for ~s" search-var) (if (symbol=? ...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/03-ch3/interpreters/racket/NAMELESS-PROC-3.38/senv.rkt
racket
Static environment Build Query
#lang racket (provide empty-senv extend-senv apply-senv) (define (empty-senv) '()) (define (extend-senv var senv) (cons var senv)) (define (apply-senv senv search-var) (if (null? senv) (error 'apply-senv "No binding for ~s" search-var) (if (symbol=? (car senv) search-var) 0 ...
7e445f4ca2c148bcd268717fdf231b524463611f960c082371fd4ead128c186d
WorksHub/client
styles.cljc
(ns wh.components.newsletter.styles) (def card "styles__card--24r-4") (def card__wrapper "styles__card__wrapper--12zMT") (def card__wrapper--blog-content "styles__card__wrapper--blog-content--11His") (def card__wrapper--blog-list "styles__card__wrapper--blog-list--3vUc6") (def card__wrapper--job-list "styles__card__wra...
null
https://raw.githubusercontent.com/WorksHub/client/a5058e08f8d4cc64085411fb8232e4938adb55bf/common/src/wh/components/newsletter/styles.cljc
clojure
(ns wh.components.newsletter.styles) (def card "styles__card--24r-4") (def card__wrapper "styles__card__wrapper--12zMT") (def card__wrapper--blog-content "styles__card__wrapper--blog-content--11His") (def card__wrapper--blog-list "styles__card__wrapper--blog-list--3vUc6") (def card__wrapper--job-list "styles__card__wra...
d18951625b72dfa372642905cad33777dd704475918d6bce5f2ec64c5151ece8
slipstream/SlipStreamServer
credential_template_cloud_dummy_test.cljc
(ns com.sixsq.slipstream.ssclj.resources.spec.credential-template-cloud-dummy-test (:require [clojure.test :refer [deftest]] [com.sixsq.slipstream.ssclj.resources.credential :as p] [com.sixsq.slipstream.ssclj.resources.credential-template :as ct] [com.sixsq.slipstream.ssclj.resources.credential-templa...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/dummy-connector/config/test/com/sixsq/slipstream/ssclj/resources/spec/credential_template_cloud_dummy_test.cljc
clojure
(ns com.sixsq.slipstream.ssclj.resources.spec.credential-template-cloud-dummy-test (:require [clojure.test :refer [deftest]] [com.sixsq.slipstream.ssclj.resources.credential :as p] [com.sixsq.slipstream.ssclj.resources.credential-template :as ct] [com.sixsq.slipstream.ssclj.resources.credential-templa...
939efc43efe9b7c192c60d2e4e068fbc6eb2240ef4ac01229ecdea460d91875b
kelsey-sorrels/robinson
endgame.clj
;; Functions for manipulating player state (ns robinson.endgame (:require [robinson.common :as rc] [taoensso.timbre :as log] [robinson.random :as rr] [robinson.monstergen :as mg] [robinson.itemgen :as ig])) (defn format [s & args] (apply clojure.core/format s args)) ...
null
https://raw.githubusercontent.com/kelsey-sorrels/robinson/337fd2646882708331257d1f3db78a3074ccc67a/src/robinson/endgame.clj
clojure
Functions for manipulating player state
(ns robinson.endgame (:require [robinson.common :as rc] [taoensso.timbre :as log] [robinson.random :as rr] [robinson.monstergen :as mg] [robinson.itemgen :as ig])) (defn format [s & args] (apply clojure.core/format s args)) (defn rnd-nth [coll n] (nth coll (mod ...
d43058842dd7bb012aea63a418aadc61d6bbcd05a2776fa360b93ee3485faebb
timbod7/haskell-chart
Types.hs
----------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.Chart.Plot.Types Copyright : ( c ) 2006 , 2014 -- License : BSD-style (see chart/COPYRIGHT) -- Datatypes and functions common to the implementation of the various -- plot types. -- # L...
null
https://raw.githubusercontent.com/timbod7/haskell-chart/8c5a823652ea1b4ec2adbced4a92a8161065ead6/chart/Graphics/Rendering/Chart/Plot/Types.hs
haskell
--------------------------------------------------------------------------- | Module : Graphics.Rendering.Chart.Plot.Types License : BSD-style (see chart/COPYRIGHT) plot types. | Interface to control plotting on a 2D area. | Given the mapping between model space coordinates and device coordinates,...
Copyright : ( c ) 2006 , 2014 Datatypes and functions common to the implementation of the various # LANGUAGE TemplateHaskell # module Graphics.Rendering.Chart.Plot.Types( Plot(..), joinPlot, ToPlot(..), mapXY, plot_render, plot_legend, plot_all_points, ) where import Grap...
132f8789efb5d11ed33c8a5852d07ddb7ab90463a272653c8d98f85b0aa585e2
mindreframer/clojure-stuff
19_java_interop.clj
(ns koans.19-java-interop (:require [koan-engine.core :refer :all])) (meditations "You may have done more with Java than you know" (= __ (class "warfare")) ; hint: try typing (javadoc "warfare") in the REPL "The dot signifies easy and direct Java interoperation" (= __ (.toUpperCase "select * from")) "But...
null
https://raw.githubusercontent.com/mindreframer/clojure-stuff/1e761b2dacbbfbeec6f20530f136767e788e0fe3/github.com/functional-koans/clojure-koans/src/koans/19_java_interop.clj
clojure
hint: try typing (javadoc "warfare") in the REPL
(ns koans.19-java-interop (:require [koan-engine.core :refer :all])) (meditations "You may have done more with Java than you know" "The dot signifies easy and direct Java interoperation" (= __ (.toUpperCase "select * from")) "But instance method calls are very different from normal functions" (= ["SELECT...
7ce6ecb831332da7253f6e4f710546b4f8aff4add87e08dd65fb8bb5554e626f
tensorflow/haskell
GradientTest.hs
Copyright 2016 TensorFlow authors . -- 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 distr...
null
https://raw.githubusercontent.com/tensorflow/haskell/d088e30b80f1508281e400975bec9d14b431a22c/tensorflow-ops/tests/GradientTest.hs
haskell
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 perm...
Copyright 2016 TensorFlow authors . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , # LANGUAGE NoMonomorphismRestriction # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # import Data.Int (Int32, Int64) impo...
6b0c629578167ee6c3a13dd3f4d2d230832e287a821d8d9017a862c7a7510e4a
bufferswap/ViralityEngine
vec3.lisp
(in-package #:cl-user) (defpackage #:vorigin.vec3 (:local-nicknames (#:com #:vorigin.common) (#:const #:vorigin.constants) (#:u #:vutils) (#:v2 #:vorigin.vec2)) (:use #:cl) (:shadow #:= #:+ #:- #:* #:/ #:random #:length #:round #:abs #:< #:<= #:> #:>= #:min ...
null
https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/support/vorigin/src/types/vec3.lisp
lisp
Constants
(in-package #:cl-user) (defpackage #:vorigin.vec3 (:local-nicknames (#:com #:vorigin.common) (#:const #:vorigin.constants) (#:u #:vutils) (#:v2 #:vorigin.vec2)) (:use #:cl) (:shadow #:= #:+ #:- #:* #:/ #:random #:length #:round #:abs #:< #:<= #:> #:>= #:min ...
60ca24614ea6e13372c3171e786879b73eca0e3a085c3abd3b34eaaf82bea33a
mirage/semaphore-compat
which.ml
let () = let version = Scanf.sscanf Sys.argv.(1) "%d.%d" (fun major minor -> (major, minor)) in let file = if version < (4, 12) then "semaphore-as-newtype.ml" else "semaphore-as-alias.ml" in print_string file
null
https://raw.githubusercontent.com/mirage/semaphore-compat/e949ed0f3a6806b2778e75ae136d60a37bd271e2/src/which.ml
ocaml
let () = let version = Scanf.sscanf Sys.argv.(1) "%d.%d" (fun major minor -> (major, minor)) in let file = if version < (4, 12) then "semaphore-as-newtype.ml" else "semaphore-as-alias.ml" in print_string file
52d8de023b99a5ef35140ec2de148c637341fd376aa954713b311523d88cba3a
ghc/nofib
Main.hs
-- Los Alamos National Laboratory 1990 August -- import GamtebMain import Control.Monad import System.Environment import NofibUtils main = replicateM_ 200 $ do (scale:_) <- getArgs putStr ( ( read scale ) ) print (hash (gamteb (read scale)))
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/gamteb/Main.hs
haskell
Los Alamos National Laboratory 1990 August import GamtebMain import Control.Monad import System.Environment import NofibUtils main = replicateM_ 200 $ do (scale:_) <- getArgs putStr ( ( read scale ) ) print (hash (gamteb (read scale)))
d3c6f8412bc76fdfee358ff2136e8e69529479f6b35d4cb6cef90011df172e75
wdebeaum/step
value.lisp
;;;; W::VALUE ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::VALUE (SENSES ((LF-PARENT ONT::value-cost) (example "He gave it a value of $10") (TEMPL reln-subcat-of-units-TEMPL) ) ((LF-PARENT ONT::value-COST) (TEMPL other-reln-templ (xp (% W::pp (W::ptype w::of)))...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/value.lisp
lisp
like admire,adore,appreciate,despise,detest,dislike,loathe,miss
W::VALUE (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::VALUE (SENSES ((LF-PARENT ONT::value-cost) (example "He gave it a value of $10") (TEMPL reln-subcat-of-units-TEMPL) ) ((LF-PARENT ONT::value-COST) (TEMPL other-reln-templ (xp (% W::pp (W::ptype w::of)))) (ex...
fd4b6240bdd734947e3926dada66ee4c88f6386a3e2e3d5a08ab92a0e31b7d3c
awakesecurity/grpc-mqtt
MQTT.hs
module Test.Network.GRPC.MQTT ( -- * Test Tree tests, ) where -------------------------------------------------------------------------------- import Test.Tasty (TestTree, testGroup) -------------------------------------------------------------------------------- import Test.Network.GRPC.MQTT.Compress quali...
null
https://raw.githubusercontent.com/awakesecurity/grpc-mqtt/c2033de14b46168643b835c3e1934a7af6ef820b/test/Test/Network/GRPC/MQTT.hs
haskell
* Test Tree ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------------------------------------------------
module Test.Network.GRPC.MQTT tests, ) where import Test.Tasty (TestTree, testGroup) import Test.Network.GRPC.MQTT.Compress qualified import Test.Network.GRPC.MQTT.Message qualified import Test.Network.GRPC.MQTT.Option qualified import Test.Network.GRPC.MQTT.Serial qualified tests :: TestTree tests = test...