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
liefswanson/projectEuler
src/Primes.hs
gpl-2.0
primeFactors :: Integral a => a -> [a] primeFactors n | n == 0 = [] | n < 0 = -1:primeFactors (-n) | otherwise = primeFactorsHelper (map fromIntegral [2..]) n
171
primeFactors :: Integral a => a -> [a] primeFactors n | n == 0 = [] | n < 0 = -1:primeFactors (-n) | otherwise = primeFactorsHelper (map fromIntegral [2..]) n
171
primeFactors n | n == 0 = [] | n < 0 = -1:primeFactors (-n) | otherwise = primeFactorsHelper (map fromIntegral [2..]) n
132
false
true
1
9
43
92
45
47
null
null
glguy/config-schema
src/Config/Schema/Types.hs
isc
-- Helper for extracting the the value stored in a 'Coyoneda' while forgetting its -- type index. runCoyoneda_ :: (forall a. f a -> m) -> Coyoneda f b -> m runCoyoneda_ f = getConst . runCoyoneda (Const . f)
207
runCoyoneda_ :: (forall a. f a -> m) -> Coyoneda f b -> m runCoyoneda_ f = getConst . runCoyoneda (Const . f)
109
runCoyoneda_ f = getConst . runCoyoneda (Const . f)
51
true
true
0
9
39
58
30
28
null
null
DimaSamoz/thodo
src/Commands/Add/Parser.hs
mit
-- | Parses the category of the task. parseAddCategory :: Parser Category parseAddCategory = today <|> tomorrow <|> thisWeek <|> nextWeek <|> thisMonth <|> nextMonth <|> customCategory <|> pure (RelTime Today)
245
parseAddCategory :: Parser Category parseAddCategory = today <|> tomorrow <|> thisWeek <|> nextWeek <|> thisMonth <|> nextMonth <|> customCategory <|> pure (RelTime Today)
207
parseAddCategory = today <|> tomorrow <|> thisWeek <|> nextWeek <|> thisMonth <|> nextMonth <|> customCategory <|> pure (RelTime Today)
171
true
true
0
11
66
52
26
26
null
null
dysinger/amazonka
amazonka-route53-domains/gen/Network/AWS/Route53Domains/UpdateDomainContactPrivacy.hs
mpl-2.0
-- | Identifier for tracking the progress of the request. To use this ID to query -- the operation status, use GetOperationDetail. -- -- Type: String -- -- Default: None -- -- Constraints: Maximum 255 characters. udcprOperationId :: Lens' UpdateDomainContactPrivacyResponse Text udcprOperationId = lens _udcprOperationId...
358
udcprOperationId :: Lens' UpdateDomainContactPrivacyResponse Text udcprOperationId = lens _udcprOperationId (\s a -> s { _udcprOperationId = a })
145
udcprOperationId = lens _udcprOperationId (\s a -> s { _udcprOperationId = a })
79
true
true
0
9
53
47
29
18
null
null
DanielSchiavini/ampersand
src/Database/Design/Ampersand/FSpec/ShowHS.hs
gpl-3.0
wrap :: String->String->(String->a->String)->[a]->String wrap initStr indent f xs = initStr++ case xs of [] -> "[]" [x] -> "[ "++f (indent++" ") x++" ]" _ -> "[ "++intercalate (indent++", ") [f (indent++" ") x | x<-xs]++indent++"]"
255
wrap :: String->String->(String->a->String)->[a]->String wrap initStr indent f xs = initStr++ case xs of [] -> "[]" [x] -> "[ "++f (indent++" ") x++" ]" _ -> "[ "++intercalate (indent++", ") [f (indent++" ") x | x<-xs]++indent++"]"
255
wrap initStr indent f xs = initStr++ case xs of [] -> "[]" [x] -> "[ "++f (indent++" ") x++" ]" _ -> "[ "++intercalate (indent++", ") [f (indent++" ") x | x<-xs]++indent++"]"
198
false
true
2
15
59
156
77
79
null
null
Hodapp87/ivory
ivory-eval/src/Ivory/Eval.hs
bsd-3-clause
numBinOp op (Uint64 x) (Uint64 y) = Uint64 (op x y)
51
numBinOp op (Uint64 x) (Uint64 y) = Uint64 (op x y)
51
numBinOp op (Uint64 x) (Uint64 y) = Uint64 (op x y)
51
false
false
0
7
10
36
17
19
null
null
mfpi/configs
xmonad/xmonad.hs
mit
myXPConfig :: XPConfig myXPConfig = greenXPConfig { font = "xft:Profont:pixelsize=15:autohint=true" }
101
myXPConfig :: XPConfig myXPConfig = greenXPConfig { font = "xft:Profont:pixelsize=15:autohint=true" }
101
myXPConfig = greenXPConfig { font = "xft:Profont:pixelsize=15:autohint=true" }
78
false
true
0
6
10
19
11
8
null
null
nushio3/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
breakpointCondJumpIdKey = mkPreludeMiscIdUnique 114
57
breakpointCondJumpIdKey = mkPreludeMiscIdUnique 114
57
breakpointCondJumpIdKey = mkPreludeMiscIdUnique 114
57
false
false
0
5
9
9
4
5
null
null
quintenpalmer/fresh
haskell/src/Parser/Chomper.hs
mit
chomp_open_lambda_params :: [Token] -> [Token] chomp_open_lambda_params tokens = assert_chomping Tokens.LBracket tokens "lambda"
132
chomp_open_lambda_params :: [Token] -> [Token] chomp_open_lambda_params tokens = assert_chomping Tokens.LBracket tokens "lambda"
132
chomp_open_lambda_params tokens = assert_chomping Tokens.LBracket tokens "lambda"
85
false
true
0
6
15
33
17
16
null
null
rueshyna/gogol
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs
mpl-2.0
-- | Identifies what kind of resource this is. Value: the fixed string -- \"androidenterprise#signupInfo\". siKind :: Lens' SignupInfo Text siKind = lens _siKind (\ s a -> s{_siKind = a})
187
siKind :: Lens' SignupInfo Text siKind = lens _siKind (\ s a -> s{_siKind = a})
79
siKind = lens _siKind (\ s a -> s{_siKind = a})
47
true
true
1
9
30
45
23
22
null
null
bennofs/cabal2nix
src/Distribution/Nixpkgs/Haskell/FromCabal/Name.hs
bsd-3-clause
libNixName "uuid" = return "libossp_uuid"
71
libNixName "uuid" = return "libossp_uuid"
71
libNixName "uuid" = return "libossp_uuid"
71
false
false
0
5
34
13
5
8
null
null
donatorolo/haskinator
Oraculo.hs
bsd-3-clause
-------------------------------------------------------------------------------- -- | pregunta: Esta función recibe un 'Oraculo' y devuelve la cadena de -- caracteres, siempre y cuando sea una 'Pregunta'. pregunta :: Oraculo -> String pregunta (Pregunta a _ _) = a
278
pregunta :: Oraculo -> String pregunta (Pregunta a _ _) = a
59
pregunta (Pregunta a _ _) = a
29
true
true
0
7
47
31
17
14
null
null
BeautifulDestinations/hs-flickr
Flickr/Places.hs
bsd-3-clause
resolvePlaceId :: PlaceID -> FM LocationPlace resolvePlaceId pid = flickTranslate toLocationPlace $ flickrCall "flickr.places.resolvePlaceId" [("place_id", pid)]
169
resolvePlaceId :: PlaceID -> FM LocationPlace resolvePlaceId pid = flickTranslate toLocationPlace $ flickrCall "flickr.places.resolvePlaceId" [("place_id", pid)]
169
resolvePlaceId pid = flickTranslate toLocationPlace $ flickrCall "flickr.places.resolvePlaceId" [("place_id", pid)]
123
false
true
0
8
23
42
21
21
null
null
ksaveljev/hake-2
src/CVarVariables.hs
bsd-3-clause
gl3DLabsBrokenCVar = CVar.getExisting "gl_3dlabs_broken"
66
gl3DLabsBrokenCVar = CVar.getExisting "gl_3dlabs_broken"
66
gl3DLabsBrokenCVar = CVar.getExisting "gl_3dlabs_broken"
66
false
false
0
6
13
11
5
6
null
null
marcmo/filtering
filtering.hs
bsd-3-clause
test2 = do args <- getArgs forM_ args $ \path -> do outH <- openFile (path ++ ".out") WriteMode m <- chunkedReadWith collectLines path print $ length m B.hPut outH (B.unlines m) -- tryout solution with chunked processing...only for estimation
271
test2 = do args <- getArgs forM_ args $ \path -> do outH <- openFile (path ++ ".out") WriteMode m <- chunkedReadWith collectLines path print $ length m B.hPut outH (B.unlines m) -- tryout solution with chunked processing...only for estimation
271
test2 = do args <- getArgs forM_ args $ \path -> do outH <- openFile (path ++ ".out") WriteMode m <- chunkedReadWith collectLines path print $ length m B.hPut outH (B.unlines m) -- tryout solution with chunked processing...only for estimation
271
false
false
0
14
68
88
40
48
null
null
rueshyna/gogol
gogol-affiliates/gen/Network/Google/Resource/GAN/Events/List.hs
mpl-2.0
-- | Caret(^) delimited list of advertiser IDs. Filters out all events that -- do not reference one of the given advertiser IDs. Only used when under -- publishers role. Optional. elAdvertiserId :: Lens' EventsList (Maybe Text) elAdvertiserId = lens _elAdvertiserId (\ s a -> s{_elAdvertiserId = a})
307
elAdvertiserId :: Lens' EventsList (Maybe Text) elAdvertiserId = lens _elAdvertiserId (\ s a -> s{_elAdvertiserId = a})
127
elAdvertiserId = lens _elAdvertiserId (\ s a -> s{_elAdvertiserId = a})
79
true
true
1
9
55
53
27
26
null
null
pjones/xmonad-test
vendor/xmonad-contrib/XMonad/Hooks/DebugEvents.hs
bsd-2-clause
-- report various errors propShortErr :: Decoder Bool propShortErr = failure "(property ended prematurely)"
108
propShortErr :: Decoder Bool propShortErr = failure "(property ended prematurely)"
83
propShortErr = failure "(property ended prematurely)"
54
true
true
0
5
14
18
9
9
null
null
simonmichael/hledger
hledger-lib/Hledger/Data/Period.hs
gpl-3.0
periodNext (QuarterPeriod y 4) = QuarterPeriod (y+1) 1
54
periodNext (QuarterPeriod y 4) = QuarterPeriod (y+1) 1
54
periodNext (QuarterPeriod y 4) = QuarterPeriod (y+1) 1
54
false
false
0
7
7
29
14
15
null
null
syohex/ghc-mod
Info.hs
bsd-3-clause
typeExpr :: Options -> ModuleString -> Int -> Int -> FilePath -> IO String typeExpr opt modstr lineNo colNo file = Info.typeOf opt file modstr lineNo colNo
155
typeExpr :: Options -> ModuleString -> Int -> Int -> FilePath -> IO String typeExpr opt modstr lineNo colNo file = Info.typeOf opt file modstr lineNo colNo
155
typeExpr opt modstr lineNo colNo file = Info.typeOf opt file modstr lineNo colNo
80
false
true
0
10
26
58
28
30
null
null
fffej/HS-Poker
LookupPatternMatch.hs
bsd-3-clause
getValueFromProduct 246123 = 5765
33
getValueFromProduct 246123 = 5765
33
getValueFromProduct 246123 = 5765
33
false
false
0
5
3
9
4
5
null
null
synsem/texhs
src/Text/Doc/Writer/Html.hs
gpl-3.0
inline (Note anchor _) = do db <- asks metaAnchorFileMap let target = internalAnchorTarget db (internalAnchorSwitch anchor) H.a ! A.id (textValue (internalAnchorID anchor)) ! A.class_ "note-ref" ! A.href (textValue target) <$> (H.sup <$> inlines (internalAnchorDescription anchor)) -- Map header level...
342
inline (Note anchor _) = do db <- asks metaAnchorFileMap let target = internalAnchorTarget db (internalAnchorSwitch anchor) H.a ! A.id (textValue (internalAnchorID anchor)) ! A.class_ "note-ref" ! A.href (textValue target) <$> (H.sup <$> inlines (internalAnchorDescription anchor)) -- Map header level...
342
inline (Note anchor _) = do db <- asks metaAnchorFileMap let target = internalAnchorTarget db (internalAnchorSwitch anchor) H.a ! A.id (textValue (internalAnchorID anchor)) ! A.class_ "note-ref" ! A.href (textValue target) <$> (H.sup <$> inlines (internalAnchorDescription anchor)) -- Map header level...
342
false
false
0
15
61
120
56
64
null
null
oldmanmike/opensandbox
src/OpenSandbox/Config.hs
gpl-3.0
loadConfig :: Path b File -> IO (Either String Config) loadConfig path = do maybeConfig <- decodeFileEither (toFilePath path) case maybeConfig of Left err -> return $ Left (show err) Right rawConfig -> do let hasValidViewDistance c = if ((srvViewDistance c) > 2) && ((srvViewDistance c) < ...
867
loadConfig :: Path b File -> IO (Either String Config) loadConfig path = do maybeConfig <- decodeFileEither (toFilePath path) case maybeConfig of Left err -> return $ Left (show err) Right rawConfig -> do let hasValidViewDistance c = if ((srvViewDistance c) > 2) && ((srvViewDistance c) < ...
867
loadConfig path = do maybeConfig <- decodeFileEither (toFilePath path) case maybeConfig of Left err -> return $ Left (show err) Right rawConfig -> do let hasValidViewDistance c = if ((srvViewDistance c) > 2) && ((srvViewDistance c) < 16) then Right c else Left ...
812
false
true
0
22
268
260
122
138
null
null
brtmr/Eden-Tracelab-cli-tool
src/Bachelor/DataBase.hs
gpl-3.0
-the number of events to be commited at once bufferlimit = 1000
64
bufferlimit = 1000
18
bufferlimit = 1000
18
true
false
1
5
12
14
7
7
null
null
rueshyna/gogol
gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs
mpl-2.0
-- | Creates a value of 'ChannelConversionPings' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'ccpPings' channelConversionPings :: ChannelConversionPings channelConversionPings = ChannelConversionPings' { _ccpPings = Not...
330
channelConversionPings :: ChannelConversionPings channelConversionPings = ChannelConversionPings' { _ccpPings = Nothing }
137
channelConversionPings = ChannelConversionPings' { _ccpPings = Nothing }
84
true
true
0
6
60
24
16
8
null
null
mainland/dph
dph-lifted-copy/Data/Array/Parallel/Lifted/Closure.hs
bsd-3-clause
liftedApply n# (AClo _ f es) as = f n# es as
47
liftedApply n# (AClo _ f es) as = f n# es as
47
liftedApply n# (AClo _ f es) as = f n# es as
47
false
false
1
6
14
34
14
20
null
null
rodrigo-machado/ufrgs-grt
src/MainWindow.hs
gpl-3.0
setName s (GraphRule s' r) = (GraphRule s r)
48
setName s (GraphRule s' r) = (GraphRule s r)
48
setName s (GraphRule s' r) = (GraphRule s r)
48
false
false
0
7
12
27
13
14
null
null
sdiehl/ghc
compiler/GHC/Hs/Types.hs
bsd-3-clause
ppr_mono_ty (HsStarTy _ isUni) = char (if isUni then '★' else '*')
67
ppr_mono_ty (HsStarTy _ isUni) = char (if isUni then '★' else '*')
67
ppr_mono_ty (HsStarTy _ isUni) = char (if isUni then '★' else '*')
67
false
false
0
7
12
31
16
15
null
null
futufeld/eclogues
eclogues-impl/gen-hs/ReadOnlyScheduler.hs
bsd-3-clause
typemap_GetRoleSummary_result :: T.TypeMap typemap_GetRoleSummary_result = Map.fromList [(0,("success",(T.T_STRUCT typemap_Response)))]
135
typemap_GetRoleSummary_result :: T.TypeMap typemap_GetRoleSummary_result = Map.fromList [(0,("success",(T.T_STRUCT typemap_Response)))]
135
typemap_GetRoleSummary_result = Map.fromList [(0,("success",(T.T_STRUCT typemap_Response)))]
92
false
true
0
11
7
41
23
18
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/Functions/F16.hs
bsd-3-clause
-- glMatrixLoadTranspose3x3fNV ------------------------------------------------- glMatrixLoadTranspose3x3fNV :: MonadIO m => GLenum -- ^ @matrixMode@. -> Ptr GLfloat -- ^ @m@. -> m () glMatrixLoadTranspose3x3fNV v1 v2 = liftIO $ dyn101 ptr_glMatrixLoadTranspose3x3fNV v1 v2
282
glMatrixLoadTranspose3x3fNV :: MonadIO m => GLenum -- ^ @matrixMode@. -> Ptr GLfloat -- ^ @m@. -> m () glMatrixLoadTranspose3x3fNV v1 v2 = liftIO $ dyn101 ptr_glMatrixLoadTranspose3x3fNV v1 v2
200
glMatrixLoadTranspose3x3fNV v1 v2 = liftIO $ dyn101 ptr_glMatrixLoadTranspose3x3fNV v1 v2
89
true
true
0
10
39
57
27
30
null
null
acowley/ghc
compiler/hsSyn/HsImpExp.hs
bsd-3-clause
ieName (IEThingAll (L _ n)) = n
34
ieName (IEThingAll (L _ n)) = n
34
ieName (IEThingAll (L _ n)) = n
34
false
false
0
9
9
23
11
12
null
null
keithodulaigh/Hets
DFOL/Comorphism.hs
gpl-2.0
generateSortAxiomsH1 :: Sign -> NAME -> [Named CASL_AS.CASLFORMULA] generateSortAxiomsH1 sig s = [makeNamed ("gen_sort_1_" ++ show s) formula | not $ null argNames] where Just argNames = getArgumentNames s sig Just argTypes = getArgumentTypes s sig args = map makeVar argNames elName ...
723
generateSortAxiomsH1 :: Sign -> NAME -> [Named CASL_AS.CASLFORMULA] generateSortAxiomsH1 sig s = [makeNamed ("gen_sort_1_" ++ show s) formula | not $ null argNames] where Just argNames = getArgumentNames s sig Just argTypes = getArgumentTypes s sig args = map makeVar argNames elName ...
723
generateSortAxiomsH1 sig s = [makeNamed ("gen_sort_1_" ++ show s) formula | not $ null argNames] where Just argNames = getArgumentNames s sig Just argTypes = getArgumentTypes s sig args = map makeVar argNames elName = Token "gen_y" nr el = makeVar elName formula = m...
655
false
true
5
16
296
193
97
96
null
null
craynafinal/cs557_functional_languages
practice/week1/ch2.hs
mit
init1 :: [a] -> [a] init1 l = reverse (tail (reverse l))
56
init1 :: [a] -> [a] init1 l = reverse (tail (reverse l))
56
init1 l = reverse (tail (reverse l))
36
false
true
0
9
11
45
21
24
null
null
thielema/gitit
Network/Gitit/Framework.hs
gpl-2.0
isDiscussPageFile :: FilePath -> Bool isDiscussPageFile ('@':xs) = isPageFile xs
80
isDiscussPageFile :: FilePath -> Bool isDiscussPageFile ('@':xs) = isPageFile xs
80
isDiscussPageFile ('@':xs) = isPageFile xs
42
false
true
0
9
9
33
15
18
null
null
ku-fpg/hermit-web
src/HERMIT/Web/Renderer.hs
bsd-3-clause
webChannel chan _ opts (Right doc) = let Runes rs = renderCode opts doc in atomically $ writeTChan chan $ Right $ runesToGlyphs rs
167
webChannel chan _ opts (Right doc) = let Runes rs = renderCode opts doc in atomically $ writeTChan chan $ Right $ runesToGlyphs rs
167
webChannel chan _ opts (Right doc) = let Runes rs = renderCode opts doc in atomically $ writeTChan chan $ Right $ runesToGlyphs rs
167
false
false
1
10
60
63
26
37
null
null
hsyl20/HViperVM
lib/ViperVM/Common/Region.hs
lgpl-3.0
getRegionOffset (Region2D off _ _ _) = off
42
getRegionOffset (Region2D off _ _ _) = off
42
getRegionOffset (Region2D off _ _ _) = off
42
false
false
0
7
7
21
10
11
null
null
nevrenato/Hets_Fork
CASL/OMDocExport.hs
gpl-2.0
exportSymToOmdoc :: Env -> Symbol -> String -> Result TCElement exportSymToOmdoc e sym n = toOMConstant e (n, symbType sym)
123
exportSymToOmdoc :: Env -> Symbol -> String -> Result TCElement exportSymToOmdoc e sym n = toOMConstant e (n, symbType sym)
123
exportSymToOmdoc e sym n = toOMConstant e (n, symbType sym)
59
false
true
0
8
19
47
23
24
null
null
flatrapp/core
app/Crypto.hs
apache-2.0
invitationCode :: IO Text invitationCode = makeHex <$> (getRandomBytes 10)
74
invitationCode :: IO Text invitationCode = makeHex <$> (getRandomBytes 10)
74
invitationCode = makeHex <$> (getRandomBytes 10)
48
false
true
0
7
9
24
12
12
null
null
brendanhay/gogol
gogol-cloudsearch/gen/Network/Google/Resource/CloudSearch/Debug/Identitysources/Items/ListForunmAppedidentity.hs
mpl-2.0
-- | If you are asked by Google to help with debugging, set this field. -- Otherwise, ignore this field. diilfaDebugOptionsEnableDebugging :: Lens' DebugIdentitysourcesItemsListForunmAppedidentity (Maybe Bool) diilfaDebugOptionsEnableDebugging = lens _diilfaDebugOptionsEnableDebugging (\ s a -> s{_diilfaDebugOp...
346
diilfaDebugOptionsEnableDebugging :: Lens' DebugIdentitysourcesItemsListForunmAppedidentity (Maybe Bool) diilfaDebugOptionsEnableDebugging = lens _diilfaDebugOptionsEnableDebugging (\ s a -> s{_diilfaDebugOptionsEnableDebugging = a})
241
diilfaDebugOptionsEnableDebugging = lens _diilfaDebugOptionsEnableDebugging (\ s a -> s{_diilfaDebugOptionsEnableDebugging = a})
136
true
true
0
9
44
49
26
23
null
null
nevrenato/HetsAlloy
Maude/Maude2DG.hs
gpl-2.0
processModExp :: TokenInfoMap -> ViewMap -> DGraph -> ModExp -> ModExpProc processModExp tim _ dg (ModExp modId) = (tok, tim, morph, ps, dg) where tok = HasName.getName modId (_, sg, _, _, ps) = fromJust $ Map.lookup tok tim morph = Maude.Morphi...
338
processModExp :: TokenInfoMap -> ViewMap -> DGraph -> ModExp -> ModExpProc processModExp tim _ dg (ModExp modId) = (tok, tim, morph, ps, dg) where tok = HasName.getName modId (_, sg, _, _, ps) = fromJust $ Map.lookup tok tim morph = Maude.Morphi...
338
processModExp tim _ dg (ModExp modId) = (tok, tim, morph, ps, dg) where tok = HasName.getName modId (_, sg, _, _, ps) = fromJust $ Map.lookup tok tim morph = Maude.Morphism.inclusion sg sg
263
false
true
2
12
118
120
63
57
null
null
nevrenato/HetsAlloy
CASL/OMDocImport.hs
gpl-2.0
-- | Sort generation constraints are added as named formulas. addOMadtToTheory :: Env -> (Sign f e, [Named (FORMULA f)]) -> [[OmdADT]] -> Result (Sign f e, [Named (FORMULA f)]) addOMadtToTheory e (sig, nsens) adts = do sgcs <- mapR (omdocToSortGenConstraint e) adts return (sig,...
401
addOMadtToTheory :: Env -> (Sign f e, [Named (FORMULA f)]) -> [[OmdADT]] -> Result (Sign f e, [Named (FORMULA f)]) addOMadtToTheory e (sig, nsens) adts = do sgcs <- mapR (omdocToSortGenConstraint e) adts return (sig, nsens ++ sgcs) -- | The subsort relation is recovered from ...
339
addOMadtToTheory e (sig, nsens) adts = do sgcs <- mapR (omdocToSortGenConstraint e) adts return (sig, nsens ++ sgcs) -- | The subsort relation is recovered from exported sentences.
190
true
true
0
13
101
127
66
61
null
null
leshchevds/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
cvEclustercfg :: (String, String, String) cvEclustercfg = ("cluster", Types.cVErrorCodeToRaw CvECLUSTERCFG, "Cluster configuration verification failure")
161
cvEclustercfg :: (String, String, String) cvEclustercfg = ("cluster", Types.cVErrorCodeToRaw CvECLUSTERCFG, "Cluster configuration verification failure")
161
cvEclustercfg = ("cluster", Types.cVErrorCodeToRaw CvECLUSTERCFG, "Cluster configuration verification failure")
119
false
true
0
7
21
34
20
14
null
null
vikraman/ghc
compiler/simplCore/CoreMonad.hs
bsd-3-clause
plusSimplCount (VerySimplCount n) (VerySimplCount m) = VerySimplCount (n+m)
75
plusSimplCount (VerySimplCount n) (VerySimplCount m) = VerySimplCount (n+m)
75
plusSimplCount (VerySimplCount n) (VerySimplCount m) = VerySimplCount (n+m)
75
false
false
0
7
7
33
16
17
null
null
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_RGB4_EXT :: GLenum gl_RGB4_EXT = 0x804F
42
gl_RGB4_EXT :: GLenum gl_RGB4_EXT = 0x804F
42
gl_RGB4_EXT = 0x804F
20
false
true
0
4
5
11
6
5
null
null
imuli/treehash
perf/Blake2s1.hs
unlicense
getHash m prev = getHash (m-1) $! hash prev prev (Salt 0 0 0 0)
63
getHash m prev = getHash (m-1) $! hash prev prev (Salt 0 0 0 0)
63
getHash m prev = getHash (m-1) $! hash prev prev (Salt 0 0 0 0)
63
false
false
0
8
14
44
21
23
null
null
olsner/ghc
compiler/stranal/WwLib.hs
bsd-3-clause
mk_seq_case :: Id -> CoreExpr -> CoreExpr mk_seq_case arg body = Case (Var arg) (sanitiseCaseBndr arg) (exprType body) [(DEFAULT, [], body)]
140
mk_seq_case :: Id -> CoreExpr -> CoreExpr mk_seq_case arg body = Case (Var arg) (sanitiseCaseBndr arg) (exprType body) [(DEFAULT, [], body)]
140
mk_seq_case arg body = Case (Var arg) (sanitiseCaseBndr arg) (exprType body) [(DEFAULT, [], body)]
98
false
true
0
8
20
70
35
35
null
null
diegomachadosoares/hcomp
HelperTools.hs
gpl-3.0
convStr (ValueB b) = ValB b
27
convStr (ValueB b) = ValB b
27
convStr (ValueB b) = ValB b
27
false
false
0
7
5
18
8
10
null
null
FranklinChen/hugs98-plus-Sep2006
packages/GLUT/examples/RedBook/Teapots.hs
bsd-3-clause
keyboard :: KeyboardMouseCallback keyboard (Char '\27') Down _ _ = exitWith ExitSuccess
87
keyboard :: KeyboardMouseCallback keyboard (Char '\27') Down _ _ = exitWith ExitSuccess
87
keyboard (Char '\27') Down _ _ = exitWith ExitSuccess
53
false
true
0
8
11
34
15
19
null
null
peterokagey/haskellOEIS
src/Helpers/ListHelpers.hs
apache-2.0
firstDifferences ls'@(_:ls) = zipWith (-) ls ls'
48
firstDifferences ls'@(_:ls) = zipWith (-) ls ls'
48
firstDifferences ls'@(_:ls) = zipWith (-) ls ls'
48
false
false
0
8
6
28
15
13
null
null
tibbe/ghc
compiler/cmm/CLabel.hs
bsd-3-clause
mkMainCapabilityLabel = CmmLabel rtsPackageId (fsLit "MainCapability") CmmData
95
mkMainCapabilityLabel = CmmLabel rtsPackageId (fsLit "MainCapability") CmmData
95
mkMainCapabilityLabel = CmmLabel rtsPackageId (fsLit "MainCapability") CmmData
95
false
false
0
7
23
19
9
10
null
null
KommuSoft/dep-software
Dep.Algorithms.Cpu.hs
gpl-3.0
insType Root = [F,F]
24
insType Root = [F,F]
24
insType Root = [F,F]
24
false
false
0
5
7
15
8
7
null
null
tjakway/ghcjvm
compiler/hsSyn/HsBinds.hs
bsd-3-clause
isPragLSig (L _ (InlineSig {})) = True
38
isPragLSig (L _ (InlineSig {})) = True
38
isPragLSig (L _ (InlineSig {})) = True
38
false
false
0
8
6
25
12
13
null
null
bkoropoff/Idris-dev
src/IRTS/CodegenC.hs
bsd-3-clause
bcc i (RESERVE 0) = ""
22
bcc i (RESERVE 0) = ""
22
bcc i (RESERVE 0) = ""
22
false
false
0
6
5
19
8
11
null
null
holoed/PVRConsole
PVRConsole.hs
mit
titles :: Entries -> Box titles xs = foldl f nullBox (entries xs) where f acc x = acc /+/ (getTitle x)
112
titles :: Entries -> Box titles xs = foldl f nullBox (entries xs) where f acc x = acc /+/ (getTitle x)
112
titles xs = foldl f nullBox (entries xs) where f acc x = acc /+/ (getTitle x)
87
false
true
3
7
31
67
27
40
null
null
hnakamur/haskell-sandbox
sandbox-html/SandBox/Text/HTML/Parser.hs
bsd-3-clause
htmlTokens :: Stream s m Char => ParsecT s u m [T.HTMLToken] htmlTokens = do{ t <- try htmlToken ; spaces ; do{ ts <- try htmlTokens ; return (t:ts) } <|> return [t] } <|> return []
236
htmlTokens :: Stream s m Char => ParsecT s u m [T.HTMLToken] htmlTokens = do{ t <- try htmlToken ; spaces ; do{ ts <- try htmlTokens ; return (t:ts) } <|> return [t] } <|> return []
236
htmlTokens = do{ t <- try htmlToken ; spaces ; do{ ts <- try htmlTokens ; return (t:ts) } <|> return [t] } <|> return []
175
false
true
3
12
92
104
52
52
null
null
leskiw77/Checkers
test/MyHUnitTest.hs
bsd-3-clause
b_board4 = readBoard board4
27
b_board4 = readBoard board4
27
b_board4 = readBoard board4
27
false
false
1
5
3
13
4
9
null
null
DougBurke/swish
tests/RDFGraphTest.hs
lgpl-2.1
st2 = toRDFLabel $ makeNSScopedName base2 "st2"
47
st2 = toRDFLabel $ makeNSScopedName base2 "st2"
47
st2 = toRDFLabel $ makeNSScopedName base2 "st2"
47
false
false
0
6
6
15
7
8
null
null
jgoerzen/dfsbuild
Actions/ConfigFiles.hs
gpl-2.0
fixRc env = do recursiveRemove SystemFS ((targetdir env) ++ "/etc/rc2.d") safeSystem "cp" ["-r", targetdir env ++ "/etc/rc1.d", targetdir env ++ "/etc/rc2.d"] cpfiles <- glob $ targetdir env ++ "/etc/rc3.d/*logd*" safeSystem "cp" $ ["-r"] ++ cpfiles ++ [targetdir env ++...
429
fixRc env = do recursiveRemove SystemFS ((targetdir env) ++ "/etc/rc2.d") safeSystem "cp" ["-r", targetdir env ++ "/etc/rc1.d", targetdir env ++ "/etc/rc2.d"] cpfiles <- glob $ targetdir env ++ "/etc/rc3.d/*logd*" safeSystem "cp" $ ["-r"] ++ cpfiles ++ [targetdir env ++...
429
fixRc env = do recursiveRemove SystemFS ((targetdir env) ++ "/etc/rc2.d") safeSystem "cp" ["-r", targetdir env ++ "/etc/rc1.d", targetdir env ++ "/etc/rc2.d"] cpfiles <- glob $ targetdir env ++ "/etc/rc3.d/*logd*" safeSystem "cp" $ ["-r"] ++ cpfiles ++ [targetdir env ++...
429
false
false
0
11
114
136
63
73
null
null
text-utf8/text
Data/Text/Show.hs
bsd-2-clause
unpack :: Text -> String unpack = S.unstreamList . stream
57
unpack :: Text -> String unpack = S.unstreamList . stream
57
unpack = S.unstreamList . stream
32
false
true
0
7
9
28
12
16
null
null
input-output-hk/pos-haskell-prototype
core/test/Test/Pos/Core/Gen.hs
mit
---------------------------------------------------------------------------- -- Helper Generators ---------------------------------------------------------------------------- genBytes :: Int -> Gen ByteString genBytes n = Gen.bytes (Range.singleton n)
252
genBytes :: Int -> Gen ByteString genBytes n = Gen.bytes (Range.singleton n)
76
genBytes n = Gen.bytes (Range.singleton n)
42
true
true
0
8
17
37
19
18
null
null
vTurbine/ghc
compiler/basicTypes/Name.hs
bsd-3-clause
isExternalName _ = False
54
isExternalName _ = False
54
isExternalName _ = False
54
false
false
0
5
33
9
4
5
null
null
cullina/Extractor
src/IncreasingSubsequence.hs
bsd-3-clause
recoverFullPerm :: (Integral a) => a -> [(a,a)] -> [a] recoverFullPerm max pairs = take (fromIntegral max) $ rFP 0 sortedPairs outs where sortedPairs = sortBy (compare `on` fst) pairs outs = complementInts 0 . sort . map snd $ pairs rFP _ [] zs = zs rFP i pss@((x...
434
recoverFullPerm :: (Integral a) => a -> [(a,a)] -> [a] recoverFullPerm max pairs = take (fromIntegral max) $ rFP 0 sortedPairs outs where sortedPairs = sortBy (compare `on` fst) pairs outs = complementInts 0 . sort . map snd $ pairs rFP _ [] zs = zs rFP i pss@((x,...
433
recoverFullPerm max pairs = take (fromIntegral max) $ rFP 0 sortedPairs outs where sortedPairs = sortBy (compare `on` fst) pairs outs = complementInts 0 . sort . map snd $ pairs rFP _ [] zs = zs rFP i pss@((x,y):ps) zss@(z:zs) = if i == x then...
378
false
true
3
11
158
213
111
102
null
null
rahulmutt/ghcvm
compiler/Eta/Utils/Digraph.hs
bsd-3-clause
graphEmpty :: IntGraph -> Bool graphEmpty g = lo > hi where (lo, hi) = bounds g {- ************************************************************************ * * * Trees and forests * ...
405
graphEmpty :: IntGraph -> Bool graphEmpty g = lo > hi where (lo, hi) = bounds g {- ************************************************************************ * * * Trees and forests * ...
405
graphEmpty g = lo > hi where (lo, hi) = bounds g {- ************************************************************************ * * * Trees and forests * * *********************...
374
false
true
2
7
174
48
22
26
null
null
rueshyna/gogol
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types/Product.hs
mpl-2.0
-- | The opaque value used by the client to maintain context info between the -- authentication request and the IDP callback. varContext :: Lens' VerifyAssertionResponse (Maybe Text) varContext = lens _varContext (\ s a -> s{_varContext = a})
244
varContext :: Lens' VerifyAssertionResponse (Maybe Text) varContext = lens _varContext (\ s a -> s{_varContext = a})
118
varContext = lens _varContext (\ s a -> s{_varContext = a})
61
true
true
1
9
40
53
26
27
null
null
Risto-Stevcev/haskell-church-encodings
RankNTypes/TestChurch.hs
bsd-3-clause
test_sub_zero_one = TestCase $ assertEqual "sub zero one == 0"
62
test_sub_zero_one = TestCase $ assertEqual "sub zero one == 0"
62
test_sub_zero_one = TestCase $ assertEqual "sub zero one == 0"
62
false
false
0
6
9
13
6
7
null
null
frantisekfarka/ghc-dsi
compiler/nativeGen/PPC/CodeGen.hs
bsd-3-clause
-- extend?Rep: wrap integer expression of type rep -- in a conversion to II32 extendSExpr :: Width -> CmmExpr -> CmmExpr extendSExpr W32 x = x
146
extendSExpr :: Width -> CmmExpr -> CmmExpr extendSExpr W32 x = x
64
extendSExpr W32 x = x
21
true
true
0
8
29
32
15
17
null
null
tolysz/prepare-ghcjs
spec-lts8/cabal/cabal-install/Distribution/Client/ProjectConfig.hs
bsd-3-clause
-- | Use a 'RepoContext' based on the 'BuildTimeSettings'. -- projectConfigWithBuilderRepoContext :: Verbosity -> BuildTimeSettings -> (RepoContext -> IO a) -> IO a projectConfigWithBuilderRepoContext verbosity BuildTimeSettings{..} = withRepoC...
499
projectConfigWithBuilderRepoContext :: Verbosity -> BuildTimeSettings -> (RepoContext -> IO a) -> IO a projectConfigWithBuilderRepoContext verbosity BuildTimeSettings{..} = withRepoContext' verbosity buildSettingRemoteRepos bu...
437
projectConfigWithBuilderRepoContext verbosity BuildTimeSettings{..} = withRepoContext' verbosity buildSettingRemoteRepos buildSettingLocalRepos buildSettingCacheDir buildSettingHttpTransport (Just buildSettingIgnoreExpiry)
262
true
true
2
7
146
65
35
30
null
null
shlevy/ghc
compiler/cmm/CmmUtils.hs
bsd-3-clause
slotForeignHint FloatSlot = NoHint
38
slotForeignHint FloatSlot = NoHint
38
slotForeignHint FloatSlot = NoHint
38
false
false
0
5
7
9
4
5
null
null
wjdhamilton/ig-haskell
test/IG/REST/DealingSpec.hs
bsd-3-clause
closeAll :: AuthHeaders -> IO () closeAll h = do eOpenPositions <- allPositions h case eOpenPositions of Left e -> print e Right openPositions -> do let posits = positions openPositions mapM (closeRequest h) posits return ()
269
closeAll :: AuthHeaders -> IO () closeAll h = do eOpenPositions <- allPositions h case eOpenPositions of Left e -> print e Right openPositions -> do let posits = positions openPositions mapM (closeRequest h) posits return ()
269
closeAll h = do eOpenPositions <- allPositions h case eOpenPositions of Left e -> print e Right openPositions -> do let posits = positions openPositions mapM (closeRequest h) posits return ()
236
false
true
0
15
81
95
41
54
null
null
nushio3/ghc
compiler/basicTypes/OccName.hs
bsd-3-clause
plusOccEnv (A x) (A y) = A $ plusUFM x y
42
plusOccEnv (A x) (A y) = A $ plusUFM x y
42
plusOccEnv (A x) (A y) = A $ plusUFM x y
42
false
false
0
7
12
32
15
17
null
null
leonardi-tutorials/tutorial-haskell
Main.hs
apache-2.0
resultadoDeJuncaoDeDuasListas = listaDeNumeros_A `juntaDuasListas` listaDeNumeros_B
83
resultadoDeJuncaoDeDuasListas = listaDeNumeros_A `juntaDuasListas` listaDeNumeros_B
83
resultadoDeJuncaoDeDuasListas = listaDeNumeros_A `juntaDuasListas` listaDeNumeros_B
83
false
false
0
5
4
12
7
5
null
null
brendanhay/gogol
gogol-youtube-analytics/gen/Network/Google/YouTubeAnalytics/Types/Product.hs
mpl-2.0
-- | The Etag of this resource. giEtag :: Lens' GroupItem (Maybe Text) giEtag = lens _giEtag (\ s a -> s{_giEtag = a})
118
giEtag :: Lens' GroupItem (Maybe Text) giEtag = lens _giEtag (\ s a -> s{_giEtag = a})
86
giEtag = lens _giEtag (\ s a -> s{_giEtag = a})
47
true
true
0
9
23
46
25
21
null
null
brenov/set
interpreter/Expressions.hs
mit
eval (Int x p) (Multiplication _) (Real y _) = Real (integerToFloat(x) * y) p
79
eval (Int x p) (Multiplication _) (Real y _) = Real (integerToFloat(x) * y) p
79
eval (Int x p) (Multiplication _) (Real y _) = Real (integerToFloat(x) * y) p
79
false
false
0
9
16
57
27
30
null
null
SKA-ScienceDataProcessor/RC
MS6/dna/flow/Flow/Run/Maps.hs
apache-2.0
-- | Domain dependencies of a series of steps stepsDomainDeps :: [Step] -> DomainSet stepsDomainDeps (step@(DomainStep _ dh) : steps) = IS.delete (dhId dh) $ stepDomainDeps step `IS.union` stepsDomainDeps steps
212
stepsDomainDeps :: [Step] -> DomainSet stepsDomainDeps (step@(DomainStep _ dh) : steps) = IS.delete (dhId dh) $ stepDomainDeps step `IS.union` stepsDomainDeps steps
166
stepsDomainDeps (step@(DomainStep _ dh) : steps) = IS.delete (dhId dh) $ stepDomainDeps step `IS.union` stepsDomainDeps steps
127
true
true
0
10
31
69
36
33
null
null
SamirTalwar/Smoke
src/app/Test/Smoke/App/Options.hs
mit
options :: IsTTY -> Diff.Engine -> ParserInfo AppOptions options isTTY foundDiffEngine = info (optionParser isTTY foundDiffEngine <**> helper) ( fullDesc <> header "Smoke: a framework for testing most things from the very edges." )
253
options :: IsTTY -> Diff.Engine -> ParserInfo AppOptions options isTTY foundDiffEngine = info (optionParser isTTY foundDiffEngine <**> helper) ( fullDesc <> header "Smoke: a framework for testing most things from the very edges." )
253
options isTTY foundDiffEngine = info (optionParser isTTY foundDiffEngine <**> helper) ( fullDesc <> header "Smoke: a framework for testing most things from the very edges." )
196
false
true
0
8
55
56
27
29
null
null
spechub/Hets
OWL2/ASKeywords.hs
gpl-2.0
functionalDataPropertyS :: String functionalDataPropertyS = "FunctionalDataProperty"
84
functionalDataPropertyS :: String functionalDataPropertyS = "FunctionalDataProperty"
84
functionalDataPropertyS = "FunctionalDataProperty"
50
false
true
0
4
5
11
6
5
null
null
antalsz/hs-to-coq
examples/ghc/gen-files/Lexer.hs
mit
alexGetChar :: AlexInput -> Maybe (Char,AlexInput) alexGetChar inp = case alexGetByte inp of Nothing -> Nothing Just (b,i) -> c `seq` Just (c,i) where c = chr $ fromIntegral b -- See Note [Unicode in Alex]
272
alexGetChar :: AlexInput -> Maybe (Char,AlexInput) alexGetChar inp = case alexGetByte inp of Nothing -> Nothing Just (b,i) -> c `seq` Just (c,i) where c = chr $ fromIntegral b -- See Note [Unicode in Alex]
272
alexGetChar inp = case alexGetByte inp of Nothing -> Nothing Just (b,i) -> c `seq` Just (c,i) where c = chr $ fromIntegral b -- See Note [Unicode in Alex]
221
false
true
0
11
102
85
45
40
null
null
lukexi/cabal
Cabal/tests/PackageTests/PackageTester.hs
bsd-3-clause
run :: Maybe FilePath -> String -> [String] -> TestM Result run mb_cwd path args = do verbosity <- getVerbosity (_, test) <- ask r <- liftIO $ rawRun verbosity mb_cwd path (testEnvironment test) args record r requireSuccess r
245
run :: Maybe FilePath -> String -> [String] -> TestM Result run mb_cwd path args = do verbosity <- getVerbosity (_, test) <- ask r <- liftIO $ rawRun verbosity mb_cwd path (testEnvironment test) args record r requireSuccess r
245
run mb_cwd path args = do verbosity <- getVerbosity (_, test) <- ask r <- liftIO $ rawRun verbosity mb_cwd path (testEnvironment test) args record r requireSuccess r
185
false
true
0
12
58
104
47
57
null
null
andorp/bead
src/Bead/Persistence/SQL/TestData.hs
bsd-3-clause
time = read "2014-06-09 12:55:27 UTC"
40
time = read "2014-06-09 12:55:27 UTC"
40
time = read "2014-06-09 12:55:27 UTC"
40
false
false
0
5
8
9
4
5
null
null
shayan-najd/HsParser
OutputableInstances.hs
gpl-3.0
ppr_expr (HsOverLabel l) = char '#' <> ppr l
45
ppr_expr (HsOverLabel l) = char '#' <> ppr l
45
ppr_expr (HsOverLabel l) = char '#' <> ppr l
45
false
false
0
6
9
26
11
15
null
null
brendanhay/gogol
gogol-plus/gen/Network/Google/Plus/Types/Product.hs
mpl-2.0
-- | The location where this activity occurred. actLocation :: Lens' Activity (Maybe Place) actLocation = lens _actLocation (\ s a -> s{_actLocation = a})
156
actLocation :: Lens' Activity (Maybe Place) actLocation = lens _actLocation (\ s a -> s{_actLocation = a})
108
actLocation = lens _actLocation (\ s a -> s{_actLocation = a})
64
true
true
0
9
26
48
25
23
null
null
kim/amazonka
amazonka-redshift/gen/Network/AWS/Redshift/Types.hs
mpl-2.0
-- | The current state of this cluster. Possible values include 'available', 'creating', 'deleting', 'rebooting', 'renaming', and 'resizing'. cClusterStatus :: Lens' Cluster (Maybe Text) cClusterStatus = lens _cClusterStatus (\s a -> s { _cClusterStatus = a })
260
cClusterStatus :: Lens' Cluster (Maybe Text) cClusterStatus = lens _cClusterStatus (\s a -> s { _cClusterStatus = a })
118
cClusterStatus = lens _cClusterStatus (\s a -> s { _cClusterStatus = a })
73
true
true
0
9
36
46
25
21
null
null
karun012/arion
src/Arion/Runner.hs
mit
filePathAndContent :: String -> IO (FilePath, FileContent) filePathAndContent relativePath = do canonicalizedPath <- canonicalizePath relativePath content <- readFile canonicalizedPath return (canonicalizedPath, content) -- 10th of a sec? se...
327
filePathAndContent :: String -> IO (FilePath, FileContent) filePathAndContent relativePath = do canonicalizedPath <- canonicalizePath relativePath content <- readFile canonicalizedPath return (canonicalizedPath, content) -- 10th of a sec? se...
327
filePathAndContent relativePath = do canonicalizedPath <- canonicalizePath relativePath content <- readFile canonicalizedPath return (canonicalizedPath, content) -- 10th of a sec? seems ok.
268
false
true
0
8
107
60
29
31
null
null
CristhianMotoche/scion
server/Scion/Server/Commands.hs
bsd-3-clause
cmdSetVerbosity :: Cmd cmdSetVerbosity = Cmd "set-verbosity" $ reqArg "level" $ cmd where cmd v = setVerbosity (intToVerbosity v)
136
cmdSetVerbosity :: Cmd cmdSetVerbosity = Cmd "set-verbosity" $ reqArg "level" $ cmd where cmd v = setVerbosity (intToVerbosity v)
136
cmdSetVerbosity = Cmd "set-verbosity" $ reqArg "level" $ cmd where cmd v = setVerbosity (intToVerbosity v)
113
false
true
1
7
25
48
21
27
null
null
axman6/TernaryTrees
Main.hs
bsd-3-clause
main = do (file:_) <- getArgs -- get file name contents <- readFile file -- read the file contents -- input <- getContents let wds = words contents -- separate the words tree = fromList $ wds -- put them in the tree newname = (file ++ ".bin") -- print . treeSize $ tree putSt...
1,217
main = do (file:_) <- getArgs -- get file name contents <- readFile file -- read the file contents -- input <- getContents let wds = words contents -- separate the words tree = fromList $ wds -- put them in the tree newname = (file ++ ".bin") -- print . treeSize $ tree putSt...
1,217
main = do (file:_) <- getArgs -- get file name contents <- readFile file -- read the file contents -- input <- getContents let wds = words contents -- separate the words tree = fromList $ wds -- put them in the tree newname = (file ++ ".bin") -- print . treeSize $ tree putSt...
1,217
false
false
0
12
337
229
116
113
null
null
sphynx/hamisado
Tests.hs
bsd-3-clause
is_terminal = roundResult r4d @?= Winner White
47
is_terminal = roundResult r4d @?= Winner White
47
is_terminal = roundResult r4d @?= Winner White
47
false
false
0
6
7
16
7
9
null
null
divipp/lgtk
src/LGtk.hs
bsd-3-clause
extendRef :: Ref b -> Lens' a b -> a -> RefCreator (Ref a) extendRef = Ref.extendRef
84
extendRef :: Ref b -> Lens' a b -> a -> RefCreator (Ref a) extendRef = Ref.extendRef
84
extendRef = Ref.extendRef
25
false
true
0
10
16
42
20
22
null
null
cornell-pl/evolution
SymLens.hs
gpl-3.0
fstl :: SymLens a b -> SymLens (a,d) (b,d) fstl (SymLens i pr pl) = SymLens i (put pr) (put pl) where put p (a,d) c = let (a',c') = p a c in ((a',d),c')
154
fstl :: SymLens a b -> SymLens (a,d) (b,d) fstl (SymLens i pr pl) = SymLens i (put pr) (put pl) where put p (a,d) c = let (a',c') = p a c in ((a',d),c')
154
fstl (SymLens i pr pl) = SymLens i (put pr) (put pl) where put p (a,d) c = let (a',c') = p a c in ((a',d),c')
111
false
true
0
9
36
124
65
59
null
null
peter-fogg/pardoc
src/Text/Pandoc.hs
gpl-2.0
getDefaultExtensions "markdown_mmd" = multimarkdownExtensions
61
getDefaultExtensions "markdown_mmd" = multimarkdownExtensions
61
getDefaultExtensions "markdown_mmd" = multimarkdownExtensions
61
false
false
0
4
3
10
4
6
null
null
OS2World/DEV-UTIL-HUGS
oldlib/LeftistHeap.hs
bsd-3-clause
foldr1 f (L _ x a b) = f x (foldr1 f (union a b))
49
foldr1 f (L _ x a b) = f x (foldr1 f (union a b))
49
foldr1 f (L _ x a b) = f x (foldr1 f (union a b))
49
false
false
0
9
14
46
21
25
null
null
seanparsons/haskellscript
src/HaskellScript.hs
bsd-3-clause
parseDependencies (first : rest) dependenciesAccumulator = case (parseDependencyLine first) of Just dep -> parseDependencies rest (dep : dependenciesAccumulator) Nothing -> (dependenciesAccumulator, (first : rest))
222
parseDependencies (first : rest) dependenciesAccumulator = case (parseDependencyLine first) of Just dep -> parseDependencies rest (dep : dependenciesAccumulator) Nothing -> (dependenciesAccumulator, (first : rest))
222
parseDependencies (first : rest) dependenciesAccumulator = case (parseDependencyLine first) of Just dep -> parseDependencies rest (dep : dependenciesAccumulator) Nothing -> (dependenciesAccumulator, (first : rest))
222
false
false
3
8
31
67
35
32
null
null
rrnewton/hgdata
src/Network/Google.hs
mit
makeRequest :: AccessToken -- ^ The OAuth 2.0 access token. -> (String, String) -- ^ The Google API name and version. -> String -- ^ The HTTP method. -> (String, String) -- ^ The host and path for the request. -> Request -- ^ The HTTP request. makeRequest accessToken (apiName, ...
731
makeRequest :: AccessToken -- ^ The OAuth 2.0 access token. -> (String, String) -- ^ The Google API name and version. -> String -- ^ The HTTP method. -> (String, String) -- ^ The host and path for the request. -> Request makeRequest accessToken (apiName, apiVersion) method (host, path) =...
698
makeRequest accessToken (apiName, apiVersion) method (host, path) = -- TODO: In principle, we should UTF-8 encode the bytestrings packed below. defaultRequest { method = BS8.pack method , secure = True , host = BS8.pack host , port = 443 , path = BS8.pack path , requestHeaders = [ (makeHeaderNam...
445
true
true
0
12
185
165
94
71
null
null
thalerjonathan/phd
coding/prototyping/haskell/declarativeABM/haskell/MinABS/src/SpacialGame/RunSG.hs
gpl-3.0
sgAgentStateToColor Cooperator Defector = yellowC
49
sgAgentStateToColor Cooperator Defector = yellowC
49
sgAgentStateToColor Cooperator Defector = yellowC
49
false
false
0
5
4
13
5
8
null
null
sreeix/dotfiles
.emacs.d/elpa/flycheck-haskell-20180321.1340/get-cabal-configuration.hs
gpl-3.0
ordNub :: forall a. Ord a => [a] -> [a] ordNub = go S.empty where go :: Set a -> [a] -> [a] go _ [] = [] go acc (x:xs) | S.member x acc = go acc xs | otherwise = x : go (S.insert x acc) xs
229
ordNub :: forall a. Ord a => [a] -> [a] ordNub = go S.empty where go :: Set a -> [a] -> [a] go _ [] = [] go acc (x:xs) | S.member x acc = go acc xs | otherwise = x : go (S.insert x acc) xs
229
ordNub = go S.empty where go :: Set a -> [a] -> [a] go _ [] = [] go acc (x:xs) | S.member x acc = go acc xs | otherwise = x : go (S.insert x acc) xs
189
false
true
7
9
89
135
69
66
null
null
icetortoise/ftphs
src/Network/FTP/Client.hs
lgpl-2.1
downloadbinary :: FTPConnection -> String -> IO FTPResult downloadbinary h fn = do (r0, r1) <- getbinary h fn writeBinaryFile fn r0 return r1 {- | Retrieves a list of files in the given directory. FIXME: should this take a list of dirs? -}
292
downloadbinary :: FTPConnection -> String -> IO FTPResult downloadbinary h fn = do (r0, r1) <- getbinary h fn writeBinaryFile fn r0 return r1 {- | Retrieves a list of files in the given directory. FIXME: should this take a list of dirs? -}
292
downloadbinary h fn = do (r0, r1) <- getbinary h fn writeBinaryFile fn r0 return r1 {- | Retrieves a list of files in the given directory. FIXME: should this take a list of dirs? -}
234
false
true
0
9
96
65
29
36
null
null
bens/libmpd-haskell
src/Network/MPD/Commands/Database.hs
lgpl-2.1
-- | Count the number of entries matching a query. count :: MonadMPD m => Query -> m Count count = A.runCommand . A.count
121
count :: MonadMPD m => Query -> m Count count = A.runCommand . A.count
70
count = A.runCommand . A.count
30
true
true
0
7
23
34
17
17
null
null
sopvop/snap-core
src/Snap/Internal/Routing.hs
bsd-3-clause
------------------------------------------------------------------------------ route' :: MonadSnap m => m () -- ^ action to run before we call the user handler -> [ByteString] -- ^ the \"context\"; the list of path segments we've -- already successfully matched, in rev...
767
route' :: MonadSnap m => m () -- ^ action to run before we call the user handler -> [ByteString] -- ^ the \"context\"; the list of path segments we've -- already successfully matched, in reverse order -> [ByteString] -- ^ the list of path segments we haven't y...
688
route' pre !ctx _ !params (Action action) = localRequest (updateContextPath (B.length ctx') . updateParams) (pre >> action) where ctx' = B.intercalate (B.pack [c2w '/']) (reverse ctx) updateParams req = req { rqParams = Map.unionWith (flip (++)) params (rqParams req) }
306
true
true
1
11
217
185
94
91
null
null
dolio/vector
Data/Vector/Mutable.hs
bsd-3-clause
null = G.null
13
null = G.null
13
null = G.null
13
false
false
1
6
2
12
4
8
null
null
hce/yanas
src/Aeroplane.hs
gpl-2.0
handleAP _ (BC beacon) = BC beacon
37
handleAP _ (BC beacon) = BC beacon
37
handleAP _ (BC beacon) = BC beacon
37
false
false
1
6
9
23
9
14
null
null
kindl/Hypatia
src/Compiler.hs
mit
toLuaE (Func vs sts) = toLuaFun mempty vs sts
49
toLuaE (Func vs sts) = toLuaFun mempty vs sts
49
toLuaE (Func vs sts) = toLuaFun mempty vs sts
49
false
false
0
6
12
27
11
16
null
null
rueshyna/gogol
gogol-firebase-rules/gen/Network/Google/Resource/FirebaseRules/Projects/Rulesets/List.hs
mpl-2.0
-- | Resource name for the project. Format: \`projects\/{project_id}\` prlName :: Lens' ProjectsRulesetsList Text prlName = lens _prlName (\ s a -> s{_prlName = a})
164
prlName :: Lens' ProjectsRulesetsList Text prlName = lens _prlName (\ s a -> s{_prlName = a})
93
prlName = lens _prlName (\ s a -> s{_prlName = a})
50
true
true
0
9
24
40
22
18
null
null