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 |
|---|---|---|---|---|---|
3d8adc8161c92e9c4d359be7c52cf0890174dd0e | 6,861 | /*
* Copyright © 2017 Cask Data, 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 ag... | 35.184615 | 81 | 0.619297 |
86bb9435a4cc02fc187fd244cd85b81c26288a91 | 3,768 | /*
* Copyright 2000-2016 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 31.4 | 125 | 0.676486 |
8a828afed215310e34a826f30e9bbd8edd3c9180 | 1,551 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 37.829268 | 91 | 0.707286 |
23c68e679c0b84460b62cc06ccb6a2d99d218a75 | 680 | package com.zkryle.jeg.common.customgoals;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.MobEntity;
import net.minecraft.entity.ai.goal.NearestAttackableTargetGoal;
import net.minecraft.entity.passive.TameableEntity;
public class TamedNearestAttackGoal<T extends LivingEntity> extends NearestAt... | 32.380952 | 106 | 0.739706 |
0bede897da0613afaadb7757f0d6eacf05bd258e | 206 | package pattern.visitor;
/**
* Visitor.java
*
* @author: zhaoxiaoping
* @date: 2019/11/01
**/
public interface Visitor {
void visit(XmlElement xmlElement);
void visit(JsonElement jsonElement);
} | 14.714286 | 38 | 0.699029 |
60a5820bf405f00bbe471e8572b78532db3b1a71 | 2,796 | package uk.ac.soton.ecs.comp3204.l6;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.io.IOException;
import java.util.List;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumb... | 30.391304 | 102 | 0.771102 |
1ad3d1b6ef4fe61ffc645b7d06b84d02977563b8 | 21,572 | /*
* Copyright 2014 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 applicabl... | 30.086471 | 113 | 0.527072 |
032f43d78a31983ed0198d3ab0e91698e420fab3 | 8,283 | package io.github.punishmentsx.listeners;
import io.github.punishmentsx.Locale;
import io.github.punishmentsx.PunishmentsX;
import io.github.punishmentsx.filter.Filter;
import io.github.punishmentsx.profiles.Profile;
import io.github.punishmentsx.punishments.Punishment;
import io.github.punishmentsx.utils.Colors;
impo... | 46.016667 | 221 | 0.574188 |
8297e37193d41d6a6725ba4b7b677a3f20dc7054 | 4,189 | package com.fasterxml.jackson.databind.ext;
import javax.xml.datatype.Duration;
import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.namespace.QName;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
* Helper class used for isolating details o... | 38.787037 | 125 | 0.629745 |
03730077fed25f9987bb1a48a4f6c6888275814f | 4,584 | package com.hyphenate.litedemo;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.hyphenate.EMCallBack;
import com.hyphenate.chat.EMClient;
import com.hyphenate.chat.EMOptions;
import com.hyphenate.litedemo.db.EaseUser;
import com.hyphenate.litedemo.db.Myin... | 22.693069 | 104 | 0.715314 |
2c262b748effd9dbc3f4fb6c7af9fc75a28801f7 | 118 | package oasis.audio.oal;
import oasis.audio.AudioListener;
public class OalAudioListener extends AudioListener {
}
| 14.75 | 53 | 0.813559 |
01861b13b3e5b7d11629bc0565b2c205176d9514 | 2,348 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 46.96 | 153 | 0.798552 |
314d5cb7ed927bbcad4cd8176fe4efdd15ae7fed | 3,023 | package com.mccarron.Gui;
import java.awt.*;
import java.awt.event.*;
import java.util.ArrayList;
import com.mccarron.Game.GuessHandler;
import com.mccarron.GameConstants;
/**
* Created by Eamon on 6/26/2015.
*/
public class GridListener implements ActionListener{
private Cell lastCellClicked;
pr... | 33.588889 | 101 | 0.535891 |
ae9e2b116cfbd8efa0419c748adf5ebfe785d959 | 1,353 | package com.bwc.heatmapj.mod;
import java.util.Objects;
public class ValuePoint {
private final double dataValue;
private final int xCoordinate, yCoordinate;
public ValuePoint(double dataValue, int xCoordinate, int yCoordinate) {
this.dataValue = dataValue;
this.xCoordinate = xCoordinate... | 24.160714 | 75 | 0.566149 |
e604468a035439df65239c0ade6916178f8ade9b | 962 | package find_k_closest_elements;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class Log_N_time_solution {
public static List<Integer> findClosestElements(int[] A, int k, int x) {
/*
* Time O(Log N)
* https://www.youtube.com/watch?v=ZZmIVlgDIlQ
*/
int left =... | 23.463415 | 79 | 0.606029 |
66b08131d56e7e0451da6b8f2c8317b99cf6f464 | 145 | package org.talend.components.simplefileio.local;
public class Constant {
public static final boolean IS_CLASSLOADER_REUSABLE = true;
}
| 18.125 | 61 | 0.77931 |
2bdc6f96384c6b541d0d46d69ab7de046e66bea2 | 2,254 | /**
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
* the terms of the Healthcare Disclaimer located at http://openmrs.org/license.... | 32.2 | 101 | 0.717391 |
e356373bb28a39a3a1d89d6fcb12c6f7cad54872 | 302 | package genetic.genetic.localOptima;
import genetic.genetic.Metric;
import genetic.genetic.types.Population;
public class IgnoreLocalOptima implements LocalOptimaSignal {
@Override
public <A> boolean isInLocalOptima(Metric<A> metric, Population<A> population) {
return false;
}
}
| 25.166667 | 84 | 0.761589 |
4e5b12a122776ee9536d50a558e9bd8b01ceacbe | 4,817 | package calculator.calc;
import calculator.exceptions.BadExpression;
import calculator.exceptions.TooLarge;
import java.math.BigInteger;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class ExpressionSolver {
private static final Pattern numbersDetection = Pattern.compile("-?... | 35.681481 | 117 | 0.548267 |
cd1742e867f2c1e79c9595c0847c2362e7a23198 | 159 | package projekat_11_5;
public class User {
public String firstName;
public String lastName;
public String email;
public boolean active;
public int age;
} | 17.666667 | 25 | 0.779874 |
6a83ca81c9685232ca8087af51f8adc59e35819d | 603 | package org.barrak.immocrawler.utils;
import org.apache.commons.lang3.RandomStringUtils;
import java.util.Random;
public class RandomStringUtilsWrapper {
private Random random;
public RandomStringUtilsWrapper(Random random) {
this.random = random;
}
public String randomAlphabetic(int count... | 25.125 | 80 | 0.71476 |
94043d45b0ff4946088d1e513de65f47ace8966e | 1,317 | package fz.vrd.library.utils;
import android.app.Activity;
import java.util.Stack;
/**
* Created by Administrator on 2017/4/26 0026.
* activity的管理者
*/
public class ActivityManage {
public Stack<Activity> stackActivity = new Stack<>();
//创建一个BaseActivity的实例
public static ActivityManage create() {
... | 22.322034 | 77 | 0.577069 |
ace39dbf6df9fd318bed5a97e4f67005633d9e7c | 5,157 | package tool.testmin.templatetransformers;
import org.antlr.v4.runtime.tree.ParseTreeWalker;
import tool.parser.template.Template2Parser;
import tool.testmin.TemplateBaseTransformer;
import tool.testmin.util.*;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.n... | 42.619835 | 151 | 0.563312 |
4053e1b7ddbe2e230fec6148f3802c58691f9df0 | 974 | /*
* Copyright (c) 2017 Tran Le Duy
*
* 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... | 23.756098 | 75 | 0.673511 |
28f1bcbbe4075a3529d966e4b125a6026be17b69 | 1,090 | package com.telran.tests.test;
import com.telran.tests.fw.TestBase;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.io.File;
import java.io.IOException;
public class TestChangeAvatar extends TestBase {
@BeforeMethod
public... | 34.0625 | 143 | 0.711927 |
08c3055c77ee3f8a31ef838bc102ee18e70ab8d6 | 3,117 | /**
* Created By: Md. Nazmus Salahin
* Created Date: 28-Feb-18
* Time: 10:25 AM
* Modified By:
* Modified date:
* (C) CopyRight Nybsys ltd.
*/
package com.nybsys.tillboxweb.models.purchase;
import java.util.Objects;
public class SupplierPaymentDetailModel {
private Integer supplierPaymentDetailID;
pr... | 30.558824 | 176 | 0.661213 |
65ce33572d9d5584fc70ab075df61c63f5a49aaf | 4,004 | /*
* Copyright (C) 2013 Fabien Barbero
*
* 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, pu... | 38.5 | 113 | 0.706543 |
dd1dd16214d0535f2def6bc8f52d1eef169f5269 | 7,433 | /*
* 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 programacao;
import classe.Aluno;
import classe.Disciplina;
import constantes.StatusAluno;
import java.util.ArrayLis... | 42.232955 | 120 | 0.563164 |
56d578c1fa39dab2463ea4959d46ea79c9a45a53 | 6,943 | package de.tud.nhd.petimo.view.activities;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
... | 38.787709 | 104 | 0.59686 |
a1d307da1ef6eb93b826faeb25e0e99532955b28 | 1,187 | package revitXmlTesting;
public class Point {
public double x,y,z;
public Point(double x, double y, double z) {
super();
this.x = x;
this.y = y;
this.z = z;
}
@Override
public String toString(){
return "x="+x+", y="+y+", z="+z;
}
@Override
public int hashCode() {
final int PR... | 23.27451 | 70 | 0.607414 |
4f038cc310b23de3b60cdd7cd84ec771d9bc78fa | 895 | package com.revolsys.ui.web.servlet;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Http... | 34.423077 | 92 | 0.823464 |
a383a560c1cecc27fc080b8c378bfacf962ff774 | 162 | package com.clausgames.crystalmagic.proxy;
public class ServerProxy extends CommonProxy
{
@Override
public ClientProxy getClientProxy()
{
return null;
}
}
| 14.727273 | 44 | 0.777778 |
f07b69fe433f385a0e2f064b84baa3b93e2094a8 | 1,213 | package com.iknowers.learning.redis.mybatis.config;
import com.iknowers.learning.redis.mybatis.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redi... | 43.321429 | 102 | 0.816158 |
52cf492d05940e7f8f4eed33428f4aec8d9d0ad4 | 13,072 | package com.qexz.controller;
import com.qexz.common.QexzConst;
import com.qexz.dto.AjaxResult;
import com.qexz.exception.QexzWebError;
import com.qexz.model.Account;
import com.qexz.model.Contest;
import com.qexz.model.Grade;
import com.qexz.model.Subject;
import com.qexz.service.*;
import com.qexz.util.MD5;
import or... | 39.732523 | 155 | 0.653381 |
15eb3243ab3bd1ef295205d9e414ac4921b1a2c8 | 1,607 | package io.blushine.android.common;
import androidx.annotation.RawRes;
import androidx.annotation.StringRes;
import androidx.appcompat.app.AlertDialog;
import io.blushine.android.AppActivity;
import io.blushine.android.R;
import io.blushine.android.info.InfoActivity;
/**
* Used for checking if a document has been c... | 28.696429 | 108 | 0.760423 |
934fff1ef12d84711412fb366dc95ec4a97b0992 | 11,274 | /*
* 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.divudi.bean.common;
import com.divudi.data.SessionNumberType;
import com.divudi.ejb.CommonFunctions;
import com.divudi.ent... | 35.790476 | 115 | 0.542398 |
fb1810d09840cfa7de2c42b0a57bb85e24c9670f | 10,883 | /**
* This class file was automatically generated by jASN1 (http://www.beanit.com)
*/
package com.beanit.jasn1.compiler.iso8823_presentation;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.ArrayList;
import ja... | 27.905128 | 164 | 0.690435 |
6e1d3a592f37159663ed690f1eeb22b03ad6014f | 840 | package com.lixa.dao.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.lixa.bean.Province;
import com.lixa.bean.User;
import com.lixa.dao.ProvinceDao;
import com.lixa.dao.UserDao;
import com.lixa.util.DBUtil;
public class Province... | 21 | 76 | 0.716667 |
e0686a71a7b34d4cf705685679fa13786f4eafe3 | 5,171 | /*
* 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.31875 | 120 | 0.764842 |
da212044a7a81916e00037998a7360b1bbfd5dce | 532 | package com.keusmar.cslabs_hackathon.Data;
import com.keusmar.cslabs_hackathon.Models.Answer;
import java.util.ArrayList;
public class GameImpactData {
private static ArrayList<Answer> answers = new ArrayList<>();
public static ArrayList<Answer> getAnswers() {
return answers;
}
public stati... | 23.130435 | 65 | 0.704887 |
e0e293b1b20b36ce6fa2a2f471199f3bdbe9aaac | 1,071 | package online.postboard.android.injection.component;
import dagger.Component;
import online.postboard.android.injection.ConfigPersistent;
import online.postboard.android.injection.module.ActivityModule;
import online.postboard.android.injection.module.FragmentModule;
import online.postboard.android.ui.base.Base... | 42.84 | 123 | 0.807656 |
4ff939e7ab7cdd781c3d36b0733182a0102a6e87 | 3,762 | import java.util.*;
public class BirdWatch { // finish implementing Bird to this class.
private ArrayList<Bird> birds;
public BirdWatch(Scanner input) {
birds = new ArrayList<Bird>();
}
public void Add(Scanner input) {
System.out.print("Name: ");
String... | 38 | 250 | 0.575226 |
ddabc8bb7168881a29207f65d2ee0416fc7344ec | 2,469 | package chrisjohnny.hardcorders;
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.telephony.SmsManager;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
pub... | 34.774648 | 86 | 0.568246 |
d210d52d06306bfbfef5bf44b2a416a95cca27c1 | 4,297 | /*
* Copyright (c) 2012-2014. Alain Barret
*
* 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.084967 | 77 | 0.508494 |
a05c70030734ac65b2394b89f8a0198036395c5d | 473 | package WayofTime.alchemicalWizardry.api.compress;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public abstract class CompressionHandler
{
/**
* Called to look at the inventory and syphons the required stack. Returns resultant stack if successful, and null if not.
* @param inv The i... | 31.533333 | 123 | 0.773784 |
adb49312b5d5f33120961397db0c0df48374917b | 8,597 | package lsl.com.getphoneiptest.activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.os.Env... | 36.582979 | 106 | 0.579621 |
80bc2891882c7b4c96c8b57fedf7c987ba228bb2 | 4,916 | /**
* Copyright Intellectual Reserve, 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 a... | 33.903448 | 133 | 0.750407 |
6131c20379f24bfe56846431479e7e89b46c6946 | 4,953 | /*
* The MIT License
*
* Copyright 2014 Paul Alves.
*
* 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, modi... | 30.018182 | 135 | 0.651726 |
75ca33608cb6bd350ae47768ad3f2d9e592ca7b3 | 1,435 | package com.upseil.gdx.box2d.builder.base;
import com.badlogic.gdx.physics.box2d.Filter;
public interface ChainedFixtureBuilderBase<T, P> extends FixtureBuilderBase<T> {
P endFixture();
//- Overriding members for concrete return type -----------------------------------------
ChainedFixtureBuild... | 35.875 | 110 | 0.701742 |
1de000aa9db823e33d9fa5ac54ec6f7aea86b27e | 1,289 | package xyz.brassgoggledcoders.steamagerevolution.utils.inventory;
import javax.annotation.Nonnull;
import net.minecraft.item.ItemStack;
import xyz.brassgoggledcoders.steamagerevolution.inventorysystem.handlers.ItemStackHandlerSync;
public class HandlerForceStack extends ItemStackHandlerSync {
public HandlerForc... | 33.921053 | 114 | 0.636152 |
9ec20b4e02f943b13f84b9dea722b3630381c541 | 4,413 | package farmhunt;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
import farmhunt.nums.GameState;
import farmhunt.util.DisguiseHelper;
import farmhunt.util.ScoreHelper;
import us.myles.ViaVersion.api.Via;
import us.myles.ViaVersion.api.boss.BossBar;
import us.myl... | 25.073864 | 140 | 0.618853 |
2e9a9113c1c658927cff29e2ecbfb6effb3484e6 | 33,198 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos.Rpc.proto
package POGOProtos.Rpc;
/**
* Protobuf type {@code POGOProtos.Rpc.SponsoredGeofenceGiftSettingsProto}
*/
public final class SponsoredGeofenceGiftSettingsProto extends
com.google.protobuf.GeneratedMessageV3 implements
... | 33.131737 | 136 | 0.695644 |
38943c42b8f0246aa3ae0898ab169c8609d409c3 | 1,472 | package com.luzhishen.easypackage.facade.service;
import java.util.concurrent.atomic.AtomicBoolean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
@Service
public class TaskLooper {
private static final Logger logger = LoggerFactory
.getLogger(... | 31.319149 | 77 | 0.592391 |
2c97d932bdb77f10d5040a5fd5d464039e605d0b | 8,929 | package com.jx.intelligent.view.dialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.Tex... | 35.29249 | 105 | 0.572517 |
4dd2ace59c624f9bdab57e528133822dbc18f2d9 | 4,334 | /*
* Copyright (C) 2016 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... | 32.343284 | 100 | 0.68874 |
e86ff363478299609f4aa3c33620b917a8c87237 | 1,457 | package com.codepath.apps.restclienttemplate.models;
import com.codepath.apps.restclienttemplate.helper.TimeFormatter;
import org.json.JSONException;
import org.json.JSONObject;
import org.parceler.Parcel;
@Parcel
public class Tweet {
/********************************** Instance Variables ***********************... | 36.425 | 98 | 0.608099 |
dcb24cd273a0ef0a33f2cb50c6108b1bed258b64 | 7,196 | package fr.formiko.views.gui2d;
import fr.formiko.formiko.CCase;
import fr.formiko.formiko.Case;
import fr.formiko.formiko.Fourmi;
import fr.formiko.formiko.Main;
import fr.formiko.formiko.MapPath;
import fr.formiko.formiko.ObjetSurCarteAId;
import fr.formiko.formiko.interfaces.DeplacementFourmi;
import fr.formiko.usu... | 31.561404 | 136 | 0.649389 |
7b97c04d08291c094ff25d1605c70d4a70e5c78f | 3,866 | /**
* Copyright (c) 2017-2018 Teng Huang <ht201509 at 163 dot com>
* All rights reserved.
*
* 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 AS... | 31.950413 | 89 | 0.636058 |
6448e51e56bfb5944df5cf558dba129560674f28 | 147 | package com.fdmgroup.dao;
import com.fdmgroup.model.IStorable;
public interface IDeletable<T extends IStorable> {
boolean delete(T t);
}
| 18.375 | 51 | 0.741497 |
4bb0adedf1048d7a894ef89f51e9c900f6a10666 | 5,504 | /*
* Copyright 2019 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 applica... | 39.597122 | 111 | 0.806141 |
099fdddbf3b8566862fb3f9d9147533ed64a8b44 | 446 | package ltd.kafka.soonelu.plugins.actions.ut;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import ltd.kafka.soonelu.plugins.ui.ut.TimeFormatDialog;
import org.jetbrains.annotations.NotNull;
/**
* @author soonelu
*/
public class UtilAction extends AnActio... | 24.777778 | 59 | 0.764574 |
c6a0ca49db4baaabf7a89ea25e75f8ea0804b329 | 4,886 | /*
* Swift Parallel Scripting Language (http://swift-lang.org)
* Code from Java CoG Kit Project (see notice below) with modifications.
*
* Copyright 2005-2014 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | 28.573099 | 118 | 0.578183 |
a929ef1cb8c5ed18efceda76c008ea24d90f6cfc | 1,086 | package pia.rest.entities;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
/**
* EJB used for JAX-RS conversions and Facelets storage with validation.
*/
@XmlRootElement
public class PostEntity {
int id;
String content;
String writer;
... | 18.40678 | 72 | 0.619705 |
5db8306cecbd41ed5a301ec5c06af3b63ac7a4aa | 2,262 | package org.openpcf.neo4vertx.neo4j;
import io.vertx.ext.graph.neo4j.Neo4VertxConfiguration;
import org.neo4j.cluster.ClusterSettings;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.factory.GraphDatabaseBuilder;
import org.neo4j.graphdb.factory.HighlyAvailableGraphDatabaseFactory;
import org.... | 41.888889 | 140 | 0.759505 |
d338284fdf76a9f152fcc035dd1a28c6fff97547 | 1,846 | package com.genius.primavera.infrastructure.security.social.kakao;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.genius.primavera.domain.model.UserConnection;
import com.genius.primavera.infrastructure.security.PrimaveraSocialUserDetailsService;
import lombok.extern.slf4j.Slf4j;
import org.springframe... | 51.277778 | 183 | 0.869447 |
3e42eca13c0e79f81c2077de1151dfaafb0f337f | 3,341 | package org.varnerlab.kwatee.foundation;
/**
* Copyright (c) 2015 Varnerlab,
* School of Chemical Engineering,
* Purdue University, West Lafayette IN 46077 USA.
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 33.747475 | 87 | 0.641724 |
7a0b615e21fa2a9705ff143df837e5bed3eefb52 | 935 | package com.saas.auth.bo.admin;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.saas.auth.dao.DAOTenant;
import com.saas.auth.request.QueryTenantParam;
import com.saas.auth.vo.Tenant;
import com.saas.pub.BOBase;
import ... | 25.972222 | 93 | 0.790374 |
7d5417586fd580c14f3eb125a6893a8ce1106e2b | 1,954 | package com.jay.ssh.action;
import org.apache.struts2.StrutsSpringTestCase;
import org.hibernate.FlushMode;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.dao.DataAccessResourceFailureException;
import org.springframework.orm.hibernate4.SessionHolder;
import org.springfra... | 39.877551 | 105 | 0.761515 |
5849c7d81562fec2aa69b74093b22129274b3a75 | 2,294 | package fwwb.classMoments.Interceptor;
import fwwb.classMoments.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndV... | 31.861111 | 162 | 0.680035 |
7271fad3bf33e66de643b058f7182e83a486f250 | 1,322 | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 36.722222 | 99 | 0.774584 |
f9b2ae9433dd04837c57697f33488540df304a00 | 4,883 | package alluxio.client.file.cache.buffer;
import com.google.protobuf.ByteString;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
import io.netty.util.ReferenceCountUtil;
import java.util.*;
public class MemoryAllocator {
private PageAllocator[] allocators;
private int[] mPageSizeSet;
p... | 25.041026 | 94 | 0.608642 |
c0f8f89b087f0a67287abc0aca97443e2ef88196 | 10,405 | /*
* Copyright (c) 2020 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 30.247093 | 120 | 0.565978 |
cb9a188b3ef06a47b22e81b39868653b832ac0b2 | 2,091 | package com.xenoamess.cyan_potion.cyan_zip.forecastingRangeEncoding;
/**
* <p>FenwickTree class.</p>
*
* @author XenoAmess
* @version 0.1.1
*/
public class FenwickTree {
public long sum;
public long[] a;
/**
* <p>lowbit.</p>
*
* @param x a int.
* @return a int.
*/
public ... | 16.595238 | 68 | 0.379723 |
80b0c7b0510a352220dbd05b696d3596f42a0c25 | 847 | package com.zhuanghl.jfinal.model;
import com.jfinal.plugin.activerecord.Model;
import java.util.List;
import java.util.Map;
/**
* @author zhuanghl
*/
public class PublishBozhu extends Model<PublishBozhu> {
public static String USER_ID = "userId";
public static String CONTENT_ID = "contentId";
public ... | 28.233333 | 70 | 0.72255 |
f6ed8e56c0e97c81661f0802dc205e061126574e | 1,805 | package Array;
/*Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
[-2,1,-3,4,-1,2,1,-5,4],
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.
*/
public class MaximumSubarray{
//输出最大值
public int maxSubArray(int[] n... | 26.940299 | 138 | 0.483657 |
3532956fab0c32ee8924cc91c15733caa0405775 | 4,361 | /*
* 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 ... | 44.050505 | 123 | 0.763586 |
47482a4a64bc504bd2b39b1317dab69aa1bfe482 | 1,946 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | 36.716981 | 127 | 0.728674 |
9224d51b23ba1801312853bef4a3b45b2067e0ba | 15,802 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the “License”). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 42.940217 | 100 | 0.722124 |
1ad33e6963cbc875f9ce936b3d2482e2c299113c | 1,911 | package gseproject.tests.interaction.robot_grid;
import gseproject.grid.Position;
import gseproject.infrastructure.contracts.RobotStateContract;
import gseproject.infrastructure.serialization.SerializationController;
import jade.core.AID;
import jade.core.Agent;
import jade.core.behaviours.CyclicBehaviour;
import jade... | 29.859375 | 105 | 0.739927 |
ada94c4a6dc76fff34a1de8cb8c350ef3c0d461b | 92 | package me.coderleo.chitchat.common.models.conversations;
public class P2PConversation
{
}
| 15.333333 | 57 | 0.826087 |
f1dea62fe94bd43b3f95ddacb2c104612cee3f61 | 12,587 | /*
* Copyright 2018 Murat Artim (muratartim@gmail.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 31.625628 | 247 | 0.674664 |
8bdf2e486ac19fc11efd4555bc43738c96761f96 | 9,346 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 44.504762 | 181 | 0.685106 |
2e8f7c1482ed258b0c5137aad16923f2783f5c45 | 11,373 | /**
* 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.687097 | 90 | 0.665612 |
909f3f1972dd5244d92c15b49223c5be526271d6 | 1,583 | package org.folio.rest.impl;
import java.util.Map;
import javax.ws.rs.core.Response;
import org.folio.rest.jaxrs.model.TenantAttributes;
import org.folio.rest.tools.utils.TenantLoading;
import io.vertx.core.AsyncResult;
import io.vertx.core.Context;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.v... | 32.306122 | 80 | 0.664561 |
2aecb56f7ba10ea6485b277b6092b645b3dbe1cc | 1,474 | package com.udemy.compras.graphql;
import com.coxautodev.graphql.tools.GraphQLMutationResolver;
import com.coxautodev.graphql.tools.GraphQLQueryResolver;
import com.udemy.compras.dto.CompraResumo;
import com.udemy.compras.exception.CompraInvalidaPorQuantidadeException;
import com.udemy.compras.input.CompraInput;
impor... | 31.361702 | 108 | 0.75441 |
19a4f71401c258fd9f980aaee0ac6249c11210d2 | 1,121 | package com.semanticsquare.thrillio.constants;
public enum MovieGenre {
CLASSICS("Classics"),
DRAMA("Drama"),
SCIFI_AND_FANTASY("Sci-Fi & Fantasy"),
COMEDY("Comedy"),
CHILDREN_AND_FAMILY("Children & Family"),
ACTION_AND_ADVENTURE("Action & Adventure"),
THRILLERS("Thrillers"),
MUSIC_AND_... | 32.028571 | 63 | 0.699376 |
e2c0323ff8f76bdcffadf7c93ddd51540f26d958 | 72,986 | package com.melink.open.api.service.impl;
import com.melink.microservice.cache.PlatformCache;
import com.melink.microservice.json.JsonSerializer;
import com.melink.microservice.utils.PlatformUtils;
import com.melink.microservice.utils.ResultConverUtil;
import com.melink.open.api.constant.AppConsts;
import com.melink.o... | 44.126965 | 361 | 0.593744 |
98783c8d7400b3941a44db2f8a32fefebe82d54d | 854 | package com.jx.maneger.view.wheelCityView;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;
public class ListViewForsrollView extends ListView {
private boolean haveScrollbar=true;
public ListViewForsrollView(Context context) {
super(context);
}
public ListVi... | 23.722222 | 81 | 0.785714 |
40a74f7a12f4bac11bac090e2029587cdd7bc4c0 | 98 | package org.powlab.jeye.tests.support;
public interface Predicate<X> {
boolean test(X in);
}
| 16.333333 | 38 | 0.72449 |
83d5a5073932eba73fe3b07aed4d036e04c174a4 | 1,861 | /*
Program Name: Mod6GuessingGameMM
Author: Mac Mai
Date: 11/12/2019
Version: 1.2
Description: Guessing game
Problems: The loop kept checking in the wrong place
Solutions: I made it break; and run while(true)
What I Learned: How to use do-while loops
*/
//Imports
import java.util.*;
import java.io.*;
public ... | 28.19697 | 115 | 0.658786 |
c892d9925032d88d179ebd5e765eacca0e1a3053 | 1,421 | package com.weiaibenpao.demo.chislim.update;
/**
* Created by lenovo on 2016/11/10.
*/
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
/**
* Created by zs on 2016/7/7.
*/
public class DeviceUtils {
/*
* 获取应用名
*/
public static Strin... | 27.862745 | 78 | 0.595355 |
b0bd59e32b8a7223862578bad87e6974fe92454d | 6,435 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015... | 27.978261 | 157 | 0.603108 |
419008e80ae1efe4459c8ca2e7e61a88d95a1010 | 2,479 | /*
* (C) Copyright IBM Corp. 2020, 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.bulkdata.jbatch.export.system;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
import javax.batch.api.partition.PartitionMapper;
import javax.batch.api.partition.PartitionPlan;
imp... | 34.430556 | 113 | 0.745865 |
086c5869d1cc7df84caa51d27cba6a7d796b8432 | 2,027 | package alpha.team.farmerseasylog;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.EditText;
im... | 30.712121 | 98 | 0.706463 |
f7aff434b0c0a5ddea1f58f438f36a3e1b7fc2b3 | 2,594 |
package fusion.comerger.model.coordination.rule;
/*
* Please refer to https://github.com/fusion-jena/OAPT
* Algergawy, Alsayed, Samira Babalou, Mohammad J. Kargar, and S. Hashem Davarpanah. "SeeCOnt: A new seeding-based clustering approach for ontology matching." In East European Conference on Advances in Databases a... | 41.174603 | 270 | 0.692753 |
0599555441444856591767a7a466867d5705a48e | 209 | package org.flixel.examples.draganddrop;
import org.flixel.FlxGame;
public class DragAndDropDemo extends FlxGame
{
public DragAndDropDemo()
{
super(480, 320, PlayState.class, 1, 30, 30);
}
}
| 17.416667 | 47 | 0.708134 |
0f53f2df966792c580a4858cfe7adeb86d123357 | 811 | package org.jenkinsci.plugins.publishtobitbucket;
/**
* Created by ali on 09/03/2017.
*/
public class BitbucketProject {
private String key;
private String name;
private String description;
public BitbucketProject(){
}
public BitbucketProject(String name, String key){
this.name=name... | 17.630435 | 53 | 0.609125 |
0c6363cc73fe4bcfc76d30db8ed91e6f54200a56 | 7,493 | /*
* Copyright 2018 Murat Artim (muratartim@gmail.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 27.855019 | 77 | 0.719605 |
16977e2b0d804d9f986dea022305838a26a63179 | 1,051 | package dled.github;
import io.vlingo.actors.Actor;
import io.vlingo.common.Completes;
import java.math.BigDecimal;
public class ConsoleAccountListener extends Actor implements AccountListener {
BigDecimal balanceSeen;
@Override
public void accountOpened(String id, BigDecimal initialBalance) {
b... | 30.911765 | 103 | 0.680304 |
fc97c263799fb5ad130aeaa06265483e04cbae93 | 6,733 | package io.blockfrost.sdk.api;
import io.blockfrost.sdk.api.exception.APIException;
import io.blockfrost.sdk.api.model.ipfs.IPFSObject;
import io.blockfrost.sdk.api.model.ipfs.PinState;
import io.blockfrost.sdk.api.model.ipfs.PinItem;
import io.blockfrost.sdk.api.model.ipfs.PinResponse;
import io.blockfrost.sdk.api.ut... | 39.145349 | 130 | 0.693747 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.