text stringlengths 7 1.01M |
|---|
package xx.demo.activity.view;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import heighten.Heighte... |
//: net/mindview/util/CountingGenerator.java
// Simple generator implementations.
package com.thinkinginjava.source.net.mindview.util;
public class CountingGenerator {
public static class
Boolean implements Generator<java.lang.Boolean> {
private boolean value = false;
public java.lang.Boolean next() {
... |
/*
* Prog for extracting values from a CSV string.
*/
package ssmith.util;
import java.util.*;
public class CSVString {
private String str;
private ArrayList elements;
private String separator;
public CSVString(String newStr) {
this(newStr, ",");
}
public CSVString(String newStr, String sep) {
... |
/*
* Copyright 1999-2019 Seata.io Group.
*
* 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 l... |
package com.thoughtworks.gaia.system.endpoint;
import com.thoughtworks.gaia.product.entity.Product;
import com.thoughtworks.gaia.system.service.SystemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiRespo... |
package to.augmented.reality.android.ardb.sourcefacade.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Used to specify a field or method that contains or returns a host network address ... |
package com.jagex;
import com.jagex.Class174_Sub2;
import jaggl.OpenGL;
public class Class139 {
int anInt1659;
void method1643(int var1) {
OpenGL.glNewList(this.anInt1659 + var1, 4864);
}
void method1644(int var1) {
OpenGL.glNewList(this.anInt1659 + var1, 4864);
}
void... |
package com.ke.css.cimp.fwb.fwb11;
/* -----------------------------------------------------------------------------
* Rule_OTHER_PARTY_MSG_OFFICE_DESIG.java
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.5
* Produced : Tue Mar 06 10:36:50 K... |
/*
* 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 app... |
/*
* Copyright (c) 2016 - Qeo LLC
*
* The source code form of this Qeo Open Source Project component is subject
* to the terms of the Clear BSD license.
*
* You can redistribute it and/or modify it under the terms of the Clear BSD
* License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file
* fo... |
package br.edu.utfpr.cp.emater.midmipsystem.repository.security;
import org.springframework.data.jpa.repository.JpaRepository;
import br.edu.utfpr.cp.emater.midmipsystem.entity.security.Authority;
public interface AuthorityRepository extends JpaRepository<Authority, Long>{
public Authority findByName (String na... |
/*
* This file is auto-generated by h2o-3/h2o-bindings/bin/gen_java.py
* Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details)
*/
package water.bindings.pojos;
import com.google.gson.GsonBuilder;
import com.google.gson.annotations.*;
public class XGBoostModelOutputV3 extends ModelOutputSche... |
package com.blakebr0.extendedcrafting.item;
import com.blakebr0.cucumber.helper.NBTHelper;
import com.blakebr0.cucumber.iface.IEnableable;
import com.blakebr0.cucumber.item.BaseItem;
import com.blakebr0.cucumber.lib.Localizable;
import com.blakebr0.cucumber.lib.Tooltips;
import com.blakebr0.extendedcrafting.config.Mod... |
/*
* Copyright (c) 2002, 2020, 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 com.technicise;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for River.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simple... |
package org.jlibsedml;
/**
* Supports the SED-ML 'Curve' element representing a trace on a 2D Plot.
*/
public class Curve extends AbstractIdentifiableElement{
@Override
public String toString() {
return "Curve [id=" + getId() + ", logX=" + logX + ", logY=" + logY
+ ", name=" + getName() + ", xD... |
/**
* GetBudgetsByIdsResponse.java
* <p>
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.microsoft.bingads.v11.campaignmanagement;
public class GetBudgetsByIdsResponse implements java.io.Serializable {
// Type metadata
privat... |
package com.mill.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.text.TextUtils;
import com.mill.storager.SharedPreferencesImpl;
import java.util.Map;
import java.util.Set;
public class SPUtils {
private static fin... |
package exceptions;
/**
* <pre>
* author : wangzhichao
* e-mail : wangzhichao@adups.com
* time : 2019/08/21
* desc :
* version: 1.0
* </pre>
*/
class MyException2 extends Exception {
private int x;
public MyException2() {
}
public MyException2(String msg) {
su... |
/*
* Copyright (C) 2009 University of Washington
*
* 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 ... |
/**
* 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 io.micronaut.inject.qualifiers.replaces.defaultimpl;
import io.micronaut.context.annotation.DefaultImplementation;
@DefaultImplementation(F1.class)
public interface F extends E {
}
|
/*
* Copyright (C) 2017 Dremio Corporation
*
* 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... |
/*
* 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 ... |
/*
* 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 ... |
/*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, 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... |
/******************************************************************************
* Spine Runtimes Software License v2.5
*
* Copyright (c) 2013-2016, Esoteric Software
* All rights reserved.
*
* You are granted a perpetual, non-exclusive, non-sublicensable, and
* non-transferable license to use, install, ex... |
package com.twelvemonkeys.imageio.plugins.xwd;
import com.twelvemonkeys.imageio.spi.ReaderWriterProviderInfo;
import com.twelvemonkeys.imageio.spi.ReaderWriterProviderInfoTest;
public class XWDProviderInfoTest extends ReaderWriterProviderInfoTest {
@Override
protected ReaderWriterProviderInfo createProviderIn... |
package org.apache.ofbiz.humanres.ability.service.base;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.apache.ofbiz.common.ExecuteFindService.In;
import org.apache.ofbiz.common.ExecuteFindService.Out;
import org.apache.ofbiz.common.ExecuteFindService;
import java.util.Arr... |
package composite1;
/**
* ๆๆฌๆไปถ็ฑป๏ผๅถๅญๆไปถ
* Created by fengyuwusong on 2017/11/8 11:40.
*/
public class TextFile extends AbstractFile {
private String name;
public TextFile(String name) {
this.name = name;
}
@Override
public void add(AbstractFile file) {
System.out.println("ๅฏนไธ่ตท๏ผไธๆฏๆ... |
/*
* eZmax API Definition (Full)
* This API expose all the functionnalities for the eZmax and eZsign applications.
*
* The version of the OpenAPI document: 1.1.7
* Contact: support-api@ezmax.ca
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-genera... |
/*
* Copyright (C) 2019 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... |
// 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 ... |
/*-
Copyright 2018 Adobe. All rights reserved.
This file is licensed to you 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 agr... |
/*
* 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 org.jhipster.health.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import javax.validation.constraints.*;
import org.springframework.data.elasticsearch.annotat... |
package com.umeng.analytics.pro;
public abstract class dt
{
public abstract int a(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
throws du;
public void a(int paramInt) {}
public abstract boolean a();
public abstract void b()
throws du;
public void b(byte[] paramArrayOfByte)
th... |
/*
* Copyright 2000-2013 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... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.ml;
import org.elasticsearch.Versi... |
package it.univaq.mwt.business.model;
import static javax.persistence.AccessType.PROPERTY;
import static javax.persistence.CascadeType.PERSIST;
import static javax.persistence.CascadeType.REFRESH;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Access;
import jav... |
/*
* 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
* distribute... |
package uk.gov.hmcts.reform.bulkscanprocessor.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.List;
@ConfigurationProperties("accesstoken")
public class AccessTokenProperties {
private List<TokenConfig> serviceConfig;
public List<TokenConfig> getServiceCo... |
/*
* Copyright 2010 sasc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
package org.pitest.bytecode;
import org.objectweb.asm.ClassWriter;
public class FrameOptions {
private static final int JAVA_7 = 51;
/**
* Java 7 and above require frame info for class version above 7. The ASM compute
* frame options does not support the JSR opcode used by some pre 7 compilers
* when g... |
/**
* 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 not us... |
package com.pi4j.io.gpio.digital;
/*-
* #%L
* **********************************************************************
* ORGANIZATION : Pi4J
* PROJECT : Pi4J :: LIBRARY :: Java Library (CORE)
* FILENAME : DigitalConfig.java
*
* This file is part of the Pi4J project. More information about
* this ... |
/*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2014 Board of Regents of the University of
* Wisconsin-Madison and University of Konstanz.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2011 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
... |
package org.lisasp.basics.test.jre.io;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import org.lisasp.basi... |
package com.planet_ink.coffee_mud.MOBS;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.co... |
/*
* #%L
* Maven Integration for Eclipse CDT
* %%
* Copyright (C) 2014 Stephen Edwards
* %%
* 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/LI... |
/*
* 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")... |
/*
* Copyright 2010 Red Hat, Inc. and/or its affiliates.
*
* 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 ap... |
/*
* Copyright 2016. SHENQINCI(ๆฒ้ฆ่ต)<dev@qinc.me>
*
* 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 applicabl... |
package org.apache.helix.messaging.handling;
/*
* 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... |
package hackerrank.datastructures.arrays;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* Created by nikoo28 on 9/2/20 12:17 AM
*/
class LeftRotationTest {
LeftRotation leftRotation = new LeftRotation();
@Test
void rotateLeft1() {
int arr[] = {1, 2, 3, 4, 5};... |
package org.osmdroid.util;
/**
* {@link PointAccepter} that simplifies the list of consecutive points with the same X or Y.
* One goal is to have faster Path rendering.
* As we clip the Path with a rectangle, additional segments are created by {@link SegmentClipper}.
* When most of the Polygon is out of the screen... |
/*
*
* Copyright 2002-2004 The Ant-Contrib 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 ap... |
// Targeted by JavaCPP version 1.5.6: DO NOT EDIT THIS FILE
package org.bytedeco.leptonica;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.leptonica.global.lept.*;
/** Array of double ... |
package datawave.common.test.utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class ProcessUtils {
public static final int SYSTEM_EXIT_MINUS_ONE = 255;
p... |
package com.aim.app.utils;
public class AuthenticationRequest {
private String username;
private String password;
public AuthenticationRequest(){}
public AuthenticationRequest(String username, String password){
this.username = username;
this.password = password;
}
public Strin... |
package com.revature.packageA;
public class SomeClass {
public int x = 10;
protected char c = 'c';
float f = 3.14f;
// only accessible inside of this class declaration
private double d = 2.77;
}
|
package cn.xujiajun.tastjava.service;
import cn.xujiajun.tastjava.dao.UserDAO;
import cn.xujiajun.tastjava.entity.User;
import java.util.List;
public class UserService {
private UserDAO userDAO;
public List<User> GetUsers() {
return this.userDAO.GetUsers();
}
public User GetUser(int id) {
/... |
package hash;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
// ์์ฃผํ์ง ๋ชปํ ์ ์
public class Solution42576 {
public String solution(String[] participant, String[] completion) {
String answer = "";
Map<String, Integer> map = new HashMap<>();
for (String p : participant) {
i... |
/*
* Copyright 2010-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 datadog.trace.instrumentation.jdbc;
import datadog.trace.api.DDSpanTypes;
import datadog.trace.api.DDTags;
import datadog.trace.bootstrap.instrumentation.api.AgentSpan;
import datadog.trace.bootstrap.instrumentation.api.Tags;
import datadog.trace.bootstrap.instrumentation.decorator.DatabaseClientDecorator;
imp... |
package de.adesso.objectfieldcoverage.core.finder.lombok.generator;
import lombok.AccessLevel;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import spoon.reflect.declaration.CtField;
import spoon.reflect.declaration.CtMethod;
import spoon.reflect.declaration.ModifierKind;
import spoon.... |
/*
* Copyright (c) 2008-2016, 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 ... |
/*
* 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 Controller.Course;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax... |
/*
* Copyright 2014 Effektif GmbH.
*
* 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 i... |
/**
* Copyright (C) 2019 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.opengamma.financial.security;
/**
*
*/
public class FinancialSecurityVisitorSameMethodAdapterTest extends VisitorTestHelper {
// public void test() {
// final Set<FinancialSecurity> securities = getSecuriti... |
/*
* 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 com.isheihei.mall.coupon.dao;
import com.isheihei.mall.coupon.entity.UndoLogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author YazhouTown
* @email yazhoutown@gmail.com
* @date 2021-07-01 21:43:11
*/
@Mapper
public interface Un... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE129_Improper_Validation_of_Array_Index__Environment_array_size_53c.java
Label Definition File: CWE129_Improper_Validation_of_Array_Index.label.xml
Template File: sources-sinks-53c.tmpl.java
*/
/*
* @description
* CWE: 129 Improper Validation of Array Index
* BadSource... |
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2007, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... |
package net.iutil.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
/**
* user vo (test)
* @author Erwin Feng
* @since 2019-03-31 17:19
*/
@Data
@Accessors(chain = true)
/* ่ฟๆปคๆ null ็ๅญๆฎต */
@JsonIn... |
package com.chain.modules.sys.controller;
import com.chain.common.annotation.SysLog;
import com.chain.common.utils.Constant;
import com.chain.common.utils.PageUtils;
import com.chain.common.utils.R;
import com.chain.common.validator.Assert;
import com.chain.common.validator.ValidatorUtils;
import com.chain.common.vali... |
package org.opencv.android;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.Log;
import org.opencv.core.Core;
import java.text.DecimalFormat;
public class FpsMeter {
private static final String TAG = "FpsMeter";
private static f... |
/*
* Copyright 2012-2020 CodeLibs Project and the Others.
*
* 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 ap... |
/*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* 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... |
/*
* Copyright 2021 LinkedIn Corp.
*
* 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 i... |
package external_module_0553.a;
import java.io.*;
import java.rmi.*;
import java.nio.file.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
... |
package bankaccountapp;
public class Checking extends Account{
//List properties specific to checking account
private int debitCardNumber;
private int debitCardPIN;
//Constructor to initialize checking account properties
public Checking(String name,String sSN,double initDeposit){
super(nam... |
/*
* Copyright 2016 The Netty Project
*
* The Netty Project licenses this file to you 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... |
package com.example.timmy.progarkexercise1;
import android.app.Activity;
import android.os.Handler;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.ArrayList;
/**
* Created by timmy on 27/01/2019.
*/
public class GameController implements Runnable ... |
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####... |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* 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 net.milanqiu.enceladus.datatype.collectiontype;
import net.milanqiu.enceladus.datatype.DataType;
import net.milanqiu.enceladus.datatype.aggregationtype.AtBundle;
import net.milanqiu.enceladus.datatype.basictype.*;
import net.milanqiu.enceladus.datatype.basictype.specialized.BtString20;
import org.junit.Assert;... |
/*
* Copyright 2012-present Facebook, 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... |
/*
* Copyright (C) 2019-2021 HERE Europe B.V.
*
* 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... |
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.subjectarea.listener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.odpi.openmetadata.accessservices.subjectarea.outtopic.SubjectAreaPublisher;
import or... |
/*
* Copyright 2002-2017 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 com.dangdang.config.service.file.protocol;
import java.io.InputStream;
import java.net.URL;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
/**
* Protocol factory
*
* @author <a href="mailto:wangyuxuan@dangdang.com">Yuxuan Wang</a>
*/
public final... |
package com.avianca.vuelos.vo;
public class Pago {
protected int numVuelo;
protected String mensaje;
public Pago(int numVuelo, String mensaje) {
this.numVuelo = numVuelo;
this.mensaje = mensaje;
}
public int getNumVuelo() {
return numVuelo;
}
public void setNumVuelo(int numVuelo) {
... |
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Common Public
* License Version 1.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.eclipse.org/legal/cpl-v... |
package chapter08;
// ํน์ ๊ธฐ๋ฅ์ ์ ๋ดํ๋ ์ฝ๋ ๋ฉ์ด๋ฆฌ๋ฅผ Sub Routine์ด๋ผ๊ณ ํ๋ค. ์๋ฐ์์๋ Method๋ผ๊ณ ๋ถ๋ฅธ๋ค.
// ์๋ฐ๋ ๋ชจ๋ ๋ฉ์๋๋ฅผ ํด๋์ค ๋ด์์ ์์ฑํ๋ฉฐ, ํ๋ก ์กด์ฌํ๋ ์ ์ญ ํจ์๋ฅผ ์ง์ํ์ง ์๋๋ค.
// static์ ๋ฉ์๋๋ฅผ ๋
๋ฆฝ์ํค๋ ๊ธฐ๋ฅ์ ํ๋ค.
// ๋ฉ์๋ ์ ์ธ๋ฌธ์ ์ธ์๋ฅผ ํ์ ์ธ์(๋งค๊ฐ ๋ณ์, Parameter)๋ผ ํ๋ฉฐ ํธ์ถ์์ด ์ ๋ฌํ ๊ฐ์ ๋์
๋ฐ์ ๋ณธ์ฒด์์ ์ฐธ์กฐํ ๋ ์ฌ์ฉ.
// ํ์ ์ธ์๋ ํธ์ถ ๊ณผ์ ์์ ์ค์ธ์๊ฐ์ ๋์
๋ฐ์ ๋ณธ์ฒด์์ ์์์ ์ผ๋ก ์ฌ์ฉํ๋ ์ผ์ข
์ ์ง์ญ ๋ณ์์ด๋ค.
// ์์
์ฌํญ์ด ๋ง๋ค๋ฉด ์ผ... |
package ru.job4j.stream;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* class ListToMap
* project lesson 4.2.4
*
* @author Volodymyr Martynenko (VolodymyrV.Martynenko@gmail.com)
* project job4j
* @version 1.0
* @since 18.05.2019
*/
public class ListToMap {
/**
... |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.javaFX.actions;
import com.intellij.ide.fileTemplates.FileTemplate;
import com.intellij.ide.fileTemplates.JavaCreateFromTemplateHandler;
import com.... |
/*
* Copyright 2013-2015 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* Copyright 2013-2019 Real Logic Ltd.
*
* 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 agre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.