text stringlengths 7 995k |
|---|
package jp.co.yahoo.adsdisplayapi.v5.model;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.validation.Valid;
import javax.validation.constraints.*;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* <div lang=\"ja\"> SearchKe... |
/*******************************************************************************
* Copyright (c) 2019, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.wso2.developerstudio.eclipse.gmf.esb.impl;
import org.eclipse.emf.ecore.EClass;
import org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage;
import org.wso2.developerstudio.eclipse.gmf.esb.SpringMediatorOutputConnector;
/**
* <!-- begin-user-doc -->
* An... |
package com.mpatric.mp3agic;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.HashMap;
import java.util.Map;
public class Mp3File extends FileWrapper {
private static final int DEFAULT_BUFFER_LENGTH = 65536;
private static final int MINIMUM_BUFFER_LENGTH = 40;
pri... |
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... |
// Targeted by JavaCPP version 1.5.7: DO NOT EDIT THIS FILE
package org.bytedeco.pytorch;
import org.bytedeco.pytorch.Allocator;
import org.bytedeco.pytorch.Function;
import org.bytedeco.pytorch.Module;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.byte... |
/*
* Copyright 2018 jd.com
* 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 in wri... |
package com.jxtelecom.pds.config;
/**
* Created by guolf on 17/5/9.
*/
public class DataSource1Config {
} |
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("fg")
@Implements("WorldMapDecoration")
public class WorldMapDecoration {
@ObfuscatedNa... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... |
/*
* Aipo is a groupware program developed by Aimluck,Inc.
* Copyright (C) 2004-2011 Aimluck,Inc.
* http://www.aipo.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either ver... |
package com.example.spotifyclone;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
/**
* The First Page of the Application
* @author Salma Hazem
* @version 1.0
* This is the first screen the user sees... |
package com.hys.exam.model;
import java.io.Serializable;
public class PropUnit implements Serializable {
/**
* boy 11/08/2016
*/
private static final long serialVersionUID = -3852077432691547926L;
private Long id;
private String name;
public Long getId() {
return id;
}
public void setId(Long id) {
... |
// Given an array of integers citations where citations[i] is the number of citations a researcher received for their ith paper and citations is sorted in an ascending order, return compute the researcher's h-index.
// According to the definition of h-index on Wikipedia: A scientist has an index h if h of their n pape... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
package com.dianping.cat.consumer.metric;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import junit.framework.Assert;
import org.junit.Test;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jd... |
package pers.huangyuhui.sms.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.... |
/*
* Copyright (C) ExBin Project
*
* 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... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mediaservices.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
impo... |
/*
* Copyright (c) 2010-2015 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.certification.impl;
import com.evolveum.midpoint.certification.impl.outcomeStrategies.OutcomeStrat... |
/*
* Copyright 2017 Google, 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 ... |
/*******************************************************************************
* (C) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* 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 Licen... |
package hellocucumber;
import static org.junit.Assert.assertEquals;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Scanner;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import io.cucumber.java.en.... |
package au.org.consumerdatastandards.client;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import java.math.BigDecimal;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
class CustomDataTy... |
package de.fraunhofer.isst.dataspaceconnector.utils;
import de.fraunhofer.iais.eis.ArtifactRequestMessage;
import de.fraunhofer.iais.eis.ArtifactRequestMessageBuilder;
import de.fraunhofer.iais.eis.DescriptionRequestMessage;
import de.fraunhofer.iais.eis.DescriptionRequestMessageBuilder;
import de.fraunhofer.iais.eis.... |
package leetcode.weekly_contests.weekly_53;
public class P_693 {
public boolean hasAlternatingBits(int n) {
int flag = n & 1;
while (n > 0) {
if ((n & 1) != flag) {
return false;
}
flag ^= 1;
n >>= 1;
}
return true;
... |
package com.nepxion.discovery.plugin.example.service;
/**
* <p>Title: Nepxion Discovery</p>
* <p>Description: Nepxion Discovery</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author Haojun Ren
* @version 1.0
*/
import java.util.Collections;
import org.springframework.beans.factor... |
/**
* 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... |
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.exception.BusinessException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;
im... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.dns.implementation;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.resourcemanager.dns.ARecordSet;
import com.azure.resourcemanag... |
package com.atguigu.gulimall.coupon.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.coupon.entity.CouponSpuRelationEntity;
import java.util.Map;
/**
* 优惠券与产品关联
*
* @author DY
* @email ydia530@aucklanduni.ac.nz
* @date 20... |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* 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, cop... |
package com.stylefeng.guns.alipay.trade.model.hb;
/**
* Created by liuyangkly on 15/8/27.
*/
public enum ExceptionInfo {
HE_PRINTER // 打印机异常;
,HE_SCANER // 扫描枪异常;
,HE_OTHER // 其他硬件异常
} |
/**
*
*/
package jflow.iterators;
import java.util.OptionalLong;
import java.util.PrimitiveIterator;
import java.util.function.LongConsumer;
/**
* A precursor interface to {@linkplain LongFlow}.
*
* @author t
*/
public interface PrototypeLongFlow
extends Skippable, PrimitiveIterator.OfLong, OptionallySized
{
... |
package cn.dendarii.ivan.api.user.dao;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Repository;
import cn.dendarii.ivan.api.user.bean.mongo.HBUser;
import cn.dendarii.ivan.common.dao.l3.BaseMongoDao;
@Repo... |
/*
* Copyright 2018-2020 The JSpecify 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 applicable la... |
package unalcol.agents.examples.labyrinth.teseoeater;
import javax.swing.*;
import java.awt.*;
/**
* Title:
* Description:
* Copyright: Copyright (c) 2001
* Company:
*
* @author
* @version 1.0
*/
public class OptionFrame extends JFrame {
/**
*
*/
private static final long serialVersionU... |
/*
* MIT License
* Copyright (c) 2017-2019 nuls.io
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
package org.thingsboard.server.common.transport.service;
import lombok.Data;
import java.util.UUID;
@Data
public class RpcRequestMetadata {
private final UUID sessionId;
private final int requestId;
} |
package me.gmz.backpack;
import java.util.ArrayList;
public interface ISolver {
Backpack solve(ArrayList<Item> data, float backpackWeight);
} |
/*
* Copyright (c) 2021 The lambda4j 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 applicable law... |
package com.example.zhku.classaddresslist;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
public class StudentAdapt... |
/*
* Copyright (c) 2015, Alachisoft. All Rights Reserved.
*
* 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 ... |
package com.soen490.cms.Repositories.SectionsRepositories;
import com.soen490.cms.Models.Sections.Section71703;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
@Repository
public interface Section7170... |
/*
* Entagged Audio Tag library
* Copyright (c) 2003-2005 Rapha�l Slinckx <raphael@slinckx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licen... |
package May2021GoogLeetcode;
public class _0872LeafSimilarTrees {
static public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {
}
TreeNode(int val) {
this.val = val;
}
TreeNode(int val, TreeNode left, TreeNode right) {
this.val = val;
this.left = left;
this.right =... |
package sfBugs;
import java.util.LinkedHashSet;
import edu.umd.cs.findbugs.annotations.ExpectWarning;
/**
* Based on bug pattern in
* http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6526376
*
*/
public class RFE1698471 {
private static LinkedHashSet<String> files = new LinkedHashSet<String>();
@Expec... |
/*
* Copyright 2017 Google, 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 in... |
package module1147packageJava0;
import java.lang.Integer;
public class Foo66 {
Integer int0;
Integer int1;
public void foo0() {
new module1147packageJava0.Foo65().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public v... |
package com.github.rpc.invoke.asm;
import com.github.rpc.annotation.AnnotationScanner;
import com.github.rpc.core.RpcServiceConfiguration;
import com.github.rpc.exceptions.MethodNotFoundException;
import com.github.rpc.invoke.InvokeType;
import com.github.rpc.invoke.MethodInvokeDispatcher;
import com.github.rpc.invoke... |
package com.asdf.funny.images.service.Impl;
import com.asdf.funny.images.dao.ImgDao;
import com.asdf.funny.images.service.ImgService;
import com.asdf.funny.images.util.SnowflakeIdWorker;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.Simp... |
/*
* Copyright 2020 Google LLC
*
* 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 in wr... |
package org.opendaylight.controller.config.yangjmxgenerator.plugin.java;
import java.io.File;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static com.google.common.base.Preconditions.checkNotNull;
public class FullyQualifiedName {
private final String packageName;
private final Str... |
package com.qitech.scheduling;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* Unit test for simple SchedulingApplication.
*/
public class SchedulingApplicationTest {
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue() {
assertTrue(true);
}
... |
package jobicade.betterhud.geom;
import java.util.HashMap;
import java.util.Map;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraftforge.client.GuiIngameForge;
public class LayoutManager {
public static final int SPACER = 5;
private final Map<Direction, Integer> corners = new HashMap<Dir... |
package io.github.thatrobin.ccpacks.data_driven_classes.mechanics;
import io.github.thatrobin.ccpacks.factories.mechanic_factories.MechanicType;
import io.github.thatrobin.ccpacks.util.Mechanic;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.nbt.NbtElement;
import net.minecraft.nbt.NbtInt;
public... |
/*
* Copyright by 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 applicable... |
package com.renard.ocr.documents.creation;
import com.crashlytics.android.Crashlytics;
import com.googlecode.leptonica.android.Pix;
import com.googlecode.leptonica.android.ReadFile;
import com.googlecode.leptonica.android.Scale;
import com.renard.ocr.TextFairyApplication;
import com.shockwave.pdfium.PdfDocument;
impor... |
//package it.eng.opsi.cdv.accountmanager.simpatico.security.config;
//
//import javax.sql.DataSource;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.cont... |
package io.github.glenerrands.memorygame;
import static io.github.glenerrands.memorygame.Rating.*;
import static java.awt.event.ItemEvent.*;
import static javax.swing.BoxLayout.*;
import static javax.swing.JFileChooser.*;
import java.awt.FlowLayout;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyCha... |
import com.fasterxml.jackson.core.JsonProcessingException;
import com.yikekong.YkkApplication;
import com.yikekong.dto.TrendPoint;
import com.yikekong.dto.TrendPoint2;
import com.yikekong.service.ReportService;
import com.yikekong.util.JsonUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springf... |
/*
*
* ETS Custom Reporting Tool, using Structured and Big Data data stores..
*/
package org.reporter.service.ets_reports.service;
import java.util.Set;
import javax.ws.rs.core.Application;
/**
*
* @author constantinn
*/
@javax.ws.rs.ApplicationPath("webresources")
public class ApplicationConfig extends Appli... |
package com.prodigious.science.fair.recycleme.presenter;
import com.prodigious.science.fair.recycleme.Listener.OnFinishedListener;
import com.prodigious.science.fair.recycleme.fragments.MainFragment;
import com.prodigious.science.fair.recycleme.interactor.FindGoalInteractor;
import com.prodigious.science.fair.recyclem... |
/*-
* * Copyright 2016 Skymind, 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
* *
* * Un... |
/*
* 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... |
/*
* Copyright Hyperledger Besu Contributors.
*
* 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 agr... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/container/v1/cluster_service.proto
package com.google.container.v1;
/**
* <pre>
* SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
* Engine cluster, which will in turn set them for Google Compute Engine
* res... |
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* 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 agre... |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v7.media;
import java.util.ArrayList;
import java.util.List;
// Referenced classes of package android.support.v7.media:
// Medi... |
/*
* 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 ... |
package com.supos.cloud.provider.listener;
import com.alibaba.fastjson.JSON;
import com.google.common.base.Charsets;
import com.supos.cloud.base.constant.GlobalConstant;
import com.supos.cloud.core.registry.base.ReliableMessageRegisterDto;
import com.supos.cloud.core.registry.exception.RegExceptionHandler;
import com.... |
package frc.robot;
import edu.wpi.first.wpilibj.Notifier;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.Command;
import frc.robot.subsystems.SnailSubsystem;
import frc.robot.util.SnailController;
import java.util.ArrayList;
import static frc.robot.Constants.Electri... |
/**
* Copyright 2015 David Karnok and Netflix, 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 l... |
package io.metadew.iesi.connection.database.postgresql;
import io.metadew.iesi.connection.database.ISchemaDatabaseService;
import io.metadew.iesi.connection.database.SchemaDatabaseService;
import io.metadew.iesi.metadata.definition.MetadataField;
import io.metadew.iesi.metadata.definition.connection.Connection;
publi... |
/*
* Copyright 2018 The Android Open Source Project
*
* 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... |
package br.com.zupacademy.cdc.domains;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
@Entity
public class Pais {
@Id
@GeneratedValue(strategy = GenerationType.IDENTI... |
/*
* 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... |
/*
* 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 in writing, software
* distributed u... |
package com.stripe.android.view;
import java.lang.System;
@kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b\u0000\u... |
package com.leon.common.compressorutils;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.provider.MediaStore;
import android.provider.OpenableColumns;
import android.util.Log;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStr... |
package org.apache.jsp.include_005fjsp.myMessage;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import net.violet.platform.util.StaticTools;
import net.violet.platform.util.SessionTools;
import net.violet.platform.datamodel.Lang;
import net.violet.platform.util.DicoTools;
import net.... |
package com.atguigu.springcloud.dao;
import com.atguigu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @author: wjgful
*/
@Mapper
public interface PaymentDao {
int create(Payment payment);
Payment getPaymentById(@Param("id") long... |
package org.apache.lucene.queryparser.surround.query;
/*
* 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 Ap... |
package com.adam.springboot.web;
import com.adam.springboot.model.Student;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController... |
class Solution {
public int XXX(String s) {
int res=0;
for (int i=0;i<s.length();i++){
if (s.charAt(i) == 'I'){
if (i+1<s.length() && s.charAt(i+1) == 'V'){
res+=4;
i++;
}else if (i+1<s.length() ... |
package jeffgame.gfx;
import org.lwjgl.BufferUtils;
import org.lwjgl.system.MemoryStack;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import static org.lwjgl.opengl.GL33.*;
import static org.lwjgl.stb.STBImage.*;
import static org.lwjgl.system.MemoryStack.stackPush;
public clas... |
package lpadron.me.project1_payit.helpers;
import android.annotation.TargetApi;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.util.Log;
import java.util.Calendar;
import lpadron.me.project1_pay... |
/*
* Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package com.ngsky.quartzngsky;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class QuartzngskyApplication {
public static void main(String[] args) {
SpringApplication.run(QuartzngskyApplication.class, ... |
/* Copyright (C) 2013 TU Dortmund
* This file is part of AutomataLib, http://www.automatalib.net/.
*
* 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/licen... |
package com.example.utils;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import com.google.common.collect.ForwardingList;
import com.google.common.collect.Lists;
public class SortedListOf<T extends Comparable<T>> extends ForwardingList<T> {
private List... |
package org.cbioportal.genome_nexus.persistence;
import org.cbioportal.genome_nexus.model.PfamDomain;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.List;
/**
* @author Selcuk Onur Sumer
*/
public interface PfamDomainRepository extends MongoRepository<PfamDomain, String>
{
... |
/*
* Copyright (C) Red Gate Software Ltd 2010-2022
*
* 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... |
package dev.vsuite.bungee.utils;
public class Permissions {
private static final String PREFIX = "vSuite.";
public static final String STAFF_CHAT = PREFIX + "staffchat";
public static final String STAFF_CHAT_RECEIVE = STAFF_CHAT + "receive";
public static final String REPORT = PREFIX + "report";
... |
package co.airy.core.api.admin;
import co.airy.avro.communication.Status;
import co.airy.avro.communication.Webhook;
import co.airy.core.api.admin.util.Topics;
import co.airy.core.api.config.ServiceDiscovery;
import co.airy.core.api.config.dto.ServiceInfo;
import co.airy.kafka.test.KafkaTestHelper;
import co.airy.kafk... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package org.sdmlib.test.examples.gofpattern.strategy.util;
import org.sdmlib.models.pattern.util.PatternObjectCreator;
import org.sdmlib.test.examples.gofpattern.strategy.MoveUp;
import de.uniks.networkparser.IdMap;
public class MoveUpPOCreator extends PatternObjectCreator
{
@Override
public Object getSendable... |
/*
* Copyright (c) 2017
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE80_XSS__Servlet_getCookies_Servlet_74a.java
Label Definition File: CWE80_XSS__Servlet.label.xml
Template File: sources-sink-74a.tmpl.java
*/
/*
* @description
* CWE: 80 Cross Site Scripting (XSS)
* BadSource: getCookies_Servlet Read data from the first cookie using ge... |
package controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import beans.Us... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.