text stringlengths 10 2.72M |
|---|
package com.daikit.graphql.dynamicattribute;
/**
* Abstract super class for {@link GQLDynamicAttributeGetter} and
* {@link GQLDynamicAttributeSetter}
*
* @author Thibaut Caselli
* @param <ENTITY_TYPE>
* the input object value holding type
*/
public abstract class GQLAbstractDynamicAttribute<ENTITY_TY... |
package ifs_ints_and_loops;
// Copyright (c) The League of Amazing Programmers 2013-2017
// Level 0
import javax.swing.JOptionPane;
/**
* Secret Message Box / Secure Messaging System
*
* You want to leave a message on one of the Mac computers so that only your
* friend can read it. You set up t... |
package byog.Core;
public class Matrix {
private int[][] body;
private int height;
private int width;
Matrix(int w, int h) {
body = new int[w][h];
height = h;
width = w;
}
Matrix(int[][] m) {
body = m;
height = m[0].length;
width = m.length;
... |
package com.eduardo.rest.workspaces;
import com.eduardo.grpc.main.WorkspaceClient;
import com.eduardo.rest.workspaces.model.WorkspaceDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.web.... |
package net.darkwire.example.service;
import retrofit.RestAdapter;
import com.octo.android.robospice.retrofit.RetrofitGsonSpiceService;
import net.darkwire.example.service.catalog.UrlCatalog;
import net.darkwire.example.service.client.FiveHundredPxClient;
/**
* Created by fsiu on 3/21/14.
*/
public class FiveHund... |
package com.flightmanagement.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.*;
/**
* Created by z00382545 on 11/10/16.
*/
@Entity
public class Passenger {
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
private long id;
private String firstName;
privat... |
package org.larrychina.lcm.conf;
import org.larrychina.lcm.exception.LcmException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
/**
* Created by suning on 2018/5/4.
* load properties
*/
public class LcmConfigration {
publi... |
/*
* Origin of the benchmark:
* repo: https://github.com/diffblue/cbmc.git
* branch: develop
* directory: regression/cbmc-java/tableswitch1
* The benchmark was taken from the repo: 24 January 2018
*/
class Main
{
public static void main(String[] args)
{
int i, j;
java.util.Random rand... |
package com.mycompany.ghhrkapp1.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import com.mycompany.ghhrkapp1.entity.Locations;
@RepositoryRestResource
public interface LocationRepository extends JpaRepository<Lo... |
package com.needii.dashboard.dao;
import java.util.List;
import com.needii.dashboard.model.City;
public interface CityDao {
List<City> findAll();
Long count();
City findOne(int id);
}
|
package com.nikita.recipiesapp.common.redux;
/**
* Actions must implement this class
*/
public interface Action {}
|
package base.javaThread.demoSync;
/**
* 多线程并发安全问题
* 当多个线程访问同一资源时,由于线程切换时机不确定,
* 可能导致多个线程执行代码出现混乱,导致程序执行
* 出现问题,严重时可能导致系统瘫痪。
*
* 解决并发安全问题,就是要将多个线程"抢"改为"排队"
* 执行
* @author adminitartor
*
*/
public class SyncDemo {
public static void main(String[] args) {
final Table table = new Table();
Thread t1 = new... |
package cn.zhanghao90.demo20;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Build;
import android.provider.MediaStore;
import android.support.v4.content.FileProvider;
import android.support.v7.app.AppCompatActivity;
impor... |
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Rc4 rc4 = new Rc4();
Scanner in = new Scanner(System.in);
System.out.println("请输入要加密的字符串");
String m = in.nextLine();
System.out.println("请输入加密的密匙");
String key = in.nextL... |
package raft.server.storage;
import java.nio.ByteBuffer;
/**
* Author: ylgrgyq
* Date: 18/6/24
*/
class Footer {
static int tableFooterSize = BlockHandle.blockHandleSize + Long.BYTES;
private BlockHandle indexBlockHandle;
Footer(BlockHandle indexBlockHandle) {
this.indexBlockHandle = indexBlo... |
package com.bistel.mq;
public class MessageInfo {
private byte[] message;
private String routingKey;
public MessageInfo() {
}
public MessageInfo(String message, String routingKey) {
this.message = message.getBytes();
this.routingKey = routingKey;
}
public byte[] getMessage() {
return message;
}... |
package com.kwik.infra.exception;
public class KwikCommunicationException extends RuntimeException {
private static final long serialVersionUID = 2085232855539649247L;
public KwikCommunicationException(String message, Throwable e) {
super(message, e);
}
}
|
package pl.camp.it.anonymous;
public class Service {
}
|
package com.example.weatherapp;
public class WeatherInfo {
String countryName;
String iconName;
public WeatherInfo(String countryName, int iconNumber) {
this.countryName = countryName;
this.iconName = iconNumberToImageName(iconNumber);
}
private static String iconNumberToImageName... |
/*
* 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 DAO;
import Model.Usuario;
import Util.OperacoesBancoDados;
import java.sql.Connection;
import java.sql.ResultSet;
import java... |
package com.lsjr.zizisteward.http;
/**
*
*/
public enum ErrorType {
backgroundError,
localError,
netError
}
|
/*
* 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 senha.Testes;
import java.io.IOException;
import java.sql.ClientInfoStatus;
import java.sql.Connection;
import java.sql.SQLExc... |
package L4_ExerciciosListas;
import java.util.Scanner;
public class Ex04_L4 {
public static void main3(String[] args) {
char[] letrasScanner = new char[10];
char[] letrasVogais = {'a', 'e', 'i', 'o', 'u'};
int vogaisSoma = 0;
Scanner myScanner = new Scanner(System.in);
Syst... |
/*
* 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... |
package com.pwq.Stream;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* Created by pwq on 2018/1/21.
*/
public class DateTest {
public static void main(String[] args) throws IOException {
DataOutputStream dataOutputStream = n... |
package com.gxtc.huchuan.http.service;
import com.gxtc.huchuan.bean.FocusBean;
import com.gxtc.huchuan.bean.MergeMessageBean;
import com.gxtc.huchuan.bean.MessageBean;
import com.gxtc.huchuan.bean.PersonInfoBean;
import com.gxtc.huchuan.bean.SearchChatBean;
import com.gxtc.huchuan.bean.dao.User;
import com.gxtc.huchua... |
package com.trump.auction.back.sys.dao.read;
import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.trump.auction.back.sys.model.Module;
import com.trump.auction.back.sys.model.ZTree;
@Repository
public interface Modu... |
package com.needii.dashboard.utils;
import java.io.File;
import com.turo.pushy.apns.ApnsClient;
import com.turo.pushy.apns.ApnsClientBuilder;
public class APNSSingleton {
private static APNSSingleton instance;
private ApnsClient client;
private APNSSingleton(ApnsClient client){
this.clie... |
package ru.kurtov.jgrep;
public class QueueItem {
public static int TERMINATOR = 1;
public static int DATA = 2;
public static int NOT_FOUND = 3;
public static int EOF = 4;
String fileName;
char[] data;
int type;
private QueueItem(String fileName, char[] data, int type) {
... |
package vn.elca.training.model.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
@Entity
public class Employee {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
long id;
@ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.M... |
package com.nycab.dao;
import java.util.List;
import com.nycab.model.Cab;
public interface CabDao {
public Boolean add(Cab cab);
public List<Cab> getCabs();
}
|
package multithreading;
public class ExampleThread2
{
public static void main(String[] args)
{
Test te=new Test();
Test t1=new Test();
Test t2=new Test();
te.start();
try
{
te.join();
}
catch( InterruptedException e)
{
System.out.println("exception is "+e.getMessage());
}
t1.start();
t2.start();
... |
/*******************************************************************************
* Copyright (c) 2012, Eka Heksanov Lie
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribution... |
package com.esum.wp.ims.batchinstancelog.service;
import com.esum.appframework.service.IBaseService;
public interface IBatchInstanceLogService extends IBaseService{
}
|
package com.kjottkaker.hellohig;
import java.util.Collections;
import java.util.Stack;
import android.os.Bundle;
import android.app.Activity;
//import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.... |
package EXAMS.E05.spaceStation;
import EXAMS.E05.spaceStation.core.Controller;
import EXAMS.E05.spaceStation.core.ControllerImpl;
import EXAMS.E05.spaceStation.core.Engine;
import EXAMS.E05.spaceStation.core.EngineImpl;
public class Main {
public static void main(String[] args) {
Controller controller = n... |
package com.evlj.searchmovie.shared.bindings;
import android.databinding.BindingAdapter;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import com.squareup.picasso.Picasso;
public final class ImageViewBindingAdapter {
private ImageViewBindingAdapter() {
throw new Unsupporte... |
package lawscraper.server.service;
import lawscraper.server.entities.law.Law;
import lawscraper.server.entities.law.LawDocumentPart;
import java.util.List;
/**
* Created by erik, IT Bolaget Per & Per AB
* Date: 1/2/12
* Time: 8:53 PM
*/
public interface LawService {
Law find(Long id);
List<Law> findAll... |
package org.kuali.ole.ingest;
import org.kuali.ole.OLEConstants;
import org.kuali.ole.OleOrderRecordHandler;
import org.kuali.ole.OleOrderRecords;
import org.kuali.ole.converter.MarcXMLConverter;
import org.kuali.ole.converter.OLEEDIConverter;
import org.kuali.ole.docstore.model.xmlpojo.ingest.Request;
import org.kual... |
package io.papermc.hangar.security;
import io.papermc.hangar.model.NamedPermission;
import org.springframework.security.core.GrantedAuthority;
/**
* @deprecated Not used atm. This can be used if we want to store global roles on the auth model
*/
@Deprecated
public class PermissionAuthority implements GrantedAuthori... |
package kz.greetgo.file_storage.impl;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Map;
import javax.sql.DataSource;
import kz.greetgo.file_storage.impl.jdbc.Query;
public class MultiDbOperationsOracle extends MultiDbOperationsPostgres {
@Override
protected String strType(int len) {
... |
package com.szhrnet.taoqiapp.utils;
import android.util.Log;
import com.szhrnet.taoqiapp.BuildConfig;
/**
* <pre>
* author: MakeCodeFly
* desc : LogUtils类
* email:15695947865@139.com
* </pre>
*/
public class LogUtils {
public static void d(String tag, String message) {
if (BuildConfi... |
package ru.avokin.uidiff.diff.folderdiff.view;
import ru.avokin.uidiff.diff.common.model.DiffSideModel;
import ru.avokin.uidiff.diff.common.view.AbstractDiffSidePanel;
import ru.avokin.uidiff.diff.folderdiff.model.DiffFileTreeNode;
import ru.avokin.uidiff.diff.folderdiff.model.DiffTreeModel;
import ru.avokin.uidiff.di... |
package edu.uml.nschell;
public class Encryption {
public static String encryptText(String st) throws Exception {
String encrypt = new StringBuilder(st).reverse().toString();
return encrypt;
}
} |
package br.com.bd1start.aula2;
import org.junit.Assert;
import org.junit.Test;
import br.com.db1start.aula2.ExercicioDeString;
public class ExercicioDeStringTeste {
// Exercicio String 1
@Test
public void deveRetornarToUppercase() {
ExercicioDeString exercicio = new ExercicioDeString();
String resultado = ex... |
/*
Copyright 2021 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 writing... |
package multithreading;
import java.util.Scanner;
class HusbandThread implements Runnable{
Thread husband;
Bank b;
HusbandThread(Bank b)
{
this.b=b;
husband=new Thread(this,"depositthread");
husband.start();
}
public void run()
{
b.deposit();
}
}
class WifeThread implements Runnable
{
T... |
package it.uniroma3.siw.photo.controllers;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bin... |
package com.binarysprite.evemat.page.blueprint.data;
import java.io.Serializable;
/**
*
* @author Tabunoki
*
*/
public class GroupSelect implements Serializable {
private final int id;
private final String groupName;
public GroupSelect(int id, String groupName) {
super();
this.id = id;
this.groupNam... |
package org.springframework.stereotype;
import java.lang.annotation.*;
/**
* @author kaiwen
* @create 2019-05-14 17:08
* @since 1.0
**/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Controller {
String value() default "";
}
|
/**
* File : RetrieveVideo.java
*
* Author : Elena Villalón
*
* Contents : It retrieves videos in table TbVideo of the Mckoi
* database (see TableCreate) using PreparedStatemnt.
*
*
* Uses: Video,
*/
package jmckoi;
import jVideos.Video;
import java.sql... |
package io.qtechdigital.onlineTutoring.dto.hateoas;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.hateoas.ResourceSupport;
import java.io.Serializable;
public class BaseResource extends ResourceSupport implements Serializable {
@JsonProperty
public Long id;
public Lon... |
package util;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JComponent;
import javax.swing.JLabel;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.Vector;
import util.LinkLabel;
// mdb added 7/15/09 #166... |
package br.edu.unoescsmo.aluga.interfaces;
import java.util.List;
import br.edu.unoescsmo.aluga.model.Imovel;
public interface ImovelInterface {
void salvar(Imovel professor);
void delete(Imovel professor);
List<Imovel> listar();
Imovel buscarPorCodigo(Long codigo);
}
|
package com.sri.googleimagesearch.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class SearchResult {
private String kind;
private Queries queries;
... |
package com.resjob.modules.app.utils;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.URLDecoder;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclien... |
/*
* Created on Mar 18, 2007
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.citibank.ods.persistence.pl.dao;
import java.math.BigInteger;
import com.citibank.ods.common.dataset.DataSet;
import com.citibank.ods.en... |
package com.leviathan143.craftingutils.common.items;
import net.minecraft.item.Item;
public class CUItems
{
public static Item ingredientList;
public static void preInit()
{
ingredientList = new IngredientList();
}
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package game;
import javax.swing.JFrame;
/**
*
* @author Nitro
*/
public class main {
public static void main (String[] args) {
JFrame frame = new Frame();
frame.setVisible(true);
}
}
|
package communication;
import java.io.ObjectOutputStream;
import java.io.Serializable;
public class LogIn implements Serializable {
public String name;
public char[] password;
public boolean isNew;
public LogIn(String name, char[] password, boolean isNew){
this.name = name;
this.passw... |
public class Quote {
private String name;
private String quote;
public Quote(String line){
this.name = parseName(line.substring(0,line.indexOf(':')));
this.quote = parseQuote(line.substring(line.indexOf(':')+2));
}
private String parseQuote(String quote) {
//capitalize fir... |
package dev.liambloom.softwareEngineering.chapter1;
public class HelloWorld { // Class for hello world program
public static void main () { // Main method
/*System.out.println("Hello, world!\n");
System.out.print("This program ");
System.out.print("doesn't ");
System.out.println("pr... |
package com.trump.auction.trade.core.impl;
import java.math.BigDecimal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.trump.auction.reactor.api.AuctionContextFactory;
import com.trump.auction.reactor.api.model.AuctionContext;
import com.trump... |
//////////////////////license & copyright header//////////////////////////////////
// //
// CueCatDecoder.java //
// ... |
package com.practice.util;
import java.io.IOException;
import java.io.Reader;
import java.util.List;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
public abstract class AbstractDao <T> {
protected static Sq... |
package com.hr.calendar.service;
import java.util.List;
import java.util.Map;
import com.hr.calendar.model.CalendarTask;
import com.hr.schedule.model.FactSchedule;
public interface CalendarService {
void newTask(CalendarTask task);
void edit(CalendarTask task);
void delete(Integer no);
List<CalendarTask> sh... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package josteo.model.paziente;
import java.util.*;
import josteo.infrastructure.DomainBase.*;
/**
*
* @author cristiano
*/
public class Paziente extends EntityBase implements IAggregateRoot{
private List<Consul... |
package be.openclinic.healthrecord;
import be.mxs.common.util.db.MedwanQuery;
import be.mxs.common.util.system.ScreenHelper;
import java.sql.Connection;
import java.sql.Timestamp;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
/**
* Created by IntelliJ IDEA.
* User: mxs_david
* Date: 15-jan-2007
... |
package com.javaee.ebook1.mybatis.dto;
import lombok.Data;
import java.util.List;
/**
* @author xuzihan
* @version 1.0
* @description: TODO
* @data 2021/5/8
**/
@Data
public class UserDTO {
String username;
String password;
List<RoleDto> roles;
}
|
package nl.jasperNiels.twitter.model;
import java.util.Observable;
import android.text.SpannableString;
public class Content extends Observable {
private SpannableString text;
public Content(SpannableString text) {
this.text = text;
}
public SpannableString getText() {
return text;
}
}
|
package br.com.demo.sqs.controller;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.aws.messaging.core.QueueMessagingTemplate;
import org.sp... |
package com.payroll.business;
public class FullTime extends Employee {
private int salary;
public int getSalary() {
return salary;
}
public void setSalary(int salary) {
this.salary = salary;
}
public FullTime(String name, String email, int salary) {
super(name, email);
this.salary = salary;
}
@... |
package exercises.chapter2.ex1;
/**
* @author Volodymyr Portianko
* @date.created 01.03.2016
*/
public class Test {
private int intValue;
private char charValue;
public static void main(String[] args) {
Test test = new Test();
System.out.println(test.intValue);
System.out.printl... |
import java.util.Scanner;
public class Main {
public static void main(String []args) {
Scanner in = new Scanner(System.in);
WarShip warShip1 = new WarShip("Эсминец",15,"Макаров",0,10, 3,11,10);
WarShip warShip2 = new WarShip("Крейсер",30,"Епифанцев",0,20, 5,2,5);
UnderWaterShip warS... |
package org.sample.jsf.client.view.search;
import javax.faces.bean.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
@Named
@ViewScoped
public class SearchModel {
/** Serial version UID. */
private static final long serialVersionUID = -4966685387777336734L;
/** The session. */
@Inj... |
package com.waylau.spring.boot.security.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSec... |
package mum.cs472;
import com.google.gson.Gson;
import java.util.ArrayList;
import java.util.List;
public class Word {
public static class Definition {
private final String t;
private final String d;
public Definition (String type, String definition) {
th... |
package com.bwie.juan_mao.jingdong_kanglijuan;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.bwie.juan_mao.jingdong_kangl... |
package com.fairytalener;
import com.fairytalener.utilities.FileUtilities;
import com.fairytalener.utilities.StanfordParser;
import edu.stanford.nlp.trees.Tree;
import java.io.*;
import java.util.HashSet;
import java.util.List;
public class EvaluationNP {
StanfordParser stanfordParser = new StanfordParser()... |
package com.kymjs.event.util;
public interface HasExecutionScope {
Object getExecutionScope();
void setExecutionScope(Object executionScope);
}
|
package DataInfo;
import java.util.Date;
import java.util.Properties;
import DataInfo.EmailMessage;
public class EmailMessageTest {
public static void main(String[] args) throws Exception {
String emailType = EnumType.SendEmailType;
String subject = "first meeting";
String from = "from_email";
St... |
package br.com.clean.arch.domain.usecase.sum;
class SumUseCaseTest {
void calculate() {
}
}
|
package co.project.bloodbankmgmt.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
import co.proje... |
package com.minamid.accessiblememorygame;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import com.minamid.accessiblememorygame.ui.MainFragment;
import com.minamid.accessiblememorygame.util.Config;
public class MainAc... |
package com.wang.aop.entity;
import java.io.Serializable;
/**
* @author wxe
* @since 1.0.0
*/
@SuppressWarnings("serial")
public class Agent implements Serializable{
private String id;
private String name;
private String sex;
private String location;
private String loginName;
private String agentNo... |
package MVC.views;
import java.awt.GridLayout;
import java.sql.Timestamp;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import MVC.controllers.showI... |
/*
* Copyright 2006-2016 CIRDLES.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 applicable law or agr... |
/*
* Copyright (c) 2020 Nikifor Fedorov
* 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 io.dcbn.backend.authentication.models;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.common.aliasing.qual.Unique;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security... |
package mekfarm.inventories;
import mekfarm.capabilities.IFilterHandler;
import mekfarm.common.IMachineAddon;
import mekfarm.items.BaseAnimalFilterItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
/**
* Created by CF on 2016-11-10.
*/
public class... |
package craps_project;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class HornMenu {
static InputStreamReader ir = new InputStreamReader(System.in);
static BufferedReader br = new BufferedReader(ir);
CrapsTable ct = new CrapsTable();
Horn hb = new Horn();
HornH... |
import java.util.Vector;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.Writer;
public class VectorsInsertionSort {
static void insert(Vecto... |
package benchmark.java.metrics.json;
import benchmark.java.entities.Friend;
import benchmark.java.entities.Person;
import benchmark.java.entities.PersonCollection;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.Deserializa... |
package atm.parts;
import atm.utils.*;
public class CashDispenser {
private Money availableCash;
/* Constructors */
public CashDispenser(){
availableCash = new Money(0);
}
/* Instance methods */
/**
* Lets you set the available cash in the cash dispenser tray
*
* @param the initial amount in ... |
package pl.pjatk.rental.service.RentalService.movie.model;
public enum MovieCategory {
ACTION,
HORROR,
TRAGEDY,
THRILLER
}
|
package com.example.android.nusevents;
import android.app.Activity;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Filter;
impor... |
package com.willian.Estoque.repository;
import com.willian.Estoque.domain.Pedido;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface PedidoRepository extends JpaRepository<Pedido, Integer> {
}
|
// **********************************************************
// 1. 제 목: SUBJECT INFORMATION USER BEAN
// 2. 프로그램명: ProposeCourseBean.java
// 3. 개 요: 과정안내 사용자 bean
// 4. 환 경: JDK 1.3
// 5. 버 젼: 1.0
// 6. 작 성: 2004.01.14
// 7. 수 정:
// *************************************************... |
package com.sshfortress.common.beans;
import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
public class MemberInfo implements Serializable{
/**
* <p class="detail">
* 功能:这里写描述
* </p>
... |
/*
* Copyright (c) 2013 MercadoLibre -- All rights reserved
*/
package com.zauberlabs.bigdata.lambdaoa.realtime.bolts;
import static junit.framework.Assert.*;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.time.DateUtils;
import org.junit.Before;
import org.juni... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.