text stringlengths 7 995k |
|---|
/*
* 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 polymorphism;
public class CustomerManager {
public void add(Logger logger) {
System.out.println("Musteri eklendi");
logger.log();
}
} |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.model.option.pricing.analytic;
import javax.time.calendar.ZonedDateTime;
import org.apache.commons.lang.Validate;
import com.opengamma.financial.m... |
/*
* XSample Server
* Copyright (C) 2020-2021 Markus Gärtner <markus.gaertner@ims.uni-stuttgart.de>
*
* 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/licen... |
package codes.biscuit.skyblockaddons.gui.TextRenders;
import codes.biscuit.skyblockaddons.core.Feature;
import codes.biscuit.skyblockaddons.gui.Render;
public interface TextRender extends Render {
String getText();
int getWidth(int existingWidth);
int getHeight(int existingHeight);
void render(String text... |
/*
* 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.cache.jcache.config;
import java.util.Map;
import org.hibe... |
/*
* Copyright (c) 2013, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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
*
* http://www.apache.org/li... |
/*
* 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 lab.pkg7_angelvasquez;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Collections;
import javax.swing.Def... |
package eu.chargetime.ocpp.model.firmware;
/*
* ChargeTime.eu - Java-OCA-OCPP
*
* MIT License
*
* Copyright (C) 2016 Thomas Volden <tv@chargetime.eu>
* Copyright (C) 2018 Mikhail Kladkevich <kladmv@ecp-share.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softwa... |
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.common.core.command.CommandResu... |
package co.thel.android.videolib.utils;
import android.opengl.GLES20;
/**
* Description:
*/
public enum EasyGlUtils {
;
EasyGlUtils(){
}
public static void useTexParameter(){
//设置缩小过滤为使用纹理中坐标最接近的一个像素的颜色作为需要绘制的像素颜色
GLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_F... |
package com.coral.stock.utils;
import org.apache.commons.lang.StringEscapeUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.... |
/*
* 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.sql.action;
import org.elasticsea... |
class Solution {
public int findUnsortedSubarray(int[] nums) {
if(nums==null || nums.length==0)
return 0;
int[] temp = nums.clone();
Arrays.sort(temp);
int start = 0;
int end = 0;
boolean flag = true;
for(int i=0;i<nums.length;i++) {
if... |
package us.ihmc.valkyrie.logProcessor;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import us.ihmc.robotModels.FullHumanoidRobotModel;
import us.ihmc.robotics.partNames.ArmJointName;
import us.ihmc.robotics.partNames.LegJointName;
import us.ihmc.robotics.partNames.SpineJointName;
import us.ihmc.avatar.... |
package com.perosa.bot.traffic.core.rule;
public enum RuleStatus {
ACTIVE, INACTIVE;
public boolean isActive() {
return this.equals(RuleStatus.ACTIVE);
}
public boolean isInactive() {
return this.equals(RuleStatus.INACTIVE);
}
} |
/*
* 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:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: entity.proto
package org.jigsaw.payment.member;
/**
* <pre>
**
* 支付通道,即支付 渠道账户,包括银行、第三方平台等。一个公司可以提供多个支付服务,每个服务对应一个通道。 同一个支付服务,比如工行快捷,可以由多个通道来提供,比如总行、北京分行、上海分行。
* 支付通道是最终落地支付服务实现的接口。
* 有些通道会有多个商户号,每个商户号对应一个Channel实例。
* 和渠道相关的证书,保存在证书库中。
*... |
package com.bbogush.web_screen;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.content.ContextCompat;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import a... |
package frameworks.support.lottie.model.animatable;
import android.support.annotation.Nullable;
public class AnimatableTextProperties {
@Nullable public final AnimatableColorValue color;
@Nullable public final AnimatableColorValue stroke;
@Nullable public final AnimatableFloatValue strokeWidth;
@Nullable pub... |
package com.stylefeng.guns.rest.modular.cinema.vo;
import com.stylefeng.guns.api.cinema.model.AreaVo;
import com.stylefeng.guns.api.cinema.model.BrandVo;
import com.stylefeng.guns.api.cinema.model.HallTypeVo;
import lombok.Data;
import java.util.List;
@Data
public class CinemaConditionVo {
private List<BrandVo> ... |
package com.salesmanager.core.validation;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
* Validates values of a String used as payload in REST service
* Solution taken from https://funofprograming.wordpress.com/2016/09/29/java-enum-validator/
* @author c.sams... |
package com.mall.user.list;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class MallUserListApplicationTests {
@Test
void contextLoads() {
}
} |
/**
* 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... |
/*
* Copyright (c) 2015, Harald Kuhr
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... |
package mtr.gui;
import com.mojang.blaze3d.vertex.PoseStack;
import mtr.data.IGui;
import mtr.mappings.ScreenMapper;
import mtr.mappings.Utilities;
import mtr.mappings.UtilitiesClient;
import mtr.packet.IPacket;
import mtr.packet.PacketTrainDataGuiClient;
import net.minecraft.client.gui.components.Button;
import net.m... |
/*
* Copyright 2010-2016 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 "l... |
package org.opencds.cqf.helpers;
import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu2.composite.CodingDt;
import ca.uhn.fhir.model.dstu2.composite.PeriodDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.Dat... |
package io.github.vampirestudios.gadget.api.app.emojie_packs;
import net.minecraft.util.ResourceLocation;
import io.github.vampirestudios.gadget.Reference;
import io.github.vampirestudios.gadget.api.app.IIcon;
/**
* Created by Timor Morrien
*/
public enum Food implements IIcon {
TOMATO,
APPLE_RED,
APPL... |
/*
* 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.andrehaueisen.fitx.models;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.firebase.database.Exclude;
/**
* Created by andre on 10/2/2016.
*/
public class Gym implements Parcelable {
private String mPlaceId;
private String mName;
private String mAddress;
priv... |
package ru.stqa.jft.mantis.tests;
import org.testng.annotations.Test;
import ru.stqa.jft.mantis.appmanager.HttpSession;
import java.io.IOException;
import static org.testng.Assert.assertTrue;
public class LoginTests extends TestBase{
@Test
public void testLogin() throws IOException {
HttpSession se... |
package module2160_public_tests_more.a;
import java.rmi.*;
import java.nio.file.*;
import java.sql.*;
/**
* 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... |
package gov.cdc.usds.simplereport.service.email;
import com.sendgrid.helpers.mail.Mail;
import java.io.IOException;
public interface EmailProvider {
String send(Mail mail) throws IOException;
} |
/*
* SPAR Engine API
* Allow clients to fetch SPAR Engine Analytics through APIs.
*
* The version of the OpenAPI document: 2
* Contact: analytics.api.support@factset.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit ... |
/*
* Copyright 2010-2016 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 "l... |
package com.trasier.client.spring.grpc;
import com.trasier.client.auth.AuthInterceptor;
import com.trasier.client.auth.NoAuthInterceptor;
import com.trasier.client.auth.OAuthTokenSafe;
import com.trasier.client.configuration.TrasierClientConfiguration;
import com.trasier.client.configuration.TrasierEndpointConfigurati... |
package com.mcoding.base.member.service.level;
import com.mcoding.base.member.bean.level.MemberLevel;
/**
* 关于会员级别的规则。<p/>
* 对于不同的模块,会员级别可能有不用的初始化规则、升级规则。各个模块可实现各自规则,并且在配置文件spring-mlr.xml上做配置
* @author hzy
*
*/
public interface MemberLeveLRule {
/**
* 会员级别升级规则
* @param memberId
*/
public void upgrade(i... |
package com.wordpress.mobilecoder.webosmark.stats;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;
@PersistenceCapable
public class Devic... |
package org.springframework.samples.petclinic.recoveryroom;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class RecoveryRoomService {
private RecoveryRoomRepository rp;
@Autowired
public RecoveryRoomServic... |
package com.alibaba.acm.shaded.org.codehaus.jackson.map.ser.impl;
import java.util.Map;
import com.alibaba.acm.shaded.org.codehaus.jackson.map.JsonSerializer;
import com.alibaba.acm.shaded.org.codehaus.jackson.map.ser.impl.SerializerCache.TypeKey;
/**
* Specialized read-only map used for storing and accessing seria... |
package com.mycompany.myapp.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.config.java.AbstractCloudConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.P... |
package com.zhihu.matisse.crop;
/*
* Copyright (C) 2007 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... |
package seedu.meeting.logic.parser;
import static seedu.meeting.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.meeting.logic.parser.CommandParserTestUtil.assertParseFailure;
import static seedu.meeting.logic.parser.CommandParserTestUtil.assertParseSuccess;
import static seedu.meeting.testuti... |
package deriktj.lightning_forge.common.item;
import deriktj.lightning_forge.common.entity.EntityBottledLightning;
import net.minecraft.client.resources.I18n;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecra... |
import java.util.*;
public class FunCallJS implements Inst{
protected String name;
protected String owner;
protected List<String> params;
public FunCallJS(String n , String own, String ... p){
this.name = n;
this.owner = own;
this.params = Arrays.asList(p);
}
public String getCode(){
String tmp = n... |
/*
* 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 site.morn.boot.data.jpa;
import javax.persistence.criteria.Expression;
import javax.persistence.criteria.Predicate;
/**
* JPA查询条件
*
* @author timely-rain
* @since 1.0.0, 2019/1/13
*/
public interface JpaCondition {
/**
* 等于
*
* @param name 实体属性名称,数据属性名称
* @return 查询断言
* @see javax.persi... |
/*
* Copyright 2020 Aiven Oy
* Copyright 2018 Confluent 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 ap... |
package com.frameworkset.common.tag.pager.tags;
public class StartWithTag extends MatchTag
{
/**
* Description: 等于
* @return boolean
* @see com.frameworkset.common.tag.pager.tags.MatchTag#match()
*/
// protected boolean match() {
// if(actualValue == null && getValue() == null)
// return true;
/... |
/*
* Copyright (c) 2008-2013 Haulmont. All rights reserved.
* Use is subject to license terms, see http://www.cuba-platform.com/license for details.
*/
package com.haulmont.cuba.core.sys.querymacro;
import com.haulmont.cuba.core.CubaTestCase;
import com.haulmont.cuba.core.sys.querymacro.TimeBetweenQueryMacroHandler... |
/*
* Copyright (C) 2010-2019, Danilo Pianini and contributors listed in the main project's alchemist/build.gradle file.
*
* This file is part of Alchemist, and is distributed under the terms of the
* GNU General Public License, with a linking exception,
* as described in the file LICENSE in the Alchemist distribut... |
public class Multi {
public static class MultiPerson {
public boolean isAdult;
public String adultFirstName;
public String adultLastName;
public String adultEmail;
public int adultAge;
public String adultOccupation;
public String childFirstName;
public int childAge;
public int chil... |
package com.thebuyback.eve.domain;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.a... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Filter.proto
package org.apache.hadoop.hbase.protobuf.generated;
public final class FilterProtos {
private FilterProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interfa... |
package cn.yinjiahui.group_purchase.service.impl;
import cn.yinjiahui.group_purchase.mapper.MessageMapper;
import cn.yinjiahui.group_purchase.po.Message;
import cn.yinjiahui.group_purchase.service.MessageService;
import cn.yinjiahui.group_purchase.service.UserService;
import cn.yinjiahui.group_purchase.util.MessageUti... |
/*
* Marketing API
* Marketing API
*
* OpenAPI spec version: 1.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.tencent.ads.model;
import com.google.gson.Gson;
import com.go... |
import com.pamarin.chapter4.Ip;
import com.pamarin.chapter4.YesNo;
import org.junit.Test;
import static org.junit.Assert.*;
public class SumAveragePatientT {
private int sum(Ip ip) {
return ip.getRole1().getScore()
+ ip.getRole2().getScore()
+ ip.getRole3().getScore()
... |
package com.bookstore.service;
import java.util.List;
import com.bookstore.repository.AuthorRepository;
import javax.persistence.Tuple;
import org.springframework.stereotype.Service;
@Service
public class BookstoreService {
private final AuthorRepository authorRepository;
public BookstoreService(AuthorRepos... |
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sendgrid.*;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
//////////////////////////////////////////////////////////////////
// Retrieve all global suppressions
// GET /suppres... |
/*
* 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... |
/*
* 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 (C) 2014 barreiro. All Rights Reserved. */
package net.projecteuler.barreiro.problem;
import java.util.function.LongPredicate;
import static net.projecteuler.barreiro.algorithm.Primes.millerRabin;
import static net.projecteuler.barreiro.algorithm.Primes.primesStream;
/**
* The number 3797 has an inter... |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... |
/*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.bot.connector.rest;
import retrofit2.Retrofit;
import com.microsoft.bot.connector.Attachments;
import com.google.common.reflect.... |
package io.cucumber.eclipse.editor.debug;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IDebugElement;
import org.eclipse.debug.core.model.IValue;
import org.eclipse.debug.core.model.IVariable;
/**
* base class for values
*
* ... |
package com.example.android.quakereport;
import android.util.Log;
import android.view.View;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
/**
* Helper methods related to requesting and rece... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.dataprotection.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import c... |
/*
* 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 net.sf.esfinge.metadata.locate.levelLocator;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface TransactionNoSearchEnclosing {
} |
/*
* Swagger Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
*
* NOTE: This class is auto generated by the swagger code generator p... |
package com.usthe.bootshiro.service.impl;
import com.usthe.bootshiro.dao.AuthResourceMapper;
import com.usthe.bootshiro.domain.bo.AuthResource;
import com.usthe.bootshiro.service.ResourceService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
imp... |
/*
* The MIT License
*
* Copyright (c) 2016, CloudBees, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, c... |
/*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* 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 F... |
package com.hzg.sys;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
@Entity(name = "hzg_action")
public class Action implements Serializable {
private static final long serialVersionUID = 345435245233251L;
public Action(){
super();
}
... |
// RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... |
package com.opensourcedev.eshop_reactive.domain;
import com.opensourcedev.eshop_reactive.domain.enums.BeerType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import... |
/*
* 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 br.uff.ic.kraken.projectviewer.utils;
/**
*
* @author gleiph
*/
public class DataTypes {
public static final String PR... |
package com.example.quan.EasyAdapter;
import android.content.Context;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
public class InstanceUtil {
public static <T> T getInstance(Class<T> clazz) {
return getInstance(clazz, null, null);
}
public static <T... |
package fr.imie.training.cdi13.dav.j2ee;
import fr.imie.training.cdi13.dav.j2ee.bl.Service;
import fr.imie.training.cdi13.dav.j2ee.bl.impl.UserServiceImpl;
import fr.imie.training.cdi13.dav.j2ee.dal.dao.DAO;
import fr.imie.training.cdi13.dav.j2ee.dal.dao.DAO.DAO_TYPE;
import fr.imie.training.cdi13.dav.j2ee.dal.dao.imp... |
/*
* 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 ... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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... |
class Pattern_54
{
public static void main(String args[])
{
int size=3;
for(int i=size;i>=-size;i--){
for(int j=size;j>=Math.abs(i);j--)
{
System.out.print("*");
}
System.out.println();
}
} //end of main
} //end of class |
/*
Copyright 2016 Yury Benesh
see COPYING.txt
*/
package org.miod.program.errors;
import org.miod.program.symbol_table.SymbolLocation;
/**
*
* @author yur
*/
public abstract class CompilerWarning {
final SymbolLocation location;
public CompilerWarning(SymbolLocation location) {
this.locati... |
package br.com.miguelfontes.taskflow.ports.tasks;
/**
* Encapsulates the data returned by a User creation request
*
* @author Miguel Fontes
*/
public final class CreateUserResponse {
private final UserDTO user;
private CreateUserResponse(UserDTO user) {
this.user = user;
}
public static C... |
/**
* 项目名称:quickstart-zeromq
* 文件名:ProxyTest.java
* 版本信息:
* 日期:2017年9月7日
* Copyright youngzil Corporation 2017
* 版权所有 *
*/
package org.quickstart.mq.zeromq.jeromq;
import org.zeromq.ZMQ;
import org.zeromq.ZMQ.Context;
import org.zeromq.ZMQ.Socket;
/**
* ProxyTest
*
* @author:yangzl
* @2017年9月7日 下午10:30:5... |
package com.cocoahero.android.gmaps.addons.mapbox;
import java.net.MalformedURLException;
import java.net.URL;
import com.google.android.gms.maps.model.UrlTileProvider;
public class MapBoxOnlineTileProvider extends UrlTileProvider {
private static final String FORMAT;
static {
FORMAT = "%s://api.ti... |
package com.google.android.gms.measurement.internal;
import com.google.android.gms.internal.measurement.zzbs$zzc;
import com.google.android.gms.internal.measurement.zzbs$zzg;
interface zzz {
boolean zza(long j, zzbs$zzc zzbs_zzc);
void zzb(zzbs$zzg zzbs_zzg);
} |
/* Copyright 2016 University of Rostock
*
* 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... |
/******************************************************************************
* Multiverse 2 Copyright (c) the Multiverse Team 2011. *
* Multiverse 2 is licensed under the BSD License. *
* For more information please check the README.md file included *
... |
package com.arman.bluetoothpccontrol;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
public class K... |
package rsb.walker.dax_api.shared.helpers.magic;
import rsb.methods.Web;
import java.util.Arrays;
public class SpellBook {
private static final int SPELLBOOK_VARBIT = 4070;
public enum Type {
STANDARD (0),
ANCIENT (1),
LUNAR (2),
ARCEUUS (3);
private int varbit;
... |
package com.fox.one.support.common.utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import java.util.HashMap;
import java.util.Map;
/**
* Created by liuxiaoming on 2014/11/4.
*/
p... |
/*
* The MIT License
*
* Copyright 2017 saemann.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... |
package com.twu.biblioteca;
import java.util.ArrayList;
public class BookShelf {
private ArrayList<Book> books = new ArrayList<Book>();
private ArrayList<Book> rentoutBooks = new ArrayList<Book>();
public BookShelf(){
for (int i=0; i<6; i++)
{
int initial_yy = 2000;
... |
package mage.cards.z;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.keyword.BloodrushAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.con... |
/*
* Copyright 2010-2016 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 "l... |
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999,2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of... |
/*
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.