text stringlengths 10 2.72M |
|---|
package com.nearur.daa;
import android.support.annotation.IntegerRes;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.RadioButton;
import android.widg... |
package br.com.caelum.financas.teste;
import javax.persistence.EntityManager;
import br.com.caelum.financas.modelo.Conta;
import br.com.caelum.financas.util.JPAUtil;
public class TesteConta {
public static void main(String[] args) {
Conta conta = new Conta(1, "Leonardo", "45620", "Caixa", "054");
Entity... |
package com.cmpickle.volumize.view.edit;
import android.support.annotation.CallSuper;
import com.cmpickle.volumize.view.BasePresenter;
import icepick.State;
/**
* @author Cameron Pickle
* Copyright (C) Cameron Pickle (cmpickle) on 4/9/2017.
*/
public abstract class EditPresenter extends Bas... |
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Ge... |
package com.booking.hotelapi.exception;
import javax.validation.ConstraintViolationException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframe... |
package com.example.demo.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.demo.dao.ProductDao;
@Service
public class AppService {
//@Inject == > Byte Buddy weaving
@Autowired
private ProductDao productDao;
@Autowired
priv... |
package com.zhouyi.business.core.model;
import java.io.Serializable;
import java.util.Date;
public class LedenEquipmentParets implements Serializable {
private String pkId;
private String nodeCode;
private String paretsName;
private String paretsPlug;
private String equipmentCode;
private... |
package com.github.coyclab.hw7_userinterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;
public class MainActivity extends AppCompa... |
package com.nerdydev.mtawrapper.web.service;
import com.nerdydev.mtawrapper.web.dto.CheckIndexFileDto;
import com.nerdydev.mtawrapper.web.dto.WtcFolderNameDto;
import com.nerdydev.mtawrapper.web.exceptions.FileStorageException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.f... |
/*
3. Valósítsuk meg a Unix-szerű rendszerek grep programját! A Grep paraméterül vár egy szöveget és egy fájlnevet. Miközben olvassa a fájlt:
a) kilistázza azokat a sorokat, melyek megegyeznek a paraméter szöveggel.
b) kilistázza azokat a sorokat, melyben a szöveg megtalálható.
c) Szorgalmi feladat. A sor számát is kií... |
package com.facebook.react.util;
public class RNVersionUtils {
private static String propertyVersion = "0.55.4-LYNX-1.3.0.63-jsc";
public static String getVersion() {
return propertyVersion;
}
}
/* Location: C:\Users\august\Desktop\tik\df_rn_kit\classes.jar.jar!\com\facebook\reac... |
/*
* Copyright 2013 Cloudera 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 by applicable law or agreed to in... |
package nl.jtosti.hermes.security.screen;
import nl.jtosti.hermes.screen.Screen;
import nl.jtosti.hermes.screen.ScreenServiceInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentic... |
package com.jk.jkproject.ui.activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextVie... |
package cn.edu.nju.se.lawcase.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import cn.edu.nju.se.lawcase.entities.Chapter;
import cn.edu.nju.se.lawcase.entities.Statute;
public class TxtToStatute {
public static List<File> ge... |
package com.framework.service.impl;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java.util.Date;
import j... |
package com.tencent.mm.ae;
import android.database.Cursor;
import com.tencent.mm.model.ah;
import com.tencent.mm.model.au;
import com.tencent.mm.model.c;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.storage.a... |
package edu.temple.convoy.api;
import android.content.Context;
import android.util.Log;
import com.android.volley.Response;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Map;
import edu.temple.convoy.utils.Constants;
public class ConvoyAPI extends BaseAPI {
... |
package com.example.demo.Mappers;
import com.example.demo.domain.Course;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
public interface CourseMapper {
public Course getByKh(String kh);
public List<Map> getAll();
public boolean insert(@Param("kh") String kh, @P... |
import java.io.*;
import java.util.*;
class natural
{
public static void main(String args[])
{
int sum=0,r,n;
Scanner sc=new Scanner(System.in);
n=sc.nextInt();
while(n>0)
{
r=n%10;
sum=sum+r;
n=n/10;
}
System.out.println(sum);
}
}
|
package com.tencent.mm.storage;
import com.tencent.mm.a.e;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.report.f;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.smtt.sdk.TbsDownloadConfig;
import java.util.List;
final class al {
protected ... |
package edu.floridapoly.polycamsportal.Database;
/*
public static final String SCHEDULE_COL_ID = "ID";
public static final String SCHEDULE_COL_USER = "user";
public static final String SCHEDULE_COL_NAME = "name";
*/
public class ScheduleItem {
private String title;
private String name;
private String user... |
package com.angrykings;
import com.badlogic.gdx.math.Vector2;
import org.json.JSONException;
import org.json.JSONObject;
public class KeyframeData implements IJsonSerializable {
public int entityId;
public Vector2 position;
public float angle;
public KeyframeData() {
this.position = new Ve... |
package com.batiaev.java3.lesson7;
import org.junit.Test;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface Lesson7Annotation {
Class<? extends Throwable> expected() default Test.None.class;
}
|
package de.rwth.i9.palm.persistence;
import de.rwth.i9.palm.model.Role;
public interface RoleDAO extends GenericDAO<Role>, InstantiableDAO
{
public Role getRoleByName( String roleName );
}
|
package com.coalesce.config;
import java.util.List;
public interface IEntry {
/**
* Gets a value from a config entry.
*
* @return A string from the specified path.
*/
String getString();
/**
* Gets a value from a config entry.
*
* @return A double from the specified pa... |
package com.cn.jingfen.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import o... |
package com.wonders.task.audit.dbx.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Reposit... |
package app.election;
import app.enums.ElectionType;
import app.enums.Parties;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class ElectionData {
//ElectionData needs to be preprocessed before hand
private HashMap<Parties, Integer> voterDistribution;
private int elec... |
package com.opensource.redisaux.bloomfilter.core.filter;
import java.util.concurrent.TimeUnit;
class InnerInfo {
private double fpp;
private long exceptionInsert;
private String keyPrefix;
private String keyName;
private long timeout;
private TimeUnit timeUnit;
private boolean enableGrow;... |
package com.dvt.example.producer;
public class RestApplication {
}
|
package com.rs.utils;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.lang.reflect.InvocationTargetException;
import java.lang.ref... |
package vegoo.newstock.persistent.redis.impl;
import java.util.Collection;
import java.util.Dictionary;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.osgi.framework.BundleContext;
import org.osgi.service.cm.ConfigurationException;
import org.osgi.service.cm.ManagedService;
import or... |
package FShareServer;
import java.io.*;
import java.util.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.security.*;
import FShareCommon.*;
public class ServerMain {
public static void main(String[] argv) {
ArrayList<FileHaveIndex> fileIndex = new ArrayList<>();
ArrayList<Thr... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
package com.smxknife.java2.serializable;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
/**
* @author smxknife
* 2018/11/2
*/
public class EmployeeSerializableDemo {
public static void main(String[] args) {
Employee e = new E... |
/**
* A special implementation of the Node class used in
* HashMaps, as the key must also be stored with the object
* to resolve Hash Collisions.
*
* IMPORTANT NOTE: It seemed more elegant to make HNode inherit Node,
* and it does indeed avoid a fair bit of code duplication. HOWEVER, because
* the super constr... |
class Test_Perc2{
public static void main(String ag[]){
int a=30;
int b=40;
double tot=a+b;
double percA=a/tot*100.0;
double percB=b/tot*100.0;
System.out.println("perc of A is "+percA+"%");
System.out.println("perc of B is "+percB+"%");
}
} |
package Task3;
public class Main {
public static void main(String[] args) {
Student[] students = {new Student(), new Aspirant()};
students[0].setAvgMark(4.9);
students[0].setLastName("Flash Thompson");
students[1].setAvgMark(5);
students[1].setLastName("Peter Parker");
... |
/**
* Helios, OpenSource Monitoring
* Brought to you by the Helios Development Group
*
* Copyright 2007, Helios Development Group and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free softw... |
package uw.cse.dineon.restaurant;
import java.util.Collection;
import java.util.List;
import uw.cse.dineon.library.CustomerRequest;
import uw.cse.dineon.library.DiningSession;
import uw.cse.dineon.library.Order;
import uw.cse.dineon.library.Reservation;
import uw.cse.dineon.library.Restaurant;
import uw.cse.dineon.li... |
package com.penzias.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Cont... |
package itri.io.emulator.experiment;
public class BlockWithFrequency extends Block implements Comparable<BlockWithFrequency> {
private long frequency;
public BlockWithFrequency(long id) {
super(id);
this.frequency = 0;
}
public void updateFrequency() {
this.frequency++;
}
public long getFreq... |
package com.ybh.front.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class Product_IDC_repairExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table FreeHost_Product_IDC_repair
*
* @mbg.ge... |
package mando.sirius.bot;
import com.eu.habbo.Emulator;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.TextChannel;
import java.time.Instant;
public class Logging {
public static void error(Exception e) {//Todo: make this
Emulator.getLogging().handleException(e);
if ... |
package leetcode;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/**
* @author kangkang lou
*/
class PeekingIterator implements Iterator<Integer> {
List<Integer> list = new LinkedList<>();
public PeekingIterator(Iterator<Integer> iterator) {
// initialize any member ... |
package IB;
/**
* Created by Admin on 22-01-2017.
*/
public class squareroot {
public int sqrt(int a) {
int result = 0;
if(a==0 || a==1){
return a;
}
int start = 1;
int end = a;
int mid;
while(start <= end){
mid = (start+end)/2;
... |
package com.boot.spring.model;
public class Avatar {
}
|
package com.tencent.mm.plugin.hce.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
class HCETransparentUI$2 implements OnClickListener {
final /* synthetic */ HCETransparentUI kjt;
HCETransparentUI$2(HCETransparentUI hCETransparentUI) {
this.kjt = hC... |
package old.utility;
import static org.testng.Assert.assertTrue;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class Commonsutility {
public static void checkEnabledAndDisplayed(WebElement... elements) {
for (WebElement element : elements) {
assertTrue(element.isDispl... |
package com.foosbot.service.handlers;
import com.foosbot.service.handlers.payloads.NewSeasonPayload;
import com.foosbot.service.model.Model;
import java.util.Map;
public class NewSeasonHandler extends AbstractRequestHandler<NewSeasonPayload> {
public NewSeasonHandler(final Model model) {
super(NewSeason... |
package com.sunteam.library.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.widget.FrameLayout;
import com.sunteam.common.menu.BaseActivity;
import com.sunteam.common.menu.MenuConstant;
import com.sunteam.common.tts.TtsListener;
import com.sunteam.common... |
package com.hs.example.javaproxy.service.impl;
import com.hs.example.javaproxy.service.HelloService;
/**
* 静态代理类
*/
public class HelloServiceStaticProxy implements HelloService{
private HelloService helloService;
public HelloServiceStaticProxy(HelloService helloService){
this.helloService = helloS... |
package ru.kappers.model.dto.leon;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* DTO сущность участника соревнования в событии
* */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CompetitorLeonDTO {
private long id;
pri... |
package com.vladan.mymovies.ui.main.search;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;
import com.vladan.mymovies.data.AppDataManager;
import com.vladan.mymovies.data.model.Movie;
import com.vladan.mymovies.data.model.Response;
impo... |
package com.tencent.mm.g.a;
import java.util.Set;
public final class ms$a {
public Set bXI;
public String filePath;
}
|
package uk.co.samwho.modopticon;
import java.util.Set;
import javax.inject.Inject;
import javax.inject.Singleton;
import com.google.common.flogger.FluentLogger;
import net.dv8tion.jda.core.JDA;
import net.dv8tion.jda.core.Permission;
import net.dv8tion.jda.core.events.message.guild.GuildMessageReceivedEvent;
import... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
/**
* JbpmDelegation generated by hbm2java
*/
public class JbpmDelegation implements java.io.Serializable {
private BigDecimal id;
private JbpmProce... |
package ro.halic.catalin.mvptutorial.main.view;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import ro.halic.catalin.mvptutorial.R;
import ro.halic.catalin.mvptutorial.main.MainMVP;
public class MainActivity extends AppCompatActivity implements MainMVP.RequiredViewOps{
private Main... |
package controller;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import model.Artigo;
import model.AtuacaoProfissional;
import model.Candidato;
import model.Conferencia;
import model.Evento;
import model.FormacaoAcademica;
import model.Periodico;
import model.Premio;
import model... |
class Phone{
String model;//멤버변수
int value;
void print() {
System.out.println(value+"만원짜리"+model+"스마트폰");
}
}
public class PhoneDemo{
public static void main(String args[]) {
Phone myPhone = new Phone();
myPhone.model = "갤럭시 S9";
myPhone.value = 100;
myPhone.print();
}
}
|
package com.aprendoz_test.data;
/**
* aprendoz_test.AprEsperados
* 01/19/2015 07:58:52
*
*/
public class AprEsperados {
private AprEsperadosId id;
public AprEsperadosId getId() {
return id;
}
public void setId(AprEsperadosId id) {
this.id = id;
}
}
|
package com.sinata.rwxchina.basiclib.basic.basicmap;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView... |
package com.tencent.mm.plugin.appbrand.jsapi.d;
import com.tencent.mm.plugin.appbrand.jsapi.a;
import com.tencent.mm.plugin.appbrand.jsapi.c;
import com.tencent.mm.plugin.appbrand.l;
import com.tencent.mm.plugin.appbrand.page.p;
import org.json.JSONException;
import org.json.JSONObject;
public final class b extends a... |
package com.ddt.serviceInter;
import java.util.List;
import com.ddt.bean.Userinfo;
//import Bean.UserInfo;
public interface UserServiceInter {
// 增加用户信息
public void addUser(Userinfo user);
// 查找全部用户信息
public List findAllUser();
//按条件id查找部分学生
// public Student findUserById(Student stu);
//修改用户信息
public void u... |
/**
*
*/
package br.com.nozinho.ejb.dao.impl;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.persistence.EntityManager;
import org.apache.commons.collections.FastHashMap;
import br.com.nozinho.ejb.dao.GenericDAO;
/**
* @author AndreLA
*
*/
@SuppressWarnings({ "unchecked"... |
package Pessoa;
import Exceptions.*;
public class CadastroPessoa {
private RepositorioPessoa repositorioPessoa;
public CadastroPessoa(RepositorioPessoaLista repositorioPessoa){
this.repositorioPessoa = repositorioPessoa;
}
public CadastroPessoa(RepositorioPessoaArray repositorioPessoa){
this.r... |
package com.hanbit.gms.controller;
import com.hanbit.gms.constant.Butt;
import com.hanbit.gms.domain.ArticleBean;
import com.hanbit.gms.service.ArticleService;
import com.hanbit.gms.service.ArticleServiceImpl;
import oracle.net.ano.Service;
import java.util.ArrayList;
import java.util.List;
import javax.swing.*;
p... |
package mg.egg.eggc.compiler.libegg.mig;
import mg.egg.eggc.compiler.libegg.base.TERMINAL;
import mg.egg.eggc.runtime.libjava.EGGException;
public class TMig {
private TERMINAL terminal;
public String getNom() {
return terminal.getNom();
}
private StringBuffer entete;
public StringBuffer getEntete() {
ret... |
package org.study.design_patterns.factory.solution;
/**
* Created by iovchynnikov on 7/27/2015.
*/
public class Product2 extends Product implements ProductInterface {
@Override
public String getTitle() {
return "This is product2";
}
}
|
package edu.iit.cs445.StateParking.REST;
import java.util.*;
import edu.iit.cs445.StateParking.Objects.*;
import edu.iit.cs445.StateParking.ObjectsEnum.*;
public class ParkPresenterWithGeo {
public String pid;
public location_info location_info;
public HashMap<String, ArrayList<Double>> payment_info;
public ParkP... |
/*
* Copyright (c) 2012-2019 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.client.core;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.io.File;
import java.io.FileInputStream;
impo... |
package com.tencent.mm.plugin.chatroom.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.R;
import com.tencent.mm.model.au;
import com.tencent.mm.plugin.chatroom.d.d;
import com.tencent.mm.plugin.chatroom.d.k;
import com.tencent.mm.ui.base.h;
impo... |
/* 1: */ package com.kaldin.questionbank.technology.dto;
/* 2: */
/* 3: */ public class CompTechInfoDTO
/* 4: */ {
/* 5: */ private int ctechId;
/* 6: */ private String technology;
/* 7: */ private int companyId;
/* 8: */
/* 9: */ public int getCtechId()
/* 10: */ {
... |
package capitulo07;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
public class DrawSpiral extends JPanel {
public void paintComponent(Graphics g) {
int x = getSize().width / 2 - 10;
int y = getSize().height/ 2 - 10;
int width = 20;
int height = 20;
int startAngl... |
package com.jlgproject.activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import com.jlgproject.R;
import com.jlgproject.base.BaseActivity;
import com.jlgproject.util.ScreenUtil;
public class TwoCodeDialogActiv... |
package org.dkni.experimental.dao;
import org.dkni.experimental.domain.City;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import java.util.List;
/**
* Created by DK on 08.01.2016.
*/
@R... |
package com.rishi.baldawa.iq;
import java.util.function.BinaryOperator;
/*
Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as 00000010100101000001111010011100),
return 964176192 (represented in binary as 00111001011110000010100101000000).
Follow up:
If this... |
package com.example.study.broadcast;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.example.stud... |
package com.redbus.pages;
import org.openqa.selenium.StaleElementReferenceException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium... |
package bootcamp.selenium.intermediate;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import bootcamp.selenium.basic.LaunchBrowser;
public class ClickWithJS {
public static void main(String[] args) {
WebDr... |
package com.appdear.client.commctrls;
interface ListViewChangedCallback {
public void onChanged();
}
|
package a.b.c;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DownloadManager;
import android.content.DialogInterface;
... |
package com.rockwellcollins.atc.limp.translate.basicblocks.limp;
import java.util.LinkedHashMap;
import java.util.Map;
import jkind.lustre.Equation;
import com.rockwellcollins.atc.limp.Statement;
import com.rockwellcollins.atc.limp.translate.basicblocks.lustre.ExtendedEquation;
import com.rockwellcollins.atc.limp.tr... |
package com.bass.shop.action;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import com.bass.common.base.BaseStruts2Action;
import com.bass.shop.model.MessageBoard;
import com.bass.shop.service.MessageBoardService;
@Controller(v... |
package com.qualcomm.snapdragon.sdk.recognition.sample;
import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;
@AVClassName("People")
public class People extends AVObject {
@Override
public String toString() {
// return super.toString();
return getString("name");
}
... |
package com.notifica.core.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
public class LocalDateParser {
... |
package com.tencent.mm.plugin.remittance.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
class RemittanceResultNewUI$2 implements OnClickListener {
final /* synthetic */ RemittanceResultNewUI mDp;
RemittanceResultNewUI$2(RemittanceResultNewUI remittanceResu... |
package dev.borowiecki.home.after_week_1.solutions;
import java.util.Arrays;
public class Ex8 {
public static void main(String[] args) {
// rozwiazanie dla macierzy kwadratowej, i bez uzycia tablicy pomocniczej
int[][] array = {
{1, 2, 3},
{4, 5, 6},
... |
package com.deltastuido.store;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
impor... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... |
package com.qd.mystudy.misc;
import java.util.concurrent.*;
/**
* Created by liqingdong911 on 2015/6/2.
*/
public class TestExecutor {
public static void main(String[] args){
ExecutorService executorService = new ThreadPoolExecutor(0, 2, 60000L, TimeUnit.MILLISECONDS, new SynchronousQueue<Run... |
package com.gyk.s2h.varmisin;
/**
* Created by HULYA on 27.08.2017.
*/
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReferenc... |
package com.example.grduationproject;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import androidx.annotation.ContentView;
import androidx.annotation.Nullable;
public clas... |
/*
* 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 bbc.karate.club;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQL... |
package com.meebu;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.meebu.databinding.ActivityReviewsBinding;
import com.meebu.databinding.ActivitySavedAddressBinding;
public clas... |
/* good comment */
/** good comment */
/*/ good comment */
/*/ good comment /*/
/*
* comment /*
*/
/*/
* comment /*
*/
/* // wuff */
/* ** */
/*
/** * / / * // /*
*/
/*****/
/**/
/** **/
/*
*/
/**
*/
int main() {
return 0;
} |
package com.mockito.v4_v5_stubbing_expect;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.fail;
// @RunWith(MockitoJUnitRun... |
/*
* Copyright (c) 2019 Eshel.
*
* 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.example.healthmanage.ui.activity.famousDoctorHall.response;
import java.util.List;
/**
* desc:
* date:2021/7/2 14:20
* author:bWang
*/
public class ChinaCityDataBean {
/**
* id : 110000
* name : 北京市
* cityList : [{"id":"110000","name":"北京市","cityList":[{"id":"110101","name":"东城区"},... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.