text stringlengths 7 995k |
|---|
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.ui.table;
import com.intellij.ide.IdeBundle;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.util.Comparing;
import ... |
package com.google.api.ads.dfp.jaxws.v201602;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* The action used for deactivating {@link ContentBundle} objects.
*
*
* <p>Java class for Deact... |
package com.esri.arcgisruntime.opensourceapps.gisworkbench.app.controller.menus;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import java.awt.*;
import java.net.URL;
public class HelpMenuController {
@FXML
private void handleHelp() {
if (Desktop.isDesktopSupported()) {
try... |
package org.openstack4j.openstack.identity.v3.internal;
import org.openstack4j.api.identity.v3.RegionService;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.identity.v3.Region;
import org.openstack4j.openstack.identity.v3.domain.KeystoneRegion;
import org.openstack4j.openstack.identit... |
package com.laegler.openbanking.model;
import com.laegler.openbanking.model.CreditInterest1TierBandSet;
import io.swagger.annotations.ApiModel;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.ApiModelProperty;
impor... |
/**
* Copyright @ 2012-2022 yuhaijun.com.cn All Rights Reserved
*/
package cn.com.yuhaijun.app.bo;
import java.sql.SQLException;
import cn.com.yuhaijun.common.base.BaseBO;
import cn.com.yuhaijun.common.database.DBConnManager;
/**
* Sample_XXXXXXXX
*
* @author Haijun
*/
public class SampleBO extends BaseBO {
... |
/*
* Copyright 2013 Guidewire Software, Inc.
*/
package gw.plugin.ij.lang.psi.api.util;
import com.intellij.psi.PsiElement;
import com.intellij.util.IncorrectOperationException;
import gw.plugin.ij.lang.psi.IGosuPsiElement;
import gw.plugin.ij.lang.psi.api.statements.IGosuStatement;
import org.jetbrains.annotations... |
/*
* Copyright 2019 ukuz90
*
* 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... |
package com.mall.ware.dao;
import com.mall.ware.entity.WmsWareOrderTaskEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 库存工作单
*
* @author mark
* @email Wyl@gmail.com
* @date 2020-07-19 15:30:51
*/
@Mapper
public interface WmsWareOrderTaskDao ext... |
package com.mestresistemico.dsmovieflix.services.exceptions;
public class ResourceNotFoundException extends RuntimeException{
private static final long serialVersionUID = 1L;
public ResourceNotFoundException (String msg) {
super(msg);
}
} |
package com.weesftw.pokeapi.adapter.inbound.controller;
import com.weesftw.pokeapi.adapter.inbound.handler.AttributeMap;
import com.weesftw.pokeapi.adapter.inbound.response.HighlightResponse;
import com.weesftw.pokeapi.adapter.inbound.response.PokemonResponse;
import com.weesftw.pokeapi.application.UtilsTest;
import o... |
/*
* Licensed to Elasticsearch 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
* not use this fi... |
package com.server;
import com.vivt.Main;
import java.io.FileInputStream;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.util.logging.Logger;
/*
* Responsible for entering data for the administrator.
* Responsible for logging.
* The single-responsibility... |
/**
* Copyright (C) 2017 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... |
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package jetbrains.mps.lang.editor.diagram.runtime.jetpad.views;
/*Generated by MPS */
import jetbrains.jetpad.projectional.view.ViewPropertySpec;
public interface MovableContentView {
ViewPropertySpec<Integer> POSITION_X = new ViewPropertySpec("position_x");
ViewPropertySpec<Integer> POSITION_Y = new ViewPropert... |
package com.stripe.model;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.stripe.net.APIResource;
import com.stripe.net.RequestOptions;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public abstract class StripeCollectionAPIResource<T extends HasId> extends APIResource impleme... |
package com.becketal.lsc.plugins.connectors.cache4clean;
import java.lang.reflect.Constructor;
import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.lsc.LscDatasets;
import org.lsc.beans.IBean;
import org.lsc.beans.SimpleBean;
import org.lsc.configuration.LscCo... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE90_LDAP_Injection__listen_tcp_51a.java
Label Definition File: CWE90_LDAP_Injection.label.xml
Template File: sources-sink-51a.tmpl.java
*/
/*
* @description
* CWE: 90 LDAP Injection
* BadSource: listen_tcp Read data using a listening tcp connection
* GoodSource: A har... |
package com.akshaykhole.whatsnews.articles;
import android.widget.AbsListView;
/**
* Created by akshay on 10/23/16.
*/
public abstract class EndlessScrollListener implements AbsListView.OnScrollListener {
private int visibleThreshold = 5;
private int currentPage = 0;
private int previousTotalItemCount ... |
package com.checkmarx.sdk.dto.cxgo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.*;
@JsonInclude(JsonInclude.... |
package co.com.lafemmeapp.dataprovider.repo;
import android.support.annotation.NonNull;
import com.google.gson.Gson;
import co.com.lafemmeapp.dataprovider.Constants;
import co.com.lafemmeapp.dataprovider.exceptions.NoSessionException;
import co.com.lafemmeapp.dataprovider.local.DBDataSource;
import co.com.lafemmeapp... |
/**
* Copyright © 2016-2020 The Thingsboard 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 applicab... |
package org.peimari.gleaflet.client;
public interface OverlayAddListener {
void onOverlayAdd(LayersControlEvent event);
} |
/**
*
*/
package here;
import org.junit.Assert;
import org.junit.Test;
/**
* @author debmalyajash
*
*/
public class OzLuckyStringTest {
@Test
public final void test() {
int actual = OzLuckyString.process("KRKRKKR");
Assert.assertEquals(4, actual);
actual = OzLuckyString.process("KKKRRR");
Assert... |
package com.oc.hawk.base.application;
import com.oc.hawk.base.api.dto.AddUserDTO;
import com.oc.hawk.base.domain.model.user.User;
import com.oc.hawk.base.domain.model.user.UserRepository;
import com.oc.hawk.base.domain.service.UserPasswordEncoder;
import com.oc.hawk.base.domain.service.UserRegisterChecker;
import lomb... |
/**
* Copyright (c) 2011 Source Auditor 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 appli... |
package com.thegreatapi.ahundreddaysofjava.day096;
import jakarta.inject.Qualifier;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PA... |
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.doctusoft.bean.binding;
/*
* #%L
* ds-bean-binding
* %%
* Copyright (C) 2014 Doctusoft Ltd.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... |
/*
* Copyright 2018
* Ubiquitous Knowledge Processing (UKP) Lab and FG Language Technology
* Technische Universität Darmstadt
*
* 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
*
* htt... |
package com.synectiks.cms.entities.enumeration;
/**
* The CommonSubEnum enumeration.
*/
public enum CommonSubEnum {
MATHS, PHYSICS, CHEMISTRY, DBMS
} |
/* Copyright 2002-2022 CS GROUP
* Licensed to CS GROUP (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
/*
*
* 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
* distri... |
package com.marklogic.javaclient;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.Calendar;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.fasterxml.jackson.data... |
package me.limeglass.deadbycraft.inventories;
import java.util.Optional;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import fr.minuskube.inv.ClickableItem;
import fr.minuskube.inv.SmartInventory;
import fr.minuskube.inv.content.Inven... |
/*
* Copyright © 2015 jomp16 <joseoliviopedrosa@gmail.com>
*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
package tk.jomp16.plugin.help;
impo... |
package org.daylightingsociety.wherearetheeyes;
import android.app.Activity;
import android.os.Bundle;
/**
* Created by milo on 3/27/16.
*/
public class HelpActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setConte... |
package utils;
import java.io.IOException;
public interface FileUtil {
String[] readFileContent(String filePath) throws IOException;
void write(String content, String filePath) throws IOException;
} |
/*
* Copyright 2011-2020 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 (c) 2020 Broadcom.
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifi... |
package com.cbrothercoder.demo.common.web.views.file;
import org.springframework.web.servlet.view.AbstractView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.OutputStream;
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 may ... |
/* Soot - a J*va Optimization Framework
* Copyright (C) 2003 Ondrej Lhotak
*
* This library 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 2.1 of the License, or (at your option)... |
package tody.lovely.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
public class RegisterRequestValidator implements Validator{
priva... |
package org.firstinspires.ftc.teamcode.Hardware;
import com.qualcomm.robotcore.hardware.AnalogInput;
/**
* This class converts an analog encoder into an incremental one by looking for
* wrap arounds in the signal
*/
public class Tracker {
AnalogInput m_encoder;
public static final double WRAP_AROUND_THRESH... |
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.sequenceiq.cloudbreak.shell.util;
public final class MessageUtil {
private MessageUtil() {
}
public static String getMessage(Exception exception) {
//if (exception instanceof ResponseExceptionMapper)
//return String.valueOf(((Map) ((HttpResponseException) exception).getResponse... |
/*
* Copyright 2014 Alexey Andreev.
*
* 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 2016-2017 Davide Steduto
*
* 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... |
//,temp,sample_1265.java,2,15,temp,sample_1256.java,2,13
//,3
public class xxx {
public void testGlobTargetMissingMultiLevel() {
try {
Path listFile = new Path("target/tmp1/listing").makeQualified(fs.getUri(), fs.getWorkingDirectory());
addEntries(listFile, "*/*");
createFiles("multifile/file3", "multifile/file4", "mul... |
/*
* Copyright 2019, 2020 Robert Cooper, ThoughtWorks
*
* 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 Ascii4UwUWareClient.Module.Modules.Move;
import Ascii4UwUWareClient.API.EventHandler;
import Ascii4UwUWareClient.API.Events.World.EventMove;
import Ascii4UwUWareClient.API.Events.World.EventPreUpdate;
import Ascii4UwUWareClient.API.Value.Mode;
import Ascii4UwUWareClient.API.Value.Numbers;
import Ascii4UwUWareC... |
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package com.msci.carrental.service.model;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
@XmlType
public class BookingResult {
@XmlElement
private long reference;
@XmlElement
private BookingRequest bookingRequest;
@XmlElement
private BookingSt... |
/*
* Copyright (c) 2016-2017, Adam <Adam@sigterm.info>
* 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 source code must retain the above copyright notice, this
* ... |
/* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vedit.beans;
import java.util.Map;
public class DynamicFieldRow {
private int id = -1;
private String value = null;
private Map parameterMap = null;
public int getId() {
return id;
}
... |
package org.narrative.network.customizations.narrative.service.impl.invoice;
import org.narrative.common.persistence.OID;
import org.narrative.network.customizations.narrative.invoices.FiatPayment;
import org.narrative.network.customizations.narrative.invoices.Invoice;
import org.narrative.network.customizations.narra... |
// Copyright © 2019, California Institute of Technology ("Caltech").
// U.S. Government sponsorship acknowledged.
//
// 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 ... |
package org.finos.symphony.toolkit.stream.cluster;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import org.finos.symphony.toolkit.stream.Participant;
import org.finos.symphony.toolkit.stream.c... |
/*
* Copyright 2011 Goldman Sachs.
*
* 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 ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.cloud.config.properties;
import static com.azure.spring.cloud.config.AppConfigurationConstants.EMPTY_LABEL;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java... |
package se.bettercode.scrum.team;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class TeamImpl implements Team {
private StringProperty name;
private Inte... |
package com.planet_ink.coffee_mud.Abilities.Paladin;
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.StdAbility;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import co... |
package com.myth.service.impl;
import com.google.inject.Inject;
import com.myth.models.User;
import com.myth.repository.IUserRepository;
import com.myth.service.IUserService;
import java.util.Optional;
public class UserService implements IUserService {
private IUserRepository userRepository;
@Inject
pu... |
import java.util.Scanner;
/**
*
* @author Bruno
*/
public class Main {
public static void main(String[] args) {
Scanner ler= new Scanner(System.in);
//instancia
Pessoa p= new Pessoa();
Data d= new Data();
Endereco e= new Endereco();
//menu
byte menu;
do{
... |
package br.com.mercadoLivre.model;
import javax.persistence.*;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
@Entity
public class CaracteristicaProduto {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String nome;
private String desc... |
/**
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI
* Licensed under the MIT License
*/
package com.wegas.core.ejb;
import com.wegas.core.Helper;
import com.wegas.core.ejb.statemachine.StateMachineFacade;
import com.wegas.core.persistence.game.P... |
/*******************************************************************************
* Copyright (c) 2016 Microsoft Research. All rights reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "S... |
/*
* Copyright 2015, Google Inc. 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 conditions a... |
package ch.evolutionsoft.rl;
import static org.junit.jupiter.api.Assertions.*;
import org.deeplearning4j.nn.graph.ComputationGraph;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
public class MonteCarloTree... |
/*
Derby - Class org.apache.derby.impl.sql.compile.UserAggregateDefinition
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 f... |
package com.diabumma.openmoviemvvm.repositories;
import android.util.Log;
import androidx.lifecycle.MutableLiveData;
import com.diabumma.openmoviemvvm.models.Movie;
import com.diabumma.openmoviemvvm.models.Search;
import com.diabumma.openmoviemvvm.networks.OpenMovieAPI;
import com.diabumma.openmoviemvvm.networks.Ret... |
/*
* 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 com.github.mdre.joditWrapper;
import com.vaadin.flow.component.AttachEvent;
import com.vaadin.flow.component.Component;
impor... |
/*
* Copyright (C) 2013-2016 Peng Li<aqnote@qq.com>.
* This library 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;
*/
package com.aqnote.shared.components.test.task.sub;
/**
* 会员接口实现
*
* @author... |
/*
* Copyright (c) 2005-2010, 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.ap... |
/*
* Copyright 2005-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package com.demo.app.repository;
import com.demo.app.domain.PersistentAuditEvent;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import java.time.Instant;
import java.util.List;
/**
* Spring Data JPA reposit... |
package it.smallcode.smallpets.v1_13.pets;
/*
Class created by SmallCode
03.01.2021 11:36
*/
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugi... |
package seedu.meeting.logic.commands;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static seedu.meeting.commons.core.Messages.MESSAGE_MEETINGS_FOUND_OVERVI... |
package cn.bingoogolapple.refreshlayout.demo.adapter;
import android.content.Context;
import cn.bingoogolapple.androidcommon.adapter.BGAAdapterViewAdapter;
import cn.bingoogolapple.androidcommon.adapter.BGAViewHolderHelper;
import cn.bingoogolapple.refreshlayout.demo.R;
import cn.bingoogolapple.refreshlayout.demo.mod... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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.react.views.imagehelper;
import javax.annotation.Nullable;
import java.util.List;
import com.facebook.imag... |
/*
* Copyright 2014 The LolDevs team (https://github.com/loldevs)
*
* 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 requir... |
/**
* Copyright (c) 2006-2009 Marwan Abi-Antoun, Jonathan Aldrich, Nels E. Beckman,
* Kevin Bierhoff, David Dickey, Ciera Jaspan, Thomas LaToza, Gabriel Zenarosa, and others.
*
* This file is part of Crystal.
*
* Crystal is free software: you can redistribute it and/or modify
* it under the terms of the GNU ... |
package com.company.example;
import org.junit.Assert;
import org.junit.Test;
public class FeatureTest {
/** Dummy unit test example */
@Test
public void isGoodAnswer() {
Assert.assertEquals(42, Feature.getAnswer());
}
} |
package tasks;
import utils.log.Logger;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import static java.lang.Math.abs;
//Answer :
public class Task_461 implements ITask {
public static void... |
package com.ctrip.framework.apollo.spi;
import com.ctrip.framework.apollo.build.ApolloInjector;
import com.google.common.collect.Maps;
import java.util.Map;
/**
* 默认 ConfigFactory 管理器实现类
*
* @author Jason Song(song_s@ctrip.com)
*/
public class DefaultConfigFactoryManager implements ConfigFactoryManager {
pr... |
public static void loadFont1(URL url) throws FontFormatException, IOException {
InputStream stream = url.openStream();
Font font = Font.createFont(Font.TRUETYPE_FONT, stream);
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
ge.registerFont(font);
} |
package com.taxonic.carml.vocab;
@SuppressWarnings("java:S115")
public class Fnml {
private Fnml() {}
public static final String PREFIX = "fnml";
public static final String NAMESPACE = "http://semweb.mmlab.be/ns/fnml#";
public static final String functionValue = NAMESPACE + "functionValue";
} |
package com.systemj.hmpsoc.nodes;
import java.io.PrintWriter;
import java.util.HashMap;
import com.systemj.hmpsoc.DeclaredObjects;
import com.systemj.hmpsoc.MemoryPointer;
public class JoinNode extends BaseGRCNode {
@Override
public void weirdPrint(PrintWriter pw, MemoryPointer mp, int termcode,
int cdi, BaseG... |
/*
* 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.thebluealliance.androidclient.auth.firebase;
import com.google.firebase.auth.FirebaseUser;
import com.thebluealliance.androidclient.auth.User;
import android.net.Uri;
public class FirebaseSignInUser implements User {
private final FirebaseUser mFirebaseUser;
public FirebaseSignInUser(FirebaseU... |
/*
* Copyright (C) 2015 Kumaresan Rajeswaran
*
* 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... |
package main.com.learn.day.day5.crmBusiness.assets.po;
import main.com.learn.day.day5.crmBusiness.assets.enums.FixedPropertyType;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 固定资产基础信息
*/
@Entity... |
package org.byron4j.cookbook.designpattern;
import org.byron4j.cookbook.designpattern.builder.Meal;
import org.byron4j.cookbook.designpattern.builder.MealBuilder;
import org.byron4j.cookbook.designpattern.builder.MealDirector;
import org.byron4j.cookbook.designpattern.builder.SandwichBuilder;
import org.junit.Test;
p... |
/*
* 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 ... |
package org.spacebits.components.computers;
import org.spacebits.components.computers.BasicSystemComputer;
import org.spacebits.spacecraft.Bus;
import org.spacebits.spacecraft.BusComponentSpecification;
public class MockSystemComputer extends BasicSystemComputer{
protected double totalPowerAvailable = 0.0;
protec... |
package org.broadinstitute.hellbender.utils.python;
import org.apache.commons.io.FileUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.broadinstitute.hellbender.exceptions.GATKException;
import org.broadinstitute.hellbender.utils.Utils;
import org.broadinstitute.hell... |
/*
* XML Type: quote
* Namespace: http://schemas.microsoft.com/crm/2007/WebServices
* Java type: com.microsoft.schemas.crm._2007.webservices.Quote
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.crm._2007.webservices;
/**
* An XML quote(@http://schemas.microsoft.com/crm/2007/WebS... |
package com.datonicgroup.narrate.app.dataprovider.providers;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import com.datonicgroup.narrate.app.dataprovider.providers.Contract.Entries;
import com.datonicgroup.narrate.app.dataprovider.sync.AbsSyncService;
import com.daton... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.