hexsha stringlengths 40 40 | size int64 8 1.04M | content stringlengths 8 1.04M | avg_line_length float64 2.24 100 | max_line_length int64 4 1k | alphanum_fraction float64 0.25 0.97 |
|---|---|---|---|---|---|
3ce6f4b1bd5a4f89abbb2b3df848b42fb831db10 | 544 | /*
* GenericsError.java
*
* Created on September 1, 2005, 9:36 AM
*
*/
import java.util.Collection;
interface GenericsError {
public Collection<String> test(
boolean arg1,
boolean arg2,
Object arg3) ;
}
/*
* GenericsErrorImpl.java
*
* Created on September 1, 2005, 9:37 AM
*
*/
class G... | 14.315789 | 50 | 0.636029 |
cddf0cead5704a8fd59e9cdc0451e10ecf365c01 | 3,667 | package net.minecraft.world.item.crafting;
import net.minecraft.core.NonNullList;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.resources.MinecraftKey;
import net.minecraft.world.inventory.InventoryCrafting;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.ItemWrittenBook;
imp... | 33.036036 | 121 | 0.572948 |
ffcadcd8595f1c0b24d5fcff485d360df2933db9 | 4,004 | /*
Copyright 2011-2016 Google 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 by applicable law or agreed t... | 33.366667 | 152 | 0.738761 |
3366312c52790647e1546ec0f0ff427c49e4cf74 | 2,741 | package com.company;
import java.text.SimpleDateFormat;
public class RescueAnimal {
// Instance variables
private String name;
private String type;
private String gender;
private int age;
private float weight;
private String acquisitionDate;
private SimpleDateFormat statusDate;
pr... | 26.872549 | 80 | 0.703393 |
ce1c337db377e303fa559cd6a6ca9f106e39e1f7 | 3,358 | package seedu.exercise.logic.parser;
import static seedu.exercise.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.exercise.logic.parser.CliSyntax.PREFIX_CATEGORY;
import static seedu.exercise.logic.parser.CliSyntax.PREFIX_INDEX;
import static seedu.exercise.logic.parser.CliSyntax.PREFIX_NAME;... | 39.97619 | 116 | 0.72841 |
254a3bca3574ae67a57a62b9c12e933e6048cda3 | 1,999 | /**
* Exercise 12,13
*/
package com.ciaoshen.thinkinjava.chapter21;
import java.util.concurrent.*;
public class Exercise12 implements Runnable{
private volatile int i=0;
private int duration;
public Exercise12(int duration){
this.duration=duration;
}
public synchronized void f3(){
... | 30.753846 | 112 | 0.557279 |
150b8d48f128381979a318895ac114dbdd05fa95 | 1,118 | package org.folio.rest;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Launcher;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import org.folio.okapi.common.MetricsUtil;
public class RestLauncher extends Launcher {
public static void main(String[] args) {
new RestLauncher().dispa... | 27.268293 | 122 | 0.769231 |
fdcfb0a734707d8d7540fb551eab757dfe1bc631 | 1,131 | package org.jzy3d.plot3d.builder.delaunay;
import java.util.Iterator;
import org.jzy3d.plot3d.builder.delaunay.jdt.Point_dt;
import org.jzy3d.plot3d.builder.delaunay.jdt.Triangle_dt;
/**
*
* @author Mo
*/
public interface Triangulation {
/**
* insert the point to this Delaunay Triangulation. Note: if p... | 25.704545 | 77 | 0.670203 |
4208d426efd696376be123c35fff6ce2957037e1 | 10,633 | package com.rnandroid;
import android.os.BatteryManager;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.os.Environment;
import android.os.StatFs;
import android.net.wifi.WifiManager;
import android.net.wifi.WifiInfo;
import android.content.pm.Packa... | 34.189711 | 140 | 0.636509 |
018e84418822fe82a59bab1ea3a43e9c3631aa0e | 2,627 | package com.a6raywa1cher.jsonrestsecurity.faillimiter;
import com.a6raywa1cher.jsonrestsecurity.web.JsonRestSecurityConfigProperties;
import com.a6raywa1cher.jsonrestsecurity.web.JsonRestSecurityPropertiesConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.spring... | 43.065574 | 134 | 0.803198 |
fbbb6dc3ab2cf64ae0bbd662a69ceb1e537d0792 | 3,921 | /*==========================================================================
KJCALC/plotting
PlotCanvasPlots.java
Copyright (c)2017 Kevin Boone, GPL 3.0
==========================================================================*/
package net.kevinboone.math.kjcalc.plotting;
import net.kevinboone.math.kjexpr.*;
import j... | 24.354037 | 76 | 0.536343 |
a6e30dc65e77b4682dd2888055f1fda03762dd35 | 1,551 | /*-
* #%L
* Partial response support for Cloud Endpoints v2
* ---
* Copyright (C) 2018 AODocs (Altirnao 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.... | 28.2 | 88 | 0.710509 |
fd3a27ef119b279c0ebbaa65902321ea2bf21d99 | 14,598 | /*
* Copyright (C) 2008-2017 Matt Gumbley, DevZendo.org http://devzendo.org
*
* 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
*
... | 32.584821 | 138 | 0.556241 |
29a29f6967badd9823e724a109690c629697db65 | 5,866 | /**
* This document is a part of the source code and related artifacts
* for CollectionSpace, an open source collections management system
* for museums and related institutions:
* http://www.collectionspace.org
* http://wiki.collectionspace.org
* Copyright 2009 University of California at Berkeley
* L... | 36.209877 | 117 | 0.636379 |
4ed8c13be406957f4ea248b314cc14ff4657ab49 | 6,947 | package org.cosmicode.freelancr.service;
import allbegray.slack.SlackClientFactory;
import allbegray.slack.exception.SlackArgumentException;
import allbegray.slack.exception.SlackResponseErrorException;
import allbegray.slack.type.Group;
import allbegray.slack.webapi.SlackWebApiClient;
import org.cosmicode.freelancr.... | 37.755435 | 179 | 0.669498 |
82fa258af2d46fb4b9f39a9df5f3af0367d190f5 | 4,459 | // Copyright 2020 The Bazel 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 required by appl... | 40.908257 | 91 | 0.684234 |
bb242dab697970a1d4f477076a9317581dfcd831 | 9,189 | package com.hypertrack.ridesharing.adapters;
import android.annotation.SuppressLint;
import android.content.Context;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.... | 43.966507 | 134 | 0.521167 |
1a94cf1e6a3abe2e93e3a336e0f68b8e53859dda | 2,682 | /*
* Copyright 2018 onwards - Sunit Katkar (sunitkatkar@gmail.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 requ... | 40.636364 | 82 | 0.729306 |
27610ff2a212dc72bda38679c629ea57cb8bd319 | 7,438 | package de.rub.bi.inf.baclient.core.actions;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.concurrent.CountDownLatch;
import com.apstex.gui.core.kernel.Kernel;
import com.apstex.gui.... | 26.949275 | 142 | 0.647889 |
68f2546f12560e9bb5e10934bf37ae826968d78d | 913 | package com.tazine.design.cor;
import com.tazine.design.cor.handler.PriceHandler;
import com.tazine.design.cor.handler.PriceHandlerFactory;
import java.util.Random;
/**
* 客户折扣请求
*
* @author frank
* @date 2017/12/27
*/
public class Customer {
// 只关注折扣被处理,而不在乎是被谁处理。
public static void main(String[] args... | 22.825 | 63 | 0.648412 |
088da69b54a7b3437797b9e911d9460d3a62d8be | 2,585 | /*
Copyright 2010, 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 and the following dis... | 32.3125 | 80 | 0.723791 |
531f022e953eee90f0421b47cd1e9f57e77cb695 | 947 | package habuma;
import java.util.concurrent.atomic.AtomicInteger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import or... | 27.852941 | 76 | 0.791975 |
39e58b3418b7d40e521bdd6965902c8d07f21be8 | 965 | package com.cognizant.cognizantits.qcconnection.qcupdation;
import com4j.Com4jObject;
import com4j.DISPID;
import com4j.DefaultMethod;
import com4j.IID;
import com4j.NativeType;
import com4j.ReturnValue;
import com4j.VTID;
@IID("{35DE061D-B934-4DEB-9F53-6A376EB034DF}")
public abstract interface ICommand
extends IPa... | 20.531915 | 59 | 0.718135 |
2fe53a776033d3c80216c15ef247d624b06fe343 | 1,269 | /*
* Copyright (C) 2009 JavaRosa
*
* 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 ... | 31.725 | 88 | 0.64933 |
2f48c8a13d02336948b15582d3233f7c18a82987 | 910 | package com.jacksonleonardo.unpaper.model.services;
import com.jacksonleonardo.unpaper.model.entities.IUser;
import com.jacksonleonardo.unpaper.model.exceptions.NullArgumentException;
public interface IIdentificationService {
/**
* Returns the identified or null user if not found.
*
* @param acces... | 35 | 106 | 0.713187 |
8f670e4eea63e347852a5a8d4c3bd142e6841627 | 3,613 | /*
* Copyright 2020 Valtech GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, dist... | 30.361345 | 110 | 0.672848 |
216d6c6d042496915f9b74f8b022a81a433f1d90 | 763 | package org.solent.com504.oodd.bank.model.dao;
import java.util.List;
import java.util.Optional;
import org.solent.com504.oodd.bank.model.dto.BankTransaction;
import org.springframework.data.repository.CrudRepository;
public interface BankTransactionDAO extends CrudRepository<BankTransaction,Long> {
List<Ba... | 23.84375 | 86 | 0.732634 |
aec4bfa66bc3d31cc95e1be84086d6d1d18330c0 | 2,612 | /*
* 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 ... | 37.314286 | 102 | 0.693721 |
fb5ba367d3760d073cbd1933a84210a0a0053611 | 1,068 | package com.springraft.persistencememory.state;
import com.springraft.persistence.state.State;
import lombok.*;
import org.springframework.stereotype.Component;
@Component
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class StateImpl implements State {
/* Id of the object */
private... | 23.217391 | 68 | 0.567416 |
e2e05126c59ae0867fca81901f9bce0041b217e1 | 2,160 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
package com.microsoft.gctoolkit.vertx.jvm;
import com.microsoft.gctoolkit.jvm.Diary;
import com.microsoft.gctoolkit.time.DateTimeStamp;
/* package scope */ class JvmConfigurationImpl implements com.microsoft.gctoolkit.jvm.JvmConfiguration {
... | 20.769231 | 104 | 0.642593 |
d569f7e66e23c95cfa543802953a387e126378a7 | 63 | import java.util.*;
public class E {
private List<C> e;
}
| 10.5 | 22 | 0.619048 |
dda7930fafe670fbf027677de43af7f07a5498ad | 10,186 | import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JRootPane;
import javax.swing.JTextField;
public class Calculatrice... | 29.102857 | 120 | 0.649224 |
b8e535ca6a7ce5bf5fb2c663830d361fd0f607eb | 1,406 | package net.apnic.rdapd.types;
import org.junit.Test;
import static org.junit.Assert.*;
public class TupleTest {
private class Banana {
Banana() {}
}
@Test
public void testEquals() throws Exception {
//noinspection ObjectEqualsNull
assertFalse("A Tuple is never equal to null",... | 46.866667 | 164 | 0.642248 |
dca57b3d25dcab16483f46b88e639331a40bcf2f | 2,426 | package org.narrative.network.core.composition.base;
import org.narrative.common.persistence.OID;
import org.narrative.common.persistence.hibernate.HibernateUtil;
import org.narrative.network.core.composition.base.dao.CompositionMentionsDAO;
import org.narrative.network.shared.daobase.NetworkDAOImpl;
import org.hibern... | 30.708861 | 231 | 0.761336 |
89f5622acbc357fd6b66cdb9a4bb05cb2332904d | 1,809 | package cc.xpcas.nettysocks.proxy.ssocks;
import java.nio.charset.*;
import java.security.*;
import javax.crypto.SecretKey;
import cc.xpcas.nettysocks.utils.DigestUtils;
/**
* @author xp
*/
public class SSocksSecretKey implements SecretKey {
private static final int KEY_LENGTH = 32;
private final int ke... | 24.445946 | 74 | 0.565506 |
82a10e47d7af8193bf729255fb28db5a4894a88b | 5,304 | package de.lessvoid.nifty.gdx.render;
import com.badlogic.gdx.Gdx;
import de.lessvoid.nifty.render.batch.BatchRenderBackendInternal;
import de.lessvoid.nifty.render.batch.spi.BatchRenderBackend;
import de.lessvoid.nifty.gdx.render.GdxImage;
import de.lessvoid.nifty.render.BlendMode;
import de.lessvoid.nifty.spi.rende... | 27.340206 | 119 | 0.717006 |
fd0e1e7ec43d2505860e4c2273f20348405f9be5 | 1,409 | /*
* Copyright 2017-2021 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... | 27.627451 | 120 | 0.69127 |
ce8b0afe223112c23dfb0dce2b43103a9883b594 | 963 | package com.rainng.coursesystem.dao.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.rainng.coursesystem.model.entity.StudentEntity;
import com.rainng.coursesystem.model.vo.response.StudentInfoVO;
import com.rainng.coursesystem.model.vo.res... | 41.869565 | 161 | 0.812046 |
f1f6deca895f0d93f60e8ddbb0843554cf14db0f | 1,016 | package com.thiyagu_7.adventofcode.year2020.day17;
import org.junit.Test;
import static com.thiyagu_7.adventofcode.FileUtils.readFile;
import static org.junit.Assert.*;
public class SolutionDay17Test {
private static final String FILE_PATH_SAMPLE = "/year2020/day17/sample-input.txt";
private static final St... | 29.028571 | 86 | 0.726378 |
b6de22aa5b4a0a908beea417183636af28a8ac1f | 792 | package ute.nms.v1_16_R2;
import ute.nms.ActionBarManager;
import net.minecraft.server.v1_16_R2.ChatComponentText;
import net.minecraft.server.v1_16_R2.ChatMessageType;
import net.minecraft.server.v1_16_R2.EntityPlayer;
import net.minecraft.server.v1_16_R2.PacketPlayOutChat;
import org.bukkit.craftbukkit.v1_16_R2.enti... | 36 | 129 | 0.795455 |
240caacc09c34a7a27fcfc68423bdf7c3179326a | 3,537 | package com.dyc.factorymode;
import android.util.Log;
import com.dyc.factorymode.R;
public class TestItem {
private int indexInAll;
private int result;
// add status for test item
public static final int FAIL = 2;
public static final int SUCCESS = 1;
public static final int DEFAULT = 0;
... | 29.974576 | 97 | 0.57676 |
87474219a33f9f8691d044dc064168787d3b7208 | 540 | package de.ableitner.vlcapi.response;
import java.io.IOException;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import de.ableitner.vlcapi.exceptions.VlcApiException;
import de.ableitner.vlcapi.response.playlist.IPlaylist;
import de.ableitner.vlcapi.response.status.IStatus;... | 27 | 88 | 0.844444 |
dea2b9ce2cef0c2bd020b55a064856642352aac1 | 481 | package basic.arrayList;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
/**
* <p>Title: </p>
* <p>Description: </p>
*
* @Author haipeng.wang
* @Date 2021/4/13 13:27
* @Version 1
*/
public class arrayListTest {
@Test
void arrayTest(){
List<String> stringL... | 17.814815 | 55 | 0.582121 |
c17da9115fdc5bb2fdfdfd190d0eb6f980922d1f | 23,106 | package me.andy5.util.concurrent.test;
import org.junit.Test;
import java.util.Comparator;
import java.util.concurrent.Callable;
import java.util.concurrent.PriorityBlockingQueue;
import java.util.concurrent.TimeUnit;
import me.andy5.util.concurrent.PriorityThreadPoolExecutor;
import me.andy5.util.concurrent.Priorit... | 36.910543 | 129 | 0.550766 |
ca2f2799e9a7903be1c4072edd6aa6084b1b7711 | 6,420 | /*
* Copyright 2016 Parasoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 31.625616 | 148 | 0.731153 |
c62cac0bbcffab8856b880005617c199fd7b31f9 | 2,798 | package com.ssafy.d204;
import com.ssafy.d204.chat.controller.ChatSessionController;
import com.ssafy.d204.chat.dto.AssignSessionRequest;
import com.ssafy.d204.chat.dto.ChatSession;
import com.ssafy.d204.chat.dto.ChatSessionCreateReq;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import o... | 38.861111 | 109 | 0.786276 |
a59995a9a6d183103d31bfafa9b4867141dbed88 | 9,282 | /*
* Copyright 2012 AT&T
*
* 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... | 22.529126 | 94 | 0.643396 |
fcd5a50fb4c211162fd2961dc99a2baa838b9670 | 4,487 | package org.broadinstitute.hellbender.utils.genotyper;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.util.*;
/**
* Test {@link org.broadinstitute.gatk.utils.genotyper.AlleleListUtils}.
*
* @author Va... | 37.705882 | 111 | 0.665924 |
4a091c4173e3f283a622fe306add9c644fa1fcd3 | 2,092 | package com.jn.langx.distributed.cluster.loadbalance;
import com.jn.langx.annotation.Nullable;
import com.jn.langx.util.Emptys;
import com.jn.langx.util.collection.Pipeline;
import com.jn.langx.util.function.Predicate;
import com.jn.langx.util.logging.Loggers;
import org.slf4j.Logger;
import java.util.List;
public a... | 27.893333 | 131 | 0.649618 |
f62dda23924b15e84d2e7ab521537bd3b5ab7166 | 704 |
package com.yhy.common.constants;
/**
* @author : yingmu on 15-1-19.
* @email : yingmu@mogujie.com.
* handler 通讯常量类
*
* todo EventBus 事件驱动是否能代替
*/
public class HandlerConstant {
/**
* 消息相关
*/
public static final int HANDLER_RECORD_FINISHED = 0x01; // 录音结束
public static final int HANDLER_... | 22.709677 | 71 | 0.677557 |
a03cf4e9c911513f0089911a65548317ce2ea36d | 4,074 | /*
* Copyright 2020 Andi.
*
* 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 wr... | 35.426087 | 75 | 0.472509 |
ce97fed7416aeb2cdede760da88210400a62a91a | 2,229 | package com.PT.service.impl;
import com.PT.dao.ReceiveRecordMapper;
import com.PT.dao.SettleAccRecordMapper;
import com.PT.entity.SettleAccRecord;
import com.PT.entity.SettleAccRecordExample;
import com.PT.service.ReceiveRecordService;
import com.PT.tools.QueryToMap;
import com.PT.tools.YkatCommonUtil;
import com.gith... | 28.948052 | 120 | 0.698071 |
a811099792354bf89350f66064f0a827c6570a19 | 1,799 | package org.jetbrains.plugins.clojure.config;
import com.intellij.facet.ui.libraries.LibraryInfo;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.plugins.clojure.utils.ClojureUtils;
import static org.jetbrains.plugins.clojure.config.util.ClojureMavenLibraryUtil.createJarDownloadInfo;
/**
* @author il... | 27.676923 | 102 | 0.699277 |
90656eaef23b27814a5381e1b7f37a14844d55e3 | 19,869 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* add_patient.java
*
* Created on 25 Jul, 2018, 11:02:31 AM
*/
package hosptal;
import java.sql.*;
import javax.swing.JOptionPane;
/**
*
* @author owner
*/
public class add_patient extends javax.swing.JInter... | 54.435616 | 340 | 0.610197 |
5b2f2b61db0964df753089532a7f3c1794bbf665 | 4,492 | package org.xmlcml.cml.converters.compchem.nwchem;
import java.io.File;
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import nu.xom.Builder;... | 35.650794 | 140 | 0.696126 |
ba8ec376dd31e02a0ef58281516d739e114fef0d | 1,629 | package com.travel.sibar.sibartravel;
import java.util.ArrayList;
/**
* Created by ibrahim on 21/07/16.
*/
public class SearchResultsModel {
ArrayList<String> name;
ArrayList<String> imgURL;
ArrayList<String> price;
ArrayList<String> coordinates;
ArrayList<String> placeID;
ArrayList<String... | 21.434211 | 57 | 0.622468 |
cad76ffc01d2db148be5b470430bd4a70e1cbc01 | 855 | package kotlin.reflect.jvm.internal.impl.resolve.constants;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
/* compiled from: constantValues.kt */
public final class DoubleValue extends ConstantValue... | 35.625 | 89 | 0.739181 |
da55c610903fe23ee2d1f67c7f5495261d9cdb8a | 975 | package dev.sheldan.abstracto.webservices.urban.exception;
import dev.sheldan.abstracto.core.exception.AbstractoRunTimeException;
import dev.sheldan.abstracto.core.templating.Templatable;
import dev.sheldan.abstracto.webservices.urban.model.exception.UrbanDictionaryRequestExceptionModel;
public class UrbanDictionaryR... | 33.62069 | 103 | 0.746667 |
39fa7b1f37c62b3c5e67b8bd89b82c6a65f87bfc | 231 | package com.maven.extend;
public class ExtendsTest {
public static Employee getEmployee(){
return new Employee();
}
public static Manager getManager(){
Manager manager = (Manager) getEmployee();
return manager;
}
}
| 15.4 | 44 | 0.714286 |
788af69dc8aa72d70a77f61e69410adeefb70129 | 715 | package dmurra47.wheels;
/**
* Set of functions needed in a class that behaves like a "wheel".
*
* @author Darryl Murray
* @version 1.0, 01-30-2016
*/
public interface Rollable<T> {
/**
* Resets the wheel to the starting position.
*/
void reset();
/**
* Increases the wheel position t... | 19.324324 | 104 | 0.598601 |
c0c7ad52925d5f9d8d2a061975ae467f8c895732 | 989 | package com.db.hack.controllers;
import com.db.hack.data.save.UserRegistrationSave;
import com.db.hack.databse.DatabaseConnectionFactory;
import com.db.hack.service.LoginService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web... | 31.903226 | 99 | 0.79272 |
eaece3a32d257652bb52b13bcbb87d410b88334b | 13,458 | package pt.rupeal.invoicexpress.fragments;
import pt.rupeal.invoicexpress.MainActivity;
import pt.rupeal.invoicexpress.R;
import pt.rupeal.invoicexpress.enums.FragmentTagsEnum;
import pt.rupeal.invoicexpress.enums.RoleEnum;
import pt.rupeal.invoicexpress.fragments.DocumentsListFragment.DocumentFilterFragment;
import p... | 47.893238 | 145 | 0.773369 |
ba50886610d98d7590c2a43ce0056aab1d32afc3 | 4,078 | /**
* Copyright 2012-2015 Gunnar Morling (http://www.gunnarmorling.de/)
* and/or other contributors as indicated by the @authors tag. See the
* copyright.txt file in the distribution for a full listing of all
* contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 38.471698 | 120 | 0.607406 |
dfe8d34b88a702a3a33e3b5ba227c28746ab900c | 1,416 | /**
*
*/
package gov.noaa.pmel.dashboard.server.db.dao;
import java.sql.SQLException;
import java.util.List;
import gov.noaa.pmel.dashboard.server.model.InsertUser;
import gov.noaa.pmel.dashboard.server.model.User;
/**
* @author kamb
*
*/
public interface UsersDao {
public void addAccessRole(String userna... | 27.764706 | 89 | 0.739407 |
c5723b8a79fc5bea3d35cd160550fd16c94e72eb | 4,098 | package android.coolweather.user.coolweather.service;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.coolweather.user.coolweather.gson.Weather;
import android.coolweather.user.coolwea... | 37.254545 | 133 | 0.609078 |
552a29d47b0e9950849895c37e34fa6ffaaf7f60 | 741 |
package com.technicise;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VaginalFoam.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="VaginalFoam">
* <restric... | 19 | 95 | 0.649123 |
ad0fbb5af62bf78ceca5083ca756ba2e33221264 | 304 | package minds.behavior;
import java.util.ArrayList;
import entity.mind.ExternalPerceptionInterface;
public class BehaviorEat extends SequenceBehaviorImpl {
@Override
protected void setBehavior() {
this.actionsForStep.add("EAT");
}
@Override
public String getName() {
return "EAT";
}
}
| 14.47619 | 55 | 0.746711 |
e302e6695ff44b9b9b640ccba085fcfb99699b51 | 1,684 | package com.mcxtzhang.chapter15;
import java.lang.reflect.Array;
/**
* Intro:
* Author: zhangxutong
* E-mail: mcxtzhang@163.com
* Home Page: http://blog.csdn.net/zxt0601
* Created: 2017/4/5.
* History:
*/
public class GenericsClearTest<TYPE> {
Class<TYPE> holder;
//运行时使用 会出错
TYPE[] arrays;
//... | 28.066667 | 81 | 0.602138 |
42fddab8f60cd5f2f7c073375d9633c00856ec42 | 19,178 | /* */ package com.ibm.ism.script.webclient.beans.autoscript;
/* */
/* */ import com.ibm.tivoli.maximo.script.ScriptDriver;
/* */ import com.ibm.tivoli.maximo.script.ScriptDriverFactory;
/* */ import com.ibm.tivoli.maximo.script.ScriptParamInfo;
/* */ import java.io.ByteArrayOutputStream;
/* ... | 41.873362 | 171 | 0.480603 |
0505f30e7daee701562cceae049d8571c5c661fd | 1,036 | package br.com.badrequest.insporte.rest;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import br.com.badrequest.insporte.rest.model.Response;
impo... | 24.093023 | 72 | 0.766409 |
6dc42bd90ff3b8b29b4d489fbaf2cedc72049745 | 2,649 | /*
* Copyright [2017] Wikimedia Foundation
*
* 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... | 29.433333 | 100 | 0.671952 |
84ffd30520752018145ec13cf63563589368b4e4 | 2,996 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty 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.apache.or... | 24.16129 | 80 | 0.615821 |
8ffa63d8e1645e4d4a108f8e99af8e782f3b4851 | 4,403 | package com.ucar.datalink.manager.core.utils.timer;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import java.util.function.Consumer;
/**
* Created by lubiao on 2016/12/12.
*/
class TimerTas... | 33.356061 | 121 | 0.568022 |
fd3ce3124a8964ae9e8ee1d79895dd9b120f12e4 | 8,852 | package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.commands.CommandTestUtil.ADDRESS_DESC_DANIEL;
import static seedu.address.logic.commands.CommandTestUtil.ADDRESS_DESC_ELLE;
import static seedu.address.logic.commands.... | 54.981366 | 113 | 0.766042 |
7c6fd8c52d1c0a022ab2c87d1192120b92ed5985 | 4,955 | package com.hongliangjie.fugue.distributions;
import com.hongliangjie.fugue.utils.MathExp;
import com.hongliangjie.fugue.utils.MathLog;
import com.hongliangjie.fugue.utils.RandomUtils;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by liangjie on 3/3/16.
*/
public class Multinomi... | 41.291667 | 117 | 0.596973 |
1835102e12aa373565f1a713f1587a6da3fa8313 | 258 | package com.example.cli.utils.cache;
public interface CacheClient<T> {
T get(String key);
boolean isExist(String key);
void set(String key, T value);
void set(final String key, T value, int millSeconds);
void remove(String key);
}
| 16.125 | 57 | 0.678295 |
dfb9aaaf591378b3fdbd42233a9abd9b3da18230 | 641 | package quick.pager.shop.goods.service;
import java.util.List;
import quick.pager.shop.goods.model.GoodsBrand;
import quick.pager.shop.goods.request.brand.GoodsBrandPageRequest;
import quick.pager.shop.goods.request.brand.GoodsBrandSaveRequest;
import quick.pager.shop.response.Response;
/**
* 商品品牌
*
* @author sigu... | 20.677419 | 72 | 0.706708 |
90ea6456b3f2deb54772402292ba7b905961536b | 297 | package net.evendanan.pushingpixels;
/**
* Created by menny on 11/6/13.
*/
public interface Passengerable {
void setItemExpandExtraData(float originateViewCenterX, float originateViewCenterY,
float originateViewWidthScale, float originateViewHeightScale);
}
| 29.7 | 95 | 0.720539 |
8bb61f1a23704eaed40719c238a9a5fafcb6613c | 867 | import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
public class Client {
public static void main(String[] args) throws IOException {
testClient();
}
public static void testClient() {
String host = "localhost";
int port = 8080;
System.out.println("连接到主机:" + host + " ,端口号:" + port);
... | 27.967742 | 67 | 0.696655 |
0544fa4287c4645a33031039aa746a28130db965 | 2,466 | package org.innovateuk.ifs.management.competition.setup.application.validator;
import org.innovateuk.ifs.competition.publiccontent.resource.FundingType;
import org.innovateuk.ifs.competition.resource.CompetitionResource;
import org.innovateuk.ifs.competition.resource.CompetitionSetupQuestionResource;
import org.innova... | 46.528302 | 135 | 0.786699 |
85f8f683dd39207500a500a53c09647c214599b0 | 1,279 | package com.fund.system.service;
import java.util.Date;
import java.util.List;
import com.fund.system.domain.Holiday;
/**
* 节假日信息Service接口
*
* @author liulebin
* @date 2021-12-16
*/
public interface IHolidayService {
/**
* 查询节假日信息
*
* @param id 节假日信息主键
* @return 节假日信息
*/
public ... | 16.189873 | 60 | 0.551212 |
f07f66c549fe35b0c7c2f45d119310988b0187dd | 6,861 | package com.articulate.sigma.nlg;
import com.articulate.sigma.KB;
import com.articulate.sigma.wordNet.WordNet;
import com.articulate.sigma.wordNet.WordNetUtilities;
import com.google.common.collect.HashMultiset;
import com.google.common.collect.Multiset;
import com.google.common.collect.Multisets;
import com.google.co... | 36.494681 | 125 | 0.535345 |
731c78ffc5e2e30d32a22f67900b9fc924af9fbb | 6,124 | package uk.lgl.modmenu;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Handler;
import android.os.Process;
import android.provider.Settings;
import andro... | 40.556291 | 177 | 0.541639 |
ea384f157be80621fba8276c2eb57346446640e4 | 3,424 | package com.avairebot.senither.utils;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import net.dv8tion.jda.api.entities.Message;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nonnull;
import java... | 33.242718 | 116 | 0.605432 |
2f98dbfd5ac94895acd29ba8f0d1c525aa7bfcac | 2,101 | package uk.gov.hmcts.reform.divorce.ccd;
import io.restassured.response.Response;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpHeaders;
import org.springframe... | 38.907407 | 127 | 0.774869 |
76a436c1c8d7b9088a0da2eb5e023baac69b2e87 | 362 | package me.konsolas.conditionalcommands.placeholders;
import org.bukkit.entity.Player;
public class PlaceholderPerm extends AbstractParameteredPlaceholder {
public PlaceholderPerm() {
super("perm");
}
@Override
protected String getSub(Player player, String param) {
return player.hasP... | 22.625 | 69 | 0.701657 |
35ff55b26badbe9010a32d732f87663829b15065 | 155 | package net.zhuoweizhang.bingvenueaccess.model;
public class Geometry {
public boolean closed;
public double[] latitudes;
public double[] longitudes;
} | 22.142857 | 47 | 0.793548 |
7029db45c7ff462f2f0b3d7d09f7a6ae99565511 | 1,316 | package com.jpardogo.android.listbuddies.models;
import android.content.Context;
import com.jpardogo.android.listbuddies.R;
import com.jpardogo.android.listbuddies.adapters.CustomizeSpinnersAdapter;
import com.jpardogo.listbuddies.lib.views.ListBuddiesLayout;
/**
* Created by jpardogo on 22/02/2014.
*/
public clas... | 28 | 120 | 0.62766 |
b81468223c02730e8d2aa6d3edff7185c46b5c0a | 509 | package com.jilin.mes.basic.model;
/*
* 创建时间 2018/7/3
* 作者: 程杰
* 博客: www.chengjie-jlu.com
*/
import com.jilin.mes.basic.constant.TableName;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 科室表
*/
@Entity
@Table(name = TableN... | 12.725 | 46 | 0.638507 |
418992049e0d3eaf2730ee4c3c204ddb0d352a1d | 11,275 | package gov.samhsa.ocp.ocpfis.service;
import ca.uhn.fhir.rest.api.MethodOutcome;
import ca.uhn.fhir.rest.client.api.IGenericClient;
import ca.uhn.fhir.rest.gclient.IQuery;
import ca.uhn.fhir.rest.gclient.ReferenceClientParam;
import ca.uhn.fhir.rest.gclient.TokenClientParam;
import ca.uhn.fhir.validation.FhirValidato... | 51.25 | 252 | 0.727007 |
491cc696e1cdbe719f03d7b4b40f513362bbfbfc | 2,788 | package edu.fiuba.algo3.modelo.preguntas;
import edu.fiuba.algo3.modelo.Jugador;
import edu.fiuba.algo3.modelo.Opcion;
import edu.fiuba.algo3.modelo.Respuesta;
import edu.fiuba.algo3.modelo.preguntas.MultipleChoice;
import edu.fiuba.algo3.modelo.preguntas.TipoParcial;
import org.junit.jupiter.api.Test;
import java.ut... | 38.722222 | 158 | 0.754663 |
cfb65649ea8be80113a4f480ff8c70bf3b47f846 | 674 | package com.device.security.activities;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnKeyListener;
/* compiled from: lambda */
public final /* synthetic */ class -$$Lambda$BlockedAppActivity$ieiDy6OeJ0a9p4tNBYtAVQhpnZI implements OnKeyListener {
private final /* synthetic */ B... | 35.473684 | 124 | 0.752226 |
aa97e8587cf6140e96dee25b64f3819112542b75 | 27,109 | package vproxybase.processor.http1;
import vproxybase.processor.ConnectionDelegate;
import vproxybase.processor.OOSubContext;
import vproxybase.processor.Processor;
import vproxybase.processor.http1.builder.ChunkBuilder;
import vproxybase.processor.http1.builder.HeaderBuilder;
import vproxybase.processor.http1.builder... | 31.892941 | 140 | 0.498358 |
8e7881a0f1aac6078fa2d56ac5bdcc03bd6fe8b8 | 3,663 | package util;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.x... | 30.272727 | 89 | 0.60415 |
8388c44b71b8e3bbc85fecb1642583afa520c260 | 1,265 | package fr.snapgames.fromclasstogame.demo.behaviors;
import fr.snapgames.fromclasstogame.core.behaviors.Behavior;
import fr.snapgames.fromclasstogame.core.entity.GameObject;
import fr.snapgames.fromclasstogame.core.gfx.Render;
import fr.snapgames.fromclasstogame.core.io.actions.ActionHandler;
import fr.snapgames.fromc... | 37.205882 | 95 | 0.693281 |
06c015eeefb361fec893a19dfd0993bb02cfa9b8 | 1,781 | /**************************************************************************
TableViewScrollPosition.java is part of Titanium4j Mobile 3.0. Copyright 2012 Emitrom 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 obt... | 34.921569 | 93 | 0.661426 |
18018b20efae60672b13beb6c9cbd90c71c4d79f | 2,083 | package com.example.android.androidstore;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import java.io.ByteArrayOutputStream;
/**
*
* Created by omar on 7/3/16.
*/
public class Product {
private String name;
private double price;
private int quantity;
private String supp... | 23.942529 | 118 | 0.612578 |
03076948608c6847ef3c3b170654cf1a4f94f346 | 2,166 | package org.example.app.controller;
import java.net.URI;
import java.util.List;
import java.util.Optional;
import javax.validation.Valid;
import org.example.app.dto.DeviceDTO;
import org.example.app.service.DeviceService;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import o... | 36.1 | 119 | 0.745152 |
5d070fb42dc4515fa74e64fca9dc415c92d08cd9 | 1,509 | /*
* Copyright (C) 2020 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... | 38.692308 | 109 | 0.759443 |
a1ed696c91814b8c5379f416660342f788734c75 | 754 | package org.javaturk.oopj.ch06.assignment;
public class Stack {
// Default maximum stack size
public static final int MAX_STACK_SIZE = 5;
// Put element on the top
public boolean push(String newElement) {
return false;
}
// Pop element from the top
public String pop() {
return null;
}
// Remove all ... | 14.784314 | 44 | 0.676393 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.