id stringlengths 27 31 | content stringlengths 14 287k | max_stars_repo_path stringlengths 52 57 |
|---|---|---|
crossvul-java_data_bad_1902_0 | package com.bijay.onlinevotingsystem.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;... | ./CrossVul/dataset_final_sorted/CWE-759/java/bad_1902_0 |
crossvul-java_data_bad_1902_2 | package com.bijay.onlinevotingsystem.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Random;
import javax.mail.MessagingException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.We... | ./CrossVul/dataset_final_sorted/CWE-759/java/bad_1902_2 |
crossvul-java_data_good_1902_0 | package com.bijay.onlinevotingsystem.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;... | ./CrossVul/dataset_final_sorted/CWE-759/java/good_1902_0 |
crossvul-java_data_good_1902_1 | package com.bijay.onlinevotingsystem.controller;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Base64;
public class SHA256 {
private static final String SSHA_PREFIX = "{SSHA}";
private static final int SSHA_256_LENGTH = 32; // ... | ./CrossVul/dataset_final_sorted/CWE-759/java/good_1902_1 |
crossvul-java_data_good_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 javax.crypto.Cipher;
import com.bijay.onlinevotingsystem.controller.SHA256;
import com.bijay.onlinevotingsystem.dto.Admin;
im... | ./CrossVul/dataset_final_sorted/CWE-759/java/good_1902_3 |
crossvul-java_data_good_1902_2 | package com.bijay.onlinevotingsystem.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Random;
import javax.mail.MessagingException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.We... | ./CrossVul/dataset_final_sorted/CWE-759/java/good_1902_2 |
crossvul-java_data_bad_2031_10 | package org.jolokia.restrictor;
/*
* Copyright 2009-2013 Roland Huss
*
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_10 |
crossvul-java_data_good_2031_6 | package org.jolokia.restrictor.policy;
/*
* Copyright 2009-2013 Roland Huss
*
* 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-352/java/good_2031_6 |
crossvul-java_data_good_5842_3 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_5842_3 |
crossvul-java_data_good_5842_10 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_5842_10 |
crossvul-java_data_bad_510_0 | /*
* Copyright 2016 http://www.hswebframework.org
*
* 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-352/java/bad_510_0 |
crossvul-java_data_bad_2031_2 | package org.jolokia.http;
import java.io.*;
import java.net.URLDecoder;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.management.*;
import org.jolokia.backend.BackendManager;
import org.jolokia.config.*;
import org.jolokia.request.JmxRequest;
import org.jolokia.requ... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_2 |
crossvul-java_data_good_2031_3 | package org.jolokia.restrictor;
/*
* Copyright 2009-2011 Roland Huss
*
* 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
*
* Unle... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_3 |
crossvul-java_data_bad_2028_4 | package io.hawt.web;
import java.io.IOException;
import java.io.PrintWriter;
import java.security.AccessControlContext;
import java.security.AccessController;
import java.security.Principal;
import java.util.ArrayList;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.List;
import java.uti... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2028_4 |
crossvul-java_data_bad_3058_0 | /*
* The MIT License
*
* Copyright (c) 2004-2012, Sun Microsystems, Inc., Kohsuke Kawaguchi, Erik Ramfelt,
* Tom Huybrechts, Vincent Latombe
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_3058_0 |
crossvul-java_data_bad_2031_1 | package org.jolokia.http;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.management.RuntimeMBeanException;
import javax.servlet.*;
import javax.servlet.http.*;
import org.jolokia.backend.BackendManager;
import org.jolokia.config.*;
import org.jolokia.discovery.DiscoveryMulticastResponder;
impo... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_1 |
crossvul-java_data_bad_5842_10 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_5842_10 |
crossvul-java_data_good_2031_2 | package org.jolokia.http;
import java.io.*;
import java.net.URLDecoder;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.management.*;
import org.jolokia.backend.BackendManager;
import org.jolokia.config.*;
import org.jolokia.request.JmxRequest;
import org.jolokia.requ... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_2 |
crossvul-java_data_good_5842_6 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_5842_6 |
crossvul-java_data_good_5842_1 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_5842_1 |
crossvul-java_data_bad_2031_5 | package org.jolokia.restrictor;
import javax.management.ObjectName;
import org.jolokia.util.HttpMethod;
import org.jolokia.util.RequestType;
/*
* Copyright 2009-2013 Roland Huss
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_5 |
crossvul-java_data_good_2031_9 | package org.jolokia.http;
/*
* Copyright 2009-2011 Roland Huss
*
* 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 req... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_9 |
crossvul-java_data_good_2031_10 | package org.jolokia.restrictor;
/*
* Copyright 2009-2013 Roland Huss
*
* 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 ... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_10 |
crossvul-java_data_bad_5842_1 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_5842_1 |
crossvul-java_data_bad_2031_8 | package org.jolokia.http;
/*
* Copyright 2009-2011 Roland Huss
*
* 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 req... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_8 |
crossvul-java_data_good_5842_8 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_5842_8 |
crossvul-java_data_bad_5842_3 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_5842_3 |
crossvul-java_data_good_510_1 | /*
* Copyright 2016 http://www.hswebframework.org
*
* 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-352/java/good_510_1 |
crossvul-java_data_good_2031_4 | package org.jolokia.restrictor;
import java.io.IOException;
import java.io.InputStream;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.jolokia.restrictor.polic... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_4 |
crossvul-java_data_bad_5842_6 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_5842_6 |
crossvul-java_data_bad_3058_1 | /*
* The MIT License
*
* Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe,
* Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc.,
* Yahoo!, Inc.
*
* Permission is hereby granted, free of charge, to any person... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_3058_1 |
crossvul-java_data_bad_3058_2 | /*
* The MIT License
*
* Copyright (c) 2004-2011, Yahoo!, 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,... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_3058_2 |
crossvul-java_data_bad_5842_8 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_5842_8 |
crossvul-java_data_good_5842_11 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_5842_11 |
crossvul-java_data_good_510_0 | /*
* Copyright 2016 http://www.hswebframework.org
*
* 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-352/java/good_510_0 |
crossvul-java_data_good_2031_8 | package org.jolokia.http;
/*
* Copyright 2009-2011 Roland Huss
*
* 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 req... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_8 |
crossvul-java_data_bad_2031_9 | package org.jolokia.http;
/*
* Copyright 2009-2011 Roland Huss
*
* 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 req... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_9 |
crossvul-java_data_bad_2028_0 | 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-352/java/bad_2028_0 |
crossvul-java_data_good_3058_0 | /*
* The MIT License
*
* Copyright (c) 2004-2012, Sun Microsystems, Inc., Kohsuke Kawaguchi, Erik Ramfelt,
* Tom Huybrechts, Vincent Latombe
*
* 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... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_3058_0 |
crossvul-java_data_bad_2031_7 | package org.jolokia.backend;
/*
* Copyright 2009-2013 Roland Huss
*
* 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 req... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_7 |
crossvul-java_data_good_5842_0 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_5842_0 |
crossvul-java_data_good_2028_0 | package io.hawt.web.plugin.karaf.terminal;
import io.hawt.system.Helpers;
import io.hawt.web.LoginTokenServlet;
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.jlin... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2028_0 |
crossvul-java_data_bad_2028_5 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2028_5 |
crossvul-java_data_bad_5842_11 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_5842_11 |
crossvul-java_data_good_2031_1 | package org.jolokia.http;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.management.RuntimeMBeanException;
import javax.servlet.*;
import javax.servlet.http.*;
import org.jolokia.backend.BackendManager;
import org.jolokia.config.*;
import org.jolokia.discovery.DiscoveryMulticastResponder;
impo... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_1 |
crossvul-java_data_bad_5842_0 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_5842_0 |
crossvul-java_data_bad_2031_6 | package org.jolokia.restrictor.policy;
/*
* Copyright 2009-2013 Roland Huss
*
* 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-352/java/bad_2031_6 |
crossvul-java_data_good_2028_4 | package io.hawt.web;
import io.hawt.system.ConfigManager;
import io.hawt.system.Helpers;
import org.jolokia.converter.Converters;
import org.jolokia.converter.json.JsonConvertOptions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.security.auth.Subject;
import javax.servlet.ServletConfig;
impor... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2028_4 |
crossvul-java_data_bad_510_1 | /*
* Copyright 2016 http://www.hswebframework.org
*
* 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-352/java/bad_510_1 |
crossvul-java_data_good_3058_1 | /*
* The MIT License
*
* Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe,
* Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc.,
* Yahoo!, Inc.
*
* Permission is hereby granted, free of charge, to any person... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_3058_1 |
crossvul-java_data_bad_2031_4 | package org.jolokia.restrictor;
import java.io.IOException;
import java.io.InputStream;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.jolokia.restrictor.polic... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_4 |
crossvul-java_data_good_2031_5 | package org.jolokia.restrictor;
import javax.management.ObjectName;
import org.jolokia.util.HttpMethod;
import org.jolokia.util.RequestType;
/*
* Copyright 2009-2013 Roland Huss
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_5 |
crossvul-java_data_good_3058_2 | /*
* The MIT License
*
* Copyright (c) 2004-2011, Yahoo!, 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,... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_3058_2 |
crossvul-java_data_good_2028_5 | package io.hawt.web;
import org.apache.commons.codec.binary.Base64;
import javax.security.auth.Subject;
import javax.servlet.http.HttpSession;
import java.io.PrintWriter;
import java.security.SecureRandom;
import java.util.HashMap;
import java.util.Map;
/**
* @author Stan Lewis
*/
public class LoginTokenServlet e... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2028_5 |
crossvul-java_data_bad_2031_0 | package org.jolokia.backend;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.*;
import javax.management.*;
import org.jolokia.backend.executor.NotChangedException;
import org.jolokia.config.ConfigKey;
import org.jolokia.config.Con... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_0 |
crossvul-java_data_good_2031_7 | package org.jolokia.backend;
/*
* Copyright 2009-2013 Roland Huss
*
* 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 req... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_7 |
crossvul-java_data_good_4646_2 | package com.softwaremill.session.javadsl;
import akka.http.javadsl.model.FormData;
import akka.http.javadsl.model.HttpRequest;
import akka.http.javadsl.model.HttpResponse;
import akka.http.javadsl.model.StatusCodes;
import akka.http.javadsl.model.headers.Cookie;
import akka.http.javadsl.model.headers.HttpCookie;
impor... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_4646_2 |
crossvul-java_data_bad_4646_2 | package com.softwaremill.session.javadsl;
import akka.http.javadsl.model.FormData;
import akka.http.javadsl.model.HttpRequest;
import akka.http.javadsl.model.HttpResponse;
import akka.http.javadsl.model.StatusCodes;
import akka.http.javadsl.model.headers.Cookie;
import akka.http.javadsl.model.headers.HttpCookie;
impor... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_4646_2 |
crossvul-java_data_bad_2031_3 | package org.jolokia.restrictor;
/*
* Copyright 2009-2011 Roland Huss
*
* 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
*
* Unle... | ./CrossVul/dataset_final_sorted/CWE-352/java/bad_2031_3 |
crossvul-java_data_good_2031_0 | package org.jolokia.backend;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.*;
import javax.management.*;
import org.jolokia.backend.executor.NotChangedException;
import org.jolokia.config.ConfigKey;
import org.jolokia.config.Con... | ./CrossVul/dataset_final_sorted/CWE-352/java/good_2031_0 |
crossvul-java_data_good_2097_2 | /*
* The MIT License
*
* Copyright (c) 2004-2011, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe,
* Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc.,
* Yahoo!, Inc.
*
* Permission is hereby granted, free of charge, to any person... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_2097_2 |
crossvul-java_data_bad_4990_0 | /**
* Copyright (c) 2009--2014 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_4990_0 |
crossvul-java_data_good_509_1 | package org.hswebframework.web.workflow.web;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.swagger.annotations.Api;
import io.... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_509_1 |
crossvul-java_data_bad_3049_0 | /*
* The MIT License
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Tom Huybrechts,
* Yahoo! 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 wit... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_3049_0 |
crossvul-java_data_bad_2083_1 | /*
* Copyright 2002-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 ap... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_2083_1 |
crossvul-java_data_bad_5841_0 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_5841_0 |
crossvul-java_data_bad_1165_1 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2016 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Lice... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_1165_1 |
crossvul-java_data_good_1166_0 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Licens... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_1166_0 |
crossvul-java_data_good_2099_0 | /*
* The MIT License
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Michael B. Donohue, Seiji Sogabe
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, includ... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_2099_0 |
crossvul-java_data_bad_3893_0 | /**
*
*/
package com.salesmanager.shop.store.controller.shoppingCart.facade;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import javax.inject.Inject;
import javax.persistence.NoResultException;
import org.apache.com... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_3893_0 |
crossvul-java_data_good_24_2 | package org.jolokia.http;
/*
* Copyright 2009-2011 Roland Huss
*
* 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 req... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_24_2 |
crossvul-java_data_good_2083_1 | /*
* Copyright 2002-2014 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-79/java/good_2083_1 |
crossvul-java_data_good_24_1 | package org.jolokia.util;
import java.util.regex.Pattern;
/**
* Helper class for handling proper response mime types
*
* @author roland
* @since 24.01.18
*/
public class MimeTypeUtil {
/**
* Extract the response mime type. This value is calculated for different situations:
* <p>
* <ul>
... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_24_1 |
crossvul-java_data_good_4174_2 | package org.mapfish.print.servlet;
import org.json.JSONObject;
import org.junit.After;
import org.junit.Test;
import org.mapfish.print.AbstractMapfishSpringTest;
import org.mapfish.print.config.access.AccessAssertionTestUtil;
import org.mapfish.print.test.util.ImageSimilarity;
import org.mapfish.print.wrapper.json.PJs... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_4174_2 |
crossvul-java_data_good_2083_0 | /*
* Copyright 2002-2014 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-79/java/good_2083_0 |
crossvul-java_data_good_2097_0 | /*
* The MIT License
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Yahoo! Inc., Stephen Connolly, Tom Huybrechts, Alan Harder, Manufacture
* Francaise des Pneumatiques Michelin, Romain Seguy
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_2097_0 |
crossvul-java_data_bad_2097_0 | /*
* The MIT License
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
* Yahoo! Inc., Stephen Connolly, Tom Huybrechts, Alan Harder, Manufacture
* Francaise des Pneumatiques Michelin, Romain Seguy
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_2097_0 |
crossvul-java_data_good_1163_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-79/java/good_1163_0 |
crossvul-java_data_good_5841_1 | /////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_5841_1 |
crossvul-java_data_bad_4990_1 | /**
* Copyright (c) 2009--2014 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_4990_1 |
crossvul-java_data_good_4990_1 | /**
* Copyright (c) 2009--2014 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_4990_1 |
crossvul-java_data_bad_4174_1 | package org.mapfish.print.servlet;
import net.sf.jasperreports.engine.fonts.FontFamily;
import net.sf.jasperreports.extensions.ExtensionsEnvironment;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.lang3.StringUtils;
import org.jfree.util.Log;
import org.json.JSONArray;
import org.json.JSONExcept... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_4174_1 |
crossvul-java_data_good_5805_0 | /*
* Copyright 2002-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 ap... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_5805_0 |
crossvul-java_data_good_3049_17 | package hudson.model;
import com.gargoylesoftware.htmlunit.html.DomNodeUtil;
import com.gargoylesoftware.htmlunit.html.HtmlCheckBoxInput;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlFormUtil;
import com.gargoyl... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_3049_17 |
crossvul-java_data_good_509_0 | package org.hswebframework.web.workflow.enums;
/**
* @author zhouhao
* @since 3.0.5
*/
public enum ModelType {
bpmn, json
}
| ./CrossVul/dataset_final_sorted/CWE-79/java/good_509_0 |
crossvul-java_data_bad_1166_0 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2013 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Licens... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_1166_0 |
crossvul-java_data_bad_1166_1 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Lice... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_1166_1 |
crossvul-java_data_good_4990_0 | /**
* Copyright (c) 2009--2014 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_4990_0 |
crossvul-java_data_bad_3049_17 | package hudson.model;
import static org.junit.Assert.*;
import com.gargoylesoftware.htmlunit.html.DomNodeUtil;
import com.gargoylesoftware.htmlunit.html.HtmlFormUtil;
import org.junit.Rule;
import org.junit.Test;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlForm;
... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_3049_17 |
crossvul-java_data_good_3893_0 | /**
*
*/
package com.salesmanager.shop.store.controller.shoppingCart.facade;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import javax.inject.Inject;
import javax.persistence.NoResultException;
import org.apache.com... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_3893_0 |
crossvul-java_data_bad_2083_0 | /*
* Copyright 2002-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 ap... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_2083_0 |
crossvul-java_data_bad_883_0 | package ca.uhn.fhir.to;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu2.resource.Conformance;
import ca.uhn.fhir.mod... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_883_0 |
crossvul-java_data_good_1165_1 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2016 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Lice... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_1165_1 |
crossvul-java_data_good_24_3 | package org.jolokia.jvmagent.handler;
/*
* Copyright 2009-2013 Roland Huss
*
* 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
*
* U... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_24_3 |
crossvul-java_data_bad_4992_0 | /**
* Copyright (c) 2013--2014 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_4992_0 |
crossvul-java_data_good_883_0 | package ca.uhn.fhir.to;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu2.resource.Conformance;
import ca.uhn.fhir.mod... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_883_0 |
crossvul-java_data_bad_24_1 | 404: Not Found | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_24_1 |
crossvul-java_data_bad_1165_0 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2016 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Licens... | ./CrossVul/dataset_final_sorted/CWE-79/java/bad_1165_0 |
crossvul-java_data_good_5810_0 | /*
* Copyright 2012 JBoss 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 agreed to ... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_5810_0 |
crossvul-java_data_good_3049_0 | /*
* The MIT License
*
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Tom Huybrechts,
* Yahoo! 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 wit... | ./CrossVul/dataset_final_sorted/CWE-79/java/good_3049_0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.