text stringlengths 7 995k |
|---|
/*
* Copyright 2014-present Open Networking Laboratory
*
* 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 appli... |
package br.com.hoptech.various;
import br.com.hoptech.reflection.ManipuladorMetodo;
public class AnonymousClassesBehavior {
public static void main(String[] args) {
Bird pigeon = new Bird();
Bird hawk = new Bird() {
@Override
void fly() {
System.out.print... |
package org.mark.thingshello.ctrl.servo;
import android.util.Log;
import com.google.android.things.pio.PeripheralManager;
import com.google.android.things.pio.Pwm;
import org.mark.base.thread.WorkThreadHandler;
import org.mark.lib_unit_socket.bean.CameraServoCmd;
import org.mark.lib_unit_socket.bean.CmdConstant;
imp... |
/*-------------------------------------------------------------------------------------------------------------------*\
| Copyright (C) 2016 PayPal |
| ... |
/*
* Copyright 2020 Global Biodiversity Information Facility (GBIF)
*
* 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 requ... |
package com.github.privacystreams.commons.arithmetic;
/**
* A function that modes two numbers.
* Created by yuanchun on 07/03/2017.
*/
class ModeFunction extends Arithmetic2OpFunction<Number> {
ModeFunction(String numField1, String numField2) {
super(numField1, numField2);
}
@Override
prot... |
/*
* Copyright 2021-2022 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
*
* Unles... |
/*
* ChooseK.java
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2015-2021 Apple Inc. and the FoundationDB project 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 ... |
/*
* Copyright Terracotta, 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 org.randomito.core.scanner;
import org.junit.Assert;
import org.junit.Test;
import org.randomito.annotation.Random;
import org.randomito.core.postprocessor.AnnotationInfo;
import org.randomito.core.postprocessor.PostProcessor;
import static org.hamcrest.CoreMatchers.is;
public class AnnotationPostProcessorSc... |
package p005cm.aptoide.p006pt.home.apps;
import java.util.ArrayList;
import java.util.List;
import org.jacoco.agent.p025rt.internal_8ff85ea.Offline;
import p005cm.aptoide.p006pt.database.realm.Installed;
/* renamed from: cm.aptoide.pt.home.apps.InstalledToInstalledAppMapper */
class InstalledToInstalledAppMapper {
... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.log;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.util.CaseInsensitiveM... |
/*
* Copyright (C) 2018 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 com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 商圈会员信息修改
*
* @author auto create
* @since 1.0, 2018-09-25 15:59:40
*/
public class KoubeiMarketingMallMemberModifyModel extends AlipayObject {
private static final long serialVersionUID = 2... |
package org.deeplearning4j.word2vec.loader;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
import java.util.zip.GZIPInputStream;
import org.deeplearning4j.word2vec.VocabWord;
import org.deeplearning4j.word2vec.Word2Vec;
import org.deeplearning4j.util.Index;
import ... |
/*
* Copyright 2019 - 2021 Blazebit.
*
* 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.ycbjie.gank.bean.bean;
import java.util.List;
public class SearchResult {
public int count;
public boolean error;
public List<ResultsBean> results;
public static class ResultsBean {
public String desc;
public String ganhuo_id;
public String publishedAt;
... |
/**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.datasource.formula.alarm;
import org.diirt.datasource.formula.*;
import org.diirt.vtype.AlarmSeverity;
import org.diirt.vtype.VEnum;
import org.diirt.vtype.VS... |
package xyz.gsora.toot;
import MastodonTypes.Notification;
import MastodonTypes.Status;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.R... |
/*
* Copyright (c) 2015, 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 Softwa... |
/*
* 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 ... |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* 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, cop... |
/*
* Copyright (c) 2008-2013, 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 ... |
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Nov 10 13:21:27 GMT 2020
*/
package com.soops.CEN4010.JMCA.JParser;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.ju... |
package org.blogtree.util.common;
/**
* char工具类
*
* @author AlanGeeker
*/
public class CharUtil {
private static char char_A = 'A';
private static char char_Z = 'Z';
private static char char_a = 'a';
private static char char_z = 'z';
/**
* char 英文字母小写
*/
public static char toLow... |
package ast;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.util.List;
@JsonTypeName("ArrayDeclarator")
public class ASTArrayDeclarator extends ASTDeclarator{
public ASTDeclarator declarator;
public ASTExpression expr;
public ASTArrayDecla... |
/*
* Copyright 2012-2021 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... |
// Targeted by JavaCPP version 1.5.7-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.opencv.opencv_tracking;
import org.bytedeco.javacpp.annotation.Index;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import stat... |
/**
*
* Copyright 2003-2007 Jive Software.
*
* 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 o... |
package com.spatialdev.osm.marker;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import com.mapbox.mapboxsdk.R;
import com.mapbox.mapboxsdk.overlay.Marker;
import com.mapbox.mapboxsdk.views.MapView;
import com.spatialdev.osm.model.OSMColorConfig;
import com.spatialdev.osm.model.OSMNod... |
package party.lemons.totemexpansion.item;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import party.lemons.totemexpansion.config.ModConstants;
import party.lemons.totemexpansion.misc.CreativeTab;
import party.lemons.totemexpansion.misc.IModel;
/**
* Created by Sam on 8/04/2018.
*/
pub... |
package com.fasterxml.jackson.datatype.eclipsecollections;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.cfg.MapperBuilder;
import com.fasterxml.jackson.databind.json.JsonMapper;
import java.util.Arrays;
import static org.junit.Assert.fail;
public abstract class ModuleTes... |
package com.sidequest.launcher.tools;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.util.Log;
import android.widget.Toast;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.HashS... |
/*
* (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: email@christian-fries.de.
*
* Created on 21.10.2007
*/
package net.finmath.stochastic;
import java.io.Serializable;
/**
* This interface describes the methods implemented by an immutable random variable, i.e.
* methods that leave a ra... |
/*
* 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 BinaryTreeB4;
import java.util.Scanner;
public class BinaryTree {
private class TreeNode {
int data;
TreeNode left;
TreeNode right;
public TreeNode(int data) {
// TODO Auto-generated constructor stub
this.data = data;
}
}
private TreeNode root; // null
private Scanner s = new Scanner(S... |
package com.example.krrishdholakia.martaview8;
import android.Manifest;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.Dia... |
/*
* 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.jiucai.appframework.common.util;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
/**
* 数值格式化工具类
*
* @author zhaidw
*
*/
public class ValueFormatUtil extends BaseUtil ... |
/**
* 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.example.android.miwok;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;
import java.util.ArrayList;
public class FamilyActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCre... |
package org.jabref.preferences;
import java.util.List;
import org.jabref.Globals;
import org.jabref.logic.citationstyle.PreviewLayout;
import org.jabref.logic.citationstyle.TextBasedPreviewLayout;
import org.jabref.logic.layout.LayoutFormatterPreferences;
public class PreviewPreferences {
private final List<Pre... |
package com.allyants.notifyme;
import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import java.util.Calendar;
import static com.allyants.notifyme.Notifi... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.... |
/*******************************************************************************
* Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies th... |
package net.petafuel.styx.api.ioprocessing.options;
import net.petafuel.styx.api.exception.ResponseCategory;
import net.petafuel.styx.api.exception.ResponseConstant;
import net.petafuel.styx.api.exception.ResponseEntity;
import net.petafuel.styx.api.exception.ResponseOrigin;
import net.petafuel.styx.api.exception.Styx... |
package org.labkey.westside;
import org.graalvm.polyglot.Source;
import org.jetbrains.annotations.Nullable;
import org.labkey.api.module.Module;
import org.labkey.api.module.ModuleLoader;
import org.labkey.api.module.ModuleResourceCache;
import org.labkey.api.module.ModuleResourceCacheHandler;
import org.labkey.api.mo... |
package Connection;
import Connection.Read.PacketReader;
import com.esotericsoftware.kryonet.Connection;
import it.unimi.dsi.fastutil.shorts.Short2ObjectOpenHashMap;
public abstract class PacketEvent {
public PacketReader packetReader;
public static Short2ObjectOpenHashMap<PacketEvent> packetEvents = new Short... |
/*
* Copyright (C) 2018 - 2019 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 app... |
package net.openid.conformance.condition.common;
import net.openid.conformance.condition.PreEnvironment;
import net.openid.conformance.testmodule.Environment;
public class CheckDistinctKeyIdValueInClientJWKs extends AbstractCheckDistinctKeyIdValueInJWKs {
@Override
@PreEnvironment(required = "client_jwks")
public... |
/*
* Copyright (c) 2019 David Schmidt. All rights reserved.
*
* 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, m... |
/*
* 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.todo.saif.todo.sqlite;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.todo.saif.todo.modal.ToDoData;
public class SqliteHelper extends SQLiteO... |
/*
* Copyright (C) 2011 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... |
/*
* 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
* distribut... |
package com.sans.security.handler;
import com.sans.common.util.ResultUtil;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.web.access.AccessDeniedHandler;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import javax.se... |
/*
* 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.orm.type.descriptor.sql.spi;
import java.sql.CallableStatement;
... |
package com.example.iiitkota;
import java.util.HashMap;
class List {
private String key;
private String Student_Name;
private String Student_ID;
private HashMap<String, HashMap<String, String>> attendance;
private HashMap<String, HashMap<String, String>> marks;
//Getter for Key
public Str... |
package com.dracoon.sdk.internal.model;
@SuppressWarnings("unused")
public class ApiEncryptionPasswordPolicies {
public ApiCharacterRules characterRules;
public Integer minLength;
public Boolean rejectUserInfo;
public Boolean rejectKeyboardPatterns;
} |
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package android.support.v4.widget;
import android.os.Parcel;
import android.os.Parcelable;
// Referenced classes of package android.support.v4.... |
/*
* Copyright 2020 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 ... |
/*
Derby - Class org.apache.derby.iapi.sql.StatementUtil
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 t... |
package com.publiccms.controller.web.sys;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import javax.mail.MessagingException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax... |
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.roboraiders.Robot.RoboRaidersAuto;
import com.roboraiders.Robot.Robot;
/**
* Created by Alex on 11/15/17.
*/
@Autonomous
public class robotMoveForwa... |
package com.spring.ex.review.repository;
import java.util.List;
import com.spring.ex.review.domain.ReviewPortVO;
import com.spring.ex.review.domain.ReviewVO;
public interface ReviewDAO {
//관리자페이지 - 리뷰리스트
public List<ReviewVO> reviewlist();
//관리자페이지 - 리뷰삭제
public int reviewDelete(ReviewVO reviewVO) throws E... |
package cn.com.lasong.plugin.idea.utils;
import cn.com.lasong.plugin.idea.wrap.Compressor;
import cn.com.lasong.plugin.idea.wrap.Decompressor;
import com.intellij.openapi.util.io.FileUtil;
import javassist.CtClass;
import java.io.File;
import java.io.IOException;
public class FileHelper {
private static final S... |
/*
* 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 at.ac.tuwien.kr.alpha.api.programs.atoms;
import at.ac.tuwien.kr.alpha.api.ComparisonOperator;
import at.ac.tuwien.kr.alpha.api.grounder.Substitution;
import at.ac.tuwien.kr.alpha.api.programs.VariableNormalizableAtom;
/**
* An {@link Atom} representing a comparison of terms.
*
* Copyright (c) 2021, the A... |
package p08q1;
public class Pessoa {
private int id;
private String nome;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
} |
/*
* Copyright 2017 StreamSets 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... |
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertArrayEquals;
/**
* This is a basic set of un... |
package com.coolweather.android.db;
import org.litepal.crud.DataSupport;
/**
* Created by mia on 2018/3/11.
*/
public class County extends DataSupport {
private int id;
private String countyName;
private String weatherId;
private int cityId;
public int getId() {
return id;
}
p... |
/**
* 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... |
/*
* 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 io.devfactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class AdminApplication {
public static void main(String[] args) {
SpringApplication.run(AdminApplication.class, args);
}
} |
/*
* 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 test.concordion.logback;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.imageio.ImageIO;
import org.concordion.ext.ScreenshotTaker;
/**
* Returns the contents of a static file, so that screens... |
/*
*
* Copyright(c) 2017 VerstSiu
*
* 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 agree... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
package org.opensearch.se... |
package com.gregdferrell.designpatterns.behavioral.mediator;
// concrete Command
public class TurnsOffAllLightsCommand implements Command {
private Mediator lightsMediator;
public TurnsOffAllLightsCommand(Mediator lightsMediator) {
this.lightsMediator = lightsMediator;
}
@Override
public... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.3-b01-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.06.03 at... |
/**
* DescribeSearchLayouts.java
*
* This file was auto-generated from WSDL by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:34:40 IST)
*/
package com.salesforce.soap.partner;
/**
* DescribeSearchLayouts bean class
*/
@SuppressWarnings({ "unchecked", "unused" })
public class DescribeSearchLayouts ... |
package network;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;
import static misc.Properties.resourceBundle;
public abstract class ChessClient extends NetInstance {
... |
package org.drools.guvnor.server.files;
import org.drools.repository.AssetItem;
import org.drools.repository.ModuleItem;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.Iterator;
import java.util.List;
import j... |
package org.jruby.ir.targets;
import com.headius.invokebinder.Signature;
import org.jcodings.Encoding;
import org.jruby.*;
import org.jruby.compiler.NotCompilableException;
import org.jruby.compiler.impl.SkinnyMethodAdapter;
import org.jruby.exceptions.RaiseException;
import org.jruby.internal.runtime.GlobalVariables;... |
package host.kuro.onetwothree.protocol;
import java.util.ArrayList;
public class ScorePacketInfo {
public long scoreboardId;
public String objectiveName;
public int score;
public long entityId;
public String fakePlayer;
public byte addType;
} |
package pubSubPattern;
public class Person {
String name;
int id;
int age;
public Person() {}
public Person(String name, int id, int age) {
this.name = name;
this.id = id;
this.age = age;
}
public String getName() {
return name;
}
public void setNam... |
/*
* Copyright 2017-2020 original 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 applicable law or agr... |
package controllers.master;
import helpers.security.Secured;
import models.master.Location;
import models.master.Season;
import play.mvc.Controller;
import play.mvc.Result;
import play.mvc.Security;
import java.util.HashMap;
import java.util.Map;
import static play.libs.Json.toJson;
/**
* Created by lenovo on 11/1... |
package org.knowm.xchange.dsx.dto.marketdata;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Mikhail Wall
*/
public final class DSXTrade {
private final BigDecimal amount;
private final BigDecimal price;
private final long date;
private final long tid;
... |
package com.freed.coolweather.service;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.os.SystemClock;
import android.preference.PreferenceManager;
import an... |
/*
* 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 ... |
// SPDX-License-Identifier: MIT
package com.daimler.sechub.integrationtest.api;
import static org.junit.Assert.*;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.daimler.sechub.commons.model.ScanType;
import com.daimler.sech... |
package com.app.system.common.entity;
import java.util.Date;
public class PhotoLog
{
public static final int PHOTO_LOG_IMAGE_TYPE_BMP = 0;
public static final int PHOTO_LOG_IMAGE_TYPE_GIF = 1;
public static final int PHOTO_LOG_IMAGE_TYPE_JPEG = 4;
public static final int PHOTO_LOG_IMAGE_TYPE_JPG = 2;
public... |
/****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... |
package vswe.stevescarts;
import java.lang.reflect.Constructor;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import vswe.stevescarts.Carts.MinecartModular;
import vswe.stevescarts.Modules.ModuleBase;
i... |
package hr.fer.zemris.jcms.web.actions;
import com.opensymphony.xwork2.Preparable;
import hr.fer.zemris.jcms.beans.ext.AdminListAppealsBean;
import hr.fer.zemris.jcms.service.BasicBrowsing;
import hr.fer.zemris.jcms.web.actions.data.AdminListAppealsData;
import hr.fer.zemris.jcms.web.actions.data.support.AbstractActi... |
/*
* Copyright 2019 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
import edu.princeton.cs.algs4.*;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class Queue<Item> implements Iterable<Item> {
private Node<Item> first; // beginning of queue
private Node<Item> last; // end of queue
private int n; // number of elements on que... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.