id
stringlengths
27
31
content
stringlengths
14
287k
max_stars_repo_path
stringlengths
52
57
crossvul-java_data_good_5809_0
package org.jboss.seam.remoting; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import java.io.StringReader; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServlet...
./CrossVul/dataset_final_sorted/CWE-200/java/good_5809_0
crossvul-java_data_good_3055_1
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without l...
./CrossVul/dataset_final_sorted/CWE-200/java/good_3055_1
crossvul-java_data_good_3053_0
/* * The MIT License * * Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe, * Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc., * Yahoo!, Inc. * * Permission is hereby granted, free of charge, to any person...
./CrossVul/dataset_final_sorted/CWE-200/java/good_3053_0
crossvul-java_data_bad_5809_2
404: Not Found
./CrossVul/dataset_final_sorted/CWE-200/java/bad_5809_2
crossvul-java_data_good_2096_0
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, David Calavera, Seiji Sogabe * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without re...
./CrossVul/dataset_final_sorted/CWE-200/java/good_2096_0
crossvul-java_data_good_972_0
package com.fasterxml.jackson.databind.jsontype.impl; import java.util.Collections; import java.util.HashSet; import java.util.Set; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.JsonMappingException; /** * Helper c...
./CrossVul/dataset_final_sorted/CWE-200/java/good_972_0
crossvul-java_data_bad_3043_0
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_3043_0
crossvul-java_data_bad_4347_3
/* * Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 */ p...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_4347_3
crossvul-java_data_good_4348_2
/* * Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 */ p...
./CrossVul/dataset_final_sorted/CWE-200/java/good_4348_2
crossvul-java_data_bad_3055_0
/* * The MIT License * * Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe, * Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc., * Yahoo!, Inc. * * Permission is hereby granted, free of charge, to any person...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_3055_0
crossvul-java_data_bad_1545_0
/* * * * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.com) * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * ...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_1545_0
crossvul-java_data_good_1503_1
/* * JBoss, Home of Professional Open Source. * Copyright 2008, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify i...
./CrossVul/dataset_final_sorted/CWE-200/java/good_1503_1
crossvul-java_data_good_3055_0
/* * The MIT License * * Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe, * Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc., * Yahoo!, Inc. * * Permission is hereby granted, free of charge, to any person...
./CrossVul/dataset_final_sorted/CWE-200/java/good_3055_0
crossvul-java_data_bad_5809_3
404: Not Found
./CrossVul/dataset_final_sorted/CWE-200/java/bad_5809_3
crossvul-java_data_bad_4347_4
/* * Copyright (c) 2020 Gobierno de España * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 */ package org.dpppt.backend....
./CrossVul/dataset_final_sorted/CWE-200/java/bad_4347_4
crossvul-java_data_bad_5809_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-200/java/bad_5809_0
crossvul-java_data_good_3048_1
/* * The MIT License * * Copyright (c) 2013 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
./CrossVul/dataset_final_sorted/CWE-200/java/good_3048_1
crossvul-java_data_bad_2096_0
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, David Calavera, Seiji Sogabe * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without re...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_2096_0
crossvul-java_data_good_3048_0
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Red Hat, Inc., Seiji Sogabe, Stephen Connolly, Thomas J. Black, Tom Huybrechts, CloudBees, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
./CrossVul/dataset_final_sorted/CWE-200/java/good_3048_0
crossvul-java_data_good_4347_4
/* * Copyright (c) 2020 Gobierno de España * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 */ package org.dpppt.backend....
./CrossVul/dataset_final_sorted/CWE-200/java/good_4347_4
crossvul-java_data_bad_1503_1
/* * JBoss, Home of Professional Open Source. * Copyright 2008, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify i...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_1503_1
crossvul-java_data_bad_3053_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-200/java/bad_3053_1
crossvul-java_data_good_4347_3
/* * Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 */ p...
./CrossVul/dataset_final_sorted/CWE-200/java/good_4347_3
crossvul-java_data_bad_3055_1
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without l...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_3055_1
crossvul-java_data_good_4188_0
package org.junit.rules; import static org.junit.Assert.fail; import java.io.File; import java.io.IOException; import java.lang.reflect.Array; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import org.junit.Rule; /** * The TemporaryFolder Rule allows creation of files and fold...
./CrossVul/dataset_final_sorted/CWE-200/java/good_4188_0
crossvul-java_data_bad_4348_3
404: Not Found
./CrossVul/dataset_final_sorted/CWE-200/java/bad_4348_3
crossvul-java_data_good_4348_4
/* * Copyright (c) 2020 Gobierno de España * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 */ package org.dpppt.backend.sd...
./CrossVul/dataset_final_sorted/CWE-200/java/good_4348_4
crossvul-java_data_bad_3048_1
/* * The MIT License * * Copyright (c) 2013 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_3048_1
crossvul-java_data_good_3051_0
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
./CrossVul/dataset_final_sorted/CWE-200/java/good_3051_0
crossvul-java_data_bad_4188_0
package org.junit.rules; import static org.junit.Assert.fail; import java.io.File; import java.io.IOException; import org.junit.Rule; /** * The TemporaryFolder Rule allows creation of files and folders that should * be deleted when the test method finishes (whether it passes or * fails). * By default no excepti...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_4188_0
crossvul-java_data_good_4347_6
/* * Copyright (c) 2020 Gobierno de España * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 */ package org.dpppt.backend.sd...
./CrossVul/dataset_final_sorted/CWE-200/java/good_4347_6
crossvul-java_data_good_3053_1
package jenkins.security; import com.gargoylesoftware.htmlunit.Page; import hudson.model.UnprotectedRootAction; import hudson.security.ACL; import hudson.security.FullControlOnceLoggedInAuthorizationStrategy; import hudson.util.HttpResponses; import jenkins.model.Jenkins; import org.junit.Assert; import org.junit.Rule...
./CrossVul/dataset_final_sorted/CWE-200/java/good_3053_1
crossvul-java_data_good_4347_5
/* * Copyright (c) 2020 Gobierno de España * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 */ package org.dpppt.backend....
./CrossVul/dataset_final_sorted/CWE-200/java/good_4347_5
crossvul-java_data_bad_3053_0
/* * The MIT License * * Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe, * Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc., * Yahoo!, Inc. * * Permission is hereby granted, free of charge, to any person...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_3053_0
crossvul-java_data_bad_3048_0
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, * Red Hat, Inc., Seiji Sogabe, Stephen Connolly, Thomas J. Black, Tom Huybrechts, CloudBees, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
./CrossVul/dataset_final_sorted/CWE-200/java/bad_3048_0
crossvul-java_data_good_5809_2
package org.jboss.seam.remoting; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.ObjectMessage; import javax.jms.TextMessage; import javax.servlet.http.HttpServletRequest; import javax...
./CrossVul/dataset_final_sorted/CWE-200/java/good_5809_2
crossvul-java_data_bad_4347_5
/* * Copyright (c) 2020 Gobierno de España * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * SPDX-License-Identifier: MPL-2.0 */ package org.dpppt.backend....
./CrossVul/dataset_final_sorted/CWE-200/java/bad_4347_5
crossvul-java_data_bad_4348_4
404: Not Found
./CrossVul/dataset_final_sorted/CWE-200/java/bad_4348_4
crossvul-java_data_bad_5809_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-200/java/bad_5809_1
crossvul-java_data_bad_4348_5
404: Not Found
./CrossVul/dataset_final_sorted/CWE-200/java/bad_4348_5
crossvul-java_data_good_2300_0
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/good_2300_0
crossvul-java_data_bad_2300_2
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/bad_2300_2
crossvul-java_data_good_4768_0
/** * * Copyright 2009 Jive Software. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
./CrossVul/dataset_final_sorted/CWE-362/java/good_4768_0
crossvul-java_data_good_4769_1
/** * * Copyright 2003-2007 Jive Software. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
./CrossVul/dataset_final_sorted/CWE-362/java/good_4769_1
crossvul-java_data_good_2300_1
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/good_2300_1
crossvul-java_data_bad_4769_0
/** * * Copyright 2009 Jive Software. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
./CrossVul/dataset_final_sorted/CWE-362/java/bad_4769_0
crossvul-java_data_bad_4768_0
/** * * Copyright 2009 Jive Software. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
./CrossVul/dataset_final_sorted/CWE-362/java/bad_4768_0
crossvul-java_data_bad_2298_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-362/java/bad_2298_0
crossvul-java_data_bad_2299_0
/* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/bad_2299_0
crossvul-java_data_good_2298_2
/* * JBoss, Home of Professional Open Source * Copyright 2014, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/good_2298_2
crossvul-java_data_bad_2298_2
404: Not Found
./CrossVul/dataset_final_sorted/CWE-362/java/bad_2298_2
crossvul-java_data_bad_2298_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-362/java/bad_2298_1
crossvul-java_data_good_2300_2
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/good_2300_2
crossvul-java_data_good_2298_0
/* * JBoss, Home of Professional Open Source * Copyright 2014, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/good_2298_0
crossvul-java_data_bad_2300_1
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/bad_2300_1
crossvul-java_data_good_4768_1
/** * * Copyright 2003-2007 Jive Software. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
./CrossVul/dataset_final_sorted/CWE-362/java/good_4768_1
crossvul-java_data_bad_4768_1
/** * * Copyright 2003-2007 Jive Software. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
./CrossVul/dataset_final_sorted/CWE-362/java/bad_4768_1
crossvul-java_data_bad_2300_0
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/bad_2300_0
crossvul-java_data_good_4769_0
/** * * Copyright 2009 Jive Software. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
./CrossVul/dataset_final_sorted/CWE-362/java/good_4769_0
crossvul-java_data_good_2299_0
/* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/good_2299_0
crossvul-java_data_bad_4769_1
/** * * Copyright 2003-2007 Jive Software. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
./CrossVul/dataset_final_sorted/CWE-362/java/bad_4769_1
crossvul-java_data_good_2298_1
/* * JBoss, Home of Professional Open Source * Copyright 2014, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
./CrossVul/dataset_final_sorted/CWE-362/java/good_2298_1
crossvul-java_data_bad_1896_2
package io.onedev.server.web.component.markdown; import static org.apache.wicket.ajax.attributes.CallbackParameter.explicit; import java.io.IOException; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; import java.nio.charset.StandardCha...
./CrossVul/dataset_final_sorted/CWE-434/java/bad_1896_2
crossvul-java_data_good_1896_1
package io.onedev.server.web.component.markdown; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import javax.activation.MimetypesFileTypeM...
./CrossVul/dataset_final_sorted/CWE-434/java/good_1896_1
crossvul-java_data_good_1896_0
package io.onedev.server.util; public class FilenameUtils extends org.apache.commons.io.FilenameUtils { public static String sanitizeFilename(String fileName) { return fileName.replace("..", "_").replace('/', '_').replace('\\', '_'); } }
./CrossVul/dataset_final_sorted/CWE-434/java/good_1896_0
crossvul-java_data_bad_1896_3
404: Not Found
./CrossVul/dataset_final_sorted/CWE-434/java/bad_1896_3
crossvul-java_data_bad_1896_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-434/java/bad_1896_0
crossvul-java_data_bad_1896_1
package io.onedev.server.web.component.markdown; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import javax.activation.MimetypesFileTypeM...
./CrossVul/dataset_final_sorted/CWE-434/java/bad_1896_1
crossvul-java_data_good_1896_3
404: Not Found
./CrossVul/dataset_final_sorted/CWE-434/java/good_1896_3
crossvul-java_data_good_1896_2
package io.onedev.server.web.component.markdown; import static org.apache.wicket.ajax.attributes.CallbackParameter.explicit; import java.io.IOException; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; import java.nio.charset.StandardCha...
./CrossVul/dataset_final_sorted/CWE-434/java/good_1896_2
crossvul-java_data_good_4310_0
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 m-privacy GmbH * Copyright (C) 2010 TigerVNC Team * Copyright (C) 2011-2019 Brian P. Hinz * Copyright (C) 2015 D. R. Commander. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * ...
./CrossVul/dataset_final_sorted/CWE-295/java/good_4310_0
crossvul-java_data_good_4313_0
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 m-privacy GmbH * Copyright (C) 2010 TigerVNC Team * Copyright (C) 2011-2019 Brian P. Hinz * Copyright (C) 2015 D. R. Commander. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * ...
./CrossVul/dataset_final_sorted/CWE-295/java/good_4313_0
crossvul-java_data_bad_4313_0
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 m-privacy GmbH * Copyright (C) 2010 TigerVNC Team * Copyright (C) 2011-2019 Brian P. Hinz * Copyright (C) 2015 D. R. Commander. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * ...
./CrossVul/dataset_final_sorted/CWE-295/java/bad_4313_0
crossvul-java_data_bad_4310_0
/* * Copyright (C) 2004 Red Hat Inc. * Copyright (C) 2005 Martin Koegler * Copyright (C) 2010 m-privacy GmbH * Copyright (C) 2010 TigerVNC Team * Copyright (C) 2011-2019 Brian P. Hinz * Copyright (C) 2015 D. R. Commander. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * ...
./CrossVul/dataset_final_sorted/CWE-295/java/bad_4310_0
crossvul-java_data_bad_42_4
package org.bouncycastle.pqc.crypto.xmss; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import org.bouncycastle.crypto.Digest; import org.bouncycastle.util.Arrays; import org.bouncycastle.util...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_42_4
crossvul-java_data_bad_1893_5
package io.onedev.server.product; import java.util.EnumSet; import javax.inject.Inject; import javax.servlet.DispatcherType; import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; import org.apache.shiro.web.env.EnvironmentLoader; import org.apache.shiro.web.env.EnvironmentLoaderL...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_1893_5
crossvul-java_data_good_662_0
/** * Copyright (c) 2004-2011 QOS.ch * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights...
./CrossVul/dataset_final_sorted/CWE-502/java/good_662_0
crossvul-java_data_bad_590_3
/* * Copyright 2017-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_590_3
crossvul-java_data_good_1893_3
package io.onedev.server.web.component.markdown; import static org.apache.wicket.ajax.attributes.CallbackParameter.explicit; import java.io.IOException; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; import java.nio.charset.StandardCha...
./CrossVul/dataset_final_sorted/CWE-502/java/good_1893_3
crossvul-java_data_good_42_0
package org.bouncycastle.pqc.crypto.gmss; import java.security.SecureRandom; import java.util.Vector; import org.bouncycastle.crypto.AsymmetricCipherKeyPair; import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator; import org.bouncycastle.crypto.Digest; import org.bouncycastle.crypto.KeyGenerationParameters; ...
./CrossVul/dataset_final_sorted/CWE-502/java/good_42_0
crossvul-java_data_bad_172_1
package com.fasterxml.jackson.databind.jsontype.impl; import java.util.Collections; import java.util.HashSet; import java.util.Set; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.JsonMappingException; /** * Helper c...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_172_1
crossvul-java_data_good_1894_10
package io.onedev.server.plugin.executor.kubernetes; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.UUID; import javax.inject.Inj...
./CrossVul/dataset_final_sorted/CWE-502/java/good_1894_10
crossvul-java_data_good_42_8
package org.bouncycastle.pqc.jcajce.provider.xmss; import java.io.IOException; import java.security.PrivateKey; import org.bouncycastle.asn1.ASN1ObjectIdentifier; import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; import org.bouncycastle.asn1.x509.AlgorithmIdentifier; import org.bouncycastle.crypto.CipherParameters; i...
./CrossVul/dataset_final_sorted/CWE-502/java/good_42_8
crossvul-java_data_bad_5761_3
/** * License Agreement. * * Rich Faces - Natural Ajax for Java Server Faces (JSF) * * Copyright (C) 2007 Exadel, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software Foundatio...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_5761_3
crossvul-java_data_good_5761_0
/** * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat, Inc. and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the ...
./CrossVul/dataset_final_sorted/CWE-502/java/good_5761_0
crossvul-java_data_bad_1893_0
package io.onedev.server; import java.io.Serializable; import java.lang.reflect.AnnotatedElement; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionE...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_1893_0
crossvul-java_data_good_42_9
package org.bouncycastle.pqc.jcajce.provider.xmss; import java.io.IOException; import java.security.PrivateKey; import org.bouncycastle.asn1.ASN1ObjectIdentifier; import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; import org.bouncycastle.asn1.x509.AlgorithmIdentifier; import org.bouncycastle.crypto.CipherParameters; i...
./CrossVul/dataset_final_sorted/CWE-502/java/good_42_9
crossvul-java_data_good_43_0
package org.bouncycastle.pqc.crypto.xmss; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InvalidClassException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.ObjectStreamClass; impor...
./CrossVul/dataset_final_sorted/CWE-502/java/good_43_0
crossvul-java_data_bad_1893_1
package io.onedev.server.web; import org.apache.wicket.core.request.mapper.ResourceMapper; import org.apache.wicket.markup.html.pages.BrowserInfoPage; import org.apache.wicket.protocol.http.WebApplication; import org.apache.wicket.request.IRequestMapper; import org.apache.wicket.request.mapper.CompoundRequestMapper; ...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_1893_1
crossvul-java_data_bad_1893_2
package io.onedev.server.web.component.markdown; import java.io.IOException; import java.net.URLDecoder; import java.net.URLEncoder; import java.nio.charset.StandardCharsets; import javax.inject.Singleton; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServ...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_1893_2
crossvul-java_data_bad_1894_10
package io.onedev.server.plugin.executor.kubernetes; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.UUID; import javax.inject.Inj...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_1894_10
crossvul-java_data_good_42_3
package org.bouncycastle.pqc.crypto.xmss; import java.io.IOException; import org.bouncycastle.crypto.params.AsymmetricKeyParameter; import org.bouncycastle.util.Arrays; import org.bouncycastle.util.Pack; /** * XMSS Private Key. */ public final class XMSSPrivateKeyParameters extends AsymmetricKeyParameter i...
./CrossVul/dataset_final_sorted/CWE-502/java/good_42_3
crossvul-java_data_bad_42_5
package org.bouncycastle.pqc.math.linearalgebra; import java.security.SecureRandom; import java.util.Vector; /** * This abstract class defines the finite field <i>GF(2<sup>n</sup>)</i>. It * holds the extension degree <i>n</i>, the characteristic, the irreducible * fieldpolynomial and conversion matrices. GF2nFi...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_42_5
crossvul-java_data_good_590_0
/* * Copyright 2013-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
./CrossVul/dataset_final_sorted/CWE-502/java/good_590_0
crossvul-java_data_bad_42_9
package org.bouncycastle.pqc.jcajce.provider.xmss; import java.io.IOException; import java.security.PrivateKey; import org.bouncycastle.asn1.ASN1ObjectIdentifier; import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; import org.bouncycastle.asn1.x509.AlgorithmIdentifier; import org.bouncycastle.crypto.CipherParameters; i...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_42_9
crossvul-java_data_bad_5761_1
/** * License Agreement. * * Rich Faces - Natural Ajax for Java Server Faces (JSF) * * Copyright (C) 2007 Exadel, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software Foundatio...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_5761_1
crossvul-java_data_bad_590_0
/* * Copyright 2013-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_590_0
crossvul-java_data_bad_1893_3
package io.onedev.server.web.component.markdown; import static org.apache.wicket.ajax.attributes.CallbackParameter.explicit; import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Hash...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_1893_3
crossvul-java_data_bad_280_1
package com.fasterxml.jackson.databind.deser; import java.lang.reflect.Type; import java.util.*; import com.fasterxml.jackson.annotation.ObjectIdGenerator; import com.fasterxml.jackson.annotation.ObjectIdGenerators; import com.fasterxml.jackson.annotation.ObjectIdResolver; import com.fasterxml.jackson.databind.*; imp...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_280_1
crossvul-java_data_good_5761_7
/** * License Agreement. * * JBoss RichFaces - Ajax4jsf Component Library * * Copyright (C) 2007 Exadel, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software Foundation. * ...
./CrossVul/dataset_final_sorted/CWE-502/java/good_5761_7