text stringlengths 10 2.72M |
|---|
import java.util.Scanner;
class Program {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n= scanner.nextInt();
int m = scanner.nextInt();
int a[][] = new int[n][m];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
a[i][j] = scanner.... |
package com.zym.blog.controller;
import com.github.pagehelper.PageHelper;
import com.zym.blog.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spring... |
package com.horanet.BarbeBLE;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothManager;
import android.bluetooth.le.BluetoothLeScanner;
import android.bluetooth.le.ScanCallback;
import android.bluetooth.le.ScanFilter;
import android.bluetooth.le.Sca... |
package br.com.maricamed.repositories;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import br.com.maricamed.entities.Medico;
pub... |
package com.example.demo.service;
import com.example.demo.model.Giphy;
import com.example.demo.model.Page;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootT... |
package com.shop.serviceImpl;
import com.shop.mapper.CouponMapper;
import com.shop.model.Coupon;
import com.shop.model.User;
import com.shop.service.CouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annota... |
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import org.openqa.selenium.support.PageFactory;
//import java.text.ParseException;
import java.util.List;
p... |
/*
* 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 weekhours;
/**
*
* @author emwhfm
*/
public class WeekHours {
public static int[][] calcTotal(int[][] m) {
in... |
package J_51;
/**
* Created by IBM_ADMIN on 10/16/2016.
*/
public class FishTrainer implements Animal {
public void move() {
System.out.println("Swim Swim");
}
public void eat() {
System.out.println("Eat other fish");
}
public void sleep() {
System.out.println("Sleep ... |
package com.metoo.foundation.dao;
import org.springframework.stereotype.Repository;
import com.metoo.core.base.GenericDAO;
import com.metoo.foundation.domain.ActivityGoods;
@Repository("activityGoodsDAO")
public class ActivityGoodsDAO extends GenericDAO<ActivityGoods> {
} |
package me.levylin.lib.base.loader;
import java.util.List;
/**
* 数据库加载列表专用
* Created by LinXin on 2017/1/13 15:14.
*/
public class PageVo<ITEM> {
private List<ITEM> itemList;
private int count;
public List<ITEM> getItemList() {
return itemList;
}
public void setItemList(List<ITEM> it... |
package org.vanilladb.comm.protocols.floodingcons;
import java.net.SocketAddress;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.vanilladb.comm.proce... |
/*
* Copyright (c) 2004 Steve Northover and Mike Wilson
*
* 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 use, copy, ... |
package sessionBeans;
import entites.Categorie;
import entites.Offre;
import entites.Produit;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
@Stateless
publ... |
package com.grocery.codenicely.vegworld_new.sub_category.view;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Meghal on 6/19/2016.
*/
class Vie... |
package com.ranpeak.ProjectX.activity.lobby.forAuthorizedUsers.navigationFragment.profileNavFragment.myResumeFragment.resume;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatAct... |
package com.test.base;
import java.util.Arrays;
import com.test.SolutionA;
import com.test.SolutionB;
import junit.framework.TestCase;
public class Example extends TestCase
{
private Solution solution;
@Override
protected void setUp()
throws Exception
{
super.setUp();
}
... |
package InformationRetrieval.Index;
import InformationRetrieval.Query.QueryResult;
import java.util.ArrayList;
import java.util.Iterator;
public class PositionalPostingList {
private ArrayList<PositionalPosting> postings;
public PositionalPostingList(){
postings = new ArrayList<PositionalPosting>()... |
package io.github.s8a.osubfinder;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import java.io.File;
import java.io.InputStream;
import java.net.URL;
/**
* Unit test for the OpenSubtitles.org hash function.
*
* @author Samuel Ochoa (S8A)
*/
public class OpenSubt... |
package com.fbzj.track.model;
/**
* 账号
*/
public class Account {
/**
* id
*/
private String id;
/**
* 登录名
*/
private String name;
private String password;
/**
* 构造函数
* @param name 账号名
* @param password 密码
*/
public Account(String name, String password) {
this.na... |
package code;
import java.util.ArrayList;
import java.util.List;
//handles ace's high game
public class Ace extends Solitaire {
public List<Card> home=new ArrayList<Card>(); //holds the homecell pile
public Ace(){
super();
tableau=new Card[4][13];
tableauTopIndex = new int [4]; //s
for (int i=0; i<4;i++){... |
package com.cn.ouyjs.calssLoad;
/**
* @author ouyjs
* @date 2019/8/21 17:18
* 类加载: 加载->验证->准备->解析->初始化
* 初始化阶段中四种特殊的初始化
* 1.final修饰的类不会发生初始化,在编译的期间加入到了常量池
* 2.反射, 通过反射找到的类,如果没有加载的话,需要先类加载
* 3.继承,初始化一个类的时候,如果这个类有父类,先初始化父类
* 4.方法依赖其他类,先初始化方法类,在初始化"其他类"
* 5.动态语言支持
*/
public class ClassLoaderTest {
public Cl... |
class Static {
int emp_id; // class memory loads only one time
int emp_sal;
static String ceo; // static variable is same for all objects
static {
ceo = "Sasidhar";
System.out.println("satic block loads only once because class memory loads onl... |
package DecoratorPattern10.exercise.component;
/**
* @Author Zeng Zhuo
* @Date 2020/4/30 16:24
* @Describe
*/
public interface Component {
String encryption(String password);
}
|
package com.base.utils;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiMa... |
package be.odisee.se4.hetnest.controllers;
import be.odisee.se4.hetnest.domain.User;
import be.odisee.se4.hetnest.service.HetNestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.M... |
/*
Copyright 2017 Stratumn SAS. All rights reserved.
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... |
package com.fetchrewards.demo.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import org.springframework.security.oa... |
package oo.abs1;
public class Report {
public void test(){
}
public void print(){
}
}
|
package Main;
import com.google.gson.Gson;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import java.sql.*;
import java.util.*;
import static net.sf.json.JSONObject.*;
public class Json_test {
public static String test() {
List<Map<String, Object>> list = new ArrayL... |
package exam.iz0_803;
public class Exam_030 {
}
/*
Given:
public class Bark {
// code 1
public abstract void bark();
}
// code 2
public void bark() {
System.out.println("Woof");
}
}
}
What code should be inserted?
A. code 1: class Dog {
code 2: public class Poodle extends D... |
package com.rubic.demo.work;
import com.lmax.disruptor.*;
import com.lmax.disruptor.dsl.ProducerType;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Demo
*
* @author rubic
* @since 2018-07-17
*/
public class Demo {
... |
package lawscraper.client.ui.panels.rolebasedwidgets;
import lawscraper.shared.UserRole;
/**
* Created by erik, IT Bolaget Per & Per AB
* Date: 5/16/12
* Time: 9:25 PM
*/
public interface RoleBasedWidget {
void configureAsNoneVisisble(UserRole userRole);
void configureAsEditable(UserRole userRole);
... |
package com.example.sarbagitadriver;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.os.Build... |
package com.Price.quotation.Controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.Mod... |
package utils;
import java.awt.Component;
import java.awt.event.ItemEvent;
import java.util.Collection;
import javax.swing.AbstractCellEditor;
import javax.swing.JComboBox;
import javax.swing.JTable;
import javax.swing.table.TableCellEditor;
public class EnumEditor extends AbstractCellEditor implements Ta... |
package maxDepth104;
import java.util.LinkedList;
import java.util.Queue;
import dataStructure.*;
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
class Solution {
/**
* 递归实现
* ... |
package net.mapthinks.domain;
import net.mapthinks.domain.base.AbstractBaseEntity;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import javax.validation.constraints.*;
i... |
package it.greenvulcano.gvesb.adapter.hdfs.operations;
import java.io.IOException;
import org.slf4j.Logger;
import org.w3c.dom.Node;
import it.greenvulcano.configuration.XMLConfig;
import it.greenvulcano.configuration.XMLConfigException;
import it.greenvulcano.gvesb.adapter.hdfs.HdfsAPI;
import it.greenvulcano.gves... |
package test;
import java.util.Iterator;
import java.util.LinkedList;
import org.junit.Test;
import FourRowSolitaire.Card;
import FourRowSolitaire.Deck;
public class DeckTest {
@Test
public void testGetDeck() {
Deck deck = new Deck(1);
LinkedList<Integer> numbers = new LinkedList<Integer>();
LinkedList<Car... |
package com.mmrath.sapp.web.rest.rsql;
import cz.jirutka.rsql.parser.RSQLParser;
import cz.jirutka.rsql.parser.ast.Node;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.util.StringUtils;
import java.util.Optional;
/**
* Created by murali on 25/06/15.
*/
public class RsqlUtils {... |
package String类;
import org.testng.annotations.Test;
import java.util.Arrays;
/**
* 字符串在另外一个字符串中出现次数。比如“ab”在“abkkcadkabkebfkabkskab”出现次数
*/
public class 面试题3 {
public static void main(String[] args) {
System.out.println(stringCounts("abkkcadkabkebfkabkskab", "ab"));
}
public static int stringC... |
package swissre.parser;
import swissre.persistence.DataStore;
import swissre.model.ExchangeRateChange;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
import java.time.format.SignStyle;
import java.util.NoSuchElementException;
import java.ut... |
package com.monkey1024.controller;
import com.monkey1024.bean.User;
import com.monkey1024.util.DataUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import java.util.HashMap;
/*
* 实现简单的等删改查
* */... |
package Modelo;
public class mov_Caixa
{
private int cod;
private int cod_caixa;
private int cod_ace;
private double valor;
private char tipo;
public mov_Caixa() {
}
public mov_Caixa(int cod, int cod_caixa, int cod_ace, double valor, char tipo) {
this.cod = cod;
this.... |
package com.ht.event.model;
import org.hibernate.search.annotations.*;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.search.annotations.Analyze;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;
import org.h... |
package barqsoft.footballscores;
import android.content.Context;
import android.content.res.Resources;
import android.support.v4.view.PagerTabStrip;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;
import android.view.accessibility.AccessibilityEvent;
/**
* Create... |
package fr.fireblaim.javafxhelper.utils;
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
import javafx.stage.Stage;
import java.awt.*;
public class WindowMover {
//Code by Trxyy thx !
Point dragPoint = new Point();
public WindowMover(Stage stage) {
stage.getScene().setO... |
import gov.nih.mipav.plugins.*; // needed to load PlugInAlgorithm / PlugInView / PlugInFile interface
/**
* This is simple plugin that sweeps the images with sets of 16 parallel lines to find all red, blue, green synapses.
*
* @see PlugInGeneric
*/
public class PlugInLargeSynapse implements PlugInGeneric {
... |
package snabbköp.state;
public class CustomerFactory {
private int customerId = 0;
CustomerFactory(){}
public Customer makeNewCustomer(double arrivalTime) {
Customer newCustomer = new Customer(customerId, arrivalTime);
customerId++;
return newCustomer;
}
public int getCustomerId(Custom... |
package pl.pawel.weekop.controller;
import pl.pawel.weekop.model.User;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@We... |
package djudge.judge;
public enum InteractionType
{
NONE,
NEERC_INTERACTOR
}
|
package com.project.entities;
public enum UserType {
ADMIN, CUSTOMER, COURIER
}
|
package exception;
public class MemberAlreadyOpinion extends Exception{
public MemberAlreadyOpinion(String message) {
super(message);
}
}
|
package fr.pco.accenture.factories;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import edu.stanford.smi.protegex.owl.model.OWLIndividual;
import edu.stanford.smi.protegex.owl.model.OWLModel;
import edu.stanford.s... |
package pw.react.backend.service;
import pw.react.backend.model.Company;
public interface CompanyService {
Company updateCompany(Long id, Company updatedCompany);
boolean deleteCompany(Long companyId);
}
|
/*
* LcmsSeqRuleConditionController.java 1.00 2011-09-16
*
* Copyright (c) 2011 ???? Co. All Rights Reserved.
*
* This software is the confidential and proprietary information
* of um2m. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the license ... |
package service;
import java.util.List;
import dao.TestDao;
import pojo.TestItems;
public class InsertService {
public void insert(List<TestItems> items){
TestDao testdao=new TestDao();
testdao.insert(items);
}}
|
/**
* Kenny Akers
* Mr. Paige
* Homework #12
* 12/1/17
*/
public class Homework_12 {
private static MinPriorityQueue<Integer> minQ;
private static MaxPriorityQueue<Integer> maxQ;
public static void main(String[] args) {
if (StdIn.isEmpty()) {
System.out.println("No numbers.");
... |
package com.jit.biconsumer02;
import java.util.ArrayList;
import java.util.function.BiConsumer;
/*Increament employee salary */
public class Test {
public static void main(String[] args) {
ArrayList<Employee> l = new ArrayList<>();
populate(l);
BiConsumer<Employee, Double> c = (e,d) -> e.salary = e.salary + d... |
package com.finahub.coding.server.vo;
public class BankInfo {
private int bank_id;
private String bankname=null;
private String creditcardamount=null;
private String debitcardamount=null;
public int getBank_id() {
return bank_id;
}
public void setBank_id(int bank_id) {
this.bank_id = bank_id;
}
public S... |
package org.wso2.carbon.identity.recovery.endpoint.dto;
import io.swagger.annotations.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotNull;
@ApiModel(description = "")
public class ReCaptchaResponseTokenDTO {
private String token = null;
/**
**/... |
package com.hr.checksystem.repository;
import java.util.List;
import com.hr.checksystem.model.Checksystem;
import com.hr.schedule.model.FactSchedule;
public interface CheckRepository {
void saveChecksystem(Checksystem checksystem);
List<Checksystem> findPartCheckSystem(String empNo,int days);
List<Checksystem>... |
package com.bookmarkrn;
import android.content.Intent;
import android.os.Bundle;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
... |
package functions;
/**
* Created by pavel on 04.10.16.
*/
public interface IFunction {
float getLimit();
float getValue(int dimension, float[] values);
}
|
package com.example.mdt;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Address;
import android.location.Geocoder;
im... |
package arraylist;
import java.util.ArrayList;
import java.util.List;
public class Capsules {
private List<String> capsules = new ArrayList<>();
public void addLast(String capsuleColor) {
this.capsules.add(capsuleColor);
}
public void addFirst(String capsuleColor) {
this.capsules.add... |
/*
Copyright 2015 Alfio Zappala
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 writing, software... |
package com.github.andlyticsproject.io;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.text.ParseException;
import java.text.SimpleDateFo... |
package main.Controller;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javafx.scene.control.ChoiceBox;
import javafx.scene.control.Label;
import javafx.scene.control.TextFie... |
package com.shendrikov.alex.mynotes.fragment;
import android.view.View;
/**
* Created by Alex on 25.04.2017.
*/
public interface OnSomeEventListener {
void saveChanges();
}
|
package com.trump.auction.pals.service;
import com.trump.auction.pals.api.model.alipay.AliPayQueryResponse;
import com.trump.auction.pals.api.model.alipay.AlipayBackRequest;
import com.trump.auction.pals.api.model.alipay.AlipayBackResponse;
import com.trump.auction.pals.api.model.alipay.AlipayPayRequest;
import com.tr... |
package com.crackdevelopers.goalnepal.Volley;
/**
* Created by trees on 8/28/15.
*/
public class KEYS
{
public static final String GALLERY="galleries", VENUE="venue", IMAGE="img", DATE="pub_date";
///KEYS OF
}
|
package com.datastax.poc.log;
import com.datastax.driver.core.utils.UUIDs;
import com.datastax.driver.mapping.annotations.ClusteringColumn;
import com.datastax.driver.mapping.annotations.Column;
import com.datastax.driver.mapping.annotations.PartitionKey;
import com.datastax.driver.mapping.annotations.Table;
import j... |
package com.example.rock.harayo;
/**
* Created by User on 7/21/2019.
*/
public final class Constants {
public static final String BASE_URL = "http://10.16.1.168:5000/";
}
|
package exercicio03;
public class reta
{
public Ponto2D a,b;
public reta(float ax,float ay,float bx,float by)
{
a=new Ponto2D(ax,ay); //chamadas dos contrutores da classe Ponto
b=new Ponto2D(bx,by);
}
public void mostraCoeficiente()
{ a.mostraCoefi... |
package com.example.appuel.modal;
public class ThoiKhoaBieu {
public int Id;
public String tenmonhoc;
public String thoigian;
public String phong;
public int ngayhoc;
public ThoiKhoaBieu(int id, String tenmonhoc, String thoigian, String phong, int ngayhoc) {
Id = id;
this.tenmo... |
/*
* @lc app=leetcode.cn id=87 lang=java
*
* [87] 扰乱字符串
*/
// @lc code=start
class Solution {
public boolean isScramble(String s1, String s2) {
int len1 = s1.length();
int len2 = s2.length();
if (len1 != len2)
return false;
boolean[][][] dp = new boolean[len1][len1][... |
package org.usfirst.frc.team5114.MyRobot2016.subsystems;
import java.awt.Robot;
import javax.management.timer.Timer;
import org.usfirst.frc.team5114.MyRobot2016.RobotMap;
import org.usfirst.frc.team5114.MyRobot2016.commands.*;
import edu.wpi.first.wpilibj.VictorSP;
import edu.wpi.first.wpilibj.CANTalon;
import edu.... |
package com.github.hymanme.tagflowlayout;
import android.view.View;
/**
* /**
* Author :hyman
* Email :hymanme@163.com
* Create at 2016/9/4
* Description:
*/
public interface OnTagClickListener {
void onClick(View view, int position);
void onLongClick(View view, int position);
}
|
package com.mcl.mancala.beans;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
/*
* Bean used for storing Player state and utility methods that will modify the state of pit related properties.
*
* @author Maxim N
* */
@AllArgsConstructor
@Getter
@Set... |
package com.aidigame.hisun.imengstar.widget.fragment;
import java.util.ArrayList;
import me.maxwin.view.XListView;
import me.maxwin.view.XListView.IXListViewListener;
import me.maxwin.view.XListViewHeader;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.ap... |
package com.alibaba.druid.mysql;
import com.alibaba.druid.DbTestCase;
import com.alibaba.druid.util.JdbcConstants;
import com.alibaba.druid.util.JdbcUtils;
import com.alibaba.druid.util.MySqlUtils;
import com.alibaba.fastjson2.util.TypeUtils;
//import com.mysql.jdbc.ConnectionImpl;
import java.sql.Connection;
import ... |
package com.alibaba.druid.bvt.sql.odps;
import org.junit.Assert;
import com.alibaba.druid.sql.SQLUtils;
import junit.framework.TestCase;
public class OdpsFormatCommentTest17 extends TestCase {
public void test_column_comment() throws Exception {
String sql = "set xxx=aaa;--ssss";
Assert.assertEq... |
/*
Framework for MDP Solver
Stephen Majercik
*/
import java.io.*;
import java.util.Arrays;
public class MDP {
// number of states and actions in the MDP
private static final int NUM_STATES = 65;
private static final int NUM_ACTIONS = 4;
// N = go-north, E = go-east, S = go-south, W... |
package com.tecsup.cps.lab02b_git;
public class Vista {
int cla;
int ga;
}
|
package zhuoxin.com.viewpagerdemo.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.Switch;
import zhuoxin.com.viewpagerdemo.R;
import zhuoxin.com.viewpagerdemo.utils.M... |
package com.g74.rollersplat.viewer.game;
import com.g74.rollersplat.viewer.gui.GUI;
import com.g74.rollersplat.model.elements.Element;
public class PlayerViewer implements ElementViewer {
public void drawElement(Element player, GUI gui) {
gui.drawPlayer(player.getPosition());
}
}
|
public class Third extends Declension
{
Third()
{
name="Third";
Behavior= (BetterBehavior) new notCom();
Behavior2= (BestBehavior) new notSup();
}
public static void isGenderT()
{
System.out.println("Third Declension");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
... |
package pl.manufacturer.object.example.pojo.extended;
import pl.manufacturer.object.example.pojo.simple.SimpleBooleanObject;
import pl.manufacturer.object.example.pojo.simple.SimpleStringObject;
public class ExtendedBooleanStringObject {
private String simpleString;
private Boolean simpleBoolean;
priva... |
package dao;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
import hibernate.HibernateUtil;
import model.Team;
import sun.tools.jar.Main;
public class TeamDAO implements TeamInt... |
package com.skp.test.greedy;
import static org.junit.Assert.assertEquals;
import java.util.Map;
import org.junit.Test;
public class GreedyTest {
@Test
public void test() {
Greedy sut = new Greedy();
Map<Integer, Integer> changes = sut.buy(2000, 10000);
assertEquals(changes.get(5000).intVa... |
package com.trump.auction.back.rule.service;
import com.cf.common.util.page.Paging;
import com.trump.auction.back.product.vo.ParamVo;
import com.trump.auction.back.rule.model.AuctionRule;
import java.util.List;
import java.util.Map;
/**
* 竞拍规则管理
*
* @author zhangliyan
* @create 2018-01-03 14:59
**/
public inter... |
package com.leyton.flow.activator.imple;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.integration.annotation.MessageEndpoint;
import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.messaging.Message;
import com.leyton.flow.activator.inter... |
class Solution {
public int numJewelsInStones(String J, String S) {
int count = 0;
for(int i =0; i < J.length(); i++) {
char ch = J.charAt(i);
for(int j =0; j < S.length(); j++) {
if (ch == S.charAt(j)) {
count++;
}
}
}
... |
package com.example.administrator.panda_channel_app.Activity;
import android.content.Intent;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.example.administrator.panda_... |
/**
* COPYRIGHT (C) 2013 KonyLabs. All Rights Reserved.
*
* @author rbanking
*/
package com.classroom.services.facade.dto.entities;
import java.util.UUID;
import javax.xml.bind.annotation.XmlRootElement;
import com.classroom.services.facade.dto.IUserDependent;
/**
* Transfer object for user detail informatio... |
package it.sevenbits.codecorrector.formatter.javaformatter;
/**
* Created by remmele on 05.07.16.
*/
public enum State {
Word, Space, NewLine, EndLine
}
|
package net.awesomekorean.podo.lesson.lessons;
import net.awesomekorean.podo.R;
import java.io.Serializable;
public class Lesson20 extends LessonInit_Lock implements Lesson, LessonItem, Serializable {
private String lessonId = "L_20";
private String lessonTitle = "wish";
private String lessonSubTitle = ... |
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.