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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tjakway/ghcjvm | compiler/prelude/PrelNames.hs | bsd-3-clause | typeNatLeqTyFamNameKey = mkPreludeTyConUnique 169 | 52 | typeNatLeqTyFamNameKey = mkPreludeTyConUnique 169 | 52 | typeNatLeqTyFamNameKey = mkPreludeTyConUnique 169 | 52 | false | false | 0 | 5 | 6 | 9 | 4 | 5 | null | null |
michalkonecny/aern2 | aern2-mfun/src/AERN2/BoxFunMinMax/Expressions/Parsers/Lisp/Parser.hs | bsd-3-clause | numberCharacters :: String
numberCharacters = "0123456789." | 59 | numberCharacters :: String
numberCharacters = "0123456789." | 59 | numberCharacters = "0123456789." | 32 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
SamirTalwar/advent-of-code | 2016/AOC_02_2.hs | mit | move MoveRight '5' = '6' | 24 | move MoveRight '5' = '6' | 24 | move MoveRight '5' = '6' | 24 | false | false | 0 | 5 | 4 | 11 | 5 | 6 | null | null |
adnelson/simple-nix | src/Nix/Parser.hs | mit | -- | Gets all of the arguments for a function.
pKwargs :: Parser FuncArgs
pKwargs = do
(args, dotdots) <- between (schar '{') (schar '}') _getKwargs
argsNname <- optionMaybe $ schar '@' >> pIdentifier
return $ Kwargs (H.fromList args) dotdots argsNname
where
_getKwargs :: Parser ([(Name, Maybe NixExpr)], Bo... | 1,089 | pKwargs :: Parser FuncArgs
pKwargs = do
(args, dotdots) <- between (schar '{') (schar '}') _getKwargs
argsNname <- optionMaybe $ schar '@' >> pIdentifier
return $ Kwargs (H.fromList args) dotdots argsNname
where
_getKwargs :: Parser ([(Name, Maybe NixExpr)], Bool)
_getKwargs = go [] where
-- Attem... | 1,042 | pKwargs = do
(args, dotdots) <- between (schar '{') (schar '}') _getKwargs
argsNname <- optionMaybe $ schar '@' >> pIdentifier
return $ Kwargs (H.fromList args) dotdots argsNname
where
_getKwargs :: Parser ([(Name, Maybe NixExpr)], Bool)
_getKwargs = go [] where
-- Attempt to parse `...`. If this ... | 1,015 | true | true | 1 | 18 | 300 | 268 | 137 | 131 | null | null |
AlexeyRaga/eta | compiler/ETA/Prelude/PrimOp.hs | bsd-3-clause | tagOf_PrimOp NewMVarOp = _ILIT(343) | 35 | tagOf_PrimOp NewMVarOp = _ILIT(343) | 35 | tagOf_PrimOp NewMVarOp = _ILIT(343) | 35 | false | false | 1 | 6 | 3 | 18 | 7 | 11 | null | null |
quyse/flaw | flaw-gl/Flaw/Graphics/OpenGL.hs | mit | -- | Create OpenGL context and perform basic initialization.
createOpenGLContext :: BinaryCache c => c -> (forall a. IO a -> IO a) -> (forall a. IO a -> IO a) -> (IO () -> IO ()) -> Bool -> IO GlContext
createOpenGLContext programCache invoke backgroundInvoke asyncBackgroundInvoke debug = do
-- OpenGL version
major... | 5,391 | createOpenGLContext :: BinaryCache c => c -> (forall a. IO a -> IO a) -> (forall a. IO a -> IO a) -> (IO () -> IO ()) -> Bool -> IO GlContext
createOpenGLContext programCache invoke backgroundInvoke asyncBackgroundInvoke debug = do
-- OpenGL version
majorVersion <- alloca $ \majorVersionPtr -> do
glGetIntegerv ... | 5,330 | createOpenGLContext programCache invoke backgroundInvoke asyncBackgroundInvoke debug = do
-- OpenGL version
majorVersion <- alloca $ \majorVersionPtr -> do
glGetIntegerv GL_MAJOR_VERSION majorVersionPtr
peek majorVersionPtr
minorVersion <- alloca $ \minorVersionPtr -> do
glGetIntegerv GL_MINOR_VERSION... | 5,188 | true | true | 0 | 26 | 1,147 | 1,049 | 529 | 520 | null | null |
hiratara/doukaku-past-questions-advent-2013 | src/Doukaku/XYSort.hs | bsd-3-clause | solve :: String -> String
solve = concatMap show . head . foldl (flip change) table | 83 | solve :: String -> String
solve = concatMap show . head . foldl (flip change) table | 83 | solve = concatMap show . head . foldl (flip change) table | 57 | false | true | 0 | 8 | 15 | 43 | 19 | 24 | null | null |
wavewave/lhc-analysis-collection | exe/2013-05-27-XUDD-2sg.hs | gpl-3.0 | p_gluino = d ([1000021], [t jet, t jets, t jets, t adms]) | 57 | p_gluino = d ([1000021], [t jet, t jets, t jets, t adms]) | 57 | p_gluino = d ([1000021], [t jet, t jets, t jets, t adms]) | 57 | false | false | 1 | 8 | 11 | 46 | 22 | 24 | null | null |
input-output-hk/pos-haskell-prototype | util/src/Pos/Util/Concurrent.hs | mit | -- | Block until value in TVar satisfies given predicate. When value
-- satisfies, it is returned.
readTVarConditional :: (MonadIO m) => (x -> Bool) -> TVar x -> m x
readTVarConditional predicate tvar = atomically $ do
res <- readTVar tvar
if predicate res then pure res
else retry
-- | Read until value is ... | 369 | readTVarConditional :: (MonadIO m) => (x -> Bool) -> TVar x -> m x
readTVarConditional predicate tvar = atomically $ do
res <- readTVar tvar
if predicate res then pure res
else retry
-- | Read until value is equal to stored value comparing by some function. | 270 | readTVarConditional predicate tvar = atomically $ do
res <- readTVar tvar
if predicate res then pure res
else retry
-- | Read until value is equal to stored value comparing by some function. | 203 | true | true | 0 | 9 | 76 | 80 | 40 | 40 | null | null |
the-real-blackh/eurofxref | Financial/EuroFXRef.hs | bsd-3-clause | fetch :: (Failure EuropeanCentralBankException m, Failure HttpException m,
MonadIO m, Read a) =>
m (Rates a)
fetch = do
req <- europeanCentralBankDaily
liftIO $ withManager $ fetchFrom req | 215 | fetch :: (Failure EuropeanCentralBankException m, Failure HttpException m,
MonadIO m, Read a) =>
m (Rates a)
fetch = do
req <- europeanCentralBankDaily
liftIO $ withManager $ fetchFrom req | 215 | fetch = do
req <- europeanCentralBankDaily
liftIO $ withManager $ fetchFrom req | 87 | false | true | 0 | 9 | 54 | 78 | 36 | 42 | null | null |
mightymoose/liquidhaskell | benchmarks/hmatrix-0.15.0.1/lib/Numeric/GSL/Fitting.hs | bsd-3-clause | jacobian modelDer ds vs = concatMap (modelDer vs) ds | 52 | jacobian modelDer ds vs = concatMap (modelDer vs) ds | 52 | jacobian modelDer ds vs = concatMap (modelDer vs) ds | 52 | false | false | 1 | 7 | 8 | 29 | 11 | 18 | null | null |
futtetennista/scripts | src/ServerlessValidator.hs | mit | mkFrameworkVersion :: Text -> Either ErrorMsg FrameworkVersion
mkFrameworkVersion version =
let
-- TODO[1]: is this re-compiled each time? Shall it be moved this to the outer scope?!
fVRegex =
Regex.mkRegex "^>=([0-9]+\\.[0-9]+\\.[0-9]+) <([0-9]+\\.[0-9]+\\.[0-9]+)$"
in
case Regex.matchRegex fVReg... | 844 | mkFrameworkVersion :: Text -> Either ErrorMsg FrameworkVersion
mkFrameworkVersion version =
let
-- TODO[1]: is this re-compiled each time? Shall it be moved this to the outer scope?!
fVRegex =
Regex.mkRegex "^>=([0-9]+\\.[0-9]+\\.[0-9]+) <([0-9]+\\.[0-9]+\\.[0-9]+)$"
in
case Regex.matchRegex fVReg... | 844 | mkFrameworkVersion version =
let
-- TODO[1]: is this re-compiled each time? Shall it be moved this to the outer scope?!
fVRegex =
Regex.mkRegex "^>=([0-9]+\\.[0-9]+\\.[0-9]+) <([0-9]+\\.[0-9]+\\.[0-9]+)$"
in
case Regex.matchRegex fVRegex (T.unpack version) of
Just [minVer, maxVer] ->
... | 781 | false | true | 3 | 11 | 228 | 163 | 79 | 84 | null | null |
cliffano/swaggy-jenkins | clients/haskell-http-client/generated/lib/SwaggyJenkins/ModelLens.hs | mit | -- | 'hudsonMasterComputerLaunchSupported' Lens
hudsonMasterComputerLaunchSupportedL :: Lens_' HudsonMasterComputer (Maybe Bool)
hudsonMasterComputerLaunchSupportedL f HudsonMasterComputer{..} = (\hudsonMasterComputerLaunchSupported -> HudsonMasterComputer { hudsonMasterComputerLaunchSupported, ..} ) <$> f hudsonMaster... | 343 | hudsonMasterComputerLaunchSupportedL :: Lens_' HudsonMasterComputer (Maybe Bool)
hudsonMasterComputerLaunchSupportedL f HudsonMasterComputer{..} = (\hudsonMasterComputerLaunchSupported -> HudsonMasterComputer { hudsonMasterComputerLaunchSupported, ..} ) <$> f hudsonMasterComputerLaunchSupported | 295 | hudsonMasterComputerLaunchSupportedL f HudsonMasterComputer{..} = (\hudsonMasterComputerLaunchSupported -> HudsonMasterComputer { hudsonMasterComputerLaunchSupported, ..} ) <$> f hudsonMasterComputerLaunchSupported | 214 | true | true | 0 | 8 | 23 | 57 | 30 | 27 | null | null |
bennofs/hsqml-react | src/Graphics/QML/React.hs | bsd-3-clause | -- | Event that is fired whenever the given mutable property is changed from QML.
--
-- The value of the event is equal to the value the property was set to from QML.
changed :: Member Mut a (Final t) -> Event t a
changed (Final _ ins) = fst ins | 245 | changed :: Member Mut a (Final t) -> Event t a
changed (Final _ ins) = fst ins | 78 | changed (Final _ ins) = fst ins | 31 | true | true | 0 | 9 | 51 | 55 | 26 | 29 | null | null |
Teaspot-Studio/Urho3D-Haskell | src/Graphics/Urho3D/UI/ListView.hs | mit | listViewContext :: C.Context
listViewContext = sharedListViewPtrCntx
<> listViewCntx | 86 | listViewContext :: C.Context
listViewContext = sharedListViewPtrCntx
<> listViewCntx | 86 | listViewContext = sharedListViewPtrCntx
<> listViewCntx | 57 | false | true | 2 | 5 | 9 | 19 | 9 | 10 | null | null |
authchir/SoSe17-FFP-haskell-http2-server | src/Handle/Headers.hs | gpl-3.0 | handleContinuation :: (ConnMonad m) => FContinuation.Payload -> StreamId -> FrameFlags -> m ()
handleContinuation payload streamid flags = do
when (streamid == StreamId 0) $ do
Logger.log Logger.Crit "continuation frame on control stream"
throwError $... | 1,015 | handleContinuation :: (ConnMonad m) => FContinuation.Payload -> StreamId -> FrameFlags -> m ()
handleContinuation payload streamid flags = do
when (streamid == StreamId 0) $ do
Logger.log Logger.Crit "continuation frame on control stream"
throwError $... | 1,015 | handleContinuation payload streamid flags = do
when (streamid == StreamId 0) $ do
Logger.log Logger.Crit "continuation frame on control stream"
throwError $ ConnError ConnectionError ProtocolError
streamState <- getStreamState streamid
... | 920 | false | true | 0 | 13 | 316 | 234 | 104 | 130 | null | null |
NotBrianZach/postgrest | src/PostgREST/QueryBuilder.hs | mit | pgFmtOperator :: Text -> SqlFragment
pgFmtOperator opCode = fromMaybe "=" $ M.lookup opCode operatorsMap
where
operatorsMap = M.fromList operators | 152 | pgFmtOperator :: Text -> SqlFragment
pgFmtOperator opCode = fromMaybe "=" $ M.lookup opCode operatorsMap
where
operatorsMap = M.fromList operators | 152 | pgFmtOperator opCode = fromMaybe "=" $ M.lookup opCode operatorsMap
where
operatorsMap = M.fromList operators | 115 | false | true | 0 | 7 | 24 | 45 | 21 | 24 | null | null |
unisonweb/platform | parser-typechecker/src/Unison/Server/SearchResult.hs | mit | fromNames :: Names0 -> [SearchResult]
fromNames b =
map (uncurry (typeSearchResult b)) (R.toList . Names.types $ b) <>
map (uncurry (termSearchResult b)) (R.toList . Names.terms $ b) | 186 | fromNames :: Names0 -> [SearchResult]
fromNames b =
map (uncurry (typeSearchResult b)) (R.toList . Names.types $ b) <>
map (uncurry (termSearchResult b)) (R.toList . Names.terms $ b) | 186 | fromNames b =
map (uncurry (typeSearchResult b)) (R.toList . Names.types $ b) <>
map (uncurry (termSearchResult b)) (R.toList . Names.terms $ b) | 148 | false | true | 0 | 10 | 30 | 89 | 45 | 44 | null | null |
pranjaltale16/codeworld | codeworld-compiler/exec/Main.hs | apache-2.0 | compileBase :: Options -> FilePath -> IO CompileStatus
compileBase Options {..} err = do
withSystemTempDirectory "genbase" $ \tmpdir -> do
let linkMain = tmpdir </> "LinkMain.hs"
let linkBase = tmpdir </> "LinkBase.hs"
generateBaseBundle [source] (map T.pack baseIgnore) mode linkMain linkBas... | 820 | compileBase :: Options -> FilePath -> IO CompileStatus
compileBase Options {..} err = do
withSystemTempDirectory "genbase" $ \tmpdir -> do
let linkMain = tmpdir </> "LinkMain.hs"
let linkBase = tmpdir </> "LinkBase.hs"
generateBaseBundle [source] (map T.pack baseIgnore) mode linkMain linkBas... | 820 | compileBase Options {..} err = do
withSystemTempDirectory "genbase" $ \tmpdir -> do
let linkMain = tmpdir </> "LinkMain.hs"
let linkBase = tmpdir </> "LinkBase.hs"
generateBaseBundle [source] (map T.pack baseIgnore) mode linkMain linkBase
when verbose $ do
hPutStrLn stder... | 765 | false | true | 0 | 16 | 209 | 213 | 94 | 119 | null | null |
psfblair/clay | src/Clay/Color.hs | bsd-3-clause | whitesmoke = rgb 245 245 245 | 38 | whitesmoke = rgb 245 245 245 | 38 | whitesmoke = rgb 245 245 245 | 38 | false | false | 1 | 5 | 15 | 16 | 6 | 10 | null | null |
jtrim/string-calculator-hs | src/StringCalculator/DefaultDelimiter.hs | mit | delimiter = ",|\n" | 18 | delimiter = ",|\n" | 18 | delimiter = ",|\n" | 18 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
yoo-e/weixin-mp-sdk | WeiXin/PublicPlatform/Pay/Types.hs | mit | wxPayMoneyAmountToYuan :: Integral a => WxPayMoneyAmount -> a
wxPayMoneyAmountToYuan = fromIntegral . unWxPayMoneyAmount | 120 | wxPayMoneyAmountToYuan :: Integral a => WxPayMoneyAmount -> a
wxPayMoneyAmountToYuan = fromIntegral . unWxPayMoneyAmount | 120 | wxPayMoneyAmountToYuan = fromIntegral . unWxPayMoneyAmount | 58 | false | true | 0 | 6 | 12 | 26 | 13 | 13 | null | null |
etu-fkti5301-bgu/alt-exam_automated_theorem_proving | src/Prop.hs | bsd-3-clause | enf' :: Formula -> Formula
nenf' fm = case fm of
[form| ¬¬$p |] -> nenf' p
[form| ¬($p ∧ $q) |] -> [form| $p' ∨ $q' |]
where p' = nenf' [form| ¬ $p |]
q' = nenf' [form| ¬ $q |]
[form| ¬($p ∨ $q) |] -> [form| $p' ∧ $q' |]
where p' = nenf' [form| ¬ $p |]
q' = nenf' [form| ¬ $q |]
[f... | 958 | nenf' :: Formula -> Formula
nenf' fm = case fm of
[form| ¬¬$p |] -> nenf' p
[form| ¬($p ∧ $q) |] -> [form| $p' ∨ $q' |]
where p' = nenf' [form| ¬ $p |]
q' = nenf' [form| ¬ $q |]
[form| ¬($p ∨ $q) |] -> [form| $p' ∧ $q' |]
where p' = nenf' [form| ¬ $p |]
q' = nenf' [form| ¬ $q |]
[... | 958 | nenf' fm = case fm of
[form| ¬¬$p |] -> nenf' p
[form| ¬($p ∧ $q) |] -> [form| $p' ∨ $q' |]
where p' = nenf' [form| ¬ $p |]
q' = nenf' [form| ¬ $q |]
[form| ¬($p ∨ $q) |] -> [form| $p' ∧ $q' |]
where p' = nenf' [form| ¬ $p |]
q' = nenf' [form| ¬ $q |]
[form| ¬($p ⊃ $q) |] -> [form... | 930 | false | true | 0 | 10 | 350 | 326 | 211 | 115 | null | null |
PuZZleDucK/Hls | GUtils.hs | gpl-3.0 | addTarget :: ProgramData -> String -> [String] -> (ProgramData,[String])
addTarget dat target unused = (dat{configuration = newCfg}, stillUnused)
where cfg = configuration dat
(OptionEffect effect) = paramaterEffect flag
(Just flag) = (getFlag optionTerminator cfg)
(newCfg, stillUnused) = (ef... | 432 | addTarget :: ProgramData -> String -> [String] -> (ProgramData,[String])
addTarget dat target unused = (dat{configuration = newCfg}, stillUnused)
where cfg = configuration dat
(OptionEffect effect) = paramaterEffect flag
(Just flag) = (getFlag optionTerminator cfg)
(newCfg, stillUnused) = (ef... | 432 | addTarget dat target unused = (dat{configuration = newCfg}, stillUnused)
where cfg = configuration dat
(OptionEffect effect) = paramaterEffect flag
(Just flag) = (getFlag optionTerminator cfg)
(newCfg, stillUnused) = (effect cfg target unused)
--if option parsing fails, add "--"++<string> to... | 359 | false | true | 1 | 11 | 81 | 135 | 69 | 66 | null | null |
ekmett/ghc | compiler/codeGen/StgCmmEnv.hs | bsd-3-clause | bindToReg :: NonVoid Id -> LambdaFormInfo -> FCode LocalReg
-- Bind an Id to a fresh LocalReg
bindToReg nvid@(NonVoid id) lf_info
= do dflags <- getDynFlags
let reg = idToReg dflags nvid
addBindC (mkCgIdInfo id lf_info (CmmReg (CmmLocal reg)))
return reg | 277 | bindToReg :: NonVoid Id -> LambdaFormInfo -> FCode LocalReg
bindToReg nvid@(NonVoid id) lf_info
= do dflags <- getDynFlags
let reg = idToReg dflags nvid
addBindC (mkCgIdInfo id lf_info (CmmReg (CmmLocal reg)))
return reg | 243 | bindToReg nvid@(NonVoid id) lf_info
= do dflags <- getDynFlags
let reg = idToReg dflags nvid
addBindC (mkCgIdInfo id lf_info (CmmReg (CmmLocal reg)))
return reg | 183 | true | true | 5 | 11 | 63 | 90 | 45 | 45 | null | null |
glguy/ssh-hans | src/Network/SSH/Messages.hs | bsd-3-clause | getSshAlgs :: Get SshAlgs
getSshAlgs =
do sshClientToServer <- getNameList
sshServerToClient <- getNameList
return SshAlgs { .. } | 142 | getSshAlgs :: Get SshAlgs
getSshAlgs =
do sshClientToServer <- getNameList
sshServerToClient <- getNameList
return SshAlgs { .. } | 142 | getSshAlgs =
do sshClientToServer <- getNameList
sshServerToClient <- getNameList
return SshAlgs { .. } | 116 | false | true | 0 | 9 | 30 | 45 | 19 | 26 | null | null |
thomaslecointre/Distributed-Haskell | slave/PorterStemmer.hs | mit | porterStemmer :: String -- ^ The text where each word is on a new line
-> String -- ^ The text stemmed where each word stemmed is on a new line
porterStemmer text = unlines $ map stem $ lines text | 218 | porterStemmer :: String -- ^ The text where each word is on a new line
-> String
porterStemmer text = unlines $ map stem $ lines text | 153 | porterStemmer text = unlines $ map stem $ lines text | 52 | true | true | 0 | 7 | 62 | 34 | 17 | 17 | null | null |
shlevy/ghc | compiler/prelude/THNames.hs | bsd-3-clause | fromThenEIdKey = mkPreludeMiscIdUnique 291 | 45 | fromThenEIdKey = mkPreludeMiscIdUnique 291 | 45 | fromThenEIdKey = mkPreludeMiscIdUnique 291 | 45 | false | false | 0 | 5 | 6 | 9 | 4 | 5 | null | null |
gafiatulin/codewars | src/6 kyu/Carboat.hs | mit | howmuch :: Int -> Int -> [[String]]
howmuch m n = map (\m -> [ "M: " ++ show m
, "B: " ++ show (m `div` 7)
, "C: " ++ show (m `div` 9)])
. filter (\x -> (x `mod` 9) == 1 && (x `mod` 7) == 2)
$ [min m n .. max m n] | 287 | howmuch :: Int -> Int -> [[String]]
howmuch m n = map (\m -> [ "M: " ++ show m
, "B: " ++ show (m `div` 7)
, "C: " ++ show (m `div` 9)])
. filter (\x -> (x `mod` 9) == 1 && (x `mod` 7) == 2)
$ [min m n .. max m n] | 287 | howmuch m n = map (\m -> [ "M: " ++ show m
, "B: " ++ show (m `div` 7)
, "C: " ++ show (m `div` 9)])
. filter (\x -> (x `mod` 9) == 1 && (x `mod` 7) == 2)
$ [min m n .. max m n] | 251 | false | true | 3 | 11 | 132 | 162 | 86 | 76 | null | null |
brendanhay/gogol | gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs | mpl-2.0 | -- | Starting index of first stored bucket. The non-inclusive upper-bound of
-- the ith bucket is given by: pow(10,(i-first_bucket_offset)\/3) *
-- (1,2,5)[(i-first_bucket_offset)%3]
hFirstBucketOffSet :: Lens' Histogram (Maybe Int32)
hFirstBucketOffSet
= lens _hFirstBucketOffSet
(\ s a -> s{_hFirstBucketOffSet... | 350 | hFirstBucketOffSet :: Lens' Histogram (Maybe Int32)
hFirstBucketOffSet
= lens _hFirstBucketOffSet
(\ s a -> s{_hFirstBucketOffSet = a})
. mapping _Coerce | 167 | hFirstBucketOffSet
= lens _hFirstBucketOffSet
(\ s a -> s{_hFirstBucketOffSet = a})
. mapping _Coerce | 115 | true | true | 0 | 10 | 56 | 57 | 30 | 27 | null | null |
geophf/1HaskellADay | exercises/HAD/Y2016/M12/D14/Exercise.hs | mit | pauliX, pauliY, pauliZ :: PauliOperator
pauliX = undefined | 58 | pauliX, pauliY, pauliZ :: PauliOperator
pauliX = undefined | 58 | pauliX = undefined | 18 | false | true | 0 | 4 | 7 | 15 | 10 | 5 | null | null |
kim/amazonka | amazonka-elb/gen/Network/AWS/ELB/Types.hs | mpl-2.0 | -- | The logical hierarchy you created for your Amazon S3 bucket, for example 'my-bucket-prefix/prod'. If the prefix is not provided, the log is placed at the root level of the
-- bucket.
alS3BucketPrefix :: Lens' AccessLog (Maybe Text)
alS3BucketPrefix = lens _alS3BucketPrefix (\s a -> s { _alS3BucketPrefix = a }) | 316 | alS3BucketPrefix :: Lens' AccessLog (Maybe Text)
alS3BucketPrefix = lens _alS3BucketPrefix (\s a -> s { _alS3BucketPrefix = a }) | 128 | alS3BucketPrefix = lens _alS3BucketPrefix (\s a -> s { _alS3BucketPrefix = a }) | 79 | true | true | 0 | 9 | 51 | 47 | 26 | 21 | null | null |
vTurbine/ghc | compiler/basicTypes/OccName.hs | bsd-3-clause | mkForeignExportOcc = mk_simple_deriv varName "$f" | 51 | mkForeignExportOcc = mk_simple_deriv varName "$f" | 51 | mkForeignExportOcc = mk_simple_deriv varName "$f" | 51 | false | false | 0 | 5 | 6 | 11 | 5 | 6 | null | null |
nomeata/L-seed | src/Lseed/Constants.hs | bsd-3-clause | -- | Plant length growth per Day and Light
--
-- 1 means: Can grow one stipeLength during one day, when catching the sunlight
-- with one branch of (projected) length screenwidth
growthPerDayAndLight :: Double
growthPerDayAndLight = 40.0 | 237 | growthPerDayAndLight :: Double
growthPerDayAndLight = 40.0 | 58 | growthPerDayAndLight = 40.0 | 27 | true | true | 0 | 4 | 37 | 15 | 10 | 5 | null | null |
DavidAlphaFox/ghc | libraries/containers/Data/Set/Base.hs | bsd-3-clause | fromList (x0 : xs0) | not_ordered x0 xs0 = fromList' (Bin 1 x0 Tip Tip) xs0
| otherwise = go (1::Int) (Bin 1 x0 Tip Tip) xs0
where
not_ordered _ [] = False
not_ordered x (y : _) = x >= y
{-# INLINE not_ordered #-}
fromList' t0 xs = foldlStrict ins t0 xs
where ins t x = inser... | 1,660 | fromList (x0 : xs0) | not_ordered x0 xs0 = fromList' (Bin 1 x0 Tip Tip) xs0
| otherwise = go (1::Int) (Bin 1 x0 Tip Tip) xs0
where
not_ordered _ [] = False
not_ordered x (y : _) = x >= y
{-# INLINE not_ordered #-}
fromList' t0 xs = foldlStrict ins t0 xs
where ins t x = inser... | 1,660 | fromList (x0 : xs0) | not_ordered x0 xs0 = fromList' (Bin 1 x0 Tip Tip) xs0
| otherwise = go (1::Int) (Bin 1 x0 Tip Tip) xs0
where
not_ordered _ [] = False
not_ordered x (y : _) = x >= y
{-# INLINE not_ordered #-}
fromList' t0 xs = foldlStrict ins t0 xs
where ins t x = inser... | 1,660 | false | false | 23 | 12 | 663 | 537 | 304 | 233 | null | null |
vdweegen/UvA-Software_Testing | Lab2/Final/Exercises.hs | gpl-3.0 | convertChars :: String -> String
convertChars [] = "00" | 55 | convertChars :: String -> String
convertChars [] = "00" | 55 | convertChars [] = "00" | 22 | false | true | 0 | 6 | 8 | 20 | 10 | 10 | null | null |
MaxGabriel/yesod | yesod-core/Yesod/Core/Handler.hs | mit | -- | Deprecated synonym for addHeader.
setHeader :: MonadHandler m => Text -> Text -> m ()
setHeader = addHeader | 112 | setHeader :: MonadHandler m => Text -> Text -> m ()
setHeader = addHeader | 73 | setHeader = addHeader | 21 | true | true | 0 | 9 | 19 | 32 | 16 | 16 | null | null |
beni55/pretty | src/Text/PrettyPrint/HughesPJ.hs | bsd-3-clause | fits _ (Above {}) = error "fits Above" | 47 | fits _ (Above {}) = error "fits Above" | 47 | fits _ (Above {}) = error "fits Above" | 47 | false | false | 0 | 7 | 16 | 21 | 10 | 11 | null | null |
tim6her/halculator | Main.hs | mit | pars stack "ln" = pars stack "log" | 34 | pars stack "ln" = pars stack "log" | 34 | pars stack "ln" = pars stack "log" | 34 | false | false | 1 | 5 | 6 | 21 | 7 | 14 | null | null |
vikraman/ghc | compiler/hsSyn/HsLit.hs | bsd-3-clause | pmPprHsLit :: HsLit -> SDoc
pmPprHsLit (HsChar _ c) = pprHsChar c | 71 | pmPprHsLit :: HsLit -> SDoc
pmPprHsLit (HsChar _ c) = pprHsChar c | 71 | pmPprHsLit (HsChar _ c) = pprHsChar c | 43 | false | true | 0 | 7 | 17 | 29 | 14 | 15 | null | null |
olorin/amazonka | amazonka-storagegateway/gen/Network/AWS/StorageGateway/DescribeUploadBuffer.hs | mpl-2.0 | -- | Undocumented member.
dubrsUploadBufferUsedInBytes :: Lens' DescribeUploadBufferResponse (Maybe Integer)
dubrsUploadBufferUsedInBytes = lens _dubrsUploadBufferUsedInBytes (\ s a -> s{_dubrsUploadBufferUsedInBytes = a}) | 222 | dubrsUploadBufferUsedInBytes :: Lens' DescribeUploadBufferResponse (Maybe Integer)
dubrsUploadBufferUsedInBytes = lens _dubrsUploadBufferUsedInBytes (\ s a -> s{_dubrsUploadBufferUsedInBytes = a}) | 196 | dubrsUploadBufferUsedInBytes = lens _dubrsUploadBufferUsedInBytes (\ s a -> s{_dubrsUploadBufferUsedInBytes = a}) | 113 | true | true | 0 | 9 | 20 | 46 | 25 | 21 | null | null |
amccausl/Swish | Swish/HaskellRDF/N3ParserTest.hs | lgpl-2.1 | g1 = NSGraph
{ namespaces = nslist
, formulae = emptyFormulaMap
, statements = [t01]
} | 124 | g1 = NSGraph
{ namespaces = nslist
, formulae = emptyFormulaMap
, statements = [t01]
} | 124 | g1 = NSGraph
{ namespaces = nslist
, formulae = emptyFormulaMap
, statements = [t01]
} | 124 | false | false | 0 | 7 | 53 | 29 | 18 | 11 | null | null |
niswegmann/copilot-language | src/Copilot/Language/Operators/Extern.hs | bsd-3-clause | externW8 :: String -> Maybe [Word8] -> Stream Word8
externW8 = extern | 71 | externW8 :: String -> Maybe [Word8] -> Stream Word8
externW8 = extern | 71 | externW8 = extern | 18 | false | true | 0 | 9 | 13 | 34 | 15 | 19 | null | null |
ezyang/ghc | compiler/main/DriverMkDepend.hs | bsd-3-clause | -----------------------------------------------------------------
--
-- The main function
--
-----------------------------------------------------------------
doMkDependHS :: GhcMonad m => [FilePath] -> m ()
doMkDependHS srcs = do
-- Initialisation
dflags0 <- GHC.getSessionDynFlags
-- We klud... | 2,585 | doMkDependHS :: GhcMonad m => [FilePath] -> m ()
doMkDependHS srcs = do
-- Initialisation
dflags0 <- GHC.getSessionDynFlags
-- We kludge things a bit for dependency generation. Rather than
-- generating dependencies for each way separately, we generate
-- them once and then duplicate them for each ... | 2,412 | doMkDependHS srcs = do
-- Initialisation
dflags0 <- GHC.getSessionDynFlags
-- We kludge things a bit for dependency generation. Rather than
-- generating dependencies for each way separately, we generate
-- them once and then duplicate them for each way's osuf/hisuf.
-- We therefore do the init... | 2,363 | true | true | 0 | 13 | 632 | 358 | 184 | 174 | null | null |
HJvT/hdirect | src/Parser.hs | bsd-3-clause | action_343 (90#) = happyGoto action_29 | 38 | action_343 (90#) = happyGoto action_29 | 38 | action_343 (90#) = happyGoto action_29 | 38 | false | false | 0 | 6 | 4 | 15 | 7 | 8 | null | null |
hguenther/smtlib2 | Language/SMTLib2/Internals/Expression.hs | gpl-3.0 | renderFunction SMTRendering _ (Arith _ Minus _) = showChar '-' | 62 | renderFunction SMTRendering _ (Arith _ Minus _) = showChar '-' | 62 | renderFunction SMTRendering _ (Arith _ Minus _) = showChar '-' | 62 | false | false | 0 | 7 | 9 | 28 | 12 | 16 | null | null |
mariefarrell/Hets | Logic/Coerce.hs | gpl-2.0 | coerceSymbolmap ::
(Logic lid1 sublogics1 basic_spec1 sentence1 symb_items1 symb_map_items1
sign1 morphism1 symbol1 raw_symbol1 proof_tree1,
Logic lid2 sublogics2 basic_spec2 sentence2 symb_items2 symb_map_items2
sign2 morphism2 symbol2 raw_symbol2 proof_tree2,
Typeable a)
=>... | 417 | coerceSymbolmap ::
(Logic lid1 sublogics1 basic_spec1 sentence1 symb_items1 symb_map_items1
sign1 morphism1 symbol1 raw_symbol1 proof_tree1,
Logic lid2 sublogics2 basic_spec2 sentence2 symb_items2 symb_map_items2
sign2 morphism2 symbol2 raw_symbol2 proof_tree2,
Typeable a)
=>... | 417 | coerceSymbolmap = unsafeCoerce | 30 | false | true | 0 | 10 | 97 | 98 | 49 | 49 | null | null |
elben/typing-haskell-in-haskell | TypingHaskellInHaskell.hs | bsd-3-clause | tiAlts :: ClassEnv -> [Assump] -> [Alt] -> Type -> TI [Pred]
tiAlts ce as alts t = do psts <- mapM (tiAlt ce as) alts
mapM (unify t) (map snd psts)
return (concat (map fst psts))
-------------------------------------------------------------------------... | 324 | tiAlts :: ClassEnv -> [Assump] -> [Alt] -> Type -> TI [Pred]
tiAlts ce as alts t = do psts <- mapM (tiAlt ce as) alts
mapM (unify t) (map snd psts)
return (concat (map fst psts))
--------------------------------------------------------------------------... | 323 | tiAlts ce as alts t = do psts <- mapM (tiAlt ce as) alts
mapM (unify t) (map snd psts)
return (concat (map fst psts))
----------------------------------------------------------------------------- | 250 | false | true | 0 | 12 | 105 | 116 | 55 | 61 | null | null |
green-haskell/ghc | compiler/basicTypes/OccName.hs | bsd-3-clause | delListFromOccEnv (A x) y = A $ delListFromUFM x y | 51 | delListFromOccEnv (A x) y = A $ delListFromUFM x y | 51 | delListFromOccEnv (A x) y = A $ delListFromUFM x y | 51 | false | false | 0 | 7 | 10 | 26 | 12 | 14 | null | null |
opensuse-haskell/configuration | src/regression-test/regression-test.hs | gpl-3.0 | tests :: [(String, (Version, Revision))]
tests =
[ "- Update texmath to version 0.11.0.1." ~~> ("0.11.0.1", 0)
, "- Update to version 0.9.4.1." ~~> ("0.9.4.1", 0)
, "- Update to version 0.9.4 with cabal2obs." ~~> ("0.9.4", 0)
, "- Update to versio... | 882 | tests :: [(String, (Version, Revision))]
tests =
[ "- Update texmath to version 0.11.0.1." ~~> ("0.11.0.1", 0)
, "- Update to version 0.9.4.1." ~~> ("0.9.4.1", 0)
, "- Update to version 0.9.4 with cabal2obs." ~~> ("0.9.4", 0)
, "- Update to versio... | 882 | tests =
[ "- Update texmath to version 0.11.0.1." ~~> ("0.11.0.1", 0)
, "- Update to version 0.9.4.1." ~~> ("0.9.4.1", 0)
, "- Update to version 0.9.4 with cabal2obs." ~~> ("0.9.4", 0)
, "- Update to version 0.8.6.5 revision 0 with cabal2obs." ... | 841 | false | true | 0 | 7 | 311 | 156 | 96 | 60 | null | null |
rueshyna/gogol | gogol-affiliates/gen/Network/Google/Affiliates/Types/Product.hs | mpl-2.0 | -- | The name of this advertiser.
advName :: Lens' Advertiser (Maybe Text)
advName = lens _advName (\ s a -> s{_advName = a}) | 125 | advName :: Lens' Advertiser (Maybe Text)
advName = lens _advName (\ s a -> s{_advName = a}) | 91 | advName = lens _advName (\ s a -> s{_advName = a}) | 50 | true | true | 2 | 9 | 23 | 55 | 25 | 30 | null | null |
sulami/hGM | Handler/CampaignNew.hs | bsd-3-clause | campaignForm :: UserId -> Form Campaign
campaignForm user = renderSemantic $ Campaign
<$> areq textField "Name" Nothing
<*> pure user | 137 | campaignForm :: UserId -> Form Campaign
campaignForm user = renderSemantic $ Campaign
<$> areq textField "Name" Nothing
<*> pure user | 137 | campaignForm user = renderSemantic $ Campaign
<$> areq textField "Name" Nothing
<*> pure user | 97 | false | true | 7 | 7 | 23 | 55 | 23 | 32 | null | null |
dschalk/monads-for-functional-javascript | Fm.hs | mit | computation :: Double -> String -> Double -> Double
computation a b c | b == "+" = (+) a c
| b == "-" = (-) a c
| b == "*" = (*) a c
| b == "/" = (/) a c
| b == "Concatenate" = cat a c
| otherwise = 5000 | 308 | computation :: Double -> String -> Double -> Double
computation a b c | b == "+" = (+) a c
| b == "-" = (-) a c
| b == "*" = (*) a c
| b == "/" = (/) a c
| b == "Concatenate" = cat a c
| otherwise = 5000 | 308 | computation a b c | b == "+" = (+) a c
| b == "-" = (-) a c
| b == "*" = (*) a c
| b == "/" = (/) a c
| b == "Concatenate" = cat a c
| otherwise = 5000 | 256 | false | true | 1 | 9 | 161 | 146 | 70 | 76 | null | null |
kazu-yamamoto/iproute | Data/IP/RouteTable/Internal.hs | bsd-3-clause | search :: Routable k => AddrRange k
-> IPRTable k a
-> Maybe (AddrRange k, a)
-> Maybe (AddrRange k, a)
search _ Nil res = res | 189 | search :: Routable k => AddrRange k
-> IPRTable k a
-> Maybe (AddrRange k, a)
-> Maybe (AddrRange k, a)
search _ Nil res = res | 189 | search _ Nil res = res | 22 | false | true | 0 | 12 | 89 | 74 | 34 | 40 | null | null |
tricorder42/project-euler | 5_lcm/5_lcm.hs | bsd-3-clause | main :: IO ()
main = print . head . factorsUpTo 20 | 50 | main :: IO ()
main = print . head . factorsUpTo 20 | 50 | main = print . head . factorsUpTo 20 | 36 | false | true | 0 | 6 | 11 | 27 | 13 | 14 | null | null |
np/boolexpr | Data/BoolExpr.hs | bsd-3-clause | pushNotInwards BFalse = bFalse | 36 | pushNotInwards BFalse = bFalse | 36 | pushNotInwards BFalse = bFalse | 36 | false | false | 1 | 5 | 9 | 13 | 4 | 9 | null | null |
sgillespie/ghc | testsuite/tests/determinism/determ003/A.hs | bsd-3-clause | f :: Int -> Int
f n
| n >= 0 = 0
| otherwise = 0 | 52 | f :: Int -> Int
f n
| n >= 0 = 0
| otherwise = 0 | 52 | f n
| n >= 0 = 0
| otherwise = 0 | 36 | false | true | 1 | 8 | 20 | 41 | 18 | 23 | null | null |
gbaz/haskell-platform | hptool/src/ReleaseFiles.hs | bsd-3-clause | osName OsOSX = "Mac OS X" | 25 | osName OsOSX = "Mac OS X" | 25 | osName OsOSX = "Mac OS X" | 25 | false | false | 0 | 5 | 5 | 9 | 4 | 5 | null | null |
rueshyna/gogol | gogol-android-publisher/gen/Network/Google/AndroidPublisher/Types/Product.hs | mpl-2.0 | iaplTitle :: Lens' InAppProductListing (Maybe Text)
iaplTitle
= lens _iaplTitle (\ s a -> s{_iaplTitle = a}) | 110 | iaplTitle :: Lens' InAppProductListing (Maybe Text)
iaplTitle
= lens _iaplTitle (\ s a -> s{_iaplTitle = a}) | 110 | iaplTitle
= lens _iaplTitle (\ s a -> s{_iaplTitle = a}) | 58 | false | true | 0 | 9 | 18 | 47 | 24 | 23 | null | null |
BartAdv/Idris-dev | src/Idris/Error.hs | bsd-3-clause | warnDisamb ist (PQuoteName _) = return () | 41 | warnDisamb ist (PQuoteName _) = return () | 41 | warnDisamb ist (PQuoteName _) = return () | 41 | false | false | 0 | 7 | 6 | 23 | 10 | 13 | null | null |
atsukotakahashi/wi | src/library/Yi/Syntax/Tree.hs | gpl-2.0 | index n (_:t) = index (n-1) t | 29 | index n (_:t) = index (n-1) t | 29 | index n (_:t) = index (n-1) t | 29 | false | false | 0 | 7 | 6 | 30 | 15 | 15 | null | null |
well-typed/generics-sop | sop-core/src/Data/SOP/NS.hs | bsd-3-clause | -- | Specialization of 'hmap', which is equivalent to 'hliftA'.
map_SOP :: All SListI xss => (forall a. f a -> g a) -> SOP f xss -> SOP g xss
map_NS = hmap | 157 | map_SOP :: All SListI xss => (forall a. f a -> g a) -> SOP f xss -> SOP g xss
map_NS = hmap | 92 | map_NS = hmap | 14 | true | true | 0 | 11 | 35 | 63 | 29 | 34 | null | null |
timtylin/scholdoc | src/Text/Pandoc/Writers/Docx.hs | gpl-2.0 | blockToOpenXML opts (DefinitionList items) =
concat `fmap` mapM (definitionListItemToOpenXML opts) items | 106 | blockToOpenXML opts (DefinitionList items) =
concat `fmap` mapM (definitionListItemToOpenXML opts) items | 106 | blockToOpenXML opts (DefinitionList items) =
concat `fmap` mapM (definitionListItemToOpenXML opts) items | 106 | false | false | 0 | 8 | 12 | 34 | 17 | 17 | null | null |
joshcough/L5-Haskell | src/L/L4/ANormalize.hs | mit | aNormalize :: L4 -> L3
aNormalize l4 = fst $ runState (aNormalizeS l4) 0 | 72 | aNormalize :: L4 -> L3
aNormalize l4 = fst $ runState (aNormalizeS l4) 0 | 72 | aNormalize l4 = fst $ runState (aNormalizeS l4) 0 | 49 | false | true | 0 | 8 | 13 | 38 | 17 | 21 | null | null |
athleens/pads-haskell | Examples/HPROF.hs | bsd-3-clause | -- returns the number of bytes consumed to read n entries
lenupto n = hdrlen + (foldr (+) 0 $ map ((+9) . len) $ Prelude.take n $ entries result) | 145 | lenupto n = hdrlen + (foldr (+) 0 $ map ((+9) . len) $ Prelude.take n $ entries result) | 87 | lenupto n = hdrlen + (foldr (+) 0 $ map ((+9) . len) $ Prelude.take n $ entries result) | 87 | true | false | 0 | 13 | 29 | 58 | 30 | 28 | null | null |
shlevy/ghc | compiler/codeGen/StgCmmProf.hs | bsd-3-clause | mkCCostCentreStack :: CostCentreStack -> CmmLit
mkCCostCentreStack ccs = CmmLabel (mkCCSLabel ccs) | 98 | mkCCostCentreStack :: CostCentreStack -> CmmLit
mkCCostCentreStack ccs = CmmLabel (mkCCSLabel ccs) | 98 | mkCCostCentreStack ccs = CmmLabel (mkCCSLabel ccs) | 50 | false | true | 0 | 7 | 10 | 27 | 13 | 14 | null | null |
wavewave/madgraph-auto-dataset | src/HEP/Automation/MadGraph/Dataset/Set20110710set6.hs | gpl-3.0 | psetuplist :: [ProcessSetup ZpH ]
psetuplist = [ processsetup ] | 63 | psetuplist :: [ProcessSetup ZpH ]
psetuplist = [ processsetup ] | 63 | psetuplist = [ processsetup ] | 29 | false | true | 0 | 8 | 9 | 27 | 12 | 15 | null | null |
pminten/xhaskell | list-ops/ListOps.hs | mit | length :: [a] -> Int
length = undefined | 39 | length :: [a] -> Int
length = undefined | 39 | length = undefined | 18 | false | true | 0 | 7 | 7 | 25 | 11 | 14 | null | null |
ezyang/ghc | compiler/basicTypes/OccName.hs | bsd-3-clause | isValNameSpace VarName = True | 30 | isValNameSpace VarName = True | 30 | isValNameSpace VarName = True | 30 | false | false | 0 | 5 | 4 | 9 | 4 | 5 | null | null |
alang9/deque | Data/Deque/NonCat.hs | bsd-3-clause | combine f@(GG _ _) ls@(BigG _ _ _) = BigG f N ls | 48 | combine f@(GG _ _) ls@(BigG _ _ _) = BigG f N ls | 48 | combine f@(GG _ _) ls@(BigG _ _ _) = BigG f N ls | 48 | false | false | 0 | 8 | 12 | 42 | 21 | 21 | null | null |
ezyang/ghc | compiler/typecheck/TcRnTypes.hs | bsd-3-clause | isEmptyCts :: Cts -> Bool
isEmptyCts = isEmptyBag | 49 | isEmptyCts :: Cts -> Bool
isEmptyCts = isEmptyBag | 49 | isEmptyCts = isEmptyBag | 23 | false | true | 0 | 7 | 7 | 22 | 9 | 13 | null | null |
tpsinnem/Idris-dev | src/Idris/IBC.hs | bsd-3-clause | processImports :: Bool -> IBCPhase -> Archive -> Idris ()
processImports reexp phase ar = do
fs <- getEntry [] "ibc_imports" ar
mapM_ (\(re, f) -> do
i <- getIState
ibcsd <- valIBCSubDir i
ids <- allImportDirs
fp <- findImport ids ibcsd f
-- if (f `elem` im... | 868 | processImports :: Bool -> IBCPhase -> Archive -> Idris ()
processImports reexp phase ar = do
fs <- getEntry [] "ibc_imports" ar
mapM_ (\(re, f) -> do
i <- getIState
ibcsd <- valIBCSubDir i
ids <- allImportDirs
fp <- findImport ids ibcsd f
-- if (f `elem` im... | 868 | processImports reexp phase ar = do
fs <- getEntry [] "ibc_imports" ar
mapM_ (\(re, f) -> do
i <- getIState
ibcsd <- valIBCSubDir i
ids <- allImportDirs
fp <- findImport ids ibcsd f
-- if (f `elem` imported i)
-- then logLvl 1 $ "Alre... | 810 | false | true | 0 | 20 | 391 | 264 | 120 | 144 | null | null |
emwap/feldspar-complexity | Feldspar/Complexity.hs | bsd-3-clause | variable :: (Variable :<: dom) => VarId -> ASTF dom WordN
variable v = appSym (Variable v) | 90 | variable :: (Variable :<: dom) => VarId -> ASTF dom WordN
variable v = appSym (Variable v) | 90 | variable v = appSym (Variable v) | 32 | false | true | 0 | 7 | 16 | 43 | 21 | 22 | null | null |
dysinger/amazonka | amazonka-cognito-identity/gen/Network/AWS/CognitoIdentity/DescribeIdentity.hs | mpl-2.0 | -- | A unique identifier in the format REGION:GUID.
diIdentityId :: Lens' DescribeIdentity Text
diIdentityId = lens _diIdentityId (\s a -> s { _diIdentityId = a }) | 163 | diIdentityId :: Lens' DescribeIdentity Text
diIdentityId = lens _diIdentityId (\s a -> s { _diIdentityId = a }) | 111 | diIdentityId = lens _diIdentityId (\s a -> s { _diIdentityId = a }) | 67 | true | true | 0 | 9 | 26 | 40 | 22 | 18 | null | null |
wavewave/lhc-analysis-collection | lib/HEP/Physics/Analysis/Common/PhyEventNoTau.hs | gpl-3.0 | mkPhyEventNoTau :: PhyEventClassified -> PhyEventNoTau
mkPhyEventNoTau PhyEventClassified {..} =
PhyEventNoTau { nt_eventId = eventid
, nt_photons = map snd photonlst
, nt_electrons = map snd electronlst
, nt_muons = map snd muonlst
, nt_jets ... | 507 | mkPhyEventNoTau :: PhyEventClassified -> PhyEventNoTau
mkPhyEventNoTau PhyEventClassified {..} =
PhyEventNoTau { nt_eventId = eventid
, nt_photons = map snd photonlst
, nt_electrons = map snd electronlst
, nt_muons = map snd muonlst
, nt_jets ... | 507 | mkPhyEventNoTau PhyEventClassified {..} =
PhyEventNoTau { nt_eventId = eventid
, nt_photons = map snd photonlst
, nt_electrons = map snd electronlst
, nt_muons = map snd muonlst
, nt_jets = (map snd . ptordering . (jetlst ++) . map ((,) <$> fs... | 452 | false | true | 0 | 14 | 191 | 132 | 72 | 60 | null | null |
romanb/amazonka | amazonka-importexport/gen/Network/AWS/ImportExport/CreateJob.hs | mpl-2.0 | cjManifest :: Lens' CreateJob Text
cjManifest = lens _cjManifest (\s a -> s { _cjManifest = a }) | 96 | cjManifest :: Lens' CreateJob Text
cjManifest = lens _cjManifest (\s a -> s { _cjManifest = a }) | 96 | cjManifest = lens _cjManifest (\s a -> s { _cjManifest = a }) | 61 | false | true | 0 | 9 | 17 | 39 | 21 | 18 | null | null |
airobert/yices_haskell | Math/SMT/Yices/Syntax.hs | bsd-3-clause | showExpY (LitB False) = showString "false" | 42 | showExpY (LitB False) = showString "false" | 42 | showExpY (LitB False) = showString "false" | 42 | false | false | 0 | 7 | 5 | 18 | 8 | 10 | null | null |
chrisdone/path | src/Path/Include.hs | bsd-3-clause | -- | Take the parent path component from a path.
--
-- The following properties hold:
--
-- @
-- parent (x \<\/> y) == x
-- parent \"\/x\" == \"\/\"
-- parent \"x\" == \".\"
-- @
--
-- On the root (absolute or relative), getting the parent is idempotent:
--
-- @
-- parent \"\/\" = \"\/\"
-- parent \"\.\" = \"\.\"
-- @
... | 382 | parent :: Path b t -> Path b Dir
parent (Path "") = Path "" | 59 | parent (Path "") = Path "" | 26 | true | true | 0 | 7 | 81 | 54 | 34 | 20 | null | null |
gibiansky/hlint | src/HSE/Scope.hs | bsd-3-clause | possImport :: ImportDecl S -> QName S -> Bool
possImport i Special{} = False | 76 | possImport :: ImportDecl S -> QName S -> Bool
possImport i Special{} = False | 76 | possImport i Special{} = False | 30 | false | true | 1 | 7 | 13 | 41 | 17 | 24 | null | null |
beni55/libmpd-haskell | tests/UtilSpec.hs | mit | prop_splitGroups_rev :: [(ByteString, ByteString)] -> Property
prop_splitGroups_rev xs = not (null xs) ==>
let wrappers = [fst $ head xs]
r = splitGroups wrappers xs
in r == splitGroups wrappers (concat r) | 221 | prop_splitGroups_rev :: [(ByteString, ByteString)] -> Property
prop_splitGroups_rev xs = not (null xs) ==>
let wrappers = [fst $ head xs]
r = splitGroups wrappers xs
in r == splitGroups wrappers (concat r) | 221 | prop_splitGroups_rev xs = not (null xs) ==>
let wrappers = [fst $ head xs]
r = splitGroups wrappers xs
in r == splitGroups wrappers (concat r) | 158 | false | true | 0 | 12 | 47 | 86 | 43 | 43 | null | null |
vlegout/draw | Diagram.hs | mit | rintText :: Double -> Double -> String -> Size -> Render ()
printText x y s size = do
layout <- createLayout ""
liftIO $ layoutSetMarkup layout $ markSpan [FontSize size] s
(PangoRectangle _ _ textWidth _, _) <- liftIO $ layoutGetExtents layout
moveTo (x - textWidth / 2) y
... | 342 | printText :: Double -> Double -> String -> Size -> Render ()
printText x y s size = do
layout <- createLayout ""
liftIO $ layoutSetMarkup layout $ markSpan [FontSize size] s
(PangoRectangle _ _ textWidth _, _) <- liftIO $ layoutGetExtents layout
moveTo (x - textWidth / 2) y
... | 342 | printText x y s size = do
layout <- createLayout ""
liftIO $ layoutSetMarkup layout $ markSpan [FontSize size] s
(PangoRectangle _ _ textWidth _, _) <- liftIO $ layoutGetExtents layout
moveTo (x - textWidth / 2) y
showLayout layout | 281 | false | true | 0 | 11 | 102 | 134 | 61 | 73 | null | null |
keitax/wikirick | spec/RepositorySpec.hs | bsd-3-clause | editDate' :: Traversal' Article Time.UTCTime
editDate' = editLog . _Just . editDate | 83 | editDate' :: Traversal' Article Time.UTCTime
editDate' = editLog . _Just . editDate | 83 | editDate' = editLog . _Just . editDate | 38 | false | true | 2 | 6 | 11 | 30 | 13 | 17 | null | null |
brianshourd/adventOfCode2016 | src/Day23.hs | mit | -- Final, top-level exports
day23 :: String -> Int
day23 = readRegister 'a' . evaluate . writeRegister 'a' 7 . start . parseInput | 129 | day23 :: String -> Int
day23 = readRegister 'a' . evaluate . writeRegister 'a' 7 . start . parseInput | 101 | day23 = readRegister 'a' . evaluate . writeRegister 'a' 7 . start . parseInput | 78 | true | true | 0 | 9 | 22 | 40 | 20 | 20 | null | null |
tolysz/prepare-ghcjs | spec-lts8/cabal/cabal-install/Distribution/Client/Dependency/TopDown.hs | bsd-3-clause | configurePackage :: Platform -> CompilerInfo -> ConfigurePackage
configurePackage platform cinfo available spkg = case spkg of
InstalledOnly ipkg -> Right (InstalledOnly ipkg)
SourceOnly apkg -> fmap SourceOnly (configure apkg)
InstalledAndSource ipkg apkg -> fmap (InstalledAndSource ipkg)
... | 1,001 | configurePackage :: Platform -> CompilerInfo -> ConfigurePackage
configurePackage platform cinfo available spkg = case spkg of
InstalledOnly ipkg -> Right (InstalledOnly ipkg)
SourceOnly apkg -> fmap SourceOnly (configure apkg)
InstalledAndSource ipkg apkg -> fmap (InstalledAndSource ipkg)
... | 1,001 | configurePackage platform cinfo available spkg = case spkg of
InstalledOnly ipkg -> Right (InstalledOnly ipkg)
SourceOnly apkg -> fmap SourceOnly (configure apkg)
InstalledAndSource ipkg apkg -> fmap (InstalledAndSource ipkg)
(configure apkg)
where
... | 936 | false | true | 5 | 11 | 283 | 227 | 112 | 115 | null | null |
brendanhay/gogol | gogol-shopping-content/gen/Network/Google/ShoppingContent/Types/Product.hs | mpl-2.0 | -- | Address of the pickup location where the shipment should be sent. Note
-- that \`recipientName\` in the address is the name of the business at the
-- pickup location.
opdAddress :: Lens' OrderPickupDetails (Maybe OrderAddress)
opdAddress
= lens _opdAddress (\ s a -> s{_opdAddress = a}) | 293 | opdAddress :: Lens' OrderPickupDetails (Maybe OrderAddress)
opdAddress
= lens _opdAddress (\ s a -> s{_opdAddress = a}) | 121 | opdAddress
= lens _opdAddress (\ s a -> s{_opdAddress = a}) | 61 | true | true | 0 | 9 | 49 | 50 | 27 | 23 | null | null |
fffej/haskellprojects | ants/AntsVis.hs | bsd-2-clause | -- |Evaporation time
evapTick :: Int
evapTick = 100 | 51 | evapTick :: Int
evapTick = 100 | 30 | evapTick = 100 | 14 | true | true | 0 | 6 | 8 | 19 | 8 | 11 | null | null |
ulricha/dsh | src/Database/DSH/VSL/Construct.hs | bsd-3-clause | segment :: Ordish r e => DVec -> VSLBuild r e DVec
segment dv = bindOp $ VSL $ UnOp VSL.Segment (extract dv) | 108 | segment :: Ordish r e => DVec -> VSLBuild r e DVec
segment dv = bindOp $ VSL $ UnOp VSL.Segment (extract dv) | 108 | segment dv = bindOp $ VSL $ UnOp VSL.Segment (extract dv) | 57 | false | true | 0 | 8 | 22 | 55 | 26 | 29 | null | null |
plumlife/cabal | cabal-install/tests/PackageTests/BuildCompilerFlags/Util.hs | bsd-3-clause | testHcPkgPath, testCompilerPath :: PT.TestsPaths -> FilePath
testCompilerPath paths =
fromJust (PT.tempDir paths) </> testCompiler | 132 | testHcPkgPath, testCompilerPath :: PT.TestsPaths -> FilePath
testCompilerPath paths =
fromJust (PT.tempDir paths) </> testCompiler | 132 | testCompilerPath paths =
fromJust (PT.tempDir paths) </> testCompiler | 71 | false | true | 0 | 9 | 15 | 37 | 19 | 18 | null | null |
elieux/ghc | compiler/hsSyn/HsUtils.hs | bsd-3-clause | collectMethodBinders :: LHsBindsLR RdrName idR -> [Located RdrName]
-- Used exclusively for the bindings of an instance decl which are all FunBinds
collectMethodBinders binds = foldrBag (get . unLoc) [] binds
where
get (FunBind { fun_id = f }) fs = f : fs
get _ fs = fs
-- Someone... | 411 | collectMethodBinders :: LHsBindsLR RdrName idR -> [Located RdrName]
collectMethodBinders binds = foldrBag (get . unLoc) [] binds
where
get (FunBind { fun_id = f }) fs = f : fs
get _ fs = fs
-- Someone else complains about non-FunBinds
----------------- Statements ---------------... | 331 | collectMethodBinders binds = foldrBag (get . unLoc) [] binds
where
get (FunBind { fun_id = f }) fs = f : fs
get _ fs = fs
-- Someone else complains about non-FunBinds
----------------- Statements -------------------------- | 263 | true | true | 1 | 9 | 98 | 93 | 46 | 47 | null | null |
tpoulsen/generate-component | test/ParserSpec.hs | bsd-3-clause | testParseOneOfType = do
let parsedValue = A.parseOnly parseOneOfType "oneOfType([object, number, func])"
assertEqual "success - oneOfType([string, number, func])" (Right $ OneOfType [Object,Number,Func]) parsedValue
let missingBrackets = A.parseOnly parseOneOfType "oneOfType(string, noop, number)"
assertEqual "... | 603 | testParseOneOfType = do
let parsedValue = A.parseOnly parseOneOfType "oneOfType([object, number, func])"
assertEqual "success - oneOfType([string, number, func])" (Right $ OneOfType [Object,Number,Func]) parsedValue
let missingBrackets = A.parseOnly parseOneOfType "oneOfType(string, noop, number)"
assertEqual "... | 603 | testParseOneOfType = do
let parsedValue = A.parseOnly parseOneOfType "oneOfType([object, number, func])"
assertEqual "success - oneOfType([string, number, func])" (Right $ OneOfType [Object,Number,Func]) parsedValue
let missingBrackets = A.parseOnly parseOneOfType "oneOfType(string, noop, number)"
assertEqual "... | 603 | false | false | 0 | 11 | 71 | 115 | 53 | 62 | null | null |
snoyberg/ghc | compiler/hsSyn/HsUtils.hs | bsd-3-clause | ----------------- Patterns --------------------------
collectPatBinders :: LPat a -> [a]
collectPatBinders pat = collect_lpat pat [] | 132 | collectPatBinders :: LPat a -> [a]
collectPatBinders pat = collect_lpat pat [] | 78 | collectPatBinders pat = collect_lpat pat [] | 43 | true | true | 0 | 8 | 14 | 37 | 17 | 20 | null | null |
davdar/quals | src/Lang/Lam/Passes/B_CPSConvert.hs | bsd-3-clause | reflect :: (M m) => SGPico -> CPSKon SGCall m SGPico
reflect kx = ObjectKon kx $ \ ax -> do
i <- nextL callIDL
return $ StampedFix i $ AppK kx ax | 149 | reflect :: (M m) => SGPico -> CPSKon SGCall m SGPico
reflect kx = ObjectKon kx $ \ ax -> do
i <- nextL callIDL
return $ StampedFix i $ AppK kx ax | 149 | reflect kx = ObjectKon kx $ \ ax -> do
i <- nextL callIDL
return $ StampedFix i $ AppK kx ax | 96 | false | true | 0 | 11 | 36 | 75 | 35 | 40 | null | null |
byteally/webapi | webapi-swagger/src/SwaggerGen.hs | bsd-3-clause | responseTypeName :: ResponseType a -> T.Text
responseTypeName (ApiOutput _) = "ApiOutput" | 93 | responseTypeName :: ResponseType a -> T.Text
responseTypeName (ApiOutput _) = "ApiOutput" | 93 | responseTypeName (ApiOutput _) = "ApiOutput" | 48 | false | true | 0 | 7 | 14 | 29 | 14 | 15 | null | null |
FranklinChen/hugs98-plus-Sep2006 | packages/GLUT/Graphics/UI/GLUT/Constants.hs | bsd-3-clause | -----------------------------------------------------------------------------
-- * @glutLayerGet@ parameters
glut_OVERLAY_POSSIBLE, glut_LAYER_IN_USE, glut_HAS_OVERLAY,
glut_TRANSPARENT_INDEX, glut_NORMAL_DAMAGED, glut_OVERLAY_DAMAGED :: GLenum
glut_OVERLAY_POSSIBLE = 800 | 293 | glut_OVERLAY_POSSIBLE, glut_LAYER_IN_USE, glut_HAS_OVERLAY,
glut_TRANSPARENT_INDEX, glut_NORMAL_DAMAGED, glut_OVERLAY_DAMAGED :: GLenum
glut_OVERLAY_POSSIBLE = 800 | 183 | glut_OVERLAY_POSSIBLE = 800 | 44 | true | true | 0 | 4 | 36 | 23 | 18 | 5 | null | null |
ditto/ditto | src/Ditto/Pretty.hs | gpl-3.0 | hiddenPat vis _ = False | 23 | hiddenPat vis _ = False | 23 | hiddenPat vis _ = False | 23 | false | false | 0 | 5 | 4 | 11 | 5 | 6 | null | null |
vasily-kartashov/playground | euler/problem-019.hs | apache-2.0 | next (Day d m y w)
| d == 30 && (m == 4 || m == 6 || m == 9 || m == 11) = Day 1 (m + 1) y w'
| d == 31 && (m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10) = Day 1 (m + 1) y w'
| d == 31 && m == 12 = Day 1 1 (y + 1) w'
| d == 28 &... | 770 | next (Day d m y w)
| d == 30 && (m == 4 || m == 6 || m == 9 || m == 11) = Day 1 (m + 1) y w'
| d == 31 && (m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10) = Day 1 (m + 1) y w'
| d == 31 && m == 12 = Day 1 1 (y + 1) w'
| d == 28 &... | 770 | next (Day d m y w)
| d == 30 && (m == 4 || m == 6 || m == 9 || m == 11) = Day 1 (m + 1) y w'
| d == 31 && (m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10) = Day 1 (m + 1) y w'
| d == 31 && m == 12 = Day 1 1 (y + 1) w'
| d == 28 &... | 770 | false | false | 3 | 20 | 459 | 405 | 198 | 207 | null | null |
rlpowell/hblog | lib/HBlog/Rectifier.hs | mit | headersQuery (Left e) file = error $ "Pandoc error! on file " ++ file ++ ": " ++ (show e) | 89 | headersQuery (Left e) file = error $ "Pandoc error! on file " ++ file ++ ": " ++ (show e) | 89 | headersQuery (Left e) file = error $ "Pandoc error! on file " ++ file ++ ": " ++ (show e) | 89 | false | false | 0 | 8 | 19 | 39 | 19 | 20 | null | null |
kim/amazonka | amazonka-storagegateway/gen/Network/AWS/StorageGateway/ListVolumeRecoveryPoints.hs | mpl-2.0 | lvrpGatewayARN :: Lens' ListVolumeRecoveryPoints Text
lvrpGatewayARN = lens _lvrpGatewayARN (\s a -> s { _lvrpGatewayARN = a }) | 127 | lvrpGatewayARN :: Lens' ListVolumeRecoveryPoints Text
lvrpGatewayARN = lens _lvrpGatewayARN (\s a -> s { _lvrpGatewayARN = a }) | 127 | lvrpGatewayARN = lens _lvrpGatewayARN (\s a -> s { _lvrpGatewayARN = a }) | 73 | false | true | 1 | 9 | 17 | 44 | 21 | 23 | null | null |
DanielSchuessler/hstri | Blender/Types.hs | gpl-3.0 | defaultRenderSettings :: RenderSettings
defaultRenderSettings = RS {
render_resolution_x = 1920,
render_resolution_y = 1080,
render_filepath = Nothing
} | 164 | defaultRenderSettings :: RenderSettings
defaultRenderSettings = RS {
render_resolution_x = 1920,
render_resolution_y = 1080,
render_filepath = Nothing
} | 164 | defaultRenderSettings = RS {
render_resolution_x = 1920,
render_resolution_y = 1080,
render_filepath = Nothing
} | 124 | false | true | 0 | 7 | 28 | 41 | 21 | 20 | null | null |
GaloisInc/ivory-backend-acl2 | src/Ivory/Compile/ACL2/CPS.hs | bsd-3-clause | removeNullEffect :: Proc -> Proc
removeNullEffect (Proc name args measure body) = Proc name args measure $ r body
where
r :: Cont -> Cont
r a = case a of
Halt -> Halt
Call a b Nothing -> Call a b Nothing
Call a b (Just c) -> Call a b $ Just $ r c
Return a -> Return a
Push a b ... | 619 | removeNullEffect :: Proc -> Proc
removeNullEffect (Proc name args measure body) = Proc name args measure $ r body
where
r :: Cont -> Cont
r a = case a of
Halt -> Halt
Call a b Nothing -> Call a b Nothing
Call a b (Just c) -> Call a b $ Just $ r c
Return a -> Return a
Push a b ... | 619 | removeNullEffect (Proc name args measure body) = Proc name args measure $ r body
where
r :: Cont -> Cont
r a = case a of
Halt -> Halt
Call a b Nothing -> Call a b Nothing
Call a b (Just c) -> Call a b $ Just $ r c
Return a -> Return a
Push a b -> Push a $ r b
Let a b ... | 586 | false | true | 0 | 12 | 261 | 316 | 143 | 173 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.