text stringlengths 10 2.72M |
|---|
/**
* Created by chenguanghe on 2/26/15.
*/
public class MinHashAccuracy {
private MinHashAccuracy(){}
private double error;
private MinHash minHash;
public MinHashAccuracy(String folder, int numPermutations, double error){
this.error = error;
this.minHash = new MinHash(folder, numPerm... |
package com.Appthuchi.Appqlthuchi.DAO;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.Appthuchi.Appqlthuchi.database.Database;
import com.Appthuchi.Appqlthuchi.moder.KhoanThu;
import java.util.ArrayList;
... |
package example.com.triangledrawer;
import android.app.Dialog;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
imp... |
package com.etech.testproject.ui.adapter;
import android.content.Context;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.etech.testproject.databind... |
package com.cngl.bilet.entity;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence... |
package com.jiuzhe.app.hotel.constants;
public enum HotelTypeEnum {
APARTMENT("公寓", 0), HOTEL("酒店", 1), HOUSE("住宅", 2);
// 成员变量
private String desc;
private int index;
// 构造方法
private HotelTypeEnum(String desc, int index) {
this.desc = desc;
this.index = index;
}
publ... |
package com.xiruan.demand.demand.template;
import com.xiruan.demand.entity.monitor.Service;
import com.xiruan.demand.entity.monitor.TemplateInService;
import com.xiruan.demand.repository.TemplateInServiceDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component... |
package com.product.controller;
import com.product.entity.SizeMasterEntity;
import com.product.service.SizeMasterService;
import com.system.constants.BaseErrorConstants;
import com.system.util.*;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.w... |
package com.click.prueba.controller;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
impor... |
package com.ssm.wechatpro.service;
import com.ssm.wechatpro.object.InputObject;
import com.ssm.wechatpro.object.OutputObject;
public interface WechatAdminRoleService {
public void addRole(InputObject inputObject,OutputObject outputObject) throws Exception;
public void deleteById(InputObject inputObject,OutputObj... |
package com.situ.student.dao;
import java.util.List;
import com.situ.student.controller.BanjiMainServlet;
import com.situ.student.controller.BanjiSearchCondition;
import com.situ.student.entity.Banji;
/**
* student操作的dao
*/
public interface IBanjiDao {
/**
* 添加学生到数据库
* @param student 要添加的学生
* @return 返回影响的... |
package com.fernamuruthi.mkuki.api.model;
import com.google.gson.annotations.SerializedName;
/**
* Created by 001590 on 2016-12-06.
*/
public class Media {
private long id;
@SerializedName("media_type")
private String mediaType;
private int priority;
private String platform;
@SerializedName... |
package me.leafs.cf.gui.elements;
import me.leafs.cf.utils.ChatFilterGuis;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiTextField;
public class FilterInput extends GuiTextField {
private static final Fo... |
package nl.quintor.studybits.studybitswallet.exchangeposition;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.support.annotation.NonNull;
import java.util.ArrayList;
import java.util.... |
/* ReceiptFactoryTest.java
Entity for the ReceiptFactoryTest
Author: Zuko Fukula (217299911)
Date: 6 June 2021
*/
package za.ac.cput.Factory;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import za.ac.cput.Entity.Receipt;
import static o... |
/**
*
*/
package biorimp.optmodel.space.generation;
import biorimp.optmodel.mappings.metaphor.MetaphorCode;
import biorimp.optmodel.space.Refactoring;
import biorimp.optmodel.space.feasibility.InspectRefactor;
import edu.wayne.cs.severe.redress2.entity.TypeDeclaration;
import edu.wayne.cs.severe.redress2.entity.refa... |
package enibdiscovery.enibdiscovery.model;
import java.util.Collections;
import java.util.List;
public class QuestionBankEdm {
private List<QuestionEdm> mQuestionListEdm;
private int mNextQuestionIndexEdm;
public QuestionBankEdm(List<QuestionEdm> questionListEdm){
mQuestionListEdm=questionListEdm... |
package com.funlib.http.image;
public class ImageCacheStatus {
/** 图片获取失败 */
public static final int FAIL = 0;
/** 图片获取成功 */
public static final int SUCCESS = 1;
/** 图片获取取消 */
public static final int CANCELED = 2;
}
|
package com.pineapple.mobilecraft.utils;
/**
* Created by yihao on 8/13/15.
*/
public class ApiException extends RuntimeException {
public int mErrorCode;
//public String mErrorMessage;
public ApiException(int errorCode){
mErrorCode = errorCode;
}
}
|
package com.smxknife.kafka.demo02;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import java.time.Duration;
import java.util.Collections... |
/*
* Sonar PHP Plugin
* Copyright (C) 2010 Sonar PHP Plugin
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
package com.facebook.react.flat;
import android.util.SparseIntArray;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.uimanager.OnLayoutEvent;
import com.facebook.react.uimanager.ReactShadowNodeImpl;
import com.facebook.react.uimanager.ReactStylesDiffMap;
import com.facebook.react.uiman... |
package micro.usuarios.publicos.services;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import interfaces.interfaces.MainCrud;
import micro.usuarios.publicos.interfaces.IPermisoPublico;
import model.auth.usuarios.publicos.PermisoPublico;
@Service
public class... |
package br.edu.ifam.saf.dao;
import java.util.List;
import javax.persistence.EntityManager;
public class GenericDAO<E> {
private final EntityManager em;
private final Class<E> classe;
public GenericDAO(EntityManager em, Class<E> classe) {
this.em = em;
this.classe = classe;
}
... |
package Listeners;
import java.awt.Component;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import FramesComponets.Wypozyczenie;
import model.Model;
import control.AbstractContoler;
import control.AbstractSingleCont... |
public class Square extends Quadrilateral {
public float sideLength;
public Square(float len) {
this.sideLength = len;
}
@Override
public float getArea() {
return sideLength * sideLength;
}
@Override
public String getType() {
return "Square";
}
}
|
package br.com.senior.mydomain.myservice.properties;
import br.com.senior.messaging.configuration.ServiceConfiguration;
import br.com.senior.messaging.model.ServiceContext;
/**
* This is a generated file. DO NOT EDIT ANY CODE HERE, YOUR CHANGES WILL BE LOST.
*
*/
public class BaseProperties {
/**
* Get curre... |
package com.smallproject.dominicparks.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.Select;
public class AddressPage {
WebDriver webdriver;
public A... |
package com.ace.easyteacher.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android... |
package com.huawei.esdk.demo.action;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import ... |
package com.tt.miniapp.settings.data;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.tencent.appbrand.mmkv.MMKV;
import com.tt.miniapp.mmkv.KVUtil;
import com.tt.miniapphost.host.HostDependManager;
import org.json.JSONObject;
public class ... |
package corgi.hub.core.mqtt.common;
import org.springframework.stereotype.Component;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
/**
* Created by Terry LIANG on 2017/1/3.
*/
@Component
public class KafkaConsumerRejectedExecutionHandler implements RejectedEx... |
package de.jmda.home.ui.vaadin.uiarea;
import com.vaadin.ui.Notification;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@SuppressWarnings("serial")
public class AreaRightComponentController implements ClickListener
{
private AreaRightComponent component;
public AreaRightCompone... |
package com.app;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Accion accion = null;
int opcionSeleccionada = 0;
Scanner scanner = null;
try {
System.out.print("Ingresa la opción para ejecutar (1- crear, 2- editar, 3- eliminar): ");
scanner = new Scanner(Sy... |
package com.susu.gradlecommanddemo.main;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Progress... |
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class TestOperator
{
Literal lit1, lit2, lit3, wLit1, wLit2, wLit3;
@Before
public void setup()
{
lit1 = new Literal(1);
Actor act1 = new Actor();
lit1.addActor(act1);
li... |
package org.browsexml.timesheetjob.web;
import java.beans.PropertyEditorSupport;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.browsexml.timesheetjob.model.Constants;
import org.browsexml.timesheetjob.model.Job;
public class PhonePropertyEditor extends PropertyEditor... |
/*
* Javaで作って学ぶ暗号技術
* http://www.amazon.co.jp/Java%E3%81%A7%E4%BD%9C%E3%81%A3%E3%81%A6%E5%AD%A6%E3%81%B6%E6%9A%97%E5%8F%B7%E6%8A%80%E8%A1%93-RSA-SHA%E3%81%AE%E5%9F%BA%E7%A4%8E%E3%81%8B%E3%82%89SSL%E3%81%BE%E3%81%A7-%E7%A5%9E%E6%B0%B8-%E6%AD%A3%E5%8D%9A/dp/4627847610
*
* 第2章 公開鍵暗号RSA 計算方法
*
* Copyright 2015 k.ta... |
/**
*
*/
package com.example.flickr.util;
/**
* @author Sally
*
*/
public class util {
}
|
package com.github.paulovictorpvc.hearthstoneapi.resource;
import java.util.List;
import java.util.Optional;
import javax.validation.ConstraintViolationException;
import javax.validation.Valid;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.... |
package lab_12_problem2;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea... |
package homepage.desktop.pages;
import base.PageObject;
import global.Global;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class CustomerCare_LandingPage extends PageObject {
@FindBy(css = "[data-spm=helpcenter]") private WebElement helpCenter_lbl;
public boolean ... |
package com.CollectionsMap;
import com.Collections.*;
/**
* Created by Mallika Aruva on 2/16/2018.
*/
public interface ProductLookUpTable {
void addProduct(Product product);
void clear();
Product lookUpByID(int id);
}
|
package com.ykalayy.statemachine.action;
import org.springframework.statemachine.action.Action;
import com.ykalayy.statemachine.resources.Events;
import com.ykalayy.statemachine.resources.States;
public interface ActionBase extends Action<States,Events>{
}
|
package itri.io.emulator.parameter;
import itri.io.emulator.cleaner.FilterOption;
/**
* Status of an operation. Available status are success, warning, error.
*/
public class Status {
private final static String SUCCESS = "SUCCESS";
private final static String WARNING = "WARNING";
private final static String E... |
package testapp.employeemanagement;
import in.conceptarchitect.collections.LinkedList;
public class EmployeeManager {
public double average(LinkedList<Employee> employees) {
double sum=0;
for(Employee emp : employees)
sum+=emp.getSalary();
return sum/employees.size();
}
public double averageSa... |
package hbi.core.salesOrder.mapper;
import com.hand.hap.mybatis.common.Mapper;
import hbi.core.salesOrder.dto.Customers;
import java.util.List;
/**
* Created by ASpiralMoon on 2017/1/13.
*/
public interface CustomersMapper extends Mapper<Customers> {
List<Customers> queryByParams(Customers customers);
}
|
/*
* Copyright (C) 2023 Hedera Hashgraph, LLC
*
* 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 la... |
package com.rx.rxmvvmlib.ui.base;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.rx.rxmvvmlib.ui.IBaseView;
import com.rx.rxmvvmlib.util.SoftKeyboardUtil;
import com.rx.rxmvvmlib.viewmodel.base.RxBaseViewModel;
import com.trello.rxlif... |
package com.jpro.flashCardsUi.domain;
public enum FlashCardProgress {
NEW, BAD, GOOD, DONE
}
|
/*
* 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.example.tarea1;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.text.util.Linkify;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget... |
package com.kaibo.book.api;
import com.kaibo.book.dto.BookIsbnDto;
import com.kaibo.book.dto.BookSearchDto;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
/**
* @author kaibo
* @date 2018/9/26 10:45
* @GitHub:https://github.com/yuxuelian
* @email:kaibo1... |
package com.kiyeon.practicespringjpa.chapter3.entity;
import lombok.*;
import javax.persistence.*;
@Entity
@Getter @Setter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@ToString(of = {"id", "username", "age"}) // mapping 된 필드는 추가하면 해당 객체도 출력하면서 무한루프 탈 수도 있음
public class Chap3Member {
@Id @GeneratedValue
... |
/*
* 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 com.example.codetribe1.constructionappsuite.dto.transfer;
import com.example.codetribe1.constructionappsuite.dto.BankDTO;
impo... |
package com.elvarg.world.entity.combat.method.impl.specials;
import com.elvarg.world.entity.combat.CombatSpecial;
import com.elvarg.world.entity.combat.CombatType;
import com.elvarg.world.entity.combat.hit.PendingHit;
import com.elvarg.world.entity.combat.method.CombatMethod;
import com.elvarg.world.entity.impl.Charac... |
/*
* 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 hal.tokyo.rd4c.bocco4j;
/**
*
* @author gn5r
*/
public class Sample {
public static void main(String[] args) throws Ex... |
package com.algorithms4.sort.test2;
/**
* Created by Sam Li on 3/14/2018.
*/
public class InsertSort {
public static void sort(int[] arr) {
for (int i = 0; i < arr.length; i++) {
for (int j = i; j > 0; j--) {
if (arr[j] < arr[j - 1]) {
int tmp = arr[j];
... |
package q4.account;
import java.util.ArrayList;
import q4.adress.Address;
import q4.authentication.AuthenticationStatus;
import q4.insurance.Insurance;
import q4.user.User;
public class Individual extends Account {
public Individual(User user, AuthenticationStatus authStatus, ArrayList<Address> adress) ... |
/**
*/
package contain.impl;
import contain.ContainPackage;
import contain.E3;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>E3</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class E3Impl extends EImpl implements ... |
package com.shopware.customer;
import static org.assertj.core.api.Assertions.assertThat;
import org.json.JSONObject;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.shopware.test.api.ApiManagement;
import com.shopware.test.base.TestB... |
package com.example.maptesting;
class LotLong {
double lag_point;
double long_point;
String title;
public LotLong(double lag_point, double long_point, String title) {
this.lag_point = lag_point;
this.long_point = long_point;
this.title = title;
}
public double getLag_... |
package com.lbsp.promotion.core.service.function;
import com.lbsp.promotion.core.service.BaseServiceImpl;
import com.lbsp.promotion.entity.model.FunctionOperate;
import com.lbsp.promotion.entity.query.GenericQueryParam;
import com.lbsp.promotion.entity.query.SortCond;
import org.springframework.stereotype.Service;
im... |
import java.util.Arrays;
import java.util.ArrayList;
public class Lotto {
private int lottoNum = 0;
private ArrayList<int[]> lottos;
private int threeMatch = 0;
private int fourMatch = 0;
private int fiveMatch = 0;
private int sixMatch = 0;
public Lotto(int price) {
lottoNum = (int) (price / 1000);
... |
package com.tencent.mm.plugin.appbrand.jsapi.camera;
class g$2 implements b {
final /* synthetic */ g fOH;
g$2(g gVar) {
this.fOH = gVar;
}
}
|
package hdfs.daemon;
import java.io.File;
import java.util.HashMap;
import java.util.Iterator;
import config.ClusterConfig;
import hdfs.FileDescriptionI;
public class FragmentRegister implements FragmentRegisterI {
private static final long serialVersionUID = 1L;
private HashMap<FileDescriptionI, Frag... |
package Lab06.Zad2;
public abstract class Factory {
protected abstract Deliver deliver();
public void LoadVehicle(String stuff){
System.out.println("A vehicle full of " + stuff);
}
}
|
package ua.pp.lebedev.Pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import java.util.List;
import com.selenium.test.webtestsbase.BasePage;
public class RegistrationPage extends BasePage {
private static final String PAGE_URL = "http://demo... |
/*
* 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 ToolsPanels;
import java.awt.AWTException;
import java.awt.Color;
import java.awt.MouseInfo;
import java.awt.Point;
import jav... |
package com.level01.체육복;
public class MTest {
public static void main(String[] args) {
int n = 5;
int[] lost = {2, 4};
int[] reserve = {1, 3, 5};
Solution solution = new Solution();
System.out.println(solution.solution(n, lost, reserve));
}
}
class Solution {
public int solution(int n, i... |
package co.th.aten.network.web;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import javax.persistence.EntityManager;
import org.jboss.seam.international... |
//Miruna Andreea Lazar 2459499L
public class Cards {
String value;
//String method to generate three cards
public String getCard(){
//generates a random number within the 5 elements of the array range
int randomCard = (int) (Math.random()*5);
String cards = new String [] {"King","Q... |
package polydungeons;
import net.fabricmc.api.ModInitializer;
import polydungeons.block.PolyDungeonsBlocks;
import polydungeons.block.entity.PolyDungeonsBlockEntities;
import polydungeons.container.PolyDungeonsContainers;
import polydungeons.entity.PolyDungeonsEntities;
import polydungeons.item.PolyDungeonsItems;
impo... |
package com.tencent.mm.plugin.soter_mp.a;
import android.app.Activity;
import com.tencent.mm.plugin.soter_mp.b.d;
import com.tencent.mm.plugin.soter_mp.b.e;
import com.tencent.mm.plugin.soter_mp.ui.SoterAuthenticationUI;
import com.tencent.mm.sdk.platformtools.x;
import java.lang.ref.WeakReference;
public abstract cl... |
package com.zjh.administrat.torchbearer_power.bag.fragmentbag;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app... |
package pretask.test;
public class WordFinder {
private String sentence;
public WordFinder(String text){
this.sentence = text;
}
public int wordPosition(String sentence, String wordToBeFound){
String[] wordlist = sentence.split(" ");
int found=-1;
for (int i=0; i<wordlist.length-1;i++) {
if (wordlist... |
package com.studio.saradey.aplicationvk.mvp.view;
import com.arellomobile.mvp.MvpView;
import com.studio.saradey.aplicationvk.model.view.BaseViewModel;
import java.util.List;
/**
* @author jtgn on 11.08.2018
*/
//Этот интерфейс будет отвечать за отображение списков: стена, комментарии, обсуждения и тд.... |
package de.pheru.fx.mvp.providers;
import de.pheru.fx.mvp.qualifiers.ApplicationStylesheets;
import javax.enterprise.inject.Produces;
import javax.inject.Singleton;
import java.util.List;
@Singleton
public class StylesheetProvider {
private List<String> applicationStylesheets;
public void setApplicationSty... |
package mygroup;
import java.util.concurrent.locks.*;
public class UseLock {
public static void useSynchronize() throws InterruptedException {
final Object lock = new Object();
new Thread(new Runnable() {
@Override public void run() {
synchronized(lock) {
... |
package com.tencent.mm.ak;
import com.tencent.mm.a.g;
import com.tencent.mm.model.e;
import com.tencent.mm.model.s;
import com.tencent.mm.modelcdntran.b;
import com.tencent.mm.modelcdntran.d;
import com.tencent.mm.modelcdntran.i;
import com.tencent.mm.modelcdntran.i.a;
import com.tencent.mm.modelcdntran.keep_ProgressI... |
package com.example.demo.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.... |
/*
* 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 dk.sdu.mmmi.cbse.osgienemy;
import dk.sdu.mmmi.cbse.common.data.Entity;
import dk.sdu.mmmi.cbse.common.data.GameData;
import d... |
package edu.temple.convoy.fragments;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.Toast;
import androi... |
package sse.tongji.edu.cluster.dataaccess;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import sse.tongji.edu.cluster.dataaccess.intf.IShowClusterHistoryDao... |
package Hyperbel;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner enterObj = new Scanner(System.in);
System.out.printf("a: ");
int a = enterObj.nextInt();
System.out.printf("b: ");
int b = enterObj.nextInt();
System.out.printf("c: ");
int c = enterObj.... |
package StepDefinitions;
import io.cucumber.java.en.*;
import SoftwareAS.Controller.*;
import SoftwareAS.Model.*;
import Exceptions.*;
import static org.junit.Assert.*;
import java.util.GregorianCalendar;
//Massimo
public class SummarySteps {
private DataBase database;
private ActivitySummary aSummary;
private... |
package chapter13.Exercise13_08;
import java.util.ArrayList;
public class MyStack extends ArrayList implements Cloneable {
private ArrayList<Object> list;
public MyStack() {
list = new ArrayList<Object>();
}
@Override
public boolean isEmpty() {
return list.size() == 0 ? true : false;
}
... |
package ajedrez;
import java.util.LinkedList;
/**
* Tablero de Ajedrez.
* @author jbobi
*
*/
public interface ITablero {
/**
* Tamaño del Tablero de ajedrez.
*/
int SIZE = 8;
/**
* Devuelve el Tablero completo.
* @return Tablero.
*/
Figura[][] get();
/**
* Actualiza el Tablero.
... |
package com.tcs.apns.model;
public class APNSRequest {
private String[] message;
private String certificate;
private String[] iPhoneId;
private boolean prod;
private String proxyHost;
private String proxyPort;
private String responseMessage;
private String[] uniqueIdPerBatch;
private int numOfThreads;
privat... |
package edu.uci.ics.sdcl.firefly.controller;
import edu.uci.ics.sdcl.firefly.Answer;
import edu.uci.ics.sdcl.firefly.Microtask;
import edu.uci.ics.sdcl.firefly.Worker;
import edu.uci.ics.sdcl.firefly.WorkerSession;
/**
* Implements the strategy pattern to select the type of persistency (file or memory)
* @author ad... |
class Solution {
public boolean isPowerOfTwo(int n) {
if(n == 1) return true;
int power = 1;
for(int i = 1; i <= n / 2; i++){
power *= 2;
if(n == power) return true;
}
return false;
}
} |
package com.youthchina.dto.application;
import java.net.URL;
/**
* @program: youthchina
* @description: 邮件发送DTO
* @author: Qinghong Wang
* @create: 2019-05-12 16:25
**/
public class EmailSendingDTO {
private String jobName;
private String firstName;
private String lastName;
private URL url;
p... |
/*
* Copyright (c) 2017. Universidad Politecnica de Madrid
*
* @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es>
*
*/
package org.librairy.modeler.lda.eventbus;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.librairy.boot.eventbus.EventMessage;
import org.librairy.boot.model.Event;
import org.l... |
package org.webmaple.common.enums;
/**
* @author lyifee
* on 2021/1/7
*/
public enum NodeType {
WORKER("worker"),
ADMIN("admin")
;
private String type;
NodeType(String type) {
this.type = type;
}
public String getType() {
return type;
}
public void setType(Stri... |
package com.tencent.mm.protocal;
import com.tencent.mm.protocal.c.g;
public class c$en extends g {
public c$en() {
super("openDesignerEmojiView", "openDesignerEmojiView", 185, true);
}
}
|
package br.com.thiengo.examplejobscheduler.service;
import android.annotation.TargetApi;
import android.os.AsyncTask;
import android.os.Build;
import android.os.SystemClock;
import android.util.Log;
import br.com.thiengo.examplejobscheduler.domain.MessageEB;
import br.com.thiengo.examplejobscheduler.network.HttpConne... |
package com.example.wattson.InfoClasses;
import android.content.Intent;
import android.os.Parcel;
import android.os.Parcelable;
import java.text.SimpleDateFormat;
import java.util.Date;
public class TimeData implements Parcelable {
private String m_startTime;
private String m_endTime;
public TimeData(Lo... |
package blakeEasy;
import java.awt.Graphics;
import javax.swing.JApplet;
import java.awt.Font;
import java.awt.Color;
public class Wormhole extends JApplet {
public void paint(Graphics gfx){
gfx.setColor(Color.black);
gfx.fillRect(0, 0, this.getWidth(), this.getHeight());
int r = 0, g = 0, b =20, x1 = 110,x... |
package edu.cnm.deepdive.stockrollersservice.model.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDate;
import javax.persistence.Column;
import javax.persistence.Entity... |
//https://brilliant.org/mathematics-problem/kamilas-triangle-of-odd-numbers/?group=I3OlYiQan3eZ
import java.util.List;
import java.util.ArrayList;
public class KamillasTriangleOfOddNumbers {
//we asume the first row to be row=1.
public static List<Integer> generateOddNumbers(int row, final int offsetNumber) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.