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 |
|---|---|---|---|---|---|
c32c1f753269f131609e2bafb0dae0212e464f9d | 243 | package java.com.micro.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/rubbish")
public class RubbishController {
}
| 22.090909 | 62 | 0.831276 |
85131fccb666f0f887092286ce4c6f8151776478 | 2,284 | package org.ofbiz.base;
import org.ofbiz.base.util.Debug;
import org.ofbiz.base.util.UtilMisc;
import org.ofbiz.base.util.UtilProperties;
import org.ofbiz.base.util.string.FlexibleStringExpander;
import java.net.InetAddress;
import java.util.HashMap;
import java.util.Map;
/**
* General/base system config - some con... | 39.37931 | 147 | 0.709282 |
7ea540b58255a7f2d3733aaa9a4c7614fc8d2164 | 506 | package org.jnosql.artemis.demo.se;
import org.aerogear.kafka.cdi.annotation.Consumer;
import javax.enterprise.context.ApplicationScoped;
import javax.json.JsonObject;
@ApplicationScoped
public class MyListenerService {
@Consumer(topics = Config.TOPIC, groupId = Config.GROUP_ID)
public void receiver(final J... | 28.111111 | 78 | 0.749012 |
ed614b79dd9b178a5ec6b435550cdefcbf4b4ce3 | 3,625 | package utils;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;
import com.jme3.app.SimpleApplication;
import com.jme3.bullet.BulletAppState;
import com.jme3.bullet.BulletAppState.ThreadingType;
import com.jme3.light.AmbientLight;
import com.jme3.li... | 27.884615 | 198 | 0.724138 |
e3d29b1407297372469e4d25f55b783bf1296a41 | 130 | package com.lzh.mapper;
import com.lzh.base.BaseDao;
import com.lzh.pojo.Sc;
public interface ScMapper extends BaseDao<Sc> {
}
| 14.444444 | 47 | 0.761538 |
88bec2a7fa1e739c3b9c9149bdf8545b8672ca3a | 6,361 | package edu.fiuba.algo3.Modelardo;
import edu.fiuba.algo3.Modelardo.Decorator.Ladron;
import edu.fiuba.algo3.Modelardo.Edificios.Aeropuerto;
import edu.fiuba.algo3.Modelardo.Edificios.Banco;
import edu.fiuba.algo3.Modelardo.Edificios.Biblioteca;
import edu.fiuba.algo3.Modelardo.Edificios.Edificio;
import edu.fiuba.alg... | 32.28934 | 298 | 0.686684 |
86323a21502cb31143c2b98691be94c263aa0acf | 531 | /*
* 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 app01Classes;
import app01Forms.frmLogin;
public class JavaApplication001 {
/**
* @param args the command l... | 24.136364 | 79 | 0.676083 |
1089bc4250d4f390ea34eb10d71ec6aff1d554ea | 4,729 | /*
* Hair2 License
*
* Copyright (C) 2008 Mike Hummel
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... | 25.424731 | 79 | 0.640727 |
59582a1f5ad4fcc619e41bf4890a6d9423c3c00e | 2,443 | package compioneerx1.github.whattopack.ui;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import andr... | 37.015152 | 113 | 0.663528 |
c9d389fe61f5fa5d6c199bdca0157824e147a670 | 1,308 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.ocs.indaba.vo;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Jeff Jiang
*/
public class TargetBasedTaskView {
private short goalObjectStatus;
private int targetId;
priva... | 21.8 | 70 | 0.66055 |
6aa9f92fee4156a56498edcf0d9da9865a7bb26a | 3,106 | /**
* Copyright 2016 The OpenTracing 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 agre... | 33.76087 | 106 | 0.693175 |
dd6a5a8ff6af6a28100214d34806607503498815 | 1,692 | /*
* Copyright 2011, The gwtquery team.
*
* 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... | 27.737705 | 80 | 0.705083 |
43c2621db86d3d936b23b6c7d991222954843389 | 1,915 | /*
MIT License
Copyright(c) 2020 Futurewei Cloud
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... | 49.102564 | 165 | 0.729504 |
3f704f28048b447c3f76b4bc9ceefbdb56039b2e | 642 | package com.leetcode.algorithm.medium.partitionequalsubsetsum;
class Solution {
public boolean canPartition(int[] nums) {
int sum = 0;
for (int num: nums) {
sum += num;
}
if (sum % 2 == 1) {
return false;
}
sum /= 2;
boolean[][] dp = new boolean[nums.length + 1][sum + 1];
... | 21.4 | 62 | 0.454829 |
f1e5a41880a8707d596fbad729599cf9724c95cc | 1,465 | package moe.feng.support.biometricprompt;
import android.content.Context;
import android.content.res.Configuration;
import android.support.annotation.Nullable;
import android.support.annotation.RestrictTo;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import android.widget.TextView;
@RestrictT... | 33.295455 | 112 | 0.752218 |
d40b98ad158129387bcf2890e83ace485e7a238a | 11,512 | /*******************************************************************************
* Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 30.698667 | 112 | 0.643937 |
6578de5a0fcb254faae3d77e6d571a79c3c67926 | 616 | package cc.cc4414.spring.common.async;
import java.util.concurrent.Future;
import java.util.function.Supplier;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Service;
/**
* 异步
*
* @author cc 2... | 21.241379 | 62 | 0.698052 |
34f6241b289490d2557d4c10703f292101a0271d | 2,745 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/enums/reach_plan_network.proto
package com.google.ads.googleads.v10.enums;
public final class ReachPlanNetworkProto {
private ReachPlanNetworkProto() {}
public static void registerAllExtensions(
com.google.protob... | 44.274194 | 96 | 0.75337 |
596a4e8d3ac2b58d456578adb401fc7555d79a0e | 1,101 | package ru.fusionsoft.dbgit.integration.primitives.args.specific;
import ru.fusionsoft.dbgit.integration.primitives.Args;
import ru.fusionsoft.dbgit.integration.primitives.SafeScalar;
import ru.fusionsoft.dbgit.integration.primitives.SafeScalarOf;
import ru.fusionsoft.dbgit.integration.primitives.Scalar;
import ru.fus... | 34.40625 | 105 | 0.684832 |
2c1f91cd1e4bc44a9877b02f016ecd7ecd5cb479 | 2,516 | package pathfinder.logic;
/**
* A single node in a graph. A node is part of a graph, and since
* in this application graphs represent 2D grids, each node is assigned a pair
* of <code>(x, y)</code> coordinates. In addition to these coordinates each
* node also has a flag which indicates whether it's walkable or un... | 27.648352 | 80 | 0.613672 |
94571ebb6ec5fde5cb8c54bfb67f8ebe5b35301f | 204 | package com.iauto.wlink.client;
import com.iauto.wlink.core.message.CommunicationMessage;
public interface CommunicationMessageListener {
public void onMessage( CommunicationMessage commMessage );
}
| 20.4 | 59 | 0.828431 |
8756c82c99c2b99c6507de74b0c1ec31b4332329 | 15,880 | /******************************************************************************
* Copyright © 2015-7532 NOX, Inc. [NEPOLIX]-(Behrooz Shahriari) *
* All rights reserved. *
* ... | 29.682243 | 167 | 0.548426 |
cd698b6bc158c6ae717f3e3519e29e229fc25320 | 4,114 | /*
* The MIT License
*
* Copyright 2016 Steappe Open Source.
*
* 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
* t... | 36.40708 | 110 | 0.642927 |
ad45de06691d037f07374e0329afaa89117a83a0 | 61,685 | package com.example.demo.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class EcatscoreExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public EcatscoreExample() {
oredCriteria = new ArrayL... | 33.32523 | 107 | 0.583821 |
794285d1bfaccd54cf9fe086a598a78e61f3a2d0 | 1,765 | package de.adorsys.opba.protocol.xs2a.entrypoint.authorization;
import de.adorsys.opba.protocol.api.authorization.FromAspspRedirect;
import de.adorsys.opba.protocol.api.dto.context.ServiceContext;
import de.adorsys.opba.protocol.api.dto.request.authorization.fromaspsp.FromAspspRequest;
import de.adorsys.opba.protocol.... | 43.04878 | 111 | 0.790368 |
d20699b063ecb13a318e313045ce98951ae78cf4 | 414 | package com.ding.util;
//import static java.awt.Toolkit.getDefaultToolkit;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;
public class SwingUtil {
public static Point centreContainer(Dimension size){
Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
int x=(screenSize.... | 24.352941 | 67 | 0.768116 |
fa8528f9f3413717ce7446c36521a12c3a4993aa | 725 | package at.mse.walchhofer.smokee.wildfly.caching;
import java.lang.reflect.Method;
import org.infinispan.Cache;
import at.mse.walchhofer.smokee.api.caching.ISmokeTestResult;
import at.mse.walchhofer.smokee.api.caching.ISmokEEJCache;
public class JCacheWrapper implements ISmokEEJCache {
private Cache<Method, IS... | 21.969697 | 69 | 0.688276 |
9eb5a5d292550a2d5c36a064b6dec65a580b9790 | 1,925 | package aiss.controller.photos;
import java.io.IOException;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import aiss.model.photos.mediaitem.MediaItem;
import ... | 42.777778 | 113 | 0.64 |
62aa6d8ccefef8ce64d5e6fba9966d6d339deeb8 | 6,745 | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package jdbc;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import ... | 31.372093 | 144 | 0.556709 |
d8a0389999dd450e9d1674a2f72721c98c4dd644 | 1,162 | package de.srendi.advancedperipherals.common.addons.computercraft.operations;
import net.minecraftforge.common.ForgeConfigSpec;
import java.util.HashMap;
import java.util.Map;
public enum SimpleFreeOperation implements IPeripheralOperation<Object> {
CHAT_MESSAGE(10_000);
private ForgeConfigSpec.IntValue coo... | 26.409091 | 86 | 0.675559 |
ed6173779af1a98c4ac27d6f0541d2b140e19872 | 1,307 | /*
*
*/
package htmlwalker.tag.base;
import htmlwalker.platform.*;
/**
* This class is used to support implementation tag adapters for HTML tags that only have script content.
*
* @author Robert Flores
*/
public abstract class ContentScriptTag extends BaseTag
{
/**
* Instantiates a new content script tag... | 21.783333 | 105 | 0.68707 |
3d72f2ac366245e10e3bb788e8b599807479d098 | 1,593 | package com.viadee.sonarquest.services;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.viadee.sonarquest.entities.Participation;
import com.viadee.sonarquest.entities.Quest;
import com.viadee.... | 32.510204 | 101 | 0.745135 |
ca1bd6fc306d843a17ecb5fe30ac2088902a8af5 | 1,310 | /*
Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n).
Example 1:
Input: [3, 2, 1]
Output: 1
Explanation: The third maximum is 1.
Example 2:
Input: [1, 2]
Output: 2
Explanation: The third maximu... | 21.47541 | 169 | 0.567939 |
ad0e927a38062eea78f2e88c44c4b07c2c462ab7 | 680 | package me.async.customenchants.effect.tools;
import org.bukkit.Material;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.inventory.ItemStack;
import me.async.customenchants.effect.IEffect;
public class SmeltingEffect extends IEffect
{
@Override
public void handleBreakEvent(BlockBreakEvent ev, in... | 29.565217 | 100 | 0.744118 |
0e5b48b5b30d64cb3fba37cc5c2dbe1d1a6ead49 | 756 | package geektime.spring.springbucks.waiter.service;
import geektime.spring.springbucks.waiter.model.Coffee;
import geektime.spring.springbucks.waiter.repository.CoffeeRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import reactor.core.publisher.... | 27 | 70 | 0.763228 |
6af7faaad29bc5e3ebb811ad6cb5acfb643a9921 | 658 | package com.eu.habbo.plugin.events.users.achievements;
import com.eu.habbo.habbohotel.achievements.Achievement;
import com.eu.habbo.habbohotel.users.Habbo;
import com.eu.habbo.plugin.events.users.UserEvent;
public abstract class UserAchievementEvent extends UserEvent
{
/**
* The Achievement this event applie... | 26.32 | 69 | 0.715805 |
bc322b27376716e85904fc7cf9613dc8030af884 | 1,921 | package Chapter05.P122_SynchronousQueue.src.modern.challenge;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;
public class... | 32.016667 | 91 | 0.617387 |
2fe9c0dad92ba791d7ba818a07a0ee05f864d04b | 284 | package com.supervisor.indicator;
import java.io.IOException;
import java.util.Map;
import java.util.UUID;
public interface IndicatorTemplating {
IndicatorTemplate process() throws IOException;
Map<UUID, UUID> aggregatedModelMapping();
Map<UUID, UUID> dataSheetModelMapping();
}
| 23.666667 | 48 | 0.799296 |
bf93f727e6442802dead6f6ca605a5f7b2f5a3b5 | 502 | package com.ketai.gmall.ums;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication
@EnableDiscoveryClient
@... | 31.375 | 72 | 0.828685 |
4812cb64d7814d58b62964fcb3a92cd86b461fb1 | 7,009 | package com.chequer.axboot.core.utils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.*;
public class RequestUtils {
private HttpServletRequest requ... | 27.272374 | 88 | 0.600514 |
ffcc32fe516112b490ac5f4c06f1616d8f1390e4 | 561 | package com.transporte.ufg.minha.minha_ufgtransporte.model;
import android.view.View;
import android.view.View.OnClickListener;
import com.transporte.ufg.minha.minha_ufgtransporte.presenter.MyPlaceDAO;
/**
* Created by pedro on 27/11/17.
*/
public class RemoveButtonClickListener implements OnClickListener{
p... | 22.44 | 73 | 0.743316 |
4dc0fb1a785f7bdd1fc1322f45547183d5e9fc5d | 1,014 | package cn.offer2020.pbj.demo.leetcode.string;
/**
* @ClassName: Demo28
* @Author: pbj
* @Date: 2020/5/21 11:54
* @Description: TODO 28. 实现 strStr()
*/
public class Demo28 {
//双指针
public int strStr(String haystack, String needle) {
if(needle=="") return 0;
int i = 0;
int j = 0;
... | 24.731707 | 70 | 0.531558 |
8fac535f62fae5aaae5fbc9e80eddca747645b32 | 3,226 | package com.odong.fly.job;
import com.odong.core.util.JsonHelper;
import com.odong.fly.model.Task;
import com.odong.fly.model.request.OnOffRequest;
import com.odong.fly.model.request.PhotoRequest;
import com.odong.fly.model.request.VideoRequest;
import com.odong.fly.serial.Command;
import com.odong.fly.service.StoreHe... | 36.247191 | 169 | 0.576565 |
43b32031a730b9e9acac3f749a9c4a21b4c3c827 | 336 | package com.wxw.common.constant;
/**
* @author weixiaowei
* @desc:
* @date: 2021/7/11
*/
public class RedisKeyConstant {
/**
* 抢单key前缀
*/
public static final String GRAB_LOCK_ORDER_KEY_PRE = "lock_";
/**
* 司机抢单前缀
*/
public static final String DRIVER_LISTEN_ORDER_PRE = "driver_... | 16.8 | 78 | 0.633929 |
1a7a9ec105f235b6f96c6b9410b20913fe019c18 | 20,215 | /*
* Copyright (C) 2017 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 57.922636 | 165 | 0.705169 |
7923b8c484e919ac7a8042998d8605d940dce279 | 210 | package com.android.myapplication;
public class Video {
String path;
public Video(String path) {
this.path = path;
}
public String getPath() {
return path;
}
} | 16.153846 | 35 | 0.561905 |
01e56688ad8628895b11ad27762dab77ff96adbf | 1,685 | package SwordToOffer;
/**
* 输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则。
*/
class Solution16 {
//注意代码的鲁棒性以及函数的各种边界。
public static ListNode Merge(ListNode list1,ListNode list2) {
// if(list1 == null && list2 == null){
// return null;
// }else if (list1 == null){
// retur... | 26.746032 | 65 | 0.479525 |
360b1f7f6afea8937d1de009fa4581b4f2247788 | 1,705 | package com.wedian.site.common.template.directive;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import com.wedian.site.common.mapper.JsonMapper;
import com.wedian.site.modules.cms.entity.Category;
import com.wedian.site.modules.cms.service.CategoryService;
import com.wedian.site.modules.cm... | 32.788462 | 143 | 0.781232 |
4c56b11cf3ab73f1bfd72939763790204df06353 | 3,423 | /*
* Copyright 2021 Vaibhav Nargwani
*
* 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.40367 | 83 | 0.574058 |
bcb42530c9838d8759f60ba3db2af36d10d79725 | 20,802 | /* */ package org.gdstash.item;
/* */ import java.io.File;
/* */ import java.io.FileNotFoundException;
import java.io.IOException;
/* */ import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
/* */ import org.gdstash.db.DBItem;
/* */ import... | 34.270181 | 137 | 0.43914 |
50d26570366ae62dd09515dd6589222bf6f53da3 | 161 | import org.sql2o.Sql2o;
public class DB {
public static Sql2o sql2o = new Sql2o("jdbc:postgresql://localhost:5432/wildlife_tracker", "yvonne", "123456");
}
| 26.833333 | 115 | 0.726708 |
9b8385aa555feb47a42ada2fe9af05897a30ef97 | 1,234 | /*
Copyright 2020, Rein (TNO MSG)
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... | 22.436364 | 72 | 0.689627 |
f046f692c30bc5c0be2c62fe6e2c63f0e0dbc087 | 3,193 | package io.github.stuff_stuffs.lux.client.render.entity;
import io.github.stuff_stuffs.lux.common.entity.LuxOrbEntity;
import io.github.stuff_stuffs.lux.common.util.RGBColour;
import net.minecraft.client.render.OverlayTexture;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.VertexCon... | 48.378788 | 243 | 0.715941 |
27ceb5aa72f580333c9dc79cf442fc10586f4f3d | 1,804 | package com.tks.wearosheartbeatsample.ui;
import androidx.appcompat.widget.SwitchCompat;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.Non... | 32.214286 | 129 | 0.773836 |
6871467ea3b23e5483355644ce4eb716d1294505 | 1,562 | package org.kylin.algorithm.strategy.impl;
import org.apache.commons.collections4.CollectionUtils;
import org.kylin.algorithm.pattern.BitSeqEnum;
import org.kylin.algorithm.strategy.Strategy;
import org.kylin.bean.p5.WCode;
import org.kylin.bean.p5.WCodeReq;
import org.kylin.util.BitsUtils;
import org.springframework.... | 26.931034 | 84 | 0.610115 |
0a1857c335dd1dc0bf99a6be03efab60d154a3b0 | 4,850 | package flutter.plugins.flutter_vibrate;
import android.content.Context;
import android.os.Build;
import android.os.VibrationEffect;
import android.os.Vibrator;
import android.view.HapticFeedbackConstants;
import androidx.annotation.NonNull;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter... | 33.680556 | 134 | 0.631134 |
58db79032871ab545e8fae640f0002c8e2f55670 | 361 | package doc;
import org.mapdb.DB;
import org.mapdb.DBMaker;
public class cache_hash_table {
public static void main(String[] args) {
//a
DB db = DBMaker
.memoryDB()
.cacheHashTableEnable()
.cacheSize(1000000) //optionally change cache size
... | 19 | 70 | 0.526316 |
06a5c2250b2f93a1c36df16f733503a727824e10 | 242 | /**
*
*/
package me_wedding.model;
/**
* @author maaxow
*
*/
public enum Role {
USER("USER"), ADMIN("ADMIN");
private String name;
Role(String name){
this.name = name;
}
public String getName() {
return this.name;
}
}
| 10.083333 | 30 | 0.586777 |
8fa5592e0dbbc15d6de488e4050adaca30a4011b | 16,274 | package eutros.metabotany.common.block.flower.functional;
import com.mojang.blaze3d.systems.RenderSystem;
import eutros.metabotany.api.recipe.IBouganvilleaInventory;
import eutros.metabotany.api.recipe.RecipeBouganvillea;
import eutros.metabotany.common.core.network.MetaBotanyEffectPacket;
import eutros.metabotany.com... | 33.554639 | 141 | 0.602003 |
b5b686c5cb02bc7f12df5769bfe080a43e6a3022 | 5,978 | /**
* vertigo - application development platform
*
* Copyright (C) 2013-2022, Vertigo.io, team@vertigo.io
*
* 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/li... | 29.741294 | 138 | 0.730345 |
8c1dc990b7230b16c2b824fd03cef78e3559ab2b | 1,629 | /*
* Copyright 2021 The University of Pennsylvania and Penn Medicine
*
* Originally created at the University of Pennsylvania and Penn Medicine by:
* Dr. David Asch; Dr. Lisa Bellini; Dr. Cecilia Livesey; Kelley Kugler; and Dr. Matthew Press.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* ... | 30.166667 | 95 | 0.7655 |
599263617466a7d7ba6d47b108d75525791db7cf | 2,568 | /*
* 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 co.edu.unicundi.controller;
import co.edu.unicundi.dto.LibroDto;
import co.edu.unicundi.dto.LibroPaginadoDto;
import co.edu.... | 30.571429 | 102 | 0.702103 |
054f1da8284284eff34b46bebf3fc66ad0defb08 | 681 | package org.spa.view.table.renderer;
import javax.swing.*;
import javax.swing.table.DefaultTableCellRenderer;
import java.awt.*;
/**
* @author Haim Adrian
* @since 16-May-20
*/
public class ImageCellRenderer extends DefaultTableCellRenderer {
public ImageCellRenderer() {
setHorizontalAlignment... | 26.192308 | 139 | 0.701909 |
e1efde773dd481990254e7ddbc184cf6598fdd03 | 134 | public class Hello4 {
public static void main(String[] args) {
System.out.println("She said \"Hello!\" to me.");
}
}
| 19.142857 | 57 | 0.589552 |
dc62230ce73daa165ef38362b8965f1ccd96234d | 20,208 | package com.zy.zygifloader;
import android.graphics.Bitmap;
import com.zy.zygifloader.task.GifFrame;
import java.io.IOException;
import java.io.InputStream;
import java.util.Vector;
import cn.charles.kasa.framework.utils.LogUtil;
/**
* Handler for read & extract Bitmap from *.gif
* 参考资料 @url: https://www.jianshu... | 30.206278 | 110 | 0.431265 |
3db3512462e4a4518cfebb913857a3d1d6a0e647 | 4,145 | /*
* Copyright 2012 Alex Usachev, thothbot@gmail.com
*
* This file is part of Parallax project.
*
* Parallax is free software: you can redistribute it and/or modify it
* under the terms of the Creative Commons Attribution 3.0 Unported License.
*
* Parallax is distributed in the hope that it will be useful, ... | 26.915584 | 91 | 0.703981 |
4ece4d47055defcdaa5fde7c75de7fe53c20e317 | 2,324 | package de.thdeg.enduroracer.logic;
/**
* Class to determine the position of each object on the screen
*/
public class Position implements Cloneable, Comparable<Position> {
private double x;
private double y;
/**
* Return the y value of the position
*
* @return the y value
*/
pub... | 22.784314 | 173 | 0.536575 |
c6441b47dda3d3bba57a3f5ba92c4b5ac665a417 | 8,667 | package com.jatin.musicplayer13.Fragments;
import android.app.AlertDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.DialogInterface;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import androi... | 43.994924 | 219 | 0.674051 |
46e7ccc0ea93760415cfdc43407dc17764d6c2b7 | 746 | package kaptainwutax.minemap.feature;
import kaptainwutax.featureutils.structure.RuinedPortal;
import kaptainwutax.mcutils.state.Dimension;
import kaptainwutax.mcutils.version.MCVersion;
public class OWNERuinedPortal extends RuinedPortal {
public OWNERuinedPortal(MCVersion version) {
super(Dimension.NETH... | 23.3125 | 63 | 0.710456 |
8be34bcc078b76abc86ef5e233e4369f6ef8f934 | 1,688 | package net.bplaced.javacrypto.steganography.k06.ui;
public class ShowProcessDetails extends WizardPanel {
/** Creates new form InitEmbedProcess */
public ShowProcessDetails(String details) {
super(details);
initComponents();
}
public void setDisplayText(String text){
... | 29.614035 | 77 | 0.674763 |
01fab9db7df55217916572effa81134e86a5573c | 657 | package shared;
import java.io.Serializable;
import java.util.ArrayList;
public class ResponsePackage implements Serializable {
private String responseSlug;
private String message;
private ArrayList<Book> booksList;
public String getResponseSlug() {
return responseSlug;
}
public void setResponseSlug(String... | 17.756757 | 54 | 0.754947 |
7d7d05764d2827dfbe0def2e58db59511daa3173 | 8,625 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.0. You may not use this file
* ... | 30.69395 | 120 | 0.759536 |
247efe751ccc4a728c78b0268a065618388a2e21 | 1,584 | package com.tiny.demo.firstlinecode.kfysts.chapter11;
import android.os.AsyncTask;
import com.tinytongtong.tinyutils.LogUtils;
import java.net.URL;
/**
* Desc:
*
* @author tiny
* @date 2018/4/21 下午11:17
*/
public class DownloadFileTask extends AsyncTask<URL, Integer, Long> {
public static final String TAG... | 25.967213 | 76 | 0.582702 |
2100368c820477c4160860f9722f2927d48e185d | 1,497 | package com.june.perfmon.client;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;
class NIOTransport extends AbstractTransport {
private ... | 23.761905 | 73 | 0.705411 |
1f42af30130cec2ebe77372487ca35bf5d4ad8d3 | 5,866 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 16.477528 | 810 | 0.797988 |
d7404900bbb34d69fa28d5e3f9391c92f0378ec4 | 2,492 | package com.tencent.tmsecure.module.phoneservice;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import tms.ag;
public final class IpDialPhoneNumberList implements Serializable {
private static final long b = 1;
ArrayList<IpDialPhoneNumber> a;
public IpDialPhoneNumber... | 26.795699 | 87 | 0.587881 |
62f99bce44fc60a38b47a365c58b48b45417a97d | 1,464 | package com.tencent.liteav.demo.play;
import com.tencent.rtmp.TXLiveConstants;
/**
* Created by yuejiaoli on 2018/7/4.
* 超级播放器全局配置类
*/
public class SuperPlayerGlobalConfig {
private static SuperPlayerGlobalConfig sInstance;
private SuperPlayerGlobalConfig() {
}
public static SuperPlayerGlobalCon... | 22.523077 | 74 | 0.584016 |
1adc7aa269ff849d2855e3c121dfcad0df3cb750 | 1,998 | package io.spotnext.kakao.structs;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import ca.weblite.objc.annotations.Msg;
import io.spotnext.kakao.NSObject;
public class NSArray<T> extends NSObject implements Iterable<T> {
protected final List<T> elements = new ArrayList<>();
prote... | 21.717391 | 74 | 0.688689 |
7064e457cb13a56807ad1f2876c42ba01fba135b | 1,811 | package com.egoveris.ffdd.base.service.impl;
import java.util.List;
import org.dozer.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Tr... | 32.927273 | 111 | 0.832137 |
b070f65cb5303d8cac711bf67d10cdcb708d779b | 1,278 | package ch.uzh.ifi.seal.soprafs20.entity;
import ch.uzh.ifi.seal.soprafs20.entity.game.coordinate.Coordinate;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
class ... | 29.72093 | 107 | 0.701878 |
c677f06c0cfb6eed89f59efa61e2dd5732b3f927 | 10,449 | /**
* Copyright 2012 Alex Yanchenko
*
* 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... | 34.714286 | 81 | 0.727629 |
892cfc9ff3cac47713e45c01d5e8d2999d3a2b1b | 3,663 | /*
* 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... | 20.237569 | 75 | 0.695059 |
732ab327a50a0cfdd0843a012bfe891a60250652 | 1,671 | /*
* Copyright (C) 2015-2019 Fabrice Bouyé
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
package api.web.gw2.mapping.v2.traits;
import api.web.gw2.mapping.core.IdValue;
import api.web.gw2.mapping.core.Localize... | 26.951613 | 75 | 0.669659 |
fc57a63e09ea182a827ba6a3678587d264a7d7a9 | 3,446 | /*
* Created on 29.04.2005
*
*/
package net.sourceforge.ondex.parser.kegg53.gene;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
import com.sleepycat.je.DatabaseException;
import com.sleepycat.persist.EntityCursor;
import net.sourcef... | 38.288889 | 196 | 0.498549 |
3874fd4b3370ec8737a49b03a24d2147c96ab33c | 2,463 | package com.example.vortexjumper;
import org.andengine.entity.Entity;
import org.andengine.entity.scene.Scene;
import org.andengine.entity.sprite.AnimatedSprite;
import org.andengine.entity.sprite.TiledSprite;
import org.andengine.extension.physics.box2d.FixedStepPhysicsWorld;
import org.andengine.extension.physics.bo... | 38.484375 | 202 | 0.809176 |
e54460626c23d11955a77ad130b4edc5e19855e5 | 558,451 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/dataproc/manager/v1/job.proto
package yandex.cloud.api.dataproc.manager.v1;
public final class JobOuterClass {
private JobOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite re... | 34.332411 | 268 | 0.61102 |
1064db610ab603032e2413deddf9a21c47b63b8e | 499 | package com.m3.octoparts.client;
import com.m3.octoparts.model.Cookie;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.List;
public interface PartResponseWrapper {
@Nullable
String getContents(@Nullable String defaultContents);
@Nonnull
List<Cookie> getCookies();
... | 18.481481 | 57 | 0.721443 |
d45ceaa6c8209f78f2a3efacf57d5754fd7e71e3 | 10,644 | package com.jagex;
import com.jagex.InterfaceDef;
import com.jagex.Class315_Sub1;
import com.jagex.Class348;
import com.jagex.Class681;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class Class221 {
static final int anInt2299 = 8;
static int anInt2301;
stat... | 28.459893 | 141 | 0.57826 |
22a275302e658fcbfdf6e9316cb0f54865242aa9 | 19,594 | package org.im97mori.rbt.ble.characteristic.cs;
import android.bluetooth.BluetoothGattCharacteristic;
import android.os.Parcel;
import org.junit.Test;
import static org.im97mori.ble.BLEConstants.BASE_UUID;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static or... | 53.100271 | 137 | 0.715219 |
509610ec96d61a1394ce9584c72f38ab391299ce | 2,810 | package seedu.deliverymans.model.database;
import static java.util.Objects.requireNonNull;
import java.util.List;
import javafx.collections.ObservableList;
import seedu.deliverymans.model.order.Order;
import seedu.deliverymans.model.order.UniqueOrderList;
/**
* Wraps all data at the order database level
* Duplica... | 26.761905 | 116 | 0.647331 |
49ca06ab7ceac56d904e8d1a5635bcc2297603aa | 3,666 | package com.wjiec.springaio.method.security.service;
import com.wjiec.springaio.method.security.model.Setting;
import org.springframework.security.access.PermissionEvaluator;
import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PostAuthorize;
import or... | 39 | 118 | 0.671849 |
44fd5aa6b7475221b8c223e34545183e23bc8b09 | 2,257 | /*
* Copyright 2010-2020 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 "lice... | 31.347222 | 102 | 0.677448 |
48930b03cb007e4aa2069eb8f4b2b7ca64bfae65 | 3,017 | package com.ebot.mikobot.features.mediaplayer.repos;
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
import java.util.ArrayList;
public class Queue {
private final ArrayList<AudioTrack> audioTracks = new ArrayList<>();
private int currentIndex = -1;
/**
* Add audio track to queue
* @... | 25.352941 | 72 | 0.587007 |
10342e5f1f789e6411d23e0e3a5b6201be598aa0 | 1,313 | package integration;
import io.ebean.Ebean;
import org.example.domain.Country;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
import static org.testng.AssertJUnit.assertNull;
@Test
public class SyncIudTest extends BaseTest {
public ... | 20.515625 | 50 | 0.676314 |
bca7f222e15796de4fc671a41b51a2814b162d4f | 637 | package com.mxgraph.examples.swing.editor.scxml;
import java.io.Reader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.CharTokenizer;
import org.apache.lucene.analysis.TokenStream;
public final class SCXMLAnalyzer extends ... | 22.75 | 62 | 0.734694 |
1587f6a77118e69cc294b32fa04e1ecf82345919 | 964 | package project;
import cintsyde.interfaces.Component;
import cintsyde.interfaces.ProjectComponent;
import forsyde.io.java.core.ForSyDeSystemGraph;
import interfaces.ForSyDeIOProjectComponent;
import java.nio.file.Path;
import java.util.List;
public class SDFToSharedMemMultiCore implements ForSyDeIOProjectComponent ... | 22.418605 | 90 | 0.733402 |
475720a0bef581c5a17cb57350d1f660adb3707c | 352 | package com.pattern.designpattern.proxy.beans;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class HappinessLaundry implements Laundry {
@Override
public void wash() {
log.info("Let HappinessLaundry wash a piece of clothes.");
}
@Override
public void dryCleaning() {
log.info("Let HappinessLaundry dry cle... | 18.526316 | 65 | 0.744318 |
6cb7874b4a43deb9862a09df9d6092f2b563e9f6 | 2,294 | package ml.zhangxujie.konfig;
import ml.zhangxujie.konfig.dto.konfig.KonfigCollection;
import ml.zhangxujie.konfig.event.KonfigEventListener;
import ml.zhangxujie.konfig.event.KonfigEventObject;
import ml.zhangxujie.konfig.event.KonfigEventObjectSource;
import org.junit.Test;
import java.awt.event.HierarchyBoundsAdap... | 30.586667 | 91 | 0.522232 |
0907e8af91a972e35d0f7ed51b9abc9877169d19 | 800 | package com.api.crowdlending.repository;
import com.api.crowdlending.model.ProjectCategory;
import com.api.crowdlending.model.Project;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.rest.core.annotation.RepositoryRestR... | 38.095238 | 91 | 0.82125 |
5fe8948fb225d82c09b5fa18fe6bd892a629d5d8 | 805 | package java_practice.sandbox.point;
import org.testng.Assert;
import org.testng.annotations.Test;
public class PointTest {
@Test(description = "Correct Input, Equal Result")
public void testDistanceEqual() {
Point p1 = new Point(1, 3);
Point p2 = new Point(2, 4);
Assert.assertEquals(p1.dist... | 23.676471 | 60 | 0.648447 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.