text stringlengths 10 2.72M |
|---|
package creature.intelligence.output;
import creature.intelligence.brain.Brain;
import creature.intelligence.brain.Node;
/**
* Created by Michael on 01.06.2017.
*/
public class Decisions {
/**
* A static method to get a walk direction from a Brain.
*/
public static int[] decideWalkDirection(Brai... |
package tp.tbert12.cola;
import org.junit.Test;
import static org.junit.Assert.*;
public class ColaTest {
@Test
public void crearColaVacia() {
Cola laCola = new Cola();
assertEquals(laCola.size(),0);
assertTrue(laCola.isEmpty());
}
@Test
public void colaConUnElemento() {... |
package com.neuedu.classwork;
import java.io.Serializable;
public class MyBook implements Serializable {
//成员name(书名String)、price(价格 double)、press(出版社String)、author(作者 String)、bookISBN(书的ISBN号String)
private String name;
private double price;
private String press;
private String author;
priva... |
package com.oddle.app.weather.models.open_weather;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public class MainData {
private float temperature;
private float feelsLike;
private int pressure;
private sh... |
package View;
import java.util.ArrayList;
import Listeners.ViewListenable;
import javafx.event.ActionEvent;
import javafx.geometry.HPos;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import j... |
package com.jcotes.kmeans.cluster;
import com.jcotes.kmeans.data_obj.Cluster;
import com.jcotes.kmeans.data_obj.Record;
import com.jcotes.kmeans.file_tools.fileIO;
import java.util.ArrayList;
import java.util.Random;
/**
* KMeans uses KMeans++ to initialize clusters and Lloyd algorithm to cluster
* the data.
*
*... |
package com.example.pavlion.quizit;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.CheckBox;
import android.widget.RadioButton;
import android.widget.Toast;
... |
package com.example.demo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by Administrator on 2018/11/29.
*/
@Controller
public class FtlIndexController {
@RequestMapp... |
package com.tencent.mm.plugin.mall.ui;
import android.content.Context;
import com.tencent.mm.plugin.wallet_core.ui.q.b;
class MallIndexUI$6 implements b {
final /* synthetic */ MallIndexUI lab;
MallIndexUI$6(MallIndexUI mallIndexUI) {
this.lab = mallIndexUI;
}
public final int bce() {
... |
package com.guilhermefgl.spring.crudproduto.models.repositories;
import java.util.List;
import org.hibernate.annotations.NamedQueries;
import org.hibernate.annotations.NamedQuery;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springfra... |
package de.madjosz.adventofcode.y2020;
import static org.junit.jupiter.api.Assertions.assertEquals;
import de.madjosz.adventofcode.AdventOfCodeUtil;
import java.util.List;
import org.junit.jupiter.api.Test;
class Day03Test {
@Test
void day03() {
List<String> lines = AdventOfCodeUtil.readLines(2020,... |
package Kodluyoruz_HomeWork_AbdAlrahimZakaria.Week2_Homework;
import java.util.Scanner;
public class UniversityGradesCalculator {
/*
* This function calculates and prints the letter grade of given grades
* @author Abd Alrahim Zakaria - 05.07.2021
*/
public static void main(String[] args) {
... |
package com.fit2cloud.netty.config;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@Configuration
@MapperScan(basePackages = "com.fit2cloud.netty.dao", sqlSessionFactoryRef = "... |
package com.service.impl;
import com.bean.ArrangementInfo;
import com.mapper.ArrangementInfoMapper;
import com.service.ArrangementInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service("ArrangementInfoService")
publi... |
package io.malibu.malibu.Models;
import com.google.gson.annotations.SerializedName;
/**
* Created by Tier on 31.10.14.
*/
public class Tag {
@SerializedName("tagid")
public Long id;
private String name;
public Tag(Long id, String name) {
this.id = id;
this.name = name;
}
... |
package com.medic.quotesbook.services;
import android.app.IntentService;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.Ringtone;
import ... |
package com.issp.ispp.repository;
import com.issp.ispp.entity.DatosAdicionalesUsuario;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface DatosAdicionalesRepository extends CrudRepository<DatosAdicionalesUsuario,Long> {
}
|
public class TampilPersegi extends Persegi {
public static void main(String[] args) {
Persegi p1 = new Persegi();
p1.sisi = 10;
p1.tampilSisiPanjang();
System.out.println("Luas persegi : " + p1.hitungLuas());
System.out.println("Keliling persegi : " + p1.hitungKeliling());
}
} |
package com.tencent.mm.plugin.websearch.api;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetManager;
import android.graphics.Color;
import android.text.TextUtils;
import com.tencent.map.geolocation.internal.TencentExtraKeys;
import com.tencen... |
package day48_constructors_static.static_examples;
public class CalculatorTest {
public static void main(String[] args) {
//add is static method, can be called using Classname, staticMethodName
//static way of calling the method
Calculator.add(5,3);
// Calculator.multiply(2,4); ERR... |
package com.tencent.mm.g.a;
import com.tencent.mm.sdk.b.b;
public final class di extends b {
public a bLa;
public b bLb;
public di() {
this((byte) 0);
}
private di(byte b) {
this.bLa = new a();
this.bLb = new b();
this.sFm = false;
this.bJX = null;
}
}... |
package com.medic.quotesbook.utils;
/**
* Created by capi on 12/09/15.
*/
public class GAK {
public static final String CATEGORY_QUOTESBOOK = "quotesbook";
public static final String CATEGORY_DAYQUOTE = "dayquote";
public static final String CATEGORY_SOMEQUOTES = "somequotes";
public static final St... |
package com.widget.demo;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.MultiAutoCompleteTextView;
import android.widget.TextView;
public class AutoCompleteDemo extends Activity {
/** Called when the activi... |
package com.example.zealience.oneiromancy.ui.widget;
import android.app.Activity;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Rect;
import an... |
package com.te.springmvc.controllers;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.anno... |
package com.deepak.dynamic;
import java.util.Arrays;
import java.util.Random;
public class peak {
int length;
public int[] inputarray=new int[length];
public peak(int[] inputarray,int length) {
this.length=length;
this.inputarray = inputarray;
}
public void peakfinder(int[] arra... |
package com.hooper.barber;
import java.util.concurrent.*;
/**
* Write a description of class Shared here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Shared
{
public Semaphore barberReady;
public Semaphore custReady;
public Semaphore custHappy;
public Semapho... |
package com.app;
import java.io.FileReader;
public class JSONParser {
public Object parse(FileReader fileReader) {
return null;
}
}
|
package pkg;
import java.sql.*;
public class Studentwork{
String uname,b1,b2;
Connection myconn;
Studentwork(String username)
{ try {
//bkname = s;
uname = username;
myconn = DriverManager.getConnection("jdbc:mysql://localhost:3306/","root","student");
String query = "SELECT * FROM db1.students w... |
package com.hendriksen.squashtracker;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import com.hendriksen.listeners.OnFileSave;
import com.hendriksen.model.Swing;
import java.io.File;
import java.io.FileOutputStream;... |
package AlgorithmsHW.HW5;
import java.util.ArrayList;
import java.util.Scanner;
/**
* Created by joetomjob on 4/22/17.
*/
public class Maze {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
//Take the input; d1 = number of rows and d2 = number of columns
Str... |
package com.alfa.work1;
import com.alfa.work2.MyConverter;
import java.util.*;
import java.util.function.Predicate;
public class Runner {
public void run() {
Integer[] arrInt = createArrayInt();
System.out.println(Arrays.toString(arrInt));
//Arrays.sort(arrInt, (a, b) -> b.compareTo(a));... |
package com.rudecrab.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ValidationAndExceptionHandlerApplication {
public static void main(String[] args) {
SpringApplication.run(ValidationAndExc... |
package replicatorg.model.j3d;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Locale;
import javax.media.j3d.Shape3D;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TriangleArray;
import javax.vecmath.Point3d;
import javax.vecmath.Vector3f;
import replicatorg.app.Base;
public ... |
package com.ifeiyang.bijia.entity;
import java.util.ArrayList;
public class Data
{
// 2
int TotalCount;// 9,
ArrayList<Product> LineList;// [
public int getTotalCount()
{
return TotalCount;
}
public void setTotalCount(int totalCount)
{
TotalCount = totalCount;
}
public ArrayList<P... |
package io.github.wickhamwei.wessential.wprotect.eventlistener;
import io.github.wickhamwei.wessential.WEssentialMain;
import io.github.wickhamwei.wessential.wprotect.WProtect;
import io.github.wickhamwei.wessential.wresidence.WResidence;
import io.github.wickhamwei.wessential.wtools.WPlayer;
import org.bukkit.GameMod... |
package com.chalienko.medcard.service;
import com.chalienko.medcard.domain.model.Patient;
import com.chalienko.medcard.domain.repository.PatientRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by Chalienko ... |
package com.technology.share.service;
import com.technology.share.domain.Icon;
public interface IconService extends BaseService<Icon> {
}
|
/*
* SUNSHINE TEAHOUSE PRIVATE LIMITED CONFIDENTIAL
* __________________
*
* [2015] - [2017] Sunshine Teahouse Private Limited
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Sunshine Teahouse Private Limited and its suppliers,
* if any. The inte... |
package com.tencent.mm.plugin.webview.ui.tools.jsapi;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.plugin.webview.ui.tools.jsapi.g.86;
class g$86$2 implements OnClickListener {
final /* synthetic */ 86 qjN;
g$86$2(86 86) {
this.... |
package com.jim.multipos.ui.service_fee_new;
import com.jim.multipos.core.Presenter;
import com.jim.multipos.data.db.model.ServiceFee;
/**
* Created by Portable-Acer on 28.10.2017.
*/
public interface ServiceFeePresenter extends Presenter {
void initDataToServiceFee();
void deleteServiceFee(ServiceFee serv... |
package com.jk.jkproject.ui.widget.recyclerview;
import android.content.Context;
import androidx.core.view.ViewCompat;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.St... |
package by.epam.module1.part2;
import java.util.Scanner;
/*
Найти max{min(a, b), min(c, d)}.
*/
public class BranchingTask2 {
public static void main(String[] args) {
double a;
double b;
double c;
double d;
double result;
a = readDouble("a >> ");
b = readDouble("b >> ");
c = re... |
package com.labforward.frequency.webservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframe... |
package net.trejj.talk.Variables;
/** Created by AwsmCreators * */
public class Variables {
//Setup google play billing details
//public static String licence_key ="playstore public key";
//public static String MERCHANT_ID = "your playstore merchant key";
//Setup google pay(tez) upi payment id for indi... |
package soumyavn.store.SalesTax.catalog;
import java.math.BigDecimal;
public interface Imported {
String DUTY_VALUE="0.05";
BigDecimal DUTY=new BigDecimal(DUTY_VALUE);
BigDecimal calcDuty();
}
|
package edu.progmatic.messageapp.services;
import edu.progmatic.messageapp.dto.CreateMsgDto;
import edu.progmatic.messageapp.dto.MessageRepDTO;
import edu.progmatic.messageapp.exceptions.MessageNotFoundException;
import edu.progmatic.messageapp.modell.Message;
import edu.progmatic.messageapp.modell.Message_;
import ed... |
package com.tencent.mm.app;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.design.a$i;
import com.tencent.mm.g.a.eu;
import com.tencent.mm.plugin.base.stub.WXBizEntryActivity;
import com.tencent.mm.plugin.base.stub.WXCustomSchemeEntryActivity;
import com.t... |
package com.example.neelpatel.demonstration;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
/**
* Created by Neel Patel on 11/25/2017.
*/
public class UserRatingA... |
package com.meihf.mjoyblog.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.test.context.Co... |
package com.tencent.mm.plugin.appbrand.jsapi.f.a;
import com.tencent.mm.plugin.appbrand.compat.a.b.l;
import com.tencent.mm.plugin.appbrand.jsapi.f.a.c.e;
import com.tencent.mm.plugin.appbrand.jsapi.f.a.c.f.a;
class c$7 implements l {
final /* synthetic */ c fTi;
c$7(c cVar) {
this.fTi = cVar;
}
... |
/*******************************************************************************
* Besiege
* by Kyle Dhillon
* Source Code available under a read-only license. Do not copy, modify, or distribute.
******************************************************************************/
package kyle.game.besiege.army;
... |
/*
* 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 ufes.q_03.builder;
import ufes.q_03.composite.CPU;
import ufes.q_03.composite.Computador;
import ufes.q_03.composite.HardDisk;... |
#include<iostream>
using namespace std;
int main()
{
int rows,columns,no;
cin>>rows>>columns>>no;
int s,sl;
s=rows*2;
sl=rows*(columns-1);
if((no>s-3&&no<=s)||(no>sl-3&&no<=sl))
cout<<"It is a mango tree";
else
cout<<"It is not a mango tree";
//Type your code here.
} |
package com.thoughtworks.todo_list.handler;
import com.thoughtworks.todo_list.exception.InvalidIdException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.a... |
package org.hisilicon.plugins.copytoslave.fromzookeeper;
import java.io.IOException;
import java.util.List;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeepe... |
/* *****************************************************************************
* Name: Alan Turing
* Coursera User ID: 123456
* Last modified: 1/1/2019
**************************************************************************** */
public class Huntingtons {
public static int maxRepeats(... |
/*
* Copyright (C) 2015 Miquel Sas
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is dis... |
/**
*
*/
package org.devapriya.shoppingbasket;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
/**
* This class define all the methods related to filling shopping basket
* @author dbherath
*
*/
public class ShoppingBasket {
private ArrayList<Item> bas... |
public class CTest
{
public static void main(String[] args) {
int [] x ={23, 55, 83, 19};
int [] y ={36, 78, 12, 24};
x =y;
y=x;
System.out.println(x);
System.out.println(y);
}
}
|
package view;
import global.StringOps;
import graphana.MainControl;
import graphana.operationsystem.Operation;
import scriptinterface.SignatureInterface;
import view.argumentcomponents.ArgumentComponentManager;
import java.awt.*;
import java.util.LinkedList;
/**
* Handles automatic completion of operati... |
package com.duofei.spi;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.extension.Adaptive;
import org.apache.dubbo.common.extension.SPI;
/**
* 服务接口
* @author duofei
* @date 2020/1/14
*/
@SPI
public interface Robot {
void sayHello();
@Adaptive("key")
void showColor(URL url);
}
|
package com.zingoworks.blackjack.domain;
import org.junit.Test;
import static com.zingoworks.blackjack.domain.Hand.BLACKJACK_NUMBER;
import static com.zingoworks.blackjack.domain.HandType.*;
import static com.zingoworks.blackjack.domain.card.CardTest.*;
import static org.assertj.core.api.Java6Assertions.assertThat;
... |
package lesson3.preIntermediate;
/**
* Created by Angelina on 22.01.2017.
*/
public class Task11 {
public static void main(String[] args) {
Task11 t11 = new Task11();
t11.sequence123check();
}
public void sequence123check(){
System.out.println("Given an array of integer positive ... |
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* 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 License, or (at your option)
* any la... |
package de.lise.terradoc.core.graph;
public class ResourceDependency {
private ResourceNode source;
private StateNode destination;
public ResourceDependency(ResourceNode source, StateNode destination) {
this.source = source;
this.destination = destination;
}
public StateNode getS... |
//This class is responsible for creating objects that are clickable images, with a highlighted version and a result by clicking
import java.awt.*;
import java.awt.image.ImageObserver;
public class clickablePicture extends optionPicture implements ImageObserver {
private Image clickedVersion;
private int width;
... |
package org.tit_admin_dao.core.impl;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import org.tit_admi... |
package uk.ac.ed.inf.aqmaps.visualisation;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.Deque;
import com.mapbox.geojson.FeatureCollection;
import org.locationtech.jts.geom.Coordinate;
import uk.ac.ed.inf.aqmaps.simulation.Sensor;
import uk.ac.ed.inf.a... |
package controller;
import model.Product;
import service.ProductService;
import service.ProductServiceIpl;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
imp... |
package com.ani.interfaces.functional;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Predicate;
public class ShortHandLambas {
public static void main(String[] args) {
List<String> list = new ArrayList<String>(List.of("Animesh", "Ani", "Chikk... |
package Lab02.Zad3;
public class Rifle implements Weapon {
@Override
public void useWeapon() {
System.out.println("Shooting a rifle");
}
}
|
package com.sourceallies.filter;
import static org.junit.Assert.assertSame;
import static org.mockito.Matchers.isA;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletResponse;
import org.junit.Test;
import org.springframe... |
package com.b2i.bookshelfrcp.handlers;
import javax.inject.Named;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.services.IServiceConstants;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.widgets.Shell;
im... |
package com.locadoraveiculosweb.service;
import static com.locadoraveiculosweb.constants.MessageConstants.BusinessMessages.NOME_OBRIGATORIO;
import static com.locadoraveiculosweb.util.messages.MessageUtils.getMessage;
import static java.util.Optional.ofNullable;
import static org.apache.commons.lang3.StringUtils.isBla... |
package com.rc.portal.vo;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.rc.app.framework.webapp.model.BaseModel;
public class RxTOrderExample extends BaseModel{
protected String orderByClause;
... |
package com.project.linkedindatabase.service.types;
import com.project.linkedindatabase.domain.Type.RelationKnowledge;
import com.project.linkedindatabase.service.BaseTypeService;
public interface RelationKnowledgeService extends BaseTypeService<RelationKnowledge> {
}
|
package problemas;
import algoritmos.BusquedaPatrones;
public class DecodingHallway {
private int n;
private String patron;
public DecodingHallway(int n, String patron) {
this.n = n;
this.patron = patron;
}
public boolean posible() {
String s = "";
for ( int i = n; i > 0; i-- ) {
s = s + "L";
f... |
/*
* 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 boundary;
import entity.Pain;
import javax.ejb.Stateless;
import javax.persistence.*;
import java.util.List;
import java.util... |
package com.filiereticsa.arc.augmentepf.models;
/**
* Created by ARC© Team for AugmentEPF project on 07/05/2017.
*/
public enum UserType {
VISITOR,
STUDENT,
TEACHER,
CONTRIBUTOR,
ADMINISTRATOR
}
|
package com.invitation.model;
import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
@Entity
@Getter @Setter
@Table(name = "persons")
public class Person {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer id;
private String name;
@Column(name = "lastName")
... |
package de.jmda.gen.java;
import de.jmda.gen.Generator;
import de.jmda.gen.GeneratorException;
/**
* Generator for extends clause like <code>extends JFrame</code>.
*
* @author ruu.jmda@gmail.com
*/
public interface ExtendsClauseGenerator extends Generator
{
StringBuffer getExtendsClause() throws GeneratorExcepti... |
/*
* 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 com.tripad.cootrack.pojo;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author mfachmirizal
*/
public class ... |
package com.rc.portal.dao;
import java.sql.SQLException;
import java.util.List;
import com.rc.portal.vo.YktGoods;
import com.rc.portal.vo.YktGoodsExample;
public interface YktGoodsDAO {
int countByExample(YktGoodsExample example) throws SQLException;
int deleteByExample(YktGoodsExample example) throws SQLE... |
package com.alonemusk.medicalapp;
public class BaseAddress {
private static String baseurl="http://ec2-13-235-73-199.ap-south-1.compute.amazonaws.com:3000";
private static String user_id="mahendra";
public BaseAddress() {
}
public static String getBaseurl() {
return baseurl;
}
public ... |
package nl.paulzijlmans.creational.abstractfactory;
public class AmexPlatinumCreditCard extends CreditCard {
}
|
package yincheng.gggithub.common.base;
/**
* Mail : luoyincheng@gmail.com
* Date : 2018:05:19 8:33
* Github : yincheng.luo
*/
public class BaseActivity {
}
|
package com.mo.mohttp.anno;
import java.lang.annotation.*;
/**
* 表示是线程安全的.
*/
@Target({ElementType.TYPE,ElementType.FIELD,ElementType.METHOD})
@Retention(RetentionPolicy.CLASS)
@Documented
public @interface ThreadSafe {
}
|
package com.cloudogu.smeagol;
import com.google.common.collect.ImmutableMap;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;
import org.apereo.cas.client.authentication.AttributePrincipal;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.r... |
package com.akikun.leetcode.nowcoder;
import java.util.Scanner;
public class HJ104 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String tail = "00000000";
while (scan.hasNext()) {
int n = Integer.parseInt(scan.nextLine());
int ti... |
package com.spbsu.flamestream.runtime;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.IntConsumer;
public class ConfigureFromEnv {
public static void configureFromEnv(String key, IntConsumer intConsumer) {
if (System.getenv().containsKey(key)) {
intConsum... |
package com.itheima.mobileplayer64.db;
import java.io.File;
import android.os.Environment;
public class LyricsLoader {
private static File root = new File(Environment.getExternalStorageDirectory(),"test/audio/");
/** 从歌曲名查找歌词文件 */
public static File loadLyricFile(String displayName) {
// 根据歌曲名从本地查找.lrc文件
... |
package com.vmware.pa.multiprofile;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springf... |
package send.money.transfer;
import io.micronaut.http.HttpResponse;
import io.micronaut.http.hateos.AbstractResource;
import io.micronaut.http.hateos.Link;
import io.micronaut.http.hateos.Resource;
import io.micronaut.http.hateos.VndError;
import io.micronaut.spring.tx.annotation.Transactional;
import send.money.Resou... |
package br.com.opensig.financeiro.server.cobranca;
import org.jboleto.Banco;
import br.com.opensig.financeiro.shared.modelo.FinConta;
/**
* Classe para recuparar a cobranca de acordo com o banco.
*
* @author Pedro H. Lira
* @since 13/04/2009
* @version 1.0
*/
public class FabricaCobranca {
private static fi... |
package cn.itcast.shop.user.dao;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import cn.itcast.shop.user.vo.User;
/**
* 用户模块持久层代码
* @author Administrator
*
*/
public class UserDao extends HibernateDaoSupport{
//按名称查询是否有用户
public User findByUsername(String usern... |
package com.project.buyeritemservice.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import com.project.buyeritemservice.entity.BillEntity;
public interface BillDao extends JpaRepository<BillEntity,Integer> {
}
|
package com.itheima.core.service;
import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.itheima.core.SpecificationService;
import com.itheima.core.dao.specification.SpecificationCheckDao;
import com.itheima.core.dao.specification.Spec... |
package biz.fesenmeyer;
public class Arrest {
private String location;
private String crimeType;
public Arrest(String location, String crimeType) {
super();
this.location = location;
this.crimeType = crimeType;
}
public String getLocation() {
return location;
}
public String getCrimeType() {
return... |
package com.tencent.mm.plugin.card.sharecard.ui;
import android.content.Intent;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Vibrator;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.