text stringlengths 7 995k |
|---|
/*
* Copyright 2008 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 applica... |
/*
* Copyright 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 applica... |
package preprocessing;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.HashMap;
im... |
package com.jingtum.net;
import com.google.gson.*;
import com.google.gson.reflect.TypeToken;
import com.jingtum.model.Message;
import com.jingtum.model.MessageCollection;
import java.lang.reflect.Type;
import java.util.List;
public class MessageCollectionDeserializer implements JsonDeserializer<MessageCollection> {
... |
package com.planet_ink.coffee_mud.Areas;
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.... |
package com.wix.mysql;
import com.wix.mysql.config.DownloadConfig;
import com.wix.mysql.config.MysqldConfig;
import com.wix.mysql.config.SchemaConfig;
import org.junit.Ignore;
import org.junit.Test;
import java.util.concurrent.TimeUnit;
import static com.wix.mysql.EmbeddedMysql.anEmbeddedMysql;
import static com.wix... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: LSMessage.proto
package LockstepProto;
/**
* Protobuf enum {@code LockstepProto.State}
*/
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>STATE_DEFAULT = 0;</code>
*/
STATE_DEFAULT(0),
/**
* ... |
package fr.insee.pearljam.api.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatu... |
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Semaphore;
public class Assign5 {
// Global variables
static String schedulingAlg = "";
static int numProcesses = 0, numRQJobs = 0, numIOJobs = 0, totalCPURunningTime = 0, quantum = 0;
static lo... |
package slimeknights.tconstruct.library.tools.nbt;
import com.google.common.collect.ImmutableList;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import net.minecraft.nbt.INBT;
import net.minecraft.nbt.ListNBT;
import net.minecraft.nbt.StringNBT;
import net.minecraftforge.common.util.Constants;
import slimek... |
/*
* Copyright (c) 2017, 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.or... |
/*
* Copyright (c) 2011-2021, baomidou (jobob@qq.com).
*
* 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... |
/*
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.db.instance.configs;
import io.airbyte.db.Database;
import io.airbyte.db.instance.AbstractDatabaseTest;
import io.airbyte.db.instance.test.TestDatabaseProviders;
import java.io.IOException;
import javax.sql.DataSource;
import org.jooq... |
/*
* Copyright 2017 TWO SIGMA OPEN SOURCE, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package com.xwintop.xJavaFxTool.view.debugTools;
import com.xwintop.xJavaFxTool.model.ActiveMqToolReceiverTableBean;
import com.xwintop.xJavaFxTool.model.ActiveMqToolTableBean;
import com.xwintop.xcore.base.XProperty;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
impor... |
package org.opencds.cqf.cql.spark;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.function.Function;
import org.apache.spark.broadcast.Broadcast;
import org.apache.spark.rdd.RDD;
import org.apache.spark.sql.Dataset... |
package com.pedromassango.programmers.data.remote;
import android.support.annotation.NonNull;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.firebase.database.DatabaseReference;
import com.pedromassango.programmers.data.CommentsDataSourc... |
/*
* 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-2.0
*
* Unless required by app... |
package cz.mg.compiler.tasks.mg.resolver.command;
import cz.mg.compiler.tasks.mg.resolver.context.executable.CommandContext;
import cz.mg.language.entities.mg.unresolved.parts.commands.*;
import cz.mg.language.entities.mg.runtime.parts.commands.MgCommand;
import cz.mg.compiler.tasks.mg.resolver.MgResolveTask;
public... |
package com.wangs.eduservice.config;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import java.util.Date;
/**
* @File : MyMetaObjectHandler... |
package net.developerly.support.wechat.utils;
import net.developerly.support.wechat.exception.WeChatJsonParserException;
import org.codehaus.jackson.JsonFactory;
import org.codehaus.jackson.annotate.JsonMethod;
import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
import org.codehaus.jackson.map.ObjectMappe... |
package jaredbgreat.dldungeons.themes;
/*
* Doomlike Dungeons by is licensed the MIT License
* Copyright (c) 2014-2018 Jared Blackburn
*/
/**
* Tags an enum as one that should be automatically selected by
* and Autoselecting enum.
*
* @author Jared Blackburn
*
*/
public interface Autoselectable {} |
package seedu.address.model.assignment;
import static seedu.address.commons.util.AppUtil.checkArgument;
import static seedu.address.commons.util.CollectionUtil.requireAllNonNull;
/**
* Represents an Assignment's Title in the Schoolwork Tracker.
* Guarantees: immutable; is valid as declared in {@link #isValidTitle(S... |
/*
* 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 ... |
/*
* Copyright 2016 Taylor Caldwell
*
* 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... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Message.proto
package com.farsunset.cim.sdk.model.proto;
public final class MessageProto {
private MessageProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static voi... |
/*
* 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 com.teamacronymcoders.essence.util.helper.recipe;
import com.teamacronymcoders.essence.api.holder.ModifierInstance;
import com.teamacronymcoders.essence.api.recipe.infusion.SerializableModifier;
import com.teamacronymcoders.essence.util.helper.EssenceItemstackModifierHelpers;
import java.util.List;
import net.... |
/*
* 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... |
/*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2016 Adobe
* %%
* 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... |
package com.project.web.finance;
import com.project.bean.vo.AjaxResult;
import com.project.bean.vo.SpecialOrderVo;
import com.project.common.Constants;
import com.project.core.orm.Page;
import com.project.entity.finance.*;
import com.project.service.finance.*;
import com.project.utils.FinanceHelper;
import com.project... |
/*
* Copyright (C) 2016 - 2019 (See AUTHORS)
*
* This file is part of Owl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any l... |
/*
* Copyright (c) 2008-2019 Haulmont.
*
* 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... |
package org.openstack4j.api.identity.v3;
import java.util.List;
import org.openstack4j.common.RestService;
import org.openstack4j.model.identity.v3.Domain;
import org.openstack4j.model.identity.v3.Group;
import org.openstack4j.model.identity.v3.Project;
import org.openstack4j.model.identity.v3.Role;
import org.openst... |
package com.social.repository;
import com.social.model.Location;
import com.social.model.Picture;
import org.springframework.data.jpa.repository.JpaRepository;
public interface PicturesRepository extends JpaRepository<Picture, Long> {
// Location findByUser_loc(User user_loc);
} |
/*
* (C) Copyright IBM Corp. 2021.
*
* 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 w... |
/*
* 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 controllers;
import java.io.File;
import java.io.InputStream;
import java.sql.Connection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import persistence.UserDao;
import models.User;
import mvc.controllers.MvcController;
import mvc.responses.Ac... |
package com.brianway.learning.java.multithread.singleton.example2;
/**
* Created by Brian on 2016/4/16.
*/
/**
* p270
* 延迟加载/“懒汉模式”解决方案
* DCL双检查锁机制
*/
public class Run2_singleton4 {
public static void main(String[] args) {
Thread4 t1 = new Thread4();
Thread4 t2 = new Thread4();
Threa... |
/*
* Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
/*
* Copyright 2018 Red Hat, 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 t... |
/**
* Author: LiuZheHui
* CreateTime: 2022-02-19 12:13:00
* Desc:
*/
public class Student {
private String name;
private Integer age;
private static String school = "atguigu";
public Student(String name, Integer age) {
this.name = name;
this.age = age;
}
public void printInf... |
package com.google.common.collect.testing.testers;
import static com.google.common.collect.testing.features.CollectionFeature.SERIALIZABLE;
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.testing.AbstractCollectionTester;
import com.google.common.collect.testing.Helpers;
import co... |
package com.lee.ficss.util;
import org.springframework.stereotype.Component;
@Component
public class RandomPasswordBuilder {
public String generateRandomPassword(){
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < 6; i++){
double d = Math.random();
in... |
/*
* Copyright 2016 The TensorFlow Authors. 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 requi... |
package com.quanyan.permission.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class GroupManagerExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public GroupManagerExample() {
oredCriteria ... |
package com.ainq.izgateway.extract.validation;
/*
* Copyright 2020 Audiacious Inquiry, 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
*... |
/*
* Copyright 2021 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 applic... |
package org.infinispan.configuration.global;
import org.infinispan.commons.util.TypedProperties;
import org.infinispan.remoting.transport.Transport;
public class TransportConfiguration {
private final String clusterName;
private final String machineId;
private final String rackId;
private final String si... |
/*
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.imagepipeline.image;
import android.graphics.Bitmap;
import android.media.ExifInterface;
import com.facebook.common... |
/**
* HpcReportBusServiceImpl.java
*
* <p>
* Copyright SVG, Inc. Copyright Leidos Biomedical Research, Inc
*
* <p>
* Distributed under the OSI-approved BSD 3-Clause License. See
* http://ncip.github.com/HPC/LICENSE.txt for details.
*/
package gov.nih.nci.hpc.bus.impl;
import java.text.ParseException;
import j... |
package com.haohaofengyun.test;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
/*
* Copyright (C) 2009-2020 Lightbend Inc. <https://www.lightbend.com>
*/
package javaguide.tests.guice;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import com.google.common.collect.ImmutableMap;
import java.io.File;
import java.net.URL;
import java.net.URLClassLoader;
import java.... |
package com.moralok.bean;
/**
* @author moralok
* @since 2020/12/16 5:40 下午
*/
public class Person {
private String name;
private Integer age;
public Person() {
}
public Person(String name, Integer age) {
this.name = name;
this.age = age;
}
public String getName() {
... |
package com.massivecraft.massivecore.command.type.enumeration;
import org.bukkit.entity.Villager.Profession;
public class TypeVillagerProfession extends TypeEnum<Profession>
{
// -------------------------------------------- //
// INSTANCE & CONSTRUCT
// -------------------------------------------- //
private st... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... |
/*
* Copyright 2012-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... |
package info.guardianproject.keanuapp.ui.widgets;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.graphics.Rect;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.LayoutInflater;
impor... |
/*
* Copyright 2002-2021 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... |
/*
* Copyright 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 "license" file ... |
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package AirplaneSystem;
/**
* @Group 8
* 1. SHARIFAH LYDIEANNA BT SYED SHAMSUDDIN (CB20050)
* 2. NURUL ATIKAH BT F... |
package net.alepuzio.luceneexperiment;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.core.*;
import org.apache.lucene.analysis.custom.*;
import org.apache.luc... |
package vip.creatio.basic.cmd;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
@FunctionalInterface
public interface CommandAction {
boolean run(Context context) throws CommandSyntaxException;
/**
* A special CommandAction that will always return true.
*/
@FunctionalInterface
... |
package com.vertabelo.mobileorm.myplaces.orm.runtime.query;
import java.util.List;
/**
* Represent the <code>DELETE</code> delete query.
*/
public class DeleteStatement extends WhereQuery {
/** Constant used to build a query. */
public static final String DELETE = "DELETE ";
/** Constant used to build... |
/*
* ******************************************************************************
* Copyright 2014-2016 Spectra Logic Corporation. 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 i... |
package tech.jhipster.lite.generator.server.springboot.dbmigration.flyway.infrastructure.primary.rest;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
i... |
/**
* Copyright (C) 2010-2015 Morgner UG (haftungsbeschränkt)
*
* This file is part of Structr <http://structr.org>.
*
* Structr is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 o... |
package org.apache.dubbo.qos.command.impl;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.config.model.ApplicationModel;
import org.apache.dubbo.config.model.ProviderModel;
import org.apache.dubbo.qos.command.CommandContext;
import org.apache.dubbo.registry.Registry;
import org.apache.dubbo.registry.suppo... |
/*******************************************************************************
* Copyright 2013 Ednovo d/b/a Gooru. All rights reserved.
*
* http://www.goorulearning.org/
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (... |
package tests.qz.printer.info;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import qz.printer.PrintServiceMatcher;
import qz.printer.info.NativePrinter;
import qz.printer.info.NativePrinterMap;
import java.util.Date;
public class NativePrinterTests {
private static final Lo... |
package sample.admin;
import Database.DatabaseHandler;
import com.jfoenix.controls.JFXButton;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene... |
/**
* MIT License
* <p>
* Copyright (c) 2017-2018 nuls.io
* <p>
* 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, ... |
package dsm.service.schedule.core.usecase;
public abstract class UseCase<I extends UseCase.InputValues, O extends UseCase.OutputValues> {
public abstract O execute(I input);
public interface InputValues {
}
public interface OutputValues {
}
} |
package com.platform.bean.exception;
/**
* 封装系统的异常
*
* @author wlhbdp
* @date 2020/12/28 下午10:32
*/
public class ApplicationException extends RuntimeException {
private Integer code;
private String message;
public ApplicationException(ServiceExceptionEnum serviceExceptionEnum) {
this.code =... |
/*
* 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 xvh;
import xvh.excel.ExcelSheet;
import xvh.excel.ExcelWorkbook;
import xvh.nodedata.NodeData;
import java.io.IOException;
import java.util.List;
public class ExcelWriter {
public static boolean writeToExcel(String file, String sheetName, String[] headers, List<NodeData> data) throws IOException, Illega... |
/*
* 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 2018-2020 adorsys GmbH & Co KG
*
* 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 2015-present 650 Industries. All rights reserved.
package abi33_0_0.expo.modules.permissions;
import android.Manifest;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
impor... |
package com.littleinc.orm_benchmark.sqliteoptimized;
import android.database.sqlite.SQLiteStatement;
import com.littleinc.orm_benchmark.sqlite.User;
public class OptimizedUser extends User {
public void prepareForInsert(final SQLiteStatement insertUser) {
insertUser.bindString(1, mLastName);
ins... |
package edu.weber.cs.w1234567.roomdemo.db;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import java.util.List;
@Dao
public interface UserDAO {
@Query("Select * from user")
LiveData<List<User>> getAll();
... |
package com.dragon.resource.service.config;//package com.dragon.authserver.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
impor... |
/*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-edition... |
package com.xl.advanced.io;
import java.io.Serializable;
public class Student implements Serializable {
private static final long serialVersionUID = 1L;
public String fdId;
public String fdName;
/*表示score成员不能被序列化,所谓不能序列化是指:
* 该成员调用ObjectOutputStream的writeObject()时不会被保存,
* 调用ObjectInputStream的readOb... |
package me.quydo.androidcustomfont;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.TextView;
import me.quydo.androidcustomfont.util.TypefaceUtil;
/**
*
* @author quydm
*
*/
public class Mai... |
/* Copyright 2009-2016 David Hadka
*
* This file is part of the MOEA Framework.
*
* The MOEA Framework is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at your
... |
/*
* Created on Oct 27, 2006
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package biomight.helminths.nematodes;
/**
* @author SurferJim
*
* To change the template for this generated type comment go to
* Window>Preference... |
/*
* Copyright 2015 Stormpath, 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... |
package com.pankx.bean;
import java.util.ArrayList;
import java.util.List;
public class EmployeeExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table tbl_emp
*
* @mbggenerated Fri Mar 13 18:41:18 CST 2020
*/
protected String orde... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Copyright (C) 2009 The Guava 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://... |
/*
* MIT License
*
* Copyright © 2020 TouchBIT.
* Copyright © 2020 Oleg Shaburov.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation t... |
package com.gmall.list.service;
import com.gmall.model.list.SearchParam;
import com.gmall.model.list.SearchResponseVo;
public interface ListYcService {
void createIndex();
void cancelSale(Long skuId);
void onSale(Long skuId);
void incrHotScore(Long skuId);
SearchResponseVo search(SearchParam ... |
/*
* 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 com.videotrimapp;
import com.facebook.react.ReactActivity;
import com.brentvatne.react.ReactVideoPackage;
import com.imagepicker.ImagePickerPackage;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to sched... |
package com.boluozhai.snowflake.test.tools;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.swing.JFileChooser;
import com.boluozhai.snowflake.util.IOTools;
public class Test... |
package se.lnu.siq.s4rdm3x.dmodel.classes;
public interface InterfaceTest2 {
void fileUpdated();
default void fileRemoved() {
System.out.println("Interfaces with default methods?! WTF!");
};
} |
/*
* JBoss, Home of Professional Open Source
* Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use... |
package org.dadabhagwan.AKonnect.dto;
import com.google.gson.annotations.SerializedName;
import java.util.Map;
public class InitAppResponse {
@SerializedName("alarm_active_flag")
boolean alarmActiveFlag;
@SerializedName("validate_inactive_days")
int validateInactiveDays;
@SerializedName("channel_version... |
/*
*
* 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"); y... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.