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 |
|---|---|---|---|---|---|
f7110ba68b96f35bd64770efdf379b55cdd0b326 | 549 | package com.letv.core.bean;
import java.util.ArrayList;
import java.util.List;
public class TopicDetailInfoListBean implements LetvBaseBean {
public static final String CACHE_KEY_TOPIC_ALBUM_LIST = TopicDetailInfoListBean.class.getSimpleName();
private static final long serialVersionUID = 1;
public List<T... | 32.294118 | 106 | 0.763206 |
99c1bd89dc37a8111925b5de0a0767c3b05350ab | 254 | package com.nerdnull.donlate.server.dto;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
@Getter
@Setter
public class PaymentDto {
private Long id;
private Long amount;
private Long planStateId;
private Date date;
}
| 15.875 | 40 | 0.740157 |
e9c9e98effd4df7615b8b6764b7b3b3b2d0a29f0 | 5,746 | package edu.columbia.cs.psl.phosphor.runtime;
import edu.columbia.cs.psl.phosphor.Configuration;
import edu.columbia.cs.psl.phosphor.TaintUtils;
import edu.columbia.cs.psl.phosphor.struct.ControlTaintTagStack;
import edu.columbia.cs.psl.phosphor.struct.EnqueuedTaint;
import edu.columbia.cs.psl.phosphor.struct.LinkedLi... | 26 | 123 | 0.687435 |
c1c6534425c6d2bc876fab8b1f55a58d8385b153 | 3,070 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 46.515152 | 134 | 0.745277 |
3d6ec1abb02d063a7cbb5431abacad2d7c699c5b | 968 | package extracells.api.storage;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
public interface IPortablePoweredDevice {
/**
* Checks if the device has enough power.
* @param player Player holding it.
* @param amount Amount of power required.
* @param st... | 28.470588 | 74 | 0.678719 |
6cd54fb18c80a684d67009859c22effee4dc14fd | 9,510 | /*
* 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 chat.client.model;
import chat.client.controller.ClientController;
import chat.client.interfaces.RMIClientInterface;
... | 33.368421 | 122 | 0.589169 |
70673345998166a0048a4e4a91425d02e9751167 | 1,025 | package com.littlejenny.gulimall.ware.dao;
import com.littlejenny.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.littlejenny.gulimall.ware.to.HasStockWareTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.uti... | 32.03125 | 116 | 0.755122 |
08052a6ab2268d2aa6a3c83ef764e1b7e8f42892 | 1,390 | public class Sbox{
// data structure to store sbox
private static int sbox[][]=new int[16][16];
private static int inverseSbox[][]=new int[16][16];
static {
for(int i=0;i<16;i++){
for(int j=0;j<16;j++){
int entry=Sbox.compute(i,j);
Sbox.sbox[i][j]=entry;
// calculate inverse entry
int invi... | 16.746988 | 62 | 0.583453 |
01358c74d6eebd318fd0195da8a1409f02b69698 | 5,314 | // ========================================================================
// Copyright 2009 Webtide LLC
// ------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | 39.073529 | 112 | 0.601242 |
6e7ffbe6c89fff4ab6c44488c3a830f39c5d4d89 | 1,014 | package biz.binarysolution.licensemanager;
import android.content.Context;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
/**
* Created by Richard-IT on 01/12/2017.
*/
public class VolleySingleton {
private static VolleySingleton sInstance ... | 23.581395 | 82 | 0.686391 |
ce8d8e1a3465e09f3fd78a8e7672e6c5e943d84a | 1,577 | package com.guzt.starter.bpm2.pojo.entity;
import java.util.Date;
/**
* 流程图中的某个用户任务节点
*
* @author guzt
*/
public class BpmTaskEntity extends BpmTaskMinModelEntity {
private static final long serialVersionUID = 1L;
/**
* 当前任务id
*/
private String id;
/**
* 当前任务对应的流程实例id
*/
... | 16.956989 | 58 | 0.588459 |
3584696033300f7a68b52ad9ccdbe9ea6867893d | 6,840 | package seedu.address.model.diary;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.model.diary.DiaryTestUtil.ABSENT_DAY_INDEX;
import static seedu.address.... | 42.222222 | 113 | 0.770175 |
91c2933a492ca776835e0714088700026d7bb711 | 2,334 | package com.fun.generator.controller;
import com.fun.generator.model.ClassInfo;
import com.fun.generator.model.R;
import com.fun.generator.util.FreemarkerTool;
import com.fun.generator.util.TableParseUtil;
import freemarker.template.TemplateException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logge... | 37.047619 | 121 | 0.699229 |
2d4dffbe3957dd342ca4d642605aa313e6d700c9 | 4,359 | package com.stylefeng.guns.common.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
impo... | 18.788793 | 73 | 0.672173 |
5bac4b33dfbb3bbf49e9c3d86ab9d62169400657 | 6,193 | package br.com.basis.abaco.service.dto;
/**
* @author eduardo.andrade
* @since 15/05/2018
*/
public class ImpactoDTO {
private Integer aliInclusao;
private Integer aliAlteracao;
private Integer aliExclusao;
private Integer aliConversao;
private Integer aieInclusao;
... | 21.281787 | 59 | 0.653641 |
708e47cc22acce954ba19fb358796321240fe385 | 4,819 | /*-
* #%L
* anchor-bean
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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 ... | 39.5 | 149 | 0.633949 |
8a4a70350261c6d106d6a91ff36e2aa3f10dc4e9 | 3,800 | /*
* PROJECT: NyARToolkit
* --------------------------------------------------------------------------------
* This work is based on the original ARToolKit developed by
* Hirokazu Kato
* Mark Billinghurst
* HITLab, University of Washington, Seattle
* http://www.hitl.washington.edu/artoolkit/
*
... | 22.222222 | 84 | 0.617632 |
b0f1d47083d4ae7ee4e28b9684e973eeef516f1d | 689 | package com.fusion.engine.kernel.order.biz.action;
import com.fusion.engine.kernel.order.entity.OrderModel;
import com.fusion.engine.kernel.order.machine.OrderEvents;
import com.fusion.engine.kernel.order.machine.OrderStates;
import org.springframework.statemachine.StateContext;
import org.springframework.stereotype.C... | 29.956522 | 123 | 0.77939 |
24028c0407a12ab955cddbba315aa73975efa423 | 1,945 | package com.pajehyk.scheduler.controllers;
import com.pajehyk.scheduler.entities.Task;
import com.pajehyk.scheduler.repositories.TaskRepository;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework... | 32.416667 | 76 | 0.708997 |
23ace1192500e8ab45db65e3731c4cbd843ede8b | 20,104 | package trackchanges;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.locks.ReentrantLock;
import java.util.logging.Logger;
import javax.websocket.OnClose;
import javax.websock... | 33.506667 | 123 | 0.686928 |
09b79e94726241b9ae3367385fe2f24ca637f124 | 890 | package com.wbrawner.simplemarkdown.model;
import java.util.ArrayList;
import java.util.List;
public class Readability {
private String content = "";
private final String DELIMS = ".!?\n";
public Readability(String content){
this.content = content;
}
public List<Sentence> sentences(){
... | 25.428571 | 87 | 0.542697 |
be756133f788e5b559ca0de307fa473ae2e482aa | 839 | package com.life.equipmentlife.model.networking.api;
import com.life.equipmentlife.model.pojo.AddressData;
import com.life.equipmentlife.model.pojo.Estado;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import static com.life.equipmentlife.common.constants.Const... | 26.21875 | 76 | 0.766389 |
3066f2d416ef4709ec1cd986dd27ed93fea9be23 | 1,285 | package offer;
/**
* 合并两个排序的链表
*
* @author zhaoxuyang
*/
public class Exp25 {
public static void main(String[] args) {
Node node1 = new Node(0, new Node(3, new Node(5, new Node(8, null))));
Node node2 = new Node(2, new Node(3, new Node(4, new Node(9, null))));
Node result = merge(node1... | 23.363636 | 78 | 0.494163 |
ab2693bcde6927b1ac95077b78b39b961f0205de | 74 | package me.sunmin.algs4;
public class DoubleNodeLinkedList<Item> {
}
| 9.25 | 41 | 0.743243 |
7e12b7fe2a270b0d767259977f130e1380908280 | 5,367 | /*
* XML Type: ArrayOfduplicaterulecondition
* Namespace: http://schemas.microsoft.com/crm/2007/WebServices
* Java type: com.microsoft.schemas.crm._2007.webservices.ArrayOfduplicaterulecondition
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.crm._2007.webservices.impl;
/**
... | 37.795775 | 194 | 0.648221 |
a6b75464af7946cd49205bb4bbc692477472c264 | 2,594 | package com.vechain.thorclient.utils.crypto;
import com.vechain.thorclient.utils.BytesUtils;
import com.vechain.thorclient.utils.CryptoUtils;
import com.vechain.thorclient.utils.Prefix;
import org.bouncycastle.math.ec.ECPoint;
import org.bouncycastle.util.Arrays;
import javax.naming.OperationNotSupportedException;
i... | 29.146067 | 99 | 0.679645 |
e75fca671d98f8fd62966535898f35ea5e55f6ac | 13,242 | package org.openpaas.paasta.container.platform.jenkins.service.impl;
import org.openpaas.paasta.container.platform.jenkins.common.CommonService;
import org.openpaas.paasta.container.platform.jenkins.exception.ContainerPlatformJenkinsServiceException;
import org.openpaas.paasta.container.platform.jenkins.model.JpaJenki... | 52.547619 | 200 | 0.748225 |
3f6ad7f8575b2a625751fb302eae4a43485df404 | 3,086 | package com.xiaobudian.huastools.ui.presenter;
import android.util.Log;
import com.xiaobudian.huastools.data.EducationApi;
import com.xiaobudian.huastools.data.parse.ScoreParse;
import com.xiaobudian.huastools.exception.DefaultErrorBundle;
import com.xiaobudian.huastools.exception.ErrorBundle;
import com.xiaobudian.h... | 28.841121 | 115 | 0.632858 |
109e9ee29e4d2ce0f22cd19e4f8efb5cbc9f19fd | 266 | package qaclickacademy;
import org.testng.annotations.Test;
public class AppiumTest {
@Test
public void NativeAPpAndroid()
{
System.out.println("NativeAPpAndroid");
}
@Test
public void IOSApps()
{
System.out.println("IOSApps");
}
}
| 14.777778 | 42 | 0.669173 |
677bdac69a0eaf47346712789612518127ae0a71 | 789 | package iammert.com.androidarchitecture.ui.main;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;
import java.util.List;
import javax.inject.Inject;
import iammert.com.androidarchitecture.data.MovieRepository;
import iammert.com.androidarchitecture.data.Resource;
import iammert.com.a... | 24.65625 | 70 | 0.779468 |
ed4a8fa60f5d6e4fd54dc6acb54ed0b0b44eba25 | 1,719 | /**
* Copyright (C) 2016 - 2030 youtongluan.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 28.180328 | 76 | 0.662013 |
d4af031d9d40c26f00490118e9303c0cf0502ef8 | 1,311 | package no.f12.jzx.weboo.domain;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import no.f12.jzx.weboo.domain.validation.NotBlank;
import no.f12.jzx.weboo.domain.validation.ValidOrganizationNumber;
import no.f12.jzx.weboo.domain.validation.WeightedCrcNumberValidator;
public cla... | 21.491803 | 69 | 0.716247 |
6a2b4e17633a10116c2b8e2f936107bb51fa10cf | 1,008 | package net.peterd.zombierun.activity;
import net.peterd.zombierun.R;
import net.peterd.zombierun.game.GameSettings;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class SinglePlayerEntry extends BaseActivity {
@Override
public void onCre... | 26.526316 | 79 | 0.701389 |
3d5af8b822cc103171f62f9ac78716284e7253e1 | 3,133 | package com.kodilla.sodoku;
import lombok.AccessLevel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import java.util.ArrayList;
import java.util.List;
@EqualsAndHashCode
@Getter(AccessLevel.PACKAGE)
final class Board extends Prototype {
private List<Row> rowList;
Board() {
rowList = new Ar... | 44.757143 | 162 | 0.649218 |
8be3e21a8dbdbbf13ca3ee6340ce497a6172fc22 | 2,052 | package com.quantimodo.etl;
import java.util.Map;
import java.util.HashMap;
public class T2MoodTrackerConverter implements Converter {
public static final T2MoodTrackerConverter instance = new T2MoodTrackerConverter();
private T2MoodTrackerConverter() {}
public QuantimodoRecord[] convert(final DatabaseVie... | 47.72093 | 163 | 0.675439 |
bf88933bafa43f330b6c28c5c8c1fafe98333758 | 2,940 | package br.usp.ime.academicdevoir.dao;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import junit.framework.Assert;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.junit.Before;
import org.junit.Test;
impor... | 24.5 | 66 | 0.721429 |
d81440109d5e35ad8fb7c7a9975c3c589ee0869a | 3,589 | package net.acomputerdog.plugin;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.inventory.meta.Damageable;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.in... | 36.252525 | 138 | 0.588743 |
85c3fc4c842acf80caedc5c1e717379fcdb5259a | 2,796 |
package hu.arheu.gds.message.data.impl;
import hu.arheu.gds.message.MessagePart;
import hu.arheu.gds.message.data.MessageData4AttachmentRequest;
import hu.arheu.gds.message.errors.ReadException;
import hu.arheu.gds.message.errors.ValidationException;
import hu.arheu.gds.message.errors.WriteException;
import hu.arheu.... | 29.125 | 126 | 0.706724 |
64d5bd047375b534480a4674ea75b4845968046a | 27,923 | package net.bytebuddy.description.type;
import net.bytebuddy.description.field.FieldList;
import net.bytebuddy.test.utility.ObjectPropertyAssertion;
import org.junit.Before;
import org.junit.Test;
import java.io.Serializable;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collection;
impo... | 48.646341 | 162 | 0.75744 |
161b43c0ab2801432abcbd051a42a7be03c6bfb2 | 324 | package org.noear.weed.cache;
/**
* 对象序列化接口
*
* @author noear
* @since 3.0
* */
public interface ISerializer<T> {
/**
* 名称
* */
String name();
/**
* 序列化
* */
T serialize(Object obj) throws Exception ;
/**
* 反序列化
* */
Object deserialize(T dta) throws Exception ... | 14.086957 | 48 | 0.509259 |
223e00005d8d1bf4ed87bc84580c480fac72c70b | 1,660 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* 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/LICE... | 27.666667 | 119 | 0.654217 |
b9870d4a176962f8cb3f0c5cc656f7a753838271 | 2,390 | package com.innohawk.dan.friends;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import com.innohawk.da... | 33.194444 | 92 | 0.628033 |
c03bd3ab644b0c1bb4e0920b3ccad468b9ddda0b | 518 | package me.m1dnightninja.hideandseek.api.integration;
import me.m1dnightninja.midnightcore.api.module.skin.Skin;
import me.m1dnightninja.skinsetter.api.SavedSkin;
import me.m1dnightninja.skinsetter.api.SkinSetterAPI;
public class SkinSetterIntegration {
public static Skin getSkin(String id) {
SkinSetter... | 27.263158 | 58 | 0.727799 |
04c583babf9e39e3a5058922d9e883b3969c2fa2 | 2,881 | /*
* Xidget - XML Widgets based on JAHM
*
* Margins.java
*
* Copyright 2009 Robert Arvin Dunnagan
*
* 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/... | 22.507813 | 97 | 0.57966 |
61b9d8578e705fc08daffc005e4ba8735d3ff312 | 4,807 | /*
* 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 qecSystem;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persiste... | 30.617834 | 155 | 0.687331 |
0c2ee08f560f6b067791c86818f81e290185b17a | 9,246 | package asa.address.plan;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import asa.address.model.Person;
import asa.address.util.DateUtil;
import javafx.collections.ObservableList;
import jxl.CellView;
import jxl.Workbook;
import jx... | 31.342373 | 109 | 0.676833 |
c217062f3e9964c0ae2be3b15274e1133022ca2b | 1,091 | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class InputOutput {
private BufferedReader inputFile;
private BufferedWriter outputFile;
public InputOutput(String[] filePaths) {
try {
inpu... | 20.980769 | 70 | 0.659945 |
ced12410a525800186b8dd0632d139a1b51463d8 | 2,907 | package hathibelagal.github.io.oldstackreader;
/**
* Created by Hathibelagal on 5/8/16.
*/
public class Question {
private String title;
private String authorDisplayName;
private String authorPhoto;
private int score;
private int viewCount;
private long creationDate;
private boolean isAn... | 23.071429 | 90 | 0.598555 |
14a7aeceef609d261fb8245f5c1ca314f3a6805c | 5,048 | /*
* Copyright (c) 2004-2009, Jean-Marc François. All Rights Reserved.
* Licensed under the New BSD license. See the LICENSE file.
*/
package jahmm.distributions;
import java.util.Arrays;
import java.util.Random;
/**
* This class implements a Gaussian mixture distribution.
*
* @author Jean-Marc Francois (based... | 31.55 | 101 | 0.619651 |
fe01cf33dc06355d78cbd431135599c8e3ff5ea6 | 220 | package com.subgraph.orchid;
import com.subgraph.orchid.data.HexDigest;
public interface BridgeRouter extends Router {
void setIdentity(HexDigest identity);
void setDescriptor(RouterDescriptor descriptor);
}
| 24.444444 | 50 | 0.795455 |
324f182f80e8e015da287910bd2247745f7b1ca5 | 2,810 | package cn.hdj.hdjblog.xss;
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HtmlUtil;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @author hdj
* @version 1.0
* @date 14/01/2020 23:40
* @des... | 26.509434 | 86 | 0.616014 |
3d1be5ddfcaaa4301e2a4adc5c0afc266e2b9953 | 481 | package com.fromlabs.inventory.notificationservice.utility;
import lombok.experimental.UtilityClass;
import lombok.extern.slf4j.Slf4j;
/**
* Request bootstrap layer
*/
@Slf4j
@UtilityClass
public class RequestBootstrap {
/**
* Log wrapper
* @param result Object
* @param message Log message
... | 20.041667 | 62 | 0.673597 |
c8e900366fd380316da658058425aace27d620d2 | 513 | package com.rozenkow.service;
import com.rozenkow.model.Worker;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by Poul Rozenkow.
*/
@Service
public class WorkerService {
private final UserService userService;
@... | 20.52 | 62 | 0.768031 |
9e8782985281bb93c42385f1cf9c1534788af35a | 1,718 | package rfx.track.common;
import java.util.Date;
import redis.clients.jedis.Pipeline;
import redis.clients.jedis.ShardedJedisPool;
import redis.clients.jedis.exceptions.JedisException;
import rfx.core.configs.RedisConfigs;
import rfx.core.nosql.jedis.RedisCommand;
import rfx.core.util.DateTimeUtil;
/**
* Created by... | 32.415094 | 121 | 0.642026 |
ab565f106038bcf4e57d97c497e898d02772ce2c | 695 | package io.swagger.models;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.swagger.annotations.ApiModel;
/**
* <p>Provides ...</p>
* <p>
* <p>Created on 25/08/2016 by willows_s</p>
*
* @author <a href="mailto:willows_s@iblocks.co.uk">willows_s... | 31.590909 | 112 | 0.719424 |
76d2e290c7802f5b390e0b21a74dabc6f0d45044 | 1,124 | package org.grejpfrut.lakon.summarizer;
import java.util.Properties;
import junit.framework.TestCase;
/**
* Abstract test case which loads test data from standard location or from given
* one.
*
* @author Adam Dudczak
*/
public abstract class AbstractDataTestCase extends TestCase {
protected Pr... | 26.139535 | 81 | 0.715302 |
4bbe73fd1678d733958a004c9c785e19e32325ad | 658 | package com.commafeed.backend.util;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.Date;
public class TodayDateConstructor {
/**
* Returns a string containing the datetime of today at the start of the day. Used to fix a bug in a dependency
* wh... | 31.333333 | 115 | 0.714286 |
e6c5a13d85f7c5e91b2fd181ba31d120a510621b | 5,255 | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public class ClearingHouse {
List<Transaction> settleDown(String[] records) {
Map<String, Double> amountMap = new HashMap<>();
for (String record : records) {
... | 40.736434 | 119 | 0.492483 |
e5f6f3747bb1fb8cbb26321176b1fb5d3be5fbe3 | 2,984 | package org.shypl.biser.csi.server;
import org.shypl.biser.csi.Address;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Arrays;
public class ServerSettings {
private final Address address;
private byte[] crossDomai... | 29.254902 | 104 | 0.737265 |
5a9da9fdb793ab249a31d680bc25e957a7c57afb | 1,547 | package com.focamacho.fullbellysheep.mixin;
import com.focamacho.fullbellysheep.config.ConfigHolder;
import net.minecraft.entity.passive.AnimalEntity;
import net.minecraft.entity.passive.SheepEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
i... | 41.810811 | 170 | 0.732385 |
c01fb64b8b21da41e1f12d0d7735cf298e5c9e7b | 790 | package com.fc.cps.action;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class UserInfosAction extends HttpServlet {
private static final long ... | 31.6 | 120 | 0.762025 |
5b01a8008ac1d21a6b97e4a07a94dc028277596b | 854 | package com.relesi.cloudarchitecture.api.services;
import com.relesi.cloudarchitecture.api.entities.Employee;
import java.util.Optional;
public interface EmployeeService {
/**
* An employee remains in the database.
*
* @param employee
* @return Employee
*/
Employee persist(Employee... | 18.977778 | 58 | 0.62178 |
9265d1196f94e305de1094ad2b0f6d6df9fa872e | 592 | package com.mall.admin.model.param;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class ProductFormParam {
private Long id;
private Integer categoryId;
private Integer kind;
private String title;
private Integer brandId;
private String name;
private String origin;
... | 21.925926 | 35 | 0.734797 |
032f97ca08a8e4cc108fb4f4710a8194ad9e0ade | 6,664 | package com.alphawallet.app.ui.widget.adapter;
import android.content.Context;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import andro... | 37.438202 | 133 | 0.672869 |
7ad3aa3708ef27ac043e12e87ac34ccf8d312f01 | 10,356 | package com.amzi.prolog.core;
import com.amzi.prolog.core.utils.Utils;
import amzi.ls.LogicServer;
import amzi.ls.LSException;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.net.URL;
import java.util.*;
//import org.eclipse.core.boot.BootLoader;
import org.eclips... | 29.254237 | 228 | 0.665315 |
bdf5eb3b0044aa6012c0f70ed938d7ab22959ee7 | 3,123 | package ir.taghizadeh.rxjava2_operators.combining;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUnit;
import io.reactivex.Observable;
import io.reactivex.Observer;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
import ir.taghizadeh.r... | 38.555556 | 159 | 0.599103 |
31fbe236c98e5b9da7cb20933a2831cd80a2707c | 877 | package com.github.JHXSMatthew.Kits.allKits;
import com.github.JHXSMatthew.Kits.KitBasic;
import com.github.JHXSMatthew.Kits.KitType;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.potion.PotionEffect;
import org.... | 23.078947 | 88 | 0.737742 |
019061503aff9b73ff086176e051b0dc95e4db0a | 1,666 | /*
* Copyright (C) 2017 Google 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 agree... | 31.433962 | 94 | 0.712485 |
f56d97a142333869e1bf88eef14967bbadda988e | 2,134 | /*
* The MIT License
*
* Copyright 2018 Michal.
*
* 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, ... | 31.850746 | 92 | 0.70806 |
81b7a3f873ada087f5931e01c40ae77b76769d86 | 3,811 | package salvo.jesus.graph.visual;
import salvo.jesus.graph.Graph;
import salvo.jesus.graph.visual.layout.GraphLayoutManager;
import javax.swing.*;
/**
* GraphScrollPane encapsulates GraphPanelSizeable so that the
* visual representation of the graph has scrollbars to allow the user
* to view other portions of the... | 30.488 | 107 | 0.712674 |
f7e14ea6f9b4cb105d55f7cd317c415ef06486af | 4,420 | package com.hoversoftsoln.esta_fort.booking;
import android.app.Activity;
import android.app.AlertDialog;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;
import android.util.Pair;
import com.google.firebase.auth.FirebaseAuth;
import com.g... | 35.934959 | 136 | 0.602489 |
46bf1c4edafb8661fd7ec55a13b7667116f0652f | 1,379 | package com.trifork.hotruby.ast;
import java.util.List;
import com.trifork.hotruby.interp.CompileContext;
public class SuperExpression extends VariableExpression {
public static Expression instance = new SuperExpression();
private SuperExpression() {
super(-1, "super");
// TODO Auto-generated constructor stu... | 27.039216 | 73 | 0.702683 |
986267641f1c398254e2467d5a4d693d8c27a815 | 1,649 | package org.atlasapi.equiv.results.filters;
import org.atlasapi.equiv.results.description.ResultDescription;
import org.atlasapi.equiv.results.scores.ScoredCandidate;
import org.atlasapi.equiv.update.metadata.EquivToTelescopeComponent;
import org.atlasapi.equiv.update.metadata.EquivToTelescopeResult;
import org.atlasa... | 37.477273 | 91 | 0.682838 |
9802eb53e4c99db4759c15b292fa4b23f07445b4 | 22,821 | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 36.281399 | 100 | 0.654091 |
8cd75ab0e605023f9e4b38cbb2a0662dd26d98c2 | 6,456 | package chuangyuan.ycj.yjplay;
import android.content.Intent;
import android.os.Build;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.OrientationEventListener;
import android.view.View;
import chuangyuan.ycj.yjplay... | 44.524138 | 102 | 0.509758 |
e3640f7b58aac64e7d2f4204932d8c38573aa97a | 2,345 | package pl.fishing.user.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import pl.fi... | 36.076923 | 130 | 0.74968 |
1815decbd6306703bcf711548c6603724607e8aa | 532 | package gg.projecteden.nexus.features.resourcepack.decoration.common;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.bukkit.block.BlockFace;
import java.util.Arrays;
import java.util.List;
@AllArgsConstructor
public enum DisabledPlacement {
FLOOR(BlockFace.UP),
WALL(BlockFace.NORTH, BlockFace.E... | 22.166667 | 72 | 0.791353 |
2c65d0142af825c6ccc5c049bd73d0b36ab60cb5 | 1,479 | package com.cmu.smartphone.allavailable.entities;
import java.io.Serializable;
/**
* SeatBean Class
*
* @author Xingbang (Simba) Tian
* @version 1.0
* @since 11/13/2015
*/
public class SeatBean implements Serializable {
private int seatId;
private boolean occupied;
private int roomId... | 17.607143 | 50 | 0.506423 |
f7416942b73812c59fabe2cf7cfd034f70ac5f47 | 4,998 | /*******************************************************************************
* Copyright (c) Contributors to the Eclipse 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
*... | 32.454545 | 109 | 0.716687 |
1e96377db4a640ab92dba773ef5a1d8bb90db1a5 | 731 | package com.graly.framework.base.ui.exceptionhandler;
import org.apache.log4j.Logger;
import com.graly.framework.runtime.exceptionhandler.IExceptionHandler;
import com.graly.framework.base.ui.util.UI;
public class ThrowableHandler implements IExceptionHandler {
private static final Logger logger = Logger.getLogger... | 31.782609 | 79 | 0.786594 |
1bd722502fc2c823d59ed296003dd80c31862a84 | 511 | package org.legacycode.mvp.model;
import org.springframework.stereotype.Component;
@Component
public class FirstChildModelImpl implements FirstChildModel {
@Override
public String getButtonText() {
// data from database or elsewhere
return "FirstButtonText";
}
@Override
public String getDialogMessageText()... | 18.925926 | 61 | 0.761252 |
8a3701eda915e9da1009c31bc262d9250c81ab80 | 19,763 | package com.dat3m.dartagnan.verification.model;
import com.dat3m.dartagnan.program.Program;
import com.dat3m.dartagnan.program.Register;
import com.dat3m.dartagnan.program.Thread;
import com.dat3m.dartagnan.program.event.*;
import com.dat3m.dartagnan.program.event.utils.RegReaderData;
import com.dat3m.dartagnan.progra... | 40.168699 | 123 | 0.602591 |
8b9117738ac6edcdfba16574bdf5d2d6d201f402 | 352 | // http://codingbat.com/prob/p143900
public int countHi2(String str) {
if (str.length() < 2) {
return 0;
}
if (str.substring(0, 2).equals("xh")) {
return countHi2(str.substring(2));
}
else if (str.substring(0, 2).equals("hi")) {
return countHi2(str.substring(2)) + 1;
}
else {
return co... | 19.555556 | 46 | 0.596591 |
803f326013513fa08d32603d7d17d40b02c95fe1 | 1,287 | package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.builders.PathSelectors;
impor... | 41.516129 | 164 | 0.766123 |
a891b38033589f4acb8d4bffaea96eb5cf183be7 | 1,749 | import java.io.IOException;
import java.net.UnknownHostException;
import java.util.ArrayList;
import com.mongodb.MongoClient;
public class main {
public static void main(String args[]) throws InterruptedException, UnknownHostException{
String configFile = args[0];
String outputDirectory = args[1];
if(!ou... | 36.4375 | 122 | 0.718125 |
126f23cc9a587012b50314def703ba17b2aea76d | 6,655 | /**
* Copyright (C) 2013 Terri A. Grosso
*
* 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,... | 31.690476 | 465 | 0.718107 |
cd0caccc4b25ce02dcc4a71a626ca4447a62fc80 | 15,796 | /*
dynmap-shopchest : Display ShopChest Shops on Dynmap
Copyright (c) 2018 Queued Pixel <git@queuedpixel.com>
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 witho... | 47.011905 | 119 | 0.55666 |
707c4b6d38617f6292e7e89d142e9a4ca40ec062 | 17,797 | /*
* Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 30.164407 | 137 | 0.596842 |
318829f2530a30e41ef1e7cfac050f5b4435794f | 2,934 | /************************************************************************
PickerChangeEvent.java is part of Ti4j 3.1.0 Copyright 2013 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 obtain a copy of the Licens... | 32.241758 | 122 | 0.654397 |
c7a534ce2c9e0e696416abb63115cd6e95428bea | 3,002 | package org.starrier.ishare.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.starrier.ishare.dao.UserDao;
import org.starrier.ishare.model.entity.User;
import org.starrier.ishare.service.UserService;
import javax.servlet.http.HttpSe... | 30.632653 | 101 | 0.704197 |
06ef3b24c317666c97cdc789d3f05751fb5ea625 | 903 | package ol.format;
import javax.annotation.Nullable;
import jsinterop.annotations.JsType;
import ol.Feature;
import ol.Options;
import ol.proj.Projection;
/**
* KML format.
*
* @author amagge
*
*/
@JsType(isNative = true)
public class KML extends XMLFeature {
public KML() {};
public KML(KMLOptions kmlOpti... | 24.405405 | 94 | 0.771872 |
e2c51b97d96eb7bfe658f6e1f1995a9c56662a13 | 8,880 | /*******************************************************************************
* Copyright 2006 - 2014 Vienna University of Technology,
* Department of Software Technology and Interactive Systems, IFS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | 39.118943 | 130 | 0.670383 |
0f86302916f0d5d2e24cd3b0142421783a6977a9 | 332 | package mainclient.methodNowFinal;
import main.methodNowFinal.MethodNowFinal;
public class MethodNowFinalExt extends MethodNowFinal {
@Override
public int methodNowFinal() {
return 1;
}
@Override
public int sMethodNowFinal() {
return 10;
}
public int methodNowFinalClient() {
return super.methodNowFi... | 15.809524 | 55 | 0.753012 |
c39296cb5e944d88e3afbcd6674093f74b249311 | 980 | package com.artisan.hivemq.plugin;
import com.hivemq.spi.HiveMQPluginModule;
import com.hivemq.spi.PluginEntryPoint;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.codehaus.jackson.map.ObjectMapper;
public class AuthenticationPluginModule extends Hiv... | 29.69697 | 97 | 0.729592 |
d115e0c1b8ee1529a0c93232d66caeb3137da8fc | 3,425 | package kr.co.popone.fitts.feature.showroom;
import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView.Ada... | 52.692308 | 203 | 0.70365 |
c778b86500ebd645f7fa68a286d9af2c75c4edf3 | 8,761 | // ============================================================================
//
// Copyright (C) 2006-2017 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 35.044 | 125 | 0.661454 |
7e57f6f55c25699d38dc562df533394fd5b5c551 | 1,132 | package org.practice.app;
import org.junit.Test;
import org.practice.app.wrapper.MatrixWrapper;
import static org.junit.Assert.assertTrue;
import static org.practice.app.wrapper.apache.ApacheMatrixWrapper.createFrom;
public class GradientDescentTest {
@Test
public void gradientDescentOptimizesCostFunction()... | 39.034483 | 109 | 0.759717 |
aa479bbaf0be8fc8b629e38fcd75351cd5efd856 | 3,242 | package leetcode;
/**
* @No 148
* @problem Sort List
* @level Medium
* @desc 排序链表
* @author liyazhou1
* @date 2019/10/02
*
* <pre>
* Sort a linked list in O(n log n) time using constant space complexity.
*
* Example 1:
* Input: 4->2->1->3
* Output: 1->2->3->4
*
* Ex... | 24.37594 | 73 | 0.409624 |
e0f2083ce71037e900645ca7adc90603ab4d1437 | 7,935 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.nextenso.agent;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.ut... | 37.606635 | 136 | 0.59748 |
470a57b715e1d0c889fc89e89926a43d68fc7486 | 2,032 | package com.baidu.rigel.biplatform.ma.report.service;
import java.util.List;
import java.util.Map;
import com.baidu.rigel.biplatform.ac.model.Dimension;
import com.baidu.rigel.biplatform.ma.report.model.ExtendArea;
import com.baidu.rigel.biplatform.ma.report.model.LinkInfo;
import com.baidu.rigel.biplatform.m... | 31.261538 | 106 | 0.705217 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.