id stringlengths 19 29 | content stringlengths 384 8.43k | max_stars_repo_path stringlengths 38 48 |
|---|---|---|
vjbench_data_Ratpack-1 | private void newRequest(ChannelHandlerContext ctx, HttpRequest nettyRequest) throws Exception {
if (!nettyRequest.decoderResult().isSuccess()) {
LOGGER.debug("Failed to decode HTTP request.", nettyRequest.decoderResult().cause());
sendError(ctx, HttpResponseStatus.BAD_REQUEST);
return;
}
Headers reque... | ./VJBench/llm-vul/VJBench-trans/Ratpack-1 |
vjbench_data_Jenkins-3 | @Override
public SearchIndexBuilder makeSearchIndex() {
return super.makeSearchIndex()
.add("configure", "config","configure")
.add("manage")
.add("log")
.add(new CollectionSearchIndex<TopLevelItem>() {
protected SearchItem get(String key) ... | ./VJBench/llm-vul/VJBench-trans/Jenkins-3 |
vjbench_data_Pulsar-1 | protected void internalGetMessageById(AsyncResponse asyncResponse, long ledgerId, long entryId,
boolean authoritative) {
try {
validateTopicOwnership(topicName, authoritative);
validateTopicOperation(topicName, TopicOperation.PEEK_MESSAGES);
if (topi... | ./VJBench/llm-vul/VJBench-trans/Pulsar-1 |
vjbench_data_Quartz-1 | protected void initDocumentParser() throws ParserConfigurationException {
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
docBuilderFactory.setNamespaceAware(true);
docBuilderFactory.setValidating(true);
docBuilderFactory.setAttribute("http://java.sun.com/xml/jaxp/prope... | ./VJBench/llm-vul/VJBench-trans/Quartz-1 |
vjbench_data_BC-Java-1 | private BigInteger[] derDecode(
byte[] encoding)
throws IOException
{
ASN1Sequence s = (ASN1Sequence)ASN1Primitive.fromByteArray(encoding);
return new BigInteger[]{
((ASN1Integer)s.getObjectAt(0)).getValue(),
((ASN1Integer)s.getObjectAt(1)).getValue()
};
}
private BigInteger[]... | ./VJBench/llm-vul/VJBench-trans/BC-Java-1 |
vjbench_data_Halo-1 | public static void checkDirectoryTraversal(@NonNull Path parentPath, @NonNull Path pathToCheck) {
Assert.notNull(parentPath, "Parent path must not be null");
Assert.notNull(pathToCheck, "Path to check must not be null");
if (pathToCheck.startsWith(parentPath.normalize())) {
return;
}
throw n... | ./VJBench/llm-vul/VJBench-trans/Halo-1 |
vjbench_data_Netty-2 | private void splitHeader(AppendableCharSequence sb) {
final int length = sb.length();
int nameStart;
int nameEnd;
int colonEnd;
int valueStart;
int valueEnd;
nameStart = findNonWhitespace(sb, 0);
for (nameEnd = nameStart; nameEnd < length; nameEnd ++) {
char ch = sb.charAtUnsafe(... | ./VJBench/llm-vul/VJBench-trans/Netty-2 |
vjbench_data_Netty-1 | private void splitHeader(AppendableCharSequence sb) {
final int length = sb.length();
int nameStart;
int nameEnd;
int colonEnd;
int valueStart;
int valueEnd;
nameStart = findNonWhitespace(sb, 0);
for (nameEnd = nameStart; nameEnd < length; nameEnd ++) {
char ch = sb.charAtUnsafe(... | ./VJBench/llm-vul/VJBench-trans/Netty-1 |
vjbench_data_Flow-1 | public boolean serveDevModeRequest(HttpServletRequest request,
HttpServletResponse response) throws IOException {
if (isDevServerFailedToStart.get() || !devServerStartFuture.isDone()) {
return false;
}
String requestFilename = request.getPathInfo();
if (HandlerHelper.isPathUnsafe(request... | ./VJBench/llm-vul/VJBench-trans/Flow-1 |
vjbench_data_Jinjava-1 | private static final Set<String> RESTRICTED_METHODS = ImmutableSet.<String> builder()
.add("clone")
.add("hashCode")
.add("notify")
.add("notifyAll")
.add("wait")
.build();
private static final Set<String> RESTRICTED_METHODS = ImmutableSet.<String> builder()
.add("clone")
... | ./VJBench/llm-vul/VJBench-trans/Jinjava-1 |
vjbench_data_Retrofit-1 | JaxbResponseConverter(JAXBContext context, Class<T> type) {
this.context = context;
this.type = type;
}
JaxbResponseConverter(JAXBContext context, Class<T> type) {
this.type = type;
this.context = context;
xmlInputFactory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);
xmlI... | ./VJBench/llm-vul/VJBench-trans/Retrofit-1 |
vjbench_data_Json-sanitizer-1 | private void sanitizeString(int start, int end) {
boolean closed = false;
for (int i = start; i < end; ++i) {
char ch = jsonish.charAt(i);
switch (ch) {
case '\n': replace(i, i + 1, "\\n"); break;
case '\r': replace(i, i + 1, "\\r"); break;
case '\u2028': replace(i, i + 1, "\\u2028"); brea... | ./VJBench/llm-vul/VJBench-trans/Json-sanitizer-1 |
vjbench_data_Jenkins-1 | @Exported(inline=true)
public Map<String,Object> getMonitorData() {
Map<String,Object> r = new HashMap<String, Object>();
for (NodeMonitor monitor : NodeMonitor.getAll())
r.put(monitor.getClass().getName(),monitor.data(this));
return r;
}
@Exported(inline=true)
public Map<String,Object> getMonitor... | ./VJBench/llm-vul/VJBench-trans/Jenkins-1 |
vjbench_data_Flow-2 | @Override
public int setErrorParameter(BeforeEnterEvent event,
ErrorParameter<NotFoundException> parameter) {
String path = event.getLocation().getPath();
String additionalInfo = "";
if (parameter.hasCustomMessage()) {
additionalInfo = "Reason: " + parameter.getCustomMessage();
}
pat... | ./VJBench/llm-vul/VJBench-trans/Flow-2 |
vjbench_data_Jenkins-2 | @Exported(name="jobs")
public List<TopLevelItem> getItems() {
if (authorizationStrategy instanceof AuthorizationStrategy.Unsecured ||
authorizationStrategy instanceof FullControlOnceLoggedInAuthorizationStrategy) {
return new ArrayList(items.values());
}
List<TopLevelItem> viewableItems = n... | ./VJBench/llm-vul/VJBench-trans/Jenkins-2 |
README.md exists but content is empty.
- Downloads last month
- 4