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 projects.wsn1.nodes.timers;
import projects.wsn1.nodes.messages.WsnMsg;
import projects.wsn1.nodes.nodeImplementations.SimpleN... |
package presentation;
import business.implementation.ReviewManagement;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.SwingUtilities;
import java.sql.SQLException;
public class TableExample extends JFrame {
public TableExample() throws SQLException {
... |
//package com.k2data.k2app.log4j;
//
//import org.apache.logging.log4j.core.LogEvent;
//import org.apache.logging.log4j.core.config.plugins.Plugin;
//import org.apache.logging.log4j.core.pattern.ConverterKeys;
//import org.apache.logging.log4j.core.pattern.LogEventPatternConverter;
//
///**
// * 自定义 log4j2 输出
// *
// *... |
package uk.ac.ebi.intact.view.webapp.it;
import org.junit.Test;
import org.openqa.selenium.By;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class GoBrowserIT extends IntactViewIT {
@Test
public void filterByGoAfterSe... |
package com.jh.share.service;
import java.util.Collection;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.jh.share.model.Analysis;
public interface AnalysisService {
Collection<Analysis> findAll();
Analysis findOne(Long id);
Analysis create(Analysis an... |
package com.soa.ws;
import javax.jws.WebService;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@WebService(endpointInterface = "com.soa.ws.Analyzer")
public class AnalyzerImpl implements Analyzer {
@Override
public Info analyze(String s) {
Info info = new Info();
info.setCap... |
package slimeknights.tconstruct.tools.modifiers;
import net.minecraft.nbt.NBTTagCompound;
import slimeknights.tconstruct.library.modifiers.ModifierAspect;
import slimeknights.tconstruct.library.tools.ToolNBT;
import slimeknights.tconstruct.library.utils.HarvestLevels;
import slimeknights.tconstruct.library.utils.TagU... |
package com.example.androidquizapp;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.Toast;
import com.google.android.gms.tasks.OnCompleteListener;
import com.googl... |
public class OfxReader {
public static void main(String[] args) {
String path = "/home/rodrigovidal/Documentos/materiais_de_estudo/extrato.ofx";
try {
InputStream entrada = new FileInputStream(path);
new OfxReader().lerOfx(entrada);
} catch (FileNotFoundException e) ... |
package com.clicky.semarnat;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.MenuItem;
import android.widget.TextView;
import com.clicky.semarnat.data.Documentos;
import com.clicky.semarnat.data.MateriaPr... |
package org.eson.ble_sdk.control;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCallback;
import android.bluetooth.BluetoothProfile;
import android.content.Context;
import android.text.TextUtils;
impor... |
public class Ch8_10 {
//forms LinkedList
static class LinkedList{
int value;
LinkedList next;
LinkedList(int value, LinkedList next){
this.value = value;
this.next = next;
}
}
//shifts a list to the right by amount "shift" - takes O(n) time and O(1) space complexity
static LinkedList cyclicRight... |
package filamentengine.content;
import java.util.LinkedList;
import java.util.List;
import nu.xom.Element;
import nu.xom.Elements;
import org.lwjgl.util.vector.Vector3f;
import filamentengine.io.xml.XMLIOHelper;
import filamentengine.io.xml.XMLSerializeable;
public abstract class EntityModel implements XMLSerializ... |
package Strategy;
public class SalePrice implements PriceStrategy {
public void calculatePrice(Integer price) {
System.out.println(price * 0.5);
}
}
|
package com.ywd.blog.entity;
import java.util.Date;
public class TimeLun {
private Integer id;
private String context;
private Date saydate;
private String picture;
private Integer syear;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getContext()... |
package com.edasaki.rpg.treegens;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.google.common.collect.Lists;
import net.minecraft.server.v1_10_R1.Block;
import net.minecraft.server.v1_10_R1.BlockLeaves;
import net.minecraft.server.v1_10_R1.BlockLogAbstract;
import net.minecra... |
package function_support;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import extras.ErrorTypeEnum;
import extras.MerchantsException;
/**
* @author Aderick
*
* Responsible for reading a file.
*/
publi... |
public class Chess {
public static void queens(int[] board, int index) {
if(index == board.length) {
if(check(board))
dump(board);
} else {
for(int i = 0; i < 8; i++) {
board[index] = i;
queens(board, index + 1);
}
... |
/*---------------------------------------------------------------------
*
* Copyright 2011 TransUnion LLC. All Rights Reserved.
*
* No part of this work may be reproduced or distributed in any form or by any
* means, electronic or otherwise, now known or hereafter developed, including,
* but not limited t... |
package com.raymon.api.demo.threadcoreknowledgedemo.stopthread.volatiledemo;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
/**
* @author :Raymon
* @date :Created in 2020/1/8
* @description: 用中断来修复刚才无尽等待的问题
*/
public class WrongWayVolatileFixed {
public static void... |
package ProductosAgotados;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import Conexion.Conectar;
public class ProductosAgotados {
JTextField hola = null;
Conectar conex = new Conectar();
java.sql.Connection con = conex.conexion(hola);
j... |
package com.mahang.weather.common;
import android.content.Context;
/**
* Created by Justwen on 2018/2/4.
*/
public class ApplicationContextHolder {
private static Context sContext;
public static Context getContext() {
return sContext;
}
public static void setContext(Context context) {
... |
package com.niksoftware.snapseed.controllers;
import android.view.View;
import com.niksoftware.snapseed.controllers.adapters.StaticStyleItemListAdapter;
import com.niksoftware.snapseed.core.NativeCore;
import com.niksoftware.snapseed.core.filterparameters.FilterParameter;
import com.niksoftware.snapseed.util.TrackerD... |
package br.assembleia.service.impl;
import br.assembleia.dao.DepartamentoDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import br.assembleia.entidades.Departamento;
import br.assembleia... |
/*
* 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 implement;
import Entity.data_pengajar;
import Error.data_pengajarException;
import Service.data_pengajarDao;
import... |
package com.esum.wp.ebms.reload.struts.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONObject;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.Action... |
/**
* MIT License
* <p>
* Copyright (c) 2019-2022 nerve.network
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to... |
package com.liao.controller;
import com.liao.pojo.User;
import com.liao.server.User2Server;
import com.liao.server.impl.User2SerperImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.util.... |
package ru.otus.sua.L12.webserver;
import lombok.extern.slf4j.Slf4j;
import org.eclipse.jetty.servlet.DefaultServlet;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.eclipse.jetty.util.resource.Resource;
import java.net.MalformedURLException;
import j... |
package com.example.peterscheelke.mtgcollectionmanager.DatabaseManagement;
import android.support.annotation.NonNull;
import com.example.peterscheelke.mtgcollectionmanager.Cards.Card;
import java.util.ArrayList;
import java.util.List;
// Used to create complicated search queries
class QueryBuilder {
// Table na... |
package uiElements.combinedElement;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import lang.Text;
import ui.selectImages.SelectImagesPanel;
import ui.selectImages.event.EventRemoveIma... |
package com.appirio.service.member.resources;
import com.appirio.service.member.api.MemberSearch;
import com.appirio.service.member.manager.MemberSearchManager;
import com.appirio.supply.ErrorHandler;
import com.appirio.supply.dataaccess.QueryResult;
import com.appirio.tech.core.api.v3.request.QueryParameter;
import c... |
package com.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.a... |
package org.jboss.devcon;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.infinispan.client.hotrod.impl.transport.TransportFactory;
import org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory;
/**
* TcpTransportFactory that... |
package com.zju.courier.service.impl;
import com.zju.courier.dao.ApInfoDao;
import com.zju.courier.dao.LoadDao;
import com.zju.courier.pojo.LoadForMap;
import com.zju.courier.service.APLoadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import jav... |
import java.io.*;
import java.util.stream.*;
public class OpenTest {
public static void main(String[] args) {
// file path
String spath = "D:\\Text1.dat";
FileReader fread = null;
BufferedReader txtReader = null;
try {
String sCurrentline;
fread = new FileReader(spath);
txtReader = ... |
package com.ai_traders.examples.jersey_spring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.inject.Singleton;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util... |
package com.lab1;
import java.util.Scanner;
public class Lab1Bai3 {
public static void main(String[] args) {
int a;
int b;
int c;
Scanner scanner = new Scanner(System.in);
System.out.println("Nhap canh a: ");
a = scanner.nextInt();
System.out.println("Nhap canh b: ");
b = scanner.nextInt(... |
package com.zs.common.cmd;
import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
public class StreamGobbler extends Thread {
InputStream is;
String type;
MsgListener msgListener;
StreamGobbler(InputStream is... |
package app.com.thetechnocafe.eventos.Utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by gurleensethi on 21/11/16.
*/
public class SharedPreferencesUtils {
private static final String SHARED_PREFERENCES_FILE = "preferences";
private static final String SHARED_... |
package com.zhj.xmpp;
import android.content.ContentValues;
import android.database.Cursor;
import android.test.AndroidTestCase;
import com.zhj.xmpp.DB.SmsOpenHelper;
import com.zhj.xmpp.provider.SmsProvider;
/*
* @创建者 Administrator
* @创建时间 2015/9/1 11:00
* @描述 ${TODO}
*
* @更新者 $Author$
* @更新时... |
package tags;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.io.*;
import java.sql.*;
public class SaveTagHandler extends SimpleTagSupport{
private String fname;
private String lname;
private String uname;
public void setFname(String fname){
this.fname = fname;
}
public void setL... |
/*
* (C) Copyright IBM Corp. 2020.
*
* 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 w... |
package com.metoo.view.web.tools;
import java.util.List;
import java.util.Map;
import org.nutz.json.Json;
import org.nutz.json.JsonFormat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.metoo.core.tools.CommUtil;
import com.metoo.... |
package util;
import dao.GameDao;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import model.Game;
@FacesConverter(forClass = Game.class)
public class GameConversor implements Converter {
@Overri... |
package test.ts;
public class ts_002 {
}
|
package gui;
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.layout.*;
import javafx.scene.text.Font;
import javafx.scene.control.*;
import javafx.geometry.*;
/**
* Window with text and buttons containing a message.
*
* @author Lykke Levin
* @version 1.0
*
*/
public class ConfirmBox {
pub... |
package be.openclinic.adt;
import be.openclinic.common.OC_Object;
import net.admin.AdminPerson;
import java.util.Date;
/**
* User: Frank Verbeke
* Date: 10-sep-2006
* Time: 21:32:46
*/
public class Diagnosis extends OC_Object{
private Encounter encounter;
private String code;
private AdminPerson auth... |
package cn.okay.page.okaymall.loginbefore;
import cn.okay.page.officialwebsite.OffciaHomePage;
import cn.okay.page.okaymall.partsmoudle.PartsClassificationPage;
import cn.okay.page.okaymall.shopmoudle.MyOrderPage;
import cn.okay.page.okaymall.shopmoudle.ShopCarPage;
import cn.okay.testbase.AbstractPage;
import cn.okay... |
package fr.cea.nabla.interpreter.nodes.expression.constant;
import com.oracle.truffle.api.dsl.Cached;
import com.oracle.truffle.api.dsl.NodeChild;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.ExplodeLoop;
import fr.cea.nabla.in... |
package com.vitaltech.bioink;
import android.content.Context;
import android.opengl.GLSurfaceView;
import android.util.AttributeSet;
public class Menu extends GLSurfaceView {
public Menu(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
public Menu(Context context, AttributeSet att... |
package com.utils.streamjava7.collection;
import java.util.Iterator;
import java.util.List;
public interface Pipeline<T> extends Iterable<T> {
void add(T elem);
void addAll(Pipeline<T> that);
T head();
Pipeline<T> tail();
Pipeline<T> merge(final Pipeline<T> that);
T[] pipeline();
Boo... |
import java.util.Scanner;
public class TruongPhong extends NhanVien{
Scanner scanner = new Scanner(System.in);
public double luongTrachNhiem;
public double getLuongTrachNhiem() {
return luongTrachNhiem;
}
public void setLuongTrachNhiem(double luongTrachNhiem) {
this.luongTrachNhiem = luongTrachNhiem;
}
p... |
package mcls;
import single.SingletonClass;
public class MyClass {
private int number;
public MyClass() {
number =12;
}
/*
* public int getNumber() { return number; }
*/
public void method() {
SingletonClass sc = SingletonClass.getInstance();
this.number = sc.snumber ;
}
}
|
package com.Hackerrank.algos.sorting;
import java.util.Scanner;
public class CountingSort3 {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner sc=new Scanner(System.in);
int[] ... |
package training.security;
public interface SecureEntity {
public boolean isDeletable();
public void setDeletable(boolean deletable);
}
|
package hwarang.artg.funding.service;
import java.util.List;
import hwarang.artg.funding.model.OrderVO;
public interface FundingOrderService {
public OrderVO select(int order_seq_num);
public int insertOrder(OrderVO order);
public List<OrderVO> selectAll(String member_id);
}
|
package ouyang.model;
import android.database.Cursor;
import android.provider.BaseColumns;
import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
import java.io.Serializable;
/**
* Created by zuxiang on 2015/2/8.
*/
@Table(name = "foods")
public clas... |
package com.trump.auction.pals.domain;
import lombok.Data;
import java.util.Date;
@Data
public class ThirdPartyAsk {
private Integer id;
private String userId;
private Integer assetOrderId;
private String orderType;
private String orderNo;
private String act;
private String reqParams;
private String returnPa... |
/*
* Faça uma função que copie o conteúdo de um vetor em um segundo vetor.
*/
package AP22_05_vetor;
import static AP22_05_vetor.ExemploVetor.input;
import java.util.Scanner;
/**
*
* @author rodrigo.rsantos17
*/
public class Exercicio1 {
static Scanner input = new Scanner (System.in);
... |
package io.github.cottonmc.libcd.api.tweaker;
import net.minecraft.class_1799;
import net.minecraft.class_2960;
/**
* Some ItemStacks, like vanilla potions, have entirely different functions and names based on NBT.
* Because of that, it's hard to use those stacks in recipes.
* CottonTweaker uses a "[getter id]->[e... |
package com.example.bookspace;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActi... |
package gov.nih.mipav.view.renderer.J3D.model.file;
import gov.nih.mipav.view.renderer.J3D.model.structures.*;
import gov.nih.mipav.model.file.*;
import javax.media.j3d.*;
import javax.vecmath.*;
/**
* This structure contains the information that describes how an XML surface (see surface.xsd and FileSurfaceXML.jav... |
package saPosla;
public class UrlConfig {
public static final String GMAIL = "http:/gmail.com";
public static String FACEBOOK = "https://www.facebook.com/";
}
|
package friend.group.bank.obj;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class FgbApplicationTests {
@Test
void contextLoads() {
}
}
|
package com.masters.security;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
public class SecurityUtils {
public SecurityUtils() {
}
//TODO NEED TO ADD ALR... |
package ffm.slc.model.enums;
/**
* Previous definition of Ethnicity combining Hispanic/Latino and Race.
*/
public enum OldEthnicityType {
AMERICAN_INDIAN_OR_ALASKAN_NATIVE("American Indian Or Alaskan Native"),
ASIAN_OR_PACIFIC_ISLANDER("Asian Or Pacific Islander"),
BLACK_NOT_OF_HISPANIC_ORIGIN("Black, Not Of Hisp... |
package class1;
public class VD1 {
public static void main(String[] args) {
int a = 5;
int b = 7;
int c= a + b;
System.out.println("Tong:" +c);
}
}
|
package se.erik.lexicon.intra.enums;
import com.fasterxml.jackson.annotation.JsonGetter;
public enum DecisionType {
APL("apl"),FUB("fub"),EDUCATION("education"),NONE("none");
private String name;
private DecisionType(String name) {
this.name = name;
}
@Override
public String toString() {... |
package com.sb.movietvdl;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Environment;
import androidx.appcompat.app.AppCompatDelegate;
import com.sb.movietvdl.Utils.LogUtil;
import com.sb.movietvdl.Utils.StaticResource;
import ... |
package com.example.demo.controller;
import com.example.demo.model.Todo;
import com.example.demo.service.TodoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Date;
import java.util.List;
@RestController
@RequestMapping("/v1/tod... |
package com.graph;
/*
* 用于图中两个节点之间添加连接(包含了稀疏图和稠密图)
*/
public interface Graph {
public void addEdge(int v, int w);
public void show();
public int getN();
public GraphIterator getIterator(int v);
}
|
package wawi.fachlogik.sachbearbeitersteuerung.bestellungsverwaltung.service;
import java.util.ArrayList;
import java.util.List;
import wawi.fachlogik.sachbearbeitersteuerung.grenzklassen.BestellungGrenz;
import wawi.fachlogik.sachbearbeitersteuerung.grenzklassen.ProduktGrenz;
/**
*
* @author Christian
*/
public i... |
package com.TPFinal.Model;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
@Entity
public class OrdenDeTrabajo {
@Id
@Generated... |
package com.utils.file;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.poi.hssf.usermodel.HSSFCell;... |
package com.cn.ouyjs.thread.lock.productAndCustomer;
import org.apache.commons.collections4.CollectionUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
/**
* @author ouyjs
* @date 2019/8/9 10:39
*
* 注意事项:
* Co... |
package com.hwj.dao;
import com.hwj.entity.FileShare;
import com.hwj.service.IBaseService;
public interface IFileShareDao extends IBaseService<FileShare> {
}
|
package com.yuan.iliya.crud.dao.impl;
import com.yuan.iliya.crud.dao.Dao;
import com.yuan.iliya.crud.entity.Customer;
import com.yuan.iliya.crud.utils.JDBCUtils;
import java.io.Serializable;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import ja... |
package io.tourist.token.writer;
import io.tourist.token.model.TokenCounterNode;
import io.tourist.token.serializer.TokenCounterNodeSerializer;
/**
* The console token counter node writer class.
*/
public final class ConsoleTokenCounterNodeWriter implements TokenCounterNodeWriter {
/** The serializer. */
private... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.exporter.internal.grpc;
import io.grpc.ManagedChannel;
import io.opentelemetry.exporter.internal.marshal.Marshaler;
import java.net.URI;
import java.util.function.Function;
import java.util.function.Supplier;... |
package org.apache.bookkeeper.stats;
import com.twitter.common.stats.Stats;
import java.net.InetSocketAddress;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.logging.Level;
import java.util.logging.Logger;
/... |
package cz.jiripinkas.jba.service;
import java.util.Date;
import java.util.List;
import javax.transaction.Transactional;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort.Direc... |
package com.example.qunxin.erp.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import com.example.qunxin.erp.R;
/**
* Created by qunxin on 2019/8/... |
package alien4cloud.tosca.normative;
/**
* @author Minh Khang VU
*/
public interface Unit {
double getMultiplier();
}
|
package com.tzl.controller;
import com.tzl.client.PersonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestCon... |
/*
* This file is part of BlueMap, licensed under the MIT License (MIT).
*
* Copyright (c) Blue (Lukas Rieger) <https://bluecolored.de>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
package ProjectManagement;
public class Job implements Comparable<Job>,JobReport_{
private String name;
private String projectname;
private String username;
private Project project;
private User user;
private String jobstatus;
private int runtime;
private int createtime;
private int arrivaltime;
private... |
package dao;
import org.apache.log4j.Logger;
public class Log {
private static Logger log;
public Log() {
// TODO Auto-generated constructor stub
log = Logger.getLogger(Log.class);
}
public void setInfo(String message){
log.info(message);
}
public void setError(String message){
... |
package Game;
public class Deck{
private Card [] cards = new Card [53];
private int counter;
public Card [] getCards(){
return cards;
}
public int getBrojac(){
return counter;
}
public Deck() {
for ( int i = 0; i < 53; i++) {
cards[i] = new Card(i);
}
mixingCards();
}
public String toS... |
import java.lang.reflect.Array;
import java.util.Arrays;
public class Pila {
private Integer pila[] = new Integer[500];
private Integer posicionPila = 0;
Pila() {
posicionPila = 0;
}
public void popPila() {
if (pila[0]==null) {
Leer.mostrarEnPantalla("La pila esta vacia");
} else {
posicionPila--;
... |
package kodlama.io.hrms.core.utilities.adapters;
import org.springframework.stereotype.Service;
import kodlama.io.hrms.mernis.FakeMernis;
@Service
public class MernisServiceAdapter implements ValidationService {
@Override
public boolean userValidate(long nationalId, String firstName, String lastName, int birthDat... |
package com.uchain.uvm.program.listener;
public interface ProgramListenerAware {
void setProgramListener(ProgramListener listener);
}
|
package com.javatechie.springcloud.function.api;
import java.util.function.Function;
public class Test implements Function<String, String> {
@Override
public String apply(String t){
return "Serverless functional programming : example by";
}
}
|
package code.service;
import code.dao.TestDao;
import code.dao.TestRepository;
import code.util.SqlUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.uti... |
package gov.polisen.orm.models;
public class PermissionsOnCaseKey {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column permissions_on_cases.device_id
*
* @mbggenerated Fri Apr 25 17:12:46 CEST 2014
*/
private Integer deviceId;
/**
... |
package com.vopt.fleetapp.repositories;
import com.vopt.fleetapp.models.Contact;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ContactRepository extends JpaRepository<Contact,Integer> {
}
|
package com.prakash.shopapi.io;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Base class to run API.
*
* @author Prakash Gour
*/
@SpringBootApplication
public class ShopsApiGradleApplication {
public static void main(S... |
/**
* Copyright (C) 2008 Atlassian
*
* 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 agree... |
package org.abrahamalarcon.datastream.controller;
import org.abrahamalarcon.datastream.dom.DatastoreMessage;
import org.abrahamalarcon.datastream.dom.response.DatastoreResponse;
import org.abrahamalarcon.datastream.service.DatastoreService;
import org.springframework.beans.factory.annotation.Autowired;
import or... |
package com.example.jiaheng.mapsensor;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/**
* A simple {@link Fragment} subclass.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.