text stringlengths 10 2.72M |
|---|
package edu.mines.msmith1.universepoint.dao;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.util.Log;
import edu.mines.msmith1.universepoint.SQLiteHelper;
import edu.mines.msmith1.universepoint.dto... |
package com.noringerazancutyun.retrofit_example.UI;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
impo... |
package com.barclays.tshapeproject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.boot.json.BasicJsonParser;
import org.springframework.boot.json.JsonParseException;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Servic... |
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int q = in.nextInt();
for(int a0 = 0; a0 < q; a0++){
int x = in.nextInt(... |
public interface StackInterface<T> {
/**
* 入栈
*
* @param item 入栈元素
*/
public void push(T item);
/**
* 出栈
*
* @return 出栈元素
*/
public T pop();
}
|
package com.rx.rxmvvmlib.repository.datasource.remote.retrofit;
import com.google.gson.Gson;
import java.io.IOException;
import java.net.URLDecoder;
import java.util.HashMap;
import okhttp3.FormBody;
import okhttp3.Interceptor;
import okhttp3.MediaType;
import okhttp3.Request;
import okhttp3.RequestBody;
import okht... |
package com.tencent.mm.ac;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import org.json.JSONObject;
public class d$b$c$a {
public long appid = 0;
public String dLD;
public String dLE;
public int dLF;
public String dLG;
public String dLH;
public st... |
package sort;
import java.util.Arrays;
public class Solution {
public int[] solve(int[] array) {
// Write your solution here.
if (array==null||array.length<=1){
return array;
}
for(int i=0;i<array.length-1;i++)
for(int j=i+1;j<array.length;j++)
if (array[i]>array[j]){
... |
package com.accp.pub.pojo;
public class Awardandpunishmentsort {
private Integer asortid;
private String asortname;
public Integer getAsortid() {
return asortid;
}
public void setAsortid(Integer asortid) {
this.asortid = asortid;
}
public String getAsortname() {
... |
package exer;
public class TestEmployee {
public static void main(String[] args) {
Employee[] emArr = new Employee[5];
emArr[0] = new Employee(1, "张三", 13000);
emArr[1] = new Employee(2, "李四", 13000);
emArr[2] = new Employee(3, "王五", 14000);
emArr[3] = new Employee(4, "赵六", 7000);
emArr[4] = new ... |
package com.appatstudio.snakerpg;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.b... |
package interpreter.action.executor;
import interpreter.action.type.IDecisionAction;
import java.awt.*;
import java.util.HashMap;
import java.util.Map;
public class KeyboardExecutor implements IActionExcecutor{
private Map<String, IDecisionAction> actions;
public KeyboardExecutor(){
actions = new H... |
package br.com.ecommerce.tests.retaguarda.cadastros;
import org.junit.Test;
import br.com.ecommerce.config.BaseTest;
import br.com.ecommerce.pages.retaguarda.cadastros.operadorascartaocredito.PageOpCartoesCredito;
import br.com.ecommerce.pages.retaguarda.dashboard.PageMenu;
/**
*
* Classe de testes com cenários r... |
package WB.java;
import java.util.Scanner;
public class Homework_0519_1_2 {
public static void main(String[] args) {
int dan;
Scanner scan = new Scanner(System.in);
System.out.println("Enter a dan");
dan = scan.nextInt();
for(int times = 1; times < 10; times++) {
if(dan % 2... |
package task26;
import java.util.Set;
import java.util.TreeSet;
/**
* @author Igor
*/
public class Main26 {
private static final int N = 1_000;
public static void main(String[] args) {
int d = 0;
int maxCycle = 0;
for (int i = 2; i < N; i++) {
int cycle = recurringCycl... |
package GenericDemo;
/**
* A generic type can be restricted, by type of class or/and one to many
* interface types (by using logical operator AND). Keyword 'extends' to set
* upper boundaries. Keyword 'super' to set lover boundaries.
*
* @author Bohdan Skrypnyk
*/
// extends class 'Number' to restrict a generic ... |
package com.tencent.mm.pluginsdk.ui.d;
import android.text.style.CharacterStyle;
import android.view.MotionEvent;
import android.view.View;
import com.tencent.mm.plugin.comm.a.e;
import com.tencent.neattextview.textview.view.NeatTextView;
import com.tencent.neattextview.textview.view.b;
public final class f extends b... |
package com.snab.tachkit.additional;
import com.snab.tachkit.asyncTaskCustom.LoadListTask;
import com.snab.tachkit.ClassesJson.NewsTableJson;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widg... |
package lib.game.gui;
import static org.lwjgl.opengl.GL11.*;
import org.lwjgl.input.Keyboard;
import lib.game.RenderUtils;
import math.geom.Point2i;
import math.geom.Rectangle;
public class TextField extends TextComponent {
private boolean expanding = true;
public TextField(int chars, Point2i pos) {
super(c... |
package step._12_Sort;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
/* date : 2021-08-14 (토)
* author : develiberta
* number : 10989
*
* [단계]
* 12. 정렬
* 배열의 원소를 순서대로 나열하는 알고리즘을 배워 봅시다.
* [제목]
* 03... |
/*
* 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 mylittlechain;
import java.util.GregorianCalendar;
/**
*
* @author urbano
*/
public final class Block {
public St... |
package p4_group_8_repo.Game_functions;
import p4_group_8_repo.Game_actor.Frog_player;
import p4_group_8_repo.Game_scene.MyStage;
public class Create_frogger {
Frog_player animal;
public Create_frogger(MyStage background) {
String main_frog = "/graphic_animation/froggerUp.png";
animal = new Frog_player(main_... |
/*
* Test class for Room.java of ESOF322-AssignmentP2
*/
package esof322.a4;
import esof322.a4.Room;
import esof322.a4.Key;
import esof322.a4.Item;
import esof322.a4.Player;
import esof322.a4.Treasure;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeC... |
package com.travix.toughjet.repository;
import java.time.LocalDate;
import java.util.List;
import com.travix.toughjet.entity.Flight;
public interface FlightRepository {
List<Flight> findFlightBy(String from, String to, LocalDate outboundDate, int numberOfAdults);
} |
package com.cartshare.models;
import java.util.*;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOptio... |
public class Main {
public static void main(String[] args){
int [][] trianglePascal = new int[10][10];
for (int i = 0; i < trianglePascal.length; i++){
for (int j = 0; j <= i; j++){
trianglePascal[i][0] = 1;
trianglePascal[i][i] = 1;
/*if (... |
/*
* Copyright 2016 Andrei Zaiats.
*
* 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 t... |
package edu.lab.server.coodinator.client;
import edu.lab.server.coodinator.communication.Request;
import edu.lab.server.coodinator.communication.RequestCode;
import edu.lab.server.coodinator.communication.Response;
import edu.lab.server.coodinator.communication.requests.RequestFactory;
import java.io.IOException;
imp... |
package com.udacity.ranjitha.tourguide;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class CityPage extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activ... |
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.text.ParseException;
import java.text.SimpleDateFormat;... |
/*
* #%L
* Janus
* %%
* Copyright (C) 2014 KIXEYE, Inc
* %%
* 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... |
package fr.pederobien.uhc.dictionary.dictionaries;
import fr.pederobien.uhc.dictionary.IDictionary;
public class DictionaryFactory {
private static IDictionary englishDictionary;
private static IDictionary frenchDictionary;
public static synchronized IDictionary createEnglishDictionary() {
if (englishDictionary... |
package com.cnk.travelogix.v2.controller;
import java.io.File;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframe... |
package findMissing;
import java.util.ArrayList;
public class findMissing{
public int findMissing(ArrayList<BitInteger> array){
return findMissing(array, 0);
}
public int findMissing(ArrayList<BitInteger> input, int column){
if(column >= BitInteger.INTEGER_SIZE){
return 0;
}
ArrayList<BitInteg... |
package voc.cn.cnvoccoin.network;
import android.text.TextUtils;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.ParameterizedTy... |
package com.sree.mapreduce.training.forums.toptags;
import java.io.IOException;
import java.util.HashMap;
import java.util.Set;
import java.util.TreeMap;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
im... |
package com.pingcap.tools.cdb.binlog.listener;
import com.pingcap.tools.cdb.binlog.common.CDBLifeCycle;
/**
* Created by iamxy on 2017/2/20.
*/
public interface CDBEventListener extends CDBLifeCycle {
}
|
package org.Third.Chapter.CompletableFuture;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.stream.Collectors;
public class TestMoreCompletableFuture {
// 1.异步任务,返回future
public static CompletableFut... |
package com.example.healthmanage.adapter;
import android.content.Context;
import android.view.View;
import androidx.annotation.Nullable;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.healthmanage.R;
import com.example.healthmanage.ui.ac... |
package com.tencent.mm.plugin.appbrand.widget;
import android.graphics.Bitmap;
class c$a {
public int gEA;
public int gEB;
public Bitmap gEv;
public String gEw;
boolean gEx;
public boolean gEy;
public String gEz;
public String mUrl;
public Bitmap sq;
private c$a() {
th... |
/*
* Copyright (c) 2014. igitras.com
*
* 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 ... |
package br.com.crudjpa.aplicacao;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import br.com.crudjpa.entidades.Pessoa;
public class Program {
public static void main(String[] args) {
EntityManagerFactory emf = Persistence.createEn... |
package com.nxtlife.mgs.jpa;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.nxtlife.mgs.entity.oauth.OauthClientDetails;
public interface OauthClientDetailsJpaDao extends JpaRepository<OauthClientDetails, String> ... |
package com.application.model.inventory;
import com.application.model.product.Product;
import java.math.BigInteger;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
* This class is inventory representation of store.
* It consist of:
* <li>List of {@link Product}</li>
*/
public f... |
package com.sixmac.service.impl;
import com.sixmac.core.Constant;
import com.sixmac.dao.SysInsuranceDao;
import com.sixmac.entity.SysInsurance;
import com.sixmac.service.SysInsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springfra... |
package src.JsoupTest;
import org.jsoup.Jsoup;
import org.jsoup.helper.Validate;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.File;
import java.io.IOException;
public class DoubanMovie {
private static String TAG = "DoubanMo... |
/*
* Copyright (c) 2010-2020 Founder Ltd. All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Founder. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the agreements
* you entered into with Found... |
package com.smxknife.java2.classloader.urlclassloader;
/**
* @author smxknife
* 2020/8/20
*/
public class Hello {
public static void sayHello() {
System.out.println("hello...");
}
}
|
package server.server;
import org.joda.time.DateTime;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
public class Server {
private ServerSocket serverSocket;
private Socket client... |
package domain;
import utils.structures.OwnSet;
import utils.structures.OwnMap;
/**
* A representation of a nondeterministic finite automaton.
*
* <p>
* Used to simulate the processing of an NFA that recognizes the same language
* that a specified regular expression generates. The information about all the
* st... |
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CalculatorTest {
private Calculator calculator;
@Before
public void before() {
calculator = new Calculator(10, 5, 20, 2);
}
@Test
public void ha... |
package com.example.lucas.prototipo;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.vi... |
package com.ebay.lightning.client;
import java.util.ArrayList;
import java.util.List;
import com.ebay.lightning.client.caller.EmbeddedAPICaller;
import com.ebay.lightning.client.caller.RestAPICaller;
import com.ebay.lightning.client.caller.ServiceCaller;
import com.ebay.lightning.client.config.LightningClientConfig;
... |
package by.grechny.importCSV.dto;
import java.io.Serializable;
/**
* Реализация класса Contact, содержащего поля
* login, name, surname, email, phoneNumber
*/
public class Contact implements Serializable{
private String login;
private String name;
private String surname;
private String email;
... |
package com.github.baloise.rocketchatrestclient.model;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Represents the different types of rooms available.
*
* @author Bradley Hilton (graywolf336)
* @since 0.1.0
* @version 0.0.1
*/
public enum RoomType {
/** Public Channel */
@JsonProperty("c"... |
package com.kerbii.undersiege;
public class MobShield extends MobBase {
float shieldHealth;
public static final int[] TEXTUREARRAY = {
R.drawable.mobgenerica0,
R.drawable.mobgenerica1,
R.drawable.mobgenerica2,
R.drawable.mobgenerica3,
R.drawable.mobgenerica4,
R.drawable.mobgenerica5,
R.drawable.mob... |
package com.tencent.mm.plugin.exdevice.model;
import com.tencent.mm.ak.e;
import com.tencent.mm.ak.o;
import com.tencent.mm.g.a.ec;
import com.tencent.mm.model.au;
import com.tencent.mm.modelcdntran.d;
import com.tencent.mm.modelcdntran.g;
import com.tencent.mm.modelcdntran.i;
import com.tencent.mm.modelvideo.r;
impor... |
package io.altar.jseproject.model;
import java.util.ArrayList;
import io.altar.jseproject.repository.ProductRepository;
public class Product extends Entity{
private ArrayList<Integer> shelfIdLocation;
private String name;
private Integer discount;
private Integer tax;
private Double salePrice;
public void s... |
/**
* Percolation simulation. This is a problem domain for the UnionFind algorithm.
*
* Compilation: javac Percolation.java
*
* @author Daniel Norton
*/
public class Percolation {
private int dimensionSize; //the size of each dimension in the grid
private int totalSize; //the total size of the flattened ... |
package com.yl.cd.web.handler;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
import org.apache.poi.hss... |
package rgg.campusvirtualapp.vista.test;
import rgg.campusvirtualapp.modelo.DatosAsignatura;
import rgg.campusvirtualapp.vista.AdaptadorAsignaturas;
import rgg.campusvirtualapp.vista.VistaAsignaturas;
import rgg.campusvirtualapp.vista.VistaLogin;
import rgg.campusvirtualapp.vista.R;
import android.annotation.SuppressL... |
import java.awt.EventQueue;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.net.Malforme... |
package pl.finsys.constructorExample;
public class PrintRoom {
private final IPrinter printer;
public String print() {
return printer.print();
}
//wstrzykniecie przez konstruktor
public PrintRoom(IPrinter printer){
this.printer = printer;
}
} |
import com.sun.media.jfxmedia.logging.Logger;
import generatorRaderketen.randomLoad.RandomLoad;
import generatorRaderketen.simulation.Simulation;
import java.util.Scanner;
/**
* Created by Thomas on 1/11/2015.
*/
public class StartGenerator {
public static void main(String[] args) {
// IncidentServ... |
package com.tencent.mm.plugin.webview.ui.tools.fts;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.content.Context;
import android.view.View;
import com.tencent.mm.R;
import java.lang.reflect.Array;
public class a {
protected View hmt;
protected boolean isAnimating;
protecte... |
package com.tahmeedul.practicemvvm.adapter;
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.bumptech.glide.Glide;
import com.mikhaellopez.circu... |
package com.tencent.mm.pluginsdk.model.app;
import android.graphics.BitmapFactory.Options;
import android.util.Base64;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.b.a;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.ac.f;
import com.tencent.mm.ak.o;
import com.tencent.mm.g.a.n;
i... |
package com.jean.sbc.services.validation;
import java.util.ArrayList;
import java.util.List;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.springframework.beans.factory.annotation.Autowired;
import com.jean.sbc.domain.Customer;
import com.jean.sbc.domain... |
package jupiterpa;
import jupiterpa.IMasterDataServer.MasterDataException;
public interface IMasterDataClient {
void initialLoad() throws MasterDataException;
void invalidate(IMasterDataServer.EIDTyped id) throws MasterDataException;
}
|
package com.spring.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spring.dao.P2SCScoreCardDao;
@Service
public class P2SCScoreCardServiceImpl implements P2SCScoreCardService{
@Autowired
P2SCScoreCardDao p2scScoreCardDao ... |
package tomekkup.jug.jugcasa.cases;
import me.prettyprint.cassandra.serializers.StringSerializer;
import me.prettyprint.hector.api.Keyspace;
import me.prettyprint.hector.api.factory.HFactory;
import me.prettyprint.hector.api.query.ColumnQuery;
import me.prettyprint.hector.api.query.SliceQuery;
/**
*
* @au... |
import java.util.*;
class ShelvesProblem
{
int shelveSize, nbBoxes;
int[] size, a, b;
int[][][][][] opt;
void readData()
{
Scanner scn = new Scanner(System.in);
shelveSize = scn.nextInt();
nbBoxes = scn.nextInt();
size = new int[nbBoxes+1];
a = new int[nbBoxes... |
package storage;
import static com.mongodb.client.model.Filters.*;
import static com.mongodb.client.model.Updates.*;
import org.bson.Document;
import com.mongodb.MongoClient;
import com.mongodb.MongoClientURI;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import bean.User;
public... |
/*
* 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 Aula5.Exercicio1;
//Crie uma classe geral (superclasse) que contenha um
//atributo privado, um atributo público e um atributo
/... |
package com.yixin.dsc.dto.field;
import java.io.Serializable;
import javax.persistence.Column;
/**
* 字段dto
* Package : com.yixin.dsc.dto.field
*
* @author YixinCapital -- huguoxing
* 2018年6月6日 下午4:40:49
*
*/
public class DscFieldFDto implements Serializable {
/**
*
* @author YixinCapital -- huguox... |
package com.cg.jdbc;
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Map;
import java.util.Scanner;
public class JdbcUpdate {
public static void main(String[] args) {
ReadDbDetails rdb = new ReadDbD... |
package task179;
import common.Watch;
import java.util.Arrays;
/**
* @author Igor
*/
public class Main179a {
private static final int N = 10_000_000;
public static void main(String[] args) {
Watch.start();
int[] n = new int[N];
for (int i = 2; i < N; i++)
... |
package componentsFX;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
public class TextfieldAndLabel extends GridPane {
private final Label label;
private final TextField text;
/**
* TextField with a label
*
* @param labelStri... |
/*
* UniTime 3.3 - 3.5 (University Timetabling Application)
* Copyright (C) 2011 - 2013, UniTime LLC, and individual contributors
* as indicated by the @authors tag.
*
* 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
* ... |
package com.hadoop;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.hadoop.mapreduce.Reducer;
public class FacebookFriendsReducer extends
Reducer<FriendPair, FriendArray, FriendPair, FriendArray> {
@Override
protected void reduce(
Frien... |
package com.google.android.gms.common.api;
import android.content.IntentSender.SendIntentException;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.e;
class u$b implements Runnable {
final /* synthetic */ u aLV;
private final int aLW;
private final ConnectionRes... |
package com.pedidovenda.controller;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import com.pedidovenda.model.Pedido;
import com.pedidovenda.model.StatusPedido;
import com.pedidovenda.reposit... |
package gui.controllers;
import enums.PIDControllerType;
import javafx.fxml.FXML;
import javafx.scene.control.TextField;
import javafx.scene.control.TextFormatter;
import javafx.scene.control.TextFormatter.Change;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.GridPane;
import javafx.util.St... |
package com.mycom.calculator;
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.JPanel;
import javax.swing.ImageIcon;
/**
* Panel whose background can be set to any image.
*
* @author Kannan S
* @version 4.0 04/09/2003
*/
public class BackgroundPanel extends JPanel
{
private I... |
package com.example.beatr.miscuentas;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
/**
* Created by beatr on 26/02/2018.
*/
public class Anio implements Parcelable {
public int anio;
public ArrayList<Mes> meses;
public Anio(){}
public Anio(int anio){
... |
package com.mideas.rpg.v2.game;
public enum SocialFrameMenu {
FRIEND_FRAME,
WHO_FRAME,
GUILD_FRAME,
DISCUSSION_FRAME,
RAID_FRAME;
}
|
package test.cps3230.yahoo;
import io.cucumber.java.en.And;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
i... |
package com.bw.movie.IView;
public interface IBaseView {
}
|
package org.opensoft.view.controllers;
import java.security.Principal;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.el.ELResolver;
import javax.faces.application.Application;
import javax.faces.component.UIComponent;
import javax.faces.contex... |
package jie.android.ip.setup;
import java.io.File;
import java.sql.Connection;
import jie.android.ip.CommonConsts.SystemConfig;
public abstract class Setup {
public abstract void create();
public abstract String getStorageDirectory();
public abstract String getAppDirectory();
public abstract String getCacheDire... |
package Chap3;
public class WhilePrintFrom1To10 {
public static void main(String...args) {
int sum = 0;
int i = 1;
while(i<=100) {
sum+=i; // i변수의 값을 누적+
i++;
} // while
System.out.printf("1~%d 합: %d\n", (i-1), sum);
} // main
} // end class
|
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.ABKUEHLPlanungType;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.BEWB01PlanungType;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.ERHITZENPlanungType;
import com.t... |
package com.jakob.tonsleymaps;
/* Written by Jakob Pennington
*
* An object to represent the occupant of a room in the database.
*/
public class Occupant extends SearchResult {
private String locationName;
private String floorName;
private String roomNo;
private String roomName;
private String p... |
package com.android.yinwear.core.db.dao;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import com.android.yinwear.core.db.entity.DeviceDetail;
import java.util.List;
@Dao
public interface DeviceDao {
@Query("SELECT *... |
package com.workorder.ticket;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Propert... |
import javax.swing.*;
public class GraphicsTester {
public static void main(String[] args) {
JFrame myFrame = new JFrame("Testing Graphics");
myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
myFrame.getContentPane().add(new Clicker());
myFrame.pack();
myFrame.setVisi... |
package com.rishi.baldawa.iq;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.*;
public class GenerateNParenthesisTest {
@Test
public void generateParenthesis() throws Exception {
List<String> expected = Arrays.asList(
"((()))",
... |
package com.espendwise.manta.model.entity;
// Generated by Hibernate Tools
import com.espendwise.manta.model.ValueObject;
import com.espendwise.manta.model.data.BudgetData;
import com.espendwise.manta.model.data.BudgetDetailData;
import java.util.ArrayList;
import java.util.Collection;
import javax.persistence.C... |
package com.project.cm.repository;
import com.project.cm.model.entity.User;
import org.graalvm.compiler.nodes.calc.IntegerDivRemNode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface UserR... |
package com.tencent.mm.ac.a;
public interface b$a {
public enum a {
;
static {
dNa = 1;
dNb = 2;
dNc = 3;
dNd = new int[]{dNa, dNb, dNc};
}
}
void a(b bVar);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.