Search is not available for this dataset
repo_name string | path string | license string | full_code string | full_size int64 | uncommented_code string | uncommented_size int64 | function_only_code string | function_only_size int64 | is_commented bool | is_signatured bool | n_ast_errors int64 | ast_max_depth int64 | n_whitespaces int64 | n_ast_nodes int64 | n_ast_terminals int64 | n_ast_nonterminals int64 | loc int64 | cycloplexity int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AndreasPK/stack | src/System/Process/Log.hs | bsd-3-clause | timeSpecMilliSecondText :: Clock.TimeSpec -> Text
timeSpecMilliSecondText t =
(T.pack . show . (`div` 10^(6 :: Int)) . Clock.toNanoSecs) t <> "ms" | 150 | timeSpecMilliSecondText :: Clock.TimeSpec -> Text
timeSpecMilliSecondText t =
(T.pack . show . (`div` 10^(6 :: Int)) . Clock.toNanoSecs) t <> "ms" | 150 | timeSpecMilliSecondText t =
(T.pack . show . (`div` 10^(6 :: Int)) . Clock.toNanoSecs) t <> "ms" | 100 | false | true | 0 | 12 | 24 | 68 | 35 | 33 | null | null |
janschulz/pandoc | src/Text/Pandoc/Writers/Texinfo.hs | gpl-2.0 | inlineToTexinfo (Strong lst) =
inlineListToTexinfo lst >>= return . inCmd "strong" | 84 | inlineToTexinfo (Strong lst) =
inlineListToTexinfo lst >>= return . inCmd "strong" | 84 | inlineToTexinfo (Strong lst) =
inlineListToTexinfo lst >>= return . inCmd "strong" | 84 | false | false | 0 | 7 | 12 | 29 | 13 | 16 | null | null |
karamellpelle/grid | designer/source/Game/Iteration.hs | gpl-3.0 | -- | encapsulate (a -> b -> m (a, b, is)) as iteration
makeIteration :: (a -> b -> MEnv' (a, b, IterationStack a b)) ->
Iteration a b
makeIteration =
Iteration | 182 | makeIteration :: (a -> b -> MEnv' (a, b, IterationStack a b)) ->
Iteration a b
makeIteration =
Iteration | 127 | makeIteration =
Iteration | 30 | true | true | 0 | 12 | 54 | 55 | 27 | 28 | null | null |
pparkkin/eta | compiler/ETA/Prelude/PrelNames.hs | bsd-3-clause | gHC_ST = mkBaseModule (fsLit "GHC.ST") | 47 | gHC_ST = mkBaseModule (fsLit "GHC.ST") | 47 | gHC_ST = mkBaseModule (fsLit "GHC.ST") | 47 | false | false | 0 | 7 | 13 | 15 | 7 | 8 | null | null |
BarrelfishOS/barrelfish | tools/skate/SkateParser.hs | mit | constantvals (TBuiltIn Int32) = constantvalsnum | 48 | constantvals (TBuiltIn Int32) = constantvalsnum | 48 | constantvals (TBuiltIn Int32) = constantvalsnum | 48 | false | false | 0 | 7 | 5 | 15 | 7 | 8 | null | null |
karamellpelle/grid | source/OpenGL/Shade.hs | gpl-3.0 | --------------------------------------------------------------------------------
-- vectors
attVec0 :: GLuint
attVec0 = 0 | 123 | attVec0 :: GLuint
attVec0 = 0 | 29 | attVec0 = 0 | 11 | true | true | 0 | 4 | 10 | 13 | 8 | 5 | null | null |
tsoding/boids | src/Boids.hs | mit | worldWrapPoint :: Point -> Point
worldWrapPoint (x, y) = ( mod' (x + worldSize) (2 * worldSize) - worldSize
, mod' (y + worldSize) (2 * worldSize) - worldSize) | 183 | worldWrapPoint :: Point -> Point
worldWrapPoint (x, y) = ( mod' (x + worldSize) (2 * worldSize) - worldSize
, mod' (y + worldSize) (2 * worldSize) - worldSize) | 183 | worldWrapPoint (x, y) = ( mod' (x + worldSize) (2 * worldSize) - worldSize
, mod' (y + worldSize) (2 * worldSize) - worldSize) | 150 | false | true | 0 | 9 | 52 | 80 | 42 | 38 | null | null |
giorgidze/igraph | Data/IGraph.hs | bsd-3-clause | centralizationCloseness :: Ord a => Graph d a
-> Bool -- ^ normalize centralization score?
-> (Map a Double, Double, Double) -- ^ (node-level degree scores, centralization scores, theoretical max)
centralizationCloseness g n = unsafePerformIO $
alloca $ \cp -> alloca $ ... | 748 | centralizationCloseness :: Ord a => Graph d a
-> Bool -- ^ normalize centralization score?
-> (Map a Double, Double, Double)
centralizationCloseness g n = unsafePerformIO $
alloca $ \cp -> alloca $ \tp -> do
v <- newVector 0
_e <- withGraph g $ \gp ->
... | 676 | centralizationCloseness g n = unsafePerformIO $
alloca $ \cp -> alloca $ \tp -> do
v <- newVector 0
_e <- withGraph g $ \gp ->
withVector v $ \vp ->
c_igraph_centralization_closeness
gp
vp
(getNeiMode g)
cp
tp
... | 503 | true | true | 0 | 19 | 298 | 212 | 102 | 110 | null | null |
ibotty/snaplet-mysql-simple | src/Snap/Snaplet/Auth/Backends/MysqlSimple.hs | bsd-3-clause | authExecute :: QueryParams q
=> Pool M.Connection -> Query -> q -> IO ()
authExecute pool q ps = do
_ <- withResource pool $ \conn -> M.execute conn q ps
return () | 183 | authExecute :: QueryParams q
=> Pool M.Connection -> Query -> q -> IO ()
authExecute pool q ps = do
_ <- withResource pool $ \conn -> M.execute conn q ps
return () | 183 | authExecute pool q ps = do
_ <- withResource pool $ \conn -> M.execute conn q ps
return () | 98 | false | true | 0 | 11 | 52 | 83 | 38 | 45 | null | null |
bos/text | tests/Tests/Properties/LowLevel.hs | bsd-2-clause | shiftL_Word16 = shiftL :: Word16 -> Property | 44 | shiftL_Word16 = shiftL :: Word16 -> Property | 44 | shiftL_Word16 = shiftL :: Word16 -> Property | 44 | false | false | 0 | 5 | 6 | 13 | 7 | 6 | null | null |
GaloisInc/sk-dev-platform | libs/SCD/src/SCD/M4/Dependencies.hs | bsd-3-clause | callGraphStmt (TeNeverAllow _ _) = Set.empty | 51 | callGraphStmt (TeNeverAllow _ _) = Set.empty | 51 | callGraphStmt (TeNeverAllow _ _) = Set.empty | 51 | false | false | 0 | 7 | 12 | 19 | 9 | 10 | null | null |
ancientlanguage/haskell-analysis | grammar/src/Grammar/Common/Decompose.hs | mit | decomposeChar '\xFA87' = "\x614E" | 33 | decomposeChar '\xFA87' = "\x614E" | 33 | decomposeChar '\xFA87' = "\x614E" | 33 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
kishoredbn/barrelfish | tools/skate/SkateChecker.hs | mit | checkConstantDefs fi t (xs@(ConstantDefStr i d v sp):x) ttbl attribs = do {checkConstantDefsString fi t (xs:x) ttbl attribs} | 124 | checkConstantDefs fi t (xs@(ConstantDefStr i d v sp):x) ttbl attribs = do {checkConstantDefsString fi t (xs:x) ttbl attribs} | 124 | checkConstantDefs fi t (xs@(ConstantDefStr i d v sp):x) ttbl attribs = do {checkConstantDefsString fi t (xs:x) ttbl attribs} | 124 | false | false | 0 | 10 | 17 | 62 | 32 | 30 | null | null |
meimisaki/FingerTree | test/Main.hs | mit | prop_SeqMonadRightIdentity :: Eq a => Seq a -> Bool
prop_SeqMonadRightIdentity xs =
(xs >>= return) == xs | 109 | prop_SeqMonadRightIdentity :: Eq a => Seq a -> Bool
prop_SeqMonadRightIdentity xs =
(xs >>= return) == xs | 109 | prop_SeqMonadRightIdentity xs =
(xs >>= return) == xs | 57 | false | true | 1 | 8 | 20 | 48 | 21 | 27 | null | null |
vikraman/ghc | compiler/hsSyn/HsUtils.hs | bsd-3-clause | collectStmtBinders (LastStmt {}) = [] | 45 | collectStmtBinders (LastStmt {}) = [] | 45 | collectStmtBinders (LastStmt {}) = [] | 45 | false | false | 0 | 6 | 12 | 19 | 9 | 10 | null | null |
AndreasPK/stack | src/Stack/Types/Docker.hs | bsd-3-clause | -- | Command-line option for @--internal-re-exec-version@.
reExecArgName :: String
reExecArgName = "internal-re-exec-version" | 125 | reExecArgName :: String
reExecArgName = "internal-re-exec-version" | 66 | reExecArgName = "internal-re-exec-version" | 42 | true | true | 0 | 4 | 11 | 12 | 7 | 5 | null | null |
khatchad/vimrc | sources_non_forked/vim-nightfly-guicolors/samples/haskell.hs | mit | ping :: WriteOnly w => w String -> String -> IO ()
ping pings msg = write' pings msg | 84 | ping :: WriteOnly w => w String -> String -> IO ()
ping pings msg = write' pings msg | 84 | ping pings msg = write' pings msg | 33 | false | true | 0 | 9 | 18 | 44 | 20 | 24 | null | null |
shlevy/ghc | compiler/basicTypes/Literal.hs | bsd-3-clause | -- | Creates a 'Literal' of type @Char#@
mkMachChar :: Char -> Literal
mkMachChar = MachChar | 92 | mkMachChar :: Char -> Literal
mkMachChar = MachChar | 51 | mkMachChar = MachChar | 21 | true | true | 0 | 7 | 15 | 23 | 10 | 13 | null | null |
davnils/while-lang-parser | Language/While/Parser.hs | bsd-3-clause | parens = P.parens whileLexer | 28 | parens = P.parens whileLexer | 28 | parens = P.parens whileLexer | 28 | false | false | 0 | 6 | 3 | 11 | 5 | 6 | null | null |
michalkonecny/mixed-types-num | src/Numeric/MixedTypes/AddSub.hs | bsd-3-clause | (-) :: (CanSub t1 t2) => t1 -> t2 -> SubType t1 t2
(-) = sub | 60 | (-) :: (CanSub t1 t2) => t1 -> t2 -> SubType t1 t2
(-) = sub | 60 | (-) = sub | 9 | false | true | 0 | 9 | 15 | 45 | 23 | 22 | null | null |
isomorphism/csound-expression | src/Csound/Air/Wave.hs | bsd-3-clause | urndBlosc a = rndPhs (ublosc' a) | 32 | urndBlosc a = rndPhs (ublosc' a) | 32 | urndBlosc a = rndPhs (ublosc' a) | 32 | false | false | 1 | 7 | 5 | 22 | 8 | 14 | null | null |
dysinger/amazonka | amazonka-ec2/gen/Network/AWS/EC2/Types.hs | mpl-2.0 | -- | The ID of the kernel.
lsKernelId :: Lens' LaunchSpecification (Maybe Text)
lsKernelId = lens _lsKernelId (\s a -> s { _lsKernelId = a }) | 141 | lsKernelId :: Lens' LaunchSpecification (Maybe Text)
lsKernelId = lens _lsKernelId (\s a -> s { _lsKernelId = a }) | 114 | lsKernelId = lens _lsKernelId (\s a -> s { _lsKernelId = a }) | 61 | true | true | 0 | 9 | 25 | 46 | 25 | 21 | null | null |
eligottlieb/Calumbda | src/Main.hs | mit | main :: IO ()
main = runInputT defaultSettings loop
where
loop :: InputT IO ()
loop = do
maybeLine <- getInputLine ">> "
case maybeLine of
Nothing -> return ()
Just ":quit" -> return ()
Just line -> do evalAndPrint line
loop | 294 | main :: IO ()
main = runInputT defaultSettings loop
where
loop :: InputT IO ()
loop = do
maybeLine <- getInputLine ">> "
case maybeLine of
Nothing -> return ()
Just ":quit" -> return ()
Just line -> do evalAndPrint line
loop | 294 | main = runInputT defaultSettings loop
where
loop :: InputT IO ()
loop = do
maybeLine <- getInputLine ">> "
case maybeLine of
Nothing -> return ()
Just ":quit" -> return ()
Just line -> do evalAndPrint line
loop | 280 | false | true | 0 | 12 | 111 | 113 | 47 | 66 | null | null |
ku-fpg/kansas-amber | tests/TransTests/TransRecurTest.hs | bsd-3-clause | blink :: Word8 -> Arduino ()
blink 0 = return () | 48 | blink :: Word8 -> Arduino ()
blink 0 = return () | 48 | blink 0 = return () | 19 | false | true | 0 | 8 | 10 | 33 | 14 | 19 | null | null |
rahulmutt/ghcvm | compiler/Eta/TypeCheck/TcType.hs | bsd-3-clause | pprUserTypeCtxt (DataTyCtxt tc) = ptext (sLit "the context of the data type declaration for") <+> quotes (ppr tc) | 115 | pprUserTypeCtxt (DataTyCtxt tc) = ptext (sLit "the context of the data type declaration for") <+> quotes (ppr tc) | 115 | pprUserTypeCtxt (DataTyCtxt tc) = ptext (sLit "the context of the data type declaration for") <+> quotes (ppr tc) | 115 | false | false | 0 | 8 | 19 | 37 | 17 | 20 | null | null |
lukexi/ghc | compiler/codeGen/StgCmmUtils.hs | bsd-3-clause | mk_switch tag_expr branches mb_deflt lo_tag hi_tag via_C
| use_switch -- Use a switch
= do let
find_branch :: ConTagZ -> Maybe BlockId
find_branch i = case (assocMaybe branches i) of
Just lbl -> Just lbl
Nothing -> mb_deflt
-- NB. we hav... | 4,176 | mk_switch tag_expr branches mb_deflt lo_tag hi_tag via_C
| use_switch -- Use a switch
= do let
find_branch :: ConTagZ -> Maybe BlockId
find_branch i = case (assocMaybe branches i) of
Just lbl -> Just lbl
Nothing -> mb_deflt
-- NB. we hav... | 4,176 | mk_switch tag_expr branches mb_deflt lo_tag hi_tag via_C
| use_switch -- Use a switch
= do let
find_branch :: ConTagZ -> Maybe BlockId
find_branch i = case (assocMaybe branches i) of
Just lbl -> Just lbl
Nothing -> mb_deflt
-- NB. we hav... | 4,176 | false | false | 5 | 15 | 1,435 | 693 | 351 | 342 | null | null |
haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F03.hs | bsd-3-clause | ptr_glColorMaterial :: FunPtr (GLenum -> GLenum -> IO ())
ptr_glColorMaterial = unsafePerformIO $ getCommand "glColorMaterial" | 126 | ptr_glColorMaterial :: FunPtr (GLenum -> GLenum -> IO ())
ptr_glColorMaterial = unsafePerformIO $ getCommand "glColorMaterial" | 126 | ptr_glColorMaterial = unsafePerformIO $ getCommand "glColorMaterial" | 68 | false | true | 0 | 10 | 14 | 37 | 18 | 19 | null | null |
brendanhay/gogol | gogol-genomics/gen/Network/Google/Genomics/Types/Product.hs | mpl-2.0 | -- | The value of the cipherText response from the \`encrypt\` method. This
-- field is intentionally unaudited.
sCipherText :: Lens' Secret (Maybe Text)
sCipherText
= lens _sCipherText (\ s a -> s{_sCipherText = a}) | 218 | sCipherText :: Lens' Secret (Maybe Text)
sCipherText
= lens _sCipherText (\ s a -> s{_sCipherText = a}) | 105 | sCipherText
= lens _sCipherText (\ s a -> s{_sCipherText = a}) | 64 | true | true | 0 | 9 | 36 | 49 | 26 | 23 | null | null |
dysinger/amazonka | amazonka-cognito-sync/gen/Network/AWS/CognitoSync/RegisterDevice.hs | mpl-2.0 | -- | 'RegisterDeviceResponse' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'rdrDeviceId' @::@ 'Maybe' 'Text'
--
registerDeviceResponse :: RegisterDeviceResponse
registerDeviceResponse = RegisterDeviceResponse
{ _rdrDeviceId = Nothing
} | 281 | registerDeviceResponse :: RegisterDeviceResponse
registerDeviceResponse = RegisterDeviceResponse
{ _rdrDeviceId = Nothing
} | 131 | registerDeviceResponse = RegisterDeviceResponse
{ _rdrDeviceId = Nothing
} | 82 | true | true | 0 | 6 | 39 | 25 | 17 | 8 | null | null |
kimolas/causal-haskell | app/Adjacency.hs | bsd-3-clause | -- SVD approximation to a graph (uses k-element SVD of the adjacency
-- matrix). In reality we need the SVD of XY^T, but that will come later.
svdGraph :: Int -> Graph'' a -> Graph'' a
svdGraph k (Graph'' ns es) = Graph'' ns $ compress k es | 241 | svdGraph :: Int -> Graph'' a -> Graph'' a
svdGraph k (Graph'' ns es) = Graph'' ns $ compress k es | 97 | svdGraph k (Graph'' ns es) = Graph'' ns $ compress k es | 55 | true | true | 0 | 7 | 48 | 52 | 25 | 27 | null | null |
atsukotakahashi/wi | src/library/Yi/UI/Vty/Conversions.hs | gpl-2.0 | fromVtyKey (Vty.KBackTab ) = error "This should be handled in fromVtyEvent" | 76 | fromVtyKey (Vty.KBackTab ) = error "This should be handled in fromVtyEvent" | 76 | fromVtyKey (Vty.KBackTab ) = error "This should be handled in fromVtyEvent" | 76 | false | false | 0 | 6 | 11 | 18 | 8 | 10 | null | null |
siddhanathan/ghc | compiler/deSugar/Coverage.hs | bsd-3-clause | matchesOneOfMany :: [LMatch Id body] -> Bool
matchesOneOfMany lmatches = sum (map matchCount lmatches) > 1
where
matchCount (L _ (Match _ _pats _ty (GRHSs grhss _binds))) = length grhss | 195 | matchesOneOfMany :: [LMatch Id body] -> Bool
matchesOneOfMany lmatches = sum (map matchCount lmatches) > 1
where
matchCount (L _ (Match _ _pats _ty (GRHSs grhss _binds))) = length grhss | 195 | matchesOneOfMany lmatches = sum (map matchCount lmatches) > 1
where
matchCount (L _ (Match _ _pats _ty (GRHSs grhss _binds))) = length grhss | 150 | false | true | 0 | 11 | 39 | 82 | 40 | 42 | null | null |
silky/ImplicitCAD | Graphics/Implicit/Export/Render/HandlePolylines.hs | gpl-2.0 | cleanLoopsFromSegs :: [Polyline] -> [Polyline]
cleanLoopsFromSegs =
map reducePolyline
. joinSegs
. filter polylineNotNull | 134 | cleanLoopsFromSegs :: [Polyline] -> [Polyline]
cleanLoopsFromSegs =
map reducePolyline
. joinSegs
. filter polylineNotNull | 134 | cleanLoopsFromSegs =
map reducePolyline
. joinSegs
. filter polylineNotNull | 87 | false | true | 0 | 7 | 25 | 35 | 18 | 17 | null | null |
brendanhay/gogol | gogol-serviceuser/gen/Network/Google/ServiceUser/Types/Product.hs | mpl-2.0 | -- | The source syntax of the service.
aSyntax :: Lens' API (Maybe APISyntax)
aSyntax = lens _aSyntax (\ s a -> s{_aSyntax = a}) | 128 | aSyntax :: Lens' API (Maybe APISyntax)
aSyntax = lens _aSyntax (\ s a -> s{_aSyntax = a}) | 89 | aSyntax = lens _aSyntax (\ s a -> s{_aSyntax = a}) | 50 | true | true | 0 | 9 | 24 | 46 | 25 | 21 | null | null |
haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F05.hs | bsd-3-clause | -- glDeleteSemaphoresEXT -------------------------------------------------------
glDeleteSemaphoresEXT
:: MonadIO m
=> GLsizei -- ^ @n@.
-> Ptr GLuint -- ^ @semaphores@ pointing to @n@ elements of type @GLuint@.
-> m ()
glDeleteSemaphoresEXT v1 v2 = liftIO $ dyn200 ptr_glDeleteSemaphoresEXT v1 v2 | 306 | glDeleteSemaphoresEXT
:: MonadIO m
=> GLsizei -- ^ @n@.
-> Ptr GLuint -- ^ @semaphores@ pointing to @n@ elements of type @GLuint@.
-> m ()
glDeleteSemaphoresEXT v1 v2 = liftIO $ dyn200 ptr_glDeleteSemaphoresEXT v1 v2 | 224 | glDeleteSemaphoresEXT v1 v2 = liftIO $ dyn200 ptr_glDeleteSemaphoresEXT v1 v2 | 77 | true | true | 0 | 10 | 46 | 57 | 27 | 30 | null | null |
mdsteele/fallback | src/Fallback/State/Item.hs | gpl-3.0 | potionValue Eggs = CanSell 10 | 29 | potionValue Eggs = CanSell 10 | 29 | potionValue Eggs = CanSell 10 | 29 | false | false | 1 | 5 | 4 | 16 | 5 | 11 | null | null |
lodvaer/machines-network | src/Network/Machine.hs | bsd-3-clause | tcpClient :: (MonadResource m, MonadIO m)
=> So.SockAddr
-> ServerT m ByteString ByteString
tcpClient sa = construct $ do
(k, so) <- lift $
allocate (So.socket So.AF_INET So.Stream NB.defaultProtocol)
So.close
liftIO $ So.connect so sa
socket k so
-- | UDP. No d... | 716 | tcpClient :: (MonadResource m, MonadIO m)
=> So.SockAddr
-> ServerT m ByteString ByteString
tcpClient sa = construct $ do
(k, so) <- lift $
allocate (So.socket So.AF_INET So.Stream NB.defaultProtocol)
So.close
liftIO $ So.connect so sa
socket k so
-- | UDP. No d... | 716 | tcpClient sa = construct $ do
(k, so) <- lift $
allocate (So.socket So.AF_INET So.Stream NB.defaultProtocol)
So.close
liftIO $ So.connect so sa
socket k so
-- | UDP. No difference between server and client. Non-forking.
--
-- TODO: this is crap because a read will block forever, ma... | 604 | false | true | 2 | 13 | 171 | 124 | 62 | 62 | null | null |
mightymoose/liquidhaskell | benchmarks/containers-0.5.0.0/Data/Sequence.hs | bsd-3-clause | viewRTree (Deep s pr m (Four w x y z)) =
Just2 (Deep (s - size z) pr m (Three w x y)) z | 91 | viewRTree (Deep s pr m (Four w x y z)) =
Just2 (Deep (s - size z) pr m (Three w x y)) z | 91 | viewRTree (Deep s pr m (Four w x y z)) =
Just2 (Deep (s - size z) pr m (Three w x y)) z | 91 | false | false | 0 | 10 | 27 | 72 | 34 | 38 | null | null |
alexander-at-github/eta | compiler/ETA/Utils/GraphOps.hs | bsd-3-clause | -- | Set the color of a certain node
setColor
:: Uniquable k
=> k -> color
-> Graph k cls color -> Graph k cls color
setColor u color
= graphMapModify
$ adjustUFM_C
(\n -> n { nodeColor = Just color })
u | 276 | setColor
:: Uniquable k
=> k -> color
-> Graph k cls color -> Graph k cls color
setColor u color
= graphMapModify
$ adjustUFM_C
(\n -> n { nodeColor = Just color })
u | 238 | setColor u color
= graphMapModify
$ adjustUFM_C
(\n -> n { nodeColor = Just color })
u | 134 | true | true | 2 | 10 | 116 | 85 | 40 | 45 | null | null |
gnn/Hets | Proofs/DGFlattening.hs | gpl-2.0 | attachNewNodes ((hd, sg) : tl) n = (hd, n, sg) : attachNewNodes tl (n + 1) | 74 | attachNewNodes ((hd, sg) : tl) n = (hd, n, sg) : attachNewNodes tl (n + 1) | 74 | attachNewNodes ((hd, sg) : tl) n = (hd, n, sg) : attachNewNodes tl (n + 1) | 74 | false | false | 0 | 8 | 15 | 49 | 27 | 22 | null | null |
sherwoodwang/wxHaskell | wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs | lgpl-2.1 | wxSTC_LEX_FORTRAN :: Int
wxSTC_LEX_FORTRAN = 36 | 47 | wxSTC_LEX_FORTRAN :: Int
wxSTC_LEX_FORTRAN = 36 | 47 | wxSTC_LEX_FORTRAN = 36 | 22 | false | true | 0 | 6 | 5 | 18 | 7 | 11 | null | null |
karamellpelle/grid | designer/source/Game/LevelPuzzleMode/LevelPuzzleData/Fancy/SoundLevelPuzzle.hs | gpl-3.0 | unloadSoundLevelPuzzle :: SoundLevelPuzzle -> IO ()
unloadSoundLevelPuzzle snd = do
-- alStopSource?
delSrc $ soundLevelPuzzleNodeSrc snd
delSrc $ soundLevelPuzzleIterationSrc snd
delBuf $ soundLevelPuzzleIterationBeginPlayBuf snd
delBuf $ soundLevelPuzzleIterationCompleteBuf snd
----------------... | 412 | unloadSoundLevelPuzzle :: SoundLevelPuzzle -> IO ()
unloadSoundLevelPuzzle snd = do
-- alStopSource?
delSrc $ soundLevelPuzzleNodeSrc snd
delSrc $ soundLevelPuzzleIterationSrc snd
delBuf $ soundLevelPuzzleIterationBeginPlayBuf snd
delBuf $ soundLevelPuzzleIterationCompleteBuf snd
----------------... | 412 | unloadSoundLevelPuzzle snd = do
-- alStopSource?
delSrc $ soundLevelPuzzleNodeSrc snd
delSrc $ soundLevelPuzzleIterationSrc snd
delBuf $ soundLevelPuzzleIterationBeginPlayBuf snd
delBuf $ soundLevelPuzzleIterationCompleteBuf snd
--------------------------------------------------------------------... | 360 | false | true | 0 | 9 | 55 | 71 | 31 | 40 | null | null |
beni55/ghcjs | src/Gen2/Utils.hs | mit | jnull :: JExpr
jnull = ValExpr (JVar $ TxtI "null") | 51 | jnull :: JExpr
jnull = ValExpr (JVar $ TxtI "null") | 51 | jnull = ValExpr (JVar $ TxtI "null") | 36 | false | true | 0 | 8 | 9 | 24 | 12 | 12 | null | null |
tjakway/ghcjvm | compiler/typecheck/TcBinds.hs | bsd-3-clause | tcImpSpec :: (Name, Sig Name) -> TcM [TcSpecPrag]
tcImpSpec (name, prag)
= do { id <- tcLookupId name
; unless (isAnyInlinePragma (idInlinePragma id))
(addWarnTc NoReason (impSpecErr name))
; tcSpecPrag id prag } | 240 | tcImpSpec :: (Name, Sig Name) -> TcM [TcSpecPrag]
tcImpSpec (name, prag)
= do { id <- tcLookupId name
; unless (isAnyInlinePragma (idInlinePragma id))
(addWarnTc NoReason (impSpecErr name))
; tcSpecPrag id prag } | 240 | tcImpSpec (name, prag)
= do { id <- tcLookupId name
; unless (isAnyInlinePragma (idInlinePragma id))
(addWarnTc NoReason (impSpecErr name))
; tcSpecPrag id prag } | 190 | false | true | 0 | 11 | 59 | 95 | 48 | 47 | null | null |
ChrisCoffey/haskell_sandbox | hackerRank/interpreters/Interpreters/src/while.hs | mit | initialState :: PState
initialState = M.fromList [] | 51 | initialState :: PState
initialState = M.fromList [] | 51 | initialState = M.fromList [] | 28 | false | true | 0 | 6 | 6 | 18 | 9 | 9 | null | null |
Zigazou/containers | Data/Sequence.hs | bsd-3-clause | addDigits0 m1 (Three a b c) (Two d e) m2 =
appendTree2 m1 (node3 a b c) (node2 d e) m2 | 90 | addDigits0 m1 (Three a b c) (Two d e) m2 =
appendTree2 m1 (node3 a b c) (node2 d e) m2 | 90 | addDigits0 m1 (Three a b c) (Two d e) m2 =
appendTree2 m1 (node3 a b c) (node2 d e) m2 | 90 | false | false | 0 | 7 | 24 | 60 | 29 | 31 | null | null |
kumasento/accelerate | Data/Array/Accelerate/Debug.hs | bsd-3-clause | options :: IORef Flags
options = unsafePerformIO $ newIORef =<< initialise | 74 | options :: IORef Flags
options = unsafePerformIO $ newIORef =<< initialise | 74 | options = unsafePerformIO $ newIORef =<< initialise | 51 | false | true | 0 | 6 | 10 | 22 | 11 | 11 | null | null |
alexander-at-github/eta | compiler/ETA/Specialise/Rules.hs | bsd-3-clause | match renv subst e1 (Let bind e2)
| -- pprTrace "match:Let" (vcat [ppr bind, ppr $ okToFloat (rv_lcl renv) (bindFreeVars bind)]) $
okToFloat (rv_lcl renv) (bindFreeVars bind) -- See Note [Matching lets]
= match (renv { rv_fltR = flt_subst' })
(subst { rs_binds = rs_binds subst . Let bind'
... | 1,111 | match renv subst e1 (Let bind e2)
| -- pprTrace "match:Let" (vcat [ppr bind, ppr $ okToFloat (rv_lcl renv) (bindFreeVars bind)]) $
okToFloat (rv_lcl renv) (bindFreeVars bind) -- See Note [Matching lets]
= match (renv { rv_fltR = flt_subst' })
(subst { rs_binds = rs_binds subst . Let bind'
... | 1,111 | match renv subst e1 (Let bind e2)
| -- pprTrace "match:Let" (vcat [ppr bind, ppr $ okToFloat (rv_lcl renv) (bindFreeVars bind)]) $
okToFloat (rv_lcl renv) (bindFreeVars bind) -- See Note [Matching lets]
= match (renv { rv_fltR = flt_subst' })
(subst { rs_binds = rs_binds subst . Let bind'
... | 1,111 | false | false | 2 | 10 | 275 | 172 | 80 | 92 | null | null |
markborkum/json2rdf-hs | src/Data/DescriptorTree.hs | unlicense | toList' (UnionNode [x]) =
(x :) | 33 | toList' (UnionNode [x]) =
(x :) | 33 | toList' (UnionNode [x]) =
(x :) | 33 | false | false | 0 | 7 | 7 | 23 | 12 | 11 | null | null |
Concelo/concelo | src/Database/Concelo/VTrie.hs | bsd-3-clause | foldrKeys visit seed (VTrie _ m) = V.foldrPairs (visit . fst) seed m | 68 | foldrKeys visit seed (VTrie _ m) = V.foldrPairs (visit . fst) seed m | 68 | foldrKeys visit seed (VTrie _ m) = V.foldrPairs (visit . fst) seed m | 68 | false | false | 0 | 7 | 12 | 40 | 18 | 22 | null | null |
ezyang/rlimits | Control/Monad/RLimits.hs | bsd-3-clause | withGlobalStateTCB :: (GlobalStateTCB -> IO a) -> CM a
withGlobalStateTCB f = CM (\s -> withMVar (global s) f) | 110 | withGlobalStateTCB :: (GlobalStateTCB -> IO a) -> CM a
withGlobalStateTCB f = CM (\s -> withMVar (global s) f) | 110 | withGlobalStateTCB f = CM (\s -> withMVar (global s) f) | 55 | false | true | 0 | 10 | 18 | 53 | 26 | 27 | null | null |
urbanslug/ghc | compiler/basicTypes/Module.hs | bsd-3-clause | elemModuleSet = Map.member | 30 | elemModuleSet = Map.member | 30 | elemModuleSet = Map.member | 30 | false | false | 0 | 5 | 6 | 8 | 4 | 4 | null | null |
lubomir/dot-race | fay-shared/SharedTypes.hs | bsd-3-clause | serializeCommand (Chat i msg) = fromString "chat\t" <> tshowI i <> fromString "\t" <> msg | 90 | serializeCommand (Chat i msg) = fromString "chat\t" <> tshowI i <> fromString "\t" <> msg | 90 | serializeCommand (Chat i msg) = fromString "chat\t" <> tshowI i <> fromString "\t" <> msg | 90 | false | false | 0 | 8 | 15 | 39 | 17 | 22 | null | null |
phadej/stack | src/Stack/Setup/Installed.hs | bsd-3-clause | parseToolText :: Text -> Maybe Tool
parseToolText (parseCompilerVersion -> Just (cv@GhcjsVersion{})) = Just (ToolGhcjs cv) | 122 | parseToolText :: Text -> Maybe Tool
parseToolText (parseCompilerVersion -> Just (cv@GhcjsVersion{})) = Just (ToolGhcjs cv) | 122 | parseToolText (parseCompilerVersion -> Just (cv@GhcjsVersion{})) = Just (ToolGhcjs cv) | 86 | false | true | 0 | 11 | 14 | 50 | 25 | 25 | null | null |
ezyang/ghc | compiler/types/Coercion.hs | bsd-3-clause | isReflCo_maybe _ = Nothing | 36 | isReflCo_maybe _ = Nothing | 36 | isReflCo_maybe _ = Nothing | 36 | false | false | 0 | 5 | 13 | 9 | 4 | 5 | null | null |
mzero/plush | src/Plush/Parser/Tokens.hs | apache-2.0 | operator :: String -> a -> ShellParser a
operator [] _ = parserZero | 67 | operator :: String -> a -> ShellParser a
operator [] _ = parserZero | 67 | operator [] _ = parserZero | 26 | false | true | 0 | 7 | 12 | 29 | 14 | 15 | null | null |
JustusAdam/bitbucket-github-migrate | src/Migrate/Transfer.hs | bsd-3-clause | runTransfers :: String -> IO (Maybe TransactionError)
runTransfers dir = loop transfers
where
loop [] = return Nothing
loop (x:xs) = do
this <- runTransferWrapper dir x
maybe (loop xs) (return . return) this | 251 | runTransfers :: String -> IO (Maybe TransactionError)
runTransfers dir = loop transfers
where
loop [] = return Nothing
loop (x:xs) = do
this <- runTransferWrapper dir x
maybe (loop xs) (return . return) this | 251 | runTransfers dir = loop transfers
where
loop [] = return Nothing
loop (x:xs) = do
this <- runTransferWrapper dir x
maybe (loop xs) (return . return) this | 197 | false | true | 1 | 10 | 77 | 105 | 46 | 59 | null | null |
lynnard/cocos2d-hs | src/Graphics/UI/Cocos2d/Layer.hs | bsd-3-clause | layerGradient_getStartOpacity :: (LayerGradientValue arg'1) => arg'1 -> HoppyP.IO HoppyDW.Word8
layerGradient_getStartOpacity arg'1 =
withLayerGradientPtr arg'1 $ HoppyP.flip HoppyFHR.withCppPtr $ \arg'1' ->
(layerGradient_getStartOpacity' arg'1') | 251 | layerGradient_getStartOpacity :: (LayerGradientValue arg'1) => arg'1 -> HoppyP.IO HoppyDW.Word8
layerGradient_getStartOpacity arg'1 =
withLayerGradientPtr arg'1 $ HoppyP.flip HoppyFHR.withCppPtr $ \arg'1' ->
(layerGradient_getStartOpacity' arg'1') | 251 | layerGradient_getStartOpacity arg'1 =
withLayerGradientPtr arg'1 $ HoppyP.flip HoppyFHR.withCppPtr $ \arg'1' ->
(layerGradient_getStartOpacity' arg'1') | 155 | false | true | 0 | 8 | 25 | 63 | 31 | 32 | null | null |
abakst/liquidhaskell | tests/pos/OrdList.hs | bsd-3-clause | foldrOL k z (Snoc xs x) = foldrOL k (k x z) xs | 46 | foldrOL k z (Snoc xs x) = foldrOL k (k x z) xs | 46 | foldrOL k z (Snoc xs x) = foldrOL k (k x z) xs | 46 | false | false | 0 | 7 | 12 | 39 | 17 | 22 | null | null |
Solonarv/OctoTactics | OctoTactics/Util/Combinators.hs | mit | fpow :: Int -> (a -> a) -> (a -> a)
fpow 0 _ = id | 49 | fpow :: Int -> (a -> a) -> (a -> a)
fpow 0 _ = id | 49 | fpow 0 _ = id | 13 | false | true | 0 | 10 | 15 | 44 | 21 | 23 | null | null |
leshchevds/ganeti | src/Ganeti/Monitoring/Server.hs | bsd-2-clause | catFromName "node" = BT.Ok $ Just DCNode | 46 | catFromName "node" = BT.Ok $ Just DCNode | 46 | catFromName "node" = BT.Ok $ Just DCNode | 46 | false | false | 0 | 6 | 12 | 18 | 8 | 10 | null | null |
MateVM/harpy | Harpy/X86CodeGen.hs | gpl-2.0 | x86_sub_sse_reg_mem :: X86_SSE_PFX -> Word8 -> Word32 -> CodeGen e s ()
x86_sub_sse_reg_mem pfx dreg mem =
do emit_sse pfx
emit8 0x0f
emit8 0x5c
x86_mem_emit dreg mem | 191 | x86_sub_sse_reg_mem :: X86_SSE_PFX -> Word8 -> Word32 -> CodeGen e s ()
x86_sub_sse_reg_mem pfx dreg mem =
do emit_sse pfx
emit8 0x0f
emit8 0x5c
x86_mem_emit dreg mem | 191 | x86_sub_sse_reg_mem pfx dreg mem =
do emit_sse pfx
emit8 0x0f
emit8 0x5c
x86_mem_emit dreg mem | 119 | false | true | 0 | 9 | 51 | 65 | 28 | 37 | null | null |
olsner/ghc | compiler/types/TyCoRep.hs | bsd-3-clause | pprTvBndr :: TyVarBinder -> SDoc
pprTvBndr = pprTyVar . binderVar | 65 | pprTvBndr :: TyVarBinder -> SDoc
pprTvBndr = pprTyVar . binderVar | 65 | pprTvBndr = pprTyVar . binderVar | 32 | false | true | 0 | 5 | 9 | 19 | 10 | 9 | null | null |
Chattered/guis | Backend/SDLPlay.hs | mit | waitTill :: MonadIO m => Double -> m ()
waitTill x = unless (x <= 0) (liftIO . threadDelay . round $ x * million) | 113 | waitTill :: MonadIO m => Double -> m ()
waitTill x = unless (x <= 0) (liftIO . threadDelay . round $ x * million) | 113 | waitTill x = unless (x <= 0) (liftIO . threadDelay . round $ x * million) | 73 | false | true | 0 | 10 | 24 | 61 | 30 | 31 | null | null |
vincenthz/cryptonite | Crypto/Data/Padding.hs | bsd-3-clause | pad (ZERO sz) bin = bin `B.append` paddingString
where
paddingString = B.replicate paddingSz 0
paddingSz
| len == 0 = sz
| m == 0 = 0
| otherwise = sz - m
m = len `mod` sz
len = B.length bin
-- | Try to remove some padding from a bytearray. | 288 | pad (ZERO sz) bin = bin `B.append` paddingString
where
paddingString = B.replicate paddingSz 0
paddingSz
| len == 0 = sz
| m == 0 = 0
| otherwise = sz - m
m = len `mod` sz
len = B.length bin
-- | Try to remove some padding from a bytearray. | 288 | pad (ZERO sz) bin = bin `B.append` paddingString
where
paddingString = B.replicate paddingSz 0
paddingSz
| len == 0 = sz
| m == 0 = 0
| otherwise = sz - m
m = len `mod` sz
len = B.length bin
-- | Try to remove some padding from a bytearray. | 288 | false | false | 3 | 8 | 99 | 116 | 55 | 61 | null | null |
Helium4Haskell/helium | lib/Prelude.hs | gpl-3.0 | absFloat :: Float -> Float
absFloat x = if x < 0.0 then (-. x) else x | 69 | absFloat :: Float -> Float
absFloat x = if x < 0.0 then (-. x) else x | 69 | absFloat x = if x < 0.0 then (-. x) else x | 42 | false | true | 0 | 7 | 16 | 40 | 20 | 20 | null | null |
k-bx/snap-server | src/Snap/Internal/Http/Server/Parser.hs | bsd-3-clause | findStdHeaderIndex "cookie" = cookieTag | 50 | findStdHeaderIndex "cookie" = cookieTag | 50 | findStdHeaderIndex "cookie" = cookieTag | 50 | false | false | 0 | 5 | 14 | 9 | 4 | 5 | null | null |
garetxe/cabal | Cabal/Distribution/Simple/Haddock.hs | bsd-3-clause | -- ------------------------------------------------------------------------------
-- hscolour support.
hscolour :: PackageDescription
-> LocalBuildInfo
-> [PPSuffixHandler]
-> HscolourFlags
-> IO ()
hscolour pkg_descr lbi suffixes flags = do
-- we preprocess even if hscolour won't... | 578 | hscolour :: PackageDescription
-> LocalBuildInfo
-> [PPSuffixHandler]
-> HscolourFlags
-> IO ()
hscolour pkg_descr lbi suffixes flags = do
-- we preprocess even if hscolour won't be found on the machine
-- will this upset someone?
initialBuildSteps distPref pkg_descr lbi verbos... | 474 | hscolour pkg_descr lbi suffixes flags = do
-- we preprocess even if hscolour won't be found on the machine
-- will this upset someone?
initialBuildSteps distPref pkg_descr lbi verbosity
hscolour' die pkg_descr lbi suffixes flags
where
verbosity = fromFlag (hscolourVerbosity flags)
distPref = fromFlag $ ... | 342 | true | true | 0 | 10 | 116 | 103 | 51 | 52 | null | null |
dreixel/instant-generics | src/Generics/Instant/TH.hs | bsd-3-clause | typeVariables :: Info -> [TyVarBndr]
typeVariables (TyConI (DataD _ _ tv _ _)) = tv | 86 | typeVariables :: Info -> [TyVarBndr]
typeVariables (TyConI (DataD _ _ tv _ _)) = tv | 86 | typeVariables (TyConI (DataD _ _ tv _ _)) = tv | 49 | false | true | 0 | 9 | 17 | 41 | 21 | 20 | null | null |
lifengsun/haskell-exercise | scheme/05/listparser.hs | gpl-3.0 | eval :: LispVal -> ThrowsError LispVal
eval val@(String _) = return val | 71 | eval :: LispVal -> ThrowsError LispVal
eval val@(String _) = return val | 71 | eval val@(String _) = return val | 32 | false | true | 0 | 8 | 11 | 33 | 16 | 17 | null | null |
florianpilz/autotool | client/src/Service/Interface.hs | gpl-2.0 | get_task_types :: Server -> IO [TaskTree]
get_task_types srv =
unTT <$> remote srv "get_task_types" | 103 | get_task_types :: Server -> IO [TaskTree]
get_task_types srv =
unTT <$> remote srv "get_task_types" | 103 | get_task_types srv =
unTT <$> remote srv "get_task_types" | 61 | false | true | 0 | 7 | 17 | 33 | 16 | 17 | null | null |
elieux/ghc | compiler/deSugar/DsGRHSs.hs | bsd-3-clause | matchGuards (LetStmt (L _ binds) : stmts) ctx rhs rhs_ty = do
match_result <- matchGuards stmts ctx rhs rhs_ty
return (adjustMatchResultDs (dsLocalBinds binds) match_result)
-- NB the dsLet occurs inside the match_result
-- Reason: dsLet takes the body expression as its argument
-- ... | 410 | matchGuards (LetStmt (L _ binds) : stmts) ctx rhs rhs_ty = do
match_result <- matchGuards stmts ctx rhs rhs_ty
return (adjustMatchResultDs (dsLocalBinds binds) match_result)
-- NB the dsLet occurs inside the match_result
-- Reason: dsLet takes the body expression as its argument
-- ... | 410 | matchGuards (LetStmt (L _ binds) : stmts) ctx rhs rhs_ty = do
match_result <- matchGuards stmts ctx rhs rhs_ty
return (adjustMatchResultDs (dsLocalBinds binds) match_result)
-- NB the dsLet occurs inside the match_result
-- Reason: dsLet takes the body expression as its argument
-- ... | 410 | false | false | 1 | 12 | 111 | 76 | 36 | 40 | null | null |
fpco/fay | examples/showExamples.hs | bsd-3-clause | readPair :: String -> Fay (String,Int)
readPair = ffi "JSON.parse(%1)" | 70 | readPair :: String -> Fay (String,Int)
readPair = ffi "JSON.parse(%1)" | 70 | readPair = ffi "JSON.parse(%1)" | 31 | false | true | 0 | 7 | 9 | 27 | 14 | 13 | null | null |
wilbowma/accelerate | Data/Array/Accelerate/CUDA/CodeGen.hs | bsd-3-clause | codeGenIntegralTex (TypeWord32 _) = [CTypeDef (internalIdent "TexWord32") internalNode] | 89 | codeGenIntegralTex (TypeWord32 _) = [CTypeDef (internalIdent "TexWord32") internalNode] | 89 | codeGenIntegralTex (TypeWord32 _) = [CTypeDef (internalIdent "TexWord32") internalNode] | 89 | false | false | 0 | 8 | 9 | 29 | 14 | 15 | null | null |
xnning/fcore | interpreter/Main.hs | bsd-2-clause | main :: IO ()
main = do
writeRuntimeToTemp
withRuntimeProcess "FileServer" LineBuffering
(\(inP,outP) ->
do liftIO printHelp
runInputT defaultSettings
(Loop.loop (inP, outP) (0, compileN, [Naive])
Map.empty Env.empty Hist.empty His... | 357 | main :: IO ()
main = do
writeRuntimeToTemp
withRuntimeProcess "FileServer" LineBuffering
(\(inP,outP) ->
do liftIO printHelp
runInputT defaultSettings
(Loop.loop (inP, outP) (0, compileN, [Naive])
Map.empty Env.empty Hist.empty Hist... | 356 | main = do
writeRuntimeToTemp
withRuntimeProcess "FileServer" LineBuffering
(\(inP,outP) ->
do liftIO printHelp
runInputT defaultSettings
(Loop.loop (inP, outP) (0, compileN, [Naive])
Map.empty Env.empty Hist.empty Hist.empty 0 False... | 342 | false | true | 1 | 17 | 122 | 117 | 58 | 59 | null | null |
sdiehl/ghc | compiler/basicTypes/Predicate.hs | bsd-3-clause | isEvVarType :: Type -> Bool
-- True of (a) predicates, of kind Constraint, such as (Eq a), and (a ~ b)
-- (b) coercion types, such as (t1 ~# t2) or (t1 ~R# t2)
-- See Note [Types for coercions, predicates, and evidence] in TyCoRep
-- See Note [Evidence for quantified constraints]
isEvVarType ty = isCoVarType ty... | 335 | isEvVarType :: Type -> Bool
isEvVarType ty = isCoVarType ty || isPredTy ty | 74 | isEvVarType ty = isCoVarType ty || isPredTy ty | 46 | true | true | 0 | 7 | 67 | 37 | 18 | 19 | null | null |
autocorr/lyah | chap6.hs | mit | --sum' xs = foldl (\acc x -> acc + x) 0 xs
elem' :: (Eq a) => a -> [a] -> Bool
elem' y ys = foldl (\acc x -> if x == y then True else acc) False ys | 148 | elem' :: (Eq a) => a -> [a] -> Bool
elem' y ys = foldl (\acc x -> if x == y then True else acc) False ys | 104 | elem' y ys = foldl (\acc x -> if x == y then True else acc) False ys | 68 | true | true | 0 | 9 | 40 | 72 | 37 | 35 | null | null |
BurntSushi/150fp-practice | QC/HeapProps.hs | unlicense | tests :: [(String, Property)]
tests = [ ("peek (insert empty x) == x", property prop_single)
, ("peek (heapify xs) == minimum xs", property prop_heapify)
, ( "peek (delete (heapify xs)) == head (tail (sort xs))"
, property prop_delete
)
, ( "peek (foldl merge empty heaps) == ... | 472 | tests :: [(String, Property)]
tests = [ ("peek (insert empty x) == x", property prop_single)
, ("peek (heapify xs) == minimum xs", property prop_heapify)
, ( "peek (delete (heapify xs)) == head (tail (sort xs))"
, property prop_delete
)
, ( "peek (foldl merge empty heaps) == ... | 472 | tests = [ ("peek (insert empty x) == x", property prop_single)
, ("peek (heapify xs) == minimum xs", property prop_heapify)
, ( "peek (delete (heapify xs)) == head (tail (sort xs))"
, property prop_delete
)
, ( "peek (foldl merge empty heaps) == minimum (map peek heaps)"
... | 442 | false | true | 0 | 8 | 150 | 87 | 48 | 39 | null | null |
brendanhay/gogol | gogol-slides/gen/Network/Google/Slides/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'UpdateTableColumnPropertiesRequest' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'utcprObjectId'
--
-- * 'utcprTableColumnProperties'
--
-- * 'utcprFields'
--
-- * 'utcprColumnIndices'
updateTableColumnPrope... | 595 | updateTableColumnPropertiesRequest
:: UpdateTableColumnPropertiesRequest
updateTableColumnPropertiesRequest =
UpdateTableColumnPropertiesRequest'
{ _utcprObjectId = Nothing
, _utcprTableColumnProperties = Nothing
, _utcprFields = Nothing
, _utcprColumnIndices = Nothing
} | 297 | updateTableColumnPropertiesRequest =
UpdateTableColumnPropertiesRequest'
{ _utcprObjectId = Nothing
, _utcprTableColumnProperties = Nothing
, _utcprFields = Nothing
, _utcprColumnIndices = Nothing
} | 220 | true | true | 0 | 6 | 94 | 48 | 34 | 14 | null | null |
liuyang1/euler | 010.hs | mit | -- slow, but work
-- sieve solution, check http://github.com/liuyang1/test/lang/haskell codebase
isPrime x = all (\i -> x `mod` i /= 0) $ takeWhile (\i -> i * i <= x) (2:[3,5..(x `div` 2)]) | 189 | isPrime x = all (\i -> x `mod` i /= 0) $ takeWhile (\i -> i * i <= x) (2:[3,5..(x `div` 2)]) | 92 | isPrime x = all (\i -> x `mod` i /= 0) $ takeWhile (\i -> i * i <= x) (2:[3,5..(x `div` 2)]) | 92 | true | false | 1 | 11 | 32 | 84 | 46 | 38 | null | null |
Chatanga/codingame-hs | data/Expected.hs | mit | beta (!x, !y) = putStrLn $ "beta" ++ show x ++ show y | 53 | beta (!x, !y) = putStrLn $ "beta" ++ show x ++ show y | 53 | beta (!x, !y) = putStrLn $ "beta" ++ show x ++ show y | 53 | false | false | 2 | 7 | 12 | 37 | 16 | 21 | null | null |
atsukotakahashi/wi | src/library/Yi/Keymap/Vim/Ex/Commands/Quit.hs | gpl-2.0 | action False False True = quitAllE | 35 | action False False True = quitAllE | 35 | action False False True = quitAllE | 35 | false | false | 0 | 4 | 6 | 16 | 6 | 10 | null | null |
antalsz/hs-to-coq | structural-isomorphism-plugin/src/StructuralIsomorphism/Generate.hs | mit | structurallyIsomorphic :: Name -> Name -> DecsQ
structurallyIsomorphic = (spliceIsomorphizing .) . ensureIsomorphic | 115 | structurallyIsomorphic :: Name -> Name -> DecsQ
structurallyIsomorphic = (spliceIsomorphizing .) . ensureIsomorphic | 115 | structurallyIsomorphic = (spliceIsomorphizing .) . ensureIsomorphic | 67 | false | true | 0 | 6 | 12 | 27 | 15 | 12 | null | null |
jmaessen/Data.FastSequence | test/FastSequenceTest.hs | bsd-3-clause | prop_reverseFromList_toList :: [Int] -> Bool
prop_reverseFromList_toList xs =
toList (check $ reverseFromList xs) == P.reverse xs | 131 | prop_reverseFromList_toList :: [Int] -> Bool
prop_reverseFromList_toList xs =
toList (check $ reverseFromList xs) == P.reverse xs | 131 | prop_reverseFromList_toList xs =
toList (check $ reverseFromList xs) == P.reverse xs | 86 | false | true | 0 | 9 | 17 | 43 | 21 | 22 | null | null |
merijn/parsers | src/Text/Parser/Char.hs | bsd-3-clause | -- | Parses a letter or digit. Returns the parsed character.
alphaNum :: CharParsing m => m Char
alphaNum = satisfy isAlphaNum <?> "letter or digit" | 148 | alphaNum :: CharParsing m => m Char
alphaNum = satisfy isAlphaNum <?> "letter or digit" | 87 | alphaNum = satisfy isAlphaNum <?> "letter or digit" | 51 | true | true | 0 | 6 | 25 | 29 | 14 | 15 | null | null |
dreixel/gdiff-ig | src/Generics/Instant/GDiff.hs | bsd-3-clause | gpatch (ES 0# []) _ = Nothing | 37 | gpatch (ES 0# []) _ = Nothing | 37 | gpatch (ES 0# []) _ = Nothing | 37 | false | false | 0 | 7 | 14 | 23 | 10 | 13 | null | null |
hsyl20/HViperVM | lib/ViperVM/Backends/OpenCL/CommandQueue.hs | lgpl-3.0 | clEnqueueReadImage :: Integral a
=> OpenCLLibrary
-> CLCommandQueue -- ^ Refers to the command-queue in
-- which the read command will be
-- queued. command_queue and image must
... | 3,251 | clEnqueueReadImage :: Integral a
=> OpenCLLibrary
-> CLCommandQueue -- ^ Refers to the command-queue in
-- which the read command will be
-- queued. command_queue and image must
... | 3,251 | clEnqueueReadImage lib cq mem check (orix,oriy,oriz) (regx,regy,regz) rp sp dat xs =
withArray (fmap fromIntegral [orix,oriy,oriz]) $ \pori ->
withArray (fmap fromIntegral [regx,regy,regz]) $ \preg ->
clEnqueue (rawClEnqueueReadImage lib cq mem (fromBool check) pori preg (fromIntegral rp) (fromIntegral sp) dat... | 324 | false | true | 0 | 16 | 1,581 | 267 | 160 | 107 | null | null |
ocramz/slepc-hs | src/Numerical/SLEPc/TestMain.hs | lgpl-3.0 | t2' = withMatCreateSeqAIJConstNZPR cw 3 3 3 $ \pm -> do
let m = petscMatrixMat pm
matNewNZallocErrorOff m
matSetup m
-- matSetValueSafe pm 1 1 pi InsertValues
-- matSetValueArraySafe pm [0,1,2] [0,1,2] (replicate 3 pi) InsertValues
matSetValueArraySafe pm [0,0,0,1,1,1,2,2,2] [0,1,2,0,1,2,0,1,2] (replicate 9... | 402 | t2' = withMatCreateSeqAIJConstNZPR cw 3 3 3 $ \pm -> do
let m = petscMatrixMat pm
matNewNZallocErrorOff m
matSetup m
-- matSetValueSafe pm 1 1 pi InsertValues
-- matSetValueArraySafe pm [0,1,2] [0,1,2] (replicate 3 pi) InsertValues
matSetValueArraySafe pm [0,0,0,1,1,1,2,2,2] [0,1,2,0,1,2,0,1,2] (replicate 9... | 402 | t2' = withMatCreateSeqAIJConstNZPR cw 3 3 3 $ \pm -> do
let m = petscMatrixMat pm
matNewNZallocErrorOff m
matSetup m
-- matSetValueSafe pm 1 1 pi InsertValues
-- matSetValueArraySafe pm [0,1,2] [0,1,2] (replicate 3 pi) InsertValues
matSetValueArraySafe pm [0,0,0,1,1,1,2,2,2] [0,1,2,0,1,2,0,1,2] (replicate 9... | 402 | false | false | 2 | 12 | 77 | 153 | 77 | 76 | null | null |
kisp/ksquant2 | DurCalcTest.hs | gpl-3.0 | prop_dotFactor_lt_two :: Integer -> Property
prop_dotFactor_lt_two n = n >= 0 ==> DC.dotFactor n < 2 | 100 | prop_dotFactor_lt_two :: Integer -> Property
prop_dotFactor_lt_two n = n >= 0 ==> DC.dotFactor n < 2 | 100 | prop_dotFactor_lt_two n = n >= 0 ==> DC.dotFactor n < 2 | 55 | false | true | 0 | 8 | 15 | 35 | 17 | 18 | null | null |
brendanhay/gogol | gogol-dlp/gen/Network/Google/Resource/DLP/Projects/Locations/DlpJobs/Create.hs | mpl-2.0 | -- | Multipart request metadata.
proPayload :: Lens' ProjectsLocationsDlpJobsCreate GooglePrivacyDlpV2CreateDlpJobRequest
proPayload
= lens _proPayload (\ s a -> s{_proPayload = a}) | 183 | proPayload :: Lens' ProjectsLocationsDlpJobsCreate GooglePrivacyDlpV2CreateDlpJobRequest
proPayload
= lens _proPayload (\ s a -> s{_proPayload = a}) | 150 | proPayload
= lens _proPayload (\ s a -> s{_proPayload = a}) | 61 | true | true | 1 | 9 | 22 | 46 | 22 | 24 | null | null |
J2RGEZ/haskell-do | src/common/HaskellDo/Toolbar/State.hs | apache-2.0 | update ToggleError state = do
localIO toggleError
return state | 70 | update ToggleError state = do
localIO toggleError
return state | 70 | update ToggleError state = do
localIO toggleError
return state | 70 | false | false | 0 | 7 | 16 | 23 | 9 | 14 | null | null |
phdenzel/dotfiles | .config/xmonad/lib/Colors/SolarizedDark.hs | mit | colorScheme = "solarized-dark" | 30 | colorScheme = "solarized-dark" | 30 | colorScheme = "solarized-dark" | 30 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
truls/language-vhdl-quote | src/Language/VHDL/Lexer.hs | mpl-2.0 | strSegment' :: Char -> Parser Text
strSegment' delim =
T.pack <$>
lexeme
(between
(char delim)
(char delim <?> "end of string")
(many (strChar delim)) <?>
"literal string") | 206 | strSegment' :: Char -> Parser Text
strSegment' delim =
T.pack <$>
lexeme
(between
(char delim)
(char delim <?> "end of string")
(many (strChar delim)) <?>
"literal string") | 206 | strSegment' delim =
T.pack <$>
lexeme
(between
(char delim)
(char delim <?> "end of string")
(many (strChar delim)) <?>
"literal string") | 171 | false | true | 2 | 12 | 60 | 77 | 36 | 41 | null | null |
brendanhay/gogol | gogol-cloudidentity/gen/Network/Google/CloudIdentity/Types/Product.hs | mpl-2.0 | -- | Output only. Mobile or network operator of device, if available.
gacdvdNetworkOperator :: Lens' GoogleAppsCloudidentityDevicesV1Device (Maybe Text)
gacdvdNetworkOperator
= lens _gacdvdNetworkOperator
(\ s a -> s{_gacdvdNetworkOperator = a}) | 253 | gacdvdNetworkOperator :: Lens' GoogleAppsCloudidentityDevicesV1Device (Maybe Text)
gacdvdNetworkOperator
= lens _gacdvdNetworkOperator
(\ s a -> s{_gacdvdNetworkOperator = a}) | 183 | gacdvdNetworkOperator
= lens _gacdvdNetworkOperator
(\ s a -> s{_gacdvdNetworkOperator = a}) | 100 | true | true | 0 | 8 | 36 | 49 | 25 | 24 | null | null |
tidalcycles/Tidal | src/Sound/Tidal/Stream.hs | gpl-3.0 | streamHush :: Stream -> IO ()
streamHush s = modifyMVar_ (sPMapMV s) $ return . fmap (\x -> x {pattern = silence, history = silence:history x}) | 143 | streamHush :: Stream -> IO ()
streamHush s = modifyMVar_ (sPMapMV s) $ return . fmap (\x -> x {pattern = silence, history = silence:history x}) | 143 | streamHush s = modifyMVar_ (sPMapMV s) $ return . fmap (\x -> x {pattern = silence, history = silence:history x}) | 113 | false | true | 0 | 12 | 25 | 76 | 38 | 38 | null | null |
ucla-pls/wiretap-tools | src/Wiretap/Data/MiniParser.hs | gpl-3.0 | parseError :: MiniParser a
parseError = MiniParser $ \_ -> Nothing | 66 | parseError :: MiniParser a
parseError = MiniParser $ \_ -> Nothing | 66 | parseError = MiniParser $ \_ -> Nothing | 39 | false | true | 0 | 6 | 10 | 23 | 12 | 11 | null | null |
arianvp/binary-serialise-cbor | bench/Macro/CBOR.hs | bsd-3-clause | decodeCtrBody1 2 f = do x1 <- decode
return $! f x1 | 75 | decodeCtrBody1 2 f = do x1 <- decode
return $! f x1 | 75 | decodeCtrBody1 2 f = do x1 <- decode
return $! f x1 | 75 | false | false | 0 | 8 | 35 | 28 | 12 | 16 | null | null |
SeanTater/albemarle | src/NLP/Albemarle/Sparse.hs | bsd-3-clause | mult left@(ColMatrix _) right@(RowMatrix _) = mult (shift left) (shift right) | 77 | mult left@(ColMatrix _) right@(RowMatrix _) = mult (shift left) (shift right) | 77 | mult left@(ColMatrix _) right@(RowMatrix _) = mult (shift left) (shift right) | 77 | false | false | 0 | 8 | 10 | 46 | 23 | 23 | null | null |
MichaeGon/java | ClassFileParser.hs | mit | astackmaptable :: Parser AttributeInfo
astackmaptable = u4 >> index >>= asmt
where
asmt n = StackMapTable <$> count n astackmapframe | 144 | astackmaptable :: Parser AttributeInfo
astackmaptable = u4 >> index >>= asmt
where
asmt n = StackMapTable <$> count n astackmapframe | 144 | astackmaptable = u4 >> index >>= asmt
where
asmt n = StackMapTable <$> count n astackmapframe | 105 | false | true | 0 | 6 | 31 | 42 | 20 | 22 | null | null |
osa1/sequent-core | src/Language/SequentCore/OccurAnal.hs | bsd-3-clause | rhsCtxt :: OccEnv -> OccEnv
rhsCtxt env = env { occ_encl = OccRhs, occ_one_shots = [] } | 87 | rhsCtxt :: OccEnv -> OccEnv
rhsCtxt env = env { occ_encl = OccRhs, occ_one_shots = [] } | 87 | rhsCtxt env = env { occ_encl = OccRhs, occ_one_shots = [] } | 59 | false | true | 0 | 7 | 16 | 34 | 19 | 15 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.