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 |
|---|---|---|---|---|---|
a7f56c65c4942b4e48ab88d6fb5239deb32500f0 | 2,283 | package id.imam.cobakkp.model;
import com.google.android.gms.common.data.SingleRefDataBufferIterator;
public class ModelWisatabaru {
String id_order;
String kode_transaksi;
String keterangan;
String alamat_email;
String gambar_wisata;
String tempat_wisata;
String dekripsi_wisata... | 26.546512 | 179 | 0.662724 |
cfc859345ad91f2d1ae27b41278679f3076e7188 | 3,062 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.schema.expressiontransforms;
import ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels;
import com.yahoo.search.query.profile.QueryProfileRegistry;
import com.yahoo.schema.RankPr... | 46.393939 | 108 | 0.701502 |
86ab1c2c5eea1a76fcb285c354fec538663c1021 | 3,706 | /*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... | 35.295238 | 98 | 0.711819 |
e9fe9eaa6a59f241043cce34efe10089abe272e4 | 5,750 | package fr.pturpin.hackathon.iceandfire.strategy.comparator;
import fr.pturpin.hackathon.iceandfire.cell.CellType;
import fr.pturpin.hackathon.iceandfire.cell.GameCell;
import fr.pturpin.hackathon.iceandfire.cell.Position;
import fr.pturpin.hackathon.iceandfire.command.GameCommand;
import fr.pturpin.hackathon.iceandfi... | 34.848485 | 112 | 0.673391 |
1a5620d266e8b2aab6cf1b19e55c145e6044ea4a | 1,057 | package com.groupon.lex.metrics.history.v0.xdr;
import com.groupon.lex.metrics.history.xdr.support.Parser;
import com.groupon.lex.metrics.timeseries.TimeSeriesCollection;
import java.io.IOException;
import org.acplt.oncrpc.OncRpcException;
import com.groupon.lex.metrics.history.xdr.support.XdrBufferDecodingStream;
pu... | 35.233333 | 88 | 0.701987 |
29f6b1469922f5e1d4f52476a6297760f7bfc0af | 565 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.persistence.impl.jpa.test.api;
import net.sf.mmm.persistence.api.GenericDao;
import net.sf.mmm.persistence.impl.jpa.test.impl.DummyBarEntityImpl;
/**
* This is the inter... | 31.388889 | 106 | 0.753982 |
f8403e6bffcb708122699d686277519eba97b096 | 1,468 | package fi.nls.oskari.spring.security.preauth;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authenticatio... | 36.7 | 97 | 0.739101 |
8bfc124c2ad4a3344535521ce76f4af6448adc77 | 13,145 | /**
* Copyright 2015 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 36.820728 | 132 | 0.689312 |
f1a3d498b23f2b3b0f1e17678841f0b5013183fc | 154 | package main.designmodel.strategy;
/**
* Created by lilk on 2019/1/6.
*/
public interface ICashSuper {
public double getCashCount(double money);
}
| 17.111111 | 45 | 0.720779 |
8b27162b1df1362ba1053ebb44bf5c203399ce87 | 771 | package org.uniprot.api.rest.respository;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Solr properties bean that will be injected with values from application.properties.
*
* @author lgonzales
*/
@Data
@ConfigurationProperties(prefix = "spring.data.solr")
... | 25.7 | 86 | 0.779507 |
2f2ebb5913f7bfcc95ef1b65e96650a4631036fa | 7,432 | /**
* 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... | 32.740088 | 130 | 0.616254 |
03804004e5347c0178b4367d54654faf4cd74a3e | 219 | package io.github.jeqo.talk;
public class HelloRepresentation {
final String hello;
final String lang;
public HelloRepresentation(String hello, String lang) {
this.hello = hello;
this.lang = lang;
}
}
| 18.25 | 57 | 0.712329 |
918fbdf68ceecf263ff709781c0ba7410aaef464 | 17,738 | /**
*
* This is the view as well as the controller.
*
* @author Joint programming between Ryan, Jarred and Vinayak
* For more details on who made what change, please refer to the
* change sets associated with this file on GitHub
*/
package View;
import java.awt.BorderLayout;
import java.awt.Color;... | 39.682327 | 106 | 0.654471 |
6469ae7f1deab5489b5996d0ae10b74e55fc89f6 | 2,824 | package com.example.lenovo.music.fragment;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import a... | 29.726316 | 110 | 0.701133 |
7dbb42b22804539f55d29cf0cb1dae241a3e9d11 | 26,750 | package com.hw.integration.identityaccess.oauth2;
import static com.hw.helper.AppConstant.ACCOUNT_PASSWORD_ADMIN;
import static com.hw.helper.AppConstant.ACCOUNT_USERNAME_ADMIN;
import static com.hw.helper.AppConstant.CLIENTS;
import static com.hw.helper.AppConstant.CLIENT_ID_OAUTH2_ID;
import static com.hw.helper.App... | 53.714859 | 152 | 0.723028 |
2fb723b5eacd5175f4f985efd1465afa0f1f502e | 633 | package com.neusoft.hp.runtime.client.action;
import java.io.Serializable;
import lombok.Data;
/**
* 类TreeNodeVO.java的实现描述:树节点的bean
*
* @author chengwei 2017年5月27日 下午1:19:59
*/
@Data
@Deprecated
public class TreeNodeVO implements Serializable {
/**
*
*/
private static final long serialVersio... | 19.78125 | 60 | 0.537125 |
1434435632aa300443f6c50a2b36fbbd015fa37c | 1,630 | /*
* Copyright 2002-2012 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... | 35.434783 | 90 | 0.759509 |
08e84ed77aa1c513572bd19969f15196acf6c926 | 984 | package jellybean_logistic;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.gson.Gson;
import entities.*;
public class... | 22.883721 | 119 | 0.667683 |
26ff1364ae3073bd094b4f1648ab3a821de94694 | 191 | package io.elimu.genericapi.plugins;
public class FtlLoaderPluginLoader extends TemplatePluginLoader implements ModulePluginLoader {
public FtlLoaderPluginLoader() {
super("ftl");
}
}
| 19.1 | 95 | 0.801047 |
2b7d500cb76b0c1050c3a551ecf7c63c458326a7 | 817 | package com.carrotsearch.ant.tasks.junit4.tests;
import org.junit.Assert;
import org.junit.Test;
public class TestEscaping {
@Test
public void checkEscapes() {
// success it is.
System.out.println(System.getProperty("sysprop.key"));
System.out.println(System.getProperty("sysprop.key2"));
System.ou... | 32.68 | 79 | 0.707466 |
ccbc075187a27c00f5ef7e7e5407b4cb3a9491fe | 1,526 | // This is a generated file. Not intended for manual editing.
package com.spicelang.intellij.spice.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiTreeUt... | 25.016393 | 92 | 0.7654 |
ab6b9fe513ed8e221e66be48ccb533ac692da077 | 343 | package com.donghoonkhan.simplefiledrive;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SimpleFileDriveApplication {
public static void main(String[] args) {
SpringApplication.run(SimpleFileDriveApplicati... | 24.5 | 68 | 0.836735 |
87740b2dedf1e4b9d5f41275eb9e85910c8060d6 | 5,477 | package org.smartregister.stock.management.repository;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.smartregister.stock.openlmis.domain.openlmis.Dispensable;
import org.smartregister.stock.openlmis.repository.openlmis.DispensableRepository;
import java.util.List;
import static j... | 32.408284 | 125 | 0.618952 |
c2e6f57cdf0559a1cf63a282dbb16d6bac0606f4 | 509 | package com.mrivanplays.simpleregister.plugin;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class PlayerSessionHandler {
private List<UUID> loggedIn;
public PlayerSessionHandler() {
loggedIn = new ArrayList<>();
}
public boolean hasLoggedIn(UUID uuid) {... | 18.851852 | 47 | 0.675835 |
c8f742199499347699bef5e8015a70576c190e37 | 982 | package org.arabellan.tetris;
import com.google.common.eventbus.EventBus;
import lombok.extern.slf4j.Slf4j;
import org.arabellan.tetris.events.Event;
import java.util.HashMap;
import java.util.Map;
/**
* This class is responsible for input bindings.
*/
@Slf4j
public class Controller {
private EventBus eventBu... | 23.95122 | 80 | 0.643585 |
0a9c99c42a28ad418ad2eb9dc1ff411da217657b | 591 | package org.kyojo.schemaorg.m3n5.doma.core.container;
import java.util.Date;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n5.core.impl.BOOKING_TIME;
import org.kyojo.schemaorg.m3n5.core.Container.BookingTime;
@ExternalDomain
public class Book... | 24.625 | 81 | 0.808799 |
4dfbf6d171261d4635db1ace21035cfe7c7933f7 | 1,368 | package com.xshhope.log.service.impl;
import com.xshhope.common.support.ActionResult;
import com.xshhope.common.support.ActionTemplate;
import com.xshhope.common.utils.Pager;
import com.xshhope.log.dao.LogDao;
import com.xshhope.log.service.LogService;
import com.xshhope.model.log.Log;
import org.springframework.beans... | 20.727273 | 62 | 0.727339 |
ce74b95c733cc1fbcb905a541554b76a39c5ea4b | 7,060 | package edu.berkeley.wtchoi.swift.driver.drone;
import java.io.*;
import java.util.Iterator;
/**
* Created with IntelliJ IDEA.
* User: wtchoi
* Date: 11/14/12
* Time: 11:54 PM
*
* SwiftHand Project follows BSD License
*
* [The "BSD license"]
* Copyright (c) 2013 The Regents of the University of California.
... | 29.294606 | 97 | 0.565156 |
28b5863a0c0f8d8fd2c427da39976e6d77f11957 | 4,157 | /*
* Copyright (c) 2017 Public Library of Science
*
* 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, ... | 26.144654 | 98 | 0.72865 |
e6dded1bdfa609c7471b6acfda91971847a9c37c | 2,415 | package pl.pdec.city.events.infrastructure.repository;
import org.springframework.jdbc.core.RowMapper;
import pl.pdec.city.common.domain.model.User;
import pl.pdec.city.common.domain.repository.UserRepository;
import pl.pdec.city.events.infrastructure.ui.payload.EventUi;
import java.math.BigDecimal;
import java.sql.R... | 40.25 | 127 | 0.712215 |
c5bcbd536d82feb49302e9e067a66a791522a07e | 1,883 | // Copyright 2013 Julian Hartline <julianh2o@gmail.com>
//
// This code is available under the MIT license.
// See the LICENSE file for details.
package models;
import java.util.*;
import javax.persistence.*;
import play.data.validation.Email;
import play.data.validation.Required;
import play.db.jpa.*;
import play.... | 21.895349 | 64 | 0.71641 |
dc1244b1e2a21eba38062e5706f1721fd47be5ea | 2,698 | package io.github.riesenpilz.nmsUtilities.packet.playOut;
import org.apache.commons.lang.Validate;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import io.github.riesenpilz.nmsUtilities.block.BlockData;
import io.github.riesenpilz.nmsUtilities.packet.HasBlockPosition;
import io.github.riesenpilz.nmsUti... | 27.252525 | 115 | 0.769088 |
8bcf0d620a07a9e72a92c3f96ce18c1db5c19368 | 1,794 | /*
* Copyright 2019-2020 The kafkaproxy developers (see CONTRIBUTORS)
*
* 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 re... | 39 | 123 | 0.735229 |
1577b262f0e0edd8098fedfd521d592861c782db | 1,607 | package nl.qstekelenburg.ns.model.stations;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.io.Serializable;
/**
* http://www.ns.nl/api/api#api-documentatie-stationslijst
*
* @auth... | 21.716216 | 58 | 0.6229 |
75c8596ffe0bb8633ccc4728cc88145fbf76ee8a | 445 | package com.fantasyunlimited.items.entity;
public class Equipment extends Gear {
/**
*
*/
private static final long serialVersionUID = 1702797342795811772L;
private EquipmentType type;
private int armor;
public EquipmentType getType() {
return type;
}
public void setType(EquipmentType type) {
this... | 14.833333 | 67 | 0.707865 |
3c046998ff6d4ee9211c2d15cbd3083f0fa62f00 | 1,987 | package com.adaptionsoft.games.trivia.runner;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
public abstract class GoldenMaster {
private static final S... | 31.539683 | 99 | 0.682939 |
802e5f88deeeed3ddabe78eb6756d78273f160d4 | 5,026 | /**
* LICENSE INFORMATION
*
* Copyright 2005-2008 by FZI (http://www.fzi.de). Licensed under a BSD license
* (http://www.opensource.org/licenses/bsd-license.php) <OWNER> = Max Völkel
* <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe,
* Germany <YEAR> = 2010
*
* Further project i... | 33.284768 | 85 | 0.697971 |
3aa042d30e373a1b102bee56cb489177c4a25d7a | 3,097 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | 23.285714 | 138 | 0.663545 |
ba58b358e30eb69842eab2b78094994400fd9bc3 | 1,372 | package com.zdawn.jwt.spi;
/**
* token数据项
* @author zhaobs
*/
public class Token {
/**
* token id 唯一
*/
private String tokenId;
/**
* 用户id
*/
private String userId;
/**
* 状态 0启用 1停用
*/
private Integer tokenState;
/**
* 创建时间
*/
private Long createTime;
/**
* token最后使用时间
*/
private Long... | 14.752688 | 48 | 0.677114 |
993b185836564973a6e25ec3ce75d0095f065e5a | 8,538 | package com.silvergobletgames.sylver.core;
import com.jogamp.newt.event.KeyEvent;
import java.awt.Point;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
*
* @author Mike
*/
public class InputSnapshot {
//typed key list
pr... | 27.365385 | 99 | 0.586203 |
983590508fdcf173f8878b460086bba7509fc44e | 826 | package com.puttysoftware.fantastlereboot.creatures.faiths;
import java.awt.Color;
import com.puttysoftware.diane.loaders.ColorShader;
public final class Faith {
private final int faithID;
Faith(final int fid) {
this.faithID = fid;
}
public int getFaithID() {
return this.faithID;
... | 22.944444 | 78 | 0.671913 |
e7e08555f8315630b9c0d28d7e045b2366c708da | 893 |
package gwlpr.protocol.gameserver.outbound;
import gwlpr.protocol.serialization.GWMessage;
/**
* Auto-generated by PacketCodeGen.
*
*/
public final class P119_OpenDataWindow
extends GWMessage
{
private long agent;
private short windowType;
private long data;
@Override
public short getH... | 20.295455 | 141 | 0.645017 |
d7b9a87a2c404440351a0446da3594728adcf54c | 830 |
package javax.servlet.jsp.tagext;
import java.io.InputStream;
/**
* Translation-time information on a JSP page. The information
* corresponds to the XML view of the JSP page.
*
* <p>
* Objects of this type are generated by the JSP translator, e.g.
* when being passed to a TagLibraryValidator instance.
*/
... | 23.055556 | 69 | 0.662651 |
31d8cd87ff40e7dfc449b74556c3f619b8dd612a | 904 | package xyz.sun.mybatis.service;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import xyz.sun.mybatis.entity.User;
import java.util.ArrayList;
import java.util.List;
import static org.junit.jupiter.api.As... | 24.432432 | 68 | 0.68031 |
c0bc987729f0bb4d42b03e32a97d2455e31df402 | 135 | package org.seyran.backoffice.controller.brand.dto;
import lombok.Data;
@Data
public class UpdateBrandReq {
private String name;
}
| 15 | 51 | 0.785185 |
d9ae77d07109ac4120988df88f06a163856eb3c1 | 20,875 | package com.codefactoring.android.backlogtracker.provider;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteData... | 41.17357 | 125 | 0.592192 |
e152b4df73b552cee559d4e108c548503d163989 | 2,816 | package edu.cmu.cs.db.peloton.test.generate.defn.operators;
import edu.cmu.cs.db.peloton.test.generate.ast.Ast;
import static com.google.common.base.Preconditions.*;
import static edu.cmu.cs.db.peloton.test.generate.ast.Ast.ExpressionType.*;
/**
* Created by tianyuli on 5/1/17.
*/
public enum SqlBinaryOperator imp... | 34.341463 | 104 | 0.654474 |
7c80f1f93febf92c378512b3d7a6a0d4958d4f0c | 1,057 | package seedu.tr4cker.logic.commands;
import static seedu.tr4cker.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.tr4cker.testutil.TypicalTasks.getTypicalTr4cker;
import org.junit.jupiter.api.Test;
import seedu.tr4cker.model.Model;
import seedu.tr4cker.model.ModelManager;
import seedu.tr4cke... | 32.030303 | 101 | 0.755913 |
70f2ad880891d5680aba16d9ceaccf0bbd0d3adc | 2,857 | package org.apache.commons.io.filefilter;
import java.io.File;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.io.IOCase;
public class NameFileFilter extends AbstractFileFilter implements Serializable {
private static final long serialVersionUID = 176844364689077340L;
private fin... | 30.393617 | 86 | 0.581379 |
805a801fa9083207e9e34ea70ce9b2d40ad5baa3 | 1,021 | import java.util.*;
import java.io.*;
import java.math.*;
public class FibonacciModified {
BigInteger solve(BigInteger a, BigInteger b, int n) {
assert(n > 0);
if (n == 1) {
return a;
}
if (n == 2) {
return b;
}
for (int i = 3; i <= n; i++) {
BigInteger tb = b.multiply(b).add(a);
BigInteger t... | 22.195652 | 60 | 0.601371 |
2b4381f2abb88f3a455c299af977beb16ad55594 | 2,410 | /**************************************************************
*
* 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 y... | 35.441176 | 81 | 0.661411 |
f247472ca4415e73adba6cb9611f5d8a3f842263 | 29,222 | // This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
package net.skeeks.efalg.poly_tria;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
i... | 68.435597 | 110 | 0.643351 |
b8332204dce25c4dcbb044aabebdacbcf3137dc8 | 2,344 | /*
* Copyright (C) 2009 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... | 30.051282 | 89 | 0.681314 |
be826e3ef0562f81f08b44d9cdfb35533eaa60ba | 4,028 | /*
* Copyright 2022 Accenture Global Solutions Limited
*
* 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... | 23.555556 | 75 | 0.617428 |
bec921da54da52a347c66d447f37faedc6347bf5 | 2,354 | package com.yqf.mall.pms.controller.app;
import com.yqf.common.result.Result;
import com.yqf.mall.pms.pojo.dto.SkuDTO;
import com.yqf.mall.pms.pojo.dto.SkuLockDTO;
import com.yqf.mall.pms.service.IPmsSkuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annota... | 35.134328 | 116 | 0.697536 |
6a15aea73b77dc47616187ac6814a72760114f26 | 680 | package io.adtrace.sdk;
import android.content.Context;
/**
* Created by Morteza KhosraviNejad on 06/01/19.
*/
public interface IPackageHandler {
void init(IActivityHandler activityHandler, Context context, boolean startsSending);
void addPackage(ActivityPackage activityPackage);
void sendFirstPackage... | 20.606061 | 88 | 0.747059 |
dd0134f84d5a39b84c2a3d9e98b2078c2699cd43 | 2,166 | package com.payu.ratel.tests;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import org.springframework.boot.test.IntegrationTest;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.test.context.TestExecutionListeners;
import or... | 37.344828 | 113 | 0.79409 |
c4391655ddf6f27169471275b7a1da3adb263a7b | 955 | package com.liteworm.javaLearn.basicKnowledge.streams.testFileInOutputStreams.testFileInputStream;
import java.io.FileInputStream;
import java.io.IOException;
/**
* @ClassName TestReadMutiBytesFromFIle
* @Decription 一次从文件中读取多个字节
* 1、一次读取一个字节数组
* 2、读取很多自己保存到字节数组中
* @AUthor LiteWorm
* @Date 2020/4/6 20:42
* @Ve... | 26.527778 | 98 | 0.631414 |
57f8deee98f1c2f236bf57848655a2ccd7d6a23b | 3,783 | /**
* Copyright (C) 2015 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... | 36.375 | 117 | 0.696801 |
f57a92638023a837926b752ea28b07e0ebfec481 | 684 | /*
* 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 patronvisiteur;
public class Ouvrier implements IEntreprise {
private int salhor;
private int nbrh;
public... | 17.1 | 80 | 0.671053 |
26d3584da1fcb4ee87ca5310515f4c5de5e90170 | 15,625 | /*
* 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 eu.tng.policymanager;
import eu.tng.policymanager.Exceptions.NSDoesNotExistException;
import eu.tng.policymanager.Exceptions.V... | 43.767507 | 193 | 0.622912 |
84f4eac0d5fab95332867f370b6988eb218cc783 | 2,067 | /*
* //******************************************************************
* //
* // Copyright 2016 Samsung Electronics All Rights Reserved.
* //
* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* //
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use thi... | 35.033898 | 94 | 0.638123 |
763b8eb60bd68cbabc4dd491af58c846e9365d50 | 665 | package com.petproject.monitoring.domain.model;
import lombok.*;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import javax.persistence.*;
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "social_media")
public class SocialM... | 22.166667 | 55 | 0.76391 |
6916dd72b2f1a6fe0a30fa0e6c2c4e9ef3e851f9 | 671 | package ac.cn.saya.activemq.consumer.listener;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;
import javax.jms.JMSException;
import javax.jms.TextMessage;
/**
* @Title: QueueListener
* @ProjectName mq
* @Description: TODO
* @Author liunengkai
* @Date: 201... | 21.645161 | 65 | 0.681073 |
fd2b2aff0c5a9cf5d93a0354484b44a0b7df885d | 1,079 | package me.mersinvald.disciplinator;
import android.content.Context;
import android.content.res.Resources;
import org.json.JSONException;
import org.json.JSONObject;
public class CurrentStatus {
public String state;
public int activeMinutes;
public int debt;
public CurrentStatus(JSONObject object) t... | 25.093023 | 66 | 0.565338 |
1e4c854bbf4372957f3e1881951aaf8dc1a43a8e | 4,599 | package kettleExt.trans.steps;
import java.util.List;
import kettleExt.trans.step.AbstractStep;
import kettleExt.utils.JSONArray;
import kettleExt.utils.JSONObject;
import org.pentaho.di.core.database.DatabaseMeta;
import org.pentaho.di.trans.step.StepMetaInterface;
import org.pentaho.di.trans.steps.insertupdate.Inse... | 40.342105 | 140 | 0.75973 |
666a7f1f1928b1d4b380e6d838fe5739be073ee0 | 3,170 | package seedu.address.testutil;
import java.util.HashMap;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import seedu.address.logic.commands.modulelistcommands.EditModuleCommand;
import seedu.address.model.module.ModularCredits;
import seedu.address.model.module.Module;
impo... | 35.222222 | 101 | 0.711987 |
157346c4665963dd136a355bbf757484adb46cf3 | 10,118 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.viewpagerindicator;
public final class R {
public static final class attr {
public static final int centered = 0x7f010016;
... | 60.951807 | 232 | 0.824471 |
d0c51825cc046f4973e854c2cf599bacc33cdeaf | 2,845 | package io.github.anvil008.keyboard.control;
import javafx.animation.Animation.Status;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.beans.property.DoubleProperty;
import javafx.scene.Node;
import javafx.scene.input.MouseButton;
import javafx.util.Duration;
import org.slf4j.LoggerF... | 25.630631 | 94 | 0.713533 |
7473e8f00f80dd1cfa1ac71a77236f606927380a | 2,819 | package cc.zkteam.juediqiusheng.adapter;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView... | 29.364583 | 94 | 0.700248 |
82ac117f19bb427858c78a32f1066ab7a5edd59d | 804 | package guo.ping.ioc.bean;
import guo.ping.ioc.loadbean.Car;
import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
/**
* @description:
* @author: guoping wang
* @date: 2018/7/23... | 28.714286 | 76 | 0.768657 |
aa9cfa3861eca78032968a8ffa65d1bf230a0ede | 640 | package net.slonka.webclientdebug;
import java.util.Stack;
@SuppressWarnings("unused")
public class Timer {
private static Stack<Double> stack = new Stack<>();
static int indent = 0;
public static void start() {
stack.push((double) System.nanoTime());
indent++;
System.out.print(Str... | 26.666667 | 110 | 0.584375 |
aac5561180a799b9764c39320d8790ce64176856 | 774 | package io.github.lvyahui8.sdk.autoconfigure;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
/**
* @author feego lvyahui8@g... | 30.96 | 117 | 0.807494 |
2407a98ea9c88287435d1b89d646f34429ac0d0a | 8,605 | package com.xeed.cheapnsale.activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Typeface;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.AsyncTask;
import android.os.Bundle;
impo... | 33.877953 | 115 | 0.659152 |
0f745878774c1d4c41433d03f795fd4f4a9417d3 | 18,446 | /*
* 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 ... | 42.404598 | 146 | 0.604684 |
4d6b3777966c06bf5cf544649a6b9fca8194887c | 4,621 | package haxby.image.jcodec.containers.y4m;
import static haxby.image.jcodec.common.StringUtils.splitC;
import static haxby.image.jcodec.platform.Platform.stringFromBytes;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
import haxby.image.jcodec.common.Codec;... | 32.77305 | 135 | 0.646397 |
f9408fecf5a83c36dacd9878b790becd5d38c595 | 3,556 | package tgcfs.Agents;
import lgds.trajectories.Point;
import org.junit.Test;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
import tgcfs.Agents.Models.LSTMAgent;
import tgcfs.NN.InputsNetwork;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;
imp... | 29.882353 | 88 | 0.613611 |
c011c11ec85e70119fada5d2e3b1a9b984700cc1 | 1,221 | package com.lyx.typeinfo;
interface HasBatteries {
}
interface Waterproof {
}
interface Shoots {
}
class Toy {
public Toy() {
}
public Toy(int i) {
}
}
class FancyToy extends Toy implements HasBatteries, Waterproof, Shoots {
public FancyToy() {
super(1);
}
}
public class ToyTe... | 20.35 | 72 | 0.569206 |
d670b8b443af1803b7d1f863e50a534de34a32a7 | 15,821 | package de.mide.wear.langeberechnung;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.wearable.activity.WearableActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import ... | 34.924945 | 120 | 0.585804 |
9c2260a6f5624a4727078ed9632c3db4cda270d1 | 2,667 | package com.coffeearmy.marvelheroes.data.repository;
import com.coffeearmy.marvelheroes.data.entity.BaseResponse;
import com.coffeearmy.marvelheroes.data.entity.mapper.ComicResponseMapper;
import com.coffeearmy.marvelheroes.data.exception.ApiException;
import com.coffeearmy.marvelheroes.data.net.ComicsGateway;
import ... | 36.040541 | 126 | 0.690664 |
50909e13bb97b94655ee622b6799db97c2a0ba33 | 683 | package com.pubnub.api.models.consumer.objects_api.user;
import com.pubnub.api.models.consumer.objects_api.PNObject;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public c... | 22.032258 | 59 | 0.717423 |
8f0c10eceb2436ea5afa78c46363e7807e3ff25a | 2,117 | package warhammermod.Items.ranged;
import net.minecraft.sounds.SoundSource;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.Enchantmen... | 43.204082 | 214 | 0.746339 |
242f2e579b357ed95646b1c7e6a259fa1f831371 | 16,536 | /*
* 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 ... | 49.807229 | 156 | 0.656205 |
56d9df7c4a92efe2deebc5721a7c44dfd6b638d8 | 1,523 | package fuzzy4j.aggregation;
import fuzzy4j.util.ParametersUtil;
/**
* Implements the Dubois-Prade aggregation operator.
*
* Defined as: <code>t_dp(a, b) = (a * b) / max(a, b, p)</code>
*
* @author Soren A. Davidsen <soren@atmakuridavidsen.com>
*/
public class DuboisPradeIntersection implements Norm {
/**
... | 28.203704 | 127 | 0.630335 |
d7d286361f2c570327038253eb60fe84cac0f4cf | 102 | package com.spring.microservices.model.v2;
public enum ButterFlavourEnum {
HONEY, GARLIC, HERB
}
| 17 | 42 | 0.764706 |
633ac21f757d73244d876d560439c628a17e7dc2 | 1,354 | package org.prosolo.services.notifications.emailgenerators;
import org.prosolo.common.domainmodel.user.notifications.NotificationType;
public class AssessmentNotificationEmailGenerator extends NotificationEmailGenerator {
private boolean request = false;
private String subject;
@Override
public String getTemp... | 24.618182 | 109 | 0.748154 |
4bdd8019ed74e9be9b7bcf623265578f4f3d8591 | 1,417 | package bg.car_wash.areas.customer.service;
import bg.car_wash.areas.customer.entity.Customer;
import bg.car_wash.areas.customer.exceptions.CustomerDBEmptyException;
import bg.car_wash.areas.customer.exceptions.CustomerNotCreateException;
import bg.car_wash.areas.customer.exceptions.CustomerNotFoundException;
import b... | 40.485714 | 98 | 0.87156 |
129dd960d07a0217e02a987ebf3e2673ba5e80b4 | 6,983 | /*
* @(#)BasicGraphDropTargetListener 1.0 03-JUL-04
*
* Copyright (c) 2001-2004 Gaudenz Alder
*
*/
package org.jgraph.plaf.basic;
import java.awt.Insets;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.awt.dnd.DropTargetContext;
import java.awt.dnd.DropTargetDragEvent;
im... | 25.959108 | 81 | 0.684806 |
c17a582a10b508024aadb11640fd02a7337775ad | 208 | package im.tny.segvault.s2ls.routing;
import im.tny.segvault.subway.Station;
/**
* Created by Gabriel on 29/12/2017.
*/
public interface IAlternativeQualifier {
boolean acceptable(Station station);
}
| 18.909091 | 40 | 0.75 |
18112fdb0410be74ed73d24a774ef96e3e5e358a | 768 | package net.stellar.mining.utils;
import java.util.HashMap;
import java.util.Map;
public class StellarPlaceholder {
private Map<String, String> placeholders;
public StellarPlaceholder() {
placeholders = new HashMap<>();
}
public StellarPlaceholder addPlaceholder(String key, String value) {
... | 23.272727 | 72 | 0.643229 |
5b59401d16e7da62a201bcbb9c1c517303f640e2 | 2,397 | package eu.sydisnet.mastermind.presentation.view;
import org.assertj.core.api.JUnitSoftAssertions;
import org.junit.Rule;
import org.junit.Test;
import java.lang.invoke.MethodHandles;
import java.util.logging.Logger;
/**
* Unit Testing class that validates constraints on {@link GameBoard} view.
*
* @author sydisn... | 26.054348 | 103 | 0.586984 |
e92de1ab7a26f0d16e4513844b6a9b338e00dc0d | 15,751 | package com.lanking.uxb.zycon.base.convert;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.lanking.cloud.domain.common.baseData.KnowledgePoint;
import com.lanking.cloud.domain.common.bas... | 29.114603 | 114 | 0.687385 |
f20755f317f18b87fbc2d5b2dc2f26c4e093a57f | 8,312 | package com.teamthree.conferencescheduler.controllers.session;
import com.teamthree.conferencescheduler.dto.session.SessionDto;
import com.teamthree.conferencescheduler.dto.session.SessionDto2;
import com.teamthree.conferencescheduler.entities.Conference;
import com.teamthree.conferencescheduler.entities.Session;
impo... | 38.12844 | 110 | 0.685756 |
834a34d9344a829e356b9b146e08d50a07bda567 | 306 | package book.java.tcpip.program;
/**
* @author Ztiany
* Email ztiany3@gmail.com
* Date 18.6.24 15:07
*/
public class C {
public static final String SERVER = "127.0.0.1";
public static final int PORT = 8899;
public static final byte[] data = "Hello Java Socket Programming".getBytes();
}
| 20.4 | 81 | 0.673203 |
14165e653c8c279eb757f0f3f9b499cc4177bd79 | 5,666 | package cs2030.simulator;
import java.util.LinkedList;
import java.util.List;
import java.util.ArrayList;
import java.util.Optional;
import java.util.NoSuchElementException;
public class Server {
private final int id;
private final LinkedList<Customer> queue;
private final List<Optional<C... | 32.011299 | 98 | 0.594952 |
3aa6b9f31aa07ff18ac12657ce44daf4bc4d3947 | 2,239 | package se.avelon.edge.tabs;
import java.util.HashMap;
import javax.swing.table.AbstractTableModel;
import org.w3c.dom.NodeList;
public class MyCommonOmxModel extends AbstractTableModel {
private static final long serialVersionUID = 1L;
private NodeList nodes = null;
private static final HashMap<String, String> m... | 21.737864 | 82 | 0.640464 |
8560d865c0f75b64a55b154d21f282388244c7a2 | 517 | package net.nodium.games.paul.guis;
import net.nodium.games.paul.TextRenderer;
public class GuiInfo extends GuiString {
public int age = 0;
public float lifespan;
public GuiInfo(GuiManager guiManager, TextRenderer textRenderer) {
super(guiManager, textRenderer);
setScale(4);
setP... | 19.148148 | 70 | 0.586074 |
228d47fa22ca3a9bbc62f53043687afd64e4a2db | 12,305 | /*
* 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... | 43.790036 | 155 | 0.701666 |
0b8542873429cf8de6ce7fb2e9eae36a15648974 | 268 | package de.quinscape.exceed.runtime.util;
/**
* Contains common content types.
*/
public interface ContentType
{
String JSON = "application/json";
String JAVASCRIPT = "text/javascript";
String PLAINTEXT = "text/plain";
String HTML = "text/html";
}
| 19.142857 | 42 | 0.686567 |
0afdd6c58b805b770d05028890c05ab7b91521df | 560 | package com.mygdx.game;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.mygdx.game.base.GameBeta;
public class MyGdxGame extends GameBeta {
ParticleS... | 19.310345 | 49 | 0.760714 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.