text stringlengths 10 2.72M |
|---|
package com.rankytank.client.gui;
import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.*;
import com.google.gwt.event.logical.shared.SelectionEvent;
import com.google.gwt.event.logical.shared.SelectionHandler;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.FlowP... |
package com.devpmts.dropaline.ui;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import com.devpmts.DevsLogger;
import com.devpmts.dropaline.api.AuthenticationException;
import com.devpmts.dropaline.api.PimApi;
import com.de... |
package org.tum.project.dashboard_controller.simulationPane;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.jfoenix.controls.*;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import org.dom4j.Document;
import ... |
import edu.princeton.cs.algs4.Point2D;
import edu.princeton.cs.algs4.RectHV;
import edu.princeton.cs.algs4.StdDraw;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
public class PointSET {
private final Set<Point2D> points = new TreeSet<>();
/**
* is th... |
package ca.mcgill.ecse223.kingdomino.controller;
import java.util.ArrayList;
import java.util.List;
import ca.mcgill.ecse223.kingdomino.KingdominoApplication;
import ca.mcgill.ecse223.kingdomino.model.Game;
import ca.mcgill.ecse223.kingdomino.model.Player;
public class QueryMethodController {
public sta... |
package de.domistiller.vp.android;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.view.MenuItem;
import android.widget.TextView;
import de.domistiller.vpapi.model.Entry;
public class DetailActivity extends Activity {
@Override
public void onCreate... |
package com.trump.auction.reactor.util.lock;
/**
* Distributed lock support
*
* @author Owen
* @since 2018/1/18
*/
public interface DistributedLock {
/**
* 占用锁
*/
void acquire();
/**
* 释放锁
*/
void release();
}
|
package com.trump.auction.reactor.api;
import com.trump.auction.reactor.api.model.Bidder;
/**
* 出价人服务
*
* @author Owen
* @since 2017/12/29
*/
public interface BidderService {
Bidder nextBidder(Bidder lastBidder, String auctionNo);
Bidder nextBidder(Bidder lastBidder);
Bidder nextBidder();
}
|
/**
* <copyright>
* </copyright>
*
*
*/
package ssl.resource.ssl.mopp;
/**
* A basic implementation of the ssl.resource.ssl.ISslURIMapping interface that
* can map identifiers to URIs.
*
* @param <ReferenceType> unused type parameter which is needed to implement
* ssl.resource.ssl.ISslURIMapping.
*/
publi... |
package com.wuyou.springboot_stumanager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = "com.wuyou")
@MapperScan("com.wuyou.dao")
public class SpringbootS... |
package br.com.fitNet.model.percistence.Interfaces;
import java.sql.SQLException;
import java.util.Set;
import br.com.fitNet.model.Cliente;
import br.com.fitNet.model.Contrato;
import br.com.fitNet.model.Endereco;
import br.com.fitNet.model.Matricula;
public interface IRepositorioCliente {
void incluir(Cliente cl... |
package com.safepayu.wallet.activity;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Settings;
import android.telephony.PhoneNumberUtils;
import android.util.Log;
import android.view.View;
impor... |
package org.usfirst.frc.team3164.lib.robot.FRC2015;
import java.util.Arrays;
import java.util.List;
import org.usfirst.frc.team3164.lib.baseComponents.LightController;
import org.usfirst.frc.team3164.lib.baseComponents.LightController.Color;
import org.usfirst.frc.team3164.lib.baseComponents.Watchcat;
import org.usfi... |
package portal.utils;
import io.qameta.allure.Step;
import org.openqa.selenium.Keys;
import portal.data.enumdata.ButtonName;
import portal.data.enumdata.component.PopUpComponent;
import static com.codeborne.selenide.Selenide.*;
public class PopUpFull {
@Step("Кликаем на кнопку {buttonName}")
public void cli... |
package com.koma.gank;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.koma.component_base.base.SwipeActivity;
import com.koma.gank.R;
@Route(path = "/gank/main")
public class MainActivity extends SwipeActivity {
@Ov... |
/**
*
*/
package com.fixit.core.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.fixit.core.dao.mongo.MapAreaDao;
import com.fixit.core.data.ImmutableLatLng;
import com.fixit.core.data.mongo.MapArea;
/**
* @author Kostyantin
*... |
package ee.ttu.usermanagement.security;
import java.util.HashSet;
import java.util.Set;
import javax.inject.Inject;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;... |
package com.example.factory.abstractfactory;
/**
* @author: 曹文
* @create: 2020/3/19
* @update: 11:12
* @version: V1.0
* @detail:
**/
public class AbstractFactoryTest {
public static void main(String[] args) {
AppleFactory factory = new AppleFactory();
factory.createCPU().developCPU();
... |
/*
* #%L
* Diana UI Core
* %%
* Copyright (C) 2014 Diana UI
* %%
* 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 req... |
/**
* Copyright (C) Alibaba Cloud Computing, 2012
* All rights reserved.
*
* 版权所有 (C)阿里巴巴云计算,2012
*/
package com.aliyun.oss.internal;
import static com.aliyun.oss.internal.OSSUtils.safeCloseResponse;
import java.net.URI;
import com.aliyun.oss.ClientException;
import com.aliyun.oss.HttpMethod;
import com.aliyu... |
package symap.closeup.components;
import symap.closeup.alignment.HitAlignment;
public interface CloseUpListener {
public void hitClicked(HitAlignment ha);
}
|
package com.example.hante.newprojectsum.util;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.support.annotation.NonNull;... |
import java.io.*;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.LinkedList;
import java.util.List;
public class FirmwareFile {
private final List<byte[]> frames = new LinkedList();
public FirmwareFile(InputStream stream) throws IOException {
... |
package com.myvodafone.android.front.stores;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.myvodafone.android.R;
import com.myvodaf... |
package ru.client.model;
import java.util.List;
public interface DAO<T, K> {
void create(T entity);
T getById(K id);
List<T> getAll();
boolean delete(K id);
boolean update(T entity);
} |
package gameUI;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util... |
package testutils;
import java.util.Map;
import java.util.TreeMap;
public class DispensedMessage implements LogMessage {
private int canisterNumber;
private int amount;
public DispensedMessage(int canisterNumber, int amount) {
this.canisterNumber = canisterNumber;
this.amount = amount;
}
... |
package cs261_project.config;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.s... |
package com.netcracker.config;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
... |
package com.v1_4.mydiaryapp.com;
import android.graphics.Bitmap;
public class Obj_Screen{
String guid = "";
String appGuid = "";
String screenGuid = "";
String menuText = "";
String screenTitle = "";
String screenType = "";
String menuIcon = "";
String jsonScreenOptions = "";
Bit... |
package groupworkNamaste;
public class EmployeeStatistics {
private static double adminPercentage;
private static double managementPercentage;
private static double marketingPercentage;
private static double programmerPercentage;
private static double testerPercentage;
// SUBMENU for statistics
pub... |
/*
* Copyright 2002-2018 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 ru.vi.diskqueue;
import java.nio.ByteBuffer;
/**
* Implementation should be thread safe!!!
*
* User: arevkov
* Date: 3/18/13
* Time: 4:39 PM
*/
public interface Serializer<V> {
ByteBuffer encode(V v) throws Exception;
V decode(ByteBuffer bb) throws Exception;
}
|
//Figure 2-27 Main Class which uses the ProducerConsumerMonitor with multiple
// producers and consumers
import ProducerConsumerMonitor;
import Item;
class ProducerConsumer3 extends Thread {
private ProducerConsumerMonitor theMonitor;
// Inner classes for the Producers and Consumers
... |
package hu.fallen.popularmovies.adapters;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
import ... |
package com.willian.Estoque.resources;
import com.willian.Estoque.domain.Cliente;
import com.willian.Estoque.domain.Marca;
import com.willian.Estoque.service.ClienteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bin... |
package CarModel;
/**
* Created by Mr. Crapfruit on 21.11.2015.
*/
import Highway.Highway;
public class Sensor {
private static final int SPEED_FACTOR = 1;
private Highway Highway;
private Location Location;
private Car car;
public Sensor(Highway highway, Location location) {
this.Hig... |
package Utilities;
import java.awt.geom.Point2D;
//This should be replaced with java.awt.Point
public class Coordinates extends Point2D{
public double yLoc, xLoc;
public Coordinates(int xLoc, int yLoc){
this.xLoc = xLoc;
this.yLoc = yLoc;
}
public Coordinates(double xLoc, double yLoc){
this.xLoc = xLoc... |
/**
* @author filipe.pinheiro, 29/09/2018
*/
package mt.com.vodafone.controller;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.Response... |
package com.schappet.inv.controller;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.util.Collection;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.IOUtils;
import org.apache.commons.logging.Log;
import org.apach... |
package com.krixon.ecosystem.profiling.web.field;
import com.krixon.ecosystem.profiling.domain.*;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;
import org.springframework.data.web.PagedResourcesAssembler;
import org.sp... |
package main.java;
import java.util.ArrayList;
import java.util.List;
public class Teach {
public String teacher;
public String classroom;
public String course;
public int capacity;
public List<Time> time;
public Teach(String teacher, String classroom, String course, int capacity, ArrayList<T... |
package com.nopcommerce.demo.topmenupage;
import com.nopcommerce.demo.pages.TopMenuPage;
import com.nopcommerce.demo.testbase.TestBase;
import org.openqa.selenium.By;
import org.testng.Assert;
import org.testng.annotations.Test;
public class TopMenuTest extends TestBase {
TopMenuPage topMenuPage = new TopMenuPage... |
package com.example.scso.school_social;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DownloadManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
... |
package com.codecool.movieorganizer.service.dao.jpa;
import com.codecool.movieorganizer.config.StorageProperties;
import com.codecool.movieorganizer.model.Movie;
import com.codecool.movieorganizer.service.CharacterActorMovieMapService;
import com.codecool.movieorganizer.service.MovieCharacterService;
import org.junit.... |
package org.giddap.dreamfactory.leetcode.onlinejudge.implementations;
import org.giddap.dreamfactory.leetcode.onlinejudge.GasStation;
/**
*
*/
public class GasStationTwoLoopImpl implements GasStation {
public int canCompleteCircuit(int[] gas, int[] cost) {
final int len = gas.length;
int[] delta... |
package Problem_14651;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
double k = 1e9+9;
long[] dp = new long[33334];
dp[1] = 0; dp[2] = 2;
for(int i = 3; i<=N;i++) {
dp[i] = (long) ((dp[i-1... |
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.stage.Stage;
import java.text.DecimalFormat;
import static javafx.application.Application.launch;
public class Main extends Application {
... |
package gov.nih.mipav.view;
import java.io.*;
import javax.swing.tree.*;
/**
* This class is used to represent a file system in a tree. This is a node of the file system. It has a java.io.File as
* its user object.
*
* <p>Nodes in the tree are expanded by calling this class's explore method. You can set the ex... |
package scc.storage.Exceptions;
public class MasterKeyNotFound extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
public MasterKeyNotFound(){
super("You need to provide your CosmosDb Master Key");
}
public MasterKeyNotFound(String message){
super(message... |
package models;
import io.ebean.annotation.NotNull;
import javax.persistence.Entity;
/**
* Created by lamdevops on 7/15/17.
*/
@Entity
public class RoleType extends BaseModel{
@NotNull
private String name;
public String getName() {
return name;
}
public void setName(String name) {
... |
/**
* This class is generated by jOOQ
*/
package schema.tables;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Schema;
import org.jooq.Table;
import org.jooq.... |
package com.class3601.social.persistence;
import java.util.List;
//import org.apache.struts.action.ActionError;
//import org.apache.struts.action.ActionErrors;
//import org.apache.struts.action.ActionMessage;
//import org.apache.struts.action.ActionMessages;
import org.hibernate.HibernateException;
import org.hibern... |
package org.nathan.lib.widget;
import org.nathan.lib.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.ImageView;
/**
* 长方形图片框,可设置宽高比
* 在布局XML文件中要添加xmlns:rectImage="http://schemas.android.com/apk/res/org.nathan.lib"
* @author Nathan
*... |
/*
* 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... |
/**
* ConfirmationCodeDeserializer
*/
package com.bs.bod.converter;
import java.io.IOException;
import com.bs.bod.ConfirmationCode;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.faster... |
package com.tdd.gameoflife;
public class GameOfLife {
private int[][] grid;
public GameOfLife(int[][] grid) {
this.grid = grid;
}
public int[][] nextGeneration() {
for (int row = 0; row < grid.length; row++) {
for(int column = 0; column < grid[row].length; column++) {
... |
package com.kingnode.gou.entity;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.kingnode.xsimple.entity.AuditEntity;
/**
* @author segry ouyang(328361257@qq.com)
*/
@Entity @Table(name="footprint")
public class Footprint extends AuditEntity{
private long custom... |
/*
* Copyright (C) 2015 Adrien Guille <adrien.guille@univ-lyon2.fr>
*
* 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 vers... |
/*
* 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 lk.vcnet.storemodule.client;
import lk.vcnet.storemodule.server.Supplier;
/**
*
* @author user
*/
public class CLt {
p... |
package com.raildeliveryservices.burnrubber.adapters;
import android.app.AlertDialog;
import android.content.ContentValues;
import android.content.Context;
import android.content.DialogInterface;
import android.database.Cursor;
import android.net.Uri;
import android.support.v4.widget.CursorAdapter;
import android.supp... |
package ariel.manndrops.game.viewmodel;
import android.databinding.ObservableField;
import android.graphics.Point;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.Display;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
im... |
package br.com.vanhackathon.axiomzen.mastermind.resource;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import br.com.vanhackathon.axiomzen.mastermind.MastermindManager;
import br.com.van... |
package designpatterns.factory.abstrac.factory;
import designpatterns.factory.abstrac.product.AbstractProductA;
import designpatterns.factory.abstrac.product.AbstractProductB;
public abstract class AbstractFactory {
public abstract AbstractProductA createAbstractProductA();
public abstract AbstractProductB ... |
package org.bca.training.spring.core;
import org.bca.training.spring.core.beans.data.Car;
import org.bca.training.spring.core.beans.data.Model;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackages = "org.bc... |
package com.saasxx.core.module.common.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import com.saasxx.core.module.common.schema.PArea;
public interface AreaRepository extends JpaRepository<PArea, String> {
PArea findByCode(String regionCode);
}
|
package br.com.sousuperseguro.serviceImpl;
import java.math.BigInteger;
import java.util.ArrayList;
import org.springframework.stereotype.Service;
import br.com.sousuperseguro.service.PropostaService;
@Service
public class PropostServiceImpl implements PropostaService{
// @Override
public String calcularProposta(... |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2011 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... |
package org.giddap.dreamfactory.leetcode.onlinejudge;
/**
* <a href="https://oj.leetcode.com/problems/longest-valid-parentheses/">
* Longest Valid Parentheses</a>
* <p/>
* Copyright 2013 LeetCode
* <p/>
* Given a string containing just the characters '(' and ')',
* find the length of the longest valid (well... |
package polymorphismTest;
/**
*
* @file_name : Bank.java
* @author : dingo44kr@gmail.com
* @date : 2015. 9. 25.
* @story :
*/
import java.util.Scanner;
public class HanbitBank {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
BankService serv... |
package com.zs.bus;
import com.huaiye.sdk.sdpmsgs.meet.CStartMeetingReq;
import java.util.ArrayList;
/**
* author: admin
* date: 2018/05/29
* version: 0
* mail: secret
* desc: CloseView
*/
public class WaitViewAllFinish {
public String from;
public WaitViewAllFinish(String from) {
this.from =... |
package com.stk123.entity;
import javax.persistence.*;
import java.util.Objects;
//@Entity
@Table(name = "STK_SYNC_TABLE")
public class StkSyncTableEntity {
private String name;
private String pk;
@Id
@Column(name = "NAME", nullable = true, length = 200)
public String getName() {
return n... |
package serenitylabs.tutorials;
import com.google.common.collect.Range;
import com.google.common.collect.RangeMap;
import com.google.common.collect.TreeRangeMap;
import serenitylabs.tutorials.interfaces.ConversationalTime;
import serenitylabs.tutorials.interfaces.ProvideTime;
public class ConversationalClock {
pr... |
package conn.smart;
import conn.smart.connection.FacebookConnection;
import conn.smart.connection.Profile;
import org.json.JSONArray;
import org.json.JSONObject;
import javax.json.Json;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import jav... |
package gameData;
import gameData.enums.Difficulty;
/**
* Created by paul.moon on 1/28/16.
*/
public class GameParameters {
private int nbRows;
private int nbColumns;
private int numberOfBattleShips;
private Difficulty difficulty;
public GameParameters() {
this.nbRows = 3;
this.... |
package com.rof.uav.adpater;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Paint;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
impor... |
package com.example.mdt;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Speaker extends ... |
/**
* project name:saas
* file name:WeChatUrlController
* package name:com.cdkj.wechat.controller
* date:2018/3/29 下午5:28
* author:bovine
* Copyright (c) CD Technology Co.,Ltd. All rights reserved.
*/
package com.cdkj.manager.wechat.controller;
import com.cdkj.common.base.controller.BaseController;
import com.c... |
package com.maxmind.geoip2;
import com.maxmind.geoip2.exception.GeoIp2Exception;
import com.maxmind.geoip2.model.CityResponse;
import com.maxmind.geoip2.model.CountryResponse;
import java.io.IOException;
import java.net.InetAddress;
public interface GeoIp2Provider {
/**
* @param ipAddress IPv4 or IPv6 addre... |
package br.com.pwc.nfe.integracao.mail;
import java.util.Properties;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.c... |
package com.bigbang.myfavoriteplaces.database;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.room.Database;
import androidx.room.DatabaseConfiguration;
import androidx.room.InvalidationTracker;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.sqlite.d... |
package com.cdkj.util;
import java.util.HashMap;
import java.util.Map;
/**
* Created by sky on 2016/2/25.
*/
public class ValidateCodeUtil {
public static Map<String, Object> getResult(String str) {
Map<String, Object> map = new HashMap<>();
map.put("code", str);
return map;
}
... |
package com.ftf.phi.network.service.ip;
import com.ftf.phi.network.Restful;
import com.ftf.phi.network.service.Service;
import java.io.IOException;
//TODO: Encrypt the data to and from this service
public class IPService extends Service {
private static final int PORT = 1507;
private Thread serverThread;
private... |
package com.ider.ytb_tv.utils;
import com.ider.ytb_tv.data.AppEntry;
import com.ider.ytb_tv.data.Movie;
import com.ider.ytb_tv.data.PlayList;
import com.ider.ytb_tv.data.ResourceEntry;
import com.ider.ytb_tv.ui.fragment.MySearchFragment;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.ArrayLi... |
package tm.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframe... |
package com.imagsky.exception;
/**
*
*/
public interface ErrorCodeThrowable {
public abstract String getErrorCode();
}
|
package br.com.simcit.filmes.dao;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
import br.com.simcit.filmes.model.Filme;
/**
* Classe q... |
package leetCode;
import java.util.Date;
public class SudokuSolver {
public void solveSudoku(char[][] board) {
Date date = new Date();
long start = date.getTime();
Board sodokuBoard = new Board();
for (int r = 0; r < board.length; r++) {
for (int c = 0; c < board.length; c++) {
int value = board[r][c]... |
package application.model.bank;
import application.model.exceptions.FundsException;
import application.model.exceptions.PaymentRefusedException;
import application.util.MySimpleStringProperty;
import javafx.beans.property.StringProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Arr... |
package classes;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
@Entity
public class Personne {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private long ... |
package de.cuuky.varo.combatlog;
import org.bukkit.Bukkit;
import de.cuuky.varo.Main;
import de.cuuky.varo.alert.Alert;
import de.cuuky.varo.alert.AlertType;
import de.cuuky.varo.config.config.ConfigEntry;
import de.cuuky.varo.config.messages.ConfigMessages;
import de.cuuky.varo.logger.logger.EventLogger.Log... |
package com.yusys.workFlow;
import java.util.List;
import java.util.Map;
public interface WFContractDao {
//查询项目业务数据
public Map<String, String> queryWFContractData(String id);
//根据id修改项目计划对应信息审批状态
public void updateContractById(Map<String,String> map);
//通过流程实例id获取审批过程信息
public List<Map<String,Object>>... |
public class Locker {
public static void main(String[] args) {
boolean[] coins = new boolean[11];
//Open all multiples of 1 before moving on to 2
for (int i = 1; i < coins.length; i++) {
coins[i] = true;
}
//open every locker for every multiple of i
for (in... |
/*
* Copyright 2008, Myron Marston <myron DOT marston AT gmail DOT com>
*
* This file is part of Fractal Composer.
*
* Fractal Composer 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 o... |
package fr.iutinfo.skeleton.api;
import fr.iutinfo.skeleton.auth.AuthFilter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.gson.Gson;
import java.util.List;
import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesAllowed;
import javax.ws.rs.Consumes;
import jav... |
package com.projeto.jpa.javajpademo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class JavajpademoApplication {
public static void main(String[] args) {
SpringApplication.run(JavajpademoApplication.class, arg... |
/* ====================================================================
*
* Copyright (c) Atos Origin INFORMATION TECHNOLOGY All rights reserved.
*
* ==================================================================== *
*/
package com.aof.component.prm.bid;
import java.io.Serializable;
import java.util.Set;
imp... |
package com.xsis.batch197.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persist... |
package com.xianzaishi.wms.tmscore.dto;
import com.xianzaishi.wms.tmscore.vo.PickingWallPositionStatuDO;
public class PickingWallPositionStatuDTO extends PickingWallPositionStatuDO {
} |
package com.sdz.base;
import java.util.Scanner;
public class Entrees
{
@SuppressWarnings({ "resource", "unused" })
public static void main(String[] args)
{
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
// lien de l'exercice "https://openclassrooms.com/fr/courses/268... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.