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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alexbiehl/hoop | hadoop-protos/src/Hadoop/Protos/ClientNamenodeProtocolProtos/ClientNamenodeProtocol.hs | mit | getEditsFromTxid :: GetEditsFromTxid
getEditsFromTxid = P'.Method | 65 | getEditsFromTxid :: GetEditsFromTxid
getEditsFromTxid = P'.Method | 65 | getEditsFromTxid = P'.Method | 28 | false | true | 0 | 5 | 5 | 13 | 7 | 6 | null | null |
parapluu/encore | src/ir/AST/PrettyPrinter.hs | bsd-3-clause | ppExpr Optional {optTag = QuestionBang MessageSend {target, name, args, typeArguments}} =
maybeParens target <> "?!" <> ppName name <>
withTypeArguments typeArguments <>
parens (commaSep (map ppExpr args)) | 221 | ppExpr Optional {optTag = QuestionBang MessageSend {target, name, args, typeArguments}} =
maybeParens target <> "?!" <> ppName name <>
withTypeArguments typeArguments <>
parens (commaSep (map ppExpr args)) | 221 | ppExpr Optional {optTag = QuestionBang MessageSend {target, name, args, typeArguments}} =
maybeParens target <> "?!" <> ppName name <>
withTypeArguments typeArguments <>
parens (commaSep (map ppExpr args)) | 221 | false | false | 1 | 9 | 42 | 83 | 39 | 44 | null | null |
snoyberg/ghc | compiler/cmm/CmmType.hs | bsd-3-clause | isWord32, isWord64, isFloat32, isFloat64 :: CmmType -> Bool
-- isWord64 is true of 64-bit non-floats (both gc-ptrs and otherwise)
-- isFloat32 and 64 are obvious
isWord64 (CmmType BitsCat W64) = True | 201 | isWord32, isWord64, isFloat32, isFloat64 :: CmmType -> Bool
isWord64 (CmmType BitsCat W64) = True | 98 | isWord64 (CmmType BitsCat W64) = True | 38 | true | true | 0 | 7 | 32 | 34 | 21 | 13 | null | null |
AaronFriel/eff-experiments | bench/Strict/Iota.hs | bsd-3-clause | mainS_Eff n = run $ runState (benchS_Eff n) (0::Integer) | 56 | mainS_Eff n = run $ runState (benchS_Eff n) (0::Integer) | 56 | mainS_Eff n = run $ runState (benchS_Eff n) (0::Integer) | 56 | false | false | 0 | 8 | 8 | 30 | 15 | 15 | null | null |
capital-match/raptr | test/Network/Raptr/StorageSpec.hs | bsd-3-clause | prop_get_0_is_empty :: Payload -> Property
prop_get_0_is_empty n = [ GetEntry 0 ] ==~ [ Observe Nothing ] | 106 | prop_get_0_is_empty :: Payload -> Property
prop_get_0_is_empty n = [ GetEntry 0 ] ==~ [ Observe Nothing ] | 106 | prop_get_0_is_empty n = [ GetEntry 0 ] ==~ [ Observe Nothing ] | 62 | false | true | 0 | 7 | 17 | 34 | 17 | 17 | null | null |
comatose/redo | src/Development/Redo/Config.hs | bsd-3-clause | printError :: String -> IO ()
printError = printWithColor [SetColor Foreground Vivid Red] | 89 | printError :: String -> IO ()
printError = printWithColor [SetColor Foreground Vivid Red] | 89 | printError = printWithColor [SetColor Foreground Vivid Red] | 59 | false | true | 0 | 7 | 12 | 33 | 16 | 17 | null | null |
josefs/autosar | oldARSim/ARXML.hs | bsd-3-clause | toServiceSwComponentType e = ServiceSwComponentType {
serviceSwComponentType_atomicSwComponentType = toAtomicSwComponentType e
} | 132 | toServiceSwComponentType e = ServiceSwComponentType {
serviceSwComponentType_atomicSwComponentType = toAtomicSwComponentType e
} | 132 | toServiceSwComponentType e = ServiceSwComponentType {
serviceSwComponentType_atomicSwComponentType = toAtomicSwComponentType e
} | 132 | false | false | 0 | 7 | 13 | 20 | 10 | 10 | null | null |
lukexi/bullet-mini | test/Memory.hs | bsd-3-clause | {-
Intended to be run with profiling to test if memory is successfully freed
when adding and deleting cubes.
-}
main :: IO ()
main = do
dynamicsWorld <- createDynamicsWorld mempty
_ <- addGroundPlane dynamicsWorld (CollisionObjectID 0) 0
boxShape <- createBoxShape (1 :: V3 GLfloat)
cu... | 1,266 | main :: IO ()
main = do
dynamicsWorld <- createDynamicsWorld mempty
_ <- addGroundPlane dynamicsWorld (CollisionObjectID 0) 0
boxShape <- createBoxShape (1 :: V3 GLfloat)
cubeBodies <- forM [1..1000] $ \i ->
addRigidBody dynamicsWorld (CollisionObjectID i) boxShape mempty
{... | 1,149 | main = do
dynamicsWorld <- createDynamicsWorld mempty
_ <- addGroundPlane dynamicsWorld (CollisionObjectID 0) 0
boxShape <- createBoxShape (1 :: V3 GLfloat)
cubeBodies <- forM [1..1000] $ \i ->
addRigidBody dynamicsWorld (CollisionObjectID i) boxShape mempty
{ rbPosition = ... | 1,135 | true | true | 0 | 15 | 325 | 414 | 197 | 217 | null | null |
SiestaMadokaist/writescheme | src/Ramadoka/Parser/Number.hs | bsd-3-clause | (|/|) :: Number -> Number -> Number
Rational n d |/| Float f = Float $ numerator / denominator
where fN = fromIntegral n
fD = fromIntegral d
numerator = fN / fD
denominator = f | 223 | (|/|) :: Number -> Number -> Number
Rational n d |/| Float f = Float $ numerator / denominator
where fN = fromIntegral n
fD = fromIntegral d
numerator = fN / fD
denominator = f | 221 | Rational n d |/| Float f = Float $ numerator / denominator
where fN = fromIntegral n
fD = fromIntegral d
numerator = fN / fD
denominator = f | 185 | false | true | 6 | 9 | 82 | 93 | 39 | 54 | null | null |
jstolarek/haddock | haddock-api/src/Haddock/Utils.hs | bsd-2-clause | markup m (DocHeader (Header l t)) = markupHeader m (Header l (markup m t)) | 77 | markup m (DocHeader (Header l t)) = markupHeader m (Header l (markup m t)) | 77 | markup m (DocHeader (Header l t)) = markupHeader m (Header l (markup m t)) | 77 | false | false | 0 | 9 | 16 | 46 | 22 | 24 | null | null |
nukisman/elm-format-short | src/Flags.hs | bsd-3-clause | input :: Opt.Parser FilePath
input =
Opt.strArgument $ Opt.metavar "INPUT" | 78 | input :: Opt.Parser FilePath
input =
Opt.strArgument $ Opt.metavar "INPUT" | 78 | input =
Opt.strArgument $ Opt.metavar "INPUT" | 49 | false | true | 0 | 7 | 13 | 27 | 13 | 14 | null | null |
urbanslug/ghc | testsuite/tests/typecheck/should_run/IPLocation.hs | bsd-3-clause | f6 n = f6 (n-1) | 15 | f6 n = f6 (n-1) | 15 | f6 n = f6 (n-1) | 15 | false | false | 1 | 7 | 4 | 23 | 9 | 14 | null | null |
Jonplussed/midi-free | src/Sound/MIDI/Values/Note.hs | gpl-3.0 | f4 = Note 53 | 18 | f4 = Note 53 | 18 | f4 = Note 53 | 18 | false | false | 0 | 5 | 9 | 9 | 4 | 5 | null | null |
lambdas/cowsaycurry | src/Balloon.hs | apache-2.0 | wrapAndPad :: Int -> a -> [a] -> [[a]]
wrapAndPad width filler input = pad width filler <$> wrap width input | 108 | wrapAndPad :: Int -> a -> [a] -> [[a]]
wrapAndPad width filler input = pad width filler <$> wrap width input | 108 | wrapAndPad width filler input = pad width filler <$> wrap width input | 69 | false | true | 0 | 9 | 20 | 53 | 27 | 26 | null | null |
spechub/Hets | Common/Id.hs | gpl-2.0 | appRange :: Range -> Range -> Range
appRange (Range l1) (Range l2) = Range $ l1 ++ l2 | 85 | appRange :: Range -> Range -> Range
appRange (Range l1) (Range l2) = Range $ l1 ++ l2 | 85 | appRange (Range l1) (Range l2) = Range $ l1 ++ l2 | 49 | false | true | 0 | 7 | 17 | 44 | 22 | 22 | null | null |
unisonweb/platform | parser-typechecker/src/Unison/Runtime/Pattern.hs | mit | decomposeSeqP _ S (P.SequenceOp _ l Snoc r) = Cover [l,r] | 57 | decomposeSeqP _ S (P.SequenceOp _ l Snoc r) = Cover [l,r] | 57 | decomposeSeqP _ S (P.SequenceOp _ l Snoc r) = Cover [l,r] | 57 | false | false | 0 | 8 | 10 | 36 | 18 | 18 | null | null |
fffej/haskellprojects | fluidDynamics/Fluid.hs | bsd-2-clause | setBnd :: Int -> Grid -> Grid
setBnd b g@(Grid n x) = Grid n (z V.// corners)
where
x'@(Grid _ z) = Grid n (x V.// concat [ [(ix n (0,i), mx * get g (1,i))
,(ix n (n+1,i), mx * get g (n,i))
,(ix n (i,0), my * get... | 817 | setBnd :: Int -> Grid -> Grid
setBnd b g@(Grid n x) = Grid n (z V.// corners)
where
x'@(Grid _ z) = Grid n (x V.// concat [ [(ix n (0,i), mx * get g (1,i))
,(ix n (n+1,i), mx * get g (n,i))
,(ix n (i,0), my * get... | 817 | setBnd b g@(Grid n x) = Grid n (z V.// corners)
where
x'@(Grid _ z) = Grid n (x V.// concat [ [(ix n (0,i), mx * get g (1,i))
,(ix n (n+1,i), mx * get g (n,i))
,(ix n (i,0), my * get g (i,1))
... | 787 | false | true | 9 | 18 | 384 | 549 | 299 | 250 | null | null |
sdiehl/ghc | compiler/prelude/THNames.hs | bsd-3-clause | recGadtCName = libFun (fsLit "recGadtC") recGadtCIdKey | 54 | recGadtCName = libFun (fsLit "recGadtC") recGadtCIdKey | 54 | recGadtCName = libFun (fsLit "recGadtC") recGadtCIdKey | 54 | false | false | 0 | 7 | 5 | 17 | 8 | 9 | null | null |
pjones/xmonad-test | vendor/xmonad-contrib/XMonad/Layout/Groups/Examples.hs | bsd-2-clause | -- | Decrease the number of master groups by one
decreaseNMasterGroups :: X ()
decreaseNMasterGroups = sendMessage $ G.ToEnclosing $ SomeMessage $ IncMasterN (-1) | 162 | decreaseNMasterGroups :: X ()
decreaseNMasterGroups = sendMessage $ G.ToEnclosing $ SomeMessage $ IncMasterN (-1) | 113 | decreaseNMasterGroups = sendMessage $ G.ToEnclosing $ SomeMessage $ IncMasterN (-1) | 83 | true | true | 0 | 8 | 23 | 39 | 20 | 19 | null | null |
fredokun/piccolo | src/Core/Compilation.hs | gpl-3.0 | compileAction act@ALet { actBindIndex = x } = do
expr <- compileExpr (actVal act)
return $ comment act #
expr #
setEnv(pt, x, getRegister pt) #
(if isAManagedType $ actTyp act
then registerEnvValue(pt, x)
else Nop
) | 291 | compileAction act@ALet { actBindIndex = x } = do
expr <- compileExpr (actVal act)
return $ comment act #
expr #
setEnv(pt, x, getRegister pt) #
(if isAManagedType $ actTyp act
then registerEnvValue(pt, x)
else Nop
) | 291 | compileAction act@ALet { actBindIndex = x } = do
expr <- compileExpr (actVal act)
return $ comment act #
expr #
setEnv(pt, x, getRegister pt) #
(if isAManagedType $ actTyp act
then registerEnvValue(pt, x)
else Nop
) | 291 | false | false | 1 | 13 | 112 | 106 | 51 | 55 | null | null |
wuxb45/eval | Eval/DServ.hs | bsd-3-clause | getBS :: Handle -> IO (BS.ByteString)
getBS hdl = do
line <- hGetLine hdl
bs <- BS.hGet hdl (read $ line :: Int)
return bs
-- }}}
-- put Object on System.IO.Handle {{{ | 173 | getBS :: Handle -> IO (BS.ByteString)
getBS hdl = do
line <- hGetLine hdl
bs <- BS.hGet hdl (read $ line :: Int)
return bs
-- }}}
-- put Object on System.IO.Handle {{{ | 173 | getBS hdl = do
line <- hGetLine hdl
bs <- BS.hGet hdl (read $ line :: Int)
return bs
-- }}}
-- put Object on System.IO.Handle {{{ | 135 | false | true | 0 | 11 | 38 | 73 | 34 | 39 | null | null |
v64/rubik | CubieCube.hs | mit | getB' :: (Enum a) => Int -> Int -> (Int -> Int -> Bool) -> [a] -> Int
getB' 0 b _ _ = b | 91 | getB' :: (Enum a) => Int -> Int -> (Int -> Int -> Bool) -> [a] -> Int
getB' 0 b _ _ = b | 91 | getB' 0 b _ _ = b | 21 | false | true | 0 | 12 | 28 | 65 | 32 | 33 | null | null |
inchingforward/elm-lang.org | src/backend/Router.hs | bsd-3-clause | try :: Snap ()
try =
serveFile (FT.file ["examples","editor"] "try" "html") | 77 | try :: Snap ()
try =
serveFile (FT.file ["examples","editor"] "try" "html") | 77 | try =
serveFile (FT.file ["examples","editor"] "try" "html") | 62 | false | true | 1 | 8 | 12 | 40 | 19 | 21 | null | null |
d0kt0r0/Tidal | src/Sound/Tidal/Params.hs | gpl-3.0 | -- | a pattern of numbers between -inf and inf, which controls how much multichannel output is fanned out (negative is backwards ordering)
panspan :: Pattern Double -> ControlPattern
panspan = pF "span" | 202 | panspan :: Pattern Double -> ControlPattern
panspan = pF "span" | 63 | panspan = pF "span" | 19 | true | true | 0 | 6 | 32 | 22 | 11 | 11 | null | null |
liamoc/agda-snippets | agda-snippets/src/Agda/Contrib/Snippets.hs | bsd-3-clause | pairPositions :: HighlightingInfo -> String -> [(Int, String, Aspects)]
pairPositions info contents =
map (\cs@((mi, (pos, _)) : _) -> (pos, map (snd . snd) cs, fromMaybe mempty mi)) .
groupBy ((==) `on` fst) .
map (\(pos, c) -> (IMap.lookup pos infoMap, (pos, c))) .
zip [1..] $
contents
where
... | 388 | pairPositions :: HighlightingInfo -> String -> [(Int, String, Aspects)]
pairPositions info contents =
map (\cs@((mi, (pos, _)) : _) -> (pos, map (snd . snd) cs, fromMaybe mempty mi)) .
groupBy ((==) `on` fst) .
map (\(pos, c) -> (IMap.lookup pos infoMap, (pos, c))) .
zip [1..] $
contents
where
... | 388 | pairPositions info contents =
map (\cs@((mi, (pos, _)) : _) -> (pos, map (snd . snd) cs, fromMaybe mempty mi)) .
groupBy ((==) `on` fst) .
map (\(pos, c) -> (IMap.lookup pos infoMap, (pos, c))) .
zip [1..] $
contents
where
infoMap = toMap (decompress info)
-- TODO make these more accurate | 316 | false | true | 4 | 12 | 87 | 196 | 105 | 91 | null | null |
amccausl/Swish | Swish/HaskellRDF/N3ParserTest.hs | lgpl-2.1 | exoticTest09 = parseTest "exoticTest09" exoticN3Graph_x9 x9 noError | 69 | exoticTest09 = parseTest "exoticTest09" exoticN3Graph_x9 x9 noError | 69 | exoticTest09 = parseTest "exoticTest09" exoticN3Graph_x9 x9 noError | 69 | false | false | 0 | 5 | 8 | 15 | 7 | 8 | null | null |
ksaveljev/hake-2 | src/Client/KeyConstants.hs | bsd-3-clause | kJoy1 = 203 :: Int | 26 | kJoy1 = 203 :: Int | 26 | kJoy1 = 203 :: Int | 26 | false | false | 0 | 4 | 12 | 9 | 5 | 4 | null | null |
dysinger/amazonka | amazonka-route53-domains/gen/Network/AWS/Route53Domains/RegisterDomain.hs | mpl-2.0 | -- | The name of a domain.
--
-- Type: String
--
-- Default: None
--
-- Constraints: The domain name can contain only the letters a through z, the
-- numbers 0 through 9, and hyphen (-). Internationalized Domain Names are not
-- supported.
--
-- Required: Yes
rdDomainName :: Lens' RegisterDomain Text
rdDomainName = len... | 369 | rdDomainName :: Lens' RegisterDomain Text
rdDomainName = lens _rdDomainName (\s a -> s { _rdDomainName = a }) | 109 | rdDomainName = lens _rdDomainName (\s a -> s { _rdDomainName = a }) | 67 | true | true | 1 | 9 | 66 | 53 | 32 | 21 | null | null |
brendanhay/gogol | gogol-adsense/gen/Network/Google/Resource/AdSense/Accounts/AdClients/List.hs | mpl-2.0 | -- | The maximum number of ad clients to include in the response, used for
-- paging. If unspecified, at most 10000 ad clients will be returned. The
-- maximum value is 10000; values above 10000 will be coerced to 10000.
aaclPageSize :: Lens' AccountsAdClientsList (Maybe Int32)
aaclPageSize
= lens _aaclPageSize (\ s ... | 370 | aaclPageSize :: Lens' AccountsAdClientsList (Maybe Int32)
aaclPageSize
= lens _aaclPageSize (\ s a -> s{_aaclPageSize = a})
. mapping _Coerce | 149 | aaclPageSize
= lens _aaclPageSize (\ s a -> s{_aaclPageSize = a})
. mapping _Coerce | 91 | true | true | 0 | 10 | 68 | 57 | 30 | 27 | null | null |
corajr/adventofcode2015 | 7/Solve.hs | mit | find :: Solution -> Value -> Maybe Word16
find solution value =
case value of
Lit l -> Just l
W (Wire w) -> Map.lookup w solution | 139 | find :: Solution -> Value -> Maybe Word16
find solution value =
case value of
Lit l -> Just l
W (Wire w) -> Map.lookup w solution | 139 | find solution value =
case value of
Lit l -> Just l
W (Wire w) -> Map.lookup w solution | 97 | false | true | 0 | 10 | 36 | 69 | 31 | 38 | null | null |
alexander-at-github/eta | compiler/ETA/Main/GhcMake.hs | bsd-3-clause | multiRootsErr dflags summs@(summ1:_)
= throwOneError $ mkPlainErrMsg dflags noSrcSpan $
text "module" <+> quotes (ppr mod) <+>
text "is defined in multiple files:" <+>
sep (map text files)
where
mod = ms_mod summ1
files = map (expectJust "checkDup" . ml_hs_file . ms_location) summs | 318 | multiRootsErr dflags summs@(summ1:_)
= throwOneError $ mkPlainErrMsg dflags noSrcSpan $
text "module" <+> quotes (ppr mod) <+>
text "is defined in multiple files:" <+>
sep (map text files)
where
mod = ms_mod summ1
files = map (expectJust "checkDup" . ml_hs_file . ms_location) summs | 318 | multiRootsErr dflags summs@(summ1:_)
= throwOneError $ mkPlainErrMsg dflags noSrcSpan $
text "module" <+> quotes (ppr mod) <+>
text "is defined in multiple files:" <+>
sep (map text files)
where
mod = ms_mod summ1
files = map (expectJust "checkDup" . ml_hs_file . ms_location) summs | 318 | false | false | 0 | 10 | 78 | 107 | 51 | 56 | null | null |
hbrouwer/pdrt-sandbox | src/Data/DRS/Translate.hs | apache-2.0 | worldVar :: String
worldVar = "w" | 33 | worldVar :: String
worldVar = "w" | 33 | worldVar = "w" | 14 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
apunktbau/co4 | test/CO4/Example/LoopSrs.hs | gpl-3.0 | uStep rwidth bits wwidth =
knownStep (uWord wwidth bits)
(uRule rwidth bits)
(uWord wwidth bits) | 128 | uStep rwidth bits wwidth =
knownStep (uWord wwidth bits)
(uRule rwidth bits)
(uWord wwidth bits) | 128 | uStep rwidth bits wwidth =
knownStep (uWord wwidth bits)
(uRule rwidth bits)
(uWord wwidth bits) | 128 | false | false | 0 | 6 | 46 | 48 | 21 | 27 | null | null |
brendanhay/gogol | gogol-youtube/gen/Network/Google/Resource/YouTube/VideoCategories/List.hs | mpl-2.0 | -- | JSONP
vclCallback :: Lens' VideoCategoriesList (Maybe Text)
vclCallback
= lens _vclCallback (\ s a -> s{_vclCallback = a}) | 129 | vclCallback :: Lens' VideoCategoriesList (Maybe Text)
vclCallback
= lens _vclCallback (\ s a -> s{_vclCallback = a}) | 118 | vclCallback
= lens _vclCallback (\ s a -> s{_vclCallback = a}) | 64 | true | true | 0 | 9 | 21 | 48 | 25 | 23 | null | null |
mavenraven/validations-checkers | tests/Validations/Parsers/Fixtures.hs | bsd-3-clause | localPhoneNumber :: PhoneNumber
localPhoneNumber = mempty {_exchange = "781", _suffix = "4218" } | 96 | localPhoneNumber :: PhoneNumber
localPhoneNumber = mempty {_exchange = "781", _suffix = "4218" } | 96 | localPhoneNumber = mempty {_exchange = "781", _suffix = "4218" } | 64 | false | true | 0 | 6 | 12 | 25 | 15 | 10 | null | null |
spechub/Hets | CASL/Overload.hs | gpl-2.0 | pSortBy :: (a -> [SORT]) -> Sign f e -> [a] -> [a]
pSortBy f sign = let pOrd a b = cmpSubsorts sign (f a) (f b)
in concat . rankBy pOrd | 152 | pSortBy :: (a -> [SORT]) -> Sign f e -> [a] -> [a]
pSortBy f sign = let pOrd a b = cmpSubsorts sign (f a) (f b)
in concat . rankBy pOrd | 152 | pSortBy f sign = let pOrd a b = cmpSubsorts sign (f a) (f b)
in concat . rankBy pOrd | 101 | false | true | 0 | 11 | 49 | 96 | 46 | 50 | null | null |
TWal/ENS_adac | src/Asm.hs | bsd-3-clause | jz = genericJump "jz" | 22 | jz = genericJump "jz" | 22 | jz = genericJump "jz" | 22 | false | false | 0 | 5 | 4 | 9 | 4 | 5 | null | null |
markus1189/xmonad-contrib-710 | XMonad/Layout/Groups/Helpers.hs | bsd-3-clause | getWindows :: X [Window]
getWindows = gets $ W.integrate' . W.stack . W.workspace . W.current . windowset | 105 | getWindows :: X [Window]
getWindows = gets $ W.integrate' . W.stack . W.workspace . W.current . windowset | 105 | getWindows = gets $ W.integrate' . W.stack . W.workspace . W.current . windowset | 80 | false | true | 0 | 10 | 16 | 45 | 23 | 22 | null | null |
metabrainz/musicbrainz-data-service | src/MusicBrainz/API/ReleaseGroup.hs | gpl-2.0 | --------------------------------------------------------------------------------
viewRelationships :: Form Text MusicBrainz (Set.Set LinkedRelationship)
viewRelationships = Common.viewRelationships rgRevision | 208 | viewRelationships :: Form Text MusicBrainz (Set.Set LinkedRelationship)
viewRelationships = Common.viewRelationships rgRevision | 127 | viewRelationships = Common.viewRelationships rgRevision | 55 | true | true | 0 | 8 | 11 | 32 | 16 | 16 | null | null |
sdiehl/ghc | compiler/prelude/THNames.hs | bsd-3-clause | -- newtype TExp a = ...
tExpDataConKey :: Unique
tExpDataConKey = mkPreludeDataConUnique 208 | 92 | tExpDataConKey :: Unique
tExpDataConKey = mkPreludeDataConUnique 208 | 68 | tExpDataConKey = mkPreludeDataConUnique 208 | 43 | true | true | 0 | 5 | 12 | 15 | 8 | 7 | null | null |
ozgurakgun/Idris-dev | src/Idris/Prover.hs | bsd-3-clause | envCtxt env ctxt = foldl (\c (n, b) -> addTyDecl n Bound (binderTy b) c) ctxt env | 81 | envCtxt env ctxt = foldl (\c (n, b) -> addTyDecl n Bound (binderTy b) c) ctxt env | 81 | envCtxt env ctxt = foldl (\c (n, b) -> addTyDecl n Bound (binderTy b) c) ctxt env | 81 | false | false | 0 | 10 | 16 | 49 | 25 | 24 | null | null |
eccstartup/haskell-tests | cypher.hs | mit | encodeMessage s m = map (\x -> encode1 x s) m | 45 | encodeMessage s m = map (\x -> encode1 x s) m | 45 | encodeMessage s m = map (\x -> encode1 x s) m | 45 | false | false | 0 | 8 | 10 | 29 | 14 | 15 | null | null |
elopez/QuickFuzz | app/Utils/Console.hs | gpl-3.0 | -- | Generates the shell command needeed to execute the target program,
-- inserting a user provided constant output filename, or generating a unique
-- one otherwise.
prepareCli :: QFCommand -> FormatInfo base actions -> IO ((FilePath, [String]), String)
prepareCli cmd fmt
| usesOutFile cmd = do
let file... | 539 | prepareCli :: QFCommand -> FormatInfo base actions -> IO ((FilePath, [String]), String)
prepareCli cmd fmt
| usesOutFile cmd = do
let filename = outDir cmd </> fromJust (outFile cmd)
return (mkRawCli (cli cmd) filename fmt, filename)
| otherwise = do
filename <- testName fmt
r... | 370 | prepareCli cmd fmt
| usesOutFile cmd = do
let filename = outDir cmd </> fromJust (outFile cmd)
return (mkRawCli (cli cmd) filename fmt, filename)
| otherwise = do
filename <- testName fmt
return (mkRawCli (cli cmd) filename fmt, filename) | 282 | true | true | 0 | 14 | 122 | 153 | 74 | 79 | null | null |
mboes/hs-asn1 | encoding/Data/ASN1/BinaryEncoding.hs | bsd-3-clause | decodeConstruction (ASN1Header Universal 0x11 _ _) = Set | 56 | decodeConstruction (ASN1Header Universal 0x11 _ _) = Set | 56 | decodeConstruction (ASN1Header Universal 0x11 _ _) = Set | 56 | false | false | 0 | 7 | 7 | 21 | 10 | 11 | null | null |
tjakway/ghcjvm | compiler/utils/StringBuffer.hs | bsd-3-clause | currentChar :: StringBuffer -> Char
currentChar = fst . nextChar | 64 | currentChar :: StringBuffer -> Char
currentChar = fst . nextChar | 64 | currentChar = fst . nextChar | 28 | false | true | 1 | 7 | 9 | 27 | 11 | 16 | null | null |
TransformingMusicology/tabcode-haskell | src/TabCode/Parser.hs | gpl-3.0 | rule :: String -> GenParser Char st Rule
rule r = do
spaces
nt <- between (string $ "<" ++ r ++ ">") (string $ "</" ++ r ++ ">") $ many1 $ noneOf "<"
spaces
return $ Rule r nt | 183 | rule :: String -> GenParser Char st Rule
rule r = do
spaces
nt <- between (string $ "<" ++ r ++ ">") (string $ "</" ++ r ++ ">") $ many1 $ noneOf "<"
spaces
return $ Rule r nt | 183 | rule r = do
spaces
nt <- between (string $ "<" ++ r ++ ">") (string $ "</" ++ r ++ ">") $ many1 $ noneOf "<"
spaces
return $ Rule r nt | 142 | false | true | 0 | 15 | 48 | 101 | 46 | 55 | null | null |
energyflowanalysis/efa-2.1 | src/EFA/Application/Optimisation/Base.hs | bsd-3-clause | genOptimalObjectiveSignal ::
(Vec.Zipper vec,Ord a,Show (vec Bool),Show (vec a),RealFloat a,
Vec.Walker vec, Vec.Storage vec a) =>
Type.InterpolationOfAllStates node vec a -> Sig.UTSignal vec a
genOptimalObjectiveSignal interpolation =
Map.foldl' (Sig.zipWith (ModUt.maxByWithNaN id)) h t
where objectiveSigPe... | 576 | genOptimalObjectiveSignal ::
(Vec.Zipper vec,Ord a,Show (vec Bool),Show (vec a),RealFloat a,
Vec.Walker vec, Vec.Storage vec a) =>
Type.InterpolationOfAllStates node vec a -> Sig.UTSignal vec a
genOptimalObjectiveSignal interpolation =
Map.foldl' (Sig.zipWith (ModUt.maxByWithNaN id)) h t
where objectiveSigPe... | 576 | genOptimalObjectiveSignal interpolation =
Map.foldl' (Sig.zipWith (ModUt.maxByWithNaN id)) h t
where objectiveSigPerState =
Map.map Type.optObjectiveSignalOfState interpolation
(h, t) = case Map.minView objectiveSigPerState of
Just x -> x
Nothing -> err... | 375 | false | true | 1 | 10 | 130 | 180 | 88 | 92 | null | null |
bos/vectro | Data/Vectro/Vect.hs | bsd-2-clause | empty :: Vect a
empty = Leaf V.empty | 36 | empty :: Vect a
empty = Leaf V.empty | 36 | empty = Leaf V.empty | 20 | false | true | 0 | 6 | 7 | 19 | 9 | 10 | null | null |
AmpersandTarski/ampersand | Setup.hs | gpl-3.0 | staticFileModuleHeader :: [String]
staticFileModuleHeader =
[ "{-# LANGUAGE OverloadedStrings #-}"
, "module "++staticFileModuleName
, " ( StaticFile(..),FileKind(..)"
, " , allStaticFiles, getStaticFileContent"
, " )"
, "where"
, "import Ampersand.Basics"
, "import qualified Data.ByteString.Lazy.... | 1,387 | staticFileModuleHeader :: [String]
staticFileModuleHeader =
[ "{-# LANGUAGE OverloadedStrings #-}"
, "module "++staticFileModuleName
, " ( StaticFile(..),FileKind(..)"
, " , allStaticFiles, getStaticFileContent"
, " )"
, "where"
, "import Ampersand.Basics"
, "import qualified Data.ByteString.Lazy.... | 1,387 | staticFileModuleHeader =
[ "{-# LANGUAGE OverloadedStrings #-}"
, "module "++staticFileModuleName
, " ( StaticFile(..),FileKind(..)"
, " , allStaticFiles, getStaticFileContent"
, " )"
, "where"
, "import Ampersand.Basics"
, "import qualified Data.ByteString.Lazy.Char8 as BS"
, "import qualified ... | 1,352 | false | true | 0 | 6 | 379 | 113 | 73 | 40 | null | null |
NCrashed/JuicyPixels-blp | blp2any/Statistics.hs | bsd-3-clause | adjust' :: (Maybe BlpStat -> BlpStat) -> BlpInfo -> StatMap -> StatMap
adjust' f k m = H.insert k (f $ H.lookup k m) m | 119 | adjust' :: (Maybe BlpStat -> BlpStat) -> BlpInfo -> StatMap -> StatMap
adjust' f k m = H.insert k (f $ H.lookup k m) m | 118 | adjust' f k m = H.insert k (f $ H.lookup k m) m | 47 | false | true | 0 | 9 | 25 | 70 | 32 | 38 | null | null |
pasberth/binal1 | Language/Binal/Util/AST.hs | mit | flatSymbols :: AST -> [String]
flatSymbols = Maybe.catMaybes . map LitKind.extractSym . flatLitKinds | 100 | flatSymbols :: AST -> [String]
flatSymbols = Maybe.catMaybes . map LitKind.extractSym . flatLitKinds | 100 | flatSymbols = Maybe.catMaybes . map LitKind.extractSym . flatLitKinds | 69 | false | true | 0 | 8 | 12 | 33 | 17 | 16 | null | null |
thoughtpolice/hs-vix | src/System/VMware/VIX.hs | mit | connectLocal :: C_VixServiceProvider -> IO (Either String HostHandle)
connectLocal typ = alloca $ \errOut -> do
hdl <- c_vix_connect nullPtr nullPtr nullPtr (fromIntegral (0 :: Int)) typ errOut
if hdl == c_VIX_INVALID_HANDLE then do
(c_VIX_GET_ERROR_MSG <$> peek errOut) >>= return . Left
else newMVar hdl >>=... | 348 | connectLocal :: C_VixServiceProvider -> IO (Either String HostHandle)
connectLocal typ = alloca $ \errOut -> do
hdl <- c_vix_connect nullPtr nullPtr nullPtr (fromIntegral (0 :: Int)) typ errOut
if hdl == c_VIX_INVALID_HANDLE then do
(c_VIX_GET_ERROR_MSG <$> peek errOut) >>= return . Left
else newMVar hdl >>=... | 348 | connectLocal typ = alloca $ \errOut -> do
hdl <- c_vix_connect nullPtr nullPtr nullPtr (fromIntegral (0 :: Int)) typ errOut
if hdl == c_VIX_INVALID_HANDLE then do
(c_VIX_GET_ERROR_MSG <$> peek errOut) >>= return . Left
else newMVar hdl >>= return . Right . HostHandle | 278 | false | true | 0 | 16 | 61 | 121 | 60 | 61 | null | null |
orome/crypto-enigma | cli/enigma.hs | bsd-3-clause | overwriteOptHelp = unlines [
"Overwrite each step after a pause (may result in" ,
"garbled output on some systems)"] | 132 | overwriteOptHelp = unlines [
"Overwrite each step after a pause (may result in" ,
"garbled output on some systems)"] | 132 | overwriteOptHelp = unlines [
"Overwrite each step after a pause (may result in" ,
"garbled output on some systems)"] | 132 | false | false | 0 | 6 | 34 | 15 | 8 | 7 | null | null |
MP2E/XMonadContrib | XMonad/Actions/DynamicWorkspaces.hs | bsd-3-clause | removeEmptyWorkspaceAfter :: X () -> X ()
removeEmptyWorkspaceAfter = removeEmptyWorkspaceAfterExcept [] | 104 | removeEmptyWorkspaceAfter :: X () -> X ()
removeEmptyWorkspaceAfter = removeEmptyWorkspaceAfterExcept [] | 104 | removeEmptyWorkspaceAfter = removeEmptyWorkspaceAfterExcept [] | 62 | false | true | 0 | 7 | 10 | 30 | 14 | 16 | null | null |
daniel-ziegler/provability | src/Modal/Parser.hs | bsd-3-clause | symbol :: String -> Parser ()
symbol s = void $ w *> string s <* w | 66 | symbol :: String -> Parser ()
symbol s = void $ w *> string s <* w | 66 | symbol s = void $ w *> string s <* w | 36 | false | true | 0 | 8 | 16 | 43 | 19 | 24 | null | null |
PeterCxy/peterbot-haskell | src/EventBus.hs | mit | getNextBusTVar :: EventBus t -> IO (TVar (EventBus t))
getNextBusTVar bus = return $ assertM' $ nextBus bus | 107 | getNextBusTVar :: EventBus t -> IO (TVar (EventBus t))
getNextBusTVar bus = return $ assertM' $ nextBus bus | 107 | getNextBusTVar bus = return $ assertM' $ nextBus bus | 52 | false | true | 0 | 10 | 17 | 47 | 22 | 25 | null | null |
bitemyapp/ghc | libraries/base/Data/Data.hs | bsd-3-clause | constrFields :: Constr -> [String]
constrFields = confields | 59 | constrFields :: Constr -> [String]
constrFields = confields | 59 | constrFields = confields | 24 | false | true | 0 | 6 | 7 | 18 | 10 | 8 | null | null |
kagamilove0707/F2 | src/Language/F2/TypeInterface.hs | mit | substTy _ TBool = TBool | 23 | substTy _ TBool = TBool | 23 | substTy _ TBool = TBool | 23 | false | false | 1 | 5 | 4 | 13 | 5 | 8 | null | null |
holzensp/ghc | compiler/nativeGen/X86/CodeGen.hs | bsd-3-clause | getNonClobberedOperand e = getNonClobberedOperand_generic e | 59 | getNonClobberedOperand e = getNonClobberedOperand_generic e | 59 | getNonClobberedOperand e = getNonClobberedOperand_generic e | 59 | false | false | 1 | 5 | 4 | 15 | 5 | 10 | null | null |
mightymoose/liquidhaskell | benchmarks/vector-0.10.0.1/Data/Vector/Storable.hs | bsd-3-clause | ifoldl' = G.ifoldl' | 19 | ifoldl' = G.ifoldl' | 19 | ifoldl' = G.ifoldl' | 19 | false | false | 1 | 6 | 2 | 12 | 4 | 8 | null | null |
xich/scotty | Network/Wai/Middleware/Static.hs | bsd-3-clause | hasSuffix :: String -> Policy
hasSuffix suf = predicate (isSuffixOf suf) | 72 | hasSuffix :: String -> Policy
hasSuffix suf = predicate (isSuffixOf suf) | 72 | hasSuffix suf = predicate (isSuffixOf suf) | 42 | false | true | 0 | 7 | 10 | 27 | 13 | 14 | null | null |
CoryXie/BarrelfishOS | hake/ArchDefaults.hs | mit | --
-- Create a library from a set of object files
--
archive :: String -> Options -> [String] -> [String] -> String -> String -> [ RuleToken ]
archive arch opts objs libs name libname =
[ Str "rm -f ", Out arch libname ]
++
[ NL, Str "ar cr ", Out arch libname ]
++
[ In BuildTree arch o | o <- ob... | 807 | archive :: String -> Options -> [String] -> [String] -> String -> String -> [ RuleToken ]
archive arch opts objs libs name libname =
[ Str "rm -f ", Out arch libname ]
++
[ NL, Str "ar cr ", Out arch libname ]
++
[ In BuildTree arch o | o <- objs ]
++
if libs == [] then []
... | 754 | archive arch opts objs libs name libname =
[ Str "rm -f ", Out arch libname ]
++
[ NL, Str "ar cr ", Out arch libname ]
++
[ In BuildTree arch o | o <- objs ]
++
if libs == [] then []
else (
[ NL, Str ("rm -fr tmp-" ++ name ++ "; mkdir tmp-" ++ name) ]
++
... | 664 | true | true | 5 | 19 | 293 | 301 | 160 | 141 | null | null |
winksaville/sel4-minimal-helloworld | kernel/haskell/src/SEL4/Machine/Hardware/ARM/QEmu.hs | bsd-2-clause | cacheInvalidateByVACallback :: Ptr CallbackData -> VPtr -> PAddr -> IO ()
cacheInvalidateByVACallback _cptr _mva _pa = return () | 128 | cacheInvalidateByVACallback :: Ptr CallbackData -> VPtr -> PAddr -> IO ()
cacheInvalidateByVACallback _cptr _mva _pa = return () | 128 | cacheInvalidateByVACallback _cptr _mva _pa = return () | 54 | false | true | 0 | 9 | 17 | 43 | 20 | 23 | null | null |
siddhanathan/ghc | compiler/prelude/THNames.hs | bsd-3-clause | dataDName = libFun (fsLit "dataD") dataDIdKey | 68 | dataDName = libFun (fsLit "dataD") dataDIdKey | 68 | dataDName = libFun (fsLit "dataD") dataDIdKey | 68 | false | false | 0 | 7 | 28 | 17 | 8 | 9 | null | null |
zachsully/hakaru | haskell/Tests/Disintegrate.hs | bsd-3-clause | ----------------------------------------------------------------
normDirac :: Model 'HReal 'HReal
normDirac =
normal (real_ 0) (prob_ 1) >>= \x ->
dirac x >>= \y ->
dirac (pair y x) | 194 | normDirac :: Model 'HReal 'HReal
normDirac =
normal (real_ 0) (prob_ 1) >>= \x ->
dirac x >>= \y ->
dirac (pair y x) | 128 | normDirac =
normal (real_ 0) (prob_ 1) >>= \x ->
dirac x >>= \y ->
dirac (pair y x) | 95 | true | true | 4 | 7 | 37 | 81 | 38 | 43 | null | null |
abhin4v/combinatorrent | src/Process/Peer/Sender.hs | bsd-2-clause | pgm :: Process CF () ()
pgm = do
ch <- asks chan
s <- asks sock
_ <- liftIO $ do
r <- atomically $ takeTMVar ch
sendAll s r
pgm | 151 | pgm :: Process CF () ()
pgm = do
ch <- asks chan
s <- asks sock
_ <- liftIO $ do
r <- atomically $ takeTMVar ch
sendAll s r
pgm | 151 | pgm = do
ch <- asks chan
s <- asks sock
_ <- liftIO $ do
r <- atomically $ takeTMVar ch
sendAll s r
pgm | 127 | false | true | 0 | 13 | 55 | 84 | 35 | 49 | null | null |
Bodigrim/katas | src/haskell/6-Wind-component-calculation.hs | bsd-2-clause | windInfo :: String -> Int -> Int -> String
windInfo rw' wd ws = headSide ++ " " ++ show (abs hw) ++ " knots. "
++ "Crosswind " ++ show (abs cw) ++ " knots from your " ++ crossSide ++ "." where
rw = 10 * read (take 2 rw')
a = fromIntegral (rw - wd) / 180.0 * pi
hw = round (fromIntegral ws * cos a)
cw =... | 463 | windInfo :: String -> Int -> Int -> String
windInfo rw' wd ws = headSide ++ " " ++ show (abs hw) ++ " knots. "
++ "Crosswind " ++ show (abs cw) ++ " knots from your " ++ crossSide ++ "." where
rw = 10 * read (take 2 rw')
a = fromIntegral (rw - wd) / 180.0 * pi
hw = round (fromIntegral ws * cos a)
cw =... | 463 | windInfo rw' wd ws = headSide ++ " " ++ show (abs hw) ++ " knots. "
++ "Crosswind " ++ show (abs cw) ++ " knots from your " ++ crossSide ++ "." where
rw = 10 * read (take 2 rw')
a = fromIntegral (rw - wd) / 180.0 * pi
hw = round (fromIntegral ws * cos a)
cw = round (fromIntegral ws * sin a)
headSi... | 420 | false | true | 8 | 14 | 125 | 208 | 102 | 106 | null | null |
ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/min_5.hs | mit | primCmpInt (Neg x) (Pos y) = LT | 31 | primCmpInt (Neg x) (Pos y) = LT | 31 | primCmpInt (Neg x) (Pos y) = LT | 31 | false | false | 0 | 6 | 6 | 25 | 11 | 14 | null | null |
sdiehl/ghc | compiler/GHC/Hs/Utils.hs | bsd-3-clause | nlHsFunTy a b = noLoc (HsFunTy noExtField (parenthesizeHsType funPrec a) b) | 75 | nlHsFunTy a b = noLoc (HsFunTy noExtField (parenthesizeHsType funPrec a) b) | 75 | nlHsFunTy a b = noLoc (HsFunTy noExtField (parenthesizeHsType funPrec a) b) | 75 | false | false | 0 | 9 | 10 | 32 | 15 | 17 | null | null |
xldenis/ruby | src/Ruby/Parser/Lexer.hs | bsd-3-clause | sep :: Parser ()
sep = sepChar *> scn | 38 | sep :: Parser ()
sep = sepChar *> scn | 38 | sep = sepChar *> scn | 21 | false | true | 0 | 6 | 9 | 20 | 10 | 10 | null | null |
janschulz/pandoc | src/Text/Pandoc/Writers/Markdown.hs | gpl-2.0 | isSp _ = False | 14 | isSp _ = False | 14 | isSp _ = False | 14 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
apyrgio/ganeti | src/Ganeti/Objects/Disk.hs | bsd-2-clause | lidDiskType (LIDFile {}) = DTFile | 34 | lidDiskType (LIDFile {}) = DTFile | 34 | lidDiskType (LIDFile {}) = DTFile | 34 | false | false | 0 | 7 | 5 | 16 | 8 | 8 | null | null |
brendanhay/gogol | gogol-adsense-host/gen/Network/Google/Resource/AdSenseHost/Reports/Generate.hs | mpl-2.0 | -- | Numeric columns to include in the report.
rgMetric :: Lens' ReportsGenerate [Text]
rgMetric
= lens _rgMetric (\ s a -> s{_rgMetric = a}) .
_Default
. _Coerce | 176 | rgMetric :: Lens' ReportsGenerate [Text]
rgMetric
= lens _rgMetric (\ s a -> s{_rgMetric = a}) .
_Default
. _Coerce | 129 | rgMetric
= lens _rgMetric (\ s a -> s{_rgMetric = a}) .
_Default
. _Coerce | 88 | true | true | 0 | 11 | 42 | 53 | 28 | 25 | null | null |
rahulmutt/ghcvm | compiler/Eta/BasicTypes/Literal.hs | bsd-3-clause | float2DoubleLit l = pprPanic "float2DoubleLit" (ppr l) | 67 | float2DoubleLit l = pprPanic "float2DoubleLit" (ppr l) | 67 | float2DoubleLit l = pprPanic "float2DoubleLit" (ppr l) | 67 | false | false | 0 | 7 | 19 | 20 | 9 | 11 | null | null |
tfausak/exercism-solutions | haskell/octal/octal_test.hs | mit | main :: IO ()
main = exitProperly $quickCheckAll | 48 | main :: IO ()
main = exitProperly $quickCheckAll | 48 | main = exitProperly $quickCheckAll | 34 | false | true | 0 | 7 | 7 | 26 | 10 | 16 | null | null |
michaelt/lens-simple | examples/Pong.hs | bsd-3-clause | ballRadius = 0.02 | 22 | ballRadius = 0.02 | 22 | ballRadius = 0.02 | 22 | false | false | 0 | 4 | 7 | 6 | 3 | 3 | null | null |
bradlarsen/bdd | hs-bdd/BDD.hs | mit | nodesUsedAtLevel :: Mgr s -> Int -> IO Int
nodesUsedAtLevel mgr lvl = do
nLevels <- numVars mgr
when (lvl < 0 || lvl >= nLevels) $ do
error ("BDD.nodesUsedAtLevel: invalid level '" ++ show lvl ++ "'")
liftM fromIntegral $ Raw.bdd_mgr_get_num_nodes_at_level (unMgr mgr)
... | 367 | nodesUsedAtLevel :: Mgr s -> Int -> IO Int
nodesUsedAtLevel mgr lvl = do
nLevels <- numVars mgr
when (lvl < 0 || lvl >= nLevels) $ do
error ("BDD.nodesUsedAtLevel: invalid level '" ++ show lvl ++ "'")
liftM fromIntegral $ Raw.bdd_mgr_get_num_nodes_at_level (unMgr mgr)
... | 367 | nodesUsedAtLevel mgr lvl = do
nLevels <- numVars mgr
when (lvl < 0 || lvl >= nLevels) $ do
error ("BDD.nodesUsedAtLevel: invalid level '" ++ show lvl ++ "'")
liftM fromIntegral $ Raw.bdd_mgr_get_num_nodes_at_level (unMgr mgr)
(fromIntegral ... | 324 | false | true | 0 | 14 | 125 | 114 | 52 | 62 | null | null |
mrmonday/Idris-dev | src/IRTS/CodegenC.hs | bsd-3-clause | doOp v (LZExt (ITFixed from) ITBig) [x]
= v ++ "MKBIGUI(vm, " ++ creg x ++ "->info.bits" ++ show (nativeTyWidth from) ++ ")" | 128 | doOp v (LZExt (ITFixed from) ITBig) [x]
= v ++ "MKBIGUI(vm, " ++ creg x ++ "->info.bits" ++ show (nativeTyWidth from) ++ ")" | 128 | doOp v (LZExt (ITFixed from) ITBig) [x]
= v ++ "MKBIGUI(vm, " ++ creg x ++ "->info.bits" ++ show (nativeTyWidth from) ++ ")" | 128 | false | false | 0 | 9 | 26 | 62 | 30 | 32 | null | null |
ekmett/reactor | Reactor/Deque.hs | bsd-3-clause | size :: Buffer a e -> Int
size (Buffer i _) = i | 47 | size :: Buffer a e -> Int
size (Buffer i _) = i | 47 | size (Buffer i _) = i | 21 | false | true | 0 | 7 | 12 | 31 | 15 | 16 | null | null |
brendanhay/gogol | gogol-cloudsearch/gen/Network/Google/CloudSearch/Types/Product.hs | mpl-2.0 | -- | Retrictions applied to the configurations. The maximum number of
-- elements is 10.
saDataSourceRestrictions :: Lens' SearchApplication [DataSourceRestriction]
saDataSourceRestrictions
= lens _saDataSourceRestrictions
(\ s a -> s{_saDataSourceRestrictions = a})
. _Default
. _Coerce | 307 | saDataSourceRestrictions :: Lens' SearchApplication [DataSourceRestriction]
saDataSourceRestrictions
= lens _saDataSourceRestrictions
(\ s a -> s{_saDataSourceRestrictions = a})
. _Default
. _Coerce | 218 | saDataSourceRestrictions
= lens _saDataSourceRestrictions
(\ s a -> s{_saDataSourceRestrictions = a})
. _Default
. _Coerce | 142 | true | true | 3 | 8 | 54 | 59 | 29 | 30 | null | null |
beni55/pandoc | src/Text/Pandoc/Writers/Docbook.hs | gpl-2.0 | tableRowToDocbook :: WriterOptions
-> [[Block]]
-> Doc
tableRowToDocbook opts cols =
inTagsIndented "row" $ vcat $ map (tableItemToDocbook opts) cols | 187 | tableRowToDocbook :: WriterOptions
-> [[Block]]
-> Doc
tableRowToDocbook opts cols =
inTagsIndented "row" $ vcat $ map (tableItemToDocbook opts) cols | 187 | tableRowToDocbook opts cols =
inTagsIndented "row" $ vcat $ map (tableItemToDocbook opts) cols | 96 | false | true | 2 | 9 | 57 | 58 | 27 | 31 | null | null |
AlexanderPankiv/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | -- |||
loopAIdKey = mkPreludeMiscIdUnique 185 | 51 | loopAIdKey = mkPreludeMiscIdUnique 185 | 43 | loopAIdKey = mkPreludeMiscIdUnique 185 | 43 | true | false | 0 | 5 | 11 | 10 | 5 | 5 | null | null |
eklavya/Idris-dev | src/Idris/Delaborate.hs | bsd-3-clause | pprintErr' i (UnknownImplicit n f) = annName n <+> text "is not an implicit argument of" <+> annName f | 102 | pprintErr' i (UnknownImplicit n f) = annName n <+> text "is not an implicit argument of" <+> annName f | 102 | pprintErr' i (UnknownImplicit n f) = annName n <+> text "is not an implicit argument of" <+> annName f | 102 | false | false | 0 | 7 | 18 | 36 | 16 | 20 | null | null |
ekmett/ghc | compiler/cmm/CmmUtils.hs | bsd-3-clause | isTrivialCmmExpr (CmmLit _) = True | 42 | isTrivialCmmExpr (CmmLit _) = True | 42 | isTrivialCmmExpr (CmmLit _) = True | 42 | false | false | 0 | 7 | 12 | 15 | 7 | 8 | null | null |
nevrenato/Hets_Fork | OWL2/Function.hs | gpl-2.0 | cutWith :: EntityType -> Action -> AMap -> IRI -> IRI
cutWith ty t s iri = cutIRI $ function t s $ Entity ty iri | 112 | cutWith :: EntityType -> Action -> AMap -> IRI -> IRI
cutWith ty t s iri = cutIRI $ function t s $ Entity ty iri | 112 | cutWith ty t s iri = cutIRI $ function t s $ Entity ty iri | 58 | false | true | 0 | 10 | 25 | 59 | 27 | 32 | null | null |
tjakway/ghcjvm | compiler/types/Type.hs | bsd-3-clause | binderVar_maybe (Anon {}) = Nothing | 37 | binderVar_maybe (Anon {}) = Nothing | 37 | binderVar_maybe (Anon {}) = Nothing | 37 | false | false | 0 | 6 | 6 | 17 | 8 | 9 | null | null |
leshchevds/ganeti | src/Ganeti/THH/Field.hs | bsd-2-clause | -- | Creates a new mandatory field that reads time as the (floating point)
-- number of seconds since the standard UNIX epoch, and represents it in
-- Haskell as 'ClockTime'.
timeAsDoubleField :: String -> Field
timeAsDoubleField fname =
(simpleField fname [t| ClockTime |])
{ fieldRead = Just $ [| \_ -> liftM unT... | 438 | timeAsDoubleField :: String -> Field
timeAsDoubleField fname =
(simpleField fname [t| ClockTime |])
{ fieldRead = Just $ [| \_ -> liftM unTimeAsDoubleJSON . JSON.readJSON |]
, fieldShow = Just $ [| \c -> (JSON.showJSON $ TimeAsDoubleJSON c, []) |]
} | 263 | timeAsDoubleField fname =
(simpleField fname [t| ClockTime |])
{ fieldRead = Just $ [| \_ -> liftM unTimeAsDoubleJSON . JSON.readJSON |]
, fieldShow = Just $ [| \c -> (JSON.showJSON $ TimeAsDoubleJSON c, []) |]
} | 226 | true | true | 0 | 8 | 85 | 65 | 40 | 25 | null | null |
gbataille/pandoc | src/Text/Pandoc/ImageSize.hs | gpl-2.0 | imageSize :: ByteString -> Either String ImageSize
imageSize img =
case imageType img of
Just Png -> mbToEither "could not determine PNG size" $ pngSize img
Just Gif -> mbToEither "could not determine GIF size" $ gifSize img
Just Jpeg -> jpegSize img
Just Eps -> mbToEither "could not de... | 558 | imageSize :: ByteString -> Either String ImageSize
imageSize img =
case imageType img of
Just Png -> mbToEither "could not determine PNG size" $ pngSize img
Just Gif -> mbToEither "could not determine GIF size" $ gifSize img
Just Jpeg -> jpegSize img
Just Eps -> mbToEither "could not de... | 558 | imageSize img =
case imageType img of
Just Png -> mbToEither "could not determine PNG size" $ pngSize img
Just Gif -> mbToEither "could not determine GIF size" $ gifSize img
Just Jpeg -> jpegSize img
Just Eps -> mbToEither "could not determine EPS size" $ epsSize img
Just Pdf ->... | 507 | false | true | 0 | 9 | 150 | 160 | 70 | 90 | null | null |
lekto/haskell | Project-Euler-Solutions/problem0013.hs | mit | numbers = [
37107287533902102798797998220837590246510135740250,
46376937677490009712648124896970078050417018260538,
74324986199524741059474233309513058123726617309629,
91942213363574161572522430563301811072406154908250,
23067588207539346171171980310421047513778063246676,
892616706966236338201363784183836841787343... | 5,311 | numbers = [
37107287533902102798797998220837590246510135740250,
46376937677490009712648124896970078050417018260538,
74324986199524741059474233309513058123726617309629,
91942213363574161572522430563301811072406154908250,
23067588207539346171171980310421047513778063246676,
892616706966236338201363784183836841787343... | 5,311 | numbers = [
37107287533902102798797998220837590246510135740250,
46376937677490009712648124896970078050417018260538,
74324986199524741059474233309513058123726617309629,
91942213363574161572522430563301811072406154908250,
23067588207539346171171980310421047513778063246676,
892616706966236338201363784183836841787343... | 5,311 | false | false | 1 | 5 | 202 | 309 | 203 | 106 | null | null |
da-x/ghc | libraries/template-haskell/Language/Haskell/TH/Ppr.hs | bsd-3-clause | pprLit i (DoublePrimL x) = parensIf (i > noPrec && x < 0)
(double (fromRational x) <> text "##") | 132 | pprLit i (DoublePrimL x) = parensIf (i > noPrec && x < 0)
(double (fromRational x) <> text "##") | 132 | pprLit i (DoublePrimL x) = parensIf (i > noPrec && x < 0)
(double (fromRational x) <> text "##") | 132 | false | false | 0 | 10 | 54 | 56 | 27 | 29 | null | null |
reidwilbur/aoc2016 | src/Day1.hs | bsd-3-clause | getPath pstns [] = reverse pstns | 32 | getPath pstns [] = reverse pstns | 32 | getPath pstns [] = reverse pstns | 32 | false | false | 0 | 5 | 5 | 18 | 7 | 11 | null | null |
TorosFanny/kaleidoscope | src/chapter7/Main.hs | mit | main :: IO ()
main = do
args <- getArgs
case args of
[] -> repl
[fname] -> processFile fname >> return () | 122 | main :: IO ()
main = do
args <- getArgs
case args of
[] -> repl
[fname] -> processFile fname >> return () | 122 | main = do
args <- getArgs
case args of
[] -> repl
[fname] -> processFile fname >> return () | 108 | false | true | 0 | 12 | 39 | 59 | 28 | 31 | null | null |
Muzietto/transformerz | haskell/nilsson/TestNilsson_04.hs | mit | {--}
------------- RT + ET -----------------
testEval5Literal :: Test
testEval5Literal =
TestCase $ assertEqual "eval5 should evaluate a silly literal"
(Just (IntVal 18)) (runEval5 Map.empty $ eval5 (Lit 18)) | 235 | testEval5Literal :: Test
testEval5Literal =
TestCase $ assertEqual "eval5 should evaluate a silly literal"
(Just (IntVal 18)) (runEval5 Map.empty $ eval5 (Lit 18)) | 185 | testEval5Literal =
TestCase $ assertEqual "eval5 should evaluate a silly literal"
(Just (IntVal 18)) (runEval5 Map.empty $ eval5 (Lit 18)) | 160 | true | true | 2 | 10 | 55 | 66 | 30 | 36 | null | null |
AmpersandTarski/ampersand | src/Ampersand/Graphic/Fspec2ClassDiagrams.hs | gpl-3.0 | mults :: Expression -> Multiplicities
mults r = Mult (if isTot r then MinOne else MinZero)
(if isUni r then MaxOne else MaxMany) | 143 | mults :: Expression -> Multiplicities
mults r = Mult (if isTot r then MinOne else MinZero)
(if isUni r then MaxOne else MaxMany) | 143 | mults r = Mult (if isTot r then MinOne else MinZero)
(if isUni r then MaxOne else MaxMany) | 105 | false | true | 0 | 8 | 37 | 51 | 27 | 24 | null | null |
AndrewRademacher/lens-testing | src/Main.hs | mit | sampleValue :: Maybe Value
sampleValue = Just $ toJSON sampleUser | 65 | sampleValue :: Maybe Value
sampleValue = Just $ toJSON sampleUser | 65 | sampleValue = Just $ toJSON sampleUser | 38 | false | true | 0 | 6 | 9 | 21 | 10 | 11 | null | null |
WawerOS/Chessotron2000 | src/Chess.hs | mit | opposite Black = White | 22 | opposite Black = White | 22 | opposite Black = White | 22 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
Heather/clay | src/Clay/Attributes.hs | bsd-3-clause | autofocus = "autofocus" | 23 | autofocus = "autofocus" | 23 | autofocus = "autofocus" | 23 | false | false | 1 | 5 | 2 | 10 | 3 | 7 | null | null |
codeq/language-py | src/Language/Py/ParserUtils.hs | bsd-3-clause | makeParam :: (IdentSpan, Maybe ExprSpan) -> Maybe ExprSpan -> ParameterSpan
makeParam (name, annot) defaultVal
= Param name annot defaultVal paramSpan
where
paramSpan = spanning (spanning name annot) defaultVal | 218 | makeParam :: (IdentSpan, Maybe ExprSpan) -> Maybe ExprSpan -> ParameterSpan
makeParam (name, annot) defaultVal
= Param name annot defaultVal paramSpan
where
paramSpan = spanning (spanning name annot) defaultVal | 218 | makeParam (name, annot) defaultVal
= Param name annot defaultVal paramSpan
where
paramSpan = spanning (spanning name annot) defaultVal | 142 | false | true | 0 | 7 | 35 | 72 | 36 | 36 | null | null |
knuton/lox | Text/Lox/Writers/Latex.hs | gpl-3.0 | asLatex (Box fml) = "\\Box " ++ asLatex fml | 43 | asLatex (Box fml) = "\\Box " ++ asLatex fml | 43 | asLatex (Box fml) = "\\Box " ++ asLatex fml | 43 | false | false | 0 | 6 | 8 | 23 | 10 | 13 | null | null |
brendanhay/gogol | gogol-adexperiencereport/gen/Network/Google/Resource/AdExperienceReport/Sites/Get.hs | mpl-2.0 | -- | Creates a value of 'SitesGet' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'sgXgafv'
--
-- * 'sgUploadProtocol'
--
-- * 'sgAccessToken'
--
-- * 'sgUploadType'
--
-- * 'sgName'
--
-- * 'sgCallback'
sitesGet
:: Text -- ^ 'sgN... | 551 | sitesGet
:: Text -- ^ 'sgName'
-> SitesGet
sitesGet pSgName_ =
SitesGet'
{ _sgXgafv = Nothing
, _sgUploadProtocol = Nothing
, _sgAccessToken = Nothing
, _sgUploadType = Nothing
, _sgName = pSgName_
, _sgCallback = Nothing
} | 261 | sitesGet pSgName_ =
SitesGet'
{ _sgXgafv = Nothing
, _sgUploadProtocol = Nothing
, _sgAccessToken = Nothing
, _sgUploadType = Nothing
, _sgName = pSgName_
, _sgCallback = Nothing
} | 210 | true | true | 0 | 7 | 128 | 81 | 52 | 29 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.