text stringlengths 10 2.72M |
|---|
/*
* 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 ejercicios.manejodearquivos;
import java.io.File;
import java.util.Scanner;
/**
*
* @author manuel
*/
public class BorrarA... |
package com.yanovski.load_balancer.models;
public enum ModificationType {
ADDED,
DELETED,
DELETED_ALL
}
|
public class Part2 {
public String findSimpleGene(String dna, String startCodon, String stopCodon) {
//start codon ATG
//end codon TAA
int startIndex = dna.indexOf(startCodon);
int stopIndex = dna.indexOf(stopCodon, startIndex)+3;
if( Character.isUpperCase(dna.charA... |
public class Apartment {
private int rooms;
private int squareMeters;
private int pricePerSquareMeter;
public Apartment(int rooms, int squareMeters, int pricePerSquareMeter) {
this.rooms = rooms;
this.squareMeters = squareMeters;
this.pricePerSquareMeter = pricePerSquareMeter;... |
import java.util.ArrayList;
public interface Observer {
public void update(ArrayList<SoundClip> clips);
}
|
package com.eshop.domain;
import com.fasterxml.jackson.annotation.JsonBackReference;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;
/**
* A bundle of product parameteres.
*/
@Entity
@Table(name = "parameters")
@Data
@NoArgsCons... |
package org.giddap.dreamfactory.leetcode.blogs;
/**
*
*/
public class Blog201004SearchingElementInRotatedArray {
}
|
package com.baizhi;
import com.baizhi.dao.UserDao;
import com.baizhi.entity.User;
import com.baizhi.service.UserService;
import org.apache.jasper.tagplugins.jstl.core.ForEach;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... |
package com.esum.appcommon.resource.message;
import java.text.MessageFormat;
import java.util.Collection;
import java.util.HashMap;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.servlet.http.HttpServletRequest;
import com.esum.appcommon.resource.ResourceManager;
public class AcubeResource {... |
package springwebapp.test;
import static com.clc.controller.AppConstants.INCORRECT_CREDENTIALS;
import static com.clc.controller.AppConstants.PASSWORD_INVALID;
import static com.clc.controller.AppConstants.USERNAME_INVALID;
import org.testng.Assert;
import org.testng.annotations.Listeners;
import org.testng.annotatio... |
package com.lmx.jredis.storage;
import java.io.File;
import java.io.RandomAccessFile;
import java.lang.reflect.Method;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.security.AccessController;
import java.security.PrivilegedAction;
/**
* 存储单元
* Created by lmx on 2017/4/14.
*/
p... |
package baidumapsdk.demo;
import android.app.Application;
import com.baidu.mapapi.SDKInitializer;
import org.xutils.x;
public class DemoApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// 在使用 SDK 各组间之前初始化 context 信息,传入 ApplicationContext
SDKInit... |
package fr.centralesupelec.sio.model;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
/**
* An entity class for a movie.
*/
public class Movie {
// Parameters of a movie.
private long id;
private String title;
private List<String> genres = new ArrayList<>();
private... |
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.util.ArrayList;
public class Downloading extends Thread{
Peers p;
boolean flag = t... |
package com.qa.pages;
import com.qa.baseclass.BaseClass;
public class SearchPage extends BaseClass{
}
|
package com.redpantssoft.cloudtodolist.provider;
import android.accounts.Account;
import android.content.ContentProvider;
import android.content.ContentProviderOperation;
import android.content.ContentProviderResult;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Cont... |
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations;
import org.giddap.dreamfactory.leetcode.commons.TreeNode;
import org.giddap.dreamfactory.leetcode.onlinejudge.PathSumII;
import java.util.ArrayList;
import java.util.List;
/**
* DFS with backtracking.
*/
public class PathSumIIDfsImpl implements ... |
/*
Copyright 2006 thor.jini.org 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 ... |
package coreJava_programs.Java_Programs;
public class Bubble_Sort_logic_and_Program_6 {
public static void doBubbleSort(int[] array)
{
int temp;
for(int i = 0;i< array.length; i++)
{
for(int j = i+1;j< array.length; j++)
{
if(array[i] > array[j])
{
temp = array[i];
... |
// https://leetcode.com/problems/flood-fill/
// #dfs
class Solution {
public int[][] floodFill(int[][] image, int sr, int sc, int newColor) {
int target = image[sr][sc];
int m = image.length;
int n = image[0].length;
boolean[][] visited = new boolean[m][n];
Deque<Pixel> queue = new LinkedList<>()... |
package day23encapsulationinheritance;
public class Animal {
public void eat() {
System.out.println("They eat...");
}
public void drink() {
System.out.println("They drink...");
}
}
/*
1) Why do we need inheritance?
2) What are the benefits of inheritance?
a)No repetition
b)L... |
package training.employee.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.Req... |
public class Queue {
private int[] numbers;
private int front;
private int rear;
private int nElements;
private int maxSize;
public Queue(int size) {
this.maxSize = size;
this.numbers = new int[maxSize];
this.nElements = 0;
this.front = 0;
this.rear = -1;... |
package com.qst.dms.ui;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Random;
import javax.swing.JLabel;
/**
* @author 陌意随影
TODO :验证码JLabel
*2019年12月21日 上午12:48:29
*/
publ... |
package com.framgia.fsalon.data.source;
import com.framgia.fsalon.data.model.CustomerReportResponse;
import io.reactivex.Observable;
/**
* Created by THM on 8/25/2017.
*/
public interface ReportDataSource {
Observable<CustomerReportResponse> getBookingReport(String type, long start, long end);
}
|
package com.yea.loadbalancer;
import com.google.common.annotations.VisibleForTesting;
import com.netflix.servo.annotations.DataSourceType;
import com.netflix.servo.annotations.Monitor;
import com.yea.core.loadbalancer.BalancingNode;
import com.yea.core.loadbalancer.INodeList;
import com.yea.core.loadbalancer.INodeList... |
package com.moviee.moviee.activities;
import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
im... |
package com.example.hante.newprojectsum.sqlite;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* 数据库操作
*/
public class DBHelper extends SQLiteOpenHelper{
public static final String DATEBASE_NAME = "New.db";
public static f... |
/*
* Copyright 2002-2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.proba.proba12.services;
import com.proba.proba12.models.Country;
import com.proba.proba12.repositories.CountryRepository;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;
@Service
public class CountryService {
private f... |
package br.com.fitNet.controller;
import java.sql.SQLException;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfr... |
package com.ufc.br.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Instrumento {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String nome;
... |
/*
* 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 Controller;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import DB.DBConnection;
import Model.Donatio... |
/**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.cms.web;
import java.io.File;
import java.net.URLEncoder;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServle... |
package com.metoo.foundation.domain.virtual;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
/**
*
* <p>
* Title: GoodsCompareView.java
* </p>
*
* <p>
* Description: 商品对比栏信息管理类,用来封装商品对比栏数据,用在商品对比页
* </p>
*
* <p>
* Copyright: Copyright (c) 2015
* </p>
*
... |
package Services;
import Domain.Account;
/**
* Created by Emma on 8/12/2018.
*/
public interface AccountServices
{
Account create(Account acc);
Account read(long id);
Account update(Account acc);
void delete(long accNo);
Iterable<Account> findAll();//findall
}
|
public class FullAdder {
private final tuple Tuple;
public FullAdder(boolean A, boolean B, boolean C){
//Full Adder consists of two HalfAdders and an OR Gate
HalfAdder x = new HalfAdder(A,B);
HalfAdder y = new HalfAdder(x.getHalfAdder().getSum(),C);
OR z = new OR();
Tuple = new tuple(y.getHalfAdder().get... |
package br.edu.com.dados.repositories;
import java.util.List;
import br.edu.com.dados.dao.Dao;
import br.edu.com.entities.Atividade;
public class RepositoryAtividade implements IRepositoryAtividade {
@Override
public boolean salvarAtividade(Atividade atividade) {
return Dao.getInstance().save(ativida... |
package cs3500.animator.controller;
import java.io.IOException;
import cs3500.animator.model.IModel;
import cs3500.animator.view.IView;
public class ControllerSVG implements IController {
private IModel model;
private IView view;
private int fps;
public ControllerSVG(IModel m, IView v) {
if (m == null |... |
package com.github.bruce.thrift.connection.counter;
import java.util.concurrent.atomic.AtomicInteger;
public class SimpleCycleCounter extends CycleCounter {
private AtomicInteger counter;
public SimpleCycleCounter(int size) {
super(size);
counter = new AtomicInteger(0);
}
@Override
... |
package com.mahang.weather.model.entity;
import android.os.Parcel;
import android.os.Parcelable;
public class SuggestionInfo extends BaseInfo implements Parcelable {
private String title;
private String suggestion;
private String index;
protected SuggestionInfo(Parcel in) {
title = in.readString();
su... |
package subconsciouseye.eyetech;
public class Reference {
public static final String MOD_ID = "eyetech";
public static final String MOD_NAME = "EyeTech";
public static final String VERSION = "1.0";
public static final String CLIENT_PROXY_CLASS = "subconsciouseye.eyetech.proxy.ClientProxy";
public static final Str... |
package com.chenjiawen.Dao;
import com.chenjiawen.Model.Comment;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface CommentDao {
String TABLE_NAME = "comment";
String INSERT_FIELD = " user_id,create_date,entity_id,entity_type,status,content ";
String SELECT_FIELD = " ... |
package com.uit.huydaoduc.hieu.chi.hhapp.Model.Trip;
import android.os.Parcel;
import android.os.Parcelable;
import com.uit.huydaoduc.hieu.chi.hhapp.Model.RouteRequest.RouteRequest;
public class Trip implements Parcelable {
private String tripUId;
private TripType tripType;
private TripState tripState... |
package de.digitalstreich.Manufact.controller.frontend;
import de.digitalstreich.Manufact.db.ManufacturerRepository;
import de.digitalstreich.Manufact.factory.*;
import de.digitalstreich.Manufact.model.Manufacturer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Co... |
package com.mredrock.freshmanspecial.data;
/**
* Created by 700-15isk on 2017/8/8.
*/
public class QQGroupNumber {
private String GroupName;
private String Number;
public String getGroupName() {
return GroupName;
}
public void setGroupName(String groupName) {
GroupName = groupN... |
package com.globallogic.dao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.provisioning.UserDeta... |
package com.example.ontheleash;
import android.content.Context;
import android.content.SharedPreferences;
import com.google.gson.Gson;
import java.util.ArrayList;
import java.util.List;
public class MapSettings {
private static MapSettings instance;
public static synchronized MapSettings getInstance(Context... |
package dao.prueba;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import static com.conexion.Conexion.*;
public class daoPrueba {
public static String cargarNombrePrueba(){
Connection cn =null;
PreparedStatement pstm = null;
ResultSet rs... |
package com.gaoshin.dao;
import java.util.List;
import com.gaoshin.dao.jpa.DaoComponent;
import com.gaoshin.entity.PostEntity;
public interface GroupDao extends DaoComponent {
List<PostEntity> listLatestGroupPosts(Long groupId, Long beforeId, int size);
List<PostEntity> listLatestUserPosts(Long ... |
package com.mkd.adtools.utils;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.springframework.stereotype.Component;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* JWT工具类
*
*/
@Component
pu... |
package kr.co.shop.batch.kcp.job;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arr... |
package net.kalpas.pitta.repository;
import net.kalpas.pitta.PittaApplication;
import net.kalpas.pitta.domain.Event;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.IntegrationTest;
import org.springframework.bo... |
/*
* 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 servlet.cart;
import static common.Config.*;
import common.ResouceDynamicMapping;
import data.dao.OrderDao;
import data.dto.Or... |
package org.davidmoten.io.extras;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.fail;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
impo... |
package br.com.fatec.proximatrilha.repository;
import org.springframework.data.repository.CrudRepository;
import br.com.fatec.proximatrilha.model.Comment;
public interface CommentRepository extends CrudRepository<Comment, Long> {
}
|
package com.cheese.radio.ui.media.play.popup;
import android.os.Bundle;
import android.view.View;
import com.binding.model.adapter.recycler.RecyclerSelectAdapter;
import com.binding.model.model.ModelView;
import com.binding.model.model.PopupRecyclerModel;
import com.cheese.radio.R;
import com.cheese.radio.base.cycle.... |
package com.isg.iloan.validation;
import org.zkoss.zk.ui.Component;
import org.zkoss.zul.Tabpanel;
public class CreditCardDetailPanelValidator {
public static void addSaveSwipeValidation(Component window) {
// getSaveAndSwipeNode(window);
//window.getPage().getDesktop().getComponents()
for(Component c: windo... |
package com.rahul.popularmovies.Adapter;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import... |
package com.miyatu.tianshixiaobai.activities.mine.moreFunction;
import android.app.Activity;
import android.content.Intent;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.PopupWindow;
import android.widget.RelativeLayout;
... |
package kr.or.ddit.servlet.scope;
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;
i... |
package controller;
import ejb.NotaFacadeLocal;
import ejb.PersonaFacadeLocal;
import entity.Nota;
import entity.Persona;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
@Named(value = "notacontroller")
@SessionScoped... |
package com.unit;
public interface Autowire {
/**
* 返回自动装配的配置值
* @return
*/
String getValue();
}
|
package com.xh.encryption;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
public class CreatKey {
RSAPublicKey publicKey;
RSAPrivateKey privateKey;
public CreatKey() throws Exception{
/... |
package com.ranpeak.ProjectX.activity.lobby;
import android.util.Log;
import io.reactivex.Observer;
import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.Disposable;
public class DefaultSubscriber<T> implements Observer<T> {
Disposable disposable;
@Override
public void onSubscribe(@N... |
package com.sshfortress.common.securityutil;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;
/**
* <p>
* 功能:AES128位对称加密类,该类参数需要16位字符串秘钥及待加/解密字符串
* <br/>参考文章:
* http://blog.csdn.net/coyote1994/... |
/**
* Copyright 2016-2017 Shyam Bhimani
*/
package codelityChallange;
class Solution {
public int solution(int[] H) {
// write your code in Java SE 8
int counter = H.length;
int mid = H.length/2;
int ownNeastHight = 0;
int willHuntNeastHeight = 0;
ownNeastHight = H[mid];
... |
package com.bistel.test.service.hbaseImpl;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import org.apache.hadoop.hbase.util.Bytes;
import org.... |
package com.fasteque.pachubewidget;
import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.Context;
import android.content.Intent;
//import android.content.SharedPreferences;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.Networ... |
package com.jd.rpc.model;
import java.util.HashMap;
import java.util.Map;
public class ProviderBeanMapContext {
private static Map<Class,Object> beanMapInfo=new HashMap<Class, Object>();
public static void register(Class key,Object bean){
beanMapInfo.put(key,bean);
}
public static Object getBe... |
import java.io.*;
class Palindrome{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the sentence");
String str;
int count=0;
str=br.readLine();
String output="", ar[]=... |
package com.leo_sanchez.columbiatennisladder.Models;
/**
* Created by ldjam on 3/24/2018.
*/
public class Player {
public Player(String firstName, String lastName, int position){
this.firstName = firstName;
this.lastName = lastName;
this.position = position;
}
public String fir... |
package org.squonk.execution.steps.impl;
import org.apache.camel.CamelContext;
import org.squonk.dataset.Dataset;
import org.squonk.dataset.DatasetMetadata;
import org.squonk.execution.steps.AbstractStep;
import org.squonk.execution.steps.StepDefinitionConstants;
import org.squonk.execution.variable.VariableManager;
i... |
/*
* Copyright (c) 2008-2019 Haulmont.
*
* 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... |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
package com.pointinside.android.piwebservices.service;
import android.content.*;
import android.database.Cursor;
import android.net.Uri;
import android.os.*;
i... |
/*
* Project: OSMP
* FileName: Cacheable.java
* version: V1.0
*/
package com.osmp.cache.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.osmp.cache.core.CacheKeyGenerator;
impo... |
package com.example.rest.resource;
import java.io.Serializable;
public class BaseResource implements Serializable
{
}
|
package com.oa.role.form;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import com.fasterxml.jackson.annotatio... |
package person.zhao.anno.mapbean;
public class Test {
public void p() throws Exception {
System.out.println(new String("123").getClass() == String.class);
if (new String("123") instanceof String) {
System.out.println("ok ~~~~");
} else {
System.out.println("ng ~~~... |
package controler;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import javax.faces.bean.ManagedBean;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletResponse;
import model.ArrayDeRetorno;
imp... |
package com.wentry.netty.handle;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPromise;
import java.util.concurrent.TimeUnit;
/**
* @author WJX
* @title: SimpleDuplexHanlder
* @projectName archite... |
/**
* FileName: UUid
* Author: yangqinkuan
* Date: 2019-1-13 17:59
* Description:
*/
package com.ice.find.util.codegenerate;
import java.util.UUID;
public class UUid {
public final static synchronized String getUUID() {
return UUID.randomUUID().toString().replace("-", "");
}
}
|
/*
* Copyright Verizon Media, Licensed under the terms of the Apache License, Version 2.0. See LICENSE file in project root for terms.
*/
package com.yahoo.cubed.json;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.yahoo.cubed.App;
import com.yahoo.cubed.settings.CLISettings;
import com.yahoo.cubed.... |
package com.mglowinski.restaurants.model.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RestaurantCreateDto {
private String name;
private MenuDto menuDto;
... |
/* SimpleWebApp.java
Purpose:
Description:
History:
Tue Feb 27 09:27:03 2007, Created by tomyeh
Copyright (C) 2007 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
This program is distributed under LGPL Version 2.1 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
}}IS_RIGHT
*/
package... |
package symap.mapper;
import java.awt.geom.Point2D;
import java.awt.Color;
import java.awt.Point;
import symap.contig.Clone;
import symap.contig.Contig;
import symap.block.Block;
import symap.marker.MarkerTrack;
class BESHit {
private Clone clone;
public BESHit() { }
public void clear(Hit parent) {
if (clone ... |
package com;
public class Some {
public static void main(String[] args) {
System.out.println("Yes");
System.out.println("I`m new branch");
}
}
|
package com.register.manager.model;
public enum Login {
GUFFAW,
HITHERTO,
LIGATURE,
GUIDON,
HOARY,
LIMNER,
GUILLOCHE,
HOBBLEDEHOY,
TITMOUSE,
HOLYSTONE
} |
package com.company.core.checker;
import com.company.tax.user.entity.User;
/**
* 用户权限验证
* @author Dongfuming
* @date 2016-5-13 下午9:51:11
*/
public interface UserPrivilegeChecker {
/** 判断用户是否有该权限。一个用户,多个角色,一个角色,多个权限 */
public boolean isPrivilegeAccessible(User user, String privilege);
}
|
package pocketserver.packets;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.DatagramPacket;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import ... |
package quizapp.restapi;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import quizapp.core.User;
import quizapp.json.JsonHandler;
import quizapp.json.UsernameHandler;
import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertio... |
package com.self.modules.sys.typehandle;
import org.apache.commons.collections.CollectionUtils;
import org.apache.ibatis.type.BaseTypeHandler;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;
import java.sql.CallableStatement;
import jav... |
package com.pickup.pickup.controller;
import android.widget.Toast;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by zachschlesinger on 3/4/17.
*/
public class CredentialVerification {
private static final Pattern p = Pattern.compile("(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-... |
//file: Problem_9_1.java
//author: Victoria Cameron
//course: CMPT 220
//assignment:Lab 6
//due date: April 20, 2017
//version: 1.0
//Print the aria and perimater od a rectangle using a rectangle class
public class Problem_9_1{
/** Main method */
public static void main(String[] args) {
//Make the two rectangles... |
package Fichier_circuit;
import java.util.Scanner;
public class SauvegarderFichier
{
private Scanner scanner;
private String url_fichier_circuit;
private String nom_fichier_circuit;
private FichierCircuit fichier_circuit;
private String contenu;
public SauvegarderFichier(String contenu)
{
thi... |
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.Http... |
package saboteur.view;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.*;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
im... |
package com.sushenbiswas.javacode;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class Main4Activity extends AppCompatActivity {
@Overri... |
package org.rs.core.beans;
import javax.validation.constraints.NotNull;
import java.util.Date;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.rs.core.utils.MyJsonDateSerializer;
import org.rs.core.utils.MyJsonDateDeserializer... |
/*
* Copyright 2002-2023 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.