text stringlengths 10 2.72M |
|---|
package com.ex1;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;
import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
public class P8 {
public static void main(String[] args) throws SQLException {
Scanner sc = new Scanner(S... |
package com.dreamcatcher.member.action;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import com.dreamcatcher.action.Action;
import com.... |
package com.tencent.mm.plugin.appbrand.widget.recyclerview;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.c;
import com.tencent.mm.plugin.appbrand.widget.recyclerview.LoadMoreRecyclerView.a;
class LoadMoreRecyclerView... |
package util;
import org.sqlite.JDBC;
import java.sql.*;
public class DatabaseUtils {
public Connection conn;
//public Statement statement;
//public static ResultSet resSet;
public DatabaseUtils() throws ClassNotFoundException, SQLException {
conn = null;
Class.forName("org.sqlite.J... |
/*
You are given a sequence of the speeds of cars in a single-lane street.
A car can catch up to the car B, only if B is in front of A and the speed
of A is greater than the speed of B, and then the speed of A is lowered
to the speed of B. Each gathering of cars is called a group. Your task
is to find the sum of the in... |
/*
* Copyright (C), 2013-2014, 上海汽车集团股份有限公司
* FileName: CustomInfoVo.java
* Author: baowenzhou
* Date: 2014年8月22日 上午10:33:25
* Description: //模块目的、功能描述
* History: //修改记录
* <author> <time> <version> <desc>
* 修改人姓名 修改时间 版本号 描述
*/
package com.xjf.we... |
package cn.izouxiang.domain;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
@Data
public class TransactionRecord implements Serializable{
private static final long serialVersionUID = -6949226383735654353L;
private String id;
private String preId;
private String memberId;
... |
/******************************************************
Cours: LOG121
Projet: Framework.TP3
Nom du fichier: CollectionDes.java
Date créé: 2016-02-18
*******************************************************
Historique des modifications
*******************************************************
*@author Vincent Leclerc(LECV... |
package org.sankozi.rogueland.util;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.*;
import org.sankozi.rogueland.model.coords.Coords;
import static org.junit.Assert.*;
import static org.sankozi.rogueland.util.Formatters.*;
/**
* FormattersTest
*
* @author s... |
/**
* RemoveBookAction.java
* Purpose: removing books from a base file, which are able to be borrowed from library.
*
* @version 1.0 23/02/2018
* @author Jakub Mitulski
*/
package com.library.actions.book;
import com.library.actions.Action;
import com.library.common.Book;
import com.library.common.User;
import c... |
package com.tencent.mm.plugin.bottle.ui;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
class BottleWizardStep1$2 implements OnMenuItemClickListener {
final /* synthetic */ BottleWizardStep1 hlz;
BottleWizardStep1$2(BottleWizardStep1 bottleWizardStep1) {
this.hlz ... |
package hrishi.gad.service;
import hrishi.gad.entity.Alerts;
import hrishi.gad.entity.Priority;
import hrishi.gad.entity.Readings;
import hrishi.gad.entity.Vehicles;
import hrishi.gad.exception.VehicleNotFoundException;
import hrishi.gad.repository.AlertsRepository;
import hrishi.gad.repository.ReadingsRepository;
imp... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package TFD.Presentation;
import TFD.DomainModel.Especialidade;
import TFD.DomainModel.EspecialidadeRepositorio;
import j... |
/****************************************************
* $Project: DinoAge $
* $Date:: Jan 27, 2008 2:14:06 AM $
* $Revision: $
* $Author:: khoanguyen $
* $Comment:: $
****************************************... |
package twilight.bgfx;
import java.io.File;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.ArrayList;
import java.util.List;
import twilight.bgfx.buffers.DynamicIndexBuffer;
import twilight.bgfx.buffers.DynamicVertexBuffer;
import twilight.bgfx.buffers.IndexBuffer;
import twilight.bgfx.buffer... |
package com.esc.fms.service.base.impl;
import com.esc.fms.dao.FileTypeMapper;
import com.esc.fms.entity.FileType;
import com.esc.fms.service.base.FileTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by tan... |
package com.example.android.inventoryapp;
import android.app.LoaderManager;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.CursorLoader;
import android.content.Intent;
import android.content.Loader;
import android.database.Cursor;
import... |
package com.tencent.mm.plugin.sns.ui.previewimageview;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListene... |
package org.mitre.hapifhir;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.interceptor.api.Hook;
import ca.uhn.fhir.interceptor.api.Interceptor;
import ca.uhn.fhir.interceptor.api.Pointcut;
import ca.uhn.fhir.parser.IParser;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
i... |
package com.automation.utilities;
import org.apache.log4j.AppenderSkeleton;
import org.apache.log4j.spi.LoggingEvent;
import org.testng.Reporter;
public class TestNGAppender extends AppenderSkeleton {
public void close() {
}
public boolean requiresLayout() {
return true;
}
@Override
protected void appen... |
package eg.ipvii.fotp.init;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.passive.EntityCow;
import net.minecraft.item.ItemStack;
import net.minecraftforge.event.entity.living.LivingDropsEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
public class MobDropsHandler {
... |
package com.sendi.netrequest.rxquest;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import rx.Observable;
public interface APImap2 {
@Headers({"Content-Type: application/json","Accept: application/json"})//需要添加头
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entities.dto;
import entities.SchoolClass;
import entities.SchoolSignedUp;
import entities.SchoolStudent;
import java.util.Dat... |
package com.tencent.mm.ui.tools;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.Message;
import android.os.Parcelable;
i... |
package com.jim.multipos.ui.signing.sign_in.presenter;
import com.jim.multipos.ui.signing.sign_in.view.LoginDetailsView;
import javax.inject.Inject;
/**
* Created by DEV on 31.07.2017.
*/
public class LoginDetailsPresenterImpl implements LoginDetailsPresenter {
private LoginDetailsView view;
@Inject
... |
package com.brainmentors.apps.annotationdemo;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component("m")
@Scope("prototype")
@Primary
public class Y implements IY {
public Y() {
System.out.println("Y O... |
package by.epam.parser.entity;
/**
* <p>Help to create and work with object Document
* which is an object representation of xml document.
* Root is only one element contains list of its child
* elements.</p>
*
* @author VeronikaChigir
* @version 2.0
*/
public class Document {
private Element root;
pub... |
package org.icabanas.jee.api.integracion.modelo;
import java.io.Serializable;
import org.icabanas.jee.api.integracion.manager.exceptions.ValidacionException;
public interface Entidad<ID extends Serializable> {
/**
* Método que devuelve el identificador de la entidad.
*
* @return
*/
public ID... |
package sim.perfil;
import java.io.Serializable;
import javax.persistence.*;
@Entity
@Table(name="perfil")
public class Perfil implements Serializable {
/**
*
*/
private static final long serialVersionUID = 4360284891228836761L;
@Id
@GeneratedValue
@Column(name="id_perfil")
private In... |
package week3.tests;
import org.junit.Assert;
import org.junit.Test;
import java.io.*;
/**
* Created by Benedikt on 27.10.2016.
*/
public class ATest {
private static final InputStream sIn = System.in;
public static final PrintStream sOut = System.out;
static String inputOutput(String input) {
... |
package com.simonk.api.interactions.services;
import com.simonk.api.interactions.dto.Booking;
import io.qameta.allure.Step;
import io.restassured.http.ContentType;
import io.restassured.response.Response;
import static io.restassured.RestAssured.given;
public class RestfulBookerService extends AbstractBaseS... |
package ba.bitcamp.LabS04D02;
public class SabiranjeIzTXTFileV2 {
public static void main(String[] args) {
TextIO.readUserSelectedFile();
int sum = 0;
while(TextIO.eof() != true) {
try {
String str = TextIO.getWord();
int broj = Integer.parseInt(str);
sum += broj;
} catch (NumberFormatExc... |
package io.jenkins.plugins.credentials.secretsmanager.util;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
* Polyfill for the Java 9 Map.of API methods.
*/
public final class Maps {
public static <K,V> Map<K,V> of(K k1, V v1, K k2, V v2) {
final Map<K, V> m = new Hash... |
package algorithms.dynamic_programming.knapsack;
import java.util.Arrays;
public class TargetSum {
public int findTargetSubsets(int[] num, int s) {
// Sum(s1) - Sum(s2) = s -------------(1)
// Sum(s1) + Sum(s2) = Sum(num) ------(2)
// Adding equation (1) and (2)
// 2 * Sum(s1) = s ... |
package com.tt.miniapp.debug;
import android.os.Handler;
import android.text.TextUtils;
import com.he.jsbinding.JsContext;
import com.he.jsbinding.JsScopedContext;
import com.tt.miniapp.AppbrandApplicationImpl;
import com.tt.miniapp.debug.appData.AppData;
import com.tt.miniapp.debug.appData.AppDataReporter;
i... |
package system.dao;
import org.apache.ibatis.annotations.Param;
import system.model.School;
import java.util.List;
public interface SchoolMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table school
*
* @mbg.generated
*/
int de... |
/**
* Copyright 2013-present febit.org (support@febit.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 a... |
package GUI;
import com.barcodelib.barcode.QRCode;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Print... |
package geekbrains.lesson4_homework;
import java.util.Random;
import java.util.Scanner;
public class Lesson4 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Random random = new Random();
play(scanner, random);
}
static void play(Scanner scanner... |
package com.tencent.tencentmap.mapsdk.a;
public interface kk$b {
void a(float f);
void b(float f);
}
|
/*
* Copyright: 2020 forchange Inc. All rights reserved.
*/
package com.research.api.datasteam.window;
import org.apache.flink.api.common.functions.FlatMapFunction;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api... |
/*
* This software is licensed under the MIT License
* https://github.com/GStefanowich/MC-Server-Protection
*
* Copyright (c) 2019 Gregory Stefanowich
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... |
package com.tencent.mm.plugin.appbrand.jsapi.bluetooth.ble.sdk.scan;
import android.os.ParcelUuid;
public final class ScanFilterCompat$a {
byte[] fNA;
byte[] fNB;
int fNC = -1;
byte[] fND;
byte[] fNE;
ParcelUuid fNG;
String fNv;
String fNw;
ParcelUuid fNx;
ParcelUuid fNz;
... |
/*
* Copyright 2015 Alexandre Terrasa <alexandre@moz-code.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... |
package com.designpattern.structuralpattern.composite;
/**
* 组合模式测试类
*/
public class CompositeTest {
public static void main(String[] args) {
}
}
|
/*
3. Készítsük el a publikus geometry.Circle osztályt, mely egy kört fog ábrázolni! Az osztály megvalósítja a Figure interfész műveleteit.
a) Deklaráljunk három privát int adattagot, melyek a kör közepének koordinátáit és a kör sugarát tárolják!
b) Készítsünk egy konstruktort, mely paraméterül várja a kör középpontjá... |
package com.example.homestay_kha;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.widget.RadioButton;
import android.widget.Radio... |
package com.example.lib.event;
/**
* @Author jacky.peng
* @Date 2021/4/12 11:07 AM
* @Version 1.0
*/
public class FragmentEvent extends Event {
public static final String NAME_ON_VIEW_CREATED = "onViewCreated";
public static final String NAME_ON_VIEW_DESTROYED = "onViewDestroyed";
public static final S... |
import java.util.LinkedHashSet;
import java.util.Set;
public class LinkedHashSetNull {
public static void main(String[] args) {
Set<Integer> lhs = new LinkedHashSet<>();
lhs.add(null);
lhs.add(122);
lhs.add(133);
System.out.println(lhs);
}
}
|
package com.stark.netty.section_11.charpter;
import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.util.concurrent.GlobalEventExecutor;
/**
* Created by Stark on 2018/3/15.
* TODO 暂时不知道他的作用
*
*/
public class Global {
public static ChannelGroup group = n... |
package com.example.xiaohei.newsdemo.weather.model;
import android.content.Context;
/**
*
* Created by xiaohei on 2017/4/22.
*/
public interface WeatherModel {
void loadWeatherData(String cityName, WeatherModelImpl.LoadWeatherListener listener);
void loadLocation(Context context, WeatherModelImpl.LoadLo... |
package com.kush.lib.expressions.factory;
import com.kush.lib.expressions.clauses.ConstantIntExpression;
class DefaultConstantIntExpression extends BaseTerminalExpression implements ConstantIntExpression {
private final int value;
public DefaultConstantIntExpression(int value) {
this.value = value;
... |
package com.andyadc.seckill.infrastructure.crypto;
import org.apache.shiro.codec.Hex;
import org.apache.shiro.crypto.SecureRandomNumberGenerator;
import org.apache.shiro.crypto.hash.Sha512Hash;
import org.apache.shiro.util.ByteSource;
/**
* https://blog.swierczynski.net/2013/01/strong-passwords-hashing-wtih-apache-s... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package thecardyard.teamcomrade.github.com.thecardyard;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.dr... |
/*
* Copyright 2005-2010 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 appli... |
package com.tencent.mm.plugin.sns;
public final class i$m {
public static final int appbrandcomm_sqlite_lint_whitelist = 2131099655;
public static final int enmicromsg_sqlite_lint_whitelist = 2131099688;
public static final int face_debug_pref = 2131099691;
public static final int settings_face_print =... |
package com.example.movierecommendation.model;
import java.util.List;
public class Movie {
public String Metascore;
public String BoxOffice;
public String Website;
public List<Rating> Ratings = null;
public String Runtime;
public String Language;
public String Rated;
public String Pr... |
package com.bytedance.sandboxapp.a.a.a;
import com.bytedance.sandboxapp.b.b.a;
import com.bytedance.sandboxapp.c.a.a.f;
import org.json.JSONArray;
import org.json.JSONObject;
public final class c {
private String a;
private Integer b;
private JSONObject c;
private String d;
priva... |
package ru.kappers.logic.controller;
import com.google.gson.Gson;
import com.ibm.icu.text.StringTransform;
import com.ibm.icu.text.Transliterator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.b... |
package com.timebusker.utils;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import java.io.Serializable;
/**
* @DESC:MongoDBPageable:分页实现类
* @author:timebusker
* @date:2018/9/7
*/
public class MongoDBPageable implements Pageable, Serializable {
private Integer... |
package com.mango.leo.zsproject.industrialservice.createrequirements.carditems.presenter;
import android.content.Context;
/**
* Created by admin on 2018/5/22.
*/
public interface UpdateItemPresenter {
void visitUpdateItem(Context context ,int type ,Object o);
}
|
package com.bridgeit.metadata;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
public class ResultSetMetaDataDemo {
public static void main(String[] args) {
try
{
Class.forName("com.mysql.jdbc.Driver... |
package com.hpg.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("Comment")
public class CommentController {
}
|
package com.danielsandrutski.convert.namedata;
/**
* Создано DanielSand 03.11.2017
* Класс, представляющий структуру наименования разрядов больших или равных тысячи
* @version 1.0
* @autor Daniel Sandrutski
*/
public class BigDigit {
/** Род наименования (false - мужской, true - женский) */
int sex;
/... |
package sample;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ContentDisplay;
import javafx.scene.control.Label;
import javafx.scene.image.I... |
package 자바기본;
public class 데이터타입 {
public static void main(String[] args) {
// 기본데이터 타입: 정수, 실수, 문자, 논리=값
// 참조데이터 타입: 나머지 다, 배열, 클래스=주소,...
// 정수데이터 타입
byte b = 100; // ~128~127, 1byte, 8bit의 모음
// bit(비트) : 신호 하나, 1/0
// @ : 0,1 (2개)
// @@ : 00, 01, 10, 11 (4개)
// @@@ : 000, 001, ...(8개)
// @@... |
package com.sgic.library.client;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.sgic.library.model.Classification;
import com.sgic.library.service.ClassificationService;
import com.sgic.library.service.impl.C... |
package com.example.springweb.mapper;
import com.example.springweb.dao.AppUser;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface AppMapper {
@Select("select * from app ")
@Results({
@Result(property = "name", column = "name"),
@Result(property = ... |
package com.msir.service;
import com.msir.pojo.UserDO;
import java.util.Set;
/**
* Created by HSH on 2017/7/10.
*/
public interface ITestService {
int query();
UserDO queryInfoByUsername(String userName);
/**
* 获取用户的角色
* @param userName
* @return
*/
Set<String> getUserRoles(S... |
package com.hesoyam.pharmacy.pharmacy.exceptions;
public class InvalidPharmacyCreateRequest extends Exception{
public InvalidPharmacyCreateRequest(String message){
super(message);
}
}
|
package com.zitiger.plugin.xdkt.coder.generator;
import com.zitiger.plugin.xdkt.coder.model.TableInfo;
/**
*
*
* @author linglh
* @version 2.12.0 on 2018/9/24
*/
public class DTOGenerator extends BaseGenerator {
@Override
protected String getModuleName() {
return "facade";
}
@Override
... |
package org.spring.fom.support.task.parse;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
/**
*
* @author shanhm1991@163.com
*
*/
class PatternUtil {
private static Map<String, Pattern> patternMap = new Concurr... |
package org.fao.unredd.api.model.geostore;
import it.geosolutions.geostore.services.dto.search.AndFilter;
import it.geosolutions.geostore.services.dto.search.BaseField;
import it.geosolutions.geostore.services.dto.search.CategoryFilter;
import it.geosolutions.geostore.services.dto.search.FieldFilter;
import it.geosolu... |
package asu.shell.sh.commands;
@Cmd("ls")
public class LS extends ShellCommandWrapper {
public LS() {
super("ls");
}
}
|
public class supercons {
supercons() {
System.out.println("no-arg constructor of parent class");
}
supercons(String str) {
System.out.println("paramaterized constructor of parent class");
}
}
|
package org.fuserleer.ledger.events;
import java.util.Objects;
import org.fuserleer.ledger.Block;
public class BlockCommitEvent extends BlockEvent
{
public BlockCommitEvent(final Block block)
{
super(Objects.requireNonNull(block, "Block is null"));
}
}
|
package com.designPattern.creational.prototype;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Netflix {
private static Map<String, List<? extends PrototypeCapable>> CONTENT_MAP;
static {
System.out.println("Start Loading D... |
package ec.com.yacare.y4all.activities;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import andro... |
package com.naka.rabbitmqproducer;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.Channel;
import java.util.Date;
import java.text.SimpleDateFormat;
public class Send
{
private final static String QUEUE_NAME = "hello";
public static void main(S... |
package com.training.springbasics.Components;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component
@Scope(ConfigurableBean... |
package com.controller;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet... |
package com.java.abs_factory;
import com.java.rkp.factory.PlaneFactory;
public class AbstractPlaneFactory {
public static Object getPlaneFactory(Choice s) {
switch (s) {
case TYPE: {
PlaneFactory factory = new PlaneFactory();
//builder.getPlanType();
... |
package com.tencent.mm.g.a;
public final class hs$a {
public boolean isResume = false;
}
|
package cn.jishuz.library.fragment;
import cn.jishuz.library.R;
import cn.jishuz.library.activity.BookDetails;
import cn.jishuz.library.adpter.BasketAdapter;
import cn.jishuz.library.db.Mydata;
import cn.jishuz.library.until.Basket;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
i... |
package com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component.widget.verticalviewpager.a;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.... |
package com.github.netudima.jmeter.junit.report;
import java.io.IOException;
public class JtlToJUnitReportTransformer {
public void transform(String jtlFile, String junitReportFile, String testSuiteName) throws IOException {
try (final DomXmlJUnitReportWriter writer
= new DomXmlJUnit... |
package services;
import entity.User;
import play.db.jpa.Transactional;
import play.mvc.Controller;
import play.mvc.Result;
import repositories.UserRepository;
/**
* Created by Manuel on 24.10.17.
*/
public class SecretMessage extends Controller {
@Transactional
public Result sendSecretMessage(String email... |
package org.metaborg.sunshine.arguments;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystemException;
import org.metaborg.core.MetaborgException;
import org.metaborg.core.MetaborgRuntimeException;
import org.metaborg.core.language.ILanguageIdentifierService;
import org.metaborg.core.l... |
package eu.ewar.serverpanel.core.servlet;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse... |
package com.yoandypv.elasticsearch.geoinfo.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.... |
package com.song.demo;
import android.Manifest;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
import com.alibaba.f... |
package fr.univavignon.pokedex.core;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import fr.univavignon.pokedex.api.IPokedex;
import fr.univavignon.pokedex.api.IPokemonFactory;
import fr.univavignon.pokedex.api.IPo... |
package prj5;
import java.io.FileNotFoundException;
/**
* @author nataliekakish
*
*/
public class Input {
/**
* the main method
*
* @param args the files to be read
* @throws FileNotFoundException
*/
public static void main(String args[]) throws FileNotFoundException {
i... |
package leafNode;
import bplusTree.BPlusTree;
import com.carrotsearch.hppc.LongObjectHashMap;
import junit.framework.Assert;
import org.junit.Test;
import org.openjdk.jol.datamodel.X86_32_DataModel;
import org.openjdk.jol.datamodel.X86_64_COOPS_DataModel;
import org.openjdk.jol.datamodel.X86_64_DataModel;
import org.o... |
package dejan.snakedrools;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
public class GameCanvas extends Canvas{
private final static int WIDTH = 300;
private final static int HEIGHT = 300;
public final int X_GRID_SIZE = 30;
p... |
package chapter09.Exercise09_10;
import java.util.Scanner;
public class TestQuadraticEquation {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter a, b, c in the equation: ax2 + bx + x = 0");
double a = input.nextDouble();
double b = input.next... |
package org.inftel.scrum.lists;
import org.inftel.scrum.R;
import android.content.Context;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.TextView;
public cl... |
package com.wt.jiaduo.dto.jpa;
// Generated 2018-3-31 15:55:00 by Hibernate Tools 5.2.8.Final
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import ja... |
package com.hua.beautifulimage.utils;
/**
*
*/
public class Constants {
public static final String BASE_IMAGE_URL = "http://tnfs.tngou.net/image";
public static final int DEFAULT_PAGE_ROWS = 10;
public static final String EXTRA_SHOW_PICTURE_ID = "EXTRA_SHOW_PICTURE_ID";
public static class Config... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.