id
stringlengths
27
31
content
stringlengths
14
287k
max_stars_repo_path
stringlengths
52
57
crossvul-java_data_bad_4952_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 * * r...
./CrossVul/dataset_final_sorted/CWE-19/java/bad_4952_0
crossvul-java_data_bad_4757_3
package org.bouncycastle.math.raw; import java.math.BigInteger; import org.bouncycastle.util.Pack; public abstract class Nat224 { private static final long M = 0xFFFFFFFFL; public static int add(int[] x, int[] y, int[] z) { long c = 0; c += (x[0] & M) + (y[0] & M); z[0] = (int)c;...
./CrossVul/dataset_final_sorted/CWE-19/java/bad_4757_3
crossvul-java_data_good_4757_1
package org.bouncycastle.math.raw; import java.math.BigInteger; import org.bouncycastle.util.Pack; public abstract class Nat160 { private static final long M = 0xFFFFFFFFL; public static int add(int[] x, int[] y, int[] z) { long c = 0; c += (x[0] & M) + (y[0] & M); z[0] = (int)c;...
./CrossVul/dataset_final_sorted/CWE-19/java/good_4757_1
crossvul-java_data_good_4757_3
package org.bouncycastle.math.raw; import java.math.BigInteger; import org.bouncycastle.util.Pack; public abstract class Nat224 { private static final long M = 0xFFFFFFFFL; public static int add(int[] x, int[] y, int[] z) { long c = 0; c += (x[0] & M) + (y[0] & M); z[0] = (int)c;...
./CrossVul/dataset_final_sorted/CWE-19/java/good_4757_3
crossvul-java_data_bad_4757_1
package org.bouncycastle.math.raw; import java.math.BigInteger; import org.bouncycastle.util.Pack; public abstract class Nat160 { private static final long M = 0xFFFFFFFFL; public static int add(int[] x, int[] y, int[] z) { long c = 0; c += (x[0] & M) + (y[0] & M); z[0] = (int)c;...
./CrossVul/dataset_final_sorted/CWE-19/java/bad_4757_1
crossvul-java_data_good_4757_0
package org.bouncycastle.math.raw; import java.math.BigInteger; import org.bouncycastle.util.Pack; public abstract class Nat128 { private static final long M = 0xFFFFFFFFL; public static int add(int[] x, int[] y, int[] z) { long c = 0; c += (x[0] & M) + (y[0] & M); z[0] = (int)c;...
./CrossVul/dataset_final_sorted/CWE-19/java/good_4757_0
crossvul-java_data_bad_4757_0
package org.bouncycastle.math.raw; import java.math.BigInteger; import org.bouncycastle.util.Pack; public abstract class Nat128 { private static final long M = 0xFFFFFFFFL; public static int add(int[] x, int[] y, int[] z) { long c = 0; c += (x[0] & M) + (y[0] & M); z[0] = (int)c;...
./CrossVul/dataset_final_sorted/CWE-19/java/bad_4757_0
crossvul-java_data_bad_4757_2
package org.bouncycastle.math.raw; import java.math.BigInteger; import org.bouncycastle.util.Pack; public abstract class Nat192 { private static final long M = 0xFFFFFFFFL; public static int add(int[] x, int[] y, int[] z) { long c = 0; c += (x[0] & M) + (y[0] & M); z[0] = (int)c;...
./CrossVul/dataset_final_sorted/CWE-19/java/bad_4757_2
crossvul-java_data_good_4757_2
package org.bouncycastle.math.raw; import java.math.BigInteger; import org.bouncycastle.util.Pack; public abstract class Nat192 { private static final long M = 0xFFFFFFFFL; public static int add(int[] x, int[] y, int[] z) { long c = 0; c += (x[0] & M) + (y[0] & M); z[0] = (int)c;...
./CrossVul/dataset_final_sorted/CWE-19/java/good_4757_2
crossvul-java_data_good_4952_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 * * r...
./CrossVul/dataset_final_sorted/CWE-19/java/good_4952_0
crossvul-java_data_good_1927_2
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_2
crossvul-java_data_good_1927_1
/* * Copyright 2013 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_1
crossvul-java_data_good_1927_12
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_12
crossvul-java_data_good_1927_11
/* * Copyright 2020 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_11
crossvul-java_data_good_1927_4
/* * Copyright 2020 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_4
crossvul-java_data_bad_1927_13
/* * Copyright 2015 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_13
crossvul-java_data_bad_1927_4
/* * Copyright 2020 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_4
crossvul-java_data_good_1927_3
/* * Copyright 2014 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_3
crossvul-java_data_good_1927_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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_0
crossvul-java_data_bad_1927_15
/* * Copyright 2019 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_15
crossvul-java_data_good_1927_10
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_10
crossvul-java_data_bad_1927_9
/* * Copyright 2014 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_9
crossvul-java_data_bad_1927_1
/* * Copyright 2013 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_1
crossvul-java_data_good_1927_5
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_5
crossvul-java_data_bad_1927_12
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_12
crossvul-java_data_bad_1927_11
/* * Copyright 2020 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_11
crossvul-java_data_bad_1927_14
/* * Copyright 2016 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_14
crossvul-java_data_bad_1927_7
/* * Copyright 2014 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_7
crossvul-java_data_bad_1927_8
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_8
crossvul-java_data_good_1927_13
/* * Copyright 2015 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_13
crossvul-java_data_bad_1927_5
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_5
crossvul-java_data_bad_1927_6
/* * Copyright 2016 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_6
crossvul-java_data_good_1927_9
/* * Copyright 2014 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_9
crossvul-java_data_good_1927_7
/* * Copyright 2014 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_7
crossvul-java_data_bad_1927_3
/* * Copyright 2014 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_3
crossvul-java_data_good_1927_6
/* * Copyright 2016 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_6
crossvul-java_data_good_1927_15
/* * Copyright 2019 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_15
crossvul-java_data_good_1927_8
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_8
crossvul-java_data_bad_1927_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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_0
crossvul-java_data_bad_1927_2
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_2
crossvul-java_data_bad_1927_10
/* * 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/bad_1927_10
crossvul-java_data_good_1927_14
/* * Copyright 2016 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
./CrossVul/dataset_final_sorted/CWE-379/java/good_1927_14
crossvul-java_data_good_5634_0
/******************************************************************************* * Copyright (C) 2009-2011 FuseSource Corp. * Copyright (c) 2000, 2009 IBM Corporation and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License...
./CrossVul/dataset_final_sorted/CWE-94/java/good_5634_0
crossvul-java_data_bad_5634_0
/******************************************************************************* * Copyright (C) 2009-2011 FuseSource Corp. * Copyright (c) 2000, 2009 IBM Corporation and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License...
./CrossVul/dataset_final_sorted/CWE-94/java/bad_5634_0
crossvul-java_data_good_3052_4
/* * 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-287/java/good_3052_4
crossvul-java_data_good_2094_0
package jenkins.security; import hudson.model.User; import hudson.security.ACL; import hudson.security.UserMayOrMayNotExistException; import hudson.util.Scrambler; import jenkins.model.Jenkins; import org.acegisecurity.context.SecurityContext; import org.acegisecurity.context.SecurityContextHolder; import org.acegisec...
./CrossVul/dataset_final_sorted/CWE-287/java/good_2094_0
crossvul-java_data_bad_3052_11
package hudson.diagnosis; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.junit.Rule; import org.junit.Test; import org.jvnet.hudson.test.JenkinsRule; import org.xml.sax.SAXException; import com.gargoylesoftware.htmlunit.html.HtmlP...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_3052_11
crossvul-java_data_good_3052_2
/* * The MIT License * * Copyright (c) 2010, InfraDNA, 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, co...
./CrossVul/dataset_final_sorted/CWE-287/java/good_3052_2
crossvul-java_data_good_2098_0
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Matthew R. Harrah * * 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, ...
./CrossVul/dataset_final_sorted/CWE-287/java/good_2098_0
crossvul-java_data_bad_3052_8
package jenkins.security.s2m; import hudson.Extension; import hudson.model.AdministrativeMonitor; import org.kohsuke.stapler.HttpResponse; import org.kohsuke.stapler.HttpResponses; import org.kohsuke.stapler.QueryParameter; import javax.inject.Inject; import java.io.IOException; /** * If {@link AdminWhitelistRule#m...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_3052_8
crossvul-java_data_good_2029_6
package io.hawt.web; import java.io.IOException; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import javax.security.auth.Subject; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; i...
./CrossVul/dataset_final_sorted/CWE-287/java/good_2029_6
crossvul-java_data_good_3052_6
package jenkins.security; import hudson.Extension; import hudson.init.InitMilestone; import hudson.init.Initializer; import hudson.model.TaskListener; import hudson.util.HttpResponses; import hudson.util.SecretRewriter; import hudson.util.VersionNumber; import jenkins.management.AsynchronousAdministrativeMonitor; impo...
./CrossVul/dataset_final_sorted/CWE-287/java/good_3052_6
crossvul-java_data_good_3052_7
package jenkins.security.s2m; import hudson.Extension; import hudson.FilePath; import hudson.model.AdministrativeMonitor; import hudson.remoting.Callable; import jenkins.model.Jenkins; import org.kohsuke.stapler.HttpResponse; import org.kohsuke.stapler.HttpResponses; import org.kohsuke.stapler.QueryParameter; import o...
./CrossVul/dataset_final_sorted/CWE-287/java/good_3052_7
crossvul-java_data_bad_2029_1
404: Not Found
./CrossVul/dataset_final_sorted/CWE-287/java/bad_2029_1
crossvul-java_data_bad_2098_0
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Matthew R. Harrah * * 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, ...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_2098_0
crossvul-java_data_good_2029_2
package io.hawt.web.plugin.karaf.terminal; import io.hawt.system.Helpers; import org.apache.felix.service.command.CommandProcessor; import org.apache.felix.service.command.CommandSession; import org.apache.felix.service.threadio.ThreadIO; import org.apache.karaf.shell.console.jline.Console; import org.slf4j.Logger; im...
./CrossVul/dataset_final_sorted/CWE-287/java/good_2029_2
crossvul-java_data_good_3052_8
package jenkins.security.s2m; import hudson.Extension; import hudson.model.AdministrativeMonitor; import org.kohsuke.stapler.HttpResponse; import org.kohsuke.stapler.HttpResponses; import org.kohsuke.stapler.QueryParameter; import org.kohsuke.stapler.interceptor.RequirePOST; import javax.inject.Inject; import java.io...
./CrossVul/dataset_final_sorted/CWE-287/java/good_3052_8
crossvul-java_data_bad_3052_5
package jenkins.diagnostics; import hudson.Extension; import hudson.model.AdministrativeMonitor; import jenkins.model.Jenkins; import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler.StaplerResponse; import java.io.IOException; /** * Unsecured Jenkins is, well, insecure. * * <p> * Call attention to...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_3052_5
crossvul-java_data_bad_2094_0
package jenkins.security; import hudson.model.User; import hudson.security.ACL; import hudson.util.Scrambler; import org.acegisecurity.context.SecurityContext; import org.acegisecurity.context.SecurityContextHolder; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; impo...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_2094_0
crossvul-java_data_bad_3052_6
package jenkins.security; import hudson.Extension; import hudson.init.InitMilestone; import hudson.init.Initializer; import hudson.model.TaskListener; import hudson.util.HttpResponses; import hudson.util.SecretRewriter; import hudson.util.VersionNumber; import jenkins.management.AsynchronousAdministrativeMonitor; impo...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_3052_6
crossvul-java_data_bad_3052_4
/* * 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-287/java/bad_3052_4
crossvul-java_data_good_3052_1
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Alan Harder * * 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 limitatio...
./CrossVul/dataset_final_sorted/CWE-287/java/good_3052_1
crossvul-java_data_good_2029_1
package io.hawt.web.plugin.karaf.terminal; import io.hawt.system.ConfigManager; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; /** * @author Stan Lewis */ public class KarafTerminalContextListener implements ServletContextListener { private ConfigManager configManager = n...
./CrossVul/dataset_final_sorted/CWE-287/java/good_2029_1
crossvul-java_data_good_4521_0
/** * 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-287/java/good_4521_0
crossvul-java_data_bad_3052_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-287/java/bad_3052_0
crossvul-java_data_bad_3052_2
/* * The MIT License * * Copyright (c) 2010, InfraDNA, 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, co...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_3052_2
crossvul-java_data_bad_2029_2
package io.hawt.web.plugin.karaf.terminal; import org.apache.felix.service.command.CommandProcessor; import org.apache.felix.service.command.CommandSession; import org.apache.felix.service.threadio.ThreadIO; import org.apache.karaf.shell.console.jline.Console; import org.slf4j.Logger; import org.slf4j.LoggerFactory; ...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_2029_2
crossvul-java_data_good_3052_11
package hudson.diagnosis; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; import com.gargoylesoftware.htmlunit.HttpMethod; impor...
./CrossVul/dataset_final_sorted/CWE-287/java/good_3052_11
crossvul-java_data_good_3052_5
package jenkins.diagnostics; import hudson.Extension; import hudson.model.AdministrativeMonitor; import jenkins.model.Jenkins; import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler.StaplerResponse; import org.kohsuke.stapler.interceptor.RequirePOST; import java.io.IOException; /** * Unsecured Jenkin...
./CrossVul/dataset_final_sorted/CWE-287/java/good_3052_5
crossvul-java_data_good_3052_3
/* * 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-287/java/good_3052_3
crossvul-java_data_good_3052_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-287/java/good_3052_0
crossvul-java_data_bad_3052_3
/* * 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-287/java/bad_3052_3
crossvul-java_data_bad_4521_0
/** * 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-287/java/bad_4521_0
crossvul-java_data_bad_3052_1
/* * The MIT License * * Copyright (c) 2004-2010, Sun Microsystems, Inc., Alan Harder * * 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 limitatio...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_3052_1
crossvul-java_data_bad_3052_7
package jenkins.security.s2m; import hudson.Extension; import hudson.FilePath; import hudson.model.AdministrativeMonitor; import hudson.remoting.Callable; import jenkins.model.Jenkins; import org.kohsuke.stapler.HttpResponse; import org.kohsuke.stapler.HttpResponses; import org.kohsuke.stapler.QueryParameter; import ...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_3052_7
crossvul-java_data_bad_2029_6
package io.hawt.web; import java.io.IOException; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import javax.security.auth.Subject; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; i...
./CrossVul/dataset_final_sorted/CWE-287/java/bad_2029_6
crossvul-java_data_bad_4532_6
/** * 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-327/java/bad_4532_6
crossvul-java_data_good_28_0
package org.bouncycastle.crypto.generators; import java.math.BigInteger; import org.bouncycastle.crypto.AsymmetricCipherKeyPair; import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator; import org.bouncycastle.crypto.KeyGenerationParameters; import org.bouncycastle.crypto.params.RSAKeyGenerationParameters; im...
./CrossVul/dataset_final_sorted/CWE-327/java/good_28_0
crossvul-java_data_bad_4532_5
/** * 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-327/java/bad_4532_5
crossvul-java_data_bad_4532_3
404: Not Found
./CrossVul/dataset_final_sorted/CWE-327/java/bad_4532_3
crossvul-java_data_good_4532_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-327/java/good_4532_1
crossvul-java_data_bad_4532_4
/** * 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-327/java/bad_4532_4
crossvul-java_data_bad_29_0
package org.bouncycastle.crypto.generators; import java.math.BigInteger; import org.bouncycastle.crypto.AsymmetricCipherKeyPair; import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator; import org.bouncycastle.crypto.KeyGenerationParameters; import org.bouncycastle.crypto.params.RSAKeyGenerationParameters; im...
./CrossVul/dataset_final_sorted/CWE-327/java/bad_29_0
crossvul-java_data_bad_4532_2
/** * 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-327/java/bad_4532_2
crossvul-java_data_bad_4532_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-327/java/bad_4532_1
crossvul-java_data_good_4532_6
/** * 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-327/java/good_4532_6
crossvul-java_data_good_4532_5
/** * 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-327/java/good_4532_5
crossvul-java_data_good_4532_3
/** * 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-327/java/good_4532_3
crossvul-java_data_bad_28_0
package org.bouncycastle.crypto.generators; import java.math.BigInteger; import org.bouncycastle.crypto.AsymmetricCipherKeyPair; import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator; import org.bouncycastle.crypto.KeyGenerationParameters; import org.bouncycastle.crypto.params.RSAKeyGenerationParameters; im...
./CrossVul/dataset_final_sorted/CWE-327/java/bad_28_0
crossvul-java_data_good_4532_4
/** * 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-327/java/good_4532_4
crossvul-java_data_good_29_0
package org.bouncycastle.crypto.generators; import java.math.BigInteger; import org.bouncycastle.crypto.AsymmetricCipherKeyPair; import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator; import org.bouncycastle.crypto.KeyGenerationParameters; import org.bouncycastle.crypto.params.RSAKeyGenerationParameters; im...
./CrossVul/dataset_final_sorted/CWE-327/java/good_29_0
crossvul-java_data_good_4532_2
/** * 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-327/java/good_4532_2
crossvul-java_data_good_2398_1
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Jean-Baptiste Quenot, Tom Huybrechts * * 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-254/java/good_2398_1
crossvul-java_data_bad_2398_2
package jenkins.model; import hudson.Extension; import hudson.Util; import hudson.XmlFile; import hudson.util.FormValidation; import hudson.util.XStream2; import net.sf.json.JSONObject; import org.kohsuke.stapler.QueryParameter; import org.kohsuke.stapler.StaplerRequest; import javax.mail.internet.AddressException; i...
./CrossVul/dataset_final_sorted/CWE-254/java/bad_2398_2
crossvul-java_data_good_2398_2
package jenkins.model; import hudson.Extension; import hudson.Util; import hudson.XmlFile; import hudson.util.FormValidation; import hudson.util.XStream2; import net.sf.json.JSONObject; import org.kohsuke.stapler.QueryParameter; import org.kohsuke.stapler.StaplerRequest; import javax.mail.internet.AddressException; i...
./CrossVul/dataset_final_sorted/CWE-254/java/good_2398_2
crossvul-java_data_bad_2398_1
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Jean-Baptiste Quenot, Tom Huybrechts * * 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-254/java/bad_2398_1
crossvul-java_data_good_1902_4
package com.bijay.onlinevotingsystem.dao; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.sql.Date; import com.bijay.onlinevotingsystem.controller.SHA256; import com.bijay.onlinevotingsystem.dto.Voter; import co...
./CrossVul/dataset_final_sorted/CWE-759/java/good_1902_4
crossvul-java_data_bad_1902_4
package com.bijay.onlinevotingsystem.dao; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.sql.Date; import com.bijay.onlinevotingsystem.dto.Voter; import com.bijay.onlinevotingsystem.util.DbUtil; public class V...
./CrossVul/dataset_final_sorted/CWE-759/java/bad_1902_4
crossvul-java_data_bad_1902_3
package com.bijay.onlinevotingsystem.dao; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import com.bijay.onlinevotingsystem.dto.Admin; import com.bijay.onlinevotingsystem.util.DbUtil; public class AdminDaoImpl implements...
./CrossVul/dataset_final_sorted/CWE-759/java/bad_1902_3
crossvul-java_data_bad_1902_1
package com.bijay.onlinevotingsystem.controller; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class SHA256 { public String getSHA(String password) { try { // Static getInstance method is called with hashing SHA MessageDigest md = Mes...
./CrossVul/dataset_final_sorted/CWE-759/java/bad_1902_1