text stringlengths 10 2.72M |
|---|
package com.wp.finki.ukim.mk.catalogware;
import org.slf4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfr... |
package repls04;
import java. util.*;
public class RemoveDublic {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println(uniqueChars(in.next()));
}
public static String uniqueChars(String str) {
//TODO: write your code
String word... |
package com.qd.mystudy.agent;
/**
* Created by liqingdong911 on 2014/10/22.
*/
public class MyDummy {
public void print1(){
System.out.println("print1 5");
}
}
|
package com.apmv1.webservices;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
/**
* Created by Beto on 10/07/2015.
*/
public class InsertActivity extends AppCompatActivity
implements DatePickerFragment.OnDat... |
package sim.ordemcompra;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
public class OrdemCompraDAOHibernate implements OrdemCompraDAO {
private Session session;
@Override
public void emitir(OrdemCompra ordemCompra) {
this.session.save(ordemCompra);
}
... |
package com.sample.school.vo;
import java.util.Date;
public class Course {
private int no;
private String title;
private Dept dept;
private Subject subject;
private Prof prof;
private int studentCount;
private boolean registerable;
private Date registeredDate;
public Course() {
}
public int getNo()... |
package com.smxknife.softmarket;
import com.smxknife.softmarket.util.WeChatUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringB... |
package com.github.jerrysearch.tns.server.summary;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.LinkedBlockingQueue;
import com.github.jerrysearch.tns.protocol.rpc.event.LogEvent;
/**
* 各种数据汇总
*
* @author jerry
*
*/
public class Summary {
/**
* 初始容量100
*/
private final... |
package prj.betfair.api.betting.datatypes;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import prj.betfair.api.betting.datatypes.Order;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
@JsonDeserialize(build... |
public class Lands extends Rentable{
public Lands(String land_name, int cost, boolean is_free, String owner_name, int rent_amount,int location) {
super(land_name,cost,is_free,owner_name,rent_amount,location);
}
public int setRent_amount(int cost) {
if(cost>3000) {
return (cost*35)/100;
}
... |
package tws.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.OkHttp3ClientHttpRequestFactory;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework... |
package com.klj.springtest.extend.algorithms.sorts;
public class QuickSort<T extends Comparable<T>> {
public static <T extends Comparable<T>> T[] sort(T[] unsorted){
quickSort(unsorted, 0, unsorted.length-1);
return unsorted;
}
private static <T extends Comparable<T>> void quickSort... |
package bootcamp.testng;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class DepandsOn {
@BeforeMethod
public void setup() {
System.out.println("bm: depends on");
}
@Test
public void login() {
Syst... |
package com.gsonkeno.hot.kafka;
import org.apache.kafka.clients.producer.ProducerRecord;
/**生产者生产记录(消息)包装器
* Created by gaosong on 2017-05-13.
*/
public class ProducerRecordWrapper {
//ProducerRecord构造器五大要素
private String topicName;
private Integer partition;
private Long timestamp;
private... |
package com.onwardpath.georeach.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.log4j.MDC;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.ht... |
package com.cloudogu.smeagol.repository.infrastructure;
import com.cloudogu.smeagol.ScmHttpClient;
import com.cloudogu.smeagol.repository.domain.Branch;
import com.cloudogu.smeagol.repository.domain.BranchRepository;
import com.cloudogu.smeagol.repository.domain.Name;
import com.cloudogu.smeagol.repository.domain.Repo... |
package euclideanAlgorithm;
public class Application {
public static void main (String[] args) {
new Nwd();
Nwd.evaluate(123422312,32354364);
}
}
|
/**
*
*/
package main;
import java.text.DecimalFormat;
import java.util.GregorianCalendar;
/**
* @author Julian Kuerby
*
*/
@SuppressWarnings("serial")
public class RFC3339Calendar extends GregorianCalendar {
public RFC3339Calendar() {
super();
}
public RFC3339Calendar(int year, int month, int dayOfMon... |
package pl.finsys.mvcRest;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.spr... |
package geh.sort.heap;
import java.util.Arrays;
import junit.framework.TestCase;
public class HeapTest extends TestCase {
Heap<Integer> heap;
@Override
protected void setUp() throws Exception {
}
public void testAddHeap() {
Integer[] arr = new Integer[10];
for (int i = 0; i < 10; i++) {
... |
package com.tencent.mm.plugin.appbrand.launching;
import com.tencent.mm.plugin.appbrand.launching.i.a;
import java.util.Locale;
final class i$a$a {
String gfG;
String gfH;
i$a$a() {
}
final i$a$a m(String str, Object... objArr) {
this.gfG = String.format(Locale.US, str, objArr);
... |
package com.tencent.mm.plugin.appbrand.widget.input;
import com.tencent.mm.plugin.appbrand.jsapi.o.c;
import com.tencent.mm.plugin.appbrand.jsapi.o.c.f;
import com.tencent.mm.sdk.platformtools.x;
class ac$2 implements Runnable {
final /* synthetic */ ac gJf;
ac$2(ac acVar) {
this.gJf = acVar;
}
... |
/*
* 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 tbpane;
import java.math.BigDecimal;
/**
*
* @author edgargarcia
*/
public class empleado {
private String id,nombre,a... |
package com.licyun.model;
import org.hibernate.validator.constraints.NotEmpty;
import javax.persistence.*;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
/**
* Created by 李呈云
* Description:
* 2016/9/27.
*/
@Entity
@Table(name="user")
public class User {
@Id
@G... |
package com.example.wattson.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.wattson.R;
public... |
package Algorithm;
public class a5 {
// 动态规划
// public static String longestPalindrome(String s) {
// if (s.length()<2)return s;
// int len = s.length();
// boolean[][] dp=new boolean[len][len];
// for (int i=0;i<len;i++){
// dp[i][i]=true;
// }
// int max=0;
... |
package VSMFeatureMatrices;
import jeigen.SparseMatrixLil;
public class VSMSparseMatrix extends SparseMatrixLil implements
java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = -4599852225519300490L;
/**
*
* @param rows
* @param cols
*/
public VSMSparseMatrix(int rows, int... |
/*****************************************************************************************
* @project : MissingU 프로젝트 1차
* @title : MissingU 공통변수
* @description : MissingU 서버단에서 사용되는 공통변수
* @author : CSH
* ------------------------------------------------------------
* @history :
*****************************... |
package ca.mohawk.jdw.shifty.companyapi.model;
/*
I, Josh Maione, 000320309 certify that this material is my original work.
No other person's work has been used without due acknowledgement.
I have not made my work available to anyone else.
Module: company-api
Developed By: Josh Maione (000320309)
*/
p... |
package com.cnk.travelogix.sapintegrations.chargeable.itemcharging.data;
import javax.xml.bind.annotation.XmlElement;
public class ChargingOutputContextData
{
@XmlElement(defaultValue = "true")
protected Boolean chargeableItemExported;
/**
* Gets the value of the chargeableItemExported property.
*
* @ret... |
package MultidimensionalArrays;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class MatrixRotation {
public static void main(String[] args) throws IOException {
BufferedReader buffer = new BufferedRead... |
package com.xiaoxiao.search.pojo;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* _ooOoo_
* o8888888o
* 88" . "88
* (| -_- |)
* O\ = /O
* ____/`---'\____
* .' \\| |// `.
* / \\||| : |||// \
* / _||||| -:-... |
package com.wonders.task.htxx.dao.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;
import com.wonders.task.htxx.dao.DwContractAssignStatsDao;
import com.wonders.task.htxx.model.bo.DwContractA... |
package com.tencent.mm.ui.contact;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.bg.d;
import com.tencent.mm.sdk.platformtools.x;
class k$4 implements OnClickListener {
final /* synthetic */ k ujC;
k$4(k kVar) {
this.ujC = kVa... |
package com.tt.miniapp.navigate2;
import android.text.TextUtils;
import com.tt.miniapphost.entity.AppInfoEntity;
import com.tt.miniapphost.util.JsonBuilder;
import org.json.JSONObject;
public class Nav2Util {
private static JSONObject buildReferer(AppInfoEntity paramAppInfoEntity) {
String str;
if... |
package eg.ipvii.fotp.items;
import com.teamwizardry.librarianlib.features.base.item.ItemMod;
import eg.ipvii.fotp.FotPMod;
import net.minecraft.item.ItemStack;
public class ItemMortarandPestle extends ItemMod {
protected String name;
public ItemMortarandPestle(String name) {
super(name);
th... |
package xframe.example.pattern.observer;
public class Main {
public static void main(String[] args) {
Observable subject = new ContreteObservable();
Observer observer1 = new ContreteObserver();
Observer observer2 = new ContreteObserver();
Observer observer3 = new ContreteObserver();
subject.ad... |
package WorldMPowered;
public class SchoolInterface {
public static void main(String[] args) {
}
}
|
package com.ysyt.bean;
import java.io.Serializable;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persist... |
package com.mundo.core.util;
import org.junit.Test;
/**
* JsonUtilTest
*
* @author maodh
* @since 2018/1/6
*/
public class JsonUtilTest {
@Test
public void toMap() {
System.out.println(JsonUtil.toMap("{\"key\":\"value\"}").getClass());
}
@Test
public void toList() {
System.o... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package polarpelican.graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
/**
*
* @author parker
*/
public class C... |
import java.util.TreeMap;
public class replacemap {
public static void main(String[] args) {
TreeMap<String, Integer> mt = new TreeMap<String, Integer>();
mt.put("b",04);
mt.put("i",14);
mt.put("n",24);
mt.put("d",34);
mt.put("u",44);
mt.replace("u",54);
... |
package com.pro.mongo.service.impl;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.bson.types.ObjectId;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.core.MongoTemplat... |
public class POOBase2
{
public static void main( String[] args )
{
// L'objectif :
// Créer un tableau 't' de 5 personnes
// Trier ce tableau par codePostal
// déclaration : TYPE_VARIABLE NOM_VARIABLE
// TYPE_VARIABLE : tableau de Personne: Personne[]
// Personne[] t = new Personne[5];
// t[0] = new P... |
package com.muaki.muakibooks;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Environm... |
//Problem:543. Diameter of Binary Tree
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
int max = 0;
public int diameterOfBinaryTree(TreeNode root) {
if(root ==... |
package blockchain.block;
import blockchain.block.data_points.InsufficientFundsException;
import blockchain.block.data_points.StorageContract;
import blockchain.block.data_points.TokenTransaction;
import blockchain.block.mining.BlockBuilder;
import blockchain.ledger_file.ChainAnalyzer;
import blockchain.ledger_file.Le... |
package com.test;
import android.app.Activity;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
public class MySQLLite2 extends Activity {
public void onCreate(Bundle savedInstanceState) {
supe... |
module randomshuffling {
} |
package br.com.unialfa.ia.core.heuristic.impl;
import br.com.unialfa.ia.core.heuristic.IBuscaCega;
import br.com.unialfa.ia.core.model.Grafo;
import br.com.unialfa.ia.core.model.Vertice;
public class BuscaEmLargura implements IBuscaCega {
@Override
public Grafo processarGrafo(Grafo grafo, Vertice origem) {
// TO... |
package com.socialbooks.jra.repository;
import com.socialbooks.jra.domain.Autor;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AutoresRepository extends JpaRepository<Autor, Long> {
Long existsAutorsByLivros_Autor_Id (long id);
boolean existsByLivros_AutorId(long id);
}
|
package com.github.arsentiy67.usereditor.userdetails;
import java.util.Collection;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
public class UserDetailsExt extends User {
private static final long serialVersionUID = -8315535273249007840L;
p... |
package io.beaniejoy.bootapiserver.service;
import io.beaniejoy.bootapiserver.model.Movie;
import io.beaniejoy.bootapiserver.repository.MovieRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
@Service
@RequiredArgsConstructor
public class MovieService {
private fina... |
/*
* YNAB API Endpoints
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
*
* OpenAPI s... |
package com.simha.SpringJPADemoForQueryResults;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
class Employees {
private int id;
public int getId() {
return id;
}
public String getName() {
return name;
}
public String getAddress() {
return address;
}
public void setId(... |
package me.brunosantana.notes.filesystem;
import java.nio.file.Files;
import java.nio.file.Paths;
public class FileSystemHandler {
public boolean checkIfFileExists(String path) {
return Files.exists(Paths.get(path));
}
}
|
package com.mango.leo.zsproject.industrialservice.createrequirements.carditems;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.text.Editable;
import android.text.TextUtils;
import android.text.Te... |
package com.example.shopping.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode;
import org.springframework.da... |
/*
* Copyright (c) 2019 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.core;
import static net.snowflake.client.core.SFException.errorResourceBundleManager;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
import ... |
package com.jvmless.threecardgame.domain.player;
public interface PlayerRepository {
Player find(PlayerId playerId);
void save(Player player);
long countAll();
}
|
package yand.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yand.mapper.EmailMapper;
import yand.service.EmailService;
/**
*
* @author YanD
* 邮件处理逻辑
*/
@Service
public class EmailSer... |
// Leetcode problem number: 230. Kth Smallest Element in a BST
// Idea: Inorder traversal
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
public class kBST {
public void doInorderTrav... |
package program1;
/**
*Provides properties and methods for the PresidentMDrvr class
*
*/
public class PresidentMDrvr
{
private Presidents[] myPresidents; //reference to array
private int numPresidents; // number of data items
/**
* Creates an object instance of the PresidentMDrvr... |
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... |
package de.madjosz.adventofcode.y2016;
import static org.junit.jupiter.api.Assertions.assertEquals;
import de.madjosz.adventofcode.AdventOfCodeUtil;
import java.util.List;
import org.junit.jupiter.api.Test;
class Day12Test {
@Test
void day12() {
List<String> lines = AdventOfCodeUtil.readLines(2016,... |
import collect.UserDataGather;
import utils.DbUtil;
import java.sql.Connection;
/**
* Created by lrkin on 2016/11/15.
*/
public class ExecuteUserInfoSpider {
public static void main(String[] args) throws Exception {
// int start = 0, count = 1, j = 6;
// for (int i = 0; i < j; i++) {
//
// ... |
package com.mydemo.webtest.specs;
import com.microsoft.playwright.*;
import com.mydemo.webtest.browser.BrowserConfig;
import com.mydemo.webtest.browser.BrowserManager;
import com.mydemo.webtest.pages.LoginPage;
import com.mydemo.webtest.pages.SignUpPage;
import com.mydemo.webtest.testng.BaseTest;
import org.apache.log... |
package rabbitmq.entity;
/**
*
* @描述: MQ消息队列唯一标识配置
* @版权: Copyright (c) 2019
* @公司: 思迪科技
* @作者: 严磊
* @版本: 1.0
* @创建日期: 2019年7月29日
* @创建时间: 下午2:50:39
*/
public class QueueContants {
/**
* 消息队列
*/
public final static String actQueueName = "act_queue_name";
}
|
/*
* Copyright (C) 2023 Hedera Hashgraph, 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 la... |
package br.com.nozinho.ejb.service.impl;
import java.util.List;
import javax.ejb.Stateless;
import br.com.nozinho.dao.PermissaoDAO;
import br.com.nozinho.ejb.service.PermissaoService;
import br.com.nozinho.model.Permissao;
@Stateless
public class PermissaoServiceImpl extends GenericServiceImpl<Permissao, Long> impl... |
package com.lnjecit.jms.constants;
/**
* @author lnj
* @description 常量
* @date 2019-01-03 15:04
**/
public interface ActiveMQConstants {
String BROKER_URL = "tcp://192.168.8.131:61616";
String AUTHOR_QUEUE = "author-queue";
String NEWS_TOPIC = "news-topic";
}
|
package com.mideas.rpg.v2.hud;
import com.mideas.rpg.v2.Mideas;
import com.mideas.rpg.v2.game.spell.SpellManager;
public class SpellLevel {
private static boolean spell1;
private static boolean spell3;
private static boolean spell7;
private static boolean spell10;
private static boolean spell15;
... |
package com.IRCTradingDataGenerator.tradingDataGenerator.Controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
impo... |
package com.jiuzhe.app.hotel.service;
import com.jiuzhe.app.hotel.entity.HotelRegion;
import java.util.List;
public interface RegionService {
/**
* @Description:获取所有的城市
*/
List<HotelRegion> getAllRegion();
}
|
package com.yuecheng.yue.ui.bean;
import java.util.List;
/**
* Created by yuecheng on 2017/11/12.
*/
public class YUE_FriendsListBean {
int resulecode;
List<YUE_FriendsBean> value;
public int getResulecode() {
return resulecode;
}
public void setResulecode(int resulecode) {
th... |
package com.example.bgmmixer.model;
import com.example.bgmmixer.dtos.StageDto;
import javax.persistence.*;
@Entity
public class Stage {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
private String name;
private double startTime;
private double endTime;
@ManyToOne... |
package Hero;
import java.awt.*;
import java.util.Scanner;
import org.apache.log4j.Logger;
public class Main {
public int winner;
public Main(){
winner=0;
}
public void PrintInfo(){
System.out.println("ヒーロー:\n A-B-C-D-E-F-G-H-I-J");
System.out.println("Hero-A:Abdi, Her... |
package com.espendwise.tools.gencode.tasks;
import org.apache.tools.ant.AntClassLoader;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.types.Environment;
import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.types.PropertySet;
import org.hiber... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.01.... |
package com.csmugene.gridpagerview.listener;
import android.view.ViewGroup;
import com.csmugene.gridpagerview.adapter.AdapterViewHolder;
import java.util.List;
/**
* Created by ichungseob on 2018. 8. 20..
*/
public interface OnBinderViewHolderListener {
void onBindViewHolder(AdapterViewHolder holder, int pos... |
/*
* 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 PRO1041.FORM;
import java.awt.Image;
import java.io.File;
import java.sql.Connection;
import java.sql.DriverManager;
import ja... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
package com.takshine.wxcrm.service;
import com.takshine.wxcrm.base.services.EntityService;
/**
* 文章信息
*
* @author liulin
*
*/
public interface ArticleInfoService extends EntityService {
}
|
package symcryptolab1;
import java.util.*;
public class FrequencyCounter {
public static Map<String, Integer> count(String text, int nGramLength, boolean identityStep) {
Map<String, Integer> freqs = new TreeMap<>();
int step = identityStep ? 1 : nGramLength;
int limit = text.length() - nG... |
package com.bluesky.admin.api.modules.sys.service;
import com.bluesky.admin.api.modules.sys.vo.AdminRoleVO;
import com.bluesky.admin.api.modules.sys.vo.req.AddRoleWithMenusReq;
import com.bluesky.admin.api.modules.sys.vo.req.AdminRoleRetrieveReq;
import com.bluesky.admin.api.modules.sys.vo.req.ModifyRoleWithMenusReq;
... |
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;
/**
* * 数组的相对排序
*
* <p>给你两个数组,arr1 和 arr2,
*
* <p>arr2 中的元素各不相同 arr2 中的每个元素都出现在 arr1 中 对 arr1 中的元素进行排序,使 arr1
* 中项的相对顺序和 arr2 中的相对顺序相同。未在 arr2 中出现过的元素需要按照升序放在 arr1 的末尾。
*
... |
package com.estrelladelsur.connectionmanager;
public class ConnectionManager {
}
|
package jie.android.ip.screen.play;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import aurelienribon.tweenengine.Timeline;
import aurelienribon.tweenengine.Tween;
import aurelienribon.tweenengine.TweenCallback;
import aurelienribon.tweenengine.TweenManager;
import jie.android.ip.CommonConsts.PackConfig;
import... |
package com.vikastadge.hibernate.annotations;
import com.vikastadge.hibernate.annotations.dao.entity.PersonEntity;
import com.vikastadge.hibernate.annotations.service.PersonService;
public class HibernatePrimaryKeyGenerationStrategy {
public static void main( String[] args ) {
PersonEntity personEntity = ... |
package ap.cayenne.learning.functions;
import ap.cayenne.learning.listeners.MyLifecycleListener;
import org.apache.cayenne.ObjectContext;
import org.apache.cayenne.Persistent;
import org.apache.cayenne.configuration.server.ServerRuntime;
import org.apache.cayenne.query.SelectById;
import org.example.cayenne.persistent... |
package mop.test.java.database.model;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import mop.main.java.database.model.queryable.Episode;
public class EpisodeTest {
@Test
public void testEpisodeId() {
Episode sut = new Episode();
sut.setEpisodeId(7);
assertEqu... |
package fr.lteconsulting.servlet.action;
import java.io.IOException;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import fr.lteconsulting.DonneesScope;
import fr.lt... |
package leecode.dfs;
import java.util.LinkedList;
import java.util.Queue;
//对比lee695
public class 岛屿数量_200 {
int[][]dirs=new int[][]{{1,0},{0,1},{0,-1},{-1,0}};//并查集只需要走右,走下 方向 即{1,0},{0,1}
public int numsIslands(char[][]grid){
boolean[][]visit=new boolean[grid.length][grid[0].length];
int ans... |
package com.DeGuzmanFamilyAPI.DeGuzmanFamilyAPIBackend.app_controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annota... |
package com.example.eclaros.miaplicacion1;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* ErpDrawingidId generated by hbm2java
*/
public class ErpDrawingidId implements java.io.Serializable {
private String mc;
private String bh;
private String version;
public ErpDrawingidId() {
}
public ErpDrawingidId(... |
package chapter_1_14_Threads;
import java.util.concurrent.atomic.AtomicLong;
public class Atomic {
/**
* @param args
* @throws InterruptedException
*/
public static void main(String[] args) throws InterruptedException {
// TODO Auto-generated method stub
AtomicLong al1 = new AtomicLong(0);
... |
package data;
import business.BusinessADBean;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
/**
* Created by wierz on 2016/4/21.
*/
public class BusinessAdDAO {
/** 从数据库中获取业务信息 */
public static ArrayList<B... |
package com.kareo.ui.codingcapture.implementation.request;
import com.kareo.ui.codingcapture.implementation.data.CustomerTask;
import com.kareo.ui.codingcapture.implementation.data.Encounter;
/**
* Created by deepalik on 06/10/15.
*/
public class TaskCreationRequest {
Encounter encounter;
CustomerTask cust... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.