id
stringlengths
27
31
content
stringlengths
14
287k
max_stars_repo_path
stringlengths
52
57
crossvul-java_data_good_1898_1
package io.onedev.server.model.support.inputspec.textinput; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.validation.ValidationException; import com.google.common.collect.Lists; import io.onedev.server.model.support.inputspec.InputSpec; import io.onedev.server.model.support.i...
./CrossVul/dataset_final_sorted/CWE-74/java/good_1898_1
crossvul-java_data_bad_3891_1
package io.dropwizard.validation.selfvalidating; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; ...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_3891_1
crossvul-java_data_bad_5080_0
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * 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 a...
./CrossVul/dataset_final_sorted/CWE-89/java/bad_5080_0
crossvul-java_data_bad_5029_0
package com.dotmarketing.cms.webforms.action; import java.util.Date; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; impor...
./CrossVul/dataset_final_sorted/CWE-89/java/bad_5029_0
crossvul-java_data_good_5080_1
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates. * * 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 a...
./CrossVul/dataset_final_sorted/CWE-89/java/good_5080_1
crossvul-java_data_good_5220_1
/* * Copyright 2013-2016 the original author or authors. * * 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 ap...
./CrossVul/dataset_final_sorted/CWE-89/java/good_5220_1
crossvul-java_data_good_5029_1
package com.dotmarketing.factories; //import com.dotmarketing.threads.DeliverNewsletterThread; import java.io.BufferedOutputStream; import java.io.File; import java.io.IOException; import java.io.StringWriter; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Iterator; impo...
./CrossVul/dataset_final_sorted/CWE-89/java/good_5029_1
crossvul-java_data_good_5080_2
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * 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 a...
./CrossVul/dataset_final_sorted/CWE-89/java/good_5080_2
crossvul-java_data_bad_5220_1
/* * Copyright 2013-2015 the original author or authors. * * 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 ap...
./CrossVul/dataset_final_sorted/CWE-89/java/bad_5220_1
crossvul-java_data_good_5029_2
package com.dotmarketing.portlets.workflows.model; import java.net.URLEncoder; import java.util.List; import java.util.Map; import com.dotmarketing.business.APILocator; import com.dotmarketing.common.util.SQLUtil; import com.dotmarketing.exception.DotDataException; import com.dotmarketing.util.UtilMethods; import com...
./CrossVul/dataset_final_sorted/CWE-89/java/good_5029_2
crossvul-java_data_bad_5029_2
package com.dotmarketing.portlets.workflows.model; import java.net.URLEncoder; import java.util.List; import java.util.Map; import com.dotmarketing.business.APILocator; import com.dotmarketing.exception.DotDataException; import com.dotmarketing.util.UtilMethods; import com.liferay.portal.model.User; public class Wor...
./CrossVul/dataset_final_sorted/CWE-89/java/bad_5029_2
crossvul-java_data_bad_5080_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-89/java/bad_5080_1
crossvul-java_data_bad_5080_2
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * 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 a...
./CrossVul/dataset_final_sorted/CWE-89/java/bad_5080_2
crossvul-java_data_good_5029_0
package com.dotmarketing.cms.webforms.action; import java.util.Date; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; impor...
./CrossVul/dataset_final_sorted/CWE-89/java/good_5029_0
crossvul-java_data_bad_5029_1
package com.dotmarketing.factories; //import com.dotmarketing.threads.DeliverNewsletterThread; import java.io.BufferedOutputStream; import java.io.File; import java.io.IOException; import java.io.StringWriter; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.Iterator; impo...
./CrossVul/dataset_final_sorted/CWE-89/java/bad_5029_1
crossvul-java_data_good_5080_0
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * 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 a...
./CrossVul/dataset_final_sorted/CWE-89/java/good_5080_0
crossvul-java_data_bad_4334_2
/* * Copyright (C) 2013, 2014, 2017, 2018, 2020 XStream Committers. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * * Created on 23. December 2013 by Joerg Schai...
./CrossVul/dataset_final_sorted/CWE-78/java/bad_4334_2
crossvul-java_data_bad_4334_1
/* * Copyright (C) 2003, 2004, 2005, 2006 Joe Walnes. * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2020 XStream Committers. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been incl...
./CrossVul/dataset_final_sorted/CWE-78/java/bad_4334_1
crossvul-java_data_bad_2537_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-78/java/bad_2537_1
crossvul-java_data_good_4334_2
/* * Copyright (C) 2013, 2014, 2017, 2018, 2020 XStream Committers. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * * Created on 23. December 2013 by Joerg Schai...
./CrossVul/dataset_final_sorted/CWE-78/java/good_4334_2
crossvul-java_data_bad_2537_2
404: Not Found
./CrossVul/dataset_final_sorted/CWE-78/java/bad_2537_2
crossvul-java_data_good_4334_1
/* * Copyright (C) 2003, 2004, 2005, 2006 Joe Walnes. * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2020 XStream Committers. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been incl...
./CrossVul/dataset_final_sorted/CWE-78/java/good_4334_1
crossvul-java_data_good_2537_2
package org.codehaus.plexus.util.cli.shell; /* * Copyright The Codehaus Foundation. * * 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 ...
./CrossVul/dataset_final_sorted/CWE-78/java/good_2537_2
crossvul-java_data_good_2537_0
package org.codehaus.plexus.util.cli; /* * Copyright The Codehaus Foundation. * * 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 * * ...
./CrossVul/dataset_final_sorted/CWE-78/java/good_2537_0
crossvul-java_data_good_2537_1
package org.codehaus.plexus.util.cli.shell; /* * Copyright The Codehaus Foundation. * * 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 ...
./CrossVul/dataset_final_sorted/CWE-78/java/good_2537_1
crossvul-java_data_bad_2537_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-78/java/bad_2537_0
crossvul-java_data_bad_873_0
package org.dynmap.servlet; import org.dynmap.DynmapCore; import org.dynmap.DynmapWorld; import org.dynmap.MapType.ImageEncoding; import org.dynmap.PlayerFaces; import org.dynmap.storage.MapStorage; import org.dynmap.storage.MapStorageTile; import org.dynmap.storage.MapStorageTile.TileRead; import org.dynmap.utils.Buf...
./CrossVul/dataset_final_sorted/CWE-284/java/bad_873_0
crossvul-java_data_good_873_0
package org.dynmap.servlet; import org.dynmap.DynmapCore; import org.dynmap.DynmapWorld; import org.dynmap.MapType.ImageEncoding; import org.dynmap.PlayerFaces; import org.dynmap.storage.MapStorage; import org.dynmap.storage.MapStorageTile; import org.dynmap.storage.MapStorageTile.TileRead; import org.dynmap.utils.Buf...
./CrossVul/dataset_final_sorted/CWE-284/java/good_873_0
crossvul-java_data_good_4759_0
package org.bouncycastle.asn1; import java.io.IOException; import java.math.BigInteger; import org.bouncycastle.util.Arrays; /** * Class representing the ASN.1 ENUMERATED type. */ public class ASN1Enumerated extends ASN1Primitive { private final byte[] bytes; /** * return an enumerated from the p...
./CrossVul/dataset_final_sorted/CWE-347/java/good_4759_0
crossvul-java_data_bad_4759_0
package org.bouncycastle.asn1; import java.io.IOException; import java.math.BigInteger; import org.bouncycastle.util.Arrays; /** * Class representing the ASN.1 ENUMERATED type. */ public class ASN1Enumerated extends ASN1Primitive { private final byte[] bytes; /** * return an enumerated from the p...
./CrossVul/dataset_final_sorted/CWE-347/java/bad_4759_0
crossvul-java_data_good_4759_2
package org.bouncycastle.asn1.test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import org.bouncycastle.asn1.ASN1Encodable; import org.bouncycastle.asn1.ASN1Enumerated; import org.bouncycastle.asn1.ASN1InputStream; import org.bouncycastle.asn1.ASN1Integer; im...
./CrossVul/dataset_final_sorted/CWE-347/java/good_4759_2
crossvul-java_data_bad_4759_5
package org.bouncycastle.jce.provider.test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.math.BigInteger; import java.security.AlgorithmParameterGenerator; import java.security.Alg...
./CrossVul/dataset_final_sorted/CWE-347/java/bad_4759_5
crossvul-java_data_bad_4754_1
package org.bouncycastle.jce.provider.test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.math.BigInteger; import java.security.AlgorithmParameterGenerator; import java.security.Alg...
./CrossVul/dataset_final_sorted/CWE-347/java/bad_4754_1
crossvul-java_data_bad_4754_0
package org.bouncycastle.jcajce.provider.asymmetric.dsa; import java.io.IOException; import java.math.BigInteger; import java.security.InvalidKeyException; import java.security.PrivateKey; import java.security.PublicKey; import java.security.SecureRandom; import java.security.SignatureException; import java.security.S...
./CrossVul/dataset_final_sorted/CWE-347/java/bad_4754_0
crossvul-java_data_good_4759_5
package org.bouncycastle.jce.provider.test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.math.BigInteger; import java.security.AlgorithmParameterGenerator; import java.security.Alg...
./CrossVul/dataset_final_sorted/CWE-347/java/good_4759_5
crossvul-java_data_good_4759_3
package org.bouncycastle.jcajce.provider.asymmetric.dsa; import java.io.IOException; import java.math.BigInteger; import java.security.InvalidKeyException; import java.security.PrivateKey; import java.security.PublicKey; import java.security.SecureRandom; import java.security.SignatureException; import java.security.S...
./CrossVul/dataset_final_sorted/CWE-347/java/good_4759_3
crossvul-java_data_bad_4759_1
package org.bouncycastle.asn1; import java.io.IOException; import java.math.BigInteger; import org.bouncycastle.util.Arrays; /** * Class representing the ASN.1 INTEGER type. */ public class ASN1Integer extends ASN1Primitive { private final byte[] bytes; /** * return an integer from the passed in ...
./CrossVul/dataset_final_sorted/CWE-347/java/bad_4759_1
crossvul-java_data_bad_4759_4
package org.bouncycastle.jcajce.provider.asymmetric.ec; import java.io.IOException; import java.math.BigInteger; import java.security.InvalidKeyException; import java.security.PrivateKey; import java.security.PublicKey; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1Encoding; impor...
./CrossVul/dataset_final_sorted/CWE-347/java/bad_4759_4
crossvul-java_data_good_4754_0
package org.bouncycastle.jcajce.provider.asymmetric.dsa; import java.io.IOException; import java.math.BigInteger; import java.security.InvalidKeyException; import java.security.PrivateKey; import java.security.PublicKey; import java.security.SecureRandom; import java.security.SignatureException; import java.security.S...
./CrossVul/dataset_final_sorted/CWE-347/java/good_4754_0
crossvul-java_data_good_4754_1
package org.bouncycastle.jce.provider.test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.math.BigInteger; import java.security.AlgorithmParameterGenerator; import java.security.Alg...
./CrossVul/dataset_final_sorted/CWE-347/java/good_4754_1
crossvul-java_data_good_4759_1
package org.bouncycastle.asn1; import java.io.IOException; import java.math.BigInteger; import org.bouncycastle.util.Arrays; /** * Class representing the ASN.1 INTEGER type. */ public class ASN1Integer extends ASN1Primitive { private final byte[] bytes; /** * return an integer from the passed in ...
./CrossVul/dataset_final_sorted/CWE-347/java/good_4759_1
crossvul-java_data_good_4759_4
package org.bouncycastle.jcajce.provider.asymmetric.ec; import java.io.IOException; import java.math.BigInteger; import java.security.InvalidKeyException; import java.security.PrivateKey; import java.security.PublicKey; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1Encoding; impor...
./CrossVul/dataset_final_sorted/CWE-347/java/good_4759_4
crossvul-java_data_bad_4759_3
package org.bouncycastle.jcajce.provider.asymmetric.dsa; import java.io.IOException; import java.math.BigInteger; import java.security.InvalidKeyException; import java.security.PrivateKey; import java.security.PublicKey; import java.security.SecureRandom; import java.security.SignatureException; import java.security.S...
./CrossVul/dataset_final_sorted/CWE-347/java/bad_4759_3
crossvul-java_data_bad_4759_2
package org.bouncycastle.asn1.test; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import org.bouncycastle.asn1.ASN1Encodable; import org.bouncycastle.asn1.ASN1InputStream; import org.bouncycastle.asn1.ASN1OutputStream; import org.bouncycastle.asn1.ASN1Primitive...
./CrossVul/dataset_final_sorted/CWE-347/java/bad_4759_2
crossvul-java_data_bad_3993_0
/** * BigBlueButton open source conferencing system - http://www.bigbluebutton.org/ * * Copyright (c) 2012 BigBlueButton Inc. and by respective authors (see below). * * This program is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published b...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_3993_0
crossvul-java_data_good_498_1
package cc.mrbird.common.exception; /** * 文件下载异常 */ public class FileDownloadException extends Exception { private static final long serialVersionUID = -3608667856397125671L; public FileDownloadException(String message) { super(message); } }
./CrossVul/dataset_final_sorted/CWE-22/java/good_498_1
crossvul-java_data_good_68_0
/** * Copyright (C) 2012 ZeroTurnaround LLC <support@zeroturnaround.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 * * http://www.apache.org/licenses/LICENSE-2...
./CrossVul/dataset_final_sorted/CWE-22/java/good_68_0
crossvul-java_data_bad_4471_0
/* * file: InputStreamHelper.java * author: Jon Iles * copyright: (c) Packwood Software 2016 * date: 06/06/2016 */ /* * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the * Free Software Foundat...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_4471_0
crossvul-java_data_good_689_0
/* * Copyright 2002-2012 the original author or authors. * * 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 ap...
./CrossVul/dataset_final_sorted/CWE-22/java/good_689_0
crossvul-java_data_good_1884_2
package eu.hinsch.spring.boot.actuator.logview; import freemarker.template.Configuration; import freemarker.template.TemplateException; import org.apache.commons.io.IOUtils; import org.springframework.boot.actuate.endpoint.Endpoint; import org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint; import org.springfra...
./CrossVul/dataset_final_sorted/CWE-22/java/good_1884_2
crossvul-java_data_good_67_1
package org.codehaus.plexus.archiver.zip; import java.io.File; import java.lang.reflect.Method; import org.codehaus.plexus.PlexusTestCase; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.UnArchiver; import org.codehaus.plexus.components.io.fileselectors.FileSelector; import org.codeha...
./CrossVul/dataset_final_sorted/CWE-22/java/good_67_1
crossvul-java_data_good_499_0
package cc.mrbird.common.controller; import cc.mrbird.common.exception.FileDownloadException; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import ja...
./CrossVul/dataset_final_sorted/CWE-22/java/good_499_0
crossvul-java_data_bad_67_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-22/java/bad_67_0
crossvul-java_data_good_4612_0
/** * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION * * 1. Definitions. * * "License" shall mean the terms and conditions for use, reproduction, * and distribution as defined by Sections 1 through 9 of this documen...
./CrossVul/dataset_final_sorted/CWE-22/java/good_4612_0
crossvul-java_data_good_4471_0
/* * file: InputStreamHelper.java * author: Jon Iles * copyright: (c) Packwood Software 2016 * date: 06/06/2016 */ /* * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the * Free Software Foundat...
./CrossVul/dataset_final_sorted/CWE-22/java/good_4471_0
crossvul-java_data_bad_688_1
package spark.embeddedserver.jetty; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.junit.After; import org.junit.Test; import spark.embeddedserver.EmbeddedServer; import spark.route.Routes; import spark.staticfiles.StaticFilesConfiguration; import static org....
./CrossVul/dataset_final_sorted/CWE-22/java/bad_688_1
crossvul-java_data_good_4612_2
/** * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION * * 1. Definitions. * * "License" shall mean the terms and conditio...
./CrossVul/dataset_final_sorted/CWE-22/java/good_4612_2
crossvul-java_data_bad_489_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-22/java/bad_489_1
crossvul-java_data_good_689_1
package spark.embeddedserver.jetty; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.junit.After; import org.junit.Test; import spark.embeddedserver.EmbeddedServer; import spark.route.Routes; import spark.staticfiles.StaticFilesConfiguration; import static org...
./CrossVul/dataset_final_sorted/CWE-22/java/good_689_1
crossvul-java_data_good_1883_2
package eu.hinsch.spring.boot.actuator.logview; import freemarker.template.Configuration; import freemarker.template.TemplateException; import org.apache.commons.io.IOUtils; import org.springframework.boot.actuate.endpoint.Endpoint; import org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint; import org.springfra...
./CrossVul/dataset_final_sorted/CWE-22/java/good_1883_2
crossvul-java_data_good_256_0
/* * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at * http://www.eclipse.org/legal/epl-2.0. * * This Source Code may also be made available...
./CrossVul/dataset_final_sorted/CWE-22/java/good_256_0
crossvul-java_data_bad_54_0
/* * Copyright (C) 2012 Square, 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 agre...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_54_0
crossvul-java_data_bad_4612_1
/** * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION * * 1. Definitions. * * "License" shall mean the terms and conditio...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_4612_1
crossvul-java_data_good_54_0
/* * Copyright (C) 2012 Square, 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 agre...
./CrossVul/dataset_final_sorted/CWE-22/java/good_54_0
crossvul-java_data_bad_4612_4
package org.jooby.handlers; import static org.easymock.EasyMock.expect; import static org.junit.Assert.assertNotNull; import java.io.File; import java.net.MalformedURLException; import java.net.URI; import java.net.URL; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import org.joo...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_4612_4
crossvul-java_data_bad_416_0
package org.linlinjava.litemall.wx.web; import org.linlinjava.litemall.core.storage.StorageService; import org.linlinjava.litemall.core.util.CharUtil; import org.linlinjava.litemall.core.util.ResponseUtil; import org.linlinjava.litemall.db.domain.LitemallStorage; import org.linlinjava.litemall.db.service.LitemallStora...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_416_0
crossvul-java_data_bad_54_1
/* * Copyright (C) 2013 Square, 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 agre...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_54_1
crossvul-java_data_bad_1883_3
package eu.hinsch.spring.boot.actuator.logview; import org.apache.catalina.ssi.ByteArrayServletOutputStream; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IO...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_1883_3
crossvul-java_data_good_688_1
package spark.embeddedserver.jetty; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.junit.After; import org.junit.Test; import spark.embeddedserver.EmbeddedServer; import spark.route.Routes; import spark.staticfiles.StaticFilesConfiguration; import static org...
./CrossVul/dataset_final_sorted/CWE-22/java/good_688_1
crossvul-java_data_bad_689_2
/* * Copyright 2011- Per Wendel * * 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-22/java/bad_689_2
crossvul-java_data_bad_690_1
/* * Copyright 2002-2012 the original author or authors. * * 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 ap...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_690_1
crossvul-java_data_good_690_1
/* * Copyright 2002-2012 the original author or authors. * * 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 ap...
./CrossVul/dataset_final_sorted/CWE-22/java/good_690_1
crossvul-java_data_good_4612_4
package org.jooby.handlers; import org.jooby.Route; import org.jooby.test.MockUnit; import org.jooby.test.MockUnit.Block; import org.junit.Test; import org.junit.runner.RunWith; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import java.io.File; ...
./CrossVul/dataset_final_sorted/CWE-22/java/good_4612_4
crossvul-java_data_good_688_0
/* * Copyright 2002-2012 the original author or authors. * * 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 ap...
./CrossVul/dataset_final_sorted/CWE-22/java/good_688_0
crossvul-java_data_bad_1884_3
package eu.hinsch.spring.boot.actuator.logview; import org.apache.catalina.ssi.ByteArrayServletOutputStream; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IO...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_1884_3
crossvul-java_data_bad_1883_2
package eu.hinsch.spring.boot.actuator.logview; import freemarker.template.Configuration; import freemarker.template.TemplateException; import org.apache.commons.io.IOUtils; import org.springframework.boot.actuate.endpoint.Endpoint; import org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint; import org.springfra...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_1883_2
crossvul-java_data_bad_498_2
package cc.mrbird.common.handler; import cc.mrbird.common.domain.ResponseBo; import cc.mrbird.common.exception.LimitAccessException; import org.apache.shiro.authz.AuthorizationException; import org.apache.shiro.session.ExpiredSessionException; import org.springframework.core.Ordered; import org.springframework.core.an...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_498_2
crossvul-java_data_good_68_1
package org.zeroturnaround.zip; /** * Copyright (C) 2012 ZeroTurnaround LLC <support@zeroturnaround.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 * * http://...
./CrossVul/dataset_final_sorted/CWE-22/java/good_68_1
crossvul-java_data_bad_1884_2
package eu.hinsch.spring.boot.actuator.logview; import freemarker.template.Configuration; import freemarker.template.TemplateException; import org.apache.commons.io.IOUtils; import org.springframework.boot.actuate.endpoint.Endpoint; import org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint; import org.springfra...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_1884_2
crossvul-java_data_bad_67_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-22/java/bad_67_1
crossvul-java_data_good_67_0
/** * * Copyright 2004 The Apache Software Foundation * * 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 applicabl...
./CrossVul/dataset_final_sorted/CWE-22/java/good_67_0
crossvul-java_data_bad_256_1
/* * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at * http://www.eclipse.org/legal/epl-2.0. * * This Source Code may also be made available...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_256_1
crossvul-java_data_bad_689_0
/* * Copyright 2002-2012 the original author or authors. * * 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 ap...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_689_0
crossvul-java_data_bad_4612_2
/** * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION * * 1. Definitions. * * "License" shall mean the terms and conditio...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_4612_2
crossvul-java_data_bad_256_0
/* * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at * http://www.eclipse.org/legal/epl-2.0. * * This Source Code may also be made available...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_256_0
crossvul-java_data_good_498_2
package cc.mrbird.common.handler; import cc.mrbird.common.domain.ResponseBo; import cc.mrbird.common.exception.FileDownloadException; import cc.mrbird.common.exception.LimitAccessException; import org.apache.shiro.authz.AuthorizationException; import org.apache.shiro.session.ExpiredSessionException; import org.springf...
./CrossVul/dataset_final_sorted/CWE-22/java/good_498_2
crossvul-java_data_good_256_1
/* * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at * http://www.eclipse.org/legal/epl-2.0. * * This Source Code may also be made available...
./CrossVul/dataset_final_sorted/CWE-22/java/good_256_1
crossvul-java_data_good_489_1
/******************************************************************************* * Copyright (c) 2018 Eclipse RDF4J contributors. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies this distribution, an...
./CrossVul/dataset_final_sorted/CWE-22/java/good_489_1
crossvul-java_data_bad_4612_5
404: Not Found
./CrossVul/dataset_final_sorted/CWE-22/java/bad_4612_5
crossvul-java_data_good_1883_3
package eu.hinsch.spring.boot.actuator.logview; import org.apache.catalina.ssi.ByteArrayServletOutputStream; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IO...
./CrossVul/dataset_final_sorted/CWE-22/java/good_1883_3
crossvul-java_data_bad_489_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-22/java/bad_489_0
crossvul-java_data_bad_689_1
package spark.embeddedserver.jetty; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.util.thread.QueuedThreadPool; import org.junit.After; import org.junit.Test; import spark.embeddedserver.EmbeddedServer; import spark.route.Routes; import spark.staticfiles.StaticFilesConfiguration; import static org....
./CrossVul/dataset_final_sorted/CWE-22/java/bad_689_1
crossvul-java_data_bad_498_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-22/java/bad_498_1
crossvul-java_data_bad_688_0
/* * Copyright 2002-2012 the original author or authors. * * 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 ap...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_688_0
crossvul-java_data_bad_499_0
package cc.mrbird.common.controller; import cc.mrbird.common.exception.FileDownloadException; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import ja...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_499_0
crossvul-java_data_bad_4101_0
/** * This file is part of the Goobi viewer - a content presentation and management application for digitized objects. * * Visit these websites for more information. * - http://www.intranda.com * - http://digiverso.com * * This program is free software; you can redistribute it and/or modify it ...
./CrossVul/dataset_final_sorted/CWE-22/java/bad_4101_0
crossvul-java_data_good_54_1
/* * Copyright (C) 2013 Square, 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 agre...
./CrossVul/dataset_final_sorted/CWE-22/java/good_54_1
crossvul-java_data_bad_68_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-22/java/bad_68_1
crossvul-java_data_good_498_0
package cc.mrbird.common.controller; import cc.mrbird.common.exception.FileDownloadException; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import ja...
./CrossVul/dataset_final_sorted/CWE-22/java/good_498_0
crossvul-java_data_good_3993_0
/** * BigBlueButton open source conferencing system - http://www.bigbluebutton.org/ * * Copyright (c) 2012 BigBlueButton Inc. and by respective authors (see below). * * This program is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published b...
./CrossVul/dataset_final_sorted/CWE-22/java/good_3993_0