text stringlengths 7 995k |
|---|
/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be us... |
package com.ramotion.foldingcell.examples.listview;
import android.view.View;
import java.util.ArrayList;
/**
* Simple POJO model for example
*/
public class Item {
private String price;
private String pledgePrice;
private String fromAddress;
private String toAddress;
private int requestsCount... |
package com.tradingvision.homeplus.RNTwilioVoice.fcm;
import android.app.ActivityManager;
import android.content.Intent;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
imp... |
/*
* The MIT License (MIT)
*
* MSUSEL Arc Framework
* Copyright (c) 2015-2019 Montana State University, Gianforte School of Computing,
* Software Engineering Laboratory and Idaho State University, Informatics and
* Computer Science, Empirical Software Engineering Laboratory
*
* Permission is hereby granted, fre... |
package com.alternative.bank.gui;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigu... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... |
package cc.mrbird.system.service.impl;
import cc.mrbird.common.service.impl.BaseService;
import cc.mrbird.system.dao.UserMapper;
import cc.mrbird.system.dao.UserRoleMapper;
import cc.mrbird.system.domain.MyUser;
import cc.mrbird.system.domain.UserRole;
import cc.mrbird.system.domain.UserWithRole;
import cc.mrbird.syst... |
/*
* 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 may ... |
package src.main.gov.va.vha09.grecc.raptat.gg.analysis.bootstrap;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import java.util.Random;
import src.main.gov.va.vha09.grecc.raptat.gg.helpers.GeneralHelper;
public class PhraseIDBootstrapSampler {
protected ArrayList<String> theGroups;... |
package com.zdq.middle;
import com.zdq.entity.TreeNode;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
* 94. 二叉树的中序遍历
* 给定一个二叉树,返回它的中序 遍历。
* <p>
* 示例:
* <p>
* 输入: [1,null,2,3]
* 1
* \
* 2
* /
* 3
* <p>
* 输出: [1,3,2]
* 进阶: 递归算法很简单,你可以通过迭代算法完成吗?
*... |
package com.distrimind.bcfips.crypto.general;
import java.security.SecureRandom;
import com.distrimind.bcfips.crypto.internal.params.*;
import com.distrimind.bcfips.crypto.AuthenticationParameters;
import com.distrimind.bcfips.crypto.AuthenticationParametersWithIV;
import com.distrimind.bcfips.crypto.CryptoServicesRe... |
/*
* Copyright 2016 Vincenzo Micelli
*
* 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.rajendarreddyj.spring.common.web;
import static com.rajendarreddyj.spring.Consts.APPLICATION_PORT;
import java.io.Serializable;
import org.springframework.beans.factory.annotation.Autowired;
import com.google.common.base.Preconditions;
import com.google.common.net.HttpHeaders;
import com.rajendarreddyj.... |
/*
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package xsf.zeuslibrary.zeusLog;
import android.util.Log;
/**
* Author: xushangfei
* Time: created at 2017/1/5.
* Description:baseLog
*/
public class BaseLog {
public static final int MAX_LENGTH = 4000;
public static void printDefault(int type, String tag, String msg) {
int index = 0;
in... |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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 agre... |
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.xmlui.utils;
import java.sql.SQLException;
import java.util.Map;
import javax.... |
package me.saket.dank.ui.submission;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ActivityOptions;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
i... |
package ra.jademy.persistance;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
public class MediaDAO {
private Properties importFile;
private static MediaDAO soleInstance = new MediaDAO();
private MediaDAO() {
importFile = new Properties();
try {
FileInputStream st... |
package javax.net;
public class Toto {
} |
package alien4cloud.paas.cloudify3.shared.restclient.auth;
import lombok.Setter;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.security.crypto.codec.Base64;
import org.springframework.stereotype.Component;
import lombok.Getter;
import lombok.extern... |
/*
* Copyright 2013-2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* Copyright (C) 2004-2016 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option... |
package de.tblsoft.solr.pipeline;
import de.tblsoft.solr.pipeline.bean.Document;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/**
* Created by tblsoft on 13.04.19.
*/
public class RandomReader extends AbstractReader {
@Override
public void read() {
try {
... |
package com.philm2k.wordmaster.view.word;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import androidx.annotation.NonNull;
im... |
/*
* 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 ... |
package ejercicioClase4T2;
public class Persona {
protected String nombre;
protected String dni;
public void hablar(){
System.out.println("hola");
}
public Persona(String n, String d) {
this.nombre = n;
this.dni = d;
}
protected String getNombre(){
return this.nombre;
}
} |
package seedu.address.model.module;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.VALID_DESCRIPTION_CS2101;
import static seed... |
package com.andela.app.animationchallenge;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will ... |
package com.fijo.cores.admin.authority.service.impl;
import java.util.List;
import com.fijo.cores.admin.authority.model.ShiroUser;
import com.fijo.cores.admin.authority.model.SysPermission;
import com.fijo.cores.admin.authority.model.SysRole;
import com.fijo.cores.admin.authority.model.SysUser;
import com.fijo.cores.... |
/*
* Copyright 2014 Google 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 ... |
package com.xeiam.xchange.dto;
import java.math.BigDecimal;
import java.util.Date;
import com.xeiam.xchange.currency.CurrencyPair;
/**
* Data object representing an order
*/
public class Order {
public enum OrderType {
/**
* Buying order (you're making an offer)
*/
BID,
/**
* Selling... |
package suhockii.dev.weather.utils;
import android.content.Context;
import android.database.Cursor;
import android.support.v4.widget.SimpleCursorAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import suhockii.dev.weather.R;
/**
* ... |
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2010, 2011, 2013, 2014, 2016 Synacor, Inc.
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software Foundation,
* versi... |
/* Copyright (c) 2014 Qualcomm Technologies Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted (subject to the limitations in the disclaimer below) provided that
the following conditions are met:
Redistributions of source code must retain the above... |
package io.github.mewore.tsw.exceptions.auth;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.BAD_REQUEST)
public class InvalidUsernameException extends Exception {
public InvalidUsernameException(final String message) {
... |
package org.javastack.jrinetd;
public class StickyKey {
public static final StickyKey DEFAULT = new StickyKey(0, 0);
public final long clusterId;
public final long stickyId;
private StickyKey(final long clusterId, final long stickyId) {
this.clusterId = (clusterId <= 0 ? 0 : clusterId);
this.stickyId = (stic... |
import java.util.Random;
public class RandomStream {
public static void main(String[] args) {
Random random = new Random();
// System.out.println(random.nextInt()); // not a stream!
random.ints().limit(4).limit(2).forEach((number) -> System.out.println(number));
// the anatomy of a ... |
package factorymethod;
/**
* 相减
*/
public class OperationSub extends Operate {
@Override
protected String getResult() {
return numA -numB + "";
}
} |
package homework;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* 本周作业:(必做)思考有多少种方式,在main函数启动一个新线程或线程池,
* 异步运行一个方法,拿到这个方法的返回值后,退出主线程?
* 写出你的方法,越多越好,提交到github。
*
* 管程Lock Condition方式
*/
public class LockConditionMethod {
... |
/* You are given a 10*10 2-D array(arr) containing only '+' and '-' characters, which represents a crossword puzzle.
You are also given n number of words which need to be filled into the crossword.
Cells containing '-' are to be filled with the given words. */
import java.util.*;
public class Crossword_puzzle {
... |
package com.yunbocheng.dao;
import com.yunbocheng.entity.Student;
import java.util.List;
/**
* 这是一个接口操作Student表
*/
public interface StudentDao {
// 查询student表的所有的数据,数据库中的每一行数据可以看做是一个student对象
// 数据库中可能存在多个数据,返回的数据应该放到一个集合里边
// 以下方法对应select的执行,查询数据库。
// 使用MyBatis查询数据库的方法
public List<Student> se... |
package com.excilys.web.controller;
import com.excilys.dto.CompanyDto;
import com.excilys.dto.ComputerDto;
import java.util.List;
public class UniquePage {
private ComputerDto computer;
private List<CompanyDto> companies;
private String viewName;
public ComputerDto getComputer() {
return this.comp... |
// Copyright (C) 2017 The Android Open Source Project
//
// 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 ... |
/*
* 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 may ... |
package uk.ac.ebi.pride.jmztab.model;
/**
* Define all elements used in metadata.
*
* @author qingwei
* @since 23/05/13
*/
public enum MetadataElement {
MZTAB ("mzTab"),
TITLE ("title"),
DESCRIPTION ("description"),
SAMP... |
package to.us.harha.parallelray.gfx;
import to.us.harha.parallelray.util.Config;
import to.us.harha.parallelray.util.math.Vec3f;
public class Light
{
// Light type
private Enum<Config.g_light_types> m_light_type;
// General light variables
private Vec3f m_color;
private float ... |
package com.mycompany.videoquerying;
import java.lang.String;
import java.lang.Object;
import java.lang.Math;
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import javax.swing.*;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;... |
/*
* This file is part of BlueMap, licensed under the MIT License (MIT).
*
* Copyright (c) Blue (Lukas Rieger) <https://bluecolored.de>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
package org.smartregister.opd.utils;
import org.smartregister.opd.R;
public class OpdImageUtils {
public static int getProfileImageResourceIdentifier() {
return R.drawable.avatar_woman;
}
} |
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 ag... |
package com.lushapp.codegen.db;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import com.lushapp.codegen.util.DBType;
import com.lushapp.codegen.vo.Column;
import com.lushapp.codegen.vo.DbConfig;
import com.lushapp.codege... |
/*
* 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 may ... |
package applica.aj;
import org.apache.commons.lang3.StringUtils;
/**
* Created by bimbobruno on 10/01/2017.
*/
public class AJDiff {
private final AJObject original;
private String path;
public AJDiff(AJObject original) {
this.original = original;
}
public AJDiff at(String path) {
... |
/*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the “License”). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... |
/*
* Copyright 2000-2015 JetBrains s.r.o.
*
* 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 agre... |
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Section3Application {
public static void main(String[] args) {
SpringApplication.run(Section3Application.class, args);
}
} |
/* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept.
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This software is provided under the terms of the Common Public License,
version 1.0, as published by http://www.opensou... |
package Q16_15_Master_Mind;
public class Question {
public static int code(char c) {
switch (c) {
case 'B':
return 0;
case 'G':
return 1;
case 'R':
return 2;
case 'Y':
return 3;
default:
return -1;
}
}
public static char letterFromCode(int k) {
switch (k) {
case 0:
return 'B';
... |
package Twitch;
class Credentials {
public static String TWITCH_TOKEN = "";
public static String TWITCH_CLIENT_ID = "";
} |
package com.irene.nytimessearch;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public voi... |
/*
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
package kr.dogfoot.hwplib.object.docinfo.bindata;
/**
* 바이너리 데이터의 타입
*
* @author neolord
*/
public enum BinDataType {
/**
* LINK. 그림 외부 파일 참조
*/
Link((byte) 0),
/**
* EMBEDDING. 그림 파일 포함
*/
Embedding((byte) 1),
/**
* STORAGE. OLE 포함
*/
Storage((byte) 2);
/**
* 파일에 저장되는 정수값
*/
private byte... |
package net.tatans.rhea.network.view;
import android.app.Activity;
import android.content.Context;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.PreferenceGroup;
import android.view.View;
/**
* Created by Yuriy on 16-04-30.
*/
public class ViewFinder {... |
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* MIT License
*
* Copyright © 2019 TouchBIT.
* Copyright © 2019 Oleg Shaburov.
*
* 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 t... |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3... |
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* Copyright (c) 2008-2019, Hazelcast, Inc. 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 ... |
package org.zstack.portal.apimediator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.zstack.core.Platform;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.cloudbus.CloudBusCallBack;
import org.zstack.core.clou... |
package com.googlecode.totallylazy.numbers;
import com.googlecode.totallylazy.functions.CurriedMonoid;
public class Average implements CurriedMonoid<Number> {
public Number call(Number average, Number value) {
return weighted(average).combine(weighted(value));
}
@Override
public Number identi... |
package com.team11.PharmacyProject.offer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface OfferRepository extends JpaRepository<Offer, Long> {
... |
package net.minecraft.client.renderer.entity;
import net.minecraft.entity.monster.*;
import net.minecraft.util.*;
import java.util.*;
import net.minecraft.client.model.*;
import com.google.common.collect.*;
import net.minecraft.client.renderer.entity.layers.*;
import net.minecraft.entity.*;
public class RenderZombie ... |
/*
* Copyright 2019 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/**
* 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 may... |
package it.unibz.inf.ontop.owlapi;
/*
* #%L
* ontop-test
* %%
* Copyright (C) 2009 - 2014 Free University of Bozen-Bolzano
* %%
* 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
*
* ... |
package com.invoicing.manage.comment.entity;
import java.io.Serializable;
import java.util.List;
public class PageInfo<T>
implements Serializable
{
private int pageNo;
private int pageSize;
private int total;
private List<T> rows;
public PageInfo()
{
this.pageNo = 1;
this.pageSize = 10;
thi... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.derived;
import com.yahoo.document.ReferenceDataType;
import com.yahoo.document.TemporaryStructuredDataType;
import com.yahoo.searchdefinition.DocumentReference;
imp... |
/*
* 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 exerc_lista01;
/**
*
* @author Administrador
*/
public class Exercicio_20 {
public Exercicio_20() {
//Código d... |
/* ===========================================================
* Orson Charts : a 3D chart library for the Java(tm) platform
* ===========================================================
*
* (C)opyright 2013-2016, by Object Refinery Limited. All rights reserved.
*
* http://www.object-refinery.com/orsoncharts/i... |
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package net.oschina.app.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.Button;
/**
* Created by Administrator on 2016/6/25.
*/
publi... |
import org.sql2o.*;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.List;
import java.util.Arrays;
public class PersonTest {
@Rule
public DatabaseRule database = new DatabaseRule();
@Test
public void person_instantiatesCorrectly_true() {
Person testPerson = new Person("Joe Smith", ... |
package com.gzc.chapter7.sample;
public class Host {
private final Helper helper = new Helper();
public void request(final int count, final char c) {
System.out.println(" request(" + count + ", " + c + ") BEGIN");
new Thread(() -> helper.handle(count, c)).start();
System.out.println... |
package com.testinium.page;
import com.testinium.methods.Methods;
import org.openqa.selenium.By;
public class PuanCatalog {
Methods methods;
public PuanCatalog(){
methods = new Methods();
}
public void puanAndClasic() {
methods.click(By.cssSelector(".logo-icon")); //anasayfaya dönül... |
package com.commercetools.sync.products.utils;
import static com.commercetools.sync.commons.utils.CommonTypeUpdateActionUtils.buildUpdateAction;
import static java.lang.String.format;
import com.commercetools.sync.commons.exceptions.BuildUpdateActionException;
import com.commercetools.sync.products.AttributeMetaData;... |
// This is a generated file. Not intended for manual editing.
package de.platon42.intellij.plugins.m68k.psi;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public interface M68kLocalLabel extends M68kNamedElement {
@Nullable
String get... |
package OnlineExam28and29March2020;
import java.util.Scanner;
public class GodzillavsKong {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double budjet = Double.parseDouble(scanner.nextLine());
int statist = Integer.parseInt(scanner.nextLine());
... |
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.manage.activiti.listener;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.stereotype.Component;
/**
* 会签任务监听器,当会签任务完成时统计同意的数量
*
* @author henryyan
*/
@Component
public class ApprovedCounterSignCompleteListener implements Ta... |
package com.t2tierp.cadastros.java;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.op... |
package de.l3s.eventkg.integration.collection;
import java.io.IOException;
import java.text.ParseException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.commons.io.LineIterator;
import org.wikidata.wdtk.datamodel.interfaces.St... |
package org.eclipse.pathfinder.internal;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
public class GraphDao implements Serializable {
private static final lo... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import frc.robot.Constants;
import frc.robot.subsystems.DriveTrain;
import java.util.funct... |
package us.ihmc.quadrupedRobotics;
import us.ihmc.yoVariables.variable.YoBoolean;
import us.ihmc.yoVariables.variable.YoDouble;
import us.ihmc.robotics.robotSide.QuadrantDependentList;
import us.ihmc.robotics.robotSide.RobotQuadrant;
import us.ihmc.simulationconstructionset.SimulationConstructionSet;
public abstract ... |
package com.tallrye.wlearn.dto;
import lombok.*;
import org.springframework.lang.NonNull;
import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ContentRequestDto {
@NonNull
private Long id = 0L;
@NonNu... |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.jpa.orphan.one2one.embedded;
import org.hibernate.jpa.t... |
package com.appsmith.server.controllers.ce;
import com.appsmith.external.dtos.ExecuteActionDTO;
import com.appsmith.external.models.ActionExecutionResult;
import com.appsmith.server.constants.FieldName;
import com.appsmith.server.constants.Url;
import com.appsmith.server.dtos.ActionDTO;
import com.appsmith.server.dtos... |
package com.google.api.ads.adwords.jaxws.v201509.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* An {@code adwords labels} string. Not supported by campaigns of
* {@link AdvertisingChan... |
import java.util.Scanner;
public class Age{
public static void main(String[] args){
Scanner age = new Scanner(System.in);
System.out.println("How old are you?");
String input = age.nextLine();
int i = Integer.parseInt(input);
i = i * 7;
System.out.println("You are " + input + " years old.\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.