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 |
|---|---|---|---|---|---|
d48c565a6e48fdb3c39b2fff0c239c385c345659 | 1,348 | package com.troy.xifan.adapter;
import android.content.Context;
import android.view.ViewGroup;
import android.widget.ImageView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.bumptech.glide.Glide;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter... | 28.680851 | 78 | 0.715875 |
20cf7fb76740c7685751180757ac0fe9795f2f13 | 871 | package com.example.reflection.entity;
import java.time.LocalDate;
/**
* @Author: lyh
* @Date: 2021/06/24 15:22
* @Description:
*/
public class Employee {
private String name;
private double salary;
private LocalDate birthday;
public String getName() {
return name;
}
public void... | 18.934783 | 69 | 0.610792 |
22dd783259a8e311b9c617271a36dbc57f320f59 | 4,506 | package org.ihtsdo.snowowl.authoring.single.api.service.monitor;
import org.ihtsdo.otf.rest.exception.BusinessServiceException;
import org.ihtsdo.snowowl.authoring.single.api.pojo.Notification;
import org.ihtsdo.snowowl.authoring.single.api.service.NotificationService;
import org.slf4j.Logger;
import org.slf4j.LoggerF... | 31.291667 | 135 | 0.672437 |
9e48f1f382e84ab22b97c951ee415f76a38e9c08 | 4,387 | package org.apache.maven.it;
/*
* 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, Versio... | 39.169643 | 118 | 0.682015 |
d399b04ca62c7690411cc625c0dadc15a5df50fc | 3,582 | package nl.esi.almarvi.buffersizing;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Implementation based on JSPS paper.
*/
public class PolyBlockImpl implements PolyBlock {
private final int dims;
private final int[] co... | 25.225352 | 67 | 0.502233 |
75b51dafa8ac3f6b72a2932bbfb72079aec698c4 | 2,066 | package org.luvx.spring.service;
import org.luvx.common.property.FileProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource;
import org.springframework.stereotype.Service;
import org.springframework.util.Str... | 26.831169 | 99 | 0.642304 |
f57d6ed44e627d7ee0de70ba49088a2913af1ee9 | 6,827 | package mao.com.mao_wanandroid_client.view.drawer.fragment;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.constraint.ConstraintLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.widget.Linea... | 34.306533 | 128 | 0.696499 |
23f85e5b45cd41ab3ab2656960c365827f6e5f6c | 803 | package cn.netdiscovery.core.constants;
import cn.netdiscovery.core.domain.response.HttpResponse;
/**
* Created by tony on 2019-07-19.
*/
public enum ResponseCode {
Ok(0, "ok"),
BadRequest(400, "请求参数有误"),
NotFound(404, "数据不存在"),
InternalServerError(500, "网络异常,请稍后再试"),
SpiderNotFound(1001,"爬虫不在容... | 20.075 | 57 | 0.635118 |
ea6e4ca2d74849284733f6fb51a8c5f750ff1ab9 | 6,230 | package com.needhamsoftware.easiermock;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class BeanTesterTest {
@Test
public void testGoodProps() {
BeanTester tester = new BeanTester();
tester.getExampleTypes().put(GoodTestBean.class, new GoodTestBe... | 23.688213 | 96 | 0.695827 |
15447b6b0893e3791164a6677fbb9341e35f0d7d | 3,221 | /*
* Powered By cuichen
* Since 2014 - 2015
*/package com.seeyoui.kensite.framework.plugin.upload.service;
import java.io.File;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import org.springframew... | 32.535354 | 98 | 0.713753 |
a1143a33a5d4112a3a4a254d1c3d1f1ac3c22a20 | 901 | package uk.gov.prototype.vitruvius.listener;
import org.vertx.java.core.eventbus.Message;
import org.vertx.java.core.json.JsonObject;
import org.vertx.java.core.json.impl.Json;
import uk.gov.prototype.vitruvius.parser.validator.ContentValidator;
import uk.gov.prototype.vitruvius.parser.validator.ValidationMessage;
im... | 32.178571 | 93 | 0.764706 |
15853564c2b03e2ab2e09f251682c079ef873ab2 | 1,015 | package au.com.dius.pact.provider.junit.loader;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Defines the authentication scheme to use with the pact broker
... | 23.068182 | 89 | 0.684729 |
04e3c9b94819ae658ab2a84138fc81762f5a7359 | 6,559 | /*
* TransportSocketProcessor.java February 2007
*
* Copyright (C) 2007, Niall Gallagher <niallg@users.sf.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... | 39.993902 | 141 | 0.711541 |
798e40b8cb0affca1fb194c78f38050638fef1e9 | 1,523 | package com.dong.blog.facade.impl.assembler;
import java.util.HashSet;
import java.util.Set;
import com.dong.blog.core.domain.BlogType;
import com.dong.blog.core.domain.Category;
import com.dong.blog.facade.dto.BlogTypeDTO;
import com.dong.blog.facade.dto.CategoryDTO;
import com.dong.blog.util.BeanCopierUtil;
public... | 28.735849 | 81 | 0.73933 |
6d9f00b02b3d553185e0090a68a527fc296f0705 | 1,147 | package com.ltj.springboot.database.model.page;
import java.io.Serializable;
public class PageRequest implements Serializable {
/**
*
*/
private static final long serialVersionUID = -8552097327666531629L;
private int pageNumber = 0;
private int pageSize = 10;
/**
* mysql偏移量
*/
private int offset = 0;
... | 18.803279 | 68 | 0.700087 |
105d90b86410f4c090ddd3f7363054167a5bbd07 | 6,523 | package sec.geo;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.geom.AffineTransform;
import java.awt.geom.Arc2D;
import java.awt.geom.FlatteningPathIterator;
import java.awt.geom.Path2D;
import java.awt.geom.PathIterator;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.u... | 30.768868 | 114 | 0.69186 |
6b7b20bbc2084068a2c4ebd1531e71e95573a5f3 | 1,839 | // Copyright 2017 JanusGraph 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 applicable law or agree... | 32.839286 | 107 | 0.739532 |
795b873e3324b58eb03175a44cd9790b9d0f1a96 | 382 | package snake.game;
/**
* Possible game speeds and respective values.
*
* <p>The values are in terms of how long a single frame should last for.
*
* @author Denis, Morten, Niclas, Rasmus & Vanda
* @version 0.0.1
* @since 14.03.2021
*/
public enum GameSpeed {
NORMAL(0.3), FAST(0.1);
double value;
... | 18.190476 | 73 | 0.633508 |
5afdba7045d82489e2bf7b551ec257d8d6316acd | 934 | package agricola.player;
import java.lang.reflect.Constructor;
import com.google.inject.Inject;
import agricola.farm.Farm;
public class Player {
private final String name;
private final Farm farm;
private ScoringStrategy scoringStrategy;
@Inject
Player(String name, Farm farm) {
thi... | 23.948718 | 104 | 0.678801 |
2b56723a4e3ae5bffa77e82fe2bb1f9bc1f3107e | 1,261 | // Calling a parameterized static method always requires qualifier type when
// using explicit type arguments.
// .result=EXEC_PASS
public class Test {
public static void main(String[] args) {
Test.<Number>equals(123, Integer.valueOf(123)); // Explicit type arguments.
boolean result = equals(123, Integer.valu... | 32.333333 | 99 | 0.636796 |
fdd0f798fb3586e01b67c9b8ddc5f1ea9399de2d | 418 | package com.constantiuous.structypus;
import java.io.IOException;
import org.junit.Test;
import com.constantinuous.structypus.ingoing.java.JavaProject;
public class JavaProjectTest {
@Test
public void testSimple() throws IOException{
String folderPath = TestProperties.RES_JAVA;
JavaProject project = new Java... | 20.9 | 62 | 0.794258 |
3ec2e5feeea59fb3c162f571a036eca98ba5b7e1 | 5,220 | //License
/***
* Java Modbus Library (jamod)
* Copyright (c) 2002-2004, jamod development team
* 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 re... | 28.681319 | 77 | 0.705747 |
6b4dd7e80dcc728eff7fc9a79d3d497d17559197 | 276 | package daos;
import com.google.inject.ImplementedBy;
import daos.impl.AbstractRoomDaoImpl;
import models.AbstractRoom;
/**
* Created by kdoherty on 7/4/15.
*/
@ImplementedBy(AbstractRoomDaoImpl.class)
public interface AbstractRoomDao extends GenericDao<AbstractRoom> {
}
| 21.230769 | 67 | 0.800725 |
9de18b83e80168b41ea143242213daad80e2935e | 1,275 | package com.example.tanujrohilla.backgroundcolor;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.*;
import android.widget.Button;
import android.widget.LinearLayout;
public class MainActivity extends AppCompatActi... | 27.12766 | 85 | 0.653333 |
1cb581d25e17776b9ff8be0b0284ef5dc1404f84 | 8,686 | /*
* Copyright 2016 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... | 28.019355 | 121 | 0.647364 |
f5c09da4fef5ca424fafa3cd34e90b5a92417946 | 4,602 | package customWidgets;
import javafx.application.Platform;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.transformation.FilteredList;
import javafx.scene.cont... | 35.674419 | 108 | 0.597132 |
3484752d76bb2b237f54c2bc7d16c083eebc8ae2 | 1,604 | package com.viktor.ttt.model;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
i... | 21.972603 | 110 | 0.718828 |
3197d208d6974294d8229a1fa8918b0479297370 | 210 | package uk.dangrew.nuts.apis.tesco.api;
import org.junit.Test;
public class NutritionAsserterTest {
@Test public void untested() {
System.out.println( "Not tested" );
}//End Method
}//End Class
| 17.5 | 41 | 0.695238 |
1c7ded991dd5e18c2c735f1717159727fe2a4ec6 | 1,247 | package semi.admin.servlet;
import java.io.IOException;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
... | 27.108696 | 112 | 0.716119 |
99540e16d4c38cead59e688fcb9afdeca75c5f91 | 384 | package backend.commands;
import backend.BackendController;
import backend.TurtleModel;
import backend.parser.Input;
public class PenDownCommand extends TurtleCommand{
public PenDownCommand(Input in, BackendController controller) {
super(in, controller, 0);
}
@Override
public double execute() {
TurtleModel ... | 17.454545 | 64 | 0.757813 |
2f4fe331d38baddee231566951af46f4acdefd5f | 128 | package com.projectManagement.filter.base;
import java.util.List;
public interface HasOrders {
List<OrderBy> getOrders();
}
| 14.222222 | 42 | 0.773438 |
73d1c3bb1c234a3b50c479c979bba4dbf822f692 | 356 | package caremelle2.execution.exceptions;
public class NextExecutionContextAccessedBeforeResolvedException extends
CaremelleBaseException {
/**
*
*/
private static final long serialVersionUID = -1682244641132171180L;
public NextExecutionContextAccessedBeforeResolvedException(String errorMessage) ... | 22.25 | 83 | 0.77809 |
90269cac6fb0454c1f9f362a0c8089e9581f3390 | 625 | package com.heidelpay.payment.communication.json;
import java.util.ArrayList;
import java.util.List;
import com.heidelpay.payment.business.paymenttypes.InstallmentSecuredRatePlan;
public class JsonInstallmentSecuredRatePlanList {
private String code;
private List<InstallmentSecuredRatePlan> entity = new ArrayList<... | 26.041667 | 95 | 0.7904 |
cb175e51060d20e70dc8fce3282cc77667fa49c7 | 811 | package tech.boxcubed.goblingame.assets;
import com.badlogic.gdx.graphics.Texture;
/**
* Created by SimplyBallistic on 26/10/2017.
*
* @author SimplyBallistic
*/
public class Asset<T> {
private String path;
private Class<? extends T> clazz;
//public static final Asset<Animation> GOBLIN_ANIM=new Asset... | 24.575758 | 111 | 0.670777 |
caa5c57dbbb5a304716e5433fdf602977ea1bd56 | 17,605 | package uk.co.ribot.androidboilerplate.data.model.net.response;
import java.io.Serializable;
import java.util.List;
/**
* Created by leo on 17-11-2.
*/
public class MessageResponse
{
private List<OrderBean> order;
private List<ChannelBean> channel;
public List<OrderBean> getOrder()
... | 25.25825 | 216 | 0.444987 |
bf2bf60441447fb8bdcd1b2c045f7b4492a26117 | 1,294 | package com.evangel.minaserver.simplechat;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.charset.Charset;
import org.apache.mina.core.session.IdleStatus;
import org.apache.mina.filter.codec.ProtocolCodecFilter;
import org.apache.mina.filter.codec.textline.TextLineCodecFactory;
import ... | 31.560976 | 75 | 0.72643 |
f4d3700f3e4a472d79a9514870711be328e8a8db | 16,160 | /*******************************************************************************
*Copyright 2015-2018 Tim Stephenson and 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
*
... | 35.516484 | 125 | 0.647772 |
29132666bb87c7f6327599a34494f2a618e82394 | 450 | package com.gpmall.pay.biz.payment.context;
import com.gpmall.pay.biz.abs.PaymentContext;
import java.util.SortedMap;
/**
* 腾讯课堂搜索 咕泡学院
* 加群获取视频:608583947
* 风骚的Michael 老师
* 支付宝支付的上下文信息
*/
public class AliPaymentContext extends PaymentContext {
/** 商品名称(必填)*/
private String subject;
public String g... | 17.307692 | 55 | 0.68 |
3c53dfc64cd9e10ba22579b424e571d68cad2a4d | 940 | package com.wingplus.coomohome.web.entity;
/**
* 积分信息
* @author leaffun.
* Create on 2017/10/27.
*/
public class IntegeralInfo {
private long id;
private String level;
private int needScore;
private int score;
private int signed;
public long getId() {
return id;
}
... | 15.666667 | 45 | 0.568085 |
5fdb23a23050297246970907399d960d5f1345b0 | 481 | package day1.InterfaceUseCase;
public class Seller {
// to identify object that can fly we implemented flyable interface for all the flying object , and that passed as
// object to sell metod, so all the flying object can
// LiskovsPrinciple :
// any subclass object should be substitutable for the su... | 30.0625 | 118 | 0.711019 |
d06fda99e41c5dd8075d0dba1476f1190a88ee13 | 1,920 | /*
* 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 ... | 32.542373 | 100 | 0.754688 |
7c2f7ae0c42ba25ac0db431393868531b3f44bbe | 2,856 | /*
* Copyright (c) 2015 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... | 36.615385 | 98 | 0.735294 |
4bec5606f127573e7eaca954fe81c3f52aeda4a8 | 8,636 | package com.github.xwine.end.spring;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.github.xwine.end.mock.MockContext;
import com.github.xwine.end.mock.util.StringUtils;
import com.github.xwine.end.spring.processor.EmptyProcessor;
import com.github.xwine.end.spring.processor.HostN... | 41.320574 | 158 | 0.642659 |
00ae79204416e0bb71bc616be58610e9137cc984 | 3,870 | /*
* Copyright 2013-2017 EMC Corporation. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* or in the "license" ... | 32.521008 | 121 | 0.672868 |
6d64c7a4e0d00c32539f8b9feeb30e0c9b5ba83b | 2,187 | package com.galaxybruce.android.nestedscroll;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import an... | 31.695652 | 123 | 0.676726 |
f1ae44227603713c2b6fb86457e3c93fb3c7ec6b | 2,882 | package cvic.anirevo.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Log;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import ... | 32.382022 | 95 | 0.628383 |
2419f921578f2c85e997b5f33c404b6ffcc5366f | 2,493 | //package com.vaadin.addon.spreadsheet.test;
//
//import java.io.IOException;
//
//import org.junit.Test;
//import org.openqa.selenium.remote.DesiredCapabilities;
//
//import com.vaadin.addon.spreadsheet.test.pageobjects.SpreadsheetPage;
//import com.vaadin.testbench.parallel.BrowserUtil;
//
//public class BordersWithH... | 30.402439 | 75 | 0.642599 |
ba6da8ba2c85226dc65bdeae04d2d5b0b438d198 | 2,727 | /*
* Copyright 2018 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 34.961538 | 116 | 0.713238 |
53763cc3bbf808bda1647f17c8fc8b8d53bd97fa | 10,636 | package com.atguigu.gulimall.product.service.impl;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;
import com.atguigu.gulimall.product.dao.CategoryDao;
import com.atguigu.gulimall.product.entity.CategoryEntity;
import com.atguigu.gulimall.product.service.CategoryBrandRelationService;
... | 40.907692 | 155 | 0.632381 |
83ce06fdc3645757bb70a42db0d48c5142379913 | 7,340 | package com.lkl.media.record;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.hardware.display.DisplayManager;
import android.hardware.display.VirtualDisplay;
import android.media.MediaRecorder;
import android.media.projection.MediaProjection;
import android.me... | 41.005587 | 159 | 0.685831 |
d219bdf4b44654768cbf6985204fa6020d59c13f | 1,093 | package net.alhazmy13.mediapicker.rxjava.video.service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import net.alhazmy13.mediapicker.Image.ImageTags;
import net.alhazmy13.mediapicker.Video.VideoTags;
import java.util.List;
import ... | 29.540541 | 103 | 0.726441 |
5eaccc70abe6eeba9827d9365eb54a6de7b1e585 | 5,597 | package com.github.wolfshotz.wyrmroost.data;
import com.github.wolfshotz.wyrmroost.Wyrmroost;
import com.github.wolfshotz.wyrmroost.registry.WRBlocks;
import com.github.wolfshotz.wyrmroost.registry.WRWorld;
import com.github.wolfshotz.wyrmroost.world.features.OseriTreeFeature;
import com.github.wolfshotz.wyrmroost.wor... | 45.504065 | 326 | 0.734143 |
6d3cd6266576a0319f15f039e039dbdcd67b3b82 | 2,537 | /*
* Copyright (C) 2015 - 2016 VREM Software Development <VREMSoftwareDevelopment@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.or... | 33.381579 | 139 | 0.703981 |
05b1ec7889ec14a9eb08ab0f4ece091279a0439a | 7,944 | /*
* 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.senac.musicstore.dao;
import com.senac.musicstore.model.Usuario;
import com.senac.musicstore.utils.ConexaoBanco;
... | 35.306667 | 117 | 0.548716 |
b60d3aa60c70c13efcaaedf5165ac36f763d7f44 | 3,519 | /*
* This file is generated by jOOQ.
*/
package org.ensembl.database.homo_sapiens_core.tables;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.ensembl.database.homo_sapiens_core.HomoSapiensCore_89_37;
import org.ensembl.database.homo_sapiens_core.Keys;
import org.ensem... | 28.844262 | 259 | 0.687127 |
671284e318fcaa9b4155fde91176052c00ffcd09 | 5,323 | package com.qr.app.backend.controllers.get;
import com.qr.app.backend.Json.get.*;
import com.qr.app.backend.entity.HierarchyOfBoxes;
import com.qr.app.backend.entity.Mark;
import com.qr.app.backend.entity.db.StateDB;
import com.qr.app.backend.repository.HierarchyOfBoxesRepository;
import com.qr.app.backend.repository.... | 39.42963 | 143 | 0.64024 |
2a45a0cb9aac64f10f90b7f2e7d1c6898115130f | 1,494 | import java.util.LinkedList;
import java.util.Collections;
import java.util.Random;
import java.util.List;
import java.util.Deque;
class linkedListDeque {
private static void basics() {
System.out.println("Behaves as deque from cpp STL");
System.out.println("can add remove peek at both ends");
... | 28.730769 | 68 | 0.595047 |
7493cd790d138f8c79990350197e9d1e0269414f | 55 | package mybiginteger;
public class BigIntegerUtil {
}
| 11 | 29 | 0.8 |
5c87bf63bcc05648b1523584291e2549bd8be0bd | 4,611 | package linky132.waywardcraft.common.util;
import linky132.waywardcraft.WaywardCraft;
import linky132.waywardcraft.common.block.SkeletonBlock;
import linky132.waywardcraft.common.blockentities.SkeletonBlockEntity;
import linky132.waywardcraft.common.entity.Ghost;
import linky132.waywardcraft.common.registries.BlocksRe... | 69.863636 | 156 | 0.755584 |
39389f5fe3011576c61b789bc58aa6c90b3c7d61 | 1,056 | package joshie.progression.plugins.enchiridion.actions;
import joshie.enchiridion.api.EnchiridionAPI;
import joshie.enchiridion.api.book.IBook;
import joshie.enchiridion.api.book.IButtonAction;
import joshie.enchiridion.gui.book.buttons.actions.ActionJumpPage;
public class ActionJumpTab extends ActionJumpPage {
p... | 28.540541 | 84 | 0.675189 |
df209d4bf996b93560b15641a2f719a545ff93ae | 2,063 | /*
* 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 ... | 36.839286 | 111 | 0.757635 |
e8a19402a8e547554f6a51acc8c310fd220f82f8 | 297 | package test.set;
import krati.core.segment.MappedSegmentFactory;
import krati.core.segment.SegmentFactory;
public class TestDynamicDataSetMapped extends TestDynamicDataSet
{
@Override
protected SegmentFactory getSegmentFactory()
{
return new MappedSegmentFactory();
}
}
| 21.214286 | 64 | 0.771044 |
82992f523f2f1d44745a7c9b3e8f2a6ec9fad726 | 4,021 | package net.fodev.tools.frm.control;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class FrmFileSelector {
private String currentFolder;
private String currentExportFolder;
private List<String> fileList;
private List<String> filteredList;
private int index = 0;
private String ma... | 23.377907 | 81 | 0.641134 |
3e97872bd3f3a29092e3ac70ecbc6611be33749a | 2,590 | package com.yonyou.bpm.participant.defaultImpl;
import java.io.Serializable;
import org.apache.commons.lang3.StringUtils;
import com.yonyou.bpm.participant.ParticipantType;
import com.yonyou.bpm.participant.adapter.ParticipantAdapter;
import com.yonyou.bpm.participant.config.ParticipantConfig;
import com.yonyou.bpm.... | 20.555556 | 77 | 0.742857 |
47ee3da707aa9ca189f58136c40bbbf7390b4976 | 330 | package com.xianguo.hotmapper.enums;
/**
* 逆向工程-数据库字段类型枚举
* @author 武昱坤
* @date 2019年3月14日
*
*/
public enum FieldType {
VARCHAR("varchar"),TEXT("text");
private final String value;
private FieldType(String value) {
this.value = value;
}
public String getValue() {
return this.value... | 15 | 37 | 0.627273 |
34b7062751188c5c32af7746ce6c1783250b484a | 2,929 | /*
* 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 ... | 30.195876 | 116 | 0.693411 |
dbee4024b645712a3322c9b4d5560912eab21aac | 4,969 | /*
* Copyright 2014-2020 Richard Linsdale (richard at theretiredprogrammer.uk).
*
* 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
*
... | 36.807407 | 88 | 0.69833 |
5ad91c1d916beb72546b18d9c41d4c4ab8f00e6f | 786 | /*
* Copyright (C) 2005-2013 Schlichtherle IT Services.
* Copyright (C) 2013 Stimulus Software.
* All rights reserved. Use is subject to license terms.
*/
package net.java.trueupdate.core.io;
import java.io.*;
import javax.annotation.concurrent.Immutable;
/**
* Provides functions for {@link Sink}s.
*
* @author... | 25.354839 | 82 | 0.679389 |
a31cb023249433af75afabcdba6b5dcd50d17f63 | 3,913 | /*
* 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 controller;
import bean.UserSaisie;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
impor... | 37.990291 | 155 | 0.63634 |
c4c7d605aeff4a7dbdf1a78a323be7868533651c | 2,876 | package com.github.oliverschen.olirpc.remote.spring;
import com.github.oliverschen.olirpc.annotaion.OliRefer;
import com.github.oliverschen.olirpc.annotaion.OliService;
import com.github.oliverschen.olirpc.extension.OliSpiLoader;
import com.github.oliverschen.olirpc.properties.OliProperties;
import com.github.oliversc... | 36.405063 | 108 | 0.670723 |
b44784781ca10b9a074ba61304c1ad18cd0d1111 | 123 | package com.rana.ui.main;
/**
* Created by rana on 9/26/17.
*/
public interface MainPresenter {
void loadMain();
}
| 12.3 | 32 | 0.650407 |
732ba1d91f8d2d000a3ce5bbd0a48c8177d32d8b | 2,507 | package fr.pizzeria.service;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import fr.pizzeria.mod... | 24.578431 | 129 | 0.64659 |
174e684bcabada99def8022e538ecd84ebfd09d7 | 2,153 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 37.77193 | 136 | 0.701347 |
d9d0d016f06c42881bbb68127f35a20d18a9f85f | 3,848 | package main.flureport;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.joda.time.DateTime;
import org.joda.time.Period;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
im... | 36.647619 | 118 | 0.679834 |
3a0e693eb6fd7f0a6e2dfdb5ccd0af0b6ee176e9 | 2,597 | package com.netflix.spinnaker.gate.security;
import com.netflix.spinnaker.fiat.model.Authorization;
import com.netflix.spinnaker.fiat.model.UserPermission;
import com.netflix.spinnaker.fiat.model.resources.Account;
import com.netflix.spinnaker.fiat.shared.FiatClientConfigurationProperties;
import com.netflix.spinnaker... | 35.094595 | 133 | 0.73893 |
f04a66e29c348929a6093fe0dc9e944bb5381b82 | 3,211 | package com.example.testbatteryrecording;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import android.app.IntentService;
import android.content.Intent;
import android.os.Environment;
import a... | 28.669643 | 130 | 0.649642 |
31e22afd8c829c5e384c734fdf8c43afce714571 | 8,328 | package org.simplejavamail.internal.smimesupport.model;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.simplejavamail.api.email.OriginalSmimeDetails;
import org.simplejavamail.internal.smimesupport.SmimeRecognitionUtil;
import java.util.Objects;
import static java.lan... | 35.139241 | 353 | 0.78086 |
4d0043bedc1d5262827e42adc5f08e26fb55517b | 1,257 | package nttu.edu.entity;
import nttu.edu.graphics.Art;
import nttu.edu.graphics.RenderView;
import nttu.edu.level.Stage;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
public class Border extends Terrain {
public float borderWidth;
... | 22.052632 | 84 | 0.68576 |
500493f22e197719fac88ce4fdd1ec2a17641e7f | 3,789 | /* Copyright (c) 2010, Carl Burch. License information is located in the
* logisim_src.Main source code and at www.cburch.com/logisim/. */
package logisim_src.circuit;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import lo... | 27.456522 | 75 | 0.719979 |
c4d6f3f7707f8ca17e89f06a72c8dff31612cfa8 | 1,879 | package Database;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class CreateTable {
public static void createAllTables() {
String url = "jdbc:sqlite:wolontariat-baza.db";
String wolontariuszeSQL = "CREATE TABLE IF NOT ... | 50.783784 | 331 | 0.657265 |
0d6101dd429fb3bb1e6627afd2db157a7b85e35f | 1,090 | /*
* Copyright 2017 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 applicable l... | 26.585366 | 98 | 0.698165 |
cec6c291eafdaec8d4c71ee3e524f11ea6678020 | 3,375 | /**
* Copyright (c) 2011, University of Konstanz, Distributed Systems Group 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 n... | 33.75 | 100 | 0.728889 |
08d1e8de9ffc04672da66c6c2d1eb5ff54a73bdf | 1,225 | package dfs_backtracking_Recursion;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Given an integer array nums that may contain duplicates, return all possible subsets (the power set).
*
* The solution set must not contain duplicate subsets. Return the solution in any order.
*
... | 28.488372 | 104 | 0.586939 |
400f7b30266728f2998d446043a54a704bb10179 | 74 | package com.androidsv.pupusadelivery.data;
public class DataManager {
}
| 12.333333 | 42 | 0.797297 |
5cfcd8d28a366f1b6075b54328ea4b93d43eab53 | 549 | package com.alhondra.myapp.runners;
import cucumber.api.CucumberOptions;
import cucumber.api.SnippetType;
import cucumber.api.junit.Cucumber;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import org.junit.runner.RunWith;
@RunWith(CucumberWithSerenity.class)
//cesar recomienda un runner solamente por cada feat... | 32.294118 | 87 | 0.799636 |
6b5a4802e3c519a814fc1091baf3b7fa2ba29cf7 | 2,661 | package org.sample;
import java.util.Map;
import java.util.HashMap;
import java.util.Optional;
import java.util.TreeMap;
/**
* Wraps the type enum that holds the reverse lookup logic that is benchmarked.
*/
class Multihash {
// Modified variant of https://github.com/multiformats/java-multihash/blob/master/src/m... | 32.060241 | 132 | 0.582488 |
c36f532dd7edb03d240e6c5b13751a983a41f407 | 2,583 | package com.gameloft9.demo.controllers.system;
import com.gameloft9.demo.dataaccess.model.system.SysOperLogTest;
import com.gameloft9.demo.mgrframework.annotation.BizOperLog;
import com.gameloft9.demo.mgrframework.beans.constant.OperType;
import com.gameloft9.demo.mgrframework.beans.response.IResult;
import com.gamelo... | 35.875 | 213 | 0.761518 |
9b73cbbb0e0da486514ba07a7ac9d39aaaa92495 | 2,017 | package com.leidos.ode.emulator;
/**
* JSON Serializable object for incident data headed towards the display
*/
public class IncidentDisplayDataElement {
private String source;
private String dataType;
private IncidentElement dataValue;
public IncidentDisplayDataElement(String source, String dataTyp... | 28.408451 | 101 | 0.605354 |
54f3062c4dfc2e2534cddda79b7db5b81a72f6c3 | 1,221 | package top.bluesword.java.math;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
import java.math.RoundingMode;
class BigDecimalTest {
@Test
void setScale() {
BigDecimal decimal = new BigDecimal("100000.215");
BigDecimal newDecimal = decimal.setScale(2,RoundingMode.HALF_UP);
System.out.print... | 26.543478 | 93 | 0.711712 |
e912cec7e4fae0b559fd6d6ff9a42c08af9eca7a | 4,442 | /*
* 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 clinica.util;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.uti... | 31.728571 | 89 | 0.508104 |
e2e3687a6346bf2ff6b392adddfe81f3a7e6e334 | 3,758 | package com.ajjpj.afoundation.concurrent;
import java.util.Collections;
import java.util.List;
/**
* This interface provides methods for shutting down and monitoring an {@link AThreadPool}. It is separated from
* the 'submit' API to allow an {@link AThreadPool} to be passed around without giving all parts of an a... | 44.211765 | 121 | 0.643161 |
23ba5e4dfc47454522f2562c72a1bee789543583 | 5,455 | @Override
public RServiceResponse execute(final NexusServiceRequest inData) throws NexusServiceException {
final RServiceRequest data = (RServiceRequest) inData;
final RServiceResponse retval = new RServiceResponse();
final StringBuilder result = new StringBuilder("R service call results... | 57.421053 | 180 | 0.55417 |
7ca5f94fd923eff8ffa7fde5f315414dd3cbd93e | 607 | package com.pisces.rds.config;
import org.apache.ibatis.reflection.MetaObject;
import org.apache.ibatis.reflection.wrapper.ObjectWrapper;
import org.apache.ibatis.reflection.wrapper.ObjectWrapperFactory;
import com.pisces.core.entity.EntityObject;
public class EntityWrapperFactory implements ObjectWrapperFac... | 27.590909 | 76 | 0.785832 |
8dd71de489e76279da7c6f182551cb1469c507e3 | 95,151 | /*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwindx.examples.shapebuilder;
import gov.nasa.worldwind.View;
import gov.nasa.worldwind.avlist.AVKey;
import gov.nas... | 44.359441 | 121 | 0.647192 |
7a6e439996040a2e057c2ca4e50c705d74f52df2 | 2,694 | package com.mqttsnet.thinglinks.broker.service;
import com.mqttsnet.thinglinks.common.core.constant.Constants;
import com.mqttsnet.thinglinks.common.core.enums.DeviceConnectStatus;
import com.mqttsnet.thinglinks.common.core.utils.DateUtils;
import com.mqttsnet.thinglinks.common.redis.service.RedisService;
import com.... | 35.447368 | 225 | 0.749814 |
70434802a095d4ee87f80c564f2ad870177052ea | 577 | package com.smartplanner.service;
import com.smartplanner.model.dto.PlanInputDto;
import com.smartplanner.model.dto.PlanOutputDto;
import com.smartplanner.model.entity.Lesson;
import com.smartplanner.model.entity.Plan;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public interface Pl... | 24.041667 | 82 | 0.79896 |
724ac3a1edcc24b7ee20584e464de28083b2b5f3 | 6,270 | /*
* Copyright 1998-2013 University Corporation for Atmospheric Research/Unidata
*
* Portions of this software were developed by the Unidata Program at the
* University Corporation for Atmospheric Research.
*
* Access and use of this software shall impose the following obligations
* and understandings on the use... | 43.541667 | 121 | 0.632217 |
ebfd8a7ef2c6fb30dc4d98872d408e599aada318 | 608 | package com.csuft.buyhouse.entity;
import org.beetl.sql.core.TailBean;
public class UserInfo extends TailBean{
private Integer id;
private String userPhone;
private Integer houseInfoId;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String ... | 19 | 51 | 0.695724 |
54cb4cefa421513fb68b3d5cbc9c8a728fe0092f | 423 | package gov.samhsa.ocp.ocpuiapi.service.dto.uaa.user;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserDto {
private String resource;
private String resour... | 16.92 | 53 | 0.787234 |
bf642c509f10dd6e989cd7e18e4b86895841e9f2 | 2,221 | /*
* 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 org.thespheres.betula.curriculumimport.xml;
import java.util.Objects;
import javax.xml.bind.annotation.XmlAccessType;
import j... | 27.419753 | 87 | 0.665016 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.