id
stringlengths
27
31
content
stringlengths
14
287k
max_stars_repo_path
stringlengths
52
57
crossvul-java_data_bad_5761_6
package org.richfaces.demo.paint2d; import java.io.Serializable; public class PaintData implements Serializable{ /** * */ private static final long serialVersionUID = 1L; String text; Integer color; float scale; public Integer getColor() { return color; } public void setColor(Integer color) { this....
./CrossVul/dataset_final_sorted/CWE-502/java/bad_5761_6
crossvul-java_data_good_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/good_42_5
crossvul-java_data_bad_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/bad_42_8
crossvul-java_data_good_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/good_1893_1
crossvul-java_data_good_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/good_172_1
crossvul-java_data_bad_42_1
package org.bouncycastle.pqc.crypto.rainbow; import org.bouncycastle.crypto.CipherParameters; public class RainbowParameters implements CipherParameters { /** * DEFAULT PARAMS */ /* * Vi = vinegars per layer whereas n is vu (vu = 33 = n) such that * * v1 = 6; o1 = 12-6 = 6 ...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_42_1
crossvul-java_data_good_3054_1
package hudson.util; import hudson.model.Items; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import org.jvnet.hudson.test.Issue; import org.jvnet.hudson.test.JenkinsRule; impo...
./CrossVul/dataset_final_sorted/CWE-502/java/good_3054_1
crossvul-java_data_bad_449_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_449_1
crossvul-java_data_bad_590_2
404: Not Found
./CrossVul/dataset_final_sorted/CWE-502/java/bad_590_2
crossvul-java_data_bad_42_2
package org.bouncycastle.pqc.crypto.xmss; import java.io.IOException; import org.bouncycastle.crypto.params.AsymmetricKeyParameter; import org.bouncycastle.util.Arrays; /** * XMSS^MT Private Key. */ public final class XMSSMTPrivateKeyParameters extends AsymmetricKeyParameter implements XMSSStoreableObjectI...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_42_2
crossvul-java_data_bad_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/bad_662_0
crossvul-java_data_bad_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/bad_42_3
crossvul-java_data_bad_5761_2
404: Not Found
./CrossVul/dataset_final_sorted/CWE-502/java/bad_5761_2
crossvul-java_data_good_449_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/good_449_1
crossvul-java_data_bad_3054_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-502/java/bad_3054_1
crossvul-java_data_good_42_2
package org.bouncycastle.pqc.crypto.xmss; import java.io.IOException; import org.bouncycastle.crypto.params.AsymmetricKeyParameter; import org.bouncycastle.util.Arrays; /** * XMSS^MT Private Key. */ public final class XMSSMTPrivateKeyParameters extends AsymmetricKeyParameter implements XMSSStoreableObjectI...
./CrossVul/dataset_final_sorted/CWE-502/java/good_42_2
crossvul-java_data_good_5761_6
package org.richfaces.demo.paint2d; import org.ajax4jsf.resource.SerializableResource; public class PaintData implements SerializableResource { /** * */ private static final long serialVersionUID = 1L; String text; Integer color; float scale; public Integer getColor() { return color; } public void se...
./CrossVul/dataset_final_sorted/CWE-502/java/good_5761_6
crossvul-java_data_good_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/good_42_4
crossvul-java_data_good_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/good_5761_1
crossvul-java_data_good_590_2
/* * 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_2
crossvul-java_data_good_42_1
package org.bouncycastle.pqc.crypto.rainbow; import org.bouncycastle.crypto.CipherParameters; public class RainbowParameters implements CipherParameters { /** * DEFAULT PARAMS */ /* * Vi = vinegars per layer whereas n is vu (vu = 33 = n) such that * * v1 = 6; o1 = 12-6 = 6 ...
./CrossVul/dataset_final_sorted/CWE-502/java/good_42_1
crossvul-java_data_bad_5761_5
package org.richfaces.demo.media; import java.awt.Color; import java.io.Serializable; public class MediaData implements Serializable{ private static final long serialVersionUID = 1L; Integer Width=110; Integer Height=50; Color Background=new Color(0,0,0); Color DrawColor=new Color(255,255,255); public MediaDat...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_5761_5
crossvul-java_data_bad_5761_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-502/java/bad_5761_0
crossvul-java_data_good_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/good_5761_3
crossvul-java_data_bad_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/bad_42_0
crossvul-java_data_good_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/good_1893_5
crossvul-java_data_good_5761_5
package org.richfaces.demo.media; import java.awt.Color; import org.ajax4jsf.resource.SerializableResource; public class MediaData implements SerializableResource { private static final long serialVersionUID = 1L; Integer Width=110; Integer Height=50; Color Background=new Color(0,0,0); Color DrawColor=new Colo...
./CrossVul/dataset_final_sorted/CWE-502/java/good_5761_5
crossvul-java_data_bad_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/bad_5761_7
crossvul-java_data_good_42_6
package org.bouncycastle.pqc.crypto.test; import java.io.IOException; import java.security.SecureRandom; import junit.framework.TestCase; import org.bouncycastle.crypto.digests.SHA256Digest; import org.bouncycastle.pqc.crypto.xmss.XMSS; import org.bouncycastle.pqc.crypto.xmss.XMSSMT; import org.bouncycastle.pqc.crypt...
./CrossVul/dataset_final_sorted/CWE-502/java/good_42_6
crossvul-java_data_good_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/good_1893_0
crossvul-java_data_bad_42_6
package org.bouncycastle.pqc.crypto.test; import java.io.IOException; import java.security.SecureRandom; import junit.framework.TestCase; import org.bouncycastle.crypto.digests.SHA256Digest; import org.bouncycastle.pqc.crypto.xmss.XMSSMT; import org.bouncycastle.pqc.crypto.xmss.XMSSMTParameters; import org.bouncycast...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_42_6
crossvul-java_data_good_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/good_280_1
crossvul-java_data_good_5761_2
/** * 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_2
crossvul-java_data_good_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/good_1893_2
crossvul-java_data_bad_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; impo...
./CrossVul/dataset_final_sorted/CWE-502/java/bad_43_0
crossvul-java_data_good_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/good_590_3
crossvul-java_data_good_2139_0
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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 ...
./CrossVul/dataset_final_sorted/CWE-119/java/good_2139_0
crossvul-java_data_good_4291_4
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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-119/java/good_4291_4
crossvul-java_data_good_4291_2
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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-119/java/good_4291_2
crossvul-java_data_bad_4291_3
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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-119/java/bad_4291_3
crossvul-java_data_bad_4291_4
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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-119/java/bad_4291_4
crossvul-java_data_bad_4291_2
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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-119/java/bad_4291_2
crossvul-java_data_bad_2139_0
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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 ...
./CrossVul/dataset_final_sorted/CWE-119/java/bad_2139_0
crossvul-java_data_bad_4291_1
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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-119/java/bad_4291_1
crossvul-java_data_good_4291_1
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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-119/java/good_4291_1
crossvul-java_data_good_4291_3
/* * Copyright (C) 2016 Southern Storm Software, Pty Ltd. * * 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-119/java/good_4291_3
crossvul-java_data_bad_184_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-835/java/bad_184_1
crossvul-java_data_good_184_0
/* * Copyright (c) 2007 innoSysTec (R) GmbH, Germany. All rights reserved. * Original author: Edmund Wagner * Creation date: 22.05.2007 * * Source: $HeadURL$ * Last changed: $LastChangedDate$ * * the unrar licence applies to all junrar source and binary distributions * you are not allowed to use this source to...
./CrossVul/dataset_final_sorted/CWE-835/java/good_184_0
crossvul-java_data_bad_184_0
/* * Copyright (c) 2007 innoSysTec (R) GmbH, Germany. All rights reserved. * Original author: Edmund Wagner * Creation date: 22.05.2007 * * Source: $HeadURL$ * Last changed: $LastChangedDate$ * * the unrar licence applies to all junrar source and binary distributions * you are not allowed to use this source to...
./CrossVul/dataset_final_sorted/CWE-835/java/bad_184_0
crossvul-java_data_good_184_1
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
./CrossVul/dataset_final_sorted/CWE-835/java/good_184_1
crossvul-java_data_bad_3046_0
/* * The MIT License * * Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, Yahoo! Inc., * Manufacture Francaise des Pneumatiques Michelin, Romain Seguy * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "...
./CrossVul/dataset_final_sorted/CWE-326/java/bad_3046_0
crossvul-java_data_good_3046_2
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi * Copyright (c) 2016, CloudBees 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 wi...
./CrossVul/dataset_final_sorted/CWE-326/java/good_3046_2
crossvul-java_data_bad_3046_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-326/java/bad_3046_1
crossvul-java_data_good_3046_1
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi * Copyright (c) 2016, CloudBees 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 with...
./CrossVul/dataset_final_sorted/CWE-326/java/good_3046_1
crossvul-java_data_good_3046_3
package hudson.util; import com.trilead.ssh2.crypto.Base64; import hudson.model.TaskListener; import javax.crypto.Cipher; import javax.crypto.SecretKey; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputSt...
./CrossVul/dataset_final_sorted/CWE-326/java/good_3046_3
crossvul-java_data_bad_3046_2
/* * The MIT License * * Copyright (c) 2004-2010, 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-326/java/bad_3046_2
crossvul-java_data_bad_3046_3
package hudson.util; import com.trilead.ssh2.crypto.Base64; import hudson.model.TaskListener; import javax.crypto.Cipher; import javax.crypto.SecretKey; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputSt...
./CrossVul/dataset_final_sorted/CWE-326/java/bad_3046_3
crossvul-java_data_good_3046_0
/* * The MIT License * * Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi, Yahoo! Inc., * Manufacture Francaise des Pneumatiques Michelin, Romain Seguy * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "...
./CrossVul/dataset_final_sorted/CWE-326/java/good_3046_0
crossvul-java_data_bad_2733_0
package org.bouncycastle.tls.crypto.impl.jcajce; import java.io.IOException; import java.security.PrivateKey; import java.security.SecureRandom; import java.security.interfaces.RSAPrivateKey; import javax.crypto.Cipher; import org.bouncycastle.tls.Certificate; import org.bouncycastle.tls.ProtocolVersion; import org....
./CrossVul/dataset_final_sorted/CWE-203/java/bad_2733_0
crossvul-java_data_good_2733_0
package org.bouncycastle.tls.crypto.impl.jcajce; import java.io.IOException; import java.security.PrivateKey; import java.security.SecureRandom; import java.security.interfaces.RSAPrivateKey; import javax.crypto.Cipher; import org.bouncycastle.tls.Certificate; import org.bouncycastle.tls.ProtocolVersion; import org....
./CrossVul/dataset_final_sorted/CWE-203/java/good_2733_0
crossvul-java_data_good_830_1
/* * Copyright 2013 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 applicabl...
./CrossVul/dataset_final_sorted/CWE-338/java/good_830_1
crossvul-java_data_good_830_0
/* * Copyright 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 applicabl...
./CrossVul/dataset_final_sorted/CWE-338/java/good_830_0
crossvul-java_data_bad_830_0
/* * Copyright 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 applicabl...
./CrossVul/dataset_final_sorted/CWE-338/java/bad_830_0
crossvul-java_data_bad_830_1
/* * Copyright 2013 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 applicabl...
./CrossVul/dataset_final_sorted/CWE-338/java/bad_830_1
crossvul-java_data_bad_1000_1
/* * 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-798/java/bad_1000_1
crossvul-java_data_good_1000_1
/* * 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-798/java/good_1000_1
crossvul-java_data_good_4528_1
/** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the Educational * Community License, Version 2.0 (the ...
./CrossVul/dataset_final_sorted/CWE-798/java/good_4528_1
crossvul-java_data_bad_4528_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-798/java/bad_4528_1
crossvul-java_data_good_1000_3
/* * 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-798/java/good_1000_3
crossvul-java_data_bad_1000_3
/* * 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-798/java/bad_1000_3
crossvul-java_data_good_4128_3
package com.ctrip.framework.apollo.adminservice.filter; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.times; import static org.mockito.Mockito.ve...
./CrossVul/dataset_final_sorted/CWE-20/java/good_4128_3
crossvul-java_data_bad_4247_2
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_4247_2
crossvul-java_data_good_4128_0
package com.ctrip.framework.apollo.adminservice; import com.ctrip.framework.apollo.adminservice.filter.AdminServiceAuthenticationFilter; import com.ctrip.framework.apollo.biz.config.BizConfig; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import...
./CrossVul/dataset_final_sorted/CWE-20/java/good_4128_0
crossvul-java_data_good_418_3
package eu.siacs.conversations.ui; import android.Manifest; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.PendingIntent; import android.content.ActivityNotFoundException; import android.content.ClipData; import android.content.ClipboardManager; import android.content.C...
./CrossVul/dataset_final_sorted/CWE-20/java/good_418_3
crossvul-java_data_bad_4247_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_4247_1
crossvul-java_data_bad_195_7
/* * Copyright (c) 2011-2017 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_195_7
crossvul-java_data_good_4247_1
/* * Copyright (c) 2015, 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-20/java/good_4247_1
crossvul-java_data_good_4247_0
/* * Copyright (c) 2015, 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-20/java/good_4247_0
crossvul-java_data_good_195_0
/* * Copyright (c) 2011-2017 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
./CrossVul/dataset_final_sorted/CWE-20/java/good_195_0
crossvul-java_data_bad_1101_0
/* * Copyright 2011 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 applica...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_1101_0
crossvul-java_data_good_418_0
package eu.siacs.conversations.ui; import android.Manifest; import android.annotation.SuppressLint; import android.app.Activity; import android.app.FragmentManager; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.databinding.DataBindingUtil; import android.net.Uri; im...
./CrossVul/dataset_final_sorted/CWE-20/java/good_418_0
crossvul-java_data_good_761_0
/** * Copyright (c) 2001-2019 Mathew A. Nelson and Robocode contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * https://robocode.sourceforge.io/license/ep...
./CrossVul/dataset_final_sorted/CWE-20/java/good_761_0
crossvul-java_data_good_195_6
/* * Copyright (c) 2011-2017 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
./CrossVul/dataset_final_sorted/CWE-20/java/good_195_6
crossvul-java_data_good_418_2
package eu.siacs.conversations.ui; import android.Manifest; import android.annotation.SuppressLint; import android.app.Dialog; import android.app.PendingIntent; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; imp...
./CrossVul/dataset_final_sorted/CWE-20/java/good_418_2
crossvul-java_data_bad_195_4
/* * Copyright (c) 2011-2017 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_195_4
crossvul-java_data_bad_2626_0
package org.openmrs.module.htmlformentry.web.controller; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.StringWriter; import javax.servlet.http.HttpServletRequest; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.SystemUtils; import org.apache...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_2626_0
crossvul-java_data_good_195_1
/* * Copyright (c) 2011-2017 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
./CrossVul/dataset_final_sorted/CWE-20/java/good_195_1
crossvul-java_data_bad_195_1
/* * Copyright (c) 2011-2017 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_195_1
crossvul-java_data_bad_761_2
/** * Copyright (c) 2001-2019 Mathew A. Nelson and Robocode contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * https://robocode.sourceforge.io/license/ep...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_761_2
crossvul-java_data_good_4128_1
package com.ctrip.framework.apollo.adminservice.filter; import com.ctrip.framework.apollo.biz.config.BizConfig; import com.google.common.base.Splitter; import com.google.common.base.Strings; import java.io.IOException; import java.util.List; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.s...
./CrossVul/dataset_final_sorted/CWE-20/java/good_4128_1
crossvul-java_data_bad_195_3
/* * Copyright (c) 2011-2017 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_195_3
crossvul-java_data_bad_4128_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_4128_1
crossvul-java_data_bad_418_3
package eu.siacs.conversations.ui; import android.Manifest; import android.annotation.SuppressLint; import android.annotation.TargetApi; import android.app.PendingIntent; import android.content.ActivityNotFoundException; import android.content.ClipData; import android.content.ClipboardManager; import android.content.C...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_418_3
crossvul-java_data_bad_1177_0
/* * Copyright 2013 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 applicabl...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_1177_0
crossvul-java_data_bad_657_1
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_657_1
crossvul-java_data_bad_4128_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_4128_0
crossvul-java_data_good_1381_0
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ma...
./CrossVul/dataset_final_sorted/CWE-20/java/good_1381_0
crossvul-java_data_good_195_7
/* * Copyright (c) 2011-2017 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 * which is available at https:...
./CrossVul/dataset_final_sorted/CWE-20/java/good_195_7
crossvul-java_data_bad_761_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_761_1
crossvul-java_data_bad_4128_3
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_4128_3